diff --git a/.gitignore b/.gitignore index 3bde19c..a8d7637 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .env -node_modules -source/*.zip \ No newline at end of file +.vscode +__debug_bin* \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 22d1a17..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/main.go", - "env": {}, - "args": [ - "-gog-svc-loc=/home/y6z9bp/.config/assocentity/assocentity-366111-4ea68cbd6d1e.json" - ], - "cwd": "${workspaceFolder}" - }, - ] -} \ No newline at end of file diff --git a/LICENSE b/LICENSE index 5a4a77d..281de00 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Julian Claus +Copyright (c) 2025 Julian Claus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6189ba0 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +GOLANGCILINT_VERSION := v2.5.0 +GO_PATH := $(shell go env GOPATH)/bin +GOLANGCILINT_BIN := $(GO_PATH)/golangci-lint + +.PHONY: lint fmt test + +all: lint fmt test + +$(GOLANGCILINT_BIN): + @if ! test -x $(GOLANGCILINT_BIN) || ! $(GOLANGCILINT_BIN) --version | grep -q $(GOLANGCILINT_VERSION); then \ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GO_PATH) $(GOLANGCILINT_VERSION); \ + fi + +fmt: $(GOLANGCILINT_BIN) + $(GOLANGCILINT_BIN) fmt ./... -v + +lint: $(GOLANGCILINT_BIN) + @$(GOLANGCILINT_BIN) run $(LINT_FLAGS) ./... --fix -v + +test: + go test -v ./... -short diff --git a/README.md b/README.md index cc980ef..b4e6acb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,2 @@ # entityscrape -This a social experiment which shows the mean distance between part of speeches -(e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly -selected entities (like Xi Jingping or ISIS). Go straight to the -[website](https://ndabap.github.io/entityscrape/index.html)! - -The Go package [assocentity](https://github.com/ndabAP/assocentity) was -used for creating this experiment. You can create new ones by updating the -`source/entities.txt` file and run the CLI with the provided Visual Studio Code -debug configuration. - -**Data source**: [dai, tianru, 2017, "News Articles", Harvard Dataverse, V1](https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR). diff --git a/cases/conduct.go b/cases/conduct.go new file mode 100644 index 0000000..0d6cc59 --- /dev/null +++ b/cases/conduct.go @@ -0,0 +1,192 @@ +package cases + +import ( + "bufio" + "context" + "errors" + "log/slog" + "math/rand/v2" + "os" + "strings" + "unicode" + + "github.com/ndabAP/assocentity" + "github.com/ndabAP/assocentity/tokenize" + "github.com/ndabAP/assocentity/tokenize/nlp" + "github.com/ndabAP/entityscrape/translator" + "golang.org/x/text/language" +) + +func (study study[samples, aggregated]) Conduct(ctx context.Context) error { + slog.Debug("processing subjects", "n", len(study.Subjects)) + + translator := translator.NewGoogle(ctx, GoogleCloudSvcAccountKey) + for subject, analyses := range study.Subjects { + select { + case <-ctx.Done(): + return ctx.Err() + default: + } + + slog.Debug("processing analyses", "subject", subject) + var ( + entity = analyses.Entity + ext = analyses.Ext + feats = analyses.Feats + filenames = analyses.Filenames + reduct = analyses.Reduct + lang = analyses.Language + parser = analyses.Parser + ) + tokenizer := nlp.New(GoogleCloudSvcAccountKey, lang.String()) + analyses, err := study.analysis( + ctx, + entity, + filenames, + parser, + reduct, + tokenizer, + feats, + ) + if err != nil { + return err + } + slog.Debug("analysis done") + + slog.Debug("collecting samples") + samples := study.collect(analyses) + slog.Debug("sample collection done") + + slog.Debug("aggregating samples") + aggregated := study.aggregate(samples) + slog.Debug("aggregation done") + + slog.Debug("reporting aggregation") + translator := func(w []string) ([]string, error) { + switch lang { + case language.English: + slog.Debug("skipping translation for English") + return w, nil + default: + } + + return translator.Translate(w, lang, language.English) + } + if err := func() error { + pref := strings.Map(func(r rune) rune { + switch { + case r >= 'a' && r <= 'z': + return r + case r >= 'A' && r <= 'Z': + return unicode.ToLower(r) + case r == ' ', r == '-': + return '_' + default: + return -1 + } + }, subject) + writer, err := study.store.NewWriter(pref, ext) + if err != nil { + return err + } + //nolint:errcheck + defer writer.Close() + + if err := study.report(aggregated, translator, writer); err != nil { + return err + } + + return nil + }(); err != nil { + return err + } + slog.Debug("reporting done", "subject", subject) + } + + return nil +} + +func (study study[samples, aggregated]) analysis( + ctx context.Context, + entity, + filenames []string, + parser Parser, + reduct bool, + tokenizer tokenize.Tokenizer, + feats tokenize.Features, +) ( + assocentity.Analyses, + error, +) { + slog.Debug("parsing files", "n", len(filenames)) + if reduct { + slog.Debug("entity reduct enabled") + } + + var ( + texts = make([]string, 0, len(filenames)) + + textChan = make(chan []byte, 50) + errChan = make(chan error, 1) + ) + + // Consumer + go func() { + defer close(errChan) + + for text := range textChan { + n := rand.Uint64N(100) + if n >= SampleRate { + continue + } + + var err error + if reduct { + text, err = study.reduct(text, entity) + if errors.Is(err, errEntityNotFound) { + continue + } + } + if err != nil { + errChan <- err + return + } + texts = append(texts, string(text)) + } + }() + // Producer + go func() { + defer close(textChan) + + for _, filename := range filenames { + file, err := os.Open(filename) + if err != nil { + errChan <- err + return + } + for err := range parser(file, textChan) { + if errors.Is(err, bufio.ErrTooLong) { + continue + } + errChan <- err + } + //nolint:errcheck + _ = file.Close() + } + }() + + select { + case <-ctx.Done(): + return assocentity.Analyses{}, ctx.Err() + + case err := <-errChan: + if err != nil { + return assocentity.Analyses{}, err + } + } + slog.Debug("texts sampled and parsed", "n", len(texts)) + + slog.Debug("creating analyses") + src := assocentity.NewSource(entity, texts) + return src.Analyses(ctx, tokenizer, feats, assocentity.NFKC) +} diff --git a/cases/corpus.go b/cases/corpus.go new file mode 100644 index 0000000..e598e9f --- /dev/null +++ b/cases/corpus.go @@ -0,0 +1,35 @@ +package cases + +import ( + "io/fs" + "path/filepath" +) + +// corpusDir is the absolute directory to the corpus. +var corpusDir string + +func SetCorpusRootDir(base string) { + corpusDir = filepath.Join(base, "corpus") +} + +func GetCorpusRootDir() string { + return corpusDir +} + +func WalkCorpus(corpus string, fn func(filename string) error) error { + root := filepath.Join(corpusDir, corpus) + err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error { + if err != nil { + return err + } + if d.IsDir() { + return nil + } + switch filepath.Ext(path) { + case ".gitignore", ".gitkeep": + return nil + } + return fn(path) + }) + return err +} diff --git a/cases/isopf/case.go b/cases/isopf/case.go new file mode 100644 index 0000000..0f08222 --- /dev/null +++ b/cases/isopf/case.go @@ -0,0 +1,229 @@ +// International sentiment of public figures +package isopf + +import ( + "context" + "encoding/json" + "io" + "slices" + "sort" + "strings" + + "github.com/ndabAP/assocentity" + "github.com/ndabAP/assocentity/tokenize" + "github.com/ndabAP/entityscrape/cases" + "github.com/ndabAP/entityscrape/parser" + "golang.org/x/text/language" +) + +type ( + samples struct { + heads, dependents []*tokenize.Token + } + aggregate struct { + Word [2]string `json:"word"` + N int `json:"n"` + } + aggregates struct { + Heads []aggregate `json:"heads"` + Dependents []aggregate `json:"dependents"` + } +) + +var ( + ident = "isopf" + + collector = func(analyses assocentity.Analyses) samples { + var samples samples = samples{ + heads: make([]*tokenize.Token, 0), + dependents: make([]*tokenize.Token, 0), + } + f := func(tag tokenize.PartOfSpeechTag) bool { + switch tag { + case tokenize.PartOfSpeechTagAdj, tokenize.PartOfSpeechTagNoun, tokenize.PartOfSpeechTagVerb: + return true + default: + return false + } + } + samples.heads = analyses.Forest().Heads(func(t *tokenize.Token) bool { + if f(t.PartOfSpeech.Tag) { + samples.heads = append(samples.heads, t) + } + return true + }) + samples.dependents = analyses.Forest().Dependents(func(t *tokenize.Token) bool { + if f(t.PartOfSpeech.Tag) { + samples.dependents = append(samples.dependents, t) + } + return true + }) + + return samples + } + aggregator = func(s samples) aggregates { + f := func(samples []*tokenize.Token) []aggregate { + aggregates := make([]aggregate, 0) + for _, sample := range samples { + word := strings.ToLower(sample.Lemma) + + i := slices.IndexFunc(aggregates, func(aggr aggregate) bool { + return aggr.Word[0] == word + }) + // Find matches + switch i { + case -1: + n := 1 + aggregates = append(aggregates, aggregate{ + Word: [2]string{word}, + N: n, + }) + // Found + default: + aggregates[i].N++ + } + } + + // Top n sorted + const limit = 10 + sort.Slice(aggregates, func(i, j int) bool { + return aggregates[i].N > aggregates[j].N + }) + if len(aggregates) > limit { + aggregates = aggregates[:limit] + } + + return aggregates + } + return aggregates{ + Heads: f(s.heads), + Dependents: f(s.dependents), + } + } + reporter = func(aggrs aggregates, translate cases.Translate, writer io.Writer) error { + // Collect words to translate. + f := func(aggregates []aggregate) error { + words := make([]string, 0, len(aggregates)) + for _, aggregate := range aggregates { + words = append(words, aggregate.Word[0]) + } + w, err := translate(words) + if err != nil { + return err + } + // Add translated words back. + for i := range aggregates { + aggregates[i].Word[1] = w[i] + } + return nil + } + if err := f(aggrs.Heads); err != nil { + return err + } + if err := f(aggrs.Dependents); err != nil { + return err + } + + return json.NewEncoder(writer).Encode(&aggrs) + } +) + +func Conduct(ctx context.Context) error { + select { + case <-ctx.Done(): + return ctx.Err() + default: + } + + return conduct(ctx) +} + +func conduct(ctx context.Context) error { + study := cases.NewStudy(ident, collector, aggregator, reporter) + + var ( + feats = tokenize.FeatureSyntax + lang = language.English + parser = parser.AMND + ext = "json" + + filenames = make([]string, 0) + ) + if err := cases.WalkCorpus("amnd", func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + + // Donald Trump + { + var ( + ident = "Trump" + entity = []string{ident, "Donald Trump", "Donald J. Trump", "Donald John Trump", "Trump's"} + ) + study.Subjects[ident] = cases.Analyses{ + Entity: entity, + Ext: ext, + Feats: feats, + Filenames: filenames, + Reduct: true, + Language: lang, + Parser: parser, + } + } + // Elon Musk + { + var ( + ident = "Musk" + entity = []string{ident, "Elon Musk", "Elon Reeve Musk", "Elon R. Musk", "Musk's"} + ) + study.Subjects[ident] = cases.Analyses{ + Entity: entity, + Ext: ext, + Feats: feats, + Filenames: filenames, + Reduct: true, + Language: lang, + Parser: parser, + } + } + // Joe Biden + { + var ( + ident = "Biden" + entity = []string{ident, "Joe Biden", "Joseph Robinette Biden", "Joseph R. Biden", "Joseph Biden", "Biden's"} + ) + study.Subjects[ident] = cases.Analyses{ + Entity: entity, + Ext: ext, + Feats: feats, + Filenames: filenames, + Reduct: true, + Language: lang, + Parser: parser, + } + } + // Vladimir Putin + { + var ( + ident = "Putin" + entity = []string{ident, "Vladimir Putin", "Vladimir Vladimirovich Putin", "Putin's"} + ) + study.Subjects[ident] = cases.Analyses{ + Entity: entity, + Ext: ext, + Feats: feats, + Filenames: filenames, + Reduct: true, + Language: lang, + Parser: parser, + } + } + + if err := study.Conduct(ctx); err != nil { + return err + } + + return nil +} diff --git a/cases/nsops/case.go b/cases/nsops/case.go new file mode 100644 index 0000000..8b4b5ba --- /dev/null +++ b/cases/nsops/case.go @@ -0,0 +1,201 @@ +// National sentiment of political speeches +package nsops + +import ( + "context" + "encoding/json" + "io" + "path/filepath" + "slices" + "sort" + + "cloud.google.com/go/language/apiv1/languagepb" + "github.com/ndabAP/assocentity" + "github.com/ndabAP/assocentity/tokenize" + "github.com/ndabAP/entityscrape/cases" + "github.com/ndabAP/entityscrape/parser" + "golang.org/x/text/language" +) + +type ( + sample *tokenize.Token + + aggregate struct { + Word [2]string `json:"word"` + PoS string `json:"pos"` + N int `json:"n"` + } + aggregates []aggregate +) + +var ( + ident = "nsops" + + collector = func(analyses assocentity.Analyses) []sample { + samples := make([]sample, 0) + analyses.Forest().Dependents(func(t *tokenize.Token) bool { + switch t.PartOfSpeech.Tag { + case tokenize.PartOfSpeechTagAdj, tokenize.PartOfSpeechTagNoun, tokenize.PartOfSpeechTagVerb: + samples = append(samples, t) + default: + } + + return true + }) + + return samples + } + aggregator = func(samples []sample) aggregates { + aggregates := make(aggregates, 0, len(samples)) + for _, sample := range samples { + w := sample.Lemma + i := slices.IndexFunc(aggregates, func(aggregate aggregate) bool { + return w == aggregate.Word[0] + }) + // Find matches + switch i { + case -1: + var ( + word = [2]string{w} + pos = languagepb.PartOfSpeech_Tag_name[int32(sample.PartOfSpeech.Tag)] + n = 1 + ) + aggregates = append(aggregates, aggregate{ + Word: word, + PoS: pos, + N: n, + }) + // Found + default: + aggregates[i].N++ + } + } + + // Top n sorted + const limit = 15 + sort.Slice(aggregates, func(i, j int) bool { + return aggregates[i].N > aggregates[j].N + }) + if len(aggregates) > limit { + aggregates = aggregates[:limit] + } + + return aggregates + } + reporter = func(aggregates aggregates, translate cases.Translate, writer io.Writer) error { + // Collect words to translate. + words := make([]string, 0, len(aggregates)) + for _, aggregate := range aggregates { + words = append(words, aggregate.Word[0]) + } + w, err := translate(words) + if err != nil { + return err + } + // Add translated words back. + for i := range aggregates { + aggregates[i].Word[1] = w[i] + } + + return json.NewEncoder(writer).Encode(&aggregates) + } +) + +func Conduct(ctx context.Context) error { + select { + case <-ctx.Done(): + return ctx.Err() + default: + } + + return conduct(ctx) +} + +func conduct(ctx context.Context) error { + study := cases.NewStudy(ident, collector, aggregator, reporter) + + feats := tokenize.FeatureSyntax + + // Germany + { + lang := language.German + entity := []string{"Deutschland", "Deutschlands", "Deutschlande"} + + // GPSC + { + var ( + filenames = []string{ + filepath.Join(cases.GetCorpusRootDir(), "gpsc", "Bundesregierung.xml"), + } + parser = parser.GPSC + ) + study.Subjects["Germany"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + } + // Russia + { + lang := language.Russian + entity := []string{"Россия", "России", "Россией"} + + // DS + { + parser := parser.DS + filenames := make([]string, 0) + if err := cases.WalkCorpus("ds", func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + study.Subjects["Russia"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + } + // USA + { + lang := language.English + entity := []string{"United States", "USA", "United States of America"} + + // CRFTC + { + parser := parser.CRFTC + filenames := make([]string, 0) + if err := cases.WalkCorpus("crftc", func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + study.Subjects["USA"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + } + + if err := study.Conduct(ctx); err != nil { + return err + } + + return nil +} diff --git a/cases/reduct.go b/cases/reduct.go new file mode 100644 index 0000000..01be4e4 --- /dev/null +++ b/cases/reduct.go @@ -0,0 +1,105 @@ +package cases + +import ( + "bufio" + "bytes" + "errors" + "unicode" + "unicode/utf8" +) + +var errEntityNotFound = errors.New("entity not found") + +// reduct perfoms a fuzzy search for the provided entity and removes sentences +// defined through [unicode.Sentence_Terminal] which don't contain the entity. +func (study study[samples, aggregated]) reduct(text []byte, entity []string) ([]byte, error) { + var ( + // Cached delimiter + delim rune + size int + ) + + scanner := bufio.NewScanner(bytes.NewReader(text)) + scanner.Split(func(txt []byte, atEOF bool) (int, []byte, error) { + if atEOF && len(txt) == 0 { + return 0, nil, nil + } + + // Find the index of the first byte of a rune that is a sentence + // terminal. + i := bytes.IndexFunc(txt, func(r rune) bool { + return unicode.Is(unicode.Sentence_Terminal, r) + }) + switch i { + // Not found. + case -1: + if atEOF && len(txt) > 0 { + return len(txt), txt, nil + } + return 0, nil, nil + + // We found a sentence terminal. We need to know its size to advance + // past it. + default: + delim, size = utf8.DecodeRune(txt[i:]) + return i + size, txt[:i], nil + } + }) + + var ( + buf bytes.Buffer + + // Filters + prot = []byte("http") + com = []byte(".com") + ) + for scanner.Scan() { + txt := scanner.Bytes() + + // Entity + var n int + for _, e := range entity { + // Special case: Entity is delimiter + if r, _ := utf8.DecodeRuneInString(e); r == delim { + n++ + } + if bytes.Contains(txt, []byte(e)) { + n++ + } + } + if n == 0 { + continue + } + + // Filters + switch { + case bytes.Contains(txt, prot), bytes.Contains(txt, com): + continue + default: + } + + // Size + if len(txt) < 3 { + continue + } + n = 0 + for _, r := range scanner.Text() { + if unicode.IsSpace(r) { + n++ + } + } + if n == 0 { + continue + } + + buf.Write(txt) + // Re-add any terminal. + buf.WriteRune(delim) + } + + b := buf.Bytes() + if len(b) == 0 { + return []byte{}, errEntityNotFound + } + return bytes.TrimSpace(b), nil // Split never returns an error. +} diff --git a/cases/reduct_test.go b/cases/reduct_test.go new file mode 100644 index 0000000..beafae7 --- /dev/null +++ b/cases/reduct_test.go @@ -0,0 +1,57 @@ +package cases + +import ( + "bytes" + "testing" +) + +func Test_reduct(t *testing.T) { + tests := []struct { + name string + text []byte + entity string + want []byte + }{ + { + name: "dot terminal", + text: []byte("Lorem ipsum is a dummy or placeholder text commonly used in graphic design, publishing, and web development."), + entity: "Lorem ipsum", + want: []byte("Lorem ipsum is a dummy or placeholder text commonly used in graphic design, publishing, and web development."), + }, + { + name: "exclamation mark terminal", + text: []byte("Hello, World!"), + entity: "World", + want: []byte("Hello, World!"), + }, + { + name: "no entity", + text: []byte("Hello, World!"), + entity: "Triangle", + want: []byte(""), + }, + { + name: "two sentences", + text: []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat."), + entity: "Lorem ipsum", + want: []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua."), + }, + { + name: "two sentences, entity in second", + text: []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat."), + entity: "veniam", + want: []byte("Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat."), + }, + } + for _, tc := range tests { + t.Run(tc.name, func(t *testing.T) { + t.Parallel() + + s := study[any, any]{} + got, _ := s.reduct(tc.text, []string{tc.entity}) + if !bytes.Equal(got, tc.want) { + t.Errorf("reduct() = %s, want %s", got, tc.want) + } + }) + } +} diff --git a/cases/rvomg/case.go b/cases/rvomg/case.go new file mode 100644 index 0000000..e2d80e4 --- /dev/null +++ b/cases/rvomg/case.go @@ -0,0 +1,188 @@ +// Root verbs of music genres +package rvomg + +import ( + "context" + "encoding/json" + "io" + "path/filepath" + "slices" + "sort" + "strings" + + "github.com/ndabAP/assocentity" + "github.com/ndabAP/assocentity/tokenize" + "github.com/ndabAP/entityscrape/cases" + "github.com/ndabAP/entityscrape/parser" + "golang.org/x/text/language" +) + +type ( + sample *tokenize.Token + aggregate struct { + Word [2]string `json:"word"` + N int `json:"n"` + } + aggregates []aggregate +) + +var ( + ident = "rvomg" + + collector = func(analyses assocentity.Analyses) []sample { + roots := analyses.Forest().Roots() + samples := make([]sample, 0, len(roots)) + for _, root := range roots { + switch root.Lemma { + case "s", "′", "wan", "doesn", "gon": + continue + default: + } + samples = append(samples, root) + } + + return samples + } + aggregator = func(samples []sample) aggregates { + aggregates := make(aggregates, 0, len(samples)) + for _, sample := range samples { + w := strings.ToLower(sample.Lemma) + i := slices.IndexFunc(aggregates, func(aggregate aggregate) bool { + return w == aggregate.Word[0] + }) + // Find matches + switch i { + case -1: + var ( + word = [2]string{w} + n = 1 + ) + aggregates = append(aggregates, aggregate{ + Word: word, + N: n, + }) + // Found + default: + aggregates[i].N++ + } + } + + // Top n sorted + const limit = 10 + sort.Slice(aggregates, func(i, j int) bool { + return aggregates[i].N > aggregates[j].N + }) + if len(aggregates) > limit { + aggregates = aggregates[:limit] + } + + return aggregates + } + reporter = func(aggregates aggregates, translate cases.Translate, writer io.Writer) error { + // Collect words to translate. + words := make([]string, 0, len(aggregates)) + for _, aggregate := range aggregates { + words = append(words, aggregate.Word[0]) + } + w, err := translate(words) + if err != nil { + return err + } + // Add translated words back. + for i := range aggregates { + aggregates[i].Word[1] = w[i] + } + + return json.NewEncoder(writer).Encode(&aggregates) + } +) + +func Conduct(ctx context.Context) error { + select { + case <-ctx.Done(): + return ctx.Err() + default: + } + + return conduct(ctx) +} + +func conduct(ctx context.Context) error { + study := cases.NewStudy(ident, collector, aggregator, reporter) + + var ( + feats = tokenize.FeatureSyntax + lang = language.English + parser = parser.Etc + + // We have no real entity. + entity = []string{".", "?", "!"} + ) + + // Pop + { + filenames := make([]string, 0) + p := filepath.Join("etc", "pop") + if err := cases.WalkCorpus(p, func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + study.Subjects["Pop"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + // Hip-hop + { + filenames := make([]string, 0) + p := filepath.Join("etc", "hip_hop") + if err := cases.WalkCorpus(p, func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + study.Subjects["Hip-hop"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + // Rock and roll + { + filenames := make([]string, 0) + p := filepath.Join("etc", "rock_and_roll") + if err := cases.WalkCorpus(p, func(filename string) error { + filenames = append(filenames, filename) + return nil + }); err != nil { + return err + } + study.Subjects["Rock and roll"] = cases.Analyses{ + Entity: entity, + Feats: feats, + Filenames: filenames, + Language: lang, + Parser: parser, + Reduct: true, + Ext: "json", + } + } + + if err := study.Conduct(ctx); err != nil { + return err + } + + return nil +} diff --git a/cases/study.go b/cases/study.go new file mode 100644 index 0000000..8cafc8c --- /dev/null +++ b/cases/study.go @@ -0,0 +1,32 @@ +package cases + +import ( + "path/filepath" + + "github.com/ndabAP/entityscrape/store" +) + +var ( + GoogleCloudSvcAccountKey string + SampleRate uint64 = 100 // Default: Nothing is sampled. +) + +func NewStudy[samples, aggregated any]( + ident string, + collector Collector[samples], + aggregator Aggregator[samples, aggregated], + reportor Reporter[aggregated], +) study[samples, aggregated] { + file, err := store.NewFile(filepath.Join("reports", ident)) + if err != nil { + panic(err.Error()) + } + subjects := make(map[string]Analyses) + return study[samples, aggregated]{ + Subjects: subjects, + collect: collector, + aggregate: aggregator, + report: reportor, + store: file, + } +} diff --git a/cases/types.go b/cases/types.go new file mode 100644 index 0000000..17f2557 --- /dev/null +++ b/cases/types.go @@ -0,0 +1,44 @@ +package cases + +import ( + "io" + + "github.com/ndabAP/assocentity" + "github.com/ndabAP/assocentity/tokenize" + "golang.org/x/text/language" +) + +type ( + Parser func(io.Reader, chan []byte) chan error + Analyses struct { + Entity []string + + Language language.Tag + + Feats tokenize.Features + Parser Parser + Reduct bool + + Ext string + Filenames []string + } + + Translate func([]string) ([]string, error) + + Collector[samples any] func(assocentity.Analyses) samples + Aggregator[samples, aggregated any] func(samples) aggregated + Reporter[aggregated any] func(aggregated, Translate, io.Writer) error + + storer interface { + NewWriter(pref, ext string) (io.WriteCloser, error) + } + + study[samples any, aggregated any] struct { + Subjects map[string]Analyses + + collect Collector[samples] + aggregate Aggregator[samples, aggregated] + report Reporter[aggregated] + store storer + } +) diff --git a/corpus/.gitignore b/corpus/.gitignore new file mode 100644 index 0000000..fb531df --- /dev/null +++ b/corpus/.gitignore @@ -0,0 +1,3 @@ +* +!.gitkeep +!*/ \ No newline at end of file diff --git a/corpus/amnd/Economy_Business_and_Finance_20241224114557/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241224114557/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241225073247/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241225073247/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241226073250/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241226073250/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241227073241/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241227073241/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241228073239/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241228073239/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241230073244/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241230073244/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20241231073248/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20241231073248/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250105073229/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250105073229/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250112073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250112073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250119073221/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250119073221/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250126073221/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250126073221/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250202073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250202073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250209073218/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250209073218/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250223073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250223073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250302073218/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250302073218/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250309073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250309073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250316073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250316073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250406073218/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250406073218/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250413073218/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250413073218/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250420073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250420073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250427073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250427073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250504073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250504073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250511073215/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250511073215/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250518073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250518073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250525073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250525073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250601073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250601073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250608073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250608073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250615100607/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250615100607/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250622073215/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250622073215/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250629073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250629073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250706073215/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250706073215/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250713073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250713073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250720073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250720073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250803073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250803073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250810073218/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250810073218/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250817073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250817073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250824073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250824073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250831073216/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250831073216/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/amnd/Economy_Business_and_Finance_20250907073217/.gitkeep b/corpus/amnd/Economy_Business_and_Finance_20250907073217/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/crftc/.gitkeep b/corpus/crftc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/ds/.gitkeep b/corpus/ds/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/etc/hip_hop/.gitkeep b/corpus/etc/hip_hop/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/etc/pop/.gitkeep b/corpus/etc/pop/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/etc/rock_and_roll/.gitkeep b/corpus/etc/rock_and_roll/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/corpus/gpsc/.gitkeep b/corpus/gpsc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/2015.json b/docs/2015.json deleted file mode 100644 index 1271de8..0000000 --- a/docs/2015.json +++ /dev/null @@ -1,472 +0,0 @@ -[ - { - "distance": 129.27272727272728, - "pos": "ADJ", - "text": "middle" - }, - { - "distance": 146.63636363636363, - "pos": "ADJ", - "text": "vast" - }, - { - "distance": 150.7058823529412, - "pos": "ADJ", - "text": "political" - }, - { - "distance": 170.89655172413794, - "pos": "ADJ", - "text": "conservative" - }, - { - "distance": 173.71428571428572, - "pos": "ADJ", - "text": "xenophobic" - }, - { - "distance": 177.96153846153845, - "pos": "ADJ", - "text": "korean" - }, - { - "distance": 178.69230769230768, - "pos": "ADJ", - "text": "fourth" - }, - { - "distance": 193.5, - "pos": "ADJ", - "text": "irish" - }, - { - "distance": 194.9655172413793, - "pos": "ADJ", - "text": "islamist" - }, - { - "distance": 200.9142857142857, - "pos": "ADJ", - "text": "electronic" - }, - { - "distance": 240.9512195121951, - "pos": "ADP", - "text": "near" - }, - { - "distance": 256.5217391304348, - "pos": "ADP", - "text": "during" - }, - { - "distance": 267.21153846153845, - "pos": "ADP", - "text": "due" - }, - { - "distance": 267.8, - "pos": "ADP", - "text": "via" - }, - { - "distance": 268.1521739130435, - "pos": "ADP", - "text": "@" - }, - { - "distance": 275.8030303030303, - "pos": "ADP", - "text": "per" - }, - { - "distance": 279.38461538461536, - "pos": "ADP", - "text": "towards" - }, - { - "distance": 280.5, - "pos": "ADP", - "text": "under" - }, - { - "distance": 290.53846153846155, - "pos": "ADP", - "text": "below" - }, - { - "distance": 299.2739726027397, - "pos": "ADP", - "text": "after" - }, - { - "distance": 131.6153846153846, - "pos": "ADV", - "text": "nearly" - }, - { - "distance": 172.46153846153845, - "pos": "ADV", - "text": "properly" - }, - { - "distance": 182.95652173913044, - "pos": "ADV", - "text": "north" - }, - { - "distance": 189.45945945945945, - "pos": "ADV", - "text": "reportedly" - }, - { - "distance": 220.1, - "pos": "ADV", - "text": "back" - }, - { - "distance": 221.04166666666666, - "pos": "ADV", - "text": "extremely" - }, - { - "distance": 247.9, - "pos": "ADV", - "text": "about" - }, - { - "distance": 254.30769230769232, - "pos": "ADV", - "text": "later" - }, - { - "distance": 258.08, - "pos": "ADV", - "text": "earlier" - }, - { - "distance": 270.6363636363636, - "pos": "ADV", - "text": "only" - }, - { - "distance": 249.86363636363637, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 278.3636363636364, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 425.31881188118814, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 432.6875, - "pos": "CONJ", - "text": "yet" - }, - { - "distance": 496.1818181818182, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 273.4642857142857, - "pos": "DET", - "text": "an" - }, - { - "distance": 303.0993788819876, - "pos": "DET", - "text": "a" - }, - { - "distance": 326.61538461538464, - "pos": "DET", - "text": "those" - }, - { - "distance": 374.73790322580646, - "pos": "DET", - "text": "this" - }, - { - "distance": 382.11538461538464, - "pos": "DET", - "text": "another" - }, - { - "distance": 388.75714285714287, - "pos": "DET", - "text": "some" - }, - { - "distance": 392.125, - "pos": "DET", - "text": "both" - }, - { - "distance": 403.375, - "pos": "DET", - "text": "there" - }, - { - "distance": 427.83233532934133, - "pos": "DET", - "text": "that" - }, - { - "distance": 446.3076923076923, - "pos": "DET", - "text": "every" - }, - { - "distance": 26.8, - "pos": "NOUN", - "text": "champions" - }, - { - "distance": 61.5625, - "pos": "NOUN", - "text": "operation" - }, - { - "distance": 67.6, - "pos": "NOUN", - "text": "diamond" - }, - { - "distance": 96.3125, - "pos": "NOUN", - "text": "airlines" - }, - { - "distance": 97.26086956521739, - "pos": "NOUN", - "text": "cup" - }, - { - "distance": 101.27272727272727, - "pos": "NOUN", - "text": "photos" - }, - { - "distance": 101.83333333333333, - "pos": "NOUN", - "text": "radioshack" - }, - { - "distance": 106.36, - "pos": "NOUN", - "text": "bankruptcy" - }, - { - "distance": 115.13636363636364, - "pos": "NOUN", - "text": "copies" - }, - { - "distance": 119, - "pos": "NOUN", - "text": "dfb" - }, - { - "distance": 157.07407407407408, - "pos": "NUM", - "text": "2020" - }, - { - "distance": 180.13636363636363, - "pos": "NUM", - "text": "4,000" - }, - { - "distance": 195.4375, - "pos": "NUM", - "text": "3" - }, - { - "distance": 199.5121951219512, - "pos": "NUM", - "text": "4" - }, - { - "distance": 209.9090909090909, - "pos": "NUM", - "text": "6" - }, - { - "distance": 212.16071428571428, - "pos": "NUM", - "text": "40" - }, - { - "distance": 228.91071428571428, - "pos": "NUM", - "text": "2" - }, - { - "distance": 234.5, - "pos": "NUM", - "text": "2018" - }, - { - "distance": 242.0487804878049, - "pos": "NUM", - "text": "2009" - }, - { - "distance": 242.96296296296296, - "pos": "NUM", - "text": "14" - }, - { - "distance": 271.0833333333333, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 298.25757575757575, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 303.3939393939394, - "pos": "PRON", - "text": "itself" - }, - { - "distance": 315.15503875968994, - "pos": "PRON", - "text": "she" - }, - { - "distance": 332.77777777777777, - "pos": "PRON", - "text": "himself" - }, - { - "distance": 373.3802281368821, - "pos": "PRON", - "text": "he" - }, - { - "distance": 379.3333333333333, - "pos": "PRON", - "text": "her" - }, - { - "distance": 382.2, - "pos": "PRON", - "text": "his" - }, - { - "distance": 399.5032258064516, - "pos": "PRON", - "text": "them" - }, - { - "distance": 408.1063829787234, - "pos": "PRON", - "text": "me" - }, - { - "distance": 207.375, - "pos": "PRT", - "text": "over" - }, - { - "distance": 233.31428571428572, - "pos": "PRT", - "text": "back" - }, - { - "distance": 333.68482490272373, - "pos": "PRT", - "text": "'" - }, - { - "distance": 348.6401766004415, - "pos": "PRT", - "text": "up" - }, - { - "distance": 365.86607142857144, - "pos": "PRT", - "text": "down" - }, - { - "distance": 381.1834862385321, - "pos": "PRT", - "text": "off" - }, - { - "distance": 464.7, - "pos": "PRT", - "text": "in" - }, - { - "distance": 469.8125, - "pos": "PRT", - "text": "on" - }, - { - "distance": 562.6744186046511, - "pos": "PRT", - "text": "to" - }, - { - "distance": 122.44, - "pos": "VERB", - "text": "deployed" - }, - { - "distance": 143.9655172413793, - "pos": "VERB", - "text": "check" - }, - { - "distance": 148.6, - "pos": "VERB", - "text": "stood" - }, - { - "distance": 149.9090909090909, - "pos": "VERB", - "text": "submitted" - }, - { - "distance": 150.25, - "pos": "VERB", - "text": "leak" - }, - { - "distance": 163.2, - "pos": "VERB", - "text": "drowned" - }, - { - "distance": 163.8761904761905, - "pos": "VERB", - "text": "filed" - }, - { - "distance": 169.51351351351352, - "pos": "VERB", - "text": "attempting" - }, - { - "distance": 176.22222222222223, - "pos": "VERB", - "text": "concluded" - }, - { - "distance": 176.29166666666666, - "pos": "VERB", - "text": "fix" - } -] \ No newline at end of file diff --git a/docs/angela+merkel.json b/docs/angela+merkel.json deleted file mode 100644 index a00eaf6..0000000 --- a/docs/angela+merkel.json +++ /dev/null @@ -1,462 +0,0 @@ -[ - { - "distance": 21, - "pos": "ADJ", - "text": "tough" - }, - { - "distance": 22.333333333333332, - "pos": "ADJ", - "text": "steadfast" - }, - { - "distance": 26.333333333333332, - "pos": "ADJ", - "text": "open" - }, - { - "distance": 28.333333333333332, - "pos": "ADJ", - "text": "financial" - }, - { - "distance": 28.333333333333332, - "pos": "ADJ", - "text": "liberal" - }, - { - "distance": 32.666666666666664, - "pos": "ADJ", - "text": "joint" - }, - { - "distance": 33.666666666666664, - "pos": "ADJ", - "text": "islamic" - }, - { - "distance": 34.333333333333336, - "pos": "ADJ", - "text": "harsh" - }, - { - "distance": 40.333333333333336, - "pos": "ADJ", - "text": "sure" - }, - { - "distance": 42, - "pos": "ADJ", - "text": "common" - }, - { - "distance": 7, - "pos": "ADP", - "text": "via" - }, - { - "distance": 9, - "pos": "ADP", - "text": "throughout" - }, - { - "distance": 33.333333333333336, - "pos": "ADP", - "text": "against" - }, - { - "distance": 51.166666666666664, - "pos": "ADP", - "text": "while" - }, - { - "distance": 71, - "pos": "ADP", - "text": "under" - }, - { - "distance": 78.33333333333333, - "pos": "ADP", - "text": "among" - }, - { - "distance": 109.33333333333333, - "pos": "ADP", - "text": "outside" - }, - { - "distance": 148, - "pos": "ADP", - "text": "since" - }, - { - "distance": 164.66666666666666, - "pos": "ADP", - "text": "after" - }, - { - "distance": 167.83333333333334, - "pos": "ADP", - "text": "as" - }, - { - "distance": 6, - "pos": "ADV", - "text": "far" - }, - { - "distance": 18.333333333333332, - "pos": "ADV", - "text": "repeatedly" - }, - { - "distance": 36.666666666666664, - "pos": "ADV", - "text": "recently" - }, - { - "distance": 45.333333333333336, - "pos": "ADV", - "text": "strongly" - }, - { - "distance": 50, - "pos": "ADV", - "text": "then" - }, - { - "distance": 65.16666666666667, - "pos": "ADV", - "text": "keenly" - }, - { - "distance": 68.33333333333333, - "pos": "ADV", - "text": "certainly" - }, - { - "distance": 78, - "pos": "ADV", - "text": "north" - }, - { - "distance": 99.33333333333333, - "pos": "ADV", - "text": "very" - }, - { - "distance": 101.33333333333333, - "pos": "ADV", - "text": "long" - }, - { - "distance": 228.75, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 298.3333333333333, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 464.44444444444446, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 79.16666666666667, - "pos": "DET", - "text": "all" - }, - { - "distance": 143.33333333333334, - "pos": "DET", - "text": "a" - }, - { - "distance": 146, - "pos": "DET", - "text": "another" - }, - { - "distance": 239.33333333333334, - "pos": "DET", - "text": "such" - }, - { - "distance": 270.4848484848485, - "pos": "DET", - "text": "which" - }, - { - "distance": 275, - "pos": "DET", - "text": "those" - }, - { - "distance": 279.22222222222223, - "pos": "DET", - "text": "there" - }, - { - "distance": 294.06666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 300, - "pos": "DET", - "text": "this" - }, - { - "distance": 314.16161616161617, - "pos": "DET", - "text": "the" - }, - { - "distance": 4, - "pos": "NOUN", - "text": "subject" - }, - { - "distance": 6, - "pos": "NOUN", - "text": "rose" - }, - { - "distance": 12.333333333333334, - "pos": "NOUN", - "text": "course" - }, - { - "distance": 13.333333333333334, - "pos": "NOUN", - "text": "counterweight" - }, - { - "distance": 14.333333333333334, - "pos": "NOUN", - "text": "number" - }, - { - "distance": 14.666666666666666, - "pos": "NOUN", - "text": "doctrine" - }, - { - "distance": 19, - "pos": "NOUN", - "text": "terror" - }, - { - "distance": 21.333333333333332, - "pos": "NOUN", - "text": "post-truth" - }, - { - "distance": 21.733333333333334, - "pos": "NOUN", - "text": "chancellor" - }, - { - "distance": 22, - "pos": "NOUN", - "text": "nuts" - }, - { - "distance": 38.2, - "pos": "NUM", - "text": "2016" - }, - { - "distance": 39.666666666666664, - "pos": "NUM", - "text": "nine" - }, - { - "distance": 50.666666666666664, - "pos": "NUM", - "text": "two" - }, - { - "distance": 162.66666666666666, - "pos": "NUM", - "text": "five" - }, - { - "distance": 172, - "pos": "NUM", - "text": "one" - }, - { - "distance": 199.33333333333334, - "pos": "NUM", - "text": "90" - }, - { - "distance": 206.33333333333334, - "pos": "NUM", - "text": "47" - }, - { - "distance": 221, - "pos": "NUM", - "text": "four" - }, - { - "distance": 231.28571428571428, - "pos": "NUM", - "text": "2017" - }, - { - "distance": 252.33333333333334, - "pos": "NUM", - "text": "three" - }, - { - "distance": 67.66666666666667, - "pos": "PRON", - "text": "she" - }, - { - "distance": 76, - "pos": "PRON", - "text": "our" - }, - { - "distance": 88.66666666666667, - "pos": "PRON", - "text": "them" - }, - { - "distance": 90, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 149.33333333333334, - "pos": "PRON", - "text": "we" - }, - { - "distance": 173, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 211.125, - "pos": "PRON", - "text": "who" - }, - { - "distance": 261.6666666666667, - "pos": "PRON", - "text": "what" - }, - { - "distance": 306.6666666666667, - "pos": "PRON", - "text": "him" - }, - { - "distance": 325.8333333333333, - "pos": "PRON", - "text": "it" - }, - { - "distance": 109.33333333333333, - "pos": "PRT", - "text": "off" - }, - { - "distance": 133, - "pos": "PRT", - "text": "on" - }, - { - "distance": 245.93103448275863, - "pos": "PRT", - "text": "to" - }, - { - "distance": 267.80434782608694, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 325.1111111111111, - "pos": "PRT", - "text": "down" - }, - { - "distance": 350.77777777777777, - "pos": "PRT", - "text": "'" - }, - { - "distance": 369, - "pos": "PRT", - "text": "out" - }, - { - "distance": 381.5, - "pos": "PRT", - "text": "up" - }, - { - "distance": 1034, - "pos": "PRT", - "text": "away" - }, - { - "distance": 11, - "pos": "VERB", - "text": "wielding" - }, - { - "distance": 12.333333333333334, - "pos": "VERB", - "text": "anticipated" - }, - { - "distance": 18, - "pos": "VERB", - "text": "working" - }, - { - "distance": 19.333333333333332, - "pos": "VERB", - "text": "cited" - }, - { - "distance": 23, - "pos": "VERB", - "text": "depicts" - }, - { - "distance": 26, - "pos": "VERB", - "text": "crack" - }, - { - "distance": 26, - "pos": "VERB", - "text": "trapped" - }, - { - "distance": 30.333333333333332, - "pos": "VERB", - "text": "demand" - }, - { - "distance": 36.666666666666664, - "pos": "VERB", - "text": "stranded" - }, - { - "distance": 37, - "pos": "VERB", - "text": "showing" - } -] \ No newline at end of file diff --git a/docs/assets/index.05fa0a7f.js b/docs/assets/index.05fa0a7f.js deleted file mode 100644 index e3698c3..0000000 --- a/docs/assets/index.05fa0a7f.js +++ /dev/null @@ -1,6855 +0,0 @@ -var hz=Object.defineProperty;var vz=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(vz(e,typeof t!="symbol"?t+"":t,n),n);var Zie=pz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Im(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Gs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(mz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},Cz=()=>!1,Sz=/^on[^a-z]/,Ef=e=>Sz.test(e),Dm=e=>e.startsWith("onUpdate:"),Ln=Object.assign,Am=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_z=Object.prototype.hasOwnProperty,Ht=(e,t)=>_z.call(e,t),Rt=Array.isArray,as=e=>Lf(e)==="[object Map]",kz=e=>Lf(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Bm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",BS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),Rz=Object.prototype.toString,Lf=e=>Rz.call(e),Pz=e=>Lf(e).slice(8,-1),$z=e=>Lf(e)==="[object Object]",Em=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gd=Im(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tz=/-(\w)/g,yo=Nf(e=>e.replace(Tz,(t,n)=>n?n.toUpperCase():"")),Oz=/\B([A-Z])/g,Rl=Nf(e=>e.replace(Oz,"-$1").toLowerCase()),Hf=Nf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ih=Nf(e=>e?`on${Hf(e)}`:""),Ss=(e,t)=>!Object.is(e,t),Fh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let B0;const Iz=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Fz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ES=e=>(e.w&Ci)>0,LS=e=>(e.n&Ci)>0,Bz=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Em(n)&&l.push(a.get("length")):(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"delete":Rt(e)||(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"set":as(e)&&l.push(a.get(fa));break}if(l.length===1)l[0]&&Kv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Kv(Lm(s))}}function Kv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&L0(r);for(const r of n)r.computed||L0(r)}function L0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lz(e,t){var n;return(n=gu.get(e))===null||n===void 0?void 0:n.get(t)}const Nz=Im("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bm)),Hz=Hm(),jz=Hm(!1,!0),Vz=Hm(!0),N0=Uz();function Uz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Pl();const r=zt(this)[t].apply(this,n);return $l(),r}}),e}function Wz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Hm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?l5:qS:t?KS:WS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(N0,o))return Reflect.get(N0,o,i);if(o==="hasOwnProperty")return Wz}const l=Reflect.get(r,o,i);return(Bm(o)?jS.has(o):Nz(o))||(e||dr(r,"get",o),t)?l:Vn(l)?a&&Em(o)?l:l.value:vn(l)?e?xo(l):Fi(l):l}}const Kz=VS(),qz=VS(!0);function VS(e=!1){return function(n,r,o,i){let a=n[r];if(ml(a)&&Vn(a)&&!Vn(o))return!1;if(!e&&(!mu(o)&&!ml(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&Vn(a)&&!Vn(o)))return a.value=o,!0;const l=Rt(n)&&Em(r)?Number(r)e,jf=e=>Reflect.getPrototypeOf(e);function xc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=jf(o),l=r?jm:n?Wm:_s;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function wc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",fa),Reflect.get(e,"size",e)}function H0(e){e=zt(e);const t=zt(this);return jf(t).has.call(t,e)||(t.add(e),Lo(t,"add",e,e)),this}function j0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=jf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ss(t,a)&&Lo(n,"set",e,t):Lo(n,"add",e,t),this}function V0(e){const t=zt(this),{has:n,get:r}=jf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Lo(t,"delete",e,void 0),i}function U0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Lo(e,"clear",void 0,void 0),n}function Sc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?jm:e?Wm:_s;return!e&&dr(l,"iterate",fa),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function _c(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=as(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?jm:t?Wm:_s;return!t&&dr(i,"iterate",s?Wv:fa),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ti(e){return function(...t){return e==="delete"?!1:this}}function Jz(){const e={get(i){return xc(this,i)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!1)},t={get(i){return xc(this,i,!1,!0)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!0)},n={get(i){return xc(this,i,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!1)},r={get(i){return xc(this,i,!0,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_c(i,!1,!1),n[i]=_c(i,!0,!1),t[i]=_c(i,!1,!0),r[i]=_c(i,!0,!0)}),[e,n,t,r]}const[e5,t5,n5,r5]=Jz();function Vm(e,t){const n=t?e?r5:n5:e?t5:e5;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const o5={get:Vm(!1,!1)},i5={get:Vm(!1,!0)},a5={get:Vm(!0,!1)},WS=new WeakMap,KS=new WeakMap,qS=new WeakMap,l5=new WeakMap;function s5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c5(e){return e.__v_skip||!Object.isExtensible(e)?0:s5(Pz(e))}function Fi(e){return ml(e)?e:Um(e,!1,US,o5,WS)}function d5(e){return Um(e,!1,Qz,i5,KS)}function xo(e){return Um(e,!0,Zz,a5,qS)}function Um(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=c5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ha(e){return ml(e)?ha(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function va(e){return ha(e)||ml(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function bu(e){return pu(e,"__v_skip",!0),e}const _s=e=>vn(e)?Fi(e):e,Wm=e=>vn(e)?xo(e):e;function YS(e){pi&&Yr&&(e=zt(e),HS(e.dep||(e.dep=Lm())))}function XS(e,t){e=zt(e);const n=e.dep;n&&Kv(n)}function Vn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return ZS(e,!1)}function GS(e){return ZS(e,!0)}function ZS(e,t){return Vn(e)?e:new u5(e,t)}class u5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:_s(t)}get value(){return YS(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||ml(t);t=n?t:zt(t),Ss(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_s(t),XS(this))}}function qv(e){return Vn(e)?e.value:e}const f5={get:(e,t,n)=>qv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Vn(o)&&!Vn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function QS(e){return ha(e)?e:new Proxy(e,f5)}class h5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lz(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return Vn(r)?r:new h5(e,t,n)}var JS;class v5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[JS]=!1,this._dirty=!0,this.effect=new Nm(t,()=>{this._dirty||(this._dirty=!0,XS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return YS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}JS="__v_isReadonly";function p5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new v5(r,o,i||!o,n)}function gi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=gi(e,t,n,r);return i&&BS(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i>>1;Rs(Qn[r])fo&&Qn.splice(t,1)}function y5(e){Rt(e)?ul.push(...e):(!Fo||!Fo.includes(e,e.allowRecurse?ia+1:ia))&&ul.push(e),t_()}function W0(e,t=ks?fo+1:0){for(;tRs(n)-Rs(r)),ia=0;iae.id==null?1/0:e.id,x5=(e,t)=>{const n=Rs(e)-Rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function r_(e){Yv=!1,ks=!0,Qn.sort(x5);const t=Zr;try{for(fo=0;foPn(v)?v.trim():v)),f&&(o=n.map(zz))}let l,s=r[l=Ih(t)]||r[l=Ih(yo(t))];!s&&i&&(s=r[l=Ih(Rl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function o_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=o_(c,t,!0);d&&(l=!0,Ln(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):Ln(a,i),vn(e)&&r.set(e,a),a)}function Uf(e,t){return!e||!Ef(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Rl(t))||Ht(e,t))}let Un=null,i_=null;function yu(e){const t=Un;return Un=e,i_=e&&e.type.__scopeId||null,t}function md(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ny(-1);const i=yu(t);let a;try{a=e(...o)}finally{yu(i),r._d&&ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=yu(e);try{if(n.shapeFlag&4){const x=o||r;m=co(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=co(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:C5(s)}}catch(x){ds.length=0,Vf(x,e,1),m=zn(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Dm)&&(g=S5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,yu(y),m}const C5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ef(n))&&((t||(t={}))[n]=e[n]);return t},S5=(e,t)=>{const n={};for(const r in e)(!Dm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?K0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function P5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):y5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Un;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Ym(e,null,t)}const kc={};function rt(e,t,n){return Ym(e,t,n)}function Ym(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Az()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(Vn(e)?(s=()=>e.value,c=mu(e)):ha(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ha(C)||mu(C)),s=()=>e.map(C=>{if(Vn(C))return C.value;if(ha(C))return sa(C);if(Tt(C))return gi(C,l,2)})):Tt(e)?t?s=()=>gi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>sa(C())}let f,h=C=>{f=g.onStop=()=>{gi(C,l,4)}},v;if(zs)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(kc):kc;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Ss(x,p[w])):Ss(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===kc?void 0:d&&p[0]===kc?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>qm(b));const g=new Nm(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Am(l.scope.effects,g)};return v&&v.push(y),y}function $5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?a_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;bl(this);const l=Ym(o,i.bind(r),n);return a?bl(a):pa(),l}function a_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sa(n,t)});else if($z(e))for(const n in e)sa(e[n],t);return e}function l_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],T5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Ko(),r=l_();let o;return()=>{const i=t.default&&Xm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ah(a);const c=q0(a);if(!c)return Ah(a);const d=Ps(c,l,r,n);$s(c,d);const f=n.subTree,h=f&&q0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!aa(c,h)||v)){const b=Ps(h,l,r,n);if($s(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ah(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=c_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},s_=T5;function c_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ps(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=c_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&aa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Ps(T,t,n,r)}};return _}function Ah(e){if(Wf(e))return e=nr(e),e.children=null,e}function q0(e){return Wf(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function Gm(e,t){d_(e,"a",t)}function Zs(e,t){d_(e,"da",t)}function d_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Kf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&O5(r,t,n,o),o=o.parent}}function O5(e,t,n,r){const o=Kf(t,e,r,!0);Qs(()=>{Am(r[t],o)},n)}function Kf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Pl(),bl(n);const l=Mr(t,n,e,a);return pa(),$l(),l});return r?o.unshift(i):o.push(i),i}}const Uo=e=>(t,n=wn)=>(!zs||e==="sp")&&Kf(e,(...r)=>t(...r),n),Wo=Uo("bm"),Mt=Uo("m"),Zm=Uo("bu"),Qm=Uo("u"),Dt=Uo("bum"),Qs=Uo("um"),z5=Uo("sp"),M5=Uo("rtg"),I5=Uo("rtc");function F5(e,t=wn){Kf("ec",e,t)}function sn(e,t){const n=Un;if(n===null)return e;const r=Xf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lOs(t)?!(t.type===xr||t.type===$t&&!f_(t.children)):!0)?e:null}const Xv=e=>e?__(e)?Xf(e)||e.proxy:Xv(e.parent):null,ss=Ln(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xv(e.parent),$root:e=>Xv(e.root),$emit:e=>e.emit,$options:e=>eb(e),$forceUpdate:e=>e.f||(e.f=()=>qm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>$5.bind(e)}),Bh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),E5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Bh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Gv&&(a[t]=0)}}const d=ss[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Bh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Bh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ss,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Gv=!0;function L5(e){const t=eb(e),n=e.proxy,r=e.ctx;Gv=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&N5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Fi(U))}if(Gv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)h_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&X0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Wo,f),E(Mt,h),E(Zm,v),E(Qm,p),E(Gm,b),E(Zs,m),E(F5,T),E(I5,k),E(M5,_),E(Dt,y),E(Qs,x),E(z5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function N5(e,t,n=Zr,r=!1){Rt(e)&&(e=Zv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),Vn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function X0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){const o=r.includes(".")?a_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>h_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function eb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>xu(s,c,a,!0)),xu(s,t,a)),vn(t)&&i.set(t,s),s}function xu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xu(e,i,n,!0),o&&o.forEach(a=>xu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=H5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const H5={data:G0,props:ea,emits:ea,methods:ea,computed:ea,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:ea,directives:ea,watch:V5,provide:G0,inject:j5};function G0(e,t){return t?e?function(){return Ln(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function j5(e,t){return ea(Zv(e),Zv(t))}function Zv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=p_(f,t,!0);Ln(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,dl),dl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function Z0(e){return e[0]!=="$"}function Q0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J0(e,t){return Q0(e)===Q0(t)}function ey(e,t){return Rt(t)?t.findIndex(n=>J0(n,e)):Tt(t)&&J0(t,e)?0:-1}const g_=e=>e[0]==="_"||e==="$stable",tb=e=>Rt(e)?e.map(co):[co(e)],K5=(e,t,n)=>{if(t._n)return t;const r=md((...o)=>tb(t(...o)),n);return r._c=!1,r},m_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(g_(o))continue;const i=e[o];if(Tt(i))t[o]=K5(o,i,r);else if(i!=null){const a=tb(i);t[o]=()=>a}}},b_=(e,t)=>{const n=tb(t);e.slots.default=()=>n},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),pu(t,"_",n)):m_(t,e.slots={})}else e.slots={},t&&b_(e,t);pu(e.slots,Yf,1)},Y5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ln(o,t),!n&&l===1&&delete o._):(i=!t.$stable,m_(t,o)),a=t}else t&&(b_(e,t),a={default:1});if(i)for(const l in o)!g_(l)&&!(l in a)&&delete o[l]};function y_(){return{app:null,config:{isNativeTag:Cz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let X5=0;function G5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=y_(),a=new Set;let l=!1;const s=i.app={_uid:X5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:R_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=zn(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Xf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Jv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Jv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(ls(r)&&!o)return;const i=r.shapeFlag&4?Xf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):Vn(c)&&(c.value=null)),Tt(s))gi(s,l,12,[a,d]);else{const h=Pn(s),v=Vn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Am(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=P5;function Z5(e){return Q5(e)}function Q5(e,t){const n=Iz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!aa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case qf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Eh:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Jv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Hi(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!gd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&ro(Z,ce,H)}Ae&&Hi(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&ro(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Hi(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&ji(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"beforeUpdate"),Y&&ji(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!gd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(gd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&nb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(Wf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=zn(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(_5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,b5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;ji(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&Fh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&ro(qe,Pe,fe,Ae),ji(H,!0);const ct=Dh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&k5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>ro(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=ls(W);if(ji(H,!1),Pe&&Fh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&ro(fe,Ke,W),ji(H,!0),ne&&Me){const ct=()=>{H.subTree=Dh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Dh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>ro(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&ls(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Nm(te,()=>qm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,ji(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,W5(H,W.props,ce,Y),Y5(H,W.children,Y),Pl(),W0(),$l()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||dl,W=W||dl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?si(W[Z]):co(W[Z]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?si(W[ge]):co(W[ge]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?si(W[Z]):co(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&aa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?J5(Xe):dl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Jv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ls(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&ro(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Hi(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&ro(Ke,W,H),Pe&&Hi(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Eh){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&Fh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),W0(),n_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:G5(Oe,pe)}}function ji({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const e3=e=>e.__isTeleport,cs=e=>e&&(e.disabled||e.disabled===""),ty=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ep=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},t3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=cs(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=ep(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||ty(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=cs(e.props),$=T?n:k,R=T?w:_;if(a=a||ty(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),nb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||Pc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ep(t.props,p);I&&Pc(t,I,null,c,0)}else T&&Pc(t,k,_,c,1)}x_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!cs(h))&&(i(c),l&16))for(let v=0;v0?Xr||dl:null,r3(),Ts>0&&Xr&&Xr.push(e),e}function C_(e,t,n,r,o){return o3(zn(e,t,n,r,o,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}const Yf="__vInternal",S_=({key:e})=>e!=null?e:null,bd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||Vn(e)||Tt(e)?{i:Un,r:e,k:t,f:!!n}:e:null;function Bo(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&S_(t),ref:t&&bd(t),scopeId:i_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return l?(rb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),Ts>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const zn=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===D5)&&(e=xr),Os(e)){const l=nr(e,t,!0);return n&&rb(l,n),Ts>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Fm(l)),vn(s)&&(va(s)&&!Rt(s)&&(s=Ln({},s)),t.style=Gs(s))}const a=Pn(e)?1:R5(e)?128:e3(e)?64:vn(e)?4:Tt(e)?2:0;return Bo(e,t,n,r,o,a,i,!0)}function a3(e){return e?va(e)||Yf in e?Ln({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&S_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(bd(t)):[o,bd(t)]:bd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qr(e=" ",t=0){return zn(qf,null,e,t)}function co(e){return e==null||typeof e=="boolean"?zn(xr):Rt(e)?zn($t,null,e.slice()):typeof e=="object"?si(e):zn(qf,null,String(e))}function si(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function rb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),rb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yf in t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[Qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Un,bl=e=>{wn=e,e.scope.on()},pa=()=>{wn&&wn.scope.off(),wn=null};function __(e){return e.vnode.shapeFlag&4}let zs=!1;function d3(e,t=!1){zs=t;const{props:n,children:r}=e.vnode,o=__(e);U5(e,n,o,t),q5(e,r);const i=o?u3(e,t):void 0;return zs=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bu(new Proxy(e.ctx,E5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;bl(e),Pl();const i=gi(r,e,0,[e.props,o]);if($l(),pa(),BS(i)){if(i.then(pa,pa),t)return i.then(a=>{ry(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else ry(e,i,t)}else k_(e,t)}function ry(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=QS(t)),k_(e,n)}let oy;function k_(e,t,n){const r=e.type;if(!e.render){if(!t&&oy&&!r.render){const o=r.template||eb(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Ln(Ln({isCustomElement:i,delimiters:l},a),s);r.render=oy(o,c)}}e.render=r.render||Zr}bl(e),Pl(),L5(e),$l(),pa()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Xf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QS(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>p5(e,t,zs);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Os(t)?zn(e,null,[t]):zn(e,t):zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),zn(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),R_="3.2.47",b3="http://www.w3.org/2000/svg",la=typeof document<"u"?document:null,iy=la&&la.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?la.createElementNS(b3,e):la.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>la.createTextNode(e),createComment:e=>la.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>la.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{iy.innerHTML=r?`${e}`:e;const l=iy.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&tp(r,i,"");for(const i in n)tp(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ay=/\s*!important$/;function tp(e,t,n){if(Rt(n))n.forEach(r=>tp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);ay.test(n)?e.setProperty(Rl(r),n.replace(ay,""),"important"):e[r]=n}}const ly=["Webkit","Moz","ms"],Lh={};function C3(e,t){const n=Lh[t];if(n)return n;let r=yo(t);if(r!=="filter"&&r in e)return Lh[t]=r;r=Hf(r);for(let o=0;oNh||(T3.then(()=>Nh=0),Nh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Ef(t)?Dm(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dy.test(t)&&Pn(n)?!1:t in e}const ni="transition",Al="animation",It=(e,{slots:t})=>u(s_,$_(e),t);It.displayName="Transition";const P_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=Ln({},s_.props,P_),Vi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},uy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function $_(e){const t={};for(const z in e)z in P_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{ai(z,A?d:l),ai(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,ai(z,f),ai(z,v),ai(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Vi(j,[A,E]),fy(()=>{ai(A,z?s:i),zo(A,z?d:l),uy(j)||hy(A,r,b,E)})};return Ln(t,{onBeforeEnter(z){Vi(g,[z]),zo(z,i),zo(z,a)},onBeforeAppear(z){Vi(k,[z]),zo(z,s),zo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);zo(z,f),O_(),zo(z,h),fy(()=>{!z._isLeaving||(ai(z,f),zo(z,v),uy(x)||hy(z,r,m,L))}),Vi(x,[z,L])},onEnterCancelled(z){$(z,!1),Vi(C,[z])},onAppearCancelled(z){$(z,!0),Vi(T,[z])},onLeaveCancelled(z){R(z),Vi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return Mz(e)}function zo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function fy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function hy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=T_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ni}Delay`),i=r(`${ni}Duration`),a=vy(o,i),l=r(`${Al}Delay`),s=r(`${Al}Duration`),c=vy(l,s);let d=null,f=0,h=0;t===ni?a>0&&(d=ni,f=a,h=i.length):t===Al?c>0&&(d=Al,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ni:Al:null,h=d?d===ni?i.length:s.length:0);const v=d===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function vy(e,t){for(;e.lengthpy(n)+py(e[r])))}function py(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function O_(){return document.body.offsetHeight}const z_=new WeakMap,M_=new WeakMap,I_={name:"TransitionGroup",props:Ln({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=l_();let o,i;return Qm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);O_(),l.forEach(s=>{const c=s.el,d=c.style;zo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,ai(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=$_(a);let s=a.tag||$t;o=i,i=t.default?Xm(t.default()):[];for(let c=0;cdelete e.mode;I_.props;const Gf=I_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){M_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=z_.get(e),n=M_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=T_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Bl(e,!0),r.enter(e)):r.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e._vod:"none"}const V3=Ln({patchProp:I3},y3);let gy;function U3(){return gy||(gy=Z5(V3))}const F_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function ec(e){return e+.5|0}const ui=(e,t,n)=>Math.max(Math.min(e,n),t);function Jl(e){return ui(ec(e*2.55),0,255)}function mi(e){return ui(ec(e*255),0,255)}function Do(e){return ui(ec(e/2.55)/100,0,1)}function my(e){return ui(ec(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},np=[..."0123456789ABCDEF"],K3=e=>np[e&15],q3=e=>np[(e&240)>>4]+np[e&15],$c=e=>(e&240)>>4===(e&15),Y3=e=>$c(e.r)&&$c(e.g)&&$c(e.b)&&$c(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=D_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function ib(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(mi)}function ab(e,t,n){return ib(D_,e,t,n)}function nM(e,t,n){return ib(eM,e,t,n)}function rM(e,t,n){return ib(J3,e,t,n)}function A_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Jl(+t[5]):mi(+t[5]));const o=A_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ab(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=ob(e);n[0]=A_(n[0]+t),n=ab(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=ob(e),n=t[0],r=my(t[1]),o=my(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Do(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const by={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(yy),n=Object.keys(by);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Tc;function sM(e){Tc||(Tc=lM(),Tc.transparent=[0,0,0,0]);const t=Tc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Jl(a):ui(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Jl(r):ui(r,0,255)),o=255&(t[4]?Jl(o):ui(o,0,255)),i=255&(t[6]?Jl(i):ui(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Do(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=qa(Do(e.r)),o=qa(Do(e.g)),i=qa(Do(e.b));return{r:mi(jh(r+n*(qa(Do(t.r))-r))),g:mi(jh(o+n*(qa(Do(t.g))-o))),b:mi(jh(i+n*(qa(Do(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Oc(e,t,n){if(e){let r=ob(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ab(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function B_(e,t){return e&&Object.assign(t||{},e)}function xy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=mi(e[3]))):(t=B_(e,{r:0,g:0,b:0,a:1}),t.a=mi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class Ms{constructor(t){if(t instanceof Ms)return t;const n=typeof t;let r;n==="object"?r=xy(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=B_(this._rgb);return t&&(t.a=Do(t.a)),t}set rgb(t){this._rgb=xy(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new Ms(this.rgb)}alpha(t){return this._rgb.a=mi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ec(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Oc(this._rgb,2,t),this}darken(t){return Oc(this._rgb,2,-t),this}saturate(t){return Oc(this._rgb,1,t),this}desaturate(t){return Oc(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function To(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return En(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function yl(e,t){return(wy[t]||(wy[t]=yM(t)))(e)}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",Si=e=>typeof e=="function",Cy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,go=2*Kn,Su=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,Ui=Kn/4,Sy=Kn*2/3,fi=Math.log10,bi=Math.sign;function yd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function _u(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function cb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const rp=(e,t,n,r)=>cb(e,n,r?o=>{const i=e[o][t];return ie[o][t]cb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+lb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ry(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(N_.forEach(i=>{delete e[i]}),delete e._chartjs)}function H_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function V_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,j_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const db=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,zc=e=>e===0||e===1,Py=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*go/n)),$y=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*go/n)+1,fs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zc(e)?e:Py(e,.075,.3),easeOutElastic:e=>zc(e)?e:$y(e,.075,.3),easeInOutElastic(e){return zc(e)?e:e<.5?.5*Py(e*2,.1125,.45):.5+.5*$y(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-fs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?fs.easeInBounce(e*2)*.5:fs.easeOutBounce(e*2-1)*.5+.5};function U_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ty(e){return U_(e)?e:new Ms(e)}function Vh(e){return U_(e)?e:new Ms(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Oy=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Oy.get(n);return r||(r=new Intl.NumberFormat(e,t),Oy.set(n,r)),r}function ub(e,t,n){return BM(t,n).format(e)}const W_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=fi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),ub(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(fi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?W_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Zf={formatters:W_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Sa=Object.create(null),op=Object.create(null);function hs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Vh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Vh(o.borderColor),this.hoverColor=(r,o)=>Vh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Uh(this,t,n)}get(t){return hs(this,t)}describe(t,n){return Uh(op,t,n)}override(t,n){return Uh(Sa,t,n)}route(t,n,r,o){const i=hs(this,t),a=hs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ku(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function q_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function Y_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function X_(e){return Y_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ga(e){return Y_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=X_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Mc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Fa(e,t){return Object.assign(Object.create(e),t)}function vb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=J_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>vb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Z_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Fy(a).includes(l)},ownKeys(a){return Fy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function xl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:G_(e,r),setContext:i=>xl(e,i,n,r),override:i=>xl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return Z_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function G_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Si(n)?n:()=>n,isIndexable:Si(r)?r:()=>r}}const ZM=(e,t)=>e?e+lb(t):t,pb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Z_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return Si(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),pb(t,l)&&(l=xl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),pb(e,t)&&(t=gb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=gb(c,o,e,d);t.push(xl(f,i,a&&a[e],l))}}return t}function Q_(e,t,n){return Si(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?yl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Q_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function gb(e,t,n,r){const o=t._rootScopes,i=Q_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Iy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=Iy(l,a,i,s,r),s===null)?!1:vb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function Iy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=J_(ZM(i,e),n),Fr(o))return pb(e,o)?gb(n,r,e,o):o}function J_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function Fy(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function ek(){return typeof window<"u"&&typeof document<"u"}function mb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Qf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Qf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function ma(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function ta(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Qf(n),i=o.boxSizing==="border-box",a=ma(o,"padding"),l=ma(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=mb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Qf(i),s=ma(l,"border","width"),c=ma(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Ru(l.maxWidth,i,"clientWidth"),o=Ru(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Su,maxHeight:o||Su}}const Ic=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Qf(e),i=ma(o,"margin"),a=Ru(o.maxWidth,e,"clientWidth")||Su,l=Ru(o.maxHeight,e,"clientHeight")||Su,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ma(o,"border","width"),v=ma(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Ic(Math.min(c,a,s.maxWidth)),d=Ic(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Ic(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Ic(Math.floor(d*r))),{width:c,height:d}}function Dy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Ay(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fl(e,t,n){return e?h4(t,n):v4()}function tk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=j_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Mo=new p4;const By="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Ty(e||By),o=r.valid&&Ty(t||By);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Mc([t.to,o,i,t.from]);const a=Mc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=fs[t.easing]||fs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Mc([t.to,n,o,t.from]),this._from=Mc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Mo.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function jy(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Fa(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Fa(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function El(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Kh=e=>e==="reset"||e==="none",Vy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ok(n,!0),values:null};class vs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ny(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&El(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Wh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Wh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Wh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ry(this._data,this),t._stacked&&El(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){Ry(r,this);const o=this._cachedMeta;El(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ny(n.vScale,n),n.stack!==r.stack&&(o=!0,El(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&jy(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Vy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new rk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Kh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Kh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Kh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ik(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Uy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:tc,modes:{index(e,t,n,r){const o=ta(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=ta(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Yy(e,t){return e.filter(n=>ak.indexOf(n.pos)===-1&&n.box.axis===t)}function Nl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Nl(Ll(t,"left"),!0),o=Nl(Ll(t,"right")),i=Nl(Ll(t,"top"),!0),a=Nl(Ll(t,"bottom")),l=Yy(t,"x"),s=Yy(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Ll(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function Xy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function lk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&lk(a,i.getPadding());const l=Math.max(0,t.outerWidth-Xy(a,e,"left","right")),s=Math.max(0,t.outerHeight-Xy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function es(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);lk(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);es(l.fullSize,v,f,p),es(s,v,f,p),es(c,v,f,p)&&es(s,v,f,p),G4(v),Gy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Gy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class sk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends sk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[wd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Zy(o)){const i=Ay(e,"width");i!==void 0&&(e.width=i)}if(Zy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Ay(e,"height");i!==void 0&&(e.height=i)}return e}const ck=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,ck)}function nI(e,t,n){e.canvas.removeEventListener(t,n,ck)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=ta(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Pu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.addedNodes,r),a=a&&!Pu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.removedNodes,r),a=a&&!Pu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ds=new Map;let Qy=0;function dk(){const e=window.devicePixelRatio;e!==Qy&&(Qy=e,Ds.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Ds.size||window.addEventListener("resize",dk),Ds.set(e,t)}function lI(e){Ds.delete(e),Ds.size||window.removeEventListener("resize",dk)}function sI(e,t,n){const r=e.canvas,o=r&&mb(r);if(!o)return;const i=V_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Gh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=V_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends sk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wd])return!1;const r=n[wd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[wd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Gh,detach:Gh,resize:Gh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=mb(t);return!!(n&&n.isConnected)}}function uI(e){return!ek()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class _i{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _u(this.x)&&_u(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(_i,"defaults",{}),Nt(_i,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Dc(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Jy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function ex(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Hl(t.grid)-n.padding-tx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=sb(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=tx(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Hl(i)+s):(t.height=this.maxHeight,t.width=Hl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=hi(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Wi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Hl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Wi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Ac(vs,"datasets",!0),this.elements=new Ac(_i,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Da,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=lb(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(lo.plugins.items);for(let i=0;i1&&$u(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Sa[e.type]||{scales:{}},r=t.scales||{},o=ip(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=$u(a,l),c=DI(s,o),d=n.scales||{};i[a]=us(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||ip(l,t),d=(Sa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),us(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];us(l,[Cn.scales[l.type],Cn.scale])}),i}function uk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function fk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=fk(e.data),uk(e),e}const nx=new Map,hk=new Set;function Bc(e,t){let n=nx.get(e);return n||(n=t(),nx.set(e,n),hk.add(n)),n}const jl=(e,t,n)=>{const r=yl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),uk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>jl(s,t,f))),d.forEach(f=>jl(s,o,f)),d.forEach(f=>jl(s,Sa[i]||{},f)),d.forEach(f=>jl(s,Cn,f)),d.forEach(f=>jl(s,op,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Sa[n]||{},Cn.datasets[n]||{},{type:n},Cn,op]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=rx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=Si(r)?r():r;const c=this.createResolver(t,r,l);s=xl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=rx(this._resolverCache,t,r);return Wt(n)?xl(i,n,void 0,o):i}}function rx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:vb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Si(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=G_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(Si(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function ox(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function ix(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function vk(e){return ek()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cd={},lx=e=>{const t=vk(e);return Object.values(Cd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class uo{static register(...t){lo.add(...t),sx()}static unregister(...t){lo.remove(...t),sx()}constructor(t,n){const r=this.config=new LI(n),o=vk(t),i=lx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Cd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Mo.listen(this,"complete",ax),Mo.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return lo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zy(this.canvas,this.ctx),this}stop(){return Mo.stop(this),this}resize(t,n){Mo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Dy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=$u(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=$u(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||ox(l.position,c)!==ox(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=lo.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ix("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Cy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&fb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&hb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return q_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Fa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Mo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!wu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!wu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(uo,"defaults",Cn),Nt(uo,"instances",Cd),Nt(uo,"overrides",Sa),Nt(uo,"registry",lo),Nt(uo,"version",jI),Nt(uo,"getChart",lx);function sx(){return en(uo.instances,e=>e._plugins.invalidate())}function pk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function vi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=X_(r);return{t:vi(o.top,i.top,0,n),r:vi(o.right,i.right,0,t),b:vi(o.bottom,i.bottom,0,n),l:vi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=ga(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:vi(!s||l.top||l.left,i.topLeft,0,a),topRight:vi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:vi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:vi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=pk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Zh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&pk(e,r);return l&&(o||sl(t,l.left,l.right))&&(i||sl(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Sd extends _i{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Fs:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Qh(a,n,i)),t.clip(),l(t,Qh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Qh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Zh(this,t,n,r)}inXRange(t,n){return Zh(this,t,null,n)}inYRange(t,n){return Zh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(Sd,"id","bar"),Nt(Sd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(Sd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends _i{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Mn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=fl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fb(t,this),this._draw(),hb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=fl(t.rtl,this.left,this.width),c=Mn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=cx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;K_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=ga(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Fs(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){_a(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},tk(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=gk(k,L)}else v.y+=w}),nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),o=Jn(n.padding);if(!n.display)return;const i=fl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(db(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,_a(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(sl(t,this.left,this.right)&&sl(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=gk(t,n)),r}function gk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class mk extends _i{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);_a(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:db(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new mk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:mk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ts={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ux(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Mn(t.bodyFont),c=Mn(t.titleFont),d=Mn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function fx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function hx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=ga(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ec(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return ao([],Io(e))}function hF(e,t,n){return Fa(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function px(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bk={beforeTitle:To,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?bk[t].call(n,r):o}class ap extends _i{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new rk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=ao(l,Io(o)),l=ao(l,Io(i)),l=ao(l,Io(a)),l}getBeforeBody(t,n){return vx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=px(r,i);ao(a.before,Io(or(l,"beforeLabel",this,i))),ao(a.lines,or(l,"label",this,i)),ao(a.after,Io(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return vx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=ao(l,Io(o)),l=ao(l,Io(i)),l=ao(l,Io(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=px(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=ts[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=ux(this,r),c=Object.assign({},l,s),d=fx(this.chart,r,c),f=hx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=ga(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=fl(r.rtl,this.x,this.width);for(t.x=Ec(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Fs(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Fs(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Mn(r.bodyFont);let h=f.lineHeight,v=0;const p=fl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ec(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=ts[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ux(this,t),s=Object.assign({},a,this._size),c=fx(n,t,s),d=hx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),tk(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!wu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!wu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=ts[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(ap,"positioners",ts);var vF={id:"tooltip",_element:ap,positioners:ts,afterInit(e,t,n){n&&(e.tooltip=new ap({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function gx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(lp,"id","category"),Nt(lp,"defaults",{ticks:{callback:gx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=_y((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=_y($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,yd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(ky(w),ky(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=bi(o),c=bi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&L_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return ub(t,this.chart.options.locale,this.options.ticks.format)}}class sp extends Tu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=hi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(sp,"id","linear"),Nt(sp,"defaults",{ticks:{callback:Zf.formatters.numeric}});const As=e=>Math.floor(fi(e)),qi=(e,t)=>Math.pow(10,As(e)+t);function bx(e){return e/Math.pow(10,As(e))===1}function yx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=As(n);for(;yx(e,t,r)>10;)r++;for(;yx(e,t,r)<10;)r--;return Math.min(r,As(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=As(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:bx(v),significand:f}),r}class xx extends Da{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Tu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return En(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?Math.max(0,t):null,this.max=En(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!En(this._userMin)&&(this.min=t===qi(this.min,0)?qi(this.min,-1):qi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(qi(r,-1)),a(qi(o,1)))),r<=0&&i(qi(o,-1)),o<=0&&a(qi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&L_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ub(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=fi(t),this._valueRange=fi(this.max)-fi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(fi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(xx,"id","logarithmic"),Nt(xx,"defaults",{ticks:{callback:Zf.formatters.logarithmic,major:{enabled:!0}}});function cp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=cp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Mn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=ga(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Fs(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}_a(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function yk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,go);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=go/(this._pointLabels.length||1),r=this.options.startAngle||0;return so(t*n+hi(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Mn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}_a(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Lc,"id","radialLinear"),Nt(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Lc,"descriptors",{angleLines:{_fallback:"grid"}});const Jf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Jf);function zF(e,t){return e-t}function Cx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),En(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(_u(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Sx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Jf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function kx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Sx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=_u(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=rp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=rp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Rx extends Ou{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Nc(n,this.min),this._tableRange=Nc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...xk},AF=R_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Ya(e){return va(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return va(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function wk(e,t){e.labels=t}function Ck(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return wk(n,e.labels),Ck(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=GS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new uo(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=Ya(d),g=Ya(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=Ya(f.labels),g=Ya(v.labels),y=Ya(f.datasets),C=Ya(v.datasets);m!==g&&(wk(p.config.data,m),b=!0),y&&y!==C&&(Ck(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return uo.register(t),J({props:xk,setup(n,r){let{expose:o}=r;const i=GS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",xd),Px=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};uo.register(aF,vF,oF,Sd,lp,sp);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(Px.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=Px.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Fi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="ADJ",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),KF=Bo("h1",null,"entityscrape",-1),qF=Bo("p",null,"This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS).",-1),YF=Bo("p",null,[Qr("The Go package "),Bo("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Qr(" was used for creating this experiment. You can create new ones with updating the "),Bo("code",null,"source/entities.txt"),Qr(" file and run the CLI with the provided Visual Studio Code debug configuration.")],-1),XF=Bo("small",null,[Bo("b",null,"Data source"),Qr(": "),Bo("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function GF(e,t,n,r,o,i){const a=Rc("n-select"),l=Rc("n-form-item"),s=Rc("Bar"),c=Rc("n-space");return w_(),C_(c,{vertical:""},{default:md(()=>[KF,qF,YF,zn(l,{size:"small",label:"Entity"},{default:md(()=>[zn(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),zn(l,{size:"small",label:"Part of speech"},{default:md(()=>[zn(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),zn(s,{options:{indexAxis:"y",responsive:!0},data:e.chartData},null,8,["data"]),XF]),_:1})}const ZF=VF(WF,[["render",GF]]);let zu=[];const Sk=new WeakMap;function QF(){zu.forEach(e=>e(...Sk.get(e))),zu=[]}function ka(e,...t){Sk.set(e,t),!zu.includes(e)&&zu.push(e)===1&&requestAnimationFrame(QF)}function JF(e){return e.nodeType===9?null:e.parentNode}function _k(e){if(e===null)return null;const t=JF(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _k(t)}function yb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function eD(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Vl(e,t){var n;if(e==null)return;const r=eD(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function yi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function tD(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $x={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function kk(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function _d(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function ci(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function dp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function up(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function fp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Co="^\\s*",So="\\s*$",ki="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ca="([0-9A-Fa-f])",da="([0-9A-Fa-f]{2})",nD=new RegExp(`${Co}hsl\\s*\\(${gr},${ki},${ki}\\)${So}`),rD=new RegExp(`${Co}hsv\\s*\\(${gr},${ki},${ki}\\)${So}`),oD=new RegExp(`${Co}hsla\\s*\\(${gr},${ki},${ki},${gr}\\)${So}`),iD=new RegExp(`${Co}hsva\\s*\\(${gr},${ki},${ki},${gr}\\)${So}`),aD=new RegExp(`${Co}rgb\\s*\\(${gr},${gr},${gr}\\)${So}`),lD=new RegExp(`${Co}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${So}`),xb=new RegExp(`${Co}#${ca}${ca}${ca}${So}`),wb=new RegExp(`${Co}#${da}${da}${da}${So}`),Cb=new RegExp(`${Co}#${ca}${ca}${ca}${ca}${So}`),Sb=new RegExp(`${Co}#${da}${da}${da}${da}${So}`);function ir(e){return parseInt(e,16)}function hl(e){try{let t;if(t=oD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=nD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ba(e){try{let t;if(t=iD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=rD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Bn(e){try{let t;if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=aD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=lD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Eo(t[13])];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=Sb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Eo(ir(t[4])/255)];if(t=Cb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Eo(ir(t[4]+t[4])/255)];if(e in $x)return Bn($x[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function sD(e){return e>1?1:e<0?0:e}function cD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function hp(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${sD(r)})`}function Jh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=Bn(e)),Array.isArray(t)||(t=Bn(t));const n=e[3],r=t[3],o=Eo(n+r-n*r);return hp(Jh(e[0],n,t[0],r,o),Jh(e[1],n,t[1],r,o),Jh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e);return t.alpha?hp(n,r,o,t.alpha):hp(n,r,o,i)}function Hc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e),{lightness:a=1,alpha:l=1}=t;return mo([n*a,r*a,o*a,i*l])}function Eo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function wo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vp(e){const[t,n,r]=Array.isArray(e)?e:Bn(e);return cD(t,n,r)}function mo(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Eo(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function pp(e){return`hsv(${wo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ya(e){const[t,n,r]=e;return 3 in e?`hsva(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsva(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function gp(e){return`hsl(${wo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function xi(e){const[t,n,r]=e;return 3 in e?`hsla(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsla(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function wi(e){if(typeof e=="string"){let r;if(r=wb.exec(e))return`${r[0]}FF`;if(r=Sb.exec(e))return r[0];if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Cb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function ps(e){if(typeof e=="string"){let t;if(t=wb.exec(e))return t[0];if(t=Sb.exec(e))return t[0].slice(0,7);if(t=xb.exec(e)||Cb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function Rk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Aa(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Nn(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Qr(e):typeof e=="number"?Qr(String(e)):null,Ox=new Set;function uD(e,t){const n=`[naive/${e}]: ${t}`;Ox.has(n)||(Ox.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Dn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function mp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function rc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Mu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Pk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function $k(e){return t=>{t?e.value=t.$el:e.value=null}}function Tl(e){return e.some(t=>Os(t)?!(t.type===xr||t.type===$t&&!Tl(t.children)):!0)?e:null}function vt(e,t){return e&&Tl(e())||t()}function Ra(e,t,n){return e&&Tl(e(t))||n(t)}function Ct(e,t){const n=e&&Tl(e());return t(n||null)}function fD(e,t,n){const r=e&&Tl(e(t));return n(r||null)}function xa(e){return!(e&&Tl(e()))}function gs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function hD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const bp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),vD=/^(\d|\.)+$/,zx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(vD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=zx.exec(e);return o?e.replace(zx,String((Number(o[0])+n)*t)):e}return e}function Pa(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function pD(e){let t=0;for(let n=0;n{let o=pD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function bD(e,t){const n=[];return t.split(Tk).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function yD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=mD(t,n):t=bD(t,n))}),t.join(", ").replace(gD," ")}function Mx(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function eh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function xD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jc(e){return e?/^\s*@(s|m)/.test(e):!1}const wD=/[A-Z]/g;function Ok(e){return e.replace(wD,t=>"-"+t.toLowerCase())}function CD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Ok(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function SD(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ix(e,t,n,r){if(!t)return"";const o=SD(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Ok(l),s!=null&&a.push(` ${l}${CD(s)}`)}),e&&a.push("}"),a.join(` -`)}function yp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))yp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?yp(o,t,n):o&&n(o)}else r&&n(r)})}function zk(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")jc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});jc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")jc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});jc(d)?l=d:t.push(d)}const s=yD(t),c=Ix(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&yp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Ix(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else zk(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Mk(e,t,n,r=!1){const o=[];return zk(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function Bs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function _D(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Mx),t.els=[];else{const o=eh(n);o&&r.includes(o)&&(Mx(o),t.els=r.filter(i=>i!==o))}}function Fx(e,t){e.push(t)}function kD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,Mk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Bs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=eh(n);if(d!==null&&!a)return d;const f=d!=null?d:xD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Fx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Fx(t.els,f),f}function RD(e){return Mk(this,this.instance,e)}function PD(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return kD(this.instance,this,t,r,o,i,a,l,n)}function $D(e={}){const{id:t}=e;_D(this.instance,this,t)}const Vc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:RD,mount:PD,unmount:$D}},TD=function(e,t,n,r){return Array.isArray(t)?Vc(e,{$:null},null,t):Array.isArray(n)?Vc(e,t,null,n):Array.isArray(r)?Vc(e,t,n,r):Vc(e,t,n,null)};function Ik(e={}){let t=null;const n={c:(...r)=>TD(n,...r),use:(r,...o)=>r.install(n,...o),find:eh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function OD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return eh(e)!==null}function zD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const MD="n",Es=`.${MD}-`,ID="__",FD="--",Fk=Ik(),Dk=zD({blockPrefix:Es,elementPrefix:ID,modifierPrefix:FD});Fk.use(Dk);const{c:O,find:Jie}=Fk,{cB:S,cE:M,cM:F,cNotM:pt}=Dk;function _o(e){return O(({props:{bPrefix:t}})=>`${t||Es}modal, ${t||Es}drawer`,[e])}function qo(e){return O(({props:{bPrefix:t}})=>`${t||Es}popover`,[e])}function Ak(e){return O(({props:{bPrefix:t}})=>`&${t||Es}modal`,e)}const DD=(...e)=>O(">",[S(...e)]);let ev;function AD(){return ev===void 0&&(ev=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ev}const rr=typeof document<"u"&&typeof window<"u",Bk=new WeakSet;function $a(e){Bk.add(e)}function Ek(e){return!Bk.has(e)}function BD(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Ko())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function ED(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function LD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function ND(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Lk(e){const t=D(!!e.value);if(t.value)return xo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return xo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function _b(){return Ko()!==null}const th=typeof window<"u";let vl,ms;const HD=()=>{var e,t;vl=th?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,ms=!1,vl!==void 0?vl.then(()=>{ms=!0}):ms=!0};HD();function nh(e){if(ms)return;let t=!1;Mt(()=>{ms||vl==null||vl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function kd(e){return e.composedPath()[0]}const jD={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function VD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(kd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(kd(a))},i=a=>{!r||t.contains(kd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Nk(e,t,n){const r=jD[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=VD(e,t,n)),i}function UD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function WD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function KD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=kd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,UD(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(WD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=KD(),ns=D(null);function Dx(e){if(e.clientX>0||e.clientY>0)ns.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ns.value={x:n+o/2,y:r+i/2}:ns.value={x:0,y:0}}else ns.value=null}}let Uc=0,Ax=!0;function Hk(){if(!th)return xo(D(null));Uc===0&&St("click",document,Dx,!0);const e=()=>{Uc+=1};return Ax&&(Ax=_b())?(Wo(e),Dt(()=>{Uc-=1,Uc===0&&xt("click",document,Dx,!0)})):e(),xo(ns)}const qD=D(void 0);let Wc=0;function Bx(){qD.value=Date.now()}let Ex=!0;function jk(e){if(!th)return xo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Wc===0&&St("click",window,Bx,!0);const i=()=>{Wc+=1,St("click",window,o,!0)};return Ex&&(Ex=_b())?(Wo(i),Dt(()=>{Wc-=1,Wc===0&&xt("click",window,Bx,!0),xt("click",window,o,!0),r()})):i(),xo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function An(){const e=D(!1);return Mt(()=>{e.value=!0}),xo(e)}function Ri(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const YD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function XD(){return YD}const GD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function ZD(e){return`(min-width: ${e}px)`}const Ul={};function QD(e=GD){if(!th)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Ul[i]===void 0?(a=window.matchMedia(ZD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Ul[i]={mql:a,cbs:l}):(a=Ul[i].mql,l=Ul[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Ul[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function kb(e={},t){const n=Fi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return _b()?(Wo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),xo(n)}const Rb="n-internal-select-menu",Vk="n-internal-select-menu-body",oc="n-modal-body",Uk="n-modal",ic="n-drawer-body",Pb="n-drawer",Ol="n-popover-body",Wk="__disabled__";function Lt(e){const t=Le(oc,null),n=Le(ic,null),r=Le(Ol,null),o=Le(Vk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Wk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Wk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Lx=!1;function $b(){if(!!rr&&!!window.CSS&&!Lx&&(Lx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function xp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){wp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&wp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Nx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ri=null;function Kk(){if(ri===null&&(ri=document.getElementById("v-binder-view-measurer"),ri===null)){ri=document.createElement("div"),ri.id="v-binder-view-measurer";const{style:e}=ri;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ri)}return ri.getBoundingClientRect()}function JD(e,t){const n=Kk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function tv(e){const t=e.getBoundingClientRect(),n=Kk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function eA(e){return e.nodeType===9?null:e.parentNode}function qk(e){if(e===null)return null;const t=eA(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return qk(t)}const tA=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Ko())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=qk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{ka(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return xp("binder",this.$slots)}}),Nr=tA,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Nx("follower",this.$slots),[[t]]):Nx("follower",this.$slots)}}),Xa="@@mmoContext",nA={mounted(e,{value:t}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Xa];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Xa].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Xa];t&&xt("mousemoveoutside",e,t),e[Xa].handler=void 0}},rA=nA,Ga="@@coContext",oA={mounted(e,{value:t,modifiers:n}){e[Ga]={handler:void 0},typeof t=="function"&&(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Ga];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Ga];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Ga].handler=void 0}},fr=oA;function iA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class aA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&iA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const nv=new aA,Za="@@ziContext",lA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Za]={enabled:!!o,initialized:!1},o&&(nv.ensureZIndex(e,r),e[Za].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Za].enabled;o&&!i&&(nv.ensureZIndex(e,r),e[Za].initialized=!0),e[Za].enabled=!!o},unmounted(e,t){if(!e[Za].initialized)return;const{value:n={}}=t,{zIndex:r}=n;nv.unregister(e,r)}},ac=lA,Yk=Symbol("@css-render/vue3-ssr");function sA(e,t){return``}function cA(e,t){const n=Le(Yk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(sA(e,t)))}const dA=typeof document<"u";function Di(){if(dA)return;const e=Le(Yk,null);if(e!==null)return{adapter:cA,context:e}}function Hx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:po}=Ik(),rh="vueuc-style";function jx(e){return e&-e}class uA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=jx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xp("lazy-teleport",this.$slots):u(Js,{disabled:this.disabled,to:this.mergedTo},xp("lazy-teleport",this.$slots)):null}}),Kc={top:"bottom",bottom:"top",left:"right",right:"left"},Ux={start:"end",center:"center",end:"start"},rv={top:"height",bottom:"height",left:"width",right:"width"},fA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},hA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},vA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Wx={top:!0,bottom:!1,left:!0,right:!1},Kx={top:"end",bottom:"start",left:"end",right:"start"};function pA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Wx[p]?y:-y:m=Wx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=vA[e],p=Kc[v],b=rv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=Ux[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Kc[v],b=rv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Kx[v],c=d(b,v,f)):(s=Kx[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Di();bA.mount({id:"vueuc/binder",head:!0,anchorMetaName:rh,ssr:l}),Dt(()=>{a()}),nh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?JD(p,b):tv(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=tv(h),$=tv(o.value),{left:R,top:I,placement:z}=pA(x,g,T,w,k,m),A=gA(z,m),{left:L,top:j,transform:E}=mA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=An(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(lc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var wa=[],yA=function(){return wa.some(function(e){return e.activeTargets.length>0})},xA=function(){return wa.some(function(e){return e.skippedTargets.length>0})},qx="ResizeObserver loop completed with undelivered notifications.",wA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:qx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=qx),window.dispatchEvent(e)},Ls;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ls||(Ls={}));var Ca=function(e){return Object.freeze(e)},CA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ca(this)}return e}(),Xk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ca(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Tb=function(e){return e instanceof SVGElement&&"getBBox"in e},Gk=function(e){if(Tb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Yx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},SA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bs=typeof window<"u"?window:{},qc=new WeakMap,Xx=/auto|scroll/,_A=/^tb|vertical/,kA=/msie|trident/i.test(bs.navigator&&bs.navigator.userAgent),oo=function(e){return parseFloat(e||"0")},pl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new CA((n?t:e)||0,(n?e:t)||0)},Gx=Ca({devicePixelContentBoxSize:pl(),borderBoxSize:pl(),contentBoxSize:pl(),contentRect:new Xk(0,0,0,0)}),Zk=function(e,t){if(t===void 0&&(t=!1),qc.has(e)&&!t)return qc.get(e);if(Gk(e))return qc.set(e,Gx),Gx;var n=getComputedStyle(e),r=Tb(e)&&e.ownerSVGElement&&e.getBBox(),o=!kA&&n.boxSizing==="border-box",i=_A.test(n.writingMode||""),a=!r&&Xx.test(n.overflowY||""),l=!r&&Xx.test(n.overflowX||""),s=r?0:oo(n.paddingTop),c=r?0:oo(n.paddingRight),d=r?0:oo(n.paddingBottom),f=r?0:oo(n.paddingLeft),h=r?0:oo(n.borderTopWidth),v=r?0:oo(n.borderRightWidth),p=r?0:oo(n.borderBottomWidth),b=r?0:oo(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:oo(n.width)-k-w,$=r?r.height:oo(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=Ca({devicePixelContentBoxSize:pl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:pl(R,I,i),contentBoxSize:pl(T,$,i),contentRect:new Xk(f,s,T,$)});return qc.set(e,z),z},Qk=function(e,t,n){var r=Zk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ls.DEVICE_PIXEL_CONTENT_BOX:return a;case Ls.BORDER_BOX:return o;default:return i}},RA=function(){function e(t){var n=Zk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ca([n.borderBoxSize]),this.contentBoxSize=Ca([n.contentBoxSize]),this.devicePixelContentBoxSize=Ca([n.devicePixelContentBoxSize])}return e}(),Jk=function(e){if(Gk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},PA=function(){var e=1/0,t=[];wa.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new RA(c.target),f=Jk(c.target);l.push(d),c.lastReportedSize=Qk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},$A=function(){var e=0;for(Zx(e);yA();)e=PA(),Zx(e);return xA()&&wA(),e>0},ov,eR=[],TA=function(){return eR.splice(0).forEach(function(e){return e()})},OA=function(e){if(!ov){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return TA()}).observe(n,r),ov=function(){n.textContent="".concat(t?t--:t++)}}eR.push(e),ov()},zA=function(e){OA(function(){requestAnimationFrame(e)})},Rd=0,MA=function(){return!!Rd},IA=250,FA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jx=function(e){return e===void 0&&(e=0),Date.now()+e},iv=!1,DA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=IA),!iv){iv=!0;var r=Jx(t);zA(function(){var o=!1;try{o=$A()}finally{if(iv=!1,t=r-Jx(),!MA())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,FA)};document.body?n():bs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return bs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return bs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Cp=new DA,ew=function(e){!Rd&&e>0&&Cp.start(),Rd+=e,!Rd&&Cp.stop()},AA=function(e){return!Tb(e)&&!SA(e)&&getComputedStyle(e).display==="inline"},BA=function(){function e(t,n){this.target=t,this.observedBox=n||Ls.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qk(this.target,this.observedBox,!0);return AA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),EA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yc=new WeakMap,tw=function(e,t){for(var n=0;n=0&&(i&&wa.splice(wa.indexOf(r),1),r.observationTargets.splice(o,1),ew(-1))},e.disconnect=function(t){var n=this,r=Yc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),LA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.unobserve(this,t)},e.prototype.disconnect=function(){Xc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class NA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||LA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Iu=new NA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ko().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Hx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Hx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Iu.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Iu.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jm(this.$slots,"default")}});let Gc;function HA(){return Gc===void 0&&("matchMedia"in window?Gc=window.matchMedia("(pointer:coarse)").matches:Gc=!1),Gc}let av;function nw(){return av===void 0&&(av="chrome"in window?window.devicePixelRatio:1),av}const jA=po(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[po("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[po("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),No=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();jA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:rh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Gm(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Zs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new uA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!HA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/nw(),A.scrollLeft+=I.deltaX/nw(),$(),w=!0,ka(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),VA=po(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[po("&::-webkit-scrollbar",{width:0,height:0})]),UA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Yi,""))}const i=Di();return WA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Jm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function tR(e){return e instanceof HTMLElement}function nR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(tR(n)&&(oR(n)||rR(n)))return!0}return!1}function oR(e){if(!KA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function KA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Wl=[];const Ob=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Wl[Wl.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Wl.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Wl=Wl.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?nR(C):rR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function oh(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Iu.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Iu.unregisterHandler(n)}))}let Qa=0,ow="",iw="",aw="",lw="";const Sp=D("0px");function iR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=ow,t.style.overflow=iw,t.style.overflowX=aw,t.style.overflowY=lw,Sp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Qa){const a=window.innerWidth-t.offsetWidth;a>0&&(ow=t.style.marginRight,t.style.marginRight=`${a}px`,Sp.value=`${a}px`),iw=t.style.overflow,aw=t.style.overflowX,lw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Qa++}else Qa--,Qa||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Qa--,Qa||o(),r=!1)})}const zb=D(!1),sw=()=>{zb.value=!0},cw=()=>{zb.value=!1};let Kl=0;const aR=()=>(rr&&(Wo(()=>{Kl||(window.addEventListener("compositionstart",sw),window.addEventListener("compositionend",cw)),Kl++}),Dt(()=>{Kl<=1?(window.removeEventListener("compositionstart",sw),window.removeEventListener("compositionend",cw),Kl=0):Kl--})),zb);function Mb(e){const t={isDeactivated:!1};let n=!1;return Gm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Zs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function dw(e){return e.nodeName==="#document"}const Fu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Fu,null);nt(Fu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var qA=typeof global=="object"&&global&&global.Object===Object&&global;const lR=qA;var YA=typeof self=="object"&&self&&self.Object===Object&&self,XA=lR||YA||Function("return this")();const jr=XA;var GA=jr.Symbol;const Pi=GA;var sR=Object.prototype,ZA=sR.hasOwnProperty,QA=sR.toString,ql=Pi?Pi.toStringTag:void 0;function JA(e){var t=ZA.call(e,ql),n=e[ql];try{e[ql]=void 0;var r=!0}catch{}var o=QA.call(e);return r&&(t?e[ql]=n:delete e[ql]),o}var e6=Object.prototype,t6=e6.toString;function n6(e){return t6.call(e)}var r6="[object Null]",o6="[object Undefined]",uw=Pi?Pi.toStringTag:void 0;function Ba(e){return e==null?e===void 0?o6:r6:uw&&uw in Object(e)?JA(e):n6(e)}function $i(e){return e!=null&&typeof e=="object"}var i6="[object Symbol]";function ih(e){return typeof e=="symbol"||$i(e)&&Ba(e)==i6}function cR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=H6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function W6(e){return function(){return e}}var K6=function(){try{var e=La(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Au=K6;var q6=Au?function(e,t){return Au(e,"toString",{configurable:!0,enumerable:!1,value:W6(t),writable:!0})}:Ib;const Y6=q6;var X6=U6(Y6);const G6=X6;var Z6=9007199254740991,Q6=/^(?:0|[1-9]\d*)$/;function Db(e,t){var n=typeof e;return t=t==null?Z6:t,!!t&&(n=="number"||n!="symbol"&&Q6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=iB}function zl(e){return e!=null&&Bb(e.length)&&!Fb(e)}function aB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Db(t,n.length):r=="string"&&t in n)?sc(n[t],e):!1}function lB(e){return oB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&aB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function _E(e,t){var n=this.__data__,r=ah(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:YE(e,t,n)}var GE="\\ud800-\\udfff",ZE="\\u0300-\\u036f",QE="\\ufe20-\\ufe2f",JE="\\u20d0-\\u20ff",eL=ZE+QE+JE,tL="\\ufe0e\\ufe0f",nL="\\u200d",rL=RegExp("["+nL+GE+eL+tL+"]");function wR(e){return rL.test(e)}function oL(e){return e.split("")}var CR="\\ud800-\\udfff",iL="\\u0300-\\u036f",aL="\\ufe20-\\ufe2f",lL="\\u20d0-\\u20ff",sL=iL+aL+lL,cL="\\ufe0e\\ufe0f",dL="["+CR+"]",kp="["+sL+"]",Rp="\\ud83c[\\udffb-\\udfff]",uL="(?:"+kp+"|"+Rp+")",SR="[^"+CR+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",kR="[\\ud800-\\udbff][\\udc00-\\udfff]",fL="\\u200d",RR=uL+"?",PR="["+cL+"]?",hL="(?:"+fL+"(?:"+[SR,_R,kR].join("|")+")"+PR+RR+")*",vL=PR+RR+hL,pL="(?:"+[SR+kp+"?",kp,_R,kR,dL].join("|")+")",gL=RegExp(Rp+"(?="+Rp+")|"+pL+vL,"g");function mL(e){return e.match(gL)||[]}function bL(e){return wR(e)?mL(e):oL(e)}function yL(e){return function(t){t=Oa(t);var n=wR(t)?bL(t):void 0,r=n?n[0]:t.charAt(0),o=n?XE(n,1).join(""):t.slice(1);return r[e]()+o}}var xL=yL("toUpperCase");const $R=xL;function wL(e){return $R(Oa(e).toLowerCase())}function CL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&X8?new Nu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=dv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(dv())}function w(){var k=dv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function Op(e,t,n){(n!==void 0&&!sc(e[t],n)||n===void 0&&!(t in e))&&Ab(e,t,n)}function WN(e){return $i(e)&&zl(e)}function zp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function KN(e){return nB(e,gR(e))}function qN(e,t,n,r,o,i,a){var l=zp(e,n),s=zp(t,n),c=a.get(s);if(c){Op(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Eu(s),p=!h&&!v&&Lb(s);d=s,h||v||p?Ar(l)?d=l:WN(l)?d=N6(l):v?(f=!1,d=C8(s,!0)):p?(f=!1,d=H8(s,!0)):d=[]:qE(s)||Bu(s)?(d=l,Bu(l)?d=KN(l):(!Br(l)||Fb(l))&&(d=j8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Op(e,n,d)}function YR(e,t,n,r,o){e!==t&&qR(t,function(i,a){if(o||(o=new bo),Br(i))qN(e,t,a,n,YR,r,o);else{var l=r?r(zp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Op(e,a,l)}},gR)}function YN(e,t){var n=-1,r=zl(e)?Array(e.length):[];return LN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function XN(e,t){var n=Ar(e)?cR:YN;return n(e,IN(t))}var GN=jR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const XR=GN;var ZN=lB(function(e,t,n){YR(e,t,n)});const cl=ZN;var QN=v8("round");const JN=QN;var e7="Expected a function";function xs(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(e7);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),UN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:t7,fontFamily:n7,lineHeight:r7}=_r,GR=O("body",` - margin: 0; - font-size: ${t7}; - font-family: ${n7}; - line-height: ${r7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",wl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Di(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:wl,ssr:a}),l!=null&&l.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:a})};a?c():Wo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=cl({},d||y||g||r.common,w,_,b),R=cl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:cl({},r.peers,x,h),peerOverrides:cl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ZR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ZR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const o7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},i7=o7;function uv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(n){return typeof n}:Pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pd(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var a7={};function Na(){return a7}function za(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?s7(l,function(f){return f.test(a)}):l7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function l7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function s7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var d7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u7=function(t,n,r){var o,i=d7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const f7=u7;var h7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},v7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g7={date:uv({formats:h7,defaultWidth:"full"}),time:uv({formats:v7,defaultWidth:"full"}),dateTime:uv({formats:p7,defaultWidth:"full"})};const m7=g7;var b7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y7=function(t,n,r,o){return b7[t]};const x7=y7;var w7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},S7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},P7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$7={ordinalNumber:P7,era:Yl({values:w7,defaultWidth:"wide"}),quarter:Yl({values:C7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yl({values:S7,defaultWidth:"wide"}),day:Yl({values:_7,defaultWidth:"wide"}),dayPeriod:Yl({values:k7,defaultWidth:"wide",formattingValues:R7,defaultFormattingWidth:"wide"})};const T7=$7;var O7=/^(\d+)(th|st|nd|rd)?/i,z7=/\d+/i,M7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},I7={any:[/^b/i,/^(a|c)/i]},F7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},D7={any:[/1/i,/2/i,/3/i,/4/i]},A7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},B7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},E7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},L7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},H7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},j7={ordinalNumber:c7({matchPattern:O7,parsePattern:z7,valueCallback:function(t){return parseInt(t,10)}}),era:Xl({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:F7,defaultMatchWidth:"wide",parsePatterns:D7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Xl({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:B7,defaultParseWidth:"any"}),day:Xl({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:L7,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:H7,defaultParseWidth:"any"})};const V7=j7;var U7={code:"en-US",formatDistance:f7,formatLong:m7,formatRelative:x7,localize:T7,match:V7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ch=U7,W7={name:"en-US",locale:ch},K7=W7;function Qc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function q7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Hu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Cl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function Y7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Mp(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function X7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var G7=6e4,Z7=36e5,Q7=1e3;function J7(e,t){mt(2,arguments);var n=Cl(e),r=Cl(t);return n.getTime()===r.getTime()}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function eH(e){return mt(1,arguments),e instanceof Date||$d(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!eH(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function tH(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function nH(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function Vs(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ub(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function QR(e,t){mt(2,arguments);var n=Gt(t);return q7(e,-n)}var rH=864e5;function oH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/rH)+1}function Sl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function iH(e){mt(1,arguments);var t=JR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Sl(n);return r}var aH=6048e5;function e2(e){mt(1,arguments);var t=yt(e),n=Sl(t).getTime()-iH(t).getTime();return Math.round(n/aH)+1}function Wb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=Na(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=za(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=za(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function lH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Wb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=za(v,t);return p}var sH=6048e5;function t2(e,t){mt(1,arguments);var n=yt(e),r=za(n,t).getTime()-lH(n,t).getTime();return Math.round(r/sH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const oi=cH;var Ja={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return oi.y(t,n)},Y:function(t,n,r,o){var i=Wb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=JR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return oi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=t2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=e2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):oi.d(t,n)},D:function(t,n,r){var o=oH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Ja.noon:o===0?i=Ja.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Ja.evening:o>=12?i=Ja.afternoon:o>=4?i=Ja.morning:i=Ja.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return oi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oi.s(t,n)},S:function(t,n){return oi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ww(a);case"XXXX":case"XX":return ra(a);case"XXXXX":case"XXX":default:return ra(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Ww(a);case"xxxx":case"xx":return ra(a);case"xxxxx":case"xxx":default:return ra(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+ra(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+ra(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function Uw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Ww(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const uH=dH;var Kw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},fH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Kw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Kw(o,n)).replace("{{time}}",n2(i,n))},hH={p:n2,P:fH};const Ip=hH;var vH=["D","DD"],pH=["YY","YYYY"];function r2(e){return vH.indexOf(e)!==-1}function o2(e){return pH.indexOf(e)!==-1}function ju(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bH=/^'([^]*?)'?$/,yH=/''/g,xH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=Na(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ch,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Hu(R),z=QR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(mH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=Ip[E];return U(j,_.formatLong)}return j}).join("").match(gH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return wH(j);var U=uH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&o2(j)&&ju(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&r2(j)&&ju(j,t,String(e)),U(z,j,_.localize,A);if(E.match(xH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function wH(e){var t=e.match(bH);return t?t[1].replace(yH,"'"):e}function Kb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function CH(e){return Kb({},e)}var qw=1e3*60,Vu=60*24,Yw=Vu*30,Xw=Vu*365;function SH(e,t,n){var r,o,i;mt(2,arguments);var a=Na(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ch;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=X7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Kb(CH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/qw,m=Hu(f)-Hu(d),g=(p-m)/qw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LH=function(e){DH(n,e);var t=AH(n);function n(){var r;IH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function d2(e){return e%400===0||e%4===0&&e%100!==0}function zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zd=function(n){return typeof n}:zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zd(e)}function NH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KH=function(e){jH(n,e);var t=VH(n);function n(){var r;NH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=c2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Md=function(n){return typeof n}:Md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Md(e)}function qH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JH=function(e){XH(n,e);var t=GH(n);function n(){var r;qH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Wb(o,l);if(a.isTwoDigitYear){var c=c2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function e9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a9=function(e){n9(n,e);var t=r9(n);function n(){var r;e9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h9=function(e){c9(n,e);var t=d9(n);function n(){var r;l9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x9=function(e){g9(n,e);var t=m9(n);function n(){var r;v9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function w9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P9=function(e){S9(n,e);var t=_9(n);function n(){var r;w9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function $9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F9=function(e){O9(n,e);var t=z9(n);function n(){var r;$9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function D9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H9=function(e){B9(n,e);var t=E9(n);function n(){var r;D9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function j9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=t2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ld=function(n){return typeof n}:Ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ld(e)}function V9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X9=function(e){W9(n,e);var t=K9(n);function n(){var r;V9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return za(j9(o,a,l),l)}}]),n}(Yt);function G9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=e2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function Z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rj=function(e){J9(n,e);var t=ej(n);function n(){var r;Z9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Sl(G9(o,a))}}]),n}(Yt);function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dj=[31,28,31,30,31,30,31,31,30,31,30,31],uj=[31,29,31,30,31,30,31,31,30,31,30,31],fj=function(e){aj(n,e);var t=lj(n);function n(){var r;oj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=uj[s]:i>=1&&i<=dj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yj=function(e){pj(n,e);var t=gj(n);function n(){var r;hj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Gb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=Na(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rj=function(e){Cj(n,e);var t=Sj(n);function n(){var r;xj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ij=function(e){Tj(n,e);var t=Oj(n);function n(){var r;Pj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function Fj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nj=function(e){Aj(n,e);var t=Bj(n);function n(){var r;Fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Hj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj=function(e){Uj(n,e);var t=Wj(n);function n(){var r;jj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Hj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function Xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tV=function(e){Zj(n,e);var t=Qj(n);function n(){var r;Xj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sV=function(e){oV(n,e);var t=iV(n);function n(){var r;nV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pV=function(e){uV(n,e);var t=fV(n);function n(){var r;cV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CV=function(e){bV(n,e);var t=yV(n);function n(){var r;gV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function SV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TV=function(e){kV(n,e);var t=RV(n);function n(){var r;SV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function OV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AV=function(e){MV(n,e);var t=IV(n);function n(){var r;OV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function BV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VV=function(e){LV(n,e);var t=NV(n);function n(){var r;BV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function UV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GV=function(e){KV(n,e);var t=qV(n);function n(){var r;UV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function ZV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rU=function(e){JV(n,e);var t=eU(n);function n(){var r;ZV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(n){return typeof n}:ou=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ou(e)}function oU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dU=function(e){aU(n,e);var t=lU(n);function n(){var r;oU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e){hU(n,e);var t=vU(n);function n(){var r;uU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _U=function(e){xU(n,e);var t=wU(n);function n(){var r;bU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=function(e){PU(n,e);var t=$U(n);function n(){var r;kU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EU=function(e){FU(n,e);var t=DU(n);function n(){var r;MU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=NU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function NU(e,t){if(!!e){if(typeof e=="string")return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new OH],L=_.match(jU).map(function(Oe){var ke=Oe[0];if(ke in Ip){var pe=Ip[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(HU),j=[],E=iC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&o2(ke)&&ju(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&r2(ke)&&ju(ke,_,e);var pe=ke[0],Me=LU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(KU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=YU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(cu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&WU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=QR(re,Hu(re)),ue={},de=iC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Kb(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function YU(e){return e.match(VU)[1].replace(UU,"'")}function XU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function dh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function u2(e,t){mt(2,arguments);var n=Vs(e),r=Vs(t);return n.getTime()===r.getTime()}function Zb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function f2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Qb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=kH(a);return n.setMonth(r,Math.min(i,l)),n}function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function jn(e,t){if(mt(2,arguments),du(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Qb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function Xi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function vv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function GU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Qb(n,n.getMonth()+i*3)}function pv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function lC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:i7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:K7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Di(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:r})};r?i():Wo(i)}function h2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Dn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Di();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+Bs(JSON.stringify(p))),b&&(f+="-"+Bs(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Di(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(OD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Wo(i),o}function ZU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function QU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const JU=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),uh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},eW=Nn(uh),v2=J({name:"Affix",props:uh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",JU,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=yb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){ka(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=ZU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=QU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),_l=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),p2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),tW=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Hn(e,t){return J({name:$R(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const nW=Hn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Ti=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),sC=Hn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Jb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),e0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ha=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),g2=Hn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),m2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),rW=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),oW=Hn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),iW=Hn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),aW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ja=Hn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Oi=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),zi=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),lW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Mi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ii=Hn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),b2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),y2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Va=Hn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),sW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),cW=Hn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Ai=Hn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),dW=Hn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),x2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),uW=Hn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),fW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),hW=Hn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),vW=Hn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),gW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),mW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),bW=Hn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),yW=Hn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),xW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),ko=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=An();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),Ro=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?Gf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),wW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",wW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),CW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Go=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",CW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(g2,null)}))}}}),Po=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:SW}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${SW} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const _W=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),kW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},eo=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},kW),setup(e){Vr("-base-loading",_W,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(ko,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function dC(e){return Array.isArray(e)?e:[e]}const Vg={STOP:"STOP"};function w2(e,t){const n=t(e);e.children!==void 0&&n!==Vg.STOP&&e.children.forEach(r=>w2(r,t))}function RW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function PW(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function $W(e){return e.children}function TW(e){return e.key}function OW(){return!1}function zW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function MW(e){return e.disabled===!0}function IW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function FW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function DW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function AW(e){return(e==null?void 0:e.type)==="group"}function C2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class S2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function BW(e,t,n,r){return Rf(t.concat(e),n,r,!1)}function EW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function LW(e,t,n,r){const o=Rf(t,n,r,!1),i=Rf(e,n,r,!0),a=EW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function bv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:FW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:DW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=LW(o,n,t,c):r!==void 0?f=BW(r,n,t,c):f=Rf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Rf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&w2(c,d=>{if(d.disabled)return Vg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),IW(d.rawNode,i))){if(r)return Vg.STOP;if(!n)throw new S2}})}),l}function NW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function HW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function jW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function uC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?VW:jW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=t0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=UW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function VW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function UW(e){return e.parent}function t0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=t0(c,t);if(d!==null)return d}else return c}}return null}const WW={getChild(){return this.ignored?null:t0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return uC(this,"next",e)},getPrev(e={}){return uC(this,"prev",e)}};function Ug(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function KW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function _2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=_2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function to(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=MW,getIgnored:a=OW,getIsGroup:l=AW,getKey:s=TW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:$W,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return PW(this.rawNode,d)},get shallowLoaded(){return zW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return KW(this,x)}},WW),h=_2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return Ug(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return HW(h)},getPath(x,w={}){return NW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return bv({checkedKeys:gv(x),indeterminateKeys:mv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToCheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToUncheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return RW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},qW=Bn(bt.neutralBase),k2=Bn(bt.neutralInvertBase),YW="rgba("+k2.slice(0,3).join(", ")+", ";function fC(e){return YW+String(e)+")"}function Gn(e){const t=Array.from(k2);return t[3]=Number(e),ht(qW,t)}const XW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:fC(bt.alphaScrollbar),scrollbarColorHover:fC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=XW,GW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},ZW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},GW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},QW={name:"Empty",common:et,self:ZW},Bi=QW,JW=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),R2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ei=J({name:"Empty",props:R2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",JW,Bi,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(aW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),eK=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},tK={name:"Scrollbar",common:et,self:eK},hr=tK,{cubicBezierEaseInOut:hC}=_r;function Ho({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hC,leaveCubicBezier:o=hC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const nK=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ho(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),rK=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),P2=J({name:"Scrollbar",props:rK,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=XD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Mb(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",nK,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=P2,Pf=P2,oK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},iK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},oK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},aK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Bi},self:iK},Ml=aK;function lK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Jb)}):null})}const vC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Rb),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=lK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:gs([c,p==null?void 0:p.onClick]),onMouseenter:gs([d,p==null?void 0:p.onMouseenter]),onMousemove:gs([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),pC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Rb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:gC,cubicBezierEaseOut:mC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${gC}, transform ${t} ${gC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${mC}, transform ${t} ${mC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const sK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),cc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",sK,Ml,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>C2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>yi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(Rb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(Vk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":yi(ve,"left"),"--n-option-padding-right":yi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return oh(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(eo,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ei,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(No,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(vC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):u(vC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Po,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),cK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),$2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",cK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),dK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Ho()]),uK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",dK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),fK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},hK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},fK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},vK={name:"Popover",common:et,self:hK},Ua=vK,yv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",pK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${Oo("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${Oo("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${Oo("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${Oo("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${Oo("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${Oo("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${Oo("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${Oo("right-end")} + var(--v-offset-top)); - `),...XN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=Oo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Oo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${yv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${yv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),DD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${yv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const T2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),O2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),gK=J({name:"PopoverBody",inheritAttrs:!1,props:T2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",pK,Ua,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!AD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([rA,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Ol,c),nt(ic,null),nt(oc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!xa(t.header)||!xa(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(Pf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?O2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u(Ob,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),mK=Object.keys(T2),bK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function yK(e,t,n){bK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const xK=Qr("").type,Ma={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},z2=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{internalOnAfterLeave:Function,internalRenderBody:Function}),Wa=J({name:"Popover",inheritAttrs:!1,props:z2,__popover__:!0,setup(e){const t=An(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ri(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Mu(n,"activator"):r=Mu(n,"trigger"),r)){r=nr(r),r=r.type===xK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};yK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(gK,mn(this.$props,mK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),wK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},CK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},wK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},SK={name:"Tag",common:et,self:CK},M2=SK,I2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},_K=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),F2=Object.assign(Object.assign(Object.assign({},Se.props),I2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),D2="n-tag",ws=J({name:"Tag",props:F2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",_K,M2,e,r);nt(D2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Pa(m)}`),g&&(v+=`b${Pa(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Go,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),kK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Wg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",kK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(ko,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(uW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),A2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(eo,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Wg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(x2,null)])})}):null})}}}),RK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},PK=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},RK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},$K={name:"InternalSelection",common:et,peers:{Popover:Ua},self:PK},fh=$K,TK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),n0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",TK,fh,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),oh(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(bp,null,{default:()=>u(A2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(ws,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Wa,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:rc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),bC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ii}=_r;function B2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ii}, - max-width ${e} ${ii} ${t}, - margin-left ${e} ${ii} ${t}, - margin-right ${e} ${ii} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ii} ${t}, - max-width ${e} ${ii}, - margin-left ${e} ${ii}, - margin-right ${e} ${ii}; - `)]}const{cubicBezierEaseOut:el}=_r;function OK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const zK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[OK({duration:".2s"}),B2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),MK=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",zK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(Gf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(bC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Ro,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},IK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},DK={name:"Alert",common:et,self:FK},AK=DK,{cubicBezierEaseInOut:io,cubicBezierEaseOut:BK,cubicBezierEaseIn:EK}=_r;function jo({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io} ${r}, - opacity ${t} ${BK} ${r}, - margin-top ${t} ${io} ${r}, - margin-bottom ${t} ${io} ${r}, - padding-top ${t} ${io} ${r}, - padding-bottom ${t} ${io} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io}, - opacity ${t} ${EK}, - margin-top ${t} ${io}, - margin-bottom ${t} ${io}, - padding-top ${t} ${io}, - padding-bottom ${t} ${io} - ${n?","+n:""} - `)]}const LK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),jo({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),E2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),NK=J({name:"Alert",inheritAttrs:!1,props:E2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",LK,AK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=yi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Ro,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Go,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Va,null);case"info":return u(Ii,null);case"warning":return u(Ai,null);case"error":return u(ja,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),HK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},jK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},HK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},VK={name:"Anchor",common:et,self:jK},UK=VK,WK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),uu="n-anchor",L2={title:String,href:String},KK=J({name:"AnchorLink",props:L2,setup(e,{slots:t}){const n=D(null),r=Le(uu),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);ED(uu,"collectedLinkHrefs",o),LD(uu,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:rc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function qK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const r0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},YK=Nn(r0),XK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},r0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=xs(()=>v(!0),128);function v(p=!0){var b;const m=[],g=yb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=qK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(uu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),nh(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),N2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),uh),r0),GK=J({name:"Anchor",props:N2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",WK,UK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(XK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,YK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(v2,Object.assign({},mn(this,eW)),{default:this.renderAnchor}):this.renderAnchor()}});function $f(e){return e.type==="group"}function H2(e){return e.type==="ignored"}function xv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function hh(e,t){return{getIsGroup:$f,getIgnored:H2,getKey(r){return $f(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function ZK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if($f(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(H2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function QK(e,t,n){const r=new Map;return e.forEach(o=>{$f(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const JK=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const j2=rr&&navigator.userAgent.includes("Safari")&&!JK,eq={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},tq=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},eq),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},nq={name:"Input",common:et,self:tq},kr=nq,V2="n-input";function rq(e){let t=0;for(const n of e)t++;return t}function Jc(e){return e===""||e==null}function oq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const yC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(V2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||rq)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Ra(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),iq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),aq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),U2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),In=J({name:"Input",props:U2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",iq,kr,e,t);j2&&Vr("-input-safari",aq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=oq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Ko().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(V2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:$o,colorFocusWarning:Qo,boxShadowFocusWarning:Jo,borderWarning:ei,borderFocusWarning:Ni,borderHoverWarning:kh,colorFocusError:Rh,boxShadowFocusError:Ph,borderError:$h,borderFocusError:Th,borderHoverError:Oh,clearSize:zh,clearColor:Mh,clearColorHover:GO,clearColorPressed:ZO,iconColor:QO,iconColorDisabled:JO,suffixTextColor:ez,countTextColor:tz,countTextColorDisabled:nz,iconColorHover:rz,iconColorPressed:oz,loadingColor:iz,loadingColorError:az,loadingColorWarning:lz,[ye("padding",le)]:sz,[ye("fontSize",le)]:cz,[ye("height",le)]:dz}}=i.value,{left:uz,right:fz}=yi(sz);return{"--n-bezier":Ie,"--n-count-text-color":tz,"--n-count-text-color-disabled":nz,"--n-color":Ge,"--n-font-size":cz,"--n-border-radius":gt,"--n-height":dz,"--n-padding-left":uz,"--n-padding-right":fz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":$o,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":iz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Qo,"--n-box-shadow-focus-warning":Jo,"--n-border-warning":ei,"--n-border-focus-warning":Ni,"--n-border-hover-warning":kh,"--n-loading-color-warning":lz,"--n-caret-color-error":Qe,"--n-color-focus-error":Rh,"--n-box-shadow-focus-error":Ph,"--n-border-error":$h,"--n-border-focus-error":Th,"--n-border-hover-error":Oh,"--n-loading-color-error":az,"--n-clear-color":Mh,"--n-clear-size":zh,"--n-clear-color-hover":GO,"--n-clear-color-pressed":ZO,"--n-icon-color":QO,"--n-icon-color-hover":rz,"--n-icon-color-pressed":oz,"--n-icon-color-disabled":JO,"--n-suffix-text-color":ez}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(A2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(yC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(m2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(rW,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(yC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),lq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),W2={},K2=J({name:"InputGroup",props:W2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",lq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),sq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),q2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),cq=J({name:"InputGroupLabel",props:q2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",sq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function dq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const uq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:dq},fq=uq;function hq(e){return e.map(Y2)}function Y2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>Y2(o))}:e}const vq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),X2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),pq=J({name:"AutoComplete",props:X2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",vq,fq,e,r),g=P(()=>hq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>to(g.value,hh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:An(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Mu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(In,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(cc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),gl=rr&&"loading"in document.createElement("img"),gq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},wv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,G2=(e,t,n)=>{if(!e)return()=>{};const r=gq(t),{root:o}=r.options;let i;const a=wv.get(o);a?i=a:(i=new Map,wv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=Cv.get(h.target),p=Sv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Cv.delete(e),Sv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||wv.delete(o))};return Cv.set(e,d),Sv.set(e,n),d},mq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},bq={name:"Avatar",common:et,self:mq},Z2=bq,Q2="n-avatar-group",yq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[_o(O("&","--n-merged-color: var(--n-color-modal);")),qo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),J2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Kg=J({name:"Avatar",props:J2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Q2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",yq,Z2,e,t),f=Le(D2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Pa(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(gl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=G2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:gl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:gl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),xq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),wq=()=>({gap:"-12px"}),Cq={name:"AvatarGroup",common:et,peers:{Avatar:Z2},self:wq},Sq=Cq,eP=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),_q=J({name:"AvatarGroup",props:eP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",xq,Sq,e,t);nt(Q2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Kg,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Kg,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),kq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Rq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},kq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Pq={name:"BackTop",common:et,self:Rq},$q=Pq,Tq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Oq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),zq=J({name:"BackTop",inheritAttrs:!1,props:tP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${Sp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",Oq,$q,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||yb(e.listenTo)||_k(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(dw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(dw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:An(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(lc,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>Tq})])):null}})}))}}),Mq=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Iq={name:"Badge",common:et,self:Mq},Fq=Iq,Dq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),nP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Aq=J({name:"Badge",props:nP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",Dq,Fq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!xa(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Pa(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:rc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u(MK,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u($2,{clsPrefix:t}):null):null}))}}),Bq={fontWeightActive:"400"},Eq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Bq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Lq={name:"Breadcrumb",common:et,self:Eq},Nq=Lq,Hq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),rP="n-breadcrumb",oP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),jq=J({name:"Breadcrumb",props:oP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",Hq,Nq,e,t);nt(rP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Vq=rr?window:null,Uq=(e=Vq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Qs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},iP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Wq=J({name:"BreadcrumbItem",props:iP,setup(e,{slots:t}){const n=Le(rP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Uq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Gi(e){return ht(e,[255,255,255,.16])}function ed(e){return ht(e,[0,0,0,.12])}const aP="n-button-group",Kq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},qq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},Kq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Yq={name:"Button",common:et,self:qq},vr=Yq,Xq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),B2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),lP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!j2}}),sP=J({name:"Button",props:lP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(aP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Xq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Gi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?ed(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Gi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Pa($)),z&&(x+="k"+Pa(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Gi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":ed(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Ro,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:xa(this.$slots.default)?"0":""}},u(ko,null,{default:()=>this.loading?u(eo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u($2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=sP,Jr=sP,fn="0!important",cP="-1px!important";function tl(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:cP})])])])])}function nl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:cP})])])])])}const Gq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),nl("default"),F("ghost",[nl("primary"),nl("info"),nl("success"),nl("warning"),nl("error")])])])]),dP={size:{type:String,default:void 0},vertical:Boolean},o0=J({name:"ButtonGroup",props:dP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Gq,t),nt(aP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Tf=1901,Ia=40,Zq={date:J7,month:dh,year:f2,quarter:u2};function Ao(e,t,n){const r=Zq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function _v(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},tY),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},rY={name:"Calendar",common:et,peers:{Button:vr},self:nY},oY=rY,iY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),_o(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),qo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),uP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),aY=J({name:"Calendar",props:uP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",iY,oY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Of(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&Cl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Ra(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(o0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(e0,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ha,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===Cl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),lY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},sY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:lY},cY=sY;function dY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Us(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function uY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function fY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const hY={rgb:{hex(e){return wi(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hex:{rgb(e){return mo(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=hl(e);return wi([...fp(t,n,r),o])},rgb(e){const[t,n,r,o]=hl(e);return mo([...fp(t,n,r),o])},hsv(e){const[t,n,r,o]=hl(e);return ya([...kk(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ba(e);return wi([...ci(t,n,r),o])},rgb(e){const[t,n,r,o]=ba(e);return mo([...ci(t,n,r),o])},hsl(e){const[t,n,r,o]=ba(e);return xi([..._d(t,n,r),o])}}};function fP(e,t,n){return n=n||Us(e),n?n===t?e:hY[n][t](e):null}const ol="12px",vY=12,Zi="6px",pY=6,gY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",mY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=uY((i.clientX-s-pY)/(l-vY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:ol,borderRadius:Zi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:gY,height:ol,borderRadius:Zi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Zi,right:Zi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Zi})`,borderRadius:Zi,width:ol,height:ol}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Zi,width:ol,height:ol}})))))}}),Gl="12px",bY=12,Qi="6px",yY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-bY);e.onUpdateAlpha(fY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Gl,borderRadius:Qi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Qi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Qi,right:Qi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Qi})`,borderRadius:Qi,width:Gl,height:Gl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:mo(this.rgba),borderRadius:Qi,width:Gl,height:Gl}}))))}}),td="12px",nd="6px",xY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:td,height:td,borderRadius:nd,left:`calc(${this.displayedSv[0]}% - ${nd})`,bottom:`calc(${this.displayedSv[1]}% - ${nd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:nd,width:td,height:td}})))}}),i0="n-color-picker";function wY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function CY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function SY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function _Y(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function kY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const RY={paddingSmall:"0 4px"},xC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(i0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=_Y(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=CY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=SY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=kY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=wY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(In,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:RY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),PY=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?wi:ps)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ya:pp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?mo:vp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?xi:gp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(K2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?wi:ps)(r)}catch{}return u(xC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(xC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),$Y=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(i0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?xi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function TY(e,t){if(t==="hsv"){const[n,r,o,i]=ba(e);return mo([...ci(n,r,o),i])}return e}function OY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const zY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Us(i);return{value:i,mode:a,legalValue:TY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=OY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:fP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),MY=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Us(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,fP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),IY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),hP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),FY=J({name:"ColorPicker",props:hP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",IY,cY,e,s);nt(i0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?dY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Us(g.value)),{modes:w}=e,k=D(Us(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ba(N);case"hsl":return[T,$,R,j]=hl(N),[...kk(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...dp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return Bn(N);case"hsv":return[T,$,I,j]=ba(N),[...ci(T,$,I),j];case"hsl":return[T,$,R,j]=hl(N),[...fp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return hl(N);case"hsv":return[T,$,I,j]=ba(N),[..._d(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...up(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?mo:vp)([...ci(Z,N,te),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?mo:vp)([...ci(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ya([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(mo([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(wi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(xi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(xY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(mY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(yY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(MY,{clsPrefix:Pe,mode:k.value,color:U.value&&ps(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(PY,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(zY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:An(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u($Y,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),DY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},AY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},DY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},BY={name:"Card",common:et,self:AY},vP=BY,EY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Ak({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),_o(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),qo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),a0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},LY=Nn(a0),pP=Object.assign(Object.assign({},Se.props),a0),gP=J({name:"Card",props:pP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",EY,vP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=yi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Go,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),NY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),HY={name:"Carousel",common:et,self:NY},jY=HY;function VY(e){const{length:t}=e;return t>1&&(e.push(wC(e[0],0,"append")),e.unshift(wC(e[t-1],t-1,"prepend"))),e}function wC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function CC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function kv(e,t){return t?e+1:e}function UY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function WY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function KY(e,t){return t&&e>3?e-2:e}function SC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function _C(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function rd(e,t,n){return en?n:e}function qY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const mP="n-carousel-methods",YY=e=>nt(mP,e),l0=(e="unknown",t="component")=>{const n=Le(mP);return n||Dn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},XY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},GY=J({name:"CarouselDots",props:XY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=l0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Zm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},dD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),ZY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),QY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),JY=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=l0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},ZY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},QY))}}),hu="CarouselItem",eX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hu},bP=J({name:hu,setup(e){const{mergedClsPrefixRef:t}=He(e),n=l0($w(hu),`n-${$w(hu)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),tX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),nX=["transitionDuration","transitionTimingFunction"],yP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Rv=!1;const rX=J({name:"Carousel",props:yP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>_C(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,nX):{}}),w=P(()=>h.value?0:qY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GeKY(_.value,f.value)),$=kv(e.defaultIndex,f.value),R=D(CC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>kv(I.value,f.value));function A(oe){var Fe,Ne;oe=rd(oe,0,_.value-1);const Ze=CC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return UY(oe,_.value,e.loop)}function j(oe=z.value){return WY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=rd(kv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};YY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Gs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(Rv||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;Rv=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=SC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=SC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=rd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(Rv=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=_C(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Qm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",tX,jY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=oX(p);return b.length||(b=p.map(m=>u(bP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=VY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&Ra(h,d,()=>[u(GY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Ra(v,c,()=>[u(JY,null)]))}});function oX(e){return e.reduce((t,n)=>(eX(n)&&t.push(n),t),[])}const iX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},aX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},iX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},lX={name:"Checkbox",common:et,self:aX},Il=lX,sX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},cX={name:"Cascader",common:et,peers:{InternalSelectMenu:Ml,InternalSelection:fh,Scrollbar:hr,Checkbox:Il,Empty:Bi},self:sX},dX=cX;function od(e){return e?e.map(t=>t.rawNode):null}function uX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Gg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Gg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const fX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),hX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),xP="n-checkbox-group",wP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},CP=J({name:"CheckboxGroup",props:wP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(xP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),vX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),_o(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),qo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),SP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Zo=J({name:"Checkbox",props:SP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(xP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",vX,Il,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(ko,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},hX):u("div",{key:"check",class:`${c}-checkbox-icon`},fX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),dc="n-cascader",kC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(dc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Zo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Jb,null)}):null}):null:u(eo,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ha,null)})}))))}}),pX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(dc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(No,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(kC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(kC,{key:r.key,tmNode:r}))}))}}),gX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(dc),l=[],s=D(null),c=D(null);function d(){o()}oh(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(pX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(uK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ei,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Po,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),mX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(dc),v=D(null),p=P(()=>uX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>to(m.value,hh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(cc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),bX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),_P=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),yX=J({name:"Cascader",props:_P,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",bX,dX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return to(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ha(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return od((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof S2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,od(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,od((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return od((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Gg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Gg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&($a(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(dc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:An(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(gX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(mX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),xX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},wX={name:"Code",common:et,self:xX},kP=wX,CX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),RP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),PP=J({name:"Code",props:RP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:h2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",CX,kP,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),SX=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},_X={name:"Collapse",common:et,self:SX},kX=_X,RX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),jo({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),$P=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),TP="n-collapse",PX=J({name:"Collapse",props:$P,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",RX,kX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt(TP,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),$X=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Lk(xe(e,"show"))}},render(){return u(Ro,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),OP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},TX=J({name:"CollapseItem",props:OP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(TP);o||Dn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Ra(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Ra(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(e0,null):u(Ha,null)})]})),n==="left"&&l),fD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u($X,{clsPrefix:i,displayDirective:o,show:!r},t))}}),OX=S("collapse-transition",{width:"100%"},[jo()]),zX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},MX={name:"CollapseTransition",common:et,self:zX},IX=MX,zP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),FX=J({name:"CollapseTransition",props:zP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",OX,IX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Ro,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),MP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},IP=J({name:"ConfigProvider",alias:["App"],props:MP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:cl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=bu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=bu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${Bs(JSON.stringify(r.value))}`:g:m?Bs(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||ZR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),FP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},DX=J({name:"Countdown",props:FP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),AX=e=>1-Math.pow(1-e,5);function BX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*AX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const DP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},EX=J({name:"NumberAnimation",props:DP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&BX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=JN(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function LX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const NX={name:"Popselect",common:et,peers:{Popover:Ua,InternalSelectMenu:Ml},self:LX},s0=NX,AP="n-popselect",HX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),c0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},RC=Nn(c0),jX=J({name:"PopselectPanel",props:c0,setup(e){const t=Le(AP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",HX,s0,t.props,n),i=P(()=>to(e.options,hh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(cc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),BP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Aa(Ma,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ma.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),c0),EP=J({name:"Popselect",props:BP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,s0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(AP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(jX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,RC),{ref:$k(r),onMouseenter:gs([i,l.onMouseenter]),onMouseleave:gs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Wa,Object.assign({},Aa(this.$props,RC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function VX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const UX={name:"Select",common:et,peers:{InternalSelection:fh,InternalSelectMenu:Ml},self:VX},LP=UX,WX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),HP=J({name:"Select",props:NP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",WX,LP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=hh(G,q);return to(z.value,_e)}),h=P(()=>QK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=Ri(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return xv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?xv(Be,ze):typeof ze=="number"?xv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:ZK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&($a(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:An(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(cc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),KX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},qX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},KX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},YX={name:"Pagination",common:et,peers:{Select:LP,Input:kr,Popselect:s0},self:qX},jP=YX;function XX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:PC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function PC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const $C=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,TC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],GX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",$C,TC),O("&:hover",$C,TC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),VP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UP=J({name:"Pagination",props:VP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",GX,jP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>XX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||mp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||mp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Mi,null):u(Ti,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(zi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(zi,null):u(Oi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(EP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u(Mi,null)})));case"size-picker":return!m&&l?u(HP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),ZX={padding:"8px 14px"},QX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},ZX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},JX={name:"Tooltip",common:et,peers:{Popover:Ua},self:QX},vh=JX,eG={name:"Ellipsis",common:et,peers:{Tooltip:vh}},WP=eG,tG={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},nG=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},tG),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},rG={name:"Radio",common:et,self:nG},d0=rG,oG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},iG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},oG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},aG={name:"Dropdown",common:et,peers:{Popover:Ua},self:iG},u0=aG,lG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},sG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},lG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},cG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Il,Radio:d0,Pagination:jP,Scrollbar:hr,Empty:Bi,Popover:Ua,Ellipsis:WP,Dropdown:u0},self:sG},dG=cG,KP=Object.assign(Object.assign({},Ma),Se.props),ph=J({name:"Tooltip",props:KP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,vh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Wa,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),uG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function OC(e){return`${e}-ellipsis--line-clamp`}function zC(e,t){return`${e}-ellipsis--cursor-${t}`}const qP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),f0=J({name:"Ellipsis",inheritAttrs:!1,props:qP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",uG,WP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Zs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?OC(r.value):void 0,e.expandTrigger==="click"?zC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=OC(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=zC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(ph,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),fG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),YP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),no="n-data-table",hG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(no),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(fG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(p2,null)}))}}),vG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),gh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},XP="n-radio-group";function GP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(XP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const pG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),h0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),gh),setup(e){const t=GP(e),n=Se("Radio","-radio",pG,d0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),gG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function mG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=mG(Ir(nc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),bG=gh,yG=J({name:"RadioButton",props:gh,setup:GP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),JP=40,e$=40;function MC(e){if(e.type==="selection")return e.width===void 0?JP:dn(e.width);if(e.type==="expand")return e.width===void 0?e$:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function xG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:JP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:e$);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function IC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function wG(e){return e==="ascend"?1:e==="descend"?-1:0}function CG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function SG(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=xG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function _G(e,t,n){return typeof n=="function"?n(e,t):n||""}function Pv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $v(e){return"children"in e?!1:!!e.sorter}function t$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function FC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function DC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function kG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:DC(!1)}:Object.assign(Object.assign({},t),{order:DC(t.order)})}function n$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const RG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(no),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Pv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Pv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Pv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(CP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Zo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(QP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(h0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function PG(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const $G=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(no),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=PG(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Wa,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(vG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(lW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(RG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),TG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(no),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),r$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),OG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},zG={name:"Icon",common:et,self:OG},MG=zG,IG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),i$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",IG,MG,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),v0="n-dropdown-menu",mh="n-dropdown",AC="n-dropdown-option";function Zg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function FG(e){return e.type==="group"}function a$(e){return e.type==="divider"}function DG(e){return e.type==="render"}const l$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(mh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(AC,null),g=Le(v0),y=Le(Ol),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Zg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=ND(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(AC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(s$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(i$,null,{default:()=>u(Ha,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),AG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(v0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(mh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),BG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(AG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:a$(i)?u(r$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(l$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),EG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),s$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(mh);nt(v0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Zg(s,o));const{rawNode:l}=i;return Zg(l,o)})})});const r=D(null);return nt(oc,null),nt(ic,null),nt(Ol,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:DG(i)?u(EG,{tmNode:o,key:o.key}):a$(i)?u(r$,{clsPrefix:t,key:o.key}):FG(i)?u(BG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(l$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Pf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?O2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),LG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),NG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},HG=Object.keys(Ma),c$=Object.assign(Object.assign(Object.assign({},Ma),NG),Se.props),p0=J({name:"Dropdown",inheritAttrs:!1,props:c$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return to(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);kb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",LG,u0,e,h);nt(mh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:$k(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(s$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Wa,Object.assign({},mn(this.$props,HG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),d$="_n_all__",u$="_n_none__";function jG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case d$:n(!0);return;case u$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function VG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:d$};case"none":return{label:t.uncheckTableAll,key:u$};default:return n}}):[]}const UG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(no),l=P(()=>jG(r.value,o,i,a)),s=P(()=>VG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(p0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(x2,null)})})}}});function Tv(e){return typeof e.title=="function"?e.title(e):e.title}const f$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(no),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!$v(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=kG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=CG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Zo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(UG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Tv(R)):U&&typeof U=="object"?u(f0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Tv(R)}):Tv(R)),$v(R)?u(hG,{column:R}):null),FC(R)?u($G,{column:R,options:R.filterOptions}):null,t$(R)?u(TG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:n$(R,b),[`${t}-data-table-th--filterable`]:FC(R),[`${t}-data-table-th--sortable`]:$v(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),WG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(js(n,a),n,t):js(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(f0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),BC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(ko,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ha,null)})}))}}),KG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(no);return()=>{const{rowKey:r}=e;return u(Zo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),qG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(no);return()=>{const{rowKey:r}=e;return u(h0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function YG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const XG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),GG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(no),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:wl}),ut=!0}),Qs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?YG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:_G(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(qG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(KG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(BC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(WG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(No,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:XG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(f$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ei,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),ZG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(no),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(f$,{ref:"headerInstRef"}),u(GG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function QG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function id(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function JG(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?eZ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function eZ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function tZ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=id(p.sorter)||0;return(id(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=JG(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*wG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&id(v.sorter)!==!1?(p=p.filter(b=>id(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function nZ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return to(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(IC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=tZ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=IC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function rZ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=MC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=MC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&ka(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&ka(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function oZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){t$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function iZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:SG(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function aZ(e,t){const n=P(()=>iZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function lZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const EC=cZ(),sZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),EC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),EC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),_o(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),qo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function cZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const dZ=J({name:"DataTable",alias:["AdvancedTable"],props:YP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",sZ,dG,e,r),l=D(null),s=D("body");Zs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=oZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=aZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=nZ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=QG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=lZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=rZ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(no,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:$o,[ye("fontSize",Ve)]:Qo,[ye("thPadding",Ve)]:Jo,[ye("tdPadding",Ve)]:ei}}=a.value;return{"--n-font-size":Qo,"--n-th-padding":Jo,"--n-td-padding":ei,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":$o}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(ZG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(UP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(eo,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),uZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},fZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},uZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},hZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:fZ},h$=hZ,vZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},pZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},vZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},gZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:h$,Scrollbar:hr},self:pZ},mZ=gZ;function bZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function yZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[0]),p=Uu(h[0]),b=Wu(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[1]),p=Uu(h[1]),b=Wu(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const bh="n-date-picker";function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qg={exports:{}},Jg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Jg,Jg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Jg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Qg,Qg.exports);const xZ=yh(Qg.exports);var em={exports:{}},tm={exports:{}},nm={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(nm,nm.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}},Vo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Vo,Vo.exports);const wZ=yh(Vo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Vo.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(om,om.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(om.exports),r=i(Xn.exports),o=i(Vo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(rm,rm.exports);var im={exports:{}},am={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(am,am.exports);var lm={exports:{}},Ws={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})(zf,zf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(zf.exports),r=i(Ws.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(lm,lm.exports);var cm={exports:{}},Ks={exports:{}},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getDefaultOptions=CZ;Ka.setDefaultOptions=SZ;var v$={};function CZ(){return v$}function SZ(e){v$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Vo.exports),i=Ka;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Mf,Mf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Mf.exports),r=l(Xn.exports),o=l(Ks.exports),i=l(Vo.exports),a=Ka;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ks.exports),o=a(dm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(cm,cm.exports);var If={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(am.exports),r=c(lm.exports),o=c(zf.exports),i=c(cm.exports),a=c(Mf.exports),l=c(If.exports),s=c(um.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(im,im.exports);var fm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(fm,fm.exports);var Ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Ff,Ff.exports);const LC=yh(Ff.exports);var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.isProtectedDayOfYearToken=RZ;uc.isProtectedWeekYearToken=PZ;uc.throwProtectedError=$Z;var _Z=["D","DD"],kZ=["YY","YYYY"];function RZ(e){return _Z.indexOf(e)!==-1}function PZ(e){return kZ.indexOf(e)!==-1}function $Z(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hm={exports:{}},vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(mm,mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(mm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(gm,gm.exports);var bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(bm,bm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(xm,xm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(ym,ym.exports);var wm={exports:{}},Cm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Sm,Sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Cm.exports),r=o(Sm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(pm.exports),r=l(gm.exports),o=l(bm.exports),i=l(ym.exports),a=l(wm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(hm,hm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(tm.exports),r=v(rm.exports),o=v(Lr.exports),i=v(im.exports),a=v(fm.exports),l=v(Ff.exports),s=uc,c=v(Vo.exports),d=v(Xn.exports),f=Ka,h=v(hm.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(em,em.exports);const TZ=yh(em.exports);function NC(e,t,n){var r=MZ(e,n.timeZone,n.locale);return r.formatToParts?OZ(r,t):zZ(r,t)}function OZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function zZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function MZ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function IZ(e,t){var n=BZ(t);return n.formatToParts?DZ(n,e):AZ(n,e)}var FZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function DZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function AZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ov={};function BZ(e){if(!Ov[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Ov[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ov[e]}function p$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var HC=36e5,EZ=6e4,zv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function g0(e,t,n){var r,o;if(!e||(r=zv.timezoneZ.exec(e),r))return 0;var i;if(r=zv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),jC(i)?-(i*HC):NaN;if(r=zv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return jC(i,a)?(o=Math.abs(i)*HC+a*EZ,i>0?-o:o):NaN}if(HZ(e)){t=new Date(t||Date.now());var l=n?t:LZ(t),s=_m(l,e),c=n?s:NZ(t,s,e);return-c}return NaN}function LZ(e){return p$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _m(e,t){var n=IZ(e,t),r=p$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function NZ(e,t,n){var r=e.getTime(),o=r-t,i=_m(new Date(o),n);if(t===i)return t;o-=i-t;var a=_m(new Date(o),n);return i===a?i:Math.max(i,a)}function jC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var VC={};function HZ(e){if(VC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),VC[e]=!0,!0}catch{return!1}}var jZ=60*1e3,VZ={X:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return UC(o);case"XXXX":case"XX":return ll(o);case"XXXXX":case"XXX":default:return ll(o,":")}},x:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"x":return UC(o);case"xxxx":case"xx":return ll(o);case"xxxxx":case"xxx":default:return ll(o,":")}},O:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+UZ(o,":");case"OOOO":default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return NC("short",o,r);case"zzzz":default:return NC("long",o,r)}}};function Mv(e,t){var n=e?g0(e,t,!0)/jZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Df(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Df(Math.floor(o/60),2),a=Df(Math.floor(o%60),2);return r+i+n+a}function UC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Df(Math.abs(e)/60,2)}return ll(e,t)}function UZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Df(i,2)}const WZ=VZ;var KZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const qZ=KZ;var Iv=36e5,WC=6e4,YZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:qZ};function g$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?YZ:wZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=XZ(e),i=GZ(o.date,r),a=i.year,l=i.restDateString,s=ZZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=QZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=g0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=LC(new Date(c+d)),f=LC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function XZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function GZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function ZZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,qC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return tQ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return qC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,YC(t,i)?KC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return YC(t,i,s)?KC(t,i,s):new Date(NaN)}return null}function QZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Fv(n)?n%24*Iv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Fv(n,r)?n%24*Iv+r*WC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Fv(n,r,o)?n%24*Iv+r*WC+o*1e3:NaN}return null}function KC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var JZ=[31,28,31,30,31,30,31,31,30,31,30,31],eQ=[31,29,31,30,31,30,31,31,30,31,30,31];function m$(e){return e%400===0||e%4===0&&e%100!==0}function qC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=m$(e);if(r&&n>eQ[t]||!r&&n>JZ[t])return!1}return!0}function tQ(e,t){if(t<1)return!1;var n=m$(e);return!(n&&t>366||!n&&t>365)}function YC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Fv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var nQ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function rQ(e,t,n){var r=String(t),o=n||{},i=r.match(nQ);if(i){var a=g$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+WZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return TZ(e,r,o)}function oQ(e,t,n){var r=g$(e,n),o=g0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function b$(e,t,n,r){var o=xZ(r);return o.timeZone=t,rQ(oQ(e,t),n,o)}const rs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Dv(e){return`00${e}`.slice(-2)}function os(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Dv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Dv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Dv(r===12?12:r-12)):e}function ad(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function iQ(e,t,n){const r=os(rs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Dn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function aQ(e){return di(e)<12?"am":"pm"}const y$="n-time-picker",ld=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),lQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},sQ=J({name:"TimePickerPanel",props:lQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(y$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:aQ(Date.now());return os(rs.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return os(rs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return os(rs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return os(rs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Po,{onFocus:this.onFocusDetectorFocus}))}}),cQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Av(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const x$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Av(e,23)},minutes:{type:[Number,Array],validator:e=>Av(e,59)},seconds:{type:[Number,Array],validator:e=>Av(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Af=J({name:"TimePicker",props:x$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",cQ,h$,e,n),h=kb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>b$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:ad(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!ad(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!ad(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:di(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&$a(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&($a(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(Xi(XU(new Date),se))):pe(tt(Xi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(vv(nH(new Date),se))):pe(tt(vv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(pv(Zb(new Date),se))):pe(tt(pv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=di(oe);se==="pm"&&Fe<12?pe(tt(Xi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(Xi(oe,Fe-12))),pe(tt(oe))}else{const oe=di($e);se==="pm"&&oe<12?pe(tt(Xi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(Xi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=jn(oe,{hours:di($e),minutes:Uu($e),seconds:Wu($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:di,minutes:Uu,seconds:Wu},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||ad($e[Ue](se),Ue,e[Ue])?$e[Ue](se):iQ($e[Ue](se),Ue,e[Ue])),Ze=pv(vv(Xi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(y$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:An(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(In,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(cW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(sQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),dQ="HH:mm:ss",w$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:dQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function C$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(bh),l=P(()=>({locale:t.value.locale})),s=D(null),c=kb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const m0=Object.assign(Object.assign({},w$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function b0(e,t){const n=C$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(bh),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Of(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return qg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return Xg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Yg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(dh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Zb(B):t==="month"?Tr(B):t==="year"?Ub(B):t==="quarter"?Vs(B):Cl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=jn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=jn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=fu(e.defaultTime);te&&(N=tt(jn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?GU(lC(N,B.dateObject.year),B.dateObject.quarter):jn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Qb(te,B.dateObject.month):lC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Mp(g.value,1))}function we(){g.value=tt(Mp(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ia})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Tf;y.value.scrollTo({top:te*Ia})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const S$=J({name:"MonthPanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=b0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"yearVlRef",items:this.yearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),kl=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(S$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),uQ=J({name:"DateTimePanel",props:m0,setup(e){return b0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(In,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Af,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Mi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(zi,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),y0=Object.assign(Object.assign({},w$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function x0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(bh),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=C$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Of(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Of(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>Xg(rl(e.value,"start"),ee.value)),ve=P(()=>Xg(rl(e.value,"end"),ee.value)),Z=P(()=>{const Re=rl(e.value,"start");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=rl(e.value,"end");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=rl(e.value,"start");return qg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=rl(e.value,"end");return qg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=fu(At[0]),Ut=fu(At[1])):(kt=fu(At),Ut=kt)}kt&&(Re=tt(jn(Re,kt))),Ut&&(Ye=tt(jn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Zb(Re):t==="monthrange"?Tr(Re):Cl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=jn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=jn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Tf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Tf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?jn(Re.ts,{month:qt(t==="quarterrange"?Vs(new Date):new Date)}).valueOf():jn(Re.ts,{month:qt(t==="quarterrange"?Vs(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const fQ=J({name:"DateTimeRangePanel",props:y0,setup(e){return x0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(In,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(In,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),hQ=J({name:"DatePanel",props:m0,setup(e){return b0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),vQ=J({name:"DateRangePanel",props:y0,setup(e){return x0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),pQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},y0),{type:{type:String,required:!0}}),setup(e){const t=x0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Jm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),gQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),_$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),mQ=J({name:"DatePicker",props:_$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",gQ,mZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&($a(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&$a(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=bZ(e,A),We=yZ(e,A);nt(bh,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:$o,calendarDaysHeight:Qo,calendarDaysTextColor:Jo,arrowSize:ei,panelHeaderPadding:Ni,calendarDividerColor:kh,calendarTitleGridTempateColumns:Rh,iconColor:Ph,iconColorDisabled:$h,scrollItemBorderRadius:Th,calendarTitleColorHover:Oh,[ye("calendarLeftPadding",ae)]:zh,[ye("calendarRightPadding",ae)]:Mh}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ni,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":zh,"--n-calendar-right-padding":Mh,"--n-calendar-title-color-hover":Oh,"--n-calendar-title-height":$o,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Rh,"--n-calendar-days-height":Qo,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Jo,"--n-calendar-divider-color":kh,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Th,"--n-arrow-size":ei,"--n-arrow-color":be,"--n-icon-color":Ph,"--n-icon-color-disabled":$h}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:An(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(uQ,Object.assign({},o),r):l==="daterange"?u(vQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(fQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(S$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(pQ,Object.assign({},o,{type:l})):u(hQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(hW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(sC,null)})])}):u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(sC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),bQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},yQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},bQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},xQ={name:"Descriptions",common:et,self:yQ},wQ=xQ,k$="DESCRIPTION_ITEM_FLAG";function CQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[k$]:!1}const SQ=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),_o(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),R$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),_Q=J({name:"Descriptions",props:R$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",SQ,wQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ri(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>CQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Tx(g,"label")],k=[Tx(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||nc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),P$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},kQ=J({name:"DescriptionsItem",[k$]:!0,props:P$,render(){return null}}),RQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},PQ=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},RQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},$Q={name:"Dialog",common:et,peers:{Button:vr},self:PQ},$$=$Q,fc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},T$=Nn(fc),TQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),_o(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Ak(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),OQ={default:()=>u(Ii,null),info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null)},w0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),fc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",TQ,$$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):OQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Go,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),O$="n-dialog-provider",z$="n-dialog-api",M$="n-dialog-reactive-list",zQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},MQ={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:$$,Card:vP},self:zQ},IQ=MQ,C0=Object.assign(Object.assign({},a0),fc),FQ=Nn(C0),DQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},C0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),iR(P(()=>e.blockScroll&&r.value));const a=Le(Uk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(oc,t),nt(ic,null),nt(Ol,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Mu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Ob,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(w0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,T$),{"aria-modal":"true"}),e):this.preset==="card"?u(gP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,LY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),AQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Ho({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),I$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),C0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),F$=J({name:"Modal",inheritAttrs:!1,props:I$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",AQ,IQ,e,n),a=jk(64),l=Hk(),s=An(),c=e.internalDialog?Le(O$,null):null,d=aR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!d.value&&f(!1)}nt(Uk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,FQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(DQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),BQ=Object.assign(Object.assign({},fc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),EQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},BQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(F$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(w0,Object.assign({},mn(this.$props,T$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),D$={injectionKey:String,to:[String,Object]},A$=J({name:"DialogProvider",props:D$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Fi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(z$,a),nt(O$,{clickedRef:jk(64),clickPositionRef:Hk()}),nt(M$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(EQ,Aa(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function B$(){const e=Le(z$,null);return e===null&&Dn("use-dialog","No outer founded."),e}function LQ(){const e=Le(M$,null);return e===null&&Dn("use-dialog-reactive-list","No outer founded."),e}const NQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},HQ={name:"Divider",common:et,self:NQ},jQ=HQ,VQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),E$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),UQ=J({name:"Divider",props:E$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",VQ,jQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),WQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},KQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:WQ},qQ=KQ,YQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(Pb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return iR(P(()=>e.blockScroll&&t.value)),nt(ic,n),nt(Ol,null),nt(oc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:XQ,cubicBezierEaseOut:GQ}=_r;function ZQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${XQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${GQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:QQ,cubicBezierEaseOut:JQ}=_r;function eJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${QQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${JQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:tJ,cubicBezierEaseOut:nJ}=_r;function rJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${tJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${nJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:oJ,cubicBezierEaseOut:iJ}=_r;function aJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${oJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${iJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const lJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[ZQ(),eJ(),rJ(),aJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Ho({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),L$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),sJ=J({name:"Drawer",inheritAttrs:!1,props:L$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=An(),i=Se("Drawer","-drawer",lJ,qQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=aR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(Pb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(YQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),N$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},cJ=J({name:"DrawerContent",props:N$,setup(){const e=Le(Pb,null);e||Dn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Go,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),dJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},uJ=()=>dJ,fJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:uJ},hJ=fJ,S0="n-dynamic-input",vJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(S0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),pJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(S0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),gJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),sd=new WeakMap,H$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),mJ=J({name:"DynamicInput",props:H$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(Fu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",gJ,hJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=va($)?zt($):$;let z=sd.get(I);return z===void 0&&sd.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=va(A)?zt(A):A,j=va(R)?zt(R):R,E=sd.get(L);E!==void 0&&sd.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(S0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(_l,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},Ra(e.default,{value:r[y],index:y},()=>[s==="input"?u(vJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(pJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(o0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(b2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(tW,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(p2,null)})}):null]})))))}}),bJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},yJ=()=>bJ,xJ={name:"Space",self:yJ},j$=xJ;let Bv;const wJ=()=>{if(!rr)return!0;if(Bv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Bv=t}return Bv},V$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),U$=J({name:"Space",props:V$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,j$,e,t),o=Zt("Space",n,t);return{useGap:wJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=tD(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(nc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),CJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:M2,Space:j$},self(){return{inputWidth:"64px"}}},SJ=CJ,_J=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),W$=Object.assign(Object.assign(Object.assign({},Se.props),I2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),kJ=J({name:"DynamicTags",props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",_J,SJ,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>mp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(U$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(ws,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(In,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}))}})}}),RJ={name:"Element",common:et},PJ=RJ,K$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),XC=J({name:"Element",alias:["El"],props:K$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,PJ,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${XR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),$J={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},TJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},$J),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},OJ={name:"Form",common:et,self:TJ},q$=OJ,zJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),hc="n-form",Y$="n-form-item-insts";var MJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),IJ=J({name:"Form",props:X$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",zJ,q$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return MJ(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Nn(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Nn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(hc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(Y$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e,t,n){return DJ()?vu=Reflect.construct.bind():vu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&qs(c,a.prototype),c},vu.apply(null,arguments)}function AJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!AJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return vu(r,arguments,km(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qs(o,r)},Rm(e)}var BJ=/%[sdj%]/g,EJ=function(){};typeof process<"u"&&process.env;function Pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function LJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||LJ(t)&&typeof e=="string"&&!e)}function NJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(KJ())},hex:function(t){return typeof t=="string"&&!!t.match(eS.hex)}},qJ=function(t,n,r,o,i){if(t.required&&n===void 0){G$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?is[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},YJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},il="enum",XJ=function(t,n,r,o,i){t[il]=Array.isArray(t[il])?t[il]:[],t[il].indexOf(n)===-1&&o.push(mr(i.messages[il],t.fullField,t[il].join(", ")))},GJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:G$,whitespace:WJ,type:qJ,range:YJ,enum:XJ,pattern:GJ},ZJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Fn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n)||Bt.type(t,n,o,a,i)}r(a)},nee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},aee="enum",lee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[aee](t,n,o,a,i)}r(a)},see=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},cee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},dee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Ev=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),Fn(n,a)||Bt.type(t,n,o,l,i)}r(l)},uee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},Cs={string:ZJ,method:QJ,number:JJ,boolean:eee,regexp:tee,integer:nee,float:ree,array:oee,object:iee,enum:lee,pattern:see,date:cee,url:Ev,hex:Ev,email:Ev,required:dee,any:uee};function $m(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=$m(),vc=function(){function e(n){this.rules=null,this._messages=Tm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=JC($m(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function hee(e){const t=Le(hc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function vee(e){const t=Le(hc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=js(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:tS}=_r;function pee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=tS,leaveCubicBezier:i=tS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const gee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),pee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var nS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),Z$=Nn(pc);function rS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const _0=J({name:"FormItem",props:pc,setup(e){BD(Y$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(hc,null),o=fee(e),i=hee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=vee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",gee,q$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return nS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>nS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?js(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=rS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=rS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new vc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(Fu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),oS=1,Q$="n-grid",J$=1,Ys={span:{type:[Number,String],default:J$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},mee=Nn(Ys),Om=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ys,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Q$),i=Ko();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=J$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zm=Object.assign(Object.assign({},Ys),pc),iS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:zm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Om,mn(this.$.vnode.props||{},mee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),bee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),yee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),bee])]),eT="n-row",xh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},xee=Nn(xh),tT=J({name:"Row",props:xh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",yee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(eT,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),wh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},wee=Nn(wh),nT=J({name:"Col",props:wh,setup(e){const t=Le(eT,null);return t||Dn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),k0=Object.assign(Object.assign({},wh),pc),Cee=Nn(k0),rT=J({name:"FormItemCol",props:k0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(nT,mn(this.$props,wee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),See=Object.assign(Object.assign({},xh),k0),_ee=J({name:"FormItemRow",props:See,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,xee),{default:()=>{const e=mn(this.$props,Cee);return u(rT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),kee=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Wo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?cl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Qs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Ree=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},Pee={name:"GradientText",common:et,self:Ree},$ee=Pee,Tee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),oT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Oee=J({name:"GradientText",props:oT,setup(e){$b();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Tee,$ee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),zee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},iT=24,Lv="__ssr__",aT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:iT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Mee=J({name:"Grid",inheritAttrs:!1,props:aT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=QD((n==null?void 0:n.value)||zee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(Vl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:iT}),c=it(()=>Vl(e.xGap.toString(),l.value)),d=it(()=>Vl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{ka(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Lv)&&(g.removeAttribute(Lv),b.value=!0)}),nt(Q$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(nc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(hD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=Vl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:oS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:oS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=Vl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Lv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Iee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Fee={name:"IconWrapper",common:et,self:Iee},Dee=Fee,Aee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),lT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Bee=J({name:"IconWrapper",props:lT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Aee,Dee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),R0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),sT="n-image";function Eee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Lee={name:"Image",common:et,peers:{Tooltip:vh},self:Eee},Nee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Hee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Nee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},jee={name:"Notification",common:et,peers:{Scrollbar:hr},self:Hee},Vee=jee,Uee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Wee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Uee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},Kee={name:"Message",common:et,self:Wee},qee=Kee,Yee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Xee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Yee},Gee=Xee,Zee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Qee={name:"Layout",common:et,peers:{Scrollbar:hr},self:Zee},Ch=Qee,Jee=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},ete={name:"List",common:et,self:Jee},tte=ete,nte=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},rte={name:"LoadingBar",common:et,self:nte},ote=rte,ite=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},ate={name:"Log",common:et,peers:{Scrollbar:hr,Code:kP},self:ite},lte=ate,ste=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},cte={name:"Mention",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:ste},dte=cte;function ute(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const fte=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},ute("#BBB",r,"#FFF","#AAA"))},hte={name:"Menu",common:et,peers:{Tooltip:vh,Dropdown:u0},self:fte},vte=hte,pte={titleFontSize:"18px",backSize:"22px"};function gte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},pte),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const mte={name:"PageHeader",common:et,self:gte},bte={iconSize:"22px"},yte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},bte),{fontSize:t,iconColor:n})},xte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Ua},self:yte},wte=xte,Cte=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Ste={name:"Progress",common:et,self:Cte},cT=Ste,_te=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},kte={name:"Rate",common:et,self:_te},Rte=kte,Pte={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},$te=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},Pte),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},Tte={name:"Result",common:et,self:$te},Ote=Tte,zte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Mte=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},zte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Ite={name:"Slider",common:et,self:Mte},Fte=Ite,Dte=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Ate={name:"Spin",common:et,self:Dte},Bte=Ate,Ete=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Lte={name:"Statistic",common:et,self:Ete},Nte=Lte,Hte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},jte=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},Hte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Vte={name:"Steps",common:et,self:jte},Ute=Vte,Wte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Kte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Wte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},qte={name:"Switch",common:et,self:Kte},Yte=qte,Xte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Gte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Xte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Zte={name:"Table",common:et,self:Gte},Qte=Zte,Jte={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},ene=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Jte),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},tne={name:"Tabs",common:et,self:ene},nne=tne,rne=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},one={name:"Thing",common:et,self:rne},ine=one,ane={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},lne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},ane),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},sne={name:"Timeline",common:et,self:lne},cne=sne,dne={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},une=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},dne),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},fne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:une},hne=fne,vne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},pne={name:"Tree",common:et,peers:{Checkbox:Il,Scrollbar:hr,Empty:Bi},self:vne},dT=pne,gne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},mne={name:"TreeSelect",common:et,peers:{Tree:dT,Empty:Bi,InternalSelection:fh},self:gne},bne=mne,yne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},xne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},yne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},wne={name:"Typography",common:et,self:xne},Li=wne,Cne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},Sne={name:"Upload",common:et,peers:{Button:vr,Progress:cT},self:Cne},_ne=Sne,kne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Rne=kne,Pne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),$ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Tne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),One=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Ho()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Ho()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),dd=32,uT=J({name:"ImagePreview",props:Object.assign(Object.assign({},R0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",One,Lee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,ka(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Gs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${XR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(ph,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:An(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(lc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Pne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>$ne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(mW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(gW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(xW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(yW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(bW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Tne}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ac,{enabled:this.show}]])):null}}))}}),fT="n-image-group",hT=R0,vT=J({name:"ImageGroup",props:hT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Ko(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(fT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),pT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},R0),gT=J({name:"Image",props:pT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(fT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(gl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=G2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(sT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:gl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:gl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function zne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Mne(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Nv(e){return e==null?!0:!Number.isNaN(e)}function aS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Hv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Ine=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),lS=800,sS=100,mT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Fne=J({name:"InputNumber",props:mT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Ine,Gee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Hv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Hv(e.min);return B!==null?B:null}),k=it(()=>{const B=Hv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&Mne(Z))return!1;const fe=(e.parse||zne)(Z);if(fe===null)return N&&_(null),null;if(Nv(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Nv(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=aS(B,void 0):m.value=aS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},sS)},lS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},sS)},lS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=Bn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Jr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(b2,null)})])}),r=()=>u(Jr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(_l,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(In,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),bT="n-layout-sider",Sh={type:String,default:"static"},Dne=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Mm={embedded:Boolean,position:Sh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function xT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Mm),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",Dne,Ch,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(yT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Mb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Ane=xT(!1),Bne=xT(!0),Ene=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),wT={position:Sh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Lne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),wT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Ene,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Nne=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),CT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Sh,bordered:Boolean}),Hne=J({name:"LayoutFooter",props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Nne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),jne=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Vne=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Ha,null)}))}}),Une=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ST={position:Sh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Wne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),ST),setup(e){const t=Le(yT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Mb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(bT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",jne,Ch,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Une,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Vne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),Kne={extraFontSize:"12px",width:"440px"},qne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},Kne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Yne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:qne},Xne=Yne,gc="n-transfer",cS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(gc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Zo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),dS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(gc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:rc(r)},r))}}),uS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(dS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(Gf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(dS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),fS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(y2,null)})}))}});function Gne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Zne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Qne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Ho()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Zne]),_T=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Jne=J({name:"LegacyTransfer",props:_T,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Qne,Xne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Gne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(gc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(cS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Ha,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(e0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(cS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),ere=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),_o(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),kT=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),RT="n-list",tre=J({name:"List",props:kT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",ere,tte,e,t);nt(RT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),nre=J({name:"ListItem",setup(){const e=Le(RT,null);return e||Dn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),PT="n-loading-bar",$T="n-loading-bar-api",rre=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Ho({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var jv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function ud(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ore=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(PT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return jv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return jv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=ud(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=ud("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=ud("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=ud("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return jv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",rre,ote,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),TT=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),OT=J({name:"LoadingBarProvider",props:TT,setup(e){const t=An(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt($T,r),nt(PT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Js,{disabled:this.to===!1,to:this.to||"body"},u(ore,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function zT(){const e=Le($T,null);return e===null&&Dn("use-loading-bar","No outer founded."),e}const ire=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(eo,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),MT="n-log",are=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(MT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),lre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),IT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),sre=J({name:"Log",props:IT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",lre,lte,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=xs(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(MT,{languageRef:xe(e,"language"),mergedHljsRef:h2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(PP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(are,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(ire,{clsPrefix:e}):null})])}}),mc="n-menu",P0="n-submenu",$0="n-menu-item-group",fd=8;function T0(e){const t=Le(mc),{props:n,mergedCollapsedRef:r}=t,o=Le(P0,null),i=Le($0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?fd:(p===void 0?v:p)+b+fd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const O0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},FT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),cre=J({name:"MenuOptionGroup",props:FT,setup(e){nt(P0,null);const t=T0(e);nt($0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(mc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>z0(s,r))))}}}),DT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(mc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(fW,null)}):null)}}),AT=Object.assign(Object.assign({},O0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),dre=J({name:"Submenu",props:AT,setup(e){const t=T0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(P0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt($0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(DT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(Ro,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>z0(s,this.menuProps)))}});return this.root?u(p0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),BT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),ure=J({name:"MenuOption",props:BT,setup(e){const t=T0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(ph,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(DT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),fre=J({name:"MenuDivider",setup(){const e=Le(mc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),hre=Nn(FT),vre=Nn(BT),pre=Nn(AT);function ET(e){return e.type==="divider"||e.type==="render"}function gre(e){return e.type==="divider"}function z0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(ET(n))return gre(n)?u(fre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(cre,mn(s,hre,{tmNode:e,tmNodes:e.children,key:i})):u(dre,mn(s,pre,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(ure,mn(s,vre,{key:i,tmNode:e}))}const hS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],vS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],mre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",vS)]),F("selected",[Ji(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Ji(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ji("border-bottom: 2px solid var(--n-border-color-horizontal);",vS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",hS)]),F("selected",[Ji(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Ji(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Ji(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Ji(null,hS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[jo({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Ji(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const LT=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),bre=J({name:"Menu",props:LT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",mre,vte,e,t),o=Le(bT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return to(e.items||e.options,{getIgnored(I){return ET(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=Ri(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(mc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>z0(o,this.$props)))}});function yre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const xre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),wre=J({name:"Mention",props:NT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",xre,dte,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>to(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=yre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:An(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(In,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(cc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),HT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},jT="n-message-api",VT="n-message-provider",Cre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[jo({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),Sre={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},_re=J({name:"Message",props:Object.assign(Object.assign({},HT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(VT),i=Zt("Message",n,o),a=Se("Message","-message",Cre,qee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=kre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(ko,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Go,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function kre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(eo,{clsPrefix:n,strokeWidth:24,scale:.85}):Sre[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Rre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},HT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Ro,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(_re,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),UT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),WT=J({name:"MessageProvider",props:UT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(VT,{props:e,mergedClsPrefixRef:t}),nt(jT,o);function i(s,c){const d=Cr(),f=Fi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Rre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Aa(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function KT(){const e=Le(jT,null);return e===null&&Dn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const _h="n-notification-provider",Pre=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(_h),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),$re={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},M0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Tre=Nn(M0),Ore=J({name:"Notification",props:M0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(_h),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=yi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>$re[this.type]()}):null):null,this.closable?u(Go,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),zre=Object.assign(Object.assign({},M0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Mre=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},zre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(_h),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Ore,Object.assign({},mn(this.$props,Tre),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Ire=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[hd("top-right")]),F("top-left",` - left: 0; - `,[hd("top-left")]),F("bottom-right",` - right: 0; - `,[hd("bottom-right")]),F("bottom-left",` - left: 0; - `,[hd("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function hd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const qT="n-notification-api",YT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XT=J({name:"NotificationProvider",props:YT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Fi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Ire,Vee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(qT,c),nt(_h,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(Pre,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Mre,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Aa(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function GT(){const e=Le(qT,null);return e===null&&Dn("use-notification","No outer `n-notification-provider` found."),e}const Fre=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),ZT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Dre=J({name:"PageHeader",props:ZT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Fre,mte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(pW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),QT="n-popconfirm",JT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},pS=Nn(JT),Are=J({name:"NPopconfirmPanel",props:JT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(QT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Ai,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Bre=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),eO=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Ere=J({name:"Popconfirm",props:eO,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Bre,wte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(QT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Wa,Aa(t,pS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,pS);return u(Are,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Lre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Nre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Hre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Nre[f]}))):null)}}}),jre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Vre=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>jre[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function gS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Ure=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),tO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),nO=J({name:"Progress",props:tO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Lre,cT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Vre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(Hre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Ure,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Wre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Kre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),rO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),qre=J({name:"Rate",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",Kre,Rte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Pa(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},B5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Wre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Yre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Xre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Gre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Zre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Qre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Jre={403:Zre,404:Yre,418:Gre,500:Xre,info:u(Ii,null),success:u(Va,null),warning:u(Ai,null),error:u(ja,null)},oO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),eoe=J({name:"Result",props:oO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Qre,Ote,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>Jre[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),iO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),toe=J({name:"Scrollbar",props:iO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),noe=toe,roe=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},ooe={name:"Skeleton",common:et,self:roe},ioe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),aO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),aoe=J({name:"Skeleton",inheritAttrs:!1,props:aO,setup(e){$b();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",ioe,ooe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function mS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function bS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Zm(()=>e.value.clear()),[e,t]}const loe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),_o(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),qo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),soe=0,lO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),coe=J({name:"Slider",props:lO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",loe,Fte,e,t),i=D(null),[a,l]=bS(),[s,c]=bS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!mS(ne)&&ne.button!==soe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:An(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),doe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ho()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),uoe={small:20,medium:18,large:16},sO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),foe=J({name:"Spin",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",doe,Bte,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ri(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return uoe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(eo,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),hoe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),cO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),voe=J({name:"Statistic",props:cO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",hoe,Nte,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),poe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function goe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function moe(e){return e.map((t,n)=>goe(t,n))}const dO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),uO="n-steps",boe=J({name:"Steps",props:dO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",poe,Ute,e,n);return nt(uO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},moe(Ir(nc(this))))}}),fO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},yoe=J({name:"Step",props:fO,setup(e){const t=Le(uO,null);t||Dn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(ko,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Jb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(g2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),xoe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),hO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Zl;const woe=J({name:"Switch",props:hO,setup(e){Zl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Zl=CSS.supports("width","max(1px)"):Zl=!1:Zl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",xoe,Yte,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Zl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(xa(s)&&xa(c)&&xa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(ko,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),Coe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),_o(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),qo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),vO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),Soe=J({name:"Table",props:vO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",Coe,Qte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),_oe=J({name:"Th",render(){return u("th",null,this.$slots)}}),koe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Roe=J({name:"Td",render(){return u("td",null,this.$slots)}}),Poe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),$oe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),I0="n-tabs",F0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Toe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:F0,setup(e){const t=Le(I0,null);return t||Dn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Aa(F0,["displayDirective"])),Bf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(I0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(_l,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Go,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Ooe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),zoe=J({name:"Tabs",props:gO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",Ooe,nne,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=Ri(e,["labelSize","size"]),g=Ri(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=xs(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=xs(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=xs(X=>{pe(X.target)},64);nt(I0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),nh(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Vv(u(Bf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Vv(x!==0&&!m?wS(C):C))),!r&&o&&p?xS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Bf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:wS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(UA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?xS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yS(f,this.mergedValue,this.renderedNames)))}});function yS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(Gf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function xS(e,t){return u(Bf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function wS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Vv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Moe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),mO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Ioe=J({name:"Thing",props:mO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",Moe,ine,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),bO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Foe=J({name:"Time",props:bO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>b$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):SH(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Qr(this.renderedTime):u("time",[this.renderedTime])}}),CS=1.25,Doe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${CS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${CS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),yO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),xO="n-timeline",Aoe=J({name:"Timeline",props:yO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",Doe,cne,e,n);return nt(xO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),wO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Boe=J({name:"TimelineItem",props:wO,setup(e){const t=Le(xO);t||Dn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),$b();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),bc="n-transfer",SS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(bc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),_S=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(bc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:rc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Go,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(_S,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(_S,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),RS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(y2,null)})}))}});function Eoe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Loe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),CO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Noe=J({name:"Transfer",props:CO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Loe,hne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Eoe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(bc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(SS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(RS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(SS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(RS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),D0="n-tree-select",yc="n-tree",Hoe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(yc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(ko,null,{default:()=>{if(e.loading)return u(eo,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(sW,null)})}})))}}}),joe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(yc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Zo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Voe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(yc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function PS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Uoe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function SO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function li(e,t){return!!e.rawNode[t]}function _O(e,t,n,r){e==null||e.forEach(o=>{n(o),_O(o[t],t,n,r),r(o)})}function Woe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return _O(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Koe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const qoe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(yc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>li(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Pk(e.key):void 0,y=b==="right",C=n?u(joe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),Rk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Hoe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Voe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?PS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?PS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),kO=qoe;function Yoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(D0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(kO,{clsPrefix:e,tmNode:t})))})}}),Goe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[jo({duration:"0.2s"})]),F("collapse",[jo({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Zoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vd=30;function RO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const PO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},$O=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Uoe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),PO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),TO=J({name:"Tree",props:$O,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Goe,dT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Koe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>to(e.showIrrelevantNodes?e.data:h.value.filteredTree,RO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(D0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=SO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Yoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Woe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return Zoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/vd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>C2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||li(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||li(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const $o=Ur(De.key);if($o===null){We();return}let Qo=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[$o-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Qo=!0,cn==="after"&&(Et=j.value[$o+1],Et?cn="before":(Et=De,cn="inside")));const Jo=Et;if(Oe.value=Jo,!Qo&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let ei=Ce-be.clientX,Ni=0;for(;ei>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ni<1;)ei-=Vt,Ni+=1,Et=Et.parent;pe.value=Ni}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Jo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Pk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(yc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Xoe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(kO,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=yi(C||"0");return u(Pf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(No,{ref:"virtualListInstRef",items:this.fNodes,itemSize:vd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(Pf,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ei,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function $S(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function TS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Qoe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),OO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),PO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Joe=J({name:"TreeSelect",props:OO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>to(e.options,RO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?TS(ie,ze.getPath(ae).treeNodePath,Be,Ee):$S(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?TS($e,ze.getPath(se).treeNodePath,Be,Te):$S($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&($a(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(D0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}oh(o,dt);const ut=SO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Qoe,bne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:An(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(TO,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Po,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),eie=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),oa=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Fl=e=>J({name:`H${e}`,props:oa,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",eie,Li,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),tie=Fl("1"),nie=Fl("2"),rie=Fl("3"),oie=Fl("4"),iie=Fl("5"),aie=Fl("6"),lie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),zO=Object.assign({},Se.props),sie=J({name:"A",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",lie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),cie=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),MO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),die=J({name:"P",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",cie,Li,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),uie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),IO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),fie=J({name:"Blockquote",props:IO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",uie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),hie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),vie=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",hie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),OS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),zS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],FO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),OS,zS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),OS,zS])]),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pie=J({name:"Ul",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),AO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),gie=J({name:"Ol",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),mie=J({name:"Li",render(){return u("li",null,this.$slots)}}),bie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),yie=J({name:"Text",props:BO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",bie,Li,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ri(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Dl="n-upload",EO="__UPLOAD_DRAGGER__",LO=J({name:"UploadDragger",[EO]:!0,setup(e,{slots:t}){const n=Le(Dl,null);return n||Dn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var NO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const HO=e=>e.includes("image/"),MS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},IS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,jO=e=>{if(e.type)return HO(e.type);const t=MS(e.name||"");if(IS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=MS(n);return!!(/^data:image\//.test(n)||IS.test(r))};function xie(e){return NO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!HO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const wie=rr&&window.FileReader&&window.File;function Cie(e){return e.isDirectory}function Sie(e){return e.isFile}function _ie(e,t){return NO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&Cie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else Sie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Xs(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function kie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Rie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},A0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?_ie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(LO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(_l,null)})])}):t)}}}),Pie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Dl).mergedThemeRef}},render(){return u(Ro,null,{default:()=>this.show?u(nO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),$ie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Tie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Oie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},zie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Dl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Rie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>Oie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):jO(r)?u(st,{clsPrefix:e},{default:()=>$ie}):u(st,{clsPrefix:e},{default:()=>Tie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(gT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(nW,null)}));const s=u(Pie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(m2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:pd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(ko,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(oW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(dW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(vW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(iW,null)})}):null)),!a&&s)}}),VO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(zie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(vT,Object.assign({},h.value),{default:p}):u(Ro,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(A0,null,t))}}}),Mie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[jo(),S("progress",[jo({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var FS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Iie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Xs(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Xs(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Fie(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Xs(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Xs(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Die(e,t,n){const r=Iie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function UO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Aie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Bie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Eie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Bie(d,s,n),d.append(t,n.file),Die(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Aie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const WO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>wie?jO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Lie=J({name:"Upload",props:WO,setup(e){e.abstract&&e.listType==="image-card"&&Dn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",Mie,_ne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Xs));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?kie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>FS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>FS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Fie({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Eie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?xie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Dl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[EO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Js,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(A0,null,o),this.showFileList&&u(VO,null,o)))}}),Nie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Hie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const KO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),jie=J({name:"Watermark",props:KO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Nie,Rne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return nh(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=Hie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else uD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Vie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Uie={message:KT,notification:GT,loadingBar:zT,dialog:B$};function Wie({providersAndProps:e,configProviderProps:t}){let r=F_(()=>u(IP,qv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,qv(c),{default:()=>u(Vie,{onSetup:()=>o[l]=Uie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Kie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:WT,props:n});break;case"notification":a.push({type:s,Provider:XT,props:o});break;case"dialog":a.push({type:s,Provider:A$,props:r});break;case"loadingBar":a.push({type:s,Provider:OT,props:i});break}}),Wie({providersAndProps:a,configProviderProps:t})}const qO={value:String,katex:Object,katexOptions:Object},qie=J({name:"Equation",props:qO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),DS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:v2,affixProps:uh,NAlert:NK,alertProps:E2,NAnchor:GK,anchorProps:N2,NAnchorLink:KK,anchorLinkProps:L2,NAutoComplete:pq,autoCompleteProps:X2,NAvatar:Kg,avatarProps:J2,NAvatarGroup:_q,avatarGroupProps:eP,NBackTop:zq,backTopProps:tP,NBadge:Aq,badgeProps:nP,NBreadcrumb:jq,breadcrumbProps:oP,NBreadcrumbItem:Wq,breadcrumbItemProps:iP,NButton:Pt,NxButton:Jr,buttonProps:lP,NButtonGroup:o0,buttonGroupProps:dP,NCalendar:aY,calendarProps:uP,NColorPicker:FY,colorPickerProps:hP,NCard:gP,cardProps:pP,NCarousel:rX,carouselProps:yP,NCarouselItem:bP,NCascader:yX,cascaderProps:_P,NCheckbox:Zo,checkboxProps:SP,NCheckboxGroup:CP,checkboxGroupProps:wP,NCode:PP,codeProps:RP,NCollapse:PX,collapseProps:$P,NCollapseItem:TX,collapseItemProps:OP,NCollapseTransition:FX,collapseTransitionProps:zP,NConfigProvider:IP,configProviderProps:MP,NCountdown:DX,countdownProps:FP,NNumberAnimation:EX,numberAnimationProps:DP,NDataTable:dZ,dataTableProps:YP,NDatePicker:mQ,datePickerProps:_$,NDescriptions:_Q,descriptionsProps:R$,NDescriptionsItem:kQ,descriptionsItemProps:P$,NDialog:w0,dialogProps:fc,NDialogProvider:A$,dialogProviderProps:D$,useDialog:B$,useDialogReactiveList:LQ,NDivider:UQ,dividerProps:E$,NDrawer:sJ,drawerProps:L$,NDrawerContent:cJ,drawerContentProps:N$,NDropdown:p0,dropdownProps:c$,NDynamicInput:mJ,dynamicInputProps:H$,NDynamicTags:kJ,dynamicTagsProps:W$,NElement:XC,elementProps:K$,NEl:XC,NEllipsis:f0,ellipsisProps:qP,NEmpty:Ei,emptyProps:R2,NForm:IJ,formProps:X$,NFormItem:_0,formItemProps:pc,NFormItemGridItem:iS,NFormItemGi:iS,formItemGiProps:zm,formItemGridItemProps:zm,NFormItemCol:rT,NFormItemRow:_ee,NGlobalStyle:kee,NGradientText:Oee,gradientTextProps:oT,NGrid:Mee,gridProps:aT,NGridItem:Om,gridItemProps:Ys,NGi:Om,giProps:Ys,NIcon:i$,iconProps:o$,NIconWrapper:Bee,iconWrapperProps:lT,NImage:gT,imageProps:pT,NImageGroup:vT,imageGroupProps:hT,NInput:In,inputProps:U2,NInputGroup:K2,inputGroupProps:W2,NInputGroupLabel:cq,inputGroupLabelProps:q2,NInputNumber:Fne,inputNumberProps:mT,NLayout:Ane,layoutProps:Mm,layoutContentProps:Mm,NLayoutContent:Bne,NLayoutHeader:Lne,layoutHeaderProps:wT,NLayoutFooter:Hne,layoutFooterProps:CT,NLayoutSider:Wne,layoutSiderProps:ST,NRow:tT,rowProps:xh,NCol:nT,colProps:wh,NLegacyTransfer:Jne,legacyTransferProps:_T,NList:tre,listProps:kT,NListItem:nre,NLoadingBarProvider:OT,loadingBarProviderProps:TT,useLoadingBar:zT,NLog:sre,logProps:IT,NMenu:bre,menuProps:LT,NMention:wre,mentionProps:NT,NMessageProvider:WT,messageProviderProps:UT,useMessage:KT,NModal:F$,modalProps:I$,NNotificationProvider:XT,notificationProviderProps:YT,useNotification:GT,NPageHeader:Dre,pageHeaderProps:ZT,NPagination:UP,paginationProps:VP,NPopconfirm:Ere,popconfirmProps:eO,NPopover:Wa,popoverProps:z2,NPopselect:EP,popselectProps:BP,NProgress:nO,progressProps:tO,NRadio:h0,radioProps:gh,NRadioGroup:QP,radioGroupProps:ZP,NRadioButton:yG,radioButtonProps:bG,NRate:qre,rateProps:rO,NResult:eoe,resultProps:oO,NScrollbar:noe,scrollbarProps:iO,NSelect:HP,selectProps:NP,NSkeleton:aoe,skeletonProps:aO,NSlider:coe,sliderProps:lO,NSpace:U$,spaceProps:V$,NSpin:foe,spinProps:sO,NStatistic:voe,statisticProps:cO,NSteps:boe,stepsProps:dO,NStep:yoe,stepProps:fO,NSwitch:woe,switchProps:hO,NTable:Soe,tableProps:vO,NTh:_oe,NTr:koe,NTd:Roe,NThead:Poe,NTbody:$oe,NTabs:zoe,tabsProps:gO,NTabPane:Toe,tabPaneProps:F0,NTab:Bf,tabProps:pO,NTag:ws,tagProps:F2,NThing:Ioe,thingProps:mO,NTime:Foe,timeProps:bO,NTimePicker:Af,timePickerProps:x$,NTimeline:Aoe,timelineProps:yO,NTimelineItem:Boe,timelineItemProps:wO,NTooltip:ph,tooltipProps:KP,NTransfer:Noe,transferProps:CO,NTree:TO,treeProps:$O,NTreeSelect:Joe,treeSelectProps:OO,NH1:tie,NH2:nie,NH3:rie,NH4:oie,NH5:iie,NH6:aie,h1Props:oa,h2Props:oa,h3Props:oa,h4Props:oa,h5Props:oa,h6Props:oa,NA:sie,aProps:zO,NP:die,pProps:MO,NBlockquote:fie,blockquoteProps:IO,NHr:vie,NUl:pie,ulProps:DO,NOl:gie,olProps:AO,NLi:mie,NText:yie,textProps:BO,NUpload:Lie,uploadProps:WO,NUploadDragger:LO,NUploadTrigger:A0,NUploadFileList:VO,NWatermark:jie,watermarkProps:KO,createDiscreteApi:Kie,NEquation:qie,equationProps:qO},Symbol.toStringTag,{value:"Module"})),Yie="2.34.3";function Xie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Yie,componentPrefix:e,install:o}}const YO=Xie({components:Object.keys(DS).map(e=>DS[e])}),Gie=YO;YO.install;const XO=F_(ZF);XO.use(Gie);XO.mount("#app")});export default Zie(); diff --git a/docs/assets/index.1b2bebbd.js b/docs/assets/index.1b2bebbd.js deleted file mode 100644 index c8d1bf0..0000000 --- a/docs/assets/index.1b2bebbd.js +++ /dev/null @@ -1,6855 +0,0 @@ -var hz=Object.defineProperty;var vz=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(vz(e,typeof t!="symbol"?t+"":t,n),n);var Qie=pz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Im(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Gs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(mz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},Cz=()=>!1,Sz=/^on[^a-z]/,Ef=e=>Sz.test(e),Dm=e=>e.startsWith("onUpdate:"),Ln=Object.assign,Am=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_z=Object.prototype.hasOwnProperty,Ht=(e,t)=>_z.call(e,t),Rt=Array.isArray,as=e=>Lf(e)==="[object Map]",kz=e=>Lf(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Bm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",BS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),Rz=Object.prototype.toString,Lf=e=>Rz.call(e),Pz=e=>Lf(e).slice(8,-1),$z=e=>Lf(e)==="[object Object]",Em=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gd=Im(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tz=/-(\w)/g,xo=Nf(e=>e.replace(Tz,(t,n)=>n?n.toUpperCase():"")),Oz=/\B([A-Z])/g,Rl=Nf(e=>e.replace(Oz,"-$1").toLowerCase()),Hf=Nf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ih=Nf(e=>e?`on${Hf(e)}`:""),Ss=(e,t)=>!Object.is(e,t),Fh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let B0;const Iz=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Fz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ES=e=>(e.w&Ci)>0,LS=e=>(e.n&Ci)>0,Bz=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Em(n)&&l.push(a.get("length")):(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"delete":Rt(e)||(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"set":as(e)&&l.push(a.get(fa));break}if(l.length===1)l[0]&&Kv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Kv(Lm(s))}}function Kv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&L0(r);for(const r of n)r.computed||L0(r)}function L0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lz(e,t){var n;return(n=gu.get(e))===null||n===void 0?void 0:n.get(t)}const Nz=Im("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bm)),Hz=Hm(),jz=Hm(!1,!0),Vz=Hm(!0),N0=Uz();function Uz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Pl();const r=zt(this)[t].apply(this,n);return $l(),r}}),e}function Wz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Hm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?l5:qS:t?KS:WS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(N0,o))return Reflect.get(N0,o,i);if(o==="hasOwnProperty")return Wz}const l=Reflect.get(r,o,i);return(Bm(o)?jS.has(o):Nz(o))||(e||dr(r,"get",o),t)?l:Vn(l)?a&&Em(o)?l:l.value:vn(l)?e?wo(l):Fi(l):l}}const Kz=VS(),qz=VS(!0);function VS(e=!1){return function(n,r,o,i){let a=n[r];if(ml(a)&&Vn(a)&&!Vn(o))return!1;if(!e&&(!mu(o)&&!ml(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&Vn(a)&&!Vn(o)))return a.value=o,!0;const l=Rt(n)&&Em(r)?Number(r)e,jf=e=>Reflect.getPrototypeOf(e);function xc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=jf(o),l=r?jm:n?Wm:_s;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function wc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",fa),Reflect.get(e,"size",e)}function H0(e){e=zt(e);const t=zt(this);return jf(t).has.call(t,e)||(t.add(e),Lo(t,"add",e,e)),this}function j0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=jf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ss(t,a)&&Lo(n,"set",e,t):Lo(n,"add",e,t),this}function V0(e){const t=zt(this),{has:n,get:r}=jf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Lo(t,"delete",e,void 0),i}function U0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Lo(e,"clear",void 0,void 0),n}function Sc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?jm:e?Wm:_s;return!e&&dr(l,"iterate",fa),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function _c(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=as(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?jm:t?Wm:_s;return!t&&dr(i,"iterate",s?Wv:fa),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ti(e){return function(...t){return e==="delete"?!1:this}}function Jz(){const e={get(i){return xc(this,i)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!1)},t={get(i){return xc(this,i,!1,!0)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!0)},n={get(i){return xc(this,i,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!1)},r={get(i){return xc(this,i,!0,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_c(i,!1,!1),n[i]=_c(i,!0,!1),t[i]=_c(i,!1,!0),r[i]=_c(i,!0,!0)}),[e,n,t,r]}const[e5,t5,n5,r5]=Jz();function Vm(e,t){const n=t?e?r5:n5:e?t5:e5;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const o5={get:Vm(!1,!1)},i5={get:Vm(!1,!0)},a5={get:Vm(!0,!1)},WS=new WeakMap,KS=new WeakMap,qS=new WeakMap,l5=new WeakMap;function s5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c5(e){return e.__v_skip||!Object.isExtensible(e)?0:s5(Pz(e))}function Fi(e){return ml(e)?e:Um(e,!1,US,o5,WS)}function d5(e){return Um(e,!1,Qz,i5,KS)}function wo(e){return Um(e,!0,Zz,a5,qS)}function Um(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=c5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ha(e){return ml(e)?ha(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function va(e){return ha(e)||ml(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function bu(e){return pu(e,"__v_skip",!0),e}const _s=e=>vn(e)?Fi(e):e,Wm=e=>vn(e)?wo(e):e;function YS(e){pi&&Yr&&(e=zt(e),HS(e.dep||(e.dep=Lm())))}function XS(e,t){e=zt(e);const n=e.dep;n&&Kv(n)}function Vn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return ZS(e,!1)}function GS(e){return ZS(e,!0)}function ZS(e,t){return Vn(e)?e:new u5(e,t)}class u5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:_s(t)}get value(){return YS(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||ml(t);t=n?t:zt(t),Ss(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_s(t),XS(this))}}function qv(e){return Vn(e)?e.value:e}const f5={get:(e,t,n)=>qv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Vn(o)&&!Vn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function QS(e){return ha(e)?e:new Proxy(e,f5)}class h5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lz(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return Vn(r)?r:new h5(e,t,n)}var JS;class v5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[JS]=!1,this._dirty=!0,this.effect=new Nm(t,()=>{this._dirty||(this._dirty=!0,XS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return YS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}JS="__v_isReadonly";function p5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new v5(r,o,i||!o,n)}function gi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=gi(e,t,n,r);return i&&BS(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i>>1;Rs(Qn[r])fo&&Qn.splice(t,1)}function y5(e){Rt(e)?ul.push(...e):(!Do||!Do.includes(e,e.allowRecurse?ia+1:ia))&&ul.push(e),t_()}function W0(e,t=ks?fo+1:0){for(;tRs(n)-Rs(r)),ia=0;iae.id==null?1/0:e.id,x5=(e,t)=>{const n=Rs(e)-Rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function r_(e){Yv=!1,ks=!0,Qn.sort(x5);const t=Zr;try{for(fo=0;foPn(v)?v.trim():v)),f&&(o=n.map(zz))}let l,s=r[l=Ih(t)]||r[l=Ih(xo(t))];!s&&i&&(s=r[l=Ih(Rl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function o_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=o_(c,t,!0);d&&(l=!0,Ln(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):Ln(a,i),vn(e)&&r.set(e,a),a)}function Uf(e,t){return!e||!Ef(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Rl(t))||Ht(e,t))}let Un=null,i_=null;function yu(e){const t=Un;return Un=e,i_=e&&e.type.__scopeId||null,t}function md(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ny(-1);const i=yu(t);let a;try{a=e(...o)}finally{yu(i),r._d&&ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=yu(e);try{if(n.shapeFlag&4){const x=o||r;m=co(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=co(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:C5(s)}}catch(x){ds.length=0,Vf(x,e,1),m=zn(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Dm)&&(g=S5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,yu(y),m}const C5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ef(n))&&((t||(t={}))[n]=e[n]);return t},S5=(e,t)=>{const n={};for(const r in e)(!Dm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?K0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function P5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):y5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Un;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Ym(e,null,t)}const kc={};function rt(e,t,n){return Ym(e,t,n)}function Ym(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Az()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(Vn(e)?(s=()=>e.value,c=mu(e)):ha(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ha(C)||mu(C)),s=()=>e.map(C=>{if(Vn(C))return C.value;if(ha(C))return sa(C);if(Tt(C))return gi(C,l,2)})):Tt(e)?t?s=()=>gi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>sa(C())}let f,h=C=>{f=g.onStop=()=>{gi(C,l,4)}},v;if(zs)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(kc):kc;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Ss(x,p[w])):Ss(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===kc?void 0:d&&p[0]===kc?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>qm(b));const g=new Nm(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Am(l.scope.effects,g)};return v&&v.push(y),y}function $5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?a_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;bl(this);const l=Ym(o,i.bind(r),n);return a?bl(a):pa(),l}function a_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sa(n,t)});else if($z(e))for(const n in e)sa(e[n],t);return e}function l_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],T5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Ko(),r=l_();let o;return()=>{const i=t.default&&Xm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ah(a);const c=q0(a);if(!c)return Ah(a);const d=Ps(c,l,r,n);$s(c,d);const f=n.subTree,h=f&&q0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!aa(c,h)||v)){const b=Ps(h,l,r,n);if($s(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ah(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=c_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},s_=T5;function c_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ps(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=c_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&aa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Ps(T,t,n,r)}};return _}function Ah(e){if(Wf(e))return e=nr(e),e.children=null,e}function q0(e){return Wf(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function Gm(e,t){d_(e,"a",t)}function Zs(e,t){d_(e,"da",t)}function d_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Kf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&O5(r,t,n,o),o=o.parent}}function O5(e,t,n,r){const o=Kf(t,e,r,!0);Qs(()=>{Am(r[t],o)},n)}function Kf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Pl(),bl(n);const l=Mr(t,n,e,a);return pa(),$l(),l});return r?o.unshift(i):o.push(i),i}}const Uo=e=>(t,n=wn)=>(!zs||e==="sp")&&Kf(e,(...r)=>t(...r),n),Wo=Uo("bm"),Mt=Uo("m"),Zm=Uo("bu"),Qm=Uo("u"),Dt=Uo("bum"),Qs=Uo("um"),z5=Uo("sp"),M5=Uo("rtg"),I5=Uo("rtc");function F5(e,t=wn){Kf("ec",e,t)}function sn(e,t){const n=Un;if(n===null)return e;const r=Xf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lOs(t)?!(t.type===xr||t.type===$t&&!f_(t.children)):!0)?e:null}const Xv=e=>e?__(e)?Xf(e)||e.proxy:Xv(e.parent):null,ss=Ln(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xv(e.parent),$root:e=>Xv(e.root),$emit:e=>e.emit,$options:e=>eb(e),$forceUpdate:e=>e.f||(e.f=()=>qm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>$5.bind(e)}),Bh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),E5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Bh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Gv&&(a[t]=0)}}const d=ss[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Bh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Bh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ss,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Gv=!0;function L5(e){const t=eb(e),n=e.proxy,r=e.ctx;Gv=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&N5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Fi(U))}if(Gv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)h_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&X0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Wo,f),E(Mt,h),E(Zm,v),E(Qm,p),E(Gm,b),E(Zs,m),E(F5,T),E(I5,k),E(M5,_),E(Dt,y),E(Qs,x),E(z5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function N5(e,t,n=Zr,r=!1){Rt(e)&&(e=Zv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),Vn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function X0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){const o=r.includes(".")?a_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>h_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function eb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>xu(s,c,a,!0)),xu(s,t,a)),vn(t)&&i.set(t,s),s}function xu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xu(e,i,n,!0),o&&o.forEach(a=>xu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=H5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const H5={data:G0,props:ea,emits:ea,methods:ea,computed:ea,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:ea,directives:ea,watch:V5,provide:G0,inject:j5};function G0(e,t){return t?e?function(){return Ln(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function j5(e,t){return ea(Zv(e),Zv(t))}function Zv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=p_(f,t,!0);Ln(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,dl),dl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function Z0(e){return e[0]!=="$"}function Q0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J0(e,t){return Q0(e)===Q0(t)}function ey(e,t){return Rt(t)?t.findIndex(n=>J0(n,e)):Tt(t)&&J0(t,e)?0:-1}const g_=e=>e[0]==="_"||e==="$stable",tb=e=>Rt(e)?e.map(co):[co(e)],K5=(e,t,n)=>{if(t._n)return t;const r=md((...o)=>tb(t(...o)),n);return r._c=!1,r},m_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(g_(o))continue;const i=e[o];if(Tt(i))t[o]=K5(o,i,r);else if(i!=null){const a=tb(i);t[o]=()=>a}}},b_=(e,t)=>{const n=tb(t);e.slots.default=()=>n},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),pu(t,"_",n)):m_(t,e.slots={})}else e.slots={},t&&b_(e,t);pu(e.slots,Yf,1)},Y5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ln(o,t),!n&&l===1&&delete o._):(i=!t.$stable,m_(t,o)),a=t}else t&&(b_(e,t),a={default:1});if(i)for(const l in o)!g_(l)&&!(l in a)&&delete o[l]};function y_(){return{app:null,config:{isNativeTag:Cz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let X5=0;function G5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=y_(),a=new Set;let l=!1;const s=i.app={_uid:X5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:R_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=zn(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Xf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Jv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Jv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(ls(r)&&!o)return;const i=r.shapeFlag&4?Xf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):Vn(c)&&(c.value=null)),Tt(s))gi(s,l,12,[a,d]);else{const h=Pn(s),v=Vn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Am(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=P5;function Z5(e){return Q5(e)}function Q5(e,t){const n=Iz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!aa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case qf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Eh:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Jv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Hi(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!gd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&ro(Z,ce,H)}Ae&&Hi(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&ro(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Hi(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&ji(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"beforeUpdate"),Y&&ji(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!gd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(gd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&nb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(Wf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=zn(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(_5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,b5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;ji(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&Fh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&ro(qe,Pe,fe,Ae),ji(H,!0);const ct=Dh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&k5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>ro(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=ls(W);if(ji(H,!1),Pe&&Fh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&ro(fe,Ke,W),ji(H,!0),ne&&Me){const ct=()=>{H.subTree=Dh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Dh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>ro(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&ls(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Nm(te,()=>qm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,ji(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,W5(H,W.props,ce,Y),Y5(H,W.children,Y),Pl(),W0(),$l()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||dl,W=W||dl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?si(W[Z]):co(W[Z]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?si(W[ge]):co(W[ge]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?si(W[Z]):co(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&aa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?J5(Xe):dl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Jv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ls(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&ro(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Hi(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&ro(Ke,W,H),Pe&&Hi(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Eh){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&Fh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),W0(),n_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:G5(Oe,pe)}}function ji({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const e3=e=>e.__isTeleport,cs=e=>e&&(e.disabled||e.disabled===""),ty=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ep=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},t3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=cs(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=ep(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||ty(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=cs(e.props),$=T?n:k,R=T?w:_;if(a=a||ty(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),nb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||Pc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ep(t.props,p);I&&Pc(t,I,null,c,0)}else T&&Pc(t,k,_,c,1)}x_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!cs(h))&&(i(c),l&16))for(let v=0;v0?Xr||dl:null,r3(),Ts>0&&Xr&&Xr.push(e),e}function C_(e,t,n,r,o){return o3(zn(e,t,n,r,o,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}const Yf="__vInternal",S_=({key:e})=>e!=null?e:null,bd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||Vn(e)||Tt(e)?{i:Un,r:e,k:t,f:!!n}:e:null;function go(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&S_(t),ref:t&&bd(t),scopeId:i_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return l?(rb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),Ts>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const zn=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===D5)&&(e=xr),Os(e)){const l=nr(e,t,!0);return n&&rb(l,n),Ts>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Fm(l)),vn(s)&&(va(s)&&!Rt(s)&&(s=Ln({},s)),t.style=Gs(s))}const a=Pn(e)?1:R5(e)?128:e3(e)?64:vn(e)?4:Tt(e)?2:0;return go(e,t,n,r,o,a,i,!0)}function a3(e){return e?va(e)||Yf in e?Ln({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&S_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(bd(t)):[o,bd(t)]:bd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qr(e=" ",t=0){return zn(qf,null,e,t)}function co(e){return e==null||typeof e=="boolean"?zn(xr):Rt(e)?zn($t,null,e.slice()):typeof e=="object"?si(e):zn(qf,null,String(e))}function si(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function rb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),rb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yf in t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[Qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Un,bl=e=>{wn=e,e.scope.on()},pa=()=>{wn&&wn.scope.off(),wn=null};function __(e){return e.vnode.shapeFlag&4}let zs=!1;function d3(e,t=!1){zs=t;const{props:n,children:r}=e.vnode,o=__(e);U5(e,n,o,t),q5(e,r);const i=o?u3(e,t):void 0;return zs=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bu(new Proxy(e.ctx,E5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;bl(e),Pl();const i=gi(r,e,0,[e.props,o]);if($l(),pa(),BS(i)){if(i.then(pa,pa),t)return i.then(a=>{ry(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else ry(e,i,t)}else k_(e,t)}function ry(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=QS(t)),k_(e,n)}let oy;function k_(e,t,n){const r=e.type;if(!e.render){if(!t&&oy&&!r.render){const o=r.template||eb(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Ln(Ln({isCustomElement:i,delimiters:l},a),s);r.render=oy(o,c)}}e.render=r.render||Zr}bl(e),Pl(),L5(e),$l(),pa()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Xf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QS(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>p5(e,t,zs);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Os(t)?zn(e,null,[t]):zn(e,t):zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),zn(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),R_="3.2.47",b3="http://www.w3.org/2000/svg",la=typeof document<"u"?document:null,iy=la&&la.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?la.createElementNS(b3,e):la.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>la.createTextNode(e),createComment:e=>la.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>la.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{iy.innerHTML=r?`${e}`:e;const l=iy.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&tp(r,i,"");for(const i in n)tp(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ay=/\s*!important$/;function tp(e,t,n){if(Rt(n))n.forEach(r=>tp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);ay.test(n)?e.setProperty(Rl(r),n.replace(ay,""),"important"):e[r]=n}}const ly=["Webkit","Moz","ms"],Lh={};function C3(e,t){const n=Lh[t];if(n)return n;let r=xo(t);if(r!=="filter"&&r in e)return Lh[t]=r;r=Hf(r);for(let o=0;oNh||(T3.then(()=>Nh=0),Nh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Ef(t)?Dm(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dy.test(t)&&Pn(n)?!1:t in e}const ni="transition",Al="animation",It=(e,{slots:t})=>u(s_,$_(e),t);It.displayName="Transition";const P_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=Ln({},s_.props,P_),Vi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},uy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function $_(e){const t={};for(const z in e)z in P_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{ai(z,A?d:l),ai(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,ai(z,f),ai(z,v),ai(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Vi(j,[A,E]),fy(()=>{ai(A,z?s:i),Mo(A,z?d:l),uy(j)||hy(A,r,b,E)})};return Ln(t,{onBeforeEnter(z){Vi(g,[z]),Mo(z,i),Mo(z,a)},onBeforeAppear(z){Vi(k,[z]),Mo(z,s),Mo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Mo(z,f),O_(),Mo(z,h),fy(()=>{!z._isLeaving||(ai(z,f),Mo(z,v),uy(x)||hy(z,r,m,L))}),Vi(x,[z,L])},onEnterCancelled(z){$(z,!1),Vi(C,[z])},onAppearCancelled(z){$(z,!0),Vi(T,[z])},onLeaveCancelled(z){R(z),Vi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return Mz(e)}function Mo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function fy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function hy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=T_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ni}Delay`),i=r(`${ni}Duration`),a=vy(o,i),l=r(`${Al}Delay`),s=r(`${Al}Duration`),c=vy(l,s);let d=null,f=0,h=0;t===ni?a>0&&(d=ni,f=a,h=i.length):t===Al?c>0&&(d=Al,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ni:Al:null,h=d?d===ni?i.length:s.length:0);const v=d===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function vy(e,t){for(;e.lengthpy(n)+py(e[r])))}function py(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function O_(){return document.body.offsetHeight}const z_=new WeakMap,M_=new WeakMap,I_={name:"TransitionGroup",props:Ln({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=l_();let o,i;return Qm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);O_(),l.forEach(s=>{const c=s.el,d=c.style;Mo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,ai(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=$_(a);let s=a.tag||$t;o=i,i=t.default?Xm(t.default()):[];for(let c=0;cdelete e.mode;I_.props;const Gf=I_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){M_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=z_.get(e),n=M_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=T_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Bl(e,!0),r.enter(e)):r.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e._vod:"none"}const V3=Ln({patchProp:I3},y3);let gy;function U3(){return gy||(gy=Z5(V3))}const F_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function ec(e){return e+.5|0}const ui=(e,t,n)=>Math.max(Math.min(e,n),t);function Jl(e){return ui(ec(e*2.55),0,255)}function mi(e){return ui(ec(e*255),0,255)}function Ao(e){return ui(ec(e/2.55)/100,0,1)}function my(e){return ui(ec(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},np=[..."0123456789ABCDEF"],K3=e=>np[e&15],q3=e=>np[(e&240)>>4]+np[e&15],$c=e=>(e&240)>>4===(e&15),Y3=e=>$c(e.r)&&$c(e.g)&&$c(e.b)&&$c(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=D_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function ib(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(mi)}function ab(e,t,n){return ib(D_,e,t,n)}function nM(e,t,n){return ib(eM,e,t,n)}function rM(e,t,n){return ib(J3,e,t,n)}function A_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Jl(+t[5]):mi(+t[5]));const o=A_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ab(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=ob(e);n[0]=A_(n[0]+t),n=ab(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=ob(e),n=t[0],r=my(t[1]),o=my(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Ao(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const by={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(yy),n=Object.keys(by);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Tc;function sM(e){Tc||(Tc=lM(),Tc.transparent=[0,0,0,0]);const t=Tc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Jl(a):ui(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Jl(r):ui(r,0,255)),o=255&(t[4]?Jl(o):ui(o,0,255)),i=255&(t[6]?Jl(i):ui(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ao(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=qa(Ao(e.r)),o=qa(Ao(e.g)),i=qa(Ao(e.b));return{r:mi(jh(r+n*(qa(Ao(t.r))-r))),g:mi(jh(o+n*(qa(Ao(t.g))-o))),b:mi(jh(i+n*(qa(Ao(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Oc(e,t,n){if(e){let r=ob(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ab(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function B_(e,t){return e&&Object.assign(t||{},e)}function xy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=mi(e[3]))):(t=B_(e,{r:0,g:0,b:0,a:1}),t.a=mi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class Ms{constructor(t){if(t instanceof Ms)return t;const n=typeof t;let r;n==="object"?r=xy(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=B_(this._rgb);return t&&(t.a=Ao(t.a)),t}set rgb(t){this._rgb=xy(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new Ms(this.rgb)}alpha(t){return this._rgb.a=mi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ec(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Oc(this._rgb,2,t),this}darken(t){return Oc(this._rgb,2,-t),this}saturate(t){return Oc(this._rgb,1,t),this}desaturate(t){return Oc(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function Oo(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return En(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function yl(e,t){return(wy[t]||(wy[t]=yM(t)))(e)}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",Si=e=>typeof e=="function",Cy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,mo=2*Kn,Su=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,Ui=Kn/4,Sy=Kn*2/3,fi=Math.log10,bi=Math.sign;function yd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function _u(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function cb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const rp=(e,t,n,r)=>cb(e,n,r?o=>{const i=e[o][t];return ie[o][t]cb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+lb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ry(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(N_.forEach(i=>{delete e[i]}),delete e._chartjs)}function H_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function V_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,j_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const db=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,zc=e=>e===0||e===1,Py=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*mo/n)),$y=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*mo/n)+1,fs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zc(e)?e:Py(e,.075,.3),easeOutElastic:e=>zc(e)?e:$y(e,.075,.3),easeInOutElastic(e){return zc(e)?e:e<.5?.5*Py(e*2,.1125,.45):.5+.5*$y(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-fs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?fs.easeInBounce(e*2)*.5:fs.easeOutBounce(e*2-1)*.5+.5};function U_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ty(e){return U_(e)?e:new Ms(e)}function Vh(e){return U_(e)?e:new Ms(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Oy=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Oy.get(n);return r||(r=new Intl.NumberFormat(e,t),Oy.set(n,r)),r}function ub(e,t,n){return BM(t,n).format(e)}const W_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=fi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),ub(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(fi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?W_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Zf={formatters:W_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Sa=Object.create(null),op=Object.create(null);function hs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Vh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Vh(o.borderColor),this.hoverColor=(r,o)=>Vh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Uh(this,t,n)}get(t){return hs(this,t)}describe(t,n){return Uh(op,t,n)}override(t,n){return Uh(Sa,t,n)}route(t,n,r,o){const i=hs(this,t),a=hs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ku(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function q_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function Y_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function X_(e){return Y_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ga(e){return Y_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=X_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Mc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Fa(e,t){return Object.assign(Object.create(e),t)}function vb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=J_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>vb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Z_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Fy(a).includes(l)},ownKeys(a){return Fy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function xl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:G_(e,r),setContext:i=>xl(e,i,n,r),override:i=>xl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return Z_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function G_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Si(n)?n:()=>n,isIndexable:Si(r)?r:()=>r}}const ZM=(e,t)=>e?e+lb(t):t,pb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Z_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return Si(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),pb(t,l)&&(l=xl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),pb(e,t)&&(t=gb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=gb(c,o,e,d);t.push(xl(f,i,a&&a[e],l))}}return t}function Q_(e,t,n){return Si(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?yl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Q_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function gb(e,t,n,r){const o=t._rootScopes,i=Q_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Iy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=Iy(l,a,i,s,r),s===null)?!1:vb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function Iy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=J_(ZM(i,e),n),Fr(o))return pb(e,o)?gb(n,r,e,o):o}function J_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function Fy(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function ek(){return typeof window<"u"&&typeof document<"u"}function mb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Qf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Qf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function ma(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function ta(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Qf(n),i=o.boxSizing==="border-box",a=ma(o,"padding"),l=ma(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=mb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Qf(i),s=ma(l,"border","width"),c=ma(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Ru(l.maxWidth,i,"clientWidth"),o=Ru(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Su,maxHeight:o||Su}}const Ic=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Qf(e),i=ma(o,"margin"),a=Ru(o.maxWidth,e,"clientWidth")||Su,l=Ru(o.maxHeight,e,"clientHeight")||Su,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ma(o,"border","width"),v=ma(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Ic(Math.min(c,a,s.maxWidth)),d=Ic(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Ic(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Ic(Math.floor(d*r))),{width:c,height:d}}function Dy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Ay(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fl(e,t,n){return e?h4(t,n):v4()}function tk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=j_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Io=new p4;const By="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Ty(e||By),o=r.valid&&Ty(t||By);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Mc([t.to,o,i,t.from]);const a=Mc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=fs[t.easing]||fs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Mc([t.to,n,o,t.from]),this._from=Mc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Io.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function jy(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Fa(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Fa(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function El(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Kh=e=>e==="reset"||e==="none",Vy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ok(n,!0),values:null};class vs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ny(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&El(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Wh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Wh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Wh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ry(this._data,this),t._stacked&&El(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){Ry(r,this);const o=this._cachedMeta;El(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ny(n.vScale,n),n.stack!==r.stack&&(o=!0,El(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&jy(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Vy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new rk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Kh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Kh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Kh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ik(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Uy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:tc,modes:{index(e,t,n,r){const o=ta(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=ta(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Yy(e,t){return e.filter(n=>ak.indexOf(n.pos)===-1&&n.box.axis===t)}function Nl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Nl(Ll(t,"left"),!0),o=Nl(Ll(t,"right")),i=Nl(Ll(t,"top"),!0),a=Nl(Ll(t,"bottom")),l=Yy(t,"x"),s=Yy(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Ll(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function Xy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function lk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&lk(a,i.getPadding());const l=Math.max(0,t.outerWidth-Xy(a,e,"left","right")),s=Math.max(0,t.outerHeight-Xy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function es(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);lk(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);es(l.fullSize,v,f,p),es(s,v,f,p),es(c,v,f,p)&&es(s,v,f,p),G4(v),Gy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Gy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class sk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends sk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[wd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Zy(o)){const i=Ay(e,"width");i!==void 0&&(e.width=i)}if(Zy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Ay(e,"height");i!==void 0&&(e.height=i)}return e}const ck=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,ck)}function nI(e,t,n){e.canvas.removeEventListener(t,n,ck)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=ta(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Pu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.addedNodes,r),a=a&&!Pu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.removedNodes,r),a=a&&!Pu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ds=new Map;let Qy=0;function dk(){const e=window.devicePixelRatio;e!==Qy&&(Qy=e,Ds.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Ds.size||window.addEventListener("resize",dk),Ds.set(e,t)}function lI(e){Ds.delete(e),Ds.size||window.removeEventListener("resize",dk)}function sI(e,t,n){const r=e.canvas,o=r&&mb(r);if(!o)return;const i=V_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Gh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=V_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends sk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wd])return!1;const r=n[wd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[wd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Gh,detach:Gh,resize:Gh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=mb(t);return!!(n&&n.isConnected)}}function uI(e){return!ek()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class _i{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _u(this.x)&&_u(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(_i,"defaults",{}),Nt(_i,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Dc(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Jy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function ex(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Hl(t.grid)-n.padding-tx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=sb(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=tx(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Hl(i)+s):(t.height=this.maxHeight,t.width=Hl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=hi(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Wi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Hl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Wi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Ac(vs,"datasets",!0),this.elements=new Ac(_i,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Da,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=lb(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(lo.plugins.items);for(let i=0;i1&&$u(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Sa[e.type]||{scales:{}},r=t.scales||{},o=ip(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=$u(a,l),c=DI(s,o),d=n.scales||{};i[a]=us(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||ip(l,t),d=(Sa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),us(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];us(l,[Cn.scales[l.type],Cn.scale])}),i}function uk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function fk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=fk(e.data),uk(e),e}const nx=new Map,hk=new Set;function Bc(e,t){let n=nx.get(e);return n||(n=t(),nx.set(e,n),hk.add(n)),n}const jl=(e,t,n)=>{const r=yl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),uk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>jl(s,t,f))),d.forEach(f=>jl(s,o,f)),d.forEach(f=>jl(s,Sa[i]||{},f)),d.forEach(f=>jl(s,Cn,f)),d.forEach(f=>jl(s,op,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Sa[n]||{},Cn.datasets[n]||{},{type:n},Cn,op]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=rx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=Si(r)?r():r;const c=this.createResolver(t,r,l);s=xl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=rx(this._resolverCache,t,r);return Wt(n)?xl(i,n,void 0,o):i}}function rx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:vb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Si(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=G_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(Si(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function ox(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function ix(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function vk(e){return ek()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cd={},lx=e=>{const t=vk(e);return Object.values(Cd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class uo{static register(...t){lo.add(...t),sx()}static unregister(...t){lo.remove(...t),sx()}constructor(t,n){const r=this.config=new LI(n),o=vk(t),i=lx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Cd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Io.listen(this,"complete",ax),Io.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return lo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zy(this.canvas,this.ctx),this}stop(){return Io.stop(this),this}resize(t,n){Io.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Dy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=$u(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=$u(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||ox(l.position,c)!==ox(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=lo.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ix("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Cy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&fb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&hb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return q_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Fa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Io.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!wu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!wu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(uo,"defaults",Cn),Nt(uo,"instances",Cd),Nt(uo,"overrides",Sa),Nt(uo,"registry",lo),Nt(uo,"version",jI),Nt(uo,"getChart",lx);function sx(){return en(uo.instances,e=>e._plugins.invalidate())}function pk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function vi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=X_(r);return{t:vi(o.top,i.top,0,n),r:vi(o.right,i.right,0,t),b:vi(o.bottom,i.bottom,0,n),l:vi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=ga(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:vi(!s||l.top||l.left,i.topLeft,0,a),topRight:vi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:vi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:vi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=pk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Zh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&pk(e,r);return l&&(o||sl(t,l.left,l.right))&&(i||sl(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Sd extends _i{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Fs:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Qh(a,n,i)),t.clip(),l(t,Qh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Qh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Zh(this,t,n,r)}inXRange(t,n){return Zh(this,t,null,n)}inYRange(t,n){return Zh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(Sd,"id","bar"),Nt(Sd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(Sd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends _i{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Mn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=fl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fb(t,this),this._draw(),hb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=fl(t.rtl,this.left,this.width),c=Mn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=cx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;K_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=ga(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Fs(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){_a(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},tk(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=gk(k,L)}else v.y+=w}),nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),o=Jn(n.padding);if(!n.display)return;const i=fl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(db(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,_a(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(sl(t,this.left,this.right)&&sl(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=gk(t,n)),r}function gk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class mk extends _i{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);_a(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:db(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new mk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:mk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ts={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ux(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Mn(t.bodyFont),c=Mn(t.titleFont),d=Mn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function fx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function hx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=ga(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ec(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return ao([],Fo(e))}function hF(e,t,n){return Fa(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function px(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bk={beforeTitle:Oo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?bk[t].call(n,r):o}class ap extends _i{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new rk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=ao(l,Fo(o)),l=ao(l,Fo(i)),l=ao(l,Fo(a)),l}getBeforeBody(t,n){return vx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=px(r,i);ao(a.before,Fo(or(l,"beforeLabel",this,i))),ao(a.lines,or(l,"label",this,i)),ao(a.after,Fo(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return vx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=ao(l,Fo(o)),l=ao(l,Fo(i)),l=ao(l,Fo(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=px(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=ts[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=ux(this,r),c=Object.assign({},l,s),d=fx(this.chart,r,c),f=hx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=ga(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=fl(r.rtl,this.x,this.width);for(t.x=Ec(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Fs(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Fs(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Mn(r.bodyFont);let h=f.lineHeight,v=0;const p=fl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ec(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=ts[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ux(this,t),s=Object.assign({},a,this._size),c=fx(n,t,s),d=hx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),tk(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!wu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!wu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=ts[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(ap,"positioners",ts);var vF={id:"tooltip",_element:ap,positioners:ts,afterInit(e,t,n){n&&(e.tooltip=new ap({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function gx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(lp,"id","category"),Nt(lp,"defaults",{ticks:{callback:gx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=_y((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=_y($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,yd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(ky(w),ky(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=bi(o),c=bi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&L_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return ub(t,this.chart.options.locale,this.options.ticks.format)}}class sp extends Tu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=hi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(sp,"id","linear"),Nt(sp,"defaults",{ticks:{callback:Zf.formatters.numeric}});const As=e=>Math.floor(fi(e)),qi=(e,t)=>Math.pow(10,As(e)+t);function bx(e){return e/Math.pow(10,As(e))===1}function yx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=As(n);for(;yx(e,t,r)>10;)r++;for(;yx(e,t,r)<10;)r--;return Math.min(r,As(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=As(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:bx(v),significand:f}),r}class xx extends Da{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Tu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return En(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?Math.max(0,t):null,this.max=En(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!En(this._userMin)&&(this.min=t===qi(this.min,0)?qi(this.min,-1):qi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(qi(r,-1)),a(qi(o,1)))),r<=0&&i(qi(o,-1)),o<=0&&a(qi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&L_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ub(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=fi(t),this._valueRange=fi(this.max)-fi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(fi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(xx,"id","logarithmic"),Nt(xx,"defaults",{ticks:{callback:Zf.formatters.logarithmic,major:{enabled:!0}}});function cp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=cp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Mn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=ga(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Fs(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}_a(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function yk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,mo);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=mo/(this._pointLabels.length||1),r=this.options.startAngle||0;return so(t*n+hi(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Mn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}_a(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Lc,"id","radialLinear"),Nt(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Lc,"descriptors",{angleLines:{_fallback:"grid"}});const Jf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Jf);function zF(e,t){return e-t}function Cx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),En(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(_u(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Sx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Jf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function kx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Sx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=_u(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=rp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=rp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Rx extends Ou{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Nc(n,this.min),this._tableRange=Nc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...xk},AF=R_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Ya(e){return va(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return va(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function wk(e,t){e.labels=t}function Ck(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return wk(n,e.labels),Ck(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=GS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new uo(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=Ya(d),g=Ya(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=Ya(f.labels),g=Ya(v.labels),y=Ya(f.datasets),C=Ya(v.datasets);m!==g&&(wk(p.config.data,m),b=!0),y&&y!==C&&(Ck(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return uo.register(t),J({props:xk,setup(n,r){let{expose:o}=r;const i=GS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",xd),Px=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};uo.register(aF,vF,oF,Sd,lp,sp);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(Px.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=Px.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Fi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="ADJ",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),KF=go("h1",null,"entityscrape",-1),qF=go("p",null," This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS). ",-1),YF=go("p",null,[Qr(" The Go package "),go("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Qr(" was used for creating this experiment. You can create new ones with updating the "),go("code",null,"source/entities.txt"),Qr(" file and run the CLI with the provided Visual Studio Code debug configuration. ")],-1),XF={style:{height:"475px"}},GF=go("small",null,[go("b",null,"Data source"),Qr(": "),go("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function ZF(e,t,n,r,o,i){const a=Rc("n-select"),l=Rc("n-form-item"),s=Rc("Bar"),c=Rc("n-space");return w_(),C_(c,{vertical:""},{default:md(()=>[KF,qF,YF,zn(l,{size:"small",label:"Entity"},{default:md(()=>[zn(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),zn(l,{size:"small",label:"Part of speech"},{default:md(()=>[zn(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),go("div",XF,[zn(s,{data:e.chartData,options:{indexAxis:"y",maintainAspectRatio:!1,responsive:!0}},null,8,["data"])]),GF]),_:1})}const QF=VF(WF,[["render",ZF]]);let zu=[];const Sk=new WeakMap;function JF(){zu.forEach(e=>e(...Sk.get(e))),zu=[]}function ka(e,...t){Sk.set(e,t),!zu.includes(e)&&zu.push(e)===1&&requestAnimationFrame(JF)}function eD(e){return e.nodeType===9?null:e.parentNode}function _k(e){if(e===null)return null;const t=eD(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _k(t)}function yb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function tD(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Vl(e,t){var n;if(e==null)return;const r=tD(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function yi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function nD(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $x={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function kk(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function _d(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function ci(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function dp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function up(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function fp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const So="^\\s*",_o="\\s*$",ki="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ca="([0-9A-Fa-f])",da="([0-9A-Fa-f]{2})",rD=new RegExp(`${So}hsl\\s*\\(${gr},${ki},${ki}\\)${_o}`),oD=new RegExp(`${So}hsv\\s*\\(${gr},${ki},${ki}\\)${_o}`),iD=new RegExp(`${So}hsla\\s*\\(${gr},${ki},${ki},${gr}\\)${_o}`),aD=new RegExp(`${So}hsva\\s*\\(${gr},${ki},${ki},${gr}\\)${_o}`),lD=new RegExp(`${So}rgb\\s*\\(${gr},${gr},${gr}\\)${_o}`),sD=new RegExp(`${So}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${_o}`),xb=new RegExp(`${So}#${ca}${ca}${ca}${_o}`),wb=new RegExp(`${So}#${da}${da}${da}${_o}`),Cb=new RegExp(`${So}#${ca}${ca}${ca}${ca}${_o}`),Sb=new RegExp(`${So}#${da}${da}${da}${da}${_o}`);function ir(e){return parseInt(e,16)}function hl(e){try{let t;if(t=iD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=rD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ba(e){try{let t;if(t=aD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=oD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Bn(e){try{let t;if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=lD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=sD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Eo(t[13])];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=Sb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Eo(ir(t[4])/255)];if(t=Cb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Eo(ir(t[4]+t[4])/255)];if(e in $x)return Bn($x[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function cD(e){return e>1?1:e<0?0:e}function dD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function hp(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${cD(r)})`}function Jh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=Bn(e)),Array.isArray(t)||(t=Bn(t));const n=e[3],r=t[3],o=Eo(n+r-n*r);return hp(Jh(e[0],n,t[0],r,o),Jh(e[1],n,t[1],r,o),Jh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e);return t.alpha?hp(n,r,o,t.alpha):hp(n,r,o,i)}function Hc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e),{lightness:a=1,alpha:l=1}=t;return bo([n*a,r*a,o*a,i*l])}function Eo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Co(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vp(e){const[t,n,r]=Array.isArray(e)?e:Bn(e);return dD(t,n,r)}function bo(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Eo(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function pp(e){return`hsv(${Co(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ya(e){const[t,n,r]=e;return 3 in e?`hsva(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsva(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function gp(e){return`hsl(${Co(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function xi(e){const[t,n,r]=e;return 3 in e?`hsla(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsla(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function wi(e){if(typeof e=="string"){let r;if(r=wb.exec(e))return`${r[0]}FF`;if(r=Sb.exec(e))return r[0];if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Cb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function ps(e){if(typeof e=="string"){let t;if(t=wb.exec(e))return t[0];if(t=Sb.exec(e))return t[0].slice(0,7);if(t=xb.exec(e)||Cb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function Rk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Aa(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Nn(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Qr(e):typeof e=="number"?Qr(String(e)):null,Ox=new Set;function fD(e,t){const n=`[naive/${e}]: ${t}`;Ox.has(n)||(Ox.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Dn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function mp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function rc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Mu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Pk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function $k(e){return t=>{t?e.value=t.$el:e.value=null}}function Tl(e){return e.some(t=>Os(t)?!(t.type===xr||t.type===$t&&!Tl(t.children)):!0)?e:null}function vt(e,t){return e&&Tl(e())||t()}function Ra(e,t,n){return e&&Tl(e(t))||n(t)}function Ct(e,t){const n=e&&Tl(e());return t(n||null)}function hD(e,t,n){const r=e&&Tl(e(t));return n(r||null)}function xa(e){return!(e&&Tl(e()))}function gs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function vD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const bp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),pD=/^(\d|\.)+$/,zx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(pD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=zx.exec(e);return o?e.replace(zx,String((Number(o[0])+n)*t)):e}return e}function Pa(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function gD(e){let t=0;for(let n=0;n{let o=gD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function yD(e,t){const n=[];return t.split(Tk).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function xD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=bD(t,n):t=yD(t,n))}),t.join(", ").replace(mD," ")}function Mx(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function eh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function wD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jc(e){return e?/^\s*@(s|m)/.test(e):!1}const CD=/[A-Z]/g;function Ok(e){return e.replace(CD,t=>"-"+t.toLowerCase())}function SD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Ok(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function _D(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ix(e,t,n,r){if(!t)return"";const o=_D(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Ok(l),s!=null&&a.push(` ${l}${SD(s)}`)}),e&&a.push("}"),a.join(` -`)}function yp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))yp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?yp(o,t,n):o&&n(o)}else r&&n(r)})}function zk(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")jc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});jc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")jc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});jc(d)?l=d:t.push(d)}const s=xD(t),c=Ix(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&yp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Ix(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else zk(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Mk(e,t,n,r=!1){const o=[];return zk(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function Bs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function kD(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Mx),t.els=[];else{const o=eh(n);o&&r.includes(o)&&(Mx(o),t.els=r.filter(i=>i!==o))}}function Fx(e,t){e.push(t)}function RD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,Mk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Bs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=eh(n);if(d!==null&&!a)return d;const f=d!=null?d:wD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Fx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Fx(t.els,f),f}function PD(e){return Mk(this,this.instance,e)}function $D(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return RD(this.instance,this,t,r,o,i,a,l,n)}function TD(e={}){const{id:t}=e;kD(this.instance,this,t)}const Vc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:PD,mount:$D,unmount:TD}},OD=function(e,t,n,r){return Array.isArray(t)?Vc(e,{$:null},null,t):Array.isArray(n)?Vc(e,t,null,n):Array.isArray(r)?Vc(e,t,n,r):Vc(e,t,n,null)};function Ik(e={}){let t=null;const n={c:(...r)=>OD(n,...r),use:(r,...o)=>r.install(n,...o),find:eh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function zD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return eh(e)!==null}function MD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const ID="n",Es=`.${ID}-`,FD="__",DD="--",Fk=Ik(),Dk=MD({blockPrefix:Es,elementPrefix:FD,modifierPrefix:DD});Fk.use(Dk);const{c:O,find:eae}=Fk,{cB:S,cE:M,cM:F,cNotM:pt}=Dk;function ko(e){return O(({props:{bPrefix:t}})=>`${t||Es}modal, ${t||Es}drawer`,[e])}function qo(e){return O(({props:{bPrefix:t}})=>`${t||Es}popover`,[e])}function Ak(e){return O(({props:{bPrefix:t}})=>`&${t||Es}modal`,e)}const AD=(...e)=>O(">",[S(...e)]);let ev;function BD(){return ev===void 0&&(ev=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ev}const rr=typeof document<"u"&&typeof window<"u",Bk=new WeakSet;function $a(e){Bk.add(e)}function Ek(e){return!Bk.has(e)}function ED(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Ko())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function LD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function ND(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function HD(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Lk(e){const t=D(!!e.value);if(t.value)return wo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return wo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function _b(){return Ko()!==null}const th=typeof window<"u";let vl,ms;const jD=()=>{var e,t;vl=th?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,ms=!1,vl!==void 0?vl.then(()=>{ms=!0}):ms=!0};jD();function nh(e){if(ms)return;let t=!1;Mt(()=>{ms||vl==null||vl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function kd(e){return e.composedPath()[0]}const VD={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function UD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(kd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(kd(a))},i=a=>{!r||t.contains(kd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Nk(e,t,n){const r=VD[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=UD(e,t,n)),i}function WD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function KD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function qD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=kd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,WD(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(KD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=qD(),ns=D(null);function Dx(e){if(e.clientX>0||e.clientY>0)ns.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ns.value={x:n+o/2,y:r+i/2}:ns.value={x:0,y:0}}else ns.value=null}}let Uc=0,Ax=!0;function Hk(){if(!th)return wo(D(null));Uc===0&&St("click",document,Dx,!0);const e=()=>{Uc+=1};return Ax&&(Ax=_b())?(Wo(e),Dt(()=>{Uc-=1,Uc===0&&xt("click",document,Dx,!0)})):e(),wo(ns)}const YD=D(void 0);let Wc=0;function Bx(){YD.value=Date.now()}let Ex=!0;function jk(e){if(!th)return wo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Wc===0&&St("click",window,Bx,!0);const i=()=>{Wc+=1,St("click",window,o,!0)};return Ex&&(Ex=_b())?(Wo(i),Dt(()=>{Wc-=1,Wc===0&&xt("click",window,Bx,!0),xt("click",window,o,!0),r()})):i(),wo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function An(){const e=D(!1);return Mt(()=>{e.value=!0}),wo(e)}function Ri(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const XD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function GD(){return XD}const ZD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function QD(e){return`(min-width: ${e}px)`}const Ul={};function JD(e=ZD){if(!th)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Ul[i]===void 0?(a=window.matchMedia(QD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Ul[i]={mql:a,cbs:l}):(a=Ul[i].mql,l=Ul[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Ul[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function kb(e={},t){const n=Fi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return _b()?(Wo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),wo(n)}const Rb="n-internal-select-menu",Vk="n-internal-select-menu-body",oc="n-modal-body",Uk="n-modal",ic="n-drawer-body",Pb="n-drawer",Ol="n-popover-body",Wk="__disabled__";function Lt(e){const t=Le(oc,null),n=Le(ic,null),r=Le(Ol,null),o=Le(Vk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Wk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Wk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Lx=!1;function $b(){if(!!rr&&!!window.CSS&&!Lx&&(Lx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function xp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){wp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&wp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Nx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ri=null;function Kk(){if(ri===null&&(ri=document.getElementById("v-binder-view-measurer"),ri===null)){ri=document.createElement("div"),ri.id="v-binder-view-measurer";const{style:e}=ri;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ri)}return ri.getBoundingClientRect()}function eA(e,t){const n=Kk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function tv(e){const t=e.getBoundingClientRect(),n=Kk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function tA(e){return e.nodeType===9?null:e.parentNode}function qk(e){if(e===null)return null;const t=tA(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return qk(t)}const nA=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Ko())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=qk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{ka(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return xp("binder",this.$slots)}}),Nr=nA,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Nx("follower",this.$slots),[[t]]):Nx("follower",this.$slots)}}),Xa="@@mmoContext",rA={mounted(e,{value:t}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Xa];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Xa].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Xa];t&&xt("mousemoveoutside",e,t),e[Xa].handler=void 0}},oA=rA,Ga="@@coContext",iA={mounted(e,{value:t,modifiers:n}){e[Ga]={handler:void 0},typeof t=="function"&&(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Ga];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Ga];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Ga].handler=void 0}},fr=iA;function aA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class lA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&aA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const nv=new lA,Za="@@ziContext",sA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Za]={enabled:!!o,initialized:!1},o&&(nv.ensureZIndex(e,r),e[Za].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Za].enabled;o&&!i&&(nv.ensureZIndex(e,r),e[Za].initialized=!0),e[Za].enabled=!!o},unmounted(e,t){if(!e[Za].initialized)return;const{value:n={}}=t,{zIndex:r}=n;nv.unregister(e,r)}},ac=sA,Yk=Symbol("@css-render/vue3-ssr");function cA(e,t){return``}function dA(e,t){const n=Le(Yk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(cA(e,t)))}const uA=typeof document<"u";function Di(){if(uA)return;const e=Le(Yk,null);if(e!==null)return{adapter:dA,context:e}}function Hx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:po}=Ik(),rh="vueuc-style";function jx(e){return e&-e}class fA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=jx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xp("lazy-teleport",this.$slots):u(Js,{disabled:this.disabled,to:this.mergedTo},xp("lazy-teleport",this.$slots)):null}}),Kc={top:"bottom",bottom:"top",left:"right",right:"left"},Ux={start:"end",center:"center",end:"start"},rv={top:"height",bottom:"height",left:"width",right:"width"},hA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},vA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},pA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Wx={top:!0,bottom:!1,left:!0,right:!1},Kx={top:"end",bottom:"start",left:"end",right:"start"};function gA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Wx[p]?y:-y:m=Wx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=pA[e],p=Kc[v],b=rv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=Ux[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Kc[v],b=rv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Kx[v],c=d(b,v,f)):(s=Kx[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Di();yA.mount({id:"vueuc/binder",head:!0,anchorMetaName:rh,ssr:l}),Dt(()=>{a()}),nh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?eA(p,b):tv(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=tv(h),$=tv(o.value),{left:R,top:I,placement:z}=gA(x,g,T,w,k,m),A=mA(z,m),{left:L,top:j,transform:E}=bA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=An(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(lc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var wa=[],xA=function(){return wa.some(function(e){return e.activeTargets.length>0})},wA=function(){return wa.some(function(e){return e.skippedTargets.length>0})},qx="ResizeObserver loop completed with undelivered notifications.",CA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:qx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=qx),window.dispatchEvent(e)},Ls;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ls||(Ls={}));var Ca=function(e){return Object.freeze(e)},SA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ca(this)}return e}(),Xk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ca(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Tb=function(e){return e instanceof SVGElement&&"getBBox"in e},Gk=function(e){if(Tb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Yx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},_A=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bs=typeof window<"u"?window:{},qc=new WeakMap,Xx=/auto|scroll/,kA=/^tb|vertical/,RA=/msie|trident/i.test(bs.navigator&&bs.navigator.userAgent),oo=function(e){return parseFloat(e||"0")},pl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new SA((n?t:e)||0,(n?e:t)||0)},Gx=Ca({devicePixelContentBoxSize:pl(),borderBoxSize:pl(),contentBoxSize:pl(),contentRect:new Xk(0,0,0,0)}),Zk=function(e,t){if(t===void 0&&(t=!1),qc.has(e)&&!t)return qc.get(e);if(Gk(e))return qc.set(e,Gx),Gx;var n=getComputedStyle(e),r=Tb(e)&&e.ownerSVGElement&&e.getBBox(),o=!RA&&n.boxSizing==="border-box",i=kA.test(n.writingMode||""),a=!r&&Xx.test(n.overflowY||""),l=!r&&Xx.test(n.overflowX||""),s=r?0:oo(n.paddingTop),c=r?0:oo(n.paddingRight),d=r?0:oo(n.paddingBottom),f=r?0:oo(n.paddingLeft),h=r?0:oo(n.borderTopWidth),v=r?0:oo(n.borderRightWidth),p=r?0:oo(n.borderBottomWidth),b=r?0:oo(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:oo(n.width)-k-w,$=r?r.height:oo(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=Ca({devicePixelContentBoxSize:pl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:pl(R,I,i),contentBoxSize:pl(T,$,i),contentRect:new Xk(f,s,T,$)});return qc.set(e,z),z},Qk=function(e,t,n){var r=Zk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ls.DEVICE_PIXEL_CONTENT_BOX:return a;case Ls.BORDER_BOX:return o;default:return i}},PA=function(){function e(t){var n=Zk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ca([n.borderBoxSize]),this.contentBoxSize=Ca([n.contentBoxSize]),this.devicePixelContentBoxSize=Ca([n.devicePixelContentBoxSize])}return e}(),Jk=function(e){if(Gk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},$A=function(){var e=1/0,t=[];wa.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new PA(c.target),f=Jk(c.target);l.push(d),c.lastReportedSize=Qk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},TA=function(){var e=0;for(Zx(e);xA();)e=$A(),Zx(e);return wA()&&CA(),e>0},ov,eR=[],OA=function(){return eR.splice(0).forEach(function(e){return e()})},zA=function(e){if(!ov){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return OA()}).observe(n,r),ov=function(){n.textContent="".concat(t?t--:t++)}}eR.push(e),ov()},MA=function(e){zA(function(){requestAnimationFrame(e)})},Rd=0,IA=function(){return!!Rd},FA=250,DA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jx=function(e){return e===void 0&&(e=0),Date.now()+e},iv=!1,AA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=FA),!iv){iv=!0;var r=Jx(t);MA(function(){var o=!1;try{o=TA()}finally{if(iv=!1,t=r-Jx(),!IA())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,DA)};document.body?n():bs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return bs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return bs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Cp=new AA,ew=function(e){!Rd&&e>0&&Cp.start(),Rd+=e,!Rd&&Cp.stop()},BA=function(e){return!Tb(e)&&!_A(e)&&getComputedStyle(e).display==="inline"},EA=function(){function e(t,n){this.target=t,this.observedBox=n||Ls.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qk(this.target,this.observedBox,!0);return BA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),LA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yc=new WeakMap,tw=function(e,t){for(var n=0;n=0&&(i&&wa.splice(wa.indexOf(r),1),r.observationTargets.splice(o,1),ew(-1))},e.disconnect=function(t){var n=this,r=Yc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),NA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.unobserve(this,t)},e.prototype.disconnect=function(){Xc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class HA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||NA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Iu=new HA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ko().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Hx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Hx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Iu.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Iu.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jm(this.$slots,"default")}});let Gc;function jA(){return Gc===void 0&&("matchMedia"in window?Gc=window.matchMedia("(pointer:coarse)").matches:Gc=!1),Gc}let av;function nw(){return av===void 0&&(av="chrome"in window?window.devicePixelRatio:1),av}const VA=po(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[po("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[po("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),No=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();VA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:rh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Gm(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Zs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new fA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!jA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/nw(),A.scrollLeft+=I.deltaX/nw(),$(),w=!0,ka(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),UA=po(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[po("&::-webkit-scrollbar",{width:0,height:0})]),WA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Yi,""))}const i=Di();return KA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Jm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function tR(e){return e instanceof HTMLElement}function nR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(tR(n)&&(oR(n)||rR(n)))return!0}return!1}function oR(e){if(!qA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function qA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Wl=[];const Ob=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Wl[Wl.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Wl.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Wl=Wl.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?nR(C):rR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function oh(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Iu.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Iu.unregisterHandler(n)}))}let Qa=0,ow="",iw="",aw="",lw="";const Sp=D("0px");function iR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=ow,t.style.overflow=iw,t.style.overflowX=aw,t.style.overflowY=lw,Sp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Qa){const a=window.innerWidth-t.offsetWidth;a>0&&(ow=t.style.marginRight,t.style.marginRight=`${a}px`,Sp.value=`${a}px`),iw=t.style.overflow,aw=t.style.overflowX,lw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Qa++}else Qa--,Qa||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Qa--,Qa||o(),r=!1)})}const zb=D(!1),sw=()=>{zb.value=!0},cw=()=>{zb.value=!1};let Kl=0;const aR=()=>(rr&&(Wo(()=>{Kl||(window.addEventListener("compositionstart",sw),window.addEventListener("compositionend",cw)),Kl++}),Dt(()=>{Kl<=1?(window.removeEventListener("compositionstart",sw),window.removeEventListener("compositionend",cw),Kl=0):Kl--})),zb);function Mb(e){const t={isDeactivated:!1};let n=!1;return Gm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Zs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function dw(e){return e.nodeName==="#document"}const Fu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Fu,null);nt(Fu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var YA=typeof global=="object"&&global&&global.Object===Object&&global;const lR=YA;var XA=typeof self=="object"&&self&&self.Object===Object&&self,GA=lR||XA||Function("return this")();const jr=GA;var ZA=jr.Symbol;const Pi=ZA;var sR=Object.prototype,QA=sR.hasOwnProperty,JA=sR.toString,ql=Pi?Pi.toStringTag:void 0;function e6(e){var t=QA.call(e,ql),n=e[ql];try{e[ql]=void 0;var r=!0}catch{}var o=JA.call(e);return r&&(t?e[ql]=n:delete e[ql]),o}var t6=Object.prototype,n6=t6.toString;function r6(e){return n6.call(e)}var o6="[object Null]",i6="[object Undefined]",uw=Pi?Pi.toStringTag:void 0;function Ba(e){return e==null?e===void 0?i6:o6:uw&&uw in Object(e)?e6(e):r6(e)}function $i(e){return e!=null&&typeof e=="object"}var a6="[object Symbol]";function ih(e){return typeof e=="symbol"||$i(e)&&Ba(e)==a6}function cR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=j6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function K6(e){return function(){return e}}var q6=function(){try{var e=La(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Au=q6;var Y6=Au?function(e,t){return Au(e,"toString",{configurable:!0,enumerable:!1,value:K6(t),writable:!0})}:Ib;const X6=Y6;var G6=W6(X6);const Z6=G6;var Q6=9007199254740991,J6=/^(?:0|[1-9]\d*)$/;function Db(e,t){var n=typeof e;return t=t==null?Q6:t,!!t&&(n=="number"||n!="symbol"&&J6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=aB}function zl(e){return e!=null&&Bb(e.length)&&!Fb(e)}function lB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Db(t,n.length):r=="string"&&t in n)?sc(n[t],e):!1}function sB(e){return iB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&lB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function kE(e,t){var n=this.__data__,r=ah(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:XE(e,t,n)}var ZE="\\ud800-\\udfff",QE="\\u0300-\\u036f",JE="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",tL=QE+JE+eL,nL="\\ufe0e\\ufe0f",rL="\\u200d",oL=RegExp("["+rL+ZE+tL+nL+"]");function wR(e){return oL.test(e)}function iL(e){return e.split("")}var CR="\\ud800-\\udfff",aL="\\u0300-\\u036f",lL="\\ufe20-\\ufe2f",sL="\\u20d0-\\u20ff",cL=aL+lL+sL,dL="\\ufe0e\\ufe0f",uL="["+CR+"]",kp="["+cL+"]",Rp="\\ud83c[\\udffb-\\udfff]",fL="(?:"+kp+"|"+Rp+")",SR="[^"+CR+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",kR="[\\ud800-\\udbff][\\udc00-\\udfff]",hL="\\u200d",RR=fL+"?",PR="["+dL+"]?",vL="(?:"+hL+"(?:"+[SR,_R,kR].join("|")+")"+PR+RR+")*",pL=PR+RR+vL,gL="(?:"+[SR+kp+"?",kp,_R,kR,uL].join("|")+")",mL=RegExp(Rp+"(?="+Rp+")|"+gL+pL,"g");function bL(e){return e.match(mL)||[]}function yL(e){return wR(e)?bL(e):iL(e)}function xL(e){return function(t){t=Oa(t);var n=wR(t)?yL(t):void 0,r=n?n[0]:t.charAt(0),o=n?GE(n,1).join(""):t.slice(1);return r[e]()+o}}var wL=xL("toUpperCase");const $R=wL;function CL(e){return $R(Oa(e).toLowerCase())}function SL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&G8?new Nu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=dv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(dv())}function w(){var k=dv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function Op(e,t,n){(n!==void 0&&!sc(e[t],n)||n===void 0&&!(t in e))&&Ab(e,t,n)}function KN(e){return $i(e)&&zl(e)}function zp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function qN(e){return rB(e,gR(e))}function YN(e,t,n,r,o,i,a){var l=zp(e,n),s=zp(t,n),c=a.get(s);if(c){Op(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Eu(s),p=!h&&!v&&Lb(s);d=s,h||v||p?Ar(l)?d=l:KN(l)?d=H6(l):v?(f=!1,d=S8(s,!0)):p?(f=!1,d=j8(s,!0)):d=[]:YE(s)||Bu(s)?(d=l,Bu(l)?d=qN(l):(!Br(l)||Fb(l))&&(d=V8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Op(e,n,d)}function YR(e,t,n,r,o){e!==t&&qR(t,function(i,a){if(o||(o=new yo),Br(i))YN(e,t,a,n,YR,r,o);else{var l=r?r(zp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Op(e,a,l)}},gR)}function XN(e,t){var n=-1,r=zl(e)?Array(e.length):[];return NN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function GN(e,t){var n=Ar(e)?cR:XN;return n(e,FN(t))}var ZN=jR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const XR=ZN;var QN=sB(function(e,t,n){YR(e,t,n)});const cl=QN;var JN=p8("round");const e7=JN;var t7="Expected a function";function xs(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(t7);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),WN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:n7,fontFamily:r7,lineHeight:o7}=_r,GR=O("body",` - margin: 0; - font-size: ${n7}; - font-family: ${r7}; - line-height: ${o7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",wl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Di(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:wl,ssr:a}),l!=null&&l.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:a})};a?c():Wo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=cl({},d||y||g||r.common,w,_,b),R=cl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:cl({},r.peers,x,h),peerOverrides:cl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ZR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ZR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const i7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},a7=i7;function uv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(n){return typeof n}:Pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pd(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var l7={};function Na(){return l7}function za(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?c7(l,function(f){return f.test(a)}):s7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function s7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function c7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var u7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f7=function(t,n,r){var o,i=u7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const h7=f7;var v7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m7={date:uv({formats:v7,defaultWidth:"full"}),time:uv({formats:p7,defaultWidth:"full"}),dateTime:uv({formats:g7,defaultWidth:"full"})};const b7=m7;var y7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},x7=function(t,n,r,o){return y7[t]};const w7=x7;var C7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},S7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},k7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},R7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},T7={ordinalNumber:$7,era:Yl({values:C7,defaultWidth:"wide"}),quarter:Yl({values:S7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yl({values:_7,defaultWidth:"wide"}),day:Yl({values:k7,defaultWidth:"wide"}),dayPeriod:Yl({values:R7,defaultWidth:"wide",formattingValues:P7,defaultFormattingWidth:"wide"})};const O7=T7;var z7=/^(\d+)(th|st|nd|rd)?/i,M7=/\d+/i,I7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},F7={any:[/^b/i,/^(a|c)/i]},D7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},A7={any:[/1/i,/2/i,/3/i,/4/i]},B7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},E7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},N7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},H7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},j7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},V7={ordinalNumber:d7({matchPattern:z7,parsePattern:M7,valueCallback:function(t){return parseInt(t,10)}}),era:Xl({matchPatterns:I7,defaultMatchWidth:"wide",parsePatterns:F7,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:D7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Xl({matchPatterns:B7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),day:Xl({matchPatterns:L7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:H7,defaultMatchWidth:"any",parsePatterns:j7,defaultParseWidth:"any"})};const U7=V7;var W7={code:"en-US",formatDistance:h7,formatLong:b7,formatRelative:w7,localize:O7,match:U7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ch=W7,K7={name:"en-US",locale:ch},q7=K7;function Qc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Y7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Hu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Cl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function X7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Mp(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function G7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var Z7=6e4,Q7=36e5,J7=1e3;function eH(e,t){mt(2,arguments);var n=Cl(e),r=Cl(t);return n.getTime()===r.getTime()}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function tH(e){return mt(1,arguments),e instanceof Date||$d(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!tH(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function nH(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function rH(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function Vs(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ub(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function QR(e,t){mt(2,arguments);var n=Gt(t);return Y7(e,-n)}var oH=864e5;function iH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/oH)+1}function Sl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function aH(e){mt(1,arguments);var t=JR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Sl(n);return r}var lH=6048e5;function e2(e){mt(1,arguments);var t=yt(e),n=Sl(t).getTime()-aH(t).getTime();return Math.round(n/lH)+1}function Wb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=Na(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=za(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=za(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function sH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Wb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=za(v,t);return p}var cH=6048e5;function t2(e,t){mt(1,arguments);var n=yt(e),r=za(n,t).getTime()-sH(n,t).getTime();return Math.round(r/cH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const oi=dH;var Ja={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},uH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return oi.y(t,n)},Y:function(t,n,r,o){var i=Wb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=JR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return oi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=t2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=e2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):oi.d(t,n)},D:function(t,n,r){var o=iH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Ja.noon:o===0?i=Ja.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Ja.evening:o>=12?i=Ja.afternoon:o>=4?i=Ja.morning:i=Ja.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return oi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oi.s(t,n)},S:function(t,n){return oi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ww(a);case"XXXX":case"XX":return ra(a);case"XXXXX":case"XXX":default:return ra(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Ww(a);case"xxxx":case"xx":return ra(a);case"xxxxx":case"xxx":default:return ra(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+ra(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+ra(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function Uw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Ww(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const fH=uH;var Kw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},hH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Kw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Kw(o,n)).replace("{{time}}",n2(i,n))},vH={p:n2,P:hH};const Ip=vH;var pH=["D","DD"],gH=["YY","YYYY"];function r2(e){return pH.indexOf(e)!==-1}function o2(e){return gH.indexOf(e)!==-1}function ju(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var mH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yH=/^'([^]*?)'?$/,xH=/''/g,wH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=Na(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ch,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Hu(R),z=QR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(bH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=Ip[E];return U(j,_.formatLong)}return j}).join("").match(mH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return CH(j);var U=fH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&o2(j)&&ju(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&r2(j)&&ju(j,t,String(e)),U(z,j,_.localize,A);if(E.match(wH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function CH(e){var t=e.match(yH);return t?t[1].replace(xH,"'"):e}function Kb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function SH(e){return Kb({},e)}var qw=1e3*60,Vu=60*24,Yw=Vu*30,Xw=Vu*365;function _H(e,t,n){var r,o,i;mt(2,arguments);var a=Na(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ch;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=G7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Kb(SH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/qw,m=Hu(f)-Hu(d),g=(p-m)/qw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NH=function(e){AH(n,e);var t=BH(n);function n(){var r;FH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function d2(e){return e%400===0||e%4===0&&e%100!==0}function zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zd=function(n){return typeof n}:zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zd(e)}function HH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qH=function(e){VH(n,e);var t=UH(n);function n(){var r;HH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=c2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Md=function(n){return typeof n}:Md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Md(e)}function YH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e9=function(e){GH(n,e);var t=ZH(n);function n(){var r;YH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Wb(o,l);if(a.isTwoDigitYear){var c=c2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function t9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l9=function(e){r9(n,e);var t=o9(n);function n(){var r;t9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v9=function(e){d9(n,e);var t=u9(n);function n(){var r;s9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w9=function(e){m9(n,e);var t=b9(n);function n(){var r;p9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function C9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $9=function(e){_9(n,e);var t=k9(n);function n(){var r;C9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function T9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D9=function(e){z9(n,e);var t=M9(n);function n(){var r;T9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function A9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j9=function(e){E9(n,e);var t=L9(n);function n(){var r;A9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function V9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=t2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ld=function(n){return typeof n}:Ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ld(e)}function U9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G9=function(e){K9(n,e);var t=q9(n);function n(){var r;U9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return za(V9(o,a,l),l)}}]),n}(Yt);function Z9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=e2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function Q9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oj=function(e){ej(n,e);var t=tj(n);function n(){var r;Q9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Sl(Z9(o,a))}}]),n}(Yt);function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function ij(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uj=[31,28,31,30,31,30,31,31,30,31,30,31],fj=[31,29,31,30,31,30,31,31,30,31,30,31],hj=function(e){lj(n,e);var t=sj(n);function n(){var r;ij(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=fj[s]:i>=1&&i<=uj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xj=function(e){gj(n,e);var t=mj(n);function n(){var r;vj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Gb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=Na(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=function(e){Sj(n,e);var t=_j(n);function n(){var r;wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fj=function(e){Oj(n,e);var t=zj(n);function n(){var r;$j(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function Dj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hj=function(e){Bj(n,e);var t=Ej(n);function n(){var r;Dj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function jj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xj=function(e){Wj(n,e);var t=Kj(n);function n(){var r;Vj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=jj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nV=function(e){Qj(n,e);var t=Jj(n);function n(){var r;Gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cV=function(e){iV(n,e);var t=aV(n);function n(){var r;rV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gV=function(e){fV(n,e);var t=hV(n);function n(){var r;dV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SV=function(e){yV(n,e);var t=xV(n);function n(){var r;mV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OV=function(e){RV(n,e);var t=PV(n);function n(){var r;_V(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function zV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BV=function(e){IV(n,e);var t=FV(n);function n(){var r;zV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function EV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UV=function(e){NV(n,e);var t=HV(n);function n(){var r;EV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function WV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZV=function(e){qV(n,e);var t=YV(n);function n(){var r;WV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function QV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oU=function(e){eU(n,e);var t=tU(n);function n(){var r;QV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(n){return typeof n}:ou=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ou(e)}function iU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uU=function(e){lU(n,e);var t=sU(n);function n(){var r;iU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bU=function(e){vU(n,e);var t=pU(n);function n(){var r;fU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=function(e){wU(n,e);var t=CU(n);function n(){var r;yU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MU=function(e){$U(n,e);var t=TU(n);function n(){var r;RU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LU=function(e){DU(n,e);var t=AU(n);function n(){var r;IU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=HU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function HU(e,t){if(!!e){if(typeof e=="string")return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new zH],L=_.match(VU).map(function(Oe){var ke=Oe[0];if(ke in Ip){var pe=Ip[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(jU),j=[],E=iC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&o2(ke)&&ju(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&r2(ke)&&ju(ke,_,e);var pe=ke[0],Me=NU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(qU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=XU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(cu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&KU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=QR(re,Hu(re)),ue={},de=iC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Kb(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function XU(e){return e.match(UU)[1].replace(WU,"'")}function GU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function dh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function u2(e,t){mt(2,arguments);var n=Vs(e),r=Vs(t);return n.getTime()===r.getTime()}function Zb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function f2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Qb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=RH(a);return n.setMonth(r,Math.min(i,l)),n}function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function jn(e,t){if(mt(2,arguments),du(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Qb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function Xi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function vv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function ZU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Qb(n,n.getMonth()+i*3)}function pv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function lC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:a7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:q7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Di(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:r})};r?i():Wo(i)}function h2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Dn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Di();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+Bs(JSON.stringify(p))),b&&(f+="-"+Bs(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Di(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(zD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Wo(i),o}function QU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function JU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const eW=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),uh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},tW=Nn(uh),v2=J({name:"Affix",props:uh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",eW,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=yb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){ka(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=QU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=JU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),_l=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),p2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),nW=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Hn(e,t){return J({name:$R(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const rW=Hn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Ti=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),sC=Hn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Jb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),e0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ha=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),g2=Hn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),m2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),oW=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),iW=Hn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),aW=Hn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),lW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ja=Hn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Oi=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),zi=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),sW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Mi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ii=Hn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),b2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),y2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Va=Hn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),cW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),dW=Hn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Ai=Hn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),uW=Hn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),x2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),fW=Hn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),hW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),vW=Hn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),pW=Hn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),gW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),mW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),bW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),yW=Hn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),xW=Hn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),wW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Ro=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=An();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),Po=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?Gf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),CW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",CW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),SW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Go=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",SW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(g2,null)}))}}}),$o=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:_W}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${_W} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const kW=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),RW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},eo=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},RW),setup(e){Vr("-base-loading",kW,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(Ro,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function dC(e){return Array.isArray(e)?e:[e]}const Vg={STOP:"STOP"};function w2(e,t){const n=t(e);e.children!==void 0&&n!==Vg.STOP&&e.children.forEach(r=>w2(r,t))}function PW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function $W(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function TW(e){return e.children}function OW(e){return e.key}function zW(){return!1}function MW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function IW(e){return e.disabled===!0}function FW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function DW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function AW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function BW(e){return(e==null?void 0:e.type)==="group"}function C2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class S2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function EW(e,t,n,r){return Rf(t.concat(e),n,r,!1)}function LW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function NW(e,t,n,r){const o=Rf(t,n,r,!1),i=Rf(e,n,r,!0),a=LW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function bv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:DW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:AW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=NW(o,n,t,c):r!==void 0?f=EW(r,n,t,c):f=Rf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Rf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&w2(c,d=>{if(d.disabled)return Vg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),FW(d.rawNode,i))){if(r)return Vg.STOP;if(!n)throw new S2}})}),l}function HW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function jW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function VW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function uC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?UW:VW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=t0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=WW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function UW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function WW(e){return e.parent}function t0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=t0(c,t);if(d!==null)return d}else return c}}return null}const KW={getChild(){return this.ignored?null:t0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return uC(this,"next",e)},getPrev(e={}){return uC(this,"prev",e)}};function Ug(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function qW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function _2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=_2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function to(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=IW,getIgnored:a=zW,getIsGroup:l=BW,getKey:s=OW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:TW,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return $W(this.rawNode,d)},get shallowLoaded(){return MW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return qW(this,x)}},KW),h=_2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return Ug(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return jW(h)},getPath(x,w={}){return HW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return bv({checkedKeys:gv(x),indeterminateKeys:mv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToCheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToUncheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return PW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},YW=Bn(bt.neutralBase),k2=Bn(bt.neutralInvertBase),XW="rgba("+k2.slice(0,3).join(", ")+", ";function fC(e){return XW+String(e)+")"}function Gn(e){const t=Array.from(k2);return t[3]=Number(e),ht(YW,t)}const GW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:fC(bt.alphaScrollbar),scrollbarColorHover:fC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=GW,ZW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},QW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},ZW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},JW={name:"Empty",common:et,self:QW},Bi=JW,eK=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),R2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ei=J({name:"Empty",props:R2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",eK,Bi,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(lW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),tK=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},nK={name:"Scrollbar",common:et,self:tK},hr=nK,{cubicBezierEaseInOut:hC}=_r;function Ho({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hC,leaveCubicBezier:o=hC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const rK=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ho(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),oK=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),P2=J({name:"Scrollbar",props:oK,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=GD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Mb(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",rK,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=P2,Pf=P2,iK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},aK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},iK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},lK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Bi},self:aK},Ml=lK;function sK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Jb)}):null})}const vC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Rb),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=sK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:gs([c,p==null?void 0:p.onClick]),onMouseenter:gs([d,p==null?void 0:p.onMouseenter]),onMousemove:gs([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),pC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Rb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:gC,cubicBezierEaseOut:mC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${gC}, transform ${t} ${gC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${mC}, transform ${t} ${mC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const cK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),cc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",cK,Ml,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>C2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>yi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(Rb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(Vk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":yi(ve,"left"),"--n-option-padding-right":yi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return oh(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(eo,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ei,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(No,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(vC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):u(vC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u($o,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),dK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),$2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",dK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),uK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Ho()]),fK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",uK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),hK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},vK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},hK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},pK={name:"Popover",common:et,self:vK},Ua=pK,yv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",gK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${zo("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${zo("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${zo("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${zo("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${zo("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${zo("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${zo("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${zo("right-end")} + var(--v-offset-top)); - `),...GN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=zo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function zo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${yv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${yv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),AD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${yv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const T2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),O2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),mK=J({name:"PopoverBody",inheritAttrs:!1,props:T2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",gK,Ua,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!BD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([oA,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Ol,c),nt(ic,null),nt(oc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!xa(t.header)||!xa(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(Pf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?O2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u(Ob,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),bK=Object.keys(T2),yK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function xK(e,t,n){yK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const wK=Qr("").type,Ma={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},z2=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{internalOnAfterLeave:Function,internalRenderBody:Function}),Wa=J({name:"Popover",inheritAttrs:!1,props:z2,__popover__:!0,setup(e){const t=An(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ri(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Mu(n,"activator"):r=Mu(n,"trigger"),r)){r=nr(r),r=r.type===wK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};xK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(mK,mn(this.$props,bK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),CK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},SK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},CK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},_K={name:"Tag",common:et,self:SK},M2=_K,I2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},kK=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),F2=Object.assign(Object.assign(Object.assign({},Se.props),I2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),D2="n-tag",ws=J({name:"Tag",props:F2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",kK,M2,e,r);nt(D2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Pa(m)}`),g&&(v+=`b${Pa(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Go,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),RK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Wg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",RK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(Ro,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(fW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),A2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(eo,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Wg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(x2,null)])})}):null})}}}),PK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},$K=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},PK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},TK={name:"InternalSelection",common:et,peers:{Popover:Ua},self:$K},fh=TK,OK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),n0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",OK,fh,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),oh(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(bp,null,{default:()=>u(A2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(ws,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Wa,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:rc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),bC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ii}=_r;function B2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ii}, - max-width ${e} ${ii} ${t}, - margin-left ${e} ${ii} ${t}, - margin-right ${e} ${ii} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ii} ${t}, - max-width ${e} ${ii}, - margin-left ${e} ${ii}, - margin-right ${e} ${ii}; - `)]}const{cubicBezierEaseOut:el}=_r;function zK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const MK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[zK({duration:".2s"}),B2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),IK=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",MK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(Gf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(bC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Po,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},FK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},AK={name:"Alert",common:et,self:DK},BK=AK,{cubicBezierEaseInOut:io,cubicBezierEaseOut:EK,cubicBezierEaseIn:LK}=_r;function jo({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io} ${r}, - opacity ${t} ${EK} ${r}, - margin-top ${t} ${io} ${r}, - margin-bottom ${t} ${io} ${r}, - padding-top ${t} ${io} ${r}, - padding-bottom ${t} ${io} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io}, - opacity ${t} ${LK}, - margin-top ${t} ${io}, - margin-bottom ${t} ${io}, - padding-top ${t} ${io}, - padding-bottom ${t} ${io} - ${n?","+n:""} - `)]}const NK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),jo({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),E2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),HK=J({name:"Alert",inheritAttrs:!1,props:E2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",NK,BK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=yi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Po,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Go,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Va,null);case"info":return u(Ii,null);case"warning":return u(Ai,null);case"error":return u(ja,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),jK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},VK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},jK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},UK={name:"Anchor",common:et,self:VK},WK=UK,KK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),uu="n-anchor",L2={title:String,href:String},qK=J({name:"AnchorLink",props:L2,setup(e,{slots:t}){const n=D(null),r=Le(uu),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);LD(uu,"collectedLinkHrefs",o),ND(uu,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:rc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function YK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const r0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},XK=Nn(r0),GK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},r0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=xs(()=>v(!0),128);function v(p=!0){var b;const m=[],g=yb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=YK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(uu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),nh(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),N2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),uh),r0),ZK=J({name:"Anchor",props:N2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",KK,WK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(GK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,XK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(v2,Object.assign({},mn(this,tW)),{default:this.renderAnchor}):this.renderAnchor()}});function $f(e){return e.type==="group"}function H2(e){return e.type==="ignored"}function xv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function hh(e,t){return{getIsGroup:$f,getIgnored:H2,getKey(r){return $f(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function QK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if($f(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(H2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function JK(e,t,n){const r=new Map;return e.forEach(o=>{$f(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const eq=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const j2=rr&&navigator.userAgent.includes("Safari")&&!eq,tq={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},nq=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},tq),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},rq={name:"Input",common:et,self:nq},kr=rq,V2="n-input";function oq(e){let t=0;for(const n of e)t++;return t}function Jc(e){return e===""||e==null}function iq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const yC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(V2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||oq)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Ra(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),aq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),lq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),U2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),In=J({name:"Input",props:U2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",aq,kr,e,t);j2&&Vr("-input-safari",lq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=iq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Ko().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(V2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:To,colorFocusWarning:Qo,boxShadowFocusWarning:Jo,borderWarning:ei,borderFocusWarning:Ni,borderHoverWarning:kh,colorFocusError:Rh,boxShadowFocusError:Ph,borderError:$h,borderFocusError:Th,borderHoverError:Oh,clearSize:zh,clearColor:Mh,clearColorHover:GO,clearColorPressed:ZO,iconColor:QO,iconColorDisabled:JO,suffixTextColor:ez,countTextColor:tz,countTextColorDisabled:nz,iconColorHover:rz,iconColorPressed:oz,loadingColor:iz,loadingColorError:az,loadingColorWarning:lz,[ye("padding",le)]:sz,[ye("fontSize",le)]:cz,[ye("height",le)]:dz}}=i.value,{left:uz,right:fz}=yi(sz);return{"--n-bezier":Ie,"--n-count-text-color":tz,"--n-count-text-color-disabled":nz,"--n-color":Ge,"--n-font-size":cz,"--n-border-radius":gt,"--n-height":dz,"--n-padding-left":uz,"--n-padding-right":fz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":To,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":iz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Qo,"--n-box-shadow-focus-warning":Jo,"--n-border-warning":ei,"--n-border-focus-warning":Ni,"--n-border-hover-warning":kh,"--n-loading-color-warning":lz,"--n-caret-color-error":Qe,"--n-color-focus-error":Rh,"--n-box-shadow-focus-error":Ph,"--n-border-error":$h,"--n-border-focus-error":Th,"--n-border-hover-error":Oh,"--n-loading-color-error":az,"--n-clear-color":Mh,"--n-clear-size":zh,"--n-clear-color-hover":GO,"--n-clear-color-pressed":ZO,"--n-icon-color":QO,"--n-icon-color-hover":rz,"--n-icon-color-pressed":oz,"--n-icon-color-disabled":JO,"--n-suffix-text-color":ez}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(A2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(yC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(m2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(oW,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(yC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),sq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),W2={},K2=J({name:"InputGroup",props:W2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",sq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),cq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),q2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),dq=J({name:"InputGroupLabel",props:q2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",cq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function uq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:uq},hq=fq;function vq(e){return e.map(Y2)}function Y2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>Y2(o))}:e}const pq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),X2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),gq=J({name:"AutoComplete",props:X2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",pq,hq,e,r),g=P(()=>vq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>to(g.value,hh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:An(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Mu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(In,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(cc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),gl=rr&&"loading"in document.createElement("img"),mq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},wv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,G2=(e,t,n)=>{if(!e)return()=>{};const r=mq(t),{root:o}=r.options;let i;const a=wv.get(o);a?i=a:(i=new Map,wv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=Cv.get(h.target),p=Sv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Cv.delete(e),Sv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||wv.delete(o))};return Cv.set(e,d),Sv.set(e,n),d},bq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},yq={name:"Avatar",common:et,self:bq},Z2=yq,Q2="n-avatar-group",xq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[ko(O("&","--n-merged-color: var(--n-color-modal);")),qo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),J2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Kg=J({name:"Avatar",props:J2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Q2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",xq,Z2,e,t),f=Le(D2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Pa(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(gl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=G2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:gl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:gl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),wq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),Cq=()=>({gap:"-12px"}),Sq={name:"AvatarGroup",common:et,peers:{Avatar:Z2},self:Cq},_q=Sq,eP=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),kq=J({name:"AvatarGroup",props:eP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",wq,_q,e,t);nt(Q2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Kg,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Kg,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),Rq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Pq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},Rq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},$q={name:"BackTop",common:et,self:Pq},Tq=$q,Oq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),zq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Mq=J({name:"BackTop",inheritAttrs:!1,props:tP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${Sp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",zq,Tq,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||yb(e.listenTo)||_k(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(dw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(dw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:An(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(lc,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>Oq})])):null}})}))}}),Iq=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Fq={name:"Badge",common:et,self:Iq},Dq=Fq,Aq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),nP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Bq=J({name:"Badge",props:nP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",Aq,Dq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!xa(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Pa(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:rc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u(IK,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u($2,{clsPrefix:t}):null):null}))}}),Eq={fontWeightActive:"400"},Lq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Eq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Nq={name:"Breadcrumb",common:et,self:Lq},Hq=Nq,jq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),rP="n-breadcrumb",oP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),Vq=J({name:"Breadcrumb",props:oP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",jq,Hq,e,t);nt(rP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Uq=rr?window:null,Wq=(e=Uq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Qs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},iP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Kq=J({name:"BreadcrumbItem",props:iP,setup(e,{slots:t}){const n=Le(rP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Wq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Gi(e){return ht(e,[255,255,255,.16])}function ed(e){return ht(e,[0,0,0,.12])}const aP="n-button-group",qq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Yq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},qq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Xq={name:"Button",common:et,self:Yq},vr=Xq,Gq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),B2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),lP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!j2}}),sP=J({name:"Button",props:lP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(aP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Gq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Gi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?ed(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Gi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Pa($)),z&&(x+="k"+Pa(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Gi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":ed(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Po,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:xa(this.$slots.default)?"0":""}},u(Ro,null,{default:()=>this.loading?u(eo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u($2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=sP,Jr=sP,fn="0!important",cP="-1px!important";function tl(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:cP})])])])])}function nl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:cP})])])])])}const Zq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),nl("default"),F("ghost",[nl("primary"),nl("info"),nl("success"),nl("warning"),nl("error")])])])]),dP={size:{type:String,default:void 0},vertical:Boolean},o0=J({name:"ButtonGroup",props:dP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Zq,t),nt(aP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Tf=1901,Ia=40,Qq={date:eH,month:dh,year:f2,quarter:u2};function Bo(e,t,n){const r=Qq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function _v(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},nY),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},oY={name:"Calendar",common:et,peers:{Button:vr},self:rY},iY=oY,aY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),ko(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),qo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),uP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),lY=J({name:"Calendar",props:uP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",aY,iY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Of(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&Cl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Ra(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(o0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(e0,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ha,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===Cl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),sY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},cY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:sY},dY=cY;function uY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Us(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function fY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function hY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const vY={rgb:{hex(e){return wi(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hex:{rgb(e){return bo(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=hl(e);return wi([...fp(t,n,r),o])},rgb(e){const[t,n,r,o]=hl(e);return bo([...fp(t,n,r),o])},hsv(e){const[t,n,r,o]=hl(e);return ya([...kk(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ba(e);return wi([...ci(t,n,r),o])},rgb(e){const[t,n,r,o]=ba(e);return bo([...ci(t,n,r),o])},hsl(e){const[t,n,r,o]=ba(e);return xi([..._d(t,n,r),o])}}};function fP(e,t,n){return n=n||Us(e),n?n===t?e:vY[n][t](e):null}const ol="12px",pY=12,Zi="6px",gY=6,mY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",bY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=fY((i.clientX-s-gY)/(l-pY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:ol,borderRadius:Zi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:mY,height:ol,borderRadius:Zi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Zi,right:Zi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Zi})`,borderRadius:Zi,width:ol,height:ol}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Zi,width:ol,height:ol}})))))}}),Gl="12px",yY=12,Qi="6px",xY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-yY);e.onUpdateAlpha(hY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Gl,borderRadius:Qi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Qi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Qi,right:Qi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Qi})`,borderRadius:Qi,width:Gl,height:Gl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:bo(this.rgba),borderRadius:Qi,width:Gl,height:Gl}}))))}}),td="12px",nd="6px",wY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:td,height:td,borderRadius:nd,left:`calc(${this.displayedSv[0]}% - ${nd})`,bottom:`calc(${this.displayedSv[1]}% - ${nd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:nd,width:td,height:td}})))}}),i0="n-color-picker";function CY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function SY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function _Y(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function kY(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function RY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const PY={paddingSmall:"0 4px"},xC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(i0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=kY(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=SY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=_Y(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=RY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=CY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(In,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:PY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),$Y=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?wi:ps)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ya:pp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?bo:vp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?xi:gp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(K2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?wi:ps)(r)}catch{}return u(xC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(xC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),TY=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(i0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?xi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function OY(e,t){if(t==="hsv"){const[n,r,o,i]=ba(e);return bo([...ci(n,r,o),i])}return e}function zY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const MY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Us(i);return{value:i,mode:a,legalValue:OY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=zY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:fP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),IY=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Us(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,fP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),FY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),hP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),DY=J({name:"ColorPicker",props:hP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",FY,dY,e,s);nt(i0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?uY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Us(g.value)),{modes:w}=e,k=D(Us(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ba(N);case"hsl":return[T,$,R,j]=hl(N),[...kk(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...dp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return Bn(N);case"hsv":return[T,$,I,j]=ba(N),[...ci(T,$,I),j];case"hsl":return[T,$,R,j]=hl(N),[...fp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return hl(N);case"hsv":return[T,$,I,j]=ba(N),[..._d(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...up(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?bo:vp)([...ci(Z,N,te),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?bo:vp)([...ci(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ya([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(bo([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(wi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(xi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(wY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(bY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(xY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(IY,{clsPrefix:Pe,mode:k.value,color:U.value&&ps(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u($Y,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(MY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:An(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(TY,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),AY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},BY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},AY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},EY={name:"Card",common:et,self:BY},vP=EY,LY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Ak({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),ko(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),qo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),a0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},NY=Nn(a0),pP=Object.assign(Object.assign({},Se.props),a0),gP=J({name:"Card",props:pP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",LY,vP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=yi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Go,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),HY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),jY={name:"Carousel",common:et,self:HY},VY=jY;function UY(e){const{length:t}=e;return t>1&&(e.push(wC(e[0],0,"append")),e.unshift(wC(e[t-1],t-1,"prepend"))),e}function wC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function CC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function kv(e,t){return t?e+1:e}function WY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function KY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function qY(e,t){return t&&e>3?e-2:e}function SC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function _C(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function rd(e,t,n){return en?n:e}function YY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const mP="n-carousel-methods",XY=e=>nt(mP,e),l0=(e="unknown",t="component")=>{const n=Le(mP);return n||Dn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},GY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},ZY=J({name:"CarouselDots",props:GY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=l0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Zm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},uD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),QY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),JY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),eX=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=l0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},QY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},JY))}}),hu="CarouselItem",tX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hu},bP=J({name:hu,setup(e){const{mergedClsPrefixRef:t}=He(e),n=l0($w(hu),`n-${$w(hu)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),nX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),rX=["transitionDuration","transitionTimingFunction"],yP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Rv=!1;const oX=J({name:"Carousel",props:yP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>_C(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,rX):{}}),w=P(()=>h.value?0:YY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GeqY(_.value,f.value)),$=kv(e.defaultIndex,f.value),R=D(CC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>kv(I.value,f.value));function A(oe){var Fe,Ne;oe=rd(oe,0,_.value-1);const Ze=CC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return WY(oe,_.value,e.loop)}function j(oe=z.value){return KY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=rd(kv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};XY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Gs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(Rv||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;Rv=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=SC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=SC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=rd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(Rv=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=_C(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Qm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",nX,VY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=iX(p);return b.length||(b=p.map(m=>u(bP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=UY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&Ra(h,d,()=>[u(ZY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Ra(v,c,()=>[u(eX,null)]))}});function iX(e){return e.reduce((t,n)=>(tX(n)&&t.push(n),t),[])}const aX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},lX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},aX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},sX={name:"Checkbox",common:et,self:lX},Il=sX,cX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},dX={name:"Cascader",common:et,peers:{InternalSelectMenu:Ml,InternalSelection:fh,Scrollbar:hr,Checkbox:Il,Empty:Bi},self:cX},uX=dX;function od(e){return e?e.map(t=>t.rawNode):null}function fX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Gg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Gg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const hX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),vX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),xP="n-checkbox-group",wP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},CP=J({name:"CheckboxGroup",props:wP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(xP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),pX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),ko(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),qo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),SP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Zo=J({name:"Checkbox",props:SP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(xP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",pX,Il,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(Ro,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},vX):u("div",{key:"check",class:`${c}-checkbox-icon`},hX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),dc="n-cascader",kC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(dc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Zo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Jb,null)}):null}):null:u(eo,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ha,null)})}))))}}),gX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(dc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(No,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(kC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(kC,{key:r.key,tmNode:r}))}))}}),mX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(dc),l=[],s=D(null),c=D(null);function d(){o()}oh(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(gX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(fK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ei,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u($o,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),bX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(dc),v=D(null),p=P(()=>fX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>to(m.value,hh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(cc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),yX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),_P=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),xX=J({name:"Cascader",props:_P,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",yX,uX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return to(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ha(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return od((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof S2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,od(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,od((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return od((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Gg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Gg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&($a(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(dc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:An(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(mX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(bX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),wX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},CX={name:"Code",common:et,self:wX},kP=CX,SX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),RP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),PP=J({name:"Code",props:RP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:h2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",SX,kP,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),_X=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},kX={name:"Collapse",common:et,self:_X},RX=kX,PX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),jo({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),$P=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),TP="n-collapse",$X=J({name:"Collapse",props:$P,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",PX,RX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt(TP,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),TX=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Lk(xe(e,"show"))}},render(){return u(Po,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),OP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},OX=J({name:"CollapseItem",props:OP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(TP);o||Dn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Ra(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Ra(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(e0,null):u(Ha,null)})]})),n==="left"&&l),hD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(TX,{clsPrefix:i,displayDirective:o,show:!r},t))}}),zX=S("collapse-transition",{width:"100%"},[jo()]),MX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},IX={name:"CollapseTransition",common:et,self:MX},FX=IX,zP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),DX=J({name:"CollapseTransition",props:zP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",zX,FX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Po,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),MP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},IP=J({name:"ConfigProvider",alias:["App"],props:MP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:cl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=bu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=bu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${Bs(JSON.stringify(r.value))}`:g:m?Bs(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||ZR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),FP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},AX=J({name:"Countdown",props:FP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),BX=e=>1-Math.pow(1-e,5);function EX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*BX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const DP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},LX=J({name:"NumberAnimation",props:DP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&EX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=e7(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function NX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const HX={name:"Popselect",common:et,peers:{Popover:Ua,InternalSelectMenu:Ml},self:NX},s0=HX,AP="n-popselect",jX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),c0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},RC=Nn(c0),VX=J({name:"PopselectPanel",props:c0,setup(e){const t=Le(AP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",jX,s0,t.props,n),i=P(()=>to(e.options,hh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(cc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),BP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Aa(Ma,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ma.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),c0),EP=J({name:"Popselect",props:BP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,s0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(AP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(VX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,RC),{ref:$k(r),onMouseenter:gs([i,l.onMouseenter]),onMouseleave:gs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Wa,Object.assign({},Aa(this.$props,RC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function UX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WX={name:"Select",common:et,peers:{InternalSelection:fh,InternalSelectMenu:Ml},self:UX},LP=WX,KX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),HP=J({name:"Select",props:NP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",KX,LP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=hh(G,q);return to(z.value,_e)}),h=P(()=>JK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=Ri(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return xv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?xv(Be,ze):typeof ze=="number"?xv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:QK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&($a(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:An(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(cc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),qX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},YX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},qX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},XX={name:"Pagination",common:et,peers:{Select:LP,Input:kr,Popselect:s0},self:YX},jP=XX;function GX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:PC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function PC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const $C=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,TC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],ZX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",$C,TC),O("&:hover",$C,TC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),VP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UP=J({name:"Pagination",props:VP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",ZX,jP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>GX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||mp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||mp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Mi,null):u(Ti,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(zi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(zi,null):u(Oi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(EP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u(Mi,null)})));case"size-picker":return!m&&l?u(HP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),QX={padding:"8px 14px"},JX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},QX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},eG={name:"Tooltip",common:et,peers:{Popover:Ua},self:JX},vh=eG,tG={name:"Ellipsis",common:et,peers:{Tooltip:vh}},WP=tG,nG={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},rG=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},nG),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},oG={name:"Radio",common:et,self:rG},d0=oG,iG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},aG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},iG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},lG={name:"Dropdown",common:et,peers:{Popover:Ua},self:aG},u0=lG,sG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},cG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},sG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},dG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Il,Radio:d0,Pagination:jP,Scrollbar:hr,Empty:Bi,Popover:Ua,Ellipsis:WP,Dropdown:u0},self:cG},uG=dG,KP=Object.assign(Object.assign({},Ma),Se.props),ph=J({name:"Tooltip",props:KP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,vh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Wa,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),fG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function OC(e){return`${e}-ellipsis--line-clamp`}function zC(e,t){return`${e}-ellipsis--cursor-${t}`}const qP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),f0=J({name:"Ellipsis",inheritAttrs:!1,props:qP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",fG,WP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Zs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?OC(r.value):void 0,e.expandTrigger==="click"?zC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=OC(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=zC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(ph,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),hG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),YP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),no="n-data-table",vG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(no),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(hG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(p2,null)}))}}),pG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),gh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},XP="n-radio-group";function GP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(XP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const gG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),h0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),gh),setup(e){const t=GP(e),n=Se("Radio","-radio",gG,d0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),mG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function bG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=bG(Ir(nc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),yG=gh,xG=J({name:"RadioButton",props:gh,setup:GP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),JP=40,e$=40;function MC(e){if(e.type==="selection")return e.width===void 0?JP:dn(e.width);if(e.type==="expand")return e.width===void 0?e$:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function wG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:JP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:e$);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function IC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function CG(e){return e==="ascend"?1:e==="descend"?-1:0}function SG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function _G(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=wG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function kG(e,t,n){return typeof n=="function"?n(e,t):n||""}function Pv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $v(e){return"children"in e?!1:!!e.sorter}function t$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function FC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function DC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function RG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:DC(!1)}:Object.assign(Object.assign({},t),{order:DC(t.order)})}function n$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const PG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(no),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Pv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Pv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Pv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(CP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Zo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(QP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(h0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function $G(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const TG=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(no),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=$G(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Wa,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(pG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(sW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(PG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),OG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(no),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),r$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),zG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},MG={name:"Icon",common:et,self:zG},IG=MG,FG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),i$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",FG,IG,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),v0="n-dropdown-menu",mh="n-dropdown",AC="n-dropdown-option";function Zg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function DG(e){return e.type==="group"}function a$(e){return e.type==="divider"}function AG(e){return e.type==="render"}const l$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(mh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(AC,null),g=Le(v0),y=Le(Ol),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Zg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=HD(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(AC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(s$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(i$,null,{default:()=>u(Ha,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),BG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(v0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(mh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),EG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(BG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:a$(i)?u(r$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(l$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),LG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),s$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(mh);nt(v0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Zg(s,o));const{rawNode:l}=i;return Zg(l,o)})})});const r=D(null);return nt(oc,null),nt(ic,null),nt(Ol,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:AG(i)?u(LG,{tmNode:o,key:o.key}):a$(i)?u(r$,{clsPrefix:t,key:o.key}):DG(i)?u(EG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(l$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Pf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?O2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),NG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),HG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},jG=Object.keys(Ma),c$=Object.assign(Object.assign(Object.assign({},Ma),HG),Se.props),p0=J({name:"Dropdown",inheritAttrs:!1,props:c$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return to(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);kb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",NG,u0,e,h);nt(mh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:$k(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(s$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Wa,Object.assign({},mn(this.$props,jG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),d$="_n_all__",u$="_n_none__";function VG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case d$:n(!0);return;case u$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function UG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:d$};case"none":return{label:t.uncheckTableAll,key:u$};default:return n}}):[]}const WG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(no),l=P(()=>VG(r.value,o,i,a)),s=P(()=>UG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(p0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(x2,null)})})}}});function Tv(e){return typeof e.title=="function"?e.title(e):e.title}const f$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(no),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!$v(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=RG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=SG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Zo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(WG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Tv(R)):U&&typeof U=="object"?u(f0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Tv(R)}):Tv(R)),$v(R)?u(vG,{column:R}):null),FC(R)?u(TG,{column:R,options:R.filterOptions}):null,t$(R)?u(OG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:n$(R,b),[`${t}-data-table-th--filterable`]:FC(R),[`${t}-data-table-th--sortable`]:$v(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),KG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(js(n,a),n,t):js(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(f0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),BC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(Ro,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ha,null)})}))}}),qG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(no);return()=>{const{rowKey:r}=e;return u(Zo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),YG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(no);return()=>{const{rowKey:r}=e;return u(h0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function XG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const GG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),ZG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(no),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:wl}),ut=!0}),Qs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?XG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:kG(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(YG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(qG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(BC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(KG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(No,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:GG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(f$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ei,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),QG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(no),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(f$,{ref:"headerInstRef"}),u(ZG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function JG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function id(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function eZ(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?tZ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function tZ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function nZ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=id(p.sorter)||0;return(id(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=eZ(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*CG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&id(v.sorter)!==!1?(p=p.filter(b=>id(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function rZ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return to(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(IC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=nZ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=IC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function oZ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=MC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=MC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&ka(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&ka(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function iZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){t$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function aZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:_G(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function lZ(e,t){const n=P(()=>aZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function sZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const EC=dZ(),cZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),EC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),EC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),ko(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),qo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function dZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const uZ=J({name:"DataTable",alias:["AdvancedTable"],props:YP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",cZ,uG,e,r),l=D(null),s=D("body");Zs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=iZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=lZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=rZ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=JG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=sZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=oZ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(no,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:To,[ye("fontSize",Ve)]:Qo,[ye("thPadding",Ve)]:Jo,[ye("tdPadding",Ve)]:ei}}=a.value;return{"--n-font-size":Qo,"--n-th-padding":Jo,"--n-td-padding":ei,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":To}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(QG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(UP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(eo,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),fZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},hZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},fZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},vZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:hZ},h$=vZ,pZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},gZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},pZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},mZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:h$,Scrollbar:hr},self:gZ},bZ=mZ;function yZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function xZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[0]),p=Uu(h[0]),b=Wu(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[1]),p=Uu(h[1]),b=Wu(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const bh="n-date-picker";function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qg={exports:{}},Jg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Jg,Jg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Jg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Qg,Qg.exports);const wZ=yh(Qg.exports);var em={exports:{}},tm={exports:{}},nm={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(nm,nm.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}},Vo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Vo,Vo.exports);const CZ=yh(Vo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Vo.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(om,om.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(om.exports),r=i(Xn.exports),o=i(Vo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(rm,rm.exports);var im={exports:{}},am={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(am,am.exports);var lm={exports:{}},Ws={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})(zf,zf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(zf.exports),r=i(Ws.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(lm,lm.exports);var cm={exports:{}},Ks={exports:{}},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getDefaultOptions=SZ;Ka.setDefaultOptions=_Z;var v$={};function SZ(){return v$}function _Z(e){v$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Vo.exports),i=Ka;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Mf,Mf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Mf.exports),r=l(Xn.exports),o=l(Ks.exports),i=l(Vo.exports),a=Ka;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ks.exports),o=a(dm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(cm,cm.exports);var If={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(am.exports),r=c(lm.exports),o=c(zf.exports),i=c(cm.exports),a=c(Mf.exports),l=c(If.exports),s=c(um.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(im,im.exports);var fm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(fm,fm.exports);var Ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Ff,Ff.exports);const LC=yh(Ff.exports);var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.isProtectedDayOfYearToken=PZ;uc.isProtectedWeekYearToken=$Z;uc.throwProtectedError=TZ;var kZ=["D","DD"],RZ=["YY","YYYY"];function PZ(e){return kZ.indexOf(e)!==-1}function $Z(e){return RZ.indexOf(e)!==-1}function TZ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hm={exports:{}},vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(mm,mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(mm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(gm,gm.exports);var bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(bm,bm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(xm,xm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(ym,ym.exports);var wm={exports:{}},Cm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Sm,Sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Cm.exports),r=o(Sm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(pm.exports),r=l(gm.exports),o=l(bm.exports),i=l(ym.exports),a=l(wm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(hm,hm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(tm.exports),r=v(rm.exports),o=v(Lr.exports),i=v(im.exports),a=v(fm.exports),l=v(Ff.exports),s=uc,c=v(Vo.exports),d=v(Xn.exports),f=Ka,h=v(hm.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(em,em.exports);const OZ=yh(em.exports);function NC(e,t,n){var r=IZ(e,n.timeZone,n.locale);return r.formatToParts?zZ(r,t):MZ(r,t)}function zZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function MZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function IZ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function FZ(e,t){var n=EZ(t);return n.formatToParts?AZ(n,e):BZ(n,e)}var DZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function AZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function BZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ov={};function EZ(e){if(!Ov[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Ov[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ov[e]}function p$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var HC=36e5,LZ=6e4,zv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function g0(e,t,n){var r,o;if(!e||(r=zv.timezoneZ.exec(e),r))return 0;var i;if(r=zv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),jC(i)?-(i*HC):NaN;if(r=zv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return jC(i,a)?(o=Math.abs(i)*HC+a*LZ,i>0?-o:o):NaN}if(jZ(e)){t=new Date(t||Date.now());var l=n?t:NZ(t),s=_m(l,e),c=n?s:HZ(t,s,e);return-c}return NaN}function NZ(e){return p$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _m(e,t){var n=FZ(e,t),r=p$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function HZ(e,t,n){var r=e.getTime(),o=r-t,i=_m(new Date(o),n);if(t===i)return t;o-=i-t;var a=_m(new Date(o),n);return i===a?i:Math.max(i,a)}function jC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var VC={};function jZ(e){if(VC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),VC[e]=!0,!0}catch{return!1}}var VZ=60*1e3,UZ={X:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return UC(o);case"XXXX":case"XX":return ll(o);case"XXXXX":case"XXX":default:return ll(o,":")}},x:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"x":return UC(o);case"xxxx":case"xx":return ll(o);case"xxxxx":case"xxx":default:return ll(o,":")}},O:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+WZ(o,":");case"OOOO":default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return NC("short",o,r);case"zzzz":default:return NC("long",o,r)}}};function Mv(e,t){var n=e?g0(e,t,!0)/VZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Df(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Df(Math.floor(o/60),2),a=Df(Math.floor(o%60),2);return r+i+n+a}function UC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Df(Math.abs(e)/60,2)}return ll(e,t)}function WZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Df(i,2)}const KZ=UZ;var qZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const YZ=qZ;var Iv=36e5,WC=6e4,XZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:YZ};function g$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?XZ:CZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=GZ(e),i=ZZ(o.date,r),a=i.year,l=i.restDateString,s=QZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=JZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=g0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=LC(new Date(c+d)),f=LC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function GZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function ZZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function QZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,qC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return nQ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return qC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,YC(t,i)?KC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return YC(t,i,s)?KC(t,i,s):new Date(NaN)}return null}function JZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Fv(n)?n%24*Iv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Fv(n,r)?n%24*Iv+r*WC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Fv(n,r,o)?n%24*Iv+r*WC+o*1e3:NaN}return null}function KC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var eQ=[31,28,31,30,31,30,31,31,30,31,30,31],tQ=[31,29,31,30,31,30,31,31,30,31,30,31];function m$(e){return e%400===0||e%4===0&&e%100!==0}function qC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=m$(e);if(r&&n>tQ[t]||!r&&n>eQ[t])return!1}return!0}function nQ(e,t){if(t<1)return!1;var n=m$(e);return!(n&&t>366||!n&&t>365)}function YC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Fv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var rQ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function oQ(e,t,n){var r=String(t),o=n||{},i=r.match(rQ);if(i){var a=g$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+KZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return OZ(e,r,o)}function iQ(e,t,n){var r=g$(e,n),o=g0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function b$(e,t,n,r){var o=wZ(r);return o.timeZone=t,oQ(iQ(e,t),n,o)}const rs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Dv(e){return`00${e}`.slice(-2)}function os(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Dv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Dv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Dv(r===12?12:r-12)):e}function ad(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function aQ(e,t,n){const r=os(rs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Dn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function lQ(e){return di(e)<12?"am":"pm"}const y$="n-time-picker",ld=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),sQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},cQ=J({name:"TimePickerPanel",props:sQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(y$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:lQ(Date.now());return os(rs.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return os(rs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return os(rs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return os(rs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u($o,{onFocus:this.onFocusDetectorFocus}))}}),dQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Av(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const x$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Av(e,23)},minutes:{type:[Number,Array],validator:e=>Av(e,59)},seconds:{type:[Number,Array],validator:e=>Av(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Af=J({name:"TimePicker",props:x$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",dQ,h$,e,n),h=kb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>b$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:ad(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!ad(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!ad(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:di(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&$a(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&($a(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(Xi(GU(new Date),se))):pe(tt(Xi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(vv(rH(new Date),se))):pe(tt(vv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(pv(Zb(new Date),se))):pe(tt(pv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=di(oe);se==="pm"&&Fe<12?pe(tt(Xi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(Xi(oe,Fe-12))),pe(tt(oe))}else{const oe=di($e);se==="pm"&&oe<12?pe(tt(Xi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(Xi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=jn(oe,{hours:di($e),minutes:Uu($e),seconds:Wu($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:di,minutes:Uu,seconds:Wu},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||ad($e[Ue](se),Ue,e[Ue])?$e[Ue](se):aQ($e[Ue](se),Ue,e[Ue])),Ze=pv(vv(Xi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(y$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:An(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(In,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(dW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(cQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),uQ="HH:mm:ss",w$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:uQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function C$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(bh),l=P(()=>({locale:t.value.locale})),s=D(null),c=kb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const m0=Object.assign(Object.assign({},w$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function b0(e,t){const n=C$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(bh),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Of(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return qg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return Xg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Yg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(dh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Zb(B):t==="month"?Tr(B):t==="year"?Ub(B):t==="quarter"?Vs(B):Cl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=jn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=jn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=fu(e.defaultTime);te&&(N=tt(jn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?ZU(lC(N,B.dateObject.year),B.dateObject.quarter):jn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Qb(te,B.dateObject.month):lC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Mp(g.value,1))}function we(){g.value=tt(Mp(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ia})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Tf;y.value.scrollTo({top:te*Ia})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const S$=J({name:"MonthPanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=b0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"yearVlRef",items:this.yearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),kl=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(S$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),fQ=J({name:"DateTimePanel",props:m0,setup(e){return b0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(In,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Af,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Mi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(zi,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),y0=Object.assign(Object.assign({},w$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function x0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(bh),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=C$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Of(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Of(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>Xg(rl(e.value,"start"),ee.value)),ve=P(()=>Xg(rl(e.value,"end"),ee.value)),Z=P(()=>{const Re=rl(e.value,"start");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=rl(e.value,"end");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=rl(e.value,"start");return qg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=rl(e.value,"end");return qg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=fu(At[0]),Ut=fu(At[1])):(kt=fu(At),Ut=kt)}kt&&(Re=tt(jn(Re,kt))),Ut&&(Ye=tt(jn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Zb(Re):t==="monthrange"?Tr(Re):Cl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=jn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=jn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Tf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Tf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?jn(Re.ts,{month:qt(t==="quarterrange"?Vs(new Date):new Date)}).valueOf():jn(Re.ts,{month:qt(t==="quarterrange"?Vs(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const hQ=J({name:"DateTimeRangePanel",props:y0,setup(e){return x0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(In,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(In,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),vQ=J({name:"DatePanel",props:m0,setup(e){return b0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),pQ=J({name:"DateRangePanel",props:y0,setup(e){return x0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),gQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},y0),{type:{type:String,required:!0}}),setup(e){const t=x0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Jm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),mQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),_$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),bQ=J({name:"DatePicker",props:_$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",mQ,bZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&($a(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&$a(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=yZ(e,A),We=xZ(e,A);nt(bh,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:To,calendarDaysHeight:Qo,calendarDaysTextColor:Jo,arrowSize:ei,panelHeaderPadding:Ni,calendarDividerColor:kh,calendarTitleGridTempateColumns:Rh,iconColor:Ph,iconColorDisabled:$h,scrollItemBorderRadius:Th,calendarTitleColorHover:Oh,[ye("calendarLeftPadding",ae)]:zh,[ye("calendarRightPadding",ae)]:Mh}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ni,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":zh,"--n-calendar-right-padding":Mh,"--n-calendar-title-color-hover":Oh,"--n-calendar-title-height":To,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Rh,"--n-calendar-days-height":Qo,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Jo,"--n-calendar-divider-color":kh,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Th,"--n-arrow-size":ei,"--n-arrow-color":be,"--n-icon-color":Ph,"--n-icon-color-disabled":$h}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:An(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(fQ,Object.assign({},o),r):l==="daterange"?u(pQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(hQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(S$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(gQ,Object.assign({},o,{type:l})):u(vQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(vW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(sC,null)})])}):u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(sC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),yQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},xQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},yQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},wQ={name:"Descriptions",common:et,self:xQ},CQ=wQ,k$="DESCRIPTION_ITEM_FLAG";function SQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[k$]:!1}const _Q=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),ko(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),R$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),kQ=J({name:"Descriptions",props:R$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",_Q,CQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ri(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>SQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Tx(g,"label")],k=[Tx(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||nc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),P$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},RQ=J({name:"DescriptionsItem",[k$]:!0,props:P$,render(){return null}}),PQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},$Q=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},PQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},TQ={name:"Dialog",common:et,peers:{Button:vr},self:$Q},$$=TQ,fc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},T$=Nn(fc),OQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),ko(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Ak(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),zQ={default:()=>u(Ii,null),info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null)},w0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),fc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",OQ,$$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):zQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Go,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),O$="n-dialog-provider",z$="n-dialog-api",M$="n-dialog-reactive-list",MQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},IQ={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:$$,Card:vP},self:MQ},FQ=IQ,C0=Object.assign(Object.assign({},a0),fc),DQ=Nn(C0),AQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},C0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),iR(P(()=>e.blockScroll&&r.value));const a=Le(Uk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(oc,t),nt(ic,null),nt(Ol,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Mu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Ob,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(w0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,T$),{"aria-modal":"true"}),e):this.preset==="card"?u(gP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,NY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),BQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Ho({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),I$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),C0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),F$=J({name:"Modal",inheritAttrs:!1,props:I$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",BQ,FQ,e,n),a=jk(64),l=Hk(),s=An(),c=e.internalDialog?Le(O$,null):null,d=aR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!d.value&&f(!1)}nt(Uk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,DQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(AQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),EQ=Object.assign(Object.assign({},fc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),LQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},EQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(F$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(w0,Object.assign({},mn(this.$props,T$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),D$={injectionKey:String,to:[String,Object]},A$=J({name:"DialogProvider",props:D$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Fi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(z$,a),nt(O$,{clickedRef:jk(64),clickPositionRef:Hk()}),nt(M$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(LQ,Aa(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function B$(){const e=Le(z$,null);return e===null&&Dn("use-dialog","No outer founded."),e}function NQ(){const e=Le(M$,null);return e===null&&Dn("use-dialog-reactive-list","No outer founded."),e}const HQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},jQ={name:"Divider",common:et,self:HQ},VQ=jQ,UQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),E$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),WQ=J({name:"Divider",props:E$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",UQ,VQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),KQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},qQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:KQ},YQ=qQ,XQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(Pb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return iR(P(()=>e.blockScroll&&t.value)),nt(ic,n),nt(Ol,null),nt(oc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:GQ,cubicBezierEaseOut:ZQ}=_r;function QQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${GQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ZQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:JQ,cubicBezierEaseOut:eJ}=_r;function tJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${JQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:nJ,cubicBezierEaseOut:rJ}=_r;function oJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${nJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${rJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:iJ,cubicBezierEaseOut:aJ}=_r;function lJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${iJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${aJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const sJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[QQ(),tJ(),oJ(),lJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Ho({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),L$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),cJ=J({name:"Drawer",inheritAttrs:!1,props:L$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=An(),i=Se("Drawer","-drawer",sJ,YQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=aR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(Pb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(XQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),N$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},dJ=J({name:"DrawerContent",props:N$,setup(){const e=Le(Pb,null);e||Dn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Go,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),uJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fJ=()=>uJ,hJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:fJ},vJ=hJ,S0="n-dynamic-input",pJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(S0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),gJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(S0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),mJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),sd=new WeakMap,H$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),bJ=J({name:"DynamicInput",props:H$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(Fu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",mJ,vJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=va($)?zt($):$;let z=sd.get(I);return z===void 0&&sd.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=va(A)?zt(A):A,j=va(R)?zt(R):R,E=sd.get(L);E!==void 0&&sd.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(S0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(_l,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},Ra(e.default,{value:r[y],index:y},()=>[s==="input"?u(pJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(gJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(o0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(b2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(nW,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(p2,null)})}):null]})))))}}),yJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},xJ=()=>yJ,wJ={name:"Space",self:xJ},j$=wJ;let Bv;const CJ=()=>{if(!rr)return!0;if(Bv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Bv=t}return Bv},V$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),U$=J({name:"Space",props:V$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,j$,e,t),o=Zt("Space",n,t);return{useGap:CJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=nD(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(nc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),SJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:M2,Space:j$},self(){return{inputWidth:"64px"}}},_J=SJ,kJ=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),W$=Object.assign(Object.assign(Object.assign({},Se.props),I2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),RJ=J({name:"DynamicTags",props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",kJ,_J,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>mp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(U$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(ws,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(In,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}))}})}}),PJ={name:"Element",common:et},$J=PJ,K$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),XC=J({name:"Element",alias:["El"],props:K$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,$J,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${XR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),TJ={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},OJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},TJ),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},zJ={name:"Form",common:et,self:OJ},q$=zJ,MJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),hc="n-form",Y$="n-form-item-insts";var IJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),FJ=J({name:"Form",props:X$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",MJ,q$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return IJ(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Nn(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Nn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(hc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(Y$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e,t,n){return AJ()?vu=Reflect.construct.bind():vu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&qs(c,a.prototype),c},vu.apply(null,arguments)}function BJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!BJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return vu(r,arguments,km(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qs(o,r)},Rm(e)}var EJ=/%[sdj%]/g,LJ=function(){};typeof process<"u"&&process.env;function Pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function NJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||NJ(t)&&typeof e=="string"&&!e)}function HJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qJ())},hex:function(t){return typeof t=="string"&&!!t.match(eS.hex)}},YJ=function(t,n,r,o,i){if(t.required&&n===void 0){G$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?is[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},XJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},il="enum",GJ=function(t,n,r,o,i){t[il]=Array.isArray(t[il])?t[il]:[],t[il].indexOf(n)===-1&&o.push(mr(i.messages[il],t.fullField,t[il].join(", ")))},ZJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:G$,whitespace:KJ,type:YJ,range:XJ,enum:GJ,pattern:ZJ},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Fn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},nee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n)||Bt.type(t,n,o,a,i)}r(a)},ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},aee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},lee="enum",see=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[lee](t,n,o,a,i)}r(a)},cee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},dee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},uee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Ev=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),Fn(n,a)||Bt.type(t,n,o,l,i)}r(l)},fee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},Cs={string:QJ,method:JJ,number:eee,boolean:tee,regexp:nee,integer:ree,float:oee,array:iee,object:aee,enum:see,pattern:cee,date:dee,url:Ev,hex:Ev,email:Ev,required:uee,any:fee};function $m(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=$m(),vc=function(){function e(n){this.rules=null,this._messages=Tm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=JC($m(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function vee(e){const t=Le(hc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function pee(e){const t=Le(hc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=js(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:tS}=_r;function gee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=tS,leaveCubicBezier:i=tS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const mee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),gee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var nS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),Z$=Nn(pc);function rS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const _0=J({name:"FormItem",props:pc,setup(e){ED(Y$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(hc,null),o=hee(e),i=vee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=pee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",mee,q$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return nS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>nS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?js(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=rS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=rS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new vc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(Fu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),oS=1,Q$="n-grid",J$=1,Ys={span:{type:[Number,String],default:J$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},bee=Nn(Ys),Om=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ys,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Q$),i=Ko();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=J$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zm=Object.assign(Object.assign({},Ys),pc),iS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:zm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Om,mn(this.$.vnode.props||{},bee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),yee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),xee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),yee])]),eT="n-row",xh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},wee=Nn(xh),tT=J({name:"Row",props:xh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",xee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(eT,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),wh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},Cee=Nn(wh),nT=J({name:"Col",props:wh,setup(e){const t=Le(eT,null);return t||Dn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),k0=Object.assign(Object.assign({},wh),pc),See=Nn(k0),rT=J({name:"FormItemCol",props:k0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(nT,mn(this.$props,Cee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),_ee=Object.assign(Object.assign({},xh),k0),kee=J({name:"FormItemRow",props:_ee,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,wee),{default:()=>{const e=mn(this.$props,See);return u(rT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),Ree=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Wo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?cl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Qs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Pee=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},$ee={name:"GradientText",common:et,self:Pee},Tee=$ee,Oee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),oT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),zee=J({name:"GradientText",props:oT,setup(e){$b();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Oee,Tee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Mee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},iT=24,Lv="__ssr__",aT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:iT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Iee=J({name:"Grid",inheritAttrs:!1,props:aT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=JD((n==null?void 0:n.value)||Mee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(Vl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:iT}),c=it(()=>Vl(e.xGap.toString(),l.value)),d=it(()=>Vl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{ka(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Lv)&&(g.removeAttribute(Lv),b.value=!0)}),nt(Q$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(nc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(vD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=Vl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:oS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:oS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=Vl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Lv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Fee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Dee={name:"IconWrapper",common:et,self:Fee},Aee=Dee,Bee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),lT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Eee=J({name:"IconWrapper",props:lT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Bee,Aee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),R0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),sT="n-image";function Lee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Nee={name:"Image",common:et,peers:{Tooltip:vh},self:Lee},Hee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},jee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Hee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},Vee={name:"Notification",common:et,peers:{Scrollbar:hr},self:jee},Uee=Vee,Wee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Kee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Wee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},qee={name:"Message",common:et,self:Kee},Yee=qee,Xee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Gee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Xee},Zee=Gee,Qee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Jee={name:"Layout",common:et,peers:{Scrollbar:hr},self:Qee},Ch=Jee,ete=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},tte={name:"List",common:et,self:ete},nte=tte,rte=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},ote={name:"LoadingBar",common:et,self:rte},ite=ote,ate=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},lte={name:"Log",common:et,peers:{Scrollbar:hr,Code:kP},self:ate},ste=lte,cte=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},dte={name:"Mention",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:cte},ute=dte;function fte(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const hte=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},fte("#BBB",r,"#FFF","#AAA"))},vte={name:"Menu",common:et,peers:{Tooltip:vh,Dropdown:u0},self:hte},pte=vte,gte={titleFontSize:"18px",backSize:"22px"};function mte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},gte),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const bte={name:"PageHeader",common:et,self:mte},yte={iconSize:"22px"},xte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},yte),{fontSize:t,iconColor:n})},wte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Ua},self:xte},Cte=wte,Ste=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},_te={name:"Progress",common:et,self:Ste},cT=_te,kte=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},Rte={name:"Rate",common:et,self:kte},Pte=Rte,$te={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},Tte=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},$te),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},Ote={name:"Result",common:et,self:Tte},zte=Ote,Mte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Ite=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},Mte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Fte={name:"Slider",common:et,self:Ite},Dte=Fte,Ate=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Bte={name:"Spin",common:et,self:Ate},Ete=Bte,Lte=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Nte={name:"Statistic",common:et,self:Lte},Hte=Nte,jte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},Vte=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},jte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Ute={name:"Steps",common:et,self:Vte},Wte=Ute,Kte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},qte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Kte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},Yte={name:"Switch",common:et,self:qte},Xte=Yte,Gte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Zte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Gte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Qte={name:"Table",common:et,self:Zte},Jte=Qte,ene={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},tne=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},ene),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},nne={name:"Tabs",common:et,self:tne},rne=nne,one=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},ine={name:"Thing",common:et,self:one},ane=ine,lne={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},sne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},lne),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},cne={name:"Timeline",common:et,self:sne},dne=cne,une={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},fne=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},une),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},hne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:fne},vne=hne,pne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},gne={name:"Tree",common:et,peers:{Checkbox:Il,Scrollbar:hr,Empty:Bi},self:pne},dT=gne,mne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},bne={name:"TreeSelect",common:et,peers:{Tree:dT,Empty:Bi,InternalSelection:fh},self:mne},yne=bne,xne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},wne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},xne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},Cne={name:"Typography",common:et,self:wne},Li=Cne,Sne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},_ne={name:"Upload",common:et,peers:{Button:vr,Progress:cT},self:Sne},kne=_ne,Rne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Pne=Rne,$ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Tne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),One=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),zne=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Ho()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Ho()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),dd=32,uT=J({name:"ImagePreview",props:Object.assign(Object.assign({},R0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",zne,Nee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,ka(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Gs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${XR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(ph,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:An(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(lc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>$ne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>Tne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(bW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(mW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(wW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(xW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(yW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>One}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ac,{enabled:this.show}]])):null}}))}}),fT="n-image-group",hT=R0,vT=J({name:"ImageGroup",props:hT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Ko(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(fT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),pT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},R0),gT=J({name:"Image",props:pT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(fT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(gl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=G2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(sT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:gl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:gl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Mne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Ine(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Nv(e){return e==null?!0:!Number.isNaN(e)}function aS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Hv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Fne=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),lS=800,sS=100,mT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Dne=J({name:"InputNumber",props:mT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Fne,Zee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Hv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Hv(e.min);return B!==null?B:null}),k=it(()=>{const B=Hv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&Ine(Z))return!1;const fe=(e.parse||Mne)(Z);if(fe===null)return N&&_(null),null;if(Nv(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Nv(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=aS(B,void 0):m.value=aS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},sS)},lS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},sS)},lS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=Bn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Jr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(b2,null)})])}),r=()=>u(Jr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(_l,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(In,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),bT="n-layout-sider",Sh={type:String,default:"static"},Ane=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Mm={embedded:Boolean,position:Sh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function xT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Mm),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",Ane,Ch,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(yT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Mb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Bne=xT(!1),Ene=xT(!0),Lne=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),wT={position:Sh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Nne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),wT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Lne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Hne=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),CT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Sh,bordered:Boolean}),jne=J({name:"LayoutFooter",props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Hne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Vne=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Une=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Ha,null)}))}}),Wne=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ST={position:Sh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Kne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),ST),setup(e){const t=Le(yT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Mb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(bT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",Vne,Ch,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Wne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Une,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),qne={extraFontSize:"12px",width:"440px"},Yne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},qne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Xne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:Yne},Gne=Xne,gc="n-transfer",cS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(gc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Zo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),dS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(gc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:rc(r)},r))}}),uS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(dS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(Gf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(dS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),fS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(y2,null)})}))}});function Zne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Qne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Jne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Ho()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Qne]),_T=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),ere=J({name:"LegacyTransfer",props:_T,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Jne,Gne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Zne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(gc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(cS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Ha,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(e0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(cS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),tre=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),ko(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),kT=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),RT="n-list",nre=J({name:"List",props:kT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",tre,nte,e,t);nt(RT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),rre=J({name:"ListItem",setup(){const e=Le(RT,null);return e||Dn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),PT="n-loading-bar",$T="n-loading-bar-api",ore=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Ho({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var jv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function ud(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ire=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(PT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return jv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return jv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=ud(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=ud("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=ud("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=ud("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return jv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",ore,ite,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),TT=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),OT=J({name:"LoadingBarProvider",props:TT,setup(e){const t=An(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt($T,r),nt(PT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Js,{disabled:this.to===!1,to:this.to||"body"},u(ire,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function zT(){const e=Le($T,null);return e===null&&Dn("use-loading-bar","No outer founded."),e}const are=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(eo,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),MT="n-log",lre=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(MT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),sre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),IT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),cre=J({name:"Log",props:IT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",sre,ste,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=xs(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(MT,{languageRef:xe(e,"language"),mergedHljsRef:h2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(PP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(lre,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(are,{clsPrefix:e}):null})])}}),mc="n-menu",P0="n-submenu",$0="n-menu-item-group",fd=8;function T0(e){const t=Le(mc),{props:n,mergedCollapsedRef:r}=t,o=Le(P0,null),i=Le($0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?fd:(p===void 0?v:p)+b+fd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const O0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},FT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),dre=J({name:"MenuOptionGroup",props:FT,setup(e){nt(P0,null);const t=T0(e);nt($0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(mc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>z0(s,r))))}}}),DT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(mc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(hW,null)}):null)}}),AT=Object.assign(Object.assign({},O0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),ure=J({name:"Submenu",props:AT,setup(e){const t=T0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(P0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt($0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(DT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(Po,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>z0(s,this.menuProps)))}});return this.root?u(p0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),BT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),fre=J({name:"MenuOption",props:BT,setup(e){const t=T0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(ph,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(DT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),hre=J({name:"MenuDivider",setup(){const e=Le(mc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),vre=Nn(FT),pre=Nn(BT),gre=Nn(AT);function ET(e){return e.type==="divider"||e.type==="render"}function mre(e){return e.type==="divider"}function z0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(ET(n))return mre(n)?u(hre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(dre,mn(s,vre,{tmNode:e,tmNodes:e.children,key:i})):u(ure,mn(s,gre,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(fre,mn(s,pre,{key:i,tmNode:e}))}const hS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],vS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],bre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",vS)]),F("selected",[Ji(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Ji(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ji("border-bottom: 2px solid var(--n-border-color-horizontal);",vS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",hS)]),F("selected",[Ji(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Ji(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Ji(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Ji(null,hS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[jo({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Ji(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const LT=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),yre=J({name:"Menu",props:LT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",bre,pte,e,t),o=Le(bT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return to(e.items||e.options,{getIgnored(I){return ET(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=Ri(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(mc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>z0(o,this.$props)))}});function xre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const wre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),Cre=J({name:"Mention",props:NT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",wre,ute,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>to(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=xre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:An(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(In,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(cc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),HT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},jT="n-message-api",VT="n-message-provider",Sre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[jo({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),_re={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},kre=J({name:"Message",props:Object.assign(Object.assign({},HT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(VT),i=Zt("Message",n,o),a=Se("Message","-message",Sre,Yee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Rre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(Ro,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Go,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Rre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(eo,{clsPrefix:n,strokeWidth:24,scale:.85}):_re[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Pre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},HT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Po,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(kre,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),UT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),WT=J({name:"MessageProvider",props:UT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(VT,{props:e,mergedClsPrefixRef:t}),nt(jT,o);function i(s,c){const d=Cr(),f=Fi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Pre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Aa(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function KT(){const e=Le(jT,null);return e===null&&Dn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const _h="n-notification-provider",$re=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(_h),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Tre={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},M0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Ore=Nn(M0),zre=J({name:"Notification",props:M0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(_h),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=yi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>Tre[this.type]()}):null):null,this.closable?u(Go,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),Mre=Object.assign(Object.assign({},M0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Ire=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Mre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(_h),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(zre,Object.assign({},mn(this.$props,Ore),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Fre=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[hd("top-right")]),F("top-left",` - left: 0; - `,[hd("top-left")]),F("bottom-right",` - right: 0; - `,[hd("bottom-right")]),F("bottom-left",` - left: 0; - `,[hd("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function hd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const qT="n-notification-api",YT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XT=J({name:"NotificationProvider",props:YT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Fi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Fre,Uee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(qT,c),nt(_h,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u($re,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Ire,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Aa(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function GT(){const e=Le(qT,null);return e===null&&Dn("use-notification","No outer `n-notification-provider` found."),e}const Dre=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),ZT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Are=J({name:"PageHeader",props:ZT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Dre,bte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(gW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),QT="n-popconfirm",JT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},pS=Nn(JT),Bre=J({name:"NPopconfirmPanel",props:JT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(QT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Ai,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Ere=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),eO=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Lre=J({name:"Popconfirm",props:eO,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Ere,Cte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(QT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Wa,Aa(t,pS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,pS);return u(Bre,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Nre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Hre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},jre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Hre[f]}))):null)}}}),Vre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Ure=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>Vre[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function gS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Wre=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),tO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),nO=J({name:"Progress",props:tO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Nre,cT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Ure,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(jre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Wre,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Kre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),qre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),rO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Yre=J({name:"Rate",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",qre,Pte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Pa(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},B5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Kre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Xre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Gre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Zre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Qre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Jre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),eoe={403:Qre,404:Xre,418:Zre,500:Gre,info:u(Ii,null),success:u(Va,null),warning:u(Ai,null),error:u(ja,null)},oO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),toe=J({name:"Result",props:oO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Jre,zte,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>eoe[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),iO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),noe=J({name:"Scrollbar",props:iO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),roe=noe,ooe=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},ioe={name:"Skeleton",common:et,self:ooe},aoe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),aO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),loe=J({name:"Skeleton",inheritAttrs:!1,props:aO,setup(e){$b();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",aoe,ioe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function mS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function bS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Zm(()=>e.value.clear()),[e,t]}const soe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),ko(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),qo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),coe=0,lO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),doe=J({name:"Slider",props:lO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",soe,Dte,e,t),i=D(null),[a,l]=bS(),[s,c]=bS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!mS(ne)&&ne.button!==coe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:An(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),uoe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ho()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),foe={small:20,medium:18,large:16},sO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),hoe=J({name:"Spin",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",uoe,Ete,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ri(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return foe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(eo,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),voe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),cO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),poe=J({name:"Statistic",props:cO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",voe,Hte,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),goe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function moe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function boe(e){return e.map((t,n)=>moe(t,n))}const dO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),uO="n-steps",yoe=J({name:"Steps",props:dO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",goe,Wte,e,n);return nt(uO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},boe(Ir(nc(this))))}}),fO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},xoe=J({name:"Step",props:fO,setup(e){const t=Le(uO,null);t||Dn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(Ro,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Jb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(g2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),woe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),hO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Zl;const Coe=J({name:"Switch",props:hO,setup(e){Zl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Zl=CSS.supports("width","max(1px)"):Zl=!1:Zl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",woe,Xte,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Zl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(xa(s)&&xa(c)&&xa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(Ro,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),Soe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),ko(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),qo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),vO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),_oe=J({name:"Table",props:vO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",Soe,Jte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),koe=J({name:"Th",render(){return u("th",null,this.$slots)}}),Roe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Poe=J({name:"Td",render(){return u("td",null,this.$slots)}}),$oe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Toe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),I0="n-tabs",F0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ooe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:F0,setup(e){const t=Le(I0,null);return t||Dn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Aa(F0,["displayDirective"])),Bf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(I0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(_l,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Go,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),zoe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Moe=J({name:"Tabs",props:gO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",zoe,rne,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=Ri(e,["labelSize","size"]),g=Ri(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=xs(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=xs(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=xs(X=>{pe(X.target)},64);nt(I0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),nh(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Vv(u(Bf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Vv(x!==0&&!m?wS(C):C))),!r&&o&&p?xS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Bf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:wS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(WA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?xS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yS(f,this.mergedValue,this.renderedNames)))}});function yS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(Gf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function xS(e,t){return u(Bf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function wS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Vv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Ioe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),mO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Foe=J({name:"Thing",props:mO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",Ioe,ane,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),bO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Doe=J({name:"Time",props:bO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>b$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):_H(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Qr(this.renderedTime):u("time",[this.renderedTime])}}),CS=1.25,Aoe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${CS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${CS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),yO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),xO="n-timeline",Boe=J({name:"Timeline",props:yO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",Aoe,dne,e,n);return nt(xO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),wO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Eoe=J({name:"TimelineItem",props:wO,setup(e){const t=Le(xO);t||Dn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),$b();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),bc="n-transfer",SS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(bc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),_S=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(bc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:rc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Go,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(_S,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(_S,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),RS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(y2,null)})}))}});function Loe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Noe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),CO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Hoe=J({name:"Transfer",props:CO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Noe,vne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Loe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(bc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(SS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(RS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(SS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(RS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),D0="n-tree-select",yc="n-tree",joe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(yc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(Ro,null,{default:()=>{if(e.loading)return u(eo,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(cW,null)})}})))}}}),Voe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(yc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Zo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Uoe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(yc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function PS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Woe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function SO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function li(e,t){return!!e.rawNode[t]}function _O(e,t,n,r){e==null||e.forEach(o=>{n(o),_O(o[t],t,n,r),r(o)})}function Koe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return _O(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function qoe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Yoe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(yc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>li(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Pk(e.key):void 0,y=b==="right",C=n?u(Voe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),Rk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(joe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Uoe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?PS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?PS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),kO=Yoe;function Xoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(D0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(kO,{clsPrefix:e,tmNode:t})))})}}),Zoe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[jo({duration:"0.2s"})]),F("collapse",[jo({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Qoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vd=30;function RO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const PO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},$O=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Woe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),PO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),TO=J({name:"Tree",props:$O,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Zoe,dT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:qoe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>to(e.showIrrelevantNodes?e.data:h.value.filteredTree,RO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(D0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=SO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Xoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Koe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return Qoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/vd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>C2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||li(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||li(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const To=Ur(De.key);if(To===null){We();return}let Qo=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[To-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Qo=!0,cn==="after"&&(Et=j.value[To+1],Et?cn="before":(Et=De,cn="inside")));const Jo=Et;if(Oe.value=Jo,!Qo&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let ei=Ce-be.clientX,Ni=0;for(;ei>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ni<1;)ei-=Vt,Ni+=1,Et=Et.parent;pe.value=Ni}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Jo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Pk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(yc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Goe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(kO,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=yi(C||"0");return u(Pf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(No,{ref:"virtualListInstRef",items:this.fNodes,itemSize:vd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(Pf,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ei,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function $S(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function TS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Joe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),OO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),PO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),eie=J({name:"TreeSelect",props:OO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>to(e.options,RO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?TS(ie,ze.getPath(ae).treeNodePath,Be,Ee):$S(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?TS($e,ze.getPath(se).treeNodePath,Be,Te):$S($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&($a(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(D0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}oh(o,dt);const ut=SO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Joe,yne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:An(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(TO,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u($o,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),tie=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),oa=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Fl=e=>J({name:`H${e}`,props:oa,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",tie,Li,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),nie=Fl("1"),rie=Fl("2"),oie=Fl("3"),iie=Fl("4"),aie=Fl("5"),lie=Fl("6"),sie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),zO=Object.assign({},Se.props),cie=J({name:"A",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",sie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),die=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),MO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),uie=J({name:"P",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",die,Li,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),fie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),IO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),hie=J({name:"Blockquote",props:IO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",fie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),vie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),pie=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",vie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),OS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),zS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],FO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),OS,zS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),OS,zS])]),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),gie=J({name:"Ul",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),AO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),mie=J({name:"Ol",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),bie=J({name:"Li",render(){return u("li",null,this.$slots)}}),yie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),xie=J({name:"Text",props:BO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",yie,Li,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ri(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Dl="n-upload",EO="__UPLOAD_DRAGGER__",LO=J({name:"UploadDragger",[EO]:!0,setup(e,{slots:t}){const n=Le(Dl,null);return n||Dn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var NO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const HO=e=>e.includes("image/"),MS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},IS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,jO=e=>{if(e.type)return HO(e.type);const t=MS(e.name||"");if(IS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=MS(n);return!!(/^data:image\//.test(n)||IS.test(r))};function wie(e){return NO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!HO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const Cie=rr&&window.FileReader&&window.File;function Sie(e){return e.isDirectory}function _ie(e){return e.isFile}function kie(e,t){return NO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&Sie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else _ie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Xs(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function Rie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Pie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},A0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?kie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(LO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(_l,null)})])}):t)}}}),$ie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Dl).mergedThemeRef}},render(){return u(Po,null,{default:()=>this.show?u(nO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Tie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Oie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var zie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Mie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Dl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Pie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>zie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):jO(r)?u(st,{clsPrefix:e},{default:()=>Tie}):u(st,{clsPrefix:e},{default:()=>Oie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(gT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(rW,null)}));const s=u($ie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(m2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:pd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(Ro,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(iW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(uW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(pW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(aW,null)})}):null)),!a&&s)}}),VO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(Mie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(vT,Object.assign({},h.value),{default:p}):u(Po,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(A0,null,t))}}}),Iie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[jo(),S("progress",[jo({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var FS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Fie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Xs(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Xs(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Die(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Xs(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Xs(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Aie(e,t,n){const r=Fie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function UO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Bie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Eie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Lie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Eie(d,s,n),d.append(t,n.file),Aie(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Bie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const WO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Cie?jO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Nie=J({name:"Upload",props:WO,setup(e){e.abstract&&e.listType==="image-card"&&Dn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",Iie,kne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Xs));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?Rie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>FS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>FS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Die({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Lie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?wie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Dl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[EO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Js,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(A0,null,o),this.showFileList&&u(VO,null,o)))}}),Hie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function jie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const KO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Vie=J({name:"Watermark",props:KO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Hie,Pne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return nh(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=jie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else fD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Uie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Wie={message:KT,notification:GT,loadingBar:zT,dialog:B$};function Kie({providersAndProps:e,configProviderProps:t}){let r=F_(()=>u(IP,qv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,qv(c),{default:()=>u(Uie,{onSetup:()=>o[l]=Wie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function qie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:WT,props:n});break;case"notification":a.push({type:s,Provider:XT,props:o});break;case"dialog":a.push({type:s,Provider:A$,props:r});break;case"loadingBar":a.push({type:s,Provider:OT,props:i});break}}),Kie({providersAndProps:a,configProviderProps:t})}const qO={value:String,katex:Object,katexOptions:Object},Yie=J({name:"Equation",props:qO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),DS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:v2,affixProps:uh,NAlert:HK,alertProps:E2,NAnchor:ZK,anchorProps:N2,NAnchorLink:qK,anchorLinkProps:L2,NAutoComplete:gq,autoCompleteProps:X2,NAvatar:Kg,avatarProps:J2,NAvatarGroup:kq,avatarGroupProps:eP,NBackTop:Mq,backTopProps:tP,NBadge:Bq,badgeProps:nP,NBreadcrumb:Vq,breadcrumbProps:oP,NBreadcrumbItem:Kq,breadcrumbItemProps:iP,NButton:Pt,NxButton:Jr,buttonProps:lP,NButtonGroup:o0,buttonGroupProps:dP,NCalendar:lY,calendarProps:uP,NColorPicker:DY,colorPickerProps:hP,NCard:gP,cardProps:pP,NCarousel:oX,carouselProps:yP,NCarouselItem:bP,NCascader:xX,cascaderProps:_P,NCheckbox:Zo,checkboxProps:SP,NCheckboxGroup:CP,checkboxGroupProps:wP,NCode:PP,codeProps:RP,NCollapse:$X,collapseProps:$P,NCollapseItem:OX,collapseItemProps:OP,NCollapseTransition:DX,collapseTransitionProps:zP,NConfigProvider:IP,configProviderProps:MP,NCountdown:AX,countdownProps:FP,NNumberAnimation:LX,numberAnimationProps:DP,NDataTable:uZ,dataTableProps:YP,NDatePicker:bQ,datePickerProps:_$,NDescriptions:kQ,descriptionsProps:R$,NDescriptionsItem:RQ,descriptionsItemProps:P$,NDialog:w0,dialogProps:fc,NDialogProvider:A$,dialogProviderProps:D$,useDialog:B$,useDialogReactiveList:NQ,NDivider:WQ,dividerProps:E$,NDrawer:cJ,drawerProps:L$,NDrawerContent:dJ,drawerContentProps:N$,NDropdown:p0,dropdownProps:c$,NDynamicInput:bJ,dynamicInputProps:H$,NDynamicTags:RJ,dynamicTagsProps:W$,NElement:XC,elementProps:K$,NEl:XC,NEllipsis:f0,ellipsisProps:qP,NEmpty:Ei,emptyProps:R2,NForm:FJ,formProps:X$,NFormItem:_0,formItemProps:pc,NFormItemGridItem:iS,NFormItemGi:iS,formItemGiProps:zm,formItemGridItemProps:zm,NFormItemCol:rT,NFormItemRow:kee,NGlobalStyle:Ree,NGradientText:zee,gradientTextProps:oT,NGrid:Iee,gridProps:aT,NGridItem:Om,gridItemProps:Ys,NGi:Om,giProps:Ys,NIcon:i$,iconProps:o$,NIconWrapper:Eee,iconWrapperProps:lT,NImage:gT,imageProps:pT,NImageGroup:vT,imageGroupProps:hT,NInput:In,inputProps:U2,NInputGroup:K2,inputGroupProps:W2,NInputGroupLabel:dq,inputGroupLabelProps:q2,NInputNumber:Dne,inputNumberProps:mT,NLayout:Bne,layoutProps:Mm,layoutContentProps:Mm,NLayoutContent:Ene,NLayoutHeader:Nne,layoutHeaderProps:wT,NLayoutFooter:jne,layoutFooterProps:CT,NLayoutSider:Kne,layoutSiderProps:ST,NRow:tT,rowProps:xh,NCol:nT,colProps:wh,NLegacyTransfer:ere,legacyTransferProps:_T,NList:nre,listProps:kT,NListItem:rre,NLoadingBarProvider:OT,loadingBarProviderProps:TT,useLoadingBar:zT,NLog:cre,logProps:IT,NMenu:yre,menuProps:LT,NMention:Cre,mentionProps:NT,NMessageProvider:WT,messageProviderProps:UT,useMessage:KT,NModal:F$,modalProps:I$,NNotificationProvider:XT,notificationProviderProps:YT,useNotification:GT,NPageHeader:Are,pageHeaderProps:ZT,NPagination:UP,paginationProps:VP,NPopconfirm:Lre,popconfirmProps:eO,NPopover:Wa,popoverProps:z2,NPopselect:EP,popselectProps:BP,NProgress:nO,progressProps:tO,NRadio:h0,radioProps:gh,NRadioGroup:QP,radioGroupProps:ZP,NRadioButton:xG,radioButtonProps:yG,NRate:Yre,rateProps:rO,NResult:toe,resultProps:oO,NScrollbar:roe,scrollbarProps:iO,NSelect:HP,selectProps:NP,NSkeleton:loe,skeletonProps:aO,NSlider:doe,sliderProps:lO,NSpace:U$,spaceProps:V$,NSpin:hoe,spinProps:sO,NStatistic:poe,statisticProps:cO,NSteps:yoe,stepsProps:dO,NStep:xoe,stepProps:fO,NSwitch:Coe,switchProps:hO,NTable:_oe,tableProps:vO,NTh:koe,NTr:Roe,NTd:Poe,NThead:$oe,NTbody:Toe,NTabs:Moe,tabsProps:gO,NTabPane:Ooe,tabPaneProps:F0,NTab:Bf,tabProps:pO,NTag:ws,tagProps:F2,NThing:Foe,thingProps:mO,NTime:Doe,timeProps:bO,NTimePicker:Af,timePickerProps:x$,NTimeline:Boe,timelineProps:yO,NTimelineItem:Eoe,timelineItemProps:wO,NTooltip:ph,tooltipProps:KP,NTransfer:Hoe,transferProps:CO,NTree:TO,treeProps:$O,NTreeSelect:eie,treeSelectProps:OO,NH1:nie,NH2:rie,NH3:oie,NH4:iie,NH5:aie,NH6:lie,h1Props:oa,h2Props:oa,h3Props:oa,h4Props:oa,h5Props:oa,h6Props:oa,NA:cie,aProps:zO,NP:uie,pProps:MO,NBlockquote:hie,blockquoteProps:IO,NHr:pie,NUl:gie,ulProps:DO,NOl:mie,olProps:AO,NLi:bie,NText:xie,textProps:BO,NUpload:Nie,uploadProps:WO,NUploadDragger:LO,NUploadTrigger:A0,NUploadFileList:VO,NWatermark:Vie,watermarkProps:KO,createDiscreteApi:qie,NEquation:Yie,equationProps:qO},Symbol.toStringTag,{value:"Module"})),Xie="2.34.3";function Gie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Xie,componentPrefix:e,install:o}}const YO=Gie({components:Object.keys(DS).map(e=>DS[e])}),Zie=YO;YO.install;const XO=F_(QF);XO.use(Zie);XO.mount("#app")});export default Qie(); diff --git a/docs/assets/index.1ffcbe9f.js b/docs/assets/index.1ffcbe9f.js deleted file mode 100644 index 2255f97..0000000 --- a/docs/assets/index.1ffcbe9f.js +++ /dev/null @@ -1,6857 +0,0 @@ -var X5=Object.defineProperty;var Z5=(e,t,n)=>t in e?X5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var jt=(e,t,n)=>(Z5(e,typeof t!="symbol"?t+"":t,n),n);var cce=Q5((_r,Rr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Wm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function ac(e){if($t(e)){const t={};for(let n=0;n{if(n){const r=n.split(e3);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Um(e){let t="";if(Mn(e))t=e;else if($t(e))for(let n=0;n{},i3=()=>!1,a3=/^on[^a-z]/,Yf=e=>a3.test(e),Km=e=>e.startsWith("onUpdate:"),Vn=Object.assign,qm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l3=Object.prototype.hasOwnProperty,Wt=(e,t)=>l3.call(e,t),$t=Array.isArray,gs=e=>Gf(e)==="[object Map]",s3=e=>Gf(e)==="[object Set]",zt=e=>typeof e=="function",Mn=e=>typeof e=="string",Ym=e=>typeof e=="symbol",mn=e=>e!==null&&typeof e=="object",XS=e=>mn(e)&&zt(e.then)&&zt(e.catch),c3=Object.prototype.toString,Gf=e=>c3.call(e),d3=e=>Gf(e).slice(8,-1),u3=e=>Gf(e)==="[object Object]",Gm=e=>Mn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rd=Wm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},f3=/-(\w)/g,Po=Xf(e=>e.replace(f3,(t,n)=>n?n.toUpperCase():"")),h3=/\B([A-Z])/g,Fl=Xf(e=>e.replace(h3,"-$1").toLowerCase()),Zf=Xf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wh=Xf(e=>e?`on${Zf(e)}`:""),Ds=(e,t)=>!Object.is(e,t),Uh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},p3=e=>{const t=parseFloat(e);return isNaN(t)?e:t},v3=e=>{const t=Mn(e)?Number(e):NaN;return isNaN(t)?e:t};let X0;const g3=()=>X0||(X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Jr;class m3{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Jr,!t&&Jr&&(this.index=(Jr.scopes||(Jr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Jr;try{return Jr=this,t()}finally{Jr=n}}}on(){Jr=this}off(){Jr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ZS=e=>(e.w&Oi)>0,QS=e=>(e.n&Oi)>0,x3=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":$t(e)?Gm(n)&&l.push(a.get("length")):(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"delete":$t(e)||(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"set":gs(e)&&l.push(a.get(ya));break}if(l.length===1)l[0]&&rv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);rv(Xm(s))}}function rv(e,t){const n=$t(e)?e:[...e];for(const r of n)r.computed&&Q0(r);for(const r of n)r.computed||Q0(r)}function Q0(e,t){(e!==no||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function C3(e,t){var n;return(n=Ru.get(e))===null||n===void 0?void 0:n.get(t)}const S3=Wm("__proto__,__v_isRef,__isVue"),tk=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ym)),k3=Qm(),_3=Qm(!1,!0),R3=Qm(!0),J0=P3();function P3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Dt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Al();const r=Dt(this)[t].apply(this,n);return Bl(),r}}),e}function $3(e){const t=Dt(this);return pr(t,"has",e),t.hasOwnProperty(e)}function Qm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?W3:ak:t?ik:ok).get(r))return r;const a=$t(r);if(!e){if(a&&Wt(J0,o))return Reflect.get(J0,o,i);if(o==="hasOwnProperty")return $3}const l=Reflect.get(r,o,i);return(Ym(o)?tk.has(o):S3(o))||(e||pr(r,"get",o),t)?l:qn(l)?a&&Gm(o)?l:l.value:mn(l)?e?$o(l):ji(l):l}}const T3=nk(),O3=nk(!0);function nk(e=!1){return function(n,r,o,i){let a=n[r];if(Rl(a)&&qn(a)&&!qn(o))return!1;if(!e&&(!Pu(o)&&!Rl(o)&&(a=Dt(a),o=Dt(o)),!$t(n)&&qn(a)&&!qn(o)))return a.value=o,!0;const l=$t(n)&&Gm(r)?Number(r)e,Qf=e=>Reflect.getPrototypeOf(e);function zc(e,t,n=!1,r=!1){e=e.__v_raw;const o=Dt(e),i=Dt(t);n||(t!==i&&pr(o,"get",t),pr(o,"get",i));const{has:a}=Qf(o),l=r?Jm:n?nb:Is;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function Mc(e,t=!1){const n=this.__v_raw,r=Dt(n),o=Dt(e);return t||(e!==o&&pr(r,"has",e),pr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dc(e,t=!1){return e=e.__v_raw,!t&&pr(Dt(e),"iterate",ya),Reflect.get(e,"size",e)}function ey(e){e=Dt(e);const t=Dt(this);return Qf(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function ty(e,t){t=Dt(t);const n=Dt(this),{has:r,get:o}=Qf(n);let i=r.call(n,e);i||(e=Dt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ds(t,a)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function ny(e){const t=Dt(this),{has:n,get:r}=Qf(t);let o=n.call(t,e);o||(e=Dt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function ry(){const e=Dt(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Ic(e,t){return function(r,o){const i=this,a=i.__v_raw,l=Dt(a),s=t?Jm:e?nb:Is;return!e&&pr(l,"iterate",ya),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function Fc(e,t,n){return function(...r){const o=this.__v_raw,i=Dt(o),a=gs(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?Jm:t?nb:Is;return!t&&pr(i,"iterate",s?nv:ya),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ci(e){return function(...t){return e==="delete"?!1:this}}function A3(){const e={get(i){return zc(this,i)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!1)},t={get(i){return zc(this,i,!1,!0)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!0)},n={get(i){return zc(this,i,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!1)},r={get(i){return zc(this,i,!0,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Fc(i,!1,!1),n[i]=Fc(i,!0,!1),t[i]=Fc(i,!1,!0),r[i]=Fc(i,!0,!0)}),[e,n,t,r]}const[B3,E3,L3,N3]=A3();function eb(e,t){const n=t?e?N3:L3:e?E3:B3;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Wt(n,o)&&o in r?n:r,o,i)}const H3={get:eb(!1,!1)},j3={get:eb(!1,!0)},V3={get:eb(!0,!1)},ok=new WeakMap,ik=new WeakMap,ak=new WeakMap,W3=new WeakMap;function U3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function K3(e){return e.__v_skip||!Object.isExtensible(e)?0:U3(d3(e))}function ji(e){return Rl(e)?e:tb(e,!1,rk,H3,ok)}function q3(e){return tb(e,!1,F3,j3,ik)}function $o(e){return tb(e,!0,I3,V3,ak)}function tb(e,t,n,r,o){if(!mn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=K3(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function xa(e){return Rl(e)?xa(e.__v_raw):!!(e&&e.__v_isReactive)}function Rl(e){return!!(e&&e.__v_isReadonly)}function Pu(e){return!!(e&&e.__v_isShallow)}function wa(e){return xa(e)||Rl(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function $u(e){return _u(e,"__v_skip",!0),e}const Is=e=>mn(e)?ji(e):e,nb=e=>mn(e)?$o(e):e;function lk(e){Si&&no&&(e=Dt(e),ek(e.dep||(e.dep=Xm())))}function sk(e,t){e=Dt(e);const n=e.dep;n&&rv(n)}function qn(e){return!!(e&&e.__v_isRef===!0)}function F(e){return dk(e,!1)}function ck(e){return dk(e,!0)}function dk(e,t){return qn(e)?e:new Y3(e,t)}class Y3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Dt(t),this._value=n?t:Is(t)}get value(){return lk(this),this._value}set value(t){const n=this.__v_isShallow||Pu(t)||Rl(t);t=n?t:Dt(t),Ds(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Is(t),sk(this))}}function ov(e){return qn(e)?e.value:e}const G3={get:(e,t,n)=>ov(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qn(o)&&!qn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function uk(e){return xa(e)?e:new Proxy(e,G3)}class X3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return C3(Dt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return qn(r)?r:new X3(e,t,n)}var fk;class Z3{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[fk]=!1,this._dirty=!0,this.effect=new Zm(t,()=>{this._dirty||(this._dirty=!0,sk(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Dt(this);return lk(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}fk="__v_isReadonly";function Q3(e,t,n=!1){let r,o;const i=zt(e);return i?(r=e,o=ao):(r=e.get,o=e.set),new Z3(r,o,i||!o,n)}function ki(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Jf(i,t,n)}return o}function Lr(e,t,n,r){if(zt(e)){const i=ki(e,t,n,r);return i&&XS(i)&&i.catch(a=>{Jf(a,t,n)}),i}const o=[];for(let i=0;i>>1;As(nr[r])xo&&nr.splice(t,1)}function nM(e){$t(e)?xl.push(...e):(!jo||!jo.includes(e,e.allowRecurse?fa+1:fa))&&xl.push(e),pk()}function oy(e,t=Fs?xo+1:0){for(;tAs(n)-As(r)),fa=0;fae.id==null?1/0:e.id,rM=(e,t)=>{const n=As(e)-As(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gk(e){iv=!1,Fs=!0,nr.sort(rM);const t=ao;try{for(xo=0;xoMn(p)?p.trim():p)),f&&(o=n.map(p3))}let l,s=r[l=Wh(t)]||r[l=Wh(Po(t))];!s&&i&&(s=r[l=Wh(Fl(t))]),s&&Lr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Lr(c,e,6,o)}}function mk(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!zt(e)){const s=c=>{const d=mk(c,t,!0);d&&(l=!0,Vn(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(mn(e)&&r.set(e,null),null):($t(i)?i.forEach(s=>a[s]=null):Vn(a,i),mn(e)&&r.set(e,a),a)}function eh(e,t){return!e||!Yf(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,Fl(t))||Wt(e,t))}let Yn=null,bk=null;function Tu(e){const t=Yn;return Yn=e,bk=e&&e.type.__scopeId||null,t}function Pd(e,t=Yn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&vy(-1);const i=Tu(t);let a;try{a=e(...o)}finally{Tu(i),r._d&&vy(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:p,ctx:v,inheritAttrs:b}=e;let g,m;const y=Tu(e);try{if(n.shapeFlag&4){const x=o||r;g=bo(d.call(x,x,f,i,p,h,v)),m=s}else{const x=t;g=bo(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),m=t.props?s:iM(s)}}catch(x){xs.length=0,Jf(x,e,1),g=An(Pr)}let C=g;if(m&&b!==!1){const x=Object.keys(m),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Km)&&(m=aM(m,a)),C=ar(C,m))}return n.dirs&&(C=ar(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),g=C,Tu(y),g}const iM=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yf(n))&&((t||(t={}))[n]=e[n]);return t},aM=(e,t)=>{const n={};for(const r in e)(!Km(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lM(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?iy(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function dM(e,t){t&&t.pendingBranch?$t(e)?t.effects.push(...e):t.effects.push(e):nM(e)}function ot(e,t){if(_n){let n=_n.provides;const r=_n.parent&&_n.parent.provides;r===n&&(n=_n.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=_n||Yn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&zt(t)?t.call(r.proxy):t}}function At(e,t){return ib(e,null,t)}const Ac={};function it(e,t,n){return ib(e,t,n)}function ib(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=dn){const l=y3()===(_n==null?void 0:_n.scope)?_n:null;let s,c=!1,d=!1;if(qn(e)?(s=()=>e.value,c=Pu(e)):xa(e)?(s=()=>e,r=!0):$t(e)?(d=!0,c=e.some(C=>xa(C)||Pu(C)),s=()=>e.map(C=>{if(qn(C))return C.value;if(xa(C))return va(C);if(zt(C))return ki(C,l,2)})):zt(e)?t?s=()=>ki(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Lr(e,l,3,[h])}:s=ao,t&&r){const C=s;s=()=>va(C())}let f,h=C=>{f=m.onStop=()=>{ki(C,l,4)}},p;if(Hs)if(h=ao,t?n&&Lr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=e4();p=C.__watcherHandles||(C.__watcherHandles=[])}else return ao;let v=d?new Array(e.length).fill(Ac):Ac;const b=()=>{if(!!m.active)if(t){const C=m.run();(r||c||(d?C.some((x,w)=>Ds(x,v[w])):Ds(C,v)))&&(f&&f(),Lr(t,l,3,[C,v===Ac?void 0:d&&v[0]===Ac?[]:v,h]),v=C)}else m.run()};b.allowRecurse=!!t;let g;o==="sync"?g=b:o==="post"?g=()=>dr(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>ob(b));const m=new Zm(s,g);t?n?b():v=m.run():o==="post"?dr(m.run.bind(m),l&&l.suspense):m.run();const y=()=>{m.stop(),l&&l.scope&&qm(l.scope.effects,m)};return p&&p.push(y),y}function uM(e,t,n){const r=this.proxy,o=Mn(e)?e.includes(".")?yk(r,e):()=>r[e]:e.bind(r,r);let i;zt(t)?i=t:(i=t.handler,n=t);const a=_n;Pl(this);const l=ib(o,i.bind(r),n);return a?Pl(a):Ca(),l}function yk(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{va(n,t)});else if(u3(e))for(const n in e)va(e[n],t);return e}function xk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return It(()=>{e.isMounted=!0}),Bt(()=>{e.isUnmounting=!0}),e}const Mr=[Function,Array],fM={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mr,onEnter:Mr,onAfterEnter:Mr,onEnterCancelled:Mr,onBeforeLeave:Mr,onLeave:Mr,onAfterLeave:Mr,onLeaveCancelled:Mr,onBeforeAppear:Mr,onAppear:Mr,onAfterAppear:Mr,onAppearCancelled:Mr},setup(e,{slots:t}){const n=Jo(),r=xk();let o;return()=>{const i=t.default&&ab(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==Pr){a=b;break}}const l=Dt(e),{mode:s}=l;if(r.isLeaving)return qh(a);const c=ay(a);if(!c)return qh(a);const d=Bs(c,l,r,n);Es(c,d);const f=n.subTree,h=f&&ay(f);let p=!1;const{getTransitionKey:v}=c.type;if(v){const b=v();o===void 0?o=b:b!==o&&(o=b,p=!0)}if(h&&h.type!==Pr&&(!ha(c,h)||p)){const b=Bs(h,l,r,n);if(Es(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},qh(a);s==="in-out"&&c.type!==Pr&&(b.delayLeave=(g,m,y)=>{const C=Ck(r,h);C[String(h.key)]=h,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},wk=fM;function Ck(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Bs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:b,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,C=String(e.key),x=Ck(n,e),w=(T,$)=>{T&&Lr(T,r,9,$)},_=(T,$)=>{const R=$[1];w(T,$),$t(T)?T.every(D=>D.length<=1)&&R():T.length<=1&&R()},k={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&ha(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,D=d;if(!n.isMounted)if(o)$=g||s,R=m||c,D=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(D,[T]):w(R,[T]),k.delayedLeave&&k.delayedLeave(),T._enterCb=void 0)};$?_($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let D=!1;const z=T._leaveCb=A=>{D||(D=!0,$(),A?w(v,[T]):w(p,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?_(h,[T,z]):z()},clone(T){return Bs(T,t,n,r)}};return k}function qh(e){if(th(e))return e=ar(e),e.children=null,e}function ay(e){return th(e)?e.children?e.children[0]:void 0:e}function Es(e,t){e.shapeFlag&6&&e.component?Es(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ab(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,th=e=>e.type.__isKeepAlive;function lb(e,t){Sk(e,"a",t)}function lc(e,t){Sk(e,"da",t)}function Sk(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(nh(t,r,n),n){let o=n.parent;for(;o&&o.parent;)th(o.parent.vnode)&&hM(r,t,n,o),o=o.parent}}function hM(e,t,n,r){const o=nh(t,e,r,!0);sc(()=>{qm(r[t],o)},n)}function nh(e,t,n=_n,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Al(),Pl(n);const l=Lr(t,n,e,a);return Ca(),Bl(),l});return r?o.unshift(i):o.push(i),i}}const Zo=e=>(t,n=_n)=>(!Hs||e==="sp")&&nh(e,(...r)=>t(...r),n),Qo=Zo("bm"),It=Zo("m"),sb=Zo("bu"),cb=Zo("u"),Bt=Zo("bum"),sc=Zo("um"),pM=Zo("sp"),vM=Zo("rtg"),gM=Zo("rtc");function mM(e,t=_n){nh("ec",e,t)}function un(e,t){const n=Yn;if(n===null)return e;const r=ih(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lNs(t)?!(t.type===Pr||t.type===Ot&&!_k(t.children)):!0)?e:null}const av=e=>e?Bk(e)?ih(e)||e.proxy:av(e.parent):null,bs=Vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>av(e.parent),$root:e=>av(e.root),$emit:e=>e.emit,$options:e=>ub(e),$forceUpdate:e=>e.f||(e.f=()=>ob(e.update)),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>uM.bind(e)}),Yh=(e,t)=>e!==dn&&!e.__isScriptSetup&&Wt(e,t),wM={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Yh(r,t))return a[t]=1,r[t];if(o!==dn&&Wt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Wt(c,t))return a[t]=3,i[t];if(n!==dn&&Wt(n,t))return a[t]=4,n[t];lv&&(a[t]=0)}}const d=bs[t];let f,h;if(d)return t==="$attrs"&&pr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==dn&&Wt(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Wt(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Yh(o,t)?(o[t]=n,!0):r!==dn&&Wt(r,t)?(r[t]=n,!0):Wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==dn&&Wt(e,a)||Yh(t,a)||(l=i[0])&&Wt(l,a)||Wt(r,a)||Wt(bs,a)||Wt(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let lv=!0;function CM(e){const t=ub(e),n=e.proxy,r=e.ctx;lv=!1,t.beforeCreate&&sy(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:v,activated:b,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:_,renderTriggered:k,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:D,components:z,directives:A,filters:L}=t;if(c&&SM(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const W in a){const K=a[W];zt(K)&&(r[W]=K.bind(n))}if(o){const W=o.call(n,n);mn(W)&&(e.data=ji(W))}if(lv=!0,i)for(const W in i){const K=i[W],Q=zt(K)?K.bind(n,n):zt(K.get)?K.get.bind(n,n):ao,V=!zt(K)&&zt(K.set)?K.set.bind(n):ao,re=P({get:Q,set:V});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const W in l)Rk(l[W],r,n,W);if(s){const W=zt(s)?s.call(n):s;Reflect.ownKeys(W).forEach(K=>{ot(K,W[K])})}d&&sy(d,e,"c");function E(W,K){$t(K)?K.forEach(Q=>W(Q.bind(n))):K&&W(K.bind(n))}if(E(Qo,f),E(It,h),E(sb,p),E(cb,v),E(lb,b),E(lc,g),E(mM,T),E(gM,_),E(vM,k),E(Bt,y),E(sc,x),E(pM,$),$t(R))if(R.length){const W=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(W,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===ao&&(e.render=w),D!=null&&(e.inheritAttrs=D),z&&(e.components=z),A&&(e.directives=A)}function SM(e,t,n=ao,r=!1){$t(e)&&(e=sv(e));for(const o in e){const i=e[o];let a;mn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),qn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function sy(e,t,n){Lr($t(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rk(e,t,n,r){const o=r.includes(".")?yk(n,r):()=>n[r];if(Mn(e)){const i=t[e];zt(i)&&it(o,i)}else if(zt(e))it(o,e.bind(n));else if(mn(e))if($t(e))e.forEach(i=>Rk(i,t,n,r));else{const i=zt(e.handler)?e.handler.bind(n):t[e.handler];zt(i)&&it(o,i,e)}}function ub(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>Ou(s,c,a,!0)),Ou(s,t,a)),mn(t)&&i.set(t,s),s}function Ou(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ou(e,i,n,!0),o&&o.forEach(a=>Ou(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=kM[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const kM={data:cy,props:la,emits:la,methods:la,computed:la,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:la,directives:la,watch:RM,provide:cy,inject:_M};function cy(e,t){return t?e?function(){return Vn(zt(e)?e.call(this,this):e,zt(t)?t.call(this,this):t)}:t:e}function _M(e,t){return la(sv(e),sv(t))}function sv(e){if($t(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,p]=$k(f,t,!0);Vn(a,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return mn(e)&&r.set(e,yl),yl;if($t(i))for(let d=0;d-1,p[1]=b<0||v-1||Wt(p,"default"))&&l.push(f)}}}const c=[a,l];return mn(e)&&r.set(e,c),c}function dy(e){return e[0]!=="$"}function uy(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function fy(e,t){return uy(e)===uy(t)}function hy(e,t){return $t(t)?t.findIndex(n=>fy(n,e)):zt(t)&&fy(t,e)?0:-1}const Tk=e=>e[0]==="_"||e==="$stable",fb=e=>$t(e)?e.map(bo):[bo(e)],TM=(e,t,n)=>{if(t._n)return t;const r=Pd((...o)=>fb(t(...o)),n);return r._c=!1,r},Ok=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Tk(o))continue;const i=e[o];if(zt(i))t[o]=TM(o,i,r);else if(i!=null){const a=fb(i);t[o]=()=>a}}},zk=(e,t)=>{const n=fb(t);e.slots.default=()=>n},OM=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Dt(t),_u(t,"_",n)):Ok(t,e.slots={})}else e.slots={},t&&zk(e,t);_u(e.slots,oh,1)},zM=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=dn;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Vn(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Ok(t,o)),a=t}else t&&(zk(e,t),a={default:1});if(i)for(const l in o)!Tk(l)&&!(l in a)&&delete o[l]};function Mk(){return{app:null,config:{isNativeTag:i3,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let MM=0;function DM(e,t){return function(r,o=null){zt(r)||(r=Object.assign({},r)),o!=null&&!mn(o)&&(o=null);const i=Mk(),a=new Set;let l=!1;const s=i.app={_uid:MM++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:Lk,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&zt(c.install)?(a.add(c),c.install(s,...d)):zt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=An(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,ih(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function dv(e,t,n,r,o=!1){if($t(e)){e.forEach((h,p)=>dv(h,t&&($t(t)?t[p]:t),n,r,o));return}if(ms(r)&&!o)return;const i=r.shapeFlag&4?ih(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===dn?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Mn(c)?(d[c]=null,Wt(f,c)&&(f[c]=null)):qn(c)&&(c.value=null)),zt(s))ki(s,l,12,[a,d]);else{const h=Mn(s),p=qn(s);if(h||p){const v=()=>{if(e.f){const b=h?Wt(f,s)?f[s]:d[s]:s.value;o?$t(b)&&qm(b,i):$t(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Wt(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Wt(f,s)&&(f[s]=a)):p&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,dr(v,n)):v()}}}const dr=dM;function IM(e){return FM(e)}function FM(e,t){const n=g3();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=ao,insertStaticContent:v}=e,b=(H,U,Y,ce=null,G=null,B=null,N=!1,te=null,pe=!!U.dynamicChildren)=>{if(H===U)return;H&&!ha(H,U)&&(ce=me(H),ee(H,G,B,!0),H=null),U.patchFlag===-2&&(pe=!1,U.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=U;switch(Z){case rh:g(H,U,Y,ce);break;case Pr:m(H,U,Y,ce);break;case Gh:H==null&&y(U,Y,ce,N);break;case Ot:z(H,U,Y,ce,G,B,N,te,pe);break;default:ne&1?w(H,U,Y,ce,G,B,N,te,pe):ne&6?A(H,U,Y,ce,G,B,N,te,pe):(ne&64||ne&128)&&Z.process(H,U,Y,ce,G,B,N,te,pe,_e)}fe!=null&&G&&dv(fe,H&&H.ref,B,U||H,!U)},g=(H,U,Y,ce)=>{if(H==null)r(U.el=l(U.children),Y,ce);else{const G=U.el=H.el;U.children!==H.children&&c(G,U.children)}},m=(H,U,Y,ce)=>{H==null?r(U.el=s(U.children||""),Y,ce):U.el=H.el},y=(H,U,Y,ce)=>{[H.el,H.anchor]=v(H.children,U,Y,ce,H.el,H.anchor)},C=({el:H,anchor:U},Y,ce)=>{let G;for(;H&&H!==U;)G=h(H),r(H,Y,ce),H=G;r(U,Y,ce)},x=({el:H,anchor:U})=>{let Y;for(;H&&H!==U;)Y=h(H),o(H),H=Y;o(U)},w=(H,U,Y,ce,G,B,N,te,pe)=>{N=N||U.type==="svg",H==null?_(U,Y,ce,G,B,N,te,pe):$(H,U,G,B,N,te,pe)},_=(H,U,Y,ce,G,B,N,te)=>{let pe,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(pe=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(pe,H.children):ge&16&&T(H.children,pe,null,ce,G,B&&fe!=="foreignObject",N,te),Ae&&Yi(H,null,ce,"created"),k(pe,H,H.scopeId,N,ce),ne){for(const Ye in ne)Ye!=="value"&&!Rd(Ye)&&i(pe,Ye,null,ne[Ye],B,H.children,ce,G,we);"value"in ne&&i(pe,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&fo(Z,ce,H)}Ae&&Yi(H,null,ce,"beforeMount");const qe=(!G||G&&!G.pendingBranch)&&Pe&&!Pe.persisted;qe&&Pe.beforeEnter(pe),r(pe,U,Y),((Z=ne&&ne.onVnodeMounted)||qe||Ae)&&dr(()=>{Z&&fo(Z,ce,H),qe&&Pe.enter(pe),Ae&&Yi(H,null,ce,"mounted")},G)},k=(H,U,Y,ce,G)=>{if(Y&&p(H,Y),ce)for(let B=0;B{for(let Z=pe;Z{const te=U.el=H.el;let{patchFlag:pe,dynamicChildren:Z,dirs:fe}=U;pe|=H.patchFlag&16;const ne=H.props||dn,ge=U.props||dn;let Pe;Y&&Gi(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"beforeUpdate"),Y&&Gi(Y,!0);const Ae=G&&U.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,U,te,null,Y,ce,Ae,B,!1),pe>0){if(pe&16)D(te,U,ne,ge,Y,ce,G);else if(pe&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,G),pe&4&&i(te,"style",ne.style,ge.style,G),pe&8){const qe=U.dynamicProps;for(let Ye=0;Ye{Pe&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"updated")},ce)},R=(H,U,Y,ce,G,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==dn)for(const te in Y)!Rd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,U.children,G,B,we);for(const te in ce){if(Rd(te))continue;const pe=ce[te],Z=Y[te];pe!==Z&&te!=="value"&&i(H,te,Z,pe,N,U.children,G,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,U,Y,ce,G,B,N,te,pe)=>{const Z=U.el=H?H.el:l(""),fe=U.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=U;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(U.children,Y,fe,G,B,N,te,pe)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,G,B,N,te),(U.key!=null||G&&U===G.subTree)&&hb(H,U,!0)):K(H,U,Y,fe,G,B,N,te,pe)},A=(H,U,Y,ce,G,B,N,te,pe)=>{U.slotScopeIds=te,H==null?U.shapeFlag&512?G.ctx.activate(U,Y,ce,N,pe):L(U,Y,ce,G,B,N,pe):j(H,U,pe)},L=(H,U,Y,ce,G,B,N)=>{const te=H.component=KM(H,ce,G);if(th(H)&&(te.ctx.renderer=_e),qM(te),te.asyncDep){if(G&&G.registerDep(te,E),!H.el){const pe=te.subTree=An(Pr);m(null,pe,U,Y)}return}E(te,H,U,Y,G,B,N)},j=(H,U,Y)=>{const ce=U.component=H.component;if(lM(H,U,Y))if(ce.asyncDep&&!ce.asyncResolved){W(ce,U,Y);return}else ce.next=U,tM(ce.update),ce.update();else U.el=H.el,ce.vnode=U},E=(H,U,Y,ce,G,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,qe=fe,Ye;Gi(H,!1),fe?(fe.el=Ae.el,W(H,fe,N)):fe=Ae,ne&&Uh(ne),(Ye=fe.props&&fe.props.onVnodeBeforeUpdate)&&fo(Ye,Pe,fe,Ae),Gi(H,!0);const ft=Kh(H),ht=H.subTree;H.subTree=ft,b(ht,ft,f(ht.el),me(ht),H,G,B),fe.el=ft.el,qe===null&&sM(H,ft.el),ge&&dr(ge,G),(Ye=fe.props&&fe.props.onVnodeUpdated)&&dr(()=>fo(Ye,Pe,fe,Ae),G)}else{let fe;const{el:ne,props:ge}=U,{bm:Pe,m:Ae,parent:qe}=H,Ye=ms(U);if(Gi(H,!1),Pe&&Uh(Pe),!Ye&&(fe=ge&&ge.onVnodeBeforeMount)&&fo(fe,qe,U),Gi(H,!0),ne&&Me){const ft=()=>{H.subTree=Kh(H),Me(ne,H.subTree,H,G,null)};Ye?U.type.__asyncLoader().then(()=>!H.isUnmounted&&ft()):ft()}else{const ft=H.subTree=Kh(H);b(null,ft,Y,ce,H,G,B),U.el=ft.el}if(Ae&&dr(Ae,G),!Ye&&(fe=ge&&ge.onVnodeMounted)){const ft=U;dr(()=>fo(fe,qe,ft),G)}(U.shapeFlag&256||qe&&ms(qe.vnode)&&qe.vnode.shapeFlag&256)&&H.a&&dr(H.a,G),H.isMounted=!0,U=Y=ce=null}},pe=H.effect=new Zm(te,()=>ob(Z),H.scope),Z=H.update=()=>pe.run();Z.id=H.uid,Gi(H,!0),Z()},W=(H,U,Y)=>{U.component=H;const ce=H.vnode.props;H.vnode=U,H.next=null,$M(H,U.props,ce,Y),zM(H,U.children,Y),Al(),oy(),Bl()},K=(H,U,Y,ce,G,B,N,te,pe=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=U.children,{patchFlag:ge,shapeFlag:Pe}=U;if(ge>0){if(ge&128){V(Z,ne,Y,ce,G,B,N,te,pe);return}else if(ge&256){Q(Z,ne,Y,ce,G,B,N,te,pe);return}}Pe&8?(fe&16&&we(Z,G,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,G,B,N,te,pe):we(Z,G,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,G,B,N,te,pe))},Q=(H,U,Y,ce,G,B,N,te,pe)=>{H=H||yl,U=U||yl;const Z=H.length,fe=U.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,G,B,!0,!1,ne):T(U,Y,ce,G,B,N,te,pe,ne)},V=(H,U,Y,ce,G,B,N,te,pe)=>{let Z=0;const fe=U.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=U[Z]=pe?gi(U[Z]):bo(U[Z]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=U[ge]=pe?gi(U[ge]):bo(U[ge]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],G,B,!0),Z++;else{const Pe=Z,Ae=Z,qe=new Map;for(Z=Ae;Z<=ge;Z++){const Ke=U[Z]=pe?gi(U[Z]):bo(U[Z]);Ke.key!=null&&qe.set(Ke.key,Z)}let Ye,ft=0;const ht=ge-Ae+1;let vt=!1,Ve=0;const Xe=new Array(ht);for(Z=0;Z=ht){ee(Ke,G,B,!0);continue}let X;if(Ke.key!=null)X=qe.get(Ke.key);else for(Ye=Ae;Ye<=ge;Ye++)if(Xe[Ye-Ae]===0&&ha(Ke,U[Ye])){X=Ye;break}X===void 0?ee(Ke,G,B,!0):(Xe[X-Ae]=Z+1,X>=Ve?Ve=X:vt=!0,b(Ke,U[X],Y,null,G,B,N,te,pe),ft++)}const We=vt?AM(Xe):yl;for(Ye=We.length-1,Z=ht-1;Z>=0;Z--){const Ke=Ae+Z,X=U[Ke],q=Ke+1{const{el:B,type:N,transition:te,children:pe,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,U,Y,ce);return}if(Z&128){H.suspense.move(U,Y,ce);return}if(Z&64){N.move(H,U,Y,_e);return}if(N===Ot){r(B,U,Y);for(let ne=0;nete.enter(B),G);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,U,Y),qe=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,qe):qe()}else r(B,U,Y)},ee=(H,U,Y,ce=!1,G=!1)=>{const{type:B,props:N,ref:te,children:pe,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&dv(te,null,Y,H,!0),fe&256){U.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ms(H);let qe;if(Ae&&(qe=N&&N.onVnodeBeforeUnmount)&&fo(qe,U,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Yi(H,null,U,"beforeUnmount"),fe&64?H.type.remove(H,U,Y,G,_e,ce):Z&&(B!==Ot||ne>0&&ne&64)?we(Z,U,Y,!1,!0):(B===Ot&&ne&384||!G&&fe&16)&&we(pe,U,Y),ce&&ue(H)}(Ae&&(qe=N&&N.onVnodeUnmounted)||Pe)&&dr(()=>{qe&&fo(qe,U,H),Pe&&Yi(H,null,U,"unmounted")},Y)},ue=H=>{const{type:U,el:Y,anchor:ce,transition:G}=H;if(U===Ot){de(Y,ce);return}if(U===Gh){x(H);return}const B=()=>{o(Y),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(H.shapeFlag&1&&G&&!G.persisted){const{leave:N,delayLeave:te}=G,pe=()=>N(Y,B);te?te(H.el,B,pe):pe()}else B()},de=(H,U)=>{let Y;for(;H!==U;)Y=h(H),o(H),H=Y;o(U)},Ce=(H,U,Y)=>{const{bum:ce,scope:G,update:B,subTree:N,um:te}=H;ce&&Uh(ce),G.stop(),B&&(B.active=!1,ee(N,H,U,Y)),te&&dr(te,U),dr(()=>{H.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},we=(H,U,Y,ce=!1,G=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,U,Y)=>{H==null?U._vnode&&ee(U._vnode,null,null,!0):b(U._vnode||null,H,U,null,null,null,Y),oy(),vk(),U._vnode=H},_e={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let ve,Me;return t&&([ve,Me]=t(_e)),{render:Oe,hydrate:ve,createApp:DM(Oe,ve)}}function Gi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hb(e,t,n=!1){const r=e.children,o=t.children;if($t(r)&&$t(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const BM=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),py=e=>typeof SVGElement<"u"&&e instanceof SVGElement,uv=(e,t)=>{const n=e&&e.to;return Mn(n)?t?t(n):null:n},EM={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:v,createText:b,createComment:g}}=c,m=ys(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),_=t.anchor=b("");p(w,n,r),p(_,n,r);const k=t.target=uv(t.props,v),T=t.targetAnchor=b("");k&&(p(T,k),a=a||py(k));const $=(R,D)=>{y&16&&d(C,R,D,o,i,a,l,s)};m?$(n,_):k&&$(k,T)}else{t.el=e.el;const w=t.anchor=e.anchor,_=t.target=e.target,k=t.targetAnchor=e.targetAnchor,T=ys(e.props),$=T?n:_,R=T?w:k;if(a=a||py(_),x?(h(e.dynamicChildren,x,$,o,i,a,l),hb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),m)T||Ec(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=uv(t.props,v);D&&Ec(t,D,null,c,0)}else T&&Ec(t,_,k,c,1)}Dk(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ys(h))&&(i(c),l&16))for(let p=0;p0?ro||yl:null,NM(),Ls>0&&ro&&ro.push(e),e}function Fk(e,t,n,r,o){return HM(An(e,t,n,r,o,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function ha(e,t){return e.type===t.type&&e.key===t.key}const oh="__vInternal",Ak=({key:e})=>e!=null?e:null,$d=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mn(e)||qn(e)||zt(e)?{i:Yn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=e===Ot?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ak(t),ref:t&&$d(t),scopeId:bk,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Yn};return l?(pb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Mn(n)?8:16),Ls>0&&!a&&ro&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ro.push(s),s}const An=jM;function jM(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===bM)&&(e=Pr),Ns(e)){const l=ar(e,t,!0);return n&&pb(l,n),Ls>0&&!i&&ro&&(l.shapeFlag&6?ro[ro.indexOf(e)]=l:ro.push(l)),l.patchFlag|=-2,l}if(QM(e)&&(e=e.__vccOpts),t){t=VM(t);let{class:l,style:s}=t;l&&!Mn(l)&&(t.class=Um(l)),mn(s)&&(wa(s)&&!$t(s)&&(s=Vn({},s)),t.style=ac(s))}const a=Mn(e)?1:cM(e)?128:BM(e)?64:mn(e)?4:zt(e)?2:0;return oo(e,t,n,r,o,a,i,!0)}function VM(e){return e?wa(e)||oh in e?Vn({},e):e:null}function ar(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Gn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ak(l),ref:t&&t.ref?n&&o?$t(o)?o.concat($d(t)):[o,$d(t)]:$d(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ot?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ar(e=" ",t=0){return An(rh,null,e,t)}function bo(e){return e==null||typeof e=="boolean"?An(Pr):$t(e)?An(Ot,null,e.slice()):typeof e=="object"?gi(e):An(rh,null,String(e))}function gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function pb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($t(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),pb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(oh in t)?t._ctx=Yn:o===3&&Yn&&(Yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else zt(t)?(t={default:t,_ctx:Yn},n=32):(t=String(t),r&64?(n=16,t=[Ar(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gn(...e){const t={};for(let n=0;n_n||Yn,Pl=e=>{_n=e,e.scope.on()},Ca=()=>{_n&&_n.scope.off(),_n=null};function Bk(e){return e.vnode.shapeFlag&4}let Hs=!1;function qM(e,t=!1){Hs=t;const{props:n,children:r}=e.vnode,o=Bk(e);PM(e,n,o,t),OM(e,r);const i=o?YM(e,t):void 0;return Hs=!1,i}function YM(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$u(new Proxy(e.ctx,wM));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?XM(e):null;Pl(e),Al();const i=ki(r,e,0,[e.props,o]);if(Bl(),Ca(),XS(i)){if(i.then(Ca,Ca),t)return i.then(a=>{gy(e,a,t)}).catch(a=>{Jf(a,e,0)});e.asyncDep=i}else gy(e,i,t)}else Ek(e,t)}function gy(e,t,n){zt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mn(t)&&(e.setupState=uk(t)),Ek(e,n)}let my;function Ek(e,t,n){const r=e.type;if(!e.render){if(!t&&my&&!r.render){const o=r.template||ub(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Vn(Vn({isCustomElement:i,delimiters:l},a),s);r.render=my(o,c)}}e.render=r.render||ao}Pl(e),Al(),CM(e),Bl(),Ca()}function GM(e){return new Proxy(e.attrs,{get(t,n){return pr(e,"get","$attrs"),t[n]}})}function XM(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=GM(e))},slots:e.slots,emit:e.emit,expose:t}}function ih(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uk($u(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}}))}function ZM(e,t=!0){return zt(e)?e.displayName||e.name:e.name||t&&e.__name}function QM(e){return zt(e)&&"__vccOpts"in e}const P=(e,t)=>Q3(e,t,Hs);function u(e,t,n){const r=arguments.length;return r===2?mn(t)&&!$t(t)?Ns(t)?An(e,null,[t]):An(e,t):An(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ns(n)&&(n=[n]),An(e,t,n))}const JM=Symbol(""),e4=()=>Le(JM),Lk="3.2.47",t4="http://www.w3.org/2000/svg",pa=typeof document<"u"?document:null,by=pa&&pa.createElement("template"),n4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?pa.createElementNS(t4,e):pa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>pa.createTextNode(e),createComment:e=>pa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{by.innerHTML=r?`${e}`:e;const l=by.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function r4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function o4(e,t,n){const r=e.style,o=Mn(n);if(n&&!o){if(t&&!Mn(t))for(const i in t)n[i]==null&&fv(r,i,"");for(const i in n)fv(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const yy=/\s*!important$/;function fv(e,t,n){if($t(n))n.forEach(r=>fv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=i4(e,t);yy.test(n)?e.setProperty(Fl(r),n.replace(yy,""),"important"):e[r]=n}}const xy=["Webkit","Moz","ms"],Xh={};function i4(e,t){const n=Xh[t];if(n)return n;let r=Po(t);if(r!=="filter"&&r in e)return Xh[t]=r;r=Zf(r);for(let o=0;oZh||(f4.then(()=>Zh=0),Zh=Date.now());function p4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Lr(v4(r,n.value),t,5,[r])};return n.value=e,n.attached=h4(),n}function v4(e,t){if($t(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Sy=/^on[a-z]/,g4=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?r4(e,r,o):t==="style"?o4(e,n,r):Yf(t)?Km(t)||d4(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m4(e,t,r,o))?l4(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),a4(e,t,r,o))};function m4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Sy.test(t)&&zt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Sy.test(t)&&Mn(n)?!1:t in e}const di="transition",Kl="animation",Ft=(e,{slots:t})=>u(wk,Hk(e),t);Ft.displayName="Transition";const Nk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},b4=Ft.props=Vn({},wk.props,Nk),Xi=(e,t=[])=>{$t(e)?e.forEach(n=>n(...t)):e&&e(...t)},ky=e=>e?$t(e)?e.some(t=>t.length>1):e.length>1:!1;function Hk(e){const t={};for(const z in e)z in Nk||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=y4(o),b=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:_=m,onAppear:k=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{pi(z,A?d:l),pi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,pi(z,f),pi(z,p),pi(z,h),A&&A()},D=z=>(A,L)=>{const j=z?k:y,E=()=>$(A,z,L);Xi(j,[A,E]),_y(()=>{pi(A,z?s:i),Lo(A,z?d:l),ky(j)||Ry(A,r,b,E)})};return Vn(t,{onBeforeEnter(z){Xi(m,[z]),Lo(z,i),Lo(z,a)},onBeforeAppear(z){Xi(_,[z]),Lo(z,s),Lo(z,c)},onEnter:D(!1),onAppear:D(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Lo(z,f),Vk(),Lo(z,h),_y(()=>{!z._isLeaving||(pi(z,f),Lo(z,p),ky(x)||Ry(z,r,g,L))}),Xi(x,[z,L])},onEnterCancelled(z){$(z,!1),Xi(C,[z])},onAppearCancelled(z){$(z,!0),Xi(T,[z])},onLeaveCancelled(z){R(z),Xi(w,[z])}})}function y4(e){if(e==null)return null;if(mn(e))return[Qh(e.enter),Qh(e.leave)];{const t=Qh(e);return[t,t]}}function Qh(e){return v3(e)}function Lo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function _y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let x4=0;function Ry(e,t,n,r){const o=e._endId=++x4,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=jk(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=p=>{p.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[v]||"").split(", "),o=r(`${di}Delay`),i=r(`${di}Duration`),a=Py(o,i),l=r(`${Kl}Delay`),s=r(`${Kl}Duration`),c=Py(l,s);let d=null,f=0,h=0;t===di?a>0&&(d=di,f=a,h=i.length):t===Kl?c>0&&(d=Kl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?di:Kl:null,h=d?d===di?i.length:s.length:0);const p=d===di&&/\b(transform|all)(,|$)/.test(r(`${di}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function Py(e,t){for(;e.length$y(n)+$y(e[r])))}function $y(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vk(){return document.body.offsetHeight}const Wk=new WeakMap,Uk=new WeakMap,Kk={name:"TransitionGroup",props:Vn({},b4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=xk();let o,i;return cb(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!_4(o[0].el,n.vnode.el,a))return;o.forEach(C4),o.forEach(S4);const l=o.filter(k4);Vk(),l.forEach(s=>{const c=s.el,d=c.style;Lo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,pi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=Dt(e),l=Hk(a);let s=a.tag||Ot;o=i,i=t.default?ab(t.default()):[];for(let c=0;cdelete e.mode;Kk.props;const ah=Kk;function C4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function S4(e){Uk.set(e,e.el.getBoundingClientRect())}function k4(e){const t=Wk.get(e),n=Uk.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function _4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=jk(r);return o.removeChild(r),i}const $r={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ql(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ql(e,!0),r.enter(e)):r.leave(e,()=>{ql(e,!1)}):ql(e,t))},beforeUnmount(e,{value:t}){ql(e,t)}};function ql(e,t){e.style.display=t?e._vod:"none"}const R4=Vn({patchProp:g4},n4);let Ty;function P4(){return Ty||(Ty=IM(R4))}const qk=(...e)=>{const t=P4().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$4(r);if(!o)return;const i=t._component;!zt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function $4(e){return Mn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function dc(e){return e+.5|0}const yi=(e,t,n)=>Math.max(Math.min(e,n),t);function cs(e){return yi(dc(e*2.55),0,255)}function _i(e){return yi(dc(e*255),0,255)}function Vo(e){return yi(dc(e/2.55)/100,0,1)}function Oy(e){return yi(dc(e*100),0,100)}const Dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hv=[..."0123456789ABCDEF"],T4=e=>hv[e&15],O4=e=>hv[(e&240)>>4]+hv[e&15],Lc=e=>(e&240)>>4===(e&15),z4=e=>Lc(e.r)&&Lc(e.g)&&Lc(e.b)&&Lc(e.a);function M4(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Dr[e[1]]*17,g:255&Dr[e[2]]*17,b:255&Dr[e[3]]*17,a:t===5?Dr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Dr[e[1]]<<4|Dr[e[2]],g:Dr[e[3]]<<4|Dr[e[4]],b:Dr[e[5]]<<4|Dr[e[6]],a:t===9?Dr[e[7]]<<4|Dr[e[8]]:255})),n}const D4=(e,t)=>e<255?t(e):"";function I4(e){var t=z4(e)?T4:O4;return e?"#"+t(e.r)+t(e.g)+t(e.b)+D4(e.a,t):void 0}const F4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Yk(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function A4(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function B4(e,t,n){const r=Yk(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function E4(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=E4(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function gb(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(_i)}function mb(e,t,n){return gb(Yk,e,t,n)}function L4(e,t,n){return gb(B4,e,t,n)}function N4(e,t,n){return gb(A4,e,t,n)}function Gk(e){return(e%360+360)%360}function H4(e){const t=F4.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cs(+t[5]):_i(+t[5]));const o=Gk(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=L4(o,i,a):t[1]==="hsv"?r=N4(o,i,a):r=mb(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function j4(e,t){var n=vb(e);n[0]=Gk(n[0]+t),n=mb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function V4(e){if(!e)return;const t=vb(e),n=t[0],r=Oy(t[1]),o=Oy(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Vo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const zy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},My={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function W4(){const e={},t=Object.keys(My),n=Object.keys(zy);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Nc;function U4(e){Nc||(Nc=W4(),Nc.transparent=[0,0,0,0]);const t=Nc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const K4=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function q4(e){const t=K4.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?cs(a):yi(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?cs(r):yi(r,0,255)),o=255&(t[4]?cs(o):yi(o,0,255)),i=255&(t[6]?cs(i):yi(i,0,255)),{r,g:o,b:i,a:n}}}function Y4(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Vo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,nl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function G4(e,t,n){const r=nl(Vo(e.r)),o=nl(Vo(e.g)),i=nl(Vo(e.b));return{r:_i(Jh(r+n*(nl(Vo(t.r))-r))),g:_i(Jh(o+n*(nl(Vo(t.g))-o))),b:_i(Jh(i+n*(nl(Vo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Hc(e,t,n){if(e){let r=vb(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=mb(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Xk(e,t){return e&&Object.assign(t||{},e)}function Dy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=_i(e[3]))):(t=Xk(e,{r:0,g:0,b:0,a:1}),t.a=_i(t.a)),t}function X4(e){return e.charAt(0)==="r"?q4(e):H4(e)}class js{constructor(t){if(t instanceof js)return t;const n=typeof t;let r;n==="object"?r=Dy(t):n==="string"&&(r=M4(t)||U4(t)||X4(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Xk(this._rgb);return t&&(t.a=Vo(t.a)),t}set rgb(t){this._rgb=Dy(t)}rgbString(){return this._valid?Y4(this._rgb):void 0}hexString(){return this._valid?I4(this._rgb):void 0}hslString(){return this._valid?V4(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=G4(this._rgb,t._rgb,n)),this}clone(){return new js(this.rgb)}alpha(t){return this._rgb.a=_i(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=dc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hc(this._rgb,2,t),this}darken(t){return Hc(this._rgb,2,-t),this}saturate(t){return Hc(this._rgb,1,t),this}desaturate(t){return Hc(this._rgb,1,-t),this}rotate(t){return j4(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function Bo(){}const Z4=(()=>{let e=0;return()=>e++})();function an(e){return e===null||typeof e>"u"}function pn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Yt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function jn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Cr(e,t){return jn(e)?e:t}function Qt(e,t){return typeof e>"u"?t:e}const Q4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function sn(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function rn(e,t,n,r){let o,i,a;if(pn(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function tD(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function nD(e){const t=tD(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $l(e,t){return(Iy[t]||(Iy[t]=nD(t)))(e)}function bb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Hr=e=>typeof e<"u",zi=e=>typeof e=="function",Fy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function rD(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Xn=Math.PI,ko=2*Xn,Du=Number.POSITIVE_INFINITY,oD=Xn/180,hr=Xn/2,Zi=Xn/4,Ay=Xn*2/3,xi=Math.log10,Ri=Math.sign;function Td(e,t,n){return Math.abs(e-t)o-i).pop(),t}function Iu(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aD(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Qk(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function xb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const pv=(e,t,n,r)=>xb(e,n,r?o=>{const i=e[o][t];return ie[o][t]xb(e,n,r=>e[r][t]>=n);function fD(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+bb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ly(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(Jk.forEach(i=>{delete e[i]}),delete e._chartjs)}function e_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function n_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,t_.call(window,()=>{r=!1,e.apply(t,n)}))}}function pD(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const wb=e=>e==="start"?"left":e==="end"?"right":"center",tr=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,vD=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,jc=e=>e===0||e===1,Ny=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ko/n)),Hy=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ko/n)+1,Cs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*hr)+1,easeOutSine:e=>Math.sin(e*hr),easeInOutSine:e=>-.5*(Math.cos(Xn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>jc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>jc(e)?e:Ny(e,.075,.3),easeOutElastic:e=>jc(e)?e:Hy(e,.075,.3),easeInOutElastic(e){return jc(e)?e:e<.5?.5*Ny(e*2,.1125,.45):.5+.5*Hy(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Cs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Cs.easeInBounce(e*2)*.5:Cs.easeOutBounce(e*2-1)*.5+.5};function r_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function jy(e){return r_(e)?e:new js(e)}function ep(e){return r_(e)?e:new js(e).saturate(.5).darken(.1).hexString()}const gD=["x","y","borderWidth","radius","tension"],mD=["color","borderColor","backgroundColor"];function bD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mD},numbers:{type:"number",properties:gD}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function yD(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Vy=new Map;function xD(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Vy.get(n);return r||(r=new Intl.NumberFormat(e,t),Vy.set(n,r)),r}function Cb(e,t,n){return xD(t,n).format(e)}const o_={values(e){return pn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=wD(e,n)}const a=xi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),Cb(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(xi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?o_.numeric.call(this,e,t,n):""}};function wD(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var lh={formatters:o_};function CD(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:lh.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Oa=Object.create(null),vv=Object.create(null);function Ss(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>ep(o.backgroundColor),this.hoverBorderColor=(r,o)=>ep(o.borderColor),this.hoverColor=(r,o)=>ep(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return tp(this,t,n)}get(t){return Ss(this,t)}describe(t,n){return tp(vv,t,n)}override(t,n){return tp(Oa,t,n)}route(t,n,r,o){const i=Ss(this,t),a=Ss(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Yt(s)?Object.assign({},c,s):Qt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Rn=new SD({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[bD,yD,CD]);function kD(e){return!e||an(e.size)||an(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Fu(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function _D(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function a_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,RD(e,i),s=0;s+e||0;function l_(e,t){const n={},r=Yt(t),o=r?Object.keys(t):t,i=Yt(e)?r?a=>Qt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=MD(i(a));return n}function s_(e){return l_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sa(e){return l_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rr(e){const t=s_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Bn(e,t){e=e||{},t=t||Rn.font;let n=Qt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qt(e.style,t.style);r&&!(""+r).match(OD)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Qt(e.family,t.family),lineHeight:zD(Qt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qt(e.weight,t.weight),string:""};return o.string=kD(o),o}function Vc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ha(e,t){return Object.assign(Object.create(e),t)}function _b(e,t=[""],n=e,r,o=()=>e[0]){Hr(r)||(r=f_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>_b([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return d_(a,l,()=>HD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return qy(a).includes(l)},ownKeys(a){return qy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function Tl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:c_(e,r),setContext:i=>Tl(e,i,n,r),override:i=>Tl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return d_(i,a,()=>FD(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function c_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:zi(n)?n:()=>n,isIndexable:zi(r)?r:()=>r}}const ID=(e,t)=>e?e+bb(t):t,Rb=(e,t)=>Yt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function d_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function FD(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return zi(l)&&a.isScriptable(t)&&(l=AD(t,l,e,n)),pn(l)&&l.length&&(l=BD(t,l,e,a.isIndexable)),Rb(t,l)&&(l=Tl(l,o,i&&i[t],a)),l}function AD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),Rb(e,t)&&(t=Pb(o._scopes,o,e,t)),t}function BD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Hr(i.index)&&r(e))t=t[i.index%t.length];else if(Yt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=Pb(c,o,e,d);t.push(Tl(f,i,a&&a[e],l))}}return t}function u_(e,t,n){return zi(e)?e(t,n):e}const ED=(e,t)=>e===!0?t:typeof e=="string"?$l(t,e):void 0;function LD(e,t,n,r,o){for(const i of t){const a=ED(n,i);if(a){e.add(a);const l=u_(a._fallback,n,o);if(Hr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Hr(r)&&n!==r)return null}return!1}function Pb(e,t,n,r){const o=t._rootScopes,i=u_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Ky(l,a,n,i||n,r);return s===null||Hr(i)&&i!==n&&(s=Ky(l,a,i,s,r),s===null)?!1:_b(Array.from(l),[""],o,i,()=>ND(t,n,r))}function Ky(e,t,n,r,o){for(;n;)n=LD(e,t,n,r,o);return n}function ND(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return pn(o)&&Yt(n)?n:o||{}}function HD(e,t,n,r){let o;for(const i of t)if(o=f_(ID(i,e),n),Hr(o))return Rb(e,o)?Pb(n,r,e,o):o}function f_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Hr(r))return r}}function qy(e){let t=e._keys;return t||(t=e._keys=jD(e._scopes)),t}function jD(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function h_(){return typeof window<"u"&&typeof document<"u"}function $b(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Au(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const sh=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function VD(e,t){return sh(e).getPropertyValue(t)}const WD=["top","right","bottom","left"];function ka(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=WD[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const UD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function KD(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(UD(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function sa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=sh(n),i=o.boxSizing==="border-box",a=ka(o,"padding"),l=ka(o,"border","width"),{x:s,y:c,box:d}=KD(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:p,height:v}=t;return i&&(p-=a.width+l.width,v-=a.height+l.height),{x:Math.round((s-f)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}function qD(e,t,n){let r,o;if(t===void 0||n===void 0){const i=$b(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=sh(i),s=ka(l,"border","width"),c=ka(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Au(l.maxWidth,i,"clientWidth"),o=Au(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Du,maxHeight:o||Du}}const Wc=e=>Math.round(e*10)/10;function YD(e,t,n,r){const o=sh(e),i=ka(o,"margin"),a=Au(o.maxWidth,e,"clientWidth")||Du,l=Au(o.maxHeight,e,"clientHeight")||Du,s=qD(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ka(o,"border","width"),p=ka(o,"padding");c-=p.width+h.width,d-=p.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Wc(Math.min(c,a,s.maxWidth)),d=Wc(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Wc(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Wc(Math.floor(d*r))),{width:c,height:d}}function Yy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const GD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Gy(e,t){const n=VD(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const XD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},ZD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function wl(e,t,n){return e?XD(t,n):ZD()}function p_(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function v_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class QD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=t_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var No=new QD;const Xy="transparent",JD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=jy(e||Xy),o=r.valid&&jy(t||Xy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class eI{constructor(t,n,r,o){const i=n[r];o=Vc([t.to,o,i,t.from]);const a=Vc([t.from,i,o]);this._active=!0,this._fn=t.fn||JD[t.type||typeof a],this._easing=Cs[t.easing]||Cs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Vc([t.to,n,o,t.from]),this._from=Vc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Yt(i))return;const a={};for(const l of n)a[l]=i[l];(pn(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=nI(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&tI(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new eI(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return No.add(this._chart,r),!0}}function tI(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function tx(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=aI(i,a,r),f=t.length;let h;for(let p=0;pn[r].axis===t).shift()}function cI(e,t){return Ha(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function dI(e,t,n){return Ha(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Yl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const rp=e=>e==="reset"||e==="none",nx=(e,t)=>t?e:Object.assign({},e),uI=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:m_(n,!0),values:null};class ks{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Jy(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Yl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,p,v)=>f==="x"?h:f==="r"?v:p,i=n.xAxisID=Qt(r.xAxisID,np(t,"x")),a=n.yAxisID=Qt(r.yAxisID,np(t,"y")),l=n.rAxisID=Qt(r.rAxisID,np(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ly(this._data,this),t._stacked&&Yl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Yt(n))this._data=iI(n);else if(r!==n){if(r){Ly(r,this);const o=this._cachedMeta;Yl(o),o._parsed=[]}n&&Object.isExtensible(n)&&hD(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Jy(n.vScale,n),n.stack!==r.stack&&(o=!0,Yl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&tx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{pn(o[t])?h=this.parseArrayData(r,o,t,n):Yt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const p=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!v()){this.updateRangeFromParsed(c,t,p,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,p,v,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(nx(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new g_(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||rp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){rp(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!rp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function hI(e){const t=e.iScale,n=fI(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Hr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function b_(e,t,n,r){return pn(e)?gI(e,t,n,r):t[n.axis]=n.parse(e,r),t}function rx(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function bI(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(an(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var PI={evaluateInteractionItems:uc,modes:{index(e,t,n,r){const o=sa(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=sa(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function lx(e,t){return e.filter(n=>y_.indexOf(n.pos)===-1&&n.box.axis===t)}function Xl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function $I(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Xl(Gl(t,"left"),!0),o=Xl(Gl(t,"right")),i=Xl(Gl(t,"top"),!0),a=Xl(Gl(t,"bottom")),l=lx(t,"x"),s=lx(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Gl(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function sx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function x_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MI(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Yt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&x_(a,i.getPadding());const l=Math.max(0,t.outerWidth-sx(a,e,"left","right")),s=Math.max(0,t.outerHeight-sx(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function DI(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function II(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function ds(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,g)=>g.box.options&&g.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);x_(h,rr(r));const p=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),v=OI(s.concat(c),f);ds(l.fullSize,p,f,v),ds(s,p,f,v),ds(c,p,f,v)&&ds(s,p,f,v),DI(p),cx(l.leftAndTop,p,f,v),p.x+=p.w,p.y+=p.h,cx(l.rightAndBottom,p,f,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},rn(l.chartArea,b=>{const g=b.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class w_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class FI extends w_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zd="$chartjs",AI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dx=e=>e===null||e==="";function BI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[zd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dx(o)){const i=Gy(e,"width");i!==void 0&&(e.width=i)}if(dx(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Gy(e,"height");i!==void 0&&(e.height=i)}return e}const C_=GD?{passive:!0}:!1;function EI(e,t,n){e.addEventListener(t,n,C_)}function LI(e,t,n){e.canvas.removeEventListener(t,n,C_)}function NI(e,t){const n=AI[e.type]||e.type,{x:r,y:o}=sa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Bu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function HI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.addedNodes,r),a=a&&!Bu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function jI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.removedNodes,r),a=a&&!Bu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Us=new Map;let ux=0;function S_(){const e=window.devicePixelRatio;e!==ux&&(ux=e,Us.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function VI(e,t){Us.size||window.addEventListener("resize",S_),Us.set(e,t)}function WI(e){Us.delete(e),Us.size||window.removeEventListener("resize",S_)}function UI(e,t,n){const r=e.canvas,o=r&&$b(r);if(!o)return;const i=n_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),VI(e,i),a}function lp(e,t,n){n&&n.disconnect(),t==="resize"&&WI(e)}function KI(e,t,n){const r=e.canvas,o=n_(i=>{e.ctx!==null&&n(NI(i,e))},e);return EI(r,t,o),o}class qI extends w_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(BI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[zd])return!1;const r=n[zd].initial;["height","width"].forEach(i=>{const a=r[i];an(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[zd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:HI,detach:jI,resize:UI}[n]||KI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:lp,detach:lp,resize:lp}[n]||LI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return YD(t,n,r,o)}isAttached(t){const n=$b(t);return!!(n&&n.isConnected)}}function YI(e){return!h_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?FI:qI}class Mi{constructor(){jt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Iu(this.x)&&Iu(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}jt(Mi,"defaults",{}),jt(Mi,"defaultRoutes");function GI(e,t){const n=e.options.ticks,r=XI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?QI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return JI(t,c,i,a/o),c;const d=ZI(i,t,o);if(a>0){let f,h;const p=a>1?Math.round((s-l)/(a-1)):null;for(Kc(t,c,d,an(p)?0:l-p,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function QI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,fx=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function hx(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function rF(e,t){rn(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:Cr(n,Cr(r,n)),max:Cr(r,Cr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){sn(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=DD(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,p=io(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:p/(r-1),f+6>l&&(l=p/(r-(t.offset?.5:1)),s=this.maxHeight-Zl(t.grid)-n.padding-px(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=yb(Math.min(Math.asin(io((d.highest.height+6)/l,-1,1)),Math.asin(io(s/c,-1,1))-Math.asin(io(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){sn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){sn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=px(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Zl(i)+s):(t.height=this.maxHeight,t.width=Zl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),p=r.padding*2,v=wi(this.labelRotation),b=Math.cos(v),g=Math.sin(v);if(l){const m=r.mirror?0:g*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:b*f.width+g*h.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,d,g,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;s?c?(h=o*t.width,p=r*n.height):(h=r*t.height,p=o*n.width):i==="start"?p=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,p=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){sn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[k]||0,height:a[k]||0});return{first:_(0),last:_(n-1),widest:_(x),highest:_(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return dD(this._alignToPixels?Qi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Zl(i),p=[],v=l.setContext(this.getContext()),b=v.display?v.width:0,g=b/2,m=function(E){return Qi(r,E,b)};let y,C,x,w,_,k,T,$,R,D,z,A;if(a==="top")y=m(this.bottom),k=this.bottom-h,$=y-g,D=m(t.top)+g,A=t.bottom;else if(a==="bottom")y=m(this.top),D=t.top,A=m(t.bottom)-g,k=y+g,$=this.top+h;else if(a==="left")y=m(this.right),_=this.right-h,T=y-g,R=m(t.left)+g,z=t.right;else if(a==="right")y=m(this.left),R=t.left,z=m(t.right)-g,_=y+g,T=this.left+h;else if(n==="x"){if(a==="center")y=m((t.top+t.bottom)/2+.5);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}D=t.top,A=t.bottom,k=y+g,$=k+h}else if(n==="y"){if(a==="center")y=m((t.left+t.right)/2);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}_=y-g,T=_-h,R=t.left,z=t.right}const L=Qt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Rn.route(i,o,s,l)})}function dF(e){return"id"in e&&"defaults"in e}class uF{constructor(){this.controllers=new qc(ks,"datasets",!0),this.elements=new qc(Mi,"elements"),this.plugins=new qc(Object,"plugins"),this.scales=new qc(ja,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):rn(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=bb(t);sn(r["before"+o],[],r),n[t](r),sn(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function hF(e){const t={},n=[],r=Object.keys(go.plugins.items);for(let i=0;i1&&Eu(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function xF(e,t){const n=Oa[e.type]||{scales:{}},r=t.scales||{},o=gv(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Yt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=Eu(a,l),c=bF(s,o),d=n.scales||{};i[a]=ws(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||gv(l,t),d=(Oa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=mF(f,s),p=a[h+"AxisID"]||h;i[p]=i[p]||Object.create(null),ws(i[p],[{axis:h},r[p],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ws(l,[Rn.scales[l.type],Rn.scale])}),i}function k_(e){const t=e.options||(e.options={});t.plugins=Qt(t.plugins,{}),t.scales=xF(e,t)}function __(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function wF(e){return e=e||{},e.data=__(e.data),k_(e),e}const vx=new Map,R_=new Set;function Yc(e,t){let n=vx.get(e);return n||(n=t(),vx.set(e,n),R_.add(n)),n}const Ql=(e,t,n)=>{const r=$l(t,n);r!==void 0&&e.add(r)};class CF{constructor(t){this._config=wF(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=__(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),k_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Yc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Yc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Yc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Ql(s,t,f))),d.forEach(f=>Ql(s,o,f)),d.forEach(f=>Ql(s,Oa[i]||{},f)),d.forEach(f=>Ql(s,Rn,f)),d.forEach(f=>Ql(s,vv,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),R_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Oa[n]||{},Rn.datasets[n]||{},{type:n},Rn,vv]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=gx(this._resolverCache,t,o);let s=a;if(kF(a,n)){i.$shared=!1,r=zi(r)?r():r;const c=this.createResolver(t,r,l);s=Tl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=gx(this._resolverCache,t,r);return Yt(n)?Tl(i,n,void 0,o):i}}function gx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:_b(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const SF=e=>Yt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zi(e[n]),!1);function kF(e,t){const{isScriptable:n,isIndexable:r}=c_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(zi(l)||SF(l))||a&&pn(l))return!0}return!1}var _F="4.2.0";const RF=["top","bottom","left","right","chartArea"];function mx(e,t){return e==="top"||e==="bottom"||RF.indexOf(e)===-1&&t==="x"}function bx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function yx(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),sn(n&&n.onComplete,[e],t)}function PF(e){const t=e.chart,n=t.options.animation;sn(n&&n.onProgress,[e],t)}function P_(e){return h_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Md={},xx=e=>{const t=P_(e);return Object.values(Md).filter(n=>n.canvas===t).pop()};function $F(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function TF(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function OF(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class yo{static register(...t){go.add(...t),wx()}static unregister(...t){go.remove(...t),wx()}constructor(t,n){const r=this.config=new CF(n),o=P_(t),i=xx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||YI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=Z4(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new fF,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=pD(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Md[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}No.listen(this,"complete",yx),No.listen(this,"progress",PF),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return an(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return go}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Yy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Wy(this.canvas,this.ctx),this}stop(){return No.stop(this),this}resize(t,n){No.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Yy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),sn(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};rn(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=Eu(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),rn(i,a=>{const l=a.options,s=l.id,c=Eu(s,l),d=Qt(l.type,a.dtype);(l.position===void 0||mx(l.position,c)!==mx(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=go.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),rn(o,(a,l)=>{a||delete r[l]}),rn(r,a=>{Br.configure(this,a,a.options),Br.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bx("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){rn(this.scales,t=>{Br.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Fy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;$F(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Br.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],rn(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=OF(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Sb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&kb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return a_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=PI.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Hr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),No.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};rn(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){rn(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},rn(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!zu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=rD(t),c=TF(t,this._lastEvent,r,s);r&&(this._lastEvent=null,sn(i.onHover,[t,l,this],this),s&&sn(i.onClick,[t,l,this],this));const d=!zu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}jt(yo,"defaults",Rn),jt(yo,"instances",Md),jt(yo,"overrides",Oa),jt(yo,"registry",go),jt(yo,"version",_F),jt(yo,"getChart",xx);function wx(){return rn(yo.instances,e=>e._plugins.invalidate())}function $_(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function Ci(e,t,n,r){return e?0:io(t,n,r)}function zF(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=s_(r);return{t:Ci(o.top,i.top,0,n),r:Ci(o.right,i.right,0,t),b:Ci(o.bottom,i.bottom,0,n),l:Ci(o.left,i.left,0,t)}}function MF(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Sa(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Yt(o);return{topLeft:Ci(!s||l.top||l.left,i.topLeft,0,a),topRight:Ci(!s||l.top||l.right,i.topRight,0,a),bottomLeft:Ci(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:Ci(!s||l.bottom||l.right,i.bottomRight,0,a)}}function DF(e){const t=$_(e),n=t.right-t.left,r=t.bottom-t.top,o=zF(e,n/2,r/2),i=MF(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function sp(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&$_(e,r);return l&&(o||ml(t,l.left,l.right))&&(i||ml(n,l.top,l.bottom))}function IF(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function FF(e,t){e.rect(t.x,t.y,t.w,t.h)}function cp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Dd extends Mi{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=DF(this),l=IF(a.radius)?Ws:FF;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,cp(a,n,i)),t.clip(),l(t,cp(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,cp(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return sp(this,t,n,r)}inXRange(t,n){return sp(this,t,null,n)}inYRange(t,n){return sp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}jt(Dd,"id","bar"),jt(Dd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),jt(Dd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},AF=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sx extends Mi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=sn(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Bn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=Cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,p=-d;return this.legendItems.forEach((v,b)=>{const g=r+n/2+i.measureText(v.text).width;(b===0||c[c.length-1]+g+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,p+=d,h++),s[b]={left:0,top:p,row:h,width:g,height:o},c[c.length-1]+=g+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,p=0,v=0,b=0;return this.legendItems.forEach((g,m)=>{const{itemWidth:y,itemHeight:C}=BF(r,n,i,g,o);m>0&&p+C+2*l>d&&(f+=h+l,c.push({width:h,height:p}),v+=h+l,b++,h=p=0),s[m]={left:v,top:p,col:b,width:y,height:C},h=Math.max(h,y),p+=C+l}),f+=h,c.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=wl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=tr(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=tr(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Sb(t,this),this._draw(),kb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Rn.color,s=wl(t.rtl,this.left,this.width),c=Bn(a.font),{padding:d}=a,f=c.size,h=f/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:v,boxHeight:b,itemHeight:g}=Cx(a,f),m=function(_,k,T){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;o.save();const $=Qt(T.lineWidth,1);if(o.fillStyle=Qt(T.fillStyle,l),o.lineCap=Qt(T.lineCap,"butt"),o.lineDashOffset=Qt(T.lineDashOffset,0),o.lineJoin=Qt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Qt(T.strokeStyle,l),o.setLineDash(Qt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},D=s.xPlus(_,v/2),z=k+h;i_(o,R,D,z,a.pointStyleWidth&&v)}else{const R=k+Math.max((f-b)/2,0),D=s.leftForLtr(_,v),z=Sa(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Ws(o,{x:D,y:R,w:v,h:b,radius:z}):o.rect(D,R,v,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(_,k,T){za(o,T.text,_,k+g/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?p={x:tr(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:p={x:this.left+d,y:tr(i,this.top+x+d,this.bottom-n[0].height),line:0},p_(this.ctx,t.textDirection);const w=g+d;this.legendItems.forEach((_,k)=>{o.strokeStyle=_.fontColor,o.fillStyle=_.fontColor;const T=o.measureText(_.text).width,$=s.textAlign(_.textAlign||(_.textAlign=a.textAlign)),R=v+h+T;let D=p.x,z=p.y;s.setWidth(this.width),C?k>0&&D+R+d>this.right&&(z=p.y+=w,p.line++,D=p.x=tr(i,this.left+d,this.right-r[p.line])):k>0&&z+w>this.bottom&&(D=p.x=D+n[p.line].width+d,p.line++,z=p.y=tr(i,this.top+x+d,this.bottom-n[p.line].height));const A=s.x(D);if(m(A,z,_),D=vD($,D+v+h,C?D+R:this.right,t.rtl),y(s.x(D),z,_),C)p.x+=R+d;else if(typeof _.text!="string"){const L=c.lineHeight;p.y+=T_(_,L)}else p.y+=w}),v_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Bn(n.font),o=rr(n.padding);if(!n.display)return;const i=wl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=tr(t.align,f,this.right-h);else{const v=this.columnSizes.reduce((b,g)=>Math.max(b,g.height),0);d=c+tr(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=tr(l,f,f+h);a.textAlign=i.textAlign(wb(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,za(a,n.text,p,d,r)}_computeTitleHeight(){const t=this.options.title,n=Bn(t.font),r=rr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ml(t,this.left,this.right)&&ml(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function LF(e,t,n){let r=e;return typeof t.text!="string"&&(r=T_(t,n)),r}function T_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function NF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var HF={id:"legend",_element:Sx,start(e,t,n){const r=e.legend=new Sx({ctx:e.ctx,options:n,chart:e});Br.configure(e,r,n),Br.addBox(e,r)},stop(e){Br.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Br.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=rr(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class O_ extends Mi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=pn(r.text)?r.text.length:1;this._padding=rr(r.padding);const i=o*Bn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=tr(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=tr(l,o,n),s=Xn*-.5):(d=i-t,f=tr(l,n,o),s=Xn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Bn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);za(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:wb(n.align),textBaseline:"middle",translation:[a,l]})}}function jF(e,t){const n=new O_({ctx:e.ctx,options:t,chart:e});Br.configure(e,n,t),Br.addBox(e,n),e.titleBlock=n}var VF={id:"title",_element:O_,start(e,t,n){jF(e,n)},stop(e){const t=e.titleBlock;Br.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Br.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const us={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function WF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function kx(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Bn(t.bodyFont),c=Bn(t.titleFont),d=Bn(t.footerFont),f=i.length,h=o.length,p=r.length,v=rr(t.padding);let b=v.height,g=0,m=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),m){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=p*x+(m-p)*s.lineHeight+(m-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){g=Math.max(g,n.measureText(x).width+y)};return n.save(),n.font=c.string,rn(e.title,C),n.font=s.string,rn(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,rn(r,x=>{rn(x.before,C),rn(x.lines,C),rn(x.after,C)}),y=0,n.font=d.string,rn(e.footer,C),n.restore(),g+=v.width,{width:g,height:b}}function UF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function KF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function qF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),KF(c,e,t,n)&&(c="center"),c}function _x(e,t,n){const r=n.yAlign||t.yAlign||UF(e,n);return{xAlign:n.xAlign||t.xAlign||qF(e,t,n,r),yAlign:r}}function YF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function GF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function Rx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Sa(a);let v=YF(t,l);const b=GF(t,s,c);return s==="center"?l==="left"?v+=c:l==="right"&&(v-=c):l==="left"?v-=Math.max(d,h)+o:l==="right"&&(v+=Math.max(f,p)+o),{x:io(v,0,r.width-t.width),y:io(b,0,r.height-t.height)}}function Gc(e,t,n){const r=rr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Px(e){return vo([],Ho(e))}function XF(e,t,n){return Ha(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $x(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const z_={beforeTitle:Bo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?z_[t].call(n,r):o}class mv extends Mi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new g_(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=XF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=sr(r,"beforeTitle",this,t),i=sr(r,"title",this,t),a=sr(r,"afterTitle",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}getBeforeBody(t,n){return Px(sr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return rn(t,i=>{const a={before:[],lines:[],after:[]},l=$x(r,i);vo(a.before,Ho(sr(l,"beforeLabel",this,i))),vo(a.lines,sr(l,"label",this,i)),vo(a.after,Ho(sr(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return Px(sr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=sr(r,"beforeFooter",this,t),i=sr(r,"footer",this,t),a=sr(r,"afterFooter",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),rn(l,d=>{const f=$x(t.callbacks,d);o.push(sr(f,"labelColor",this,d)),i.push(sr(f,"labelPointStyle",this,d)),a.push(sr(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=us[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=kx(this,r),c=Object.assign({},l,s),d=_x(this.chart,r,c),f=Rx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=Sa(l),{x:h,y:p}=t,{width:v,height:b}=n;let g,m,y,C,x,w;return i==="center"?(x=p+b/2,o==="left"?(g=h,m=g-a,C=x+a,w=x-a):(g=h+v,m=g+a,C=x-a,w=x+a),y=g):(o==="left"?m=h+Math.max(s,d)+a:o==="right"?m=h+v-Math.max(c,f)-a:m=this.caretX,i==="top"?(C=p,x=C-a,g=m-a,y=m+a):(C=p+b,x=C+a,g=m+a,y=m-a),w=C),{x1:g,x2:m,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=wl(r.rtl,this.x,this.width);for(t.x=Gc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Bn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Ws(t,{x:g,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Ws(t,{x:m,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,b,c,s),t.strokeRect(g,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(m,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Bn(r.bodyFont);let h=f.lineHeight,p=0;const v=wl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,v.x(t.x+p),t.y+h/2),t.y+=h+i},g=v.textAlign(a);let m,y,C,x,w,_,k;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Gc(this,g,r),n.fillStyle=r.bodyColor,rn(this.beforeBody,b),p=l&&g!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,_=o.length;x<_;++x){for(m=o[x],y=this.labelTextColors[x],n.fillStyle=y,rn(m.before,b),C=m.lines,l&&C.length&&(this._drawColorBox(n,t,x,v,r),h=Math.max(f.lineHeight,s)),w=0,k=C.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=us[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=kx(this,t),s=Object.assign({},a,this._size),c=_x(n,t,s),d=Rx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=rr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),p_(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),v_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!zu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!zu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=us[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}jt(mv,"positioners",us);var ZF={id:"tooltip",_element:mv,positioners:us,afterInit(e,t,n){n&&(e.tooltip=new mv({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:z_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const QF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function JF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return QF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const eA=(e,t)=>e===null?null:io(Math.round(e),0,t);function Tx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}jt(bv,"id","category"),jt(bv,"defaults",{ticks:{callback:Tx}});function tA(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,p=i||1,v=d-1,{min:b,max:g}=t,m=!an(a),y=!an(l),C=!an(c),x=(g-b)/(f+1);let w=By((g-b)/v/p)*p,_,k,T,$;if(w<1e-14&&!m&&!y)return[{value:b},{value:g}];$=Math.ceil(g/w)-Math.floor(b/w),$>v&&(w=By($*w/v/p)*p),an(s)||(_=Math.pow(10,s),w=Math.ceil(w*_)/_),o==="ticks"?(k=Math.floor(b/w)*w,T=Math.ceil(g/w)*w):(k=b,T=g),m&&y&&i&&aD((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,k=a,T=l):C?(k=m?a:k,T=y?l:T,$=c-1,w=(T-k)/$):($=(T-k)/w,Td($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(Ey(w),Ey(k));_=Math.pow(10,an(s)?R:s),k=Math.round(k*_)/_,T=Math.round(T*_)/_;let D=0;for(m&&(h&&k!==a?(n.push({value:a}),ko=n?o:s,l=s=>i=r?i:s;if(t){const s=Ri(o),c=Ri(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=tA(o,i);return t.bounds==="ticks"&&Qk(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Cb(t,this.chart.options.locale,this.options.ticks.format)}}class yv extends Lu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?t:0,this.max=jn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}jt(yv,"id","linear"),jt(yv,"defaults",{ticks:{callback:lh.formatters.numeric}});const Ks=e=>Math.floor(xi(e)),ea=(e,t)=>Math.pow(10,Ks(e)+t);function zx(e){return e/Math.pow(10,Ks(e))===1}function Mx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function nA(e,t){const n=t-e;let r=Ks(n);for(;Mx(e,t,r)>10;)r++;for(;Mx(e,t,r)<10;)r--;return Math.min(r,Ks(e))}function rA(e,{min:t,max:n}){t=Cr(e.min,t);const r=[],o=Ks(t);let i=nA(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=Cr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const p=Cr(e.max,h);return r.push({value:p,major:zx(p),significand:f}),r}class Dx extends ja{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Lu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return jn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?Math.max(0,t):null,this.max=jn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!jn(this._userMin)&&(this.min=t===ea(this.min,0)?ea(this.min,-1):ea(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(ea(r,-1)),a(ea(o,1)))),r<=0&&i(ea(o,-1)),o<=0&&a(ea(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=rA(n,this);return t.bounds==="ticks"&&Qk(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Cb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xi(t),this._valueRange=xi(this.max)-xi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}jt(Dx,"id","logarithmic"),jt(Dx,"defaults",{ticks:{callback:lh.formatters.logarithmic,major:{enabled:!0}}});function xv(e){const t=e.ticks;if(t.display&&e.display){const n=rr(t.backdropPadding);return Qt(t.font&&t.font.size,Rn.font.size)+n.height}return 0}function oA(e,t,n){return n=pn(n)?n:[n],{w:_D(e,t.string,n),h:n.length*t.lineHeight}}function Ix(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function iA(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Xn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function lA(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=xv(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Xn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function uA(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Bn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:p}=e._pointLabelItems[o],{backdropColor:v}=i;if(!an(v)){const b=Sa(i.borderRadius),g=rr(i.backdropPadding);n.fillStyle=v;const m=d-g.left,y=f-g.top,C=h-d+g.width,x=p-f+g.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Ws(n,{x:m,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(m,y,C,x)}za(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function M_(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,ko);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=sn(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?iA(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=ko/(this._pointLabels.length||1),r=this.options.startAngle||0;return mo(t*n+wi(r))}getDistanceFromCenterForValue(t){if(an(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(an(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),p=o.setContext(h),v=i.setContext(h);fA(this,p,s,a,v)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Bn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=rr(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}za(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}jt(Xc,"id","radialLinear"),jt(Xc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lh.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),jt(Xc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),jt(Xc,"descriptors",{angleLines:{_fallback:"grid"}});const ch={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fr=Object.keys(ch);function pA(e,t){return e-t}function Fx(e,t){if(an(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),jn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Iu(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Ax(e,t,n,r){const o=fr.length;for(let i=fr.indexOf(e);i=fr.indexOf(n);i--){const a=fr[i];if(ch[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return fr[n?fr.indexOf(n):0]}function gA(e){for(let t=fr.indexOf(e)+1,n=fr.length;t=t?n[r]:n[o];e[i]=!0}}function mA(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function Ex(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=io(n,0,a),r=io(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Ax(i.minUnit,n,r,this._getLabelCapacity(n)),l=Qt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=Iu(s)||s===!0,d={};let f=n,h,p;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;hb-g).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return sn(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],p=c&&f&&h&&h.major;return this._adapter.format(t,o||(p?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=pv(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=pv(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Lx extends Nu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},bA={type:{type:String,required:!0},...D_},yA=Lk[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function rl(e){return wa(e)?Dt(e):e}function xA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return wa(t)?new Proxy(e,{}):e}function wA(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function I_(e,t){e.labels=t}function F_(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function CA(e,t){const n={labels:[],datasets:[]};return I_(n,e.labels),F_(n,e.datasets,t),n}const SA=J({props:bA,setup(e,t){let{expose:n}=t;const r=F(null),o=ck(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,p=CA(c,h),v=xA(p,c);o.value=new yo(r.value,{type:s,data:v,options:{...d},plugins:f})},a=()=>{const s=Dt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return It(i),Bt(a),it([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,p]=c;const v=Dt(o.value);if(!v)return;let b=!1;if(d){const g=rl(d),m=rl(h);g&&g!==m&&(wA(v,g),b=!0)}if(f){const g=rl(f.labels),m=rl(p.labels),y=rl(f.datasets),C=rl(p.datasets);g!==m&&(I_(v.config.data,g),b=!0),y&&y!==C&&(F_(v.config.data,y,e.datasetIdKey),b=!0)}b&&l(v)},{deep:!0}),()=>u("canvas",{ref:r})}});function kA(e,t){return yo.register(t),J({props:D_,setup(n,r){let{expose:o}=r;const i=ck(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(SA,yA({ref:a},{type:e,...n}))}})}const _A=kA("bar",Od),Nx=`Angela Merkel,Merkel -Barack Obama,Obama -Brexit -Donald Trump,Trump -North Korea -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -2015`;let Hu=[];const A_=new WeakMap;function RA(){Hu.forEach(e=>e(...A_.get(e))),Hu=[]}function Ma(e,...t){A_.set(e,t),!Hu.includes(e)&&Hu.push(e)===1&&requestAnimationFrame(RA)}function PA(e){return e.nodeType===9?null:e.parentNode}function B_(e){if(e===null)return null;const t=PA(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return B_(t)}function Ob(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Zn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function vr(e){return e.composedPath()[0]||null}function $A(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Jl(e,t){var n;if(e==null)return;const r=$A(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function hn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function yn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Pi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function TA(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const Hx={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function E_(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function Id(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function mi(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function wv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function Cv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function Sv(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Oo="^\\s*",zo="\\s*$",Di="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ga="([0-9A-Fa-f])",ma="([0-9A-Fa-f]{2})",OA=new RegExp(`${Oo}hsl\\s*\\(${Sr},${Di},${Di}\\)${zo}`),zA=new RegExp(`${Oo}hsv\\s*\\(${Sr},${Di},${Di}\\)${zo}`),MA=new RegExp(`${Oo}hsla\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),DA=new RegExp(`${Oo}hsva\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),IA=new RegExp(`${Oo}rgb\\s*\\(${Sr},${Sr},${Sr}\\)${zo}`),FA=new RegExp(`${Oo}rgba\\s*\\(${Sr},${Sr},${Sr},${Sr}\\)${zo}`),zb=new RegExp(`${Oo}#${ga}${ga}${ga}${zo}`),Mb=new RegExp(`${Oo}#${ma}${ma}${ma}${zo}`),Db=new RegExp(`${Oo}#${ga}${ga}${ga}${ga}${zo}`),Ib=new RegExp(`${Oo}#${ma}${ma}${ma}${ma}${zo}`);function cr(e){return parseInt(e,16)}function Cl(e){try{let t;if(t=MA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=OA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function _a(e){try{let t;if(t=DA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=zA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Tn(e){try{let t;if(t=Mb.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),1];if(t=IA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),1];if(t=FA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),Uo(t[13])];if(t=zb.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),1];if(t=Ib.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),Uo(cr(t[4])/255)];if(t=Db.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),Uo(cr(t[4]+t[4])/255)];if(e in Hx)return Tn(Hx[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function AA(e){return e>1?1:e<0?0:e}function BA(e,t,n){return`rgb(${bn(e)}, ${bn(t)}, ${bn(n)})`}function kv(e,t,n,r){return`rgba(${bn(e)}, ${bn(t)}, ${bn(n)}, ${AA(r)})`}function dp(e,t,n,r,o){return bn((e*t*(1-r)+n*r)/o)}function pt(e,t){Array.isArray(e)||(e=Tn(e)),Array.isArray(t)||(t=Tn(t));const n=e[3],r=t[3],o=Uo(n+r-n*r);return kv(dp(e[0],n,t[0],r,o),dp(e[1],n,t[1],r,o),dp(e[2],n,t[2],r,o),o)}function He(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e);return t.alpha?kv(n,r,o,t.alpha):kv(n,r,o,i)}function kn(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e),{lightness:a=1,alpha:l=1}=t;return _o([n*a,r*a,o*a,i*l])}function Uo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function To(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function bn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function zn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function _v(e){const[t,n,r]=Array.isArray(e)?e:Tn(e);return BA(t,n,r)}function _o(e){const[t,n,r]=e;return 3 in e?`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, ${Uo(e[3])})`:`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, 1)`}function Rv(e){return`hsv(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function Ra(e){const[t,n,r]=e;return 3 in e?`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Pv(e){return`hsl(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function $i(e){const[t,n,r]=e;return 3 in e?`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Ti(e){if(typeof e=="string"){let r;if(r=Mb.exec(e))return`${r[0]}FF`;if(r=Ib.exec(e))return r[0];if(r=zb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Db.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>bn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":bn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function _s(e){if(typeof e=="string"){let t;if(t=Mb.exec(e))return t[0];if(t=Ib.exec(e))return t[0].slice(0,7);if(t=zb.exec(e)||Db.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>bn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Tr(e=8){return Math.random().toString(16).slice(2,2+e)}function L_(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Va(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Nr(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Nr(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Nr(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Wn(e){return Object.keys(e)}const Ut=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Ar(e):typeof e=="number"?Ar(String(e)):null,Vx=new Set;function LA(e,t){const n=`[naive/${e}]: ${t}`;Vx.has(n)||(Vx.add(n),console.error(n))}function Qn(e,t){console.error(`[naive/${e}]: ${t}`)}function Nn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function $v(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function hc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function ju(e,t="default",n=void 0){const r=e[t];if(!r)return Qn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Nr(r(n));return o.length===1?o[0]:(Qn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function N_(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function H_(e){return t=>{t?e.value=t.$el:e.value=null}}function El(e){return e.some(t=>Ns(t)?!(t.type===Pr||t.type===Ot&&!El(t.children)):!0)?e:null}function gt(e,t){return e&&El(e())||t()}function Da(e,t,n){return e&&El(e(t))||n(t)}function kt(e,t){const n=e&&El(e());return t(n||null)}function NA(e,t,n){const r=e&&El(e(t));return n(r||null)}function Pa(e){return!(e&&El(e()))}function Rs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function HA(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===$r);return!!(n&&n.value===!1)}const Tv=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),jA=/^(\d|\.)+$/,Wx=/(\d|\.)+/;function Mt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(jA.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Wx.exec(e);return o?e.replace(Wx,String((Number(o[0])+n)*t)):e}return e}function Ia(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function VA(e){let t=0;for(let n=0;n{let o=VA(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function KA(e,t){const n=[];return t.split(j_).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function qA(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=UA(t,n):t=KA(t,n))}),t.join(", ").replace(WA," ")}function Ux(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function dh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function YA(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Qc(e){return e?/^\s*@(s|m)/.test(e):!1}const GA=/[A-Z]/g;function V_(e){return e.replace(GA,t=>"-"+t.toLowerCase())}function XA(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${V_(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function ZA(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Kx(e,t,n,r){if(!t)return"";const o=ZA(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=V_(l),s!=null&&a.push(` ${l}${XA(s)}`)}),e&&a.push("}"),a.join(` -`)}function Ov(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))Ov(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Ov(o,t,n):o&&n(o)}else r&&n(r)})}function W_(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Qc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});Qc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Qc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});Qc(d)?l=d:t.push(d)}const s=qA(t),c=Kx(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Ov(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Kx(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else W_(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function U_(e,t,n,r=!1){const o=[];return W_(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function qs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function QA(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Ux),t.els=[];else{const o=dh(n);o&&r.includes(o)&&(Ux(o),t.els=r.filter(i=>i!==o))}}function qx(e,t){e.push(t)}function JA(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,U_(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=qs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=dh(n);if(d!==null&&!a)return d;const f=d!=null?d:YA(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),qx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),qx(t.els,f),f}function eB(e){return U_(this,this.instance,e)}function tB(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return JA(this.instance,this,t,r,o,i,a,l,n)}function nB(e={}){const{id:t}=e;QA(this.instance,this,t)}const Jc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:eB,mount:tB,unmount:nB}},rB=function(e,t,n,r){return Array.isArray(t)?Jc(e,{$:null},null,t):Array.isArray(n)?Jc(e,t,null,n):Array.isArray(r)?Jc(e,t,n,r):Jc(e,t,n,null)};function K_(e={}){let t=null;const n={c:(...r)=>rB(n,...r),use:(r,...o)=>r.install(n,...o),find:dh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function oB(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return dh(e)!==null}function iB(e){let t=".",n="__",r="--",o;if(e){let v=e.blockPrefix;v&&(t=v),v=e.elementPrefix,v&&(n=v),v=e.modifierPrefix,v&&(r=v)}const i={install(v){o=v.c;const b=v.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(v){let b,g;return{before(m){b=m.bem.b,g=m.bem.els,m.bem.els=null},after(m){m.bem.b=b,m.bem.els=g},$({context:m,props:y}){return v=typeof v=="string"?v:v({context:m,props:y}),m.bem.b=v,`${(y==null?void 0:y.bPrefix)||t}${m.bem.b}`}}}function l(v){let b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({context:g,props:m}){return v=typeof v=="string"?v:v({context:g,props:m}),g.bem.els=v.split(",").map(y=>y.trim()),g.bem.els.map(y=>`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}${n}${y}`).join(", ")}}}function s(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=v.split(",").map(x=>x.trim());function y(x){return m.map(w=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${m!==null&&m.length>0?`${n}${m[0]}`:""}${r}${v})`}}}return Object.assign(i,{cB:(...v)=>o(a(v[0]),v[1],v[2]),cE:(...v)=>o(l(v[0]),v[1],v[2]),cM:(...v)=>o(s(v[0]),v[1],v[2]),cNotM:(...v)=>o(c(v[0]),v[1],v[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const aB="n",Ys=`.${aB}-`,lB="__",sB="--",q_=K_(),Y_=iB({blockPrefix:Ys,elementPrefix:lB,modifierPrefix:sB});q_.use(Y_);const{c:O,find:uce}=q_,{cB:S,cE:M,cM:I,cNotM:mt}=Y_;function Mo(e){return O(({props:{bPrefix:t}})=>`${t||Ys}modal, ${t||Ys}drawer`,[e])}function ei(e){return O(({props:{bPrefix:t}})=>`${t||Ys}popover`,[e])}function G_(e){return O(({props:{bPrefix:t}})=>`&${t||Ys}modal`,e)}const cB=(...e)=>O(">",[S(...e)]);let up;function dB(){return up===void 0&&(up=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),up}const lr=typeof document<"u"&&typeof window<"u",X_=new WeakSet;function Fa(e){X_.add(e)}function Z_(e){return!X_.has(e)}function uB(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Jo())===null||r===void 0?void 0:r.proxy;it(n,a),a(n.value),Bt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function fB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),it(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Bt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function hB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),It(()=>{const o=n();!o||r[t].push(o)}),Bt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function pB(e,t,n){if(!t)return e;const r=F(e.value);let o=null;return it(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Q_(e){const t=F(!!e.value);if(t.value)return $o(t);const n=it(e,r=>{r&&(t.value=!0,n())});return $o(t)}function lt(e){const t=P(e),n=F(t.value);return it(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Fb(){return Jo()!==null}const uh=typeof window<"u";let Sl,Ps;const vB=()=>{var e,t;Sl=uh?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ps=!1,Sl!==void 0?Sl.then(()=>{Ps=!0}):Ps=!0};vB();function fh(e){if(Ps)return;let t=!1;It(()=>{Ps||Sl==null||Sl.then(()=>{t||e()})}),Bt(()=>{t=!0})}function Fd(e){return e.composedPath()[0]}const gB={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function mB(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Fd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Fd(a))},i=a=>{!r||t.contains(Fd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function J_(e,t,n){const r=gB[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=mB(e,t,n)),i}function bB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{_t(i,document,o[i],r)}),!0}return!1}function yB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{Ct(i,document,o[i],r)}),!0}return!1}function xB(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(k,T,$){const R=k[T];return k[T]=function(){return $.apply(k,arguments),R.apply(k,arguments)},k}function i(k,T){k[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var k;return(k=a.get(this))!==null&&k!==void 0?k:null}function c(k,T){l!==void 0&&Object.defineProperty(k,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const k=function(T){const{type:$,eventPhase:R,bubbles:D}=T,z=Fd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],W=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!D&&W!==void 0){const re=W.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(W===void 0)return;for(let K=0;Kz(T))};return k.displayName="evtdUnifiedWindowEventHandler",k}const v=h(),b=p();function g(k,T){const $=d[k];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,v,k==="capture")),$[T]}function m(k){return f[k]===void 0&&(f[k]=new Set,window.addEventListener(k,b)),f[k]}function y(k,T){let $=k.get(T);return $===void 0&&k.set(T,$=new Set),$}function C(k,T,$,R){const D=d[T][$];if(D!==void 0){const z=D.get(k);if(z!==void 0&&z.has(R))return!0}return!1}function x(k,T){const $=f[k];return!!($!==void 0&&$.has(T))}function w(k,T,$,R){let D;if(typeof R=="object"&&R.once===!0?D=E=>{_(k,T,D,R),$(E)}:D=$,bB(k,T,D,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=g(A,k),j=y(L,T);if(j.has(D)||j.add(D),T===window){const E=m(k);E.has(D)||E.add(D)}}function _(k,T,$,R){if(yB(k,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=g(A,k),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",k,$)&&x(k,$)){const W=f[k];W.delete($),W.size===0&&(window.removeEventListener(k,b),f[k]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(k,v,A==="capture"),d[A][k]=void 0)}return{on:w,off:_}}const{on:_t,off:Ct}=xB(),fs=F(null);function Yx(e){if(e.clientX>0||e.clientY>0)fs.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?fs.value={x:n+o/2,y:r+i/2}:fs.value={x:0,y:0}}else fs.value=null}}let ed=0,Gx=!0;function eR(){if(!uh)return $o(F(null));ed===0&&_t("click",document,Yx,!0);const e=()=>{ed+=1};return Gx&&(Gx=Fb())?(Qo(e),Bt(()=>{ed-=1,ed===0&&Ct("click",document,Yx,!0)})):e(),$o(fs)}const wB=F(void 0);let td=0;function Xx(){wB.value=Date.now()}let Zx=!0;function tR(e){if(!uh)return $o(F(!1));const t=F(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}td===0&&_t("click",window,Xx,!0);const i=()=>{td+=1,_t("click",window,o,!0)};return Zx&&(Zx=Fb())?(Qo(i),Bt(()=>{td-=1,td===0&&Ct("click",window,Xx,!0),Ct("click",window,o,!0),r()})):i(),$o(t)}function St(e,t){return it(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function Hn(){const e=F(!1);return It(()=>{e.value=!0}),$o(e)}function Ii(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const CB=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function SB(){return CB}const kB={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function _B(e){return`(min-width: ${e}px)`}const es={};function RB(e=kB){if(!uh)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=F({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;es[i]===void 0?(a=window.matchMedia(_B(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,es[i]={mql:a,cbs:l}):(a=es[i].mql,l=es[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Bt(()=>{n.forEach(o=>{const{cbs:i}=es[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function Ab(e={},t){const n=ji({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(_t("keydown",document,i),_t("keyup",document,a)),t!==void 0&&it(t,s=>{s?(_t("keydown",document,i),_t("keyup",document,a)):(Ct("keydown",document,i),Ct("keyup",document,a))})};return Fb()?(Qo(l),Bt(()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a))})):l(),$o(n)}const Bb="n-internal-select-menu",nR="n-internal-select-menu-body",pc="n-modal-body",rR="n-modal",vc="n-drawer-body",Eb="n-drawer",Ll="n-popover-body",oR="__disabled__";function Ht(e){const t=Le(pc,null),n=Le(vc,null),r=Le(Ll,null),o=Le(nR,null),i=F();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};It(()=>{_t("fullscreenchange",document,a)}),Bt(()=>{Ct("fullscreenchange",document,a)})}return lt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?oR:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Ht.tdkey=oR;Ht.propTo={type:[String,Object,Boolean],default:void 0};let Qx=!1;function Lb(){if(!!lr&&!!window.CSS&&!Qx&&(Qx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function zv(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Mv(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Mv(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Mv(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function Jx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Mv(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ui=null;function iR(){if(ui===null&&(ui=document.getElementById("v-binder-view-measurer"),ui===null)){ui=document.createElement("div"),ui.id="v-binder-view-measurer";const{style:e}=ui;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ui)}return ui.getBoundingClientRect()}function PB(e,t){const n=iR();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function fp(e){const t=e.getBoundingClientRect(),n=iR();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function $B(e){return e.nodeType===9?null:e.parentNode}function aR(e){if(e===null)return null;const t=$B(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return aR(t)}const TB=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ot("VBinder",(t=Jo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=F(null),o=m=>{r.value=m,n&&e.syncTargetWithParent&&n.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=aR(m),m!==null;)i.push(m);for(const y of i)_t("scroll",y,f,!0)},l=()=>{for(const m of i)Ct("scroll",m,f,!0);i=[]},s=new Set,c=m=>{s.size===0&&a(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Ma(h)},h=()=>{s.forEach(m=>m())},p=new Set,v=m=>{p.size===0&&_t("resize",window,g),p.has(m)||p.add(m)},b=m=>{p.has(m)&&p.delete(m),p.size===0&&Ct("resize",window,g)},g=()=>{p.forEach(m=>m())};return Bt(()=>{Ct("resize",window,g),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:v,removeResizeListener:b}},render(){return zv("binder",this.$slots)}}),qr=TB,Yr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?un(Jx("follower",this.$slots),[[t]]):Jx("follower",this.$slots)}}),ol="@@mmoContext",OB={mounted(e,{value:t}){e[ol]={handler:void 0},typeof t=="function"&&(e[ol].handler=t,_t("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ol];typeof t=="function"?n.handler?n.handler!==t&&(Ct("mousemoveoutside",e,n.handler),n.handler=t,_t("mousemoveoutside",e,t)):(e[ol].handler=t,_t("mousemoveoutside",e,t)):n.handler&&(Ct("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ol];t&&Ct("mousemoveoutside",e,t),e[ol].handler=void 0}},zB=OB,il="@@coContext",MB={mounted(e,{value:t,modifiers:n}){e[il]={handler:void 0},typeof t=="function"&&(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[il];typeof t=="function"?r.handler?r.handler!==t&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,_t("clickoutside",e,t,{capture:n.capture})):(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[il];n&&Ct("clickoutside",e,n,{capture:t.capture}),e[il].handler=void 0}},gr=MB;function DB(e,t){console.error(`[vdirs/${e}]: ${t}`)}class IB{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&DB("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const hp=new IB,al="@@ziContext",FB={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[al]={enabled:!!o,initialized:!1},o&&(hp.ensureZIndex(e,r),e[al].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[al].enabled;o&&!i&&(hp.ensureZIndex(e,r),e[al].initialized=!0),e[al].enabled=!!o},unmounted(e,t){if(!e[al].initialized)return;const{value:n={}}=t,{zIndex:r}=n;hp.unregister(e,r)}},gc=FB,lR=Symbol("@css-render/vue3-ssr");function AB(e,t){return``}function BB(e,t){const n=Le(lR,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(AB(e,t)))}const EB=typeof document<"u";function Vi(){if(EB)return;const e=Le(lR,null);if(e!==null)return{adapter:BB,context:e}}function e1(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:So}=K_(),hh="vueuc-style";function t1(e){return e&-e}class LB{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=t1(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?zv("lazy-teleport",this.$slots):u(cc,{disabled:this.disabled,to:this.mergedTo},zv("lazy-teleport",this.$slots)):null}}),nd={top:"bottom",bottom:"top",left:"right",right:"left"},r1={start:"end",center:"center",end:"start"},pp={top:"height",bottom:"height",left:"width",right:"width"},NB={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},HB={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},jB={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},o1={top:!0,bottom:!1,left:!0,right:!1},i1={top:"end",bottom:"start",left:"end",right:"start"};function VB(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(p,v,b)=>{let g=0,m=0;const y=n[p]-t[v]-t[p];return y>0&&r&&(b?m=o1[v]?y:-y:g=o1[v]?y:-y),{left:g,top:m}},f=a==="left"||a==="right";if(s!=="center"){const p=jB[e],v=nd[p],b=pp[p];if(n[b]>t[b]){if(t[p]+t[b]t[v]&&(s=r1[l])}else{const p=a==="bottom"||a==="top"?"left":"top",v=nd[p],b=pp[p],g=(n[b]-t[b])/2;(t[p]t[v]?(s=i1[p],c=d(b,p,f)):(s=i1[v],c=d(b,v,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Or=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=lt(()=>e.enabled!==void 0?e.enabled:e.show),r=F(null),o=F(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};It(()=>{n.value&&(s(),i())});const l=Vi();KB.mount({id:"vueuc/binder",head:!0,anchorMetaName:hh,ssr:l}),Bt(()=>{a()}),fh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const p=t.targetRef,{x:v,y:b,overlap:g}=e,m=v!==void 0&&b!==void 0?PB(v,b):fp(p);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:_}=e;h.setAttribute("v-placement",x),g?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;y==="target"?k.width=`${m.width}px`:y!==void 0?k.width=y:k.width="",C==="target"?k.minWidth=`${m.width}px`:C!==void 0?k.minWidth=C:k.minWidth="";const T=fp(h),$=fp(o.value),{left:R,top:D,placement:z}=VB(x,m,T,w,_,g),A=WB(z,g),{left:L,top:j,transform:E}=UB(z,$,m,D,R,g);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(D)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};it(n,h=>{h?(i(),c()):a()});const c=()=>{Rt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{it(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{it(xe(e,h),c)}),it(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Hn(),f=lt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(mc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?un(n,[[gc,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var $a=[],qB=function(){return $a.some(function(e){return e.activeTargets.length>0})},YB=function(){return $a.some(function(e){return e.skippedTargets.length>0})},a1="ResizeObserver loop completed with undelivered notifications.",GB=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:a1}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=a1),window.dispatchEvent(e)},Gs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gs||(Gs={}));var Ta=function(e){return Object.freeze(e)},XB=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ta(this)}return e}(),sR=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ta(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Nb=function(e){return e instanceof SVGElement&&"getBBox"in e},cR=function(e){if(Nb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},l1=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ZB=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$s=typeof window<"u"?window:{},rd=new WeakMap,s1=/auto|scroll/,QB=/^tb|vertical/,JB=/msie|trident/i.test($s.navigator&&$s.navigator.userAgent),ho=function(e){return parseFloat(e||"0")},kl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new XB((n?t:e)||0,(n?e:t)||0)},c1=Ta({devicePixelContentBoxSize:kl(),borderBoxSize:kl(),contentBoxSize:kl(),contentRect:new sR(0,0,0,0)}),dR=function(e,t){if(t===void 0&&(t=!1),rd.has(e)&&!t)return rd.get(e);if(cR(e))return rd.set(e,c1),c1;var n=getComputedStyle(e),r=Nb(e)&&e.ownerSVGElement&&e.getBBox(),o=!JB&&n.boxSizing==="border-box",i=QB.test(n.writingMode||""),a=!r&&s1.test(n.overflowY||""),l=!r&&s1.test(n.overflowX||""),s=r?0:ho(n.paddingTop),c=r?0:ho(n.paddingRight),d=r?0:ho(n.paddingBottom),f=r?0:ho(n.paddingLeft),h=r?0:ho(n.borderTopWidth),p=r?0:ho(n.borderRightWidth),v=r?0:ho(n.borderBottomWidth),b=r?0:ho(n.borderLeftWidth),g=f+c,m=s+d,y=b+p,C=h+v,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,_=o?g+y:0,k=o?m+C:0,T=r?r.width:ho(n.width)-_-w,$=r?r.height:ho(n.height)-k-x,R=T+g+w+y,D=$+m+x+C,z=Ta({devicePixelContentBoxSize:kl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:kl(R,D,i),contentBoxSize:kl(T,$,i),contentRect:new sR(f,s,T,$)});return rd.set(e,z),z},uR=function(e,t,n){var r=dR(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Gs.DEVICE_PIXEL_CONTENT_BOX:return a;case Gs.BORDER_BOX:return o;default:return i}},e6=function(){function e(t){var n=dR(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ta([n.borderBoxSize]),this.contentBoxSize=Ta([n.contentBoxSize]),this.devicePixelContentBoxSize=Ta([n.devicePixelContentBoxSize])}return e}(),fR=function(e){if(cR(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},t6=function(){var e=1/0,t=[];$a.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new e6(c.target),f=fR(c.target);l.push(d),c.lastReportedSize=uR(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},n6=function(){var e=0;for(d1(e);qB();)e=t6(),d1(e);return YB()&&GB(),e>0},vp,hR=[],r6=function(){return hR.splice(0).forEach(function(e){return e()})},o6=function(e){if(!vp){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return r6()}).observe(n,r),vp=function(){n.textContent="".concat(t?t--:t++)}}hR.push(e),vp()},i6=function(e){o6(function(){requestAnimationFrame(e)})},Ad=0,a6=function(){return!!Ad},l6=250,s6={attributes:!0,characterData:!0,childList:!0,subtree:!0},u1=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],f1=function(e){return e===void 0&&(e=0),Date.now()+e},gp=!1,c6=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=l6),!gp){gp=!0;var r=f1(t);i6(function(){var o=!1;try{o=n6()}finally{if(gp=!1,t=r-f1(),!a6())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,s6)};document.body?n():$s.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),u1.forEach(function(n){return $s.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),u1.forEach(function(n){return $s.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Dv=new c6,h1=function(e){!Ad&&e>0&&Dv.start(),Ad+=e,!Ad&&Dv.stop()},d6=function(e){return!Nb(e)&&!ZB(e)&&getComputedStyle(e).display==="inline"},u6=function(){function e(t,n){this.target=t,this.observedBox=n||Gs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uR(this.target,this.observedBox,!0);return d6(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),f6=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),od=new WeakMap,p1=function(e,t){for(var n=0;n=0&&(i&&$a.splice($a.indexOf(r),1),r.observationTargets.splice(o,1),h1(-1))},e.disconnect=function(t){var n=this,r=od.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),h6=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");id.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");id.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");id.unobserve(this,t)},e.prototype.disconnect=function(){id.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class p6{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||h6)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Vu=new p6,jr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Jo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}It(()=>{const o=n.$el;if(o===void 0){e1("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){e1("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Vu.registerHandler(o.nextElementSibling,r),t=!0)}),Bt(()=>{t&&Vu.unregisterHandler(n.$el.nextElementSibling)})},render(){return db(this.$slots,"default")}});let ad;function v6(){return ad===void 0&&("matchMedia"in window?ad=window.matchMedia("(pointer:coarse)").matches:ad=!1),ad}let mp;function v1(){return mp===void 0&&(mp="chrome"in window?window.devicePixelRatio:1),mp}const g6=So(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[So("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[So("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),qo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Vi();g6.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:hh,ssr:t}),It(()=>{const{defaultScrollIndex:D,defaultScrollKey:z}=e;D!=null?v({index:D}):z!=null&&v({key:z})});let n=!1,r=!1;lb(()=>{if(n=!1,!r){r=!0;return}v({top:f.value,left:d})}),lc(()=>{n=!0,r||(r=!0)});const o=P(()=>{const D=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{D.set(A[z],L)}),D}),i=F(null),a=F(void 0),l=new Map,s=P(()=>{const{items:D,itemSize:z,keyField:A}=e,L=new LB(D.length,z);return D.forEach((j,E)=>{const W=j[A],K=l.get(W);K!==void 0&&L.add(E,K)}),L}),c=F(0);let d=0;const f=F(0),h=lt(()=>Math.max(s.value.getBound(f.value-hn(e.paddingTop))-1,0)),p=P(()=>{const{value:D}=a;if(D===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(D/A+1),z.length-1),E=[];for(let W=L;W<=j;++W)E.push(z[W]);return E}),v=(D,z)=>{if(typeof D=="number"){y(D,z,"auto");return}const{left:A,top:L,index:j,key:E,position:W,behavior:K,debounce:Q=!0}=D;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)m(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&m(V,K,Q)}else W==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):W==="top"&&y(0,0,K)};let b,g=null;function m(D,z,A){const{value:L}=s,j=L.sum(D)+hn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=D,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{b=void 0,g=null},16);const{scrollTop:E,offsetHeight:W}=i.value;if(j>E){const K=L.get(D);j+K<=E+W||i.value.scrollTo({left:0,top:j+K-W,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(D,z,A){i.value.scrollTo({left:D,top:z,behavior:A})}function C(D,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,W=o.value.get(D),K=E.get(W),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(D):l.set(D,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(W,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(W);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Wee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!v6();let w=!1;function _(D){var z;(z=e.onScroll)===null||z===void 0||z.call(e,D),(!x||!w)&&$()}function k(D){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,D),x){const A=i.value;if(A!=null){if(D.deltaX===0&&(A.scrollTop===0&&D.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&D.deltaY>=0))return;D.preventDefault(),A.scrollTop+=D.deltaY/v1(),A.scrollLeft+=D.deltaX/v1(),$(),w=!0,Ma(()=>{w=!1})}}}function T(D){if(n||R(D.target)||D.contentRect.height===a.value)return;a.value=D.contentRect.height;const{onResize:z}=e;z!==void 0&&z(D)}function $(){const{value:D}=i;D!=null&&(f.value=D.scrollTop,d=D.scrollLeft)}function R(D){let z=D;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:D}=e,z=yn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:D?"":z,minHeight:D?z:"",paddingTop:yn(e.paddingTop),paddingBottom:yn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${yn(s.value.sum(h.value))})`})),viewportItems:p,listElRef:i,itemsElRef:F(null),scrollTo:v,handleListResize:T,handleListScroll:_,handleListWheel:k,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(jr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Gn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(jr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),m6=So(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[So("&::-webkit-scrollbar",{width:0,height:0})]),b6=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=F(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let _=y;_>=0;--_){const k=g-1-_;w!==void 0?w(k):c.textContent=`${k}`;const T=c.offsetWidth;if(v-=h[_],v+T<=f||_===0){b=!0,y=_-1,p&&(y===-1?(p.style.maxWidth=`${f-T}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");break}}}}const{onUpdateOverflow:m}=e;b?m!==void 0&&m(!0):(m!==void 0&&m(!1),c.setAttribute(ta,""))}const i=Vi();return y6.mount({id:"vueuc/overflow",head:!0,anchorMetaName:hh,ssr:i}),It(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return Rt(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[db(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pR(e){return e instanceof HTMLElement}function vR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(pR(n)&&(mR(n)||gR(n)))return!0}return!1}function mR(e){if(!x6(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function x6(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ts=[];const Hb=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Tr(),n=F(null),r=F(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ts[ts.length-1]===t}function s(g){var m;g.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,g))}It(()=>{it(()=>e.active,g=>{g?(f(),_t("keydown",document,s)):(Ct("keydown",document,s),o&&h())},{immediate:!0})}),Bt(()=>{Ct("keydown",document,s),o&&h()});function c(g){if(!i&&l()){const m=d();if(m===null||m.contains(vr(g)))return;p("first")}}function d(){const g=n.value;if(g===null)return null;let m=g;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var g;if(!e.disabled){if(ts.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?p("first"):(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),ts=ts.filter(y=>y!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(g){if(!!l()&&e.active){const m=n.value,y=r.value;if(m!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const x=g==="first"?vR(C):gR(C);i=!1,x||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function v(g){if(i)return;const m=d();m!==null&&(g.relatedTarget!==null&&m.contains(g.relatedTarget)?p("last"):p("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?p("last"):p("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:v,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u(Ot,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ph(e,t){t&&(It(()=>{const{value:n}=e;n&&Vu.registerHandler(n,t)}),Bt(()=>{const{value:n}=e;n&&Vu.unregisterHandler(n)}))}let ll=0,m1="",b1="",y1="",x1="";const Iv=F("0px");function bR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=m1,t.style.overflow=b1,t.style.overflowX=y1,t.style.overflowY=x1,Iv.value="0px"};It(()=>{n=it(e,i=>{if(i){if(!ll){const a=window.innerWidth-t.offsetWidth;a>0&&(m1=t.style.marginRight,t.style.marginRight=`${a}px`,Iv.value=`${a}px`),b1=t.style.overflow,y1=t.style.overflowX,x1=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,ll++}else ll--,ll||o(),r=!1},{immediate:!0})}),Bt(()=>{n==null||n(),r&&(ll--,ll||o(),r=!1)})}const jb=F(!1),w1=()=>{jb.value=!0},C1=()=>{jb.value=!1};let ns=0;const yR=()=>(lr&&(Qo(()=>{ns||(window.addEventListener("compositionstart",w1),window.addEventListener("compositionend",C1)),ns++}),Bt(()=>{ns<=1?(window.removeEventListener("compositionstart",w1),window.removeEventListener("compositionend",C1),ns=0):ns--})),jb);function Vb(e){const t={isDeactivated:!1};let n=!1;return lb(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),lc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function S1(e){return e.nodeName==="#document"}const Wu="n-form-item";function Sn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Wu,null);ot(Wu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Bt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var w6=typeof global=="object"&&global&&global.Object===Object&&global;const xR=w6;var C6=typeof self=="object"&&self&&self.Object===Object&&self,S6=xR||C6||Function("return this")();const Gr=S6;var k6=Gr.Symbol;const Fi=k6;var wR=Object.prototype,_6=wR.hasOwnProperty,R6=wR.toString,rs=Fi?Fi.toStringTag:void 0;function P6(e){var t=_6.call(e,rs),n=e[rs];try{e[rs]=void 0;var r=!0}catch{}var o=R6.call(e);return r&&(t?e[rs]=n:delete e[rs]),o}var $6=Object.prototype,T6=$6.toString;function O6(e){return T6.call(e)}var z6="[object Null]",M6="[object Undefined]",k1=Fi?Fi.toStringTag:void 0;function Wa(e){return e==null?e===void 0?M6:z6:k1&&k1 in Object(e)?P6(e):O6(e)}function Ai(e){return e!=null&&typeof e=="object"}var D6="[object Symbol]";function vh(e){return typeof e=="symbol"||Ai(e)&&Wa(e)==D6}function CR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=vE)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yE(e){return function(){return e}}var xE=function(){try{var e=Ka(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ku=xE;var wE=Ku?function(e,t){return Ku(e,"toString",{configurable:!0,enumerable:!1,value:yE(t),writable:!0})}:Wb;const CE=wE;var SE=bE(CE);const kE=SE;var _E=9007199254740991,RE=/^(?:0|[1-9]\d*)$/;function Kb(e,t){var n=typeof e;return t=t==null?_E:t,!!t&&(n=="number"||n!="symbol"&&RE.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=DE}function Nl(e){return e!=null&&Yb(e.length)&&!Ub(e)}function IE(e,t,n){if(!Wr(n))return!1;var r=typeof t;return(r=="number"?Nl(n)&&Kb(t,n.length):r=="string"&&t in n)?bc(n[t],e):!1}function FE(e){return ME(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&IE(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function QL(e,t){var n=this.__data__,r=gh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ti(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:C8(e,t,n)}var k8="\\ud800-\\udfff",_8="\\u0300-\\u036f",R8="\\ufe20-\\ufe2f",P8="\\u20d0-\\u20ff",$8=_8+R8+P8,T8="\\ufe0e\\ufe0f",O8="\\u200d",z8=RegExp("["+O8+k8+$8+T8+"]");function IR(e){return z8.test(e)}function M8(e){return e.split("")}var FR="\\ud800-\\udfff",D8="\\u0300-\\u036f",I8="\\ufe20-\\ufe2f",F8="\\u20d0-\\u20ff",A8=D8+I8+F8,B8="\\ufe0e\\ufe0f",E8="["+FR+"]",Av="["+A8+"]",Bv="\\ud83c[\\udffb-\\udfff]",L8="(?:"+Av+"|"+Bv+")",AR="[^"+FR+"]",BR="(?:\\ud83c[\\udde6-\\uddff]){2}",ER="[\\ud800-\\udbff][\\udc00-\\udfff]",N8="\\u200d",LR=L8+"?",NR="["+B8+"]?",H8="(?:"+N8+"(?:"+[AR,BR,ER].join("|")+")"+NR+LR+")*",j8=NR+LR+H8,V8="(?:"+[AR+Av+"?",Av,BR,ER,E8].join("|")+")",W8=RegExp(Bv+"(?="+Bv+")|"+V8+j8,"g");function U8(e){return e.match(W8)||[]}function K8(e){return IR(e)?U8(e):M8(e)}function q8(e){return function(t){t=Ba(t);var n=IR(t)?K8(t):void 0,r=n?n[0]:t.charAt(0),o=n?S8(n,1).join(""):t.slice(1);return r[e]()+o}}var Y8=q8("toUpperCase");const HR=Y8;function G8(e){return HR(Ba(e).toLowerCase())}function X8(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&SH?new Xu:void 0;for(i.set(e,t),i.set(t,e);++f=t||k<0||f&&T>=i}function m(){var _=wp();if(g(_))return y(_);l=setTimeout(m,b(_))}function y(_){return l=void 0,h&&r?p(_):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(wp())}function w(){var _=wp(),k=g(_);if(r=arguments,o=this,s=_,k){if(l===void 0)return v(s);if(f)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),a}return w.cancel=C,w.flush=x,w}function Hv(e,t,n){(n!==void 0&&!bc(e[t],n)||n===void 0&&!(t in e))&&qb(e,t,n)}function y7(e){return Ai(e)&&Nl(e)}function jv(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function x7(e){return OE(e,TR(e))}function w7(e,t,n,r,o,i,a){var l=jv(e,n),s=jv(t,n),c=a.get(s);if(c){Hv(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Vr(s),p=!h&&Yu(s),v=!h&&!p&&Xb(s);d=s,h||p||v?Vr(l)?d=l:y7(l)?d=pE(l):p?(f=!1,d=XN(s,!0)):v?(f=!1,d=vH(s,!0)):d=[]:w8(s)||qu(s)?(d=l,qu(l)?d=x7(l):(!Wr(l)||Ub(l))&&(d=gH(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Hv(e,n,d)}function l2(e,t,n,r,o){e!==t&&a2(t,function(i,a){if(o||(o=new Ro),Wr(i))w7(e,t,a,n,l2,r,o);else{var l=r?r(jv(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Hv(e,a,l)}},TR)}function C7(e,t){var n=-1,r=Nl(e)?Array(e.length):[];return h7(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function S7(e,t){var n=Vr(e)?CR:C7;return n(e,l7(t))}var k7=t2(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const s2=k7;var _7=FE(function(e,t,n){l2(e,t,n)});const bl=_7;var R7=jN("round");const P7=R7;var $7="Expected a function";function Os(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError($7);return Wr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),b7(e,t,{leading:r,maxWait:t,trailing:o})}const mr={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:T7,fontFamily:O7,lineHeight:z7}=mr,c2=O("body",` - margin: 0; - font-size: ${T7}; - font-family: ${O7}; - line-height: ${z7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Ur="n-config-provider",Ol="naive-ui-style";function Se(e,t,n,r,o,i){const a=Vi(),l=Le(Ur,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Ol,ssr:a}),l!=null&&l.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:a})};a?c():Qo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:p={},builtinThemeOverrides:v={}}=o,{common:b,peers:g}=p,{common:m=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:k,peers:T={}}=_,$=bl({},d||y||m||r.common,w,k,b),R=bl((c=f||C||r.self)===null||c===void 0?void 0:c($),v,_,p);return{common:$,self:R,peers:bl({},r.peers,x,h),peerOverrides:bl({},v.peers,T,g)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const d2="n";function je(e={},t={defaultBordered:!0}){const n=Le(Ur,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||d2),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const M7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},D7=M7;function Cp(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function yt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function wt(e){yt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Bd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Jt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var I7={};function qa(){return I7}function Ea(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=wt(e),p=h.getUTCDay(),v=(p1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?A7(l,function(f){return f.test(a)}):F7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function F7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function A7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var E7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L7=function(t,n,r){var o,i=E7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const N7=L7;var H7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},j7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W7={date:Cp({formats:H7,defaultWidth:"full"}),time:Cp({formats:j7,defaultWidth:"full"}),dateTime:Cp({formats:V7,defaultWidth:"full"})};const U7=W7;var K7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q7=function(t,n,r,o){return K7[t]};const Y7=q7;var G7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},X7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Z7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Q7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},e9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},t9=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n9={ordinalNumber:t9,era:os({values:G7,defaultWidth:"wide"}),quarter:os({values:X7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:os({values:Z7,defaultWidth:"wide"}),day:os({values:Q7,defaultWidth:"wide"}),dayPeriod:os({values:J7,defaultWidth:"wide",formattingValues:e9,defaultFormattingWidth:"wide"})};const r9=n9;var o9=/^(\d+)(th|st|nd|rd)?/i,i9=/\d+/i,a9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l9={any:[/^b/i,/^(a|c)/i]},s9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c9={any:[/1/i,/2/i,/3/i,/4/i]},d9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g9={ordinalNumber:B7({matchPattern:o9,parsePattern:i9,valueCallback:function(t){return parseInt(t,10)}}),era:is({matchPatterns:a9,defaultMatchWidth:"wide",parsePatterns:l9,defaultParseWidth:"any"}),quarter:is({matchPatterns:s9,defaultMatchWidth:"wide",parsePatterns:c9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:is({matchPatterns:d9,defaultMatchWidth:"wide",parsePatterns:u9,defaultParseWidth:"any"}),day:is({matchPatterns:f9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:p9,defaultMatchWidth:"any",parsePatterns:v9,defaultParseWidth:"any"})};const m9=g9;var b9={code:"en-US",formatDistance:N7,formatLong:U7,formatRelative:Y7,localize:r9,match:m9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const yh=b9,y9={name:"en-US",locale:yh},x9=y9;function sd(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Fn(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function w9(e,t){yt(2,arguments);var n=wt(e).getTime(),r=Jt(t);return new Date(n+r)}function Zu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function zl(e){yt(1,arguments);var t=wt(e);return t.setHours(0,0,0,0),t}function C9(e,t){yt(2,arguments);var n=Jt(t),r=n*3;return Fn(e,r)}function Vv(e,t){yt(2,arguments);var n=Jt(t);return Fn(e,n*12)}function S9(e,t){yt(2,arguments);var n=wt(e),r=wt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var k9=6e4,_9=36e5,R9=1e3;function P9(e,t){yt(2,arguments);var n=zl(e),r=zl(t);return n.getTime()===r.getTime()}function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function $9(e){return yt(1,arguments),e instanceof Date||Ed(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Er(e){if(yt(1,arguments),!$9(e)&&typeof e!="number")return!1;var t=wt(e);return!isNaN(Number(t))}function T9(e){yt(1,arguments);var t=wt(e),n=Math.floor(t.getMonth()/3)+1;return n}function O9(e){yt(1,arguments);var t=wt(e);return t.setSeconds(0,0),t}function Js(e){yt(1,arguments);var t=wt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Fr(e){yt(1,arguments);var t=wt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function t0(e){yt(1,arguments);var t=wt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function u2(e,t){yt(2,arguments);var n=Jt(t);return w9(e,-n)}var z9=864e5;function M9(e){yt(1,arguments);var t=wt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/z9)+1}function Ml(e){yt(1,arguments);var t=1,n=wt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function D9(e){yt(1,arguments);var t=f2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ml(n);return r}var I9=6048e5;function h2(e){yt(1,arguments);var t=wt(e),n=Ml(t).getTime()-D9(t).getTime();return Math.round(n/I9)+1}function n0(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=wt(e),f=d.getUTCFullYear(),h=qa(),p=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,p),v.setUTCHours(0,0,0,0);var b=Ea(v,t),g=new Date(0);g.setUTCFullYear(f,0,p),g.setUTCHours(0,0,0,0);var m=Ea(g,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=m.getTime()?f:f-1}function F9(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=n0(e,t),p=new Date(0);p.setUTCFullYear(h,0,f),p.setUTCHours(0,0,0,0);var v=Ea(p,t);return v}var A9=6048e5;function p2(e,t){yt(1,arguments);var n=wt(e),r=Ea(n,t).getTime()-F9(n,t).getTime();return Math.round(r/A9)+1}function tn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tn(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tn(r+1,2)},d:function(t,n){return tn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tn(t.getUTCHours(),n.length)},m:function(t,n){return tn(t.getUTCMinutes(),n.length)},s:function(t,n){return tn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return tn(i,n.length)}};const fi=B9;var sl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E9={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return fi.y(t,n)},Y:function(t,n,r,o){var i=n0(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return tn(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):tn(a,n.length)},R:function(t,n){var r=f2(t);return tn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tn(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return tn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return tn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return fi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return tn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=p2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tn(i,n.length)},I:function(t,n,r){var o=h2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):tn(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):fi.d(t,n)},D:function(t,n,r){var o=M9(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):tn(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return tn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return tn(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return tn(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=sl.noon:o===0?i=sl.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=sl.evening:o>=12?i=sl.afternoon:o>=4?i=sl.morning:i=sl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return fi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fi.s(t,n)},S:function(t,n){return fi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return ow(a);case"XXXX":case"XX":return da(a);case"XXXXX":case"XXX":default:return da(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return ow(a);case"xxxx":case"xx":return da(a);case"xxxxx":case"xxx":default:return da(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+rw(a,":");case"OOOO":default:return"GMT"+da(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+rw(a,":");case"zzzz":default:return"GMT"+da(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return tn(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return tn(a,n.length)}};function rw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+tn(i,2)}function ow(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tn(Math.abs(e)/60,2)}return da(e,t)}function da(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=tn(Math.floor(o/60),2),a=tn(o%60,2);return r+i+n+a}const L9=E9;var iw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},v2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},N9=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return iw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",iw(o,n)).replace("{{time}}",v2(i,n))},H9={p:v2,P:N9};const Wv=H9;var j9=["D","DD"],V9=["YY","YYYY"];function g2(e){return j9.indexOf(e)!==-1}function m2(e){return V9.indexOf(e)!==-1}function Qu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K9=/^'([^]*?)'?$/,q9=/''/g,Y9=/[a-zA-Z]/;function on(e,t,n){var r,o,i,a,l,s,c,d,f,h,p,v,b,g,m,y,C,x;yt(2,arguments);var w=String(t),_=qa(),k=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:yh,T=Jt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Jt((p=(v=(b=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(m=n.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:_.weekStartsOn)!==null&&v!==void 0?v:(C=_.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var R=wt(e);if(!Er(R))throw new RangeError("Invalid time value");var D=Zu(R),z=u2(R,D),A={firstWeekContainsDate:T,weekStartsOn:$,locale:k,_originalDate:R},L=w.match(U9).map(function(j){var E=j[0];if(E==="p"||E==="P"){var W=Wv[E];return W(j,k.formatLong)}return j}).join("").match(W9).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return G9(j);var W=L9[E];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&m2(j)&&Qu(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&g2(j)&&Qu(j,t,String(e)),W(z,j,k.localize,A);if(E.match(Y9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function G9(e){var t=e.match(K9);return t?t[1].replace(q9,"'"):e}function r0(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function X9(e){return r0({},e)}var aw=1e3*60,Ju=60*24,lw=Ju*30,sw=Ju*365;function Z9(e,t,n){var r,o,i;yt(2,arguments);var a=qa(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:yh;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=S9(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=r0(X9(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=wt(t),f=wt(e)):(d=wt(e),f=wt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),p;if(h==="floor")p=Math.floor;else if(h==="ceil")p=Math.ceil;else if(h==="round")p=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=f.getTime()-d.getTime(),b=v/aw,g=Zu(f)-Zu(d),m=(v-g)/aw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function o0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hj=function(e){cj(n,e);var t=dj(n);function n(){var r;lj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function S2(e){return e%400===0||e%4===0&&e%100!==0}function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xj=function(e){gj(n,e);var t=mj(n);function n(){var r;pj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=C2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jd=function(n){return typeof n}:jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jd(e)}function wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function mw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=function(e){Sj(n,e);var t=kj(n);function n(){var r;wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=n0(o,l);if(a.isTwoDigitYear){var c=C2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}}]),n}(Zt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function yw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ij=function(e){Oj(n,e);var t=zj(n);function n(){var r;$j(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function ww(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hj=function(e){Bj(n,e);var t=Ej(n);function n(){var r;Fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function Sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj=function(e){Wj(n,e);var t=Uj(n);function n(){var r;jj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function _w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tV=function(e){Zj(n,e);var t=Qj(n);function n(){var r;Gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sV=function(e){oV(n,e);var t=iV(n);function n(){var r;nV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Yd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yd=function(n){return typeof n}:Yd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yd(e)}function cV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function Tw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vV=function(e){uV(n,e);var t=fV(n);function n(){var r;cV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function gV(e,t,n){yt(2,arguments);var r=wt(e),o=Jt(t),i=p2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gd=function(n){return typeof n}:Gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gd(e)}function mV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ow(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SV=function(e){yV(n,e);var t=xV(n);function n(){var r;mV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Ea(gV(o,a,l),l)}}]),n}(Zt);function kV(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=h2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function Dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zV=function(e){PV(n,e);var t=$V(n);function n(){var r;_V(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Ml(kV(o,a))}}]),n}(Zt);function Zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zd=function(n){return typeof n}:Zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zd(e)}function MV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EV=[31,28,31,30,31,30,31,31,30,31,30,31],LV=[31,29,31,30,31,30,31,31,30,31,30,31],NV=function(e){IV(n,e);var t=FV(n);function n(){var r;MV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=LV[s]:i>=1&&i<=EV[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function HV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function kp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qV=function(e){VV(n,e);var t=WV(n);function n(){var r;HV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function l0(e,t,n){var r,o,i,a,l,s,c,d;yt(2,arguments);var f=qa(),h=Jt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wt(e),v=Jt(t),b=p.getUTCDay(),g=v%7,m=(g+7)%7,y=(m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function Bw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eW=function(e){XV(n,e);var t=ZV(n);function n(){var r;YV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ew(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function Lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lW=function(e){rW(n,e);var t=oW(n);function n(){var r;tW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function sW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pW=function(e){dW(n,e);var t=uW(n);function n(){var r;sW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function vW(e,t){yt(2,arguments);var n=Jt(t);n%7===0&&(n=n-7);var r=1,o=wt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function Vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CW=function(e){bW(n,e);var t=yW(n);function n(){var r;gW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=vW(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function iu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iu=function(n){return typeof n}:iu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iu(e)}function SW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ww(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TW=function(e){_W(n,e);var t=RW(n);function n(){var r;SW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=function(e){MW(n,e);var t=DW(n);function n(){var r;OW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Gw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VW=function(e){LW(n,e);var t=NW(n);function n(){var r;BW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function Zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XW=function(e){KW(n,e);var t=qW(n);function n(){var r;WW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function cu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(n){return typeof n}:cu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cu(e)}function ZW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function Jw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rU=function(e){JW(n,e);var t=eU(n);function n(){var r;ZW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function oU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}function tC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dU=function(e){aU(n,e);var t=lU(n);function n(){var r;oU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function uu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uu=function(n){return typeof n}:uu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uu(e)}function uU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}function rC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e){hU(n,e);var t=pU(n);function n(){var r;uU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Zt);function fu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fu=function(n){return typeof n}:fu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fu(e)}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function iC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=function(e){xU(n,e);var t=wU(n);function n(){var r;bU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Zt);function hu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(n){return typeof n}:hu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hu(e)}function _U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function lC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=function(e){PU(n,e);var t=$U(n);function n(){var r;_U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Zt);function pu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pu=function(n){return typeof n}:pu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pu(e)}function MU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zf(e)}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EU=function(e){IU(n,e);var t=FU(n);function n(){var r;MU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function uC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UU=function(e){HU(n,e);var t=jU(n);function n(){var r;LU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}function hC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QU=function(e){YU(n,e);var t=GU(n);function n(){var r;KU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function vC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iK=function(e){tK(n,e);var t=nK(n);function n(){var r;JU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}function mC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fK=function(e){sK(n,e);var t=cK(n);function n(){var r;aK(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=pK(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function pK(e,t){if(!!e){if(typeof e=="string")return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Jt((v=(b=(g=(m=r==null?void 0:r.weekStartsOn)!==null&&m!==void 0?m:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return _===""?wt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:D,locale:$},A=[new oj],L=k.match(gK).map(function(Oe){var _e=Oe[0];if(_e in Wv){var ve=Wv[_e];return ve(Oe,$.formatLong)}return Oe}).join("").match(vK),j=[],E=bC(L),W;try{var K=function(){var _e=W.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&m2(_e)&&Qu(_e,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&g2(_e)&&Qu(_e,k,e);var ve=_e[0],Me=hK[ve];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var U=j.find(function(ce){return H.includes(ce.token)||ce.token===ve});if(U)throw new RangeError("The format string mustn't contain `".concat(U.fullToken,"` and `").concat(_e,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(_e,"` and any other token at the same time"));j.push({token:ve,fullToken:_e});var Y=Me.run(_,_e,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),_=Y.rest}else{if(ve.match(xK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");if(_e==="''"?_e="'":ve==="'"&&(_e=CK(_e)),_.indexOf(_e)===0)_=_.slice(_e.length);else return{v:new Date(NaN)}}};for(E.s();!(W=E.n()).done;){var Q=K();if(yu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(_.length>0&&yK.test(_))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,_e){return _e-Oe}).filter(function(Oe,_e,ve){return ve.indexOf(Oe)===_e}).map(function(Oe){return A.filter(function(_e){return _e.priority===Oe}).sort(function(_e,ve){return ve.subPriority-_e.subPriority})}).map(function(Oe){return Oe[0]}),re=wt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=u2(re,Zu(re)),ue={},de=bC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],r0(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function CK(e){return e.match(mK)[1].replace(bK,"'")}function SK(e){yt(1,arguments);var t=wt(e);return t.setMinutes(0,0,0),t}function xh(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function k2(e,t){yt(2,arguments);var n=Js(e),r=Js(t);return n.getTime()===r.getTime()}function s0(e){yt(1,arguments);var t=wt(e);return t.setMilliseconds(0),t}function _2(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()}function c0(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=J9(a);return n.setMonth(r,Math.min(i,l)),n}function xu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xu=function(n){return typeof n}:xu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xu(e)}function Kn(e,t){if(yt(2,arguments),xu(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=wt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=c0(n,t.month)),t.date!=null&&n.setDate(Jt(t.date)),t.hours!=null&&n.setHours(Jt(t.hours)),t.minutes!=null&&n.setMinutes(Jt(t.minutes)),t.seconds!=null&&n.setSeconds(Jt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Jt(t.milliseconds)),n)}function na(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setHours(r),n}function _p(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setMinutes(r),n}function kK(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return c0(n,n.getMonth()+i*3)}function Rp(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setSeconds(r),n}function xC(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Cn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Ur,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:D7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:x9}),localeRef:r}}function Xr(e,t,n){if(!t)return;const r=Vi(),o=Le(Ur,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:r})};r?i():Qo(i)}function R2(e,t){const n=Le(Ur,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function et(e,t,n,r){var o;n||Nn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Ur,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=F(""),l=Vi();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+="-"+p),h&&(f+="-"+h);const{themeOverrides:v,builtinThemeOverrides:b}=r;v&&(f+="-"+qs(JSON.stringify(v))),b&&(f+="-"+qs(JSON.stringify(b))),a.value=f,s=()=>{const g=n.value;let m="";for(const y in g)m+=`${y}: ${g[y]};`;O(`.${f}`,m).mount({id:f,ssr:l}),s=void 0}};return At(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function en(e,t,n){if(!t)return;const r=Vi(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{At(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(oB(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Qo(i),o}function _K(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function RK(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const PK=S("affix",[I("affixed",{position:"fixed"},[I("absolute-positioned",{position:"absolute"})])]),wh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},$K=Wn(wh),P2=J({name:"Affix",props:wh,setup(e){const{mergedClsPrefixRef:t}=je(e);Xr("-affix",PK,t);let n=null;const r=F(!1),o=F(!1),i=F(null),a=F(null),l=P(()=>o.value||r.value),s=P(()=>{var g,m;return(m=(g=e.triggerTop)!==null&&g!==void 0?g:e.offsetTop)!==null&&m!==void 0?m:e.top}),c=P(()=>{var g,m;return(m=(g=e.top)!==null&&g!==void 0?g:e.triggerTop)!==null&&m!==void 0?m:e.offsetTop}),d=P(()=>{var g,m;return(m=(g=e.bottom)!==null&&g!==void 0?g:e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom}),f=P(()=>{var g,m;return(m=(g=e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom)!==null&&m!==void 0?m:e.bottom}),h=F(null),p=()=>{const{target:g,listenTo:m}=e;g?n=g():m?n=Ob(m):n=document,n&&(n.addEventListener("scroll",v),v())};function v(){Ma(b)}function b(){const{value:g}=h;if(!n||!g)return;const m=_K(n);if(l.value){mi.value&&(o.value=!1,i.value=null);return}const y=RK(n),C=g.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,_=s.value,k=f.value;_!==void 0&&x<=_?(r.value=!0,a.value=m-(_-x)):(r.value=!1,a.value=null),k!==void 0&&w<=k?(o.value=!0,i.value=m+k-w):(o.value=!1,i.value=null)}return It(()=>{p()}),Bt(()=>{!n||n.removeEventListener("scroll",v)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const g={};return r.value&&s.value!==void 0&&c.value!==void 0&&(g.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(g.bottom=`${d.value}px`),g})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Dl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),$2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),TK=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Un(e,t){return J({name:HR(e),setup(){var n;const r=(n=Le(Ur,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const OK=Un("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Bi=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),wC=Un("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),d0=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),u0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ya=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),T2=Un("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),O2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),zK=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),MK=Un("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),DK=Un("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),IK=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ga=Un("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ei=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Li=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),FK=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Ni=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Hi=Un("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),CC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),z2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),M2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Xa=Un("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),AK=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),BK=Un("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Wi=Un("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),EK=Un("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),D2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),LK=Un("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NK=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),HK=Un("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),jK=Un("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),VK=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),WK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),UK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),KK=Un("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),qK=Un("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),YK=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Do=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Hn();return()=>u(Ft,{name:"icon-switch-transition",appear:n.value},t)}}),Io=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?ah:Ft;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),GK=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),dt=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Xr("-base-icon",GK,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),XK=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[I("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),mt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),I("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),I("round",[O("&::before",` - border-radius: 50%; - `)])]),ri=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Xr("-base-close",XK,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(dt,{clsPrefix:t},{default:()=>u(T2,null)}))}}}),Fo=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:ZK}=mr;function On({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${ZK} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const QK=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[On()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),JK={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},so=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},JK),setup(e){Xr("-base-loading",QK,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(Do,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function SC(e){return Array.isArray(e)?e:[e]}const em={STOP:"STOP"};function I2(e,t){const n=t(e);e.children!==void 0&&n!==em.STOP&&e.children.forEach(r=>I2(r,t))}function eq(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function tq(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function nq(e){return e.children}function rq(e){return e.key}function oq(){return!1}function iq(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function aq(e){return e.disabled===!0}function lq(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Pp(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function $p(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function sq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function cq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function dq(e){return(e==null?void 0:e.type)==="group"}function F2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class A2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function uq(e,t,n,r){return Af(t.concat(e),n,r,!1)}function fq(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function hq(e,t,n,r){const o=Af(t,n,r,!1),i=Af(e,n,r,!0),a=fq(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function Tp(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:sq(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:cq(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=hq(o,n,t,c):r!==void 0?f=uq(r,n,t,c):f=Af(n,t,c,!1);const h=s==="parent",p=s==="child"||l,v=f,b=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let m=g;m>=0;m-=1){const y=m===0,C=d.get(m);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:_}=x;if(p&&_&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&v.has(R.key)&&v.delete(R.key)}),x.disabled||!_)continue;let k=!0,T=!1,$=!0;for(const R of x.children){const D=R.key;if(!R.disabled){if($&&($=!1),v.has(D))T=!0;else if(b.has(D)){T=!0,k=!1;break}else if(k=!1,T)break}}k&&!$?(h&&x.children.forEach(R=>{!R.disabled&&v.has(R.key)&&v.delete(R.key)}),v.add(w)):T&&b.add(w),y&&p&&v.has(w)&&v.delete(w)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(b)}}function Af(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&I2(c,d=>{if(d.disabled)return em.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),lq(d.rawNode,i))){if(r)return em.STOP;if(!n)throw new A2}})}),l}function pq(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function vq(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function gq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function kC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?mq:gq,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=f0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=bq(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function mq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function bq(e){return e.parent}function f0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=f0(c,t);if(d!==null)return d}else return c}}return null}const yq={getChild(){return this.ignored?null:f0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return kC(this,"next",e)},getPrev(e={}){return kC(this,"prev",e)}};function tm(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function xq(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function B2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=B2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function co(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=aq,getIgnored:a=oq,getIsGroup:l=dq,getKey:s=rq}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:nq,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return tq(this.rawNode,d)},get shallowLoaded(){return iq(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return xq(this,x)}},yq),h=B2(e,r,o,f,d);function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const _=v(x);return _?_.getPrev(w):null}function g(x,w){const _=v(x);return _?_.getNext(w):null}function m(x){const w=v(x);return w?w.getParent():null}function y(x){const w=v(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return tm(h,x)},getNode:p,getPrev:b,getNext:g,getParent:m,getChild:y,getFirstAvailableNode(){return vq(h)},getPath(x,w={}){return pq(x,w,C)},getCheckedKeys(x,w={}){const{cascade:_=!0,leafOnly:k=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return Tp({checkedKeys:Pp(x),indeterminateKeys:$p(x),cascade:_,leafOnly:k,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToCheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToUncheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return eq(h,x)}};return C}const ut={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},wq=Tn(ut.neutralBase),E2=Tn(ut.neutralInvertBase),Cq="rgba("+E2.slice(0,3).join(", ")+", ";function Vt(e){return Cq+String(e)+")"}function Sq(e){const t=Array.from(E2);return t[3]=Number(e),pt(wq,t)}const kq=Object.assign(Object.assign({name:"common"},mr),{baseColor:ut.neutralBase,primaryColor:ut.primaryDefault,primaryColorHover:ut.primaryHover,primaryColorPressed:ut.primaryActive,primaryColorSuppl:ut.primarySuppl,infoColor:ut.infoDefault,infoColorHover:ut.infoHover,infoColorPressed:ut.infoActive,infoColorSuppl:ut.infoSuppl,successColor:ut.successDefault,successColorHover:ut.successHover,successColorPressed:ut.successActive,successColorSuppl:ut.successSuppl,warningColor:ut.warningDefault,warningColorHover:ut.warningHover,warningColorPressed:ut.warningActive,warningColorSuppl:ut.warningSuppl,errorColor:ut.errorDefault,errorColorHover:ut.errorHover,errorColorPressed:ut.errorActive,errorColorSuppl:ut.errorSuppl,textColorBase:ut.neutralTextBase,textColor1:Vt(ut.alpha1),textColor2:Vt(ut.alpha2),textColor3:Vt(ut.alpha3),textColorDisabled:Vt(ut.alpha4),placeholderColor:Vt(ut.alpha4),placeholderColorDisabled:Vt(ut.alpha5),iconColor:Vt(ut.alpha4),iconColorDisabled:Vt(ut.alpha5),iconColorHover:Vt(Number(ut.alpha4)*1.25),iconColorPressed:Vt(Number(ut.alpha4)*.8),opacity1:ut.alpha1,opacity2:ut.alpha2,opacity3:ut.alpha3,opacity4:ut.alpha4,opacity5:ut.alpha5,dividerColor:Vt(ut.alphaDivider),borderColor:Vt(ut.alphaBorder),closeIconColorHover:Vt(Number(ut.alphaClose)),closeIconColor:Vt(Number(ut.alphaClose)),closeIconColorPressed:Vt(Number(ut.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Vt(ut.alpha4),clearColorHover:kn(Vt(ut.alpha4),{alpha:1.25}),clearColorPressed:kn(Vt(ut.alpha4),{alpha:.8}),scrollbarColor:Vt(ut.alphaScrollbar),scrollbarColorHover:Vt(ut.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Vt(ut.alphaProgressRail),railColor:Vt(ut.alphaRail),popoverColor:ut.neutralPopover,tableColor:ut.neutralCard,cardColor:ut.neutralCard,modalColor:ut.neutralModal,bodyColor:ut.neutralBody,tagColor:Sq(ut.alphaTag),avatarColor:Vt(ut.alphaAvatar),invertedColor:ut.neutralBase,inputColor:Vt(ut.alphaInput),codeColor:Vt(ut.alphaCode),tabColor:Vt(ut.alphaTab),actionColor:Vt(ut.alphaAction),tableHeaderColor:Vt(ut.alphaAction),hoverColor:Vt(ut.alphaPending),tableColorHover:Vt(ut.alphaTablePending),tableColorStriped:Vt(ut.alphaTableStriped),pressedColor:Vt(ut.alphaPressed),opacityDisabled:ut.alphaDisabled,inputColorDisabled:Vt(ut.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),tt=kq,xt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},_q=Tn(xt.neutralBase),L2=Tn(xt.neutralInvertBase),Rq="rgba("+L2.slice(0,3).join(", ")+", ";function _C(e){return Rq+String(e)+")"}function er(e){const t=Array.from(L2);return t[3]=Number(e),pt(_q,t)}const Pq=Object.assign(Object.assign({name:"common"},mr),{baseColor:xt.neutralBase,primaryColor:xt.primaryDefault,primaryColorHover:xt.primaryHover,primaryColorPressed:xt.primaryActive,primaryColorSuppl:xt.primarySuppl,infoColor:xt.infoDefault,infoColorHover:xt.infoHover,infoColorPressed:xt.infoActive,infoColorSuppl:xt.infoSuppl,successColor:xt.successDefault,successColorHover:xt.successHover,successColorPressed:xt.successActive,successColorSuppl:xt.successSuppl,warningColor:xt.warningDefault,warningColorHover:xt.warningHover,warningColorPressed:xt.warningActive,warningColorSuppl:xt.warningSuppl,errorColor:xt.errorDefault,errorColorHover:xt.errorHover,errorColorPressed:xt.errorActive,errorColorSuppl:xt.errorSuppl,textColorBase:xt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:er(xt.alpha4),placeholderColor:er(xt.alpha4),placeholderColorDisabled:er(xt.alpha5),iconColor:er(xt.alpha4),iconColorHover:kn(er(xt.alpha4),{lightness:.75}),iconColorPressed:kn(er(xt.alpha4),{lightness:.9}),iconColorDisabled:er(xt.alpha5),opacity1:xt.alpha1,opacity2:xt.alpha2,opacity3:xt.alpha3,opacity4:xt.alpha4,opacity5:xt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:er(Number(xt.alphaClose)),closeIconColorHover:er(Number(xt.alphaClose)),closeIconColorPressed:er(Number(xt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:er(xt.alpha4),clearColorHover:kn(er(xt.alpha4),{lightness:.75}),clearColorPressed:kn(er(xt.alpha4),{lightness:.9}),scrollbarColor:_C(xt.alphaScrollbar),scrollbarColorHover:_C(xt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:er(xt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:xt.neutralPopover,tableColor:xt.neutralCard,cardColor:xt.neutralCard,modalColor:xt.neutralModal,bodyColor:xt.neutralBody,tagColor:"#eee",avatarColor:er(xt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:er(xt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:xt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),nt=Pq,$q={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},N2=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},$q),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},Tq={name:"Empty",common:nt,self:N2},oi=Tq,Oq={name:"Empty",common:tt,self:N2},Za=Oq,zq=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),H2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ui=J({name:"Empty",props:H2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Empty","-empty",zq,oi,e,t),{localeRef:o}=Cn("Empty"),i=Le(Ur,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(IK,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:p,textColor:v,iconColor:b,extraTextColor:g}}=r.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":v,"--n-icon-color":b,"--n-extra-text-color":g}}),c=n?et("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(dt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),j2=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},Mq={name:"Scrollbar",common:nt,self:j2},br=Mq,Dq={name:"Scrollbar",common:tt,self:j2},yr=Dq,{cubicBezierEaseInOut:RC}=mr;function Yo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=RC,leaveCubicBezier:o=RC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Iq=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[I("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),I("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),I("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Yo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Fq=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),V2=J({name:"Scrollbar",props:Fq,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Scrollbar",r,t),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(null),b=F(null),g=F(0),m=F(0),y=F(!1),C=F(!1);let x=!1,w=!1,_,k,T=0,$=0,R=0,D=0;const z=SB(),A=P(()=>{const{value:X}=h,{value:q}=d,{value:ke}=v;return X===null||q===null||ke===null?0:Math.min(X,ke*X/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:X}=p,{value:q}=f,{value:ke}=b;return X===null||q===null||ke===null?0:ke*X/q+e.size*1.5}),E=P(()=>`${j.value}px`),W=P(()=>{const{value:X}=h,{value:q}=g,{value:ke}=d,{value:Be}=v;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${W.value}px`),Q=P(()=>{const{value:X}=p,{value:q}=m,{value:ke}=f,{value:Be}=b;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:X}=h,{value:q}=d;return X!==null&&q!==null&&q>X}),ee=P(()=>{const{value:X}=p,{value:q}=f;return X!==null&&q!==null&&q>X}),ue=P(()=>{const{trigger:X}=e;return X==="none"||y.value}),de=P(()=>{const{trigger:X}=e;return X==="none"||C.value}),Ce=P(()=>{const{container:X}=e;return X?X():a.value}),we=P(()=>{const{content:X}=e;return X?X():l.value}),me=Vb(()=>{e.container||ve({top:g.value,left:m.value})}),Oe=()=>{me.isDeactivated||ge()},_e=X=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(X),ge()},ve=(X,q)=>{if(!e.scrollable)return;if(typeof X=="number"){H(q!=null?q:0,X,0,!1,"auto");return}const{left:ke,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=X;(ke!==void 0||Be!==void 0)&&H(ke!=null?ke:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(X,q)=>{if(!e.scrollable)return;const{value:ke}=Ce;!ke||(typeof X=="object"?ke.scrollBy(X):ke.scrollBy(X,q||0))};function H(X,q,ke,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+ke<=ze+ie||ae.scrollTo({left:X,top:q+ke-ie,behavior:Ee});return}}ae.scrollTo({left:X,top:q,behavior:Ee})}}function U(){N(),te(),ge()}function Y(){ce()}function ce(){G(),B()}function G(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){_!==void 0&&window.clearTimeout(_),y.value=!0}function te(){k!==void 0&&window.clearTimeout(k),C.value=!0}function pe(X){const{onScroll:q}=e;q&&q(X),Z()}function Z(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:X}=we;X&&(d.value=X.offsetHeight,f.value=X.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,p.value=q.offsetWidth);const{value:ke}=c,{value:Be}=s;ke&&(b.value=ke.offsetWidth),Be&&(v.value=Be.offsetHeight)}function ne(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1),h.value=X.offsetHeight,p.value=X.offsetWidth,d.value=X.scrollHeight,f.value=X.scrollWidth);const{value:q}=c,{value:ke}=s;q&&(b.value=q.offsetWidth),ke&&(v.value=ke.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(X){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(vr(X)))}function Ae(X){X.preventDefault(),X.stopPropagation(),w=!0,_t("mousemove",window,qe,!0),_t("mouseup",window,Ye,!0),$=m.value,R=o!=null&&o.value?window.innerWidth-X.clientX:X.clientX}function qe(X){if(!w)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=p,{value:ke}=f,{value:Be}=j;if(q===null||ke===null)return;const ae=(o!=null&&o.value?window.innerWidth-X.clientX-R:X.clientX-R)*(ke-q)/(q-Be),ze=ke-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function Ye(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,qe,!0),Ct("mouseup",window,Ye,!0),w=!1,ge(),Pe(X)&&ce()}function ft(X){X.preventDefault(),X.stopPropagation(),x=!0,_t("mousemove",window,ht,!0),_t("mouseup",window,vt,!0),T=g.value,D=X.clientY}function ht(X){if(!x)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=h,{value:ke}=d,{value:Be}=A;if(q===null||ke===null)return;const ae=(X.clientY-D)*(ke-q)/(q-Be),ze=ke-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function vt(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0),x=!1,ge(),Pe(X)&&ce()}At(()=>{const{value:X}=ee,{value:q}=re,{value:ke}=t,{value:Be}=c,{value:Ee}=s;Be&&(X?Be.classList.remove(`${ke}-scrollbar-rail--disabled`):Be.classList.add(`${ke}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${ke}-scrollbar-rail--disabled`):Ee.classList.add(`${ke}-scrollbar-rail--disabled`))}),It(()=>{e.container||ge()}),Bt(()=>{_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0)});const Ve=Se("Scrollbar","-scrollbar",Iq,br,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:X,scrollbarBorderRadius:q,scrollbarHeight:ke,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=Ve.value;return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":ke}}),We=n?et("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:ve,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:U,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:pe,handleContentResize:Oe,handleContainerResize:_e,handleYScrollMouseDown:ft,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Gn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(jr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(jr,{onResize:this.handleContainerResize},{default:s});return i?u(Ot,null,c,l()):c}}),ln=V2,Bf=V2,Aq={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},W2=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:v,heightSmall:b,heightMedium:g,heightLarge:m,heightHuge:y}=e;return Object.assign(Object.assign({},Aq),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:v,optionHeightSmall:b,optionHeightMedium:g,optionHeightLarge:m,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},Bq={name:"InternalSelectMenu",common:nt,peers:{Scrollbar:br,Empty:oi},self:W2},Hl=Bq,Eq={name:"InternalSelectMenu",common:tt,peers:{Scrollbar:yr,Empty:Za},self:W2},yc=Eq;function Lq(e,t){return u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>e?u(dt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(d0)}):null})}const PC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Bb),p=lt(()=>{const{value:m}=n;return m?e.tmNode.key===m.key:!1});function v(m){const{tmNode:y}=e;y.disabled||f(m,y)}function b(m){const{tmNode:y}=e;y.disabled||h(m,y)}function g(m){const{tmNode:y}=e,{value:C}=p;y.disabled||C||h(m,y)}return{multiple:r,isGrouped:lt(()=>{const{tmNode:m}=e,{parent:y}=m;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:p,isSelected:lt(()=>{const{value:m}=t,{value:y}=r;if(m===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return m===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:g,handleMouseEnter:b,handleClick:v}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=Lq(n,e),p=s?[s(t,n),i&&h]:[Ut(t[this.labelField],t,n),i&&h],v=a==null?void 0:a(t),b=u("div",Object.assign({},v,{class:[`${e}-base-select-option`,t.class,v==null?void 0:v.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(v==null?void 0:v.style)||"",t.style||""],onClick:Rs([c,v==null?void 0:v.onClick]),onMouseenter:Rs([d,v==null?void 0:v.onMouseenter]),onMousemove:Rs([f,v==null?void 0:v.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),$C=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Bb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):Ut(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:TC,cubicBezierEaseOut:OC}=mr;function Dn({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${TC}, transform ${t} ${TC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${OC}, transform ${t} ${OC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Nq=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[I("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),I("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),I("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),I("disabled",` - cursor: not-allowed; - `,[mt("selected",` - color: var(--n-option-text-color-disabled); - `),I("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[Dn({enterScale:"0.5"})])])]),xc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",Nq,Hl,e,xe(e,"clsPrefix")),n=F(null),r=F(null),o=F(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>F2(i.value)),l=F(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),D(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;it(()=>e.show,Q=>{Q?d=it(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),Rt(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Bt(()=>{d==null||d()});const f=P(()=>hn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>Pi(t.value.self[ye("padding",e.size)])),p=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),v=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function g(Q){const{onScroll:V}=e;V&&V(Q)}function m(Q){var V;(V=o.value)===null||V===void 0||V.sync(),g(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||D(V,!1)}function w(Q,V){V.disabled||b(V)}function _(Q){var V;Zn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function k(Q){var V;Zn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&D(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&D(Q.getPrev({loop:!0}),!0)}function D(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}ot(Bb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:p,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),ot(nR,n),It(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:_e,optionOpacityDisabled:ve,optionCheckColor:Me,actionTextColor:H,optionColorPending:U,optionColorActive:Y,loadingColor:ce,loadingSize:G,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:pe}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":U,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":ve,"--n-option-text-color":me,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":pe,"--n-option-padding-left":Pi(pe,"left"),"--n-option-padding-right":Pi(pe,"right"),"--n-loading-color":ce,"--n-loading-size":G}}),{inlineThemeDisabled:E}=e,W=E?et("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return ph(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:v,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:g,handleFocusin:A,handleFocusout:L,handleKeyUp:_,handleKeyDown:k,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:m,cssVars:E?void 0:j,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(so,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},gt(e.empty,()=>[u(Ui,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(ln,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(qo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(PC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):u(PC,{clsPrefix:n,key:a.key,tmNode:a})))}),kt(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Fo,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Hq=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),U2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-wave",Hq,xe(e,"clsPrefix"));const t=F(null),n=F(!1);let r=null;return Bt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Rt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),jq=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Yo()]),Vq=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-menu-mask",jq,xe(e,"clsPrefix"));const t=F(null);let n=null;const r=F(!1);return Bt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(Ft,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),Wq={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},K2=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Wq),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},Uq={name:"Popover",common:nt,self:K2},Qa=Uq,Kq={name:"Popover",common:tt,self:K2},Ja=Kq,Op={top:"bottom",bottom:"top",left:"right",right:"left"},In="var(--n-arrow-height) * 1.414",qq=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[mt("scrollable",[mt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),I("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${In}); - height: calc(${In}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),Ir("top-start",` - top: calc(${In} / -2); - left: calc(${Eo("top-start")} - var(--v-offset-left)); - `),Ir("top",` - top: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("top-end",` - top: calc(${In} / -2); - right: calc(${Eo("top-end")} + var(--v-offset-left)); - `),Ir("bottom-start",` - bottom: calc(${In} / -2); - left: calc(${Eo("bottom-start")} - var(--v-offset-left)); - `),Ir("bottom",` - bottom: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("bottom-end",` - bottom: calc(${In} / -2); - right: calc(${Eo("bottom-end")} + var(--v-offset-left)); - `),Ir("left-start",` - left: calc(${In} / -2); - top: calc(${Eo("left-start")} - var(--v-offset-top)); - `),Ir("left",` - left: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("left-end",` - left: calc(${In} / -2); - bottom: calc(${Eo("left-end")} + var(--v-offset-top)); - `),Ir("right-start",` - right: calc(${In} / -2); - top: calc(${Eo("right-start")} - var(--v-offset-top)); - `),Ir("right",` - right: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("right-end",` - right: calc(${In} / -2); - bottom: calc(${Eo("right-end")} + var(--v-offset-top)); - `),...S7({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${In}) / 2)`,s=Eo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[I("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Eo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Ir(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${Op[n]}: var(--n-space); - `,[I("show-arrow",` - margin-${Op[n]}: var(--n-space-arrow); - `),I("overlap",` - margin: 0; - `),cB("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${Op[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const q2=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Y2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),Yq=J({name:"PopoverBody",inheritAttrs:!1,props:q2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(e),a=Se("Popover","-popover",qq,Qa,e,o),l=F(null),s=Le("NPopover"),c=F(null),d=F(e.show),f=F(!1);At(()=>{const{show:k}=e;k&&!dB()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:k,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(k==="click"&&!T&&$.push([gr,x,void 0,{capture:!0}]),k==="hover"&&$.push([zB,C])),T&&$.push([gr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([$r,e.show]),$}),p=P(()=>{const k=e.width==="trigger"?void 0:Mt(e.width),T=[];k&&T.push({width:k});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Mt($)}),R&&T.push({maxWidth:Mt(R)}),i||T.push(v.value),T}),v=P(()=>{const{common:{cubicBezierEaseInOut:k,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:D,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:W,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":W,"--n-bezier":k,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":D}}),b=i?et("popover",void 0,v,e):void 0;s.setBodyInstance({syncPosition:g}),Bt(()=>{s.setBodyInstance(null)}),it(xe(e,"show"),k=>{e.animated||(k?d.value=!0:d.value=!1)});function g(){var k;(k=l.value)===null||k===void 0||k.syncPosition()}function m(k){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(k)}function y(k){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(k)}function C(k){e.trigger==="hover"&&!w().contains(vr(k))&&s.handleMouseMoveOutside(k)}function x(k){(e.trigger==="click"&&!w().contains(vr(k))||e.onClickoutside)&&s.handleClickOutside(k)}function w(){return s.getTriggerElement()}ot(Ll,c),ot(vc,null),ot(pc,null);function _(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,p.value,m,y);else{const{value:D}=s.extraClassRef,{internalTrapFocus:z}=e,A=!Pa(t.header)||!Pa(t.footer),L=()=>{var j;const E=A?u(Ot,null,kt(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),kt(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),kt(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),W=e.scrollable?u(Bf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?Y2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[W,K]};T=u("div",Gn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,D.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:s.handleKeydown,onMouseenter:m,onMouseleave:y},n),z?u(Hb,{active:e.show,autoFocus:!0},{default:L}):L())}return un(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Ht(e),followerEnabled:d,renderContentNode:_}},render(){return u(Or,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>this.animated?u(Ft,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Gq=Object.keys(q2),Xq={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Zq(e,t,n){Xq[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const Qq=Ar("").type,La={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ht.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},G2=Object.assign(Object.assign(Object.assign({},Se.props),La),{internalOnAfterLeave:Function,internalRenderBody:Function}),el=J({name:"Popover",inheritAttrs:!1,props:G2,__popover__:!0,setup(e){const t=Hn(),n=F(null),r=P(()=>e.show),o=F(e.defaultShow),i=St(r,o),a=lt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ii(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=F(null),p=F(null),v=lt(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:W,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&W&&he(W,!0),L&&K&&he(K,!1)}function g(){f&&f.syncPosition()}function m(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=p;L&&(window.clearTimeout(L),p.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function _(){const L=l();if(e.trigger==="hover"&&!L){if(m(),p.value!==null||!s())return;const j=()=>{b(!1),p.value=null},{duration:E}=e;E===0?j():p.value=window.setTimeout(j,E)}}function k(){_()}function T(L){var j;!s()||(e.trigger==="click"&&(m(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){m(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(m(),y(),b(!1))}function D(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return ot("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:_,handleClickOutside:T,handleMouseMoveOutside:k,setBodyInstance:A,positionManuallyRef:v,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),At(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:D,handleClick:$,handleMouseEnter:w,handleMouseLeave:_,handleFocus:C,handleBlur:x,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=ju(n,"activator"):r=ju(n,"trigger"),r)){r=ar(r),r=r.type===Qq?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};Zq(r,a?"nested":t?"manual":this.trigger,s)}}return u(qr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?un(u("div",{style:{position:"fixed",inset:0}}),[[gc,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Yr,null,{default:()=>r}),u(Yq,xn(this.$props,Gq,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),X2={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},Jq={name:"Tag",common:tt,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,tagColor:f,opacityDisabled:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderRadiusSmall:y,fontSizeMini:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,heightMini:k,heightTiny:T,heightSmall:$,heightMedium:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:y,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:y,opacityDisabled:h,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:kn(o,{lightness:.7}),closeIconColorHoverPrimary:kn(o,{lightness:.7}),closeIconColorPressedPrimary:kn(o,{lightness:.7}),closeColorHoverPrimary:He(o,{alpha:.16}),closeColorPressedPrimary:He(o,{alpha:.12}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:kn(i,{alpha:.7}),closeIconColorHoverInfo:kn(i,{alpha:.7}),closeIconColorPressedInfo:kn(i,{alpha:.7}),closeColorHoverInfo:He(i,{alpha:.16}),closeColorPressedInfo:He(i,{alpha:.12}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:kn(a,{alpha:.7}),closeIconColorHoverSuccess:kn(a,{alpha:.7}),closeIconColorPressedSuccess:kn(a,{alpha:.7}),closeColorHoverSuccess:He(a,{alpha:.16}),closeColorPressedSuccess:He(a,{alpha:.12}),borderWarning:`1px solid ${He(l,{alpha:.3})}`,textColorWarning:l,colorWarning:He(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:kn(l,{alpha:.7}),closeIconColorHoverWarning:kn(l,{alpha:.7}),closeIconColorPressedWarning:kn(l,{alpha:.7}),closeColorHoverWarning:He(l,{alpha:.16}),closeColorPressedWarning:He(l,{alpha:.11}),borderError:`1px solid ${He(s,{alpha:.3})}`,textColorError:s,colorError:He(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:kn(s,{alpha:.7}),closeIconColorHoverError:kn(s,{alpha:.7}),closeIconColorPressedError:kn(s,{alpha:.7}),closeColorHoverError:He(s,{alpha:.16}),closeColorPressedError:He(s,{alpha:.12})})}},Z2=Jq,eY=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,borderRadiusSmall:g,fontSizeMini:m,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:_,heightSmall:k,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:g,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:T,borderRadius:g,opacityDisabled:f,fontSizeTiny:m,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.12}),colorBorderedPrimary:He(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:He(o,{alpha:.12}),closeColorPressedPrimary:He(o,{alpha:.18}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.12}),colorBorderedInfo:He(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:He(i,{alpha:.12}),closeColorPressedInfo:He(i,{alpha:.18}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.12}),colorBorderedSuccess:He(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:He(a,{alpha:.12}),closeColorPressedSuccess:He(a,{alpha:.18}),borderWarning:`1px solid ${He(l,{alpha:.35})}`,textColorWarning:l,colorWarning:He(l,{alpha:.15}),colorBorderedWarning:He(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:He(l,{alpha:.12}),closeColorPressedWarning:He(l,{alpha:.18}),borderError:`1px solid ${He(s,{alpha:.23})}`,textColorError:s,colorError:He(s,{alpha:.1}),colorBorderedError:He(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:He(s,{alpha:.12}),closeColorPressedError:He(s,{alpha:.18})})},tY={name:"Tag",common:nt,self:eY},Q2=tY,J2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},nY=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),I("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),I("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),I("icon, avatar",[I("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),I("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),I("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[mt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[mt("checked","color: var(--n-text-color-pressed-checkable);")])]),I("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),eP=Object.assign(Object.assign(Object.assign({},Se.props),J2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tP="n-tag",zs=J({name:"Tag",props:eP,setup(e){const t=F(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=je(e),a=Se("Tag","-tag",nY,Q2,e,r);ot(tP,{roundRef:xe(e,"round")});function l(p){if(!e.disabled&&e.checkable){const{checked:v,onCheckedChange:b,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!v),m&&m(!v),b&&b(!v)}}function s(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:v}=e;v&&he(v,p)}}const c={setTextContent(p){const{value:v}=t;v&&(v.textContent=p)}},d=en("Tag",i,r),f=P(()=>{const{type:p,size:v,color:{color:b,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:_,textColorCheckable:k,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:D,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:W,fontWeightStrong:K,[ye("colorBordered",p)]:Q,[ye("closeSize",v)]:V,[ye("closeIconSize",v)]:re,[ye("fontSize",v)]:ee,[ye("height",v)]:ue,[ye("color",p)]:de,[ye("textColor",p)]:Ce,[ye("border",p)]:we,[ye("closeIconColor",p)]:me,[ye("closeIconColorHover",p)]:Oe,[ye("closeIconColorPressed",p)]:_e,[ye("closeColorHover",p)]:ve,[ye("closeColorPressed",p)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":m,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":ve,"--n-close-border-radius":W,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":_e,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":D,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":_,"--n-padding":y,"--n-text-color":g||Ce,"--n-text-color-checkable":k,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?et("tag",P(()=>{let p="";const{type:v,size:b,color:{color:g,textColor:m}={}}=e;return p+=v[0],p+=b[0],g&&(p+=`a${Ia(g)}`),m&&(p+=`b${Ia(m)}`),n.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=kt(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=kt(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(ri,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),rY=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),nm=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Xr("-base-clear",rY,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(Do,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},gt(this.$slots.icon,()=>[u(dt,{clsPrefix:e},{default:()=>u(LK,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),nP=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(so,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(nm,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(dt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>gt(t.default,()=>[u(D2,null)])})}):null})}}}),rP={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},oY=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:p,iconColorDisabled:v,clearColor:b,clearColorHover:g,clearColorPressed:m,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${He(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${He(a,{alpha:.2})}`,caretColor:a,arrowColor:p,arrowColorDisabled:v,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${He(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${He(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:g,clearColorPressed:m})},iY={name:"InternalSelection",common:nt,peers:{Popover:Qa},self:oY},Ch=iY,aY={name:"InternalSelection",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,iconColor:h,iconColorDisabled:p,clearColor:v,clearColorHover:b,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:y,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:m,placeholderColorDisabled:y,color:o,colorDisabled:i,colorActive:He(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${He(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${He(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,colorActiveWarning:He(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${He(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.4})}`,colorActiveError:He(d,{alpha:.1}),caretColorError:d,clearColor:v,clearColorHover:b,clearColorPressed:g})}},h0=aY,lY=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),I("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>I(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),p0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(!1),h=F(!1),p=F(!1),v=Se("InternalSelection","-internal-selection",lY,Ch,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(p.value||e.active)),g=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Ut(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),m=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}it(xe(e,"active"),Z=>{Z||x()}),it(xe(e,"pattern"),()=>{e.multiple&&Rt(C)});function _(Z){const{onFocus:fe}=e;fe&&fe(Z)}function k(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function D(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&_(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||k(Z)}function A(Z){$(Z)}function L(){p.value=!0}function j(){p.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function W(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&W(fe[fe.length-1])}}const Q=F(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function _e(){const{value:Z}=n;Z&&Z.blur()}function ve(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let U=null;function Y(){U!==null&&window.clearTimeout(U)}function ce(){e.disabled||e.active||(Y(),U=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function G(){Y()}function B(Z){Z||(Y(),f.value=!1)}it(y,Z=>{Z||(f.value=!1)}),It(()=>{At(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),ph(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:qe,paddingMultiple:Ye,caretColor:ft,colorDisabled:ht,textColorDisabled:vt,placeholderColorDisabled:Ve,colorActive:Xe,boxShadowFocus:We,boxShadowActive:Ke,boxShadowHover:X,border:q,borderFocus:ke,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Ie,borderFocusWarning:Ne,borderHoverWarning:Qe,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:De,boxShadowActiveError:Ze,boxShadowHoverError:bt,borderError:be,borderFocusError:Fe,borderHoverError:Je,borderActiveError:at,clearColor:ct,clearColorHover:Gt,clearColorPressed:Kt,clearSize:Re,arrowSize:Ge,[ye("height",Z)]:st,[ye("fontSize",Z)]:Pt}}=v.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":ke,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":Ke,"--n-box-shadow-focus":We,"--n-box-shadow-hover":X,"--n-caret-color":ft,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":ht,"--n-font-size":Pt,"--n-height":st,"--n-padding-single":qe,"--n-padding-multiple":Ye,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":Ve,"--n-text-color":Ae,"--n-text-color-disabled":vt,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Ie,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Qe,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":De,"--n-box-shadow-active-error":Ze,"--n-box-shadow-hover-error":bt,"--n-border-error":be,"--n-border-focus-error":Fe,"--n-border-hover-error":Je,"--n-border-active-error":at,"--n-clear-size":Re,"--n-clear-color":ct,"--n-clear-color-hover":Gt,"--n-clear-color-pressed":Kt,"--n-arrow-size":Ge}}),pe=N?et("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:v,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:g,label:m,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:D,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:W,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:G,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:_e,updateCounter:ve,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",p=f||h,v=u(Tv,null,{default:()=>u(nP,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var g,m;return(m=(g=this.$slots).arrow)===null||m===void 0?void 0:m.call(g)}})});let b;if(t){const{labelField:g}=this,m=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(zs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):Ut(z[g],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(m),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const _=f?o?u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),k=p?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(m)):void 0,T=p?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,D=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},_,f?null:C,v):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},_,v);b=u(Ot,null,p?u(el,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>D,default:k}):D,R)}else if(o){const g=this.pattern||this.isComposing,m=this.active?!g:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):null,m?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,v)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:hc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),v);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),zC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=F(null),n=F(e.value),r=F(e.value),o=F("up"),i=F(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);it(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,Rt(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,Rt(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:hi}=mr;function oP({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${hi}, - max-width ${e} ${hi} ${t}, - margin-left ${e} ${hi} ${t}, - margin-right ${e} ${hi} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${hi} ${t}, - max-width ${e} ${hi}, - margin-left ${e} ${hi}, - margin-right ${e} ${hi}; - `)]}const{cubicBezierEaseOut:cl}=mr;function sY({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const cY=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[sY({duration:".2s"}),oP({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[I("top",{transform:"translateY(-100%)"}),I("bottom",{transform:"translateY(100%)"}),I("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[I("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[I("not-number",` - right: unset; - left: 0; - `)])])])])]),dY=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Xr("-base-slot-machine",cY,xe(e,"clsPrefix"));const t=F(),n=F(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return it(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(ah,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(zC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Io,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,infoColor:v,successColor:b,warningColor:g,errorColor:m,fontSize:y}=e;return Object.assign(Object.assign({},iP),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,borderInfo:`1px solid ${pt(o,He(v,{alpha:.25}))}`,colorInfo:pt(o,He(v,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:v,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${pt(o,He(b,{alpha:.25}))}`,colorSuccess:pt(o,He(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${pt(o,He(g,{alpha:.33}))}`,colorWarning:pt(o,He(g,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:p,borderError:`1px solid ${pt(o,He(m,{alpha:.25}))}`,colorError:pt(o,He(m,{alpha:.08})),titleTextColorError:l,iconColorError:m,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:p})},pY={name:"Alert",common:nt,self:hY},vY=pY,{cubicBezierEaseInOut:po,cubicBezierEaseOut:gY,cubicBezierEaseIn:mY}=mr;function Go({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po} ${r}, - opacity ${t} ${gY} ${r}, - margin-top ${t} ${po} ${r}, - margin-bottom ${t} ${po} ${r}, - padding-top ${t} ${po} ${r}, - padding-bottom ${t} ${po} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po}, - opacity ${t} ${mY}, - margin-top ${t} ${po}, - margin-bottom ${t} ${po}, - padding-top ${t} ${po}, - padding-bottom ${t} ${po} - ${n?","+n:""} - `)]}const bY=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),I("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),Go({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),I("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),aP=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),yY=J({name:"Alert",inheritAttrs:!1,props:aP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Alert","-alert",bY,vY,e,t),a=en("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:p},self:v}=i.value,{fontSize:b,borderRadius:g,titleFontWeight:m,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:_,closeBorderRadius:k,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:D}=v,{type:z}=e,{left:A,right:L}=Pi(x);return{"--n-bezier":p,"--n-color":v[ye("color",z)],"--n-close-icon-size":_,"--n-close-border-radius":k,"--n-close-color-hover":v[ye("closeColorHover",z)],"--n-close-color-pressed":v[ye("closeColorPressed",z)],"--n-close-icon-color":v[ye("closeIconColor",z)],"--n-close-icon-color-hover":v[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":v[ye("closeIconColorPressed",z)],"--n-icon-color":v[ye("iconColor",z)],"--n-border":v[ye("border",z)],"--n-title-text-color":v[ye("titleTextColor",z)],"--n-content-text-color":v[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":g,"--n-font-size":b,"--n-title-font-weight":m,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":D,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?et("alert",P(()=>e.type[0]),l,e):void 0,c=F(!0),d=()=>{const{onAfterLeave:p,onAfterHide:v}=e;p&&p(),v&&v()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(v=>{v!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Io,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Gn(this.$attrs,r)),this.closable&&u(ri,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},gt(n.icon,()=>[u(dt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Xa,null);case"info":return u(Hi,null);case"warning":return u(Wi,null);case"error":return u(Ga,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},kt(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),xY={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},lP=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},xY),{borderRadius:t,railColor:n,railColorActive:r,linkColor:He(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},wY={name:"Anchor",common:nt,self:lP},CY=wY,SY={name:"Anchor",common:tt,self:lP},kY=SY,_Y=S("anchor",` - position: relative; -`,[mt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),mt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),I("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[I("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[I("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[I("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),wu="n-anchor",sP={title:String,href:String},RY=J({name:"AnchorLink",props:sP,setup(e,{slots:t}){const n=F(null),r=Le(wu),o=xe(e,"href"),i=lt(()=>o.value&&o.value===r.activeHref.value);fB(wu,"collectedLinkHrefs",o),hB(wu,"titleEls",()=>n.value),it(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:hc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function PY(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const v0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},$Y=Wn(v0),TY=J({name:"BaseAnchor",props:Object.assign(Object.assign({},v0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=F(null),o=F(null),i=F(null),a=F(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:v}=i,{value:b}=o;v&&(v.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(g=>{g.style.transition="none"}),Rt(()=>{const{value:g}=i,{value:m}=o;g&&(g.offsetWidth,g.style.transition=""),m&&(m.offsetWidth,m.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(v,b=!0){const{value:g}=i,{value:m}=o,{value:y}=a;if(!y||!g)return;b||(g.style.transition="none",m&&(m.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=v,{top:w,left:_}=v.getBoundingClientRect(),{top:k,left:T}=y.getBoundingClientRect(),$=w-k,R=_-T;g.style.top=`${$}px`,g.style.height=`${C}px`,m&&(m.style.top=`${$}px`,m.style.height=`${C}px`,m.style.maxWidth=`${x+R}px`),g.offsetHeight,m&&m.offsetHeight,b||(g.style.transition="",m&&(m.style.transition=""))}function f(v,b=!0){const g=/^#([^#]+)$/.exec(v);if(!g)return;const m=document.getElementById(g[1]);!m||(r.value=v,m.scrollIntoView(),b||c(),h())}const h=Os(()=>p(!0),128);function p(v=!0){var b;const g=[],m=Ob((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(_=>{const k=/#([^#]+)$/.exec(_);if(!k)return;const T=document.getElementById(k[1]);if(T&&m){const{top:$,height:R}=PY(T,m);g.push({top:$,height:R,href:_})}}),g.sort((_,k)=>_.top>k.top?1:(_.top===k.top&&_.heightk.top+k.height<0?x?k:_:k.top<=C?_===null?k:k.top===_.top?k.href===y?k:_:k.top>_.top?k:_:_,null);v||c(),w?r.value=w.href:r.value=null}return ot(wu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),It(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),p(!1)}),fh(()=>{f(window.location.hash),p(!1)}),Bt(()=>{document.removeEventListener("scroll",h,!0)}),it(r,v=>{if(v===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(ln,null,{default:()=>i}):i}}),cP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),wh),v0),OY=J({name:"Anchor",props:cP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Anchor","-anchor",_Y,CY,e,n),i=F(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:p,linkTextColorActive:v,linkFontSize:b,railWidth:g,linkPadding:m,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":v,"--n-link-text-color-pressed":p,"--n-link-padding":m,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":g}}),l=r?et("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(TY,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},xn(e,$Y),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(P2,Object.assign({},xn(this,$K)),{default:this.renderAnchor}):this.renderAnchor()}});function Ef(e){return e.type==="group"}function dP(e){return e.type==="ignored"}function zp(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Sh(e,t){return{getIsGroup:Ef,getIgnored:dP,getKey(r){return Ef(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function zY(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(Ef(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(dP(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function MY(e,t,n){const r=new Map;return e.forEach(o=>{Ef(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const DY=lr&&"chrome"in window;lr&&navigator.userAgent.includes("Firefox");const uP=lr&&navigator.userAgent.includes("Safari")&&!DY,fP={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},IY={name:"Input",common:tt,self(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,clearColor:_,clearColorHover:k,clearColorPressed:T,placeholderColor:$,placeholderColorDisabled:R,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:$,placeholderColorDisabled:R,color:a,colorDisabled:l,colorFocus:He(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:He(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:He(d,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:k,clearColorPressed:T,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L,suffixTextColor:t})}},Zr=IY,FY=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:v,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,actionColor:k,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:D,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,lineHeight:v,lineHeightTextarea:v,borderRadius:p,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:D,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${He(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${He(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${He(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},AY={name:"Input",common:nt,self:FY},zr=AY,hP="n-input";function BY(e){let t=0;for(const n of e)t++;return t}function cd(e){return e===""||e==null}function EY(e){const t=F(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const p=d[c-1],v=s.indexOf(p,c-1);v!==-1&&(h=v+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return it(e,o),{recordCursor:n,restoreCursor:r}}const MC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(hP),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||BY)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Da(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),LY=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),I("round",[mt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),I("textarea",[M("placeholder","overflow: visible;")]),mt("autosize","width: 100%;"),I("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),mt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),I("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),I("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),I("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),I("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),mt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),I("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>I(`${e}-status`,[mt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),I("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),NY=S("input",[I("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),pP=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),En=J({name:"Input",props:pP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Input","-input",LY,zr,e,t);uP&&Xr("-input-safari",NY,t);const a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=EY(h),v=F(null),{localeRef:b}=Cn("Input"),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=Sn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:_}=C,k=F(!1),T=F(!1),$=F(!1),R=F(!1);let D=null;const z=P(()=>{const{placeholder:le,pair:De}=e;return De?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&(cd(De)||Array.isArray(De)&&cd(De[0]))&&Ze[0]}),L=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&Ze[1]&&(cd(De)||Array.isArray(De)&&cd(De[1]))}),j=lt(()=>e.internalForceFocus||k.value),E=lt(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:De}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||De):!!le&&(T.value||De)}),W=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=F(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(De=>({textDecoration:De})):[{textDecoration:le}]:["",""]}),V=F(void 0),re=()=>{var le,De;if(e.type==="textarea"){const{autosize:Ze}=e;if(Ze&&(V.value=(De=(le=v.value)===null||le===void 0?void 0:le.$el)===null||De===void 0?void 0:De.offsetWidth),!l.value||typeof Ze=="boolean")return;const{paddingTop:bt,paddingBottom:be,lineHeight:Fe}=window.getComputedStyle(l.value),Je=Number(bt.slice(0,-2)),at=Number(be.slice(0,-2)),ct=Number(Fe.slice(0,-2)),{value:Gt}=s;if(!Gt)return;if(Ze.minRows){const Kt=Math.max(Ze.minRows,1),Re=`${Je+at+ct*Kt}px`;Gt.style.minHeight=Re}if(Ze.maxRows){const Kt=`${Je+at+ct*Ze.maxRows}px`;Gt.style.maxHeight=Kt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});It(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Jo().proxy;function de(le){const{onUpdateValue:De,"onUpdate:value":Ze,onInput:bt}=e,{nTriggerFormInput:be}=C;De&&he(De,le),Ze&&he(Ze,le),bt&&he(bt,le),g.value=le,be()}function Ce(le){const{onChange:De}=e,{nTriggerFormChange:Ze}=C;De&&he(De,le),g.value=le,Ze()}function we(le){const{onBlur:De}=e,{nTriggerFormBlur:Ze}=C;De&&he(De,le),Ze()}function me(le){const{onFocus:De}=e,{nTriggerFormFocus:Ze}=C;De&&he(De,le),Ze()}function Oe(le){const{onClear:De}=e;De&&he(De,le)}function _e(le){const{onInputBlur:De}=e;De&&he(De,le)}function ve(le){const{onInputFocus:De}=e;De&&he(De,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function U(le){const{onClick:De}=e;De&&he(De,le)}function Y(le){const{onWrapperFocus:De}=e;De&&he(De,le)}function ce(le){const{onWrapperBlur:De}=e;De&&he(De,le)}function G(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,De=0,Ze="input"){const bt=le.target.value;if(ze(bt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:Fe}=v;Fe&&Fe.syncUnifiedContainer()}if(D=bt,$.value)return;p.recordCursor();const be=te(bt);if(be)if(!e.pair)Ze==="input"?de(bt):Ce(bt);else{let{value:Fe}=y;Array.isArray(Fe)?Fe=[Fe[0],Fe[1]]:Fe=["",""],Fe[De]=bt,Ze==="input"?de(Fe):Ce(Fe)}ue.$forceUpdate(),be||Rt(p.restoreCursor)}function te(le){const{countGraphemes:De,maxlength:Ze,minlength:bt}=e;if(De){let Fe;if(Ze!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe>Number(Ze))||bt!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe{bt.preventDefault(),Ct("mouseup",document,De)};if(_t("mouseup",document,De),W.value!=="mousedown")return;K.value=!0;const Ze=()=>{K.value=!1,Ct("mouseup",document,Ze)};_t("mouseup",document,Ze)}function Xe(le){var De;switch((De=e.onKeydown)===null||De===void 0||De.call(e,le),le.key){case"Escape":Ke();break;case"Enter":We(le);break}}function We(le){var De,Ze;if(e.passivelyActivated){const{value:bt}=R;if(bt){e.internalDeactivateOnEnter&&Ke();return}le.preventDefault(),e.type==="textarea"?(De=l.value)===null||De===void 0||De.focus():(Ze=d.value)===null||Ze===void 0||Ze.focus()}}function Ke(){e.passivelyActivated&&(R.value=!1,Rt(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function X(){var le,De,Ze;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((De=l.value)===null||De===void 0||De.focus(),(Ze=d.value)===null||Ze===void 0||Ze.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function ke(){var le,De;(le=l.value)===null||le===void 0||le.select(),(De=d.value)===null||De===void 0||De.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&Ke()}function ae(le){if(e.type==="textarea"){const{value:De}=l;De==null||De.scrollTo(le)}else{const{value:De}=d;De==null||De.scrollTo(le)}}function ze(le){const{type:De,pair:Ze,autosize:bt}=e;if(!Ze&&bt)if(De==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=F({top:"0"});function se(le){var De;const{scrollTop:Ze}=le.target;Te.value.top=`${-Ze}px`,(De=v.value)===null||De===void 0||De.syncUnifiedContainer()}let $e=null;At(()=>{const{autosize:le,type:De}=e;le&&De==="textarea"?$e=it(y,Ze=>{!Array.isArray(Ze)&&Ze!==D&&ze(Ze)}):$e==null||$e()});let oe=null;At(()=>{e.type==="textarea"?oe=it(y,le=>{var De;!Array.isArray(le)&&le!==D&&((De=v.value)===null||De===void 0||De.syncUnifiedContainer())}):oe==null||oe()}),ot(hP,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Ie={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:X,blur:q,select:ke,deactivate:Ee,activate:Be,scrollTo:ae},Ne=en("Input",o,t),Qe=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:De},self:{color:Ze,borderRadius:bt,textColor:be,caretColor:Fe,caretColorError:Je,caretColorWarning:at,textDecorationColor:ct,border:Gt,borderDisabled:Kt,borderHover:Re,borderFocus:Ge,placeholderColor:st,placeholderColorDisabled:Pt,lineHeightTextarea:qt,colorDisabled:Et,colorFocus:Qr,textColorDisabled:Nt,boxShadowFocus:fn,iconSize:Ao,colorFocusWarning:ai,boxShadowFocusWarning:li,borderWarning:si,borderFocusWarning:qi,borderHoverWarning:Ah,colorFocusError:Bh,boxShadowFocusError:Eh,borderError:Lh,borderFocusError:Nh,borderHoverError:Hh,clearSize:jh,clearColor:Vh,clearColorHover:D5,clearColorPressed:I5,iconColor:F5,iconColorDisabled:A5,suffixTextColor:B5,countTextColor:E5,countTextColorDisabled:L5,iconColorHover:N5,iconColorPressed:H5,loadingColor:j5,loadingColorError:V5,loadingColorWarning:W5,[ye("padding",le)]:U5,[ye("fontSize",le)]:K5,[ye("height",le)]:q5}}=i.value,{left:Y5,right:G5}=Pi(U5);return{"--n-bezier":De,"--n-count-text-color":E5,"--n-count-text-color-disabled":L5,"--n-color":Ze,"--n-font-size":K5,"--n-border-radius":bt,"--n-height":q5,"--n-padding-left":Y5,"--n-padding-right":G5,"--n-text-color":be,"--n-caret-color":Fe,"--n-text-decoration-color":ct,"--n-border":Gt,"--n-border-disabled":Kt,"--n-border-hover":Re,"--n-border-focus":Ge,"--n-placeholder-color":st,"--n-placeholder-color-disabled":Pt,"--n-icon-size":Ao,"--n-line-height-textarea":qt,"--n-color-disabled":Et,"--n-color-focus":Qr,"--n-text-color-disabled":Nt,"--n-box-shadow-focus":fn,"--n-loading-color":j5,"--n-caret-color-warning":at,"--n-color-focus-warning":ai,"--n-box-shadow-focus-warning":li,"--n-border-warning":si,"--n-border-focus-warning":qi,"--n-border-hover-warning":Ah,"--n-loading-color-warning":W5,"--n-caret-color-error":Je,"--n-color-focus-error":Bh,"--n-box-shadow-focus-error":Eh,"--n-border-error":Lh,"--n-border-focus-error":Nh,"--n-border-hover-error":Hh,"--n-loading-color-error":V5,"--n-clear-color":Vh,"--n-clear-size":jh,"--n-clear-color-hover":D5,"--n-clear-color-pressed":I5,"--n-icon-color":F5,"--n-icon-color-hover":N5,"--n-icon-color-pressed":H5,"--n-icon-color-disabled":A5,"--n-suffix-text-color":B5}}),Ue=r?et("input",P(()=>{const{value:le}=x;return le[0]}),Qe,e):void 0;return Object.assign(Object.assign({},Ie),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:v,rtlEnabled:Ne,uncontrolledValue:g,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:W,placeholderStyle:Te,mergedStatus:_,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:G,handleCompositionEnd:B,handleInput:N,handleInputBlur:pe,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ft,handleMouseLeave:ht,handleMouseDown:Ye,handleChange:Pe,handleClick:Ae,handleClear:qe,handlePasswordToggleClick:vt,handlePasswordToggleMousedown:Ve,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Qe,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},kt(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(ln,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(Ot,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(jr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&kt(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[kt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(nP,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(MC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?gt(s["password-visible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(O2,null)})]):gt(s["password-invisible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(zK,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},gt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),kt(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(MC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),HY=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),vP={},gP=J({name:"InputGroup",props:vP,setup(e){const{mergedClsPrefixRef:t}=je(e);return Xr("-input-group",HY,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),jY=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),mP=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),VY=J({name:"InputGroupLabel",props:mP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Input","-input-group-label",jY,zr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:p,[ye("fontSize",l)]:v,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":v,"--n-line-height":h,"--n-height":b}}),a=r?et("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function bP(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WY={name:"AutoComplete",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:bP},UY=WY,KY={name:"AutoComplete",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self:bP},qY=KY;function YY(e){return e.map(yP)}function yP(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>yP(o))}:e}const GY=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),xP=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),XY=J({name:"AutoComplete",props:xP,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=F(null),d=F(null),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=F(!1),b=F(!1),g=Se("AutoComplete","-auto-complete",GY,UY,e,r),m=P(()=>YY(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(p.value||""):!!p.value}),C=P(()=>y.value&&v.value&&!!m.value.length),x=P(()=>co(m.value,Sh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:_e}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),_e()}function _(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function k(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function D(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(_(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),v.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){v.value=!0,T(de)}function j(de){v.value=!1,k(de)}function E(de){v.value=!0,w(de)}function W(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(vr(de))||(v.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=g.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?et("auto-complete",void 0,V,e):void 0,ee=F(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:p,isMounted:Hn(),adjustedTo:Ht(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:W,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:D,mergedTheme:g,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(qr,null,{default:()=>[u(Yr,null,{default:()=>{if(this.$slots.default)return ju(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(En,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement,width:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return un(u(xc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[gr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),_l=lr&&"loading"in document.createElement("img"),ZY=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},Mp=new WeakMap,Dp=new WeakMap,Ip=new WeakMap,wP=(e,t,n)=>{if(!e)return()=>{};const r=ZY(t),{root:o}=r.options;let i;const a=Mp.get(o);a?i=a:(i=new Map,Mp.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=Dp.get(h.target),v=Ip.get(h.target);p&&p(),v&&(v.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Dp.delete(e),Ip.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||Mp.delete(o))};return Dp.set(e,d),Ip.set(e,n),d},CP=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:pt(r,n),colorModal:pt(d,n),colorPopover:pt(f,n)}},QY={name:"Avatar",common:nt,self:CP},SP=QY,JY={name:"Avatar",common:tt,self:CP},kP=JY,_P="n-avatar-group",eG=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[Mo(O("&","--n-merged-color: var(--n-color-modal);")),ei(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),RP=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),rm=J({name:"Avatar",props:RP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1);let o=null;const i=F(null),a=F(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:_}=x,{offsetWidth:k,offsetHeight:T}=C,$=.9,R=Math.min(w/k*$,_/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(_P,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",eG,SP,e,t),f=Le(tP,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),p=P(()=>s?!0:e.bordered||!1),v=C=>{var x;if(!m.value)return;r.value=!0;const{onError:w,imgProps:_}=e;(x=_==null?void 0:_.onError)===null||x===void 0||x.call(_,C),w&&w(C)};it(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e,{self:{borderRadius:k,fontSize:T,color:$,border:R,colorModal:D,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":k,"--n-color":_||$,"--n-color-modal":_||D,"--n-color-popover":_||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),g=n?et("avatar",P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e;let k="";return C&&(typeof C=="number"?k+=`a${C}`:k+=C[0]),x&&(k+="b"),w&&(k+="c"),_&&(k+=Ia(_)),k}),b,e):void 0,m=F(!e.lazy);It(()=>{if(_l)return;let C;const x=At(()=>{C==null||C(),C=void 0,e.lazy&&(C=wP(a.value,e.intersectionObserverOptions,m))});Bt(()=>{x(),C==null||C()})});const y=F(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:r,handleError:v,shouldStartLoading:m,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:_}=e;w==null||w(C),(x=_==null?void 0:_.onLoad)===null||x===void 0||x.call(_,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():gt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=kt(n.default,p=>{if(p)return u(jr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},p)});if(r){const{imgProps:v}=this;return u("img",Object.assign(Object.assign({},v),{loading:_l&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:_l||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[v==null?void 0:v.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),tG=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),I("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),PP=()=>({gap:"-12px"}),nG={name:"AvatarGroup",common:nt,peers:{Avatar:SP},self:PP},rG=nG,oG={name:"AvatarGroup",common:tt,peers:{Avatar:kP},self:PP},iG=oG,$P=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),aG=J({name:"AvatarGroup",props:$P,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("AvatarGroup","-avatar-group",tG,rG,e,t);ot(_P,e);const o=en("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(rm,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(rm,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),TP={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},lG={name:"BackTop",common:tt,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},sG=lG,cG=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},dG={name:"BackTop",common:nt,self:cG},uG=dG,fG=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),hG=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[Dn(),I("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),OP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),pG=J({name:"BackTop",inheritAttrs:!1,props:OP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(!1);At(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=F(!1);it(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=St(a,o),s=F(!0),c=F(null),d=P(()=>({right:`calc(${Mt(e.right)} + ${Iv.value})`,bottom:Mt(e.bottom)}));let f,h;it(l,x=>{var w,_;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(_=e.onHide)===null||_===void 0||_.call(e))});const p=Se("BackTop","-back-top",hG,uG,e,t);function v(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||Ob(e.listenTo)||B_(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:_}=e;typeof _=="string"&&document.querySelector(_),f.addEventListener("scroll",g),g()}function b(){(S1(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function g(){r.value=(S1(f)?document.documentElement:f).scrollTop,i.value||Rt(()=>{i.value=!0})}function m(){s.value=!1}It(()=>{v(),s.value=l.value}),Bt(()=>{f&&f.removeEventListener("scroll",g)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:_,boxShadowPressed:k,iconColor:T,iconColorHover:$,iconColorPressed:R,width:D,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=p.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":D,"--n-box-shadow":w,"--n-box-shadow-hover":_,"--n-box-shadow-pressed":k,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?et("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:Hn(),scrollElement:F(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:m,handleScroll:g,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(mc,{to:this.to,show:this.mergedShow},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Gn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),gt(this.$slots.default,()=>[u(dt,{clsPrefix:e},{default:()=>fG})])):null}})}))}}),vG={name:"Badge",common:tt,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}},gG=vG,mG=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},bG={name:"Badge",common:nt,self:mG},yG=bG,xG=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[I("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[Dn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),I("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[Dn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),zP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),wG=J({name:"Badge",props:zP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Badge","-badge",xG,yG,e,n),a=F(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!Pa(t.value)));It(()=>{c.value&&(a.value=!0)});const d=en("Badge",o,n),f=P(()=>{const{type:v,color:b}=e,{common:{cubicBezierEaseInOut:g,cubicBezierEaseOut:m},self:{[ye("color",v)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":g,"--n-ripple-bezier":m}}),h=r?et("badge",P(()=>{let v="";const{type:b,color:g}=e;return b&&(v+=b[0]),g&&(v+=Ia(g)),v}),f,e):void 0,p=P(()=>{const{offset:v}=e;if(!v)return;const[b,g]=v,m=typeof b=="number"?`${b}px`:b,y=typeof g=="number"?`${g}px`:g;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${m}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:p}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(Ft,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:hc(this.value),style:this.offsetStyle},gt(o.value,()=>[this.dot?null:u(dY,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u(U2,{clsPrefix:t}):null):null}))}}),CG={fontWeightActive:"400"},MP=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},CG),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},SG={name:"Breadcrumb",common:nt,self:MP},kG=SG,_G={name:"Breadcrumb",common:tt,self:MP},RG=_G,PG=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[I("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),DP="n-breadcrumb",IP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),$G=J({name:"Breadcrumb",props:IP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Breadcrumb","-breadcrumb",PG,kG,e,t);ot(DP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:p,itemBorderRadius:v,itemColorHover:b,itemColorPressed:g,itemLineHeight:m}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":g,"--n-item-border-radius":v,"--n-font-weight-active":p,"--n-item-line-height":m}}),i=n?et("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),TG=lr?window:null,OG=(e=TG)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=F(t());return It(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),sc(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},FP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},zG=J({name:"BreadcrumbItem",props:FP,setup(e,{slots:t}){const n=Le(DP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=OG(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},gt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function ra(e){return pt(e,[255,255,255,.16])}function dd(e){return pt(e,[0,0,0,.12])}const AP="n-button-group",MG={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},BP=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:p,primaryColorPressed:v,borderColor:b,primaryColor:g,baseColor:m,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:_,successColorPressed:k,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:D,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:W,fontWeightStrong:K}=e;return Object.assign(Object.assign({},MG),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:W,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:W,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:W,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:p,textColorPressed:v,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:v,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:v,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${v}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${b}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:v,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:v,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:v,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${v}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:_,colorPressedSuccess:k,colorFocusSuccess:_,colorDisabledSuccess:w,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:w,textColorTextHoverSuccess:_,textColorTextPressedSuccess:k,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:k,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${k}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:D,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:D,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:D,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:D,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},DG={name:"Button",common:nt,self:BP},xr=DG,IG={name:"Button",common:tt,self(e){const t=BP(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},wr=IG,FG=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("color",[M("border",{borderColor:"var(--n-border-color)"}),I("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),mt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),I("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),I("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),mt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),I("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),I("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[I("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),lr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[On({top:"50%",originalTransform:"translateY(-50%)"})]),oP()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),I("block",` - display: flex; - width: 100%; - `),I("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),I("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),EP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!uP}}),LP=J({name:"Button",props:EP,setup(e){const t=F(null),n=F(null),r=F(!1),o=lt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(AP,{}),{mergedSizeRef:a}=Sn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:_}=i;if(_)return _;const{mergedSize:k}=x||{};return k?k.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&he(_,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:v,mergedRtlRef:b}=je(e),g=Se("Button","-button",FG,xr,e,v),m=en("Button",b,v),y=P(()=>{const x=g.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:_},self:k}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:D}=k,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:W,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?D:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",_e=me?"default":L;if(E){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":pe||k[ye("textColorText",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorTextPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorTextDisabled",_e)]}}else if(j||A){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":pe||k[ye("textColorGhost",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorGhostPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorGhostDisabled",_e)]}}else if(re){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?He(Z,{alpha:Number(k.colorOpacitySecondary)}):k.colorSecondary,"--n-color-hover":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-pressed":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryPressed)}):k.colorSecondaryPressed,"--n-color-focus":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-disabled":k.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe;ee?(we["--n-color"]=k.colorTertiary,we["--n-color-hover"]=k.colorTertiaryHover,we["--n-color-pressed"]=k.colorTertiaryPressed,we["--n-color-focus"]=k.colorSecondaryHover,we["--n-color-disabled"]=k.colorTertiary):(we["--n-color"]=k.colorQuaternary,we["--n-color-hover"]=k.colorQuaternaryHover,we["--n-color-pressed"]=k.colorQuaternaryPressed,we["--n-color-focus"]=k.colorQuaternaryHover,we["--n-color-disabled"]=k.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":W||k[ye("color",_e)],"--n-color-hover":W?ra(W):k[ye("colorHover",_e)],"--n-color-pressed":W?dd(W):k[ye("colorPressed",_e)],"--n-color-focus":W?ra(W):k[ye("colorFocus",_e)],"--n-color-disabled":W||k[ye("colorDisabled",_e)],"--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":V||(W?k.textColorPrimary:me?k.textColorTertiary:k[ye("textColor",_e)]),"--n-text-color-hover":V||(W?k.textColorHoverPrimary:k[ye("textColorHover",_e)]),"--n-text-color-pressed":V||(W?k.textColorPressedPrimary:k[ye("textColorPressed",_e)]),"--n-text-color-focus":V||(W?k.textColorFocusPrimary:k[ye("textColorFocus",_e)]),"--n-text-color-disabled":V||(W?k.textColorDisabledPrimary:k[ye("textColorDisabled",_e)])};let ve={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?ve={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ve={"--n-border":k[ye("border",_e)],"--n-border-hover":k[ye("borderHover",_e)],"--n-border-pressed":k[ye("borderPressed",_e)],"--n-border-focus":k[ye("borderFocus",_e)],"--n-border-disabled":k[ye("borderDisabled",_e)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:U,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:G,[ye("iconMargin",z)]:B,waveOpacity:N}=k,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:U,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:G};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":_,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),ve),te)}),C=p?et("button",P(()=>{let x="";const{dashed:w,type:_,ghost:k,text:T,color:$,round:R,circle:D,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),k&&(x+="b"),T&&(x+="c"),R&&(x+="d"),D&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ia($)),z&&(x+="k"+Ia(z));const{value:W}=a;return x+="l"+W[0],x+="m"+_[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:v,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:m,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=ra(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":dd(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:p?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=kt(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Io,{width:!0},{default:()=>kt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:Pa(this.$slots.default)?"0":""}},u(Do,null,{default:()=>this.loading?u(so,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u(U2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Tt=LP,lo=LP,vn="0!important",NP="-1px!important";function dl(e){return I(e+"-type",[O("& +",[S("button",{},[I(e+"-type",[M("border",{borderLeftWidth:vn}),M("state-border",{left:NP})])])])])}function ul(e){return I(e+"-type",[O("& +",[S("button",[I(e+"-type",[M("border",{borderTopWidth:vn}),M("state-border",{top:NP})])])])])}const AG=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[mt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${vn}; - border-top-right-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${vn}; - border-top-left-radius: ${vn}; - border-bottom-left-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${vn}; - margin-right: ${vn}; - border-radius: ${vn}; - `),dl("default"),I("ghost",[dl("primary"),dl("info"),dl("success"),dl("warning"),dl("error")])])])]),I("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-bottom-left-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-top-left-radius: ${vn}; - border-top-right-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${vn}; - border-radius: ${vn}; - `),ul("default"),I("ghost",[ul("primary"),ul("info"),ul("success"),ul("warning"),ul("error")])])])]),HP={size:{type:String,default:void 0},vertical:Boolean},g0=J({name:"ButtonGroup",props:HP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);return Xr("-button-group",AG,t),ot(AP,e),{rtlEnabled:en("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Lf=1901,Na=40,BG={date:P9,month:xh,year:_2,quarter:k2};function Wo(e,t,n){const r=BG[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function Fp(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:p,popoverColor:v}=e;return Object.assign(Object.assign({},HG),{borderRadius:t,borderColor:pt(h,l),borderColorModal:pt(p,l),borderColorPopover:pt(v,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:pt(h,f),cellColorHoverModal:pt(p,f),cellColorHoverPopover:pt(v,f),cellColor:h,cellColorModal:p,cellColorPopover:v,barColor:c})},jG={name:"Calendar",common:nt,peers:{Button:xr},self:jP},VG=jG,WG={name:"Calendar",common:tt,peers:{Button:wr},self:jP},UG=WG,KG=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),I("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),I("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),I("disabled",` - cursor: not-allowed; - `),I("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),Mo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),ei(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),VP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),qG=J({name:"Calendar",props:VP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Calendar","-calendar",KG,VG,e,n),{localeRef:i,dateLocaleRef:a}=Cn("DatePicker"),l=Date.now(),s=F(Fr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=F(e.defaultValue||null),d=St(xe(e,"value"),c);function f(m,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,m,y),x&&he(x,m,y),c.value=m}function h(){var m;const y=Fn(s.value,-1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function p(){var m;const y=Fn(s.value,1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function v(){var m;const{value:y}=s,C=nn(y),x=Xt(y),w=Fr(l).valueOf();s.value=w;const _=nn(w),k=Xt(w);(C!==_||x!==k)&&((m=e.onPanelChange)===null||m===void 0||m.call(e,{year:_,month:k+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:m},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:_,textColor:k,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:D,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:W,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":m,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":k,"--n-title-font-weight":T,"--n-title-font-size":_,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":D,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":W,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),g=r?et("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Nf(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:v,handlePrevClick:h,handleNextClick:p,mergedTheme:o,cssVars:r?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:p}=this;p==null||p();const v=o&&zl(o).valueOf(),b=nn(n),g=Xt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Da(a.header,{year:b,month:g},()=>{const m=on(n,"MMMM",{locale:c});return[l?`${m} ${b}`:`${b} ${m}`]})),u("div",{class:`${t}-calendar-header__extra`},u(g0,null,{default:()=>u(Ot,null,u(Tt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(u0,null)})}),u(Tt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Tt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ya,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:m,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var _;const{year:k,month:T,date:$}=m,R=on(y,"yyyy-MM-dd"),D=!C,z=(e==null?void 0:e(y))===!0,A=v===zl(y).valueOf();return u("div",{key:`${g}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,D&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Fr(y).valueOf();this.monthTs=j,D&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:nn(j),month:Xt(j)+1})),this.doUpdateValue(y,{year:k,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},on(y,"EEE",{locale:c}))),(_=a.default)===null||_===void 0?void 0:_.call(a,{year:k,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),WP=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}},YG={name:"ColorPicker",common:nt,peers:{Input:zr,Button:xr},self:WP},GG=YG,XG={name:"ColorPicker",common:tt,peers:{Input:Zr,Button:wr},self:WP},ZG=XG;function QG(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ec(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function JG(e){return e=Math.round(e),e>=360?359:e<0?0:e}function eX(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const tX={rgb:{hex(e){return Ti(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hex:{rgb(e){return _o(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=Cl(e);return Ti([...Sv(t,n,r),o])},rgb(e){const[t,n,r,o]=Cl(e);return _o([...Sv(t,n,r),o])},hsv(e){const[t,n,r,o]=Cl(e);return Ra([...E_(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=_a(e);return Ti([...mi(t,n,r),o])},rgb(e){const[t,n,r,o]=_a(e);return _o([...mi(t,n,r),o])},hsl(e){const[t,n,r,o]=_a(e);return $i([...Id(t,n,r),o])}}};function UP(e,t,n){return n=n||ec(e),n?n===t?e:tX[n][t](e):null}const hl="12px",nX=12,oa="6px",rX=6,oX="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",iX=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=JG((i.clientX-s-rX)/(l-nX)*360);e.onUpdateHue(c)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:hl,borderRadius:oa}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:oX,height:hl,borderRadius:oa,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:oa,right:oa,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${oa})`,borderRadius:oa,width:hl,height:hl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:oa,width:hl,height:hl}})))))}}),as="12px",aX=12,ia="6px",lX=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||!e.rgba||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-aX);e.onUpdateAlpha(eX(c))}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:as,borderRadius:ia},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:ia,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:ia,right:ia,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${ia})`,borderRadius:ia,width:as,height:as}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:_o(this.rgba),borderRadius:ia,width:as,height:as}}))))}}),ud="12px",fd="6px",sX=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,p=100*(h>1?1:h<0?0:h),v=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,v)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:ud,height:ud,borderRadius:fd,left:`calc(${this.displayedSv[0]}% - ${fd})`,bottom:`calc(${this.displayedSv[1]}% - ${fd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:fd,width:ud,height:ud}})))}}),m0="n-color-picker";function cX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function dX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function uX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function fX(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function hX(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const pX={paddingSmall:"0 4px"},DC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=F(""),{themeRef:n}=Le(m0,null);At(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=fX(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=dX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=uX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=hX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=cX(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(En,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:pX,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),vX=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?Ti:_s)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?Ra:Rv)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?_o:_v)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?$i:Pv)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(gP,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?Ti:_s)(r)}catch{}return u(DC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(DC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),gX=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(m0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?$i(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function mX(e,t){if(t==="hsv"){const[n,r,o,i]=_a(e);return _o([...mi(n,r,o),i])}return e}function bX(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const yX=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=ec(i);return{value:i,mode:a,legalValue:mX(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=bX(l):(Qn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:UP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),xX=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ec(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,UP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),wX=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[Dn(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),I("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),KP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Ht.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),CX=J({name:"ColorPicker",props:KP,setup(e,{slots:t}){const n=F(null);let r=null;const o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=Cn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=je(e),f=Se("ColorPicker","-color-picker",wX,GG,e,s);ot(m0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=F(e.defaultShow),p=St(xe(e,"show"),h);function v(N){const{onUpdateShow:te,"onUpdate:show":pe}=e;te&&he(te,N),pe&&he(pe,N),h.value=N}const{defaultValue:b}=e,g=F(b===void 0?QG(e.modes,e.showAlpha):b),m=St(xe(e,"value"),g),y=F([m.value]),C=F(0),x=P(()=>ec(m.value)),{modes:w}=e,_=F(ec(m.value)||w[0]||"rgb");function k(){const{modes:N}=e,{value:te}=_,pe=N.findIndex(Z=>Z===te);~pe?_.value=N[(pe+1)%N.length]:_.value="rgb"}let T,$,R,D,z,A,L,j;const E=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsv":return _a(N);case"hsl":return[T,$,R,j]=Cl(N),[...E_(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...wv(z,A,L),j]}}),W=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"rgb":case"hex":return Tn(N);case"hsv":return[T,$,D,j]=_a(N),[...mi(T,$,D),j];case"hsl":return[T,$,R,j]=Cl(N),[...Sv(T,$,R),j]}}),K=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsl":return Cl(N);case"hsv":return[T,$,D,j]=_a(N),[...Id(T,$,D),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...Cv(z,A,L),j]}}),Q=P(()=>{switch(_.value){case"rgb":case"hex":return W.value;case"hsv":return E.value;case"hsl":return K.value}}),V=F(0),re=F(1),ee=F([0,0]);function ue(N,te){const{value:pe}=E,Z=V.value,fe=pe?pe[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(Z,N,te),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,pe,Z,fe]=te,{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([N,pe,Z,fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(N,pe,Z),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(N,pe,Z),fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(N,pe,Z),fe]),"cursor");break}}function Ce(N){switch(_.value){case"hsv":[T,$,D]=E.value,we(Ra([T,$,D,N]),"cursor");break;case"rgb":[z,A,L]=W.value,we(_o([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=W.value,we(Ti([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we($i([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),pe(),Z(),g.value=N}function me(N){we(N,"input"),Rt(Oe)}function Oe(N=!0){const{value:te}=m;if(te){const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),pe(),Z()}}function _e(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function ve(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),v(!1)}function H(){const{value:N}=m,{onConfirm:te}=e;te&&te(N),v(!1)}const U=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[m.value],C.value=0)}),At(()=>{if(!(r&&r===m.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:pe,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:qe,[ye("fontSize",N)]:Ye}}=f.value;return{"--n-bezier":te,"--n-text-color":pe,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":Ye,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":qe,"--n-divider-color":Ae}}),G=d?et("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=W,{value:pe}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,G==null?void 0:G.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(sX,{clsPrefix:Pe,rgba:te,displayedHue:pe,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(iX,{clsPrefix:Pe,hue:pe,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(lX,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(xX,{clsPrefix:Pe,mode:_.value,color:W.value&&_s(W.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(vX,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:_.value,modes:fe,onUpdateMode:k,value:m.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(yX,{clsPrefix:Pe,mode:_.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Tt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Tt,{size:"small",onClick:Me,disabled:!m.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Tt,{size:"small",onClick:_e,disabled:!U.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Tt,{size:"small",onClick:ve,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:W,mergedShow:p,mergedDisabled:a,isMounted:Hn(),adjustedTo:Ht(e),mergedValue:m,handleTriggerClick(){v(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(vr(N))||v(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(gX,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Or,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(this.renderPanel(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),SX={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},qP=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:p,closeColorPressed:v,modalColor:b,boxShadow1:g,popoverColor:m,actionColor:y}=e;return Object.assign(Object.assign({},SX),{lineHeight:r,color:i,colorModal:b,colorPopover:m,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:p,closeColorPressed:v,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:g,borderRadius:n})},kX={name:"Card",common:nt,self:qP},YP=kX,_X={name:"Card",common:tt,self(e){const t=qP(e),{cardColor:n,modalColor:r,popoverColor:o}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=o,t}},GP=_X,RX=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[G_({background:"var(--n-color-modal)"}),I("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),I("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),I("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),I("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),I("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),I("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),I("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("embedded",` - background-color: var(--n-color-embedded); - `)]),Mo(S("card",` - background: var(--n-color-modal); - `,[I("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),ei(S("card",` - background: var(--n-color-popover); - `,[I("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),b0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},PX=Wn(b0),XP=Object.assign(Object.assign({},Se.props),b0),ZP=J({name:"Card",props:XP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=je(e),i=Se("Card","-card",RX,YP,e,r),a=en("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:p,titleTextColor:v,titleFontWeight:b,borderColor:g,actionColor:m,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:_,closeColorHover:k,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:D,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:W,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=Pi(W);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":p,"--n-line-height":C,"--n-action-color":m,"--n-title-text-color":v,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":_,"--n-close-color-hover":k,"--n-close-color-pressed":T,"--n-border-color":g,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":D,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?et("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},kt(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),kt(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),kt(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(ri,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),kt(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),kt(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),kt(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),QP=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),$X={name:"Carousel",common:nt,self:QP},TX=$X,OX={name:"Carousel",common:tt,self:QP},zX=OX;function MX(e){const{length:t}=e;return t>1&&(e.push(IC(e[0],0,"append")),e.unshift(IC(e[t-1],t-1,"prepend"))),e}function IC(e,t,n){return ar(e,{key:`carousel-item-duplicate-${t}-${n}`})}function FC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function Ap(e,t){return t?e+1:e}function DX(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function IX(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function FX(e,t){return t&&e>3?e-2:e}function AC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function BC(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function hd(e,t,n){return en?n:e}function AX(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const JP="n-carousel-methods",BX=e=>ot(JP,e),y0=(e="unknown",t="component")=>{const n=Le(JP);return n||Nn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},EX={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},LX=J({name:"CarouselDots",props:EX,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=y0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,p=h==="PageUp"||h==="ArrowUp",v=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",g=h==="PageDown"||h==="ArrowLeft",m=r.isVertical(),y=m?p:b,C=m?v:g;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return sb(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},EA(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),NX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),HX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),jX=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=je(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=y0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},NX),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},HX))}}),Su="CarouselItem",VX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===Su},e$=J({name:Su,setup(e){const{mergedClsPrefixRef:t}=je(e),n=y0(H1(Su),`n-${H1(Su)}`),r=F(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));It(()=>n.addSlide(r.value)),Bt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),WX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[I("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - background-color: var(--n-dot-color-active); - `)])]),I("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),I("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),I("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),I("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[I("current",` - transform: translateY(-50%) translateZ(0); - `),I("prev",` - transform: translateY(-100%) translateZ(-200px); - `),I("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),I("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),I("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),I("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),I("show-arrow",[I("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),I("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),I("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[I("current",` - opacity: 1; - pointer-events: auto; - `)])]),I("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[I("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),I("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),I("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),UX=["transitionDuration","transitionTimingFunction"],t$=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Bp=!1;const KX=J({name:"Carousel",props:t$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(null),i=F([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),p=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),v=P(()=>h.value?1:e.slidesPerView),b=P(()=>p.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),g=F({width:0,height:0}),m=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Ie}=b;if(Ie)return oe.map(Ze=>BC(Ze));const{value:Ne}=v,{value:Qe}=g,{value:Ue}=s;let le=Qe[Ue];if(Ne!=="auto"){const{spaceBetween:Ze}=e,bt=le-(Ne-1)*Ze,be=1/Math.max(1,Ne);le=bt*be}const De=Object.assign(Object.assign({},Qe),{[Ue]:le});return oe.map(()=>De)}),y=P(()=>{const{value:oe}=m;if(!oe.length)return[];const{centeredSlides:Ie,spaceBetween:Ne}=e,{value:Qe}=s,{[Qe]:Ue}=g.value;let le=0;return oe.map(({[Qe]:De})=>{let Ze=le;return Ie&&(Ze+=(De-Ue)/2),le+=De+Ne,Ze})}),C=F(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?xn(oe,UX):{}}),w=P(()=>h.value?0:AX(x.value.transitionDuration)),_=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Ie=!(b.value||v.value===1),Ne=De=>{if(Ie){const{value:Ze}=s;return{[Ze]:`${m.value[De][Ze]}px`}}};if(h.value)return oe.map((De,Ze)=>Ne(Ze));const{effect:Qe,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((De,Ze,bt)=>{const be=Object.assign(Object.assign({},Ne(bt)),{[`margin-${le}`]:`${Ue}px`});return De.push(be),C.value&&(Qe==="fade"||Qe==="card")&&Object.assign(be,x.value),De},[])}),k=P(()=>{const{value:oe}=p,{length:Ie}=i.value;if(oe!=="auto")return Math.max(Ie-oe,0)+1;{const{value:Ne}=m,{length:Qe}=Ne;if(!Qe)return Ie;const{value:Ue}=y,{value:le}=s,De=g.value[le];let Ze=Ne[Ne.length-1][le],bt=Qe;for(;bt>1&&ZeFX(k.value,f.value)),$=Ap(e.defaultIndex,f.value),R=F(FC($,k.value,f.value)),D=St(xe(e,"currentIndex"),R),z=P(()=>Ap(D.value,f.value));function A(oe){var Ie,Ne;oe=hd(oe,0,k.value-1);const Qe=FC(oe,k.value,f.value),{value:Ue}=D;Qe!==D.value&&(R.value=Qe,(Ie=e["onUpdate:currentIndex"])===null||Ie===void 0||Ie.call(e,Qe,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Qe,Ue))}function L(oe=z.value){return DX(oe,k.value,e.loop)}function j(oe=z.value){return IX(oe,k.value,e.loop)}function E(oe){const Ie=N(oe);return Ie!==null&&L()===Ie}function W(oe){const Ie=N(oe);return Ie!==null&&j()===Ie}function K(oe){return z.value===N(oe)}function Q(oe){return D.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Ie=hd(Ap(oe,f.value),0,k.value);(oe!==D.value||Ie!==z.value)&&A(Ie)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const _e=F({});function ve(oe,Ie=0){_e.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Ie}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),ve(Oe=0,oe))}function H(oe,Ie){const Ne=U(oe);Ne!==Oe&&Ie>0&&(me=!0),Oe=U(z.value),ve(Ne,Ie)}function U(oe){let Ie;return oe>=k.value-1?Ie=Y():Ie=y.value[oe]||0,Ie}function Y(){if(p.value==="auto"){const{value:oe}=s,{[oe]:Ie}=g.value,{value:Ne}=y,Qe=Ne[Ne.length-1];let Ue;if(Qe===void 0)Ue=Ie;else{const{value:le}=m;Ue=Qe+le[le.length-1][oe]}return Ue-Ie}else{const{value:oe}=y;return oe[k.value-1]||0}}const ce={currentIndexRef:D,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:W,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:G,removeSlide:B,onCarouselItemClick:pe};BX(ce);function G(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Ie=N(oe);Ie!==-1&&i.value.splice(Ie,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Ie=N(oe);if(Ie!==-1){const Ne=[_.value[Ie]],Qe=ce.isPrev(Ie),Ue=ce.isNext(Ie);return Qe&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),ac(Ne)}}function pe(oe,Ie){let Ne=!me&&!Ye&&!ft;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Ie.preventDefault(),Ie.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,qe=0,Ye=!1,ft=!1;function ht(oe){var Ie;if(Bp||!(!((Ie=o.value)===null||Ie===void 0)&&Ie.contains(vr(oe))))return;Bp=!0,Ye=!0,ft=!1,qe=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=AC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(_t("touchmove",document,vt,{passive:!0}),_t("touchend",document,Ve),_t("touchcancel",document,Ve)),e.draggable&&(_t("mousemove",document,vt),_t("mouseup",document,Ve))}function vt(oe){const{value:Ie}=l,{value:Ne}=s,Qe=AC(oe)?oe.touches[0]:oe,Ue=Ie?Qe.clientY-Pe:Qe.clientX-ge,le=g.value[Ne];Ae=hd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&ve(Oe-Ae,0)}function Ve(){const{value:oe}=z;let Ie=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Qe=[...y.value.slice(0,k.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Ie=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Ie=j(oe))}Ie!==null&&Ie!==oe?(ft=!0,A(Ie),Rt(()=>{(!f.value||R.value!==D.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){Ye&&(Bp=!1),Ye=!1,ge=0,Pe=0,Ae=0,qe=0,Ct("touchmove",document,vt),Ct("touchend",document,Ve),Ct("touchcancel",document,Ve),Ct("mousemove",document,vt),Ct("mouseup",document,Ve)}function We(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(_e.value.transitionDuration="0ms"),me=!1}function Ke(oe){if(oe.preventDefault(),me)return;let{deltaX:Ie,deltaY:Ne}=oe;oe.shiftKey&&!Ie&&(Ie=Ne);const Qe=-1,Ue=1,le=(Ie||Ne)>0?Ue:Qe;let De=0,Ze=0;l.value?Ze=le:De=le;const bt=10;(Ze*Ne>=bt||De*Ie>=bt)&&(le===Ue&&!re()?de():le===Qe&&!V()&&ue())}function X(){g.value=BC(r.value,!0),ne()}function q(){var oe,Ie;b.value&&((Ie=(oe=m.effect).scheduler)===null||Ie===void 0||Ie.call(oe),m.effect.run())}function ke(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}It(()=>{At(ne),requestAnimationFrame(()=>C.value=!0)}),Bt(()=>{Xe(),fe()}),cb(()=>{const{value:oe}=i,{value:Ie}=a,Ne=new Map,Qe=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leZe.el===oe[le]);De!==le&&(Ue=!0),Ne.set(oe[le],De)}Ue&&oe.sort((le,De)=>Qe(le)-Qe(De))}),it(z,(oe,Ie)=>{if(oe!==Ie)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=k;oe===Ne-2&&Ie===1?oe=0:oe===1&&Ie===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),it([f,p],()=>void Rt(()=>A(z.value))),it(y,()=>d.value&&Me(),{deep:!0}),it(d,oe=>{oe?Me():(me=!1,ve(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?ht:void 0,onMousedown:e.draggable?ht:void 0,onWheel:e.mousewheel?Ke:void 0})),ae=P(()=>Object.assign(Object.assign({},xn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:D.value})),ze=P(()=>({total:T.value,currentIndex:D.value,to:ce.to})),ie={getCurrentIndex:()=>D.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",WX,TX,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Ie,dotColor:Ne,dotColorActive:Qe,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:De,arrowColor:Ze}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Qe,"--n-dot-size":Ie,"--n-dot-line-width":le,"--n-dot-line-width-active":De,"--n-arrow-color":Ze}}),$e=n?et("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:D,realIndex:z,slideStyles:_,translateStyle:_e,slidesControlListeners:Ee,handleTransitionEnd:We,handleResize:X,handleSlideResize:q,handleMouseenter:ke,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:p}}=this,v=f&&Nr(f())||[];let b=qX(v);return b.length||(b=v.map(g=>u(e$,null,{default:()=>ar(g)}))),this.duplicatedable&&(b=MX(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(g=>u(jr,{onResize:this.handleSlideResize},{default:()=>g}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(jr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((g,m)=>u("div",{style:o[m],key:m},un(u(Ft,Object.assign({},s),{default:()=>g}),[[$r,this.isActive(m)]]))):b)}),this.showDots&&d.total>1&&Da(h,d,()=>[u(LX,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Da(p,c,()=>[u(jX,null)]))}});function qX(e){return e.reduce((t,n)=>(VX(n)&&t.push(n),t),[])}const YX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},n$=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:p,lineHeight:v}=e;return Object.assign(Object.assign({},YX),{labelLineHeight:v,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:p,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${He(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},GX={name:"Checkbox",common:nt,self:n$},jl=GX,XX={name:"Checkbox",common:tt,self(e){const{cardColor:t}=e,n=n$(e);return n.color="#0000",n.checkMarkColor=t,n}},Vl=XX,r$=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},ZX={name:"Cascader",common:nt,peers:{InternalSelectMenu:Hl,InternalSelection:Ch,Scrollbar:br,Checkbox:jl,Empty:oi},self:r$},QX=ZX,JX={name:"Cascader",common:tt,peers:{InternalSelectMenu:yc,InternalSelection:h0,Scrollbar:yr,Checkbox:Vl,Empty:oi},self:r$},eZ=JX;function pd(e){return e?e.map(t=>t.rawNode):null}function tZ(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:lm(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function lm(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const nZ=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),rZ=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),o$="n-checkbox-group",i$={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},a$=J({name:"CheckboxGroup",props:i$,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Sn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=F(e.defaultValue),a=P(()=>e.value),l=St(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:p,nTriggerFormChange:v}=n,{onChange:b,"onUpdate:value":g,onUpdateValue:m}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),m&&he(m,y,{actionType:"check",value:h}),g&&he(g,y,{actionType:"check",value:h}),p(),v(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),m&&he(m,y,{actionType:"uncheck",value:h}),g&&he(g,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,p(),v())}else f?(m&&he(m,[h],{actionType:"check",value:h}),g&&he(g,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],p(),v()):(m&&he(m,[],{actionType:"uncheck",value:h}),g&&he(g,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],p(),v())}return ot(o$,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),oZ=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),I("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),I("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),I("disabled",{cursor:"not-allowed"},[I("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),On({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),Mo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),ei(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),l$=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ii=J({name:"Checkbox",props:l$,setup(e){const t=F(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Sn(e,{mergedSize(_){const{size:k}=e;if(k!==void 0)return k;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(_){const{mergedSize:T}=_;if(T!==void 0)return T.value}return"medium"},mergedDisabled(_){const{disabled:k}=e;if(k!==void 0)return k;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return _?_.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(o$,null),c=F(e.defaultChecked),d=xe(e,"checked"),f=St(d,c),h=lt(()=>{if(s){const _=s.valueSetRef.value;return _&&e.value!==void 0?_.has(e.value):!1}else return f.value===e.checkedValue}),p=Se("Checkbox","-checkbox",oZ,jl,e,n);function v(_){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:k,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:D}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,_),$&&he($,z,_),k&&he(k,z,_),R(),D(),c.value=z}}function b(_){a.value||v(_)}function g(_){if(!a.value)switch(_.key){case" ":case"Enter":v(_)}}function m(_){switch(_.key){case" ":_.preventDefault()}}const y={focus:()=>{var _;(_=t.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=t.value)===null||_===void 0||_.blur()}},C=en("Checkbox",o,n),x=P(()=>{const{value:_}=l,{common:{cubicBezierEaseInOut:k},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:D,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:W,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:_e,[ye("fontSize",_)]:ve,[ye("size",_)]:Me}}=p.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":_e,"--n-size":Me,"--n-bezier":k,"--n-border-radius":T,"--n-border":W,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":D,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":ve,"--n-label-padding":me}}),w=r?et("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:p,labelId:Tr(),handleClick:b,handleKeyUp:g,handleKeyDown:m,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:p}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:p,onMousedown:()=>{_t("selectstart",window,v=>{v.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(Do,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},rZ):u("div",{key:"check",class:`${c}-checkbox-icon`},nZ)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),wc="n-cascader",EC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:p,mergedThemeRef:v,labelFieldRef:b,showCheckboxRef:g,updateHoverKey:m,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:_,doUncheck:k,renderLabelRef:T}=Le(wc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),D=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=lt(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=lt(()=>r.value?a.value.includes($.value):!1),j=lt(()=>l.value.includes($.value)),E=lt(()=>{const{value:me}=s;return me===null?!1:me===$.value}),W=lt(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:_e}=c,{value:ve}=h,{value:Me}=$,{value:H}=K,{value:U}=re;Zn(me,"checkbox")||(Oe&&!U&&!_e.has(Me)&&ve&&(C(Me),ve(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),m(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;m(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?k(Oe):_(Oe):(_(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:W,showCheckbox:g,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:p,mergedTheme:v,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:D,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(ii,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(dt,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(d0,null)}):null}):null:u(so,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(dt,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ya,null)})}))))}}),iZ=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(wc),o=F(null),i=F(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>hn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(ln,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(qo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(EC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(EC,{key:r.key,tmNode:r}))}))}}),aZ=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(wc),l=[],s=F(null),c=F(null);function d(){o()}ph(c,d);function f(g){var m;const{value:{loadingRequiredMessage:y}}=t;(m=s.value)===null||m===void 0||m.showOnce(y(g))}function h(g){i(g)}function p(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onFocus(g)}function v(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onBlur(g)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:p,handleFocusout:v,handleClickOutside:h},{scroll(g,m,y){const C=l[g];C&&C.scroll(m,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?un(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(iZ,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(Vq,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},gt(this.$slots.empty,()=>[u(Ui,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),kt(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Fo,{onFocus:this.onTabout})),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),lZ=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(wc),p=F(null),v=P(()=>tZ(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:D}=e;return(z,A,L)=>L.some(j=>j[D]&&~j[D].indexOf(z))}),g=P(()=>{const{pattern:R}=e,{value:D}=b;return(R?v.value.filter(z=>D(R,z.rawNode,z.path)):v.value).map(z=>({value:z.value,label:z.label}))}),m=P(()=>co(g.value,Sh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:D}=n;Array.isArray(D)?D.includes(R.key)?d(R.key):f(R.key):D===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=p.value)===null||R===void 0||R.prev()}function _(){var R;(R=p.value)===null||R===void 0||R.next()}function k(){var R;if(p){const D=(R=p.value)===null||R===void 0?void 0:R.getPendingTmNode();return D&&x(D),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:p,selectTreeMate:m,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:_,enter:k})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?un(u(xc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>gt(r["not-found"],()=>[])}),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),sZ=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[Dn({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[I("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[I("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[I("checkmark",{color:"var(--n-option-check-mark-color)"},[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),I("arrow",{color:"var(--n-option-arrow-color)"})])]),I("selected",{color:"var(--n-option-text-color-active)"}),I("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),I("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),I("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[I("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),s$=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Ht.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),cZ=J({name:"Cascader",props:s$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=je(e),a=Se("Cascader","-cascader",sZ,QX,e,r),{localeRef:l}=Cn("Cascader"),s=F(e.defaultValue),c=P(()=>e.value),d=St(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=F(""),p=Sn(e),{mergedSizeRef:v,mergedDisabledRef:b,mergedStatusRef:g}=p,m=F(null),y=F(null),C=F(null),x=F(null),w=F(null),_=F(new Set),k=F(null),T=F(null),$=Ht(e),R=F(!1),D=ie=>{_.value.add(ie)},z=ie=>{_.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return co(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),W=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!_.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);xa(e.options)&&it(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),_e.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Qe}=p;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Ie&&he(Ie,ie,Te,se),s.value=ie,Ne(),Qe()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Ie,getNode:Ne,getPath:Qe}}=A;if($e)try{const{checkedKeys:Ue}=Ie(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var De;return pd((De=Qe(le))===null||De===void 0?void 0:De.treeNodePath)})),oe&&G(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof A2){if(m.value){const le=Ne(ie);le!==null&&m.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,pd(Qe(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,pd((Te=Qe(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Ie}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Qe=>{var Ue;return((Ue=oe(Qe))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Qe=>{var Ue;return pd((Ue=Ie(Qe))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Ie}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Qe=>{const Ue=Ie(Qe);return Ue===null?{label:String(Qe),value:Qe}:{label:ie?lm(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Ie}=A.value;if(oe===null)return null;const Ne=Ie(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?lm(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),_e=F(!1),ve=xe(e,"show"),Me=St(ve,_e),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),U=P(()=>!!(e.filterable&&h.value));it(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,Rt(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=m.value)===null||se===void 0||se.scroll(oe.level,oe.index,hn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=p;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=p;Te&&he(Te,ie),se()}function G(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&G())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function pe(ie){var Te;U.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(vr(ie))||te())}function Z(ie){!U.value||pe(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Ie}=A;switch(ie){case"prev":if(oe!==null){const Ne=Ie.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=m.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"next":if(oe===null){const Ne=Ie.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=m.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,hn(Q.value)))}else{const Ne=Ie.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=m.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"child":if(oe!==null){const Ne=Ie.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Qe=Ie.getChild(oe);Qe!==null&&(ue(oe),ee(Qe.key))}else{const{value:Qe}=_;if(!Qe.has(oe)){D(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Ie.getParent(oe);if(Ne!==null){ee(Ne.key);const Qe=Ne.getParent();ue(Qe===null?null:Qe.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!Zn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=U,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Ie=Ce(oe);!e.multiple&&Ie&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(U.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?U.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!U.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!U.value&&ne("child");break;case"Escape":Me.value&&(Fa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function qe(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function Ye(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ft(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function ht(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function vt(ie){Zn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),G())}function Ve(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function We(ie){h.value=ie.target.value}function Ke(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function X(){var ie;(ie=k.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function ke(){Me.value&&(U.value?X():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));ot(wc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:_,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:Hn(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:X,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:D,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:pe,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Ie,menuBoxShadow:Ne,menuDividerColor:Qe,menuBorderRadius:Ue,menuHeight:le,optionColorHover:De,optionHeight:Ze,optionFontSize:bt,loadingColor:be,columnWidth:Fe},common:{cubicBezierEaseInOut:Je}}=a.value;return{"--n-bezier":Je,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":Fe,"--n-menu-color":Ie,"--n-menu-divider-color":Qe,"--n-option-height":Ze,"--n-option-font-size":bt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":De,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":He(Ie,{alpha:.75}),"--n-loading-color":be}}),ze=i?et("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:ke,mergedStatus:g,selectMenuFollowerRef:k,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:m,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:U,pattern:h,treeMate:A,mergedSize:v,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:W,handleMenuTabout:Ve,handleMenuFocus:ft,handleMenuBlur:ht,handleMenuKeydown:Pe,handleMenuMousedown:vt,handleTriggerFocus:qe,handleTriggerBlur:Ye,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:Ke,handlePatternInput:We,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Or,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(aZ,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(lZ,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),dZ={name:"Code",common:tt,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},c$=dZ,uZ=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},fZ={name:"Code",common:nt,self:uZ},d$=fZ,hZ=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[I("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),I("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),u$=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),f$=J({name:"Code",props:u$,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(),i=F(null),a=n?{value:void 0}:R2(e),l=(p,v,b)=>{const{value:g}=a;return!g||!(p&&g.getLanguage(p))?null:g.highlight(b?v.trim():v,{language:p}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:p}=i;if(!p)return;const{language:v}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(v){const m=l(v,b,e.trim);if(m!==null){if(e.inline)p.innerHTML=m;else{const y=p.querySelector(".__code__");y&&p.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=m,p.appendChild(C)}return}}if(e.inline){p.textContent=b;return}const g=p.querySelector(".__code__");if(g)g.textContent=b;else{const m=document.createElement("pre");m.className="__code__",m.textContent=b,p.innerHTML="",p.appendChild(m)}};It(c),it(xe(e,"language"),c),it(xe(e,"code"),c),n||it(a,c);const d=Se("Code","-code",hZ,d$,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:p,fontFamilyMono:v},self:{textColor:b,fontSize:g,fontWeightStrong:m,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":_,"hue-4":k,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":D}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:g,"--n-font-family":v,"--n-font-weight-strong":m,"--n-bezier":p,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":_,"--n-hue-4":k,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":D,"--n-line-number-text-color":y}}),h=o?et("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let p=1;const v=[];let b=!1;for(const g of e.code)g===` -`?(b=!0,v.push(p++)):b=!1;return b||v.push(p++),v.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),h$=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},pZ={name:"Collapse",common:nt,self:h$},vZ=pZ,gZ={name:"Collapse",common:tt,self:h$},mZ=gZ,bZ=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[I("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),I("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),I("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),Go({duration:"0.15s"})]),I("active",[M("header",[I("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),p$=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),v$="n-collapse",yZ=J({name:"Collapse",props:p$,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=F(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=St(a,i),s=Se("Collapse","-collapse",bZ,vZ,e,n);function c(b){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:m,onExpandedNamesChange:y}=e;m&&he(m,b),g&&he(g,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:g}=e;g&&he(g,b)}function f(b,g,m){const{accordion:y}=e,{value:C}=l;if(y)b?(c([g]),d({name:g,expanded:!0,event:m})):(c([]),d({name:g,expanded:!1,event:m}));else if(!Array.isArray(C))c([g]),d({name:g,expanded:!0,event:m});else{const x=C.slice(),w=x.findIndex(_=>g===_);~w?(x.splice(w,1),c(x),d({name:g,expanded:!1,event:m})):(x.push(g),c(x),d({name:g,expanded:!0,event:m}))}}ot(v$,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=en("Collapse",o,n),p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:g,dividerColor:m,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:_,titleFontSize:k,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":_,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":m,"--n-title-font-size":k,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":g,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),v=r?et("collapse",void 0,p,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),xZ=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Q_(xe(e,"show"))}},render(){return u(Io,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?un(i,[[$r,e]]):e?i:null}})}}),g$={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},wZ=J({name:"CollapseItem",props:g$,setup(e){const{mergedRtlRef:t}=je(e),n=Tr(),r=lt(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(v$);o||Nn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(p=>p===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:en("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Da(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Da(c,{collapsed:r},()=>{var d;return[u(dt,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(u0,null):u(Ya,null)})]})),n==="left"&&l),NA(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(xZ,{clsPrefix:i,displayDirective:o,show:!r},t))}}),CZ=S("collapse-transition",{width:"100%"},[Go()]),m$=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},SZ={name:"CollapseTransition",common:nt,self:m$},kZ=SZ,_Z={name:"CollapseTransition",common:tt,self:m$},RZ=_Z,b$=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),PZ=J({name:"CollapseTransition",props:b$,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("CollapseTransition","-collapse-transition",CZ,kZ,e,t),i=en("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?et("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Io,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Gn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),y$={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Qn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},x$=J({name:"ConfigProvider",alias:["App"],props:y$,setup(e){const t=Le(Ur,null),n=P(()=>{const{theme:v}=e;if(v===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return v===void 0?b:b===void 0?v:Object.assign({},b,v)}),r=P(()=>{const{themeOverrides:v}=e;if(v!==null){if(v===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?v:bl({},b,v)}}}),o=lt(()=>{const{namespace:v}=e;return v===void 0?t==null?void 0:t.mergedNamespaceRef.value:v}),i=lt(()=>{const{bordered:v}=e;return v===void 0?t==null?void 0:t.mergedBorderedRef.value:v}),a=P(()=>{const{icons:v}=e;return v===void 0?t==null?void 0:t.mergedIconsRef.value:v}),l=P(()=>{const{componentOptions:v}=e;return v!==void 0?v:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:v}=e;return v!==void 0?v:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var v;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const g={};for(const m of b)g[m.name]=$u(m),(v=m.peers)===null||v===void 0||v.forEach(y=>{y.name in g||(g[y.name]=$u(y))});return g}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=P(()=>{const{value:v}=n,{value:b}=r,g=b&&Object.keys(b).length!==0,m=v==null?void 0:v.name;return m?g?`${m}-${qs(JSON.stringify(r.value))}`:m:g?qs(JSON.stringify(r.value)):""});return ot(Ur,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedLocaleRef.value:v}),mergedDateLocaleRef:P(()=>{const{dateLocale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedDateLocaleRef.value:v}),mergedHljsRef:P(()=>{const{hljs:v}=e;return v===void 0?t==null?void 0:t.mergedHljsRef.value:v}),mergedKatexRef:P(()=>{const{katex:v}=e;return v===void 0?t==null?void 0:t.mergedKatexRef.value:v}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||d2}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),w$={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},$Z=J({name:"Countdown",props:w$,setup(e){let t=null,n=0,r=!1;const o=F(0);At(()=>{o.value=e.duration});let i=-1;function a(p){return e.duration-n+i-p}function l(p){const v=Math.floor(p/36e5),b=Math.floor(p%36e5/6e4),g=Math.floor(p%6e4/1e3),m=Math.floor(p%1e3);return{hours:v,minutes:b,seconds:g,milliseconds:m}}function s(p){const{hours:v,minutes:b,seconds:g,milliseconds:m}=p,{precision:y}=e;switch(y){case 0:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}`;default:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}.${String(Math.floor(m/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var p;const{precision:v}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(p=e.onFinish)===null||p===void 0||p.call(e));return}let g;switch(v){case 3:case 2:g=b%34;break;case 1:g=b%100;break;default:g=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},g)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};It(()=>{At(()=>{if(e.active)i=performance.now(),c();else{const p=performance.now();i!==-1&&(n+=p-i),d()}})}),Bt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),TZ=e=>1-Math.pow(1-e,5);function OZ(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*TZ(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const C$={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},zZ=J({name:"NumberAnimation",props:C$,setup(e){const{localeRef:t}=Cn("name"),{duration:n}=e,r=F(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,p=e.to)=>{i=!0,r.value=e.from,h!==p&&OZ({from:h,to:p,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const v=P7(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),g=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,m=e.showSeparator?b.format(Number(v[0])):v[0],y=v[1];return{integer:m,decimal:y,decimalSeparator:g}});function d(){i||s()}return It(()=>{At(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),MZ={name:"Popselect",common:tt,peers:{Popover:Ja,InternalSelectMenu:yc}},S$=MZ;function DZ(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const IZ={name:"Popselect",common:nt,peers:{Popover:Qa,InternalSelectMenu:Hl},self:DZ},x0=IZ,k$="n-popselect",FZ=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),w0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},LC=Wn(w0),AZ=J({name:"PopselectPanel",props:w0,setup(e){const t=Le(k$),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Popselect","-pop-select",FZ,x0,t.props,n),i=P(()=>co(e.options,Sh("value","children")));function a(h,p){const{onUpdateValue:v,"onUpdate:value":b,onChange:g}=e;v&&he(v,h,p),b&&he(b,h,p),g&&he(g,h,p)}function l(h){c(h.key)}function s(h){Zn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const v=[],b=[];let g=!0;e.value.forEach(m=>{if(m===h){g=!1;return}const y=p(m);y&&(v.push(y.key),b.push(y.rawNode))}),g&&(v.push(h),b.push(p(h).rawNode)),a(v,b)}else{const v=p(h);v&&a([h],[v.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const v=p(h);v&&a(h,v.rawNode);const{"onUpdate:show":b,onUpdateShow:g}=t.props;b&&he(b,!1),g&&he(g,!1),t.setShow(!1)}Rt(()=>{t.syncPosition()})}it(xe(e,"options"),()=>{Rt(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?et("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(xc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),_$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Va(La,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},La.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),w0),R$=J({name:"Popselect",props:_$,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,x0,e),n=F(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return ot(k$,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(AZ,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},xn(this.$props,LC),{ref:H_(r),onMouseenter:Rs([i,l.onMouseenter]),onMouseleave:Rs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(el,Object.assign({},Va(this.$props,LC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function P$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const BZ={name:"Select",common:nt,peers:{InternalSelection:Ch,InternalSelectMenu:Hl},self:P$},$$=BZ,EZ={name:"Select",common:tt,peers:{InternalSelection:h0,InternalSelectMenu:yc},self:P$},T$=EZ,LZ=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),O$=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),z$=J({name:"Select",props:O$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Select","-select",LZ,$$,e,t),a=F(e.defaultValue),l=xe(e,"value"),s=St(l,a),c=F(!1),d=F(""),f=P(()=>{const{valueField:X,childrenField:q}=e,ke=Sh(X,q);return co(z.value,ke)}),h=P(()=>MY(R.value,e.valueField,e.childrenField)),p=F(!1),v=St(xe(e,"show"),p),b=F(null),g=F(null),m=F(null),{localeRef:y}=Cn("Select"),C=P(()=>{var X;return(X=e.placeholder)!==null&&X!==void 0?X:y.value.placeholder}),x=Ii(e,["items","options"]),w=[],_=F([]),k=F([]),T=F(new Map),$=P(()=>{const{fallbackOption:X}=e;if(X===void 0){const{labelField:q,valueField:ke}=e;return Be=>({[q]:String(Be),[ke]:Be})}return X===!1?!1:q=>Object.assign(X(q),{value:q})}),R=P(()=>k.value.concat(_.value).concat(x.value)),D=P(()=>{const{filter:X}=e;if(X)return X;const{labelField:q,valueField:ke}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return zp(Be,ae);const ze=Ee[ke];return typeof ze=="string"?zp(Be,ze):typeof ze=="number"?zp(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:X}=R,{value:q}=d;return!q.length||!e.filterable?X:zY(X,D.value,q,e.childrenField)}});function A(X){const q=e.remote,{value:ke}=T,{value:Be}=h,{value:Ee}=$,ae=[];return X.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&ke.has(ze))ae.push(ke.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:X}=s;return Array.isArray(X)?A(X):[]}return null}),j=P(()=>{const{value:X}=s;return!e.multiple&&!Array.isArray(X)?X===null?null:A([X])[0]||null:null}),E=Sn(e),{mergedSizeRef:W,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(X,q){const{onChange:ke,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;ke&&he(ke,X,q),Ee&&he(Ee,X,q),Be&&he(Be,X,q),a.value=X,ae(),ze()}function re(X){const{onBlur:q}=e,{nTriggerFormBlur:ke}=E;q&&he(q,X),ke()}function ee(){const{onClear:X}=e;X&&he(X)}function ue(X){const{onFocus:q,showOnFocus:ke}=e,{nTriggerFormFocus:Be}=E;q&&he(q,X),Be(),ke&&Oe()}function de(X){const{onSearch:q}=e;q&&he(q,X)}function Ce(X){const{onScroll:q}=e;q&&he(q,X)}function we(){var X;const{remote:q,multiple:ke}=e;if(q){const{value:Be}=T;if(ke){const{valueField:Ee}=e;(X=L.value)===null||X===void 0||X.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(X){const{onUpdateShow:q,"onUpdate:show":ke}=e;q&&he(q,X),ke&&he(ke,X),p.value=X}function Oe(){K.value||(me(!0),p.value=!0,e.filterable&&vt())}function _e(){me(!1)}function ve(){d.value="",k.value=w}const Me=F(!1);function H(){e.filterable&&(Me.value=!0)}function U(){e.filterable&&(Me.value=!1,v.value||ve())}function Y(){K.value||(v.value?e.filterable?vt():_e():Oe())}function ce(X){var q,ke;!((ke=(q=m.value)===null||q===void 0?void 0:q.selfRef)===null||ke===void 0)&&ke.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function G(X){ue(X),c.value=!0}function B(X){c.value=!0}function N(X){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function te(){var X;(X=b.value)===null||X===void 0||X.focus(),_e()}function pe(X){var q;v.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(vr(X))||_e())}function Z(X){if(!Array.isArray(X))return[];if($.value)return Array.from(X);{const{remote:q}=e,{value:ke}=h;if(q){const{value:Be}=T;return X.filter(Ee=>ke.has(Ee)||Be.has(Ee))}else return X.filter(Be=>ke.has(Be))}}function fe(X){ne(X.rawNode)}function ne(X){if(K.value)return;const{tag:q,remote:ke,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!ke){const{value:ae}=k,ze=ae[0]||null;if(ze){const ie=_.value;ie.length?ie.push(ze):_.value=[ze],k.value=w}}if(ke&&T.value.set(X[Ee],X),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===X[Ee]);if(~ze){if(ae.splice(ze,1),q&&!ke){const ie=ge(X[Ee]);~ie&&(_.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(X[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!ke){const ae=ge(X[Ee]);~ae?_.value=[_.value[ae]]:_.value=w}ht(),_e(),V(X[Ee],X)}}function ge(X){return _.value.findIndex(ke=>ke[e.valueField]===X)}function Pe(X){v.value||Oe();const{value:q}=X.target;d.value=q;const{tag:ke,remote:Be}=e;if(de(q),ke&&!Be){if(!q){k.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||_.value.some(ie=>ie[ze]===ae[ze])?k.value=w:k.value=[ae]}}function Ae(X){X.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&_e(),ee(),q?V([],[]):V(null,null)}function qe(X){!Zn(X,"action")&&!Zn(X,"empty")&&X.preventDefault()}function Ye(X){Ce(X)}function ft(X){var q,ke,Be,Ee,ae;switch(X.key){case" ":if(e.filterable)break;X.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(v.value){const ze=(ke=m.value)===null||ke===void 0?void 0:ke.getPendingTmNode();ze?fe(ze):e.filterable||(_e(),ht())}else if(Oe(),e.tag&&Me.value){const ze=k.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}X.preventDefault();break;case"ArrowUp":if(X.preventDefault(),e.loading)return;v.value&&((Be=m.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(X.preventDefault(),e.loading)return;v.value?(Ee=m.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":v.value&&(Fa(X),_e()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function ht(){var X;(X=b.value)===null||X===void 0||X.focus()}function vt(){var X;(X=b.value)===null||X===void 0||X.focusInput()}function Ve(){var X;!v.value||(X=g.value)===null||X===void 0||X.syncPosition()}we(),it(xe(e,"options"),we);const Xe={focus:()=>{var X;(X=b.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=b.value)===null||X===void 0||X.blur()}},We=P(()=>{const{self:{menuBoxShadow:X}}=i.value;return{"--n-menu-box-shadow":X}}),Ke=o?et("select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:Hn(),triggerRef:b,menuRef:m,pattern:d,uncontrolledShow:p,mergedShow:v,adjustedTo:Ht(e),uncontrolledValue:a,mergedValue:s,followerRef:g,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:W,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:U,handleTriggerOrMenuResize:Ve,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:G,handleKeydown:ft,handleMenuAfterLeave:ve,handleMenuClickOutside:pe,handleMenuScroll:Ye,handleMenuKeydown:ft,handleMenuMousedown:qe,mergedTheme:i,cssVars:o?void 0:We,themeClass:Ke==null?void 0:Ke.themeClass,onRender:Ke==null?void 0:Ke.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Or,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),un(u(xc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[$r,this.mergedShow],[gr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[gr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),NZ={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},M$=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:p,heightMedium:v}=e;return Object.assign(Object.assign({},NZ),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:p,itemSizeLarge:v,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},HZ={name:"Pagination",common:nt,peers:{Select:$$,Input:zr,Popselect:x0},self:M$},D$=HZ,jZ={name:"Pagination",common:tt,peers:{Select:T$,Input:Zr,Popselect:S$},self(e){const{primaryColor:t,opacity3:n}=e,r=He(t,{alpha:Number(n)}),o=M$(e);return o.itemBorderActive=`1px solid ${r}`,o.itemBorderDisabled="1px solid #0000",o}},I$=jZ;function VZ(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,p=!1;c>l+2&&(h=!0),d=l+1&&v.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)v.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return p?(o=!0,a=d+1,v.push({type:"fast-forward",active:!1,label:void 0,options:NC(d+1,s-1)})):d===s-2&&v[v.length-1].label!==s-1&&v.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),v[v.length-1].label!==s&&v.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:v}}function NC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const HC=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,jC=[I("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],WZ=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[I("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),mt("disabled",[I("hover",HC,jC),O("&:hover",HC,jC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[I("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),I("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[I("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),I("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),I("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),F$=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ht.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),A$=J({name:"Pagination",props:F$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Pagination","-pagination",WZ,D$,e,n),{localeRef:a}=Cn("Pagination"),l=F(null),s=F(e.defaultPage),d=F((()=>{const{defaultPageSize:ve}=e;if(ve!==void 0)return ve;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=St(xe(e,"page"),s),h=St(xe(e,"pageSize"),d),p=P(()=>{const{itemCount:ve}=e;if(ve!==void 0)return Math.max(1,Math.ceil(ve/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),v=F("");At(()=>{e.simple,v.value=String(f.value)});const b=F(!1),g=F(!1),m=F(!1),y=F(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{g.value=!0,E()},_=()=>{g.value=!1,E()},k=ve=>{W(ve)},T=P(()=>VZ(f.value,p.value,e.pageSlot));At(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,m.value=!1):(g.value=!1,y.value=!1)});const $=P(()=>{const ve=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${ve}`,value:Me}:Me)}),R=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.inputSize)||$v(e.size)}),D=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.selectSize)||$v(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const ve=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&ve>Me-1?Me-1:ve}),L=P(()=>{const{itemCount:ve}=e;return ve!==void 0?ve:(e.pageCount||1)*h.value}),j=en("Pagination",o,n),E=()=>{Rt(()=>{var ve;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(ve=l.value)===null||ve===void 0||ve.offsetWidth,Me.classList.remove("transition-disabled"))})};function W(ve){if(ve===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:U,simple:Y}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),s.value=ve,Y&&(v.value=String(ve))}function K(ve){if(ve===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:U}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),d.value=ve,p.value{f.value,h.value,E()});const Oe=P(()=>{const{size:ve}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:U,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:G,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:pe,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:qe,itemBorder:Ye,itemBorderHover:ft,itemBorderPressed:ht,itemBorderActive:vt,itemBorderDisabled:Ve,itemBorderRadius:Xe,jumperTextColor:We,jumperTextColorDisabled:Ke,buttonColor:X,buttonColorHover:q,buttonColorPressed:ke,[ye("itemPadding",ve)]:Be,[ye("itemMargin",ve)]:Ee,[ye("inputWidth",ve)]:ae,[ye("selectWidth",ve)]:ze,[ye("inputMargin",ve)]:ie,[ye("selectMargin",ve)]:Te,[ye("jumperFontSize",ve)]:se,[ye("prefixMargin",ve)]:$e,[ye("suffixMargin",ve)]:oe,[ye("itemSize",ve)]:Ie,[ye("buttonIconSize",ve)]:Ne,[ye("itemFontSize",ve)]:Qe,[`${ye("itemMargin",ve)}Rtl`]:Ue,[`${ye("inputMargin",ve)}Rtl`]:le},common:{cubicBezierEaseInOut:De}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Qe,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Ie,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":pe,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":qe,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":Ye,"--n-item-border-hover":ft,"--n-item-border-disabled":Ve,"--n-item-border-active":vt,"--n-item-border-pressed":ht,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":De,"--n-jumper-font-size":se,"--n-jumper-text-color":We,"--n-jumper-text-color-disabled":Ke,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":G,"--n-button-color-hover":q,"--n-button-color":X,"--n-button-color-pressed":ke,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":U}}),_e=r?et("pagination",P(()=>{let ve="";const{size:Me}=e;return ve+=Me[0],ve}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:v,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:D,mergedTheme:i,mergedPageCount:p,startIndex:z,endIndex:A,showFastForwardMenu:m,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:g,handleMenuSelect:k,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:_,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:_e==null?void 0:_e.themeClass,onRender:_e==null?void 0:_e.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:p,pageSizeOptions:v,jumperValue:b,simple:g,prev:m,next:y,prefix:C,suffix:x,label:w,goto:_,handleJumperInput:k,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:D,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=m||e.prev,W=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,g&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u(Ot,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ni,null):u(Bi,null)})),g?u(Ot,null,u("div",{class:`${t}-pagination-quick-jumper`},u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ei,null):u(Li,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const _e=this.fastBackwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Li,null):u(Ei,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-backward",node:_e,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=_e,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(R$,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!W&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:D},W?W({page:o,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Bi,null):u(Ni,null)})));case"size-picker":return!g&&l?u(z$,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:v,value:p,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!g&&s?u("div",{class:`${t}-pagination-quick-jumper`},_?_():gt(this.$slots.goto,()=>[d.goto]),u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),B$={padding:"8px 14px"},UZ={name:"Tooltip",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:r,textColor:o})}},kh=UZ,KZ=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:pt(r,"rgba(0, 0, 0, .85)"),textColor:r})},qZ={name:"Tooltip",common:nt,peers:{Popover:Qa},self:KZ},_h=qZ,YZ={name:"Ellipsis",common:tt,peers:{Tooltip:kh}},E$=YZ,GZ={name:"Ellipsis",common:nt,peers:{Tooltip:_h}},L$=GZ,N$={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},XZ={name:"Radio",common:tt,self(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},H$=XZ,ZZ=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},QZ={name:"Radio",common:nt,self:ZZ},C0=QZ,JZ={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},j$=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:v,heightHuge:b,textColor3:g,opacityDisabled:m}=e;return Object.assign(Object.assign({},JZ),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:v,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:He(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},eQ={name:"Dropdown",common:nt,peers:{Popover:Qa},self:j$},S0=eQ,tQ={name:"Dropdown",common:tt,peers:{Popover:Ja},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,o=j$(e);return o.colorInverted=r,o.optionColorActive=He(n,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},k0=tQ,nQ={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},V$=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,dividerColor:g,heightSmall:m,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},nQ),{actionDividerColor:g,lineHeight:h,borderRadius:f,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,borderColor:pt(t,g),tdColorHover:pt(t,l),tdColorStriped:pt(t,C),thColor:pt(t,a),thColorHover:pt(pt(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:pt(n,g),tdColorHoverModal:pt(n,l),tdColorStripedModal:pt(n,C),thColorModal:pt(n,a),thColorHoverModal:pt(pt(n,a),l),tdColorModal:n,borderColorPopover:pt(r,g),tdColorHoverPopover:pt(r,l),tdColorStripedPopover:pt(r,C),thColorPopover:pt(r,a),thColorHoverPopover:pt(pt(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:y})},rQ={name:"DataTable",common:nt,peers:{Button:xr,Checkbox:jl,Radio:C0,Pagination:D$,Scrollbar:br,Empty:oi,Popover:Qa,Ellipsis:L$,Dropdown:S0},self:V$},oQ=rQ,iQ={name:"DataTable",common:tt,peers:{Button:wr,Checkbox:Vl,Radio:H$,Pagination:I$,Scrollbar:yr,Empty:Za,Popover:Ja,Ellipsis:E$,Dropdown:k0},self(e){const t=V$(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},aQ=iQ,W$=Object.assign(Object.assign({},La),Se.props),Rh=J({name:"Tooltip",props:W$,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,_h,e),n=F(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(el,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),lQ=S("ellipsis",{overflow:"hidden"},[mt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),I("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),I("cursor-pointer",` - cursor: pointer; - `)]);function VC(e){return`${e}-ellipsis--line-clamp`}function WC(e,t){return`${e}-ellipsis--cursor-${t}`}const U$=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),_0=J({name:"Ellipsis",inheritAttrs:!1,props:U$,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=je(e),o=Se("Ellipsis","-ellipsis",lQ,L$,e,r),i=F(null),a=F(null),l=F(null),s=F(!1),c=P(()=>{const{lineClamp:g}=e,{value:m}=s;return g!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":g}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let g=!1;const{value:m}=s;if(m)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(p(y),C!==void 0)g=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(g=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}v(y,g)}return g}const f=P(()=>e.expandTrigger==="click"?()=>{var g;const{value:m}=s;m&&((g=l.value)===null||g===void 0||g.setShow(!1)),s.value=!m}:void 0);lc(()=>{var g;e.tooltip&&((g=l.value)===null||g===void 0||g.setShow(!1))});const h=()=>u("span",Object.assign({},Gn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?VC(r.value):void 0,e.expandTrigger==="click"?WC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(g){if(!g)return;const m=c.value,y=VC(r.value);e.lineClamp!==void 0?b(g,y,"add"):b(g,y,"remove");for(const C in m)g.style[C]!==m[C]&&(g.style[C]=m[C])}function v(g,m){const y=WC(r.value,"pointer");e.expandTrigger==="click"&&!m?b(g,y,"add"):b(g,y,"remove")}function b(g,m,y){y==="add"?g.classList.contains(m)||g.classList.add(m):g.classList.contains(m)&&g.classList.remove(m)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(Rh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),sQ=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),K$=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),uo="n-data-table",cQ=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(uo),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(sQ,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(dt,{clsPrefix:n},{default:()=>u($2,null)}))}}),dQ=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),Ph={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},q$="n-radio-group";function Y$(e){const t=Sn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=F(null),i=F(null),a=Le(q$,null),l=F(e.defaultChecked),s=xe(e,"checked"),c=St(s,l),d=lt(()=>a?a.valueRef.value===e.value:c.value),f=lt(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=F(!1);function p(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function v(){r.value||d.value||p()}function b(){v()}function g(){h.value=!1}function m(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:je(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:g,handleRadioInputFocus:m}}const uQ=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[I("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),I("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),I("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),I("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),I("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),R0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),Ph),setup(e){const t=Y$(e),n=Se("Radio","-radio",uQ,C0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:p,boxShadowFocus:v,boxShadowHover:b,color:g,colorDisabled:m,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:_,labelPadding:k,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:D}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":v,"--n-box-shadow-hover":b,"--n-color":g,"--n-color-active":y,"--n-color-disabled":m,"--n-dot-color-active":w,"--n-dot-color-disabled":_,"--n-font-size":R,"--n-radio-size":D,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":k}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=je(e),l=en("Radio",a,i),s=o?et("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),kt(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),fQ=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[I("checked",{backgroundColor:"var(--n-button-border-color-active)"}),I("disabled",{opacity:"var(--n-opacity-disabled)"})]),I("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),mt("checked",{color:"var(--n-button-text-color-hover)"})]),I("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),I("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function hQ(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:_},self:{buttonBorderColor:k,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:D,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:W,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":_,"--n-button-border-color":k,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":D,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":W}}),x=c?et("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:v,handleFocusout:m,handleFocusin:g,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=hQ(Nr(fc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),pQ=Ph,vQ=J({name:"RadioButton",props:Ph,setup:Y$,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),kt(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Z$=40,Q$=40;function UC(e){if(e.type==="selection")return e.width===void 0?Z$:hn(e.width);if(e.type==="expand")return e.width===void 0?Q$:hn(e.width);if(!("children"in e))return typeof e.width=="string"?hn(e.width):e.width}function gQ(e){var t,n;if(e.type==="selection")return Mt((t=e.width)!==null&&t!==void 0?t:Z$);if(e.type==="expand")return Mt((n=e.width)!==null&&n!==void 0?n:Q$);if(!("children"in e))return Mt(e.width)}function to(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function KC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function mQ(e){return e==="ascend"?1:e==="descend"?-1:0}function bQ(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yQ(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=gQ(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Mt(r)||n,maxWidth:Mt(o)}}function xQ(e,t,n){return typeof n=="function"?n(e,t):n||""}function Ep(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Lp(e){return"children"in e?!1:!!e.sorter}function J$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function qC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function YC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wQ(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:YC(!1)}:Object.assign(Object.assign({},t),{order:YC(t.order)})}function eT(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const CQ=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(uo),o=F(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Ep(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Ep(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Ep(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(ln,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(a$,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(ii,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(X$,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(R0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Tt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Tt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function SQ(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const kQ=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(uo),c=F(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),p=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),v=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=SQ(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function g(){c.value=!1}function m(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:p,showPopover:c,mergedRenderFilter:v,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:m,handleFilterMenuCancel:g}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(el,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(dQ,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(dt,{clsPrefix:t},{default:()=>u(FK,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(CQ,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),_Q=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(uo),n=F(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(_t("mousemove",window,a),_t("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),Ct("mousemove",window,a),Ct("mouseup",window,l)}return Bt(()=>{Ct("mousemove",window,a),Ct("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),tT=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),nT=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},RQ={name:"Icon",common:nt,self:nT},PQ=RQ,$Q={name:"Icon",common:tt,self:nT},TQ=$Q,OQ=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[I("color-transition",{transition:"color .3s var(--n-bezier)"}),I("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),rT=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),oT=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:rT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Icon","-icon",OQ,PQ,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?et("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Mt(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Qn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Gn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),P0="n-dropdown-menu",$h="n-dropdown",GC="n-dropdown-option";function sm(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function zQ(e){return e.type==="group"}function iT(e){return e.type==="divider"}function MQ(e){return e.type==="render"}const aT=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le($h),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:v,menuPropsRef:b}=t,g=Le(GC,null),m=Le(P0),y=Le(Ll),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:W}=h;return sm(e.tmNode.rawNode,W)}),w=P(()=>{const{disabled:W}=e.tmNode;return W}),_=P(()=>{if(!x.value)return!1;const{key:W,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(W):V!==null?ee.includes(W)&&ee[ee.length-1]!==W:re!==null?ee.includes(W):!1}),k=P(()=>r.value===null&&!l.value),T=pB(_,300,k),$=P(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=F(!1);ot(GC,{enteringSubmenuRef:R});function D(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:W,tmNode:K}=e;K.disabled||!s.value||(o.value=W,r.value=null,n.value=K.key)}function L(){const{tmNode:W}=e;W.disabled||!s.value||n.value!==W.key&&A()}function j(W){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=W;K&&!Zn({target:K},"dropdownOption")&&!Zn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:W}=x,{tmNode:K}=e;!s.value||!W&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:lt(()=>{const{value:W}=i,{key:K}=e.tmNode;return W.includes(K)}),childActive:lt(()=>{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q===W.length-1}),mergedDisabled:w,renderOption:p,nodeProps:v,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:D,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:p}=this;let v=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);v=u(lT,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=f==null?void 0:f(r),m=u("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),u("div",Gn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Ut(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):Ut((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(oT,null,{default:()=>u(Ya,null)}):null)]),this.hasSubmenu?u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Or,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(Ft,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>v}):v)}))})]}):null);return d?d({node:m,option:r}):m}}),DQ=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(P0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le($h);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Ut(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Ut((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),IQ=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u(Ot,null,u(DQ,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:iT(i)?u(tT,{clsPrefix:n,key:o.key}):o.isGroup?(Qn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(aT,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),FQ=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),lT=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le($h);ot(P0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>sm(s,o));const{rawNode:l}=i;return sm(l,o)})})});const r=F(null);return ot(pc,null),ot(vc,null),ot(Ll,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:MQ(i)?u(FQ,{tmNode:o,key:o.key}):iT(i)?u(tT,{clsPrefix:t,key:o.key}):zQ(i)?u(IQ,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(aT,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Bf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Y2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),AQ=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[Dn(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),mt("disabled",[I("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),I("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),I("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),I("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[I("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[I("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[I("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("scrollable",` - padding: var(--n-padding); - `),I("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),BQ={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},EQ=Object.keys(La),sT=Object.assign(Object.assign(Object.assign({},La),BQ),Se.props),$0=J({name:"Dropdown",inheritAttrs:!1,props:sT,setup(e){const t=F(!1),n=St(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return co(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=F(null),a=F(null),l=F(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=lt(()=>e.keyboard&&n.value);Ab({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:k},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=je(e),v=Se("Dropdown","-dropdown",AQ,S0,e,h);ot($h,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:g}),it(n,z=>{!e.animated&&!z&&m()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function g(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function m(){i.value=null,a.value=null,l.value=null}function y(){g(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function _(){$("down")}function k(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),g(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let W;switch(z){case"down":W=E.getNext();break;case"up":W=E.getPrev();break;case"right":W=E.getChild();break;case"left":W=E.getParent();break}W&&(j=W.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=v.value,{padding:E,dividerColor:W,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":W,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),D=p?et("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:v,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||m()},doUpdateShow:g,cssVars:p?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:H_(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(lT,Gn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(el,Object.assign({},xn(this.$props,EQ),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),cT="_n_all__",dT="_n_none__";function LQ(e,t,n,r){return e?o=>{for(const i of e)switch(o){case cT:n(!0);return;case dT:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function NQ(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:cT};case"none":return{label:t.uncheckTableAll,key:dT};default:return n}}):[]}const HQ=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(uo),l=P(()=>LQ(r.value,o,i,a)),s=P(()=>NQ(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:p}=e;return u($0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(dt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>u(D2,null)})})}}});function Np(e){return typeof e.title=="function"?e.title(e):e.title}const uT=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:p,mergedTableLayoutRef:v,headerCheckboxDisabledRef:b,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(uo),_=F({});function k(j){const E=_.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(Zn(j,"dataTableFilter")||Zn(j,"dataTableResizable")||!Lp(E))return;const W=f.value.find(Q=>Q.columnKey===E.key)||null,K=wQ(E,W);C(K)}function R(){p.value="head"}function D(){p.value="body"}const z=new Map;function A(j){z.set(j.key,k(j.key))}function L(j,E){const W=z.get(j.key);if(W===void 0)return;const K=W+E,Q=bQ(K,j.minWidth,j.maxWidth);g(K,Q,j,k),m(j,Q)}return{cellElsRef:_,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:v,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:D,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:p,headerCheckboxDisabled:v,mergedSortState:b,handleColHeaderClick:g,handleCheckboxUpdateChecked:m,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:D,rowSpan:z,isLast:A})=>{var L,j;const E=to(R),{ellipsis:W}=R,K=()=>R.type==="selection"?R.multiple!==!1?u(Ot,null,u(ii,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:v,onUpdateChecked:m}),d?u(HQ,{clsPrefix:t}):null):null:u(Ot,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},W===!0||W&&!W.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Np(R)):W&&typeof W=="object"?u(_0,Object.assign({},W,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Np(R)}):Np(R)),Lp(R)?u(cQ,{column:R}):null),qC(R)?u(kQ,{column:R,options:R.filterOptions}):null,J$(R)?u(_Q,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:yn((L=n[E])===null||L===void 0?void 0:L.start),right:yn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:D,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:eT(R,b),[`${t}-data-table-th--filterable`]:qC(R),[`${t}-data-table-th--sortable`]:Lp(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{g(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:_,handleMouseleave:k,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:_,onMouseleave:k},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Mt(T),tableLayout:p}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),jQ=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(Qs(n,a),n,t):Qs(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(_0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),XC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(dt,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ya,null)})}))}}),VQ=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(ii,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),WQ=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(R0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function UQ(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const KQ=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),qQ=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:p,leftActiveFixedColKeyRef:v,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:_,componentId:k,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:D,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:W,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:_e}=Le(uo),ve=F(null),Me=F(null),H=F(null),U=lt(()=>s.value.length===0),Y=lt(()=>e.showHeader||!U.value),ce=lt(()=>e.showHeader||U.value);let G="";const B=P(()=>new Set(r.value));function N(Ve){var Xe;return(Xe=ee.value.getNode(Ve))===null||Xe===void 0?void 0:Xe.rawNode}function te(Ve,Xe,We){const Ke=N(Ve.key);if(!Ke){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}if(We){const X=s.value.findIndex(q=>q.key===G);if(X!==-1){const q=s.value.findIndex(ae=>ae.key===Ve.key),ke=Math.min(X,q),Be=Math.max(X,q),Ee=[];s.value.slice(ke,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,Ke):Oe(Ee,Ke),G=Ve.key;return}}Xe?me(Ve.key,!1,Ke):Oe(Ve.key,Ke),G=Ve.key}function pe(Ve){const Xe=N(Ve.key);if(!Xe){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}me(Ve.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(_.value)return Pe();const{value:Ve}=ve;return Ve?Ve.containerRef:null}function fe(Ve,Xe){var We;if(W.value.has(Ve))return;const{value:Ke}=r,X=Ke.indexOf(Ve),q=Array.from(Ke);~X?(q.splice(X,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(W.value.add(Ve),(We=E.value)===null||We===void 0||We.call(E,Xe.rawNode).then(()=>{const{value:ke}=r,Be=Array.from(ke);~Be.indexOf(Ve)||Be.push(Ve),Ce(Be)}).finally(()=>{W.value.delete(Ve)})):(q.push(Ve),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:Ve}=Me;return Ve==null?void 0:Ve.listElRef}function Ae(){const{value:Ve}=Me;return Ve==null?void 0:Ve.itemsElRef}function qe(Ve){var Xe;we(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}function Ye(Ve){var Xe;const{onResize:We}=e;We&&We(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}const ft={getScrollContainer:Z,scrollTo(Ve,Xe){var We,Ke;_.value?(We=Me.value)===null||We===void 0||We.scrollTo(Ve,Xe):(Ke=ve.value)===null||Ke===void 0||Ke.scrollTo(Ve,Xe)}},ht=O([({props:Ve})=>{const Xe=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),We=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(Ve.leftActiveFixedColKey),We(Ve.rightActiveFixedColKey),Ve.leftActiveFixedChildrenColKeys.map(Ke=>Xe(Ke)),Ve.rightActiveFixedChildrenColKeys.map(Ke=>We(Ke))])}]);let vt=!1;return At(()=>{const{value:Ve}=v,{value:Xe}=b,{value:We}=g,{value:Ke}=m;if(!vt&&Ve===null&&We===null)return;const X={leftActiveFixedColKey:Ve,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:We,rightActiveFixedChildrenColKeys:Ke,componentId:k};ht.mount({id:`n-${k}`,force:!0,props:X,anchorMetaName:Ol}),vt=!0}),sc(()=>{ht.unmount({id:`n-${k}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:k,scrollbarInstRef:ve,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:U,paginatedDataAndInfo:P(()=>{const{value:Ve}=L;let Xe=!1;return{data:s.value.map(Ve?(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:X%2===1,index:X}):(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:!1,index:X})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:p,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:_,mergedTableLayout:$,childTriggerColIndex:R,indent:D,rowProps:z,maxHeight:A,loadingKeySet:W,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:qe,handleVirtualListResize:Ye,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:pe,handleUpdateExpanded:fe,renderCell:_e},ft)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,p={minWidth:Mt(t)||"100%"};t&&(p.width="100%");const v=u(ln,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},g={},{cols:m,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:_,rowClassName:k,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:D,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:W,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=m;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?UQ(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((G,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:G,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:yn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{W&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:_e}=Oe,ve={};de.forEach(({tmNode:Y},ce)=>{ve[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,U=(Y,ce,G)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:qe,rawNode:Ye}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${qe}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===_e&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},W(Ye,B)):W(Ye,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:pe,key:Z}=Y,{rawNode:fe}=pe,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof k=="string"?k:xQ(fe,B,k);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),m.map((qe,Ye)=>{var ft,ht,vt,Ve,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(Ye);if(~oe)return $e.splice(oe,1),null}const{column:We}=qe,Ke=to(qe),{rowSpan:X,colSpan:q}=We,ke=N?((ft=Y.tmNode.rawNode[Ke])===null||ft===void 0?void 0:ft.colSpan)||1:q?q(fe,B):1,Be=N?((ht=Y.tmNode.rawNode[Ke])===null||ht===void 0?void 0:ht.rowSpan)||1:X?X(fe,B):1,Ee=Ye+ke===ee,ae=ce+Be===_e,ze=Be>1;if(ze&&(g[ce]={[Ye]:[]}),ke>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,We.type==="selection"?N?null:We.multiple===!1?u(WQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(VQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):We.type==="expand"?N?null:!We.expandable||((Xe=We.expandable)===null||Xe===void 0?void 0:Xe.call(We,fe))?u(XC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(jQ,{clsPrefix:n,index:B,row:fe,column:We,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(qo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:KQ,visibleItemsProps:{clsPrefix:n,id:D,cols:m,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!0},{default:({item:Y,index:ce})=>U(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,m.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(uT,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":D,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>U(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},gt(this.dataTableSlots.empty,()=>[u(Ui,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u(Ot,null,v,b()):u(jr,{onResize:this.onResize},{default:b})}return v}}),YQ=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(uo),s=F(null),c=F(null),d=F(null),f=F(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Mt(o.value),minHeight:Mt(i.value)}));function p(m){r.value=m.contentRect.width,l(),f.value||(f.value=!0)}function v(){const{value:m}=s;return m?m.$el:null}function b(){const{value:m}=c;return m?m.getScrollContainer():null}const g={getBodyElement:b,getHeaderElement:v,scrollTo(m,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(m,y)}};return At(()=>{const{value:m}=d;if(!m)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{m.classList.remove(y)},0):m.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:p},g)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(uT,{ref:"headerInstRef"}),u(qQ,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function GQ(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=F(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:_}=e,k=_===void 0?i.value:_;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:k.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(k,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((_,k)=>{const{key:T,disabled:$}=k;return _+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),p=P(()=>{const{length:w}=n.value,{value:_}=d;return f.value>0&&f.value_.has(k.key))}),v=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function g(w,_,k){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,D=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;D.push(j)}),T&&he(T,w,D,{row:_,action:k}),$&&he($,w,D,{row:_,action:k}),R&&he(R,w,D,{row:_,action:k}),i.value=w}function m(w,_=!1,k){if(!e.loading){if(_){g(Array.isArray(w)?w.slice(0,1):[w],k,"check");return}g(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"check")}}function y(w,_){e.loading||g(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"uncheck")}function C(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.check(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.uncheck(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:p,allRowsCheckedRef:v,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:g,doCheckAll:C,doUncheckAll:x,doCheck:m,doUncheck:y}}function vd(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function XQ(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?ZQ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function ZQ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function QQ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(p=>{var v;p.sorter!==void 0&&h(r,{columnKey:p.key,sorter:p.sorter,order:(v=p.defaultSortOrder)!==null&&v!==void 0?v:!1})});const o=F(r),i=P(()=>{const p=t.value.filter(g=>g.type!=="selection"&&g.sorter!==void 0&&(g.sortOrder==="ascend"||g.sortOrder==="descend"||g.sortOrder===!1)),v=p.filter(g=>g.sortOrder!==!1);if(v.length)return v.map(g=>({columnKey:g.key,order:g.sortOrder,sorter:g.sorter}));if(p.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const p=i.value.slice().sort((v,b)=>{const g=vd(v.sorter)||0;return(vd(b.sorter)||0)-g});return p.length?n.value.slice().sort((b,g)=>{let m=0;return p.some(y=>{const{columnKey:C,sorter:x,order:w}=y,_=XQ(x,C);return _&&w&&(m=_(b.rawNode,g.rawNode),m!==0)?(m=m*mQ(w),!0):!1}),m}):n.value});function l(p){let v=i.value.slice();return p&&vd(p.sorter)!==!1?(v=v.filter(b=>vd(b.sorter)!==!1),h(v,p),v):p||null}function s(p){const v=l(p);c(v)}function c(p){const{"onUpdate:sorter":v,onUpdateSorter:b,onSorterChange:g}=e;v&&he(v,p),b&&he(b,p),g&&he(g,p),o.value=p}function d(p,v="ascend"){if(!p)f();else{const b=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===p);if(!(b!=null&&b.sorter))return;const g=b.sorter;s({columnKey:p,sorter:g,order:v})}}function f(){c(null)}function h(p,v){const b=p.findIndex(g=>(v==null?void 0:v.columnKey)&&g.columnKey===v.columnKey);b!==void 0&&b>=0?p[b]=v:p.push(v)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function JQ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return co(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=lt(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(KC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let _e=V[me];if(_e==null||(Array.isArray(_e)||(_e=[_e]),!_e.length))continue;const ve=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof ve=="function")if(Oe.filterMode==="and"){if(_e.some(Me=>!ve(Me,we)))return!1}else{if(_e.some(Me=>ve(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:v}=QQ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),g=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),m=St(b,a),y=St(g,l),C=lt(()=>{const V=m.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),_=P(()=>w.value.map(V=>V.rawNode));function k(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),D(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":k,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function D(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){D(V)}function E(){W()}function W(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=KC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:_,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:F(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:D,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:W,clearSorter:v,page:j,sort:p}}function eJ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=F(null),l=F([]),s=F(null),c=F([]),d=P(()=>Mt(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),p=P(()=>{const $={};let R=0;function D(z){z.forEach(A=>{const L={start:R,end:0};$[to(A)]=L,"children"in A?(D(A.children),L.end=R):(R+=UC(A)||0,L.end=R)})}return D(f.value),$}),v=P(()=>{const $={};let R=0;function D(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[to(L)]=j,"children"in L?(D(L.children),j.end=R):(R+=UC(L)||0,j.end=R)}}return D(h.value),$});function b(){var $,R;const{value:D}=f;let z=0;const{value:A}=p;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function g(){l.value=[];let $=e.columns.find(R=>to(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const D=$.children[R-1];l.value.push(to(D)),$=D}}function m(){var $,R;const{value:D}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=v;for(let W=D.length-1;W>=0;--W){const K=to(D[W]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)to(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(to(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&Ma(k)}function _($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&Ma(k)}function k(){const{header:$,body:R}=C();if(!R)return;const{value:D}=r;if(D===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),g(),m(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,k())}return it(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:v,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:k,handleTableBodyScroll:_,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function tJ(){const e=F({});function t(o){return e.value[o]}function n(o,i){J$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function nJ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,p){p>a&&(n[p]=[],a=p);for(const v of h)if("children"in v)c(v.children,p+1);else{const b="key"in v?v.key:void 0;r.push({key:to(v),style:yQ(v,b!==void 0?Mt(t(b)):void 0),column:v}),l+=1,s||(s=!!v.ellipsis),o.push(v)}}c(e,0);let d=0;function f(h,p){let v=0;h.forEach((b,g)=>{var m;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,p+1),b.children.forEach(x=>{var w,_;C.colSpan+=(_=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&_!==void 0?_:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[p].push(C)}else{if(d1&&(v=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-p+1,isLast:C};i.set(b,x),n[p].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function rJ(e,t){const n=P(()=>nJ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function oJ(e,t){const n=lt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=lt(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=F(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=St(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const ZC=aJ(),iJ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),I("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[Dn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[I("expanded",[S("icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),I("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),mt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[I("filterable",` - padding-right: 36px; - `,[I("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),ZC,I("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),I("hover",` - background-color: var(--n-merged-th-color-hover); - `),I("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),I("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),I("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),I("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),I("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),I("show",` - background-color: var(--n-th-button-color-hover); - `),I("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[I("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),I("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),I("summary",` - background-color: var(--n-merged-th-color); - `),I("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),I("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),ZC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[I("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),I("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),I("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),mt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),I("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[I("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),I("bottom-bordered",[S("data-table-td",[I("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),Mo(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),ei(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function aJ(){return[I("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),I("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const lJ=J({name:"DataTable",alias:["AdvancedTable"],props:K$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{bottomBordered:We}=e;return n.value?!1:We!==void 0?We:!0}),a=Se("DataTable","-data-table",iJ,oQ,e,r),l=F(null),s=F("body");lc(()=>{s.value="body"});const c=F(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=tJ(),{rowsRef:p,colsRef:v,dataRelatedColsRef:b,hasEllipsisRef:g}=rJ(e,d),{treeMateRef:m,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:_,mergedPaginationRef:k,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:D,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:W,clearFilters:K,clearSorter:Q,page:V,sort:re}=JQ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:_e,mergedInderminateRowKeySetRef:ve}=GQ(e,{selectionColumnRef:w,treeMateRef:m,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:U,expandableRef:Y,doUpdateExpandedRowKeys:ce}=oJ(e,m),{handleTableBodyScroll:G,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe}=eJ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:Ye}=Cn("DataTable"),ft=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||g.value?"fixed":e.tableLayout);ot(uo,{props:e,treeMateRef:m,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:F(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Tr(),hoverKeyRef:_,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:p,colsRef:v,paginatedDataRef:C,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:_e,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:ve,localeRef:Ye,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:U,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:We}=w;return We==null?void 0:We.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:We,actionPadding:Ke,actionButtonMargin:X}}=a.value;return{"--n-action-padding":Ke,"--n-action-button-margin":X,"--n-action-divider-color":We}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ft,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:D,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:G,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const ht={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:W,scrollTo:(We,Ke)=>{var X;(X=c.value)===null||X===void 0||X.scrollTo(We,Ke)}},vt=P(()=>{const{size:We}=e,{common:{cubicBezierEaseInOut:Ke},self:{borderColor:X,tdColorHover:q,thColor:ke,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Ie,lineHeight:Ne,tdColorModal:Qe,thColorModal:Ue,borderColorModal:le,thColorHoverModal:De,tdColorHoverModal:Ze,borderColorPopover:bt,thColorPopover:be,tdColorPopover:Fe,tdColorHoverPopover:Je,thColorHoverPopover:at,paginationMargin:ct,emptyPadding:Gt,boxShadowAfter:Kt,boxShadowBefore:Re,sorterSize:Ge,resizableContainerSize:st,resizableSize:Pt,loadingColor:qt,loadingSize:Et,opacityLoading:Qr,tdColorStriped:Nt,tdColorStripedModal:fn,tdColorStripedPopover:Ao,[ye("fontSize",We)]:ai,[ye("thPadding",We)]:li,[ye("tdPadding",We)]:si}}=a.value;return{"--n-font-size":ai,"--n-th-padding":li,"--n-td-padding":si,"--n-bezier":Ke,"--n-border-radius":Ie,"--n-line-height":Ne,"--n-border-color":X,"--n-border-color-modal":le,"--n-border-color-popover":bt,"--n-th-color":ke,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":De,"--n-th-color-popover":be,"--n-th-color-hover-popover":at,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Qe,"--n-td-color-hover-modal":Ze,"--n-td-color-popover":Fe,"--n-td-color-hover-popover":Je,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":ct,"--n-empty-padding":Gt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Kt,"--n-sorter-size":Ge,"--n-resizable-container-size":st,"--n-resizable-size":Pt,"--n-loading-size":Et,"--n-loading-color":qt,"--n-opacity-loading":Qr,"--n-td-color-striped":Nt,"--n-td-color-striped-modal":fn,"--n-td-color-striped-popover":Ao}}),Ve=o?et("data-table",P(()=>e.size[0]),vt,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const We=k.value,{pageCount:Ke}=We;return Ke!==void 0?Ke>1:We.itemCount&&We.pageSize&&We.itemCount>We.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:k,mergedShowPagination:Xe,cssVars:o?void 0:vt,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender},ht)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(YQ,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(A$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},gt(r.loading,()=>[u(so,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),sJ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},fT=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},sJ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},cJ={name:"TimePicker",common:nt,peers:{Scrollbar:br,Button:xr,Input:zr},self:fT},hT=cJ,dJ={name:"TimePicker",common:tt,peers:{Scrollbar:yr,Button:wr,Input:Zr},self:fT},pT=dJ,uJ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},vT=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:p,fontWeightStrong:v}=e;return Object.assign(Object.assign({},uJ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:He(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:p,calendarTitleFontWeight:v,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c})},fJ={name:"DatePicker",common:nt,peers:{Input:zr,Button:xr,TimePicker:hT,Scrollbar:br},self:vT},hJ=fJ,pJ={name:"DatePicker",common:tt,peers:{Input:Zr,Button:wr,TimePicker:pT,Scrollbar:yr},self(e){const{popoverColor:t,hoverColor:n,primaryColor:r}=e,o=vT(e);return o.itemColorDisabled=pt(t,n),o.itemColorIncluded=He(r,{alpha:.15}),o.itemColorHover=pt(t,n),o}},vJ=pJ;function gJ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),p=h.getHours(),v=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(p):!1)||(o.value?o.value(v,p):!1)||(i.value?i.value(b,v,p):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function mJ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[0],"start",p)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[1],"end",p)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[0]),v=ef(h[0]),b=tf(h[0]),{isStartHourDisabledRef:g,isStartMinuteDisabledRef:m,isStartSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[1]),v=ef(h[1]),b=tf(h[1]),{isEndHourDisabledRef:g,isEndMinuteDisabledRef:m,isEndSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const Th="n-date-picker";function Oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cm={exports:{}},dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(dm.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(cm,cm.exports);const bJ=Oh(cm.exports);var um={exports:{}},fm={exports:{}},hm={exports:{}},Jn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Jn,Jn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(hm,hm.exports);var Kr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Kr,Kr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(hm.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(fm,fm.exports);var pm={exports:{}},vm={exports:{}},Xo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Xo,Xo.exports);const yJ=Oh(Xo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Xo.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(vm.exports),r=i(Jn.exports),o=i(Xo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Kr.exports),r=o(Jn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(mm,mm.exports);var bm={exports:{}},tc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Kr.exports),r=o(Jn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=p.getTime()?c:c-1}e.exports=t.default})(Hf,Hf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Hf.exports),r=i(tc.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(ym,ym.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(tc.exports),o=a(ym.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(bm,bm.exports);var xm={exports:{}},nc={exports:{}},tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.getDefaultOptions=xJ;tl.setDefaultOptions=wJ;var gT={};function xJ(){return gT}function wJ(e){gT=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Kr.exports),r=a(Jn.exports),o=a(Xo.exports),i=tl;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,p,v,b,g,m;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.weekStartsOn)!==null&&p!==void 0?p:c==null||(v=c.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(g=y.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),_=(w=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=new Date(0);k.setUTCFullYear(x+1,0,_),k.setUTCHours(0,0,0,0);var T=(0,o.default)(k,d),$=new Date(0);$.setUTCFullYear(x,0,_),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(jf,jf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(jf.exports),r=l(Jn.exports),o=l(nc.exports),i=l(Xo.exports),a=tl;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,p,v,b,g,m,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(p=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(b=d.locale)===null||b===void 0||(g=b.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&p!==void 0?p:C.firstWeekContainsDate)!==null&&h!==void 0?h:(m=C.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),_=new Date(0);_.setUTCFullYear(w,0,x),_.setUTCHours(0,0,0,0);var k=(0,o.default)(_,d);return k}e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(nc.exports),o=a(wm.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(xm,xm.exports);var Vf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(Cm,Cm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(mm.exports),r=c(bm.exports),o=c(Hf.exports),i=c(xm.exports),a=c(jf.exports),l=c(Vf.exports),s=c(Cm.exports);function c(g){return g&&g.__esModule?g:{default:g}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(m,y,C){var x=m.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(m,y,C){if(y==="yo"){var x=m.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(m,y)},Y:function(m,y,C,x){var w=(0,a.default)(m,x),_=w>0?w:1-w;if(y==="YY"){var k=_%100;return(0,l.default)(k,2)}return y==="Yo"?C.ordinalNumber(_,{unit:"year"}):(0,l.default)(_,y.length)},R:function(m,y){var C=(0,o.default)(m);return(0,l.default)(C,y.length)},u:function(m,y){var C=m.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(m,y,C){var x=m.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(m,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(m,y,C){var x=m.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(m,y,C,x){var w=(0,i.default)(m,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(m,y,C){var x=(0,r.default)(m);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(m,y,C){return y==="do"?C.ordinalNumber(m.getUTCDate(),{unit:"date"}):s.default.d(m,y)},D:function(m,y,C){var x=(0,n.default)(m);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(m,y,C){var x=m.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(_);case"ee":return(0,l.default)(_,2);case"eo":return C.ordinalNumber(_,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(_);case"cc":return(0,l.default)(_,y.length);case"co":return C.ordinalNumber(_,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(m,y,C){var x=m.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(m,y,C){var x=m.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(m,y,C){var x=m.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(m,y,C){var x=m.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(m,y,C){if(y==="ho"){var x=m.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(m,y)},H:function(m,y,C){return y==="Ho"?C.ordinalNumber(m.getUTCHours(),{unit:"hour"}):s.default.H(m,y)},K:function(m,y,C){var x=m.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(m,y,C){var x=m.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(m,y,C){return y==="mo"?C.ordinalNumber(m.getUTCMinutes(),{unit:"minute"}):s.default.m(m,y)},s:function(m,y,C){return y==="so"?C.ordinalNumber(m.getUTCSeconds(),{unit:"second"}):s.default.s(m,y)},S:function(m,y){return s.default.S(m,y)},X:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();if(_===0)return"Z";switch(y){case"X":return p(_);case"XXXX":case"XX":return v(_);case"XXXXX":case"XXX":default:return v(_,":")}},x:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"x":return p(_);case"xxxx":case"xx":return v(_);case"xxxxx":case"xxx":default:return v(_,":")}},O:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(_,":");case"OOOO":default:return"GMT"+v(_,":")}},z:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(_,":");case"zzzz":default:return"GMT"+v(_,":")}},t:function(m,y,C,x){var w=x._originalDate||m,_=Math.floor(w.getTime()/1e3);return(0,l.default)(_,y.length)},T:function(m,y,C,x){var w=x._originalDate||m,_=w.getTime();return(0,l.default)(_,y.length)}};function h(g,m){var y=g>0?"-":"+",C=Math.abs(g),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var _=m||"";return y+String(x)+_+(0,l.default)(w,2)}function p(g,m){if(g%60===0){var y=g>0?"-":"+";return y+(0,l.default)(Math.abs(g)/60,2)}return v(g,m)}function v(g,m){var y=m||"",C=g>0?"-":"+",x=Math.abs(g),w=(0,l.default)(Math.floor(x/60),2),_=(0,l.default)(x%60,2);return C+w+y+_}var b=f;t.default=b,e.exports=t.default})(gm,gm.exports);var Sm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var p;switch(f){case"P":p=c.dateTime({width:"short"});break;case"PP":p=c.dateTime({width:"medium"});break;case"PPP":p=c.dateTime({width:"long"});break;case"PPPP":default:p=c.dateTime({width:"full"});break}return p.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(Sm,Sm.exports);var Wf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Wf,Wf.exports);const QC=Oh(Wf.exports);var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.isProtectedDayOfYearToken=kJ;Cc.isProtectedWeekYearToken=_J;Cc.throwProtectedError=RJ;var CJ=["D","DD"],SJ=["YY","YYYY"];function kJ(e){return CJ.indexOf(e)!==-1}function _J(e){return SJ.indexOf(e)!==-1}function RJ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var km={exports:{}},_m={exports:{}},Rm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(Rm,Rm.exports);var Pm={exports:{}},$m={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})($m,$m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($m.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(Pm,Pm.exports);var Tm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(Tm,Tm.exports);var Om={exports:{}},zm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(zm,zm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(zm.exports);function r(p){return p&&p.__esModule?p:{default:p}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(v,b){var g=Number(v),m=g%100;if(m>20||m<10)switch(m%10){case 1:return g+"st";case 2:return g+"nd";case 3:return g+"rd"}return g+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(v){return v-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(Om,Om.exports);var Mm={exports:{}},Dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],p=Array.isArray(h)?o(h,function(g){return g.test(f)}):r(h,function(g){return g.test(f)}),v;v=i.valueCallback?i.valueCallback(p):p,v=l.valueCallback?l.valueCallback(v):v;var b=a.slice(f.length);return{value:v,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Im,Im.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Dm.exports),r=o(Im.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},m={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:g,defaultParseWidth:"any"})},y=m;t.default=y,e.exports=t.default})(Mm,Mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(Rm.exports),r=l(Pm.exports),o=l(Tm.exports),i=l(Om.exports),a=l(Mm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(_m,_m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(_m.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(km,km.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=p(fm.exports),r=p(pm.exports),o=p(Kr.exports),i=p(gm.exports),a=p(Sm.exports),l=p(Wf.exports),s=Cc,c=p(Xo.exports),d=p(Jn.exports),f=tl,h=p(km.exports);function p(w){return w&&w.__esModule?w:{default:w}}var v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,m=/''/g,y=/[a-zA-Z]/;function C(w,_,k){var T,$,R,D,z,A,L,j,E,W,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(_),me=(0,f.getDefaultOptions)(),Oe=(T=($=k==null?void 0:k.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,_e=(0,c.default)((R=(D=(z=(A=k==null?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:k==null||(L=k.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&D!==void 0?D:(E=me.locale)===null||E===void 0||(W=E.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(_e>=1&&_e<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ve=(0,c.default)((K=(Q=(V=(re=k==null?void 0:k.weekStartsOn)!==null&&re!==void 0?re:k==null||(ee=k.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(ve>=0&&ve<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),U=(0,r.default)(Me,H),Y={firstWeekContainsDate:_e,weekStartsOn:ve,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(G){var B=G[0];if(B==="p"||B==="P"){var N=a.default[B];return N(G,Oe.formatLong)}return G}).join("").match(v).map(function(G){if(G==="''")return"'";var B=G[0];if(B==="'")return x(G);var N=i.default[B];if(N)return!(k!=null&&k.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),!(k!=null&&k.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),N(U,G,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return G}).join("");return ce}function x(w){var _=w.match(g);return _?_[1].replace(m,"'"):w}e.exports=t.default})(um,um.exports);const PJ=Oh(um.exports);function JC(e,t,n){var r=OJ(e,n.timeZone,n.locale);return r.formatToParts?$J(r,t):TJ(r,t)}function $J(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function TJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function OJ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function zJ(e,t){var n=FJ(t);return n.formatToParts?DJ(n,e):IJ(n,e)}var MJ={year:0,month:1,day:2,hour:3,minute:4,second:5};function DJ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function IJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Hp={};function FJ(e){if(!Hp[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Hp[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Hp[e]}function mT(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var eS=36e5,AJ=6e4,jp={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function T0(e,t,n){var r,o;if(!e||(r=jp.timezoneZ.exec(e),r))return 0;var i;if(r=jp.timezoneHH.exec(e),r)return i=parseInt(r[1],10),tS(i)?-(i*eS):NaN;if(r=jp.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return tS(i,a)?(o=Math.abs(i)*eS+a*AJ,i>0?-o:o):NaN}if(LJ(e)){t=new Date(t||Date.now());var l=n?t:BJ(t),s=Fm(l,e),c=n?s:EJ(t,s,e);return-c}return NaN}function BJ(e){return mT(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Fm(e,t){var n=zJ(e,t),r=mT(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function EJ(e,t,n){var r=e.getTime(),o=r-t,i=Fm(new Date(o),n);if(t===i)return t;o-=i-t;var a=Fm(new Date(o),n);return i===a?i:Math.max(i,a)}function tS(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var nS={};function LJ(e){if(nS[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),nS[e]=!0,!0}catch{return!1}}var NJ=60*1e3,HJ={X:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return rS(o);case"XXXX":case"XX":return gl(o);case"XXXXX":case"XXX":default:return gl(o,":")}},x:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"x":return rS(o);case"xxxx":case"xx":return gl(o);case"xxxxx":case"xxx":default:return gl(o,":")}},O:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+jJ(o,":");case"OOOO":default:return"GMT"+gl(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return JC("short",o,r);case"zzzz":default:return JC("long",o,r)}}};function Vp(e,t){var n=e?T0(e,t,!0)/NJ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Uf(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Uf(Math.floor(o/60),2),a=Uf(Math.floor(o%60),2);return r+i+n+a}function rS(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Uf(Math.abs(e)/60,2)}return gl(e,t)}function jJ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Uf(i,2)}const VJ=HJ;var WJ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const UJ=WJ;var Wp=36e5,oS=6e4,KJ=2,ir={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:UJ};function bT(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?KJ:yJ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=qJ(e),i=YJ(o.date,r),a=i.year,l=i.restDateString,s=GJ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=XJ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=T0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=QC(new Date(c+d)),f=QC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function qJ(e){var t={},n=ir.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=ir.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=ir.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function YJ(e,t){var n=ir.YYY[t],r=ir.YYYYY[t],o;if(o=ir.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=ir.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function GJ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=ir.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,aS(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=ir.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return JJ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=ir.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return aS(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=ir.Www.exec(e),n)return i=parseInt(n[1],10)-1,lS(t,i)?iS(t,i):new Date(NaN);if(n=ir.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return lS(t,i,s)?iS(t,i,s):new Date(NaN)}return null}function XJ(e){var t,n,r;if(t=ir.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Up(n)?n%24*Wp:NaN;if(t=ir.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Up(n,r)?n%24*Wp+r*oS:NaN;if(t=ir.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Up(n,r,o)?n%24*Wp+r*oS+o*1e3:NaN}return null}function iS(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var ZJ=[31,28,31,30,31,30,31,31,30,31,30,31],QJ=[31,29,31,30,31,30,31,31,30,31,30,31];function yT(e){return e%400===0||e%4===0&&e%100!==0}function aS(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=yT(e);if(r&&n>QJ[t]||!r&&n>ZJ[t])return!1}return!0}function JJ(e,t){if(t<1)return!1;var n=yT(e);return!(n&&t>366||!n&&t>365)}function lS(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Up(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var eee=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function tee(e,t,n){var r=String(t),o=n||{},i=r.match(eee);if(i){var a=bT(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+VJ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return PJ(e,r,o)}function nee(e,t,n){var r=bT(e,n),o=T0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function xT(e,t,n,r){var o=bJ(r);return o.timeZone=t,tee(nee(e,t),n,o)}const hs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Kp(e){return`00${e}`.slice(-2)}function ps(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Kp(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Kp(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Kp(r===12?12:r-12)):e}function gd(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function ree(e,t,n){const r=ps(hs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Nn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function oee(e){return bi(e)<12?"am":"pm"}const wT="n-time-picker",md=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),iee={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},aee=J({name:"TimePickerPanel",props:iee,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(wT),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:oee(Date.now());return ps(hs.hours,s,f).map(h=>{const p=Number(h),v=f==="pm"&&p!==12?p+12:p;return{label:h,value:v,disabled:l?l(v):!1}})}else return ps(hs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return ps(hs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return ps(hs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:F(null),minuteScrollRef:F(null),secondScrollRef:F(null),amPmScrollRef:F(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(ln,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Tt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Fo,{onFocus:this.onFocusDetectorFocus}))}}),lee=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[Dn(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[I("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),I("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),I("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),I("invalid",[M("item",[I("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function qp(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const CT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>qp(e,23)},minutes:{type:[Number,Array],validator:e=>qp(e,59)},seconds:{type:[Number,Array],validator:e=>qp(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Kf=J({name:"TimePicker",props:CT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),{localeRef:i,dateLocaleRef:a}=Cn("TimePicker"),l=Sn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",lee,hT,e,n),h=Ab(),p=F(null),v=F(null),b=P(()=>({locale:a.value.locale}));function g(se){return se===null?null:ur(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:m,defaultFormattedValue:y}=e,C=F(y!==void 0?g(y):m),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return g(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Ie)=>xT($e,se,oe,Ie):($e,oe,Ie)=>on($e,oe,Ie)}),_=F("");it(()=>e.timeZone,()=>{const se=x.value;_.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const k=F(!1),T=xe(e,"show"),$=St(T,k),R=F(x.value),D=F(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),W=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:gd(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!gd(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!gd(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Ie}=e;return Ie?Ie(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:bi(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Ie}=e;oe&&he(oe,se,$e),Ie&&he(Ie,se,$e)}function _e(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function ve(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Qe}=l,Ue=_e(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Ie&&he(Ie,se,Ue),Oe(Ue,se),C.value=se,Ne(),Qe()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function U(){const{onConfirm:se}=e;se&&he(se,x.value,_e(x.value))}function Y(se){var $e;se.stopPropagation(),ve(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){We({returnFocus:!0})}function G(se){se.key==="Escape"&&$.value&&Fa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Fa(se),We({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=v.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),We({returnFocus:!0}));break}}function N(){D.value=!0,Rt(()=>{D.value=!1})}function te(se){c.value||Zn(se,"clear")||$.value||Ve()}function pe(se){typeof se!="string"&&(x.value===null?ve(rt(na(SK(new Date),se))):ve(rt(na(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?ve(rt(_p(O9(new Date),se))):ve(rt(_p(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?ve(rt(Rp(s0(new Date),se))):ve(rt(Rp(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Ie=bi(oe);se==="pm"&&Ie<12?ve(rt(na(oe,Ie+12))):se==="am"&&Ie>=12&&ve(rt(na(oe,Ie-12))),ve(rt(oe))}else{const oe=bi($e);se==="pm"&&oe<12?ve(rt(na($e,oe+12))):se==="am"&&oe>=12&&ve(rt(na($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?_.value="":_.value=w.value(se,e.format,b.value)}function Pe(se){vt(se)||Me(se)}function Ae(se){var $e;if(!vt(se))if($.value){const oe=($e=v.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),We({returnFocus:!1}))}else ge(),H(se)}function qe(){c.value||$.value||Ve()}function Ye(){c.value||(ge(),We({returnFocus:!1}))}function ft(){if(!v.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Ie}=v.value;[se,$e,oe,Ie].forEach(Ne=>{var Qe;if(!Ne)return;const Ue=(Qe=Ne.contentRef)===null||Qe===void 0?void 0:Qe.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function ht(se){k.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function vt(se){var $e,oe,Ie;return!!(((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Ie=v.value)===null||Ie===void 0?void 0:Ie.$el.contains(se.relatedTarget)))}function Ve(){R.value=x.value,ht(!0),Rt(ft)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(vr(se)))&&We({returnFocus:!1})}function We({returnFocus:se}){var $e;$.value&&(ht(!1),se&&(($e=p.value)===null||$e===void 0||$e.focus()))}function Ke(se){if(se===""){ve(null);return}const $e=ur(se,e.format,new Date,b.value);if(_.value=se,Er($e)){const{value:oe}=x;if(oe!==null){const Ie=Kn(oe,{hours:bi($e),minutes:ef($e),seconds:tf($e)});ve(rt(Ie))}else ve(rt($e))}}function X(){ve(R.value),ht(!1)}function q(){const se=new Date,$e={hours:bi,minutes:ef,seconds:tf},[oe,Ie,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||gd($e[Ue](se),Ue,e[Ue])?$e[Ue](se):ree($e[Ue](se),Ue,e[Ue])),Qe=Rp(_p(na(x.value?x.value:rt(se),oe),Ie),Ne);ve(rt(Qe))}function ke(){ge(),U(),We({returnFocus:!0})}function Be(se){vt(se)||(ge(),H(se),We({returnFocus:!1}))}it(x,se=>{ge(se),N(),Rt(ft)}),it($,()=>{ee.value&&ve(R.value)}),ot(wT,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=p.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=p.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?et("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Ie,panelDividerColor:Ne,panelBoxShadow:Qe,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:De,itemWidth:Ze,itemHeight:bt,panelActionPadding:be,itemBorderRadius:Fe},common:{cubicBezierEaseInOut:Je}}=f.value;return{"--n-bezier":Je,"--n-border-radius":le,"--n-item-color-hover":Ie,"--n-item-font-size":De,"--n-item-height":bt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ze,"--n-panel-action-padding":be,"--n-panel-box-shadow":Qe,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":Fe}}),Te=o?et("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:Hn(),inputInstRef:p,panelInstRef:v,adjustedTo:Ht(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:W,secondInFormat:K,mergedAttrSize:ue,displayTimeString:_,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:D,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:G,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:ke,handleTimeInputUpdateValue:Ke,handleMenuFocusOut:Be,handleCancelClick:X,handleClickOutside:Xe,handleTimeInputActivate:qe,handleTimeInputDeactivate:Ye,handleHourClick:pe,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(En,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(BK,null)})}:null)}),u(Or,{teleportDisabled:this.adjustedTo===Ht.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),un(u(aee,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[gr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),see="HH:mm:ss",ST={active:Boolean,dateFormat:String,timeFormat:{type:String,value:see},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function kT(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(Th),l=P(()=>({locale:t.value.locale})),s=F(null),c=Ab();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function p(z=!1){const{onClose:A}=e;A&&A(z)}function v(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),p(!0),d()}function g(){v()}function m(){(e.active||e.panel)&&Rt(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),v())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&v()}let x=null,w=!1;function _(){x=e.value,w=!0}function k(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=F(!1);function D(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:p,doUpdateValue:h,doTabOut:v,handleClearClick:b,handleFocusDetectorFocus:g,disableTransitionOneTick:m,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:_,clearPendingValue:k,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:D}}const O0=Object.assign(Object.assign({},ST),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function z0(e,t){const n=kT(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:p}=Le(Th),v={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),g=F(e.value===null||Array.isArray(e.value)?"":on(e.value,b.value)),m=F(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=F(null),C=F(null),x=F(null),w=F(Date.now()),_=P(()=>{var B;return Nf(m.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),k=P(()=>{const{value:B}=e;return om(m.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return am(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return im(m.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>_.value.slice(0,7).map(B=>{const{ts:N}=B;return on(N,f.value.dayFormat,n.dateFnsOptions.value)})),D=P(()=>on(m.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>on(m.value,f.value.yearFormat,n.dateFnsOptions.value));it(m,(B,N)=>{(t==="date"||t==="datetime")&&(xh(B,N)||n.disableTransitionOneTick())}),it(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(g.value=on(B,b.value,n.dateFnsOptions.value),m.value=B):g.value=""});function A(B){return rt(t==="datetime"?s0(B):t==="month"?Fr(B):t==="year"?t0(B):t==="quarter"?Js(B):zl(B))}function L(B){const{isDateDisabled:{value:N}}=v;return N?N(B):!1}function j(B){const N=ur(B,b.value,new Date,n.dateFnsOptions.value);if(Er(N)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=Kn(e.value,{year:nn(N),month:Xt(N),date:eo(N)});n.doUpdateValue(rt(A(rt(te))),e.panel)}}else g.value=B}function E(){const B=ur(g.value,b.value,new Date,n.dateFnsOptions.value);if(Er(B)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=Kn(e.value,{year:nn(B),month:Xt(B),date:eo(B)});n.doUpdateValue(rt(A(rt(N))),!1)}}else ee()}function W(){n.doUpdateValue(null,!0),g.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(rt(A(Date.now())),!0);const B=Date.now();m.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=Cu(e.defaultTime);te&&(N=rt(Kn(N,te)))}switch(N=rt(B.type==="quarter"&&B.dateObject.quarter?kK(xC(N,B.dateObject.year),B.dateObject.quarter):Kn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=rt(B.type==="month"?c0(te,B.dateObject.month):xC(te,B.dateObject.year)),N(te),ce(te)}function re(B){m.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){g.value="";return}B===void 0&&(B=e.value),g.value=on(B,b.value,n.dateFnsOptions.value)}function ue(){v.isDateInvalid.value||v.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){m.value=rt(Vv(m.value,1))}function we(){m.value=rt(Vv(m.value,-1))}function me(){m.value=rt(Fn(m.value,1))}function Oe(){m.value=rt(Fn(m.value,-1))}function _e(){const{value:B}=y;return B==null?void 0:B.listElRef}function ve(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function U(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=Xt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Na})}if(y.value){const te=nn(B===void 0?N===null?Date.now():N:B)-Lf;y.value.scrollTo({top:te*Na})}}const G={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:_,monthArray:k,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:D,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:U,handleSingleShortcutClick:Y},v),n),G),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:W,virtualListContainer:_e,virtualListContent:ve,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:g,datePickerSlots:p,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:m,onUpdateCalendarValue:re})}const _T=J({name:"MonthPanel",props:Object.assign(Object.assign({},O0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=z0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(ln,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"yearVlRef",items:this.yearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(ln,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),Il=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=F(null),t=F(null),n=F(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(vr(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Or,{show:this.show,teleportDisabled:!0},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?un(u(_T,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[gr,e,void 0,{capture:!0}]]):null})})]}))}}),cee=J({name:"DateTimePanel",props:O0,setup(e){return z0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(En,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Kf,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(c["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},gt(c["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},gt(c["next-month"],()=>[u(Ni,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},gt(c["next-year"],()=>[u(Li,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),M0=Object.assign(Object.assign({},ST),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function D0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:p,isEndTimeInvalidRef:v,isStartValueInvalidRef:b,isEndValueInvalidRef:g,isRangeInvalidRef:m,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:_,datePickerSlots:k}=Le(Th),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:p,isEndTimeInvalid:v,isStartValueInvalid:b,isEndValueInvalid:g,isRangeInvalid:m},$=kT(e),R=F(null),D=F(null),z=F(null),A=F(null),L=F(null),j=F(null),E=F(null),W=F(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=F(Q),re=F((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:rt(Fn(Q,1)));Ae(!0);const ee=F(Date.now()),ue=F(!1),de=F(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=F(Array.isArray(K)?on(K[0],Ce.value,$.dateFnsOptions.value):""),me=F(Array.isArray(K)?on(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),_e=P(()=>{var Re;return Nf(V.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),ve=P(()=>{var Re;return Nf(re.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>_e.value.slice(0,7).map(Re=>{const{ts:Ge}=Re;return on(Ge,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>on(V.value,y.value.monthFormat,$.dateFnsOptions.value)),U=P(()=>on(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>on(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>on(re.value,y.value.yearFormat,$.dateFnsOptions.value)),G=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>am(fl(e.value,"start"),ee.value)),pe=P(()=>am(fl(e.value,"end"),ee.value)),Z=P(()=>{const Re=fl(e.value,"start");return im(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=fl(e.value,"end");return im(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=fl(e.value,"start");return om(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=fl(e.value,"end");return om(Re!=null?Re:Date.now(),Re,ee.value)});it(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ge,st]=Re;we.value=on(Ge,Ce.value,$.dateFnsOptions.value),me.value=on(st,Ce.value,$.dateFnsOptions.value),ue.value||ke(Re)}else we.value="",me.value=""});function Pe(Re,Ge){(t==="daterange"||t==="datetimerange")&&(nn(Re)!==nn(Ge)||Xt(Re)!==Xt(Ge))&&$.disableTransitionOneTick()}it(V,Pe),it(re,Pe);function Ae(Re){const Ge=Fr(V.value),st=Fr(re.value);(e.bindCalendarMonths||Ge>=st)&&(Re?re.value=rt(Fn(Ge,1)):V.value=rt(Fn(st,-1)))}function qe(){V.value=rt(Fn(V.value,12)),Ae(!0)}function Ye(){V.value=rt(Fn(V.value,-12)),Ae(!0)}function ft(){V.value=rt(Fn(V.value,1)),Ae(!0)}function ht(){V.value=rt(Fn(V.value,-1)),Ae(!0)}function vt(){re.value=rt(Fn(re.value,12)),Ae(!1)}function Ve(){re.value=rt(Fn(re.value,-12)),Ae(!1)}function Xe(){re.value=rt(Fn(re.value,1)),Ae(!1)}function We(){re.value=rt(Fn(re.value,-1)),Ae(!1)}function Ke(Re){V.value=Re,Ae(!0)}function X(Re){re.value=Re,Ae(!1)}function q(Re){const Ge=o.value;if(!Ge)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ge(Re,"start",null);{const{value:st}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){m.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ge,st){if(typeof Re!="number"&&(Re=rt(Re)),st!=="shortcutPreview"){let Pt,qt;if(t==="datetimerange"){const{defaultTime:Et}=e;Array.isArray(Et)?(Pt=Cu(Et[0]),qt=Cu(Et[1])):(Pt=Cu(Et),qt=Pt)}Pt&&(Re=rt(Kn(Re,Pt))),qt&&(Ge=rt(Kn(Ge,qt)))}$.doUpdateValue([Re,Ge],e.panel&&st==="done")}function $e(Re){return rt(t==="datetimerange"?s0(Re):t==="monthrange"?Fr(Re):zl(Re))}function oe(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge))if(e.value){if(Array.isArray(e.value)){const st=Kn(e.value[0],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}}else{const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}else we.value=Re}function Ie(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge)){if(e.value===null){const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}else if(Array.isArray(e.value)){const st=Kn(e.value[1],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}}else me.value=Re}function Ne(){const Re=ur(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[0],{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}}else Ue()}function Qe(){const Re=ur(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[1],{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}}else Ue()}function Ue(Re){const{value:Ge}=e;if(Ge===null||!Array.isArray(Ge)){we.value="",me.value="";return}Re===void 0&&(Re=Ge),we.value=on(Re[0],Ce.value,$.dateFnsOptions.value),me.value=on(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function De(Re){Re!==null&&Te(Re)}function Ze(Re){$.cachePendingValue();const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||se(Ge[0],Ge[1],"shortcutPreview")}function bt(Re){const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||(se(Ge[0],Ge[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ge){const st=Re===void 0?e.value:Re;if(Re===void 0||Ge==="start"){if(E.value){const Pt=Array.isArray(st)?Xt(st[0]):Xt(Date.now());E.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(L.value){const Pt=(Array.isArray(st)?nn(st[0]):nn(Date.now()))-Lf;L.value.scrollTo({index:Pt,debounce:!1})}}if(Re===void 0||Ge==="end"){if(W.value){const Pt=Array.isArray(st)?Xt(st[1]):Xt(Date.now());W.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(j.value){const Pt=(Array.isArray(st)?nn(st[1]):nn(Date.now()))-Lf;j.value.scrollTo({index:Pt,debounce:!1})}}}function Fe(Re,Ge){const{value:st}=e,Pt=!Array.isArray(st),qt=Re.type==="year"&&t!=="yearrange"?Pt?Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(new Date):new Date)}).valueOf():Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(st[Ge==="start"?0:1]):st[Ge==="start"?0:1])}).valueOf():Re.ts;if(Pt){const Nt=$e(qt),fn=[Nt,Nt];$.doUpdateValue(fn,e.panel),be(fn,"start"),be(fn,"end"),$.disableTransitionOneTick();return}const Et=[st[0],st[1]];let Qr=!1;switch(Ge==="start"?(Et[0]=$e(qt),Et[0]>Et[1]&&(Et[1]=Et[0],Qr=!0)):(Et[1]=$e(qt),Et[0]>Et[1]&&(Et[0]=Et[1],Qr=!0)),$.doUpdateValue(Et,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Qr?(be(Et,"start"),be(Et,"end")):be(Et,Ge);break;case"yearrange":$.disableTransitionOneTick(),be(Et,"start"),be(Et,"end")}}function Je(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function at(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function ct(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.listElRef:(st=j.value)===null||st===void 0?void 0:st.listElRef}function Gt(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.itemsElRef:(st=j.value)===null||st===void 0?void 0:st.itemsElRef}const Kt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:W,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:D,handleDateClick:Be,handleColItemClick:Fe,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:Ye,startCalendarPrevMonth:ht,startCalendarNextYear:qe,startCalendarNextMonth:ft,endCalendarPrevYear:Ve,endCalendarPrevMonth:We,endCalendarNextMonth:Xe,endCalendarNextYear:vt,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:U,endCalendarYear:ce,weekdays:Me,startDateArray:_e,endDateArray:ve,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:pe,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ze,handleRangeShortcutClick:bt},$),T),Kt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:G,endTimeValue:B,datePickerSlots:k,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:De,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Ie,handleEndDateInputBlur:Qe,handleStartYearVlScroll:Je,handleEndYearVlScroll:at,virtualListContainer:ct,virtualListContent:Gt,onUpdateStartCalendarValue:Ke,onUpdateEndCalendarValue:X})}const dee=J({name:"DateTimeRangePanel",props:M0,setup(e){return D0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(En,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(En,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),uee=J({name:"DatePanel",props:O0,setup(e){return z0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),fee=J({name:"DateRangePanel",props:M0,setup(e){return D0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),hee=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},M0),{type:{type:String,required:!0}}),setup(e){const t=D0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},db(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),pee=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[Dn(),I("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[I("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),I("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),I("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[I("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),I("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),I("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),I("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[I("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),mt("disabled",[mt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),I("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),I("covered, start, end",[mt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),I("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),I("start",[O("&::before",{left:"50%"})]),I("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),I("excluded",{color:"var(--n-item-text-color-disabled)"},[I("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),I("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[I("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),I("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),RT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),vee=J({name:"DatePicker",props:RT,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=Cn("DatePicker"),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:p}=je(e),v=F(null),b=F(null),g=F(null),m=F(!1),y=xe(e,"show"),C=St(y,m),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),_=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function k(ae){if(ae===null)return null;const{value:ze}=_,{value:ie}=x;return Array.isArray(ae)?[ur(ae[0],ze,new Date,ie).getTime(),ur(ae[1],ze,new Date,ie).getTime()]:ur(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=F((n=T!==void 0?k(T):$)!==null&&n!==void 0?n:null),D=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?k(ae):e.value}),z=St(D,R),A=F(null);At(()=>{A.value=z.value});const L=F(""),j=F(""),E=F(""),W=Se("DatePicker","-date-picker",pee,hJ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Qn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=_,{value:ie}=x;return[on(ae[0],ze,ie),on(ae[1],ze,x.value)]}else return on(ae,_.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Ie=de(ae);ze.doConfirm&&_e(ae,Ie),Te&&he(Te,ae,Ie),ie&&he(ie,ae,Ie),se&&he(se,ae,Ie),R.value=ae,we(Ie,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function _e(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function ve(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),m.value=ae}function U(ae){ae.key==="Escape"&&C.value&&(Fa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Fa(ae)}function ce(){var ae;H(!1),(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function G(){var ae;(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(vr(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function pe(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=on(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=on(ae[0],w.value,ze),E.value=on(ae[1],w.value,ze)}}function Pe(){C.value||Ve()}function Ae(ae){var ze;!((ze=v.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function qe(){l.value||(fe(),Xe({returnFocus:!1}))}function Ye(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=ur(ae,w.value,new Date,x.value);Er(ze)?(me(rt(ze),{doConfirm:!1}),fe()):L.value=ae}function ft(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=ur(ze,w.value,new Date,x.value),se=ur(ie,w.value,new Date,x.value);Er(Te)&&Er(se)?(me([rt(Te),rt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function ht(ae){l.value||Zn(ae,"clear")||C.value||Ve()}function vt(ae){l.value||ve(ae)}function Ve(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=g.value)===null||ie===void 0||ie.focus()))}it(A,()=>{fe()}),fe(),it(C,ae=>{ae||(A.value=z.value)});const We=gJ(e,A),Ke=mJ(e,A);ot(Th,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:W,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},We),Ke),{datePickerSlots:t}));const X={focus:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=W.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),ke=p?et("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Ie,itemColorHover:Ne,itemColorActive:Qe,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:De,panelColor:Ze,panelTextColor:bt,arrowColor:be,calendarTitleTextColor:Fe,panelActionDividerColor:Je,panelHeaderDividerColor:at,calendarDaysDividerColor:ct,panelBoxShadow:Gt,panelBorderRadius:Kt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ge,panelActionPadding:st,itemSize:Pt,itemCellWidth:qt,itemCellHeight:Et,scrollItemWidth:Qr,scrollItemHeight:Nt,calendarTitlePadding:fn,calendarTitleHeight:Ao,calendarDaysHeight:ai,calendarDaysTextColor:li,arrowSize:si,panelHeaderPadding:qi,calendarDividerColor:Ah,calendarTitleGridTempateColumns:Bh,iconColor:Eh,iconColorDisabled:Lh,scrollItemBorderRadius:Nh,calendarTitleColorHover:Hh,[ye("calendarLeftPadding",ae)]:jh,[ye("calendarRightPadding",ae)]:Vh}}=W.value;return{"--n-bezier":ze,"--n-panel-border-radius":Kt,"--n-panel-color":Ze,"--n-panel-box-shadow":Gt,"--n-panel-text-color":bt,"--n-panel-header-padding":qi,"--n-panel-header-divider-color":at,"--n-calendar-left-padding":jh,"--n-calendar-right-padding":Vh,"--n-calendar-title-color-hover":Hh,"--n-calendar-title-height":Ao,"--n-calendar-title-padding":fn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":Fe,"--n-calendar-title-grid-template-columns":Bh,"--n-calendar-days-height":ai,"--n-calendar-days-divider-color":ct,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":li,"--n-calendar-divider-color":Ah,"--n-panel-action-padding":st,"--n-panel-extra-footer-padding":Ge,"--n-panel-action-divider-color":Je,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":Pt,"--n-item-cell-width":qt,"--n-item-cell-height":Et,"--n-item-text-color":$e,"--n-item-color-included":Ie,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Qe,"--n-item-text-color-disabled":le,"--n-item-text-color-active":De,"--n-scroll-item-width":Qr,"--n-scroll-item-height":Nt,"--n-scroll-item-border-radius":Nh,"--n-arrow-size":si,"--n-arrow-color":be,"--n-icon-color":Eh,"--n-icon-color-disabled":Lh}}),Ee=p?et("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},X),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:v,triggerElRef:b,inputInstRef:g,isMounted:Hn(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Ht(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:We.isValueInvalidRef,isStartValueInvalid:Ke.isStartValueInvalidRef,isEndValueInvalid:Ke.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:U,handleClear:ce,handlePanelClear:G,handleTriggerClick:ht,handleInputActivate:Pe,handleInputDeactivate:qe,handleInputFocus:vt,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ft,handleSingleUpdateValue:Ye,handlePanelUpdateValue:pe,handlePanelConfirm:Z,mergedTheme:W,actions:ue,triggerCssVars:p?void 0:q,triggerThemeClass:ke==null?void 0:ke.themeClass,triggerOnRender:ke==null?void 0:ke.onRender,cssVars:p?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(cee,Object.assign({},o),r):l==="daterange"?u(fee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(dee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(_T,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(hee,Object.assign({},o,{type:l})):u(uee,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(qr,null,{default:()=>[u(Yr,null,{default:()=>this.isRange?u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?gt(r.separator,()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(HK,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>gt(r["date-icon"],()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(wC,null)})])}):u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>gt(r["date-icon"],()=>[u(wC,null)])})})}),u(Or,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(i(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),gee={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},PT=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},gee),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,titleTextColor:r,thColor:pt(o,t),thColorModal:pt(i,t),thColorPopover:pt(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:pt(o,l),borderColorModal:pt(i,l),borderColorPopover:pt(a,l),borderRadius:s})},mee={name:"Descriptions",common:nt,self:PT},bee=mee,yee={name:"Descriptions",common:tt,self:PT},xee=yee,$T="DESCRIPTION_ITEM_FLAG";function wee(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[$T]:!1}const Cee=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),mt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),I("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),I("left-label-align",[O("th",{textAlign:"left"})]),I("center-label-align",[O("th",{textAlign:"center"})]),I("right-label-align",[O("th",{textAlign:"right"})]),I("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),Mo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),TT=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),See=J({name:"Descriptions",props:TT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Descriptions","-descriptions",Cee,bee,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:p,thFontWeight:v,tdTextColor:b,tdColor:g,tdColorModal:m,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:_,lineHeight:k,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":v,"--n-line-height":k,"--n-th-text-color":p,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":g,"--n-td-color-modal":m,"--n-td-color-popover":y,"--n-border-radius":_,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?et("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ii(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Nr(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(g=>wee(g)),p={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((g,m,y)=>{const C=m.props||{},x=h.length-1===y,w=["label"in C?C.label:jx(m,"label")],_=[jx(m)],k=C.span||1,T=g.span;g.span+=k;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:k*2-1,style:R},_)):g.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:k*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},_)));else{const D=x?(n-T)*2:k*2;g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:D,style:$},w)),g.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:D,style:R},_))}return(g.span>=n||x)&&(g.span=0,g.row.length&&(g.rows.push(g.row),g.row=[]),r!=="left"&&g.secondRow.length&&(g.rows.push(g.secondRow),g.secondRow=[])),g},p).rows.map(g=>u("tr",{class:`${c}-descriptions-table-row`},g));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||fc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),OT={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},kee=J({name:"DescriptionsItem",[$T]:!0,props:OT,render(){return null}}),_ee={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},zT=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:p,dividerColor:v,borderRadius:b,fontWeightStrong:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},_ee),{fontSize:y,lineHeight:m,border:`1px solid ${v}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:g})},Ree={name:"Dialog",common:nt,peers:{Button:xr},self:zT},MT=Ree,Pee={name:"Dialog",common:tt,peers:{Button:wr},self:zT},DT=Pee,Sc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},IT=Wn(Sc),$ee=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),I("bordered",{border:"var(--n-border)"}),I("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),I("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),I("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[I("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),Mo(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[G_(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),Tee={default:()=>u(Hi,null),info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null)},I0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),Sc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=P(()=>{var f,h;const{iconPlacement:p}=e;return p||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",$ee,MT,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:v,lineHeight:b,border:g,titleTextColor:m,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:_,closeIconColor:k,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:D,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:W,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":v,"--n-icon-color":re,"--n-bezier":p,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":_,"--n-close-icon-color":k,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":D,"--n-padding":L,"--n-line-height":b,"--n-border":g,"--n-content-margin":W,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":m,"--n-action-space":E}}),d=r?et("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:p,handleNegativeClick:v,mergedTheme:b,loading:g,type:m,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(dt,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>kt(this.$slots.icon,w=>w||(this.icon?Ut(this.icon):Tee[this.type]()))}):null,x=kt(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[Ut(s)]:[this.negativeText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:v},h),{default:()=>Ut(this.negativeText)}),this.positiveText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:g,loading:g,onClick:p},f),{default:()=>Ut(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(ri,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,gt(this.$slots.header,()=>[Ut(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},gt(this.$slots.default,()=>[Ut(l)])),x)}}),FT="n-dialog-provider",AT="n-dialog-api",BT="n-dialog-reactive-list",ET=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},Oee={name:"Modal",common:nt,peers:{Scrollbar:br,Dialog:MT,Card:YP},self:ET},zee=Oee,Mee={name:"Modal",common:tt,peers:{Scrollbar:yr,Dialog:DT,Card:GP},self:ET},Dee=Mee,F0=Object.assign(Object.assign({},b0),Sc),Iee=Wn(F0),Fee=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},F0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=F(null),n=F(null),r=F(e.show),o=F(null),i=F(null);it(xe(e,"show"),g=>{g&&(r.value=!0)}),bR(P(()=>e.blockScroll&&r.value));const a=Le(rR);function l(){if(a.transformOriginRef.value==="center")return"";const{value:g}=o,{value:m}=i;if(g===null||m===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${g}px ${m+y}px`}return""}function s(g){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=g;if(m){const w=m.y,_=m.x;o.value=-(C-_),i.value=-(x-w-y)}g.style.transformOrigin=l()}function c(g){Rt(()=>{s(g)})}function d(g){g.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:g}=e;g&&g()}function p(){e.onNegativeClick()}function v(){e.onPositiveClick()}const b=F(null);return it(b,g=>{g&&Rt(()=>{const m=g.el;m&&t.value!==m&&(t.value=m)})}),ot(pc,t),ot(vc,null),ot(Ll,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:v,handleNegativeClick:p,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=ju(e),!l){Qn("modal","default slot is empty");return}l=ar(l),l.props=Gn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(ln,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Hb,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(Ft,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[$r,this.show]],{onClickoutside:f}=this;return f&&d.push([gr,this.onClickoutside,void 0,{capture:!0}]),un(this.preset==="confirm"||this.preset==="dialog"?u(I0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},xn(this.$props,IT),{"aria-modal":"true"}),e):this.preset==="card"?u(ZP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},xn(this.$props,PX),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Aee=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Yo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[Dn({duration:".25s",enterScale:".5"})])]),LT=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),F0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NT=J({name:"Modal",inheritAttrs:!1,props:LT,setup(e){const t=F(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Modal","-modal",Aee,zee,e,n),a=tR(64),l=eR(),s=Hn(),c=e.internalDialog?Le(FT,null):null,d=yR();function f(w){const{onUpdateShow:_,"onUpdate:show":k,onHide:T}=e;_&&he(_,w),k&&he(k,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:_}=e;w&&he(w),_&&_()}function g(){const{onAfterLeave:w,onAfterHide:_}=e;w&&he(w),_&&_()}function m(w){var _;const{onMaskClick:k}=e;k&&k(w),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(vr(w))&&f(!1)}function y(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!d.value&&f(!1)}ot(rR,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:_}=c;if(w.value&&_.value)return _.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:_,color:k,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":_,"--n-color":k,"--n-text-color":T}}),x=o?et("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>xn(e,Iee)),handleEsc:y,handleAfterLeave:g,handleClickoutside:m,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:v,handlePositiveClick:p,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return un(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(Fee,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(Ft,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Bee=Object.assign(Object.assign({},Sc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Eee=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},Bee),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=F(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(NT,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(I0,Object.assign({},xn(this.$props,IT),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),HT={injectionKey:String,to:[String,Object]},jT=J({name:"DialogProvider",props:HT,setup(){const e=F([]),t={};function n(l={}){const s=Tr(),c=ji(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return ot(AT,a),ot(FT,{clickedRef:tR(64),clickPositionRef:eR()}),ot(BT,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u(Ot,null,[this.dialogList.map(n=>u(Eee,Va(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function VT(){const e=Le(AT,null);return e===null&&Nn("use-dialog","No outer founded."),e}function Lee(){const e=Le(BT,null);return e===null&&Nn("use-dialog-reactive-list","No outer founded."),e}const WT=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},Nee={name:"Divider",common:nt,self:WT},Hee=Nee,jee={name:"Divider",common:tt,self:WT},Vee=jee,Wee=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[mt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[mt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),I("title-position-left",[M("line",[I("left",{width:"28px"})])]),I("title-position-right",[M("line",[I("right",{width:"28px"})])]),I("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),I("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),mt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),I("dashed",[M("line",{borderColor:"var(--n-color)"})]),I("vertical",{backgroundColor:"var(--n-color)"})]),UT=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Uee=J({name:"Divider",props:UT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Divider","-divider",Wee,Hee,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?et("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u(Ot,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),KT=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:p,primaryColorHover:v}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:v}},Kee={name:"Drawer",common:nt,peers:{Scrollbar:br},self:KT},qee=Kee,Yee={name:"Drawer",common:tt,peers:{Scrollbar:yr},self:KT},Gee=Yee,Xee=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=F(!!e.show),n=F(null),r=Le(Eb);let o=0,i="",a=null;const l=F(!1),s=F(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=je(e),h=en("Drawer",f,d),p=k=>{s.value=!0,o=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:g,doUpdateWidth:m}=r,y=k=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const D=o-k.clientY;R+=e.placement==="bottom"?D:-D,g(R),o=k.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const D=o-k.clientX;R+=e.placement==="right"?D:-D,m(R),o=k.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;At(()=>{e.show&&(t.value=!0)}),it(()=>e.show,k=>{k||C()}),Bt(()=>{C()});const w=P(()=>{const{show:k}=e,T=[[$r,k]];return e.showMask||T.push([gr,e.onClickoutside,void 0,{capture:!0}]),T});function _(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return bR(P(()=>e.blockScroll&&t.value)),ot(vc,n),ot(Ll,null),ot(pc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:_,bodyDirectives:w,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:v,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none"},u(Hb,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(Ft,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>un(u("div",Gn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(ln,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Zee,cubicBezierEaseOut:Qee}=mr;function Jee({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zee}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qee}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ete,cubicBezierEaseOut:tte}=mr;function nte({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ete}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:rte,cubicBezierEaseOut:ote}=mr;function ite({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rte}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ote}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:ate,cubicBezierEaseOut:lte}=mr;function ste({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ate}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${lte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const cte=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[Jee(),nte(),ite(),ste(),I("unselectable",` - user-select: none; - -webkit-user-select: none; - `),I("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[I("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[I("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),I("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),I("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),I("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),I("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Yo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),qT=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),dte=J({name:"Drawer",inheritAttrs:!1,props:qT,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Hn(),i=Se("Drawer","-drawer",cte,qee,e,t),a=F(e.defaultWidth),l=F(e.defaultHeight),s=St(xe(e,"width"),a),c=St(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Mt(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Mt(c.value)}),h=w=>{const{onUpdateWidth:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),a.value=w},p=w=>{const{onUpdateHeight:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),l.value=w},v=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:_,maskClosable:k}=e;k&&y(!1),_&&_(w)}const g=yR();function m(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!g.value&&y(!1)}function y(w){const{onHide:_,onUpdateShow:k,"onUpdate:show":T}=e;k&&he(k,w),T&&he(T,w),_&&!w&&he(_,w)}ot(Eb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:p,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:_,cubicBezierEaseOut:k},self:{color:T,textColor:$,boxShadow:R,lineHeight:D,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:W,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":D,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":k,"--n-bezier-in":_,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":W,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?et("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:v,handleMaskClick:b,handleEsc:m,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(Ft,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(Xee,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),YT={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},ute=J({name:"DrawerContent",props:YT,setup(){const e=Le(Eb,null);e||Nn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(ri,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(ln,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),GT={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fte={name:"DynamicInput",common:tt,peers:{Input:Zr,Button:wr},self(){return GT}},hte=fte,pte=()=>GT,vte={name:"DynamicInput",common:nt,peers:{Input:zr,Button:xr},self:pte},gte=vte,A0="n-dynamic-input",mte=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(A0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),bte=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(A0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),yte=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[I("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),bd=new WeakMap,XT=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),xte=J({name:"DynamicInput",props:XT,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=je(),a=Le(Wu,null),l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=Se("DynamicInput","-dynamic-input",yte,gte,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),p=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function v($){const{onInput:R,"onUpdate:value":D,onUpdateValue:z}=e;R&&he(R,$),D&&he(D,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const D=wa($)?Dt($):$;let z=bd.get(D);return z===void 0&&bd.set(D,z=Tr()),z}function g($,R){const{value:D}=c,z=Array.from(D!=null?D:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=wa(A)?Dt(A):A,j=wa(R)?Dt(R):R,E=bd.get(L);E!==void 0&&bd.set(j,E)}v(z)}function m(){y(0)}function y($){const{value:R}=c,{onCreate:D}=e,z=Array.from(R!=null?R:[]);if(D)z.splice($+1,0,D($+1)),v(z);else if(t.default)z.splice($+1,0,null),v(z);else switch(e.preset){case"input":z.splice($+1,0,""),v(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),v(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:D}=e;if(R.length<=D)return;const z=Array.from(R);z.splice($,1),v(z);const{onRemove:A}=e;A&&A($)}function x($,R,D){if(R<0||D<0||R>=$.length||D>=$.length||R===D)return;const z=$[R];$[R]=$[D],$[D]=z}function w($,R){const{value:D}=c;if(!Array.isArray(D))return;const z=Array.from(D);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),v(z)}ot(A0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const _=en("DynamicInput",o,r),k=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?et("dynamic-input",void 0,k,e):void 0;return{locale:Cn("DynamicInput").localeRef,rtlEnabled:_,buttonSize:p,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:m,ensureKey:b,handleValueChange:g,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:p,createItem:v,move:b,onRender:g}=this;return g==null||g(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Tt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>gt(e["create-button-default"],()=>[o.create]),icon:()=>gt(e["create-button-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})])}):r.map((m,y)=>u("div",{key:a?m[a]:f(m,y),"data-key":a?m[a]:f(m,y),class:`${n}-dynamic-input-item`,style:l},Da(e.default,{value:r[y],index:y},()=>[s==="input"?u(mte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(bte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(g0,{size:t},{default:()=>[u(Tt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>p(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(z2,null)})}),u(Tt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>v(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}),c?u(Tt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(TK,null)})}):null,c?u(Tt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u($2,null)})}):null]})))))}}),ZT={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},wte={name:"Space",self(){return ZT}},QT=wte,Cte=()=>ZT,Ste={name:"Space",self:Cte},JT=Ste;let Yp;const kte=()=>{if(!lr)return!0;if(Yp===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Yp=t}return Yp},eO=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),tO=J({name:"Space",props:eO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("Space","-space",void 0,JT,e,t),o=en("Space",n,t);return{useGap:kte(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=TA(a);return{horizontal:hn(s),vertical:hn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Nr(fc(this));if(!h.length)return null;const p=`${i.horizontal}px`,v=`${i.horizontal/2}px`,b=`${i.vertical}px`,g=`${i.vertical/2}px`,m=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${g}`,marginBottom:c||e?"":`-${g}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==m?b:""}:s?{marginLeft:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginRight:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}:{marginRight:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginLeft:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}]},C)))}}),_te={name:"DynamicTags",common:tt,peers:{Input:Zr,Button:wr,Tag:Z2,Space:QT},self(){return{inputWidth:"64px"}}},Rte=_te,Pte={name:"DynamicTags",common:nt,peers:{Input:zr,Button:xr,Tag:Q2,Space:JT},self(){return{inputWidth:"64px"}}},$te=Pte,Tte=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),nO=Object.assign(Object.assign(Object.assign({},Se.props),J2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ote=J({name:"DynamicTags",props:nO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),{localeRef:r}=Cn("DynamicTags"),o=Sn(e),{mergedDisabledRef:i}=o,a=F(""),l=F(!1),s=F(!0),c=F(null),d=Se("DynamicTags","-dynamic-tags",Tte,$te,e,t),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=P(()=>r.value.add),b=P(()=>$v(e.size)),g=P(()=>i.value||!!e.max&&p.value.length>=e.max);function m($){const{onChange:R,"onUpdate:value":D,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),D&&he(D,$),f.value=$,A(),L()}function y($){const R=p.value.slice(0);R.splice($,1),m(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const D=p.value.slice(0);D.push(e.onCreate(R)),m(D)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function _(){l.value=!0,Rt(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const k=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?et("dynamic-tags",void 0,k,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:v,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:p,mergedDisabled:i,triggerDisabled:g,handleInputKeyUp:C,handleAddClick:_,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(tO,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:p,inputValue:v,inputStyle:b,inputSize:g,inputForceFocused:m,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:_,handleInputConfirm:k,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(zs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>_(R)},{default:()=>typeof $=="string"?$:$.label})).concat(p?T.input?T.input({submit:k,deactivate:x}):u(En,Object.assign({placeholder:"",size:g,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:v,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:m})):T.trigger?T.trigger({activate:w,disabled:y}):u(Tt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:g,onClick:w},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}))}})}}),zte={name:"Element",common:tt},Mte=zte,Dte={name:"Element",common:nt},Ite=Dte,rO=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),sS=J({name:"Element",alias:["El"],props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Element","-element",void 0,Ite,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${s2(s)}`]=a[s],l),{})}),i=n?et("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),Fte={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},oO=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},Fte),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},Ate={name:"Form",common:nt,self:oO},iO=Ate,Bte={name:"Form",common:tt,self:oO},Ete=Bte,Lte=S("form",[I("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),kc="n-form",aO="n-form-item-insts";var Nte=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const lO=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),Hte=J({name:"Form",props:lO,setup(e){const{mergedClsPrefixRef:t}=je(e);Se("Form","-form",Lte,iO,e,t);const n={},r=F(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return Nte(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const p of Wn(n)){const v=n[p];for(const b of v)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(p=>{if(p.some(v=>!v.valid)){const v=p.filter(b=>b.errors).map(b=>b.errors);s&&s(v),f(v)}else s&&s(),d()})})})}function a(){for(const s of Wn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return ot(kc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),ot(aO,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ku(e,t,n){return Vte()?ku=Reflect.construct.bind():ku=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&rc(c,a.prototype),c},ku.apply(null,arguments)}function Wte(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Bm(e){var t=typeof Map=="function"?new Map:void 0;return Bm=function(r){if(r===null||!Wte(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ku(r,arguments,Am(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),rc(o,r)},Bm(e)}var Ute=/%[sdj%]/g,Kte=function(){};typeof process<"u"&&process.env;function Em(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function qte(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qte(t)&&typeof e=="string"&&!e)}function Yte(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function cS(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vs={integer:function(t){return vs.number(t)&&parseInt(t,10)===t},float:function(t){return vs.number(t)&&!vs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!vs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(hS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ene())},hex:function(t){return typeof t=="string"&&!!t.match(hS.hex)}},tne=function(t,n,r,o,i){if(t.required&&n===void 0){sO(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?vs[l](n)||o.push(kr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(kr(i.messages.types[l],t.fullField,t.type))},nne=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),p&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(kr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(kr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(kr(i.messages[f].range,t.fullField,t.min,t.max))},pl="enum",rne=function(t,n,r,o,i){t[pl]=Array.isArray(t[pl])?t[pl]:[],t[pl].indexOf(n)===-1&&o.push(kr(i.messages[pl],t.fullField,t[pl].join(", ")))},one=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Lt={required:sO,whitespace:Jte,type:tne,range:nne,enum:rne,pattern:one},ine=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i,"string"),Ln(n,"string")||(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i),Lt.pattern(t,n,o,a,i),t.whitespace===!0&&Lt.whitespace(t,n,o,a,i))}r(a)},ane=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},lne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},sne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},cne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n)||Lt.type(t,n,o,a,i)}r(a)},dne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},une=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},fne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Lt.required(t,n,o,a,i,"array"),n!=null&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},hne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},pne="enum",vne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt[pne](t,n,o,a,i)}r(a)},gne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n,"string")||Lt.pattern(t,n,o,a,i)}r(a)},mne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"date")&&!t.required)return r();if(Lt.required(t,n,o,a,i),!Ln(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Lt.type(t,s,o,a,i),s&&Lt.range(t,s.getTime(),o,a,i)}}r(a)},bne=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Lt.required(t,n,o,a,i,l),r(a)},Gp=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,a)&&!t.required)return r();Lt.required(t,n,o,l,i,a),Ln(n,a)||Lt.type(t,n,o,l,i)}r(l)},yne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i)}r(a)},Ms={string:ine,method:ane,number:lne,boolean:sne,regexp:cne,integer:dne,float:une,array:fne,object:hne,enum:vne,pattern:gne,date:mne,url:Gp,hex:Gp,email:Gp,required:bne,any:yne};function Lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Nm=Lm(),_c=function(){function e(n){this.rules=null,this._messages=Nm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=fS(Lm(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var g=[],m={};function y(x){if(Array.isArray(x)){var w;g=(w=g).concat.apply(w,x)}else g.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function wne(e){const t=Le(kc,null),n=P(()=>{const{labelPlacement:p}=e;return p!==void 0?p:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:p}=e;if(p!==void 0&&p!=="auto")return Mt(p);if(r.value){const v=t==null?void 0:t.maxChildLabelWidthRef.value;return v!==void 0?Mt(v):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Mt(t.props.labelWidth)}),i=P(()=>{const{labelAlign:p}=e;if(p)return p;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var p;return[(p=e.labelProps)===null||p===void 0?void 0:p.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:p}=e;return p!==void 0?p:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:p}=e;return p!==void 0?p:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=F(!1),d=P(()=>{const{validationStatus:p}=e;if(p!==void 0)return p;if(c.value)return"error"}),f=P(()=>{const{showFeedback:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function Cne(e){const t=Le(kc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=Qs(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:pS}=mr;function Sne({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=pS,leaveCubicBezier:i=pS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const kne=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),I("auto-label-width",[S("form-item-label","white-space: nowrap;")]),I("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[I("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),I("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),I("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),I("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),I("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[I("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[I("warning",{color:"var(--n-feedback-text-color-warning)"}),I("error",{color:"var(--n-feedback-text-color-error)"}),Sne({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var vS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const Rc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),cO=Wn(Rc);function gS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Qn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Qn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const B0=J({name:"FormItem",props:Rc,setup(e){uB(aO,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Le(kc,null),o=xne(e),i=wne(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=Cne(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,p=F([]),v=F(Tr()),b=r?xe(r.props,"disabled"):F(!1),g=Se("Form","-form-item",kne,iO,e,t);it(xe(e,"path"),()=>{e.ignorePathChange||m()});function m(){p.value=[],a.value=!1,e.feedback&&(v.value=Tr())}function y(){k("blur")}function C(){k("change")}function x(){k("focus")}function w(){k("input")}function _(A,L){return vS(this,void 0,void 0,function*(){let j,E,W,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,W=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{k(j,W,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const k=(A=null,L=()=>!0,j={suppressWarning:!0})=>vS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:W}=s,K=r?Qs(r.props.model,E||""):void 0,Q={},V={},re=(A?W.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):W).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=gS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=gS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new _c({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(p.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(m(),Ce({valid:!0}))})})});ot(Wu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:m,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:_,restoreValidation:m,internalValidate:k},$=F(null);It(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:_e,[ye("labelPadding",E)]:ve,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=g.value;let U=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(U=U==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":U,"--n-label-height":we,"--n-label-padding":ve,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":_e,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),D=n?et("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:v,renderExplains:p,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(Ft,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return kt(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:v})=>u("div",{key:p,class:`${t}-form-item-feedback__line`},v())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),mS=1,dO="n-grid",uO=1,oc={span:{type:[Number,String],default:uO},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},_ne=Wn(oc),Hm=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:oc,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(dO),i=Jo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>yn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=uO,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=yn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),jm=Object.assign(Object.assign({},oc),Rc),bS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:jm,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Hm,xn(this.$.vnode.props||{},_ne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Rne=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[I(`${n}-span`,{width:r}),I(`${n}-offset`,{marginLeft:r}),I(`${n}-push`,{left:r}),I(`${n}-pull`,{right:r})]}),Pne=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),Rne])]),fO="n-row",zh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},$ne=Wn(zh),hO=J({name:"Row",props:zh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);Xr("-legacy-grid",Pne,t);const r=en("Row",n,t),o=lt(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=lt(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return ot(fO,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:lt(()=>`-${Mt(o.value,{c:.5})} -${Mt(i.value,{c:.5})}`),styleWidth:lt(()=>`calc(100% + ${Mt(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),Mh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},Tne=Wn(Mh),pO=J({name:"Col",props:Mh,setup(e){const t=Le(fO,null);return t||Nn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Mt(t.verticalGutterRef.value,{c:.5})} ${Mt(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),E0=Object.assign(Object.assign({},Mh),Rc),One=Wn(E0),vO=J({name:"FormItemCol",props:E0,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(pO,xn(this.$props,Tne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),zne=Object.assign(Object.assign({},zh),E0),Mne=J({name:"FormItemRow",props:zne,setup(){const e=F(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(hO,xn(this.$props,$ne),{default:()=>{const e=xn(this.$props,One);return u(vO,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),Dne=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Ur,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Qo(()=>{At(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?bl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||nt,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):nt;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const p=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=p},0):n.transition=p,t.setAttribute("n-styled",""),r=!0,o=!1}})}),sc(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Ine={name:"GradientText",common:tt,self(e){const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:r,colorEndWarning:s,colorStartError:o,colorEndError:c,colorStartSuccess:n,colorEndSuccess:l}}},Fne=Ine,Ane=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:He(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:He(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:He(r,{alpha:.6}),colorEndWarning:r,colorStartError:He(o,{alpha:.6}),colorEndError:o,colorStartSuccess:He(n,{alpha:.6}),colorEndSuccess:n}},Bne={name:"GradientText",common:nt,self:Ane},Ene=Bne,Lne=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),gO=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Nne=J({name:"GradientText",props:gO,setup(e){Lb();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Mt(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Lne,Ene,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:p,fontWeight:v}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":p,"--n-font-weight":v}}),s=n?et("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Hne={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},mO=24,Xp="__ssr__",bO={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:mO},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},jne=J({name:"Grid",inheritAttrs:!1,props:bO,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=je(e),r=/^\d+$/,o=F(void 0),i=RB((n==null?void 0:n.value)||Hne),a=lt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=lt(()=>{var m;return(m=Number(Jl(e.cols.toString(),l.value)))!==null&&m!==void 0?m:mO}),c=lt(()=>Jl(e.xGap.toString(),l.value)),d=lt(()=>Jl(e.yGap.toString(),l.value)),f=m=>{o.value=m.contentRect.width},h=m=>{Ma(f,m)},p=F(!1),v=P(()=>{if(e.responsive==="self")return h}),b=F(!1),g=F();return It(()=>{const{value:m}=g;m&&m.hasAttribute(Xp)&&(m.removeAttribute(Xp),b.value=!0)}),ot(dO,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!lr,contentEl:g,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:yn(e.xGap),rowGap:yn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:yn(c.value),rowGap:yn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:v,overflow:p}},render(){if(this.layoutShiftDisabled)return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Nr(fc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:p}=this;s.forEach(y=>{var C,x,w,_;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(HA(y)){const $=ar(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==$r))||null;const k=ar(y),T=Number((_=Jl((w=k.props)===null||w===void 0?void 0:w.span,p))!==null&&_!==void 0?_:mS);T!==0&&c.push({child:k,rawChildSpan:T})});let v=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(v=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:mS,b.props.privateSpan=v,b.props.privateColStart=h+1-v,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let g=0,m=!1;for(const{child:y,rawChildSpan:C}of c){if(m&&(this.overflow=!0),!m){const x=Number((l=Jl((a=y.props)===null||a===void 0?void 0:a.offset,p))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const _=g%h;w+_>h&&(g+=h-_),w+g+v>f*h?m=!0:g+=w}}m&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Xp]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(jr,{onResize:this.handleResize},{default:e}):e()}}),yO=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Vne={name:"IconWrapper",common:nt,self:yO},Wne=Vne,Une={name:"IconWrapper",common:tt,self:yO},Kne=Une,qne=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),xO=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Yne=J({name:"IconWrapper",props:xO,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",qne,Wne,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?et("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Mt(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Mt(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),L0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),wO="n-image";function Gne(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Xne={name:"Image",common:nt,peers:{Tooltip:_h},self:Gne},Zne={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},CO=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:p,borderRadius:v,fontWeightStrong:b,boxShadow2:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},Zne),{borderRadius:v,lineHeight:m,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:v,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:p,actionTextColor:t,boxShadow:g})},Qne={name:"Notification",common:nt,peers:{Scrollbar:br},self:CO},Jne=Qne,ere={name:"Notification",common:tt,peers:{Scrollbar:yr},self:CO},tre=ere,nre={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},SO=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:p,closeColorHover:v,closeColorPressed:b}=e;return Object.assign(Object.assign({},nre),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:v,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:v,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:v,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:v,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:v,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:v,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:p})},rre={name:"Message",common:nt,self:SO},ore=rre,ire={name:"Message",common:tt,self:SO},are=ire,lre={name:"ButtonGroup",common:tt},sre=lre,cre={name:"InputNumber",common:tt,peers:{Button:wr,Input:Zr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},dre=cre,ure=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},fre={name:"InputNumber",common:nt,peers:{Button:xr,Input:zr},self:ure},hre=fre,pre={name:"Layout",common:tt,peers:{Scrollbar:yr},self(e){const{textColor2:t,bodyColor:n,popoverColor:r,cardColor:o,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:pt(n,a),siderToggleBarColorHover:pt(n,l),__invertScrollbar:"false"}}},vre=pre,gre=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:pt(r,l),siderToggleBarColorHover:pt(r,s),__invertScrollbar:"true"}},mre={name:"Layout",common:nt,peers:{Scrollbar:br},self:gre},Dh=mre,kO=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:pt(r,s),colorPopover:o,colorHoverPopover:pt(o,s),borderColor:i,borderColorModal:pt(r,i),borderColorPopover:pt(o,i),borderRadius:a,fontSize:l}},bre={name:"List",common:nt,self:kO},yre=bre,xre={name:"List",common:tt,self:kO},wre=xre,Cre={name:"LoadingBar",common:tt,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Sre=Cre,kre=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},_re={name:"LoadingBar",common:nt,self:kre},Rre=_re,Pre={name:"Log",common:tt,peers:{Scrollbar:yr,Code:c$},self(e){const{textColor2:t,inputColor:n,fontSize:r,primaryColor:o}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:o}}},$re=Pre,Tre=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},Ore={name:"Log",common:nt,peers:{Scrollbar:br,Code:d$},self:Tre},zre=Ore,Mre={name:"Mention",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},Dre=Mre,Ire=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},Fre={name:"Mention",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:Ire},Are=Fre;function Bre(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const _O=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:He(r,{alpha:.1}),itemColorActiveHover:He(r,{alpha:.1}),itemColorActiveCollapsed:He(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},Bre("#BBB",r,"#FFF","#AAA"))},Ere={name:"Menu",common:nt,peers:{Tooltip:_h,Dropdown:S0},self:_O},Lre=Ere,Nre={name:"Menu",common:tt,peers:{Tooltip:kh,Dropdown:k0},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,r=_O(e);return r.itemColorActive=He(t,{alpha:.15}),r.itemColorActiveHover=He(t,{alpha:.15}),r.itemColorActiveCollapsed=He(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},Hre=Nre,jre={titleFontSize:"18px",backSize:"22px"};function RO(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},jre),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const Vre={name:"PageHeader",common:nt,self:RO},Wre={name:"PageHeader",common:tt,self:RO},Ure={iconSize:"22px"},PO=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},Ure),{fontSize:t,iconColor:n})},Kre={name:"Popconfirm",common:nt,peers:{Button:xr,Popover:Qa},self:PO},qre=Kre,Yre={name:"Popconfirm",common:tt,peers:{Button:wr,Popover:Ja},self:PO},Gre=Yre,$O=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Xre={name:"Progress",common:nt,self:$O},TO=Xre,Zre={name:"Progress",common:tt,self(e){const t=$O(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},OO=Zre,Qre={name:"Rate",common:tt,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Jre=Qre,eoe=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},toe={name:"Rate",common:nt,self:eoe},noe=toe,roe={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},zO=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},roe),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},ooe={name:"Result",common:nt,self:zO},ioe=ooe,aoe={name:"Result",common:tt,self:zO},loe=aoe,MO={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},soe={name:"Slider",common:tt,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:r,primaryColorSuppl:o,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},MO),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},coe=soe,doe=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},MO),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},uoe={name:"Slider",common:nt,self:doe},foe=uoe,DO=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},hoe={name:"Spin",common:nt,self:DO},poe=hoe,voe={name:"Spin",common:tt,self:DO},goe=voe,IO=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},moe={name:"Statistic",common:nt,self:IO},boe=moe,yoe={name:"Statistic",common:tt,self:IO},xoe=yoe,woe={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},FO=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},woe),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Coe={name:"Steps",common:nt,self:FO},Soe=Coe,koe={name:"Steps",common:tt,self:FO},_oe=koe,AO={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Roe={name:"Switch",common:tt,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:o,textColor2:i,baseColor:a}=e,l="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},AO),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:l,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`})}},Poe=Roe,$oe=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},AO),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${He(t,{alpha:.2})}`})},Toe={name:"Switch",common:nt,self:$oe},Ooe=Toe,zoe={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},BO=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v}=e;return Object.assign(Object.assign({},zoe),{fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v,lineHeight:f,borderRadius:c,borderColor:pt(n,t),borderColorModal:pt(r,t),borderColorPopover:pt(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:pt(n,a),tdColorStripedModal:pt(r,a),tdColorStripedPopover:pt(o,a),thColor:pt(n,i),thColorModal:pt(r,i),thColorPopover:pt(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Moe={name:"Table",common:nt,self:BO},Doe=Moe,Ioe={name:"Table",common:tt,self:BO},Foe=Ioe,Aoe={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},EO=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:p,borderRadius:v,fontSize:b,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Aoe),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:v,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:v,paneTextColor:t,fontWeightStrong:g})},Boe={name:"Tabs",common:nt,self:EO},Eoe=Boe,Loe={name:"Tabs",common:tt,self(e){const t=EO(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},Noe=Loe,LO=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},Hoe={name:"Thing",common:nt,self:LO},joe=Hoe,Voe={name:"Thing",common:tt,self:LO},Woe=Voe,NO={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},Uoe={name:"Timeline",common:tt,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:o,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},Koe=Uoe,qoe=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},Yoe={name:"Timeline",common:nt,self:qoe},Goe=Yoe,HO={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Xoe={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,hoverColor:v,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C,dividerColor:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:x,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:v,titleFontWeight:t,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C})}},Zoe=Xoe,Qoe=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,borderColor:v,hoverColor:b,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:v,borderColor:v,listColor:s,headerColor:pt(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},Joe={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Qoe},eie=Joe,jO=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:He(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},tie={name:"Tree",common:nt,peers:{Checkbox:jl,Scrollbar:br,Empty:oi},self:jO},VO=tie,nie={name:"Tree",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Empty:Za},self(e){const{primaryColor:t}=e,n=jO(e);return n.nodeColorActive=He(t,{alpha:.15}),n}},WO=nie,rie={name:"TreeSelect",common:tt,peers:{Tree:WO,Empty:Za,InternalSelection:h0}},oie=rie,iie=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},aie={name:"TreeSelect",common:nt,peers:{Tree:VO,Empty:oi,InternalSelection:Ch},self:iie},lie=aie,sie={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},UO=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:p,successColor:v,codeColor:b}=e;return Object.assign(Object.assign({},sie),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:h,headerBarColorSuccess:v,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:v,textColorWarning:h,textColorError:p,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},cie={name:"Typography",common:nt,self:UO},Ki=cie,die={name:"Typography",common:tt,self:UO},uie=die,KO=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:He(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},fie={name:"Upload",common:nt,peers:{Button:xr,Progress:TO},self:KO},hie=fie,pie={name:"Upload",common:tt,peers:{Button:wr,Progress:OO},self(e){const{errorColor:t}=e,n=KO(e);return n.itemColorHoverError=He(t,{alpha:.09}),n}},vie=pie,gie={name:"Watermark",common:tt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},mie=gie,bie={name:"Watermark",common:nt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},yie=bie,xie={name:"Row",common:tt},wie=xie,Cie={name:"Image",common:tt,peers:{Tooltip:kh},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Sie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),kie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),_ie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Rie=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Yo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Yo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[Dn()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[mt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),xd=32,qO=J({name:"ImagePreview",props:Object.assign(Object.assign({},L0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Rie,Xne,e,xe(e,"clsPrefix"));let n=null;const r=F(null),o=F(null),i=F(void 0),a=F(!1),l=F(!1),{localeRef:s}=Cn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:U}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,G=Y.top+Y.height/2;U.transformOrigin=`${ce}px ${G}px`}function d(H){var U,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(U=e.onPrev)===null||U===void 0||U.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}it(a,H=>{H?_t("keydown",document,d):Ct("keydown",document,d)}),Bt(()=>{Ct("keydown",document,d)});let f=0,h=0,p=0,v=0,b=0,g=0,m=0,y=0,C=!1;function x(H){const{clientX:U,clientY:Y}=H;p=U-f,v=Y-h,Ma(de)}function w(H){const{mouseUpClientX:U,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:G}=H,B=ce-U,N=G-Y,te=`vertical${N>0?"Top":"Bottom"}`,pe=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:pe,deltaHorizontal:B,deltaVertical:N}}function _(H){const{value:U}=r;if(!U)return{offsetX:0,offsetY:0};const Y=U.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:G,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,pe=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?pe=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(D,z));const U=H-A;de(!1);const Y=_();A+=U,de(!1),A-=U,p=Y.offsetX,v=Y.offsetY,de()}}function de(H=!0){var U;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,G=ac((U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.style);let B="";if(typeof G=="string")B=G+";";else for(const te in G)B+=`${s2(te)}: ${G[te]};`;const N=`transform-origin: center; transform: translateX(${p}px) translateY(${v}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(D)),p=0,v=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,U){if(e.showToolbarTooltip){const{value:Y}=t;return u(Rh,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[U],trigger:()=>H})}else return H}const _e=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:U,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:G}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":U,"--n-toolbar-color":G,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:ve}=je(),Me=ve?et("image-preview",void 0,_e,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:Hn(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var U,Y;(Y=(U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onDragstart)===null||Y===void 0||Y.call(U,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:W,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:ve?void 0:_e,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(mc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),un(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u(Ot,null,o(u(dt,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Sie}),"tipPrevious"),o(u(dt,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>kie}),"tipNext")):null,o(u(dt,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(UK,null)}),"tipCounterclockwise"),o(u(dt,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(WK,null)}),"tipClockwise"),o(u(dt,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(YK,null)}),"tipOriginalSize"),o(u(dt,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(qK,null)}),"tipZoomOut"),o(u(dt,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(KK,null)}),"tipZoomIn"),o(u(dt,{clsPrefix:n,onClick:this.toggleShow},{default:()=>_ie}),"tipClose"))}}):null,u(Ft,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return un(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[$r,this.show]])}})),[[gc,{enabled:this.show}]])):null}}))}}),YO="n-image-group",GO=L0,XO=J({name:"ImageGroup",props:GO,setup(e){let t;const{mergedClsPrefixRef:n}=je(e),r=`c${Tr()}`,o=Jo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}ot(YO,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=F(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),ZO=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},L0),QO=J({name:"Image",props:ZO,inheritAttrs:!1,setup(e){const t=F(null),n=F(!1),r=F(null),o=Le(YO,null),{mergedClsPrefixRef:i}=o||je(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=F(!e.lazy);It(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),It(()=>{if(_l)return;let c;const d=At(()=>{c==null||c(),c=void 0,e.lazy&&(c=wP(t.value,e.intersectionObserverOptions,l))});Bt(()=>{d(),c==null||c()})}),At(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=F(!1);return ot(wO,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:_l?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:_l&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Pie(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function $ie(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Zp(e){return e==null?!0:!Number.isNaN(e)}function yS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Qp(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Tie=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),xS=800,wS=100,JO=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Oie=J({name:"InputNumber",props:JO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=Se("InputNumber","-input-number",Tie,hre,e,n),{localeRef:i}=Cn("InputNumber"),a=Sn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=F(null),f=F(null),h=F(null),p=F(e.defaultValue),v=xe(e,"value"),b=St(v,p),g=F(""),m=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:m(te));return Math.max(...N)},C=lt(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=lt(()=>{const B=Qp(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=lt(()=>{const B=Qp(e.min);return B!==null?B:null}),_=lt(()=>{const B=Qp(e.max);return B!==null?B:null}),k=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:pe,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),pe&&he(pe,B),te&&he(te,B),p.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:pe})=>{const{value:Z}=g;if(pe&&$ie(Z))return!1;const fe=(e.parse||Pie)(Z);if(fe===null)return N&&k(null),null;if(Zp(fe)){const ne=m(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||pe)return!1;Pe=Ae}if(qe!==null&&Pe{const{value:B}=b;if(Zp(B)){const{format:N,precision:te}=e;N?g.value=N(B):B===null||te===void 0||m(B)>te?g.value=yS(B,void 0):g.value=yS(B,te)}else g.value=String(B)};$();const R=lt(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),D=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const pe=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(pe!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(pe||"")),b.value===pe&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),Rt(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function W(){const{value:B}=D;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=_;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),k(null)}function ee(B){var N,te,pe;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(pe=d.value)===null||pe===void 0||pe.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){_e&&(window.clearTimeout(_e),_e=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{W()},wS)},xS),_t("mouseup",document,we,{once:!0})}let _e=null;function ve(){me(),_e=window.setTimeout(()=>{de=window.setInterval(()=>{E()},wS)},xS),_t("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||W()};function U(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!D.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&W()}}function Y(B){g.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}it(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},G=en("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:G,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:p,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:g,addable:z,minusable:D,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:ve,handleMinusMousedown:Oe,handleKeyDown:U,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,pe,Z]=Tn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${pe})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(lo,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>gt(t["minus-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(z2,null)})])}),r=()=>u(lo,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>gt(t["add-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(Dl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(En,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),kt(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[kt(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),ez="n-layout-sider",Ih={type:String,default:"static"},zie=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Vm={embedded:Boolean,position:Ih,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},tz="n-layout";function nz(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Vm),setup(t){const n=F(null),r=F(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(t),a=Se("Layout","-layout",zie,Dh,t,o);function l(b,g){if(t.nativeScrollbar){const{value:m}=n;m&&(g===void 0?m.scrollTo(b):m.scrollTo(b,g))}else{const{value:m}=r;m&&m.scrollTo(b,g)}}ot(tz,t);let s=0,c=0;const d=b=>{var g;const m=b.target;s=m.scrollLeft,c=m.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,b)};Vb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:g}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),v=i?et("layout",P(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Mie=nz(!1),Die=nz(!0),Iie=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),I("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),rz={position:Ih,inverted:Boolean,bordered:{type:Boolean,default:!1}},Fie=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),rz),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-header",Iie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?et("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Aie=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),I("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),oz=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Ih,bordered:Boolean}),Bie=J({name:"LayoutFooter",props:oz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-footer",Aie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?et("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Eie=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[I("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[I("bordered",[M("border",` - right: 0; - `)])]),I("right-placement",` - justify-content: flex-start; - `,[I("bordered",[M("border",` - left: 0; - `)]),I("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),I("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),I("show-content",[S("layout-sider-scroll-container",{opacity:1})]),I("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Lie=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(dt,{clsPrefix:e},{default:()=>u(Ya,null)}))}}),Nie=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),iz={position:Ih,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Hie=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),iz),setup(e){const t=Le(tz),n=F(null),r=F(null),o=P(()=>Mt(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Mt(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=F(e.defaultCollapsed),s=St(xe(e,"collapsed"),l);function c(w,_){if(e.nativeScrollbar){const{value:k}=n;k&&(_===void 0?k.scrollTo(w):k.scrollTo(w,_))}else{const{value:k}=r;k&&k.scrollTo(w,_)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:_,onExpand:k,onCollapse:T}=e,{value:$}=s;_&&he(_,!$),w&&he(w,!$),l.value=!$,$?k&&he(k):T&&he(T)}let f=0,h=0;const p=w=>{var _;const k=w.target;f=k.scrollLeft,h=k.scrollTop,(_=e.onScroll)===null||_===void 0||_.call(e,w)};Vb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),ot(ez,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:v,inlineThemeDisabled:b}=je(e),g=Se("Layout","-layout-sider",Eie,Dh,e,v);function m(w){var _,k;w.propertyName==="max-width"&&(s.value?(_=e.onAfterLeave)===null||_===void 0||_.call(e):(k=e.onAfterEnter)===null||k===void 0||k.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:_}=g.value,{siderToggleButtonColor:k,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=_,D={"--n-bezier":w,"--n-toggle-button-color":k,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(D["--n-color"]=_.siderColorInverted,D["--n-text-color"]=_.textColorInverted,D["--n-border-color"]=_.siderBorderColorInverted,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColorInverted,D.__invertScrollbar=_.__invertScrollbar):(D["--n-color"]=_.siderColor,D["--n-text-color"]=_.textColor,D["--n-border-color"]=_.siderBorderColor,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColor),D}),x=b?et("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:v,mergedTheme:g,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:p,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Mt(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Nie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Lie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),az={extraFontSize:"12px",width:"440px"},jie={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,inputColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,hoverColor:g}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:"#0000",listColor:f,headerColor:h,titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:"#0000",itemTextColor:b,itemTextColorDisabled:v,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}},Vie=jie,Wie=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,borderColor:g,hoverColor:m}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:g,listColor:f,headerColor:pt(f,h),titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:g,itemTextColor:b,itemTextColorDisabled:v,itemColorPending:m,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Uie={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Wie},Kie=Uie,Pc="n-transfer",CS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(Pc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:p}=l,{value:v}=c;return u("div",{class:`${v}-legacy-transfer-list-header`},u("div",{class:`${v}-legacy-transfer-list-header__checkbox`},u(ii,{theme:p.peers.Checkbox,themeOverrides:p.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${v}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${v}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),SS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(Pc),s=lt(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:hc(r)},r))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u(Ot,null,u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(SS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(ah,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(SS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(Ft,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),_S=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(M2,null)})}))}});function qie(e,t){const n=F(e.defaultValue),r=xe(e,"value"),o=St(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(D=>R.set(D.value,D)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(D=>R.get(D))}),c=F(""),d=F(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(D=>R(c.value,D,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(D=>R(d.value,D,"target"))}),p=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),v=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=F([]),g=F([]),m=P(()=>{const R=b.value.filter(z=>p.value.has(z)).length,D=p.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=g.value.filter(z=>v.value.has(z)).length,D=v.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=lt(()=>t.value?!0:g.value.length===0),x=lt(()=>t.value?!0:b.value.length===0),w=F(!1);function _(){w.value=!0}function k(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:p,avlTgtValueSet:v,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:_,handleInputBlur:k,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Yie=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Gie=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[I("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Yo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[I("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),I("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),I("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),I("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Yie]),lz=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Xie=J({name:"LegacyTransfer",props:lz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("LegacyTransfer","-legacy-transfer",Gie,Kie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return hn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:p,filteredTgtOpts:v,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:_,toButtonDisabled:k,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D}=qie(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=m;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?g.value=[]:g.value=Array.from(d.value)}function j(V,re){if(V)g.value.push(re);else{const ee=g.value.findIndex(ue=>ue===re);~ee&&g.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function W(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(g.value);z((s.value||[]).filter(re=>!V.has(re))),g.value=[]}ot(Pc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:g,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:m,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=Cn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),isInputing:w,mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,toButtonDisabled:k,fromButtonDisabled:_,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:W,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:_e,titleTextColorDisabled:ve,extraTextColor:Me,filterDividerColor:H,itemTextColor:U,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:G,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:pe,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":G,"--n-filter-divider-color":H,"--n-font-size":pe,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":_e,"--n-header-text-color-disabled":ve,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":U,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(CS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Tt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(Ya,null)})}),u(Tt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(u0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(CS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Zie=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[I("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),I("clickable",[S("list-item",` - cursor: pointer; - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),I("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),I("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),Mo(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),sz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),cz="n-list",Qie=J({name:"List",props:sz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("List",r,t),i=Se("List","-list",Zie,yre,e,t);ot(cz,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:p,borderColor:v,borderColorModal:b,borderColorPopover:g,borderRadius:m,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":m,"--n-border-color":v,"--n-border-color-modal":b,"--n-border-color-popover":g,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?et("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),Jie=J({name:"ListItem",setup(){const e=Le(cz,null);return e||Nn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),dz="n-loading-bar",uz="n-loading-bar-api",eae=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Yo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[I("starting",` - background: var(--n-color-loading); - `),I("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),I("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Jp=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function wd(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const tae=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=je(),{props:t,mergedClsPrefixRef:n}=Le(dz),r=F(null),o=F(!1),i=F(!1),a=F(!1),l=F(!1);let s=!1;const c=F(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return Jp(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield Rt(),l.value=!1})}function h(w=0,_=80,k="starting"){return Jp(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield Rt();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=wd(k,n.value),T.style.transition="",T.style.maxWidth=`${_}%`)})}function p(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=wd("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function v(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=wd("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=wd("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function g(){o.value=!1}function m(){return Jp(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",eae,Rre,t,n),C=P(()=>{const{self:{height:w,colorError:_,colorLoading:k}}=y.value;return{"--n-height":w,"--n-color-loading":k,"--n-color-error":_}}),x=e?et("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:v,finish:p,handleEnter:b,handleAfterEnter:g,handleAfterLeave:m,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(Ft,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[$r,this.loading||!this.loading&&this.entering]])}})}}),fz=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),hz=J({name:"LoadingBarProvider",props:fz,setup(e){const t=Hn(),n=F(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=je(e);return ot(uz,r),ot(dz,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u(Ot,null,u(cc,{disabled:this.to===!1,to:this.to||"body"},u(tae,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function pz(){const e=Le(uz,null);return e===null&&Nn("use-loading-bar","No outer founded."),e}const nae=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Cn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(so,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),vz="n-log",rae=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(vz),i=F(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return It(()=>{n.value&&l()}),it(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),oae=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[Dn(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),gz=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),iae=J({name:"Log",props:gz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=F(null),s=Se("Log","-log",oae,zre,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){Rt(()=>{r.value=!1});return}const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:D}=e;D&&D("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:D}=e;D&&D("bottom"),R&&R()}}const d=Os(f,300);function f(y){if(r.value){Rt(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:D}=e;D&&D("top")}if($<=0&&R>0){const{onRequireMore:D}=e;D&&D("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:_}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(_==="bottom"||_==="top")&&C.scrollTo({position:_})}function p(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function v(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}ot(vz,{languageRef:xe(e,"language"),mergedHljsRef:R2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},g=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:_},common:{cubicBezierEaseInOut:k}}=s.value;return{"--n-bezier":k,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":_}}),m=n?et("log",void 0,g,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:p,scrollToBottom:v,handleWheel:d,handleScroll:c,cssVars:n?void 0:g,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(ln,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(f$,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(rae,{key:o,line:r}))})}),u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(nae,{clsPrefix:e}):null})])}}),$c="n-menu",N0="n-submenu",H0="n-menu-item-group",Cd=8;function j0(e){const t=Le($c),{props:n,mergedCollapsedRef:r}=t,o=Le(N0,null),i=Le(H0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:p,rootIndent:v}=n,{root:b,isGroup:g}=e,m=v===void 0?p:v;if(b)return r.value?h/2-s.value/2:m;if(i)return p/2+i.paddingLeftRef.value;if(o)return(g?p/2:p)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:p,rootIndent:v}=n,{value:b}=s,{root:g}=e;return a.value||!g||!r.value?Cd:(v===void 0?p:v)+b+Cd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const V0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},mz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),aae=J({name:"MenuOptionGroup",props:mz,setup(e){ot(N0,null);const t=j0(e);ot(H0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le($c);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Ut(e.title),e.extra?u(Ot,null," ",Ut(e.extra)):null),u("div",null,e.tmNodes.map(s=>W0(s,r))))}}}),bz=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le($c);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):Ut(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):Ut(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):Ut(this.extra)):null),this.showArrow?u(dt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(NK,null)}):null)}}),yz=Object.assign(Object.assign({},V0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),lae=J({name:"Submenu",props:yz,setup(e){const t=j0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=F(!1);ot(N0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),ot(H0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:lt(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:p,icon:v,handleClick:b,menuProps:{nodeProps:g},dropdownShow:m,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=g==null?void 0:g(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(bz,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:p,clsPrefix:x,icon:v,hover:m,onClick:b}))},i=()=>u(Io,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>W0(s,this.menuProps)))}});return this.root?u($0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),xz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),sae=J({name:"MenuOption",props:xz,setup(e){const t=j0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:lt(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:lt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(Rh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):Ut(this.title),trigger:()=>u(bz,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),cae=J({name:"MenuDivider",setup(){const e=Le($c),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),dae=Wn(mz),uae=Wn(xz),fae=Wn(yz);function wz(e){return e.type==="divider"||e.type==="render"}function hae(e){return e.type==="divider"}function W0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(wz(n))return hae(n)?u(cae,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(aae,xn(s,dae,{tmNode:e,tmNodes:e.children,key:i})):u(lae,xn(s,fae,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(sae,xn(s,uae,{key:i,tmNode:e}))}const RS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],PS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],pae=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[I("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),I("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[I("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),I("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",PS)]),I("selected",[aa(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),I("child-active",[aa(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),aa("border-bottom: 2px solid var(--n-border-color-horizontal);",PS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),I("collapsed",[S("menu-item-content",[I("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),I("disabled",` - opacity: .45; - cursor: not-allowed; - `),I("collapsed",[M("arrow","transform: rotate(0);")]),I("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),I("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",RS)]),I("selected",[aa(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),I("child-active",[aa(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),I("selected",[aa(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),aa(null,RS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[Go({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function aa(e,t){return[I("hover",e,t),O("&:hover",e,t)]}const Cz=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),vae=J({name:"Menu",props:Cz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Menu","-menu",pae,Lre,e,t),o=Le(ez,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:D}=o;if(R.value==="width")return(T=D.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return co(e.items||e.options,{getIgnored(D){return wz(D)},getChildren(D){return D[$]},getDisabled(D){return D[R]},getKey(D){var z;return(z=D[T])!==null&&z!==void 0?z:D.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=F(null);s!=null&&s.includes("defaultValue")?At(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=St(d,c),h=F([]),p=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?At(p):p();const v=Ii(e,["expandedNames","expandedKeys"]),b=St(v,h),g=P(()=>a.value.treeNodes),m=P(()=>a.value.getPath(f.value).keyPath);ot($c,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:m,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:D,onSelect:z}=e;D&&he(D,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:D,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),D&&he(D,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(D=>D===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const D=$.findIndex(z=>l.value.has(z));D>-1&&$.splice(D,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),D=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{D.has(z)&&!$.includes(z)&&D.delete(z)}),C(Array.from(D))},_=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:D,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":D,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),k=n?et("menu",P(()=>e.inverted?"a":"b"),_,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:v,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:m,tmNodes:g,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>W0(o,this.$props)))}});function gae(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!lr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(v=>{if(f&&v==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),g=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),m=g+parseInt(d.lineHeight);b>m?c.lineHeight=`${b-g}px`:b===m?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[v]=d[v]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),p.left>=e.clientWidth&&t.checkWidthOverflow&&(p.left=e.clientWidth),p}const mae=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Sz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Qn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),bae=J({name:"Mention",props:Sz,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=je(e),i=Se("Mention","-mention",mae,Are,e,n),a=Sn(e),l=F(null),s=F(null),c=F(null),d=F("");let f=null,h=null,p=null;const v=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>co(v.value,{getKey:ee=>ee.value})),g=F(null),m=F(!1),y=F(e.defaultValue),C=xe(e,"value"),x=St(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),_=o?et("mention",void 0,w,e):void 0;function k(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,p=null),m.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){k(!1);return}const{selectionEnd:de}=ue;if(de===null){k(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let _e=de-1;_e>=0;--_e){const ve=Ce[_e];if(ve===we||ve===` -`||ve==="\r"){k(!1);return}if(Oe.includes(ve)){const Me=Ce.slice(_e+1,de);k(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,ve),d.value=Me,f=ve,h=_e+1,p=de;return}}k(!1)}function D(){const{value:ee}=s;if(!ee)return;const ue=$(),de=gae(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!m.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{D(),R(),Rt().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=g;if(m.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):k(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function W(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),k(!1)}function V(ee){var ue;if(f===null||h===null||p===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(p),_e=Oe.startsWith(me),ve=`${de}${_e?"":me}`;T(we.slice(0,h)+ve+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+ve.length+(_e?1:0);Rt().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:g,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:m,adjustedTo:Ht(e),isMounted:Hn(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:W,blur:K,cssVars:o?void 0:w,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(En,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Or,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(xc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),kz={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},_z="n-message-api",Rz="n-message-provider",yae=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[Go({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>I(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[I("top",` - top: 12px; - left: 0; - right: 0; - `),I("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),I("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),I("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),I("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),I("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),xae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},wae=J({name:"Message",props:Object.assign(Object.assign({},kz),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=je(e),{props:r,mergedClsPrefixRef:o}=Le(Rz),i=en("Message",n,o),a=Se("Message","-message",yae,ore,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:p,iconMargin:v,closeMargin:b,closeSize:g,iconSize:m,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:_,iconColorWarning:k,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:D,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:W,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":p,"--n-font-size":y,"--n-icon-margin":v,"--n-icon-size":m,"--n-close-icon-size":R,"--n-close-border-radius":D,"--n-close-size":g,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":_,"--n-icon-color-warning":k,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":W,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?et("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Cae(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(Do,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},Ut(r)),n?u(ri,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Cae(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(so,{clsPrefix:n,strokeWidth:24,scale:.85}):xae[t]();return r?u(dt,{clsPrefix:n,key:t},{default:()=>r}):null}}const Sae=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},kz),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=F(!0);It(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:p}=e;d&&d(),f&&f(p),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Io,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(wae,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Pz=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),$z=J({name:"MessageProvider",props:Pz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=F({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};ot(Rz,{props:e,mergedClsPrefixRef:t}),ot(_z,o);function i(s,c){const d=Tr(),f=ji(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var p;(p=r.value[d])===null||p===void 0||p.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Sae,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Va(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Tz(){const e=Le(_z,null);return e===null&&Nn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Fh="n-notification-provider",kae=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(Fh),r=F(null);return At(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_ae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},U0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Rae=Wn(U0),Pae=J({name:"Notification",props:U0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(Fh),{inlineThemeDisabled:o,mergedRtlRef:i}=je(),a=en("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:v,headerTextColor:b,descriptionTextColor:g,actionTextColor:m,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:_,closeMargin:k,closeSize:T,width:$,padding:R,closeIconSize:D,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:W,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=Pi(R);return{"--n-color":d,"--n-font-size":_,"--n-text-color":f,"--n-description-text-color":g,"--n-action-text-color":m,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":v,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":k,"--n-close-size":T,"--n-close-icon-size":D,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":W}}),s=o?et("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?Ut(this.avatar):this.type!=="default"?u(dt,{clsPrefix:t},{default:()=>_ae[this.type]()}):null):null,this.closable?u(ri,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},Ut(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},Ut(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},Ut(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},Ut(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},Ut(this.action)):null):null)))}}),$ae=Object.assign(Object.assign({},U0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Tae=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},$ae),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(Fh),n=F(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(v){t.value++,Rt(()=>{v.style.height=`${v.offsetHeight}px`,v.style.maxHeight="0",v.style.transition="none",v.offsetHeight,v.style.transition="",v.style.maxHeight=v.style.height})}function a(v){t.value--,v.style.height="",v.style.maxHeight="";const{onAfterEnter:b,onAfterShow:g}=e;b&&b(),g&&g()}function l(v){t.value++,v.style.maxHeight=`${v.offsetHeight}px`,v.style.height=`${v.offsetHeight}px`,v.offsetHeight}function s(v){const{onHide:b}=e;b&&b(),v.style.maxHeight="0",v.offsetHeight}function c(){t.value--;const{onAfterLeave:v,onInternalAfterLeave:b,onAfterHide:g,internalKey:m}=e;v&&v(),b(m),g&&g()}function d(){const{duration:v}=e;v&&(r=window.setTimeout(o,v))}function f(v){v.currentTarget===v.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(v){v.currentTarget===v.target&&d()}function p(){const{onClose:v}=e;v?Promise.resolve(v()).then(b=>{b!==!1&&o()}):o()}return It(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:p,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(Ft,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Pae,Object.assign({},xn(this.$props,Rae),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Oae=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),I("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),I("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),I("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),I("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),I("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),I("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),I("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),I("top-right",` - right: 0; - `,[Sd("top-right")]),I("top-left",` - left: 0; - `,[Sd("top-left")]),I("bottom-right",` - right: 0; - `,[Sd("bottom-right")]),I("bottom-left",` - left: 0; - `,[Sd("bottom-left")]),I("scrollable",[I("top-right",` - top: 0; - `),I("top-left",` - top: 0; - `),I("bottom-right",` - bottom: 0; - `),I("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),I("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),I("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function Sd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const Oz="n-notification-api",zz=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Mz=J({name:"NotificationProvider",props:zz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r={},o=new Set;function i(p){const v=Tr(),b=()=>{o.add(v),r[v]&&r[v].hide()},g=ji(Object.assign(Object.assign({},p),{key:v,destroy:b,hide:b,deactivate:b})),{max:m}=e;if(m&&n.value.length-o.size>=m){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(g),g}const a=["info","success","warning","error"].map(p=>v=>i(Object.assign(Object.assign({},v),{type:p})));function l(p){o.delete(p),n.value.splice(n.value.findIndex(v=>v.key===p),1)}const s=Se("Notification","-notification",Oae,Jne,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=F(0);ot(Oz,c),ot(Fh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(p){return i(p)}function h(){Object.values(n.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(kae,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Tae,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Va(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Dz(){const e=Le(Oz,null);return e===null&&Nn("use-notification","No outer `n-notification-provider` found."),e}const zae=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),Iz=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Mae=J({name:"PageHeader",props:Iz,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=je(e),o=Se("PageHeader","-page-header",zae,Vre,e,t),i=en("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:p,titleFontWeight:v,backColorHover:b,backColorPressed:g},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":v,"--n-font-size":f,"--n-back-size":p,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":g,"--n-bezier":m}}),l=r?et("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:p,footer:v,back:b}=l,g=t,m=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(g||p||m||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},g?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(dt,{clsPrefix:i},{default:()=>u(VK,null)})):null,p?u("div",{class:`${i}-page-header__avatar`},p()):null,m?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,v?u("div",{class:`${i}-page-header-footer`,key:"footer"},v()):null)}}),Fz="n-popconfirm",Az={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},$S=Wn(Az),Dae=J({name:"NPopconfirmPanel",props:Az,setup(e){const{localeRef:t}=Cn("Popconfirm"),{inlineThemeDisabled:n}=je(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(Fz),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?et("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},Cn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=gt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Tt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Tt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},kt(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},gt(r.icon,()=>[u(dt,{clsPrefix:t},{default:()=>u(Wi,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Iae=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),Bz=Object.assign(Object.assign(Object.assign({},Se.props),La),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Fae=J({name:"Popconfirm",props:Bz,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=je(),n=Se("Popconfirm","-popconfirm",Iae,qre,e,t),r=F(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return ot(Fz,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(el,Va(t,$S,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=xn(t,$S);return u(Dae,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Aae=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[I("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),I("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),I("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[I("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[I("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),I("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[I("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Bae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Eae=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Mt(e.height)),r=P(()=>e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Mt(e.fillBorderRadius):e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:p,processing:v,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,v&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:b},{default:()=>Bae[f]}))):null)}}}),Lae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Nae=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,p=2*c,v=50+s/2,b=`M ${v},${v} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-p} - a ${c},${c} 0 1 1 ${-h},${p}`,g=Math.PI*2*c,m={stroke:i,strokeDasharray:`${r/100*(g-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:m}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:v,pathStyle:b}=n(100,0,o),{pathString:g,pathStyle:m}=n(s,a,r),y=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:v,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,s===0&&`${p}-progress-graph-circle-fill--empty`],d:g,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:m}))))),c?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:p},{default:()=>Lae[l]})):u("div",{class:`${p}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${p}-progress-text__percentage`},s),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function TS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Hae=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[p]},c[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[p],strokeDashoffset:0,stroke:l[p]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Ez=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),Lz=J({name:"Progress",props:Ez,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Se("Progress","-progress",Aae,TO,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:v,iconSizeLine:b,textColorCircle:g,textColorLineInner:m,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:_}}=i.value;return{"--n-bezier":c,"--n-fill-color":_,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":v,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":g,"--n-text-color-line-inner":m,"--n-text-color-line-outer":y}}),l=o?et("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:v,height:b,processing:g,circleGap:m,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:_,onRender:k}=this;return k==null||k(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Nae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},_):e==="line"?u(Eae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:g,indicatorPlacement:f,unit:h,fillBorderRadius:v,railBorderRadius:p,height:b},_):e==="multiple-circle"?u(Hae,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:m},_):null)}}),jae=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Vae=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),I("active",` - color: var(--n-item-color-active); - `)]),mt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[I("active",` - color: var(--n-item-color-active); - `)])]),Nz=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Wae=J({name:"Rate",props:Nz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Rate","-rate",Vae,noe,e,t),o=xe(e,"value"),i=F(e.defaultValue),a=F(null),l=Sn(e),s=St(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:_,nTriggerFormInput:k}=l;x&&he(x,C),w&&he(w,C),i.value=C,_(),k()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function p(){a.value=null}function v(C,x){var w;const{clearable:_}=e,k=d(C,x);_&&k===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(k)}function b(){f=!1}const g=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),m=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:_}=x,{color:k}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":k||_,"--n-item-size":g.value}}),y=n?et("rate",P(()=>{const C=g.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ia(x)),w}),m,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:v,handleMouseLeave:p,handleMouseEnterSomeStar:b,cssVars:n?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},xM(this.count,(a,l)=>{const s=i?i():u(dt,{clsPrefix:r},{default:()=>jae}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Uae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Kae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),qae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Yae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Gae=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Xae={403:Yae,404:Uae,418:qae,500:Kae,info:u(Hi,null),success:u(Xa,null),warning:u(Wi,null),error:u(Ga,null)},Hz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Zae=J({name:"Result",props:Hz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Result","-result",Gae,ioe,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:p,[ye("fontSize",a)]:v,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:g}}=r.value;return{"--n-bezier":s,"--n-font-size":v,"--n-icon-size":g,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":p||""}}),i=n?et("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(dt,{clsPrefix:r},{default:()=>Xae[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),jz=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Qae=J({name:"Scrollbar",props:jz,setup(){const e=F(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(ln,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Jae=Qae,ele={name:"Skeleton",common:tt,self(e){const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}}},tle=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},nle={name:"Skeleton",common:nt,self:tle},rle=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),Vz=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),ole=J({name:"Skeleton",inheritAttrs:!1,props:Vz,setup(e){Lb();const{mergedClsPrefixRef:t}=je(e),n=Se("Skeleton","-skeleton",rle,nle,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:p,round:v,width:b,height:g,size:m,text:y,animated:C}=e;m!==void 0&&(f=l[ye("height",m)]);const x=h?(r=b!=null?b:g)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:g)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":v?"4096px":p?"":d,width:typeof x=="number"?yn(x):x,height:typeof w=="number"?yn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Gn({class:`${n}-skeleton`,style:t},r));return e>1?u(Ot,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function OS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function zS(){const e=F(new Map),t=n=>r=>{e.value.set(n,r)};return sb(()=>e.value.clear()),[e,t]}const ile=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[I("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),I("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),I("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),I("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),I("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),I("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[I("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[I("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[Dn()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[I("top",` - margin-bottom: 12px; - `),I("right",` - margin-left: 12px; - `),I("bottom",` - margin-top: 12px; - `),I("left",` - margin-right: 12px; - `),Dn()]),Mo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),ei(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),ale=0,Wz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),lle=J({name:"Slider",props:Wz,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Se("Slider","-slider",ile,foe,e,t),i=F(null),[a,l]=zS(),[s,c]=zS(),d=F(new Set),f=Sn(e),{mergedDisabledRef:h}=f,p=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),v=F(e.defaultValue),b=xe(e,"value"),g=St(b,v),m=P(()=>{const{value:ne}=g;return(e.range?ne:[ne]).map(ee)}),y=P(()=>m.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=F(-1),_=F(-1),k=F(-1),T=F(!1),$=F(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),D=P(()=>{if(y.value)return;const ne=m.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=m.value.slice();Pe.sort((ht,vt)=>ht-vt);const{value:Ae}=R,{value:qe}=y,{range:Ye}=e,ft=qe?()=>!1:ht=>Ye?ht>=Pe[0]&&ht<=Pe[Pe.length-1]:ht<=Pe[0];for(const ht of Object.keys(ge)){const vt=Number(ht);ne.push({active:ft(vt),label:ge[ht],style:{[Ae]:`${ue(vt)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||k.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&_.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function W(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:qe}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),v.value=ne,Ae(),qe()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=m;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||m.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=m.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const qe=x.value||[],{step:Ye}=e;if(Ye==="mark"){const vt=we(ne,qe.concat(ge),Ae?Pe:void 0);return vt?vt.value:ge}if(Ye<=0)return ge;const{value:ft}=p;let ht;if(Ae){const vt=Number((ge/Ye).toFixed(ft)),Ve=Math.floor(vt),Xe=vt>Ve?Ve:Ve-1,We=vt0)&&(Ae===null||ft0?1:-1),ge)}function ve(ne){var ge,Pe;if(h.value||!OS(ne)&&ne.button!==ale)return;const Ae=me(ne);if(Ae===void 0)return;const qe=m.value.slice(),Ye=e.range?(Pe=(ge=we(Ae,qe))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;Ye!==-1&&(ne.preventDefault(),E(Ye),Me(),V(re(Ae,m.value[Ye]),Ye))}function Me(){T.value||(T.value=!0,_t("touchend",document,Y),_t("mouseup",document,Y),_t("touchmove",document,U),_t("mousemove",document,U))}function H(){T.value&&(T.value=!1,Ct("touchend",document,Y),Ct("mouseup",document,Y),Ct("touchmove",document,U),Ct("mousemove",document,U))}function U(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,m.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(k.value=ne)}function G(ne){w.value===ne&&(w.value=-1,H()),k.value===ne&&(k.value=-1)}function B(ne){k.value=ne}function N(ne){k.value===ne&&(k.value=-1)}it(w,(ne,ge)=>void Rt(()=>_.value=ge)),it(g,()=>{if(e.marks){if($.value)return;$.value=!0,Rt(()=>{$.value=!1})}Rt(W)}),Bt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:qe,handleColor:Ye,opacityDisabled:ft,dotColor:ht,dotColorModal:vt,handleBoxShadow:Ve,handleBoxShadowHover:Xe,handleBoxShadowActive:We,handleBoxShadowFocus:Ke,dotBorder:X,dotBoxShadow:q,railHeight:ke,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":X,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":ht,"--n-dot-color-modal":vt,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":qe,"--n-font-size":Te,"--n-handle-box-shadow":Ve,"--n-handle-box-shadow-active":We,"--n-handle-box-shadow-focus":Ke,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":Ye,"--n-handle-size":Ee,"--n-opacity-disabled":ft,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":ke,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),pe=r?et("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:qe}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":qe,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?et("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:v,mergedValue:g,mergedDisabled:h,mergedPlacement:C,isMounted:Hn(),adjustedTo:Ht(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:D,getHandleStyle:A,activeIndex:w,arrifiedValues:m,followerEnabledIndexSet:d,handleRailMouseDown:ve,handleHandleFocus:ce,handleHandleBlur:G,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},gt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Or,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),sle=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Yo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[I("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[I("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),cle={small:20,medium:18,large:16},Uz=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),dle=J({name:"Spin",props:Uz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Spin","-spin",sle,poe,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?yn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?et("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ii(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return cle[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(so,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(Ft,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),ule=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),Kz=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),fle=J({name:"Statistic",props:Kz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Statistic","-statistic",ule,boe,e,t),i=en("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:p,valueTextColor:v,labelFontSize:b},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-bezier":g,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":p,"--n-value-text-color":v}}),l=n?et("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},kt(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},kt(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):kt(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),kt(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),hle=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[I("disabled","cursor: not-allowed"),I("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()])])]),I("vertical","flex-direction: column;",[mt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function ple(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function vle(e){return e.map((t,n)=>ple(t,n))}const qz=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),Yz="n-steps",gle=J({name:"Steps",props:qz,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=en("Steps",r,n),i=Se("Steps","-steps",hle,Soe,e,n);return ot(Yz,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},vle(Nr(fc(this))))}}),Gz={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},mle=J({name:"Step",props:Gz,setup(e){const t=Le(Yz,null);t||Nn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=je(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:p}=e,{current:v}=r;if(v===void 0)return"process";if(pv)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:p}=r,{common:{cubicBezierEaseInOut:v},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",p)]:g,[ye("indicatorIndexFontSize",p)]:m,[ye("indicatorSize",p)]:y,[ye("indicatorIconSize",p)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:_,[ye("splitorColor",h)]:k,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":v,"--n-description-text-color":$,"--n-header-text-color":_,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":m,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":k,"--n-step-header-font-size":g,"--n-step-header-font-weight":b}}),d=n?et("step",P(()=>{const{value:h}=s,{size:p}=r;return`${h[0]}${p[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":p}=r;return h||p?()=>{h&&he(h,e.internalIndex),p&&he(p,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=kt(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(Do,null,{default:()=>kt(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(dt,{clsPrefix:e,key:"finish"},{default:()=>gt(l["finish-icon"],()=>[u(d0,null)])}):a==="error"?u(dt,{clsPrefix:e,key:"error"},{default:()=>gt(l["error-icon"],()=>[u(T2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},gt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),ble=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),I("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),mt("disabled",[mt("icon",[I("rubber-band",[I("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),I("active",[I("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),I("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[On()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),I("active",[M("rail","background-color: var(--n-rail-color-active);")]),I("loading",[M("rail",` - cursor: wait; - `)]),I("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),Xz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let ls;const yle=J({name:"Switch",props:Xz,setup(e){ls===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ls=CSS.supports("width","max(1px)"):ls=!1:ls=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Switch","-switch",ble,Ooe,e,t),o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=P(()=>c.value===e.checkedValue),f=F(!1),h=F(!1),p=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function v(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:D}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),D&&he(D,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function g(){const{nTriggerFormBlur:T}=o;T()}function m(){e.loading||a.value||(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,g(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const _=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:D,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:W,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return ls?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=yn((hn(re)-hn(K))/2),me=yn(Math.max(hn(re),hn(K))),Oe=hn(re)>hn(K)?ee:yn(hn(ee)+hn(K)-hn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":D,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":W}}),k=n?et("switch",P(()=>i.value[0]),_,e):void 0;return{handleClick:m,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(Pa(s)&&Pa(c)&&Pa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},kt(a,h=>kt(l,p=>h||p?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),p)):null)),u("div",{class:`${e}-switch__button`},kt(s,h=>kt(c,p=>kt(d,v=>u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||h):!this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"unchecked-icon":"icon"},v||h):null})))),kt(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),kt(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),xle=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),I("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),I("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),mt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),Mo(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),ei(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),Zz=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),wle=J({name:"Table",props:Zz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Table","-table",xle,Doe,e,t),i=en("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:p,thColorModal:v,thColorPopover:b,thTextColor:g,tdTextColor:m,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:_,tdColorStriped:k,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:D,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":m,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":_,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":p,"--n-th-color-modal":v,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":D,"--n-th-padding":z,"--n-td-color-striped":k,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?et("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Cle=J({name:"Th",render(){return u("th",null,this.$slots)}}),Sle=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),kle=J({name:"Td",render(){return u("td",null,this.$slots)}}),_le=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Rle=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),K0="n-tabs",q0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ple=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:q0,setup(e){const t=Le(K0,null);return t||Nn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Qz=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Va(q0,["displayDirective"])),qf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Qz,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(K0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,p=++a.id;if(h!==n.value){const{value:v}=l;v?Promise.resolve(v(e.name,n.value)).then(b=>{b&&a.id===p&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Gn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u(Ot,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(dt,{clsPrefix:t},{default:()=>u(Dl,null)})):d?d():typeof f=="object"?f:Ut(f!=null?f:n)),l&&this.type==="card"?u(ri,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),$le=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[I("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),I("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),I("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),I("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[I("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),I("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[I("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),I("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),I("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),I("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),I("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),I("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[I("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),I("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[I("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),mt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),I("closable","padding-right: 6px;"),I("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),I("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),I("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),I("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),I("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),I("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),Jz=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Tle=J({name:"Tabs",props:Jz,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=je(e),s=Se("Tabs","-tabs",$le,Eoe,e,a),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(!0),b=F(!0),g=Ii(e,["labelSize","size"]),m=Ii(e,["activeName","value"]),y=F((r=(n=m.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Nr(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=St(m,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});it(C,()=>{x.id=0,$(),R()});function _(){var G;const{value:B}=C;return B===null?null:(G=c.value)===null||G===void 0?void 0:G.querySelector(`[data-name="${B}"]`)}function k(G){if(e.type==="card")return;const{value:B}=d;if(!!B&&G){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:pe}=e;if(G.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(pe)){if(T(["top","maxHeight","height"]),typeof te=="number"&&G.offsetWidth>=te){const Z=Math.floor((G.offsetWidth-te)/2)+G.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${G.offsetLeft}px`,B.style.maxWidth=`${G.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&G.offsetHeight>=te){const Z=Math.floor((G.offsetHeight-te)/2)+G.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${G.offsetTop}px`,B.style.maxHeight=`${G.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(G){const{value:B}=d;if(!!B)for(const N of G)B.style[N]=""}function $(){if(e.type==="card")return;const G=_();G&&k(G)}function R(G){var B;const N=(B=p.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=_();if(!te)return;const{scrollLeft:pe,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;pe>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>pe+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const D=F(null);let z=0,A=null;function L(G){const B=D.value;if(B){z=G.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(G){const B=D.value;if(B){const N=G.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const G=D.value;G&&(G.style.maxHeight="",G.style.height="")}const W={value:[]},K=F("next");function Q(G){const B=C.value;let N="next";for(const te of W.value){if(te===B)break;if(te===G){N="prev";break}}K.value=N,V(G)}function V(G){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,G),N&&he(N,G),te&&he(te,G),y.value=G}function re(G){const{onClose:B}=e;B&&he(B,G)}function ee(){const{value:G}=d;if(!G)return;const B="transition-disabled";G.classList.add(B),$(),G.classList.remove(B)}let ue=0;function de(G){var B;if(G.contentRect.width===0&&G.contentRect.height===0||ue===G.contentRect.width)return;ue=G.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Ce=Os(de,64);it([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:G}=e;(G==="line"||G==="bar")&&ee()})});const we=F(!1);function me(G){var B;const{target:N,contentRect:{width:te}}=G,pe=N.parentElement.offsetWidth;if(!we.value)peZ.$el.offsetWidth&&(we.value=!1)}ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Oe=Os(me,64);function _e(){const{onAdd:G}=e;G&&G(),Rt(()=>{const B=_(),{value:N}=p;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function ve(G){if(!G)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=G;v.value=B<=0,b.value=B+te>=N}const Me=Os(G=>{ve(G.target)},64);ot(K0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:_e}),fh(()=>{$(),R()}),At(()=>{const{value:G}=f;if(!G||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;v.value?G.classList.remove(N):G.classList.add(N),b.value?G.classList.remove(te):G.classList.add(te)});const H=F(null);it(C,()=>{if(e.type==="segment"){const G=H.value;G&&Rt(()=>{G.classList.add("transition-disabled"),G.offsetWidth,G.classList.remove("transition-disabled")})}});const U={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:G}=g,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${G}${N}`,{self:{barColor:pe,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:qe,tabBorderRadius:Ye,tabFontWeightActive:ft,colorSegment:ht,fontWeightStrong:vt,tabColorSegment:Ve,closeSize:Xe,closeIconSize:We,closeColorHover:Ke,closeColorPressed:X,closeBorderRadius:q,[ye("panePadding",G)]:ke,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",G)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":ht,"--n-bar-color":pe,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":Ye,"--n-close-size":Xe,"--n-close-icon-size":We,"--n-close-color-hover":Ke,"--n-close-color-pressed":X,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":qe,"--n-tab-font-weight-active":ft,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":ke,"--n-font-weight-strong":vt,"--n-tab-color-segment":Ve}}),ce=l?et("tabs",P(()=>`${g.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:D,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:g,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:W,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},U)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Nr(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Nr(s()).filter(y=>y.type.__TAB__===!0):[],p=!h.length,v=t==="card",b=t==="segment",g=!v&&!b&&this.justifyContent;a.value=[];const m=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),p?f.map((C,x)=>(a.value.push(C.props.name),ev(u(qf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!g||g==="center"||g==="start"||g==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),ev(x!==0&&!g?IS(C):C))),!r&&o&&v?DS(o,(p?f.length:h.length)!==0):null,g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&o?u(jr,{onResize:this.handleTabsResize},{default:()=>y}):y,v?u("div",{class:`${e}-tabs-pad`}):null,v?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,g&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},kt(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},p?f.map((y,C)=>(a.value.push(y.props.name),u(qf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:IS(y)))):u(jr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(b6,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:m}):u("div",{class:`${e}-tabs-nav-y-scroll`},m()))}),r&&o&&v?DS(o,!0):null,kt(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),p&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},MS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):MS(f,this.mergedValue,this.renderedNames)))}});function MS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=v=>d===v||f===v,p=t===c;if(s.key!==void 0&&(s.key=c),p||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const v=!h("if");l.push(v?un(s,[[$r,p]]):s)}}),a?u(ah,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function DS(e,t){return u(qf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function IS(e){const t=ar(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function ev(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Ole=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),e5=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),zle=J({name:"Thing",props:e5,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Thing","-thing",Ole,joe,e,n),a=en("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?et("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(Ot,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),t5={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Mle=J({name:"Time",props:t5,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=Cn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>xT(d,c,f,h):on}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):Z9(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Ar(this.renderedTime):u("time",[this.renderedTime])}}),FS=1.25,Dle=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${FS}; -`,[I("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[I("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),I("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),I("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),I("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${FS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),n5=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),r5="n-timeline",Ile=J({name:"Timeline",props:n5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Timeline","-timeline",Dle,Goe,e,n);return ot(r5,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),o5={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Fle=J({name:"TimelineItem",props:o5,setup(e){const t=Le(r5);t||Nn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Lb();const{inlineThemeDisabled:n}=je(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:p,contentFontSize:v,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:g,[ye("titleFontSize",i)]:m,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":v,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":m,"--n-title-font-weight":p,"--n-title-margin":g,"--n-title-text-color":c,"--n-icon-size":Mt(a)||b}}),o=n?et("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),kt(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},kt(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},gt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},gt(r.footer,()=>[this.time]))))}}),Tc="n-transfer",AS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(Tc),{localeRef:c}=Cn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:p}=i,{value:v}=l,{value:b}=c,g=e.size==="large"?"small":"tiny",{title:m}=e;return u("div",{class:`${v}-transfer-list-header`},m&&u("div",{class:`${v}-transfer-list-header__title`},m),d&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${v}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),BS=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(Tc),s=lt(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:hc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(ri,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),ES=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(BS,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(BS,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),LS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t},{default:()=>u(M2,null)})}))}});function Ale(e){const t=F(e.defaultValue),n=St(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(_=>{const k=x.get(_);k&&w.push(k)}),w}),a=F(""),l=F(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:_}=e;return s.value?w.filter(k=>_(a.value,k,"source")&&(x||!o.value.has(k.value))):x?w:w.filter(k=>!o.value.has(k.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),g=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),m=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:p,valueSetForClearRef:v,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:m,allCheckedRef:g,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Ble=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[I("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[I("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),I("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),I("source","cursor: pointer;"),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),mt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),i5=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ele=J({name:"Transfer",props:i5,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("Transfer","-transfer",Ble,eie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return hn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:p,filteredSrcOptionsRef:v,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k}=Ale(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:W}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),W&&he(W,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function D(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return ot(Tc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:D,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:W,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:_e,closeIconColorPressed:ve,closeIconSize:Me,closeSize:H,dividerColor:U,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:G,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":W,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":G,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":_e,"--n-close-icon-color-pressed":ve,"--n-divider-color":U}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(AS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(LS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(ES,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(AS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(LS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(ES,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),Y0="n-tree-select",Oc="n-tree",Lle=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(Oc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(Do,null,{default:()=>{if(e.loading)return u(so,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(dt,{clsPrefix:n,key:"switcher"},{default:()=>u(AK,null)})}})))}}}),Nle=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(Oc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(ii,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Hle=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(Oc),i=F(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:p}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):Ut(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):Ut(p)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):Ut(h)):null)}});function NS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function jle({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function a5(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function vi(e,t){return!!e.rawNode[t]}function l5(e,t,n,r){e==null||e.forEach(o=>{n(o),l5(o[t],t,n,r),r(o)})}function Vle(e,t,n,r,o){const i=new Set,a=new Set,l=[];return l5(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(lr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Wle(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(p){p.forEach(v=>{if(d.push(v),t(n,v)){i.add(v[r]),l.add(v[r]);for(let g=d.length-2;g>=0;--g){const m=d[g][r];if(!a.has(m))a.add(m),i.has(m)&&i.delete(m);else break}}const b=v[o];b&&f(b),d.pop()})}f(e);function h(p,v){p.forEach(b=>{const g=b[r],m=i.has(g),y=a.has(g);if(!m&&!y)return;const C=b[o];if(C)if(m)v.push(b);else{s.push(g);const x=Object.assign(Object.assign({},b),{[o]:[]});v.push(x),h(C,x[o])}else v.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Ule=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(Oc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,p=lt(()=>!!e.tmNode.rawNode.checkboxDisabled),v=lt(()=>vi(e.tmNode,h.value)),b=lt(()=>t.disabledRef.value||v.value),g=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),m=F(null),y={value:null};It(()=>{y.value=m.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=lt(()=>!v.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=lt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),_=lt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),k=lt(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=k;if(!V&&!Q&&!re||Zn(K,"checkbox")||Zn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&D(!_.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function D(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function W(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:lt(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:lt(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:lt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:lt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:lt(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:_,indeterminate:lt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:lt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:lt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:k,checkboxDisabled:p,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:g,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:m,contentElRef:y,handleCheck:D,handleDrop:W,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:p,nodeProps:v,checkboxPlacement:b}=this,g=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,m=p?N_(e.key):void 0,y=b==="right",C=n?u(Nle,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},g),u("div",Object.assign({},c?v:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},v==null?void 0:v.class],"data-key":m,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),L_(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Lle,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Hle,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:v,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?NS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?NS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),s5=Ule;function Kle({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(Y0,null),s=l?l.pendingNodeKeyRef:F(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let p=0;for(;pv.key===f);if(!~p)return;if(d.key==="Enter")o(h[p]);else if(d.key==="ArrowDown")for(d.preventDefault(),p+=1;p=0;){if(!h[p].disabled){s.value=h[p].key;break}p-=1}else if(d.key==="ArrowLeft"){const v=h[p];if(v.isLeaf||!n.value.includes(f)){const b=v.getParent();b&&(s.value=b.key)}else i(v)}else if(d.key==="ArrowRight"){const v=h[p];if(v.isLeaf)return;if(!n.value.includes(f))i(v);else for(p+=1;pu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:yn(this.height)}},this.nodes.map(t=>u(s5,{clsPrefix:e,tmNode:t})))})}}),Yle=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[I("expand",[Go({duration:"0.2s"})]),I("collapse",[Go({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[I("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),I("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),mt("disabled",[I("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),I("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),mt("block-line",[S("tree-node",[mt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),I("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),I("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),I("block-line",[S("tree-node",[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),I("pending",` - background-color: var(--n-node-color-hover); - `),I("selectable",[mt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("selected",{backgroundColor:"var(--n-node-color-active)"})]),I("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[On()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()]),S("base-icon",[On()])]),I("hide",{visibility:"hidden"}),I("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[I("right","margin-left: 4px;")]),I("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Gle=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const kd=30;function c5(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const d5={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},u5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:jle},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),d5),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),f5=J({name:"Tree",props:u5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Tree",r,t),i=Se("Tree","-tree",Yle,VO,e,t),a=F(null),l=F(null),s=F(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:Fe}=e;return(Je,at)=>{if(!Je.length)return!0;const ct=at[Fe];return typeof ct=="string"?ct.toLowerCase().includes(Je.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Wle(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=P(()=>co(e.showIrrelevantNodes?e.data:h.value.filteredTree,c5(e.keyField,e.childrenField,e.disabledField,e.getChildren))),v=Le(Y0,null),b=e.internalTreeSelect?v.dataTreeMate:p,{watchProps:g}=e,m=F([]);g!=null&&g.includes("defaultCheckedKeys")?At(()=>{m.value=e.defaultCheckedKeys}):m.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=St(y,m),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=a5(e),_=P(()=>x.value.checkedKeys),k=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=F([]);g!=null&&g.includes("defaultSelectedKeys")?At(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=St($,T),D=F([]),z=be=>{D.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};g!=null&&g.includes("defaultExpandedKeys")?At(()=>z(void 0)):At(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=St(A,D),j=P(()=>p.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:W}=Kle({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=F(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=St(re,V),ue=F(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=F(null),me=F(null),Oe=F(null),_e=F(null),ve=F(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});it(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const U=()=>{H=!0,Rt(()=>{H=!1})};let Y;it(xe(e,"pattern"),(be,Fe)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Je,highlightKeySet:at}=Vle(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=at,U(),ne(Je,fe(Je),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(U(),ne(Y,fe(Y),{node:null,action:"filter"}));else{Fe.length||(Y=L.value);const{expandedKeys:Je}=h.value;Je!==void 0&&(U(),ne(Je,fe(Je),{node:null,action:"filter"}))}});function ce(be){return Gle(this,void 0,void 0,function*(){const{onLoad:Fe}=e;if(!Fe)return yield Promise.resolve();const{value:Je}=ue;if(!Je.has(be.key)){Je.add(be.key);try{(yield Fe(be.rawNode))===!1&&X()}catch(at){console.error(at),X()}Je.delete(be.key)}})}At(()=>{var be;const{value:Fe}=p;if(!Fe)return;const{getNode:Je}=Fe;(be=L.value)===null||be===void 0||be.forEach(at=>{const ct=Je(at);ct&&!ct.shallowLoaded&&ce(ct)})});const G=F(!1),B=F([]);it(de,(be,Fe)=>{if(!e.animated||H){Rt(pe);return}const Je=new Set(Fe);let at=null,ct=null;for(const Pt of be)if(!Je.has(Pt)){if(at!==null)return;at=Pt}const Gt=new Set(be);for(const Pt of Fe)if(!Gt.has(Pt)){if(ct!==null)return;ct=Pt}if(at===null&&ct===null)return;const{virtualScroll:Kt}=e,Re=(Kt?s.value.listElRef:a.value).offsetHeight,Ge=Math.ceil(Re/kd)+1;let st;if(at!==null&&(st=Fe),ct!==null&&(st===void 0?st=be:st=st.filter(Pt=>Pt!==ct)),G.value=!0,B.value=p.value.getFlattenedNodes(st),at!==null){const Pt=B.value.findIndex(qt=>qt.key===at);if(~Pt){const qt=B.value[Pt].children;if(qt){const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"expand",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}}if(ct!==null){const Pt=B.value.findIndex(qt=>qt.key===ct);if(~Pt){const qt=B.value[Pt].children;if(!qt)return;G.value=!0;const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"collapse",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}});const N=P(()=>F2(j.value)),te=P(()=>G.value?B.value:j.value);function pe(){const{value:be}=l;be&&be.sync()}function Z(){G.value=!1,e.virtualScroll&&Rt(pe)}function fe(be){const{getNode:Fe}=b.value;return be.map(Je=>{var at;return((at=Fe(Je))===null||at===void 0?void 0:at.rawNode)||null})}function ne(be,Fe,Je){const{"onUpdate:expandedKeys":at,onUpdateExpandedKeys:ct}=e;D.value=be,at&&he(at,be,Fe,Je),ct&&he(ct,be,Fe,Je)}function ge(be,Fe,Je){const{"onUpdate:checkedKeys":at,onUpdateCheckedKeys:ct}=e;m.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function Pe(be,Fe){const{"onUpdate:indeterminateKeys":Je,onUpdateIndeterminateKeys:at}=e;Je&&he(Je,be,Fe),at&&he(at,be,Fe)}function Ae(be,Fe,Je){const{"onUpdate:selectedKeys":at,onUpdateSelectedKeys:ct}=e;T.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function qe(be){const{onDragenter:Fe}=e;Fe&&he(Fe,be)}function Ye(be){const{onDragleave:Fe}=e;Fe&&he(Fe,be)}function ft(be){const{onDragend:Fe}=e;Fe&&he(Fe,be)}function ht(be){const{onDragstart:Fe}=e;Fe&&he(Fe,be)}function vt(be){const{onDragover:Fe}=e;Fe&&he(Fe,be)}function Ve(be){const{onDrop:Fe}=e;Fe&&he(Fe,be)}function Xe(){We(),Ke()}function We(){we.value=null}function Ke(){ve.value=0,me.value=null,Oe.value=null,_e.value=null,X()}function X(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,Fe){if(e.disabled||vi(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Je=Fe?"check":"uncheck",{checkedKeys:at,indeterminateKeys:ct}=b.value[Je](be.key,_.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(at,fe(at),{node:be.rawNode,action:Je}),Pe(ct,fe(ct))}function ke(be){if(e.disabled)return;const{key:Fe}=be,{value:Je}=L,at=Je.findIndex(ct=>ct===Fe);if(~at){const ct=Array.from(Je);ct.splice(at,1),ne(ct,fe(ct),{node:be.rawNode,action:"collapse"})}else{const ct=p.value.getNode(Fe);if(!ct||ct.isLeaf)return;let Gt;if(e.accordion){const Kt=new Set(be.siblings.map(({key:Re})=>Re));Gt=Je.filter(Re=>!Kt.has(Re)),Gt.push(Fe)}else Gt=Je.concat(Fe);ne(Gt,fe(Gt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||G.value||ke(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Fe,indeterminateKeys:Je}}=x;e.multiple?q(be,!(Fe.includes(be.key)||Je.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const Fe=Array.from(R.value),Je=Fe.findIndex(at=>at===be.key);~Je?e.cancelable&&Fe.splice(Je,1):~Je||Fe.push(be.key),Ae(Fe,fe(Fe),{node:be.rawNode,action:~Je?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const Fe=()=>{if(Q!==be.key)return;const{value:Je}=Oe;if(Je&&Je.key===be.key&&!L.value.includes(be.key)){const at=L.value.concat(be.key);ne(at,fe(at),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{Fe()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{Fe()})},1e3)}function ze({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(oe({event:be,node:Fe},!1),qe({event:be,node:Fe.rawNode}))}function ie({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||Ye({event:be,node:Fe.rawNode})}function Te(be){be.target===be.currentTarget&&Ke()}function se({event:be,node:Fe}){Xe(),!(!e.draggable||e.disabled||vi(Fe,e.disabledField))&&ft({event:be,node:Fe.rawNode})}function $e({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(Ce=be.clientX,we.value=Fe,ht({event:be,node:Fe.rawNode}))}function oe({event:be,node:Fe},Je=!0){var at;if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:ct}=we;if(!ct)return;const{allowDrop:Gt,indent:Kt}=e;Je&&vt({event:be,node:Fe.rawNode});const Re=be.currentTarget,{height:Ge,top:st}=Re.getBoundingClientRect(),Pt=be.clientY-st;let qt;Gt({node:Fe.rawNode,dropPosition:"inside",phase:"drag"})?Pt<=8?qt="before":Pt>=Ge-8?qt="after":qt="inside":Pt<=Ge/2?qt="before":qt="after";const{value:Qr}=N;let Nt,fn;const Ao=Qr(Fe.key);if(Ao===null){Ke();return}let ai=!1;qt==="inside"?(Nt=Fe,fn="inside"):qt==="before"?Fe.isFirstChild?(Nt=Fe,fn="before"):(Nt=j.value[Ao-1],fn="after"):(Nt=Fe,fn="after"),!Nt.isLeaf&&L.value.includes(Nt.key)&&(ai=!0,fn==="after"&&(Nt=j.value[Ao+1],Nt?fn="before":(Nt=Fe,fn="inside")));const li=Nt;if(Oe.value=li,!ai&&ct.isLastChild&&ct.key===Nt.key&&(fn="after"),fn==="after"){let si=Ce-be.clientX,qi=0;for(;si>=Kt/2&&Nt.parent!==null&&Nt.isLastChild&&qi<1;)si-=Kt,qi+=1,Nt=Nt.parent;ve.value=qi}else ve.value=0;if((ct.contains(Nt)||fn==="inside"&&((at=ct.parent)===null||at===void 0?void 0:at.key)===Nt.key)&&!(ct.key===li.key&&ct.key===Nt.key)){Ke();return}if(!Gt({node:Nt.rawNode,dropPosition:fn,phase:"drag"})){Ke();return}if(ct.key===Nt.key)X();else if(Q!==Nt.key)if(fn==="inside"){if(e.expandOnDragenter){if(ae(Nt),!Nt.shallowLoaded&&Q!==Nt.key){Xe();return}}else if(!Nt.shallowLoaded){Xe();return}}else X();else fn!=="inside"&&X();_e.value=fn,me.value=Nt}function Ie({event:be,node:Fe,dropPosition:Je}){if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:at}=we,{value:ct}=me,{value:Gt}=_e;if(!(!at||!ct||!Gt)&&!!e.allowDrop({node:ct.rawNode,dropPosition:Gt,phase:"drag"})&&at.key!==ct.key){if(Gt==="before"){const Kt=at.getNext({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}if(Gt==="after"){const Kt=at.getPrev({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}Ve({event:be,node:ct.rawNode,dragNode:at.rawNode,dropPosition:Je}),Xe()}}function Ne(){pe()}function Qe(){pe()}function Ue(be){var Fe;if(e.virtualScroll||e.internalScrollable){const{value:Je}=l;if(!((Fe=Je==null?void 0:Je.containerRef)===null||Fe===void 0)&&Fe.contains(be.relatedTarget))return;E.value=null}else{const{value:Je}=a;if(Je!=null&&Je.contains(be.relatedTarget))return;E.value=null}}it(E,be=>{var Fe,Je;if(be!==null){if(e.virtualScroll)(Fe=s.value)===null||Fe===void 0||Fe.scrollTo({key:be});else if(e.internalScrollable){const{value:at}=l;if(at===null)return;const ct=(Je=at.contentRef)===null||Je===void 0?void 0:Je.querySelector(`[data-key="${N_(be)}"]`);if(!ct)return;at.scrollTo({el:ct})}}}),ot(Oc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:_,displayedIndeterminateKeysRef:k,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:_e,droppingOffsetLevelRef:ve,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Ie,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var Fe;(Fe=s.value)===null||Fe===void 0||Fe.scrollTo(be)}const De={handleKeydown:W,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ze=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:Fe,nodeBorderRadius:Je,nodeColorHover:at,nodeColorPressed:ct,nodeColorActive:Gt,arrowColor:Kt,loadingColor:Re,nodeTextColor:Ge,nodeTextColorDisabled:st,dropMarkColor:Pt}}=i.value;return{"--n-arrow-color":Kt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":Fe,"--n-node-border-radius":Je,"--n-node-color-active":Gt,"--n-node-color-hover":at,"--n-node-color-pressed":ct,"--n-node-text-color":Ge,"--n-node-text-color-disabled":st,"--n-drop-mark-color":Pt}}),bt=n?et("tree",void 0,Ze,e):void 0;return Object.assign(Object.assign({},De),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:G,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Qe,cssVars:n?void 0:Ze,themeClass:bt==null?void 0:bt.themeClass,onRender:bt==null?void 0:bt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,p=s&&!l,v=p?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],g=y=>"__motion"in y?u(qle,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(s5,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=Pi(C||"0");return u(Bf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(qo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:kd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:_})=>g(_)})}})}const{internalScrollable:m}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),m?u(Bf,{class:b,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(g))}):u("div",{class:b,tabindex:v,ref:"selfElRef",style:this.cssVars,onKeydown:p?d:void 0,onFocusout:p?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(g):gt(this.$slots.empty,()=>[u(Ui,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function HS(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function jS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Xle=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),Dn()])]),h5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Ht.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),d5),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Zle=J({name:"TreeSelect",props:h5,setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=je(e),{localeRef:s}=Cn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:p,nTriggerFormFocus:v,nTriggerFormInput:b}=Sn(e),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=F(e.defaultShow),x=xe(e,"show"),w=St(x,C),_=F(""),k=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:ke}=e;return(Be,Ee)=>Be.length?Ee[ke].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>co(e.options,c5(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=F(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),D=P(()=>e.multiple&&e.cascade&&e.checkable),z=F(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=St(A,z),j=F(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),W=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:ke,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return ke?jS(ie,ze.getPath(ae).treeNodePath,Be,Ee):HS(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:ke,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(ke?jS($e,ze.getPath(se).treeNodePath,Be,Te):HS($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=We.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:ke,"onUpdate:show":Be}=e;ke&&he(ke,q),Be&&he(Be,q),C.value=q}function Ce(q,ke,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),g.value=q,b(),p()}function we(q,ke){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,ke),Ee&&he(Ee,q,ke)}function me(q,ke,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),z.value=q}function Oe(q){const{onFocus:ke}=e;ke&&ke(q),v()}function _e(q){ve();const{onBlur:ke}=e;ke&&ke(q),h()}function ve(){de(!1)}function Me(){d.value||(_.value="",de(!0),e.filterable&&ue())}function H(){_.value=""}function U(q){var ke;w.value&&(!((ke=n.value)===null||ke===void 0)&&ke.$el.contains(vr(q))||ve())}function Y(){d.value||(w.value?e.filterable||ve():Me())}function ce(q){const{value:{getNode:ke}}=T;return q.map(Be=>{var Ee;return((Ee=ke(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function G(q,ke,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(_.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),ve(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!1,_e(q))}function pe(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,_e(q))}function fe(q){q.stopPropagation();const{multiple:ke}=e;!ke&&e.filterable&&ve(),ke?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:ke}=y;if(Array.isArray(ke)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(ke,{cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:ke}=q.target;_.value=ke}function Pe(q){const{value:ke}=r;ke&&ke.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(ve(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Fa(q),ve(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function qe(){ve(),ee()}function Ye(q){Zn(q,"action")||q.preventDefault()}const ft=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});ot(Y0,{pendingNodeKeyRef:R,dataTreeMate:T});function ht(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}ph(o,ht);const vt=a5(e),Ve=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:vt.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=Ve.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=Ve.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},We=Se("TreeSelect","-tree-select",Xle,lie,e,i),Ke=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:ke,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=We.value;return{"--n-menu-box-shadow":ke,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),X=l?et("tree-select",void 0,Ke,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Ht(e),isMounted:Hn(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:W,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:_,pendingNodeKey:R,mergedCascade:D,mergedFilter:k,selectionRenderTag:ft,handleTriggerOrMenuResize:ht,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:U,handleUpdateCheckedKeys:G,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:pe,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:qe,handleMenuMousedown:Ye,mergedTheme:We,cssVars:l?void 0:Ke,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Or,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),un(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(f5,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},gt(n.empty,()=>[u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),kt(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Fo,{onFocus:this.handleTabOut})),[[gr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Qle=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),I("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[I("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),ua=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Wl=e=>J({name:`H${e}`,props:ua,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(t),o=Se("Typography","-h",Qle,Ki,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:p,[ye("headerBarWidth",e)]:v,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":p,"--n-bar-color":b,"--n-bar-width":v,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?et(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),Jle=Wl("1"),ese=Wl("2"),tse=Wl("3"),nse=Wl("4"),rse=Wl("5"),ose=Wl("6"),ise=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),p5=Object.assign({},Se.props),ase=J({name:"A",props:p5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-a",ise,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?et("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),lse=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),v5=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),sse=J({name:"P",props:v5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-p",lse,Ki,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:p}}),i=n?et("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),cse=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),I("align-text",{marginLeft:"-16px"})]),g5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),dse=J({name:"Blockquote",props:g5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-blockquote",cse,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?et("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),use=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),fse=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-hr",use,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?et("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),VS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),WS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],m5=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[I("align-text",{paddingLeft:0}),VS,WS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[I("align-text",{paddingLeft:0}),VS,WS])]),b5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),hse=J({name:"Ul",props:b5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),y5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pse=J({name:"Ol",props:y5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),vse=J({name:"Li",render(){return u("li",null,this.$slots)}}),gse=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),I("italic",{fontStyle:"italic"}),I("underline",{textDecoration:"underline"}),I("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),x5=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),mse=J({name:"Text",props:x5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-text",gse,Ki,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:p,codeColor:v,codeBorder:b,[s]:g}}=r.value;return{"--n-bezier":f,"--n-text-color":g,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":p,"--n-code-text-color":h,"--n-code-color":v,"--n-code-border":b}}),i=n?et("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ii(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Ul="n-upload",w5="__UPLOAD_DRAGGER__",C5=J({name:"UploadDragger",[w5]:!0,setup(e,{slots:t}){const n=Le(Ul,null);return n||Nn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var S5=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const k5=e=>e.includes("image/"),US=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},KS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,_5=e=>{if(e.type)return k5(e.type);const t=US(e.name||"");if(KS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=US(n);return!!(/^data:image\//.test(n)||KS.test(r))};function bse(e){return S5(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!k5(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const yse=lr&&window.FileReader&&window.File;function xse(e){return e.isDirectory}function wse(e){return e.isFile}function Cse(e,t){return S5(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&xse(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else wse(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function ic(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function Sse(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const kse=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},G0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,p=P(()=>a.value==="image-card");function v(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?Cse(Array.from(w).map(_=>_.webkitGetAsEntry()),f.value).then(_=>{d(_)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:v,handleDrop:y,handleDragOver:b,handleDragEnter:g,handleDragLeave:m}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,p.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:v,onDrop:y,onDragover:b,onDragenter:g,onDragleave:m},p.value?u(C5,null,{default:()=>gt(t.default,()=>[u(dt,{clsPrefix:x},{default:()=>u(Dl,null)})])}):t)}}}),_se=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Ul).mergedThemeRef}},render(){return u(Io,null,{default:()=>this.show?u(Lz,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Rse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Pse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var $se=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const _d={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Tse=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Ul),n=F(null),r=F(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=lt(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:_}=e;return["finished"].includes(w)&&f.value&&_==="image-card"});function p(){t.submit(e.file.id)}function v(w){w.preventDefault();const{file:_}=e;["finished","pending","error"].includes(_.status)?g(_):["uploading"].includes(_.status)?y(_):Qn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),m(e.file)}function g(w){const{xhrMap:_,doChange:k,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const D=Object.assign({},w,{status:"removed"});_.delete(w.id),k(D,void 0,{remove:!0})})}function m(w){const{onDownloadRef:{value:_}}=t;Promise.resolve(_?_(Object.assign({},w)):!0).then(k=>{k!==!1&&kse(w.url,w.name)})}function y(w){const{xhrMap:_}=t,k=_.get(w.id);k==null||k.abort(),g(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:_}=n;if(!_)return;_.click()}}const x=()=>$se(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return At(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:v,handleDownloadClick:b,handleRetryClick:p,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):_5(r)?u(dt,{clsPrefix:e},{default:()=>Rse}):u(dt,{clsPrefix:e},{default:()=>Pse})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(QO,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(dt,{clsPrefix:e},{default:()=>u(OK,null)}));const s=u(_se,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Tt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(O2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Tt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:_d,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(Do,null,{default:()=>this.showRemoveButton?u(dt,{clsPrefix:e,key:"trash"},{default:()=>u(MK,null)}):u(dt,{clsPrefix:e,key:"cancel"},{default:()=>u(EK,null)})})}),this.showRetryButton&&!this.disabled&&u(Tt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(jK,null)})}),this.showDownloadButton?u(Tt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(DK,null)})}):null)),!a&&s)}}),R5=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,p=P(()=>i.value==="image-card"),v=()=>a.value.map(g=>u(Tse,{clsPrefix:o.value,key:g.id,file:g,listType:i.value})),b=()=>p.value?u(XO,Object.assign({},h.value),{default:v}):u(Io,{group:!0},{default:v});return()=>{const{value:g}=o,{value:m}=r;return u("div",{class:[`${g}-upload-file-list`,p.value&&`${g}-upload-file-list--grid`,m?c==null?void 0:c.value:void 0],style:[m&&s?s.value:"",l.value]},b(),f.value&&!d.value&&p.value&&u(G0,null,t))}}}),Ose=O([S("upload","width: 100%;",[I("dragger-inside",[S("upload-trigger",` - display: block; - `)]),I("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),I("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),I("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),I("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[Go(),S("progress",[Go({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),I("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),I("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),I("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),I("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),I("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),I("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[On()])])]),I("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),I("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var qS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function zse(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=ic(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=ic(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Mse(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=ic(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=ic(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Dse(e,t,n){const r=zse(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function P5(e,t){return typeof e=="function"?e({file:t}):e||{}}function Ise(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Fse(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Ase(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Fse(d,s,n),d.append(t,n.file),Dse(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Ise(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const $5=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>yse?_5(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bse=J({name:"Upload",props:$5,setup(e){e.abstract&&e.listType==="image-card"&&Nn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Upload","-upload",Ose,hie,e,t),o=Sn(e),i=P(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),a=F(e.defaultFileList),l=xe(e,"fileList"),s=F(null),c={value:!1},d=F(!1),f=new Map,h=St(l,a),p=P(()=>h.value.map(ic));function v(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(D=>({file:D,entry:null,source:"input"})):null,$),R.value=""}function g($){const{"onUpdate:fileList":R,onUpdateFileList:D}=e;R&&he(R,$),D&&he(D,$),a.value=$}const m=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:D}=e;$=m.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?Sse(j.name,j.type,A):!0),z&&($=$.slice(0,z-p.value.length));const L=Tr();Promise.all($.map(({file:j,entry:E})=>qS(this,void 0,void 0,function*(){var W;const K={id:Tr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(W=E==null?void 0:E.fullPath)!==null&&W!==void 0?W:`/${j.webkitRelativePath||j.name}`};return!D||(yield D({file:K,fileList:p.value}))!==!1?K:null}))).then(j=>qS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(W=>{E=E.then(Rt).then(()=>{W&&x(W,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:D,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?p.value.filter(K=>K.id===$):p.value,W=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&W)&&(e.customRequest?Mse({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:D,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Ase({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:D,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,D={append:!1,remove:!1})=>{const{append:z,remove:A}=D,L=Array.from(p.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),g(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:D}=e;return D?(R=D($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?bse($.file):""}const _=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:D,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:W,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":D,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":W,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),k=n?et("upload",void 0,_,e):void 0;ot(Ul,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:v,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:_,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:m,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[w5]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(Ot,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(cc,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(G0,null,o),this.showFileList&&u(R5,null,o)))}}),Ese=O([S("watermark-container",` - position: relative; - `,[mt("selectable",` - user-select: none; - -webkit-user-select: none; - `),I("global-rotate",` - overflow: hidden; - `),I("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[I("fullscreen",` - position: fixed; - `),I("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Lse(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const T5=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Nse=J({name:"Watermark",props:T5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Watermark","-watermark",Ese,yie,e,n),o=F(""),i=lr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=F(!1);return fh(()=>l.value=!0),At(()=>{if(!i)return;l.value;const s=Lse(a),{xGap:c,yGap:d,width:f,height:h,yOffset:p,xOffset:v,rotate:b,image:g,content:m,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:_,fontFamily:k,fontSize:T,lineHeight:$,debug:R}=e,D=(c+f)*s,z=(d+h)*s,A=v*s,L=p*s;if(i.width=D,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),g){const W=new Image;W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=g,W.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(W,A,L,(e.imageWidth||(Q?W.width*Q/W.height:W.width))*s,(e.imageHeight||(K?W.height*K/W.width:W.height))*s),o.value=i.toDataURL()}}else m&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${_} ${w} ${T*s}px/${$*s}px ${k||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(m,A,L+$*s),o.value=i.toDataURL())}else LA("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,p=c!==0&&d,v="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${v} + ${e.width/2}px) calc(${v} + ${e.height/2}px), ${v} ${v}`:v,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Hse=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),jse={message:Tz,notification:Dz,loadingBar:pz,dialog:VT};function Vse({providersAndProps:e,configProviderProps:t}){let r=qk(()=>u(x$,ov(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,ov(c),{default:()=>u(Hse,{onSetup:()=>o[l]=jse[l]()})}))}));const o={app:r};let i;return lr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Qn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Wse(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:$z,props:n});break;case"notification":a.push({type:s,Provider:Mz,props:o});break;case"dialog":a.push({type:s,Provider:jT,props:r});break;case"loadingBar":a.push({type:s,Provider:hz,props:i});break}}),Vse({providersAndProps:a,configProviderProps:t})}const O5={value:String,katex:Object,katexOptions:Object},Use=J({name:"Equation",props:O5,setup(e){const t=Le(Ur),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),YS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:P2,affixProps:wh,NAlert:yY,alertProps:aP,NAnchor:OY,anchorProps:cP,NAnchorLink:RY,anchorLinkProps:sP,NAutoComplete:XY,autoCompleteProps:xP,NAvatar:rm,avatarProps:RP,NAvatarGroup:aG,avatarGroupProps:$P,NBackTop:pG,backTopProps:OP,NBadge:wG,badgeProps:zP,NBreadcrumb:$G,breadcrumbProps:IP,NBreadcrumbItem:zG,breadcrumbItemProps:FP,NButton:Tt,NxButton:lo,buttonProps:EP,NButtonGroup:g0,buttonGroupProps:HP,NCalendar:qG,calendarProps:VP,NColorPicker:CX,colorPickerProps:KP,NCard:ZP,cardProps:XP,NCarousel:KX,carouselProps:t$,NCarouselItem:e$,NCascader:cZ,cascaderProps:s$,NCheckbox:ii,checkboxProps:l$,NCheckboxGroup:a$,checkboxGroupProps:i$,NCode:f$,codeProps:u$,NCollapse:yZ,collapseProps:p$,NCollapseItem:wZ,collapseItemProps:g$,NCollapseTransition:PZ,collapseTransitionProps:b$,NConfigProvider:x$,configProviderProps:y$,NCountdown:$Z,countdownProps:w$,NNumberAnimation:zZ,numberAnimationProps:C$,NDataTable:lJ,dataTableProps:K$,NDatePicker:vee,datePickerProps:RT,NDescriptions:See,descriptionsProps:TT,NDescriptionsItem:kee,descriptionsItemProps:OT,NDialog:I0,dialogProps:Sc,NDialogProvider:jT,dialogProviderProps:HT,useDialog:VT,useDialogReactiveList:Lee,NDivider:Uee,dividerProps:UT,NDrawer:dte,drawerProps:qT,NDrawerContent:ute,drawerContentProps:YT,NDropdown:$0,dropdownProps:sT,NDynamicInput:xte,dynamicInputProps:XT,NDynamicTags:Ote,dynamicTagsProps:nO,NElement:sS,elementProps:rO,NEl:sS,NEllipsis:_0,ellipsisProps:U$,NEmpty:Ui,emptyProps:H2,NForm:Hte,formProps:lO,NFormItem:B0,formItemProps:Rc,NFormItemGridItem:bS,NFormItemGi:bS,formItemGiProps:jm,formItemGridItemProps:jm,NFormItemCol:vO,NFormItemRow:Mne,NGlobalStyle:Dne,NGradientText:Nne,gradientTextProps:gO,NGrid:jne,gridProps:bO,NGridItem:Hm,gridItemProps:oc,NGi:Hm,giProps:oc,NIcon:oT,iconProps:rT,NIconWrapper:Yne,iconWrapperProps:xO,NImage:QO,imageProps:ZO,NImageGroup:XO,imageGroupProps:GO,NInput:En,inputProps:pP,NInputGroup:gP,inputGroupProps:vP,NInputGroupLabel:VY,inputGroupLabelProps:mP,NInputNumber:Oie,inputNumberProps:JO,NLayout:Mie,layoutProps:Vm,layoutContentProps:Vm,NLayoutContent:Die,NLayoutHeader:Fie,layoutHeaderProps:rz,NLayoutFooter:Bie,layoutFooterProps:oz,NLayoutSider:Hie,layoutSiderProps:iz,NRow:hO,rowProps:zh,NCol:pO,colProps:Mh,NLegacyTransfer:Xie,legacyTransferProps:lz,NList:Qie,listProps:sz,NListItem:Jie,NLoadingBarProvider:hz,loadingBarProviderProps:fz,useLoadingBar:pz,NLog:iae,logProps:gz,NMenu:vae,menuProps:Cz,NMention:bae,mentionProps:Sz,NMessageProvider:$z,messageProviderProps:Pz,useMessage:Tz,NModal:NT,modalProps:LT,NNotificationProvider:Mz,notificationProviderProps:zz,useNotification:Dz,NPageHeader:Mae,pageHeaderProps:Iz,NPagination:A$,paginationProps:F$,NPopconfirm:Fae,popconfirmProps:Bz,NPopover:el,popoverProps:G2,NPopselect:R$,popselectProps:_$,NProgress:Lz,progressProps:Ez,NRadio:R0,radioProps:Ph,NRadioGroup:X$,radioGroupProps:G$,NRadioButton:vQ,radioButtonProps:pQ,NRate:Wae,rateProps:Nz,NResult:Zae,resultProps:Hz,NScrollbar:Jae,scrollbarProps:jz,NSelect:z$,selectProps:O$,NSkeleton:ole,skeletonProps:Vz,NSlider:lle,sliderProps:Wz,NSpace:tO,spaceProps:eO,NSpin:dle,spinProps:Uz,NStatistic:fle,statisticProps:Kz,NSteps:gle,stepsProps:qz,NStep:mle,stepProps:Gz,NSwitch:yle,switchProps:Xz,NTable:wle,tableProps:Zz,NTh:Cle,NTr:Sle,NTd:kle,NThead:_le,NTbody:Rle,NTabs:Tle,tabsProps:Jz,NTabPane:Ple,tabPaneProps:q0,NTab:qf,tabProps:Qz,NTag:zs,tagProps:eP,NThing:zle,thingProps:e5,NTime:Mle,timeProps:t5,NTimePicker:Kf,timePickerProps:CT,NTimeline:Ile,timelineProps:n5,NTimelineItem:Fle,timelineItemProps:o5,NTooltip:Rh,tooltipProps:W$,NTransfer:Ele,transferProps:i5,NTree:f5,treeProps:u5,NTreeSelect:Zle,treeSelectProps:h5,NH1:Jle,NH2:ese,NH3:tse,NH4:nse,NH5:rse,NH6:ose,h1Props:ua,h2Props:ua,h3Props:ua,h4Props:ua,h5Props:ua,h6Props:ua,NA:ase,aProps:p5,NP:sse,pProps:v5,NBlockquote:dse,blockquoteProps:g5,NHr:fse,NUl:hse,ulProps:b5,NOl:pse,olProps:y5,NLi:vse,NText:mse,textProps:x5,NUpload:Bse,uploadProps:$5,NUploadDragger:C5,NUploadTrigger:G0,NUploadFileList:R5,NWatermark:Nse,watermarkProps:T5,createDiscreteApi:Wse,NEquation:Use,equationProps:O5},Symbol.toStringTag,{value:"Module"})),Kse="2.34.3";function qse({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Kse,componentPrefix:e,install:o}}const z5=qse({components:Object.keys(YS).map(e=>YS[e])}),Yse=z5;z5.install;const Gse=()=>({}),Xse={name:"Equation",common:tt,self:Gse},Zse=Xse,Qse={name:"dark",common:tt,Alert:fY,Anchor:kY,AutoComplete:qY,Avatar:kP,AvatarGroup:iG,BackTop:sG,Badge:gG,Breadcrumb:RG,Button:wr,ButtonGroup:sre,Calendar:UG,Card:GP,Carousel:zX,Cascader:eZ,Checkbox:Vl,Code:c$,Collapse:mZ,CollapseTransition:RZ,ColorPicker:ZG,DataTable:aQ,DatePicker:vJ,Descriptions:xee,Dialog:DT,Divider:Vee,Drawer:Gee,Dropdown:k0,DynamicInput:hte,DynamicTags:Rte,Element:Mte,Empty:Za,Ellipsis:E$,Equation:Zse,Form:Ete,GradientText:Fne,Icon:TQ,IconWrapper:Kne,Image:Cie,Input:Zr,InputNumber:dre,LegacyTransfer:Vie,Layout:vre,List:wre,LoadingBar:Sre,Log:$re,Menu:Hre,Mention:Dre,Message:are,Modal:Dee,Notification:tre,PageHeader:Wre,Pagination:I$,Popconfirm:Gre,Popover:Ja,Popselect:S$,Progress:OO,Radio:H$,Rate:Jre,Result:loe,Row:wie,Scrollbar:yr,Select:T$,Skeleton:ele,Slider:coe,Space:QT,Spin:goe,Statistic:xoe,Steps:_oe,Switch:Poe,Table:Foe,Tabs:Noe,Tag:Z2,Thing:Woe,TimePicker:pT,Timeline:Koe,Tooltip:kh,Transfer:Zoe,Tree:WO,TreeSelect:oie,Typography:uie,Upload:vie,Watermark:mie},Jse=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};yo.register(VF,ZF,HF,Dd,bv,yv);const ece={ADJ:"Adjective",ADP:"Adposition",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Particle",VERB:"Verb"},tce=J({components:{Bar:_A},setup(){const e=F(Nx.split(/\r?\n/).at(0).split(",").at(0)),t=F(null),n=Nx.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(ece))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=ji([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return It(async()=>{await i(e.value),it(t,()=>{a()}),t.value="ADJ",it(e,async c=>{await i(c),a()})}),{darkTheme:Qse,chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),nce=oo("h1",null,"entityscrape",-1),rce=oo("p",null," This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS). ",-1),oce=oo("p",null,[Ar(" The Go package "),oo("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Ar(" was used for creating this experiment. You can create new ones with updating the "),oo("code",null,"source/entities.txt"),Ar(" file and run the CLI with the provided Visual Studio Code debug configuration. The experiments source code can be found at "),oo("a",{target:"_blank",href:"https://github.com/ndabAP/entityscrape"},"Github"),Ar(". ")],-1),ice={style:{height:"475px"}},ace=oo("small",null,[oo("b",null,"Data source"),Ar(": "),oo("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function lce(e,t,n,r,o,i){const a=Bc("n-select"),l=Bc("n-form-item"),s=Bc("Bar"),c=Bc("n-space");return Ik(),Fk(c,{vertical:""},{default:Pd(()=>[nce,rce,oce,An(l,{size:"small",label:"Entity"},{default:Pd(()=>[An(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),An(l,{size:"small",label:"Part of speech"},{default:Pd(()=>[An(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),oo("div",ice,[An(s,{data:e.chartData,options:{indexAxis:"y",maintainAspectRatio:!1,responsive:!0,scales:{x:{grid:{drawBorder:!1,display:!1}},y:{ticks:{font:{size:13,family:"v-sans, system-ui, -apple-system, BlinkMacSystemFont"}},grid:{display:!1}}}}},null,8,["data"])]),ace]),_:1})}const sce=Jse(tce,[["render",lce]]),M5=qk(sce);M5.use(Yse);M5.mount("#app")});export default cce(); diff --git a/docs/assets/index.34773a0b.js b/docs/assets/index.34773a0b.js deleted file mode 100644 index 9f333f4..0000000 --- a/docs/assets/index.34773a0b.js +++ /dev/null @@ -1,6855 +0,0 @@ -var fz=Object.defineProperty;var hz=(e,t,n)=>t in e?fz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(hz(e,typeof t!="symbol"?t+"":t,n),n);var qie=vz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function zm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Xs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(gz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Mm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},wz=()=>!1,Cz=/^on[^a-z]/,Df=e=>Cz.test(e),Im=e=>e.startsWith("onUpdate:"),En=Object.assign,Fm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Sz=Object.prototype.hasOwnProperty,Ht=(e,t)=>Sz.call(e,t),Rt=Array.isArray,is=e=>Af(e)==="[object Map]",_z=e=>Af(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Dm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",DS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),kz=Object.prototype.toString,Af=e=>kz.call(e),Rz=e=>Af(e).slice(8,-1),Pz=e=>Af(e)==="[object Object]",Am=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vd=zm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$z=/-(\w)/g,bo=Bf(e=>e.replace($z,(t,n)=>n?n.toUpperCase():"")),Tz=/\B([A-Z])/g,kl=Bf(e=>e.replace(Tz,"-$1").toLowerCase()),Ef=Bf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oh=Bf(e=>e?`on${Ef(e)}`:""),Cs=(e,t)=>!Object.is(e,t),zh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let D0;const Mz=()=>D0||(D0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Iz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},AS=e=>(e.w&xi)>0,BS=e=>(e.n&xi)>0,Az=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Am(n)&&l.push(a.get("length")):(l.push(a.get(da)),is(e)&&l.push(a.get(Vv)));break;case"delete":Rt(e)||(l.push(a.get(da)),is(e)&&l.push(a.get(Vv)));break;case"set":is(e)&&l.push(a.get(da));break}if(l.length===1)l[0]&&Uv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Uv(Bm(s))}}function Uv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&B0(r);for(const r of n)r.computed||B0(r)}function B0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ez(e,t){var n;return(n=hu.get(e))===null||n===void 0?void 0:n.get(t)}const Lz=zm("__proto__,__v_isRef,__isVue"),NS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dm)),Nz=Lm(),Hz=Lm(!1,!0),jz=Lm(!0),E0=Vz();function Vz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Rl();const r=zt(this)[t].apply(this,n);return Pl(),r}}),e}function Uz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Lm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?a5:WS:t?US:VS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(E0,o))return Reflect.get(E0,o,i);if(o==="hasOwnProperty")return Uz}const l=Reflect.get(r,o,i);return(Dm(o)?NS.has(o):Lz(o))||(e||dr(r,"get",o),t)?l:jn(l)?a&&Am(o)?l:l.value:vn(l)?e?yo(l):Mi(l):l}}const Wz=HS(),Kz=HS(!0);function HS(e=!1){return function(n,r,o,i){let a=n[r];if(gl(a)&&jn(a)&&!jn(o))return!1;if(!e&&(!vu(o)&&!gl(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&jn(a)&&!jn(o)))return a.value=o,!0;const l=Rt(n)&&Am(r)?Number(r)e,Lf=e=>Reflect.getPrototypeOf(e);function yc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=Lf(o),l=r?Nm:n?Vm:Ss;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function xc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function wc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",da),Reflect.get(e,"size",e)}function L0(e){e=zt(e);const t=zt(this);return Lf(t).has.call(t,e)||(t.add(e),Bo(t,"add",e,e)),this}function N0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=Lf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Cs(t,a)&&Bo(n,"set",e,t):Bo(n,"add",e,t),this}function H0(e){const t=zt(this),{has:n,get:r}=Lf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Bo(t,"delete",e,void 0),i}function j0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Bo(e,"clear",void 0,void 0),n}function Cc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?Nm:e?Vm:Ss;return!e&&dr(l,"iterate",da),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function Sc(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=is(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?Nm:t?Vm:Ss;return!t&&dr(i,"iterate",s?Vv:da),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Jo(e){return function(...t){return e==="delete"?!1:this}}function Qz(){const e={get(i){return yc(this,i)},get size(){return wc(this)},has:xc,add:L0,set:N0,delete:H0,clear:j0,forEach:Cc(!1,!1)},t={get(i){return yc(this,i,!1,!0)},get size(){return wc(this)},has:xc,add:L0,set:N0,delete:H0,clear:j0,forEach:Cc(!1,!0)},n={get(i){return yc(this,i,!0)},get size(){return wc(this,!0)},has(i){return xc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Cc(!0,!1)},r={get(i){return yc(this,i,!0,!0)},get size(){return wc(this,!0)},has(i){return xc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Cc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Sc(i,!1,!1),n[i]=Sc(i,!0,!1),t[i]=Sc(i,!1,!0),r[i]=Sc(i,!0,!0)}),[e,n,t,r]}const[Jz,e5,t5,n5]=Qz();function Hm(e,t){const n=t?e?n5:t5:e?e5:Jz;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const r5={get:Hm(!1,!1)},o5={get:Hm(!1,!0)},i5={get:Hm(!0,!1)},VS=new WeakMap,US=new WeakMap,WS=new WeakMap,a5=new WeakMap;function l5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function s5(e){return e.__v_skip||!Object.isExtensible(e)?0:l5(Rz(e))}function Mi(e){return gl(e)?e:jm(e,!1,jS,r5,VS)}function c5(e){return jm(e,!1,Zz,o5,US)}function yo(e){return jm(e,!0,Gz,i5,WS)}function jm(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=s5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ua(e){return gl(e)?ua(e.__v_raw):!!(e&&e.__v_isReactive)}function gl(e){return!!(e&&e.__v_isReadonly)}function vu(e){return!!(e&&e.__v_isShallow)}function fa(e){return ua(e)||gl(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function pu(e){return fu(e,"__v_skip",!0),e}const Ss=e=>vn(e)?Mi(e):e,Vm=e=>vn(e)?yo(e):e;function KS(e){hi&&Yr&&(e=zt(e),LS(e.dep||(e.dep=Bm())))}function qS(e,t){e=zt(e);const n=e.dep;n&&Uv(n)}function jn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return XS(e,!1)}function YS(e){return XS(e,!0)}function XS(e,t){return jn(e)?e:new d5(e,t)}class d5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:Ss(t)}get value(){return KS(this),this._value}set value(t){const n=this.__v_isShallow||vu(t)||gl(t);t=n?t:zt(t),Cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ss(t),qS(this))}}function Wv(e){return jn(e)?e.value:e}const u5={get:(e,t,n)=>Wv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return jn(o)&&!jn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function GS(e){return ua(e)?e:new Proxy(e,u5)}class f5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ez(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return jn(r)?r:new f5(e,t,n)}var ZS;class h5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ZS]=!1,this._dirty=!0,this.effect=new Em(t,()=>{this._dirty||(this._dirty=!0,qS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return KS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ZS="__v_isReadonly";function v5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new h5(r,o,i||!o,n)}function vi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Nf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=vi(e,t,n,r);return i&&DS(i)&&i.catch(a=>{Nf(a,t,n)}),i}const o=[];for(let i=0;i>>1;ks(Qn[r])uo&&Qn.splice(t,1)}function b5(e){Rt(e)?dl.push(...e):(!Io||!Io.includes(e,e.allowRecurse?ra+1:ra))&&dl.push(e),JS()}function V0(e,t=_s?uo+1:0){for(;tks(n)-ks(r)),ra=0;rae.id==null?1/0:e.id,y5=(e,t)=>{const n=ks(e)-ks(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function t_(e){Kv=!1,_s=!0,Qn.sort(y5);const t=Zr;try{for(uo=0;uoPn(v)?v.trim():v)),f&&(o=n.map(Oz))}let l,s=r[l=Oh(t)]||r[l=Oh(bo(t))];!s&&i&&(s=r[l=Oh(kl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function n_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=n_(c,t,!0);d&&(l=!0,En(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):En(a,i),vn(e)&&r.set(e,a),a)}function Hf(e,t){return!e||!Df(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,kl(t))||Ht(e,t))}let Vn=null,r_=null;function gu(e){const t=Vn;return Vn=e,r_=e&&e.type.__scopeId||null,t}function o_(e,t=Vn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ey(-1);const i=gu(t);let a;try{a=e(...o)}finally{gu(i),r._d&&ey(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=gu(e);try{if(n.shapeFlag&4){const x=o||r;m=so(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=so(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:w5(s)}}catch(x){cs.length=0,Nf(x,e,1),m=Un(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Im)&&(g=C5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,gu(y),m}const w5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Df(n))&&((t||(t={}))[n]=e[n]);return t},C5=(e,t)=>{const n={};for(const r in e)(!Im(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function S5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?U0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function R5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):b5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Vn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Km(e,null,t)}const _c={};function rt(e,t,n){return Km(e,t,n)}function Km(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Dz()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(jn(e)?(s=()=>e.value,c=vu(e)):ua(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ua(C)||vu(C)),s=()=>e.map(C=>{if(jn(C))return C.value;if(ua(C))return aa(C);if(Tt(C))return vi(C,l,2)})):Tt(e)?t?s=()=>vi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>aa(C())}let f,h=C=>{f=g.onStop=()=>{vi(C,l,4)}},v;if(Os)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(_c):_c;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Cs(x,p[w])):Cs(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===_c?void 0:d&&p[0]===_c?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>Wm(b));const g=new Em(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Fm(l.scope.effects,g)};return v&&v.push(y),y}function P5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?i_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;ml(this);const l=Km(o,i.bind(r),n);return a?ml(a):ha(),l}function i_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{aa(n,t)});else if(Pz(e))for(const n in e)aa(e[n],t);return e}function a_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],$5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Uo(),r=a_();let o;return()=>{const i=t.default&&qm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ih(a);const c=W0(a);if(!c)return Ih(a);const d=Rs(c,l,r,n);Ps(c,d);const f=n.subTree,h=f&&W0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!oa(c,h)||v)){const b=Rs(h,l,r,n);if(Ps(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ih(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=s_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},l_=$5;function s_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Rs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=s_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&oa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Rs(T,t,n,r)}};return _}function Ih(e){if(jf(e))return e=nr(e),e.children=null,e}function W0(e){return jf(e)?e.children?e.children[0]:void 0:e}function Ps(e,t){e.shapeFlag&6&&e.component?Ps(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,jf=e=>e.type.__isKeepAlive;function Ym(e,t){c_(e,"a",t)}function Gs(e,t){c_(e,"da",t)}function c_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Vf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)jf(o.parent.vnode)&&T5(r,t,n,o),o=o.parent}}function T5(e,t,n,r){const o=Vf(t,e,r,!0);Zs(()=>{Fm(r[t],o)},n)}function Vf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Rl(),ml(n);const l=Mr(t,n,e,a);return ha(),Pl(),l});return r?o.unshift(i):o.push(i),i}}const jo=e=>(t,n=wn)=>(!Os||e==="sp")&&Vf(e,(...r)=>t(...r),n),Vo=jo("bm"),Mt=jo("m"),Xm=jo("bu"),Gm=jo("u"),Dt=jo("bum"),Zs=jo("um"),O5=jo("sp"),z5=jo("rtg"),M5=jo("rtc");function I5(e,t=wn){Vf("ec",e,t)}function sn(e,t){const n=Vn;if(n===null)return e;const r=Kf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lTs(t)?!(t.type===xr||t.type===$t&&!u_(t.children)):!0)?e:null}const qv=e=>e?S_(e)?Kf(e)||e.proxy:qv(e.parent):null,ls=En(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qv(e.parent),$root:e=>qv(e.root),$emit:e=>e.emit,$options:e=>Qm(e),$forceUpdate:e=>e.f||(e.f=()=>Wm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>P5.bind(e)}),Dh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),B5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Dh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Yv&&(a[t]=0)}}const d=ls[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Dh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Dh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ls,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Yv=!0;function E5(e){const t=Qm(e),n=e.proxy,r=e.ctx;Yv=!1,t.beforeCreate&&q0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&L5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Mi(U))}if(Yv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)f_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&q0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Vo,f),E(Mt,h),E(Xm,v),E(Gm,p),E(Ym,b),E(Gs,m),E(I5,T),E(M5,k),E(z5,_),E(Dt,y),E(Zs,x),E(O5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function L5(e,t,n=Zr,r=!1){Rt(e)&&(e=Xv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),jn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function q0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function f_(e,t,n,r){const o=r.includes(".")?i_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>f_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function Qm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>mu(s,c,a,!0)),mu(s,t,a)),vn(t)&&i.set(t,s),s}function mu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&mu(e,i,n,!0),o&&o.forEach(a=>mu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=N5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const N5={data:Y0,props:Qi,emits:Qi,methods:Qi,computed:Qi,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:Qi,directives:Qi,watch:j5,provide:Y0,inject:H5};function Y0(e,t){return t?e?function(){return En(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function H5(e,t){return Qi(Xv(e),Xv(t))}function Xv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=v_(f,t,!0);En(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,cl),cl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function X0(e){return e[0]!=="$"}function G0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Z0(e,t){return G0(e)===G0(t)}function Q0(e,t){return Rt(t)?t.findIndex(n=>Z0(n,e)):Tt(t)&&Z0(t,e)?0:-1}const p_=e=>e[0]==="_"||e==="$stable",Jm=e=>Rt(e)?e.map(so):[so(e)],W5=(e,t,n)=>{if(t._n)return t;const r=o_((...o)=>Jm(t(...o)),n);return r._c=!1,r},g_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(p_(o))continue;const i=e[o];if(Tt(i))t[o]=W5(o,i,r);else if(i!=null){const a=Jm(i);t[o]=()=>a}}},m_=(e,t)=>{const n=Jm(t);e.slots.default=()=>n},K5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),fu(t,"_",n)):g_(t,e.slots={})}else e.slots={},t&&m_(e,t);fu(e.slots,Wf,1)},q5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(En(o,t),!n&&l===1&&delete o._):(i=!t.$stable,g_(t,o)),a=t}else t&&(m_(e,t),a={default:1});if(i)for(const l in o)!p_(l)&&!(l in a)&&delete o[l]};function b_(){return{app:null,config:{isNativeTag:wz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Y5=0;function X5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=b_(),a=new Set;let l=!1;const s=i.app={_uid:Y5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:k_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=Un(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Kf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Zv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Zv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(as(r)&&!o)return;const i=r.shapeFlag&4?Kf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):jn(c)&&(c.value=null)),Tt(s))vi(s,l,12,[a,d]);else{const h=Pn(s),v=jn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Fm(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=R5;function G5(e){return Z5(e)}function Z5(e,t){const n=Mz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!oa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case Uf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Ah:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Zv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Li(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!vd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&no(Z,ce,H)}Ae&&Li(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&no(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Li(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&Ni(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&no(Pe,Y,W,H),fe&&Li(W,H,Y,"beforeUpdate"),Y&&Ni(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&no(Pe,Y,W,H),fe&&Li(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!vd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(vd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&eb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(jf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=Un(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(S5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,m5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;Ni(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&zh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&no(qe,Pe,fe,Ae),Ni(H,!0);const ct=Mh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&_5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>no(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=as(W);if(Ni(H,!1),Pe&&zh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&no(fe,Ke,W),Ni(H,!0),ne&&Me){const ct=()=>{H.subTree=Mh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Mh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>no(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&as(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Em(te,()=>Wm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,Ni(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,U5(H,W.props,ce,Y),q5(H,W.children,Y),Rl(),V0(),Pl()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||cl,W=W||cl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?ai(W[Z]):so(W[Z]);if(oa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?ai(W[ge]):so(W[ge]);if(oa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?ai(W[Z]):so(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&oa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?Q5(Xe):cl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Zv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!as(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&no(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Li(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&no(Ke,W,H),Pe&&Li(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Ah){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&zh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),V0(),e_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:X5(Oe,pe)}}function Ni({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function eb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const J5=e=>e.__isTeleport,ss=e=>e&&(e.disabled||e.disabled===""),J0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Qv=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},e3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=ss(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=Qv(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||J0(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=ss(e.props),$=T?n:k,R=T?w:_;if(a=a||J0(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),eb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||kc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=Qv(t.props,p);I&&kc(t,I,null,c,0)}else T&&kc(t,k,_,c,1)}y_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ss(h))&&(i(c),l&16))for(let v=0;v0?Xr||cl:null,n3(),$s>0&&Xr&&Xr.push(e),e}function w_(e,t,n,r,o){return r3(Un(e,t,n,r,o,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function oa(e,t){return e.type===t.type&&e.key===t.key}const Wf="__vInternal",C_=({key:e})=>e!=null?e:null,pd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||jn(e)||Tt(e)?{i:Vn,r:e,k:t,f:!!n}:e:null;function o3(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C_(t),ref:t&&pd(t),scopeId:r_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Vn};return l?(tb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),$s>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const Un=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===F5)&&(e=xr),Ts(e)){const l=nr(e,t,!0);return n&&tb(l,n),$s>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Mm(l)),vn(s)&&(fa(s)&&!Rt(s)&&(s=En({},s)),t.style=Xs(s))}const a=Pn(e)?1:k5(e)?128:J5(e)?64:vn(e)?4:Tt(e)?2:0;return o3(e,t,n,r,o,a,i,!0)}function a3(e){return e?fa(e)||Wf in e?En({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&C_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(pd(t)):[o,pd(t)]:pd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wa(e=" ",t=0){return Un(Uf,null,e,t)}function so(e){return e==null||typeof e=="boolean"?Un(xr):Rt(e)?Un($t,null,e.slice()):typeof e=="object"?ai(e):Un(Uf,null,String(e))}function ai(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function tb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),tb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Wf in t)?t._ctx=Vn:o===3&&Vn&&(Vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Vn},n=32):(t=String(t),r&64?(n=16,t=[wa(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Vn,ml=e=>{wn=e,e.scope.on()},ha=()=>{wn&&wn.scope.off(),wn=null};function S_(e){return e.vnode.shapeFlag&4}let Os=!1;function d3(e,t=!1){Os=t;const{props:n,children:r}=e.vnode,o=S_(e);V5(e,n,o,t),K5(e,r);const i=o?u3(e,t):void 0;return Os=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pu(new Proxy(e.ctx,B5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;ml(e),Rl();const i=vi(r,e,0,[e.props,o]);if(Pl(),ha(),DS(i)){if(i.then(ha,ha),t)return i.then(a=>{ty(e,a,t)}).catch(a=>{Nf(a,e,0)});e.asyncDep=i}else ty(e,i,t)}else __(e,t)}function ty(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=GS(t)),__(e,n)}let ny;function __(e,t,n){const r=e.type;if(!e.render){if(!t&&ny&&!r.render){const o=r.template||Qm(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=En(En({isCustomElement:i,delimiters:l},a),s);r.render=ny(o,c)}}e.render=r.render||Zr}ml(e),Rl(),E5(e),Pl(),ha()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Kf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(GS(pu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ls)return ls[n](e)},has(t,n){return n in t||n in ls}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>v5(e,t,Os);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Ts(t)?Un(e,null,[t]):Un(e,t):Un(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),Un(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),k_="3.2.47",b3="http://www.w3.org/2000/svg",ia=typeof document<"u"?document:null,ry=ia&&ia.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?ia.createElementNS(b3,e):ia.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ia.createTextNode(e),createComment:e=>ia.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ia.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{ry.innerHTML=r?`${e}`:e;const l=ry.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&Jv(r,i,"");for(const i in n)Jv(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const oy=/\s*!important$/;function Jv(e,t,n){if(Rt(n))n.forEach(r=>Jv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);oy.test(n)?e.setProperty(kl(r),n.replace(oy,""),"important"):e[r]=n}}const iy=["Webkit","Moz","ms"],Bh={};function C3(e,t){const n=Bh[t];if(n)return n;let r=bo(t);if(r!=="filter"&&r in e)return Bh[t]=r;r=Ef(r);for(let o=0;oEh||(T3.then(()=>Eh=0),Eh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Df(t)?Im(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&sy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||sy.test(t)&&Pn(n)?!1:t in e}const ei="transition",Dl="animation",It=(e,{slots:t})=>u(l_,P_(e),t);It.displayName="Transition";const R_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=En({},l_.props,R_),Hi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},cy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function P_(e){const t={};for(const z in e)z in R_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{oi(z,A?d:l),oi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,oi(z,f),oi(z,v),oi(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Hi(j,[A,E]),dy(()=>{oi(A,z?s:i),Oo(A,z?d:l),cy(j)||uy(A,r,b,E)})};return En(t,{onBeforeEnter(z){Hi(g,[z]),Oo(z,i),Oo(z,a)},onBeforeAppear(z){Hi(k,[z]),Oo(z,s),Oo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Oo(z,f),T_(),Oo(z,h),dy(()=>{!z._isLeaving||(oi(z,f),Oo(z,v),cy(x)||uy(z,r,m,L))}),Hi(x,[z,L])},onEnterCancelled(z){$(z,!1),Hi(C,[z])},onAppearCancelled(z){$(z,!0),Hi(T,[z])},onLeaveCancelled(z){R(z),Hi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Lh(e.enter),Lh(e.leave)];{const t=Lh(e);return[t,t]}}function Lh(e){return zz(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function dy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function uy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=$_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ei}Delay`),i=r(`${ei}Duration`),a=fy(o,i),l=r(`${Dl}Delay`),s=r(`${Dl}Duration`),c=fy(l,s);let d=null,f=0,h=0;t===ei?a>0&&(d=ei,f=a,h=i.length):t===Dl?c>0&&(d=Dl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ei:Dl:null,h=d?d===ei?i.length:s.length:0);const v=d===ei&&/\b(transform|all)(,|$)/.test(r(`${ei}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function fy(e,t){for(;e.lengthhy(n)+hy(e[r])))}function hy(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function T_(){return document.body.offsetHeight}const O_=new WeakMap,z_=new WeakMap,M_={name:"TransitionGroup",props:En({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Uo(),r=a_();let o,i;return Gm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);T_(),l.forEach(s=>{const c=s.el,d=c.style;Oo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,oi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=P_(a);let s=a.tag||$t;o=i,i=t.default?qm(t.default()):[];for(let c=0;cdelete e.mode;M_.props;const qf=M_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){z_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=O_.get(e),n=z_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=$_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}const V3=En({patchProp:I3},y3);let vy;function U3(){return vy||(vy=G5(V3))}const I_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function Js(e){return e+.5|0}const ci=(e,t,n)=>Math.max(Math.min(e,n),t);function Ql(e){return ci(Js(e*2.55),0,255)}function pi(e){return ci(Js(e*255),0,255)}function Fo(e){return ci(Js(e/2.55)/100,0,1)}function py(e){return ci(Js(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ep=[..."0123456789ABCDEF"],K3=e=>ep[e&15],q3=e=>ep[(e&240)>>4]+ep[e&15],Rc=e=>(e&240)>>4===(e&15),Y3=e=>Rc(e.r)&&Rc(e.g)&&Rc(e.b)&&Rc(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function F_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=F_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function rb(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(pi)}function ob(e,t,n){return rb(F_,e,t,n)}function nM(e,t,n){return rb(eM,e,t,n)}function rM(e,t,n){return rb(J3,e,t,n)}function D_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ql(+t[5]):pi(+t[5]));const o=D_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ob(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=nb(e);n[0]=D_(n[0]+t),n=ob(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=nb(e),n=t[0],r=py(t[1]),o=py(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Fo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const gy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},my={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(my),n=Object.keys(gy);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Pc;function sM(e){Pc||(Pc=lM(),Pc.transparent=[0,0,0,0]);const t=Pc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Ql(a):ci(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Ql(r):ci(r,0,255)),o=255&(t[4]?Ql(o):ci(o,0,255)),i=255&(t[6]?Ql(i):ci(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Fo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Nh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=Ka(Fo(e.r)),o=Ka(Fo(e.g)),i=Ka(Fo(e.b));return{r:pi(Nh(r+n*(Ka(Fo(t.r))-r))),g:pi(Nh(o+n*(Ka(Fo(t.g))-o))),b:pi(Nh(i+n*(Ka(Fo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function $c(e,t,n){if(e){let r=nb(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ob(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function A_(e,t){return e&&Object.assign(t||{},e)}function by(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=pi(e[3]))):(t=A_(e,{r:0,g:0,b:0,a:1}),t.a=pi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class zs{constructor(t){if(t instanceof zs)return t;const n=typeof t;let r;n==="object"?r=by(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=A_(this._rgb);return t&&(t.a=Fo(t.a)),t}set rgb(t){this._rgb=by(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new zs(this.rgb)}alpha(t){return this._rgb.a=pi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Js(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return $c(this._rgb,2,t),this}darken(t){return $c(this._rgb,2,-t),this}saturate(t){return $c(this._rgb,1,t),this}desaturate(t){return $c(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function $o(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Bn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return Bn(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function bl(e,t){return(yy[t]||(yy[t]=yM(t)))(e)}function ib(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",wi=e=>typeof e=="function",xy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,po=2*Kn,xu=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,ji=Kn/4,wy=Kn*2/3,di=Math.log10,gi=Math.sign;function gd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function wu(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function E_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function lb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const tp=(e,t,n,r)=>lb(e,n,r?o=>{const i=e[o][t];return ie[o][t]lb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+ib(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function _y(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(L_.forEach(i=>{delete e[i]}),delete e._chartjs)}function N_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function j_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,H_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const sb=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,Tc=e=>e===0||e===1,ky=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*po/n)),Ry=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*po/n)+1,us={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Tc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Tc(e)?e:ky(e,.075,.3),easeOutElastic:e=>Tc(e)?e:Ry(e,.075,.3),easeInOutElastic(e){return Tc(e)?e:e<.5?.5*ky(e*2,.1125,.45):.5+.5*Ry(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-us.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?us.easeInBounce(e*2)*.5:us.easeOutBounce(e*2-1)*.5+.5};function V_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Py(e){return V_(e)?e:new zs(e)}function Hh(e){return V_(e)?e:new zs(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const $y=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=$y.get(n);return r||(r=new Intl.NumberFormat(e,t),$y.set(n,r)),r}function cb(e,t,n){return BM(t,n).format(e)}const U_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=di(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),cb(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(di(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?U_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Yf={formatters:U_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Yf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ca=Object.create(null),np=Object.create(null);function fs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Hh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Hh(o.borderColor),this.hoverColor=(r,o)=>Hh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return jh(this,t,n)}get(t){return fs(this,t)}describe(t,n){return jh(np,t,n)}override(t,n){return jh(Ca,t,n)}route(t,n,r,o){const i=fs(this,t),a=fs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Cu(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function K_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function q_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function Y_(e){return q_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function va(e){return q_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=Y_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function zn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Oc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ia(e,t){return Object.assign(Object.create(e),t)}function fb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=Q_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>fb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return G_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return My(a).includes(l)},ownKeys(a){return My(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function yl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:X_(e,r),setContext:i=>yl(e,i,n,r),override:i=>yl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return G_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function X_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:wi(n)?n:()=>n,isIndexable:wi(r)?r:()=>r}}const ZM=(e,t)=>e?e+ib(t):t,hb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function G_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return wi(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),hb(t,l)&&(l=yl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),hb(e,t)&&(t=vb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=vb(c,o,e,d);t.push(yl(f,i,a&&a[e],l))}}return t}function Z_(e,t,n){return wi(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?bl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Z_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function vb(e,t,n,r){const o=t._rootScopes,i=Z_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=zy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=zy(l,a,i,s,r),s===null)?!1:fb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function zy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=Q_(ZM(i,e),n),Fr(o))return hb(e,o)?vb(n,r,e,o):o}function Q_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function My(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function J_(){return typeof window<"u"&&typeof document<"u"}function pb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Su(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Xf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Xf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function pa(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function Ji(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Xf(n),i=o.boxSizing==="border-box",a=pa(o,"padding"),l=pa(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=pb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Xf(i),s=pa(l,"border","width"),c=pa(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Su(l.maxWidth,i,"clientWidth"),o=Su(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||xu,maxHeight:o||xu}}const zc=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Xf(e),i=pa(o,"margin"),a=Su(o.maxWidth,e,"clientWidth")||xu,l=Su(o.maxHeight,e,"clientHeight")||xu,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=pa(o,"border","width"),v=pa(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=zc(Math.min(c,a,s.maxWidth)),d=zc(Math.min(d,l,s.maxHeight)),c&&!d&&(d=zc(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=zc(Math.floor(d*r))),{width:c,height:d}}function Iy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Fy(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ul(e,t,n){return e?h4(t,n):v4()}function ek(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function tk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=H_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var zo=new p4;const Dy="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Py(e||Dy),o=r.valid&&Py(t||Dy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Oc([t.to,o,i,t.from]);const a=Oc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=us[t.easing]||us.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Oc([t.to,n,o,t.from]),this._from=Oc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return zo.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function Ny(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Ia(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Ia(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Bl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Uh=e=>e==="reset"||e==="none",Hy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:rk(n,!0),values:null};class hs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ey(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Bl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Vh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Vh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Vh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&_y(this._data,this),t._stacked&&Bl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){_y(r,this);const o=this._cachedMeta;Bl(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ey(n.vScale,n),n.stack!==r.stack&&(o=!0,Bl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&Ny(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Hy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new nk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Uh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Uh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Uh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ok(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function jy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:ec,modes:{index(e,t,n,r){const o=Ji(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Kh(e,o,i,r,a):qh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=Ji(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Kh(e,o,i,r,a):qh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Ky(e,t){return e.filter(n=>ik.indexOf(n.pos)===-1&&n.box.axis===t)}function Ll(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Ll(El(t,"left"),!0),o=Ll(El(t,"right")),i=Ll(El(t,"top"),!0),a=Ll(El(t,"bottom")),l=Ky(t,"x"),s=Ky(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:El(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function qy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ak(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&ak(a,i.getPadding());const l=Math.max(0,t.outerWidth-qy(a,e,"left","right")),s=Math.max(0,t.outerHeight-qy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function Jl(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);ak(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);Jl(l.fullSize,v,f,p),Jl(s,v,f,p),Jl(c,v,f,p)&&Jl(s,v,f,p),G4(v),Yy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Yy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class lk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends lk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const bd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[bd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xy(o)){const i=Fy(e,"width");i!==void 0&&(e.width=i)}if(Xy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Fy(e,"height");i!==void 0&&(e.height=i)}return e}const sk=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,sk)}function nI(e,t,n){e.canvas.removeEventListener(t,n,sk)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=Ji(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function _u(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||_u(l.addedNodes,r),a=a&&!_u(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||_u(l.removedNodes,r),a=a&&!_u(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Fs=new Map;let Gy=0;function ck(){const e=window.devicePixelRatio;e!==Gy&&(Gy=e,Fs.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Fs.size||window.addEventListener("resize",ck),Fs.set(e,t)}function lI(e){Fs.delete(e),Fs.size||window.removeEventListener("resize",ck)}function sI(e,t,n){const r=e.canvas,o=r&&pb(r);if(!o)return;const i=j_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Yh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=j_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends lk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[bd])return!1;const r=n[bd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[bd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Yh,detach:Yh,resize:Yh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=pb(t);return!!(n&&n.isConnected)}}function uI(e){return!J_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class Ci{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return wu(this.x)&&wu(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(Ci,"defaults",{}),Nt(Ci,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Ic(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Zy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function Qy(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Nl(t.grid)-n.padding-Jy(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=ab(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=Jy(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Nl(i)+s):(t.height=this.maxHeight,t.width=Nl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=ui(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Vi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Nl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Vi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Fc(hs,"datasets",!0),this.elements=new Fc(Ci,"elements"),this.plugins=new Fc(Object,"plugins"),this.scales=new Fc(Fa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=ib(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(ao.plugins.items);for(let i=0;i1&&ku(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Ca[e.type]||{scales:{}},r=t.scales||{},o=rp(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=ku(a,l),c=DI(s,o),d=n.scales||{};i[a]=ds(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||rp(l,t),d=(Ca[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),ds(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ds(l,[Cn.scales[l.type],Cn.scale])}),i}function dk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function uk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=uk(e.data),dk(e),e}const ex=new Map,fk=new Set;function Dc(e,t){let n=ex.get(e);return n||(n=t(),ex.set(e,n),fk.add(n)),n}const Hl=(e,t,n)=>{const r=bl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=uk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),dk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Dc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Dc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Dc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Dc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Hl(s,t,f))),d.forEach(f=>Hl(s,o,f)),d.forEach(f=>Hl(s,Ca[i]||{},f)),d.forEach(f=>Hl(s,Cn,f)),d.forEach(f=>Hl(s,np,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),fk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ca[n]||{},Cn.datasets[n]||{},{type:n},Cn,np]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=tx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=wi(r)?r():r;const c=this.createResolver(t,r,l);s=yl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=tx(this._resolverCache,t,r);return Wt(n)?yl(i,n,void 0,o):i}}function tx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:fb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||wi(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=X_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(wi(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function nx(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function rx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ox(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function hk(e){return J_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const yd={},ix=e=>{const t=hk(e);return Object.values(yd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class co{static register(...t){ao.add(...t),ax()}static unregister(...t){ao.remove(...t),ax()}constructor(t,n){const r=this.config=new LI(n),o=hk(t),i=ix(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],yd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}zo.listen(this,"complete",ox),zo.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ao}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Iy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ty(this.canvas,this.ctx),this}stop(){return zo.stop(this),this}resize(t,n){zo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Iy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=ku(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=ku(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||nx(l.position,c)!==nx(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=ao.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(rx("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!xy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&db(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&ub(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return K_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ia(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),zo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!bu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!bu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(co,"defaults",Cn),Nt(co,"instances",yd),Nt(co,"overrides",Ca),Nt(co,"registry",ao),Nt(co,"version",jI),Nt(co,"getChart",ix);function ax(){return en(co.instances,e=>e._plugins.invalidate())}function vk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function fi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=Y_(r);return{t:fi(o.top,i.top,0,n),r:fi(o.right,i.right,0,t),b:fi(o.bottom,i.bottom,0,n),l:fi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=va(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:fi(!s||l.top||l.left,i.topLeft,0,a),topRight:fi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:fi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:fi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=vk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Xh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&vk(e,r);return l&&(o||ll(t,l.left,l.right))&&(i||ll(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Gh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class xd extends Ci{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Is:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Gh(a,n,i)),t.clip(),l(t,Gh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Gh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Xh(this,t,n,r)}inXRange(t,n){return Xh(this,t,null,n)}inYRange(t,n){return Xh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(xd,"id","bar"),Nt(xd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(xd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const lx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class sx extends Ci{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=zn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=lx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=ul(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;db(t,this),this._draw(),ub(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=ul(t.rtl,this.left,this.width),c=zn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=lx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;W_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=va(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Is(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){Sa(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},ek(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=pk(k,L)}else v.y+=w}),tk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=zn(n.font),o=Jn(n.padding);if(!n.display)return;const i=ul(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(sb(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Sa(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=zn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ll(t,this.left,this.right)&&ll(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=pk(t,n)),r}function pk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:sx,start(e,t,n){const r=e.legend=new sx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class gk extends Ci{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*zn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=zn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);Sa(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:sb(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new gk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:gk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const es={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function cx(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=zn(t.bodyFont),c=zn(t.titleFont),d=zn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function dx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function ux(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=va(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ac(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function fx(e){return io([],Mo(e))}function hF(e,t,n){return Ia(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function hx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const mk={beforeTitle:$o,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?mk[t].call(n,r):o}class op extends Ci{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new nk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}getBeforeBody(t,n){return fx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=hx(r,i);io(a.before,Mo(or(l,"beforeLabel",this,i))),io(a.lines,or(l,"label",this,i)),io(a.after,Mo(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return fx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=hx(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=es[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=cx(this,r),c=Object.assign({},l,s),d=dx(this.chart,r,c),f=ux(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=va(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=ul(r.rtl,this.x,this.width);for(t.x=Ac(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=zn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Is(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Is(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=zn(r.bodyFont);let h=f.lineHeight,v=0;const p=ul(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ac(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=es[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=cx(this,t),s=Object.assign({},a,this._size),c=dx(n,t,s),d=ux(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),ek(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),tk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!bu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!bu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=es[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(op,"positioners",es);var vF={id:"tooltip",_element:op,positioners:es,afterInit(e,t,n){n&&(e.tooltip=new op({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:mk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function vx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(ip,"id","category"),Nt(ip,"defaults",{ticks:{callback:vx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=Cy((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=Cy($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,gd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(Sy(w),Sy(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=gi(o),c=gi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&E_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return cb(t,this.chart.options.locale,this.options.ticks.format)}}class ap extends Ru{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bn(t)?t:0,this.max=Bn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ui(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(ap,"id","linear"),Nt(ap,"defaults",{ticks:{callback:Yf.formatters.numeric}});const Ds=e=>Math.floor(di(e)),Wi=(e,t)=>Math.pow(10,Ds(e)+t);function gx(e){return e/Math.pow(10,Ds(e))===1}function mx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=Ds(n);for(;mx(e,t,r)>10;)r++;for(;mx(e,t,r)<10;)r--;return Math.min(r,Ds(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=Ds(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:gx(v),significand:f}),r}class bx extends Fa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Ru.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Bn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bn(t)?Math.max(0,t):null,this.max=Bn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Bn(this._userMin)&&(this.min=t===Wi(this.min,0)?Wi(this.min,-1):Wi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(Wi(r,-1)),a(Wi(o,1)))),r<=0&&i(Wi(o,-1)),o<=0&&a(Wi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&E_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":cb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=di(t),this._valueRange=di(this.max)-di(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(di(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(bx,"id","logarithmic"),Nt(bx,"defaults",{ticks:{callback:Yf.formatters.logarithmic,major:{enabled:!0}}});function lp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function yx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=lp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=zn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=va(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Is(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}Sa(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function bk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,po);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=po/(this._pointLabels.length||1),r=this.options.startAngle||0;return lo(t*n+ui(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=zn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}Sa(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Bc,"id","radialLinear"),Nt(Bc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Yf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Bc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Bc,"descriptors",{angleLines:{_fallback:"grid"}});const Gf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Gf);function zF(e,t){return e-t}function xx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Bn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(wu(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function wx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Gf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function Sx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||wx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=wu(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=tp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=tp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class _x extends Pu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ec(n,this.min),this._tableRange=Ec(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...yk},AF=k_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function qa(e){return fa(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return fa(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function xk(e,t){e.labels=t}function wk(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return xk(n,e.labels),wk(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=YS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new co(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=qa(d),g=qa(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=qa(f.labels),g=qa(v.labels),y=qa(f.datasets),C=qa(v.datasets);m!==g&&(xk(p.config.data,m),b=!0),y&&y!==C&&(wk(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return co.register(t),J({props:yk,setup(n,r){let{expose:o}=r;const i=YS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",md),kx=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};co.register(aF,vF,oF,xd,ip,ap);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(kx.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=kx.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Mi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="NOUN",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}});function KF(e,t,n,r,o,i){const a=Fh("n-select"),l=Fh("Bar"),s=Fh("n-space");return x_(),w_(s,{vertical:""},{default:o_(()=>[Un(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=c=>e.selectedEntity=c),options:e.availableEntities},null,8,["value","options"]),Un(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=c=>e.selectedPos=c),options:e.availablePos},null,8,["value","options"]),Un(l,{options:{indexAxis:"y",responsive:!0},data:e.chartData},null,8,["data"])]),_:1})}const qF=VF(WF,[["render",KF]]);let $u=[];const Ck=new WeakMap;function YF(){$u.forEach(e=>e(...Ck.get(e))),$u=[]}function _a(e,...t){Ck.set(e,t),!$u.includes(e)&&$u.push(e)===1&&requestAnimationFrame(YF)}function XF(e){return e.nodeType===9?null:e.parentNode}function Sk(e){if(e===null)return null;const t=XF(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Sk(t)}function mb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function GF(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function jl(e,t){var n;if(e==null)return;const r=GF(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function mi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function ZF(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const Rx={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function _k(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function wd(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function li(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function sp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function cp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function dp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const wo="^\\s*",Co="\\s*$",Si="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",la="([0-9A-Fa-f])",sa="([0-9A-Fa-f]{2})",QF=new RegExp(`${wo}hsl\\s*\\(${gr},${Si},${Si}\\)${Co}`),JF=new RegExp(`${wo}hsv\\s*\\(${gr},${Si},${Si}\\)${Co}`),eD=new RegExp(`${wo}hsla\\s*\\(${gr},${Si},${Si},${gr}\\)${Co}`),tD=new RegExp(`${wo}hsva\\s*\\(${gr},${Si},${Si},${gr}\\)${Co}`),nD=new RegExp(`${wo}rgb\\s*\\(${gr},${gr},${gr}\\)${Co}`),rD=new RegExp(`${wo}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${Co}`),bb=new RegExp(`${wo}#${la}${la}${la}${Co}`),yb=new RegExp(`${wo}#${sa}${sa}${sa}${Co}`),xb=new RegExp(`${wo}#${la}${la}${la}${la}${Co}`),wb=new RegExp(`${wo}#${sa}${sa}${sa}${sa}${Co}`);function ir(e){return parseInt(e,16)}function fl(e){try{let t;if(t=eD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=QF.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ga(e){try{let t;if(t=tD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=JF.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function An(e){try{let t;if(t=yb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=nD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=rD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Ao(t[13])];if(t=bb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Ao(ir(t[4])/255)];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Ao(ir(t[4]+t[4])/255)];if(e in Rx)return An(Rx[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function oD(e){return e>1?1:e<0?0:e}function iD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function up(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${oD(r)})`}function Zh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=An(e)),Array.isArray(t)||(t=An(t));const n=e[3],r=t[3],o=Ao(n+r-n*r);return up(Zh(e[0],n,t[0],r,o),Zh(e[1],n,t[1],r,o),Zh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:An(e);return t.alpha?up(n,r,o,t.alpha):up(n,r,o,i)}function Lc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:An(e),{lightness:a=1,alpha:l=1}=t;return go([n*a,r*a,o*a,i*l])}function Ao(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function xo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function fp(e){const[t,n,r]=Array.isArray(e)?e:An(e);return iD(t,n,r)}function go(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Ao(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function hp(e){return`hsv(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ma(e){const[t,n,r]=e;return 3 in e?`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function vp(e){return`hsl(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function bi(e){const[t,n,r]=e;return 3 in e?`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function yi(e){if(typeof e=="string"){let r;if(r=yb.exec(e))return`${r[0]}FF`;if(r=wb.exec(e))return r[0];if(r=bb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function vs(e){if(typeof e=="string"){let t;if(t=yb.exec(e))return t[0];if(t=wb.exec(e))return t[0].slice(0,7);if(t=bb.exec(e)||xb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function kk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Da(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wa(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Ln(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?wa(e):typeof e=="number"?wa(String(e)):null,$x=new Set;function lD(e,t){const n=`[naive/${e}]: ${t}`;$x.has(n)||($x.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Fn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function pp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function nc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Tu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Rk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Pk(e){return t=>{t?e.value=t.$el:e.value=null}}function $l(e){return e.some(t=>Ts(t)?!(t.type===xr||t.type===$t&&!$l(t.children)):!0)?e:null}function vt(e,t){return e&&$l(e())||t()}function ka(e,t,n){return e&&$l(e(t))||n(t)}function Ct(e,t){const n=e&&$l(e());return t(n||null)}function sD(e,t,n){const r=e&&$l(e(t));return n(r||null)}function ba(e){return!(e&&$l(e()))}function ps(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function cD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const gp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dD=/^(\d|\.)+$/,Tx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(dD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Tx.exec(e);return o?e.replace(Tx,String((Number(o[0])+n)*t)):e}return e}function Ra(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function uD(e){let t=0;for(let n=0;n{let o=uD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function vD(e,t){const n=[];return t.split($k).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function pD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hD(t,n):t=vD(t,n))}),t.join(", ").replace(fD," ")}function Ox(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zf(e){return document.querySelector(`style[cssr-id="${e}"]`)}function gD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Nc(e){return e?/^\s*@(s|m)/.test(e):!1}const mD=/[A-Z]/g;function Tk(e){return e.replace(mD,t=>"-"+t.toLowerCase())}function bD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Tk(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function yD(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function zx(e,t,n,r){if(!t)return"";const o=yD(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Tk(l),s!=null&&a.push(` ${l}${bD(s)}`)}),e&&a.push("}"),a.join(` -`)}function mp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))mp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?mp(o,t,n):o&&n(o)}else r&&n(r)})}function Ok(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Nc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});Nc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Nc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});Nc(d)?l=d:t.push(d)}const s=pD(t),c=zx(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&mp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=zx(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else Ok(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function zk(e,t,n,r=!1){const o=[];return Ok(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function As(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function xD(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Ox),t.els=[];else{const o=Zf(n);o&&r.includes(o)&&(Ox(o),t.els=r.filter(i=>i!==o))}}function Mx(e,t){e.push(t)}function wD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,zk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=As(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=Zf(n);if(d!==null&&!a)return d;const f=d!=null?d:gD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Mx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Mx(t.els,f),f}function CD(e){return zk(this,this.instance,e)}function SD(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return wD(this.instance,this,t,r,o,i,a,l,n)}function _D(e={}){const{id:t}=e;xD(this.instance,this,t)}const Hc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:CD,mount:SD,unmount:_D}},kD=function(e,t,n,r){return Array.isArray(t)?Hc(e,{$:null},null,t):Array.isArray(n)?Hc(e,t,null,n):Array.isArray(r)?Hc(e,t,n,r):Hc(e,t,n,null)};function Mk(e={}){let t=null;const n={c:(...r)=>kD(n,...r),use:(r,...o)=>r.install(n,...o),find:Zf,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function RD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Zf(e)!==null}function PD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const $D="n",Bs=`.${$D}-`,TD="__",OD="--",Ik=Mk(),Fk=PD({blockPrefix:Bs,elementPrefix:TD,modifierPrefix:OD});Ik.use(Fk);const{c:O,find:Xie}=Ik,{cB:S,cE:M,cM:F,cNotM:pt}=Fk;function So(e){return O(({props:{bPrefix:t}})=>`${t||Bs}modal, ${t||Bs}drawer`,[e])}function Wo(e){return O(({props:{bPrefix:t}})=>`${t||Bs}popover`,[e])}function Dk(e){return O(({props:{bPrefix:t}})=>`&${t||Bs}modal`,e)}const zD=(...e)=>O(">",[S(...e)]);let Qh;function MD(){return Qh===void 0&&(Qh=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Qh}const rr=typeof document<"u"&&typeof window<"u",Ak=new WeakSet;function Pa(e){Ak.add(e)}function Bk(e){return!Ak.has(e)}function ID(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Uo())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function FD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function DD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function AD(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Ek(e){const t=D(!!e.value);if(t.value)return yo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return yo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Cb(){return Uo()!==null}const Qf=typeof window<"u";let hl,gs;const BD=()=>{var e,t;hl=Qf?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,gs=!1,hl!==void 0?hl.then(()=>{gs=!0}):gs=!0};BD();function Jf(e){if(gs)return;let t=!1;Mt(()=>{gs||hl==null||hl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function Cd(e){return e.composedPath()[0]}const ED={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function LD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Cd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Cd(a))},i=a=>{!r||t.contains(Cd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Lk(e,t,n){const r=ED[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=LD(e,t,n)),i}function ND(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Lk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function HD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Lk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function jD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=Cd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,ND(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(HD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=jD(),ts=D(null);function Ix(e){if(e.clientX>0||e.clientY>0)ts.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ts.value={x:n+o/2,y:r+i/2}:ts.value={x:0,y:0}}else ts.value=null}}let jc=0,Fx=!0;function Nk(){if(!Qf)return yo(D(null));jc===0&&St("click",document,Ix,!0);const e=()=>{jc+=1};return Fx&&(Fx=Cb())?(Vo(e),Dt(()=>{jc-=1,jc===0&&xt("click",document,Ix,!0)})):e(),yo(ts)}const VD=D(void 0);let Vc=0;function Dx(){VD.value=Date.now()}let Ax=!0;function Hk(e){if(!Qf)return yo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Vc===0&&St("click",window,Dx,!0);const i=()=>{Vc+=1,St("click",window,o,!0)};return Ax&&(Ax=Cb())?(Vo(i),Dt(()=>{Vc-=1,Vc===0&&xt("click",window,Dx,!0),xt("click",window,o,!0),r()})):i(),yo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function Dn(){const e=D(!1);return Mt(()=>{e.value=!0}),yo(e)}function _i(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const UD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function WD(){return UD}const KD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function qD(e){return`(min-width: ${e}px)`}const Vl={};function YD(e=KD){if(!Qf)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Vl[i]===void 0?(a=window.matchMedia(qD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Vl[i]={mql:a,cbs:l}):(a=Vl[i].mql,l=Vl[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Vl[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function Sb(e={},t){const n=Mi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return Cb()?(Vo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),yo(n)}const _b="n-internal-select-menu",jk="n-internal-select-menu-body",rc="n-modal-body",Vk="n-modal",oc="n-drawer-body",kb="n-drawer",Tl="n-popover-body",Uk="__disabled__";function Lt(e){const t=Le(rc,null),n=Le(oc,null),r=Le(Tl,null),o=Le(jk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Uk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Uk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Bx=!1;function Rb(){if(!!rr&&!!window.CSS&&!Bx&&(Bx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function bp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function yp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wa(String(r)));return}if(Array.isArray(r)){yp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&yp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Ex(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=yp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ti=null;function Wk(){if(ti===null&&(ti=document.getElementById("v-binder-view-measurer"),ti===null)){ti=document.createElement("div"),ti.id="v-binder-view-measurer";const{style:e}=ti;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ti)}return ti.getBoundingClientRect()}function XD(e,t){const n=Wk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Jh(e){const t=e.getBoundingClientRect(),n=Wk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function GD(e){return e.nodeType===9?null:e.parentNode}function Kk(e){if(e===null)return null;const t=GD(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Kk(t)}const ZD=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Uo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=Kk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{_a(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return bp("binder",this.$slots)}}),Nr=ZD,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Ex("follower",this.$slots),[[t]]):Ex("follower",this.$slots)}}),Ya="@@mmoContext",QD={mounted(e,{value:t}){e[Ya]={handler:void 0},typeof t=="function"&&(e[Ya].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ya];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Ya].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ya];t&&xt("mousemoveoutside",e,t),e[Ya].handler=void 0}},JD=QD,Xa="@@coContext",eA={mounted(e,{value:t,modifiers:n}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Xa];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Xa];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Xa].handler=void 0}},fr=eA;function tA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class nA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&tA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const ev=new nA,Ga="@@ziContext",rA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Ga]={enabled:!!o,initialized:!1},o&&(ev.ensureZIndex(e,r),e[Ga].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Ga].enabled;o&&!i&&(ev.ensureZIndex(e,r),e[Ga].initialized=!0),e[Ga].enabled=!!o},unmounted(e,t){if(!e[Ga].initialized)return;const{value:n={}}=t,{zIndex:r}=n;ev.unregister(e,r)}},ic=rA,qk=Symbol("@css-render/vue3-ssr");function oA(e,t){return``}function iA(e,t){const n=Le(qk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(oA(e,t)))}const aA=typeof document<"u";function Ii(){if(aA)return;const e=Le(qk,null);if(e!==null)return{adapter:iA,context:e}}function Lx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:vo}=Mk(),eh="vueuc-style";function Nx(e){return e&-e}class lA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=Nx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?bp("lazy-teleport",this.$slots):u(Qs,{disabled:this.disabled,to:this.mergedTo},bp("lazy-teleport",this.$slots)):null}}),Uc={top:"bottom",bottom:"top",left:"right",right:"left"},jx={start:"end",center:"center",end:"start"},tv={top:"height",bottom:"height",left:"width",right:"width"},sA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},cA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},dA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Vx={top:!0,bottom:!1,left:!0,right:!1},Ux={top:"end",bottom:"start",left:"end",right:"start"};function uA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Vx[p]?y:-y:m=Vx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=dA[e],p=Uc[v],b=tv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=jx[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Uc[v],b=tv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Ux[v],c=d(b,v,f)):(s=Ux[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Ii();vA.mount({id:"vueuc/binder",head:!0,anchorMetaName:eh,ssr:l}),Dt(()=>{a()}),Jf(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?XD(p,b):Jh(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=Jh(h),$=Jh(o.value),{left:R,top:I,placement:z}=uA(x,g,T,w,k,m),A=fA(z,m),{left:L,top:j,transform:E}=hA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Dn(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(ac,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ic,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var ya=[],pA=function(){return ya.some(function(e){return e.activeTargets.length>0})},gA=function(){return ya.some(function(e){return e.skippedTargets.length>0})},Wx="ResizeObserver loop completed with undelivered notifications.",mA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Wx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Wx),window.dispatchEvent(e)},Es;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Es||(Es={}));var xa=function(e){return Object.freeze(e)},bA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,xa(this)}return e}(),Yk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Pb=function(e){return e instanceof SVGElement&&"getBBox"in e},Xk=function(e){if(Pb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Kx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},yA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ms=typeof window<"u"?window:{},Wc=new WeakMap,qx=/auto|scroll/,xA=/^tb|vertical/,wA=/msie|trident/i.test(ms.navigator&&ms.navigator.userAgent),ro=function(e){return parseFloat(e||"0")},vl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new bA((n?t:e)||0,(n?e:t)||0)},Yx=xa({devicePixelContentBoxSize:vl(),borderBoxSize:vl(),contentBoxSize:vl(),contentRect:new Yk(0,0,0,0)}),Gk=function(e,t){if(t===void 0&&(t=!1),Wc.has(e)&&!t)return Wc.get(e);if(Xk(e))return Wc.set(e,Yx),Yx;var n=getComputedStyle(e),r=Pb(e)&&e.ownerSVGElement&&e.getBBox(),o=!wA&&n.boxSizing==="border-box",i=xA.test(n.writingMode||""),a=!r&&qx.test(n.overflowY||""),l=!r&&qx.test(n.overflowX||""),s=r?0:ro(n.paddingTop),c=r?0:ro(n.paddingRight),d=r?0:ro(n.paddingBottom),f=r?0:ro(n.paddingLeft),h=r?0:ro(n.borderTopWidth),v=r?0:ro(n.borderRightWidth),p=r?0:ro(n.borderBottomWidth),b=r?0:ro(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:ro(n.width)-k-w,$=r?r.height:ro(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=xa({devicePixelContentBoxSize:vl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:vl(R,I,i),contentBoxSize:vl(T,$,i),contentRect:new Yk(f,s,T,$)});return Wc.set(e,z),z},Zk=function(e,t,n){var r=Gk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Es.DEVICE_PIXEL_CONTENT_BOX:return a;case Es.BORDER_BOX:return o;default:return i}},CA=function(){function e(t){var n=Gk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=xa([n.borderBoxSize]),this.contentBoxSize=xa([n.contentBoxSize]),this.devicePixelContentBoxSize=xa([n.devicePixelContentBoxSize])}return e}(),Qk=function(e){if(Xk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},SA=function(){var e=1/0,t=[];ya.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new CA(c.target),f=Qk(c.target);l.push(d),c.lastReportedSize=Zk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},_A=function(){var e=0;for(Xx(e);pA();)e=SA(),Xx(e);return gA()&&mA(),e>0},nv,Jk=[],kA=function(){return Jk.splice(0).forEach(function(e){return e()})},RA=function(e){if(!nv){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return kA()}).observe(n,r),nv=function(){n.textContent="".concat(t?t--:t++)}}Jk.push(e),nv()},PA=function(e){RA(function(){requestAnimationFrame(e)})},Sd=0,$A=function(){return!!Sd},TA=250,OA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zx=function(e){return e===void 0&&(e=0),Date.now()+e},rv=!1,zA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=TA),!rv){rv=!0;var r=Zx(t);PA(function(){var o=!1;try{o=_A()}finally{if(rv=!1,t=r-Zx(),!$A())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,OA)};document.body?n():ms.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gx.forEach(function(n){return ms.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Gx.forEach(function(n){return ms.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xp=new zA,Qx=function(e){!Sd&&e>0&&xp.start(),Sd+=e,!Sd&&xp.stop()},MA=function(e){return!Pb(e)&&!yA(e)&&getComputedStyle(e).display==="inline"},IA=function(){function e(t,n){this.target=t,this.observedBox=n||Es.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Zk(this.target,this.observedBox,!0);return MA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),FA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Kc=new WeakMap,Jx=function(e,t){for(var n=0;n=0&&(i&&ya.splice(ya.indexOf(r),1),r.observationTargets.splice(o,1),Qx(-1))},e.disconnect=function(t){var n=this,r=Kc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),DA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");qc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Kx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");qc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Kx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");qc.unobserve(this,t)},e.prototype.disconnect=function(){qc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class AA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||DA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ou=new AA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Uo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Lx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Lx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Ou.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Ou.unregisterHandler(n.$el.nextElementSibling)})},render(){return Zm(this.$slots,"default")}});let Yc;function BA(){return Yc===void 0&&("matchMedia"in window?Yc=window.matchMedia("(pointer:coarse)").matches:Yc=!1),Yc}let ov;function ew(){return ov===void 0&&(ov="chrome"in window?window.devicePixelRatio:1),ov}const EA=vo(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[vo("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[vo("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Eo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Ii();EA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:eh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Ym(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Gs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new lA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!BA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/ew(),A.scrollLeft+=I.deltaX/ew(),$(),w=!0,_a(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),LA=vo(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[vo("&::-webkit-scrollbar",{width:0,height:0})]),NA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Ki,""))}const i=Ii();return HA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:eh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Zm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function eR(e){return e instanceof HTMLElement}function tR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(eR(n)&&(rR(n)||nR(n)))return!0}return!1}function rR(e){if(!jA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function jA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Ul=[];const $b=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Ul[Ul.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Ul.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Hx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Ul=Ul.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Hx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?tR(C):nR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function th(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Ou.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Ou.unregisterHandler(n)}))}let Za=0,nw="",rw="",ow="",iw="";const wp=D("0px");function oR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=nw,t.style.overflow=rw,t.style.overflowX=ow,t.style.overflowY=iw,wp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Za){const a=window.innerWidth-t.offsetWidth;a>0&&(nw=t.style.marginRight,t.style.marginRight=`${a}px`,wp.value=`${a}px`),rw=t.style.overflow,ow=t.style.overflowX,iw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Za++}else Za--,Za||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Za--,Za||o(),r=!1)})}const Tb=D(!1),aw=()=>{Tb.value=!0},lw=()=>{Tb.value=!1};let Wl=0;const iR=()=>(rr&&(Vo(()=>{Wl||(window.addEventListener("compositionstart",aw),window.addEventListener("compositionend",lw)),Wl++}),Dt(()=>{Wl<=1?(window.removeEventListener("compositionstart",aw),window.removeEventListener("compositionend",lw),Wl=0):Wl--})),Tb);function Ob(e){const t={isDeactivated:!1};let n=!1;return Ym(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Gs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function sw(e){return e.nodeName==="#document"}const zu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(zu,null);nt(zu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var VA=typeof global=="object"&&global&&global.Object===Object&&global;const aR=VA;var UA=typeof self=="object"&&self&&self.Object===Object&&self,WA=aR||UA||Function("return this")();const jr=WA;var KA=jr.Symbol;const ki=KA;var lR=Object.prototype,qA=lR.hasOwnProperty,YA=lR.toString,Kl=ki?ki.toStringTag:void 0;function XA(e){var t=qA.call(e,Kl),n=e[Kl];try{e[Kl]=void 0;var r=!0}catch{}var o=YA.call(e);return r&&(t?e[Kl]=n:delete e[Kl]),o}var GA=Object.prototype,ZA=GA.toString;function QA(e){return ZA.call(e)}var JA="[object Null]",e6="[object Undefined]",cw=ki?ki.toStringTag:void 0;function Aa(e){return e==null?e===void 0?e6:JA:cw&&cw in Object(e)?XA(e):QA(e)}function Ri(e){return e!=null&&typeof e=="object"}var t6="[object Symbol]";function nh(e){return typeof e=="symbol"||Ri(e)&&Aa(e)==t6}function sR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=B6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function H6(e){return function(){return e}}var j6=function(){try{var e=Ea(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Iu=j6;var V6=Iu?function(e,t){return Iu(e,"toString",{configurable:!0,enumerable:!1,value:H6(t),writable:!0})}:zb;const U6=V6;var W6=N6(U6);const K6=W6;var q6=9007199254740991,Y6=/^(?:0|[1-9]\d*)$/;function Ib(e,t){var n=typeof e;return t=t==null?q6:t,!!t&&(n=="number"||n!="symbol"&&Y6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=tB}function Ol(e){return e!=null&&Db(e.length)&&!Mb(e)}function nB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?Ol(n)&&Ib(t,n.length):r=="string"&&t in n)?lc(n[t],e):!1}function rB(e){return eB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&nB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function xE(e,t){var n=this.__data__,r=rh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:UE(e,t,n)}var KE="\\ud800-\\udfff",qE="\\u0300-\\u036f",YE="\\ufe20-\\ufe2f",XE="\\u20d0-\\u20ff",GE=qE+YE+XE,ZE="\\ufe0e\\ufe0f",QE="\\u200d",JE=RegExp("["+QE+KE+GE+ZE+"]");function xR(e){return JE.test(e)}function eL(e){return e.split("")}var wR="\\ud800-\\udfff",tL="\\u0300-\\u036f",nL="\\ufe20-\\ufe2f",rL="\\u20d0-\\u20ff",oL=tL+nL+rL,iL="\\ufe0e\\ufe0f",aL="["+wR+"]",Sp="["+oL+"]",_p="\\ud83c[\\udffb-\\udfff]",lL="(?:"+Sp+"|"+_p+")",CR="[^"+wR+"]",SR="(?:\\ud83c[\\udde6-\\uddff]){2}",_R="[\\ud800-\\udbff][\\udc00-\\udfff]",sL="\\u200d",kR=lL+"?",RR="["+iL+"]?",cL="(?:"+sL+"(?:"+[CR,SR,_R].join("|")+")"+RR+kR+")*",dL=RR+kR+cL,uL="(?:"+[CR+Sp+"?",Sp,SR,_R,aL].join("|")+")",fL=RegExp(_p+"(?="+_p+")|"+uL+dL,"g");function hL(e){return e.match(fL)||[]}function vL(e){return xR(e)?hL(e):eL(e)}function pL(e){return function(t){t=Ta(t);var n=xR(t)?vL(t):void 0,r=n?n[0]:t.charAt(0),o=n?WE(n,1).join(""):t.slice(1);return r[e]()+o}}var gL=pL("toUpperCase");const PR=gL;function mL(e){return PR(Ta(e).toLowerCase())}function bL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&W8?new Bu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=sv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(sv())}function w(){var k=sv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function $p(e,t,n){(n!==void 0&&!lc(e[t],n)||n===void 0&&!(t in e))&&Fb(e,t,n)}function HN(e){return Ri(e)&&Ol(e)}function Tp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function jN(e){return Q6(e,pR(e))}function VN(e,t,n,r,o,i,a){var l=Tp(e,n),s=Tp(t,n),c=a.get(s);if(c){$p(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Du(s),p=!h&&!v&&Bb(s);d=s,h||v||p?Ar(l)?d=l:HN(l)?d=A6(l):v?(f=!1,d=b8(s,!0)):p?(f=!1,d=B8(s,!0)):d=[]:VE(s)||Fu(s)?(d=l,Fu(l)?d=jN(l):(!Br(l)||Mb(l))&&(d=E8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),$p(e,n,d)}function qR(e,t,n,r,o){e!==t&&KR(t,function(i,a){if(o||(o=new mo),Br(i))VN(e,t,a,n,qR,r,o);else{var l=r?r(Tp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),$p(e,a,l)}},pR)}function UN(e,t){var n=-1,r=Ol(e)?Array(e.length):[];return DN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function WN(e,t){var n=Ar(e)?sR:UN;return n(e,TN(t))}var KN=HR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const YR=KN;var qN=rB(function(e,t,n){qR(e,t,n)});const sl=qN;var YN=d8("round");const XN=YN;var GN="Expected a function";function ys(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(GN);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),NN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:ZN,fontFamily:QN,lineHeight:JN}=_r,XR=O("body",` - margin: 0; - font-size: ${ZN}; - font-family: ${QN}; - line-height: ${JN}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",xl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Ii(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:xl,ssr:a}),l!=null&&l.preflightStyleDisabled||XR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:a})};a?c():Vo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=sl({},d||y||g||r.common,w,_,b),R=sl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:sl({},r.peers,x,h),peerOverrides:sl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const GR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||GR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const e7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},t7=e7;function cv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function _d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_d=function(n){return typeof n}:_d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_d(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||_d(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var n7={};function La(){return n7}function Oa(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?o7(l,function(f){return f.test(a)}):r7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function r7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function o7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var a7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l7=function(t,n,r){var o,i=a7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const s7=l7;var c7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},d7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},u7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},f7={date:cv({formats:c7,defaultWidth:"full"}),time:cv({formats:d7,defaultWidth:"full"}),dateTime:cv({formats:u7,defaultWidth:"full"})};const h7=f7;var v7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},p7=function(t,n,r,o){return v7[t]};const g7=p7;var m7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},b7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},x7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},w7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},C7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},S7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},_7={ordinalNumber:S7,era:ql({values:m7,defaultWidth:"wide"}),quarter:ql({values:b7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ql({values:y7,defaultWidth:"wide"}),day:ql({values:x7,defaultWidth:"wide"}),dayPeriod:ql({values:w7,defaultWidth:"wide",formattingValues:C7,defaultFormattingWidth:"wide"})};const k7=_7;var R7=/^(\d+)(th|st|nd|rd)?/i,P7=/\d+/i,$7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},T7={any:[/^b/i,/^(a|c)/i]},O7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z7={any:[/1/i,/2/i,/3/i,/4/i]},M7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},I7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},F7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},D7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},A7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},B7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},E7={ordinalNumber:i7({matchPattern:R7,parsePattern:P7,valueCallback:function(t){return parseInt(t,10)}}),era:Yl({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),quarter:Yl({matchPatterns:O7,defaultMatchWidth:"wide",parsePatterns:z7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Yl({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any"}),day:Yl({matchPatterns:F7,defaultMatchWidth:"wide",parsePatterns:D7,defaultParseWidth:"any"}),dayPeriod:Yl({matchPatterns:A7,defaultMatchWidth:"any",parsePatterns:B7,defaultParseWidth:"any"})};const L7=E7;var N7={code:"en-US",formatDistance:s7,formatLong:h7,formatRelative:g7,localize:k7,match:L7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ah=N7,H7={name:"en-US",locale:ah},j7=H7;function Gc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function V7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Eu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function wl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function U7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Op(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function W7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var K7=6e4,q7=36e5,Y7=1e3;function X7(e,t){mt(2,arguments);var n=wl(e),r=wl(t);return n.getTime()===r.getTime()}function kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kd=function(n){return typeof n}:kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kd(e)}function G7(e){return mt(1,arguments),e instanceof Date||kd(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!G7(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function Z7(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function Q7(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function js(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function jb(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ZR(e,t){mt(2,arguments);var n=Gt(t);return V7(e,-n)}var J7=864e5;function eH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/J7)+1}function Cl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function tH(e){mt(1,arguments);var t=QR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Cl(n);return r}var nH=6048e5;function JR(e){mt(1,arguments);var t=yt(e),n=Cl(t).getTime()-tH(t).getTime();return Math.round(n/nH)+1}function Vb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=La(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=Oa(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=Oa(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function rH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Vb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=Oa(v,t);return p}var oH=6048e5;function e2(e,t){mt(1,arguments);var n=yt(e),r=Oa(n,t).getTime()-rH(n,t).getTime();return Math.round(r/oH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const ni=iH;var Qa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ni.y(t,n)},Y:function(t,n,r,o){var i=Vb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=QR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ni.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=e2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=JR(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ni.d(t,n)},D:function(t,n,r){var o=eH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Qa.noon:o===0?i=Qa.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Qa.evening:o>=12?i=Qa.afternoon:o>=4?i=Qa.morning:i=Qa.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ni.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ni.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ni.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ni.s(t,n)},S:function(t,n){return ni.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Vw(a);case"XXXX":case"XX":return ta(a);case"XXXXX":case"XXX":default:return ta(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Vw(a);case"xxxx":case"xx":return ta(a);case"xxxxx":case"xxx":default:return ta(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+jw(a,":");case"OOOO":default:return"GMT"+ta(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+jw(a,":");case"zzzz":default:return"GMT"+ta(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function jw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Vw(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ta(e,t)}function ta(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const lH=aH;var Uw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},t2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},sH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Uw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Uw(o,n)).replace("{{time}}",t2(i,n))},cH={p:t2,P:sH};const zp=cH;var dH=["D","DD"],uH=["YY","YYYY"];function n2(e){return dH.indexOf(e)!==-1}function r2(e){return uH.indexOf(e)!==-1}function Lu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vH=/^'([^]*?)'?$/,pH=/''/g,gH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=La(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ah,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Eu(R),z=ZR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(hH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=zp[E];return U(j,_.formatLong)}return j}).join("").match(fH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return mH(j);var U=lH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&r2(j)&&Lu(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&n2(j)&&Lu(j,t,String(e)),U(z,j,_.localize,A);if(E.match(gH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function mH(e){var t=e.match(vH);return t?t[1].replace(pH,"'"):e}function Ub(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function bH(e){return Ub({},e)}var Ww=1e3*60,Nu=60*24,Kw=Nu*30,qw=Nu*365;function yH(e,t,n){var r,o,i;mt(2,arguments);var a=La(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ah;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=W7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Ub(bH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/Ww,m=Eu(f)-Eu(d),g=(p-m)/Ww,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vu(e){return Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vu(e)}function Wb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uu(e)}function Qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DH=function(e){zH(n,e);var t=MH(n);function n(){var r;TH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function c2(e){return e%400===0||e%4===0&&e%100!==0}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function AH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jH=function(e){EH(n,e);var t=LH(n);function n(){var r;AH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=s2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Td(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Td=function(n){return typeof n}:Td=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Td(e)}function VH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XH=function(e){WH(n,e);var t=KH(n);function n(){var r;VH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Vb(o,l);if(a.isTwoDigitYear){var c=s2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}}]),n}(Yt);function Od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Od=function(n){return typeof n}:Od=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Od(e)}function GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n9=function(e){QH(n,e);var t=JH(n);function n(){var r;GH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c9=function(e){i9(n,e);var t=a9(n);function n(){var r;r9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g9=function(e){f9(n,e);var t=h9(n);function n(){var r;d9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function m9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S9=function(e){y9(n,e);var t=x9(n);function n(){var r;m9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Fd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fd=function(n){return typeof n}:Fd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fd(e)}function _9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O9=function(e){R9(n,e);var t=P9(n);function n(){var r;_9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Dd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dd=function(n){return typeof n}:Dd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dd(e)}function z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B9=function(e){I9(n,e);var t=F9(n);function n(){var r;z9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function E9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=e2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function L9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W9=function(e){H9(n,e);var t=j9(n);function n(){var r;L9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Oa(E9(o,a,l),l)}}]),n}(Yt);function K9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=JR(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function q9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J9=function(e){X9(n,e);var t=G9(n);function n(){var r;q9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Cl(K9(o,a))}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aj=[31,28,31,30,31,30,31,31,30,31,30,31],lj=[31,29,31,30,31,30,31,31,30,31,30,31],sj=function(e){nj(n,e);var t=rj(n);function n(){var r;ej(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=lj[s]:i>=1&&i<=aj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function uv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pj=function(e){uj(n,e);var t=fj(n);function n(){var r;cj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Yb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=La(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function C1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cj=function(e){bj(n,e);var t=yj(n);function n(){var r;gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function Sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tj=function(e){kj(n,e);var t=Rj(n);function n(){var r;Sj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ud(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ud=function(n){return typeof n}:Ud=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ud(e)}function Oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aj=function(e){Mj(n,e);var t=Ij(n);function n(){var r;Oj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uj=function(e){Nj(n,e);var t=Hj(n);function n(){var r;Ej(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Bj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zj=function(e){qj(n,e);var t=Yj(n);function n(){var r;Wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oV=function(e){eV(n,e);var t=tV(n);function n(){var r;Qj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uV=function(e){lV(n,e);var t=sV(n);function n(){var r;iV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bV=function(e){vV(n,e);var t=pV(n);function n(){var r;fV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gd=function(n){return typeof n}:Gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gd(e)}function yV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kV=function(e){wV(n,e);var t=CV(n);function n(){var r;yV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zd=function(n){return typeof n}:Zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zd(e)}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MV=function(e){$V(n,e);var t=TV(n);function n(){var r;RV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qd=function(n){return typeof n}:Qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qd(e)}function IV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LV=function(e){DV(n,e);var t=AV(n);function n(){var r;IV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function NV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KV=function(e){jV(n,e);var t=VV(n);function n(){var r;NV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function qV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JV=function(e){XV(n,e);var t=GV(n);function n(){var r;qV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function eU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aU=function(e){nU(n,e);var t=rU(n);function n(){var r;eU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hU=function(e){cU(n,e);var t=dU(n);function n(){var r;lU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xU=function(e){gU(n,e);var t=mU(n);function n(){var r;vU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PU=function(e){SU(n,e);var t=_U(n);function n(){var r;wU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FU=function(e){OU(n,e);var t=zU(n);function n(){var r;$U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=AU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function AU(e,t){if(!!e){if(typeof e=="string")return oC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oC(e,t)}}function oC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new RH],L=_.match(EU).map(function(Oe){var ke=Oe[0];if(ke in zp){var pe=zp[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(BU),j=[],E=rC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&r2(ke)&&Lu(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&n2(ke)&&Lu(ke,_,e);var pe=ke[0],Me=DU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(jU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=UU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(au(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&HU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=ZR(re,Eu(re)),ue={},de=rC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Ub(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function UU(e){return e.match(LU)[1].replace(NU,"'")}function WU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function lh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function d2(e,t){mt(2,arguments);var n=js(e),r=js(t);return n.getTime()===r.getTime()}function Xb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function u2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Gb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=wH(a);return n.setMonth(r,Math.min(i,l)),n}function lu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lu=function(n){return typeof n}:lu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lu(e)}function Hn(e,t){if(mt(2,arguments),lu(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Gb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function qi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function fv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function KU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Gb(n,n.getMonth()+i*3)}function hv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function iC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:t7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:j7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Ii(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||XR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:r})};r?i():Vo(i)}function f2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Fn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Ii();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+As(JSON.stringify(p))),b&&(f+="-"+As(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Ii(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(RD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Vo(i),o}function qU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function YU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const XU=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),sh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},GU=Ln(sh),h2=J({name:"Affix",props:sh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",XU,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=mb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){_a(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=qU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=YU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Sl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),v2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),ZU=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Nn(e,t){return J({name:PR(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const QU=Nn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Pi=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),aC=Nn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Zb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Qb=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Na=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),p2=Nn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),g2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),JU=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),eW=Nn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),tW=Nn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),nW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ha=Nn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),$i=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Ti=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),rW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Oi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),zi=Nn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),lC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),m2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),b2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),ja=Nn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),oW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),iW=Nn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Fi=Nn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),aW=Nn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),y2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),lW=Nn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),sW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),cW=Nn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),dW=Nn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),uW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),fW=Nn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),hW=Nn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),vW=Nn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),pW=Nn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),gW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),_o=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Dn();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),ko=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?qf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),mW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",mW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),bW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Yo=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",bW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(p2,null)}))}}}),Ro=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:yW}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${yW} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const xW=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),wW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Jr=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},wW),setup(e){Vr("-base-loading",xW,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(_o,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function sC(e){return Array.isArray(e)?e:[e]}const Hg={STOP:"STOP"};function x2(e,t){const n=t(e);e.children!==void 0&&n!==Hg.STOP&&e.children.forEach(r=>x2(r,t))}function CW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function SW(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function _W(e){return e.children}function kW(e){return e.key}function RW(){return!1}function PW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function $W(e){return e.disabled===!0}function TW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function vv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function pv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function OW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function zW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function MW(e){return(e==null?void 0:e.type)==="group"}function w2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class C2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function IW(e,t,n,r){return Sf(t.concat(e),n,r,!1)}function FW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function DW(e,t,n,r){const o=Sf(t,n,r,!1),i=Sf(e,n,r,!0),a=FW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function gv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:OW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:zW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=DW(o,n,t,c):r!==void 0?f=IW(r,n,t,c):f=Sf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Sf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&x2(c,d=>{if(d.disabled)return Hg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),TW(d.rawNode,i))){if(r)return Hg.STOP;if(!n)throw new C2}})}),l}function AW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function BW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function EW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function cC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?LW:EW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=Jb(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=NW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function LW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function NW(e){return e.parent}function Jb(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Jb(c,t);if(d!==null)return d}else return c}}return null}const HW={getChild(){return this.ignored?null:Jb(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return cC(this,"next",e)},getPrev(e={}){return cC(this,"prev",e)}};function jg(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function jW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function S2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=S2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function eo(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=$W,getIgnored:a=RW,getIsGroup:l=MW,getKey:s=kW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:_W,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return SW(this.rawNode,d)},get shallowLoaded(){return PW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return jW(this,x)}},HW),h=S2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return jg(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return BW(h)},getPath(x,w={}){return AW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return gv({checkedKeys:vv(x),indeterminateKeys:pv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return gv({checkedKeys:vv(w),indeterminateKeys:pv(w),keysToCheck:x==null?[]:sC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return gv({checkedKeys:vv(w),indeterminateKeys:pv(w),keysToUncheck:x==null?[]:sC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return CW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},VW=An(bt.neutralBase),_2=An(bt.neutralInvertBase),UW="rgba("+_2.slice(0,3).join(", ")+", ";function dC(e){return UW+String(e)+")"}function Gn(e){const t=Array.from(_2);return t[3]=Number(e),ht(VW,t)}const WW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Lc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Lc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Lc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Lc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:dC(bt.alphaScrollbar),scrollbarColorHover:dC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=WW,KW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},qW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},KW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},YW={name:"Empty",common:et,self:qW},Di=YW,XW=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),k2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ai=J({name:"Empty",props:k2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",XW,Di,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(nW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),GW=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},ZW={name:"Scrollbar",common:et,self:GW},hr=ZW,{cubicBezierEaseInOut:uC}=_r;function Lo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=uC,leaveCubicBezier:o=uC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const QW=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Lo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),JW=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),R2=J({name:"Scrollbar",props:JW,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=WD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Ob(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",QW,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?gp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?gp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=R2,_f=R2,eK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},tK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},eK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},nK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Di},self:tK},zl=nK;function rK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Zb)}):null})}const fC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(_b),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=rK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:ps([c,p==null?void 0:p.onClick]),onMouseenter:ps([d,p==null?void 0:p.onMouseenter]),onMousemove:ps([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),hC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(_b);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:vC,cubicBezierEaseOut:pC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${vC}, transform ${t} ${vC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${pC}, transform ${t} ${pC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const oK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),sc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",oK,zl,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>w2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>mi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(_b,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(jk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":mi(ve,"left"),"--n-option-padding-right":mi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return th(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(Jr,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ai,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(Eo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(hC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(fC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(hC,{key:a.key,clsPrefix:n,tmNode:a}):u(fC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Ro,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),iK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),P2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",iK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),aK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Lo()]),lK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",aK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),sK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},cK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},sK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},dK={name:"Popover",common:et,self:cK},Va=dK,mv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",uK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${To("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${To("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${To("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${To("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${To("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${To("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${To("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${To("right-end")} + var(--v-offset-top)); - `),...WN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=To(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function To(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${mv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${mv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),zD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${mv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const $2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),T2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),fK=J({name:"PopoverBody",inheritAttrs:!1,props:$2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",uK,Va,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!MD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([JD,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Tl,c),nt(oc,null),nt(rc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!ba(t.header)||!ba(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(_f,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?T2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u($b,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),hK=Object.keys($2),vK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function pK(e,t,n){vK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const gK=wa("").type,za={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},O2=Object.assign(Object.assign(Object.assign({},Se.props),za),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ua=J({name:"Popover",inheritAttrs:!1,props:O2,__popover__:!0,setup(e){const t=Dn(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=_i(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Tu(n,"activator"):r=Tu(n,"trigger"),r)){r=nr(r),r=r.type===gK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};pK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ic,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(fK,mn(this.$props,hK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),mK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},bK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},mK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},yK={name:"Tag",common:et,self:bK},z2=yK,M2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},xK=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),I2=Object.assign(Object.assign(Object.assign({},Se.props),M2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),F2="n-tag",xs=J({name:"Tag",props:I2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",xK,z2,e,r);nt(F2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Ra(m)}`),g&&(v+=`b${Ra(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Yo,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),wK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Vg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",wK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(_o,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(lW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),D2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(Jr,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Vg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(y2,null)])})}):null})}}}),CK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},SK=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},CK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},_K={name:"InternalSelection",common:et,peers:{Popover:Va},self:SK},ch=_K,kK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),e0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",kK,ch,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),th(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(gp,null,{default:()=>u(D2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(xs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(tw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(tw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Ua,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:nc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),gC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ri}=_r;function A2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ri}, - max-width ${e} ${ri} ${t}, - margin-left ${e} ${ri} ${t}, - margin-right ${e} ${ri} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ri} ${t}, - max-width ${e} ${ri}, - margin-left ${e} ${ri}, - margin-right ${e} ${ri}; - `)]}const{cubicBezierEaseOut:Ja}=_r;function RK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const PK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[RK({duration:".2s"}),A2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),$K=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",PK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(qf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(gC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(ko,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},TK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},zK={name:"Alert",common:et,self:OK},MK=zK,{cubicBezierEaseInOut:oo,cubicBezierEaseOut:IK,cubicBezierEaseIn:FK}=_r;function No({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo} ${r}, - opacity ${t} ${IK} ${r}, - margin-top ${t} ${oo} ${r}, - margin-bottom ${t} ${oo} ${r}, - padding-top ${t} ${oo} ${r}, - padding-bottom ${t} ${oo} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo}, - opacity ${t} ${FK}, - margin-top ${t} ${oo}, - margin-bottom ${t} ${oo}, - padding-top ${t} ${oo}, - padding-bottom ${t} ${oo} - ${n?","+n:""} - `)]}const DK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),No({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),B2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),AK=J({name:"Alert",inheritAttrs:!1,props:B2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",DK,MK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=mi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(ko,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Yo,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(ja,null);case"info":return u(zi,null);case"warning":return u(Fi,null);case"error":return u(Ha,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),BK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},EK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},BK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},LK={name:"Anchor",common:et,self:EK},NK=LK,HK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),su="n-anchor",E2={title:String,href:String},jK=J({name:"AnchorLink",props:E2,setup(e,{slots:t}){const n=D(null),r=Le(su),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);FD(su,"collectedLinkHrefs",o),DD(su,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:nc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function VK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const t0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},UK=Ln(t0),WK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},t0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=ys(()=>v(!0),128);function v(p=!0){var b;const m=[],g=mb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=VK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(su,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),Jf(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),L2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),sh),t0),KK=J({name:"Anchor",props:L2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",HK,NK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(WK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,UK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(h2,Object.assign({},mn(this,GU)),{default:this.renderAnchor}):this.renderAnchor()}});function kf(e){return e.type==="group"}function N2(e){return e.type==="ignored"}function bv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function dh(e,t){return{getIsGroup:kf,getIgnored:N2,getKey(r){return kf(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function qK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(kf(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(N2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function YK(e,t,n){const r=new Map;return e.forEach(o=>{kf(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const XK=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const H2=rr&&navigator.userAgent.includes("Safari")&&!XK,GK={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},ZK=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},GK),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},QK={name:"Input",common:et,self:ZK},kr=QK,j2="n-input";function JK(e){let t=0;for(const n of e)t++;return t}function Zc(e){return e===""||e==null}function eq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const mC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(j2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||JK)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},ka(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),tq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),nq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),V2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),Mn=J({name:"Input",props:V2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",tq,kr,e,t);H2&&Vr("-input-safari",nq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=eq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Zc(Ie)||Array.isArray(Ie)&&Zc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Zc(Ie)||Array.isArray(Ie)&&Zc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Uo().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(j2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:Po,colorFocusWarning:Go,boxShadowFocusWarning:Zo,borderWarning:Qo,borderFocusWarning:Ei,borderHoverWarning:Ch,colorFocusError:Sh,boxShadowFocusError:_h,borderError:kh,borderFocusError:Rh,borderHoverError:Ph,clearSize:$h,clearColor:Th,clearColorHover:XO,clearColorPressed:GO,iconColor:ZO,iconColorDisabled:QO,suffixTextColor:JO,countTextColor:ez,countTextColorDisabled:tz,iconColorHover:nz,iconColorPressed:rz,loadingColor:oz,loadingColorError:iz,loadingColorWarning:az,[ye("padding",le)]:lz,[ye("fontSize",le)]:sz,[ye("height",le)]:cz}}=i.value,{left:dz,right:uz}=mi(lz);return{"--n-bezier":Ie,"--n-count-text-color":ez,"--n-count-text-color-disabled":tz,"--n-color":Ge,"--n-font-size":sz,"--n-border-radius":gt,"--n-height":cz,"--n-padding-left":dz,"--n-padding-right":uz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":Po,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":oz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Go,"--n-box-shadow-focus-warning":Zo,"--n-border-warning":Qo,"--n-border-focus-warning":Ei,"--n-border-hover-warning":Ch,"--n-loading-color-warning":az,"--n-caret-color-error":Qe,"--n-color-focus-error":Sh,"--n-box-shadow-focus-error":_h,"--n-border-error":kh,"--n-border-focus-error":Rh,"--n-border-hover-error":Ph,"--n-loading-color-error":iz,"--n-clear-color":Th,"--n-clear-size":$h,"--n-clear-color-hover":XO,"--n-clear-color-pressed":GO,"--n-icon-color":ZO,"--n-icon-color-hover":nz,"--n-icon-color-pressed":rz,"--n-icon-color-disabled":QO,"--n-suffix-text-color":JO}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Vg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(D2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(mC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(g2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(JU,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Vg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(mC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),rq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),U2={},W2=J({name:"InputGroup",props:U2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",rq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),oq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),K2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),iq=J({name:"InputGroupLabel",props:K2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",oq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function aq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const lq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:aq},sq=lq;function cq(e){return e.map(q2)}function q2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>q2(o))}:e}const dq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Y2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),uq=J({name:"AutoComplete",props:Y2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",dq,sq,e,r),g=P(()=>cq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>eo(g.value,dh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:Dn(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Tu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(Mn,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(sc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),pl=rr&&"loading"in document.createElement("img"),fq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},yv=new WeakMap,xv=new WeakMap,wv=new WeakMap,X2=(e,t,n)=>{if(!e)return()=>{};const r=fq(t),{root:o}=r.options;let i;const a=yv.get(o);a?i=a:(i=new Map,yv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=xv.get(h.target),p=wv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(xv.delete(e),wv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||yv.delete(o))};return xv.set(e,d),wv.set(e,n),d},hq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},vq={name:"Avatar",common:et,self:hq},G2=vq,Z2="n-avatar-group",pq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[So(O("&","--n-merged-color: var(--n-color-modal);")),Wo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),Q2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Ug=J({name:"Avatar",props:Q2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Z2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",pq,G2,e,t),f=Le(F2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Ra(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(pl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=X2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:pl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:pl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),gq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),mq=()=>({gap:"-12px"}),bq={name:"AvatarGroup",common:et,peers:{Avatar:G2},self:mq},yq=bq,J2=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),xq=J({name:"AvatarGroup",props:J2,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",gq,yq,e,t);nt(Z2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Ug,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Ug,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),wq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Cq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},wq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Sq={name:"BackTop",common:et,self:Cq},_q=Sq,kq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Rq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),eP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Pq=J({name:"BackTop",inheritAttrs:!1,props:eP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${wp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",Rq,_q,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||mb(e.listenTo)||Sk(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(sw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(sw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:Dn(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(ac,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>kq})])):null}})}))}}),$q=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Tq={name:"Badge",common:et,self:$q},Oq=Tq,zq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),tP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Mq=J({name:"Badge",props:tP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",zq,Oq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!ba(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Ra(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:nc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u($K,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u(P2,{clsPrefix:t}):null):null}))}}),Iq={fontWeightActive:"400"},Fq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Iq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Dq={name:"Breadcrumb",common:et,self:Fq},Aq=Dq,Bq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),nP="n-breadcrumb",rP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),Eq=J({name:"Breadcrumb",props:rP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",Bq,Aq,e,t);nt(nP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Lq=rr?window:null,Nq=(e=Lq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Zs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},oP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Hq=J({name:"BreadcrumbItem",props:oP,setup(e,{slots:t}){const n=Le(nP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Nq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Yi(e){return ht(e,[255,255,255,.16])}function Qc(e){return ht(e,[0,0,0,.12])}const iP="n-button-group",jq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Vq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},jq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Uq={name:"Button",common:et,self:Vq},vr=Uq,Wq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),A2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),aP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!H2}}),lP=J({name:"Button",props:aP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(iP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Wq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Yi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?Qc(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Yi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Yi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?Qc(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Yi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Yi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?Qc(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Yi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ra($)),z&&(x+="k"+Ra(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Yi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":Qc(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(ko,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:ba(this.$slots.default)?"0":""}},u(_o,null,{default:()=>this.loading?u(Jr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u(P2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=lP,Qr=lP,fn="0!important",sP="-1px!important";function el(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:sP})])])])])}function tl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:sP})])])])])}const Kq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),el("default"),F("ghost",[el("primary"),el("info"),el("success"),el("warning"),el("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),cP={size:{type:String,default:void 0},vertical:Boolean},n0=J({name:"ButtonGroup",props:cP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Kq,t),nt(iP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Rf=1901,Ma=40,qq={date:X7,month:lh,year:u2,quarter:d2};function Do(e,t,n){const r=qq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function Cv(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},Zq),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},Jq={name:"Calendar",common:et,peers:{Button:vr},self:Qq},eY=Jq,tY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),So(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),Wo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),dP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),nY=J({name:"Calendar",props:dP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",tY,eY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Pf(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&wl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},ka(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(n0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(Qb,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Na,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===wl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),rY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},oY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:rY},iY=oY;function aY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Vs(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function lY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function sY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const cY={rgb:{hex(e){return yi(An(e))},hsl(e){const[t,n,r,o]=An(e);return bi([...cp(t,n,r),o])},hsv(e){const[t,n,r,o]=An(e);return ma([...sp(t,n,r),o])}},hex:{rgb(e){return go(An(e))},hsl(e){const[t,n,r,o]=An(e);return bi([...cp(t,n,r),o])},hsv(e){const[t,n,r,o]=An(e);return ma([...sp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=fl(e);return yi([...dp(t,n,r),o])},rgb(e){const[t,n,r,o]=fl(e);return go([...dp(t,n,r),o])},hsv(e){const[t,n,r,o]=fl(e);return ma([..._k(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ga(e);return yi([...li(t,n,r),o])},rgb(e){const[t,n,r,o]=ga(e);return go([...li(t,n,r),o])},hsl(e){const[t,n,r,o]=ga(e);return bi([...wd(t,n,r),o])}}};function uP(e,t,n){return n=n||Vs(e),n?n===t?e:cY[n][t](e):null}const rl="12px",dY=12,Xi="6px",uY=6,fY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",hY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=lY((i.clientX-s-uY)/(l-dY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:rl,borderRadius:Xi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:fY,height:rl,borderRadius:Xi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Xi,right:Xi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Xi})`,borderRadius:Xi,width:rl,height:rl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Xi,width:rl,height:rl}})))))}}),Xl="12px",vY=12,Gi="6px",pY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-vY);e.onUpdateAlpha(sY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Xl,borderRadius:Gi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Gi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Gi,right:Gi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Gi})`,borderRadius:Gi,width:Xl,height:Xl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:go(this.rgba),borderRadius:Gi,width:Xl,height:Xl}}))))}}),Jc="12px",ed="6px",gY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:Jc,height:Jc,borderRadius:ed,left:`calc(${this.displayedSv[0]}% - ${ed})`,bottom:`calc(${this.displayedSv[1]}% - ${ed})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:ed,width:Jc,height:Jc}})))}}),r0="n-color-picker";function mY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function bY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function yY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function xY(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function wY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const CY={paddingSmall:"0 4px"},bC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(r0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=xY(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=bY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=yY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=wY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=mY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(Mn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:CY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),SY=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?yi:vs)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ma:hp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?go:fp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?bi:vp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(W2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?yi:vs)(r)}catch{}return u(bC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(bC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),_Y=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(r0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?bi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function kY(e,t){if(t==="hsv"){const[n,r,o,i]=ga(e);return go([...li(n,r,o),i])}return e}function RY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const PY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Vs(i);return{value:i,mode:a,legalValue:kY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=RY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:uP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),$Y=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Vs(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,uP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),TY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),fP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),OY=J({name:"ColorPicker",props:fP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",TY,iY,e,s);nt(r0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?aY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Vs(g.value)),{modes:w}=e,k=D(Vs(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ga(N);case"hsl":return[T,$,R,j]=fl(N),[..._k(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=An(N),[...sp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return An(N);case"hsv":return[T,$,I,j]=ga(N),[...li(T,$,I),j];case"hsl":return[T,$,R,j]=fl(N),[...dp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return fl(N);case"hsv":return[T,$,I,j]=ga(N),[...wd(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=An(N),[...cp(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ma:hp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?bi:vp)([...wd(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?go:fp)([...li(Z,N,te),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ma:hp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?go:fp)([...li(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?bi:vp)([...wd(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ma([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(go([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(yi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(bi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(gY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(hY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(pY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u($Y,{clsPrefix:Pe,mode:k.value,color:U.value&&vs(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(SY,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(PY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:Dn(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(_Y,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),zY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},MY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},zY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},IY={name:"Card",common:et,self:MY},hP=IY,FY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Dk({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),So(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),Wo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),o0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},DY=Ln(o0),vP=Object.assign(Object.assign({},Se.props),o0),pP=J({name:"Card",props:vP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",FY,hP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=mi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Yo,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),AY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),BY={name:"Carousel",common:et,self:AY},EY=BY;function LY(e){const{length:t}=e;return t>1&&(e.push(yC(e[0],0,"append")),e.unshift(yC(e[t-1],t-1,"prepend"))),e}function yC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function xC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function Sv(e,t){return t?e+1:e}function NY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function HY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function jY(e,t){return t&&e>3?e-2:e}function wC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function CC(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function td(e,t,n){return en?n:e}function VY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const gP="n-carousel-methods",UY=e=>nt(gP,e),i0=(e="unknown",t="component")=>{const n=Le(gP);return n||Fn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},WY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},KY=J({name:"CarouselDots",props:WY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=i0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Xm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},aD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),qY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),YY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),XY=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=i0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},qY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},YY))}}),du="CarouselItem",GY=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===du},mP=J({name:du,setup(e){const{mergedClsPrefixRef:t}=He(e),n=i0(Rw(du),`n-${Rw(du)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),ZY=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),QY=["transitionDuration","transitionTimingFunction"],bP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let _v=!1;const JY=J({name:"Carousel",props:bP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>CC(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,QY):{}}),w=P(()=>h.value?0:VY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GejY(_.value,f.value)),$=Sv(e.defaultIndex,f.value),R=D(xC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>Sv(I.value,f.value));function A(oe){var Fe,Ne;oe=td(oe,0,_.value-1);const Ze=xC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return NY(oe,_.value,e.loop)}function j(oe=z.value){return HY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=td(Sv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};UY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Xs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(_v||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;_v=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=wC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=wC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=td(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(_v=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=CC(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Gm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",ZY,EY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=eX(p);return b.length||(b=p.map(m=>u(mP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=LY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&ka(h,d,()=>[u(KY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&ka(v,c,()=>[u(XY,null)]))}});function eX(e){return e.reduce((t,n)=>(GY(n)&&t.push(n),t),[])}const tX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},nX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},tX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},rX={name:"Checkbox",common:et,self:nX},Ml=rX,oX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},iX={name:"Cascader",common:et,peers:{InternalSelectMenu:zl,InternalSelection:ch,Scrollbar:hr,Checkbox:Ml,Empty:Di},self:oX},aX=iX;function nd(e){return e?e.map(t=>t.rawNode):null}function lX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Yg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Yg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const sX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),cX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),yP="n-checkbox-group",xP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},wP=J({name:"CheckboxGroup",props:xP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(yP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),dX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),So(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),Wo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),CP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Xo=J({name:"Checkbox",props:CP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(yP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",dX,Ml,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(_o,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},cX):u("div",{key:"check",class:`${c}-checkbox-icon`},sX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),cc="n-cascader",SC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(cc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Xo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Zb,null)}):null}):null:u(Jr,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Na,null)})}))))}}),uX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(cc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(Eo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(SC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(SC,{key:r.key,tmNode:r}))}))}}),fX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(cc),l=[],s=D(null),c=D(null);function d(){o()}th(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(uX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(lK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ai,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Ro,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),hX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(cc),v=D(null),p=P(()=>lX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>eo(m.value,dh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(sc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),vX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),SP=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),pX=J({name:"Cascader",props:SP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",vX,aX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return eo(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ua(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return nd((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof C2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,nd(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,nd((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return nd((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Yg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Yg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&(Pa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(cc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:Dn(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(fX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(hX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),gX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},mX={name:"Code",common:et,self:gX},_P=mX,bX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),kP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),RP=J({name:"Code",props:kP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:f2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",bX,_P,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),yX=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},xX={name:"Collapse",common:et,self:yX},wX=xX,CX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),No({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),PP=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),$P="n-collapse",SX=J({name:"Collapse",props:PP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",CX,wX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt($P,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),_X=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Ek(xe(e,"show"))}},render(){return u(ko,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),TP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},kX=J({name:"CollapseItem",props:TP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le($P);o||Fn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=ka(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},ka(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(Qb,null):u(Na,null)})]})),n==="left"&&l),sD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(_X,{clsPrefix:i,displayDirective:o,show:!r},t))}}),RX=S("collapse-transition",{width:"100%"},[No()]),PX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},$X={name:"CollapseTransition",common:et,self:PX},TX=$X,OP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),OX=J({name:"CollapseTransition",props:OP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",RX,TX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(ko,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),zP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},MP=J({name:"ConfigProvider",alias:["App"],props:zP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:sl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=pu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=pu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${As(JSON.stringify(r.value))}`:g:m?As(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||GR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),IP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},zX=J({name:"Countdown",props:IP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),MX=e=>1-Math.pow(1-e,5);function IX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*MX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const FP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},FX=J({name:"NumberAnimation",props:FP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&IX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=XN(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function DX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const AX={name:"Popselect",common:et,peers:{Popover:Va,InternalSelectMenu:zl},self:DX},a0=AX,DP="n-popselect",BX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),l0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},_C=Ln(l0),EX=J({name:"PopselectPanel",props:l0,setup(e){const t=Le(DP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",BX,a0,t.props,n),i=P(()=>eo(e.options,dh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(sc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),AP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Da(za,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},za.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),l0),BP=J({name:"Popselect",props:AP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,a0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(DP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(EX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,_C),{ref:Pk(r),onMouseenter:ps([i,l.onMouseenter]),onMouseleave:ps([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Ua,Object.assign({},Da(this.$props,_C),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function LX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const NX={name:"Select",common:et,peers:{InternalSelection:ch,InternalSelectMenu:zl},self:LX},EP=NX,HX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),LP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),NP=J({name:"Select",props:LP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",HX,EP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=dh(G,q);return eo(z.value,_e)}),h=P(()=>YK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=_i(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return bv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?bv(Be,ze):typeof ze=="number"?bv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:qK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&(Pa(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:Dn(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(sc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),jX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},VX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},jX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},UX={name:"Pagination",common:et,peers:{Select:EP,Input:kr,Popselect:a0},self:VX},HP=UX;function WX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:kC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function kC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const RC=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,PC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],KX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",RC,PC),O("&:hover",RC,PC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),jP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),VP=J({name:"Pagination",props:jP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",KX,HP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>WX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||pp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||pp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(Pi,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(Mn,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u($i,null):u(Ti,null)}):u(st,{clsPrefix:t},{default:()=>u(lC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u($i,null)}):u(st,{clsPrefix:t},{default:()=>u(lC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(BP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Pi,null):u(Oi,null)})));case"size-picker":return!m&&l?u(NP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(Mn,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),qX={padding:"8px 14px"},YX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},qX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},XX={name:"Tooltip",common:et,peers:{Popover:Va},self:YX},uh=XX,GX={name:"Ellipsis",common:et,peers:{Tooltip:uh}},UP=GX,ZX={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},QX=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},ZX),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},JX={name:"Radio",common:et,self:QX},s0=JX,eG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},tG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},eG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},nG={name:"Dropdown",common:et,peers:{Popover:Va},self:tG},c0=nG,rG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},oG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},rG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},iG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Ml,Radio:s0,Pagination:HP,Scrollbar:hr,Empty:Di,Popover:Va,Ellipsis:UP,Dropdown:c0},self:oG},aG=iG,WP=Object.assign(Object.assign({},za),Se.props),fh=J({name:"Tooltip",props:WP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,uh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Ua,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),lG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function $C(e){return`${e}-ellipsis--line-clamp`}function TC(e,t){return`${e}-ellipsis--cursor-${t}`}const KP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),d0=J({name:"Ellipsis",inheritAttrs:!1,props:KP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",lG,UP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Gs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?$C(r.value):void 0,e.expandTrigger==="click"?TC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=$C(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=TC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(fh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),sG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),qP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),to="n-data-table",cG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(to),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(sG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(v2,null)}))}}),dG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),hh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},YP="n-radio-group";function XP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(YP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const uG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),u0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),hh),setup(e){const t=XP(e),n=Se("Radio","-radio",uG,s0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),fG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function hG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=hG(Ir(tc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),vG=hh,pG=J({name:"RadioButton",props:hh,setup:XP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),QP=40,JP=40;function OC(e){if(e.type==="selection")return e.width===void 0?QP:dn(e.width);if(e.type==="expand")return e.width===void 0?JP:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function gG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:QP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:JP);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function zC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function mG(e){return e==="ascend"?1:e==="descend"?-1:0}function bG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yG(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=gG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function xG(e,t,n){return typeof n=="function"?n(e,t):n||""}function kv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Rv(e){return"children"in e?!1:!!e.sorter}function e$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function MC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function IC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:IC(!1)}:Object.assign(Object.assign({},t),{order:IC(t.order)})}function t$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const CG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(to),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return kv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:kv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||kv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(wP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Xo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(ZP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(u0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function SG(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const _G=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(to),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=SG(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Ua,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(dG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(rW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(CG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),kG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(to),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),n$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),RG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},PG={name:"Icon",common:et,self:RG},$G=PG,TG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),r$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),o$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:r$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",TG,$G,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),f0="n-dropdown-menu",vh="n-dropdown",FC="n-dropdown-option";function Xg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function OG(e){return e.type==="group"}function i$(e){return e.type==="divider"}function zG(e){return e.type==="render"}const a$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(vh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(FC,null),g=Le(f0),y=Le(Tl),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Xg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=AD(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(FC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(l$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(o$,null,{default:()=>u(Na,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),MG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(f0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(vh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),IG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(MG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:i$(i)?u(n$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(a$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),FG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),l$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(vh);nt(f0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Xg(s,o));const{rawNode:l}=i;return Xg(l,o)})})});const r=D(null);return nt(rc,null),nt(oc,null),nt(Tl,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:zG(i)?u(FG,{tmNode:o,key:o.key}):i$(i)?u(n$,{clsPrefix:t,key:o.key}):OG(i)?u(IG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(a$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(_f,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?T2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),DG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),AG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},BG=Object.keys(za),s$=Object.assign(Object.assign(Object.assign({},za),AG),Se.props),h0=J({name:"Dropdown",inheritAttrs:!1,props:s$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return eo(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);Sb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",DG,c0,e,h);nt(vh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:Pk(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(l$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Ua,Object.assign({},mn(this.$props,BG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),c$="_n_all__",d$="_n_none__";function EG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case c$:n(!0);return;case d$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function LG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:c$};case"none":return{label:t.uncheckTableAll,key:d$};default:return n}}):[]}const NG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(to),l=P(()=>EG(r.value,o,i,a)),s=P(()=>LG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(h0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(y2,null)})})}}});function Pv(e){return typeof e.title=="function"?e.title(e):e.title}const u$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(to),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!Rv(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=wG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=bG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Xo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(NG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Pv(R)):U&&typeof U=="object"?u(d0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Pv(R)}):Pv(R)),Rv(R)?u(cG,{column:R}):null),MC(R)?u(_G,{column:R,options:R.filterOptions}):null,e$(R)?u(kG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:t$(R,b),[`${t}-data-table-th--filterable`]:MC(R),[`${t}-data-table-th--sortable`]:Rv(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),HG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(Hs(n,a),n,t):Hs(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(d0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),DC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Na,null)})}))}}),jG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(to);return()=>{const{rowKey:r}=e;return u(Xo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),VG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(to);return()=>{const{rowKey:r}=e;return u(u0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function UG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const WG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),KG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(to),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:xl}),ut=!0}),Zs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?UG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:xG(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(VG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(jG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(DC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(HG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(Eo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:WG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(u$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ai,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),qG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(to),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(u$,{ref:"headerInstRef"}),u(KG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function YG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function rd(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function XG(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?GG(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function GG(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function ZG(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=rd(p.sorter)||0;return(rd(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=XG(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*mG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&rd(v.sorter)!==!1?(p=p.filter(b=>rd(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function QG(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return eo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(zC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=ZG(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=zC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function JG(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=OC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=OC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&_a(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&_a(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function eZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){e$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function tZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:yG(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function nZ(e,t){const n=P(()=>tZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function rZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const AC=iZ(),oZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),AC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),AC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),So(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Wo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function iZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const aZ=J({name:"DataTable",alias:["AdvancedTable"],props:qP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",oZ,aG,e,r),l=D(null),s=D("body");Gs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=eZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=nZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=QG(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=YG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=rZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=JG(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(to,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:Po,[ye("fontSize",Ve)]:Go,[ye("thPadding",Ve)]:Zo,[ye("tdPadding",Ve)]:Qo}}=a.value;return{"--n-font-size":Go,"--n-th-padding":Zo,"--n-td-padding":Qo,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":Po}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(qG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(VP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(Jr,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),lZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},sZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},lZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},cZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:sZ},f$=cZ,dZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},uZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},dZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},fZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:f$,Scrollbar:hr},self:uZ},hZ=fZ;function vZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function pZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[0]),p=Hu(h[0]),b=ju(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[1]),p=Hu(h[1]),b=ju(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const ph="n-date-picker";function gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gg={exports:{}},Zg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Zg,Zg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Zg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Gg,Gg.exports);const gZ=gh(Gg.exports);var Qg={exports:{}},Jg={exports:{}},em={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(em,em.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(em.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(Jg,Jg.exports);var tm={exports:{}},nm={exports:{}},Ho={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Ho,Ho.exports);const mZ=gh(Ho.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ho.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(nm,nm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Xn.exports),o=i(Ho.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(om,om.exports);var im={exports:{}},Us={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})($f,$f.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i($f.exports),r=i(Us.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(am,am.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Us.exports),o=a(am.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(im,im.exports);var lm={exports:{}},Ws={exports:{}},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getDefaultOptions=bZ;Wa.setDefaultOptions=yZ;var h$={};function bZ(){return h$}function yZ(e){h$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Ho.exports),i=Wa;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Tf,Tf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Tf.exports),r=l(Xn.exports),o=l(Ws.exports),i=l(Ho.exports),a=Wa;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(lm,lm.exports);var Of={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(cm,cm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(om.exports),r=c(im.exports),o=c($f.exports),i=c(lm.exports),a=c(Tf.exports),l=c(Of.exports),s=c(cm.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(rm,rm.exports);var dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(dm,dm.exports);var zf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(zf,zf.exports);const BC=gh(zf.exports);var dc={};Object.defineProperty(dc,"__esModule",{value:!0});dc.isProtectedDayOfYearToken=CZ;dc.isProtectedWeekYearToken=SZ;dc.throwProtectedError=_Z;var xZ=["D","DD"],wZ=["YY","YYYY"];function CZ(e){return xZ.indexOf(e)!==-1}function SZ(e){return wZ.indexOf(e)!==-1}function _Z(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var um={exports:{}},fm={exports:{}},hm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(hm,hm.exports);var vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(pm,pm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(pm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(vm,vm.exports);var gm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(gm,gm.exports);var mm={exports:{}},bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(bm,bm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(bm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(mm,mm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(xm.exports),r=o(wm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(ym,ym.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(hm.exports),r=l(vm.exports),o=l(gm.exports),i=l(mm.exports),a=l(ym.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(fm,fm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(fm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(Jg.exports),r=v(tm.exports),o=v(Lr.exports),i=v(rm.exports),a=v(dm.exports),l=v(zf.exports),s=dc,c=v(Ho.exports),d=v(Xn.exports),f=Wa,h=v(um.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(Qg,Qg.exports);const kZ=gh(Qg.exports);function EC(e,t,n){var r=$Z(e,n.timeZone,n.locale);return r.formatToParts?RZ(r,t):PZ(r,t)}function RZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function PZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function $Z(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function TZ(e,t){var n=IZ(t);return n.formatToParts?zZ(n,e):MZ(n,e)}var OZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function zZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function MZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var $v={};function IZ(e){if(!$v[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";$v[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return $v[e]}function v$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var LC=36e5,FZ=6e4,Tv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function v0(e,t,n){var r,o;if(!e||(r=Tv.timezoneZ.exec(e),r))return 0;var i;if(r=Tv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),NC(i)?-(i*LC):NaN;if(r=Tv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return NC(i,a)?(o=Math.abs(i)*LC+a*FZ,i>0?-o:o):NaN}if(BZ(e)){t=new Date(t||Date.now());var l=n?t:DZ(t),s=Cm(l,e),c=n?s:AZ(t,s,e);return-c}return NaN}function DZ(e){return v$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Cm(e,t){var n=TZ(e,t),r=v$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function AZ(e,t,n){var r=e.getTime(),o=r-t,i=Cm(new Date(o),n);if(t===i)return t;o-=i-t;var a=Cm(new Date(o),n);return i===a?i:Math.max(i,a)}function NC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var HC={};function BZ(e){if(HC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),HC[e]=!0,!0}catch{return!1}}var EZ=60*1e3,LZ={X:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return jC(o);case"XXXX":case"XX":return al(o);case"XXXXX":case"XXX":default:return al(o,":")}},x:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);switch(t){case"x":return jC(o);case"xxxx":case"xx":return al(o);case"xxxxx":case"xxx":default:return al(o,":")}},O:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+NZ(o,":");case"OOOO":default:return"GMT"+al(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return EC("short",o,r);case"zzzz":default:return EC("long",o,r)}}};function Ov(e,t){var n=e?v0(e,t,!0)/EZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Mf(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Mf(Math.floor(o/60),2),a=Mf(Math.floor(o%60),2);return r+i+n+a}function jC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Mf(Math.abs(e)/60,2)}return al(e,t)}function NZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Mf(i,2)}const HZ=LZ;var jZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const VZ=jZ;var zv=36e5,VC=6e4,UZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:VZ};function p$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?UZ:mZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=WZ(e),i=KZ(o.date,r),a=i.year,l=i.restDateString,s=qZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=YZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=v0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=BC(new Date(c+d)),f=BC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function WZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function KZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function qZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,WC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return ZZ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return WC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,KC(t,i)?UC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return KC(t,i,s)?UC(t,i,s):new Date(NaN)}return null}function YZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Mv(n)?n%24*zv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Mv(n,r)?n%24*zv+r*VC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Mv(n,r,o)?n%24*zv+r*VC+o*1e3:NaN}return null}function UC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var XZ=[31,28,31,30,31,30,31,31,30,31,30,31],GZ=[31,29,31,30,31,30,31,31,30,31,30,31];function g$(e){return e%400===0||e%4===0&&e%100!==0}function WC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=g$(e);if(r&&n>GZ[t]||!r&&n>XZ[t])return!1}return!0}function ZZ(e,t){if(t<1)return!1;var n=g$(e);return!(n&&t>366||!n&&t>365)}function KC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Mv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var QZ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function JZ(e,t,n){var r=String(t),o=n||{},i=r.match(QZ);if(i){var a=p$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+HZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return kZ(e,r,o)}function eQ(e,t,n){var r=p$(e,n),o=v0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function m$(e,t,n,r){var o=gZ(r);return o.timeZone=t,JZ(eQ(e,t),n,o)}const ns={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Iv(e){return`00${e}`.slice(-2)}function rs(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Iv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Iv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Iv(r===12?12:r-12)):e}function od(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function tQ(e,t,n){const r=rs(ns[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Fn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function nQ(e){return si(e)<12?"am":"pm"}const b$="n-time-picker",id=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),rQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},oQ=J({name:"TimePickerPanel",props:rQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(b$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:nQ(Date.now());return rs(ns.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return rs(ns.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return rs(ns.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return rs(ns.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Ro,{onFocus:this.onFocusDetectorFocus}))}}),iQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Fv(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const y$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Fv(e,23)},minutes:{type:[Number,Array],validator:e=>Fv(e,59)},seconds:{type:[Number,Array],validator:e=>Fv(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),If=J({name:"TimePicker",props:y$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",iQ,f$,e,n),h=Sb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>m$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:od(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!od(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!od(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:si(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&Pa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Pa(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(qi(WU(new Date),se))):pe(tt(qi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(fv(Q7(new Date),se))):pe(tt(fv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(hv(Xb(new Date),se))):pe(tt(hv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=si(oe);se==="pm"&&Fe<12?pe(tt(qi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(qi(oe,Fe-12))),pe(tt(oe))}else{const oe=si($e);se==="pm"&&oe<12?pe(tt(qi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(qi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=Hn(oe,{hours:si($e),minutes:Hu($e),seconds:ju($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:si,minutes:Hu,seconds:ju},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||od($e[Ue](se),Ue,e[Ue])?$e[Ue](se):tQ($e[Ue](se),Ue,e[Ue])),Ze=hv(fv(qi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(b$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:Dn(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(Mn,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(iW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(oQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),aQ="HH:mm:ss",x$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:aQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function w$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(ph),l=P(()=>({locale:t.value.locale})),s=D(null),c=Sb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const p0=Object.assign(Object.assign({},x$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function g0(e,t){const n=w$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(ph),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Pf(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return Wg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return qg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Kg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(lh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Xb(B):t==="month"?Tr(B):t==="year"?jb(B):t==="quarter"?js(B):wl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=Hn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=Hn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=cu(e.defaultTime);te&&(N=tt(Hn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?KU(iC(N,B.dateObject.year),B.dateObject.quarter):Hn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Gb(te,B.dateObject.month):iC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Op(g.value,1))}function we(){g.value=tt(Op(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ma})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Rf;y.value.scrollTo({top:te*Ma})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const C$=J({name:"MonthPanel",props:Object.assign(Object.assign({},p0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=g0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"yearVlRef",items:this.yearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),_l=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(C$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),lQ=J({name:"DateTimePanel",props:p0,setup(e){return g0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(Mn,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(If,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u($i,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),m0=Object.assign(Object.assign({},x$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function b0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(ph),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=w$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Pf(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Pf(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>qg(nl(e.value,"start"),ee.value)),ve=P(()=>qg(nl(e.value,"end"),ee.value)),Z=P(()=>{const Re=nl(e.value,"start");return Kg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=nl(e.value,"end");return Kg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=nl(e.value,"start");return Wg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=nl(e.value,"end");return Wg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=cu(At[0]),Ut=cu(At[1])):(kt=cu(At),Ut=kt)}kt&&(Re=tt(Hn(Re,kt))),Ut&&(Ye=tt(Hn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Xb(Re):t==="monthrange"?Tr(Re):wl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=Hn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=Hn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=Hn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=Hn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=Hn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=Hn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=Hn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=Hn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Rf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Rf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?Hn(Re.ts,{month:qt(t==="quarterrange"?js(new Date):new Date)}).valueOf():Hn(Re.ts,{month:qt(t==="quarterrange"?js(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const sQ=J({name:"DateTimeRangePanel",props:m0,setup(e){return b0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(Mn,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(If,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(Mn,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(If,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),cQ=J({name:"DatePanel",props:p0,setup(e){return g0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),dQ=J({name:"DateRangePanel",props:m0,setup(e){return b0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),uQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0}}),setup(e){const t=b0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Zm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),fQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),S$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),hQ=J({name:"DatePicker",props:S$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",fQ,hZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&(Pa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Pa(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=vZ(e,A),We=pZ(e,A);nt(ph,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:Po,calendarDaysHeight:Go,calendarDaysTextColor:Zo,arrowSize:Qo,panelHeaderPadding:Ei,calendarDividerColor:Ch,calendarTitleGridTempateColumns:Sh,iconColor:_h,iconColorDisabled:kh,scrollItemBorderRadius:Rh,calendarTitleColorHover:Ph,[ye("calendarLeftPadding",ae)]:$h,[ye("calendarRightPadding",ae)]:Th}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ei,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":$h,"--n-calendar-right-padding":Th,"--n-calendar-title-color-hover":Ph,"--n-calendar-title-height":Po,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Sh,"--n-calendar-days-height":Go,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Zo,"--n-calendar-divider-color":Ch,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Rh,"--n-arrow-size":Qo,"--n-arrow-color":be,"--n-icon-color":_h,"--n-icon-color-disabled":kh}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:Dn(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(lQ,Object.assign({},o),r):l==="daterange"?u(dQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(sQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(C$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(uQ,Object.assign({},o,{type:l})):u(cQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(Mn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(cW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(aC,null)})])}):u(Mn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(aC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),vQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},pQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},vQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},gQ={name:"Descriptions",common:et,self:pQ},mQ=gQ,_$="DESCRIPTION_ITEM_FLAG";function bQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[_$]:!1}const yQ=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),So(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),k$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),xQ=J({name:"Descriptions",props:k$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",yQ,mQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:_i(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>bQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Px(g,"label")],k=[Px(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||tc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),R$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},wQ=J({name:"DescriptionsItem",[_$]:!0,props:R$,render(){return null}}),CQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},SQ=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},CQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},_Q={name:"Dialog",common:et,peers:{Button:vr},self:SQ},P$=_Q,uc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},$$=Ln(uc),kQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),So(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Dk(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),RQ={default:()=>u(zi,null),info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null)},y0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),uc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",kQ,P$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):RQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Yo,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),T$="n-dialog-provider",O$="n-dialog-api",z$="n-dialog-reactive-list",PQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},$Q={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:P$,Card:hP},self:PQ},TQ=$Q,x0=Object.assign(Object.assign({},o0),uc),OQ=Ln(x0),zQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},x0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),oR(P(()=>e.blockScroll&&r.value));const a=Le(Vk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(rc,t),nt(oc,null),nt(Tl,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Tu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u($b,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(y0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,$$),{"aria-modal":"true"}),e):this.preset==="card"?u(pP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,DY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),MQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Lo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),M$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),x0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),I$=J({name:"Modal",inheritAttrs:!1,props:M$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",MQ,TQ,e,n),a=Hk(64),l=Nk(),s=Dn(),c=e.internalDialog?Le(T$,null):null,d=iR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Bk(w)&&!d.value&&f(!1)}nt(Vk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,OQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(ac,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(zQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ic,{zIndex:this.zIndex,enabled:this.show}]])}})}}),IQ=Object.assign(Object.assign({},uc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),FQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},IQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(I$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(y0,Object.assign({},mn(this.$props,$$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),F$={injectionKey:String,to:[String,Object]},D$=J({name:"DialogProvider",props:F$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Mi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(O$,a),nt(T$,{clickedRef:Hk(64),clickPositionRef:Nk()}),nt(z$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(FQ,Da(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function A$(){const e=Le(O$,null);return e===null&&Fn("use-dialog","No outer founded."),e}function DQ(){const e=Le(z$,null);return e===null&&Fn("use-dialog-reactive-list","No outer founded."),e}const AQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},BQ={name:"Divider",common:et,self:AQ},EQ=BQ,LQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),B$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),NQ=J({name:"Divider",props:B$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",LQ,EQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),HQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},jQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:HQ},VQ=jQ,UQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(kb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return oR(P(()=>e.blockScroll&&t.value)),nt(oc,n),nt(Tl,null),nt(rc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u($b,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:WQ,cubicBezierEaseOut:KQ}=_r;function qQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${WQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${KQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:YQ,cubicBezierEaseOut:XQ}=_r;function GQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${YQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${XQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:ZQ,cubicBezierEaseOut:QQ}=_r;function JQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ZQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${QQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:eJ,cubicBezierEaseOut:tJ}=_r;function nJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${eJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const rJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[qQ(),GQ(),JQ(),nJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Lo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),E$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),oJ=J({name:"Drawer",inheritAttrs:!1,props:E$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Dn(),i=Se("Drawer","-drawer",rJ,VQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=iR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Bk(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(kb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(ac,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(UQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ic,{zIndex:this.zIndex,enabled:this.show}]])}})}}),L$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},iJ=J({name:"DrawerContent",props:L$,setup(){const e=Le(kb,null);e||Fn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Yo,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),aJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},lJ=()=>aJ,sJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:lJ},cJ=sJ,w0="n-dynamic-input",dJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(w0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),uJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(w0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),fJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),ad=new WeakMap,N$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),hJ=J({name:"DynamicInput",props:N$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(zu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",fJ,cJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=fa($)?zt($):$;let z=ad.get(I);return z===void 0&&ad.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=fa(A)?zt(A):A,j=fa(R)?zt(R):R,E=ad.get(L);E!==void 0&&ad.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(w0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(Sl,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},ka(e.default,{value:r[y],index:y},()=>[s==="input"?u(dJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(uJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(n0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(m2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(ZU,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(v2,null)})}):null]})))))}}),vJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},pJ=()=>vJ,gJ={name:"Space",self:pJ},H$=gJ;let Dv;const mJ=()=>{if(!rr)return!0;if(Dv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Dv=t}return Dv},j$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),V$=J({name:"Space",props:j$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,H$,e,t),o=Zt("Space",n,t);return{useGap:mJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=ZF(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(tc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),bJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:z2,Space:H$},self(){return{inputWidth:"64px"}}},yJ=bJ,xJ=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),U$=Object.assign(Object.assign(Object.assign({},Se.props),M2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),wJ=J({name:"DynamicTags",props:U$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",xJ,yJ,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>pp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(V$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(xs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(Mn,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}))}})}}),CJ={name:"Element",common:et},SJ=CJ,W$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),qC=J({name:"Element",alias:["El"],props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,SJ,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${YR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),_J={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},kJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},_J),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},RJ={name:"Form",common:et,self:kJ},K$=RJ,PJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),fc="n-form",q$="n-form-item-insts";var $J=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const Y$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),TJ=J({name:"Form",props:Y$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",PJ,K$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return $J(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Ln(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Ln(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(fc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(q$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uu(e,t,n){return zJ()?uu=Reflect.construct.bind():uu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&Ks(c,a.prototype),c},uu.apply(null,arguments)}function MJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _m(e){var t=typeof Map=="function"?new Map:void 0;return _m=function(r){if(r===null||!MJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return uu(r,arguments,Sm(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ks(o,r)},_m(e)}var IJ=/%[sdj%]/g,FJ=function(){};typeof process<"u"&&process.env;function km(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function DJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function In(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DJ(t)&&typeof e=="string"&&!e)}function AJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function YC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},os={integer:function(t){return os.number(t)&&parseInt(t,10)===t},float:function(t){return os.number(t)&&!os.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!os.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(QC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jJ())},hex:function(t){return typeof t=="string"&&!!t.match(QC.hex)}},VJ=function(t,n,r,o,i){if(t.required&&n===void 0){X$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?os[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},UJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},ol="enum",WJ=function(t,n,r,o,i){t[ol]=Array.isArray(t[ol])?t[ol]:[],t[ol].indexOf(n)===-1&&o.push(mr(i.messages[ol],t.fullField,t[ol].join(", ")))},KJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:X$,whitespace:HJ,type:VJ,range:UJ,enum:WJ,pattern:KJ},qJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),In(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},YJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},XJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},GJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},ZJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),In(n)||Bt.type(t,n,o,a,i)}r(a)},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},nee="enum",ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[nee](t,n,o,a,i)}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),In(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!In(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},aee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Av=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(In(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),In(n,a)||Bt.type(t,n,o,l,i)}r(l)},lee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},ws={string:qJ,method:YJ,number:XJ,boolean:GJ,regexp:ZJ,integer:QJ,float:JJ,array:eee,object:tee,enum:ree,pattern:oee,date:iee,url:Av,hex:Av,email:Av,required:aee,any:lee};function Rm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Pm=Rm(),hc=function(){function e(n){this.rules=null,this._messages=Pm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=ZC(Rm(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function cee(e){const t=Le(fc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function dee(e){const t=Le(fc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=Hs(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:JC}=_r;function uee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=JC,leaveCubicBezier:i=JC}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const fee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),uee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var eS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),G$=Ln(vc);function tS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const C0=J({name:"FormItem",props:vc,setup(e){ID(q$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(fc,null),o=see(e),i=cee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=dee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",fee,K$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return eS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>eS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?Hs(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=tS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=tS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new hc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(zu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),nS=1,Z$="n-grid",Q$=1,qs={span:{type:[Number,String],default:Q$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},hee=Ln(qs),$m=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:qs,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Z$),i=Uo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=Q$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),Tm=Object.assign(Object.assign({},qs),vc),rS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:Tm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u($m,mn(this.$.vnode.props||{},hee),{default:()=>{const e=mn(this.$props,G$);return u(C0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),vee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),pee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),vee])]),J$="n-row",mh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},gee=Ln(mh),eT=J({name:"Row",props:mh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",pee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(J$,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),bh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},mee=Ln(bh),tT=J({name:"Col",props:bh,setup(e){const t=Le(J$,null);return t||Fn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),S0=Object.assign(Object.assign({},bh),vc),bee=Ln(S0),nT=J({name:"FormItemCol",props:S0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,mee),{default:()=>{const e=mn(this.$props,G$);return u(C0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),yee=Object.assign(Object.assign({},mh),S0),xee=J({name:"FormItemRow",props:yee,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(eT,mn(this.$props,gee),{default:()=>{const e=mn(this.$props,bee);return u(nT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),wee=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Vo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?sl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Zs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Cee=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},See={name:"GradientText",common:et,self:Cee},_ee=See,kee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),rT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Ree=J({name:"GradientText",props:rT,setup(e){Rb();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",kee,_ee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Pee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},oT=24,Bv="__ssr__",iT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:oT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},$ee=J({name:"Grid",inheritAttrs:!1,props:iT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=YD((n==null?void 0:n.value)||Pee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(jl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:oT}),c=it(()=>jl(e.xGap.toString(),l.value)),d=it(()=>jl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{_a(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Bv)&&(g.removeAttribute(Bv),b.value=!0)}),nt(Z$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(tc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(cD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=jl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:nS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:nS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=jl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Bv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Tee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Oee={name:"IconWrapper",common:et,self:Tee},zee=Oee,Mee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),aT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Iee=J({name:"IconWrapper",props:aT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Mee,zee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),_0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),lT="n-image";function Fee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Dee={name:"Image",common:et,peers:{Tooltip:uh},self:Fee},Aee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Bee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Aee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},Eee={name:"Notification",common:et,peers:{Scrollbar:hr},self:Bee},Lee=Eee,Nee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Hee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Nee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},jee={name:"Message",common:et,self:Hee},Vee=jee,Uee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Wee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Uee},Kee=Wee,qee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Yee={name:"Layout",common:et,peers:{Scrollbar:hr},self:qee},yh=Yee,Xee=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},Gee={name:"List",common:et,self:Xee},Zee=Gee,Qee=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},Jee={name:"LoadingBar",common:et,self:Qee},ete=Jee,tte=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},nte={name:"Log",common:et,peers:{Scrollbar:hr,Code:_P},self:tte},rte=nte,ote=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},ite={name:"Mention",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:ote},ate=ite;function lte(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const ste=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},lte("#BBB",r,"#FFF","#AAA"))},cte={name:"Menu",common:et,peers:{Tooltip:uh,Dropdown:c0},self:ste},dte=cte,ute={titleFontSize:"18px",backSize:"22px"};function fte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},ute),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const hte={name:"PageHeader",common:et,self:fte},vte={iconSize:"22px"},pte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},vte),{fontSize:t,iconColor:n})},gte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Va},self:pte},mte=gte,bte=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},yte={name:"Progress",common:et,self:bte},sT=yte,xte=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},wte={name:"Rate",common:et,self:xte},Cte=wte,Ste={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},_te=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},Ste),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},kte={name:"Result",common:et,self:_te},Rte=kte,Pte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},$te=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},Pte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Tte={name:"Slider",common:et,self:$te},Ote=Tte,zte=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Mte={name:"Spin",common:et,self:zte},Ite=Mte,Fte=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Dte={name:"Statistic",common:et,self:Fte},Ate=Dte,Bte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},Ete=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},Bte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Lte={name:"Steps",common:et,self:Ete},Nte=Lte,Hte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},jte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Hte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},Vte={name:"Switch",common:et,self:jte},Ute=Vte,Wte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Kte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Wte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},qte={name:"Table",common:et,self:Kte},Yte=qte,Xte={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},Gte=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Xte),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},Zte={name:"Tabs",common:et,self:Gte},Qte=Zte,Jte=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},ene={name:"Thing",common:et,self:Jte},tne=ene,nne={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},rne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},nne),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},one={name:"Timeline",common:et,self:rne},ine=one,ane={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},lne=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},ane),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},sne={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Di,Button:vr},self:lne},cne=sne,dne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},une={name:"Tree",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Empty:Di},self:dne},cT=une,fne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},hne={name:"TreeSelect",common:et,peers:{Tree:cT,Empty:Di,InternalSelection:ch},self:fne},vne=hne,pne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},gne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},pne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},mne={name:"Typography",common:et,self:gne},Bi=mne,bne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},yne={name:"Upload",common:et,peers:{Button:vr,Progress:sT},self:bne},xne=yne,wne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Cne=wne,Sne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),_ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),kne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Rne=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Lo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Lo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),sd=32,dT=J({name:"ImagePreview",props:Object.assign(Object.assign({},_0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Rne,Dee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,_a(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Xs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${YR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(fh,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:Dn(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(ac,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Sne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>_ne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(hW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(fW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(gW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(pW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(vW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>kne}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ic,{enabled:this.show}]])):null}}))}}),uT="n-image-group",fT=_0,hT=J({name:"ImageGroup",props:fT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Uo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(uT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(dT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),vT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},_0),pT=J({name:"Image",props:vT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(uT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(pl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=X2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(lT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:pl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:pl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(dT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Pne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function $ne(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Ev(e){return e==null?!0:!Number.isNaN(e)}function oS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Lv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Tne=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),iS=800,aS=100,gT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),One=J({name:"InputNumber",props:gT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Tne,Kee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Lv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Lv(e.min);return B!==null?B:null}),k=it(()=>{const B=Lv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&$ne(Z))return!1;const fe=(e.parse||Pne)(Z);if(fe===null)return N&&_(null),null;if(Ev(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Ev(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=oS(B,void 0):m.value=oS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},aS)},iS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},aS)},iS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=An(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Qr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(m2,null)})])}),r=()=>u(Qr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(Sl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(Mn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),mT="n-layout-sider",xh={type:String,default:"static"},zne=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Om={embedded:Boolean,position:xh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},bT="n-layout";function yT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Om),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",zne,yh,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(bT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Ob(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Mne=yT(!1),Ine=yT(!0),Fne=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),xT={position:xh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Dne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),xT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Fne,yh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Ane=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),wT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:xh,bordered:Boolean}),Bne=J({name:"LayoutFooter",props:wT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Ane,yh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Ene=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Lne=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Na,null)}))}}),Nne=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),CT={position:xh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Hne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),CT),setup(e){const t=Le(bT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Ob(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(mT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",Ene,yh,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Nne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Lne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),jne={extraFontSize:"12px",width:"440px"},Vne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},jne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Une={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Di,Button:vr},self:Vne},Wne=Une,pc="n-transfer",lS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(pc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Xo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),sS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(pc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:nc(r)},r))}}),cS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(pc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(sS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(qf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(sS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),dS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(pc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(Mn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(b2,null)})}))}});function Kne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const qne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Yne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Lo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),qne]),ST=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Xne=J({name:"LegacyTransfer",props:ST,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Yne,Wne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Kne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(pc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Dn(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(lS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(dS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(cS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Na,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Qb,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(lS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(dS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(cS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Gne=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),So(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),_T=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),kT="n-list",Zne=J({name:"List",props:_T,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",Gne,Zee,e,t);nt(kT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),Qne=J({name:"ListItem",setup(){const e=Le(kT,null);return e||Fn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),RT="n-loading-bar",PT="n-loading-bar-api",Jne=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Lo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Nv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function cd(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ere=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(RT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return Nv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return Nv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=cd(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=cd("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=cd("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=cd("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return Nv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",Jne,ete,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),$T=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),TT=J({name:"LoadingBarProvider",props:$T,setup(e){const t=Dn(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt(PT,r),nt(RT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Qs,{disabled:this.to===!1,to:this.to||"body"},u(ere,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function OT(){const e=Le(PT,null);return e===null&&Fn("use-loading-bar","No outer founded."),e}const tre=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(Jr,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),zT="n-log",nre=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(zT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),rre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),MT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),ore=J({name:"Log",props:MT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",rre,rte,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=ys(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(zT,{languageRef:xe(e,"language"),mergedHljsRef:f2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(RP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(nre,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(tre,{clsPrefix:e}):null})])}}),gc="n-menu",k0="n-submenu",R0="n-menu-item-group",dd=8;function P0(e){const t=Le(gc),{props:n,mergedCollapsedRef:r}=t,o=Le(k0,null),i=Le(R0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?dd:(p===void 0?v:p)+b+dd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const $0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},IT=Object.assign(Object.assign({},$0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),ire=J({name:"MenuOptionGroup",props:IT,setup(e){nt(k0,null);const t=P0(e);nt(R0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(gc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>T0(s,r))))}}}),FT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(gc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(sW,null)}):null)}}),DT=Object.assign(Object.assign({},$0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),are=J({name:"Submenu",props:DT,setup(e){const t=P0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(k0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt(R0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(FT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(ko,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>T0(s,this.menuProps)))}});return this.root?u(h0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),AT=Object.assign(Object.assign({},$0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),lre=J({name:"MenuOption",props:AT,setup(e){const t=P0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(fh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(FT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),sre=J({name:"MenuDivider",setup(){const e=Le(gc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),cre=Ln(IT),dre=Ln(AT),ure=Ln(DT);function BT(e){return e.type==="divider"||e.type==="render"}function fre(e){return e.type==="divider"}function T0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(BT(n))return fre(n)?u(sre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(ire,mn(s,cre,{tmNode:e,tmNodes:e.children,key:i})):u(are,mn(s,ure,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(lre,mn(s,dre,{key:i,tmNode:e}))}const uS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],fS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],hre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",fS)]),F("selected",[Zi(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Zi(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Zi("border-bottom: 2px solid var(--n-border-color-horizontal);",fS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",uS)]),F("selected",[Zi(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Zi(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Zi(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Zi(null,uS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[No({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Zi(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const ET=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),vre=J({name:"Menu",props:ET,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",hre,dte,e,t),o=Le(mT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return eo(e.items||e.options,{getIgnored(I){return BT(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=_i(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(gc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>T0(o,this.$props)))}});function pre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const gre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),LT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),mre=J({name:"Mention",props:LT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",gre,ate,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>eo(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=pre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:Dn(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(Mn,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(sc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),NT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},HT="n-message-api",jT="n-message-provider",bre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[No({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),yre={info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null),default:()=>null},xre=J({name:"Message",props:Object.assign(Object.assign({},NT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(jT),i=Zt("Message",n,o),a=Se("Message","-message",bre,Vee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=wre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(_o,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Yo,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function wre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(Jr,{clsPrefix:n,strokeWidth:24,scale:.85}):yre[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Cre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},NT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(ko,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(xre,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),VT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),UT=J({name:"MessageProvider",props:VT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(jT,{props:e,mergedClsPrefixRef:t}),nt(HT,o);function i(s,c){const d=Cr(),f=Mi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Qs,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Cre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Da(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function WT(){const e=Le(HT,null);return e===null&&Fn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const wh="n-notification-provider",Sre=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(wh),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_re={info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null),default:()=>null},O0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},kre=Ln(O0),Rre=J({name:"Notification",props:O0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(wh),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=mi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>_re[this.type]()}):null):null,this.closable?u(Yo,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),Pre=Object.assign(Object.assign({},O0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),$re=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Pre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(wh),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Rre,Object.assign({},mn(this.$props,kre),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Tre=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[ud("top-right")]),F("top-left",` - left: 0; - `,[ud("top-left")]),F("bottom-right",` - right: 0; - `,[ud("bottom-right")]),F("bottom-left",` - left: 0; - `,[ud("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function ud(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const KT="n-notification-api",qT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),YT=J({name:"NotificationProvider",props:qT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Mi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Tre,Lee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(KT,c),nt(wh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Qs,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(Sre,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u($re,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Da(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function XT(){const e=Le(KT,null);return e===null&&Fn("use-notification","No outer `n-notification-provider` found."),e}const Ore=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),GT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),zre=J({name:"PageHeader",props:GT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Ore,hte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(uW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),ZT="n-popconfirm",QT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},hS=Ln(QT),Mre=J({name:"NPopconfirmPanel",props:QT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(ZT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Fi,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Ire=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),JT=Object.assign(Object.assign(Object.assign({},Se.props),za),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Fre=J({name:"Popconfirm",props:JT,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Ire,mte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(ZT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Ua,Da(t,hS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,hS);return u(Mre,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Dre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Are={success:u(ja,null),error:u(Ha,null),warning:u(Fi,null),info:u(zi,null)},Bre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Are[f]}))):null)}}}),Ere={success:u(ja,null),error:u(Ha,null),warning:u(Fi,null),info:u(zi,null)},Lre=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>Ere[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function vS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Nre=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:vS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:vS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),eO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),tO=J({name:"Progress",props:eO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Dre,sT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Lre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(Bre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Nre,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Hre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),jre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),nO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Vre=J({name:"Rate",props:nO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",jre,Cte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ra(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},A5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Hre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Ure=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Wre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Kre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),qre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Yre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Xre={403:qre,404:Ure,418:Kre,500:Wre,info:u(zi,null),success:u(ja,null),warning:u(Fi,null),error:u(Ha,null)},rO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Gre=J({name:"Result",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Yre,Rte,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>Xre[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),oO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Zre=J({name:"Scrollbar",props:oO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Qre=Zre,Jre=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},eoe={name:"Skeleton",common:et,self:Jre},toe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),iO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),noe=J({name:"Skeleton",inheritAttrs:!1,props:iO,setup(e){Rb();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",toe,eoe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function pS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function gS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Xm(()=>e.value.clear()),[e,t]}const roe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),So(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),Wo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),ooe=0,aO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),ioe=J({name:"Slider",props:aO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",roe,Ote,e,t),i=D(null),[a,l]=gS(),[s,c]=gS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!pS(ne)&&ne.button!==ooe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:Dn(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),aoe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Lo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),loe={small:20,medium:18,large:16},lO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),soe=J({name:"Spin",props:lO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",aoe,Ite,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:_i(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return loe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(Jr,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),coe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),sO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),doe=J({name:"Statistic",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",coe,Ate,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),uoe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function foe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function hoe(e){return e.map((t,n)=>foe(t,n))}const cO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),dO="n-steps",voe=J({name:"Steps",props:cO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",uoe,Nte,e,n);return nt(dO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},hoe(Ir(tc(this))))}}),uO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},poe=J({name:"Step",props:uO,setup(e){const t=Le(dO,null);t||Fn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(_o,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Zb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(p2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),goe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),fO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Gl;const moe=J({name:"Switch",props:fO,setup(e){Gl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Gl=CSS.supports("width","max(1px)"):Gl=!1:Gl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",goe,Ute,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Gl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(ba(s)&&ba(c)&&ba(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),boe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),So(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),Wo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),hO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),yoe=J({name:"Table",props:hO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",boe,Yte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),xoe=J({name:"Th",render(){return u("th",null,this.$slots)}}),woe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Coe=J({name:"Td",render(){return u("td",null,this.$slots)}}),Soe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),_oe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),z0="n-tabs",M0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},koe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:M0,setup(e){const t=Le(z0,null);return t||Fn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),vO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Da(M0,["displayDirective"])),Ff=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:vO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(z0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(Sl,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Yo,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Roe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),pO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Poe=J({name:"Tabs",props:pO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",Roe,Qte,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=_i(e,["labelSize","size"]),g=_i(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=ys(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=ys(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=ys(X=>{pe(X.target)},64);nt(z0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),Jf(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Hv(u(Ff,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Hv(x!==0&&!m?yS(C):C))),!r&&o&&p?bS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Ff,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:yS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(NA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?bS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},mS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):mS(f,this.mergedValue,this.renderedNames)))}});function mS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(qf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function bS(e,t){return u(Ff,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function yS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Hv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const $oe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Toe=J({name:"Thing",props:gO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",$oe,tne,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),mO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Ooe=J({name:"Time",props:mO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>m$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Yw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Yw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):yH(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?wa(this.renderedTime):u("time",[this.renderedTime])}}),xS=1.25,zoe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${xS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${xS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),bO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),yO="n-timeline",Moe=J({name:"Timeline",props:bO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",zoe,ine,e,n);return nt(yO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),xO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Ioe=J({name:"TimelineItem",props:xO,setup(e){const t=Le(yO);t||Fn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Rb();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),mc="n-transfer",wS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(mc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),CS=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(mc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:nc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Yo,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),SS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(mc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(CS,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(CS,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),_S=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(mc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(Mn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(b2,null)})}))}});function Foe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Doe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),wO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Aoe=J({name:"Transfer",props:wO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Doe,cne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Foe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(mc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Dn(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(wS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(_S,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(SS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(wS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(_S,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(SS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),I0="n-tree-select",bc="n-tree",Boe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(bc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(_o,null,{default:()=>{if(e.loading)return u(Jr,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(oW,null)})}})))}}}),Eoe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(bc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Xo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Loe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(bc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function kS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Noe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function CO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function ii(e,t){return!!e.rawNode[t]}function SO(e,t,n,r){e==null||e.forEach(o=>{n(o),SO(o[t],t,n,r),r(o)})}function Hoe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return SO(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function joe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Voe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(bc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>ii(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Rk(e.key):void 0,y=b==="right",C=n?u(Eoe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),kk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Boe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Loe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?kS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?kS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),_O=Voe;function Uoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(I0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(_O,{clsPrefix:e,tmNode:t})))})}}),Koe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[No({duration:"0.2s"})]),F("collapse",[No({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var qoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const fd=30;function kO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const RO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},PO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Noe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),RO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),$O=J({name:"Tree",props:PO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Koe,cT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:joe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>eo(e.showIrrelevantNodes?e.data:h.value.filteredTree,kO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(I0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=CO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Uoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Hoe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return qoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/fd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=jg(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*fd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=jg(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*fd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>w2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||ii(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||ii(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const Po=Ur(De.key);if(Po===null){We();return}let Go=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[Po-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Go=!0,cn==="after"&&(Et=j.value[Po+1],Et?cn="before":(Et=De,cn="inside")));const Zo=Et;if(Oe.value=Zo,!Go&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let Qo=Ce-be.clientX,Ei=0;for(;Qo>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ei<1;)Qo-=Vt,Ei+=1,Et=Et.parent;pe.value=Ei}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Zo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Rk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(bc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Woe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(_O,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=mi(C||"0");return u(_f,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(Eo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:fd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(_f,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ai,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function RS(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function PS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Yoe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),TO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),RO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Xoe=J({name:"TreeSelect",props:TO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>eo(e.options,kO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?PS(ie,ze.getPath(ae).treeNodePath,Be,Ee):RS(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?PS($e,ze.getPath(se).treeNodePath,Be,Te):RS($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Pa(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(I0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}th(o,dt);const ut=CO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Yoe,vne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:Dn(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u($O,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Ro,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Goe=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),na=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Il=e=>J({name:`H${e}`,props:na,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",Goe,Bi,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),Zoe=Il("1"),Qoe=Il("2"),Joe=Il("3"),eie=Il("4"),tie=Il("5"),nie=Il("6"),rie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),OO=Object.assign({},Se.props),oie=J({name:"A",props:OO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",rie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),iie=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),zO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),aie=J({name:"P",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",iie,Bi,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),lie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),MO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),sie=J({name:"Blockquote",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",lie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),cie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),die=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",cie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),$S=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),TS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],IO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),$S,TS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),$S,TS])]),FO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),uie=J({name:"Ul",props:FO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",IO,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),fie=J({name:"Ol",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",IO,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),hie=J({name:"Li",render(){return u("li",null,this.$slots)}}),vie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),AO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),pie=J({name:"Text",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",vie,Bi,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:_i(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Fl="n-upload",BO="__UPLOAD_DRAGGER__",EO=J({name:"UploadDragger",[BO]:!0,setup(e,{slots:t}){const n=Le(Fl,null);return n||Fn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var LO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const NO=e=>e.includes("image/"),OS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},zS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,HO=e=>{if(e.type)return NO(e.type);const t=OS(e.name||"");if(zS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=OS(n);return!!(/^data:image\//.test(n)||zS.test(r))};function gie(e){return LO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!NO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const mie=rr&&window.FileReader&&window.File;function bie(e){return e.isDirectory}function yie(e){return e.isFile}function xie(e,t){return LO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&bie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else yie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Ys(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function wie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Cie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},F0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Fl,null);n||Fn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?xie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(EO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(Sl,null)})])}):t)}}}),Sie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Fl).mergedThemeRef}},render(){return u(ko,null,{default:()=>this.show?u(tO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),_ie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),kie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Rie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const hd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Pie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Fl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Cie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>Rie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):HO(r)?u(st,{clsPrefix:e},{default:()=>_ie}):u(st,{clsPrefix:e},{default:()=>kie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(pT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(QU,null)}));const s=u(Sie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(g2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:hd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(_o,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(eW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(aW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(dW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(tW,null)})}):null)),!a&&s)}}),jO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Fl,null);n||Fn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(Pie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(hT,Object.assign({},h.value),{default:p}):u(ko,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(F0,null,t))}}}),$ie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[No(),S("progress",[No({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var MS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Tie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Ys(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Ys(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Oie(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Ys(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Ys(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function zie(e,t,n){const r=Tie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function VO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Mie(e,t,n){const r=VO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Iie(e,t,n){const r=VO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Fie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Iie(d,s,n),d.append(t,n.file),zie(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Mie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const UO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>mie?HO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Die=J({name:"Upload",props:UO,setup(e){e.abstract&&e.listType==="image-card"&&Fn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",$ie,xne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Ys));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?wie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>MS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>MS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Oie({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Fie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?gie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Fl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[BO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Qs,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(F0,null,o),this.showFileList&&u(jO,null,o)))}}),Aie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Bie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const WO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Eie=J({name:"Watermark",props:WO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Aie,Cne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return Jf(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=Bie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else lD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Lie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Nie={message:WT,notification:XT,loadingBar:OT,dialog:A$};function Hie({providersAndProps:e,configProviderProps:t}){let r=I_(()=>u(MP,Wv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,Wv(c),{default:()=>u(Lie,{onSetup:()=>o[l]=Nie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function jie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:UT,props:n});break;case"notification":a.push({type:s,Provider:YT,props:o});break;case"dialog":a.push({type:s,Provider:D$,props:r});break;case"loadingBar":a.push({type:s,Provider:TT,props:i});break}}),Hie({providersAndProps:a,configProviderProps:t})}const KO={value:String,katex:Object,katexOptions:Object},Vie=J({name:"Equation",props:KO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),IS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:h2,affixProps:sh,NAlert:AK,alertProps:B2,NAnchor:KK,anchorProps:L2,NAnchorLink:jK,anchorLinkProps:E2,NAutoComplete:uq,autoCompleteProps:Y2,NAvatar:Ug,avatarProps:Q2,NAvatarGroup:xq,avatarGroupProps:J2,NBackTop:Pq,backTopProps:eP,NBadge:Mq,badgeProps:tP,NBreadcrumb:Eq,breadcrumbProps:rP,NBreadcrumbItem:Hq,breadcrumbItemProps:oP,NButton:Pt,NxButton:Qr,buttonProps:aP,NButtonGroup:n0,buttonGroupProps:cP,NCalendar:nY,calendarProps:dP,NColorPicker:OY,colorPickerProps:fP,NCard:pP,cardProps:vP,NCarousel:JY,carouselProps:bP,NCarouselItem:mP,NCascader:pX,cascaderProps:SP,NCheckbox:Xo,checkboxProps:CP,NCheckboxGroup:wP,checkboxGroupProps:xP,NCode:RP,codeProps:kP,NCollapse:SX,collapseProps:PP,NCollapseItem:kX,collapseItemProps:TP,NCollapseTransition:OX,collapseTransitionProps:OP,NConfigProvider:MP,configProviderProps:zP,NCountdown:zX,countdownProps:IP,NNumberAnimation:FX,numberAnimationProps:FP,NDataTable:aZ,dataTableProps:qP,NDatePicker:hQ,datePickerProps:S$,NDescriptions:xQ,descriptionsProps:k$,NDescriptionsItem:wQ,descriptionsItemProps:R$,NDialog:y0,dialogProps:uc,NDialogProvider:D$,dialogProviderProps:F$,useDialog:A$,useDialogReactiveList:DQ,NDivider:NQ,dividerProps:B$,NDrawer:oJ,drawerProps:E$,NDrawerContent:iJ,drawerContentProps:L$,NDropdown:h0,dropdownProps:s$,NDynamicInput:hJ,dynamicInputProps:N$,NDynamicTags:wJ,dynamicTagsProps:U$,NElement:qC,elementProps:W$,NEl:qC,NEllipsis:d0,ellipsisProps:KP,NEmpty:Ai,emptyProps:k2,NForm:TJ,formProps:Y$,NFormItem:C0,formItemProps:vc,NFormItemGridItem:rS,NFormItemGi:rS,formItemGiProps:Tm,formItemGridItemProps:Tm,NFormItemCol:nT,NFormItemRow:xee,NGlobalStyle:wee,NGradientText:Ree,gradientTextProps:rT,NGrid:$ee,gridProps:iT,NGridItem:$m,gridItemProps:qs,NGi:$m,giProps:qs,NIcon:o$,iconProps:r$,NIconWrapper:Iee,iconWrapperProps:aT,NImage:pT,imageProps:vT,NImageGroup:hT,imageGroupProps:fT,NInput:Mn,inputProps:V2,NInputGroup:W2,inputGroupProps:U2,NInputGroupLabel:iq,inputGroupLabelProps:K2,NInputNumber:One,inputNumberProps:gT,NLayout:Mne,layoutProps:Om,layoutContentProps:Om,NLayoutContent:Ine,NLayoutHeader:Dne,layoutHeaderProps:xT,NLayoutFooter:Bne,layoutFooterProps:wT,NLayoutSider:Hne,layoutSiderProps:CT,NRow:eT,rowProps:mh,NCol:tT,colProps:bh,NLegacyTransfer:Xne,legacyTransferProps:ST,NList:Zne,listProps:_T,NListItem:Qne,NLoadingBarProvider:TT,loadingBarProviderProps:$T,useLoadingBar:OT,NLog:ore,logProps:MT,NMenu:vre,menuProps:ET,NMention:mre,mentionProps:LT,NMessageProvider:UT,messageProviderProps:VT,useMessage:WT,NModal:I$,modalProps:M$,NNotificationProvider:YT,notificationProviderProps:qT,useNotification:XT,NPageHeader:zre,pageHeaderProps:GT,NPagination:VP,paginationProps:jP,NPopconfirm:Fre,popconfirmProps:JT,NPopover:Ua,popoverProps:O2,NPopselect:BP,popselectProps:AP,NProgress:tO,progressProps:eO,NRadio:u0,radioProps:hh,NRadioGroup:ZP,radioGroupProps:GP,NRadioButton:pG,radioButtonProps:vG,NRate:Vre,rateProps:nO,NResult:Gre,resultProps:rO,NScrollbar:Qre,scrollbarProps:oO,NSelect:NP,selectProps:LP,NSkeleton:noe,skeletonProps:iO,NSlider:ioe,sliderProps:aO,NSpace:V$,spaceProps:j$,NSpin:soe,spinProps:lO,NStatistic:doe,statisticProps:sO,NSteps:voe,stepsProps:cO,NStep:poe,stepProps:uO,NSwitch:moe,switchProps:fO,NTable:yoe,tableProps:hO,NTh:xoe,NTr:woe,NTd:Coe,NThead:Soe,NTbody:_oe,NTabs:Poe,tabsProps:pO,NTabPane:koe,tabPaneProps:M0,NTab:Ff,tabProps:vO,NTag:xs,tagProps:I2,NThing:Toe,thingProps:gO,NTime:Ooe,timeProps:mO,NTimePicker:If,timePickerProps:y$,NTimeline:Moe,timelineProps:bO,NTimelineItem:Ioe,timelineItemProps:xO,NTooltip:fh,tooltipProps:WP,NTransfer:Aoe,transferProps:wO,NTree:$O,treeProps:PO,NTreeSelect:Xoe,treeSelectProps:TO,NH1:Zoe,NH2:Qoe,NH3:Joe,NH4:eie,NH5:tie,NH6:nie,h1Props:na,h2Props:na,h3Props:na,h4Props:na,h5Props:na,h6Props:na,NA:oie,aProps:OO,NP:aie,pProps:zO,NBlockquote:sie,blockquoteProps:MO,NHr:die,NUl:uie,ulProps:FO,NOl:fie,olProps:DO,NLi:hie,NText:pie,textProps:AO,NUpload:Die,uploadProps:UO,NUploadDragger:EO,NUploadTrigger:F0,NUploadFileList:jO,NWatermark:Eie,watermarkProps:WO,createDiscreteApi:jie,NEquation:Vie,equationProps:KO},Symbol.toStringTag,{value:"Module"})),Uie="2.34.3";function Wie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Uie,componentPrefix:e,install:o}}const qO=Wie({components:Object.keys(IS).map(e=>IS[e])}),Kie=qO;qO.install;const YO=I_(qF);YO.use(Kie);YO.mount("#app")});export default qie(); diff --git a/docs/assets/index.3ea929df.js b/docs/assets/index.3ea929df.js deleted file mode 100644 index 2401134..0000000 --- a/docs/assets/index.3ea929df.js +++ /dev/null @@ -1,6855 +0,0 @@ -var hz=Object.defineProperty;var vz=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(vz(e,typeof t!="symbol"?t+"":t,n),n);var Gie=pz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Im(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Gs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(mz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},Cz=()=>!1,Sz=/^on[^a-z]/,Ef=e=>Sz.test(e),Dm=e=>e.startsWith("onUpdate:"),Ln=Object.assign,Am=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_z=Object.prototype.hasOwnProperty,Ht=(e,t)=>_z.call(e,t),Rt=Array.isArray,is=e=>Lf(e)==="[object Map]",kz=e=>Lf(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Bm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",BS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),Rz=Object.prototype.toString,Lf=e=>Rz.call(e),Pz=e=>Lf(e).slice(8,-1),$z=e=>Lf(e)==="[object Object]",Em=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gd=Im(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tz=/-(\w)/g,bo=Nf(e=>e.replace(Tz,(t,n)=>n?n.toUpperCase():"")),Oz=/\B([A-Z])/g,kl=Nf(e=>e.replace(Oz,"-$1").toLowerCase()),Hf=Nf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ih=Nf(e=>e?`on${Hf(e)}`:""),Cs=(e,t)=>!Object.is(e,t),Fh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let B0;const Iz=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Fz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ES=e=>(e.w&xi)>0,LS=e=>(e.n&xi)>0,Bz=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Em(n)&&l.push(a.get("length")):(l.push(a.get(ua)),is(e)&&l.push(a.get(Wv)));break;case"delete":Rt(e)||(l.push(a.get(ua)),is(e)&&l.push(a.get(Wv)));break;case"set":is(e)&&l.push(a.get(ua));break}if(l.length===1)l[0]&&Kv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Kv(Lm(s))}}function Kv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&L0(r);for(const r of n)r.computed||L0(r)}function L0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lz(e,t){var n;return(n=gu.get(e))===null||n===void 0?void 0:n.get(t)}const Nz=Im("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bm)),Hz=Hm(),jz=Hm(!1,!0),Vz=Hm(!0),N0=Uz();function Uz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Rl();const r=zt(this)[t].apply(this,n);return Pl(),r}}),e}function Wz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Hm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?l5:qS:t?KS:WS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(N0,o))return Reflect.get(N0,o,i);if(o==="hasOwnProperty")return Wz}const l=Reflect.get(r,o,i);return(Bm(o)?jS.has(o):Nz(o))||(e||dr(r,"get",o),t)?l:Vn(l)?a&&Em(o)?l:l.value:vn(l)?e?yo(l):Ii(l):l}}const Kz=VS(),qz=VS(!0);function VS(e=!1){return function(n,r,o,i){let a=n[r];if(gl(a)&&Vn(a)&&!Vn(o))return!1;if(!e&&(!mu(o)&&!gl(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&Vn(a)&&!Vn(o)))return a.value=o,!0;const l=Rt(n)&&Em(r)?Number(r)e,jf=e=>Reflect.getPrototypeOf(e);function xc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=jf(o),l=r?jm:n?Wm:Ss;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function wc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",ua),Reflect.get(e,"size",e)}function H0(e){e=zt(e);const t=zt(this);return jf(t).has.call(t,e)||(t.add(e),Bo(t,"add",e,e)),this}function j0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=jf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Cs(t,a)&&Bo(n,"set",e,t):Bo(n,"add",e,t),this}function V0(e){const t=zt(this),{has:n,get:r}=jf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Bo(t,"delete",e,void 0),i}function U0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Bo(e,"clear",void 0,void 0),n}function Sc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?jm:e?Wm:Ss;return!e&&dr(l,"iterate",ua),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function _c(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=is(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?jm:t?Wm:Ss;return!t&&dr(i,"iterate",s?Wv:ua),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Jo(e){return function(...t){return e==="delete"?!1:this}}function Jz(){const e={get(i){return xc(this,i)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!1)},t={get(i){return xc(this,i,!1,!0)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!0)},n={get(i){return xc(this,i,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Sc(!0,!1)},r={get(i){return xc(this,i,!0,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_c(i,!1,!1),n[i]=_c(i,!0,!1),t[i]=_c(i,!1,!0),r[i]=_c(i,!0,!0)}),[e,n,t,r]}const[e5,t5,n5,r5]=Jz();function Vm(e,t){const n=t?e?r5:n5:e?t5:e5;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const o5={get:Vm(!1,!1)},i5={get:Vm(!1,!0)},a5={get:Vm(!0,!1)},WS=new WeakMap,KS=new WeakMap,qS=new WeakMap,l5=new WeakMap;function s5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c5(e){return e.__v_skip||!Object.isExtensible(e)?0:s5(Pz(e))}function Ii(e){return gl(e)?e:Um(e,!1,US,o5,WS)}function d5(e){return Um(e,!1,Qz,i5,KS)}function yo(e){return Um(e,!0,Zz,a5,qS)}function Um(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=c5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function fa(e){return gl(e)?fa(e.__v_raw):!!(e&&e.__v_isReactive)}function gl(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function ha(e){return fa(e)||gl(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function bu(e){return pu(e,"__v_skip",!0),e}const Ss=e=>vn(e)?Ii(e):e,Wm=e=>vn(e)?yo(e):e;function YS(e){hi&&Yr&&(e=zt(e),HS(e.dep||(e.dep=Lm())))}function XS(e,t){e=zt(e);const n=e.dep;n&&Kv(n)}function Vn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return ZS(e,!1)}function GS(e){return ZS(e,!0)}function ZS(e,t){return Vn(e)?e:new u5(e,t)}class u5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:Ss(t)}get value(){return YS(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||gl(t);t=n?t:zt(t),Cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ss(t),XS(this))}}function qv(e){return Vn(e)?e.value:e}const f5={get:(e,t,n)=>qv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Vn(o)&&!Vn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function QS(e){return fa(e)?e:new Proxy(e,f5)}class h5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lz(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return Vn(r)?r:new h5(e,t,n)}var JS;class v5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[JS]=!1,this._dirty=!0,this.effect=new Nm(t,()=>{this._dirty||(this._dirty=!0,XS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return YS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}JS="__v_isReadonly";function p5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new v5(r,o,i||!o,n)}function vi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=vi(e,t,n,r);return i&&BS(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i>>1;ks(Qn[r])uo&&Qn.splice(t,1)}function y5(e){Rt(e)?dl.push(...e):(!Io||!Io.includes(e,e.allowRecurse?oa+1:oa))&&dl.push(e),t_()}function W0(e,t=_s?uo+1:0){for(;tks(n)-ks(r)),oa=0;oae.id==null?1/0:e.id,x5=(e,t)=>{const n=ks(e)-ks(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function r_(e){Yv=!1,_s=!0,Qn.sort(x5);const t=Zr;try{for(uo=0;uoPn(v)?v.trim():v)),f&&(o=n.map(zz))}let l,s=r[l=Ih(t)]||r[l=Ih(bo(t))];!s&&i&&(s=r[l=Ih(kl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function o_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=o_(c,t,!0);d&&(l=!0,Ln(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):Ln(a,i),vn(e)&&r.set(e,a),a)}function Uf(e,t){return!e||!Ef(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,kl(t))||Ht(e,t))}let Un=null,i_=null;function yu(e){const t=Un;return Un=e,i_=e&&e.type.__scopeId||null,t}function md(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ny(-1);const i=yu(t);let a;try{a=e(...o)}finally{yu(i),r._d&&ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=yu(e);try{if(n.shapeFlag&4){const x=o||r;m=so(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=so(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:C5(s)}}catch(x){cs.length=0,Vf(x,e,1),m=zn(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Dm)&&(g=S5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,yu(y),m}const C5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ef(n))&&((t||(t={}))[n]=e[n]);return t},S5=(e,t)=>{const n={};for(const r in e)(!Dm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?K0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function P5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):y5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Un;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Ym(e,null,t)}const kc={};function rt(e,t,n){return Ym(e,t,n)}function Ym(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Az()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(Vn(e)?(s=()=>e.value,c=mu(e)):fa(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>fa(C)||mu(C)),s=()=>e.map(C=>{if(Vn(C))return C.value;if(fa(C))return la(C);if(Tt(C))return vi(C,l,2)})):Tt(e)?t?s=()=>vi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>la(C())}let f,h=C=>{f=g.onStop=()=>{vi(C,l,4)}},v;if(zs)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(kc):kc;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Cs(x,p[w])):Cs(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===kc?void 0:d&&p[0]===kc?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>qm(b));const g=new Nm(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Am(l.scope.effects,g)};return v&&v.push(y),y}function $5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?a_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;ml(this);const l=Ym(o,i.bind(r),n);return a?ml(a):va(),l}function a_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{la(n,t)});else if($z(e))for(const n in e)la(e[n],t);return e}function l_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],T5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Uo(),r=l_();let o;return()=>{const i=t.default&&Xm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ah(a);const c=q0(a);if(!c)return Ah(a);const d=Rs(c,l,r,n);Ps(c,d);const f=n.subTree,h=f&&q0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!ia(c,h)||v)){const b=Rs(h,l,r,n);if(Ps(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ah(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=c_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},s_=T5;function c_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Rs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=c_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&ia(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Rs(T,t,n,r)}};return _}function Ah(e){if(Wf(e))return e=nr(e),e.children=null,e}function q0(e){return Wf(e)?e.children?e.children[0]:void 0:e}function Ps(e,t){e.shapeFlag&6&&e.component?Ps(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function Gm(e,t){d_(e,"a",t)}function Zs(e,t){d_(e,"da",t)}function d_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Kf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&O5(r,t,n,o),o=o.parent}}function O5(e,t,n,r){const o=Kf(t,e,r,!0);Qs(()=>{Am(r[t],o)},n)}function Kf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Rl(),ml(n);const l=Mr(t,n,e,a);return va(),Pl(),l});return r?o.unshift(i):o.push(i),i}}const jo=e=>(t,n=wn)=>(!zs||e==="sp")&&Kf(e,(...r)=>t(...r),n),Vo=jo("bm"),Mt=jo("m"),Zm=jo("bu"),Qm=jo("u"),Dt=jo("bum"),Qs=jo("um"),z5=jo("sp"),M5=jo("rtg"),I5=jo("rtc");function F5(e,t=wn){Kf("ec",e,t)}function sn(e,t){const n=Un;if(n===null)return e;const r=Xf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lTs(t)?!(t.type===xr||t.type===$t&&!f_(t.children)):!0)?e:null}const Xv=e=>e?__(e)?Xf(e)||e.proxy:Xv(e.parent):null,ls=Ln(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xv(e.parent),$root:e=>Xv(e.root),$emit:e=>e.emit,$options:e=>eb(e),$forceUpdate:e=>e.f||(e.f=()=>qm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>$5.bind(e)}),Bh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),E5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Bh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Gv&&(a[t]=0)}}const d=ls[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Bh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Bh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ls,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Gv=!0;function L5(e){const t=eb(e),n=e.proxy,r=e.ctx;Gv=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&N5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Ii(U))}if(Gv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)h_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&X0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Vo,f),E(Mt,h),E(Zm,v),E(Qm,p),E(Gm,b),E(Zs,m),E(F5,T),E(I5,k),E(M5,_),E(Dt,y),E(Qs,x),E(z5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function N5(e,t,n=Zr,r=!1){Rt(e)&&(e=Zv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),Vn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function X0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){const o=r.includes(".")?a_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>h_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function eb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>xu(s,c,a,!0)),xu(s,t,a)),vn(t)&&i.set(t,s),s}function xu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xu(e,i,n,!0),o&&o.forEach(a=>xu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=H5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const H5={data:G0,props:Ji,emits:Ji,methods:Ji,computed:Ji,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:Ji,directives:Ji,watch:V5,provide:G0,inject:j5};function G0(e,t){return t?e?function(){return Ln(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function j5(e,t){return Ji(Zv(e),Zv(t))}function Zv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=p_(f,t,!0);Ln(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,cl),cl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function Z0(e){return e[0]!=="$"}function Q0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J0(e,t){return Q0(e)===Q0(t)}function ey(e,t){return Rt(t)?t.findIndex(n=>J0(n,e)):Tt(t)&&J0(t,e)?0:-1}const g_=e=>e[0]==="_"||e==="$stable",tb=e=>Rt(e)?e.map(so):[so(e)],K5=(e,t,n)=>{if(t._n)return t;const r=md((...o)=>tb(t(...o)),n);return r._c=!1,r},m_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(g_(o))continue;const i=e[o];if(Tt(i))t[o]=K5(o,i,r);else if(i!=null){const a=tb(i);t[o]=()=>a}}},b_=(e,t)=>{const n=tb(t);e.slots.default=()=>n},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),pu(t,"_",n)):m_(t,e.slots={})}else e.slots={},t&&b_(e,t);pu(e.slots,Yf,1)},Y5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ln(o,t),!n&&l===1&&delete o._):(i=!t.$stable,m_(t,o)),a=t}else t&&(b_(e,t),a={default:1});if(i)for(const l in o)!g_(l)&&!(l in a)&&delete o[l]};function y_(){return{app:null,config:{isNativeTag:Cz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let X5=0;function G5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=y_(),a=new Set;let l=!1;const s=i.app={_uid:X5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:R_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=zn(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Xf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Jv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Jv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(as(r)&&!o)return;const i=r.shapeFlag&4?Xf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):Vn(c)&&(c.value=null)),Tt(s))vi(s,l,12,[a,d]);else{const h=Pn(s),v=Vn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Am(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=P5;function Z5(e){return Q5(e)}function Q5(e,t){const n=Iz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!ia(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case qf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Eh:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Jv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Ni(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!gd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&no(Z,ce,H)}Ae&&Ni(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&no(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Ni(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&Hi(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&no(Pe,Y,W,H),fe&&Ni(W,H,Y,"beforeUpdate"),Y&&Hi(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&no(Pe,Y,W,H),fe&&Ni(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!gd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(gd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&nb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(Wf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=zn(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(_5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,b5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;Hi(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&Fh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&no(qe,Pe,fe,Ae),Hi(H,!0);const ct=Dh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&k5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>no(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=as(W);if(Hi(H,!1),Pe&&Fh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&no(fe,Ke,W),Hi(H,!0),ne&&Me){const ct=()=>{H.subTree=Dh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Dh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>no(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&as(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Nm(te,()=>qm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,Hi(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,W5(H,W.props,ce,Y),Y5(H,W.children,Y),Rl(),W0(),Pl()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||cl,W=W||cl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?ai(W[Z]):so(W[Z]);if(ia(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?ai(W[ge]):so(W[ge]);if(ia(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?ai(W[Z]):so(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&ia(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?J5(Xe):cl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Jv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!as(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&no(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Ni(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&no(Ke,W,H),Pe&&Ni(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Eh){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&Fh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),W0(),n_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:G5(Oe,pe)}}function Hi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const e3=e=>e.__isTeleport,ss=e=>e&&(e.disabled||e.disabled===""),ty=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ep=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},t3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=ss(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=ep(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||ty(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=ss(e.props),$=T?n:k,R=T?w:_;if(a=a||ty(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),nb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||Pc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ep(t.props,p);I&&Pc(t,I,null,c,0)}else T&&Pc(t,k,_,c,1)}x_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ss(h))&&(i(c),l&16))for(let v=0;v0?Xr||cl:null,r3(),$s>0&&Xr&&Xr.push(e),e}function C_(e,t,n,r,o){return o3(zn(e,t,n,r,o,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function ia(e,t){return e.type===t.type&&e.key===t.key}const Yf="__vInternal",S_=({key:e})=>e!=null?e:null,bd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||Vn(e)||Tt(e)?{i:Un,r:e,k:t,f:!!n}:e:null;function Os(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&S_(t),ref:t&&bd(t),scopeId:i_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return l?(rb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),$s>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const zn=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===D5)&&(e=xr),Ts(e)){const l=nr(e,t,!0);return n&&rb(l,n),$s>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Fm(l)),vn(s)&&(ha(s)&&!Rt(s)&&(s=Ln({},s)),t.style=Gs(s))}const a=Pn(e)?1:R5(e)?128:e3(e)?64:vn(e)?4:Tt(e)?2:0;return Os(e,t,n,r,o,a,i,!0)}function a3(e){return e?ha(e)||Yf in e?Ln({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&S_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(bd(t)):[o,bd(t)]:bd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wi(e=" ",t=0){return zn(qf,null,e,t)}function so(e){return e==null||typeof e=="boolean"?zn(xr):Rt(e)?zn($t,null,e.slice()):typeof e=="object"?ai(e):zn(qf,null,String(e))}function ai(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function rb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),rb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yf in t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[wi(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Un,ml=e=>{wn=e,e.scope.on()},va=()=>{wn&&wn.scope.off(),wn=null};function __(e){return e.vnode.shapeFlag&4}let zs=!1;function d3(e,t=!1){zs=t;const{props:n,children:r}=e.vnode,o=__(e);U5(e,n,o,t),q5(e,r);const i=o?u3(e,t):void 0;return zs=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bu(new Proxy(e.ctx,E5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;ml(e),Rl();const i=vi(r,e,0,[e.props,o]);if(Pl(),va(),BS(i)){if(i.then(va,va),t)return i.then(a=>{ry(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else ry(e,i,t)}else k_(e,t)}function ry(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=QS(t)),k_(e,n)}let oy;function k_(e,t,n){const r=e.type;if(!e.render){if(!t&&oy&&!r.render){const o=r.template||eb(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Ln(Ln({isCustomElement:i,delimiters:l},a),s);r.render=oy(o,c)}}e.render=r.render||Zr}ml(e),Rl(),L5(e),Pl(),va()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Xf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QS(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ls)return ls[n](e)},has(t,n){return n in t||n in ls}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>p5(e,t,zs);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Ts(t)?zn(e,null,[t]):zn(e,t):zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),zn(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),R_="3.2.47",b3="http://www.w3.org/2000/svg",aa=typeof document<"u"?document:null,iy=aa&&aa.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?aa.createElementNS(b3,e):aa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>aa.createTextNode(e),createComment:e=>aa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>aa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{iy.innerHTML=r?`${e}`:e;const l=iy.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&tp(r,i,"");for(const i in n)tp(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ay=/\s*!important$/;function tp(e,t,n){if(Rt(n))n.forEach(r=>tp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);ay.test(n)?e.setProperty(kl(r),n.replace(ay,""),"important"):e[r]=n}}const ly=["Webkit","Moz","ms"],Lh={};function C3(e,t){const n=Lh[t];if(n)return n;let r=bo(t);if(r!=="filter"&&r in e)return Lh[t]=r;r=Hf(r);for(let o=0;oNh||(T3.then(()=>Nh=0),Nh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Ef(t)?Dm(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dy.test(t)&&Pn(n)?!1:t in e}const ei="transition",Dl="animation",It=(e,{slots:t})=>u(s_,$_(e),t);It.displayName="Transition";const P_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=Ln({},s_.props,P_),ji=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},uy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function $_(e){const t={};for(const z in e)z in P_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{oi(z,A?d:l),oi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,oi(z,f),oi(z,v),oi(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);ji(j,[A,E]),fy(()=>{oi(A,z?s:i),Oo(A,z?d:l),uy(j)||hy(A,r,b,E)})};return Ln(t,{onBeforeEnter(z){ji(g,[z]),Oo(z,i),Oo(z,a)},onBeforeAppear(z){ji(k,[z]),Oo(z,s),Oo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Oo(z,f),O_(),Oo(z,h),fy(()=>{!z._isLeaving||(oi(z,f),Oo(z,v),uy(x)||hy(z,r,m,L))}),ji(x,[z,L])},onEnterCancelled(z){$(z,!1),ji(C,[z])},onAppearCancelled(z){$(z,!0),ji(T,[z])},onLeaveCancelled(z){R(z),ji(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return Mz(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function fy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function hy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=T_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ei}Delay`),i=r(`${ei}Duration`),a=vy(o,i),l=r(`${Dl}Delay`),s=r(`${Dl}Duration`),c=vy(l,s);let d=null,f=0,h=0;t===ei?a>0&&(d=ei,f=a,h=i.length):t===Dl?c>0&&(d=Dl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ei:Dl:null,h=d?d===ei?i.length:s.length:0);const v=d===ei&&/\b(transform|all)(,|$)/.test(r(`${ei}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function vy(e,t){for(;e.lengthpy(n)+py(e[r])))}function py(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function O_(){return document.body.offsetHeight}const z_=new WeakMap,M_=new WeakMap,I_={name:"TransitionGroup",props:Ln({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Uo(),r=l_();let o,i;return Qm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);O_(),l.forEach(s=>{const c=s.el,d=c.style;Oo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,oi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=$_(a);let s=a.tag||$t;o=i,i=t.default?Xm(t.default()):[];for(let c=0;cdelete e.mode;I_.props;const Gf=I_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){M_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=z_.get(e),n=M_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=T_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}const V3=Ln({patchProp:I3},y3);let gy;function U3(){return gy||(gy=Z5(V3))}const F_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function ec(e){return e+.5|0}const ci=(e,t,n)=>Math.max(Math.min(e,n),t);function Ql(e){return ci(ec(e*2.55),0,255)}function pi(e){return ci(ec(e*255),0,255)}function Fo(e){return ci(ec(e/2.55)/100,0,1)}function my(e){return ci(ec(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},np=[..."0123456789ABCDEF"],K3=e=>np[e&15],q3=e=>np[(e&240)>>4]+np[e&15],$c=e=>(e&240)>>4===(e&15),Y3=e=>$c(e.r)&&$c(e.g)&&$c(e.b)&&$c(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=D_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function ib(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(pi)}function ab(e,t,n){return ib(D_,e,t,n)}function nM(e,t,n){return ib(eM,e,t,n)}function rM(e,t,n){return ib(J3,e,t,n)}function A_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ql(+t[5]):pi(+t[5]));const o=A_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ab(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=ob(e);n[0]=A_(n[0]+t),n=ab(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=ob(e),n=t[0],r=my(t[1]),o=my(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Fo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const by={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(yy),n=Object.keys(by);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Tc;function sM(e){Tc||(Tc=lM(),Tc.transparent=[0,0,0,0]);const t=Tc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Ql(a):ci(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Ql(r):ci(r,0,255)),o=255&(t[4]?Ql(o):ci(o,0,255)),i=255&(t[6]?Ql(i):ci(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Fo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=Ka(Fo(e.r)),o=Ka(Fo(e.g)),i=Ka(Fo(e.b));return{r:pi(jh(r+n*(Ka(Fo(t.r))-r))),g:pi(jh(o+n*(Ka(Fo(t.g))-o))),b:pi(jh(i+n*(Ka(Fo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Oc(e,t,n){if(e){let r=ob(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ab(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function B_(e,t){return e&&Object.assign(t||{},e)}function xy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=pi(e[3]))):(t=B_(e,{r:0,g:0,b:0,a:1}),t.a=pi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class Ms{constructor(t){if(t instanceof Ms)return t;const n=typeof t;let r;n==="object"?r=xy(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=B_(this._rgb);return t&&(t.a=Fo(t.a)),t}set rgb(t){this._rgb=xy(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new Ms(this.rgb)}alpha(t){return this._rgb.a=pi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ec(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Oc(this._rgb,2,t),this}darken(t){return Oc(this._rgb,2,-t),this}saturate(t){return Oc(this._rgb,1,t),this}desaturate(t){return Oc(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function $o(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return En(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function bl(e,t){return(wy[t]||(wy[t]=yM(t)))(e)}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",Ci=e=>typeof e=="function",Cy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,po=2*Kn,Su=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,Vi=Kn/4,Sy=Kn*2/3,di=Math.log10,gi=Math.sign;function yd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function _u(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function cb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const rp=(e,t,n,r)=>cb(e,n,r?o=>{const i=e[o][t];return ie[o][t]cb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+lb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ry(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(N_.forEach(i=>{delete e[i]}),delete e._chartjs)}function H_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function V_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,j_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const db=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,zc=e=>e===0||e===1,Py=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*po/n)),$y=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*po/n)+1,us={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zc(e)?e:Py(e,.075,.3),easeOutElastic:e=>zc(e)?e:$y(e,.075,.3),easeInOutElastic(e){return zc(e)?e:e<.5?.5*Py(e*2,.1125,.45):.5+.5*$y(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-us.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?us.easeInBounce(e*2)*.5:us.easeOutBounce(e*2-1)*.5+.5};function U_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ty(e){return U_(e)?e:new Ms(e)}function Vh(e){return U_(e)?e:new Ms(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Oy=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Oy.get(n);return r||(r=new Intl.NumberFormat(e,t),Oy.set(n,r)),r}function ub(e,t,n){return BM(t,n).format(e)}const W_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=di(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),ub(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(di(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?W_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Zf={formatters:W_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ca=Object.create(null),op=Object.create(null);function fs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Vh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Vh(o.borderColor),this.hoverColor=(r,o)=>Vh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Uh(this,t,n)}get(t){return fs(this,t)}describe(t,n){return Uh(op,t,n)}override(t,n){return Uh(Ca,t,n)}route(t,n,r,o){const i=fs(this,t),a=fs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ku(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function q_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function Y_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function X_(e){return Y_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function pa(e){return Y_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=X_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Mc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ia(e,t){return Object.assign(Object.create(e),t)}function vb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=J_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>vb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Z_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Fy(a).includes(l)},ownKeys(a){return Fy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function yl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:G_(e,r),setContext:i=>yl(e,i,n,r),override:i=>yl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return Z_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function G_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Ci(n)?n:()=>n,isIndexable:Ci(r)?r:()=>r}}const ZM=(e,t)=>e?e+lb(t):t,pb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Z_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return Ci(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),pb(t,l)&&(l=yl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),pb(e,t)&&(t=gb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=gb(c,o,e,d);t.push(yl(f,i,a&&a[e],l))}}return t}function Q_(e,t,n){return Ci(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?bl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Q_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function gb(e,t,n,r){const o=t._rootScopes,i=Q_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Iy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=Iy(l,a,i,s,r),s===null)?!1:vb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function Iy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=J_(ZM(i,e),n),Fr(o))return pb(e,o)?gb(n,r,e,o):o}function J_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function Fy(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function ek(){return typeof window<"u"&&typeof document<"u"}function mb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Qf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Qf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function ga(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function ea(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Qf(n),i=o.boxSizing==="border-box",a=ga(o,"padding"),l=ga(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=mb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Qf(i),s=ga(l,"border","width"),c=ga(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Ru(l.maxWidth,i,"clientWidth"),o=Ru(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Su,maxHeight:o||Su}}const Ic=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Qf(e),i=ga(o,"margin"),a=Ru(o.maxWidth,e,"clientWidth")||Su,l=Ru(o.maxHeight,e,"clientHeight")||Su,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ga(o,"border","width"),v=ga(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Ic(Math.min(c,a,s.maxWidth)),d=Ic(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Ic(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Ic(Math.floor(d*r))),{width:c,height:d}}function Dy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Ay(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ul(e,t,n){return e?h4(t,n):v4()}function tk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=j_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var zo=new p4;const By="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Ty(e||By),o=r.valid&&Ty(t||By);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Mc([t.to,o,i,t.from]);const a=Mc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=us[t.easing]||us.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Mc([t.to,n,o,t.from]),this._from=Mc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return zo.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function jy(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Ia(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Ia(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Bl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Kh=e=>e==="reset"||e==="none",Vy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ok(n,!0),values:null};class hs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ny(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Bl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Wh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Wh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Wh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ry(this._data,this),t._stacked&&Bl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){Ry(r,this);const o=this._cachedMeta;Bl(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ny(n.vScale,n),n.stack!==r.stack&&(o=!0,Bl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&jy(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Vy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new rk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Kh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Kh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Kh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ik(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Uy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:tc,modes:{index(e,t,n,r){const o=ea(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=ea(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Yy(e,t){return e.filter(n=>ak.indexOf(n.pos)===-1&&n.box.axis===t)}function Ll(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Ll(El(t,"left"),!0),o=Ll(El(t,"right")),i=Ll(El(t,"top"),!0),a=Ll(El(t,"bottom")),l=Yy(t,"x"),s=Yy(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:El(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function Xy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function lk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&lk(a,i.getPadding());const l=Math.max(0,t.outerWidth-Xy(a,e,"left","right")),s=Math.max(0,t.outerHeight-Xy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function Jl(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);lk(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);Jl(l.fullSize,v,f,p),Jl(s,v,f,p),Jl(c,v,f,p)&&Jl(s,v,f,p),G4(v),Gy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Gy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class sk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends sk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[wd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Zy(o)){const i=Ay(e,"width");i!==void 0&&(e.width=i)}if(Zy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Ay(e,"height");i!==void 0&&(e.height=i)}return e}const ck=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,ck)}function nI(e,t,n){e.canvas.removeEventListener(t,n,ck)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=ea(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Pu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.addedNodes,r),a=a&&!Pu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.removedNodes,r),a=a&&!Pu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ds=new Map;let Qy=0;function dk(){const e=window.devicePixelRatio;e!==Qy&&(Qy=e,Ds.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Ds.size||window.addEventListener("resize",dk),Ds.set(e,t)}function lI(e){Ds.delete(e),Ds.size||window.removeEventListener("resize",dk)}function sI(e,t,n){const r=e.canvas,o=r&&mb(r);if(!o)return;const i=V_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Gh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=V_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends sk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wd])return!1;const r=n[wd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[wd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Gh,detach:Gh,resize:Gh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=mb(t);return!!(n&&n.isConnected)}}function uI(e){return!ek()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class Si{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _u(this.x)&&_u(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(Si,"defaults",{}),Nt(Si,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Dc(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Jy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function ex(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Nl(t.grid)-n.padding-tx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=sb(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=tx(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Nl(i)+s):(t.height=this.maxHeight,t.width=Nl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=ui(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Ui(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Nl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Ui(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Ac(hs,"datasets",!0),this.elements=new Ac(Si,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Fa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=lb(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(ao.plugins.items);for(let i=0;i1&&$u(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Ca[e.type]||{scales:{}},r=t.scales||{},o=ip(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=$u(a,l),c=DI(s,o),d=n.scales||{};i[a]=ds(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||ip(l,t),d=(Ca[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),ds(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ds(l,[Cn.scales[l.type],Cn.scale])}),i}function uk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function fk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=fk(e.data),uk(e),e}const nx=new Map,hk=new Set;function Bc(e,t){let n=nx.get(e);return n||(n=t(),nx.set(e,n),hk.add(n)),n}const Hl=(e,t,n)=>{const r=bl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),uk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Hl(s,t,f))),d.forEach(f=>Hl(s,o,f)),d.forEach(f=>Hl(s,Ca[i]||{},f)),d.forEach(f=>Hl(s,Cn,f)),d.forEach(f=>Hl(s,op,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ca[n]||{},Cn.datasets[n]||{},{type:n},Cn,op]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=rx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=Ci(r)?r():r;const c=this.createResolver(t,r,l);s=yl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=rx(this._resolverCache,t,r);return Wt(n)?yl(i,n,void 0,o):i}}function rx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:vb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Ci(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=G_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(Ci(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function ox(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function ix(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function vk(e){return ek()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cd={},lx=e=>{const t=vk(e);return Object.values(Cd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class co{static register(...t){ao.add(...t),sx()}static unregister(...t){ao.remove(...t),sx()}constructor(t,n){const r=this.config=new LI(n),o=vk(t),i=lx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Cd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}zo.listen(this,"complete",ax),zo.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ao}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zy(this.canvas,this.ctx),this}stop(){return zo.stop(this),this}resize(t,n){zo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Dy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=$u(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=$u(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||ox(l.position,c)!==ox(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=ao.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ix("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Cy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&fb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&hb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return q_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ia(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),zo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!wu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!wu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(co,"defaults",Cn),Nt(co,"instances",Cd),Nt(co,"overrides",Ca),Nt(co,"registry",ao),Nt(co,"version",jI),Nt(co,"getChart",lx);function sx(){return en(co.instances,e=>e._plugins.invalidate())}function pk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function fi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=X_(r);return{t:fi(o.top,i.top,0,n),r:fi(o.right,i.right,0,t),b:fi(o.bottom,i.bottom,0,n),l:fi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=pa(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:fi(!s||l.top||l.left,i.topLeft,0,a),topRight:fi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:fi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:fi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=pk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Zh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&pk(e,r);return l&&(o||ll(t,l.left,l.right))&&(i||ll(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Sd extends Si{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Fs:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Qh(a,n,i)),t.clip(),l(t,Qh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Qh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Zh(this,t,n,r)}inXRange(t,n){return Zh(this,t,null,n)}inYRange(t,n){return Zh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(Sd,"id","bar"),Nt(Sd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(Sd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends Si{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Mn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=ul(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fb(t,this),this._draw(),hb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=ul(t.rtl,this.left,this.width),c=Mn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=cx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;K_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=pa(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Fs(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){Sa(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},tk(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=gk(k,L)}else v.y+=w}),nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),o=Jn(n.padding);if(!n.display)return;const i=ul(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(db(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Sa(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ll(t,this.left,this.right)&&ll(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=gk(t,n)),r}function gk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class mk extends Si{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);Sa(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:db(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new mk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:mk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const es={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ux(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Mn(t.bodyFont),c=Mn(t.titleFont),d=Mn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function fx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function hx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=pa(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ec(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return io([],Mo(e))}function hF(e,t,n){return Ia(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function px(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bk={beforeTitle:$o,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?bk[t].call(n,r):o}class ap extends Si{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new rk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}getBeforeBody(t,n){return vx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=px(r,i);io(a.before,Mo(or(l,"beforeLabel",this,i))),io(a.lines,or(l,"label",this,i)),io(a.after,Mo(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return vx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=px(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=es[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=ux(this,r),c=Object.assign({},l,s),d=fx(this.chart,r,c),f=hx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=pa(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=ul(r.rtl,this.x,this.width);for(t.x=Ec(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Fs(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Fs(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Mn(r.bodyFont);let h=f.lineHeight,v=0;const p=ul(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ec(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=es[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ux(this,t),s=Object.assign({},a,this._size),c=fx(n,t,s),d=hx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),tk(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!wu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!wu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=es[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(ap,"positioners",es);var vF={id:"tooltip",_element:ap,positioners:es,afterInit(e,t,n){n&&(e.tooltip=new ap({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function gx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(lp,"id","category"),Nt(lp,"defaults",{ticks:{callback:gx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=_y((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=_y($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,yd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(ky(w),ky(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=gi(o),c=gi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&L_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return ub(t,this.chart.options.locale,this.options.ticks.format)}}class sp extends Tu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ui(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(sp,"id","linear"),Nt(sp,"defaults",{ticks:{callback:Zf.formatters.numeric}});const As=e=>Math.floor(di(e)),Ki=(e,t)=>Math.pow(10,As(e)+t);function bx(e){return e/Math.pow(10,As(e))===1}function yx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=As(n);for(;yx(e,t,r)>10;)r++;for(;yx(e,t,r)<10;)r--;return Math.min(r,As(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=As(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:bx(v),significand:f}),r}class xx extends Fa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Tu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return En(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?Math.max(0,t):null,this.max=En(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!En(this._userMin)&&(this.min=t===Ki(this.min,0)?Ki(this.min,-1):Ki(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(Ki(r,-1)),a(Ki(o,1)))),r<=0&&i(Ki(o,-1)),o<=0&&a(Ki(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&L_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ub(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=di(t),this._valueRange=di(this.max)-di(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(di(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(xx,"id","logarithmic"),Nt(xx,"defaults",{ticks:{callback:Zf.formatters.logarithmic,major:{enabled:!0}}});function cp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=cp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Mn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=pa(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Fs(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}Sa(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function yk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,po);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=po/(this._pointLabels.length||1),r=this.options.startAngle||0;return lo(t*n+ui(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Mn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}Sa(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Lc,"id","radialLinear"),Nt(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Lc,"descriptors",{angleLines:{_fallback:"grid"}});const Jf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Jf);function zF(e,t){return e-t}function Cx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),En(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(_u(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Sx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Jf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function kx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Sx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=_u(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=rp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=rp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Rx extends Ou{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Nc(n,this.min),this._tableRange=Nc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...xk},AF=R_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function qa(e){return ha(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return ha(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function wk(e,t){e.labels=t}function Ck(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return wk(n,e.labels),Ck(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=GS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new co(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=qa(d),g=qa(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=qa(f.labels),g=qa(v.labels),y=qa(f.datasets),C=qa(v.datasets);m!==g&&(wk(p.config.data,m),b=!0),y&&y!==C&&(Ck(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return co.register(t),J({props:xk,setup(n,r){let{expose:o}=r;const i=GS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",xd),Px=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};co.register(aF,vF,oF,Sd,lp,sp);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(Px.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=Px.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Ii([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="ADJ",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),KF=Os("h1",null,"entityscrape",-1),qF=Os("p",null,"Shows the distance between word types (default: adjectives) in news articles and selected entities (like Xi Jinping or ISIS). Over 3,000 news articles where used.",-1),YF=Os("small",null,[wi("Data source: "),Os("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function XF(e,t,n,r,o,i){const a=Rc("n-select"),l=Rc("n-form-item"),s=Rc("Bar"),c=Rc("n-space");return w_(),C_(c,{vertical:""},{default:md(()=>[KF,qF,zn(l,{label:"Entity"},{default:md(()=>[zn(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),zn(l,{label:"Part of speech"},{default:md(()=>[zn(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),zn(s,{options:{indexAxis:"y",responsive:!0},data:e.chartData},null,8,["data"]),YF]),_:1})}const GF=VF(WF,[["render",XF]]);let zu=[];const Sk=new WeakMap;function ZF(){zu.forEach(e=>e(...Sk.get(e))),zu=[]}function _a(e,...t){Sk.set(e,t),!zu.includes(e)&&zu.push(e)===1&&requestAnimationFrame(ZF)}function QF(e){return e.nodeType===9?null:e.parentNode}function _k(e){if(e===null)return null;const t=QF(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _k(t)}function yb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function JF(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function jl(e,t){var n;if(e==null)return;const r=JF(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function mi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function eD(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $x={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function kk(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function _d(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function li(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function dp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function up(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function fp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const wo="^\\s*",Co="\\s*$",_i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",sa="([0-9A-Fa-f])",ca="([0-9A-Fa-f]{2})",tD=new RegExp(`${wo}hsl\\s*\\(${gr},${_i},${_i}\\)${Co}`),nD=new RegExp(`${wo}hsv\\s*\\(${gr},${_i},${_i}\\)${Co}`),rD=new RegExp(`${wo}hsla\\s*\\(${gr},${_i},${_i},${gr}\\)${Co}`),oD=new RegExp(`${wo}hsva\\s*\\(${gr},${_i},${_i},${gr}\\)${Co}`),iD=new RegExp(`${wo}rgb\\s*\\(${gr},${gr},${gr}\\)${Co}`),aD=new RegExp(`${wo}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${Co}`),xb=new RegExp(`${wo}#${sa}${sa}${sa}${Co}`),wb=new RegExp(`${wo}#${ca}${ca}${ca}${Co}`),Cb=new RegExp(`${wo}#${sa}${sa}${sa}${sa}${Co}`),Sb=new RegExp(`${wo}#${ca}${ca}${ca}${ca}${Co}`);function ir(e){return parseInt(e,16)}function fl(e){try{let t;if(t=rD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=tD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ma(e){try{let t;if(t=oD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=nD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Bn(e){try{let t;if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=iD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=aD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Ao(t[13])];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=Sb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Ao(ir(t[4])/255)];if(t=Cb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Ao(ir(t[4]+t[4])/255)];if(e in $x)return Bn($x[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function lD(e){return e>1?1:e<0?0:e}function sD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function hp(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${lD(r)})`}function Jh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=Bn(e)),Array.isArray(t)||(t=Bn(t));const n=e[3],r=t[3],o=Ao(n+r-n*r);return hp(Jh(e[0],n,t[0],r,o),Jh(e[1],n,t[1],r,o),Jh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e);return t.alpha?hp(n,r,o,t.alpha):hp(n,r,o,i)}function Hc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e),{lightness:a=1,alpha:l=1}=t;return go([n*a,r*a,o*a,i*l])}function Ao(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function xo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vp(e){const[t,n,r]=Array.isArray(e)?e:Bn(e);return sD(t,n,r)}function go(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Ao(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function pp(e){return`hsv(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ba(e){const[t,n,r]=e;return 3 in e?`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function gp(e){return`hsl(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function bi(e){const[t,n,r]=e;return 3 in e?`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function yi(e){if(typeof e=="string"){let r;if(r=wb.exec(e))return`${r[0]}FF`;if(r=Sb.exec(e))return r[0];if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Cb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function vs(e){if(typeof e=="string"){let t;if(t=wb.exec(e))return t[0];if(t=Sb.exec(e))return t[0].slice(0,7);if(t=xb.exec(e)||Cb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function Rk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Da(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wi(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Nn(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?wi(e):typeof e=="number"?wi(String(e)):null,Ox=new Set;function dD(e,t){const n=`[naive/${e}]: ${t}`;Ox.has(n)||(Ox.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Dn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function mp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function rc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Mu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Pk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function $k(e){return t=>{t?e.value=t.$el:e.value=null}}function $l(e){return e.some(t=>Ts(t)?!(t.type===xr||t.type===$t&&!$l(t.children)):!0)?e:null}function vt(e,t){return e&&$l(e())||t()}function ka(e,t,n){return e&&$l(e(t))||n(t)}function Ct(e,t){const n=e&&$l(e());return t(n||null)}function uD(e,t,n){const r=e&&$l(e(t));return n(r||null)}function ya(e){return!(e&&$l(e()))}function ps(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function fD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const bp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),hD=/^(\d|\.)+$/,zx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(hD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=zx.exec(e);return o?e.replace(zx,String((Number(o[0])+n)*t)):e}return e}function Ra(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function vD(e){let t=0;for(let n=0;n{let o=vD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function mD(e,t){const n=[];return t.split(Tk).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function bD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=gD(t,n):t=mD(t,n))}),t.join(", ").replace(pD," ")}function Mx(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function eh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function yD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jc(e){return e?/^\s*@(s|m)/.test(e):!1}const xD=/[A-Z]/g;function Ok(e){return e.replace(xD,t=>"-"+t.toLowerCase())}function wD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Ok(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function CD(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ix(e,t,n,r){if(!t)return"";const o=CD(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Ok(l),s!=null&&a.push(` ${l}${wD(s)}`)}),e&&a.push("}"),a.join(` -`)}function yp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))yp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?yp(o,t,n):o&&n(o)}else r&&n(r)})}function zk(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")jc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});jc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")jc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});jc(d)?l=d:t.push(d)}const s=bD(t),c=Ix(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&yp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Ix(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else zk(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Mk(e,t,n,r=!1){const o=[];return zk(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function Bs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function SD(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Mx),t.els=[];else{const o=eh(n);o&&r.includes(o)&&(Mx(o),t.els=r.filter(i=>i!==o))}}function Fx(e,t){e.push(t)}function _D(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,Mk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Bs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=eh(n);if(d!==null&&!a)return d;const f=d!=null?d:yD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Fx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Fx(t.els,f),f}function kD(e){return Mk(this,this.instance,e)}function RD(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return _D(this.instance,this,t,r,o,i,a,l,n)}function PD(e={}){const{id:t}=e;SD(this.instance,this,t)}const Vc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:kD,mount:RD,unmount:PD}},$D=function(e,t,n,r){return Array.isArray(t)?Vc(e,{$:null},null,t):Array.isArray(n)?Vc(e,t,null,n):Array.isArray(r)?Vc(e,t,n,r):Vc(e,t,n,null)};function Ik(e={}){let t=null;const n={c:(...r)=>$D(n,...r),use:(r,...o)=>r.install(n,...o),find:eh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function TD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return eh(e)!==null}function OD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const zD="n",Es=`.${zD}-`,MD="__",ID="--",Fk=Ik(),Dk=OD({blockPrefix:Es,elementPrefix:MD,modifierPrefix:ID});Fk.use(Dk);const{c:O,find:Qie}=Fk,{cB:S,cE:M,cM:F,cNotM:pt}=Dk;function So(e){return O(({props:{bPrefix:t}})=>`${t||Es}modal, ${t||Es}drawer`,[e])}function Wo(e){return O(({props:{bPrefix:t}})=>`${t||Es}popover`,[e])}function Ak(e){return O(({props:{bPrefix:t}})=>`&${t||Es}modal`,e)}const FD=(...e)=>O(">",[S(...e)]);let ev;function DD(){return ev===void 0&&(ev=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ev}const rr=typeof document<"u"&&typeof window<"u",Bk=new WeakSet;function Pa(e){Bk.add(e)}function Ek(e){return!Bk.has(e)}function AD(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Uo())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function BD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function ED(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function LD(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Lk(e){const t=D(!!e.value);if(t.value)return yo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return yo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function _b(){return Uo()!==null}const th=typeof window<"u";let hl,gs;const ND=()=>{var e,t;hl=th?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,gs=!1,hl!==void 0?hl.then(()=>{gs=!0}):gs=!0};ND();function nh(e){if(gs)return;let t=!1;Mt(()=>{gs||hl==null||hl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function kd(e){return e.composedPath()[0]}const HD={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function jD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(kd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(kd(a))},i=a=>{!r||t.contains(kd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Nk(e,t,n){const r=HD[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=jD(e,t,n)),i}function VD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function UD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function WD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=kd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,VD(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(UD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=WD(),ts=D(null);function Dx(e){if(e.clientX>0||e.clientY>0)ts.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ts.value={x:n+o/2,y:r+i/2}:ts.value={x:0,y:0}}else ts.value=null}}let Uc=0,Ax=!0;function Hk(){if(!th)return yo(D(null));Uc===0&&St("click",document,Dx,!0);const e=()=>{Uc+=1};return Ax&&(Ax=_b())?(Vo(e),Dt(()=>{Uc-=1,Uc===0&&xt("click",document,Dx,!0)})):e(),yo(ts)}const KD=D(void 0);let Wc=0;function Bx(){KD.value=Date.now()}let Ex=!0;function jk(e){if(!th)return yo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Wc===0&&St("click",window,Bx,!0);const i=()=>{Wc+=1,St("click",window,o,!0)};return Ex&&(Ex=_b())?(Vo(i),Dt(()=>{Wc-=1,Wc===0&&xt("click",window,Bx,!0),xt("click",window,o,!0),r()})):i(),yo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function An(){const e=D(!1);return Mt(()=>{e.value=!0}),yo(e)}function ki(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const qD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function YD(){return qD}const XD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function GD(e){return`(min-width: ${e}px)`}const Vl={};function ZD(e=XD){if(!th)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Vl[i]===void 0?(a=window.matchMedia(GD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Vl[i]={mql:a,cbs:l}):(a=Vl[i].mql,l=Vl[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Vl[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function kb(e={},t){const n=Ii({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return _b()?(Vo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),yo(n)}const Rb="n-internal-select-menu",Vk="n-internal-select-menu-body",oc="n-modal-body",Uk="n-modal",ic="n-drawer-body",Pb="n-drawer",Tl="n-popover-body",Wk="__disabled__";function Lt(e){const t=Le(oc,null),n=Le(ic,null),r=Le(Tl,null),o=Le(Vk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Wk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Wk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Lx=!1;function $b(){if(!!rr&&!!window.CSS&&!Lx&&(Lx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function xp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wi(String(r)));return}if(Array.isArray(r)){wp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&wp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Nx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ti=null;function Kk(){if(ti===null&&(ti=document.getElementById("v-binder-view-measurer"),ti===null)){ti=document.createElement("div"),ti.id="v-binder-view-measurer";const{style:e}=ti;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ti)}return ti.getBoundingClientRect()}function QD(e,t){const n=Kk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function tv(e){const t=e.getBoundingClientRect(),n=Kk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function JD(e){return e.nodeType===9?null:e.parentNode}function qk(e){if(e===null)return null;const t=JD(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return qk(t)}const eA=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Uo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=qk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{_a(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return xp("binder",this.$slots)}}),Nr=eA,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Nx("follower",this.$slots),[[t]]):Nx("follower",this.$slots)}}),Ya="@@mmoContext",tA={mounted(e,{value:t}){e[Ya]={handler:void 0},typeof t=="function"&&(e[Ya].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ya];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Ya].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ya];t&&xt("mousemoveoutside",e,t),e[Ya].handler=void 0}},nA=tA,Xa="@@coContext",rA={mounted(e,{value:t,modifiers:n}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Xa];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Xa];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Xa].handler=void 0}},fr=rA;function oA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class iA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&oA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const nv=new iA,Ga="@@ziContext",aA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Ga]={enabled:!!o,initialized:!1},o&&(nv.ensureZIndex(e,r),e[Ga].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Ga].enabled;o&&!i&&(nv.ensureZIndex(e,r),e[Ga].initialized=!0),e[Ga].enabled=!!o},unmounted(e,t){if(!e[Ga].initialized)return;const{value:n={}}=t,{zIndex:r}=n;nv.unregister(e,r)}},ac=aA,Yk=Symbol("@css-render/vue3-ssr");function lA(e,t){return``}function sA(e,t){const n=Le(Yk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(lA(e,t)))}const cA=typeof document<"u";function Fi(){if(cA)return;const e=Le(Yk,null);if(e!==null)return{adapter:sA,context:e}}function Hx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:vo}=Ik(),rh="vueuc-style";function jx(e){return e&-e}class dA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=jx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xp("lazy-teleport",this.$slots):u(Js,{disabled:this.disabled,to:this.mergedTo},xp("lazy-teleport",this.$slots)):null}}),Kc={top:"bottom",bottom:"top",left:"right",right:"left"},Ux={start:"end",center:"center",end:"start"},rv={top:"height",bottom:"height",left:"width",right:"width"},uA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},fA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},hA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Wx={top:!0,bottom:!1,left:!0,right:!1},Kx={top:"end",bottom:"start",left:"end",right:"start"};function vA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Wx[p]?y:-y:m=Wx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=hA[e],p=Kc[v],b=rv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=Ux[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Kc[v],b=rv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Kx[v],c=d(b,v,f)):(s=Kx[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Fi();mA.mount({id:"vueuc/binder",head:!0,anchorMetaName:rh,ssr:l}),Dt(()=>{a()}),nh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?QD(p,b):tv(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=tv(h),$=tv(o.value),{left:R,top:I,placement:z}=vA(x,g,T,w,k,m),A=pA(z,m),{left:L,top:j,transform:E}=gA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=An(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(lc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var xa=[],bA=function(){return xa.some(function(e){return e.activeTargets.length>0})},yA=function(){return xa.some(function(e){return e.skippedTargets.length>0})},qx="ResizeObserver loop completed with undelivered notifications.",xA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:qx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=qx),window.dispatchEvent(e)},Ls;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ls||(Ls={}));var wa=function(e){return Object.freeze(e)},wA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,wa(this)}return e}(),Xk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,wa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Tb=function(e){return e instanceof SVGElement&&"getBBox"in e},Gk=function(e){if(Tb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Yx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},CA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ms=typeof window<"u"?window:{},qc=new WeakMap,Xx=/auto|scroll/,SA=/^tb|vertical/,_A=/msie|trident/i.test(ms.navigator&&ms.navigator.userAgent),ro=function(e){return parseFloat(e||"0")},vl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new wA((n?t:e)||0,(n?e:t)||0)},Gx=wa({devicePixelContentBoxSize:vl(),borderBoxSize:vl(),contentBoxSize:vl(),contentRect:new Xk(0,0,0,0)}),Zk=function(e,t){if(t===void 0&&(t=!1),qc.has(e)&&!t)return qc.get(e);if(Gk(e))return qc.set(e,Gx),Gx;var n=getComputedStyle(e),r=Tb(e)&&e.ownerSVGElement&&e.getBBox(),o=!_A&&n.boxSizing==="border-box",i=SA.test(n.writingMode||""),a=!r&&Xx.test(n.overflowY||""),l=!r&&Xx.test(n.overflowX||""),s=r?0:ro(n.paddingTop),c=r?0:ro(n.paddingRight),d=r?0:ro(n.paddingBottom),f=r?0:ro(n.paddingLeft),h=r?0:ro(n.borderTopWidth),v=r?0:ro(n.borderRightWidth),p=r?0:ro(n.borderBottomWidth),b=r?0:ro(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:ro(n.width)-k-w,$=r?r.height:ro(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=wa({devicePixelContentBoxSize:vl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:vl(R,I,i),contentBoxSize:vl(T,$,i),contentRect:new Xk(f,s,T,$)});return qc.set(e,z),z},Qk=function(e,t,n){var r=Zk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ls.DEVICE_PIXEL_CONTENT_BOX:return a;case Ls.BORDER_BOX:return o;default:return i}},kA=function(){function e(t){var n=Zk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=wa([n.borderBoxSize]),this.contentBoxSize=wa([n.contentBoxSize]),this.devicePixelContentBoxSize=wa([n.devicePixelContentBoxSize])}return e}(),Jk=function(e){if(Gk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},RA=function(){var e=1/0,t=[];xa.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new kA(c.target),f=Jk(c.target);l.push(d),c.lastReportedSize=Qk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},PA=function(){var e=0;for(Zx(e);bA();)e=RA(),Zx(e);return yA()&&xA(),e>0},ov,eR=[],$A=function(){return eR.splice(0).forEach(function(e){return e()})},TA=function(e){if(!ov){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return $A()}).observe(n,r),ov=function(){n.textContent="".concat(t?t--:t++)}}eR.push(e),ov()},OA=function(e){TA(function(){requestAnimationFrame(e)})},Rd=0,zA=function(){return!!Rd},MA=250,IA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jx=function(e){return e===void 0&&(e=0),Date.now()+e},iv=!1,FA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=MA),!iv){iv=!0;var r=Jx(t);OA(function(){var o=!1;try{o=PA()}finally{if(iv=!1,t=r-Jx(),!zA())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,IA)};document.body?n():ms.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return ms.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return ms.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Cp=new FA,ew=function(e){!Rd&&e>0&&Cp.start(),Rd+=e,!Rd&&Cp.stop()},DA=function(e){return!Tb(e)&&!CA(e)&&getComputedStyle(e).display==="inline"},AA=function(){function e(t,n){this.target=t,this.observedBox=n||Ls.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qk(this.target,this.observedBox,!0);return DA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),BA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yc=new WeakMap,tw=function(e,t){for(var n=0;n=0&&(i&&xa.splice(xa.indexOf(r),1),r.observationTargets.splice(o,1),ew(-1))},e.disconnect=function(t){var n=this,r=Yc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),EA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.unobserve(this,t)},e.prototype.disconnect=function(){Xc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class LA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||EA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Iu=new LA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Uo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Hx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Hx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Iu.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Iu.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jm(this.$slots,"default")}});let Gc;function NA(){return Gc===void 0&&("matchMedia"in window?Gc=window.matchMedia("(pointer:coarse)").matches:Gc=!1),Gc}let av;function nw(){return av===void 0&&(av="chrome"in window?window.devicePixelRatio:1),av}const HA=vo(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[vo("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[vo("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Eo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Fi();HA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:rh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Gm(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Zs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new dA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!NA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/nw(),A.scrollLeft+=I.deltaX/nw(),$(),w=!0,_a(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),jA=vo(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[vo("&::-webkit-scrollbar",{width:0,height:0})]),VA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(qi,""))}const i=Fi();return UA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Jm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function tR(e){return e instanceof HTMLElement}function nR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(tR(n)&&(oR(n)||rR(n)))return!0}return!1}function oR(e){if(!WA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function WA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Ul=[];const Ob=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Ul[Ul.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Ul.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Ul=Ul.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?nR(C):rR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function oh(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Iu.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Iu.unregisterHandler(n)}))}let Za=0,ow="",iw="",aw="",lw="";const Sp=D("0px");function iR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=ow,t.style.overflow=iw,t.style.overflowX=aw,t.style.overflowY=lw,Sp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Za){const a=window.innerWidth-t.offsetWidth;a>0&&(ow=t.style.marginRight,t.style.marginRight=`${a}px`,Sp.value=`${a}px`),iw=t.style.overflow,aw=t.style.overflowX,lw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Za++}else Za--,Za||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Za--,Za||o(),r=!1)})}const zb=D(!1),sw=()=>{zb.value=!0},cw=()=>{zb.value=!1};let Wl=0;const aR=()=>(rr&&(Vo(()=>{Wl||(window.addEventListener("compositionstart",sw),window.addEventListener("compositionend",cw)),Wl++}),Dt(()=>{Wl<=1?(window.removeEventListener("compositionstart",sw),window.removeEventListener("compositionend",cw),Wl=0):Wl--})),zb);function Mb(e){const t={isDeactivated:!1};let n=!1;return Gm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Zs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function dw(e){return e.nodeName==="#document"}const Fu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Fu,null);nt(Fu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var KA=typeof global=="object"&&global&&global.Object===Object&&global;const lR=KA;var qA=typeof self=="object"&&self&&self.Object===Object&&self,YA=lR||qA||Function("return this")();const jr=YA;var XA=jr.Symbol;const Ri=XA;var sR=Object.prototype,GA=sR.hasOwnProperty,ZA=sR.toString,Kl=Ri?Ri.toStringTag:void 0;function QA(e){var t=GA.call(e,Kl),n=e[Kl];try{e[Kl]=void 0;var r=!0}catch{}var o=ZA.call(e);return r&&(t?e[Kl]=n:delete e[Kl]),o}var JA=Object.prototype,e6=JA.toString;function t6(e){return e6.call(e)}var n6="[object Null]",r6="[object Undefined]",uw=Ri?Ri.toStringTag:void 0;function Aa(e){return e==null?e===void 0?r6:n6:uw&&uw in Object(e)?QA(e):t6(e)}function Pi(e){return e!=null&&typeof e=="object"}var o6="[object Symbol]";function ih(e){return typeof e=="symbol"||Pi(e)&&Aa(e)==o6}function cR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=N6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U6(e){return function(){return e}}var W6=function(){try{var e=Ea(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Au=W6;var K6=Au?function(e,t){return Au(e,"toString",{configurable:!0,enumerable:!1,value:U6(t),writable:!0})}:Ib;const q6=K6;var Y6=V6(q6);const X6=Y6;var G6=9007199254740991,Z6=/^(?:0|[1-9]\d*)$/;function Db(e,t){var n=typeof e;return t=t==null?G6:t,!!t&&(n=="number"||n!="symbol"&&Z6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=oB}function Ol(e){return e!=null&&Bb(e.length)&&!Fb(e)}function iB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?Ol(n)&&Db(t,n.length):r=="string"&&t in n)?sc(n[t],e):!1}function aB(e){return rB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&iB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function SE(e,t){var n=this.__data__,r=ah(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:qE(e,t,n)}var XE="\\ud800-\\udfff",GE="\\u0300-\\u036f",ZE="\\ufe20-\\ufe2f",QE="\\u20d0-\\u20ff",JE=GE+ZE+QE,eL="\\ufe0e\\ufe0f",tL="\\u200d",nL=RegExp("["+tL+XE+JE+eL+"]");function wR(e){return nL.test(e)}function rL(e){return e.split("")}var CR="\\ud800-\\udfff",oL="\\u0300-\\u036f",iL="\\ufe20-\\ufe2f",aL="\\u20d0-\\u20ff",lL=oL+iL+aL,sL="\\ufe0e\\ufe0f",cL="["+CR+"]",kp="["+lL+"]",Rp="\\ud83c[\\udffb-\\udfff]",dL="(?:"+kp+"|"+Rp+")",SR="[^"+CR+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",kR="[\\ud800-\\udbff][\\udc00-\\udfff]",uL="\\u200d",RR=dL+"?",PR="["+sL+"]?",fL="(?:"+uL+"(?:"+[SR,_R,kR].join("|")+")"+PR+RR+")*",hL=PR+RR+fL,vL="(?:"+[SR+kp+"?",kp,_R,kR,cL].join("|")+")",pL=RegExp(Rp+"(?="+Rp+")|"+vL+hL,"g");function gL(e){return e.match(pL)||[]}function mL(e){return wR(e)?gL(e):rL(e)}function bL(e){return function(t){t=Ta(t);var n=wR(t)?mL(t):void 0,r=n?n[0]:t.charAt(0),o=n?YE(n,1).join(""):t.slice(1);return r[e]()+o}}var yL=bL("toUpperCase");const $R=yL;function xL(e){return $R(Ta(e).toLowerCase())}function wL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&Y8?new Nu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=dv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(dv())}function w(){var k=dv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function Op(e,t,n){(n!==void 0&&!sc(e[t],n)||n===void 0&&!(t in e))&&Ab(e,t,n)}function UN(e){return Pi(e)&&Ol(e)}function zp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function WN(e){return tB(e,gR(e))}function KN(e,t,n,r,o,i,a){var l=zp(e,n),s=zp(t,n),c=a.get(s);if(c){Op(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Eu(s),p=!h&&!v&&Lb(s);d=s,h||v||p?Ar(l)?d=l:UN(l)?d=L6(l):v?(f=!1,d=w8(s,!0)):p?(f=!1,d=N8(s,!0)):d=[]:KE(s)||Bu(s)?(d=l,Bu(l)?d=WN(l):(!Br(l)||Fb(l))&&(d=H8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Op(e,n,d)}function YR(e,t,n,r,o){e!==t&&qR(t,function(i,a){if(o||(o=new mo),Br(i))KN(e,t,a,n,YR,r,o);else{var l=r?r(zp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Op(e,a,l)}},gR)}function qN(e,t){var n=-1,r=Ol(e)?Array(e.length):[];return EN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function YN(e,t){var n=Ar(e)?cR:qN;return n(e,MN(t))}var XN=jR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const XR=XN;var GN=aB(function(e,t,n){YR(e,t,n)});const sl=GN;var ZN=h8("round");const QN=ZN;var JN="Expected a function";function ys(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(JN);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),VN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:e7,fontFamily:t7,lineHeight:n7}=_r,GR=O("body",` - margin: 0; - font-size: ${e7}; - font-family: ${t7}; - line-height: ${n7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",xl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Fi(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:xl,ssr:a}),l!=null&&l.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:a})};a?c():Vo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=sl({},d||y||g||r.common,w,_,b),R=sl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:sl({},r.peers,x,h),peerOverrides:sl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ZR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ZR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const r7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},o7=r7;function uv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(n){return typeof n}:Pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pd(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var i7={};function La(){return i7}function Oa(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?l7(l,function(f){return f.test(a)}):a7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function a7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function l7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var c7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d7=function(t,n,r){var o,i=c7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const u7=d7;var f7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},h7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},v7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},p7={date:uv({formats:f7,defaultWidth:"full"}),time:uv({formats:h7,defaultWidth:"full"}),dateTime:uv({formats:v7,defaultWidth:"full"})};const g7=p7;var m7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},b7=function(t,n,r,o){return m7[t]};const y7=b7;var x7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},w7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},C7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},S7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},k7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},R7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},P7={ordinalNumber:R7,era:ql({values:x7,defaultWidth:"wide"}),quarter:ql({values:w7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ql({values:C7,defaultWidth:"wide"}),day:ql({values:S7,defaultWidth:"wide"}),dayPeriod:ql({values:_7,defaultWidth:"wide",formattingValues:k7,defaultFormattingWidth:"wide"})};const $7=P7;var T7=/^(\d+)(th|st|nd|rd)?/i,O7=/\d+/i,z7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},M7={any:[/^b/i,/^(a|c)/i]},I7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},F7={any:[/1/i,/2/i,/3/i,/4/i]},D7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},A7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},B7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},E7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},L7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},N7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H7={ordinalNumber:s7({matchPattern:T7,parsePattern:O7,valueCallback:function(t){return parseInt(t,10)}}),era:Yl({matchPatterns:z7,defaultMatchWidth:"wide",parsePatterns:M7,defaultParseWidth:"any"}),quarter:Yl({matchPatterns:I7,defaultMatchWidth:"wide",parsePatterns:F7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Yl({matchPatterns:D7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any"}),day:Yl({matchPatterns:B7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),dayPeriod:Yl({matchPatterns:L7,defaultMatchWidth:"any",parsePatterns:N7,defaultParseWidth:"any"})};const j7=H7;var V7={code:"en-US",formatDistance:u7,formatLong:g7,formatRelative:y7,localize:$7,match:j7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ch=V7,U7={name:"en-US",locale:ch},W7=U7;function Qc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function K7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Hu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function wl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function q7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Mp(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function Y7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var X7=6e4,G7=36e5,Z7=1e3;function Q7(e,t){mt(2,arguments);var n=wl(e),r=wl(t);return n.getTime()===r.getTime()}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function J7(e){return mt(1,arguments),e instanceof Date||$d(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!J7(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function eH(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function tH(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function Vs(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ub(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function QR(e,t){mt(2,arguments);var n=Gt(t);return K7(e,-n)}var nH=864e5;function rH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/nH)+1}function Cl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function oH(e){mt(1,arguments);var t=JR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Cl(n);return r}var iH=6048e5;function e2(e){mt(1,arguments);var t=yt(e),n=Cl(t).getTime()-oH(t).getTime();return Math.round(n/iH)+1}function Wb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=La(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=Oa(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=Oa(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function aH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Wb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=Oa(v,t);return p}var lH=6048e5;function t2(e,t){mt(1,arguments);var n=yt(e),r=Oa(n,t).getTime()-aH(n,t).getTime();return Math.round(r/lH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const ni=sH;var Qa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ni.y(t,n)},Y:function(t,n,r,o){var i=Wb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=JR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ni.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=t2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=e2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ni.d(t,n)},D:function(t,n,r){var o=rH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Qa.noon:o===0?i=Qa.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Qa.evening:o>=12?i=Qa.afternoon:o>=4?i=Qa.morning:i=Qa.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ni.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ni.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ni.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ni.s(t,n)},S:function(t,n){return ni.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ww(a);case"XXXX":case"XX":return na(a);case"XXXXX":case"XXX":default:return na(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Ww(a);case"xxxx":case"xx":return na(a);case"xxxxx":case"xxx":default:return na(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+na(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+na(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function Uw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Ww(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return na(e,t)}function na(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const dH=cH;var Kw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},uH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Kw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Kw(o,n)).replace("{{time}}",n2(i,n))},fH={p:n2,P:uH};const Ip=fH;var hH=["D","DD"],vH=["YY","YYYY"];function r2(e){return hH.indexOf(e)!==-1}function o2(e){return vH.indexOf(e)!==-1}function ju(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var pH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mH=/^'([^]*?)'?$/,bH=/''/g,yH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=La(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ch,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Hu(R),z=QR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(gH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=Ip[E];return U(j,_.formatLong)}return j}).join("").match(pH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return xH(j);var U=dH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&o2(j)&&ju(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&r2(j)&&ju(j,t,String(e)),U(z,j,_.localize,A);if(E.match(yH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function xH(e){var t=e.match(mH);return t?t[1].replace(bH,"'"):e}function Kb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function wH(e){return Kb({},e)}var qw=1e3*60,Vu=60*24,Yw=Vu*30,Xw=Vu*365;function CH(e,t,n){var r,o,i;mt(2,arguments);var a=La(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ch;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=Y7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Kb(wH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/qw,m=Hu(f)-Hu(d),g=(p-m)/qw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EH=function(e){FH(n,e);var t=DH(n);function n(){var r;MH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function d2(e){return e%400===0||e%4===0&&e%100!==0}function zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zd=function(n){return typeof n}:zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zd(e)}function LH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WH=function(e){HH(n,e);var t=jH(n);function n(){var r;LH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=c2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Md=function(n){return typeof n}:Md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Md(e)}function KH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=function(e){YH(n,e);var t=XH(n);function n(){var r;KH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Wb(o,l);if(a.isTwoDigitYear){var c=c2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function JH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i9=function(e){t9(n,e);var t=n9(n);function n(){var r;JH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f9=function(e){s9(n,e);var t=c9(n);function n(){var r;a9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y9=function(e){p9(n,e);var t=g9(n);function n(){var r;h9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function x9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R9=function(e){C9(n,e);var t=S9(n);function n(){var r;x9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function P9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I9=function(e){T9(n,e);var t=O9(n);function n(){var r;P9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function F9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N9=function(e){A9(n,e);var t=B9(n);function n(){var r;F9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function H9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=t2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ld=function(n){return typeof n}:Ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ld(e)}function j9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y9=function(e){U9(n,e);var t=W9(n);function n(){var r;j9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Oa(H9(o,a,l),l)}}]),n}(Yt);function X9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=e2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function G9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nj=function(e){Q9(n,e);var t=J9(n);function n(){var r;G9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Cl(X9(o,a))}}]),n}(Yt);function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function rj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cj=[31,28,31,30,31,30,31,31,30,31,30,31],dj=[31,29,31,30,31,30,31,31,30,31,30,31],uj=function(e){ij(n,e);var t=aj(n);function n(){var r;rj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=dj[s]:i>=1&&i<=cj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function fj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bj=function(e){vj(n,e);var t=pj(n);function n(){var r;fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Gb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=La(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kj=function(e){wj(n,e);var t=Cj(n);function n(){var r;yj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Rj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mj=function(e){$j(n,e);var t=Tj(n);function n(){var r;Rj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function Ij(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lj=function(e){Dj(n,e);var t=Aj(n);function n(){var r;Ij(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Nj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qj=function(e){Vj(n,e);var t=Uj(n);function n(){var r;Hj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Nj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function Yj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eV=function(e){Gj(n,e);var t=Zj(n);function n(){var r;Yj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lV=function(e){rV(n,e);var t=oV(n);function n(){var r;tV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vV=function(e){dV(n,e);var t=uV(n);function n(){var r;sV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wV=function(e){mV(n,e);var t=bV(n);function n(){var r;pV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function CV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $V=function(e){_V(n,e);var t=kV(n);function n(){var r;CV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function TV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DV=function(e){zV(n,e);var t=MV(n);function n(){var r;TV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function AV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jV=function(e){EV(n,e);var t=LV(n);function n(){var r;AV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function VV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XV=function(e){WV(n,e);var t=KV(n);function n(){var r;VV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function GV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nU=function(e){QV(n,e);var t=JV(n);function n(){var r;GV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(n){return typeof n}:ou=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ou(e)}function rU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cU=function(e){iU(n,e);var t=aU(n);function n(){var r;rU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gU=function(e){fU(n,e);var t=hU(n);function n(){var r;dU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SU=function(e){yU(n,e);var t=xU(n);function n(){var r;mU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OU=function(e){RU(n,e);var t=PU(n);function n(){var r;_U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BU=function(e){IU(n,e);var t=FU(n);function n(){var r;zU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=LU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function LU(e,t){if(!!e){if(typeof e=="string")return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new TH],L=_.match(HU).map(function(Oe){var ke=Oe[0];if(ke in Ip){var pe=Ip[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(NU),j=[],E=iC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&o2(ke)&&ju(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&r2(ke)&&ju(ke,_,e);var pe=ke[0],Me=EU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(WU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=qU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(cu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&UU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=QR(re,Hu(re)),ue={},de=iC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Kb(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function qU(e){return e.match(jU)[1].replace(VU,"'")}function YU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function dh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function u2(e,t){mt(2,arguments);var n=Vs(e),r=Vs(t);return n.getTime()===r.getTime()}function Zb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function f2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Qb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=_H(a);return n.setMonth(r,Math.min(i,l)),n}function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function jn(e,t){if(mt(2,arguments),du(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Qb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function Yi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function vv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function XU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Qb(n,n.getMonth()+i*3)}function pv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function lC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:o7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:W7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Fi(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:r})};r?i():Vo(i)}function h2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Dn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Fi();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+Bs(JSON.stringify(p))),b&&(f+="-"+Bs(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Fi(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(TD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Vo(i),o}function GU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function ZU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const QU=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),uh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},JU=Nn(uh),v2=J({name:"Affix",props:uh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",QU,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=yb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){_a(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=GU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=ZU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Sl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),p2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),eW=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Hn(e,t){return J({name:$R(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const tW=Hn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),$i=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),sC=Hn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Jb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),e0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Na=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),g2=Hn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),m2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),nW=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),rW=Hn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),oW=Hn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),iW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ha=Hn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ti=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Oi=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),aW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),zi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Mi=Hn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),b2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),y2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),ja=Hn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),lW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),sW=Hn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Di=Hn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),cW=Hn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),x2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),dW=Hn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),uW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),fW=Hn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),hW=Hn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),vW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),pW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),gW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),mW=Hn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),bW=Hn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),yW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),_o=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=An();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),ko=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?Gf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),xW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",xW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),wW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Yo=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",wW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(g2,null)}))}}}),Ro=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:CW}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${CW} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const SW=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),_W={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Jr=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},_W),setup(e){Vr("-base-loading",SW,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(_o,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function dC(e){return Array.isArray(e)?e:[e]}const Vg={STOP:"STOP"};function w2(e,t){const n=t(e);e.children!==void 0&&n!==Vg.STOP&&e.children.forEach(r=>w2(r,t))}function kW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function RW(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function PW(e){return e.children}function $W(e){return e.key}function TW(){return!1}function OW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function zW(e){return e.disabled===!0}function MW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function IW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function FW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function DW(e){return(e==null?void 0:e.type)==="group"}function C2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class S2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function AW(e,t,n,r){return Rf(t.concat(e),n,r,!1)}function BW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function EW(e,t,n,r){const o=Rf(t,n,r,!1),i=Rf(e,n,r,!0),a=BW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function bv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:IW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:FW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=EW(o,n,t,c):r!==void 0?f=AW(r,n,t,c):f=Rf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Rf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&w2(c,d=>{if(d.disabled)return Vg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),MW(d.rawNode,i))){if(r)return Vg.STOP;if(!n)throw new S2}})}),l}function LW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function NW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function HW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function uC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?jW:HW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=t0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=VW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function jW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function VW(e){return e.parent}function t0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=t0(c,t);if(d!==null)return d}else return c}}return null}const UW={getChild(){return this.ignored?null:t0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return uC(this,"next",e)},getPrev(e={}){return uC(this,"prev",e)}};function Ug(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function WW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function _2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=_2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function eo(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=zW,getIgnored:a=TW,getIsGroup:l=DW,getKey:s=$W}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:PW,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return RW(this.rawNode,d)},get shallowLoaded(){return OW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return WW(this,x)}},UW),h=_2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return Ug(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return NW(h)},getPath(x,w={}){return LW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return bv({checkedKeys:gv(x),indeterminateKeys:mv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToCheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToUncheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return kW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},KW=Bn(bt.neutralBase),k2=Bn(bt.neutralInvertBase),qW="rgba("+k2.slice(0,3).join(", ")+", ";function fC(e){return qW+String(e)+")"}function Gn(e){const t=Array.from(k2);return t[3]=Number(e),ht(KW,t)}const YW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:fC(bt.alphaScrollbar),scrollbarColorHover:fC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=YW,XW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},GW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},XW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},ZW={name:"Empty",common:et,self:GW},Ai=ZW,QW=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),R2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Bi=J({name:"Empty",props:R2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",QW,Ai,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(iW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),JW=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},eK={name:"Scrollbar",common:et,self:JW},hr=eK,{cubicBezierEaseInOut:hC}=_r;function Lo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hC,leaveCubicBezier:o=hC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const tK=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Lo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),nK=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),P2=J({name:"Scrollbar",props:nK,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=YD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Mb(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",tK,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=P2,Pf=P2,rK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},oK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},rK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},iK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Ai},self:oK},zl=iK;function aK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Jb)}):null})}const vC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Rb),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=aK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:ps([c,p==null?void 0:p.onClick]),onMouseenter:ps([d,p==null?void 0:p.onMouseenter]),onMousemove:ps([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),pC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Rb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:gC,cubicBezierEaseOut:mC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${gC}, transform ${t} ${gC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${mC}, transform ${t} ${mC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const lK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),cc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",lK,zl,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>C2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>mi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(Rb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(Vk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":mi(ve,"left"),"--n-option-padding-right":mi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return oh(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(Jr,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Bi,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(Eo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(vC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):u(vC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Ro,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),sK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),$2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",sK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),cK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Lo()]),dK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",cK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),uK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},fK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},uK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},hK={name:"Popover",common:et,self:fK},Va=hK,yv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",vK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${To("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${To("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${To("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${To("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${To("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${To("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${To("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${To("right-end")} + var(--v-offset-top)); - `),...YN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=To(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function To(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${yv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${yv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),FD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${yv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const T2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),O2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),pK=J({name:"PopoverBody",inheritAttrs:!1,props:T2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",vK,Va,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!DD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([nA,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Tl,c),nt(ic,null),nt(oc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!ya(t.header)||!ya(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(Pf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?O2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u(Ob,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),gK=Object.keys(T2),mK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function bK(e,t,n){mK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const yK=wi("").type,za={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},z2=Object.assign(Object.assign(Object.assign({},Se.props),za),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ua=J({name:"Popover",inheritAttrs:!1,props:z2,__popover__:!0,setup(e){const t=An(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=ki(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Mu(n,"activator"):r=Mu(n,"trigger"),r)){r=nr(r),r=r.type===yK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};bK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(pK,mn(this.$props,gK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),xK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},wK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},xK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},CK={name:"Tag",common:et,self:wK},M2=CK,I2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},SK=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),F2=Object.assign(Object.assign(Object.assign({},Se.props),I2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),D2="n-tag",xs=J({name:"Tag",props:F2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",SK,M2,e,r);nt(D2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Ra(m)}`),g&&(v+=`b${Ra(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Yo,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),_K=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Wg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",_K,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(_o,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(dW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),A2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(Jr,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Wg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(x2,null)])})}):null})}}}),kK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},RK=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},kK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},PK={name:"InternalSelection",common:et,peers:{Popover:Va},self:RK},fh=PK,$K=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),n0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",$K,fh,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),oh(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(bp,null,{default:()=>u(A2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(xs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Ua,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:rc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),bC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ri}=_r;function B2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ri}, - max-width ${e} ${ri} ${t}, - margin-left ${e} ${ri} ${t}, - margin-right ${e} ${ri} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ri} ${t}, - max-width ${e} ${ri}, - margin-left ${e} ${ri}, - margin-right ${e} ${ri}; - `)]}const{cubicBezierEaseOut:Ja}=_r;function TK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const OK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[TK({duration:".2s"}),B2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),zK=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",OK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(Gf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(bC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(ko,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},MK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},FK={name:"Alert",common:et,self:IK},DK=FK,{cubicBezierEaseInOut:oo,cubicBezierEaseOut:AK,cubicBezierEaseIn:BK}=_r;function No({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo} ${r}, - opacity ${t} ${AK} ${r}, - margin-top ${t} ${oo} ${r}, - margin-bottom ${t} ${oo} ${r}, - padding-top ${t} ${oo} ${r}, - padding-bottom ${t} ${oo} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo}, - opacity ${t} ${BK}, - margin-top ${t} ${oo}, - margin-bottom ${t} ${oo}, - padding-top ${t} ${oo}, - padding-bottom ${t} ${oo} - ${n?","+n:""} - `)]}const EK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),No({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),E2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),LK=J({name:"Alert",inheritAttrs:!1,props:E2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",EK,DK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=mi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(ko,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Yo,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(ja,null);case"info":return u(Mi,null);case"warning":return u(Di,null);case"error":return u(Ha,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),NK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},HK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},NK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},jK={name:"Anchor",common:et,self:HK},VK=jK,UK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),uu="n-anchor",L2={title:String,href:String},WK=J({name:"AnchorLink",props:L2,setup(e,{slots:t}){const n=D(null),r=Le(uu),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);BD(uu,"collectedLinkHrefs",o),ED(uu,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:rc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function KK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const r0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},qK=Nn(r0),YK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},r0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=ys(()=>v(!0),128);function v(p=!0){var b;const m=[],g=yb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=KK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(uu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),nh(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),N2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),uh),r0),XK=J({name:"Anchor",props:N2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",UK,VK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(YK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,qK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(v2,Object.assign({},mn(this,JU)),{default:this.renderAnchor}):this.renderAnchor()}});function $f(e){return e.type==="group"}function H2(e){return e.type==="ignored"}function xv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function hh(e,t){return{getIsGroup:$f,getIgnored:H2,getKey(r){return $f(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function GK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if($f(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(H2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function ZK(e,t,n){const r=new Map;return e.forEach(o=>{$f(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const QK=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const j2=rr&&navigator.userAgent.includes("Safari")&&!QK,JK={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},eq=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},JK),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},tq={name:"Input",common:et,self:eq},kr=tq,V2="n-input";function nq(e){let t=0;for(const n of e)t++;return t}function Jc(e){return e===""||e==null}function rq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const yC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(V2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||nq)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},ka(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),oq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),iq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),U2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),In=J({name:"Input",props:U2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",oq,kr,e,t);j2&&Vr("-input-safari",iq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=rq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Uo().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(V2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:Po,colorFocusWarning:Go,boxShadowFocusWarning:Zo,borderWarning:Qo,borderFocusWarning:Li,borderHoverWarning:kh,colorFocusError:Rh,boxShadowFocusError:Ph,borderError:$h,borderFocusError:Th,borderHoverError:Oh,clearSize:zh,clearColor:Mh,clearColorHover:GO,clearColorPressed:ZO,iconColor:QO,iconColorDisabled:JO,suffixTextColor:ez,countTextColor:tz,countTextColorDisabled:nz,iconColorHover:rz,iconColorPressed:oz,loadingColor:iz,loadingColorError:az,loadingColorWarning:lz,[ye("padding",le)]:sz,[ye("fontSize",le)]:cz,[ye("height",le)]:dz}}=i.value,{left:uz,right:fz}=mi(sz);return{"--n-bezier":Ie,"--n-count-text-color":tz,"--n-count-text-color-disabled":nz,"--n-color":Ge,"--n-font-size":cz,"--n-border-radius":gt,"--n-height":dz,"--n-padding-left":uz,"--n-padding-right":fz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":Po,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":iz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Go,"--n-box-shadow-focus-warning":Zo,"--n-border-warning":Qo,"--n-border-focus-warning":Li,"--n-border-hover-warning":kh,"--n-loading-color-warning":lz,"--n-caret-color-error":Qe,"--n-color-focus-error":Rh,"--n-box-shadow-focus-error":Ph,"--n-border-error":$h,"--n-border-focus-error":Th,"--n-border-hover-error":Oh,"--n-loading-color-error":az,"--n-clear-color":Mh,"--n-clear-size":zh,"--n-clear-color-hover":GO,"--n-clear-color-pressed":ZO,"--n-icon-color":QO,"--n-icon-color-hover":rz,"--n-icon-color-pressed":oz,"--n-icon-color-disabled":JO,"--n-suffix-text-color":ez}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(A2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(yC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(m2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(nW,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(yC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),aq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),W2={},K2=J({name:"InputGroup",props:W2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",aq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),lq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),q2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),sq=J({name:"InputGroupLabel",props:q2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",lq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function cq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const dq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:cq},uq=dq;function fq(e){return e.map(Y2)}function Y2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>Y2(o))}:e}const hq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),X2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),vq=J({name:"AutoComplete",props:X2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",hq,uq,e,r),g=P(()=>fq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>eo(g.value,hh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:An(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Mu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(In,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(cc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),pl=rr&&"loading"in document.createElement("img"),pq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},wv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,G2=(e,t,n)=>{if(!e)return()=>{};const r=pq(t),{root:o}=r.options;let i;const a=wv.get(o);a?i=a:(i=new Map,wv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=Cv.get(h.target),p=Sv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Cv.delete(e),Sv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||wv.delete(o))};return Cv.set(e,d),Sv.set(e,n),d},gq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},mq={name:"Avatar",common:et,self:gq},Z2=mq,Q2="n-avatar-group",bq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[So(O("&","--n-merged-color: var(--n-color-modal);")),Wo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),J2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Kg=J({name:"Avatar",props:J2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Q2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",bq,Z2,e,t),f=Le(D2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Ra(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(pl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=G2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:pl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:pl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),yq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),xq=()=>({gap:"-12px"}),wq={name:"AvatarGroup",common:et,peers:{Avatar:Z2},self:xq},Cq=wq,eP=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),Sq=J({name:"AvatarGroup",props:eP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",yq,Cq,e,t);nt(Q2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Kg,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Kg,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),_q={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},kq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},_q),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Rq={name:"BackTop",common:et,self:kq},Pq=Rq,$q=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Tq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Oq=J({name:"BackTop",inheritAttrs:!1,props:tP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${Sp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",Tq,Pq,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||yb(e.listenTo)||_k(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(dw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(dw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:An(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(lc,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>$q})])):null}})}))}}),zq=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Mq={name:"Badge",common:et,self:zq},Iq=Mq,Fq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),nP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Dq=J({name:"Badge",props:nP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",Fq,Iq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!ya(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Ra(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:rc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u(zK,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u($2,{clsPrefix:t}):null):null}))}}),Aq={fontWeightActive:"400"},Bq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Aq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Eq={name:"Breadcrumb",common:et,self:Bq},Lq=Eq,Nq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),rP="n-breadcrumb",oP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),Hq=J({name:"Breadcrumb",props:oP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",Nq,Lq,e,t);nt(rP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),jq=rr?window:null,Vq=(e=jq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Qs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},iP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Uq=J({name:"BreadcrumbItem",props:iP,setup(e,{slots:t}){const n=Le(rP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Vq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Xi(e){return ht(e,[255,255,255,.16])}function ed(e){return ht(e,[0,0,0,.12])}const aP="n-button-group",Wq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Kq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},Wq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},qq={name:"Button",common:et,self:Kq},vr=qq,Yq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),B2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),lP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!j2}}),sP=J({name:"Button",props:lP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(aP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Yq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Xi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Xi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Xi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Xi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Xi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?ed(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Xi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ra($)),z&&(x+="k"+Ra(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Xi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":ed(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(ko,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:ya(this.$slots.default)?"0":""}},u(_o,null,{default:()=>this.loading?u(Jr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u($2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=sP,Qr=sP,fn="0!important",cP="-1px!important";function el(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:cP})])])])])}function tl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:cP})])])])])}const Xq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),el("default"),F("ghost",[el("primary"),el("info"),el("success"),el("warning"),el("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),dP={size:{type:String,default:void 0},vertical:Boolean},o0=J({name:"ButtonGroup",props:dP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Xq,t),nt(aP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Tf=1901,Ma=40,Gq={date:Q7,month:dh,year:f2,quarter:u2};function Do(e,t,n){const r=Gq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function _v(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},eY),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},nY={name:"Calendar",common:et,peers:{Button:vr},self:tY},rY=nY,oY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),So(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),Wo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),uP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),iY=J({name:"Calendar",props:uP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",oY,rY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Of(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&wl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},ka(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(o0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(e0,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Na,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===wl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),aY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},lY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:aY},sY=lY;function cY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Us(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function dY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function uY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const fY={rgb:{hex(e){return yi(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return bi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ba([...dp(t,n,r),o])}},hex:{rgb(e){return go(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return bi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ba([...dp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=fl(e);return yi([...fp(t,n,r),o])},rgb(e){const[t,n,r,o]=fl(e);return go([...fp(t,n,r),o])},hsv(e){const[t,n,r,o]=fl(e);return ba([...kk(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ma(e);return yi([...li(t,n,r),o])},rgb(e){const[t,n,r,o]=ma(e);return go([...li(t,n,r),o])},hsl(e){const[t,n,r,o]=ma(e);return bi([..._d(t,n,r),o])}}};function fP(e,t,n){return n=n||Us(e),n?n===t?e:fY[n][t](e):null}const rl="12px",hY=12,Gi="6px",vY=6,pY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",gY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=dY((i.clientX-s-vY)/(l-hY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:rl,borderRadius:Gi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:pY,height:rl,borderRadius:Gi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Gi,right:Gi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Gi})`,borderRadius:Gi,width:rl,height:rl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Gi,width:rl,height:rl}})))))}}),Xl="12px",mY=12,Zi="6px",bY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-mY);e.onUpdateAlpha(uY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Xl,borderRadius:Zi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Zi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Zi,right:Zi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Zi})`,borderRadius:Zi,width:Xl,height:Xl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:go(this.rgba),borderRadius:Zi,width:Xl,height:Xl}}))))}}),td="12px",nd="6px",yY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:td,height:td,borderRadius:nd,left:`calc(${this.displayedSv[0]}% - ${nd})`,bottom:`calc(${this.displayedSv[1]}% - ${nd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:nd,width:td,height:td}})))}}),i0="n-color-picker";function xY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function wY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function CY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function SY(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function _Y(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const kY={paddingSmall:"0 4px"},xC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(i0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=SY(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=wY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=CY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=_Y(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=xY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(In,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:kY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),RY=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?yi:vs)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ba:pp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?go:vp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?bi:gp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(K2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?yi:vs)(r)}catch{}return u(xC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(xC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),PY=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(i0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?bi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function $Y(e,t){if(t==="hsv"){const[n,r,o,i]=ma(e);return go([...li(n,r,o),i])}return e}function TY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const OY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Us(i);return{value:i,mode:a,legalValue:$Y(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=TY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:fP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),zY=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Us(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,fP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),MY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),hP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),IY=J({name:"ColorPicker",props:hP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",MY,sY,e,s);nt(i0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?cY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Us(g.value)),{modes:w}=e,k=D(Us(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ma(N);case"hsl":return[T,$,R,j]=fl(N),[...kk(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...dp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return Bn(N);case"hsv":return[T,$,I,j]=ma(N),[...li(T,$,I),j];case"hsl":return[T,$,R,j]=fl(N),[...fp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return fl(N);case"hsv":return[T,$,I,j]=ma(N),[..._d(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...up(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ba:pp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?bi:gp)([..._d(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?go:vp)([...li(Z,N,te),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ba:pp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?go:vp)([...li(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?bi:gp)([..._d(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ba([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(go([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(yi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(bi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(yY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(gY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(bY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(zY,{clsPrefix:Pe,mode:k.value,color:U.value&&vs(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(RY,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(OY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:An(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(PY,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),FY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},DY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},FY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},AY={name:"Card",common:et,self:DY},vP=AY,BY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Ak({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),So(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),Wo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),a0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},EY=Nn(a0),pP=Object.assign(Object.assign({},Se.props),a0),gP=J({name:"Card",props:pP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",BY,vP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=mi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Yo,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),LY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),NY={name:"Carousel",common:et,self:LY},HY=NY;function jY(e){const{length:t}=e;return t>1&&(e.push(wC(e[0],0,"append")),e.unshift(wC(e[t-1],t-1,"prepend"))),e}function wC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function CC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function kv(e,t){return t?e+1:e}function VY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function UY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function WY(e,t){return t&&e>3?e-2:e}function SC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function _C(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function rd(e,t,n){return en?n:e}function KY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const mP="n-carousel-methods",qY=e=>nt(mP,e),l0=(e="unknown",t="component")=>{const n=Le(mP);return n||Dn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},YY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},XY=J({name:"CarouselDots",props:YY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=l0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Zm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},cD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),GY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),ZY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),QY=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=l0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},GY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},ZY))}}),hu="CarouselItem",JY=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hu},bP=J({name:hu,setup(e){const{mergedClsPrefixRef:t}=He(e),n=l0($w(hu),`n-${$w(hu)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),eX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),tX=["transitionDuration","transitionTimingFunction"],yP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Rv=!1;const nX=J({name:"Carousel",props:yP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>_C(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,tX):{}}),w=P(()=>h.value?0:KY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GeWY(_.value,f.value)),$=kv(e.defaultIndex,f.value),R=D(CC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>kv(I.value,f.value));function A(oe){var Fe,Ne;oe=rd(oe,0,_.value-1);const Ze=CC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return VY(oe,_.value,e.loop)}function j(oe=z.value){return UY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=rd(kv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};qY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Gs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(Rv||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;Rv=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=SC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=SC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=rd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(Rv=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=_C(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Qm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",eX,HY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=rX(p);return b.length||(b=p.map(m=>u(bP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=jY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&ka(h,d,()=>[u(XY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&ka(v,c,()=>[u(QY,null)]))}});function rX(e){return e.reduce((t,n)=>(JY(n)&&t.push(n),t),[])}const oX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},iX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},oX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},aX={name:"Checkbox",common:et,self:iX},Ml=aX,lX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},sX={name:"Cascader",common:et,peers:{InternalSelectMenu:zl,InternalSelection:fh,Scrollbar:hr,Checkbox:Ml,Empty:Ai},self:lX},cX=sX;function od(e){return e?e.map(t=>t.rawNode):null}function dX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Gg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Gg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const uX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),fX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),xP="n-checkbox-group",wP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},CP=J({name:"CheckboxGroup",props:wP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(xP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),hX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),So(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),Wo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),SP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Xo=J({name:"Checkbox",props:SP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(xP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",hX,Ml,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(_o,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},fX):u("div",{key:"check",class:`${c}-checkbox-icon`},uX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),dc="n-cascader",kC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(dc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Xo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Jb,null)}):null}):null:u(Jr,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Na,null)})}))))}}),vX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(dc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(Eo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(kC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(kC,{key:r.key,tmNode:r}))}))}}),pX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(dc),l=[],s=D(null),c=D(null);function d(){o()}oh(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(vX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(dK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Bi,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Ro,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),gX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(dc),v=D(null),p=P(()=>dX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>eo(m.value,hh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(cc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),mX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),_P=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),bX=J({name:"Cascader",props:_P,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",mX,cX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return eo(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);fa(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return od((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof S2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,od(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,od((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return od((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Gg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Gg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&(Pa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(dc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:An(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(pX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(gX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),yX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},xX={name:"Code",common:et,self:yX},kP=xX,wX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),RP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),PP=J({name:"Code",props:RP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:h2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",wX,kP,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),CX=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},SX={name:"Collapse",common:et,self:CX},_X=SX,kX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),No({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),$P=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),TP="n-collapse",RX=J({name:"Collapse",props:$P,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",kX,_X,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt(TP,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),PX=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Lk(xe(e,"show"))}},render(){return u(ko,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),OP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},$X=J({name:"CollapseItem",props:OP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(TP);o||Dn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=ka(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},ka(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(e0,null):u(Na,null)})]})),n==="left"&&l),uD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(PX,{clsPrefix:i,displayDirective:o,show:!r},t))}}),TX=S("collapse-transition",{width:"100%"},[No()]),OX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},zX={name:"CollapseTransition",common:et,self:OX},MX=zX,zP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),IX=J({name:"CollapseTransition",props:zP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",TX,MX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(ko,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),MP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},IP=J({name:"ConfigProvider",alias:["App"],props:MP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:sl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=bu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=bu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${Bs(JSON.stringify(r.value))}`:g:m?Bs(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||ZR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),FP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},FX=J({name:"Countdown",props:FP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),DX=e=>1-Math.pow(1-e,5);function AX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*DX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const DP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},BX=J({name:"NumberAnimation",props:DP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&AX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=QN(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function EX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const LX={name:"Popselect",common:et,peers:{Popover:Va,InternalSelectMenu:zl},self:EX},s0=LX,AP="n-popselect",NX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),c0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},RC=Nn(c0),HX=J({name:"PopselectPanel",props:c0,setup(e){const t=Le(AP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",NX,s0,t.props,n),i=P(()=>eo(e.options,hh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(cc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),BP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Da(za,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},za.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),c0),EP=J({name:"Popselect",props:BP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,s0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(AP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(HX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,RC),{ref:$k(r),onMouseenter:ps([i,l.onMouseenter]),onMouseleave:ps([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Ua,Object.assign({},Da(this.$props,RC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function jX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const VX={name:"Select",common:et,peers:{InternalSelection:fh,InternalSelectMenu:zl},self:jX},LP=VX,UX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),HP=J({name:"Select",props:NP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",UX,LP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=hh(G,q);return eo(z.value,_e)}),h=P(()=>ZK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=ki(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return xv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?xv(Be,ze):typeof ze=="number"?xv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:GK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&(Pa(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:An(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(cc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),WX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},KX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},WX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},qX={name:"Pagination",common:et,peers:{Select:LP,Input:kr,Popselect:s0},self:KX},jP=qX;function YX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:PC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function PC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const $C=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,TC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],XX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",$C,TC),O("&:hover",$C,TC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),VP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UP=J({name:"Pagination",props:VP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",XX,jP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>YX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||mp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||mp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(zi,null):u($i,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u(Oi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(Ti,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(EP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u($i,null):u(zi,null)})));case"size-picker":return!m&&l?u(HP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),GX={padding:"8px 14px"},ZX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},GX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},QX={name:"Tooltip",common:et,peers:{Popover:Va},self:ZX},vh=QX,JX={name:"Ellipsis",common:et,peers:{Tooltip:vh}},WP=JX,eG={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},tG=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},eG),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},nG={name:"Radio",common:et,self:tG},d0=nG,rG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},oG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},rG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},iG={name:"Dropdown",common:et,peers:{Popover:Va},self:oG},u0=iG,aG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},lG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},aG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},sG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Ml,Radio:d0,Pagination:jP,Scrollbar:hr,Empty:Ai,Popover:Va,Ellipsis:WP,Dropdown:u0},self:lG},cG=sG,KP=Object.assign(Object.assign({},za),Se.props),ph=J({name:"Tooltip",props:KP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,vh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Ua,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),dG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function OC(e){return`${e}-ellipsis--line-clamp`}function zC(e,t){return`${e}-ellipsis--cursor-${t}`}const qP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),f0=J({name:"Ellipsis",inheritAttrs:!1,props:qP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",dG,WP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Zs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?OC(r.value):void 0,e.expandTrigger==="click"?zC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=OC(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=zC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(ph,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),uG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),YP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),to="n-data-table",fG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(to),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(uG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(p2,null)}))}}),hG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),gh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},XP="n-radio-group";function GP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(XP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const vG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),h0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),gh),setup(e){const t=GP(e),n=Se("Radio","-radio",vG,d0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),pG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function gG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=gG(Ir(nc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),mG=gh,bG=J({name:"RadioButton",props:gh,setup:GP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),JP=40,e$=40;function MC(e){if(e.type==="selection")return e.width===void 0?JP:dn(e.width);if(e.type==="expand")return e.width===void 0?e$:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function yG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:JP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:e$);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function IC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function xG(e){return e==="ascend"?1:e==="descend"?-1:0}function wG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function CG(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=yG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function SG(e,t,n){return typeof n=="function"?n(e,t):n||""}function Pv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $v(e){return"children"in e?!1:!!e.sorter}function t$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function FC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function DC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function _G(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:DC(!1)}:Object.assign(Object.assign({},t),{order:DC(t.order)})}function n$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const kG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(to),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Pv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Pv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Pv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(CP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Xo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(QP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(h0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function RG(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const PG=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(to),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=RG(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Ua,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(hG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(aW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(kG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),$G=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(to),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),r$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),TG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},OG={name:"Icon",common:et,self:TG},zG=OG,MG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),i$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",MG,zG,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),v0="n-dropdown-menu",mh="n-dropdown",AC="n-dropdown-option";function Zg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function IG(e){return e.type==="group"}function a$(e){return e.type==="divider"}function FG(e){return e.type==="render"}const l$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(mh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(AC,null),g=Le(v0),y=Le(Tl),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Zg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=LD(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(AC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(s$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(i$,null,{default:()=>u(Na,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),DG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(v0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(mh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),AG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(DG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:a$(i)?u(r$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(l$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),BG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),s$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(mh);nt(v0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Zg(s,o));const{rawNode:l}=i;return Zg(l,o)})})});const r=D(null);return nt(oc,null),nt(ic,null),nt(Tl,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:FG(i)?u(BG,{tmNode:o,key:o.key}):a$(i)?u(r$,{clsPrefix:t,key:o.key}):IG(i)?u(AG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(l$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Pf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?O2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),EG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),LG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},NG=Object.keys(za),c$=Object.assign(Object.assign(Object.assign({},za),LG),Se.props),p0=J({name:"Dropdown",inheritAttrs:!1,props:c$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return eo(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);kb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",EG,u0,e,h);nt(mh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:$k(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(s$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Ua,Object.assign({},mn(this.$props,NG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),d$="_n_all__",u$="_n_none__";function HG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case d$:n(!0);return;case u$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function jG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:d$};case"none":return{label:t.uncheckTableAll,key:u$};default:return n}}):[]}const VG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(to),l=P(()=>HG(r.value,o,i,a)),s=P(()=>jG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(p0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(x2,null)})})}}});function Tv(e){return typeof e.title=="function"?e.title(e):e.title}const f$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(to),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!$v(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=_G(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=wG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Xo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(VG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Tv(R)):U&&typeof U=="object"?u(f0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Tv(R)}):Tv(R)),$v(R)?u(fG,{column:R}):null),FC(R)?u(PG,{column:R,options:R.filterOptions}):null,t$(R)?u($G,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:n$(R,b),[`${t}-data-table-th--filterable`]:FC(R),[`${t}-data-table-th--sortable`]:$v(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),UG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(js(n,a),n,t):js(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(f0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),BC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Na,null)})}))}}),WG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(to);return()=>{const{rowKey:r}=e;return u(Xo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),KG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(to);return()=>{const{rowKey:r}=e;return u(h0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function qG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const YG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),XG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(to),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:xl}),ut=!0}),Qs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?qG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:SG(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(KG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(WG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(BC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(UG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(Eo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:YG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(f$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Bi,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),GG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(to),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(f$,{ref:"headerInstRef"}),u(XG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function ZG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function id(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function QG(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?JG(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function JG(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function eZ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=id(p.sorter)||0;return(id(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=QG(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*xG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&id(v.sorter)!==!1?(p=p.filter(b=>id(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function tZ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return eo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(IC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=eZ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=IC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function nZ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=MC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=MC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&_a(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&_a(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function rZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){t$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function oZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:CG(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function iZ(e,t){const n=P(()=>oZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function aZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const EC=sZ(),lZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),EC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),EC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),So(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Wo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function sZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const cZ=J({name:"DataTable",alias:["AdvancedTable"],props:YP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",lZ,cG,e,r),l=D(null),s=D("body");Zs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=rZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=iZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=tZ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=ZG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=aZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=nZ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(to,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:Po,[ye("fontSize",Ve)]:Go,[ye("thPadding",Ve)]:Zo,[ye("tdPadding",Ve)]:Qo}}=a.value;return{"--n-font-size":Go,"--n-th-padding":Zo,"--n-td-padding":Qo,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":Po}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(GG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(UP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(Jr,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),dZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},uZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},dZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},fZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:uZ},h$=fZ,hZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},vZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},hZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},pZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:h$,Scrollbar:hr},self:vZ},gZ=pZ;function mZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function bZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[0]),p=Uu(h[0]),b=Wu(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[1]),p=Uu(h[1]),b=Wu(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const bh="n-date-picker";function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qg={exports:{}},Jg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Jg,Jg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Jg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Qg,Qg.exports);const yZ=yh(Qg.exports);var em={exports:{}},tm={exports:{}},nm={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(nm,nm.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}},Ho={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Ho,Ho.exports);const xZ=yh(Ho.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ho.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(om,om.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(om.exports),r=i(Xn.exports),o=i(Ho.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(rm,rm.exports);var im={exports:{}},am={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(am,am.exports);var lm={exports:{}},Ws={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})(zf,zf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(zf.exports),r=i(Ws.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(lm,lm.exports);var cm={exports:{}},Ks={exports:{}},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getDefaultOptions=wZ;Wa.setDefaultOptions=CZ;var v$={};function wZ(){return v$}function CZ(e){v$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Ho.exports),i=Wa;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Mf,Mf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Mf.exports),r=l(Xn.exports),o=l(Ks.exports),i=l(Ho.exports),a=Wa;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ks.exports),o=a(dm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(cm,cm.exports);var If={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(am.exports),r=c(lm.exports),o=c(zf.exports),i=c(cm.exports),a=c(Mf.exports),l=c(If.exports),s=c(um.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(im,im.exports);var fm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(fm,fm.exports);var Ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Ff,Ff.exports);const LC=yh(Ff.exports);var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.isProtectedDayOfYearToken=kZ;uc.isProtectedWeekYearToken=RZ;uc.throwProtectedError=PZ;var SZ=["D","DD"],_Z=["YY","YYYY"];function kZ(e){return SZ.indexOf(e)!==-1}function RZ(e){return _Z.indexOf(e)!==-1}function PZ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hm={exports:{}},vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(mm,mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(mm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(gm,gm.exports);var bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(bm,bm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(xm,xm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(ym,ym.exports);var wm={exports:{}},Cm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Sm,Sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Cm.exports),r=o(Sm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(pm.exports),r=l(gm.exports),o=l(bm.exports),i=l(ym.exports),a=l(wm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(hm,hm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(tm.exports),r=v(rm.exports),o=v(Lr.exports),i=v(im.exports),a=v(fm.exports),l=v(Ff.exports),s=uc,c=v(Ho.exports),d=v(Xn.exports),f=Wa,h=v(hm.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(em,em.exports);const $Z=yh(em.exports);function NC(e,t,n){var r=zZ(e,n.timeZone,n.locale);return r.formatToParts?TZ(r,t):OZ(r,t)}function TZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function OZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function zZ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function MZ(e,t){var n=AZ(t);return n.formatToParts?FZ(n,e):DZ(n,e)}var IZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function FZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function DZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ov={};function AZ(e){if(!Ov[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Ov[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ov[e]}function p$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var HC=36e5,BZ=6e4,zv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function g0(e,t,n){var r,o;if(!e||(r=zv.timezoneZ.exec(e),r))return 0;var i;if(r=zv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),jC(i)?-(i*HC):NaN;if(r=zv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return jC(i,a)?(o=Math.abs(i)*HC+a*BZ,i>0?-o:o):NaN}if(NZ(e)){t=new Date(t||Date.now());var l=n?t:EZ(t),s=_m(l,e),c=n?s:LZ(t,s,e);return-c}return NaN}function EZ(e){return p$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _m(e,t){var n=MZ(e,t),r=p$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function LZ(e,t,n){var r=e.getTime(),o=r-t,i=_m(new Date(o),n);if(t===i)return t;o-=i-t;var a=_m(new Date(o),n);return i===a?i:Math.max(i,a)}function jC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var VC={};function NZ(e){if(VC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),VC[e]=!0,!0}catch{return!1}}var HZ=60*1e3,jZ={X:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return UC(o);case"XXXX":case"XX":return al(o);case"XXXXX":case"XXX":default:return al(o,":")}},x:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"x":return UC(o);case"xxxx":case"xx":return al(o);case"xxxxx":case"xxx":default:return al(o,":")}},O:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+VZ(o,":");case"OOOO":default:return"GMT"+al(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return NC("short",o,r);case"zzzz":default:return NC("long",o,r)}}};function Mv(e,t){var n=e?g0(e,t,!0)/HZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Df(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Df(Math.floor(o/60),2),a=Df(Math.floor(o%60),2);return r+i+n+a}function UC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Df(Math.abs(e)/60,2)}return al(e,t)}function VZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Df(i,2)}const UZ=jZ;var WZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const KZ=WZ;var Iv=36e5,WC=6e4,qZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:KZ};function g$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?qZ:xZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=YZ(e),i=XZ(o.date,r),a=i.year,l=i.restDateString,s=GZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=ZZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=g0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=LC(new Date(c+d)),f=LC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function YZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function XZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function GZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,qC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return eQ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return qC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,YC(t,i)?KC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return YC(t,i,s)?KC(t,i,s):new Date(NaN)}return null}function ZZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Fv(n)?n%24*Iv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Fv(n,r)?n%24*Iv+r*WC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Fv(n,r,o)?n%24*Iv+r*WC+o*1e3:NaN}return null}function KC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var QZ=[31,28,31,30,31,30,31,31,30,31,30,31],JZ=[31,29,31,30,31,30,31,31,30,31,30,31];function m$(e){return e%400===0||e%4===0&&e%100!==0}function qC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=m$(e);if(r&&n>JZ[t]||!r&&n>QZ[t])return!1}return!0}function eQ(e,t){if(t<1)return!1;var n=m$(e);return!(n&&t>366||!n&&t>365)}function YC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Fv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var tQ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function nQ(e,t,n){var r=String(t),o=n||{},i=r.match(tQ);if(i){var a=g$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+UZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return $Z(e,r,o)}function rQ(e,t,n){var r=g$(e,n),o=g0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function b$(e,t,n,r){var o=yZ(r);return o.timeZone=t,nQ(rQ(e,t),n,o)}const ns={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Dv(e){return`00${e}`.slice(-2)}function rs(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Dv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Dv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Dv(r===12?12:r-12)):e}function ad(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function oQ(e,t,n){const r=rs(ns[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Dn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function iQ(e){return si(e)<12?"am":"pm"}const y$="n-time-picker",ld=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),aQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},lQ=J({name:"TimePickerPanel",props:aQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(y$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:iQ(Date.now());return rs(ns.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return rs(ns.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return rs(ns.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return rs(ns.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Ro,{onFocus:this.onFocusDetectorFocus}))}}),sQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Av(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const x$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Av(e,23)},minutes:{type:[Number,Array],validator:e=>Av(e,59)},seconds:{type:[Number,Array],validator:e=>Av(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Af=J({name:"TimePicker",props:x$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",sQ,h$,e,n),h=kb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>b$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:ad(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!ad(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!ad(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:si(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&Pa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Pa(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(Yi(YU(new Date),se))):pe(tt(Yi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(vv(tH(new Date),se))):pe(tt(vv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(pv(Zb(new Date),se))):pe(tt(pv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=si(oe);se==="pm"&&Fe<12?pe(tt(Yi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(Yi(oe,Fe-12))),pe(tt(oe))}else{const oe=si($e);se==="pm"&&oe<12?pe(tt(Yi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(Yi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=jn(oe,{hours:si($e),minutes:Uu($e),seconds:Wu($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:si,minutes:Uu,seconds:Wu},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||ad($e[Ue](se),Ue,e[Ue])?$e[Ue](se):oQ($e[Ue](se),Ue,e[Ue])),Ze=pv(vv(Yi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(y$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:An(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(In,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(sW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(lQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),cQ="HH:mm:ss",w$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:cQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function C$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(bh),l=P(()=>({locale:t.value.locale})),s=D(null),c=kb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const m0=Object.assign(Object.assign({},w$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function b0(e,t){const n=C$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(bh),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Of(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return qg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return Xg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Yg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(dh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Zb(B):t==="month"?Tr(B):t==="year"?Ub(B):t==="quarter"?Vs(B):wl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=jn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=jn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=fu(e.defaultTime);te&&(N=tt(jn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?XU(lC(N,B.dateObject.year),B.dateObject.quarter):jn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Qb(te,B.dateObject.month):lC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Mp(g.value,1))}function we(){g.value=tt(Mp(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ma})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Tf;y.value.scrollTo({top:te*Ma})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const S$=J({name:"MonthPanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=b0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"yearVlRef",items:this.yearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),_l=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(S$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),dQ=J({name:"DateTimePanel",props:m0,setup(e){return b0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(In,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Af,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(zi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),y0=Object.assign(Object.assign({},w$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function x0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(bh),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=C$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Of(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Of(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>Xg(nl(e.value,"start"),ee.value)),ve=P(()=>Xg(nl(e.value,"end"),ee.value)),Z=P(()=>{const Re=nl(e.value,"start");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=nl(e.value,"end");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=nl(e.value,"start");return qg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=nl(e.value,"end");return qg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=fu(At[0]),Ut=fu(At[1])):(kt=fu(At),Ut=kt)}kt&&(Re=tt(jn(Re,kt))),Ut&&(Ye=tt(jn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Zb(Re):t==="monthrange"?Tr(Re):wl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=jn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=jn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Tf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Tf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?jn(Re.ts,{month:qt(t==="quarterrange"?Vs(new Date):new Date)}).valueOf():jn(Re.ts,{month:qt(t==="quarterrange"?Vs(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const uQ=J({name:"DateTimeRangePanel",props:y0,setup(e){return x0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(In,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(In,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(zi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(zi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),fQ=J({name:"DatePanel",props:m0,setup(e){return b0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(zi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),hQ=J({name:"DateRangePanel",props:y0,setup(e){return x0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(zi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u(Ti,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u($i,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(zi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(Oi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),vQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},y0),{type:{type:String,required:!0}}),setup(e){const t=x0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Jm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),pQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),_$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),gQ=J({name:"DatePicker",props:_$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",pQ,gZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&(Pa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Pa(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=mZ(e,A),We=bZ(e,A);nt(bh,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:Po,calendarDaysHeight:Go,calendarDaysTextColor:Zo,arrowSize:Qo,panelHeaderPadding:Li,calendarDividerColor:kh,calendarTitleGridTempateColumns:Rh,iconColor:Ph,iconColorDisabled:$h,scrollItemBorderRadius:Th,calendarTitleColorHover:Oh,[ye("calendarLeftPadding",ae)]:zh,[ye("calendarRightPadding",ae)]:Mh}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Li,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":zh,"--n-calendar-right-padding":Mh,"--n-calendar-title-color-hover":Oh,"--n-calendar-title-height":Po,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Rh,"--n-calendar-days-height":Go,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Zo,"--n-calendar-divider-color":kh,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Th,"--n-arrow-size":Qo,"--n-arrow-color":be,"--n-icon-color":Ph,"--n-icon-color-disabled":$h}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:An(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(dQ,Object.assign({},o),r):l==="daterange"?u(hQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(uQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(S$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(vQ,Object.assign({},o,{type:l})):u(fQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(fW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(sC,null)})])}):u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(sC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),mQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},bQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},mQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},yQ={name:"Descriptions",common:et,self:bQ},xQ=yQ,k$="DESCRIPTION_ITEM_FLAG";function wQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[k$]:!1}const CQ=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),So(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),R$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),SQ=J({name:"Descriptions",props:R$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",CQ,xQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:ki(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>wQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Tx(g,"label")],k=[Tx(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||nc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),P$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},_Q=J({name:"DescriptionsItem",[k$]:!0,props:P$,render(){return null}}),kQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},RQ=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},kQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},PQ={name:"Dialog",common:et,peers:{Button:vr},self:RQ},$$=PQ,fc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},T$=Nn(fc),$Q=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),So(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Ak(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),TQ={default:()=>u(Mi,null),info:()=>u(Mi,null),success:()=>u(ja,null),warning:()=>u(Di,null),error:()=>u(Ha,null)},w0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),fc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",$Q,$$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):TQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Yo,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),O$="n-dialog-provider",z$="n-dialog-api",M$="n-dialog-reactive-list",OQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},zQ={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:$$,Card:vP},self:OQ},MQ=zQ,C0=Object.assign(Object.assign({},a0),fc),IQ=Nn(C0),FQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},C0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),iR(P(()=>e.blockScroll&&r.value));const a=Le(Uk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(oc,t),nt(ic,null),nt(Tl,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Mu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Ob,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(w0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,T$),{"aria-modal":"true"}),e):this.preset==="card"?u(gP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,EY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),DQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Lo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),I$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),C0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),F$=J({name:"Modal",inheritAttrs:!1,props:I$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",DQ,MQ,e,n),a=jk(64),l=Hk(),s=An(),c=e.internalDialog?Le(O$,null):null,d=aR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!d.value&&f(!1)}nt(Uk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,IQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(FQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),AQ=Object.assign(Object.assign({},fc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),BQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},AQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(F$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(w0,Object.assign({},mn(this.$props,T$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),D$={injectionKey:String,to:[String,Object]},A$=J({name:"DialogProvider",props:D$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Ii(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(z$,a),nt(O$,{clickedRef:jk(64),clickPositionRef:Hk()}),nt(M$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(BQ,Da(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function B$(){const e=Le(z$,null);return e===null&&Dn("use-dialog","No outer founded."),e}function EQ(){const e=Le(M$,null);return e===null&&Dn("use-dialog-reactive-list","No outer founded."),e}const LQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},NQ={name:"Divider",common:et,self:LQ},HQ=NQ,jQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),E$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),VQ=J({name:"Divider",props:E$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",jQ,HQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),UQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},WQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:UQ},KQ=WQ,qQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(Pb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return iR(P(()=>e.blockScroll&&t.value)),nt(ic,n),nt(Tl,null),nt(oc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:YQ,cubicBezierEaseOut:XQ}=_r;function GQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${YQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${XQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ZQ,cubicBezierEaseOut:QQ}=_r;function JQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ZQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${QQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:eJ,cubicBezierEaseOut:tJ}=_r;function nJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${eJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:rJ,cubicBezierEaseOut:oJ}=_r;function iJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${oJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const aJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[GQ(),JQ(),nJ(),iJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Lo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),L$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),lJ=J({name:"Drawer",inheritAttrs:!1,props:L$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=An(),i=Se("Drawer","-drawer",aJ,KQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=aR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(Pb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(qQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),N$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},sJ=J({name:"DrawerContent",props:N$,setup(){const e=Le(Pb,null);e||Dn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Yo,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),cJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},dJ=()=>cJ,uJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:dJ},fJ=uJ,S0="n-dynamic-input",hJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(S0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),vJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(S0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),pJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),sd=new WeakMap,H$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),gJ=J({name:"DynamicInput",props:H$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(Fu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",pJ,fJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=ha($)?zt($):$;let z=sd.get(I);return z===void 0&&sd.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=ha(A)?zt(A):A,j=ha(R)?zt(R):R,E=sd.get(L);E!==void 0&&sd.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(S0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(Sl,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},ka(e.default,{value:r[y],index:y},()=>[s==="input"?u(hJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(vJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(o0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(b2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(eW,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(p2,null)})}):null]})))))}}),mJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},bJ=()=>mJ,yJ={name:"Space",self:bJ},j$=yJ;let Bv;const xJ=()=>{if(!rr)return!0;if(Bv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Bv=t}return Bv},V$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),U$=J({name:"Space",props:V$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,j$,e,t),o=Zt("Space",n,t);return{useGap:xJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=eD(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(nc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),wJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:M2,Space:j$},self(){return{inputWidth:"64px"}}},CJ=wJ,SJ=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),W$=Object.assign(Object.assign(Object.assign({},Se.props),I2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),_J=J({name:"DynamicTags",props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",SJ,CJ,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>mp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(U$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(xs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(In,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}))}})}}),kJ={name:"Element",common:et},RJ=kJ,K$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),XC=J({name:"Element",alias:["El"],props:K$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,RJ,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${XR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),PJ={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},$J=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},PJ),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},TJ={name:"Form",common:et,self:$J},q$=TJ,OJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),hc="n-form",Y$="n-form-item-insts";var zJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),MJ=J({name:"Form",props:X$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",OJ,q$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return zJ(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Nn(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Nn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(hc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(Y$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function da(){return da=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e,t,n){return FJ()?vu=Reflect.construct.bind():vu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&qs(c,a.prototype),c},vu.apply(null,arguments)}function DJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!DJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return vu(r,arguments,km(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qs(o,r)},Rm(e)}var AJ=/%[sdj%]/g,BJ=function(){};typeof process<"u"&&process.env;function Pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function EJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||EJ(t)&&typeof e=="string"&&!e)}function LJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},os={integer:function(t){return os.number(t)&&parseInt(t,10)===t},float:function(t){return os.number(t)&&!os.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!os.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(WJ())},hex:function(t){return typeof t=="string"&&!!t.match(eS.hex)}},KJ=function(t,n,r,o,i){if(t.required&&n===void 0){G$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?os[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},qJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},ol="enum",YJ=function(t,n,r,o,i){t[ol]=Array.isArray(t[ol])?t[ol]:[],t[ol].indexOf(n)===-1&&o.push(mr(i.messages[ol],t.fullField,t[ol].join(", ")))},XJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:G$,whitespace:UJ,type:KJ,range:qJ,enum:YJ,pattern:XJ},GJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Fn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},ZJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n)||Bt.type(t,n,o,a,i)}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},nee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},iee="enum",aee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[iee](t,n,o,a,i)}r(a)},lee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},see=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},cee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Ev=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),Fn(n,a)||Bt.type(t,n,o,l,i)}r(l)},dee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},ws={string:GJ,method:ZJ,number:QJ,boolean:JJ,regexp:eee,integer:tee,float:nee,array:ree,object:oee,enum:aee,pattern:lee,date:see,url:Ev,hex:Ev,email:Ev,required:cee,any:dee};function $m(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=$m(),vc=function(){function e(n){this.rules=null,this._messages=Tm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=JC($m(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function fee(e){const t=Le(hc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function hee(e){const t=Le(hc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=js(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:tS}=_r;function vee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=tS,leaveCubicBezier:i=tS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const pee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),vee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var nS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),Z$=Nn(pc);function rS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const _0=J({name:"FormItem",props:pc,setup(e){AD(Y$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(hc,null),o=uee(e),i=fee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=hee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",pee,q$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return nS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>nS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?js(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=rS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=rS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new vc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(Fu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),oS=1,Q$="n-grid",J$=1,Ys={span:{type:[Number,String],default:J$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},gee=Nn(Ys),Om=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ys,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Q$),i=Uo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=J$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zm=Object.assign(Object.assign({},Ys),pc),iS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:zm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Om,mn(this.$.vnode.props||{},gee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),mee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),bee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),mee])]),eT="n-row",xh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},yee=Nn(xh),tT=J({name:"Row",props:xh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",bee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(eT,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),wh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},xee=Nn(wh),nT=J({name:"Col",props:wh,setup(e){const t=Le(eT,null);return t||Dn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),k0=Object.assign(Object.assign({},wh),pc),wee=Nn(k0),rT=J({name:"FormItemCol",props:k0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(nT,mn(this.$props,xee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Cee=Object.assign(Object.assign({},xh),k0),See=J({name:"FormItemRow",props:Cee,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,yee),{default:()=>{const e=mn(this.$props,wee);return u(rT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),_ee=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Vo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?sl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Qs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),kee=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},Ree={name:"GradientText",common:et,self:kee},Pee=Ree,$ee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),oT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Tee=J({name:"GradientText",props:oT,setup(e){$b();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",$ee,Pee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Oee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},iT=24,Lv="__ssr__",aT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:iT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},zee=J({name:"Grid",inheritAttrs:!1,props:aT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=ZD((n==null?void 0:n.value)||Oee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(jl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:iT}),c=it(()=>jl(e.xGap.toString(),l.value)),d=it(()=>jl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{_a(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Lv)&&(g.removeAttribute(Lv),b.value=!0)}),nt(Q$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(nc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(fD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=jl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:oS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:oS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=jl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Lv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Mee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Iee={name:"IconWrapper",common:et,self:Mee},Fee=Iee,Dee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),lT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Aee=J({name:"IconWrapper",props:lT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Dee,Fee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),R0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),sT="n-image";function Bee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Eee={name:"Image",common:et,peers:{Tooltip:vh},self:Bee},Lee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Nee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Lee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},Hee={name:"Notification",common:et,peers:{Scrollbar:hr},self:Nee},jee=Hee,Vee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Uee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Vee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},Wee={name:"Message",common:et,self:Uee},Kee=Wee,qee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Yee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:qee},Xee=Yee,Gee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Zee={name:"Layout",common:et,peers:{Scrollbar:hr},self:Gee},Ch=Zee,Qee=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},Jee={name:"List",common:et,self:Qee},ete=Jee,tte=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},nte={name:"LoadingBar",common:et,self:tte},rte=nte,ote=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},ite={name:"Log",common:et,peers:{Scrollbar:hr,Code:kP},self:ote},ate=ite,lte=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},ste={name:"Mention",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:lte},cte=ste;function dte(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const ute=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},dte("#BBB",r,"#FFF","#AAA"))},fte={name:"Menu",common:et,peers:{Tooltip:vh,Dropdown:u0},self:ute},hte=fte,vte={titleFontSize:"18px",backSize:"22px"};function pte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},vte),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const gte={name:"PageHeader",common:et,self:pte},mte={iconSize:"22px"},bte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},mte),{fontSize:t,iconColor:n})},yte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Va},self:bte},xte=yte,wte=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Cte={name:"Progress",common:et,self:wte},cT=Cte,Ste=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},_te={name:"Rate",common:et,self:Ste},kte=_te,Rte={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},Pte=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},Rte),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},$te={name:"Result",common:et,self:Pte},Tte=$te,Ote={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},zte=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},Ote),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Mte={name:"Slider",common:et,self:zte},Ite=Mte,Fte=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Dte={name:"Spin",common:et,self:Fte},Ate=Dte,Bte=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Ete={name:"Statistic",common:et,self:Bte},Lte=Ete,Nte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},Hte=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},Nte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},jte={name:"Steps",common:et,self:Hte},Vte=jte,Ute={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Wte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Ute),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},Kte={name:"Switch",common:et,self:Wte},qte=Kte,Yte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Xte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Yte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Gte={name:"Table",common:et,self:Xte},Zte=Gte,Qte={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},Jte=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Qte),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},ene={name:"Tabs",common:et,self:Jte},tne=ene,nne=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},rne={name:"Thing",common:et,self:nne},one=rne,ine={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},ane=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},ine),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},lne={name:"Timeline",common:et,self:ane},sne=lne,cne={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},dne=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},cne),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},une={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Ai,Button:vr},self:dne},fne=une,hne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},vne={name:"Tree",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Empty:Ai},self:hne},dT=vne,pne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},gne={name:"TreeSelect",common:et,peers:{Tree:dT,Empty:Ai,InternalSelection:fh},self:pne},mne=gne,bne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},yne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},bne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},xne={name:"Typography",common:et,self:yne},Ei=xne,wne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},Cne={name:"Upload",common:et,peers:{Button:vr,Progress:cT},self:wne},Sne=Cne,_ne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},kne=_ne,Rne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Pne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),$ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Tne=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Lo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Lo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),dd=32,uT=J({name:"ImagePreview",props:Object.assign(Object.assign({},R0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Tne,Eee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,_a(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Gs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${XR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(ph,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:An(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(lc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Rne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>Pne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(gW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(pW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(yW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(bW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(mW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>$ne}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ac,{enabled:this.show}]])):null}}))}}),fT="n-image-group",hT=R0,vT=J({name:"ImageGroup",props:hT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Uo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(fT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),pT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},R0),gT=J({name:"Image",props:pT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(fT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(pl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=G2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(sT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:pl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:pl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function One(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function zne(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Nv(e){return e==null?!0:!Number.isNaN(e)}function aS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Hv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Mne=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),lS=800,sS=100,mT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Ine=J({name:"InputNumber",props:mT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Mne,Xee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Hv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Hv(e.min);return B!==null?B:null}),k=it(()=>{const B=Hv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&zne(Z))return!1;const fe=(e.parse||One)(Z);if(fe===null)return N&&_(null),null;if(Nv(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Nv(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=aS(B,void 0):m.value=aS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},sS)},lS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},sS)},lS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=Bn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Qr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(b2,null)})])}),r=()=>u(Qr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(Sl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(In,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),bT="n-layout-sider",Sh={type:String,default:"static"},Fne=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Mm={embedded:Boolean,position:Sh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function xT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Mm),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",Fne,Ch,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(yT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Mb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Dne=xT(!1),Ane=xT(!0),Bne=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),wT={position:Sh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Ene=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),wT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Bne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Lne=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),CT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Sh,bordered:Boolean}),Nne=J({name:"LayoutFooter",props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Lne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Hne=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),jne=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Na,null)}))}}),Vne=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ST={position:Sh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Une=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),ST),setup(e){const t=Le(yT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Mb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(bT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",Hne,Ch,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Vne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(jne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),Wne={extraFontSize:"12px",width:"440px"},Kne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},Wne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},qne={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Ai,Button:vr},self:Kne},Yne=qne,gc="n-transfer",cS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(gc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Xo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),dS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(gc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:rc(r)},r))}}),uS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(dS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(Gf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(dS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Bi,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),fS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(y2,null)})}))}});function Xne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Gne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Zne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Lo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Gne]),_T=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Qne=J({name:"LegacyTransfer",props:_T,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Zne,Yne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Xne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(gc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(cS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Na,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(e0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(cS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Jne=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),So(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),kT=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),RT="n-list",ere=J({name:"List",props:kT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",Jne,ete,e,t);nt(RT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),tre=J({name:"ListItem",setup(){const e=Le(RT,null);return e||Dn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),PT="n-loading-bar",$T="n-loading-bar-api",nre=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Lo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var jv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function ud(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const rre=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(PT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return jv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return jv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=ud(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=ud("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=ud("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=ud("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return jv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",nre,rte,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),TT=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),OT=J({name:"LoadingBarProvider",props:TT,setup(e){const t=An(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt($T,r),nt(PT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Js,{disabled:this.to===!1,to:this.to||"body"},u(rre,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function zT(){const e=Le($T,null);return e===null&&Dn("use-loading-bar","No outer founded."),e}const ore=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(Jr,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),MT="n-log",ire=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(MT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),are=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),IT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),lre=J({name:"Log",props:IT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",are,ate,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=ys(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(MT,{languageRef:xe(e,"language"),mergedHljsRef:h2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(PP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(ire,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(ore,{clsPrefix:e}):null})])}}),mc="n-menu",P0="n-submenu",$0="n-menu-item-group",fd=8;function T0(e){const t=Le(mc),{props:n,mergedCollapsedRef:r}=t,o=Le(P0,null),i=Le($0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?fd:(p===void 0?v:p)+b+fd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const O0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},FT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),sre=J({name:"MenuOptionGroup",props:FT,setup(e){nt(P0,null);const t=T0(e);nt($0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(mc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>z0(s,r))))}}}),DT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(mc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(uW,null)}):null)}}),AT=Object.assign(Object.assign({},O0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),cre=J({name:"Submenu",props:AT,setup(e){const t=T0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(P0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt($0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(DT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(ko,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>z0(s,this.menuProps)))}});return this.root?u(p0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),BT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),dre=J({name:"MenuOption",props:BT,setup(e){const t=T0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(ph,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(DT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),ure=J({name:"MenuDivider",setup(){const e=Le(mc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),fre=Nn(FT),hre=Nn(BT),vre=Nn(AT);function ET(e){return e.type==="divider"||e.type==="render"}function pre(e){return e.type==="divider"}function z0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(ET(n))return pre(n)?u(ure,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(sre,mn(s,fre,{tmNode:e,tmNodes:e.children,key:i})):u(cre,mn(s,vre,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(dre,mn(s,hre,{key:i,tmNode:e}))}const hS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],vS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],gre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",vS)]),F("selected",[Qi(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Qi(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Qi("border-bottom: 2px solid var(--n-border-color-horizontal);",vS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",hS)]),F("selected",[Qi(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Qi(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Qi(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Qi(null,hS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[No({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Qi(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const LT=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),mre=J({name:"Menu",props:LT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",gre,hte,e,t),o=Le(bT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return eo(e.items||e.options,{getIgnored(I){return ET(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=ki(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(mc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>z0(o,this.$props)))}});function bre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const yre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),xre=J({name:"Mention",props:NT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",yre,cte,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>eo(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=bre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:An(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(In,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(cc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),HT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},jT="n-message-api",VT="n-message-provider",wre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[No({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),Cre={info:()=>u(Mi,null),success:()=>u(ja,null),warning:()=>u(Di,null),error:()=>u(Ha,null),default:()=>null},Sre=J({name:"Message",props:Object.assign(Object.assign({},HT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(VT),i=Zt("Message",n,o),a=Se("Message","-message",wre,Kee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=_re(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(_o,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Yo,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function _re(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(Jr,{clsPrefix:n,strokeWidth:24,scale:.85}):Cre[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const kre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},HT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(ko,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(Sre,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),UT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),WT=J({name:"MessageProvider",props:UT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(VT,{props:e,mergedClsPrefixRef:t}),nt(jT,o);function i(s,c){const d=Cr(),f=Ii(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(kre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Da(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function KT(){const e=Le(jT,null);return e===null&&Dn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const _h="n-notification-provider",Rre=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(_h),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Pre={info:()=>u(Mi,null),success:()=>u(ja,null),warning:()=>u(Di,null),error:()=>u(Ha,null),default:()=>null},M0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},$re=Nn(M0),Tre=J({name:"Notification",props:M0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(_h),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=mi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>Pre[this.type]()}):null):null,this.closable?u(Yo,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),Ore=Object.assign(Object.assign({},M0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),zre=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Ore),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(_h),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Tre,Object.assign({},mn(this.$props,$re),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Mre=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[hd("top-right")]),F("top-left",` - left: 0; - `,[hd("top-left")]),F("bottom-right",` - right: 0; - `,[hd("bottom-right")]),F("bottom-left",` - left: 0; - `,[hd("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function hd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const qT="n-notification-api",YT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XT=J({name:"NotificationProvider",props:YT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Ii(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Mre,jee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(qT,c),nt(_h,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(Rre,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(zre,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Da(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function GT(){const e=Le(qT,null);return e===null&&Dn("use-notification","No outer `n-notification-provider` found."),e}const Ire=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),ZT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Fre=J({name:"PageHeader",props:ZT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Ire,gte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(vW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),QT="n-popconfirm",JT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},pS=Nn(JT),Dre=J({name:"NPopconfirmPanel",props:JT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(QT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Di,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Are=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),eO=Object.assign(Object.assign(Object.assign({},Se.props),za),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Bre=J({name:"Popconfirm",props:eO,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Are,xte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(QT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Ua,Da(t,pS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,pS);return u(Dre,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Ere=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Lre={success:u(ja,null),error:u(Ha,null),warning:u(Di,null),info:u(Mi,null)},Nre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Lre[f]}))):null)}}}),Hre={success:u(ja,null),error:u(Ha,null),warning:u(Di,null),info:u(Mi,null)},jre=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>Hre[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function gS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Vre=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),tO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),nO=J({name:"Progress",props:tO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Ere,cT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(jre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(Nre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Vre,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Ure=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Wre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),rO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Kre=J({name:"Rate",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",Wre,kte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ra(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},B5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Ure}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),qre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Yre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Xre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Gre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Zre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Qre={403:Gre,404:qre,418:Xre,500:Yre,info:u(Mi,null),success:u(ja,null),warning:u(Di,null),error:u(Ha,null)},oO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Jre=J({name:"Result",props:oO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Zre,Tte,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>Qre[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),iO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),eoe=J({name:"Scrollbar",props:iO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),toe=eoe,noe=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},roe={name:"Skeleton",common:et,self:noe},ooe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),aO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),ioe=J({name:"Skeleton",inheritAttrs:!1,props:aO,setup(e){$b();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",ooe,roe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function mS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function bS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Zm(()=>e.value.clear()),[e,t]}const aoe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),So(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),Wo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),loe=0,lO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),soe=J({name:"Slider",props:lO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",aoe,Ite,e,t),i=D(null),[a,l]=bS(),[s,c]=bS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!mS(ne)&&ne.button!==loe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:An(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),coe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Lo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),doe={small:20,medium:18,large:16},sO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),uoe=J({name:"Spin",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",coe,Ate,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:ki(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return doe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(Jr,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),foe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),cO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),hoe=J({name:"Statistic",props:cO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",foe,Lte,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),voe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function poe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function goe(e){return e.map((t,n)=>poe(t,n))}const dO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),uO="n-steps",moe=J({name:"Steps",props:dO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",voe,Vte,e,n);return nt(uO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},goe(Ir(nc(this))))}}),fO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},boe=J({name:"Step",props:fO,setup(e){const t=Le(uO,null);t||Dn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(_o,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Jb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(g2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),yoe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),hO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Gl;const xoe=J({name:"Switch",props:hO,setup(e){Gl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Gl=CSS.supports("width","max(1px)"):Gl=!1:Gl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",yoe,qte,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Gl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(ya(s)&&ya(c)&&ya(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),woe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),So(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),Wo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),vO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),Coe=J({name:"Table",props:vO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",woe,Zte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Soe=J({name:"Th",render(){return u("th",null,this.$slots)}}),_oe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),koe=J({name:"Td",render(){return u("td",null,this.$slots)}}),Roe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Poe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),I0="n-tabs",F0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},$oe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:F0,setup(e){const t=Le(I0,null);return t||Dn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Da(F0,["displayDirective"])),Bf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(I0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(Sl,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Yo,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Toe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Ooe=J({name:"Tabs",props:gO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",Toe,tne,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=ki(e,["labelSize","size"]),g=ki(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=ys(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=ys(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=ys(X=>{pe(X.target)},64);nt(I0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),nh(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Vv(u(Bf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Vv(x!==0&&!m?wS(C):C))),!r&&o&&p?xS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Bf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:wS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(VA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?xS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yS(f,this.mergedValue,this.renderedNames)))}});function yS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(Gf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function xS(e,t){return u(Bf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function wS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Vv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const zoe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),mO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Moe=J({name:"Thing",props:mO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",zoe,one,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),bO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Ioe=J({name:"Time",props:bO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>b$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):CH(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?wi(this.renderedTime):u("time",[this.renderedTime])}}),CS=1.25,Foe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${CS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${CS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),yO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),xO="n-timeline",Doe=J({name:"Timeline",props:yO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",Foe,sne,e,n);return nt(xO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),wO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Aoe=J({name:"TimelineItem",props:wO,setup(e){const t=Le(xO);t||Dn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),$b();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),bc="n-transfer",SS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(bc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),_S=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(bc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:rc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Yo,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Bi,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(_S,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(_S,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),RS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(y2,null)})}))}});function Boe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Eoe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),CO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Loe=J({name:"Transfer",props:CO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Eoe,fne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Boe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(bc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(SS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(RS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(SS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(RS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),D0="n-tree-select",yc="n-tree",Noe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(yc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(_o,null,{default:()=>{if(e.loading)return u(Jr,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(lW,null)})}})))}}}),Hoe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(yc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Xo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),joe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(yc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function PS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Voe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function SO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function ii(e,t){return!!e.rawNode[t]}function _O(e,t,n,r){e==null||e.forEach(o=>{n(o),_O(o[t],t,n,r),r(o)})}function Uoe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return _O(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Woe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Koe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(yc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>ii(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Pk(e.key):void 0,y=b==="right",C=n?u(Hoe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),Rk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Noe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(joe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?PS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?PS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),kO=Koe;function qoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(D0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(kO,{clsPrefix:e,tmNode:t})))})}}),Xoe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[No({duration:"0.2s"})]),F("collapse",[No({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Goe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vd=30;function RO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const PO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},$O=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Voe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),PO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),TO=J({name:"Tree",props:$O,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Xoe,dT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Woe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>eo(e.showIrrelevantNodes?e.data:h.value.filteredTree,RO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(D0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=SO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=qoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Uoe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return Goe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/vd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>C2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||ii(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||ii(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const Po=Ur(De.key);if(Po===null){We();return}let Go=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[Po-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Go=!0,cn==="after"&&(Et=j.value[Po+1],Et?cn="before":(Et=De,cn="inside")));const Zo=Et;if(Oe.value=Zo,!Go&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let Qo=Ce-be.clientX,Li=0;for(;Qo>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Li<1;)Qo-=Vt,Li+=1,Et=Et.parent;pe.value=Li}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Zo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Pk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(yc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Yoe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(kO,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=mi(C||"0");return u(Pf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(Eo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:vd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(Pf,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Bi,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function $S(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function TS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Zoe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),OO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),PO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Qoe=J({name:"TreeSelect",props:OO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>eo(e.options,RO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?TS(ie,ze.getPath(ae).treeNodePath,Be,Ee):$S(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?TS($e,ze.getPath(se).treeNodePath,Be,Te):$S($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Pa(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(D0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}oh(o,dt);const ut=SO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Zoe,mne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:An(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(TO,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Bi,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Ro,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Joe=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),ra=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Il=e=>J({name:`H${e}`,props:ra,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",Joe,Ei,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),eie=Il("1"),tie=Il("2"),nie=Il("3"),rie=Il("4"),oie=Il("5"),iie=Il("6"),aie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),zO=Object.assign({},Se.props),lie=J({name:"A",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",aie,Ei,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),sie=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),MO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),cie=J({name:"P",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",sie,Ei,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),die=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),IO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),uie=J({name:"Blockquote",props:IO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",die,Ei,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),fie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),hie=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",fie,Ei,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),OS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),zS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],FO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),OS,zS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),OS,zS])]),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),vie=J({name:"Ul",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Ei,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),AO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pie=J({name:"Ol",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Ei,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),gie=J({name:"Li",render(){return u("li",null,this.$slots)}}),mie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),bie=J({name:"Text",props:BO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",mie,Ei,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:ki(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Fl="n-upload",EO="__UPLOAD_DRAGGER__",LO=J({name:"UploadDragger",[EO]:!0,setup(e,{slots:t}){const n=Le(Fl,null);return n||Dn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var NO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const HO=e=>e.includes("image/"),MS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},IS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,jO=e=>{if(e.type)return HO(e.type);const t=MS(e.name||"");if(IS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=MS(n);return!!(/^data:image\//.test(n)||IS.test(r))};function yie(e){return NO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!HO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const xie=rr&&window.FileReader&&window.File;function wie(e){return e.isDirectory}function Cie(e){return e.isFile}function Sie(e,t){return NO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&wie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else Cie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Xs(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function _ie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const kie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},A0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Fl,null);n||Dn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?Sie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(LO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(Sl,null)})])}):t)}}}),Rie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Fl).mergedThemeRef}},render(){return u(ko,null,{default:()=>this.show?u(nO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Pie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),$ie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Tie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Oie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Fl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&kie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>Tie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):jO(r)?u(st,{clsPrefix:e},{default:()=>Pie}):u(st,{clsPrefix:e},{default:()=>$ie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(gT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(tW,null)}));const s=u(Rie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(m2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:pd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(_o,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(rW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(cW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(hW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(oW,null)})}):null)),!a&&s)}}),VO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Fl,null);n||Dn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(Oie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(vT,Object.assign({},h.value),{default:p}):u(ko,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(A0,null,t))}}}),zie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[No(),S("progress",[No({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var FS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Mie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Xs(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Xs(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Iie(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Xs(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Xs(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Fie(e,t,n){const r=Mie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function UO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Die(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Aie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Bie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Aie(d,s,n),d.append(t,n.file),Fie(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Die(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const WO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>xie?jO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Eie=J({name:"Upload",props:WO,setup(e){e.abstract&&e.listType==="image-card"&&Dn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",zie,Sne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Xs));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?_ie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>FS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>FS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Iie({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Bie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?yie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Fl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[EO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Js,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(A0,null,o),this.showFileList&&u(VO,null,o)))}}),Lie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Nie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const KO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Hie=J({name:"Watermark",props:KO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Lie,kne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return nh(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=Nie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else dD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),jie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Vie={message:KT,notification:GT,loadingBar:zT,dialog:B$};function Uie({providersAndProps:e,configProviderProps:t}){let r=F_(()=>u(IP,qv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,qv(c),{default:()=>u(jie,{onSetup:()=>o[l]=Vie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Wie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:WT,props:n});break;case"notification":a.push({type:s,Provider:XT,props:o});break;case"dialog":a.push({type:s,Provider:A$,props:r});break;case"loadingBar":a.push({type:s,Provider:OT,props:i});break}}),Uie({providersAndProps:a,configProviderProps:t})}const qO={value:String,katex:Object,katexOptions:Object},Kie=J({name:"Equation",props:qO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),DS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:v2,affixProps:uh,NAlert:LK,alertProps:E2,NAnchor:XK,anchorProps:N2,NAnchorLink:WK,anchorLinkProps:L2,NAutoComplete:vq,autoCompleteProps:X2,NAvatar:Kg,avatarProps:J2,NAvatarGroup:Sq,avatarGroupProps:eP,NBackTop:Oq,backTopProps:tP,NBadge:Dq,badgeProps:nP,NBreadcrumb:Hq,breadcrumbProps:oP,NBreadcrumbItem:Uq,breadcrumbItemProps:iP,NButton:Pt,NxButton:Qr,buttonProps:lP,NButtonGroup:o0,buttonGroupProps:dP,NCalendar:iY,calendarProps:uP,NColorPicker:IY,colorPickerProps:hP,NCard:gP,cardProps:pP,NCarousel:nX,carouselProps:yP,NCarouselItem:bP,NCascader:bX,cascaderProps:_P,NCheckbox:Xo,checkboxProps:SP,NCheckboxGroup:CP,checkboxGroupProps:wP,NCode:PP,codeProps:RP,NCollapse:RX,collapseProps:$P,NCollapseItem:$X,collapseItemProps:OP,NCollapseTransition:IX,collapseTransitionProps:zP,NConfigProvider:IP,configProviderProps:MP,NCountdown:FX,countdownProps:FP,NNumberAnimation:BX,numberAnimationProps:DP,NDataTable:cZ,dataTableProps:YP,NDatePicker:gQ,datePickerProps:_$,NDescriptions:SQ,descriptionsProps:R$,NDescriptionsItem:_Q,descriptionsItemProps:P$,NDialog:w0,dialogProps:fc,NDialogProvider:A$,dialogProviderProps:D$,useDialog:B$,useDialogReactiveList:EQ,NDivider:VQ,dividerProps:E$,NDrawer:lJ,drawerProps:L$,NDrawerContent:sJ,drawerContentProps:N$,NDropdown:p0,dropdownProps:c$,NDynamicInput:gJ,dynamicInputProps:H$,NDynamicTags:_J,dynamicTagsProps:W$,NElement:XC,elementProps:K$,NEl:XC,NEllipsis:f0,ellipsisProps:qP,NEmpty:Bi,emptyProps:R2,NForm:MJ,formProps:X$,NFormItem:_0,formItemProps:pc,NFormItemGridItem:iS,NFormItemGi:iS,formItemGiProps:zm,formItemGridItemProps:zm,NFormItemCol:rT,NFormItemRow:See,NGlobalStyle:_ee,NGradientText:Tee,gradientTextProps:oT,NGrid:zee,gridProps:aT,NGridItem:Om,gridItemProps:Ys,NGi:Om,giProps:Ys,NIcon:i$,iconProps:o$,NIconWrapper:Aee,iconWrapperProps:lT,NImage:gT,imageProps:pT,NImageGroup:vT,imageGroupProps:hT,NInput:In,inputProps:U2,NInputGroup:K2,inputGroupProps:W2,NInputGroupLabel:sq,inputGroupLabelProps:q2,NInputNumber:Ine,inputNumberProps:mT,NLayout:Dne,layoutProps:Mm,layoutContentProps:Mm,NLayoutContent:Ane,NLayoutHeader:Ene,layoutHeaderProps:wT,NLayoutFooter:Nne,layoutFooterProps:CT,NLayoutSider:Une,layoutSiderProps:ST,NRow:tT,rowProps:xh,NCol:nT,colProps:wh,NLegacyTransfer:Qne,legacyTransferProps:_T,NList:ere,listProps:kT,NListItem:tre,NLoadingBarProvider:OT,loadingBarProviderProps:TT,useLoadingBar:zT,NLog:lre,logProps:IT,NMenu:mre,menuProps:LT,NMention:xre,mentionProps:NT,NMessageProvider:WT,messageProviderProps:UT,useMessage:KT,NModal:F$,modalProps:I$,NNotificationProvider:XT,notificationProviderProps:YT,useNotification:GT,NPageHeader:Fre,pageHeaderProps:ZT,NPagination:UP,paginationProps:VP,NPopconfirm:Bre,popconfirmProps:eO,NPopover:Ua,popoverProps:z2,NPopselect:EP,popselectProps:BP,NProgress:nO,progressProps:tO,NRadio:h0,radioProps:gh,NRadioGroup:QP,radioGroupProps:ZP,NRadioButton:bG,radioButtonProps:mG,NRate:Kre,rateProps:rO,NResult:Jre,resultProps:oO,NScrollbar:toe,scrollbarProps:iO,NSelect:HP,selectProps:NP,NSkeleton:ioe,skeletonProps:aO,NSlider:soe,sliderProps:lO,NSpace:U$,spaceProps:V$,NSpin:uoe,spinProps:sO,NStatistic:hoe,statisticProps:cO,NSteps:moe,stepsProps:dO,NStep:boe,stepProps:fO,NSwitch:xoe,switchProps:hO,NTable:Coe,tableProps:vO,NTh:Soe,NTr:_oe,NTd:koe,NThead:Roe,NTbody:Poe,NTabs:Ooe,tabsProps:gO,NTabPane:$oe,tabPaneProps:F0,NTab:Bf,tabProps:pO,NTag:xs,tagProps:F2,NThing:Moe,thingProps:mO,NTime:Ioe,timeProps:bO,NTimePicker:Af,timePickerProps:x$,NTimeline:Doe,timelineProps:yO,NTimelineItem:Aoe,timelineItemProps:wO,NTooltip:ph,tooltipProps:KP,NTransfer:Loe,transferProps:CO,NTree:TO,treeProps:$O,NTreeSelect:Qoe,treeSelectProps:OO,NH1:eie,NH2:tie,NH3:nie,NH4:rie,NH5:oie,NH6:iie,h1Props:ra,h2Props:ra,h3Props:ra,h4Props:ra,h5Props:ra,h6Props:ra,NA:lie,aProps:zO,NP:cie,pProps:MO,NBlockquote:uie,blockquoteProps:IO,NHr:hie,NUl:vie,ulProps:DO,NOl:pie,olProps:AO,NLi:gie,NText:bie,textProps:BO,NUpload:Eie,uploadProps:WO,NUploadDragger:LO,NUploadTrigger:A0,NUploadFileList:VO,NWatermark:Hie,watermarkProps:KO,createDiscreteApi:Wie,NEquation:Kie,equationProps:qO},Symbol.toStringTag,{value:"Module"})),qie="2.34.3";function Yie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:qie,componentPrefix:e,install:o}}const YO=Yie({components:Object.keys(DS).map(e=>DS[e])}),Xie=YO;YO.install;const XO=F_(GF);XO.use(Xie);XO.mount("#app")});export default Gie(); diff --git a/docs/assets/index.4a525f31.js b/docs/assets/index.4a525f31.js deleted file mode 100644 index e3978f4..0000000 --- a/docs/assets/index.4a525f31.js +++ /dev/null @@ -1,6857 +0,0 @@ -var X5=Object.defineProperty;var Z5=(e,t,n)=>t in e?X5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var jt=(e,t,n)=>(Z5(e,typeof t!="symbol"?t+"":t,n),n);var cce=Q5((_r,Rr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Wm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function ac(e){if($t(e)){const t={};for(let n=0;n{if(n){const r=n.split(e3);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Um(e){let t="";if(Mn(e))t=e;else if($t(e))for(let n=0;n{},i3=()=>!1,a3=/^on[^a-z]/,Yf=e=>a3.test(e),Km=e=>e.startsWith("onUpdate:"),Vn=Object.assign,qm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l3=Object.prototype.hasOwnProperty,Wt=(e,t)=>l3.call(e,t),$t=Array.isArray,gs=e=>Gf(e)==="[object Map]",s3=e=>Gf(e)==="[object Set]",zt=e=>typeof e=="function",Mn=e=>typeof e=="string",Ym=e=>typeof e=="symbol",mn=e=>e!==null&&typeof e=="object",XS=e=>mn(e)&&zt(e.then)&&zt(e.catch),c3=Object.prototype.toString,Gf=e=>c3.call(e),d3=e=>Gf(e).slice(8,-1),u3=e=>Gf(e)==="[object Object]",Gm=e=>Mn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rd=Wm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},f3=/-(\w)/g,Po=Xf(e=>e.replace(f3,(t,n)=>n?n.toUpperCase():"")),h3=/\B([A-Z])/g,Fl=Xf(e=>e.replace(h3,"-$1").toLowerCase()),Zf=Xf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wh=Xf(e=>e?`on${Zf(e)}`:""),Ds=(e,t)=>!Object.is(e,t),Uh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},p3=e=>{const t=parseFloat(e);return isNaN(t)?e:t},v3=e=>{const t=Mn(e)?Number(e):NaN;return isNaN(t)?e:t};let X0;const g3=()=>X0||(X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Jr;class m3{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Jr,!t&&Jr&&(this.index=(Jr.scopes||(Jr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Jr;try{return Jr=this,t()}finally{Jr=n}}}on(){Jr=this}off(){Jr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ZS=e=>(e.w&Oi)>0,QS=e=>(e.n&Oi)>0,x3=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":$t(e)?Gm(n)&&l.push(a.get("length")):(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"delete":$t(e)||(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"set":gs(e)&&l.push(a.get(ya));break}if(l.length===1)l[0]&&rv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);rv(Xm(s))}}function rv(e,t){const n=$t(e)?e:[...e];for(const r of n)r.computed&&Q0(r);for(const r of n)r.computed||Q0(r)}function Q0(e,t){(e!==no||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function C3(e,t){var n;return(n=Ru.get(e))===null||n===void 0?void 0:n.get(t)}const S3=Wm("__proto__,__v_isRef,__isVue"),tk=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ym)),k3=Qm(),_3=Qm(!1,!0),R3=Qm(!0),J0=P3();function P3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Dt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Al();const r=Dt(this)[t].apply(this,n);return Bl(),r}}),e}function $3(e){const t=Dt(this);return pr(t,"has",e),t.hasOwnProperty(e)}function Qm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?W3:ak:t?ik:ok).get(r))return r;const a=$t(r);if(!e){if(a&&Wt(J0,o))return Reflect.get(J0,o,i);if(o==="hasOwnProperty")return $3}const l=Reflect.get(r,o,i);return(Ym(o)?tk.has(o):S3(o))||(e||pr(r,"get",o),t)?l:qn(l)?a&&Gm(o)?l:l.value:mn(l)?e?$o(l):ji(l):l}}const T3=nk(),O3=nk(!0);function nk(e=!1){return function(n,r,o,i){let a=n[r];if(Rl(a)&&qn(a)&&!qn(o))return!1;if(!e&&(!Pu(o)&&!Rl(o)&&(a=Dt(a),o=Dt(o)),!$t(n)&&qn(a)&&!qn(o)))return a.value=o,!0;const l=$t(n)&&Gm(r)?Number(r)e,Qf=e=>Reflect.getPrototypeOf(e);function zc(e,t,n=!1,r=!1){e=e.__v_raw;const o=Dt(e),i=Dt(t);n||(t!==i&&pr(o,"get",t),pr(o,"get",i));const{has:a}=Qf(o),l=r?Jm:n?nb:Is;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function Mc(e,t=!1){const n=this.__v_raw,r=Dt(n),o=Dt(e);return t||(e!==o&&pr(r,"has",e),pr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dc(e,t=!1){return e=e.__v_raw,!t&&pr(Dt(e),"iterate",ya),Reflect.get(e,"size",e)}function ey(e){e=Dt(e);const t=Dt(this);return Qf(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function ty(e,t){t=Dt(t);const n=Dt(this),{has:r,get:o}=Qf(n);let i=r.call(n,e);i||(e=Dt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ds(t,a)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function ny(e){const t=Dt(this),{has:n,get:r}=Qf(t);let o=n.call(t,e);o||(e=Dt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function ry(){const e=Dt(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Ic(e,t){return function(r,o){const i=this,a=i.__v_raw,l=Dt(a),s=t?Jm:e?nb:Is;return!e&&pr(l,"iterate",ya),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function Fc(e,t,n){return function(...r){const o=this.__v_raw,i=Dt(o),a=gs(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?Jm:t?nb:Is;return!t&&pr(i,"iterate",s?nv:ya),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ci(e){return function(...t){return e==="delete"?!1:this}}function A3(){const e={get(i){return zc(this,i)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!1)},t={get(i){return zc(this,i,!1,!0)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!0)},n={get(i){return zc(this,i,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!1)},r={get(i){return zc(this,i,!0,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Fc(i,!1,!1),n[i]=Fc(i,!0,!1),t[i]=Fc(i,!1,!0),r[i]=Fc(i,!0,!0)}),[e,n,t,r]}const[B3,E3,L3,N3]=A3();function eb(e,t){const n=t?e?N3:L3:e?E3:B3;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Wt(n,o)&&o in r?n:r,o,i)}const H3={get:eb(!1,!1)},j3={get:eb(!1,!0)},V3={get:eb(!0,!1)},ok=new WeakMap,ik=new WeakMap,ak=new WeakMap,W3=new WeakMap;function U3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function K3(e){return e.__v_skip||!Object.isExtensible(e)?0:U3(d3(e))}function ji(e){return Rl(e)?e:tb(e,!1,rk,H3,ok)}function q3(e){return tb(e,!1,F3,j3,ik)}function $o(e){return tb(e,!0,I3,V3,ak)}function tb(e,t,n,r,o){if(!mn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=K3(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function xa(e){return Rl(e)?xa(e.__v_raw):!!(e&&e.__v_isReactive)}function Rl(e){return!!(e&&e.__v_isReadonly)}function Pu(e){return!!(e&&e.__v_isShallow)}function wa(e){return xa(e)||Rl(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function $u(e){return _u(e,"__v_skip",!0),e}const Is=e=>mn(e)?ji(e):e,nb=e=>mn(e)?$o(e):e;function lk(e){Si&&no&&(e=Dt(e),ek(e.dep||(e.dep=Xm())))}function sk(e,t){e=Dt(e);const n=e.dep;n&&rv(n)}function qn(e){return!!(e&&e.__v_isRef===!0)}function F(e){return dk(e,!1)}function ck(e){return dk(e,!0)}function dk(e,t){return qn(e)?e:new Y3(e,t)}class Y3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Dt(t),this._value=n?t:Is(t)}get value(){return lk(this),this._value}set value(t){const n=this.__v_isShallow||Pu(t)||Rl(t);t=n?t:Dt(t),Ds(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Is(t),sk(this))}}function ov(e){return qn(e)?e.value:e}const G3={get:(e,t,n)=>ov(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qn(o)&&!qn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function uk(e){return xa(e)?e:new Proxy(e,G3)}class X3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return C3(Dt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return qn(r)?r:new X3(e,t,n)}var fk;class Z3{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[fk]=!1,this._dirty=!0,this.effect=new Zm(t,()=>{this._dirty||(this._dirty=!0,sk(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Dt(this);return lk(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}fk="__v_isReadonly";function Q3(e,t,n=!1){let r,o;const i=zt(e);return i?(r=e,o=ao):(r=e.get,o=e.set),new Z3(r,o,i||!o,n)}function ki(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Jf(i,t,n)}return o}function Lr(e,t,n,r){if(zt(e)){const i=ki(e,t,n,r);return i&&XS(i)&&i.catch(a=>{Jf(a,t,n)}),i}const o=[];for(let i=0;i>>1;As(nr[r])xo&&nr.splice(t,1)}function nM(e){$t(e)?xl.push(...e):(!jo||!jo.includes(e,e.allowRecurse?fa+1:fa))&&xl.push(e),pk()}function oy(e,t=Fs?xo+1:0){for(;tAs(n)-As(r)),fa=0;fae.id==null?1/0:e.id,rM=(e,t)=>{const n=As(e)-As(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gk(e){iv=!1,Fs=!0,nr.sort(rM);const t=ao;try{for(xo=0;xoMn(p)?p.trim():p)),f&&(o=n.map(p3))}let l,s=r[l=Wh(t)]||r[l=Wh(Po(t))];!s&&i&&(s=r[l=Wh(Fl(t))]),s&&Lr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Lr(c,e,6,o)}}function mk(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!zt(e)){const s=c=>{const d=mk(c,t,!0);d&&(l=!0,Vn(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(mn(e)&&r.set(e,null),null):($t(i)?i.forEach(s=>a[s]=null):Vn(a,i),mn(e)&&r.set(e,a),a)}function eh(e,t){return!e||!Yf(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,Fl(t))||Wt(e,t))}let Yn=null,bk=null;function Tu(e){const t=Yn;return Yn=e,bk=e&&e.type.__scopeId||null,t}function Pd(e,t=Yn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&vy(-1);const i=Tu(t);let a;try{a=e(...o)}finally{Tu(i),r._d&&vy(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:p,ctx:v,inheritAttrs:b}=e;let g,m;const y=Tu(e);try{if(n.shapeFlag&4){const x=o||r;g=bo(d.call(x,x,f,i,p,h,v)),m=s}else{const x=t;g=bo(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),m=t.props?s:iM(s)}}catch(x){xs.length=0,Jf(x,e,1),g=An(Pr)}let C=g;if(m&&b!==!1){const x=Object.keys(m),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Km)&&(m=aM(m,a)),C=ar(C,m))}return n.dirs&&(C=ar(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),g=C,Tu(y),g}const iM=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yf(n))&&((t||(t={}))[n]=e[n]);return t},aM=(e,t)=>{const n={};for(const r in e)(!Km(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lM(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?iy(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function dM(e,t){t&&t.pendingBranch?$t(e)?t.effects.push(...e):t.effects.push(e):nM(e)}function ot(e,t){if(_n){let n=_n.provides;const r=_n.parent&&_n.parent.provides;r===n&&(n=_n.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=_n||Yn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&zt(t)?t.call(r.proxy):t}}function At(e,t){return ib(e,null,t)}const Ac={};function it(e,t,n){return ib(e,t,n)}function ib(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=dn){const l=y3()===(_n==null?void 0:_n.scope)?_n:null;let s,c=!1,d=!1;if(qn(e)?(s=()=>e.value,c=Pu(e)):xa(e)?(s=()=>e,r=!0):$t(e)?(d=!0,c=e.some(C=>xa(C)||Pu(C)),s=()=>e.map(C=>{if(qn(C))return C.value;if(xa(C))return va(C);if(zt(C))return ki(C,l,2)})):zt(e)?t?s=()=>ki(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Lr(e,l,3,[h])}:s=ao,t&&r){const C=s;s=()=>va(C())}let f,h=C=>{f=m.onStop=()=>{ki(C,l,4)}},p;if(Hs)if(h=ao,t?n&&Lr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=e4();p=C.__watcherHandles||(C.__watcherHandles=[])}else return ao;let v=d?new Array(e.length).fill(Ac):Ac;const b=()=>{if(!!m.active)if(t){const C=m.run();(r||c||(d?C.some((x,w)=>Ds(x,v[w])):Ds(C,v)))&&(f&&f(),Lr(t,l,3,[C,v===Ac?void 0:d&&v[0]===Ac?[]:v,h]),v=C)}else m.run()};b.allowRecurse=!!t;let g;o==="sync"?g=b:o==="post"?g=()=>dr(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>ob(b));const m=new Zm(s,g);t?n?b():v=m.run():o==="post"?dr(m.run.bind(m),l&&l.suspense):m.run();const y=()=>{m.stop(),l&&l.scope&&qm(l.scope.effects,m)};return p&&p.push(y),y}function uM(e,t,n){const r=this.proxy,o=Mn(e)?e.includes(".")?yk(r,e):()=>r[e]:e.bind(r,r);let i;zt(t)?i=t:(i=t.handler,n=t);const a=_n;Pl(this);const l=ib(o,i.bind(r),n);return a?Pl(a):Ca(),l}function yk(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{va(n,t)});else if(u3(e))for(const n in e)va(e[n],t);return e}function xk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return It(()=>{e.isMounted=!0}),Bt(()=>{e.isUnmounting=!0}),e}const Mr=[Function,Array],fM={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mr,onEnter:Mr,onAfterEnter:Mr,onEnterCancelled:Mr,onBeforeLeave:Mr,onLeave:Mr,onAfterLeave:Mr,onLeaveCancelled:Mr,onBeforeAppear:Mr,onAppear:Mr,onAfterAppear:Mr,onAppearCancelled:Mr},setup(e,{slots:t}){const n=Jo(),r=xk();let o;return()=>{const i=t.default&&ab(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==Pr){a=b;break}}const l=Dt(e),{mode:s}=l;if(r.isLeaving)return qh(a);const c=ay(a);if(!c)return qh(a);const d=Bs(c,l,r,n);Es(c,d);const f=n.subTree,h=f&&ay(f);let p=!1;const{getTransitionKey:v}=c.type;if(v){const b=v();o===void 0?o=b:b!==o&&(o=b,p=!0)}if(h&&h.type!==Pr&&(!ha(c,h)||p)){const b=Bs(h,l,r,n);if(Es(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},qh(a);s==="in-out"&&c.type!==Pr&&(b.delayLeave=(g,m,y)=>{const C=Ck(r,h);C[String(h.key)]=h,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},wk=fM;function Ck(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Bs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:b,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,C=String(e.key),x=Ck(n,e),w=(T,$)=>{T&&Lr(T,r,9,$)},_=(T,$)=>{const R=$[1];w(T,$),$t(T)?T.every(D=>D.length<=1)&&R():T.length<=1&&R()},k={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&ha(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,D=d;if(!n.isMounted)if(o)$=g||s,R=m||c,D=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(D,[T]):w(R,[T]),k.delayedLeave&&k.delayedLeave(),T._enterCb=void 0)};$?_($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let D=!1;const z=T._leaveCb=A=>{D||(D=!0,$(),A?w(v,[T]):w(p,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?_(h,[T,z]):z()},clone(T){return Bs(T,t,n,r)}};return k}function qh(e){if(th(e))return e=ar(e),e.children=null,e}function ay(e){return th(e)?e.children?e.children[0]:void 0:e}function Es(e,t){e.shapeFlag&6&&e.component?Es(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ab(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,th=e=>e.type.__isKeepAlive;function lb(e,t){Sk(e,"a",t)}function lc(e,t){Sk(e,"da",t)}function Sk(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(nh(t,r,n),n){let o=n.parent;for(;o&&o.parent;)th(o.parent.vnode)&&hM(r,t,n,o),o=o.parent}}function hM(e,t,n,r){const o=nh(t,e,r,!0);sc(()=>{qm(r[t],o)},n)}function nh(e,t,n=_n,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Al(),Pl(n);const l=Lr(t,n,e,a);return Ca(),Bl(),l});return r?o.unshift(i):o.push(i),i}}const Zo=e=>(t,n=_n)=>(!Hs||e==="sp")&&nh(e,(...r)=>t(...r),n),Qo=Zo("bm"),It=Zo("m"),sb=Zo("bu"),cb=Zo("u"),Bt=Zo("bum"),sc=Zo("um"),pM=Zo("sp"),vM=Zo("rtg"),gM=Zo("rtc");function mM(e,t=_n){nh("ec",e,t)}function un(e,t){const n=Yn;if(n===null)return e;const r=ih(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lNs(t)?!(t.type===Pr||t.type===Ot&&!_k(t.children)):!0)?e:null}const av=e=>e?Bk(e)?ih(e)||e.proxy:av(e.parent):null,bs=Vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>av(e.parent),$root:e=>av(e.root),$emit:e=>e.emit,$options:e=>ub(e),$forceUpdate:e=>e.f||(e.f=()=>ob(e.update)),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>uM.bind(e)}),Yh=(e,t)=>e!==dn&&!e.__isScriptSetup&&Wt(e,t),wM={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Yh(r,t))return a[t]=1,r[t];if(o!==dn&&Wt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Wt(c,t))return a[t]=3,i[t];if(n!==dn&&Wt(n,t))return a[t]=4,n[t];lv&&(a[t]=0)}}const d=bs[t];let f,h;if(d)return t==="$attrs"&&pr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==dn&&Wt(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Wt(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Yh(o,t)?(o[t]=n,!0):r!==dn&&Wt(r,t)?(r[t]=n,!0):Wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==dn&&Wt(e,a)||Yh(t,a)||(l=i[0])&&Wt(l,a)||Wt(r,a)||Wt(bs,a)||Wt(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let lv=!0;function CM(e){const t=ub(e),n=e.proxy,r=e.ctx;lv=!1,t.beforeCreate&&sy(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:v,activated:b,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:_,renderTriggered:k,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:D,components:z,directives:A,filters:L}=t;if(c&&SM(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const W in a){const K=a[W];zt(K)&&(r[W]=K.bind(n))}if(o){const W=o.call(n,n);mn(W)&&(e.data=ji(W))}if(lv=!0,i)for(const W in i){const K=i[W],Q=zt(K)?K.bind(n,n):zt(K.get)?K.get.bind(n,n):ao,V=!zt(K)&&zt(K.set)?K.set.bind(n):ao,re=P({get:Q,set:V});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const W in l)Rk(l[W],r,n,W);if(s){const W=zt(s)?s.call(n):s;Reflect.ownKeys(W).forEach(K=>{ot(K,W[K])})}d&&sy(d,e,"c");function E(W,K){$t(K)?K.forEach(Q=>W(Q.bind(n))):K&&W(K.bind(n))}if(E(Qo,f),E(It,h),E(sb,p),E(cb,v),E(lb,b),E(lc,g),E(mM,T),E(gM,_),E(vM,k),E(Bt,y),E(sc,x),E(pM,$),$t(R))if(R.length){const W=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(W,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===ao&&(e.render=w),D!=null&&(e.inheritAttrs=D),z&&(e.components=z),A&&(e.directives=A)}function SM(e,t,n=ao,r=!1){$t(e)&&(e=sv(e));for(const o in e){const i=e[o];let a;mn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),qn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function sy(e,t,n){Lr($t(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rk(e,t,n,r){const o=r.includes(".")?yk(n,r):()=>n[r];if(Mn(e)){const i=t[e];zt(i)&&it(o,i)}else if(zt(e))it(o,e.bind(n));else if(mn(e))if($t(e))e.forEach(i=>Rk(i,t,n,r));else{const i=zt(e.handler)?e.handler.bind(n):t[e.handler];zt(i)&&it(o,i,e)}}function ub(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>Ou(s,c,a,!0)),Ou(s,t,a)),mn(t)&&i.set(t,s),s}function Ou(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ou(e,i,n,!0),o&&o.forEach(a=>Ou(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=kM[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const kM={data:cy,props:la,emits:la,methods:la,computed:la,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:la,directives:la,watch:RM,provide:cy,inject:_M};function cy(e,t){return t?e?function(){return Vn(zt(e)?e.call(this,this):e,zt(t)?t.call(this,this):t)}:t:e}function _M(e,t){return la(sv(e),sv(t))}function sv(e){if($t(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,p]=$k(f,t,!0);Vn(a,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return mn(e)&&r.set(e,yl),yl;if($t(i))for(let d=0;d-1,p[1]=b<0||v-1||Wt(p,"default"))&&l.push(f)}}}const c=[a,l];return mn(e)&&r.set(e,c),c}function dy(e){return e[0]!=="$"}function uy(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function fy(e,t){return uy(e)===uy(t)}function hy(e,t){return $t(t)?t.findIndex(n=>fy(n,e)):zt(t)&&fy(t,e)?0:-1}const Tk=e=>e[0]==="_"||e==="$stable",fb=e=>$t(e)?e.map(bo):[bo(e)],TM=(e,t,n)=>{if(t._n)return t;const r=Pd((...o)=>fb(t(...o)),n);return r._c=!1,r},Ok=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Tk(o))continue;const i=e[o];if(zt(i))t[o]=TM(o,i,r);else if(i!=null){const a=fb(i);t[o]=()=>a}}},zk=(e,t)=>{const n=fb(t);e.slots.default=()=>n},OM=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Dt(t),_u(t,"_",n)):Ok(t,e.slots={})}else e.slots={},t&&zk(e,t);_u(e.slots,oh,1)},zM=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=dn;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Vn(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Ok(t,o)),a=t}else t&&(zk(e,t),a={default:1});if(i)for(const l in o)!Tk(l)&&!(l in a)&&delete o[l]};function Mk(){return{app:null,config:{isNativeTag:i3,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let MM=0;function DM(e,t){return function(r,o=null){zt(r)||(r=Object.assign({},r)),o!=null&&!mn(o)&&(o=null);const i=Mk(),a=new Set;let l=!1;const s=i.app={_uid:MM++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:Lk,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&zt(c.install)?(a.add(c),c.install(s,...d)):zt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=An(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,ih(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function dv(e,t,n,r,o=!1){if($t(e)){e.forEach((h,p)=>dv(h,t&&($t(t)?t[p]:t),n,r,o));return}if(ms(r)&&!o)return;const i=r.shapeFlag&4?ih(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===dn?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Mn(c)?(d[c]=null,Wt(f,c)&&(f[c]=null)):qn(c)&&(c.value=null)),zt(s))ki(s,l,12,[a,d]);else{const h=Mn(s),p=qn(s);if(h||p){const v=()=>{if(e.f){const b=h?Wt(f,s)?f[s]:d[s]:s.value;o?$t(b)&&qm(b,i):$t(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Wt(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Wt(f,s)&&(f[s]=a)):p&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,dr(v,n)):v()}}}const dr=dM;function IM(e){return FM(e)}function FM(e,t){const n=g3();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=ao,insertStaticContent:v}=e,b=(H,U,Y,ce=null,G=null,B=null,N=!1,te=null,pe=!!U.dynamicChildren)=>{if(H===U)return;H&&!ha(H,U)&&(ce=me(H),ee(H,G,B,!0),H=null),U.patchFlag===-2&&(pe=!1,U.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=U;switch(Z){case rh:g(H,U,Y,ce);break;case Pr:m(H,U,Y,ce);break;case Gh:H==null&&y(U,Y,ce,N);break;case Ot:z(H,U,Y,ce,G,B,N,te,pe);break;default:ne&1?w(H,U,Y,ce,G,B,N,te,pe):ne&6?A(H,U,Y,ce,G,B,N,te,pe):(ne&64||ne&128)&&Z.process(H,U,Y,ce,G,B,N,te,pe,_e)}fe!=null&&G&&dv(fe,H&&H.ref,B,U||H,!U)},g=(H,U,Y,ce)=>{if(H==null)r(U.el=l(U.children),Y,ce);else{const G=U.el=H.el;U.children!==H.children&&c(G,U.children)}},m=(H,U,Y,ce)=>{H==null?r(U.el=s(U.children||""),Y,ce):U.el=H.el},y=(H,U,Y,ce)=>{[H.el,H.anchor]=v(H.children,U,Y,ce,H.el,H.anchor)},C=({el:H,anchor:U},Y,ce)=>{let G;for(;H&&H!==U;)G=h(H),r(H,Y,ce),H=G;r(U,Y,ce)},x=({el:H,anchor:U})=>{let Y;for(;H&&H!==U;)Y=h(H),o(H),H=Y;o(U)},w=(H,U,Y,ce,G,B,N,te,pe)=>{N=N||U.type==="svg",H==null?_(U,Y,ce,G,B,N,te,pe):$(H,U,G,B,N,te,pe)},_=(H,U,Y,ce,G,B,N,te)=>{let pe,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(pe=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(pe,H.children):ge&16&&T(H.children,pe,null,ce,G,B&&fe!=="foreignObject",N,te),Ae&&Yi(H,null,ce,"created"),k(pe,H,H.scopeId,N,ce),ne){for(const Ye in ne)Ye!=="value"&&!Rd(Ye)&&i(pe,Ye,null,ne[Ye],B,H.children,ce,G,we);"value"in ne&&i(pe,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&fo(Z,ce,H)}Ae&&Yi(H,null,ce,"beforeMount");const qe=(!G||G&&!G.pendingBranch)&&Pe&&!Pe.persisted;qe&&Pe.beforeEnter(pe),r(pe,U,Y),((Z=ne&&ne.onVnodeMounted)||qe||Ae)&&dr(()=>{Z&&fo(Z,ce,H),qe&&Pe.enter(pe),Ae&&Yi(H,null,ce,"mounted")},G)},k=(H,U,Y,ce,G)=>{if(Y&&p(H,Y),ce)for(let B=0;B{for(let Z=pe;Z{const te=U.el=H.el;let{patchFlag:pe,dynamicChildren:Z,dirs:fe}=U;pe|=H.patchFlag&16;const ne=H.props||dn,ge=U.props||dn;let Pe;Y&&Gi(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"beforeUpdate"),Y&&Gi(Y,!0);const Ae=G&&U.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,U,te,null,Y,ce,Ae,B,!1),pe>0){if(pe&16)D(te,U,ne,ge,Y,ce,G);else if(pe&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,G),pe&4&&i(te,"style",ne.style,ge.style,G),pe&8){const qe=U.dynamicProps;for(let Ye=0;Ye{Pe&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"updated")},ce)},R=(H,U,Y,ce,G,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==dn)for(const te in Y)!Rd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,U.children,G,B,we);for(const te in ce){if(Rd(te))continue;const pe=ce[te],Z=Y[te];pe!==Z&&te!=="value"&&i(H,te,Z,pe,N,U.children,G,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,U,Y,ce,G,B,N,te,pe)=>{const Z=U.el=H?H.el:l(""),fe=U.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=U;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(U.children,Y,fe,G,B,N,te,pe)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,G,B,N,te),(U.key!=null||G&&U===G.subTree)&&hb(H,U,!0)):K(H,U,Y,fe,G,B,N,te,pe)},A=(H,U,Y,ce,G,B,N,te,pe)=>{U.slotScopeIds=te,H==null?U.shapeFlag&512?G.ctx.activate(U,Y,ce,N,pe):L(U,Y,ce,G,B,N,pe):j(H,U,pe)},L=(H,U,Y,ce,G,B,N)=>{const te=H.component=KM(H,ce,G);if(th(H)&&(te.ctx.renderer=_e),qM(te),te.asyncDep){if(G&&G.registerDep(te,E),!H.el){const pe=te.subTree=An(Pr);m(null,pe,U,Y)}return}E(te,H,U,Y,G,B,N)},j=(H,U,Y)=>{const ce=U.component=H.component;if(lM(H,U,Y))if(ce.asyncDep&&!ce.asyncResolved){W(ce,U,Y);return}else ce.next=U,tM(ce.update),ce.update();else U.el=H.el,ce.vnode=U},E=(H,U,Y,ce,G,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,qe=fe,Ye;Gi(H,!1),fe?(fe.el=Ae.el,W(H,fe,N)):fe=Ae,ne&&Uh(ne),(Ye=fe.props&&fe.props.onVnodeBeforeUpdate)&&fo(Ye,Pe,fe,Ae),Gi(H,!0);const ft=Kh(H),ht=H.subTree;H.subTree=ft,b(ht,ft,f(ht.el),me(ht),H,G,B),fe.el=ft.el,qe===null&&sM(H,ft.el),ge&&dr(ge,G),(Ye=fe.props&&fe.props.onVnodeUpdated)&&dr(()=>fo(Ye,Pe,fe,Ae),G)}else{let fe;const{el:ne,props:ge}=U,{bm:Pe,m:Ae,parent:qe}=H,Ye=ms(U);if(Gi(H,!1),Pe&&Uh(Pe),!Ye&&(fe=ge&&ge.onVnodeBeforeMount)&&fo(fe,qe,U),Gi(H,!0),ne&&Me){const ft=()=>{H.subTree=Kh(H),Me(ne,H.subTree,H,G,null)};Ye?U.type.__asyncLoader().then(()=>!H.isUnmounted&&ft()):ft()}else{const ft=H.subTree=Kh(H);b(null,ft,Y,ce,H,G,B),U.el=ft.el}if(Ae&&dr(Ae,G),!Ye&&(fe=ge&&ge.onVnodeMounted)){const ft=U;dr(()=>fo(fe,qe,ft),G)}(U.shapeFlag&256||qe&&ms(qe.vnode)&&qe.vnode.shapeFlag&256)&&H.a&&dr(H.a,G),H.isMounted=!0,U=Y=ce=null}},pe=H.effect=new Zm(te,()=>ob(Z),H.scope),Z=H.update=()=>pe.run();Z.id=H.uid,Gi(H,!0),Z()},W=(H,U,Y)=>{U.component=H;const ce=H.vnode.props;H.vnode=U,H.next=null,$M(H,U.props,ce,Y),zM(H,U.children,Y),Al(),oy(),Bl()},K=(H,U,Y,ce,G,B,N,te,pe=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=U.children,{patchFlag:ge,shapeFlag:Pe}=U;if(ge>0){if(ge&128){V(Z,ne,Y,ce,G,B,N,te,pe);return}else if(ge&256){Q(Z,ne,Y,ce,G,B,N,te,pe);return}}Pe&8?(fe&16&&we(Z,G,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,G,B,N,te,pe):we(Z,G,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,G,B,N,te,pe))},Q=(H,U,Y,ce,G,B,N,te,pe)=>{H=H||yl,U=U||yl;const Z=H.length,fe=U.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,G,B,!0,!1,ne):T(U,Y,ce,G,B,N,te,pe,ne)},V=(H,U,Y,ce,G,B,N,te,pe)=>{let Z=0;const fe=U.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=U[Z]=pe?gi(U[Z]):bo(U[Z]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=U[ge]=pe?gi(U[ge]):bo(U[ge]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],G,B,!0),Z++;else{const Pe=Z,Ae=Z,qe=new Map;for(Z=Ae;Z<=ge;Z++){const Ke=U[Z]=pe?gi(U[Z]):bo(U[Z]);Ke.key!=null&&qe.set(Ke.key,Z)}let Ye,ft=0;const ht=ge-Ae+1;let vt=!1,Ve=0;const Xe=new Array(ht);for(Z=0;Z=ht){ee(Ke,G,B,!0);continue}let X;if(Ke.key!=null)X=qe.get(Ke.key);else for(Ye=Ae;Ye<=ge;Ye++)if(Xe[Ye-Ae]===0&&ha(Ke,U[Ye])){X=Ye;break}X===void 0?ee(Ke,G,B,!0):(Xe[X-Ae]=Z+1,X>=Ve?Ve=X:vt=!0,b(Ke,U[X],Y,null,G,B,N,te,pe),ft++)}const We=vt?AM(Xe):yl;for(Ye=We.length-1,Z=ht-1;Z>=0;Z--){const Ke=Ae+Z,X=U[Ke],q=Ke+1{const{el:B,type:N,transition:te,children:pe,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,U,Y,ce);return}if(Z&128){H.suspense.move(U,Y,ce);return}if(Z&64){N.move(H,U,Y,_e);return}if(N===Ot){r(B,U,Y);for(let ne=0;nete.enter(B),G);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,U,Y),qe=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,qe):qe()}else r(B,U,Y)},ee=(H,U,Y,ce=!1,G=!1)=>{const{type:B,props:N,ref:te,children:pe,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&dv(te,null,Y,H,!0),fe&256){U.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ms(H);let qe;if(Ae&&(qe=N&&N.onVnodeBeforeUnmount)&&fo(qe,U,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Yi(H,null,U,"beforeUnmount"),fe&64?H.type.remove(H,U,Y,G,_e,ce):Z&&(B!==Ot||ne>0&&ne&64)?we(Z,U,Y,!1,!0):(B===Ot&&ne&384||!G&&fe&16)&&we(pe,U,Y),ce&&ue(H)}(Ae&&(qe=N&&N.onVnodeUnmounted)||Pe)&&dr(()=>{qe&&fo(qe,U,H),Pe&&Yi(H,null,U,"unmounted")},Y)},ue=H=>{const{type:U,el:Y,anchor:ce,transition:G}=H;if(U===Ot){de(Y,ce);return}if(U===Gh){x(H);return}const B=()=>{o(Y),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(H.shapeFlag&1&&G&&!G.persisted){const{leave:N,delayLeave:te}=G,pe=()=>N(Y,B);te?te(H.el,B,pe):pe()}else B()},de=(H,U)=>{let Y;for(;H!==U;)Y=h(H),o(H),H=Y;o(U)},Ce=(H,U,Y)=>{const{bum:ce,scope:G,update:B,subTree:N,um:te}=H;ce&&Uh(ce),G.stop(),B&&(B.active=!1,ee(N,H,U,Y)),te&&dr(te,U),dr(()=>{H.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},we=(H,U,Y,ce=!1,G=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,U,Y)=>{H==null?U._vnode&&ee(U._vnode,null,null,!0):b(U._vnode||null,H,U,null,null,null,Y),oy(),vk(),U._vnode=H},_e={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let ve,Me;return t&&([ve,Me]=t(_e)),{render:Oe,hydrate:ve,createApp:DM(Oe,ve)}}function Gi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hb(e,t,n=!1){const r=e.children,o=t.children;if($t(r)&&$t(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const BM=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),py=e=>typeof SVGElement<"u"&&e instanceof SVGElement,uv=(e,t)=>{const n=e&&e.to;return Mn(n)?t?t(n):null:n},EM={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:v,createText:b,createComment:g}}=c,m=ys(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),_=t.anchor=b("");p(w,n,r),p(_,n,r);const k=t.target=uv(t.props,v),T=t.targetAnchor=b("");k&&(p(T,k),a=a||py(k));const $=(R,D)=>{y&16&&d(C,R,D,o,i,a,l,s)};m?$(n,_):k&&$(k,T)}else{t.el=e.el;const w=t.anchor=e.anchor,_=t.target=e.target,k=t.targetAnchor=e.targetAnchor,T=ys(e.props),$=T?n:_,R=T?w:k;if(a=a||py(_),x?(h(e.dynamicChildren,x,$,o,i,a,l),hb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),m)T||Ec(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=uv(t.props,v);D&&Ec(t,D,null,c,0)}else T&&Ec(t,_,k,c,1)}Dk(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ys(h))&&(i(c),l&16))for(let p=0;p0?ro||yl:null,NM(),Ls>0&&ro&&ro.push(e),e}function Fk(e,t,n,r,o){return HM(An(e,t,n,r,o,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function ha(e,t){return e.type===t.type&&e.key===t.key}const oh="__vInternal",Ak=({key:e})=>e!=null?e:null,$d=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mn(e)||qn(e)||zt(e)?{i:Yn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=e===Ot?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ak(t),ref:t&&$d(t),scopeId:bk,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Yn};return l?(pb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Mn(n)?8:16),Ls>0&&!a&&ro&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ro.push(s),s}const An=jM;function jM(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===bM)&&(e=Pr),Ns(e)){const l=ar(e,t,!0);return n&&pb(l,n),Ls>0&&!i&&ro&&(l.shapeFlag&6?ro[ro.indexOf(e)]=l:ro.push(l)),l.patchFlag|=-2,l}if(QM(e)&&(e=e.__vccOpts),t){t=VM(t);let{class:l,style:s}=t;l&&!Mn(l)&&(t.class=Um(l)),mn(s)&&(wa(s)&&!$t(s)&&(s=Vn({},s)),t.style=ac(s))}const a=Mn(e)?1:cM(e)?128:BM(e)?64:mn(e)?4:zt(e)?2:0;return oo(e,t,n,r,o,a,i,!0)}function VM(e){return e?wa(e)||oh in e?Vn({},e):e:null}function ar(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Gn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ak(l),ref:t&&t.ref?n&&o?$t(o)?o.concat($d(t)):[o,$d(t)]:$d(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ot?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ar(e=" ",t=0){return An(rh,null,e,t)}function bo(e){return e==null||typeof e=="boolean"?An(Pr):$t(e)?An(Ot,null,e.slice()):typeof e=="object"?gi(e):An(rh,null,String(e))}function gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function pb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($t(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),pb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(oh in t)?t._ctx=Yn:o===3&&Yn&&(Yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else zt(t)?(t={default:t,_ctx:Yn},n=32):(t=String(t),r&64?(n=16,t=[Ar(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gn(...e){const t={};for(let n=0;n_n||Yn,Pl=e=>{_n=e,e.scope.on()},Ca=()=>{_n&&_n.scope.off(),_n=null};function Bk(e){return e.vnode.shapeFlag&4}let Hs=!1;function qM(e,t=!1){Hs=t;const{props:n,children:r}=e.vnode,o=Bk(e);PM(e,n,o,t),OM(e,r);const i=o?YM(e,t):void 0;return Hs=!1,i}function YM(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$u(new Proxy(e.ctx,wM));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?XM(e):null;Pl(e),Al();const i=ki(r,e,0,[e.props,o]);if(Bl(),Ca(),XS(i)){if(i.then(Ca,Ca),t)return i.then(a=>{gy(e,a,t)}).catch(a=>{Jf(a,e,0)});e.asyncDep=i}else gy(e,i,t)}else Ek(e,t)}function gy(e,t,n){zt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mn(t)&&(e.setupState=uk(t)),Ek(e,n)}let my;function Ek(e,t,n){const r=e.type;if(!e.render){if(!t&&my&&!r.render){const o=r.template||ub(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Vn(Vn({isCustomElement:i,delimiters:l},a),s);r.render=my(o,c)}}e.render=r.render||ao}Pl(e),Al(),CM(e),Bl(),Ca()}function GM(e){return new Proxy(e.attrs,{get(t,n){return pr(e,"get","$attrs"),t[n]}})}function XM(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=GM(e))},slots:e.slots,emit:e.emit,expose:t}}function ih(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uk($u(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}}))}function ZM(e,t=!0){return zt(e)?e.displayName||e.name:e.name||t&&e.__name}function QM(e){return zt(e)&&"__vccOpts"in e}const P=(e,t)=>Q3(e,t,Hs);function u(e,t,n){const r=arguments.length;return r===2?mn(t)&&!$t(t)?Ns(t)?An(e,null,[t]):An(e,t):An(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ns(n)&&(n=[n]),An(e,t,n))}const JM=Symbol(""),e4=()=>Le(JM),Lk="3.2.47",t4="http://www.w3.org/2000/svg",pa=typeof document<"u"?document:null,by=pa&&pa.createElement("template"),n4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?pa.createElementNS(t4,e):pa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>pa.createTextNode(e),createComment:e=>pa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{by.innerHTML=r?`${e}`:e;const l=by.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function r4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function o4(e,t,n){const r=e.style,o=Mn(n);if(n&&!o){if(t&&!Mn(t))for(const i in t)n[i]==null&&fv(r,i,"");for(const i in n)fv(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const yy=/\s*!important$/;function fv(e,t,n){if($t(n))n.forEach(r=>fv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=i4(e,t);yy.test(n)?e.setProperty(Fl(r),n.replace(yy,""),"important"):e[r]=n}}const xy=["Webkit","Moz","ms"],Xh={};function i4(e,t){const n=Xh[t];if(n)return n;let r=Po(t);if(r!=="filter"&&r in e)return Xh[t]=r;r=Zf(r);for(let o=0;oZh||(f4.then(()=>Zh=0),Zh=Date.now());function p4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Lr(v4(r,n.value),t,5,[r])};return n.value=e,n.attached=h4(),n}function v4(e,t){if($t(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Sy=/^on[a-z]/,g4=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?r4(e,r,o):t==="style"?o4(e,n,r):Yf(t)?Km(t)||d4(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m4(e,t,r,o))?l4(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),a4(e,t,r,o))};function m4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Sy.test(t)&&zt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Sy.test(t)&&Mn(n)?!1:t in e}const di="transition",Kl="animation",Ft=(e,{slots:t})=>u(wk,Hk(e),t);Ft.displayName="Transition";const Nk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},b4=Ft.props=Vn({},wk.props,Nk),Xi=(e,t=[])=>{$t(e)?e.forEach(n=>n(...t)):e&&e(...t)},ky=e=>e?$t(e)?e.some(t=>t.length>1):e.length>1:!1;function Hk(e){const t={};for(const z in e)z in Nk||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=y4(o),b=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:_=m,onAppear:k=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{pi(z,A?d:l),pi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,pi(z,f),pi(z,p),pi(z,h),A&&A()},D=z=>(A,L)=>{const j=z?k:y,E=()=>$(A,z,L);Xi(j,[A,E]),_y(()=>{pi(A,z?s:i),Lo(A,z?d:l),ky(j)||Ry(A,r,b,E)})};return Vn(t,{onBeforeEnter(z){Xi(m,[z]),Lo(z,i),Lo(z,a)},onBeforeAppear(z){Xi(_,[z]),Lo(z,s),Lo(z,c)},onEnter:D(!1),onAppear:D(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Lo(z,f),Vk(),Lo(z,h),_y(()=>{!z._isLeaving||(pi(z,f),Lo(z,p),ky(x)||Ry(z,r,g,L))}),Xi(x,[z,L])},onEnterCancelled(z){$(z,!1),Xi(C,[z])},onAppearCancelled(z){$(z,!0),Xi(T,[z])},onLeaveCancelled(z){R(z),Xi(w,[z])}})}function y4(e){if(e==null)return null;if(mn(e))return[Qh(e.enter),Qh(e.leave)];{const t=Qh(e);return[t,t]}}function Qh(e){return v3(e)}function Lo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function _y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let x4=0;function Ry(e,t,n,r){const o=e._endId=++x4,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=jk(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=p=>{p.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[v]||"").split(", "),o=r(`${di}Delay`),i=r(`${di}Duration`),a=Py(o,i),l=r(`${Kl}Delay`),s=r(`${Kl}Duration`),c=Py(l,s);let d=null,f=0,h=0;t===di?a>0&&(d=di,f=a,h=i.length):t===Kl?c>0&&(d=Kl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?di:Kl:null,h=d?d===di?i.length:s.length:0);const p=d===di&&/\b(transform|all)(,|$)/.test(r(`${di}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function Py(e,t){for(;e.length$y(n)+$y(e[r])))}function $y(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vk(){return document.body.offsetHeight}const Wk=new WeakMap,Uk=new WeakMap,Kk={name:"TransitionGroup",props:Vn({},b4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=xk();let o,i;return cb(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!_4(o[0].el,n.vnode.el,a))return;o.forEach(C4),o.forEach(S4);const l=o.filter(k4);Vk(),l.forEach(s=>{const c=s.el,d=c.style;Lo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,pi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=Dt(e),l=Hk(a);let s=a.tag||Ot;o=i,i=t.default?ab(t.default()):[];for(let c=0;cdelete e.mode;Kk.props;const ah=Kk;function C4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function S4(e){Uk.set(e,e.el.getBoundingClientRect())}function k4(e){const t=Wk.get(e),n=Uk.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function _4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=jk(r);return o.removeChild(r),i}const $r={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ql(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ql(e,!0),r.enter(e)):r.leave(e,()=>{ql(e,!1)}):ql(e,t))},beforeUnmount(e,{value:t}){ql(e,t)}};function ql(e,t){e.style.display=t?e._vod:"none"}const R4=Vn({patchProp:g4},n4);let Ty;function P4(){return Ty||(Ty=IM(R4))}const qk=(...e)=>{const t=P4().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$4(r);if(!o)return;const i=t._component;!zt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function $4(e){return Mn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function dc(e){return e+.5|0}const yi=(e,t,n)=>Math.max(Math.min(e,n),t);function cs(e){return yi(dc(e*2.55),0,255)}function _i(e){return yi(dc(e*255),0,255)}function Vo(e){return yi(dc(e/2.55)/100,0,1)}function Oy(e){return yi(dc(e*100),0,100)}const Dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hv=[..."0123456789ABCDEF"],T4=e=>hv[e&15],O4=e=>hv[(e&240)>>4]+hv[e&15],Lc=e=>(e&240)>>4===(e&15),z4=e=>Lc(e.r)&&Lc(e.g)&&Lc(e.b)&&Lc(e.a);function M4(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Dr[e[1]]*17,g:255&Dr[e[2]]*17,b:255&Dr[e[3]]*17,a:t===5?Dr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Dr[e[1]]<<4|Dr[e[2]],g:Dr[e[3]]<<4|Dr[e[4]],b:Dr[e[5]]<<4|Dr[e[6]],a:t===9?Dr[e[7]]<<4|Dr[e[8]]:255})),n}const D4=(e,t)=>e<255?t(e):"";function I4(e){var t=z4(e)?T4:O4;return e?"#"+t(e.r)+t(e.g)+t(e.b)+D4(e.a,t):void 0}const F4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Yk(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function A4(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function B4(e,t,n){const r=Yk(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function E4(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=E4(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function gb(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(_i)}function mb(e,t,n){return gb(Yk,e,t,n)}function L4(e,t,n){return gb(B4,e,t,n)}function N4(e,t,n){return gb(A4,e,t,n)}function Gk(e){return(e%360+360)%360}function H4(e){const t=F4.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cs(+t[5]):_i(+t[5]));const o=Gk(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=L4(o,i,a):t[1]==="hsv"?r=N4(o,i,a):r=mb(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function j4(e,t){var n=vb(e);n[0]=Gk(n[0]+t),n=mb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function V4(e){if(!e)return;const t=vb(e),n=t[0],r=Oy(t[1]),o=Oy(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Vo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const zy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},My={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function W4(){const e={},t=Object.keys(My),n=Object.keys(zy);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Nc;function U4(e){Nc||(Nc=W4(),Nc.transparent=[0,0,0,0]);const t=Nc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const K4=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function q4(e){const t=K4.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?cs(a):yi(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?cs(r):yi(r,0,255)),o=255&(t[4]?cs(o):yi(o,0,255)),i=255&(t[6]?cs(i):yi(i,0,255)),{r,g:o,b:i,a:n}}}function Y4(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Vo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,nl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function G4(e,t,n){const r=nl(Vo(e.r)),o=nl(Vo(e.g)),i=nl(Vo(e.b));return{r:_i(Jh(r+n*(nl(Vo(t.r))-r))),g:_i(Jh(o+n*(nl(Vo(t.g))-o))),b:_i(Jh(i+n*(nl(Vo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Hc(e,t,n){if(e){let r=vb(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=mb(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Xk(e,t){return e&&Object.assign(t||{},e)}function Dy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=_i(e[3]))):(t=Xk(e,{r:0,g:0,b:0,a:1}),t.a=_i(t.a)),t}function X4(e){return e.charAt(0)==="r"?q4(e):H4(e)}class js{constructor(t){if(t instanceof js)return t;const n=typeof t;let r;n==="object"?r=Dy(t):n==="string"&&(r=M4(t)||U4(t)||X4(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Xk(this._rgb);return t&&(t.a=Vo(t.a)),t}set rgb(t){this._rgb=Dy(t)}rgbString(){return this._valid?Y4(this._rgb):void 0}hexString(){return this._valid?I4(this._rgb):void 0}hslString(){return this._valid?V4(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=G4(this._rgb,t._rgb,n)),this}clone(){return new js(this.rgb)}alpha(t){return this._rgb.a=_i(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=dc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hc(this._rgb,2,t),this}darken(t){return Hc(this._rgb,2,-t),this}saturate(t){return Hc(this._rgb,1,t),this}desaturate(t){return Hc(this._rgb,1,-t),this}rotate(t){return j4(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function Bo(){}const Z4=(()=>{let e=0;return()=>e++})();function an(e){return e===null||typeof e>"u"}function pn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Yt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function jn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Cr(e,t){return jn(e)?e:t}function Qt(e,t){return typeof e>"u"?t:e}const Q4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function sn(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function rn(e,t,n,r){let o,i,a;if(pn(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function tD(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function nD(e){const t=tD(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $l(e,t){return(Iy[t]||(Iy[t]=nD(t)))(e)}function bb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Hr=e=>typeof e<"u",zi=e=>typeof e=="function",Fy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function rD(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Xn=Math.PI,ko=2*Xn,Du=Number.POSITIVE_INFINITY,oD=Xn/180,hr=Xn/2,Zi=Xn/4,Ay=Xn*2/3,xi=Math.log10,Ri=Math.sign;function Td(e,t,n){return Math.abs(e-t)o-i).pop(),t}function Iu(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aD(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Qk(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function xb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const pv=(e,t,n,r)=>xb(e,n,r?o=>{const i=e[o][t];return ie[o][t]xb(e,n,r=>e[r][t]>=n);function fD(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+bb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ly(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(Jk.forEach(i=>{delete e[i]}),delete e._chartjs)}function e_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function n_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,t_.call(window,()=>{r=!1,e.apply(t,n)}))}}function pD(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const wb=e=>e==="start"?"left":e==="end"?"right":"center",tr=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,vD=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,jc=e=>e===0||e===1,Ny=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ko/n)),Hy=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ko/n)+1,Cs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*hr)+1,easeOutSine:e=>Math.sin(e*hr),easeInOutSine:e=>-.5*(Math.cos(Xn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>jc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>jc(e)?e:Ny(e,.075,.3),easeOutElastic:e=>jc(e)?e:Hy(e,.075,.3),easeInOutElastic(e){return jc(e)?e:e<.5?.5*Ny(e*2,.1125,.45):.5+.5*Hy(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Cs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Cs.easeInBounce(e*2)*.5:Cs.easeOutBounce(e*2-1)*.5+.5};function r_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function jy(e){return r_(e)?e:new js(e)}function ep(e){return r_(e)?e:new js(e).saturate(.5).darken(.1).hexString()}const gD=["x","y","borderWidth","radius","tension"],mD=["color","borderColor","backgroundColor"];function bD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mD},numbers:{type:"number",properties:gD}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function yD(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Vy=new Map;function xD(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Vy.get(n);return r||(r=new Intl.NumberFormat(e,t),Vy.set(n,r)),r}function Cb(e,t,n){return xD(t,n).format(e)}const o_={values(e){return pn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=wD(e,n)}const a=xi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),Cb(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(xi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?o_.numeric.call(this,e,t,n):""}};function wD(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var lh={formatters:o_};function CD(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:lh.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Oa=Object.create(null),vv=Object.create(null);function Ss(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>ep(o.backgroundColor),this.hoverBorderColor=(r,o)=>ep(o.borderColor),this.hoverColor=(r,o)=>ep(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return tp(this,t,n)}get(t){return Ss(this,t)}describe(t,n){return tp(vv,t,n)}override(t,n){return tp(Oa,t,n)}route(t,n,r,o){const i=Ss(this,t),a=Ss(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Yt(s)?Object.assign({},c,s):Qt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Rn=new SD({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[bD,yD,CD]);function kD(e){return!e||an(e.size)||an(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Fu(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function _D(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function a_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,RD(e,i),s=0;s+e||0;function l_(e,t){const n={},r=Yt(t),o=r?Object.keys(t):t,i=Yt(e)?r?a=>Qt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=MD(i(a));return n}function s_(e){return l_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sa(e){return l_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rr(e){const t=s_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Bn(e,t){e=e||{},t=t||Rn.font;let n=Qt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qt(e.style,t.style);r&&!(""+r).match(OD)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Qt(e.family,t.family),lineHeight:zD(Qt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qt(e.weight,t.weight),string:""};return o.string=kD(o),o}function Vc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ha(e,t){return Object.assign(Object.create(e),t)}function _b(e,t=[""],n=e,r,o=()=>e[0]){Hr(r)||(r=f_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>_b([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return d_(a,l,()=>HD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return qy(a).includes(l)},ownKeys(a){return qy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function Tl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:c_(e,r),setContext:i=>Tl(e,i,n,r),override:i=>Tl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return d_(i,a,()=>FD(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function c_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:zi(n)?n:()=>n,isIndexable:zi(r)?r:()=>r}}const ID=(e,t)=>e?e+bb(t):t,Rb=(e,t)=>Yt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function d_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function FD(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return zi(l)&&a.isScriptable(t)&&(l=AD(t,l,e,n)),pn(l)&&l.length&&(l=BD(t,l,e,a.isIndexable)),Rb(t,l)&&(l=Tl(l,o,i&&i[t],a)),l}function AD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),Rb(e,t)&&(t=Pb(o._scopes,o,e,t)),t}function BD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Hr(i.index)&&r(e))t=t[i.index%t.length];else if(Yt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=Pb(c,o,e,d);t.push(Tl(f,i,a&&a[e],l))}}return t}function u_(e,t,n){return zi(e)?e(t,n):e}const ED=(e,t)=>e===!0?t:typeof e=="string"?$l(t,e):void 0;function LD(e,t,n,r,o){for(const i of t){const a=ED(n,i);if(a){e.add(a);const l=u_(a._fallback,n,o);if(Hr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Hr(r)&&n!==r)return null}return!1}function Pb(e,t,n,r){const o=t._rootScopes,i=u_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Ky(l,a,n,i||n,r);return s===null||Hr(i)&&i!==n&&(s=Ky(l,a,i,s,r),s===null)?!1:_b(Array.from(l),[""],o,i,()=>ND(t,n,r))}function Ky(e,t,n,r,o){for(;n;)n=LD(e,t,n,r,o);return n}function ND(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return pn(o)&&Yt(n)?n:o||{}}function HD(e,t,n,r){let o;for(const i of t)if(o=f_(ID(i,e),n),Hr(o))return Rb(e,o)?Pb(n,r,e,o):o}function f_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Hr(r))return r}}function qy(e){let t=e._keys;return t||(t=e._keys=jD(e._scopes)),t}function jD(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function h_(){return typeof window<"u"&&typeof document<"u"}function $b(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Au(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const sh=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function VD(e,t){return sh(e).getPropertyValue(t)}const WD=["top","right","bottom","left"];function ka(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=WD[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const UD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function KD(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(UD(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function sa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=sh(n),i=o.boxSizing==="border-box",a=ka(o,"padding"),l=ka(o,"border","width"),{x:s,y:c,box:d}=KD(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:p,height:v}=t;return i&&(p-=a.width+l.width,v-=a.height+l.height),{x:Math.round((s-f)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}function qD(e,t,n){let r,o;if(t===void 0||n===void 0){const i=$b(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=sh(i),s=ka(l,"border","width"),c=ka(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Au(l.maxWidth,i,"clientWidth"),o=Au(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Du,maxHeight:o||Du}}const Wc=e=>Math.round(e*10)/10;function YD(e,t,n,r){const o=sh(e),i=ka(o,"margin"),a=Au(o.maxWidth,e,"clientWidth")||Du,l=Au(o.maxHeight,e,"clientHeight")||Du,s=qD(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ka(o,"border","width"),p=ka(o,"padding");c-=p.width+h.width,d-=p.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Wc(Math.min(c,a,s.maxWidth)),d=Wc(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Wc(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Wc(Math.floor(d*r))),{width:c,height:d}}function Yy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const GD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Gy(e,t){const n=VD(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const XD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},ZD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function wl(e,t,n){return e?XD(t,n):ZD()}function p_(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function v_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class QD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=t_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var No=new QD;const Xy="transparent",JD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=jy(e||Xy),o=r.valid&&jy(t||Xy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class eI{constructor(t,n,r,o){const i=n[r];o=Vc([t.to,o,i,t.from]);const a=Vc([t.from,i,o]);this._active=!0,this._fn=t.fn||JD[t.type||typeof a],this._easing=Cs[t.easing]||Cs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Vc([t.to,n,o,t.from]),this._from=Vc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Yt(i))return;const a={};for(const l of n)a[l]=i[l];(pn(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=nI(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&tI(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new eI(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return No.add(this._chart,r),!0}}function tI(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function tx(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=aI(i,a,r),f=t.length;let h;for(let p=0;pn[r].axis===t).shift()}function cI(e,t){return Ha(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function dI(e,t,n){return Ha(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Yl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const rp=e=>e==="reset"||e==="none",nx=(e,t)=>t?e:Object.assign({},e),uI=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:m_(n,!0),values:null};class ks{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Jy(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Yl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,p,v)=>f==="x"?h:f==="r"?v:p,i=n.xAxisID=Qt(r.xAxisID,np(t,"x")),a=n.yAxisID=Qt(r.yAxisID,np(t,"y")),l=n.rAxisID=Qt(r.rAxisID,np(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ly(this._data,this),t._stacked&&Yl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Yt(n))this._data=iI(n);else if(r!==n){if(r){Ly(r,this);const o=this._cachedMeta;Yl(o),o._parsed=[]}n&&Object.isExtensible(n)&&hD(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Jy(n.vScale,n),n.stack!==r.stack&&(o=!0,Yl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&tx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{pn(o[t])?h=this.parseArrayData(r,o,t,n):Yt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const p=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!v()){this.updateRangeFromParsed(c,t,p,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,p,v,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(nx(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new g_(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||rp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){rp(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!rp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function hI(e){const t=e.iScale,n=fI(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Hr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function b_(e,t,n,r){return pn(e)?gI(e,t,n,r):t[n.axis]=n.parse(e,r),t}function rx(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function bI(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(an(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var PI={evaluateInteractionItems:uc,modes:{index(e,t,n,r){const o=sa(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=sa(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function lx(e,t){return e.filter(n=>y_.indexOf(n.pos)===-1&&n.box.axis===t)}function Xl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function $I(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Xl(Gl(t,"left"),!0),o=Xl(Gl(t,"right")),i=Xl(Gl(t,"top"),!0),a=Xl(Gl(t,"bottom")),l=lx(t,"x"),s=lx(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Gl(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function sx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function x_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MI(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Yt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&x_(a,i.getPadding());const l=Math.max(0,t.outerWidth-sx(a,e,"left","right")),s=Math.max(0,t.outerHeight-sx(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function DI(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function II(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function ds(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,g)=>g.box.options&&g.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);x_(h,rr(r));const p=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),v=OI(s.concat(c),f);ds(l.fullSize,p,f,v),ds(s,p,f,v),ds(c,p,f,v)&&ds(s,p,f,v),DI(p),cx(l.leftAndTop,p,f,v),p.x+=p.w,p.y+=p.h,cx(l.rightAndBottom,p,f,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},rn(l.chartArea,b=>{const g=b.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class w_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class FI extends w_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zd="$chartjs",AI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dx=e=>e===null||e==="";function BI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[zd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dx(o)){const i=Gy(e,"width");i!==void 0&&(e.width=i)}if(dx(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Gy(e,"height");i!==void 0&&(e.height=i)}return e}const C_=GD?{passive:!0}:!1;function EI(e,t,n){e.addEventListener(t,n,C_)}function LI(e,t,n){e.canvas.removeEventListener(t,n,C_)}function NI(e,t){const n=AI[e.type]||e.type,{x:r,y:o}=sa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Bu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function HI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.addedNodes,r),a=a&&!Bu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function jI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.removedNodes,r),a=a&&!Bu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Us=new Map;let ux=0;function S_(){const e=window.devicePixelRatio;e!==ux&&(ux=e,Us.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function VI(e,t){Us.size||window.addEventListener("resize",S_),Us.set(e,t)}function WI(e){Us.delete(e),Us.size||window.removeEventListener("resize",S_)}function UI(e,t,n){const r=e.canvas,o=r&&$b(r);if(!o)return;const i=n_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),VI(e,i),a}function lp(e,t,n){n&&n.disconnect(),t==="resize"&&WI(e)}function KI(e,t,n){const r=e.canvas,o=n_(i=>{e.ctx!==null&&n(NI(i,e))},e);return EI(r,t,o),o}class qI extends w_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(BI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[zd])return!1;const r=n[zd].initial;["height","width"].forEach(i=>{const a=r[i];an(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[zd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:HI,detach:jI,resize:UI}[n]||KI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:lp,detach:lp,resize:lp}[n]||LI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return YD(t,n,r,o)}isAttached(t){const n=$b(t);return!!(n&&n.isConnected)}}function YI(e){return!h_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?FI:qI}class Mi{constructor(){jt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Iu(this.x)&&Iu(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}jt(Mi,"defaults",{}),jt(Mi,"defaultRoutes");function GI(e,t){const n=e.options.ticks,r=XI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?QI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return JI(t,c,i,a/o),c;const d=ZI(i,t,o);if(a>0){let f,h;const p=a>1?Math.round((s-l)/(a-1)):null;for(Kc(t,c,d,an(p)?0:l-p,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function QI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,fx=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function hx(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function rF(e,t){rn(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:Cr(n,Cr(r,n)),max:Cr(r,Cr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){sn(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=DD(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,p=io(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:p/(r-1),f+6>l&&(l=p/(r-(t.offset?.5:1)),s=this.maxHeight-Zl(t.grid)-n.padding-px(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=yb(Math.min(Math.asin(io((d.highest.height+6)/l,-1,1)),Math.asin(io(s/c,-1,1))-Math.asin(io(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){sn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){sn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=px(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Zl(i)+s):(t.height=this.maxHeight,t.width=Zl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),p=r.padding*2,v=wi(this.labelRotation),b=Math.cos(v),g=Math.sin(v);if(l){const m=r.mirror?0:g*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:b*f.width+g*h.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,d,g,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;s?c?(h=o*t.width,p=r*n.height):(h=r*t.height,p=o*n.width):i==="start"?p=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,p=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){sn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[k]||0,height:a[k]||0});return{first:_(0),last:_(n-1),widest:_(x),highest:_(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return dD(this._alignToPixels?Qi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Zl(i),p=[],v=l.setContext(this.getContext()),b=v.display?v.width:0,g=b/2,m=function(E){return Qi(r,E,b)};let y,C,x,w,_,k,T,$,R,D,z,A;if(a==="top")y=m(this.bottom),k=this.bottom-h,$=y-g,D=m(t.top)+g,A=t.bottom;else if(a==="bottom")y=m(this.top),D=t.top,A=m(t.bottom)-g,k=y+g,$=this.top+h;else if(a==="left")y=m(this.right),_=this.right-h,T=y-g,R=m(t.left)+g,z=t.right;else if(a==="right")y=m(this.left),R=t.left,z=m(t.right)-g,_=y+g,T=this.left+h;else if(n==="x"){if(a==="center")y=m((t.top+t.bottom)/2+.5);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}D=t.top,A=t.bottom,k=y+g,$=k+h}else if(n==="y"){if(a==="center")y=m((t.left+t.right)/2);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}_=y-g,T=_-h,R=t.left,z=t.right}const L=Qt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Rn.route(i,o,s,l)})}function dF(e){return"id"in e&&"defaults"in e}class uF{constructor(){this.controllers=new qc(ks,"datasets",!0),this.elements=new qc(Mi,"elements"),this.plugins=new qc(Object,"plugins"),this.scales=new qc(ja,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):rn(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=bb(t);sn(r["before"+o],[],r),n[t](r),sn(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function hF(e){const t={},n=[],r=Object.keys(go.plugins.items);for(let i=0;i1&&Eu(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function xF(e,t){const n=Oa[e.type]||{scales:{}},r=t.scales||{},o=gv(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Yt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=Eu(a,l),c=bF(s,o),d=n.scales||{};i[a]=ws(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||gv(l,t),d=(Oa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=mF(f,s),p=a[h+"AxisID"]||h;i[p]=i[p]||Object.create(null),ws(i[p],[{axis:h},r[p],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ws(l,[Rn.scales[l.type],Rn.scale])}),i}function k_(e){const t=e.options||(e.options={});t.plugins=Qt(t.plugins,{}),t.scales=xF(e,t)}function __(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function wF(e){return e=e||{},e.data=__(e.data),k_(e),e}const vx=new Map,R_=new Set;function Yc(e,t){let n=vx.get(e);return n||(n=t(),vx.set(e,n),R_.add(n)),n}const Ql=(e,t,n)=>{const r=$l(t,n);r!==void 0&&e.add(r)};class CF{constructor(t){this._config=wF(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=__(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),k_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Yc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Yc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Yc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Ql(s,t,f))),d.forEach(f=>Ql(s,o,f)),d.forEach(f=>Ql(s,Oa[i]||{},f)),d.forEach(f=>Ql(s,Rn,f)),d.forEach(f=>Ql(s,vv,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),R_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Oa[n]||{},Rn.datasets[n]||{},{type:n},Rn,vv]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=gx(this._resolverCache,t,o);let s=a;if(kF(a,n)){i.$shared=!1,r=zi(r)?r():r;const c=this.createResolver(t,r,l);s=Tl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=gx(this._resolverCache,t,r);return Yt(n)?Tl(i,n,void 0,o):i}}function gx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:_b(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const SF=e=>Yt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zi(e[n]),!1);function kF(e,t){const{isScriptable:n,isIndexable:r}=c_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(zi(l)||SF(l))||a&&pn(l))return!0}return!1}var _F="4.2.0";const RF=["top","bottom","left","right","chartArea"];function mx(e,t){return e==="top"||e==="bottom"||RF.indexOf(e)===-1&&t==="x"}function bx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function yx(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),sn(n&&n.onComplete,[e],t)}function PF(e){const t=e.chart,n=t.options.animation;sn(n&&n.onProgress,[e],t)}function P_(e){return h_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Md={},xx=e=>{const t=P_(e);return Object.values(Md).filter(n=>n.canvas===t).pop()};function $F(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function TF(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function OF(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class yo{static register(...t){go.add(...t),wx()}static unregister(...t){go.remove(...t),wx()}constructor(t,n){const r=this.config=new CF(n),o=P_(t),i=xx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||YI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=Z4(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new fF,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=pD(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Md[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}No.listen(this,"complete",yx),No.listen(this,"progress",PF),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return an(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return go}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Yy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Wy(this.canvas,this.ctx),this}stop(){return No.stop(this),this}resize(t,n){No.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Yy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),sn(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};rn(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=Eu(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),rn(i,a=>{const l=a.options,s=l.id,c=Eu(s,l),d=Qt(l.type,a.dtype);(l.position===void 0||mx(l.position,c)!==mx(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=go.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),rn(o,(a,l)=>{a||delete r[l]}),rn(r,a=>{Br.configure(this,a,a.options),Br.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bx("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){rn(this.scales,t=>{Br.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Fy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;$F(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Br.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],rn(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=OF(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Sb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&kb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return a_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=PI.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Hr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),No.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};rn(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){rn(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},rn(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!zu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=rD(t),c=TF(t,this._lastEvent,r,s);r&&(this._lastEvent=null,sn(i.onHover,[t,l,this],this),s&&sn(i.onClick,[t,l,this],this));const d=!zu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}jt(yo,"defaults",Rn),jt(yo,"instances",Md),jt(yo,"overrides",Oa),jt(yo,"registry",go),jt(yo,"version",_F),jt(yo,"getChart",xx);function wx(){return rn(yo.instances,e=>e._plugins.invalidate())}function $_(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function Ci(e,t,n,r){return e?0:io(t,n,r)}function zF(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=s_(r);return{t:Ci(o.top,i.top,0,n),r:Ci(o.right,i.right,0,t),b:Ci(o.bottom,i.bottom,0,n),l:Ci(o.left,i.left,0,t)}}function MF(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Sa(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Yt(o);return{topLeft:Ci(!s||l.top||l.left,i.topLeft,0,a),topRight:Ci(!s||l.top||l.right,i.topRight,0,a),bottomLeft:Ci(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:Ci(!s||l.bottom||l.right,i.bottomRight,0,a)}}function DF(e){const t=$_(e),n=t.right-t.left,r=t.bottom-t.top,o=zF(e,n/2,r/2),i=MF(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function sp(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&$_(e,r);return l&&(o||ml(t,l.left,l.right))&&(i||ml(n,l.top,l.bottom))}function IF(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function FF(e,t){e.rect(t.x,t.y,t.w,t.h)}function cp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Dd extends Mi{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=DF(this),l=IF(a.radius)?Ws:FF;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,cp(a,n,i)),t.clip(),l(t,cp(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,cp(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return sp(this,t,n,r)}inXRange(t,n){return sp(this,t,null,n)}inYRange(t,n){return sp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}jt(Dd,"id","bar"),jt(Dd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),jt(Dd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},AF=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sx extends Mi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=sn(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Bn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=Cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,p=-d;return this.legendItems.forEach((v,b)=>{const g=r+n/2+i.measureText(v.text).width;(b===0||c[c.length-1]+g+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,p+=d,h++),s[b]={left:0,top:p,row:h,width:g,height:o},c[c.length-1]+=g+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,p=0,v=0,b=0;return this.legendItems.forEach((g,m)=>{const{itemWidth:y,itemHeight:C}=BF(r,n,i,g,o);m>0&&p+C+2*l>d&&(f+=h+l,c.push({width:h,height:p}),v+=h+l,b++,h=p=0),s[m]={left:v,top:p,col:b,width:y,height:C},h=Math.max(h,y),p+=C+l}),f+=h,c.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=wl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=tr(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=tr(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Sb(t,this),this._draw(),kb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Rn.color,s=wl(t.rtl,this.left,this.width),c=Bn(a.font),{padding:d}=a,f=c.size,h=f/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:v,boxHeight:b,itemHeight:g}=Cx(a,f),m=function(_,k,T){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;o.save();const $=Qt(T.lineWidth,1);if(o.fillStyle=Qt(T.fillStyle,l),o.lineCap=Qt(T.lineCap,"butt"),o.lineDashOffset=Qt(T.lineDashOffset,0),o.lineJoin=Qt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Qt(T.strokeStyle,l),o.setLineDash(Qt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},D=s.xPlus(_,v/2),z=k+h;i_(o,R,D,z,a.pointStyleWidth&&v)}else{const R=k+Math.max((f-b)/2,0),D=s.leftForLtr(_,v),z=Sa(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Ws(o,{x:D,y:R,w:v,h:b,radius:z}):o.rect(D,R,v,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(_,k,T){za(o,T.text,_,k+g/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?p={x:tr(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:p={x:this.left+d,y:tr(i,this.top+x+d,this.bottom-n[0].height),line:0},p_(this.ctx,t.textDirection);const w=g+d;this.legendItems.forEach((_,k)=>{o.strokeStyle=_.fontColor,o.fillStyle=_.fontColor;const T=o.measureText(_.text).width,$=s.textAlign(_.textAlign||(_.textAlign=a.textAlign)),R=v+h+T;let D=p.x,z=p.y;s.setWidth(this.width),C?k>0&&D+R+d>this.right&&(z=p.y+=w,p.line++,D=p.x=tr(i,this.left+d,this.right-r[p.line])):k>0&&z+w>this.bottom&&(D=p.x=D+n[p.line].width+d,p.line++,z=p.y=tr(i,this.top+x+d,this.bottom-n[p.line].height));const A=s.x(D);if(m(A,z,_),D=vD($,D+v+h,C?D+R:this.right,t.rtl),y(s.x(D),z,_),C)p.x+=R+d;else if(typeof _.text!="string"){const L=c.lineHeight;p.y+=T_(_,L)}else p.y+=w}),v_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Bn(n.font),o=rr(n.padding);if(!n.display)return;const i=wl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=tr(t.align,f,this.right-h);else{const v=this.columnSizes.reduce((b,g)=>Math.max(b,g.height),0);d=c+tr(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=tr(l,f,f+h);a.textAlign=i.textAlign(wb(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,za(a,n.text,p,d,r)}_computeTitleHeight(){const t=this.options.title,n=Bn(t.font),r=rr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ml(t,this.left,this.right)&&ml(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function LF(e,t,n){let r=e;return typeof t.text!="string"&&(r=T_(t,n)),r}function T_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function NF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var HF={id:"legend",_element:Sx,start(e,t,n){const r=e.legend=new Sx({ctx:e.ctx,options:n,chart:e});Br.configure(e,r,n),Br.addBox(e,r)},stop(e){Br.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Br.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=rr(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class O_ extends Mi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=pn(r.text)?r.text.length:1;this._padding=rr(r.padding);const i=o*Bn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=tr(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=tr(l,o,n),s=Xn*-.5):(d=i-t,f=tr(l,n,o),s=Xn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Bn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);za(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:wb(n.align),textBaseline:"middle",translation:[a,l]})}}function jF(e,t){const n=new O_({ctx:e.ctx,options:t,chart:e});Br.configure(e,n,t),Br.addBox(e,n),e.titleBlock=n}var VF={id:"title",_element:O_,start(e,t,n){jF(e,n)},stop(e){const t=e.titleBlock;Br.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Br.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const us={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function WF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function kx(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Bn(t.bodyFont),c=Bn(t.titleFont),d=Bn(t.footerFont),f=i.length,h=o.length,p=r.length,v=rr(t.padding);let b=v.height,g=0,m=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),m){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=p*x+(m-p)*s.lineHeight+(m-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){g=Math.max(g,n.measureText(x).width+y)};return n.save(),n.font=c.string,rn(e.title,C),n.font=s.string,rn(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,rn(r,x=>{rn(x.before,C),rn(x.lines,C),rn(x.after,C)}),y=0,n.font=d.string,rn(e.footer,C),n.restore(),g+=v.width,{width:g,height:b}}function UF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function KF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function qF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),KF(c,e,t,n)&&(c="center"),c}function _x(e,t,n){const r=n.yAlign||t.yAlign||UF(e,n);return{xAlign:n.xAlign||t.xAlign||qF(e,t,n,r),yAlign:r}}function YF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function GF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function Rx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Sa(a);let v=YF(t,l);const b=GF(t,s,c);return s==="center"?l==="left"?v+=c:l==="right"&&(v-=c):l==="left"?v-=Math.max(d,h)+o:l==="right"&&(v+=Math.max(f,p)+o),{x:io(v,0,r.width-t.width),y:io(b,0,r.height-t.height)}}function Gc(e,t,n){const r=rr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Px(e){return vo([],Ho(e))}function XF(e,t,n){return Ha(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $x(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const z_={beforeTitle:Bo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?z_[t].call(n,r):o}class mv extends Mi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new g_(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=XF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=sr(r,"beforeTitle",this,t),i=sr(r,"title",this,t),a=sr(r,"afterTitle",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}getBeforeBody(t,n){return Px(sr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return rn(t,i=>{const a={before:[],lines:[],after:[]},l=$x(r,i);vo(a.before,Ho(sr(l,"beforeLabel",this,i))),vo(a.lines,sr(l,"label",this,i)),vo(a.after,Ho(sr(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return Px(sr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=sr(r,"beforeFooter",this,t),i=sr(r,"footer",this,t),a=sr(r,"afterFooter",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),rn(l,d=>{const f=$x(t.callbacks,d);o.push(sr(f,"labelColor",this,d)),i.push(sr(f,"labelPointStyle",this,d)),a.push(sr(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=us[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=kx(this,r),c=Object.assign({},l,s),d=_x(this.chart,r,c),f=Rx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=Sa(l),{x:h,y:p}=t,{width:v,height:b}=n;let g,m,y,C,x,w;return i==="center"?(x=p+b/2,o==="left"?(g=h,m=g-a,C=x+a,w=x-a):(g=h+v,m=g+a,C=x-a,w=x+a),y=g):(o==="left"?m=h+Math.max(s,d)+a:o==="right"?m=h+v-Math.max(c,f)-a:m=this.caretX,i==="top"?(C=p,x=C-a,g=m-a,y=m+a):(C=p+b,x=C+a,g=m+a,y=m-a),w=C),{x1:g,x2:m,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=wl(r.rtl,this.x,this.width);for(t.x=Gc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Bn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Ws(t,{x:g,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Ws(t,{x:m,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,b,c,s),t.strokeRect(g,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(m,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Bn(r.bodyFont);let h=f.lineHeight,p=0;const v=wl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,v.x(t.x+p),t.y+h/2),t.y+=h+i},g=v.textAlign(a);let m,y,C,x,w,_,k;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Gc(this,g,r),n.fillStyle=r.bodyColor,rn(this.beforeBody,b),p=l&&g!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,_=o.length;x<_;++x){for(m=o[x],y=this.labelTextColors[x],n.fillStyle=y,rn(m.before,b),C=m.lines,l&&C.length&&(this._drawColorBox(n,t,x,v,r),h=Math.max(f.lineHeight,s)),w=0,k=C.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=us[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=kx(this,t),s=Object.assign({},a,this._size),c=_x(n,t,s),d=Rx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=rr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),p_(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),v_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!zu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!zu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=us[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}jt(mv,"positioners",us);var ZF={id:"tooltip",_element:mv,positioners:us,afterInit(e,t,n){n&&(e.tooltip=new mv({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:z_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const QF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function JF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return QF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const eA=(e,t)=>e===null?null:io(Math.round(e),0,t);function Tx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}jt(bv,"id","category"),jt(bv,"defaults",{ticks:{callback:Tx}});function tA(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,p=i||1,v=d-1,{min:b,max:g}=t,m=!an(a),y=!an(l),C=!an(c),x=(g-b)/(f+1);let w=By((g-b)/v/p)*p,_,k,T,$;if(w<1e-14&&!m&&!y)return[{value:b},{value:g}];$=Math.ceil(g/w)-Math.floor(b/w),$>v&&(w=By($*w/v/p)*p),an(s)||(_=Math.pow(10,s),w=Math.ceil(w*_)/_),o==="ticks"?(k=Math.floor(b/w)*w,T=Math.ceil(g/w)*w):(k=b,T=g),m&&y&&i&&aD((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,k=a,T=l):C?(k=m?a:k,T=y?l:T,$=c-1,w=(T-k)/$):($=(T-k)/w,Td($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(Ey(w),Ey(k));_=Math.pow(10,an(s)?R:s),k=Math.round(k*_)/_,T=Math.round(T*_)/_;let D=0;for(m&&(h&&k!==a?(n.push({value:a}),ko=n?o:s,l=s=>i=r?i:s;if(t){const s=Ri(o),c=Ri(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=tA(o,i);return t.bounds==="ticks"&&Qk(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Cb(t,this.chart.options.locale,this.options.ticks.format)}}class yv extends Lu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?t:0,this.max=jn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}jt(yv,"id","linear"),jt(yv,"defaults",{ticks:{callback:lh.formatters.numeric}});const Ks=e=>Math.floor(xi(e)),ea=(e,t)=>Math.pow(10,Ks(e)+t);function zx(e){return e/Math.pow(10,Ks(e))===1}function Mx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function nA(e,t){const n=t-e;let r=Ks(n);for(;Mx(e,t,r)>10;)r++;for(;Mx(e,t,r)<10;)r--;return Math.min(r,Ks(e))}function rA(e,{min:t,max:n}){t=Cr(e.min,t);const r=[],o=Ks(t);let i=nA(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=Cr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const p=Cr(e.max,h);return r.push({value:p,major:zx(p),significand:f}),r}class Dx extends ja{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Lu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return jn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?Math.max(0,t):null,this.max=jn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!jn(this._userMin)&&(this.min=t===ea(this.min,0)?ea(this.min,-1):ea(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(ea(r,-1)),a(ea(o,1)))),r<=0&&i(ea(o,-1)),o<=0&&a(ea(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=rA(n,this);return t.bounds==="ticks"&&Qk(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Cb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xi(t),this._valueRange=xi(this.max)-xi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}jt(Dx,"id","logarithmic"),jt(Dx,"defaults",{ticks:{callback:lh.formatters.logarithmic,major:{enabled:!0}}});function xv(e){const t=e.ticks;if(t.display&&e.display){const n=rr(t.backdropPadding);return Qt(t.font&&t.font.size,Rn.font.size)+n.height}return 0}function oA(e,t,n){return n=pn(n)?n:[n],{w:_D(e,t.string,n),h:n.length*t.lineHeight}}function Ix(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function iA(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Xn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function lA(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=xv(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Xn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function uA(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Bn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:p}=e._pointLabelItems[o],{backdropColor:v}=i;if(!an(v)){const b=Sa(i.borderRadius),g=rr(i.backdropPadding);n.fillStyle=v;const m=d-g.left,y=f-g.top,C=h-d+g.width,x=p-f+g.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Ws(n,{x:m,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(m,y,C,x)}za(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function M_(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,ko);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=sn(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?iA(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=ko/(this._pointLabels.length||1),r=this.options.startAngle||0;return mo(t*n+wi(r))}getDistanceFromCenterForValue(t){if(an(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(an(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),p=o.setContext(h),v=i.setContext(h);fA(this,p,s,a,v)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Bn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=rr(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}za(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}jt(Xc,"id","radialLinear"),jt(Xc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lh.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),jt(Xc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),jt(Xc,"descriptors",{angleLines:{_fallback:"grid"}});const ch={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fr=Object.keys(ch);function pA(e,t){return e-t}function Fx(e,t){if(an(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),jn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Iu(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Ax(e,t,n,r){const o=fr.length;for(let i=fr.indexOf(e);i=fr.indexOf(n);i--){const a=fr[i];if(ch[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return fr[n?fr.indexOf(n):0]}function gA(e){for(let t=fr.indexOf(e)+1,n=fr.length;t=t?n[r]:n[o];e[i]=!0}}function mA(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function Ex(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=io(n,0,a),r=io(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Ax(i.minUnit,n,r,this._getLabelCapacity(n)),l=Qt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=Iu(s)||s===!0,d={};let f=n,h,p;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;hb-g).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return sn(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],p=c&&f&&h&&h.major;return this._adapter.format(t,o||(p?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=pv(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=pv(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Lx extends Nu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},bA={type:{type:String,required:!0},...D_},yA=Lk[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function rl(e){return wa(e)?Dt(e):e}function xA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return wa(t)?new Proxy(e,{}):e}function wA(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function I_(e,t){e.labels=t}function F_(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function CA(e,t){const n={labels:[],datasets:[]};return I_(n,e.labels),F_(n,e.datasets,t),n}const SA=J({props:bA,setup(e,t){let{expose:n}=t;const r=F(null),o=ck(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,p=CA(c,h),v=xA(p,c);o.value=new yo(r.value,{type:s,data:v,options:{...d},plugins:f})},a=()=>{const s=Dt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return It(i),Bt(a),it([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,p]=c;const v=Dt(o.value);if(!v)return;let b=!1;if(d){const g=rl(d),m=rl(h);g&&g!==m&&(wA(v,g),b=!0)}if(f){const g=rl(f.labels),m=rl(p.labels),y=rl(f.datasets),C=rl(p.datasets);g!==m&&(I_(v.config.data,g),b=!0),y&&y!==C&&(F_(v.config.data,y,e.datasetIdKey),b=!0)}b&&l(v)},{deep:!0}),()=>u("canvas",{ref:r})}});function kA(e,t){return yo.register(t),J({props:D_,setup(n,r){let{expose:o}=r;const i=ck(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(SA,yA({ref:a},{type:e,...n}))}})}const _A=kA("bar",Od),Nx=`Angela Merkel,Merkel -Barack Obama,Obama -Brexit -Donald Trump,Trump -North Korea -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -2015`;let Hu=[];const A_=new WeakMap;function RA(){Hu.forEach(e=>e(...A_.get(e))),Hu=[]}function Ma(e,...t){A_.set(e,t),!Hu.includes(e)&&Hu.push(e)===1&&requestAnimationFrame(RA)}function PA(e){return e.nodeType===9?null:e.parentNode}function B_(e){if(e===null)return null;const t=PA(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return B_(t)}function Ob(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Zn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function vr(e){return e.composedPath()[0]||null}function $A(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Jl(e,t){var n;if(e==null)return;const r=$A(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function hn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function yn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Pi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function TA(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const Hx={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function E_(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function Id(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function mi(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function wv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function Cv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function Sv(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Oo="^\\s*",zo="\\s*$",Di="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ga="([0-9A-Fa-f])",ma="([0-9A-Fa-f]{2})",OA=new RegExp(`${Oo}hsl\\s*\\(${Sr},${Di},${Di}\\)${zo}`),zA=new RegExp(`${Oo}hsv\\s*\\(${Sr},${Di},${Di}\\)${zo}`),MA=new RegExp(`${Oo}hsla\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),DA=new RegExp(`${Oo}hsva\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),IA=new RegExp(`${Oo}rgb\\s*\\(${Sr},${Sr},${Sr}\\)${zo}`),FA=new RegExp(`${Oo}rgba\\s*\\(${Sr},${Sr},${Sr},${Sr}\\)${zo}`),zb=new RegExp(`${Oo}#${ga}${ga}${ga}${zo}`),Mb=new RegExp(`${Oo}#${ma}${ma}${ma}${zo}`),Db=new RegExp(`${Oo}#${ga}${ga}${ga}${ga}${zo}`),Ib=new RegExp(`${Oo}#${ma}${ma}${ma}${ma}${zo}`);function cr(e){return parseInt(e,16)}function Cl(e){try{let t;if(t=MA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=OA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function _a(e){try{let t;if(t=DA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=zA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Tn(e){try{let t;if(t=Mb.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),1];if(t=IA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),1];if(t=FA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),Uo(t[13])];if(t=zb.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),1];if(t=Ib.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),Uo(cr(t[4])/255)];if(t=Db.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),Uo(cr(t[4]+t[4])/255)];if(e in Hx)return Tn(Hx[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function AA(e){return e>1?1:e<0?0:e}function BA(e,t,n){return`rgb(${bn(e)}, ${bn(t)}, ${bn(n)})`}function kv(e,t,n,r){return`rgba(${bn(e)}, ${bn(t)}, ${bn(n)}, ${AA(r)})`}function dp(e,t,n,r,o){return bn((e*t*(1-r)+n*r)/o)}function pt(e,t){Array.isArray(e)||(e=Tn(e)),Array.isArray(t)||(t=Tn(t));const n=e[3],r=t[3],o=Uo(n+r-n*r);return kv(dp(e[0],n,t[0],r,o),dp(e[1],n,t[1],r,o),dp(e[2],n,t[2],r,o),o)}function He(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e);return t.alpha?kv(n,r,o,t.alpha):kv(n,r,o,i)}function kn(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e),{lightness:a=1,alpha:l=1}=t;return _o([n*a,r*a,o*a,i*l])}function Uo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function To(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function bn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function zn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function _v(e){const[t,n,r]=Array.isArray(e)?e:Tn(e);return BA(t,n,r)}function _o(e){const[t,n,r]=e;return 3 in e?`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, ${Uo(e[3])})`:`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, 1)`}function Rv(e){return`hsv(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function Ra(e){const[t,n,r]=e;return 3 in e?`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Pv(e){return`hsl(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function $i(e){const[t,n,r]=e;return 3 in e?`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Ti(e){if(typeof e=="string"){let r;if(r=Mb.exec(e))return`${r[0]}FF`;if(r=Ib.exec(e))return r[0];if(r=zb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Db.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>bn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":bn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function _s(e){if(typeof e=="string"){let t;if(t=Mb.exec(e))return t[0];if(t=Ib.exec(e))return t[0].slice(0,7);if(t=zb.exec(e)||Db.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>bn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Tr(e=8){return Math.random().toString(16).slice(2,2+e)}function L_(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Va(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Nr(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Nr(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Nr(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Wn(e){return Object.keys(e)}const Ut=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Ar(e):typeof e=="number"?Ar(String(e)):null,Vx=new Set;function LA(e,t){const n=`[naive/${e}]: ${t}`;Vx.has(n)||(Vx.add(n),console.error(n))}function Qn(e,t){console.error(`[naive/${e}]: ${t}`)}function Nn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function $v(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function hc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function ju(e,t="default",n=void 0){const r=e[t];if(!r)return Qn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Nr(r(n));return o.length===1?o[0]:(Qn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function N_(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function H_(e){return t=>{t?e.value=t.$el:e.value=null}}function El(e){return e.some(t=>Ns(t)?!(t.type===Pr||t.type===Ot&&!El(t.children)):!0)?e:null}function gt(e,t){return e&&El(e())||t()}function Da(e,t,n){return e&&El(e(t))||n(t)}function kt(e,t){const n=e&&El(e());return t(n||null)}function NA(e,t,n){const r=e&&El(e(t));return n(r||null)}function Pa(e){return!(e&&El(e()))}function Rs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function HA(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===$r);return!!(n&&n.value===!1)}const Tv=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),jA=/^(\d|\.)+$/,Wx=/(\d|\.)+/;function Mt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(jA.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Wx.exec(e);return o?e.replace(Wx,String((Number(o[0])+n)*t)):e}return e}function Ia(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function VA(e){let t=0;for(let n=0;n{let o=VA(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function KA(e,t){const n=[];return t.split(j_).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function qA(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=UA(t,n):t=KA(t,n))}),t.join(", ").replace(WA," ")}function Ux(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function dh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function YA(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Qc(e){return e?/^\s*@(s|m)/.test(e):!1}const GA=/[A-Z]/g;function V_(e){return e.replace(GA,t=>"-"+t.toLowerCase())}function XA(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${V_(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function ZA(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Kx(e,t,n,r){if(!t)return"";const o=ZA(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=V_(l),s!=null&&a.push(` ${l}${XA(s)}`)}),e&&a.push("}"),a.join(` -`)}function Ov(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))Ov(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Ov(o,t,n):o&&n(o)}else r&&n(r)})}function W_(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Qc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});Qc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Qc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});Qc(d)?l=d:t.push(d)}const s=qA(t),c=Kx(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Ov(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Kx(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else W_(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function U_(e,t,n,r=!1){const o=[];return W_(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function qs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function QA(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Ux),t.els=[];else{const o=dh(n);o&&r.includes(o)&&(Ux(o),t.els=r.filter(i=>i!==o))}}function qx(e,t){e.push(t)}function JA(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,U_(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=qs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=dh(n);if(d!==null&&!a)return d;const f=d!=null?d:YA(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),qx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),qx(t.els,f),f}function eB(e){return U_(this,this.instance,e)}function tB(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return JA(this.instance,this,t,r,o,i,a,l,n)}function nB(e={}){const{id:t}=e;QA(this.instance,this,t)}const Jc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:eB,mount:tB,unmount:nB}},rB=function(e,t,n,r){return Array.isArray(t)?Jc(e,{$:null},null,t):Array.isArray(n)?Jc(e,t,null,n):Array.isArray(r)?Jc(e,t,n,r):Jc(e,t,n,null)};function K_(e={}){let t=null;const n={c:(...r)=>rB(n,...r),use:(r,...o)=>r.install(n,...o),find:dh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function oB(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return dh(e)!==null}function iB(e){let t=".",n="__",r="--",o;if(e){let v=e.blockPrefix;v&&(t=v),v=e.elementPrefix,v&&(n=v),v=e.modifierPrefix,v&&(r=v)}const i={install(v){o=v.c;const b=v.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(v){let b,g;return{before(m){b=m.bem.b,g=m.bem.els,m.bem.els=null},after(m){m.bem.b=b,m.bem.els=g},$({context:m,props:y}){return v=typeof v=="string"?v:v({context:m,props:y}),m.bem.b=v,`${(y==null?void 0:y.bPrefix)||t}${m.bem.b}`}}}function l(v){let b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({context:g,props:m}){return v=typeof v=="string"?v:v({context:g,props:m}),g.bem.els=v.split(",").map(y=>y.trim()),g.bem.els.map(y=>`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}${n}${y}`).join(", ")}}}function s(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=v.split(",").map(x=>x.trim());function y(x){return m.map(w=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${m!==null&&m.length>0?`${n}${m[0]}`:""}${r}${v})`}}}return Object.assign(i,{cB:(...v)=>o(a(v[0]),v[1],v[2]),cE:(...v)=>o(l(v[0]),v[1],v[2]),cM:(...v)=>o(s(v[0]),v[1],v[2]),cNotM:(...v)=>o(c(v[0]),v[1],v[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const aB="n",Ys=`.${aB}-`,lB="__",sB="--",q_=K_(),Y_=iB({blockPrefix:Ys,elementPrefix:lB,modifierPrefix:sB});q_.use(Y_);const{c:O,find:uce}=q_,{cB:S,cE:M,cM:I,cNotM:mt}=Y_;function Mo(e){return O(({props:{bPrefix:t}})=>`${t||Ys}modal, ${t||Ys}drawer`,[e])}function ei(e){return O(({props:{bPrefix:t}})=>`${t||Ys}popover`,[e])}function G_(e){return O(({props:{bPrefix:t}})=>`&${t||Ys}modal`,e)}const cB=(...e)=>O(">",[S(...e)]);let up;function dB(){return up===void 0&&(up=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),up}const lr=typeof document<"u"&&typeof window<"u",X_=new WeakSet;function Fa(e){X_.add(e)}function Z_(e){return!X_.has(e)}function uB(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Jo())===null||r===void 0?void 0:r.proxy;it(n,a),a(n.value),Bt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function fB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),it(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Bt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function hB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),It(()=>{const o=n();!o||r[t].push(o)}),Bt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function pB(e,t,n){if(!t)return e;const r=F(e.value);let o=null;return it(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Q_(e){const t=F(!!e.value);if(t.value)return $o(t);const n=it(e,r=>{r&&(t.value=!0,n())});return $o(t)}function lt(e){const t=P(e),n=F(t.value);return it(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Fb(){return Jo()!==null}const uh=typeof window<"u";let Sl,Ps;const vB=()=>{var e,t;Sl=uh?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ps=!1,Sl!==void 0?Sl.then(()=>{Ps=!0}):Ps=!0};vB();function fh(e){if(Ps)return;let t=!1;It(()=>{Ps||Sl==null||Sl.then(()=>{t||e()})}),Bt(()=>{t=!0})}function Fd(e){return e.composedPath()[0]}const gB={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function mB(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Fd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Fd(a))},i=a=>{!r||t.contains(Fd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function J_(e,t,n){const r=gB[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=mB(e,t,n)),i}function bB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{_t(i,document,o[i],r)}),!0}return!1}function yB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{Ct(i,document,o[i],r)}),!0}return!1}function xB(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(k,T,$){const R=k[T];return k[T]=function(){return $.apply(k,arguments),R.apply(k,arguments)},k}function i(k,T){k[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var k;return(k=a.get(this))!==null&&k!==void 0?k:null}function c(k,T){l!==void 0&&Object.defineProperty(k,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const k=function(T){const{type:$,eventPhase:R,bubbles:D}=T,z=Fd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],W=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!D&&W!==void 0){const re=W.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(W===void 0)return;for(let K=0;Kz(T))};return k.displayName="evtdUnifiedWindowEventHandler",k}const v=h(),b=p();function g(k,T){const $=d[k];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,v,k==="capture")),$[T]}function m(k){return f[k]===void 0&&(f[k]=new Set,window.addEventListener(k,b)),f[k]}function y(k,T){let $=k.get(T);return $===void 0&&k.set(T,$=new Set),$}function C(k,T,$,R){const D=d[T][$];if(D!==void 0){const z=D.get(k);if(z!==void 0&&z.has(R))return!0}return!1}function x(k,T){const $=f[k];return!!($!==void 0&&$.has(T))}function w(k,T,$,R){let D;if(typeof R=="object"&&R.once===!0?D=E=>{_(k,T,D,R),$(E)}:D=$,bB(k,T,D,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=g(A,k),j=y(L,T);if(j.has(D)||j.add(D),T===window){const E=m(k);E.has(D)||E.add(D)}}function _(k,T,$,R){if(yB(k,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=g(A,k),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",k,$)&&x(k,$)){const W=f[k];W.delete($),W.size===0&&(window.removeEventListener(k,b),f[k]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(k,v,A==="capture"),d[A][k]=void 0)}return{on:w,off:_}}const{on:_t,off:Ct}=xB(),fs=F(null);function Yx(e){if(e.clientX>0||e.clientY>0)fs.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?fs.value={x:n+o/2,y:r+i/2}:fs.value={x:0,y:0}}else fs.value=null}}let ed=0,Gx=!0;function eR(){if(!uh)return $o(F(null));ed===0&&_t("click",document,Yx,!0);const e=()=>{ed+=1};return Gx&&(Gx=Fb())?(Qo(e),Bt(()=>{ed-=1,ed===0&&Ct("click",document,Yx,!0)})):e(),$o(fs)}const wB=F(void 0);let td=0;function Xx(){wB.value=Date.now()}let Zx=!0;function tR(e){if(!uh)return $o(F(!1));const t=F(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}td===0&&_t("click",window,Xx,!0);const i=()=>{td+=1,_t("click",window,o,!0)};return Zx&&(Zx=Fb())?(Qo(i),Bt(()=>{td-=1,td===0&&Ct("click",window,Xx,!0),Ct("click",window,o,!0),r()})):i(),$o(t)}function St(e,t){return it(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function Hn(){const e=F(!1);return It(()=>{e.value=!0}),$o(e)}function Ii(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const CB=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function SB(){return CB}const kB={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function _B(e){return`(min-width: ${e}px)`}const es={};function RB(e=kB){if(!uh)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=F({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;es[i]===void 0?(a=window.matchMedia(_B(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,es[i]={mql:a,cbs:l}):(a=es[i].mql,l=es[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Bt(()=>{n.forEach(o=>{const{cbs:i}=es[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function Ab(e={},t){const n=ji({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(_t("keydown",document,i),_t("keyup",document,a)),t!==void 0&&it(t,s=>{s?(_t("keydown",document,i),_t("keyup",document,a)):(Ct("keydown",document,i),Ct("keyup",document,a))})};return Fb()?(Qo(l),Bt(()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a))})):l(),$o(n)}const Bb="n-internal-select-menu",nR="n-internal-select-menu-body",pc="n-modal-body",rR="n-modal",vc="n-drawer-body",Eb="n-drawer",Ll="n-popover-body",oR="__disabled__";function Ht(e){const t=Le(pc,null),n=Le(vc,null),r=Le(Ll,null),o=Le(nR,null),i=F();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};It(()=>{_t("fullscreenchange",document,a)}),Bt(()=>{Ct("fullscreenchange",document,a)})}return lt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?oR:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Ht.tdkey=oR;Ht.propTo={type:[String,Object,Boolean],default:void 0};let Qx=!1;function Lb(){if(!!lr&&!!window.CSS&&!Qx&&(Qx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function zv(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Mv(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Mv(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Mv(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function Jx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Mv(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ui=null;function iR(){if(ui===null&&(ui=document.getElementById("v-binder-view-measurer"),ui===null)){ui=document.createElement("div"),ui.id="v-binder-view-measurer";const{style:e}=ui;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ui)}return ui.getBoundingClientRect()}function PB(e,t){const n=iR();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function fp(e){const t=e.getBoundingClientRect(),n=iR();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function $B(e){return e.nodeType===9?null:e.parentNode}function aR(e){if(e===null)return null;const t=$B(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return aR(t)}const TB=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ot("VBinder",(t=Jo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=F(null),o=m=>{r.value=m,n&&e.syncTargetWithParent&&n.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=aR(m),m!==null;)i.push(m);for(const y of i)_t("scroll",y,f,!0)},l=()=>{for(const m of i)Ct("scroll",m,f,!0);i=[]},s=new Set,c=m=>{s.size===0&&a(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Ma(h)},h=()=>{s.forEach(m=>m())},p=new Set,v=m=>{p.size===0&&_t("resize",window,g),p.has(m)||p.add(m)},b=m=>{p.has(m)&&p.delete(m),p.size===0&&Ct("resize",window,g)},g=()=>{p.forEach(m=>m())};return Bt(()=>{Ct("resize",window,g),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:v,removeResizeListener:b}},render(){return zv("binder",this.$slots)}}),qr=TB,Yr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?un(Jx("follower",this.$slots),[[t]]):Jx("follower",this.$slots)}}),ol="@@mmoContext",OB={mounted(e,{value:t}){e[ol]={handler:void 0},typeof t=="function"&&(e[ol].handler=t,_t("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ol];typeof t=="function"?n.handler?n.handler!==t&&(Ct("mousemoveoutside",e,n.handler),n.handler=t,_t("mousemoveoutside",e,t)):(e[ol].handler=t,_t("mousemoveoutside",e,t)):n.handler&&(Ct("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ol];t&&Ct("mousemoveoutside",e,t),e[ol].handler=void 0}},zB=OB,il="@@coContext",MB={mounted(e,{value:t,modifiers:n}){e[il]={handler:void 0},typeof t=="function"&&(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[il];typeof t=="function"?r.handler?r.handler!==t&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,_t("clickoutside",e,t,{capture:n.capture})):(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[il];n&&Ct("clickoutside",e,n,{capture:t.capture}),e[il].handler=void 0}},gr=MB;function DB(e,t){console.error(`[vdirs/${e}]: ${t}`)}class IB{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&DB("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const hp=new IB,al="@@ziContext",FB={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[al]={enabled:!!o,initialized:!1},o&&(hp.ensureZIndex(e,r),e[al].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[al].enabled;o&&!i&&(hp.ensureZIndex(e,r),e[al].initialized=!0),e[al].enabled=!!o},unmounted(e,t){if(!e[al].initialized)return;const{value:n={}}=t,{zIndex:r}=n;hp.unregister(e,r)}},gc=FB,lR=Symbol("@css-render/vue3-ssr");function AB(e,t){return``}function BB(e,t){const n=Le(lR,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(AB(e,t)))}const EB=typeof document<"u";function Vi(){if(EB)return;const e=Le(lR,null);if(e!==null)return{adapter:BB,context:e}}function e1(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:So}=K_(),hh="vueuc-style";function t1(e){return e&-e}class LB{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=t1(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?zv("lazy-teleport",this.$slots):u(cc,{disabled:this.disabled,to:this.mergedTo},zv("lazy-teleport",this.$slots)):null}}),nd={top:"bottom",bottom:"top",left:"right",right:"left"},r1={start:"end",center:"center",end:"start"},pp={top:"height",bottom:"height",left:"width",right:"width"},NB={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},HB={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},jB={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},o1={top:!0,bottom:!1,left:!0,right:!1},i1={top:"end",bottom:"start",left:"end",right:"start"};function VB(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(p,v,b)=>{let g=0,m=0;const y=n[p]-t[v]-t[p];return y>0&&r&&(b?m=o1[v]?y:-y:g=o1[v]?y:-y),{left:g,top:m}},f=a==="left"||a==="right";if(s!=="center"){const p=jB[e],v=nd[p],b=pp[p];if(n[b]>t[b]){if(t[p]+t[b]t[v]&&(s=r1[l])}else{const p=a==="bottom"||a==="top"?"left":"top",v=nd[p],b=pp[p],g=(n[b]-t[b])/2;(t[p]t[v]?(s=i1[p],c=d(b,p,f)):(s=i1[v],c=d(b,v,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Or=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=lt(()=>e.enabled!==void 0?e.enabled:e.show),r=F(null),o=F(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};It(()=>{n.value&&(s(),i())});const l=Vi();KB.mount({id:"vueuc/binder",head:!0,anchorMetaName:hh,ssr:l}),Bt(()=>{a()}),fh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const p=t.targetRef,{x:v,y:b,overlap:g}=e,m=v!==void 0&&b!==void 0?PB(v,b):fp(p);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:_}=e;h.setAttribute("v-placement",x),g?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;y==="target"?k.width=`${m.width}px`:y!==void 0?k.width=y:k.width="",C==="target"?k.minWidth=`${m.width}px`:C!==void 0?k.minWidth=C:k.minWidth="";const T=fp(h),$=fp(o.value),{left:R,top:D,placement:z}=VB(x,m,T,w,_,g),A=WB(z,g),{left:L,top:j,transform:E}=UB(z,$,m,D,R,g);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(D)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};it(n,h=>{h?(i(),c()):a()});const c=()=>{Rt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{it(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{it(xe(e,h),c)}),it(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Hn(),f=lt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(mc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?un(n,[[gc,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var $a=[],qB=function(){return $a.some(function(e){return e.activeTargets.length>0})},YB=function(){return $a.some(function(e){return e.skippedTargets.length>0})},a1="ResizeObserver loop completed with undelivered notifications.",GB=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:a1}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=a1),window.dispatchEvent(e)},Gs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gs||(Gs={}));var Ta=function(e){return Object.freeze(e)},XB=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ta(this)}return e}(),sR=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ta(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Nb=function(e){return e instanceof SVGElement&&"getBBox"in e},cR=function(e){if(Nb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},l1=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ZB=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$s=typeof window<"u"?window:{},rd=new WeakMap,s1=/auto|scroll/,QB=/^tb|vertical/,JB=/msie|trident/i.test($s.navigator&&$s.navigator.userAgent),ho=function(e){return parseFloat(e||"0")},kl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new XB((n?t:e)||0,(n?e:t)||0)},c1=Ta({devicePixelContentBoxSize:kl(),borderBoxSize:kl(),contentBoxSize:kl(),contentRect:new sR(0,0,0,0)}),dR=function(e,t){if(t===void 0&&(t=!1),rd.has(e)&&!t)return rd.get(e);if(cR(e))return rd.set(e,c1),c1;var n=getComputedStyle(e),r=Nb(e)&&e.ownerSVGElement&&e.getBBox(),o=!JB&&n.boxSizing==="border-box",i=QB.test(n.writingMode||""),a=!r&&s1.test(n.overflowY||""),l=!r&&s1.test(n.overflowX||""),s=r?0:ho(n.paddingTop),c=r?0:ho(n.paddingRight),d=r?0:ho(n.paddingBottom),f=r?0:ho(n.paddingLeft),h=r?0:ho(n.borderTopWidth),p=r?0:ho(n.borderRightWidth),v=r?0:ho(n.borderBottomWidth),b=r?0:ho(n.borderLeftWidth),g=f+c,m=s+d,y=b+p,C=h+v,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,_=o?g+y:0,k=o?m+C:0,T=r?r.width:ho(n.width)-_-w,$=r?r.height:ho(n.height)-k-x,R=T+g+w+y,D=$+m+x+C,z=Ta({devicePixelContentBoxSize:kl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:kl(R,D,i),contentBoxSize:kl(T,$,i),contentRect:new sR(f,s,T,$)});return rd.set(e,z),z},uR=function(e,t,n){var r=dR(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Gs.DEVICE_PIXEL_CONTENT_BOX:return a;case Gs.BORDER_BOX:return o;default:return i}},e6=function(){function e(t){var n=dR(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ta([n.borderBoxSize]),this.contentBoxSize=Ta([n.contentBoxSize]),this.devicePixelContentBoxSize=Ta([n.devicePixelContentBoxSize])}return e}(),fR=function(e){if(cR(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},t6=function(){var e=1/0,t=[];$a.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new e6(c.target),f=fR(c.target);l.push(d),c.lastReportedSize=uR(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},n6=function(){var e=0;for(d1(e);qB();)e=t6(),d1(e);return YB()&&GB(),e>0},vp,hR=[],r6=function(){return hR.splice(0).forEach(function(e){return e()})},o6=function(e){if(!vp){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return r6()}).observe(n,r),vp=function(){n.textContent="".concat(t?t--:t++)}}hR.push(e),vp()},i6=function(e){o6(function(){requestAnimationFrame(e)})},Ad=0,a6=function(){return!!Ad},l6=250,s6={attributes:!0,characterData:!0,childList:!0,subtree:!0},u1=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],f1=function(e){return e===void 0&&(e=0),Date.now()+e},gp=!1,c6=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=l6),!gp){gp=!0;var r=f1(t);i6(function(){var o=!1;try{o=n6()}finally{if(gp=!1,t=r-f1(),!a6())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,s6)};document.body?n():$s.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),u1.forEach(function(n){return $s.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),u1.forEach(function(n){return $s.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Dv=new c6,h1=function(e){!Ad&&e>0&&Dv.start(),Ad+=e,!Ad&&Dv.stop()},d6=function(e){return!Nb(e)&&!ZB(e)&&getComputedStyle(e).display==="inline"},u6=function(){function e(t,n){this.target=t,this.observedBox=n||Gs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uR(this.target,this.observedBox,!0);return d6(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),f6=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),od=new WeakMap,p1=function(e,t){for(var n=0;n=0&&(i&&$a.splice($a.indexOf(r),1),r.observationTargets.splice(o,1),h1(-1))},e.disconnect=function(t){var n=this,r=od.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),h6=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");id.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");id.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");id.unobserve(this,t)},e.prototype.disconnect=function(){id.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class p6{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||h6)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Vu=new p6,jr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Jo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}It(()=>{const o=n.$el;if(o===void 0){e1("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){e1("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Vu.registerHandler(o.nextElementSibling,r),t=!0)}),Bt(()=>{t&&Vu.unregisterHandler(n.$el.nextElementSibling)})},render(){return db(this.$slots,"default")}});let ad;function v6(){return ad===void 0&&("matchMedia"in window?ad=window.matchMedia("(pointer:coarse)").matches:ad=!1),ad}let mp;function v1(){return mp===void 0&&(mp="chrome"in window?window.devicePixelRatio:1),mp}const g6=So(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[So("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[So("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),qo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Vi();g6.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:hh,ssr:t}),It(()=>{const{defaultScrollIndex:D,defaultScrollKey:z}=e;D!=null?v({index:D}):z!=null&&v({key:z})});let n=!1,r=!1;lb(()=>{if(n=!1,!r){r=!0;return}v({top:f.value,left:d})}),lc(()=>{n=!0,r||(r=!0)});const o=P(()=>{const D=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{D.set(A[z],L)}),D}),i=F(null),a=F(void 0),l=new Map,s=P(()=>{const{items:D,itemSize:z,keyField:A}=e,L=new LB(D.length,z);return D.forEach((j,E)=>{const W=j[A],K=l.get(W);K!==void 0&&L.add(E,K)}),L}),c=F(0);let d=0;const f=F(0),h=lt(()=>Math.max(s.value.getBound(f.value-hn(e.paddingTop))-1,0)),p=P(()=>{const{value:D}=a;if(D===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(D/A+1),z.length-1),E=[];for(let W=L;W<=j;++W)E.push(z[W]);return E}),v=(D,z)=>{if(typeof D=="number"){y(D,z,"auto");return}const{left:A,top:L,index:j,key:E,position:W,behavior:K,debounce:Q=!0}=D;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)m(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&m(V,K,Q)}else W==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):W==="top"&&y(0,0,K)};let b,g=null;function m(D,z,A){const{value:L}=s,j=L.sum(D)+hn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=D,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{b=void 0,g=null},16);const{scrollTop:E,offsetHeight:W}=i.value;if(j>E){const K=L.get(D);j+K<=E+W||i.value.scrollTo({left:0,top:j+K-W,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(D,z,A){i.value.scrollTo({left:D,top:z,behavior:A})}function C(D,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,W=o.value.get(D),K=E.get(W),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(D):l.set(D,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(W,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(W);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Wee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!v6();let w=!1;function _(D){var z;(z=e.onScroll)===null||z===void 0||z.call(e,D),(!x||!w)&&$()}function k(D){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,D),x){const A=i.value;if(A!=null){if(D.deltaX===0&&(A.scrollTop===0&&D.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&D.deltaY>=0))return;D.preventDefault(),A.scrollTop+=D.deltaY/v1(),A.scrollLeft+=D.deltaX/v1(),$(),w=!0,Ma(()=>{w=!1})}}}function T(D){if(n||R(D.target)||D.contentRect.height===a.value)return;a.value=D.contentRect.height;const{onResize:z}=e;z!==void 0&&z(D)}function $(){const{value:D}=i;D!=null&&(f.value=D.scrollTop,d=D.scrollLeft)}function R(D){let z=D;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:D}=e,z=yn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:D?"":z,minHeight:D?z:"",paddingTop:yn(e.paddingTop),paddingBottom:yn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${yn(s.value.sum(h.value))})`})),viewportItems:p,listElRef:i,itemsElRef:F(null),scrollTo:v,handleListResize:T,handleListScroll:_,handleListWheel:k,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(jr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Gn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(jr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),m6=So(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[So("&::-webkit-scrollbar",{width:0,height:0})]),b6=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=F(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let _=y;_>=0;--_){const k=g-1-_;w!==void 0?w(k):c.textContent=`${k}`;const T=c.offsetWidth;if(v-=h[_],v+T<=f||_===0){b=!0,y=_-1,p&&(y===-1?(p.style.maxWidth=`${f-T}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");break}}}}const{onUpdateOverflow:m}=e;b?m!==void 0&&m(!0):(m!==void 0&&m(!1),c.setAttribute(ta,""))}const i=Vi();return y6.mount({id:"vueuc/overflow",head:!0,anchorMetaName:hh,ssr:i}),It(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return Rt(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[db(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pR(e){return e instanceof HTMLElement}function vR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(pR(n)&&(mR(n)||gR(n)))return!0}return!1}function mR(e){if(!x6(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function x6(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ts=[];const Hb=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Tr(),n=F(null),r=F(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ts[ts.length-1]===t}function s(g){var m;g.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,g))}It(()=>{it(()=>e.active,g=>{g?(f(),_t("keydown",document,s)):(Ct("keydown",document,s),o&&h())},{immediate:!0})}),Bt(()=>{Ct("keydown",document,s),o&&h()});function c(g){if(!i&&l()){const m=d();if(m===null||m.contains(vr(g)))return;p("first")}}function d(){const g=n.value;if(g===null)return null;let m=g;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var g;if(!e.disabled){if(ts.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?p("first"):(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),ts=ts.filter(y=>y!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(g){if(!!l()&&e.active){const m=n.value,y=r.value;if(m!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const x=g==="first"?vR(C):gR(C);i=!1,x||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function v(g){if(i)return;const m=d();m!==null&&(g.relatedTarget!==null&&m.contains(g.relatedTarget)?p("last"):p("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?p("last"):p("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:v,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u(Ot,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ph(e,t){t&&(It(()=>{const{value:n}=e;n&&Vu.registerHandler(n,t)}),Bt(()=>{const{value:n}=e;n&&Vu.unregisterHandler(n)}))}let ll=0,m1="",b1="",y1="",x1="";const Iv=F("0px");function bR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=m1,t.style.overflow=b1,t.style.overflowX=y1,t.style.overflowY=x1,Iv.value="0px"};It(()=>{n=it(e,i=>{if(i){if(!ll){const a=window.innerWidth-t.offsetWidth;a>0&&(m1=t.style.marginRight,t.style.marginRight=`${a}px`,Iv.value=`${a}px`),b1=t.style.overflow,y1=t.style.overflowX,x1=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,ll++}else ll--,ll||o(),r=!1},{immediate:!0})}),Bt(()=>{n==null||n(),r&&(ll--,ll||o(),r=!1)})}const jb=F(!1),w1=()=>{jb.value=!0},C1=()=>{jb.value=!1};let ns=0;const yR=()=>(lr&&(Qo(()=>{ns||(window.addEventListener("compositionstart",w1),window.addEventListener("compositionend",C1)),ns++}),Bt(()=>{ns<=1?(window.removeEventListener("compositionstart",w1),window.removeEventListener("compositionend",C1),ns=0):ns--})),jb);function Vb(e){const t={isDeactivated:!1};let n=!1;return lb(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),lc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function S1(e){return e.nodeName==="#document"}const Wu="n-form-item";function Sn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Wu,null);ot(Wu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Bt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var w6=typeof global=="object"&&global&&global.Object===Object&&global;const xR=w6;var C6=typeof self=="object"&&self&&self.Object===Object&&self,S6=xR||C6||Function("return this")();const Gr=S6;var k6=Gr.Symbol;const Fi=k6;var wR=Object.prototype,_6=wR.hasOwnProperty,R6=wR.toString,rs=Fi?Fi.toStringTag:void 0;function P6(e){var t=_6.call(e,rs),n=e[rs];try{e[rs]=void 0;var r=!0}catch{}var o=R6.call(e);return r&&(t?e[rs]=n:delete e[rs]),o}var $6=Object.prototype,T6=$6.toString;function O6(e){return T6.call(e)}var z6="[object Null]",M6="[object Undefined]",k1=Fi?Fi.toStringTag:void 0;function Wa(e){return e==null?e===void 0?M6:z6:k1&&k1 in Object(e)?P6(e):O6(e)}function Ai(e){return e!=null&&typeof e=="object"}var D6="[object Symbol]";function vh(e){return typeof e=="symbol"||Ai(e)&&Wa(e)==D6}function CR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=vE)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yE(e){return function(){return e}}var xE=function(){try{var e=Ka(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ku=xE;var wE=Ku?function(e,t){return Ku(e,"toString",{configurable:!0,enumerable:!1,value:yE(t),writable:!0})}:Wb;const CE=wE;var SE=bE(CE);const kE=SE;var _E=9007199254740991,RE=/^(?:0|[1-9]\d*)$/;function Kb(e,t){var n=typeof e;return t=t==null?_E:t,!!t&&(n=="number"||n!="symbol"&&RE.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=DE}function Nl(e){return e!=null&&Yb(e.length)&&!Ub(e)}function IE(e,t,n){if(!Wr(n))return!1;var r=typeof t;return(r=="number"?Nl(n)&&Kb(t,n.length):r=="string"&&t in n)?bc(n[t],e):!1}function FE(e){return ME(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&IE(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function QL(e,t){var n=this.__data__,r=gh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ti(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:C8(e,t,n)}var k8="\\ud800-\\udfff",_8="\\u0300-\\u036f",R8="\\ufe20-\\ufe2f",P8="\\u20d0-\\u20ff",$8=_8+R8+P8,T8="\\ufe0e\\ufe0f",O8="\\u200d",z8=RegExp("["+O8+k8+$8+T8+"]");function IR(e){return z8.test(e)}function M8(e){return e.split("")}var FR="\\ud800-\\udfff",D8="\\u0300-\\u036f",I8="\\ufe20-\\ufe2f",F8="\\u20d0-\\u20ff",A8=D8+I8+F8,B8="\\ufe0e\\ufe0f",E8="["+FR+"]",Av="["+A8+"]",Bv="\\ud83c[\\udffb-\\udfff]",L8="(?:"+Av+"|"+Bv+")",AR="[^"+FR+"]",BR="(?:\\ud83c[\\udde6-\\uddff]){2}",ER="[\\ud800-\\udbff][\\udc00-\\udfff]",N8="\\u200d",LR=L8+"?",NR="["+B8+"]?",H8="(?:"+N8+"(?:"+[AR,BR,ER].join("|")+")"+NR+LR+")*",j8=NR+LR+H8,V8="(?:"+[AR+Av+"?",Av,BR,ER,E8].join("|")+")",W8=RegExp(Bv+"(?="+Bv+")|"+V8+j8,"g");function U8(e){return e.match(W8)||[]}function K8(e){return IR(e)?U8(e):M8(e)}function q8(e){return function(t){t=Ba(t);var n=IR(t)?K8(t):void 0,r=n?n[0]:t.charAt(0),o=n?S8(n,1).join(""):t.slice(1);return r[e]()+o}}var Y8=q8("toUpperCase");const HR=Y8;function G8(e){return HR(Ba(e).toLowerCase())}function X8(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&SH?new Xu:void 0;for(i.set(e,t),i.set(t,e);++f=t||k<0||f&&T>=i}function m(){var _=wp();if(g(_))return y(_);l=setTimeout(m,b(_))}function y(_){return l=void 0,h&&r?p(_):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(wp())}function w(){var _=wp(),k=g(_);if(r=arguments,o=this,s=_,k){if(l===void 0)return v(s);if(f)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),a}return w.cancel=C,w.flush=x,w}function Hv(e,t,n){(n!==void 0&&!bc(e[t],n)||n===void 0&&!(t in e))&&qb(e,t,n)}function y7(e){return Ai(e)&&Nl(e)}function jv(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function x7(e){return OE(e,TR(e))}function w7(e,t,n,r,o,i,a){var l=jv(e,n),s=jv(t,n),c=a.get(s);if(c){Hv(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Vr(s),p=!h&&Yu(s),v=!h&&!p&&Xb(s);d=s,h||p||v?Vr(l)?d=l:y7(l)?d=pE(l):p?(f=!1,d=XN(s,!0)):v?(f=!1,d=vH(s,!0)):d=[]:w8(s)||qu(s)?(d=l,qu(l)?d=x7(l):(!Wr(l)||Ub(l))&&(d=gH(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Hv(e,n,d)}function l2(e,t,n,r,o){e!==t&&a2(t,function(i,a){if(o||(o=new Ro),Wr(i))w7(e,t,a,n,l2,r,o);else{var l=r?r(jv(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Hv(e,a,l)}},TR)}function C7(e,t){var n=-1,r=Nl(e)?Array(e.length):[];return h7(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function S7(e,t){var n=Vr(e)?CR:C7;return n(e,l7(t))}var k7=t2(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const s2=k7;var _7=FE(function(e,t,n){l2(e,t,n)});const bl=_7;var R7=jN("round");const P7=R7;var $7="Expected a function";function Os(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError($7);return Wr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),b7(e,t,{leading:r,maxWait:t,trailing:o})}const mr={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:T7,fontFamily:O7,lineHeight:z7}=mr,c2=O("body",` - margin: 0; - font-size: ${T7}; - font-family: ${O7}; - line-height: ${z7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Ur="n-config-provider",Ol="naive-ui-style";function Se(e,t,n,r,o,i){const a=Vi(),l=Le(Ur,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Ol,ssr:a}),l!=null&&l.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:a})};a?c():Qo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:p={},builtinThemeOverrides:v={}}=o,{common:b,peers:g}=p,{common:m=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:k,peers:T={}}=_,$=bl({},d||y||m||r.common,w,k,b),R=bl((c=f||C||r.self)===null||c===void 0?void 0:c($),v,_,p);return{common:$,self:R,peers:bl({},r.peers,x,h),peerOverrides:bl({},v.peers,T,g)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const d2="n";function je(e={},t={defaultBordered:!0}){const n=Le(Ur,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||d2),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const M7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},D7=M7;function Cp(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function yt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function wt(e){yt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Bd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Jt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var I7={};function qa(){return I7}function Ea(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=wt(e),p=h.getUTCDay(),v=(p1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?A7(l,function(f){return f.test(a)}):F7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function F7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function A7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var E7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L7=function(t,n,r){var o,i=E7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const N7=L7;var H7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},j7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W7={date:Cp({formats:H7,defaultWidth:"full"}),time:Cp({formats:j7,defaultWidth:"full"}),dateTime:Cp({formats:V7,defaultWidth:"full"})};const U7=W7;var K7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q7=function(t,n,r,o){return K7[t]};const Y7=q7;var G7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},X7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Z7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Q7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},e9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},t9=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n9={ordinalNumber:t9,era:os({values:G7,defaultWidth:"wide"}),quarter:os({values:X7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:os({values:Z7,defaultWidth:"wide"}),day:os({values:Q7,defaultWidth:"wide"}),dayPeriod:os({values:J7,defaultWidth:"wide",formattingValues:e9,defaultFormattingWidth:"wide"})};const r9=n9;var o9=/^(\d+)(th|st|nd|rd)?/i,i9=/\d+/i,a9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l9={any:[/^b/i,/^(a|c)/i]},s9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c9={any:[/1/i,/2/i,/3/i,/4/i]},d9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g9={ordinalNumber:B7({matchPattern:o9,parsePattern:i9,valueCallback:function(t){return parseInt(t,10)}}),era:is({matchPatterns:a9,defaultMatchWidth:"wide",parsePatterns:l9,defaultParseWidth:"any"}),quarter:is({matchPatterns:s9,defaultMatchWidth:"wide",parsePatterns:c9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:is({matchPatterns:d9,defaultMatchWidth:"wide",parsePatterns:u9,defaultParseWidth:"any"}),day:is({matchPatterns:f9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:p9,defaultMatchWidth:"any",parsePatterns:v9,defaultParseWidth:"any"})};const m9=g9;var b9={code:"en-US",formatDistance:N7,formatLong:U7,formatRelative:Y7,localize:r9,match:m9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const yh=b9,y9={name:"en-US",locale:yh},x9=y9;function sd(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Fn(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function w9(e,t){yt(2,arguments);var n=wt(e).getTime(),r=Jt(t);return new Date(n+r)}function Zu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function zl(e){yt(1,arguments);var t=wt(e);return t.setHours(0,0,0,0),t}function C9(e,t){yt(2,arguments);var n=Jt(t),r=n*3;return Fn(e,r)}function Vv(e,t){yt(2,arguments);var n=Jt(t);return Fn(e,n*12)}function S9(e,t){yt(2,arguments);var n=wt(e),r=wt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var k9=6e4,_9=36e5,R9=1e3;function P9(e,t){yt(2,arguments);var n=zl(e),r=zl(t);return n.getTime()===r.getTime()}function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function $9(e){return yt(1,arguments),e instanceof Date||Ed(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Er(e){if(yt(1,arguments),!$9(e)&&typeof e!="number")return!1;var t=wt(e);return!isNaN(Number(t))}function T9(e){yt(1,arguments);var t=wt(e),n=Math.floor(t.getMonth()/3)+1;return n}function O9(e){yt(1,arguments);var t=wt(e);return t.setSeconds(0,0),t}function Js(e){yt(1,arguments);var t=wt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Fr(e){yt(1,arguments);var t=wt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function t0(e){yt(1,arguments);var t=wt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function u2(e,t){yt(2,arguments);var n=Jt(t);return w9(e,-n)}var z9=864e5;function M9(e){yt(1,arguments);var t=wt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/z9)+1}function Ml(e){yt(1,arguments);var t=1,n=wt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function D9(e){yt(1,arguments);var t=f2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ml(n);return r}var I9=6048e5;function h2(e){yt(1,arguments);var t=wt(e),n=Ml(t).getTime()-D9(t).getTime();return Math.round(n/I9)+1}function n0(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=wt(e),f=d.getUTCFullYear(),h=qa(),p=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,p),v.setUTCHours(0,0,0,0);var b=Ea(v,t),g=new Date(0);g.setUTCFullYear(f,0,p),g.setUTCHours(0,0,0,0);var m=Ea(g,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=m.getTime()?f:f-1}function F9(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=n0(e,t),p=new Date(0);p.setUTCFullYear(h,0,f),p.setUTCHours(0,0,0,0);var v=Ea(p,t);return v}var A9=6048e5;function p2(e,t){yt(1,arguments);var n=wt(e),r=Ea(n,t).getTime()-F9(n,t).getTime();return Math.round(r/A9)+1}function tn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tn(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tn(r+1,2)},d:function(t,n){return tn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tn(t.getUTCHours(),n.length)},m:function(t,n){return tn(t.getUTCMinutes(),n.length)},s:function(t,n){return tn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return tn(i,n.length)}};const fi=B9;var sl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E9={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return fi.y(t,n)},Y:function(t,n,r,o){var i=n0(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return tn(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):tn(a,n.length)},R:function(t,n){var r=f2(t);return tn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tn(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return tn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return tn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return fi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return tn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=p2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tn(i,n.length)},I:function(t,n,r){var o=h2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):tn(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):fi.d(t,n)},D:function(t,n,r){var o=M9(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):tn(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return tn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return tn(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return tn(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=sl.noon:o===0?i=sl.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=sl.evening:o>=12?i=sl.afternoon:o>=4?i=sl.morning:i=sl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return fi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fi.s(t,n)},S:function(t,n){return fi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return ow(a);case"XXXX":case"XX":return da(a);case"XXXXX":case"XXX":default:return da(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return ow(a);case"xxxx":case"xx":return da(a);case"xxxxx":case"xxx":default:return da(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+rw(a,":");case"OOOO":default:return"GMT"+da(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+rw(a,":");case"zzzz":default:return"GMT"+da(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return tn(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return tn(a,n.length)}};function rw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+tn(i,2)}function ow(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tn(Math.abs(e)/60,2)}return da(e,t)}function da(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=tn(Math.floor(o/60),2),a=tn(o%60,2);return r+i+n+a}const L9=E9;var iw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},v2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},N9=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return iw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",iw(o,n)).replace("{{time}}",v2(i,n))},H9={p:v2,P:N9};const Wv=H9;var j9=["D","DD"],V9=["YY","YYYY"];function g2(e){return j9.indexOf(e)!==-1}function m2(e){return V9.indexOf(e)!==-1}function Qu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K9=/^'([^]*?)'?$/,q9=/''/g,Y9=/[a-zA-Z]/;function on(e,t,n){var r,o,i,a,l,s,c,d,f,h,p,v,b,g,m,y,C,x;yt(2,arguments);var w=String(t),_=qa(),k=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:yh,T=Jt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Jt((p=(v=(b=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(m=n.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:_.weekStartsOn)!==null&&v!==void 0?v:(C=_.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var R=wt(e);if(!Er(R))throw new RangeError("Invalid time value");var D=Zu(R),z=u2(R,D),A={firstWeekContainsDate:T,weekStartsOn:$,locale:k,_originalDate:R},L=w.match(U9).map(function(j){var E=j[0];if(E==="p"||E==="P"){var W=Wv[E];return W(j,k.formatLong)}return j}).join("").match(W9).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return G9(j);var W=L9[E];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&m2(j)&&Qu(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&g2(j)&&Qu(j,t,String(e)),W(z,j,k.localize,A);if(E.match(Y9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function G9(e){var t=e.match(K9);return t?t[1].replace(q9,"'"):e}function r0(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function X9(e){return r0({},e)}var aw=1e3*60,Ju=60*24,lw=Ju*30,sw=Ju*365;function Z9(e,t,n){var r,o,i;yt(2,arguments);var a=qa(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:yh;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=S9(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=r0(X9(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=wt(t),f=wt(e)):(d=wt(e),f=wt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),p;if(h==="floor")p=Math.floor;else if(h==="ceil")p=Math.ceil;else if(h==="round")p=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=f.getTime()-d.getTime(),b=v/aw,g=Zu(f)-Zu(d),m=(v-g)/aw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function o0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hj=function(e){cj(n,e);var t=dj(n);function n(){var r;lj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function S2(e){return e%400===0||e%4===0&&e%100!==0}function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xj=function(e){gj(n,e);var t=mj(n);function n(){var r;pj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=C2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jd=function(n){return typeof n}:jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jd(e)}function wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function mw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=function(e){Sj(n,e);var t=kj(n);function n(){var r;wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=n0(o,l);if(a.isTwoDigitYear){var c=C2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}}]),n}(Zt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function yw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ij=function(e){Oj(n,e);var t=zj(n);function n(){var r;$j(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function ww(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hj=function(e){Bj(n,e);var t=Ej(n);function n(){var r;Fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function Sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj=function(e){Wj(n,e);var t=Uj(n);function n(){var r;jj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function _w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tV=function(e){Zj(n,e);var t=Qj(n);function n(){var r;Gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sV=function(e){oV(n,e);var t=iV(n);function n(){var r;nV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Yd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yd=function(n){return typeof n}:Yd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yd(e)}function cV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function Tw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vV=function(e){uV(n,e);var t=fV(n);function n(){var r;cV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function gV(e,t,n){yt(2,arguments);var r=wt(e),o=Jt(t),i=p2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gd=function(n){return typeof n}:Gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gd(e)}function mV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ow(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SV=function(e){yV(n,e);var t=xV(n);function n(){var r;mV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Ea(gV(o,a,l),l)}}]),n}(Zt);function kV(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=h2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function Dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zV=function(e){PV(n,e);var t=$V(n);function n(){var r;_V(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Ml(kV(o,a))}}]),n}(Zt);function Zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zd=function(n){return typeof n}:Zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zd(e)}function MV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EV=[31,28,31,30,31,30,31,31,30,31,30,31],LV=[31,29,31,30,31,30,31,31,30,31,30,31],NV=function(e){IV(n,e);var t=FV(n);function n(){var r;MV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=LV[s]:i>=1&&i<=EV[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function HV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function kp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qV=function(e){VV(n,e);var t=WV(n);function n(){var r;HV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function l0(e,t,n){var r,o,i,a,l,s,c,d;yt(2,arguments);var f=qa(),h=Jt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wt(e),v=Jt(t),b=p.getUTCDay(),g=v%7,m=(g+7)%7,y=(m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function Bw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eW=function(e){XV(n,e);var t=ZV(n);function n(){var r;YV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ew(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function Lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lW=function(e){rW(n,e);var t=oW(n);function n(){var r;tW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function sW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pW=function(e){dW(n,e);var t=uW(n);function n(){var r;sW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function vW(e,t){yt(2,arguments);var n=Jt(t);n%7===0&&(n=n-7);var r=1,o=wt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function Vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CW=function(e){bW(n,e);var t=yW(n);function n(){var r;gW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=vW(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function iu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iu=function(n){return typeof n}:iu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iu(e)}function SW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ww(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TW=function(e){_W(n,e);var t=RW(n);function n(){var r;SW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=function(e){MW(n,e);var t=DW(n);function n(){var r;OW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Gw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VW=function(e){LW(n,e);var t=NW(n);function n(){var r;BW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function Zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XW=function(e){KW(n,e);var t=qW(n);function n(){var r;WW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function cu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(n){return typeof n}:cu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cu(e)}function ZW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function Jw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rU=function(e){JW(n,e);var t=eU(n);function n(){var r;ZW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function oU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}function tC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dU=function(e){aU(n,e);var t=lU(n);function n(){var r;oU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function uu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uu=function(n){return typeof n}:uu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uu(e)}function uU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}function rC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e){hU(n,e);var t=pU(n);function n(){var r;uU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Zt);function fu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fu=function(n){return typeof n}:fu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fu(e)}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function iC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=function(e){xU(n,e);var t=wU(n);function n(){var r;bU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Zt);function hu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(n){return typeof n}:hu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hu(e)}function _U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function lC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=function(e){PU(n,e);var t=$U(n);function n(){var r;_U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Zt);function pu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pu=function(n){return typeof n}:pu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pu(e)}function MU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zf(e)}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EU=function(e){IU(n,e);var t=FU(n);function n(){var r;MU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function uC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UU=function(e){HU(n,e);var t=jU(n);function n(){var r;LU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}function hC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QU=function(e){YU(n,e);var t=GU(n);function n(){var r;KU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function vC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iK=function(e){tK(n,e);var t=nK(n);function n(){var r;JU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}function mC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fK=function(e){sK(n,e);var t=cK(n);function n(){var r;aK(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=pK(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function pK(e,t){if(!!e){if(typeof e=="string")return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Jt((v=(b=(g=(m=r==null?void 0:r.weekStartsOn)!==null&&m!==void 0?m:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return _===""?wt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:D,locale:$},A=[new oj],L=k.match(gK).map(function(Oe){var _e=Oe[0];if(_e in Wv){var ve=Wv[_e];return ve(Oe,$.formatLong)}return Oe}).join("").match(vK),j=[],E=bC(L),W;try{var K=function(){var _e=W.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&m2(_e)&&Qu(_e,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&g2(_e)&&Qu(_e,k,e);var ve=_e[0],Me=hK[ve];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var U=j.find(function(ce){return H.includes(ce.token)||ce.token===ve});if(U)throw new RangeError("The format string mustn't contain `".concat(U.fullToken,"` and `").concat(_e,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(_e,"` and any other token at the same time"));j.push({token:ve,fullToken:_e});var Y=Me.run(_,_e,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),_=Y.rest}else{if(ve.match(xK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");if(_e==="''"?_e="'":ve==="'"&&(_e=CK(_e)),_.indexOf(_e)===0)_=_.slice(_e.length);else return{v:new Date(NaN)}}};for(E.s();!(W=E.n()).done;){var Q=K();if(yu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(_.length>0&&yK.test(_))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,_e){return _e-Oe}).filter(function(Oe,_e,ve){return ve.indexOf(Oe)===_e}).map(function(Oe){return A.filter(function(_e){return _e.priority===Oe}).sort(function(_e,ve){return ve.subPriority-_e.subPriority})}).map(function(Oe){return Oe[0]}),re=wt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=u2(re,Zu(re)),ue={},de=bC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],r0(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function CK(e){return e.match(mK)[1].replace(bK,"'")}function SK(e){yt(1,arguments);var t=wt(e);return t.setMinutes(0,0,0),t}function xh(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function k2(e,t){yt(2,arguments);var n=Js(e),r=Js(t);return n.getTime()===r.getTime()}function s0(e){yt(1,arguments);var t=wt(e);return t.setMilliseconds(0),t}function _2(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()}function c0(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=J9(a);return n.setMonth(r,Math.min(i,l)),n}function xu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xu=function(n){return typeof n}:xu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xu(e)}function Kn(e,t){if(yt(2,arguments),xu(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=wt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=c0(n,t.month)),t.date!=null&&n.setDate(Jt(t.date)),t.hours!=null&&n.setHours(Jt(t.hours)),t.minutes!=null&&n.setMinutes(Jt(t.minutes)),t.seconds!=null&&n.setSeconds(Jt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Jt(t.milliseconds)),n)}function na(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setHours(r),n}function _p(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setMinutes(r),n}function kK(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return c0(n,n.getMonth()+i*3)}function Rp(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setSeconds(r),n}function xC(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Cn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Ur,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:D7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:x9}),localeRef:r}}function Xr(e,t,n){if(!t)return;const r=Vi(),o=Le(Ur,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:r})};r?i():Qo(i)}function R2(e,t){const n=Le(Ur,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function et(e,t,n,r){var o;n||Nn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Ur,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=F(""),l=Vi();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+="-"+p),h&&(f+="-"+h);const{themeOverrides:v,builtinThemeOverrides:b}=r;v&&(f+="-"+qs(JSON.stringify(v))),b&&(f+="-"+qs(JSON.stringify(b))),a.value=f,s=()=>{const g=n.value;let m="";for(const y in g)m+=`${y}: ${g[y]};`;O(`.${f}`,m).mount({id:f,ssr:l}),s=void 0}};return At(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function en(e,t,n){if(!t)return;const r=Vi(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{At(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(oB(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Qo(i),o}function _K(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function RK(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const PK=S("affix",[I("affixed",{position:"fixed"},[I("absolute-positioned",{position:"absolute"})])]),wh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},$K=Wn(wh),P2=J({name:"Affix",props:wh,setup(e){const{mergedClsPrefixRef:t}=je(e);Xr("-affix",PK,t);let n=null;const r=F(!1),o=F(!1),i=F(null),a=F(null),l=P(()=>o.value||r.value),s=P(()=>{var g,m;return(m=(g=e.triggerTop)!==null&&g!==void 0?g:e.offsetTop)!==null&&m!==void 0?m:e.top}),c=P(()=>{var g,m;return(m=(g=e.top)!==null&&g!==void 0?g:e.triggerTop)!==null&&m!==void 0?m:e.offsetTop}),d=P(()=>{var g,m;return(m=(g=e.bottom)!==null&&g!==void 0?g:e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom}),f=P(()=>{var g,m;return(m=(g=e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom)!==null&&m!==void 0?m:e.bottom}),h=F(null),p=()=>{const{target:g,listenTo:m}=e;g?n=g():m?n=Ob(m):n=document,n&&(n.addEventListener("scroll",v),v())};function v(){Ma(b)}function b(){const{value:g}=h;if(!n||!g)return;const m=_K(n);if(l.value){mi.value&&(o.value=!1,i.value=null);return}const y=RK(n),C=g.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,_=s.value,k=f.value;_!==void 0&&x<=_?(r.value=!0,a.value=m-(_-x)):(r.value=!1,a.value=null),k!==void 0&&w<=k?(o.value=!0,i.value=m+k-w):(o.value=!1,i.value=null)}return It(()=>{p()}),Bt(()=>{!n||n.removeEventListener("scroll",v)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const g={};return r.value&&s.value!==void 0&&c.value!==void 0&&(g.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(g.bottom=`${d.value}px`),g})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Dl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),$2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),TK=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Un(e,t){return J({name:HR(e),setup(){var n;const r=(n=Le(Ur,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const OK=Un("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Bi=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),wC=Un("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),d0=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),u0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ya=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),T2=Un("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),O2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),zK=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),MK=Un("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),DK=Un("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),IK=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ga=Un("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ei=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Li=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),FK=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Ni=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Hi=Un("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),CC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),z2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),M2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Xa=Un("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),AK=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),BK=Un("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Wi=Un("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),EK=Un("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),D2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),LK=Un("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NK=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),HK=Un("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),jK=Un("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),VK=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),WK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),UK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),KK=Un("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),qK=Un("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),YK=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Do=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Hn();return()=>u(Ft,{name:"icon-switch-transition",appear:n.value},t)}}),Io=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?ah:Ft;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),GK=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),dt=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Xr("-base-icon",GK,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),XK=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[I("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),mt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),I("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),I("round",[O("&::before",` - border-radius: 50%; - `)])]),ri=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Xr("-base-close",XK,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(dt,{clsPrefix:t},{default:()=>u(T2,null)}))}}}),Fo=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:ZK}=mr;function On({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${ZK} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const QK=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[On()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),JK={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},so=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},JK),setup(e){Xr("-base-loading",QK,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(Do,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function SC(e){return Array.isArray(e)?e:[e]}const em={STOP:"STOP"};function I2(e,t){const n=t(e);e.children!==void 0&&n!==em.STOP&&e.children.forEach(r=>I2(r,t))}function eq(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function tq(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function nq(e){return e.children}function rq(e){return e.key}function oq(){return!1}function iq(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function aq(e){return e.disabled===!0}function lq(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Pp(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function $p(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function sq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function cq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function dq(e){return(e==null?void 0:e.type)==="group"}function F2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class A2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function uq(e,t,n,r){return Af(t.concat(e),n,r,!1)}function fq(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function hq(e,t,n,r){const o=Af(t,n,r,!1),i=Af(e,n,r,!0),a=fq(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function Tp(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:sq(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:cq(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=hq(o,n,t,c):r!==void 0?f=uq(r,n,t,c):f=Af(n,t,c,!1);const h=s==="parent",p=s==="child"||l,v=f,b=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let m=g;m>=0;m-=1){const y=m===0,C=d.get(m);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:_}=x;if(p&&_&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&v.has(R.key)&&v.delete(R.key)}),x.disabled||!_)continue;let k=!0,T=!1,$=!0;for(const R of x.children){const D=R.key;if(!R.disabled){if($&&($=!1),v.has(D))T=!0;else if(b.has(D)){T=!0,k=!1;break}else if(k=!1,T)break}}k&&!$?(h&&x.children.forEach(R=>{!R.disabled&&v.has(R.key)&&v.delete(R.key)}),v.add(w)):T&&b.add(w),y&&p&&v.has(w)&&v.delete(w)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(b)}}function Af(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&I2(c,d=>{if(d.disabled)return em.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),lq(d.rawNode,i))){if(r)return em.STOP;if(!n)throw new A2}})}),l}function pq(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function vq(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function gq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function kC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?mq:gq,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=f0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=bq(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function mq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function bq(e){return e.parent}function f0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=f0(c,t);if(d!==null)return d}else return c}}return null}const yq={getChild(){return this.ignored?null:f0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return kC(this,"next",e)},getPrev(e={}){return kC(this,"prev",e)}};function tm(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function xq(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function B2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=B2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function co(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=aq,getIgnored:a=oq,getIsGroup:l=dq,getKey:s=rq}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:nq,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return tq(this.rawNode,d)},get shallowLoaded(){return iq(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return xq(this,x)}},yq),h=B2(e,r,o,f,d);function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const _=v(x);return _?_.getPrev(w):null}function g(x,w){const _=v(x);return _?_.getNext(w):null}function m(x){const w=v(x);return w?w.getParent():null}function y(x){const w=v(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return tm(h,x)},getNode:p,getPrev:b,getNext:g,getParent:m,getChild:y,getFirstAvailableNode(){return vq(h)},getPath(x,w={}){return pq(x,w,C)},getCheckedKeys(x,w={}){const{cascade:_=!0,leafOnly:k=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return Tp({checkedKeys:Pp(x),indeterminateKeys:$p(x),cascade:_,leafOnly:k,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToCheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToUncheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return eq(h,x)}};return C}const ut={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},wq=Tn(ut.neutralBase),E2=Tn(ut.neutralInvertBase),Cq="rgba("+E2.slice(0,3).join(", ")+", ";function Vt(e){return Cq+String(e)+")"}function Sq(e){const t=Array.from(E2);return t[3]=Number(e),pt(wq,t)}const kq=Object.assign(Object.assign({name:"common"},mr),{baseColor:ut.neutralBase,primaryColor:ut.primaryDefault,primaryColorHover:ut.primaryHover,primaryColorPressed:ut.primaryActive,primaryColorSuppl:ut.primarySuppl,infoColor:ut.infoDefault,infoColorHover:ut.infoHover,infoColorPressed:ut.infoActive,infoColorSuppl:ut.infoSuppl,successColor:ut.successDefault,successColorHover:ut.successHover,successColorPressed:ut.successActive,successColorSuppl:ut.successSuppl,warningColor:ut.warningDefault,warningColorHover:ut.warningHover,warningColorPressed:ut.warningActive,warningColorSuppl:ut.warningSuppl,errorColor:ut.errorDefault,errorColorHover:ut.errorHover,errorColorPressed:ut.errorActive,errorColorSuppl:ut.errorSuppl,textColorBase:ut.neutralTextBase,textColor1:Vt(ut.alpha1),textColor2:Vt(ut.alpha2),textColor3:Vt(ut.alpha3),textColorDisabled:Vt(ut.alpha4),placeholderColor:Vt(ut.alpha4),placeholderColorDisabled:Vt(ut.alpha5),iconColor:Vt(ut.alpha4),iconColorDisabled:Vt(ut.alpha5),iconColorHover:Vt(Number(ut.alpha4)*1.25),iconColorPressed:Vt(Number(ut.alpha4)*.8),opacity1:ut.alpha1,opacity2:ut.alpha2,opacity3:ut.alpha3,opacity4:ut.alpha4,opacity5:ut.alpha5,dividerColor:Vt(ut.alphaDivider),borderColor:Vt(ut.alphaBorder),closeIconColorHover:Vt(Number(ut.alphaClose)),closeIconColor:Vt(Number(ut.alphaClose)),closeIconColorPressed:Vt(Number(ut.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Vt(ut.alpha4),clearColorHover:kn(Vt(ut.alpha4),{alpha:1.25}),clearColorPressed:kn(Vt(ut.alpha4),{alpha:.8}),scrollbarColor:Vt(ut.alphaScrollbar),scrollbarColorHover:Vt(ut.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Vt(ut.alphaProgressRail),railColor:Vt(ut.alphaRail),popoverColor:ut.neutralPopover,tableColor:ut.neutralCard,cardColor:ut.neutralCard,modalColor:ut.neutralModal,bodyColor:ut.neutralBody,tagColor:Sq(ut.alphaTag),avatarColor:Vt(ut.alphaAvatar),invertedColor:ut.neutralBase,inputColor:Vt(ut.alphaInput),codeColor:Vt(ut.alphaCode),tabColor:Vt(ut.alphaTab),actionColor:Vt(ut.alphaAction),tableHeaderColor:Vt(ut.alphaAction),hoverColor:Vt(ut.alphaPending),tableColorHover:Vt(ut.alphaTablePending),tableColorStriped:Vt(ut.alphaTableStriped),pressedColor:Vt(ut.alphaPressed),opacityDisabled:ut.alphaDisabled,inputColorDisabled:Vt(ut.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),tt=kq,xt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},_q=Tn(xt.neutralBase),L2=Tn(xt.neutralInvertBase),Rq="rgba("+L2.slice(0,3).join(", ")+", ";function _C(e){return Rq+String(e)+")"}function er(e){const t=Array.from(L2);return t[3]=Number(e),pt(_q,t)}const Pq=Object.assign(Object.assign({name:"common"},mr),{baseColor:xt.neutralBase,primaryColor:xt.primaryDefault,primaryColorHover:xt.primaryHover,primaryColorPressed:xt.primaryActive,primaryColorSuppl:xt.primarySuppl,infoColor:xt.infoDefault,infoColorHover:xt.infoHover,infoColorPressed:xt.infoActive,infoColorSuppl:xt.infoSuppl,successColor:xt.successDefault,successColorHover:xt.successHover,successColorPressed:xt.successActive,successColorSuppl:xt.successSuppl,warningColor:xt.warningDefault,warningColorHover:xt.warningHover,warningColorPressed:xt.warningActive,warningColorSuppl:xt.warningSuppl,errorColor:xt.errorDefault,errorColorHover:xt.errorHover,errorColorPressed:xt.errorActive,errorColorSuppl:xt.errorSuppl,textColorBase:xt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:er(xt.alpha4),placeholderColor:er(xt.alpha4),placeholderColorDisabled:er(xt.alpha5),iconColor:er(xt.alpha4),iconColorHover:kn(er(xt.alpha4),{lightness:.75}),iconColorPressed:kn(er(xt.alpha4),{lightness:.9}),iconColorDisabled:er(xt.alpha5),opacity1:xt.alpha1,opacity2:xt.alpha2,opacity3:xt.alpha3,opacity4:xt.alpha4,opacity5:xt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:er(Number(xt.alphaClose)),closeIconColorHover:er(Number(xt.alphaClose)),closeIconColorPressed:er(Number(xt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:er(xt.alpha4),clearColorHover:kn(er(xt.alpha4),{lightness:.75}),clearColorPressed:kn(er(xt.alpha4),{lightness:.9}),scrollbarColor:_C(xt.alphaScrollbar),scrollbarColorHover:_C(xt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:er(xt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:xt.neutralPopover,tableColor:xt.neutralCard,cardColor:xt.neutralCard,modalColor:xt.neutralModal,bodyColor:xt.neutralBody,tagColor:"#eee",avatarColor:er(xt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:er(xt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:xt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),nt=Pq,$q={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},N2=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},$q),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},Tq={name:"Empty",common:nt,self:N2},oi=Tq,Oq={name:"Empty",common:tt,self:N2},Za=Oq,zq=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),H2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ui=J({name:"Empty",props:H2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Empty","-empty",zq,oi,e,t),{localeRef:o}=Cn("Empty"),i=Le(Ur,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(IK,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:p,textColor:v,iconColor:b,extraTextColor:g}}=r.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":v,"--n-icon-color":b,"--n-extra-text-color":g}}),c=n?et("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(dt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),j2=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},Mq={name:"Scrollbar",common:nt,self:j2},br=Mq,Dq={name:"Scrollbar",common:tt,self:j2},yr=Dq,{cubicBezierEaseInOut:RC}=mr;function Yo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=RC,leaveCubicBezier:o=RC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Iq=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[I("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),I("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),I("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Yo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Fq=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),V2=J({name:"Scrollbar",props:Fq,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Scrollbar",r,t),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(null),b=F(null),g=F(0),m=F(0),y=F(!1),C=F(!1);let x=!1,w=!1,_,k,T=0,$=0,R=0,D=0;const z=SB(),A=P(()=>{const{value:X}=h,{value:q}=d,{value:ke}=v;return X===null||q===null||ke===null?0:Math.min(X,ke*X/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:X}=p,{value:q}=f,{value:ke}=b;return X===null||q===null||ke===null?0:ke*X/q+e.size*1.5}),E=P(()=>`${j.value}px`),W=P(()=>{const{value:X}=h,{value:q}=g,{value:ke}=d,{value:Be}=v;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${W.value}px`),Q=P(()=>{const{value:X}=p,{value:q}=m,{value:ke}=f,{value:Be}=b;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:X}=h,{value:q}=d;return X!==null&&q!==null&&q>X}),ee=P(()=>{const{value:X}=p,{value:q}=f;return X!==null&&q!==null&&q>X}),ue=P(()=>{const{trigger:X}=e;return X==="none"||y.value}),de=P(()=>{const{trigger:X}=e;return X==="none"||C.value}),Ce=P(()=>{const{container:X}=e;return X?X():a.value}),we=P(()=>{const{content:X}=e;return X?X():l.value}),me=Vb(()=>{e.container||ve({top:g.value,left:m.value})}),Oe=()=>{me.isDeactivated||ge()},_e=X=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(X),ge()},ve=(X,q)=>{if(!e.scrollable)return;if(typeof X=="number"){H(q!=null?q:0,X,0,!1,"auto");return}const{left:ke,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=X;(ke!==void 0||Be!==void 0)&&H(ke!=null?ke:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(X,q)=>{if(!e.scrollable)return;const{value:ke}=Ce;!ke||(typeof X=="object"?ke.scrollBy(X):ke.scrollBy(X,q||0))};function H(X,q,ke,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+ke<=ze+ie||ae.scrollTo({left:X,top:q+ke-ie,behavior:Ee});return}}ae.scrollTo({left:X,top:q,behavior:Ee})}}function U(){N(),te(),ge()}function Y(){ce()}function ce(){G(),B()}function G(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){_!==void 0&&window.clearTimeout(_),y.value=!0}function te(){k!==void 0&&window.clearTimeout(k),C.value=!0}function pe(X){const{onScroll:q}=e;q&&q(X),Z()}function Z(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:X}=we;X&&(d.value=X.offsetHeight,f.value=X.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,p.value=q.offsetWidth);const{value:ke}=c,{value:Be}=s;ke&&(b.value=ke.offsetWidth),Be&&(v.value=Be.offsetHeight)}function ne(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1),h.value=X.offsetHeight,p.value=X.offsetWidth,d.value=X.scrollHeight,f.value=X.scrollWidth);const{value:q}=c,{value:ke}=s;q&&(b.value=q.offsetWidth),ke&&(v.value=ke.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(X){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(vr(X)))}function Ae(X){X.preventDefault(),X.stopPropagation(),w=!0,_t("mousemove",window,qe,!0),_t("mouseup",window,Ye,!0),$=m.value,R=o!=null&&o.value?window.innerWidth-X.clientX:X.clientX}function qe(X){if(!w)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=p,{value:ke}=f,{value:Be}=j;if(q===null||ke===null)return;const ae=(o!=null&&o.value?window.innerWidth-X.clientX-R:X.clientX-R)*(ke-q)/(q-Be),ze=ke-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function Ye(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,qe,!0),Ct("mouseup",window,Ye,!0),w=!1,ge(),Pe(X)&&ce()}function ft(X){X.preventDefault(),X.stopPropagation(),x=!0,_t("mousemove",window,ht,!0),_t("mouseup",window,vt,!0),T=g.value,D=X.clientY}function ht(X){if(!x)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=h,{value:ke}=d,{value:Be}=A;if(q===null||ke===null)return;const ae=(X.clientY-D)*(ke-q)/(q-Be),ze=ke-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function vt(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0),x=!1,ge(),Pe(X)&&ce()}At(()=>{const{value:X}=ee,{value:q}=re,{value:ke}=t,{value:Be}=c,{value:Ee}=s;Be&&(X?Be.classList.remove(`${ke}-scrollbar-rail--disabled`):Be.classList.add(`${ke}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${ke}-scrollbar-rail--disabled`):Ee.classList.add(`${ke}-scrollbar-rail--disabled`))}),It(()=>{e.container||ge()}),Bt(()=>{_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0)});const Ve=Se("Scrollbar","-scrollbar",Iq,br,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:X,scrollbarBorderRadius:q,scrollbarHeight:ke,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=Ve.value;return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":ke}}),We=n?et("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:ve,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:U,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:pe,handleContentResize:Oe,handleContainerResize:_e,handleYScrollMouseDown:ft,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Gn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(jr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(jr,{onResize:this.handleContainerResize},{default:s});return i?u(Ot,null,c,l()):c}}),ln=V2,Bf=V2,Aq={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},W2=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:v,heightSmall:b,heightMedium:g,heightLarge:m,heightHuge:y}=e;return Object.assign(Object.assign({},Aq),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:v,optionHeightSmall:b,optionHeightMedium:g,optionHeightLarge:m,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},Bq={name:"InternalSelectMenu",common:nt,peers:{Scrollbar:br,Empty:oi},self:W2},Hl=Bq,Eq={name:"InternalSelectMenu",common:tt,peers:{Scrollbar:yr,Empty:Za},self:W2},yc=Eq;function Lq(e,t){return u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>e?u(dt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(d0)}):null})}const PC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Bb),p=lt(()=>{const{value:m}=n;return m?e.tmNode.key===m.key:!1});function v(m){const{tmNode:y}=e;y.disabled||f(m,y)}function b(m){const{tmNode:y}=e;y.disabled||h(m,y)}function g(m){const{tmNode:y}=e,{value:C}=p;y.disabled||C||h(m,y)}return{multiple:r,isGrouped:lt(()=>{const{tmNode:m}=e,{parent:y}=m;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:p,isSelected:lt(()=>{const{value:m}=t,{value:y}=r;if(m===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return m===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:g,handleMouseEnter:b,handleClick:v}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=Lq(n,e),p=s?[s(t,n),i&&h]:[Ut(t[this.labelField],t,n),i&&h],v=a==null?void 0:a(t),b=u("div",Object.assign({},v,{class:[`${e}-base-select-option`,t.class,v==null?void 0:v.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(v==null?void 0:v.style)||"",t.style||""],onClick:Rs([c,v==null?void 0:v.onClick]),onMouseenter:Rs([d,v==null?void 0:v.onMouseenter]),onMousemove:Rs([f,v==null?void 0:v.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),$C=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Bb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):Ut(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:TC,cubicBezierEaseOut:OC}=mr;function Dn({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${TC}, transform ${t} ${TC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${OC}, transform ${t} ${OC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Nq=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[I("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),I("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),I("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),I("disabled",` - cursor: not-allowed; - `,[mt("selected",` - color: var(--n-option-text-color-disabled); - `),I("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[Dn({enterScale:"0.5"})])])]),xc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",Nq,Hl,e,xe(e,"clsPrefix")),n=F(null),r=F(null),o=F(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>F2(i.value)),l=F(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),D(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;it(()=>e.show,Q=>{Q?d=it(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),Rt(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Bt(()=>{d==null||d()});const f=P(()=>hn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>Pi(t.value.self[ye("padding",e.size)])),p=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),v=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function g(Q){const{onScroll:V}=e;V&&V(Q)}function m(Q){var V;(V=o.value)===null||V===void 0||V.sync(),g(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||D(V,!1)}function w(Q,V){V.disabled||b(V)}function _(Q){var V;Zn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function k(Q){var V;Zn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&D(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&D(Q.getPrev({loop:!0}),!0)}function D(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}ot(Bb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:p,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),ot(nR,n),It(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:_e,optionOpacityDisabled:ve,optionCheckColor:Me,actionTextColor:H,optionColorPending:U,optionColorActive:Y,loadingColor:ce,loadingSize:G,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:pe}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":U,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":ve,"--n-option-text-color":me,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":pe,"--n-option-padding-left":Pi(pe,"left"),"--n-option-padding-right":Pi(pe,"right"),"--n-loading-color":ce,"--n-loading-size":G}}),{inlineThemeDisabled:E}=e,W=E?et("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return ph(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:v,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:g,handleFocusin:A,handleFocusout:L,handleKeyUp:_,handleKeyDown:k,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:m,cssVars:E?void 0:j,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(so,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},gt(e.empty,()=>[u(Ui,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(ln,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(qo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(PC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):u(PC,{clsPrefix:n,key:a.key,tmNode:a})))}),kt(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Fo,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Hq=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),U2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-wave",Hq,xe(e,"clsPrefix"));const t=F(null),n=F(!1);let r=null;return Bt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Rt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),jq=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Yo()]),Vq=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-menu-mask",jq,xe(e,"clsPrefix"));const t=F(null);let n=null;const r=F(!1);return Bt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(Ft,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),Wq={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},K2=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Wq),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},Uq={name:"Popover",common:nt,self:K2},Qa=Uq,Kq={name:"Popover",common:tt,self:K2},Ja=Kq,Op={top:"bottom",bottom:"top",left:"right",right:"left"},In="var(--n-arrow-height) * 1.414",qq=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[mt("scrollable",[mt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),I("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${In}); - height: calc(${In}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),Ir("top-start",` - top: calc(${In} / -2); - left: calc(${Eo("top-start")} - var(--v-offset-left)); - `),Ir("top",` - top: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("top-end",` - top: calc(${In} / -2); - right: calc(${Eo("top-end")} + var(--v-offset-left)); - `),Ir("bottom-start",` - bottom: calc(${In} / -2); - left: calc(${Eo("bottom-start")} - var(--v-offset-left)); - `),Ir("bottom",` - bottom: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("bottom-end",` - bottom: calc(${In} / -2); - right: calc(${Eo("bottom-end")} + var(--v-offset-left)); - `),Ir("left-start",` - left: calc(${In} / -2); - top: calc(${Eo("left-start")} - var(--v-offset-top)); - `),Ir("left",` - left: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("left-end",` - left: calc(${In} / -2); - bottom: calc(${Eo("left-end")} + var(--v-offset-top)); - `),Ir("right-start",` - right: calc(${In} / -2); - top: calc(${Eo("right-start")} - var(--v-offset-top)); - `),Ir("right",` - right: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("right-end",` - right: calc(${In} / -2); - bottom: calc(${Eo("right-end")} + var(--v-offset-top)); - `),...S7({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${In}) / 2)`,s=Eo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[I("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Eo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Ir(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${Op[n]}: var(--n-space); - `,[I("show-arrow",` - margin-${Op[n]}: var(--n-space-arrow); - `),I("overlap",` - margin: 0; - `),cB("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${Op[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const q2=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Y2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),Yq=J({name:"PopoverBody",inheritAttrs:!1,props:q2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(e),a=Se("Popover","-popover",qq,Qa,e,o),l=F(null),s=Le("NPopover"),c=F(null),d=F(e.show),f=F(!1);At(()=>{const{show:k}=e;k&&!dB()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:k,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(k==="click"&&!T&&$.push([gr,x,void 0,{capture:!0}]),k==="hover"&&$.push([zB,C])),T&&$.push([gr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([$r,e.show]),$}),p=P(()=>{const k=e.width==="trigger"?void 0:Mt(e.width),T=[];k&&T.push({width:k});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Mt($)}),R&&T.push({maxWidth:Mt(R)}),i||T.push(v.value),T}),v=P(()=>{const{common:{cubicBezierEaseInOut:k,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:D,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:W,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":W,"--n-bezier":k,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":D}}),b=i?et("popover",void 0,v,e):void 0;s.setBodyInstance({syncPosition:g}),Bt(()=>{s.setBodyInstance(null)}),it(xe(e,"show"),k=>{e.animated||(k?d.value=!0:d.value=!1)});function g(){var k;(k=l.value)===null||k===void 0||k.syncPosition()}function m(k){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(k)}function y(k){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(k)}function C(k){e.trigger==="hover"&&!w().contains(vr(k))&&s.handleMouseMoveOutside(k)}function x(k){(e.trigger==="click"&&!w().contains(vr(k))||e.onClickoutside)&&s.handleClickOutside(k)}function w(){return s.getTriggerElement()}ot(Ll,c),ot(vc,null),ot(pc,null);function _(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,p.value,m,y);else{const{value:D}=s.extraClassRef,{internalTrapFocus:z}=e,A=!Pa(t.header)||!Pa(t.footer),L=()=>{var j;const E=A?u(Ot,null,kt(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),kt(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),kt(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),W=e.scrollable?u(Bf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?Y2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[W,K]};T=u("div",Gn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,D.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:s.handleKeydown,onMouseenter:m,onMouseleave:y},n),z?u(Hb,{active:e.show,autoFocus:!0},{default:L}):L())}return un(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Ht(e),followerEnabled:d,renderContentNode:_}},render(){return u(Or,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>this.animated?u(Ft,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Gq=Object.keys(q2),Xq={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Zq(e,t,n){Xq[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const Qq=Ar("").type,La={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ht.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},G2=Object.assign(Object.assign(Object.assign({},Se.props),La),{internalOnAfterLeave:Function,internalRenderBody:Function}),el=J({name:"Popover",inheritAttrs:!1,props:G2,__popover__:!0,setup(e){const t=Hn(),n=F(null),r=P(()=>e.show),o=F(e.defaultShow),i=St(r,o),a=lt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ii(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=F(null),p=F(null),v=lt(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:W,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&W&&he(W,!0),L&&K&&he(K,!1)}function g(){f&&f.syncPosition()}function m(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=p;L&&(window.clearTimeout(L),p.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function _(){const L=l();if(e.trigger==="hover"&&!L){if(m(),p.value!==null||!s())return;const j=()=>{b(!1),p.value=null},{duration:E}=e;E===0?j():p.value=window.setTimeout(j,E)}}function k(){_()}function T(L){var j;!s()||(e.trigger==="click"&&(m(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){m(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(m(),y(),b(!1))}function D(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return ot("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:_,handleClickOutside:T,handleMouseMoveOutside:k,setBodyInstance:A,positionManuallyRef:v,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),At(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:D,handleClick:$,handleMouseEnter:w,handleMouseLeave:_,handleFocus:C,handleBlur:x,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=ju(n,"activator"):r=ju(n,"trigger"),r)){r=ar(r),r=r.type===Qq?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};Zq(r,a?"nested":t?"manual":this.trigger,s)}}return u(qr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?un(u("div",{style:{position:"fixed",inset:0}}),[[gc,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Yr,null,{default:()=>r}),u(Yq,xn(this.$props,Gq,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),X2={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},Jq={name:"Tag",common:tt,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,tagColor:f,opacityDisabled:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderRadiusSmall:y,fontSizeMini:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,heightMini:k,heightTiny:T,heightSmall:$,heightMedium:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:y,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:y,opacityDisabled:h,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:kn(o,{lightness:.7}),closeIconColorHoverPrimary:kn(o,{lightness:.7}),closeIconColorPressedPrimary:kn(o,{lightness:.7}),closeColorHoverPrimary:He(o,{alpha:.16}),closeColorPressedPrimary:He(o,{alpha:.12}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:kn(i,{alpha:.7}),closeIconColorHoverInfo:kn(i,{alpha:.7}),closeIconColorPressedInfo:kn(i,{alpha:.7}),closeColorHoverInfo:He(i,{alpha:.16}),closeColorPressedInfo:He(i,{alpha:.12}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:kn(a,{alpha:.7}),closeIconColorHoverSuccess:kn(a,{alpha:.7}),closeIconColorPressedSuccess:kn(a,{alpha:.7}),closeColorHoverSuccess:He(a,{alpha:.16}),closeColorPressedSuccess:He(a,{alpha:.12}),borderWarning:`1px solid ${He(l,{alpha:.3})}`,textColorWarning:l,colorWarning:He(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:kn(l,{alpha:.7}),closeIconColorHoverWarning:kn(l,{alpha:.7}),closeIconColorPressedWarning:kn(l,{alpha:.7}),closeColorHoverWarning:He(l,{alpha:.16}),closeColorPressedWarning:He(l,{alpha:.11}),borderError:`1px solid ${He(s,{alpha:.3})}`,textColorError:s,colorError:He(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:kn(s,{alpha:.7}),closeIconColorHoverError:kn(s,{alpha:.7}),closeIconColorPressedError:kn(s,{alpha:.7}),closeColorHoverError:He(s,{alpha:.16}),closeColorPressedError:He(s,{alpha:.12})})}},Z2=Jq,eY=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,borderRadiusSmall:g,fontSizeMini:m,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:_,heightSmall:k,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:g,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:T,borderRadius:g,opacityDisabled:f,fontSizeTiny:m,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.12}),colorBorderedPrimary:He(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:He(o,{alpha:.12}),closeColorPressedPrimary:He(o,{alpha:.18}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.12}),colorBorderedInfo:He(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:He(i,{alpha:.12}),closeColorPressedInfo:He(i,{alpha:.18}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.12}),colorBorderedSuccess:He(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:He(a,{alpha:.12}),closeColorPressedSuccess:He(a,{alpha:.18}),borderWarning:`1px solid ${He(l,{alpha:.35})}`,textColorWarning:l,colorWarning:He(l,{alpha:.15}),colorBorderedWarning:He(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:He(l,{alpha:.12}),closeColorPressedWarning:He(l,{alpha:.18}),borderError:`1px solid ${He(s,{alpha:.23})}`,textColorError:s,colorError:He(s,{alpha:.1}),colorBorderedError:He(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:He(s,{alpha:.12}),closeColorPressedError:He(s,{alpha:.18})})},tY={name:"Tag",common:nt,self:eY},Q2=tY,J2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},nY=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),I("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),I("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),I("icon, avatar",[I("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),I("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),I("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[mt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[mt("checked","color: var(--n-text-color-pressed-checkable);")])]),I("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),eP=Object.assign(Object.assign(Object.assign({},Se.props),J2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tP="n-tag",zs=J({name:"Tag",props:eP,setup(e){const t=F(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=je(e),a=Se("Tag","-tag",nY,Q2,e,r);ot(tP,{roundRef:xe(e,"round")});function l(p){if(!e.disabled&&e.checkable){const{checked:v,onCheckedChange:b,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!v),m&&m(!v),b&&b(!v)}}function s(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:v}=e;v&&he(v,p)}}const c={setTextContent(p){const{value:v}=t;v&&(v.textContent=p)}},d=en("Tag",i,r),f=P(()=>{const{type:p,size:v,color:{color:b,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:_,textColorCheckable:k,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:D,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:W,fontWeightStrong:K,[ye("colorBordered",p)]:Q,[ye("closeSize",v)]:V,[ye("closeIconSize",v)]:re,[ye("fontSize",v)]:ee,[ye("height",v)]:ue,[ye("color",p)]:de,[ye("textColor",p)]:Ce,[ye("border",p)]:we,[ye("closeIconColor",p)]:me,[ye("closeIconColorHover",p)]:Oe,[ye("closeIconColorPressed",p)]:_e,[ye("closeColorHover",p)]:ve,[ye("closeColorPressed",p)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":m,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":ve,"--n-close-border-radius":W,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":_e,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":D,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":_,"--n-padding":y,"--n-text-color":g||Ce,"--n-text-color-checkable":k,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?et("tag",P(()=>{let p="";const{type:v,size:b,color:{color:g,textColor:m}={}}=e;return p+=v[0],p+=b[0],g&&(p+=`a${Ia(g)}`),m&&(p+=`b${Ia(m)}`),n.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=kt(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=kt(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(ri,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),rY=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),nm=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Xr("-base-clear",rY,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(Do,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},gt(this.$slots.icon,()=>[u(dt,{clsPrefix:e},{default:()=>u(LK,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),nP=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(so,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(nm,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(dt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>gt(t.default,()=>[u(D2,null)])})}):null})}}}),rP={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},oY=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:p,iconColorDisabled:v,clearColor:b,clearColorHover:g,clearColorPressed:m,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${He(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${He(a,{alpha:.2})}`,caretColor:a,arrowColor:p,arrowColorDisabled:v,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${He(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${He(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:g,clearColorPressed:m})},iY={name:"InternalSelection",common:nt,peers:{Popover:Qa},self:oY},Ch=iY,aY={name:"InternalSelection",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,iconColor:h,iconColorDisabled:p,clearColor:v,clearColorHover:b,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:y,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:m,placeholderColorDisabled:y,color:o,colorDisabled:i,colorActive:He(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${He(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${He(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,colorActiveWarning:He(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${He(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.4})}`,colorActiveError:He(d,{alpha:.1}),caretColorError:d,clearColor:v,clearColorHover:b,clearColorPressed:g})}},h0=aY,lY=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),I("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>I(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),p0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(!1),h=F(!1),p=F(!1),v=Se("InternalSelection","-internal-selection",lY,Ch,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(p.value||e.active)),g=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Ut(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),m=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}it(xe(e,"active"),Z=>{Z||x()}),it(xe(e,"pattern"),()=>{e.multiple&&Rt(C)});function _(Z){const{onFocus:fe}=e;fe&&fe(Z)}function k(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function D(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&_(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||k(Z)}function A(Z){$(Z)}function L(){p.value=!0}function j(){p.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function W(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&W(fe[fe.length-1])}}const Q=F(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function _e(){const{value:Z}=n;Z&&Z.blur()}function ve(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let U=null;function Y(){U!==null&&window.clearTimeout(U)}function ce(){e.disabled||e.active||(Y(),U=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function G(){Y()}function B(Z){Z||(Y(),f.value=!1)}it(y,Z=>{Z||(f.value=!1)}),It(()=>{At(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),ph(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:qe,paddingMultiple:Ye,caretColor:ft,colorDisabled:ht,textColorDisabled:vt,placeholderColorDisabled:Ve,colorActive:Xe,boxShadowFocus:We,boxShadowActive:Ke,boxShadowHover:X,border:q,borderFocus:ke,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Ie,borderFocusWarning:Ne,borderHoverWarning:Qe,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:De,boxShadowActiveError:Ze,boxShadowHoverError:bt,borderError:be,borderFocusError:Fe,borderHoverError:Je,borderActiveError:at,clearColor:ct,clearColorHover:Gt,clearColorPressed:Kt,clearSize:Re,arrowSize:Ge,[ye("height",Z)]:st,[ye("fontSize",Z)]:Pt}}=v.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":ke,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":Ke,"--n-box-shadow-focus":We,"--n-box-shadow-hover":X,"--n-caret-color":ft,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":ht,"--n-font-size":Pt,"--n-height":st,"--n-padding-single":qe,"--n-padding-multiple":Ye,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":Ve,"--n-text-color":Ae,"--n-text-color-disabled":vt,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Ie,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Qe,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":De,"--n-box-shadow-active-error":Ze,"--n-box-shadow-hover-error":bt,"--n-border-error":be,"--n-border-focus-error":Fe,"--n-border-hover-error":Je,"--n-border-active-error":at,"--n-clear-size":Re,"--n-clear-color":ct,"--n-clear-color-hover":Gt,"--n-clear-color-pressed":Kt,"--n-arrow-size":Ge}}),pe=N?et("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:v,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:g,label:m,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:D,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:W,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:G,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:_e,updateCounter:ve,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",p=f||h,v=u(Tv,null,{default:()=>u(nP,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var g,m;return(m=(g=this.$slots).arrow)===null||m===void 0?void 0:m.call(g)}})});let b;if(t){const{labelField:g}=this,m=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(zs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):Ut(z[g],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(m),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const _=f?o?u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),k=p?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(m)):void 0,T=p?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,D=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},_,f?null:C,v):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},_,v);b=u(Ot,null,p?u(el,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>D,default:k}):D,R)}else if(o){const g=this.pattern||this.isComposing,m=this.active?!g:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):null,m?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,v)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:hc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),v);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),zC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=F(null),n=F(e.value),r=F(e.value),o=F("up"),i=F(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);it(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,Rt(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,Rt(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:hi}=mr;function oP({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${hi}, - max-width ${e} ${hi} ${t}, - margin-left ${e} ${hi} ${t}, - margin-right ${e} ${hi} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${hi} ${t}, - max-width ${e} ${hi}, - margin-left ${e} ${hi}, - margin-right ${e} ${hi}; - `)]}const{cubicBezierEaseOut:cl}=mr;function sY({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const cY=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[sY({duration:".2s"}),oP({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[I("top",{transform:"translateY(-100%)"}),I("bottom",{transform:"translateY(100%)"}),I("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[I("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[I("not-number",` - right: unset; - left: 0; - `)])])])])]),dY=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Xr("-base-slot-machine",cY,xe(e,"clsPrefix"));const t=F(),n=F(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return it(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(ah,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(zC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Io,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,infoColor:v,successColor:b,warningColor:g,errorColor:m,fontSize:y}=e;return Object.assign(Object.assign({},iP),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,borderInfo:`1px solid ${pt(o,He(v,{alpha:.25}))}`,colorInfo:pt(o,He(v,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:v,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${pt(o,He(b,{alpha:.25}))}`,colorSuccess:pt(o,He(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${pt(o,He(g,{alpha:.33}))}`,colorWarning:pt(o,He(g,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:p,borderError:`1px solid ${pt(o,He(m,{alpha:.25}))}`,colorError:pt(o,He(m,{alpha:.08})),titleTextColorError:l,iconColorError:m,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:p})},pY={name:"Alert",common:nt,self:hY},vY=pY,{cubicBezierEaseInOut:po,cubicBezierEaseOut:gY,cubicBezierEaseIn:mY}=mr;function Go({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po} ${r}, - opacity ${t} ${gY} ${r}, - margin-top ${t} ${po} ${r}, - margin-bottom ${t} ${po} ${r}, - padding-top ${t} ${po} ${r}, - padding-bottom ${t} ${po} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po}, - opacity ${t} ${mY}, - margin-top ${t} ${po}, - margin-bottom ${t} ${po}, - padding-top ${t} ${po}, - padding-bottom ${t} ${po} - ${n?","+n:""} - `)]}const bY=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),I("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),Go({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),I("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),aP=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),yY=J({name:"Alert",inheritAttrs:!1,props:aP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Alert","-alert",bY,vY,e,t),a=en("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:p},self:v}=i.value,{fontSize:b,borderRadius:g,titleFontWeight:m,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:_,closeBorderRadius:k,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:D}=v,{type:z}=e,{left:A,right:L}=Pi(x);return{"--n-bezier":p,"--n-color":v[ye("color",z)],"--n-close-icon-size":_,"--n-close-border-radius":k,"--n-close-color-hover":v[ye("closeColorHover",z)],"--n-close-color-pressed":v[ye("closeColorPressed",z)],"--n-close-icon-color":v[ye("closeIconColor",z)],"--n-close-icon-color-hover":v[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":v[ye("closeIconColorPressed",z)],"--n-icon-color":v[ye("iconColor",z)],"--n-border":v[ye("border",z)],"--n-title-text-color":v[ye("titleTextColor",z)],"--n-content-text-color":v[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":g,"--n-font-size":b,"--n-title-font-weight":m,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":D,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?et("alert",P(()=>e.type[0]),l,e):void 0,c=F(!0),d=()=>{const{onAfterLeave:p,onAfterHide:v}=e;p&&p(),v&&v()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(v=>{v!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Io,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Gn(this.$attrs,r)),this.closable&&u(ri,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},gt(n.icon,()=>[u(dt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Xa,null);case"info":return u(Hi,null);case"warning":return u(Wi,null);case"error":return u(Ga,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},kt(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),xY={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},lP=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},xY),{borderRadius:t,railColor:n,railColorActive:r,linkColor:He(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},wY={name:"Anchor",common:nt,self:lP},CY=wY,SY={name:"Anchor",common:tt,self:lP},kY=SY,_Y=S("anchor",` - position: relative; -`,[mt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),mt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),I("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[I("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[I("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[I("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),wu="n-anchor",sP={title:String,href:String},RY=J({name:"AnchorLink",props:sP,setup(e,{slots:t}){const n=F(null),r=Le(wu),o=xe(e,"href"),i=lt(()=>o.value&&o.value===r.activeHref.value);fB(wu,"collectedLinkHrefs",o),hB(wu,"titleEls",()=>n.value),it(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:hc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function PY(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const v0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},$Y=Wn(v0),TY=J({name:"BaseAnchor",props:Object.assign(Object.assign({},v0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=F(null),o=F(null),i=F(null),a=F(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:v}=i,{value:b}=o;v&&(v.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(g=>{g.style.transition="none"}),Rt(()=>{const{value:g}=i,{value:m}=o;g&&(g.offsetWidth,g.style.transition=""),m&&(m.offsetWidth,m.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(v,b=!0){const{value:g}=i,{value:m}=o,{value:y}=a;if(!y||!g)return;b||(g.style.transition="none",m&&(m.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=v,{top:w,left:_}=v.getBoundingClientRect(),{top:k,left:T}=y.getBoundingClientRect(),$=w-k,R=_-T;g.style.top=`${$}px`,g.style.height=`${C}px`,m&&(m.style.top=`${$}px`,m.style.height=`${C}px`,m.style.maxWidth=`${x+R}px`),g.offsetHeight,m&&m.offsetHeight,b||(g.style.transition="",m&&(m.style.transition=""))}function f(v,b=!0){const g=/^#([^#]+)$/.exec(v);if(!g)return;const m=document.getElementById(g[1]);!m||(r.value=v,m.scrollIntoView(),b||c(),h())}const h=Os(()=>p(!0),128);function p(v=!0){var b;const g=[],m=Ob((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(_=>{const k=/#([^#]+)$/.exec(_);if(!k)return;const T=document.getElementById(k[1]);if(T&&m){const{top:$,height:R}=PY(T,m);g.push({top:$,height:R,href:_})}}),g.sort((_,k)=>_.top>k.top?1:(_.top===k.top&&_.heightk.top+k.height<0?x?k:_:k.top<=C?_===null?k:k.top===_.top?k.href===y?k:_:k.top>_.top?k:_:_,null);v||c(),w?r.value=w.href:r.value=null}return ot(wu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),It(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),p(!1)}),fh(()=>{f(window.location.hash),p(!1)}),Bt(()=>{document.removeEventListener("scroll",h,!0)}),it(r,v=>{if(v===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(ln,null,{default:()=>i}):i}}),cP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),wh),v0),OY=J({name:"Anchor",props:cP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Anchor","-anchor",_Y,CY,e,n),i=F(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:p,linkTextColorActive:v,linkFontSize:b,railWidth:g,linkPadding:m,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":v,"--n-link-text-color-pressed":p,"--n-link-padding":m,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":g}}),l=r?et("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(TY,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},xn(e,$Y),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(P2,Object.assign({},xn(this,$K)),{default:this.renderAnchor}):this.renderAnchor()}});function Ef(e){return e.type==="group"}function dP(e){return e.type==="ignored"}function zp(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Sh(e,t){return{getIsGroup:Ef,getIgnored:dP,getKey(r){return Ef(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function zY(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(Ef(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(dP(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function MY(e,t,n){const r=new Map;return e.forEach(o=>{Ef(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const DY=lr&&"chrome"in window;lr&&navigator.userAgent.includes("Firefox");const uP=lr&&navigator.userAgent.includes("Safari")&&!DY,fP={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},IY={name:"Input",common:tt,self(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,clearColor:_,clearColorHover:k,clearColorPressed:T,placeholderColor:$,placeholderColorDisabled:R,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:$,placeholderColorDisabled:R,color:a,colorDisabled:l,colorFocus:He(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:He(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:He(d,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:k,clearColorPressed:T,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L,suffixTextColor:t})}},Zr=IY,FY=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:v,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,actionColor:k,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:D,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,lineHeight:v,lineHeightTextarea:v,borderRadius:p,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:D,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${He(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${He(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${He(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},AY={name:"Input",common:nt,self:FY},zr=AY,hP="n-input";function BY(e){let t=0;for(const n of e)t++;return t}function cd(e){return e===""||e==null}function EY(e){const t=F(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const p=d[c-1],v=s.indexOf(p,c-1);v!==-1&&(h=v+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return it(e,o),{recordCursor:n,restoreCursor:r}}const MC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(hP),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||BY)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Da(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),LY=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),I("round",[mt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),I("textarea",[M("placeholder","overflow: visible;")]),mt("autosize","width: 100%;"),I("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),mt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),I("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),I("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),I("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),I("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),mt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),I("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>I(`${e}-status`,[mt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),I("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),NY=S("input",[I("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),pP=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),En=J({name:"Input",props:pP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Input","-input",LY,zr,e,t);uP&&Xr("-input-safari",NY,t);const a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=EY(h),v=F(null),{localeRef:b}=Cn("Input"),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=Sn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:_}=C,k=F(!1),T=F(!1),$=F(!1),R=F(!1);let D=null;const z=P(()=>{const{placeholder:le,pair:De}=e;return De?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&(cd(De)||Array.isArray(De)&&cd(De[0]))&&Ze[0]}),L=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&Ze[1]&&(cd(De)||Array.isArray(De)&&cd(De[1]))}),j=lt(()=>e.internalForceFocus||k.value),E=lt(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:De}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||De):!!le&&(T.value||De)}),W=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=F(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(De=>({textDecoration:De})):[{textDecoration:le}]:["",""]}),V=F(void 0),re=()=>{var le,De;if(e.type==="textarea"){const{autosize:Ze}=e;if(Ze&&(V.value=(De=(le=v.value)===null||le===void 0?void 0:le.$el)===null||De===void 0?void 0:De.offsetWidth),!l.value||typeof Ze=="boolean")return;const{paddingTop:bt,paddingBottom:be,lineHeight:Fe}=window.getComputedStyle(l.value),Je=Number(bt.slice(0,-2)),at=Number(be.slice(0,-2)),ct=Number(Fe.slice(0,-2)),{value:Gt}=s;if(!Gt)return;if(Ze.minRows){const Kt=Math.max(Ze.minRows,1),Re=`${Je+at+ct*Kt}px`;Gt.style.minHeight=Re}if(Ze.maxRows){const Kt=`${Je+at+ct*Ze.maxRows}px`;Gt.style.maxHeight=Kt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});It(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Jo().proxy;function de(le){const{onUpdateValue:De,"onUpdate:value":Ze,onInput:bt}=e,{nTriggerFormInput:be}=C;De&&he(De,le),Ze&&he(Ze,le),bt&&he(bt,le),g.value=le,be()}function Ce(le){const{onChange:De}=e,{nTriggerFormChange:Ze}=C;De&&he(De,le),g.value=le,Ze()}function we(le){const{onBlur:De}=e,{nTriggerFormBlur:Ze}=C;De&&he(De,le),Ze()}function me(le){const{onFocus:De}=e,{nTriggerFormFocus:Ze}=C;De&&he(De,le),Ze()}function Oe(le){const{onClear:De}=e;De&&he(De,le)}function _e(le){const{onInputBlur:De}=e;De&&he(De,le)}function ve(le){const{onInputFocus:De}=e;De&&he(De,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function U(le){const{onClick:De}=e;De&&he(De,le)}function Y(le){const{onWrapperFocus:De}=e;De&&he(De,le)}function ce(le){const{onWrapperBlur:De}=e;De&&he(De,le)}function G(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,De=0,Ze="input"){const bt=le.target.value;if(ze(bt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:Fe}=v;Fe&&Fe.syncUnifiedContainer()}if(D=bt,$.value)return;p.recordCursor();const be=te(bt);if(be)if(!e.pair)Ze==="input"?de(bt):Ce(bt);else{let{value:Fe}=y;Array.isArray(Fe)?Fe=[Fe[0],Fe[1]]:Fe=["",""],Fe[De]=bt,Ze==="input"?de(Fe):Ce(Fe)}ue.$forceUpdate(),be||Rt(p.restoreCursor)}function te(le){const{countGraphemes:De,maxlength:Ze,minlength:bt}=e;if(De){let Fe;if(Ze!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe>Number(Ze))||bt!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe{bt.preventDefault(),Ct("mouseup",document,De)};if(_t("mouseup",document,De),W.value!=="mousedown")return;K.value=!0;const Ze=()=>{K.value=!1,Ct("mouseup",document,Ze)};_t("mouseup",document,Ze)}function Xe(le){var De;switch((De=e.onKeydown)===null||De===void 0||De.call(e,le),le.key){case"Escape":Ke();break;case"Enter":We(le);break}}function We(le){var De,Ze;if(e.passivelyActivated){const{value:bt}=R;if(bt){e.internalDeactivateOnEnter&&Ke();return}le.preventDefault(),e.type==="textarea"?(De=l.value)===null||De===void 0||De.focus():(Ze=d.value)===null||Ze===void 0||Ze.focus()}}function Ke(){e.passivelyActivated&&(R.value=!1,Rt(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function X(){var le,De,Ze;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((De=l.value)===null||De===void 0||De.focus(),(Ze=d.value)===null||Ze===void 0||Ze.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function ke(){var le,De;(le=l.value)===null||le===void 0||le.select(),(De=d.value)===null||De===void 0||De.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&Ke()}function ae(le){if(e.type==="textarea"){const{value:De}=l;De==null||De.scrollTo(le)}else{const{value:De}=d;De==null||De.scrollTo(le)}}function ze(le){const{type:De,pair:Ze,autosize:bt}=e;if(!Ze&&bt)if(De==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=F({top:"0"});function se(le){var De;const{scrollTop:Ze}=le.target;Te.value.top=`${-Ze}px`,(De=v.value)===null||De===void 0||De.syncUnifiedContainer()}let $e=null;At(()=>{const{autosize:le,type:De}=e;le&&De==="textarea"?$e=it(y,Ze=>{!Array.isArray(Ze)&&Ze!==D&&ze(Ze)}):$e==null||$e()});let oe=null;At(()=>{e.type==="textarea"?oe=it(y,le=>{var De;!Array.isArray(le)&&le!==D&&((De=v.value)===null||De===void 0||De.syncUnifiedContainer())}):oe==null||oe()}),ot(hP,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Ie={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:X,blur:q,select:ke,deactivate:Ee,activate:Be,scrollTo:ae},Ne=en("Input",o,t),Qe=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:De},self:{color:Ze,borderRadius:bt,textColor:be,caretColor:Fe,caretColorError:Je,caretColorWarning:at,textDecorationColor:ct,border:Gt,borderDisabled:Kt,borderHover:Re,borderFocus:Ge,placeholderColor:st,placeholderColorDisabled:Pt,lineHeightTextarea:qt,colorDisabled:Et,colorFocus:Qr,textColorDisabled:Nt,boxShadowFocus:fn,iconSize:Ao,colorFocusWarning:ai,boxShadowFocusWarning:li,borderWarning:si,borderFocusWarning:qi,borderHoverWarning:Ah,colorFocusError:Bh,boxShadowFocusError:Eh,borderError:Lh,borderFocusError:Nh,borderHoverError:Hh,clearSize:jh,clearColor:Vh,clearColorHover:D5,clearColorPressed:I5,iconColor:F5,iconColorDisabled:A5,suffixTextColor:B5,countTextColor:E5,countTextColorDisabled:L5,iconColorHover:N5,iconColorPressed:H5,loadingColor:j5,loadingColorError:V5,loadingColorWarning:W5,[ye("padding",le)]:U5,[ye("fontSize",le)]:K5,[ye("height",le)]:q5}}=i.value,{left:Y5,right:G5}=Pi(U5);return{"--n-bezier":De,"--n-count-text-color":E5,"--n-count-text-color-disabled":L5,"--n-color":Ze,"--n-font-size":K5,"--n-border-radius":bt,"--n-height":q5,"--n-padding-left":Y5,"--n-padding-right":G5,"--n-text-color":be,"--n-caret-color":Fe,"--n-text-decoration-color":ct,"--n-border":Gt,"--n-border-disabled":Kt,"--n-border-hover":Re,"--n-border-focus":Ge,"--n-placeholder-color":st,"--n-placeholder-color-disabled":Pt,"--n-icon-size":Ao,"--n-line-height-textarea":qt,"--n-color-disabled":Et,"--n-color-focus":Qr,"--n-text-color-disabled":Nt,"--n-box-shadow-focus":fn,"--n-loading-color":j5,"--n-caret-color-warning":at,"--n-color-focus-warning":ai,"--n-box-shadow-focus-warning":li,"--n-border-warning":si,"--n-border-focus-warning":qi,"--n-border-hover-warning":Ah,"--n-loading-color-warning":W5,"--n-caret-color-error":Je,"--n-color-focus-error":Bh,"--n-box-shadow-focus-error":Eh,"--n-border-error":Lh,"--n-border-focus-error":Nh,"--n-border-hover-error":Hh,"--n-loading-color-error":V5,"--n-clear-color":Vh,"--n-clear-size":jh,"--n-clear-color-hover":D5,"--n-clear-color-pressed":I5,"--n-icon-color":F5,"--n-icon-color-hover":N5,"--n-icon-color-pressed":H5,"--n-icon-color-disabled":A5,"--n-suffix-text-color":B5}}),Ue=r?et("input",P(()=>{const{value:le}=x;return le[0]}),Qe,e):void 0;return Object.assign(Object.assign({},Ie),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:v,rtlEnabled:Ne,uncontrolledValue:g,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:W,placeholderStyle:Te,mergedStatus:_,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:G,handleCompositionEnd:B,handleInput:N,handleInputBlur:pe,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ft,handleMouseLeave:ht,handleMouseDown:Ye,handleChange:Pe,handleClick:Ae,handleClear:qe,handlePasswordToggleClick:vt,handlePasswordToggleMousedown:Ve,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Qe,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},kt(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(ln,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(Ot,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(jr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&kt(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[kt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(nP,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(MC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?gt(s["password-visible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(O2,null)})]):gt(s["password-invisible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(zK,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},gt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),kt(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(MC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),HY=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),vP={},gP=J({name:"InputGroup",props:vP,setup(e){const{mergedClsPrefixRef:t}=je(e);return Xr("-input-group",HY,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),jY=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),mP=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),VY=J({name:"InputGroupLabel",props:mP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Input","-input-group-label",jY,zr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:p,[ye("fontSize",l)]:v,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":v,"--n-line-height":h,"--n-height":b}}),a=r?et("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function bP(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WY={name:"AutoComplete",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:bP},UY=WY,KY={name:"AutoComplete",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self:bP},qY=KY;function YY(e){return e.map(yP)}function yP(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>yP(o))}:e}const GY=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),xP=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),XY=J({name:"AutoComplete",props:xP,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=F(null),d=F(null),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=F(!1),b=F(!1),g=Se("AutoComplete","-auto-complete",GY,UY,e,r),m=P(()=>YY(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(p.value||""):!!p.value}),C=P(()=>y.value&&v.value&&!!m.value.length),x=P(()=>co(m.value,Sh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:_e}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),_e()}function _(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function k(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function D(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(_(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),v.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){v.value=!0,T(de)}function j(de){v.value=!1,k(de)}function E(de){v.value=!0,w(de)}function W(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(vr(de))||(v.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=g.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?et("auto-complete",void 0,V,e):void 0,ee=F(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:p,isMounted:Hn(),adjustedTo:Ht(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:W,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:D,mergedTheme:g,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(qr,null,{default:()=>[u(Yr,null,{default:()=>{if(this.$slots.default)return ju(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(En,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement,width:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return un(u(xc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[gr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),_l=lr&&"loading"in document.createElement("img"),ZY=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},Mp=new WeakMap,Dp=new WeakMap,Ip=new WeakMap,wP=(e,t,n)=>{if(!e)return()=>{};const r=ZY(t),{root:o}=r.options;let i;const a=Mp.get(o);a?i=a:(i=new Map,Mp.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=Dp.get(h.target),v=Ip.get(h.target);p&&p(),v&&(v.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Dp.delete(e),Ip.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||Mp.delete(o))};return Dp.set(e,d),Ip.set(e,n),d},CP=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:pt(r,n),colorModal:pt(d,n),colorPopover:pt(f,n)}},QY={name:"Avatar",common:nt,self:CP},SP=QY,JY={name:"Avatar",common:tt,self:CP},kP=JY,_P="n-avatar-group",eG=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[Mo(O("&","--n-merged-color: var(--n-color-modal);")),ei(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),RP=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),rm=J({name:"Avatar",props:RP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1);let o=null;const i=F(null),a=F(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:_}=x,{offsetWidth:k,offsetHeight:T}=C,$=.9,R=Math.min(w/k*$,_/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(_P,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",eG,SP,e,t),f=Le(tP,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),p=P(()=>s?!0:e.bordered||!1),v=C=>{var x;if(!m.value)return;r.value=!0;const{onError:w,imgProps:_}=e;(x=_==null?void 0:_.onError)===null||x===void 0||x.call(_,C),w&&w(C)};it(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e,{self:{borderRadius:k,fontSize:T,color:$,border:R,colorModal:D,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":k,"--n-color":_||$,"--n-color-modal":_||D,"--n-color-popover":_||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),g=n?et("avatar",P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e;let k="";return C&&(typeof C=="number"?k+=`a${C}`:k+=C[0]),x&&(k+="b"),w&&(k+="c"),_&&(k+=Ia(_)),k}),b,e):void 0,m=F(!e.lazy);It(()=>{if(_l)return;let C;const x=At(()=>{C==null||C(),C=void 0,e.lazy&&(C=wP(a.value,e.intersectionObserverOptions,m))});Bt(()=>{x(),C==null||C()})});const y=F(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:r,handleError:v,shouldStartLoading:m,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:_}=e;w==null||w(C),(x=_==null?void 0:_.onLoad)===null||x===void 0||x.call(_,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():gt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=kt(n.default,p=>{if(p)return u(jr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},p)});if(r){const{imgProps:v}=this;return u("img",Object.assign(Object.assign({},v),{loading:_l&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:_l||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[v==null?void 0:v.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),tG=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),I("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),PP=()=>({gap:"-12px"}),nG={name:"AvatarGroup",common:nt,peers:{Avatar:SP},self:PP},rG=nG,oG={name:"AvatarGroup",common:tt,peers:{Avatar:kP},self:PP},iG=oG,$P=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),aG=J({name:"AvatarGroup",props:$P,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("AvatarGroup","-avatar-group",tG,rG,e,t);ot(_P,e);const o=en("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(rm,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(rm,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),TP={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},lG={name:"BackTop",common:tt,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},sG=lG,cG=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},dG={name:"BackTop",common:nt,self:cG},uG=dG,fG=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),hG=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[Dn(),I("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),OP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),pG=J({name:"BackTop",inheritAttrs:!1,props:OP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(!1);At(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=F(!1);it(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=St(a,o),s=F(!0),c=F(null),d=P(()=>({right:`calc(${Mt(e.right)} + ${Iv.value})`,bottom:Mt(e.bottom)}));let f,h;it(l,x=>{var w,_;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(_=e.onHide)===null||_===void 0||_.call(e))});const p=Se("BackTop","-back-top",hG,uG,e,t);function v(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||Ob(e.listenTo)||B_(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:_}=e;typeof _=="string"&&document.querySelector(_),f.addEventListener("scroll",g),g()}function b(){(S1(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function g(){r.value=(S1(f)?document.documentElement:f).scrollTop,i.value||Rt(()=>{i.value=!0})}function m(){s.value=!1}It(()=>{v(),s.value=l.value}),Bt(()=>{f&&f.removeEventListener("scroll",g)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:_,boxShadowPressed:k,iconColor:T,iconColorHover:$,iconColorPressed:R,width:D,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=p.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":D,"--n-box-shadow":w,"--n-box-shadow-hover":_,"--n-box-shadow-pressed":k,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?et("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:Hn(),scrollElement:F(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:m,handleScroll:g,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(mc,{to:this.to,show:this.mergedShow},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Gn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),gt(this.$slots.default,()=>[u(dt,{clsPrefix:e},{default:()=>fG})])):null}})}))}}),vG={name:"Badge",common:tt,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}},gG=vG,mG=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},bG={name:"Badge",common:nt,self:mG},yG=bG,xG=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[I("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[Dn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),I("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[Dn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),zP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),wG=J({name:"Badge",props:zP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Badge","-badge",xG,yG,e,n),a=F(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!Pa(t.value)));It(()=>{c.value&&(a.value=!0)});const d=en("Badge",o,n),f=P(()=>{const{type:v,color:b}=e,{common:{cubicBezierEaseInOut:g,cubicBezierEaseOut:m},self:{[ye("color",v)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":g,"--n-ripple-bezier":m}}),h=r?et("badge",P(()=>{let v="";const{type:b,color:g}=e;return b&&(v+=b[0]),g&&(v+=Ia(g)),v}),f,e):void 0,p=P(()=>{const{offset:v}=e;if(!v)return;const[b,g]=v,m=typeof b=="number"?`${b}px`:b,y=typeof g=="number"?`${g}px`:g;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${m}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:p}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(Ft,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:hc(this.value),style:this.offsetStyle},gt(o.value,()=>[this.dot?null:u(dY,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u(U2,{clsPrefix:t}):null):null}))}}),CG={fontWeightActive:"400"},MP=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},CG),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},SG={name:"Breadcrumb",common:nt,self:MP},kG=SG,_G={name:"Breadcrumb",common:tt,self:MP},RG=_G,PG=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[I("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),DP="n-breadcrumb",IP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),$G=J({name:"Breadcrumb",props:IP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Breadcrumb","-breadcrumb",PG,kG,e,t);ot(DP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:p,itemBorderRadius:v,itemColorHover:b,itemColorPressed:g,itemLineHeight:m}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":g,"--n-item-border-radius":v,"--n-font-weight-active":p,"--n-item-line-height":m}}),i=n?et("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),TG=lr?window:null,OG=(e=TG)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=F(t());return It(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),sc(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},FP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},zG=J({name:"BreadcrumbItem",props:FP,setup(e,{slots:t}){const n=Le(DP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=OG(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},gt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function ra(e){return pt(e,[255,255,255,.16])}function dd(e){return pt(e,[0,0,0,.12])}const AP="n-button-group",MG={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},BP=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:p,primaryColorPressed:v,borderColor:b,primaryColor:g,baseColor:m,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:_,successColorPressed:k,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:D,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:W,fontWeightStrong:K}=e;return Object.assign(Object.assign({},MG),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:W,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:W,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:W,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:p,textColorPressed:v,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:v,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:v,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${v}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${b}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:v,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:v,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:v,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${v}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:_,colorPressedSuccess:k,colorFocusSuccess:_,colorDisabledSuccess:w,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:w,textColorTextHoverSuccess:_,textColorTextPressedSuccess:k,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:k,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${k}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:D,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:D,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:D,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:D,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},DG={name:"Button",common:nt,self:BP},xr=DG,IG={name:"Button",common:tt,self(e){const t=BP(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},wr=IG,FG=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("color",[M("border",{borderColor:"var(--n-border-color)"}),I("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),mt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),I("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),I("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),mt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),I("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),I("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[I("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),lr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[On({top:"50%",originalTransform:"translateY(-50%)"})]),oP()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),I("block",` - display: flex; - width: 100%; - `),I("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),I("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),EP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!uP}}),LP=J({name:"Button",props:EP,setup(e){const t=F(null),n=F(null),r=F(!1),o=lt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(AP,{}),{mergedSizeRef:a}=Sn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:_}=i;if(_)return _;const{mergedSize:k}=x||{};return k?k.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&he(_,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:v,mergedRtlRef:b}=je(e),g=Se("Button","-button",FG,xr,e,v),m=en("Button",b,v),y=P(()=>{const x=g.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:_},self:k}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:D}=k,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:W,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?D:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",_e=me?"default":L;if(E){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":pe||k[ye("textColorText",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorTextPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorTextDisabled",_e)]}}else if(j||A){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":pe||k[ye("textColorGhost",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorGhostPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorGhostDisabled",_e)]}}else if(re){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?He(Z,{alpha:Number(k.colorOpacitySecondary)}):k.colorSecondary,"--n-color-hover":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-pressed":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryPressed)}):k.colorSecondaryPressed,"--n-color-focus":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-disabled":k.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe;ee?(we["--n-color"]=k.colorTertiary,we["--n-color-hover"]=k.colorTertiaryHover,we["--n-color-pressed"]=k.colorTertiaryPressed,we["--n-color-focus"]=k.colorSecondaryHover,we["--n-color-disabled"]=k.colorTertiary):(we["--n-color"]=k.colorQuaternary,we["--n-color-hover"]=k.colorQuaternaryHover,we["--n-color-pressed"]=k.colorQuaternaryPressed,we["--n-color-focus"]=k.colorQuaternaryHover,we["--n-color-disabled"]=k.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":W||k[ye("color",_e)],"--n-color-hover":W?ra(W):k[ye("colorHover",_e)],"--n-color-pressed":W?dd(W):k[ye("colorPressed",_e)],"--n-color-focus":W?ra(W):k[ye("colorFocus",_e)],"--n-color-disabled":W||k[ye("colorDisabled",_e)],"--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":V||(W?k.textColorPrimary:me?k.textColorTertiary:k[ye("textColor",_e)]),"--n-text-color-hover":V||(W?k.textColorHoverPrimary:k[ye("textColorHover",_e)]),"--n-text-color-pressed":V||(W?k.textColorPressedPrimary:k[ye("textColorPressed",_e)]),"--n-text-color-focus":V||(W?k.textColorFocusPrimary:k[ye("textColorFocus",_e)]),"--n-text-color-disabled":V||(W?k.textColorDisabledPrimary:k[ye("textColorDisabled",_e)])};let ve={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?ve={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ve={"--n-border":k[ye("border",_e)],"--n-border-hover":k[ye("borderHover",_e)],"--n-border-pressed":k[ye("borderPressed",_e)],"--n-border-focus":k[ye("borderFocus",_e)],"--n-border-disabled":k[ye("borderDisabled",_e)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:U,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:G,[ye("iconMargin",z)]:B,waveOpacity:N}=k,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:U,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:G};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":_,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),ve),te)}),C=p?et("button",P(()=>{let x="";const{dashed:w,type:_,ghost:k,text:T,color:$,round:R,circle:D,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),k&&(x+="b"),T&&(x+="c"),R&&(x+="d"),D&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ia($)),z&&(x+="k"+Ia(z));const{value:W}=a;return x+="l"+W[0],x+="m"+_[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:v,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:m,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=ra(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":dd(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:p?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=kt(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Io,{width:!0},{default:()=>kt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:Pa(this.$slots.default)?"0":""}},u(Do,null,{default:()=>this.loading?u(so,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u(U2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Tt=LP,lo=LP,vn="0!important",NP="-1px!important";function dl(e){return I(e+"-type",[O("& +",[S("button",{},[I(e+"-type",[M("border",{borderLeftWidth:vn}),M("state-border",{left:NP})])])])])}function ul(e){return I(e+"-type",[O("& +",[S("button",[I(e+"-type",[M("border",{borderTopWidth:vn}),M("state-border",{top:NP})])])])])}const AG=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[mt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${vn}; - border-top-right-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${vn}; - border-top-left-radius: ${vn}; - border-bottom-left-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${vn}; - margin-right: ${vn}; - border-radius: ${vn}; - `),dl("default"),I("ghost",[dl("primary"),dl("info"),dl("success"),dl("warning"),dl("error")])])])]),I("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-bottom-left-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-top-left-radius: ${vn}; - border-top-right-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${vn}; - border-radius: ${vn}; - `),ul("default"),I("ghost",[ul("primary"),ul("info"),ul("success"),ul("warning"),ul("error")])])])]),HP={size:{type:String,default:void 0},vertical:Boolean},g0=J({name:"ButtonGroup",props:HP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);return Xr("-button-group",AG,t),ot(AP,e),{rtlEnabled:en("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Lf=1901,Na=40,BG={date:P9,month:xh,year:_2,quarter:k2};function Wo(e,t,n){const r=BG[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function Fp(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:p,popoverColor:v}=e;return Object.assign(Object.assign({},HG),{borderRadius:t,borderColor:pt(h,l),borderColorModal:pt(p,l),borderColorPopover:pt(v,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:pt(h,f),cellColorHoverModal:pt(p,f),cellColorHoverPopover:pt(v,f),cellColor:h,cellColorModal:p,cellColorPopover:v,barColor:c})},jG={name:"Calendar",common:nt,peers:{Button:xr},self:jP},VG=jG,WG={name:"Calendar",common:tt,peers:{Button:wr},self:jP},UG=WG,KG=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),I("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),I("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),I("disabled",` - cursor: not-allowed; - `),I("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),Mo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),ei(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),VP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),qG=J({name:"Calendar",props:VP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Calendar","-calendar",KG,VG,e,n),{localeRef:i,dateLocaleRef:a}=Cn("DatePicker"),l=Date.now(),s=F(Fr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=F(e.defaultValue||null),d=St(xe(e,"value"),c);function f(m,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,m,y),x&&he(x,m,y),c.value=m}function h(){var m;const y=Fn(s.value,-1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function p(){var m;const y=Fn(s.value,1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function v(){var m;const{value:y}=s,C=nn(y),x=Xt(y),w=Fr(l).valueOf();s.value=w;const _=nn(w),k=Xt(w);(C!==_||x!==k)&&((m=e.onPanelChange)===null||m===void 0||m.call(e,{year:_,month:k+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:m},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:_,textColor:k,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:D,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:W,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":m,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":k,"--n-title-font-weight":T,"--n-title-font-size":_,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":D,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":W,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),g=r?et("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Nf(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:v,handlePrevClick:h,handleNextClick:p,mergedTheme:o,cssVars:r?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:p}=this;p==null||p();const v=o&&zl(o).valueOf(),b=nn(n),g=Xt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Da(a.header,{year:b,month:g},()=>{const m=on(n,"MMMM",{locale:c});return[l?`${m} ${b}`:`${b} ${m}`]})),u("div",{class:`${t}-calendar-header__extra`},u(g0,null,{default:()=>u(Ot,null,u(Tt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(u0,null)})}),u(Tt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Tt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ya,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:m,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var _;const{year:k,month:T,date:$}=m,R=on(y,"yyyy-MM-dd"),D=!C,z=(e==null?void 0:e(y))===!0,A=v===zl(y).valueOf();return u("div",{key:`${g}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,D&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Fr(y).valueOf();this.monthTs=j,D&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:nn(j),month:Xt(j)+1})),this.doUpdateValue(y,{year:k,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},on(y,"EEE",{locale:c}))),(_=a.default)===null||_===void 0?void 0:_.call(a,{year:k,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),WP=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}},YG={name:"ColorPicker",common:nt,peers:{Input:zr,Button:xr},self:WP},GG=YG,XG={name:"ColorPicker",common:tt,peers:{Input:Zr,Button:wr},self:WP},ZG=XG;function QG(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ec(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function JG(e){return e=Math.round(e),e>=360?359:e<0?0:e}function eX(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const tX={rgb:{hex(e){return Ti(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hex:{rgb(e){return _o(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=Cl(e);return Ti([...Sv(t,n,r),o])},rgb(e){const[t,n,r,o]=Cl(e);return _o([...Sv(t,n,r),o])},hsv(e){const[t,n,r,o]=Cl(e);return Ra([...E_(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=_a(e);return Ti([...mi(t,n,r),o])},rgb(e){const[t,n,r,o]=_a(e);return _o([...mi(t,n,r),o])},hsl(e){const[t,n,r,o]=_a(e);return $i([...Id(t,n,r),o])}}};function UP(e,t,n){return n=n||ec(e),n?n===t?e:tX[n][t](e):null}const hl="12px",nX=12,oa="6px",rX=6,oX="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",iX=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=JG((i.clientX-s-rX)/(l-nX)*360);e.onUpdateHue(c)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:hl,borderRadius:oa}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:oX,height:hl,borderRadius:oa,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:oa,right:oa,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${oa})`,borderRadius:oa,width:hl,height:hl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:oa,width:hl,height:hl}})))))}}),as="12px",aX=12,ia="6px",lX=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||!e.rgba||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-aX);e.onUpdateAlpha(eX(c))}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:as,borderRadius:ia},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:ia,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:ia,right:ia,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${ia})`,borderRadius:ia,width:as,height:as}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:_o(this.rgba),borderRadius:ia,width:as,height:as}}))))}}),ud="12px",fd="6px",sX=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,p=100*(h>1?1:h<0?0:h),v=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,v)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:ud,height:ud,borderRadius:fd,left:`calc(${this.displayedSv[0]}% - ${fd})`,bottom:`calc(${this.displayedSv[1]}% - ${fd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:fd,width:ud,height:ud}})))}}),m0="n-color-picker";function cX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function dX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function uX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function fX(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function hX(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const pX={paddingSmall:"0 4px"},DC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=F(""),{themeRef:n}=Le(m0,null);At(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=fX(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=dX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=uX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=hX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=cX(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(En,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:pX,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),vX=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?Ti:_s)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?Ra:Rv)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?_o:_v)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?$i:Pv)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(gP,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?Ti:_s)(r)}catch{}return u(DC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(DC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),gX=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(m0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?$i(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function mX(e,t){if(t==="hsv"){const[n,r,o,i]=_a(e);return _o([...mi(n,r,o),i])}return e}function bX(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const yX=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=ec(i);return{value:i,mode:a,legalValue:mX(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=bX(l):(Qn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:UP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),xX=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ec(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,UP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),wX=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[Dn(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),I("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),KP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Ht.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),CX=J({name:"ColorPicker",props:KP,setup(e,{slots:t}){const n=F(null);let r=null;const o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=Cn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=je(e),f=Se("ColorPicker","-color-picker",wX,GG,e,s);ot(m0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=F(e.defaultShow),p=St(xe(e,"show"),h);function v(N){const{onUpdateShow:te,"onUpdate:show":pe}=e;te&&he(te,N),pe&&he(pe,N),h.value=N}const{defaultValue:b}=e,g=F(b===void 0?QG(e.modes,e.showAlpha):b),m=St(xe(e,"value"),g),y=F([m.value]),C=F(0),x=P(()=>ec(m.value)),{modes:w}=e,_=F(ec(m.value)||w[0]||"rgb");function k(){const{modes:N}=e,{value:te}=_,pe=N.findIndex(Z=>Z===te);~pe?_.value=N[(pe+1)%N.length]:_.value="rgb"}let T,$,R,D,z,A,L,j;const E=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsv":return _a(N);case"hsl":return[T,$,R,j]=Cl(N),[...E_(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...wv(z,A,L),j]}}),W=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"rgb":case"hex":return Tn(N);case"hsv":return[T,$,D,j]=_a(N),[...mi(T,$,D),j];case"hsl":return[T,$,R,j]=Cl(N),[...Sv(T,$,R),j]}}),K=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsl":return Cl(N);case"hsv":return[T,$,D,j]=_a(N),[...Id(T,$,D),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...Cv(z,A,L),j]}}),Q=P(()=>{switch(_.value){case"rgb":case"hex":return W.value;case"hsv":return E.value;case"hsl":return K.value}}),V=F(0),re=F(1),ee=F([0,0]);function ue(N,te){const{value:pe}=E,Z=V.value,fe=pe?pe[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(Z,N,te),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,pe,Z,fe]=te,{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([N,pe,Z,fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(N,pe,Z),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(N,pe,Z),fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(N,pe,Z),fe]),"cursor");break}}function Ce(N){switch(_.value){case"hsv":[T,$,D]=E.value,we(Ra([T,$,D,N]),"cursor");break;case"rgb":[z,A,L]=W.value,we(_o([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=W.value,we(Ti([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we($i([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),pe(),Z(),g.value=N}function me(N){we(N,"input"),Rt(Oe)}function Oe(N=!0){const{value:te}=m;if(te){const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),pe(),Z()}}function _e(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function ve(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),v(!1)}function H(){const{value:N}=m,{onConfirm:te}=e;te&&te(N),v(!1)}const U=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[m.value],C.value=0)}),At(()=>{if(!(r&&r===m.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:pe,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:qe,[ye("fontSize",N)]:Ye}}=f.value;return{"--n-bezier":te,"--n-text-color":pe,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":Ye,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":qe,"--n-divider-color":Ae}}),G=d?et("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=W,{value:pe}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,G==null?void 0:G.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(sX,{clsPrefix:Pe,rgba:te,displayedHue:pe,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(iX,{clsPrefix:Pe,hue:pe,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(lX,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(xX,{clsPrefix:Pe,mode:_.value,color:W.value&&_s(W.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(vX,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:_.value,modes:fe,onUpdateMode:k,value:m.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(yX,{clsPrefix:Pe,mode:_.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Tt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Tt,{size:"small",onClick:Me,disabled:!m.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Tt,{size:"small",onClick:_e,disabled:!U.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Tt,{size:"small",onClick:ve,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:W,mergedShow:p,mergedDisabled:a,isMounted:Hn(),adjustedTo:Ht(e),mergedValue:m,handleTriggerClick(){v(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(vr(N))||v(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(gX,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Or,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(this.renderPanel(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),SX={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},qP=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:p,closeColorPressed:v,modalColor:b,boxShadow1:g,popoverColor:m,actionColor:y}=e;return Object.assign(Object.assign({},SX),{lineHeight:r,color:i,colorModal:b,colorPopover:m,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:p,closeColorPressed:v,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:g,borderRadius:n})},kX={name:"Card",common:nt,self:qP},YP=kX,_X={name:"Card",common:tt,self(e){const t=qP(e),{cardColor:n,modalColor:r,popoverColor:o}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=o,t}},GP=_X,RX=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[G_({background:"var(--n-color-modal)"}),I("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),I("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),I("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),I("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),I("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),I("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),I("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("embedded",` - background-color: var(--n-color-embedded); - `)]),Mo(S("card",` - background: var(--n-color-modal); - `,[I("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),ei(S("card",` - background: var(--n-color-popover); - `,[I("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),b0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},PX=Wn(b0),XP=Object.assign(Object.assign({},Se.props),b0),ZP=J({name:"Card",props:XP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=je(e),i=Se("Card","-card",RX,YP,e,r),a=en("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:p,titleTextColor:v,titleFontWeight:b,borderColor:g,actionColor:m,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:_,closeColorHover:k,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:D,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:W,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=Pi(W);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":p,"--n-line-height":C,"--n-action-color":m,"--n-title-text-color":v,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":_,"--n-close-color-hover":k,"--n-close-color-pressed":T,"--n-border-color":g,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":D,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?et("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},kt(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),kt(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),kt(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(ri,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),kt(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),kt(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),kt(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),QP=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),$X={name:"Carousel",common:nt,self:QP},TX=$X,OX={name:"Carousel",common:tt,self:QP},zX=OX;function MX(e){const{length:t}=e;return t>1&&(e.push(IC(e[0],0,"append")),e.unshift(IC(e[t-1],t-1,"prepend"))),e}function IC(e,t,n){return ar(e,{key:`carousel-item-duplicate-${t}-${n}`})}function FC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function Ap(e,t){return t?e+1:e}function DX(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function IX(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function FX(e,t){return t&&e>3?e-2:e}function AC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function BC(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function hd(e,t,n){return en?n:e}function AX(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const JP="n-carousel-methods",BX=e=>ot(JP,e),y0=(e="unknown",t="component")=>{const n=Le(JP);return n||Nn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},EX={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},LX=J({name:"CarouselDots",props:EX,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=y0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,p=h==="PageUp"||h==="ArrowUp",v=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",g=h==="PageDown"||h==="ArrowLeft",m=r.isVertical(),y=m?p:b,C=m?v:g;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return sb(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},EA(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),NX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),HX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),jX=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=je(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=y0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},NX),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},HX))}}),Su="CarouselItem",VX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===Su},e$=J({name:Su,setup(e){const{mergedClsPrefixRef:t}=je(e),n=y0(H1(Su),`n-${H1(Su)}`),r=F(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));It(()=>n.addSlide(r.value)),Bt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),WX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[I("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - background-color: var(--n-dot-color-active); - `)])]),I("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),I("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),I("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),I("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[I("current",` - transform: translateY(-50%) translateZ(0); - `),I("prev",` - transform: translateY(-100%) translateZ(-200px); - `),I("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),I("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),I("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),I("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),I("show-arrow",[I("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),I("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),I("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[I("current",` - opacity: 1; - pointer-events: auto; - `)])]),I("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[I("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),I("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),I("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),UX=["transitionDuration","transitionTimingFunction"],t$=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Bp=!1;const KX=J({name:"Carousel",props:t$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(null),i=F([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),p=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),v=P(()=>h.value?1:e.slidesPerView),b=P(()=>p.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),g=F({width:0,height:0}),m=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Ie}=b;if(Ie)return oe.map(Ze=>BC(Ze));const{value:Ne}=v,{value:Qe}=g,{value:Ue}=s;let le=Qe[Ue];if(Ne!=="auto"){const{spaceBetween:Ze}=e,bt=le-(Ne-1)*Ze,be=1/Math.max(1,Ne);le=bt*be}const De=Object.assign(Object.assign({},Qe),{[Ue]:le});return oe.map(()=>De)}),y=P(()=>{const{value:oe}=m;if(!oe.length)return[];const{centeredSlides:Ie,spaceBetween:Ne}=e,{value:Qe}=s,{[Qe]:Ue}=g.value;let le=0;return oe.map(({[Qe]:De})=>{let Ze=le;return Ie&&(Ze+=(De-Ue)/2),le+=De+Ne,Ze})}),C=F(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?xn(oe,UX):{}}),w=P(()=>h.value?0:AX(x.value.transitionDuration)),_=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Ie=!(b.value||v.value===1),Ne=De=>{if(Ie){const{value:Ze}=s;return{[Ze]:`${m.value[De][Ze]}px`}}};if(h.value)return oe.map((De,Ze)=>Ne(Ze));const{effect:Qe,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((De,Ze,bt)=>{const be=Object.assign(Object.assign({},Ne(bt)),{[`margin-${le}`]:`${Ue}px`});return De.push(be),C.value&&(Qe==="fade"||Qe==="card")&&Object.assign(be,x.value),De},[])}),k=P(()=>{const{value:oe}=p,{length:Ie}=i.value;if(oe!=="auto")return Math.max(Ie-oe,0)+1;{const{value:Ne}=m,{length:Qe}=Ne;if(!Qe)return Ie;const{value:Ue}=y,{value:le}=s,De=g.value[le];let Ze=Ne[Ne.length-1][le],bt=Qe;for(;bt>1&&ZeFX(k.value,f.value)),$=Ap(e.defaultIndex,f.value),R=F(FC($,k.value,f.value)),D=St(xe(e,"currentIndex"),R),z=P(()=>Ap(D.value,f.value));function A(oe){var Ie,Ne;oe=hd(oe,0,k.value-1);const Qe=FC(oe,k.value,f.value),{value:Ue}=D;Qe!==D.value&&(R.value=Qe,(Ie=e["onUpdate:currentIndex"])===null||Ie===void 0||Ie.call(e,Qe,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Qe,Ue))}function L(oe=z.value){return DX(oe,k.value,e.loop)}function j(oe=z.value){return IX(oe,k.value,e.loop)}function E(oe){const Ie=N(oe);return Ie!==null&&L()===Ie}function W(oe){const Ie=N(oe);return Ie!==null&&j()===Ie}function K(oe){return z.value===N(oe)}function Q(oe){return D.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Ie=hd(Ap(oe,f.value),0,k.value);(oe!==D.value||Ie!==z.value)&&A(Ie)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const _e=F({});function ve(oe,Ie=0){_e.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Ie}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),ve(Oe=0,oe))}function H(oe,Ie){const Ne=U(oe);Ne!==Oe&&Ie>0&&(me=!0),Oe=U(z.value),ve(Ne,Ie)}function U(oe){let Ie;return oe>=k.value-1?Ie=Y():Ie=y.value[oe]||0,Ie}function Y(){if(p.value==="auto"){const{value:oe}=s,{[oe]:Ie}=g.value,{value:Ne}=y,Qe=Ne[Ne.length-1];let Ue;if(Qe===void 0)Ue=Ie;else{const{value:le}=m;Ue=Qe+le[le.length-1][oe]}return Ue-Ie}else{const{value:oe}=y;return oe[k.value-1]||0}}const ce={currentIndexRef:D,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:W,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:G,removeSlide:B,onCarouselItemClick:pe};BX(ce);function G(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Ie=N(oe);Ie!==-1&&i.value.splice(Ie,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Ie=N(oe);if(Ie!==-1){const Ne=[_.value[Ie]],Qe=ce.isPrev(Ie),Ue=ce.isNext(Ie);return Qe&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),ac(Ne)}}function pe(oe,Ie){let Ne=!me&&!Ye&&!ft;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Ie.preventDefault(),Ie.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,qe=0,Ye=!1,ft=!1;function ht(oe){var Ie;if(Bp||!(!((Ie=o.value)===null||Ie===void 0)&&Ie.contains(vr(oe))))return;Bp=!0,Ye=!0,ft=!1,qe=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=AC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(_t("touchmove",document,vt,{passive:!0}),_t("touchend",document,Ve),_t("touchcancel",document,Ve)),e.draggable&&(_t("mousemove",document,vt),_t("mouseup",document,Ve))}function vt(oe){const{value:Ie}=l,{value:Ne}=s,Qe=AC(oe)?oe.touches[0]:oe,Ue=Ie?Qe.clientY-Pe:Qe.clientX-ge,le=g.value[Ne];Ae=hd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&ve(Oe-Ae,0)}function Ve(){const{value:oe}=z;let Ie=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Qe=[...y.value.slice(0,k.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Ie=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Ie=j(oe))}Ie!==null&&Ie!==oe?(ft=!0,A(Ie),Rt(()=>{(!f.value||R.value!==D.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){Ye&&(Bp=!1),Ye=!1,ge=0,Pe=0,Ae=0,qe=0,Ct("touchmove",document,vt),Ct("touchend",document,Ve),Ct("touchcancel",document,Ve),Ct("mousemove",document,vt),Ct("mouseup",document,Ve)}function We(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(_e.value.transitionDuration="0ms"),me=!1}function Ke(oe){if(oe.preventDefault(),me)return;let{deltaX:Ie,deltaY:Ne}=oe;oe.shiftKey&&!Ie&&(Ie=Ne);const Qe=-1,Ue=1,le=(Ie||Ne)>0?Ue:Qe;let De=0,Ze=0;l.value?Ze=le:De=le;const bt=10;(Ze*Ne>=bt||De*Ie>=bt)&&(le===Ue&&!re()?de():le===Qe&&!V()&&ue())}function X(){g.value=BC(r.value,!0),ne()}function q(){var oe,Ie;b.value&&((Ie=(oe=m.effect).scheduler)===null||Ie===void 0||Ie.call(oe),m.effect.run())}function ke(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}It(()=>{At(ne),requestAnimationFrame(()=>C.value=!0)}),Bt(()=>{Xe(),fe()}),cb(()=>{const{value:oe}=i,{value:Ie}=a,Ne=new Map,Qe=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leZe.el===oe[le]);De!==le&&(Ue=!0),Ne.set(oe[le],De)}Ue&&oe.sort((le,De)=>Qe(le)-Qe(De))}),it(z,(oe,Ie)=>{if(oe!==Ie)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=k;oe===Ne-2&&Ie===1?oe=0:oe===1&&Ie===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),it([f,p],()=>void Rt(()=>A(z.value))),it(y,()=>d.value&&Me(),{deep:!0}),it(d,oe=>{oe?Me():(me=!1,ve(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?ht:void 0,onMousedown:e.draggable?ht:void 0,onWheel:e.mousewheel?Ke:void 0})),ae=P(()=>Object.assign(Object.assign({},xn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:D.value})),ze=P(()=>({total:T.value,currentIndex:D.value,to:ce.to})),ie={getCurrentIndex:()=>D.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",WX,TX,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Ie,dotColor:Ne,dotColorActive:Qe,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:De,arrowColor:Ze}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Qe,"--n-dot-size":Ie,"--n-dot-line-width":le,"--n-dot-line-width-active":De,"--n-arrow-color":Ze}}),$e=n?et("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:D,realIndex:z,slideStyles:_,translateStyle:_e,slidesControlListeners:Ee,handleTransitionEnd:We,handleResize:X,handleSlideResize:q,handleMouseenter:ke,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:p}}=this,v=f&&Nr(f())||[];let b=qX(v);return b.length||(b=v.map(g=>u(e$,null,{default:()=>ar(g)}))),this.duplicatedable&&(b=MX(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(g=>u(jr,{onResize:this.handleSlideResize},{default:()=>g}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(jr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((g,m)=>u("div",{style:o[m],key:m},un(u(Ft,Object.assign({},s),{default:()=>g}),[[$r,this.isActive(m)]]))):b)}),this.showDots&&d.total>1&&Da(h,d,()=>[u(LX,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Da(p,c,()=>[u(jX,null)]))}});function qX(e){return e.reduce((t,n)=>(VX(n)&&t.push(n),t),[])}const YX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},n$=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:p,lineHeight:v}=e;return Object.assign(Object.assign({},YX),{labelLineHeight:v,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:p,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${He(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},GX={name:"Checkbox",common:nt,self:n$},jl=GX,XX={name:"Checkbox",common:tt,self(e){const{cardColor:t}=e,n=n$(e);return n.color="#0000",n.checkMarkColor=t,n}},Vl=XX,r$=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},ZX={name:"Cascader",common:nt,peers:{InternalSelectMenu:Hl,InternalSelection:Ch,Scrollbar:br,Checkbox:jl,Empty:oi},self:r$},QX=ZX,JX={name:"Cascader",common:tt,peers:{InternalSelectMenu:yc,InternalSelection:h0,Scrollbar:yr,Checkbox:Vl,Empty:oi},self:r$},eZ=JX;function pd(e){return e?e.map(t=>t.rawNode):null}function tZ(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:lm(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function lm(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const nZ=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),rZ=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),o$="n-checkbox-group",i$={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},a$=J({name:"CheckboxGroup",props:i$,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Sn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=F(e.defaultValue),a=P(()=>e.value),l=St(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:p,nTriggerFormChange:v}=n,{onChange:b,"onUpdate:value":g,onUpdateValue:m}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),m&&he(m,y,{actionType:"check",value:h}),g&&he(g,y,{actionType:"check",value:h}),p(),v(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),m&&he(m,y,{actionType:"uncheck",value:h}),g&&he(g,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,p(),v())}else f?(m&&he(m,[h],{actionType:"check",value:h}),g&&he(g,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],p(),v()):(m&&he(m,[],{actionType:"uncheck",value:h}),g&&he(g,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],p(),v())}return ot(o$,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),oZ=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),I("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),I("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),I("disabled",{cursor:"not-allowed"},[I("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),On({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),Mo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),ei(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),l$=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ii=J({name:"Checkbox",props:l$,setup(e){const t=F(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Sn(e,{mergedSize(_){const{size:k}=e;if(k!==void 0)return k;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(_){const{mergedSize:T}=_;if(T!==void 0)return T.value}return"medium"},mergedDisabled(_){const{disabled:k}=e;if(k!==void 0)return k;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return _?_.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(o$,null),c=F(e.defaultChecked),d=xe(e,"checked"),f=St(d,c),h=lt(()=>{if(s){const _=s.valueSetRef.value;return _&&e.value!==void 0?_.has(e.value):!1}else return f.value===e.checkedValue}),p=Se("Checkbox","-checkbox",oZ,jl,e,n);function v(_){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:k,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:D}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,_),$&&he($,z,_),k&&he(k,z,_),R(),D(),c.value=z}}function b(_){a.value||v(_)}function g(_){if(!a.value)switch(_.key){case" ":case"Enter":v(_)}}function m(_){switch(_.key){case" ":_.preventDefault()}}const y={focus:()=>{var _;(_=t.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=t.value)===null||_===void 0||_.blur()}},C=en("Checkbox",o,n),x=P(()=>{const{value:_}=l,{common:{cubicBezierEaseInOut:k},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:D,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:W,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:_e,[ye("fontSize",_)]:ve,[ye("size",_)]:Me}}=p.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":_e,"--n-size":Me,"--n-bezier":k,"--n-border-radius":T,"--n-border":W,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":D,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":ve,"--n-label-padding":me}}),w=r?et("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:p,labelId:Tr(),handleClick:b,handleKeyUp:g,handleKeyDown:m,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:p}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:p,onMousedown:()=>{_t("selectstart",window,v=>{v.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(Do,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},rZ):u("div",{key:"check",class:`${c}-checkbox-icon`},nZ)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),wc="n-cascader",EC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:p,mergedThemeRef:v,labelFieldRef:b,showCheckboxRef:g,updateHoverKey:m,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:_,doUncheck:k,renderLabelRef:T}=Le(wc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),D=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=lt(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=lt(()=>r.value?a.value.includes($.value):!1),j=lt(()=>l.value.includes($.value)),E=lt(()=>{const{value:me}=s;return me===null?!1:me===$.value}),W=lt(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:_e}=c,{value:ve}=h,{value:Me}=$,{value:H}=K,{value:U}=re;Zn(me,"checkbox")||(Oe&&!U&&!_e.has(Me)&&ve&&(C(Me),ve(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),m(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;m(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?k(Oe):_(Oe):(_(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:W,showCheckbox:g,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:p,mergedTheme:v,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:D,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(ii,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(dt,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(d0,null)}):null}):null:u(so,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(dt,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ya,null)})}))))}}),iZ=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(wc),o=F(null),i=F(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>hn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(ln,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(qo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(EC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(EC,{key:r.key,tmNode:r}))}))}}),aZ=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(wc),l=[],s=F(null),c=F(null);function d(){o()}ph(c,d);function f(g){var m;const{value:{loadingRequiredMessage:y}}=t;(m=s.value)===null||m===void 0||m.showOnce(y(g))}function h(g){i(g)}function p(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onFocus(g)}function v(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onBlur(g)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:p,handleFocusout:v,handleClickOutside:h},{scroll(g,m,y){const C=l[g];C&&C.scroll(m,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?un(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(iZ,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(Vq,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},gt(this.$slots.empty,()=>[u(Ui,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),kt(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Fo,{onFocus:this.onTabout})),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),lZ=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(wc),p=F(null),v=P(()=>tZ(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:D}=e;return(z,A,L)=>L.some(j=>j[D]&&~j[D].indexOf(z))}),g=P(()=>{const{pattern:R}=e,{value:D}=b;return(R?v.value.filter(z=>D(R,z.rawNode,z.path)):v.value).map(z=>({value:z.value,label:z.label}))}),m=P(()=>co(g.value,Sh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:D}=n;Array.isArray(D)?D.includes(R.key)?d(R.key):f(R.key):D===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=p.value)===null||R===void 0||R.prev()}function _(){var R;(R=p.value)===null||R===void 0||R.next()}function k(){var R;if(p){const D=(R=p.value)===null||R===void 0?void 0:R.getPendingTmNode();return D&&x(D),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:p,selectTreeMate:m,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:_,enter:k})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?un(u(xc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>gt(r["not-found"],()=>[])}),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),sZ=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[Dn({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[I("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[I("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[I("checkmark",{color:"var(--n-option-check-mark-color)"},[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),I("arrow",{color:"var(--n-option-arrow-color)"})])]),I("selected",{color:"var(--n-option-text-color-active)"}),I("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),I("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),I("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[I("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),s$=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Ht.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),cZ=J({name:"Cascader",props:s$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=je(e),a=Se("Cascader","-cascader",sZ,QX,e,r),{localeRef:l}=Cn("Cascader"),s=F(e.defaultValue),c=P(()=>e.value),d=St(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=F(""),p=Sn(e),{mergedSizeRef:v,mergedDisabledRef:b,mergedStatusRef:g}=p,m=F(null),y=F(null),C=F(null),x=F(null),w=F(null),_=F(new Set),k=F(null),T=F(null),$=Ht(e),R=F(!1),D=ie=>{_.value.add(ie)},z=ie=>{_.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return co(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),W=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!_.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);xa(e.options)&&it(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),_e.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Qe}=p;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Ie&&he(Ie,ie,Te,se),s.value=ie,Ne(),Qe()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Ie,getNode:Ne,getPath:Qe}}=A;if($e)try{const{checkedKeys:Ue}=Ie(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var De;return pd((De=Qe(le))===null||De===void 0?void 0:De.treeNodePath)})),oe&&G(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof A2){if(m.value){const le=Ne(ie);le!==null&&m.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,pd(Qe(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,pd((Te=Qe(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Ie}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Qe=>{var Ue;return((Ue=oe(Qe))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Qe=>{var Ue;return pd((Ue=Ie(Qe))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Ie}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Qe=>{const Ue=Ie(Qe);return Ue===null?{label:String(Qe),value:Qe}:{label:ie?lm(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Ie}=A.value;if(oe===null)return null;const Ne=Ie(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?lm(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),_e=F(!1),ve=xe(e,"show"),Me=St(ve,_e),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),U=P(()=>!!(e.filterable&&h.value));it(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,Rt(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=m.value)===null||se===void 0||se.scroll(oe.level,oe.index,hn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=p;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=p;Te&&he(Te,ie),se()}function G(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&G())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function pe(ie){var Te;U.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(vr(ie))||te())}function Z(ie){!U.value||pe(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Ie}=A;switch(ie){case"prev":if(oe!==null){const Ne=Ie.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=m.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"next":if(oe===null){const Ne=Ie.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=m.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,hn(Q.value)))}else{const Ne=Ie.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=m.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"child":if(oe!==null){const Ne=Ie.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Qe=Ie.getChild(oe);Qe!==null&&(ue(oe),ee(Qe.key))}else{const{value:Qe}=_;if(!Qe.has(oe)){D(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Ie.getParent(oe);if(Ne!==null){ee(Ne.key);const Qe=Ne.getParent();ue(Qe===null?null:Qe.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!Zn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=U,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Ie=Ce(oe);!e.multiple&&Ie&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(U.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?U.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!U.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!U.value&&ne("child");break;case"Escape":Me.value&&(Fa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function qe(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function Ye(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ft(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function ht(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function vt(ie){Zn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),G())}function Ve(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function We(ie){h.value=ie.target.value}function Ke(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function X(){var ie;(ie=k.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function ke(){Me.value&&(U.value?X():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));ot(wc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:_,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:Hn(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:X,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:D,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:pe,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Ie,menuBoxShadow:Ne,menuDividerColor:Qe,menuBorderRadius:Ue,menuHeight:le,optionColorHover:De,optionHeight:Ze,optionFontSize:bt,loadingColor:be,columnWidth:Fe},common:{cubicBezierEaseInOut:Je}}=a.value;return{"--n-bezier":Je,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":Fe,"--n-menu-color":Ie,"--n-menu-divider-color":Qe,"--n-option-height":Ze,"--n-option-font-size":bt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":De,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":He(Ie,{alpha:.75}),"--n-loading-color":be}}),ze=i?et("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:ke,mergedStatus:g,selectMenuFollowerRef:k,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:m,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:U,pattern:h,treeMate:A,mergedSize:v,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:W,handleMenuTabout:Ve,handleMenuFocus:ft,handleMenuBlur:ht,handleMenuKeydown:Pe,handleMenuMousedown:vt,handleTriggerFocus:qe,handleTriggerBlur:Ye,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:Ke,handlePatternInput:We,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Or,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(aZ,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(lZ,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),dZ={name:"Code",common:tt,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},c$=dZ,uZ=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},fZ={name:"Code",common:nt,self:uZ},d$=fZ,hZ=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[I("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),I("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),u$=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),f$=J({name:"Code",props:u$,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(),i=F(null),a=n?{value:void 0}:R2(e),l=(p,v,b)=>{const{value:g}=a;return!g||!(p&&g.getLanguage(p))?null:g.highlight(b?v.trim():v,{language:p}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:p}=i;if(!p)return;const{language:v}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(v){const m=l(v,b,e.trim);if(m!==null){if(e.inline)p.innerHTML=m;else{const y=p.querySelector(".__code__");y&&p.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=m,p.appendChild(C)}return}}if(e.inline){p.textContent=b;return}const g=p.querySelector(".__code__");if(g)g.textContent=b;else{const m=document.createElement("pre");m.className="__code__",m.textContent=b,p.innerHTML="",p.appendChild(m)}};It(c),it(xe(e,"language"),c),it(xe(e,"code"),c),n||it(a,c);const d=Se("Code","-code",hZ,d$,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:p,fontFamilyMono:v},self:{textColor:b,fontSize:g,fontWeightStrong:m,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":_,"hue-4":k,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":D}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:g,"--n-font-family":v,"--n-font-weight-strong":m,"--n-bezier":p,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":_,"--n-hue-4":k,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":D,"--n-line-number-text-color":y}}),h=o?et("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let p=1;const v=[];let b=!1;for(const g of e.code)g===` -`?(b=!0,v.push(p++)):b=!1;return b||v.push(p++),v.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),h$=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},pZ={name:"Collapse",common:nt,self:h$},vZ=pZ,gZ={name:"Collapse",common:tt,self:h$},mZ=gZ,bZ=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[I("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),I("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),I("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),Go({duration:"0.15s"})]),I("active",[M("header",[I("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),p$=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),v$="n-collapse",yZ=J({name:"Collapse",props:p$,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=F(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=St(a,i),s=Se("Collapse","-collapse",bZ,vZ,e,n);function c(b){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:m,onExpandedNamesChange:y}=e;m&&he(m,b),g&&he(g,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:g}=e;g&&he(g,b)}function f(b,g,m){const{accordion:y}=e,{value:C}=l;if(y)b?(c([g]),d({name:g,expanded:!0,event:m})):(c([]),d({name:g,expanded:!1,event:m}));else if(!Array.isArray(C))c([g]),d({name:g,expanded:!0,event:m});else{const x=C.slice(),w=x.findIndex(_=>g===_);~w?(x.splice(w,1),c(x),d({name:g,expanded:!1,event:m})):(x.push(g),c(x),d({name:g,expanded:!0,event:m}))}}ot(v$,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=en("Collapse",o,n),p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:g,dividerColor:m,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:_,titleFontSize:k,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":_,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":m,"--n-title-font-size":k,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":g,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),v=r?et("collapse",void 0,p,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),xZ=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Q_(xe(e,"show"))}},render(){return u(Io,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?un(i,[[$r,e]]):e?i:null}})}}),g$={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},wZ=J({name:"CollapseItem",props:g$,setup(e){const{mergedRtlRef:t}=je(e),n=Tr(),r=lt(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(v$);o||Nn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(p=>p===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:en("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Da(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Da(c,{collapsed:r},()=>{var d;return[u(dt,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(u0,null):u(Ya,null)})]})),n==="left"&&l),NA(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(xZ,{clsPrefix:i,displayDirective:o,show:!r},t))}}),CZ=S("collapse-transition",{width:"100%"},[Go()]),m$=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},SZ={name:"CollapseTransition",common:nt,self:m$},kZ=SZ,_Z={name:"CollapseTransition",common:tt,self:m$},RZ=_Z,b$=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),PZ=J({name:"CollapseTransition",props:b$,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("CollapseTransition","-collapse-transition",CZ,kZ,e,t),i=en("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?et("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Io,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Gn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),y$={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Qn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},x$=J({name:"ConfigProvider",alias:["App"],props:y$,setup(e){const t=Le(Ur,null),n=P(()=>{const{theme:v}=e;if(v===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return v===void 0?b:b===void 0?v:Object.assign({},b,v)}),r=P(()=>{const{themeOverrides:v}=e;if(v!==null){if(v===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?v:bl({},b,v)}}}),o=lt(()=>{const{namespace:v}=e;return v===void 0?t==null?void 0:t.mergedNamespaceRef.value:v}),i=lt(()=>{const{bordered:v}=e;return v===void 0?t==null?void 0:t.mergedBorderedRef.value:v}),a=P(()=>{const{icons:v}=e;return v===void 0?t==null?void 0:t.mergedIconsRef.value:v}),l=P(()=>{const{componentOptions:v}=e;return v!==void 0?v:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:v}=e;return v!==void 0?v:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var v;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const g={};for(const m of b)g[m.name]=$u(m),(v=m.peers)===null||v===void 0||v.forEach(y=>{y.name in g||(g[y.name]=$u(y))});return g}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=P(()=>{const{value:v}=n,{value:b}=r,g=b&&Object.keys(b).length!==0,m=v==null?void 0:v.name;return m?g?`${m}-${qs(JSON.stringify(r.value))}`:m:g?qs(JSON.stringify(r.value)):""});return ot(Ur,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedLocaleRef.value:v}),mergedDateLocaleRef:P(()=>{const{dateLocale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedDateLocaleRef.value:v}),mergedHljsRef:P(()=>{const{hljs:v}=e;return v===void 0?t==null?void 0:t.mergedHljsRef.value:v}),mergedKatexRef:P(()=>{const{katex:v}=e;return v===void 0?t==null?void 0:t.mergedKatexRef.value:v}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||d2}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),w$={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},$Z=J({name:"Countdown",props:w$,setup(e){let t=null,n=0,r=!1;const o=F(0);At(()=>{o.value=e.duration});let i=-1;function a(p){return e.duration-n+i-p}function l(p){const v=Math.floor(p/36e5),b=Math.floor(p%36e5/6e4),g=Math.floor(p%6e4/1e3),m=Math.floor(p%1e3);return{hours:v,minutes:b,seconds:g,milliseconds:m}}function s(p){const{hours:v,minutes:b,seconds:g,milliseconds:m}=p,{precision:y}=e;switch(y){case 0:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}`;default:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}.${String(Math.floor(m/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var p;const{precision:v}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(p=e.onFinish)===null||p===void 0||p.call(e));return}let g;switch(v){case 3:case 2:g=b%34;break;case 1:g=b%100;break;default:g=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},g)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};It(()=>{At(()=>{if(e.active)i=performance.now(),c();else{const p=performance.now();i!==-1&&(n+=p-i),d()}})}),Bt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),TZ=e=>1-Math.pow(1-e,5);function OZ(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*TZ(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const C$={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},zZ=J({name:"NumberAnimation",props:C$,setup(e){const{localeRef:t}=Cn("name"),{duration:n}=e,r=F(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,p=e.to)=>{i=!0,r.value=e.from,h!==p&&OZ({from:h,to:p,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const v=P7(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),g=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,m=e.showSeparator?b.format(Number(v[0])):v[0],y=v[1];return{integer:m,decimal:y,decimalSeparator:g}});function d(){i||s()}return It(()=>{At(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),MZ={name:"Popselect",common:tt,peers:{Popover:Ja,InternalSelectMenu:yc}},S$=MZ;function DZ(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const IZ={name:"Popselect",common:nt,peers:{Popover:Qa,InternalSelectMenu:Hl},self:DZ},x0=IZ,k$="n-popselect",FZ=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),w0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},LC=Wn(w0),AZ=J({name:"PopselectPanel",props:w0,setup(e){const t=Le(k$),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Popselect","-pop-select",FZ,x0,t.props,n),i=P(()=>co(e.options,Sh("value","children")));function a(h,p){const{onUpdateValue:v,"onUpdate:value":b,onChange:g}=e;v&&he(v,h,p),b&&he(b,h,p),g&&he(g,h,p)}function l(h){c(h.key)}function s(h){Zn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const v=[],b=[];let g=!0;e.value.forEach(m=>{if(m===h){g=!1;return}const y=p(m);y&&(v.push(y.key),b.push(y.rawNode))}),g&&(v.push(h),b.push(p(h).rawNode)),a(v,b)}else{const v=p(h);v&&a([h],[v.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const v=p(h);v&&a(h,v.rawNode);const{"onUpdate:show":b,onUpdateShow:g}=t.props;b&&he(b,!1),g&&he(g,!1),t.setShow(!1)}Rt(()=>{t.syncPosition()})}it(xe(e,"options"),()=>{Rt(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?et("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(xc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),_$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Va(La,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},La.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),w0),R$=J({name:"Popselect",props:_$,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,x0,e),n=F(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return ot(k$,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(AZ,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},xn(this.$props,LC),{ref:H_(r),onMouseenter:Rs([i,l.onMouseenter]),onMouseleave:Rs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(el,Object.assign({},Va(this.$props,LC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function P$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const BZ={name:"Select",common:nt,peers:{InternalSelection:Ch,InternalSelectMenu:Hl},self:P$},$$=BZ,EZ={name:"Select",common:tt,peers:{InternalSelection:h0,InternalSelectMenu:yc},self:P$},T$=EZ,LZ=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),O$=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),z$=J({name:"Select",props:O$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Select","-select",LZ,$$,e,t),a=F(e.defaultValue),l=xe(e,"value"),s=St(l,a),c=F(!1),d=F(""),f=P(()=>{const{valueField:X,childrenField:q}=e,ke=Sh(X,q);return co(z.value,ke)}),h=P(()=>MY(R.value,e.valueField,e.childrenField)),p=F(!1),v=St(xe(e,"show"),p),b=F(null),g=F(null),m=F(null),{localeRef:y}=Cn("Select"),C=P(()=>{var X;return(X=e.placeholder)!==null&&X!==void 0?X:y.value.placeholder}),x=Ii(e,["items","options"]),w=[],_=F([]),k=F([]),T=F(new Map),$=P(()=>{const{fallbackOption:X}=e;if(X===void 0){const{labelField:q,valueField:ke}=e;return Be=>({[q]:String(Be),[ke]:Be})}return X===!1?!1:q=>Object.assign(X(q),{value:q})}),R=P(()=>k.value.concat(_.value).concat(x.value)),D=P(()=>{const{filter:X}=e;if(X)return X;const{labelField:q,valueField:ke}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return zp(Be,ae);const ze=Ee[ke];return typeof ze=="string"?zp(Be,ze):typeof ze=="number"?zp(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:X}=R,{value:q}=d;return!q.length||!e.filterable?X:zY(X,D.value,q,e.childrenField)}});function A(X){const q=e.remote,{value:ke}=T,{value:Be}=h,{value:Ee}=$,ae=[];return X.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&ke.has(ze))ae.push(ke.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:X}=s;return Array.isArray(X)?A(X):[]}return null}),j=P(()=>{const{value:X}=s;return!e.multiple&&!Array.isArray(X)?X===null?null:A([X])[0]||null:null}),E=Sn(e),{mergedSizeRef:W,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(X,q){const{onChange:ke,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;ke&&he(ke,X,q),Ee&&he(Ee,X,q),Be&&he(Be,X,q),a.value=X,ae(),ze()}function re(X){const{onBlur:q}=e,{nTriggerFormBlur:ke}=E;q&&he(q,X),ke()}function ee(){const{onClear:X}=e;X&&he(X)}function ue(X){const{onFocus:q,showOnFocus:ke}=e,{nTriggerFormFocus:Be}=E;q&&he(q,X),Be(),ke&&Oe()}function de(X){const{onSearch:q}=e;q&&he(q,X)}function Ce(X){const{onScroll:q}=e;q&&he(q,X)}function we(){var X;const{remote:q,multiple:ke}=e;if(q){const{value:Be}=T;if(ke){const{valueField:Ee}=e;(X=L.value)===null||X===void 0||X.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(X){const{onUpdateShow:q,"onUpdate:show":ke}=e;q&&he(q,X),ke&&he(ke,X),p.value=X}function Oe(){K.value||(me(!0),p.value=!0,e.filterable&&vt())}function _e(){me(!1)}function ve(){d.value="",k.value=w}const Me=F(!1);function H(){e.filterable&&(Me.value=!0)}function U(){e.filterable&&(Me.value=!1,v.value||ve())}function Y(){K.value||(v.value?e.filterable?vt():_e():Oe())}function ce(X){var q,ke;!((ke=(q=m.value)===null||q===void 0?void 0:q.selfRef)===null||ke===void 0)&&ke.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function G(X){ue(X),c.value=!0}function B(X){c.value=!0}function N(X){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function te(){var X;(X=b.value)===null||X===void 0||X.focus(),_e()}function pe(X){var q;v.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(vr(X))||_e())}function Z(X){if(!Array.isArray(X))return[];if($.value)return Array.from(X);{const{remote:q}=e,{value:ke}=h;if(q){const{value:Be}=T;return X.filter(Ee=>ke.has(Ee)||Be.has(Ee))}else return X.filter(Be=>ke.has(Be))}}function fe(X){ne(X.rawNode)}function ne(X){if(K.value)return;const{tag:q,remote:ke,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!ke){const{value:ae}=k,ze=ae[0]||null;if(ze){const ie=_.value;ie.length?ie.push(ze):_.value=[ze],k.value=w}}if(ke&&T.value.set(X[Ee],X),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===X[Ee]);if(~ze){if(ae.splice(ze,1),q&&!ke){const ie=ge(X[Ee]);~ie&&(_.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(X[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!ke){const ae=ge(X[Ee]);~ae?_.value=[_.value[ae]]:_.value=w}ht(),_e(),V(X[Ee],X)}}function ge(X){return _.value.findIndex(ke=>ke[e.valueField]===X)}function Pe(X){v.value||Oe();const{value:q}=X.target;d.value=q;const{tag:ke,remote:Be}=e;if(de(q),ke&&!Be){if(!q){k.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||_.value.some(ie=>ie[ze]===ae[ze])?k.value=w:k.value=[ae]}}function Ae(X){X.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&_e(),ee(),q?V([],[]):V(null,null)}function qe(X){!Zn(X,"action")&&!Zn(X,"empty")&&X.preventDefault()}function Ye(X){Ce(X)}function ft(X){var q,ke,Be,Ee,ae;switch(X.key){case" ":if(e.filterable)break;X.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(v.value){const ze=(ke=m.value)===null||ke===void 0?void 0:ke.getPendingTmNode();ze?fe(ze):e.filterable||(_e(),ht())}else if(Oe(),e.tag&&Me.value){const ze=k.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}X.preventDefault();break;case"ArrowUp":if(X.preventDefault(),e.loading)return;v.value&&((Be=m.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(X.preventDefault(),e.loading)return;v.value?(Ee=m.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":v.value&&(Fa(X),_e()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function ht(){var X;(X=b.value)===null||X===void 0||X.focus()}function vt(){var X;(X=b.value)===null||X===void 0||X.focusInput()}function Ve(){var X;!v.value||(X=g.value)===null||X===void 0||X.syncPosition()}we(),it(xe(e,"options"),we);const Xe={focus:()=>{var X;(X=b.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=b.value)===null||X===void 0||X.blur()}},We=P(()=>{const{self:{menuBoxShadow:X}}=i.value;return{"--n-menu-box-shadow":X}}),Ke=o?et("select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:Hn(),triggerRef:b,menuRef:m,pattern:d,uncontrolledShow:p,mergedShow:v,adjustedTo:Ht(e),uncontrolledValue:a,mergedValue:s,followerRef:g,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:W,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:U,handleTriggerOrMenuResize:Ve,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:G,handleKeydown:ft,handleMenuAfterLeave:ve,handleMenuClickOutside:pe,handleMenuScroll:Ye,handleMenuKeydown:ft,handleMenuMousedown:qe,mergedTheme:i,cssVars:o?void 0:We,themeClass:Ke==null?void 0:Ke.themeClass,onRender:Ke==null?void 0:Ke.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Or,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),un(u(xc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[$r,this.mergedShow],[gr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[gr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),NZ={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},M$=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:p,heightMedium:v}=e;return Object.assign(Object.assign({},NZ),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:p,itemSizeLarge:v,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},HZ={name:"Pagination",common:nt,peers:{Select:$$,Input:zr,Popselect:x0},self:M$},D$=HZ,jZ={name:"Pagination",common:tt,peers:{Select:T$,Input:Zr,Popselect:S$},self(e){const{primaryColor:t,opacity3:n}=e,r=He(t,{alpha:Number(n)}),o=M$(e);return o.itemBorderActive=`1px solid ${r}`,o.itemBorderDisabled="1px solid #0000",o}},I$=jZ;function VZ(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,p=!1;c>l+2&&(h=!0),d=l+1&&v.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)v.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return p?(o=!0,a=d+1,v.push({type:"fast-forward",active:!1,label:void 0,options:NC(d+1,s-1)})):d===s-2&&v[v.length-1].label!==s-1&&v.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),v[v.length-1].label!==s&&v.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:v}}function NC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const HC=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,jC=[I("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],WZ=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[I("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),mt("disabled",[I("hover",HC,jC),O("&:hover",HC,jC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[I("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),I("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[I("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),I("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),I("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),F$=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ht.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),A$=J({name:"Pagination",props:F$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Pagination","-pagination",WZ,D$,e,n),{localeRef:a}=Cn("Pagination"),l=F(null),s=F(e.defaultPage),d=F((()=>{const{defaultPageSize:ve}=e;if(ve!==void 0)return ve;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=St(xe(e,"page"),s),h=St(xe(e,"pageSize"),d),p=P(()=>{const{itemCount:ve}=e;if(ve!==void 0)return Math.max(1,Math.ceil(ve/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),v=F("");At(()=>{e.simple,v.value=String(f.value)});const b=F(!1),g=F(!1),m=F(!1),y=F(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{g.value=!0,E()},_=()=>{g.value=!1,E()},k=ve=>{W(ve)},T=P(()=>VZ(f.value,p.value,e.pageSlot));At(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,m.value=!1):(g.value=!1,y.value=!1)});const $=P(()=>{const ve=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${ve}`,value:Me}:Me)}),R=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.inputSize)||$v(e.size)}),D=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.selectSize)||$v(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const ve=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&ve>Me-1?Me-1:ve}),L=P(()=>{const{itemCount:ve}=e;return ve!==void 0?ve:(e.pageCount||1)*h.value}),j=en("Pagination",o,n),E=()=>{Rt(()=>{var ve;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(ve=l.value)===null||ve===void 0||ve.offsetWidth,Me.classList.remove("transition-disabled"))})};function W(ve){if(ve===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:U,simple:Y}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),s.value=ve,Y&&(v.value=String(ve))}function K(ve){if(ve===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:U}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),d.value=ve,p.value{f.value,h.value,E()});const Oe=P(()=>{const{size:ve}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:U,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:G,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:pe,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:qe,itemBorder:Ye,itemBorderHover:ft,itemBorderPressed:ht,itemBorderActive:vt,itemBorderDisabled:Ve,itemBorderRadius:Xe,jumperTextColor:We,jumperTextColorDisabled:Ke,buttonColor:X,buttonColorHover:q,buttonColorPressed:ke,[ye("itemPadding",ve)]:Be,[ye("itemMargin",ve)]:Ee,[ye("inputWidth",ve)]:ae,[ye("selectWidth",ve)]:ze,[ye("inputMargin",ve)]:ie,[ye("selectMargin",ve)]:Te,[ye("jumperFontSize",ve)]:se,[ye("prefixMargin",ve)]:$e,[ye("suffixMargin",ve)]:oe,[ye("itemSize",ve)]:Ie,[ye("buttonIconSize",ve)]:Ne,[ye("itemFontSize",ve)]:Qe,[`${ye("itemMargin",ve)}Rtl`]:Ue,[`${ye("inputMargin",ve)}Rtl`]:le},common:{cubicBezierEaseInOut:De}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Qe,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Ie,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":pe,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":qe,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":Ye,"--n-item-border-hover":ft,"--n-item-border-disabled":Ve,"--n-item-border-active":vt,"--n-item-border-pressed":ht,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":De,"--n-jumper-font-size":se,"--n-jumper-text-color":We,"--n-jumper-text-color-disabled":Ke,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":G,"--n-button-color-hover":q,"--n-button-color":X,"--n-button-color-pressed":ke,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":U}}),_e=r?et("pagination",P(()=>{let ve="";const{size:Me}=e;return ve+=Me[0],ve}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:v,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:D,mergedTheme:i,mergedPageCount:p,startIndex:z,endIndex:A,showFastForwardMenu:m,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:g,handleMenuSelect:k,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:_,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:_e==null?void 0:_e.themeClass,onRender:_e==null?void 0:_e.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:p,pageSizeOptions:v,jumperValue:b,simple:g,prev:m,next:y,prefix:C,suffix:x,label:w,goto:_,handleJumperInput:k,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:D,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=m||e.prev,W=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,g&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u(Ot,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ni,null):u(Bi,null)})),g?u(Ot,null,u("div",{class:`${t}-pagination-quick-jumper`},u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ei,null):u(Li,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const _e=this.fastBackwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Li,null):u(Ei,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-backward",node:_e,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=_e,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(R$,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!W&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:D},W?W({page:o,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Bi,null):u(Ni,null)})));case"size-picker":return!g&&l?u(z$,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:v,value:p,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!g&&s?u("div",{class:`${t}-pagination-quick-jumper`},_?_():gt(this.$slots.goto,()=>[d.goto]),u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),B$={padding:"8px 14px"},UZ={name:"Tooltip",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:r,textColor:o})}},kh=UZ,KZ=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:pt(r,"rgba(0, 0, 0, .85)"),textColor:r})},qZ={name:"Tooltip",common:nt,peers:{Popover:Qa},self:KZ},_h=qZ,YZ={name:"Ellipsis",common:tt,peers:{Tooltip:kh}},E$=YZ,GZ={name:"Ellipsis",common:nt,peers:{Tooltip:_h}},L$=GZ,N$={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},XZ={name:"Radio",common:tt,self(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},H$=XZ,ZZ=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},QZ={name:"Radio",common:nt,self:ZZ},C0=QZ,JZ={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},j$=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:v,heightHuge:b,textColor3:g,opacityDisabled:m}=e;return Object.assign(Object.assign({},JZ),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:v,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:He(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},eQ={name:"Dropdown",common:nt,peers:{Popover:Qa},self:j$},S0=eQ,tQ={name:"Dropdown",common:tt,peers:{Popover:Ja},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,o=j$(e);return o.colorInverted=r,o.optionColorActive=He(n,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},k0=tQ,nQ={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},V$=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,dividerColor:g,heightSmall:m,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},nQ),{actionDividerColor:g,lineHeight:h,borderRadius:f,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,borderColor:pt(t,g),tdColorHover:pt(t,l),tdColorStriped:pt(t,C),thColor:pt(t,a),thColorHover:pt(pt(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:pt(n,g),tdColorHoverModal:pt(n,l),tdColorStripedModal:pt(n,C),thColorModal:pt(n,a),thColorHoverModal:pt(pt(n,a),l),tdColorModal:n,borderColorPopover:pt(r,g),tdColorHoverPopover:pt(r,l),tdColorStripedPopover:pt(r,C),thColorPopover:pt(r,a),thColorHoverPopover:pt(pt(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:y})},rQ={name:"DataTable",common:nt,peers:{Button:xr,Checkbox:jl,Radio:C0,Pagination:D$,Scrollbar:br,Empty:oi,Popover:Qa,Ellipsis:L$,Dropdown:S0},self:V$},oQ=rQ,iQ={name:"DataTable",common:tt,peers:{Button:wr,Checkbox:Vl,Radio:H$,Pagination:I$,Scrollbar:yr,Empty:Za,Popover:Ja,Ellipsis:E$,Dropdown:k0},self(e){const t=V$(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},aQ=iQ,W$=Object.assign(Object.assign({},La),Se.props),Rh=J({name:"Tooltip",props:W$,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,_h,e),n=F(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(el,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),lQ=S("ellipsis",{overflow:"hidden"},[mt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),I("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),I("cursor-pointer",` - cursor: pointer; - `)]);function VC(e){return`${e}-ellipsis--line-clamp`}function WC(e,t){return`${e}-ellipsis--cursor-${t}`}const U$=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),_0=J({name:"Ellipsis",inheritAttrs:!1,props:U$,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=je(e),o=Se("Ellipsis","-ellipsis",lQ,L$,e,r),i=F(null),a=F(null),l=F(null),s=F(!1),c=P(()=>{const{lineClamp:g}=e,{value:m}=s;return g!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":g}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let g=!1;const{value:m}=s;if(m)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(p(y),C!==void 0)g=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(g=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}v(y,g)}return g}const f=P(()=>e.expandTrigger==="click"?()=>{var g;const{value:m}=s;m&&((g=l.value)===null||g===void 0||g.setShow(!1)),s.value=!m}:void 0);lc(()=>{var g;e.tooltip&&((g=l.value)===null||g===void 0||g.setShow(!1))});const h=()=>u("span",Object.assign({},Gn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?VC(r.value):void 0,e.expandTrigger==="click"?WC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(g){if(!g)return;const m=c.value,y=VC(r.value);e.lineClamp!==void 0?b(g,y,"add"):b(g,y,"remove");for(const C in m)g.style[C]!==m[C]&&(g.style[C]=m[C])}function v(g,m){const y=WC(r.value,"pointer");e.expandTrigger==="click"&&!m?b(g,y,"add"):b(g,y,"remove")}function b(g,m,y){y==="add"?g.classList.contains(m)||g.classList.add(m):g.classList.contains(m)&&g.classList.remove(m)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(Rh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),sQ=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),K$=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),uo="n-data-table",cQ=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(uo),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(sQ,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(dt,{clsPrefix:n},{default:()=>u($2,null)}))}}),dQ=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),Ph={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},q$="n-radio-group";function Y$(e){const t=Sn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=F(null),i=F(null),a=Le(q$,null),l=F(e.defaultChecked),s=xe(e,"checked"),c=St(s,l),d=lt(()=>a?a.valueRef.value===e.value:c.value),f=lt(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=F(!1);function p(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function v(){r.value||d.value||p()}function b(){v()}function g(){h.value=!1}function m(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:je(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:g,handleRadioInputFocus:m}}const uQ=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[I("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),I("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),I("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),I("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),I("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),R0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),Ph),setup(e){const t=Y$(e),n=Se("Radio","-radio",uQ,C0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:p,boxShadowFocus:v,boxShadowHover:b,color:g,colorDisabled:m,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:_,labelPadding:k,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:D}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":v,"--n-box-shadow-hover":b,"--n-color":g,"--n-color-active":y,"--n-color-disabled":m,"--n-dot-color-active":w,"--n-dot-color-disabled":_,"--n-font-size":R,"--n-radio-size":D,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":k}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=je(e),l=en("Radio",a,i),s=o?et("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),kt(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),fQ=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[I("checked",{backgroundColor:"var(--n-button-border-color-active)"}),I("disabled",{opacity:"var(--n-opacity-disabled)"})]),I("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),mt("checked",{color:"var(--n-button-text-color-hover)"})]),I("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),I("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function hQ(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:_},self:{buttonBorderColor:k,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:D,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:W,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":_,"--n-button-border-color":k,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":D,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":W}}),x=c?et("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:v,handleFocusout:m,handleFocusin:g,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=hQ(Nr(fc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),pQ=Ph,vQ=J({name:"RadioButton",props:Ph,setup:Y$,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),kt(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Z$=40,Q$=40;function UC(e){if(e.type==="selection")return e.width===void 0?Z$:hn(e.width);if(e.type==="expand")return e.width===void 0?Q$:hn(e.width);if(!("children"in e))return typeof e.width=="string"?hn(e.width):e.width}function gQ(e){var t,n;if(e.type==="selection")return Mt((t=e.width)!==null&&t!==void 0?t:Z$);if(e.type==="expand")return Mt((n=e.width)!==null&&n!==void 0?n:Q$);if(!("children"in e))return Mt(e.width)}function to(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function KC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function mQ(e){return e==="ascend"?1:e==="descend"?-1:0}function bQ(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yQ(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=gQ(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Mt(r)||n,maxWidth:Mt(o)}}function xQ(e,t,n){return typeof n=="function"?n(e,t):n||""}function Ep(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Lp(e){return"children"in e?!1:!!e.sorter}function J$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function qC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function YC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wQ(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:YC(!1)}:Object.assign(Object.assign({},t),{order:YC(t.order)})}function eT(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const CQ=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(uo),o=F(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Ep(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Ep(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Ep(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(ln,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(a$,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(ii,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(X$,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(R0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Tt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Tt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function SQ(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const kQ=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(uo),c=F(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),p=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),v=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=SQ(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function g(){c.value=!1}function m(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:p,showPopover:c,mergedRenderFilter:v,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:m,handleFilterMenuCancel:g}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(el,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(dQ,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(dt,{clsPrefix:t},{default:()=>u(FK,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(CQ,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),_Q=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(uo),n=F(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(_t("mousemove",window,a),_t("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),Ct("mousemove",window,a),Ct("mouseup",window,l)}return Bt(()=>{Ct("mousemove",window,a),Ct("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),tT=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),nT=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},RQ={name:"Icon",common:nt,self:nT},PQ=RQ,$Q={name:"Icon",common:tt,self:nT},TQ=$Q,OQ=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[I("color-transition",{transition:"color .3s var(--n-bezier)"}),I("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),rT=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),oT=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:rT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Icon","-icon",OQ,PQ,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?et("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Mt(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Qn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Gn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),P0="n-dropdown-menu",$h="n-dropdown",GC="n-dropdown-option";function sm(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function zQ(e){return e.type==="group"}function iT(e){return e.type==="divider"}function MQ(e){return e.type==="render"}const aT=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le($h),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:v,menuPropsRef:b}=t,g=Le(GC,null),m=Le(P0),y=Le(Ll),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:W}=h;return sm(e.tmNode.rawNode,W)}),w=P(()=>{const{disabled:W}=e.tmNode;return W}),_=P(()=>{if(!x.value)return!1;const{key:W,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(W):V!==null?ee.includes(W)&&ee[ee.length-1]!==W:re!==null?ee.includes(W):!1}),k=P(()=>r.value===null&&!l.value),T=pB(_,300,k),$=P(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=F(!1);ot(GC,{enteringSubmenuRef:R});function D(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:W,tmNode:K}=e;K.disabled||!s.value||(o.value=W,r.value=null,n.value=K.key)}function L(){const{tmNode:W}=e;W.disabled||!s.value||n.value!==W.key&&A()}function j(W){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=W;K&&!Zn({target:K},"dropdownOption")&&!Zn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:W}=x,{tmNode:K}=e;!s.value||!W&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:lt(()=>{const{value:W}=i,{key:K}=e.tmNode;return W.includes(K)}),childActive:lt(()=>{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q===W.length-1}),mergedDisabled:w,renderOption:p,nodeProps:v,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:D,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:p}=this;let v=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);v=u(lT,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=f==null?void 0:f(r),m=u("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),u("div",Gn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Ut(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):Ut((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(oT,null,{default:()=>u(Ya,null)}):null)]),this.hasSubmenu?u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Or,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(Ft,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>v}):v)}))})]}):null);return d?d({node:m,option:r}):m}}),DQ=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(P0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le($h);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Ut(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Ut((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),IQ=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u(Ot,null,u(DQ,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:iT(i)?u(tT,{clsPrefix:n,key:o.key}):o.isGroup?(Qn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(aT,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),FQ=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),lT=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le($h);ot(P0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>sm(s,o));const{rawNode:l}=i;return sm(l,o)})})});const r=F(null);return ot(pc,null),ot(vc,null),ot(Ll,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:MQ(i)?u(FQ,{tmNode:o,key:o.key}):iT(i)?u(tT,{clsPrefix:t,key:o.key}):zQ(i)?u(IQ,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(aT,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Bf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Y2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),AQ=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[Dn(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),mt("disabled",[I("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),I("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),I("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),I("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[I("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[I("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[I("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("scrollable",` - padding: var(--n-padding); - `),I("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),BQ={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},EQ=Object.keys(La),sT=Object.assign(Object.assign(Object.assign({},La),BQ),Se.props),$0=J({name:"Dropdown",inheritAttrs:!1,props:sT,setup(e){const t=F(!1),n=St(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return co(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=F(null),a=F(null),l=F(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=lt(()=>e.keyboard&&n.value);Ab({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:k},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=je(e),v=Se("Dropdown","-dropdown",AQ,S0,e,h);ot($h,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:g}),it(n,z=>{!e.animated&&!z&&m()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function g(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function m(){i.value=null,a.value=null,l.value=null}function y(){g(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function _(){$("down")}function k(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),g(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let W;switch(z){case"down":W=E.getNext();break;case"up":W=E.getPrev();break;case"right":W=E.getChild();break;case"left":W=E.getParent();break}W&&(j=W.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=v.value,{padding:E,dividerColor:W,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":W,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),D=p?et("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:v,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||m()},doUpdateShow:g,cssVars:p?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:H_(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(lT,Gn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(el,Object.assign({},xn(this.$props,EQ),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),cT="_n_all__",dT="_n_none__";function LQ(e,t,n,r){return e?o=>{for(const i of e)switch(o){case cT:n(!0);return;case dT:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function NQ(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:cT};case"none":return{label:t.uncheckTableAll,key:dT};default:return n}}):[]}const HQ=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(uo),l=P(()=>LQ(r.value,o,i,a)),s=P(()=>NQ(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:p}=e;return u($0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(dt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>u(D2,null)})})}}});function Np(e){return typeof e.title=="function"?e.title(e):e.title}const uT=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:p,mergedTableLayoutRef:v,headerCheckboxDisabledRef:b,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(uo),_=F({});function k(j){const E=_.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(Zn(j,"dataTableFilter")||Zn(j,"dataTableResizable")||!Lp(E))return;const W=f.value.find(Q=>Q.columnKey===E.key)||null,K=wQ(E,W);C(K)}function R(){p.value="head"}function D(){p.value="body"}const z=new Map;function A(j){z.set(j.key,k(j.key))}function L(j,E){const W=z.get(j.key);if(W===void 0)return;const K=W+E,Q=bQ(K,j.minWidth,j.maxWidth);g(K,Q,j,k),m(j,Q)}return{cellElsRef:_,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:v,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:D,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:p,headerCheckboxDisabled:v,mergedSortState:b,handleColHeaderClick:g,handleCheckboxUpdateChecked:m,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:D,rowSpan:z,isLast:A})=>{var L,j;const E=to(R),{ellipsis:W}=R,K=()=>R.type==="selection"?R.multiple!==!1?u(Ot,null,u(ii,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:v,onUpdateChecked:m}),d?u(HQ,{clsPrefix:t}):null):null:u(Ot,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},W===!0||W&&!W.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Np(R)):W&&typeof W=="object"?u(_0,Object.assign({},W,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Np(R)}):Np(R)),Lp(R)?u(cQ,{column:R}):null),qC(R)?u(kQ,{column:R,options:R.filterOptions}):null,J$(R)?u(_Q,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:yn((L=n[E])===null||L===void 0?void 0:L.start),right:yn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:D,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:eT(R,b),[`${t}-data-table-th--filterable`]:qC(R),[`${t}-data-table-th--sortable`]:Lp(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{g(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:_,handleMouseleave:k,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:_,onMouseleave:k},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Mt(T),tableLayout:p}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),jQ=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(Qs(n,a),n,t):Qs(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(_0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),XC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(dt,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ya,null)})}))}}),VQ=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(ii,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),WQ=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(R0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function UQ(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const KQ=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),qQ=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:p,leftActiveFixedColKeyRef:v,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:_,componentId:k,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:D,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:W,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:_e}=Le(uo),ve=F(null),Me=F(null),H=F(null),U=lt(()=>s.value.length===0),Y=lt(()=>e.showHeader||!U.value),ce=lt(()=>e.showHeader||U.value);let G="";const B=P(()=>new Set(r.value));function N(Ve){var Xe;return(Xe=ee.value.getNode(Ve))===null||Xe===void 0?void 0:Xe.rawNode}function te(Ve,Xe,We){const Ke=N(Ve.key);if(!Ke){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}if(We){const X=s.value.findIndex(q=>q.key===G);if(X!==-1){const q=s.value.findIndex(ae=>ae.key===Ve.key),ke=Math.min(X,q),Be=Math.max(X,q),Ee=[];s.value.slice(ke,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,Ke):Oe(Ee,Ke),G=Ve.key;return}}Xe?me(Ve.key,!1,Ke):Oe(Ve.key,Ke),G=Ve.key}function pe(Ve){const Xe=N(Ve.key);if(!Xe){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}me(Ve.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(_.value)return Pe();const{value:Ve}=ve;return Ve?Ve.containerRef:null}function fe(Ve,Xe){var We;if(W.value.has(Ve))return;const{value:Ke}=r,X=Ke.indexOf(Ve),q=Array.from(Ke);~X?(q.splice(X,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(W.value.add(Ve),(We=E.value)===null||We===void 0||We.call(E,Xe.rawNode).then(()=>{const{value:ke}=r,Be=Array.from(ke);~Be.indexOf(Ve)||Be.push(Ve),Ce(Be)}).finally(()=>{W.value.delete(Ve)})):(q.push(Ve),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:Ve}=Me;return Ve==null?void 0:Ve.listElRef}function Ae(){const{value:Ve}=Me;return Ve==null?void 0:Ve.itemsElRef}function qe(Ve){var Xe;we(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}function Ye(Ve){var Xe;const{onResize:We}=e;We&&We(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}const ft={getScrollContainer:Z,scrollTo(Ve,Xe){var We,Ke;_.value?(We=Me.value)===null||We===void 0||We.scrollTo(Ve,Xe):(Ke=ve.value)===null||Ke===void 0||Ke.scrollTo(Ve,Xe)}},ht=O([({props:Ve})=>{const Xe=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),We=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(Ve.leftActiveFixedColKey),We(Ve.rightActiveFixedColKey),Ve.leftActiveFixedChildrenColKeys.map(Ke=>Xe(Ke)),Ve.rightActiveFixedChildrenColKeys.map(Ke=>We(Ke))])}]);let vt=!1;return At(()=>{const{value:Ve}=v,{value:Xe}=b,{value:We}=g,{value:Ke}=m;if(!vt&&Ve===null&&We===null)return;const X={leftActiveFixedColKey:Ve,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:We,rightActiveFixedChildrenColKeys:Ke,componentId:k};ht.mount({id:`n-${k}`,force:!0,props:X,anchorMetaName:Ol}),vt=!0}),sc(()=>{ht.unmount({id:`n-${k}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:k,scrollbarInstRef:ve,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:U,paginatedDataAndInfo:P(()=>{const{value:Ve}=L;let Xe=!1;return{data:s.value.map(Ve?(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:X%2===1,index:X}):(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:!1,index:X})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:p,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:_,mergedTableLayout:$,childTriggerColIndex:R,indent:D,rowProps:z,maxHeight:A,loadingKeySet:W,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:qe,handleVirtualListResize:Ye,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:pe,handleUpdateExpanded:fe,renderCell:_e},ft)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,p={minWidth:Mt(t)||"100%"};t&&(p.width="100%");const v=u(ln,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},g={},{cols:m,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:_,rowClassName:k,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:D,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:W,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=m;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?UQ(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((G,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:G,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:yn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{W&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:_e}=Oe,ve={};de.forEach(({tmNode:Y},ce)=>{ve[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,U=(Y,ce,G)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:qe,rawNode:Ye}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${qe}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===_e&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},W(Ye,B)):W(Ye,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:pe,key:Z}=Y,{rawNode:fe}=pe,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof k=="string"?k:xQ(fe,B,k);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),m.map((qe,Ye)=>{var ft,ht,vt,Ve,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(Ye);if(~oe)return $e.splice(oe,1),null}const{column:We}=qe,Ke=to(qe),{rowSpan:X,colSpan:q}=We,ke=N?((ft=Y.tmNode.rawNode[Ke])===null||ft===void 0?void 0:ft.colSpan)||1:q?q(fe,B):1,Be=N?((ht=Y.tmNode.rawNode[Ke])===null||ht===void 0?void 0:ht.rowSpan)||1:X?X(fe,B):1,Ee=Ye+ke===ee,ae=ce+Be===_e,ze=Be>1;if(ze&&(g[ce]={[Ye]:[]}),ke>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,We.type==="selection"?N?null:We.multiple===!1?u(WQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(VQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):We.type==="expand"?N?null:!We.expandable||((Xe=We.expandable)===null||Xe===void 0?void 0:Xe.call(We,fe))?u(XC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(jQ,{clsPrefix:n,index:B,row:fe,column:We,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(qo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:KQ,visibleItemsProps:{clsPrefix:n,id:D,cols:m,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!0},{default:({item:Y,index:ce})=>U(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,m.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(uT,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":D,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>U(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},gt(this.dataTableSlots.empty,()=>[u(Ui,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u(Ot,null,v,b()):u(jr,{onResize:this.onResize},{default:b})}return v}}),YQ=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(uo),s=F(null),c=F(null),d=F(null),f=F(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Mt(o.value),minHeight:Mt(i.value)}));function p(m){r.value=m.contentRect.width,l(),f.value||(f.value=!0)}function v(){const{value:m}=s;return m?m.$el:null}function b(){const{value:m}=c;return m?m.getScrollContainer():null}const g={getBodyElement:b,getHeaderElement:v,scrollTo(m,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(m,y)}};return At(()=>{const{value:m}=d;if(!m)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{m.classList.remove(y)},0):m.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:p},g)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(uT,{ref:"headerInstRef"}),u(qQ,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function GQ(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=F(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:_}=e,k=_===void 0?i.value:_;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:k.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(k,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((_,k)=>{const{key:T,disabled:$}=k;return _+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),p=P(()=>{const{length:w}=n.value,{value:_}=d;return f.value>0&&f.value_.has(k.key))}),v=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function g(w,_,k){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,D=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;D.push(j)}),T&&he(T,w,D,{row:_,action:k}),$&&he($,w,D,{row:_,action:k}),R&&he(R,w,D,{row:_,action:k}),i.value=w}function m(w,_=!1,k){if(!e.loading){if(_){g(Array.isArray(w)?w.slice(0,1):[w],k,"check");return}g(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"check")}}function y(w,_){e.loading||g(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"uncheck")}function C(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.check(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.uncheck(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:p,allRowsCheckedRef:v,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:g,doCheckAll:C,doUncheckAll:x,doCheck:m,doUncheck:y}}function vd(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function XQ(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?ZQ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function ZQ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function QQ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(p=>{var v;p.sorter!==void 0&&h(r,{columnKey:p.key,sorter:p.sorter,order:(v=p.defaultSortOrder)!==null&&v!==void 0?v:!1})});const o=F(r),i=P(()=>{const p=t.value.filter(g=>g.type!=="selection"&&g.sorter!==void 0&&(g.sortOrder==="ascend"||g.sortOrder==="descend"||g.sortOrder===!1)),v=p.filter(g=>g.sortOrder!==!1);if(v.length)return v.map(g=>({columnKey:g.key,order:g.sortOrder,sorter:g.sorter}));if(p.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const p=i.value.slice().sort((v,b)=>{const g=vd(v.sorter)||0;return(vd(b.sorter)||0)-g});return p.length?n.value.slice().sort((b,g)=>{let m=0;return p.some(y=>{const{columnKey:C,sorter:x,order:w}=y,_=XQ(x,C);return _&&w&&(m=_(b.rawNode,g.rawNode),m!==0)?(m=m*mQ(w),!0):!1}),m}):n.value});function l(p){let v=i.value.slice();return p&&vd(p.sorter)!==!1?(v=v.filter(b=>vd(b.sorter)!==!1),h(v,p),v):p||null}function s(p){const v=l(p);c(v)}function c(p){const{"onUpdate:sorter":v,onUpdateSorter:b,onSorterChange:g}=e;v&&he(v,p),b&&he(b,p),g&&he(g,p),o.value=p}function d(p,v="ascend"){if(!p)f();else{const b=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===p);if(!(b!=null&&b.sorter))return;const g=b.sorter;s({columnKey:p,sorter:g,order:v})}}function f(){c(null)}function h(p,v){const b=p.findIndex(g=>(v==null?void 0:v.columnKey)&&g.columnKey===v.columnKey);b!==void 0&&b>=0?p[b]=v:p.push(v)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function JQ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return co(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=lt(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(KC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let _e=V[me];if(_e==null||(Array.isArray(_e)||(_e=[_e]),!_e.length))continue;const ve=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof ve=="function")if(Oe.filterMode==="and"){if(_e.some(Me=>!ve(Me,we)))return!1}else{if(_e.some(Me=>ve(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:v}=QQ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),g=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),m=St(b,a),y=St(g,l),C=lt(()=>{const V=m.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),_=P(()=>w.value.map(V=>V.rawNode));function k(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),D(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":k,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function D(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){D(V)}function E(){W()}function W(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=KC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:_,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:F(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:D,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:W,clearSorter:v,page:j,sort:p}}function eJ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=F(null),l=F([]),s=F(null),c=F([]),d=P(()=>Mt(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),p=P(()=>{const $={};let R=0;function D(z){z.forEach(A=>{const L={start:R,end:0};$[to(A)]=L,"children"in A?(D(A.children),L.end=R):(R+=UC(A)||0,L.end=R)})}return D(f.value),$}),v=P(()=>{const $={};let R=0;function D(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[to(L)]=j,"children"in L?(D(L.children),j.end=R):(R+=UC(L)||0,j.end=R)}}return D(h.value),$});function b(){var $,R;const{value:D}=f;let z=0;const{value:A}=p;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function g(){l.value=[];let $=e.columns.find(R=>to(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const D=$.children[R-1];l.value.push(to(D)),$=D}}function m(){var $,R;const{value:D}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=v;for(let W=D.length-1;W>=0;--W){const K=to(D[W]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)to(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(to(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&Ma(k)}function _($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&Ma(k)}function k(){const{header:$,body:R}=C();if(!R)return;const{value:D}=r;if(D===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),g(),m(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,k())}return it(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:v,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:k,handleTableBodyScroll:_,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function tJ(){const e=F({});function t(o){return e.value[o]}function n(o,i){J$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function nJ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,p){p>a&&(n[p]=[],a=p);for(const v of h)if("children"in v)c(v.children,p+1);else{const b="key"in v?v.key:void 0;r.push({key:to(v),style:yQ(v,b!==void 0?Mt(t(b)):void 0),column:v}),l+=1,s||(s=!!v.ellipsis),o.push(v)}}c(e,0);let d=0;function f(h,p){let v=0;h.forEach((b,g)=>{var m;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,p+1),b.children.forEach(x=>{var w,_;C.colSpan+=(_=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&_!==void 0?_:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[p].push(C)}else{if(d1&&(v=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-p+1,isLast:C};i.set(b,x),n[p].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function rJ(e,t){const n=P(()=>nJ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function oJ(e,t){const n=lt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=lt(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=F(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=St(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const ZC=aJ(),iJ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),I("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[Dn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[I("expanded",[S("icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),I("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),mt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[I("filterable",` - padding-right: 36px; - `,[I("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),ZC,I("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),I("hover",` - background-color: var(--n-merged-th-color-hover); - `),I("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),I("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),I("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),I("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),I("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),I("show",` - background-color: var(--n-th-button-color-hover); - `),I("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[I("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),I("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),I("summary",` - background-color: var(--n-merged-th-color); - `),I("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),I("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),ZC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[I("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),I("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),I("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),mt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),I("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[I("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),I("bottom-bordered",[S("data-table-td",[I("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),Mo(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),ei(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function aJ(){return[I("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),I("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const lJ=J({name:"DataTable",alias:["AdvancedTable"],props:K$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{bottomBordered:We}=e;return n.value?!1:We!==void 0?We:!0}),a=Se("DataTable","-data-table",iJ,oQ,e,r),l=F(null),s=F("body");lc(()=>{s.value="body"});const c=F(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=tJ(),{rowsRef:p,colsRef:v,dataRelatedColsRef:b,hasEllipsisRef:g}=rJ(e,d),{treeMateRef:m,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:_,mergedPaginationRef:k,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:D,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:W,clearFilters:K,clearSorter:Q,page:V,sort:re}=JQ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:_e,mergedInderminateRowKeySetRef:ve}=GQ(e,{selectionColumnRef:w,treeMateRef:m,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:U,expandableRef:Y,doUpdateExpandedRowKeys:ce}=oJ(e,m),{handleTableBodyScroll:G,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe}=eJ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:Ye}=Cn("DataTable"),ft=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||g.value?"fixed":e.tableLayout);ot(uo,{props:e,treeMateRef:m,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:F(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Tr(),hoverKeyRef:_,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:p,colsRef:v,paginatedDataRef:C,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:_e,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:ve,localeRef:Ye,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:U,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:We}=w;return We==null?void 0:We.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:We,actionPadding:Ke,actionButtonMargin:X}}=a.value;return{"--n-action-padding":Ke,"--n-action-button-margin":X,"--n-action-divider-color":We}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ft,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:D,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:G,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const ht={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:W,scrollTo:(We,Ke)=>{var X;(X=c.value)===null||X===void 0||X.scrollTo(We,Ke)}},vt=P(()=>{const{size:We}=e,{common:{cubicBezierEaseInOut:Ke},self:{borderColor:X,tdColorHover:q,thColor:ke,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Ie,lineHeight:Ne,tdColorModal:Qe,thColorModal:Ue,borderColorModal:le,thColorHoverModal:De,tdColorHoverModal:Ze,borderColorPopover:bt,thColorPopover:be,tdColorPopover:Fe,tdColorHoverPopover:Je,thColorHoverPopover:at,paginationMargin:ct,emptyPadding:Gt,boxShadowAfter:Kt,boxShadowBefore:Re,sorterSize:Ge,resizableContainerSize:st,resizableSize:Pt,loadingColor:qt,loadingSize:Et,opacityLoading:Qr,tdColorStriped:Nt,tdColorStripedModal:fn,tdColorStripedPopover:Ao,[ye("fontSize",We)]:ai,[ye("thPadding",We)]:li,[ye("tdPadding",We)]:si}}=a.value;return{"--n-font-size":ai,"--n-th-padding":li,"--n-td-padding":si,"--n-bezier":Ke,"--n-border-radius":Ie,"--n-line-height":Ne,"--n-border-color":X,"--n-border-color-modal":le,"--n-border-color-popover":bt,"--n-th-color":ke,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":De,"--n-th-color-popover":be,"--n-th-color-hover-popover":at,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Qe,"--n-td-color-hover-modal":Ze,"--n-td-color-popover":Fe,"--n-td-color-hover-popover":Je,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":ct,"--n-empty-padding":Gt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Kt,"--n-sorter-size":Ge,"--n-resizable-container-size":st,"--n-resizable-size":Pt,"--n-loading-size":Et,"--n-loading-color":qt,"--n-opacity-loading":Qr,"--n-td-color-striped":Nt,"--n-td-color-striped-modal":fn,"--n-td-color-striped-popover":Ao}}),Ve=o?et("data-table",P(()=>e.size[0]),vt,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const We=k.value,{pageCount:Ke}=We;return Ke!==void 0?Ke>1:We.itemCount&&We.pageSize&&We.itemCount>We.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:k,mergedShowPagination:Xe,cssVars:o?void 0:vt,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender},ht)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(YQ,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(A$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},gt(r.loading,()=>[u(so,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),sJ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},fT=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},sJ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},cJ={name:"TimePicker",common:nt,peers:{Scrollbar:br,Button:xr,Input:zr},self:fT},hT=cJ,dJ={name:"TimePicker",common:tt,peers:{Scrollbar:yr,Button:wr,Input:Zr},self:fT},pT=dJ,uJ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},vT=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:p,fontWeightStrong:v}=e;return Object.assign(Object.assign({},uJ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:He(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:p,calendarTitleFontWeight:v,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c})},fJ={name:"DatePicker",common:nt,peers:{Input:zr,Button:xr,TimePicker:hT,Scrollbar:br},self:vT},hJ=fJ,pJ={name:"DatePicker",common:tt,peers:{Input:Zr,Button:wr,TimePicker:pT,Scrollbar:yr},self(e){const{popoverColor:t,hoverColor:n,primaryColor:r}=e,o=vT(e);return o.itemColorDisabled=pt(t,n),o.itemColorIncluded=He(r,{alpha:.15}),o.itemColorHover=pt(t,n),o}},vJ=pJ;function gJ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),p=h.getHours(),v=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(p):!1)||(o.value?o.value(v,p):!1)||(i.value?i.value(b,v,p):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function mJ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[0],"start",p)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[1],"end",p)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[0]),v=ef(h[0]),b=tf(h[0]),{isStartHourDisabledRef:g,isStartMinuteDisabledRef:m,isStartSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[1]),v=ef(h[1]),b=tf(h[1]),{isEndHourDisabledRef:g,isEndMinuteDisabledRef:m,isEndSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const Th="n-date-picker";function Oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cm={exports:{}},dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(dm.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(cm,cm.exports);const bJ=Oh(cm.exports);var um={exports:{}},fm={exports:{}},hm={exports:{}},Jn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Jn,Jn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(hm,hm.exports);var Kr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Kr,Kr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(hm.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(fm,fm.exports);var pm={exports:{}},vm={exports:{}},Xo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Xo,Xo.exports);const yJ=Oh(Xo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Xo.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(vm.exports),r=i(Jn.exports),o=i(Xo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Kr.exports),r=o(Jn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(mm,mm.exports);var bm={exports:{}},tc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Kr.exports),r=o(Jn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=p.getTime()?c:c-1}e.exports=t.default})(Hf,Hf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Hf.exports),r=i(tc.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(ym,ym.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(tc.exports),o=a(ym.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(bm,bm.exports);var xm={exports:{}},nc={exports:{}},tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.getDefaultOptions=xJ;tl.setDefaultOptions=wJ;var gT={};function xJ(){return gT}function wJ(e){gT=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Kr.exports),r=a(Jn.exports),o=a(Xo.exports),i=tl;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,p,v,b,g,m;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.weekStartsOn)!==null&&p!==void 0?p:c==null||(v=c.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(g=y.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),_=(w=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=new Date(0);k.setUTCFullYear(x+1,0,_),k.setUTCHours(0,0,0,0);var T=(0,o.default)(k,d),$=new Date(0);$.setUTCFullYear(x,0,_),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(jf,jf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(jf.exports),r=l(Jn.exports),o=l(nc.exports),i=l(Xo.exports),a=tl;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,p,v,b,g,m,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(p=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(b=d.locale)===null||b===void 0||(g=b.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&p!==void 0?p:C.firstWeekContainsDate)!==null&&h!==void 0?h:(m=C.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),_=new Date(0);_.setUTCFullYear(w,0,x),_.setUTCHours(0,0,0,0);var k=(0,o.default)(_,d);return k}e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(nc.exports),o=a(wm.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(xm,xm.exports);var Vf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(Cm,Cm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(mm.exports),r=c(bm.exports),o=c(Hf.exports),i=c(xm.exports),a=c(jf.exports),l=c(Vf.exports),s=c(Cm.exports);function c(g){return g&&g.__esModule?g:{default:g}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(m,y,C){var x=m.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(m,y,C){if(y==="yo"){var x=m.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(m,y)},Y:function(m,y,C,x){var w=(0,a.default)(m,x),_=w>0?w:1-w;if(y==="YY"){var k=_%100;return(0,l.default)(k,2)}return y==="Yo"?C.ordinalNumber(_,{unit:"year"}):(0,l.default)(_,y.length)},R:function(m,y){var C=(0,o.default)(m);return(0,l.default)(C,y.length)},u:function(m,y){var C=m.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(m,y,C){var x=m.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(m,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(m,y,C){var x=m.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(m,y,C,x){var w=(0,i.default)(m,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(m,y,C){var x=(0,r.default)(m);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(m,y,C){return y==="do"?C.ordinalNumber(m.getUTCDate(),{unit:"date"}):s.default.d(m,y)},D:function(m,y,C){var x=(0,n.default)(m);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(m,y,C){var x=m.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(_);case"ee":return(0,l.default)(_,2);case"eo":return C.ordinalNumber(_,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(_);case"cc":return(0,l.default)(_,y.length);case"co":return C.ordinalNumber(_,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(m,y,C){var x=m.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(m,y,C){var x=m.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(m,y,C){var x=m.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(m,y,C){var x=m.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(m,y,C){if(y==="ho"){var x=m.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(m,y)},H:function(m,y,C){return y==="Ho"?C.ordinalNumber(m.getUTCHours(),{unit:"hour"}):s.default.H(m,y)},K:function(m,y,C){var x=m.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(m,y,C){var x=m.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(m,y,C){return y==="mo"?C.ordinalNumber(m.getUTCMinutes(),{unit:"minute"}):s.default.m(m,y)},s:function(m,y,C){return y==="so"?C.ordinalNumber(m.getUTCSeconds(),{unit:"second"}):s.default.s(m,y)},S:function(m,y){return s.default.S(m,y)},X:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();if(_===0)return"Z";switch(y){case"X":return p(_);case"XXXX":case"XX":return v(_);case"XXXXX":case"XXX":default:return v(_,":")}},x:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"x":return p(_);case"xxxx":case"xx":return v(_);case"xxxxx":case"xxx":default:return v(_,":")}},O:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(_,":");case"OOOO":default:return"GMT"+v(_,":")}},z:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(_,":");case"zzzz":default:return"GMT"+v(_,":")}},t:function(m,y,C,x){var w=x._originalDate||m,_=Math.floor(w.getTime()/1e3);return(0,l.default)(_,y.length)},T:function(m,y,C,x){var w=x._originalDate||m,_=w.getTime();return(0,l.default)(_,y.length)}};function h(g,m){var y=g>0?"-":"+",C=Math.abs(g),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var _=m||"";return y+String(x)+_+(0,l.default)(w,2)}function p(g,m){if(g%60===0){var y=g>0?"-":"+";return y+(0,l.default)(Math.abs(g)/60,2)}return v(g,m)}function v(g,m){var y=m||"",C=g>0?"-":"+",x=Math.abs(g),w=(0,l.default)(Math.floor(x/60),2),_=(0,l.default)(x%60,2);return C+w+y+_}var b=f;t.default=b,e.exports=t.default})(gm,gm.exports);var Sm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var p;switch(f){case"P":p=c.dateTime({width:"short"});break;case"PP":p=c.dateTime({width:"medium"});break;case"PPP":p=c.dateTime({width:"long"});break;case"PPPP":default:p=c.dateTime({width:"full"});break}return p.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(Sm,Sm.exports);var Wf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Wf,Wf.exports);const QC=Oh(Wf.exports);var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.isProtectedDayOfYearToken=kJ;Cc.isProtectedWeekYearToken=_J;Cc.throwProtectedError=RJ;var CJ=["D","DD"],SJ=["YY","YYYY"];function kJ(e){return CJ.indexOf(e)!==-1}function _J(e){return SJ.indexOf(e)!==-1}function RJ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var km={exports:{}},_m={exports:{}},Rm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(Rm,Rm.exports);var Pm={exports:{}},$m={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})($m,$m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($m.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(Pm,Pm.exports);var Tm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(Tm,Tm.exports);var Om={exports:{}},zm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(zm,zm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(zm.exports);function r(p){return p&&p.__esModule?p:{default:p}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(v,b){var g=Number(v),m=g%100;if(m>20||m<10)switch(m%10){case 1:return g+"st";case 2:return g+"nd";case 3:return g+"rd"}return g+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(v){return v-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(Om,Om.exports);var Mm={exports:{}},Dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],p=Array.isArray(h)?o(h,function(g){return g.test(f)}):r(h,function(g){return g.test(f)}),v;v=i.valueCallback?i.valueCallback(p):p,v=l.valueCallback?l.valueCallback(v):v;var b=a.slice(f.length);return{value:v,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Im,Im.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Dm.exports),r=o(Im.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},m={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:g,defaultParseWidth:"any"})},y=m;t.default=y,e.exports=t.default})(Mm,Mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(Rm.exports),r=l(Pm.exports),o=l(Tm.exports),i=l(Om.exports),a=l(Mm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(_m,_m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(_m.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(km,km.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=p(fm.exports),r=p(pm.exports),o=p(Kr.exports),i=p(gm.exports),a=p(Sm.exports),l=p(Wf.exports),s=Cc,c=p(Xo.exports),d=p(Jn.exports),f=tl,h=p(km.exports);function p(w){return w&&w.__esModule?w:{default:w}}var v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,m=/''/g,y=/[a-zA-Z]/;function C(w,_,k){var T,$,R,D,z,A,L,j,E,W,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(_),me=(0,f.getDefaultOptions)(),Oe=(T=($=k==null?void 0:k.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,_e=(0,c.default)((R=(D=(z=(A=k==null?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:k==null||(L=k.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&D!==void 0?D:(E=me.locale)===null||E===void 0||(W=E.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(_e>=1&&_e<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ve=(0,c.default)((K=(Q=(V=(re=k==null?void 0:k.weekStartsOn)!==null&&re!==void 0?re:k==null||(ee=k.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(ve>=0&&ve<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),U=(0,r.default)(Me,H),Y={firstWeekContainsDate:_e,weekStartsOn:ve,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(G){var B=G[0];if(B==="p"||B==="P"){var N=a.default[B];return N(G,Oe.formatLong)}return G}).join("").match(v).map(function(G){if(G==="''")return"'";var B=G[0];if(B==="'")return x(G);var N=i.default[B];if(N)return!(k!=null&&k.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),!(k!=null&&k.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),N(U,G,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return G}).join("");return ce}function x(w){var _=w.match(g);return _?_[1].replace(m,"'"):w}e.exports=t.default})(um,um.exports);const PJ=Oh(um.exports);function JC(e,t,n){var r=OJ(e,n.timeZone,n.locale);return r.formatToParts?$J(r,t):TJ(r,t)}function $J(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function TJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function OJ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function zJ(e,t){var n=FJ(t);return n.formatToParts?DJ(n,e):IJ(n,e)}var MJ={year:0,month:1,day:2,hour:3,minute:4,second:5};function DJ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function IJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Hp={};function FJ(e){if(!Hp[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Hp[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Hp[e]}function mT(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var eS=36e5,AJ=6e4,jp={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function T0(e,t,n){var r,o;if(!e||(r=jp.timezoneZ.exec(e),r))return 0;var i;if(r=jp.timezoneHH.exec(e),r)return i=parseInt(r[1],10),tS(i)?-(i*eS):NaN;if(r=jp.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return tS(i,a)?(o=Math.abs(i)*eS+a*AJ,i>0?-o:o):NaN}if(LJ(e)){t=new Date(t||Date.now());var l=n?t:BJ(t),s=Fm(l,e),c=n?s:EJ(t,s,e);return-c}return NaN}function BJ(e){return mT(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Fm(e,t){var n=zJ(e,t),r=mT(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function EJ(e,t,n){var r=e.getTime(),o=r-t,i=Fm(new Date(o),n);if(t===i)return t;o-=i-t;var a=Fm(new Date(o),n);return i===a?i:Math.max(i,a)}function tS(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var nS={};function LJ(e){if(nS[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),nS[e]=!0,!0}catch{return!1}}var NJ=60*1e3,HJ={X:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return rS(o);case"XXXX":case"XX":return gl(o);case"XXXXX":case"XXX":default:return gl(o,":")}},x:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"x":return rS(o);case"xxxx":case"xx":return gl(o);case"xxxxx":case"xxx":default:return gl(o,":")}},O:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+jJ(o,":");case"OOOO":default:return"GMT"+gl(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return JC("short",o,r);case"zzzz":default:return JC("long",o,r)}}};function Vp(e,t){var n=e?T0(e,t,!0)/NJ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Uf(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Uf(Math.floor(o/60),2),a=Uf(Math.floor(o%60),2);return r+i+n+a}function rS(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Uf(Math.abs(e)/60,2)}return gl(e,t)}function jJ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Uf(i,2)}const VJ=HJ;var WJ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const UJ=WJ;var Wp=36e5,oS=6e4,KJ=2,ir={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:UJ};function bT(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?KJ:yJ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=qJ(e),i=YJ(o.date,r),a=i.year,l=i.restDateString,s=GJ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=XJ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=T0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=QC(new Date(c+d)),f=QC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function qJ(e){var t={},n=ir.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=ir.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=ir.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function YJ(e,t){var n=ir.YYY[t],r=ir.YYYYY[t],o;if(o=ir.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=ir.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function GJ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=ir.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,aS(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=ir.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return JJ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=ir.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return aS(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=ir.Www.exec(e),n)return i=parseInt(n[1],10)-1,lS(t,i)?iS(t,i):new Date(NaN);if(n=ir.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return lS(t,i,s)?iS(t,i,s):new Date(NaN)}return null}function XJ(e){var t,n,r;if(t=ir.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Up(n)?n%24*Wp:NaN;if(t=ir.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Up(n,r)?n%24*Wp+r*oS:NaN;if(t=ir.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Up(n,r,o)?n%24*Wp+r*oS+o*1e3:NaN}return null}function iS(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var ZJ=[31,28,31,30,31,30,31,31,30,31,30,31],QJ=[31,29,31,30,31,30,31,31,30,31,30,31];function yT(e){return e%400===0||e%4===0&&e%100!==0}function aS(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=yT(e);if(r&&n>QJ[t]||!r&&n>ZJ[t])return!1}return!0}function JJ(e,t){if(t<1)return!1;var n=yT(e);return!(n&&t>366||!n&&t>365)}function lS(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Up(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var eee=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function tee(e,t,n){var r=String(t),o=n||{},i=r.match(eee);if(i){var a=bT(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+VJ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return PJ(e,r,o)}function nee(e,t,n){var r=bT(e,n),o=T0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function xT(e,t,n,r){var o=bJ(r);return o.timeZone=t,tee(nee(e,t),n,o)}const hs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Kp(e){return`00${e}`.slice(-2)}function ps(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Kp(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Kp(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Kp(r===12?12:r-12)):e}function gd(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function ree(e,t,n){const r=ps(hs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Nn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function oee(e){return bi(e)<12?"am":"pm"}const wT="n-time-picker",md=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),iee={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},aee=J({name:"TimePickerPanel",props:iee,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(wT),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:oee(Date.now());return ps(hs.hours,s,f).map(h=>{const p=Number(h),v=f==="pm"&&p!==12?p+12:p;return{label:h,value:v,disabled:l?l(v):!1}})}else return ps(hs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return ps(hs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return ps(hs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:F(null),minuteScrollRef:F(null),secondScrollRef:F(null),amPmScrollRef:F(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(ln,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Tt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Fo,{onFocus:this.onFocusDetectorFocus}))}}),lee=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[Dn(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[I("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),I("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),I("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),I("invalid",[M("item",[I("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function qp(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const CT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>qp(e,23)},minutes:{type:[Number,Array],validator:e=>qp(e,59)},seconds:{type:[Number,Array],validator:e=>qp(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Kf=J({name:"TimePicker",props:CT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),{localeRef:i,dateLocaleRef:a}=Cn("TimePicker"),l=Sn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",lee,hT,e,n),h=Ab(),p=F(null),v=F(null),b=P(()=>({locale:a.value.locale}));function g(se){return se===null?null:ur(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:m,defaultFormattedValue:y}=e,C=F(y!==void 0?g(y):m),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return g(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Ie)=>xT($e,se,oe,Ie):($e,oe,Ie)=>on($e,oe,Ie)}),_=F("");it(()=>e.timeZone,()=>{const se=x.value;_.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const k=F(!1),T=xe(e,"show"),$=St(T,k),R=F(x.value),D=F(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),W=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:gd(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!gd(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!gd(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Ie}=e;return Ie?Ie(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:bi(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Ie}=e;oe&&he(oe,se,$e),Ie&&he(Ie,se,$e)}function _e(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function ve(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Qe}=l,Ue=_e(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Ie&&he(Ie,se,Ue),Oe(Ue,se),C.value=se,Ne(),Qe()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function U(){const{onConfirm:se}=e;se&&he(se,x.value,_e(x.value))}function Y(se){var $e;se.stopPropagation(),ve(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){We({returnFocus:!0})}function G(se){se.key==="Escape"&&$.value&&Fa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Fa(se),We({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=v.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),We({returnFocus:!0}));break}}function N(){D.value=!0,Rt(()=>{D.value=!1})}function te(se){c.value||Zn(se,"clear")||$.value||Ve()}function pe(se){typeof se!="string"&&(x.value===null?ve(rt(na(SK(new Date),se))):ve(rt(na(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?ve(rt(_p(O9(new Date),se))):ve(rt(_p(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?ve(rt(Rp(s0(new Date),se))):ve(rt(Rp(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Ie=bi(oe);se==="pm"&&Ie<12?ve(rt(na(oe,Ie+12))):se==="am"&&Ie>=12&&ve(rt(na(oe,Ie-12))),ve(rt(oe))}else{const oe=bi($e);se==="pm"&&oe<12?ve(rt(na($e,oe+12))):se==="am"&&oe>=12&&ve(rt(na($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?_.value="":_.value=w.value(se,e.format,b.value)}function Pe(se){vt(se)||Me(se)}function Ae(se){var $e;if(!vt(se))if($.value){const oe=($e=v.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),We({returnFocus:!1}))}else ge(),H(se)}function qe(){c.value||$.value||Ve()}function Ye(){c.value||(ge(),We({returnFocus:!1}))}function ft(){if(!v.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Ie}=v.value;[se,$e,oe,Ie].forEach(Ne=>{var Qe;if(!Ne)return;const Ue=(Qe=Ne.contentRef)===null||Qe===void 0?void 0:Qe.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function ht(se){k.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function vt(se){var $e,oe,Ie;return!!(((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Ie=v.value)===null||Ie===void 0?void 0:Ie.$el.contains(se.relatedTarget)))}function Ve(){R.value=x.value,ht(!0),Rt(ft)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(vr(se)))&&We({returnFocus:!1})}function We({returnFocus:se}){var $e;$.value&&(ht(!1),se&&(($e=p.value)===null||$e===void 0||$e.focus()))}function Ke(se){if(se===""){ve(null);return}const $e=ur(se,e.format,new Date,b.value);if(_.value=se,Er($e)){const{value:oe}=x;if(oe!==null){const Ie=Kn(oe,{hours:bi($e),minutes:ef($e),seconds:tf($e)});ve(rt(Ie))}else ve(rt($e))}}function X(){ve(R.value),ht(!1)}function q(){const se=new Date,$e={hours:bi,minutes:ef,seconds:tf},[oe,Ie,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||gd($e[Ue](se),Ue,e[Ue])?$e[Ue](se):ree($e[Ue](se),Ue,e[Ue])),Qe=Rp(_p(na(x.value?x.value:rt(se),oe),Ie),Ne);ve(rt(Qe))}function ke(){ge(),U(),We({returnFocus:!0})}function Be(se){vt(se)||(ge(),H(se),We({returnFocus:!1}))}it(x,se=>{ge(se),N(),Rt(ft)}),it($,()=>{ee.value&&ve(R.value)}),ot(wT,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=p.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=p.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?et("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Ie,panelDividerColor:Ne,panelBoxShadow:Qe,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:De,itemWidth:Ze,itemHeight:bt,panelActionPadding:be,itemBorderRadius:Fe},common:{cubicBezierEaseInOut:Je}}=f.value;return{"--n-bezier":Je,"--n-border-radius":le,"--n-item-color-hover":Ie,"--n-item-font-size":De,"--n-item-height":bt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ze,"--n-panel-action-padding":be,"--n-panel-box-shadow":Qe,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":Fe}}),Te=o?et("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:Hn(),inputInstRef:p,panelInstRef:v,adjustedTo:Ht(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:W,secondInFormat:K,mergedAttrSize:ue,displayTimeString:_,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:D,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:G,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:ke,handleTimeInputUpdateValue:Ke,handleMenuFocusOut:Be,handleCancelClick:X,handleClickOutside:Xe,handleTimeInputActivate:qe,handleTimeInputDeactivate:Ye,handleHourClick:pe,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(En,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(BK,null)})}:null)}),u(Or,{teleportDisabled:this.adjustedTo===Ht.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),un(u(aee,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[gr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),see="HH:mm:ss",ST={active:Boolean,dateFormat:String,timeFormat:{type:String,value:see},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function kT(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(Th),l=P(()=>({locale:t.value.locale})),s=F(null),c=Ab();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function p(z=!1){const{onClose:A}=e;A&&A(z)}function v(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),p(!0),d()}function g(){v()}function m(){(e.active||e.panel)&&Rt(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),v())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&v()}let x=null,w=!1;function _(){x=e.value,w=!0}function k(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=F(!1);function D(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:p,doUpdateValue:h,doTabOut:v,handleClearClick:b,handleFocusDetectorFocus:g,disableTransitionOneTick:m,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:_,clearPendingValue:k,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:D}}const O0=Object.assign(Object.assign({},ST),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function z0(e,t){const n=kT(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:p}=Le(Th),v={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),g=F(e.value===null||Array.isArray(e.value)?"":on(e.value,b.value)),m=F(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=F(null),C=F(null),x=F(null),w=F(Date.now()),_=P(()=>{var B;return Nf(m.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),k=P(()=>{const{value:B}=e;return om(m.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return am(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return im(m.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>_.value.slice(0,7).map(B=>{const{ts:N}=B;return on(N,f.value.dayFormat,n.dateFnsOptions.value)})),D=P(()=>on(m.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>on(m.value,f.value.yearFormat,n.dateFnsOptions.value));it(m,(B,N)=>{(t==="date"||t==="datetime")&&(xh(B,N)||n.disableTransitionOneTick())}),it(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(g.value=on(B,b.value,n.dateFnsOptions.value),m.value=B):g.value=""});function A(B){return rt(t==="datetime"?s0(B):t==="month"?Fr(B):t==="year"?t0(B):t==="quarter"?Js(B):zl(B))}function L(B){const{isDateDisabled:{value:N}}=v;return N?N(B):!1}function j(B){const N=ur(B,b.value,new Date,n.dateFnsOptions.value);if(Er(N)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=Kn(e.value,{year:nn(N),month:Xt(N),date:eo(N)});n.doUpdateValue(rt(A(rt(te))),e.panel)}}else g.value=B}function E(){const B=ur(g.value,b.value,new Date,n.dateFnsOptions.value);if(Er(B)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=Kn(e.value,{year:nn(B),month:Xt(B),date:eo(B)});n.doUpdateValue(rt(A(rt(N))),!1)}}else ee()}function W(){n.doUpdateValue(null,!0),g.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(rt(A(Date.now())),!0);const B=Date.now();m.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=Cu(e.defaultTime);te&&(N=rt(Kn(N,te)))}switch(N=rt(B.type==="quarter"&&B.dateObject.quarter?kK(xC(N,B.dateObject.year),B.dateObject.quarter):Kn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=rt(B.type==="month"?c0(te,B.dateObject.month):xC(te,B.dateObject.year)),N(te),ce(te)}function re(B){m.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){g.value="";return}B===void 0&&(B=e.value),g.value=on(B,b.value,n.dateFnsOptions.value)}function ue(){v.isDateInvalid.value||v.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){m.value=rt(Vv(m.value,1))}function we(){m.value=rt(Vv(m.value,-1))}function me(){m.value=rt(Fn(m.value,1))}function Oe(){m.value=rt(Fn(m.value,-1))}function _e(){const{value:B}=y;return B==null?void 0:B.listElRef}function ve(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function U(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=Xt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Na})}if(y.value){const te=nn(B===void 0?N===null?Date.now():N:B)-Lf;y.value.scrollTo({top:te*Na})}}const G={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:_,monthArray:k,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:D,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:U,handleSingleShortcutClick:Y},v),n),G),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:W,virtualListContainer:_e,virtualListContent:ve,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:g,datePickerSlots:p,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:m,onUpdateCalendarValue:re})}const _T=J({name:"MonthPanel",props:Object.assign(Object.assign({},O0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=z0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(ln,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"yearVlRef",items:this.yearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(ln,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),Il=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=F(null),t=F(null),n=F(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(vr(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Or,{show:this.show,teleportDisabled:!0},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?un(u(_T,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[gr,e,void 0,{capture:!0}]]):null})})]}))}}),cee=J({name:"DateTimePanel",props:O0,setup(e){return z0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(En,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Kf,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(c["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},gt(c["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},gt(c["next-month"],()=>[u(Ni,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},gt(c["next-year"],()=>[u(Li,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),M0=Object.assign(Object.assign({},ST),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function D0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:p,isEndTimeInvalidRef:v,isStartValueInvalidRef:b,isEndValueInvalidRef:g,isRangeInvalidRef:m,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:_,datePickerSlots:k}=Le(Th),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:p,isEndTimeInvalid:v,isStartValueInvalid:b,isEndValueInvalid:g,isRangeInvalid:m},$=kT(e),R=F(null),D=F(null),z=F(null),A=F(null),L=F(null),j=F(null),E=F(null),W=F(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=F(Q),re=F((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:rt(Fn(Q,1)));Ae(!0);const ee=F(Date.now()),ue=F(!1),de=F(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=F(Array.isArray(K)?on(K[0],Ce.value,$.dateFnsOptions.value):""),me=F(Array.isArray(K)?on(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),_e=P(()=>{var Re;return Nf(V.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),ve=P(()=>{var Re;return Nf(re.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>_e.value.slice(0,7).map(Re=>{const{ts:Ge}=Re;return on(Ge,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>on(V.value,y.value.monthFormat,$.dateFnsOptions.value)),U=P(()=>on(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>on(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>on(re.value,y.value.yearFormat,$.dateFnsOptions.value)),G=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>am(fl(e.value,"start"),ee.value)),pe=P(()=>am(fl(e.value,"end"),ee.value)),Z=P(()=>{const Re=fl(e.value,"start");return im(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=fl(e.value,"end");return im(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=fl(e.value,"start");return om(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=fl(e.value,"end");return om(Re!=null?Re:Date.now(),Re,ee.value)});it(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ge,st]=Re;we.value=on(Ge,Ce.value,$.dateFnsOptions.value),me.value=on(st,Ce.value,$.dateFnsOptions.value),ue.value||ke(Re)}else we.value="",me.value=""});function Pe(Re,Ge){(t==="daterange"||t==="datetimerange")&&(nn(Re)!==nn(Ge)||Xt(Re)!==Xt(Ge))&&$.disableTransitionOneTick()}it(V,Pe),it(re,Pe);function Ae(Re){const Ge=Fr(V.value),st=Fr(re.value);(e.bindCalendarMonths||Ge>=st)&&(Re?re.value=rt(Fn(Ge,1)):V.value=rt(Fn(st,-1)))}function qe(){V.value=rt(Fn(V.value,12)),Ae(!0)}function Ye(){V.value=rt(Fn(V.value,-12)),Ae(!0)}function ft(){V.value=rt(Fn(V.value,1)),Ae(!0)}function ht(){V.value=rt(Fn(V.value,-1)),Ae(!0)}function vt(){re.value=rt(Fn(re.value,12)),Ae(!1)}function Ve(){re.value=rt(Fn(re.value,-12)),Ae(!1)}function Xe(){re.value=rt(Fn(re.value,1)),Ae(!1)}function We(){re.value=rt(Fn(re.value,-1)),Ae(!1)}function Ke(Re){V.value=Re,Ae(!0)}function X(Re){re.value=Re,Ae(!1)}function q(Re){const Ge=o.value;if(!Ge)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ge(Re,"start",null);{const{value:st}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){m.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ge,st){if(typeof Re!="number"&&(Re=rt(Re)),st!=="shortcutPreview"){let Pt,qt;if(t==="datetimerange"){const{defaultTime:Et}=e;Array.isArray(Et)?(Pt=Cu(Et[0]),qt=Cu(Et[1])):(Pt=Cu(Et),qt=Pt)}Pt&&(Re=rt(Kn(Re,Pt))),qt&&(Ge=rt(Kn(Ge,qt)))}$.doUpdateValue([Re,Ge],e.panel&&st==="done")}function $e(Re){return rt(t==="datetimerange"?s0(Re):t==="monthrange"?Fr(Re):zl(Re))}function oe(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge))if(e.value){if(Array.isArray(e.value)){const st=Kn(e.value[0],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}}else{const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}else we.value=Re}function Ie(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge)){if(e.value===null){const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}else if(Array.isArray(e.value)){const st=Kn(e.value[1],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}}else me.value=Re}function Ne(){const Re=ur(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[0],{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}}else Ue()}function Qe(){const Re=ur(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[1],{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}}else Ue()}function Ue(Re){const{value:Ge}=e;if(Ge===null||!Array.isArray(Ge)){we.value="",me.value="";return}Re===void 0&&(Re=Ge),we.value=on(Re[0],Ce.value,$.dateFnsOptions.value),me.value=on(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function De(Re){Re!==null&&Te(Re)}function Ze(Re){$.cachePendingValue();const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||se(Ge[0],Ge[1],"shortcutPreview")}function bt(Re){const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||(se(Ge[0],Ge[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ge){const st=Re===void 0?e.value:Re;if(Re===void 0||Ge==="start"){if(E.value){const Pt=Array.isArray(st)?Xt(st[0]):Xt(Date.now());E.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(L.value){const Pt=(Array.isArray(st)?nn(st[0]):nn(Date.now()))-Lf;L.value.scrollTo({index:Pt,debounce:!1})}}if(Re===void 0||Ge==="end"){if(W.value){const Pt=Array.isArray(st)?Xt(st[1]):Xt(Date.now());W.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(j.value){const Pt=(Array.isArray(st)?nn(st[1]):nn(Date.now()))-Lf;j.value.scrollTo({index:Pt,debounce:!1})}}}function Fe(Re,Ge){const{value:st}=e,Pt=!Array.isArray(st),qt=Re.type==="year"&&t!=="yearrange"?Pt?Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(new Date):new Date)}).valueOf():Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(st[Ge==="start"?0:1]):st[Ge==="start"?0:1])}).valueOf():Re.ts;if(Pt){const Nt=$e(qt),fn=[Nt,Nt];$.doUpdateValue(fn,e.panel),be(fn,"start"),be(fn,"end"),$.disableTransitionOneTick();return}const Et=[st[0],st[1]];let Qr=!1;switch(Ge==="start"?(Et[0]=$e(qt),Et[0]>Et[1]&&(Et[1]=Et[0],Qr=!0)):(Et[1]=$e(qt),Et[0]>Et[1]&&(Et[0]=Et[1],Qr=!0)),$.doUpdateValue(Et,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Qr?(be(Et,"start"),be(Et,"end")):be(Et,Ge);break;case"yearrange":$.disableTransitionOneTick(),be(Et,"start"),be(Et,"end")}}function Je(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function at(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function ct(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.listElRef:(st=j.value)===null||st===void 0?void 0:st.listElRef}function Gt(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.itemsElRef:(st=j.value)===null||st===void 0?void 0:st.itemsElRef}const Kt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:W,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:D,handleDateClick:Be,handleColItemClick:Fe,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:Ye,startCalendarPrevMonth:ht,startCalendarNextYear:qe,startCalendarNextMonth:ft,endCalendarPrevYear:Ve,endCalendarPrevMonth:We,endCalendarNextMonth:Xe,endCalendarNextYear:vt,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:U,endCalendarYear:ce,weekdays:Me,startDateArray:_e,endDateArray:ve,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:pe,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ze,handleRangeShortcutClick:bt},$),T),Kt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:G,endTimeValue:B,datePickerSlots:k,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:De,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Ie,handleEndDateInputBlur:Qe,handleStartYearVlScroll:Je,handleEndYearVlScroll:at,virtualListContainer:ct,virtualListContent:Gt,onUpdateStartCalendarValue:Ke,onUpdateEndCalendarValue:X})}const dee=J({name:"DateTimeRangePanel",props:M0,setup(e){return D0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(En,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(En,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),uee=J({name:"DatePanel",props:O0,setup(e){return z0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),fee=J({name:"DateRangePanel",props:M0,setup(e){return D0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),hee=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},M0),{type:{type:String,required:!0}}),setup(e){const t=D0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},db(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),pee=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[Dn(),I("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[I("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),I("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),I("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[I("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),I("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),I("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),I("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[I("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),mt("disabled",[mt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),I("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),I("covered, start, end",[mt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),I("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),I("start",[O("&::before",{left:"50%"})]),I("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),I("excluded",{color:"var(--n-item-text-color-disabled)"},[I("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),I("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[I("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),I("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),RT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),vee=J({name:"DatePicker",props:RT,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=Cn("DatePicker"),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:p}=je(e),v=F(null),b=F(null),g=F(null),m=F(!1),y=xe(e,"show"),C=St(y,m),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),_=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function k(ae){if(ae===null)return null;const{value:ze}=_,{value:ie}=x;return Array.isArray(ae)?[ur(ae[0],ze,new Date,ie).getTime(),ur(ae[1],ze,new Date,ie).getTime()]:ur(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=F((n=T!==void 0?k(T):$)!==null&&n!==void 0?n:null),D=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?k(ae):e.value}),z=St(D,R),A=F(null);At(()=>{A.value=z.value});const L=F(""),j=F(""),E=F(""),W=Se("DatePicker","-date-picker",pee,hJ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Qn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=_,{value:ie}=x;return[on(ae[0],ze,ie),on(ae[1],ze,x.value)]}else return on(ae,_.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Ie=de(ae);ze.doConfirm&&_e(ae,Ie),Te&&he(Te,ae,Ie),ie&&he(ie,ae,Ie),se&&he(se,ae,Ie),R.value=ae,we(Ie,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function _e(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function ve(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),m.value=ae}function U(ae){ae.key==="Escape"&&C.value&&(Fa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Fa(ae)}function ce(){var ae;H(!1),(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function G(){var ae;(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(vr(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function pe(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=on(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=on(ae[0],w.value,ze),E.value=on(ae[1],w.value,ze)}}function Pe(){C.value||Ve()}function Ae(ae){var ze;!((ze=v.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function qe(){l.value||(fe(),Xe({returnFocus:!1}))}function Ye(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=ur(ae,w.value,new Date,x.value);Er(ze)?(me(rt(ze),{doConfirm:!1}),fe()):L.value=ae}function ft(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=ur(ze,w.value,new Date,x.value),se=ur(ie,w.value,new Date,x.value);Er(Te)&&Er(se)?(me([rt(Te),rt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function ht(ae){l.value||Zn(ae,"clear")||C.value||Ve()}function vt(ae){l.value||ve(ae)}function Ve(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=g.value)===null||ie===void 0||ie.focus()))}it(A,()=>{fe()}),fe(),it(C,ae=>{ae||(A.value=z.value)});const We=gJ(e,A),Ke=mJ(e,A);ot(Th,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:W,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},We),Ke),{datePickerSlots:t}));const X={focus:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=W.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),ke=p?et("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Ie,itemColorHover:Ne,itemColorActive:Qe,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:De,panelColor:Ze,panelTextColor:bt,arrowColor:be,calendarTitleTextColor:Fe,panelActionDividerColor:Je,panelHeaderDividerColor:at,calendarDaysDividerColor:ct,panelBoxShadow:Gt,panelBorderRadius:Kt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ge,panelActionPadding:st,itemSize:Pt,itemCellWidth:qt,itemCellHeight:Et,scrollItemWidth:Qr,scrollItemHeight:Nt,calendarTitlePadding:fn,calendarTitleHeight:Ao,calendarDaysHeight:ai,calendarDaysTextColor:li,arrowSize:si,panelHeaderPadding:qi,calendarDividerColor:Ah,calendarTitleGridTempateColumns:Bh,iconColor:Eh,iconColorDisabled:Lh,scrollItemBorderRadius:Nh,calendarTitleColorHover:Hh,[ye("calendarLeftPadding",ae)]:jh,[ye("calendarRightPadding",ae)]:Vh}}=W.value;return{"--n-bezier":ze,"--n-panel-border-radius":Kt,"--n-panel-color":Ze,"--n-panel-box-shadow":Gt,"--n-panel-text-color":bt,"--n-panel-header-padding":qi,"--n-panel-header-divider-color":at,"--n-calendar-left-padding":jh,"--n-calendar-right-padding":Vh,"--n-calendar-title-color-hover":Hh,"--n-calendar-title-height":Ao,"--n-calendar-title-padding":fn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":Fe,"--n-calendar-title-grid-template-columns":Bh,"--n-calendar-days-height":ai,"--n-calendar-days-divider-color":ct,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":li,"--n-calendar-divider-color":Ah,"--n-panel-action-padding":st,"--n-panel-extra-footer-padding":Ge,"--n-panel-action-divider-color":Je,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":Pt,"--n-item-cell-width":qt,"--n-item-cell-height":Et,"--n-item-text-color":$e,"--n-item-color-included":Ie,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Qe,"--n-item-text-color-disabled":le,"--n-item-text-color-active":De,"--n-scroll-item-width":Qr,"--n-scroll-item-height":Nt,"--n-scroll-item-border-radius":Nh,"--n-arrow-size":si,"--n-arrow-color":be,"--n-icon-color":Eh,"--n-icon-color-disabled":Lh}}),Ee=p?et("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},X),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:v,triggerElRef:b,inputInstRef:g,isMounted:Hn(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Ht(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:We.isValueInvalidRef,isStartValueInvalid:Ke.isStartValueInvalidRef,isEndValueInvalid:Ke.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:U,handleClear:ce,handlePanelClear:G,handleTriggerClick:ht,handleInputActivate:Pe,handleInputDeactivate:qe,handleInputFocus:vt,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ft,handleSingleUpdateValue:Ye,handlePanelUpdateValue:pe,handlePanelConfirm:Z,mergedTheme:W,actions:ue,triggerCssVars:p?void 0:q,triggerThemeClass:ke==null?void 0:ke.themeClass,triggerOnRender:ke==null?void 0:ke.onRender,cssVars:p?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(cee,Object.assign({},o),r):l==="daterange"?u(fee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(dee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(_T,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(hee,Object.assign({},o,{type:l})):u(uee,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(qr,null,{default:()=>[u(Yr,null,{default:()=>this.isRange?u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?gt(r.separator,()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(HK,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>gt(r["date-icon"],()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(wC,null)})])}):u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>gt(r["date-icon"],()=>[u(wC,null)])})})}),u(Or,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(i(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),gee={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},PT=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},gee),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,titleTextColor:r,thColor:pt(o,t),thColorModal:pt(i,t),thColorPopover:pt(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:pt(o,l),borderColorModal:pt(i,l),borderColorPopover:pt(a,l),borderRadius:s})},mee={name:"Descriptions",common:nt,self:PT},bee=mee,yee={name:"Descriptions",common:tt,self:PT},xee=yee,$T="DESCRIPTION_ITEM_FLAG";function wee(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[$T]:!1}const Cee=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),mt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),I("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),I("left-label-align",[O("th",{textAlign:"left"})]),I("center-label-align",[O("th",{textAlign:"center"})]),I("right-label-align",[O("th",{textAlign:"right"})]),I("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),Mo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),TT=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),See=J({name:"Descriptions",props:TT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Descriptions","-descriptions",Cee,bee,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:p,thFontWeight:v,tdTextColor:b,tdColor:g,tdColorModal:m,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:_,lineHeight:k,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":v,"--n-line-height":k,"--n-th-text-color":p,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":g,"--n-td-color-modal":m,"--n-td-color-popover":y,"--n-border-radius":_,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?et("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ii(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Nr(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(g=>wee(g)),p={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((g,m,y)=>{const C=m.props||{},x=h.length-1===y,w=["label"in C?C.label:jx(m,"label")],_=[jx(m)],k=C.span||1,T=g.span;g.span+=k;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:k*2-1,style:R},_)):g.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:k*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},_)));else{const D=x?(n-T)*2:k*2;g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:D,style:$},w)),g.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:D,style:R},_))}return(g.span>=n||x)&&(g.span=0,g.row.length&&(g.rows.push(g.row),g.row=[]),r!=="left"&&g.secondRow.length&&(g.rows.push(g.secondRow),g.secondRow=[])),g},p).rows.map(g=>u("tr",{class:`${c}-descriptions-table-row`},g));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||fc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),OT={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},kee=J({name:"DescriptionsItem",[$T]:!0,props:OT,render(){return null}}),_ee={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},zT=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:p,dividerColor:v,borderRadius:b,fontWeightStrong:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},_ee),{fontSize:y,lineHeight:m,border:`1px solid ${v}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:g})},Ree={name:"Dialog",common:nt,peers:{Button:xr},self:zT},MT=Ree,Pee={name:"Dialog",common:tt,peers:{Button:wr},self:zT},DT=Pee,Sc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},IT=Wn(Sc),$ee=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),I("bordered",{border:"var(--n-border)"}),I("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),I("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),I("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[I("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),Mo(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[G_(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),Tee={default:()=>u(Hi,null),info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null)},I0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),Sc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=P(()=>{var f,h;const{iconPlacement:p}=e;return p||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",$ee,MT,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:v,lineHeight:b,border:g,titleTextColor:m,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:_,closeIconColor:k,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:D,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:W,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":v,"--n-icon-color":re,"--n-bezier":p,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":_,"--n-close-icon-color":k,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":D,"--n-padding":L,"--n-line-height":b,"--n-border":g,"--n-content-margin":W,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":m,"--n-action-space":E}}),d=r?et("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:p,handleNegativeClick:v,mergedTheme:b,loading:g,type:m,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(dt,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>kt(this.$slots.icon,w=>w||(this.icon?Ut(this.icon):Tee[this.type]()))}):null,x=kt(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[Ut(s)]:[this.negativeText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:v},h),{default:()=>Ut(this.negativeText)}),this.positiveText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:g,loading:g,onClick:p},f),{default:()=>Ut(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(ri,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,gt(this.$slots.header,()=>[Ut(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},gt(this.$slots.default,()=>[Ut(l)])),x)}}),FT="n-dialog-provider",AT="n-dialog-api",BT="n-dialog-reactive-list",ET=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},Oee={name:"Modal",common:nt,peers:{Scrollbar:br,Dialog:MT,Card:YP},self:ET},zee=Oee,Mee={name:"Modal",common:tt,peers:{Scrollbar:yr,Dialog:DT,Card:GP},self:ET},Dee=Mee,F0=Object.assign(Object.assign({},b0),Sc),Iee=Wn(F0),Fee=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},F0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=F(null),n=F(null),r=F(e.show),o=F(null),i=F(null);it(xe(e,"show"),g=>{g&&(r.value=!0)}),bR(P(()=>e.blockScroll&&r.value));const a=Le(rR);function l(){if(a.transformOriginRef.value==="center")return"";const{value:g}=o,{value:m}=i;if(g===null||m===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${g}px ${m+y}px`}return""}function s(g){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=g;if(m){const w=m.y,_=m.x;o.value=-(C-_),i.value=-(x-w-y)}g.style.transformOrigin=l()}function c(g){Rt(()=>{s(g)})}function d(g){g.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:g}=e;g&&g()}function p(){e.onNegativeClick()}function v(){e.onPositiveClick()}const b=F(null);return it(b,g=>{g&&Rt(()=>{const m=g.el;m&&t.value!==m&&(t.value=m)})}),ot(pc,t),ot(vc,null),ot(Ll,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:v,handleNegativeClick:p,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=ju(e),!l){Qn("modal","default slot is empty");return}l=ar(l),l.props=Gn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(ln,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Hb,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(Ft,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[$r,this.show]],{onClickoutside:f}=this;return f&&d.push([gr,this.onClickoutside,void 0,{capture:!0}]),un(this.preset==="confirm"||this.preset==="dialog"?u(I0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},xn(this.$props,IT),{"aria-modal":"true"}),e):this.preset==="card"?u(ZP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},xn(this.$props,PX),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Aee=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Yo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[Dn({duration:".25s",enterScale:".5"})])]),LT=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),F0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NT=J({name:"Modal",inheritAttrs:!1,props:LT,setup(e){const t=F(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Modal","-modal",Aee,zee,e,n),a=tR(64),l=eR(),s=Hn(),c=e.internalDialog?Le(FT,null):null,d=yR();function f(w){const{onUpdateShow:_,"onUpdate:show":k,onHide:T}=e;_&&he(_,w),k&&he(k,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:_}=e;w&&he(w),_&&_()}function g(){const{onAfterLeave:w,onAfterHide:_}=e;w&&he(w),_&&_()}function m(w){var _;const{onMaskClick:k}=e;k&&k(w),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(vr(w))&&f(!1)}function y(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!d.value&&f(!1)}ot(rR,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:_}=c;if(w.value&&_.value)return _.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:_,color:k,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":_,"--n-color":k,"--n-text-color":T}}),x=o?et("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>xn(e,Iee)),handleEsc:y,handleAfterLeave:g,handleClickoutside:m,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:v,handlePositiveClick:p,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return un(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(Fee,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(Ft,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Bee=Object.assign(Object.assign({},Sc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Eee=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},Bee),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=F(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(NT,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(I0,Object.assign({},xn(this.$props,IT),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),HT={injectionKey:String,to:[String,Object]},jT=J({name:"DialogProvider",props:HT,setup(){const e=F([]),t={};function n(l={}){const s=Tr(),c=ji(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return ot(AT,a),ot(FT,{clickedRef:tR(64),clickPositionRef:eR()}),ot(BT,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u(Ot,null,[this.dialogList.map(n=>u(Eee,Va(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function VT(){const e=Le(AT,null);return e===null&&Nn("use-dialog","No outer founded."),e}function Lee(){const e=Le(BT,null);return e===null&&Nn("use-dialog-reactive-list","No outer founded."),e}const WT=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},Nee={name:"Divider",common:nt,self:WT},Hee=Nee,jee={name:"Divider",common:tt,self:WT},Vee=jee,Wee=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[mt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[mt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),I("title-position-left",[M("line",[I("left",{width:"28px"})])]),I("title-position-right",[M("line",[I("right",{width:"28px"})])]),I("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),I("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),mt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),I("dashed",[M("line",{borderColor:"var(--n-color)"})]),I("vertical",{backgroundColor:"var(--n-color)"})]),UT=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Uee=J({name:"Divider",props:UT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Divider","-divider",Wee,Hee,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?et("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u(Ot,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),KT=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:p,primaryColorHover:v}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:v}},Kee={name:"Drawer",common:nt,peers:{Scrollbar:br},self:KT},qee=Kee,Yee={name:"Drawer",common:tt,peers:{Scrollbar:yr},self:KT},Gee=Yee,Xee=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=F(!!e.show),n=F(null),r=Le(Eb);let o=0,i="",a=null;const l=F(!1),s=F(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=je(e),h=en("Drawer",f,d),p=k=>{s.value=!0,o=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:g,doUpdateWidth:m}=r,y=k=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const D=o-k.clientY;R+=e.placement==="bottom"?D:-D,g(R),o=k.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const D=o-k.clientX;R+=e.placement==="right"?D:-D,m(R),o=k.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;At(()=>{e.show&&(t.value=!0)}),it(()=>e.show,k=>{k||C()}),Bt(()=>{C()});const w=P(()=>{const{show:k}=e,T=[[$r,k]];return e.showMask||T.push([gr,e.onClickoutside,void 0,{capture:!0}]),T});function _(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return bR(P(()=>e.blockScroll&&t.value)),ot(vc,n),ot(Ll,null),ot(pc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:_,bodyDirectives:w,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:v,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none"},u(Hb,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(Ft,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>un(u("div",Gn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(ln,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Zee,cubicBezierEaseOut:Qee}=mr;function Jee({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zee}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qee}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ete,cubicBezierEaseOut:tte}=mr;function nte({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ete}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:rte,cubicBezierEaseOut:ote}=mr;function ite({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rte}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ote}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:ate,cubicBezierEaseOut:lte}=mr;function ste({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ate}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${lte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const cte=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[Jee(),nte(),ite(),ste(),I("unselectable",` - user-select: none; - -webkit-user-select: none; - `),I("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[I("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[I("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),I("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),I("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),I("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),I("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Yo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),qT=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),dte=J({name:"Drawer",inheritAttrs:!1,props:qT,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Hn(),i=Se("Drawer","-drawer",cte,qee,e,t),a=F(e.defaultWidth),l=F(e.defaultHeight),s=St(xe(e,"width"),a),c=St(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Mt(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Mt(c.value)}),h=w=>{const{onUpdateWidth:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),a.value=w},p=w=>{const{onUpdateHeight:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),l.value=w},v=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:_,maskClosable:k}=e;k&&y(!1),_&&_(w)}const g=yR();function m(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!g.value&&y(!1)}function y(w){const{onHide:_,onUpdateShow:k,"onUpdate:show":T}=e;k&&he(k,w),T&&he(T,w),_&&!w&&he(_,w)}ot(Eb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:p,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:_,cubicBezierEaseOut:k},self:{color:T,textColor:$,boxShadow:R,lineHeight:D,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:W,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":D,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":k,"--n-bezier-in":_,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":W,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?et("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:v,handleMaskClick:b,handleEsc:m,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(Ft,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(Xee,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),YT={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},ute=J({name:"DrawerContent",props:YT,setup(){const e=Le(Eb,null);e||Nn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(ri,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(ln,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),GT={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fte={name:"DynamicInput",common:tt,peers:{Input:Zr,Button:wr},self(){return GT}},hte=fte,pte=()=>GT,vte={name:"DynamicInput",common:nt,peers:{Input:zr,Button:xr},self:pte},gte=vte,A0="n-dynamic-input",mte=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(A0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),bte=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(A0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),yte=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[I("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),bd=new WeakMap,XT=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),xte=J({name:"DynamicInput",props:XT,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=je(),a=Le(Wu,null),l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=Se("DynamicInput","-dynamic-input",yte,gte,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),p=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function v($){const{onInput:R,"onUpdate:value":D,onUpdateValue:z}=e;R&&he(R,$),D&&he(D,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const D=wa($)?Dt($):$;let z=bd.get(D);return z===void 0&&bd.set(D,z=Tr()),z}function g($,R){const{value:D}=c,z=Array.from(D!=null?D:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=wa(A)?Dt(A):A,j=wa(R)?Dt(R):R,E=bd.get(L);E!==void 0&&bd.set(j,E)}v(z)}function m(){y(0)}function y($){const{value:R}=c,{onCreate:D}=e,z=Array.from(R!=null?R:[]);if(D)z.splice($+1,0,D($+1)),v(z);else if(t.default)z.splice($+1,0,null),v(z);else switch(e.preset){case"input":z.splice($+1,0,""),v(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),v(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:D}=e;if(R.length<=D)return;const z=Array.from(R);z.splice($,1),v(z);const{onRemove:A}=e;A&&A($)}function x($,R,D){if(R<0||D<0||R>=$.length||D>=$.length||R===D)return;const z=$[R];$[R]=$[D],$[D]=z}function w($,R){const{value:D}=c;if(!Array.isArray(D))return;const z=Array.from(D);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),v(z)}ot(A0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const _=en("DynamicInput",o,r),k=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?et("dynamic-input",void 0,k,e):void 0;return{locale:Cn("DynamicInput").localeRef,rtlEnabled:_,buttonSize:p,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:m,ensureKey:b,handleValueChange:g,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:p,createItem:v,move:b,onRender:g}=this;return g==null||g(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Tt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>gt(e["create-button-default"],()=>[o.create]),icon:()=>gt(e["create-button-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})])}):r.map((m,y)=>u("div",{key:a?m[a]:f(m,y),"data-key":a?m[a]:f(m,y),class:`${n}-dynamic-input-item`,style:l},Da(e.default,{value:r[y],index:y},()=>[s==="input"?u(mte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(bte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(g0,{size:t},{default:()=>[u(Tt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>p(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(z2,null)})}),u(Tt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>v(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}),c?u(Tt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(TK,null)})}):null,c?u(Tt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u($2,null)})}):null]})))))}}),ZT={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},wte={name:"Space",self(){return ZT}},QT=wte,Cte=()=>ZT,Ste={name:"Space",self:Cte},JT=Ste;let Yp;const kte=()=>{if(!lr)return!0;if(Yp===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Yp=t}return Yp},eO=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),tO=J({name:"Space",props:eO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("Space","-space",void 0,JT,e,t),o=en("Space",n,t);return{useGap:kte(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=TA(a);return{horizontal:hn(s),vertical:hn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Nr(fc(this));if(!h.length)return null;const p=`${i.horizontal}px`,v=`${i.horizontal/2}px`,b=`${i.vertical}px`,g=`${i.vertical/2}px`,m=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${g}`,marginBottom:c||e?"":`-${g}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==m?b:""}:s?{marginLeft:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginRight:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}:{marginRight:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginLeft:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}]},C)))}}),_te={name:"DynamicTags",common:tt,peers:{Input:Zr,Button:wr,Tag:Z2,Space:QT},self(){return{inputWidth:"64px"}}},Rte=_te,Pte={name:"DynamicTags",common:nt,peers:{Input:zr,Button:xr,Tag:Q2,Space:JT},self(){return{inputWidth:"64px"}}},$te=Pte,Tte=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),nO=Object.assign(Object.assign(Object.assign({},Se.props),J2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ote=J({name:"DynamicTags",props:nO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),{localeRef:r}=Cn("DynamicTags"),o=Sn(e),{mergedDisabledRef:i}=o,a=F(""),l=F(!1),s=F(!0),c=F(null),d=Se("DynamicTags","-dynamic-tags",Tte,$te,e,t),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=P(()=>r.value.add),b=P(()=>$v(e.size)),g=P(()=>i.value||!!e.max&&p.value.length>=e.max);function m($){const{onChange:R,"onUpdate:value":D,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),D&&he(D,$),f.value=$,A(),L()}function y($){const R=p.value.slice(0);R.splice($,1),m(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const D=p.value.slice(0);D.push(e.onCreate(R)),m(D)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function _(){l.value=!0,Rt(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const k=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?et("dynamic-tags",void 0,k,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:v,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:p,mergedDisabled:i,triggerDisabled:g,handleInputKeyUp:C,handleAddClick:_,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(tO,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:p,inputValue:v,inputStyle:b,inputSize:g,inputForceFocused:m,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:_,handleInputConfirm:k,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(zs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>_(R)},{default:()=>typeof $=="string"?$:$.label})).concat(p?T.input?T.input({submit:k,deactivate:x}):u(En,Object.assign({placeholder:"",size:g,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:v,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:m})):T.trigger?T.trigger({activate:w,disabled:y}):u(Tt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:g,onClick:w},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}))}})}}),zte={name:"Element",common:tt},Mte=zte,Dte={name:"Element",common:nt},Ite=Dte,rO=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),sS=J({name:"Element",alias:["El"],props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Element","-element",void 0,Ite,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${s2(s)}`]=a[s],l),{})}),i=n?et("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),Fte={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},oO=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},Fte),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},Ate={name:"Form",common:nt,self:oO},iO=Ate,Bte={name:"Form",common:tt,self:oO},Ete=Bte,Lte=S("form",[I("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),kc="n-form",aO="n-form-item-insts";var Nte=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const lO=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),Hte=J({name:"Form",props:lO,setup(e){const{mergedClsPrefixRef:t}=je(e);Se("Form","-form",Lte,iO,e,t);const n={},r=F(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return Nte(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const p of Wn(n)){const v=n[p];for(const b of v)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(p=>{if(p.some(v=>!v.valid)){const v=p.filter(b=>b.errors).map(b=>b.errors);s&&s(v),f(v)}else s&&s(),d()})})})}function a(){for(const s of Wn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return ot(kc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),ot(aO,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ku(e,t,n){return Vte()?ku=Reflect.construct.bind():ku=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&rc(c,a.prototype),c},ku.apply(null,arguments)}function Wte(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Bm(e){var t=typeof Map=="function"?new Map:void 0;return Bm=function(r){if(r===null||!Wte(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ku(r,arguments,Am(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),rc(o,r)},Bm(e)}var Ute=/%[sdj%]/g,Kte=function(){};typeof process<"u"&&process.env;function Em(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function qte(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qte(t)&&typeof e=="string"&&!e)}function Yte(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function cS(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vs={integer:function(t){return vs.number(t)&&parseInt(t,10)===t},float:function(t){return vs.number(t)&&!vs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!vs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(hS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ene())},hex:function(t){return typeof t=="string"&&!!t.match(hS.hex)}},tne=function(t,n,r,o,i){if(t.required&&n===void 0){sO(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?vs[l](n)||o.push(kr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(kr(i.messages.types[l],t.fullField,t.type))},nne=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),p&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(kr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(kr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(kr(i.messages[f].range,t.fullField,t.min,t.max))},pl="enum",rne=function(t,n,r,o,i){t[pl]=Array.isArray(t[pl])?t[pl]:[],t[pl].indexOf(n)===-1&&o.push(kr(i.messages[pl],t.fullField,t[pl].join(", ")))},one=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Lt={required:sO,whitespace:Jte,type:tne,range:nne,enum:rne,pattern:one},ine=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i,"string"),Ln(n,"string")||(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i),Lt.pattern(t,n,o,a,i),t.whitespace===!0&&Lt.whitespace(t,n,o,a,i))}r(a)},ane=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},lne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},sne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},cne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n)||Lt.type(t,n,o,a,i)}r(a)},dne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},une=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},fne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Lt.required(t,n,o,a,i,"array"),n!=null&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},hne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},pne="enum",vne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt[pne](t,n,o,a,i)}r(a)},gne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n,"string")||Lt.pattern(t,n,o,a,i)}r(a)},mne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"date")&&!t.required)return r();if(Lt.required(t,n,o,a,i),!Ln(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Lt.type(t,s,o,a,i),s&&Lt.range(t,s.getTime(),o,a,i)}}r(a)},bne=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Lt.required(t,n,o,a,i,l),r(a)},Gp=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,a)&&!t.required)return r();Lt.required(t,n,o,l,i,a),Ln(n,a)||Lt.type(t,n,o,l,i)}r(l)},yne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i)}r(a)},Ms={string:ine,method:ane,number:lne,boolean:sne,regexp:cne,integer:dne,float:une,array:fne,object:hne,enum:vne,pattern:gne,date:mne,url:Gp,hex:Gp,email:Gp,required:bne,any:yne};function Lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Nm=Lm(),_c=function(){function e(n){this.rules=null,this._messages=Nm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=fS(Lm(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var g=[],m={};function y(x){if(Array.isArray(x)){var w;g=(w=g).concat.apply(w,x)}else g.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function wne(e){const t=Le(kc,null),n=P(()=>{const{labelPlacement:p}=e;return p!==void 0?p:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:p}=e;if(p!==void 0&&p!=="auto")return Mt(p);if(r.value){const v=t==null?void 0:t.maxChildLabelWidthRef.value;return v!==void 0?Mt(v):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Mt(t.props.labelWidth)}),i=P(()=>{const{labelAlign:p}=e;if(p)return p;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var p;return[(p=e.labelProps)===null||p===void 0?void 0:p.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:p}=e;return p!==void 0?p:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:p}=e;return p!==void 0?p:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=F(!1),d=P(()=>{const{validationStatus:p}=e;if(p!==void 0)return p;if(c.value)return"error"}),f=P(()=>{const{showFeedback:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function Cne(e){const t=Le(kc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=Qs(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:pS}=mr;function Sne({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=pS,leaveCubicBezier:i=pS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const kne=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),I("auto-label-width",[S("form-item-label","white-space: nowrap;")]),I("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[I("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),I("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),I("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),I("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),I("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[I("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[I("warning",{color:"var(--n-feedback-text-color-warning)"}),I("error",{color:"var(--n-feedback-text-color-error)"}),Sne({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var vS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const Rc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),cO=Wn(Rc);function gS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Qn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Qn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const B0=J({name:"FormItem",props:Rc,setup(e){uB(aO,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Le(kc,null),o=xne(e),i=wne(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=Cne(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,p=F([]),v=F(Tr()),b=r?xe(r.props,"disabled"):F(!1),g=Se("Form","-form-item",kne,iO,e,t);it(xe(e,"path"),()=>{e.ignorePathChange||m()});function m(){p.value=[],a.value=!1,e.feedback&&(v.value=Tr())}function y(){k("blur")}function C(){k("change")}function x(){k("focus")}function w(){k("input")}function _(A,L){return vS(this,void 0,void 0,function*(){let j,E,W,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,W=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{k(j,W,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const k=(A=null,L=()=>!0,j={suppressWarning:!0})=>vS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:W}=s,K=r?Qs(r.props.model,E||""):void 0,Q={},V={},re=(A?W.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):W).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=gS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=gS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new _c({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(p.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(m(),Ce({valid:!0}))})})});ot(Wu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:m,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:_,restoreValidation:m,internalValidate:k},$=F(null);It(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:_e,[ye("labelPadding",E)]:ve,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=g.value;let U=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(U=U==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":U,"--n-label-height":we,"--n-label-padding":ve,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":_e,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),D=n?et("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:v,renderExplains:p,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(Ft,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return kt(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:v})=>u("div",{key:p,class:`${t}-form-item-feedback__line`},v())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),mS=1,dO="n-grid",uO=1,oc={span:{type:[Number,String],default:uO},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},_ne=Wn(oc),Hm=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:oc,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(dO),i=Jo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>yn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=uO,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=yn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),jm=Object.assign(Object.assign({},oc),Rc),bS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:jm,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Hm,xn(this.$.vnode.props||{},_ne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Rne=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[I(`${n}-span`,{width:r}),I(`${n}-offset`,{marginLeft:r}),I(`${n}-push`,{left:r}),I(`${n}-pull`,{right:r})]}),Pne=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),Rne])]),fO="n-row",zh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},$ne=Wn(zh),hO=J({name:"Row",props:zh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);Xr("-legacy-grid",Pne,t);const r=en("Row",n,t),o=lt(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=lt(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return ot(fO,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:lt(()=>`-${Mt(o.value,{c:.5})} -${Mt(i.value,{c:.5})}`),styleWidth:lt(()=>`calc(100% + ${Mt(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),Mh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},Tne=Wn(Mh),pO=J({name:"Col",props:Mh,setup(e){const t=Le(fO,null);return t||Nn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Mt(t.verticalGutterRef.value,{c:.5})} ${Mt(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),E0=Object.assign(Object.assign({},Mh),Rc),One=Wn(E0),vO=J({name:"FormItemCol",props:E0,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(pO,xn(this.$props,Tne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),zne=Object.assign(Object.assign({},zh),E0),Mne=J({name:"FormItemRow",props:zne,setup(){const e=F(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(hO,xn(this.$props,$ne),{default:()=>{const e=xn(this.$props,One);return u(vO,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),Dne=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Ur,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Qo(()=>{At(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?bl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||nt,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):nt;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const p=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=p},0):n.transition=p,t.setAttribute("n-styled",""),r=!0,o=!1}})}),sc(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Ine={name:"GradientText",common:tt,self(e){const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:r,colorEndWarning:s,colorStartError:o,colorEndError:c,colorStartSuccess:n,colorEndSuccess:l}}},Fne=Ine,Ane=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:He(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:He(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:He(r,{alpha:.6}),colorEndWarning:r,colorStartError:He(o,{alpha:.6}),colorEndError:o,colorStartSuccess:He(n,{alpha:.6}),colorEndSuccess:n}},Bne={name:"GradientText",common:nt,self:Ane},Ene=Bne,Lne=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),gO=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Nne=J({name:"GradientText",props:gO,setup(e){Lb();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Mt(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Lne,Ene,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:p,fontWeight:v}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":p,"--n-font-weight":v}}),s=n?et("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Hne={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},mO=24,Xp="__ssr__",bO={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:mO},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},jne=J({name:"Grid",inheritAttrs:!1,props:bO,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=je(e),r=/^\d+$/,o=F(void 0),i=RB((n==null?void 0:n.value)||Hne),a=lt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=lt(()=>{var m;return(m=Number(Jl(e.cols.toString(),l.value)))!==null&&m!==void 0?m:mO}),c=lt(()=>Jl(e.xGap.toString(),l.value)),d=lt(()=>Jl(e.yGap.toString(),l.value)),f=m=>{o.value=m.contentRect.width},h=m=>{Ma(f,m)},p=F(!1),v=P(()=>{if(e.responsive==="self")return h}),b=F(!1),g=F();return It(()=>{const{value:m}=g;m&&m.hasAttribute(Xp)&&(m.removeAttribute(Xp),b.value=!0)}),ot(dO,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!lr,contentEl:g,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:yn(e.xGap),rowGap:yn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:yn(c.value),rowGap:yn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:v,overflow:p}},render(){if(this.layoutShiftDisabled)return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Nr(fc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:p}=this;s.forEach(y=>{var C,x,w,_;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(HA(y)){const $=ar(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==$r))||null;const k=ar(y),T=Number((_=Jl((w=k.props)===null||w===void 0?void 0:w.span,p))!==null&&_!==void 0?_:mS);T!==0&&c.push({child:k,rawChildSpan:T})});let v=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(v=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:mS,b.props.privateSpan=v,b.props.privateColStart=h+1-v,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let g=0,m=!1;for(const{child:y,rawChildSpan:C}of c){if(m&&(this.overflow=!0),!m){const x=Number((l=Jl((a=y.props)===null||a===void 0?void 0:a.offset,p))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const _=g%h;w+_>h&&(g+=h-_),w+g+v>f*h?m=!0:g+=w}}m&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Xp]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(jr,{onResize:this.handleResize},{default:e}):e()}}),yO=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Vne={name:"IconWrapper",common:nt,self:yO},Wne=Vne,Une={name:"IconWrapper",common:tt,self:yO},Kne=Une,qne=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),xO=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Yne=J({name:"IconWrapper",props:xO,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",qne,Wne,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?et("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Mt(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Mt(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),L0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),wO="n-image";function Gne(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Xne={name:"Image",common:nt,peers:{Tooltip:_h},self:Gne},Zne={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},CO=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:p,borderRadius:v,fontWeightStrong:b,boxShadow2:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},Zne),{borderRadius:v,lineHeight:m,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:v,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:p,actionTextColor:t,boxShadow:g})},Qne={name:"Notification",common:nt,peers:{Scrollbar:br},self:CO},Jne=Qne,ere={name:"Notification",common:tt,peers:{Scrollbar:yr},self:CO},tre=ere,nre={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},SO=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:p,closeColorHover:v,closeColorPressed:b}=e;return Object.assign(Object.assign({},nre),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:v,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:v,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:v,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:v,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:v,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:v,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:p})},rre={name:"Message",common:nt,self:SO},ore=rre,ire={name:"Message",common:tt,self:SO},are=ire,lre={name:"ButtonGroup",common:tt},sre=lre,cre={name:"InputNumber",common:tt,peers:{Button:wr,Input:Zr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},dre=cre,ure=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},fre={name:"InputNumber",common:nt,peers:{Button:xr,Input:zr},self:ure},hre=fre,pre={name:"Layout",common:tt,peers:{Scrollbar:yr},self(e){const{textColor2:t,bodyColor:n,popoverColor:r,cardColor:o,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:pt(n,a),siderToggleBarColorHover:pt(n,l),__invertScrollbar:"false"}}},vre=pre,gre=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:pt(r,l),siderToggleBarColorHover:pt(r,s),__invertScrollbar:"true"}},mre={name:"Layout",common:nt,peers:{Scrollbar:br},self:gre},Dh=mre,kO=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:pt(r,s),colorPopover:o,colorHoverPopover:pt(o,s),borderColor:i,borderColorModal:pt(r,i),borderColorPopover:pt(o,i),borderRadius:a,fontSize:l}},bre={name:"List",common:nt,self:kO},yre=bre,xre={name:"List",common:tt,self:kO},wre=xre,Cre={name:"LoadingBar",common:tt,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Sre=Cre,kre=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},_re={name:"LoadingBar",common:nt,self:kre},Rre=_re,Pre={name:"Log",common:tt,peers:{Scrollbar:yr,Code:c$},self(e){const{textColor2:t,inputColor:n,fontSize:r,primaryColor:o}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:o}}},$re=Pre,Tre=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},Ore={name:"Log",common:nt,peers:{Scrollbar:br,Code:d$},self:Tre},zre=Ore,Mre={name:"Mention",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},Dre=Mre,Ire=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},Fre={name:"Mention",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:Ire},Are=Fre;function Bre(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const _O=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:He(r,{alpha:.1}),itemColorActiveHover:He(r,{alpha:.1}),itemColorActiveCollapsed:He(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},Bre("#BBB",r,"#FFF","#AAA"))},Ere={name:"Menu",common:nt,peers:{Tooltip:_h,Dropdown:S0},self:_O},Lre=Ere,Nre={name:"Menu",common:tt,peers:{Tooltip:kh,Dropdown:k0},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,r=_O(e);return r.itemColorActive=He(t,{alpha:.15}),r.itemColorActiveHover=He(t,{alpha:.15}),r.itemColorActiveCollapsed=He(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},Hre=Nre,jre={titleFontSize:"18px",backSize:"22px"};function RO(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},jre),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const Vre={name:"PageHeader",common:nt,self:RO},Wre={name:"PageHeader",common:tt,self:RO},Ure={iconSize:"22px"},PO=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},Ure),{fontSize:t,iconColor:n})},Kre={name:"Popconfirm",common:nt,peers:{Button:xr,Popover:Qa},self:PO},qre=Kre,Yre={name:"Popconfirm",common:tt,peers:{Button:wr,Popover:Ja},self:PO},Gre=Yre,$O=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Xre={name:"Progress",common:nt,self:$O},TO=Xre,Zre={name:"Progress",common:tt,self(e){const t=$O(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},OO=Zre,Qre={name:"Rate",common:tt,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Jre=Qre,eoe=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},toe={name:"Rate",common:nt,self:eoe},noe=toe,roe={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},zO=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},roe),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},ooe={name:"Result",common:nt,self:zO},ioe=ooe,aoe={name:"Result",common:tt,self:zO},loe=aoe,MO={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},soe={name:"Slider",common:tt,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:r,primaryColorSuppl:o,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},MO),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},coe=soe,doe=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},MO),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},uoe={name:"Slider",common:nt,self:doe},foe=uoe,DO=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},hoe={name:"Spin",common:nt,self:DO},poe=hoe,voe={name:"Spin",common:tt,self:DO},goe=voe,IO=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},moe={name:"Statistic",common:nt,self:IO},boe=moe,yoe={name:"Statistic",common:tt,self:IO},xoe=yoe,woe={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},FO=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},woe),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Coe={name:"Steps",common:nt,self:FO},Soe=Coe,koe={name:"Steps",common:tt,self:FO},_oe=koe,AO={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Roe={name:"Switch",common:tt,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:o,textColor2:i,baseColor:a}=e,l="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},AO),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:l,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`})}},Poe=Roe,$oe=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},AO),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${He(t,{alpha:.2})}`})},Toe={name:"Switch",common:nt,self:$oe},Ooe=Toe,zoe={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},BO=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v}=e;return Object.assign(Object.assign({},zoe),{fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v,lineHeight:f,borderRadius:c,borderColor:pt(n,t),borderColorModal:pt(r,t),borderColorPopover:pt(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:pt(n,a),tdColorStripedModal:pt(r,a),tdColorStripedPopover:pt(o,a),thColor:pt(n,i),thColorModal:pt(r,i),thColorPopover:pt(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Moe={name:"Table",common:nt,self:BO},Doe=Moe,Ioe={name:"Table",common:tt,self:BO},Foe=Ioe,Aoe={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},EO=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:p,borderRadius:v,fontSize:b,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Aoe),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:v,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:v,paneTextColor:t,fontWeightStrong:g})},Boe={name:"Tabs",common:nt,self:EO},Eoe=Boe,Loe={name:"Tabs",common:tt,self(e){const t=EO(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},Noe=Loe,LO=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},Hoe={name:"Thing",common:nt,self:LO},joe=Hoe,Voe={name:"Thing",common:tt,self:LO},Woe=Voe,NO={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},Uoe={name:"Timeline",common:tt,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:o,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},Koe=Uoe,qoe=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},Yoe={name:"Timeline",common:nt,self:qoe},Goe=Yoe,HO={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Xoe={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,hoverColor:v,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C,dividerColor:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:x,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:v,titleFontWeight:t,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C})}},Zoe=Xoe,Qoe=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,borderColor:v,hoverColor:b,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:v,borderColor:v,listColor:s,headerColor:pt(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},Joe={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Qoe},eie=Joe,jO=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:He(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},tie={name:"Tree",common:nt,peers:{Checkbox:jl,Scrollbar:br,Empty:oi},self:jO},VO=tie,nie={name:"Tree",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Empty:Za},self(e){const{primaryColor:t}=e,n=jO(e);return n.nodeColorActive=He(t,{alpha:.15}),n}},WO=nie,rie={name:"TreeSelect",common:tt,peers:{Tree:WO,Empty:Za,InternalSelection:h0}},oie=rie,iie=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},aie={name:"TreeSelect",common:nt,peers:{Tree:VO,Empty:oi,InternalSelection:Ch},self:iie},lie=aie,sie={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},UO=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:p,successColor:v,codeColor:b}=e;return Object.assign(Object.assign({},sie),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:h,headerBarColorSuccess:v,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:v,textColorWarning:h,textColorError:p,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},cie={name:"Typography",common:nt,self:UO},Ki=cie,die={name:"Typography",common:tt,self:UO},uie=die,KO=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:He(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},fie={name:"Upload",common:nt,peers:{Button:xr,Progress:TO},self:KO},hie=fie,pie={name:"Upload",common:tt,peers:{Button:wr,Progress:OO},self(e){const{errorColor:t}=e,n=KO(e);return n.itemColorHoverError=He(t,{alpha:.09}),n}},vie=pie,gie={name:"Watermark",common:tt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},mie=gie,bie={name:"Watermark",common:nt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},yie=bie,xie={name:"Row",common:tt},wie=xie,Cie={name:"Image",common:tt,peers:{Tooltip:kh},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Sie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),kie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),_ie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Rie=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Yo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Yo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[Dn()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[mt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),xd=32,qO=J({name:"ImagePreview",props:Object.assign(Object.assign({},L0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Rie,Xne,e,xe(e,"clsPrefix"));let n=null;const r=F(null),o=F(null),i=F(void 0),a=F(!1),l=F(!1),{localeRef:s}=Cn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:U}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,G=Y.top+Y.height/2;U.transformOrigin=`${ce}px ${G}px`}function d(H){var U,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(U=e.onPrev)===null||U===void 0||U.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}it(a,H=>{H?_t("keydown",document,d):Ct("keydown",document,d)}),Bt(()=>{Ct("keydown",document,d)});let f=0,h=0,p=0,v=0,b=0,g=0,m=0,y=0,C=!1;function x(H){const{clientX:U,clientY:Y}=H;p=U-f,v=Y-h,Ma(de)}function w(H){const{mouseUpClientX:U,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:G}=H,B=ce-U,N=G-Y,te=`vertical${N>0?"Top":"Bottom"}`,pe=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:pe,deltaHorizontal:B,deltaVertical:N}}function _(H){const{value:U}=r;if(!U)return{offsetX:0,offsetY:0};const Y=U.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:G,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,pe=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?pe=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(D,z));const U=H-A;de(!1);const Y=_();A+=U,de(!1),A-=U,p=Y.offsetX,v=Y.offsetY,de()}}function de(H=!0){var U;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,G=ac((U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.style);let B="";if(typeof G=="string")B=G+";";else for(const te in G)B+=`${s2(te)}: ${G[te]};`;const N=`transform-origin: center; transform: translateX(${p}px) translateY(${v}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(D)),p=0,v=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,U){if(e.showToolbarTooltip){const{value:Y}=t;return u(Rh,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[U],trigger:()=>H})}else return H}const _e=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:U,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:G}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":U,"--n-toolbar-color":G,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:ve}=je(),Me=ve?et("image-preview",void 0,_e,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:Hn(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var U,Y;(Y=(U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onDragstart)===null||Y===void 0||Y.call(U,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:W,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:ve?void 0:_e,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(mc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),un(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u(Ot,null,o(u(dt,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Sie}),"tipPrevious"),o(u(dt,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>kie}),"tipNext")):null,o(u(dt,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(UK,null)}),"tipCounterclockwise"),o(u(dt,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(WK,null)}),"tipClockwise"),o(u(dt,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(YK,null)}),"tipOriginalSize"),o(u(dt,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(qK,null)}),"tipZoomOut"),o(u(dt,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(KK,null)}),"tipZoomIn"),o(u(dt,{clsPrefix:n,onClick:this.toggleShow},{default:()=>_ie}),"tipClose"))}}):null,u(Ft,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return un(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[$r,this.show]])}})),[[gc,{enabled:this.show}]])):null}}))}}),YO="n-image-group",GO=L0,XO=J({name:"ImageGroup",props:GO,setup(e){let t;const{mergedClsPrefixRef:n}=je(e),r=`c${Tr()}`,o=Jo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}ot(YO,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=F(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),ZO=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},L0),QO=J({name:"Image",props:ZO,inheritAttrs:!1,setup(e){const t=F(null),n=F(!1),r=F(null),o=Le(YO,null),{mergedClsPrefixRef:i}=o||je(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=F(!e.lazy);It(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),It(()=>{if(_l)return;let c;const d=At(()=>{c==null||c(),c=void 0,e.lazy&&(c=wP(t.value,e.intersectionObserverOptions,l))});Bt(()=>{d(),c==null||c()})}),At(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=F(!1);return ot(wO,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:_l?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:_l&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Pie(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function $ie(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Zp(e){return e==null?!0:!Number.isNaN(e)}function yS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Qp(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Tie=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),xS=800,wS=100,JO=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Oie=J({name:"InputNumber",props:JO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=Se("InputNumber","-input-number",Tie,hre,e,n),{localeRef:i}=Cn("InputNumber"),a=Sn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=F(null),f=F(null),h=F(null),p=F(e.defaultValue),v=xe(e,"value"),b=St(v,p),g=F(""),m=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:m(te));return Math.max(...N)},C=lt(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=lt(()=>{const B=Qp(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=lt(()=>{const B=Qp(e.min);return B!==null?B:null}),_=lt(()=>{const B=Qp(e.max);return B!==null?B:null}),k=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:pe,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),pe&&he(pe,B),te&&he(te,B),p.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:pe})=>{const{value:Z}=g;if(pe&&$ie(Z))return!1;const fe=(e.parse||Pie)(Z);if(fe===null)return N&&k(null),null;if(Zp(fe)){const ne=m(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||pe)return!1;Pe=Ae}if(qe!==null&&Pe{const{value:B}=b;if(Zp(B)){const{format:N,precision:te}=e;N?g.value=N(B):B===null||te===void 0||m(B)>te?g.value=yS(B,void 0):g.value=yS(B,te)}else g.value=String(B)};$();const R=lt(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),D=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const pe=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(pe!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(pe||"")),b.value===pe&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),Rt(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function W(){const{value:B}=D;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=_;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),k(null)}function ee(B){var N,te,pe;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(pe=d.value)===null||pe===void 0||pe.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){_e&&(window.clearTimeout(_e),_e=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{W()},wS)},xS),_t("mouseup",document,we,{once:!0})}let _e=null;function ve(){me(),_e=window.setTimeout(()=>{de=window.setInterval(()=>{E()},wS)},xS),_t("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||W()};function U(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!D.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&W()}}function Y(B){g.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}it(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},G=en("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:G,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:p,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:g,addable:z,minusable:D,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:ve,handleMinusMousedown:Oe,handleKeyDown:U,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,pe,Z]=Tn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${pe})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(lo,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>gt(t["minus-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(z2,null)})])}),r=()=>u(lo,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>gt(t["add-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(Dl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(En,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),kt(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[kt(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),ez="n-layout-sider",Ih={type:String,default:"static"},zie=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Vm={embedded:Boolean,position:Ih,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},tz="n-layout";function nz(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Vm),setup(t){const n=F(null),r=F(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(t),a=Se("Layout","-layout",zie,Dh,t,o);function l(b,g){if(t.nativeScrollbar){const{value:m}=n;m&&(g===void 0?m.scrollTo(b):m.scrollTo(b,g))}else{const{value:m}=r;m&&m.scrollTo(b,g)}}ot(tz,t);let s=0,c=0;const d=b=>{var g;const m=b.target;s=m.scrollLeft,c=m.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,b)};Vb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:g}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),v=i?et("layout",P(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Mie=nz(!1),Die=nz(!0),Iie=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),I("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),rz={position:Ih,inverted:Boolean,bordered:{type:Boolean,default:!1}},Fie=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),rz),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-header",Iie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?et("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Aie=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),I("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),oz=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Ih,bordered:Boolean}),Bie=J({name:"LayoutFooter",props:oz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-footer",Aie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?et("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Eie=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[I("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[I("bordered",[M("border",` - right: 0; - `)])]),I("right-placement",` - justify-content: flex-start; - `,[I("bordered",[M("border",` - left: 0; - `)]),I("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),I("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),I("show-content",[S("layout-sider-scroll-container",{opacity:1})]),I("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Lie=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(dt,{clsPrefix:e},{default:()=>u(Ya,null)}))}}),Nie=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),iz={position:Ih,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Hie=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),iz),setup(e){const t=Le(tz),n=F(null),r=F(null),o=P(()=>Mt(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Mt(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=F(e.defaultCollapsed),s=St(xe(e,"collapsed"),l);function c(w,_){if(e.nativeScrollbar){const{value:k}=n;k&&(_===void 0?k.scrollTo(w):k.scrollTo(w,_))}else{const{value:k}=r;k&&k.scrollTo(w,_)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:_,onExpand:k,onCollapse:T}=e,{value:$}=s;_&&he(_,!$),w&&he(w,!$),l.value=!$,$?k&&he(k):T&&he(T)}let f=0,h=0;const p=w=>{var _;const k=w.target;f=k.scrollLeft,h=k.scrollTop,(_=e.onScroll)===null||_===void 0||_.call(e,w)};Vb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),ot(ez,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:v,inlineThemeDisabled:b}=je(e),g=Se("Layout","-layout-sider",Eie,Dh,e,v);function m(w){var _,k;w.propertyName==="max-width"&&(s.value?(_=e.onAfterLeave)===null||_===void 0||_.call(e):(k=e.onAfterEnter)===null||k===void 0||k.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:_}=g.value,{siderToggleButtonColor:k,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=_,D={"--n-bezier":w,"--n-toggle-button-color":k,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(D["--n-color"]=_.siderColorInverted,D["--n-text-color"]=_.textColorInverted,D["--n-border-color"]=_.siderBorderColorInverted,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColorInverted,D.__invertScrollbar=_.__invertScrollbar):(D["--n-color"]=_.siderColor,D["--n-text-color"]=_.textColor,D["--n-border-color"]=_.siderBorderColor,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColor),D}),x=b?et("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:v,mergedTheme:g,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:p,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Mt(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Nie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Lie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),az={extraFontSize:"12px",width:"440px"},jie={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,inputColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,hoverColor:g}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:"#0000",listColor:f,headerColor:h,titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:"#0000",itemTextColor:b,itemTextColorDisabled:v,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}},Vie=jie,Wie=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,borderColor:g,hoverColor:m}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:g,listColor:f,headerColor:pt(f,h),titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:g,itemTextColor:b,itemTextColorDisabled:v,itemColorPending:m,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Uie={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Wie},Kie=Uie,Pc="n-transfer",CS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(Pc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:p}=l,{value:v}=c;return u("div",{class:`${v}-legacy-transfer-list-header`},u("div",{class:`${v}-legacy-transfer-list-header__checkbox`},u(ii,{theme:p.peers.Checkbox,themeOverrides:p.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${v}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${v}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),SS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(Pc),s=lt(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:hc(r)},r))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u(Ot,null,u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(SS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(ah,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(SS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(Ft,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),_S=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(M2,null)})}))}});function qie(e,t){const n=F(e.defaultValue),r=xe(e,"value"),o=St(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(D=>R.set(D.value,D)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(D=>R.get(D))}),c=F(""),d=F(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(D=>R(c.value,D,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(D=>R(d.value,D,"target"))}),p=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),v=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=F([]),g=F([]),m=P(()=>{const R=b.value.filter(z=>p.value.has(z)).length,D=p.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=g.value.filter(z=>v.value.has(z)).length,D=v.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=lt(()=>t.value?!0:g.value.length===0),x=lt(()=>t.value?!0:b.value.length===0),w=F(!1);function _(){w.value=!0}function k(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:p,avlTgtValueSet:v,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:_,handleInputBlur:k,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Yie=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Gie=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[I("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Yo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[I("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),I("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),I("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),I("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Yie]),lz=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Xie=J({name:"LegacyTransfer",props:lz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("LegacyTransfer","-legacy-transfer",Gie,Kie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return hn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:p,filteredTgtOpts:v,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:_,toButtonDisabled:k,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D}=qie(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=m;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?g.value=[]:g.value=Array.from(d.value)}function j(V,re){if(V)g.value.push(re);else{const ee=g.value.findIndex(ue=>ue===re);~ee&&g.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function W(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(g.value);z((s.value||[]).filter(re=>!V.has(re))),g.value=[]}ot(Pc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:g,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:m,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=Cn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),isInputing:w,mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,toButtonDisabled:k,fromButtonDisabled:_,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:W,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:_e,titleTextColorDisabled:ve,extraTextColor:Me,filterDividerColor:H,itemTextColor:U,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:G,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:pe,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":G,"--n-filter-divider-color":H,"--n-font-size":pe,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":_e,"--n-header-text-color-disabled":ve,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":U,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(CS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Tt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(Ya,null)})}),u(Tt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(u0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(CS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Zie=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[I("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),I("clickable",[S("list-item",` - cursor: pointer; - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),I("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),I("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),Mo(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),sz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),cz="n-list",Qie=J({name:"List",props:sz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("List",r,t),i=Se("List","-list",Zie,yre,e,t);ot(cz,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:p,borderColor:v,borderColorModal:b,borderColorPopover:g,borderRadius:m,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":m,"--n-border-color":v,"--n-border-color-modal":b,"--n-border-color-popover":g,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?et("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),Jie=J({name:"ListItem",setup(){const e=Le(cz,null);return e||Nn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),dz="n-loading-bar",uz="n-loading-bar-api",eae=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Yo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[I("starting",` - background: var(--n-color-loading); - `),I("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),I("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Jp=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function wd(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const tae=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=je(),{props:t,mergedClsPrefixRef:n}=Le(dz),r=F(null),o=F(!1),i=F(!1),a=F(!1),l=F(!1);let s=!1;const c=F(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return Jp(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield Rt(),l.value=!1})}function h(w=0,_=80,k="starting"){return Jp(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield Rt();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=wd(k,n.value),T.style.transition="",T.style.maxWidth=`${_}%`)})}function p(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=wd("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function v(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=wd("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=wd("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function g(){o.value=!1}function m(){return Jp(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",eae,Rre,t,n),C=P(()=>{const{self:{height:w,colorError:_,colorLoading:k}}=y.value;return{"--n-height":w,"--n-color-loading":k,"--n-color-error":_}}),x=e?et("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:v,finish:p,handleEnter:b,handleAfterEnter:g,handleAfterLeave:m,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(Ft,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[$r,this.loading||!this.loading&&this.entering]])}})}}),fz=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),hz=J({name:"LoadingBarProvider",props:fz,setup(e){const t=Hn(),n=F(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=je(e);return ot(uz,r),ot(dz,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u(Ot,null,u(cc,{disabled:this.to===!1,to:this.to||"body"},u(tae,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function pz(){const e=Le(uz,null);return e===null&&Nn("use-loading-bar","No outer founded."),e}const nae=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Cn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(so,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),vz="n-log",rae=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(vz),i=F(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return It(()=>{n.value&&l()}),it(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),oae=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[Dn(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),gz=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),iae=J({name:"Log",props:gz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=F(null),s=Se("Log","-log",oae,zre,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){Rt(()=>{r.value=!1});return}const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:D}=e;D&&D("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:D}=e;D&&D("bottom"),R&&R()}}const d=Os(f,300);function f(y){if(r.value){Rt(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:D}=e;D&&D("top")}if($<=0&&R>0){const{onRequireMore:D}=e;D&&D("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:_}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(_==="bottom"||_==="top")&&C.scrollTo({position:_})}function p(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function v(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}ot(vz,{languageRef:xe(e,"language"),mergedHljsRef:R2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},g=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:_},common:{cubicBezierEaseInOut:k}}=s.value;return{"--n-bezier":k,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":_}}),m=n?et("log",void 0,g,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:p,scrollToBottom:v,handleWheel:d,handleScroll:c,cssVars:n?void 0:g,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(ln,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(f$,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(rae,{key:o,line:r}))})}),u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(nae,{clsPrefix:e}):null})])}}),$c="n-menu",N0="n-submenu",H0="n-menu-item-group",Cd=8;function j0(e){const t=Le($c),{props:n,mergedCollapsedRef:r}=t,o=Le(N0,null),i=Le(H0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:p,rootIndent:v}=n,{root:b,isGroup:g}=e,m=v===void 0?p:v;if(b)return r.value?h/2-s.value/2:m;if(i)return p/2+i.paddingLeftRef.value;if(o)return(g?p/2:p)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:p,rootIndent:v}=n,{value:b}=s,{root:g}=e;return a.value||!g||!r.value?Cd:(v===void 0?p:v)+b+Cd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const V0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},mz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),aae=J({name:"MenuOptionGroup",props:mz,setup(e){ot(N0,null);const t=j0(e);ot(H0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le($c);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Ut(e.title),e.extra?u(Ot,null," ",Ut(e.extra)):null),u("div",null,e.tmNodes.map(s=>W0(s,r))))}}}),bz=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le($c);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):Ut(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):Ut(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):Ut(this.extra)):null),this.showArrow?u(dt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(NK,null)}):null)}}),yz=Object.assign(Object.assign({},V0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),lae=J({name:"Submenu",props:yz,setup(e){const t=j0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=F(!1);ot(N0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),ot(H0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:lt(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:p,icon:v,handleClick:b,menuProps:{nodeProps:g},dropdownShow:m,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=g==null?void 0:g(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(bz,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:p,clsPrefix:x,icon:v,hover:m,onClick:b}))},i=()=>u(Io,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>W0(s,this.menuProps)))}});return this.root?u($0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),xz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),sae=J({name:"MenuOption",props:xz,setup(e){const t=j0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:lt(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:lt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(Rh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):Ut(this.title),trigger:()=>u(bz,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),cae=J({name:"MenuDivider",setup(){const e=Le($c),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),dae=Wn(mz),uae=Wn(xz),fae=Wn(yz);function wz(e){return e.type==="divider"||e.type==="render"}function hae(e){return e.type==="divider"}function W0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(wz(n))return hae(n)?u(cae,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(aae,xn(s,dae,{tmNode:e,tmNodes:e.children,key:i})):u(lae,xn(s,fae,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(sae,xn(s,uae,{key:i,tmNode:e}))}const RS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],PS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],pae=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[I("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),I("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[I("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),I("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",PS)]),I("selected",[aa(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),I("child-active",[aa(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),aa("border-bottom: 2px solid var(--n-border-color-horizontal);",PS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),I("collapsed",[S("menu-item-content",[I("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),I("disabled",` - opacity: .45; - cursor: not-allowed; - `),I("collapsed",[M("arrow","transform: rotate(0);")]),I("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),I("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",RS)]),I("selected",[aa(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),I("child-active",[aa(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),I("selected",[aa(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),aa(null,RS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[Go({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function aa(e,t){return[I("hover",e,t),O("&:hover",e,t)]}const Cz=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),vae=J({name:"Menu",props:Cz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Menu","-menu",pae,Lre,e,t),o=Le(ez,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:D}=o;if(R.value==="width")return(T=D.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return co(e.items||e.options,{getIgnored(D){return wz(D)},getChildren(D){return D[$]},getDisabled(D){return D[R]},getKey(D){var z;return(z=D[T])!==null&&z!==void 0?z:D.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=F(null);s!=null&&s.includes("defaultValue")?At(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=St(d,c),h=F([]),p=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?At(p):p();const v=Ii(e,["expandedNames","expandedKeys"]),b=St(v,h),g=P(()=>a.value.treeNodes),m=P(()=>a.value.getPath(f.value).keyPath);ot($c,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:m,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:D,onSelect:z}=e;D&&he(D,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:D,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),D&&he(D,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(D=>D===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const D=$.findIndex(z=>l.value.has(z));D>-1&&$.splice(D,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),D=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{D.has(z)&&!$.includes(z)&&D.delete(z)}),C(Array.from(D))},_=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:D,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":D,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),k=n?et("menu",P(()=>e.inverted?"a":"b"),_,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:v,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:m,tmNodes:g,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>W0(o,this.$props)))}});function gae(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!lr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(v=>{if(f&&v==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),g=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),m=g+parseInt(d.lineHeight);b>m?c.lineHeight=`${b-g}px`:b===m?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[v]=d[v]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),p.left>=e.clientWidth&&t.checkWidthOverflow&&(p.left=e.clientWidth),p}const mae=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Sz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Qn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),bae=J({name:"Mention",props:Sz,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=je(e),i=Se("Mention","-mention",mae,Are,e,n),a=Sn(e),l=F(null),s=F(null),c=F(null),d=F("");let f=null,h=null,p=null;const v=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>co(v.value,{getKey:ee=>ee.value})),g=F(null),m=F(!1),y=F(e.defaultValue),C=xe(e,"value"),x=St(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),_=o?et("mention",void 0,w,e):void 0;function k(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,p=null),m.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){k(!1);return}const{selectionEnd:de}=ue;if(de===null){k(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let _e=de-1;_e>=0;--_e){const ve=Ce[_e];if(ve===we||ve===` -`||ve==="\r"){k(!1);return}if(Oe.includes(ve)){const Me=Ce.slice(_e+1,de);k(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,ve),d.value=Me,f=ve,h=_e+1,p=de;return}}k(!1)}function D(){const{value:ee}=s;if(!ee)return;const ue=$(),de=gae(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!m.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{D(),R(),Rt().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=g;if(m.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):k(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function W(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),k(!1)}function V(ee){var ue;if(f===null||h===null||p===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(p),_e=Oe.startsWith(me),ve=`${de}${_e?"":me}`;T(we.slice(0,h)+ve+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+ve.length+(_e?1:0);Rt().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:g,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:m,adjustedTo:Ht(e),isMounted:Hn(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:W,blur:K,cssVars:o?void 0:w,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(En,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Or,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(xc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),kz={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},_z="n-message-api",Rz="n-message-provider",yae=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[Go({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>I(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[I("top",` - top: 12px; - left: 0; - right: 0; - `),I("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),I("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),I("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),I("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),I("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),xae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},wae=J({name:"Message",props:Object.assign(Object.assign({},kz),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=je(e),{props:r,mergedClsPrefixRef:o}=Le(Rz),i=en("Message",n,o),a=Se("Message","-message",yae,ore,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:p,iconMargin:v,closeMargin:b,closeSize:g,iconSize:m,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:_,iconColorWarning:k,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:D,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:W,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":p,"--n-font-size":y,"--n-icon-margin":v,"--n-icon-size":m,"--n-close-icon-size":R,"--n-close-border-radius":D,"--n-close-size":g,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":_,"--n-icon-color-warning":k,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":W,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?et("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Cae(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(Do,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},Ut(r)),n?u(ri,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Cae(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(so,{clsPrefix:n,strokeWidth:24,scale:.85}):xae[t]();return r?u(dt,{clsPrefix:n,key:t},{default:()=>r}):null}}const Sae=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},kz),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=F(!0);It(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:p}=e;d&&d(),f&&f(p),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Io,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(wae,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Pz=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),$z=J({name:"MessageProvider",props:Pz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=F({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};ot(Rz,{props:e,mergedClsPrefixRef:t}),ot(_z,o);function i(s,c){const d=Tr(),f=ji(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var p;(p=r.value[d])===null||p===void 0||p.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Sae,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Va(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Tz(){const e=Le(_z,null);return e===null&&Nn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Fh="n-notification-provider",kae=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(Fh),r=F(null);return At(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_ae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},U0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Rae=Wn(U0),Pae=J({name:"Notification",props:U0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(Fh),{inlineThemeDisabled:o,mergedRtlRef:i}=je(),a=en("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:v,headerTextColor:b,descriptionTextColor:g,actionTextColor:m,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:_,closeMargin:k,closeSize:T,width:$,padding:R,closeIconSize:D,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:W,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=Pi(R);return{"--n-color":d,"--n-font-size":_,"--n-text-color":f,"--n-description-text-color":g,"--n-action-text-color":m,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":v,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":k,"--n-close-size":T,"--n-close-icon-size":D,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":W}}),s=o?et("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?Ut(this.avatar):this.type!=="default"?u(dt,{clsPrefix:t},{default:()=>_ae[this.type]()}):null):null,this.closable?u(ri,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},Ut(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},Ut(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},Ut(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},Ut(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},Ut(this.action)):null):null)))}}),$ae=Object.assign(Object.assign({},U0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Tae=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},$ae),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(Fh),n=F(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(v){t.value++,Rt(()=>{v.style.height=`${v.offsetHeight}px`,v.style.maxHeight="0",v.style.transition="none",v.offsetHeight,v.style.transition="",v.style.maxHeight=v.style.height})}function a(v){t.value--,v.style.height="",v.style.maxHeight="";const{onAfterEnter:b,onAfterShow:g}=e;b&&b(),g&&g()}function l(v){t.value++,v.style.maxHeight=`${v.offsetHeight}px`,v.style.height=`${v.offsetHeight}px`,v.offsetHeight}function s(v){const{onHide:b}=e;b&&b(),v.style.maxHeight="0",v.offsetHeight}function c(){t.value--;const{onAfterLeave:v,onInternalAfterLeave:b,onAfterHide:g,internalKey:m}=e;v&&v(),b(m),g&&g()}function d(){const{duration:v}=e;v&&(r=window.setTimeout(o,v))}function f(v){v.currentTarget===v.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(v){v.currentTarget===v.target&&d()}function p(){const{onClose:v}=e;v?Promise.resolve(v()).then(b=>{b!==!1&&o()}):o()}return It(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:p,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(Ft,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Pae,Object.assign({},xn(this.$props,Rae),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Oae=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),I("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),I("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),I("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),I("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),I("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),I("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),I("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),I("top-right",` - right: 0; - `,[Sd("top-right")]),I("top-left",` - left: 0; - `,[Sd("top-left")]),I("bottom-right",` - right: 0; - `,[Sd("bottom-right")]),I("bottom-left",` - left: 0; - `,[Sd("bottom-left")]),I("scrollable",[I("top-right",` - top: 0; - `),I("top-left",` - top: 0; - `),I("bottom-right",` - bottom: 0; - `),I("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),I("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),I("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function Sd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const Oz="n-notification-api",zz=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Mz=J({name:"NotificationProvider",props:zz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r={},o=new Set;function i(p){const v=Tr(),b=()=>{o.add(v),r[v]&&r[v].hide()},g=ji(Object.assign(Object.assign({},p),{key:v,destroy:b,hide:b,deactivate:b})),{max:m}=e;if(m&&n.value.length-o.size>=m){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(g),g}const a=["info","success","warning","error"].map(p=>v=>i(Object.assign(Object.assign({},v),{type:p})));function l(p){o.delete(p),n.value.splice(n.value.findIndex(v=>v.key===p),1)}const s=Se("Notification","-notification",Oae,Jne,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=F(0);ot(Oz,c),ot(Fh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(p){return i(p)}function h(){Object.values(n.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(kae,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Tae,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Va(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Dz(){const e=Le(Oz,null);return e===null&&Nn("use-notification","No outer `n-notification-provider` found."),e}const zae=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),Iz=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Mae=J({name:"PageHeader",props:Iz,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=je(e),o=Se("PageHeader","-page-header",zae,Vre,e,t),i=en("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:p,titleFontWeight:v,backColorHover:b,backColorPressed:g},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":v,"--n-font-size":f,"--n-back-size":p,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":g,"--n-bezier":m}}),l=r?et("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:p,footer:v,back:b}=l,g=t,m=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(g||p||m||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},g?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(dt,{clsPrefix:i},{default:()=>u(VK,null)})):null,p?u("div",{class:`${i}-page-header__avatar`},p()):null,m?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,v?u("div",{class:`${i}-page-header-footer`,key:"footer"},v()):null)}}),Fz="n-popconfirm",Az={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},$S=Wn(Az),Dae=J({name:"NPopconfirmPanel",props:Az,setup(e){const{localeRef:t}=Cn("Popconfirm"),{inlineThemeDisabled:n}=je(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(Fz),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?et("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},Cn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=gt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Tt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Tt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},kt(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},gt(r.icon,()=>[u(dt,{clsPrefix:t},{default:()=>u(Wi,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Iae=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),Bz=Object.assign(Object.assign(Object.assign({},Se.props),La),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Fae=J({name:"Popconfirm",props:Bz,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=je(),n=Se("Popconfirm","-popconfirm",Iae,qre,e,t),r=F(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return ot(Fz,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(el,Va(t,$S,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=xn(t,$S);return u(Dae,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Aae=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[I("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),I("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),I("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[I("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[I("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),I("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[I("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Bae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Eae=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Mt(e.height)),r=P(()=>e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Mt(e.fillBorderRadius):e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:p,processing:v,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,v&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:b},{default:()=>Bae[f]}))):null)}}}),Lae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Nae=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,p=2*c,v=50+s/2,b=`M ${v},${v} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-p} - a ${c},${c} 0 1 1 ${-h},${p}`,g=Math.PI*2*c,m={stroke:i,strokeDasharray:`${r/100*(g-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:m}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:v,pathStyle:b}=n(100,0,o),{pathString:g,pathStyle:m}=n(s,a,r),y=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:v,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,s===0&&`${p}-progress-graph-circle-fill--empty`],d:g,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:m}))))),c?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:p},{default:()=>Lae[l]})):u("div",{class:`${p}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${p}-progress-text__percentage`},s),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function TS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Hae=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[p]},c[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[p],strokeDashoffset:0,stroke:l[p]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Ez=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),Lz=J({name:"Progress",props:Ez,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Se("Progress","-progress",Aae,TO,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:v,iconSizeLine:b,textColorCircle:g,textColorLineInner:m,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:_}}=i.value;return{"--n-bezier":c,"--n-fill-color":_,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":v,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":g,"--n-text-color-line-inner":m,"--n-text-color-line-outer":y}}),l=o?et("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:v,height:b,processing:g,circleGap:m,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:_,onRender:k}=this;return k==null||k(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Nae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},_):e==="line"?u(Eae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:g,indicatorPlacement:f,unit:h,fillBorderRadius:v,railBorderRadius:p,height:b},_):e==="multiple-circle"?u(Hae,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:m},_):null)}}),jae=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Vae=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),I("active",` - color: var(--n-item-color-active); - `)]),mt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[I("active",` - color: var(--n-item-color-active); - `)])]),Nz=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Wae=J({name:"Rate",props:Nz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Rate","-rate",Vae,noe,e,t),o=xe(e,"value"),i=F(e.defaultValue),a=F(null),l=Sn(e),s=St(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:_,nTriggerFormInput:k}=l;x&&he(x,C),w&&he(w,C),i.value=C,_(),k()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function p(){a.value=null}function v(C,x){var w;const{clearable:_}=e,k=d(C,x);_&&k===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(k)}function b(){f=!1}const g=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),m=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:_}=x,{color:k}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":k||_,"--n-item-size":g.value}}),y=n?et("rate",P(()=>{const C=g.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ia(x)),w}),m,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:v,handleMouseLeave:p,handleMouseEnterSomeStar:b,cssVars:n?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},xM(this.count,(a,l)=>{const s=i?i():u(dt,{clsPrefix:r},{default:()=>jae}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Uae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Kae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),qae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Yae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Gae=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Xae={403:Yae,404:Uae,418:qae,500:Kae,info:u(Hi,null),success:u(Xa,null),warning:u(Wi,null),error:u(Ga,null)},Hz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Zae=J({name:"Result",props:Hz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Result","-result",Gae,ioe,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:p,[ye("fontSize",a)]:v,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:g}}=r.value;return{"--n-bezier":s,"--n-font-size":v,"--n-icon-size":g,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":p||""}}),i=n?et("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(dt,{clsPrefix:r},{default:()=>Xae[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),jz=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Qae=J({name:"Scrollbar",props:jz,setup(){const e=F(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(ln,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Jae=Qae,ele={name:"Skeleton",common:tt,self(e){const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}}},tle=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},nle={name:"Skeleton",common:nt,self:tle},rle=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),Vz=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),ole=J({name:"Skeleton",inheritAttrs:!1,props:Vz,setup(e){Lb();const{mergedClsPrefixRef:t}=je(e),n=Se("Skeleton","-skeleton",rle,nle,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:p,round:v,width:b,height:g,size:m,text:y,animated:C}=e;m!==void 0&&(f=l[ye("height",m)]);const x=h?(r=b!=null?b:g)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:g)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":v?"4096px":p?"":d,width:typeof x=="number"?yn(x):x,height:typeof w=="number"?yn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Gn({class:`${n}-skeleton`,style:t},r));return e>1?u(Ot,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function OS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function zS(){const e=F(new Map),t=n=>r=>{e.value.set(n,r)};return sb(()=>e.value.clear()),[e,t]}const ile=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[I("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),I("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),I("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),I("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),I("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),I("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[I("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[I("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[Dn()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[I("top",` - margin-bottom: 12px; - `),I("right",` - margin-left: 12px; - `),I("bottom",` - margin-top: 12px; - `),I("left",` - margin-right: 12px; - `),Dn()]),Mo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),ei(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),ale=0,Wz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),lle=J({name:"Slider",props:Wz,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Se("Slider","-slider",ile,foe,e,t),i=F(null),[a,l]=zS(),[s,c]=zS(),d=F(new Set),f=Sn(e),{mergedDisabledRef:h}=f,p=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),v=F(e.defaultValue),b=xe(e,"value"),g=St(b,v),m=P(()=>{const{value:ne}=g;return(e.range?ne:[ne]).map(ee)}),y=P(()=>m.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=F(-1),_=F(-1),k=F(-1),T=F(!1),$=F(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),D=P(()=>{if(y.value)return;const ne=m.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=m.value.slice();Pe.sort((ht,vt)=>ht-vt);const{value:Ae}=R,{value:qe}=y,{range:Ye}=e,ft=qe?()=>!1:ht=>Ye?ht>=Pe[0]&&ht<=Pe[Pe.length-1]:ht<=Pe[0];for(const ht of Object.keys(ge)){const vt=Number(ht);ne.push({active:ft(vt),label:ge[ht],style:{[Ae]:`${ue(vt)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||k.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&_.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function W(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:qe}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),v.value=ne,Ae(),qe()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=m;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||m.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=m.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const qe=x.value||[],{step:Ye}=e;if(Ye==="mark"){const vt=we(ne,qe.concat(ge),Ae?Pe:void 0);return vt?vt.value:ge}if(Ye<=0)return ge;const{value:ft}=p;let ht;if(Ae){const vt=Number((ge/Ye).toFixed(ft)),Ve=Math.floor(vt),Xe=vt>Ve?Ve:Ve-1,We=vt0)&&(Ae===null||ft0?1:-1),ge)}function ve(ne){var ge,Pe;if(h.value||!OS(ne)&&ne.button!==ale)return;const Ae=me(ne);if(Ae===void 0)return;const qe=m.value.slice(),Ye=e.range?(Pe=(ge=we(Ae,qe))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;Ye!==-1&&(ne.preventDefault(),E(Ye),Me(),V(re(Ae,m.value[Ye]),Ye))}function Me(){T.value||(T.value=!0,_t("touchend",document,Y),_t("mouseup",document,Y),_t("touchmove",document,U),_t("mousemove",document,U))}function H(){T.value&&(T.value=!1,Ct("touchend",document,Y),Ct("mouseup",document,Y),Ct("touchmove",document,U),Ct("mousemove",document,U))}function U(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,m.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(k.value=ne)}function G(ne){w.value===ne&&(w.value=-1,H()),k.value===ne&&(k.value=-1)}function B(ne){k.value=ne}function N(ne){k.value===ne&&(k.value=-1)}it(w,(ne,ge)=>void Rt(()=>_.value=ge)),it(g,()=>{if(e.marks){if($.value)return;$.value=!0,Rt(()=>{$.value=!1})}Rt(W)}),Bt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:qe,handleColor:Ye,opacityDisabled:ft,dotColor:ht,dotColorModal:vt,handleBoxShadow:Ve,handleBoxShadowHover:Xe,handleBoxShadowActive:We,handleBoxShadowFocus:Ke,dotBorder:X,dotBoxShadow:q,railHeight:ke,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":X,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":ht,"--n-dot-color-modal":vt,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":qe,"--n-font-size":Te,"--n-handle-box-shadow":Ve,"--n-handle-box-shadow-active":We,"--n-handle-box-shadow-focus":Ke,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":Ye,"--n-handle-size":Ee,"--n-opacity-disabled":ft,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":ke,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),pe=r?et("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:qe}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":qe,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?et("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:v,mergedValue:g,mergedDisabled:h,mergedPlacement:C,isMounted:Hn(),adjustedTo:Ht(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:D,getHandleStyle:A,activeIndex:w,arrifiedValues:m,followerEnabledIndexSet:d,handleRailMouseDown:ve,handleHandleFocus:ce,handleHandleBlur:G,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},gt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Or,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),sle=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Yo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[I("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[I("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),cle={small:20,medium:18,large:16},Uz=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),dle=J({name:"Spin",props:Uz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Spin","-spin",sle,poe,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?yn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?et("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ii(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return cle[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(so,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(Ft,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),ule=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),Kz=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),fle=J({name:"Statistic",props:Kz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Statistic","-statistic",ule,boe,e,t),i=en("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:p,valueTextColor:v,labelFontSize:b},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-bezier":g,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":p,"--n-value-text-color":v}}),l=n?et("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},kt(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},kt(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):kt(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),kt(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),hle=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[I("disabled","cursor: not-allowed"),I("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()])])]),I("vertical","flex-direction: column;",[mt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function ple(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function vle(e){return e.map((t,n)=>ple(t,n))}const qz=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),Yz="n-steps",gle=J({name:"Steps",props:qz,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=en("Steps",r,n),i=Se("Steps","-steps",hle,Soe,e,n);return ot(Yz,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},vle(Nr(fc(this))))}}),Gz={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},mle=J({name:"Step",props:Gz,setup(e){const t=Le(Yz,null);t||Nn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=je(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:p}=e,{current:v}=r;if(v===void 0)return"process";if(pv)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:p}=r,{common:{cubicBezierEaseInOut:v},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",p)]:g,[ye("indicatorIndexFontSize",p)]:m,[ye("indicatorSize",p)]:y,[ye("indicatorIconSize",p)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:_,[ye("splitorColor",h)]:k,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":v,"--n-description-text-color":$,"--n-header-text-color":_,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":m,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":k,"--n-step-header-font-size":g,"--n-step-header-font-weight":b}}),d=n?et("step",P(()=>{const{value:h}=s,{size:p}=r;return`${h[0]}${p[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":p}=r;return h||p?()=>{h&&he(h,e.internalIndex),p&&he(p,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=kt(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(Do,null,{default:()=>kt(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(dt,{clsPrefix:e,key:"finish"},{default:()=>gt(l["finish-icon"],()=>[u(d0,null)])}):a==="error"?u(dt,{clsPrefix:e,key:"error"},{default:()=>gt(l["error-icon"],()=>[u(T2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},gt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),ble=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),I("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),mt("disabled",[mt("icon",[I("rubber-band",[I("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),I("active",[I("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),I("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[On()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),I("active",[M("rail","background-color: var(--n-rail-color-active);")]),I("loading",[M("rail",` - cursor: wait; - `)]),I("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),Xz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let ls;const yle=J({name:"Switch",props:Xz,setup(e){ls===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ls=CSS.supports("width","max(1px)"):ls=!1:ls=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Switch","-switch",ble,Ooe,e,t),o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=P(()=>c.value===e.checkedValue),f=F(!1),h=F(!1),p=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function v(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:D}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),D&&he(D,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function g(){const{nTriggerFormBlur:T}=o;T()}function m(){e.loading||a.value||(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,g(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const _=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:D,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:W,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return ls?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=yn((hn(re)-hn(K))/2),me=yn(Math.max(hn(re),hn(K))),Oe=hn(re)>hn(K)?ee:yn(hn(ee)+hn(K)-hn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":D,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":W}}),k=n?et("switch",P(()=>i.value[0]),_,e):void 0;return{handleClick:m,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(Pa(s)&&Pa(c)&&Pa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},kt(a,h=>kt(l,p=>h||p?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),p)):null)),u("div",{class:`${e}-switch__button`},kt(s,h=>kt(c,p=>kt(d,v=>u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||h):!this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"unchecked-icon":"icon"},v||h):null})))),kt(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),kt(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),xle=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),I("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),I("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),mt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),Mo(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),ei(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),Zz=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),wle=J({name:"Table",props:Zz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Table","-table",xle,Doe,e,t),i=en("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:p,thColorModal:v,thColorPopover:b,thTextColor:g,tdTextColor:m,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:_,tdColorStriped:k,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:D,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":m,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":_,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":p,"--n-th-color-modal":v,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":D,"--n-th-padding":z,"--n-td-color-striped":k,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?et("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Cle=J({name:"Th",render(){return u("th",null,this.$slots)}}),Sle=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),kle=J({name:"Td",render(){return u("td",null,this.$slots)}}),_le=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Rle=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),K0="n-tabs",q0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ple=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:q0,setup(e){const t=Le(K0,null);return t||Nn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Qz=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Va(q0,["displayDirective"])),qf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Qz,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(K0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,p=++a.id;if(h!==n.value){const{value:v}=l;v?Promise.resolve(v(e.name,n.value)).then(b=>{b&&a.id===p&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Gn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u(Ot,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(dt,{clsPrefix:t},{default:()=>u(Dl,null)})):d?d():typeof f=="object"?f:Ut(f!=null?f:n)),l&&this.type==="card"?u(ri,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),$le=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[I("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),I("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),I("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),I("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[I("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),I("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[I("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),I("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),I("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),I("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),I("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),I("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[I("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),I("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[I("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),mt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),I("closable","padding-right: 6px;"),I("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),I("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),I("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),I("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),I("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),I("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),Jz=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Tle=J({name:"Tabs",props:Jz,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=je(e),s=Se("Tabs","-tabs",$le,Eoe,e,a),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(!0),b=F(!0),g=Ii(e,["labelSize","size"]),m=Ii(e,["activeName","value"]),y=F((r=(n=m.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Nr(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=St(m,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});it(C,()=>{x.id=0,$(),R()});function _(){var G;const{value:B}=C;return B===null?null:(G=c.value)===null||G===void 0?void 0:G.querySelector(`[data-name="${B}"]`)}function k(G){if(e.type==="card")return;const{value:B}=d;if(!!B&&G){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:pe}=e;if(G.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(pe)){if(T(["top","maxHeight","height"]),typeof te=="number"&&G.offsetWidth>=te){const Z=Math.floor((G.offsetWidth-te)/2)+G.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${G.offsetLeft}px`,B.style.maxWidth=`${G.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&G.offsetHeight>=te){const Z=Math.floor((G.offsetHeight-te)/2)+G.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${G.offsetTop}px`,B.style.maxHeight=`${G.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(G){const{value:B}=d;if(!!B)for(const N of G)B.style[N]=""}function $(){if(e.type==="card")return;const G=_();G&&k(G)}function R(G){var B;const N=(B=p.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=_();if(!te)return;const{scrollLeft:pe,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;pe>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>pe+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const D=F(null);let z=0,A=null;function L(G){const B=D.value;if(B){z=G.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(G){const B=D.value;if(B){const N=G.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const G=D.value;G&&(G.style.maxHeight="",G.style.height="")}const W={value:[]},K=F("next");function Q(G){const B=C.value;let N="next";for(const te of W.value){if(te===B)break;if(te===G){N="prev";break}}K.value=N,V(G)}function V(G){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,G),N&&he(N,G),te&&he(te,G),y.value=G}function re(G){const{onClose:B}=e;B&&he(B,G)}function ee(){const{value:G}=d;if(!G)return;const B="transition-disabled";G.classList.add(B),$(),G.classList.remove(B)}let ue=0;function de(G){var B;if(G.contentRect.width===0&&G.contentRect.height===0||ue===G.contentRect.width)return;ue=G.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Ce=Os(de,64);it([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:G}=e;(G==="line"||G==="bar")&&ee()})});const we=F(!1);function me(G){var B;const{target:N,contentRect:{width:te}}=G,pe=N.parentElement.offsetWidth;if(!we.value)peZ.$el.offsetWidth&&(we.value=!1)}ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Oe=Os(me,64);function _e(){const{onAdd:G}=e;G&&G(),Rt(()=>{const B=_(),{value:N}=p;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function ve(G){if(!G)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=G;v.value=B<=0,b.value=B+te>=N}const Me=Os(G=>{ve(G.target)},64);ot(K0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:_e}),fh(()=>{$(),R()}),At(()=>{const{value:G}=f;if(!G||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;v.value?G.classList.remove(N):G.classList.add(N),b.value?G.classList.remove(te):G.classList.add(te)});const H=F(null);it(C,()=>{if(e.type==="segment"){const G=H.value;G&&Rt(()=>{G.classList.add("transition-disabled"),G.offsetWidth,G.classList.remove("transition-disabled")})}});const U={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:G}=g,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${G}${N}`,{self:{barColor:pe,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:qe,tabBorderRadius:Ye,tabFontWeightActive:ft,colorSegment:ht,fontWeightStrong:vt,tabColorSegment:Ve,closeSize:Xe,closeIconSize:We,closeColorHover:Ke,closeColorPressed:X,closeBorderRadius:q,[ye("panePadding",G)]:ke,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",G)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":ht,"--n-bar-color":pe,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":Ye,"--n-close-size":Xe,"--n-close-icon-size":We,"--n-close-color-hover":Ke,"--n-close-color-pressed":X,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":qe,"--n-tab-font-weight-active":ft,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":ke,"--n-font-weight-strong":vt,"--n-tab-color-segment":Ve}}),ce=l?et("tabs",P(()=>`${g.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:D,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:g,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:W,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},U)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Nr(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Nr(s()).filter(y=>y.type.__TAB__===!0):[],p=!h.length,v=t==="card",b=t==="segment",g=!v&&!b&&this.justifyContent;a.value=[];const m=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),p?f.map((C,x)=>(a.value.push(C.props.name),ev(u(qf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!g||g==="center"||g==="start"||g==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),ev(x!==0&&!g?IS(C):C))),!r&&o&&v?DS(o,(p?f.length:h.length)!==0):null,g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&o?u(jr,{onResize:this.handleTabsResize},{default:()=>y}):y,v?u("div",{class:`${e}-tabs-pad`}):null,v?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,g&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},kt(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},p?f.map((y,C)=>(a.value.push(y.props.name),u(qf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:IS(y)))):u(jr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(b6,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:m}):u("div",{class:`${e}-tabs-nav-y-scroll`},m()))}),r&&o&&v?DS(o,!0):null,kt(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),p&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},MS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):MS(f,this.mergedValue,this.renderedNames)))}});function MS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=v=>d===v||f===v,p=t===c;if(s.key!==void 0&&(s.key=c),p||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const v=!h("if");l.push(v?un(s,[[$r,p]]):s)}}),a?u(ah,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function DS(e,t){return u(qf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function IS(e){const t=ar(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function ev(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Ole=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),e5=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),zle=J({name:"Thing",props:e5,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Thing","-thing",Ole,joe,e,n),a=en("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?et("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(Ot,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),t5={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Mle=J({name:"Time",props:t5,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=Cn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>xT(d,c,f,h):on}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):Z9(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Ar(this.renderedTime):u("time",[this.renderedTime])}}),FS=1.25,Dle=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${FS}; -`,[I("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[I("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),I("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),I("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),I("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${FS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),n5=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),r5="n-timeline",Ile=J({name:"Timeline",props:n5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Timeline","-timeline",Dle,Goe,e,n);return ot(r5,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),o5={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Fle=J({name:"TimelineItem",props:o5,setup(e){const t=Le(r5);t||Nn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Lb();const{inlineThemeDisabled:n}=je(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:p,contentFontSize:v,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:g,[ye("titleFontSize",i)]:m,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":v,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":m,"--n-title-font-weight":p,"--n-title-margin":g,"--n-title-text-color":c,"--n-icon-size":Mt(a)||b}}),o=n?et("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),kt(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},kt(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},gt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},gt(r.footer,()=>[this.time]))))}}),Tc="n-transfer",AS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(Tc),{localeRef:c}=Cn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:p}=i,{value:v}=l,{value:b}=c,g=e.size==="large"?"small":"tiny",{title:m}=e;return u("div",{class:`${v}-transfer-list-header`},m&&u("div",{class:`${v}-transfer-list-header__title`},m),d&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${v}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),BS=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(Tc),s=lt(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:hc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(ri,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),ES=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(BS,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(BS,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),LS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t},{default:()=>u(M2,null)})}))}});function Ale(e){const t=F(e.defaultValue),n=St(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(_=>{const k=x.get(_);k&&w.push(k)}),w}),a=F(""),l=F(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:_}=e;return s.value?w.filter(k=>_(a.value,k,"source")&&(x||!o.value.has(k.value))):x?w:w.filter(k=>!o.value.has(k.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),g=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),m=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:p,valueSetForClearRef:v,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:m,allCheckedRef:g,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Ble=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[I("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[I("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),I("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),I("source","cursor: pointer;"),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),mt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),i5=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ele=J({name:"Transfer",props:i5,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("Transfer","-transfer",Ble,eie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return hn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:p,filteredSrcOptionsRef:v,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k}=Ale(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:W}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),W&&he(W,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function D(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return ot(Tc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:D,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:W,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:_e,closeIconColorPressed:ve,closeIconSize:Me,closeSize:H,dividerColor:U,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:G,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":W,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":G,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":_e,"--n-close-icon-color-pressed":ve,"--n-divider-color":U}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(AS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(LS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(ES,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(AS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(LS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(ES,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),Y0="n-tree-select",Oc="n-tree",Lle=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(Oc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(Do,null,{default:()=>{if(e.loading)return u(so,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(dt,{clsPrefix:n,key:"switcher"},{default:()=>u(AK,null)})}})))}}}),Nle=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(Oc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(ii,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Hle=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(Oc),i=F(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:p}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):Ut(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):Ut(p)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):Ut(h)):null)}});function NS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function jle({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function a5(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function vi(e,t){return!!e.rawNode[t]}function l5(e,t,n,r){e==null||e.forEach(o=>{n(o),l5(o[t],t,n,r),r(o)})}function Vle(e,t,n,r,o){const i=new Set,a=new Set,l=[];return l5(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(lr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Wle(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(p){p.forEach(v=>{if(d.push(v),t(n,v)){i.add(v[r]),l.add(v[r]);for(let g=d.length-2;g>=0;--g){const m=d[g][r];if(!a.has(m))a.add(m),i.has(m)&&i.delete(m);else break}}const b=v[o];b&&f(b),d.pop()})}f(e);function h(p,v){p.forEach(b=>{const g=b[r],m=i.has(g),y=a.has(g);if(!m&&!y)return;const C=b[o];if(C)if(m)v.push(b);else{s.push(g);const x=Object.assign(Object.assign({},b),{[o]:[]});v.push(x),h(C,x[o])}else v.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Ule=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(Oc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,p=lt(()=>!!e.tmNode.rawNode.checkboxDisabled),v=lt(()=>vi(e.tmNode,h.value)),b=lt(()=>t.disabledRef.value||v.value),g=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),m=F(null),y={value:null};It(()=>{y.value=m.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=lt(()=>!v.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=lt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),_=lt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),k=lt(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=k;if(!V&&!Q&&!re||Zn(K,"checkbox")||Zn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&D(!_.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function D(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function W(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:lt(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:lt(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:lt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:lt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:lt(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:_,indeterminate:lt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:lt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:lt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:k,checkboxDisabled:p,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:g,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:m,contentElRef:y,handleCheck:D,handleDrop:W,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:p,nodeProps:v,checkboxPlacement:b}=this,g=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,m=p?N_(e.key):void 0,y=b==="right",C=n?u(Nle,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},g),u("div",Object.assign({},c?v:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},v==null?void 0:v.class],"data-key":m,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),L_(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Lle,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Hle,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:v,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?NS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?NS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),s5=Ule;function Kle({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(Y0,null),s=l?l.pendingNodeKeyRef:F(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let p=0;for(;pv.key===f);if(!~p)return;if(d.key==="Enter")o(h[p]);else if(d.key==="ArrowDown")for(d.preventDefault(),p+=1;p=0;){if(!h[p].disabled){s.value=h[p].key;break}p-=1}else if(d.key==="ArrowLeft"){const v=h[p];if(v.isLeaf||!n.value.includes(f)){const b=v.getParent();b&&(s.value=b.key)}else i(v)}else if(d.key==="ArrowRight"){const v=h[p];if(v.isLeaf)return;if(!n.value.includes(f))i(v);else for(p+=1;pu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:yn(this.height)}},this.nodes.map(t=>u(s5,{clsPrefix:e,tmNode:t})))})}}),Yle=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[I("expand",[Go({duration:"0.2s"})]),I("collapse",[Go({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[I("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),I("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),mt("disabled",[I("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),I("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),mt("block-line",[S("tree-node",[mt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),I("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),I("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),I("block-line",[S("tree-node",[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),I("pending",` - background-color: var(--n-node-color-hover); - `),I("selectable",[mt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("selected",{backgroundColor:"var(--n-node-color-active)"})]),I("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[On()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()]),S("base-icon",[On()])]),I("hide",{visibility:"hidden"}),I("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[I("right","margin-left: 4px;")]),I("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Gle=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const kd=30;function c5(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const d5={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},u5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:jle},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),d5),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),f5=J({name:"Tree",props:u5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Tree",r,t),i=Se("Tree","-tree",Yle,VO,e,t),a=F(null),l=F(null),s=F(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:Fe}=e;return(Je,at)=>{if(!Je.length)return!0;const ct=at[Fe];return typeof ct=="string"?ct.toLowerCase().includes(Je.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Wle(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=P(()=>co(e.showIrrelevantNodes?e.data:h.value.filteredTree,c5(e.keyField,e.childrenField,e.disabledField,e.getChildren))),v=Le(Y0,null),b=e.internalTreeSelect?v.dataTreeMate:p,{watchProps:g}=e,m=F([]);g!=null&&g.includes("defaultCheckedKeys")?At(()=>{m.value=e.defaultCheckedKeys}):m.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=St(y,m),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=a5(e),_=P(()=>x.value.checkedKeys),k=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=F([]);g!=null&&g.includes("defaultSelectedKeys")?At(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=St($,T),D=F([]),z=be=>{D.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};g!=null&&g.includes("defaultExpandedKeys")?At(()=>z(void 0)):At(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=St(A,D),j=P(()=>p.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:W}=Kle({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=F(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=St(re,V),ue=F(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=F(null),me=F(null),Oe=F(null),_e=F(null),ve=F(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});it(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const U=()=>{H=!0,Rt(()=>{H=!1})};let Y;it(xe(e,"pattern"),(be,Fe)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Je,highlightKeySet:at}=Vle(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=at,U(),ne(Je,fe(Je),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(U(),ne(Y,fe(Y),{node:null,action:"filter"}));else{Fe.length||(Y=L.value);const{expandedKeys:Je}=h.value;Je!==void 0&&(U(),ne(Je,fe(Je),{node:null,action:"filter"}))}});function ce(be){return Gle(this,void 0,void 0,function*(){const{onLoad:Fe}=e;if(!Fe)return yield Promise.resolve();const{value:Je}=ue;if(!Je.has(be.key)){Je.add(be.key);try{(yield Fe(be.rawNode))===!1&&X()}catch(at){console.error(at),X()}Je.delete(be.key)}})}At(()=>{var be;const{value:Fe}=p;if(!Fe)return;const{getNode:Je}=Fe;(be=L.value)===null||be===void 0||be.forEach(at=>{const ct=Je(at);ct&&!ct.shallowLoaded&&ce(ct)})});const G=F(!1),B=F([]);it(de,(be,Fe)=>{if(!e.animated||H){Rt(pe);return}const Je=new Set(Fe);let at=null,ct=null;for(const Pt of be)if(!Je.has(Pt)){if(at!==null)return;at=Pt}const Gt=new Set(be);for(const Pt of Fe)if(!Gt.has(Pt)){if(ct!==null)return;ct=Pt}if(at===null&&ct===null)return;const{virtualScroll:Kt}=e,Re=(Kt?s.value.listElRef:a.value).offsetHeight,Ge=Math.ceil(Re/kd)+1;let st;if(at!==null&&(st=Fe),ct!==null&&(st===void 0?st=be:st=st.filter(Pt=>Pt!==ct)),G.value=!0,B.value=p.value.getFlattenedNodes(st),at!==null){const Pt=B.value.findIndex(qt=>qt.key===at);if(~Pt){const qt=B.value[Pt].children;if(qt){const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"expand",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}}if(ct!==null){const Pt=B.value.findIndex(qt=>qt.key===ct);if(~Pt){const qt=B.value[Pt].children;if(!qt)return;G.value=!0;const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"collapse",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}});const N=P(()=>F2(j.value)),te=P(()=>G.value?B.value:j.value);function pe(){const{value:be}=l;be&&be.sync()}function Z(){G.value=!1,e.virtualScroll&&Rt(pe)}function fe(be){const{getNode:Fe}=b.value;return be.map(Je=>{var at;return((at=Fe(Je))===null||at===void 0?void 0:at.rawNode)||null})}function ne(be,Fe,Je){const{"onUpdate:expandedKeys":at,onUpdateExpandedKeys:ct}=e;D.value=be,at&&he(at,be,Fe,Je),ct&&he(ct,be,Fe,Je)}function ge(be,Fe,Je){const{"onUpdate:checkedKeys":at,onUpdateCheckedKeys:ct}=e;m.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function Pe(be,Fe){const{"onUpdate:indeterminateKeys":Je,onUpdateIndeterminateKeys:at}=e;Je&&he(Je,be,Fe),at&&he(at,be,Fe)}function Ae(be,Fe,Je){const{"onUpdate:selectedKeys":at,onUpdateSelectedKeys:ct}=e;T.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function qe(be){const{onDragenter:Fe}=e;Fe&&he(Fe,be)}function Ye(be){const{onDragleave:Fe}=e;Fe&&he(Fe,be)}function ft(be){const{onDragend:Fe}=e;Fe&&he(Fe,be)}function ht(be){const{onDragstart:Fe}=e;Fe&&he(Fe,be)}function vt(be){const{onDragover:Fe}=e;Fe&&he(Fe,be)}function Ve(be){const{onDrop:Fe}=e;Fe&&he(Fe,be)}function Xe(){We(),Ke()}function We(){we.value=null}function Ke(){ve.value=0,me.value=null,Oe.value=null,_e.value=null,X()}function X(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,Fe){if(e.disabled||vi(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Je=Fe?"check":"uncheck",{checkedKeys:at,indeterminateKeys:ct}=b.value[Je](be.key,_.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(at,fe(at),{node:be.rawNode,action:Je}),Pe(ct,fe(ct))}function ke(be){if(e.disabled)return;const{key:Fe}=be,{value:Je}=L,at=Je.findIndex(ct=>ct===Fe);if(~at){const ct=Array.from(Je);ct.splice(at,1),ne(ct,fe(ct),{node:be.rawNode,action:"collapse"})}else{const ct=p.value.getNode(Fe);if(!ct||ct.isLeaf)return;let Gt;if(e.accordion){const Kt=new Set(be.siblings.map(({key:Re})=>Re));Gt=Je.filter(Re=>!Kt.has(Re)),Gt.push(Fe)}else Gt=Je.concat(Fe);ne(Gt,fe(Gt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||G.value||ke(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Fe,indeterminateKeys:Je}}=x;e.multiple?q(be,!(Fe.includes(be.key)||Je.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const Fe=Array.from(R.value),Je=Fe.findIndex(at=>at===be.key);~Je?e.cancelable&&Fe.splice(Je,1):~Je||Fe.push(be.key),Ae(Fe,fe(Fe),{node:be.rawNode,action:~Je?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const Fe=()=>{if(Q!==be.key)return;const{value:Je}=Oe;if(Je&&Je.key===be.key&&!L.value.includes(be.key)){const at=L.value.concat(be.key);ne(at,fe(at),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{Fe()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{Fe()})},1e3)}function ze({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(oe({event:be,node:Fe},!1),qe({event:be,node:Fe.rawNode}))}function ie({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||Ye({event:be,node:Fe.rawNode})}function Te(be){be.target===be.currentTarget&&Ke()}function se({event:be,node:Fe}){Xe(),!(!e.draggable||e.disabled||vi(Fe,e.disabledField))&&ft({event:be,node:Fe.rawNode})}function $e({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(Ce=be.clientX,we.value=Fe,ht({event:be,node:Fe.rawNode}))}function oe({event:be,node:Fe},Je=!0){var at;if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:ct}=we;if(!ct)return;const{allowDrop:Gt,indent:Kt}=e;Je&&vt({event:be,node:Fe.rawNode});const Re=be.currentTarget,{height:Ge,top:st}=Re.getBoundingClientRect(),Pt=be.clientY-st;let qt;Gt({node:Fe.rawNode,dropPosition:"inside",phase:"drag"})?Pt<=8?qt="before":Pt>=Ge-8?qt="after":qt="inside":Pt<=Ge/2?qt="before":qt="after";const{value:Qr}=N;let Nt,fn;const Ao=Qr(Fe.key);if(Ao===null){Ke();return}let ai=!1;qt==="inside"?(Nt=Fe,fn="inside"):qt==="before"?Fe.isFirstChild?(Nt=Fe,fn="before"):(Nt=j.value[Ao-1],fn="after"):(Nt=Fe,fn="after"),!Nt.isLeaf&&L.value.includes(Nt.key)&&(ai=!0,fn==="after"&&(Nt=j.value[Ao+1],Nt?fn="before":(Nt=Fe,fn="inside")));const li=Nt;if(Oe.value=li,!ai&&ct.isLastChild&&ct.key===Nt.key&&(fn="after"),fn==="after"){let si=Ce-be.clientX,qi=0;for(;si>=Kt/2&&Nt.parent!==null&&Nt.isLastChild&&qi<1;)si-=Kt,qi+=1,Nt=Nt.parent;ve.value=qi}else ve.value=0;if((ct.contains(Nt)||fn==="inside"&&((at=ct.parent)===null||at===void 0?void 0:at.key)===Nt.key)&&!(ct.key===li.key&&ct.key===Nt.key)){Ke();return}if(!Gt({node:Nt.rawNode,dropPosition:fn,phase:"drag"})){Ke();return}if(ct.key===Nt.key)X();else if(Q!==Nt.key)if(fn==="inside"){if(e.expandOnDragenter){if(ae(Nt),!Nt.shallowLoaded&&Q!==Nt.key){Xe();return}}else if(!Nt.shallowLoaded){Xe();return}}else X();else fn!=="inside"&&X();_e.value=fn,me.value=Nt}function Ie({event:be,node:Fe,dropPosition:Je}){if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:at}=we,{value:ct}=me,{value:Gt}=_e;if(!(!at||!ct||!Gt)&&!!e.allowDrop({node:ct.rawNode,dropPosition:Gt,phase:"drag"})&&at.key!==ct.key){if(Gt==="before"){const Kt=at.getNext({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}if(Gt==="after"){const Kt=at.getPrev({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}Ve({event:be,node:ct.rawNode,dragNode:at.rawNode,dropPosition:Je}),Xe()}}function Ne(){pe()}function Qe(){pe()}function Ue(be){var Fe;if(e.virtualScroll||e.internalScrollable){const{value:Je}=l;if(!((Fe=Je==null?void 0:Je.containerRef)===null||Fe===void 0)&&Fe.contains(be.relatedTarget))return;E.value=null}else{const{value:Je}=a;if(Je!=null&&Je.contains(be.relatedTarget))return;E.value=null}}it(E,be=>{var Fe,Je;if(be!==null){if(e.virtualScroll)(Fe=s.value)===null||Fe===void 0||Fe.scrollTo({key:be});else if(e.internalScrollable){const{value:at}=l;if(at===null)return;const ct=(Je=at.contentRef)===null||Je===void 0?void 0:Je.querySelector(`[data-key="${N_(be)}"]`);if(!ct)return;at.scrollTo({el:ct})}}}),ot(Oc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:_,displayedIndeterminateKeysRef:k,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:_e,droppingOffsetLevelRef:ve,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Ie,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var Fe;(Fe=s.value)===null||Fe===void 0||Fe.scrollTo(be)}const De={handleKeydown:W,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ze=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:Fe,nodeBorderRadius:Je,nodeColorHover:at,nodeColorPressed:ct,nodeColorActive:Gt,arrowColor:Kt,loadingColor:Re,nodeTextColor:Ge,nodeTextColorDisabled:st,dropMarkColor:Pt}}=i.value;return{"--n-arrow-color":Kt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":Fe,"--n-node-border-radius":Je,"--n-node-color-active":Gt,"--n-node-color-hover":at,"--n-node-color-pressed":ct,"--n-node-text-color":Ge,"--n-node-text-color-disabled":st,"--n-drop-mark-color":Pt}}),bt=n?et("tree",void 0,Ze,e):void 0;return Object.assign(Object.assign({},De),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:G,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Qe,cssVars:n?void 0:Ze,themeClass:bt==null?void 0:bt.themeClass,onRender:bt==null?void 0:bt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,p=s&&!l,v=p?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],g=y=>"__motion"in y?u(qle,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(s5,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=Pi(C||"0");return u(Bf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(qo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:kd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:_})=>g(_)})}})}const{internalScrollable:m}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),m?u(Bf,{class:b,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(g))}):u("div",{class:b,tabindex:v,ref:"selfElRef",style:this.cssVars,onKeydown:p?d:void 0,onFocusout:p?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(g):gt(this.$slots.empty,()=>[u(Ui,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function HS(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function jS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Xle=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),Dn()])]),h5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Ht.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),d5),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Zle=J({name:"TreeSelect",props:h5,setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=je(e),{localeRef:s}=Cn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:p,nTriggerFormFocus:v,nTriggerFormInput:b}=Sn(e),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=F(e.defaultShow),x=xe(e,"show"),w=St(x,C),_=F(""),k=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:ke}=e;return(Be,Ee)=>Be.length?Ee[ke].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>co(e.options,c5(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=F(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),D=P(()=>e.multiple&&e.cascade&&e.checkable),z=F(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=St(A,z),j=F(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),W=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:ke,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return ke?jS(ie,ze.getPath(ae).treeNodePath,Be,Ee):HS(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:ke,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(ke?jS($e,ze.getPath(se).treeNodePath,Be,Te):HS($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=We.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:ke,"onUpdate:show":Be}=e;ke&&he(ke,q),Be&&he(Be,q),C.value=q}function Ce(q,ke,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),g.value=q,b(),p()}function we(q,ke){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,ke),Ee&&he(Ee,q,ke)}function me(q,ke,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),z.value=q}function Oe(q){const{onFocus:ke}=e;ke&&ke(q),v()}function _e(q){ve();const{onBlur:ke}=e;ke&&ke(q),h()}function ve(){de(!1)}function Me(){d.value||(_.value="",de(!0),e.filterable&&ue())}function H(){_.value=""}function U(q){var ke;w.value&&(!((ke=n.value)===null||ke===void 0)&&ke.$el.contains(vr(q))||ve())}function Y(){d.value||(w.value?e.filterable||ve():Me())}function ce(q){const{value:{getNode:ke}}=T;return q.map(Be=>{var Ee;return((Ee=ke(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function G(q,ke,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(_.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),ve(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!1,_e(q))}function pe(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,_e(q))}function fe(q){q.stopPropagation();const{multiple:ke}=e;!ke&&e.filterable&&ve(),ke?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:ke}=y;if(Array.isArray(ke)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(ke,{cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:ke}=q.target;_.value=ke}function Pe(q){const{value:ke}=r;ke&&ke.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(ve(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Fa(q),ve(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function qe(){ve(),ee()}function Ye(q){Zn(q,"action")||q.preventDefault()}const ft=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});ot(Y0,{pendingNodeKeyRef:R,dataTreeMate:T});function ht(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}ph(o,ht);const vt=a5(e),Ve=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:vt.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=Ve.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=Ve.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},We=Se("TreeSelect","-tree-select",Xle,lie,e,i),Ke=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:ke,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=We.value;return{"--n-menu-box-shadow":ke,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),X=l?et("tree-select",void 0,Ke,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Ht(e),isMounted:Hn(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:W,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:_,pendingNodeKey:R,mergedCascade:D,mergedFilter:k,selectionRenderTag:ft,handleTriggerOrMenuResize:ht,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:U,handleUpdateCheckedKeys:G,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:pe,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:qe,handleMenuMousedown:Ye,mergedTheme:We,cssVars:l?void 0:Ke,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Or,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),un(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(f5,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},gt(n.empty,()=>[u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),kt(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Fo,{onFocus:this.handleTabOut})),[[gr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Qle=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),I("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[I("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),ua=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Wl=e=>J({name:`H${e}`,props:ua,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(t),o=Se("Typography","-h",Qle,Ki,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:p,[ye("headerBarWidth",e)]:v,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":p,"--n-bar-color":b,"--n-bar-width":v,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?et(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),Jle=Wl("1"),ese=Wl("2"),tse=Wl("3"),nse=Wl("4"),rse=Wl("5"),ose=Wl("6"),ise=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),p5=Object.assign({},Se.props),ase=J({name:"A",props:p5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-a",ise,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?et("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),lse=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),v5=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),sse=J({name:"P",props:v5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-p",lse,Ki,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:p}}),i=n?et("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),cse=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),I("align-text",{marginLeft:"-16px"})]),g5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),dse=J({name:"Blockquote",props:g5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-blockquote",cse,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?et("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),use=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),fse=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-hr",use,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?et("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),VS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),WS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],m5=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[I("align-text",{paddingLeft:0}),VS,WS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[I("align-text",{paddingLeft:0}),VS,WS])]),b5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),hse=J({name:"Ul",props:b5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),y5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pse=J({name:"Ol",props:y5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),vse=J({name:"Li",render(){return u("li",null,this.$slots)}}),gse=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),I("italic",{fontStyle:"italic"}),I("underline",{textDecoration:"underline"}),I("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),x5=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),mse=J({name:"Text",props:x5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-text",gse,Ki,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:p,codeColor:v,codeBorder:b,[s]:g}}=r.value;return{"--n-bezier":f,"--n-text-color":g,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":p,"--n-code-text-color":h,"--n-code-color":v,"--n-code-border":b}}),i=n?et("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ii(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Ul="n-upload",w5="__UPLOAD_DRAGGER__",C5=J({name:"UploadDragger",[w5]:!0,setup(e,{slots:t}){const n=Le(Ul,null);return n||Nn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var S5=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const k5=e=>e.includes("image/"),US=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},KS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,_5=e=>{if(e.type)return k5(e.type);const t=US(e.name||"");if(KS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=US(n);return!!(/^data:image\//.test(n)||KS.test(r))};function bse(e){return S5(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!k5(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const yse=lr&&window.FileReader&&window.File;function xse(e){return e.isDirectory}function wse(e){return e.isFile}function Cse(e,t){return S5(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&xse(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else wse(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function ic(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function Sse(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const kse=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},G0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,p=P(()=>a.value==="image-card");function v(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?Cse(Array.from(w).map(_=>_.webkitGetAsEntry()),f.value).then(_=>{d(_)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:v,handleDrop:y,handleDragOver:b,handleDragEnter:g,handleDragLeave:m}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,p.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:v,onDrop:y,onDragover:b,onDragenter:g,onDragleave:m},p.value?u(C5,null,{default:()=>gt(t.default,()=>[u(dt,{clsPrefix:x},{default:()=>u(Dl,null)})])}):t)}}}),_se=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Ul).mergedThemeRef}},render(){return u(Io,null,{default:()=>this.show?u(Lz,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Rse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Pse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var $se=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const _d={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Tse=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Ul),n=F(null),r=F(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=lt(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:_}=e;return["finished"].includes(w)&&f.value&&_==="image-card"});function p(){t.submit(e.file.id)}function v(w){w.preventDefault();const{file:_}=e;["finished","pending","error"].includes(_.status)?g(_):["uploading"].includes(_.status)?y(_):Qn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),m(e.file)}function g(w){const{xhrMap:_,doChange:k,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const D=Object.assign({},w,{status:"removed"});_.delete(w.id),k(D,void 0,{remove:!0})})}function m(w){const{onDownloadRef:{value:_}}=t;Promise.resolve(_?_(Object.assign({},w)):!0).then(k=>{k!==!1&&kse(w.url,w.name)})}function y(w){const{xhrMap:_}=t,k=_.get(w.id);k==null||k.abort(),g(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:_}=n;if(!_)return;_.click()}}const x=()=>$se(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return At(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:v,handleDownloadClick:b,handleRetryClick:p,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):_5(r)?u(dt,{clsPrefix:e},{default:()=>Rse}):u(dt,{clsPrefix:e},{default:()=>Pse})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(QO,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(dt,{clsPrefix:e},{default:()=>u(OK,null)}));const s=u(_se,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Tt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(O2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Tt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:_d,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(Do,null,{default:()=>this.showRemoveButton?u(dt,{clsPrefix:e,key:"trash"},{default:()=>u(MK,null)}):u(dt,{clsPrefix:e,key:"cancel"},{default:()=>u(EK,null)})})}),this.showRetryButton&&!this.disabled&&u(Tt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(jK,null)})}),this.showDownloadButton?u(Tt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(DK,null)})}):null)),!a&&s)}}),R5=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,p=P(()=>i.value==="image-card"),v=()=>a.value.map(g=>u(Tse,{clsPrefix:o.value,key:g.id,file:g,listType:i.value})),b=()=>p.value?u(XO,Object.assign({},h.value),{default:v}):u(Io,{group:!0},{default:v});return()=>{const{value:g}=o,{value:m}=r;return u("div",{class:[`${g}-upload-file-list`,p.value&&`${g}-upload-file-list--grid`,m?c==null?void 0:c.value:void 0],style:[m&&s?s.value:"",l.value]},b(),f.value&&!d.value&&p.value&&u(G0,null,t))}}}),Ose=O([S("upload","width: 100%;",[I("dragger-inside",[S("upload-trigger",` - display: block; - `)]),I("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),I("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),I("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),I("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[Go(),S("progress",[Go({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),I("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),I("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),I("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),I("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),I("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),I("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[On()])])]),I("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),I("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var qS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function zse(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=ic(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=ic(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Mse(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=ic(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=ic(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Dse(e,t,n){const r=zse(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function P5(e,t){return typeof e=="function"?e({file:t}):e||{}}function Ise(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Fse(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Ase(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Fse(d,s,n),d.append(t,n.file),Dse(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Ise(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const $5=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>yse?_5(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bse=J({name:"Upload",props:$5,setup(e){e.abstract&&e.listType==="image-card"&&Nn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Upload","-upload",Ose,hie,e,t),o=Sn(e),i=P(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),a=F(e.defaultFileList),l=xe(e,"fileList"),s=F(null),c={value:!1},d=F(!1),f=new Map,h=St(l,a),p=P(()=>h.value.map(ic));function v(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(D=>({file:D,entry:null,source:"input"})):null,$),R.value=""}function g($){const{"onUpdate:fileList":R,onUpdateFileList:D}=e;R&&he(R,$),D&&he(D,$),a.value=$}const m=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:D}=e;$=m.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?Sse(j.name,j.type,A):!0),z&&($=$.slice(0,z-p.value.length));const L=Tr();Promise.all($.map(({file:j,entry:E})=>qS(this,void 0,void 0,function*(){var W;const K={id:Tr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(W=E==null?void 0:E.fullPath)!==null&&W!==void 0?W:`/${j.webkitRelativePath||j.name}`};return!D||(yield D({file:K,fileList:p.value}))!==!1?K:null}))).then(j=>qS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(W=>{E=E.then(Rt).then(()=>{W&&x(W,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:D,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?p.value.filter(K=>K.id===$):p.value,W=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&W)&&(e.customRequest?Mse({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:D,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Ase({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:D,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,D={append:!1,remove:!1})=>{const{append:z,remove:A}=D,L=Array.from(p.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),g(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:D}=e;return D?(R=D($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?bse($.file):""}const _=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:D,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:W,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":D,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":W,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),k=n?et("upload",void 0,_,e):void 0;ot(Ul,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:v,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:_,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:m,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[w5]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(Ot,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(cc,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(G0,null,o),this.showFileList&&u(R5,null,o)))}}),Ese=O([S("watermark-container",` - position: relative; - `,[mt("selectable",` - user-select: none; - -webkit-user-select: none; - `),I("global-rotate",` - overflow: hidden; - `),I("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[I("fullscreen",` - position: fixed; - `),I("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Lse(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const T5=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Nse=J({name:"Watermark",props:T5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Watermark","-watermark",Ese,yie,e,n),o=F(""),i=lr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=F(!1);return fh(()=>l.value=!0),At(()=>{if(!i)return;l.value;const s=Lse(a),{xGap:c,yGap:d,width:f,height:h,yOffset:p,xOffset:v,rotate:b,image:g,content:m,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:_,fontFamily:k,fontSize:T,lineHeight:$,debug:R}=e,D=(c+f)*s,z=(d+h)*s,A=v*s,L=p*s;if(i.width=D,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),g){const W=new Image;W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=g,W.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(W,A,L,(e.imageWidth||(Q?W.width*Q/W.height:W.width))*s,(e.imageHeight||(K?W.height*K/W.width:W.height))*s),o.value=i.toDataURL()}}else m&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${_} ${w} ${T*s}px/${$*s}px ${k||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(m,A,L+$*s),o.value=i.toDataURL())}else LA("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,p=c!==0&&d,v="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${v} + ${e.width/2}px) calc(${v} + ${e.height/2}px), ${v} ${v}`:v,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Hse=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),jse={message:Tz,notification:Dz,loadingBar:pz,dialog:VT};function Vse({providersAndProps:e,configProviderProps:t}){let r=qk(()=>u(x$,ov(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,ov(c),{default:()=>u(Hse,{onSetup:()=>o[l]=jse[l]()})}))}));const o={app:r};let i;return lr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Qn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Wse(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:$z,props:n});break;case"notification":a.push({type:s,Provider:Mz,props:o});break;case"dialog":a.push({type:s,Provider:jT,props:r});break;case"loadingBar":a.push({type:s,Provider:hz,props:i});break}}),Vse({providersAndProps:a,configProviderProps:t})}const O5={value:String,katex:Object,katexOptions:Object},Use=J({name:"Equation",props:O5,setup(e){const t=Le(Ur),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),YS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:P2,affixProps:wh,NAlert:yY,alertProps:aP,NAnchor:OY,anchorProps:cP,NAnchorLink:RY,anchorLinkProps:sP,NAutoComplete:XY,autoCompleteProps:xP,NAvatar:rm,avatarProps:RP,NAvatarGroup:aG,avatarGroupProps:$P,NBackTop:pG,backTopProps:OP,NBadge:wG,badgeProps:zP,NBreadcrumb:$G,breadcrumbProps:IP,NBreadcrumbItem:zG,breadcrumbItemProps:FP,NButton:Tt,NxButton:lo,buttonProps:EP,NButtonGroup:g0,buttonGroupProps:HP,NCalendar:qG,calendarProps:VP,NColorPicker:CX,colorPickerProps:KP,NCard:ZP,cardProps:XP,NCarousel:KX,carouselProps:t$,NCarouselItem:e$,NCascader:cZ,cascaderProps:s$,NCheckbox:ii,checkboxProps:l$,NCheckboxGroup:a$,checkboxGroupProps:i$,NCode:f$,codeProps:u$,NCollapse:yZ,collapseProps:p$,NCollapseItem:wZ,collapseItemProps:g$,NCollapseTransition:PZ,collapseTransitionProps:b$,NConfigProvider:x$,configProviderProps:y$,NCountdown:$Z,countdownProps:w$,NNumberAnimation:zZ,numberAnimationProps:C$,NDataTable:lJ,dataTableProps:K$,NDatePicker:vee,datePickerProps:RT,NDescriptions:See,descriptionsProps:TT,NDescriptionsItem:kee,descriptionsItemProps:OT,NDialog:I0,dialogProps:Sc,NDialogProvider:jT,dialogProviderProps:HT,useDialog:VT,useDialogReactiveList:Lee,NDivider:Uee,dividerProps:UT,NDrawer:dte,drawerProps:qT,NDrawerContent:ute,drawerContentProps:YT,NDropdown:$0,dropdownProps:sT,NDynamicInput:xte,dynamicInputProps:XT,NDynamicTags:Ote,dynamicTagsProps:nO,NElement:sS,elementProps:rO,NEl:sS,NEllipsis:_0,ellipsisProps:U$,NEmpty:Ui,emptyProps:H2,NForm:Hte,formProps:lO,NFormItem:B0,formItemProps:Rc,NFormItemGridItem:bS,NFormItemGi:bS,formItemGiProps:jm,formItemGridItemProps:jm,NFormItemCol:vO,NFormItemRow:Mne,NGlobalStyle:Dne,NGradientText:Nne,gradientTextProps:gO,NGrid:jne,gridProps:bO,NGridItem:Hm,gridItemProps:oc,NGi:Hm,giProps:oc,NIcon:oT,iconProps:rT,NIconWrapper:Yne,iconWrapperProps:xO,NImage:QO,imageProps:ZO,NImageGroup:XO,imageGroupProps:GO,NInput:En,inputProps:pP,NInputGroup:gP,inputGroupProps:vP,NInputGroupLabel:VY,inputGroupLabelProps:mP,NInputNumber:Oie,inputNumberProps:JO,NLayout:Mie,layoutProps:Vm,layoutContentProps:Vm,NLayoutContent:Die,NLayoutHeader:Fie,layoutHeaderProps:rz,NLayoutFooter:Bie,layoutFooterProps:oz,NLayoutSider:Hie,layoutSiderProps:iz,NRow:hO,rowProps:zh,NCol:pO,colProps:Mh,NLegacyTransfer:Xie,legacyTransferProps:lz,NList:Qie,listProps:sz,NListItem:Jie,NLoadingBarProvider:hz,loadingBarProviderProps:fz,useLoadingBar:pz,NLog:iae,logProps:gz,NMenu:vae,menuProps:Cz,NMention:bae,mentionProps:Sz,NMessageProvider:$z,messageProviderProps:Pz,useMessage:Tz,NModal:NT,modalProps:LT,NNotificationProvider:Mz,notificationProviderProps:zz,useNotification:Dz,NPageHeader:Mae,pageHeaderProps:Iz,NPagination:A$,paginationProps:F$,NPopconfirm:Fae,popconfirmProps:Bz,NPopover:el,popoverProps:G2,NPopselect:R$,popselectProps:_$,NProgress:Lz,progressProps:Ez,NRadio:R0,radioProps:Ph,NRadioGroup:X$,radioGroupProps:G$,NRadioButton:vQ,radioButtonProps:pQ,NRate:Wae,rateProps:Nz,NResult:Zae,resultProps:Hz,NScrollbar:Jae,scrollbarProps:jz,NSelect:z$,selectProps:O$,NSkeleton:ole,skeletonProps:Vz,NSlider:lle,sliderProps:Wz,NSpace:tO,spaceProps:eO,NSpin:dle,spinProps:Uz,NStatistic:fle,statisticProps:Kz,NSteps:gle,stepsProps:qz,NStep:mle,stepProps:Gz,NSwitch:yle,switchProps:Xz,NTable:wle,tableProps:Zz,NTh:Cle,NTr:Sle,NTd:kle,NThead:_le,NTbody:Rle,NTabs:Tle,tabsProps:Jz,NTabPane:Ple,tabPaneProps:q0,NTab:qf,tabProps:Qz,NTag:zs,tagProps:eP,NThing:zle,thingProps:e5,NTime:Mle,timeProps:t5,NTimePicker:Kf,timePickerProps:CT,NTimeline:Ile,timelineProps:n5,NTimelineItem:Fle,timelineItemProps:o5,NTooltip:Rh,tooltipProps:W$,NTransfer:Ele,transferProps:i5,NTree:f5,treeProps:u5,NTreeSelect:Zle,treeSelectProps:h5,NH1:Jle,NH2:ese,NH3:tse,NH4:nse,NH5:rse,NH6:ose,h1Props:ua,h2Props:ua,h3Props:ua,h4Props:ua,h5Props:ua,h6Props:ua,NA:ase,aProps:p5,NP:sse,pProps:v5,NBlockquote:dse,blockquoteProps:g5,NHr:fse,NUl:hse,ulProps:b5,NOl:pse,olProps:y5,NLi:vse,NText:mse,textProps:x5,NUpload:Bse,uploadProps:$5,NUploadDragger:C5,NUploadTrigger:G0,NUploadFileList:R5,NWatermark:Nse,watermarkProps:T5,createDiscreteApi:Wse,NEquation:Use,equationProps:O5},Symbol.toStringTag,{value:"Module"})),Kse="2.34.3";function qse({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Kse,componentPrefix:e,install:o}}const z5=qse({components:Object.keys(YS).map(e=>YS[e])}),Yse=z5;z5.install;const Gse=()=>({}),Xse={name:"Equation",common:tt,self:Gse},Zse=Xse,Qse={name:"dark",common:tt,Alert:fY,Anchor:kY,AutoComplete:qY,Avatar:kP,AvatarGroup:iG,BackTop:sG,Badge:gG,Breadcrumb:RG,Button:wr,ButtonGroup:sre,Calendar:UG,Card:GP,Carousel:zX,Cascader:eZ,Checkbox:Vl,Code:c$,Collapse:mZ,CollapseTransition:RZ,ColorPicker:ZG,DataTable:aQ,DatePicker:vJ,Descriptions:xee,Dialog:DT,Divider:Vee,Drawer:Gee,Dropdown:k0,DynamicInput:hte,DynamicTags:Rte,Element:Mte,Empty:Za,Ellipsis:E$,Equation:Zse,Form:Ete,GradientText:Fne,Icon:TQ,IconWrapper:Kne,Image:Cie,Input:Zr,InputNumber:dre,LegacyTransfer:Vie,Layout:vre,List:wre,LoadingBar:Sre,Log:$re,Menu:Hre,Mention:Dre,Message:are,Modal:Dee,Notification:tre,PageHeader:Wre,Pagination:I$,Popconfirm:Gre,Popover:Ja,Popselect:S$,Progress:OO,Radio:H$,Rate:Jre,Result:loe,Row:wie,Scrollbar:yr,Select:T$,Skeleton:ele,Slider:coe,Space:QT,Spin:goe,Statistic:xoe,Steps:_oe,Switch:Poe,Table:Foe,Tabs:Noe,Tag:Z2,Thing:Woe,TimePicker:pT,Timeline:Koe,Tooltip:kh,Transfer:Zoe,Tree:WO,TreeSelect:oie,Typography:uie,Upload:vie,Watermark:mie},Jse=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};yo.register(VF,ZF,HF,Dd,bv,yv);const ece={ADJ:"Adjective",ADP:"Adposition",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Particle",VERB:"Verb"},tce=J({components:{Bar:_A},setup(){const e=F(Nx.split(/\r?\n/).at(0).split(",").at(0)),t=F(null),n=Nx.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(ece))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=ji([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return It(async()=>{await i(e.value),it(t,()=>{a()}),t.value="ADJ",it(e,async c=>{await i(c),a()})}),{darkTheme:Qse,chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),nce=oo("h1",null,"entityscrape",-1),rce=oo("p",null," This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS). ",-1),oce=oo("p",null,[Ar(" The Go package "),oo("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Ar(" was used for creating this experiment. You can create new ones by updating the "),oo("code",null,"source/entities.txt"),Ar(" file and run the CLI with the provided Visual Studio Code debug configuration. The experiments source code can be found at "),oo("a",{target:"_blank",href:"https://github.com/ndabAP/entityscrape"},"Github"),Ar(". ")],-1),ice={style:{height:"475px"}},ace=oo("small",null,[oo("b",null,"Data source"),Ar(": "),oo("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function lce(e,t,n,r,o,i){const a=Bc("n-select"),l=Bc("n-form-item"),s=Bc("Bar"),c=Bc("n-space");return Ik(),Fk(c,{vertical:""},{default:Pd(()=>[nce,rce,oce,An(l,{size:"small",label:"Entity"},{default:Pd(()=>[An(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),An(l,{size:"small",label:"Part of speech"},{default:Pd(()=>[An(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),oo("div",ice,[An(s,{data:e.chartData,options:{indexAxis:"y",maintainAspectRatio:!1,responsive:!0,scales:{x:{grid:{drawBorder:!1,display:!1}},y:{ticks:{font:{size:13,family:"v-sans, system-ui, -apple-system, BlinkMacSystemFont"}},grid:{display:!1}}}}},null,8,["data"])]),ace]),_:1})}const sce=Jse(tce,[["render",lce]]),M5=qk(sce);M5.use(Yse);M5.mount("#app")});export default cce(); diff --git a/docs/assets/index.87815a92.js b/docs/assets/index.87815a92.js deleted file mode 100644 index 1db0426..0000000 --- a/docs/assets/index.87815a92.js +++ /dev/null @@ -1,6856 +0,0 @@ -var X5=Object.defineProperty;var Z5=(e,t,n)=>t in e?X5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var jt=(e,t,n)=>(Z5(e,typeof t!="symbol"?t+"":t,n),n);var cce=Q5((_r,Rr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Wm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function ac(e){if($t(e)){const t={};for(let n=0;n{if(n){const r=n.split(e3);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Um(e){let t="";if(Mn(e))t=e;else if($t(e))for(let n=0;n{},i3=()=>!1,a3=/^on[^a-z]/,Yf=e=>a3.test(e),Km=e=>e.startsWith("onUpdate:"),Vn=Object.assign,qm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l3=Object.prototype.hasOwnProperty,Wt=(e,t)=>l3.call(e,t),$t=Array.isArray,gs=e=>Gf(e)==="[object Map]",s3=e=>Gf(e)==="[object Set]",zt=e=>typeof e=="function",Mn=e=>typeof e=="string",Ym=e=>typeof e=="symbol",mn=e=>e!==null&&typeof e=="object",XS=e=>mn(e)&&zt(e.then)&&zt(e.catch),c3=Object.prototype.toString,Gf=e=>c3.call(e),d3=e=>Gf(e).slice(8,-1),u3=e=>Gf(e)==="[object Object]",Gm=e=>Mn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rd=Wm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},f3=/-(\w)/g,Po=Xf(e=>e.replace(f3,(t,n)=>n?n.toUpperCase():"")),h3=/\B([A-Z])/g,Fl=Xf(e=>e.replace(h3,"-$1").toLowerCase()),Zf=Xf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wh=Xf(e=>e?`on${Zf(e)}`:""),Ds=(e,t)=>!Object.is(e,t),Uh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},p3=e=>{const t=parseFloat(e);return isNaN(t)?e:t},v3=e=>{const t=Mn(e)?Number(e):NaN;return isNaN(t)?e:t};let X0;const g3=()=>X0||(X0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Jr;class m3{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Jr,!t&&Jr&&(this.index=(Jr.scopes||(Jr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Jr;try{return Jr=this,t()}finally{Jr=n}}}on(){Jr=this}off(){Jr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ZS=e=>(e.w&Oi)>0,QS=e=>(e.n&Oi)>0,x3=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":$t(e)?Gm(n)&&l.push(a.get("length")):(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"delete":$t(e)||(l.push(a.get(ya)),gs(e)&&l.push(a.get(nv)));break;case"set":gs(e)&&l.push(a.get(ya));break}if(l.length===1)l[0]&&rv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);rv(Xm(s))}}function rv(e,t){const n=$t(e)?e:[...e];for(const r of n)r.computed&&Q0(r);for(const r of n)r.computed||Q0(r)}function Q0(e,t){(e!==no||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function C3(e,t){var n;return(n=Ru.get(e))===null||n===void 0?void 0:n.get(t)}const S3=Wm("__proto__,__v_isRef,__isVue"),tk=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ym)),k3=Qm(),_3=Qm(!1,!0),R3=Qm(!0),J0=P3();function P3(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Dt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Al();const r=Dt(this)[t].apply(this,n);return Bl(),r}}),e}function $3(e){const t=Dt(this);return pr(t,"has",e),t.hasOwnProperty(e)}function Qm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?W3:ak:t?ik:ok).get(r))return r;const a=$t(r);if(!e){if(a&&Wt(J0,o))return Reflect.get(J0,o,i);if(o==="hasOwnProperty")return $3}const l=Reflect.get(r,o,i);return(Ym(o)?tk.has(o):S3(o))||(e||pr(r,"get",o),t)?l:qn(l)?a&&Gm(o)?l:l.value:mn(l)?e?$o(l):ji(l):l}}const T3=nk(),O3=nk(!0);function nk(e=!1){return function(n,r,o,i){let a=n[r];if(Rl(a)&&qn(a)&&!qn(o))return!1;if(!e&&(!Pu(o)&&!Rl(o)&&(a=Dt(a),o=Dt(o)),!$t(n)&&qn(a)&&!qn(o)))return a.value=o,!0;const l=$t(n)&&Gm(r)?Number(r)e,Qf=e=>Reflect.getPrototypeOf(e);function zc(e,t,n=!1,r=!1){e=e.__v_raw;const o=Dt(e),i=Dt(t);n||(t!==i&&pr(o,"get",t),pr(o,"get",i));const{has:a}=Qf(o),l=r?Jm:n?nb:Is;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function Mc(e,t=!1){const n=this.__v_raw,r=Dt(n),o=Dt(e);return t||(e!==o&&pr(r,"has",e),pr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Dc(e,t=!1){return e=e.__v_raw,!t&&pr(Dt(e),"iterate",ya),Reflect.get(e,"size",e)}function ey(e){e=Dt(e);const t=Dt(this);return Qf(t).has.call(t,e)||(t.add(e),Ko(t,"add",e,e)),this}function ty(e,t){t=Dt(t);const n=Dt(this),{has:r,get:o}=Qf(n);let i=r.call(n,e);i||(e=Dt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ds(t,a)&&Ko(n,"set",e,t):Ko(n,"add",e,t),this}function ny(e){const t=Dt(this),{has:n,get:r}=Qf(t);let o=n.call(t,e);o||(e=Dt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Ko(t,"delete",e,void 0),i}function ry(){const e=Dt(this),t=e.size!==0,n=e.clear();return t&&Ko(e,"clear",void 0,void 0),n}function Ic(e,t){return function(r,o){const i=this,a=i.__v_raw,l=Dt(a),s=t?Jm:e?nb:Is;return!e&&pr(l,"iterate",ya),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function Fc(e,t,n){return function(...r){const o=this.__v_raw,i=Dt(o),a=gs(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?Jm:t?nb:Is;return!t&&pr(i,"iterate",s?nv:ya),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ci(e){return function(...t){return e==="delete"?!1:this}}function A3(){const e={get(i){return zc(this,i)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!1)},t={get(i){return zc(this,i,!1,!0)},get size(){return Dc(this)},has:Mc,add:ey,set:ty,delete:ny,clear:ry,forEach:Ic(!1,!0)},n={get(i){return zc(this,i,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!1)},r={get(i){return zc(this,i,!0,!0)},get size(){return Dc(this,!0)},has(i){return Mc.call(this,i,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ic(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Fc(i,!1,!1),n[i]=Fc(i,!0,!1),t[i]=Fc(i,!1,!0),r[i]=Fc(i,!0,!0)}),[e,n,t,r]}const[B3,E3,L3,N3]=A3();function eb(e,t){const n=t?e?N3:L3:e?E3:B3;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Wt(n,o)&&o in r?n:r,o,i)}const H3={get:eb(!1,!1)},j3={get:eb(!1,!0)},V3={get:eb(!0,!1)},ok=new WeakMap,ik=new WeakMap,ak=new WeakMap,W3=new WeakMap;function U3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function K3(e){return e.__v_skip||!Object.isExtensible(e)?0:U3(d3(e))}function ji(e){return Rl(e)?e:tb(e,!1,rk,H3,ok)}function q3(e){return tb(e,!1,F3,j3,ik)}function $o(e){return tb(e,!0,I3,V3,ak)}function tb(e,t,n,r,o){if(!mn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=K3(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function xa(e){return Rl(e)?xa(e.__v_raw):!!(e&&e.__v_isReactive)}function Rl(e){return!!(e&&e.__v_isReadonly)}function Pu(e){return!!(e&&e.__v_isShallow)}function wa(e){return xa(e)||Rl(e)}function Dt(e){const t=e&&e.__v_raw;return t?Dt(t):e}function $u(e){return _u(e,"__v_skip",!0),e}const Is=e=>mn(e)?ji(e):e,nb=e=>mn(e)?$o(e):e;function lk(e){Si&&no&&(e=Dt(e),ek(e.dep||(e.dep=Xm())))}function sk(e,t){e=Dt(e);const n=e.dep;n&&rv(n)}function qn(e){return!!(e&&e.__v_isRef===!0)}function F(e){return dk(e,!1)}function ck(e){return dk(e,!0)}function dk(e,t){return qn(e)?e:new Y3(e,t)}class Y3{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Dt(t),this._value=n?t:Is(t)}get value(){return lk(this),this._value}set value(t){const n=this.__v_isShallow||Pu(t)||Rl(t);t=n?t:Dt(t),Ds(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Is(t),sk(this))}}function ov(e){return qn(e)?e.value:e}const G3={get:(e,t,n)=>ov(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return qn(o)&&!qn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function uk(e){return xa(e)?e:new Proxy(e,G3)}class X3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return C3(Dt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return qn(r)?r:new X3(e,t,n)}var fk;class Z3{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[fk]=!1,this._dirty=!0,this.effect=new Zm(t,()=>{this._dirty||(this._dirty=!0,sk(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Dt(this);return lk(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}fk="__v_isReadonly";function Q3(e,t,n=!1){let r,o;const i=zt(e);return i?(r=e,o=ao):(r=e.get,o=e.set),new Z3(r,o,i||!o,n)}function ki(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Jf(i,t,n)}return o}function Lr(e,t,n,r){if(zt(e)){const i=ki(e,t,n,r);return i&&XS(i)&&i.catch(a=>{Jf(a,t,n)}),i}const o=[];for(let i=0;i>>1;As(nr[r])xo&&nr.splice(t,1)}function nM(e){$t(e)?xl.push(...e):(!jo||!jo.includes(e,e.allowRecurse?fa+1:fa))&&xl.push(e),pk()}function oy(e,t=Fs?xo+1:0){for(;tAs(n)-As(r)),fa=0;fae.id==null?1/0:e.id,rM=(e,t)=>{const n=As(e)-As(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gk(e){iv=!1,Fs=!0,nr.sort(rM);const t=ao;try{for(xo=0;xoMn(p)?p.trim():p)),f&&(o=n.map(p3))}let l,s=r[l=Wh(t)]||r[l=Wh(Po(t))];!s&&i&&(s=r[l=Wh(Fl(t))]),s&&Lr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Lr(c,e,6,o)}}function mk(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!zt(e)){const s=c=>{const d=mk(c,t,!0);d&&(l=!0,Vn(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(mn(e)&&r.set(e,null),null):($t(i)?i.forEach(s=>a[s]=null):Vn(a,i),mn(e)&&r.set(e,a),a)}function eh(e,t){return!e||!Yf(t)?!1:(t=t.slice(2).replace(/Once$/,""),Wt(e,t[0].toLowerCase()+t.slice(1))||Wt(e,Fl(t))||Wt(e,t))}let Yn=null,bk=null;function Tu(e){const t=Yn;return Yn=e,bk=e&&e.type.__scopeId||null,t}function Pd(e,t=Yn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&vy(-1);const i=Tu(t);let a;try{a=e(...o)}finally{Tu(i),r._d&&vy(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Kh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:p,ctx:v,inheritAttrs:b}=e;let g,m;const y=Tu(e);try{if(n.shapeFlag&4){const x=o||r;g=bo(d.call(x,x,f,i,p,h,v)),m=s}else{const x=t;g=bo(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),m=t.props?s:iM(s)}}catch(x){xs.length=0,Jf(x,e,1),g=An(Pr)}let C=g;if(m&&b!==!1){const x=Object.keys(m),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Km)&&(m=aM(m,a)),C=ar(C,m))}return n.dirs&&(C=ar(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),g=C,Tu(y),g}const iM=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yf(n))&&((t||(t={}))[n]=e[n]);return t},aM=(e,t)=>{const n={};for(const r in e)(!Km(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lM(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?iy(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function dM(e,t){t&&t.pendingBranch?$t(e)?t.effects.push(...e):t.effects.push(e):nM(e)}function ot(e,t){if(_n){let n=_n.provides;const r=_n.parent&&_n.parent.provides;r===n&&(n=_n.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=_n||Yn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&zt(t)?t.call(r.proxy):t}}function At(e,t){return ib(e,null,t)}const Ac={};function it(e,t,n){return ib(e,t,n)}function ib(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=dn){const l=y3()===(_n==null?void 0:_n.scope)?_n:null;let s,c=!1,d=!1;if(qn(e)?(s=()=>e.value,c=Pu(e)):xa(e)?(s=()=>e,r=!0):$t(e)?(d=!0,c=e.some(C=>xa(C)||Pu(C)),s=()=>e.map(C=>{if(qn(C))return C.value;if(xa(C))return va(C);if(zt(C))return ki(C,l,2)})):zt(e)?t?s=()=>ki(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Lr(e,l,3,[h])}:s=ao,t&&r){const C=s;s=()=>va(C())}let f,h=C=>{f=m.onStop=()=>{ki(C,l,4)}},p;if(Hs)if(h=ao,t?n&&Lr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=e4();p=C.__watcherHandles||(C.__watcherHandles=[])}else return ao;let v=d?new Array(e.length).fill(Ac):Ac;const b=()=>{if(!!m.active)if(t){const C=m.run();(r||c||(d?C.some((x,w)=>Ds(x,v[w])):Ds(C,v)))&&(f&&f(),Lr(t,l,3,[C,v===Ac?void 0:d&&v[0]===Ac?[]:v,h]),v=C)}else m.run()};b.allowRecurse=!!t;let g;o==="sync"?g=b:o==="post"?g=()=>dr(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),g=()=>ob(b));const m=new Zm(s,g);t?n?b():v=m.run():o==="post"?dr(m.run.bind(m),l&&l.suspense):m.run();const y=()=>{m.stop(),l&&l.scope&&qm(l.scope.effects,m)};return p&&p.push(y),y}function uM(e,t,n){const r=this.proxy,o=Mn(e)?e.includes(".")?yk(r,e):()=>r[e]:e.bind(r,r);let i;zt(t)?i=t:(i=t.handler,n=t);const a=_n;Pl(this);const l=ib(o,i.bind(r),n);return a?Pl(a):Ca(),l}function yk(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{va(n,t)});else if(u3(e))for(const n in e)va(e[n],t);return e}function xk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return It(()=>{e.isMounted=!0}),Bt(()=>{e.isUnmounting=!0}),e}const Mr=[Function,Array],fM={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mr,onEnter:Mr,onAfterEnter:Mr,onEnterCancelled:Mr,onBeforeLeave:Mr,onLeave:Mr,onAfterLeave:Mr,onLeaveCancelled:Mr,onBeforeAppear:Mr,onAppear:Mr,onAfterAppear:Mr,onAppearCancelled:Mr},setup(e,{slots:t}){const n=Jo(),r=xk();let o;return()=>{const i=t.default&&ab(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==Pr){a=b;break}}const l=Dt(e),{mode:s}=l;if(r.isLeaving)return qh(a);const c=ay(a);if(!c)return qh(a);const d=Bs(c,l,r,n);Es(c,d);const f=n.subTree,h=f&&ay(f);let p=!1;const{getTransitionKey:v}=c.type;if(v){const b=v();o===void 0?o=b:b!==o&&(o=b,p=!0)}if(h&&h.type!==Pr&&(!ha(c,h)||p)){const b=Bs(h,l,r,n);if(Es(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},qh(a);s==="in-out"&&c.type!==Pr&&(b.delayLeave=(g,m,y)=>{const C=Ck(r,h);C[String(h.key)]=h,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},wk=fM;function Ck(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Bs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:b,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,C=String(e.key),x=Ck(n,e),w=(T,$)=>{T&&Lr(T,r,9,$)},_=(T,$)=>{const R=$[1];w(T,$),$t(T)?T.every(D=>D.length<=1)&&R():T.length<=1&&R()},k={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&ha(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,D=d;if(!n.isMounted)if(o)$=g||s,R=m||c,D=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(D,[T]):w(R,[T]),k.delayedLeave&&k.delayedLeave(),T._enterCb=void 0)};$?_($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let D=!1;const z=T._leaveCb=A=>{D||(D=!0,$(),A?w(v,[T]):w(p,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?_(h,[T,z]):z()},clone(T){return Bs(T,t,n,r)}};return k}function qh(e){if(th(e))return e=ar(e),e.children=null,e}function ay(e){return th(e)?e.children?e.children[0]:void 0:e}function Es(e,t){e.shapeFlag&6&&e.component?Es(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ab(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,th=e=>e.type.__isKeepAlive;function lb(e,t){Sk(e,"a",t)}function lc(e,t){Sk(e,"da",t)}function Sk(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(nh(t,r,n),n){let o=n.parent;for(;o&&o.parent;)th(o.parent.vnode)&&hM(r,t,n,o),o=o.parent}}function hM(e,t,n,r){const o=nh(t,e,r,!0);sc(()=>{qm(r[t],o)},n)}function nh(e,t,n=_n,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Al(),Pl(n);const l=Lr(t,n,e,a);return Ca(),Bl(),l});return r?o.unshift(i):o.push(i),i}}const Zo=e=>(t,n=_n)=>(!Hs||e==="sp")&&nh(e,(...r)=>t(...r),n),Qo=Zo("bm"),It=Zo("m"),sb=Zo("bu"),cb=Zo("u"),Bt=Zo("bum"),sc=Zo("um"),pM=Zo("sp"),vM=Zo("rtg"),gM=Zo("rtc");function mM(e,t=_n){nh("ec",e,t)}function un(e,t){const n=Yn;if(n===null)return e;const r=ih(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lNs(t)?!(t.type===Pr||t.type===Ot&&!_k(t.children)):!0)?e:null}const av=e=>e?Bk(e)?ih(e)||e.proxy:av(e.parent):null,bs=Vn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>av(e.parent),$root:e=>av(e.root),$emit:e=>e.emit,$options:e=>ub(e),$forceUpdate:e=>e.f||(e.f=()=>ob(e.update)),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>uM.bind(e)}),Yh=(e,t)=>e!==dn&&!e.__isScriptSetup&&Wt(e,t),wM={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Yh(r,t))return a[t]=1,r[t];if(o!==dn&&Wt(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Wt(c,t))return a[t]=3,i[t];if(n!==dn&&Wt(n,t))return a[t]=4,n[t];lv&&(a[t]=0)}}const d=bs[t];let f,h;if(d)return t==="$attrs"&&pr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==dn&&Wt(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Wt(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Yh(o,t)?(o[t]=n,!0):r!==dn&&Wt(r,t)?(r[t]=n,!0):Wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==dn&&Wt(e,a)||Yh(t,a)||(l=i[0])&&Wt(l,a)||Wt(r,a)||Wt(bs,a)||Wt(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let lv=!0;function CM(e){const t=ub(e),n=e.proxy,r=e.ctx;lv=!1,t.beforeCreate&&sy(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:p,updated:v,activated:b,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:_,renderTriggered:k,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:D,components:z,directives:A,filters:L}=t;if(c&&SM(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const W in a){const K=a[W];zt(K)&&(r[W]=K.bind(n))}if(o){const W=o.call(n,n);mn(W)&&(e.data=ji(W))}if(lv=!0,i)for(const W in i){const K=i[W],Q=zt(K)?K.bind(n,n):zt(K.get)?K.get.bind(n,n):ao,V=!zt(K)&&zt(K.set)?K.set.bind(n):ao,re=P({get:Q,set:V});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const W in l)Rk(l[W],r,n,W);if(s){const W=zt(s)?s.call(n):s;Reflect.ownKeys(W).forEach(K=>{ot(K,W[K])})}d&&sy(d,e,"c");function E(W,K){$t(K)?K.forEach(Q=>W(Q.bind(n))):K&&W(K.bind(n))}if(E(Qo,f),E(It,h),E(sb,p),E(cb,v),E(lb,b),E(lc,g),E(mM,T),E(gM,_),E(vM,k),E(Bt,y),E(sc,x),E(pM,$),$t(R))if(R.length){const W=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(W,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===ao&&(e.render=w),D!=null&&(e.inheritAttrs=D),z&&(e.components=z),A&&(e.directives=A)}function SM(e,t,n=ao,r=!1){$t(e)&&(e=sv(e));for(const o in e){const i=e[o];let a;mn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),qn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function sy(e,t,n){Lr($t(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rk(e,t,n,r){const o=r.includes(".")?yk(n,r):()=>n[r];if(Mn(e)){const i=t[e];zt(i)&&it(o,i)}else if(zt(e))it(o,e.bind(n));else if(mn(e))if($t(e))e.forEach(i=>Rk(i,t,n,r));else{const i=zt(e.handler)?e.handler.bind(n):t[e.handler];zt(i)&&it(o,i,e)}}function ub(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>Ou(s,c,a,!0)),Ou(s,t,a)),mn(t)&&i.set(t,s),s}function Ou(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ou(e,i,n,!0),o&&o.forEach(a=>Ou(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=kM[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const kM={data:cy,props:la,emits:la,methods:la,computed:la,beforeCreate:or,created:or,beforeMount:or,mounted:or,beforeUpdate:or,updated:or,beforeDestroy:or,beforeUnmount:or,destroyed:or,unmounted:or,activated:or,deactivated:or,errorCaptured:or,serverPrefetch:or,components:la,directives:la,watch:RM,provide:cy,inject:_M};function cy(e,t){return t?e?function(){return Vn(zt(e)?e.call(this,this):e,zt(t)?t.call(this,this):t)}:t:e}function _M(e,t){return la(sv(e),sv(t))}function sv(e){if($t(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,p]=$k(f,t,!0);Vn(a,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return mn(e)&&r.set(e,yl),yl;if($t(i))for(let d=0;d-1,p[1]=b<0||v-1||Wt(p,"default"))&&l.push(f)}}}const c=[a,l];return mn(e)&&r.set(e,c),c}function dy(e){return e[0]!=="$"}function uy(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function fy(e,t){return uy(e)===uy(t)}function hy(e,t){return $t(t)?t.findIndex(n=>fy(n,e)):zt(t)&&fy(t,e)?0:-1}const Tk=e=>e[0]==="_"||e==="$stable",fb=e=>$t(e)?e.map(bo):[bo(e)],TM=(e,t,n)=>{if(t._n)return t;const r=Pd((...o)=>fb(t(...o)),n);return r._c=!1,r},Ok=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Tk(o))continue;const i=e[o];if(zt(i))t[o]=TM(o,i,r);else if(i!=null){const a=fb(i);t[o]=()=>a}}},zk=(e,t)=>{const n=fb(t);e.slots.default=()=>n},OM=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Dt(t),_u(t,"_",n)):Ok(t,e.slots={})}else e.slots={},t&&zk(e,t);_u(e.slots,oh,1)},zM=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=dn;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Vn(o,t),!n&&l===1&&delete o._):(i=!t.$stable,Ok(t,o)),a=t}else t&&(zk(e,t),a={default:1});if(i)for(const l in o)!Tk(l)&&!(l in a)&&delete o[l]};function Mk(){return{app:null,config:{isNativeTag:i3,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let MM=0;function DM(e,t){return function(r,o=null){zt(r)||(r=Object.assign({},r)),o!=null&&!mn(o)&&(o=null);const i=Mk(),a=new Set;let l=!1;const s=i.app={_uid:MM++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:Lk,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&zt(c.install)?(a.add(c),c.install(s,...d)):zt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=An(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,ih(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function dv(e,t,n,r,o=!1){if($t(e)){e.forEach((h,p)=>dv(h,t&&($t(t)?t[p]:t),n,r,o));return}if(ms(r)&&!o)return;const i=r.shapeFlag&4?ih(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===dn?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Mn(c)?(d[c]=null,Wt(f,c)&&(f[c]=null)):qn(c)&&(c.value=null)),zt(s))ki(s,l,12,[a,d]);else{const h=Mn(s),p=qn(s);if(h||p){const v=()=>{if(e.f){const b=h?Wt(f,s)?f[s]:d[s]:s.value;o?$t(b)&&qm(b,i):$t(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Wt(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Wt(f,s)&&(f[s]=a)):p&&(s.value=a,e.k&&(d[e.k]=a))};a?(v.id=-1,dr(v,n)):v()}}}const dr=dM;function IM(e){return FM(e)}function FM(e,t){const n=g3();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=ao,insertStaticContent:v}=e,b=(H,U,Y,ce=null,G=null,B=null,N=!1,te=null,pe=!!U.dynamicChildren)=>{if(H===U)return;H&&!ha(H,U)&&(ce=me(H),ee(H,G,B,!0),H=null),U.patchFlag===-2&&(pe=!1,U.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=U;switch(Z){case rh:g(H,U,Y,ce);break;case Pr:m(H,U,Y,ce);break;case Gh:H==null&&y(U,Y,ce,N);break;case Ot:z(H,U,Y,ce,G,B,N,te,pe);break;default:ne&1?w(H,U,Y,ce,G,B,N,te,pe):ne&6?A(H,U,Y,ce,G,B,N,te,pe):(ne&64||ne&128)&&Z.process(H,U,Y,ce,G,B,N,te,pe,_e)}fe!=null&&G&&dv(fe,H&&H.ref,B,U||H,!U)},g=(H,U,Y,ce)=>{if(H==null)r(U.el=l(U.children),Y,ce);else{const G=U.el=H.el;U.children!==H.children&&c(G,U.children)}},m=(H,U,Y,ce)=>{H==null?r(U.el=s(U.children||""),Y,ce):U.el=H.el},y=(H,U,Y,ce)=>{[H.el,H.anchor]=v(H.children,U,Y,ce,H.el,H.anchor)},C=({el:H,anchor:U},Y,ce)=>{let G;for(;H&&H!==U;)G=h(H),r(H,Y,ce),H=G;r(U,Y,ce)},x=({el:H,anchor:U})=>{let Y;for(;H&&H!==U;)Y=h(H),o(H),H=Y;o(U)},w=(H,U,Y,ce,G,B,N,te,pe)=>{N=N||U.type==="svg",H==null?_(U,Y,ce,G,B,N,te,pe):$(H,U,G,B,N,te,pe)},_=(H,U,Y,ce,G,B,N,te)=>{let pe,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(pe=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(pe,H.children):ge&16&&T(H.children,pe,null,ce,G,B&&fe!=="foreignObject",N,te),Ae&&Yi(H,null,ce,"created"),k(pe,H,H.scopeId,N,ce),ne){for(const Ye in ne)Ye!=="value"&&!Rd(Ye)&&i(pe,Ye,null,ne[Ye],B,H.children,ce,G,we);"value"in ne&&i(pe,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&fo(Z,ce,H)}Ae&&Yi(H,null,ce,"beforeMount");const qe=(!G||G&&!G.pendingBranch)&&Pe&&!Pe.persisted;qe&&Pe.beforeEnter(pe),r(pe,U,Y),((Z=ne&&ne.onVnodeMounted)||qe||Ae)&&dr(()=>{Z&&fo(Z,ce,H),qe&&Pe.enter(pe),Ae&&Yi(H,null,ce,"mounted")},G)},k=(H,U,Y,ce,G)=>{if(Y&&p(H,Y),ce)for(let B=0;B{for(let Z=pe;Z{const te=U.el=H.el;let{patchFlag:pe,dynamicChildren:Z,dirs:fe}=U;pe|=H.patchFlag&16;const ne=H.props||dn,ge=U.props||dn;let Pe;Y&&Gi(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"beforeUpdate"),Y&&Gi(Y,!0);const Ae=G&&U.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,U,te,null,Y,ce,Ae,B,!1),pe>0){if(pe&16)D(te,U,ne,ge,Y,ce,G);else if(pe&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,G),pe&4&&i(te,"style",ne.style,ge.style,G),pe&8){const qe=U.dynamicProps;for(let Ye=0;Ye{Pe&&fo(Pe,Y,U,H),fe&&Yi(U,H,Y,"updated")},ce)},R=(H,U,Y,ce,G,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==dn)for(const te in Y)!Rd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,U.children,G,B,we);for(const te in ce){if(Rd(te))continue;const pe=ce[te],Z=Y[te];pe!==Z&&te!=="value"&&i(H,te,Z,pe,N,U.children,G,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,U,Y,ce,G,B,N,te,pe)=>{const Z=U.el=H?H.el:l(""),fe=U.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=U;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(U.children,Y,fe,G,B,N,te,pe)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,G,B,N,te),(U.key!=null||G&&U===G.subTree)&&hb(H,U,!0)):K(H,U,Y,fe,G,B,N,te,pe)},A=(H,U,Y,ce,G,B,N,te,pe)=>{U.slotScopeIds=te,H==null?U.shapeFlag&512?G.ctx.activate(U,Y,ce,N,pe):L(U,Y,ce,G,B,N,pe):j(H,U,pe)},L=(H,U,Y,ce,G,B,N)=>{const te=H.component=KM(H,ce,G);if(th(H)&&(te.ctx.renderer=_e),qM(te),te.asyncDep){if(G&&G.registerDep(te,E),!H.el){const pe=te.subTree=An(Pr);m(null,pe,U,Y)}return}E(te,H,U,Y,G,B,N)},j=(H,U,Y)=>{const ce=U.component=H.component;if(lM(H,U,Y))if(ce.asyncDep&&!ce.asyncResolved){W(ce,U,Y);return}else ce.next=U,tM(ce.update),ce.update();else U.el=H.el,ce.vnode=U},E=(H,U,Y,ce,G,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,qe=fe,Ye;Gi(H,!1),fe?(fe.el=Ae.el,W(H,fe,N)):fe=Ae,ne&&Uh(ne),(Ye=fe.props&&fe.props.onVnodeBeforeUpdate)&&fo(Ye,Pe,fe,Ae),Gi(H,!0);const ft=Kh(H),ht=H.subTree;H.subTree=ft,b(ht,ft,f(ht.el),me(ht),H,G,B),fe.el=ft.el,qe===null&&sM(H,ft.el),ge&&dr(ge,G),(Ye=fe.props&&fe.props.onVnodeUpdated)&&dr(()=>fo(Ye,Pe,fe,Ae),G)}else{let fe;const{el:ne,props:ge}=U,{bm:Pe,m:Ae,parent:qe}=H,Ye=ms(U);if(Gi(H,!1),Pe&&Uh(Pe),!Ye&&(fe=ge&&ge.onVnodeBeforeMount)&&fo(fe,qe,U),Gi(H,!0),ne&&Me){const ft=()=>{H.subTree=Kh(H),Me(ne,H.subTree,H,G,null)};Ye?U.type.__asyncLoader().then(()=>!H.isUnmounted&&ft()):ft()}else{const ft=H.subTree=Kh(H);b(null,ft,Y,ce,H,G,B),U.el=ft.el}if(Ae&&dr(Ae,G),!Ye&&(fe=ge&&ge.onVnodeMounted)){const ft=U;dr(()=>fo(fe,qe,ft),G)}(U.shapeFlag&256||qe&&ms(qe.vnode)&&qe.vnode.shapeFlag&256)&&H.a&&dr(H.a,G),H.isMounted=!0,U=Y=ce=null}},pe=H.effect=new Zm(te,()=>ob(Z),H.scope),Z=H.update=()=>pe.run();Z.id=H.uid,Gi(H,!0),Z()},W=(H,U,Y)=>{U.component=H;const ce=H.vnode.props;H.vnode=U,H.next=null,$M(H,U.props,ce,Y),zM(H,U.children,Y),Al(),oy(),Bl()},K=(H,U,Y,ce,G,B,N,te,pe=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=U.children,{patchFlag:ge,shapeFlag:Pe}=U;if(ge>0){if(ge&128){V(Z,ne,Y,ce,G,B,N,te,pe);return}else if(ge&256){Q(Z,ne,Y,ce,G,B,N,te,pe);return}}Pe&8?(fe&16&&we(Z,G,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,G,B,N,te,pe):we(Z,G,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,G,B,N,te,pe))},Q=(H,U,Y,ce,G,B,N,te,pe)=>{H=H||yl,U=U||yl;const Z=H.length,fe=U.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,G,B,!0,!1,ne):T(U,Y,ce,G,B,N,te,pe,ne)},V=(H,U,Y,ce,G,B,N,te,pe)=>{let Z=0;const fe=U.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=U[Z]=pe?gi(U[Z]):bo(U[Z]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=U[ge]=pe?gi(U[ge]):bo(U[ge]);if(ha(Pe,Ae))b(Pe,Ae,Y,null,G,B,N,te,pe);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],G,B,!0),Z++;else{const Pe=Z,Ae=Z,qe=new Map;for(Z=Ae;Z<=ge;Z++){const Ke=U[Z]=pe?gi(U[Z]):bo(U[Z]);Ke.key!=null&&qe.set(Ke.key,Z)}let Ye,ft=0;const ht=ge-Ae+1;let vt=!1,Ve=0;const Xe=new Array(ht);for(Z=0;Z=ht){ee(Ke,G,B,!0);continue}let X;if(Ke.key!=null)X=qe.get(Ke.key);else for(Ye=Ae;Ye<=ge;Ye++)if(Xe[Ye-Ae]===0&&ha(Ke,U[Ye])){X=Ye;break}X===void 0?ee(Ke,G,B,!0):(Xe[X-Ae]=Z+1,X>=Ve?Ve=X:vt=!0,b(Ke,U[X],Y,null,G,B,N,te,pe),ft++)}const We=vt?AM(Xe):yl;for(Ye=We.length-1,Z=ht-1;Z>=0;Z--){const Ke=Ae+Z,X=U[Ke],q=Ke+1{const{el:B,type:N,transition:te,children:pe,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,U,Y,ce);return}if(Z&128){H.suspense.move(U,Y,ce);return}if(Z&64){N.move(H,U,Y,_e);return}if(N===Ot){r(B,U,Y);for(let ne=0;nete.enter(B),G);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,U,Y),qe=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,qe):qe()}else r(B,U,Y)},ee=(H,U,Y,ce=!1,G=!1)=>{const{type:B,props:N,ref:te,children:pe,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&dv(te,null,Y,H,!0),fe&256){U.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ms(H);let qe;if(Ae&&(qe=N&&N.onVnodeBeforeUnmount)&&fo(qe,U,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Yi(H,null,U,"beforeUnmount"),fe&64?H.type.remove(H,U,Y,G,_e,ce):Z&&(B!==Ot||ne>0&&ne&64)?we(Z,U,Y,!1,!0):(B===Ot&&ne&384||!G&&fe&16)&&we(pe,U,Y),ce&&ue(H)}(Ae&&(qe=N&&N.onVnodeUnmounted)||Pe)&&dr(()=>{qe&&fo(qe,U,H),Pe&&Yi(H,null,U,"unmounted")},Y)},ue=H=>{const{type:U,el:Y,anchor:ce,transition:G}=H;if(U===Ot){de(Y,ce);return}if(U===Gh){x(H);return}const B=()=>{o(Y),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(H.shapeFlag&1&&G&&!G.persisted){const{leave:N,delayLeave:te}=G,pe=()=>N(Y,B);te?te(H.el,B,pe):pe()}else B()},de=(H,U)=>{let Y;for(;H!==U;)Y=h(H),o(H),H=Y;o(U)},Ce=(H,U,Y)=>{const{bum:ce,scope:G,update:B,subTree:N,um:te}=H;ce&&Uh(ce),G.stop(),B&&(B.active=!1,ee(N,H,U,Y)),te&&dr(te,U),dr(()=>{H.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},we=(H,U,Y,ce=!1,G=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,U,Y)=>{H==null?U._vnode&&ee(U._vnode,null,null,!0):b(U._vnode||null,H,U,null,null,null,Y),oy(),vk(),U._vnode=H},_e={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let ve,Me;return t&&([ve,Me]=t(_e)),{render:Oe,hydrate:ve,createApp:DM(Oe,ve)}}function Gi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hb(e,t,n=!1){const r=e.children,o=t.children;if($t(r)&&$t(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const BM=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),py=e=>typeof SVGElement<"u"&&e instanceof SVGElement,uv=(e,t)=>{const n=e&&e.to;return Mn(n)?t?t(n):null:n},EM={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:v,createText:b,createComment:g}}=c,m=ys(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),_=t.anchor=b("");p(w,n,r),p(_,n,r);const k=t.target=uv(t.props,v),T=t.targetAnchor=b("");k&&(p(T,k),a=a||py(k));const $=(R,D)=>{y&16&&d(C,R,D,o,i,a,l,s)};m?$(n,_):k&&$(k,T)}else{t.el=e.el;const w=t.anchor=e.anchor,_=t.target=e.target,k=t.targetAnchor=e.targetAnchor,T=ys(e.props),$=T?n:_,R=T?w:k;if(a=a||py(_),x?(h(e.dynamicChildren,x,$,o,i,a,l),hb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),m)T||Ec(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=uv(t.props,v);D&&Ec(t,D,null,c,0)}else T&&Ec(t,_,k,c,1)}Dk(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ys(h))&&(i(c),l&16))for(let p=0;p0?ro||yl:null,NM(),Ls>0&&ro&&ro.push(e),e}function Fk(e,t,n,r,o){return HM(An(e,t,n,r,o,!0))}function Ns(e){return e?e.__v_isVNode===!0:!1}function ha(e,t){return e.type===t.type&&e.key===t.key}const oh="__vInternal",Ak=({key:e})=>e!=null?e:null,$d=({ref:e,ref_key:t,ref_for:n})=>e!=null?Mn(e)||qn(e)||zt(e)?{i:Yn,r:e,k:t,f:!!n}:e:null;function oo(e,t=null,n=null,r=0,o=null,i=e===Ot?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ak(t),ref:t&&$d(t),scopeId:bk,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Yn};return l?(pb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Mn(n)?8:16),Ls>0&&!a&&ro&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ro.push(s),s}const An=jM;function jM(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===bM)&&(e=Pr),Ns(e)){const l=ar(e,t,!0);return n&&pb(l,n),Ls>0&&!i&&ro&&(l.shapeFlag&6?ro[ro.indexOf(e)]=l:ro.push(l)),l.patchFlag|=-2,l}if(QM(e)&&(e=e.__vccOpts),t){t=VM(t);let{class:l,style:s}=t;l&&!Mn(l)&&(t.class=Um(l)),mn(s)&&(wa(s)&&!$t(s)&&(s=Vn({},s)),t.style=ac(s))}const a=Mn(e)?1:cM(e)?128:BM(e)?64:mn(e)?4:zt(e)?2:0;return oo(e,t,n,r,o,a,i,!0)}function VM(e){return e?wa(e)||oh in e?Vn({},e):e:null}function ar(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Gn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ak(l),ref:t&&t.ref?n&&o?$t(o)?o.concat($d(t)):[o,$d(t)]:$d(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ot?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ar(e=" ",t=0){return An(rh,null,e,t)}function bo(e){return e==null||typeof e=="boolean"?An(Pr):$t(e)?An(Ot,null,e.slice()):typeof e=="object"?gi(e):An(rh,null,String(e))}function gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function pb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($t(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),pb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(oh in t)?t._ctx=Yn:o===3&&Yn&&(Yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else zt(t)?(t={default:t,_ctx:Yn},n=32):(t=String(t),r&64?(n=16,t=[Ar(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gn(...e){const t={};for(let n=0;n_n||Yn,Pl=e=>{_n=e,e.scope.on()},Ca=()=>{_n&&_n.scope.off(),_n=null};function Bk(e){return e.vnode.shapeFlag&4}let Hs=!1;function qM(e,t=!1){Hs=t;const{props:n,children:r}=e.vnode,o=Bk(e);PM(e,n,o,t),OM(e,r);const i=o?YM(e,t):void 0;return Hs=!1,i}function YM(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=$u(new Proxy(e.ctx,wM));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?XM(e):null;Pl(e),Al();const i=ki(r,e,0,[e.props,o]);if(Bl(),Ca(),XS(i)){if(i.then(Ca,Ca),t)return i.then(a=>{gy(e,a,t)}).catch(a=>{Jf(a,e,0)});e.asyncDep=i}else gy(e,i,t)}else Ek(e,t)}function gy(e,t,n){zt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:mn(t)&&(e.setupState=uk(t)),Ek(e,n)}let my;function Ek(e,t,n){const r=e.type;if(!e.render){if(!t&&my&&!r.render){const o=r.template||ub(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Vn(Vn({isCustomElement:i,delimiters:l},a),s);r.render=my(o,c)}}e.render=r.render||ao}Pl(e),Al(),CM(e),Bl(),Ca()}function GM(e){return new Proxy(e.attrs,{get(t,n){return pr(e,"get","$attrs"),t[n]}})}function XM(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=GM(e))},slots:e.slots,emit:e.emit,expose:t}}function ih(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(uk($u(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}}))}function ZM(e,t=!0){return zt(e)?e.displayName||e.name:e.name||t&&e.__name}function QM(e){return zt(e)&&"__vccOpts"in e}const P=(e,t)=>Q3(e,t,Hs);function u(e,t,n){const r=arguments.length;return r===2?mn(t)&&!$t(t)?Ns(t)?An(e,null,[t]):An(e,t):An(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ns(n)&&(n=[n]),An(e,t,n))}const JM=Symbol(""),e4=()=>Le(JM),Lk="3.2.47",t4="http://www.w3.org/2000/svg",pa=typeof document<"u"?document:null,by=pa&&pa.createElement("template"),n4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?pa.createElementNS(t4,e):pa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>pa.createTextNode(e),createComment:e=>pa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{by.innerHTML=r?`${e}`:e;const l=by.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function r4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function o4(e,t,n){const r=e.style,o=Mn(n);if(n&&!o){if(t&&!Mn(t))for(const i in t)n[i]==null&&fv(r,i,"");for(const i in n)fv(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const yy=/\s*!important$/;function fv(e,t,n){if($t(n))n.forEach(r=>fv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=i4(e,t);yy.test(n)?e.setProperty(Fl(r),n.replace(yy,""),"important"):e[r]=n}}const xy=["Webkit","Moz","ms"],Xh={};function i4(e,t){const n=Xh[t];if(n)return n;let r=Po(t);if(r!=="filter"&&r in e)return Xh[t]=r;r=Zf(r);for(let o=0;oZh||(f4.then(()=>Zh=0),Zh=Date.now());function p4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Lr(v4(r,n.value),t,5,[r])};return n.value=e,n.attached=h4(),n}function v4(e,t){if($t(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Sy=/^on[a-z]/,g4=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?r4(e,r,o):t==="style"?o4(e,n,r):Yf(t)?Km(t)||d4(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):m4(e,t,r,o))?l4(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),a4(e,t,r,o))};function m4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Sy.test(t)&&zt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Sy.test(t)&&Mn(n)?!1:t in e}const di="transition",Kl="animation",Ft=(e,{slots:t})=>u(wk,Hk(e),t);Ft.displayName="Transition";const Nk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},b4=Ft.props=Vn({},wk.props,Nk),Xi=(e,t=[])=>{$t(e)?e.forEach(n=>n(...t)):e&&e(...t)},ky=e=>e?$t(e)?e.some(t=>t.length>1):e.length>1:!1;function Hk(e){const t={};for(const z in e)z in Nk||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=y4(o),b=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:_=m,onAppear:k=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{pi(z,A?d:l),pi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,pi(z,f),pi(z,p),pi(z,h),A&&A()},D=z=>(A,L)=>{const j=z?k:y,E=()=>$(A,z,L);Xi(j,[A,E]),_y(()=>{pi(A,z?s:i),Lo(A,z?d:l),ky(j)||Ry(A,r,b,E)})};return Vn(t,{onBeforeEnter(z){Xi(m,[z]),Lo(z,i),Lo(z,a)},onBeforeAppear(z){Xi(_,[z]),Lo(z,s),Lo(z,c)},onEnter:D(!1),onAppear:D(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Lo(z,f),Vk(),Lo(z,h),_y(()=>{!z._isLeaving||(pi(z,f),Lo(z,p),ky(x)||Ry(z,r,g,L))}),Xi(x,[z,L])},onEnterCancelled(z){$(z,!1),Xi(C,[z])},onAppearCancelled(z){$(z,!0),Xi(T,[z])},onLeaveCancelled(z){R(z),Xi(w,[z])}})}function y4(e){if(e==null)return null;if(mn(e))return[Qh(e.enter),Qh(e.leave)];{const t=Qh(e);return[t,t]}}function Qh(e){return v3(e)}function Lo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function _y(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let x4=0;function Ry(e,t,n,r){const o=e._endId=++x4,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=jk(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=p=>{p.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[v]||"").split(", "),o=r(`${di}Delay`),i=r(`${di}Duration`),a=Py(o,i),l=r(`${Kl}Delay`),s=r(`${Kl}Duration`),c=Py(l,s);let d=null,f=0,h=0;t===di?a>0&&(d=di,f=a,h=i.length):t===Kl?c>0&&(d=Kl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?di:Kl:null,h=d?d===di?i.length:s.length:0);const p=d===di&&/\b(transform|all)(,|$)/.test(r(`${di}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:p}}function Py(e,t){for(;e.length$y(n)+$y(e[r])))}function $y(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vk(){return document.body.offsetHeight}const Wk=new WeakMap,Uk=new WeakMap,Kk={name:"TransitionGroup",props:Vn({},b4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Jo(),r=xk();let o,i;return cb(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!_4(o[0].el,n.vnode.el,a))return;o.forEach(C4),o.forEach(S4);const l=o.filter(k4);Vk(),l.forEach(s=>{const c=s.el,d=c.style;Lo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,pi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=Dt(e),l=Hk(a);let s=a.tag||Ot;o=i,i=t.default?ab(t.default()):[];for(let c=0;cdelete e.mode;Kk.props;const ah=Kk;function C4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function S4(e){Uk.set(e,e.el.getBoundingClientRect())}function k4(e){const t=Wk.get(e),n=Uk.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function _4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=jk(r);return o.removeChild(r),i}const $r={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ql(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ql(e,!0),r.enter(e)):r.leave(e,()=>{ql(e,!1)}):ql(e,t))},beforeUnmount(e,{value:t}){ql(e,t)}};function ql(e,t){e.style.display=t?e._vod:"none"}const R4=Vn({patchProp:g4},n4);let Ty;function P4(){return Ty||(Ty=IM(R4))}const qk=(...e)=>{const t=P4().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=$4(r);if(!o)return;const i=t._component;!zt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function $4(e){return Mn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function dc(e){return e+.5|0}const yi=(e,t,n)=>Math.max(Math.min(e,n),t);function cs(e){return yi(dc(e*2.55),0,255)}function _i(e){return yi(dc(e*255),0,255)}function Vo(e){return yi(dc(e/2.55)/100,0,1)}function Oy(e){return yi(dc(e*100),0,100)}const Dr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hv=[..."0123456789ABCDEF"],T4=e=>hv[e&15],O4=e=>hv[(e&240)>>4]+hv[e&15],Lc=e=>(e&240)>>4===(e&15),z4=e=>Lc(e.r)&&Lc(e.g)&&Lc(e.b)&&Lc(e.a);function M4(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Dr[e[1]]*17,g:255&Dr[e[2]]*17,b:255&Dr[e[3]]*17,a:t===5?Dr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Dr[e[1]]<<4|Dr[e[2]],g:Dr[e[3]]<<4|Dr[e[4]],b:Dr[e[5]]<<4|Dr[e[6]],a:t===9?Dr[e[7]]<<4|Dr[e[8]]:255})),n}const D4=(e,t)=>e<255?t(e):"";function I4(e){var t=z4(e)?T4:O4;return e?"#"+t(e.r)+t(e.g)+t(e.b)+D4(e.a,t):void 0}const F4=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Yk(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function A4(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function B4(e,t,n){const r=Yk(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function E4(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=E4(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function gb(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(_i)}function mb(e,t,n){return gb(Yk,e,t,n)}function L4(e,t,n){return gb(B4,e,t,n)}function N4(e,t,n){return gb(A4,e,t,n)}function Gk(e){return(e%360+360)%360}function H4(e){const t=F4.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cs(+t[5]):_i(+t[5]));const o=Gk(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=L4(o,i,a):t[1]==="hsv"?r=N4(o,i,a):r=mb(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function j4(e,t){var n=vb(e);n[0]=Gk(n[0]+t),n=mb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function V4(e){if(!e)return;const t=vb(e),n=t[0],r=Oy(t[1]),o=Oy(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Vo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const zy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},My={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function W4(){const e={},t=Object.keys(My),n=Object.keys(zy);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Nc;function U4(e){Nc||(Nc=W4(),Nc.transparent=[0,0,0,0]);const t=Nc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const K4=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function q4(e){const t=K4.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?cs(a):yi(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?cs(r):yi(r,0,255)),o=255&(t[4]?cs(o):yi(o,0,255)),i=255&(t[6]?cs(i):yi(i,0,255)),{r,g:o,b:i,a:n}}}function Y4(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Vo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,nl=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function G4(e,t,n){const r=nl(Vo(e.r)),o=nl(Vo(e.g)),i=nl(Vo(e.b));return{r:_i(Jh(r+n*(nl(Vo(t.r))-r))),g:_i(Jh(o+n*(nl(Vo(t.g))-o))),b:_i(Jh(i+n*(nl(Vo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Hc(e,t,n){if(e){let r=vb(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=mb(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Xk(e,t){return e&&Object.assign(t||{},e)}function Dy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=_i(e[3]))):(t=Xk(e,{r:0,g:0,b:0,a:1}),t.a=_i(t.a)),t}function X4(e){return e.charAt(0)==="r"?q4(e):H4(e)}class js{constructor(t){if(t instanceof js)return t;const n=typeof t;let r;n==="object"?r=Dy(t):n==="string"&&(r=M4(t)||U4(t)||X4(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Xk(this._rgb);return t&&(t.a=Vo(t.a)),t}set rgb(t){this._rgb=Dy(t)}rgbString(){return this._valid?Y4(this._rgb):void 0}hexString(){return this._valid?I4(this._rgb):void 0}hslString(){return this._valid?V4(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=G4(this._rgb,t._rgb,n)),this}clone(){return new js(this.rgb)}alpha(t){return this._rgb.a=_i(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=dc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Hc(this._rgb,2,t),this}darken(t){return Hc(this._rgb,2,-t),this}saturate(t){return Hc(this._rgb,1,t),this}desaturate(t){return Hc(this._rgb,1,-t),this}rotate(t){return j4(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function Bo(){}const Z4=(()=>{let e=0;return()=>e++})();function an(e){return e===null||typeof e>"u"}function pn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Yt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function jn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Cr(e,t){return jn(e)?e:t}function Qt(e,t){return typeof e>"u"?t:e}const Q4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function sn(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function rn(e,t,n,r){let o,i,a;if(pn(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function tD(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function nD(e){const t=tD(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function $l(e,t){return(Iy[t]||(Iy[t]=nD(t)))(e)}function bb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Hr=e=>typeof e<"u",zi=e=>typeof e=="function",Fy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function rD(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Xn=Math.PI,ko=2*Xn,Du=Number.POSITIVE_INFINITY,oD=Xn/180,hr=Xn/2,Zi=Xn/4,Ay=Xn*2/3,xi=Math.log10,Ri=Math.sign;function Td(e,t,n){return Math.abs(e-t)o-i).pop(),t}function Iu(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aD(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Qk(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function xb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const pv=(e,t,n,r)=>xb(e,n,r?o=>{const i=e[o][t];return ie[o][t]xb(e,n,r=>e[r][t]>=n);function fD(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+bb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ly(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(Jk.forEach(i=>{delete e[i]}),delete e._chartjs)}function e_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function n_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,t_.call(window,()=>{r=!1,e.apply(t,n)}))}}function pD(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const wb=e=>e==="start"?"left":e==="end"?"right":"center",tr=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,vD=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,jc=e=>e===0||e===1,Ny=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ko/n)),Hy=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ko/n)+1,Cs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*hr)+1,easeOutSine:e=>Math.sin(e*hr),easeInOutSine:e=>-.5*(Math.cos(Xn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>jc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>jc(e)?e:Ny(e,.075,.3),easeOutElastic:e=>jc(e)?e:Hy(e,.075,.3),easeInOutElastic(e){return jc(e)?e:e<.5?.5*Ny(e*2,.1125,.45):.5+.5*Hy(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Cs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Cs.easeInBounce(e*2)*.5:Cs.easeOutBounce(e*2-1)*.5+.5};function r_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function jy(e){return r_(e)?e:new js(e)}function ep(e){return r_(e)?e:new js(e).saturate(.5).darken(.1).hexString()}const gD=["x","y","borderWidth","radius","tension"],mD=["color","borderColor","backgroundColor"];function bD(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mD},numbers:{type:"number",properties:gD}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function yD(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Vy=new Map;function xD(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Vy.get(n);return r||(r=new Intl.NumberFormat(e,t),Vy.set(n,r)),r}function Cb(e,t,n){return xD(t,n).format(e)}const o_={values(e){return pn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=wD(e,n)}const a=xi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),Cb(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(xi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?o_.numeric.call(this,e,t,n):""}};function wD(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var lh={formatters:o_};function CD(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:lh.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Oa=Object.create(null),vv=Object.create(null);function Ss(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>ep(o.backgroundColor),this.hoverBorderColor=(r,o)=>ep(o.borderColor),this.hoverColor=(r,o)=>ep(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return tp(this,t,n)}get(t){return Ss(this,t)}describe(t,n){return tp(vv,t,n)}override(t,n){return tp(Oa,t,n)}route(t,n,r,o){const i=Ss(this,t),a=Ss(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Yt(s)?Object.assign({},c,s):Qt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Rn=new SD({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[bD,yD,CD]);function kD(e){return!e||an(e.size)||an(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Fu(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function _D(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function a_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,RD(e,i),s=0;s+e||0;function l_(e,t){const n={},r=Yt(t),o=r?Object.keys(t):t,i=Yt(e)?r?a=>Qt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=MD(i(a));return n}function s_(e){return l_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Sa(e){return l_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function rr(e){const t=s_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Bn(e,t){e=e||{},t=t||Rn.font;let n=Qt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Qt(e.style,t.style);r&&!(""+r).match(OD)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Qt(e.family,t.family),lineHeight:zD(Qt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Qt(e.weight,t.weight),string:""};return o.string=kD(o),o}function Vc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ha(e,t){return Object.assign(Object.create(e),t)}function _b(e,t=[""],n=e,r,o=()=>e[0]){Hr(r)||(r=f_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>_b([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return d_(a,l,()=>HD(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return qy(a).includes(l)},ownKeys(a){return qy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function Tl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:c_(e,r),setContext:i=>Tl(e,i,n,r),override:i=>Tl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return d_(i,a,()=>FD(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function c_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:zi(n)?n:()=>n,isIndexable:zi(r)?r:()=>r}}const ID=(e,t)=>e?e+bb(t):t,Rb=(e,t)=>Yt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function d_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function FD(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return zi(l)&&a.isScriptable(t)&&(l=AD(t,l,e,n)),pn(l)&&l.length&&(l=BD(t,l,e,a.isIndexable)),Rb(t,l)&&(l=Tl(l,o,i&&i[t],a)),l}function AD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),Rb(e,t)&&(t=Pb(o._scopes,o,e,t)),t}function BD(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Hr(i.index)&&r(e))t=t[i.index%t.length];else if(Yt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=Pb(c,o,e,d);t.push(Tl(f,i,a&&a[e],l))}}return t}function u_(e,t,n){return zi(e)?e(t,n):e}const ED=(e,t)=>e===!0?t:typeof e=="string"?$l(t,e):void 0;function LD(e,t,n,r,o){for(const i of t){const a=ED(n,i);if(a){e.add(a);const l=u_(a._fallback,n,o);if(Hr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Hr(r)&&n!==r)return null}return!1}function Pb(e,t,n,r){const o=t._rootScopes,i=u_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Ky(l,a,n,i||n,r);return s===null||Hr(i)&&i!==n&&(s=Ky(l,a,i,s,r),s===null)?!1:_b(Array.from(l),[""],o,i,()=>ND(t,n,r))}function Ky(e,t,n,r,o){for(;n;)n=LD(e,t,n,r,o);return n}function ND(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return pn(o)&&Yt(n)?n:o||{}}function HD(e,t,n,r){let o;for(const i of t)if(o=f_(ID(i,e),n),Hr(o))return Rb(e,o)?Pb(n,r,e,o):o}function f_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Hr(r))return r}}function qy(e){let t=e._keys;return t||(t=e._keys=jD(e._scopes)),t}function jD(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function h_(){return typeof window<"u"&&typeof document<"u"}function $b(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Au(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const sh=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function VD(e,t){return sh(e).getPropertyValue(t)}const WD=["top","right","bottom","left"];function ka(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=WD[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const UD=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function KD(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(UD(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function sa(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=sh(n),i=o.boxSizing==="border-box",a=ka(o,"padding"),l=ka(o,"border","width"),{x:s,y:c,box:d}=KD(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:p,height:v}=t;return i&&(p-=a.width+l.width,v-=a.height+l.height),{x:Math.round((s-f)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}function qD(e,t,n){let r,o;if(t===void 0||n===void 0){const i=$b(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=sh(i),s=ka(l,"border","width"),c=ka(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Au(l.maxWidth,i,"clientWidth"),o=Au(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Du,maxHeight:o||Du}}const Wc=e=>Math.round(e*10)/10;function YD(e,t,n,r){const o=sh(e),i=ka(o,"margin"),a=Au(o.maxWidth,e,"clientWidth")||Du,l=Au(o.maxHeight,e,"clientHeight")||Du,s=qD(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ka(o,"border","width"),p=ka(o,"padding");c-=p.width+h.width,d-=p.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Wc(Math.min(c,a,s.maxWidth)),d=Wc(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Wc(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Wc(Math.floor(d*r))),{width:c,height:d}}function Yy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const GD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Gy(e,t){const n=VD(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const XD=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},ZD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function wl(e,t,n){return e?XD(t,n):ZD()}function p_(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function v_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class QD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=t_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var No=new QD;const Xy="transparent",JD={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=jy(e||Xy),o=r.valid&&jy(t||Xy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class eI{constructor(t,n,r,o){const i=n[r];o=Vc([t.to,o,i,t.from]);const a=Vc([t.from,i,o]);this._active=!0,this._fn=t.fn||JD[t.type||typeof a],this._easing=Cs[t.easing]||Cs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Vc([t.to,n,o,t.from]),this._from=Vc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Yt(i))return;const a={};for(const l of n)a[l]=i[l];(pn(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=nI(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&tI(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new eI(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return No.add(this._chart,r),!0}}function tI(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function tx(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=aI(i,a,r),f=t.length;let h;for(let p=0;pn[r].axis===t).shift()}function cI(e,t){return Ha(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function dI(e,t,n){return Ha(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Yl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const rp=e=>e==="reset"||e==="none",nx=(e,t)=>t?e:Object.assign({},e),uI=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:m_(n,!0),values:null};class ks{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Jy(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Yl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,p,v)=>f==="x"?h:f==="r"?v:p,i=n.xAxisID=Qt(r.xAxisID,np(t,"x")),a=n.yAxisID=Qt(r.yAxisID,np(t,"y")),l=n.rAxisID=Qt(r.rAxisID,np(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ly(this._data,this),t._stacked&&Yl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Yt(n))this._data=iI(n);else if(r!==n){if(r){Ly(r,this);const o=this._cachedMeta;Yl(o),o._parsed=[]}n&&Object.isExtensible(n)&&hD(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Jy(n.vScale,n),n.stack!==r.stack&&(o=!0,Yl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&tx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{pn(o[t])?h=this.parseArrayData(r,o,t,n):Yt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const p=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!v()){this.updateRangeFromParsed(c,t,p,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,p,v,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(nx(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new g_(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||rp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){rp(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!rp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function hI(e){const t=e.iScale,n=fI(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Hr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function b_(e,t,n,r){return pn(e)?gI(e,t,n,r):t[n.axis]=n.parse(e,r),t}function rx(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function bI(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(an(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var PI={evaluateInteractionItems:uc,modes:{index(e,t,n,r){const o=sa(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=sa(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?ip(e,o,i,r,a):ap(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function lx(e,t){return e.filter(n=>y_.indexOf(n.pos)===-1&&n.box.axis===t)}function Xl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function $I(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Xl(Gl(t,"left"),!0),o=Xl(Gl(t,"right")),i=Xl(Gl(t,"top"),!0),a=Xl(Gl(t,"bottom")),l=lx(t,"x"),s=lx(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Gl(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function sx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function x_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function MI(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Yt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&x_(a,i.getPadding());const l=Math.max(0,t.outerWidth-sx(a,e,"left","right")),s=Math.max(0,t.outerHeight-sx(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function DI(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function II(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function ds(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,g)=>g.box.options&&g.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);x_(h,rr(r));const p=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),v=OI(s.concat(c),f);ds(l.fullSize,p,f,v),ds(s,p,f,v),ds(c,p,f,v)&&ds(s,p,f,v),DI(p),cx(l.leftAndTop,p,f,v),p.x+=p.w,p.y+=p.h,cx(l.rightAndBottom,p,f,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},rn(l.chartArea,b=>{const g=b.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class w_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class FI extends w_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zd="$chartjs",AI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dx=e=>e===null||e==="";function BI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[zd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dx(o)){const i=Gy(e,"width");i!==void 0&&(e.width=i)}if(dx(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Gy(e,"height");i!==void 0&&(e.height=i)}return e}const C_=GD?{passive:!0}:!1;function EI(e,t,n){e.addEventListener(t,n,C_)}function LI(e,t,n){e.canvas.removeEventListener(t,n,C_)}function NI(e,t){const n=AI[e.type]||e.type,{x:r,y:o}=sa(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Bu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function HI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.addedNodes,r),a=a&&!Bu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function jI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Bu(l.removedNodes,r),a=a&&!Bu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Us=new Map;let ux=0;function S_(){const e=window.devicePixelRatio;e!==ux&&(ux=e,Us.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function VI(e,t){Us.size||window.addEventListener("resize",S_),Us.set(e,t)}function WI(e){Us.delete(e),Us.size||window.removeEventListener("resize",S_)}function UI(e,t,n){const r=e.canvas,o=r&&$b(r);if(!o)return;const i=n_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),VI(e,i),a}function lp(e,t,n){n&&n.disconnect(),t==="resize"&&WI(e)}function KI(e,t,n){const r=e.canvas,o=n_(i=>{e.ctx!==null&&n(NI(i,e))},e);return EI(r,t,o),o}class qI extends w_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(BI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[zd])return!1;const r=n[zd].initial;["height","width"].forEach(i=>{const a=r[i];an(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[zd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:HI,detach:jI,resize:UI}[n]||KI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:lp,detach:lp,resize:lp}[n]||LI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return YD(t,n,r,o)}isAttached(t){const n=$b(t);return!!(n&&n.isConnected)}}function YI(e){return!h_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?FI:qI}class Mi{constructor(){jt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Iu(this.x)&&Iu(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}jt(Mi,"defaults",{}),jt(Mi,"defaultRoutes");function GI(e,t){const n=e.options.ticks,r=XI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?QI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return JI(t,c,i,a/o),c;const d=ZI(i,t,o);if(a>0){let f,h;const p=a>1?Math.round((s-l)/(a-1)):null;for(Kc(t,c,d,an(p)?0:l-p,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function QI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,fx=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function hx(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function rF(e,t){rn(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:Cr(n,Cr(r,n)),max:Cr(r,Cr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){sn(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=DD(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,p=io(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:p/(r-1),f+6>l&&(l=p/(r-(t.offset?.5:1)),s=this.maxHeight-Zl(t.grid)-n.padding-px(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=yb(Math.min(Math.asin(io((d.highest.height+6)/l,-1,1)),Math.asin(io(s/c,-1,1))-Math.asin(io(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){sn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){sn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=px(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Zl(i)+s):(t.height=this.maxHeight,t.width=Zl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),p=r.padding*2,v=wi(this.labelRotation),b=Math.cos(v),g=Math.sin(v);if(l){const m=r.mirror?0:g*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:b*f.width+g*h.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,d,g,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;s?c?(h=o*t.width,p=r*n.height):(h=r*t.height,p=o*n.width):i==="start"?p=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,p=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){sn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[k]||0,height:a[k]||0});return{first:_(0),last:_(n-1),widest:_(x),highest:_(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return dD(this._alignToPixels?Qi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Zl(i),p=[],v=l.setContext(this.getContext()),b=v.display?v.width:0,g=b/2,m=function(E){return Qi(r,E,b)};let y,C,x,w,_,k,T,$,R,D,z,A;if(a==="top")y=m(this.bottom),k=this.bottom-h,$=y-g,D=m(t.top)+g,A=t.bottom;else if(a==="bottom")y=m(this.top),D=t.top,A=m(t.bottom)-g,k=y+g,$=this.top+h;else if(a==="left")y=m(this.right),_=this.right-h,T=y-g,R=m(t.left)+g,z=t.right;else if(a==="right")y=m(this.left),R=t.left,z=m(t.right)-g,_=y+g,T=this.left+h;else if(n==="x"){if(a==="center")y=m((t.top+t.bottom)/2+.5);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}D=t.top,A=t.bottom,k=y+g,$=k+h}else if(n==="y"){if(a==="center")y=m((t.left+t.right)/2);else if(Yt(a)){const E=Object.keys(a)[0],W=a[E];y=m(this.chart.scales[E].getPixelForValue(W))}_=y-g,T=_-h,R=t.left,z=t.right}const L=Qt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Rn.route(i,o,s,l)})}function dF(e){return"id"in e&&"defaults"in e}class uF{constructor(){this.controllers=new qc(ks,"datasets",!0),this.elements=new qc(Mi,"elements"),this.plugins=new qc(Object,"plugins"),this.scales=new qc(ja,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):rn(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=bb(t);sn(r["before"+o],[],r),n[t](r),sn(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function hF(e){const t={},n=[],r=Object.keys(go.plugins.items);for(let i=0;i1&&Eu(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function xF(e,t){const n=Oa[e.type]||{scales:{}},r=t.scales||{},o=gv(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Yt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=Eu(a,l),c=bF(s,o),d=n.scales||{};i[a]=ws(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||gv(l,t),d=(Oa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=mF(f,s),p=a[h+"AxisID"]||h;i[p]=i[p]||Object.create(null),ws(i[p],[{axis:h},r[p],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ws(l,[Rn.scales[l.type],Rn.scale])}),i}function k_(e){const t=e.options||(e.options={});t.plugins=Qt(t.plugins,{}),t.scales=xF(e,t)}function __(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function wF(e){return e=e||{},e.data=__(e.data),k_(e),e}const vx=new Map,R_=new Set;function Yc(e,t){let n=vx.get(e);return n||(n=t(),vx.set(e,n),R_.add(n)),n}const Ql=(e,t,n)=>{const r=$l(t,n);r!==void 0&&e.add(r)};class CF{constructor(t){this._config=wF(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=__(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),k_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Yc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Yc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Yc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Ql(s,t,f))),d.forEach(f=>Ql(s,o,f)),d.forEach(f=>Ql(s,Oa[i]||{},f)),d.forEach(f=>Ql(s,Rn,f)),d.forEach(f=>Ql(s,vv,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),R_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Oa[n]||{},Rn.datasets[n]||{},{type:n},Rn,vv]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=gx(this._resolverCache,t,o);let s=a;if(kF(a,n)){i.$shared=!1,r=zi(r)?r():r;const c=this.createResolver(t,r,l);s=Tl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=gx(this._resolverCache,t,r);return Yt(n)?Tl(i,n,void 0,o):i}}function gx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:_b(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const SF=e=>Yt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||zi(e[n]),!1);function kF(e,t){const{isScriptable:n,isIndexable:r}=c_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(zi(l)||SF(l))||a&&pn(l))return!0}return!1}var _F="4.2.0";const RF=["top","bottom","left","right","chartArea"];function mx(e,t){return e==="top"||e==="bottom"||RF.indexOf(e)===-1&&t==="x"}function bx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function yx(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),sn(n&&n.onComplete,[e],t)}function PF(e){const t=e.chart,n=t.options.animation;sn(n&&n.onProgress,[e],t)}function P_(e){return h_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Md={},xx=e=>{const t=P_(e);return Object.values(Md).filter(n=>n.canvas===t).pop()};function $F(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function TF(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function OF(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class yo{static register(...t){go.add(...t),wx()}static unregister(...t){go.remove(...t),wx()}constructor(t,n){const r=this.config=new CF(n),o=P_(t),i=xx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||YI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=Z4(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new fF,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=pD(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Md[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}No.listen(this,"complete",yx),No.listen(this,"progress",PF),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return an(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return go}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Yy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Wy(this.canvas,this.ctx),this}stop(){return No.stop(this),this}resize(t,n){No.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Yy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),sn(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};rn(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=Eu(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),rn(i,a=>{const l=a.options,s=l.id,c=Eu(s,l),d=Qt(l.type,a.dtype);(l.position===void 0||mx(l.position,c)!==mx(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=go.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),rn(o,(a,l)=>{a||delete r[l]}),rn(r,a=>{Br.configure(this,a,a.options),Br.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bx("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){rn(this.scales,t=>{Br.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Fy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;$F(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Br.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],rn(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=OF(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&Sb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&kb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return a_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=PI.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ha(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Hr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),No.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};rn(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){rn(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},rn(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!zu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=rD(t),c=TF(t,this._lastEvent,r,s);r&&(this._lastEvent=null,sn(i.onHover,[t,l,this],this),s&&sn(i.onClick,[t,l,this],this));const d=!zu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}jt(yo,"defaults",Rn),jt(yo,"instances",Md),jt(yo,"overrides",Oa),jt(yo,"registry",go),jt(yo,"version",_F),jt(yo,"getChart",xx);function wx(){return rn(yo.instances,e=>e._plugins.invalidate())}function $_(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function Ci(e,t,n,r){return e?0:io(t,n,r)}function zF(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=s_(r);return{t:Ci(o.top,i.top,0,n),r:Ci(o.right,i.right,0,t),b:Ci(o.bottom,i.bottom,0,n),l:Ci(o.left,i.left,0,t)}}function MF(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=Sa(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Yt(o);return{topLeft:Ci(!s||l.top||l.left,i.topLeft,0,a),topRight:Ci(!s||l.top||l.right,i.topRight,0,a),bottomLeft:Ci(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:Ci(!s||l.bottom||l.right,i.bottomRight,0,a)}}function DF(e){const t=$_(e),n=t.right-t.left,r=t.bottom-t.top,o=zF(e,n/2,r/2),i=MF(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function sp(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&$_(e,r);return l&&(o||ml(t,l.left,l.right))&&(i||ml(n,l.top,l.bottom))}function IF(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function FF(e,t){e.rect(t.x,t.y,t.w,t.h)}function cp(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Dd extends Mi{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=DF(this),l=IF(a.radius)?Ws:FF;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,cp(a,n,i)),t.clip(),l(t,cp(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,cp(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return sp(this,t,n,r)}inXRange(t,n){return sp(this,t,null,n)}inYRange(t,n){return sp(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}jt(Dd,"id","bar"),jt(Dd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),jt(Dd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},AF=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Sx extends Mi{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=sn(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Bn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=Cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,p=-d;return this.legendItems.forEach((v,b)=>{const g=r+n/2+i.measureText(v.text).width;(b===0||c[c.length-1]+g+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,p+=d,h++),s[b]={left:0,top:p,row:h,width:g,height:o},c[c.length-1]+=g+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,p=0,v=0,b=0;return this.legendItems.forEach((g,m)=>{const{itemWidth:y,itemHeight:C}=BF(r,n,i,g,o);m>0&&p+C+2*l>d&&(f+=h+l,c.push({width:h,height:p}),v+=h+l,b++,h=p=0),s[m]={left:v,top:p,col:b,width:y,height:C},h=Math.max(h,y),p+=C+l}),f+=h,c.push({width:h,height:p}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=wl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=tr(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=tr(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=tr(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Sb(t,this),this._draw(),kb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Rn.color,s=wl(t.rtl,this.left,this.width),c=Bn(a.font),{padding:d}=a,f=c.size,h=f/2;let p;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:v,boxHeight:b,itemHeight:g}=Cx(a,f),m=function(_,k,T){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;o.save();const $=Qt(T.lineWidth,1);if(o.fillStyle=Qt(T.fillStyle,l),o.lineCap=Qt(T.lineCap,"butt"),o.lineDashOffset=Qt(T.lineDashOffset,0),o.lineJoin=Qt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Qt(T.strokeStyle,l),o.setLineDash(Qt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},D=s.xPlus(_,v/2),z=k+h;i_(o,R,D,z,a.pointStyleWidth&&v)}else{const R=k+Math.max((f-b)/2,0),D=s.leftForLtr(_,v),z=Sa(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Ws(o,{x:D,y:R,w:v,h:b,radius:z}):o.rect(D,R,v,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(_,k,T){za(o,T.text,_,k+g/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?p={x:tr(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:p={x:this.left+d,y:tr(i,this.top+x+d,this.bottom-n[0].height),line:0},p_(this.ctx,t.textDirection);const w=g+d;this.legendItems.forEach((_,k)=>{o.strokeStyle=_.fontColor,o.fillStyle=_.fontColor;const T=o.measureText(_.text).width,$=s.textAlign(_.textAlign||(_.textAlign=a.textAlign)),R=v+h+T;let D=p.x,z=p.y;s.setWidth(this.width),C?k>0&&D+R+d>this.right&&(z=p.y+=w,p.line++,D=p.x=tr(i,this.left+d,this.right-r[p.line])):k>0&&z+w>this.bottom&&(D=p.x=D+n[p.line].width+d,p.line++,z=p.y=tr(i,this.top+x+d,this.bottom-n[p.line].height));const A=s.x(D);if(m(A,z,_),D=vD($,D+v+h,C?D+R:this.right,t.rtl),y(s.x(D),z,_),C)p.x+=R+d;else if(typeof _.text!="string"){const L=c.lineHeight;p.y+=T_(_,L)}else p.y+=w}),v_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Bn(n.font),o=rr(n.padding);if(!n.display)return;const i=wl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=tr(t.align,f,this.right-h);else{const v=this.columnSizes.reduce((b,g)=>Math.max(b,g.height),0);d=c+tr(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=tr(l,f,f+h);a.textAlign=i.textAlign(wb(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,za(a,n.text,p,d,r)}_computeTitleHeight(){const t=this.options.title,n=Bn(t.font),r=rr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ml(t,this.left,this.right)&&ml(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function LF(e,t,n){let r=e;return typeof t.text!="string"&&(r=T_(t,n)),r}function T_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function NF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var HF={id:"legend",_element:Sx,start(e,t,n){const r=e.legend=new Sx({ctx:e.ctx,options:n,chart:e});Br.configure(e,r,n),Br.addBox(e,r)},stop(e){Br.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Br.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=rr(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class O_ extends Mi{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=pn(r.text)?r.text.length:1;this._padding=rr(r.padding);const i=o*Bn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=tr(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=tr(l,o,n),s=Xn*-.5):(d=i-t,f=tr(l,n,o),s=Xn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Bn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);za(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:wb(n.align),textBaseline:"middle",translation:[a,l]})}}function jF(e,t){const n=new O_({ctx:e.ctx,options:t,chart:e});Br.configure(e,n,t),Br.addBox(e,n),e.titleBlock=n}var VF={id:"title",_element:O_,start(e,t,n){jF(e,n)},stop(e){const t=e.titleBlock;Br.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Br.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const us={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function WF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function kx(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Bn(t.bodyFont),c=Bn(t.titleFont),d=Bn(t.footerFont),f=i.length,h=o.length,p=r.length,v=rr(t.padding);let b=v.height,g=0,m=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),m){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=p*x+(m-p)*s.lineHeight+(m-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){g=Math.max(g,n.measureText(x).width+y)};return n.save(),n.font=c.string,rn(e.title,C),n.font=s.string,rn(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,rn(r,x=>{rn(x.before,C),rn(x.lines,C),rn(x.after,C)}),y=0,n.font=d.string,rn(e.footer,C),n.restore(),g+=v.width,{width:g,height:b}}function UF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function KF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function qF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),KF(c,e,t,n)&&(c="center"),c}function _x(e,t,n){const r=n.yAlign||t.yAlign||UF(e,n);return{xAlign:n.xAlign||t.xAlign||qF(e,t,n,r),yAlign:r}}function YF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function GF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function Rx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=Sa(a);let v=YF(t,l);const b=GF(t,s,c);return s==="center"?l==="left"?v+=c:l==="right"&&(v-=c):l==="left"?v-=Math.max(d,h)+o:l==="right"&&(v+=Math.max(f,p)+o),{x:io(v,0,r.width-t.width),y:io(b,0,r.height-t.height)}}function Gc(e,t,n){const r=rr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Px(e){return vo([],Ho(e))}function XF(e,t,n){return Ha(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function $x(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const z_={beforeTitle:Bo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?z_[t].call(n,r):o}class mv extends Mi{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new g_(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=XF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=sr(r,"beforeTitle",this,t),i=sr(r,"title",this,t),a=sr(r,"afterTitle",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}getBeforeBody(t,n){return Px(sr(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return rn(t,i=>{const a={before:[],lines:[],after:[]},l=$x(r,i);vo(a.before,Ho(sr(l,"beforeLabel",this,i))),vo(a.lines,sr(l,"label",this,i)),vo(a.after,Ho(sr(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return Px(sr(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=sr(r,"beforeFooter",this,t),i=sr(r,"footer",this,t),a=sr(r,"afterFooter",this,t);let l=[];return l=vo(l,Ho(o)),l=vo(l,Ho(i)),l=vo(l,Ho(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),rn(l,d=>{const f=$x(t.callbacks,d);o.push(sr(f,"labelColor",this,d)),i.push(sr(f,"labelPointStyle",this,d)),a.push(sr(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=us[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=kx(this,r),c=Object.assign({},l,s),d=_x(this.chart,r,c),f=Rx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=Sa(l),{x:h,y:p}=t,{width:v,height:b}=n;let g,m,y,C,x,w;return i==="center"?(x=p+b/2,o==="left"?(g=h,m=g-a,C=x+a,w=x-a):(g=h+v,m=g+a,C=x-a,w=x+a),y=g):(o==="left"?m=h+Math.max(s,d)+a:o==="right"?m=h+v-Math.max(c,f)-a:m=this.caretX,i==="top"?(C=p,x=C-a,g=m-a,y=m+a):(C=p+b,x=C+a,g=m+a,y=m-a),w=C),{x1:g,x2:m,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=wl(r.rtl,this.x,this.width);for(t.x=Gc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Bn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Ws(t,{x:g,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Ws(t,{x:m,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,b,c,s),t.strokeRect(g,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(m,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Bn(r.bodyFont);let h=f.lineHeight,p=0;const v=wl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,v.x(t.x+p),t.y+h/2),t.y+=h+i},g=v.textAlign(a);let m,y,C,x,w,_,k;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Gc(this,g,r),n.fillStyle=r.bodyColor,rn(this.beforeBody,b),p=l&&g!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,_=o.length;x<_;++x){for(m=o[x],y=this.labelTextColors[x],n.fillStyle=y,rn(m.before,b),C=m.lines,l&&C.length&&(this._drawColorBox(n,t,x,v,r),h=Math.max(f.lineHeight,s)),w=0,k=C.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=us[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=kx(this,t),s=Object.assign({},a,this._size),c=_x(n,t,s),d=Rx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=rr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),p_(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),v_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!zu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!zu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=us[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}jt(mv,"positioners",us);var ZF={id:"tooltip",_element:mv,positioners:us,afterInit(e,t,n){n&&(e.tooltip=new mv({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:z_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const QF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function JF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return QF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const eA=(e,t)=>e===null?null:io(Math.round(e),0,t);function Tx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}jt(bv,"id","category"),jt(bv,"defaults",{ticks:{callback:Tx}});function tA(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,p=i||1,v=d-1,{min:b,max:g}=t,m=!an(a),y=!an(l),C=!an(c),x=(g-b)/(f+1);let w=By((g-b)/v/p)*p,_,k,T,$;if(w<1e-14&&!m&&!y)return[{value:b},{value:g}];$=Math.ceil(g/w)-Math.floor(b/w),$>v&&(w=By($*w/v/p)*p),an(s)||(_=Math.pow(10,s),w=Math.ceil(w*_)/_),o==="ticks"?(k=Math.floor(b/w)*w,T=Math.ceil(g/w)*w):(k=b,T=g),m&&y&&i&&aD((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,k=a,T=l):C?(k=m?a:k,T=y?l:T,$=c-1,w=(T-k)/$):($=(T-k)/w,Td($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(Ey(w),Ey(k));_=Math.pow(10,an(s)?R:s),k=Math.round(k*_)/_,T=Math.round(T*_)/_;let D=0;for(m&&(h&&k!==a?(n.push({value:a}),ko=n?o:s,l=s=>i=r?i:s;if(t){const s=Ri(o),c=Ri(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=tA(o,i);return t.bounds==="ticks"&&Qk(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Cb(t,this.chart.options.locale,this.options.ticks.format)}}class yv extends Lu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?t:0,this.max=jn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=wi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}jt(yv,"id","linear"),jt(yv,"defaults",{ticks:{callback:lh.formatters.numeric}});const Ks=e=>Math.floor(xi(e)),ea=(e,t)=>Math.pow(10,Ks(e)+t);function zx(e){return e/Math.pow(10,Ks(e))===1}function Mx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function nA(e,t){const n=t-e;let r=Ks(n);for(;Mx(e,t,r)>10;)r++;for(;Mx(e,t,r)<10;)r--;return Math.min(r,Ks(e))}function rA(e,{min:t,max:n}){t=Cr(e.min,t);const r=[],o=Ks(t);let i=nA(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=Cr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const p=Cr(e.max,h);return r.push({value:p,major:zx(p),significand:f}),r}class Dx extends ja{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Lu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return jn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=jn(t)?Math.max(0,t):null,this.max=jn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!jn(this._userMin)&&(this.min=t===ea(this.min,0)?ea(this.min,-1):ea(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(ea(r,-1)),a(ea(o,1)))),r<=0&&i(ea(o,-1)),o<=0&&a(ea(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=rA(n,this);return t.bounds==="ticks"&&Qk(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Cb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xi(t),this._valueRange=xi(this.max)-xi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}jt(Dx,"id","logarithmic"),jt(Dx,"defaults",{ticks:{callback:lh.formatters.logarithmic,major:{enabled:!0}}});function xv(e){const t=e.ticks;if(t.display&&e.display){const n=rr(t.backdropPadding);return Qt(t.font&&t.font.size,Rn.font.size)+n.height}return 0}function oA(e,t,n){return n=pn(n)?n:[n],{w:_D(e,t.string,n),h:n.length*t.lineHeight}}function Ix(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function iA(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Xn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function lA(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=xv(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Xn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function uA(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Bn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:p}=e._pointLabelItems[o],{backdropColor:v}=i;if(!an(v)){const b=Sa(i.borderRadius),g=rr(i.backdropPadding);n.fillStyle=v;const m=d-g.left,y=f-g.top,C=h-d+g.width,x=p-f+g.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Ws(n,{x:m,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(m,y,C,x)}za(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function M_(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,ko);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=sn(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?iA(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=ko/(this._pointLabels.length||1),r=this.options.startAngle||0;return mo(t*n+wi(r))}getDistanceFromCenterForValue(t){if(an(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(an(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),p=o.setContext(h),v=i.setContext(h);fA(this,p,s,a,v)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Bn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=rr(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}za(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}jt(Xc,"id","radialLinear"),jt(Xc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lh.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),jt(Xc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),jt(Xc,"descriptors",{angleLines:{_fallback:"grid"}});const ch={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fr=Object.keys(ch);function pA(e,t){return e-t}function Fx(e,t){if(an(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),jn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Iu(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Ax(e,t,n,r){const o=fr.length;for(let i=fr.indexOf(e);i=fr.indexOf(n);i--){const a=fr[i];if(ch[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return fr[n?fr.indexOf(n):0]}function gA(e){for(let t=fr.indexOf(e)+1,n=fr.length;t=t?n[r]:n[o];e[i]=!0}}function mA(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function Ex(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=io(n,0,a),r=io(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Ax(i.minUnit,n,r,this._getLabelCapacity(n)),l=Qt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=Iu(s)||s===!0,d={};let f=n,h,p;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,p=0;hb-g).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return sn(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],p=c&&f&&h&&h.major;return this._adapter.format(t,o||(p?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=pv(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=pv(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Lx extends Nu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},bA={type:{type:String,required:!0},...D_},yA=Lk[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function rl(e){return wa(e)?Dt(e):e}function xA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return wa(t)?new Proxy(e,{}):e}function wA(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function I_(e,t){e.labels=t}function F_(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function CA(e,t){const n={labels:[],datasets:[]};return I_(n,e.labels),F_(n,e.datasets,t),n}const SA=J({props:bA,setup(e,t){let{expose:n}=t;const r=F(null),o=ck(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,p=CA(c,h),v=xA(p,c);o.value=new yo(r.value,{type:s,data:v,options:{...d},plugins:f})},a=()=>{const s=Dt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return It(i),Bt(a),it([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,p]=c;const v=Dt(o.value);if(!v)return;let b=!1;if(d){const g=rl(d),m=rl(h);g&&g!==m&&(wA(v,g),b=!0)}if(f){const g=rl(f.labels),m=rl(p.labels),y=rl(f.datasets),C=rl(p.datasets);g!==m&&(I_(v.config.data,g),b=!0),y&&y!==C&&(F_(v.config.data,y,e.datasetIdKey),b=!0)}b&&l(v)},{deep:!0}),()=>u("canvas",{ref:r})}});function kA(e,t){return yo.register(t),J({props:D_,setup(n,r){let{expose:o}=r;const i=ck(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(SA,yA({ref:a},{type:e,...n}))}})}const _A=kA("bar",Od),Nx=`Barack Obama,Obama -Brexit -Donald Trump,Trump -ISIS -North Korea,North Korean,North Korea -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping`;let Hu=[];const A_=new WeakMap;function RA(){Hu.forEach(e=>e(...A_.get(e))),Hu=[]}function Ma(e,...t){A_.set(e,t),!Hu.includes(e)&&Hu.push(e)===1&&requestAnimationFrame(RA)}function PA(e){return e.nodeType===9?null:e.parentNode}function B_(e){if(e===null)return null;const t=PA(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return B_(t)}function Ob(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Zn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function vr(e){return e.composedPath()[0]||null}function $A(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Jl(e,t){var n;if(e==null)return;const r=$A(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function hn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function yn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Pi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function TA(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const Hx={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function E_(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function Id(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function mi(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function wv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function Cv(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function Sv(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Oo="^\\s*",zo="\\s*$",Di="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Sr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ga="([0-9A-Fa-f])",ma="([0-9A-Fa-f]{2})",OA=new RegExp(`${Oo}hsl\\s*\\(${Sr},${Di},${Di}\\)${zo}`),zA=new RegExp(`${Oo}hsv\\s*\\(${Sr},${Di},${Di}\\)${zo}`),MA=new RegExp(`${Oo}hsla\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),DA=new RegExp(`${Oo}hsva\\s*\\(${Sr},${Di},${Di},${Sr}\\)${zo}`),IA=new RegExp(`${Oo}rgb\\s*\\(${Sr},${Sr},${Sr}\\)${zo}`),FA=new RegExp(`${Oo}rgba\\s*\\(${Sr},${Sr},${Sr},${Sr}\\)${zo}`),zb=new RegExp(`${Oo}#${ga}${ga}${ga}${zo}`),Mb=new RegExp(`${Oo}#${ma}${ma}${ma}${zo}`),Db=new RegExp(`${Oo}#${ga}${ga}${ga}${ga}${zo}`),Ib=new RegExp(`${Oo}#${ma}${ma}${ma}${ma}${zo}`);function cr(e){return parseInt(e,16)}function Cl(e){try{let t;if(t=MA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=OA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function _a(e){try{let t;if(t=DA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),Uo(t[13])];if(t=zA.exec(e))return[To(t[1]),zn(t[5]),zn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Tn(e){try{let t;if(t=Mb.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),1];if(t=IA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),1];if(t=FA.exec(e))return[bn(t[1]),bn(t[5]),bn(t[9]),Uo(t[13])];if(t=zb.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),1];if(t=Ib.exec(e))return[cr(t[1]),cr(t[2]),cr(t[3]),Uo(cr(t[4])/255)];if(t=Db.exec(e))return[cr(t[1]+t[1]),cr(t[2]+t[2]),cr(t[3]+t[3]),Uo(cr(t[4]+t[4])/255)];if(e in Hx)return Tn(Hx[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function AA(e){return e>1?1:e<0?0:e}function BA(e,t,n){return`rgb(${bn(e)}, ${bn(t)}, ${bn(n)})`}function kv(e,t,n,r){return`rgba(${bn(e)}, ${bn(t)}, ${bn(n)}, ${AA(r)})`}function dp(e,t,n,r,o){return bn((e*t*(1-r)+n*r)/o)}function pt(e,t){Array.isArray(e)||(e=Tn(e)),Array.isArray(t)||(t=Tn(t));const n=e[3],r=t[3],o=Uo(n+r-n*r);return kv(dp(e[0],n,t[0],r,o),dp(e[1],n,t[1],r,o),dp(e[2],n,t[2],r,o),o)}function He(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e);return t.alpha?kv(n,r,o,t.alpha):kv(n,r,o,i)}function kn(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Tn(e),{lightness:a=1,alpha:l=1}=t;return _o([n*a,r*a,o*a,i*l])}function Uo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function To(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function bn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function zn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function _v(e){const[t,n,r]=Array.isArray(e)?e:Tn(e);return BA(t,n,r)}function _o(e){const[t,n,r]=e;return 3 in e?`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, ${Uo(e[3])})`:`rgba(${bn(t)}, ${bn(n)}, ${bn(r)}, 1)`}function Rv(e){return`hsv(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function Ra(e){const[t,n,r]=e;return 3 in e?`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsva(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Pv(e){return`hsl(${To(e[0])}, ${zn(e[1])}%, ${zn(e[2])}%)`}function $i(e){const[t,n,r]=e;return 3 in e?`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, ${Uo(e[3])})`:`hsla(${To(t)}, ${zn(n)}%, ${zn(r)}%, 1)`}function Ti(e){if(typeof e=="string"){let r;if(r=Mb.exec(e))return`${r[0]}FF`;if(r=Ib.exec(e))return r[0];if(r=zb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Db.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>bn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":bn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function _s(e){if(typeof e=="string"){let t;if(t=Mb.exec(e))return t[0];if(t=Ib.exec(e))return t[0].slice(0,7);if(t=zb.exec(e)||Db.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>bn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Tr(e=8){return Math.random().toString(16).slice(2,2+e)}function L_(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Va(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Nr(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Nr(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Nr(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Wn(e){return Object.keys(e)}const Ut=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Ar(e):typeof e=="number"?Ar(String(e)):null,Vx=new Set;function LA(e,t){const n=`[naive/${e}]: ${t}`;Vx.has(n)||(Vx.add(n),console.error(n))}function Qn(e,t){console.error(`[naive/${e}]: ${t}`)}function Nn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function $v(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function hc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function ju(e,t="default",n=void 0){const r=e[t];if(!r)return Qn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Nr(r(n));return o.length===1?o[0]:(Qn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function N_(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function H_(e){return t=>{t?e.value=t.$el:e.value=null}}function El(e){return e.some(t=>Ns(t)?!(t.type===Pr||t.type===Ot&&!El(t.children)):!0)?e:null}function gt(e,t){return e&&El(e())||t()}function Da(e,t,n){return e&&El(e(t))||n(t)}function kt(e,t){const n=e&&El(e());return t(n||null)}function NA(e,t,n){const r=e&&El(e(t));return n(r||null)}function Pa(e){return!(e&&El(e()))}function Rs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function HA(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===$r);return!!(n&&n.value===!1)}const Tv=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),jA=/^(\d|\.)+$/,Wx=/(\d|\.)+/;function Mt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(jA.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Wx.exec(e);return o?e.replace(Wx,String((Number(o[0])+n)*t)):e}return e}function Ia(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function VA(e){let t=0;for(let n=0;n{let o=VA(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function KA(e,t){const n=[];return t.split(j_).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function qA(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=UA(t,n):t=KA(t,n))}),t.join(", ").replace(WA," ")}function Ux(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function dh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function YA(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Qc(e){return e?/^\s*@(s|m)/.test(e):!1}const GA=/[A-Z]/g;function V_(e){return e.replace(GA,t=>"-"+t.toLowerCase())}function XA(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${V_(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function ZA(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Kx(e,t,n,r){if(!t)return"";const o=ZA(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=V_(l),s!=null&&a.push(` ${l}${XA(s)}`)}),e&&a.push("}"),a.join(` -`)}function Ov(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))Ov(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Ov(o,t,n):o&&n(o)}else r&&n(r)})}function W_(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Qc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});Qc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Qc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});Qc(d)?l=d:t.push(d)}const s=qA(t),c=Kx(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&Ov(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Kx(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else W_(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function U_(e,t,n,r=!1){const o=[];return W_(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function qs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function QA(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Ux),t.els=[];else{const o=dh(n);o&&r.includes(o)&&(Ux(o),t.els=r.filter(i=>i!==o))}}function qx(e,t){e.push(t)}function JA(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,U_(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=qs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=dh(n);if(d!==null&&!a)return d;const f=d!=null?d:YA(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),qx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),qx(t.els,f),f}function eB(e){return U_(this,this.instance,e)}function tB(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return JA(this.instance,this,t,r,o,i,a,l,n)}function nB(e={}){const{id:t}=e;QA(this.instance,this,t)}const Jc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:eB,mount:tB,unmount:nB}},rB=function(e,t,n,r){return Array.isArray(t)?Jc(e,{$:null},null,t):Array.isArray(n)?Jc(e,t,null,n):Array.isArray(r)?Jc(e,t,n,r):Jc(e,t,n,null)};function K_(e={}){let t=null;const n={c:(...r)=>rB(n,...r),use:(r,...o)=>r.install(n,...o),find:dh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function oB(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return dh(e)!==null}function iB(e){let t=".",n="__",r="--",o;if(e){let v=e.blockPrefix;v&&(t=v),v=e.elementPrefix,v&&(n=v),v=e.modifierPrefix,v&&(r=v)}const i={install(v){o=v.c;const b=v.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(v){let b,g;return{before(m){b=m.bem.b,g=m.bem.els,m.bem.els=null},after(m){m.bem.b=b,m.bem.els=g},$({context:m,props:y}){return v=typeof v=="string"?v:v({context:m,props:y}),m.bem.b=v,`${(y==null?void 0:y.bPrefix)||t}${m.bem.b}`}}}function l(v){let b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({context:g,props:m}){return v=typeof v=="string"?v:v({context:g,props:m}),g.bem.els=v.split(",").map(y=>y.trim()),g.bem.els.map(y=>`${(m==null?void 0:m.bPrefix)||t}${g.bem.b}${n}${y}`).join(", ")}}}function s(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=v.split(",").map(x=>x.trim());function y(x){return m.map(w=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(v){return{$({context:b,props:g}){v=typeof v=="string"?v:v({context:b,props:g});const m=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${m!==null&&m.length>0?`${n}${m[0]}`:""}${r}${v})`}}}return Object.assign(i,{cB:(...v)=>o(a(v[0]),v[1],v[2]),cE:(...v)=>o(l(v[0]),v[1],v[2]),cM:(...v)=>o(s(v[0]),v[1],v[2]),cNotM:(...v)=>o(c(v[0]),v[1],v[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const aB="n",Ys=`.${aB}-`,lB="__",sB="--",q_=K_(),Y_=iB({blockPrefix:Ys,elementPrefix:lB,modifierPrefix:sB});q_.use(Y_);const{c:O,find:uce}=q_,{cB:S,cE:M,cM:I,cNotM:mt}=Y_;function Mo(e){return O(({props:{bPrefix:t}})=>`${t||Ys}modal, ${t||Ys}drawer`,[e])}function ei(e){return O(({props:{bPrefix:t}})=>`${t||Ys}popover`,[e])}function G_(e){return O(({props:{bPrefix:t}})=>`&${t||Ys}modal`,e)}const cB=(...e)=>O(">",[S(...e)]);let up;function dB(){return up===void 0&&(up=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),up}const lr=typeof document<"u"&&typeof window<"u",X_=new WeakSet;function Fa(e){X_.add(e)}function Z_(e){return!X_.has(e)}function uB(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Jo())===null||r===void 0?void 0:r.proxy;it(n,a),a(n.value),Bt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function fB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),it(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Bt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function hB(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),It(()=>{const o=n();!o||r[t].push(o)}),Bt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function pB(e,t,n){if(!t)return e;const r=F(e.value);let o=null;return it(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Q_(e){const t=F(!!e.value);if(t.value)return $o(t);const n=it(e,r=>{r&&(t.value=!0,n())});return $o(t)}function lt(e){const t=P(e),n=F(t.value);return it(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Fb(){return Jo()!==null}const uh=typeof window<"u";let Sl,Ps;const vB=()=>{var e,t;Sl=uh?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ps=!1,Sl!==void 0?Sl.then(()=>{Ps=!0}):Ps=!0};vB();function fh(e){if(Ps)return;let t=!1;It(()=>{Ps||Sl==null||Sl.then(()=>{t||e()})}),Bt(()=>{t=!0})}function Fd(e){return e.composedPath()[0]}const gB={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function mB(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Fd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Fd(a))},i=a=>{!r||t.contains(Fd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function J_(e,t,n){const r=gB[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=mB(e,t,n)),i}function bB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{_t(i,document,o[i],r)}),!0}return!1}function yB(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=J_(e,t,n);return Object.keys(o).forEach(i=>{Ct(i,document,o[i],r)}),!0}return!1}function xB(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(k,T,$){const R=k[T];return k[T]=function(){return $.apply(k,arguments),R.apply(k,arguments)},k}function i(k,T){k[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var k;return(k=a.get(this))!==null&&k!==void 0?k:null}function c(k,T){l!==void 0&&Object.defineProperty(k,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const k=function(T){const{type:$,eventPhase:R,bubbles:D}=T,z=Fd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],W=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!D&&W!==void 0){const re=W.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(W===void 0)return;for(let K=0;Kz(T))};return k.displayName="evtdUnifiedWindowEventHandler",k}const v=h(),b=p();function g(k,T){const $=d[k];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,v,k==="capture")),$[T]}function m(k){return f[k]===void 0&&(f[k]=new Set,window.addEventListener(k,b)),f[k]}function y(k,T){let $=k.get(T);return $===void 0&&k.set(T,$=new Set),$}function C(k,T,$,R){const D=d[T][$];if(D!==void 0){const z=D.get(k);if(z!==void 0&&z.has(R))return!0}return!1}function x(k,T){const $=f[k];return!!($!==void 0&&$.has(T))}function w(k,T,$,R){let D;if(typeof R=="object"&&R.once===!0?D=E=>{_(k,T,D,R),$(E)}:D=$,bB(k,T,D,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=g(A,k),j=y(L,T);if(j.has(D)||j.add(D),T===window){const E=m(k);E.has(D)||E.add(D)}}function _(k,T,$,R){if(yB(k,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=g(A,k),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",k,$)&&x(k,$)){const W=f[k];W.delete($),W.size===0&&(window.removeEventListener(k,b),f[k]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(k,v,A==="capture"),d[A][k]=void 0)}return{on:w,off:_}}const{on:_t,off:Ct}=xB(),fs=F(null);function Yx(e){if(e.clientX>0||e.clientY>0)fs.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?fs.value={x:n+o/2,y:r+i/2}:fs.value={x:0,y:0}}else fs.value=null}}let ed=0,Gx=!0;function eR(){if(!uh)return $o(F(null));ed===0&&_t("click",document,Yx,!0);const e=()=>{ed+=1};return Gx&&(Gx=Fb())?(Qo(e),Bt(()=>{ed-=1,ed===0&&Ct("click",document,Yx,!0)})):e(),$o(fs)}const wB=F(void 0);let td=0;function Xx(){wB.value=Date.now()}let Zx=!0;function tR(e){if(!uh)return $o(F(!1));const t=F(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}td===0&&_t("click",window,Xx,!0);const i=()=>{td+=1,_t("click",window,o,!0)};return Zx&&(Zx=Fb())?(Qo(i),Bt(()=>{td-=1,td===0&&Ct("click",window,Xx,!0),Ct("click",window,o,!0),r()})):i(),$o(t)}function St(e,t){return it(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function Hn(){const e=F(!1);return It(()=>{e.value=!0}),$o(e)}function Ii(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const CB=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function SB(){return CB}const kB={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function _B(e){return`(min-width: ${e}px)`}const es={};function RB(e=kB){if(!uh)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=F({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;es[i]===void 0?(a=window.matchMedia(_B(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,es[i]={mql:a,cbs:l}):(a=es[i].mql,l=es[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Bt(()=>{n.forEach(o=>{const{cbs:i}=es[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function Ab(e={},t){const n=ji({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(_t("keydown",document,i),_t("keyup",document,a)),t!==void 0&&it(t,s=>{s?(_t("keydown",document,i),_t("keyup",document,a)):(Ct("keydown",document,i),Ct("keyup",document,a))})};return Fb()?(Qo(l),Bt(()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a))})):l(),$o(n)}const Bb="n-internal-select-menu",nR="n-internal-select-menu-body",pc="n-modal-body",rR="n-modal",vc="n-drawer-body",Eb="n-drawer",Ll="n-popover-body",oR="__disabled__";function Ht(e){const t=Le(pc,null),n=Le(vc,null),r=Le(Ll,null),o=Le(nR,null),i=F();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};It(()=>{_t("fullscreenchange",document,a)}),Bt(()=>{Ct("fullscreenchange",document,a)})}return lt(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?oR:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Ht.tdkey=oR;Ht.propTo={type:[String,Object,Boolean],default:void 0};let Qx=!1;function Lb(){if(!!lr&&!!window.CSS&&!Qx&&(Qx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function zv(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Mv(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Ar(String(r)));return}if(Array.isArray(r)){Mv(r,t,n);return}if(r.type===Ot){if(r.children===null)return;Array.isArray(r.children)&&Mv(r.children,t,n)}else r.type!==Pr&&n.push(r)}}),n}function Jx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Mv(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ui=null;function iR(){if(ui===null&&(ui=document.getElementById("v-binder-view-measurer"),ui===null)){ui=document.createElement("div"),ui.id="v-binder-view-measurer";const{style:e}=ui;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ui)}return ui.getBoundingClientRect()}function PB(e,t){const n=iR();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function fp(e){const t=e.getBoundingClientRect(),n=iR();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function $B(e){return e.nodeType===9?null:e.parentNode}function aR(e){if(e===null)return null;const t=$B(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return aR(t)}const TB=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ot("VBinder",(t=Jo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=F(null),o=m=>{r.value=m,n&&e.syncTargetWithParent&&n.setTargetRef(m)};let i=[];const a=()=>{let m=r.value;for(;m=aR(m),m!==null;)i.push(m);for(const y of i)_t("scroll",y,f,!0)},l=()=>{for(const m of i)Ct("scroll",m,f,!0);i=[]},s=new Set,c=m=>{s.size===0&&a(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&l()},f=()=>{Ma(h)},h=()=>{s.forEach(m=>m())},p=new Set,v=m=>{p.size===0&&_t("resize",window,g),p.has(m)||p.add(m)},b=m=>{p.has(m)&&p.delete(m),p.size===0&&Ct("resize",window,g)},g=()=>{p.forEach(m=>m())};return Bt(()=>{Ct("resize",window,g),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:v,removeResizeListener:b}},render(){return zv("binder",this.$slots)}}),qr=TB,Yr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?un(Jx("follower",this.$slots),[[t]]):Jx("follower",this.$slots)}}),ol="@@mmoContext",OB={mounted(e,{value:t}){e[ol]={handler:void 0},typeof t=="function"&&(e[ol].handler=t,_t("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ol];typeof t=="function"?n.handler?n.handler!==t&&(Ct("mousemoveoutside",e,n.handler),n.handler=t,_t("mousemoveoutside",e,t)):(e[ol].handler=t,_t("mousemoveoutside",e,t)):n.handler&&(Ct("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ol];t&&Ct("mousemoveoutside",e,t),e[ol].handler=void 0}},zB=OB,il="@@coContext",MB={mounted(e,{value:t,modifiers:n}){e[il]={handler:void 0},typeof t=="function"&&(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[il];typeof t=="function"?r.handler?r.handler!==t&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,_t("clickoutside",e,t,{capture:n.capture})):(e[il].handler=t,_t("clickoutside",e,t,{capture:n.capture})):r.handler&&(Ct("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[il];n&&Ct("clickoutside",e,n,{capture:t.capture}),e[il].handler=void 0}},gr=MB;function DB(e,t){console.error(`[vdirs/${e}]: ${t}`)}class IB{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&DB("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const hp=new IB,al="@@ziContext",FB={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[al]={enabled:!!o,initialized:!1},o&&(hp.ensureZIndex(e,r),e[al].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[al].enabled;o&&!i&&(hp.ensureZIndex(e,r),e[al].initialized=!0),e[al].enabled=!!o},unmounted(e,t){if(!e[al].initialized)return;const{value:n={}}=t,{zIndex:r}=n;hp.unregister(e,r)}},gc=FB,lR=Symbol("@css-render/vue3-ssr");function AB(e,t){return``}function BB(e,t){const n=Le(lR,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(AB(e,t)))}const EB=typeof document<"u";function Vi(){if(EB)return;const e=Le(lR,null);if(e!==null)return{adapter:BB,context:e}}function e1(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:So}=K_(),hh="vueuc-style";function t1(e){return e&-e}class LB{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=t1(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?zv("lazy-teleport",this.$slots):u(cc,{disabled:this.disabled,to:this.mergedTo},zv("lazy-teleport",this.$slots)):null}}),nd={top:"bottom",bottom:"top",left:"right",right:"left"},r1={start:"end",center:"center",end:"start"},pp={top:"height",bottom:"height",left:"width",right:"width"},NB={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},HB={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},jB={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},o1={top:!0,bottom:!1,left:!0,right:!1},i1={top:"end",bottom:"start",left:"end",right:"start"};function VB(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(p,v,b)=>{let g=0,m=0;const y=n[p]-t[v]-t[p];return y>0&&r&&(b?m=o1[v]?y:-y:g=o1[v]?y:-y),{left:g,top:m}},f=a==="left"||a==="right";if(s!=="center"){const p=jB[e],v=nd[p],b=pp[p];if(n[b]>t[b]){if(t[p]+t[b]t[v]&&(s=r1[l])}else{const p=a==="bottom"||a==="top"?"left":"top",v=nd[p],b=pp[p],g=(n[b]-t[b])/2;(t[p]t[v]?(s=i1[p],c=d(b,p,f)):(s=i1[v],c=d(b,v,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Or=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=lt(()=>e.enabled!==void 0?e.enabled:e.show),r=F(null),o=F(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};It(()=>{n.value&&(s(),i())});const l=Vi();KB.mount({id:"vueuc/binder",head:!0,anchorMetaName:hh,ssr:l}),Bt(()=>{a()}),fh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const p=t.targetRef,{x:v,y:b,overlap:g}=e,m=v!==void 0&&b!==void 0?PB(v,b):fp(p);h.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:_}=e;h.setAttribute("v-placement",x),g?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:k}=h;y==="target"?k.width=`${m.width}px`:y!==void 0?k.width=y:k.width="",C==="target"?k.minWidth=`${m.width}px`:C!==void 0?k.minWidth=C:k.minWidth="";const T=fp(h),$=fp(o.value),{left:R,top:D,placement:z}=VB(x,m,T,w,_,g),A=WB(z,g),{left:L,top:j,transform:E}=UB(z,$,m,D,R,g);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(D)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};it(n,h=>{h?(i(),c()):a()});const c=()=>{Rt().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{it(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{it(xe(e,h),c)}),it(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Hn(),f=lt(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(mc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?un(n,[[gc,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var $a=[],qB=function(){return $a.some(function(e){return e.activeTargets.length>0})},YB=function(){return $a.some(function(e){return e.skippedTargets.length>0})},a1="ResizeObserver loop completed with undelivered notifications.",GB=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:a1}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=a1),window.dispatchEvent(e)},Gs;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gs||(Gs={}));var Ta=function(e){return Object.freeze(e)},XB=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ta(this)}return e}(),sR=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ta(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Nb=function(e){return e instanceof SVGElement&&"getBBox"in e},cR=function(e){if(Nb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},l1=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ZB=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$s=typeof window<"u"?window:{},rd=new WeakMap,s1=/auto|scroll/,QB=/^tb|vertical/,JB=/msie|trident/i.test($s.navigator&&$s.navigator.userAgent),ho=function(e){return parseFloat(e||"0")},kl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new XB((n?t:e)||0,(n?e:t)||0)},c1=Ta({devicePixelContentBoxSize:kl(),borderBoxSize:kl(),contentBoxSize:kl(),contentRect:new sR(0,0,0,0)}),dR=function(e,t){if(t===void 0&&(t=!1),rd.has(e)&&!t)return rd.get(e);if(cR(e))return rd.set(e,c1),c1;var n=getComputedStyle(e),r=Nb(e)&&e.ownerSVGElement&&e.getBBox(),o=!JB&&n.boxSizing==="border-box",i=QB.test(n.writingMode||""),a=!r&&s1.test(n.overflowY||""),l=!r&&s1.test(n.overflowX||""),s=r?0:ho(n.paddingTop),c=r?0:ho(n.paddingRight),d=r?0:ho(n.paddingBottom),f=r?0:ho(n.paddingLeft),h=r?0:ho(n.borderTopWidth),p=r?0:ho(n.borderRightWidth),v=r?0:ho(n.borderBottomWidth),b=r?0:ho(n.borderLeftWidth),g=f+c,m=s+d,y=b+p,C=h+v,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,_=o?g+y:0,k=o?m+C:0,T=r?r.width:ho(n.width)-_-w,$=r?r.height:ho(n.height)-k-x,R=T+g+w+y,D=$+m+x+C,z=Ta({devicePixelContentBoxSize:kl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:kl(R,D,i),contentBoxSize:kl(T,$,i),contentRect:new sR(f,s,T,$)});return rd.set(e,z),z},uR=function(e,t,n){var r=dR(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Gs.DEVICE_PIXEL_CONTENT_BOX:return a;case Gs.BORDER_BOX:return o;default:return i}},e6=function(){function e(t){var n=dR(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ta([n.borderBoxSize]),this.contentBoxSize=Ta([n.contentBoxSize]),this.devicePixelContentBoxSize=Ta([n.devicePixelContentBoxSize])}return e}(),fR=function(e){if(cR(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},t6=function(){var e=1/0,t=[];$a.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new e6(c.target),f=fR(c.target);l.push(d),c.lastReportedSize=uR(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},n6=function(){var e=0;for(d1(e);qB();)e=t6(),d1(e);return YB()&&GB(),e>0},vp,hR=[],r6=function(){return hR.splice(0).forEach(function(e){return e()})},o6=function(e){if(!vp){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return r6()}).observe(n,r),vp=function(){n.textContent="".concat(t?t--:t++)}}hR.push(e),vp()},i6=function(e){o6(function(){requestAnimationFrame(e)})},Ad=0,a6=function(){return!!Ad},l6=250,s6={attributes:!0,characterData:!0,childList:!0,subtree:!0},u1=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],f1=function(e){return e===void 0&&(e=0),Date.now()+e},gp=!1,c6=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=l6),!gp){gp=!0;var r=f1(t);i6(function(){var o=!1;try{o=n6()}finally{if(gp=!1,t=r-f1(),!a6())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,s6)};document.body?n():$s.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),u1.forEach(function(n){return $s.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),u1.forEach(function(n){return $s.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Dv=new c6,h1=function(e){!Ad&&e>0&&Dv.start(),Ad+=e,!Ad&&Dv.stop()},d6=function(e){return!Nb(e)&&!ZB(e)&&getComputedStyle(e).display==="inline"},u6=function(){function e(t,n){this.target=t,this.observedBox=n||Gs.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=uR(this.target,this.observedBox,!0);return d6(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),f6=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),od=new WeakMap,p1=function(e,t){for(var n=0;n=0&&(i&&$a.splice($a.indexOf(r),1),r.observationTargets.splice(o,1),h1(-1))},e.disconnect=function(t){var n=this,r=od.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),h6=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");id.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");id.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!l1(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");id.unobserve(this,t)},e.prototype.disconnect=function(){id.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class p6{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||h6)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Vu=new p6,jr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Jo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}It(()=>{const o=n.$el;if(o===void 0){e1("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){e1("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Vu.registerHandler(o.nextElementSibling,r),t=!0)}),Bt(()=>{t&&Vu.unregisterHandler(n.$el.nextElementSibling)})},render(){return db(this.$slots,"default")}});let ad;function v6(){return ad===void 0&&("matchMedia"in window?ad=window.matchMedia("(pointer:coarse)").matches:ad=!1),ad}let mp;function v1(){return mp===void 0&&(mp="chrome"in window?window.devicePixelRatio:1),mp}const g6=So(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[So("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[So("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),qo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Vi();g6.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:hh,ssr:t}),It(()=>{const{defaultScrollIndex:D,defaultScrollKey:z}=e;D!=null?v({index:D}):z!=null&&v({key:z})});let n=!1,r=!1;lb(()=>{if(n=!1,!r){r=!0;return}v({top:f.value,left:d})}),lc(()=>{n=!0,r||(r=!0)});const o=P(()=>{const D=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{D.set(A[z],L)}),D}),i=F(null),a=F(void 0),l=new Map,s=P(()=>{const{items:D,itemSize:z,keyField:A}=e,L=new LB(D.length,z);return D.forEach((j,E)=>{const W=j[A],K=l.get(W);K!==void 0&&L.add(E,K)}),L}),c=F(0);let d=0;const f=F(0),h=lt(()=>Math.max(s.value.getBound(f.value-hn(e.paddingTop))-1,0)),p=P(()=>{const{value:D}=a;if(D===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(D/A+1),z.length-1),E=[];for(let W=L;W<=j;++W)E.push(z[W]);return E}),v=(D,z)=>{if(typeof D=="number"){y(D,z,"auto");return}const{left:A,top:L,index:j,key:E,position:W,behavior:K,debounce:Q=!0}=D;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)m(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&m(V,K,Q)}else W==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):W==="top"&&y(0,0,K)};let b,g=null;function m(D,z,A){const{value:L}=s,j=L.sum(D)+hn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=D,g!==null&&window.clearTimeout(g),g=window.setTimeout(()=>{b=void 0,g=null},16);const{scrollTop:E,offsetHeight:W}=i.value;if(j>E){const K=L.get(D);j+K<=E+W||i.value.scrollTo({left:0,top:j+K-W,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(D,z,A){i.value.scrollTo({left:D,top:z,behavior:A})}function C(D,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,W=o.value.get(D),K=E.get(W),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(D):l.set(D,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(W,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(W);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Wee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!v6();let w=!1;function _(D){var z;(z=e.onScroll)===null||z===void 0||z.call(e,D),(!x||!w)&&$()}function k(D){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,D),x){const A=i.value;if(A!=null){if(D.deltaX===0&&(A.scrollTop===0&&D.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&D.deltaY>=0))return;D.preventDefault(),A.scrollTop+=D.deltaY/v1(),A.scrollLeft+=D.deltaX/v1(),$(),w=!0,Ma(()=>{w=!1})}}}function T(D){if(n||R(D.target)||D.contentRect.height===a.value)return;a.value=D.contentRect.height;const{onResize:z}=e;z!==void 0&&z(D)}function $(){const{value:D}=i;D!=null&&(f.value=D.scrollTop,d=D.scrollLeft)}function R(D){let z=D;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:D}=e,z=yn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:D?"":z,minHeight:D?z:"",paddingTop:yn(e.paddingTop),paddingBottom:yn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${yn(s.value.sum(h.value))})`})),viewportItems:p,listElRef:i,itemsElRef:F(null),scrollTo:v,handleListResize:T,handleListScroll:_,handleListWheel:k,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(jr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Gn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(jr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),m6=So(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[So("&::-webkit-scrollbar",{width:0,height:0})]),b6=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=F(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let _=y;_>=0;--_){const k=g-1-_;w!==void 0?w(k):c.textContent=`${k}`;const T=c.offsetWidth;if(v-=h[_],v+T<=f||_===0){b=!0,y=_-1,p&&(y===-1?(p.style.maxWidth=`${f-T}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");break}}}}const{onUpdateOverflow:m}=e;b?m!==void 0&&m(!0):(m!==void 0&&m(!1),c.setAttribute(ta,""))}const i=Vi();return y6.mount({id:"vueuc/overflow",head:!0,anchorMetaName:hh,ssr:i}),It(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return Rt(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[db(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function pR(e){return e instanceof HTMLElement}function vR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(pR(n)&&(mR(n)||gR(n)))return!0}return!1}function mR(e){if(!x6(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function x6(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ts=[];const Hb=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Tr(),n=F(null),r=F(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ts[ts.length-1]===t}function s(g){var m;g.code==="Escape"&&l()&&((m=e.onEsc)===null||m===void 0||m.call(e,g))}It(()=>{it(()=>e.active,g=>{g?(f(),_t("keydown",document,s)):(Ct("keydown",document,s),o&&h())},{immediate:!0})}),Bt(()=>{Ct("keydown",document,s),o&&h()});function c(g){if(!i&&l()){const m=d();if(m===null||m.contains(vr(g)))return;p("first")}}function d(){const g=n.value;if(g===null)return null;let m=g;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function f(){var g;if(!e.disabled){if(ts.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?p("first"):(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var g;if(e.disabled||(document.removeEventListener("focus",c,!0),ts=ts.filter(y=>y!==t),l()))return;const{finalFocusTo:m}=e;m!==void 0?(g=n1(m))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(g){if(!!l()&&e.active){const m=n.value,y=r.value;if(m!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const x=g==="first"?vR(C):gR(C);i=!1,x||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function v(g){if(i)return;const m=d();m!==null&&(g.relatedTarget!==null&&m.contains(g.relatedTarget)?p("last"):p("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?p("last"):p("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:v,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u(Ot,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function ph(e,t){t&&(It(()=>{const{value:n}=e;n&&Vu.registerHandler(n,t)}),Bt(()=>{const{value:n}=e;n&&Vu.unregisterHandler(n)}))}let ll=0,m1="",b1="",y1="",x1="";const Iv=F("0px");function bR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=m1,t.style.overflow=b1,t.style.overflowX=y1,t.style.overflowY=x1,Iv.value="0px"};It(()=>{n=it(e,i=>{if(i){if(!ll){const a=window.innerWidth-t.offsetWidth;a>0&&(m1=t.style.marginRight,t.style.marginRight=`${a}px`,Iv.value=`${a}px`),b1=t.style.overflow,y1=t.style.overflowX,x1=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,ll++}else ll--,ll||o(),r=!1},{immediate:!0})}),Bt(()=>{n==null||n(),r&&(ll--,ll||o(),r=!1)})}const jb=F(!1),w1=()=>{jb.value=!0},C1=()=>{jb.value=!1};let ns=0;const yR=()=>(lr&&(Qo(()=>{ns||(window.addEventListener("compositionstart",w1),window.addEventListener("compositionend",C1)),ns++}),Bt(()=>{ns<=1?(window.removeEventListener("compositionstart",w1),window.removeEventListener("compositionend",C1),ns=0):ns--})),jb);function Vb(e){const t={isDeactivated:!1};let n=!1;return lb(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),lc(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function S1(e){return e.nodeName==="#document"}const Wu="n-form-item";function Sn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Wu,null);ot(Wu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Bt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var w6=typeof global=="object"&&global&&global.Object===Object&&global;const xR=w6;var C6=typeof self=="object"&&self&&self.Object===Object&&self,S6=xR||C6||Function("return this")();const Gr=S6;var k6=Gr.Symbol;const Fi=k6;var wR=Object.prototype,_6=wR.hasOwnProperty,R6=wR.toString,rs=Fi?Fi.toStringTag:void 0;function P6(e){var t=_6.call(e,rs),n=e[rs];try{e[rs]=void 0;var r=!0}catch{}var o=R6.call(e);return r&&(t?e[rs]=n:delete e[rs]),o}var $6=Object.prototype,T6=$6.toString;function O6(e){return T6.call(e)}var z6="[object Null]",M6="[object Undefined]",k1=Fi?Fi.toStringTag:void 0;function Wa(e){return e==null?e===void 0?M6:z6:k1&&k1 in Object(e)?P6(e):O6(e)}function Ai(e){return e!=null&&typeof e=="object"}var D6="[object Symbol]";function vh(e){return typeof e=="symbol"||Ai(e)&&Wa(e)==D6}function CR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=vE)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yE(e){return function(){return e}}var xE=function(){try{var e=Ka(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ku=xE;var wE=Ku?function(e,t){return Ku(e,"toString",{configurable:!0,enumerable:!1,value:yE(t),writable:!0})}:Wb;const CE=wE;var SE=bE(CE);const kE=SE;var _E=9007199254740991,RE=/^(?:0|[1-9]\d*)$/;function Kb(e,t){var n=typeof e;return t=t==null?_E:t,!!t&&(n=="number"||n!="symbol"&&RE.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=DE}function Nl(e){return e!=null&&Yb(e.length)&&!Ub(e)}function IE(e,t,n){if(!Wr(n))return!1;var r=typeof t;return(r=="number"?Nl(n)&&Kb(t,n.length):r=="string"&&t in n)?bc(n[t],e):!1}function FE(e){return ME(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&IE(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function QL(e,t){var n=this.__data__,r=gh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ti(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:C8(e,t,n)}var k8="\\ud800-\\udfff",_8="\\u0300-\\u036f",R8="\\ufe20-\\ufe2f",P8="\\u20d0-\\u20ff",$8=_8+R8+P8,T8="\\ufe0e\\ufe0f",O8="\\u200d",z8=RegExp("["+O8+k8+$8+T8+"]");function IR(e){return z8.test(e)}function M8(e){return e.split("")}var FR="\\ud800-\\udfff",D8="\\u0300-\\u036f",I8="\\ufe20-\\ufe2f",F8="\\u20d0-\\u20ff",A8=D8+I8+F8,B8="\\ufe0e\\ufe0f",E8="["+FR+"]",Av="["+A8+"]",Bv="\\ud83c[\\udffb-\\udfff]",L8="(?:"+Av+"|"+Bv+")",AR="[^"+FR+"]",BR="(?:\\ud83c[\\udde6-\\uddff]){2}",ER="[\\ud800-\\udbff][\\udc00-\\udfff]",N8="\\u200d",LR=L8+"?",NR="["+B8+"]?",H8="(?:"+N8+"(?:"+[AR,BR,ER].join("|")+")"+NR+LR+")*",j8=NR+LR+H8,V8="(?:"+[AR+Av+"?",Av,BR,ER,E8].join("|")+")",W8=RegExp(Bv+"(?="+Bv+")|"+V8+j8,"g");function U8(e){return e.match(W8)||[]}function K8(e){return IR(e)?U8(e):M8(e)}function q8(e){return function(t){t=Ba(t);var n=IR(t)?K8(t):void 0,r=n?n[0]:t.charAt(0),o=n?S8(n,1).join(""):t.slice(1);return r[e]()+o}}var Y8=q8("toUpperCase");const HR=Y8;function G8(e){return HR(Ba(e).toLowerCase())}function X8(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&SH?new Xu:void 0;for(i.set(e,t),i.set(t,e);++f=t||k<0||f&&T>=i}function m(){var _=wp();if(g(_))return y(_);l=setTimeout(m,b(_))}function y(_){return l=void 0,h&&r?p(_):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(wp())}function w(){var _=wp(),k=g(_);if(r=arguments,o=this,s=_,k){if(l===void 0)return v(s);if(f)return clearTimeout(l),l=setTimeout(m,t),p(s)}return l===void 0&&(l=setTimeout(m,t)),a}return w.cancel=C,w.flush=x,w}function Hv(e,t,n){(n!==void 0&&!bc(e[t],n)||n===void 0&&!(t in e))&&qb(e,t,n)}function y7(e){return Ai(e)&&Nl(e)}function jv(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function x7(e){return OE(e,TR(e))}function w7(e,t,n,r,o,i,a){var l=jv(e,n),s=jv(t,n),c=a.get(s);if(c){Hv(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Vr(s),p=!h&&Yu(s),v=!h&&!p&&Xb(s);d=s,h||p||v?Vr(l)?d=l:y7(l)?d=pE(l):p?(f=!1,d=XN(s,!0)):v?(f=!1,d=vH(s,!0)):d=[]:w8(s)||qu(s)?(d=l,qu(l)?d=x7(l):(!Wr(l)||Ub(l))&&(d=gH(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Hv(e,n,d)}function l2(e,t,n,r,o){e!==t&&a2(t,function(i,a){if(o||(o=new Ro),Wr(i))w7(e,t,a,n,l2,r,o);else{var l=r?r(jv(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Hv(e,a,l)}},TR)}function C7(e,t){var n=-1,r=Nl(e)?Array(e.length):[];return h7(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function S7(e,t){var n=Vr(e)?CR:C7;return n(e,l7(t))}var k7=t2(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const s2=k7;var _7=FE(function(e,t,n){l2(e,t,n)});const bl=_7;var R7=jN("round");const P7=R7;var $7="Expected a function";function Os(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError($7);return Wr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),b7(e,t,{leading:r,maxWait:t,trailing:o})}const mr={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:T7,fontFamily:O7,lineHeight:z7}=mr,c2=O("body",` - margin: 0; - font-size: ${T7}; - font-family: ${O7}; - line-height: ${z7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Ur="n-config-provider",Ol="naive-ui-style";function Se(e,t,n,r,o,i){const a=Vi(),l=Le(Ur,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Ol,ssr:a}),l!=null&&l.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:a})};a?c():Qo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:p={},builtinThemeOverrides:v={}}=o,{common:b,peers:g}=p,{common:m=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:_={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:k,peers:T={}}=_,$=bl({},d||y||m||r.common,w,k,b),R=bl((c=f||C||r.self)===null||c===void 0?void 0:c($),v,_,p);return{common:$,self:R,peers:bl({},r.peers,x,h),peerOverrides:bl({},v.peers,T,g)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const d2="n";function je(e={},t={defaultBordered:!0}){const n=Le(Ur,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||d2),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const M7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},D7=M7;function Cp(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function yt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function wt(e){yt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Bd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Jt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var I7={};function qa(){return I7}function Ea(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=wt(e),p=h.getUTCDay(),v=(p1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?A7(l,function(f){return f.test(a)}):F7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function F7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function A7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var E7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L7=function(t,n,r){var o,i=E7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const N7=L7;var H7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},j7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W7={date:Cp({formats:H7,defaultWidth:"full"}),time:Cp({formats:j7,defaultWidth:"full"}),dateTime:Cp({formats:V7,defaultWidth:"full"})};const U7=W7;var K7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},q7=function(t,n,r,o){return K7[t]};const Y7=q7;var G7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},X7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Z7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Q7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},J7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},e9={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},t9=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},n9={ordinalNumber:t9,era:os({values:G7,defaultWidth:"wide"}),quarter:os({values:X7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:os({values:Z7,defaultWidth:"wide"}),day:os({values:Q7,defaultWidth:"wide"}),dayPeriod:os({values:J7,defaultWidth:"wide",formattingValues:e9,defaultFormattingWidth:"wide"})};const r9=n9;var o9=/^(\d+)(th|st|nd|rd)?/i,i9=/\d+/i,a9={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l9={any:[/^b/i,/^(a|c)/i]},s9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c9={any:[/1/i,/2/i,/3/i,/4/i]},d9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f9={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},h9={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p9={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},v9={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g9={ordinalNumber:B7({matchPattern:o9,parsePattern:i9,valueCallback:function(t){return parseInt(t,10)}}),era:is({matchPatterns:a9,defaultMatchWidth:"wide",parsePatterns:l9,defaultParseWidth:"any"}),quarter:is({matchPatterns:s9,defaultMatchWidth:"wide",parsePatterns:c9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:is({matchPatterns:d9,defaultMatchWidth:"wide",parsePatterns:u9,defaultParseWidth:"any"}),day:is({matchPatterns:f9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:p9,defaultMatchWidth:"any",parsePatterns:v9,defaultParseWidth:"any"})};const m9=g9;var b9={code:"en-US",formatDistance:N7,formatLong:U7,formatRelative:Y7,localize:r9,match:m9,options:{weekStartsOn:0,firstWeekContainsDate:1}};const yh=b9,y9={name:"en-US",locale:yh},x9=y9;function sd(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Fn(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function w9(e,t){yt(2,arguments);var n=wt(e).getTime(),r=Jt(t);return new Date(n+r)}function Zu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function zl(e){yt(1,arguments);var t=wt(e);return t.setHours(0,0,0,0),t}function C9(e,t){yt(2,arguments);var n=Jt(t),r=n*3;return Fn(e,r)}function Vv(e,t){yt(2,arguments);var n=Jt(t);return Fn(e,n*12)}function S9(e,t){yt(2,arguments);var n=wt(e),r=wt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var k9=6e4,_9=36e5,R9=1e3;function P9(e,t){yt(2,arguments);var n=zl(e),r=zl(t);return n.getTime()===r.getTime()}function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function $9(e){return yt(1,arguments),e instanceof Date||Ed(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Er(e){if(yt(1,arguments),!$9(e)&&typeof e!="number")return!1;var t=wt(e);return!isNaN(Number(t))}function T9(e){yt(1,arguments);var t=wt(e),n=Math.floor(t.getMonth()/3)+1;return n}function O9(e){yt(1,arguments);var t=wt(e);return t.setSeconds(0,0),t}function Js(e){yt(1,arguments);var t=wt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Fr(e){yt(1,arguments);var t=wt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function t0(e){yt(1,arguments);var t=wt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function u2(e,t){yt(2,arguments);var n=Jt(t);return w9(e,-n)}var z9=864e5;function M9(e){yt(1,arguments);var t=wt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/z9)+1}function Ml(e){yt(1,arguments);var t=1,n=wt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function D9(e){yt(1,arguments);var t=f2(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ml(n);return r}var I9=6048e5;function h2(e){yt(1,arguments);var t=wt(e),n=Ml(t).getTime()-D9(t).getTime();return Math.round(n/I9)+1}function n0(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=wt(e),f=d.getUTCFullYear(),h=qa(),p=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,p),v.setUTCHours(0,0,0,0);var b=Ea(v,t),g=new Date(0);g.setUTCFullYear(f,0,p),g.setUTCHours(0,0,0,0);var m=Ea(g,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=m.getTime()?f:f-1}function F9(e,t){var n,r,o,i,a,l,s,c;yt(1,arguments);var d=qa(),f=Jt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=n0(e,t),p=new Date(0);p.setUTCFullYear(h,0,f),p.setUTCHours(0,0,0,0);var v=Ea(p,t);return v}var A9=6048e5;function p2(e,t){yt(1,arguments);var n=wt(e),r=Ea(n,t).getTime()-F9(n,t).getTime();return Math.round(r/A9)+1}function tn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tn(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tn(r+1,2)},d:function(t,n){return tn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tn(t.getUTCHours(),n.length)},m:function(t,n){return tn(t.getUTCMinutes(),n.length)},s:function(t,n){return tn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return tn(i,n.length)}};const fi=B9;var sl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},E9={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return fi.y(t,n)},Y:function(t,n,r,o){var i=n0(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return tn(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):tn(a,n.length)},R:function(t,n){var r=f2(t);return tn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tn(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return tn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return tn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return fi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return tn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=p2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tn(i,n.length)},I:function(t,n,r){var o=h2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):tn(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):fi.d(t,n)},D:function(t,n,r){var o=M9(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):tn(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return tn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return tn(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return tn(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=sl.noon:o===0?i=sl.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=sl.evening:o>=12?i=sl.afternoon:o>=4?i=sl.morning:i=sl.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return fi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):fi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):tn(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):fi.s(t,n)},S:function(t,n){return fi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return ow(a);case"XXXX":case"XX":return da(a);case"XXXXX":case"XXX":default:return da(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return ow(a);case"xxxx":case"xx":return da(a);case"xxxxx":case"xxx":default:return da(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+rw(a,":");case"OOOO":default:return"GMT"+da(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+rw(a,":");case"zzzz":default:return"GMT"+da(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return tn(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return tn(a,n.length)}};function rw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+tn(i,2)}function ow(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tn(Math.abs(e)/60,2)}return da(e,t)}function da(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=tn(Math.floor(o/60),2),a=tn(o%60,2);return r+i+n+a}const L9=E9;var iw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},v2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},N9=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return iw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",iw(o,n)).replace("{{time}}",v2(i,n))},H9={p:v2,P:N9};const Wv=H9;var j9=["D","DD"],V9=["YY","YYYY"];function g2(e){return j9.indexOf(e)!==-1}function m2(e){return V9.indexOf(e)!==-1}function Qu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K9=/^'([^]*?)'?$/,q9=/''/g,Y9=/[a-zA-Z]/;function on(e,t,n){var r,o,i,a,l,s,c,d,f,h,p,v,b,g,m,y,C,x;yt(2,arguments);var w=String(t),_=qa(),k=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:yh,T=Jt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:_.firstWeekContainsDate)!==null&&a!==void 0?a:(f=_.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Jt((p=(v=(b=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(m=n.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:_.weekStartsOn)!==null&&v!==void 0?v:(C=_.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var R=wt(e);if(!Er(R))throw new RangeError("Invalid time value");var D=Zu(R),z=u2(R,D),A={firstWeekContainsDate:T,weekStartsOn:$,locale:k,_originalDate:R},L=w.match(U9).map(function(j){var E=j[0];if(E==="p"||E==="P"){var W=Wv[E];return W(j,k.formatLong)}return j}).join("").match(W9).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return G9(j);var W=L9[E];if(W)return!(n!=null&&n.useAdditionalWeekYearTokens)&&m2(j)&&Qu(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&g2(j)&&Qu(j,t,String(e)),W(z,j,k.localize,A);if(E.match(Y9))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function G9(e){var t=e.match(K9);return t?t[1].replace(q9,"'"):e}function r0(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function X9(e){return r0({},e)}var aw=1e3*60,Ju=60*24,lw=Ju*30,sw=Ju*365;function Z9(e,t,n){var r,o,i;yt(2,arguments);var a=qa(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:yh;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=S9(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=r0(X9(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=wt(t),f=wt(e)):(d=wt(e),f=wt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),p;if(h==="floor")p=Math.floor;else if(h==="ceil")p=Math.ceil;else if(h==="round")p=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=f.getTime()-d.getTime(),b=v/aw,g=Zu(f)-Zu(d),m=(v-g)/aw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function o0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hj=function(e){cj(n,e);var t=dj(n);function n(){var r;lj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function S2(e){return e%400===0||e%4===0&&e%100!==0}function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xj=function(e){gj(n,e);var t=mj(n);function n(){var r;pj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=C2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jd=function(n){return typeof n}:jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jd(e)}function wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function mw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=function(e){Sj(n,e);var t=kj(n);function n(){var r;wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=n0(o,l);if(a.isTwoDigitYear){var c=C2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ea(o,l)}}]),n}(Zt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function yw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ij=function(e){Oj(n,e);var t=zj(n);function n(){var r;$j(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function ww(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hj=function(e){Bj(n,e);var t=Ej(n);function n(){var r;Fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function Sw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj=function(e){Wj(n,e);var t=Uj(n);function n(){var r;jj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function _w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tV=function(e){Zj(n,e);var t=Qj(n);function n(){var r;Gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function nV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sV=function(e){oV(n,e);var t=iV(n);function n(){var r;nV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Yd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yd=function(n){return typeof n}:Yd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yd(e)}function cV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function Tw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vV=function(e){uV(n,e);var t=fV(n);function n(){var r;cV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function gV(e,t,n){yt(2,arguments);var r=wt(e),o=Jt(t),i=p2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gd=function(n){return typeof n}:Gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gd(e)}function mV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ow(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SV=function(e){yV(n,e);var t=xV(n);function n(){var r;mV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Ea(gV(o,a,l),l)}}]),n}(Zt);function kV(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=h2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function Dw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zV=function(e){PV(n,e);var t=$V(n);function n(){var r;_V(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Ml(kV(o,a))}}]),n}(Zt);function Zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zd=function(n){return typeof n}:Zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zd(e)}function MV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EV=[31,28,31,30,31,30,31,31,30,31,30,31],LV=[31,29,31,30,31,30,31,31,30,31,30,31],NV=function(e){IV(n,e);var t=FV(n);function n(){var r;MV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=LV[s]:i>=1&&i<=EV[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function HV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function kp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qV=function(e){VV(n,e);var t=WV(n);function n(){var r;HV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function l0(e,t,n){var r,o,i,a,l,s,c,d;yt(2,arguments);var f=qa(),h=Jt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wt(e),v=Jt(t),b=p.getUTCDay(),g=v%7,m=(g+7)%7,y=(m"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function Bw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eW=function(e){XV(n,e);var t=ZV(n);function n(){var r;YV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function tW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ew(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function Lw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lW=function(e){rW(n,e);var t=oW(n);function n(){var r;tW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function sW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pW=function(e){dW(n,e);var t=uW(n);function n(){var r;sW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=l0(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function vW(e,t){yt(2,arguments);var n=Jt(t);n%7===0&&(n=n-7);var r=1,o=wt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function Vw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CW=function(e){bW(n,e);var t=yW(n);function n(){var r;gW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=vW(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Zt);function iu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iu=function(n){return typeof n}:iu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iu(e)}function SW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ww(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TW=function(e){_W(n,e);var t=RW(n);function n(){var r;SW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AW=function(e){MW(n,e);var t=DW(n);function n(){var r;OW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Gw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VW=function(e){LW(n,e);var t=NW(n);function n(){var r;BW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function Zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XW=function(e){KW(n,e);var t=qW(n);function n(){var r;WW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function cu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cu=function(n){return typeof n}:cu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cu(e)}function ZW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function Jw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rU=function(e){JW(n,e);var t=eU(n);function n(){var r;ZW(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function oU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}function tC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dU=function(e){aU(n,e);var t=lU(n);function n(){var r;oU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Zt);function uu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uu=function(n){return typeof n}:uu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uu(e)}function uU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}function rC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e){hU(n,e);var t=pU(n);function n(){var r;uU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Zt);function fu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fu=function(n){return typeof n}:fu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fu(e)}function bU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function iC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=function(e){xU(n,e);var t=wU(n);function n(){var r;bU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Zt);function hu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(n){return typeof n}:hu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hu(e)}function _U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function lC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=function(e){PU(n,e);var t=$U(n);function n(){var r;_U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Zt);function pu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pu=function(n){return typeof n}:pu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pu(e)}function MU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sC(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zf(e)}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EU=function(e){IU(n,e);var t=FU(n);function n(){var r;MU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function uC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UU=function(e){HU(n,e);var t=jU(n);function n(){var r;LU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}function hC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QU=function(e){YU(n,e);var t=GU(n);function n(){var r;KU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function vC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iK=function(e){tK(n,e);var t=nK(n);function n(){var r;JU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}function mC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fK=function(e){sK(n,e);var t=cK(n);function n(){var r;aK(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=pK(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function pK(e,t){if(!!e){if(typeof e=="string")return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(e,t)}}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Jt((v=(b=(g=(m=r==null?void 0:r.weekStartsOn)!==null&&m!==void 0?m:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&g!==void 0?g:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return _===""?wt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:D,locale:$},A=[new oj],L=k.match(gK).map(function(Oe){var _e=Oe[0];if(_e in Wv){var ve=Wv[_e];return ve(Oe,$.formatLong)}return Oe}).join("").match(vK),j=[],E=bC(L),W;try{var K=function(){var _e=W.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&m2(_e)&&Qu(_e,k,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&g2(_e)&&Qu(_e,k,e);var ve=_e[0],Me=hK[ve];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var U=j.find(function(ce){return H.includes(ce.token)||ce.token===ve});if(U)throw new RangeError("The format string mustn't contain `".concat(U.fullToken,"` and `").concat(_e,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(_e,"` and any other token at the same time"));j.push({token:ve,fullToken:_e});var Y=Me.run(_,_e,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),_=Y.rest}else{if(ve.match(xK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");if(_e==="''"?_e="'":ve==="'"&&(_e=CK(_e)),_.indexOf(_e)===0)_=_.slice(_e.length);else return{v:new Date(NaN)}}};for(E.s();!(W=E.n()).done;){var Q=K();if(yu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(_.length>0&&yK.test(_))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,_e){return _e-Oe}).filter(function(Oe,_e,ve){return ve.indexOf(Oe)===_e}).map(function(Oe){return A.filter(function(_e){return _e.priority===Oe}).sort(function(_e,ve){return ve.subPriority-_e.subPriority})}).map(function(Oe){return Oe[0]}),re=wt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=u2(re,Zu(re)),ue={},de=bC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],r0(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function CK(e){return e.match(mK)[1].replace(bK,"'")}function SK(e){yt(1,arguments);var t=wt(e);return t.setMinutes(0,0,0),t}function xh(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function k2(e,t){yt(2,arguments);var n=Js(e),r=Js(t);return n.getTime()===r.getTime()}function s0(e){yt(1,arguments);var t=wt(e);return t.setMilliseconds(0),t}function _2(e,t){yt(2,arguments);var n=wt(e),r=wt(t);return n.getFullYear()===r.getFullYear()}function c0(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=J9(a);return n.setMonth(r,Math.min(i,l)),n}function xu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xu=function(n){return typeof n}:xu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xu(e)}function Kn(e,t){if(yt(2,arguments),xu(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=wt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=c0(n,t.month)),t.date!=null&&n.setDate(Jt(t.date)),t.hours!=null&&n.setHours(Jt(t.hours)),t.minutes!=null&&n.setMinutes(Jt(t.minutes)),t.seconds!=null&&n.setSeconds(Jt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Jt(t.milliseconds)),n)}function na(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setHours(r),n}function _p(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setMinutes(r),n}function kK(e,t){yt(2,arguments);var n=wt(e),r=Jt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return c0(n,n.getMonth()+i*3)}function Rp(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return n.setSeconds(r),n}function xC(e,t){yt(2,arguments);var n=wt(e),r=Jt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Cn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Ur,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:D7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:x9}),localeRef:r}}function Xr(e,t,n){if(!t)return;const r=Vi(),o=Le(Ur,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||c2.mount({id:"n-global",head:!0,anchorMetaName:Ol,ssr:r})};r?i():Qo(i)}function R2(e,t){const n=Le(Ur,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function et(e,t,n,r){var o;n||Nn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Ur,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=F(""),l=Vi();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+="-"+p),h&&(f+="-"+h);const{themeOverrides:v,builtinThemeOverrides:b}=r;v&&(f+="-"+qs(JSON.stringify(v))),b&&(f+="-"+qs(JSON.stringify(b))),a.value=f,s=()=>{const g=n.value;let m="";for(const y in g)m+=`${y}: ${g[y]};`;O(`.${f}`,m).mount({id:f,ssr:l}),s=void 0}};return At(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function en(e,t,n){if(!t)return;const r=Vi(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{At(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(oB(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:Ol,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Qo(i),o}function _K(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function RK(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const PK=S("affix",[I("affixed",{position:"fixed"},[I("absolute-positioned",{position:"absolute"})])]),wh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},$K=Wn(wh),P2=J({name:"Affix",props:wh,setup(e){const{mergedClsPrefixRef:t}=je(e);Xr("-affix",PK,t);let n=null;const r=F(!1),o=F(!1),i=F(null),a=F(null),l=P(()=>o.value||r.value),s=P(()=>{var g,m;return(m=(g=e.triggerTop)!==null&&g!==void 0?g:e.offsetTop)!==null&&m!==void 0?m:e.top}),c=P(()=>{var g,m;return(m=(g=e.top)!==null&&g!==void 0?g:e.triggerTop)!==null&&m!==void 0?m:e.offsetTop}),d=P(()=>{var g,m;return(m=(g=e.bottom)!==null&&g!==void 0?g:e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom}),f=P(()=>{var g,m;return(m=(g=e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom)!==null&&m!==void 0?m:e.bottom}),h=F(null),p=()=>{const{target:g,listenTo:m}=e;g?n=g():m?n=Ob(m):n=document,n&&(n.addEventListener("scroll",v),v())};function v(){Ma(b)}function b(){const{value:g}=h;if(!n||!g)return;const m=_K(n);if(l.value){mi.value&&(o.value=!1,i.value=null);return}const y=RK(n),C=g.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,_=s.value,k=f.value;_!==void 0&&x<=_?(r.value=!0,a.value=m-(_-x)):(r.value=!1,a.value=null),k!==void 0&&w<=k?(o.value=!0,i.value=m+k-w):(o.value=!1,i.value=null)}return It(()=>{p()}),Bt(()=>{!n||n.removeEventListener("scroll",v)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const g={};return r.value&&s.value!==void 0&&c.value!==void 0&&(g.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(g.bottom=`${d.value}px`),g})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Dl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),$2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),TK=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Un(e,t){return J({name:HR(e),setup(){var n;const r=(n=Le(Ur,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const OK=Un("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Bi=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),wC=Un("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),d0=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),u0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ya=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),T2=Un("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),O2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),zK=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),MK=Un("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),DK=Un("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),IK=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ga=Un("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Ei=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Li=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),FK=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Ni=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Hi=Un("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),CC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),z2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),M2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Xa=Un("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),AK=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),BK=Un("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Wi=Un("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),EK=Un("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),D2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),LK=Un("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NK=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),HK=Un("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),jK=Un("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),VK=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),WK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),UK=Un("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),KK=Un("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),qK=Un("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),YK=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Do=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Hn();return()=>u(Ft,{name:"icon-switch-transition",appear:n.value},t)}}),Io=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?ah:Ft;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),GK=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),dt=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Xr("-base-icon",GK,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),XK=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[I("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),mt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),I("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),I("round",[O("&::before",` - border-radius: 50%; - `)])]),ri=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Xr("-base-close",XK,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(dt,{clsPrefix:t},{default:()=>u(T2,null)}))}}}),Fo=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:ZK}=mr;function On({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${ZK} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const QK=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[On()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),JK={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},so=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},JK),setup(e){Xr("-base-loading",QK,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(Do,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function SC(e){return Array.isArray(e)?e:[e]}const em={STOP:"STOP"};function I2(e,t){const n=t(e);e.children!==void 0&&n!==em.STOP&&e.children.forEach(r=>I2(r,t))}function eq(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function tq(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function nq(e){return e.children}function rq(e){return e.key}function oq(){return!1}function iq(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function aq(e){return e.disabled===!0}function lq(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Pp(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function $p(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function sq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function cq(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function dq(e){return(e==null?void 0:e.type)==="group"}function F2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class A2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function uq(e,t,n,r){return Af(t.concat(e),n,r,!1)}function fq(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function hq(e,t,n,r){const o=Af(t,n,r,!1),i=Af(e,n,r,!0),a=fq(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function Tp(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:sq(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:cq(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=hq(o,n,t,c):r!==void 0?f=uq(r,n,t,c):f=Af(n,t,c,!1);const h=s==="parent",p=s==="child"||l,v=f,b=new Set,g=Math.max.apply(null,Array.from(d.keys()));for(let m=g;m>=0;m-=1){const y=m===0,C=d.get(m);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:_}=x;if(p&&_&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&v.has(R.key)&&v.delete(R.key)}),x.disabled||!_)continue;let k=!0,T=!1,$=!0;for(const R of x.children){const D=R.key;if(!R.disabled){if($&&($=!1),v.has(D))T=!0;else if(b.has(D)){T=!0,k=!1;break}else if(k=!1,T)break}}k&&!$?(h&&x.children.forEach(R=>{!R.disabled&&v.has(R.key)&&v.delete(R.key)}),v.add(w)):T&&b.add(w),y&&p&&v.has(w)&&v.delete(w)}}return{checkedKeys:Array.from(v),indeterminateKeys:Array.from(b)}}function Af(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&I2(c,d=>{if(d.disabled)return em.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),lq(d.rawNode,i))){if(r)return em.STOP;if(!n)throw new A2}})}),l}function pq(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function vq(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function gq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function kC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?mq:gq,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=f0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=bq(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function mq(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function bq(e){return e.parent}function f0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=f0(c,t);if(d!==null)return d}else return c}}return null}const yq={getChild(){return this.ignored?null:f0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return kC(this,"next",e)},getPrev(e={}){return kC(this,"prev",e)}};function tm(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function xq(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function B2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=B2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function co(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=aq,getIgnored:a=oq,getIsGroup:l=dq,getKey:s=rq}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:nq,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return tq(this.rawNode,d)},get shallowLoaded(){return iq(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return xq(this,x)}},yq),h=B2(e,r,o,f,d);function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const _=v(x);return _?_.getPrev(w):null}function g(x,w){const _=v(x);return _?_.getNext(w):null}function m(x){const w=v(x);return w?w.getParent():null}function y(x){const w=v(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return tm(h,x)},getNode:p,getPrev:b,getNext:g,getParent:m,getChild:y,getFirstAvailableNode(){return vq(h)},getPath(x,w={}){return pq(x,w,C)},getCheckedKeys(x,w={}){const{cascade:_=!0,leafOnly:k=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return Tp({checkedKeys:Pp(x),indeterminateKeys:$p(x),cascade:_,leafOnly:k,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToCheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,_={}){const{cascade:k=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=_;return Tp({checkedKeys:Pp(w),indeterminateKeys:$p(w),keysToUncheck:x==null?[]:SC(x),cascade:k,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return eq(h,x)}};return C}const ut={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},wq=Tn(ut.neutralBase),E2=Tn(ut.neutralInvertBase),Cq="rgba("+E2.slice(0,3).join(", ")+", ";function Vt(e){return Cq+String(e)+")"}function Sq(e){const t=Array.from(E2);return t[3]=Number(e),pt(wq,t)}const kq=Object.assign(Object.assign({name:"common"},mr),{baseColor:ut.neutralBase,primaryColor:ut.primaryDefault,primaryColorHover:ut.primaryHover,primaryColorPressed:ut.primaryActive,primaryColorSuppl:ut.primarySuppl,infoColor:ut.infoDefault,infoColorHover:ut.infoHover,infoColorPressed:ut.infoActive,infoColorSuppl:ut.infoSuppl,successColor:ut.successDefault,successColorHover:ut.successHover,successColorPressed:ut.successActive,successColorSuppl:ut.successSuppl,warningColor:ut.warningDefault,warningColorHover:ut.warningHover,warningColorPressed:ut.warningActive,warningColorSuppl:ut.warningSuppl,errorColor:ut.errorDefault,errorColorHover:ut.errorHover,errorColorPressed:ut.errorActive,errorColorSuppl:ut.errorSuppl,textColorBase:ut.neutralTextBase,textColor1:Vt(ut.alpha1),textColor2:Vt(ut.alpha2),textColor3:Vt(ut.alpha3),textColorDisabled:Vt(ut.alpha4),placeholderColor:Vt(ut.alpha4),placeholderColorDisabled:Vt(ut.alpha5),iconColor:Vt(ut.alpha4),iconColorDisabled:Vt(ut.alpha5),iconColorHover:Vt(Number(ut.alpha4)*1.25),iconColorPressed:Vt(Number(ut.alpha4)*.8),opacity1:ut.alpha1,opacity2:ut.alpha2,opacity3:ut.alpha3,opacity4:ut.alpha4,opacity5:ut.alpha5,dividerColor:Vt(ut.alphaDivider),borderColor:Vt(ut.alphaBorder),closeIconColorHover:Vt(Number(ut.alphaClose)),closeIconColor:Vt(Number(ut.alphaClose)),closeIconColorPressed:Vt(Number(ut.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Vt(ut.alpha4),clearColorHover:kn(Vt(ut.alpha4),{alpha:1.25}),clearColorPressed:kn(Vt(ut.alpha4),{alpha:.8}),scrollbarColor:Vt(ut.alphaScrollbar),scrollbarColorHover:Vt(ut.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Vt(ut.alphaProgressRail),railColor:Vt(ut.alphaRail),popoverColor:ut.neutralPopover,tableColor:ut.neutralCard,cardColor:ut.neutralCard,modalColor:ut.neutralModal,bodyColor:ut.neutralBody,tagColor:Sq(ut.alphaTag),avatarColor:Vt(ut.alphaAvatar),invertedColor:ut.neutralBase,inputColor:Vt(ut.alphaInput),codeColor:Vt(ut.alphaCode),tabColor:Vt(ut.alphaTab),actionColor:Vt(ut.alphaAction),tableHeaderColor:Vt(ut.alphaAction),hoverColor:Vt(ut.alphaPending),tableColorHover:Vt(ut.alphaTablePending),tableColorStriped:Vt(ut.alphaTableStriped),pressedColor:Vt(ut.alphaPressed),opacityDisabled:ut.alphaDisabled,inputColorDisabled:Vt(ut.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),tt=kq,xt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},_q=Tn(xt.neutralBase),L2=Tn(xt.neutralInvertBase),Rq="rgba("+L2.slice(0,3).join(", ")+", ";function _C(e){return Rq+String(e)+")"}function er(e){const t=Array.from(L2);return t[3]=Number(e),pt(_q,t)}const Pq=Object.assign(Object.assign({name:"common"},mr),{baseColor:xt.neutralBase,primaryColor:xt.primaryDefault,primaryColorHover:xt.primaryHover,primaryColorPressed:xt.primaryActive,primaryColorSuppl:xt.primarySuppl,infoColor:xt.infoDefault,infoColorHover:xt.infoHover,infoColorPressed:xt.infoActive,infoColorSuppl:xt.infoSuppl,successColor:xt.successDefault,successColorHover:xt.successHover,successColorPressed:xt.successActive,successColorSuppl:xt.successSuppl,warningColor:xt.warningDefault,warningColorHover:xt.warningHover,warningColorPressed:xt.warningActive,warningColorSuppl:xt.warningSuppl,errorColor:xt.errorDefault,errorColorHover:xt.errorHover,errorColorPressed:xt.errorActive,errorColorSuppl:xt.errorSuppl,textColorBase:xt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:er(xt.alpha4),placeholderColor:er(xt.alpha4),placeholderColorDisabled:er(xt.alpha5),iconColor:er(xt.alpha4),iconColorHover:kn(er(xt.alpha4),{lightness:.75}),iconColorPressed:kn(er(xt.alpha4),{lightness:.9}),iconColorDisabled:er(xt.alpha5),opacity1:xt.alpha1,opacity2:xt.alpha2,opacity3:xt.alpha3,opacity4:xt.alpha4,opacity5:xt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:er(Number(xt.alphaClose)),closeIconColorHover:er(Number(xt.alphaClose)),closeIconColorPressed:er(Number(xt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:er(xt.alpha4),clearColorHover:kn(er(xt.alpha4),{lightness:.75}),clearColorPressed:kn(er(xt.alpha4),{lightness:.9}),scrollbarColor:_C(xt.alphaScrollbar),scrollbarColorHover:_C(xt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:er(xt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:xt.neutralPopover,tableColor:xt.neutralCard,cardColor:xt.neutralCard,modalColor:xt.neutralModal,bodyColor:xt.neutralBody,tagColor:"#eee",avatarColor:er(xt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:er(xt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:xt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),nt=Pq,$q={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},N2=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},$q),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},Tq={name:"Empty",common:nt,self:N2},oi=Tq,Oq={name:"Empty",common:tt,self:N2},Za=Oq,zq=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),H2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ui=J({name:"Empty",props:H2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Empty","-empty",zq,oi,e,t),{localeRef:o}=Cn("Empty"),i=Le(Ur,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(IK,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:p,textColor:v,iconColor:b,extraTextColor:g}}=r.value;return{"--n-icon-size":h,"--n-font-size":p,"--n-bezier":f,"--n-text-color":v,"--n-icon-color":b,"--n-extra-text-color":g}}),c=n?et("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(dt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),j2=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},Mq={name:"Scrollbar",common:nt,self:j2},br=Mq,Dq={name:"Scrollbar",common:tt,self:j2},yr=Dq,{cubicBezierEaseInOut:RC}=mr;function Yo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=RC,leaveCubicBezier:o=RC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Iq=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[I("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),I("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),I("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Yo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Fq=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),V2=J({name:"Scrollbar",props:Fq,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Scrollbar",r,t),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(null),b=F(null),g=F(0),m=F(0),y=F(!1),C=F(!1);let x=!1,w=!1,_,k,T=0,$=0,R=0,D=0;const z=SB(),A=P(()=>{const{value:X}=h,{value:q}=d,{value:ke}=v;return X===null||q===null||ke===null?0:Math.min(X,ke*X/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:X}=p,{value:q}=f,{value:ke}=b;return X===null||q===null||ke===null?0:ke*X/q+e.size*1.5}),E=P(()=>`${j.value}px`),W=P(()=>{const{value:X}=h,{value:q}=g,{value:ke}=d,{value:Be}=v;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${W.value}px`),Q=P(()=>{const{value:X}=p,{value:q}=m,{value:ke}=f,{value:Be}=b;if(X===null||ke===null||Be===null)return 0;{const Ee=ke-X;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:X}=h,{value:q}=d;return X!==null&&q!==null&&q>X}),ee=P(()=>{const{value:X}=p,{value:q}=f;return X!==null&&q!==null&&q>X}),ue=P(()=>{const{trigger:X}=e;return X==="none"||y.value}),de=P(()=>{const{trigger:X}=e;return X==="none"||C.value}),Ce=P(()=>{const{container:X}=e;return X?X():a.value}),we=P(()=>{const{content:X}=e;return X?X():l.value}),me=Vb(()=>{e.container||ve({top:g.value,left:m.value})}),Oe=()=>{me.isDeactivated||ge()},_e=X=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(X),ge()},ve=(X,q)=>{if(!e.scrollable)return;if(typeof X=="number"){H(q!=null?q:0,X,0,!1,"auto");return}const{left:ke,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=X;(ke!==void 0||Be!==void 0)&&H(ke!=null?ke:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(X,q)=>{if(!e.scrollable)return;const{value:ke}=Ce;!ke||(typeof X=="object"?ke.scrollBy(X):ke.scrollBy(X,q||0))};function H(X,q,ke,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+ke<=ze+ie||ae.scrollTo({left:X,top:q+ke-ie,behavior:Ee});return}}ae.scrollTo({left:X,top:q,behavior:Ee})}}function U(){N(),te(),ge()}function Y(){ce()}function ce(){G(),B()}function G(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){_!==void 0&&window.clearTimeout(_),y.value=!0}function te(){k!==void 0&&window.clearTimeout(k),C.value=!0}function pe(X){const{onScroll:q}=e;q&&q(X),Z()}function Z(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:X}=we;X&&(d.value=X.offsetHeight,f.value=X.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,p.value=q.offsetWidth);const{value:ke}=c,{value:Be}=s;ke&&(b.value=ke.offsetWidth),Be&&(v.value=Be.offsetHeight)}function ne(){const{value:X}=Ce;X&&(g.value=X.scrollTop,m.value=X.scrollLeft*(o!=null&&o.value?-1:1),h.value=X.offsetHeight,p.value=X.offsetWidth,d.value=X.scrollHeight,f.value=X.scrollWidth);const{value:q}=c,{value:ke}=s;q&&(b.value=q.offsetWidth),ke&&(v.value=ke.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(X){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(vr(X)))}function Ae(X){X.preventDefault(),X.stopPropagation(),w=!0,_t("mousemove",window,qe,!0),_t("mouseup",window,Ye,!0),$=m.value,R=o!=null&&o.value?window.innerWidth-X.clientX:X.clientX}function qe(X){if(!w)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=p,{value:ke}=f,{value:Be}=j;if(q===null||ke===null)return;const ae=(o!=null&&o.value?window.innerWidth-X.clientX-R:X.clientX-R)*(ke-q)/(q-Be),ze=ke-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function Ye(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,qe,!0),Ct("mouseup",window,Ye,!0),w=!1,ge(),Pe(X)&&ce()}function ft(X){X.preventDefault(),X.stopPropagation(),x=!0,_t("mousemove",window,ht,!0),_t("mouseup",window,vt,!0),T=g.value,D=X.clientY}function ht(X){if(!x)return;_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k);const{value:q}=h,{value:ke}=d,{value:Be}=A;if(q===null||ke===null)return;const ae=(X.clientY-D)*(ke-q)/(q-Be),ze=ke-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function vt(X){X.preventDefault(),X.stopPropagation(),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0),x=!1,ge(),Pe(X)&&ce()}At(()=>{const{value:X}=ee,{value:q}=re,{value:ke}=t,{value:Be}=c,{value:Ee}=s;Be&&(X?Be.classList.remove(`${ke}-scrollbar-rail--disabled`):Be.classList.add(`${ke}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${ke}-scrollbar-rail--disabled`):Ee.classList.add(`${ke}-scrollbar-rail--disabled`))}),It(()=>{e.container||ge()}),Bt(()=>{_!==void 0&&window.clearTimeout(_),k!==void 0&&window.clearTimeout(k),Ct("mousemove",window,ht,!0),Ct("mouseup",window,vt,!0)});const Ve=Se("Scrollbar","-scrollbar",Iq,br,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:X,scrollbarBorderRadius:q,scrollbarHeight:ke,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=Ve.value;return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":ke}}),We=n?et("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:ve,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:U,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:pe,handleContentResize:Oe,handleContainerResize:_e,handleYScrollMouseDown:ft,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Gn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(jr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?Tv:Ft,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(jr,{onResize:this.handleContainerResize},{default:s});return i?u(Ot,null,c,l()):c}}),ln=V2,Bf=V2,Aq={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},W2=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:v,heightSmall:b,heightMedium:g,heightLarge:m,heightHuge:y}=e;return Object.assign(Object.assign({},Aq),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:v,optionHeightSmall:b,optionHeightMedium:g,optionHeightLarge:m,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},Bq={name:"InternalSelectMenu",common:nt,peers:{Scrollbar:br,Empty:oi},self:W2},Hl=Bq,Eq={name:"InternalSelectMenu",common:tt,peers:{Scrollbar:yr,Empty:Za},self:W2},yc=Eq;function Lq(e,t){return u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>e?u(dt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(d0)}):null})}const PC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Bb),p=lt(()=>{const{value:m}=n;return m?e.tmNode.key===m.key:!1});function v(m){const{tmNode:y}=e;y.disabled||f(m,y)}function b(m){const{tmNode:y}=e;y.disabled||h(m,y)}function g(m){const{tmNode:y}=e,{value:C}=p;y.disabled||C||h(m,y)}return{multiple:r,isGrouped:lt(()=>{const{tmNode:m}=e,{parent:y}=m;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:p,isSelected:lt(()=>{const{value:m}=t,{value:y}=r;if(m===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return m===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:g,handleMouseEnter:b,handleClick:v}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=Lq(n,e),p=s?[s(t,n),i&&h]:[Ut(t[this.labelField],t,n),i&&h],v=a==null?void 0:a(t),b=u("div",Object.assign({},v,{class:[`${e}-base-select-option`,t.class,v==null?void 0:v.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(v==null?void 0:v.style)||"",t.style||""],onClick:Rs([c,v==null?void 0:v.onClick]),onMouseenter:Rs([d,v==null?void 0:v.onMouseenter]),onMousemove:Rs([f,v==null?void 0:v.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),$C=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Bb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):Ut(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:TC,cubicBezierEaseOut:OC}=mr;function Dn({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${TC}, transform ${t} ${TC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${OC}, transform ${t} ${OC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const Nq=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[I("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),I("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),I("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),I("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),I("disabled",` - cursor: not-allowed; - `,[mt("selected",` - color: var(--n-option-text-color-disabled); - `),I("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[Dn({enterScale:"0.5"})])])]),xc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",Nq,Hl,e,xe(e,"clsPrefix")),n=F(null),r=F(null),o=F(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>F2(i.value)),l=F(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),D(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;it(()=>e.show,Q=>{Q?d=it(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),Rt(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Bt(()=>{d==null||d()});const f=P(()=>hn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>Pi(t.value.self[ye("padding",e.size)])),p=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),v=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function g(Q){const{onScroll:V}=e;V&&V(Q)}function m(Q){var V;(V=o.value)===null||V===void 0||V.sync(),g(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||D(V,!1)}function w(Q,V){V.disabled||b(V)}function _(Q){var V;Zn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function k(Q){var V;Zn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&D(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&D(Q.getPrev({loop:!0}),!0)}function D(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}ot(Bb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:p,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),ot(nR,n),It(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:_e,optionOpacityDisabled:ve,optionCheckColor:Me,actionTextColor:H,optionColorPending:U,optionColorActive:Y,loadingColor:ce,loadingSize:G,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:pe}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":U,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":ve,"--n-option-text-color":me,"--n-option-text-color-active":_e,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":pe,"--n-option-padding-left":Pi(pe,"left"),"--n-option-padding-right":Pi(pe,"right"),"--n-loading-color":ce,"--n-loading-size":G}}),{inlineThemeDisabled:E}=e,W=E?et("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return ph(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:v,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:g,handleFocusin:A,handleFocusout:L,handleKeyUp:_,handleKeyDown:k,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:m,cssVars:E?void 0:j,themeClass:W==null?void 0:W.themeClass,onRender:W==null?void 0:W.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(so,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},gt(e.empty,()=>[u(Ui,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(ln,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(qo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(PC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u($C,{key:a.key,clsPrefix:n,tmNode:a}):u(PC,{clsPrefix:n,key:a.key,tmNode:a})))}),kt(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Fo,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),Hq=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),U2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-wave",Hq,xe(e,"clsPrefix"));const t=F(null),n=F(!1);let r=null;return Bt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Rt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),jq=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Yo()]),Vq=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Xr("-base-menu-mask",jq,xe(e,"clsPrefix"));const t=F(null);let n=null;const r=F(!1);return Bt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(Ft,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),Wq={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},K2=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Wq),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},Uq={name:"Popover",common:nt,self:K2},Qa=Uq,Kq={name:"Popover",common:tt,self:K2},Ja=Kq,Op={top:"bottom",bottom:"top",left:"right",right:"left"},In="var(--n-arrow-height) * 1.414",qq=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[mt("scrollable",[mt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),I("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${In}); - height: calc(${In}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),Ir("top-start",` - top: calc(${In} / -2); - left: calc(${Eo("top-start")} - var(--v-offset-left)); - `),Ir("top",` - top: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("top-end",` - top: calc(${In} / -2); - right: calc(${Eo("top-end")} + var(--v-offset-left)); - `),Ir("bottom-start",` - bottom: calc(${In} / -2); - left: calc(${Eo("bottom-start")} - var(--v-offset-left)); - `),Ir("bottom",` - bottom: calc(${In} / -2); - transform: translateX(calc(${In} / -2)) rotate(45deg); - left: 50%; - `),Ir("bottom-end",` - bottom: calc(${In} / -2); - right: calc(${Eo("bottom-end")} + var(--v-offset-left)); - `),Ir("left-start",` - left: calc(${In} / -2); - top: calc(${Eo("left-start")} - var(--v-offset-top)); - `),Ir("left",` - left: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("left-end",` - left: calc(${In} / -2); - bottom: calc(${Eo("left-end")} + var(--v-offset-top)); - `),Ir("right-start",` - right: calc(${In} / -2); - top: calc(${Eo("right-start")} - var(--v-offset-top)); - `),Ir("right",` - right: calc(${In} / -2); - transform: translateY(calc(${In} / -2)) rotate(45deg); - top: 50%; - `),Ir("right-end",` - right: calc(${In} / -2); - bottom: calc(${Eo("right-end")} + var(--v-offset-top)); - `),...S7({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${In}) / 2)`,s=Eo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[I("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Eo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Ir(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${Op[n]}: var(--n-space); - `,[I("show-arrow",` - margin-${Op[n]}: var(--n-space-arrow); - `),I("overlap",` - margin: 0; - `),cB("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${Op[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const q2=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Y2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),Yq=J({name:"PopoverBody",inheritAttrs:!1,props:q2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(e),a=Se("Popover","-popover",qq,Qa,e,o),l=F(null),s=Le("NPopover"),c=F(null),d=F(e.show),f=F(!1);At(()=>{const{show:k}=e;k&&!dB()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:k,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(k==="click"&&!T&&$.push([gr,x,void 0,{capture:!0}]),k==="hover"&&$.push([zB,C])),T&&$.push([gr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([$r,e.show]),$}),p=P(()=>{const k=e.width==="trigger"?void 0:Mt(e.width),T=[];k&&T.push({width:k});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Mt($)}),R&&T.push({maxWidth:Mt(R)}),i||T.push(v.value),T}),v=P(()=>{const{common:{cubicBezierEaseInOut:k,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:D,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:W,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":W,"--n-bezier":k,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":D}}),b=i?et("popover",void 0,v,e):void 0;s.setBodyInstance({syncPosition:g}),Bt(()=>{s.setBodyInstance(null)}),it(xe(e,"show"),k=>{e.animated||(k?d.value=!0:d.value=!1)});function g(){var k;(k=l.value)===null||k===void 0||k.syncPosition()}function m(k){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(k)}function y(k){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(k)}function C(k){e.trigger==="hover"&&!w().contains(vr(k))&&s.handleMouseMoveOutside(k)}function x(k){(e.trigger==="click"&&!w().contains(vr(k))||e.onClickoutside)&&s.handleClickOutside(k)}function w(){return s.getTriggerElement()}ot(Ll,c),ot(vc,null),ot(pc,null);function _(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,p.value,m,y);else{const{value:D}=s.extraClassRef,{internalTrapFocus:z}=e,A=!Pa(t.header)||!Pa(t.footer),L=()=>{var j;const E=A?u(Ot,null,kt(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),kt(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),kt(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),W=e.scrollable?u(Bf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?Y2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[W,K]};T=u("div",Gn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,D.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:s.handleKeydown,onMouseenter:m,onMouseleave:y},n),z?u(Hb,{active:e.show,autoFocus:!0},{default:L}):L())}return un(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Ht(e),followerEnabled:d,renderContentNode:_}},render(){return u(Or,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>this.animated?u(Ft,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Gq=Object.keys(q2),Xq={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Zq(e,t,n){Xq[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const Qq=Ar("").type,La={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ht.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},G2=Object.assign(Object.assign(Object.assign({},Se.props),La),{internalOnAfterLeave:Function,internalRenderBody:Function}),el=J({name:"Popover",inheritAttrs:!1,props:G2,__popover__:!0,setup(e){const t=Hn(),n=F(null),r=P(()=>e.show),o=F(e.defaultShow),i=St(r,o),a=lt(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ii(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=F(null),p=F(null),v=lt(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:W,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&W&&he(W,!0),L&&K&&he(K,!1)}function g(){f&&f.syncPosition()}function m(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=p;L&&(window.clearTimeout(L),p.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function _(){const L=l();if(e.trigger==="hover"&&!L){if(m(),p.value!==null||!s())return;const j=()=>{b(!1),p.value=null},{duration:E}=e;E===0?j():p.value=window.setTimeout(j,E)}}function k(){_()}function T(L){var j;!s()||(e.trigger==="click"&&(m(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){m(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(m(),y(),b(!1))}function D(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return ot("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:_,handleClickOutside:T,handleMouseMoveOutside:k,setBodyInstance:A,positionManuallyRef:v,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),At(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:v,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:D,handleClick:$,handleMouseEnter:w,handleMouseLeave:_,handleFocus:C,handleBlur:x,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=ju(n,"activator"):r=ju(n,"trigger"),r)){r=ar(r),r=r.type===Qq?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};Zq(r,a?"nested":t?"manual":this.trigger,s)}}return u(qr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?un(u("div",{style:{position:"fixed",inset:0}}),[[gc,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Yr,null,{default:()=>r}),u(Yq,xn(this.$props,Gq,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),X2={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},Jq={name:"Tag",common:tt,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,tagColor:f,opacityDisabled:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderRadiusSmall:y,fontSizeMini:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,heightMini:k,heightTiny:T,heightSmall:$,heightMedium:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:y,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:y,opacityDisabled:h,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:g,closeColorPressed:m,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:kn(o,{lightness:.7}),closeIconColorHoverPrimary:kn(o,{lightness:.7}),closeIconColorPressedPrimary:kn(o,{lightness:.7}),closeColorHoverPrimary:He(o,{alpha:.16}),closeColorPressedPrimary:He(o,{alpha:.12}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:kn(i,{alpha:.7}),closeIconColorHoverInfo:kn(i,{alpha:.7}),closeIconColorPressedInfo:kn(i,{alpha:.7}),closeColorHoverInfo:He(i,{alpha:.16}),closeColorPressedInfo:He(i,{alpha:.12}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:kn(a,{alpha:.7}),closeIconColorHoverSuccess:kn(a,{alpha:.7}),closeIconColorPressedSuccess:kn(a,{alpha:.7}),closeColorHoverSuccess:He(a,{alpha:.16}),closeColorPressedSuccess:He(a,{alpha:.12}),borderWarning:`1px solid ${He(l,{alpha:.3})}`,textColorWarning:l,colorWarning:He(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:kn(l,{alpha:.7}),closeIconColorHoverWarning:kn(l,{alpha:.7}),closeIconColorPressedWarning:kn(l,{alpha:.7}),closeColorHoverWarning:He(l,{alpha:.16}),closeColorPressedWarning:He(l,{alpha:.11}),borderError:`1px solid ${He(s,{alpha:.3})}`,textColorError:s,colorError:He(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:kn(s,{alpha:.7}),closeIconColorHoverError:kn(s,{alpha:.7}),closeIconColorPressedError:kn(s,{alpha:.7}),closeColorHoverError:He(s,{alpha:.16}),closeColorPressedError:He(s,{alpha:.12})})}},Z2=Jq,eY=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,borderRadiusSmall:g,fontSizeMini:m,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:_,heightSmall:k,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:D,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},X2),{closeBorderRadius:g,heightTiny:w,heightSmall:_,heightMedium:k,heightLarge:T,borderRadius:g,opacityDisabled:f,fontSizeTiny:m,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:v,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${He(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:He(o,{alpha:.12}),colorBorderedPrimary:He(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:He(o,{alpha:.12}),closeColorPressedPrimary:He(o,{alpha:.18}),borderInfo:`1px solid ${He(i,{alpha:.3})}`,textColorInfo:i,colorInfo:He(i,{alpha:.12}),colorBorderedInfo:He(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:He(i,{alpha:.12}),closeColorPressedInfo:He(i,{alpha:.18}),borderSuccess:`1px solid ${He(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:He(a,{alpha:.12}),colorBorderedSuccess:He(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:He(a,{alpha:.12}),closeColorPressedSuccess:He(a,{alpha:.18}),borderWarning:`1px solid ${He(l,{alpha:.35})}`,textColorWarning:l,colorWarning:He(l,{alpha:.15}),colorBorderedWarning:He(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:He(l,{alpha:.12}),closeColorPressedWarning:He(l,{alpha:.18}),borderError:`1px solid ${He(s,{alpha:.23})}`,textColorError:s,colorError:He(s,{alpha:.1}),colorBorderedError:He(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:He(s,{alpha:.12}),closeColorPressedError:He(s,{alpha:.18})})},tY={name:"Tag",common:nt,self:eY},Q2=tY,J2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},nY=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),I("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),I("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),I("icon, avatar",[I("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),I("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),I("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[mt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[mt("checked","color: var(--n-text-color-pressed-checkable);")])]),I("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[mt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),eP=Object.assign(Object.assign(Object.assign({},Se.props),J2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),tP="n-tag",zs=J({name:"Tag",props:eP,setup(e){const t=F(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=je(e),a=Se("Tag","-tag",nY,Q2,e,r);ot(tP,{roundRef:xe(e,"round")});function l(p){if(!e.disabled&&e.checkable){const{checked:v,onCheckedChange:b,onUpdateChecked:g,"onUpdate:checked":m}=e;g&&g(!v),m&&m(!v),b&&b(!v)}}function s(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:v}=e;v&&he(v,p)}}const c={setTextContent(p){const{value:v}=t;v&&(v.textContent=p)}},d=en("Tag",i,r),f=P(()=>{const{type:p,size:v,color:{color:b,textColor:g}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:_,textColorCheckable:k,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:D,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:W,fontWeightStrong:K,[ye("colorBordered",p)]:Q,[ye("closeSize",v)]:V,[ye("closeIconSize",v)]:re,[ye("fontSize",v)]:ee,[ye("height",v)]:ue,[ye("color",p)]:de,[ye("textColor",p)]:Ce,[ye("border",p)]:we,[ye("closeIconColor",p)]:me,[ye("closeIconColorHover",p)]:Oe,[ye("closeIconColorPressed",p)]:_e,[ye("closeColorHover",p)]:ve,[ye("closeColorPressed",p)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":m,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":ve,"--n-close-border-radius":W,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":_e,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":D,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":_,"--n-padding":y,"--n-text-color":g||Ce,"--n-text-color-checkable":k,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?et("tag",P(()=>{let p="";const{type:v,size:b,color:{color:g,textColor:m}={}}=e;return p+=v[0],p+=b[0],g&&(p+=`a${Ia(g)}`),m&&(p+=`b${Ia(m)}`),n.value&&(p+="c"),p}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=kt(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=kt(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(ri,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),rY=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[On({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),nm=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Xr("-base-clear",rY,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(Do,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},gt(this.$slots.icon,()=>[u(dt,{clsPrefix:e},{default:()=>u(LK,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),nP=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(so,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(nm,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(dt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>gt(t.default,()=>[u(D2,null)])})}):null})}}}),rP={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},oY=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:p,iconColorDisabled:v,clearColor:b,clearColorHover:g,clearColorPressed:m,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:_,fontSizeLarge:k,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:D,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${He(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${He(a,{alpha:.2})}`,caretColor:a,arrowColor:p,arrowColorDisabled:v,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${He(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${He(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${He(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:g,clearColorPressed:m})},iY={name:"InternalSelection",common:nt,peers:{Popover:Qa},self:oY},Ch=iY,aY={name:"InternalSelection",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,iconColor:h,iconColorDisabled:p,clearColor:v,clearColorHover:b,clearColorPressed:g,placeholderColor:m,placeholderColorDisabled:y,fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R}=e;return Object.assign(Object.assign({},rP),{fontSizeTiny:C,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:_,heightTiny:k,heightSmall:T,heightMedium:$,heightLarge:R,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:m,placeholderColorDisabled:y,color:o,colorDisabled:i,colorActive:He(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${He(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${He(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.4})}`,colorActiveWarning:He(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${He(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.4})}`,colorActiveError:He(d,{alpha:.1}),caretColorError:d,clearColor:v,clearColorHover:b,clearColorPressed:g})}},h0=aY,lY=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),I("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>I(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),mt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),I("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),I("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),p0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),i=F(null),a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(!1),h=F(!1),p=F(!1),v=Se("InternalSelection","-internal-selection",lY,Ch,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(p.value||e.active)),g=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Ut(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),m=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}it(xe(e,"active"),Z=>{Z||x()}),it(xe(e,"pattern"),()=>{e.multiple&&Rt(C)});function _(Z){const{onFocus:fe}=e;fe&&fe(Z)}function k(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function D(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&_(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||k(Z)}function A(Z){$(Z)}function L(){p.value=!0}function j(){p.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function W(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&W(fe[fe.length-1])}}const Q=F(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function _e(){const{value:Z}=n;Z&&Z.blur()}function ve(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let U=null;function Y(){U!==null&&window.clearTimeout(U)}function ce(){e.disabled||e.active||(Y(),U=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function G(){Y()}function B(Z){Z||(Y(),f.value=!1)}it(y,Z=>{Z||(f.value=!1)}),It(()=>{At(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),ph(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:qe,paddingMultiple:Ye,caretColor:ft,colorDisabled:ht,textColorDisabled:vt,placeholderColorDisabled:Ve,colorActive:Xe,boxShadowFocus:We,boxShadowActive:Ke,boxShadowHover:X,border:q,borderFocus:ke,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Ie,borderFocusWarning:Ne,borderHoverWarning:Qe,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:De,boxShadowActiveError:Ze,boxShadowHoverError:bt,borderError:be,borderFocusError:Fe,borderHoverError:Je,borderActiveError:at,clearColor:ct,clearColorHover:Gt,clearColorPressed:Kt,clearSize:Re,arrowSize:Ge,[ye("height",Z)]:st,[ye("fontSize",Z)]:Pt}}=v.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":ke,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":Ke,"--n-box-shadow-focus":We,"--n-box-shadow-hover":X,"--n-caret-color":ft,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":ht,"--n-font-size":Pt,"--n-height":st,"--n-padding-single":qe,"--n-padding-multiple":Ye,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":Ve,"--n-text-color":Ae,"--n-text-color-disabled":vt,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Ie,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Qe,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":De,"--n-box-shadow-active-error":Ze,"--n-box-shadow-hover-error":bt,"--n-border-error":be,"--n-border-focus-error":Fe,"--n-border-hover-error":Je,"--n-border-active-error":at,"--n-clear-size":Re,"--n-clear-color":ct,"--n-clear-color-hover":Gt,"--n-clear-color-pressed":Kt,"--n-arrow-size":Ge}}),pe=N?et("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:v,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:g,label:m,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:D,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:W,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:G,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:_e,updateCounter:ve,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",p=f||h,v=u(Tv,null,{default:()=>u(nP,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var g,m;return(m=(g=this.$slots).arrow)===null||m===void 0?void 0:m.call(g)}})});let b;if(t){const{labelField:g}=this,m=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(zs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):Ut(z[g],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(m),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(zs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const _=f?o?u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(g1,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),k=p?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(m)):void 0,T=p?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,D=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},_,f?null:C,v):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},_,v);b=u(Ot,null,p?u(el,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>D,default:k}):D,R)}else if(o){const g=this.pattern||this.isComposing,m=this.active?!g:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):null,m?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,v)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:hc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):Ut(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),v);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),zC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=F(null),n=F(e.value),r=F(e.value),o=F("up"),i=F(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);it(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,Rt(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,Rt(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:hi}=mr;function oP({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${hi}, - max-width ${e} ${hi} ${t}, - margin-left ${e} ${hi} ${t}, - margin-right ${e} ${hi} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${hi} ${t}, - max-width ${e} ${hi}, - margin-left ${e} ${hi}, - margin-right ${e} ${hi}; - `)]}const{cubicBezierEaseOut:cl}=mr;function sY({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${cl}, - max-width ${e} ${cl}, - transform ${e} ${cl} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const cY=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[sY({duration:".2s"}),oP({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[I("top",{transform:"translateY(-100%)"}),I("bottom",{transform:"translateY(100%)"}),I("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[I("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),I("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[I("not-number",` - right: unset; - left: 0; - `)])])])])]),dY=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Xr("-base-slot-machine",cY,xe(e,"clsPrefix"));const t=F(),n=F(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return it(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(ah,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(zC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Io,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,infoColor:v,successColor:b,warningColor:g,errorColor:m,fontSize:y}=e;return Object.assign(Object.assign({},iP),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:p,borderInfo:`1px solid ${pt(o,He(v,{alpha:.25}))}`,colorInfo:pt(o,He(v,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:v,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${pt(o,He(b,{alpha:.25}))}`,colorSuccess:pt(o,He(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${pt(o,He(g,{alpha:.33}))}`,colorWarning:pt(o,He(g,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:g,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:p,borderError:`1px solid ${pt(o,He(m,{alpha:.25}))}`,colorError:pt(o,He(m,{alpha:.08})),titleTextColorError:l,iconColorError:m,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:p})},pY={name:"Alert",common:nt,self:hY},vY=pY,{cubicBezierEaseInOut:po,cubicBezierEaseOut:gY,cubicBezierEaseIn:mY}=mr;function Go({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po} ${r}, - opacity ${t} ${gY} ${r}, - margin-top ${t} ${po} ${r}, - margin-bottom ${t} ${po} ${r}, - padding-top ${t} ${po} ${r}, - padding-bottom ${t} ${po} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${po}, - opacity ${t} ${mY}, - margin-top ${t} ${po}, - margin-bottom ${t} ${po}, - padding-top ${t} ${po}, - padding-bottom ${t} ${po} - ${n?","+n:""} - `)]}const bY=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),I("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),Go({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),I("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),aP=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),yY=J({name:"Alert",inheritAttrs:!1,props:aP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Alert","-alert",bY,vY,e,t),a=en("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:p},self:v}=i.value,{fontSize:b,borderRadius:g,titleFontWeight:m,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:_,closeBorderRadius:k,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:D}=v,{type:z}=e,{left:A,right:L}=Pi(x);return{"--n-bezier":p,"--n-color":v[ye("color",z)],"--n-close-icon-size":_,"--n-close-border-radius":k,"--n-close-color-hover":v[ye("closeColorHover",z)],"--n-close-color-pressed":v[ye("closeColorPressed",z)],"--n-close-icon-color":v[ye("closeIconColor",z)],"--n-close-icon-color-hover":v[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":v[ye("closeIconColorPressed",z)],"--n-icon-color":v[ye("iconColor",z)],"--n-border":v[ye("border",z)],"--n-title-text-color":v[ye("titleTextColor",z)],"--n-content-text-color":v[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":g,"--n-font-size":b,"--n-title-font-weight":m,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":D,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?et("alert",P(()=>e.type[0]),l,e):void 0,c=F(!0),d=()=>{const{onAfterLeave:p,onAfterHide:v}=e;p&&p(),v&&v()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var p;Promise.resolve((p=e.onClose)===null||p===void 0?void 0:p.call(e)).then(v=>{v!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Io,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Gn(this.$attrs,r)),this.closable&&u(ri,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},gt(n.icon,()=>[u(dt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Xa,null);case"info":return u(Hi,null);case"warning":return u(Wi,null);case"error":return u(Ga,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},kt(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),xY={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},lP=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},xY),{borderRadius:t,railColor:n,railColorActive:r,linkColor:He(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},wY={name:"Anchor",common:nt,self:lP},CY=wY,SY={name:"Anchor",common:tt,self:lP},kY=SY,_Y=S("anchor",` - position: relative; -`,[mt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),mt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),I("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[I("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[I("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[I("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),wu="n-anchor",sP={title:String,href:String},RY=J({name:"AnchorLink",props:sP,setup(e,{slots:t}){const n=F(null),r=Le(wu),o=xe(e,"href"),i=lt(()=>o.value&&o.value===r.activeHref.value);fB(wu,"collectedLinkHrefs",o),hB(wu,"titleEls",()=>n.value),it(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:hc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function PY(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const v0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},$Y=Wn(v0),TY=J({name:"BaseAnchor",props:Object.assign(Object.assign({},v0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=F(null),o=F(null),i=F(null),a=F(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:v}=i,{value:b}=o;v&&(v.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(g=>{g.style.transition="none"}),Rt(()=>{const{value:g}=i,{value:m}=o;g&&(g.offsetWidth,g.style.transition=""),m&&(m.offsetWidth,m.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(v,b=!0){const{value:g}=i,{value:m}=o,{value:y}=a;if(!y||!g)return;b||(g.style.transition="none",m&&(m.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=v,{top:w,left:_}=v.getBoundingClientRect(),{top:k,left:T}=y.getBoundingClientRect(),$=w-k,R=_-T;g.style.top=`${$}px`,g.style.height=`${C}px`,m&&(m.style.top=`${$}px`,m.style.height=`${C}px`,m.style.maxWidth=`${x+R}px`),g.offsetHeight,m&&m.offsetHeight,b||(g.style.transition="",m&&(m.style.transition=""))}function f(v,b=!0){const g=/^#([^#]+)$/.exec(v);if(!g)return;const m=document.getElementById(g[1]);!m||(r.value=v,m.scrollIntoView(),b||c(),h())}const h=Os(()=>p(!0),128);function p(v=!0){var b;const g=[],m=Ob((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(_=>{const k=/#([^#]+)$/.exec(_);if(!k)return;const T=document.getElementById(k[1]);if(T&&m){const{top:$,height:R}=PY(T,m);g.push({top:$,height:R,href:_})}}),g.sort((_,k)=>_.top>k.top?1:(_.top===k.top&&_.heightk.top+k.height<0?x?k:_:k.top<=C?_===null?k:k.top===_.top?k.href===y?k:_:k.top>_.top?k:_:_,null);v||c(),w?r.value=w.href:r.value=null}return ot(wu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),It(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),p(!1)}),fh(()=>{f(window.location.hash),p(!1)}),Bt(()=>{document.removeEventListener("scroll",h,!0)}),it(r,v=>{if(v===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(ln,null,{default:()=>i}):i}}),cP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),wh),v0),OY=J({name:"Anchor",props:cP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Anchor","-anchor",_Y,CY,e,n),i=F(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:p,linkTextColorActive:v,linkFontSize:b,railWidth:g,linkPadding:m,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":v,"--n-link-text-color-pressed":p,"--n-link-padding":m,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":g}}),l=r?et("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(TY,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},xn(e,$Y),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(P2,Object.assign({},xn(this,$K)),{default:this.renderAnchor}):this.renderAnchor()}});function Ef(e){return e.type==="group"}function dP(e){return e.type==="ignored"}function zp(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Sh(e,t){return{getIsGroup:Ef,getIgnored:dP,getKey(r){return Ef(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function zY(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(Ef(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(dP(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function MY(e,t,n){const r=new Map;return e.forEach(o=>{Ef(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const DY=lr&&"chrome"in window;lr&&navigator.userAgent.includes("Firefox");const uP=lr&&navigator.userAgent.includes("Safari")&&!DY,fP={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},IY={name:"Input",common:tt,self(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,clearColor:_,clearColorHover:k,clearColorPressed:T,placeholderColor:$,placeholderColorDisabled:R,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:C,heightMedium:x,heightLarge:w,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:g,fontSizeLarge:m,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:o,placeholderColor:$,placeholderColorDisabled:R,color:a,colorDisabled:l,colorFocus:He(o,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`,loadingColor:o,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:He(s,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${He(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:He(d,{alpha:.1}),borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 8px 0 ${He(d,{alpha:.3})}`,caretColorError:d,clearColor:_,clearColorHover:k,clearColorPressed:T,iconColor:D,iconColorDisabled:z,iconColorHover:A,iconColorPressed:L,suffixTextColor:t})}},Zr=IY,FY=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:p,lineHeight:v,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,actionColor:k,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:D,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},fP),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:_,fontSizeTiny:b,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:y,lineHeight:v,lineHeightTextarea:v,borderRadius:p,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:D,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${He(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${He(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${He(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},AY={name:"Input",common:nt,self:FY},zr=AY,hP="n-input";function BY(e){let t=0;for(const n of e)t++;return t}function cd(e){return e===""||e==null}function EY(e){const t=F(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const p=d[c-1],v=s.indexOf(p,c-1);v!==-1&&(h=v+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return it(e,o),{recordCursor:n,restoreCursor:r}}const MC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(hP),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||BY)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Da(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),LY=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),I("round",[mt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),I("textarea",[M("placeholder","overflow: visible;")]),mt("autosize","width: 100%;"),I("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),mt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),I("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),I("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),I("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),I("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),mt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),I("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>I(`${e}-status`,[mt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),I("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),NY=S("input",[I("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),pP=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),En=J({name:"Input",props:pP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Input","-input",LY,zr,e,t);uP&&Xr("-input-safari",NY,t);const a=F(null),l=F(null),s=F(null),c=F(null),d=F(null),f=F(null),h=F(null),p=EY(h),v=F(null),{localeRef:b}=Cn("Input"),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=Sn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:_}=C,k=F(!1),T=F(!1),$=F(!1),R=F(!1);let D=null;const z=P(()=>{const{placeholder:le,pair:De}=e;return De?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&(cd(De)||Array.isArray(De)&&cd(De[0]))&&Ze[0]}),L=P(()=>{const{value:le}=$,{value:De}=y,{value:Ze}=z;return!le&&Ze[1]&&(cd(De)||Array.isArray(De)&&cd(De[1]))}),j=lt(()=>e.internalForceFocus||k.value),E=lt(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:De}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||De):!!le&&(T.value||De)}),W=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=F(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(De=>({textDecoration:De})):[{textDecoration:le}]:["",""]}),V=F(void 0),re=()=>{var le,De;if(e.type==="textarea"){const{autosize:Ze}=e;if(Ze&&(V.value=(De=(le=v.value)===null||le===void 0?void 0:le.$el)===null||De===void 0?void 0:De.offsetWidth),!l.value||typeof Ze=="boolean")return;const{paddingTop:bt,paddingBottom:be,lineHeight:Fe}=window.getComputedStyle(l.value),Je=Number(bt.slice(0,-2)),at=Number(be.slice(0,-2)),ct=Number(Fe.slice(0,-2)),{value:Gt}=s;if(!Gt)return;if(Ze.minRows){const Kt=Math.max(Ze.minRows,1),Re=`${Je+at+ct*Kt}px`;Gt.style.minHeight=Re}if(Ze.maxRows){const Kt=`${Je+at+ct*Ze.maxRows}px`;Gt.style.maxHeight=Kt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});It(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Jo().proxy;function de(le){const{onUpdateValue:De,"onUpdate:value":Ze,onInput:bt}=e,{nTriggerFormInput:be}=C;De&&he(De,le),Ze&&he(Ze,le),bt&&he(bt,le),g.value=le,be()}function Ce(le){const{onChange:De}=e,{nTriggerFormChange:Ze}=C;De&&he(De,le),g.value=le,Ze()}function we(le){const{onBlur:De}=e,{nTriggerFormBlur:Ze}=C;De&&he(De,le),Ze()}function me(le){const{onFocus:De}=e,{nTriggerFormFocus:Ze}=C;De&&he(De,le),Ze()}function Oe(le){const{onClear:De}=e;De&&he(De,le)}function _e(le){const{onInputBlur:De}=e;De&&he(De,le)}function ve(le){const{onInputFocus:De}=e;De&&he(De,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function U(le){const{onClick:De}=e;De&&he(De,le)}function Y(le){const{onWrapperFocus:De}=e;De&&he(De,le)}function ce(le){const{onWrapperBlur:De}=e;De&&he(De,le)}function G(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,De=0,Ze="input"){const bt=le.target.value;if(ze(bt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:Fe}=v;Fe&&Fe.syncUnifiedContainer()}if(D=bt,$.value)return;p.recordCursor();const be=te(bt);if(be)if(!e.pair)Ze==="input"?de(bt):Ce(bt);else{let{value:Fe}=y;Array.isArray(Fe)?Fe=[Fe[0],Fe[1]]:Fe=["",""],Fe[De]=bt,Ze==="input"?de(Fe):Ce(Fe)}ue.$forceUpdate(),be||Rt(p.restoreCursor)}function te(le){const{countGraphemes:De,maxlength:Ze,minlength:bt}=e;if(De){let Fe;if(Ze!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe>Number(Ze))||bt!==void 0&&(Fe===void 0&&(Fe=De(le)),Fe{bt.preventDefault(),Ct("mouseup",document,De)};if(_t("mouseup",document,De),W.value!=="mousedown")return;K.value=!0;const Ze=()=>{K.value=!1,Ct("mouseup",document,Ze)};_t("mouseup",document,Ze)}function Xe(le){var De;switch((De=e.onKeydown)===null||De===void 0||De.call(e,le),le.key){case"Escape":Ke();break;case"Enter":We(le);break}}function We(le){var De,Ze;if(e.passivelyActivated){const{value:bt}=R;if(bt){e.internalDeactivateOnEnter&&Ke();return}le.preventDefault(),e.type==="textarea"?(De=l.value)===null||De===void 0||De.focus():(Ze=d.value)===null||Ze===void 0||Ze.focus()}}function Ke(){e.passivelyActivated&&(R.value=!1,Rt(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function X(){var le,De,Ze;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((De=l.value)===null||De===void 0||De.focus(),(Ze=d.value)===null||Ze===void 0||Ze.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function ke(){var le,De;(le=l.value)===null||le===void 0||le.select(),(De=d.value)===null||De===void 0||De.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&Ke()}function ae(le){if(e.type==="textarea"){const{value:De}=l;De==null||De.scrollTo(le)}else{const{value:De}=d;De==null||De.scrollTo(le)}}function ze(le){const{type:De,pair:Ze,autosize:bt}=e;if(!Ze&&bt)if(De==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=F({top:"0"});function se(le){var De;const{scrollTop:Ze}=le.target;Te.value.top=`${-Ze}px`,(De=v.value)===null||De===void 0||De.syncUnifiedContainer()}let $e=null;At(()=>{const{autosize:le,type:De}=e;le&&De==="textarea"?$e=it(y,Ze=>{!Array.isArray(Ze)&&Ze!==D&&ze(Ze)}):$e==null||$e()});let oe=null;At(()=>{e.type==="textarea"?oe=it(y,le=>{var De;!Array.isArray(le)&&le!==D&&((De=v.value)===null||De===void 0||De.syncUnifiedContainer())}):oe==null||oe()}),ot(hP,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Ie={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:X,blur:q,select:ke,deactivate:Ee,activate:Be,scrollTo:ae},Ne=en("Input",o,t),Qe=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:De},self:{color:Ze,borderRadius:bt,textColor:be,caretColor:Fe,caretColorError:Je,caretColorWarning:at,textDecorationColor:ct,border:Gt,borderDisabled:Kt,borderHover:Re,borderFocus:Ge,placeholderColor:st,placeholderColorDisabled:Pt,lineHeightTextarea:qt,colorDisabled:Et,colorFocus:Qr,textColorDisabled:Nt,boxShadowFocus:fn,iconSize:Ao,colorFocusWarning:ai,boxShadowFocusWarning:li,borderWarning:si,borderFocusWarning:qi,borderHoverWarning:Ah,colorFocusError:Bh,boxShadowFocusError:Eh,borderError:Lh,borderFocusError:Nh,borderHoverError:Hh,clearSize:jh,clearColor:Vh,clearColorHover:D5,clearColorPressed:I5,iconColor:F5,iconColorDisabled:A5,suffixTextColor:B5,countTextColor:E5,countTextColorDisabled:L5,iconColorHover:N5,iconColorPressed:H5,loadingColor:j5,loadingColorError:V5,loadingColorWarning:W5,[ye("padding",le)]:U5,[ye("fontSize",le)]:K5,[ye("height",le)]:q5}}=i.value,{left:Y5,right:G5}=Pi(U5);return{"--n-bezier":De,"--n-count-text-color":E5,"--n-count-text-color-disabled":L5,"--n-color":Ze,"--n-font-size":K5,"--n-border-radius":bt,"--n-height":q5,"--n-padding-left":Y5,"--n-padding-right":G5,"--n-text-color":be,"--n-caret-color":Fe,"--n-text-decoration-color":ct,"--n-border":Gt,"--n-border-disabled":Kt,"--n-border-hover":Re,"--n-border-focus":Ge,"--n-placeholder-color":st,"--n-placeholder-color-disabled":Pt,"--n-icon-size":Ao,"--n-line-height-textarea":qt,"--n-color-disabled":Et,"--n-color-focus":Qr,"--n-text-color-disabled":Nt,"--n-box-shadow-focus":fn,"--n-loading-color":j5,"--n-caret-color-warning":at,"--n-color-focus-warning":ai,"--n-box-shadow-focus-warning":li,"--n-border-warning":si,"--n-border-focus-warning":qi,"--n-border-hover-warning":Ah,"--n-loading-color-warning":W5,"--n-caret-color-error":Je,"--n-color-focus-error":Bh,"--n-box-shadow-focus-error":Eh,"--n-border-error":Lh,"--n-border-focus-error":Nh,"--n-border-hover-error":Hh,"--n-loading-color-error":V5,"--n-clear-color":Vh,"--n-clear-size":jh,"--n-clear-color-hover":D5,"--n-clear-color-pressed":I5,"--n-icon-color":F5,"--n-icon-color-hover":N5,"--n-icon-color-pressed":H5,"--n-icon-color-disabled":A5,"--n-suffix-text-color":B5}}),Ue=r?et("input",P(()=>{const{value:le}=x;return le[0]}),Qe,e):void 0;return Object.assign(Object.assign({},Ie),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:v,rtlEnabled:Ne,uncontrolledValue:g,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:W,placeholderStyle:Te,mergedStatus:_,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:G,handleCompositionEnd:B,handleInput:N,handleInputBlur:pe,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ft,handleMouseLeave:ht,handleMouseDown:Ye,handleChange:Pe,handleClick:Ae,handleClear:qe,handlePasswordToggleClick:vt,handlePasswordToggleMousedown:Ve,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Qe,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},kt(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(ln,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u(Ot,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:p=>this.handleInputFocus(p,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(jr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&kt(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[kt(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(nP,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(MC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?gt(s["password-visible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(O2,null)})]):gt(s["password-invisible-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(zK,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},gt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),kt(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(nm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(MC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),HY=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),vP={},gP=J({name:"InputGroup",props:vP,setup(e){const{mergedClsPrefixRef:t}=je(e);return Xr("-input-group",HY,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),jY=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),mP=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),VY=J({name:"InputGroupLabel",props:mP,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Input","-input-group-label",jY,zr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:p,[ye("fontSize",l)]:v,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":v,"--n-line-height":h,"--n-height":b}}),a=r?et("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function bP(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WY={name:"AutoComplete",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:bP},UY=WY,KY={name:"AutoComplete",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self:bP},qY=KY;function YY(e){return e.map(yP)}function yP(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>yP(o))}:e}const GY=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),xP=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),XY=J({name:"AutoComplete",props:xP,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=F(null),d=F(null),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=F(!1),b=F(!1),g=Se("AutoComplete","-auto-complete",GY,UY,e,r),m=P(()=>YY(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(p.value||""):!!p.value}),C=P(()=>y.value&&v.value&&!!m.value.length),x=P(()=>co(m.value,Sh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:_e}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),_e()}function _(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function k(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function D(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(_(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),v.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){v.value=!0,T(de)}function j(de){v.value=!1,k(de)}function E(de){v.value=!0,w(de)}function W(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(vr(de))||(v.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=g.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?et("auto-complete",void 0,V,e):void 0,ee=F(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:p,isMounted:Hn(),adjustedTo:Ht(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:W,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:D,mergedTheme:g,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(qr,null,{default:()=>[u(Yr,null,{default:()=>{if(this.$slots.default)return ju(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(En,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement,width:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return un(u(xc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[gr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),_l=lr&&"loading"in document.createElement("img"),ZY=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},Mp=new WeakMap,Dp=new WeakMap,Ip=new WeakMap,wP=(e,t,n)=>{if(!e)return()=>{};const r=ZY(t),{root:o}=r.options;let i;const a=Mp.get(o);a?i=a:(i=new Map,Mp.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const p=Dp.get(h.target),v=Ip.get(h.target);p&&p(),v&&(v.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Dp.delete(e),Ip.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||Mp.delete(o))};return Dp.set(e,d),Ip.set(e,n),d},CP=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:pt(r,n),colorModal:pt(d,n),colorPopover:pt(f,n)}},QY={name:"Avatar",common:nt,self:CP},SP=QY,JY={name:"Avatar",common:tt,self:CP},kP=JY,_P="n-avatar-group",eG=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[Mo(O("&","--n-merged-color: var(--n-color-modal);")),ei(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),RP=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),rm=J({name:"Avatar",props:RP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1);let o=null;const i=F(null),a=F(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:_}=x,{offsetWidth:k,offsetHeight:T}=C,$=.9,R=Math.min(w/k*$,_/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(_P,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",eG,SP,e,t),f=Le(tP,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),p=P(()=>s?!0:e.bordered||!1),v=C=>{var x;if(!m.value)return;r.value=!0;const{onError:w,imgProps:_}=e;(x=_==null?void 0:_.onError)===null||x===void 0||x.call(_,C),w&&w(C)};it(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e,{self:{borderRadius:k,fontSize:T,color:$,border:R,colorModal:D,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":k,"--n-color":_||$,"--n-color-modal":_||D,"--n-color-popover":_||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),g=n?et("avatar",P(()=>{const C=c.value,x=h.value,w=p.value,{color:_}=e;let k="";return C&&(typeof C=="number"?k+=`a${C}`:k+=C[0]),x&&(k+="b"),w&&(k+="c"),_&&(k+=Ia(_)),k}),b,e):void 0,m=F(!e.lazy);It(()=>{if(_l)return;let C;const x=At(()=>{C==null||C(),C=void 0,e.lazy&&(C=wP(a.value,e.intersectionObserverOptions,m))});Bt(()=>{x(),C==null||C()})});const y=F(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:r,handleError:v,shouldStartLoading:m,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:_}=e;w==null||w(C),(x=_==null?void 0:_.onLoad)===null||x===void 0||x.call(_,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():gt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=kt(n.default,p=>{if(p)return u(jr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},p)});if(r){const{imgProps:v}=this;return u("img",Object.assign(Object.assign({},v),{loading:_l&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:_l||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[v==null?void 0:v.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),tG=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),I("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),PP=()=>({gap:"-12px"}),nG={name:"AvatarGroup",common:nt,peers:{Avatar:SP},self:PP},rG=nG,oG={name:"AvatarGroup",common:tt,peers:{Avatar:kP},self:PP},iG=oG,$P=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),aG=J({name:"AvatarGroup",props:$P,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("AvatarGroup","-avatar-group",tG,rG,e,t);ot(_P,e);const o=en("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(rm,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(rm,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),TP={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},lG={name:"BackTop",common:tt,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},sG=lG,cG=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},TP),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},dG={name:"BackTop",common:nt,self:cG},uG=dG,fG=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),hG=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[Dn(),I("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),OP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),pG=J({name:"BackTop",inheritAttrs:!1,props:OP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(!1);At(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=F(!1);it(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=St(a,o),s=F(!0),c=F(null),d=P(()=>({right:`calc(${Mt(e.right)} + ${Iv.value})`,bottom:Mt(e.bottom)}));let f,h;it(l,x=>{var w,_;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(_=e.onHide)===null||_===void 0||_.call(e))});const p=Se("BackTop","-back-top",hG,uG,e,t);function v(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||Ob(e.listenTo)||B_(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:_}=e;typeof _=="string"&&document.querySelector(_),f.addEventListener("scroll",g),g()}function b(){(S1(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function g(){r.value=(S1(f)?document.documentElement:f).scrollTop,i.value||Rt(()=>{i.value=!0})}function m(){s.value=!1}It(()=>{v(),s.value=l.value}),Bt(()=>{f&&f.removeEventListener("scroll",g)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:_,boxShadowPressed:k,iconColor:T,iconColorHover:$,iconColorPressed:R,width:D,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=p.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":D,"--n-box-shadow":w,"--n-box-shadow-hover":_,"--n-box-shadow-pressed":k,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?et("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:Hn(),scrollElement:F(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:m,handleScroll:g,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(mc,{to:this.to,show:this.mergedShow},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Gn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),gt(this.$slots.default,()=>[u(dt,{clsPrefix:e},{default:()=>fG})])):null}})}))}}),vG={name:"Badge",common:tt,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}},gG=vG,mG=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},bG={name:"Badge",common:nt,self:mG},yG=bG,xG=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[I("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[Dn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),I("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[Dn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),zP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),wG=J({name:"Badge",props:zP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Badge","-badge",xG,yG,e,n),a=F(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!Pa(t.value)));It(()=>{c.value&&(a.value=!0)});const d=en("Badge",o,n),f=P(()=>{const{type:v,color:b}=e,{common:{cubicBezierEaseInOut:g,cubicBezierEaseOut:m},self:{[ye("color",v)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":g,"--n-ripple-bezier":m}}),h=r?et("badge",P(()=>{let v="";const{type:b,color:g}=e;return b&&(v+=b[0]),g&&(v+=Ia(g)),v}),f,e):void 0,p=P(()=>{const{offset:v}=e;if(!v)return;const[b,g]=v,m=typeof b=="number"?`${b}px`:b,y=typeof g=="number"?`${g}px`:g;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${m}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:p}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(Ft,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:hc(this.value),style:this.offsetStyle},gt(o.value,()=>[this.dot?null:u(dY,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u(U2,{clsPrefix:t}):null):null}))}}),CG={fontWeightActive:"400"},MP=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},CG),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},SG={name:"Breadcrumb",common:nt,self:MP},kG=SG,_G={name:"Breadcrumb",common:tt,self:MP},RG=_G,PG=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[I("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),DP="n-breadcrumb",IP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),$G=J({name:"Breadcrumb",props:IP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Breadcrumb","-breadcrumb",PG,kG,e,t);ot(DP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:p,itemBorderRadius:v,itemColorHover:b,itemColorPressed:g,itemLineHeight:m}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":g,"--n-item-border-radius":v,"--n-font-weight-active":p,"--n-item-line-height":m}}),i=n?et("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),TG=lr?window:null,OG=(e=TG)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=F(t());return It(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),sc(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},FP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},zG=J({name:"BreadcrumbItem",props:FP,setup(e,{slots:t}){const n=Le(DP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=OG(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},gt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function ra(e){return pt(e,[255,255,255,.16])}function dd(e){return pt(e,[0,0,0,.12])}const AP="n-button-group",MG={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},BP=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:p,primaryColorPressed:v,borderColor:b,primaryColor:g,baseColor:m,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:_,successColorPressed:k,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:D,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:W,fontWeightStrong:K}=e;return Object.assign(Object.assign({},MG),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:W,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:W,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:W,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:p,textColorPressed:v,textColorFocus:p,textColorDisabled:f,textColorText:f,textColorTextHover:p,textColorTextPressed:v,textColorTextFocus:p,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:p,textColorGhostPressed:v,textColorGhostFocus:p,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${v}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${b}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:v,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:v,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:f,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:v,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${v}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:_,colorPressedSuccess:k,colorFocusSuccess:_,colorDisabledSuccess:w,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:w,textColorTextHoverSuccess:_,textColorTextPressedSuccess:k,textColorTextFocusSuccess:_,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:_,textColorGhostPressedSuccess:k,textColorGhostFocusSuccess:_,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${_}`,borderPressedSuccess:`1px solid ${k}`,borderFocusSuccess:`1px solid ${_}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:D,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:D,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:D,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:D,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},DG={name:"Button",common:nt,self:BP},xr=DG,IG={name:"Button",common:tt,self(e){const t=BP(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},wr=IG,FG=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("color",[M("border",{borderColor:"var(--n-border-color)"}),I("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),mt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),I("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),I("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),mt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),I("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),I("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[I("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),lr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[On({top:"50%",originalTransform:"translateY(-50%)"})]),oP()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),I("block",` - display: flex; - width: 100%; - `),I("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),I("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),EP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!uP}}),LP=J({name:"Button",props:EP,setup(e){const t=F(null),n=F(null),r=F(!1),o=lt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(AP,{}),{mergedSizeRef:a}=Sn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:_}=i;if(_)return _;const{mergedSize:k}=x||{};return k?k.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:_}=e;_&&he(_,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:v,mergedRtlRef:b}=je(e),g=Se("Button","-button",FG,xr,e,v),m=en("Button",b,v),y=P(()=>{const x=g.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:_},self:k}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:D}=k,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:W,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?D:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",_e=me?"default":L;if(E){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":pe||k[ye("textColorText",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorTextPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorTextHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorTextDisabled",_e)]}}else if(j||A){const pe=V||W;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":pe||k[ye("textColorGhost",_e)],"--n-text-color-hover":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-pressed":pe?dd(pe):k[ye("textColorGhostPressed",_e)],"--n-text-color-focus":pe?ra(pe):k[ye("textColorGhostHover",_e)],"--n-text-color-disabled":pe||k[ye("textColorGhostDisabled",_e)]}}else if(re){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?He(Z,{alpha:Number(k.colorOpacitySecondary)}):k.colorSecondary,"--n-color-hover":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-pressed":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryPressed)}):k.colorSecondaryPressed,"--n-color-focus":fe?He(Z,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-disabled":k.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const pe=Oe?k.textColor:me?k.textColorTertiary:k[ye("color",_e)],Z=W||pe;ee?(we["--n-color"]=k.colorTertiary,we["--n-color-hover"]=k.colorTertiaryHover,we["--n-color-pressed"]=k.colorTertiaryPressed,we["--n-color-focus"]=k.colorSecondaryHover,we["--n-color-disabled"]=k.colorTertiary):(we["--n-color"]=k.colorQuaternary,we["--n-color-hover"]=k.colorQuaternaryHover,we["--n-color-pressed"]=k.colorQuaternaryPressed,we["--n-color-focus"]=k.colorQuaternaryHover,we["--n-color-disabled"]=k.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":W||k[ye("color",_e)],"--n-color-hover":W?ra(W):k[ye("colorHover",_e)],"--n-color-pressed":W?dd(W):k[ye("colorPressed",_e)],"--n-color-focus":W?ra(W):k[ye("colorFocus",_e)],"--n-color-disabled":W||k[ye("colorDisabled",_e)],"--n-ripple-color":W||k[ye("rippleColor",_e)],"--n-text-color":V||(W?k.textColorPrimary:me?k.textColorTertiary:k[ye("textColor",_e)]),"--n-text-color-hover":V||(W?k.textColorHoverPrimary:k[ye("textColorHover",_e)]),"--n-text-color-pressed":V||(W?k.textColorPressedPrimary:k[ye("textColorPressed",_e)]),"--n-text-color-focus":V||(W?k.textColorFocusPrimary:k[ye("textColorFocus",_e)]),"--n-text-color-disabled":V||(W?k.textColorDisabledPrimary:k[ye("textColorDisabled",_e)])};let ve={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?ve={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ve={"--n-border":k[ye("border",_e)],"--n-border-hover":k[ye("borderHover",_e)],"--n-border-pressed":k[ye("borderPressed",_e)],"--n-border-focus":k[ye("borderFocus",_e)],"--n-border-disabled":k[ye("borderDisabled",_e)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:U,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:G,[ye("iconMargin",z)]:B,waveOpacity:N}=k,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:U,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:G};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":_,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),ve),te)}),C=p?et("button",P(()=>{let x="";const{dashed:w,type:_,ghost:k,text:T,color:$,round:R,circle:D,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),k&&(x+="b"),T&&(x+="c"),R&&(x+="d"),D&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ia($)),z&&(x+="k"+Ia(z));const{value:W}=a;return x+="l"+W[0],x+="m"+_[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:v,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:m,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=ra(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":dd(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:p?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=kt(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Io,{width:!0},{default:()=>kt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:Pa(this.$slots.default)?"0":""}},u(Do,null,{default:()=>this.loading?u(so,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u(U2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Tt=LP,lo=LP,vn="0!important",NP="-1px!important";function dl(e){return I(e+"-type",[O("& +",[S("button",{},[I(e+"-type",[M("border",{borderLeftWidth:vn}),M("state-border",{left:NP})])])])])}function ul(e){return I(e+"-type",[O("& +",[S("button",[I(e+"-type",[M("border",{borderTopWidth:vn}),M("state-border",{top:NP})])])])])}const AG=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[mt("vertical",{flexDirection:"row"},[mt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${vn}; - border-top-right-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${vn}; - border-top-left-radius: ${vn}; - border-bottom-left-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${vn}; - margin-right: ${vn}; - border-radius: ${vn}; - `),dl("default"),I("ghost",[dl("primary"),dl("info"),dl("success"),dl("warning"),dl("error")])])])]),I("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-bottom-left-radius: ${vn}; - border-bottom-right-radius: ${vn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${vn}; - margin-left: ${vn}; - margin-right: ${vn}; - border-top-left-radius: ${vn}; - border-top-right-radius: ${vn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${vn}; - border-radius: ${vn}; - `),ul("default"),I("ghost",[ul("primary"),ul("info"),ul("success"),ul("warning"),ul("error")])])])]),HP={size:{type:String,default:void 0},vertical:Boolean},g0=J({name:"ButtonGroup",props:HP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);return Xr("-button-group",AG,t),ot(AP,e),{rtlEnabled:en("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Lf=1901,Na=40,BG={date:P9,month:xh,year:_2,quarter:k2};function Wo(e,t,n){const r=BG[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function Fp(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:p,popoverColor:v}=e;return Object.assign(Object.assign({},HG),{borderRadius:t,borderColor:pt(h,l),borderColorModal:pt(p,l),borderColorPopover:pt(v,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:pt(h,f),cellColorHoverModal:pt(p,f),cellColorHoverPopover:pt(v,f),cellColor:h,cellColorModal:p,cellColorPopover:v,barColor:c})},jG={name:"Calendar",common:nt,peers:{Button:xr},self:jP},VG=jG,WG={name:"Calendar",common:tt,peers:{Button:wr},self:jP},UG=WG,KG=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),I("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),I("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),I("disabled",` - cursor: not-allowed; - `),I("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),Mo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),ei(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),VP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),qG=J({name:"Calendar",props:VP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Calendar","-calendar",KG,VG,e,n),{localeRef:i,dateLocaleRef:a}=Cn("DatePicker"),l=Date.now(),s=F(Fr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=F(e.defaultValue||null),d=St(xe(e,"value"),c);function f(m,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,m,y),x&&he(x,m,y),c.value=m}function h(){var m;const y=Fn(s.value,-1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function p(){var m;const y=Fn(s.value,1).valueOf();s.value=y,(m=e.onPanelChange)===null||m===void 0||m.call(e,{year:nn(y),month:Xt(y)+1})}function v(){var m;const{value:y}=s,C=nn(y),x=Xt(y),w=Fr(l).valueOf();s.value=w;const _=nn(w),k=Xt(w);(C!==_||x!==k)&&((m=e.onPanelChange)===null||m===void 0||m.call(e,{year:_,month:k+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:m},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:_,textColor:k,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:D,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:W,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":m,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":k,"--n-title-font-weight":T,"--n-title-font-size":_,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":D,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":W,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),g=r?et("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Nf(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:v,handlePrevClick:h,handleNextClick:p,mergedTheme:o,cssVars:r?void 0:b,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:p}=this;p==null||p();const v=o&&zl(o).valueOf(),b=nn(n),g=Xt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Da(a.header,{year:b,month:g},()=>{const m=on(n,"MMMM",{locale:c});return[l?`${m} ${b}`:`${b} ${m}`]})),u("div",{class:`${t}-calendar-header__extra`},u(g0,null,{default:()=>u(Ot,null,u(Tt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(u0,null)})}),u(Tt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Tt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(dt,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ya,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:m,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var _;const{year:k,month:T,date:$}=m,R=on(y,"yyyy-MM-dd"),D=!C,z=(e==null?void 0:e(y))===!0,A=v===zl(y).valueOf();return u("div",{key:`${g}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,D&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Fr(y).valueOf();this.monthTs=j,D&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:nn(j),month:Xt(j)+1})),this.doUpdateValue(y,{year:k,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},on(y,"EEE",{locale:c}))),(_=a.default)===null||_===void 0?void 0:_.call(a,{year:k,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),WP=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:p}},YG={name:"ColorPicker",common:nt,peers:{Input:zr,Button:xr},self:WP},GG=YG,XG={name:"ColorPicker",common:tt,peers:{Input:Zr,Button:wr},self:WP},ZG=XG;function QG(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ec(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function JG(e){return e=Math.round(e),e>=360?359:e<0?0:e}function eX(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const tX={rgb:{hex(e){return Ti(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hex:{rgb(e){return _o(Tn(e))},hsl(e){const[t,n,r,o]=Tn(e);return $i([...Cv(t,n,r),o])},hsv(e){const[t,n,r,o]=Tn(e);return Ra([...wv(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=Cl(e);return Ti([...Sv(t,n,r),o])},rgb(e){const[t,n,r,o]=Cl(e);return _o([...Sv(t,n,r),o])},hsv(e){const[t,n,r,o]=Cl(e);return Ra([...E_(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=_a(e);return Ti([...mi(t,n,r),o])},rgb(e){const[t,n,r,o]=_a(e);return _o([...mi(t,n,r),o])},hsl(e){const[t,n,r,o]=_a(e);return $i([...Id(t,n,r),o])}}};function UP(e,t,n){return n=n||ec(e),n?n===t?e:tX[n][t](e):null}const hl="12px",nX=12,oa="6px",rX=6,oX="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",iX=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=JG((i.clientX-s-rX)/(l-nX)*360);e.onUpdateHue(c)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:hl,borderRadius:oa}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:oX,height:hl,borderRadius:oa,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:oa,right:oa,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${oa})`,borderRadius:oa,width:hl,height:hl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:oa,width:hl,height:hl}})))))}}),as="12px",aX=12,ia="6px",lX=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||!e.rgba||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-aX);e.onUpdateAlpha(eX(c))}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:as,borderRadius:ia},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:ia,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:ia,right:ia,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${ia})`,borderRadius:ia,width:as,height:as}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:_o(this.rgba),borderRadius:ia,width:as,height:as}}))))}}),ud="12px",fd="6px",sX=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=F(null);function n(i){!t.value||(_t("mousemove",document,r),_t("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,p=100*(h>1?1:h<0?0:h),v=100*(f>1?1:f<0?0:f);e.onUpdateSV(p,v)}function o(){var i;Ct("mousemove",document,r),Ct("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:ud,height:ud,borderRadius:fd,left:`calc(${this.displayedSv[0]}% - ${fd})`,bottom:`calc(${this.displayedSv[1]}% - ${fd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:fd,width:ud,height:ud}})))}}),m0="n-color-picker";function cX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function dX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function uX(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function fX(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function hX(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const pX={paddingSmall:"0 4px"},DC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=F(""),{themeRef:n}=Le(m0,null);At(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=fX(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=dX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=uX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=hX(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=cX(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(En,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:pX,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),vX=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?Ti:_s)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?Ra:Rv)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?_o:_v)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?$i:Pv)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(gP,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?Ti:_s)(r)}catch{}return u(DC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(DC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),gX=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(m0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?$i(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function mX(e,t){if(t==="hsv"){const[n,r,o,i]=_a(e);return _o([...mi(n,r,o),i])}return e}function bX(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const yX=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=ec(i);return{value:i,mode:a,legalValue:mX(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=bX(l):(Qn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:UP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),xX=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ec(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,UP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),wX=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[Dn(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),I("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),KP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Ht.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),CX=J({name:"ColorPicker",props:KP,setup(e,{slots:t}){const n=F(null);let r=null;const o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=Cn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=je(e),f=Se("ColorPicker","-color-picker",wX,GG,e,s);ot(m0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=F(e.defaultShow),p=St(xe(e,"show"),h);function v(N){const{onUpdateShow:te,"onUpdate:show":pe}=e;te&&he(te,N),pe&&he(pe,N),h.value=N}const{defaultValue:b}=e,g=F(b===void 0?QG(e.modes,e.showAlpha):b),m=St(xe(e,"value"),g),y=F([m.value]),C=F(0),x=P(()=>ec(m.value)),{modes:w}=e,_=F(ec(m.value)||w[0]||"rgb");function k(){const{modes:N}=e,{value:te}=_,pe=N.findIndex(Z=>Z===te);~pe?_.value=N[(pe+1)%N.length]:_.value="rgb"}let T,$,R,D,z,A,L,j;const E=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsv":return _a(N);case"hsl":return[T,$,R,j]=Cl(N),[...E_(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...wv(z,A,L),j]}}),W=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"rgb":case"hex":return Tn(N);case"hsv":return[T,$,D,j]=_a(N),[...mi(T,$,D),j];case"hsl":return[T,$,R,j]=Cl(N),[...Sv(T,$,R),j]}}),K=P(()=>{const{value:N}=m;if(!N)return null;switch(x.value){case"hsl":return Cl(N);case"hsv":return[T,$,D,j]=_a(N),[...Id(T,$,D),j];case"rgb":case"hex":return[z,A,L,j]=Tn(N),[...Cv(z,A,L),j]}}),Q=P(()=>{switch(_.value){case"rgb":case"hex":return W.value;case"hsv":return E.value;case"hsl":return K.value}}),V=F(0),re=F(1),ee=F([0,0]);function ue(N,te){const{value:pe}=E,Z=V.value,fe=pe?pe[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(Z,N,te),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,pe,Z,fe]=te,{showAlpha:ne}=e;switch(_.value){case"hsv":we((ne?Ra:Rv)([N,pe,Z,fe]),"cursor");break;case"rgb":we((ne?_o:_v)([...mi(N,pe,Z),fe]),"cursor");break;case"hex":we((ne?Ti:_s)([...mi(N,pe,Z),fe]),"cursor");break;case"hsl":we((ne?$i:Pv)([...Id(N,pe,Z),fe]),"cursor");break}}function Ce(N){switch(_.value){case"hsv":[T,$,D]=E.value,we(Ra([T,$,D,N]),"cursor");break;case"rgb":[z,A,L]=W.value,we(_o([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=W.value,we(Ti([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we($i([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),pe(),Z(),g.value=N}function me(N){we(N,"input"),Rt(Oe)}function Oe(N=!0){const{value:te}=m;if(te){const{nTriggerFormChange:pe,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),pe(),Z()}}function _e(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function ve(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),v(!1)}function H(){const{value:N}=m,{onConfirm:te}=e;te&&te(N),v(!1)}const U=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[m.value],C.value=0)}),At(()=>{if(!(r&&r===m.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:pe,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:qe,[ye("fontSize",N)]:Ye}}=f.value;return{"--n-bezier":te,"--n-text-color":pe,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":Ye,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":qe,"--n-divider-color":Ae}}),G=d?et("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=W,{value:pe}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,G==null?void 0:G.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(sX,{clsPrefix:Pe,rgba:te,displayedHue:pe,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(iX,{clsPrefix:Pe,hue:pe,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(lX,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(xX,{clsPrefix:Pe,mode:_.value,color:W.value&&_s(W.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(vX,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:_.value,modes:fe,onUpdateMode:k,value:m.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(yX,{clsPrefix:Pe,mode:_.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Tt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Tt,{size:"small",onClick:Me,disabled:!m.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Tt,{size:"small",onClick:_e,disabled:!U.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Tt,{size:"small",onClick:ve,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:W,mergedShow:p,mergedDisabled:a,isMounted:Hn(),adjustedTo:Ht(e),mergedValue:m,handleTriggerClick(){v(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(vr(N))||v(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(gX,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Or,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(this.renderPanel(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),SX={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},qP=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:p,closeColorPressed:v,modalColor:b,boxShadow1:g,popoverColor:m,actionColor:y}=e;return Object.assign(Object.assign({},SX),{lineHeight:r,color:i,colorModal:b,colorPopover:m,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:p,closeColorPressed:v,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:g,borderRadius:n})},kX={name:"Card",common:nt,self:qP},YP=kX,_X={name:"Card",common:tt,self(e){const t=qP(e),{cardColor:n,modalColor:r,popoverColor:o}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=o,t}},GP=_X,RX=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[G_({background:"var(--n-color-modal)"}),I("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),I("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),I("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),I("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),I("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),I("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),I("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),I("embedded",` - background-color: var(--n-color-embedded); - `)]),Mo(S("card",` - background: var(--n-color-modal); - `,[I("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),ei(S("card",` - background: var(--n-color-popover); - `,[I("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),b0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},PX=Wn(b0),XP=Object.assign(Object.assign({},Se.props),b0),ZP=J({name:"Card",props:XP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=je(e),i=Se("Card","-card",RX,YP,e,r),a=en("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:p,titleTextColor:v,titleFontWeight:b,borderColor:g,actionColor:m,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:_,closeColorHover:k,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:D,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:W,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=Pi(W);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":p,"--n-line-height":C,"--n-action-color":m,"--n-title-text-color":v,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":_,"--n-close-color-hover":k,"--n-close-color-pressed":T,"--n-border-color":g,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":D,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?et("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},kt(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),kt(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),kt(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(ri,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),kt(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),kt(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),kt(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),QP=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),$X={name:"Carousel",common:nt,self:QP},TX=$X,OX={name:"Carousel",common:tt,self:QP},zX=OX;function MX(e){const{length:t}=e;return t>1&&(e.push(IC(e[0],0,"append")),e.unshift(IC(e[t-1],t-1,"prepend"))),e}function IC(e,t,n){return ar(e,{key:`carousel-item-duplicate-${t}-${n}`})}function FC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function Ap(e,t){return t?e+1:e}function DX(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function IX(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function FX(e,t){return t&&e>3?e-2:e}function AC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function BC(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function hd(e,t,n){return en?n:e}function AX(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const JP="n-carousel-methods",BX=e=>ot(JP,e),y0=(e="unknown",t="component")=>{const n=Le(JP);return n||Nn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},EX={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},LX=J({name:"CarouselDots",props:EX,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=y0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,p=h==="PageUp"||h==="ArrowUp",v=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",g=h==="PageDown"||h==="ArrowLeft",m=r.isVertical(),y=m?p:b,C=m?v:g;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return sb(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},EA(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),NX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),HX=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),jX=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=je(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=y0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},NX),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},HX))}}),Su="CarouselItem",VX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===Su},e$=J({name:Su,setup(e){const{mergedClsPrefixRef:t}=je(e),n=y0(H1(Su),`n-${H1(Su)}`),r=F(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));It(()=>n.addSlide(r.value)),Bt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),WX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[I("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - background-color: var(--n-dot-color-active); - `)])]),I("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),I("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),I("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),I("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),I("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[I("current",` - transform: translateY(-50%) translateZ(0); - `),I("prev",` - transform: translateY(-100%) translateZ(-200px); - `),I("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),I("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),I("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),I("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),I("show-arrow",[I("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),I("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),I("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),I("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[I("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[I("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),I("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[I("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),I("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[I("current",` - opacity: 1; - pointer-events: auto; - `)])]),I("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[I("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),I("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),I("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),UX=["transitionDuration","transitionTimingFunction"],t$=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Bp=!1;const KX=J({name:"Carousel",props:t$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(null),o=F(null),i=F([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),p=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),v=P(()=>h.value?1:e.slidesPerView),b=P(()=>p.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),g=F({width:0,height:0}),m=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Ie}=b;if(Ie)return oe.map(Ze=>BC(Ze));const{value:Ne}=v,{value:Qe}=g,{value:Ue}=s;let le=Qe[Ue];if(Ne!=="auto"){const{spaceBetween:Ze}=e,bt=le-(Ne-1)*Ze,be=1/Math.max(1,Ne);le=bt*be}const De=Object.assign(Object.assign({},Qe),{[Ue]:le});return oe.map(()=>De)}),y=P(()=>{const{value:oe}=m;if(!oe.length)return[];const{centeredSlides:Ie,spaceBetween:Ne}=e,{value:Qe}=s,{[Qe]:Ue}=g.value;let le=0;return oe.map(({[Qe]:De})=>{let Ze=le;return Ie&&(Ze+=(De-Ue)/2),le+=De+Ne,Ze})}),C=F(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?xn(oe,UX):{}}),w=P(()=>h.value?0:AX(x.value.transitionDuration)),_=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Ie=!(b.value||v.value===1),Ne=De=>{if(Ie){const{value:Ze}=s;return{[Ze]:`${m.value[De][Ze]}px`}}};if(h.value)return oe.map((De,Ze)=>Ne(Ze));const{effect:Qe,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((De,Ze,bt)=>{const be=Object.assign(Object.assign({},Ne(bt)),{[`margin-${le}`]:`${Ue}px`});return De.push(be),C.value&&(Qe==="fade"||Qe==="card")&&Object.assign(be,x.value),De},[])}),k=P(()=>{const{value:oe}=p,{length:Ie}=i.value;if(oe!=="auto")return Math.max(Ie-oe,0)+1;{const{value:Ne}=m,{length:Qe}=Ne;if(!Qe)return Ie;const{value:Ue}=y,{value:le}=s,De=g.value[le];let Ze=Ne[Ne.length-1][le],bt=Qe;for(;bt>1&&ZeFX(k.value,f.value)),$=Ap(e.defaultIndex,f.value),R=F(FC($,k.value,f.value)),D=St(xe(e,"currentIndex"),R),z=P(()=>Ap(D.value,f.value));function A(oe){var Ie,Ne;oe=hd(oe,0,k.value-1);const Qe=FC(oe,k.value,f.value),{value:Ue}=D;Qe!==D.value&&(R.value=Qe,(Ie=e["onUpdate:currentIndex"])===null||Ie===void 0||Ie.call(e,Qe,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Qe,Ue))}function L(oe=z.value){return DX(oe,k.value,e.loop)}function j(oe=z.value){return IX(oe,k.value,e.loop)}function E(oe){const Ie=N(oe);return Ie!==null&&L()===Ie}function W(oe){const Ie=N(oe);return Ie!==null&&j()===Ie}function K(oe){return z.value===N(oe)}function Q(oe){return D.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Ie=hd(Ap(oe,f.value),0,k.value);(oe!==D.value||Ie!==z.value)&&A(Ie)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const _e=F({});function ve(oe,Ie=0){_e.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Ie}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),ve(Oe=0,oe))}function H(oe,Ie){const Ne=U(oe);Ne!==Oe&&Ie>0&&(me=!0),Oe=U(z.value),ve(Ne,Ie)}function U(oe){let Ie;return oe>=k.value-1?Ie=Y():Ie=y.value[oe]||0,Ie}function Y(){if(p.value==="auto"){const{value:oe}=s,{[oe]:Ie}=g.value,{value:Ne}=y,Qe=Ne[Ne.length-1];let Ue;if(Qe===void 0)Ue=Ie;else{const{value:le}=m;Ue=Qe+le[le.length-1][oe]}return Ue-Ie}else{const{value:oe}=y;return oe[k.value-1]||0}}const ce={currentIndexRef:D,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:W,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:G,removeSlide:B,onCarouselItemClick:pe};BX(ce);function G(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Ie=N(oe);Ie!==-1&&i.value.splice(Ie,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Ie=N(oe);if(Ie!==-1){const Ne=[_.value[Ie]],Qe=ce.isPrev(Ie),Ue=ce.isNext(Ie);return Qe&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),ac(Ne)}}function pe(oe,Ie){let Ne=!me&&!Ye&&!ft;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Ie.preventDefault(),Ie.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,qe=0,Ye=!1,ft=!1;function ht(oe){var Ie;if(Bp||!(!((Ie=o.value)===null||Ie===void 0)&&Ie.contains(vr(oe))))return;Bp=!0,Ye=!0,ft=!1,qe=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=AC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(_t("touchmove",document,vt,{passive:!0}),_t("touchend",document,Ve),_t("touchcancel",document,Ve)),e.draggable&&(_t("mousemove",document,vt),_t("mouseup",document,Ve))}function vt(oe){const{value:Ie}=l,{value:Ne}=s,Qe=AC(oe)?oe.touches[0]:oe,Ue=Ie?Qe.clientY-Pe:Qe.clientX-ge,le=g.value[Ne];Ae=hd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&ve(Oe-Ae,0)}function Ve(){const{value:oe}=z;let Ie=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Qe=[...y.value.slice(0,k.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Ie=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Ie=j(oe))}Ie!==null&&Ie!==oe?(ft=!0,A(Ie),Rt(()=>{(!f.value||R.value!==D.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){Ye&&(Bp=!1),Ye=!1,ge=0,Pe=0,Ae=0,qe=0,Ct("touchmove",document,vt),Ct("touchend",document,Ve),Ct("touchcancel",document,Ve),Ct("mousemove",document,vt),Ct("mouseup",document,Ve)}function We(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(_e.value.transitionDuration="0ms"),me=!1}function Ke(oe){if(oe.preventDefault(),me)return;let{deltaX:Ie,deltaY:Ne}=oe;oe.shiftKey&&!Ie&&(Ie=Ne);const Qe=-1,Ue=1,le=(Ie||Ne)>0?Ue:Qe;let De=0,Ze=0;l.value?Ze=le:De=le;const bt=10;(Ze*Ne>=bt||De*Ie>=bt)&&(le===Ue&&!re()?de():le===Qe&&!V()&&ue())}function X(){g.value=BC(r.value,!0),ne()}function q(){var oe,Ie;b.value&&((Ie=(oe=m.effect).scheduler)===null||Ie===void 0||Ie.call(oe),m.effect.run())}function ke(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}It(()=>{At(ne),requestAnimationFrame(()=>C.value=!0)}),Bt(()=>{Xe(),fe()}),cb(()=>{const{value:oe}=i,{value:Ie}=a,Ne=new Map,Qe=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leZe.el===oe[le]);De!==le&&(Ue=!0),Ne.set(oe[le],De)}Ue&&oe.sort((le,De)=>Qe(le)-Qe(De))}),it(z,(oe,Ie)=>{if(oe!==Ie)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=k;oe===Ne-2&&Ie===1?oe=0:oe===1&&Ie===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),it([f,p],()=>void Rt(()=>A(z.value))),it(y,()=>d.value&&Me(),{deep:!0}),it(d,oe=>{oe?Me():(me=!1,ve(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?ht:void 0,onMousedown:e.draggable?ht:void 0,onWheel:e.mousewheel?Ke:void 0})),ae=P(()=>Object.assign(Object.assign({},xn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:D.value})),ze=P(()=>({total:T.value,currentIndex:D.value,to:ce.to})),ie={getCurrentIndex:()=>D.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",WX,TX,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Ie,dotColor:Ne,dotColorActive:Qe,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:De,arrowColor:Ze}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Qe,"--n-dot-size":Ie,"--n-dot-line-width":le,"--n-dot-line-width-active":De,"--n-arrow-color":Ze}}),$e=n?et("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:D,realIndex:z,slideStyles:_,translateStyle:_e,slidesControlListeners:Ee,handleTransitionEnd:We,handleResize:X,handleSlideResize:q,handleMouseenter:ke,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:p}}=this,v=f&&Nr(f())||[];let b=qX(v);return b.length||(b=v.map(g=>u(e$,null,{default:()=>ar(g)}))),this.duplicatedable&&(b=MX(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(g=>u(jr,{onResize:this.handleSlideResize},{default:()=>g}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(jr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((g,m)=>u("div",{style:o[m],key:m},un(u(Ft,Object.assign({},s),{default:()=>g}),[[$r,this.isActive(m)]]))):b)}),this.showDots&&d.total>1&&Da(h,d,()=>[u(LX,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Da(p,c,()=>[u(jX,null)]))}});function qX(e){return e.reduce((t,n)=>(VX(n)&&t.push(n),t),[])}const YX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},n$=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:p,lineHeight:v}=e;return Object.assign(Object.assign({},YX),{labelLineHeight:v,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:p,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${He(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},GX={name:"Checkbox",common:nt,self:n$},jl=GX,XX={name:"Checkbox",common:tt,self(e){const{cardColor:t}=e,n=n$(e);return n.color="#0000",n.checkMarkColor=t,n}},Vl=XX,r$=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},ZX={name:"Cascader",common:nt,peers:{InternalSelectMenu:Hl,InternalSelection:Ch,Scrollbar:br,Checkbox:jl,Empty:oi},self:r$},QX=ZX,JX={name:"Cascader",common:tt,peers:{InternalSelectMenu:yc,InternalSelection:h0,Scrollbar:yr,Checkbox:Vl,Empty:oi},self:r$},eZ=JX;function pd(e){return e?e.map(t=>t.rawNode):null}function tZ(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:lm(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function lm(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const nZ=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),rZ=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),o$="n-checkbox-group",i$={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},a$=J({name:"CheckboxGroup",props:i$,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Sn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=F(e.defaultValue),a=P(()=>e.value),l=St(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:p,nTriggerFormChange:v}=n,{onChange:b,"onUpdate:value":g,onUpdateValue:m}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),m&&he(m,y,{actionType:"check",value:h}),g&&he(g,y,{actionType:"check",value:h}),p(),v(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),m&&he(m,y,{actionType:"uncheck",value:h}),g&&he(g,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,p(),v())}else f?(m&&he(m,[h],{actionType:"check",value:h}),g&&he(g,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],p(),v()):(m&&he(m,[],{actionType:"uncheck",value:h}),g&&he(g,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],p(),v())}return ot(o$,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),oZ=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),I("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),I("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),I("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),I("disabled",{cursor:"not-allowed"},[I("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),On({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),Mo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),ei(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),l$=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),ii=J({name:"Checkbox",props:l$,setup(e){const t=F(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Sn(e,{mergedSize(_){const{size:k}=e;if(k!==void 0)return k;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(_){const{mergedSize:T}=_;if(T!==void 0)return T.value}return"medium"},mergedDisabled(_){const{disabled:k}=e;if(k!==void 0)return k;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return _?_.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(o$,null),c=F(e.defaultChecked),d=xe(e,"checked"),f=St(d,c),h=lt(()=>{if(s){const _=s.valueSetRef.value;return _&&e.value!==void 0?_.has(e.value):!1}else return f.value===e.checkedValue}),p=Se("Checkbox","-checkbox",oZ,jl,e,n);function v(_){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:k,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:D}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,_),$&&he($,z,_),k&&he(k,z,_),R(),D(),c.value=z}}function b(_){a.value||v(_)}function g(_){if(!a.value)switch(_.key){case" ":case"Enter":v(_)}}function m(_){switch(_.key){case" ":_.preventDefault()}}const y={focus:()=>{var _;(_=t.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=t.value)===null||_===void 0||_.blur()}},C=en("Checkbox",o,n),x=P(()=>{const{value:_}=l,{common:{cubicBezierEaseInOut:k},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:D,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:W,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:_e,[ye("fontSize",_)]:ve,[ye("size",_)]:Me}}=p.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":_e,"--n-size":Me,"--n-bezier":k,"--n-border-radius":T,"--n-border":W,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":D,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":ve,"--n-label-padding":me}}),w=r?et("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:p,labelId:Tr(),handleClick:b,handleKeyUp:g,handleKeyDown:m,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:p}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:p,onMousedown:()=>{_t("selectstart",window,v=>{v.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(Do,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},rZ):u("div",{key:"check",class:`${c}-checkbox-icon`},nZ)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),wc="n-cascader",EC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:p,mergedThemeRef:v,labelFieldRef:b,showCheckboxRef:g,updateHoverKey:m,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:_,doUncheck:k,renderLabelRef:T}=Le(wc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),D=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=lt(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=lt(()=>r.value?a.value.includes($.value):!1),j=lt(()=>l.value.includes($.value)),E=lt(()=>{const{value:me}=s;return me===null?!1:me===$.value}),W=lt(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:_e}=c,{value:ve}=h,{value:Me}=$,{value:H}=K,{value:U}=re;Zn(me,"checkbox")||(Oe&&!U&&!_e.has(Me)&&ve&&(C(Me),ve(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),m(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;m(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?k(Oe):_(Oe):(_(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:W,showCheckbox:g,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:p,mergedTheme:v,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:D,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(ii,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(dt,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(d0,null)}):null}):null:u(so,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(dt,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ya,null)})}))))}}),iZ=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(wc),o=F(null),i=F(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>hn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(ln,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(qo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(EC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(EC,{key:r.key,tmNode:r}))}))}}),aZ=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(wc),l=[],s=F(null),c=F(null);function d(){o()}ph(c,d);function f(g){var m;const{value:{loadingRequiredMessage:y}}=t;(m=s.value)===null||m===void 0||m.showOnce(y(g))}function h(g){i(g)}function p(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onFocus(g)}function v(g){const{value:m}=c;!m||m.contains(g.relatedTarget)||e.onBlur(g)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:p,handleFocusout:v,handleClickOutside:h},{scroll(g,m,y){const C=l[g];C&&C.scroll(m,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?un(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(iZ,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(Vq,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},gt(this.$slots.empty,()=>[u(Ui,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),kt(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Fo,{onFocus:this.onTabout})),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),lZ=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(wc),p=F(null),v=P(()=>tZ(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:D}=e;return(z,A,L)=>L.some(j=>j[D]&&~j[D].indexOf(z))}),g=P(()=>{const{pattern:R}=e,{value:D}=b;return(R?v.value.filter(z=>D(R,z.rawNode,z.path)):v.value).map(z=>({value:z.value,label:z.label}))}),m=P(()=>co(g.value,Sh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:D}=n;Array.isArray(D)?D.includes(R.key)?d(R.key):f(R.key):D===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=p.value)===null||R===void 0||R.prev()}function _(){var R;(R=p.value)===null||R===void 0||R.next()}function k(){var R;if(p){const D=(R=p.value)===null||R===void 0?void 0:R.getPendingTmNode();return D&&x(D),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:p,selectTreeMate:m,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:_,enter:k})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(Ft,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?un(u(xc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>gt(r["not-found"],()=>[])}),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),sZ=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[Dn({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[I("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[I("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[I("checkmark",{color:"var(--n-option-check-mark-color)"},[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),I("arrow",{color:"var(--n-option-arrow-color)"})])]),I("selected",{color:"var(--n-option-text-color-active)"}),I("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),I("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),I("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[I("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),s$=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Ht.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),cZ=J({name:"Cascader",props:s$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=je(e),a=Se("Cascader","-cascader",sZ,QX,e,r),{localeRef:l}=Cn("Cascader"),s=F(e.defaultValue),c=P(()=>e.value),d=St(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=F(""),p=Sn(e),{mergedSizeRef:v,mergedDisabledRef:b,mergedStatusRef:g}=p,m=F(null),y=F(null),C=F(null),x=F(null),w=F(null),_=F(new Set),k=F(null),T=F(null),$=Ht(e),R=F(!1),D=ie=>{_.value.add(ie)},z=ie=>{_.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return co(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),W=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!_.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);xa(e.options)&&it(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),_e.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Qe}=p;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Ie&&he(Ie,ie,Te,se),s.value=ie,Ne(),Qe()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Ie,getNode:Ne,getPath:Qe}}=A;if($e)try{const{checkedKeys:Ue}=Ie(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var De;return pd((De=Qe(le))===null||De===void 0?void 0:De.treeNodePath)})),oe&&G(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof A2){if(m.value){const le=Ne(ie);le!==null&&m.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,pd(Qe(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,pd((Te=Qe(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Ie}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Qe=>{var Ue;return((Ue=oe(Qe))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Qe=>{var Ue;return pd((Ue=Ie(Qe))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Ie}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Qe=>{const Ue=Ie(Qe);return Ue===null?{label:String(Qe),value:Qe}:{label:ie?lm(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Ie}=A.value;if(oe===null)return null;const Ne=Ie(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?lm(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),_e=F(!1),ve=xe(e,"show"),Me=St(ve,_e),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),U=P(()=>!!(e.filterable&&h.value));it(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,Rt(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=m.value)===null||se===void 0||se.scroll(oe.level,oe.index,hn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=p;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=p;Te&&he(Te,ie),se()}function G(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&G())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function pe(ie){var Te;U.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(vr(ie))||te())}function Z(ie){!U.value||pe(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Ie}=A;switch(ie){case"prev":if(oe!==null){const Ne=Ie.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=m.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"next":if(oe===null){const Ne=Ie.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=m.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,hn(Q.value)))}else{const Ne=Ie.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=m.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,hn(Q.value)))}break;case"child":if(oe!==null){const Ne=Ie.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Qe=Ie.getChild(oe);Qe!==null&&(ue(oe),ee(Qe.key))}else{const{value:Qe}=_;if(!Qe.has(oe)){D(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Ie.getParent(oe);if(Ne!==null){ee(Ne.key);const Qe=Ne.getParent();ue(Qe===null?null:Qe.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!Zn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=U,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Ie=Ce(oe);!e.multiple&&Ie&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(U.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?U.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!U.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!U.value&&ne("child");break;case"Escape":Me.value&&(Fa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function qe(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function Ye(ie){var Te;!((Te=m.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ft(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function ht(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function vt(ie){Zn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),G())}function Ve(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function We(ie){h.value=ie.target.value}function Ke(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function X(){var ie;(ie=k.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function ke(){Me.value&&(U.value?X():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));ot(wc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:_,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:Hn(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:X,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:D,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:pe,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Ie,menuBoxShadow:Ne,menuDividerColor:Qe,menuBorderRadius:Ue,menuHeight:le,optionColorHover:De,optionHeight:Ze,optionFontSize:bt,loadingColor:be,columnWidth:Fe},common:{cubicBezierEaseInOut:Je}}=a.value;return{"--n-bezier":Je,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":Fe,"--n-menu-color":Ie,"--n-menu-divider-color":Qe,"--n-option-height":Ze,"--n-option-font-size":bt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":De,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":He(Ie,{alpha:.75}),"--n-loading-color":be}}),ze=i?et("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:ke,mergedStatus:g,selectMenuFollowerRef:k,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:m,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:U,pattern:h,treeMate:A,mergedSize:v,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:W,handleMenuTabout:Ve,handleMenuFocus:ft,handleMenuBlur:ht,handleMenuKeydown:Pe,handleMenuMousedown:vt,handleTriggerFocus:qe,handleTriggerBlur:Ye,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:Ke,handlePatternInput:We,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Or,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(aZ,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Or,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(lZ,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),dZ={name:"Code",common:tt,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:o}}},c$=dZ,uZ=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},fZ={name:"Code",common:nt,self:uZ},d$=fZ,hZ=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[I("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),I("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),u$=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),f$=J({name:"Code",props:u$,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(),i=F(null),a=n?{value:void 0}:R2(e),l=(p,v,b)=>{const{value:g}=a;return!g||!(p&&g.getLanguage(p))?null:g.highlight(b?v.trim():v,{language:p}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:p}=i;if(!p)return;const{language:v}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(v){const m=l(v,b,e.trim);if(m!==null){if(e.inline)p.innerHTML=m;else{const y=p.querySelector(".__code__");y&&p.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=m,p.appendChild(C)}return}}if(e.inline){p.textContent=b;return}const g=p.querySelector(".__code__");if(g)g.textContent=b;else{const m=document.createElement("pre");m.className="__code__",m.textContent=b,p.innerHTML="",p.appendChild(m)}};It(c),it(xe(e,"language"),c),it(xe(e,"code"),c),n||it(a,c);const d=Se("Code","-code",hZ,d$,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:p,fontFamilyMono:v},self:{textColor:b,fontSize:g,fontWeightStrong:m,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":_,"hue-4":k,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":D}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:g,"--n-font-family":v,"--n-font-weight-strong":m,"--n-bezier":p,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":_,"--n-hue-4":k,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":D,"--n-line-number-text-color":y}}),h=o?et("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let p=1;const v=[];let b=!1;for(const g of e.code)g===` -`?(b=!0,v.push(p++)):b=!1;return b||v.push(p++),v.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),h$=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},pZ={name:"Collapse",common:nt,self:h$},vZ=pZ,gZ={name:"Collapse",common:tt,self:h$},mZ=gZ,bZ=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[I("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),I("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),I("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),Go({duration:"0.15s"})]),I("active",[M("header",[I("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),p$=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),v$="n-collapse",yZ=J({name:"Collapse",props:p$,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=F(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=St(a,i),s=Se("Collapse","-collapse",bZ,vZ,e,n);function c(b){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:m,onExpandedNamesChange:y}=e;m&&he(m,b),g&&he(g,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:g}=e;g&&he(g,b)}function f(b,g,m){const{accordion:y}=e,{value:C}=l;if(y)b?(c([g]),d({name:g,expanded:!0,event:m})):(c([]),d({name:g,expanded:!1,event:m}));else if(!Array.isArray(C))c([g]),d({name:g,expanded:!0,event:m});else{const x=C.slice(),w=x.findIndex(_=>g===_);~w?(x.splice(w,1),c(x),d({name:g,expanded:!1,event:m})):(x.push(g),c(x),d({name:g,expanded:!0,event:m}))}}ot(v$,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=en("Collapse",o,n),p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:g,dividerColor:m,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:_,titleFontSize:k,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":_,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":m,"--n-title-font-size":k,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":g,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),v=r?et("collapse",void 0,p,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),xZ=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Q_(xe(e,"show"))}},render(){return u(Io,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?un(i,[[$r,e]]):e?i:null}})}}),g$={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},wZ=J({name:"CollapseItem",props:g$,setup(e){const{mergedRtlRef:t}=je(e),n=Tr(),r=lt(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(v$);o||Nn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(p=>p===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:en("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Da(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Da(c,{collapsed:r},()=>{var d;return[u(dt,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(u0,null):u(Ya,null)})]})),n==="left"&&l),NA(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(xZ,{clsPrefix:i,displayDirective:o,show:!r},t))}}),CZ=S("collapse-transition",{width:"100%"},[Go()]),m$=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},SZ={name:"CollapseTransition",common:nt,self:m$},kZ=SZ,_Z={name:"CollapseTransition",common:tt,self:m$},RZ=_Z,b$=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),PZ=J({name:"CollapseTransition",props:b$,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("CollapseTransition","-collapse-transition",CZ,kZ,e,t),i=en("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?et("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Io,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Gn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),y$={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Qn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},x$=J({name:"ConfigProvider",alias:["App"],props:y$,setup(e){const t=Le(Ur,null),n=P(()=>{const{theme:v}=e;if(v===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return v===void 0?b:b===void 0?v:Object.assign({},b,v)}),r=P(()=>{const{themeOverrides:v}=e;if(v!==null){if(v===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?v:bl({},b,v)}}}),o=lt(()=>{const{namespace:v}=e;return v===void 0?t==null?void 0:t.mergedNamespaceRef.value:v}),i=lt(()=>{const{bordered:v}=e;return v===void 0?t==null?void 0:t.mergedBorderedRef.value:v}),a=P(()=>{const{icons:v}=e;return v===void 0?t==null?void 0:t.mergedIconsRef.value:v}),l=P(()=>{const{componentOptions:v}=e;return v!==void 0?v:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:v}=e;return v!==void 0?v:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var v;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const g={};for(const m of b)g[m.name]=$u(m),(v=m.peers)===null||v===void 0||v.forEach(y=>{y.name in g||(g[y.name]=$u(y))});return g}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=P(()=>{const{value:v}=n,{value:b}=r,g=b&&Object.keys(b).length!==0,m=v==null?void 0:v.name;return m?g?`${m}-${qs(JSON.stringify(r.value))}`:m:g?qs(JSON.stringify(r.value)):""});return ot(Ur,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedLocaleRef.value:v}),mergedDateLocaleRef:P(()=>{const{dateLocale:v}=e;if(v!==null)return v===void 0?t==null?void 0:t.mergedDateLocaleRef.value:v}),mergedHljsRef:P(()=>{const{hljs:v}=e;return v===void 0?t==null?void 0:t.mergedHljsRef.value:v}),mergedKatexRef:P(()=>{const{katex:v}=e;return v===void 0?t==null?void 0:t.mergedKatexRef.value:v}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||d2}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),w$={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},$Z=J({name:"Countdown",props:w$,setup(e){let t=null,n=0,r=!1;const o=F(0);At(()=>{o.value=e.duration});let i=-1;function a(p){return e.duration-n+i-p}function l(p){const v=Math.floor(p/36e5),b=Math.floor(p%36e5/6e4),g=Math.floor(p%6e4/1e3),m=Math.floor(p%1e3);return{hours:v,minutes:b,seconds:g,milliseconds:m}}function s(p){const{hours:v,minutes:b,seconds:g,milliseconds:m}=p,{precision:y}=e;switch(y){case 0:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}`;default:return`${String(v).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(g).padStart(2,"0")}.${String(Math.floor(m/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var p;const{precision:v}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(p=e.onFinish)===null||p===void 0||p.call(e));return}let g;switch(v){case 3:case 2:g=b%34;break;case 1:g=b%100;break;default:g=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},g)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};It(()=>{At(()=>{if(e.active)i=performance.now(),c();else{const p=performance.now();i!==-1&&(n+=p-i),d()}})}),Bt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),TZ=e=>1-Math.pow(1-e,5);function OZ(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*TZ(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const C$={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},zZ=J({name:"NumberAnimation",props:C$,setup(e){const{localeRef:t}=Cn("name"),{duration:n}=e,r=F(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,p=e.to)=>{i=!0,r.value=e.from,h!==p&&OZ({from:h,to:p,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const v=P7(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),g=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,m=e.showSeparator?b.format(Number(v[0])):v[0],y=v[1];return{integer:m,decimal:y,decimalSeparator:g}});function d(){i||s()}return It(()=>{At(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),MZ={name:"Popselect",common:tt,peers:{Popover:Ja,InternalSelectMenu:yc}},S$=MZ;function DZ(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const IZ={name:"Popselect",common:nt,peers:{Popover:Qa,InternalSelectMenu:Hl},self:DZ},x0=IZ,k$="n-popselect",FZ=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),w0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},LC=Wn(w0),AZ=J({name:"PopselectPanel",props:w0,setup(e){const t=Le(k$),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=Se("Popselect","-pop-select",FZ,x0,t.props,n),i=P(()=>co(e.options,Sh("value","children")));function a(h,p){const{onUpdateValue:v,"onUpdate:value":b,onChange:g}=e;v&&he(v,h,p),b&&he(b,h,p),g&&he(g,h,p)}function l(h){c(h.key)}function s(h){Zn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:p}}=i;if(e.multiple)if(Array.isArray(e.value)){const v=[],b=[];let g=!0;e.value.forEach(m=>{if(m===h){g=!1;return}const y=p(m);y&&(v.push(y.key),b.push(y.rawNode))}),g&&(v.push(h),b.push(p(h).rawNode)),a(v,b)}else{const v=p(h);v&&a([h],[v.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const v=p(h);v&&a(h,v.rawNode);const{"onUpdate:show":b,onUpdateShow:g}=t.props;b&&he(b,!1),g&&he(g,!1),t.setShow(!1)}Rt(()=>{t.syncPosition()})}it(xe(e,"options"),()=>{Rt(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?et("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(xc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),_$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Va(La,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},La.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),w0),R$=J({name:"Popselect",props:_$,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,x0,e),n=F(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return ot(k$,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(AZ,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},xn(this.$props,LC),{ref:H_(r),onMouseenter:Rs([i,l.onMouseenter]),onMouseleave:Rs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(el,Object.assign({},Va(this.$props,LC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function P$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const BZ={name:"Select",common:nt,peers:{InternalSelection:Ch,InternalSelectMenu:Hl},self:P$},$$=BZ,EZ={name:"Select",common:tt,peers:{InternalSelection:h0,InternalSelectMenu:yc},self:P$},T$=EZ,LZ=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),O$=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),z$=J({name:"Select",props:O$,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Select","-select",LZ,$$,e,t),a=F(e.defaultValue),l=xe(e,"value"),s=St(l,a),c=F(!1),d=F(""),f=P(()=>{const{valueField:X,childrenField:q}=e,ke=Sh(X,q);return co(z.value,ke)}),h=P(()=>MY(R.value,e.valueField,e.childrenField)),p=F(!1),v=St(xe(e,"show"),p),b=F(null),g=F(null),m=F(null),{localeRef:y}=Cn("Select"),C=P(()=>{var X;return(X=e.placeholder)!==null&&X!==void 0?X:y.value.placeholder}),x=Ii(e,["items","options"]),w=[],_=F([]),k=F([]),T=F(new Map),$=P(()=>{const{fallbackOption:X}=e;if(X===void 0){const{labelField:q,valueField:ke}=e;return Be=>({[q]:String(Be),[ke]:Be})}return X===!1?!1:q=>Object.assign(X(q),{value:q})}),R=P(()=>k.value.concat(_.value).concat(x.value)),D=P(()=>{const{filter:X}=e;if(X)return X;const{labelField:q,valueField:ke}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return zp(Be,ae);const ze=Ee[ke];return typeof ze=="string"?zp(Be,ze):typeof ze=="number"?zp(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:X}=R,{value:q}=d;return!q.length||!e.filterable?X:zY(X,D.value,q,e.childrenField)}});function A(X){const q=e.remote,{value:ke}=T,{value:Be}=h,{value:Ee}=$,ae=[];return X.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&ke.has(ze))ae.push(ke.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:X}=s;return Array.isArray(X)?A(X):[]}return null}),j=P(()=>{const{value:X}=s;return!e.multiple&&!Array.isArray(X)?X===null?null:A([X])[0]||null:null}),E=Sn(e),{mergedSizeRef:W,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(X,q){const{onChange:ke,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;ke&&he(ke,X,q),Ee&&he(Ee,X,q),Be&&he(Be,X,q),a.value=X,ae(),ze()}function re(X){const{onBlur:q}=e,{nTriggerFormBlur:ke}=E;q&&he(q,X),ke()}function ee(){const{onClear:X}=e;X&&he(X)}function ue(X){const{onFocus:q,showOnFocus:ke}=e,{nTriggerFormFocus:Be}=E;q&&he(q,X),Be(),ke&&Oe()}function de(X){const{onSearch:q}=e;q&&he(q,X)}function Ce(X){const{onScroll:q}=e;q&&he(q,X)}function we(){var X;const{remote:q,multiple:ke}=e;if(q){const{value:Be}=T;if(ke){const{valueField:Ee}=e;(X=L.value)===null||X===void 0||X.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(X){const{onUpdateShow:q,"onUpdate:show":ke}=e;q&&he(q,X),ke&&he(ke,X),p.value=X}function Oe(){K.value||(me(!0),p.value=!0,e.filterable&&vt())}function _e(){me(!1)}function ve(){d.value="",k.value=w}const Me=F(!1);function H(){e.filterable&&(Me.value=!0)}function U(){e.filterable&&(Me.value=!1,v.value||ve())}function Y(){K.value||(v.value?e.filterable?vt():_e():Oe())}function ce(X){var q,ke;!((ke=(q=m.value)===null||q===void 0?void 0:q.selfRef)===null||ke===void 0)&&ke.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function G(X){ue(X),c.value=!0}function B(X){c.value=!0}function N(X){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(X.relatedTarget)||(c.value=!1,re(X),_e())}function te(){var X;(X=b.value)===null||X===void 0||X.focus(),_e()}function pe(X){var q;v.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(vr(X))||_e())}function Z(X){if(!Array.isArray(X))return[];if($.value)return Array.from(X);{const{remote:q}=e,{value:ke}=h;if(q){const{value:Be}=T;return X.filter(Ee=>ke.has(Ee)||Be.has(Ee))}else return X.filter(Be=>ke.has(Be))}}function fe(X){ne(X.rawNode)}function ne(X){if(K.value)return;const{tag:q,remote:ke,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!ke){const{value:ae}=k,ze=ae[0]||null;if(ze){const ie=_.value;ie.length?ie.push(ze):_.value=[ze],k.value=w}}if(ke&&T.value.set(X[Ee],X),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===X[Ee]);if(~ze){if(ae.splice(ze,1),q&&!ke){const ie=ge(X[Ee]);~ie&&(_.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(X[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!ke){const ae=ge(X[Ee]);~ae?_.value=[_.value[ae]]:_.value=w}ht(),_e(),V(X[Ee],X)}}function ge(X){return _.value.findIndex(ke=>ke[e.valueField]===X)}function Pe(X){v.value||Oe();const{value:q}=X.target;d.value=q;const{tag:ke,remote:Be}=e;if(de(q),ke&&!Be){if(!q){k.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||_.value.some(ie=>ie[ze]===ae[ze])?k.value=w:k.value=[ae]}}function Ae(X){X.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&_e(),ee(),q?V([],[]):V(null,null)}function qe(X){!Zn(X,"action")&&!Zn(X,"empty")&&X.preventDefault()}function Ye(X){Ce(X)}function ft(X){var q,ke,Be,Ee,ae;switch(X.key){case" ":if(e.filterable)break;X.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(v.value){const ze=(ke=m.value)===null||ke===void 0?void 0:ke.getPendingTmNode();ze?fe(ze):e.filterable||(_e(),ht())}else if(Oe(),e.tag&&Me.value){const ze=k.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}X.preventDefault();break;case"ArrowUp":if(X.preventDefault(),e.loading)return;v.value&&((Be=m.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(X.preventDefault(),e.loading)return;v.value?(Ee=m.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":v.value&&(Fa(X),_e()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function ht(){var X;(X=b.value)===null||X===void 0||X.focus()}function vt(){var X;(X=b.value)===null||X===void 0||X.focusInput()}function Ve(){var X;!v.value||(X=g.value)===null||X===void 0||X.syncPosition()}we(),it(xe(e,"options"),we);const Xe={focus:()=>{var X;(X=b.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=b.value)===null||X===void 0||X.blur()}},We=P(()=>{const{self:{menuBoxShadow:X}}=i.value;return{"--n-menu-box-shadow":X}}),Ke=o?et("select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:Hn(),triggerRef:b,menuRef:m,pattern:d,uncontrolledShow:p,mergedShow:v,adjustedTo:Ht(e),uncontrolledValue:a,mergedValue:s,followerRef:g,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:W,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:U,handleTriggerOrMenuResize:Ve,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:G,handleKeydown:ft,handleMenuAfterLeave:ve,handleMenuClickOutside:pe,handleMenuScroll:Ye,handleMenuKeydown:ft,handleMenuMousedown:qe,mergedTheme:i,cssVars:o?void 0:We,themeClass:Ke==null?void 0:Ke.themeClass,onRender:Ke==null?void 0:Ke.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Or,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),un(u(xc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[$r,this.mergedShow],[gr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[gr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),NZ={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},M$=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:p,heightMedium:v}=e;return Object.assign(Object.assign({},NZ),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:p,itemSizeLarge:v,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},HZ={name:"Pagination",common:nt,peers:{Select:$$,Input:zr,Popselect:x0},self:M$},D$=HZ,jZ={name:"Pagination",common:tt,peers:{Select:T$,Input:Zr,Popselect:S$},self(e){const{primaryColor:t,opacity3:n}=e,r=He(t,{alpha:Number(n)}),o=M$(e);return o.itemBorderActive=`1px solid ${r}`,o.itemBorderDisabled="1px solid #0000",o}},I$=jZ;function VZ(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,p=!1;c>l+2&&(h=!0),d=l+1&&v.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)v.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return p?(o=!0,a=d+1,v.push({type:"fast-forward",active:!1,label:void 0,options:NC(d+1,s-1)})):d===s-2&&v[v.length-1].label!==s-1&&v.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),v[v.length-1].label!==s&&v.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:v}}function NC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const HC=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,jC=[I("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],WZ=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[I("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),mt("disabled",[I("hover",HC,jC),O("&:hover",HC,jC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[I("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),I("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[I("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),I("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),I("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),F$=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ht.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),A$=J({name:"Pagination",props:F$,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Pagination","-pagination",WZ,D$,e,n),{localeRef:a}=Cn("Pagination"),l=F(null),s=F(e.defaultPage),d=F((()=>{const{defaultPageSize:ve}=e;if(ve!==void 0)return ve;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=St(xe(e,"page"),s),h=St(xe(e,"pageSize"),d),p=P(()=>{const{itemCount:ve}=e;if(ve!==void 0)return Math.max(1,Math.ceil(ve/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),v=F("");At(()=>{e.simple,v.value=String(f.value)});const b=F(!1),g=F(!1),m=F(!1),y=F(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{g.value=!0,E()},_=()=>{g.value=!1,E()},k=ve=>{W(ve)},T=P(()=>VZ(f.value,p.value,e.pageSlot));At(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,m.value=!1):(g.value=!1,y.value=!1)});const $=P(()=>{const ve=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${ve}`,value:Me}:Me)}),R=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.inputSize)||$v(e.size)}),D=P(()=>{var ve,Me;return((Me=(ve=t==null?void 0:t.value)===null||ve===void 0?void 0:ve.Pagination)===null||Me===void 0?void 0:Me.selectSize)||$v(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const ve=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&ve>Me-1?Me-1:ve}),L=P(()=>{const{itemCount:ve}=e;return ve!==void 0?ve:(e.pageCount||1)*h.value}),j=en("Pagination",o,n),E=()=>{Rt(()=>{var ve;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(ve=l.value)===null||ve===void 0||ve.offsetWidth,Me.classList.remove("transition-disabled"))})};function W(ve){if(ve===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:U,simple:Y}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),s.value=ve,Y&&(v.value=String(ve))}function K(ve){if(ve===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:U}=e;Me&&he(Me,ve),H&&he(H,ve),U&&he(U,ve),d.value=ve,p.value{f.value,h.value,E()});const Oe=P(()=>{const{size:ve}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:U,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:G,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:pe,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:qe,itemBorder:Ye,itemBorderHover:ft,itemBorderPressed:ht,itemBorderActive:vt,itemBorderDisabled:Ve,itemBorderRadius:Xe,jumperTextColor:We,jumperTextColorDisabled:Ke,buttonColor:X,buttonColorHover:q,buttonColorPressed:ke,[ye("itemPadding",ve)]:Be,[ye("itemMargin",ve)]:Ee,[ye("inputWidth",ve)]:ae,[ye("selectWidth",ve)]:ze,[ye("inputMargin",ve)]:ie,[ye("selectMargin",ve)]:Te,[ye("jumperFontSize",ve)]:se,[ye("prefixMargin",ve)]:$e,[ye("suffixMargin",ve)]:oe,[ye("itemSize",ve)]:Ie,[ye("buttonIconSize",ve)]:Ne,[ye("itemFontSize",ve)]:Qe,[`${ye("itemMargin",ve)}Rtl`]:Ue,[`${ye("inputMargin",ve)}Rtl`]:le},common:{cubicBezierEaseInOut:De}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Qe,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Ie,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":pe,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":qe,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":Ye,"--n-item-border-hover":ft,"--n-item-border-disabled":Ve,"--n-item-border-active":vt,"--n-item-border-pressed":ht,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":De,"--n-jumper-font-size":se,"--n-jumper-text-color":We,"--n-jumper-text-color-disabled":Ke,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":G,"--n-button-color-hover":q,"--n-button-color":X,"--n-button-color-pressed":ke,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":U}}),_e=r?et("pagination",P(()=>{let ve="";const{size:Me}=e;return ve+=Me[0],ve}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:v,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:D,mergedTheme:i,mergedPageCount:p,startIndex:z,endIndex:A,showFastForwardMenu:m,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:g,handleMenuSelect:k,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:_,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:_e==null?void 0:_e.themeClass,onRender:_e==null?void 0:_e.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:p,pageSizeOptions:v,jumperValue:b,simple:g,prev:m,next:y,prefix:C,suffix:x,label:w,goto:_,handleJumperInput:k,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:D,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=m||e.prev,W=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,g&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u(Ot,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ni,null):u(Bi,null)})),g?u(Ot,null,u("div",{class:`${t}-pagination-quick-jumper`},u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ei,null):u(Li,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const _e=this.fastBackwardActive?u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Li,null):u(Ei,null)}):u(dt,{clsPrefix:t},{default:()=>u(CC,null)});K?ee=K({type:"fast-backward",node:_e,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=_e,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(R$,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!W&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:D},W?W({page:o,pageSize:p,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(dt,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Bi,null):u(Ni,null)})));case"size-picker":return!g&&l?u(z$,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:v,value:p,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!g&&s?u("div",{class:`${t}-pagination-quick-jumper`},_?_():gt(this.$slots.goto,()=>[d.goto]),u(En,{value:b,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:p,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),B$={padding:"8px 14px"},UZ={name:"Tooltip",common:tt,peers:{Popover:Ja},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:r,textColor:o})}},kh=UZ,KZ=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},B$),{borderRadius:t,boxShadow:n,color:pt(r,"rgba(0, 0, 0, .85)"),textColor:r})},qZ={name:"Tooltip",common:nt,peers:{Popover:Qa},self:KZ},_h=qZ,YZ={name:"Ellipsis",common:tt,peers:{Tooltip:kh}},E$=YZ,GZ={name:"Ellipsis",common:nt,peers:{Tooltip:_h}},L$=GZ,N$={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},XZ={name:"Radio",common:tt,self(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},H$=XZ,ZZ=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:p,heightLarge:v,lineHeight:b}=e;return Object.assign(Object.assign({},N$),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:v,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${He(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},QZ={name:"Radio",common:nt,self:ZZ},C0=QZ,JZ={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},j$=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:p,heightLarge:v,heightHuge:b,textColor3:g,opacityDisabled:m}=e;return Object.assign(Object.assign({},JZ),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:v,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:He(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})},eQ={name:"Dropdown",common:nt,peers:{Popover:Qa},self:j$},S0=eQ,tQ={name:"Dropdown",common:tt,peers:{Popover:Ja},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,o=j$(e);return o.colorInverted=r,o.optionColorActive=He(n,{alpha:.15}),o.optionColorActiveInverted=t,o.optionColorHoverInverted=t,o}},k0=tQ,nQ={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},V$=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,dividerColor:g,heightSmall:m,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},nQ),{actionDividerColor:g,lineHeight:h,borderRadius:f,fontSizeSmall:p,fontSizeMedium:v,fontSizeLarge:b,borderColor:pt(t,g),tdColorHover:pt(t,l),tdColorStriped:pt(t,C),thColor:pt(t,a),thColorHover:pt(pt(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:pt(n,g),tdColorHoverModal:pt(n,l),tdColorStripedModal:pt(n,C),thColorModal:pt(n,a),thColorHoverModal:pt(pt(n,a),l),tdColorModal:n,borderColorPopover:pt(r,g),tdColorHoverPopover:pt(r,l),tdColorStripedPopover:pt(r,C),thColorPopover:pt(r,a),thColorHoverPopover:pt(pt(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:y})},rQ={name:"DataTable",common:nt,peers:{Button:xr,Checkbox:jl,Radio:C0,Pagination:D$,Scrollbar:br,Empty:oi,Popover:Qa,Ellipsis:L$,Dropdown:S0},self:V$},oQ=rQ,iQ={name:"DataTable",common:tt,peers:{Button:wr,Checkbox:Vl,Radio:H$,Pagination:I$,Scrollbar:yr,Empty:Za,Popover:Ja,Ellipsis:E$,Dropdown:k0},self(e){const t=V$(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},aQ=iQ,W$=Object.assign(Object.assign({},La),Se.props),Rh=J({name:"Tooltip",props:W$,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,_h,e),n=F(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(el,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),lQ=S("ellipsis",{overflow:"hidden"},[mt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),I("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),I("cursor-pointer",` - cursor: pointer; - `)]);function VC(e){return`${e}-ellipsis--line-clamp`}function WC(e,t){return`${e}-ellipsis--cursor-${t}`}const U$=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),_0=J({name:"Ellipsis",inheritAttrs:!1,props:U$,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=je(e),o=Se("Ellipsis","-ellipsis",lQ,L$,e,r),i=F(null),a=F(null),l=F(null),s=F(!1),c=P(()=>{const{lineClamp:g}=e,{value:m}=s;return g!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":g}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let g=!1;const{value:m}=s;if(m)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(p(y),C!==void 0)g=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(g=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}v(y,g)}return g}const f=P(()=>e.expandTrigger==="click"?()=>{var g;const{value:m}=s;m&&((g=l.value)===null||g===void 0||g.setShow(!1)),s.value=!m}:void 0);lc(()=>{var g;e.tooltip&&((g=l.value)===null||g===void 0||g.setShow(!1))});const h=()=>u("span",Object.assign({},Gn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?VC(r.value):void 0,e.expandTrigger==="click"?WC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function p(g){if(!g)return;const m=c.value,y=VC(r.value);e.lineClamp!==void 0?b(g,y,"add"):b(g,y,"remove");for(const C in m)g.style[C]!==m[C]&&(g.style[C]=m[C])}function v(g,m){const y=WC(r.value,"pointer");e.expandTrigger==="click"&&!m?b(g,y,"add"):b(g,y,"remove")}function b(g,m,y){y==="add"?g.classList.contains(m)||g.classList.add(m):g.classList.contains(m)&&g.classList.remove(m)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(Rh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),sQ=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),K$=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),uo="n-data-table",cQ=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(uo),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(sQ,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(dt,{clsPrefix:n},{default:()=>u($2,null)}))}}),dQ=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),Ph={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},q$="n-radio-group";function Y$(e){const t=Sn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=F(null),i=F(null),a=Le(q$,null),l=F(e.defaultChecked),s=xe(e,"checked"),c=St(s,l),d=lt(()=>a?a.valueRef.value===e.value:c.value),f=lt(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=F(!1);function p(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function v(){r.value||d.value||p()}function b(){v()}function g(){h.value=!1}function m(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:je(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:g,handleRadioInputFocus:m}}const uQ=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[I("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),I("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),I("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),I("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),I("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),R0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),Ph),setup(e){const t=Y$(e),n=Se("Radio","-radio",uQ,C0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:p,boxShadowFocus:v,boxShadowHover:b,color:g,colorDisabled:m,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:_,labelPadding:k,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:D}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":p,"--n-box-shadow-focus":v,"--n-box-shadow-hover":b,"--n-color":g,"--n-color-active":y,"--n-color-disabled":m,"--n-dot-color-active":w,"--n-dot-color-disabled":_,"--n-font-size":R,"--n-radio-size":D,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":k}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=je(e),l=en("Radio",a,i),s=o?et("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),kt(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),fQ=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[I("checked",{backgroundColor:"var(--n-button-border-color-active)"}),I("disabled",{opacity:"var(--n-opacity-disabled)"})]),I("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),mt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),mt("checked",{color:"var(--n-button-text-color-hover)"})]),I("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),I("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function hQ(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:_},self:{buttonBorderColor:k,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:D,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:W,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":_,"--n-button-border-color":k,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":D,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":W}}),x=c?et("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:v,handleFocusout:m,handleFocusin:g,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=hQ(Nr(fc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),pQ=Ph,vQ=J({name:"RadioButton",props:Ph,setup:Y$,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),kt(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),Z$=40,Q$=40;function UC(e){if(e.type==="selection")return e.width===void 0?Z$:hn(e.width);if(e.type==="expand")return e.width===void 0?Q$:hn(e.width);if(!("children"in e))return typeof e.width=="string"?hn(e.width):e.width}function gQ(e){var t,n;if(e.type==="selection")return Mt((t=e.width)!==null&&t!==void 0?t:Z$);if(e.type==="expand")return Mt((n=e.width)!==null&&n!==void 0?n:Q$);if(!("children"in e))return Mt(e.width)}function to(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function KC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function mQ(e){return e==="ascend"?1:e==="descend"?-1:0}function bQ(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yQ(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=gQ(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Mt(r)||n,maxWidth:Mt(o)}}function xQ(e,t,n){return typeof n=="function"?n(e,t):n||""}function Ep(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Lp(e){return"children"in e?!1:!!e.sorter}function J$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function qC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function YC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wQ(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:YC(!1)}:Object.assign(Object.assign({},t),{order:YC(t.order)})}function eT(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const CQ=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(uo),o=F(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Ep(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Ep(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Ep(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(ln,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(a$,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(ii,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(X$,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(R0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Tt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Tt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function SQ(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const kQ=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=je(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(uo),c=F(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),p=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),v=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=SQ(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function g(){c.value=!1}function m(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:p,showPopover:c,mergedRenderFilter:v,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:m,handleFilterMenuCancel:g}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(el,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(dQ,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(dt,{clsPrefix:t},{default:()=>u(FK,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(CQ,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),_Q=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(uo),n=F(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(_t("mousemove",window,a),_t("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),Ct("mousemove",window,a),Ct("mouseup",window,l)}return Bt(()=>{Ct("mousemove",window,a),Ct("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),tT=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),nT=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},RQ={name:"Icon",common:nt,self:nT},PQ=RQ,$Q={name:"Icon",common:tt,self:nT},TQ=$Q,OQ=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[I("color-transition",{transition:"color .3s var(--n-bezier)"}),I("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),rT=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),oT=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:rT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Icon","-icon",OQ,PQ,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?et("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Mt(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Qn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Gn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),P0="n-dropdown-menu",$h="n-dropdown",GC="n-dropdown-option";function sm(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function zQ(e){return e.type==="group"}function iT(e){return e.type==="divider"}function MQ(e){return e.type==="render"}const aT=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le($h),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:p,nodePropsRef:v,menuPropsRef:b}=t,g=Le(GC,null),m=Le(P0),y=Le(Ll),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:W}=h;return sm(e.tmNode.rawNode,W)}),w=P(()=>{const{disabled:W}=e.tmNode;return W}),_=P(()=>{if(!x.value)return!1;const{key:W,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(W):V!==null?ee.includes(W)&&ee[ee.length-1]!==W:re!==null?ee.includes(W):!1}),k=P(()=>r.value===null&&!l.value),T=pB(_,300,k),$=P(()=>!!(g!=null&&g.enteringSubmenuRef.value)),R=F(!1);ot(GC,{enteringSubmenuRef:R});function D(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:W,tmNode:K}=e;K.disabled||!s.value||(o.value=W,r.value=null,n.value=K.key)}function L(){const{tmNode:W}=e;W.disabled||!s.value||n.value!==W.key&&A()}function j(W){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=W;K&&!Zn({target:K},"dropdownOption")&&!Zn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:W}=x,{tmNode:K}=e;!s.value||!W&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:lt(()=>{const{value:W}=i,{key:K}=e.tmNode;return W.includes(K)}),childActive:lt(()=>{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:W}=a,{key:K}=e.tmNode,Q=W.findIndex(V=>K===V);return Q===-1?!1:Q===W.length-1}),mergedDisabled:w,renderOption:p,nodeProps:v,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:D,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:p}=this;let v=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);v=u(lT,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},g=f==null?void 0:f(r),m=u("div",Object.assign({class:[`${i}-dropdown-option`,g==null?void 0:g.class],"data-dropdown-option":!0},g),u("div",Gn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Ut(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):Ut((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(oT,null,{default:()=>u(Ya,null)}):null)]),this.hasSubmenu?u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Or,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(Ft,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>v}):v)}))})]}):null);return d?d({node:m,option:r}):m}}),DQ=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(P0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le($h);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Ut(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Ut((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),IQ=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u(Ot,null,u(DQ,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:iT(i)?u(tT,{clsPrefix:n,key:o.key}):o.isGroup?(Qn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(aT,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),FQ=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),lT=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le($h);ot(P0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>sm(s,o));const{rawNode:l}=i;return sm(l,o)})})});const r=F(null);return ot(pc,null),ot(vc,null),ot(Ll,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:MQ(i)?u(FQ,{tmNode:o,key:o.key}):iT(i)?u(tT,{clsPrefix:t,key:o.key}):zQ(i)?u(IQ,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(aT,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Bf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?Y2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),AQ=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[Dn(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),mt("disabled",[I("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),I("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),I("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),I("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[I("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[I("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[I("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),mt("scrollable",` - padding: var(--n-padding); - `),I("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),BQ={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},EQ=Object.keys(La),sT=Object.assign(Object.assign(Object.assign({},La),BQ),Se.props),$0=J({name:"Dropdown",inheritAttrs:!1,props:sT,setup(e){const t=F(!1),n=St(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return co(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=F(null),a=F(null),l=F(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=lt(()=>e.keyboard&&n.value);Ab({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:_},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:k},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:p}=je(e),v=Se("Dropdown","-dropdown",AQ,S0,e,h);ot($h,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:g}),it(n,z=>{!e.animated&&!z&&m()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function g(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function m(){i.value=null,a.value=null,l.value=null}function y(){g(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function _(){$("down")}function k(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),g(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let W;switch(z){case"down":W=E.getNext();break;case"up":W=E.getPrev();break;case"right":W=E.getChild();break;case"left":W=E.getParent();break}W&&(j=W.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=v.value,{padding:E,dividerColor:W,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":W,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),D=p?et("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:v,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||m()},doUpdateShow:g,cssVars:p?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},h={ref:H_(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(lT,Gn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(el,Object.assign({},xn(this.$props,EQ),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),cT="_n_all__",dT="_n_none__";function LQ(e,t,n,r){return e?o=>{for(const i of e)switch(o){case cT:n(!0);return;case dT:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function NQ(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:cT};case"none":return{label:t.uncheckTableAll,key:dT};default:return n}}):[]}const HQ=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(uo),l=P(()=>LQ(r.value,o,i,a)),s=P(()=>NQ(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:p}=e;return u($0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(dt,{clsPrefix:p,class:`${p}-data-table-check-extra`},{default:()=>u(D2,null)})})}}});function Np(e){return typeof e.title=="function"?e.title(e):e.title}const uT=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:p,mergedTableLayoutRef:v,headerCheckboxDisabledRef:b,onUnstableColumnResize:g,doUpdateResizableWidth:m,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(uo),_=F({});function k(j){const E=_.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(Zn(j,"dataTableFilter")||Zn(j,"dataTableResizable")||!Lp(E))return;const W=f.value.find(Q=>Q.columnKey===E.key)||null,K=wQ(E,W);C(K)}function R(){p.value="head"}function D(){p.value="body"}const z=new Map;function A(j){z.set(j.key,k(j.key))}function L(j,E){const W=z.get(j.key);if(W===void 0)return;const K=W+E,Q=bQ(K,j.minWidth,j.maxWidth);g(K,Q,j,k),m(j,Q)}return{cellElsRef:_,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:v,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:D,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:p,headerCheckboxDisabled:v,mergedSortState:b,handleColHeaderClick:g,handleCheckboxUpdateChecked:m,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:D,rowSpan:z,isLast:A})=>{var L,j;const E=to(R),{ellipsis:W}=R,K=()=>R.type==="selection"?R.multiple!==!1?u(Ot,null,u(ii,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:v,onUpdateChecked:m}),d?u(HQ,{clsPrefix:t}):null):null:u(Ot,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},W===!0||W&&!W.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Np(R)):W&&typeof W=="object"?u(_0,Object.assign({},W,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Np(R)}):Np(R)),Lp(R)?u(cQ,{column:R}):null),qC(R)?u(kQ,{column:R,options:R.filterOptions}):null,J$(R)?u(_Q,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:yn((L=n[E])===null||L===void 0?void 0:L.start),right:yn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:D,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:eT(R,b),[`${t}-data-table-th--filterable`]:qC(R),[`${t}-data-table-th--sortable`]:Lp(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{g(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:_,handleMouseleave:k,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:_,onMouseleave:k},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Mt(T),tableLayout:p}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),jQ=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(Qs(n,a),n,t):Qs(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(_0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),XC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(dt,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ya,null)})}))}}),VQ=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(ii,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),WQ=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(uo);return()=>{const{rowKey:r}=e;return u(R0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function UQ(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const KQ=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),qQ=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:p,leftActiveFixedColKeyRef:v,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:_,componentId:k,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:D,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:W,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:_e}=Le(uo),ve=F(null),Me=F(null),H=F(null),U=lt(()=>s.value.length===0),Y=lt(()=>e.showHeader||!U.value),ce=lt(()=>e.showHeader||U.value);let G="";const B=P(()=>new Set(r.value));function N(Ve){var Xe;return(Xe=ee.value.getNode(Ve))===null||Xe===void 0?void 0:Xe.rawNode}function te(Ve,Xe,We){const Ke=N(Ve.key);if(!Ke){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}if(We){const X=s.value.findIndex(q=>q.key===G);if(X!==-1){const q=s.value.findIndex(ae=>ae.key===Ve.key),ke=Math.min(X,q),Be=Math.max(X,q),Ee=[];s.value.slice(ke,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,Ke):Oe(Ee,Ke),G=Ve.key;return}}Xe?me(Ve.key,!1,Ke):Oe(Ve.key,Ke),G=Ve.key}function pe(Ve){const Xe=N(Ve.key);if(!Xe){Qn("data-table",`fail to get row data with key ${Ve.key}`);return}me(Ve.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(_.value)return Pe();const{value:Ve}=ve;return Ve?Ve.containerRef:null}function fe(Ve,Xe){var We;if(W.value.has(Ve))return;const{value:Ke}=r,X=Ke.indexOf(Ve),q=Array.from(Ke);~X?(q.splice(X,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(W.value.add(Ve),(We=E.value)===null||We===void 0||We.call(E,Xe.rawNode).then(()=>{const{value:ke}=r,Be=Array.from(ke);~Be.indexOf(Ve)||Be.push(Ve),Ce(Be)}).finally(()=>{W.value.delete(Ve)})):(q.push(Ve),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:Ve}=Me;return Ve==null?void 0:Ve.listElRef}function Ae(){const{value:Ve}=Me;return Ve==null?void 0:Ve.itemsElRef}function qe(Ve){var Xe;we(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}function Ye(Ve){var Xe;const{onResize:We}=e;We&&We(Ve),(Xe=ve.value)===null||Xe===void 0||Xe.sync()}const ft={getScrollContainer:Z,scrollTo(Ve,Xe){var We,Ke;_.value?(We=Me.value)===null||We===void 0||We.scrollTo(Ve,Xe):(Ke=ve.value)===null||Ke===void 0||Ke.scrollTo(Ve,Xe)}},ht=O([({props:Ve})=>{const Xe=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),We=Ke=>Ke===null?null:O(`[data-n-id="${Ve.componentId}"] [data-col-key="${Ke}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(Ve.leftActiveFixedColKey),We(Ve.rightActiveFixedColKey),Ve.leftActiveFixedChildrenColKeys.map(Ke=>Xe(Ke)),Ve.rightActiveFixedChildrenColKeys.map(Ke=>We(Ke))])}]);let vt=!1;return At(()=>{const{value:Ve}=v,{value:Xe}=b,{value:We}=g,{value:Ke}=m;if(!vt&&Ve===null&&We===null)return;const X={leftActiveFixedColKey:Ve,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:We,rightActiveFixedChildrenColKeys:Ke,componentId:k};ht.mount({id:`n-${k}`,force:!0,props:X,anchorMetaName:Ol}),vt=!0}),sc(()=>{ht.unmount({id:`n-${k}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:k,scrollbarInstRef:ve,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:U,paginatedDataAndInfo:P(()=>{const{value:Ve}=L;let Xe=!1;return{data:s.value.map(Ve?(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:X%2===1,index:X}):(Ke,X)=>(Ke.isLeaf||(Xe=!0),{tmNode:Ke,key:Ke.key,striped:!1,index:X})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:p,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:_,mergedTableLayout:$,childTriggerColIndex:R,indent:D,rowProps:z,maxHeight:A,loadingKeySet:W,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:qe,handleVirtualListResize:Ye,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:pe,handleUpdateExpanded:fe,renderCell:_e},ft)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,p={minWidth:Mt(t)||"100%"};t&&(p.width="100%");const v=u(ln,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:p,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},g={},{cols:m,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:_,rowClassName:k,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:D,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:W,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=m;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?UQ(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((G,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:G,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:yn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{W&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:_e}=Oe,ve={};de.forEach(({tmNode:Y},ce)=>{ve[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,U=(Y,ce,G)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:qe,rawNode:Ye}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${qe}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===_e&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},W(Ye,B)):W(Ye,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:pe,key:Z}=Y,{rawNode:fe}=pe,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof k=="string"?k:xQ(fe,B,k);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),m.map((qe,Ye)=>{var ft,ht,vt,Ve,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(Ye);if(~oe)return $e.splice(oe,1),null}const{column:We}=qe,Ke=to(qe),{rowSpan:X,colSpan:q}=We,ke=N?((ft=Y.tmNode.rawNode[Ke])===null||ft===void 0?void 0:ft.colSpan)||1:q?q(fe,B):1,Be=N?((ht=Y.tmNode.rawNode[Ke])===null||ht===void 0?void 0:ht.rowSpan)||1:X?X(fe,B):1,Ee=Ye+ke===ee,ae=ce+Be===_e,ze=Be>1;if(ze&&(g[ce]={[Ye]:[]}),ke>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,We.type==="selection"?N?null:We.multiple===!1?u(WQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(VQ,{key:_,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):We.type==="expand"?N?null:!We.expandable||((Xe=We.expandable)===null||Xe===void 0?void 0:Xe.call(We,fe))?u(XC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(jQ,{clsPrefix:n,index:B,row:fe,column:We,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(qo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:KQ,visibleItemsProps:{clsPrefix:n,id:D,cols:m,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:p,itemResizable:!0},{default:({item:Y,index:ce})=>U(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,m.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(uT,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":D,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>U(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},gt(this.dataTableSlots.empty,()=>[u(Ui,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u(Ot,null,v,b()):u(jr,{onResize:this.onResize},{default:b})}return v}}),YQ=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(uo),s=F(null),c=F(null),d=F(null),f=F(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Mt(o.value),minHeight:Mt(i.value)}));function p(m){r.value=m.contentRect.width,l(),f.value||(f.value=!0)}function v(){const{value:m}=s;return m?m.$el:null}function b(){const{value:m}=c;return m?m.getScrollContainer():null}const g={getBodyElement:b,getHeaderElement:v,scrollTo(m,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(m,y)}};return At(()=>{const{value:m}=d;if(!m)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{m.classList.remove(y)},0):m.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:p},g)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(uT,{ref:"headerInstRef"}),u(qQ,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function GQ(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=F(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:_}=e,k=_===void 0?i.value:_;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:k.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(k,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((_,k)=>{const{key:T,disabled:$}=k;return _+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),p=P(()=>{const{length:w}=n.value,{value:_}=d;return f.value>0&&f.value_.has(k.key))}),v=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function g(w,_,k){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,D=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;D.push(j)}),T&&he(T,w,D,{row:_,action:k}),$&&he($,w,D,{row:_,action:k}),R&&he(R,w,D,{row:_,action:k}),i.value=w}function m(w,_=!1,k){if(!e.loading){if(_){g(Array.isArray(w)?w.slice(0,1):[w],k,"check");return}g(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"check")}}function y(w,_){e.loading||g(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"uncheck")}function C(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.check(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:_}=o;if(!_||e.loading)return;const k=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||k.push(T.key)}),g(r.value.uncheck(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:p,allRowsCheckedRef:v,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:g,doCheckAll:C,doUncheckAll:x,doCheck:m,doUncheck:y}}function vd(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function XQ(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?ZQ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function ZQ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function QQ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(p=>{var v;p.sorter!==void 0&&h(r,{columnKey:p.key,sorter:p.sorter,order:(v=p.defaultSortOrder)!==null&&v!==void 0?v:!1})});const o=F(r),i=P(()=>{const p=t.value.filter(g=>g.type!=="selection"&&g.sorter!==void 0&&(g.sortOrder==="ascend"||g.sortOrder==="descend"||g.sortOrder===!1)),v=p.filter(g=>g.sortOrder!==!1);if(v.length)return v.map(g=>({columnKey:g.key,order:g.sortOrder,sorter:g.sorter}));if(p.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const p=i.value.slice().sort((v,b)=>{const g=vd(v.sorter)||0;return(vd(b.sorter)||0)-g});return p.length?n.value.slice().sort((b,g)=>{let m=0;return p.some(y=>{const{columnKey:C,sorter:x,order:w}=y,_=XQ(x,C);return _&&w&&(m=_(b.rawNode,g.rawNode),m!==0)?(m=m*mQ(w),!0):!1}),m}):n.value});function l(p){let v=i.value.slice();return p&&vd(p.sorter)!==!1?(v=v.filter(b=>vd(b.sorter)!==!1),h(v,p),v):p||null}function s(p){const v=l(p);c(v)}function c(p){const{"onUpdate:sorter":v,onUpdateSorter:b,onSorterChange:g}=e;v&&he(v,p),b&&he(b,p),g&&he(g,p),o.value=p}function d(p,v="ascend"){if(!p)f();else{const b=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===p);if(!(b!=null&&b.sorter))return;const g=b.sorter;s({columnKey:p,sorter:g,order:v})}}function f(){c(null)}function h(p,v){const b=p.findIndex(g=>(v==null?void 0:v.columnKey)&&g.columnKey===v.columnKey);b!==void 0&&b>=0?p[b]=v:p.push(v)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function JQ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return co(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=lt(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(KC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let _e=V[me];if(_e==null||(Array.isArray(_e)||(_e=[_e]),!_e.length))continue;const ve=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof ve=="function")if(Oe.filterMode==="and"){if(_e.some(Me=>!ve(Me,we)))return!1}else{if(_e.some(Me=>ve(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:v}=QQ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),g=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),m=St(b,a),y=St(g,l),C=lt(()=>{const V=m.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),_=P(()=>w.value.map(V=>V.rawNode));function k(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),D(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":k,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function D(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){D(V)}function E(){W()}function W(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=KC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:_,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:F(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:D,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:W,clearSorter:v,page:j,sort:p}}function eJ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=F(null),l=F([]),s=F(null),c=F([]),d=P(()=>Mt(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),p=P(()=>{const $={};let R=0;function D(z){z.forEach(A=>{const L={start:R,end:0};$[to(A)]=L,"children"in A?(D(A.children),L.end=R):(R+=UC(A)||0,L.end=R)})}return D(f.value),$}),v=P(()=>{const $={};let R=0;function D(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[to(L)]=j,"children"in L?(D(L.children),j.end=R):(R+=UC(L)||0,j.end=R)}}return D(h.value),$});function b(){var $,R;const{value:D}=f;let z=0;const{value:A}=p;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function g(){l.value=[];let $=e.columns.find(R=>to(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const D=$.children[R-1];l.value.push(to(D)),$=D}}function m(){var $,R;const{value:D}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=v;for(let W=D.length-1;W>=0;--W){const K=to(D[W]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)to(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(to(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&Ma(k)}function _($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&Ma(k)}function k(){const{header:$,body:R}=C();if(!R)return;const{value:D}=r;if(D===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),g(),m(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,k())}return it(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:p,fixedColumnRightMapRef:v,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:k,handleTableBodyScroll:_,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function tJ(){const e=F({});function t(o){return e.value[o]}function n(o,i){J$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function nJ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,p){p>a&&(n[p]=[],a=p);for(const v of h)if("children"in v)c(v.children,p+1);else{const b="key"in v?v.key:void 0;r.push({key:to(v),style:yQ(v,b!==void 0?Mt(t(b)):void 0),column:v}),l+=1,s||(s=!!v.ellipsis),o.push(v)}}c(e,0);let d=0;function f(h,p){let v=0;h.forEach((b,g)=>{var m;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,p+1),b.children.forEach(x=>{var w,_;C.colSpan+=(_=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&_!==void 0?_:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[p].push(C)}else{if(d1&&(v=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-p+1,isLast:C};i.set(b,x),n[p].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function rJ(e,t){const n=P(()=>nJ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function oJ(e,t){const n=lt(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=lt(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=F(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=St(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const ZC=aJ(),iJ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),I("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[Dn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[I("expanded",[S("icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[On({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[On()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),I("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),mt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[I("filterable",` - padding-right: 36px; - `,[I("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),ZC,I("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),I("hover",` - background-color: var(--n-merged-th-color-hover); - `),I("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),I("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),I("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),I("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),I("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),I("show",` - background-color: var(--n-th-button-color-hover); - `),I("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[I("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),I("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),I("summary",` - background-color: var(--n-merged-th-color); - `),I("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),I("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),ZC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[I("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),I("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),I("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),mt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[I("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),I("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[I("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),I("bottom-bordered",[S("data-table-td",[I("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),Mo(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),ei(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function aJ(){return[I("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),I("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const lJ=J({name:"DataTable",alias:["AdvancedTable"],props:K$,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{bottomBordered:We}=e;return n.value?!1:We!==void 0?We:!0}),a=Se("DataTable","-data-table",iJ,oQ,e,r),l=F(null),s=F("body");lc(()=>{s.value="body"});const c=F(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=tJ(),{rowsRef:p,colsRef:v,dataRelatedColsRef:b,hasEllipsisRef:g}=rJ(e,d),{treeMateRef:m,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:_,mergedPaginationRef:k,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:D,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:W,clearFilters:K,clearSorter:Q,page:V,sort:re}=JQ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:_e,mergedInderminateRowKeySetRef:ve}=GQ(e,{selectionColumnRef:w,treeMateRef:m,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:U,expandableRef:Y,doUpdateExpandedRowKeys:ce}=oJ(e,m),{handleTableBodyScroll:G,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe}=eJ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:Ye}=Cn("DataTable"),ft=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||g.value?"fixed":e.tableLayout);ot(uo,{props:e,treeMateRef:m,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:F(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Tr(),hoverKeyRef:_,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:p,colsRef:v,paginatedDataRef:C,leftActiveFixedColKeyRef:pe,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:qe,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:_e,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:ve,localeRef:Ye,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:U,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:We}=w;return We==null?void 0:We.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:We,actionPadding:Ke,actionButtonMargin:X}}=a.value;return{"--n-action-padding":Ke,"--n-action-button-margin":X,"--n-action-divider-color":We}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ft,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:D,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:G,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const ht={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:W,scrollTo:(We,Ke)=>{var X;(X=c.value)===null||X===void 0||X.scrollTo(We,Ke)}},vt=P(()=>{const{size:We}=e,{common:{cubicBezierEaseInOut:Ke},self:{borderColor:X,tdColorHover:q,thColor:ke,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Ie,lineHeight:Ne,tdColorModal:Qe,thColorModal:Ue,borderColorModal:le,thColorHoverModal:De,tdColorHoverModal:Ze,borderColorPopover:bt,thColorPopover:be,tdColorPopover:Fe,tdColorHoverPopover:Je,thColorHoverPopover:at,paginationMargin:ct,emptyPadding:Gt,boxShadowAfter:Kt,boxShadowBefore:Re,sorterSize:Ge,resizableContainerSize:st,resizableSize:Pt,loadingColor:qt,loadingSize:Et,opacityLoading:Qr,tdColorStriped:Nt,tdColorStripedModal:fn,tdColorStripedPopover:Ao,[ye("fontSize",We)]:ai,[ye("thPadding",We)]:li,[ye("tdPadding",We)]:si}}=a.value;return{"--n-font-size":ai,"--n-th-padding":li,"--n-td-padding":si,"--n-bezier":Ke,"--n-border-radius":Ie,"--n-line-height":Ne,"--n-border-color":X,"--n-border-color-modal":le,"--n-border-color-popover":bt,"--n-th-color":ke,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":De,"--n-th-color-popover":be,"--n-th-color-hover-popover":at,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Qe,"--n-td-color-hover-modal":Ze,"--n-td-color-popover":Fe,"--n-td-color-hover-popover":Je,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":ct,"--n-empty-padding":Gt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Kt,"--n-sorter-size":Ge,"--n-resizable-container-size":st,"--n-resizable-size":Pt,"--n-loading-size":Et,"--n-loading-color":qt,"--n-opacity-loading":Qr,"--n-td-color-striped":Nt,"--n-td-color-striped-modal":fn,"--n-td-color-striped-popover":Ao}}),Ve=o?et("data-table",P(()=>e.size[0]),vt,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const We=k.value,{pageCount:Ke}=We;return Ke!==void 0?Ke>1:We.itemCount&&We.pageSize&&We.itemCount>We.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:k,mergedShowPagination:Xe,cssVars:o?void 0:vt,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender},ht)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(YQ,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(A$,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},gt(r.loading,()=>[u(so,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),sJ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},fT=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},sJ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},cJ={name:"TimePicker",common:nt,peers:{Scrollbar:br,Button:xr,Input:zr},self:fT},hT=cJ,dJ={name:"TimePicker",common:tt,peers:{Scrollbar:yr,Button:wr,Input:Zr},self:fT},pT=dJ,uJ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},vT=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:p,fontWeightStrong:v}=e;return Object.assign(Object.assign({},uJ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:He(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:p,calendarTitleFontWeight:v,scrollItemBorderRadius:p,iconColor:s,iconColorDisabled:c})},fJ={name:"DatePicker",common:nt,peers:{Input:zr,Button:xr,TimePicker:hT,Scrollbar:br},self:vT},hJ=fJ,pJ={name:"DatePicker",common:tt,peers:{Input:Zr,Button:wr,TimePicker:pT,Scrollbar:yr},self(e){const{popoverColor:t,hoverColor:n,primaryColor:r}=e,o=vT(e);return o.itemColorDisabled=pt(t,n),o.itemColorIncluded=He(r,{alpha:.15}),o.itemColorHover=pt(t,n),o}},vJ=pJ;function gJ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),p=h.getHours(),v=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(p):!1)||(o.value?o.value(v,p):!1)||(i.value?i.value(b,v,p):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function mJ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[0],"start",p)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:p}=t;return p===null||!Array.isArray(p)||!["daterange","datetimerange"].includes(f)||!h?!1:h(p[1],"end",p)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[0]),v=ef(h[0]),b=tf(h[0]),{isStartHourDisabledRef:g,isStartMinuteDisabledRef:m,isStartSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const p=bi(h[1]),v=ef(h[1]),b=tf(h[1]),{isEndHourDisabledRef:g,isEndMinuteDisabledRef:m,isEndSecondDisabledRef:y}=r;return(g.value?g.value(p):!1)||(m.value?m.value(v,p):!1)||(y.value?y.value(b,v,p):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const Th="n-date-picker";function Oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cm={exports:{}},dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(dm.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(cm,cm.exports);const bJ=Oh(cm.exports);var um={exports:{}},fm={exports:{}},hm={exports:{}},Jn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Jn,Jn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(hm,hm.exports);var Kr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Jn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Kr,Kr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(hm.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(fm,fm.exports);var pm={exports:{}},vm={exports:{}},Xo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Xo,Xo.exports);const yJ=Oh(Xo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Xo.exports),r=i(Kr.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(vm.exports),r=i(Jn.exports),o=i(Xo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Kr.exports),r=o(Jn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(mm,mm.exports);var bm={exports:{}},tc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Kr.exports),r=o(Jn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=p.getTime()?c:c-1}e.exports=t.default})(Hf,Hf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Hf.exports),r=i(tc.exports),o=i(Jn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(ym,ym.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(tc.exports),o=a(ym.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(bm,bm.exports);var xm={exports:{}},nc={exports:{}},tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.getDefaultOptions=xJ;tl.setDefaultOptions=wJ;var gT={};function xJ(){return gT}function wJ(e){gT=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Kr.exports),r=a(Jn.exports),o=a(Xo.exports),i=tl;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,p,v,b,g,m;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.weekStartsOn)!==null&&p!==void 0?p:c==null||(v=c.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(g=y.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),_=(w=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=new Date(0);k.setUTCFullYear(x+1,0,_),k.setUTCHours(0,0,0,0);var T=(0,o.default)(k,d),$=new Date(0);$.setUTCFullYear(x,0,_),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(jf,jf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(jf.exports),r=l(Jn.exports),o=l(nc.exports),i=l(Xo.exports),a=tl;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,p,v,b,g,m,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(p=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(b=d.locale)===null||b===void 0||(g=b.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&p!==void 0?p:C.firstWeekContainsDate)!==null&&h!==void 0?h:(m=C.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),_=new Date(0);_.setUTCFullYear(w,0,x),_.setUTCHours(0,0,0,0);var k=(0,o.default)(_,d);return k}e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Kr.exports),r=a(nc.exports),o=a(wm.exports),i=a(Jn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(xm,xm.exports);var Vf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(Cm,Cm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(mm.exports),r=c(bm.exports),o=c(Hf.exports),i=c(xm.exports),a=c(jf.exports),l=c(Vf.exports),s=c(Cm.exports);function c(g){return g&&g.__esModule?g:{default:g}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(m,y,C){var x=m.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(m,y,C){if(y==="yo"){var x=m.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(m,y)},Y:function(m,y,C,x){var w=(0,a.default)(m,x),_=w>0?w:1-w;if(y==="YY"){var k=_%100;return(0,l.default)(k,2)}return y==="Yo"?C.ordinalNumber(_,{unit:"year"}):(0,l.default)(_,y.length)},R:function(m,y){var C=(0,o.default)(m);return(0,l.default)(C,y.length)},u:function(m,y){var C=m.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(m,y,C){var x=Math.ceil((m.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(m,y,C){var x=m.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(m,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(m,y,C){var x=m.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(m,y,C,x){var w=(0,i.default)(m,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(m,y,C){var x=(0,r.default)(m);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(m,y,C){return y==="do"?C.ordinalNumber(m.getUTCDate(),{unit:"date"}):s.default.d(m,y)},D:function(m,y,C){var x=(0,n.default)(m);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(m,y,C){var x=m.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(_);case"ee":return(0,l.default)(_,2);case"eo":return C.ordinalNumber(_,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(m,y,C,x){var w=m.getUTCDay(),_=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(_);case"cc":return(0,l.default)(_,y.length);case"co":return C.ordinalNumber(_,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(m,y,C){var x=m.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(m,y,C){var x=m.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(m,y,C){var x=m.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(m,y,C){var x=m.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(m,y,C){if(y==="ho"){var x=m.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(m,y)},H:function(m,y,C){return y==="Ho"?C.ordinalNumber(m.getUTCHours(),{unit:"hour"}):s.default.H(m,y)},K:function(m,y,C){var x=m.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(m,y,C){var x=m.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(m,y,C){return y==="mo"?C.ordinalNumber(m.getUTCMinutes(),{unit:"minute"}):s.default.m(m,y)},s:function(m,y,C){return y==="so"?C.ordinalNumber(m.getUTCSeconds(),{unit:"second"}):s.default.s(m,y)},S:function(m,y){return s.default.S(m,y)},X:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();if(_===0)return"Z";switch(y){case"X":return p(_);case"XXXX":case"XX":return v(_);case"XXXXX":case"XXX":default:return v(_,":")}},x:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"x":return p(_);case"xxxx":case"xx":return v(_);case"xxxxx":case"xxx":default:return v(_,":")}},O:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(_,":");case"OOOO":default:return"GMT"+v(_,":")}},z:function(m,y,C,x){var w=x._originalDate||m,_=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(_,":");case"zzzz":default:return"GMT"+v(_,":")}},t:function(m,y,C,x){var w=x._originalDate||m,_=Math.floor(w.getTime()/1e3);return(0,l.default)(_,y.length)},T:function(m,y,C,x){var w=x._originalDate||m,_=w.getTime();return(0,l.default)(_,y.length)}};function h(g,m){var y=g>0?"-":"+",C=Math.abs(g),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var _=m||"";return y+String(x)+_+(0,l.default)(w,2)}function p(g,m){if(g%60===0){var y=g>0?"-":"+";return y+(0,l.default)(Math.abs(g)/60,2)}return v(g,m)}function v(g,m){var y=m||"",C=g>0?"-":"+",x=Math.abs(g),w=(0,l.default)(Math.floor(x/60),2),_=(0,l.default)(x%60,2);return C+w+y+_}var b=f;t.default=b,e.exports=t.default})(gm,gm.exports);var Sm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var p;switch(f){case"P":p=c.dateTime({width:"short"});break;case"PP":p=c.dateTime({width:"medium"});break;case"PPP":p=c.dateTime({width:"long"});break;case"PPPP":default:p=c.dateTime({width:"full"});break}return p.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(Sm,Sm.exports);var Wf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Wf,Wf.exports);const QC=Oh(Wf.exports);var Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.isProtectedDayOfYearToken=kJ;Cc.isProtectedWeekYearToken=_J;Cc.throwProtectedError=RJ;var CJ=["D","DD"],SJ=["YY","YYYY"];function kJ(e){return CJ.indexOf(e)!==-1}function _J(e){return SJ.indexOf(e)!==-1}function RJ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var km={exports:{}},_m={exports:{}},Rm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(Rm,Rm.exports);var Pm={exports:{}},$m={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})($m,$m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($m.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(Pm,Pm.exports);var Tm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(Tm,Tm.exports);var Om={exports:{}},zm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(zm,zm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(zm.exports);function r(p){return p&&p.__esModule?p:{default:p}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(v,b){var g=Number(v),m=g%100;if(m>20||m<10)switch(m%10){case 1:return g+"st";case 2:return g+"nd";case 3:return g+"rd"}return g+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(v){return v-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(Om,Om.exports);var Mm={exports:{}},Dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],p=Array.isArray(h)?o(h,function(g){return g.test(f)}):r(h,function(g){return g.test(f)}),v;v=i.valueCallback?i.valueCallback(p):p,v=l.valueCallback?l.valueCallback(v):v;var b=a.slice(f.length);return{value:v,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Im,Im.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Dm.exports),r=o(Im.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},p={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},g={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},m={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:p,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:g,defaultParseWidth:"any"})},y=m;t.default=y,e.exports=t.default})(Mm,Mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(Rm.exports),r=l(Pm.exports),o=l(Tm.exports),i=l(Om.exports),a=l(Mm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(_m,_m.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(_m.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(km,km.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=p(fm.exports),r=p(pm.exports),o=p(Kr.exports),i=p(gm.exports),a=p(Sm.exports),l=p(Wf.exports),s=Cc,c=p(Xo.exports),d=p(Jn.exports),f=tl,h=p(km.exports);function p(w){return w&&w.__esModule?w:{default:w}}var v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g=/^'([^]*?)'?$/,m=/''/g,y=/[a-zA-Z]/;function C(w,_,k){var T,$,R,D,z,A,L,j,E,W,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(_),me=(0,f.getDefaultOptions)(),Oe=(T=($=k==null?void 0:k.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,_e=(0,c.default)((R=(D=(z=(A=k==null?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:k==null||(L=k.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&D!==void 0?D:(E=me.locale)===null||E===void 0||(W=E.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(_e>=1&&_e<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ve=(0,c.default)((K=(Q=(V=(re=k==null?void 0:k.weekStartsOn)!==null&&re!==void 0?re:k==null||(ee=k.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(ve>=0&&ve<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),U=(0,r.default)(Me,H),Y={firstWeekContainsDate:_e,weekStartsOn:ve,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(G){var B=G[0];if(B==="p"||B==="P"){var N=a.default[B];return N(G,Oe.formatLong)}return G}).join("").match(v).map(function(G){if(G==="''")return"'";var B=G[0];if(B==="'")return x(G);var N=i.default[B];if(N)return!(k!=null&&k.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),!(k!=null&&k.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(G)&&(0,s.throwProtectedError)(G,_,String(w)),N(U,G,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return G}).join("");return ce}function x(w){var _=w.match(g);return _?_[1].replace(m,"'"):w}e.exports=t.default})(um,um.exports);const PJ=Oh(um.exports);function JC(e,t,n){var r=OJ(e,n.timeZone,n.locale);return r.formatToParts?$J(r,t):TJ(r,t)}function $J(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function TJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function OJ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function zJ(e,t){var n=FJ(t);return n.formatToParts?DJ(n,e):IJ(n,e)}var MJ={year:0,month:1,day:2,hour:3,minute:4,second:5};function DJ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function IJ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Hp={};function FJ(e){if(!Hp[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Hp[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Hp[e]}function mT(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var eS=36e5,AJ=6e4,jp={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function T0(e,t,n){var r,o;if(!e||(r=jp.timezoneZ.exec(e),r))return 0;var i;if(r=jp.timezoneHH.exec(e),r)return i=parseInt(r[1],10),tS(i)?-(i*eS):NaN;if(r=jp.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return tS(i,a)?(o=Math.abs(i)*eS+a*AJ,i>0?-o:o):NaN}if(LJ(e)){t=new Date(t||Date.now());var l=n?t:BJ(t),s=Fm(l,e),c=n?s:EJ(t,s,e);return-c}return NaN}function BJ(e){return mT(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Fm(e,t){var n=zJ(e,t),r=mT(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function EJ(e,t,n){var r=e.getTime(),o=r-t,i=Fm(new Date(o),n);if(t===i)return t;o-=i-t;var a=Fm(new Date(o),n);return i===a?i:Math.max(i,a)}function tS(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var nS={};function LJ(e){if(nS[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),nS[e]=!0,!0}catch{return!1}}var NJ=60*1e3,HJ={X:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return rS(o);case"XXXX":case"XX":return gl(o);case"XXXXX":case"XXX":default:return gl(o,":")}},x:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"x":return rS(o);case"xxxx":case"xx":return gl(o);case"xxxxx":case"xxx":default:return gl(o,":")}},O:function(e,t,n,r){var o=Vp(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+jJ(o,":");case"OOOO":default:return"GMT"+gl(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return JC("short",o,r);case"zzzz":default:return JC("long",o,r)}}};function Vp(e,t){var n=e?T0(e,t,!0)/NJ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Uf(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Uf(Math.floor(o/60),2),a=Uf(Math.floor(o%60),2);return r+i+n+a}function rS(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Uf(Math.abs(e)/60,2)}return gl(e,t)}function jJ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Uf(i,2)}const VJ=HJ;var WJ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const UJ=WJ;var Wp=36e5,oS=6e4,KJ=2,ir={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:UJ};function bT(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?KJ:yJ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=qJ(e),i=YJ(o.date,r),a=i.year,l=i.restDateString,s=GJ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=XJ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=T0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=QC(new Date(c+d)),f=QC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function qJ(e){var t={},n=ir.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=ir.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=ir.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function YJ(e,t){var n=ir.YYY[t],r=ir.YYYYY[t],o;if(o=ir.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=ir.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function GJ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=ir.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,aS(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=ir.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return JJ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=ir.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return aS(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=ir.Www.exec(e),n)return i=parseInt(n[1],10)-1,lS(t,i)?iS(t,i):new Date(NaN);if(n=ir.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return lS(t,i,s)?iS(t,i,s):new Date(NaN)}return null}function XJ(e){var t,n,r;if(t=ir.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Up(n)?n%24*Wp:NaN;if(t=ir.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Up(n,r)?n%24*Wp+r*oS:NaN;if(t=ir.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Up(n,r,o)?n%24*Wp+r*oS+o*1e3:NaN}return null}function iS(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var ZJ=[31,28,31,30,31,30,31,31,30,31,30,31],QJ=[31,29,31,30,31,30,31,31,30,31,30,31];function yT(e){return e%400===0||e%4===0&&e%100!==0}function aS(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=yT(e);if(r&&n>QJ[t]||!r&&n>ZJ[t])return!1}return!0}function JJ(e,t){if(t<1)return!1;var n=yT(e);return!(n&&t>366||!n&&t>365)}function lS(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Up(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var eee=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function tee(e,t,n){var r=String(t),o=n||{},i=r.match(eee);if(i){var a=bT(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+VJ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return PJ(e,r,o)}function nee(e,t,n){var r=bT(e,n),o=T0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function xT(e,t,n,r){var o=bJ(r);return o.timeZone=t,tee(nee(e,t),n,o)}const hs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Kp(e){return`00${e}`.slice(-2)}function ps(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Kp(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Kp(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Kp(r===12?12:r-12)):e}function gd(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function ree(e,t,n){const r=ps(hs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Nn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function oee(e){return bi(e)<12?"am":"pm"}const wT="n-time-picker",md=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),iee={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},aee=J({name:"TimePickerPanel",props:iee,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(wT),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:oee(Date.now());return ps(hs.hours,s,f).map(h=>{const p=Number(h),v=f==="pm"&&p!==12?p+12:p;return{label:h,value:v,disabled:l?l(v):!1}})}else return ps(hs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return ps(hs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return ps(hs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:F(null),minuteScrollRef:F(null),secondScrollRef:F(null),amPmScrollRef:F(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(ln,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(ln,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(md,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Tt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Fo,{onFocus:this.onFocusDetectorFocus}))}}),lee=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[Dn(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[I("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),I("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),I("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),I("invalid",[M("item",[I("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function qp(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const CT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>qp(e,23)},minutes:{type:[Number,Array],validator:e=>qp(e,59)},seconds:{type:[Number,Array],validator:e=>qp(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Kf=J({name:"TimePicker",props:CT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),{localeRef:i,dateLocaleRef:a}=Cn("TimePicker"),l=Sn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",lee,hT,e,n),h=Ab(),p=F(null),v=F(null),b=P(()=>({locale:a.value.locale}));function g(se){return se===null?null:ur(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:m,defaultFormattedValue:y}=e,C=F(y!==void 0?g(y):m),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return g(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Ie)=>xT($e,se,oe,Ie):($e,oe,Ie)=>on($e,oe,Ie)}),_=F("");it(()=>e.timeZone,()=>{const se=x.value;_.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const k=F(!1),T=xe(e,"show"),$=St(T,k),R=F(x.value),D=F(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),W=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:gd(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!gd(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!gd(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Ie}=e;return Ie?Ie(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:bi(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Ie}=e;oe&&he(oe,se,$e),Ie&&he(Ie,se,$e)}function _e(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function ve(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Ie}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Qe}=l,Ue=_e(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Ie&&he(Ie,se,Ue),Oe(Ue,se),C.value=se,Ne(),Qe()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function U(){const{onConfirm:se}=e;se&&he(se,x.value,_e(x.value))}function Y(se){var $e;se.stopPropagation(),ve(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){We({returnFocus:!0})}function G(se){se.key==="Escape"&&$.value&&Fa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Fa(se),We({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=v.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),We({returnFocus:!0}));break}}function N(){D.value=!0,Rt(()=>{D.value=!1})}function te(se){c.value||Zn(se,"clear")||$.value||Ve()}function pe(se){typeof se!="string"&&(x.value===null?ve(rt(na(SK(new Date),se))):ve(rt(na(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?ve(rt(_p(O9(new Date),se))):ve(rt(_p(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?ve(rt(Rp(s0(new Date),se))):ve(rt(Rp(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Ie=bi(oe);se==="pm"&&Ie<12?ve(rt(na(oe,Ie+12))):se==="am"&&Ie>=12&&ve(rt(na(oe,Ie-12))),ve(rt(oe))}else{const oe=bi($e);se==="pm"&&oe<12?ve(rt(na($e,oe+12))):se==="am"&&oe>=12&&ve(rt(na($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?_.value="":_.value=w.value(se,e.format,b.value)}function Pe(se){vt(se)||Me(se)}function Ae(se){var $e;if(!vt(se))if($.value){const oe=($e=v.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),We({returnFocus:!1}))}else ge(),H(se)}function qe(){c.value||$.value||Ve()}function Ye(){c.value||(ge(),We({returnFocus:!1}))}function ft(){if(!v.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Ie}=v.value;[se,$e,oe,Ie].forEach(Ne=>{var Qe;if(!Ne)return;const Ue=(Qe=Ne.contentRef)===null||Qe===void 0?void 0:Qe.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function ht(se){k.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function vt(se){var $e,oe,Ie;return!!(((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Ie=v.value)===null||Ie===void 0?void 0:Ie.$el.contains(se.relatedTarget)))}function Ve(){R.value=x.value,ht(!0),Rt(ft)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=p.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(vr(se)))&&We({returnFocus:!1})}function We({returnFocus:se}){var $e;$.value&&(ht(!1),se&&(($e=p.value)===null||$e===void 0||$e.focus()))}function Ke(se){if(se===""){ve(null);return}const $e=ur(se,e.format,new Date,b.value);if(_.value=se,Er($e)){const{value:oe}=x;if(oe!==null){const Ie=Kn(oe,{hours:bi($e),minutes:ef($e),seconds:tf($e)});ve(rt(Ie))}else ve(rt($e))}}function X(){ve(R.value),ht(!1)}function q(){const se=new Date,$e={hours:bi,minutes:ef,seconds:tf},[oe,Ie,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||gd($e[Ue](se),Ue,e[Ue])?$e[Ue](se):ree($e[Ue](se),Ue,e[Ue])),Qe=Rp(_p(na(x.value?x.value:rt(se),oe),Ie),Ne);ve(rt(Qe))}function ke(){ge(),U(),We({returnFocus:!0})}function Be(se){vt(se)||(ge(),H(se),We({returnFocus:!1}))}it(x,se=>{ge(se),N(),Rt(ft)}),it($,()=>{ee.value&&ve(R.value)}),ot(wT,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=p.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=p.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?et("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Ie,panelDividerColor:Ne,panelBoxShadow:Qe,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:De,itemWidth:Ze,itemHeight:bt,panelActionPadding:be,itemBorderRadius:Fe},common:{cubicBezierEaseInOut:Je}}=f.value;return{"--n-bezier":Je,"--n-border-radius":le,"--n-item-color-hover":Ie,"--n-item-font-size":De,"--n-item-height":bt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ze,"--n-panel-action-padding":be,"--n-panel-box-shadow":Qe,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":Fe}}),Te=o?et("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:Hn(),inputInstRef:p,panelInstRef:v,adjustedTo:Ht(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:W,secondInFormat:K,mergedAttrSize:ue,displayTimeString:_,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:D,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:G,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:ke,handleTimeInputUpdateValue:Ke,handleMenuFocusOut:Be,handleCancelClick:X,handleClickOutside:Xe,handleTimeInputActivate:qe,handleTimeInputDeactivate:Ye,handleHourClick:pe,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(En,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(BK,null)})}:null)}),u(Or,{teleportDisabled:this.adjustedTo===Ht.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),un(u(aee,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[gr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),see="HH:mm:ss",ST={active:Boolean,dateFormat:String,timeFormat:{type:String,value:see},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function kT(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(Th),l=P(()=>({locale:t.value.locale})),s=F(null),c=Ab();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function p(z=!1){const{onClose:A}=e;A&&A(z)}function v(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),p(!0),d()}function g(){v()}function m(){(e.active||e.panel)&&Rt(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),v())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&v()}let x=null,w=!1;function _(){x=e.value,w=!0}function k(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=F(!1);function D(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:p,doUpdateValue:h,doTabOut:v,handleClearClick:b,handleFocusDetectorFocus:g,disableTransitionOneTick:m,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:_,clearPendingValue:k,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:D}}const O0=Object.assign(Object.assign({},ST),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function z0(e,t){const n=kT(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:p}=Le(Th),v={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),g=F(e.value===null||Array.isArray(e.value)?"":on(e.value,b.value)),m=F(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=F(null),C=F(null),x=F(null),w=F(Date.now()),_=P(()=>{var B;return Nf(m.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),k=P(()=>{const{value:B}=e;return om(m.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return am(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return im(m.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>_.value.slice(0,7).map(B=>{const{ts:N}=B;return on(N,f.value.dayFormat,n.dateFnsOptions.value)})),D=P(()=>on(m.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>on(m.value,f.value.yearFormat,n.dateFnsOptions.value));it(m,(B,N)=>{(t==="date"||t==="datetime")&&(xh(B,N)||n.disableTransitionOneTick())}),it(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(g.value=on(B,b.value,n.dateFnsOptions.value),m.value=B):g.value=""});function A(B){return rt(t==="datetime"?s0(B):t==="month"?Fr(B):t==="year"?t0(B):t==="quarter"?Js(B):zl(B))}function L(B){const{isDateDisabled:{value:N}}=v;return N?N(B):!1}function j(B){const N=ur(B,b.value,new Date,n.dateFnsOptions.value);if(Er(N)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=Kn(e.value,{year:nn(N),month:Xt(N),date:eo(N)});n.doUpdateValue(rt(A(rt(te))),e.panel)}}else g.value=B}function E(){const B=ur(g.value,b.value,new Date,n.dateFnsOptions.value);if(Er(B)){if(e.value===null)n.doUpdateValue(rt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=Kn(e.value,{year:nn(B),month:Xt(B),date:eo(B)});n.doUpdateValue(rt(A(rt(N))),!1)}}else ee()}function W(){n.doUpdateValue(null,!0),g.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(rt(A(Date.now())),!0);const B=Date.now();m.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=Cu(e.defaultTime);te&&(N=rt(Kn(N,te)))}switch(N=rt(B.type==="quarter"&&B.dateObject.quarter?kK(xC(N,B.dateObject.year),B.dateObject.quarter):Kn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=rt(B.type==="month"?c0(te,B.dateObject.month):xC(te,B.dateObject.year)),N(te),ce(te)}function re(B){m.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){g.value="";return}B===void 0&&(B=e.value),g.value=on(B,b.value,n.dateFnsOptions.value)}function ue(){v.isDateInvalid.value||v.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){m.value=rt(Vv(m.value,1))}function we(){m.value=rt(Vv(m.value,-1))}function me(){m.value=rt(Fn(m.value,1))}function Oe(){m.value=rt(Fn(m.value,-1))}function _e(){const{value:B}=y;return B==null?void 0:B.listElRef}function ve(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function U(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=Xt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Na})}if(y.value){const te=nn(B===void 0?N===null?Date.now():N:B)-Lf;y.value.scrollTo({top:te*Na})}}const G={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:_,monthArray:k,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:D,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:U,handleSingleShortcutClick:Y},v),n),G),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:W,virtualListContainer:_e,virtualListContent:ve,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:g,datePickerSlots:p,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:m,onUpdateCalendarValue:re})}const _T=J({name:"MonthPanel",props:Object.assign(Object.assign({},O0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=z0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(ln,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"yearVlRef",items:this.yearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(ln,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Tt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),Il=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=F(null),t=F(null),n=F(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(vr(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Or,{show:this.show,teleportDisabled:!0},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?un(u(_T,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[gr,e,void 0,{capture:!0}]]):null})})]}))}}),cee=J({name:"DateTimePanel",props:O0,setup(e){return z0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(En,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Kf,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(c["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},gt(c["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},gt(c["next-month"],()=>[u(Ni,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},gt(c["next-year"],()=>[u(Li,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Tt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),M0=Object.assign(Object.assign({},ST),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function D0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:p,isEndTimeInvalidRef:v,isStartValueInvalidRef:b,isEndValueInvalidRef:g,isRangeInvalidRef:m,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:_,datePickerSlots:k}=Le(Th),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:p,isEndTimeInvalid:v,isStartValueInvalid:b,isEndValueInvalid:g,isRangeInvalid:m},$=kT(e),R=F(null),D=F(null),z=F(null),A=F(null),L=F(null),j=F(null),E=F(null),W=F(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=F(Q),re=F((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:rt(Fn(Q,1)));Ae(!0);const ee=F(Date.now()),ue=F(!1),de=F(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=F(Array.isArray(K)?on(K[0],Ce.value,$.dateFnsOptions.value):""),me=F(Array.isArray(K)?on(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),_e=P(()=>{var Re;return Nf(V.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),ve=P(()=>{var Re;return Nf(re.value,e.value,ee.value,(Re=_.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>_e.value.slice(0,7).map(Re=>{const{ts:Ge}=Re;return on(Ge,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>on(V.value,y.value.monthFormat,$.dateFnsOptions.value)),U=P(()=>on(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>on(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>on(re.value,y.value.yearFormat,$.dateFnsOptions.value)),G=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>am(fl(e.value,"start"),ee.value)),pe=P(()=>am(fl(e.value,"end"),ee.value)),Z=P(()=>{const Re=fl(e.value,"start");return im(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=fl(e.value,"end");return im(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=fl(e.value,"start");return om(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=fl(e.value,"end");return om(Re!=null?Re:Date.now(),Re,ee.value)});it(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ge,st]=Re;we.value=on(Ge,Ce.value,$.dateFnsOptions.value),me.value=on(st,Ce.value,$.dateFnsOptions.value),ue.value||ke(Re)}else we.value="",me.value=""});function Pe(Re,Ge){(t==="daterange"||t==="datetimerange")&&(nn(Re)!==nn(Ge)||Xt(Re)!==Xt(Ge))&&$.disableTransitionOneTick()}it(V,Pe),it(re,Pe);function Ae(Re){const Ge=Fr(V.value),st=Fr(re.value);(e.bindCalendarMonths||Ge>=st)&&(Re?re.value=rt(Fn(Ge,1)):V.value=rt(Fn(st,-1)))}function qe(){V.value=rt(Fn(V.value,12)),Ae(!0)}function Ye(){V.value=rt(Fn(V.value,-12)),Ae(!0)}function ft(){V.value=rt(Fn(V.value,1)),Ae(!0)}function ht(){V.value=rt(Fn(V.value,-1)),Ae(!0)}function vt(){re.value=rt(Fn(re.value,12)),Ae(!1)}function Ve(){re.value=rt(Fn(re.value,-12)),Ae(!1)}function Xe(){re.value=rt(Fn(re.value,1)),Ae(!1)}function We(){re.value=rt(Fn(re.value,-1)),Ae(!1)}function Ke(Re){V.value=Re,Ae(!0)}function X(Re){re.value=Re,Ae(!1)}function q(Re){const Ge=o.value;if(!Ge)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ge(Re,"start",null);{const{value:st}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){m.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=rt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ge,st){if(typeof Re!="number"&&(Re=rt(Re)),st!=="shortcutPreview"){let Pt,qt;if(t==="datetimerange"){const{defaultTime:Et}=e;Array.isArray(Et)?(Pt=Cu(Et[0]),qt=Cu(Et[1])):(Pt=Cu(Et),qt=Pt)}Pt&&(Re=rt(Kn(Re,Pt))),qt&&(Ge=rt(Kn(Ge,qt)))}$.doUpdateValue([Re,Ge],e.panel&&st==="done")}function $e(Re){return rt(t==="datetimerange"?s0(Re):t==="monthrange"?Fr(Re):zl(Re))}function oe(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge))if(e.value){if(Array.isArray(e.value)){const st=Kn(e.value[0],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}}else{const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});ie($e(rt(st)))}else we.value=Re}function Ie(Re){const Ge=ur(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Er(Ge)){if(e.value===null){const st=Kn(new Date,{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}else if(Array.isArray(e.value)){const st=Kn(e.value[1],{year:nn(Ge),month:Xt(Ge),date:eo(Ge)});Te($e(rt(st)))}}else me.value=Re}function Ne(){const Re=ur(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[0],{year:nn(Re),month:Xt(Re),date:eo(Re)});ie($e(rt(st)))}}else Ue()}function Qe(){const Re=ur(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ge}=e;if(Er(Re)){if(Ge===null){const st=Kn(new Date,{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}else if(Array.isArray(Ge)){const st=Kn(Ge[1],{year:nn(Re),month:Xt(Re),date:eo(Re)});Te($e(rt(st)))}}else Ue()}function Ue(Re){const{value:Ge}=e;if(Ge===null||!Array.isArray(Ge)){we.value="",me.value="";return}Re===void 0&&(Re=Ge),we.value=on(Re[0],Ce.value,$.dateFnsOptions.value),me.value=on(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function De(Re){Re!==null&&Te(Re)}function Ze(Re){$.cachePendingValue();const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||se(Ge[0],Ge[1],"shortcutPreview")}function bt(Re){const Ge=$.getShortcutValue(Re);!Array.isArray(Ge)||(se(Ge[0],Ge[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ge){const st=Re===void 0?e.value:Re;if(Re===void 0||Ge==="start"){if(E.value){const Pt=Array.isArray(st)?Xt(st[0]):Xt(Date.now());E.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(L.value){const Pt=(Array.isArray(st)?nn(st[0]):nn(Date.now()))-Lf;L.value.scrollTo({index:Pt,debounce:!1})}}if(Re===void 0||Ge==="end"){if(W.value){const Pt=Array.isArray(st)?Xt(st[1]):Xt(Date.now());W.value.scrollTo({debounce:!1,index:Pt,elSize:Na})}if(j.value){const Pt=(Array.isArray(st)?nn(st[1]):nn(Date.now()))-Lf;j.value.scrollTo({index:Pt,debounce:!1})}}}function Fe(Re,Ge){const{value:st}=e,Pt=!Array.isArray(st),qt=Re.type==="year"&&t!=="yearrange"?Pt?Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(new Date):new Date)}).valueOf():Kn(Re.ts,{month:Xt(t==="quarterrange"?Js(st[Ge==="start"?0:1]):st[Ge==="start"?0:1])}).valueOf():Re.ts;if(Pt){const Nt=$e(qt),fn=[Nt,Nt];$.doUpdateValue(fn,e.panel),be(fn,"start"),be(fn,"end"),$.disableTransitionOneTick();return}const Et=[st[0],st[1]];let Qr=!1;switch(Ge==="start"?(Et[0]=$e(qt),Et[0]>Et[1]&&(Et[1]=Et[0],Qr=!0)):(Et[1]=$e(qt),Et[0]>Et[1]&&(Et[0]=Et[1],Qr=!0)),$.doUpdateValue(Et,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Qr?(be(Et,"start"),be(Et,"end")):be(Et,Ge);break;case"yearrange":$.disableTransitionOneTick(),be(Et,"start"),be(Et,"end")}}function Je(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function at(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function ct(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.listElRef:(st=j.value)===null||st===void 0?void 0:st.listElRef}function Gt(Re){var Ge,st;return Re==="start"?(Ge=L.value)===null||Ge===void 0?void 0:Ge.itemsElRef:(st=j.value)===null||st===void 0?void 0:st.itemsElRef}const Kt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:W,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:D,handleDateClick:Be,handleColItemClick:Fe,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:Ye,startCalendarPrevMonth:ht,startCalendarNextYear:qe,startCalendarNextMonth:ft,endCalendarPrevYear:Ve,endCalendarPrevMonth:We,endCalendarNextMonth:Xe,endCalendarNextYear:vt,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:U,endCalendarYear:ce,weekdays:Me,startDateArray:_e,endDateArray:ve,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:pe,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ze,handleRangeShortcutClick:bt},$),T),Kt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:G,endTimeValue:B,datePickerSlots:k,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:De,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Ie,handleEndDateInputBlur:Qe,handleStartYearVlScroll:Je,handleEndYearVlScroll:at,virtualListContainer:ct,virtualListContent:Gt,onUpdateStartCalendarValue:Ke,onUpdateEndCalendarValue:X})}const dee=J({name:"DateTimeRangePanel",props:M0,setup(e){return D0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(En,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(En,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Kf,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(s["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(s["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(s["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(s["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),uee=J({name:"DatePanel",props:O0,setup(e){return z0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(lo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),fee=J({name:"DateRangePanel",props:M0,setup(e){return D0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},gt(l["prev-year"],()=>[u(Ei,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},gt(l["prev-month"],()=>[u(Bi,null)])),u(Il,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},gt(l["next-month"],()=>[u(Ni,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},gt(l["next-year"],()=>[u(Li,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Tt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),hee=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},M0),{type:{type:String,required:!0}}),setup(e){const t=D0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(ln,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(qo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Na,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(ln,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},db(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(lo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(lo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Fo,{onFocus:this.handleFocusDetectorFocus}))}}),pee=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[Dn(),I("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[I("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),mt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),I("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),I("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[I("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),I("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),I("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),I("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),I("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[I("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),mt("disabled",[mt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),I("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),I("covered, start, end",[mt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),I("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),I("start",[O("&::before",{left:"50%"})]),I("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),I("excluded",{color:"var(--n-item-text-color-disabled)"},[I("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),I("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[I("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),I("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),RT=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),vee=J({name:"DatePicker",props:RT,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=Cn("DatePicker"),i=Sn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:p}=je(e),v=F(null),b=F(null),g=F(null),m=F(!1),y=xe(e,"show"),C=St(y,m),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),_=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function k(ae){if(ae===null)return null;const{value:ze}=_,{value:ie}=x;return Array.isArray(ae)?[ur(ae[0],ze,new Date,ie).getTime(),ur(ae[1],ze,new Date,ie).getTime()]:ur(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=F((n=T!==void 0?k(T):$)!==null&&n!==void 0?n:null),D=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?k(ae):e.value}),z=St(D,R),A=F(null);At(()=>{A.value=z.value});const L=F(""),j=F(""),E=F(""),W=Se("DatePicker","-date-picker",pee,hJ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Qn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=_,{value:ie}=x;return[on(ae[0],ze,ie),on(ae[1],ze,x.value)]}else return on(ae,_.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Ie=de(ae);ze.doConfirm&&_e(ae,Ie),Te&&he(Te,ae,Ie),ie&&he(ie,ae,Ie),se&&he(se,ae,Ie),R.value=ae,we(Ie,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function _e(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function ve(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),m.value=ae}function U(ae){ae.key==="Escape"&&C.value&&(Fa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Fa(ae)}function ce(){var ae;H(!1),(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function G(){var ae;(ae=g.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(vr(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function pe(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=on(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=on(ae[0],w.value,ze),E.value=on(ae[1],w.value,ze)}}function Pe(){C.value||Ve()}function Ae(ae){var ze;!((ze=v.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function qe(){l.value||(fe(),Xe({returnFocus:!1}))}function Ye(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=ur(ae,w.value,new Date,x.value);Er(ze)?(me(rt(ze),{doConfirm:!1}),fe()):L.value=ae}function ft(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=ur(ze,w.value,new Date,x.value),se=ur(ie,w.value,new Date,x.value);Er(Te)&&Er(se)?(me([rt(Te),rt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function ht(ae){l.value||Zn(ae,"clear")||C.value||Ve()}function vt(ae){l.value||ve(ae)}function Ve(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=g.value)===null||ie===void 0||ie.focus()))}it(A,()=>{fe()}),fe(),it(C,ae=>{ae||(A.value=z.value)});const We=gJ(e,A),Ke=mJ(e,A);ot(Th,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:W,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},We),Ke),{datePickerSlots:t}));const X={focus:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=g.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=W.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),ke=p?et("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Ie,itemColorHover:Ne,itemColorActive:Qe,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:De,panelColor:Ze,panelTextColor:bt,arrowColor:be,calendarTitleTextColor:Fe,panelActionDividerColor:Je,panelHeaderDividerColor:at,calendarDaysDividerColor:ct,panelBoxShadow:Gt,panelBorderRadius:Kt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ge,panelActionPadding:st,itemSize:Pt,itemCellWidth:qt,itemCellHeight:Et,scrollItemWidth:Qr,scrollItemHeight:Nt,calendarTitlePadding:fn,calendarTitleHeight:Ao,calendarDaysHeight:ai,calendarDaysTextColor:li,arrowSize:si,panelHeaderPadding:qi,calendarDividerColor:Ah,calendarTitleGridTempateColumns:Bh,iconColor:Eh,iconColorDisabled:Lh,scrollItemBorderRadius:Nh,calendarTitleColorHover:Hh,[ye("calendarLeftPadding",ae)]:jh,[ye("calendarRightPadding",ae)]:Vh}}=W.value;return{"--n-bezier":ze,"--n-panel-border-radius":Kt,"--n-panel-color":Ze,"--n-panel-box-shadow":Gt,"--n-panel-text-color":bt,"--n-panel-header-padding":qi,"--n-panel-header-divider-color":at,"--n-calendar-left-padding":jh,"--n-calendar-right-padding":Vh,"--n-calendar-title-color-hover":Hh,"--n-calendar-title-height":Ao,"--n-calendar-title-padding":fn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":Fe,"--n-calendar-title-grid-template-columns":Bh,"--n-calendar-days-height":ai,"--n-calendar-days-divider-color":ct,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":li,"--n-calendar-divider-color":Ah,"--n-panel-action-padding":st,"--n-panel-extra-footer-padding":Ge,"--n-panel-action-divider-color":Je,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":Pt,"--n-item-cell-width":qt,"--n-item-cell-height":Et,"--n-item-text-color":$e,"--n-item-color-included":Ie,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Qe,"--n-item-text-color-disabled":le,"--n-item-text-color-active":De,"--n-scroll-item-width":Qr,"--n-scroll-item-height":Nt,"--n-scroll-item-border-radius":Nh,"--n-arrow-size":si,"--n-arrow-color":be,"--n-icon-color":Eh,"--n-icon-color-disabled":Lh}}),Ee=p?et("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},X),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:v,triggerElRef:b,inputInstRef:g,isMounted:Hn(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Ht(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:We.isValueInvalidRef,isStartValueInvalid:Ke.isStartValueInvalidRef,isEndValueInvalid:Ke.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:U,handleClear:ce,handlePanelClear:G,handleTriggerClick:ht,handleInputActivate:Pe,handleInputDeactivate:qe,handleInputFocus:vt,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ft,handleSingleUpdateValue:Ye,handlePanelUpdateValue:pe,handlePanelConfirm:Z,mergedTheme:W,actions:ue,triggerCssVars:p?void 0:q,triggerThemeClass:ke==null?void 0:ke.themeClass,triggerOnRender:ke==null?void 0:ke.onRender,cssVars:p?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(cee,Object.assign({},o),r):l==="daterange"?u(fee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(dee,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(_T,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(hee,Object.assign({},o,{type:l})):u(uee,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(qr,null,{default:()=>[u(Yr,null,{default:()=>this.isRange?u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?gt(r.separator,()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(HK,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>gt(r["date-icon"],()=>[u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(wC,null)})])}):u(En,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(dt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>gt(r["date-icon"],()=>[u(wC,null)])})})}),u(Or,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?un(i(),[[gr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),gee={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},PT=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},gee),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,titleTextColor:r,thColor:pt(o,t),thColorModal:pt(i,t),thColorPopover:pt(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:pt(o,l),borderColorModal:pt(i,l),borderColorPopover:pt(a,l),borderRadius:s})},mee={name:"Descriptions",common:nt,self:PT},bee=mee,yee={name:"Descriptions",common:tt,self:PT},xee=yee,$T="DESCRIPTION_ITEM_FLAG";function wee(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[$T]:!1}const Cee=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),mt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),I("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),I("left-label-align",[O("th",{textAlign:"left"})]),I("center-label-align",[O("th",{textAlign:"center"})]),I("right-label-align",[O("th",{textAlign:"right"})]),I("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),Mo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),TT=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),See=J({name:"Descriptions",props:TT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Descriptions","-descriptions",Cee,bee,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:p,thFontWeight:v,tdTextColor:b,tdColor:g,tdColorModal:m,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:_,lineHeight:k,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":v,"--n-line-height":k,"--n-th-text-color":p,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":g,"--n-td-color-modal":m,"--n-td-color-popover":y,"--n-border-radius":_,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?et("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ii(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Nr(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(g=>wee(g)),p={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((g,m,y)=>{const C=m.props||{},x=h.length-1===y,w=["label"in C?C.label:jx(m,"label")],_=[jx(m)],k=C.span||1,T=g.span;g.span+=k;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:k*2-1,style:R},_)):g.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:k*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},_)));else{const D=x?(n-T)*2:k*2;g.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:D,style:$},w)),g.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:D,style:R},_))}return(g.span>=n||x)&&(g.span=0,g.row.length&&(g.rows.push(g.row),g.row=[]),r!=="left"&&g.secondRow.length&&(g.rows.push(g.secondRow),g.secondRow=[])),g},p).rows.map(g=>u("tr",{class:`${c}-descriptions-table-row`},g));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||fc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),OT={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},kee=J({name:"DescriptionsItem",[$T]:!0,props:OT,render(){return null}}),_ee={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},zT=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:p,dividerColor:v,borderRadius:b,fontWeightStrong:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},_ee),{fontSize:y,lineHeight:m,border:`1px solid ${v}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:g})},Ree={name:"Dialog",common:nt,peers:{Button:xr},self:zT},MT=Ree,Pee={name:"Dialog",common:tt,peers:{Button:wr},self:zT},DT=Pee,Sc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},IT=Wn(Sc),$ee=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),I("bordered",{border:"var(--n-border)"}),I("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),I("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),I("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[I("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),Mo(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[G_(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),Tee={default:()=>u(Hi,null),info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null)},I0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),Sc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(e),o=P(()=>{var f,h;const{iconPlacement:p}=e;return p||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",$ee,MT,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:p},self:{fontSize:v,lineHeight:b,border:g,titleTextColor:m,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:_,closeIconColor:k,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:D,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:W,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":v,"--n-icon-color":re,"--n-bezier":p,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":_,"--n-close-icon-color":k,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":D,"--n-padding":L,"--n-line-height":b,"--n-border":g,"--n-content-margin":W,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":m,"--n-action-space":E}}),d=r?et("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:p,handleNegativeClick:v,mergedTheme:b,loading:g,type:m,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(dt,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>kt(this.$slots.icon,w=>w||(this.icon?Ut(this.icon):Tee[this.type]()))}):null,x=kt(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[Ut(s)]:[this.negativeText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:v},h),{default:()=>Ut(this.negativeText)}),this.positiveText&&u(Tt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:m==="default"?"primary":m,disabled:g,loading:g,onClick:p},f),{default:()=>Ut(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(ri,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,gt(this.$slots.header,()=>[Ut(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},gt(this.$slots.default,()=>[Ut(l)])),x)}}),FT="n-dialog-provider",AT="n-dialog-api",BT="n-dialog-reactive-list",ET=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},Oee={name:"Modal",common:nt,peers:{Scrollbar:br,Dialog:MT,Card:YP},self:ET},zee=Oee,Mee={name:"Modal",common:tt,peers:{Scrollbar:yr,Dialog:DT,Card:GP},self:ET},Dee=Mee,F0=Object.assign(Object.assign({},b0),Sc),Iee=Wn(F0),Fee=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},F0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=F(null),n=F(null),r=F(e.show),o=F(null),i=F(null);it(xe(e,"show"),g=>{g&&(r.value=!0)}),bR(P(()=>e.blockScroll&&r.value));const a=Le(rR);function l(){if(a.transformOriginRef.value==="center")return"";const{value:g}=o,{value:m}=i;if(g===null||m===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${g}px ${m+y}px`}return""}function s(g){if(a.transformOriginRef.value==="center")return;const m=a.getMousePosition();if(!m||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=g;if(m){const w=m.y,_=m.x;o.value=-(C-_),i.value=-(x-w-y)}g.style.transformOrigin=l()}function c(g){Rt(()=>{s(g)})}function d(g){g.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:g}=e;g&&g()}function p(){e.onNegativeClick()}function v(){e.onPositiveClick()}const b=F(null);return it(b,g=>{g&&Rt(()=>{const m=g.el;m&&t.value!==m&&(t.value=m)})}),ot(pc,t),ot(vc,null),ot(Ll,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:v,handleNegativeClick:p,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=ju(e),!l){Qn("modal","default slot is empty");return}l=ar(l),l.props=Gn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(ln,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Hb,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(Ft,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[$r,this.show]],{onClickoutside:f}=this;return f&&d.push([gr,this.onClickoutside,void 0,{capture:!0}]),un(this.preset==="confirm"||this.preset==="dialog"?u(I0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},xn(this.$props,IT),{"aria-modal":"true"}),e):this.preset==="card"?u(ZP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},xn(this.$props,PX),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),Aee=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Yo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[Dn({duration:".25s",enterScale:".5"})])]),LT=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),F0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),NT=J({name:"Modal",inheritAttrs:!1,props:LT,setup(e){const t=F(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=je(e),i=Se("Modal","-modal",Aee,zee,e,n),a=tR(64),l=eR(),s=Hn(),c=e.internalDialog?Le(FT,null):null,d=yR();function f(w){const{onUpdateShow:_,"onUpdate:show":k,onHide:T}=e;_&&he(_,w),k&&he(k,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function p(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function v(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(_=>{_!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:_}=e;w&&he(w),_&&_()}function g(){const{onAfterLeave:w,onAfterHide:_}=e;w&&he(w),_&&_()}function m(w){var _;const{onMaskClick:k}=e;k&&k(w),e.maskClosable&&!((_=t.value)===null||_===void 0)&&_.contains(vr(w))&&f(!1)}function y(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!d.value&&f(!1)}ot(rR,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:_}=c;if(w.value&&_.value)return _.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:_,color:k,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":_,"--n-color":k,"--n-text-color":T}}),x=o?et("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>xn(e,Iee)),handleEsc:y,handleAfterLeave:g,handleClickoutside:m,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:v,handlePositiveClick:p,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return un(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(Fee,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(Ft,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Bee=Object.assign(Object.assign({},Sc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),Eee=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},Bee),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=F(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(NT,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(I0,Object.assign({},xn(this.$props,IT),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),HT={injectionKey:String,to:[String,Object]},jT=J({name:"DialogProvider",props:HT,setup(){const e=F([]),t={};function n(l={}){const s=Tr(),c=ji(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return ot(AT,a),ot(FT,{clickedRef:tR(64),clickPositionRef:eR()}),ot(BT,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u(Ot,null,[this.dialogList.map(n=>u(Eee,Va(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function VT(){const e=Le(AT,null);return e===null&&Nn("use-dialog","No outer founded."),e}function Lee(){const e=Le(BT,null);return e===null&&Nn("use-dialog-reactive-list","No outer founded."),e}const WT=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},Nee={name:"Divider",common:nt,self:WT},Hee=Nee,jee={name:"Divider",common:tt,self:WT},Vee=jee,Wee=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[mt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[mt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),I("title-position-left",[M("line",[I("left",{width:"28px"})])]),I("title-position-right",[M("line",[I("right",{width:"28px"})])]),I("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),I("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),mt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),I("dashed",[M("line",{borderColor:"var(--n-color)"})]),I("vertical",{backgroundColor:"var(--n-color)"})]),UT=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Uee=J({name:"Divider",props:UT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Divider","-divider",Wee,Hee,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?et("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u(Ot,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),KT=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:p,primaryColorHover:v}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:v}},Kee={name:"Drawer",common:nt,peers:{Scrollbar:br},self:KT},qee=Kee,Yee={name:"Drawer",common:tt,peers:{Scrollbar:yr},self:KT},Gee=Yee,Xee=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=F(!!e.show),n=F(null),r=Le(Eb);let o=0,i="",a=null;const l=F(!1),s=F(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=je(e),h=en("Drawer",f,d),p=k=>{s.value=!0,o=c.value?k.clientY:k.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},v=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:g,doUpdateWidth:m}=r,y=k=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const D=o-k.clientY;R+=e.placement==="bottom"?D:-D,g(R),o=k.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const D=o-k.clientX;R+=e.placement==="right"?D:-D,m(R),o=k.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;At(()=>{e.show&&(t.value=!0)}),it(()=>e.show,k=>{k||C()}),Bt(()=>{C()});const w=P(()=>{const{show:k}=e,T=[[$r,k]];return e.showMask||T.push([gr,e.onClickoutside,void 0,{capture:!0}]),T});function _(){var k;t.value=!1,(k=e.onAfterLeave)===null||k===void 0||k.call(e)}return bR(P(()=>e.blockScroll&&t.value)),ot(vc,n),ot(Ll,null),ot(pc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:_,bodyDirectives:w,handleMousedownResizeTrigger:p,handleMouseenterResizeTrigger:v,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?un(u("div",{role:"none"},u(Hb,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(Ft,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>un(u("div",Gn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(ln,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[$r,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Zee,cubicBezierEaseOut:Qee}=mr;function Jee({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Zee}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qee}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:ete,cubicBezierEaseOut:tte}=mr;function nte({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ete}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:rte,cubicBezierEaseOut:ote}=mr;function ite({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rte}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ote}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:ate,cubicBezierEaseOut:lte}=mr;function ste({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ate}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${lte}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const cte=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[Jee(),nte(),ite(),ste(),I("unselectable",` - user-select: none; - -webkit-user-select: none; - `),I("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[I("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[I("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),I("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),I("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),I("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),I("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[I("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Yo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),qT=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),dte=J({name:"Drawer",inheritAttrs:!1,props:qT,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Hn(),i=Se("Drawer","-drawer",cte,qee,e,t),a=F(e.defaultWidth),l=F(e.defaultHeight),s=St(xe(e,"width"),a),c=St(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Mt(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Mt(c.value)}),h=w=>{const{onUpdateWidth:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),a.value=w},p=w=>{const{onUpdateHeight:_,"onUpdate:width":k}=e;_&&he(_,w),k&&he(k,w),l.value=w},v=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:_,maskClosable:k}=e;k&&y(!1),_&&_(w)}const g=yR();function m(w){var _;(_=e.onEsc)===null||_===void 0||_.call(e),e.show&&e.closeOnEsc&&Z_(w)&&!g.value&&y(!1)}function y(w){const{onHide:_,onUpdateShow:k,"onUpdate:show":T}=e;k&&he(k,w),T&&he(T,w),_&&!w&&he(_,w)}ot(Eb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:p,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:_,cubicBezierEaseOut:k},self:{color:T,textColor:$,boxShadow:R,lineHeight:D,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:W,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":D,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":k,"--n-bezier-in":_,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":W,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?et("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:v,handleMaskClick:b,handleEsc:m,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(mc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(Ft,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(Xee,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[gc,{zIndex:this.zIndex,enabled:this.show}]])}})}}),YT={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},ute=J({name:"DrawerContent",props:YT,setup(){const e=Le(Eb,null);e||Nn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(ri,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(ln,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),GT={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fte={name:"DynamicInput",common:tt,peers:{Input:Zr,Button:wr},self(){return GT}},hte=fte,pte=()=>GT,vte={name:"DynamicInput",common:nt,peers:{Input:zr,Button:xr},self:pte},gte=vte,A0="n-dynamic-input",mte=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(A0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),bte=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(A0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(En,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),yte=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[I("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),bd=new WeakMap,XT=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),xte=J({name:"DynamicInput",props:XT,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=je(),a=Le(Wu,null),l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=Se("DynamicInput","-dynamic-input",yte,gte,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),p=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function v($){const{onInput:R,"onUpdate:value":D,onUpdateValue:z}=e;R&&he(R,$),D&&he(D,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const D=wa($)?Dt($):$;let z=bd.get(D);return z===void 0&&bd.set(D,z=Tr()),z}function g($,R){const{value:D}=c,z=Array.from(D!=null?D:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=wa(A)?Dt(A):A,j=wa(R)?Dt(R):R,E=bd.get(L);E!==void 0&&bd.set(j,E)}v(z)}function m(){y(0)}function y($){const{value:R}=c,{onCreate:D}=e,z=Array.from(R!=null?R:[]);if(D)z.splice($+1,0,D($+1)),v(z);else if(t.default)z.splice($+1,0,null),v(z);else switch(e.preset){case"input":z.splice($+1,0,""),v(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),v(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:D}=e;if(R.length<=D)return;const z=Array.from(R);z.splice($,1),v(z);const{onRemove:A}=e;A&&A($)}function x($,R,D){if(R<0||D<0||R>=$.length||D>=$.length||R===D)return;const z=$[R];$[R]=$[D],$[D]=z}function w($,R){const{value:D}=c;if(!Array.isArray(D))return;const z=Array.from(D);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),v(z)}ot(A0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const _=en("DynamicInput",o,r),k=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?et("dynamic-input",void 0,k,e):void 0;return{locale:Cn("DynamicInput").localeRef,rtlEnabled:_,buttonSize:p,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:m,ensureKey:b,handleValueChange:g,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:p,createItem:v,move:b,onRender:g}=this;return g==null||g(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Tt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>gt(e["create-button-default"],()=>[o.create]),icon:()=>gt(e["create-button-icon"],()=>[u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})])}):r.map((m,y)=>u("div",{key:a?m[a]:f(m,y),"data-key":a?m[a]:f(m,y),class:`${n}-dynamic-input-item`,style:l},Da(e.default,{value:r[y],index:y},()=>[s==="input"?u(mte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(bte,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(g0,{size:t},{default:()=>[u(Tt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>p(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(z2,null)})}),u(Tt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>v(y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}),c?u(Tt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(TK,null)})}):null,c?u(Tt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u($2,null)})}):null]})))))}}),ZT={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},wte={name:"Space",self(){return ZT}},QT=wte,Cte=()=>ZT,Ste={name:"Space",self:Cte},JT=Ste;let Yp;const kte=()=>{if(!lr)return!0;if(Yp===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Yp=t}return Yp},eO=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),tO=J({name:"Space",props:eO,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e),r=Se("Space","-space",void 0,JT,e,t),o=en("Space",n,t);return{useGap:kte(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=TA(a);return{horizontal:hn(s),vertical:hn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Nr(fc(this));if(!h.length)return null;const p=`${i.horizontal}px`,v=`${i.horizontal/2}px`,b=`${i.vertical}px`,g=`${i.vertical/2}px`,m=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${g}`,marginBottom:c||e?"":`-${g}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==m?b:""}:s?{marginLeft:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginRight:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}:{marginRight:y?r==="space-between"&&x===m?"":v:x!==m?p:"",marginLeft:y?r==="space-between"&&x===0?"":v:"",paddingTop:g,paddingBottom:g}]},C)))}}),_te={name:"DynamicTags",common:tt,peers:{Input:Zr,Button:wr,Tag:Z2,Space:QT},self(){return{inputWidth:"64px"}}},Rte=_te,Pte={name:"DynamicTags",common:nt,peers:{Input:zr,Button:xr,Tag:Q2,Space:JT},self(){return{inputWidth:"64px"}}},$te=Pte,Tte=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),nO=Object.assign(Object.assign(Object.assign({},Se.props),J2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ote=J({name:"DynamicTags",props:nO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),{localeRef:r}=Cn("DynamicTags"),o=Sn(e),{mergedDisabledRef:i}=o,a=F(""),l=F(!1),s=F(!0),c=F(null),d=Se("DynamicTags","-dynamic-tags",Tte,$te,e,t),f=F(e.defaultValue),h=xe(e,"value"),p=St(h,f),v=P(()=>r.value.add),b=P(()=>$v(e.size)),g=P(()=>i.value||!!e.max&&p.value.length>=e.max);function m($){const{onChange:R,"onUpdate:value":D,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),D&&he(D,$),f.value=$,A(),L()}function y($){const R=p.value.slice(0);R.splice($,1),m(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const D=p.value.slice(0);D.push(e.onCreate(R)),m(D)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function _(){l.value=!0,Rt(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const k=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?et("dynamic-tags",void 0,k,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:v,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:p,mergedDisabled:i,triggerDisabled:g,handleInputKeyUp:C,handleAddClick:_,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:k,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(tO,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:p,inputValue:v,inputStyle:b,inputSize:g,inputForceFocused:m,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:_,handleInputConfirm:k,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(zs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>_(R)},{default:()=>typeof $=="string"?$:$.label})).concat(p?T.input?T.input({submit:k,deactivate:x}):u(En,Object.assign({placeholder:"",size:g,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:v,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:m})):T.trigger?T.trigger({activate:w,disabled:y}):u(Tt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:g,onClick:w},{icon:()=>u(dt,{clsPrefix:n},{default:()=>u(Dl,null)})}))}})}}),zte={name:"Element",common:tt},Mte=zte,Dte={name:"Element",common:nt},Ite=Dte,rO=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),sS=J({name:"Element",alias:["El"],props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Element","-element",void 0,Ite,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${s2(s)}`]=a[s],l),{})}),i=n?et("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),Fte={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},oO=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},Fte),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},Ate={name:"Form",common:nt,self:oO},iO=Ate,Bte={name:"Form",common:tt,self:oO},Ete=Bte,Lte=S("form",[I("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),kc="n-form",aO="n-form-item-insts";var Nte=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const lO=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),Hte=J({name:"Form",props:lO,setup(e){const{mergedClsPrefixRef:t}=je(e);Se("Form","-form",Lte,iO,e,t);const n={},r=F(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return Nte(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const p of Wn(n)){const v=n[p];for(const b of v)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(p=>{if(p.some(v=>!v.valid)){const v=p.filter(b=>b.errors).map(b=>b.errors);s&&s(v),f(v)}else s&&s(),d()})})})}function a(){for(const s of Wn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return ot(kc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),ot(aO,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ku(e,t,n){return Vte()?ku=Reflect.construct.bind():ku=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&rc(c,a.prototype),c},ku.apply(null,arguments)}function Wte(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Bm(e){var t=typeof Map=="function"?new Map:void 0;return Bm=function(r){if(r===null||!Wte(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return ku(r,arguments,Am(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),rc(o,r)},Bm(e)}var Ute=/%[sdj%]/g,Kte=function(){};typeof process<"u"&&process.env;function Em(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function kr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function qte(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qte(t)&&typeof e=="string"&&!e)}function Yte(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function cS(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},vs={integer:function(t){return vs.number(t)&&parseInt(t,10)===t},float:function(t){return vs.number(t)&&!vs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!vs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(hS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ene())},hex:function(t){return typeof t=="string"&&!!t.match(hS.hex)}},tne=function(t,n,r,o,i){if(t.required&&n===void 0){sO(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?vs[l](n)||o.push(kr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(kr(i.messages.types[l],t.fullField,t.type))},nne=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(h?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),p&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(kr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(kr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(kr(i.messages[f].range,t.fullField,t.min,t.max))},pl="enum",rne=function(t,n,r,o,i){t[pl]=Array.isArray(t[pl])?t[pl]:[],t[pl].indexOf(n)===-1&&o.push(kr(i.messages[pl],t.fullField,t[pl].join(", ")))},one=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(kr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Lt={required:sO,whitespace:Jte,type:tne,range:nne,enum:rne,pattern:one},ine=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i,"string"),Ln(n,"string")||(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i),Lt.pattern(t,n,o,a,i),t.whitespace===!0&&Lt.whitespace(t,n,o,a,i))}r(a)},ane=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},lne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},sne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},cne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n)||Lt.type(t,n,o,a,i)}r(a)},dne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},une=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},fne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Lt.required(t,n,o,a,i,"array"),n!=null&&(Lt.type(t,n,o,a,i),Lt.range(t,n,o,a,i))}r(a)},hne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt.type(t,n,o,a,i)}r(a)},pne="enum",vne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i),n!==void 0&&Lt[pne](t,n,o,a,i)}r(a)},gne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"string")&&!t.required)return r();Lt.required(t,n,o,a,i),Ln(n,"string")||Lt.pattern(t,n,o,a,i)}r(a)},mne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n,"date")&&!t.required)return r();if(Lt.required(t,n,o,a,i),!Ln(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Lt.type(t,s,o,a,i),s&&Lt.range(t,s.getTime(),o,a,i)}}r(a)},bne=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Lt.required(t,n,o,a,i,l),r(a)},Gp=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,a)&&!t.required)return r();Lt.required(t,n,o,l,i,a),Ln(n,a)||Lt.type(t,n,o,l,i)}r(l)},yne=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ln(n)&&!t.required)return r();Lt.required(t,n,o,a,i)}r(a)},Ms={string:ine,method:ane,number:lne,boolean:sne,regexp:cne,integer:dne,float:une,array:fne,object:hne,enum:vne,pattern:gne,date:mne,url:Gp,hex:Gp,email:Gp,required:bne,any:yne};function Lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Nm=Lm(),_c=function(){function e(n){this.rules=null,this._messages=Nm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=fS(Lm(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var g=[],m={};function y(x){if(Array.isArray(x)){var w;g=(w=g).concat.apply(w,x)}else g.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function wne(e){const t=Le(kc,null),n=P(()=>{const{labelPlacement:p}=e;return p!==void 0?p:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:p}=e;if(p!==void 0&&p!=="auto")return Mt(p);if(r.value){const v=t==null?void 0:t.maxChildLabelWidthRef.value;return v!==void 0?Mt(v):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Mt(t.props.labelWidth)}),i=P(()=>{const{labelAlign:p}=e;if(p)return p;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var p;return[(p=e.labelProps)===null||p===void 0?void 0:p.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:p}=e;return p!==void 0?p:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:p}=e;return p!==void 0?p:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=F(!1),d=P(()=>{const{validationStatus:p}=e;if(p!==void 0)return p;if(c.value)return"error"}),f=P(()=>{const{showFeedback:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:p}=e;return p!==void 0?p:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function Cne(e){const t=Le(kc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=Qs(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:pS}=mr;function Sne({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=pS,leaveCubicBezier:i=pS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const kne=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),I("auto-label-width",[S("form-item-label","white-space: nowrap;")]),I("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[I("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),I("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),I("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),I("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),I("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[I("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[I("warning",{color:"var(--n-feedback-text-color-warning)"}),I("error",{color:"var(--n-feedback-text-color-error)"}),Sne({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var vS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const Rc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),cO=Wn(Rc);function gS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Qn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Qn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const B0=J({name:"FormItem",props:Rc,setup(e){uB(aO,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Le(kc,null),o=xne(e),i=wne(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=Cne(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,p=F([]),v=F(Tr()),b=r?xe(r.props,"disabled"):F(!1),g=Se("Form","-form-item",kne,iO,e,t);it(xe(e,"path"),()=>{e.ignorePathChange||m()});function m(){p.value=[],a.value=!1,e.feedback&&(v.value=Tr())}function y(){k("blur")}function C(){k("change")}function x(){k("focus")}function w(){k("input")}function _(A,L){return vS(this,void 0,void 0,function*(){let j,E,W,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,W=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{k(j,W,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const k=(A=null,L=()=>!0,j={suppressWarning:!0})=>vS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:W}=s,K=r?Qs(r.props.model,E||""):void 0,Q={},V={},re=(A?W.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):W).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=gS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=gS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new _c({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(p.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(m(),Ce({valid:!0}))})})});ot(Wu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:m,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:_,restoreValidation:m,internalValidate:k},$=F(null);It(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:_e,[ye("labelPadding",E)]:ve,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=g.value;let U=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(U=U==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":U,"--n-label-height":we,"--n-label-padding":ve,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":_e,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),D=n?et("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:v,renderExplains:p,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:D==null?void 0:D.themeClass,onRender:D==null?void 0:D.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(Ft,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return kt(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:v})=>u("div",{key:p,class:`${t}-form-item-feedback__line`},v())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),mS=1,dO="n-grid",uO=1,oc={span:{type:[Number,String],default:uO},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},_ne=Wn(oc),Hm=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:oc,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(dO),i=Jo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>yn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=uO,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=yn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),jm=Object.assign(Object.assign({},oc),Rc),bS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:jm,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Hm,xn(this.$.vnode.props||{},_ne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),Rne=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[I(`${n}-span`,{width:r}),I(`${n}-offset`,{marginLeft:r}),I(`${n}-push`,{left:r}),I(`${n}-pull`,{right:r})]}),Pne=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),Rne])]),fO="n-row",zh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},$ne=Wn(zh),hO=J({name:"Row",props:zh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=je(e);Xr("-legacy-grid",Pne,t);const r=en("Row",n,t),o=lt(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=lt(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return ot(fO,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:lt(()=>`-${Mt(o.value,{c:.5})} -${Mt(i.value,{c:.5})}`),styleWidth:lt(()=>`calc(100% + ${Mt(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),Mh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},Tne=Wn(Mh),pO=J({name:"Col",props:Mh,setup(e){const t=Le(fO,null);return t||Nn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Mt(t.verticalGutterRef.value,{c:.5})} ${Mt(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),E0=Object.assign(Object.assign({},Mh),Rc),One=Wn(E0),vO=J({name:"FormItemCol",props:E0,setup(){const e=F(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(pO,xn(this.$props,Tne),{default:()=>{const e=xn(this.$props,cO);return u(B0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),zne=Object.assign(Object.assign({},zh),E0),Mne=J({name:"FormItemRow",props:zne,setup(){const e=F(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(hO,xn(this.$props,$ne),{default:()=>{const e=xn(this.$props,One);return u(vO,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),Dne=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Ur,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Qo(()=>{At(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?bl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||nt,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):nt;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const p=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=p},0):n.transition=p,t.setAttribute("n-styled",""),r=!0,o=!1}})}),sc(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Ine={name:"GradientText",common:tt,self(e){const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:f}=e;return{fontWeight:f,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:r,colorEndWarning:s,colorStartError:o,colorEndError:c,colorStartSuccess:n,colorEndSuccess:l}}},Fne=Ine,Ane=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:He(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:He(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:He(r,{alpha:.6}),colorEndWarning:r,colorStartError:He(o,{alpha:.6}),colorEndError:o,colorStartSuccess:He(n,{alpha:.6}),colorEndSuccess:n}},Bne={name:"GradientText",common:nt,self:Ane},Ene=Bne,Lne=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),gO=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Nne=J({name:"GradientText",props:gO,setup(e){Lb();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Mt(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Lne,Ene,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:p,fontWeight:v}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":p,"--n-font-weight":v}}),s=n?et("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Hne={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},mO=24,Xp="__ssr__",bO={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:mO},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},jne=J({name:"Grid",inheritAttrs:!1,props:bO,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=je(e),r=/^\d+$/,o=F(void 0),i=RB((n==null?void 0:n.value)||Hne),a=lt(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=lt(()=>{var m;return(m=Number(Jl(e.cols.toString(),l.value)))!==null&&m!==void 0?m:mO}),c=lt(()=>Jl(e.xGap.toString(),l.value)),d=lt(()=>Jl(e.yGap.toString(),l.value)),f=m=>{o.value=m.contentRect.width},h=m=>{Ma(f,m)},p=F(!1),v=P(()=>{if(e.responsive==="self")return h}),b=F(!1),g=F();return It(()=>{const{value:m}=g;m&&m.hasAttribute(Xp)&&(m.removeAttribute(Xp),b.value=!0)}),ot(dO,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:p}),{isSsr:!lr,contentEl:g,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:yn(e.xGap),rowGap:yn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:yn(c.value),rowGap:yn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:v,overflow:p}},render(){if(this.layoutShiftDisabled)return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Nr(fc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:p}=this;s.forEach(y=>{var C,x,w,_;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(HA(y)){const $=ar(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==$r))||null;const k=ar(y),T=Number((_=Jl((w=k.props)===null||w===void 0?void 0:w.span,p))!==null&&_!==void 0?_:mS);T!==0&&c.push({child:k,rawChildSpan:T})});let v=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(v=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:mS,b.props.privateSpan=v,b.props.privateColStart=h+1-v,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let g=0,m=!1;for(const{child:y,rawChildSpan:C}of c){if(m&&(this.overflow=!0),!m){const x=Number((l=Jl((a=y.props)===null||a===void 0?void 0:a.offset,p))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const _=g%h;w+_>h&&(g+=h-_),w+g+v>f*h?m=!0:g+=w}}m&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Gn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Xp]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(jr,{onResize:this.handleResize},{default:e}):e()}}),yO=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Vne={name:"IconWrapper",common:nt,self:yO},Wne=Vne,Une={name:"IconWrapper",common:tt,self:yO},Kne=Une,qne=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),xO=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Yne=J({name:"IconWrapper",props:xO,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",qne,Wne,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?et("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Mt(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Mt(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),L0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),wO="n-image";function Gne(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Xne={name:"Image",common:nt,peers:{Tooltip:_h},self:Gne},Zne={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},CO=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:p,borderRadius:v,fontWeightStrong:b,boxShadow2:g,lineHeight:m,fontSize:y}=e;return Object.assign(Object.assign({},Zne),{borderRadius:v,lineHeight:m,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:v,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:p,actionTextColor:t,boxShadow:g})},Qne={name:"Notification",common:nt,peers:{Scrollbar:br},self:CO},Jne=Qne,ere={name:"Notification",common:tt,peers:{Scrollbar:yr},self:CO},tre=ere,nre={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},SO=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:p,closeColorHover:v,closeColorPressed:b}=e;return Object.assign(Object.assign({},nre),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:v,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:v,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:v,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:v,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:v,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:v,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:p})},rre={name:"Message",common:nt,self:SO},ore=rre,ire={name:"Message",common:tt,self:SO},are=ire,lre={name:"ButtonGroup",common:tt},sre=lre,cre={name:"InputNumber",common:tt,peers:{Button:wr,Input:Zr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},dre=cre,ure=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},fre={name:"InputNumber",common:nt,peers:{Button:xr,Input:zr},self:ure},hre=fre,pre={name:"Layout",common:tt,peers:{Scrollbar:yr},self(e){const{textColor2:t,bodyColor:n,popoverColor:r,cardColor:o,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:o,headerColorInverted:o,footerColor:o,footerColorInverted:o,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:o,siderColorInverted:o,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:pt(n,a),siderToggleBarColorHover:pt(n,l),__invertScrollbar:"false"}}},vre=pre,gre=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:pt(r,l),siderToggleBarColorHover:pt(r,s),__invertScrollbar:"true"}},mre={name:"Layout",common:nt,peers:{Scrollbar:br},self:gre},Dh=mre,kO=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:pt(r,s),colorPopover:o,colorHoverPopover:pt(o,s),borderColor:i,borderColorModal:pt(r,i),borderColorPopover:pt(o,i),borderRadius:a,fontSize:l}},bre={name:"List",common:nt,self:kO},yre=bre,xre={name:"List",common:tt,self:kO},wre=xre,Cre={name:"LoadingBar",common:tt,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Sre=Cre,kre=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},_re={name:"LoadingBar",common:nt,self:kre},Rre=_re,Pre={name:"Log",common:tt,peers:{Scrollbar:yr,Code:c$},self(e){const{textColor2:t,inputColor:n,fontSize:r,primaryColor:o}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:o}}},$re=Pre,Tre=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},Ore={name:"Log",common:nt,peers:{Scrollbar:br,Code:d$},self:Tre},zre=Ore,Mre={name:"Mention",common:tt,peers:{InternalSelectMenu:yc,Input:Zr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},Dre=Mre,Ire=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},Fre={name:"Mention",common:nt,peers:{InternalSelectMenu:Hl,Input:zr},self:Ire},Are=Fre;function Bre(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const _O=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:He(r,{alpha:.1}),itemColorActiveHover:He(r,{alpha:.1}),itemColorActiveCollapsed:He(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},Bre("#BBB",r,"#FFF","#AAA"))},Ere={name:"Menu",common:nt,peers:{Tooltip:_h,Dropdown:S0},self:_O},Lre=Ere,Nre={name:"Menu",common:tt,peers:{Tooltip:kh,Dropdown:k0},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,r=_O(e);return r.itemColorActive=He(t,{alpha:.15}),r.itemColorActiveHover=He(t,{alpha:.15}),r.itemColorActiveCollapsed=He(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},Hre=Nre,jre={titleFontSize:"18px",backSize:"22px"};function RO(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},jre),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const Vre={name:"PageHeader",common:nt,self:RO},Wre={name:"PageHeader",common:tt,self:RO},Ure={iconSize:"22px"},PO=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},Ure),{fontSize:t,iconColor:n})},Kre={name:"Popconfirm",common:nt,peers:{Button:xr,Popover:Qa},self:PO},qre=Kre,Yre={name:"Popconfirm",common:tt,peers:{Button:wr,Popover:Ja},self:PO},Gre=Yre,$O=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Xre={name:"Progress",common:nt,self:$O},TO=Xre,Zre={name:"Progress",common:tt,self(e){const t=$O(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},OO=Zre,Qre={name:"Rate",common:tt,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Jre=Qre,eoe=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},toe={name:"Rate",common:nt,self:eoe},noe=toe,roe={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},zO=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},roe),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},ooe={name:"Result",common:nt,self:zO},ioe=ooe,aoe={name:"Result",common:tt,self:zO},loe=aoe,MO={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},soe={name:"Slider",common:tt,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:r,primaryColorSuppl:o,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},MO),{fontSize:c,markFontSize:c,railColor:n,railColorHover:n,fillColor:o,fillColorHover:o,opacityDisabled:d,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}},coe=soe,doe=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},MO),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},uoe={name:"Slider",common:nt,self:doe},foe=uoe,DO=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},hoe={name:"Spin",common:nt,self:DO},poe=hoe,voe={name:"Spin",common:tt,self:DO},goe=voe,IO=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},moe={name:"Statistic",common:nt,self:IO},boe=moe,yoe={name:"Statistic",common:tt,self:IO},xoe=yoe,woe={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},FO=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},woe),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Coe={name:"Steps",common:nt,self:FO},Soe=Coe,koe={name:"Steps",common:tt,self:FO},_oe=koe,AO={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Roe={name:"Switch",common:tt,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:o,textColor2:i,baseColor:a}=e,l="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},AO),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:n,railColor:l,railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${He(o,{alpha:.3})}`})}},Poe=Roe,$oe=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},AO),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${He(t,{alpha:.2})}`})},Toe={name:"Switch",common:nt,self:$oe},Ooe=Toe,zoe={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},BO=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v}=e;return Object.assign(Object.assign({},zoe),{fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:v,lineHeight:f,borderRadius:c,borderColor:pt(n,t),borderColorModal:pt(r,t),borderColorPopover:pt(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:pt(n,a),tdColorStripedModal:pt(r,a),tdColorStripedPopover:pt(o,a),thColor:pt(n,i),thColorModal:pt(r,i),thColorPopover:pt(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Moe={name:"Table",common:nt,self:BO},Doe=Moe,Ioe={name:"Table",common:tt,self:BO},Foe=Ioe,Aoe={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},EO=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:p,borderRadius:v,fontSize:b,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Aoe),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:v,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:v,paneTextColor:t,fontWeightStrong:g})},Boe={name:"Tabs",common:nt,self:EO},Eoe=Boe,Loe={name:"Tabs",common:tt,self(e){const t=EO(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}},Noe=Loe,LO=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},Hoe={name:"Thing",common:nt,self:LO},joe=Hoe,Voe={name:"Thing",common:tt,self:LO},Woe=Voe,NO={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},Uoe={name:"Timeline",common:tt,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:o,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},Koe=Uoe,qoe=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},NO),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},Yoe={name:"Timeline",common:nt,self:qoe},Goe=Yoe,HO={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},Xoe={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,hoverColor:v,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C,dividerColor:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:x,borderColor:"#0000",listColor:s,headerColor:c,titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:v,titleFontWeight:t,closeColorHover:b,closeColorPressed:g,closeIconColor:m,closeIconColorHover:y,closeIconColorPressed:C})}},Zoe=Xoe,Qoe=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:p,borderColor:v,hoverColor:b,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},HO),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:v,borderColor:v,listColor:s,headerColor:pt(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:p,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:g,closeColorPressed:m,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},Joe={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Qoe},eie=Joe,jO=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:He(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},tie={name:"Tree",common:nt,peers:{Checkbox:jl,Scrollbar:br,Empty:oi},self:jO},VO=tie,nie={name:"Tree",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Empty:Za},self(e){const{primaryColor:t}=e,n=jO(e);return n.nodeColorActive=He(t,{alpha:.15}),n}},WO=nie,rie={name:"TreeSelect",common:tt,peers:{Tree:WO,Empty:Za,InternalSelection:h0}},oie=rie,iie=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},aie={name:"TreeSelect",common:nt,peers:{Tree:VO,Empty:oi,InternalSelection:Ch},self:iie},lie=aie,sie={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},UO=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:p,successColor:v,codeColor:b}=e;return Object.assign(Object.assign({},sie),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:p,headerBarColorWarning:h,headerBarColorSuccess:v,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:v,textColorWarning:h,textColorError:p,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},cie={name:"Typography",common:nt,self:UO},Ki=cie,die={name:"Typography",common:tt,self:UO},uie=die,KO=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:He(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},fie={name:"Upload",common:nt,peers:{Button:xr,Progress:TO},self:KO},hie=fie,pie={name:"Upload",common:tt,peers:{Button:wr,Progress:OO},self(e){const{errorColor:t}=e,n=KO(e);return n.itemColorHoverError=He(t,{alpha:.09}),n}},vie=pie,gie={name:"Watermark",common:tt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},mie=gie,bie={name:"Watermark",common:nt,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},yie=bie,xie={name:"Row",common:tt},wie=xie,Cie={name:"Image",common:tt,peers:{Tooltip:kh},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},Sie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),kie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),_ie=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Rie=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Yo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Yo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[Dn()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[mt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),xd=32,qO=J({name:"ImagePreview",props:Object.assign(Object.assign({},L0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Rie,Xne,e,xe(e,"clsPrefix"));let n=null;const r=F(null),o=F(null),i=F(void 0),a=F(!1),l=F(!1),{localeRef:s}=Cn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:U}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,G=Y.top+Y.height/2;U.transformOrigin=`${ce}px ${G}px`}function d(H){var U,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(U=e.onPrev)===null||U===void 0||U.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}it(a,H=>{H?_t("keydown",document,d):Ct("keydown",document,d)}),Bt(()=>{Ct("keydown",document,d)});let f=0,h=0,p=0,v=0,b=0,g=0,m=0,y=0,C=!1;function x(H){const{clientX:U,clientY:Y}=H;p=U-f,v=Y-h,Ma(de)}function w(H){const{mouseUpClientX:U,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:G}=H,B=ce-U,N=G-Y,te=`vertical${N>0?"Top":"Bottom"}`,pe=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:pe,deltaHorizontal:B,deltaVertical:N}}function _(H){const{value:U}=r;if(!U)return{offsetX:0,offsetY:0};const Y=U.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:G,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,pe=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?pe=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(D,z));const U=H-A;de(!1);const Y=_();A+=U,de(!1),A-=U,p=Y.offsetX,v=Y.offsetY,de()}}function de(H=!0){var U;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,G=ac((U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.style);let B="";if(typeof G=="string")B=G+";";else for(const te in G)B+=`${s2(te)}: ${G[te]};`;const N=`transform-origin: center; transform: translateX(${p}px) translateY(${v}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(D)),p=0,v=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,U){if(e.showToolbarTooltip){const{value:Y}=t;return u(Rh,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[U],trigger:()=>H})}else return H}const _e=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:U,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:G}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":U,"--n-toolbar-color":G,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:ve}=je(),Me=ve?et("image-preview",void 0,_e,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:Hn(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var U,Y;(Y=(U=T==null?void 0:T.previewedImgPropsRef.value)===null||U===void 0?void 0:U.onDragstart)===null||Y===void 0||Y.call(U,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:W,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:ve?void 0:_e,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(mc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),un(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(Ft,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u(Ot,null,o(u(dt,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Sie}),"tipPrevious"),o(u(dt,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>kie}),"tipNext")):null,o(u(dt,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(UK,null)}),"tipCounterclockwise"),o(u(dt,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(WK,null)}),"tipClockwise"),o(u(dt,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(YK,null)}),"tipOriginalSize"),o(u(dt,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(qK,null)}),"tipZoomOut"),o(u(dt,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(KK,null)}),"tipZoomIn"),o(u(dt,{clsPrefix:n,onClick:this.toggleShow},{default:()=>_ie}),"tipClose"))}}):null,u(Ft,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return un(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[$r,this.show]])}})),[[gc,{enabled:this.show}]])):null}}))}}),YO="n-image-group",GO=L0,XO=J({name:"ImageGroup",props:GO,setup(e){let t;const{mergedClsPrefixRef:n}=je(e),r=`c${Tr()}`,o=Jo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}ot(YO,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=F(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),ZO=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},L0),QO=J({name:"Image",props:ZO,inheritAttrs:!1,setup(e){const t=F(null),n=F(!1),r=F(null),o=Le(YO,null),{mergedClsPrefixRef:i}=o||je(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=F(!e.lazy);It(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),It(()=>{if(_l)return;let c;const d=At(()=>{c==null||c(),c=void 0,e.lazy&&(c=wP(t.value,e.intersectionObserverOptions,l))});Bt(()=>{d(),c==null||c()})}),At(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=F(!1);return ot(wO,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:_l?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:_l&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(qO,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Pie(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function $ie(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Zp(e){return e==null?!0:!Number.isNaN(e)}function yS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Qp(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Tie=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),xS=800,wS=100,JO=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Oie=J({name:"InputNumber",props:JO,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=Se("InputNumber","-input-number",Tie,hre,e,n),{localeRef:i}=Cn("InputNumber"),a=Sn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=F(null),f=F(null),h=F(null),p=F(e.defaultValue),v=xe(e,"value"),b=St(v,p),g=F(""),m=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:m(te));return Math.max(...N)},C=lt(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=lt(()=>{const B=Qp(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=lt(()=>{const B=Qp(e.min);return B!==null?B:null}),_=lt(()=>{const B=Qp(e.max);return B!==null?B:null}),k=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:pe,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),pe&&he(pe,B),te&&he(te,B),p.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:pe})=>{const{value:Z}=g;if(pe&&$ie(Z))return!1;const fe=(e.parse||Pie)(Z);if(fe===null)return N&&k(null),null;if(Zp(fe)){const ne=m(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||pe)return!1;Pe=Ae}if(qe!==null&&Pe{const{value:B}=b;if(Zp(B)){const{format:N,precision:te}=e;N?g.value=N(B):B===null||te===void 0||m(B)>te?g.value=yS(B,void 0):g.value=yS(B,te)}else g.value=String(B)};$();const R=lt(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),D=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=lt(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const pe=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(pe!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(pe||"")),b.value===pe&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),Rt(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function W(){const{value:B}=D;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||k(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=_;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),k(null)}function ee(B){var N,te,pe;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(pe=d.value)===null||pe===void 0||pe.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){_e&&(window.clearTimeout(_e),_e=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{W()},wS)},xS),_t("mouseup",document,we,{once:!0})}let _e=null;function ve(){me(),_e=window.setTimeout(()=>{de=window.setInterval(()=>{E()},wS)},xS),_t("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||W()};function U(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!D.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&W()}}function Y(B){g.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}it(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},G=en("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:G,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:p,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:g,addable:z,minusable:D,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:ve,handleMinusMousedown:Oe,handleKeyDown:U,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,pe,Z]=Tn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${pe})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(lo,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>gt(t["minus-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(z2,null)})])}),r=()=>u(lo,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>gt(t["add-icon"],()=>[u(dt,{clsPrefix:e},{default:()=>u(Dl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(En,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),kt(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[kt(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),ez="n-layout-sider",Ih={type:String,default:"static"},zie=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Vm={embedded:Boolean,position:Ih,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},tz="n-layout";function nz(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Vm),setup(t){const n=F(null),r=F(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=je(t),a=Se("Layout","-layout",zie,Dh,t,o);function l(b,g){if(t.nativeScrollbar){const{value:m}=n;m&&(g===void 0?m.scrollTo(b):m.scrollTo(b,g))}else{const{value:m}=r;m&&m.scrollTo(b,g)}}ot(tz,t);let s=0,c=0;const d=b=>{var g;const m=b.target;s=m.scrollLeft,c=m.scrollTop,(g=t.onScroll)===null||g===void 0||g.call(t,b)};Vb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},p=P(()=>{const{common:{cubicBezierEaseInOut:b},self:g}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?g.colorEmbedded:g.color,"--n-text-color":g.textColor}}),v=i?et("layout",P(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Mie=nz(!1),Die=nz(!0),Iie=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),I("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),rz={position:Ih,inverted:Boolean,bordered:{type:Boolean,default:!1}},Fie=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),rz),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-header",Iie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?et("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Aie=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[I("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),I("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),oz=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Ih,bordered:Boolean}),Bie=J({name:"LayoutFooter",props:oz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Layout","-layout-footer",Aie,Dh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?et("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Eie=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[I("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[I("bordered",[M("border",` - right: 0; - `)])]),I("right-placement",` - justify-content: flex-start; - `,[I("bordered",[M("border",` - left: 0; - `)]),I("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),I("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),I("show-content",[S("layout-sider-scroll-container",{opacity:1})]),I("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Lie=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(dt,{clsPrefix:e},{default:()=>u(Ya,null)}))}}),Nie=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),iz={position:Ih,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Hie=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),iz),setup(e){const t=Le(tz),n=F(null),r=F(null),o=P(()=>Mt(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Mt(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=F(e.defaultCollapsed),s=St(xe(e,"collapsed"),l);function c(w,_){if(e.nativeScrollbar){const{value:k}=n;k&&(_===void 0?k.scrollTo(w):k.scrollTo(w,_))}else{const{value:k}=r;k&&k.scrollTo(w,_)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:_,onExpand:k,onCollapse:T}=e,{value:$}=s;_&&he(_,!$),w&&he(w,!$),l.value=!$,$?k&&he(k):T&&he(T)}let f=0,h=0;const p=w=>{var _;const k=w.target;f=k.scrollLeft,h=k.scrollTop,(_=e.onScroll)===null||_===void 0||_.call(e,w)};Vb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),ot(ez,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:v,inlineThemeDisabled:b}=je(e),g=Se("Layout","-layout-sider",Eie,Dh,e,v);function m(w){var _,k;w.propertyName==="max-width"&&(s.value?(_=e.onAfterLeave)===null||_===void 0||_.call(e):(k=e.onAfterEnter)===null||k===void 0||k.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:_}=g.value,{siderToggleButtonColor:k,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=_,D={"--n-bezier":w,"--n-toggle-button-color":k,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(D["--n-color"]=_.siderColorInverted,D["--n-text-color"]=_.textColorInverted,D["--n-border-color"]=_.siderBorderColorInverted,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColorInverted,D.__invertScrollbar=_.__invertScrollbar):(D["--n-color"]=_.siderColor,D["--n-text-color"]=_.textColor,D["--n-border-color"]=_.siderBorderColor,D["--n-toggle-button-icon-color"]=_.siderToggleButtonIconColor),D}),x=b?et("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:v,mergedTheme:g,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:p,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Mt(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(ln,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Nie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Lie,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),az={extraFontSize:"12px",width:"440px"},jie={name:"Transfer",common:tt,peers:{Checkbox:Vl,Scrollbar:yr,Input:Zr,Empty:Za,Button:wr},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,inputColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,hoverColor:g}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:"#0000",listColor:f,headerColor:h,titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:"#0000",itemTextColor:b,itemTextColorDisabled:v,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}},Vie=jie,Wie=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:p,textColorDisabled:v,textColor2:b,borderColor:g,hoverColor:m}=e;return Object.assign(Object.assign({},az),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:g,listColor:f,headerColor:pt(f,h),titleTextColor:p,titleTextColorDisabled:v,extraTextColor:b,filterDividerColor:g,itemTextColor:b,itemTextColorDisabled:v,itemColorPending:m,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Uie={name:"Transfer",common:nt,peers:{Checkbox:jl,Scrollbar:br,Input:zr,Empty:oi,Button:xr},self:Wie},Kie=Uie,Pc="n-transfer",CS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(Pc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:p}=l,{value:v}=c;return u("div",{class:`${v}-legacy-transfer-list-header`},u("div",{class:`${v}-legacy-transfer-list-header__checkbox`},u(ii,{theme:p.peers.Checkbox,themeOverrides:p.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${v}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${v}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),SS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(Pc),s=lt(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:hc(r)},r))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u(Ot,null,u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(SS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(ah,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(SS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(Ft,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),_S=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Pc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(M2,null)})}))}});function qie(e,t){const n=F(e.defaultValue),r=xe(e,"value"),o=St(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(D=>R.set(D.value,D)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(D=>R.get(D))}),c=F(""),d=F(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(D=>R(c.value,D,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(D=>R(d.value,D,"target"))}),p=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),v=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=F([]),g=F([]),m=P(()=>{const R=b.value.filter(z=>p.value.has(z)).length,D=p.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=g.value.filter(z=>v.value.has(z)).length,D=v.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=lt(()=>t.value?!0:g.value.length===0),x=lt(()=>t.value?!0:b.value.length===0),w=F(!1);function _(){w.value=!0}function k(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:p,avlTgtValueSet:v,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:_,handleInputBlur:k,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Yie=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Gie=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[I("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Yo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[I("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),I("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),I("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),I("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Yie]),lz=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Xie=J({name:"LegacyTransfer",props:lz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("LegacyTransfer","-legacy-transfer",Gie,Kie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return hn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:p,filteredTgtOpts:v,srcCheckedValues:b,tgtCheckedValues:g,srcCheckedStatus:m,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:_,toButtonDisabled:k,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D}=qie(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=m;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?g.value=[]:g.value=Array.from(d.value)}function j(V,re){if(V)g.value.push(re);else{const ee=g.value.findIndex(ue=>ue===re);~ee&&g.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function W(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(g.value);z((s.value||[]).filter(re=>!V.has(re))),g.value=[]}ot(Pc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:g,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:m,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=Cn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),isInputing:w,mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,toButtonDisabled:k,fromButtonDisabled:_,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:W,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:D,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:_e,titleTextColorDisabled:ve,extraTextColor:Me,filterDividerColor:H,itemTextColor:U,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:G,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:pe,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":G,"--n-filter-divider-color":H,"--n-font-size":pe,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":_e,"--n-header-text-color-disabled":ve,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":U,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(CS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Tt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(Ya,null)})}),u(Tt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(u0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(CS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(_S,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Zie=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[I("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),I("clickable",[S("list-item",` - cursor: pointer; - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),I("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),I("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),Mo(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),ei(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),sz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),cz="n-list",Qie=J({name:"List",props:sz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("List",r,t),i=Se("List","-list",Zie,yre,e,t);ot(cz,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:p,borderColor:v,borderColorModal:b,borderColorPopover:g,borderRadius:m,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":m,"--n-border-color":v,"--n-border-color-modal":b,"--n-border-color-popover":g,"--n-color-modal":h,"--n-color-popover":p,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?et("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),Jie=J({name:"ListItem",setup(){const e=Le(cz,null);return e||Nn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),dz="n-loading-bar",uz="n-loading-bar-api",eae=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Yo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[I("starting",` - background: var(--n-color-loading); - `),I("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),I("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Jp=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function wd(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const tae=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=je(),{props:t,mergedClsPrefixRef:n}=Le(dz),r=F(null),o=F(!1),i=F(!1),a=F(!1),l=F(!1);let s=!1;const c=F(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return Jp(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield Rt(),l.value=!1})}function h(w=0,_=80,k="starting"){return Jp(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield Rt();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=wd(k,n.value),T.style.transition="",T.style.maxWidth=`${_}%`)})}function p(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=wd("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function v(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=wd("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=wd("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function g(){o.value=!1}function m(){return Jp(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",eae,Rre,t,n),C=P(()=>{const{self:{height:w,colorError:_,colorLoading:k}}=y.value;return{"--n-height":w,"--n-color-loading":k,"--n-color-error":_}}),x=e?et("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:v,finish:p,handleEnter:b,handleAfterEnter:g,handleAfterLeave:m,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(Ft,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),un(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[$r,this.loading||!this.loading&&this.entering]])}})}}),fz=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),hz=J({name:"LoadingBarProvider",props:fz,setup(e){const t=Hn(),n=F(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Rt(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=je(e);return ot(uz,r),ot(dz,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u(Ot,null,u(cc,{disabled:this.to===!1,to:this.to||"body"},u(tae,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function pz(){const e=Le(uz,null);return e===null&&Nn("use-loading-bar","No outer founded."),e}const nae=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:Cn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(so,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),vz="n-log",rae=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(vz),i=F(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return It(()=>{n.value&&l()}),it(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),oae=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[Dn(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),gz=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),iae=J({name:"Log",props:gz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=F(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=F(null),s=Se("Log","-log",oae,zre,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){Rt(()=>{r.value=!1});return}const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:D}=e;D&&D("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:D}=e;D&&D("bottom"),R&&R()}}const d=Os(f,300);function f(y){if(r.value){Rt(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,_=C.scrollTop,k=x.offsetHeight,T=_,$=k-_-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:D}=e;D&&D("top")}if($<=0&&R>0){const{onRequireMore:D}=e;D&&D("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:_}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(_==="bottom"||_==="top")&&C.scrollTo({position:_})}function p(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function v(y=!1){Qn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}ot(vz,{languageRef:xe(e,"language"),mergedHljsRef:R2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},g=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:_},common:{cubicBezierEaseInOut:k}}=s.value;return{"--n-bezier":k,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":_}}),m=n?et("log",void 0,g,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:p,scrollToBottom:v,handleWheel:d,handleScroll:c,cssVars:n?void 0:g,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(ln,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(f$,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(rae,{key:o,line:r}))})}),u(Ft,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(nae,{clsPrefix:e}):null})])}}),$c="n-menu",N0="n-submenu",H0="n-menu-item-group",Cd=8;function j0(e){const t=Le($c),{props:n,mergedCollapsedRef:r}=t,o=Le(N0,null),i=Le(H0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:p,rootIndent:v}=n,{root:b,isGroup:g}=e,m=v===void 0?p:v;if(b)return r.value?h/2-s.value/2:m;if(i)return p/2+i.paddingLeftRef.value;if(o)return(g?p/2:p)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:p,rootIndent:v}=n,{value:b}=s,{root:g}=e;return a.value||!g||!r.value?Cd:(v===void 0?p:v)+b+Cd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const V0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},mz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),aae=J({name:"MenuOptionGroup",props:mz,setup(e){ot(N0,null);const t=j0(e);ot(H0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le($c);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Ut(e.title),e.extra?u(Ot,null," ",Ut(e.extra)):null),u("div",null,e.tmNodes.map(s=>W0(s,r))))}}}),bz=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le($c);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):Ut(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):Ut(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):Ut(this.extra)):null),this.showArrow?u(dt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(NK,null)}):null)}}),yz=Object.assign(Object.assign({},V0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),lae=J({name:"Submenu",props:yz,setup(e){const t=j0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=F(!1);ot(N0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),ot(H0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:lt(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:p,icon:v,handleClick:b,menuProps:{nodeProps:g},dropdownShow:m,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=g==null?void 0:g(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(bz,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:p,clsPrefix:x,icon:v,hover:m,onClick:b}))},i=()=>u(Io,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>W0(s,this.menuProps)))}});return this.root?u($0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),xz=Object.assign(Object.assign({},V0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),sae=J({name:"MenuOption",props:xz,setup(e){const t=j0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:lt(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:lt(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(Rh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):Ut(this.title),trigger:()=>u(bz,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),cae=J({name:"MenuDivider",setup(){const e=Le($c),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),dae=Wn(mz),uae=Wn(xz),fae=Wn(yz);function wz(e){return e.type==="divider"||e.type==="render"}function hae(e){return e.type==="divider"}function W0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(wz(n))return hae(n)?u(cae,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(aae,xn(s,dae,{tmNode:e,tmNodes:e.children,key:i})):u(lae,xn(s,fae,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(sae,xn(s,uae,{key:i,tmNode:e}))}const RS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],PS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],pae=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[I("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),I("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[I("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),I("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",PS)]),I("selected",[aa(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),I("child-active",[aa(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),aa("border-bottom: 2px solid var(--n-border-color-horizontal);",PS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),I("collapsed",[S("menu-item-content",[I("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),I("disabled",` - opacity: .45; - cursor: not-allowed; - `),I("collapsed",[M("arrow","transform: rotate(0);")]),I("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),I("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),mt("disabled",[mt("selected, child-active",[O("&:focus-within",RS)]),I("selected",[aa(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),I("child-active",[aa(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),I("selected",[aa(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),aa(null,RS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[Go({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function aa(e,t){return[I("hover",e,t),O("&:hover",e,t)]}const Cz=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),vae=J({name:"Menu",props:Cz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Menu","-menu",pae,Lre,e,t),o=Le(ez,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:D}=o;if(R.value==="width")return(T=D.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return co(e.items||e.options,{getIgnored(D){return wz(D)},getChildren(D){return D[$]},getDisabled(D){return D[R]},getKey(D){var z;return(z=D[T])!==null&&z!==void 0?z:D.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=F(null);s!=null&&s.includes("defaultValue")?At(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=St(d,c),h=F([]),p=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?At(p):p();const v=Ii(e,["expandedNames","expandedKeys"]),b=St(v,h),g=P(()=>a.value.treeNodes),m=P(()=>a.value.getPath(f.value).keyPath);ot($c,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:m,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:D,onSelect:z}=e;D&&he(D,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:D,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),D&&he(D,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(D=>D===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const D=$.findIndex(z=>l.value.has(z));D>-1&&$.splice(D,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),D=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{D.has(z)&&!$.includes(z)&&D.delete(z)}),C(Array.from(D))},_=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:D,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":D,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),k=n?et("menu",P(()=>e.inverted?"a":"b"),_,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:v,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:m,tmNodes:g,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>W0(o,this.$props)))}});function gae(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!lr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(v=>{if(f&&v==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),g=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),m=g+parseInt(d.lineHeight);b>m?c.lineHeight=`${b-g}px`:b===m?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[v]=d[v]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const p={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),p.left>=e.clientWidth&&t.checkWidthOverflow&&(p.left=e.clientWidth),p}const mae=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[Dn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Sz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Qn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),bae=J({name:"Mention",props:Sz,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=je(e),i=Se("Mention","-mention",mae,Are,e,n),a=Sn(e),l=F(null),s=F(null),c=F(null),d=F("");let f=null,h=null,p=null;const v=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>co(v.value,{getKey:ee=>ee.value})),g=F(null),m=F(!1),y=F(e.defaultValue),C=xe(e,"value"),x=St(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),_=o?et("mention",void 0,w,e):void 0;function k(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,p=null),m.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){k(!1);return}const{selectionEnd:de}=ue;if(de===null){k(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let _e=de-1;_e>=0;--_e){const ve=Ce[_e];if(ve===we||ve===` -`||ve==="\r"){k(!1);return}if(Oe.includes(ve)){const Me=Ce.slice(_e+1,de);k(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,ve),d.value=Me,f=ve,h=_e+1,p=de;return}}k(!1)}function D(){const{value:ee}=s;if(!ee)return;const ue=$(),de=gae(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!m.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{D(),R(),Rt().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=g;if(m.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):k(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function W(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),k(!1)}function V(ee){var ue;if(f===null||h===null||p===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(p),_e=Oe.startsWith(me),ve=`${de}${_e?"":me}`;T(we.slice(0,h)+ve+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+ve.length+(_e?1:0);Rt().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:g,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:m,adjustedTo:Ht(e),isMounted:Hn(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:W,blur:K,cssVars:o?void 0:w,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(En,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Or,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(xc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),kz={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},_z="n-message-api",Rz="n-message-provider",yae=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[Go({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>I(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[I("top",` - top: 12px; - left: 0; - right: 0; - `),I("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),I("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),I("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),I("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),I("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),xae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},wae=J({name:"Message",props:Object.assign(Object.assign({},kz),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=je(e),{props:r,mergedClsPrefixRef:o}=Le(Rz),i=en("Message",n,o),a=Se("Message","-message",yae,ore,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:p,iconMargin:v,closeMargin:b,closeSize:g,iconSize:m,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:_,iconColorWarning:k,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:D,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:W,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":p,"--n-font-size":y,"--n-icon-margin":v,"--n-icon-size":m,"--n-close-icon-size":R,"--n-close-border-radius":D,"--n-close-size":g,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":_,"--n-icon-color-warning":k,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":W,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?et("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Cae(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(Do,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},Ut(r)),n?u(ri,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Cae(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(so,{clsPrefix:n,strokeWidth:24,scale:.85}):xae[t]();return r?u(dt,{clsPrefix:n,key:t},{default:()=>r}):null}}const Sae=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},kz),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=F(!0);It(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:p}=e;d&&d(),f&&f(p),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Io,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(wae,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Pz=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),$z=J({name:"MessageProvider",props:Pz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r=F({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};ot(Rz,{props:e,mergedClsPrefixRef:t}),ot(_z,o);function i(s,c){const d=Tr(),f=ji(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var p;(p=r.value[d])===null||p===void 0||p.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Sae,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Va(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Tz(){const e=Le(_z,null);return e===null&&Nn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Fh="n-notification-provider",kae=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(Fh),r=F(null);return At(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_ae={info:()=>u(Hi,null),success:()=>u(Xa,null),warning:()=>u(Wi,null),error:()=>u(Ga,null),default:()=>null},U0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Rae=Wn(U0),Pae=J({name:"Notification",props:U0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(Fh),{inlineThemeDisabled:o,mergedRtlRef:i}=je(),a=en("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:v,headerTextColor:b,descriptionTextColor:g,actionTextColor:m,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:_,closeMargin:k,closeSize:T,width:$,padding:R,closeIconSize:D,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:W,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=Pi(R);return{"--n-color":d,"--n-font-size":_,"--n-text-color":f,"--n-description-text-color":g,"--n-action-text-color":m,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":v,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":k,"--n-close-size":T,"--n-close-icon-size":D,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":W}}),s=o?et("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?Ut(this.avatar):this.type!=="default"?u(dt,{clsPrefix:t},{default:()=>_ae[this.type]()}):null):null,this.closable?u(ri,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},Ut(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},Ut(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},Ut(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},Ut(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},Ut(this.action)):null):null)))}}),$ae=Object.assign(Object.assign({},U0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Tae=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},$ae),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(Fh),n=F(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(v){t.value++,Rt(()=>{v.style.height=`${v.offsetHeight}px`,v.style.maxHeight="0",v.style.transition="none",v.offsetHeight,v.style.transition="",v.style.maxHeight=v.style.height})}function a(v){t.value--,v.style.height="",v.style.maxHeight="";const{onAfterEnter:b,onAfterShow:g}=e;b&&b(),g&&g()}function l(v){t.value++,v.style.maxHeight=`${v.offsetHeight}px`,v.style.height=`${v.offsetHeight}px`,v.offsetHeight}function s(v){const{onHide:b}=e;b&&b(),v.style.maxHeight="0",v.offsetHeight}function c(){t.value--;const{onAfterLeave:v,onInternalAfterLeave:b,onAfterHide:g,internalKey:m}=e;v&&v(),b(m),g&&g()}function d(){const{duration:v}=e;v&&(r=window.setTimeout(o,v))}function f(v){v.currentTarget===v.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(v){v.currentTarget===v.target&&d()}function p(){const{onClose:v}=e;v?Promise.resolve(v()).then(b=>{b!==!1&&o()}):o()}return It(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:p,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(Ft,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Pae,Object.assign({},xn(this.$props,Rae),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Oae=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),I("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),I("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),I("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),I("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),I("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),I("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),I("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),I("top-right",` - right: 0; - `,[Sd("top-right")]),I("top-left",` - left: 0; - `,[Sd("top-left")]),I("bottom-right",` - right: 0; - `,[Sd("bottom-right")]),I("bottom-left",` - left: 0; - `,[Sd("bottom-left")]),I("scrollable",[I("top-right",` - top: 0; - `),I("top-left",` - top: 0; - `),I("bottom-right",` - bottom: 0; - `),I("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),I("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),I("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function Sd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const Oz="n-notification-api",zz=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Mz=J({name:"NotificationProvider",props:zz,setup(e){const{mergedClsPrefixRef:t}=je(e),n=F([]),r={},o=new Set;function i(p){const v=Tr(),b=()=>{o.add(v),r[v]&&r[v].hide()},g=ji(Object.assign(Object.assign({},p),{key:v,destroy:b,hide:b,deactivate:b})),{max:m}=e;if(m&&n.value.length-o.size>=m){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(g),g}const a=["info","success","warning","error"].map(p=>v=>i(Object.assign(Object.assign({},v),{type:p})));function l(p){o.delete(p),n.value.splice(n.value.findIndex(v=>v.key===p),1)}const s=Se("Notification","-notification",Oae,Jne,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=F(0);ot(Oz,c),ot(Fh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(p){return i(p)}function h(){Object.values(n.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u(Ot,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(cc,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(kae,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Tae,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Va(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Dz(){const e=Le(Oz,null);return e===null&&Nn("use-notification","No outer `n-notification-provider` found."),e}const zae=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),Iz=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Mae=J({name:"PageHeader",props:Iz,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=je(e),o=Se("PageHeader","-page-header",zae,Vre,e,t),i=en("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:p,titleFontWeight:v,backColorHover:b,backColorPressed:g},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":v,"--n-font-size":f,"--n-back-size":p,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":g,"--n-bezier":m}}),l=r?et("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:p,footer:v,back:b}=l,g=t,m=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(g||p||m||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},g?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(dt,{clsPrefix:i},{default:()=>u(VK,null)})):null,p?u("div",{class:`${i}-page-header__avatar`},p()):null,m?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,v?u("div",{class:`${i}-page-header-footer`,key:"footer"},v()):null)}}),Fz="n-popconfirm",Az={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},$S=Wn(Az),Dae=J({name:"NPopconfirmPanel",props:Az,setup(e){const{localeRef:t}=Cn("Popconfirm"),{inlineThemeDisabled:n}=je(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(Fz),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?et("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},Cn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=gt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Tt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Tt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},kt(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},gt(r.icon,()=>[u(dt,{clsPrefix:t},{default:()=>u(Wi,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Iae=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),Bz=Object.assign(Object.assign(Object.assign({},Se.props),La),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Fae=J({name:"Popconfirm",props:Bz,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=je(),n=Se("Popconfirm","-popconfirm",Iae,qre,e,t),r=F(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return ot(Fz,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(el,Va(t,$S,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=xn(t,$S);return u(Dae,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Aae=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),I("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[I("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),I("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),I("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[I("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[I("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),I("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[I("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Bae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Eae=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Mt(e.height)),r=P(()=>e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Mt(e.fillBorderRadius):e.railBorderRadius!==void 0?Mt(e.railBorderRadius):e.height!==void 0?Mt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:p,processing:v,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,v&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:b},{default:()=>Bae[f]}))):null)}}}),Lae={success:u(Xa,null),error:u(Ga,null),warning:u(Wi,null),info:u(Hi,null)},Nae=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,p=2*c,v=50+s/2,b=`M ${v},${v} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-p} - a ${c},${c} 0 1 1 ${-h},${p}`,g=Math.PI*2*c,m={stroke:i,strokeDasharray:`${r/100*(g-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:m}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:p}=e,{pathString:v,pathStyle:b}=n(100,0,o),{pathString:g,pathStyle:m}=n(s,a,r),y=100+i;return u("div",{class:`${p}-progress-content`,role:"none"},u("div",{class:`${p}-progress-graph`,"aria-hidden":!0},u("div",{class:`${p}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${p}-progress-graph-circle-rail`,d:v,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${p}-progress-graph-circle-fill`,s===0&&`${p}-progress-graph-circle-fill--empty`],d:g,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:m}))))),c?u("div",null,t.default?u("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${p}-progress-icon`,"aria-hidden":!0},u(dt,{clsPrefix:p},{default:()=>Lae[l]})):u("div",{class:`${p}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${p}-progress-text__percentage`},s),u("span",{class:`${p}-progress-text__unit`},f))):null)}}});function TS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Hae=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,p)=>u("g",{key:p},u("path",{class:`${f}-progress-graph-circle-rail`,d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[p]},c[p]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:TS(r/2-o/2*(1+2*p)-i*p,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[p],strokeDashoffset:0,stroke:l[p]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),Ez=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),Lz=J({name:"Progress",props:Ez,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=je(e),i=Se("Progress","-progress",Aae,TO,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:p,iconSizeCircle:v,iconSizeLine:b,textColorCircle:g,textColorLineInner:m,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:_}}=i.value;return{"--n-bezier":c,"--n-fill-color":_,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":v,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":p,"--n-text-color-circle":g,"--n-text-color-line-inner":m,"--n-text-color-line-outer":y}}),l=o?et("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:p,fillBorderRadius:v,height:b,processing:g,circleGap:m,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:_,onRender:k}=this;return k==null||k(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Nae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},_):e==="line"?u(Eae,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:g,indicatorPlacement:f,unit:h,fillBorderRadius:v,railBorderRadius:p,height:b},_):e==="multiple-circle"?u(Hae,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:m},_):null)}}),jae=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Vae=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),I("active",` - color: var(--n-item-color-active); - `)]),mt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[I("active",` - color: var(--n-item-color-active); - `)])]),Nz=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Wae=J({name:"Rate",props:Nz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Rate","-rate",Vae,noe,e,t),o=xe(e,"value"),i=F(e.defaultValue),a=F(null),l=Sn(e),s=St(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:_,nTriggerFormInput:k}=l;x&&he(x,C),w&&he(w,C),i.value=C,_(),k()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function p(){a.value=null}function v(C,x){var w;const{clearable:_}=e,k=d(C,x);_&&k===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(k)}function b(){f=!1}const g=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),m=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:_}=x,{color:k}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":k||_,"--n-item-size":g.value}}),y=n?et("rate",P(()=>{const C=g.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ia(x)),w}),m,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:v,handleMouseLeave:p,handleMouseEnterSomeStar:b,cssVars:n?void 0:m,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},xM(this.count,(a,l)=>{const s=i?i():u(dt,{clsPrefix:r},{default:()=>jae}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Uae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Kae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),qae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Yae=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Gae=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Xae={403:Yae,404:Uae,418:qae,500:Kae,info:u(Hi,null),success:u(Xa,null),warning:u(Wi,null),error:u(Ga,null)},Hz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Zae=J({name:"Result",props:Hz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Result","-result",Gae,ioe,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:p,[ye("fontSize",a)]:v,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:g}}=r.value;return{"--n-bezier":s,"--n-font-size":v,"--n-icon-size":g,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":p||""}}),i=n?et("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(dt,{clsPrefix:r},{default:()=>Xae[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),jz=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Qae=J({name:"Scrollbar",props:jz,setup(){const e=F(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(ln,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Jae=Qae,ele={name:"Skeleton",common:tt,self(e){const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}}},tle=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},nle={name:"Skeleton",common:nt,self:tle},rle=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),Vz=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),ole=J({name:"Skeleton",inheritAttrs:!1,props:Vz,setup(e){Lb();const{mergedClsPrefixRef:t}=je(e),n=Se("Skeleton","-skeleton",rle,nle,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:p,round:v,width:b,height:g,size:m,text:y,animated:C}=e;m!==void 0&&(f=l[ye("height",m)]);const x=h?(r=b!=null?b:g)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:g)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":v?"4096px":p?"":d,width:typeof x=="number"?yn(x):x,height:typeof w=="number"?yn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Gn({class:`${n}-skeleton`,style:t},r));return e>1?u(Ot,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function OS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function zS(){const e=F(new Map),t=n=>r=>{e.value.set(n,r)};return sb(()=>e.value.clear()),[e,t]}const ile=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[I("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),I("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),I("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),I("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),I("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),I("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),I("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[I("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[I("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[Dn()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[I("top",` - margin-bottom: 12px; - `),I("right",` - margin-left: 12px; - `),I("bottom",` - margin-top: 12px; - `),I("left",` - margin-right: 12px; - `),Dn()]),Mo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),ei(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),ale=0,Wz=Object.assign(Object.assign({},Se.props),{to:Ht.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),lle=J({name:"Slider",props:Wz,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=je(e),o=Se("Slider","-slider",ile,foe,e,t),i=F(null),[a,l]=zS(),[s,c]=zS(),d=F(new Set),f=Sn(e),{mergedDisabledRef:h}=f,p=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),v=F(e.defaultValue),b=xe(e,"value"),g=St(b,v),m=P(()=>{const{value:ne}=g;return(e.range?ne:[ne]).map(ee)}),y=P(()=>m.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=F(-1),_=F(-1),k=F(-1),T=F(!1),$=F(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),D=P(()=>{if(y.value)return;const ne=m.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=m.value.slice();Pe.sort((ht,vt)=>ht-vt);const{value:Ae}=R,{value:qe}=y,{range:Ye}=e,ft=qe?()=>!1:ht=>Ye?ht>=Pe[0]&&ht<=Pe[Pe.length-1]:ht<=Pe[0];for(const ht of Object.keys(ge)){const vt=Number(ht);ne.push({active:ft(vt),label:ge[ht],style:{[Ae]:`${ue(vt)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||k.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&_.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function W(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:qe}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),v.value=ne,Ae(),qe()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=m;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||m.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=m.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const qe=x.value||[],{step:Ye}=e;if(Ye==="mark"){const vt=we(ne,qe.concat(ge),Ae?Pe:void 0);return vt?vt.value:ge}if(Ye<=0)return ge;const{value:ft}=p;let ht;if(Ae){const vt=Number((ge/Ye).toFixed(ft)),Ve=Math.floor(vt),Xe=vt>Ve?Ve:Ve-1,We=vt0)&&(Ae===null||ft0?1:-1),ge)}function ve(ne){var ge,Pe;if(h.value||!OS(ne)&&ne.button!==ale)return;const Ae=me(ne);if(Ae===void 0)return;const qe=m.value.slice(),Ye=e.range?(Pe=(ge=we(Ae,qe))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;Ye!==-1&&(ne.preventDefault(),E(Ye),Me(),V(re(Ae,m.value[Ye]),Ye))}function Me(){T.value||(T.value=!0,_t("touchend",document,Y),_t("mouseup",document,Y),_t("touchmove",document,U),_t("mousemove",document,U))}function H(){T.value&&(T.value=!1,Ct("touchend",document,Y),Ct("mouseup",document,Y),Ct("touchmove",document,U),Ct("mousemove",document,U))}function U(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,m.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(k.value=ne)}function G(ne){w.value===ne&&(w.value=-1,H()),k.value===ne&&(k.value=-1)}function B(ne){k.value=ne}function N(ne){k.value===ne&&(k.value=-1)}it(w,(ne,ge)=>void Rt(()=>_.value=ge)),it(g,()=>{if(e.marks){if($.value)return;$.value=!0,Rt(()=>{$.value=!1})}Rt(W)}),Bt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:qe,handleColor:Ye,opacityDisabled:ft,dotColor:ht,dotColorModal:vt,handleBoxShadow:Ve,handleBoxShadowHover:Xe,handleBoxShadowActive:We,handleBoxShadowFocus:Ke,dotBorder:X,dotBoxShadow:q,railHeight:ke,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":X,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":ht,"--n-dot-color-modal":vt,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":qe,"--n-font-size":Te,"--n-handle-box-shadow":Ve,"--n-handle-box-shadow-active":We,"--n-handle-box-shadow-focus":Ke,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":Ye,"--n-handle-size":Ee,"--n-opacity-disabled":ft,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":ke,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),pe=r?et("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:qe}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":qe,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?et("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:v,mergedValue:g,mergedDisabled:h,mergedPlacement:C,isMounted:Hn(),adjustedTo:Ht(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:D,getHandleStyle:A,activeIndex:w,arrifiedValues:m,followerEnabledIndexSet:d,handleRailMouseDown:ve,handleHandleFocus:ce,handleHandleBlur:G,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:pe==null?void 0:pe.themeClass,onRender:pe==null?void 0:pe.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(qr,null,{default:()=>[u(Yr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},gt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Or,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),sle=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Yo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[I("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[I("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),cle={small:20,medium:18,large:16},Uz=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),dle=J({name:"Spin",props:Uz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Spin","-spin",sle,poe,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?yn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?et("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ii(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return cle[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(so,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(Ft,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),ule=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),Kz=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),fle=J({name:"Statistic",props:Kz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Statistic","-statistic",ule,boe,e,t),i=en("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:p,valueTextColor:v,labelFontSize:b},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-bezier":g,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":p,"--n-value-text-color":v}}),l=n?et("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},kt(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},kt(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):kt(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),kt(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),hle=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[I("disabled","cursor: not-allowed"),I("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[On()])])]),I("vertical","flex-direction: column;",[mt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function ple(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function vle(e){return e.map((t,n)=>ple(t,n))}const qz=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),Yz="n-steps",gle=J({name:"Steps",props:qz,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=je(e),o=en("Steps",r,n),i=Se("Steps","-steps",hle,Soe,e,n);return ot(Yz,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},vle(Nr(fc(this))))}}),Gz={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},mle=J({name:"Step",props:Gz,setup(e){const t=Le(Yz,null);t||Nn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=je(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:p}=e,{current:v}=r;if(v===void 0)return"process";if(pv)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:p}=r,{common:{cubicBezierEaseInOut:v},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",p)]:g,[ye("indicatorIndexFontSize",p)]:m,[ye("indicatorSize",p)]:y,[ye("indicatorIconSize",p)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:_,[ye("splitorColor",h)]:k,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":v,"--n-description-text-color":$,"--n-header-text-color":_,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":m,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":k,"--n-step-header-font-size":g,"--n-step-header-font-weight":b}}),d=n?et("step",P(()=>{const{value:h}=s,{size:p}=r;return`${h[0]}${p[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":p}=r;return h||p?()=>{h&&he(h,e.internalIndex),p&&he(p,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=kt(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(Do,null,{default:()=>kt(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(dt,{clsPrefix:e,key:"finish"},{default:()=>gt(l["finish-icon"],()=>[u(d0,null)])}):a==="error"?u(dt,{clsPrefix:e,key:"error"},{default:()=>gt(l["error-icon"],()=>[u(T2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},gt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),ble=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[On({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),I("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),mt("disabled",[mt("icon",[I("rubber-band",[I("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),I("active",[I("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),I("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[On()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),I("active",[M("rail","background-color: var(--n-rail-color-active);")]),I("loading",[M("rail",` - cursor: wait; - `)]),I("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),Xz=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let ls;const yle=J({name:"Switch",props:Xz,setup(e){ls===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ls=CSS.supports("width","max(1px)"):ls=!1:ls=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Switch","-switch",ble,Ooe,e,t),o=Sn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=F(e.defaultValue),s=xe(e,"value"),c=St(s,l),d=P(()=>c.value===e.checkedValue),f=F(!1),h=F(!1),p=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function v(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:D}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),D&&he(D,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function g(){const{nTriggerFormBlur:T}=o;T()}function m(){e.loading||a.value||(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,g(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?v(e.checkedValue):v(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const _=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:D,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:W,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return ls?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=yn((hn(re)-hn(K))/2),me=yn(Math.max(hn(re),hn(K))),Oe=hn(re)>hn(K)?ee:yn(hn(ee)+hn(K)-hn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":D,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":W}}),k=n?et("switch",P(()=>i.value[0]),_,e):void 0;return{handleClick:m,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:p,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(Pa(s)&&Pa(c)&&Pa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},kt(a,h=>kt(l,p=>h||p?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),p)):null)),u("div",{class:`${e}-switch__button`},kt(s,h=>kt(c,p=>kt(d,v=>u(Do,null,{default:()=>this.loading?u(so,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"checked-icon":"icon"},p||h):!this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"unchecked-icon":"icon"},v||h):null})))),kt(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),kt(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),xle=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),I("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),I("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),I("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),mt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),Mo(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),ei(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),Zz=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),wle=J({name:"Table",props:Zz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=Se("Table","-table",xle,Doe,e,t),i=en("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:p,thColorModal:v,thColorPopover:b,thTextColor:g,tdTextColor:m,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:_,tdColorStriped:k,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:D,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":m,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":_,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":p,"--n-th-color-modal":v,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":g,"--n-line-height":x,"--n-td-padding":D,"--n-th-padding":z,"--n-td-color-striped":k,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?et("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),Cle=J({name:"Th",render(){return u("th",null,this.$slots)}}),Sle=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),kle=J({name:"Td",render(){return u("td",null,this.$slots)}}),_le=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Rle=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),K0="n-tabs",q0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ple=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:q0,setup(e){const t=Le(K0,null);return t||Nn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Qz=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Va(q0,["displayDirective"])),qf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Qz,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(K0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,p=++a.id;if(h!==n.value){const{value:v}=l;v?Promise.resolve(v(e.name,n.value)).then(b=>{b&&a.id===p&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Gn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u(Ot,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(dt,{clsPrefix:t},{default:()=>u(Dl,null)})):d?d():typeof f=="object"?f:Ut(f!=null?f:n)),l&&this.type==="card"?u(ri,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),$le=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[I("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),I("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),I("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),I("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[I("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),I("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[I("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),I("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[I("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),I("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),I("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),I("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),I("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[I("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),I("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[I("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),mt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),I("closable","padding-right: 6px;"),I("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),I("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),I("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),I("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),I("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),I("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),Jz=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Tle=J({name:"Tabs",props:Jz,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=je(e),s=Se("Tabs","-tabs",$le,Eoe,e,a),c=F(null),d=F(null),f=F(null),h=F(null),p=F(null),v=F(!0),b=F(!0),g=Ii(e,["labelSize","size"]),m=Ii(e,["activeName","value"]),y=F((r=(n=m.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Nr(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=St(m,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});it(C,()=>{x.id=0,$(),R()});function _(){var G;const{value:B}=C;return B===null?null:(G=c.value)===null||G===void 0?void 0:G.querySelector(`[data-name="${B}"]`)}function k(G){if(e.type==="card")return;const{value:B}=d;if(!!B&&G){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:pe}=e;if(G.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(pe)){if(T(["top","maxHeight","height"]),typeof te=="number"&&G.offsetWidth>=te){const Z=Math.floor((G.offsetWidth-te)/2)+G.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${G.offsetLeft}px`,B.style.maxWidth=`${G.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&G.offsetHeight>=te){const Z=Math.floor((G.offsetHeight-te)/2)+G.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${G.offsetTop}px`,B.style.maxHeight=`${G.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(G){const{value:B}=d;if(!!B)for(const N of G)B.style[N]=""}function $(){if(e.type==="card")return;const G=_();G&&k(G)}function R(G){var B;const N=(B=p.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=_();if(!te)return;const{scrollLeft:pe,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;pe>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>pe+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const D=F(null);let z=0,A=null;function L(G){const B=D.value;if(B){z=G.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(G){const B=D.value;if(B){const N=G.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const G=D.value;G&&(G.style.maxHeight="",G.style.height="")}const W={value:[]},K=F("next");function Q(G){const B=C.value;let N="next";for(const te of W.value){if(te===B)break;if(te===G){N="prev";break}}K.value=N,V(G)}function V(G){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,G),N&&he(N,G),te&&he(te,G),y.value=G}function re(G){const{onClose:B}=e;B&&he(B,G)}function ee(){const{value:G}=d;if(!G)return;const B="transition-disabled";G.classList.add(B),$(),G.classList.remove(B)}let ue=0;function de(G){var B;if(G.contentRect.width===0&&G.contentRect.height===0||ue===G.contentRect.width)return;ue=G.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Ce=Os(de,64);it([()=>e.justifyContent,()=>e.size],()=>{Rt(()=>{const{type:G}=e;(G==="line"||G==="bar")&&ee()})});const we=F(!1);function me(G){var B;const{target:N,contentRect:{width:te}}=G,pe=N.parentElement.offsetWidth;if(!we.value)peZ.$el.offsetWidth&&(we.value=!1)}ve((B=p.value)===null||B===void 0?void 0:B.$el)}const Oe=Os(me,64);function _e(){const{onAdd:G}=e;G&&G(),Rt(()=>{const B=_(),{value:N}=p;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function ve(G){if(!G)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=G;v.value=B<=0,b.value=B+te>=N}const Me=Os(G=>{ve(G.target)},64);ot(K0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:_e}),fh(()=>{$(),R()}),At(()=>{const{value:G}=f;if(!G||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;v.value?G.classList.remove(N):G.classList.add(N),b.value?G.classList.remove(te):G.classList.add(te)});const H=F(null);it(C,()=>{if(e.type==="segment"){const G=H.value;G&&Rt(()=>{G.classList.add("transition-disabled"),G.offsetWidth,G.classList.remove("transition-disabled")})}});const U={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:G}=g,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${G}${N}`,{self:{barColor:pe,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:qe,tabBorderRadius:Ye,tabFontWeightActive:ft,colorSegment:ht,fontWeightStrong:vt,tabColorSegment:Ve,closeSize:Xe,closeIconSize:We,closeColorHover:Ke,closeColorPressed:X,closeBorderRadius:q,[ye("panePadding",G)]:ke,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",G)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":ht,"--n-bar-color":pe,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":Ye,"--n-close-size":Xe,"--n-close-icon-size":We,"--n-close-color-hover":Ke,"--n-close-color-pressed":X,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":qe,"--n-tab-font-weight-active":ft,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":ke,"--n-font-weight-strong":vt,"--n-tab-color-segment":Ve}}),ce=l?et("tabs",P(()=>`${g.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:D,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:p,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:g,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:W,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},U)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Nr(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Nr(s()).filter(y=>y.type.__TAB__===!0):[],p=!h.length,v=t==="card",b=t==="segment",g=!v&&!b&&this.justifyContent;a.value=[];const m=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),p?f.map((C,x)=>(a.value.push(C.props.name),ev(u(qf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!g||g==="center"||g==="start"||g==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),ev(x!==0&&!g?IS(C):C))),!r&&o&&v?DS(o,(p?f.length:h.length)!==0):null,g?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},v&&o?u(jr,{onResize:this.handleTabsResize},{default:()=>y}):y,v?u("div",{class:`${e}-tabs-pad`}):null,v?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,g&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},kt(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},p?f.map((y,C)=>(a.value.push(y.props.name),u(qf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:IS(y)))):u(jr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(b6,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:m}):u("div",{class:`${e}-tabs-nav-y-scroll`},m()))}),r&&o&&v?DS(o,!0):null,kt(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),p&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},MS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):MS(f,this.mergedValue,this.renderedNames)))}});function MS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=v=>d===v||f===v,p=t===c;if(s.key!==void 0&&(s.key=c),p||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const v=!h("if");l.push(v?un(s,[[$r,p]]):s)}}),a?u(ah,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function DS(e,t){return u(qf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function IS(e){const t=ar(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function ev(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Ole=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),e5=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),zle=J({name:"Thing",props:e5,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=je(e),i=Se("Thing","-thing",Ole,joe,e,n),a=en("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:p}}=i.value;return{"--n-bezier":p,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?et("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u(Ot,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),t5={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Mle=J({name:"Time",props:t5,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=Cn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>xT(d,c,f,h):on}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:cw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):Z9(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Ar(this.renderedTime):u("time",[this.renderedTime])}}),FS=1.25,Dle=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${FS}; -`,[I("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[I("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),I("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),I("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),I("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${FS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),n5=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),r5="n-timeline",Ile=J({name:"Timeline",props:n5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Timeline","-timeline",Dle,Goe,e,n);return ot(r5,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),o5={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Fle=J({name:"TimelineItem",props:o5,setup(e){const t=Le(r5);t||Nn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Lb();const{inlineThemeDisabled:n}=je(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:p,contentFontSize:v,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:g,[ye("titleFontSize",i)]:m,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":v,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":m,"--n-title-font-weight":p,"--n-title-margin":g,"--n-title-text-color":c,"--n-icon-size":Mt(a)||b}}),o=n?et("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),kt(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},kt(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},gt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},gt(r.footer,()=>[this.time]))))}}),Tc="n-transfer",AS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(Tc),{localeRef:c}=Cn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:p}=i,{value:v}=l,{value:b}=c,g=e.size==="large"?"small":"tiny",{title:m}=e;return u("div",{class:`${v}-transfer-list-header`},m&&u("div",{class:`${v}-transfer-list-header__title`},m),d&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Tt,{class:`${v}-transfer-list-header__button`,theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,size:g,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${v}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),BS=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(Tc),s=lt(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(ii,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:hc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(ri,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),ES=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc),n=F(null),r=F(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(ln,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(qo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(BS,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(BS,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),LS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(Tc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(En,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(dt,{clsPrefix:t},{default:()=>u(M2,null)})}))}});function Ale(e){const t=F(e.defaultValue),n=St(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(_=>{const k=x.get(_);k&&w.push(k)}),w}),a=F(""),l=F(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:_}=e;return s.value?w.filter(k=>_(a.value,k,"source")&&(x||!o.value.has(k.value))):x?w:w.filter(k=>!o.value.has(k.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),g=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),m=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:p,valueSetForClearRef:v,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:m,allCheckedRef:g,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Ble=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[I("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[I("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),I("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),I("source","cursor: pointer;"),I("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),mt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),i5=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Ele=J({name:"Transfer",props:i5,setup(e){const{mergedClsPrefixRef:t}=je(e),n=Se("Transfer","-transfer",Ble,eie,e,t),r=Sn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return hn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:p,filteredSrcOptionsRef:v,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k}=Ale(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:W}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),W&&he(W,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function D(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return ot(Tc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:g,canBeClearedRef:m,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Hn(),mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:_,handleTgtFilterUpdateValue:k,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:D,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:W,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:_e,closeIconColorPressed:ve,closeIconSize:Me,closeSize:H,dividerColor:U,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:G,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":W,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":G,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":_e,"--n-close-icon-color-pressed":ve,"--n-divider-color":U}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(AS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(LS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(ES,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(AS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(LS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(ln,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(ES,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),Y0="n-tree-select",Oc="n-tree",Lle=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(Oc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(Do,null,{default:()=>{if(e.loading)return u(so,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(dt,{clsPrefix:n,key:"switcher"},{default:()=>u(AK,null)})}})))}}}),Nle=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(Oc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(ii,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Hle=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(Oc),i=F(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:p}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):Ut(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):Ut(p)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):Ut(h)):null)}});function NS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function jle({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function a5(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function vi(e,t){return!!e.rawNode[t]}function l5(e,t,n,r){e==null||e.forEach(o=>{n(o),l5(o[t],t,n,r),r(o)})}function Vle(e,t,n,r,o){const i=new Set,a=new Set,l=[];return l5(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(lr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Wle(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(p){p.forEach(v=>{if(d.push(v),t(n,v)){i.add(v[r]),l.add(v[r]);for(let g=d.length-2;g>=0;--g){const m=d[g][r];if(!a.has(m))a.add(m),i.has(m)&&i.delete(m);else break}}const b=v[o];b&&f(b),d.pop()})}f(e);function h(p,v){p.forEach(b=>{const g=b[r],m=i.has(g),y=a.has(g);if(!m&&!y)return;const C=b[o];if(C)if(m)v.push(b);else{s.push(g);const x=Object.assign(Object.assign({},b),{[o]:[]});v.push(x),h(C,x[o])}else v.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Ule=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(Oc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,p=lt(()=>!!e.tmNode.rawNode.checkboxDisabled),v=lt(()=>vi(e.tmNode,h.value)),b=lt(()=>t.disabledRef.value||v.value),g=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),m=F(null),y={value:null};It(()=>{y.value=m.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=lt(()=>!v.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=lt(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),_=lt(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),k=lt(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=k;if(!V&&!Q&&!re||Zn(K,"checkbox")||Zn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&D(!_.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=g.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function D(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function W(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:lt(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:lt(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:lt(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:lt(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:lt(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:_,indeterminate:lt(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:lt(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:lt(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:k,checkboxDisabled:p,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:g,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:m,contentElRef:y,handleCheck:D,handleDrop:W,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:p,nodeProps:v,checkboxPlacement:b}=this,g=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,m=p?N_(e.key):void 0,y=b==="right",C=n?u(Nle,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},g),u("div",Object.assign({},c?v:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},v==null?void 0:v.class],"data-key":m,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),L_(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Lle,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Hle,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:v,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?NS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?NS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),s5=Ule;function Kle({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(Y0,null),s=l?l.pendingNodeKeyRef:F(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let p=0;for(;pv.key===f);if(!~p)return;if(d.key==="Enter")o(h[p]);else if(d.key==="ArrowDown")for(d.preventDefault(),p+=1;p=0;){if(!h[p].disabled){s.value=h[p].key;break}p-=1}else if(d.key==="ArrowLeft"){const v=h[p];if(v.isLeaf||!n.value.includes(f)){const b=v.getParent();b&&(s.value=b.key)}else i(v)}else if(d.key==="ArrowRight"){const v=h[p];if(v.isLeaf)return;if(!n.value.includes(f))i(v);else for(p+=1;pu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:yn(this.height)}},this.nodes.map(t=>u(s5,{clsPrefix:e,tmNode:t})))})}}),Yle=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[I("expand",[Go({duration:"0.2s"})]),I("collapse",[Go({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[I("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),I("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),mt("disabled",[I("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),I("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),mt("block-line",[S("tree-node",[mt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),I("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),I("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),I("block-line",[S("tree-node",[mt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),I("pending",` - background-color: var(--n-node-color-hover); - `),I("selectable",[mt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),I("selected",{backgroundColor:"var(--n-node-color-active)"})]),I("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[On()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[On()]),S("base-icon",[On()])]),I("hide",{visibility:"hidden"}),I("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[I("right","margin-left: 4px;")]),I("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Gle=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const kd=30;function c5(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const d5={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},u5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:jle},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),d5),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),f5=J({name:"Tree",props:u5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=je(e),o=en("Tree",r,t),i=Se("Tree","-tree",Yle,VO,e,t),a=F(null),l=F(null),s=F(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:Fe}=e;return(Je,at)=>{if(!Je.length)return!0;const ct=at[Fe];return typeof ct=="string"?ct.toLowerCase().includes(Je.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Wle(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),p=P(()=>co(e.showIrrelevantNodes?e.data:h.value.filteredTree,c5(e.keyField,e.childrenField,e.disabledField,e.getChildren))),v=Le(Y0,null),b=e.internalTreeSelect?v.dataTreeMate:p,{watchProps:g}=e,m=F([]);g!=null&&g.includes("defaultCheckedKeys")?At(()=>{m.value=e.defaultCheckedKeys}):m.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=St(y,m),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=a5(e),_=P(()=>x.value.checkedKeys),k=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=F([]);g!=null&&g.includes("defaultSelectedKeys")?At(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=St($,T),D=F([]),z=be=>{D.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};g!=null&&g.includes("defaultExpandedKeys")?At(()=>z(void 0)):At(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=St(A,D),j=P(()=>p.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:W}=Kle({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=F(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=St(re,V),ue=F(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=F(null),me=F(null),Oe=F(null),_e=F(null),ve=F(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});it(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const U=()=>{H=!0,Rt(()=>{H=!1})};let Y;it(xe(e,"pattern"),(be,Fe)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Je,highlightKeySet:at}=Vle(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=at,U(),ne(Je,fe(Je),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(U(),ne(Y,fe(Y),{node:null,action:"filter"}));else{Fe.length||(Y=L.value);const{expandedKeys:Je}=h.value;Je!==void 0&&(U(),ne(Je,fe(Je),{node:null,action:"filter"}))}});function ce(be){return Gle(this,void 0,void 0,function*(){const{onLoad:Fe}=e;if(!Fe)return yield Promise.resolve();const{value:Je}=ue;if(!Je.has(be.key)){Je.add(be.key);try{(yield Fe(be.rawNode))===!1&&X()}catch(at){console.error(at),X()}Je.delete(be.key)}})}At(()=>{var be;const{value:Fe}=p;if(!Fe)return;const{getNode:Je}=Fe;(be=L.value)===null||be===void 0||be.forEach(at=>{const ct=Je(at);ct&&!ct.shallowLoaded&&ce(ct)})});const G=F(!1),B=F([]);it(de,(be,Fe)=>{if(!e.animated||H){Rt(pe);return}const Je=new Set(Fe);let at=null,ct=null;for(const Pt of be)if(!Je.has(Pt)){if(at!==null)return;at=Pt}const Gt=new Set(be);for(const Pt of Fe)if(!Gt.has(Pt)){if(ct!==null)return;ct=Pt}if(at===null&&ct===null)return;const{virtualScroll:Kt}=e,Re=(Kt?s.value.listElRef:a.value).offsetHeight,Ge=Math.ceil(Re/kd)+1;let st;if(at!==null&&(st=Fe),ct!==null&&(st===void 0?st=be:st=st.filter(Pt=>Pt!==ct)),G.value=!0,B.value=p.value.getFlattenedNodes(st),at!==null){const Pt=B.value.findIndex(qt=>qt.key===at);if(~Pt){const qt=B.value[Pt].children;if(qt){const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"expand",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}}if(ct!==null){const Pt=B.value.findIndex(qt=>qt.key===ct);if(~Pt){const qt=B.value[Pt].children;if(!qt)return;G.value=!0;const Et=tm(qt,be);B.value.splice(Pt+1,0,{__motion:!0,mode:"collapse",height:Kt?Et.length*kd:void 0,nodes:Kt?Et.slice(0,Ge):Et})}}});const N=P(()=>F2(j.value)),te=P(()=>G.value?B.value:j.value);function pe(){const{value:be}=l;be&&be.sync()}function Z(){G.value=!1,e.virtualScroll&&Rt(pe)}function fe(be){const{getNode:Fe}=b.value;return be.map(Je=>{var at;return((at=Fe(Je))===null||at===void 0?void 0:at.rawNode)||null})}function ne(be,Fe,Je){const{"onUpdate:expandedKeys":at,onUpdateExpandedKeys:ct}=e;D.value=be,at&&he(at,be,Fe,Je),ct&&he(ct,be,Fe,Je)}function ge(be,Fe,Je){const{"onUpdate:checkedKeys":at,onUpdateCheckedKeys:ct}=e;m.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function Pe(be,Fe){const{"onUpdate:indeterminateKeys":Je,onUpdateIndeterminateKeys:at}=e;Je&&he(Je,be,Fe),at&&he(at,be,Fe)}function Ae(be,Fe,Je){const{"onUpdate:selectedKeys":at,onUpdateSelectedKeys:ct}=e;T.value=be,ct&&he(ct,be,Fe,Je),at&&he(at,be,Fe,Je)}function qe(be){const{onDragenter:Fe}=e;Fe&&he(Fe,be)}function Ye(be){const{onDragleave:Fe}=e;Fe&&he(Fe,be)}function ft(be){const{onDragend:Fe}=e;Fe&&he(Fe,be)}function ht(be){const{onDragstart:Fe}=e;Fe&&he(Fe,be)}function vt(be){const{onDragover:Fe}=e;Fe&&he(Fe,be)}function Ve(be){const{onDrop:Fe}=e;Fe&&he(Fe,be)}function Xe(){We(),Ke()}function We(){we.value=null}function Ke(){ve.value=0,me.value=null,Oe.value=null,_e.value=null,X()}function X(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,Fe){if(e.disabled||vi(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Je=Fe?"check":"uncheck",{checkedKeys:at,indeterminateKeys:ct}=b.value[Je](be.key,_.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(at,fe(at),{node:be.rawNode,action:Je}),Pe(ct,fe(ct))}function ke(be){if(e.disabled)return;const{key:Fe}=be,{value:Je}=L,at=Je.findIndex(ct=>ct===Fe);if(~at){const ct=Array.from(Je);ct.splice(at,1),ne(ct,fe(ct),{node:be.rawNode,action:"collapse"})}else{const ct=p.value.getNode(Fe);if(!ct||ct.isLeaf)return;let Gt;if(e.accordion){const Kt=new Set(be.siblings.map(({key:Re})=>Re));Gt=Je.filter(Re=>!Kt.has(Re)),Gt.push(Fe)}else Gt=Je.concat(Fe);ne(Gt,fe(Gt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||G.value||ke(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Fe,indeterminateKeys:Je}}=x;e.multiple?q(be,!(Fe.includes(be.key)||Je.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const Fe=Array.from(R.value),Je=Fe.findIndex(at=>at===be.key);~Je?e.cancelable&&Fe.splice(Je,1):~Je||Fe.push(be.key),Ae(Fe,fe(Fe),{node:be.rawNode,action:~Je?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const Fe=()=>{if(Q!==be.key)return;const{value:Je}=Oe;if(Je&&Je.key===be.key&&!L.value.includes(be.key)){const at=L.value.concat(be.key);ne(at,fe(at),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{Fe()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{Fe()})},1e3)}function ze({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(oe({event:be,node:Fe},!1),qe({event:be,node:Fe.rawNode}))}function ie({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||Ye({event:be,node:Fe.rawNode})}function Te(be){be.target===be.currentTarget&&Ke()}function se({event:be,node:Fe}){Xe(),!(!e.draggable||e.disabled||vi(Fe,e.disabledField))&&ft({event:be,node:Fe.rawNode})}function $e({event:be,node:Fe}){!e.draggable||e.disabled||vi(Fe,e.disabledField)||(Ce=be.clientX,we.value=Fe,ht({event:be,node:Fe.rawNode}))}function oe({event:be,node:Fe},Je=!0){var at;if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:ct}=we;if(!ct)return;const{allowDrop:Gt,indent:Kt}=e;Je&&vt({event:be,node:Fe.rawNode});const Re=be.currentTarget,{height:Ge,top:st}=Re.getBoundingClientRect(),Pt=be.clientY-st;let qt;Gt({node:Fe.rawNode,dropPosition:"inside",phase:"drag"})?Pt<=8?qt="before":Pt>=Ge-8?qt="after":qt="inside":Pt<=Ge/2?qt="before":qt="after";const{value:Qr}=N;let Nt,fn;const Ao=Qr(Fe.key);if(Ao===null){Ke();return}let ai=!1;qt==="inside"?(Nt=Fe,fn="inside"):qt==="before"?Fe.isFirstChild?(Nt=Fe,fn="before"):(Nt=j.value[Ao-1],fn="after"):(Nt=Fe,fn="after"),!Nt.isLeaf&&L.value.includes(Nt.key)&&(ai=!0,fn==="after"&&(Nt=j.value[Ao+1],Nt?fn="before":(Nt=Fe,fn="inside")));const li=Nt;if(Oe.value=li,!ai&&ct.isLastChild&&ct.key===Nt.key&&(fn="after"),fn==="after"){let si=Ce-be.clientX,qi=0;for(;si>=Kt/2&&Nt.parent!==null&&Nt.isLastChild&&qi<1;)si-=Kt,qi+=1,Nt=Nt.parent;ve.value=qi}else ve.value=0;if((ct.contains(Nt)||fn==="inside"&&((at=ct.parent)===null||at===void 0?void 0:at.key)===Nt.key)&&!(ct.key===li.key&&ct.key===Nt.key)){Ke();return}if(!Gt({node:Nt.rawNode,dropPosition:fn,phase:"drag"})){Ke();return}if(ct.key===Nt.key)X();else if(Q!==Nt.key)if(fn==="inside"){if(e.expandOnDragenter){if(ae(Nt),!Nt.shallowLoaded&&Q!==Nt.key){Xe();return}}else if(!Nt.shallowLoaded){Xe();return}}else X();else fn!=="inside"&&X();_e.value=fn,me.value=Nt}function Ie({event:be,node:Fe,dropPosition:Je}){if(!e.draggable||e.disabled||vi(Fe,e.disabledField))return;const{value:at}=we,{value:ct}=me,{value:Gt}=_e;if(!(!at||!ct||!Gt)&&!!e.allowDrop({node:ct.rawNode,dropPosition:Gt,phase:"drag"})&&at.key!==ct.key){if(Gt==="before"){const Kt=at.getNext({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}if(Gt==="after"){const Kt=at.getPrev({includeDisabled:!0});if(Kt&&Kt.key===ct.key){Ke();return}}Ve({event:be,node:ct.rawNode,dragNode:at.rawNode,dropPosition:Je}),Xe()}}function Ne(){pe()}function Qe(){pe()}function Ue(be){var Fe;if(e.virtualScroll||e.internalScrollable){const{value:Je}=l;if(!((Fe=Je==null?void 0:Je.containerRef)===null||Fe===void 0)&&Fe.contains(be.relatedTarget))return;E.value=null}else{const{value:Je}=a;if(Je!=null&&Je.contains(be.relatedTarget))return;E.value=null}}it(E,be=>{var Fe,Je;if(be!==null){if(e.virtualScroll)(Fe=s.value)===null||Fe===void 0||Fe.scrollTo({key:be});else if(e.internalScrollable){const{value:at}=l;if(at===null)return;const ct=(Je=at.contentRef)===null||Je===void 0?void 0:Je.querySelector(`[data-key="${N_(be)}"]`);if(!ct)return;at.scrollTo({el:ct})}}}),ot(Oc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:_,displayedIndeterminateKeysRef:k,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:_e,droppingOffsetLevelRef:ve,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Ie,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var Fe;(Fe=s.value)===null||Fe===void 0||Fe.scrollTo(be)}const De={handleKeydown:W,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ze=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:Fe,nodeBorderRadius:Je,nodeColorHover:at,nodeColorPressed:ct,nodeColorActive:Gt,arrowColor:Kt,loadingColor:Re,nodeTextColor:Ge,nodeTextColorDisabled:st,dropMarkColor:Pt}}=i.value;return{"--n-arrow-color":Kt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":Fe,"--n-node-border-radius":Je,"--n-node-color-active":Gt,"--n-node-color-hover":at,"--n-node-color-pressed":ct,"--n-node-text-color":Ge,"--n-node-text-color-disabled":st,"--n-drop-mark-color":Pt}}),bt=n?et("tree",void 0,Ze,e):void 0;return Object.assign(Object.assign({},De),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:G,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Qe,cssVars:n?void 0:Ze,themeClass:bt==null?void 0:bt.themeClass,onRender:bt==null?void 0:bt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,p=s&&!l,v=p?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],g=y=>"__motion"in y?u(qle,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(s5,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=Pi(C||"0");return u(Bf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(qo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:kd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:_})=>g(_)})}})}const{internalScrollable:m}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),m?u(Bf,{class:b,tabindex:v,onKeydown:p?d:void 0,onFocusout:p?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(g))}):u("div",{class:b,tabindex:v,ref:"selfElRef",style:this.cssVars,onKeydown:p?d:void 0,onFocusout:p?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(g):gt(this.$slots.empty,()=>[u(Ui,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function HS(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function jS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Xle=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),Dn()])]),h5=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Ht.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),d5),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Zle=J({name:"TreeSelect",props:h5,setup(e){const t=F(null),n=F(null),r=F(null),o=F(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=je(e),{localeRef:s}=Cn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:p,nTriggerFormFocus:v,nTriggerFormInput:b}=Sn(e),g=F(e.defaultValue),m=xe(e,"value"),y=St(m,g),C=F(e.defaultShow),x=xe(e,"show"),w=St(x,C),_=F(""),k=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:ke}=e;return(Be,Ee)=>Be.length?Ee[ke].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>co(e.options,c5(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=F(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),D=P(()=>e.multiple&&e.cascade&&e.checkable),z=F(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=St(A,z),j=F(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),W=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:ke,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return ke?jS(ie,ze.getPath(ae).treeNodePath,Be,Ee):HS(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:ke,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(ke?jS($e,ze.getPath(se).treeNodePath,Be,Te):HS($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=We.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:ke,"onUpdate:show":Be}=e;ke&&he(ke,q),Be&&he(Be,q),C.value=q}function Ce(q,ke,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),g.value=q,b(),p()}function we(q,ke){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,ke),Ee&&he(Ee,q,ke)}function me(q,ke,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,ke,Be),ae&&he(ae,q,ke,Be),z.value=q}function Oe(q){const{onFocus:ke}=e;ke&&ke(q),v()}function _e(q){ve();const{onBlur:ke}=e;ke&&ke(q),h()}function ve(){de(!1)}function Me(){d.value||(_.value="",de(!0),e.filterable&&ue())}function H(){_.value=""}function U(q){var ke;w.value&&(!((ke=n.value)===null||ke===void 0)&&ke.$el.contains(vr(q))||ve())}function Y(){d.value||(w.value?e.filterable||ve():Me())}function ce(q){const{value:{getNode:ke}}=T;return q.map(Be=>{var Ee;return((Ee=ke(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function G(q,ke,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(_.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),ve(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var ke;!((ke=o.value)===null||ke===void 0)&&ke.contains(q.relatedTarget)||(j.value=!1,_e(q))}function pe(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var ke,Be,Ee;((ke=o.value)===null||ke===void 0?void 0:ke.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,_e(q))}function fe(q){q.stopPropagation();const{multiple:ke}=e;!ke&&e.filterable&&ve(),ke?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:ke}=y;if(Array.isArray(ke)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(ke,{cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:ke}=q.target;_.value=ke}function Pe(q){const{value:ke}=r;ke&&ke.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(ve(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Fa(q),ve(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function qe(){ve(),ee()}function Ye(q){Zn(q,"action")||q.preventDefault()}const ft=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});ot(Y0,{pendingNodeKeyRef:R,dataTreeMate:T});function ht(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}ph(o,ht);const vt=a5(e),Ve=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:vt.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=Ve.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=Ve.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},We=Se("TreeSelect","-tree-select",Xle,lie,e,i),Ke=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:ke,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=We.value;return{"--n-menu-box-shadow":ke,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),X=l?et("tree-select",void 0,Ke,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Ht(e),isMounted:Hn(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:W,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:_,pendingNodeKey:R,mergedCascade:D,mergedFilter:k,selectionRenderTag:ft,handleTriggerOrMenuResize:ht,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:U,handleUpdateCheckedKeys:G,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:pe,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:qe,handleMenuMousedown:Ye,mergedTheme:We,cssVars:l?void 0:Ke,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(qr,null,{default:()=>[u(Yr,null,{default:()=>u(p0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Or,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(Ft,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),un(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(f5,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},gt(n.empty,()=>[u(Ui,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),kt(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Fo,{onFocus:this.handleTabOut})),[[gr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Qle=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),I("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[I("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),ua=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Wl=e=>J({name:`H${e}`,props:ua,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=je(t),o=Se("Typography","-h",Qle,Ki,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:p,[ye("headerBarWidth",e)]:v,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":p,"--n-bar-color":b,"--n-bar-width":v,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?et(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),Jle=Wl("1"),ese=Wl("2"),tse=Wl("3"),nse=Wl("4"),rse=Wl("5"),ose=Wl("6"),ise=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),p5=Object.assign({},Se.props),ase=J({name:"A",props:p5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-a",ise,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?et("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),lse=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),v5=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),sse=J({name:"P",props:v5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-p",lse,Ki,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:p}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:p}}),i=n?et("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),cse=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),I("align-text",{marginLeft:"-16px"})]),g5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),dse=J({name:"Blockquote",props:g5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-blockquote",cse,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?et("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),use=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),fse=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-hr",use,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?et("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),VS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),WS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],m5=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[I("align-text",{paddingLeft:0}),VS,WS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[I("align-text",{paddingLeft:0}),VS,WS])]),b5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),hse=J({name:"Ul",props:b5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),y5=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pse=J({name:"Ol",props:y5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-xl",m5,Ki,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?et("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),vse=J({name:"Li",render(){return u("li",null,this.$slots)}}),gse=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[I("strong",` - font-weight: var(--n-font-weight-strong); - `),I("italic",{fontStyle:"italic"}),I("underline",{textDecoration:"underline"}),I("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),x5=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),mse=J({name:"Text",props:x5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Typography","-text",gse,Ki,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:p,codeColor:v,codeBorder:b,[s]:g}}=r.value;return{"--n-bezier":f,"--n-text-color":g,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":p,"--n-code-text-color":h,"--n-code-color":v,"--n-code-border":b}}),i=n?et("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ii(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Ul="n-upload",w5="__UPLOAD_DRAGGER__",C5=J({name:"UploadDragger",[w5]:!0,setup(e,{slots:t}){const n=Le(Ul,null);return n||Nn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var S5=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const k5=e=>e.includes("image/"),US=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},KS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,_5=e=>{if(e.type)return k5(e.type);const t=US(e.name||"");if(KS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=US(n);return!!(/^data:image\//.test(n)||KS.test(r))};function bse(e){return S5(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!k5(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const yse=lr&&window.FileReader&&window.File;function xse(e){return e.isDirectory}function wse(e){return e.isFile}function Cse(e,t){return S5(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&xse(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else wse(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function ic(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function Sse(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const kse=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},G0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,p=P(()=>a.value==="image-card");function v(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?Cse(Array.from(w).map(_=>_.webkitGetAsEntry()),f.value).then(_=>{d(_)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:v,handleDrop:y,handleDragOver:b,handleDragEnter:g,handleDragLeave:m}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,p.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:v,onDrop:y,onDragover:b,onDragenter:g,onDragleave:m},p.value?u(C5,null,{default:()=>gt(t.default,()=>[u(dt,{clsPrefix:x},{default:()=>u(Dl,null)})])}):t)}}}),_se=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Ul).mergedThemeRef}},render(){return u(Io,null,{default:()=>this.show?u(Lz,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Rse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Pse=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var $se=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const _d={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Tse=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Ul),n=F(null),r=F(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=lt(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:_}=e;return["finished"].includes(w)&&f.value&&_==="image-card"});function p(){t.submit(e.file.id)}function v(w){w.preventDefault();const{file:_}=e;["finished","pending","error"].includes(_.status)?g(_):["uploading"].includes(_.status)?y(_):Qn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),m(e.file)}function g(w){const{xhrMap:_,doChange:k,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const D=Object.assign({},w,{status:"removed"});_.delete(w.id),k(D,void 0,{remove:!0})})}function m(w){const{onDownloadRef:{value:_}}=t;Promise.resolve(_?_(Object.assign({},w)):!0).then(k=>{k!==!1&&kse(w.url,w.name)})}function y(w){const{xhrMap:_}=t,k=_.get(w.id);k==null||k.abort(),g(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:_}=n;if(!_)return;_.click()}}const x=()=>$se(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return At(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:v,handleDownloadClick:b,handleRetryClick:p,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):_5(r)?u(dt,{clsPrefix:e},{default:()=>Rse}):u(dt,{clsPrefix:e},{default:()=>Pse})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(QO,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(dt,{clsPrefix:e},{default:()=>u(OK,null)}));const s=u(_se,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Tt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(O2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Tt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:_d,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(Do,null,{default:()=>this.showRemoveButton?u(dt,{clsPrefix:e,key:"trash"},{default:()=>u(MK,null)}):u(dt,{clsPrefix:e,key:"cancel"},{default:()=>u(EK,null)})})}),this.showRetryButton&&!this.disabled&&u(Tt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(jK,null)})}),this.showDownloadButton?u(Tt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:_d},{icon:()=>u(dt,{clsPrefix:e},{default:()=>u(DK,null)})}):null)),!a&&s)}}),R5=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Ul,null);n||Nn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,p=P(()=>i.value==="image-card"),v=()=>a.value.map(g=>u(Tse,{clsPrefix:o.value,key:g.id,file:g,listType:i.value})),b=()=>p.value?u(XO,Object.assign({},h.value),{default:v}):u(Io,{group:!0},{default:v});return()=>{const{value:g}=o,{value:m}=r;return u("div",{class:[`${g}-upload-file-list`,p.value&&`${g}-upload-file-list--grid`,m?c==null?void 0:c.value:void 0],style:[m&&s?s.value:"",l.value]},b(),f.value&&!d.value&&p.value&&u(G0,null,t))}}}),Ose=O([S("upload","width: 100%;",[I("dragger-inside",[S("upload-trigger",` - display: block; - `)]),I("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),I("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),I("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),I("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),I("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[Go(),S("progress",[Go({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),I("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),I("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),I("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),I("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),I("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),I("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[On()])])]),I("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),I("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var qS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function zse(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=ic(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=ic(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Mse(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=ic(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=ic(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Dse(e,t,n){const r=zse(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function P5(e,t){return typeof e=="function"?e({file:t}):e||{}}function Ise(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Fse(e,t,n){const r=P5(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Ase(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Fse(d,s,n),d.append(t,n.file),Dse(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Ise(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const $5=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>yse?_5(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Bse=J({name:"Upload",props:$5,setup(e){e.abstract&&e.listType==="image-card"&&Nn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=je(e),r=Se("Upload","-upload",Ose,hie,e,t),o=Sn(e),i=P(()=>{const{max:$}=e;return $!==void 0?p.value.length>=$:!1}),a=F(e.defaultFileList),l=xe(e,"fileList"),s=F(null),c={value:!1},d=F(!1),f=new Map,h=St(l,a),p=P(()=>h.value.map(ic));function v(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(D=>({file:D,entry:null,source:"input"})):null,$),R.value=""}function g($){const{"onUpdate:fileList":R,onUpdateFileList:D}=e;R&&he(R,$),D&&he(D,$),a.value=$}const m=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:D}=e;$=m.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?Sse(j.name,j.type,A):!0),z&&($=$.slice(0,z-p.value.length));const L=Tr();Promise.all($.map(({file:j,entry:E})=>qS(this,void 0,void 0,function*(){var W;const K={id:Tr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(W=E==null?void 0:E.fullPath)!==null&&W!==void 0?W:`/${j.webkitRelativePath||j.name}`};return!D||(yield D({file:K,fileList:p.value}))!==!1?K:null}))).then(j=>qS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(W=>{E=E.then(Rt).then(()=>{W&&x(W,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:D,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?p.value.filter(K=>K.id===$):p.value,W=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&W)&&(e.customRequest?Mse({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:D,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Ase({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:D,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,D={append:!1,remove:!1})=>{const{append:z,remove:A}=D,L=Array.from(p.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),g(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:D}=e;return D?(R=D($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?bse($.file):""}const _=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:D,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:W,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":D,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":W,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),k=n?et("upload",void 0,_,e):void 0;ot(Ul,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:p,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:v,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:_,themeClassRef:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:v};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:m,cssVars:n?void 0:_,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[w5]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u(Ot,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(cc,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(G0,null,o),this.showFileList&&u(R5,null,o)))}}),Ese=O([S("watermark-container",` - position: relative; - `,[mt("selectable",` - user-select: none; - -webkit-user-select: none; - `),I("global-rotate",` - overflow: hidden; - `),I("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[I("fullscreen",` - position: fixed; - `),I("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Lse(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const T5=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Nse=J({name:"Watermark",props:T5,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=je(e),r=Se("Watermark","-watermark",Ese,yie,e,n),o=F(""),i=lr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=F(!1);return fh(()=>l.value=!0),At(()=>{if(!i)return;l.value;const s=Lse(a),{xGap:c,yGap:d,width:f,height:h,yOffset:p,xOffset:v,rotate:b,image:g,content:m,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:_,fontFamily:k,fontSize:T,lineHeight:$,debug:R}=e,D=(c+f)*s,z=(d+h)*s,A=v*s,L=p*s;if(i.width=D,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),g){const W=new Image;W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=g,W.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(W,A,L,(e.imageWidth||(Q?W.width*Q/W.height:W.width))*s,(e.imageHeight||(K?W.height*K/W.width:W.height))*s),o.value=i.toDataURL()}}else m&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${_} ${w} ${T*s}px/${$*s}px ${k||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(m,A,L+$*s),o.value=i.toDataURL())}else LA("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,p=c!==0&&d,v="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:p?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${v} + ${e.width/2}px) calc(${v} + ${e.height/2}px), ${v} ${v}`:v,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:p?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Hse=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),jse={message:Tz,notification:Dz,loadingBar:pz,dialog:VT};function Vse({providersAndProps:e,configProviderProps:t}){let r=qk(()=>u(x$,ov(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,ov(c),{default:()=>u(Hse,{onSetup:()=>o[l]=jse[l]()})}))}));const o={app:r};let i;return lr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Qn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Wse(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:$z,props:n});break;case"notification":a.push({type:s,Provider:Mz,props:o});break;case"dialog":a.push({type:s,Provider:jT,props:r});break;case"loadingBar":a.push({type:s,Provider:hz,props:i});break}}),Vse({providersAndProps:a,configProviderProps:t})}const O5={value:String,katex:Object,katexOptions:Object},Use=J({name:"Equation",props:O5,setup(e){const t=Le(Ur),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),YS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:P2,affixProps:wh,NAlert:yY,alertProps:aP,NAnchor:OY,anchorProps:cP,NAnchorLink:RY,anchorLinkProps:sP,NAutoComplete:XY,autoCompleteProps:xP,NAvatar:rm,avatarProps:RP,NAvatarGroup:aG,avatarGroupProps:$P,NBackTop:pG,backTopProps:OP,NBadge:wG,badgeProps:zP,NBreadcrumb:$G,breadcrumbProps:IP,NBreadcrumbItem:zG,breadcrumbItemProps:FP,NButton:Tt,NxButton:lo,buttonProps:EP,NButtonGroup:g0,buttonGroupProps:HP,NCalendar:qG,calendarProps:VP,NColorPicker:CX,colorPickerProps:KP,NCard:ZP,cardProps:XP,NCarousel:KX,carouselProps:t$,NCarouselItem:e$,NCascader:cZ,cascaderProps:s$,NCheckbox:ii,checkboxProps:l$,NCheckboxGroup:a$,checkboxGroupProps:i$,NCode:f$,codeProps:u$,NCollapse:yZ,collapseProps:p$,NCollapseItem:wZ,collapseItemProps:g$,NCollapseTransition:PZ,collapseTransitionProps:b$,NConfigProvider:x$,configProviderProps:y$,NCountdown:$Z,countdownProps:w$,NNumberAnimation:zZ,numberAnimationProps:C$,NDataTable:lJ,dataTableProps:K$,NDatePicker:vee,datePickerProps:RT,NDescriptions:See,descriptionsProps:TT,NDescriptionsItem:kee,descriptionsItemProps:OT,NDialog:I0,dialogProps:Sc,NDialogProvider:jT,dialogProviderProps:HT,useDialog:VT,useDialogReactiveList:Lee,NDivider:Uee,dividerProps:UT,NDrawer:dte,drawerProps:qT,NDrawerContent:ute,drawerContentProps:YT,NDropdown:$0,dropdownProps:sT,NDynamicInput:xte,dynamicInputProps:XT,NDynamicTags:Ote,dynamicTagsProps:nO,NElement:sS,elementProps:rO,NEl:sS,NEllipsis:_0,ellipsisProps:U$,NEmpty:Ui,emptyProps:H2,NForm:Hte,formProps:lO,NFormItem:B0,formItemProps:Rc,NFormItemGridItem:bS,NFormItemGi:bS,formItemGiProps:jm,formItemGridItemProps:jm,NFormItemCol:vO,NFormItemRow:Mne,NGlobalStyle:Dne,NGradientText:Nne,gradientTextProps:gO,NGrid:jne,gridProps:bO,NGridItem:Hm,gridItemProps:oc,NGi:Hm,giProps:oc,NIcon:oT,iconProps:rT,NIconWrapper:Yne,iconWrapperProps:xO,NImage:QO,imageProps:ZO,NImageGroup:XO,imageGroupProps:GO,NInput:En,inputProps:pP,NInputGroup:gP,inputGroupProps:vP,NInputGroupLabel:VY,inputGroupLabelProps:mP,NInputNumber:Oie,inputNumberProps:JO,NLayout:Mie,layoutProps:Vm,layoutContentProps:Vm,NLayoutContent:Die,NLayoutHeader:Fie,layoutHeaderProps:rz,NLayoutFooter:Bie,layoutFooterProps:oz,NLayoutSider:Hie,layoutSiderProps:iz,NRow:hO,rowProps:zh,NCol:pO,colProps:Mh,NLegacyTransfer:Xie,legacyTransferProps:lz,NList:Qie,listProps:sz,NListItem:Jie,NLoadingBarProvider:hz,loadingBarProviderProps:fz,useLoadingBar:pz,NLog:iae,logProps:gz,NMenu:vae,menuProps:Cz,NMention:bae,mentionProps:Sz,NMessageProvider:$z,messageProviderProps:Pz,useMessage:Tz,NModal:NT,modalProps:LT,NNotificationProvider:Mz,notificationProviderProps:zz,useNotification:Dz,NPageHeader:Mae,pageHeaderProps:Iz,NPagination:A$,paginationProps:F$,NPopconfirm:Fae,popconfirmProps:Bz,NPopover:el,popoverProps:G2,NPopselect:R$,popselectProps:_$,NProgress:Lz,progressProps:Ez,NRadio:R0,radioProps:Ph,NRadioGroup:X$,radioGroupProps:G$,NRadioButton:vQ,radioButtonProps:pQ,NRate:Wae,rateProps:Nz,NResult:Zae,resultProps:Hz,NScrollbar:Jae,scrollbarProps:jz,NSelect:z$,selectProps:O$,NSkeleton:ole,skeletonProps:Vz,NSlider:lle,sliderProps:Wz,NSpace:tO,spaceProps:eO,NSpin:dle,spinProps:Uz,NStatistic:fle,statisticProps:Kz,NSteps:gle,stepsProps:qz,NStep:mle,stepProps:Gz,NSwitch:yle,switchProps:Xz,NTable:wle,tableProps:Zz,NTh:Cle,NTr:Sle,NTd:kle,NThead:_le,NTbody:Rle,NTabs:Tle,tabsProps:Jz,NTabPane:Ple,tabPaneProps:q0,NTab:qf,tabProps:Qz,NTag:zs,tagProps:eP,NThing:zle,thingProps:e5,NTime:Mle,timeProps:t5,NTimePicker:Kf,timePickerProps:CT,NTimeline:Ile,timelineProps:n5,NTimelineItem:Fle,timelineItemProps:o5,NTooltip:Rh,tooltipProps:W$,NTransfer:Ele,transferProps:i5,NTree:f5,treeProps:u5,NTreeSelect:Zle,treeSelectProps:h5,NH1:Jle,NH2:ese,NH3:tse,NH4:nse,NH5:rse,NH6:ose,h1Props:ua,h2Props:ua,h3Props:ua,h4Props:ua,h5Props:ua,h6Props:ua,NA:ase,aProps:p5,NP:sse,pProps:v5,NBlockquote:dse,blockquoteProps:g5,NHr:fse,NUl:hse,ulProps:b5,NOl:pse,olProps:y5,NLi:vse,NText:mse,textProps:x5,NUpload:Bse,uploadProps:$5,NUploadDragger:C5,NUploadTrigger:G0,NUploadFileList:R5,NWatermark:Nse,watermarkProps:T5,createDiscreteApi:Wse,NEquation:Use,equationProps:O5},Symbol.toStringTag,{value:"Module"})),Kse="2.34.3";function qse({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Kse,componentPrefix:e,install:o}}const z5=qse({components:Object.keys(YS).map(e=>YS[e])}),Yse=z5;z5.install;const Gse=()=>({}),Xse={name:"Equation",common:tt,self:Gse},Zse=Xse,Qse={name:"dark",common:tt,Alert:fY,Anchor:kY,AutoComplete:qY,Avatar:kP,AvatarGroup:iG,BackTop:sG,Badge:gG,Breadcrumb:RG,Button:wr,ButtonGroup:sre,Calendar:UG,Card:GP,Carousel:zX,Cascader:eZ,Checkbox:Vl,Code:c$,Collapse:mZ,CollapseTransition:RZ,ColorPicker:ZG,DataTable:aQ,DatePicker:vJ,Descriptions:xee,Dialog:DT,Divider:Vee,Drawer:Gee,Dropdown:k0,DynamicInput:hte,DynamicTags:Rte,Element:Mte,Empty:Za,Ellipsis:E$,Equation:Zse,Form:Ete,GradientText:Fne,Icon:TQ,IconWrapper:Kne,Image:Cie,Input:Zr,InputNumber:dre,LegacyTransfer:Vie,Layout:vre,List:wre,LoadingBar:Sre,Log:$re,Menu:Hre,Mention:Dre,Message:are,Modal:Dee,Notification:tre,PageHeader:Wre,Pagination:I$,Popconfirm:Gre,Popover:Ja,Popselect:S$,Progress:OO,Radio:H$,Rate:Jre,Result:loe,Row:wie,Scrollbar:yr,Select:T$,Skeleton:ele,Slider:coe,Space:QT,Spin:goe,Statistic:xoe,Steps:_oe,Switch:Poe,Table:Foe,Tabs:Noe,Tag:Z2,Thing:Woe,TimePicker:pT,Timeline:Koe,Tooltip:kh,Transfer:Zoe,Tree:WO,TreeSelect:oie,Typography:uie,Upload:vie,Watermark:mie},Jse=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};yo.register(VF,ZF,HF,Dd,bv,yv);const ece={ADJ:"Adjective",ADP:"Adposition",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Particle",VERB:"Verb"},tce=J({components:{Bar:_A},setup(){const e=F(Nx.split(/\r?\n/).at(0).split(",").at(0)),t=F(null),n=Nx.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(ece))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=ji([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return It(async()=>{await i(e.value),it(t,()=>{a()}),t.value="ADJ",it(e,async c=>{await i(c),a()})}),{darkTheme:Qse,chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),nce=oo("h1",null,"entityscrape",-1),rce=oo("p",null," This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS). ",-1),oce=oo("p",null,[Ar(" The Go package "),oo("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Ar(" was used for creating this experiment. You can create new ones with updating the "),oo("code",null,"source/entities.txt"),Ar(" file and run the CLI with the provided Visual Studio Code debug configuration. The experiments source code can be found at "),oo("a",{target:"_blank",href:"https://github.com/ndabAP/entityscrape"},"Github"),Ar(". ")],-1),ice={style:{height:"475px"}},ace=oo("small",null,[oo("b",null,"Data source"),Ar(": "),oo("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function lce(e,t,n,r,o,i){const a=Bc("n-select"),l=Bc("n-form-item"),s=Bc("Bar"),c=Bc("n-space");return Ik(),Fk(c,{vertical:""},{default:Pd(()=>[nce,rce,oce,An(l,{size:"small",label:"Entity"},{default:Pd(()=>[An(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),An(l,{size:"small",label:"Part of speech"},{default:Pd(()=>[An(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),oo("div",ice,[An(s,{data:e.chartData,options:{indexAxis:"y",maintainAspectRatio:!1,responsive:!0,scales:{x:{grid:{drawBorder:!1,display:!1}},y:{ticks:{font:{size:13,family:"v-sans, system-ui, -apple-system, BlinkMacSystemFont"}},grid:{display:!1}}}}},null,8,["data"])]),ace]),_:1})}const sce=Jse(tce,[["render",lce]]),M5=qk(sce);M5.use(Yse);M5.mount("#app")});export default cce(); diff --git a/docs/assets/index.91ca2527.js b/docs/assets/index.91ca2527.js deleted file mode 100644 index b251673..0000000 --- a/docs/assets/index.91ca2527.js +++ /dev/null @@ -1,6855 +0,0 @@ -var hz=Object.defineProperty;var vz=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(vz(e,typeof t!="symbol"?t+"":t,n),n);var Qie=pz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Im(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Gs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(mz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},Cz=()=>!1,Sz=/^on[^a-z]/,Ef=e=>Sz.test(e),Dm=e=>e.startsWith("onUpdate:"),Ln=Object.assign,Am=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_z=Object.prototype.hasOwnProperty,Ht=(e,t)=>_z.call(e,t),Rt=Array.isArray,as=e=>Lf(e)==="[object Map]",kz=e=>Lf(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Bm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",BS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),Rz=Object.prototype.toString,Lf=e=>Rz.call(e),Pz=e=>Lf(e).slice(8,-1),$z=e=>Lf(e)==="[object Object]",Em=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gd=Im(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tz=/-(\w)/g,xo=Nf(e=>e.replace(Tz,(t,n)=>n?n.toUpperCase():"")),Oz=/\B([A-Z])/g,Rl=Nf(e=>e.replace(Oz,"-$1").toLowerCase()),Hf=Nf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ih=Nf(e=>e?`on${Hf(e)}`:""),Ss=(e,t)=>!Object.is(e,t),Fh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let B0;const Iz=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Kr;class Fz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kr,!t&&Kr&&(this.index=(Kr.scopes||(Kr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Kr;try{return Kr=this,t()}finally{Kr=n}}}on(){Kr=this}off(){Kr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ES=e=>(e.w&Ci)>0,LS=e=>(e.n&Ci)>0,Bz=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Em(n)&&l.push(a.get("length")):(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"delete":Rt(e)||(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"set":as(e)&&l.push(a.get(fa));break}if(l.length===1)l[0]&&Kv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Kv(Lm(s))}}function Kv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&L0(r);for(const r of n)r.computed||L0(r)}function L0(e,t){(e!==Xr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lz(e,t){var n;return(n=gu.get(e))===null||n===void 0?void 0:n.get(t)}const Nz=Im("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bm)),Hz=Hm(),jz=Hm(!1,!0),Vz=Hm(!0),N0=Uz();function Uz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Pl();const r=zt(this)[t].apply(this,n);return $l(),r}}),e}function Wz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Hm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?l5:qS:t?KS:WS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(N0,o))return Reflect.get(N0,o,i);if(o==="hasOwnProperty")return Wz}const l=Reflect.get(r,o,i);return(Bm(o)?jS.has(o):Nz(o))||(e||dr(r,"get",o),t)?l:Vn(l)?a&&Em(o)?l:l.value:vn(l)?e?wo(l):Fi(l):l}}const Kz=VS(),qz=VS(!0);function VS(e=!1){return function(n,r,o,i){let a=n[r];if(ml(a)&&Vn(a)&&!Vn(o))return!1;if(!e&&(!mu(o)&&!ml(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&Vn(a)&&!Vn(o)))return a.value=o,!0;const l=Rt(n)&&Em(r)?Number(r)e,jf=e=>Reflect.getPrototypeOf(e);function xc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=jf(o),l=r?jm:n?Wm:_s;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function wc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",fa),Reflect.get(e,"size",e)}function H0(e){e=zt(e);const t=zt(this);return jf(t).has.call(t,e)||(t.add(e),Lo(t,"add",e,e)),this}function j0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=jf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ss(t,a)&&Lo(n,"set",e,t):Lo(n,"add",e,t),this}function V0(e){const t=zt(this),{has:n,get:r}=jf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Lo(t,"delete",e,void 0),i}function U0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Lo(e,"clear",void 0,void 0),n}function Sc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?jm:e?Wm:_s;return!e&&dr(l,"iterate",fa),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function _c(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=as(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?jm:t?Wm:_s;return!t&&dr(i,"iterate",s?Wv:fa),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ti(e){return function(...t){return e==="delete"?!1:this}}function Jz(){const e={get(i){return xc(this,i)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!1)},t={get(i){return xc(this,i,!1,!0)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!0)},n={get(i){return xc(this,i,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!1)},r={get(i){return xc(this,i,!0,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_c(i,!1,!1),n[i]=_c(i,!0,!1),t[i]=_c(i,!1,!0),r[i]=_c(i,!0,!0)}),[e,n,t,r]}const[e5,t5,n5,r5]=Jz();function Vm(e,t){const n=t?e?r5:n5:e?t5:e5;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const o5={get:Vm(!1,!1)},i5={get:Vm(!1,!0)},a5={get:Vm(!0,!1)},WS=new WeakMap,KS=new WeakMap,qS=new WeakMap,l5=new WeakMap;function s5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c5(e){return e.__v_skip||!Object.isExtensible(e)?0:s5(Pz(e))}function Fi(e){return ml(e)?e:Um(e,!1,US,o5,WS)}function d5(e){return Um(e,!1,Qz,i5,KS)}function wo(e){return Um(e,!0,Zz,a5,qS)}function Um(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=c5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ha(e){return ml(e)?ha(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function va(e){return ha(e)||ml(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function bu(e){return pu(e,"__v_skip",!0),e}const _s=e=>vn(e)?Fi(e):e,Wm=e=>vn(e)?wo(e):e;function YS(e){pi&&Xr&&(e=zt(e),HS(e.dep||(e.dep=Lm())))}function XS(e,t){e=zt(e);const n=e.dep;n&&Kv(n)}function Vn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return ZS(e,!1)}function GS(e){return ZS(e,!0)}function ZS(e,t){return Vn(e)?e:new u5(e,t)}class u5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:_s(t)}get value(){return YS(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||ml(t);t=n?t:zt(t),Ss(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_s(t),XS(this))}}function qv(e){return Vn(e)?e.value:e}const f5={get:(e,t,n)=>qv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Vn(o)&&!Vn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function QS(e){return ha(e)?e:new Proxy(e,f5)}class h5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lz(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return Vn(r)?r:new h5(e,t,n)}var JS;class v5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[JS]=!1,this._dirty=!0,this.effect=new Nm(t,()=>{this._dirty||(this._dirty=!0,XS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return YS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}JS="__v_isReadonly";function p5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Jr):(r=e.get,o=e.set),new v5(r,o,i||!o,n)}function gi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Ir(e,t,n,r){if(Tt(e)){const i=gi(e,t,n,r);return i&&BS(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i>>1;Rs(Qn[r])ho&&Qn.splice(t,1)}function y5(e){Rt(e)?ul.push(...e):(!Do||!Do.includes(e,e.allowRecurse?ia+1:ia))&&ul.push(e),t_()}function W0(e,t=ks?ho+1:0){for(;tRs(n)-Rs(r)),ia=0;iae.id==null?1/0:e.id,x5=(e,t)=>{const n=Rs(e)-Rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function r_(e){Yv=!1,ks=!0,Qn.sort(x5);const t=Jr;try{for(ho=0;hoPn(v)?v.trim():v)),f&&(o=n.map(zz))}let l,s=r[l=Ih(t)]||r[l=Ih(xo(t))];!s&&i&&(s=r[l=Ih(Rl(t))]),s&&Ir(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ir(c,e,6,o)}}function o_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=o_(c,t,!0);d&&(l=!0,Ln(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):Ln(a,i),vn(e)&&r.set(e,a),a)}function Uf(e,t){return!e||!Ef(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Rl(t))||Ht(e,t))}let Un=null,i_=null;function yu(e){const t=Un;return Un=e,i_=e&&e.type.__scopeId||null,t}function md(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ny(-1);const i=yu(t);let a;try{a=e(...o)}finally{yu(i),r._d&&ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=yu(e);try{if(n.shapeFlag&4){const x=o||r;m=uo(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=uo(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:C5(s)}}catch(x){ds.length=0,Vf(x,e,1),m=zn(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Dm)&&(g=S5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,yu(y),m}const C5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ef(n))&&((t||(t={}))[n]=e[n]);return t},S5=(e,t)=>{const n={};for(const r in e)(!Dm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?K0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function P5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):y5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Un;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Ym(e,null,t)}const kc={};function rt(e,t,n){return Ym(e,t,n)}function Ym(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Az()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(Vn(e)?(s=()=>e.value,c=mu(e)):ha(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ha(C)||mu(C)),s=()=>e.map(C=>{if(Vn(C))return C.value;if(ha(C))return sa(C);if(Tt(C))return gi(C,l,2)})):Tt(e)?t?s=()=>gi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Ir(e,l,3,[h])}:s=Jr,t&&r){const C=s;s=()=>sa(C())}let f,h=C=>{f=g.onStop=()=>{gi(C,l,4)}},v;if(zs)if(h=Jr,t?n&&Ir(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Jr;let p=d?new Array(e.length).fill(kc):kc;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Ss(x,p[w])):Ss(C,p)))&&(f&&f(),Ir(t,l,3,[C,p===kc?void 0:d&&p[0]===kc?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>qm(b));const g=new Nm(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Am(l.scope.effects,g)};return v&&v.push(y),y}function $5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?a_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;bl(this);const l=Ym(o,i.bind(r),n);return a?bl(a):pa(),l}function a_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sa(n,t)});else if($z(e))for(const n in e)sa(e[n],t);return e}function l_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],T5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Ko(),r=l_();let o;return()=>{const i=t.default&&Xm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ah(a);const c=q0(a);if(!c)return Ah(a);const d=Ps(c,l,r,n);$s(c,d);const f=n.subTree,h=f&&q0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!aa(c,h)||v)){const b=Ps(h,l,r,n);if($s(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ah(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=c_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},s_=T5;function c_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ps(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=c_(n,e),w=(T,$)=>{T&&Ir(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&aa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Ps(T,t,n,r)}};return _}function Ah(e){if(Wf(e))return e=nr(e),e.children=null,e}function q0(e){return Wf(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function Gm(e,t){d_(e,"a",t)}function Zs(e,t){d_(e,"da",t)}function d_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Kf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&O5(r,t,n,o),o=o.parent}}function O5(e,t,n,r){const o=Kf(t,e,r,!0);Qs(()=>{Am(r[t],o)},n)}function Kf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Pl(),bl(n);const l=Ir(t,n,e,a);return pa(),$l(),l});return r?o.unshift(i):o.push(i),i}}const Uo=e=>(t,n=wn)=>(!zs||e==="sp")&&Kf(e,(...r)=>t(...r),n),Wo=Uo("bm"),Mt=Uo("m"),Zm=Uo("bu"),Qm=Uo("u"),Dt=Uo("bum"),Qs=Uo("um"),z5=Uo("sp"),M5=Uo("rtg"),I5=Uo("rtc");function F5(e,t=wn){Kf("ec",e,t)}function sn(e,t){const n=Un;if(n===null)return e;const r=Xf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lOs(t)?!(t.type===xr||t.type===$t&&!f_(t.children)):!0)?e:null}const Xv=e=>e?__(e)?Xf(e)||e.proxy:Xv(e.parent):null,ss=Ln(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xv(e.parent),$root:e=>Xv(e.root),$emit:e=>e.emit,$options:e=>eb(e),$forceUpdate:e=>e.f||(e.f=()=>qm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>$5.bind(e)}),Bh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),E5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Bh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Gv&&(a[t]=0)}}const d=ss[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Bh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Bh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ss,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Gv=!0;function L5(e){const t=eb(e),n=e.proxy,r=e.ctx;Gv=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&N5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Fi(U))}if(Gv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Jr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Jr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)h_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&X0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Wo,f),E(Mt,h),E(Zm,v),E(Qm,p),E(Gm,b),E(Zs,m),E(F5,T),E(I5,k),E(M5,_),E(Dt,y),E(Qs,x),E(z5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Jr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function N5(e,t,n=Jr,r=!1){Rt(e)&&(e=Zv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),Vn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function X0(e,t,n){Ir(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){const o=r.includes(".")?a_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>h_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function eb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>xu(s,c,a,!0)),xu(s,t,a)),vn(t)&&i.set(t,s),s}function xu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xu(e,i,n,!0),o&&o.forEach(a=>xu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=H5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const H5={data:G0,props:ea,emits:ea,methods:ea,computed:ea,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:ea,directives:ea,watch:V5,provide:G0,inject:j5};function G0(e,t){return t?e?function(){return Ln(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function j5(e,t){return ea(Zv(e),Zv(t))}function Zv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=p_(f,t,!0);Ln(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,dl),dl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function Z0(e){return e[0]!=="$"}function Q0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J0(e,t){return Q0(e)===Q0(t)}function ey(e,t){return Rt(t)?t.findIndex(n=>J0(n,e)):Tt(t)&&J0(t,e)?0:-1}const g_=e=>e[0]==="_"||e==="$stable",tb=e=>Rt(e)?e.map(uo):[uo(e)],K5=(e,t,n)=>{if(t._n)return t;const r=md((...o)=>tb(t(...o)),n);return r._c=!1,r},m_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(g_(o))continue;const i=e[o];if(Tt(i))t[o]=K5(o,i,r);else if(i!=null){const a=tb(i);t[o]=()=>a}}},b_=(e,t)=>{const n=tb(t);e.slots.default=()=>n},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),pu(t,"_",n)):m_(t,e.slots={})}else e.slots={},t&&b_(e,t);pu(e.slots,Yf,1)},Y5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ln(o,t),!n&&l===1&&delete o._):(i=!t.$stable,m_(t,o)),a=t}else t&&(b_(e,t),a={default:1});if(i)for(const l in o)!g_(l)&&!(l in a)&&delete o[l]};function y_(){return{app:null,config:{isNativeTag:Cz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let X5=0;function G5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=y_(),a=new Set;let l=!1;const s=i.app={_uid:X5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:R_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=zn(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Xf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Jv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Jv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(ls(r)&&!o)return;const i=r.shapeFlag&4?Xf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):Vn(c)&&(c.value=null)),Tt(s))gi(s,l,12,[a,d]);else{const h=Pn(s),v=Vn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Am(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=P5;function Z5(e){return Q5(e)}function Q5(e,t){const n=Iz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Jr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!aa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case qf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Eh:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Jv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Hi(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!gd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&oo(Z,ce,H)}Ae&&Hi(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&oo(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Hi(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&ji(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&oo(Pe,Y,W,H),fe&&Hi(W,H,Y,"beforeUpdate"),Y&&ji(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&oo(Pe,Y,W,H),fe&&Hi(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!gd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(gd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&nb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(Wf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=zn(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(_5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,b5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;ji(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&Fh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&oo(qe,Pe,fe,Ae),ji(H,!0);const ct=Dh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&k5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>oo(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=ls(W);if(ji(H,!1),Pe&&Fh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&oo(fe,Ke,W),ji(H,!0),ne&&Me){const ct=()=>{H.subTree=Dh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Dh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>oo(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&ls(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Nm(te,()=>qm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,ji(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,W5(H,W.props,ce,Y),Y5(H,W.children,Y),Pl(),W0(),$l()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||dl,W=W||dl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?si(W[Z]):uo(W[Z]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?si(W[ge]):uo(W[ge]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?si(W[Z]):uo(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&aa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?J5(Xe):dl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Jv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ls(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&oo(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Hi(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&oo(Ke,W,H),Pe&&Hi(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Eh){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&Fh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),W0(),n_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:G5(Oe,pe)}}function ji({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const e3=e=>e.__isTeleport,cs=e=>e&&(e.disabled||e.disabled===""),ty=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ep=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},t3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=cs(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=ep(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||ty(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=cs(e.props),$=T?n:k,R=T?w:_;if(a=a||ty(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),nb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||Pc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ep(t.props,p);I&&Pc(t,I,null,c,0)}else T&&Pc(t,k,_,c,1)}x_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!cs(h))&&(i(c),l&16))for(let v=0;v0?Gr||dl:null,r3(),Ts>0&&Gr&&Gr.push(e),e}function C_(e,t,n,r,o){return o3(zn(e,t,n,r,o,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}const Yf="__vInternal",S_=({key:e})=>e!=null?e:null,bd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||Vn(e)||Tt(e)?{i:Un,r:e,k:t,f:!!n}:e:null;function Zr(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&S_(t),ref:t&&bd(t),scopeId:i_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return l?(rb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),Ts>0&&!a&&Gr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Gr.push(s),s}const zn=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===D5)&&(e=xr),Os(e)){const l=nr(e,t,!0);return n&&rb(l,n),Ts>0&&!i&&Gr&&(l.shapeFlag&6?Gr[Gr.indexOf(e)]=l:Gr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Fm(l)),vn(s)&&(va(s)&&!Rt(s)&&(s=Ln({},s)),t.style=Gs(s))}const a=Pn(e)?1:R5(e)?128:e3(e)?64:vn(e)?4:Tt(e)?2:0;return Zr(e,t,n,r,o,a,i,!0)}function a3(e){return e?va(e)||Yf in e?Ln({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&S_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(bd(t)):[o,bd(t)]:bd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Or(e=" ",t=0){return zn(qf,null,e,t)}function uo(e){return e==null||typeof e=="boolean"?zn(xr):Rt(e)?zn($t,null,e.slice()):typeof e=="object"?si(e):zn(qf,null,String(e))}function si(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function rb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),rb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yf in t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[Or(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Un,bl=e=>{wn=e,e.scope.on()},pa=()=>{wn&&wn.scope.off(),wn=null};function __(e){return e.vnode.shapeFlag&4}let zs=!1;function d3(e,t=!1){zs=t;const{props:n,children:r}=e.vnode,o=__(e);U5(e,n,o,t),q5(e,r);const i=o?u3(e,t):void 0;return zs=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bu(new Proxy(e.ctx,E5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;bl(e),Pl();const i=gi(r,e,0,[e.props,o]);if($l(),pa(),BS(i)){if(i.then(pa,pa),t)return i.then(a=>{ry(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else ry(e,i,t)}else k_(e,t)}function ry(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=QS(t)),k_(e,n)}let oy;function k_(e,t,n){const r=e.type;if(!e.render){if(!t&&oy&&!r.render){const o=r.template||eb(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Ln(Ln({isCustomElement:i,delimiters:l},a),s);r.render=oy(o,c)}}e.render=r.render||Jr}bl(e),Pl(),L5(e),$l(),pa()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Xf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QS(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>p5(e,t,zs);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Os(t)?zn(e,null,[t]):zn(e,t):zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),zn(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),R_="3.2.47",b3="http://www.w3.org/2000/svg",la=typeof document<"u"?document:null,iy=la&&la.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?la.createElementNS(b3,e):la.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>la.createTextNode(e),createComment:e=>la.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>la.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{iy.innerHTML=r?`${e}`:e;const l=iy.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&tp(r,i,"");for(const i in n)tp(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ay=/\s*!important$/;function tp(e,t,n){if(Rt(n))n.forEach(r=>tp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);ay.test(n)?e.setProperty(Rl(r),n.replace(ay,""),"important"):e[r]=n}}const ly=["Webkit","Moz","ms"],Lh={};function C3(e,t){const n=Lh[t];if(n)return n;let r=xo(t);if(r!=="filter"&&r in e)return Lh[t]=r;r=Hf(r);for(let o=0;oNh||(T3.then(()=>Nh=0),Nh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ir(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Ef(t)?Dm(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dy.test(t)&&Pn(n)?!1:t in e}const ni="transition",Al="animation",It=(e,{slots:t})=>u(s_,$_(e),t);It.displayName="Transition";const P_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=Ln({},s_.props,P_),Vi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},uy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function $_(e){const t={};for(const z in e)z in P_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{ai(z,A?d:l),ai(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,ai(z,f),ai(z,v),ai(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Vi(j,[A,E]),fy(()=>{ai(A,z?s:i),Mo(A,z?d:l),uy(j)||hy(A,r,b,E)})};return Ln(t,{onBeforeEnter(z){Vi(g,[z]),Mo(z,i),Mo(z,a)},onBeforeAppear(z){Vi(k,[z]),Mo(z,s),Mo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Mo(z,f),O_(),Mo(z,h),fy(()=>{!z._isLeaving||(ai(z,f),Mo(z,v),uy(x)||hy(z,r,m,L))}),Vi(x,[z,L])},onEnterCancelled(z){$(z,!1),Vi(C,[z])},onAppearCancelled(z){$(z,!0),Vi(T,[z])},onLeaveCancelled(z){R(z),Vi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return Mz(e)}function Mo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function fy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function hy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=T_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ni}Delay`),i=r(`${ni}Duration`),a=vy(o,i),l=r(`${Al}Delay`),s=r(`${Al}Duration`),c=vy(l,s);let d=null,f=0,h=0;t===ni?a>0&&(d=ni,f=a,h=i.length):t===Al?c>0&&(d=Al,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ni:Al:null,h=d?d===ni?i.length:s.length:0);const v=d===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function vy(e,t){for(;e.lengthpy(n)+py(e[r])))}function py(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function O_(){return document.body.offsetHeight}const z_=new WeakMap,M_=new WeakMap,I_={name:"TransitionGroup",props:Ln({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=l_();let o,i;return Qm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);O_(),l.forEach(s=>{const c=s.el,d=c.style;Mo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,ai(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=$_(a);let s=a.tag||$t;o=i,i=t.default?Xm(t.default()):[];for(let c=0;cdelete e.mode;I_.props;const Gf=I_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){M_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=z_.get(e),n=M_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=T_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Bl(e,!0),r.enter(e)):r.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e._vod:"none"}const V3=Ln({patchProp:I3},y3);let gy;function U3(){return gy||(gy=Z5(V3))}const F_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function ec(e){return e+.5|0}const ui=(e,t,n)=>Math.max(Math.min(e,n),t);function Jl(e){return ui(ec(e*2.55),0,255)}function mi(e){return ui(ec(e*255),0,255)}function Ao(e){return ui(ec(e/2.55)/100,0,1)}function my(e){return ui(ec(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},np=[..."0123456789ABCDEF"],K3=e=>np[e&15],q3=e=>np[(e&240)>>4]+np[e&15],$c=e=>(e&240)>>4===(e&15),Y3=e=>$c(e.r)&&$c(e.g)&&$c(e.b)&&$c(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=D_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function ib(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(mi)}function ab(e,t,n){return ib(D_,e,t,n)}function nM(e,t,n){return ib(eM,e,t,n)}function rM(e,t,n){return ib(J3,e,t,n)}function A_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Jl(+t[5]):mi(+t[5]));const o=A_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ab(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=ob(e);n[0]=A_(n[0]+t),n=ab(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=ob(e),n=t[0],r=my(t[1]),o=my(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Ao(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const by={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(yy),n=Object.keys(by);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Tc;function sM(e){Tc||(Tc=lM(),Tc.transparent=[0,0,0,0]);const t=Tc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Jl(a):ui(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Jl(r):ui(r,0,255)),o=255&(t[4]?Jl(o):ui(o,0,255)),i=255&(t[6]?Jl(i):ui(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ao(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=qa(Ao(e.r)),o=qa(Ao(e.g)),i=qa(Ao(e.b));return{r:mi(jh(r+n*(qa(Ao(t.r))-r))),g:mi(jh(o+n*(qa(Ao(t.g))-o))),b:mi(jh(i+n*(qa(Ao(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Oc(e,t,n){if(e){let r=ob(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ab(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function B_(e,t){return e&&Object.assign(t||{},e)}function xy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=mi(e[3]))):(t=B_(e,{r:0,g:0,b:0,a:1}),t.a=mi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class Ms{constructor(t){if(t instanceof Ms)return t;const n=typeof t;let r;n==="object"?r=xy(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=B_(this._rgb);return t&&(t.a=Ao(t.a)),t}set rgb(t){this._rgb=xy(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new Ms(this.rgb)}alpha(t){return this._rgb.a=mi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ec(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Oc(this._rgb,2,t),this}darken(t){return Oc(this._rgb,2,-t),this}saturate(t){return Oc(this._rgb,1,t),this}desaturate(t){return Oc(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function Oo(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return En(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function yl(e,t){return(wy[t]||(wy[t]=yM(t)))(e)}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Dr=e=>typeof e<"u",Si=e=>typeof e=="function",Cy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,mo=2*Kn,Su=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,Ui=Kn/4,Sy=Kn*2/3,fi=Math.log10,bi=Math.sign;function yd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function _u(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function cb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const rp=(e,t,n,r)=>cb(e,n,r?o=>{const i=e[o][t];return ie[o][t]cb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+lb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ry(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(N_.forEach(i=>{delete e[i]}),delete e._chartjs)}function H_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function V_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,j_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const db=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,zc=e=>e===0||e===1,Py=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*mo/n)),$y=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*mo/n)+1,fs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zc(e)?e:Py(e,.075,.3),easeOutElastic:e=>zc(e)?e:$y(e,.075,.3),easeInOutElastic(e){return zc(e)?e:e<.5?.5*Py(e*2,.1125,.45):.5+.5*$y(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-fs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?fs.easeInBounce(e*2)*.5:fs.easeOutBounce(e*2-1)*.5+.5};function U_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ty(e){return U_(e)?e:new Ms(e)}function Vh(e){return U_(e)?e:new Ms(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Oy=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Oy.get(n);return r||(r=new Intl.NumberFormat(e,t),Oy.set(n,r)),r}function ub(e,t,n){return BM(t,n).format(e)}const W_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=fi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),ub(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(fi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?W_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Zf={formatters:W_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Sa=Object.create(null),op=Object.create(null);function hs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Vh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Vh(o.borderColor),this.hoverColor=(r,o)=>Vh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Uh(this,t,n)}get(t){return hs(this,t)}describe(t,n){return Uh(op,t,n)}override(t,n){return Uh(Sa,t,n)}route(t,n,r,o){const i=hs(this,t),a=hs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ku(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function q_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function Y_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function X_(e){return Y_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ga(e){return Y_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=X_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Mc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Fa(e,t){return Object.assign(Object.create(e),t)}function vb(e,t=[""],n=e,r,o=()=>e[0]){Dr(r)||(r=J_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>vb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Z_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Fy(a).includes(l)},ownKeys(a){return Fy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function xl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:G_(e,r),setContext:i=>xl(e,i,n,r),override:i=>xl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return Z_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function G_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Si(n)?n:()=>n,isIndexable:Si(r)?r:()=>r}}const ZM=(e,t)=>e?e+lb(t):t,pb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Z_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return Si(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),pb(t,l)&&(l=xl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),pb(e,t)&&(t=gb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Dr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=gb(c,o,e,d);t.push(xl(f,i,a&&a[e],l))}}return t}function Q_(e,t,n){return Si(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?yl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Q_(a._fallback,n,o);if(Dr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Dr(r)&&n!==r)return null}return!1}function gb(e,t,n,r){const o=t._rootScopes,i=Q_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Iy(l,a,n,i||n,r);return s===null||Dr(i)&&i!==n&&(s=Iy(l,a,i,s,r),s===null)?!1:vb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function Iy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=J_(ZM(i,e),n),Dr(o))return pb(e,o)?gb(n,r,e,o):o}function J_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Dr(r))return r}}function Fy(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function ek(){return typeof window<"u"&&typeof document<"u"}function mb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Qf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Qf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function ma(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function ta(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Qf(n),i=o.boxSizing==="border-box",a=ma(o,"padding"),l=ma(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=mb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Qf(i),s=ma(l,"border","width"),c=ma(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Ru(l.maxWidth,i,"clientWidth"),o=Ru(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Su,maxHeight:o||Su}}const Ic=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Qf(e),i=ma(o,"margin"),a=Ru(o.maxWidth,e,"clientWidth")||Su,l=Ru(o.maxHeight,e,"clientHeight")||Su,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ma(o,"border","width"),v=ma(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Ic(Math.min(c,a,s.maxWidth)),d=Ic(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Ic(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Ic(Math.floor(d*r))),{width:c,height:d}}function Dy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Ay(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fl(e,t,n){return e?h4(t,n):v4()}function tk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=j_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Io=new p4;const By="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Ty(e||By),o=r.valid&&Ty(t||By);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Mc([t.to,o,i,t.from]);const a=Mc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=fs[t.easing]||fs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Mc([t.to,n,o,t.from]),this._from=Mc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Io.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function jy(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Fa(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Fa(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function El(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Kh=e=>e==="reset"||e==="none",Vy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ok(n,!0),values:null};class vs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ny(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&El(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Wh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Wh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Wh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ry(this._data,this),t._stacked&&El(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){Ry(r,this);const o=this._cachedMeta;El(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ny(n.vScale,n),n.stack!==r.stack&&(o=!0,El(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&jy(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Vy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new rk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Kh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Kh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Kh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Dr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ik(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Uy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:tc,modes:{index(e,t,n,r){const o=ta(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=ta(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Yy(e,t){return e.filter(n=>ak.indexOf(n.pos)===-1&&n.box.axis===t)}function Nl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Nl(Ll(t,"left"),!0),o=Nl(Ll(t,"right")),i=Nl(Ll(t,"top"),!0),a=Nl(Ll(t,"bottom")),l=Yy(t,"x"),s=Yy(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Ll(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function Xy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function lk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&lk(a,i.getPadding());const l=Math.max(0,t.outerWidth-Xy(a,e,"left","right")),s=Math.max(0,t.outerHeight-Xy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function es(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);lk(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);es(l.fullSize,v,f,p),es(s,v,f,p),es(c,v,f,p)&&es(s,v,f,p),G4(v),Gy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Gy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class sk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends sk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[wd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Zy(o)){const i=Ay(e,"width");i!==void 0&&(e.width=i)}if(Zy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Ay(e,"height");i!==void 0&&(e.height=i)}return e}const ck=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,ck)}function nI(e,t,n){e.canvas.removeEventListener(t,n,ck)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=ta(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Pu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.addedNodes,r),a=a&&!Pu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.removedNodes,r),a=a&&!Pu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ds=new Map;let Qy=0;function dk(){const e=window.devicePixelRatio;e!==Qy&&(Qy=e,Ds.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Ds.size||window.addEventListener("resize",dk),Ds.set(e,t)}function lI(e){Ds.delete(e),Ds.size||window.removeEventListener("resize",dk)}function sI(e,t,n){const r=e.canvas,o=r&&mb(r);if(!o)return;const i=V_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Gh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=V_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends sk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wd])return!1;const r=n[wd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[wd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Gh,detach:Gh,resize:Gh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=mb(t);return!!(n&&n.isConnected)}}function uI(e){return!ek()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class _i{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _u(this.x)&&_u(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(_i,"defaults",{}),Nt(_i,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Dc(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Jy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function ex(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Qr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Hl(t.grid)-n.padding-tx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=sb(Math.min(Math.asin(Qr((d.highest.height+6)/l,-1,1)),Math.asin(Qr(s/c,-1,1))-Math.asin(Qr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=tx(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Hl(i)+s):(t.height=this.maxHeight,t.width=Hl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=hi(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Wi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Hl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Wi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Ac(vs,"datasets",!0),this.elements=new Ac(_i,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Da,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=lb(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(so.plugins.items);for(let i=0;i1&&$u(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Sa[e.type]||{scales:{}},r=t.scales||{},o=ip(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=$u(a,l),c=DI(s,o),d=n.scales||{};i[a]=us(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||ip(l,t),d=(Sa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),us(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];us(l,[Cn.scales[l.type],Cn.scale])}),i}function uk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function fk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=fk(e.data),uk(e),e}const nx=new Map,hk=new Set;function Bc(e,t){let n=nx.get(e);return n||(n=t(),nx.set(e,n),hk.add(n)),n}const jl=(e,t,n)=>{const r=yl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),uk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>jl(s,t,f))),d.forEach(f=>jl(s,o,f)),d.forEach(f=>jl(s,Sa[i]||{},f)),d.forEach(f=>jl(s,Cn,f)),d.forEach(f=>jl(s,op,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Sa[n]||{},Cn.datasets[n]||{},{type:n},Cn,op]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=rx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=Si(r)?r():r;const c=this.createResolver(t,r,l);s=xl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=rx(this._resolverCache,t,r);return Wt(n)?xl(i,n,void 0,o):i}}function rx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:vb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Si(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=G_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(Si(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function ox(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function ix(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function vk(e){return ek()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cd={},lx=e=>{const t=vk(e);return Object.values(Cd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class fo{static register(...t){so.add(...t),sx()}static unregister(...t){so.remove(...t),sx()}constructor(t,n){const r=this.config=new LI(n),o=vk(t),i=lx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Cd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Io.listen(this,"complete",ax),Io.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return so}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zy(this.canvas,this.ctx),this}stop(){return Io.stop(this),this}resize(t,n){Io.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Dy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=$u(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=$u(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||ox(l.position,c)!==ox(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=so.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{zr.configure(this,a,a.options),zr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ix("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{zr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Cy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&fb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&hb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return q_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Fa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Dr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Io.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!wu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!wu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(fo,"defaults",Cn),Nt(fo,"instances",Cd),Nt(fo,"overrides",Sa),Nt(fo,"registry",so),Nt(fo,"version",jI),Nt(fo,"getChart",lx);function sx(){return en(fo.instances,e=>e._plugins.invalidate())}function pk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function vi(e,t,n,r){return e?0:Qr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=X_(r);return{t:vi(o.top,i.top,0,n),r:vi(o.right,i.right,0,t),b:vi(o.bottom,i.bottom,0,n),l:vi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=ga(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:vi(!s||l.top||l.left,i.topLeft,0,a),topRight:vi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:vi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:vi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=pk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Zh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&pk(e,r);return l&&(o||sl(t,l.left,l.right))&&(i||sl(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Sd extends _i{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Fs:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Qh(a,n,i)),t.clip(),l(t,Qh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Qh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Zh(this,t,n,r)}inXRange(t,n){return Zh(this,t,null,n)}inYRange(t,n){return Zh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(Sd,"id","bar"),Nt(Sd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(Sd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends _i{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Mn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=fl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fb(t,this),this._draw(),hb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=fl(t.rtl,this.left,this.width),c=Mn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=cx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;K_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=ga(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Fs(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){_a(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},tk(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=gk(k,L)}else v.y+=w}),nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),o=Jn(n.padding);if(!n.display)return;const i=fl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(db(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,_a(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(sl(t,this.left,this.right)&&sl(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=gk(t,n)),r}function gk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});zr.configure(e,r,n),zr.addBox(e,r)},stop(e){zr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;zr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class mk extends _i{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);_a(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:db(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new mk({ctx:e.ctx,options:t,chart:e});zr.configure(e,n,t),zr.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:mk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;zr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;zr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ts={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ux(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Mn(t.bodyFont),c=Mn(t.titleFont),d=Mn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function fx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function hx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=ga(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Qr(p,0,r.width-t.width),y:Qr(b,0,r.height-t.height)}}function Ec(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return lo([],Fo(e))}function hF(e,t,n){return Fa(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function px(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bk={beforeTitle:Oo,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?bk[t].call(n,r):o}class ap extends _i{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new rk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=lo(l,Fo(o)),l=lo(l,Fo(i)),l=lo(l,Fo(a)),l}getBeforeBody(t,n){return vx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=px(r,i);lo(a.before,Fo(or(l,"beforeLabel",this,i))),lo(a.lines,or(l,"label",this,i)),lo(a.after,Fo(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return vx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=lo(l,Fo(o)),l=lo(l,Fo(i)),l=lo(l,Fo(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=px(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=ts[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=ux(this,r),c=Object.assign({},l,s),d=fx(this.chart,r,c),f=hx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=ga(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=fl(r.rtl,this.x,this.width);for(t.x=Ec(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Fs(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Fs(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Mn(r.bodyFont);let h=f.lineHeight,v=0;const p=fl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ec(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=ts[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ux(this,t),s=Object.assign({},a,this._size),c=fx(n,t,s),d=hx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),tk(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!wu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!wu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=ts[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(ap,"positioners",ts);var vF={id:"tooltip",_element:ap,positioners:ts,afterInit(e,t,n){n&&(e.tooltip=new ap({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Qr(Math.round(e),0,t);function gx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(lp,"id","category"),Nt(lp,"defaults",{ticks:{callback:gx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=_y((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=_y($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,yd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(ky(w),ky(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=bi(o),c=bi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&L_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return ub(t,this.chart.options.locale,this.options.ticks.format)}}class sp extends Tu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=hi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(sp,"id","linear"),Nt(sp,"defaults",{ticks:{callback:Zf.formatters.numeric}});const As=e=>Math.floor(fi(e)),qi=(e,t)=>Math.pow(10,As(e)+t);function bx(e){return e/Math.pow(10,As(e))===1}function yx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=As(n);for(;yx(e,t,r)>10;)r++;for(;yx(e,t,r)<10;)r--;return Math.min(r,As(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=As(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:bx(v),significand:f}),r}class xx extends Da{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Tu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return En(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?Math.max(0,t):null,this.max=En(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!En(this._userMin)&&(this.min=t===qi(this.min,0)?qi(this.min,-1):qi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(qi(r,-1)),a(qi(o,1)))),r<=0&&i(qi(o,-1)),o<=0&&a(qi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&L_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ub(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=fi(t),this._valueRange=fi(this.max)-fi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(fi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(xx,"id","logarithmic"),Nt(xx,"defaults",{ticks:{callback:Zf.formatters.logarithmic,major:{enabled:!0}}});function cp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=cp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Mn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=ga(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Fs(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}_a(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function yk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,mo);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=mo/(this._pointLabels.length||1),r=this.options.startAngle||0;return co(t*n+hi(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Mn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}_a(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Lc,"id","radialLinear"),Nt(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Lc,"descriptors",{angleLines:{_fallback:"grid"}});const Jf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Jf);function zF(e,t){return e-t}function Cx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),En(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(_u(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Sx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Jf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function kx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Qr(n,0,a),r=Qr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Sx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=_u(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=rp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=rp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Rx extends Ou{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Nc(n,this.min),this._tableRange=Nc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...xk},AF=R_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Ya(e){return va(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return va(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function wk(e,t){e.labels=t}function Ck(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return wk(n,e.labels),Ck(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=GS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new fo(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=Ya(d),g=Ya(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=Ya(f.labels),g=Ya(v.labels),y=Ya(f.datasets),C=Ya(v.datasets);m!==g&&(wk(p.config.data,m),b=!0),y&&y!==C&&(Ck(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return fo.register(t),J({props:xk,setup(n,r){let{expose:o}=r;const i=GS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",xd),Px=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};fo.register(aF,vF,oF,Sd,lp,sp);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(Px.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=Px.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Fi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="ADJ",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),KF=Zr("h1",null,"entityscrape",-1),qF=Zr("p",null," This a social experiment which shows the mean distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS). ",-1),YF=Zr("p",null,[Or(" The Go package "),Zr("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Or(" was used for creating this experiment. You can create new ones with updating the "),Zr("code",null,"source/entities.txt"),Or(" file and run the CLI with the provided Visual Studio Code debug configuration. The experiments source code can be found at "),Zr("a",{target:"_blank",href:"https://github.com/ndabAP/entityscrape"},"Github"),Or(". ")],-1),XF={style:{height:"475px"}},GF=Zr("small",null,[Zr("b",null,"Data source"),Or(": "),Zr("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function ZF(e,t,n,r,o,i){const a=Rc("n-select"),l=Rc("n-form-item"),s=Rc("Bar"),c=Rc("n-space");return w_(),C_(c,{vertical:""},{default:md(()=>[KF,qF,YF,zn(l,{size:"small",label:"Entity"},{default:md(()=>[zn(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),zn(l,{size:"small",label:"Part of speech"},{default:md(()=>[zn(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),Zr("div",XF,[zn(s,{data:e.chartData,options:{indexAxis:"y",maintainAspectRatio:!1,responsive:!0}},null,8,["data"])]),GF]),_:1})}const QF=VF(WF,[["render",ZF]]);let zu=[];const Sk=new WeakMap;function JF(){zu.forEach(e=>e(...Sk.get(e))),zu=[]}function ka(e,...t){Sk.set(e,t),!zu.includes(e)&&zu.push(e)===1&&requestAnimationFrame(JF)}function eD(e){return e.nodeType===9?null:e.parentNode}function _k(e){if(e===null)return null;const t=eD(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _k(t)}function yb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function tD(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Vl(e,t){var n;if(e==null)return;const r=tD(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function yi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function nD(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $x={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function kk(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function _d(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function ci(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function dp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function up(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function fp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const So="^\\s*",_o="\\s*$",ki="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ca="([0-9A-Fa-f])",da="([0-9A-Fa-f]{2})",rD=new RegExp(`${So}hsl\\s*\\(${gr},${ki},${ki}\\)${_o}`),oD=new RegExp(`${So}hsv\\s*\\(${gr},${ki},${ki}\\)${_o}`),iD=new RegExp(`${So}hsla\\s*\\(${gr},${ki},${ki},${gr}\\)${_o}`),aD=new RegExp(`${So}hsva\\s*\\(${gr},${ki},${ki},${gr}\\)${_o}`),lD=new RegExp(`${So}rgb\\s*\\(${gr},${gr},${gr}\\)${_o}`),sD=new RegExp(`${So}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${_o}`),xb=new RegExp(`${So}#${ca}${ca}${ca}${_o}`),wb=new RegExp(`${So}#${da}${da}${da}${_o}`),Cb=new RegExp(`${So}#${ca}${ca}${ca}${ca}${_o}`),Sb=new RegExp(`${So}#${da}${da}${da}${da}${_o}`);function ir(e){return parseInt(e,16)}function hl(e){try{let t;if(t=iD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=rD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ba(e){try{let t;if(t=aD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=oD.exec(e))return[Co(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Bn(e){try{let t;if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=lD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=sD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Eo(t[13])];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=Sb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Eo(ir(t[4])/255)];if(t=Cb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Eo(ir(t[4]+t[4])/255)];if(e in $x)return Bn($x[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function cD(e){return e>1?1:e<0?0:e}function dD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function hp(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${cD(r)})`}function Jh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=Bn(e)),Array.isArray(t)||(t=Bn(t));const n=e[3],r=t[3],o=Eo(n+r-n*r);return hp(Jh(e[0],n,t[0],r,o),Jh(e[1],n,t[1],r,o),Jh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e);return t.alpha?hp(n,r,o,t.alpha):hp(n,r,o,i)}function Hc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e),{lightness:a=1,alpha:l=1}=t;return bo([n*a,r*a,o*a,i*l])}function Eo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Co(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vp(e){const[t,n,r]=Array.isArray(e)?e:Bn(e);return dD(t,n,r)}function bo(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Eo(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function pp(e){return`hsv(${Co(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ya(e){const[t,n,r]=e;return 3 in e?`hsva(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsva(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function gp(e){return`hsl(${Co(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function xi(e){const[t,n,r]=e;return 3 in e?`hsla(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsla(${Co(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function wi(e){if(typeof e=="string"){let r;if(r=wb.exec(e))return`${r[0]}FF`;if(r=Sb.exec(e))return r[0];if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Cb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function ps(e){if(typeof e=="string"){let t;if(t=wb.exec(e))return t[0];if(t=Sb.exec(e))return t[0].slice(0,7);if(t=xb.exec(e)||Cb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function Rk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Aa(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Fr(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Or(String(r)));return}if(Array.isArray(r)){Fr(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Fr(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Nn(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Or(e):typeof e=="number"?Or(String(e)):null,Ox=new Set;function fD(e,t){const n=`[naive/${e}]: ${t}`;Ox.has(n)||(Ox.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Dn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function mp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function rc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Mu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Fr(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Pk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function $k(e){return t=>{t?e.value=t.$el:e.value=null}}function Tl(e){return e.some(t=>Os(t)?!(t.type===xr||t.type===$t&&!Tl(t.children)):!0)?e:null}function vt(e,t){return e&&Tl(e())||t()}function Ra(e,t,n){return e&&Tl(e(t))||n(t)}function Ct(e,t){const n=e&&Tl(e());return t(n||null)}function hD(e,t,n){const r=e&&Tl(e(t));return n(r||null)}function xa(e){return!(e&&Tl(e()))}function gs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function vD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const bp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),pD=/^(\d|\.)+$/,zx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(pD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=zx.exec(e);return o?e.replace(zx,String((Number(o[0])+n)*t)):e}return e}function Pa(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function gD(e){let t=0;for(let n=0;n{let o=gD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function yD(e,t){const n=[];return t.split(Tk).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function xD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=bD(t,n):t=yD(t,n))}),t.join(", ").replace(mD," ")}function Mx(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function eh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function wD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jc(e){return e?/^\s*@(s|m)/.test(e):!1}const CD=/[A-Z]/g;function Ok(e){return e.replace(CD,t=>"-"+t.toLowerCase())}function SD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Ok(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function _D(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ix(e,t,n,r){if(!t)return"";const o=_D(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Ok(l),s!=null&&a.push(` ${l}${SD(s)}`)}),e&&a.push("}"),a.join(` -`)}function yp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))yp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?yp(o,t,n):o&&n(o)}else r&&n(r)})}function zk(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")jc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});jc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")jc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});jc(d)?l=d:t.push(d)}const s=xD(t),c=Ix(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&yp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Ix(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else zk(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Mk(e,t,n,r=!1){const o=[];return zk(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function Bs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function kD(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Mx),t.els=[];else{const o=eh(n);o&&r.includes(o)&&(Mx(o),t.els=r.filter(i=>i!==o))}}function Fx(e,t){e.push(t)}function RD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,Mk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Bs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=eh(n);if(d!==null&&!a)return d;const f=d!=null?d:wD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Fx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Fx(t.els,f),f}function PD(e){return Mk(this,this.instance,e)}function $D(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return RD(this.instance,this,t,r,o,i,a,l,n)}function TD(e={}){const{id:t}=e;kD(this.instance,this,t)}const Vc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:PD,mount:$D,unmount:TD}},OD=function(e,t,n,r){return Array.isArray(t)?Vc(e,{$:null},null,t):Array.isArray(n)?Vc(e,t,null,n):Array.isArray(r)?Vc(e,t,n,r):Vc(e,t,n,null)};function Ik(e={}){let t=null;const n={c:(...r)=>OD(n,...r),use:(r,...o)=>r.install(n,...o),find:eh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function zD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return eh(e)!==null}function MD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const ID="n",Es=`.${ID}-`,FD="__",DD="--",Fk=Ik(),Dk=MD({blockPrefix:Es,elementPrefix:FD,modifierPrefix:DD});Fk.use(Dk);const{c:O,find:eae}=Fk,{cB:S,cE:M,cM:F,cNotM:pt}=Dk;function ko(e){return O(({props:{bPrefix:t}})=>`${t||Es}modal, ${t||Es}drawer`,[e])}function qo(e){return O(({props:{bPrefix:t}})=>`${t||Es}popover`,[e])}function Ak(e){return O(({props:{bPrefix:t}})=>`&${t||Es}modal`,e)}const AD=(...e)=>O(">",[S(...e)]);let ev;function BD(){return ev===void 0&&(ev=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ev}const rr=typeof document<"u"&&typeof window<"u",Bk=new WeakSet;function $a(e){Bk.add(e)}function Ek(e){return!Bk.has(e)}function ED(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Ko())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function LD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function ND(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function HD(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Lk(e){const t=D(!!e.value);if(t.value)return wo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return wo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function _b(){return Ko()!==null}const th=typeof window<"u";let vl,ms;const jD=()=>{var e,t;vl=th?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,ms=!1,vl!==void 0?vl.then(()=>{ms=!0}):ms=!0};jD();function nh(e){if(ms)return;let t=!1;Mt(()=>{ms||vl==null||vl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function kd(e){return e.composedPath()[0]}const VD={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function UD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(kd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(kd(a))},i=a=>{!r||t.contains(kd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Nk(e,t,n){const r=VD[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=UD(e,t,n)),i}function WD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function KD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function qD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=kd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,WD(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(KD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=qD(),ns=D(null);function Dx(e){if(e.clientX>0||e.clientY>0)ns.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ns.value={x:n+o/2,y:r+i/2}:ns.value={x:0,y:0}}else ns.value=null}}let Uc=0,Ax=!0;function Hk(){if(!th)return wo(D(null));Uc===0&&St("click",document,Dx,!0);const e=()=>{Uc+=1};return Ax&&(Ax=_b())?(Wo(e),Dt(()=>{Uc-=1,Uc===0&&xt("click",document,Dx,!0)})):e(),wo(ns)}const YD=D(void 0);let Wc=0;function Bx(){YD.value=Date.now()}let Ex=!0;function jk(e){if(!th)return wo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Wc===0&&St("click",window,Bx,!0);const i=()=>{Wc+=1,St("click",window,o,!0)};return Ex&&(Ex=_b())?(Wo(i),Dt(()=>{Wc-=1,Wc===0&&xt("click",window,Bx,!0),xt("click",window,o,!0),r()})):i(),wo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function An(){const e=D(!1);return Mt(()=>{e.value=!0}),wo(e)}function Ri(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const XD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function GD(){return XD}const ZD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function QD(e){return`(min-width: ${e}px)`}const Ul={};function JD(e=ZD){if(!th)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Ul[i]===void 0?(a=window.matchMedia(QD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Ul[i]={mql:a,cbs:l}):(a=Ul[i].mql,l=Ul[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Ul[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function kb(e={},t){const n=Fi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return _b()?(Wo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),wo(n)}const Rb="n-internal-select-menu",Vk="n-internal-select-menu-body",oc="n-modal-body",Uk="n-modal",ic="n-drawer-body",Pb="n-drawer",Ol="n-popover-body",Wk="__disabled__";function Lt(e){const t=Le(oc,null),n=Le(ic,null),r=Le(Ol,null),o=Le(Vk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Wk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Wk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Lx=!1;function $b(){if(!!rr&&!!window.CSS&&!Lx&&(Lx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function xp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Or(String(r)));return}if(Array.isArray(r)){wp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&wp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Nx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ri=null;function Kk(){if(ri===null&&(ri=document.getElementById("v-binder-view-measurer"),ri===null)){ri=document.createElement("div"),ri.id="v-binder-view-measurer";const{style:e}=ri;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ri)}return ri.getBoundingClientRect()}function eA(e,t){const n=Kk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function tv(e){const t=e.getBoundingClientRect(),n=Kk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function tA(e){return e.nodeType===9?null:e.parentNode}function qk(e){if(e===null)return null;const t=tA(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return qk(t)}const nA=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Ko())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=qk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{ka(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return xp("binder",this.$slots)}}),Hr=nA,jr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Nx("follower",this.$slots),[[t]]):Nx("follower",this.$slots)}}),Xa="@@mmoContext",rA={mounted(e,{value:t}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Xa];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Xa].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Xa];t&&xt("mousemoveoutside",e,t),e[Xa].handler=void 0}},oA=rA,Ga="@@coContext",iA={mounted(e,{value:t,modifiers:n}){e[Ga]={handler:void 0},typeof t=="function"&&(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Ga];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Ga];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Ga].handler=void 0}},fr=iA;function aA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class lA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&aA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const nv=new lA,Za="@@ziContext",sA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Za]={enabled:!!o,initialized:!1},o&&(nv.ensureZIndex(e,r),e[Za].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Za].enabled;o&&!i&&(nv.ensureZIndex(e,r),e[Za].initialized=!0),e[Za].enabled=!!o},unmounted(e,t){if(!e[Za].initialized)return;const{value:n={}}=t,{zIndex:r}=n;nv.unregister(e,r)}},ac=sA,Yk=Symbol("@css-render/vue3-ssr");function cA(e,t){return``}function dA(e,t){const n=Le(Yk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(cA(e,t)))}const uA=typeof document<"u";function Di(){if(uA)return;const e=Le(Yk,null);if(e!==null)return{adapter:dA,context:e}}function Hx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:go}=Ik(),rh="vueuc-style";function jx(e){return e&-e}class fA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=jx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xp("lazy-teleport",this.$slots):u(Js,{disabled:this.disabled,to:this.mergedTo},xp("lazy-teleport",this.$slots)):null}}),Kc={top:"bottom",bottom:"top",left:"right",right:"left"},Ux={start:"end",center:"center",end:"start"},rv={top:"height",bottom:"height",left:"width",right:"width"},hA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},vA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},pA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Wx={top:!0,bottom:!1,left:!0,right:!1},Kx={top:"end",bottom:"start",left:"end",right:"start"};function gA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Wx[p]?y:-y:m=Wx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=pA[e],p=Kc[v],b=rv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=Ux[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Kc[v],b=rv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Kx[v],c=d(b,v,f)):(s=Kx[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Di();yA.mount({id:"vueuc/binder",head:!0,anchorMetaName:rh,ssr:l}),Dt(()=>{a()}),nh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?eA(p,b):tv(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=tv(h),$=tv(o.value),{left:R,top:I,placement:z}=gA(x,g,T,w,k,m),A=mA(z,m),{left:L,top:j,transform:E}=bA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=An(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(lc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var wa=[],xA=function(){return wa.some(function(e){return e.activeTargets.length>0})},wA=function(){return wa.some(function(e){return e.skippedTargets.length>0})},qx="ResizeObserver loop completed with undelivered notifications.",CA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:qx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=qx),window.dispatchEvent(e)},Ls;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ls||(Ls={}));var Ca=function(e){return Object.freeze(e)},SA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ca(this)}return e}(),Xk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ca(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Tb=function(e){return e instanceof SVGElement&&"getBBox"in e},Gk=function(e){if(Tb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Yx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},_A=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bs=typeof window<"u"?window:{},qc=new WeakMap,Xx=/auto|scroll/,kA=/^tb|vertical/,RA=/msie|trident/i.test(bs.navigator&&bs.navigator.userAgent),io=function(e){return parseFloat(e||"0")},pl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new SA((n?t:e)||0,(n?e:t)||0)},Gx=Ca({devicePixelContentBoxSize:pl(),borderBoxSize:pl(),contentBoxSize:pl(),contentRect:new Xk(0,0,0,0)}),Zk=function(e,t){if(t===void 0&&(t=!1),qc.has(e)&&!t)return qc.get(e);if(Gk(e))return qc.set(e,Gx),Gx;var n=getComputedStyle(e),r=Tb(e)&&e.ownerSVGElement&&e.getBBox(),o=!RA&&n.boxSizing==="border-box",i=kA.test(n.writingMode||""),a=!r&&Xx.test(n.overflowY||""),l=!r&&Xx.test(n.overflowX||""),s=r?0:io(n.paddingTop),c=r?0:io(n.paddingRight),d=r?0:io(n.paddingBottom),f=r?0:io(n.paddingLeft),h=r?0:io(n.borderTopWidth),v=r?0:io(n.borderRightWidth),p=r?0:io(n.borderBottomWidth),b=r?0:io(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:io(n.width)-k-w,$=r?r.height:io(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=Ca({devicePixelContentBoxSize:pl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:pl(R,I,i),contentBoxSize:pl(T,$,i),contentRect:new Xk(f,s,T,$)});return qc.set(e,z),z},Qk=function(e,t,n){var r=Zk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ls.DEVICE_PIXEL_CONTENT_BOX:return a;case Ls.BORDER_BOX:return o;default:return i}},PA=function(){function e(t){var n=Zk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ca([n.borderBoxSize]),this.contentBoxSize=Ca([n.contentBoxSize]),this.devicePixelContentBoxSize=Ca([n.devicePixelContentBoxSize])}return e}(),Jk=function(e){if(Gk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},$A=function(){var e=1/0,t=[];wa.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new PA(c.target),f=Jk(c.target);l.push(d),c.lastReportedSize=Qk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},TA=function(){var e=0;for(Zx(e);xA();)e=$A(),Zx(e);return wA()&&CA(),e>0},ov,eR=[],OA=function(){return eR.splice(0).forEach(function(e){return e()})},zA=function(e){if(!ov){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return OA()}).observe(n,r),ov=function(){n.textContent="".concat(t?t--:t++)}}eR.push(e),ov()},MA=function(e){zA(function(){requestAnimationFrame(e)})},Rd=0,IA=function(){return!!Rd},FA=250,DA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jx=function(e){return e===void 0&&(e=0),Date.now()+e},iv=!1,AA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=FA),!iv){iv=!0;var r=Jx(t);MA(function(){var o=!1;try{o=TA()}finally{if(iv=!1,t=r-Jx(),!IA())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,DA)};document.body?n():bs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return bs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return bs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Cp=new AA,ew=function(e){!Rd&&e>0&&Cp.start(),Rd+=e,!Rd&&Cp.stop()},BA=function(e){return!Tb(e)&&!_A(e)&&getComputedStyle(e).display==="inline"},EA=function(){function e(t,n){this.target=t,this.observedBox=n||Ls.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qk(this.target,this.observedBox,!0);return BA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),LA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yc=new WeakMap,tw=function(e,t){for(var n=0;n=0&&(i&&wa.splice(wa.indexOf(r),1),r.observationTargets.splice(o,1),ew(-1))},e.disconnect=function(t){var n=this,r=Yc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),NA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.unobserve(this,t)},e.prototype.disconnect=function(){Xc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class HA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||NA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Iu=new HA,Ar=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ko().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Hx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Hx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Iu.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Iu.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jm(this.$slots,"default")}});let Gc;function jA(){return Gc===void 0&&("matchMedia"in window?Gc=window.matchMedia("(pointer:coarse)").matches:Gc=!1),Gc}let av;function nw(){return av===void 0&&(av="chrome"in window?window.devicePixelRatio:1),av}const VA=go(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[go("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[go("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),No=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();VA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:rh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Gm(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Zs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new fA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!jA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/nw(),A.scrollLeft+=I.deltaX/nw(),$(),w=!0,ka(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Ar,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Ar,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),UA=go(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[go("&::-webkit-scrollbar",{width:0,height:0})]),WA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Yi,""))}const i=Di();return KA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Jm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function tR(e){return e instanceof HTMLElement}function nR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(tR(n)&&(oR(n)||rR(n)))return!0}return!1}function oR(e){if(!qA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function qA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Wl=[];const Ob=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Wl[Wl.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Wl.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Wl=Wl.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?nR(C):rR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function oh(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Iu.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Iu.unregisterHandler(n)}))}let Qa=0,ow="",iw="",aw="",lw="";const Sp=D("0px");function iR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=ow,t.style.overflow=iw,t.style.overflowX=aw,t.style.overflowY=lw,Sp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Qa){const a=window.innerWidth-t.offsetWidth;a>0&&(ow=t.style.marginRight,t.style.marginRight=`${a}px`,Sp.value=`${a}px`),iw=t.style.overflow,aw=t.style.overflowX,lw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Qa++}else Qa--,Qa||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Qa--,Qa||o(),r=!1)})}const zb=D(!1),sw=()=>{zb.value=!0},cw=()=>{zb.value=!1};let Kl=0;const aR=()=>(rr&&(Wo(()=>{Kl||(window.addEventListener("compositionstart",sw),window.addEventListener("compositionend",cw)),Kl++}),Dt(()=>{Kl<=1?(window.removeEventListener("compositionstart",sw),window.removeEventListener("compositionend",cw),Kl=0):Kl--})),zb);function Mb(e){const t={isDeactivated:!1};let n=!1;return Gm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Zs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function dw(e){return e.nodeName==="#document"}const Fu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Fu,null);nt(Fu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var YA=typeof global=="object"&&global&&global.Object===Object&&global;const lR=YA;var XA=typeof self=="object"&&self&&self.Object===Object&&self,GA=lR||XA||Function("return this")();const Vr=GA;var ZA=Vr.Symbol;const Pi=ZA;var sR=Object.prototype,QA=sR.hasOwnProperty,JA=sR.toString,ql=Pi?Pi.toStringTag:void 0;function e6(e){var t=QA.call(e,ql),n=e[ql];try{e[ql]=void 0;var r=!0}catch{}var o=JA.call(e);return r&&(t?e[ql]=n:delete e[ql]),o}var t6=Object.prototype,n6=t6.toString;function r6(e){return n6.call(e)}var o6="[object Null]",i6="[object Undefined]",uw=Pi?Pi.toStringTag:void 0;function Ba(e){return e==null?e===void 0?i6:o6:uw&&uw in Object(e)?e6(e):r6(e)}function $i(e){return e!=null&&typeof e=="object"}var a6="[object Symbol]";function ih(e){return typeof e=="symbol"||$i(e)&&Ba(e)==a6}function cR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=j6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function K6(e){return function(){return e}}var q6=function(){try{var e=La(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Au=q6;var Y6=Au?function(e,t){return Au(e,"toString",{configurable:!0,enumerable:!1,value:K6(t),writable:!0})}:Ib;const X6=Y6;var G6=W6(X6);const Z6=G6;var Q6=9007199254740991,J6=/^(?:0|[1-9]\d*)$/;function Db(e,t){var n=typeof e;return t=t==null?Q6:t,!!t&&(n=="number"||n!="symbol"&&J6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=aB}function zl(e){return e!=null&&Bb(e.length)&&!Fb(e)}function lB(e,t,n){if(!Er(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Db(t,n.length):r=="string"&&t in n)?sc(n[t],e):!1}function sB(e){return iB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&lB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function kE(e,t){var n=this.__data__,r=ah(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:XE(e,t,n)}var ZE="\\ud800-\\udfff",QE="\\u0300-\\u036f",JE="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",tL=QE+JE+eL,nL="\\ufe0e\\ufe0f",rL="\\u200d",oL=RegExp("["+rL+ZE+tL+nL+"]");function wR(e){return oL.test(e)}function iL(e){return e.split("")}var CR="\\ud800-\\udfff",aL="\\u0300-\\u036f",lL="\\ufe20-\\ufe2f",sL="\\u20d0-\\u20ff",cL=aL+lL+sL,dL="\\ufe0e\\ufe0f",uL="["+CR+"]",kp="["+cL+"]",Rp="\\ud83c[\\udffb-\\udfff]",fL="(?:"+kp+"|"+Rp+")",SR="[^"+CR+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",kR="[\\ud800-\\udbff][\\udc00-\\udfff]",hL="\\u200d",RR=fL+"?",PR="["+dL+"]?",vL="(?:"+hL+"(?:"+[SR,_R,kR].join("|")+")"+PR+RR+")*",pL=PR+RR+vL,gL="(?:"+[SR+kp+"?",kp,_R,kR,uL].join("|")+")",mL=RegExp(Rp+"(?="+Rp+")|"+gL+pL,"g");function bL(e){return e.match(mL)||[]}function yL(e){return wR(e)?bL(e):iL(e)}function xL(e){return function(t){t=Oa(t);var n=wR(t)?yL(t):void 0,r=n?n[0]:t.charAt(0),o=n?GE(n,1).join(""):t.slice(1);return r[e]()+o}}var wL=xL("toUpperCase");const $R=wL;function CL(e){return $R(Oa(e).toLowerCase())}function SL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&G8?new Nu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=dv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(dv())}function w(){var k=dv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function Op(e,t,n){(n!==void 0&&!sc(e[t],n)||n===void 0&&!(t in e))&&Ab(e,t,n)}function KN(e){return $i(e)&&zl(e)}function zp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function qN(e){return rB(e,gR(e))}function YN(e,t,n,r,o,i,a){var l=zp(e,n),s=zp(t,n),c=a.get(s);if(c){Op(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Br(s),v=!h&&Eu(s),p=!h&&!v&&Lb(s);d=s,h||v||p?Br(l)?d=l:KN(l)?d=H6(l):v?(f=!1,d=S8(s,!0)):p?(f=!1,d=j8(s,!0)):d=[]:YE(s)||Bu(s)?(d=l,Bu(l)?d=qN(l):(!Er(l)||Fb(l))&&(d=V8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Op(e,n,d)}function YR(e,t,n,r,o){e!==t&&qR(t,function(i,a){if(o||(o=new yo),Er(i))YN(e,t,a,n,YR,r,o);else{var l=r?r(zp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Op(e,a,l)}},gR)}function XN(e,t){var n=-1,r=zl(e)?Array(e.length):[];return NN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function GN(e,t){var n=Br(e)?cR:XN;return n(e,FN(t))}var ZN=jR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const XR=ZN;var QN=sB(function(e,t,n){YR(e,t,n)});const cl=QN;var JN=p8("round");const e7=JN;var t7="Expected a function";function xs(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(t7);return Er(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),WN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:n7,fontFamily:r7,lineHeight:o7}=_r,GR=O("body",` - margin: 0; - font-size: ${n7}; - font-family: ${r7}; - line-height: ${o7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Lr="n-config-provider",wl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Di(),l=Le(Lr,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:wl,ssr:a}),l!=null&&l.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:a})};a?c():Wo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=cl({},d||y||g||r.common,w,_,b),R=cl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:cl({},r.peers,x,h),peerOverrides:cl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ZR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Lr,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ZR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const i7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},a7=i7;function uv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(n){return typeof n}:Pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pd(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var l7={};function Na(){return l7}function za(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?c7(l,function(f){return f.test(a)}):s7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function s7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function c7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var u7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f7=function(t,n,r){var o,i=u7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const h7=f7;var v7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m7={date:uv({formats:v7,defaultWidth:"full"}),time:uv({formats:p7,defaultWidth:"full"}),dateTime:uv({formats:g7,defaultWidth:"full"})};const b7=m7;var y7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},x7=function(t,n,r,o){return y7[t]};const w7=x7;var C7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},S7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},k7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},R7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},T7={ordinalNumber:$7,era:Yl({values:C7,defaultWidth:"wide"}),quarter:Yl({values:S7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yl({values:_7,defaultWidth:"wide"}),day:Yl({values:k7,defaultWidth:"wide"}),dayPeriod:Yl({values:R7,defaultWidth:"wide",formattingValues:P7,defaultFormattingWidth:"wide"})};const O7=T7;var z7=/^(\d+)(th|st|nd|rd)?/i,M7=/\d+/i,I7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},F7={any:[/^b/i,/^(a|c)/i]},D7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},A7={any:[/1/i,/2/i,/3/i,/4/i]},B7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},E7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},N7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},H7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},j7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},V7={ordinalNumber:d7({matchPattern:z7,parsePattern:M7,valueCallback:function(t){return parseInt(t,10)}}),era:Xl({matchPatterns:I7,defaultMatchWidth:"wide",parsePatterns:F7,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:D7,defaultMatchWidth:"wide",parsePatterns:A7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Xl({matchPatterns:B7,defaultMatchWidth:"wide",parsePatterns:E7,defaultParseWidth:"any"}),day:Xl({matchPatterns:L7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:H7,defaultMatchWidth:"any",parsePatterns:j7,defaultParseWidth:"any"})};const U7=V7;var W7={code:"en-US",formatDistance:h7,formatLong:b7,formatRelative:w7,localize:O7,match:U7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ch=W7,K7={name:"en-US",locale:ch},q7=K7;function Qc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function Y7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Hu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Cl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function X7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Mp(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function G7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var Z7=6e4,Q7=36e5,J7=1e3;function eH(e,t){mt(2,arguments);var n=Cl(e),r=Cl(t);return n.getTime()===r.getTime()}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function tH(e){return mt(1,arguments),e instanceof Date||$d(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Mr(e){if(mt(1,arguments),!tH(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function nH(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function rH(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function Vs(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ub(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function QR(e,t){mt(2,arguments);var n=Gt(t);return Y7(e,-n)}var oH=864e5;function iH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/oH)+1}function Sl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function aH(e){mt(1,arguments);var t=JR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Sl(n);return r}var lH=6048e5;function e2(e){mt(1,arguments);var t=yt(e),n=Sl(t).getTime()-aH(t).getTime();return Math.round(n/lH)+1}function Wb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=Na(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=za(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=za(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function sH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Wb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=za(v,t);return p}var cH=6048e5;function t2(e,t){mt(1,arguments);var n=yt(e),r=za(n,t).getTime()-sH(n,t).getTime();return Math.round(r/cH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const oi=dH;var Ja={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},uH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return oi.y(t,n)},Y:function(t,n,r,o){var i=Wb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=JR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return oi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=t2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=e2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):oi.d(t,n)},D:function(t,n,r){var o=iH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Ja.noon:o===0?i=Ja.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Ja.evening:o>=12?i=Ja.afternoon:o>=4?i=Ja.morning:i=Ja.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return oi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oi.s(t,n)},S:function(t,n){return oi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ww(a);case"XXXX":case"XX":return ra(a);case"XXXXX":case"XXX":default:return ra(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Ww(a);case"xxxx":case"xx":return ra(a);case"xxxxx":case"xxx":default:return ra(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+ra(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+ra(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function Uw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Ww(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const fH=uH;var Kw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},hH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Kw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Kw(o,n)).replace("{{time}}",n2(i,n))},vH={p:n2,P:hH};const Ip=vH;var pH=["D","DD"],gH=["YY","YYYY"];function r2(e){return pH.indexOf(e)!==-1}function o2(e){return gH.indexOf(e)!==-1}function ju(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var mH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yH=/^'([^]*?)'?$/,xH=/''/g,wH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=Na(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ch,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!Mr(R))throw new RangeError("Invalid time value");var I=Hu(R),z=QR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(bH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=Ip[E];return U(j,_.formatLong)}return j}).join("").match(mH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return CH(j);var U=fH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&o2(j)&&ju(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&r2(j)&&ju(j,t,String(e)),U(z,j,_.localize,A);if(E.match(wH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function CH(e){var t=e.match(yH);return t?t[1].replace(xH,"'"):e}function Kb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function SH(e){return Kb({},e)}var qw=1e3*60,Vu=60*24,Yw=Vu*30,Xw=Vu*365;function _H(e,t,n){var r,o,i;mt(2,arguments);var a=Na(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ch;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=G7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Kb(SH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/qw,m=Hu(f)-Hu(d),g=(p-m)/qw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NH=function(e){AH(n,e);var t=BH(n);function n(){var r;FH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function d2(e){return e%400===0||e%4===0&&e%100!==0}function zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zd=function(n){return typeof n}:zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zd(e)}function HH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qH=function(e){VH(n,e);var t=UH(n);function n(){var r;HH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=c2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Md=function(n){return typeof n}:Md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Md(e)}function YH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var e9=function(e){GH(n,e);var t=ZH(n);function n(){var r;YH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Wb(o,l);if(a.isTwoDigitYear){var c=c2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function t9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l9=function(e){r9(n,e);var t=o9(n);function n(){var r;t9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v9=function(e){d9(n,e);var t=u9(n);function n(){var r;s9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w9=function(e){m9(n,e);var t=b9(n);function n(){var r;p9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function C9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $9=function(e){_9(n,e);var t=k9(n);function n(){var r;C9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function T9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D9=function(e){z9(n,e);var t=M9(n);function n(){var r;T9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function A9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j9=function(e){E9(n,e);var t=L9(n);function n(){var r;A9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function V9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=t2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ld=function(n){return typeof n}:Ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ld(e)}function U9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var G9=function(e){K9(n,e);var t=q9(n);function n(){var r;U9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return za(V9(o,a,l),l)}}]),n}(Yt);function Z9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=e2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function Q9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oj=function(e){ej(n,e);var t=tj(n);function n(){var r;Q9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Sl(Z9(o,a))}}]),n}(Yt);function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function ij(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uj=[31,28,31,30,31,30,31,31,30,31,30,31],fj=[31,29,31,30,31,30,31,31,30,31,30,31],hj=function(e){lj(n,e);var t=sj(n);function n(){var r;ij(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=fj[s]:i>=1&&i<=uj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function vj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xj=function(e){gj(n,e);var t=mj(n);function n(){var r;vj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Gb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=Na(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pj=function(e){Sj(n,e);var t=_j(n);function n(){var r;wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function $j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fj=function(e){Oj(n,e);var t=zj(n);function n(){var r;$j(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function Dj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hj=function(e){Bj(n,e);var t=Ej(n);function n(){var r;Dj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function jj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xj=function(e){Wj(n,e);var t=Kj(n);function n(){var r;Vj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=jj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nV=function(e){Qj(n,e);var t=Jj(n);function n(){var r;Gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cV=function(e){iV(n,e);var t=aV(n);function n(){var r;rV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gV=function(e){fV(n,e);var t=hV(n);function n(){var r;dV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SV=function(e){yV(n,e);var t=xV(n);function n(){var r;mV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OV=function(e){RV(n,e);var t=PV(n);function n(){var r;_V(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function zV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BV=function(e){IV(n,e);var t=FV(n);function n(){var r;zV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function EV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UV=function(e){NV(n,e);var t=HV(n);function n(){var r;EV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function WV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZV=function(e){qV(n,e);var t=YV(n);function n(){var r;WV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function QV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oU=function(e){eU(n,e);var t=tU(n);function n(){var r;QV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(n){return typeof n}:ou=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ou(e)}function iU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uU=function(e){lU(n,e);var t=sU(n);function n(){var r;iU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bU=function(e){vU(n,e);var t=pU(n);function n(){var r;fU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kU=function(e){wU(n,e);var t=CU(n);function n(){var r;yU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MU=function(e){$U(n,e);var t=TU(n);function n(){var r;RU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LU=function(e){DU(n,e);var t=AU(n);function n(){var r;IU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=HU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function HU(e,t){if(!!e){if(typeof e=="string")return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new zH],L=_.match(VU).map(function(Oe){var ke=Oe[0];if(ke in Ip){var pe=Ip[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(jU),j=[],E=iC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&o2(ke)&&ju(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&r2(ke)&&ju(ke,_,e);var pe=ke[0],Me=NU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(qU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=XU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(cu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&KU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=QR(re,Hu(re)),ue={},de=iC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Kb(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function XU(e){return e.match(UU)[1].replace(WU,"'")}function GU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function dh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function u2(e,t){mt(2,arguments);var n=Vs(e),r=Vs(t);return n.getTime()===r.getTime()}function Zb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function f2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Qb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=RH(a);return n.setMonth(r,Math.min(i,l)),n}function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function jn(e,t){if(mt(2,arguments),du(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Qb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function Xi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function vv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function ZU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Qb(n,n.getMonth()+i*3)}function pv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function lC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Lr,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:a7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:q7}),localeRef:r}}function Ur(e,t,n){if(!t)return;const r=Di(),o=Le(Lr,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:r})};r?i():Wo(i)}function h2(e,t){const n=Le(Lr,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Dn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Lr,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Di();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+Bs(JSON.stringify(p))),b&&(f+="-"+Bs(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Di(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(zD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Wo(i),o}function QU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function JU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const eW=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),uh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},tW=Nn(uh),v2=J({name:"Affix",props:uh,setup(e){const{mergedClsPrefixRef:t}=He(e);Ur("-affix",eW,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=yb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){ka(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=QU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=JU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),_l=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),p2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),nW=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Hn(e,t){return J({name:$R(e),setup(){var n;const r=(n=Le(Lr,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const rW=Hn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Ti=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),sC=Hn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Jb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),e0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ha=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),g2=Hn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),m2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),oW=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),iW=Hn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),aW=Hn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),lW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ja=Hn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Oi=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),zi=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),sW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Mi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ii=Hn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),b2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),y2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Va=Hn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),cW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),dW=Hn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Ai=Hn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),uW=Hn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),x2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),fW=Hn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),hW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),vW=Hn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),pW=Hn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),gW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),mW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),bW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),yW=Hn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),xW=Hn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),wW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),Ro=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=An();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),Po=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?Gf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),CW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Ur("-base-icon",CW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),SW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Go=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Ur("-base-close",SW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(g2,null)}))}}}),$o=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:_W}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${_W} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const kW=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),RW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},to=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},RW),setup(e){Ur("-base-loading",kW,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(Ro,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function dC(e){return Array.isArray(e)?e:[e]}const Vg={STOP:"STOP"};function w2(e,t){const n=t(e);e.children!==void 0&&n!==Vg.STOP&&e.children.forEach(r=>w2(r,t))}function PW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function $W(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function TW(e){return e.children}function OW(e){return e.key}function zW(){return!1}function MW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function IW(e){return e.disabled===!0}function FW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function DW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function AW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function BW(e){return(e==null?void 0:e.type)==="group"}function C2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class S2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function EW(e,t,n,r){return Rf(t.concat(e),n,r,!1)}function LW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function NW(e,t,n,r){const o=Rf(t,n,r,!1),i=Rf(e,n,r,!0),a=LW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function bv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:DW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:AW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=NW(o,n,t,c):r!==void 0?f=EW(r,n,t,c):f=Rf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Rf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&w2(c,d=>{if(d.disabled)return Vg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),FW(d.rawNode,i))){if(r)return Vg.STOP;if(!n)throw new S2}})}),l}function HW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function jW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function VW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function uC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?UW:VW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=t0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=WW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function UW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function WW(e){return e.parent}function t0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=t0(c,t);if(d!==null)return d}else return c}}return null}const KW={getChild(){return this.ignored?null:t0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return uC(this,"next",e)},getPrev(e={}){return uC(this,"prev",e)}};function Ug(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function qW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function _2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=_2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function no(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=IW,getIgnored:a=zW,getIsGroup:l=BW,getKey:s=OW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:TW,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return $W(this.rawNode,d)},get shallowLoaded(){return MW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return qW(this,x)}},KW),h=_2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return Ug(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return jW(h)},getPath(x,w={}){return HW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return bv({checkedKeys:gv(x),indeterminateKeys:mv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToCheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToUncheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return PW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},YW=Bn(bt.neutralBase),k2=Bn(bt.neutralInvertBase),XW="rgba("+k2.slice(0,3).join(", ")+", ";function fC(e){return XW+String(e)+")"}function Gn(e){const t=Array.from(k2);return t[3]=Number(e),ht(YW,t)}const GW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:fC(bt.alphaScrollbar),scrollbarColorHover:fC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=GW,ZW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},QW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},ZW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},JW={name:"Empty",common:et,self:QW},Bi=JW,eK=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),R2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ei=J({name:"Empty",props:R2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",eK,Bi,e,t),{localeRef:o}=yn("Empty"),i=Le(Lr,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(lW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),tK=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},nK={name:"Scrollbar",common:et,self:tK},hr=nK,{cubicBezierEaseInOut:hC}=_r;function Ho({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hC,leaveCubicBezier:o=hC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const rK=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ho(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),oK=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),P2=J({name:"Scrollbar",props:oK,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=GD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Mb(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",rK,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Ar,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Ar,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=P2,Pf=P2,iK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},aK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},iK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},lK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Bi},self:aK},Ml=lK;function sK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Jb)}):null})}const vC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Rb),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=sK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:gs([c,p==null?void 0:p.onClick]),onMouseenter:gs([d,p==null?void 0:p.onMouseenter]),onMousemove:gs([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),pC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Rb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:gC,cubicBezierEaseOut:mC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${gC}, transform ${t} ${gC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${mC}, transform ${t} ${mC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const cK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),cc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",cK,Ml,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>C2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>yi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(Rb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(Vk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":yi(ve,"left"),"--n-option-padding-right":yi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return oh(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(to,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ei,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(No,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(vC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):u(vC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u($o,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),dK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),$2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Ur("-base-wave",dK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),uK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Ho()]),fK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Ur("-base-menu-mask",uK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),hK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},vK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},hK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},pK={name:"Popover",common:et,self:vK},Ua=pK,yv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",gK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${zo("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${zo("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${zo("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${zo("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${zo("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${zo("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${zo("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${zo("right-end")} + var(--v-offset-top)); - `),...GN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=zo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function zo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${yv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${yv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),AD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${yv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const T2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),O2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),mK=J({name:"PopoverBody",inheritAttrs:!1,props:T2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",gK,Ua,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!BD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([oA,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Ol,c),nt(ic,null),nt(oc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!xa(t.header)||!xa(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(Pf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?O2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u(Ob,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),bK=Object.keys(T2),yK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function xK(e,t,n){yK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const wK=Or("").type,Ma={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},z2=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{internalOnAfterLeave:Function,internalRenderBody:Function}),Wa=J({name:"Popover",inheritAttrs:!1,props:z2,__popover__:!0,setup(e){const t=An(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ri(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Mu(n,"activator"):r=Mu(n,"trigger"),r)){r=nr(r),r=r.type===wK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};xK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Hr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(jr,null,{default:()=>r}),u(mK,mn(this.$props,bK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),CK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},SK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},CK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},_K={name:"Tag",common:et,self:SK},M2=_K,I2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},kK=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),F2=Object.assign(Object.assign(Object.assign({},Se.props),I2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),D2="n-tag",ws=J({name:"Tag",props:F2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",kK,M2,e,r);nt(D2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Pa(m)}`),g&&(v+=`b${Pa(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Go,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),RK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Wg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Ur("-base-clear",RK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(Ro,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(fW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),A2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(to,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Wg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(x2,null)])})}):null})}}}),PK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},$K=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},PK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},TK={name:"InternalSelection",common:et,peers:{Popover:Ua},self:$K},fh=TK,OK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),n0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",OK,fh,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),oh(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(bp,null,{default:()=>u(A2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(ws,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Wa,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:rc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),bC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ii}=_r;function B2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ii}, - max-width ${e} ${ii} ${t}, - margin-left ${e} ${ii} ${t}, - margin-right ${e} ${ii} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ii} ${t}, - max-width ${e} ${ii}, - margin-left ${e} ${ii}, - margin-right ${e} ${ii}; - `)]}const{cubicBezierEaseOut:el}=_r;function zK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const MK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[zK({duration:".2s"}),B2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),IK=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Ur("-base-slot-machine",MK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(Gf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(bC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Po,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},FK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},AK={name:"Alert",common:et,self:DK},BK=AK,{cubicBezierEaseInOut:ao,cubicBezierEaseOut:EK,cubicBezierEaseIn:LK}=_r;function jo({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${ao} ${r}, - opacity ${t} ${EK} ${r}, - margin-top ${t} ${ao} ${r}, - margin-bottom ${t} ${ao} ${r}, - padding-top ${t} ${ao} ${r}, - padding-bottom ${t} ${ao} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${ao}, - opacity ${t} ${LK}, - margin-top ${t} ${ao}, - margin-bottom ${t} ${ao}, - padding-top ${t} ${ao}, - padding-bottom ${t} ${ao} - ${n?","+n:""} - `)]}const NK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),jo({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),E2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),HK=J({name:"Alert",inheritAttrs:!1,props:E2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",NK,BK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=yi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Po,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Go,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Va,null);case"info":return u(Ii,null);case"warning":return u(Ai,null);case"error":return u(ja,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),jK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},VK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},jK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},UK={name:"Anchor",common:et,self:VK},WK=UK,KK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),uu="n-anchor",L2={title:String,href:String},qK=J({name:"AnchorLink",props:L2,setup(e,{slots:t}){const n=D(null),r=Le(uu),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);LD(uu,"collectedLinkHrefs",o),ND(uu,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:rc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function YK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const r0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},XK=Nn(r0),GK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},r0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=xs(()=>v(!0),128);function v(p=!0){var b;const m=[],g=yb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=YK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(uu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),nh(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),N2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),uh),r0),ZK=J({name:"Anchor",props:N2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",KK,WK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(GK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,XK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(v2,Object.assign({},mn(this,tW)),{default:this.renderAnchor}):this.renderAnchor()}});function $f(e){return e.type==="group"}function H2(e){return e.type==="ignored"}function xv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function hh(e,t){return{getIsGroup:$f,getIgnored:H2,getKey(r){return $f(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function QK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if($f(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(H2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function JK(e,t,n){const r=new Map;return e.forEach(o=>{$f(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const eq=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const j2=rr&&navigator.userAgent.includes("Safari")&&!eq,tq={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},nq=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},tq),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},rq={name:"Input",common:et,self:nq},kr=rq,V2="n-input";function oq(e){let t=0;for(const n of e)t++;return t}function Jc(e){return e===""||e==null}function iq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const yC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(V2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||oq)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Ra(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),aq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),lq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),U2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),In=J({name:"Input",props:U2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",aq,kr,e,t);j2&&Ur("-input-safari",lq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=iq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Ko().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(V2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Wr,textColorDisabled:Et,boxShadowFocus:cn,iconSize:To,colorFocusWarning:Qo,boxShadowFocusWarning:Jo,borderWarning:ei,borderFocusWarning:Ni,borderHoverWarning:kh,colorFocusError:Rh,boxShadowFocusError:Ph,borderError:$h,borderFocusError:Th,borderHoverError:Oh,clearSize:zh,clearColor:Mh,clearColorHover:GO,clearColorPressed:ZO,iconColor:QO,iconColorDisabled:JO,suffixTextColor:ez,countTextColor:tz,countTextColorDisabled:nz,iconColorHover:rz,iconColorPressed:oz,loadingColor:iz,loadingColorError:az,loadingColorWarning:lz,[ye("padding",le)]:sz,[ye("fontSize",le)]:cz,[ye("height",le)]:dz}}=i.value,{left:uz,right:fz}=yi(sz);return{"--n-bezier":Ie,"--n-count-text-color":tz,"--n-count-text-color-disabled":nz,"--n-color":Ge,"--n-font-size":cz,"--n-border-radius":gt,"--n-height":dz,"--n-padding-left":uz,"--n-padding-right":fz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":To,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Wr,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":iz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Qo,"--n-box-shadow-focus-warning":Jo,"--n-border-warning":ei,"--n-border-focus-warning":Ni,"--n-border-hover-warning":kh,"--n-loading-color-warning":lz,"--n-caret-color-error":Qe,"--n-color-focus-error":Rh,"--n-box-shadow-focus-error":Ph,"--n-border-error":$h,"--n-border-focus-error":Th,"--n-border-hover-error":Oh,"--n-loading-color-error":az,"--n-clear-color":Mh,"--n-clear-size":zh,"--n-clear-color-hover":GO,"--n-clear-color-pressed":ZO,"--n-icon-color":QO,"--n-icon-color-hover":rz,"--n-icon-color-pressed":oz,"--n-icon-color-disabled":JO,"--n-suffix-text-color":ez}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Ar,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(A2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(yC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(m2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(oW,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(yC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),sq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),W2={},K2=J({name:"InputGroup",props:W2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Ur("-input-group",sq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),cq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),q2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),dq=J({name:"InputGroupLabel",props:q2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",cq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function uq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const fq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:uq},hq=fq;function vq(e){return e.map(Y2)}function Y2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>Y2(o))}:e}const pq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),X2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),gq=J({name:"AutoComplete",props:X2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",pq,hq,e,r),g=P(()=>vq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>no(g.value,hh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:An(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Hr,null,{default:()=>[u(jr,null,{default:()=>{if(this.$slots.default)return Mu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(In,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(cc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),gl=rr&&"loading"in document.createElement("img"),mq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},wv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,G2=(e,t,n)=>{if(!e)return()=>{};const r=mq(t),{root:o}=r.options;let i;const a=wv.get(o);a?i=a:(i=new Map,wv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=Cv.get(h.target),p=Sv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Cv.delete(e),Sv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||wv.delete(o))};return Cv.set(e,d),Sv.set(e,n),d},bq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},yq={name:"Avatar",common:et,self:bq},Z2=yq,Q2="n-avatar-group",xq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[ko(O("&","--n-merged-color: var(--n-color-modal);")),qo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),J2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Kg=J({name:"Avatar",props:J2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Q2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",xq,Z2,e,t),f=Le(D2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Pa(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(gl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=G2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Ar,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:gl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:gl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),wq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),Cq=()=>({gap:"-12px"}),Sq={name:"AvatarGroup",common:et,peers:{Avatar:Z2},self:Cq},_q=Sq,eP=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),kq=J({name:"AvatarGroup",props:eP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",wq,_q,e,t);nt(Q2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Kg,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Kg,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),Rq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Pq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},Rq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},$q={name:"BackTop",common:et,self:Pq},Tq=$q,Oq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),zq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Mq=J({name:"BackTop",inheritAttrs:!1,props:tP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${Sp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",zq,Tq,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||yb(e.listenTo)||_k(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(dw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(dw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:An(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(lc,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>Oq})])):null}})}))}}),Iq=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Fq={name:"Badge",common:et,self:Iq},Dq=Fq,Aq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),nP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Bq=J({name:"Badge",props:nP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",Aq,Dq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!xa(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Pa(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:rc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u(IK,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u($2,{clsPrefix:t}):null):null}))}}),Eq={fontWeightActive:"400"},Lq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Eq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Nq={name:"Breadcrumb",common:et,self:Lq},Hq=Nq,jq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),rP="n-breadcrumb",oP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),Vq=J({name:"Breadcrumb",props:oP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",jq,Hq,e,t);nt(rP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Uq=rr?window:null,Wq=(e=Uq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Qs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},iP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Kq=J({name:"BreadcrumbItem",props:iP,setup(e,{slots:t}){const n=Le(rP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Wq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Gi(e){return ht(e,[255,255,255,.16])}function ed(e){return ht(e,[0,0,0,.12])}const aP="n-button-group",qq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Yq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},qq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Xq={name:"Button",common:et,self:Yq},vr=Xq,Gq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),B2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),lP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!j2}}),sP=J({name:"Button",props:lP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(aP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Gq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Gi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?ed(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Gi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Pa($)),z&&(x+="k"+Pa(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Gi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":ed(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Po,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:xa(this.$slots.default)?"0":""}},u(Ro,null,{default:()=>this.loading?u(to,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u($2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=sP,eo=sP,fn="0!important",cP="-1px!important";function tl(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:cP})])])])])}function nl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:cP})])])])])}const Zq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),nl("default"),F("ghost",[nl("primary"),nl("info"),nl("success"),nl("warning"),nl("error")])])])]),dP={size:{type:String,default:void 0},vertical:Boolean},o0=J({name:"ButtonGroup",props:dP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Ur("-button-group",Zq,t),nt(aP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Tf=1901,Ia=40,Qq={date:eH,month:dh,year:f2,quarter:u2};function Bo(e,t,n){const r=Qq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function _v(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},nY),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},oY={name:"Calendar",common:et,peers:{Button:vr},self:rY},iY=oY,aY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),ko(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),qo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),uP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),lY=J({name:"Calendar",props:uP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",aY,iY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Of(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&Cl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Ra(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(o0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(e0,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ha,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===Cl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),sY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},cY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:sY},dY=cY;function uY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Us(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function fY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function hY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const vY={rgb:{hex(e){return wi(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hex:{rgb(e){return bo(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=hl(e);return wi([...fp(t,n,r),o])},rgb(e){const[t,n,r,o]=hl(e);return bo([...fp(t,n,r),o])},hsv(e){const[t,n,r,o]=hl(e);return ya([...kk(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ba(e);return wi([...ci(t,n,r),o])},rgb(e){const[t,n,r,o]=ba(e);return bo([...ci(t,n,r),o])},hsl(e){const[t,n,r,o]=ba(e);return xi([..._d(t,n,r),o])}}};function fP(e,t,n){return n=n||Us(e),n?n===t?e:vY[n][t](e):null}const ol="12px",pY=12,Zi="6px",gY=6,mY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",bY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=fY((i.clientX-s-gY)/(l-pY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:ol,borderRadius:Zi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:mY,height:ol,borderRadius:Zi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Zi,right:Zi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Zi})`,borderRadius:Zi,width:ol,height:ol}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Zi,width:ol,height:ol}})))))}}),Gl="12px",yY=12,Qi="6px",xY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-yY);e.onUpdateAlpha(hY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Gl,borderRadius:Qi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Qi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Qi,right:Qi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Qi})`,borderRadius:Qi,width:Gl,height:Gl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:bo(this.rgba),borderRadius:Qi,width:Gl,height:Gl}}))))}}),td="12px",nd="6px",wY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:td,height:td,borderRadius:nd,left:`calc(${this.displayedSv[0]}% - ${nd})`,bottom:`calc(${this.displayedSv[1]}% - ${nd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:nd,width:td,height:td}})))}}),i0="n-color-picker";function CY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function SY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function _Y(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function kY(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function RY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const PY={paddingSmall:"0 4px"},xC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(i0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=kY(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=SY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=_Y(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=RY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=CY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(In,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:PY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),$Y=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?wi:ps)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ya:pp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?bo:vp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?xi:gp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(K2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?wi:ps)(r)}catch{}return u(xC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(xC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),TY=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(i0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?xi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function OY(e,t){if(t==="hsv"){const[n,r,o,i]=ba(e);return bo([...ci(n,r,o),i])}return e}function zY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const MY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Us(i);return{value:i,mode:a,legalValue:OY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=zY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:fP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),IY=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Us(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,fP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),FY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),hP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),DY=J({name:"ColorPicker",props:hP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",FY,dY,e,s);nt(i0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?uY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Us(g.value)),{modes:w}=e,k=D(Us(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ba(N);case"hsl":return[T,$,R,j]=hl(N),[...kk(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...dp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return Bn(N);case"hsv":return[T,$,I,j]=ba(N),[...ci(T,$,I),j];case"hsl":return[T,$,R,j]=hl(N),[...fp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return hl(N);case"hsv":return[T,$,I,j]=ba(N),[..._d(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...up(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?bo:vp)([...ci(Z,N,te),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?bo:vp)([...ci(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ya([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(bo([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(wi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(xi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(wY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(bY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(xY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(IY,{clsPrefix:Pe,mode:k.value,color:U.value&&ps(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u($Y,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(MY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:An(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u(TY,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),AY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},BY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},AY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},EY={name:"Card",common:et,self:BY},vP=EY,LY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Ak({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),ko(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),qo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),a0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},NY=Nn(a0),pP=Object.assign(Object.assign({},Se.props),a0),gP=J({name:"Card",props:pP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",LY,vP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=yi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Go,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),HY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),jY={name:"Carousel",common:et,self:HY},VY=jY;function UY(e){const{length:t}=e;return t>1&&(e.push(wC(e[0],0,"append")),e.unshift(wC(e[t-1],t-1,"prepend"))),e}function wC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function CC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function kv(e,t){return t?e+1:e}function WY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function KY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function qY(e,t){return t&&e>3?e-2:e}function SC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function _C(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function rd(e,t,n){return en?n:e}function YY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const mP="n-carousel-methods",XY=e=>nt(mP,e),l0=(e="unknown",t="component")=>{const n=Le(mP);return n||Dn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},GY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},ZY=J({name:"CarouselDots",props:GY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=l0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Zm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},uD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),QY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),JY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),eX=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=l0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},QY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},JY))}}),hu="CarouselItem",tX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hu},bP=J({name:hu,setup(e){const{mergedClsPrefixRef:t}=He(e),n=l0($w(hu),`n-${$w(hu)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),nX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),rX=["transitionDuration","transitionTimingFunction"],yP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Rv=!1;const oX=J({name:"Carousel",props:yP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>_C(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,rX):{}}),w=P(()=>h.value?0:YY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GeqY(_.value,f.value)),$=kv(e.defaultIndex,f.value),R=D(CC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>kv(I.value,f.value));function A(oe){var Fe,Ne;oe=rd(oe,0,_.value-1);const Ze=CC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return WY(oe,_.value,e.loop)}function j(oe=z.value){return KY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=rd(kv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};XY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Gs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(Rv||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;Rv=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=SC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=SC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=rd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(Rv=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=_C(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Qm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",nX,VY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Fr(f())||[];let b=iX(p);return b.length||(b=p.map(m=>u(bP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=UY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Ar,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Ar,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&Ra(h,d,()=>[u(ZY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Ra(v,c,()=>[u(eX,null)]))}});function iX(e){return e.reduce((t,n)=>(tX(n)&&t.push(n),t),[])}const aX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},lX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},aX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},sX={name:"Checkbox",common:et,self:lX},Il=sX,cX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},dX={name:"Cascader",common:et,peers:{InternalSelectMenu:Ml,InternalSelection:fh,Scrollbar:hr,Checkbox:Il,Empty:Bi},self:cX},uX=dX;function od(e){return e?e.map(t=>t.rawNode):null}function fX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Gg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Gg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const hX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),vX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),xP="n-checkbox-group",wP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},CP=J({name:"CheckboxGroup",props:wP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(xP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),pX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),ko(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),qo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),SP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Zo=J({name:"Checkbox",props:SP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(xP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",pX,Il,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(Ro,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},vX):u("div",{key:"check",class:`${c}-checkbox-icon`},hX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),dc="n-cascader",kC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(dc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Zo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Jb,null)}):null}):null:u(to,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ha,null)})}))))}}),gX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(dc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(No,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(kC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(kC,{key:r.key,tmNode:r}))}))}}),mX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(dc),l=[],s=D(null),c=D(null);function d(){o()}oh(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(gX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(fK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ei,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u($o,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),bX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(dc),v=D(null),p=P(()=>fX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>no(m.value,hh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(cc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),yX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),_P=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),xX=J({name:"Cascader",props:_P,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",yX,uX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return no(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ha(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return od((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof S2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,od(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,od((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return od((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Gg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Gg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&($a(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(dc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:An(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u(n0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(mX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(bX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),wX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},CX={name:"Code",common:et,self:wX},kP=CX,SX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),RP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),PP=J({name:"Code",props:RP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:h2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",SX,kP,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),_X=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},kX={name:"Collapse",common:et,self:_X},RX=kX,PX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),jo({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),$P=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),TP="n-collapse",$X=J({name:"Collapse",props:$P,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",PX,RX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt(TP,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),TX=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Lk(xe(e,"show"))}},render(){return u(Po,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),OP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},OX=J({name:"CollapseItem",props:OP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(TP);o||Dn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Ra(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Ra(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(e0,null):u(Ha,null)})]})),n==="left"&&l),hD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(TX,{clsPrefix:i,displayDirective:o,show:!r},t))}}),zX=S("collapse-transition",{width:"100%"},[jo()]),MX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},IX={name:"CollapseTransition",common:et,self:MX},FX=IX,zP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),DX=J({name:"CollapseTransition",props:zP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",zX,FX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Po,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),MP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},IP=J({name:"ConfigProvider",alias:["App"],props:MP,setup(e){const t=Le(Lr,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:cl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=bu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=bu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${Bs(JSON.stringify(r.value))}`:g:m?Bs(JSON.stringify(r.value)):""});return nt(Lr,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||ZR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),FP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},AX=J({name:"Countdown",props:FP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),BX=e=>1-Math.pow(1-e,5);function EX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*BX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const DP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},LX=J({name:"NumberAnimation",props:DP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&EX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=e7(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function NX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const HX={name:"Popselect",common:et,peers:{Popover:Ua,InternalSelectMenu:Ml},self:NX},s0=HX,AP="n-popselect",jX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),c0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},RC=Nn(c0),VX=J({name:"PopselectPanel",props:c0,setup(e){const t=Le(AP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",jX,s0,t.props,n),i=P(()=>no(e.options,hh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(cc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),BP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Aa(Ma,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ma.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),c0),EP=J({name:"Popselect",props:BP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,s0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(AP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(VX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,RC),{ref:$k(r),onMouseenter:gs([i,l.onMouseenter]),onMouseleave:gs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Wa,Object.assign({},Aa(this.$props,RC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function UX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const WX={name:"Select",common:et,peers:{InternalSelection:fh,InternalSelectMenu:Ml},self:UX},LP=WX,KX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),HP=J({name:"Select",props:NP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",KX,LP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=hh(G,q);return no(z.value,_e)}),h=P(()=>JK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=Ri(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return xv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?xv(Be,ze):typeof ze=="number"?xv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:QK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&($a(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:An(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u(n0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(cc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),qX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},YX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},qX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},XX={name:"Pagination",common:et,peers:{Select:LP,Input:kr,Popselect:s0},self:YX},jP=XX;function GX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:PC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function PC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const $C=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,TC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],ZX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",$C,TC),O("&:hover",$C,TC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),VP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UP=J({name:"Pagination",props:VP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",ZX,jP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>GX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||mp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||mp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Mi,null):u(Ti,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(zi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(zi,null):u(Oi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(EP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u(Mi,null)})));case"size-picker":return!m&&l?u(HP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),QX={padding:"8px 14px"},JX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},QX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},eG={name:"Tooltip",common:et,peers:{Popover:Ua},self:JX},vh=eG,tG={name:"Ellipsis",common:et,peers:{Tooltip:vh}},WP=tG,nG={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},rG=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},nG),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},oG={name:"Radio",common:et,self:rG},d0=oG,iG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},aG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},iG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},lG={name:"Dropdown",common:et,peers:{Popover:Ua},self:aG},u0=lG,sG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},cG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},sG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},dG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Il,Radio:d0,Pagination:jP,Scrollbar:hr,Empty:Bi,Popover:Ua,Ellipsis:WP,Dropdown:u0},self:cG},uG=dG,KP=Object.assign(Object.assign({},Ma),Se.props),ph=J({name:"Tooltip",props:KP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,vh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Wa,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),fG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function OC(e){return`${e}-ellipsis--line-clamp`}function zC(e,t){return`${e}-ellipsis--cursor-${t}`}const qP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),f0=J({name:"Ellipsis",inheritAttrs:!1,props:qP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",fG,WP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Zs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?OC(r.value):void 0,e.expandTrigger==="click"?zC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=OC(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=zC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(ph,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),hG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),YP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),ro="n-data-table",vG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(ro),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(hG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(p2,null)}))}}),pG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),gh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},XP="n-radio-group";function GP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(XP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const gG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),h0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),gh),setup(e){const t=GP(e),n=Se("Radio","-radio",gG,d0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),mG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function bG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=bG(Fr(nc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),yG=gh,xG=J({name:"RadioButton",props:gh,setup:GP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),JP=40,e$=40;function MC(e){if(e.type==="selection")return e.width===void 0?JP:dn(e.width);if(e.type==="expand")return e.width===void 0?e$:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function wG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:JP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:e$);if(!("children"in e))return Ot(e.width)}function Yr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function IC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function CG(e){return e==="ascend"?1:e==="descend"?-1:0}function SG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function _G(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=wG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function kG(e,t,n){return typeof n=="function"?n(e,t):n||""}function Pv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $v(e){return"children"in e?!1:!!e.sorter}function t$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function FC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function DC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function RG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:DC(!1)}:Object.assign(Object.assign({},t),{order:DC(t.order)})}function n$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const PG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(ro),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Pv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Pv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Pv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(CP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Zo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(QP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(h0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function $G(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const TG=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(ro),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=$G(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Wa,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(pG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(sW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(PG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),OG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(ro),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),r$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),zG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},MG={name:"Icon",common:et,self:zG},IG=MG,FG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),i$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",FG,IG,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),v0="n-dropdown-menu",mh="n-dropdown",AC="n-dropdown-option";function Zg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function DG(e){return e.type==="group"}function a$(e){return e.type==="divider"}function AG(e){return e.type==="render"}const l$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(mh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(AC,null),g=Le(v0),y=Le(Ol),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Zg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=HD(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(AC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(s$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(i$,null,{default:()=>u(Ha,null)}):null)]),this.hasSubmenu?u(Hr,null,{default:()=>[u(jr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),BG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(v0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(mh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),EG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(BG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:a$(i)?u(r$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(l$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),LG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),s$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(mh);nt(v0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Zg(s,o));const{rawNode:l}=i;return Zg(l,o)})})});const r=D(null);return nt(oc,null),nt(ic,null),nt(Ol,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:AG(i)?u(LG,{tmNode:o,key:o.key}):a$(i)?u(r$,{clsPrefix:t,key:o.key}):DG(i)?u(EG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(l$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Pf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?O2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),NG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),HG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},jG=Object.keys(Ma),c$=Object.assign(Object.assign(Object.assign({},Ma),HG),Se.props),p0=J({name:"Dropdown",inheritAttrs:!1,props:c$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return no(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);kb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",NG,u0,e,h);nt(mh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:$k(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(s$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Wa,Object.assign({},mn(this.$props,jG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),d$="_n_all__",u$="_n_none__";function VG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case d$:n(!0);return;case u$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function UG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:d$};case"none":return{label:t.uncheckTableAll,key:u$};default:return n}}):[]}const WG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(ro),l=P(()=>VG(r.value,o,i,a)),s=P(()=>UG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(p0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(x2,null)})})}}});function Tv(e){return typeof e.title=="function"?e.title(e):e.title}const f$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(ro),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!$v(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=RG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=SG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=Yr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Zo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(WG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Tv(R)):U&&typeof U=="object"?u(f0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Tv(R)}):Tv(R)),$v(R)?u(vG,{column:R}):null),FC(R)?u(TG,{column:R,options:R.filterOptions}):null,t$(R)?u(OG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:n$(R,b),[`${t}-data-table-th--filterable`]:FC(R),[`${t}-data-table-th--sortable`]:$v(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),KG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(js(n,a),n,t):js(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(f0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),BC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(Ro,null,{default:()=>this.loading?u(to,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ha,null)})}))}}),qG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(ro);return()=>{const{rowKey:r}=e;return u(Zo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),YG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(ro);return()=>{const{rowKey:r}=e;return u(h0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function XG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const GG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),ZG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(ro),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:wl}),ut=!0}),Qs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?XG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:kG(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=Yr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(YG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(qG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(BC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(KG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(No,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:GG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(f$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ei,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Ar,{onResize:this.onResize},{default:b})}return p}}),QG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(ro),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(f$,{ref:"headerInstRef"}),u(ZG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function JG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function id(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function eZ(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?tZ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function tZ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function nZ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=id(p.sorter)||0;return(id(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=eZ(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*CG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&id(v.sorter)!==!1?(p=p.filter(b=>id(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function rZ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return no(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(IC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=nZ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=IC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function oZ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[Yr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=MC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[Yr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=MC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>Yr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(Yr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=Yr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)Yr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(Yr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&ka(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&ka(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function iZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){t$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function aZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:Yr(p),style:_G(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function lZ(e,t){const n=P(()=>aZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function sZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const EC=dZ(),cZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),EC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),EC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),ko(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),qo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function dZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const uZ=J({name:"DataTable",alias:["AdvancedTable"],props:YP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",cZ,uG,e,r),l=D(null),s=D("body");Zs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=iZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=lZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=rZ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=JG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=sZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=oZ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(ro,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Wr,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:To,[ye("fontSize",Ve)]:Qo,[ye("thPadding",Ve)]:Jo,[ye("tdPadding",Ve)]:ei}}=a.value;return{"--n-font-size":Qo,"--n-th-padding":Jo,"--n-td-padding":ei,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Wr,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":To}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(QG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(UP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(to,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),fZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},hZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},fZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},vZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:hZ},h$=vZ,pZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},gZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},pZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},mZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:h$,Scrollbar:hr},self:gZ},bZ=mZ;function yZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function xZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[0]),p=Uu(h[0]),b=Wu(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[1]),p=Uu(h[1]),b=Wu(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const bh="n-date-picker";function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qg={exports:{}},Jg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Jg,Jg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Jg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Qg,Qg.exports);const wZ=yh(Qg.exports);var em={exports:{}},tm={exports:{}},nm={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(nm,nm.exports);var Nr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Nr,Nr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Nr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}},Vo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Vo,Vo.exports);const CZ=yh(Vo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Vo.exports),r=i(Nr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(om,om.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(om.exports),r=i(Xn.exports),o=i(Vo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(rm,rm.exports);var im={exports:{}},am={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Nr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(am,am.exports);var lm={exports:{}},Ws={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Nr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})(zf,zf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(zf.exports),r=i(Ws.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Nr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(lm,lm.exports);var cm={exports:{}},Ks={exports:{}},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getDefaultOptions=SZ;Ka.setDefaultOptions=_Z;var v$={};function SZ(){return v$}function _Z(e){v$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Nr.exports),r=a(Xn.exports),o=a(Vo.exports),i=Ka;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Mf,Mf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Mf.exports),r=l(Xn.exports),o=l(Ks.exports),i=l(Vo.exports),a=Ka;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Nr.exports),r=a(Ks.exports),o=a(dm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(cm,cm.exports);var If={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(am.exports),r=c(lm.exports),o=c(zf.exports),i=c(cm.exports),a=c(Mf.exports),l=c(If.exports),s=c(um.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(im,im.exports);var fm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(fm,fm.exports);var Ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Ff,Ff.exports);const LC=yh(Ff.exports);var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.isProtectedDayOfYearToken=PZ;uc.isProtectedWeekYearToken=$Z;uc.throwProtectedError=TZ;var kZ=["D","DD"],RZ=["YY","YYYY"];function PZ(e){return kZ.indexOf(e)!==-1}function $Z(e){return RZ.indexOf(e)!==-1}function TZ(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hm={exports:{}},vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(mm,mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(mm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(gm,gm.exports);var bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(bm,bm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(xm,xm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(ym,ym.exports);var wm={exports:{}},Cm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Sm,Sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Cm.exports),r=o(Sm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(pm.exports),r=l(gm.exports),o=l(bm.exports),i=l(ym.exports),a=l(wm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(hm,hm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(tm.exports),r=v(rm.exports),o=v(Nr.exports),i=v(im.exports),a=v(fm.exports),l=v(Ff.exports),s=uc,c=v(Vo.exports),d=v(Xn.exports),f=Ka,h=v(hm.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(em,em.exports);const OZ=yh(em.exports);function NC(e,t,n){var r=IZ(e,n.timeZone,n.locale);return r.formatToParts?zZ(r,t):MZ(r,t)}function zZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function MZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function IZ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function FZ(e,t){var n=EZ(t);return n.formatToParts?AZ(n,e):BZ(n,e)}var DZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function AZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function BZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ov={};function EZ(e){if(!Ov[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Ov[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ov[e]}function p$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var HC=36e5,LZ=6e4,zv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function g0(e,t,n){var r,o;if(!e||(r=zv.timezoneZ.exec(e),r))return 0;var i;if(r=zv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),jC(i)?-(i*HC):NaN;if(r=zv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return jC(i,a)?(o=Math.abs(i)*HC+a*LZ,i>0?-o:o):NaN}if(jZ(e)){t=new Date(t||Date.now());var l=n?t:NZ(t),s=_m(l,e),c=n?s:HZ(t,s,e);return-c}return NaN}function NZ(e){return p$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _m(e,t){var n=FZ(e,t),r=p$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function HZ(e,t,n){var r=e.getTime(),o=r-t,i=_m(new Date(o),n);if(t===i)return t;o-=i-t;var a=_m(new Date(o),n);return i===a?i:Math.max(i,a)}function jC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var VC={};function jZ(e){if(VC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),VC[e]=!0,!0}catch{return!1}}var VZ=60*1e3,UZ={X:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return UC(o);case"XXXX":case"XX":return ll(o);case"XXXXX":case"XXX":default:return ll(o,":")}},x:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"x":return UC(o);case"xxxx":case"xx":return ll(o);case"xxxxx":case"xxx":default:return ll(o,":")}},O:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+WZ(o,":");case"OOOO":default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return NC("short",o,r);case"zzzz":default:return NC("long",o,r)}}};function Mv(e,t){var n=e?g0(e,t,!0)/VZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Df(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Df(Math.floor(o/60),2),a=Df(Math.floor(o%60),2);return r+i+n+a}function UC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Df(Math.abs(e)/60,2)}return ll(e,t)}function WZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Df(i,2)}const KZ=UZ;var qZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const YZ=qZ;var Iv=36e5,WC=6e4,XZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:YZ};function g$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?XZ:CZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=GZ(e),i=ZZ(o.date,r),a=i.year,l=i.restDateString,s=QZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=JZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=g0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=LC(new Date(c+d)),f=LC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function GZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function ZZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function QZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,qC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return nQ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return qC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,YC(t,i)?KC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return YC(t,i,s)?KC(t,i,s):new Date(NaN)}return null}function JZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Fv(n)?n%24*Iv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Fv(n,r)?n%24*Iv+r*WC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Fv(n,r,o)?n%24*Iv+r*WC+o*1e3:NaN}return null}function KC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var eQ=[31,28,31,30,31,30,31,31,30,31,30,31],tQ=[31,29,31,30,31,30,31,31,30,31,30,31];function m$(e){return e%400===0||e%4===0&&e%100!==0}function qC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=m$(e);if(r&&n>tQ[t]||!r&&n>eQ[t])return!1}return!0}function nQ(e,t){if(t<1)return!1;var n=m$(e);return!(n&&t>366||!n&&t>365)}function YC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Fv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var rQ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function oQ(e,t,n){var r=String(t),o=n||{},i=r.match(rQ);if(i){var a=g$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+KZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return OZ(e,r,o)}function iQ(e,t,n){var r=g$(e,n),o=g0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function b$(e,t,n,r){var o=wZ(r);return o.timeZone=t,oQ(iQ(e,t),n,o)}const rs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Dv(e){return`00${e}`.slice(-2)}function os(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Dv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Dv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Dv(r===12?12:r-12)):e}function ad(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function aQ(e,t,n){const r=os(rs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Dn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function lQ(e){return di(e)<12?"am":"pm"}const y$="n-time-picker",ld=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),sQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},cQ=J({name:"TimePickerPanel",props:sQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(y$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:lQ(Date.now());return os(rs.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return os(rs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return os(rs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return os(rs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u($o,{onFocus:this.onFocusDetectorFocus}))}}),dQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Av(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const x$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Av(e,23)},minutes:{type:[Number,Array],validator:e=>Av(e,59)},seconds:{type:[Number,Array],validator:e=>Av(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Af=J({name:"TimePicker",props:x$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",dQ,h$,e,n),h=kb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>b$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:ad(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!ad(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!ad(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:di(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&$a(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&($a(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(Xi(GU(new Date),se))):pe(tt(Xi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(vv(rH(new Date),se))):pe(tt(vv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(pv(Zb(new Date),se))):pe(tt(pv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=di(oe);se==="pm"&&Fe<12?pe(tt(Xi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(Xi(oe,Fe-12))),pe(tt(oe))}else{const oe=di($e);se==="pm"&&oe<12?pe(tt(Xi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(Xi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,Mr($e)){const{value:oe}=x;if(oe!==null){const Fe=jn(oe,{hours:di($e),minutes:Uu($e),seconds:Wu($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:di,minutes:Uu,seconds:Wu},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||ad($e[Ue](se),Ue,e[Ue])?$e[Ue](se):aQ($e[Ue](se),Ue,e[Ue])),Ze=pv(vv(Xi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(y$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:An(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u(In,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(dW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(cQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),uQ="HH:mm:ss",w$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:uQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function C$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(bh),l=P(()=>({locale:t.value.locale})),s=D(null),c=kb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const m0=Object.assign(Object.assign({},w$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function b0(e,t){const n=C$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(bh),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Of(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return qg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return Xg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Yg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(dh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Zb(B):t==="month"?Tr(B):t==="year"?Ub(B):t==="quarter"?Vs(B):Cl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(Mr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=jn(e.value,{year:Jt(N),month:qt(N),date:qr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(Mr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=jn(e.value,{year:Jt(B),month:qt(B),date:qr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=fu(e.defaultTime);te&&(N=tt(jn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?ZU(lC(N,B.dateObject.year),B.dateObject.quarter):jn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Qb(te,B.dateObject.month):lC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Mp(g.value,1))}function we(){g.value=tt(Mp(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ia})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Tf;y.value.scrollTo({top:te*Ia})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const S$=J({name:"MonthPanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=b0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"yearVlRef",items:this.yearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(eo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),kl=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(S$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),fQ=J({name:"DateTimePanel",props:m0,setup(e){return b0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(In,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Af,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Mi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(zi,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(eo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),y0=Object.assign(Object.assign({},w$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function x0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(bh),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=C$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Of(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Of(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>Xg(rl(e.value,"start"),ee.value)),ve=P(()=>Xg(rl(e.value,"end"),ee.value)),Z=P(()=>{const Re=rl(e.value,"start");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=rl(e.value,"end");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=rl(e.value,"start");return qg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=rl(e.value,"end");return qg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=fu(At[0]),Ut=fu(At[1])):(kt=fu(At),Ut=kt)}kt&&(Re=tt(jn(Re,kt))),Ut&&(Ye=tt(jn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Zb(Re):t==="monthrange"?Tr(Re):Cl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Mr(Ye))if(e.value){if(Array.isArray(e.value)){const at=jn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:qr(Ye)});ie($e(tt(at)))}}else{const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:qr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(Mr(Ye)){if(e.value===null){const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:qr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=jn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:qr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(Mr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:qr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[0],{year:Jt(Re),month:qt(Re),date:qr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(Mr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:qr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[1],{year:Jt(Re),month:qt(Re),date:qr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Tf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Tf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?jn(Re.ts,{month:qt(t==="quarterrange"?Vs(new Date):new Date)}).valueOf():jn(Re.ts,{month:qt(t==="quarterrange"?Vs(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Wr=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Wr=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Wr=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Wr?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const hQ=J({name:"DateTimeRangePanel",props:y0,setup(e){return x0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(In,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(In,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(eo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),vQ=J({name:"DatePanel",props:m0,setup(e){return b0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(eo,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),pQ=J({name:"DateRangePanel",props:y0,setup(e){return x0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(eo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),gQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},y0),{type:{type:String,required:!0}}),setup(e){const t=x0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Jm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(eo,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(eo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(eo,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u($o,{onFocus:this.handleFocusDetectorFocus}))}}),mQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),_$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),bQ=J({name:"DatePicker",props:_$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",mQ,bZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&($a(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&$a(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);Mr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);Mr(Te)&&Mr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=yZ(e,A),We=xZ(e,A);nt(bh,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Wr,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:To,calendarDaysHeight:Qo,calendarDaysTextColor:Jo,arrowSize:ei,panelHeaderPadding:Ni,calendarDividerColor:kh,calendarTitleGridTempateColumns:Rh,iconColor:Ph,iconColorDisabled:$h,scrollItemBorderRadius:Th,calendarTitleColorHover:Oh,[ye("calendarLeftPadding",ae)]:zh,[ye("calendarRightPadding",ae)]:Mh}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ni,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":zh,"--n-calendar-right-padding":Mh,"--n-calendar-title-color-hover":Oh,"--n-calendar-title-height":To,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Rh,"--n-calendar-days-height":Qo,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Jo,"--n-calendar-divider-color":kh,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Wr,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Th,"--n-arrow-size":ei,"--n-arrow-color":be,"--n-icon-color":Ph,"--n-icon-color-disabled":$h}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:An(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(fQ,Object.assign({},o),r):l==="daterange"?u(pQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(hQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(S$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(gQ,Object.assign({},o,{type:l})):u(vQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Hr,null,{default:()=>[u(jr,null,{default:()=>this.isRange?u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(vW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(sC,null)})])}):u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(sC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),yQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},xQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},yQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},wQ={name:"Descriptions",common:et,self:xQ},CQ=wQ,k$="DESCRIPTION_ITEM_FLAG";function SQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[k$]:!1}const _Q=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),ko(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),R$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),kQ=J({name:"Descriptions",props:R$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",_Q,CQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ri(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Fr(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>SQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Tx(g,"label")],k=[Tx(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||nc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),P$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},RQ=J({name:"DescriptionsItem",[k$]:!0,props:P$,render(){return null}}),PQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},$Q=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},PQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},TQ={name:"Dialog",common:et,peers:{Button:vr},self:$Q},$$=TQ,fc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},T$=Nn(fc),OQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),ko(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Ak(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),zQ={default:()=>u(Ii,null),info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null)},w0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),fc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",OQ,$$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):zQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Go,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),O$="n-dialog-provider",z$="n-dialog-api",M$="n-dialog-reactive-list",MQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},IQ={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:$$,Card:vP},self:MQ},FQ=IQ,C0=Object.assign(Object.assign({},a0),fc),DQ=Nn(C0),AQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},C0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),iR(P(()=>e.blockScroll&&r.value));const a=Le(Uk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(oc,t),nt(ic,null),nt(Ol,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Mu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Ob,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(w0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,T$),{"aria-modal":"true"}),e):this.preset==="card"?u(gP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,NY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),BQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Ho({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),I$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),C0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),F$=J({name:"Modal",inheritAttrs:!1,props:I$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",BQ,FQ,e,n),a=jk(64),l=Hk(),s=An(),c=e.internalDialog?Le(O$,null):null,d=aR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!d.value&&f(!1)}nt(Uk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,DQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(AQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),EQ=Object.assign(Object.assign({},fc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),LQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},EQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(F$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(w0,Object.assign({},mn(this.$props,T$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),D$={injectionKey:String,to:[String,Object]},A$=J({name:"DialogProvider",props:D$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Fi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(z$,a),nt(O$,{clickedRef:jk(64),clickPositionRef:Hk()}),nt(M$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(LQ,Aa(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function B$(){const e=Le(z$,null);return e===null&&Dn("use-dialog","No outer founded."),e}function NQ(){const e=Le(M$,null);return e===null&&Dn("use-dialog-reactive-list","No outer founded."),e}const HQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},jQ={name:"Divider",common:et,self:HQ},VQ=jQ,UQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),E$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),WQ=J({name:"Divider",props:E$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",UQ,VQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),KQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},qQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:KQ},YQ=qQ,XQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(Pb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return iR(P(()=>e.blockScroll&&t.value)),nt(ic,n),nt(Ol,null),nt(oc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:GQ,cubicBezierEaseOut:ZQ}=_r;function QQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${GQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${ZQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:JQ,cubicBezierEaseOut:eJ}=_r;function tJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${JQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${eJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:nJ,cubicBezierEaseOut:rJ}=_r;function oJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${nJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${rJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:iJ,cubicBezierEaseOut:aJ}=_r;function lJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${iJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${aJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const sJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[QQ(),tJ(),oJ(),lJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Ho({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),L$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),cJ=J({name:"Drawer",inheritAttrs:!1,props:L$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=An(),i=Se("Drawer","-drawer",sJ,YQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=aR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(Pb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(XQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),N$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},dJ=J({name:"DrawerContent",props:N$,setup(){const e=Le(Pb,null);e||Dn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Go,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),uJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},fJ=()=>uJ,hJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:fJ},vJ=hJ,S0="n-dynamic-input",pJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(S0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),gJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(S0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),mJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),sd=new WeakMap,H$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),bJ=J({name:"DynamicInput",props:H$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(Fu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",mJ,vJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=va($)?zt($):$;let z=sd.get(I);return z===void 0&&sd.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=va(A)?zt(A):A,j=va(R)?zt(R):R,E=sd.get(L);E!==void 0&&sd.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(S0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(_l,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},Ra(e.default,{value:r[y],index:y},()=>[s==="input"?u(pJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(gJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(o0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(b2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(nW,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(p2,null)})}):null]})))))}}),yJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},xJ=()=>yJ,wJ={name:"Space",self:xJ},j$=wJ;let Bv;const CJ=()=>{if(!rr)return!0;if(Bv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Bv=t}return Bv},V$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),U$=J({name:"Space",props:V$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,j$,e,t),o=Zt("Space",n,t);return{useGap:CJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=nD(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Fr(nc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),SJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:M2,Space:j$},self(){return{inputWidth:"64px"}}},_J=SJ,kJ=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),W$=Object.assign(Object.assign(Object.assign({},Se.props),I2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),RJ=J({name:"DynamicTags",props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",kJ,_J,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>mp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(U$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(ws,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(In,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}))}})}}),PJ={name:"Element",common:et},$J=PJ,K$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),XC=J({name:"Element",alias:["El"],props:K$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,$J,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${XR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),TJ={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},OJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},TJ),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},zJ={name:"Form",common:et,self:OJ},q$=zJ,MJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),hc="n-form",Y$="n-form-item-insts";var IJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),FJ=J({name:"Form",props:X$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",MJ,q$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return IJ(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Nn(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Nn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(hc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(Y$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e,t,n){return AJ()?vu=Reflect.construct.bind():vu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&qs(c,a.prototype),c},vu.apply(null,arguments)}function BJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!BJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return vu(r,arguments,km(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qs(o,r)},Rm(e)}var EJ=/%[sdj%]/g,LJ=function(){};typeof process<"u"&&process.env;function Pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function NJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||NJ(t)&&typeof e=="string"&&!e)}function HJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qJ())},hex:function(t){return typeof t=="string"&&!!t.match(eS.hex)}},YJ=function(t,n,r,o,i){if(t.required&&n===void 0){G$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?is[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},XJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},il="enum",GJ=function(t,n,r,o,i){t[il]=Array.isArray(t[il])?t[il]:[],t[il].indexOf(n)===-1&&o.push(mr(i.messages[il],t.fullField,t[il].join(", ")))},ZJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:G$,whitespace:KJ,type:YJ,range:XJ,enum:GJ,pattern:ZJ},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Fn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},nee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n)||Bt.type(t,n,o,a,i)}r(a)},ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},aee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},lee="enum",see=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[lee](t,n,o,a,i)}r(a)},cee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},dee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},uee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Ev=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),Fn(n,a)||Bt.type(t,n,o,l,i)}r(l)},fee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},Cs={string:QJ,method:JJ,number:eee,boolean:tee,regexp:nee,integer:ree,float:oee,array:iee,object:aee,enum:see,pattern:cee,date:dee,url:Ev,hex:Ev,email:Ev,required:uee,any:fee};function $m(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=$m(),vc=function(){function e(n){this.rules=null,this._messages=Tm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=JC($m(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function vee(e){const t=Le(hc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function pee(e){const t=Le(hc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=js(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:tS}=_r;function gee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=tS,leaveCubicBezier:i=tS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const mee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),gee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var nS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),Z$=Nn(pc);function rS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const _0=J({name:"FormItem",props:pc,setup(e){ED(Y$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(hc,null),o=hee(e),i=vee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=pee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",mee,q$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return nS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>nS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?js(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=rS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=rS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new vc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(Fu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),oS=1,Q$="n-grid",J$=1,Ys={span:{type:[Number,String],default:J$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},bee=Nn(Ys),Om=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ys,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Q$),i=Ko();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=J$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zm=Object.assign(Object.assign({},Ys),pc),iS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:zm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Om,mn(this.$.vnode.props||{},bee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),yee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),xee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),yee])]),eT="n-row",xh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},wee=Nn(xh),tT=J({name:"Row",props:xh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Ur("-legacy-grid",xee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(eT,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),wh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},Cee=Nn(wh),nT=J({name:"Col",props:wh,setup(e){const t=Le(eT,null);return t||Dn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),k0=Object.assign(Object.assign({},wh),pc),See=Nn(k0),rT=J({name:"FormItemCol",props:k0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(nT,mn(this.$props,Cee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),_ee=Object.assign(Object.assign({},xh),k0),kee=J({name:"FormItemRow",props:_ee,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,wee),{default:()=>{const e=mn(this.$props,See);return u(rT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),Ree=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Lr,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Wo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?cl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Qs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Pee=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},$ee={name:"GradientText",common:et,self:Pee},Tee=$ee,Oee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),oT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),zee=J({name:"GradientText",props:oT,setup(e){$b();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Oee,Tee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Mee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},iT=24,Lv="__ssr__",aT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:iT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Iee=J({name:"Grid",inheritAttrs:!1,props:aT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=JD((n==null?void 0:n.value)||Mee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(Vl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:iT}),c=it(()=>Vl(e.xGap.toString(),l.value)),d=it(()=>Vl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{ka(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Lv)&&(g.removeAttribute(Lv),b.value=!0)}),nt(Q$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Fr(nc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(vD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=Vl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:oS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:oS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=Vl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Lv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Ar,{onResize:this.handleResize},{default:e}):e()}}),Fee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Dee={name:"IconWrapper",common:et,self:Fee},Aee=Dee,Bee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),lT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Eee=J({name:"IconWrapper",props:lT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Bee,Aee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),R0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),sT="n-image";function Lee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Nee={name:"Image",common:et,peers:{Tooltip:vh},self:Lee},Hee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},jee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Hee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},Vee={name:"Notification",common:et,peers:{Scrollbar:hr},self:jee},Uee=Vee,Wee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Kee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Wee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},qee={name:"Message",common:et,self:Kee},Yee=qee,Xee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Gee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Xee},Zee=Gee,Qee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Jee={name:"Layout",common:et,peers:{Scrollbar:hr},self:Qee},Ch=Jee,ete=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},tte={name:"List",common:et,self:ete},nte=tte,rte=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},ote={name:"LoadingBar",common:et,self:rte},ite=ote,ate=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},lte={name:"Log",common:et,peers:{Scrollbar:hr,Code:kP},self:ate},ste=lte,cte=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},dte={name:"Mention",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:cte},ute=dte;function fte(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const hte=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},fte("#BBB",r,"#FFF","#AAA"))},vte={name:"Menu",common:et,peers:{Tooltip:vh,Dropdown:u0},self:hte},pte=vte,gte={titleFontSize:"18px",backSize:"22px"};function mte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},gte),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const bte={name:"PageHeader",common:et,self:mte},yte={iconSize:"22px"},xte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},yte),{fontSize:t,iconColor:n})},wte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Ua},self:xte},Cte=wte,Ste=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},_te={name:"Progress",common:et,self:Ste},cT=_te,kte=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},Rte={name:"Rate",common:et,self:kte},Pte=Rte,$te={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},Tte=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},$te),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},Ote={name:"Result",common:et,self:Tte},zte=Ote,Mte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Ite=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},Mte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Fte={name:"Slider",common:et,self:Ite},Dte=Fte,Ate=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Bte={name:"Spin",common:et,self:Ate},Ete=Bte,Lte=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Nte={name:"Statistic",common:et,self:Lte},Hte=Nte,jte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},Vte=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},jte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Ute={name:"Steps",common:et,self:Vte},Wte=Ute,Kte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},qte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Kte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},Yte={name:"Switch",common:et,self:qte},Xte=Yte,Gte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Zte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Gte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Qte={name:"Table",common:et,self:Zte},Jte=Qte,ene={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},tne=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},ene),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},nne={name:"Tabs",common:et,self:tne},rne=nne,one=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},ine={name:"Thing",common:et,self:one},ane=ine,lne={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},sne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},lne),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},cne={name:"Timeline",common:et,self:sne},dne=cne,une={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},fne=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},une),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},hne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:fne},vne=hne,pne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},gne={name:"Tree",common:et,peers:{Checkbox:Il,Scrollbar:hr,Empty:Bi},self:pne},dT=gne,mne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},bne={name:"TreeSelect",common:et,peers:{Tree:dT,Empty:Bi,InternalSelection:fh},self:mne},yne=bne,xne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},wne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},xne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},Cne={name:"Typography",common:et,self:wne},Li=Cne,Sne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},_ne={name:"Upload",common:et,peers:{Button:vr,Progress:cT},self:Sne},kne=_ne,Rne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Pne=Rne,$ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),Tne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),One=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),zne=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Ho()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Ho()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),dd=32,uT=J({name:"ImagePreview",props:Object.assign(Object.assign({},R0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",zne,Nee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,ka(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Gs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${XR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(ph,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:An(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(lc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>$ne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>Tne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(bW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(mW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(wW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(xW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(yW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>One}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ac,{enabled:this.show}]])):null}}))}}),fT="n-image-group",hT=R0,vT=J({name:"ImageGroup",props:hT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Ko(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(fT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),pT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},R0),gT=J({name:"Image",props:pT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(fT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(gl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=G2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(sT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:gl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:gl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Mne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Ine(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Nv(e){return e==null?!0:!Number.isNaN(e)}function aS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Hv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Fne=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),lS=800,sS=100,mT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Dne=J({name:"InputNumber",props:mT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Fne,Zee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Hv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Hv(e.min);return B!==null?B:null}),k=it(()=>{const B=Hv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&Ine(Z))return!1;const fe=(e.parse||Mne)(Z);if(fe===null)return N&&_(null),null;if(Nv(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Nv(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=aS(B,void 0):m.value=aS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},sS)},lS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},sS)},lS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=Bn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(eo,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(b2,null)})])}),r=()=>u(eo,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(_l,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(In,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),bT="n-layout-sider",Sh={type:String,default:"static"},Ane=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Mm={embedded:Boolean,position:Sh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function xT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Mm),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",Ane,Ch,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(yT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Mb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Bne=xT(!1),Ene=xT(!0),Lne=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),wT={position:Sh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Nne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),wT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Lne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Hne=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),CT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Sh,bordered:Boolean}),jne=J({name:"LayoutFooter",props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Hne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Vne=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Une=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Ha,null)}))}}),Wne=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ST={position:Sh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Kne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),ST),setup(e){const t=Le(yT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Mb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(bT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",Vne,Ch,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Wne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Une,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),qne={extraFontSize:"12px",width:"440px"},Yne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},qne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Xne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:Yne},Gne=Xne,gc="n-transfer",cS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(gc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Zo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),dS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(gc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:rc(r)},r))}}),uS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(dS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(Gf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(dS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),fS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(y2,null)})}))}});function Zne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Qne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Jne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Ho()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Qne]),_T=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),ere=J({name:"LegacyTransfer",props:_T,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Jne,Gne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Zne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(gc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(cS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Ha,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(e0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(cS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),tre=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),ko(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),kT=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),RT="n-list",nre=J({name:"List",props:kT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",tre,nte,e,t);nt(RT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),rre=J({name:"ListItem",setup(){const e=Le(RT,null);return e||Dn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),PT="n-loading-bar",$T="n-loading-bar-api",ore=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Ho({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var jv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function ud(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ire=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(PT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return jv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return jv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=ud(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=ud("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=ud("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=ud("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return jv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",ore,ite,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),TT=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),OT=J({name:"LoadingBarProvider",props:TT,setup(e){const t=An(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt($T,r),nt(PT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Js,{disabled:this.to===!1,to:this.to||"body"},u(ire,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function zT(){const e=Le($T,null);return e===null&&Dn("use-loading-bar","No outer founded."),e}const are=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(to,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),MT="n-log",lre=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(MT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),sre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),IT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),cre=J({name:"Log",props:IT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",sre,ste,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=xs(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(MT,{languageRef:xe(e,"language"),mergedHljsRef:h2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(PP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(lre,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(are,{clsPrefix:e}):null})])}}),mc="n-menu",P0="n-submenu",$0="n-menu-item-group",fd=8;function T0(e){const t=Le(mc),{props:n,mergedCollapsedRef:r}=t,o=Le(P0,null),i=Le($0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?fd:(p===void 0?v:p)+b+fd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const O0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},FT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),dre=J({name:"MenuOptionGroup",props:FT,setup(e){nt(P0,null);const t=T0(e);nt($0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(mc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>z0(s,r))))}}}),DT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(mc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(hW,null)}):null)}}),AT=Object.assign(Object.assign({},O0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),ure=J({name:"Submenu",props:AT,setup(e){const t=T0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(P0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt($0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(DT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(Po,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>z0(s,this.menuProps)))}});return this.root?u(p0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),BT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),fre=J({name:"MenuOption",props:BT,setup(e){const t=T0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(ph,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(DT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),hre=J({name:"MenuDivider",setup(){const e=Le(mc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),vre=Nn(FT),pre=Nn(BT),gre=Nn(AT);function ET(e){return e.type==="divider"||e.type==="render"}function mre(e){return e.type==="divider"}function z0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(ET(n))return mre(n)?u(hre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(dre,mn(s,vre,{tmNode:e,tmNodes:e.children,key:i})):u(ure,mn(s,gre,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(fre,mn(s,pre,{key:i,tmNode:e}))}const hS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],vS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],bre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",vS)]),F("selected",[Ji(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Ji(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ji("border-bottom: 2px solid var(--n-border-color-horizontal);",vS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",hS)]),F("selected",[Ji(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Ji(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Ji(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Ji(null,hS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[jo({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Ji(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const LT=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),yre=J({name:"Menu",props:LT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",bre,pte,e,t),o=Le(bT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return no(e.items||e.options,{getIgnored(I){return ET(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=Ri(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(mc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>z0(o,this.$props)))}});function xre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const wre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),Cre=J({name:"Mention",props:NT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",wre,ute,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>no(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=xre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:An(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(In,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Hr,null,{default:()=>[u(jr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(cc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),HT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},jT="n-message-api",VT="n-message-provider",Sre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[jo({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),_re={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},kre=J({name:"Message",props:Object.assign(Object.assign({},HT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(VT),i=Zt("Message",n,o),a=Se("Message","-message",Sre,Yee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=Rre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(Ro,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Go,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function Rre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(to,{clsPrefix:n,strokeWidth:24,scale:.85}):_re[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Pre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},HT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Po,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(kre,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),UT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),WT=J({name:"MessageProvider",props:UT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(VT,{props:e,mergedClsPrefixRef:t}),nt(jT,o);function i(s,c){const d=Cr(),f=Fi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Pre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Aa(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function KT(){const e=Le(jT,null);return e===null&&Dn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const _h="n-notification-provider",$re=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(_h),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),Tre={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},M0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Ore=Nn(M0),zre=J({name:"Notification",props:M0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(_h),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=yi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>Tre[this.type]()}):null):null,this.closable?u(Go,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),Mre=Object.assign(Object.assign({},M0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Ire=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Mre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(_h),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(zre,Object.assign({},mn(this.$props,Ore),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Fre=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[hd("top-right")]),F("top-left",` - left: 0; - `,[hd("top-left")]),F("bottom-right",` - right: 0; - `,[hd("bottom-right")]),F("bottom-left",` - left: 0; - `,[hd("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function hd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const qT="n-notification-api",YT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XT=J({name:"NotificationProvider",props:YT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Fi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Fre,Uee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(qT,c),nt(_h,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u($re,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Ire,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Aa(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function GT(){const e=Le(qT,null);return e===null&&Dn("use-notification","No outer `n-notification-provider` found."),e}const Dre=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),ZT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Are=J({name:"PageHeader",props:ZT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Dre,bte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(gW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),QT="n-popconfirm",JT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},pS=Nn(JT),Bre=J({name:"NPopconfirmPanel",props:JT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(QT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Ai,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Ere=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),eO=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Lre=J({name:"Popconfirm",props:eO,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Ere,Cte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(QT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Wa,Aa(t,pS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,pS);return u(Bre,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Nre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Hre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},jre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Hre[f]}))):null)}}}),Vre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Ure=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>Vre[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function gS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Wre=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),tO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),nO=J({name:"Progress",props:tO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Nre,cT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Ure,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(jre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Wre,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Kre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),qre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),rO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Yre=J({name:"Rate",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",qre,Pte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Pa(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},B5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Kre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Xre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Gre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Zre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Qre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Jre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),eoe={403:Qre,404:Xre,418:Zre,500:Gre,info:u(Ii,null),success:u(Va,null),warning:u(Ai,null),error:u(ja,null)},oO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),toe=J({name:"Result",props:oO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Jre,zte,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>eoe[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),iO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),noe=J({name:"Scrollbar",props:iO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),roe=noe,ooe=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},ioe={name:"Skeleton",common:et,self:ooe},aoe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),aO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),loe=J({name:"Skeleton",inheritAttrs:!1,props:aO,setup(e){$b();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",aoe,ioe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function mS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function bS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Zm(()=>e.value.clear()),[e,t]}const soe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),ko(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),qo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),coe=0,lO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),doe=J({name:"Slider",props:lO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",soe,Dte,e,t),i=D(null),[a,l]=bS(),[s,c]=bS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!mS(ne)&&ne.button!==coe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:An(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Hr,null,{default:()=>[u(jr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),uoe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ho()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),foe={small:20,medium:18,large:16},sO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),hoe=J({name:"Spin",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",uoe,Ete,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ri(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return foe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(to,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),voe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),cO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),poe=J({name:"Statistic",props:cO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",voe,Hte,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),goe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function moe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function boe(e){return e.map((t,n)=>moe(t,n))}const dO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),uO="n-steps",yoe=J({name:"Steps",props:dO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",goe,Wte,e,n);return nt(uO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},boe(Fr(nc(this))))}}),fO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},xoe=J({name:"Step",props:fO,setup(e){const t=Le(uO,null);t||Dn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(Ro,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Jb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(g2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),woe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),hO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Zl;const Coe=J({name:"Switch",props:hO,setup(e){Zl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Zl=CSS.supports("width","max(1px)"):Zl=!1:Zl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",woe,Xte,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Zl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(xa(s)&&xa(c)&&xa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(Ro,null,{default:()=>this.loading?u(to,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),Soe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),ko(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),qo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),vO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),_oe=J({name:"Table",props:vO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",Soe,Jte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),koe=J({name:"Th",render(){return u("th",null,this.$slots)}}),Roe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Poe=J({name:"Td",render(){return u("td",null,this.$slots)}}),$oe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),Toe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),I0="n-tabs",F0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ooe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:F0,setup(e){const t=Le(I0,null);return t||Dn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Aa(F0,["displayDirective"])),Bf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(I0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(_l,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Go,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),zoe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Moe=J({name:"Tabs",props:gO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",zoe,rne,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=Ri(e,["labelSize","size"]),g=Ri(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Fr(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=xs(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=xs(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=xs(X=>{pe(X.target)},64);nt(I0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),nh(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Fr(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Fr(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Vv(u(Bf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Vv(x!==0&&!m?wS(C):C))),!r&&o&&p?xS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Ar,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Bf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:wS(y)))):u(Ar,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(WA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?xS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yS(f,this.mergedValue,this.renderedNames)))}});function yS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(Gf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function xS(e,t){return u(Bf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function wS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Vv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Ioe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),mO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Foe=J({name:"Thing",props:mO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",Ioe,ane,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),bO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Doe=J({name:"Time",props:bO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>b$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):_H(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Or(this.renderedTime):u("time",[this.renderedTime])}}),CS=1.25,Aoe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${CS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${CS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),yO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),xO="n-timeline",Boe=J({name:"Timeline",props:yO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",Aoe,dne,e,n);return nt(xO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),wO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Eoe=J({name:"TimelineItem",props:wO,setup(e){const t=Le(xO);t||Dn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),$b();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),bc="n-transfer",SS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(bc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),_S=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(bc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:rc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Go,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(_S,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(_S,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),RS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(y2,null)})}))}});function Loe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Noe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),CO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Hoe=J({name:"Transfer",props:CO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Noe,vne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Loe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(bc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(SS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(RS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(SS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(RS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),D0="n-tree-select",yc="n-tree",joe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(yc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(Ro,null,{default:()=>{if(e.loading)return u(to,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(cW,null)})}})))}}}),Voe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(yc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Zo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Uoe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(yc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function PS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Woe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function SO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function li(e,t){return!!e.rawNode[t]}function _O(e,t,n,r){e==null||e.forEach(o=>{n(o),_O(o[t],t,n,r),r(o)})}function Koe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return _O(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function qoe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Yoe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(yc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>li(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Pk(e.key):void 0,y=b==="right",C=n?u(Voe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),Rk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(joe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Uoe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?PS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?PS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),kO=Yoe;function Xoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(D0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(kO,{clsPrefix:e,tmNode:t})))})}}),Zoe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[jo({duration:"0.2s"})]),F("collapse",[jo({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Qoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vd=30;function RO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const PO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},$O=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Woe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),PO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),TO=J({name:"Tree",props:$O,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Zoe,dT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:qoe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>no(e.showIrrelevantNodes?e.data:h.value.filteredTree,RO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(D0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=SO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Xoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Koe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return Qoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/vd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>C2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||li(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||li(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Wr}=N;let Et,cn;const To=Wr(De.key);if(To===null){We();return}let Qo=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[To-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Qo=!0,cn==="after"&&(Et=j.value[To+1],Et?cn="before":(Et=De,cn="inside")));const Jo=Et;if(Oe.value=Jo,!Qo&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let ei=Ce-be.clientX,Ni=0;for(;ei>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ni<1;)ei-=Vt,Ni+=1,Et=Et.parent;pe.value=Ni}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Jo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Pk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(yc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Goe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(kO,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=yi(C||"0");return u(Pf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(No,{ref:"virtualListInstRef",items:this.fNodes,itemSize:vd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(Pf,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ei,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function $S(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function TS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Joe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),OO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),PO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),eie=J({name:"TreeSelect",props:OO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>no(e.options,RO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?TS(ie,ze.getPath(ae).treeNodePath,Be,Ee):$S(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?TS($e,ze.getPath(se).treeNodePath,Be,Te):$S($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&($a(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(D0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}oh(o,dt);const ut=SO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Joe,yne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:An(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Hr,null,{default:()=>[u(jr,null,{default:()=>u(n0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(TO,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u($o,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),tie=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),oa=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Fl=e=>J({name:`H${e}`,props:oa,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",tie,Li,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),nie=Fl("1"),rie=Fl("2"),oie=Fl("3"),iie=Fl("4"),aie=Fl("5"),lie=Fl("6"),sie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),zO=Object.assign({},Se.props),cie=J({name:"A",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",sie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),die=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),MO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),uie=J({name:"P",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",die,Li,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),fie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),IO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),hie=J({name:"Blockquote",props:IO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",fie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),vie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),pie=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",vie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),OS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),zS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],FO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),OS,zS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),OS,zS])]),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),gie=J({name:"Ul",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),AO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),mie=J({name:"Ol",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),bie=J({name:"Li",render(){return u("li",null,this.$slots)}}),yie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),xie=J({name:"Text",props:BO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",yie,Li,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ri(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Dl="n-upload",EO="__UPLOAD_DRAGGER__",LO=J({name:"UploadDragger",[EO]:!0,setup(e,{slots:t}){const n=Le(Dl,null);return n||Dn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var NO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const HO=e=>e.includes("image/"),MS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},IS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,jO=e=>{if(e.type)return HO(e.type);const t=MS(e.name||"");if(IS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=MS(n);return!!(/^data:image\//.test(n)||IS.test(r))};function wie(e){return NO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!HO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const Cie=rr&&window.FileReader&&window.File;function Sie(e){return e.isDirectory}function _ie(e){return e.isFile}function kie(e,t){return NO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&Sie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else _ie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Xs(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function Rie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Pie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},A0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?kie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(LO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(_l,null)})])}):t)}}}),$ie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Dl).mergedThemeRef}},render(){return u(Po,null,{default:()=>this.show?u(nO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Tie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Oie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var zie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Mie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Dl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Pie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>zie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):jO(r)?u(st,{clsPrefix:e},{default:()=>Tie}):u(st,{clsPrefix:e},{default:()=>Oie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(gT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(rW,null)}));const s=u($ie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(m2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:pd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(Ro,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(iW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(uW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(pW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(aW,null)})}):null)),!a&&s)}}),VO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(Mie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(vT,Object.assign({},h.value),{default:p}):u(Po,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(A0,null,t))}}}),Iie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[jo(),S("progress",[jo({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var FS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Fie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Xs(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Xs(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Die(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Xs(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Xs(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Aie(e,t,n){const r=Fie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function UO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Bie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Eie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Lie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Eie(d,s,n),d.append(t,n.file),Aie(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Bie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const WO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Cie?jO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Nie=J({name:"Upload",props:WO,setup(e){e.abstract&&e.listType==="image-card"&&Dn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",Iie,kne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Xs));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?Rie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>FS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>FS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Die({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Lie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?wie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Dl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[EO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Js,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(A0,null,o),this.showFileList&&u(VO,null,o)))}}),Hie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function jie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const KO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Vie=J({name:"Watermark",props:KO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Hie,Pne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return nh(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=jie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else fD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Uie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Wie={message:KT,notification:GT,loadingBar:zT,dialog:B$};function Kie({providersAndProps:e,configProviderProps:t}){let r=F_(()=>u(IP,qv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,qv(c),{default:()=>u(Uie,{onSetup:()=>o[l]=Wie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function qie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:WT,props:n});break;case"notification":a.push({type:s,Provider:XT,props:o});break;case"dialog":a.push({type:s,Provider:A$,props:r});break;case"loadingBar":a.push({type:s,Provider:OT,props:i});break}}),Kie({providersAndProps:a,configProviderProps:t})}const qO={value:String,katex:Object,katexOptions:Object},Yie=J({name:"Equation",props:qO,setup(e){const t=Le(Lr),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),DS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:v2,affixProps:uh,NAlert:HK,alertProps:E2,NAnchor:ZK,anchorProps:N2,NAnchorLink:qK,anchorLinkProps:L2,NAutoComplete:gq,autoCompleteProps:X2,NAvatar:Kg,avatarProps:J2,NAvatarGroup:kq,avatarGroupProps:eP,NBackTop:Mq,backTopProps:tP,NBadge:Bq,badgeProps:nP,NBreadcrumb:Vq,breadcrumbProps:oP,NBreadcrumbItem:Kq,breadcrumbItemProps:iP,NButton:Pt,NxButton:eo,buttonProps:lP,NButtonGroup:o0,buttonGroupProps:dP,NCalendar:lY,calendarProps:uP,NColorPicker:DY,colorPickerProps:hP,NCard:gP,cardProps:pP,NCarousel:oX,carouselProps:yP,NCarouselItem:bP,NCascader:xX,cascaderProps:_P,NCheckbox:Zo,checkboxProps:SP,NCheckboxGroup:CP,checkboxGroupProps:wP,NCode:PP,codeProps:RP,NCollapse:$X,collapseProps:$P,NCollapseItem:OX,collapseItemProps:OP,NCollapseTransition:DX,collapseTransitionProps:zP,NConfigProvider:IP,configProviderProps:MP,NCountdown:AX,countdownProps:FP,NNumberAnimation:LX,numberAnimationProps:DP,NDataTable:uZ,dataTableProps:YP,NDatePicker:bQ,datePickerProps:_$,NDescriptions:kQ,descriptionsProps:R$,NDescriptionsItem:RQ,descriptionsItemProps:P$,NDialog:w0,dialogProps:fc,NDialogProvider:A$,dialogProviderProps:D$,useDialog:B$,useDialogReactiveList:NQ,NDivider:WQ,dividerProps:E$,NDrawer:cJ,drawerProps:L$,NDrawerContent:dJ,drawerContentProps:N$,NDropdown:p0,dropdownProps:c$,NDynamicInput:bJ,dynamicInputProps:H$,NDynamicTags:RJ,dynamicTagsProps:W$,NElement:XC,elementProps:K$,NEl:XC,NEllipsis:f0,ellipsisProps:qP,NEmpty:Ei,emptyProps:R2,NForm:FJ,formProps:X$,NFormItem:_0,formItemProps:pc,NFormItemGridItem:iS,NFormItemGi:iS,formItemGiProps:zm,formItemGridItemProps:zm,NFormItemCol:rT,NFormItemRow:kee,NGlobalStyle:Ree,NGradientText:zee,gradientTextProps:oT,NGrid:Iee,gridProps:aT,NGridItem:Om,gridItemProps:Ys,NGi:Om,giProps:Ys,NIcon:i$,iconProps:o$,NIconWrapper:Eee,iconWrapperProps:lT,NImage:gT,imageProps:pT,NImageGroup:vT,imageGroupProps:hT,NInput:In,inputProps:U2,NInputGroup:K2,inputGroupProps:W2,NInputGroupLabel:dq,inputGroupLabelProps:q2,NInputNumber:Dne,inputNumberProps:mT,NLayout:Bne,layoutProps:Mm,layoutContentProps:Mm,NLayoutContent:Ene,NLayoutHeader:Nne,layoutHeaderProps:wT,NLayoutFooter:jne,layoutFooterProps:CT,NLayoutSider:Kne,layoutSiderProps:ST,NRow:tT,rowProps:xh,NCol:nT,colProps:wh,NLegacyTransfer:ere,legacyTransferProps:_T,NList:nre,listProps:kT,NListItem:rre,NLoadingBarProvider:OT,loadingBarProviderProps:TT,useLoadingBar:zT,NLog:cre,logProps:IT,NMenu:yre,menuProps:LT,NMention:Cre,mentionProps:NT,NMessageProvider:WT,messageProviderProps:UT,useMessage:KT,NModal:F$,modalProps:I$,NNotificationProvider:XT,notificationProviderProps:YT,useNotification:GT,NPageHeader:Are,pageHeaderProps:ZT,NPagination:UP,paginationProps:VP,NPopconfirm:Lre,popconfirmProps:eO,NPopover:Wa,popoverProps:z2,NPopselect:EP,popselectProps:BP,NProgress:nO,progressProps:tO,NRadio:h0,radioProps:gh,NRadioGroup:QP,radioGroupProps:ZP,NRadioButton:xG,radioButtonProps:yG,NRate:Yre,rateProps:rO,NResult:toe,resultProps:oO,NScrollbar:roe,scrollbarProps:iO,NSelect:HP,selectProps:NP,NSkeleton:loe,skeletonProps:aO,NSlider:doe,sliderProps:lO,NSpace:U$,spaceProps:V$,NSpin:hoe,spinProps:sO,NStatistic:poe,statisticProps:cO,NSteps:yoe,stepsProps:dO,NStep:xoe,stepProps:fO,NSwitch:Coe,switchProps:hO,NTable:_oe,tableProps:vO,NTh:koe,NTr:Roe,NTd:Poe,NThead:$oe,NTbody:Toe,NTabs:Moe,tabsProps:gO,NTabPane:Ooe,tabPaneProps:F0,NTab:Bf,tabProps:pO,NTag:ws,tagProps:F2,NThing:Foe,thingProps:mO,NTime:Doe,timeProps:bO,NTimePicker:Af,timePickerProps:x$,NTimeline:Boe,timelineProps:yO,NTimelineItem:Eoe,timelineItemProps:wO,NTooltip:ph,tooltipProps:KP,NTransfer:Hoe,transferProps:CO,NTree:TO,treeProps:$O,NTreeSelect:eie,treeSelectProps:OO,NH1:nie,NH2:rie,NH3:oie,NH4:iie,NH5:aie,NH6:lie,h1Props:oa,h2Props:oa,h3Props:oa,h4Props:oa,h5Props:oa,h6Props:oa,NA:cie,aProps:zO,NP:uie,pProps:MO,NBlockquote:hie,blockquoteProps:IO,NHr:pie,NUl:gie,ulProps:DO,NOl:mie,olProps:AO,NLi:bie,NText:xie,textProps:BO,NUpload:Nie,uploadProps:WO,NUploadDragger:LO,NUploadTrigger:A0,NUploadFileList:VO,NWatermark:Vie,watermarkProps:KO,createDiscreteApi:qie,NEquation:Yie,equationProps:qO},Symbol.toStringTag,{value:"Module"})),Xie="2.34.3";function Gie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Xie,componentPrefix:e,install:o}}const YO=Gie({components:Object.keys(DS).map(e=>DS[e])}),Zie=YO;YO.install;const XO=F_(QF);XO.use(Zie);XO.mount("#app")});export default Qie(); diff --git a/docs/assets/index.a94c2fb2.js b/docs/assets/index.a94c2fb2.js deleted file mode 100644 index e839016..0000000 --- a/docs/assets/index.a94c2fb2.js +++ /dev/null @@ -1,6855 +0,0 @@ -var fz=Object.defineProperty;var hz=(e,t,n)=>t in e?fz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(hz(e,typeof t!="symbol"?t+"":t,n),n);var qie=vz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function zm(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Xs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(gz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Mm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},wz=()=>!1,Cz=/^on[^a-z]/,Df=e=>Cz.test(e),Im=e=>e.startsWith("onUpdate:"),En=Object.assign,Fm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Sz=Object.prototype.hasOwnProperty,Ht=(e,t)=>Sz.call(e,t),Rt=Array.isArray,is=e=>Af(e)==="[object Map]",_z=e=>Af(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Dm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",DS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),kz=Object.prototype.toString,Af=e=>kz.call(e),Rz=e=>Af(e).slice(8,-1),Pz=e=>Af(e)==="[object Object]",Am=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vd=zm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$z=/-(\w)/g,bo=Bf(e=>e.replace($z,(t,n)=>n?n.toUpperCase():"")),Tz=/\B([A-Z])/g,kl=Bf(e=>e.replace(Tz,"-$1").toLowerCase()),Ef=Bf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oh=Bf(e=>e?`on${Ef(e)}`:""),Cs=(e,t)=>!Object.is(e,t),zh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Oz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let D0;const Mz=()=>D0||(D0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Iz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},AS=e=>(e.w&xi)>0,BS=e=>(e.n&xi)>0,Az=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Am(n)&&l.push(a.get("length")):(l.push(a.get(da)),is(e)&&l.push(a.get(Vv)));break;case"delete":Rt(e)||(l.push(a.get(da)),is(e)&&l.push(a.get(Vv)));break;case"set":is(e)&&l.push(a.get(da));break}if(l.length===1)l[0]&&Uv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Uv(Bm(s))}}function Uv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&B0(r);for(const r of n)r.computed||B0(r)}function B0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Ez(e,t){var n;return(n=hu.get(e))===null||n===void 0?void 0:n.get(t)}const Lz=zm("__proto__,__v_isRef,__isVue"),NS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dm)),Nz=Lm(),Hz=Lm(!1,!0),jz=Lm(!0),E0=Vz();function Vz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Rl();const r=zt(this)[t].apply(this,n);return Pl(),r}}),e}function Uz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Lm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?a5:WS:t?US:VS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(E0,o))return Reflect.get(E0,o,i);if(o==="hasOwnProperty")return Uz}const l=Reflect.get(r,o,i);return(Dm(o)?NS.has(o):Lz(o))||(e||dr(r,"get",o),t)?l:jn(l)?a&&Am(o)?l:l.value:vn(l)?e?yo(l):Mi(l):l}}const Wz=HS(),Kz=HS(!0);function HS(e=!1){return function(n,r,o,i){let a=n[r];if(gl(a)&&jn(a)&&!jn(o))return!1;if(!e&&(!vu(o)&&!gl(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&jn(a)&&!jn(o)))return a.value=o,!0;const l=Rt(n)&&Am(r)?Number(r)e,Lf=e=>Reflect.getPrototypeOf(e);function yc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=Lf(o),l=r?Nm:n?Vm:Ss;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function xc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function wc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",da),Reflect.get(e,"size",e)}function L0(e){e=zt(e);const t=zt(this);return Lf(t).has.call(t,e)||(t.add(e),Bo(t,"add",e,e)),this}function N0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=Lf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Cs(t,a)&&Bo(n,"set",e,t):Bo(n,"add",e,t),this}function H0(e){const t=zt(this),{has:n,get:r}=Lf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Bo(t,"delete",e,void 0),i}function j0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Bo(e,"clear",void 0,void 0),n}function Cc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?Nm:e?Vm:Ss;return!e&&dr(l,"iterate",da),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function Sc(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=is(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?Nm:t?Vm:Ss;return!t&&dr(i,"iterate",s?Vv:da),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function Jo(e){return function(...t){return e==="delete"?!1:this}}function Qz(){const e={get(i){return yc(this,i)},get size(){return wc(this)},has:xc,add:L0,set:N0,delete:H0,clear:j0,forEach:Cc(!1,!1)},t={get(i){return yc(this,i,!1,!0)},get size(){return wc(this)},has:xc,add:L0,set:N0,delete:H0,clear:j0,forEach:Cc(!1,!0)},n={get(i){return yc(this,i,!0)},get size(){return wc(this,!0)},has(i){return xc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Cc(!0,!1)},r={get(i){return yc(this,i,!0,!0)},get size(){return wc(this,!0)},has(i){return xc.call(this,i,!0)},add:Jo("add"),set:Jo("set"),delete:Jo("delete"),clear:Jo("clear"),forEach:Cc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Sc(i,!1,!1),n[i]=Sc(i,!0,!1),t[i]=Sc(i,!1,!0),r[i]=Sc(i,!0,!0)}),[e,n,t,r]}const[Jz,e5,t5,n5]=Qz();function Hm(e,t){const n=t?e?n5:t5:e?e5:Jz;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const r5={get:Hm(!1,!1)},o5={get:Hm(!1,!0)},i5={get:Hm(!0,!1)},VS=new WeakMap,US=new WeakMap,WS=new WeakMap,a5=new WeakMap;function l5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function s5(e){return e.__v_skip||!Object.isExtensible(e)?0:l5(Rz(e))}function Mi(e){return gl(e)?e:jm(e,!1,jS,r5,VS)}function c5(e){return jm(e,!1,Zz,o5,US)}function yo(e){return jm(e,!0,Gz,i5,WS)}function jm(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=s5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ua(e){return gl(e)?ua(e.__v_raw):!!(e&&e.__v_isReactive)}function gl(e){return!!(e&&e.__v_isReadonly)}function vu(e){return!!(e&&e.__v_isShallow)}function fa(e){return ua(e)||gl(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function pu(e){return fu(e,"__v_skip",!0),e}const Ss=e=>vn(e)?Mi(e):e,Vm=e=>vn(e)?yo(e):e;function KS(e){hi&&Yr&&(e=zt(e),LS(e.dep||(e.dep=Bm())))}function qS(e,t){e=zt(e);const n=e.dep;n&&Uv(n)}function jn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return XS(e,!1)}function YS(e){return XS(e,!0)}function XS(e,t){return jn(e)?e:new d5(e,t)}class d5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:Ss(t)}get value(){return KS(this),this._value}set value(t){const n=this.__v_isShallow||vu(t)||gl(t);t=n?t:zt(t),Cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ss(t),qS(this))}}function Wv(e){return jn(e)?e.value:e}const u5={get:(e,t,n)=>Wv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return jn(o)&&!jn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function GS(e){return ua(e)?e:new Proxy(e,u5)}class f5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ez(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return jn(r)?r:new f5(e,t,n)}var ZS;class h5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[ZS]=!1,this._dirty=!0,this.effect=new Em(t,()=>{this._dirty||(this._dirty=!0,qS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return KS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}ZS="__v_isReadonly";function v5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new h5(r,o,i||!o,n)}function vi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Nf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=vi(e,t,n,r);return i&&DS(i)&&i.catch(a=>{Nf(a,t,n)}),i}const o=[];for(let i=0;i>>1;ks(Qn[r])uo&&Qn.splice(t,1)}function b5(e){Rt(e)?dl.push(...e):(!Io||!Io.includes(e,e.allowRecurse?ra+1:ra))&&dl.push(e),JS()}function V0(e,t=_s?uo+1:0){for(;tks(n)-ks(r)),ra=0;rae.id==null?1/0:e.id,y5=(e,t)=>{const n=ks(e)-ks(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function t_(e){Kv=!1,_s=!0,Qn.sort(y5);const t=Zr;try{for(uo=0;uoPn(v)?v.trim():v)),f&&(o=n.map(Oz))}let l,s=r[l=Oh(t)]||r[l=Oh(bo(t))];!s&&i&&(s=r[l=Oh(kl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function n_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=n_(c,t,!0);d&&(l=!0,En(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):En(a,i),vn(e)&&r.set(e,a),a)}function Hf(e,t){return!e||!Df(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,kl(t))||Ht(e,t))}let Vn=null,r_=null;function gu(e){const t=Vn;return Vn=e,r_=e&&e.type.__scopeId||null,t}function o_(e,t=Vn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ey(-1);const i=gu(t);let a;try{a=e(...o)}finally{gu(i),r._d&&ey(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Mh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=gu(e);try{if(n.shapeFlag&4){const x=o||r;m=so(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=so(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:w5(s)}}catch(x){cs.length=0,Nf(x,e,1),m=Un(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Im)&&(g=C5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,gu(y),m}const w5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Df(n))&&((t||(t={}))[n]=e[n]);return t},C5=(e,t)=>{const n={};for(const r in e)(!Im(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function S5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?U0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function R5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):b5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Vn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Km(e,null,t)}const _c={};function rt(e,t,n){return Km(e,t,n)}function Km(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Dz()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(jn(e)?(s=()=>e.value,c=vu(e)):ua(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ua(C)||vu(C)),s=()=>e.map(C=>{if(jn(C))return C.value;if(ua(C))return aa(C);if(Tt(C))return vi(C,l,2)})):Tt(e)?t?s=()=>vi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>aa(C())}let f,h=C=>{f=g.onStop=()=>{vi(C,l,4)}},v;if(Os)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(_c):_c;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Cs(x,p[w])):Cs(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===_c?void 0:d&&p[0]===_c?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>Wm(b));const g=new Em(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Fm(l.scope.effects,g)};return v&&v.push(y),y}function P5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?i_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;ml(this);const l=Km(o,i.bind(r),n);return a?ml(a):ha(),l}function i_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{aa(n,t)});else if(Pz(e))for(const n in e)aa(e[n],t);return e}function a_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],$5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Uo(),r=a_();let o;return()=>{const i=t.default&&qm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ih(a);const c=W0(a);if(!c)return Ih(a);const d=Rs(c,l,r,n);Ps(c,d);const f=n.subTree,h=f&&W0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!oa(c,h)||v)){const b=Rs(h,l,r,n);if(Ps(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ih(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=s_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},l_=$5;function s_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Rs(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=s_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&oa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Rs(T,t,n,r)}};return _}function Ih(e){if(jf(e))return e=nr(e),e.children=null,e}function W0(e){return jf(e)?e.children?e.children[0]:void 0:e}function Ps(e,t){e.shapeFlag&6&&e.component?Ps(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,jf=e=>e.type.__isKeepAlive;function Ym(e,t){c_(e,"a",t)}function Gs(e,t){c_(e,"da",t)}function c_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Vf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)jf(o.parent.vnode)&&T5(r,t,n,o),o=o.parent}}function T5(e,t,n,r){const o=Vf(t,e,r,!0);Zs(()=>{Fm(r[t],o)},n)}function Vf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Rl(),ml(n);const l=Mr(t,n,e,a);return ha(),Pl(),l});return r?o.unshift(i):o.push(i),i}}const jo=e=>(t,n=wn)=>(!Os||e==="sp")&&Vf(e,(...r)=>t(...r),n),Vo=jo("bm"),Mt=jo("m"),Xm=jo("bu"),Gm=jo("u"),Dt=jo("bum"),Zs=jo("um"),O5=jo("sp"),z5=jo("rtg"),M5=jo("rtc");function I5(e,t=wn){Vf("ec",e,t)}function sn(e,t){const n=Vn;if(n===null)return e;const r=Kf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lTs(t)?!(t.type===xr||t.type===$t&&!u_(t.children)):!0)?e:null}const qv=e=>e?S_(e)?Kf(e)||e.proxy:qv(e.parent):null,ls=En(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>qv(e.parent),$root:e=>qv(e.root),$emit:e=>e.emit,$options:e=>Qm(e),$forceUpdate:e=>e.f||(e.f=()=>Wm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>P5.bind(e)}),Dh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),B5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Dh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Yv&&(a[t]=0)}}const d=ls[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Dh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Dh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ls,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Yv=!0;function E5(e){const t=Qm(e),n=e.proxy,r=e.ctx;Yv=!1,t.beforeCreate&&q0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&L5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Mi(U))}if(Yv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)f_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&q0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Vo,f),E(Mt,h),E(Xm,v),E(Gm,p),E(Ym,b),E(Gs,m),E(I5,T),E(M5,k),E(z5,_),E(Dt,y),E(Zs,x),E(O5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function L5(e,t,n=Zr,r=!1){Rt(e)&&(e=Xv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),jn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function q0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function f_(e,t,n,r){const o=r.includes(".")?i_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>f_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function Qm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>mu(s,c,a,!0)),mu(s,t,a)),vn(t)&&i.set(t,s),s}function mu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&mu(e,i,n,!0),o&&o.forEach(a=>mu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=N5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const N5={data:Y0,props:Qi,emits:Qi,methods:Qi,computed:Qi,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:Qi,directives:Qi,watch:j5,provide:Y0,inject:H5};function Y0(e,t){return t?e?function(){return En(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function H5(e,t){return Qi(Xv(e),Xv(t))}function Xv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=v_(f,t,!0);En(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,cl),cl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function X0(e){return e[0]!=="$"}function G0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Z0(e,t){return G0(e)===G0(t)}function Q0(e,t){return Rt(t)?t.findIndex(n=>Z0(n,e)):Tt(t)&&Z0(t,e)?0:-1}const p_=e=>e[0]==="_"||e==="$stable",Jm=e=>Rt(e)?e.map(so):[so(e)],W5=(e,t,n)=>{if(t._n)return t;const r=o_((...o)=>Jm(t(...o)),n);return r._c=!1,r},g_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(p_(o))continue;const i=e[o];if(Tt(i))t[o]=W5(o,i,r);else if(i!=null){const a=Jm(i);t[o]=()=>a}}},m_=(e,t)=>{const n=Jm(t);e.slots.default=()=>n},K5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),fu(t,"_",n)):g_(t,e.slots={})}else e.slots={},t&&m_(e,t);fu(e.slots,Wf,1)},q5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(En(o,t),!n&&l===1&&delete o._):(i=!t.$stable,g_(t,o)),a=t}else t&&(m_(e,t),a={default:1});if(i)for(const l in o)!p_(l)&&!(l in a)&&delete o[l]};function b_(){return{app:null,config:{isNativeTag:wz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Y5=0;function X5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=b_(),a=new Set;let l=!1;const s=i.app={_uid:Y5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:k_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=Un(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Kf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Zv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Zv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(as(r)&&!o)return;const i=r.shapeFlag&4?Kf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):jn(c)&&(c.value=null)),Tt(s))vi(s,l,12,[a,d]);else{const h=Pn(s),v=jn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Fm(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=R5;function G5(e){return Z5(e)}function Z5(e,t){const n=Mz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!oa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case Uf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Ah:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Zv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Li(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!vd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&no(Z,ce,H)}Ae&&Li(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&no(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Li(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&Ni(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&no(Pe,Y,W,H),fe&&Li(W,H,Y,"beforeUpdate"),Y&&Ni(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&no(Pe,Y,W,H),fe&&Li(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!vd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(vd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&eb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(jf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=Un(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(S5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,m5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;Ni(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&zh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&no(qe,Pe,fe,Ae),Ni(H,!0);const ct=Mh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&_5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>no(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=as(W);if(Ni(H,!1),Pe&&zh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&no(fe,Ke,W),Ni(H,!0),ne&&Me){const ct=()=>{H.subTree=Mh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Mh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>no(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&as(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Em(te,()=>Wm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,Ni(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,U5(H,W.props,ce,Y),q5(H,W.children,Y),Rl(),V0(),Pl()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||cl,W=W||cl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?ai(W[Z]):so(W[Z]);if(oa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?ai(W[ge]):so(W[ge]);if(oa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?ai(W[Z]):so(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&oa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?Q5(Xe):cl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Zv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!as(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&no(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Li(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&no(Ke,W,H),Pe&&Li(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Ah){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&zh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),V0(),e_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:X5(Oe,pe)}}function Ni({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function eb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const J5=e=>e.__isTeleport,ss=e=>e&&(e.disabled||e.disabled===""),J0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Qv=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},e3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=ss(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=Qv(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||J0(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=ss(e.props),$=T?n:k,R=T?w:_;if(a=a||J0(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),eb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||kc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=Qv(t.props,p);I&&kc(t,I,null,c,0)}else T&&kc(t,k,_,c,1)}y_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!ss(h))&&(i(c),l&16))for(let v=0;v0?Xr||cl:null,n3(),$s>0&&Xr&&Xr.push(e),e}function w_(e,t,n,r,o){return r3(Un(e,t,n,r,o,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function oa(e,t){return e.type===t.type&&e.key===t.key}const Wf="__vInternal",C_=({key:e})=>e!=null?e:null,pd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||jn(e)||Tt(e)?{i:Vn,r:e,k:t,f:!!n}:e:null;function o3(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C_(t),ref:t&&pd(t),scopeId:r_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Vn};return l?(tb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),$s>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const Un=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===F5)&&(e=xr),Ts(e)){const l=nr(e,t,!0);return n&&tb(l,n),$s>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Mm(l)),vn(s)&&(fa(s)&&!Rt(s)&&(s=En({},s)),t.style=Xs(s))}const a=Pn(e)?1:k5(e)?128:J5(e)?64:vn(e)?4:Tt(e)?2:0;return o3(e,t,n,r,o,a,i,!0)}function a3(e){return e?fa(e)||Wf in e?En({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&C_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(pd(t)):[o,pd(t)]:pd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wa(e=" ",t=0){return Un(Uf,null,e,t)}function so(e){return e==null||typeof e=="boolean"?Un(xr):Rt(e)?Un($t,null,e.slice()):typeof e=="object"?ai(e):Un(Uf,null,String(e))}function ai(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function tb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),tb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Wf in t)?t._ctx=Vn:o===3&&Vn&&(Vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Vn},n=32):(t=String(t),r&64?(n=16,t=[wa(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Vn,ml=e=>{wn=e,e.scope.on()},ha=()=>{wn&&wn.scope.off(),wn=null};function S_(e){return e.vnode.shapeFlag&4}let Os=!1;function d3(e,t=!1){Os=t;const{props:n,children:r}=e.vnode,o=S_(e);V5(e,n,o,t),K5(e,r);const i=o?u3(e,t):void 0;return Os=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pu(new Proxy(e.ctx,B5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;ml(e),Rl();const i=vi(r,e,0,[e.props,o]);if(Pl(),ha(),DS(i)){if(i.then(ha,ha),t)return i.then(a=>{ty(e,a,t)}).catch(a=>{Nf(a,e,0)});e.asyncDep=i}else ty(e,i,t)}else __(e,t)}function ty(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=GS(t)),__(e,n)}let ny;function __(e,t,n){const r=e.type;if(!e.render){if(!t&&ny&&!r.render){const o=r.template||Qm(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=En(En({isCustomElement:i,delimiters:l},a),s);r.render=ny(o,c)}}e.render=r.render||Zr}ml(e),Rl(),E5(e),Pl(),ha()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Kf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(GS(pu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ls)return ls[n](e)},has(t,n){return n in t||n in ls}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>v5(e,t,Os);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Ts(t)?Un(e,null,[t]):Un(e,t):Un(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),Un(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),k_="3.2.47",b3="http://www.w3.org/2000/svg",ia=typeof document<"u"?document:null,ry=ia&&ia.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?ia.createElementNS(b3,e):ia.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ia.createTextNode(e),createComment:e=>ia.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ia.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{ry.innerHTML=r?`${e}`:e;const l=ry.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&Jv(r,i,"");for(const i in n)Jv(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const oy=/\s*!important$/;function Jv(e,t,n){if(Rt(n))n.forEach(r=>Jv(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);oy.test(n)?e.setProperty(kl(r),n.replace(oy,""),"important"):e[r]=n}}const iy=["Webkit","Moz","ms"],Bh={};function C3(e,t){const n=Bh[t];if(n)return n;let r=bo(t);if(r!=="filter"&&r in e)return Bh[t]=r;r=Ef(r);for(let o=0;oEh||(T3.then(()=>Eh=0),Eh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Df(t)?Im(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&sy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||sy.test(t)&&Pn(n)?!1:t in e}const ei="transition",Dl="animation",It=(e,{slots:t})=>u(l_,P_(e),t);It.displayName="Transition";const R_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=En({},l_.props,R_),Hi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},cy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function P_(e){const t={};for(const z in e)z in R_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{oi(z,A?d:l),oi(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,oi(z,f),oi(z,v),oi(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Hi(j,[A,E]),dy(()=>{oi(A,z?s:i),Oo(A,z?d:l),cy(j)||uy(A,r,b,E)})};return En(t,{onBeforeEnter(z){Hi(g,[z]),Oo(z,i),Oo(z,a)},onBeforeAppear(z){Hi(k,[z]),Oo(z,s),Oo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);Oo(z,f),T_(),Oo(z,h),dy(()=>{!z._isLeaving||(oi(z,f),Oo(z,v),cy(x)||uy(z,r,m,L))}),Hi(x,[z,L])},onEnterCancelled(z){$(z,!1),Hi(C,[z])},onAppearCancelled(z){$(z,!0),Hi(T,[z])},onLeaveCancelled(z){R(z),Hi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Lh(e.enter),Lh(e.leave)];{const t=Lh(e);return[t,t]}}function Lh(e){return zz(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function dy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function uy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=$_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ei}Delay`),i=r(`${ei}Duration`),a=fy(o,i),l=r(`${Dl}Delay`),s=r(`${Dl}Duration`),c=fy(l,s);let d=null,f=0,h=0;t===ei?a>0&&(d=ei,f=a,h=i.length):t===Dl?c>0&&(d=Dl,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ei:Dl:null,h=d?d===ei?i.length:s.length:0);const v=d===ei&&/\b(transform|all)(,|$)/.test(r(`${ei}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function fy(e,t){for(;e.lengthhy(n)+hy(e[r])))}function hy(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function T_(){return document.body.offsetHeight}const O_=new WeakMap,z_=new WeakMap,M_={name:"TransitionGroup",props:En({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Uo(),r=a_();let o,i;return Gm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);T_(),l.forEach(s=>{const c=s.el,d=c.style;Oo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,oi(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=P_(a);let s=a.tag||$t;o=i,i=t.default?qm(t.default()):[];for(let c=0;cdelete e.mode;M_.props;const qf=M_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){z_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=O_.get(e),n=z_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=$_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}const V3=En({patchProp:I3},y3);let vy;function U3(){return vy||(vy=G5(V3))}const I_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function Js(e){return e+.5|0}const ci=(e,t,n)=>Math.max(Math.min(e,n),t);function Ql(e){return ci(Js(e*2.55),0,255)}function pi(e){return ci(Js(e*255),0,255)}function Fo(e){return ci(Js(e/2.55)/100,0,1)}function py(e){return ci(Js(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ep=[..."0123456789ABCDEF"],K3=e=>ep[e&15],q3=e=>ep[(e&240)>>4]+ep[e&15],Rc=e=>(e&240)>>4===(e&15),Y3=e=>Rc(e.r)&&Rc(e.g)&&Rc(e.b)&&Rc(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function F_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=F_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function rb(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(pi)}function ob(e,t,n){return rb(F_,e,t,n)}function nM(e,t,n){return rb(eM,e,t,n)}function rM(e,t,n){return rb(J3,e,t,n)}function D_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ql(+t[5]):pi(+t[5]));const o=D_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ob(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=nb(e);n[0]=D_(n[0]+t),n=ob(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=nb(e),n=t[0],r=py(t[1]),o=py(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Fo(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const gy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},my={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(my),n=Object.keys(gy);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Pc;function sM(e){Pc||(Pc=lM(),Pc.transparent=[0,0,0,0]);const t=Pc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Ql(a):ci(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Ql(r):ci(r,0,255)),o=255&(t[4]?Ql(o):ci(o,0,255)),i=255&(t[6]?Ql(i):ci(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Fo(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Nh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=Ka(Fo(e.r)),o=Ka(Fo(e.g)),i=Ka(Fo(e.b));return{r:pi(Nh(r+n*(Ka(Fo(t.r))-r))),g:pi(Nh(o+n*(Ka(Fo(t.g))-o))),b:pi(Nh(i+n*(Ka(Fo(t.b))-i))),a:e.a+n*(t.a-e.a)}}function $c(e,t,n){if(e){let r=nb(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ob(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function A_(e,t){return e&&Object.assign(t||{},e)}function by(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=pi(e[3]))):(t=A_(e,{r:0,g:0,b:0,a:1}),t.a=pi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class zs{constructor(t){if(t instanceof zs)return t;const n=typeof t;let r;n==="object"?r=by(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=A_(this._rgb);return t&&(t.a=Fo(t.a)),t}set rgb(t){this._rgb=by(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new zs(this.rgb)}alpha(t){return this._rgb.a=pi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Js(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return $c(this._rgb,2,t),this}darken(t){return $c(this._rgb,2,-t),this}saturate(t){return $c(this._rgb,1,t),this}desaturate(t){return $c(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function $o(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Bn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return Bn(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function bl(e,t){return(yy[t]||(yy[t]=yM(t)))(e)}function ib(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",wi=e=>typeof e=="function",xy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,po=2*Kn,xu=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,ji=Kn/4,wy=Kn*2/3,di=Math.log10,gi=Math.sign;function gd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function wu(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function E_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function lb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const tp=(e,t,n,r)=>lb(e,n,r?o=>{const i=e[o][t];return ie[o][t]lb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+ib(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function _y(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(L_.forEach(i=>{delete e[i]}),delete e._chartjs)}function N_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function j_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,H_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const sb=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,Tc=e=>e===0||e===1,ky=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*po/n)),Ry=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*po/n)+1,us={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Tc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Tc(e)?e:ky(e,.075,.3),easeOutElastic:e=>Tc(e)?e:Ry(e,.075,.3),easeInOutElastic(e){return Tc(e)?e:e<.5?.5*ky(e*2,.1125,.45):.5+.5*Ry(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-us.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?us.easeInBounce(e*2)*.5:us.easeOutBounce(e*2-1)*.5+.5};function V_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Py(e){return V_(e)?e:new zs(e)}function Hh(e){return V_(e)?e:new zs(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const $y=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=$y.get(n);return r||(r=new Intl.NumberFormat(e,t),$y.set(n,r)),r}function cb(e,t,n){return BM(t,n).format(e)}const U_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=di(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),cb(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(di(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?U_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Yf={formatters:U_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Yf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Ca=Object.create(null),np=Object.create(null);function fs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Hh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Hh(o.borderColor),this.hoverColor=(r,o)=>Hh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return jh(this,t,n)}get(t){return fs(this,t)}describe(t,n){return jh(np,t,n)}override(t,n){return jh(Ca,t,n)}route(t,n,r,o){const i=fs(this,t),a=fs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Cu(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function K_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function q_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function Y_(e){return q_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function va(e){return q_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=Y_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function zn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Oc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ia(e,t){return Object.assign(Object.create(e),t)}function fb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=Q_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>fb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return G_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return My(a).includes(l)},ownKeys(a){return My(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function yl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:X_(e,r),setContext:i=>yl(e,i,n,r),override:i=>yl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return G_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function X_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:wi(n)?n:()=>n,isIndexable:wi(r)?r:()=>r}}const ZM=(e,t)=>e?e+ib(t):t,hb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function G_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return wi(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),hb(t,l)&&(l=yl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),hb(e,t)&&(t=vb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=vb(c,o,e,d);t.push(yl(f,i,a&&a[e],l))}}return t}function Z_(e,t,n){return wi(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?bl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Z_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function vb(e,t,n,r){const o=t._rootScopes,i=Z_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=zy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=zy(l,a,i,s,r),s===null)?!1:fb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function zy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=Q_(ZM(i,e),n),Fr(o))return hb(e,o)?vb(n,r,e,o):o}function Q_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function My(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function J_(){return typeof window<"u"&&typeof document<"u"}function pb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Su(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Xf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Xf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function pa(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function Ji(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Xf(n),i=o.boxSizing==="border-box",a=pa(o,"padding"),l=pa(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=pb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Xf(i),s=pa(l,"border","width"),c=pa(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Su(l.maxWidth,i,"clientWidth"),o=Su(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||xu,maxHeight:o||xu}}const zc=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Xf(e),i=pa(o,"margin"),a=Su(o.maxWidth,e,"clientWidth")||xu,l=Su(o.maxHeight,e,"clientHeight")||xu,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=pa(o,"border","width"),v=pa(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=zc(Math.min(c,a,s.maxWidth)),d=zc(Math.min(d,l,s.maxHeight)),c&&!d&&(d=zc(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=zc(Math.floor(d*r))),{width:c,height:d}}function Iy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Fy(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ul(e,t,n){return e?h4(t,n):v4()}function ek(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function tk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=H_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var zo=new p4;const Dy="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Py(e||Dy),o=r.valid&&Py(t||Dy);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Oc([t.to,o,i,t.from]);const a=Oc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=us[t.easing]||us.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Oc([t.to,n,o,t.from]),this._from=Oc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return zo.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function Ny(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Ia(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Ia(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Bl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Uh=e=>e==="reset"||e==="none",Hy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:rk(n,!0),values:null};class hs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ey(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Bl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Vh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Vh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Vh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&_y(this._data,this),t._stacked&&Bl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){_y(r,this);const o=this._cachedMeta;Bl(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ey(n.vScale,n),n.stack!==r.stack&&(o=!0,Bl(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&Ny(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Hy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new nk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Uh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Uh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Uh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ok(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function jy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:ec,modes:{index(e,t,n,r){const o=Ji(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Kh(e,o,i,r,a):qh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=Ji(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Kh(e,o,i,r,a):qh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Ky(e,t){return e.filter(n=>ik.indexOf(n.pos)===-1&&n.box.axis===t)}function Ll(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Ll(El(t,"left"),!0),o=Ll(El(t,"right")),i=Ll(El(t,"top"),!0),a=Ll(El(t,"bottom")),l=Ky(t,"x"),s=Ky(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:El(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function qy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ak(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&ak(a,i.getPadding());const l=Math.max(0,t.outerWidth-qy(a,e,"left","right")),s=Math.max(0,t.outerHeight-qy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function Jl(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);ak(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);Jl(l.fullSize,v,f,p),Jl(s,v,f,p),Jl(c,v,f,p)&&Jl(s,v,f,p),G4(v),Yy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Yy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class lk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends lk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const bd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Xy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[bd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Xy(o)){const i=Fy(e,"width");i!==void 0&&(e.width=i)}if(Xy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Fy(e,"height");i!==void 0&&(e.height=i)}return e}const sk=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,sk)}function nI(e,t,n){e.canvas.removeEventListener(t,n,sk)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=Ji(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function _u(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||_u(l.addedNodes,r),a=a&&!_u(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||_u(l.removedNodes,r),a=a&&!_u(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Fs=new Map;let Gy=0;function ck(){const e=window.devicePixelRatio;e!==Gy&&(Gy=e,Fs.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Fs.size||window.addEventListener("resize",ck),Fs.set(e,t)}function lI(e){Fs.delete(e),Fs.size||window.removeEventListener("resize",ck)}function sI(e,t,n){const r=e.canvas,o=r&&pb(r);if(!o)return;const i=j_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Yh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=j_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends lk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[bd])return!1;const r=n[bd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[bd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Yh,detach:Yh,resize:Yh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=pb(t);return!!(n&&n.isConnected)}}function uI(e){return!J_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class Ci{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return wu(this.x)&&wu(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(Ci,"defaults",{}),Nt(Ci,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Ic(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Zy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function Qy(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Nl(t.grid)-n.padding-Jy(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=ab(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=Jy(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Nl(i)+s):(t.height=this.maxHeight,t.width=Nl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=ui(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Vi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Nl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Vi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Fc(hs,"datasets",!0),this.elements=new Fc(Ci,"elements"),this.plugins=new Fc(Object,"plugins"),this.scales=new Fc(Fa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=ib(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(ao.plugins.items);for(let i=0;i1&&ku(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Ca[e.type]||{scales:{}},r=t.scales||{},o=rp(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=ku(a,l),c=DI(s,o),d=n.scales||{};i[a]=ds(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||rp(l,t),d=(Ca[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),ds(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];ds(l,[Cn.scales[l.type],Cn.scale])}),i}function dk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function uk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=uk(e.data),dk(e),e}const ex=new Map,fk=new Set;function Dc(e,t){let n=ex.get(e);return n||(n=t(),ex.set(e,n),fk.add(n)),n}const Hl=(e,t,n)=>{const r=bl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=uk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),dk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Dc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Dc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Dc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Dc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>Hl(s,t,f))),d.forEach(f=>Hl(s,o,f)),d.forEach(f=>Hl(s,Ca[i]||{},f)),d.forEach(f=>Hl(s,Cn,f)),d.forEach(f=>Hl(s,np,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),fk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Ca[n]||{},Cn.datasets[n]||{},{type:n},Cn,np]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=tx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=wi(r)?r():r;const c=this.createResolver(t,r,l);s=yl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=tx(this._resolverCache,t,r);return Wt(n)?yl(i,n,void 0,o):i}}function tx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:fb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||wi(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=X_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(wi(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function nx(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function rx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ox(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function hk(e){return J_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const yd={},ix=e=>{const t=hk(e);return Object.values(yd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class co{static register(...t){ao.add(...t),ax()}static unregister(...t){ao.remove(...t),ax()}constructor(t,n){const r=this.config=new LI(n),o=hk(t),i=ix(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],yd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}zo.listen(this,"complete",ox),zo.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ao}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Iy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ty(this.canvas,this.ctx),this}stop(){return zo.stop(this),this}resize(t,n){zo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Iy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=ku(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=ku(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||nx(l.position,c)!==nx(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=ao.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(rx("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!xy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&db(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&ub(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return K_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ia(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),zo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!bu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!bu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(co,"defaults",Cn),Nt(co,"instances",yd),Nt(co,"overrides",Ca),Nt(co,"registry",ao),Nt(co,"version",jI),Nt(co,"getChart",ix);function ax(){return en(co.instances,e=>e._plugins.invalidate())}function vk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function fi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=Y_(r);return{t:fi(o.top,i.top,0,n),r:fi(o.right,i.right,0,t),b:fi(o.bottom,i.bottom,0,n),l:fi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=va(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:fi(!s||l.top||l.left,i.topLeft,0,a),topRight:fi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:fi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:fi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=vk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Xh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&vk(e,r);return l&&(o||ll(t,l.left,l.right))&&(i||ll(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Gh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class xd extends Ci{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Is:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Gh(a,n,i)),t.clip(),l(t,Gh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Gh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Xh(this,t,n,r)}inXRange(t,n){return Xh(this,t,null,n)}inYRange(t,n){return Xh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(xd,"id","bar"),Nt(xd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(xd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const lx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class sx extends Ci{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=zn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=lx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=ul(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;db(t,this),this._draw(),ub(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=ul(t.rtl,this.left,this.width),c=zn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=lx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;W_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=va(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Is(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){Sa(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},ek(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=pk(k,L)}else v.y+=w}),tk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=zn(n.font),o=Jn(n.padding);if(!n.display)return;const i=ul(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(sb(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Sa(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=zn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(ll(t,this.left,this.right)&&ll(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=pk(t,n)),r}function pk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:sx,start(e,t,n){const r=e.legend=new sx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class gk extends Ci{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*zn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=zn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);Sa(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:sb(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new gk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:gk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const es={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function cx(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=zn(t.bodyFont),c=zn(t.titleFont),d=zn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function dx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function ux(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=va(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ac(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function fx(e){return io([],Mo(e))}function hF(e,t,n){return Ia(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function hx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const mk={beforeTitle:$o,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?mk[t].call(n,r):o}class op extends Ci{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new nk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}getBeforeBody(t,n){return fx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=hx(r,i);io(a.before,Mo(or(l,"beforeLabel",this,i))),io(a.lines,or(l,"label",this,i)),io(a.after,Mo(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return fx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=io(l,Mo(o)),l=io(l,Mo(i)),l=io(l,Mo(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=hx(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=es[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=cx(this,r),c=Object.assign({},l,s),d=dx(this.chart,r,c),f=ux(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=va(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=ul(r.rtl,this.x,this.width);for(t.x=Ac(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=zn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Is(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Is(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=zn(r.bodyFont);let h=f.lineHeight,v=0;const p=ul(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ac(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=es[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=cx(this,t),s=Object.assign({},a,this._size),c=dx(n,t,s),d=ux(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),ek(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),tk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!bu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!bu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=es[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(op,"positioners",es);var vF={id:"tooltip",_element:op,positioners:es,afterInit(e,t,n){n&&(e.tooltip=new op({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:mk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function vx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(ip,"id","category"),Nt(ip,"defaults",{ticks:{callback:vx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=Cy((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=Cy($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,gd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(Sy(w),Sy(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=gi(o),c=gi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&E_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return cb(t,this.chart.options.locale,this.options.ticks.format)}}class ap extends Ru{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bn(t)?t:0,this.max=Bn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ui(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(ap,"id","linear"),Nt(ap,"defaults",{ticks:{callback:Yf.formatters.numeric}});const Ds=e=>Math.floor(di(e)),Wi=(e,t)=>Math.pow(10,Ds(e)+t);function gx(e){return e/Math.pow(10,Ds(e))===1}function mx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=Ds(n);for(;mx(e,t,r)>10;)r++;for(;mx(e,t,r)<10;)r--;return Math.min(r,Ds(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=Ds(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:gx(v),significand:f}),r}class bx extends Fa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Ru.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Bn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Bn(t)?Math.max(0,t):null,this.max=Bn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Bn(this._userMin)&&(this.min=t===Wi(this.min,0)?Wi(this.min,-1):Wi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(Wi(r,-1)),a(Wi(o,1)))),r<=0&&i(Wi(o,-1)),o<=0&&a(Wi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&E_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":cb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=di(t),this._valueRange=di(this.max)-di(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(di(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(bx,"id","logarithmic"),Nt(bx,"defaults",{ticks:{callback:Yf.formatters.logarithmic,major:{enabled:!0}}});function lp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function yx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=lp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=zn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=va(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Is(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}Sa(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function bk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,po);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=po/(this._pointLabels.length||1),r=this.options.startAngle||0;return lo(t*n+ui(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=zn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}Sa(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Bc,"id","radialLinear"),Nt(Bc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Yf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Bc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Bc,"descriptors",{angleLines:{_fallback:"grid"}});const Gf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Gf);function zF(e,t){return e-t}function xx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Bn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(wu(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function wx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Gf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function Sx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||wx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=wu(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=tp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=tp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class _x extends Pu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ec(n,this.min),this._tableRange=Ec(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...yk},AF=k_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function qa(e){return fa(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return fa(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function xk(e,t){e.labels=t}function wk(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return xk(n,e.labels),wk(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=YS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new co(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=qa(d),g=qa(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=qa(f.labels),g=qa(v.labels),y=qa(f.datasets),C=qa(v.datasets);m!==g&&(xk(p.config.data,m),b=!0),y&&y!==C&&(wk(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return co.register(t),J({props:yk,setup(n,r){let{expose:o}=r;const i=YS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",md),kx=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};co.register(aF,vF,oF,xd,ip,ap);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(kx.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=kx.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Mi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="NOUN",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}});function KF(e,t,n,r,o,i){const a=Fh("n-select"),l=Fh("Bar"),s=Fh("n-space");return x_(),w_(s,{vertical:""},{default:o_(()=>[Un(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=c=>e.selectedEntity=c),options:e.availableEntities},null,8,["value","options"]),Un(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=c=>e.selectedPos=c),options:e.availablePos},null,8,["value","options"]),Un(l,{options:{indexAxis:"y",responsive:!0},data:e.chartData},null,8,["data"])]),_:1})}const qF=VF(WF,[["render",KF]]);let $u=[];const Ck=new WeakMap;function YF(){$u.forEach(e=>e(...Ck.get(e))),$u=[]}function _a(e,...t){Ck.set(e,t),!$u.includes(e)&&$u.push(e)===1&&requestAnimationFrame(YF)}function XF(e){return e.nodeType===9?null:e.parentNode}function Sk(e){if(e===null)return null;const t=XF(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Sk(t)}function mb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function GF(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function jl(e,t){var n;if(e==null)return;const r=GF(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function mi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function ZF(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const Rx={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function _k(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function wd(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function li(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function sp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function cp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function dp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const wo="^\\s*",Co="\\s*$",Si="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",la="([0-9A-Fa-f])",sa="([0-9A-Fa-f]{2})",QF=new RegExp(`${wo}hsl\\s*\\(${gr},${Si},${Si}\\)${Co}`),JF=new RegExp(`${wo}hsv\\s*\\(${gr},${Si},${Si}\\)${Co}`),eD=new RegExp(`${wo}hsla\\s*\\(${gr},${Si},${Si},${gr}\\)${Co}`),tD=new RegExp(`${wo}hsva\\s*\\(${gr},${Si},${Si},${gr}\\)${Co}`),nD=new RegExp(`${wo}rgb\\s*\\(${gr},${gr},${gr}\\)${Co}`),rD=new RegExp(`${wo}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${Co}`),bb=new RegExp(`${wo}#${la}${la}${la}${Co}`),yb=new RegExp(`${wo}#${sa}${sa}${sa}${Co}`),xb=new RegExp(`${wo}#${la}${la}${la}${la}${Co}`),wb=new RegExp(`${wo}#${sa}${sa}${sa}${sa}${Co}`);function ir(e){return parseInt(e,16)}function fl(e){try{let t;if(t=eD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=QF.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ga(e){try{let t;if(t=tD.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),Ao(t[13])];if(t=JF.exec(e))return[xo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function An(e){try{let t;if(t=yb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=nD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=rD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Ao(t[13])];if(t=bb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Ao(ir(t[4])/255)];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Ao(ir(t[4]+t[4])/255)];if(e in Rx)return An(Rx[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function oD(e){return e>1?1:e<0?0:e}function iD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function up(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${oD(r)})`}function Zh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=An(e)),Array.isArray(t)||(t=An(t));const n=e[3],r=t[3],o=Ao(n+r-n*r);return up(Zh(e[0],n,t[0],r,o),Zh(e[1],n,t[1],r,o),Zh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:An(e);return t.alpha?up(n,r,o,t.alpha):up(n,r,o,i)}function Lc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:An(e),{lightness:a=1,alpha:l=1}=t;return go([n*a,r*a,o*a,i*l])}function Ao(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function xo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function fp(e){const[t,n,r]=Array.isArray(e)?e:An(e);return iD(t,n,r)}function go(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Ao(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function hp(e){return`hsv(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ma(e){const[t,n,r]=e;return 3 in e?`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsva(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function vp(e){return`hsl(${xo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function bi(e){const[t,n,r]=e;return 3 in e?`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Ao(e[3])})`:`hsla(${xo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function yi(e){if(typeof e=="string"){let r;if(r=yb.exec(e))return`${r[0]}FF`;if(r=wb.exec(e))return r[0];if(r=bb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function vs(e){if(typeof e=="string"){let t;if(t=yb.exec(e))return t[0];if(t=wb.exec(e))return t[0].slice(0,7);if(t=bb.exec(e)||xb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function kk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Da(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wa(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Ln(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?wa(e):typeof e=="number"?wa(String(e)):null,$x=new Set;function lD(e,t){const n=`[naive/${e}]: ${t}`;$x.has(n)||($x.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Fn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function pp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function nc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Tu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Rk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Pk(e){return t=>{t?e.value=t.$el:e.value=null}}function $l(e){return e.some(t=>Ts(t)?!(t.type===xr||t.type===$t&&!$l(t.children)):!0)?e:null}function vt(e,t){return e&&$l(e())||t()}function ka(e,t,n){return e&&$l(e(t))||n(t)}function Ct(e,t){const n=e&&$l(e());return t(n||null)}function sD(e,t,n){const r=e&&$l(e(t));return n(r||null)}function ba(e){return!(e&&$l(e()))}function ps(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function cD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const gp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dD=/^(\d|\.)+$/,Tx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(dD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Tx.exec(e);return o?e.replace(Tx,String((Number(o[0])+n)*t)):e}return e}function Ra(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function uD(e){let t=0;for(let n=0;n{let o=uD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function vD(e,t){const n=[];return t.split($k).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function pD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hD(t,n):t=vD(t,n))}),t.join(", ").replace(fD," ")}function Ox(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Zf(e){return document.querySelector(`style[cssr-id="${e}"]`)}function gD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Nc(e){return e?/^\s*@(s|m)/.test(e):!1}const mD=/[A-Z]/g;function Tk(e){return e.replace(mD,t=>"-"+t.toLowerCase())}function bD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Tk(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function yD(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function zx(e,t,n,r){if(!t)return"";const o=yD(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Tk(l),s!=null&&a.push(` ${l}${bD(s)}`)}),e&&a.push("}"),a.join(` -`)}function mp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))mp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?mp(o,t,n):o&&n(o)}else r&&n(r)})}function Ok(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")Nc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});Nc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Nc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});Nc(d)?l=d:t.push(d)}const s=pD(t),c=zx(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&mp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=zx(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else Ok(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function zk(e,t,n,r=!1){const o=[];return Ok(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function As(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function xD(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Ox),t.els=[];else{const o=Zf(n);o&&r.includes(o)&&(Ox(o),t.els=r.filter(i=>i!==o))}}function Mx(e,t){e.push(t)}function wD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,zk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=As(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=Zf(n);if(d!==null&&!a)return d;const f=d!=null?d:gD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Mx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Mx(t.els,f),f}function CD(e){return zk(this,this.instance,e)}function SD(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return wD(this.instance,this,t,r,o,i,a,l,n)}function _D(e={}){const{id:t}=e;xD(this.instance,this,t)}const Hc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:CD,mount:SD,unmount:_D}},kD=function(e,t,n,r){return Array.isArray(t)?Hc(e,{$:null},null,t):Array.isArray(n)?Hc(e,t,null,n):Array.isArray(r)?Hc(e,t,n,r):Hc(e,t,n,null)};function Mk(e={}){let t=null;const n={c:(...r)=>kD(n,...r),use:(r,...o)=>r.install(n,...o),find:Zf,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function RD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Zf(e)!==null}function PD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const $D="n",Bs=`.${$D}-`,TD="__",OD="--",Ik=Mk(),Fk=PD({blockPrefix:Bs,elementPrefix:TD,modifierPrefix:OD});Ik.use(Fk);const{c:O,find:Xie}=Ik,{cB:S,cE:M,cM:F,cNotM:pt}=Fk;function So(e){return O(({props:{bPrefix:t}})=>`${t||Bs}modal, ${t||Bs}drawer`,[e])}function Wo(e){return O(({props:{bPrefix:t}})=>`${t||Bs}popover`,[e])}function Dk(e){return O(({props:{bPrefix:t}})=>`&${t||Bs}modal`,e)}const zD=(...e)=>O(">",[S(...e)]);let Qh;function MD(){return Qh===void 0&&(Qh=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Qh}const rr=typeof document<"u"&&typeof window<"u",Ak=new WeakSet;function Pa(e){Ak.add(e)}function Bk(e){return!Ak.has(e)}function ID(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Uo())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function FD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function DD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function AD(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Ek(e){const t=D(!!e.value);if(t.value)return yo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return yo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Cb(){return Uo()!==null}const Qf=typeof window<"u";let hl,gs;const BD=()=>{var e,t;hl=Qf?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,gs=!1,hl!==void 0?hl.then(()=>{gs=!0}):gs=!0};BD();function Jf(e){if(gs)return;let t=!1;Mt(()=>{gs||hl==null||hl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function Cd(e){return e.composedPath()[0]}const ED={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function LD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(Cd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Cd(a))},i=a=>{!r||t.contains(Cd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Lk(e,t,n){const r=ED[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=LD(e,t,n)),i}function ND(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Lk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function HD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Lk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function jD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=Cd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,ND(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(HD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=jD(),ts=D(null);function Ix(e){if(e.clientX>0||e.clientY>0)ts.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ts.value={x:n+o/2,y:r+i/2}:ts.value={x:0,y:0}}else ts.value=null}}let jc=0,Fx=!0;function Nk(){if(!Qf)return yo(D(null));jc===0&&St("click",document,Ix,!0);const e=()=>{jc+=1};return Fx&&(Fx=Cb())?(Vo(e),Dt(()=>{jc-=1,jc===0&&xt("click",document,Ix,!0)})):e(),yo(ts)}const VD=D(void 0);let Vc=0;function Dx(){VD.value=Date.now()}let Ax=!0;function Hk(e){if(!Qf)return yo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Vc===0&&St("click",window,Dx,!0);const i=()=>{Vc+=1,St("click",window,o,!0)};return Ax&&(Ax=Cb())?(Vo(i),Dt(()=>{Vc-=1,Vc===0&&xt("click",window,Dx,!0),xt("click",window,o,!0),r()})):i(),yo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function Dn(){const e=D(!1);return Mt(()=>{e.value=!0}),yo(e)}function _i(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const UD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function WD(){return UD}const KD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function qD(e){return`(min-width: ${e}px)`}const Vl={};function YD(e=KD){if(!Qf)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Vl[i]===void 0?(a=window.matchMedia(qD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Vl[i]={mql:a,cbs:l}):(a=Vl[i].mql,l=Vl[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Vl[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function Sb(e={},t){const n=Mi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return Cb()?(Vo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),yo(n)}const _b="n-internal-select-menu",jk="n-internal-select-menu-body",rc="n-modal-body",Vk="n-modal",oc="n-drawer-body",kb="n-drawer",Tl="n-popover-body",Uk="__disabled__";function Lt(e){const t=Le(rc,null),n=Le(oc,null),r=Le(Tl,null),o=Le(jk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Uk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Uk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Bx=!1;function Rb(){if(!!rr&&!!window.CSS&&!Bx&&(Bx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function bp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function yp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(wa(String(r)));return}if(Array.isArray(r)){yp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&yp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Ex(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=yp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ti=null;function Wk(){if(ti===null&&(ti=document.getElementById("v-binder-view-measurer"),ti===null)){ti=document.createElement("div"),ti.id="v-binder-view-measurer";const{style:e}=ti;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ti)}return ti.getBoundingClientRect()}function XD(e,t){const n=Wk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Jh(e){const t=e.getBoundingClientRect(),n=Wk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function GD(e){return e.nodeType===9?null:e.parentNode}function Kk(e){if(e===null)return null;const t=GD(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Kk(t)}const ZD=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Uo())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=Kk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{_a(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return bp("binder",this.$slots)}}),Nr=ZD,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Ex("follower",this.$slots),[[t]]):Ex("follower",this.$slots)}}),Ya="@@mmoContext",QD={mounted(e,{value:t}){e[Ya]={handler:void 0},typeof t=="function"&&(e[Ya].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ya];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Ya].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ya];t&&xt("mousemoveoutside",e,t),e[Ya].handler=void 0}},JD=QD,Xa="@@coContext",eA={mounted(e,{value:t,modifiers:n}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Xa];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Xa].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Xa];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Xa].handler=void 0}},fr=eA;function tA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class nA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&tA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const ev=new nA,Ga="@@ziContext",rA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Ga]={enabled:!!o,initialized:!1},o&&(ev.ensureZIndex(e,r),e[Ga].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Ga].enabled;o&&!i&&(ev.ensureZIndex(e,r),e[Ga].initialized=!0),e[Ga].enabled=!!o},unmounted(e,t){if(!e[Ga].initialized)return;const{value:n={}}=t,{zIndex:r}=n;ev.unregister(e,r)}},ic=rA,qk=Symbol("@css-render/vue3-ssr");function oA(e,t){return``}function iA(e,t){const n=Le(qk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(oA(e,t)))}const aA=typeof document<"u";function Ii(){if(aA)return;const e=Le(qk,null);if(e!==null)return{adapter:iA,context:e}}function Lx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:vo}=Mk(),eh="vueuc-style";function Nx(e){return e&-e}class lA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=Nx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?bp("lazy-teleport",this.$slots):u(Qs,{disabled:this.disabled,to:this.mergedTo},bp("lazy-teleport",this.$slots)):null}}),Uc={top:"bottom",bottom:"top",left:"right",right:"left"},jx={start:"end",center:"center",end:"start"},tv={top:"height",bottom:"height",left:"width",right:"width"},sA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},cA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},dA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Vx={top:!0,bottom:!1,left:!0,right:!1},Ux={top:"end",bottom:"start",left:"end",right:"start"};function uA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Vx[p]?y:-y:m=Vx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=dA[e],p=Uc[v],b=tv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=jx[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Uc[v],b=tv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Ux[v],c=d(b,v,f)):(s=Ux[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Ii();vA.mount({id:"vueuc/binder",head:!0,anchorMetaName:eh,ssr:l}),Dt(()=>{a()}),Jf(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?XD(p,b):Jh(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=Jh(h),$=Jh(o.value),{left:R,top:I,placement:z}=uA(x,g,T,w,k,m),A=fA(z,m),{left:L,top:j,transform:E}=hA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=Dn(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(ac,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ic,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var ya=[],pA=function(){return ya.some(function(e){return e.activeTargets.length>0})},gA=function(){return ya.some(function(e){return e.skippedTargets.length>0})},Wx="ResizeObserver loop completed with undelivered notifications.",mA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Wx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Wx),window.dispatchEvent(e)},Es;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Es||(Es={}));var xa=function(e){return Object.freeze(e)},bA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,xa(this)}return e}(),Yk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Pb=function(e){return e instanceof SVGElement&&"getBBox"in e},Xk=function(e){if(Pb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Kx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},yA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ms=typeof window<"u"?window:{},Wc=new WeakMap,qx=/auto|scroll/,xA=/^tb|vertical/,wA=/msie|trident/i.test(ms.navigator&&ms.navigator.userAgent),ro=function(e){return parseFloat(e||"0")},vl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new bA((n?t:e)||0,(n?e:t)||0)},Yx=xa({devicePixelContentBoxSize:vl(),borderBoxSize:vl(),contentBoxSize:vl(),contentRect:new Yk(0,0,0,0)}),Gk=function(e,t){if(t===void 0&&(t=!1),Wc.has(e)&&!t)return Wc.get(e);if(Xk(e))return Wc.set(e,Yx),Yx;var n=getComputedStyle(e),r=Pb(e)&&e.ownerSVGElement&&e.getBBox(),o=!wA&&n.boxSizing==="border-box",i=xA.test(n.writingMode||""),a=!r&&qx.test(n.overflowY||""),l=!r&&qx.test(n.overflowX||""),s=r?0:ro(n.paddingTop),c=r?0:ro(n.paddingRight),d=r?0:ro(n.paddingBottom),f=r?0:ro(n.paddingLeft),h=r?0:ro(n.borderTopWidth),v=r?0:ro(n.borderRightWidth),p=r?0:ro(n.borderBottomWidth),b=r?0:ro(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:ro(n.width)-k-w,$=r?r.height:ro(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=xa({devicePixelContentBoxSize:vl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:vl(R,I,i),contentBoxSize:vl(T,$,i),contentRect:new Yk(f,s,T,$)});return Wc.set(e,z),z},Zk=function(e,t,n){var r=Gk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Es.DEVICE_PIXEL_CONTENT_BOX:return a;case Es.BORDER_BOX:return o;default:return i}},CA=function(){function e(t){var n=Gk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=xa([n.borderBoxSize]),this.contentBoxSize=xa([n.contentBoxSize]),this.devicePixelContentBoxSize=xa([n.devicePixelContentBoxSize])}return e}(),Qk=function(e){if(Xk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},SA=function(){var e=1/0,t=[];ya.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new CA(c.target),f=Qk(c.target);l.push(d),c.lastReportedSize=Zk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},_A=function(){var e=0;for(Xx(e);pA();)e=SA(),Xx(e);return gA()&&mA(),e>0},nv,Jk=[],kA=function(){return Jk.splice(0).forEach(function(e){return e()})},RA=function(e){if(!nv){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return kA()}).observe(n,r),nv=function(){n.textContent="".concat(t?t--:t++)}}Jk.push(e),nv()},PA=function(e){RA(function(){requestAnimationFrame(e)})},Sd=0,$A=function(){return!!Sd},TA=250,OA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zx=function(e){return e===void 0&&(e=0),Date.now()+e},rv=!1,zA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=TA),!rv){rv=!0;var r=Zx(t);PA(function(){var o=!1;try{o=_A()}finally{if(rv=!1,t=r-Zx(),!$A())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,OA)};document.body?n():ms.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gx.forEach(function(n){return ms.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Gx.forEach(function(n){return ms.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xp=new zA,Qx=function(e){!Sd&&e>0&&xp.start(),Sd+=e,!Sd&&xp.stop()},MA=function(e){return!Pb(e)&&!yA(e)&&getComputedStyle(e).display==="inline"},IA=function(){function e(t,n){this.target=t,this.observedBox=n||Es.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Zk(this.target,this.observedBox,!0);return MA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),FA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Kc=new WeakMap,Jx=function(e,t){for(var n=0;n=0&&(i&&ya.splice(ya.indexOf(r),1),r.observationTargets.splice(o,1),Qx(-1))},e.disconnect=function(t){var n=this,r=Kc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),DA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");qc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Kx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");qc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Kx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");qc.unobserve(this,t)},e.prototype.disconnect=function(){qc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class AA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||DA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Ou=new AA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Uo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Lx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Lx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Ou.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Ou.unregisterHandler(n.$el.nextElementSibling)})},render(){return Zm(this.$slots,"default")}});let Yc;function BA(){return Yc===void 0&&("matchMedia"in window?Yc=window.matchMedia("(pointer:coarse)").matches:Yc=!1),Yc}let ov;function ew(){return ov===void 0&&(ov="chrome"in window?window.devicePixelRatio:1),ov}const EA=vo(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[vo("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[vo("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Eo=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Ii();EA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:eh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Ym(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Gs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new lA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!BA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/ew(),A.scrollLeft+=I.deltaX/ew(),$(),w=!0,_a(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),LA=vo(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[vo("&::-webkit-scrollbar",{width:0,height:0})]),NA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Ki,""))}const i=Ii();return HA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:eh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Zm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function eR(e){return e instanceof HTMLElement}function tR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(eR(n)&&(rR(n)||nR(n)))return!0}return!1}function rR(e){if(!jA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function jA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Ul=[];const $b=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Ul[Ul.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Ul.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Hx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Ul=Ul.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Hx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?tR(C):nR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function th(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Ou.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Ou.unregisterHandler(n)}))}let Za=0,nw="",rw="",ow="",iw="";const wp=D("0px");function oR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=nw,t.style.overflow=rw,t.style.overflowX=ow,t.style.overflowY=iw,wp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Za){const a=window.innerWidth-t.offsetWidth;a>0&&(nw=t.style.marginRight,t.style.marginRight=`${a}px`,wp.value=`${a}px`),rw=t.style.overflow,ow=t.style.overflowX,iw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Za++}else Za--,Za||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Za--,Za||o(),r=!1)})}const Tb=D(!1),aw=()=>{Tb.value=!0},lw=()=>{Tb.value=!1};let Wl=0;const iR=()=>(rr&&(Vo(()=>{Wl||(window.addEventListener("compositionstart",aw),window.addEventListener("compositionend",lw)),Wl++}),Dt(()=>{Wl<=1?(window.removeEventListener("compositionstart",aw),window.removeEventListener("compositionend",lw),Wl=0):Wl--})),Tb);function Ob(e){const t={isDeactivated:!1};let n=!1;return Ym(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Gs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function sw(e){return e.nodeName==="#document"}const zu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(zu,null);nt(zu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var VA=typeof global=="object"&&global&&global.Object===Object&&global;const aR=VA;var UA=typeof self=="object"&&self&&self.Object===Object&&self,WA=aR||UA||Function("return this")();const jr=WA;var KA=jr.Symbol;const ki=KA;var lR=Object.prototype,qA=lR.hasOwnProperty,YA=lR.toString,Kl=ki?ki.toStringTag:void 0;function XA(e){var t=qA.call(e,Kl),n=e[Kl];try{e[Kl]=void 0;var r=!0}catch{}var o=YA.call(e);return r&&(t?e[Kl]=n:delete e[Kl]),o}var GA=Object.prototype,ZA=GA.toString;function QA(e){return ZA.call(e)}var JA="[object Null]",e6="[object Undefined]",cw=ki?ki.toStringTag:void 0;function Aa(e){return e==null?e===void 0?e6:JA:cw&&cw in Object(e)?XA(e):QA(e)}function Ri(e){return e!=null&&typeof e=="object"}var t6="[object Symbol]";function nh(e){return typeof e=="symbol"||Ri(e)&&Aa(e)==t6}function sR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=B6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function H6(e){return function(){return e}}var j6=function(){try{var e=Ea(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Iu=j6;var V6=Iu?function(e,t){return Iu(e,"toString",{configurable:!0,enumerable:!1,value:H6(t),writable:!0})}:zb;const U6=V6;var W6=N6(U6);const K6=W6;var q6=9007199254740991,Y6=/^(?:0|[1-9]\d*)$/;function Ib(e,t){var n=typeof e;return t=t==null?q6:t,!!t&&(n=="number"||n!="symbol"&&Y6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=tB}function Ol(e){return e!=null&&Db(e.length)&&!Mb(e)}function nB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?Ol(n)&&Ib(t,n.length):r=="string"&&t in n)?lc(n[t],e):!1}function rB(e){return eB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&nB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function xE(e,t){var n=this.__data__,r=rh(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:UE(e,t,n)}var KE="\\ud800-\\udfff",qE="\\u0300-\\u036f",YE="\\ufe20-\\ufe2f",XE="\\u20d0-\\u20ff",GE=qE+YE+XE,ZE="\\ufe0e\\ufe0f",QE="\\u200d",JE=RegExp("["+QE+KE+GE+ZE+"]");function xR(e){return JE.test(e)}function eL(e){return e.split("")}var wR="\\ud800-\\udfff",tL="\\u0300-\\u036f",nL="\\ufe20-\\ufe2f",rL="\\u20d0-\\u20ff",oL=tL+nL+rL,iL="\\ufe0e\\ufe0f",aL="["+wR+"]",Sp="["+oL+"]",_p="\\ud83c[\\udffb-\\udfff]",lL="(?:"+Sp+"|"+_p+")",CR="[^"+wR+"]",SR="(?:\\ud83c[\\udde6-\\uddff]){2}",_R="[\\ud800-\\udbff][\\udc00-\\udfff]",sL="\\u200d",kR=lL+"?",RR="["+iL+"]?",cL="(?:"+sL+"(?:"+[CR,SR,_R].join("|")+")"+RR+kR+")*",dL=RR+kR+cL,uL="(?:"+[CR+Sp+"?",Sp,SR,_R,aL].join("|")+")",fL=RegExp(_p+"(?="+_p+")|"+uL+dL,"g");function hL(e){return e.match(fL)||[]}function vL(e){return xR(e)?hL(e):eL(e)}function pL(e){return function(t){t=Ta(t);var n=xR(t)?vL(t):void 0,r=n?n[0]:t.charAt(0),o=n?WE(n,1).join(""):t.slice(1);return r[e]()+o}}var gL=pL("toUpperCase");const PR=gL;function mL(e){return PR(Ta(e).toLowerCase())}function bL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&W8?new Bu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=sv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(sv())}function w(){var k=sv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function $p(e,t,n){(n!==void 0&&!lc(e[t],n)||n===void 0&&!(t in e))&&Fb(e,t,n)}function HN(e){return Ri(e)&&Ol(e)}function Tp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function jN(e){return Q6(e,pR(e))}function VN(e,t,n,r,o,i,a){var l=Tp(e,n),s=Tp(t,n),c=a.get(s);if(c){$p(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Du(s),p=!h&&!v&&Bb(s);d=s,h||v||p?Ar(l)?d=l:HN(l)?d=A6(l):v?(f=!1,d=b8(s,!0)):p?(f=!1,d=B8(s,!0)):d=[]:VE(s)||Fu(s)?(d=l,Fu(l)?d=jN(l):(!Br(l)||Mb(l))&&(d=E8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),$p(e,n,d)}function qR(e,t,n,r,o){e!==t&&KR(t,function(i,a){if(o||(o=new mo),Br(i))VN(e,t,a,n,qR,r,o);else{var l=r?r(Tp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),$p(e,a,l)}},pR)}function UN(e,t){var n=-1,r=Ol(e)?Array(e.length):[];return DN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function WN(e,t){var n=Ar(e)?sR:UN;return n(e,TN(t))}var KN=HR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const YR=KN;var qN=rB(function(e,t,n){qR(e,t,n)});const sl=qN;var YN=d8("round");const XN=YN;var GN="Expected a function";function ys(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(GN);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),NN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:ZN,fontFamily:QN,lineHeight:JN}=_r,XR=O("body",` - margin: 0; - font-size: ${ZN}; - font-family: ${QN}; - line-height: ${JN}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",xl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Ii(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:xl,ssr:a}),l!=null&&l.preflightStyleDisabled||XR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:a})};a?c():Vo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=sl({},d||y||g||r.common,w,_,b),R=sl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:sl({},r.peers,x,h),peerOverrides:sl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const GR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||GR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const e7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},t7=e7;function cv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function _d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_d=function(n){return typeof n}:_d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_d(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||_d(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var n7={};function La(){return n7}function Oa(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?o7(l,function(f){return f.test(a)}):r7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function r7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function o7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var a7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},l7=function(t,n,r){var o,i=a7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const s7=l7;var c7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},d7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},u7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},f7={date:cv({formats:c7,defaultWidth:"full"}),time:cv({formats:d7,defaultWidth:"full"}),dateTime:cv({formats:u7,defaultWidth:"full"})};const h7=f7;var v7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},p7=function(t,n,r,o){return v7[t]};const g7=p7;var m7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},b7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},y7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},x7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},w7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},C7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},S7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},_7={ordinalNumber:S7,era:ql({values:m7,defaultWidth:"wide"}),quarter:ql({values:b7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ql({values:y7,defaultWidth:"wide"}),day:ql({values:x7,defaultWidth:"wide"}),dayPeriod:ql({values:w7,defaultWidth:"wide",formattingValues:C7,defaultFormattingWidth:"wide"})};const k7=_7;var R7=/^(\d+)(th|st|nd|rd)?/i,P7=/\d+/i,$7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},T7={any:[/^b/i,/^(a|c)/i]},O7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z7={any:[/1/i,/2/i,/3/i,/4/i]},M7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},I7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},F7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},D7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},A7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},B7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},E7={ordinalNumber:i7({matchPattern:R7,parsePattern:P7,valueCallback:function(t){return parseInt(t,10)}}),era:Yl({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:T7,defaultParseWidth:"any"}),quarter:Yl({matchPatterns:O7,defaultMatchWidth:"wide",parsePatterns:z7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Yl({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any"}),day:Yl({matchPatterns:F7,defaultMatchWidth:"wide",parsePatterns:D7,defaultParseWidth:"any"}),dayPeriod:Yl({matchPatterns:A7,defaultMatchWidth:"any",parsePatterns:B7,defaultParseWidth:"any"})};const L7=E7;var N7={code:"en-US",formatDistance:s7,formatLong:h7,formatRelative:g7,localize:k7,match:L7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ah=N7,H7={name:"en-US",locale:ah},j7=H7;function Gc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function V7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Eu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function wl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function U7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Op(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function W7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var K7=6e4,q7=36e5,Y7=1e3;function X7(e,t){mt(2,arguments);var n=wl(e),r=wl(t);return n.getTime()===r.getTime()}function kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kd=function(n){return typeof n}:kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kd(e)}function G7(e){return mt(1,arguments),e instanceof Date||kd(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!G7(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function Z7(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function Q7(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function js(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function jb(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ZR(e,t){mt(2,arguments);var n=Gt(t);return V7(e,-n)}var J7=864e5;function eH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/J7)+1}function Cl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function tH(e){mt(1,arguments);var t=QR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Cl(n);return r}var nH=6048e5;function JR(e){mt(1,arguments);var t=yt(e),n=Cl(t).getTime()-tH(t).getTime();return Math.round(n/nH)+1}function Vb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=La(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=Oa(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=Oa(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function rH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=La(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Vb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=Oa(v,t);return p}var oH=6048e5;function e2(e,t){mt(1,arguments);var n=yt(e),r=Oa(n,t).getTime()-rH(n,t).getTime();return Math.round(r/oH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const ni=iH;var Qa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return ni.y(t,n)},Y:function(t,n,r,o){var i=Vb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=QR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return ni.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=e2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=JR(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):ni.d(t,n)},D:function(t,n,r){var o=eH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Qa.noon:o===0?i=Qa.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Qa.evening:o>=12?i=Qa.afternoon:o>=4?i=Qa.morning:i=Qa.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return ni.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ni.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ni.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ni.s(t,n)},S:function(t,n){return ni.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Vw(a);case"XXXX":case"XX":return ta(a);case"XXXXX":case"XXX":default:return ta(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Vw(a);case"xxxx":case"xx":return ta(a);case"xxxxx":case"xxx":default:return ta(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+jw(a,":");case"OOOO":default:return"GMT"+ta(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+jw(a,":");case"zzzz":default:return"GMT"+ta(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function jw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Vw(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ta(e,t)}function ta(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const lH=aH;var Uw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},t2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},sH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Uw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Uw(o,n)).replace("{{time}}",t2(i,n))},cH={p:t2,P:sH};const zp=cH;var dH=["D","DD"],uH=["YY","YYYY"];function n2(e){return dH.indexOf(e)!==-1}function r2(e){return uH.indexOf(e)!==-1}function Lu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vH=/^'([^]*?)'?$/,pH=/''/g,gH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=La(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ah,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Eu(R),z=ZR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(hH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=zp[E];return U(j,_.formatLong)}return j}).join("").match(fH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return mH(j);var U=lH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&r2(j)&&Lu(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&n2(j)&&Lu(j,t,String(e)),U(z,j,_.localize,A);if(E.match(gH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function mH(e){var t=e.match(vH);return t?t[1].replace(pH,"'"):e}function Ub(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function bH(e){return Ub({},e)}var Ww=1e3*60,Nu=60*24,Kw=Nu*30,qw=Nu*365;function yH(e,t,n){var r,o,i;mt(2,arguments);var a=La(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ah;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=W7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Ub(bH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/Ww,m=Eu(f)-Eu(d),g=(p-m)/Ww,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vu(e){return Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vu(e)}function Wb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Uu(e)}function Qw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DH=function(e){zH(n,e);var t=MH(n);function n(){var r;TH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function c2(e){return e%400===0||e%4===0&&e%100!==0}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function AH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jH=function(e){EH(n,e);var t=LH(n);function n(){var r;AH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=s2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Td(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Td=function(n){return typeof n}:Td=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Td(e)}function VH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XH=function(e){WH(n,e);var t=KH(n);function n(){var r;VH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Vb(o,l);if(a.isTwoDigitYear){var c=s2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Oa(o,l)}}]),n}(Yt);function Od(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Od=function(n){return typeof n}:Od=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Od(e)}function GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n9=function(e){QH(n,e);var t=JH(n);function n(){var r;GH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c9=function(e){i9(n,e);var t=a9(n);function n(){var r;r9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g9=function(e){f9(n,e);var t=h9(n);function n(){var r;d9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function m9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S9=function(e){y9(n,e);var t=x9(n);function n(){var r;m9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Fd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fd=function(n){return typeof n}:Fd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fd(e)}function _9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O9=function(e){R9(n,e);var t=P9(n);function n(){var r;_9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Dd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dd=function(n){return typeof n}:Dd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dd(e)}function z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B9=function(e){I9(n,e);var t=F9(n);function n(){var r;z9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function E9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=e2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function L9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W9=function(e){H9(n,e);var t=j9(n);function n(){var r;L9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return Oa(E9(o,a,l),l)}}]),n}(Yt);function K9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=JR(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function q9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J9=function(e){X9(n,e);var t=G9(n);function n(){var r;q9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Cl(K9(o,a))}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function ej(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aj=[31,28,31,30,31,30,31,31,30,31,30,31],lj=[31,29,31,30,31,30,31,31,30,31,30,31],sj=function(e){nj(n,e);var t=rj(n);function n(){var r;ej(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=lj[s]:i>=1&&i<=aj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function uv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pj=function(e){uj(n,e);var t=fj(n);function n(){var r;cj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Yb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=La(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function C1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cj=function(e){bj(n,e);var t=yj(n);function n(){var r;gj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function Sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tj=function(e){kj(n,e);var t=Rj(n);function n(){var r;Sj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ud(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ud=function(n){return typeof n}:Ud=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ud(e)}function Oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aj=function(e){Mj(n,e);var t=Ij(n);function n(){var r;Oj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Yb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uj=function(e){Nj(n,e);var t=Hj(n);function n(){var r;Ej(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Bj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Wj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zj=function(e){qj(n,e);var t=Yj(n);function n(){var r;Wj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oV=function(e){eV(n,e);var t=tV(n);function n(){var r;Qj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uV=function(e){lV(n,e);var t=sV(n);function n(){var r;iV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bV=function(e){vV(n,e);var t=pV(n);function n(){var r;fV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Gd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gd=function(n){return typeof n}:Gd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gd(e)}function yV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kV=function(e){wV(n,e);var t=CV(n);function n(){var r;yV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zd=function(n){return typeof n}:Zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zd(e)}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MV=function(e){$V(n,e);var t=TV(n);function n(){var r;RV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qd=function(n){return typeof n}:Qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qd(e)}function IV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LV=function(e){DV(n,e);var t=AV(n);function n(){var r;IV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function NV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KV=function(e){jV(n,e);var t=VV(n);function n(){var r;NV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function qV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JV=function(e){XV(n,e);var t=GV(n);function n(){var r;qV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function eU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aU=function(e){nU(n,e);var t=rU(n);function n(){var r;eU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hU=function(e){cU(n,e);var t=dU(n);function n(){var r;lU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xU=function(e){gU(n,e);var t=mU(n);function n(){var r;vU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PU=function(e){SU(n,e);var t=_U(n);function n(){var r;wU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FU=function(e){OU(n,e);var t=zU(n);function n(){var r;$U(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=AU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function AU(e,t){if(!!e){if(typeof e=="string")return oC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oC(e,t)}}function oC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new RH],L=_.match(EU).map(function(Oe){var ke=Oe[0];if(ke in zp){var pe=zp[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(BU),j=[],E=rC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&r2(ke)&&Lu(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&n2(ke)&&Lu(ke,_,e);var pe=ke[0],Me=DU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(jU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=UU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(au(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&HU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=ZR(re,Eu(re)),ue={},de=rC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Ub(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function UU(e){return e.match(LU)[1].replace(NU,"'")}function WU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function lh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function d2(e,t){mt(2,arguments);var n=js(e),r=js(t);return n.getTime()===r.getTime()}function Xb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function u2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Gb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=wH(a);return n.setMonth(r,Math.min(i,l)),n}function lu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lu=function(n){return typeof n}:lu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lu(e)}function Hn(e,t){if(mt(2,arguments),lu(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Gb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function qi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function fv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function KU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Gb(n,n.getMonth()+i*3)}function hv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function iC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:t7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:j7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Ii(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||XR.mount({id:"n-global",head:!0,anchorMetaName:xl,ssr:r})};r?i():Vo(i)}function f2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Fn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Ii();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+As(JSON.stringify(p))),b&&(f+="-"+As(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Ii(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(RD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:xl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Vo(i),o}function qU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function YU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const XU=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),sh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},GU=Ln(sh),h2=J({name:"Affix",props:sh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",XU,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=mb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){_a(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=qU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=YU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),Sl=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),v2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),ZU=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Nn(e,t){return J({name:PR(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const QU=Nn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Pi=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),aC=Nn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Zb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Qb=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Na=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),p2=Nn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),g2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),JU=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),eW=Nn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),tW=Nn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),nW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),Ha=Nn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),$i=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),Ti=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),rW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Oi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),zi=Nn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),lC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),m2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),b2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),ja=Nn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),oW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),iW=Nn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Fi=Nn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),aW=Nn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),y2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),lW=Nn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),sW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),cW=Nn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),dW=Nn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),uW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),fW=Nn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),hW=Nn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),vW=Nn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),pW=Nn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),gW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),_o=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Dn();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),ko=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?qf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),mW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",mW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),bW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Yo=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",bW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(p2,null)}))}}}),Ro=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:yW}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${yW} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const xW=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),wW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Jr=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},wW),setup(e){Vr("-base-loading",xW,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(_o,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function sC(e){return Array.isArray(e)?e:[e]}const Hg={STOP:"STOP"};function x2(e,t){const n=t(e);e.children!==void 0&&n!==Hg.STOP&&e.children.forEach(r=>x2(r,t))}function CW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function SW(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function _W(e){return e.children}function kW(e){return e.key}function RW(){return!1}function PW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function $W(e){return e.disabled===!0}function TW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function vv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function pv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function OW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function zW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function MW(e){return(e==null?void 0:e.type)==="group"}function w2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class C2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function IW(e,t,n,r){return Sf(t.concat(e),n,r,!1)}function FW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function DW(e,t,n,r){const o=Sf(t,n,r,!1),i=Sf(e,n,r,!0),a=FW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function gv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:OW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:zW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=DW(o,n,t,c):r!==void 0?f=IW(r,n,t,c):f=Sf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Sf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&x2(c,d=>{if(d.disabled)return Hg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),TW(d.rawNode,i))){if(r)return Hg.STOP;if(!n)throw new C2}})}),l}function AW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function BW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function EW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function cC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?LW:EW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=Jb(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=NW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function LW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function NW(e){return e.parent}function Jb(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Jb(c,t);if(d!==null)return d}else return c}}return null}const HW={getChild(){return this.ignored?null:Jb(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return cC(this,"next",e)},getPrev(e={}){return cC(this,"prev",e)}};function jg(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function jW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function S2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=S2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function eo(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=$W,getIgnored:a=RW,getIsGroup:l=MW,getKey:s=kW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:_W,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return SW(this.rawNode,d)},get shallowLoaded(){return PW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return jW(this,x)}},HW),h=S2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return jg(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return BW(h)},getPath(x,w={}){return AW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return gv({checkedKeys:vv(x),indeterminateKeys:pv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return gv({checkedKeys:vv(w),indeterminateKeys:pv(w),keysToCheck:x==null?[]:sC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return gv({checkedKeys:vv(w),indeterminateKeys:pv(w),keysToUncheck:x==null?[]:sC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return CW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},VW=An(bt.neutralBase),_2=An(bt.neutralInvertBase),UW="rgba("+_2.slice(0,3).join(", ")+", ";function dC(e){return UW+String(e)+")"}function Gn(e){const t=Array.from(_2);return t[3]=Number(e),ht(VW,t)}const WW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Lc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Lc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Lc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Lc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:dC(bt.alphaScrollbar),scrollbarColorHover:dC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=WW,KW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},qW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},KW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},YW={name:"Empty",common:et,self:qW},Di=YW,XW=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),k2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ai=J({name:"Empty",props:k2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",XW,Di,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(nW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),GW=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},ZW={name:"Scrollbar",common:et,self:GW},hr=ZW,{cubicBezierEaseInOut:uC}=_r;function Lo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=uC,leaveCubicBezier:o=uC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const QW=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Lo(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),JW=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),R2=J({name:"Scrollbar",props:JW,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=WD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Ob(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",QW,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?gp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?gp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=R2,_f=R2,eK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},tK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},eK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},nK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Di},self:tK},zl=nK;function rK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Zb)}):null})}const fC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(_b),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=rK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:ps([c,p==null?void 0:p.onClick]),onMouseenter:ps([d,p==null?void 0:p.onMouseenter]),onMousemove:ps([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),hC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(_b);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:vC,cubicBezierEaseOut:pC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${vC}, transform ${t} ${vC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${pC}, transform ${t} ${pC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const oK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),sc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",oK,zl,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>w2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>mi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(_b,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(jk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":mi(ve,"left"),"--n-option-padding-right":mi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return th(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(Jr,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ai,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(Eo,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(hC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(fC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(hC,{key:a.key,clsPrefix:n,tmNode:a}):u(fC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Ro,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),iK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),P2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",iK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),aK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Lo()]),lK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",aK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),sK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},cK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},sK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},dK={name:"Popover",common:et,self:cK},Va=dK,mv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",uK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${To("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${To("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${To("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${To("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${To("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${To("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${To("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${To("right-end")} + var(--v-offset-top)); - `),...WN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=To(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function To(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${mv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${mv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),zD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${mv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const $2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),T2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),fK=J({name:"PopoverBody",inheritAttrs:!1,props:$2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",uK,Va,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!MD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([JD,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Tl,c),nt(oc,null),nt(rc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!ba(t.header)||!ba(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(_f,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?T2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u($b,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),hK=Object.keys($2),vK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function pK(e,t,n){vK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const gK=wa("").type,za={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},O2=Object.assign(Object.assign(Object.assign({},Se.props),za),{internalOnAfterLeave:Function,internalRenderBody:Function}),Ua=J({name:"Popover",inheritAttrs:!1,props:O2,__popover__:!0,setup(e){const t=Dn(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=_i(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Tu(n,"activator"):r=Tu(n,"trigger"),r)){r=nr(r),r=r.type===gK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};pK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ic,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(fK,mn(this.$props,hK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),mK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},bK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},mK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},yK={name:"Tag",common:et,self:bK},z2=yK,M2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},xK=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),I2=Object.assign(Object.assign(Object.assign({},Se.props),M2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),F2="n-tag",xs=J({name:"Tag",props:I2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",xK,z2,e,r);nt(F2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Ra(m)}`),g&&(v+=`b${Ra(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Yo,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),wK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Vg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",wK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(_o,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(lW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),D2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(Jr,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Vg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(y2,null)])})}):null})}}}),CK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},SK=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},CK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},_K={name:"InternalSelection",common:et,peers:{Popover:Va},self:SK},ch=_K,kK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),e0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",kK,ch,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),th(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(gp,null,{default:()=>u(D2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(xs,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(xs,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(tw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(tw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Ua,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:nc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),gC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ri}=_r;function A2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ri}, - max-width ${e} ${ri} ${t}, - margin-left ${e} ${ri} ${t}, - margin-right ${e} ${ri} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ri} ${t}, - max-width ${e} ${ri}, - margin-left ${e} ${ri}, - margin-right ${e} ${ri}; - `)]}const{cubicBezierEaseOut:Ja}=_r;function RK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${Ja}, - max-width ${e} ${Ja}, - transform ${e} ${Ja} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const PK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[RK({duration:".2s"}),A2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),$K=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",PK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(qf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(gC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(ko,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},TK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},zK={name:"Alert",common:et,self:OK},MK=zK,{cubicBezierEaseInOut:oo,cubicBezierEaseOut:IK,cubicBezierEaseIn:FK}=_r;function No({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo} ${r}, - opacity ${t} ${IK} ${r}, - margin-top ${t} ${oo} ${r}, - margin-bottom ${t} ${oo} ${r}, - padding-top ${t} ${oo} ${r}, - padding-bottom ${t} ${oo} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${oo}, - opacity ${t} ${FK}, - margin-top ${t} ${oo}, - margin-bottom ${t} ${oo}, - padding-top ${t} ${oo}, - padding-bottom ${t} ${oo} - ${n?","+n:""} - `)]}const DK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),No({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),B2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),AK=J({name:"Alert",inheritAttrs:!1,props:B2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",DK,MK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=mi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(ko,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Yo,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(ja,null);case"info":return u(zi,null);case"warning":return u(Fi,null);case"error":return u(Ha,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),BK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},EK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},BK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},LK={name:"Anchor",common:et,self:EK},NK=LK,HK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),su="n-anchor",E2={title:String,href:String},jK=J({name:"AnchorLink",props:E2,setup(e,{slots:t}){const n=D(null),r=Le(su),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);FD(su,"collectedLinkHrefs",o),DD(su,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:nc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function VK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const t0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},UK=Ln(t0),WK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},t0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=ys(()=>v(!0),128);function v(p=!0){var b;const m=[],g=mb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=VK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(su,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),Jf(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),L2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),sh),t0),KK=J({name:"Anchor",props:L2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",HK,NK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(WK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,UK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(h2,Object.assign({},mn(this,GU)),{default:this.renderAnchor}):this.renderAnchor()}});function kf(e){return e.type==="group"}function N2(e){return e.type==="ignored"}function bv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function dh(e,t){return{getIsGroup:kf,getIgnored:N2,getKey(r){return kf(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function qK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(kf(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(N2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function YK(e,t,n){const r=new Map;return e.forEach(o=>{kf(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const XK=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const H2=rr&&navigator.userAgent.includes("Safari")&&!XK,GK={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},ZK=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},GK),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},QK={name:"Input",common:et,self:ZK},kr=QK,j2="n-input";function JK(e){let t=0;for(const n of e)t++;return t}function Zc(e){return e===""||e==null}function eq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const mC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(j2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||JK)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},ka(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),tq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),nq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),V2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),Mn=J({name:"Input",props:V2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",tq,kr,e,t);H2&&Vr("-input-safari",nq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=eq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Zc(Ie)||Array.isArray(Ie)&&Zc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Zc(Ie)||Array.isArray(Ie)&&Zc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Uo().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(j2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:Po,colorFocusWarning:Go,boxShadowFocusWarning:Zo,borderWarning:Qo,borderFocusWarning:Ei,borderHoverWarning:Ch,colorFocusError:Sh,boxShadowFocusError:_h,borderError:kh,borderFocusError:Rh,borderHoverError:Ph,clearSize:$h,clearColor:Th,clearColorHover:XO,clearColorPressed:GO,iconColor:ZO,iconColorDisabled:QO,suffixTextColor:JO,countTextColor:ez,countTextColorDisabled:tz,iconColorHover:nz,iconColorPressed:rz,loadingColor:oz,loadingColorError:iz,loadingColorWarning:az,[ye("padding",le)]:lz,[ye("fontSize",le)]:sz,[ye("height",le)]:cz}}=i.value,{left:dz,right:uz}=mi(lz);return{"--n-bezier":Ie,"--n-count-text-color":ez,"--n-count-text-color-disabled":tz,"--n-color":Ge,"--n-font-size":sz,"--n-border-radius":gt,"--n-height":cz,"--n-padding-left":dz,"--n-padding-right":uz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":Po,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":oz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Go,"--n-box-shadow-focus-warning":Zo,"--n-border-warning":Qo,"--n-border-focus-warning":Ei,"--n-border-hover-warning":Ch,"--n-loading-color-warning":az,"--n-caret-color-error":Qe,"--n-color-focus-error":Sh,"--n-box-shadow-focus-error":_h,"--n-border-error":kh,"--n-border-focus-error":Rh,"--n-border-hover-error":Ph,"--n-loading-color-error":iz,"--n-clear-color":Th,"--n-clear-size":$h,"--n-clear-color-hover":XO,"--n-clear-color-pressed":GO,"--n-icon-color":ZO,"--n-icon-color-hover":nz,"--n-icon-color-pressed":rz,"--n-icon-color-disabled":QO,"--n-suffix-text-color":JO}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Vg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(D2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(mC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(g2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(JU,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Vg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(mC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),rq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),U2={},W2=J({name:"InputGroup",props:U2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",rq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),oq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),K2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),iq=J({name:"InputGroupLabel",props:K2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",oq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function aq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const lq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:aq},sq=lq;function cq(e){return e.map(q2)}function q2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>q2(o))}:e}const dq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Y2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),uq=J({name:"AutoComplete",props:Y2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",dq,sq,e,r),g=P(()=>cq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>eo(g.value,dh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:Dn(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Tu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(Mn,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(sc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),pl=rr&&"loading"in document.createElement("img"),fq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},yv=new WeakMap,xv=new WeakMap,wv=new WeakMap,X2=(e,t,n)=>{if(!e)return()=>{};const r=fq(t),{root:o}=r.options;let i;const a=yv.get(o);a?i=a:(i=new Map,yv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=xv.get(h.target),p=wv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(xv.delete(e),wv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||yv.delete(o))};return xv.set(e,d),wv.set(e,n),d},hq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},vq={name:"Avatar",common:et,self:hq},G2=vq,Z2="n-avatar-group",pq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[So(O("&","--n-merged-color: var(--n-color-modal);")),Wo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),Q2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Ug=J({name:"Avatar",props:Q2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Z2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",pq,G2,e,t),f=Le(F2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Ra(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(pl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=X2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:pl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:pl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),gq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),mq=()=>({gap:"-12px"}),bq={name:"AvatarGroup",common:et,peers:{Avatar:G2},self:mq},yq=bq,J2=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),xq=J({name:"AvatarGroup",props:J2,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",gq,yq,e,t);nt(Z2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Ug,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Ug,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),wq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Cq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},wq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Sq={name:"BackTop",common:et,self:Cq},_q=Sq,kq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Rq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),eP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),Pq=J({name:"BackTop",inheritAttrs:!1,props:eP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${wp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",Rq,_q,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||mb(e.listenTo)||Sk(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(sw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(sw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:Dn(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(ac,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>kq})])):null}})}))}}),$q=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Tq={name:"Badge",common:et,self:$q},Oq=Tq,zq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),tP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Mq=J({name:"Badge",props:tP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",zq,Oq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!ba(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Ra(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:nc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u($K,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u(P2,{clsPrefix:t}):null):null}))}}),Iq={fontWeightActive:"400"},Fq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Iq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Dq={name:"Breadcrumb",common:et,self:Fq},Aq=Dq,Bq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),nP="n-breadcrumb",rP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),Eq=J({name:"Breadcrumb",props:rP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",Bq,Aq,e,t);nt(nP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Lq=rr?window:null,Nq=(e=Lq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Zs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},oP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Hq=J({name:"BreadcrumbItem",props:oP,setup(e,{slots:t}){const n=Le(nP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Nq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Yi(e){return ht(e,[255,255,255,.16])}function Qc(e){return ht(e,[0,0,0,.12])}const iP="n-button-group",jq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},Vq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},jq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Uq={name:"Button",common:et,self:Vq},vr=Uq,Wq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),A2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),aP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!H2}}),lP=J({name:"Button",props:aP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(iP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Wq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Yi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?Qc(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Yi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Yi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?Qc(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Yi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Yi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?Qc(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Yi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Ra($)),z&&(x+="k"+Ra(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Yi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":Qc(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(ko,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:ba(this.$slots.default)?"0":""}},u(_o,null,{default:()=>this.loading?u(Jr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u(P2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=lP,Qr=lP,fn="0!important",sP="-1px!important";function el(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:sP})])])])])}function tl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:sP})])])])])}const Kq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),el("default"),F("ghost",[el("primary"),el("info"),el("success"),el("warning"),el("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),cP={size:{type:String,default:void 0},vertical:Boolean},n0=J({name:"ButtonGroup",props:cP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Kq,t),nt(iP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Rf=1901,Ma=40,qq={date:X7,month:lh,year:u2,quarter:d2};function Do(e,t,n){const r=qq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function Cv(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},Zq),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},Jq={name:"Calendar",common:et,peers:{Button:vr},self:Qq},eY=Jq,tY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),So(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),Wo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),dP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),nY=J({name:"Calendar",props:dP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",tY,eY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Pf(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&wl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},ka(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(n0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(Qb,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Na,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===wl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),rY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},oY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:rY},iY=oY;function aY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Vs(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function lY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function sY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const cY={rgb:{hex(e){return yi(An(e))},hsl(e){const[t,n,r,o]=An(e);return bi([...cp(t,n,r),o])},hsv(e){const[t,n,r,o]=An(e);return ma([...sp(t,n,r),o])}},hex:{rgb(e){return go(An(e))},hsl(e){const[t,n,r,o]=An(e);return bi([...cp(t,n,r),o])},hsv(e){const[t,n,r,o]=An(e);return ma([...sp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=fl(e);return yi([...dp(t,n,r),o])},rgb(e){const[t,n,r,o]=fl(e);return go([...dp(t,n,r),o])},hsv(e){const[t,n,r,o]=fl(e);return ma([..._k(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ga(e);return yi([...li(t,n,r),o])},rgb(e){const[t,n,r,o]=ga(e);return go([...li(t,n,r),o])},hsl(e){const[t,n,r,o]=ga(e);return bi([...wd(t,n,r),o])}}};function uP(e,t,n){return n=n||Vs(e),n?n===t?e:cY[n][t](e):null}const rl="12px",dY=12,Xi="6px",uY=6,fY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",hY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=lY((i.clientX-s-uY)/(l-dY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:rl,borderRadius:Xi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:fY,height:rl,borderRadius:Xi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Xi,right:Xi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Xi})`,borderRadius:Xi,width:rl,height:rl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Xi,width:rl,height:rl}})))))}}),Xl="12px",vY=12,Gi="6px",pY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-vY);e.onUpdateAlpha(sY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Xl,borderRadius:Gi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Gi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Gi,right:Gi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Gi})`,borderRadius:Gi,width:Xl,height:Xl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:go(this.rgba),borderRadius:Gi,width:Xl,height:Xl}}))))}}),Jc="12px",ed="6px",gY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:Jc,height:Jc,borderRadius:ed,left:`calc(${this.displayedSv[0]}% - ${ed})`,bottom:`calc(${this.displayedSv[1]}% - ${ed})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:ed,width:Jc,height:Jc}})))}}),r0="n-color-picker";function mY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function bY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function yY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function xY(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function wY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const CY={paddingSmall:"0 4px"},bC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(r0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=xY(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=bY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=yY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=wY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=mY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(Mn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:CY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),SY=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?yi:vs)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ma:hp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?go:fp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?bi:vp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(W2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?yi:vs)(r)}catch{}return u(bC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(bC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),_Y=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(r0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?bi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function kY(e,t){if(t==="hsv"){const[n,r,o,i]=ga(e);return go([...li(n,r,o),i])}return e}function RY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const PY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Vs(i);return{value:i,mode:a,legalValue:kY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=RY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:uP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),$Y=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Vs(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,uP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),TY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),fP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),OY=J({name:"ColorPicker",props:fP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",TY,iY,e,s);nt(r0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?aY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Vs(g.value)),{modes:w}=e,k=D(Vs(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ga(N);case"hsl":return[T,$,R,j]=fl(N),[..._k(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=An(N),[...sp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return An(N);case"hsv":return[T,$,I,j]=ga(N),[...li(T,$,I),j];case"hsl":return[T,$,R,j]=fl(N),[...dp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return fl(N);case"hsv":return[T,$,I,j]=ga(N),[...wd(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=An(N),[...cp(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ma:hp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?bi:vp)([...wd(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?go:fp)([...li(Z,N,te),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ma:hp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?go:fp)([...li(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?yi:vs)([...li(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?bi:vp)([...wd(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ma([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(go([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(yi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(bi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(gY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(hY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(pY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u($Y,{clsPrefix:Pe,mode:k.value,color:U.value&&vs(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(SY,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(PY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:Dn(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(_Y,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),zY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},MY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},zY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},IY={name:"Card",common:et,self:MY},hP=IY,FY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Dk({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),So(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),Wo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),o0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},DY=Ln(o0),vP=Object.assign(Object.assign({},Se.props),o0),pP=J({name:"Card",props:vP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",FY,hP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=mi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Yo,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),AY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),BY={name:"Carousel",common:et,self:AY},EY=BY;function LY(e){const{length:t}=e;return t>1&&(e.push(yC(e[0],0,"append")),e.unshift(yC(e[t-1],t-1,"prepend"))),e}function yC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function xC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function Sv(e,t){return t?e+1:e}function NY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function HY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function jY(e,t){return t&&e>3?e-2:e}function wC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function CC(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function td(e,t,n){return en?n:e}function VY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const gP="n-carousel-methods",UY=e=>nt(gP,e),i0=(e="unknown",t="component")=>{const n=Le(gP);return n||Fn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},WY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},KY=J({name:"CarouselDots",props:WY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=i0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Xm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},aD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),qY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),YY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),XY=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=i0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},qY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},YY))}}),du="CarouselItem",GY=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===du},mP=J({name:du,setup(e){const{mergedClsPrefixRef:t}=He(e),n=i0(Rw(du),`n-${Rw(du)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),ZY=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),QY=["transitionDuration","transitionTimingFunction"],bP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let _v=!1;const JY=J({name:"Carousel",props:bP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>CC(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,QY):{}}),w=P(()=>h.value?0:VY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GejY(_.value,f.value)),$=Sv(e.defaultIndex,f.value),R=D(xC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>Sv(I.value,f.value));function A(oe){var Fe,Ne;oe=td(oe,0,_.value-1);const Ze=xC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return NY(oe,_.value,e.loop)}function j(oe=z.value){return HY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=td(Sv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};UY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Xs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(_v||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;_v=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=wC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=wC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=td(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(_v=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=CC(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Gm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",ZY,EY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=eX(p);return b.length||(b=p.map(m=>u(mP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=LY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&ka(h,d,()=>[u(KY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&ka(v,c,()=>[u(XY,null)]))}});function eX(e){return e.reduce((t,n)=>(GY(n)&&t.push(n),t),[])}const tX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},nX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},tX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},rX={name:"Checkbox",common:et,self:nX},Ml=rX,oX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},iX={name:"Cascader",common:et,peers:{InternalSelectMenu:zl,InternalSelection:ch,Scrollbar:hr,Checkbox:Ml,Empty:Di},self:oX},aX=iX;function nd(e){return e?e.map(t=>t.rawNode):null}function lX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Yg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Yg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const sX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),cX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),yP="n-checkbox-group",xP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},wP=J({name:"CheckboxGroup",props:xP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(yP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),dX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),So(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),Wo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),CP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Xo=J({name:"Checkbox",props:CP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(yP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",dX,Ml,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(_o,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},cX):u("div",{key:"check",class:`${c}-checkbox-icon`},sX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),cc="n-cascader",SC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(cc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Xo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Zb,null)}):null}):null:u(Jr,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Na,null)})}))))}}),uX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(cc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(Eo,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(SC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(SC,{key:r.key,tmNode:r}))}))}}),fX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(cc),l=[],s=D(null),c=D(null);function d(){o()}th(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(uX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(lK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ai,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Ro,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),hX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(cc),v=D(null),p=P(()=>lX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>eo(m.value,dh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(sc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),vX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),SP=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),pX=J({name:"Cascader",props:SP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",vX,aX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return eo(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ua(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return nd((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof C2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,nd(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,nd((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return nd((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Yg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Yg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&(Pa(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(cc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:Dn(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(fX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(hX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),gX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},mX={name:"Code",common:et,self:gX},_P=mX,bX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),kP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),RP=J({name:"Code",props:kP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:f2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",bX,_P,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),yX=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},xX={name:"Collapse",common:et,self:yX},wX=xX,CX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),No({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),PP=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),$P="n-collapse",SX=J({name:"Collapse",props:PP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",CX,wX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt($P,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),_X=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Ek(xe(e,"show"))}},render(){return u(ko,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),TP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},kX=J({name:"CollapseItem",props:TP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le($P);o||Fn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=ka(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},ka(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(Qb,null):u(Na,null)})]})),n==="left"&&l),sD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u(_X,{clsPrefix:i,displayDirective:o,show:!r},t))}}),RX=S("collapse-transition",{width:"100%"},[No()]),PX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},$X={name:"CollapseTransition",common:et,self:PX},TX=$X,OP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),OX=J({name:"CollapseTransition",props:OP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",RX,TX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(ko,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),zP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},MP=J({name:"ConfigProvider",alias:["App"],props:zP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:sl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=pu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=pu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${As(JSON.stringify(r.value))}`:g:m?As(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||GR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),IP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},zX=J({name:"Countdown",props:IP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),MX=e=>1-Math.pow(1-e,5);function IX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*MX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const FP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},FX=J({name:"NumberAnimation",props:FP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&IX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=XN(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function DX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const AX={name:"Popselect",common:et,peers:{Popover:Va,InternalSelectMenu:zl},self:DX},a0=AX,DP="n-popselect",BX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),l0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},_C=Ln(l0),EX=J({name:"PopselectPanel",props:l0,setup(e){const t=Le(DP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",BX,a0,t.props,n),i=P(()=>eo(e.options,dh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(sc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),AP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Da(za,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},za.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),l0),BP=J({name:"Popselect",props:AP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,a0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(DP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(EX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,_C),{ref:Pk(r),onMouseenter:ps([i,l.onMouseenter]),onMouseleave:ps([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Ua,Object.assign({},Da(this.$props,_C),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function LX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const NX={name:"Select",common:et,peers:{InternalSelection:ch,InternalSelectMenu:zl},self:LX},EP=NX,HX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),LP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),NP=J({name:"Select",props:LP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",HX,EP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=dh(G,q);return eo(z.value,_e)}),h=P(()=>YK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=_i(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return bv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?bv(Be,ze):typeof ze=="number"?bv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:qK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&(Pa(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:Dn(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(sc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),jX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},VX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},jX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},UX={name:"Pagination",common:et,peers:{Select:EP,Input:kr,Popselect:a0},self:VX},HP=UX;function WX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:kC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function kC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const RC=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,PC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],KX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",RC,PC),O("&:hover",RC,PC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),jP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),VP=J({name:"Pagination",props:jP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",KX,HP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>WX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||pp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||pp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(Pi,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(Mn,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u($i,null):u(Ti,null)}):u(st,{clsPrefix:t},{default:()=>u(lC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u($i,null)}):u(st,{clsPrefix:t},{default:()=>u(lC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(BP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Pi,null):u(Oi,null)})));case"size-picker":return!m&&l?u(NP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(Mn,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),qX={padding:"8px 14px"},YX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},qX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},XX={name:"Tooltip",common:et,peers:{Popover:Va},self:YX},uh=XX,GX={name:"Ellipsis",common:et,peers:{Tooltip:uh}},UP=GX,ZX={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},QX=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},ZX),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},JX={name:"Radio",common:et,self:QX},s0=JX,eG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},tG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},eG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},nG={name:"Dropdown",common:et,peers:{Popover:Va},self:tG},c0=nG,rG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},oG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},rG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},iG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Ml,Radio:s0,Pagination:HP,Scrollbar:hr,Empty:Di,Popover:Va,Ellipsis:UP,Dropdown:c0},self:oG},aG=iG,WP=Object.assign(Object.assign({},za),Se.props),fh=J({name:"Tooltip",props:WP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,uh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Ua,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),lG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function $C(e){return`${e}-ellipsis--line-clamp`}function TC(e,t){return`${e}-ellipsis--cursor-${t}`}const KP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),d0=J({name:"Ellipsis",inheritAttrs:!1,props:KP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",lG,UP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Gs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?$C(r.value):void 0,e.expandTrigger==="click"?TC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=$C(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=TC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(fh,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),sG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),qP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),to="n-data-table",cG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(to),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(sG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(v2,null)}))}}),dG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),hh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},YP="n-radio-group";function XP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(YP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const uG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),u0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),hh),setup(e){const t=XP(e),n=Se("Radio","-radio",uG,s0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),fG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function hG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=hG(Ir(tc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),vG=hh,pG=J({name:"RadioButton",props:hh,setup:XP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),QP=40,JP=40;function OC(e){if(e.type==="selection")return e.width===void 0?QP:dn(e.width);if(e.type==="expand")return e.width===void 0?JP:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function gG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:QP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:JP);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function zC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function mG(e){return e==="ascend"?1:e==="descend"?-1:0}function bG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function yG(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=gG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function xG(e,t,n){return typeof n=="function"?n(e,t):n||""}function kv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Rv(e){return"children"in e?!1:!!e.sorter}function e$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function MC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function IC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function wG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:IC(!1)}:Object.assign(Object.assign({},t),{order:IC(t.order)})}function t$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const CG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(to),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return kv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:kv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||kv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(wP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Xo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(ZP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(u0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function SG(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const _G=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(to),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=SG(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Ua,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(dG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(rW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(CG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),kG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(to),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),n$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),RG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},PG={name:"Icon",common:et,self:RG},$G=PG,TG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),r$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),o$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:r$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",TG,$G,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),f0="n-dropdown-menu",vh="n-dropdown",FC="n-dropdown-option";function Xg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function OG(e){return e.type==="group"}function i$(e){return e.type==="divider"}function zG(e){return e.type==="render"}const a$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(vh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(FC,null),g=Le(f0),y=Le(Tl),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Xg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=AD(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(FC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(l$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(o$,null,{default:()=>u(Na,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),MG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(f0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(vh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),IG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(MG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:i$(i)?u(n$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(a$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),FG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),l$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(vh);nt(f0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Xg(s,o));const{rawNode:l}=i;return Xg(l,o)})})});const r=D(null);return nt(rc,null),nt(oc,null),nt(Tl,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:zG(i)?u(FG,{tmNode:o,key:o.key}):i$(i)?u(n$,{clsPrefix:t,key:o.key}):OG(i)?u(IG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(a$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(_f,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?T2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),DG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),AG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},BG=Object.keys(za),s$=Object.assign(Object.assign(Object.assign({},za),AG),Se.props),h0=J({name:"Dropdown",inheritAttrs:!1,props:s$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return eo(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);Sb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",DG,c0,e,h);nt(vh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:Pk(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(l$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Ua,Object.assign({},mn(this.$props,BG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),c$="_n_all__",d$="_n_none__";function EG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case c$:n(!0);return;case d$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function LG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:c$};case"none":return{label:t.uncheckTableAll,key:d$};default:return n}}):[]}const NG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(to),l=P(()=>EG(r.value,o,i,a)),s=P(()=>LG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(h0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(y2,null)})})}}});function Pv(e){return typeof e.title=="function"?e.title(e):e.title}const u$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(to),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!Rv(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=wG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=bG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Xo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(NG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Pv(R)):U&&typeof U=="object"?u(d0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Pv(R)}):Pv(R)),Rv(R)?u(cG,{column:R}):null),MC(R)?u(_G,{column:R,options:R.filterOptions}):null,e$(R)?u(kG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:t$(R,b),[`${t}-data-table-th--filterable`]:MC(R),[`${t}-data-table-th--sortable`]:Rv(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),HG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(Hs(n,a),n,t):Hs(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(d0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),DC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Na,null)})}))}}),jG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(to);return()=>{const{rowKey:r}=e;return u(Xo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),VG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(to);return()=>{const{rowKey:r}=e;return u(u0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function UG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const WG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),KG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(to),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:xl}),ut=!0}),Zs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?UG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:xG(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(VG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(jG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(DC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(HG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(Eo,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:WG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(u$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ai,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),qG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(to),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(u$,{ref:"headerInstRef"}),u(KG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function YG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function rd(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function XG(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?GG(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function GG(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function ZG(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=rd(p.sorter)||0;return(rd(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=XG(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*mG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&rd(v.sorter)!==!1?(p=p.filter(b=>rd(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function QG(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return eo(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(zC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=ZG(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=zC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function JG(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=OC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=OC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&_a(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&_a(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function eZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){e$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function tZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:yG(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function nZ(e,t){const n=P(()=>tZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function rZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const AC=iZ(),oZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),AC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),AC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),So(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),Wo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function iZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const aZ=J({name:"DataTable",alias:["AdvancedTable"],props:qP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",oZ,aG,e,r),l=D(null),s=D("body");Gs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=eZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=nZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=QG(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=YG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=rZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=JG(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(to,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:Po,[ye("fontSize",Ve)]:Go,[ye("thPadding",Ve)]:Zo,[ye("tdPadding",Ve)]:Qo}}=a.value;return{"--n-font-size":Go,"--n-th-padding":Zo,"--n-td-padding":Qo,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":Po}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(qG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(VP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(Jr,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),lZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},sZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},lZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},cZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:sZ},f$=cZ,dZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},uZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},dZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},fZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:f$,Scrollbar:hr},self:uZ},hZ=fZ;function vZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function pZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[0]),p=Hu(h[0]),b=ju(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=si(h[1]),p=Hu(h[1]),b=ju(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const ph="n-date-picker";function gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gg={exports:{}},Zg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Zg,Zg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Zg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Gg,Gg.exports);const gZ=gh(Gg.exports);var Qg={exports:{}},Jg={exports:{}},em={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(em,em.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(em.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(Jg,Jg.exports);var tm={exports:{}},nm={exports:{}},Ho={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Ho,Ho.exports);const mZ=gh(Ho.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Ho.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(nm,nm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Xn.exports),o=i(Ho.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(om,om.exports);var im={exports:{}},Us={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})($f,$f.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i($f.exports),r=i(Us.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(am,am.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Us.exports),o=a(am.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(im,im.exports);var lm={exports:{}},Ws={exports:{}},Wa={};Object.defineProperty(Wa,"__esModule",{value:!0});Wa.getDefaultOptions=bZ;Wa.setDefaultOptions=yZ;var h$={};function bZ(){return h$}function yZ(e){h$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Ho.exports),i=Wa;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Tf,Tf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Tf.exports),r=l(Xn.exports),o=l(Ws.exports),i=l(Ho.exports),a=Wa;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(lm,lm.exports);var Of={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(cm,cm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(om.exports),r=c(im.exports),o=c($f.exports),i=c(lm.exports),a=c(Tf.exports),l=c(Of.exports),s=c(cm.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(rm,rm.exports);var dm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(dm,dm.exports);var zf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(zf,zf.exports);const BC=gh(zf.exports);var dc={};Object.defineProperty(dc,"__esModule",{value:!0});dc.isProtectedDayOfYearToken=CZ;dc.isProtectedWeekYearToken=SZ;dc.throwProtectedError=_Z;var xZ=["D","DD"],wZ=["YY","YYYY"];function CZ(e){return xZ.indexOf(e)!==-1}function SZ(e){return wZ.indexOf(e)!==-1}function _Z(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var um={exports:{}},fm={exports:{}},hm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(hm,hm.exports);var vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(pm,pm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(pm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(vm,vm.exports);var gm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(gm,gm.exports);var mm={exports:{}},bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(bm,bm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(bm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(mm,mm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(xm.exports),r=o(wm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(ym,ym.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(hm.exports),r=l(vm.exports),o=l(gm.exports),i=l(mm.exports),a=l(ym.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(fm,fm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(fm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(Jg.exports),r=v(tm.exports),o=v(Lr.exports),i=v(rm.exports),a=v(dm.exports),l=v(zf.exports),s=dc,c=v(Ho.exports),d=v(Xn.exports),f=Wa,h=v(um.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(Qg,Qg.exports);const kZ=gh(Qg.exports);function EC(e,t,n){var r=$Z(e,n.timeZone,n.locale);return r.formatToParts?RZ(r,t):PZ(r,t)}function RZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function PZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function $Z(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function TZ(e,t){var n=IZ(t);return n.formatToParts?zZ(n,e):MZ(n,e)}var OZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function zZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function MZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var $v={};function IZ(e){if(!$v[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";$v[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return $v[e]}function v$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var LC=36e5,FZ=6e4,Tv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function v0(e,t,n){var r,o;if(!e||(r=Tv.timezoneZ.exec(e),r))return 0;var i;if(r=Tv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),NC(i)?-(i*LC):NaN;if(r=Tv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return NC(i,a)?(o=Math.abs(i)*LC+a*FZ,i>0?-o:o):NaN}if(BZ(e)){t=new Date(t||Date.now());var l=n?t:DZ(t),s=Cm(l,e),c=n?s:AZ(t,s,e);return-c}return NaN}function DZ(e){return v$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Cm(e,t){var n=TZ(e,t),r=v$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function AZ(e,t,n){var r=e.getTime(),o=r-t,i=Cm(new Date(o),n);if(t===i)return t;o-=i-t;var a=Cm(new Date(o),n);return i===a?i:Math.max(i,a)}function NC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var HC={};function BZ(e){if(HC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),HC[e]=!0,!0}catch{return!1}}var EZ=60*1e3,LZ={X:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return jC(o);case"XXXX":case"XX":return al(o);case"XXXXX":case"XXX":default:return al(o,":")}},x:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);switch(t){case"x":return jC(o);case"xxxx":case"xx":return al(o);case"xxxxx":case"xxx":default:return al(o,":")}},O:function(e,t,n,r){var o=Ov(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+NZ(o,":");case"OOOO":default:return"GMT"+al(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return EC("short",o,r);case"zzzz":default:return EC("long",o,r)}}};function Ov(e,t){var n=e?v0(e,t,!0)/EZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Mf(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Mf(Math.floor(o/60),2),a=Mf(Math.floor(o%60),2);return r+i+n+a}function jC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Mf(Math.abs(e)/60,2)}return al(e,t)}function NZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Mf(i,2)}const HZ=LZ;var jZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const VZ=jZ;var zv=36e5,VC=6e4,UZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:VZ};function p$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?UZ:mZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=WZ(e),i=KZ(o.date,r),a=i.year,l=i.restDateString,s=qZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=YZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=v0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=BC(new Date(c+d)),f=BC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function WZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function KZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function qZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,WC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return ZZ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return WC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,KC(t,i)?UC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return KC(t,i,s)?UC(t,i,s):new Date(NaN)}return null}function YZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Mv(n)?n%24*zv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Mv(n,r)?n%24*zv+r*VC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Mv(n,r,o)?n%24*zv+r*VC+o*1e3:NaN}return null}function UC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var XZ=[31,28,31,30,31,30,31,31,30,31,30,31],GZ=[31,29,31,30,31,30,31,31,30,31,30,31];function g$(e){return e%400===0||e%4===0&&e%100!==0}function WC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=g$(e);if(r&&n>GZ[t]||!r&&n>XZ[t])return!1}return!0}function ZZ(e,t){if(t<1)return!1;var n=g$(e);return!(n&&t>366||!n&&t>365)}function KC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Mv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var QZ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function JZ(e,t,n){var r=String(t),o=n||{},i=r.match(QZ);if(i){var a=p$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+HZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return kZ(e,r,o)}function eQ(e,t,n){var r=p$(e,n),o=v0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function m$(e,t,n,r){var o=gZ(r);return o.timeZone=t,JZ(eQ(e,t),n,o)}const ns={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Iv(e){return`00${e}`.slice(-2)}function rs(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Iv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Iv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Iv(r===12?12:r-12)):e}function od(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function tQ(e,t,n){const r=rs(ns[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Fn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function nQ(e){return si(e)<12?"am":"pm"}const b$="n-time-picker",id=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),rQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},oQ=J({name:"TimePickerPanel",props:rQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(b$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:nQ(Date.now());return rs(ns.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return rs(ns.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return rs(ns.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return rs(ns.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(id,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Ro,{onFocus:this.onFocusDetectorFocus}))}}),iQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Fv(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const y$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Fv(e,23)},minutes:{type:[Number,Array],validator:e=>Fv(e,59)},seconds:{type:[Number,Array],validator:e=>Fv(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),If=J({name:"TimePicker",props:y$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",iQ,f$,e,n),h=Sb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>m$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:od(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!od(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!od(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:si(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&Pa(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&(Pa(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(qi(WU(new Date),se))):pe(tt(qi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(fv(Q7(new Date),se))):pe(tt(fv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(hv(Xb(new Date),se))):pe(tt(hv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=si(oe);se==="pm"&&Fe<12?pe(tt(qi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(qi(oe,Fe-12))),pe(tt(oe))}else{const oe=si($e);se==="pm"&&oe<12?pe(tt(qi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(qi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=Hn(oe,{hours:si($e),minutes:Hu($e),seconds:ju($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:si,minutes:Hu,seconds:ju},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||od($e[Ue](se),Ue,e[Ue])?$e[Ue](se):tQ($e[Ue](se),Ue,e[Ue])),Ze=hv(fv(qi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(b$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:Dn(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(Mn,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(iW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(oQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),aQ="HH:mm:ss",x$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:aQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function w$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(ph),l=P(()=>({locale:t.value.locale})),s=D(null),c=Sb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const p0=Object.assign(Object.assign({},x$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function g0(e,t){const n=w$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(ph),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Pf(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return Wg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return qg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Kg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(lh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Xb(B):t==="month"?Tr(B):t==="year"?jb(B):t==="quarter"?js(B):wl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=Hn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=Hn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=cu(e.defaultTime);te&&(N=tt(Hn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?KU(iC(N,B.dateObject.year),B.dateObject.quarter):Hn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Gb(te,B.dateObject.month):iC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Op(g.value,1))}function we(){g.value=tt(Op(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ma})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Rf;y.value.scrollTo({top:te*Ma})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const C$=J({name:"MonthPanel",props:Object.assign(Object.assign({},p0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=g0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"yearVlRef",items:this.yearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),_l=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(C$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),lQ=J({name:"DateTimePanel",props:p0,setup(e){return g0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(Mn,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(If,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u($i,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),m0=Object.assign(Object.assign({},x$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function b0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(ph),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=w$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Pf(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Pf(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>qg(nl(e.value,"start"),ee.value)),ve=P(()=>qg(nl(e.value,"end"),ee.value)),Z=P(()=>{const Re=nl(e.value,"start");return Kg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=nl(e.value,"end");return Kg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=nl(e.value,"start");return Wg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=nl(e.value,"end");return Wg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=cu(At[0]),Ut=cu(At[1])):(kt=cu(At),Ut=kt)}kt&&(Re=tt(Hn(Re,kt))),Ut&&(Ye=tt(Hn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Xb(Re):t==="monthrange"?Tr(Re):wl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=Hn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=Hn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=Hn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=Hn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=Hn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=Hn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=Hn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=Hn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Rf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ma})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Rf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?Hn(Re.ts,{month:qt(t==="quarterrange"?js(new Date):new Date)}).valueOf():Hn(Re.ts,{month:qt(t==="quarterrange"?js(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const sQ=J({name:"DateTimeRangePanel",props:m0,setup(e){return b0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(Mn,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(If,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(Mn,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(If,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),cQ=J({name:"DatePanel",props:p0,setup(e){return g0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Qr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),dQ=J({name:"DateRangePanel",props:m0,setup(e){return b0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u($i,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Pi,null)])),u(_l,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(Ti,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),uQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0}}),setup(e){const t=b0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(Eo,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ma,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Zm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Qr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Qr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Ro,{onFocus:this.handleFocusDetectorFocus}))}}),fQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),S$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),hQ=J({name:"DatePicker",props:S$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",fQ,hZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&(Pa(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&Pa(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=vZ(e,A),We=pZ(e,A);nt(ph,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:Po,calendarDaysHeight:Go,calendarDaysTextColor:Zo,arrowSize:Qo,panelHeaderPadding:Ei,calendarDividerColor:Ch,calendarTitleGridTempateColumns:Sh,iconColor:_h,iconColorDisabled:kh,scrollItemBorderRadius:Rh,calendarTitleColorHover:Ph,[ye("calendarLeftPadding",ae)]:$h,[ye("calendarRightPadding",ae)]:Th}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ei,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":$h,"--n-calendar-right-padding":Th,"--n-calendar-title-color-hover":Ph,"--n-calendar-title-height":Po,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Sh,"--n-calendar-days-height":Go,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Zo,"--n-calendar-divider-color":Ch,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Rh,"--n-arrow-size":Qo,"--n-arrow-color":be,"--n-icon-color":_h,"--n-icon-color-disabled":kh}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:Dn(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(lQ,Object.assign({},o),r):l==="daterange"?u(dQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(sQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(C$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(uQ,Object.assign({},o,{type:l})):u(cQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(Mn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(cW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(aC,null)})])}):u(Mn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(aC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),vQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},pQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},vQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},gQ={name:"Descriptions",common:et,self:pQ},mQ=gQ,_$="DESCRIPTION_ITEM_FLAG";function bQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[_$]:!1}const yQ=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),So(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),k$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),xQ=J({name:"Descriptions",props:k$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",yQ,mQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:_i(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>bQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Px(g,"label")],k=[Px(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||tc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),R$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},wQ=J({name:"DescriptionsItem",[_$]:!0,props:R$,render(){return null}}),CQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},SQ=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},CQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},_Q={name:"Dialog",common:et,peers:{Button:vr},self:SQ},P$=_Q,uc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},$$=Ln(uc),kQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),So(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Dk(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),RQ={default:()=>u(zi,null),info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null)},y0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),uc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",kQ,P$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):RQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Yo,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),T$="n-dialog-provider",O$="n-dialog-api",z$="n-dialog-reactive-list",PQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},$Q={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:P$,Card:hP},self:PQ},TQ=$Q,x0=Object.assign(Object.assign({},o0),uc),OQ=Ln(x0),zQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},x0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),oR(P(()=>e.blockScroll&&r.value));const a=Le(Vk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(rc,t),nt(oc,null),nt(Tl,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Tu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u($b,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(y0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,$$),{"aria-modal":"true"}),e):this.preset==="card"?u(pP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,DY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),MQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Lo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),M$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),x0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),I$=J({name:"Modal",inheritAttrs:!1,props:M$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",MQ,TQ,e,n),a=Hk(64),l=Nk(),s=Dn(),c=e.internalDialog?Le(T$,null):null,d=iR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Bk(w)&&!d.value&&f(!1)}nt(Vk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,OQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(ac,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(zQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ic,{zIndex:this.zIndex,enabled:this.show}]])}})}}),IQ=Object.assign(Object.assign({},uc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),FQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},IQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(I$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(y0,Object.assign({},mn(this.$props,$$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),F$={injectionKey:String,to:[String,Object]},D$=J({name:"DialogProvider",props:F$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Mi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(O$,a),nt(T$,{clickedRef:Hk(64),clickPositionRef:Nk()}),nt(z$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(FQ,Da(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function A$(){const e=Le(O$,null);return e===null&&Fn("use-dialog","No outer founded."),e}function DQ(){const e=Le(z$,null);return e===null&&Fn("use-dialog-reactive-list","No outer founded."),e}const AQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},BQ={name:"Divider",common:et,self:AQ},EQ=BQ,LQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),B$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),NQ=J({name:"Divider",props:B$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",LQ,EQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),HQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},jQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:HQ},VQ=jQ,UQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(kb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return oR(P(()=>e.blockScroll&&t.value)),nt(oc,n),nt(Tl,null),nt(rc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u($b,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:WQ,cubicBezierEaseOut:KQ}=_r;function qQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${WQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${KQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:YQ,cubicBezierEaseOut:XQ}=_r;function GQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${YQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${XQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:ZQ,cubicBezierEaseOut:QQ}=_r;function JQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ZQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${QQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:eJ,cubicBezierEaseOut:tJ}=_r;function nJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${eJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const rJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[qQ(),GQ(),JQ(),nJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Lo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),E$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),oJ=J({name:"Drawer",inheritAttrs:!1,props:E$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Dn(),i=Se("Drawer","-drawer",rJ,VQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=iR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Bk(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(kb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(ac,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(UQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ic,{zIndex:this.zIndex,enabled:this.show}]])}})}}),L$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},iJ=J({name:"DrawerContent",props:L$,setup(){const e=Le(kb,null);e||Fn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Yo,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),aJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},lJ=()=>aJ,sJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:lJ},cJ=sJ,w0="n-dynamic-input",dJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(w0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),uJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(w0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(Mn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),fJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),ad=new WeakMap,N$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),hJ=J({name:"DynamicInput",props:N$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(zu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",fJ,cJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=fa($)?zt($):$;let z=ad.get(I);return z===void 0&&ad.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=fa(A)?zt(A):A,j=fa(R)?zt(R):R,E=ad.get(L);E!==void 0&&ad.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(w0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(Sl,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},ka(e.default,{value:r[y],index:y},()=>[s==="input"?u(dJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(uJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(n0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(m2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(ZU,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(v2,null)})}):null]})))))}}),vJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},pJ=()=>vJ,gJ={name:"Space",self:pJ},H$=gJ;let Dv;const mJ=()=>{if(!rr)return!0;if(Dv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Dv=t}return Dv},j$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),V$=J({name:"Space",props:j$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,H$,e,t),o=Zt("Space",n,t);return{useGap:mJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=ZF(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(tc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),bJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:z2,Space:H$},self(){return{inputWidth:"64px"}}},yJ=bJ,xJ=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),U$=Object.assign(Object.assign(Object.assign({},Se.props),M2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),wJ=J({name:"DynamicTags",props:U$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",xJ,yJ,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>pp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(V$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(xs,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(Mn,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(Sl,null)})}))}})}}),CJ={name:"Element",common:et},SJ=CJ,W$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),qC=J({name:"Element",alias:["El"],props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,SJ,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${YR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),_J={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},kJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},_J),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},RJ={name:"Form",common:et,self:kJ},K$=RJ,PJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),fc="n-form",q$="n-form-item-insts";var $J=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const Y$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),TJ=J({name:"Form",props:Y$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",PJ,K$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return $J(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Ln(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Ln(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(fc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(q$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uu(e,t,n){return zJ()?uu=Reflect.construct.bind():uu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&Ks(c,a.prototype),c},uu.apply(null,arguments)}function MJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _m(e){var t=typeof Map=="function"?new Map:void 0;return _m=function(r){if(r===null||!MJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return uu(r,arguments,Sm(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ks(o,r)},_m(e)}var IJ=/%[sdj%]/g,FJ=function(){};typeof process<"u"&&process.env;function km(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function DJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function In(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DJ(t)&&typeof e=="string"&&!e)}function AJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function YC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},os={integer:function(t){return os.number(t)&&parseInt(t,10)===t},float:function(t){return os.number(t)&&!os.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!os.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(QC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(jJ())},hex:function(t){return typeof t=="string"&&!!t.match(QC.hex)}},VJ=function(t,n,r,o,i){if(t.required&&n===void 0){X$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?os[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},UJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},ol="enum",WJ=function(t,n,r,o,i){t[ol]=Array.isArray(t[ol])?t[ol]:[],t[ol].indexOf(n)===-1&&o.push(mr(i.messages[ol],t.fullField,t[ol].join(", ")))},KJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:X$,whitespace:HJ,type:VJ,range:UJ,enum:WJ,pattern:KJ},qJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),In(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},YJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},XJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},GJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},ZJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),In(n)||Bt.type(t,n,o,a,i)}r(a)},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},nee="enum",ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[nee](t,n,o,a,i)}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),In(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!In(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},aee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Av=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(In(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),In(n,a)||Bt.type(t,n,o,l,i)}r(l)},lee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(In(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},ws={string:qJ,method:YJ,number:XJ,boolean:GJ,regexp:ZJ,integer:QJ,float:JJ,array:eee,object:tee,enum:ree,pattern:oee,date:iee,url:Av,hex:Av,email:Av,required:aee,any:lee};function Rm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Pm=Rm(),hc=function(){function e(n){this.rules=null,this._messages=Pm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=ZC(Rm(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function cee(e){const t=Le(fc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function dee(e){const t=Le(fc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=Hs(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:JC}=_r;function uee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=JC,leaveCubicBezier:i=JC}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const fee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),uee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var eS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),G$=Ln(vc);function tS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const C0=J({name:"FormItem",props:vc,setup(e){ID(q$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(fc,null),o=see(e),i=cee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=dee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",fee,K$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return eS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>eS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?Hs(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=tS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=tS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new hc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(zu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),nS=1,Z$="n-grid",Q$=1,qs={span:{type:[Number,String],default:Q$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},hee=Ln(qs),$m=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:qs,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Z$),i=Uo();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=Q$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),Tm=Object.assign(Object.assign({},qs),vc),rS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:Tm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u($m,mn(this.$.vnode.props||{},hee),{default:()=>{const e=mn(this.$props,G$);return u(C0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),vee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),pee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),vee])]),J$="n-row",mh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},gee=Ln(mh),eT=J({name:"Row",props:mh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",pee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(J$,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),bh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},mee=Ln(bh),tT=J({name:"Col",props:bh,setup(e){const t=Le(J$,null);return t||Fn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),S0=Object.assign(Object.assign({},bh),vc),bee=Ln(S0),nT=J({name:"FormItemCol",props:S0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,mee),{default:()=>{const e=mn(this.$props,G$);return u(C0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),yee=Object.assign(Object.assign({},mh),S0),xee=J({name:"FormItemRow",props:yee,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(eT,mn(this.$props,gee),{default:()=>{const e=mn(this.$props,bee);return u(nT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),wee=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Vo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?sl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Zs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Cee=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},See={name:"GradientText",common:et,self:Cee},_ee=See,kee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),rT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Ree=J({name:"GradientText",props:rT,setup(e){Rb();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",kee,_ee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),Pee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},oT=24,Bv="__ssr__",iT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:oT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},$ee=J({name:"Grid",inheritAttrs:!1,props:iT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=YD((n==null?void 0:n.value)||Pee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(jl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:oT}),c=it(()=>jl(e.xGap.toString(),l.value)),d=it(()=>jl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{_a(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Bv)&&(g.removeAttribute(Bv),b.value=!0)}),nt(Z$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(tc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(cD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=jl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:nS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:nS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=jl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Bv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Tee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Oee={name:"IconWrapper",common:et,self:Tee},zee=Oee,Mee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),aT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Iee=J({name:"IconWrapper",props:aT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Mee,zee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),_0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),lT="n-image";function Fee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Dee={name:"Image",common:et,peers:{Tooltip:uh},self:Fee},Aee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Bee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Aee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},Eee={name:"Notification",common:et,peers:{Scrollbar:hr},self:Bee},Lee=Eee,Nee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Hee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Nee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},jee={name:"Message",common:et,self:Hee},Vee=jee,Uee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Wee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Uee},Kee=Wee,qee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Yee={name:"Layout",common:et,peers:{Scrollbar:hr},self:qee},yh=Yee,Xee=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},Gee={name:"List",common:et,self:Xee},Zee=Gee,Qee=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},Jee={name:"LoadingBar",common:et,self:Qee},ete=Jee,tte=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},nte={name:"Log",common:et,peers:{Scrollbar:hr,Code:_P},self:tte},rte=nte,ote=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},ite={name:"Mention",common:et,peers:{InternalSelectMenu:zl,Input:kr},self:ote},ate=ite;function lte(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const ste=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},lte("#BBB",r,"#FFF","#AAA"))},cte={name:"Menu",common:et,peers:{Tooltip:uh,Dropdown:c0},self:ste},dte=cte,ute={titleFontSize:"18px",backSize:"22px"};function fte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},ute),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const hte={name:"PageHeader",common:et,self:fte},vte={iconSize:"22px"},pte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},vte),{fontSize:t,iconColor:n})},gte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Va},self:pte},mte=gte,bte=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},yte={name:"Progress",common:et,self:bte},sT=yte,xte=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},wte={name:"Rate",common:et,self:xte},Cte=wte,Ste={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},_te=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},Ste),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},kte={name:"Result",common:et,self:_te},Rte=kte,Pte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},$te=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},Pte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Tte={name:"Slider",common:et,self:$te},Ote=Tte,zte=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Mte={name:"Spin",common:et,self:zte},Ite=Mte,Fte=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Dte={name:"Statistic",common:et,self:Fte},Ate=Dte,Bte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},Ete=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},Bte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Lte={name:"Steps",common:et,self:Ete},Nte=Lte,Hte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},jte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Hte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},Vte={name:"Switch",common:et,self:jte},Ute=Vte,Wte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Kte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Wte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},qte={name:"Table",common:et,self:Kte},Yte=qte,Xte={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},Gte=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Xte),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},Zte={name:"Tabs",common:et,self:Gte},Qte=Zte,Jte=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},ene={name:"Thing",common:et,self:Jte},tne=ene,nne={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},rne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},nne),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},one={name:"Timeline",common:et,self:rne},ine=one,ane={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},lne=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},ane),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},sne={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Di,Button:vr},self:lne},cne=sne,dne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},une={name:"Tree",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Empty:Di},self:dne},cT=une,fne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},hne={name:"TreeSelect",common:et,peers:{Tree:cT,Empty:Di,InternalSelection:ch},self:fne},vne=hne,pne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},gne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},pne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},mne={name:"Typography",common:et,self:gne},Bi=mne,bne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},yne={name:"Upload",common:et,peers:{Button:vr,Progress:sT},self:bne},xne=yne,wne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Cne=wne,Sne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),_ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),kne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),Rne=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Lo()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Lo()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),sd=32,dT=J({name:"ImagePreview",props:Object.assign(Object.assign({},_0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",Rne,Dee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,_a(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Xs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${YR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(fh,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:Dn(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(ac,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Sne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>_ne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(hW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(fW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(gW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(pW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(vW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>kne}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ic,{enabled:this.show}]])):null}}))}}),uT="n-image-group",fT=_0,hT=J({name:"ImageGroup",props:fT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Uo(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(uT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(dT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),vT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},_0),pT=J({name:"Image",props:vT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(uT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(pl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=X2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(lT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:pl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:pl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(dT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function Pne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function $ne(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Ev(e){return e==null?!0:!Number.isNaN(e)}function oS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Lv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Tne=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),iS=800,aS=100,gT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),One=J({name:"InputNumber",props:gT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Tne,Kee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Lv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Lv(e.min);return B!==null?B:null}),k=it(()=>{const B=Lv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&$ne(Z))return!1;const fe=(e.parse||Pne)(Z);if(fe===null)return N&&_(null),null;if(Ev(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Ev(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=oS(B,void 0):m.value=oS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},aS)},iS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},aS)},iS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=An(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Qr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(m2,null)})])}),r=()=>u(Qr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(Sl,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(Mn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),mT="n-layout-sider",xh={type:String,default:"static"},zne=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Om={embedded:Boolean,position:xh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},bT="n-layout";function yT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Om),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",zne,yh,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(bT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Ob(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Mne=yT(!1),Ine=yT(!0),Fne=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),xT={position:xh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Dne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),xT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Fne,yh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Ane=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),wT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:xh,bordered:Boolean}),Bne=J({name:"LayoutFooter",props:wT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Ane,yh,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),Ene=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Lne=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Na,null)}))}}),Nne=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),CT={position:xh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Hne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),CT),setup(e){const t=Le(bT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Ob(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(mT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",Ene,yh,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Nne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Lne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),jne={extraFontSize:"12px",width:"440px"},Vne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},jne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Une={name:"Transfer",common:et,peers:{Checkbox:Ml,Scrollbar:hr,Input:kr,Empty:Di,Button:vr},self:Vne},Wne=Une,pc="n-transfer",lS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(pc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Xo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),sS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(pc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:nc(r)},r))}}),cS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(pc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(sS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(qf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(sS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),dS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(pc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(Mn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(b2,null)})}))}});function Kne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const qne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Yne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Lo()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),qne]),ST=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Xne=J({name:"LegacyTransfer",props:ST,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Yne,Wne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Kne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(pc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Dn(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(lS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(dS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(cS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Na,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Qb,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(lS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(dS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(cS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),Gne=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),So(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),Wo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),_T=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),kT="n-list",Zne=J({name:"List",props:_T,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",Gne,Zee,e,t);nt(kT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),Qne=J({name:"ListItem",setup(){const e=Le(kT,null);return e||Fn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),RT="n-loading-bar",PT="n-loading-bar-api",Jne=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Lo({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var Nv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function cd(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ere=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(RT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return Nv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return Nv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=cd(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=cd("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=cd("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=cd("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return Nv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",Jne,ete,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),$T=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),TT=J({name:"LoadingBarProvider",props:$T,setup(e){const t=Dn(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt(PT,r),nt(RT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Qs,{disabled:this.to===!1,to:this.to||"body"},u(ere,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function OT(){const e=Le(PT,null);return e===null&&Fn("use-loading-bar","No outer founded."),e}const tre=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(Jr,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),zT="n-log",nre=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(zT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),rre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),MT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),ore=J({name:"Log",props:MT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",rre,rte,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=ys(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(zT,{languageRef:xe(e,"language"),mergedHljsRef:f2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(RP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(nre,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(tre,{clsPrefix:e}):null})])}}),gc="n-menu",k0="n-submenu",R0="n-menu-item-group",dd=8;function P0(e){const t=Le(gc),{props:n,mergedCollapsedRef:r}=t,o=Le(k0,null),i=Le(R0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?dd:(p===void 0?v:p)+b+dd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const $0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},IT=Object.assign(Object.assign({},$0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),ire=J({name:"MenuOptionGroup",props:IT,setup(e){nt(k0,null);const t=P0(e);nt(R0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(gc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>T0(s,r))))}}}),FT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(gc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(sW,null)}):null)}}),DT=Object.assign(Object.assign({},$0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),are=J({name:"Submenu",props:DT,setup(e){const t=P0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(k0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt(R0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(FT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(ko,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>T0(s,this.menuProps)))}});return this.root?u(h0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),AT=Object.assign(Object.assign({},$0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),lre=J({name:"MenuOption",props:AT,setup(e){const t=P0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(fh,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(FT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),sre=J({name:"MenuDivider",setup(){const e=Le(gc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),cre=Ln(IT),dre=Ln(AT),ure=Ln(DT);function BT(e){return e.type==="divider"||e.type==="render"}function fre(e){return e.type==="divider"}function T0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(BT(n))return fre(n)?u(sre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(ire,mn(s,cre,{tmNode:e,tmNodes:e.children,key:i})):u(are,mn(s,ure,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(lre,mn(s,dre,{key:i,tmNode:e}))}const uS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],fS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],hre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",fS)]),F("selected",[Zi(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Zi(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Zi("border-bottom: 2px solid var(--n-border-color-horizontal);",fS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",uS)]),F("selected",[Zi(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Zi(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Zi(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Zi(null,uS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[No({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Zi(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const ET=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),vre=J({name:"Menu",props:ET,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",hre,dte,e,t),o=Le(mT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return eo(e.items||e.options,{getIgnored(I){return BT(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=_i(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(gc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>T0(o,this.$props)))}});function pre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const gre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),LT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),mre=J({name:"Mention",props:LT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",gre,ate,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>eo(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=pre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:Dn(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(Mn,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(sc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),NT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},HT="n-message-api",jT="n-message-provider",bre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[No({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),yre={info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null),default:()=>null},xre=J({name:"Message",props:Object.assign(Object.assign({},NT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(jT),i=Zt("Message",n,o),a=Se("Message","-message",bre,Vee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=wre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(_o,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Yo,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function wre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(Jr,{clsPrefix:n,strokeWidth:24,scale:.85}):yre[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Cre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},NT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(ko,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(xre,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),VT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),UT=J({name:"MessageProvider",props:VT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(jT,{props:e,mergedClsPrefixRef:t}),nt(HT,o);function i(s,c){const d=Cr(),f=Mi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Qs,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Cre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Da(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function WT(){const e=Le(HT,null);return e===null&&Fn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const wh="n-notification-provider",Sre=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(wh),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),_re={info:()=>u(zi,null),success:()=>u(ja,null),warning:()=>u(Fi,null),error:()=>u(Ha,null),default:()=>null},O0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},kre=Ln(O0),Rre=J({name:"Notification",props:O0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(wh),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=mi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>_re[this.type]()}):null):null,this.closable?u(Yo,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),Pre=Object.assign(Object.assign({},O0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),$re=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},Pre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(wh),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Rre,Object.assign({},mn(this.$props,kre),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Tre=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[ud("top-right")]),F("top-left",` - left: 0; - `,[ud("top-left")]),F("bottom-right",` - right: 0; - `,[ud("bottom-right")]),F("bottom-left",` - left: 0; - `,[ud("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function ud(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const KT="n-notification-api",qT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),YT=J({name:"NotificationProvider",props:qT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Mi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Tre,Lee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(KT,c),nt(wh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Qs,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(Sre,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u($re,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Da(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function XT(){const e=Le(KT,null);return e===null&&Fn("use-notification","No outer `n-notification-provider` found."),e}const Ore=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),GT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),zre=J({name:"PageHeader",props:GT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Ore,hte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(uW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),ZT="n-popconfirm",QT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},hS=Ln(QT),Mre=J({name:"NPopconfirmPanel",props:QT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(ZT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Fi,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Ire=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),JT=Object.assign(Object.assign(Object.assign({},Se.props),za),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Fre=J({name:"Popconfirm",props:JT,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Ire,mte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(ZT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Ua,Da(t,hS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,hS);return u(Mre,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Dre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Are={success:u(ja,null),error:u(Ha,null),warning:u(Fi,null),info:u(zi,null)},Bre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Are[f]}))):null)}}}),Ere={success:u(ja,null),error:u(Ha,null),warning:u(Fi,null),info:u(zi,null)},Lre=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>Ere[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function vS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Nre=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:vS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:vS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),eO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),tO=J({name:"Progress",props:eO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Dre,sT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Lre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(Bre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Nre,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Hre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),jre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),nO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Vre=J({name:"Rate",props:nO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",jre,Cte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Ra(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},A5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Hre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Ure=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Wre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Kre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),qre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Yre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Xre={403:qre,404:Ure,418:Kre,500:Wre,info:u(zi,null),success:u(ja,null),warning:u(Fi,null),error:u(Ha,null)},rO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),Gre=J({name:"Result",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Yre,Rte,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>Xre[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),oO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Zre=J({name:"Scrollbar",props:oO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),Qre=Zre,Jre=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},eoe={name:"Skeleton",common:et,self:Jre},toe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),iO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),noe=J({name:"Skeleton",inheritAttrs:!1,props:iO,setup(e){Rb();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",toe,eoe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function pS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function gS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Xm(()=>e.value.clear()),[e,t]}const roe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),So(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),Wo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),ooe=0,aO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),ioe=J({name:"Slider",props:aO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",roe,Ote,e,t),i=D(null),[a,l]=gS(),[s,c]=gS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!pS(ne)&&ne.button!==ooe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:Dn(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),aoe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Lo()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),loe={small:20,medium:18,large:16},lO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),soe=J({name:"Spin",props:lO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",aoe,Ite,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:_i(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return loe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(Jr,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),coe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),sO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),doe=J({name:"Statistic",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",coe,Ate,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),uoe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function foe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function hoe(e){return e.map((t,n)=>foe(t,n))}const cO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),dO="n-steps",voe=J({name:"Steps",props:cO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",uoe,Nte,e,n);return nt(dO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},hoe(Ir(tc(this))))}}),uO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},poe=J({name:"Step",props:uO,setup(e){const t=Le(dO,null);t||Fn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(_o,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Zb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(p2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),goe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),fO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Gl;const moe=J({name:"Switch",props:fO,setup(e){Gl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Gl=CSS.supports("width","max(1px)"):Gl=!1:Gl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",goe,Ute,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Gl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(ba(s)&&ba(c)&&ba(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(_o,null,{default:()=>this.loading?u(Jr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),boe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),So(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),Wo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),hO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),yoe=J({name:"Table",props:hO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",boe,Yte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),xoe=J({name:"Th",render(){return u("th",null,this.$slots)}}),woe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Coe=J({name:"Td",render(){return u("td",null,this.$slots)}}),Soe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),_oe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),z0="n-tabs",M0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},koe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:M0,setup(e){const t=Le(z0,null);return t||Fn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),vO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Da(M0,["displayDirective"])),Ff=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:vO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(z0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(Sl,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Yo,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Roe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),pO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),Poe=J({name:"Tabs",props:pO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",Roe,Qte,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=_i(e,["labelSize","size"]),g=_i(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=ys(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=ys(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=ys(X=>{pe(X.target)},64);nt(z0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),Jf(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Hv(u(Ff,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Hv(x!==0&&!m?yS(C):C))),!r&&o&&p?bS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Ff,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:yS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(NA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?bS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},mS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):mS(f,this.mergedValue,this.renderedNames)))}});function mS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(qf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function bS(e,t){return u(Ff,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function yS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Hv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const $oe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Toe=J({name:"Thing",props:gO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",$oe,tne,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),mO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Ooe=J({name:"Time",props:mO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>m$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Yw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Yw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):yH(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?wa(this.renderedTime):u("time",[this.renderedTime])}}),xS=1.25,zoe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${xS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${xS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),bO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),yO="n-timeline",Moe=J({name:"Timeline",props:bO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",zoe,ine,e,n);return nt(yO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),xO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Ioe=J({name:"TimelineItem",props:xO,setup(e){const t=Le(yO);t||Fn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),Rb();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),mc="n-transfer",wS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(mc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),CS=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(mc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Xo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:nc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Yo,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),SS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(mc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(Eo,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(CS,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(CS,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),_S=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(mc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(Mn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(b2,null)})}))}});function Foe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Doe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),wO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Aoe=J({name:"Transfer",props:wO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Doe,cne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Foe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(mc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:Dn(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(wS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(_S,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(SS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(wS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(_S,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(SS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),I0="n-tree-select",bc="n-tree",Boe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(bc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(_o,null,{default:()=>{if(e.loading)return u(Jr,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(oW,null)})}})))}}}),Eoe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(bc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Xo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Loe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(bc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function kS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Noe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function CO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function ii(e,t){return!!e.rawNode[t]}function SO(e,t,n,r){e==null||e.forEach(o=>{n(o),SO(o[t],t,n,r),r(o)})}function Hoe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return SO(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function joe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const Voe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(bc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>ii(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Rk(e.key):void 0,y=b==="right",C=n?u(Eoe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),kk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Boe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Loe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?kS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?kS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),_O=Voe;function Uoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(I0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(_O,{clsPrefix:e,tmNode:t})))})}}),Koe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[No({duration:"0.2s"})]),F("collapse",[No({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var qoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const fd=30;function kO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const RO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},PO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Noe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),RO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),$O=J({name:"Tree",props:PO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Koe,cT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:joe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>eo(e.showIrrelevantNodes?e.data:h.value.filteredTree,kO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(I0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=CO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Uoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Hoe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return qoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/fd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=jg(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*fd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=jg(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*fd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>w2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||ii(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||ii(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||ii(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const Po=Ur(De.key);if(Po===null){We();return}let Go=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[Po-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Go=!0,cn==="after"&&(Et=j.value[Po+1],Et?cn="before":(Et=De,cn="inside")));const Zo=Et;if(Oe.value=Zo,!Go&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let Qo=Ce-be.clientX,Ei=0;for(;Qo>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ei<1;)Qo-=Vt,Ei+=1,Et=Et.parent;pe.value=Ei}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Zo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||ii(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Rk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(bc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Woe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(_O,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=mi(C||"0");return u(_f,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(Eo,{ref:"virtualListInstRef",items:this.fNodes,itemSize:fd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(_f,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ai,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function RS(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function PS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Yoe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),TO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),RO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Xoe=J({name:"TreeSelect",props:TO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>eo(e.options,kO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?PS(ie,ze.getPath(ae).treeNodePath,Be,Ee):RS(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?PS($e,ze.getPath(se).treeNodePath,Be,Te):RS($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&(Pa(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(I0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}th(o,dt);const ut=CO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Yoe,vne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:Dn(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(e0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u($O,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ai,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Ro,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),Goe=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),na=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Il=e=>J({name:`H${e}`,props:na,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",Goe,Bi,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),Zoe=Il("1"),Qoe=Il("2"),Joe=Il("3"),eie=Il("4"),tie=Il("5"),nie=Il("6"),rie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),OO=Object.assign({},Se.props),oie=J({name:"A",props:OO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",rie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),iie=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),zO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),aie=J({name:"P",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",iie,Bi,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),lie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),MO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),sie=J({name:"Blockquote",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",lie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),cie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),die=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",cie,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),$S=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),TS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],IO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),$S,TS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),$S,TS])]),FO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),uie=J({name:"Ul",props:FO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",IO,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),fie=J({name:"Ol",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",IO,Bi,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),hie=J({name:"Li",render(){return u("li",null,this.$slots)}}),vie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),AO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),pie=J({name:"Text",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",vie,Bi,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:_i(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Fl="n-upload",BO="__UPLOAD_DRAGGER__",EO=J({name:"UploadDragger",[BO]:!0,setup(e,{slots:t}){const n=Le(Fl,null);return n||Fn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var LO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const NO=e=>e.includes("image/"),OS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},zS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,HO=e=>{if(e.type)return NO(e.type);const t=OS(e.name||"");if(zS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=OS(n);return!!(/^data:image\//.test(n)||zS.test(r))};function gie(e){return LO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!NO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const mie=rr&&window.FileReader&&window.File;function bie(e){return e.isDirectory}function yie(e){return e.isFile}function xie(e,t){return LO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&bie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else yie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Ys(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function wie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Cie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},F0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Fl,null);n||Fn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?xie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(EO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(Sl,null)})])}):t)}}}),Sie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Fl).mergedThemeRef}},render(){return u(ko,null,{default:()=>this.show?u(tO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),_ie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),kie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Rie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const hd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},Pie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Fl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Cie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>Rie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):HO(r)?u(st,{clsPrefix:e},{default:()=>_ie}):u(st,{clsPrefix:e},{default:()=>kie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(pT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(QU,null)}));const s=u(Sie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(g2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:hd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(_o,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(eW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(aW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(dW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:hd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(tW,null)})}):null)),!a&&s)}}),jO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Fl,null);n||Fn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(Pie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(hT,Object.assign({},h.value),{default:p}):u(ko,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(F0,null,t))}}}),$ie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[No(),S("progress",[No({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var MS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Tie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Ys(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Ys(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Oie(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Ys(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Ys(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function zie(e,t,n){const r=Tie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function VO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Mie(e,t,n){const r=VO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Iie(e,t,n){const r=VO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Fie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Iie(d,s,n),d.append(t,n.file),zie(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Mie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const UO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>mie?HO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Die=J({name:"Upload",props:UO,setup(e){e.abstract&&e.listType==="image-card"&&Fn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",$ie,xne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Ys));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?wie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>MS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>MS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Oie({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Fie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?gie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Fl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[BO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Qs,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(F0,null,o),this.showFileList&&u(jO,null,o)))}}),Aie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Bie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const WO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),Eie=J({name:"Watermark",props:WO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Aie,Cne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return Jf(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=Bie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else lD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Lie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Nie={message:WT,notification:XT,loadingBar:OT,dialog:A$};function Hie({providersAndProps:e,configProviderProps:t}){let r=I_(()=>u(MP,Wv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,Wv(c),{default:()=>u(Lie,{onSetup:()=>o[l]=Nie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function jie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:UT,props:n});break;case"notification":a.push({type:s,Provider:YT,props:o});break;case"dialog":a.push({type:s,Provider:D$,props:r});break;case"loadingBar":a.push({type:s,Provider:TT,props:i});break}}),Hie({providersAndProps:a,configProviderProps:t})}const KO={value:String,katex:Object,katexOptions:Object},Vie=J({name:"Equation",props:KO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),IS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:h2,affixProps:sh,NAlert:AK,alertProps:B2,NAnchor:KK,anchorProps:L2,NAnchorLink:jK,anchorLinkProps:E2,NAutoComplete:uq,autoCompleteProps:Y2,NAvatar:Ug,avatarProps:Q2,NAvatarGroup:xq,avatarGroupProps:J2,NBackTop:Pq,backTopProps:eP,NBadge:Mq,badgeProps:tP,NBreadcrumb:Eq,breadcrumbProps:rP,NBreadcrumbItem:Hq,breadcrumbItemProps:oP,NButton:Pt,NxButton:Qr,buttonProps:aP,NButtonGroup:n0,buttonGroupProps:cP,NCalendar:nY,calendarProps:dP,NColorPicker:OY,colorPickerProps:fP,NCard:pP,cardProps:vP,NCarousel:JY,carouselProps:bP,NCarouselItem:mP,NCascader:pX,cascaderProps:SP,NCheckbox:Xo,checkboxProps:CP,NCheckboxGroup:wP,checkboxGroupProps:xP,NCode:RP,codeProps:kP,NCollapse:SX,collapseProps:PP,NCollapseItem:kX,collapseItemProps:TP,NCollapseTransition:OX,collapseTransitionProps:OP,NConfigProvider:MP,configProviderProps:zP,NCountdown:zX,countdownProps:IP,NNumberAnimation:FX,numberAnimationProps:FP,NDataTable:aZ,dataTableProps:qP,NDatePicker:hQ,datePickerProps:S$,NDescriptions:xQ,descriptionsProps:k$,NDescriptionsItem:wQ,descriptionsItemProps:R$,NDialog:y0,dialogProps:uc,NDialogProvider:D$,dialogProviderProps:F$,useDialog:A$,useDialogReactiveList:DQ,NDivider:NQ,dividerProps:B$,NDrawer:oJ,drawerProps:E$,NDrawerContent:iJ,drawerContentProps:L$,NDropdown:h0,dropdownProps:s$,NDynamicInput:hJ,dynamicInputProps:N$,NDynamicTags:wJ,dynamicTagsProps:U$,NElement:qC,elementProps:W$,NEl:qC,NEllipsis:d0,ellipsisProps:KP,NEmpty:Ai,emptyProps:k2,NForm:TJ,formProps:Y$,NFormItem:C0,formItemProps:vc,NFormItemGridItem:rS,NFormItemGi:rS,formItemGiProps:Tm,formItemGridItemProps:Tm,NFormItemCol:nT,NFormItemRow:xee,NGlobalStyle:wee,NGradientText:Ree,gradientTextProps:rT,NGrid:$ee,gridProps:iT,NGridItem:$m,gridItemProps:qs,NGi:$m,giProps:qs,NIcon:o$,iconProps:r$,NIconWrapper:Iee,iconWrapperProps:aT,NImage:pT,imageProps:vT,NImageGroup:hT,imageGroupProps:fT,NInput:Mn,inputProps:V2,NInputGroup:W2,inputGroupProps:U2,NInputGroupLabel:iq,inputGroupLabelProps:K2,NInputNumber:One,inputNumberProps:gT,NLayout:Mne,layoutProps:Om,layoutContentProps:Om,NLayoutContent:Ine,NLayoutHeader:Dne,layoutHeaderProps:xT,NLayoutFooter:Bne,layoutFooterProps:wT,NLayoutSider:Hne,layoutSiderProps:CT,NRow:eT,rowProps:mh,NCol:tT,colProps:bh,NLegacyTransfer:Xne,legacyTransferProps:ST,NList:Zne,listProps:_T,NListItem:Qne,NLoadingBarProvider:TT,loadingBarProviderProps:$T,useLoadingBar:OT,NLog:ore,logProps:MT,NMenu:vre,menuProps:ET,NMention:mre,mentionProps:LT,NMessageProvider:UT,messageProviderProps:VT,useMessage:WT,NModal:I$,modalProps:M$,NNotificationProvider:YT,notificationProviderProps:qT,useNotification:XT,NPageHeader:zre,pageHeaderProps:GT,NPagination:VP,paginationProps:jP,NPopconfirm:Fre,popconfirmProps:JT,NPopover:Ua,popoverProps:O2,NPopselect:BP,popselectProps:AP,NProgress:tO,progressProps:eO,NRadio:u0,radioProps:hh,NRadioGroup:ZP,radioGroupProps:GP,NRadioButton:pG,radioButtonProps:vG,NRate:Vre,rateProps:nO,NResult:Gre,resultProps:rO,NScrollbar:Qre,scrollbarProps:oO,NSelect:NP,selectProps:LP,NSkeleton:noe,skeletonProps:iO,NSlider:ioe,sliderProps:aO,NSpace:V$,spaceProps:j$,NSpin:soe,spinProps:lO,NStatistic:doe,statisticProps:sO,NSteps:voe,stepsProps:cO,NStep:poe,stepProps:uO,NSwitch:moe,switchProps:fO,NTable:yoe,tableProps:hO,NTh:xoe,NTr:woe,NTd:Coe,NThead:Soe,NTbody:_oe,NTabs:Poe,tabsProps:pO,NTabPane:koe,tabPaneProps:M0,NTab:Ff,tabProps:vO,NTag:xs,tagProps:I2,NThing:Toe,thingProps:gO,NTime:Ooe,timeProps:mO,NTimePicker:If,timePickerProps:y$,NTimeline:Moe,timelineProps:bO,NTimelineItem:Ioe,timelineItemProps:xO,NTooltip:fh,tooltipProps:WP,NTransfer:Aoe,transferProps:wO,NTree:$O,treeProps:PO,NTreeSelect:Xoe,treeSelectProps:TO,NH1:Zoe,NH2:Qoe,NH3:Joe,NH4:eie,NH5:tie,NH6:nie,h1Props:na,h2Props:na,h3Props:na,h4Props:na,h5Props:na,h6Props:na,NA:oie,aProps:OO,NP:aie,pProps:zO,NBlockquote:sie,blockquoteProps:MO,NHr:die,NUl:uie,ulProps:FO,NOl:fie,olProps:DO,NLi:hie,NText:pie,textProps:AO,NUpload:Die,uploadProps:UO,NUploadDragger:EO,NUploadTrigger:F0,NUploadFileList:jO,NWatermark:Eie,watermarkProps:WO,createDiscreteApi:jie,NEquation:Vie,equationProps:KO},Symbol.toStringTag,{value:"Module"})),Uie="2.34.3";function Wie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Uie,componentPrefix:e,install:o}}const qO=Wie({components:Object.keys(IS).map(e=>IS[e])}),Kie=qO;qO.install;const YO=I_(qF);YO.use(Kie);YO.mount("#app")});export default qie(); diff --git a/docs/assets/index.de220886.css b/docs/assets/index.de220886.css deleted file mode 100644 index 47fa3a2..0000000 --- a/docs/assets/index.de220886.css +++ /dev/null @@ -1 +0,0 @@ -body{padding:24px;max-width:720px;margin:0 auto} diff --git a/docs/assets/index.fc2cf3fa.js b/docs/assets/index.fc2cf3fa.js deleted file mode 100644 index 0578546..0000000 --- a/docs/assets/index.fc2cf3fa.js +++ /dev/null @@ -1,6855 +0,0 @@ -var hz=Object.defineProperty;var vz=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pz=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,n)=>(vz(e,typeof t!="symbol"?t+"":t,n),n);var Zie=pz((br,yr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Im(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Gs(e){if(Rt(e)){const t={};for(let n=0;n{if(n){const r=n.split(mz);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Fm(e){let t="";if(Pn(e))t=e;else if(Rt(e))for(let n=0;n{},Cz=()=>!1,Sz=/^on[^a-z]/,Ef=e=>Sz.test(e),Dm=e=>e.startsWith("onUpdate:"),Ln=Object.assign,Am=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_z=Object.prototype.hasOwnProperty,Ht=(e,t)=>_z.call(e,t),Rt=Array.isArray,as=e=>Lf(e)==="[object Map]",kz=e=>Lf(e)==="[object Set]",Tt=e=>typeof e=="function",Pn=e=>typeof e=="string",Bm=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",BS=e=>vn(e)&&Tt(e.then)&&Tt(e.catch),Rz=Object.prototype.toString,Lf=e=>Rz.call(e),Pz=e=>Lf(e).slice(8,-1),$z=e=>Lf(e)==="[object Object]",Em=e=>Pn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gd=Im(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nf=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tz=/-(\w)/g,yo=Nf(e=>e.replace(Tz,(t,n)=>n?n.toUpperCase():"")),Oz=/\B([A-Z])/g,Rl=Nf(e=>e.replace(Oz,"-$1").toLowerCase()),Hf=Nf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ih=Nf(e=>e?`on${Hf(e)}`:""),Ss=(e,t)=>!Object.is(e,t),Fh=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mz=e=>{const t=Pn(e)?Number(e):NaN;return isNaN(t)?e:t};let B0;const Iz=()=>B0||(B0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Wr;class Fz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Wr,!t&&Wr&&(this.index=(Wr.scopes||(Wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Wr;try{return Wr=this,t()}finally{Wr=n}}}on(){Wr=this}off(){Wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},ES=e=>(e.w&Ci)>0,LS=e=>(e.n&Ci)>0,Bz=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Rt(e)?Em(n)&&l.push(a.get("length")):(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"delete":Rt(e)||(l.push(a.get(fa)),as(e)&&l.push(a.get(Wv)));break;case"set":as(e)&&l.push(a.get(fa));break}if(l.length===1)l[0]&&Kv(l[0]);else{const s=[];for(const c of l)c&&s.push(...c);Kv(Lm(s))}}function Kv(e,t){const n=Rt(e)?e:[...e];for(const r of n)r.computed&&L0(r);for(const r of n)r.computed||L0(r)}function L0(e,t){(e!==Yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Lz(e,t){var n;return(n=gu.get(e))===null||n===void 0?void 0:n.get(t)}const Nz=Im("__proto__,__v_isRef,__isVue"),jS=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bm)),Hz=Hm(),jz=Hm(!1,!0),Vz=Hm(!0),N0=Uz();function Uz(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=zt(this);for(let i=0,a=this.length;i{e[t]=function(...n){Pl();const r=zt(this)[t].apply(this,n);return $l(),r}}),e}function Wz(e){const t=zt(this);return dr(t,"has",e),t.hasOwnProperty(e)}function Hm(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?l5:qS:t?KS:WS).get(r))return r;const a=Rt(r);if(!e){if(a&&Ht(N0,o))return Reflect.get(N0,o,i);if(o==="hasOwnProperty")return Wz}const l=Reflect.get(r,o,i);return(Bm(o)?jS.has(o):Nz(o))||(e||dr(r,"get",o),t)?l:Vn(l)?a&&Em(o)?l:l.value:vn(l)?e?xo(l):Fi(l):l}}const Kz=VS(),qz=VS(!0);function VS(e=!1){return function(n,r,o,i){let a=n[r];if(ml(a)&&Vn(a)&&!Vn(o))return!1;if(!e&&(!mu(o)&&!ml(o)&&(a=zt(a),o=zt(o)),!Rt(n)&&Vn(a)&&!Vn(o)))return a.value=o,!0;const l=Rt(n)&&Em(r)?Number(r)e,jf=e=>Reflect.getPrototypeOf(e);function xc(e,t,n=!1,r=!1){e=e.__v_raw;const o=zt(e),i=zt(t);n||(t!==i&&dr(o,"get",t),dr(o,"get",i));const{has:a}=jf(o),l=r?jm:n?Wm:_s;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function wc(e,t=!1){const n=this.__v_raw,r=zt(n),o=zt(e);return t||(e!==o&&dr(r,"has",e),dr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Cc(e,t=!1){return e=e.__v_raw,!t&&dr(zt(e),"iterate",fa),Reflect.get(e,"size",e)}function H0(e){e=zt(e);const t=zt(this);return jf(t).has.call(t,e)||(t.add(e),Lo(t,"add",e,e)),this}function j0(e,t){t=zt(t);const n=zt(this),{has:r,get:o}=jf(n);let i=r.call(n,e);i||(e=zt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Ss(t,a)&&Lo(n,"set",e,t):Lo(n,"add",e,t),this}function V0(e){const t=zt(this),{has:n,get:r}=jf(t);let o=n.call(t,e);o||(e=zt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&Lo(t,"delete",e,void 0),i}function U0(){const e=zt(this),t=e.size!==0,n=e.clear();return t&&Lo(e,"clear",void 0,void 0),n}function Sc(e,t){return function(r,o){const i=this,a=i.__v_raw,l=zt(a),s=t?jm:e?Wm:_s;return!e&&dr(l,"iterate",fa),a.forEach((c,d)=>r.call(o,s(c),s(d),i))}}function _c(e,t,n){return function(...r){const o=this.__v_raw,i=zt(o),a=as(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),d=n?jm:t?Wm:_s;return!t&&dr(i,"iterate",s?Wv:fa),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function ti(e){return function(...t){return e==="delete"?!1:this}}function Jz(){const e={get(i){return xc(this,i)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!1)},t={get(i){return xc(this,i,!1,!0)},get size(){return Cc(this)},has:wc,add:H0,set:j0,delete:V0,clear:U0,forEach:Sc(!1,!0)},n={get(i){return xc(this,i,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!1)},r={get(i){return xc(this,i,!0,!0)},get size(){return Cc(this,!0)},has(i){return wc.call(this,i,!0)},add:ti("add"),set:ti("set"),delete:ti("delete"),clear:ti("clear"),forEach:Sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=_c(i,!1,!1),n[i]=_c(i,!0,!1),t[i]=_c(i,!1,!0),r[i]=_c(i,!0,!0)}),[e,n,t,r]}const[e5,t5,n5,r5]=Jz();function Vm(e,t){const n=t?e?r5:n5:e?t5:e5;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ht(n,o)&&o in r?n:r,o,i)}const o5={get:Vm(!1,!1)},i5={get:Vm(!1,!0)},a5={get:Vm(!0,!1)},WS=new WeakMap,KS=new WeakMap,qS=new WeakMap,l5=new WeakMap;function s5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c5(e){return e.__v_skip||!Object.isExtensible(e)?0:s5(Pz(e))}function Fi(e){return ml(e)?e:Um(e,!1,US,o5,WS)}function d5(e){return Um(e,!1,Qz,i5,KS)}function xo(e){return Um(e,!0,Zz,a5,qS)}function Um(e,t,n,r,o){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=c5(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function ha(e){return ml(e)?ha(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function mu(e){return!!(e&&e.__v_isShallow)}function va(e){return ha(e)||ml(e)}function zt(e){const t=e&&e.__v_raw;return t?zt(t):e}function bu(e){return pu(e,"__v_skip",!0),e}const _s=e=>vn(e)?Fi(e):e,Wm=e=>vn(e)?xo(e):e;function YS(e){pi&&Yr&&(e=zt(e),HS(e.dep||(e.dep=Lm())))}function XS(e,t){e=zt(e);const n=e.dep;n&&Kv(n)}function Vn(e){return!!(e&&e.__v_isRef===!0)}function D(e){return ZS(e,!1)}function GS(e){return ZS(e,!0)}function ZS(e,t){return Vn(e)?e:new u5(e,t)}class u5{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:zt(t),this._value=n?t:_s(t)}get value(){return YS(this),this._value}set value(t){const n=this.__v_isShallow||mu(t)||ml(t);t=n?t:zt(t),Ss(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_s(t),XS(this))}}function qv(e){return Vn(e)?e.value:e}const f5={get:(e,t,n)=>qv(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Vn(o)&&!Vn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function QS(e){return ha(e)?e:new Proxy(e,f5)}class h5{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lz(zt(this._object),this._key)}}function xe(e,t,n){const r=e[t];return Vn(r)?r:new h5(e,t,n)}var JS;class v5{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[JS]=!1,this._dirty=!0,this.effect=new Nm(t,()=>{this._dirty||(this._dirty=!0,XS(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=zt(this);return YS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}JS="__v_isReadonly";function p5(e,t,n=!1){let r,o;const i=Tt(e);return i?(r=e,o=Zr):(r=e.get,o=e.set),new v5(r,o,i||!o,n)}function gi(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vf(i,t,n)}return o}function Mr(e,t,n,r){if(Tt(e)){const i=gi(e,t,n,r);return i&&BS(i)&&i.catch(a=>{Vf(a,t,n)}),i}const o=[];for(let i=0;i>>1;Rs(Qn[r])fo&&Qn.splice(t,1)}function y5(e){Rt(e)?ul.push(...e):(!Fo||!Fo.includes(e,e.allowRecurse?ia+1:ia))&&ul.push(e),t_()}function W0(e,t=ks?fo+1:0){for(;tRs(n)-Rs(r)),ia=0;iae.id==null?1/0:e.id,x5=(e,t)=>{const n=Rs(e)-Rs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function r_(e){Yv=!1,ks=!0,Qn.sort(x5);const t=Zr;try{for(fo=0;foPn(v)?v.trim():v)),f&&(o=n.map(zz))}let l,s=r[l=Ih(t)]||r[l=Ih(yo(t))];!s&&i&&(s=r[l=Ih(Rl(t))]),s&&Mr(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Mr(c,e,6,o)}}function o_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Tt(e)){const s=c=>{const d=o_(c,t,!0);d&&(l=!0,Ln(a,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(vn(e)&&r.set(e,null),null):(Rt(i)?i.forEach(s=>a[s]=null):Ln(a,i),vn(e)&&r.set(e,a),a)}function Uf(e,t){return!e||!Ef(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ht(e,t[0].toLowerCase()+t.slice(1))||Ht(e,Rl(t))||Ht(e,t))}let Un=null,i_=null;function yu(e){const t=Un;return Un=e,i_=e&&e.type.__scopeId||null,t}function md(e,t=Un,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ny(-1);const i=yu(t);let a;try{a=e(...o)}finally{yu(i),r._d&&ny(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Dh(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:d,renderCache:f,data:h,setupState:v,ctx:p,inheritAttrs:b}=e;let m,g;const y=yu(e);try{if(n.shapeFlag&4){const x=o||r;m=co(d.call(x,x,f,i,v,h,p)),g=s}else{const x=t;m=co(x.length>1?x(i,{attrs:s,slots:l,emit:c}):x(i,null)),g=t.props?s:C5(s)}}catch(x){ds.length=0,Vf(x,e,1),m=zn(xr)}let C=m;if(g&&b!==!1){const x=Object.keys(g),{shapeFlag:w}=C;x.length&&w&7&&(a&&x.some(Dm)&&(g=S5(g,a)),C=nr(C,g))}return n.dirs&&(C=nr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),m=C,yu(y),m}const C5=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ef(n))&&((t||(t={}))[n]=e[n]);return t},S5=(e,t)=>{const n={};for(const r in e)(!Dm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _5(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?K0(r,a,c):!!a;if(s&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function P5(e,t){t&&t.pendingBranch?Rt(e)?t.effects.push(...e):t.effects.push(e):y5(e)}function nt(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}}function Le(e,t,n=!1){const r=wn||Un;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Tt(t)?t.call(r.proxy):t}}function Ft(e,t){return Ym(e,null,t)}const kc={};function rt(e,t,n){return Ym(e,t,n)}function Ym(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=ln){const l=Az()===(wn==null?void 0:wn.scope)?wn:null;let s,c=!1,d=!1;if(Vn(e)?(s=()=>e.value,c=mu(e)):ha(e)?(s=()=>e,r=!0):Rt(e)?(d=!0,c=e.some(C=>ha(C)||mu(C)),s=()=>e.map(C=>{if(Vn(C))return C.value;if(ha(C))return sa(C);if(Tt(C))return gi(C,l,2)})):Tt(e)?t?s=()=>gi(e,l,2):s=()=>{if(!(l&&l.isUnmounted))return f&&f(),Mr(e,l,3,[h])}:s=Zr,t&&r){const C=s;s=()=>sa(C())}let f,h=C=>{f=g.onStop=()=>{gi(C,l,4)}},v;if(zs)if(h=Zr,t?n&&Mr(t,l,3,[s(),d?[]:void 0,h]):s(),o==="sync"){const C=m3();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Zr;let p=d?new Array(e.length).fill(kc):kc;const b=()=>{if(!!g.active)if(t){const C=g.run();(r||c||(d?C.some((x,w)=>Ss(x,p[w])):Ss(C,p)))&&(f&&f(),Mr(t,l,3,[C,p===kc?void 0:d&&p[0]===kc?[]:p,h]),p=C)}else g.run()};b.allowRecurse=!!t;let m;o==="sync"?m=b:o==="post"?m=()=>ar(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),m=()=>qm(b));const g=new Nm(s,m);t?n?b():p=g.run():o==="post"?ar(g.run.bind(g),l&&l.suspense):g.run();const y=()=>{g.stop(),l&&l.scope&&Am(l.scope.effects,g)};return v&&v.push(y),y}function $5(e,t,n){const r=this.proxy,o=Pn(e)?e.includes(".")?a_(r,e):()=>r[e]:e.bind(r,r);let i;Tt(t)?i=t:(i=t.handler,n=t);const a=wn;bl(this);const l=Ym(o,i.bind(r),n);return a?bl(a):pa(),l}function a_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{sa(n,t)});else if($z(e))for(const n in e)sa(e[n],t);return e}function l_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),Dt(()=>{e.isUnmounting=!0}),e}const Rr=[Function,Array],T5={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rr,onEnter:Rr,onAfterEnter:Rr,onEnterCancelled:Rr,onBeforeLeave:Rr,onLeave:Rr,onAfterLeave:Rr,onLeaveCancelled:Rr,onBeforeAppear:Rr,onAppear:Rr,onAfterAppear:Rr,onAppearCancelled:Rr},setup(e,{slots:t}){const n=Ko(),r=l_();let o;return()=>{const i=t.default&&Xm(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const b of i)if(b.type!==xr){a=b;break}}const l=zt(e),{mode:s}=l;if(r.isLeaving)return Ah(a);const c=q0(a);if(!c)return Ah(a);const d=Ps(c,l,r,n);$s(c,d);const f=n.subTree,h=f&&q0(f);let v=!1;const{getTransitionKey:p}=c.type;if(p){const b=p();o===void 0?o=b:b!==o&&(o=b,v=!0)}if(h&&h.type!==xr&&(!aa(c,h)||v)){const b=Ps(h,l,r,n);if($s(h,b),s==="out-in")return r.isLeaving=!0,b.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ah(a);s==="in-out"&&c.type!==xr&&(b.delayLeave=(m,g,y)=>{const C=c_(r,h);C[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}},s_=T5;function c_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ps(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:m,onAfterAppear:g,onAppearCancelled:y}=t,C=String(e.key),x=c_(n,e),w=(T,$)=>{T&&Mr(T,r,9,$)},k=(T,$)=>{const R=$[1];w(T,$),Rt(T)?T.every(I=>I.length<=1)&&R():T.length<=1&&R()},_={mode:i,persisted:a,beforeEnter(T){let $=l;if(!n.isMounted)if(o)$=b||l;else return;T._leaveCb&&T._leaveCb(!0);const R=x[C];R&&aa(e,R)&&R.el._leaveCb&&R.el._leaveCb(),w($,[T])},enter(T){let $=s,R=c,I=d;if(!n.isMounted)if(o)$=m||s,R=g||c,I=y||d;else return;let z=!1;const A=T._enterCb=L=>{z||(z=!0,L?w(I,[T]):w(R,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};$?k($,[T,A]):A()},leave(T,$){const R=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();w(f,[T]);let I=!1;const z=T._leaveCb=A=>{I||(I=!0,$(),A?w(p,[T]):w(v,[T]),T._leaveCb=void 0,x[R]===e&&delete x[R])};x[R]=e,h?k(h,[T,z]):z()},clone(T){return Ps(T,t,n,r)}};return _}function Ah(e){if(Wf(e))return e=nr(e),e.children=null,e}function q0(e){return Wf(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Xm(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Wf=e=>e.type.__isKeepAlive;function Gm(e,t){d_(e,"a",t)}function Zs(e,t){d_(e,"da",t)}function d_(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Kf(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Wf(o.parent.vnode)&&O5(r,t,n,o),o=o.parent}}function O5(e,t,n,r){const o=Kf(t,e,r,!0);Qs(()=>{Am(r[t],o)},n)}function Kf(e,t,n=wn,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Pl(),bl(n);const l=Mr(t,n,e,a);return pa(),$l(),l});return r?o.unshift(i):o.push(i),i}}const Uo=e=>(t,n=wn)=>(!zs||e==="sp")&&Kf(e,(...r)=>t(...r),n),Wo=Uo("bm"),Mt=Uo("m"),Zm=Uo("bu"),Qm=Uo("u"),Dt=Uo("bum"),Qs=Uo("um"),z5=Uo("sp"),M5=Uo("rtg"),I5=Uo("rtc");function F5(e,t=wn){Kf("ec",e,t)}function sn(e,t){const n=Un;if(n===null)return e;const r=Xf(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;lOs(t)?!(t.type===xr||t.type===$t&&!f_(t.children)):!0)?e:null}const Xv=e=>e?__(e)?Xf(e)||e.proxy:Xv(e.parent):null,ss=Ln(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xv(e.parent),$root:e=>Xv(e.root),$emit:e=>e.emit,$options:e=>eb(e),$forceUpdate:e=>e.f||(e.f=()=>qm(e.update)),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>$5.bind(e)}),Bh=(e,t)=>e!==ln&&!e.__isScriptSetup&&Ht(e,t),E5={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Bh(r,t))return a[t]=1,r[t];if(o!==ln&&Ht(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&Ht(c,t))return a[t]=3,i[t];if(n!==ln&&Ht(n,t))return a[t]=4,n[t];Gv&&(a[t]=0)}}const d=ss[t];let f,h;if(d)return t==="$attrs"&&dr(e,"get",t),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ln&&Ht(n,t))return a[t]=4,n[t];if(h=s.config.globalProperties,Ht(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Bh(o,t)?(o[t]=n,!0):r!==ln&&Ht(r,t)?(r[t]=n,!0):Ht(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==ln&&Ht(e,a)||Bh(t,a)||(l=i[0])&&Ht(l,a)||Ht(r,a)||Ht(ss,a)||Ht(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ht(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Gv=!0;function L5(e){const t=eb(e),n=e.proxy,r=e.ctx;Gv=!1,t.beforeCreate&&X0(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:v,updated:p,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:y,destroyed:C,unmounted:x,render:w,renderTracked:k,renderTriggered:_,errorCaptured:T,serverPrefetch:$,expose:R,inheritAttrs:I,components:z,directives:A,filters:L}=t;if(c&&N5(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const K=a[U];Tt(K)&&(r[U]=K.bind(n))}if(o){const U=o.call(n,n);vn(U)&&(e.data=Fi(U))}if(Gv=!0,i)for(const U in i){const K=i[U],Q=Tt(K)?K.bind(n,n):Tt(K.get)?K.get.bind(n,n):Zr,V=!Tt(K)&&Tt(K.set)?K.set.bind(n):Zr,re=P({get:Q,set:V});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>re.value,set:ee=>re.value=ee})}if(l)for(const U in l)h_(l[U],r,n,U);if(s){const U=Tt(s)?s.call(n):s;Reflect.ownKeys(U).forEach(K=>{nt(K,U[K])})}d&&X0(d,e,"c");function E(U,K){Rt(K)?K.forEach(Q=>U(Q.bind(n))):K&&U(K.bind(n))}if(E(Wo,f),E(Mt,h),E(Zm,v),E(Qm,p),E(Gm,b),E(Zs,m),E(F5,T),E(I5,k),E(M5,_),E(Dt,y),E(Qs,x),E(z5,$),Rt(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(U,K,{get:()=>n[K],set:Q=>n[K]=Q})})}else e.exposed||(e.exposed={});w&&e.render===Zr&&(e.render=w),I!=null&&(e.inheritAttrs=I),z&&(e.components=z),A&&(e.directives=A)}function N5(e,t,n=Zr,r=!1){Rt(e)&&(e=Zv(e));for(const o in e){const i=e[o];let a;vn(i)?"default"in i?a=Le(i.from||o,i.default,!0):a=Le(i.from||o):a=Le(i),Vn(a)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:l=>a.value=l}):t[o]=a}}function X0(e,t,n){Mr(Rt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){const o=r.includes(".")?a_(n,r):()=>n[r];if(Pn(e)){const i=t[e];Tt(i)&&rt(o,i)}else if(Tt(e))rt(o,e.bind(n));else if(vn(e))if(Rt(e))e.forEach(i=>h_(i,t,n,r));else{const i=Tt(e.handler)?e.handler.bind(n):t[e.handler];Tt(i)&&rt(o,i,e)}}function eb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>xu(s,c,a,!0)),xu(s,t,a)),vn(t)&&i.set(t,s),s}function xu(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&xu(e,i,n,!0),o&&o.forEach(a=>xu(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=H5[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const H5={data:G0,props:ea,emits:ea,methods:ea,computed:ea,beforeCreate:er,created:er,beforeMount:er,mounted:er,beforeUpdate:er,updated:er,beforeDestroy:er,beforeUnmount:er,destroyed:er,unmounted:er,activated:er,deactivated:er,errorCaptured:er,serverPrefetch:er,components:ea,directives:ea,watch:V5,provide:G0,inject:j5};function G0(e,t){return t?e?function(){return Ln(Tt(e)?e.call(this,this):e,Tt(t)?t.call(this,this):t)}:t:e}function j5(e,t){return ea(Zv(e),Zv(t))}function Zv(e){if(Rt(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[h,v]=p_(f,t,!0);Ln(a,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return vn(e)&&r.set(e,dl),dl;if(Rt(i))for(let d=0;d-1,v[1]=b<0||p-1||Ht(v,"default"))&&l.push(f)}}}const c=[a,l];return vn(e)&&r.set(e,c),c}function Z0(e){return e[0]!=="$"}function Q0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function J0(e,t){return Q0(e)===Q0(t)}function ey(e,t){return Rt(t)?t.findIndex(n=>J0(n,e)):Tt(t)&&J0(t,e)?0:-1}const g_=e=>e[0]==="_"||e==="$stable",tb=e=>Rt(e)?e.map(co):[co(e)],K5=(e,t,n)=>{if(t._n)return t;const r=md((...o)=>tb(t(...o)),n);return r._c=!1,r},m_=(e,t,n)=>{const r=e._ctx;for(const o in e){if(g_(o))continue;const i=e[o];if(Tt(i))t[o]=K5(o,i,r);else if(i!=null){const a=tb(i);t[o]=()=>a}}},b_=(e,t)=>{const n=tb(t);e.slots.default=()=>n},q5=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=zt(t),pu(t,"_",n)):m_(t,e.slots={})}else e.slots={},t&&b_(e,t);pu(e.slots,Yf,1)},Y5=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=ln;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ln(o,t),!n&&l===1&&delete o._):(i=!t.$stable,m_(t,o)),a=t}else t&&(b_(e,t),a={default:1});if(i)for(const l in o)!g_(l)&&!(l in a)&&delete o[l]};function y_(){return{app:null,config:{isNativeTag:Cz,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let X5=0;function G5(e,t){return function(r,o=null){Tt(r)||(r=Object.assign({},r)),o!=null&&!vn(o)&&(o=null);const i=y_(),a=new Set;let l=!1;const s=i.app={_uid:X5++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:R_,get config(){return i.config},set config(c){},use(c,...d){return a.has(c)||(c&&Tt(c.install)?(a.add(c),c.install(s,...d)):Tt(c)&&(a.add(c),c(s,...d))),s},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),s},component(c,d){return d?(i.components[c]=d,s):i.components[c]},directive(c,d){return d?(i.directives[c]=d,s):i.directives[c]},mount(c,d,f){if(!l){const h=zn(r,o);return h.appContext=i,d&&t?t(h,c):e(h,c,f),l=!0,s._container=c,c.__vue_app__=s,Xf(h.component)||h.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide(c,d){return i.provides[c]=d,s}};return s}}function Jv(e,t,n,r,o=!1){if(Rt(e)){e.forEach((h,v)=>Jv(h,t&&(Rt(t)?t[v]:t),n,r,o));return}if(ls(r)&&!o)return;const i=r.shapeFlag&4?Xf(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,d=l.refs===ln?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==s&&(Pn(c)?(d[c]=null,Ht(f,c)&&(f[c]=null)):Vn(c)&&(c.value=null)),Tt(s))gi(s,l,12,[a,d]);else{const h=Pn(s),v=Vn(s);if(h||v){const p=()=>{if(e.f){const b=h?Ht(f,s)?f[s]:d[s]:s.value;o?Rt(b)&&Am(b,i):Rt(b)?b.includes(i)||b.push(i):h?(d[s]=[i],Ht(f,s)&&(f[s]=d[s])):(s.value=[i],e.k&&(d[e.k]=s.value))}else h?(d[s]=a,Ht(f,s)&&(f[s]=a)):v&&(s.value=a,e.k&&(d[e.k]=a))};a?(p.id=-1,ar(p,n)):p()}}}const ar=P5;function Z5(e){return Q5(e)}function Q5(e,t){const n=Iz();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:v=Zr,insertStaticContent:p}=e,b=(H,W,Y,ce=null,X=null,B=null,N=!1,te=null,ve=!!W.dynamicChildren)=>{if(H===W)return;H&&!aa(H,W)&&(ce=me(H),ee(H,X,B,!0),H=null),W.patchFlag===-2&&(ve=!1,W.dynamicChildren=null);const{type:Z,ref:fe,shapeFlag:ne}=W;switch(Z){case qf:m(H,W,Y,ce);break;case xr:g(H,W,Y,ce);break;case Eh:H==null&&y(W,Y,ce,N);break;case $t:z(H,W,Y,ce,X,B,N,te,ve);break;default:ne&1?w(H,W,Y,ce,X,B,N,te,ve):ne&6?A(H,W,Y,ce,X,B,N,te,ve):(ne&64||ne&128)&&Z.process(H,W,Y,ce,X,B,N,te,ve,ke)}fe!=null&&X&&Jv(fe,H&&H.ref,B,W||H,!W)},m=(H,W,Y,ce)=>{if(H==null)r(W.el=l(W.children),Y,ce);else{const X=W.el=H.el;W.children!==H.children&&c(X,W.children)}},g=(H,W,Y,ce)=>{H==null?r(W.el=s(W.children||""),Y,ce):W.el=H.el},y=(H,W,Y,ce)=>{[H.el,H.anchor]=p(H.children,W,Y,ce,H.el,H.anchor)},C=({el:H,anchor:W},Y,ce)=>{let X;for(;H&&H!==W;)X=h(H),r(H,Y,ce),H=X;r(W,Y,ce)},x=({el:H,anchor:W})=>{let Y;for(;H&&H!==W;)Y=h(H),o(H),H=Y;o(W)},w=(H,W,Y,ce,X,B,N,te,ve)=>{N=N||W.type==="svg",H==null?k(W,Y,ce,X,B,N,te,ve):$(H,W,X,B,N,te,ve)},k=(H,W,Y,ce,X,B,N,te)=>{let ve,Z;const{type:fe,props:ne,shapeFlag:ge,transition:Pe,dirs:Ae}=H;if(ve=H.el=a(H.type,B,ne&&ne.is,ne),ge&8?d(ve,H.children):ge&16&&T(H.children,ve,null,ce,X,B&&fe!=="foreignObject",N,te),Ae&&Hi(H,null,ce,"created"),_(ve,H,H.scopeId,N,ce),ne){for(const qe in ne)qe!=="value"&&!gd(qe)&&i(ve,qe,null,ne[qe],B,H.children,ce,X,we);"value"in ne&&i(ve,"value",null,ne.value),(Z=ne.onVnodeBeforeMount)&&ro(Z,ce,H)}Ae&&Hi(H,null,ce,"beforeMount");const Ke=(!X||X&&!X.pendingBranch)&&Pe&&!Pe.persisted;Ke&&Pe.beforeEnter(ve),r(ve,W,Y),((Z=ne&&ne.onVnodeMounted)||Ke||Ae)&&ar(()=>{Z&&ro(Z,ce,H),Ke&&Pe.enter(ve),Ae&&Hi(H,null,ce,"mounted")},X)},_=(H,W,Y,ce,X)=>{if(Y&&v(H,Y),ce)for(let B=0;B{for(let Z=ve;Z{const te=W.el=H.el;let{patchFlag:ve,dynamicChildren:Z,dirs:fe}=W;ve|=H.patchFlag&16;const ne=H.props||ln,ge=W.props||ln;let Pe;Y&&ji(Y,!1),(Pe=ge.onVnodeBeforeUpdate)&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"beforeUpdate"),Y&&ji(Y,!0);const Ae=X&&W.type!=="foreignObject";if(Z?R(H.dynamicChildren,Z,te,Y,ce,Ae,B):N||K(H,W,te,null,Y,ce,Ae,B,!1),ve>0){if(ve&16)I(te,W,ne,ge,Y,ce,X);else if(ve&2&&ne.class!==ge.class&&i(te,"class",null,ge.class,X),ve&4&&i(te,"style",ne.style,ge.style,X),ve&8){const Ke=W.dynamicProps;for(let qe=0;qe{Pe&&ro(Pe,Y,W,H),fe&&Hi(W,H,Y,"updated")},ce)},R=(H,W,Y,ce,X,B,N)=>{for(let te=0;te{if(Y!==ce){if(Y!==ln)for(const te in Y)!gd(te)&&!(te in ce)&&i(H,te,Y[te],null,N,W.children,X,B,we);for(const te in ce){if(gd(te))continue;const ve=ce[te],Z=Y[te];ve!==Z&&te!=="value"&&i(H,te,Z,ve,N,W.children,X,B,we)}"value"in ce&&i(H,"value",Y.value,ce.value)}},z=(H,W,Y,ce,X,B,N,te,ve)=>{const Z=W.el=H?H.el:l(""),fe=W.anchor=H?H.anchor:l("");let{patchFlag:ne,dynamicChildren:ge,slotScopeIds:Pe}=W;Pe&&(te=te?te.concat(Pe):Pe),H==null?(r(Z,Y,ce),r(fe,Y,ce),T(W.children,Y,fe,X,B,N,te,ve)):ne>0&&ne&64&&ge&&H.dynamicChildren?(R(H.dynamicChildren,ge,Y,X,B,N,te),(W.key!=null||X&&W===X.subTree)&&nb(H,W,!0)):K(H,W,Y,fe,X,B,N,te,ve)},A=(H,W,Y,ce,X,B,N,te,ve)=>{W.slotScopeIds=te,H==null?W.shapeFlag&512?X.ctx.activate(W,Y,ce,N,ve):L(W,Y,ce,X,B,N,ve):j(H,W,ve)},L=(H,W,Y,ce,X,B,N)=>{const te=H.component=c3(H,ce,X);if(Wf(H)&&(te.ctx.renderer=ke),d3(te),te.asyncDep){if(X&&X.registerDep(te,E),!H.el){const ve=te.subTree=zn(xr);g(null,ve,W,Y)}return}E(te,H,W,Y,X,B,N)},j=(H,W,Y)=>{const ce=W.component=H.component;if(_5(H,W,Y))if(ce.asyncDep&&!ce.asyncResolved){U(ce,W,Y);return}else ce.next=W,b5(ce.update),ce.update();else W.el=H.el,ce.vnode=W},E=(H,W,Y,ce,X,B,N)=>{const te=()=>{if(H.isMounted){let{next:fe,bu:ne,u:ge,parent:Pe,vnode:Ae}=H,Ke=fe,qe;ji(H,!1),fe?(fe.el=Ae.el,U(H,fe,N)):fe=Ae,ne&&Fh(ne),(qe=fe.props&&fe.props.onVnodeBeforeUpdate)&&ro(qe,Pe,fe,Ae),ji(H,!0);const ct=Dh(H),dt=H.subTree;H.subTree=ct,b(dt,ct,f(dt.el),me(dt),H,X,B),fe.el=ct.el,Ke===null&&k5(H,ct.el),ge&&ar(ge,X),(qe=fe.props&&fe.props.onVnodeUpdated)&&ar(()=>ro(qe,Pe,fe,Ae),X)}else{let fe;const{el:ne,props:ge}=W,{bm:Pe,m:Ae,parent:Ke}=H,qe=ls(W);if(ji(H,!1),Pe&&Fh(Pe),!qe&&(fe=ge&&ge.onVnodeBeforeMount)&&ro(fe,Ke,W),ji(H,!0),ne&&Me){const ct=()=>{H.subTree=Dh(H),Me(ne,H.subTree,H,X,null)};qe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ct()):ct()}else{const ct=H.subTree=Dh(H);b(null,ct,Y,ce,H,X,B),W.el=ct.el}if(Ae&&ar(Ae,X),!qe&&(fe=ge&&ge.onVnodeMounted)){const ct=W;ar(()=>ro(fe,Ke,ct),X)}(W.shapeFlag&256||Ke&&ls(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&H.a&&ar(H.a,X),H.isMounted=!0,W=Y=ce=null}},ve=H.effect=new Nm(te,()=>qm(Z),H.scope),Z=H.update=()=>ve.run();Z.id=H.uid,ji(H,!0),Z()},U=(H,W,Y)=>{W.component=H;const ce=H.vnode.props;H.vnode=W,H.next=null,W5(H,W.props,ce,Y),Y5(H,W.children,Y),Pl(),W0(),$l()},K=(H,W,Y,ce,X,B,N,te,ve=!1)=>{const Z=H&&H.children,fe=H?H.shapeFlag:0,ne=W.children,{patchFlag:ge,shapeFlag:Pe}=W;if(ge>0){if(ge&128){V(Z,ne,Y,ce,X,B,N,te,ve);return}else if(ge&256){Q(Z,ne,Y,ce,X,B,N,te,ve);return}}Pe&8?(fe&16&&we(Z,X,B),ne!==Z&&d(Y,ne)):fe&16?Pe&16?V(Z,ne,Y,ce,X,B,N,te,ve):we(Z,X,B,!0):(fe&8&&d(Y,""),Pe&16&&T(ne,Y,ce,X,B,N,te,ve))},Q=(H,W,Y,ce,X,B,N,te,ve)=>{H=H||dl,W=W||dl;const Z=H.length,fe=W.length,ne=Math.min(Z,fe);let ge;for(ge=0;gefe?we(H,X,B,!0,!1,ne):T(W,Y,ce,X,B,N,te,ve,ne)},V=(H,W,Y,ce,X,B,N,te,ve)=>{let Z=0;const fe=W.length;let ne=H.length-1,ge=fe-1;for(;Z<=ne&&Z<=ge;){const Pe=H[Z],Ae=W[Z]=ve?si(W[Z]):co(W[Z]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;Z++}for(;Z<=ne&&Z<=ge;){const Pe=H[ne],Ae=W[ge]=ve?si(W[ge]):co(W[ge]);if(aa(Pe,Ae))b(Pe,Ae,Y,null,X,B,N,te,ve);else break;ne--,ge--}if(Z>ne){if(Z<=ge){const Pe=ge+1,Ae=Pege)for(;Z<=ne;)ee(H[Z],X,B,!0),Z++;else{const Pe=Z,Ae=Z,Ke=new Map;for(Z=Ae;Z<=ge;Z++){const We=W[Z]=ve?si(W[Z]):co(W[Z]);We.key!=null&&Ke.set(We.key,Z)}let qe,ct=0;const dt=ge-Ae+1;let ut=!1,je=0;const Xe=new Array(dt);for(Z=0;Z=dt){ee(We,X,B,!0);continue}let G;if(We.key!=null)G=Ke.get(We.key);else for(qe=Ae;qe<=ge;qe++)if(Xe[qe-Ae]===0&&aa(We,W[qe])){G=qe;break}G===void 0?ee(We,X,B,!0):(Xe[G-Ae]=Z+1,G>=je?je=G:ut=!0,b(We,W[G],Y,null,X,B,N,te,ve),ct++)}const Ve=ut?J5(Xe):dl;for(qe=Ve.length-1,Z=dt-1;Z>=0;Z--){const We=Ae+Z,G=W[We],q=We+1{const{el:B,type:N,transition:te,children:ve,shapeFlag:Z}=H;if(Z&6){re(H.component.subTree,W,Y,ce);return}if(Z&128){H.suspense.move(W,Y,ce);return}if(Z&64){N.move(H,W,Y,ke);return}if(N===$t){r(B,W,Y);for(let ne=0;nete.enter(B),X);else{const{leave:ne,delayLeave:ge,afterLeave:Pe}=te,Ae=()=>r(B,W,Y),Ke=()=>{ne(B,()=>{Ae(),Pe&&Pe()})};ge?ge(B,Ae,Ke):Ke()}else r(B,W,Y)},ee=(H,W,Y,ce=!1,X=!1)=>{const{type:B,props:N,ref:te,children:ve,dynamicChildren:Z,shapeFlag:fe,patchFlag:ne,dirs:ge}=H;if(te!=null&&Jv(te,null,Y,H,!0),fe&256){W.ctx.deactivate(H);return}const Pe=fe&1&&ge,Ae=!ls(H);let Ke;if(Ae&&(Ke=N&&N.onVnodeBeforeUnmount)&&ro(Ke,W,H),fe&6)Ce(H.component,Y,ce);else{if(fe&128){H.suspense.unmount(Y,ce);return}Pe&&Hi(H,null,W,"beforeUnmount"),fe&64?H.type.remove(H,W,Y,X,ke,ce):Z&&(B!==$t||ne>0&&ne&64)?we(Z,W,Y,!1,!0):(B===$t&&ne&384||!X&&fe&16)&&we(ve,W,Y),ce&&ue(H)}(Ae&&(Ke=N&&N.onVnodeUnmounted)||Pe)&&ar(()=>{Ke&&ro(Ke,W,H),Pe&&Hi(H,null,W,"unmounted")},Y)},ue=H=>{const{type:W,el:Y,anchor:ce,transition:X}=H;if(W===$t){de(Y,ce);return}if(W===Eh){x(H);return}const B=()=>{o(Y),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(H.shapeFlag&1&&X&&!X.persisted){const{leave:N,delayLeave:te}=X,ve=()=>N(Y,B);te?te(H.el,B,ve):ve()}else B()},de=(H,W)=>{let Y;for(;H!==W;)Y=h(H),o(H),H=Y;o(W)},Ce=(H,W,Y)=>{const{bum:ce,scope:X,update:B,subTree:N,um:te}=H;ce&&Fh(ce),X.stop(),B&&(B.active=!1,ee(N,H,W,Y)),te&&ar(te,W),ar(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},we=(H,W,Y,ce=!1,X=!1,B=0)=>{for(let N=B;NH.shapeFlag&6?me(H.component.subTree):H.shapeFlag&128?H.suspense.next():h(H.anchor||H.el),Oe=(H,W,Y)=>{H==null?W._vnode&&ee(W._vnode,null,null,!0):b(W._vnode||null,H,W,null,null,null,Y),W0(),n_(),W._vnode=H},ke={p:b,um:ee,m:re,r:ue,mt:L,mc:T,pc:K,pbc:R,n:me,o:e};let pe,Me;return t&&([pe,Me]=t(ke)),{render:Oe,hydrate:pe,createApp:G5(Oe,pe)}}function ji({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nb(e,t,n=!1){const r=e.children,o=t.children;if(Rt(r)&&Rt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}const e3=e=>e.__isTeleport,cs=e=>e&&(e.disabled||e.disabled===""),ty=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ep=(e,t)=>{const n=e&&e.to;return Pn(n)?t?t(n):null:n},t3={__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:d,pc:f,pbc:h,o:{insert:v,querySelector:p,createText:b,createComment:m}}=c,g=cs(t.props);let{shapeFlag:y,children:C,dynamicChildren:x}=t;if(e==null){const w=t.el=b(""),k=t.anchor=b("");v(w,n,r),v(k,n,r);const _=t.target=ep(t.props,p),T=t.targetAnchor=b("");_&&(v(T,_),a=a||ty(_));const $=(R,I)=>{y&16&&d(C,R,I,o,i,a,l,s)};g?$(n,k):_&&$(_,T)}else{t.el=e.el;const w=t.anchor=e.anchor,k=t.target=e.target,_=t.targetAnchor=e.targetAnchor,T=cs(e.props),$=T?n:k,R=T?w:_;if(a=a||ty(k),x?(h(e.dynamicChildren,x,$,o,i,a,l),nb(e,t,!0)):s||f(e,t,$,R,o,i,a,l,!1),g)T||Pc(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=ep(t.props,p);I&&Pc(t,I,null,c,0)}else T&&Pc(t,k,_,c,1)}x_(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:d,target:f,props:h}=e;if(f&&i(d),(a||!cs(h))&&(i(c),l&16))for(let v=0;v0?Xr||dl:null,r3(),Ts>0&&Xr&&Xr.push(e),e}function C_(e,t,n,r,o){return o3(zn(e,t,n,r,o,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}const Yf="__vInternal",S_=({key:e})=>e!=null?e:null,bd=({ref:e,ref_key:t,ref_for:n})=>e!=null?Pn(e)||Vn(e)||Tt(e)?{i:Un,r:e,k:t,f:!!n}:e:null;function Bo(e,t=null,n=null,r=0,o=null,i=e===$t?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&S_(t),ref:t&&bd(t),scopeId:i_,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Un};return l?(rb(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Pn(n)?8:16),Ts>0&&!a&&Xr&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Xr.push(s),s}const zn=i3;function i3(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===D5)&&(e=xr),Os(e)){const l=nr(e,t,!0);return n&&rb(l,n),Ts>0&&!i&&Xr&&(l.shapeFlag&6?Xr[Xr.indexOf(e)]=l:Xr.push(l)),l.patchFlag|=-2,l}if(p3(e)&&(e=e.__vccOpts),t){t=a3(t);let{class:l,style:s}=t;l&&!Pn(l)&&(t.class=Fm(l)),vn(s)&&(va(s)&&!Rt(s)&&(s=Ln({},s)),t.style=Gs(s))}const a=Pn(e)?1:R5(e)?128:e3(e)?64:vn(e)?4:Tt(e)?2:0;return Bo(e,t,n,r,o,a,i,!0)}function a3(e){return e?va(e)||Yf in e?Ln({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?Wn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&S_(l),ref:t&&t.ref?n&&o?Rt(o)?o.concat(bd(t)):[o,bd(t)]:bd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qr(e=" ",t=0){return zn(qf,null,e,t)}function co(e){return e==null||typeof e=="boolean"?zn(xr):Rt(e)?zn($t,null,e.slice()):typeof e=="object"?si(e):zn(qf,null,String(e))}function si(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function rb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Rt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),rb(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Yf in t)?t._ctx=Un:o===3&&Un&&(Un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),r&64?(n=16,t=[Qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wn(...e){const t={};for(let n=0;nwn||Un,bl=e=>{wn=e,e.scope.on()},pa=()=>{wn&&wn.scope.off(),wn=null};function __(e){return e.vnode.shapeFlag&4}let zs=!1;function d3(e,t=!1){zs=t;const{props:n,children:r}=e.vnode,o=__(e);U5(e,n,o,t),q5(e,r);const i=o?u3(e,t):void 0;return zs=!1,i}function u3(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bu(new Proxy(e.ctx,E5));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?h3(e):null;bl(e),Pl();const i=gi(r,e,0,[e.props,o]);if($l(),pa(),BS(i)){if(i.then(pa,pa),t)return i.then(a=>{ry(e,a,t)}).catch(a=>{Vf(a,e,0)});e.asyncDep=i}else ry(e,i,t)}else k_(e,t)}function ry(e,t,n){Tt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=QS(t)),k_(e,n)}let oy;function k_(e,t,n){const r=e.type;if(!e.render){if(!t&&oy&&!r.render){const o=r.template||eb(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=Ln(Ln({isCustomElement:i,delimiters:l},a),s);r.render=oy(o,c)}}e.render=r.render||Zr}bl(e),Pl(),L5(e),$l(),pa()}function f3(e){return new Proxy(e.attrs,{get(t,n){return dr(e,"get","$attrs"),t[n]}})}function h3(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=f3(e))},slots:e.slots,emit:e.emit,expose:t}}function Xf(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(QS(bu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}}))}function v3(e,t=!0){return Tt(e)?e.displayName||e.name:e.name||t&&e.__name}function p3(e){return Tt(e)&&"__vccOpts"in e}const P=(e,t)=>p5(e,t,zs);function u(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Rt(t)?Os(t)?zn(e,null,[t]):zn(e,t):zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),zn(e,t,n))}const g3=Symbol(""),m3=()=>Le(g3),R_="3.2.47",b3="http://www.w3.org/2000/svg",la=typeof document<"u"?document:null,iy=la&&la.createElement("template"),y3={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?la.createElementNS(b3,e):la.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>la.createTextNode(e),createComment:e=>la.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>la.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{iy.innerHTML=r?`${e}`:e;const l=iy.content;if(r){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function x3(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function w3(e,t,n){const r=e.style,o=Pn(n);if(n&&!o){if(t&&!Pn(t))for(const i in t)n[i]==null&&tp(r,i,"");for(const i in n)tp(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ay=/\s*!important$/;function tp(e,t,n){if(Rt(n))n.forEach(r=>tp(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=C3(e,t);ay.test(n)?e.setProperty(Rl(r),n.replace(ay,""),"important"):e[r]=n}}const ly=["Webkit","Moz","ms"],Lh={};function C3(e,t){const n=Lh[t];if(n)return n;let r=yo(t);if(r!=="filter"&&r in e)return Lh[t]=r;r=Hf(r);for(let o=0;oNh||(T3.then(()=>Nh=0),Nh=Date.now());function z3(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mr(M3(r,n.value),t,5,[r])};return n.value=e,n.attached=O3(),n}function M3(e,t){if(Rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dy=/^on[a-z]/,I3=(e,t,n,r,o=!1,i,a,l,s)=>{t==="class"?x3(e,r,o):t==="style"?w3(e,n,r):Ef(t)?Dm(t)||P3(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F3(e,t,r,o))?_3(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),S3(e,t,r,o))};function F3(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dy.test(t)&&Tt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dy.test(t)&&Pn(n)?!1:t in e}const ni="transition",Al="animation",It=(e,{slots:t})=>u(s_,$_(e),t);It.displayName="Transition";const P_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D3=It.props=Ln({},s_.props,P_),Vi=(e,t=[])=>{Rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},uy=e=>e?Rt(e)?e.some(t=>t.length>1):e.length>1:!1;function $_(e){const t={};for(const z in e)z in P_||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,p=A3(o),b=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:C,onLeave:x,onLeaveCancelled:w,onBeforeAppear:k=g,onAppear:_=y,onAppearCancelled:T=C}=t,$=(z,A,L)=>{ai(z,A?d:l),ai(z,A?c:a),L&&L()},R=(z,A)=>{z._isLeaving=!1,ai(z,f),ai(z,v),ai(z,h),A&&A()},I=z=>(A,L)=>{const j=z?_:y,E=()=>$(A,z,L);Vi(j,[A,E]),fy(()=>{ai(A,z?s:i),zo(A,z?d:l),uy(j)||hy(A,r,b,E)})};return Ln(t,{onBeforeEnter(z){Vi(g,[z]),zo(z,i),zo(z,a)},onBeforeAppear(z){Vi(k,[z]),zo(z,s),zo(z,c)},onEnter:I(!1),onAppear:I(!0),onLeave(z,A){z._isLeaving=!0;const L=()=>R(z,A);zo(z,f),O_(),zo(z,h),fy(()=>{!z._isLeaving||(ai(z,f),zo(z,v),uy(x)||hy(z,r,m,L))}),Vi(x,[z,L])},onEnterCancelled(z){$(z,!1),Vi(C,[z])},onAppearCancelled(z){$(z,!0),Vi(T,[z])},onLeaveCancelled(z){R(z),Vi(w,[z])}})}function A3(e){if(e==null)return null;if(vn(e))return[Hh(e.enter),Hh(e.leave)];{const t=Hh(e);return[t,t]}}function Hh(e){return Mz(e)}function zo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function fy(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B3=0;function hy(e,t,n,r){const o=e._endId=++B3,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=T_(e,t);if(!a)return r();const c=a+"end";let d=0;const f=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=r(`${ni}Delay`),i=r(`${ni}Duration`),a=vy(o,i),l=r(`${Al}Delay`),s=r(`${Al}Duration`),c=vy(l,s);let d=null,f=0,h=0;t===ni?a>0&&(d=ni,f=a,h=i.length):t===Al?c>0&&(d=Al,f=c,h=s.length):(f=Math.max(a,c),d=f>0?a>c?ni:Al:null,h=d?d===ni?i.length:s.length:0);const v=d===ni&&/\b(transform|all)(,|$)/.test(r(`${ni}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:v}}function vy(e,t){for(;e.lengthpy(n)+py(e[r])))}function py(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function O_(){return document.body.offsetHeight}const z_=new WeakMap,M_=new WeakMap,I_={name:"TransitionGroup",props:Ln({},D3,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=l_();let o,i;return Qm(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!j3(o[0].el,n.vnode.el,a))return;o.forEach(L3),o.forEach(N3);const l=o.filter(H3);O_(),l.forEach(s=>{const c=s.el,d=c.style;zo(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=c._moveCb=h=>{h&&h.target!==c||(!h||/transform$/.test(h.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,ai(c,a))};c.addEventListener("transitionend",f)})}),()=>{const a=zt(e),l=$_(a);let s=a.tag||$t;o=i,i=t.default?Xm(t.default()):[];for(let c=0;cdelete e.mode;I_.props;const Gf=I_;function L3(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N3(e){M_.set(e,e.el.getBoundingClientRect())}function H3(e){const t=z_.get(e),n=M_.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function j3(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=T_(r);return o.removeChild(r),i}const wr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Bl(e,!0),r.enter(e)):r.leave(e,()=>{Bl(e,!1)}):Bl(e,t))},beforeUnmount(e,{value:t}){Bl(e,t)}};function Bl(e,t){e.style.display=t?e._vod:"none"}const V3=Ln({patchProp:I3},y3);let gy;function U3(){return gy||(gy=Z5(V3))}const F_=(...e)=>{const t=U3().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=W3(r);if(!o)return;const i=t._component;!Tt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function W3(e){return Pn(e)?document.querySelector(e):e}/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function ec(e){return e+.5|0}const ui=(e,t,n)=>Math.max(Math.min(e,n),t);function Jl(e){return ui(ec(e*2.55),0,255)}function mi(e){return ui(ec(e*255),0,255)}function Do(e){return ui(ec(e/2.55)/100,0,1)}function my(e){return ui(ec(e*100),0,100)}const Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},np=[..."0123456789ABCDEF"],K3=e=>np[e&15],q3=e=>np[(e&240)>>4]+np[e&15],$c=e=>(e&240)>>4===(e&15),Y3=e=>$c(e.r)&&$c(e.g)&&$c(e.b)&&$c(e.a);function X3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Pr[e[1]]*17,g:255&Pr[e[2]]*17,b:255&Pr[e[3]]*17,a:t===5?Pr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Pr[e[1]]<<4|Pr[e[2]],g:Pr[e[3]]<<4|Pr[e[4]],b:Pr[e[5]]<<4|Pr[e[6]],a:t===9?Pr[e[7]]<<4|Pr[e[8]]:255})),n}const G3=(e,t)=>e<255?t(e):"";function Z3(e){var t=Y3(e)?K3:q3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+G3(e.a,t):void 0}const Q3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function D_(e,t,n){const r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function J3(e,t,n){const r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function eM(e,t,n){const r=D_(e,1,.5);let o;for(t+n>1&&(o=1/(t+n),t*=o,n*=o),o=0;o<3;o++)r[o]*=1-t-n,r[o]+=t;return r}function tM(e,t,n,r,o){return e===o?(t-n)/r+(t.5?d/(2-i-a):d/(i+a),s=tM(n,r,o,d,i),s=s*60+.5),[s|0,c||0,l]}function ib(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(mi)}function ab(e,t,n){return ib(D_,e,t,n)}function nM(e,t,n){return ib(eM,e,t,n)}function rM(e,t,n){return ib(J3,e,t,n)}function A_(e){return(e%360+360)%360}function oM(e){const t=Q3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Jl(+t[5]):mi(+t[5]));const o=A_(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=nM(o,i,a):t[1]==="hsv"?r=rM(o,i,a):r=ab(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function iM(e,t){var n=ob(e);n[0]=A_(n[0]+t),n=ab(n),e.r=n[0],e.g=n[1],e.b=n[2]}function aM(e){if(!e)return;const t=ob(e),n=t[0],r=my(t[1]),o=my(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${o}%, ${Do(e.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const by={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lM(){const e={},t=Object.keys(yy),n=Object.keys(by);let r,o,i,a,l;for(r=0;r>16&255,i>>8&255,i&255]}return e}let Tc;function sM(e){Tc||(Tc=lM(),Tc.transparent=[0,0,0,0]);const t=Tc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dM(e){const t=cM.exec(e);let n=255,r,o,i;if(!!t){if(t[7]!==r){const a=+t[7];n=t[8]?Jl(a):ui(a*255,0,255)}return r=+t[1],o=+t[3],i=+t[5],r=255&(t[2]?Jl(r):ui(r,0,255)),o=255&(t[4]?Jl(o):ui(o,0,255)),i=255&(t[6]?Jl(i):ui(i,0,255)),{r,g:o,b:i,a:n}}}function uM(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Do(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,qa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function fM(e,t,n){const r=qa(Do(e.r)),o=qa(Do(e.g)),i=qa(Do(e.b));return{r:mi(jh(r+n*(qa(Do(t.r))-r))),g:mi(jh(o+n*(qa(Do(t.g))-o))),b:mi(jh(i+n*(qa(Do(t.b))-i))),a:e.a+n*(t.a-e.a)}}function Oc(e,t,n){if(e){let r=ob(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=ab(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function B_(e,t){return e&&Object.assign(t||{},e)}function xy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=mi(e[3]))):(t=B_(e,{r:0,g:0,b:0,a:1}),t.a=mi(t.a)),t}function hM(e){return e.charAt(0)==="r"?dM(e):oM(e)}class Ms{constructor(t){if(t instanceof Ms)return t;const n=typeof t;let r;n==="object"?r=xy(t):n==="string"&&(r=X3(t)||sM(t)||hM(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=B_(this._rgb);return t&&(t.a=Do(t.a)),t}set rgb(t){this._rgb=xy(t)}rgbString(){return this._valid?uM(this._rgb):void 0}hexString(){return this._valid?Z3(this._rgb):void 0}hslString(){return this._valid?aM(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,o=t.rgb;let i;const a=n===i?.5:n,l=2*a-1,s=r.a-o.a,c=((l*s===-1?l:(l+s)/(1+l*s))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=fM(this._rgb,t._rgb,n)),this}clone(){return new Ms(this.rgb)}alpha(t){return this._rgb.a=mi(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=ec(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Oc(this._rgb,2,t),this}darken(t){return Oc(this._rgb,2,-t),this}saturate(t){return Oc(this._rgb,1,t),this}desaturate(t){return Oc(this._rgb,1,-t),this}rotate(t){return iM(this._rgb,t),this}}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */function To(){}const vM=(()=>{let e=0;return()=>e++})();function nn(e){return e===null||typeof e>"u"}function un(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function En(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function pr(e,t){return En(e)?e:t}function Xt(e,t){return typeof e>"u"?t:e}const pM=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function on(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function en(e,t,n,r){let o,i,a;if(un(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;oe,x:e=>e.x,y:e=>e.y};function bM(e){const t=e.split("."),n=[];let r="";for(const o of t)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function yM(e){const t=bM(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function yl(e,t){return(wy[t]||(wy[t]=yM(t)))(e)}function lb(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Fr=e=>typeof e<"u",Si=e=>typeof e=="function",Cy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function xM(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Kn=Math.PI,go=2*Kn,Su=Number.POSITIVE_INFINITY,wM=Kn/180,cr=Kn/2,Ui=Kn/4,Sy=Kn*2/3,fi=Math.log10,bi=Math.sign;function yd(e,t,n){return Math.abs(e-t)o-i).pop(),t}function _u(e){return!isNaN(parseFloat(e))&&isFinite(e)}function SM(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function L_(e,t,n){let r,o,i;for(r=0,o=e.length;rs&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function cb(e,t,n){n=n||(a=>e[a]1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const rp=(e,t,n,r)=>cb(e,n,r?o=>{const i=e[o][t];return ie[o][t]cb(e,n,r=>e[r][t]>=n);function TM(e,t,n){let r=0,o=e.length;for(;rr&&e[o-1]>n;)o--;return r>0||o{const r="_onData"+lb(n),o=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),a}})})}function Ry(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(t);o!==-1&&r.splice(o,1),!(r.length>0)&&(N_.forEach(i=>{delete e[i]}),delete e._chartjs)}function H_(e){const t=new Set;let n,r;for(n=0,r=e.length;n"u"?function(e){return e()}:window.requestAnimationFrame}();function V_(e,t){let n=[],r=!1;return function(...o){n=o,r||(r=!0,j_.call(window,()=>{r=!1,e.apply(t,n)}))}}function zM(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const db=e=>e==="start"?"left":e==="end"?"right":"center",Zn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,MM=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,zc=e=>e===0||e===1,Py=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*go/n)),$y=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*go/n)+1,fs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*cr)+1,easeOutSine:e=>Math.sin(e*cr),easeInOutSine:e=>-.5*(Math.cos(Kn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>zc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>zc(e)?e:Py(e,.075,.3),easeOutElastic:e=>zc(e)?e:$y(e,.075,.3),easeInOutElastic(e){return zc(e)?e:e<.5?.5*Py(e*2,.1125,.45):.5+.5*$y(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-fs.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?fs.easeInBounce(e*2)*.5:fs.easeOutBounce(e*2-1)*.5+.5};function U_(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ty(e){return U_(e)?e:new Ms(e)}function Vh(e){return U_(e)?e:new Ms(e).saturate(.5).darken(.1).hexString()}const IM=["x","y","borderWidth","radius","tension"],FM=["color","borderColor","backgroundColor"];function DM(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:FM},numbers:{type:"number",properties:IM}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function AM(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Oy=new Map;function BM(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Oy.get(n);return r||(r=new Intl.NumberFormat(e,t),Oy.set(n,r)),r}function ub(e,t,n){return BM(t,n).format(e)}const W_={values(e){return un(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let o,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=EM(e,n)}const a=fi(Math.abs(i)),l=Math.max(Math.min(-1*Math.floor(a),20),0),s={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(s,this.options.ticks.format),ub(e,r,s)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(fi(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?W_.numeric.call(this,e,t,n):""}};function EM(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Zf={formatters:W_};function LM(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Zf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Sa=Object.create(null),op=Object.create(null);function hs(e,t){if(!t)return e;const n=t.split(".");for(let r=0,o=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>Vh(o.backgroundColor),this.hoverBorderColor=(r,o)=>Vh(o.borderColor),this.hoverColor=(r,o)=>Vh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Uh(this,t,n)}get(t){return hs(this,t)}describe(t,n){return Uh(op,t,n)}override(t,n){return Uh(Sa,t,n)}route(t,n,r,o){const i=hs(this,t),a=hs(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const s=this[l],c=a[o];return Wt(s)?Object.assign({},c,s):Xt(s,c)},set(s){this[l]=s}}})}apply(t){t.forEach(n=>n(this))}}var Cn=new NM({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[DM,AM,LM]);function HM(e){return!e||nn(e.size)||nn(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ku(e,t,n,r,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r}function jM(e,t,n,r){r=r||{};let o=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let a=0;const l=n.length;let s,c,d,f,h;for(s=0;sn.length){for(s=0;s0&&e.stroke()}}function q_(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&i.strokeColor!=="";let s,c;for(e.save(),e.font=o.string,VM(e,i),s=0;s+e||0;function Y_(e,t){const n={},r=Wt(t),o=r?Object.keys(t):t,i=Wt(e)?r?a=>Xt(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of o)n[a]=XM(i(a));return n}function X_(e){return Y_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ga(e){return Y_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Jn(e){const t=X_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Cn.font;let n=Xt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Xt(e.style,t.style);r&&!(""+r).match(qM)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Xt(e.family,t.family),lineHeight:YM(Xt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Xt(e.weight,t.weight),string:""};return o.string=HM(o),o}function Mc(e,t,n,r){let o=!0,i,a,l;for(i=0,a=e.length;in&&l===0?0:l+s;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Fa(e,t){return Object.assign(Object.create(e),t)}function vb(e,t=[""],n=e,r,o=()=>e[0]){Fr(r)||(r=J_("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:o,override:a=>vb([a,...e],t,n,r)};return new Proxy(i,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return Z_(a,l,()=>o4(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Fy(a).includes(l)},ownKeys(a){return Fy(a)},set(a,l,s){const c=a._storage||(a._storage=o());return a[l]=c[l]=s,delete a._keys,!0}})}function xl(e,t,n,r){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:G_(e,r),setContext:i=>xl(e,i,n,r),override:i=>xl(e.override(i),t,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,l){return Z_(i,a,()=>QM(i,a,l))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,l){return e[a]=l,delete i[a],!0}})}function G_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Si(n)?n:()=>n,isIndexable:Si(r)?r:()=>r}}const ZM=(e,t)=>e?e+lb(t):t,pb=(e,t)=>Wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Z_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function QM(e,t,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=e;let l=r[t];return Si(l)&&a.isScriptable(t)&&(l=JM(t,l,e,n)),un(l)&&l.length&&(l=e4(t,l,e,a.isIndexable)),pb(t,l)&&(l=xl(l,o,i&&i[t],a)),l}function JM(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);return l.add(e),t=t(i,a||r),l.delete(e),pb(e,t)&&(t=gb(o._scopes,o,e,t)),t}function e4(e,t,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:l}=n;if(Fr(i.index)&&r(e))t=t[i.index%t.length];else if(Wt(t[0])){const s=t,c=o._scopes.filter(d=>d!==s);t=[];for(const d of s){const f=gb(c,o,e,d);t.push(xl(f,i,a&&a[e],l))}}return t}function Q_(e,t,n){return Si(e)?e(t,n):e}const t4=(e,t)=>e===!0?t:typeof e=="string"?yl(t,e):void 0;function n4(e,t,n,r,o){for(const i of t){const a=t4(n,i);if(a){e.add(a);const l=Q_(a._fallback,n,o);if(Fr(l)&&l!==n&&l!==r)return l}else if(a===!1&&Fr(r)&&n!==r)return null}return!1}function gb(e,t,n,r){const o=t._rootScopes,i=Q_(t._fallback,n,r),a=[...e,...o],l=new Set;l.add(r);let s=Iy(l,a,n,i||n,r);return s===null||Fr(i)&&i!==n&&(s=Iy(l,a,i,s,r),s===null)?!1:vb(Array.from(l),[""],o,i,()=>r4(t,n,r))}function Iy(e,t,n,r,o){for(;n;)n=n4(e,t,n,r,o);return n}function r4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const o=r[t];return un(o)&&Wt(n)?n:o||{}}function o4(e,t,n,r){let o;for(const i of t)if(o=J_(ZM(i,e),n),Fr(o))return pb(e,o)?gb(n,r,e,o):o}function J_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(Fr(r))return r}}function Fy(e){let t=e._keys;return t||(t=e._keys=i4(e._scopes)),t}function i4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))t.add(r);return Array.from(t)}function ek(){return typeof window<"u"&&typeof document<"u"}function mb(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ru(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Qf=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function a4(e,t){return Qf(e).getPropertyValue(t)}const l4=["top","right","bottom","left"];function ma(e,t,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=l4[o];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const s4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function c4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:o,offsetY:i}=r;let a=!1,l,s;if(s4(o,i,e.target))l=o,s=i;else{const c=t.getBoundingClientRect();l=r.clientX-c.left,s=r.clientY-c.top,a=!0}return{x:l,y:s,box:a}}function ta(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,o=Qf(n),i=o.boxSizing==="border-box",a=ma(o,"padding"),l=ma(o,"border","width"),{x:s,y:c,box:d}=c4(e,n),f=a.left+(d&&l.left),h=a.top+(d&&l.top);let{width:v,height:p}=t;return i&&(v-=a.width+l.width,p-=a.height+l.height),{x:Math.round((s-f)/v*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function d4(e,t,n){let r,o;if(t===void 0||n===void 0){const i=mb(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),l=Qf(i),s=ma(l,"border","width"),c=ma(l,"padding");t=a.width-c.width-s.width,n=a.height-c.height-s.height,r=Ru(l.maxWidth,i,"clientWidth"),o=Ru(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||Su,maxHeight:o||Su}}const Ic=e=>Math.round(e*10)/10;function u4(e,t,n,r){const o=Qf(e),i=ma(o,"margin"),a=Ru(o.maxWidth,e,"clientWidth")||Su,l=Ru(o.maxHeight,e,"clientHeight")||Su,s=d4(e,t,n);let{width:c,height:d}=s;if(o.boxSizing==="content-box"){const h=ma(o,"border","width"),v=ma(o,"padding");c-=v.width+h.width,d-=v.height+h.height}return c=Math.max(0,c-i.width),d=Math.max(0,r?c/r:d-i.height),c=Ic(Math.min(c,a,s.maxWidth)),d=Ic(Math.min(d,l,s.maxHeight)),c&&!d&&(d=Ic(c/2)),(t!==void 0||n!==void 0)&&r&&s.height&&d>s.height&&(d=s.height,c=Ic(Math.floor(d*r))),{width:c,height:d}}function Dy(e,t,n){const r=t||1,o=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(e.currentDevicePixelRatio=r,a.height=o,a.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const f4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Ay(e,t){const n=a4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const h4=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},v4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fl(e,t,n){return e?h4(t,n):v4()}function tk(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function nk(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! - * Chart.js v4.2.0 - * https://www.chartjs.org - * (c) 2023 Chart.js Contributors - * Released under the MIT License - */class p4{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=j_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,l=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>r.duration&&(r.duration=s._total),s.tick(t),l=!0):(i[a]=i[i.length-1],i.pop());l&&(o.draw(),this._notify(o,r,t,"progress")),i.length||(r.running=!1,this._notify(o,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Mo=new p4;const By="transparent",g4={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Ty(e||By),o=r.valid&&Ty(t||By);return o&&o.valid?o.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class m4{constructor(t,n,r,o){const i=n[r];o=Mc([t.to,o,i,t.from]);const a=Mc([t.from,i,o]);this._active=!0,this._fn=t.fn||g4[t.type||typeof a],this._easing=fs[t.easing]||fs.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Mc([t.to,n,o,t.from]),this._from=Mc([t.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,l=this._to;let s;if(this._active=i!==l&&(a||n1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(i,l,s)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let o=0;o{const i=t[o];if(!Wt(i))return;const a={};for(const l of n)a[l]=i[l];(un(i.properties)&&i.properties||[o]).forEach(l=>{(l===o||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,o=y4(t,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&b4(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,o=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let s;for(s=a.length-1;s>=0;--s){const c=a[s];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(t,n));continue}const d=n[c];let f=i[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,d,l);continue}else f.cancel();if(!h||!h.duration){t[c]=d;continue}i[c]=f=new m4(h,t,c,d),o.push(f)}return o}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Mo.add(this._chart,r),!0}}function b4(e,t){const n=[],r=Object.keys(t);for(let o=0;o0||!n&&i<0)return o.index}return null}function jy(e,t){const{chart:n,_cachedMeta:r}=e,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:l}=r,s=i.axis,c=a.axis,d=S4(i,a,r),f=t.length;let h;for(let v=0;vn[r].axis===t).shift()}function R4(e,t){return Fa(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function P4(e,t,n){return Fa(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function El(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(!!r){t=t||e._parsed;for(const o of t){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const Kh=e=>e==="reset"||e==="none",Vy=(e,t)=>t?e:Object.assign({},e),$4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ok(n,!0),values:null};class vs{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ny(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&El(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,h,v,p)=>f==="x"?h:f==="r"?p:v,i=n.xAxisID=Xt(r.xAxisID,Wh(t,"x")),a=n.yAxisID=Xt(r.yAxisID,Wh(t,"y")),l=n.rAxisID=Xt(r.rAxisID,Wh(t,"r")),s=n.indexAxis,c=n.iAxisID=o(s,i,a,l),d=n.vAxisID=o(s,a,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ry(this._data,this),t._stacked&&El(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Wt(n))this._data=C4(n);else if(r!==n){if(r){Ry(r,this);const o=this._cachedMeta;El(o),o._parsed=[]}n&&Object.isExtensible(n)&&OM(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Ny(n.vScale,n),n.stack!==r.stack&&(o=!0,El(n),n.stack=r.stack),this._resyncElements(t),(o||i!==n._stacked)&&jy(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,l=i.axis;let s=t===0&&n===o.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,f,h;if(this._parsing===!1)r._parsed=o,r._sorted=!0,h=o;else{un(o[t])?h=this.parseArrayData(r,o,t,n):Wt(o[t])?h=this.parseObjectData(r,o,t,n):h=this.parsePrimitiveData(r,o,t,n);const v=()=>f[l]===null||c&&f[l]b||f=0;--h)if(!p()){this.updateRangeFromParsed(c,t,v,s);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o=0&&tthis.getContext(r,o,n),b=c.resolveNamedOptions(h,v,p,f);return b.$shared&&(b.$shared=s,i[a]=Object.freeze(Vy(b,s))),b}_resolveAnimations(t,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,l=i[a];if(l)return l;let s;if(o.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),h=d.getOptionScopes(this.getDataset(),f);s=d.createResolver(h,this.getContext(t,r,n))}const c=new rk(o,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Kh(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(t,n,r,o){Kh(o)?Object.assign(t,r):this._resolveAnimations(n,o).update(t,r)}updateSharedOptions(t,n,r){t&&!Kh(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,o){t.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(t,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,s,c]of this._syncList)this[l](s,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,t):i{for(c.length+=n,l=c.length-1;l>=a;l--)c[l]=c[l-n]};for(s(i),l=t;lo-i))}return e._cache.$bar}function O4(e){const t=e.iScale,n=T4(t,e.type);let r=t._length,o,i,a,l;const s=()=>{a===32767||a===-32768||(Fr(l)&&(r=Math.min(r,Math.abs(a-l)||r)),l=a)};for(o=0,i=n.length;o0?o[e-1]:null,l=eMath.abs(l)&&(s=l,c=a),t[n.axis]=c,t._custom={barStart:s,barEnd:c,start:o,end:i,min:a,max:l}}function ik(e,t,n,r){return un(e)?I4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Uy(e,t,n,r){const o=e.iScale,i=e.vScale,a=o.getLabels(),l=o===i,s=[];let c,d,f,h;for(c=n,d=n+r;c=n?1:-1)}function D4(e){let t,n,r,o,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.bases.controller.options.grouped),i=r.options.stacked,a=[],l=s=>{const c=s.controller.getParsed(n),d=c&&c[s.vScale.axis];if(nn(d)||isNaN(d))return!0};for(const s of o)if(!(n!==void 0&&l(s))&&((i===!1||a.indexOf(s.stack)===-1||i===void 0&&s.stack===void 0)&&a.push(s.stack),s.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const o=this._getStacks(t,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i{s[a](t[n],o)&&(i.push({element:s,datasetIndex:c,index:d}),l=l||s.inRange(t.x,t.y,o))}),r&&!l?[]:i}var U4={evaluateInteractionItems:tc,modes:{index(e,t,n,r){const o=ta(t,e),i=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a),s=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=l[0].index,f=c.data[d];f&&!f.skip&&s.push({element:f,datasetIndex:c.index,index:d})}),s):[]},dataset(e,t,n,r){const o=ta(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?Yh(e,o,i,r,a):Xh(e,o,i,!1,r,a);if(l.length>0){const s=l[0].datasetIndex,c=e.getDatasetMeta(s).data;l=[];for(let d=0;dn.pos===t)}function Yy(e,t){return e.filter(n=>ak.indexOf(n.pos)===-1&&n.box.axis===t)}function Nl(e,t){return e.sort((n,r)=>{const o=t?r:n,i=t?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function W4(e){const t=[];let n,r,o,i,a,l;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Nl(Ll(t,"left"),!0),o=Nl(Ll(t,"right")),i=Nl(Ll(t,"top"),!0),a=Nl(Ll(t,"bottom")),l=Yy(t,"x"),s=Yy(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(s).concat(a).concat(l),chartArea:Ll(t,"chartArea"),vertical:r.concat(o).concat(s),horizontal:i.concat(a).concat(l)}}function Xy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function lk(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function X4(e,t,n,r){const{pos:o,box:i}=n,a=e.maxPadding;if(!Wt(o)){n.size&&(e[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[o]+=n.size}i.getPadding&&lk(a,i.getPadding());const l=Math.max(0,t.outerWidth-Xy(a,e,"left","right")),s=Math.max(0,t.outerHeight-Xy(a,e,"top","bottom")),c=l!==e.w,d=s!==e.h;return e.w=l,e.h=s,n.horizontal?{same:c,other:d}:{same:d,other:c}}function G4(e){const t=e.maxPadding;function n(r){const o=Math.max(t[r]-e[r],0);return e[r]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Z4(e,t){const n=t.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return r(e?["left","right"]:["top","bottom"])}function es(e,t,n,r){const o=[];let i,a,l,s,c,d;for(i=0,a=e.length,c=0;i{typeof b.beforeLayout=="function"&&b.beforeLayout()});const d=s.reduce((b,m)=>m.box.options&&m.box.options.display===!1?b:b+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/d,hBoxMaxHeight:a/2}),h=Object.assign({},o);lk(h,Jn(r));const v=Object.assign({maxPadding:h,w:i,h:a,x:o.left,y:o.top},o),p=q4(s.concat(c),f);es(l.fullSize,v,f,p),es(s,v,f,p),es(c,v,f,p)&&es(s,v,f,p),G4(v),Gy(l.leftAndTop,v,f,p),v.x+=v.w,v.y+=v.h,Gy(l.rightAndBottom,v,f,p),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},en(l.chartArea,b=>{const m=b.box;Object.assign(m,e.chartArea),m.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class sk{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,o){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(t){return!0}updateConfig(t){}}class Q4 extends sk{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wd="$chartjs",J4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Zy=e=>e===null||e==="";function eI(e,t){const n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[wd]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Zy(o)){const i=Ay(e,"width");i!==void 0&&(e.width=i)}if(Zy(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Ay(e,"height");i!==void 0&&(e.height=i)}return e}const ck=f4?{passive:!0}:!1;function tI(e,t,n){e.addEventListener(t,n,ck)}function nI(e,t,n){e.canvas.removeEventListener(t,n,ck)}function rI(e,t){const n=J4[e.type]||e.type,{x:r,y:o}=ta(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Pu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function oI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.addedNodes,r),a=a&&!Pu(l.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function iI(e,t,n){const r=e.canvas,o=new MutationObserver(i=>{let a=!1;for(const l of i)a=a||Pu(l.removedNodes,r),a=a&&!Pu(l.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Ds=new Map;let Qy=0;function dk(){const e=window.devicePixelRatio;e!==Qy&&(Qy=e,Ds.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aI(e,t){Ds.size||window.addEventListener("resize",dk),Ds.set(e,t)}function lI(e){Ds.delete(e),Ds.size||window.removeEventListener("resize",dk)}function sI(e,t,n){const r=e.canvas,o=r&&mb(r);if(!o)return;const i=V_((l,s)=>{const c=o.clientWidth;n(l,s),c{const s=l[0],c=s.contentRect.width,d=s.contentRect.height;c===0&&d===0||i(c,d)});return a.observe(o),aI(e,i),a}function Gh(e,t,n){n&&n.disconnect(),t==="resize"&&lI(e)}function cI(e,t,n){const r=e.canvas,o=V_(i=>{e.ctx!==null&&n(rI(i,e))},e);return tI(r,t,o),o}class dI extends sk{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(eI(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[wd])return!1;const r=n[wd].initial;["height","width"].forEach(i=>{const a=r[i];nn(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[wd],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const o=t.$proxies||(t.$proxies={}),a={attach:oI,detach:iI,resize:sI}[n]||cI;o[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),o=r[n];if(!o)return;({attach:Gh,detach:Gh,resize:Gh}[n]||nI)(t,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,o){return u4(t,n,r,o)}isAttached(t){const n=mb(t);return!!(n&&n.isConnected)}}function uI(e){return!ek()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Q4:dI}class _i{constructor(){Nt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return _u(this.x)&&_u(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const o={};return t.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}}Nt(_i,"defaults",{}),Nt(_i,"defaultRoutes");function fI(e,t){const n=e.options.ticks,r=hI(e),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?pI(t):[],a=i.length,l=i[0],s=i[a-1],c=[];if(a>o)return gI(t,c,i,a/o),c;const d=vI(i,t,o);if(a>0){let f,h;const v=a>1?Math.round((s-l)/(a-1)):null;for(Dc(t,c,d,nn(v)?0:l-v,l),f=0,h=a-1;fo)return s}return Math.max(o,1)}function pI(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Jy=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function ex(e,t){const n=[],r=e.length/t,o=e.length;let i=0;for(;ia+l)))return s}function xI(e,t){en(e,n=>{const r=n.gc,o=r.length/2;let i;if(o>t){for(i=0;ir?r:n,r=o&&n>r?n:r,{min:pr(n,pr(r,n)),max:pr(r,pr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){on(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=GM(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=l=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const d=this._getLabelSizes(),f=d.widest.width,h=d.highest.height,v=Gr(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:v/(r-1),f+6>l&&(l=v/(r-(t.offset?.5:1)),s=this.maxHeight-Hl(t.grid)-n.padding-tx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=sb(Math.min(Math.asin(Gr((d.highest.height+6)/l,-1,1)),Math.asin(Gr(s/c,-1,1))-Math.asin(Gr(h/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){on(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){on(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const s=tx(o,n.options.font);if(l?(t.width=this.maxWidth,t.height=Hl(i)+s):(t.height=this.maxHeight,t.width=Hl(i)+s),r.display&&this.ticks.length){const{first:c,last:d,widest:f,highest:h}=this._getLabelSizes(),v=r.padding*2,p=hi(this.labelRotation),b=Math.cos(p),m=Math.sin(p);if(l){const g=r.mirror?0:m*f.width+b*h.height;t.height=Math.min(this.maxHeight,t.height+g+v)}else{const g=r.mirror?0:b*f.width+m*h.height;t.width=Math.min(this.maxWidth,t.width+g+v)}this._calculatePadding(c,d,m,b)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,o){const{ticks:{align:i,padding:a},position:l}=this.options,s=this.labelRotation!==0,c=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,v=0;s?c?(h=o*t.width,v=r*n.height):(h=r*t.height,v=o*n.width):i==="start"?v=n.width:i==="end"?h=t.width:i!=="inner"&&(h=t.width/2,v=n.width/2),this.paddingLeft=Math.max((h-d+a)*this.width/(this.width-d),0),this.paddingRight=Math.max((v-f+a)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){on(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:i[_]||0,height:a[_]||0});return{first:k(0),last:k(n-1),widest:k(x),highest:k(w),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return PM(this._alignToPixels?Wi(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&tl*o?l/r:s/o:s*o0}_computeGridLineItems(t){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:l}=o,s=i.offset,c=this.isHorizontal(),f=this.ticks.length+(s?1:0),h=Hl(i),v=[],p=l.setContext(this.getContext()),b=p.display?p.width:0,m=b/2,g=function(E){return Wi(r,E,b)};let y,C,x,w,k,_,T,$,R,I,z,A;if(a==="top")y=g(this.bottom),_=this.bottom-h,$=y-m,I=g(t.top)+m,A=t.bottom;else if(a==="bottom")y=g(this.top),I=t.top,A=g(t.bottom)-m,_=y+m,$=this.top+h;else if(a==="left")y=g(this.right),k=this.right-h,T=y-m,R=g(t.left)+m,z=t.right;else if(a==="right")y=g(this.left),R=t.left,z=g(t.right)-m,k=y+m,T=this.left+h;else if(n==="x"){if(a==="center")y=g((t.top+t.bottom)/2+.5);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}I=t.top,A=t.bottom,_=y+m,$=_+h}else if(n==="y"){if(a==="center")y=g((t.left+t.right)/2);else if(Wt(a)){const E=Object.keys(a)[0],U=a[E];y=g(this.chart.scales[E].getPixelForValue(U))}k=y-m,T=k-h,R=t.left,z=t.right}const L=Xt(o.ticks.maxTicksLimit,f),j=Math.max(1,Math.ceil(f/L));for(C=0;Ci.value===t);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const l=(s,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(s.x,s.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i{const r=n.split("."),o=r.pop(),i=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),s=a.join(".");Cn.route(i,o,s,l)})}function PI(e){return"id"in e&&"defaults"in e}class $I{constructor(){this.controllers=new Ac(vs,"datasets",!0),this.elements=new Ac(_i,"elements"),this.plugins=new Ac(Object,"plugins"),this.scales=new Ac(Da,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(t,i,o):en(o,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const o=lb(t);on(r["before"+o],[],r),n[t](r),on(r["after"+o],[],r)}_getRegistryForType(t){for(let n=0;ni.filter(l=>!a.some(s=>l.plugin.id===s.plugin.id));this._notify(o(n,r),t,"stop"),this._notify(o(r,n),t,"start")}}function OI(e){const t={},n=[],r=Object.keys(lo.plugins.items);for(let i=0;i1&&$u(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function BI(e,t){const n=Sa[e.type]||{scales:{}},r=t.scales||{},o=ip(e.type,t),i=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!Wt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const s=$u(a,l),c=DI(s,o),d=n.scales||{};i[a]=us(Object.create(null),[{axis:s},l,d[s],d[c]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,s=a.indexAxis||ip(l,t),d=(Sa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const h=FI(f,s),v=a[h+"AxisID"]||h;i[v]=i[v]||Object.create(null),us(i[v],[{axis:h},r[v],d[f]])})}),Object.keys(i).forEach(a=>{const l=i[a];us(l,[Cn.scales[l.type],Cn.scale])}),i}function uk(e){const t=e.options||(e.options={});t.plugins=Xt(t.plugins,{}),t.scales=BI(e,t)}function fk(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EI(e){return e=e||{},e.data=fk(e.data),uk(e),e}const nx=new Map,hk=new Set;function Bc(e,t){let n=nx.get(e);return n||(n=t(),nx.set(e,n),hk.add(n)),n}const jl=(e,t,n)=>{const r=yl(t,n);r!==void 0&&e.add(r)};class LI{constructor(t){this._config=EI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),uk(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let o=r.get(t);return(!o||n)&&(o=new Map,r.set(t,o)),o}getOptionScopes(t,n,r){const{options:o,type:i}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const s=new Set;n.forEach(d=>{t&&(s.add(t),d.forEach(f=>jl(s,t,f))),d.forEach(f=>jl(s,o,f)),d.forEach(f=>jl(s,Sa[i]||{},f)),d.forEach(f=>jl(s,Cn,f)),d.forEach(f=>jl(s,op,f))});const c=Array.from(s);return c.length===0&&c.push(Object.create(null)),hk.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Sa[n]||{},Cn.datasets[n]||{},{type:n},Cn,op]}resolveNamedOptions(t,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:l}=rx(this._resolverCache,t,o);let s=a;if(HI(a,n)){i.$shared=!1,r=Si(r)?r():r;const c=this.createResolver(t,r,l);s=xl(a,r,c)}for(const c of n)i[c]=s[c];return i}createResolver(t,n,r=[""],o){const{resolver:i}=rx(this._resolverCache,t,r);return Wt(n)?xl(i,n,void 0,o):i}}function rx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const o=n.join();let i=r.get(o);return i||(i={resolver:vb(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(o,i)),i}const NI=e=>Wt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Si(e[n]),!1);function HI(e,t){const{isScriptable:n,isIndexable:r}=G_(e);for(const o of t){const i=n(o),a=r(o),l=(a||i)&&e[o];if(i&&(Si(l)||NI(l))||a&&un(l))return!0}return!1}var jI="4.2.0";const VI=["top","bottom","left","right","chartArea"];function ox(e,t){return e==="top"||e==="bottom"||VI.indexOf(e)===-1&&t==="x"}function ix(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),on(n&&n.onComplete,[e],t)}function UI(e){const t=e.chart,n=t.options.animation;on(n&&n.onProgress,[e],t)}function vk(e){return ek()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cd={},lx=e=>{const t=vk(e);return Object.values(Cd).filter(n=>n.canvas===t).pop()};function WI(e,t,n){const r=Object.keys(e);for(const o of r){const i=+o;if(i>=t){const a=e[o];delete e[o],(n>0||i>t)&&(e[i+n]=a)}}}function KI(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function qI(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class uo{static register(...t){lo.add(...t),sx()}static unregister(...t){lo.remove(...t),sx()}constructor(t,n){const r=this.config=new LI(n),o=vk(t),i=lx(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||uI(o)),this.platform.updateConfig(r);const l=this.platform.acquireContext(o,a.aspectRatio),s=l&&l.canvas,c=s&&s.height,d=s&&s.width;if(this.id=vM(),this.ctx=l,this.canvas=s,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new TI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zM(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Cd[this.id]=this,!l||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Mo.listen(this,"complete",ax),Mo.listen(this,"progress",UI),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return nn(t)?n&&i?i:o?r/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return lo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Dy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return zy(this.canvas,this.ctx),this}stop(){return Mo.stop(this),this}resize(t,n){Mo.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Dy(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),on(r.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};en(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,o=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const l=n[a],s=$u(a,l),c=s==="r",d=s==="x";return{options:l,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),en(i,a=>{const l=a.options,s=l.id,c=$u(s,l),d=Xt(l.type,a.dtype);(l.position===void 0||ox(l.position,c)!==ox(a.dposition))&&(l.position=a.dposition),o[s]=!0;let f=null;if(s in r&&r[s].type===d)f=r[s];else{const h=lo.getScale(d);f=new h({id:s,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),en(o,(a,l)=>{a||delete r[l]}),en(r,a=>{Or.configure(this,a,a.options),Or.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((o,i)=>o.index-i.index),r>n){for(let o=n;on.length&&delete this._stacks,t.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ix("z","_idx"));const{_active:l,_lastEvent:s}=this;s?this._eventHandler(s,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){en(this.scales,t=>{Or.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!Cy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;WI(t,o,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(a=>a[0]===i).map((a,l)=>l+","+a.splice(1).join(","))),o=r(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Or.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],en(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,o=!r.disabled,i=qI(t)||this.chartArea,a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(o&&fb(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),o&&hb(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return q_(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,o){const i=U4.modes[n];return typeof i=="function"?i(this,t,r,o):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Fa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,o);Fr(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?o:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Mo.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,i,a),t[i]=a},o=(i,a,l)=>{i.offsetX=a,i.offsetY=l,this._eventHandler(i)};en(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(s,c)=>{n.addEventListener(this,s,c),t[s]=c},o=(s,c)=>{t[s]&&(n.removeEventListener(this,s,c),delete t[s])},i=(s,c)=>{this.canvas&&this.resize(s,c)};let a;const l=()=>{o("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){en(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},en(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const o=r?"set":"remove";let i,a,l,s;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),l=0,s=t.length;l{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[a],index:a}});!wu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const o=this.options.hover,i=(s,c)=>s.filter(d=>!c.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),a=i(n,t),l=r?t:i(t,n);a.length&&this.updateHoverStyle(a,o.mode,!1),l.length&&o.mode&&this.updateHoverStyle(l,o.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},o=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:o=[],options:i}=this,a=n,l=this._getActiveElements(t,o,r,a),s=xM(t),c=KI(t,this._lastEvent,r,s);r&&(this._lastEvent=null,on(i.onHover,[t,l,this],this),s&&on(i.onClick,[t,l,this],this));const d=!wu(l,o);return(d||n)&&(this._active=l,this._updateHoverStyles(l,o,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,o){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,o)}}Nt(uo,"defaults",Cn),Nt(uo,"instances",Cd),Nt(uo,"overrides",Sa),Nt(uo,"registry",lo),Nt(uo,"version",jI),Nt(uo,"getChart",lx);function sx(){return en(uo.instances,e=>e._plugins.invalidate())}function pk(e,t){const{x:n,y:r,base:o,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let l,s,c,d,f;return e.horizontal?(f=a/2,l=Math.min(n,o),s=Math.max(n,o),c=r-f,d=r+f):(f=i/2,l=n-f,s=n+f,c=Math.min(r,o),d=Math.max(r,o)),{left:l,top:c,right:s,bottom:d}}function vi(e,t,n,r){return e?0:Gr(t,n,r)}function YI(e,t,n){const r=e.options.borderWidth,o=e.borderSkipped,i=X_(r);return{t:vi(o.top,i.top,0,n),r:vi(o.right,i.right,0,t),b:vi(o.bottom,i.bottom,0,n),l:vi(o.left,i.left,0,t)}}function XI(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),o=e.options.borderRadius,i=ga(o),a=Math.min(t,n),l=e.borderSkipped,s=r||Wt(o);return{topLeft:vi(!s||l.top||l.left,i.topLeft,0,a),topRight:vi(!s||l.top||l.right,i.topRight,0,a),bottomLeft:vi(!s||l.bottom||l.left,i.bottomLeft,0,a),bottomRight:vi(!s||l.bottom||l.right,i.bottomRight,0,a)}}function GI(e){const t=pk(e),n=t.right-t.left,r=t.bottom-t.top,o=YI(e,n/2,r/2),i=XI(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Zh(e,t,n,r){const o=t===null,i=n===null,l=e&&!(o&&i)&&pk(e,r);return l&&(o||sl(t,l.left,l.right))&&(i||sl(n,l.top,l.bottom))}function ZI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function QI(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qh(e,t,n={}){const r=e.x!==n.x?-t:0,o=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-o;return{x:e.x+r,y:e.y+o,w:e.w+i,h:e.h+a,radius:e.radius}}class Sd extends _i{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=GI(this),l=ZI(a.radius)?Fs:QI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),l(t,Qh(a,n,i)),t.clip(),l(t,Qh(i,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Qh(i,n)),t.fillStyle=o,t.fill(),t.restore()}inRange(t,n,r){return Zh(this,t,n,r)}inXRange(t,n){return Zh(this,t,null,n)}inYRange(t,n){return Zh(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Nt(Sd,"id","bar"),Nt(Sd,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Nt(Sd,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},JI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class dx extends _i{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=on(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,o)=>t.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,o=Mn(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:s}=cx(r,i);let c,d;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(a,i,l,s)+10):(d=this.maxHeight,c=this._fitCols(a,o,l,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],d=o+l;let f=t;i.textAlign="left",i.textBaseline="middle";let h=-1,v=-d;return this.legendItems.forEach((p,b)=>{const m=r+n/2+i.measureText(p.text).width;(b===0||c[c.length-1]+m+2*l>a)&&(f+=d,c[c.length-(b>0?0:1)]=0,v+=d,h++),s[b]={left:0,top:v,row:h,width:m,height:o},c[c.length-1]+=m+l}),f}_fitCols(t,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:l}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],d=a-t;let f=l,h=0,v=0,p=0,b=0;return this.legendItems.forEach((m,g)=>{const{itemWidth:y,itemHeight:C}=eF(r,n,i,m,o);g>0&&v+C+2*l>d&&(f+=h+l,c.push({width:h,height:v}),p+=h+l,b++,h=v=0),s[g]={left:p,top:v,col:b,width:y,height:C},h=Math.max(h,y),v+=C+l}),f+=h,c.push({width:h,height:v}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=fl(i,this.left,this.width);if(this.isHorizontal()){let l=0,s=Zn(r,this.left+o,this.right-this.lineWidths[l]);for(const c of n)l!==c.row&&(l=c.row,s=Zn(r,this.left+o,this.right-this.lineWidths[l])),c.top+=this.top+t+o,c.left=a.leftForLtr(a.x(s),c.width),s+=c.width+o}else{let l=0,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height);for(const c of n)c.col!==l&&(l=c.col,s=Zn(r,this.top+t+o,this.bottom-this.columnSizes[l].height)),c.top=s,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),s+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fb(t,this),this._draw(),hb(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=t,l=Cn.color,s=fl(t.rtl,this.left,this.width),c=Mn(a.font),{padding:d}=a,f=c.size,h=f/2;let v;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:b,itemHeight:m}=cx(a,f),g=function(k,_,T){if(isNaN(p)||p<=0||isNaN(b)||b<0)return;o.save();const $=Xt(T.lineWidth,1);if(o.fillStyle=Xt(T.fillStyle,l),o.lineCap=Xt(T.lineCap,"butt"),o.lineDashOffset=Xt(T.lineDashOffset,0),o.lineJoin=Xt(T.lineJoin,"miter"),o.lineWidth=$,o.strokeStyle=Xt(T.strokeStyle,l),o.setLineDash(Xt(T.lineDash,[])),a.usePointStyle){const R={radius:b*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},I=s.xPlus(k,p/2),z=_+h;K_(o,R,I,z,a.pointStyleWidth&&p)}else{const R=_+Math.max((f-b)/2,0),I=s.leftForLtr(k,p),z=ga(T.borderRadius);o.beginPath(),Object.values(z).some(A=>A!==0)?Fs(o,{x:I,y:R,w:p,h:b,radius:z}):o.rect(I,R,p,b),o.fill(),$!==0&&o.stroke()}o.restore()},y=function(k,_,T){_a(o,T.text,k,_+m/2,c,{strikethrough:T.hidden,textAlign:s.textAlign(T.textAlign)})},C=this.isHorizontal(),x=this._computeTitleHeight();C?v={x:Zn(i,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:v={x:this.left+d,y:Zn(i,this.top+x+d,this.bottom-n[0].height),line:0},tk(this.ctx,t.textDirection);const w=m+d;this.legendItems.forEach((k,_)=>{o.strokeStyle=k.fontColor,o.fillStyle=k.fontColor;const T=o.measureText(k.text).width,$=s.textAlign(k.textAlign||(k.textAlign=a.textAlign)),R=p+h+T;let I=v.x,z=v.y;s.setWidth(this.width),C?_>0&&I+R+d>this.right&&(z=v.y+=w,v.line++,I=v.x=Zn(i,this.left+d,this.right-r[v.line])):_>0&&z+w>this.bottom&&(I=v.x=I+n[v.line].width+d,v.line++,z=v.y=Zn(i,this.top+x+d,this.bottom-n[v.line].height));const A=s.x(I);if(g(A,z,k),I=MM($,I+p+h,C?I+R:this.right,t.rtl),y(s.x(I),z,k),C)v.x+=R+d;else if(typeof k.text!="string"){const L=c.lineHeight;v.y+=gk(k,L)}else v.y+=w}),nk(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),o=Jn(n.padding);if(!n.display)return;const i=fl(t.rtl,this.left,this.width),a=this.ctx,l=n.position,s=r.size/2,c=o.top+s;let d,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,f=Zn(t.align,f,this.right-h);else{const p=this.columnSizes.reduce((b,m)=>Math.max(b,m.height),0);d=c+Zn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const v=Zn(l,f,f+h);a.textAlign=i.textAlign(db(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,_a(a,n.text,v,d,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Jn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,o,i;if(sl(t,this.left,this.right)&&sl(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;ri.length>a.length?i:a)),t+n.size/2+r.measureText(o).width}function nF(e,t,n){let r=e;return typeof t.text!="string"&&(r=gk(t,n)),r}function gk(e,t){const n=e.text?e.text.length+.5:0;return t*n}function rF(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var oF={id:"legend",_element:dx,start(e,t,n){const r=e.legend=new dx({ctx:e.ctx,options:n,chart:e});Or.configure(e,r,n),Or.addBox(e,r)},stop(e){Or.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Or.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),t.hidden=!0):(o.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(s=>{const c=s.controller.getStyle(n?0:void 0),d=Jn(c.borderWidth);return{text:t[s.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!s.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:s.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class mk extends _i{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const o=un(r.text)?r.text.length:1;this._padding=Jn(r.padding);const i=o*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:o,right:i,options:a}=this,l=a.align;let s=0,c,d,f;return this.isHorizontal()?(d=Zn(l,r,i),f=n+t,c=i-r):(a.position==="left"?(d=r+t,f=Zn(l,o,n),s=Kn*-.5):(d=i-t,f=Zn(l,n,o),s=Kn*.5),c=o-n),{titleX:d,titleY:f,maxWidth:c,rotation:s}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:s,rotation:c}=this._drawArgs(i);_a(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:c,textAlign:db(n.align),textBaseline:"middle",translation:[a,l]})}}function iF(e,t){const n=new mk({ctx:e.ctx,options:t,chart:e});Or.configure(e,n,t),Or.addBox(e,n),e.titleBlock=n}var aF={id:"title",_element:mk,start(e,t,n){iF(e,n)},stop(e){const t=e.titleBlock;Or.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Or.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ts={average(e){if(!e.length)return!1;let t,n,r=0,o=0,i=0;for(t=0,n=e.length;t-1?e.split(` -`):e}function lF(e,t){const{element:n,datasetIndex:r,index:o}=t,i=e.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[r].data[o],formattedValue:l,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function ux(e,t){const n=e.chart.ctx,{body:r,footer:o,title:i}=e,{boxWidth:a,boxHeight:l}=t,s=Mn(t.bodyFont),c=Mn(t.titleFont),d=Mn(t.footerFont),f=i.length,h=o.length,v=r.length,p=Jn(t.padding);let b=p.height,m=0,g=r.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(b+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){const x=t.displayColors?Math.max(l,s.lineHeight):s.lineHeight;b+=v*x+(g-v)*s.lineHeight+(g-1)*t.bodySpacing}h&&(b+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const C=function(x){m=Math.max(m,n.measureText(x).width+y)};return n.save(),n.font=c.string,en(e.title,C),n.font=s.string,en(e.beforeBody.concat(e.afterBody),C),y=t.displayColors?a+2+t.boxPadding:0,en(r,x=>{en(x.before,C),en(x.lines,C),en(x.after,C)}),y=0,n.font=d.string,en(e.footer,C),n.restore(),m+=p.width,{width:m,height:b}}function sF(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function cF(e,t,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&o+i+a>t.width||e==="right"&&o-i-a<0)return!0}function dF(e,t,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:l,right:s}}=e;let c="center";return r==="center"?c=o<=(l+s)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),cF(c,e,t,n)&&(c="center"),c}function fx(e,t,n){const r=n.yAlign||t.yAlign||sF(e,n);return{xAlign:n.xAlign||t.xAlign||dF(e,t,n,r),yAlign:r}}function uF(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fF(e,t,n){let{y:r,height:o}=e;return t==="top"?r+=n:t==="bottom"?r-=o+n:r-=o/2,r}function hx(e,t,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:l,yAlign:s}=n,c=o+i,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:v}=ga(a);let p=uF(t,l);const b=fF(t,s,c);return s==="center"?l==="left"?p+=c:l==="right"&&(p-=c):l==="left"?p-=Math.max(d,h)+o:l==="right"&&(p+=Math.max(f,v)+o),{x:Gr(p,0,r.width-t.width),y:Gr(b,0,r.height-t.height)}}function Ec(e,t,n){const r=Jn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return ao([],Io(e))}function hF(e,t,n){return Fa(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function px(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bk={beforeTitle:To,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?bk[t].call(n,r):o}class ap extends _i{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new rk(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=hF(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,o=or(r,"beforeTitle",this,t),i=or(r,"title",this,t),a=or(r,"afterTitle",this,t);let l=[];return l=ao(l,Io(o)),l=ao(l,Io(i)),l=ao(l,Io(a)),l}getBeforeBody(t,n){return vx(or(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,o=[];return en(t,i=>{const a={before:[],lines:[],after:[]},l=px(r,i);ao(a.before,Io(or(l,"beforeLabel",this,i))),ao(a.lines,or(l,"label",this,i)),ao(a.after,Io(or(l,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(t,n){return vx(or(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,o=or(r,"beforeFooter",this,t),i=or(r,"footer",this,t),a=or(r,"afterFooter",this,t);let l=[];return l=ao(l,Io(o)),l=ao(l,Io(i)),l=ao(l,Io(a)),l}_createItems(t){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let l=[],s,c;for(s=0,c=n.length;st.filter(d,f,h,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),en(l,d=>{const f=px(t.callbacks,d);o.push(or(f,"labelColor",this,d)),i.push(or(f,"labelPointStyle",this,d)),a.push(or(f,"labelTextColor",this,d))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const l=ts[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const s=this._size=ux(this,r),c=Object.assign({},l,s),d=fx(this.chart,r,c),f=hx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:s.width,height:s.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,o){const i=this.getCaretPosition(t,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:s,topRight:c,bottomLeft:d,bottomRight:f}=ga(l),{x:h,y:v}=t,{width:p,height:b}=n;let m,g,y,C,x,w;return i==="center"?(x=v+b/2,o==="left"?(m=h,g=m-a,C=x+a,w=x-a):(m=h+p,g=m+a,C=x-a,w=x+a),y=m):(o==="left"?g=h+Math.max(s,d)+a:o==="right"?g=h+p-Math.max(c,f)-a:g=this.caretX,i==="top"?(C=v,x=C-a,m=g-a,y=g+a):(C=v+b,x=C+a,m=g+a,y=g-a),w=C),{x1:m,x2:g,x3:y,y1:C,y2:x,y3:w}}drawTitle(t,n,r){const o=this.title,i=o.length;let a,l,s;if(i){const c=fl(r.rtl,this.x,this.width);for(t.x=Ec(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,s=0;sC!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Fs(t,{x:m,y:b,w:c,h:s,radius:y}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Fs(t,{x:g,y:b+1,w:c-2,h:s-2,radius:y}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(m,b,c,s),t.strokeRect(m,b,c,s),t.fillStyle=a.backgroundColor,t.fillRect(g,b+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:s,boxWidth:c,boxPadding:d}=r,f=Mn(r.bodyFont);let h=f.lineHeight,v=0;const p=fl(r.rtl,this.x,this.width),b=function(T){n.fillText(T,p.x(t.x+v),t.y+h/2),t.y+=h+i},m=p.textAlign(a);let g,y,C,x,w,k,_;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ec(this,m,r),n.fillStyle=r.bodyColor,en(this.beforeBody,b),v=l&&m!=="right"?a==="center"?c/2+d:c+2+d:0,x=0,k=o.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=ts[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=ux(this,t),s=Object.assign({},a,this._size),c=fx(n,t,s),d=hx(t,s,c,n);(o._to!==d.x||i._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,o,n),tk(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),nk(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,o=t.map(({datasetIndex:l,index:s})=>{const c=this.chart.getDatasetMeta(l);if(!c)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:c.data[s],index:s}}),i=!wu(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,r),l=this._positionChanged(a,t),s=n||!wu(a,i)||l;return s&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),s}_getActiveElements(t,n,r,o){const i=this.options;if(t.type==="mouseout")return[];if(!o)return n;const a=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:o,options:i}=this,a=ts[i.position].call(this,t,n);return a!==!1&&(r!==a.x||o!==a.y)}}Nt(ap,"positioners",ts);var vF={id:"tooltip",_element:ap,positioners:ts,afterInit(e,t,n){n&&(e.tooltip=new ap({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bk},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const pF=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function gF(e,t,n,r){const o=e.indexOf(t);if(o===-1)return pF(e,t,n,r);const i=e.lastIndexOf(t);return o!==i?n:o}const mF=(e,t)=>e===null?null:Gr(Math.round(e),0,t);function gx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Nt(lp,"id","category"),Nt(lp,"defaults",{ticks:{callback:gx}});function bF(e,t){const n=[],{bounds:o,step:i,min:a,max:l,precision:s,count:c,maxTicks:d,maxDigits:f,includeBounds:h}=e,v=i||1,p=d-1,{min:b,max:m}=t,g=!nn(a),y=!nn(l),C=!nn(c),x=(m-b)/(f+1);let w=_y((m-b)/p/v)*v,k,_,T,$;if(w<1e-14&&!g&&!y)return[{value:b},{value:m}];$=Math.ceil(m/w)-Math.floor(b/w),$>p&&(w=_y($*w/p/v)*v),nn(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),o==="ticks"?(_=Math.floor(b/w)*w,T=Math.ceil(m/w)*w):(_=b,T=m),g&&y&&i&&SM((l-a)/i,w/1e3)?($=Math.round(Math.min((l-a)/w,d)),w=(l-a)/$,_=a,T=l):C?(_=g?a:_,T=y?l:T,$=c-1,w=(T-_)/$):($=(T-_)/w,yd($,Math.round($),w/1e3)?$=Math.round($):$=Math.ceil($));const R=Math.max(ky(w),ky(_));k=Math.pow(10,nn(s)?R:s),_=Math.round(_*k)/k,T=Math.round(T*k)/k;let I=0;for(g&&(h&&_!==a?(n.push({value:a}),_o=n?o:s,l=s=>i=r?i:s;if(t){const s=bi(o),c=bi(i);s<0&&c<0?l(0):s>0&&c>0&&a(0)}if(o===i){let s=i===0?1:Math.abs(i*.05);l(i+s),t||a(o-s)}this.min=o,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=bF(o,i);return t.bounds==="ticks"&&L_(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const o=(r-n)/Math.max(t.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return ub(t,this.chart.options.locale,this.options.ticks.format)}}class sp extends Tu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?t:0,this.max=En(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=hi(this.options.ticks.minRotation),o=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Nt(sp,"id","linear"),Nt(sp,"defaults",{ticks:{callback:Zf.formatters.numeric}});const As=e=>Math.floor(fi(e)),qi=(e,t)=>Math.pow(10,As(e)+t);function bx(e){return e/Math.pow(10,As(e))===1}function yx(e,t,n){const r=Math.pow(10,n),o=Math.floor(e/r);return Math.ceil(t/r)-o}function yF(e,t){const n=t-e;let r=As(n);for(;yx(e,t,r)>10;)r++;for(;yx(e,t,r)<10;)r--;return Math.min(r,As(e))}function xF(e,{min:t,max:n}){t=pr(e.min,t);const r=[],o=As(t);let i=yF(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),s=o>i?Math.pow(10,o):0,c=Math.round((t-s)*a)/a,d=Math.floor((t-s)/l/10)*l*10;let f=Math.floor((c-d)/Math.pow(10,i)),h=pr(e.min,Math.round((s+d+f*Math.pow(10,i))*a)/a);for(;h=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,a=i>=0?1:a),h=Math.round((s+d+f*Math.pow(10,i))*a)/a;const v=pr(e.max,h);return r.push({value:v,major:bx(v),significand:f}),r}class xx extends Da{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Tu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return En(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=En(t)?Math.max(0,t):null,this.max=En(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!En(this._userMin)&&(this.min=t===qi(this.min,0)?qi(this.min,-1):qi(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,o=this.max;const i=l=>r=t?r:l,a=l=>o=n?o:l;r===o&&(r<=0?(i(1),a(10)):(i(qi(r,-1)),a(qi(o,1)))),r<=0&&i(qi(o,-1)),o<=0&&a(qi(r,1)),this.min=r,this.max=o}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=xF(n,this);return t.bounds==="ticks"&&L_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":ub(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=fi(t),this._valueRange=fi(this.max)-fi(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(fi(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Nt(xx,"id","logarithmic"),Nt(xx,"defaults",{ticks:{callback:Zf.formatters.logarithmic,major:{enabled:!0}}});function cp(e){const t=e.ticks;if(t.display&&e.display){const n=Jn(t.backdropPadding);return Xt(t.font&&t.font.size,Cn.font.size)+n.height}return 0}function wF(e,t,n){return n=un(n)?n:[n],{w:jM(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function CF(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Kn/i:0;for(let s=0;st.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),o.startt.b&&(s=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+s))}function _F(e,t,n){const r=[],o=e._pointLabels.length,i=e.options,a=cp(i)/2,l=e.drawingArea,s=i.pointLabels.centerPointLabels?Kn/o:0;for(let c=0;c270||n<90)&&(e-=t),e}function $F(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let o=t-1;o>=0;o--){const i=r.setContext(e.getPointLabelContext(o)),a=Mn(i.font),{x:l,y:s,textAlign:c,left:d,top:f,right:h,bottom:v}=e._pointLabelItems[o],{backdropColor:p}=i;if(!nn(p)){const b=ga(i.borderRadius),m=Jn(i.backdropPadding);n.fillStyle=p;const g=d-m.left,y=f-m.top,C=h-d+m.width,x=v-f+m.height;Object.values(b).some(w=>w!==0)?(n.beginPath(),Fs(n,{x:g,y,w:C,h:x,radius:b}),n.fill()):n.fillRect(g,y,C,x)}_a(n,e._pointLabels[o],l,s+a.lineHeight/2,a,{color:i.color,textAlign:c,textBaseline:"middle"})}}function yk(e,t,n,r){const{ctx:o}=e;if(n)o.arc(e.xCenter,e.yCenter,t,0,go);else{let i=e.getPointPosition(0,t);o.moveTo(i.x,i.y);for(let a=1;a{const o=on(this.options.pointLabels.callback,[n,r],this);return o||o===0?o:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?CF(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,o){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,o))}getIndexAngle(t){const n=go/(this._pointLabels.length||1),r=this.options.startAngle||0;return so(t*n+hi(r))}getDistanceFromCenterForValue(t){if(nn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(nn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(f!==0){s=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(f),v=o.setContext(h),p=i.setContext(h);TF(this,v,s,a,p)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:h}=d;!h||!f||(t.lineWidth=h,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,s=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(l,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const o=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,s)=>{if(s===0&&!n.reverse)return;const c=r.setContext(this.getContext(s)),d=Mn(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[s].value),c.showLabelBackdrop){t.font=d.string,a=t.measureText(l.label).width,t.fillStyle=c.backdropColor;const f=Jn(c.backdropPadding);t.fillRect(-a/2-f.left,-i-d.size/2-f.top,a+f.width,d.size+f.height)}_a(t,l.label,0,-i,d,{color:c.color})}),t.restore()}drawTitle(){}}Nt(Lc,"id","radialLinear"),Nt(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Zf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Nt(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Nt(Lc,"descriptors",{angleLines:{_fallback:"grid"}});const Jf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},sr=Object.keys(Jf);function zF(e,t){return e-t}function Cx(e,t){if(nn(t))return null;const n=e._adapter,{parser:r,round:o,isoWeekday:i}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),En(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(_u(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Sx(e,t,n,r){const o=sr.length;for(let i=sr.indexOf(e);i=sr.indexOf(n);i--){const a=sr[i];if(Jf[a].common&&e._adapter.diff(o,r,a)>=t-1)return a}return sr[n?sr.indexOf(n):0]}function IF(e){for(let t=sr.indexOf(e)+1,n=sr.length;t=t?n[r]:n[o];e[i]=!0}}function FF(e,t,n,r){const o=e._adapter,i=+o.startOf(t[0].value,r),a=t[t.length-1].value;let l,s;for(l=i;l<=a;l=+o.add(l,1,r))s=n[l],s>=0&&(t[s].major=!0);return t}function kx(e,t,n){const r=[],o={},i=t.length;let a,l;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,o,i;this.options.offset&&t.length&&(o=this.getDecimalForValue(t[0]),t.length===1?n=1-o:n=(this.getDecimalForValue(t[1])-o)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Gr(n,0,a),r=Gr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Sx(i.minUnit,n,r,this._getLabelCapacity(n)),l=Xt(o.ticks.stepSize,1),s=a==="week"?i.isoWeekday:!1,c=_u(s)||s===!0,d={};let f=n,h,v;if(c&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const p=o.ticks.source==="data"&&this.getDataTimestamps();for(h=f,v=0;hb-m).map(b=>+b)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return on(a,[t,n,r],this);const l=i.time.displayFormats,s=this._unit,c=this._majorUnit,d=s&&l[s],f=c&&l[c],h=r[n],v=c&&f&&h&&h.major;return this._adapter.format(t,o||(v?f:d))}generateTickLabels(t){let n,r,o;for(n=0,r=t.length;n0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n=e[r].pos&&t<=e[o].pos&&({lo:r,hi:o}=rp(e,"pos",t)),{pos:i,time:l}=e[r],{pos:a,time:s}=e[o]):(t>=e[r].time&&t<=e[o].time&&({lo:r,hi:o}=rp(e,"time",t)),{time:i,pos:l}=e[r],{time:a,pos:s}=e[o]);const c=a-i;return c?l+(s-l)*(t-i)/c:l}class Rx extends Ou{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Nc(n,this.min),this._tableRange=Nc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,o=[],i=[];let a,l,s,c,d;for(a=0,l=t.length;a=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=o.length;a({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DF={type:{type:String,required:!0},...xk},AF=R_[0]==="2"?(e,t)=>Object.assign(e,{attrs:t}):(e,t)=>Object.assign(e,t);function Ya(e){return va(e)?zt(e):e}function BF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;return va(t)?new Proxy(e,{}):e}function EF(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function wk(e,t){e.labels=t}function Ck(e,t,n){const r=[];e.datasets=t.map(o=>{const i=e.datasets.find(a=>a[n]===o[n]);return!i||!o.data||r.includes(i)?{...o}:(r.push(i),Object.assign(i,o),i)})}function LF(e,t){const n={labels:[],datasets:[]};return wk(n,e.labels),Ck(n,e.datasets,t),n}const NF=J({props:DF,setup(e,t){let{expose:n}=t;const r=D(null),o=GS(null);n({chart:o});const i=()=>{if(!r.value)return;const{type:s,data:c,options:d,plugins:f,datasetIdKey:h}=e,v=LF(c,h),p=BF(v,c);o.value=new uo(r.value,{type:s,data:p,options:{...d},plugins:f})},a=()=>{const s=zt(o.value);s&&(s.destroy(),o.value=null)},l=s=>{s.update(e.updateMode)};return Mt(i),Dt(a),rt([()=>e.options,()=>e.data],(s,c)=>{let[d,f]=s,[h,v]=c;const p=zt(o.value);if(!p)return;let b=!1;if(d){const m=Ya(d),g=Ya(h);m&&m!==g&&(EF(p,m),b=!0)}if(f){const m=Ya(f.labels),g=Ya(v.labels),y=Ya(f.datasets),C=Ya(v.datasets);m!==g&&(wk(p.config.data,m),b=!0),y&&y!==C&&(Ck(p.config.data,y,e.datasetIdKey),b=!0)}b&&l(p)},{deep:!0}),()=>u("canvas",{ref:r})}});function HF(e,t){return uo.register(t),J({props:xk,setup(n,r){let{expose:o}=r;const i=GS(null),a=l=>{i.value=l==null?void 0:l.chart};return o({chart:i}),()=>u(NF,AF({ref:a},{type:e,...n}))}})}const jF=HF("bar",xd),Px=`Donald Trump,Trump -ISIS -Barack Obama,Obama -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -North Korea,North Korean,North Korea`,VF=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};uo.register(aF,vF,oF,Sd,lp,sp);const UF={ADJ:"Adjective",ADV:"Adverb",CONJ:"Conjunction",DET:"Determiner",NOUN:"Noun",NUM:"Number",PRON:"Pronoun",PRT:"Preposition",VERB:"Verb"},WF=J({components:{Bar:jF},setup(){const e=D(Px.split(/\r?\n/).at(2).split(",").at(0)),t=D(null),n=Px.split(/\r?\n/).map(c=>({label:c.split(",").at(0),value:c.split(",").at(0)})),r=[];for(const[c,d]of Object.entries(UF))r.push({label:d,value:c});let o=[];const i=async c=>{c=c.toLowerCase().replace(/ /g,"+"),o=await(await fetch(`/entityscrape/${c}.json`)).json()},a=()=>{l.splice(0),o.forEach(c=>{t.value===c.pos&&l.push(c)})};let l=Fi([]);const s=P(()=>l.length===0?{labels:[],datasets:[]}:{labels:l.map(c=>c.text),datasets:[{label:"Mean distances",data:l.map(c=>c.distance)}]});return Mt(async()=>{await i(e.value),rt(t,()=>{a()}),t.value="ADJ",rt(e,async c=>{await i(c),a()})}),{chartData:s,availableEntities:n,availablePos:r,selectedEntity:e,selectedPos:t}}}),KF=Bo("h1",null,"entityscrape",-1),qF=Bo("p",null,"This a social experiment which shows the distance between part of speeches (e. g. adjectives or nouns) in news articles (like from NBC or CNN) and randomly selected entities (like Xi Jingping or ISIS).",-1),YF=Bo("p",null,[Qr("The Go package "),Bo("a",{href:"https://github.com/ndabAP/assocentity"},"assocentity"),Qr(" was used for creating this experiment. You can create new ones with updating the "),Bo("code",null,"source/entities.txt"),Qr(" file and run the CLI with the provided Visual Studio Code debug configuration.")],-1),XF=Bo("small",null,[Bo("b",null,"Data source"),Qr(": "),Bo("a",{target:"_blank",href:"https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/GMFCTR"},'dai, tianru, 2017, "News Articles", Harvard Dataverse, V1')],-1);function GF(e,t,n,r,o,i){const a=Rc("n-select"),l=Rc("n-form-item"),s=Rc("Bar"),c=Rc("n-space");return w_(),C_(c,{vertical:""},{default:md(()=>[KF,qF,YF,zn(l,{size:"small",label:"Entity"},{default:md(()=>[zn(a,{value:e.selectedEntity,"onUpdate:value":t[0]||(t[0]=d=>e.selectedEntity=d),options:e.availableEntities},null,8,["value","options"])]),_:1}),zn(l,{size:"small",label:"Part of speech"},{default:md(()=>[zn(a,{value:e.selectedPos,"onUpdate:value":t[1]||(t[1]=d=>e.selectedPos=d),options:e.availablePos},null,8,["value","options"])]),_:1}),zn(s,{options:{indexAxis:"y",responsive:!0},data:e.chartData},null,8,["data"]),XF]),_:1})}const ZF=VF(WF,[["render",GF]]);let zu=[];const Sk=new WeakMap;function QF(){zu.forEach(e=>e(...Sk.get(e))),zu=[]}function ka(e,...t){Sk.set(e,t),!zu.includes(e)&&zu.push(e)===1&&requestAnimationFrame(QF)}function JF(e){return e.nodeType===9?null:e.parentNode}function _k(e){if(e===null)return null;const t=JF(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return _k(t)}function yb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function qn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function ur(e){return e.composedPath()[0]||null}function eD(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function Vl(e,t){var n;if(e==null)return;const r=eD(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function dn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function yi(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function tD(e,t){const[n,r]=e.split(" ");return t?t==="row"?n:r:{row:n,col:r||n}}const $x={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function kk(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function _d(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function ci(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function dp(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function up(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function fp(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Co="^\\s*",So="\\s*$",ki="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",gr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",ca="([0-9A-Fa-f])",da="([0-9A-Fa-f]{2})",nD=new RegExp(`${Co}hsl\\s*\\(${gr},${ki},${ki}\\)${So}`),rD=new RegExp(`${Co}hsv\\s*\\(${gr},${ki},${ki}\\)${So}`),oD=new RegExp(`${Co}hsla\\s*\\(${gr},${ki},${ki},${gr}\\)${So}`),iD=new RegExp(`${Co}hsva\\s*\\(${gr},${ki},${ki},${gr}\\)${So}`),aD=new RegExp(`${Co}rgb\\s*\\(${gr},${gr},${gr}\\)${So}`),lD=new RegExp(`${Co}rgba\\s*\\(${gr},${gr},${gr},${gr}\\)${So}`),xb=new RegExp(`${Co}#${ca}${ca}${ca}${So}`),wb=new RegExp(`${Co}#${da}${da}${da}${So}`),Cb=new RegExp(`${Co}#${ca}${ca}${ca}${ca}${So}`),Sb=new RegExp(`${Co}#${da}${da}${da}${da}${So}`);function ir(e){return parseInt(e,16)}function hl(e){try{let t;if(t=oD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=nD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function ba(e){try{let t;if(t=iD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),Eo(t[13])];if(t=rD.exec(e))return[wo(t[1]),Rn(t[5]),Rn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Bn(e){try{let t;if(t=wb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),1];if(t=aD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),1];if(t=lD.exec(e))return[pn(t[1]),pn(t[5]),pn(t[9]),Eo(t[13])];if(t=xb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),1];if(t=Sb.exec(e))return[ir(t[1]),ir(t[2]),ir(t[3]),Eo(ir(t[4])/255)];if(t=Cb.exec(e))return[ir(t[1]+t[1]),ir(t[2]+t[2]),ir(t[3]+t[3]),Eo(ir(t[4]+t[4])/255)];if(e in $x)return Bn($x[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function sD(e){return e>1?1:e<0?0:e}function cD(e,t,n){return`rgb(${pn(e)}, ${pn(t)}, ${pn(n)})`}function hp(e,t,n,r){return`rgba(${pn(e)}, ${pn(t)}, ${pn(n)}, ${sD(r)})`}function Jh(e,t,n,r,o){return pn((e*t*(1-r)+n*r)/o)}function ht(e,t){Array.isArray(e)||(e=Bn(e)),Array.isArray(t)||(t=Bn(t));const n=e[3],r=t[3],o=Eo(n+r-n*r);return hp(Jh(e[0],n,t[0],r,o),Jh(e[1],n,t[1],r,o),Jh(e[2],n,t[2],r,o),o)}function ft(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e);return t.alpha?hp(n,r,o,t.alpha):hp(n,r,o,i)}function Hc(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Bn(e),{lightness:a=1,alpha:l=1}=t;return mo([n*a,r*a,o*a,i*l])}function Eo(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function wo(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function pn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Rn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function vp(e){const[t,n,r]=Array.isArray(e)?e:Bn(e);return cD(t,n,r)}function mo(e){const[t,n,r]=e;return 3 in e?`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, ${Eo(e[3])})`:`rgba(${pn(t)}, ${pn(n)}, ${pn(r)}, 1)`}function pp(e){return`hsv(${wo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function ya(e){const[t,n,r]=e;return 3 in e?`hsva(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsva(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function gp(e){return`hsl(${wo(e[0])}, ${Rn(e[1])}%, ${Rn(e[2])}%)`}function xi(e){const[t,n,r]=e;return 3 in e?`hsla(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, ${Eo(e[3])})`:`hsla(${wo(t)}, ${Rn(n)}%, ${Rn(r)}%, 1)`}function wi(e){if(typeof e=="string"){let r;if(r=wb.exec(e))return`${r[0]}FF`;if(r=Sb.exec(e))return r[0];if(r=xb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=Cb.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>pn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":pn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function ps(e){if(typeof e=="string"){let t;if(t=wb.exec(e))return t[0];if(t=Sb.exec(e))return t[0].slice(0,7);if(t=xb.exec(e)||Cb.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>pn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Cr(e=8){return Math.random().toString(16).slice(2,2+e)}function Rk(e,t){const n=[];for(let r=0;r{r[o]=e[o]}),Object.assign(r,n)}function Aa(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Ir(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){Ir(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&Ir(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function he(e,...t){if(Array.isArray(e))e.forEach(n=>he(n,...t));else return e(...t)}function Nn(e){return Object.keys(e)}const jt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?Qr(e):typeof e=="number"?Qr(String(e)):null,Ox=new Set;function uD(e,t){const n=`[naive/${e}]: ${t}`;Ox.has(n)||(Ox.add(n),console.error(n))}function Yn(e,t){console.error(`[naive/${e}]: ${t}`)}function Dn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function mp(e){switch(e){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${e} has no smaller size.`)}function rc(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function Mu(e,t="default",n=void 0){const r=e[t];if(!r)return Yn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ir(r(n));return o.length===1?o[0]:(Yn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Pk(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function $k(e){return t=>{t?e.value=t.$el:e.value=null}}function Tl(e){return e.some(t=>Os(t)?!(t.type===xr||t.type===$t&&!Tl(t.children)):!0)?e:null}function vt(e,t){return e&&Tl(e())||t()}function Ra(e,t,n){return e&&Tl(e(t))||n(t)}function Ct(e,t){const n=e&&Tl(e());return t(n||null)}function fD(e,t,n){const r=e&&Tl(e(t));return n(r||null)}function xa(e){return!(e&&Tl(e()))}function gs(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function hD(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===wr);return!!(n&&n.value===!1)}const bp=J({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),vD=/^(\d|\.)+$/,zx=/(\d|\.)+/;function Ot(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(vD.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=zx.exec(e);return o?e.replace(zx,String((Number(o[0])+n)*t)):e}return e}function Pa(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function pD(e){let t=0;for(let n=0;n{let o=pD(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>n.push(a))}),n}function bD(e,t){const n=[];return t.split(Tk).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function yD(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=mD(t,n):t=bD(t,n))}),t.join(", ").replace(gD," ")}function Mx(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function eh(e){return document.querySelector(`style[cssr-id="${e}"]`)}function xD(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function jc(e){return e?/^\s*@(s|m)/.test(e):!1}const wD=/[A-Z]/g;function Ok(e){return e.replace(wD,t=>"-"+t.toLowerCase())}function CD(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(n=>t+` ${Ok(n[0])}: ${n[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function SD(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ix(e,t,n,r){if(!t)return"";const o=SD(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { -${o} -}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=o[l];if(l==="raw"){a.push(` -`+s+` -`);return}l=Ok(l),s!=null&&a.push(` ${l}${CD(s)}`)}),e&&a.push("}"),a.join(` -`)}function yp(e,t,n){!e||e.forEach(r=>{if(Array.isArray(r))yp(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?yp(o,t,n):o&&n(o)}else r&&n(r)})}function zk(e,t,n,r,o,i){const a=e.$;let l="";if(!a||typeof a=="string")jc(a)?l=a:t.push(a);else if(typeof a=="function"){const d=a({context:r.context,props:o});jc(d)?l=d:t.push(d)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")jc(a.$)?l=a.$:t.push(a.$);else if(a.$){const d=a.$({context:r.context,props:o});jc(d)?l=d:t.push(d)}const s=yD(t),c=Ix(s,e.props,r,o);l?(n.push(`${l} {`),i&&c&&i.insertRule(`${l} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&yp(e.children,{context:r.context,props:o},d=>{if(typeof d=="string"){const f=Ix(s,{raw:d},r,o);i?i.insertRule(f):n.push(f)}else zk(d,t,n,r,o,i)}),t.pop(),l&&n.push("}"),a&&a.after&&a.after(r.context)}function Mk(e,t,n,r=!1){const o=[];return zk(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(` - -`)}function Bs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function _D(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Mx),t.els=[];else{const o=eh(n);o&&r.includes(o)&&(Mx(o),t.els=r.filter(i=>i!==o))}}function Fx(e,t){e.push(t)}function kD(e,t,n,r,o,i,a,l,s){if(i&&!s){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[n]||(h[n]=!0,Mk(t,e,r,i));return}let c;if(n===void 0&&(c=t.render(r),n=Bs(c)),s){s.adapter(n,c!=null?c:t.render(r));return}const d=eh(n);if(d!==null&&!a)return d;const f=d!=null?d:xD(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,d!==null)return d;if(l){const h=document.head.querySelector(`meta[name="${l}"]`);if(h)return document.head.insertBefore(f,h),Fx(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),Fx(t.els,f),f}function RD(e){return Mk(this,this.instance,e)}function PD(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:l}=e;return kD(this.instance,this,t,r,o,i,a,l,n)}function $D(e={}){const{id:t}=e;_D(this.instance,this,t)}const Vc=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:RD,mount:PD,unmount:$D}},TD=function(e,t,n,r){return Array.isArray(t)?Vc(e,{$:null},null,t):Array.isArray(n)?Vc(e,t,null,n):Array.isArray(r)?Vc(e,t,n,r):Vc(e,t,n,null)};function Ik(e={}){let t=null;const n={c:(...r)=>TD(n,...r),use:(r,...o)=>r.install(n,...o),find:eh,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function OD(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return eh(e)!==null}function zD(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const b=p.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(p){let b,m;return{before(g){b=g.bem.b,m=g.bem.els,g.bem.els=null},after(g){g.bem.b=b,g.bem.els=m},$({context:g,props:y}){return p=typeof p=="string"?p:p({context:g,props:y}),g.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${g.bem.b}`}}}function l(p){let b;return{before(m){b=m.bem.els},after(m){m.bem.els=b},$({context:m,props:g}){return p=typeof p=="string"?p:p({context:m,props:g}),m.bem.els=p.split(",").map(y=>y.trim()),m.bem.els.map(y=>`${(g==null?void 0:g.bPrefix)||t}${m.bem.b}${n}${y}`).join(", ")}}}function s(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=p.split(",").map(x=>x.trim());function y(x){return g.map(w=>`&${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${x!==void 0?`${n}${x}`:""}${r}${w}`).join(", ")}const C=b.bem.els;return C!==null?y(C[0]):y()}}}function c(p){return{$({context:b,props:m}){p=typeof p=="string"?p:p({context:b,props:m});const g=b.bem.els;return`&:not(${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${g!==null&&g.length>0?`${n}${g[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(l(p[0]),p[1],p[2]),cM:(...p)=>o(s(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function ye(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}ye("abc","def");const MD="n",Es=`.${MD}-`,ID="__",FD="--",Fk=Ik(),Dk=zD({blockPrefix:Es,elementPrefix:ID,modifierPrefix:FD});Fk.use(Dk);const{c:O,find:Jie}=Fk,{cB:S,cE:M,cM:F,cNotM:pt}=Dk;function _o(e){return O(({props:{bPrefix:t}})=>`${t||Es}modal, ${t||Es}drawer`,[e])}function qo(e){return O(({props:{bPrefix:t}})=>`${t||Es}popover`,[e])}function Ak(e){return O(({props:{bPrefix:t}})=>`&${t||Es}modal`,e)}const DD=(...e)=>O(">",[S(...e)]);let ev;function AD(){return ev===void 0&&(ev=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ev}const rr=typeof document<"u"&&typeof window<"u",Bk=new WeakSet;function $a(e){Bk.add(e)}function Ek(e){return!Bk.has(e)}function BD(e,t,n){var r;const o=Le(e,null);if(o===null)return;const i=(r=Ko())===null||r===void 0?void 0:r.proxy;rt(n,a),a(n.value),Dt(()=>{a(void 0,n.value)});function a(c,d){const f=o[t];d!==void 0&&l(f,d),c!==void 0&&s(f,c)}function l(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(f=>f===i),1)}function s(c,d){c[d]||(c[d]=[]),~c[d].findIndex(f=>f===i)||c[d].push(i)}}function ED(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),rt(n,(o,i)=>{const a=r[t],l=a.findIndex(s=>s===i);~l&&a.splice(l,1),a.push(o)}),Dt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function LD(e,t,n){const r=Le(e,null);r!==null&&(t in r||(r[t]=[]),Mt(()=>{const o=n();!o||r[t].push(o)}),Dt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function ND(e,t,n){if(!t)return e;const r=D(e.value);let o=null;return rt(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}function Lk(e){const t=D(!!e.value);if(t.value)return xo(t);const n=rt(e,r=>{r&&(t.value=!0,n())});return xo(t)}function it(e){const t=P(e),n=D(t.value);return rt(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function _b(){return Ko()!==null}const th=typeof window<"u";let vl,ms;const HD=()=>{var e,t;vl=th?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,ms=!1,vl!==void 0?vl.then(()=>{ms=!0}):ms=!0};HD();function nh(e){if(ms)return;let t=!1;Mt(()=>{ms||vl==null||vl.then(()=>{t||e()})}),Dt(()=>{t=!0})}function kd(e){return e.composedPath()[0]}const jD={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function VD(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(kd(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(kd(a))},i=a=>{!r||t.contains(kd(a))||n(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Nk(e,t,n){const r=jD[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=VD(e,t,n)),i}function UD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{St(i,document,o[i],r)}),!0}return!1}function WD(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Nk(e,t,n);return Object.keys(o).forEach(i=>{xt(i,document,o[i],r)}),!0}return!1}function KD(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(_,T,$){const R=_[T];return _[T]=function(){return $.apply(_,arguments),R.apply(_,arguments)},_}function i(_,T){_[T]=Event.prototype[T]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var _;return(_=a.get(this))!==null&&_!==void 0?_:null}function c(_,T){l!==void 0&&Object.defineProperty(_,"currentTarget",{configurable:!0,enumerable:!0,get:T!=null?T:l.get})}const d={bubble:{},capture:{}},f={};function h(){const _=function(T){const{type:$,eventPhase:R,bubbles:I}=T,z=kd(T);if(R===2)return;const A=R===1?"capture":"bubble";let L=z;const j=[];for(;L===null&&(L=window),j.push(L),L!==window;)L=L.parentNode||null;const E=d.capture[$],U=d.bubble[$];if(o(T,"stopPropagation",n),o(T,"stopImmediatePropagation",r),c(T,s),A==="capture"){if(E===void 0)return;for(let K=j.length-1;K>=0&&!e.has(T);--K){const Q=j[K],V=E.get(Q);if(V!==void 0){a.set(T,Q);for(const re of V){if(t.has(T))break;re(T)}}if(K===0&&!I&&U!==void 0){const re=U.get(Q);if(re!==void 0)for(const ee of re){if(t.has(T))break;ee(T)}}}}else if(A==="bubble"){if(U===void 0)return;for(let K=0;Kz(T))};return _.displayName="evtdUnifiedWindowEventHandler",_}const p=h(),b=v();function m(_,T){const $=d[_];return $[T]===void 0&&($[T]=new Map,window.addEventListener(T,p,_==="capture")),$[T]}function g(_){return f[_]===void 0&&(f[_]=new Set,window.addEventListener(_,b)),f[_]}function y(_,T){let $=_.get(T);return $===void 0&&_.set(T,$=new Set),$}function C(_,T,$,R){const I=d[T][$];if(I!==void 0){const z=I.get(_);if(z!==void 0&&z.has(R))return!0}return!1}function x(_,T){const $=f[_];return!!($!==void 0&&$.has(T))}function w(_,T,$,R){let I;if(typeof R=="object"&&R.once===!0?I=E=>{k(_,T,I,R),$(E)}:I=$,UD(_,T,I,R))return;const A=R===!0||typeof R=="object"&&R.capture===!0?"capture":"bubble",L=m(A,_),j=y(L,T);if(j.has(I)||j.add(I),T===window){const E=g(_);E.has(I)||E.add(I)}}function k(_,T,$,R){if(WD(_,T,$,R))return;const z=R===!0||typeof R=="object"&&R.capture===!0,A=z?"capture":"bubble",L=m(A,_),j=y(L,T);if(T===window&&!C(T,z?"bubble":"capture",_,$)&&x(_,$)){const U=f[_];U.delete($),U.size===0&&(window.removeEventListener(_,b),f[_]=void 0)}j.has($)&&j.delete($),j.size===0&&L.delete(T),L.size===0&&(window.removeEventListener(_,p,A==="capture"),d[A][_]=void 0)}return{on:w,off:k}}const{on:St,off:xt}=KD(),ns=D(null);function Dx(e){if(e.clientX>0||e.clientY>0)ns.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ns.value={x:n+o/2,y:r+i/2}:ns.value={x:0,y:0}}else ns.value=null}}let Uc=0,Ax=!0;function Hk(){if(!th)return xo(D(null));Uc===0&&St("click",document,Dx,!0);const e=()=>{Uc+=1};return Ax&&(Ax=_b())?(Wo(e),Dt(()=>{Uc-=1,Uc===0&&xt("click",document,Dx,!0)})):e(),xo(ns)}const qD=D(void 0);let Wc=0;function Bx(){qD.value=Date.now()}let Ex=!0;function jk(e){if(!th)return xo(D(!1));const t=D(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Wc===0&&St("click",window,Bx,!0);const i=()=>{Wc+=1,St("click",window,o,!0)};return Ex&&(Ex=_b())?(Wo(i),Dt(()=>{Wc-=1,Wc===0&&xt("click",window,Bx,!0),xt("click",window,o,!0),r()})):i(),xo(t)}function wt(e,t){return rt(e,n=>{n!==void 0&&(t.value=n)}),P(()=>e.value===void 0?t.value:e.value)}function An(){const e=D(!1);return Mt(()=>{e.value=!0}),xo(e)}function Ri(e,t){return P(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const YD=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function XD(){return YD}const GD={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function ZD(e){return`(min-width: ${e}px)`}const Ul={};function QD(e=GD){if(!th)return P(()=>[]);if(typeof window.matchMedia!="function")return P(()=>[]);const t=D({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;Ul[i]===void 0?(a=window.matchMedia(ZD(i)),a.addEventListener?a.addEventListener("change",s=>{l.forEach(c=>{c(s,o)})}):a.addListener&&a.addListener(s=>{l.forEach(c=>{c(s,o)})}),l=new Set,Ul[i]={mql:a,cbs:l}):(a=Ul[i].mql,l=Ul[i].cbs),l.add(r),a.matches&&l.forEach(s=>{s(a,o)})}),Dt(()=>{n.forEach(o=>{const{cbs:i}=Ul[e[o]];i.has(r)&&i.delete(r)})}),P(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function kb(e={},t){const n=Fi({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=s=>{switch(s.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},a=s=>{switch(s.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==s.key)return;const d=o[c];if(typeof d=="function")d(s);else{const{stop:f=!1,prevent:h=!1}=d;f&&s.stopPropagation(),h&&s.preventDefault(),d.handler(s)}})},l=()=>{(t===void 0||t.value)&&(St("keydown",document,i),St("keyup",document,a)),t!==void 0&&rt(t,s=>{s?(St("keydown",document,i),St("keyup",document,a)):(xt("keydown",document,i),xt("keyup",document,a))})};return _b()?(Wo(l),Dt(()=>{(t===void 0||t.value)&&(xt("keydown",document,i),xt("keyup",document,a))})):l(),xo(n)}const Rb="n-internal-select-menu",Vk="n-internal-select-menu-body",oc="n-modal-body",Uk="n-modal",ic="n-drawer-body",Pb="n-drawer",Ol="n-popover-body",Wk="__disabled__";function Lt(e){const t=Le(oc,null),n=Le(ic,null),r=Le(Ol,null),o=Le(Vk,null),i=D();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Mt(()=>{St("fullscreenchange",document,a)}),Dt(()=>{xt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Wk:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:l!=null?l:i.value||"body"})}Lt.tdkey=Wk;Lt.propTo={type:[String,Object,Boolean],default:void 0};let Lx=!1;function $b(){if(!!rr&&!!window.CSS&&!Lx&&(Lx=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}function xp(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wp(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Qr(String(r)));return}if(Array.isArray(r)){wp(r,t,n);return}if(r.type===$t){if(r.children===null)return;Array.isArray(r.children)&&wp(r.children,t,n)}else r.type!==xr&&n.push(r)}}),n}function Nx(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wp(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ri=null;function Kk(){if(ri===null&&(ri=document.getElementById("v-binder-view-measurer"),ri===null)){ri=document.createElement("div"),ri.id="v-binder-view-measurer";const{style:e}=ri;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ri)}return ri.getBoundingClientRect()}function JD(e,t){const n=Kk();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function tv(e){const t=e.getBoundingClientRect(),n=Kk();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function eA(e){return e.nodeType===9?null:e.parentNode}function qk(e){if(e===null)return null;const t=eA(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return qk(t)}const tA=J({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=Ko())===null||t===void 0?void 0:t.proxy);const n=Le("VBinder",null),r=D(null),o=g=>{r.value=g,n&&e.syncTargetWithParent&&n.setTargetRef(g)};let i=[];const a=()=>{let g=r.value;for(;g=qk(g),g!==null;)i.push(g);for(const y of i)St("scroll",y,f,!0)},l=()=>{for(const g of i)xt("scroll",g,f,!0);i=[]},s=new Set,c=g=>{s.size===0&&a(),s.has(g)||s.add(g)},d=g=>{s.has(g)&&s.delete(g),s.size===0&&l()},f=()=>{ka(h)},h=()=>{s.forEach(g=>g())},v=new Set,p=g=>{v.size===0&&St("resize",window,m),v.has(g)||v.add(g)},b=g=>{v.has(g)&&v.delete(g),v.size===0&&xt("resize",window,m)},m=()=>{v.forEach(g=>g())};return Dt(()=>{xt("resize",window,m),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:b}},render(){return xp("binder",this.$slots)}}),Nr=tA,Hr=J({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?sn(Nx("follower",this.$slots),[[t]]):Nx("follower",this.$slots)}}),Xa="@@mmoContext",nA={mounted(e,{value:t}){e[Xa]={handler:void 0},typeof t=="function"&&(e[Xa].handler=t,St("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Xa];typeof t=="function"?n.handler?n.handler!==t&&(xt("mousemoveoutside",e,n.handler),n.handler=t,St("mousemoveoutside",e,t)):(e[Xa].handler=t,St("mousemoveoutside",e,t)):n.handler&&(xt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Xa];t&&xt("mousemoveoutside",e,t),e[Xa].handler=void 0}},rA=nA,Ga="@@coContext",oA={mounted(e,{value:t,modifiers:n}){e[Ga]={handler:void 0},typeof t=="function"&&(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Ga];typeof t=="function"?r.handler?r.handler!==t&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,St("clickoutside",e,t,{capture:n.capture})):(e[Ga].handler=t,St("clickoutside",e,t,{capture:n.capture})):r.handler&&(xt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Ga];n&&xt("clickoutside",e,n,{capture:t.capture}),e[Ga].handler=void 0}},fr=oA;function iA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class aA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&iA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const nv=new aA,Za="@@ziContext",lA={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Za]={enabled:!!o,initialized:!1},o&&(nv.ensureZIndex(e,r),e[Za].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Za].enabled;o&&!i&&(nv.ensureZIndex(e,r),e[Za].initialized=!0),e[Za].enabled=!!o},unmounted(e,t){if(!e[Za].initialized)return;const{value:n={}}=t,{zIndex:r}=n;nv.unregister(e,r)}},ac=lA,Yk=Symbol("@css-render/vue3-ssr");function sA(e,t){return``}function cA(e,t){const n=Le(Yk,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(sA(e,t)))}const dA=typeof document<"u";function Di(){if(dA)return;const e=Le(Yk,null);if(e!==null)return{adapter:cA,context:e}}function Hx(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:po}=Ik(),rh="vueuc-style";function jx(e){return e&-e}class uA{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=jx(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?xp("lazy-teleport",this.$slots):u(Js,{disabled:this.disabled,to:this.mergedTo},xp("lazy-teleport",this.$slots)):null}}),Kc={top:"bottom",bottom:"top",left:"right",right:"left"},Ux={start:"end",center:"center",end:"start"},rv={top:"height",bottom:"height",left:"width",right:"width"},fA={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},hA={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},vA={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Wx={top:!0,bottom:!1,left:!0,right:!1},Kx={top:"end",bottom:"start",left:"end",right:"start"};function pA(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l!=null?l:"center",c={top:0,left:0};const d=(v,p,b)=>{let m=0,g=0;const y=n[v]-t[p]-t[v];return y>0&&r&&(b?g=Wx[p]?y:-y:m=Wx[p]?y:-y),{left:m,top:g}},f=a==="left"||a==="right";if(s!=="center"){const v=vA[e],p=Kc[v],b=rv[v];if(n[b]>t[b]){if(t[v]+t[b]t[p]&&(s=Ux[l])}else{const v=a==="bottom"||a==="top"?"left":"top",p=Kc[v],b=rv[v],m=(n[b]-t[b])/2;(t[v]t[p]?(s=Kx[v],c=d(b,v,f)):(s=Kx[p],c=d(b,p,f)))}let h=a;return t[a] *",{pointerEvents:"all"})])]),Sr=J({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Le("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=D(null),o=D(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Mt(()=>{n.value&&(s(),i())});const l=Di();bA.mount({id:"vueuc/binder",head:!0,anchorMetaName:rh,ssr:l}),Dt(()=>{a()}),nh(()=>{n.value&&s()});const s=()=>{if(!n.value)return;const h=r.value;if(h===null)return;const v=t.targetRef,{x:p,y:b,overlap:m}=e,g=p!==void 0&&b!==void 0?JD(p,b):tv(v);h.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:y,minWidth:C,placement:x,internalShift:w,flip:k}=e;h.setAttribute("v-placement",x),m?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:_}=h;y==="target"?_.width=`${g.width}px`:y!==void 0?_.width=y:_.width="",C==="target"?_.minWidth=`${g.width}px`:C!==void 0?_.minWidth=C:_.minWidth="";const T=tv(h),$=tv(o.value),{left:R,top:I,placement:z}=pA(x,g,T,w,k,m),A=gA(z,m),{left:L,top:j,transform:E}=mA(z,$,g,I,R,m);h.setAttribute("v-placement",z),h.style.setProperty("--v-offset-left",`${Math.round(R)}px`),h.style.setProperty("--v-offset-top",`${Math.round(I)}px`),h.style.transform=`translateX(${L}) translateY(${j}) ${E}`,h.style.setProperty("--v-transform-origin",A),h.style.transformOrigin=A};rt(n,h=>{h?(i(),c()):a()});const c=()=>{_t().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{rt(xe(e,h),s)}),["teleportDisabled"].forEach(h=>{rt(xe(e,h),c)}),rt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=An(),f=it(()=>{const{to:h}=e;if(h!==void 0)return h;d.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:s}},render(){return u(lc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=u("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[u("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?sn(n,[[ac,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var wa=[],yA=function(){return wa.some(function(e){return e.activeTargets.length>0})},xA=function(){return wa.some(function(e){return e.skippedTargets.length>0})},qx="ResizeObserver loop completed with undelivered notifications.",wA=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:qx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=qx),window.dispatchEvent(e)},Ls;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ls||(Ls={}));var Ca=function(e){return Object.freeze(e)},CA=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ca(this)}return e}(),Xk=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ca(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Tb=function(e){return e instanceof SVGElement&&"getBBox"in e},Gk=function(e){if(Tb(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Yx=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},SA=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bs=typeof window<"u"?window:{},qc=new WeakMap,Xx=/auto|scroll/,_A=/^tb|vertical/,kA=/msie|trident/i.test(bs.navigator&&bs.navigator.userAgent),oo=function(e){return parseFloat(e||"0")},pl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new CA((n?t:e)||0,(n?e:t)||0)},Gx=Ca({devicePixelContentBoxSize:pl(),borderBoxSize:pl(),contentBoxSize:pl(),contentRect:new Xk(0,0,0,0)}),Zk=function(e,t){if(t===void 0&&(t=!1),qc.has(e)&&!t)return qc.get(e);if(Gk(e))return qc.set(e,Gx),Gx;var n=getComputedStyle(e),r=Tb(e)&&e.ownerSVGElement&&e.getBBox(),o=!kA&&n.boxSizing==="border-box",i=_A.test(n.writingMode||""),a=!r&&Xx.test(n.overflowY||""),l=!r&&Xx.test(n.overflowX||""),s=r?0:oo(n.paddingTop),c=r?0:oo(n.paddingRight),d=r?0:oo(n.paddingBottom),f=r?0:oo(n.paddingLeft),h=r?0:oo(n.borderTopWidth),v=r?0:oo(n.borderRightWidth),p=r?0:oo(n.borderBottomWidth),b=r?0:oo(n.borderLeftWidth),m=f+c,g=s+d,y=b+v,C=h+p,x=l?e.offsetHeight-C-e.clientHeight:0,w=a?e.offsetWidth-y-e.clientWidth:0,k=o?m+y:0,_=o?g+C:0,T=r?r.width:oo(n.width)-k-w,$=r?r.height:oo(n.height)-_-x,R=T+m+w+y,I=$+g+x+C,z=Ca({devicePixelContentBoxSize:pl(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:pl(R,I,i),contentBoxSize:pl(T,$,i),contentRect:new Xk(f,s,T,$)});return qc.set(e,z),z},Qk=function(e,t,n){var r=Zk(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ls.DEVICE_PIXEL_CONTENT_BOX:return a;case Ls.BORDER_BOX:return o;default:return i}},RA=function(){function e(t){var n=Zk(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ca([n.borderBoxSize]),this.contentBoxSize=Ca([n.contentBoxSize]),this.devicePixelContentBoxSize=Ca([n.devicePixelContentBoxSize])}return e}(),Jk=function(e){if(Gk(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},PA=function(){var e=1/0,t=[];wa.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var d=new RA(c.target),f=Jk(c.target);l.push(d),c.lastReportedSize=Qk(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},$A=function(){var e=0;for(Zx(e);yA();)e=PA(),Zx(e);return xA()&&wA(),e>0},ov,eR=[],TA=function(){return eR.splice(0).forEach(function(e){return e()})},OA=function(e){if(!ov){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return TA()}).observe(n,r),ov=function(){n.textContent="".concat(t?t--:t++)}}eR.push(e),ov()},zA=function(e){OA(function(){requestAnimationFrame(e)})},Rd=0,MA=function(){return!!Rd},IA=250,FA={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jx=function(e){return e===void 0&&(e=0),Date.now()+e},iv=!1,DA=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=IA),!iv){iv=!0;var r=Jx(t);zA(function(){var o=!1;try{o=$A()}finally{if(iv=!1,t=r-Jx(),!MA())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,FA)};document.body?n():bs.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return bs.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return bs.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Cp=new DA,ew=function(e){!Rd&&e>0&&Cp.start(),Rd+=e,!Rd&&Cp.stop()},AA=function(e){return!Tb(e)&&!SA(e)&&getComputedStyle(e).display==="inline"},BA=function(){function e(t,n){this.target=t,this.observedBox=n||Ls.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qk(this.target,this.observedBox,!0);return AA(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),EA=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yc=new WeakMap,tw=function(e,t){for(var n=0;n=0&&(i&&wa.splice(wa.indexOf(r),1),r.observationTargets.splice(o,1),ew(-1))},e.disconnect=function(t){var n=this,r=Yc.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),LA=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xc.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yx(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xc.unobserve(this,t)},e.prototype.disconnect=function(){Xc.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class NA{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||LA)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){!this.elHandlersMap.has(t)||(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Iu=new NA,Dr=J({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Ko().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Mt(()=>{const o=n.$el;if(o===void 0){Hx("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Hx("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Iu.registerHandler(o.nextElementSibling,r),t=!0)}),Dt(()=>{t&&Iu.unregisterHandler(n.$el.nextElementSibling)})},render(){return Jm(this.$slots,"default")}});let Gc;function HA(){return Gc===void 0&&("matchMedia"in window?Gc=window.matchMedia("(pointer:coarse)").matches:Gc=!1),Gc}let av;function nw(){return av===void 0&&(av="chrome"in window?window.devicePixelRatio:1),av}const jA=po(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[po("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[po("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),No=J({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Di();jA.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:rh,ssr:t}),Mt(()=>{const{defaultScrollIndex:I,defaultScrollKey:z}=e;I!=null?p({index:I}):z!=null&&p({key:z})});let n=!1,r=!1;Gm(()=>{if(n=!1,!r){r=!0;return}p({top:f.value,left:d})}),Zs(()=>{n=!0,r||(r=!0)});const o=P(()=>{const I=new Map,{keyField:z}=e;return e.items.forEach((A,L)=>{I.set(A[z],L)}),I}),i=D(null),a=D(void 0),l=new Map,s=P(()=>{const{items:I,itemSize:z,keyField:A}=e,L=new uA(I.length,z);return I.forEach((j,E)=>{const U=j[A],K=l.get(U);K!==void 0&&L.add(E,K)}),L}),c=D(0);let d=0;const f=D(0),h=it(()=>Math.max(s.value.getBound(f.value-dn(e.paddingTop))-1,0)),v=P(()=>{const{value:I}=a;if(I===void 0)return[];const{items:z,itemSize:A}=e,L=h.value,j=Math.min(L+Math.ceil(I/A+1),z.length-1),E=[];for(let U=L;U<=j;++U)E.push(z[U]);return E}),p=(I,z)=>{if(typeof I=="number"){y(I,z,"auto");return}const{left:A,top:L,index:j,key:E,position:U,behavior:K,debounce:Q=!0}=I;if(A!==void 0||L!==void 0)y(A,L,K);else if(j!==void 0)g(j,K,Q);else if(E!==void 0){const V=o.value.get(E);V!==void 0&&g(V,K,Q)}else U==="bottom"?y(0,Number.MAX_SAFE_INTEGER,K):U==="top"&&y(0,0,K)};let b,m=null;function g(I,z,A){const{value:L}=s,j=L.sum(I)+dn(e.paddingTop);if(!A)i.value.scrollTo({left:0,top:j,behavior:z});else{b=I,m!==null&&window.clearTimeout(m),m=window.setTimeout(()=>{b=void 0,m=null},16);const{scrollTop:E,offsetHeight:U}=i.value;if(j>E){const K=L.get(I);j+K<=E+U||i.value.scrollTo({left:0,top:j+K-U,behavior:z})}else i.value.scrollTo({left:0,top:j,behavior:z})}}function y(I,z,A){i.value.scrollTo({left:I,top:z,behavior:A})}function C(I,z){var A,L,j;if(n||e.ignoreItemResize||R(z.target))return;const{value:E}=s,U=o.value.get(I),K=E.get(U),Q=(j=(L=(A=z.borderBoxSize)===null||A===void 0?void 0:A[0])===null||L===void 0?void 0:L.blockSize)!==null&&j!==void 0?j:z.contentRect.height;if(Q===K)return;Q-e.itemSize===0?l.delete(I):l.set(I,Q-e.itemSize);const re=Q-K;if(re===0)return;E.add(U,re);const ee=i.value;if(ee!=null){if(b===void 0){const ue=E.sum(U);ee.scrollTop>ue&&ee.scrollBy(0,re)}else if(Uee.scrollTop+ee.offsetHeight&&ee.scrollBy(0,re)}$()}c.value++}const x=!HA();let w=!1;function k(I){var z;(z=e.onScroll)===null||z===void 0||z.call(e,I),(!x||!w)&&$()}function _(I){var z;if((z=e.onWheel)===null||z===void 0||z.call(e,I),x){const A=i.value;if(A!=null){if(I.deltaX===0&&(A.scrollTop===0&&I.deltaY<=0||A.scrollTop+A.offsetHeight>=A.scrollHeight&&I.deltaY>=0))return;I.preventDefault(),A.scrollTop+=I.deltaY/nw(),A.scrollLeft+=I.deltaX/nw(),$(),w=!0,ka(()=>{w=!1})}}}function T(I){if(n||R(I.target)||I.contentRect.height===a.value)return;a.value=I.contentRect.height;const{onResize:z}=e;z!==void 0&&z(I)}function $(){const{value:I}=i;I!=null&&(f.value=I.scrollTop,d=I.scrollLeft)}function R(I){let z=I;for(;z!==null;){if(z.style.display==="none")return!0;z=z.parentElement}return!1}return{listHeight:a,listStyle:{overflow:"auto"},keyToIndex:o,itemsStyle:P(()=>{const{itemResizable:I}=e,z=gn(s.value.sum());return c.value,[e.itemsStyle,{boxSizing:"content-box",height:I?"":z,minHeight:I?z:"",paddingTop:gn(e.paddingTop),paddingBottom:gn(e.paddingBottom)}]}),visibleItemsStyle:P(()=>(c.value,{transform:`translateY(${gn(s.value.sum(h.value))})`})),viewportItems:v,listElRef:i,itemsElRef:D(null),scrollTo:p,handleListResize:T,handleListScroll:k,handleListWheel:_,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return u(Dr,{onResize:this.handleListResize},{default:()=>{var o,i;return u("div",Wn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?u("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[u(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(a=>{const l=a[t],s=n.get(l),c=this.$slots.default({item:a,index:s})[0];return e?u(Dr,{key:l,onResize:d=>this.handleItemResize(l,d)},{default:()=>c}):(c.key=l,c)})})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),VA=po(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[po("&::-webkit-scrollbar",{width:0,height:0})]),UA=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=D(null);function t(o){!(o.currentTarget.offsetWidthf){const{updateCounter:w}=e;for(let k=y;k>=0;--k){const _=m-1-k;w!==void 0?w(_):c.textContent=`${_}`;const T=c.offsetWidth;if(p-=h[k],p+T<=f||k===0){b=!0,y=k-1,v&&(y===-1?(v.style.maxWidth=`${f-T}px`,v.style.boxSizing="border-box"):v.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;b?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Yi,""))}const i=Di();return WA.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rh,ssr:i}),Mt(o),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return _t(this.sync),u("div",{class:"v-overflow",ref:"selfRef"},[Jm(e,"default"),e.counter?e.counter():u("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function tR(e){return e instanceof HTMLElement}function nR(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(tR(n)&&(oR(n)||rR(n)))return!0}return!1}function oR(e){if(!KA(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function KA(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Wl=[];const Ob=J({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Cr(),n=D(null),r=D(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return Wl[Wl.length-1]===t}function s(m){var g;m.code==="Escape"&&l()&&((g=e.onEsc)===null||g===void 0||g.call(e,m))}Mt(()=>{rt(()=>e.active,m=>{m?(f(),St("keydown",document,s)):(xt("keydown",document,s),o&&h())},{immediate:!0})}),Dt(()=>{xt("keydown",document,s),o&&h()});function c(m){if(!i&&l()){const g=d();if(g===null||g.contains(ur(m)))return;v("first")}}function d(){const m=n.value;if(m===null)return null;let g=m;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function f(){var m;if(!e.disabled){if(Wl.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?v("first"):(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function h(){var m;if(e.disabled||(document.removeEventListener("focus",c,!0),Wl=Wl.filter(y=>y!==t),l()))return;const{finalFocusTo:g}=e;g!==void 0?(m=Vx(g))===null||m===void 0||m.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function v(m){if(!!l()&&e.active){const g=n.value,y=r.value;if(g!==null&&y!==null){const C=d();if(C==null||C===y){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const x=m==="first"?nR(C):rR(C);i=!1,x||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function p(m){if(i)return;const g=d();g!==null&&(m.relatedTarget!==null&&g.contains(m.relatedTarget)?v("last"):v("first"))}function b(m){i||(m.relatedTarget!==null&&m.relatedTarget===n.value?v("last"):v("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return u($t,null,[u("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),u("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function oh(e,t){t&&(Mt(()=>{const{value:n}=e;n&&Iu.registerHandler(n,t)}),Dt(()=>{const{value:n}=e;n&&Iu.unregisterHandler(n)}))}let Qa=0,ow="",iw="",aw="",lw="";const Sp=D("0px");function iR(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=ow,t.style.overflow=iw,t.style.overflowX=aw,t.style.overflowY=lw,Sp.value="0px"};Mt(()=>{n=rt(e,i=>{if(i){if(!Qa){const a=window.innerWidth-t.offsetWidth;a>0&&(ow=t.style.marginRight,t.style.marginRight=`${a}px`,Sp.value=`${a}px`),iw=t.style.overflow,aw=t.style.overflowX,lw=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Qa++}else Qa--,Qa||o(),r=!1},{immediate:!0})}),Dt(()=>{n==null||n(),r&&(Qa--,Qa||o(),r=!1)})}const zb=D(!1),sw=()=>{zb.value=!0},cw=()=>{zb.value=!1};let Kl=0;const aR=()=>(rr&&(Wo(()=>{Kl||(window.addEventListener("compositionstart",sw),window.addEventListener("compositionend",cw)),Kl++}),Dt(()=>{Kl<=1?(window.removeEventListener("compositionstart",sw),window.removeEventListener("compositionend",cw),Kl=0):Kl--})),zb);function Mb(e){const t={isDeactivated:!1};let n=!1;return Gm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Zs(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function dw(e){return e.nodeName==="#document"}const Fu="n-form-item";function xn(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Le(Fu,null);nt(Fu,null);const i=P(n?()=>n(o):()=>{const{size:s}=e;if(s)return s;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=P(r?()=>r(o):()=>{const{disabled:s}=e;return s!==void 0?s:o?o.disabled.value:!1}),l=P(()=>{const{status:s}=e;return s||(o==null?void 0:o.mergedValidationStatus.value)});return Dt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var qA=typeof global=="object"&&global&&global.Object===Object&&global;const lR=qA;var YA=typeof self=="object"&&self&&self.Object===Object&&self,XA=lR||YA||Function("return this")();const jr=XA;var GA=jr.Symbol;const Pi=GA;var sR=Object.prototype,ZA=sR.hasOwnProperty,QA=sR.toString,ql=Pi?Pi.toStringTag:void 0;function JA(e){var t=ZA.call(e,ql),n=e[ql];try{e[ql]=void 0;var r=!0}catch{}var o=QA.call(e);return r&&(t?e[ql]=n:delete e[ql]),o}var e6=Object.prototype,t6=e6.toString;function n6(e){return t6.call(e)}var r6="[object Null]",o6="[object Undefined]",uw=Pi?Pi.toStringTag:void 0;function Ba(e){return e==null?e===void 0?o6:r6:uw&&uw in Object(e)?JA(e):n6(e)}function $i(e){return e!=null&&typeof e=="object"}var i6="[object Symbol]";function ih(e){return typeof e=="symbol"||$i(e)&&Ba(e)==i6}function cR(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=H6)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function W6(e){return function(){return e}}var K6=function(){try{var e=La(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Au=K6;var q6=Au?function(e,t){return Au(e,"toString",{configurable:!0,enumerable:!1,value:W6(t),writable:!0})}:Ib;const Y6=q6;var X6=U6(Y6);const G6=X6;var Z6=9007199254740991,Q6=/^(?:0|[1-9]\d*)$/;function Db(e,t){var n=typeof e;return t=t==null?Z6:t,!!t&&(n=="number"||n!="symbol"&&Q6.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=iB}function zl(e){return e!=null&&Bb(e.length)&&!Fb(e)}function aB(e,t,n){if(!Br(n))return!1;var r=typeof t;return(r=="number"?zl(n)&&Db(t,n.length):r=="string"&&t in n)?sc(n[t],e):!1}function lB(e){return oB(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&aB(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function _E(e,t){var n=this.__data__,r=ah(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:YE(e,t,n)}var GE="\\ud800-\\udfff",ZE="\\u0300-\\u036f",QE="\\ufe20-\\ufe2f",JE="\\u20d0-\\u20ff",eL=ZE+QE+JE,tL="\\ufe0e\\ufe0f",nL="\\u200d",rL=RegExp("["+nL+GE+eL+tL+"]");function wR(e){return rL.test(e)}function oL(e){return e.split("")}var CR="\\ud800-\\udfff",iL="\\u0300-\\u036f",aL="\\ufe20-\\ufe2f",lL="\\u20d0-\\u20ff",sL=iL+aL+lL,cL="\\ufe0e\\ufe0f",dL="["+CR+"]",kp="["+sL+"]",Rp="\\ud83c[\\udffb-\\udfff]",uL="(?:"+kp+"|"+Rp+")",SR="[^"+CR+"]",_R="(?:\\ud83c[\\udde6-\\uddff]){2}",kR="[\\ud800-\\udbff][\\udc00-\\udfff]",fL="\\u200d",RR=uL+"?",PR="["+cL+"]?",hL="(?:"+fL+"(?:"+[SR,_R,kR].join("|")+")"+PR+RR+")*",vL=PR+RR+hL,pL="(?:"+[SR+kp+"?",kp,_R,kR,dL].join("|")+")",gL=RegExp(Rp+"(?="+Rp+")|"+pL+vL,"g");function mL(e){return e.match(gL)||[]}function bL(e){return wR(e)?mL(e):oL(e)}function yL(e){return function(t){t=Oa(t);var n=wR(t)?bL(t):void 0,r=n?n[0]:t.charAt(0),o=n?XE(n,1).join(""):t.slice(1);return r[e]()+o}}var xL=yL("toUpperCase");const $R=xL;function wL(e){return $R(Oa(e).toLowerCase())}function CL(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++ol))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,v=n&X8?new Nu:void 0;for(i.set(e,t),i.set(t,e);++f=t||_<0||f&&T>=i}function g(){var k=dv();if(m(k))return y(k);l=setTimeout(g,b(k))}function y(k){return l=void 0,h&&r?v(k):(r=o=void 0,a)}function C(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function x(){return l===void 0?a:y(dv())}function w(){var k=dv(),_=m(k);if(r=arguments,o=this,s=k,_){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(g,t),v(s)}return l===void 0&&(l=setTimeout(g,t)),a}return w.cancel=C,w.flush=x,w}function Op(e,t,n){(n!==void 0&&!sc(e[t],n)||n===void 0&&!(t in e))&&Ab(e,t,n)}function WN(e){return $i(e)&&zl(e)}function zp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function KN(e){return nB(e,gR(e))}function qN(e,t,n,r,o,i,a){var l=zp(e,n),s=zp(t,n),c=a.get(s);if(c){Op(e,n,c);return}var d=i?i(l,s,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Ar(s),v=!h&&Eu(s),p=!h&&!v&&Lb(s);d=s,h||v||p?Ar(l)?d=l:WN(l)?d=N6(l):v?(f=!1,d=C8(s,!0)):p?(f=!1,d=H8(s,!0)):d=[]:qE(s)||Bu(s)?(d=l,Bu(l)?d=KN(l):(!Br(l)||Fb(l))&&(d=j8(s))):f=!1}f&&(a.set(s,d),o(d,s,r,i,a),a.delete(s)),Op(e,n,d)}function YR(e,t,n,r,o){e!==t&&qR(t,function(i,a){if(o||(o=new bo),Br(i))qN(e,t,a,n,YR,r,o);else{var l=r?r(zp(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Op(e,a,l)}},gR)}function YN(e,t){var n=-1,r=zl(e)?Array(e.length):[];return LN(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function XN(e,t){var n=Ar(e)?cR:YN;return n(e,IN(t))}var GN=jR(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const XR=GN;var ZN=lB(function(e,t,n){YR(e,t,n)});const cl=ZN;var QN=v8("round");const JN=QN;var e7="Expected a function";function xs(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(e7);return Br(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),UN(e,t,{leading:r,maxWait:t,trailing:o})}const _r={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:t7,fontFamily:n7,lineHeight:r7}=_r,GR=O("body",` - margin: 0; - font-size: ${t7}; - font-family: ${n7}; - line-height: ${r7}; - -webkit-text-size-adjust: 100%; - -webkit-tap-highlight-color: transparent; -`,[O("input",` - font-family: inherit; - font-size: inherit; - `)]),Er="n-config-provider",wl="naive-ui-style";function Se(e,t,n,r,o,i){const a=Di(),l=Le(Er,null);if(n){const c=()=>{const d=i==null?void 0:i.value;n.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:wl,ssr:a}),l!=null&&l.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:a})};a?c():Wo(c)}return P(()=>{var c;const{theme:{common:d,self:f,peers:h={}}={},themeOverrides:v={},builtinThemeOverrides:p={}}=o,{common:b,peers:m}=v,{common:g=void 0,[e]:{common:y=void 0,self:C=void 0,peers:x={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:w=void 0,[e]:k={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:_,peers:T={}}=k,$=cl({},d||y||g||r.common,w,_,b),R=cl((c=f||C||r.self)===null||c===void 0?void 0:c($),p,k,v);return{common:$,self:R,peers:cl({},r.peers,x,h),peerOverrides:cl({},p.peers,T,m)}})}Se.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ZR="n";function He(e={},t={defaultBordered:!0}){const n=Le(Er,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:P(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:P(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ZR),namespaceRef:P(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const o7={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},i7=o7;function uv(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mt(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Pd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(n){return typeof n}:Pd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pd(e)}function yt(e){mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Pd(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Gt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var a7={};function Na(){return a7}function za(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=yt(e),v=h.getUTCDay(),p=(v1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?s7(l,function(f){return f.test(a)}):l7(l,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function l7(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function s7(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(o.length);return{value:a,rest:l}}}var d7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},u7=function(t,n,r){var o,i=d7[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const f7=u7;var h7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},v7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g7={date:uv({formats:h7,defaultWidth:"full"}),time:uv({formats:v7,defaultWidth:"full"}),dateTime:uv({formats:p7,defaultWidth:"full"})};const m7=g7;var b7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},y7=function(t,n,r,o){return b7[t]};const x7=y7;var w7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},C7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},S7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},P7=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$7={ordinalNumber:P7,era:Yl({values:w7,defaultWidth:"wide"}),quarter:Yl({values:C7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yl({values:S7,defaultWidth:"wide"}),day:Yl({values:_7,defaultWidth:"wide"}),dayPeriod:Yl({values:k7,defaultWidth:"wide",formattingValues:R7,defaultFormattingWidth:"wide"})};const T7=$7;var O7=/^(\d+)(th|st|nd|rd)?/i,z7=/\d+/i,M7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},I7={any:[/^b/i,/^(a|c)/i]},F7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},D7={any:[/1/i,/2/i,/3/i,/4/i]},A7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},B7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},E7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},L7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},N7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},H7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},j7={ordinalNumber:c7({matchPattern:O7,parsePattern:z7,valueCallback:function(t){return parseInt(t,10)}}),era:Xl({matchPatterns:M7,defaultMatchWidth:"wide",parsePatterns:I7,defaultParseWidth:"any"}),quarter:Xl({matchPatterns:F7,defaultMatchWidth:"wide",parsePatterns:D7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Xl({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:B7,defaultParseWidth:"any"}),day:Xl({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:L7,defaultParseWidth:"any"}),dayPeriod:Xl({matchPatterns:N7,defaultMatchWidth:"any",parsePatterns:H7,defaultParseWidth:"any"})};const V7=j7;var U7={code:"en-US",formatDistance:f7,formatLong:m7,formatRelative:x7,localize:T7,match:V7,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ch=U7,W7={name:"en-US",locale:ch},K7=W7;function Qc(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function On(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function q7(e,t){mt(2,arguments);var n=yt(e).getTime(),r=Gt(t);return new Date(n+r)}function Hu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Cl(e){mt(1,arguments);var t=yt(e);return t.setHours(0,0,0,0),t}function Y7(e,t){mt(2,arguments);var n=Gt(t),r=n*3;return On(e,r)}function Mp(e,t){mt(2,arguments);var n=Gt(t);return On(e,n*12)}function X7(e,t){mt(2,arguments);var n=yt(e),r=yt(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var G7=6e4,Z7=36e5,Q7=1e3;function J7(e,t){mt(2,arguments);var n=Cl(e),r=Cl(t);return n.getTime()===r.getTime()}function $d(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$d=function(n){return typeof n}:$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$d(e)}function eH(e){return mt(1,arguments),e instanceof Date||$d(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zr(e){if(mt(1,arguments),!eH(e)&&typeof e!="number")return!1;var t=yt(e);return!isNaN(Number(t))}function tH(e){mt(1,arguments);var t=yt(e),n=Math.floor(t.getMonth()/3)+1;return n}function nH(e){mt(1,arguments);var t=yt(e);return t.setSeconds(0,0),t}function Vs(e){mt(1,arguments);var t=yt(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Tr(e){mt(1,arguments);var t=yt(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Ub(e){mt(1,arguments);var t=yt(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function QR(e,t){mt(2,arguments);var n=Gt(t);return q7(e,-n)}var rH=864e5;function oH(e){mt(1,arguments);var t=yt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/rH)+1}function Sl(e){mt(1,arguments);var t=1,n=yt(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function iH(e){mt(1,arguments);var t=JR(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Sl(n);return r}var aH=6048e5;function e2(e){mt(1,arguments);var t=yt(e),n=Sl(t).getTime()-iH(t).getTime();return Math.round(n/aH)+1}function Wb(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=yt(e),f=d.getUTCFullYear(),h=Na(),v=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(s=h.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(f+1,0,v),p.setUTCHours(0,0,0,0);var b=za(p,t),m=new Date(0);m.setUTCFullYear(f,0,v),m.setUTCHours(0,0,0,0);var g=za(m,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=g.getTime()?f:f-1}function lH(e,t){var n,r,o,i,a,l,s,c;mt(1,arguments);var d=Na(),f=Gt((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(s=d.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=Wb(e,t),v=new Date(0);v.setUTCFullYear(h,0,f),v.setUTCHours(0,0,0,0);var p=za(v,t);return p}var sH=6048e5;function t2(e,t){mt(1,arguments);var n=yt(e),r=za(n,t).getTime()-lH(n,t).getTime();return Math.round(r/sH)+1}function Qt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Qt(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Qt(r+1,2)},d:function(t,n){return Qt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Qt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Qt(t.getUTCHours(),n.length)},m:function(t,n){return Qt(t.getUTCMinutes(),n.length)},s:function(t,n){return Qt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Qt(i,n.length)}};const oi=cH;var Ja={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dH={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return oi.y(t,n)},Y:function(t,n,r,o){var i=Wb(t,o),a=i>0?i:1-i;if(n==="YY"){var l=a%100;return Qt(l,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qt(a,n.length)},R:function(t,n){var r=JR(t);return Qt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Qt(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Qt(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Qt(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return oi.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Qt(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=t2(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Qt(i,n.length)},I:function(t,n,r){var o=e2(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Qt(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):oi.d(t,n)},D:function(t,n,r){var o=oH(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Qt(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qt(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Qt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Ja.noon:o===0?i=Ja.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Ja.evening:o>=12?i=Ja.afternoon:o>=4?i=Ja.morning:i=Ja.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return oi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):oi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Qt(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):oi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):oi.s(t,n)},S:function(t,n){return oi.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ww(a);case"XXXX":case"XX":return ra(a);case"XXXXX":case"XXX":default:return ra(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return Ww(a);case"xxxx":case"xx":return ra(a);case"xxxxx":case"xxx":default:return ra(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Uw(a,":");case"OOOO":default:return"GMT"+ra(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Uw(a,":");case"zzzz":default:return"GMT"+ra(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Qt(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Qt(a,n.length)}};function Uw(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Qt(i,2)}function Ww(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Qt(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Qt(Math.floor(o/60),2),a=Qt(o%60,2);return r+i+n+a}const uH=dH;var Kw=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n2=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},fH=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Kw(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Kw(o,n)).replace("{{time}}",n2(i,n))},hH={p:n2,P:fH};const Ip=hH;var vH=["D","DD"],pH=["YY","YYYY"];function r2(e){return vH.indexOf(e)!==-1}function o2(e){return pH.indexOf(e)!==-1}function ju(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bH=/^'([^]*?)'?$/,yH=/''/g,xH=/[a-zA-Z]/;function tn(e,t,n){var r,o,i,a,l,s,c,d,f,h,v,p,b,m,g,y,C,x;mt(2,arguments);var w=String(t),k=Na(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:ch,T=Gt((i=(a=(l=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(c=n.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=Gt((v=(p=(b=(m=n==null?void 0:n.weekStartsOn)!==null&&m!==void 0?m:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&p!==void 0?p:(C=k.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&v!==void 0?v:0);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var R=yt(e);if(!zr(R))throw new RangeError("Invalid time value");var I=Hu(R),z=QR(R,I),A={firstWeekContainsDate:T,weekStartsOn:$,locale:_,_originalDate:R},L=w.match(mH).map(function(j){var E=j[0];if(E==="p"||E==="P"){var U=Ip[E];return U(j,_.formatLong)}return j}).join("").match(gH).map(function(j){if(j==="''")return"'";var E=j[0];if(E==="'")return wH(j);var U=uH[E];if(U)return!(n!=null&&n.useAdditionalWeekYearTokens)&&o2(j)&&ju(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&r2(j)&&ju(j,t,String(e)),U(z,j,_.localize,A);if(E.match(xH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return j}).join("");return L}function wH(e){var t=e.match(bH);return t?t[1].replace(yH,"'"):e}function Kb(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function CH(e){return Kb({},e)}var qw=1e3*60,Vu=60*24,Yw=Vu*30,Xw=Vu*365;function SH(e,t,n){var r,o,i;mt(2,arguments);var a=Na(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:ch;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var s=X7(e,t);if(isNaN(s))throw new RangeError("Invalid time value");var c=Kb(CH(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),d,f;s>0?(d=yt(t),f=yt(e)):(d=yt(e),f=yt(t));var h=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),v;if(h==="floor")v=Math.floor;else if(h==="ceil")v=Math.ceil;else if(h==="round")v=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var p=f.getTime()-d.getTime(),b=p/qw,m=Hu(f)-Hu(d),g=(p-m)/qw,y=n==null?void 0:n.unit,C;if(y?C=String(y):b<1?C="second":b<60?C="minute":b"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ku(e)}function qb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zw(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e){return qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qu(e)}function e1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LH=function(e){DH(n,e);var t=AH(n);function n(){var r;IH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function d2(e){return e%400===0||e%4===0&&e%100!==0}function zd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zd=function(n){return typeof n}:zd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zd(e)}function NH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xu(e)}function n1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KH=function(e){jH(n,e);var t=VH(n);function n(){var r;NH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a){var l=o.getUTCFullYear();if(a.isTwoDigitYear){var s=c2(a.year,l);return o.setUTCFullYear(s,0,1),o.setUTCHours(0,0,0,0),o}var c=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Md(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Md=function(n){return typeof n}:Md=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Md(e)}function qH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Gu(e)}function o1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JH=function(e){XH(n,e);var t=GH(n);function n(){var r;qH(this,n);for(var o=arguments.length,i=new Array(o),a=0;a0}},{key:"set",value:function(o,i,a,l){var s=Wb(o,l);if(a.isTwoDigitYear){var c=c2(a.year,s);return o.setUTCFullYear(c,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}var d=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(d,0,l.firstWeekContainsDate),o.setUTCHours(0,0,0,0),za(o,l)}}]),n}(Yt);function Id(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(n){return typeof n}:Id=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Id(e)}function e9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Zu(e)}function a1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a9=function(e){n9(n,e);var t=r9(n);function n(){var r;e9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qu(e)}function s1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h9=function(e){c9(n,e);var t=d9(n);function n(){var r;l9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ju(e)}function d1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x9=function(e){g9(n,e);var t=m9(n);function n(){var r;v9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ad(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ad=function(n){return typeof n}:Ad=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ad(e)}function w9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ef(e){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ef(e)}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P9=function(e){S9(n,e);var t=_9(n);function n(){var r;w9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Bd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bd=function(n){return typeof n}:Bd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bd(e)}function $9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function v1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F9=function(e){O9(n,e);var t=z9(n);function n(){var r;$9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Ed(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ed=function(n){return typeof n}:Ed=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ed(e)}function D9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H9=function(e){B9(n,e);var t=E9(n);function n(){var r;D9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function j9(e,t,n){mt(2,arguments);var r=yt(e),o=Gt(t),i=t2(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}function Ld(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ld=function(n){return typeof n}:Ld=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ld(e)}function V9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X9=function(e){W9(n,e);var t=K9(n);function n(){var r;V9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a,l){return za(j9(o,a,l),l)}}]),n}(Yt);function G9(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=e2(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}function Nd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nd=function(n){return typeof n}:Nd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nd(e)}function Z9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function x1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rj=function(e){J9(n,e);var t=ej(n);function n(){var r;Z9(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=53}},{key:"set",value:function(o,i,a){return Sl(G9(o,a))}}]),n}(Yt);function Hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hd=function(n){return typeof n}:Hd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hd(e)}function oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},af(e)}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dj=[31,28,31,30,31,30,31,31,30,31,30,31],uj=[31,29,31,30,31,30,31,31,30,31,30,31],fj=function(e){aj(n,e);var t=lj(n);function n(){var r;oj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=uj[s]:i>=1&&i<=dj[s]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Vd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vd=function(n){return typeof n}:Vd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vd(e)}function hj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lf(e)}function hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yj=function(e){pj(n,e);var t=gj(n);function n(){var r;hj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Gb(e,t,n){var r,o,i,a,l,s,c,d;mt(2,arguments);var f=Na(),h=Gt((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(l=n.locale)===null||l===void 0||(s=l.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=yt(e),p=Gt(t),b=v.getUTCDay(),m=p%7,g=(m+7)%7,y=(g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sf(e){return sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sf(e)}function _1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rj=function(e){Cj(n,e);var t=Sj(n);function n(){var r;xj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Kd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kd=function(n){return typeof n}:Kd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kd(e)}function Pj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cf(e)}function R1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ij=function(e){Tj(n,e);var t=Oj(n);function n(){var r;Pj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function qd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qd=function(n){return typeof n}:qd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qd(e)}function Fj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},df(e)}function $1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nj=function(e){Aj(n,e);var t=Bj(n);function n(){var r;Fj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=6}},{key:"set",value:function(o,i,a,l){return o=Gb(o,a,l),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Hj(e,t){mt(2,arguments);var n=Gt(t);n%7===0&&(n=n-7);var r=1,o=yt(e),i=o.getUTCDay(),a=n%7,l=(a+7)%7,s=(l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj=function(e){Uj(n,e);var t=Wj(n);function n(){var r;jj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=7}},{key:"set",value:function(o,i,a){return o=Hj(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(Yt);function Xd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xd=function(n){return typeof n}:Xd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Xd(e)}function Xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}function M1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tV=function(e){Zj(n,e);var t=Qj(n);function n(){var r;Xj(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sV=function(e){oV(n,e);var t=iV(n);function n(){var r;nV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function A1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pV=function(e){uV(n,e);var t=fV(n);function n(){var r;cV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pf(e)}function E1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CV=function(e){bV(n,e);var t=yV(n);function n(){var r;gV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=12}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):!l&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function Jd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jd=function(n){return typeof n}:Jd=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Jd(e)}function SV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gf(e)}function N1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TV=function(e){kV(n,e);var t=RV(n);function n(){var r;SV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function eu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eu=function(n){return typeof n}:eu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eu(e)}function OV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function j1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AV=function(e){MV(n,e);var t=IV(n);function n(){var r;OV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=11}},{key:"set",value:function(o,i,a){var l=o.getUTCHours()>=12;return l&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(Yt);function tu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(n){return typeof n}:tu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tu(e)}function BV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bf(e){return bf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bf(e)}function U1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VV=function(e){LV(n,e);var t=NV(n);function n(){var r;BV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=1&&i<=24}},{key:"set",value:function(o,i,a){var l=a<=24?a%24:a;return o.setUTCHours(l,0,0,0),o}}]),n}(Yt);function nu(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nu=function(n){return typeof n}:nu=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nu(e)}function UV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GV=function(e){KV(n,e);var t=qV(n);function n(){var r;UV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(Yt);function ru(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ru=function(n){return typeof n}:ru=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ru(e)}function ZV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rU=function(e){JV(n,e);var t=eU(n);function n(){var r;ZV(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(Yt);function ou(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ou=function(n){return typeof n}:ou=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ou(e)}function oU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X1(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function G1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dU=function(e){aU(n,e);var t=lU(n);function n(){var r;oU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function Q1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e){hU(n,e);var t=vU(n);function n(){var r;uU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}function eC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _U=function(e){xU(n,e);var t=wU(n);function n(){var r;bU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function nC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zU=function(e){PU(n,e);var t=$U(n);function n(){var r;kU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EU=function(e){FU(n,e);var t=DU(n);function n(){var r;MU(this,n);for(var o=arguments.length,i=new Array(o),a=0;a"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=NU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function NU(e,t){if(!!e){if(typeof e=="string")return aC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aC(e,t)}}function aC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Gt((p=(b=(m=(g=r==null?void 0:r.weekStartsOn)!==null&&g!==void 0?g:r==null||(y=r.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&b!==void 0?b:(x=T.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(_==="")return k===""?yt(n):new Date(NaN);var z={firstWeekContainsDate:R,weekStartsOn:I,locale:$},A=[new OH],L=_.match(jU).map(function(Oe){var ke=Oe[0];if(ke in Ip){var pe=Ip[ke];return pe(Oe,$.formatLong)}return Oe}).join("").match(HU),j=[],E=iC(L),U;try{var K=function(){var ke=U.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&o2(ke)&&ju(ke,_,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&r2(ke)&&ju(ke,_,e);var pe=ke[0],Me=LU[pe];if(Me){var H=Me.incompatibleTokens;if(Array.isArray(H)){var W=j.find(function(ce){return H.includes(ce.token)||ce.token===pe});if(W)throw new RangeError("The format string mustn't contain `".concat(W.fullToken,"` and `").concat(ke,"` at the same time"))}else if(Me.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(ke,"` and any other token at the same time"));j.push({token:pe,fullToken:ke});var Y=Me.run(k,ke,$.match,z);if(!Y)return{v:new Date(NaN)};A.push(Y.setter),k=Y.rest}else{if(pe.match(KU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+pe+"`");if(ke==="''"?ke="'":pe==="'"&&(ke=YU(ke)),k.indexOf(ke)===0)k=k.slice(ke.length);else return{v:new Date(NaN)}}};for(E.s();!(U=E.n()).done;){var Q=K();if(cu(Q)==="object")return Q.v}}catch(Oe){E.e(Oe)}finally{E.f()}if(k.length>0&&WU.test(k))return new Date(NaN);var V=A.map(function(Oe){return Oe.priority}).sort(function(Oe,ke){return ke-Oe}).filter(function(Oe,ke,pe){return pe.indexOf(Oe)===ke}).map(function(Oe){return A.filter(function(ke){return ke.priority===Oe}).sort(function(ke,pe){return pe.subPriority-ke.subPriority})}).map(function(Oe){return Oe[0]}),re=yt(n);if(isNaN(re.getTime()))return new Date(NaN);var ee=QR(re,Hu(re)),ue={},de=iC(V),Ce;try{for(de.s();!(Ce=de.n()).done;){var we=Ce.value;if(!we.validate(ee,z))return new Date(NaN);var me=we.set(ee,ue,z);Array.isArray(me)?(ee=me[0],Kb(ue,me[1])):ee=me}}catch(Oe){de.e(Oe)}finally{de.f()}return ee}function YU(e){return e.match(VU)[1].replace(UU,"'")}function XU(e){mt(1,arguments);var t=yt(e);return t.setMinutes(0,0,0),t}function dh(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function u2(e,t){mt(2,arguments);var n=Vs(e),r=Vs(t);return n.getTime()===r.getTime()}function Zb(e){mt(1,arguments);var t=yt(e);return t.setMilliseconds(0),t}function f2(e,t){mt(2,arguments);var n=yt(e),r=yt(t);return n.getFullYear()===r.getFullYear()}function Qb(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var l=kH(a);return n.setMonth(r,Math.min(i,l)),n}function du(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?du=function(n){return typeof n}:du=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(e)}function jn(e,t){if(mt(2,arguments),du(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=yt(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Qb(n,t.month)),t.date!=null&&n.setDate(Gt(t.date)),t.hours!=null&&n.setHours(Gt(t.hours)),t.minutes!=null&&n.setMinutes(Gt(t.minutes)),t.seconds!=null&&n.setSeconds(Gt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(Gt(t.milliseconds)),n)}function Xi(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setHours(r),n}function vv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setMinutes(r),n}function GU(e,t){mt(2,arguments);var n=yt(e),r=Gt(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return Qb(n,n.getMonth()+i*3)}function pv(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return n.setSeconds(r),n}function lC(e,t){mt(2,arguments);var n=yt(e),r=Gt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function yn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Le(Er,null)||{},r=P(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:i7[e]});return{dateLocaleRef:P(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:K7}),localeRef:r}}function Vr(e,t,n){if(!t)return;const r=Di(),o=Le(Er,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||GR.mount({id:"n-global",head:!0,anchorMetaName:wl,ssr:r})};r?i():Wo(i)}function h2(e,t){const n=Le(Er,null);return P(()=>e.hljs||(n==null?void 0:n.mergedHljsRef.value))}function Je(e,t,n,r){var o;n||Dn("useThemeClass","cssVarsRef is not passed");const i=(o=Le(Er,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=D(""),l=Di();let s;const c=`__${e}`,d=()=>{let f=c;const h=t?t.value:void 0,v=i==null?void 0:i.value;v&&(f+="-"+v),h&&(f+="-"+h);const{themeOverrides:p,builtinThemeOverrides:b}=r;p&&(f+="-"+Bs(JSON.stringify(p))),b&&(f+="-"+Bs(JSON.stringify(b))),a.value=f,s=()=>{const m=n.value;let g="";for(const y in m)g+=`${y}: ${m[y]};`;O(`.${f}`,g).mount({id:f,ssr:l}),s=void 0}};return Ft(()=>{d()}),{themeClass:a,onRender:()=>{s==null||s()}}}function Zt(e,t,n){if(!t)return;const r=Di(),o=P(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(!!l)return l}),i=()=>{Ft(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(OD(l,r))return;const{value:s}=o;!s||s.style.mount({id:l,head:!0,anchorMetaName:wl,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():Wo(i),o}function ZU(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function QU(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const JU=S("affix",[F("affixed",{position:"fixed"},[F("absolute-positioned",{position:"absolute"})])]),uh={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fix"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},eW=Nn(uh),v2=J({name:"Affix",props:uh,setup(e){const{mergedClsPrefixRef:t}=He(e);Vr("-affix",JU,t);let n=null;const r=D(!1),o=D(!1),i=D(null),a=D(null),l=P(()=>o.value||r.value),s=P(()=>{var m,g;return(g=(m=e.triggerTop)!==null&&m!==void 0?m:e.offsetTop)!==null&&g!==void 0?g:e.top}),c=P(()=>{var m,g;return(g=(m=e.top)!==null&&m!==void 0?m:e.triggerTop)!==null&&g!==void 0?g:e.offsetTop}),d=P(()=>{var m,g;return(g=(m=e.bottom)!==null&&m!==void 0?m:e.triggerBottom)!==null&&g!==void 0?g:e.offsetBottom}),f=P(()=>{var m,g;return(g=(m=e.triggerBottom)!==null&&m!==void 0?m:e.offsetBottom)!==null&&g!==void 0?g:e.bottom}),h=D(null),v=()=>{const{target:m,listenTo:g}=e;m?n=m():g?n=yb(g):n=document,n&&(n.addEventListener("scroll",p),p())};function p(){ka(b)}function b(){const{value:m}=h;if(!n||!m)return;const g=ZU(n);if(l.value){gi.value&&(o.value=!1,i.value=null);return}const y=QU(n),C=m.getBoundingClientRect(),x=C.top-y.top,w=y.bottom-C.bottom,k=s.value,_=f.value;k!==void 0&&x<=k?(r.value=!0,a.value=g-(k-x)):(r.value=!1,a.value=null),_!==void 0&&w<=_?(o.value=!0,i.value=g+_-w):(o.value=!1,i.value=null)}return Mt(()=>{v()}),Dt(()=>{!n||n.removeEventListener("scroll",p)}),{selfRef:h,affixed:l,mergedClsPrefix:t,mergedstyle:P(()=>{const m={};return r.value&&s.value!==void 0&&c.value!==void 0&&(m.top=`${c.value}px`),o.value&&f.value!==void 0&&d.value!==void 0&&(m.bottom=`${d.value}px`),m})}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),_l=J({name:"Add",render(){return u("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),p2=J({name:"ArrowDown",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),tW=J({name:"ArrowUp",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Hn(e,t){return J({name:$R(e),setup(){var n;const r=(n=Le(Er,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const nW=Hn("attach",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),Ti=J({name:"Backward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),sC=Hn("date",u("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Jb=J({name:"Checkmark",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),e0=J({name:"ChevronLeft",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ha=J({name:"ChevronRight",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),g2=Hn("close",u("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),m2=J({name:"Eye",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),u("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),rW=J({name:"EyeOff",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),u("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),u("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),u("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),u("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),oW=Hn("trash",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),u("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),iW=Hn("download",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),aW=J({name:"Empty",render(){return u("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),u("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),ja=Hn("error",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Oi=J({name:"FastBackward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),zi=J({name:"FastForward",render(){return u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),lW=J({name:"Filter",render(){return u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),Mi=J({name:"Forward",render(){return u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),Ii=Hn("info",u("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),cC=J({name:"More",render(){return u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),b2=J({name:"Remove",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))}}),y2=J({name:"Search",render(){return u("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},u("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 - c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z - M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 - c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),Va=Hn("success",u("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),sW=J({name:"Switcher",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},u("path",{d:"M12 8l10 8l-10 8z"}))}}),cW=Hn("time",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),u("polyline",{points:"256 128 256 272 352 272",style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),Ai=Hn("warning",u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{"fill-rule":"nonzero"},u("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),dW=Hn("cancel",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),x2=J({name:"ChevronDown",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),uW=Hn("clear",u("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),fW=J({name:"ChevronDownFilled",render(){return u("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),hW=Hn("to",u("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},u("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},u("g",{fill:"currentColor","fill-rule":"nonzero"},u("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),vW=Hn("retry",u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},u("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),u("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),pW=J({name:"ArrowBack",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},u("path",{d:"M0 0h24v24H0V0z",fill:"none"}),u("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),gW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),u("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),mW=Hn("rotateClockwise",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),u("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),bW=Hn("zoomIn",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),u("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),yW=Hn("zoomOut",u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),u("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),xW=J({name:"ResizeSmall",render(){return u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},u("g",{fill:"none"},u("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),ko=J({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=An();return()=>u(It,{name:"icon-switch-transition",appear:n.value},t)}}),Ro=J({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const l=e.group?Gf:It;return u(l,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o},t)}}}),wW=S("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[O("svg",` - height: 1em; - width: 1em; - `)]),st=J({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vr("-base-icon",wW,xe(e,"clsPrefix"))},render(){return u("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),CW=S("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[F("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),O("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),pt("disabled",[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:hover::before",` - background-color: var(--n-close-color-hover); - `),O("&:focus::before",` - background-color: var(--n-close-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `),O("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),F("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),F("round",[O("&::before",` - border-radius: 50%; - `)])]),Go=J({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vr("-base-close",CW,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return u(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},u(st,{clsPrefix:t},{default:()=>u(g2,null)}))}}}),Po=J({props:{onFocus:Function,onBlur:Function},setup(e){return()=>u("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),{cubicBezierEaseInOut:SW}=_r;function kn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${SW} !important`}={}){return[O("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),O("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),O("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const _W=O([O("@keyframes loading-container-rotate",` - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } - `),O("@keyframes loading-layer-rotate",` - 12.5% { - -webkit-transform: rotate(135deg); - transform: rotate(135deg); - } - 25% { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); - } - 37.5% { - -webkit-transform: rotate(405deg); - transform: rotate(405deg); - } - 50% { - -webkit-transform: rotate(540deg); - transform: rotate(540deg); - } - 62.5% { - -webkit-transform: rotate(675deg); - transform: rotate(675deg); - } - 75% { - -webkit-transform: rotate(810deg); - transform: rotate(810deg); - } - 87.5% { - -webkit-transform: rotate(945deg); - transform: rotate(945deg); - } - 100% { - -webkit-transform: rotate(1080deg); - transform: rotate(1080deg); - } - `),O("@keyframes loading-left-spin",` - from { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - 50% { - -webkit-transform: rotate(130deg); - transform: rotate(130deg); - } - to { - -webkit-transform: rotate(265deg); - transform: rotate(265deg); - } - `),O("@keyframes loading-right-spin",` - from { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - 50% { - -webkit-transform: rotate(-130deg); - transform: rotate(-130deg); - } - to { - -webkit-transform: rotate(-265deg); - transform: rotate(-265deg); - } - `),S("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[M("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[kn()]),M("container",` - display: inline-flex; - position: relative; - direction: ltr; - line-height: 0; - animation: loading-container-rotate 1568.2352941176ms linear infinite; - font-size: 0; - letter-spacing: 0; - white-space: nowrap; - opacity: 1; - width: 100%; - height: 100%; - `,[M("svg",` - stroke: var(--n-text-color); - fill: transparent; - position: absolute; - height: 100%; - overflow: hidden; - `),M("container-layer",` - position: absolute; - width: 100%; - height: 100%; - animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - `,[M("container-layer-left",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - width: 200%; - `)]),M("container-layer-patch",` - position: absolute; - top: 0; - left: 47.5%; - box-sizing: border-box; - width: 5%; - height: 100%; - overflow: hidden; - `,[M("svg",` - left: -900%; - width: 2000%; - transform: rotate(180deg); - `)]),M("container-layer-right",` - display: inline-flex; - position: relative; - width: 50%; - height: 100%; - overflow: hidden; - `,[M("svg",` - animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; - left: -100%; - width: 200%; - `)])])]),M("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),kW={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},eo=J({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},kW),setup(e){Vr("-base-loading",_W,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return u("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},u(ko,null,{default:()=>this.show?u("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},u("div",{class:`${e}-base-loading__container`},u("div",{class:`${e}-base-loading__container-layer`},u("div",{class:`${e}-base-loading__container-layer-left`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-patch`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),u("div",{class:`${e}-base-loading__container-layer-right`},u("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},u("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):u("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function dC(e){return Array.isArray(e)?e:[e]}const Vg={STOP:"STOP"};function w2(e,t){const n=t(e);e.children!==void 0&&n!==Vg.STOP&&e.children.forEach(r=>w2(r,t))}function RW(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function PW(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function $W(e){return e.children}function TW(e){return e.key}function OW(){return!1}function zW(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function MW(e){return e.disabled===!0}function IW(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function gv(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function mv(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function FW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function DW(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function AW(e){return(e==null?void 0:e.type)==="group"}function C2(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class S2 extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function BW(e,t,n,r){return Rf(t.concat(e),n,r,!1)}function EW(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function LW(e,t,n,r){const o=Rf(t,n,r,!1),i=Rf(e,n,r,!0),a=EW(e,n),l=[];return o.forEach(s=>{(i.has(s)||a.has(s))&&l.push(s)}),l.forEach(s=>o.delete(s)),o}function bv(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:s,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:FW(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:DW(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let f;o!==void 0?f=LW(o,n,t,c):r!==void 0?f=BW(r,n,t,c):f=Rf(n,t,c,!1);const h=s==="parent",v=s==="child"||l,p=f,b=new Set,m=Math.max.apply(null,Array.from(d.keys()));for(let g=m;g>=0;g-=1){const y=g===0,C=d.get(g);for(const x of C){if(x.isLeaf)continue;const{key:w,shallowLoaded:k}=x;if(v&&k&&x.children.forEach(R=>{!R.disabled&&!R.isLeaf&&R.shallowLoaded&&p.has(R.key)&&p.delete(R.key)}),x.disabled||!k)continue;let _=!0,T=!1,$=!0;for(const R of x.children){const I=R.key;if(!R.disabled){if($&&($=!1),p.has(I))T=!0;else if(b.has(I)){T=!0,_=!1;break}else if(_=!1,T)break}}_&&!$?(h&&x.children.forEach(R=>{!R.disabled&&p.has(R.key)&&p.delete(R.key)}),p.add(w)):T&&b.add(w),y&&v&&p.has(w)&&p.delete(w)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(b)}}function Rf(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(s=>{const c=o.get(s);c!==void 0&&w2(c,d=>{if(d.disabled)return Vg.STOP;const{key:f}=d;if(!a.has(f)&&(a.add(f),l.add(f),IW(d.rawNode,i))){if(r)return Vg.STOP;if(!n)throw new S2}})}),l}function NW(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(s=>s.key),l}function HW(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function jW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function uC(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?VW:jW,i={reverse:t==="prev"};let a=!1,l=null;function s(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const d=t0(c,i);d!==null?l=d:s(o(c,n))}else{const d=o(c,!1);if(d!==null)s(d);else{const f=UW(c);f!=null&&f.isGroup?s(o(f,n)):n&&s(o(c,!0))}}}}return s(e),l}function VW(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function UW(e){return e.parent}function t0(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let s=i;s!==a;s+=l){const c=r[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=t0(c,t);if(d!==null)return d}else return c}}return null}const WW={getChild(){return this.ignored?null:t0(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return uC(this,"next",e)},getPrev(e={}){return uC(this,"prev",e)}};function Ug(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function KW(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function _2(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((s,c)=>{var d;const f=Object.create(r);if(f.rawNode=s,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const h=o(s);Array.isArray(h)&&(f.children=_2(h,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(d=n.get(a))===null||d===void 0||d.push(f)}),l}function to(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=MW,getIgnored:a=OW,getIsGroup:l=AW,getKey:s=TW}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:$W,d=t.ignoreEmptyChildren?x=>{const w=c(x);return Array.isArray(w)?w.length?w:null:w}:c,f=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return PW(this.rawNode,d)},get shallowLoaded(){return zW(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(x){return KW(this,x)}},WW),h=_2(e,r,o,f,d);function v(x){if(x==null)return null;const w=r.get(x);return w&&!w.isGroup&&!w.ignored?w:null}function p(x){if(x==null)return null;const w=r.get(x);return w&&!w.ignored?w:null}function b(x,w){const k=p(x);return k?k.getPrev(w):null}function m(x,w){const k=p(x);return k?k.getNext(w):null}function g(x){const w=p(x);return w?w.getParent():null}function y(x){const w=p(x);return w?w.getChild():null}const C={treeNodes:h,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:d,getFlattenedNodes(x){return Ug(h,x)},getNode:v,getPrev:b,getNext:m,getParent:g,getChild:y,getFirstAvailableNode(){return HW(h)},getPath(x,w={}){return NW(x,w,C)},getCheckedKeys(x,w={}){const{cascade:k=!0,leafOnly:_=!1,checkStrategy:T="all",allowNotLoaded:$=!1}=w;return bv({checkedKeys:gv(x),indeterminateKeys:mv(x),cascade:k,leafOnly:_,checkStrategy:T,allowNotLoaded:$},C)},check(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToCheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},uncheck(x,w,k={}){const{cascade:_=!0,leafOnly:T=!1,checkStrategy:$="all",allowNotLoaded:R=!1}=k;return bv({checkedKeys:gv(w),indeterminateKeys:mv(w),keysToUncheck:x==null?[]:dC(x),cascade:_,leafOnly:T,checkStrategy:$,allowNotLoaded:R},C)},getNonLeafKeys(x={}){return RW(h,x)}};return C}const bt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},qW=Bn(bt.neutralBase),k2=Bn(bt.neutralInvertBase),YW="rgba("+k2.slice(0,3).join(", ")+", ";function fC(e){return YW+String(e)+")"}function Gn(e){const t=Array.from(k2);return t[3]=Number(e),ht(qW,t)}const XW=Object.assign(Object.assign({name:"common"},_r),{baseColor:bt.neutralBase,primaryColor:bt.primaryDefault,primaryColorHover:bt.primaryHover,primaryColorPressed:bt.primaryActive,primaryColorSuppl:bt.primarySuppl,infoColor:bt.infoDefault,infoColorHover:bt.infoHover,infoColorPressed:bt.infoActive,infoColorSuppl:bt.infoSuppl,successColor:bt.successDefault,successColorHover:bt.successHover,successColorPressed:bt.successActive,successColorSuppl:bt.successSuppl,warningColor:bt.warningDefault,warningColorHover:bt.warningHover,warningColorPressed:bt.warningActive,warningColorSuppl:bt.warningSuppl,errorColor:bt.errorDefault,errorColorHover:bt.errorHover,errorColorPressed:bt.errorActive,errorColorSuppl:bt.errorSuppl,textColorBase:bt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Gn(bt.alpha4),placeholderColor:Gn(bt.alpha4),placeholderColorDisabled:Gn(bt.alpha5),iconColor:Gn(bt.alpha4),iconColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),iconColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),iconColorDisabled:Gn(bt.alpha5),opacity1:bt.alpha1,opacity2:bt.alpha2,opacity3:bt.alpha3,opacity4:bt.alpha4,opacity5:bt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Gn(Number(bt.alphaClose)),closeIconColorHover:Gn(Number(bt.alphaClose)),closeIconColorPressed:Gn(Number(bt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Gn(bt.alpha4),clearColorHover:Hc(Gn(bt.alpha4),{lightness:.75}),clearColorPressed:Hc(Gn(bt.alpha4),{lightness:.9}),scrollbarColor:fC(bt.alphaScrollbar),scrollbarColorHover:fC(bt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Gn(bt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:bt.neutralPopover,tableColor:bt.neutralCard,cardColor:bt.neutralCard,modalColor:bt.neutralModal,bodyColor:bt.neutralBody,tagColor:"#eee",avatarColor:Gn(bt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Gn(bt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:bt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),et=XW,GW={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},ZW=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l}=e;return Object.assign(Object.assign({},GW),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:l,textColor:t,iconColor:n,extraTextColor:r})},QW={name:"Empty",common:et,self:ZW},Bi=QW,JW=S("empty",` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[M("icon",` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[O("+",[M("description",` - margin-top: 8px; - `)])]),M("description",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("extra",` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),R2=Object.assign(Object.assign({},Se.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),Ei=J({name:"Empty",props:R2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Empty","-empty",JW,Bi,e,t),{localeRef:o}=yn("Empty"),i=Le(Er,null),a=P(()=>{var d,f,h;return(d=e.description)!==null&&d!==void 0?d:(h=(f=i==null?void 0:i.mergedComponentPropsRef.value)===null||f===void 0?void 0:f.Empty)===null||h===void 0?void 0:h.description}),l=P(()=>{var d,f;return((f=(d=i==null?void 0:i.mergedComponentPropsRef.value)===null||d===void 0?void 0:d.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>u(aW,null))}),s=P(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:f},self:{[ye("iconSize",d)]:h,[ye("fontSize",d)]:v,textColor:p,iconColor:b,extraTextColor:m}}=r.value;return{"--n-icon-size":h,"--n-font-size":v,"--n-bezier":f,"--n-text-color":p,"--n-icon-color":b,"--n-extra-text-color":m}}),c=n?Je("empty",P(()=>{let d="";const{size:f}=e;return d+=f[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:P(()=>a.value||o.value.description),cssVars:n?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?u("div",{class:`${t}-empty__icon`},e.icon?e.icon():u(st,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?u("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?u("div",{class:`${t}-empty__extra`},e.extra()):null)}}),eK=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},tK={name:"Scrollbar",common:et,self:eK},hr=tK,{cubicBezierEaseInOut:hC}=_r;function Ho({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hC,leaveCubicBezier:o=hC}={}){return[O(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),O(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),O(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const nK=S("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[O(">",[S("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - max-height: inherit; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O(">",[S("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),O(">, +",[S("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[F("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[O(">",[M("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),F("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[O(">",[M("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),F("disabled",[O(">",[M("scrollbar",{pointerEvents:"none"})])]),O(">",[M("scrollbar",` - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[Ho(),O("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),rK=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),P2=J({name:"Scrollbar",props:rK,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Scrollbar",r,t),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(null),b=D(null),m=D(0),g=D(0),y=D(!1),C=D(!1);let x=!1,w=!1,k,_,T=0,$=0,R=0,I=0;const z=XD(),A=P(()=>{const{value:G}=h,{value:q}=d,{value:_e}=p;return G===null||q===null||_e===null?0:Math.min(G,_e*G/q+e.size*1.5)}),L=P(()=>`${A.value}px`),j=P(()=>{const{value:G}=v,{value:q}=f,{value:_e}=b;return G===null||q===null||_e===null?0:_e*G/q+e.size*1.5}),E=P(()=>`${j.value}px`),U=P(()=>{const{value:G}=h,{value:q}=m,{value:_e}=d,{value:Be}=p;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-A.value):0}}),K=P(()=>`${U.value}px`),Q=P(()=>{const{value:G}=v,{value:q}=g,{value:_e}=f,{value:Be}=b;if(G===null||_e===null||Be===null)return 0;{const Ee=_e-G;return Ee?q/Ee*(Be-j.value):0}}),V=P(()=>`${Q.value}px`),re=P(()=>{const{value:G}=h,{value:q}=d;return G!==null&&q!==null&&q>G}),ee=P(()=>{const{value:G}=v,{value:q}=f;return G!==null&&q!==null&&q>G}),ue=P(()=>{const{trigger:G}=e;return G==="none"||y.value}),de=P(()=>{const{trigger:G}=e;return G==="none"||C.value}),Ce=P(()=>{const{container:G}=e;return G?G():a.value}),we=P(()=>{const{content:G}=e;return G?G():l.value}),me=Mb(()=>{e.container||pe({top:m.value,left:g.value})}),Oe=()=>{me.isDeactivated||ge()},ke=G=>{if(me.isDeactivated)return;const{onResize:q}=e;q&&q(G),ge()},pe=(G,q)=>{if(!e.scrollable)return;if(typeof G=="number"){H(q!=null?q:0,G,0,!1,"auto");return}const{left:_e,top:Be,index:Ee,elSize:ae,position:ze,behavior:ie,el:Te,debounce:se=!0}=G;(_e!==void 0||Be!==void 0)&&H(_e!=null?_e:0,Be!=null?Be:0,0,!1,ie),Te!==void 0?H(0,Te.offsetTop,Te.offsetHeight,se,ie):Ee!==void 0&&ae!==void 0?H(0,Ee*ae,ae,se,ie):ze==="bottom"?H(0,Number.MAX_SAFE_INTEGER,0,!1,ie):ze==="top"&&H(0,0,0,!1,ie)},Me=(G,q)=>{if(!e.scrollable)return;const{value:_e}=Ce;!_e||(typeof G=="object"?_e.scrollBy(G):_e.scrollBy(G,q||0))};function H(G,q,_e,Be,Ee){const{value:ae}=Ce;if(!!ae){if(Be){const{scrollTop:ze,offsetHeight:ie}=ae;if(q>ze){q+_e<=ze+ie||ae.scrollTo({left:G,top:q+_e-ie,behavior:Ee});return}}ae.scrollTo({left:G,top:q,behavior:Ee})}}function W(){N(),te(),ge()}function Y(){ce()}function ce(){X(),B()}function X(){_!==void 0&&window.clearTimeout(_),_=window.setTimeout(()=>{C.value=!1},e.duration)}function B(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{y.value=!1},e.duration)}function N(){k!==void 0&&window.clearTimeout(k),y.value=!0}function te(){_!==void 0&&window.clearTimeout(_),C.value=!0}function ve(G){const{onScroll:q}=e;q&&q(G),Z()}function Z(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1))}function fe(){const{value:G}=we;G&&(d.value=G.offsetHeight,f.value=G.offsetWidth);const{value:q}=Ce;q&&(h.value=q.offsetHeight,v.value=q.offsetWidth);const{value:_e}=c,{value:Be}=s;_e&&(b.value=_e.offsetWidth),Be&&(p.value=Be.offsetHeight)}function ne(){const{value:G}=Ce;G&&(m.value=G.scrollTop,g.value=G.scrollLeft*(o!=null&&o.value?-1:1),h.value=G.offsetHeight,v.value=G.offsetWidth,d.value=G.scrollHeight,f.value=G.scrollWidth);const{value:q}=c,{value:_e}=s;q&&(b.value=q.offsetWidth),_e&&(p.value=_e.offsetHeight)}function ge(){!e.scrollable||(e.useUnifiedContainer?ne():(fe(),Z()))}function Pe(G){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ur(G)))}function Ae(G){G.preventDefault(),G.stopPropagation(),w=!0,St("mousemove",window,Ke,!0),St("mouseup",window,qe,!0),$=g.value,R=o!=null&&o.value?window.innerWidth-G.clientX:G.clientX}function Ke(G){if(!w)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=v,{value:_e}=f,{value:Be}=j;if(q===null||_e===null)return;const ae=(o!=null&&o.value?window.innerWidth-G.clientX-R:G.clientX-R)*(_e-q)/(q-Be),ze=_e-q;let ie=$+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;if(Te){Te.scrollLeft=ie*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:se}=e;se&&se(ie)}}function qe(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,Ke,!0),xt("mouseup",window,qe,!0),w=!1,ge(),Pe(G)&&ce()}function ct(G){G.preventDefault(),G.stopPropagation(),x=!0,St("mousemove",window,dt,!0),St("mouseup",window,ut,!0),T=m.value,I=G.clientY}function dt(G){if(!x)return;k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_);const{value:q}=h,{value:_e}=d,{value:Be}=A;if(q===null||_e===null)return;const ae=(G.clientY-I)*(_e-q)/(q-Be),ze=_e-q;let ie=T+ae;ie=Math.min(ze,ie),ie=Math.max(ie,0);const{value:Te}=Ce;Te&&(Te.scrollTop=ie)}function ut(G){G.preventDefault(),G.stopPropagation(),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0),x=!1,ge(),Pe(G)&&ce()}Ft(()=>{const{value:G}=ee,{value:q}=re,{value:_e}=t,{value:Be}=c,{value:Ee}=s;Be&&(G?Be.classList.remove(`${_e}-scrollbar-rail--disabled`):Be.classList.add(`${_e}-scrollbar-rail--disabled`)),Ee&&(q?Ee.classList.remove(`${_e}-scrollbar-rail--disabled`):Ee.classList.add(`${_e}-scrollbar-rail--disabled`))}),Mt(()=>{e.container||ge()}),Dt(()=>{k!==void 0&&window.clearTimeout(k),_!==void 0&&window.clearTimeout(_),xt("mousemove",window,dt,!0),xt("mouseup",window,ut,!0)});const je=Se("Scrollbar","-scrollbar",nK,hr,e,t),Xe=P(()=>{const{common:{cubicBezierEaseInOut:G,scrollbarBorderRadius:q,scrollbarHeight:_e,scrollbarWidth:Be},self:{color:Ee,colorHover:ae}}=je.value;return{"--n-scrollbar-bezier":G,"--n-scrollbar-color":Ee,"--n-scrollbar-color-hover":ae,"--n-scrollbar-border-radius":q,"--n-scrollbar-width":Be,"--n-scrollbar-height":_e}}),Ve=n?Je("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:pe,scrollBy:Me,sync:ge,syncUnifiedContainer:ne,handleMouseEnterWrapper:W,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:m,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:c,needYBar:re,needXBar:ee,yBarSizePx:L,xBarSizePx:E,yBarTopPx:K,xBarLeftPx:V,isShowXBar:ue,isShowYBar:de,isIos:z,handleScroll:ve,handleContentResize:Oe,handleContainerResize:ke,handleYScrollMouseDown:ct,handleXScrollMouseDown:Ae,cssVars:n?void 0:Xe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",l=()=>u("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),s=()=>{var d,f;return(d=this.onRender)===null||d===void 0||d.call(this),u("div",Wn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(f=t.default)===null||f===void 0?void 0:f.call(t):u("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},u(Dr,{onResize:this.handleContentResize},{default:()=>u("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:l(),this.xScrollable&&u("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},u(a?bp:It,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?u("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?s():u(Dr,{onResize:this.handleContainerResize},{default:s});return i?u($t,null,c,l()):c}}),rn=P2,Pf=P2,oK={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},iK=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,fontSizeHuge:p,heightSmall:b,heightMedium:m,heightLarge:g,heightHuge:y}=e;return Object.assign(Object.assign({},oK),{optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:v,optionFontSizeHuge:p,optionHeightSmall:b,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:y,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})},aK={name:"InternalSelectMenu",common:et,peers:{Scrollbar:hr,Empty:Bi},self:iK},Ml=aK;function lK(e,t){return u(It,{name:"fade-in-scale-up-transition"},{default:()=>e?u(st,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>u(Jb)}):null})}const vC=J({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=Le(Rb),v=it(()=>{const{value:g}=n;return g?e.tmNode.key===g.key:!1});function p(g){const{tmNode:y}=e;y.disabled||f(g,y)}function b(g){const{tmNode:y}=e;y.disabled||h(g,y)}function m(g){const{tmNode:y}=e,{value:C}=v;y.disabled||C||h(g,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:g}=e,{parent:y}=g;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:v,isSelected:it(()=>{const{value:g}=t,{value:y}=r;if(g===null)return!1;const C=e.tmNode.rawNode[s.value];if(y){const{value:x}=o;return x.has(C)}else return g===C}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=lK(n,e),v=s?[s(t,n),i&&h]:[jt(t[this.labelField],t,n),i&&h],p=a==null?void 0:a(t),b=u("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:gs([c,p==null?void 0:p.onClick]),onMouseenter:gs([d,p==null?void 0:p.onMouseenter]),onMousemove:gs([f,p==null?void 0:p.onMousemove])}),u("div",{class:`${e}-base-select-option__content`},v));return t.render?t.render({node:b,option:t,selected:n}):l?l({node:b,option:t,selected:n}):b}}),pC=J({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Le(Rb);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r==null?void 0:r(o),a=t?t(o,!1):jt(o[this.labelField],o,!1),l=u("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}}),{cubicBezierEaseIn:gC,cubicBezierEaseOut:mC}=_r;function $n({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[O("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${gC}, transform ${t} ${gC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${mC}, transform ${t} ${mC} ${o&&","+o}`}),O("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),O("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const sK=S("base-select-menu",` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[S("scrollbar",` - max-height: var(--n-height); - `),S("virtual-list",` - max-height: var(--n-height); - `),S("base-select-option",` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[M("content",` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),S("base-select-group-header",` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),S("base-select-menu-option-wrapper",` - position: relative; - width: 100%; - `),M("loading, empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("loading",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),M("action",` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),S("base-select-group-header",` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),S("base-select-option",` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[F("show-checkmark",` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),O("&::before",` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),O("&:active",` - color: var(--n-option-text-color-pressed); - `),F("grouped",` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-pending); - `)]),F("selected",` - color: var(--n-option-text-color-active); - `,[O("&::before",` - background-color: var(--n-option-color-active); - `),F("pending",[O("&::before",` - background-color: var(--n-option-color-active-pending); - `)])]),F("disabled",` - cursor: not-allowed; - `,[pt("selected",` - color: var(--n-option-text-color-disabled); - `),F("selected",` - opacity: var(--n-option-opacity-disabled); - `)]),M("check",` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[$n({enterScale:"0.5"})])])]),cc=J({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=Se("InternalSelectMenu","-internal-select-menu",sK,Ml,e,xe(e,"clsPrefix")),n=D(null),r=D(null),o=D(null),i=P(()=>e.treeMate.getFlattenedNodes()),a=P(()=>C2(i.value)),l=D(null);function s(){const{treeMate:Q}=e;let V=null;const{value:re}=e;re===null?V=Q.getFirstAvailableNode():(e.multiple?V=Q.getNode((re||[])[(re||[]).length-1]):V=Q.getNode(re),(!V||V.disabled)&&(V=Q.getFirstAvailableNode())),I(V||null)}function c(){const{value:Q}=l;Q&&!e.treeMate.getNode(Q.key)&&(l.value=null)}let d;rt(()=>e.show,Q=>{Q?d=rt(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?s():c(),_t(z)):c()},{immediate:!0}):d==null||d()},{immediate:!0}),Dt(()=>{d==null||d()});const f=P(()=>dn(t.value.self[ye("optionHeight",e.size)])),h=P(()=>yi(t.value.self[ye("padding",e.size)])),v=P(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),p=P(()=>{const Q=i.value;return Q&&Q.length===0});function b(Q){const{onToggle:V}=e;V&&V(Q)}function m(Q){const{onScroll:V}=e;V&&V(Q)}function g(Q){var V;(V=o.value)===null||V===void 0||V.sync(),m(Q)}function y(){var Q;(Q=o.value)===null||Q===void 0||Q.sync()}function C(){const{value:Q}=l;return Q||null}function x(Q,V){V.disabled||I(V,!1)}function w(Q,V){V.disabled||b(V)}function k(Q){var V;qn(Q,"action")||(V=e.onKeyup)===null||V===void 0||V.call(e,Q)}function _(Q){var V;qn(Q,"action")||(V=e.onKeydown)===null||V===void 0||V.call(e,Q)}function T(Q){var V;(V=e.onMousedown)===null||V===void 0||V.call(e,Q),!e.focusable&&Q.preventDefault()}function $(){const{value:Q}=l;Q&&I(Q.getNext({loop:!0}),!0)}function R(){const{value:Q}=l;Q&&I(Q.getPrev({loop:!0}),!0)}function I(Q,V=!1){l.value=Q,V&&z()}function z(){var Q,V;const re=l.value;if(!re)return;const ee=a.value(re.key);ee!==null&&(e.virtualScroll?(Q=r.value)===null||Q===void 0||Q.scrollTo({index:ee}):(V=o.value)===null||V===void 0||V.scrollTo({index:ee,elSize:f.value}))}function A(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.target)&&((re=e.onFocus)===null||re===void 0||re.call(e,Q))}function L(Q){var V,re;!((V=n.value)===null||V===void 0)&&V.contains(Q.relatedTarget)||(re=e.onBlur)===null||re===void 0||re.call(e,Q)}nt(Rb,{handleOptionMouseEnter:x,handleOptionClick:w,valueSetRef:v,pendingTmNodeRef:l,nodePropsRef:xe(e,"nodeProps"),showCheckmarkRef:xe(e,"showCheckmark"),multipleRef:xe(e,"multiple"),valueRef:xe(e,"value"),renderLabelRef:xe(e,"renderLabel"),renderOptionRef:xe(e,"renderOption"),labelFieldRef:xe(e,"labelField"),valueFieldRef:xe(e,"valueField")}),nt(Vk,n),Mt(()=>{const{value:Q}=o;Q&&Q.sync()});const j=P(()=>{const{size:Q}=e,{common:{cubicBezierEaseInOut:V},self:{height:re,borderRadius:ee,color:ue,groupHeaderTextColor:de,actionDividerColor:Ce,optionTextColorPressed:we,optionTextColor:me,optionTextColorDisabled:Oe,optionTextColorActive:ke,optionOpacityDisabled:pe,optionCheckColor:Me,actionTextColor:H,optionColorPending:W,optionColorActive:Y,loadingColor:ce,loadingSize:X,optionColorActivePending:B,[ye("optionFontSize",Q)]:N,[ye("optionHeight",Q)]:te,[ye("optionPadding",Q)]:ve}}=t.value;return{"--n-height":re,"--n-action-divider-color":Ce,"--n-action-text-color":H,"--n-bezier":V,"--n-border-radius":ee,"--n-color":ue,"--n-option-font-size":N,"--n-group-header-text-color":de,"--n-option-check-color":Me,"--n-option-color-pending":W,"--n-option-color-active":Y,"--n-option-color-active-pending":B,"--n-option-height":te,"--n-option-opacity-disabled":pe,"--n-option-text-color":me,"--n-option-text-color-active":ke,"--n-option-text-color-disabled":Oe,"--n-option-text-color-pressed":we,"--n-option-padding":ve,"--n-option-padding-left":yi(ve,"left"),"--n-option-padding-right":yi(ve,"right"),"--n-loading-color":ce,"--n-loading-size":X}}),{inlineThemeDisabled:E}=e,U=E?Je("internal-select-menu",P(()=>e.size[0]),j,e):void 0,K={selfRef:n,next:$,prev:R,getPendingTmNode:C};return oh(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:r,scrollbarRef:o,itemSize:f,padding:h,flattenedNodes:i,empty:p,virtualListContainer(){const{value:Q}=r;return Q==null?void 0:Q.listElRef},virtualListContent(){const{value:Q}=r;return Q==null?void 0:Q.itemsElRef},doScroll:m,handleFocusin:A,handleFocusout:L,handleKeyUp:k,handleKeyDown:_,handleMouseDown:T,handleVirtualListResize:y,handleVirtualListScroll:g,cssVars:E?void 0:j,themeClass:U==null?void 0:U.themeClass,onRender:U==null?void 0:U.onRender},K)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i==null||i(),u("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?u("div",{class:`${n}-base-select-menu__loading`},u(eo,{clsPrefix:n,strokeWidth:20})):this.empty?u("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},vt(e.empty,()=>[u(Ei,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty})])):u(rn,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?u(No,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:u(vC,{clsPrefix:n,key:a.key,tmNode:a})}):u("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?u(pC,{key:a.key,clsPrefix:n,tmNode:a}):u(vC,{clsPrefix:n,key:a.key,tmNode:a})))}),Ct(e.action,a=>a&&[u("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),u(Po,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),cK=S("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),$2=J({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-wave",cK,xe(e,"clsPrefix"));const t=D(null),n=D(!1);let r=null;return Dt(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),_t(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return u("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),dK=S("base-menu-mask",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: 14px; - overflow: hidden; -`,[Ho()]),uK=J({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){Vr("-base-menu-mask",dK,xe(e,"clsPrefix"));const t=D(null);let n=null;const r=D(!1);return Dt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return u(It,{name:"fade-in-transition"},{default:()=>this.show?u("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),fK={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},hK=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},fK),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},vK={name:"Popover",common:et,self:hK},Ua=vK,yv={top:"bottom",bottom:"top",left:"right",right:"left"},Tn="var(--n-arrow-height) * 1.414",pK=O([S("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[pt("scrollable",[pt("show-header-or-footer","padding: var(--n-padding);")])]),M("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),M("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),F("scrollable, show-header-or-footer",[M("content",` - padding: var(--n-padding); - `)])]),S("popover-shared",` - transform-origin: inherit; - `,[S("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[S("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Tn}); - height: calc(${Tn}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),O("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),O("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$r("top-start",` - top: calc(${Tn} / -2); - left: calc(${Oo("top-start")} - var(--v-offset-left)); - `),$r("top",` - top: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("top-end",` - top: calc(${Tn} / -2); - right: calc(${Oo("top-end")} + var(--v-offset-left)); - `),$r("bottom-start",` - bottom: calc(${Tn} / -2); - left: calc(${Oo("bottom-start")} - var(--v-offset-left)); - `),$r("bottom",` - bottom: calc(${Tn} / -2); - transform: translateX(calc(${Tn} / -2)) rotate(45deg); - left: 50%; - `),$r("bottom-end",` - bottom: calc(${Tn} / -2); - right: calc(${Oo("bottom-end")} + var(--v-offset-left)); - `),$r("left-start",` - left: calc(${Tn} / -2); - top: calc(${Oo("left-start")} - var(--v-offset-top)); - `),$r("left",` - left: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("left-end",` - left: calc(${Tn} / -2); - bottom: calc(${Oo("left-end")} + var(--v-offset-top)); - `),$r("right-start",` - right: calc(${Tn} / -2); - top: calc(${Oo("right-start")} - var(--v-offset-top)); - `),$r("right",` - right: calc(${Tn} / -2); - transform: translateY(calc(${Tn} / -2)) rotate(45deg); - top: 50%; - `),$r("right-end",` - right: calc(${Tn} / -2); - bottom: calc(${Oo("right-end")} + var(--v-offset-top)); - `),...XN({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Tn}) / 2)`,s=Oo(o);return O(`[v-placement="${o}"] >`,[S("popover-shared",[F("center-arrow",[S("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Oo(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function $r(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return O(`[v-placement="${e}"] >`,[S("popover-shared",` - margin-${yv[n]}: var(--n-space); - `,[F("show-arrow",` - margin-${yv[n]}: var(--n-space-arrow); - `),F("overlap",` - margin: 0; - `),DD("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${yv[n]}: auto; - ${r} - `,[S("popover-arrow",t)])])])}const T2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),O2=({arrowStyle:e,clsPrefix:t})=>u("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},u("div",{class:`${t}-popover-arrow`,style:e})),gK=J({name:"PopoverBody",inheritAttrs:!1,props:T2,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(e),a=Se("Popover","-popover",pK,Ua,e,o),l=D(null),s=Le("NPopover"),c=D(null),d=D(e.show),f=D(!1);Ft(()=>{const{show:_}=e;_&&!AD()&&!e.internalDeactivateImmediately&&(f.value=!0)});const h=P(()=>{const{trigger:_,onClickoutside:T}=e,$=[],{positionManuallyRef:{value:R}}=s;return R||(_==="click"&&!T&&$.push([fr,x,void 0,{capture:!0}]),_==="hover"&&$.push([rA,C])),T&&$.push([fr,x,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&$.push([wr,e.show]),$}),v=P(()=>{const _=e.width==="trigger"?void 0:Ot(e.width),T=[];_&&T.push({width:_});const{maxWidth:$,minWidth:R}=e;return $&&T.push({maxWidth:Ot($)}),R&&T.push({maxWidth:Ot(R)}),i||T.push(p.value),T}),p=P(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:T,cubicBezierEaseOut:$},self:{space:R,spaceArrow:I,padding:z,fontSize:A,textColor:L,dividerColor:j,color:E,boxShadow:U,borderRadius:K,arrowHeight:Q,arrowOffset:V,arrowOffsetVertical:re}}=a.value;return{"--n-box-shadow":U,"--n-bezier":_,"--n-bezier-ease-in":T,"--n-bezier-ease-out":$,"--n-font-size":A,"--n-text-color":L,"--n-color":E,"--n-divider-color":j,"--n-border-radius":K,"--n-arrow-height":Q,"--n-arrow-offset":V,"--n-arrow-offset-vertical":re,"--n-padding":z,"--n-space":R,"--n-space-arrow":I}}),b=i?Je("popover",void 0,p,e):void 0;s.setBodyInstance({syncPosition:m}),Dt(()=>{s.setBodyInstance(null)}),rt(xe(e,"show"),_=>{e.animated||(_?d.value=!0:d.value=!1)});function m(){var _;(_=l.value)===null||_===void 0||_.syncPosition()}function g(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&s.handleMouseEnter(_)}function y(_){e.trigger==="hover"&&e.keepAliveOnHover&&s.handleMouseLeave(_)}function C(_){e.trigger==="hover"&&!w().contains(ur(_))&&s.handleMouseMoveOutside(_)}function x(_){(e.trigger==="click"&&!w().contains(ur(_))||e.onClickoutside)&&s.handleClickOutside(_)}function w(){return s.getTriggerElement()}nt(Ol,c),nt(ic,null),nt(oc,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let T;const $=s.internalRenderBodyRef.value,{value:R}=o;if($)T=$([`${R}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],c,v.value,g,y);else{const{value:I}=s.extraClassRef,{internalTrapFocus:z}=e,A=!xa(t.header)||!xa(t.footer),L=()=>{var j;const E=A?u($t,null,Ct(t.header,Q=>Q?u("div",{class:`${R}-popover__header`,style:e.headerStyle},Q):null),Ct(t.default,Q=>Q?u("div",{class:`${R}-popover__content`,style:e.contentStyle},t):null),Ct(t.footer,Q=>Q?u("div",{class:`${R}-popover__footer`,style:e.footerStyle},Q):null)):e.scrollable?(j=t.default)===null||j===void 0?void 0:j.call(t):u("div",{class:`${R}-popover__content`,style:e.contentStyle},t),U=e.scrollable?u(Pf,{contentClass:A?void 0:`${R}-popover__content`,contentStyle:A?void 0:e.contentStyle},{default:()=>E}):E,K=e.showArrow?O2({arrowStyle:e.arrowStyle,clsPrefix:R}):null;return[U,K]};T=u("div",Wn({class:[`${R}-popover`,`${R}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(j=>`${R}-${j}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:A,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:v.value,onKeydown:s.handleKeydown,onMouseenter:g,onMouseleave:y},n),z?u(Ob,{active:e.show,autoFocus:!0},{default:L}):L())}return sn(T,h.value)}return{displayed:f,namespace:r,isMounted:s.isMountedRef,zIndex:s.zIndexRef,followerRef:l,adjustedTo:Lt(e),followerEnabled:d,renderContentNode:k}},render(){return u(Sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>this.animated?u(It,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),mK=Object.keys(T2),bK={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function yK(e,t,n){bK[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const xK=Qr("").type,Ma={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Lt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},z2=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{internalOnAfterLeave:Function,internalRenderBody:Function}),Wa=J({name:"Popover",inheritAttrs:!1,props:z2,__popover__:!0,setup(e){const t=An(),n=D(null),r=P(()=>e.show),o=D(e.defaultShow),i=wt(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:L}=e;return!!(L!=null&&L())},s=()=>l()?!1:i.value,c=Ri(e,["arrow","showArrow"]),d=P(()=>e.overlap?!1:c.value);let f=null;const h=D(null),v=D(null),p=it(()=>e.x!==void 0&&e.y!==void 0);function b(L){const{"onUpdate:show":j,onUpdateShow:E,onShow:U,onHide:K}=e;o.value=L,j&&he(j,L),E&&he(E,L),L&&U&&he(U,!0),L&&K&&he(K,!1)}function m(){f&&f.syncPosition()}function g(){const{value:L}=h;L&&(window.clearTimeout(L),h.value=null)}function y(){const{value:L}=v;L&&(window.clearTimeout(L),v.value=null)}function C(){const L=l();if(e.trigger==="focus"&&!L){if(s())return;b(!0)}}function x(){const L=l();if(e.trigger==="focus"&&!L){if(!s())return;b(!1)}}function w(){const L=l();if(e.trigger==="hover"&&!L){if(y(),h.value!==null||s())return;const j=()=>{b(!0),h.value=null},{delay:E}=e;E===0?j():h.value=window.setTimeout(j,E)}}function k(){const L=l();if(e.trigger==="hover"&&!L){if(g(),v.value!==null||!s())return;const j=()=>{b(!1),v.value=null},{duration:E}=e;E===0?j():v.value=window.setTimeout(j,E)}}function _(){k()}function T(L){var j;!s()||(e.trigger==="click"&&(g(),y(),b(!1)),(j=e.onClickoutside)===null||j===void 0||j.call(e,L))}function $(){if(e.trigger==="click"&&!l()){g(),y();const L=!s();b(L)}}function R(L){!e.internalTrapFocus||L.key==="Escape"&&(g(),y(),b(!1))}function I(L){o.value=L}function z(){var L;return(L=n.value)===null||L===void 0?void 0:L.targetRef}function A(L){f=L}return nt("NPopover",{getTriggerElement:z,handleKeydown:R,handleMouseEnter:w,handleMouseLeave:k,handleClickOutside:T,handleMouseMoveOutside:_,setBodyInstance:A,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:d,getMergedShow:s,setShow:I,handleClick:$,handleMouseEnter:w,handleMouseLeave:k,handleFocus:C,handleBlur:x,syncPosition:m}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Mu(n,"activator"):r=Mu(n,"trigger"),r)){r=nr(r),r=r.type===xK?u("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:c=>{l.forEach(d=>{d.onBlur(c)})},onFocus:c=>{l.forEach(d=>{d.onFocus(c)})},onClick:c=>{l.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{l.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{l.forEach(d=>{d.onMouseleave(c)})}};yK(r,a?"nested":t?"manual":this.trigger,s)}}return u(Nr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?sn(u("div",{style:{position:"fixed",inset:0}}),[[ac,{enabled:i,zIndex:this.zIndex}]]):null,t?null:u(Hr,null,{default:()=>r}),u(gK,mn(this.$props,mK,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),wK={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},CK=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:f,tagColor:h,closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:x,heightMini:w,heightTiny:k,heightSmall:_,heightMedium:T,closeColorHover:$,closeColorPressed:R,buttonColor2Hover:I,buttonColor2Pressed:z,fontWeightStrong:A}=e;return Object.assign(Object.assign({},wK),{closeBorderRadius:m,heightTiny:w,heightSmall:k,heightMedium:_,heightLarge:T,borderRadius:m,opacityDisabled:f,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:C,fontSizeLarge:x,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:I,colorPressedCheckable:z,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:v,closeIconColorHover:p,closeIconColorPressed:b,closeColorHover:$,closeColorPressed:R,borderPrimary:`1px solid ${ft(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:ft(o,{alpha:.12}),colorBorderedPrimary:ft(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:ft(o,{alpha:.12}),closeColorPressedPrimary:ft(o,{alpha:.18}),borderInfo:`1px solid ${ft(i,{alpha:.3})}`,textColorInfo:i,colorInfo:ft(i,{alpha:.12}),colorBorderedInfo:ft(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:ft(i,{alpha:.12}),closeColorPressedInfo:ft(i,{alpha:.18}),borderSuccess:`1px solid ${ft(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:ft(a,{alpha:.12}),colorBorderedSuccess:ft(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:ft(a,{alpha:.12}),closeColorPressedSuccess:ft(a,{alpha:.18}),borderWarning:`1px solid ${ft(l,{alpha:.35})}`,textColorWarning:l,colorWarning:ft(l,{alpha:.15}),colorBorderedWarning:ft(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:ft(l,{alpha:.12}),closeColorPressedWarning:ft(l,{alpha:.18}),borderError:`1px solid ${ft(s,{alpha:.23})}`,textColorError:s,colorError:ft(s,{alpha:.1}),colorBorderedError:ft(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:ft(s,{alpha:.12}),closeColorPressedError:ft(s,{alpha:.18})})},SK={name:"Tag",common:et,self:CK},M2=SK,I2={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},_K=S("tag",` - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),M("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),M("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),M("avatar",` - display: flex; - margin: 0 6px 0 0; - `),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),F("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[M("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),M("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),F("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),F("icon, avatar",[F("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),F("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),F("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-hover-checkable);",[pt("checked","color: var(--n-text-color-hover-checkable);")]),O("&:active","background-color: var(--n-color-pressed-checkable);",[pt("checked","color: var(--n-text-color-pressed-checkable);")])]),F("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[pt("disabled",[O("&:hover","background-color: var(--n-color-checked-hover);"),O("&:active","background-color: var(--n-color-checked-pressed);")])])])]),F2=Object.assign(Object.assign(Object.assign({},Se.props),I2),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),D2="n-tag",ws=J({name:"Tag",props:F2,setup(e){const t=D(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=He(e),a=Se("Tag","-tag",_K,M2,e,r);nt(D2,{roundRef:xe(e,"round")});function l(v){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:b,onUpdateChecked:m,"onUpdate:checked":g}=e;m&&m(!p),g&&g(!p),b&&b(!p)}}function s(v){if(e.triggerClickOnClose||v.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&he(p,v)}}const c={setTextContent(v){const{value:p}=t;p&&(p.textContent=v)}},d=Zt("Tag",i,r),f=P(()=>{const{type:v,size:p,color:{color:b,textColor:m}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:y,closeMargin:C,closeMarginRtl:x,borderRadius:w,opacityDisabled:k,textColorCheckable:_,textColorHoverCheckable:T,textColorPressedCheckable:$,textColorChecked:R,colorCheckable:I,colorHoverCheckable:z,colorPressedCheckable:A,colorChecked:L,colorCheckedHover:j,colorCheckedPressed:E,closeBorderRadius:U,fontWeightStrong:K,[ye("colorBordered",v)]:Q,[ye("closeSize",p)]:V,[ye("closeIconSize",p)]:re,[ye("fontSize",p)]:ee,[ye("height",p)]:ue,[ye("color",v)]:de,[ye("textColor",v)]:Ce,[ye("border",v)]:we,[ye("closeIconColor",v)]:me,[ye("closeIconColorHover",v)]:Oe,[ye("closeIconColorPressed",v)]:ke,[ye("closeColorHover",v)]:pe,[ye("closeColorPressed",v)]:Me}}=a.value;return{"--n-font-weight-strong":K,"--n-avatar-size-override":`calc(${ue} - 8px)`,"--n-bezier":g,"--n-border-radius":w,"--n-border":we,"--n-close-icon-size":re,"--n-close-color-pressed":Me,"--n-close-color-hover":pe,"--n-close-border-radius":U,"--n-close-icon-color":me,"--n-close-icon-color-hover":Oe,"--n-close-icon-color-pressed":ke,"--n-close-icon-color-disabled":me,"--n-close-margin":C,"--n-close-margin-rtl":x,"--n-close-size":V,"--n-color":b||(n.value?Q:de),"--n-color-checkable":I,"--n-color-checked":L,"--n-color-checked-hover":j,"--n-color-checked-pressed":E,"--n-color-hover-checkable":z,"--n-color-pressed-checkable":A,"--n-font-size":ee,"--n-height":ue,"--n-opacity-disabled":k,"--n-padding":y,"--n-text-color":m||Ce,"--n-text-color-checkable":_,"--n-text-color-checked":R,"--n-text-color-hover-checkable":T,"--n-text-color-pressed-checkable":$}}),h=o?Je("tag",P(()=>{let v="";const{type:p,size:b,color:{color:m,textColor:g}={}}=e;return v+=p[0],v+=b[0],m&&(v+=`a${Pa(m)}`),g&&(v+=`b${Pa(g)}`),n.value&&(v+="c"),v}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:s,cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const c=Ct(s.avatar,f=>f&&u("div",{class:`${n}-tag__avatar`},f)),d=Ct(s.icon,f=>f&&u("div",{class:`${n}-tag__icon`},f));return u("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,u("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?u(Go,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?u("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),kK=S("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[O(">",[M("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[O("&:hover",` - color: var(--n-clear-color-hover)!important; - `),O("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),M("placeholder",` - display: flex; - `),M("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[kn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Wg=J({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vr("-base-clear",kK,xe(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-base-clear`},u(ko,null,{default:()=>{var t,n;return this.show?u("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},vt(this.$slots.icon,()=>[u(st,{clsPrefix:e},{default:()=>u(uW,null)})])):u("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),A2=J({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return u(eo,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?u(Wg,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>u(st,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>vt(t.default,()=>[u(x2,null)])})}):null})}}}),RK={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},PK=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:f,borderColor:h,iconColor:v,iconColorDisabled:p,clearColor:b,clearColorHover:m,clearColorPressed:g,placeholderColor:y,placeholderColorDisabled:C,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I}=e;return Object.assign(Object.assign({},RK),{fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:k,fontSizeLarge:_,heightTiny:T,heightSmall:$,heightMedium:R,heightLarge:I,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:C,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${h}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${ft(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${ft(a,{alpha:.2})}`,caretColor:a,arrowColor:v,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${ft(s,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${ft(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${ft(d,{alpha:.2})}`,colorActiveError:o,caretColorError:d,clearColor:b,clearColorHover:m,clearColorPressed:g})},$K={name:"InternalSelection",common:et,peers:{Popover:Ua},self:PK},fh=$K,TK=O([S("base-selection",` - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[S("base-loading",` - color: var(--n-loading-color); - `),S("base-selection-tags","min-height: var(--n-height);"),M("border, state-border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - z-index: 1; - border-color: #0000; - `),S("base-suffix",` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[M("arrow",` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),S("base-selection-overlay",` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[M("wrapper",` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),S("base-selection-placeholder",` - color: var(--n-placeholder-color); - `,[M("inner",` - max-width: 100%; - overflow: hidden; - `)]),S("base-selection-tags",` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("base-selection-label",` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[S("base-selection-input",` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[M("content",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),M("render-label",` - color: var(--n-text-color); - `)]),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),S("base-selection-label","background-color: var(--n-color-active);"),S("base-selection-tags","background-color: var(--n-color-active);")])]),F("disabled","cursor: not-allowed;",[M("arrow",` - color: var(--n-arrow-color-disabled); - `),S("base-selection-label",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[S("base-selection-input",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),M("render-label",` - color: var(--n-text-color-disabled); - `)]),S("base-selection-tags",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),S("base-selection-placeholder",` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),S("base-selection-input-tag",` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[M("input",` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),M("mirror",` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),["warning","error"].map(e=>F(`${e}-status`,[M("state-border",`border: var(--n-border-${e});`),pt("disabled",[O("&:hover",[M("state-border",` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),F("active",[M("state-border",` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),S("base-selection-label",`background-color: var(--n-color-active-${e});`),S("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),F("focus",[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),S("base-selection-popover",` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),S("base-selection-tag-wrapper",` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[O("&:last-child","padding-right: 0;"),S("tag",` - font-size: 14px; - max-width: 100%; - `,[M("content",` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),n0=J({name:"InternalSelection",props:Object.assign(Object.assign({},Se.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),i=D(null),a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(!1),h=D(!1),v=D(!1),p=Se("InternalSelection","-internal-selection",TK,fh,e,xe(e,"clsPrefix")),b=P(()=>e.clearable&&!e.disabled&&(v.value||e.active)),m=P(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):jt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),g=P(()=>{const Z=e.selectedOption;if(!!Z)return Z[e.labelField]}),y=P(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){var Z;const{value:fe}=t;if(fe){const{value:ne}=n;ne&&(ne.style.width=`${fe.offsetWidth}px`,e.maxTagCount!=="responsive"&&((Z=c.value)===null||Z===void 0||Z.sync()))}}function x(){const{value:Z}=d;Z&&(Z.style.display="none")}function w(){const{value:Z}=d;Z&&(Z.style.display="inline-block")}rt(xe(e,"active"),Z=>{Z||x()}),rt(xe(e,"pattern"),()=>{e.multiple&&_t(C)});function k(Z){const{onFocus:fe}=e;fe&&fe(Z)}function _(Z){const{onBlur:fe}=e;fe&&fe(Z)}function T(Z){const{onDeleteOption:fe}=e;fe&&fe(Z)}function $(Z){const{onClear:fe}=e;fe&&fe(Z)}function R(Z){const{onPatternInput:fe}=e;fe&&fe(Z)}function I(Z){var fe;(!Z.relatedTarget||!(!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)))&&k(Z)}function z(Z){var fe;!((fe=r.value)===null||fe===void 0)&&fe.contains(Z.relatedTarget)||_(Z)}function A(Z){$(Z)}function L(){v.value=!0}function j(){v.value=!1}function E(Z){!e.active||!e.filterable||Z.target!==n.value&&Z.preventDefault()}function U(Z){T(Z)}function K(Z){if(Z.key==="Backspace"&&!Q.value&&!e.pattern.length){const{selectedOptions:fe}=e;fe!=null&&fe.length&&U(fe[fe.length-1])}}const Q=D(!1);let V=null;function re(Z){const{value:fe}=t;if(fe){const ne=Z.target.value;fe.textContent=ne,C()}e.ignoreComposition&&Q.value?V=Z:R(Z)}function ee(){Q.value=!0}function ue(){Q.value=!1,e.ignoreComposition&&R(V),V=null}function de(Z){var fe;h.value=!0,(fe=e.onPatternFocus)===null||fe===void 0||fe.call(e,Z)}function Ce(Z){var fe;h.value=!1,(fe=e.onPatternBlur)===null||fe===void 0||fe.call(e,Z)}function we(){var Z,fe;if(e.filterable)h.value=!1,(Z=a.value)===null||Z===void 0||Z.blur(),(fe=n.value)===null||fe===void 0||fe.blur();else if(e.multiple){const{value:ne}=o;ne==null||ne.blur()}else{const{value:ne}=i;ne==null||ne.blur()}}function me(){var Z,fe,ne;e.filterable?(h.value=!1,(Z=a.value)===null||Z===void 0||Z.focus()):e.multiple?(fe=o.value)===null||fe===void 0||fe.focus():(ne=i.value)===null||ne===void 0||ne.focus()}function Oe(){const{value:Z}=n;Z&&(w(),Z.focus())}function ke(){const{value:Z}=n;Z&&Z.blur()}function pe(Z){const{value:fe}=l;fe&&fe.setTextContent(`+${Z}`)}function Me(){const{value:Z}=s;return Z}function H(){return n.value}let W=null;function Y(){W!==null&&window.clearTimeout(W)}function ce(){e.disabled||e.active||(Y(),W=window.setTimeout(()=>{y.value&&(f.value=!0)},100))}function X(){Y()}function B(Z){Z||(Y(),f.value=!1)}rt(y,Z=>{Z||(f.value=!1)}),Mt(()=>{Ft(()=>{const Z=a.value;!Z||(Z.tabIndex=e.disabled||h.value?-1:0)})}),oh(r,e.onResize);const{inlineThemeDisabled:N}=e,te=P(()=>{const{size:Z}=e,{common:{cubicBezierEaseInOut:fe},self:{borderRadius:ne,color:ge,placeholderColor:Pe,textColor:Ae,paddingSingle:Ke,paddingMultiple:qe,caretColor:ct,colorDisabled:dt,textColorDisabled:ut,placeholderColorDisabled:je,colorActive:Xe,boxShadowFocus:Ve,boxShadowActive:We,boxShadowHover:G,border:q,borderFocus:_e,borderHover:Be,borderActive:Ee,arrowColor:ae,arrowColorDisabled:ze,loadingColor:ie,colorActiveWarning:Te,boxShadowFocusWarning:se,boxShadowActiveWarning:$e,boxShadowHoverWarning:oe,borderWarning:Fe,borderFocusWarning:Ne,borderHoverWarning:Ze,borderActiveWarning:Ue,colorActiveError:le,boxShadowFocusError:Ie,boxShadowActiveError:Ge,boxShadowHoverError:gt,borderError:be,borderFocusError:De,borderHoverError:Qe,borderActiveError:ot,clearColor:lt,clearColorHover:Kt,clearColorPressed:Vt,clearSize:Re,arrowSize:Ye,[ye("height",Z)]:at,[ye("fontSize",Z)]:kt}}=p.value;return{"--n-bezier":fe,"--n-border":q,"--n-border-active":Ee,"--n-border-focus":_e,"--n-border-hover":Be,"--n-border-radius":ne,"--n-box-shadow-active":We,"--n-box-shadow-focus":Ve,"--n-box-shadow-hover":G,"--n-caret-color":ct,"--n-color":ge,"--n-color-active":Xe,"--n-color-disabled":dt,"--n-font-size":kt,"--n-height":at,"--n-padding-single":Ke,"--n-padding-multiple":qe,"--n-placeholder-color":Pe,"--n-placeholder-color-disabled":je,"--n-text-color":Ae,"--n-text-color-disabled":ut,"--n-arrow-color":ae,"--n-arrow-color-disabled":ze,"--n-loading-color":ie,"--n-color-active-warning":Te,"--n-box-shadow-focus-warning":se,"--n-box-shadow-active-warning":$e,"--n-box-shadow-hover-warning":oe,"--n-border-warning":Fe,"--n-border-focus-warning":Ne,"--n-border-hover-warning":Ze,"--n-border-active-warning":Ue,"--n-color-active-error":le,"--n-box-shadow-focus-error":Ie,"--n-box-shadow-active-error":Ge,"--n-box-shadow-hover-error":gt,"--n-border-error":be,"--n-border-focus-error":De,"--n-border-hover-error":Qe,"--n-border-active-error":ot,"--n-clear-size":Re,"--n-clear-color":lt,"--n-clear-color-hover":Kt,"--n-clear-color-pressed":Vt,"--n-arrow-size":Ye}}),ve=N?Je("internal-selection",P(()=>e.size[0]),te,e):void 0;return{mergedTheme:p,mergedClearable:b,patternInputFocused:h,filterablePlaceholder:m,label:g,selected:y,showTagsPanel:f,isComposing:Q,counterRef:l,counterWrapperRef:s,patternInputMirrorRef:t,patternInputRef:n,selfRef:r,multipleElRef:o,singleElRef:i,patternInputWrapperRef:a,overflowRef:c,inputTagElRef:d,handleMouseDown:E,handleFocusin:I,handleClear:A,handleMouseEnter:L,handleMouseLeave:j,handleDeleteOption:U,handlePatternKeyDown:K,handlePatternInputInput:re,handlePatternInputBlur:Ce,handlePatternInputFocus:de,handleMouseEnterCounter:ce,handleMouseLeaveCounter:X,handleFocusout:z,handleCompositionEnd:ue,handleCompositionStart:ee,onPopoverUpdateShow:B,focus:me,focusInput:Oe,blur:we,blurInput:ke,updateCounter:pe,getCounter:Me,getTail:H,renderLabel:e.renderLabel,cssVars:N?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,onRender:s,renderTag:c,renderLabel:d}=this;s==null||s();const f=i==="responsive",h=typeof i=="number",v=f||h,p=u(bp,null,{default:()=>u(A2,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,g;return(g=(m=this.$slots).arrow)===null||g===void 0?void 0:g.call(m)}})});let b;if(t){const{labelField:m}=this,g=z=>u("div",{class:`${l}-base-selection-tag-wrapper`,key:z.value},c?c({option:z,handleClose:()=>this.handleDeleteOption(z)}):u(ws,{size:n,closable:!z.disabled,disabled:r,onClose:()=>this.handleDeleteOption(z),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(z,!0):jt(z[m],z,!0)})),y=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(g),C=o?u("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),u("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,x=f?()=>u("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let w;if(h){const z=this.selectedOptions.length-i;z>0&&(w=u("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},u(ws,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${z}`})))}const k=f?o?u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x,tail:()=>C}):u(rw,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:y,counter:x}):h?y().concat(w):y(),_=v?()=>u("div",{class:`${l}-base-selection-popover`},f?y():this.selectedOptions.map(g)):void 0,T=v?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,R=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,f?null:C,p):u("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,p);b=u($t,null,v?u(Wa,Object.assign({},T,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:_}):I,R)}else if(o){const m=this.pattern||this.isComposing,g=this.active?!m:!this.selected,y=this.active?!1:this.selected;b=u("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},u("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),y?u("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},u("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):null,g?u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,p)}else b=u("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?u("div",{class:`${l}-base-selection-input`,title:rc(this.label),key:"input"},u("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):jt(this.label,this.selectedOption,!0))):u("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},u("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),p);return u("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,a?u("div",{class:`${l}-base-selection__border`}):null,a?u("div",{class:`${l}-base-selection__state-border`}):null)}}),bC=J({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=D(null),n=D(e.value),r=D(e.value),o=D("up"),i=D(!1),a=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=P(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);rt(xe(e,"value"),(d,f)=>{n.value=f,r.value=d,_t(s)});function s(){const d=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||d===void 0||(d>f?c("up"):f>d&&c("down"))}function c(d){o.value=d,i.value=!1,_t(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:d}=e;return u("span",{ref:t,class:`${d}-base-slot-machine-number`},n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--top`,l.value]},n.value):null,u("span",{class:[`${d}-base-slot-machine-current-number`,a.value]},u("span",{ref:"numberWrapper",class:[`${d}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${d}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?u("span",{class:[`${d}-base-slot-machine-old-number ${d}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:ii}=_r;function B2({duration:e=".2s",delay:t=".1s"}={}){return[O("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),O("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),O("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${ii}, - max-width ${e} ${ii} ${t}, - margin-left ${e} ${ii} ${t}, - margin-right ${e} ${ii} ${t}; - `),O("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${ii} ${t}, - max-width ${e} ${ii}, - margin-left ${e} ${ii}, - margin-right ${e} ${ii}; - `)]}const{cubicBezierEaseOut:el}=_r;function OK({duration:e=".2s"}={}){return[O("&.fade-up-width-expand-transition-leave-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-active",{transition:` - opacity ${e} ${el}, - max-width ${e} ${el}, - transform ${e} ${el} - `}),O("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),O("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),O("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),O("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const zK=O([O("@keyframes n-base-slot-machine-fade-up-in",` - from { - transform: translateY(60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-down-in",` - from { - transform: translateY(-60%); - opacity: 0; - } - to { - transform: translateY(0); - opacity: 1; - } - `),O("@keyframes n-base-slot-machine-fade-up-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(-60%); - opacity: 0; - } - `),O("@keyframes n-base-slot-machine-fade-down-out",` - from { - transform: translateY(0%); - opacity: 1; - } - to { - transform: translateY(60%); - opacity: 0; - } - `),S("base-slot-machine",` - overflow: hidden; - white-space: nowrap; - display: inline-block; - height: 18px; - line-height: 18px; - `,[S("base-slot-machine-number",` - display: inline-block; - position: relative; - height: 18px; - width: .6em; - max-width: .6em; - `,[OK({duration:".2s"}),B2({duration:".2s",delay:"0s"}),S("base-slot-machine-old-number",` - display: inline-block; - opacity: 0; - position: absolute; - left: 0; - right: 0; - `,[F("top",{transform:"translateY(-100%)"}),F("bottom",{transform:"translateY(100%)"}),F("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),S("base-slot-machine-current-number",` - display: inline-block; - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 1; - transform: translateY(0); - width: .6em; - `,[F("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("inner",` - display: inline-block; - position: absolute; - right: 0; - top: 0; - width: .6em; - `,[F("not-number",` - right: unset; - left: 0; - `)])])])])]),MK=J({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Vr("-base-slot-machine",zK,xe(e,"clsPrefix"));const t=D(),n=D(),r=P(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return rt(xe(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?u("span",{class:`${i}-base-slot-machine`},u(Gf,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>u(bC,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),u(Ro,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:s,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,infoColor:p,successColor:b,warningColor:m,errorColor:g,fontSize:y}=e;return Object.assign(Object.assign({},IK),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:d,closeIconColor:f,closeIconColorHover:h,closeIconColorPressed:v,borderInfo:`1px solid ${ht(o,ft(p,{alpha:.25}))}`,colorInfo:ht(o,ft(p,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:d,closeIconColorInfo:f,closeIconColorHoverInfo:h,closeIconColorPressedInfo:v,borderSuccess:`1px solid ${ht(o,ft(b,{alpha:.25}))}`,colorSuccess:ht(o,ft(b,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:b,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:d,closeIconColorSuccess:f,closeIconColorHoverSuccess:h,closeIconColorPressedSuccess:v,borderWarning:`1px solid ${ht(o,ft(m,{alpha:.33}))}`,colorWarning:ht(o,ft(m,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:d,closeIconColorWarning:f,closeIconColorHoverWarning:h,closeIconColorPressedWarning:v,borderError:`1px solid ${ht(o,ft(g,{alpha:.25}))}`,colorError:ht(o,ft(g,{alpha:.08})),titleTextColorError:l,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:d,closeIconColorError:f,closeIconColorHoverError:h,closeIconColorPressedError:v})},DK={name:"Alert",common:et,self:FK},AK=DK,{cubicBezierEaseInOut:io,cubicBezierEaseOut:BK,cubicBezierEaseIn:EK}=_r;function jo({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",c=l?"enter":"leave";return[O(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),O(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),O(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io} ${r}, - opacity ${t} ${BK} ${r}, - margin-top ${t} ${io} ${r}, - margin-bottom ${t} ${io} ${r}, - padding-top ${t} ${io} ${r}, - padding-bottom ${t} ${io} ${r} - ${n?","+n:""} - `),O(`&.fade-in-height-expand-transition-${s}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${io}, - opacity ${t} ${EK}, - margin-top ${t} ${io}, - margin-bottom ${t} ${io}, - padding-top ${t} ${io}, - padding-bottom ${t} ${io} - ${n?","+n:""} - `)]}const LK=S("alert",` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[M("border",` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),F("closable",[S("alert-body",[M("title",` - padding-right: 24px; - `)])]),M("icon",{color:"var(--n-icon-color)"}),S("alert-body",{padding:"var(--n-padding)"},[M("title",{color:"var(--n-title-text-color)"}),M("content",{color:"var(--n-content-text-color)"})]),jo({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),M("icon",` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),M("close",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),F("show-icon",[S("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),S("alert-body",` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[M("title",` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[O("& +",[M("content",{marginTop:"9px"})])]),M("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),M("icon",{transition:"color .3s var(--n-bezier)"})]),E2=Object.assign(Object.assign({},Se.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),NK=J({name:"Alert",inheritAttrs:!1,props:E2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Alert","-alert",LK,AK,e,t),a=Zt("Alert",o,t),l=P(()=>{const{common:{cubicBezierEaseInOut:v},self:p}=i.value,{fontSize:b,borderRadius:m,titleFontWeight:g,lineHeight:y,iconSize:C,iconMargin:x,iconMarginRtl:w,closeIconSize:k,closeBorderRadius:_,closeSize:T,closeMargin:$,closeMarginRtl:R,padding:I}=p,{type:z}=e,{left:A,right:L}=yi(x);return{"--n-bezier":v,"--n-color":p[ye("color",z)],"--n-close-icon-size":k,"--n-close-border-radius":_,"--n-close-color-hover":p[ye("closeColorHover",z)],"--n-close-color-pressed":p[ye("closeColorPressed",z)],"--n-close-icon-color":p[ye("closeIconColor",z)],"--n-close-icon-color-hover":p[ye("closeIconColorHover",z)],"--n-close-icon-color-pressed":p[ye("closeIconColorPressed",z)],"--n-icon-color":p[ye("iconColor",z)],"--n-border":p[ye("border",z)],"--n-title-text-color":p[ye("titleTextColor",z)],"--n-content-text-color":p[ye("contentTextColor",z)],"--n-line-height":y,"--n-border-radius":m,"--n-font-size":b,"--n-title-font-weight":g,"--n-icon-size":C,"--n-icon-margin":x,"--n-icon-margin-rtl":w,"--n-close-size":T,"--n-close-margin":$,"--n-close-margin-rtl":R,"--n-padding":I,"--n-icon-margin-left":A,"--n-icon-margin-right":L}}),s=r?Je("alert",P(()=>e.type[0]),l,e):void 0,c=D(!0),d=()=>{const{onAfterLeave:v,onAfterHide:p}=e;v&&v(),p&&p()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var v;Promise.resolve((v=e.onClose)===null||v===void 0?void 0:v.call(e)).then(p=>{p!==!1&&(c.value=!1)})},handleAfterLeave:()=>{d()},mergedTheme:i,cssVars:r?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(Ro,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?u("div",Object.assign({},Wn(this.$attrs,r)),this.closable&&u(Go,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&u("div",{class:`${t}-alert__border`}),this.showIcon&&u("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},vt(n.icon,()=>[u(st,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return u(Va,null);case"info":return u(Ii,null);case"warning":return u(Ai,null);case"error":return u(ja,null);default:return null}}})])),u("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},Ct(n.header,o=>{const i=o||this.title;return i?u("div",{class:`${t}-alert-body__title`},i):null}),n.default&&u("div",{class:`${t}-alert-body__content`},n))):null}})}}),HK={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},jK=e=>{const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},HK),{borderRadius:t,railColor:n,railColorActive:r,linkColor:ft(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})},VK={name:"Anchor",common:et,self:jK},UK=VK,WK=S("anchor",` - position: relative; -`,[pt("block",` - padding-left: var(--n-rail-width); - `,[S("anchor-link",[O("+, >",[S("anchor-link",` - margin-top: .5em; - `)])]),S("anchor-link-background",` - max-width: 0; - border-top-right-radius: 10.5px; - border-bottom-right-radius: 10.5px; - `),pt("show-rail",[O(">",[S("anchor-link","padding-left: 0;")])])]),F("block",[S("anchor-link",` - margin-bottom: 4px; - padding: 2px 8px; - transition: background-color .3s var(--n-bezier); - background-color: transparent; - border-radius: var(--n-link-border-radius); - `,[F("active",` - background-color: var(--n-link-color); - `)])]),S("anchor-link-background",` - position: absolute; - left: calc(var(--n-rail-width) / 2); - width: 100%; - background-color: var(--n-link-color); - transition: - top .15s var(--n-bezier), - max-width .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("anchor-rail",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - width: var(--n-rail-width); - border-radius: calc(var(--n-rail-width) / 2); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("bar",` - position: absolute; - left: 0; - width: var(--n-rail-width); - height: 21px; - background-color: #0000; - transition: - top .15s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[F("active",{backgroundColor:"var(--n-rail-color-active)"})])]),S("anchor-link",` - padding: var(--n-link-padding); - position: relative; - line-height: 1.5; - font-size: var(--n-link-font-size); - min-height: 1.5em; - display: flex; - flex-direction: column; - `,[F("active",[O(">",[M("title",` - color: var(--n-link-text-color-active); - `)])]),M("title",` - outline: none; - max-width: 100%; - text-decoration: none; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - cursor: pointer; - display: inline-block; - padding-right: 16px; - transition: color .3s var(--n-bezier); - color: var(--n-link-text-color); - `,[O("&:hover, &:focus",` - color: var(--n-link-text-color-hover); - `),O("&:active",` - color: var(--n-link-text-color-pressed); - `)])])]),uu="n-anchor",L2={title:String,href:String},KK=J({name:"AnchorLink",props:L2,setup(e,{slots:t}){const n=D(null),r=Le(uu),o=xe(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);ED(uu,"collectedLinkHrefs",o),LD(uu,"titleEls",()=>n.value),rt(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:s}=r.mergedClsPrefix;return u("div",{class:[`${s}-anchor-link`,i.value&&`${s}-anchor-link--active`]},u("a",{ref:n,class:[`${s}-anchor-link__title`],href:e.href,title:rc(e.title),onClick:a},e.title),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function qK(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const r0={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},YK=Nn(r0),XK=J({name:"BaseAnchor",props:Object.assign(Object.assign({},r0),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=D(null),o=D(null),i=D(null),a=D(null),l=P(()=>e.type==="block"),s=P(()=>!l.value&&e.showRail);function c(){const{value:p}=i,{value:b}=o;p&&(p.style.transition="none"),b&&(b.style.transition="none"),n&&n.forEach(m=>{m.style.transition="none"}),_t(()=>{const{value:m}=i,{value:g}=o;m&&(m.offsetWidth,m.style.transition=""),g&&(g.offsetWidth,g.style.transition=""),n&&n.forEach(y=>{y.offsetWidth,y.style.transition=""})})}function d(p,b=!0){const{value:m}=i,{value:g}=o,{value:y}=a;if(!y||!m)return;b||(m.style.transition="none",g&&(g.style.transition="none"));const{offsetHeight:C,offsetWidth:x}=p,{top:w,left:k}=p.getBoundingClientRect(),{top:_,left:T}=y.getBoundingClientRect(),$=w-_,R=k-T;m.style.top=`${$}px`,m.style.height=`${C}px`,g&&(g.style.top=`${$}px`,g.style.height=`${C}px`,g.style.maxWidth=`${x+R}px`),m.offsetHeight,g&&g.offsetHeight,b||(m.style.transition="",g&&(g.style.transition=""))}function f(p,b=!0){const m=/^#([^#]+)$/.exec(p);if(!m)return;const g=document.getElementById(m[1]);!g||(r.value=p,g.scrollIntoView(),b||c(),h())}const h=xs(()=>v(!0),128);function v(p=!0){var b;const m=[],g=yb((b=e.offsetTarget)!==null&&b!==void 0?b:document);t.forEach(k=>{const _=/#([^#]+)$/.exec(k);if(!_)return;const T=document.getElementById(_[1]);if(T&&g){const{top:$,height:R}=qK(T,g);m.push({top:$,height:R,href:k})}}),m.sort((k,_)=>k.top>_.top?1:(k.top===_.top&&k.height<_.height,-1));const y=r.value,{bound:C,ignoreGap:x}=e,w=m.reduce((k,_)=>_.top+_.height<0?x?_:k:_.top<=C?k===null?_:_.top===k.top?_.href===y?_:k:_.top>k.top?_:k:k,null);p||c(),w?r.value=w.href:r.value=null}return nt(uu,{activeHref:r,mergedClsPrefix:xe(e,"mergedClsPrefix"),updateBarPosition:d,setActiveHref:f,collectedLinkHrefs:t,titleEls:n}),Mt(()=>{document.addEventListener("scroll",h,!0),f(window.location.hash),v(!1)}),nh(()=>{f(window.location.hash),v(!1)}),Dt(()=>{document.removeEventListener("scroll",h,!0)}),rt(r,p=>{if(p===null){const{value:b}=o;b&&!l.value&&(b.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:f,activeHref:r,isBlockType:l,mergedShowRail:s}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=u("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?u("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?u("div",{class:`${t}-anchor-rail`},u("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?u(rn,null,{default:()=>i}):i}}),N2=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{affix:Boolean}),uh),r0),GK=J({name:"Anchor",props:N2,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Anchor","-anchor",WK,UK,e,n),i=D(null),a=P(()=>{const{self:{railColor:s,linkColor:c,railColorActive:d,linkTextColor:f,linkTextColorHover:h,linkTextColorPressed:v,linkTextColorActive:p,linkFontSize:b,railWidth:m,linkPadding:g,borderRadius:y},common:{cubicBezierEaseInOut:C}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":b,"--n-link-text-color":f,"--n-link-text-color-hover":h,"--n-link-text-color-active":p,"--n-link-text-color-pressed":v,"--n-link-padding":g,"--n-bezier":C,"--n-rail-color":s,"--n-rail-color-active":d,"--n-rail-width":m}}),l=r?Je("anchor",void 0,a,e):void 0;return{scrollTo(s){var c;(c=i.value)===null||c===void 0||c.setActiveHref(s)},renderAnchor:()=>(l==null||l.onRender(),u(XK,Object.assign({ref:i,style:r?void 0:a.value,class:l==null?void 0:l.themeClass.value},mn(e,YK),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?u(v2,Object.assign({},mn(this,eW)),{default:this.renderAnchor}):this.renderAnchor()}});function $f(e){return e.type==="group"}function H2(e){return e.type==="ignored"}function xv(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function hh(e,t){return{getIsGroup:$f,getIgnored:H2,getKey(r){return $f(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function ZK(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if($f(l)){const s=o(l[r]);s.length&&a.push(Object.assign({},l,{[r]:s}))}else{if(H2(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function QK(e,t,n){const r=new Map;return e.forEach(o=>{$f(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}const JK=rr&&"chrome"in window;rr&&navigator.userAgent.includes("Firefox");const j2=rr&&navigator.userAgent.includes("Safari")&&!JK,eq={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},tq=e=>{const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:c,warningColorHover:d,errorColor:f,errorColorHover:h,borderRadius:v,lineHeight:p,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,actionColor:_,clearColor:T,clearColorHover:$,clearColorPressed:R,placeholderColor:I,placeholderColorDisabled:z,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E}=e;return Object.assign(Object.assign({},eq),{countTextColorDisabled:r,countTextColor:n,heightTiny:C,heightSmall:x,heightMedium:w,heightLarge:k,fontSizeTiny:b,fontSizeSmall:m,fontSizeMedium:g,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:v,iconSize:"16px",groupLabelColor:_,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:I,placeholderColorDisabled:z,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ft(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ft(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${ft(f,{alpha:.2})}`,caretColorError:f,clearColor:T,clearColorHover:$,clearColorPressed:R,iconColor:A,iconColorDisabled:L,iconColorHover:j,iconColorPressed:E,suffixTextColor:t})},nq={name:"Input",common:et,self:tq},kr=nq,V2="n-input";function rq(e){let t=0;for(const n of e)t++;return t}function Jc(e){return e===""||e==null}function oq(e){const t=D(null);function n(){const{value:i}=e;if(!(i!=null&&i.focus)){o();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:c,beforeText:d,afterText:f}=a;let h=s.length;if(s.endsWith(f))h=s.length-f.length;else if(s.startsWith(d))h=d.length;else{const v=d[c-1],p=s.indexOf(v,c-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function o(){t.value=null}return rt(e,o),{recordCursor:n,restoreCursor:r}}const yC=J({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Le(V2),a=P(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||rq)(l)});return()=>{const{value:l}=r,{value:s}=n;return u("span",{class:`${o.value}-input-word-count`},Ra(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),iq=S("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[M("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),M("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),M("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[O("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),O("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),O("&:-webkit-autofill ~",[M("placeholder","display: none;")])]),F("round",[pt("textarea","border-radius: calc(var(--n-height) / 2);")]),M("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[O("span",` - width: 100%; - display: inline-block; - `)]),F("textarea",[M("placeholder","overflow: visible;")]),pt("autosize","width: 100%;"),F("autosize",[M("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),S("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),M("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),M("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[O("+",[M("placeholder",` - display: flex; - align-items: center; - `)])]),pt("textarea",[M("placeholder","white-space: nowrap;")]),M("eye",` - transition: color .3s var(--n-bezier); - `),F("textarea","width: 100%;",[S("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),F("resizable",[S("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),M("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - `),M("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),F("pair",[M("input-el, placeholder","text-align: center;"),M("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[S("icon",` - color: var(--n-icon-color); - `),S("base-icon",` - color: var(--n-icon-color); - `)])]),F("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[M("border","border: var(--n-border-disabled);"),M("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),M("placeholder","color: var(--n-placeholder-color-disabled);"),M("separator","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("base-icon",` - color: var(--n-icon-color-disabled); - `)]),S("input-word-count",` - color: var(--n-count-text-color-disabled); - `),M("suffix, prefix","color: var(--n-text-color-disabled);",[S("icon",` - color: var(--n-icon-color-disabled); - `),S("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),pt("disabled",[M("eye",` - display: flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); - cursor: pointer; - `,[O("&:hover",` - color: var(--n-icon-color-hover); - `),O("&:active",` - color: var(--n-icon-color-pressed); - `)]),O("&:hover",[M("state-border","border: var(--n-border-hover);")]),F("focus","background-color: var(--n-color-focus);",[M("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),M("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),M("state-border",` - border-color: #0000; - z-index: 1; - `),M("prefix","margin-right: 4px;"),M("suffix",` - margin-left: 4px; - `),M("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[S("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),S("base-clear",` - font-size: var(--n-icon-size); - `,[M("placeholder",[S("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),O(">",[S("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("base-icon",` - font-size: var(--n-icon-size); - `)]),S("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>F(`${e}-status`,[pt("disabled",[S("base-loading",` - color: var(--n-loading-color-${e}) - `),M("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),M("state-border",` - border: var(--n-border-${e}); - `),O("&:hover",[M("state-border",` - border: var(--n-border-hover-${e}); - `)]),O("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),F("focus",` - background-color: var(--n-color-focus-${e}); - `,[M("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),aq=S("input",[F("disabled",[M("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),U2=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:Boolean,showPasswordToggle:Boolean}),In=J({name:"Input",props:U2,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Input","-input",iq,kr,e,t);j2&&Vr("-input-safari",aq,t);const a=D(null),l=D(null),s=D(null),c=D(null),d=D(null),f=D(null),h=D(null),v=oq(h),p=D(null),{localeRef:b}=yn("Input"),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=xn(e),{mergedSizeRef:x,mergedDisabledRef:w,mergedStatusRef:k}=C,_=D(!1),T=D(!1),$=D(!1),R=D(!1);let I=null;const z=P(()=>{const{placeholder:le,pair:Ie}=e;return Ie?Array.isArray(le)?le:le===void 0?["",""]:[le,le]:le===void 0?[b.value.placeholder]:[le]}),A=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[0]))&&Ge[0]}),L=P(()=>{const{value:le}=$,{value:Ie}=y,{value:Ge}=z;return!le&&Ge[1]&&(Jc(Ie)||Array.isArray(Ie)&&Jc(Ie[1]))}),j=it(()=>e.internalForceFocus||_.value),E=it(()=>{if(w.value||e.readonly||!e.clearable||!j.value&&!T.value)return!1;const{value:le}=y,{value:Ie}=j;return e.pair?!!(Array.isArray(le)&&(le[0]||le[1]))&&(T.value||Ie):!!le&&(T.value||Ie)}),U=P(()=>{const{showPasswordOn:le}=e;if(le)return le;if(e.showPasswordToggle)return"click"}),K=D(!1),Q=P(()=>{const{textDecoration:le}=e;return le?Array.isArray(le)?le.map(Ie=>({textDecoration:Ie})):[{textDecoration:le}]:["",""]}),V=D(void 0),re=()=>{var le,Ie;if(e.type==="textarea"){const{autosize:Ge}=e;if(Ge&&(V.value=(Ie=(le=p.value)===null||le===void 0?void 0:le.$el)===null||Ie===void 0?void 0:Ie.offsetWidth),!l.value||typeof Ge=="boolean")return;const{paddingTop:gt,paddingBottom:be,lineHeight:De}=window.getComputedStyle(l.value),Qe=Number(gt.slice(0,-2)),ot=Number(be.slice(0,-2)),lt=Number(De.slice(0,-2)),{value:Kt}=s;if(!Kt)return;if(Ge.minRows){const Vt=Math.max(Ge.minRows,1),Re=`${Qe+ot+lt*Vt}px`;Kt.style.minHeight=Re}if(Ge.maxRows){const Vt=`${Qe+ot+lt*Ge.maxRows}px`;Kt.style.maxHeight=Vt}}},ee=P(()=>{const{maxlength:le}=e;return le===void 0?void 0:Number(le)});Mt(()=>{const{value:le}=y;Array.isArray(le)||ze(le)});const ue=Ko().proxy;function de(le){const{onUpdateValue:Ie,"onUpdate:value":Ge,onInput:gt}=e,{nTriggerFormInput:be}=C;Ie&&he(Ie,le),Ge&&he(Ge,le),gt&&he(gt,le),m.value=le,be()}function Ce(le){const{onChange:Ie}=e,{nTriggerFormChange:Ge}=C;Ie&&he(Ie,le),m.value=le,Ge()}function we(le){const{onBlur:Ie}=e,{nTriggerFormBlur:Ge}=C;Ie&&he(Ie,le),Ge()}function me(le){const{onFocus:Ie}=e,{nTriggerFormFocus:Ge}=C;Ie&&he(Ie,le),Ge()}function Oe(le){const{onClear:Ie}=e;Ie&&he(Ie,le)}function ke(le){const{onInputBlur:Ie}=e;Ie&&he(Ie,le)}function pe(le){const{onInputFocus:Ie}=e;Ie&&he(Ie,le)}function Me(){const{onDeactivate:le}=e;le&&he(le)}function H(){const{onActivate:le}=e;le&&he(le)}function W(le){const{onClick:Ie}=e;Ie&&he(Ie,le)}function Y(le){const{onWrapperFocus:Ie}=e;Ie&&he(Ie,le)}function ce(le){const{onWrapperBlur:Ie}=e;Ie&&he(Ie,le)}function X(){$.value=!0}function B(le){$.value=!1,le.target===f.value?N(le,1):N(le,0)}function N(le,Ie=0,Ge="input"){const gt=le.target.value;if(ze(gt),le instanceof InputEvent&&!le.isComposing&&($.value=!1),e.type==="textarea"){const{value:De}=p;De&&De.syncUnifiedContainer()}if(I=gt,$.value)return;v.recordCursor();const be=te(gt);if(be)if(!e.pair)Ge==="input"?de(gt):Ce(gt);else{let{value:De}=y;Array.isArray(De)?De=[De[0],De[1]]:De=["",""],De[Ie]=gt,Ge==="input"?de(De):Ce(De)}ue.$forceUpdate(),be||_t(v.restoreCursor)}function te(le){const{countGraphemes:Ie,maxlength:Ge,minlength:gt}=e;if(Ie){let De;if(Ge!==void 0&&(De===void 0&&(De=Ie(le)),De>Number(Ge))||gt!==void 0&&(De===void 0&&(De=Ie(le)),De{gt.preventDefault(),xt("mouseup",document,Ie)};if(St("mouseup",document,Ie),U.value!=="mousedown")return;K.value=!0;const Ge=()=>{K.value=!1,xt("mouseup",document,Ge)};St("mouseup",document,Ge)}function Xe(le){var Ie;switch((Ie=e.onKeydown)===null||Ie===void 0||Ie.call(e,le),le.key){case"Escape":We();break;case"Enter":Ve(le);break}}function Ve(le){var Ie,Ge;if(e.passivelyActivated){const{value:gt}=R;if(gt){e.internalDeactivateOnEnter&&We();return}le.preventDefault(),e.type==="textarea"?(Ie=l.value)===null||Ie===void 0||Ie.focus():(Ge=d.value)===null||Ge===void 0||Ge.focus()}}function We(){e.passivelyActivated&&(R.value=!1,_t(()=>{var le;(le=a.value)===null||le===void 0||le.focus()}))}function G(){var le,Ie,Ge;w.value||(e.passivelyActivated?(le=a.value)===null||le===void 0||le.focus():((Ie=l.value)===null||Ie===void 0||Ie.focus(),(Ge=d.value)===null||Ge===void 0||Ge.focus()))}function q(){var le;!((le=a.value)===null||le===void 0)&&le.contains(document.activeElement)&&document.activeElement.blur()}function _e(){var le,Ie;(le=l.value)===null||le===void 0||le.select(),(Ie=d.value)===null||Ie===void 0||Ie.select()}function Be(){w.value||(l.value?l.value.focus():d.value&&d.value.focus())}function Ee(){const{value:le}=a;(le==null?void 0:le.contains(document.activeElement))&&le!==document.activeElement&&We()}function ae(le){if(e.type==="textarea"){const{value:Ie}=l;Ie==null||Ie.scrollTo(le)}else{const{value:Ie}=d;Ie==null||Ie.scrollTo(le)}}function ze(le){const{type:Ie,pair:Ge,autosize:gt}=e;if(!Ge&>)if(Ie==="textarea"){const{value:be}=s;be&&(be.textContent=(le!=null?le:"")+`\r -`)}else{const{value:be}=c;be&&(le?be.textContent=le:be.innerHTML=" ")}}function ie(){re()}const Te=D({top:"0"});function se(le){var Ie;const{scrollTop:Ge}=le.target;Te.value.top=`${-Ge}px`,(Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer()}let $e=null;Ft(()=>{const{autosize:le,type:Ie}=e;le&&Ie==="textarea"?$e=rt(y,Ge=>{!Array.isArray(Ge)&&Ge!==I&&ze(Ge)}):$e==null||$e()});let oe=null;Ft(()=>{e.type==="textarea"?oe=rt(y,le=>{var Ie;!Array.isArray(le)&&le!==I&&((Ie=p.value)===null||Ie===void 0||Ie.syncUnifiedContainer())}):oe==null||oe()}),nt(V2,{mergedValueRef:y,maxlengthRef:ee,mergedClsPrefixRef:t,countGraphemesRef:xe(e,"countGraphemes")});const Fe={wrapperElRef:a,inputElRef:d,textareaElRef:l,isCompositing:$,focus:G,blur:q,select:_e,deactivate:Ee,activate:Be,scrollTo:ae},Ne=Zt("Input",o,t),Ze=P(()=>{const{value:le}=x,{common:{cubicBezierEaseInOut:Ie},self:{color:Ge,borderRadius:gt,textColor:be,caretColor:De,caretColorError:Qe,caretColorWarning:ot,textDecorationColor:lt,border:Kt,borderDisabled:Vt,borderHover:Re,borderFocus:Ye,placeholderColor:at,placeholderColorDisabled:kt,lineHeightTextarea:Ut,colorDisabled:At,colorFocus:Ur,textColorDisabled:Et,boxShadowFocus:cn,iconSize:$o,colorFocusWarning:Qo,boxShadowFocusWarning:Jo,borderWarning:ei,borderFocusWarning:Ni,borderHoverWarning:kh,colorFocusError:Rh,boxShadowFocusError:Ph,borderError:$h,borderFocusError:Th,borderHoverError:Oh,clearSize:zh,clearColor:Mh,clearColorHover:GO,clearColorPressed:ZO,iconColor:QO,iconColorDisabled:JO,suffixTextColor:ez,countTextColor:tz,countTextColorDisabled:nz,iconColorHover:rz,iconColorPressed:oz,loadingColor:iz,loadingColorError:az,loadingColorWarning:lz,[ye("padding",le)]:sz,[ye("fontSize",le)]:cz,[ye("height",le)]:dz}}=i.value,{left:uz,right:fz}=yi(sz);return{"--n-bezier":Ie,"--n-count-text-color":tz,"--n-count-text-color-disabled":nz,"--n-color":Ge,"--n-font-size":cz,"--n-border-radius":gt,"--n-height":dz,"--n-padding-left":uz,"--n-padding-right":fz,"--n-text-color":be,"--n-caret-color":De,"--n-text-decoration-color":lt,"--n-border":Kt,"--n-border-disabled":Vt,"--n-border-hover":Re,"--n-border-focus":Ye,"--n-placeholder-color":at,"--n-placeholder-color-disabled":kt,"--n-icon-size":$o,"--n-line-height-textarea":Ut,"--n-color-disabled":At,"--n-color-focus":Ur,"--n-text-color-disabled":Et,"--n-box-shadow-focus":cn,"--n-loading-color":iz,"--n-caret-color-warning":ot,"--n-color-focus-warning":Qo,"--n-box-shadow-focus-warning":Jo,"--n-border-warning":ei,"--n-border-focus-warning":Ni,"--n-border-hover-warning":kh,"--n-loading-color-warning":lz,"--n-caret-color-error":Qe,"--n-color-focus-error":Rh,"--n-box-shadow-focus-error":Ph,"--n-border-error":$h,"--n-border-focus-error":Th,"--n-border-hover-error":Oh,"--n-loading-color-error":az,"--n-clear-color":Mh,"--n-clear-size":zh,"--n-clear-color-hover":GO,"--n-clear-color-pressed":ZO,"--n-icon-color":QO,"--n-icon-color-hover":rz,"--n-icon-color-pressed":oz,"--n-icon-color-disabled":JO,"--n-suffix-text-color":ez}}),Ue=r?Je("input",P(()=>{const{value:le}=x;return le[0]}),Ze,e):void 0;return Object.assign(Object.assign({},Fe),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Ne,uncontrolledValue:m,mergedValue:y,passwordVisible:K,mergedPlaceholder:z,showPlaceholder1:A,showPlaceholder2:L,mergedFocus:j,isComposing:$,activated:R,showClearButton:E,mergedSize:x,mergedDisabled:w,textDecorationStyle:Q,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:U,placeholderStyle:Te,mergedStatus:k,textAreaScrollContainerWidth:V,handleTextAreaScroll:se,handleCompositionStart:X,handleCompositionEnd:B,handleInput:N,handleInputBlur:ve,handleInputFocus:Z,handleWrapperBlur:fe,handleWrapperFocus:ne,handleMouseEnter:ct,handleMouseLeave:dt,handleMouseDown:qe,handleChange:Pe,handleClick:Ae,handleClear:Ke,handlePasswordToggleClick:ut,handlePasswordToggleMousedown:je,handleWrapperKeydown:Xe,handleTextAreaMirrorResize:ie,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Ze,themeClass:Ue==null?void 0:Ue.themeClass,onRender:Ue==null?void 0:Ue.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:o,type:i,countGraphemes:a,onRender:l}=this,s=this.$slots;return l==null||l(),u("div",{ref:"wrapperElRef",class:[`${n}-input`,o,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeydown},u("div",{class:`${n}-input-wrapper`},Ct(s.prefix,c=>c&&u("div",{class:`${n}-input__prefix`},c)),i==="textarea"?u(rn,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:f}=this,h={width:this.autosize&&f&&`${f}px`};return u($t,null,u("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,h],onBlur:this.handleInputBlur,onFocus:v=>this.handleInputFocus(v,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,h],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?u(Dr,{onResize:this.handleTextAreaMirrorResize},{default:()=>u("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):u("div",{class:`${n}-input__input`},u("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,0),onInput:c=>this.handleInput(c,0),onChange:c=>this.handleChange(c,0)})),this.showPlaceholder1?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[0])):null,this.autosize?u("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&Ct(s.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?u("div",{class:`${n}-input__suffix`},[Ct(s["clear-icon-placeholder"],d=>(this.clearable||d)&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,h;return(h=(f=this.$slots)["clear-icon"])===null||h===void 0?void 0:h.call(f)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?u(A2,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?u(yC,null,{default:d=>{var f;return(f=s.count)===null||f===void 0?void 0:f.call(s,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?u("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?vt(s["password-visible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(m2,null)})]):vt(s["password-invisible-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(rW,null)})])):null]):null)),this.pair?u("span",{class:`${n}-input__separator`},vt(s.separator,()=>[this.separator])):null,this.pair?u("div",{class:`${n}-input-wrapper`},u("div",{class:`${n}-input__input`},u("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>this.handleInputFocus(c,1),onInput:c=>this.handleInput(c,1),onChange:c=>this.handleChange(c,1)}),this.showPlaceholder2?u("div",{class:`${n}-input__placeholder`},u("span",null,this.mergedPlaceholder[1])):null),Ct(s.suffix,c=>(this.clearable||c)&&u("div",{class:`${n}-input__suffix`},[this.clearable&&u(Wg,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=s["clear-icon"])===null||d===void 0?void 0:d.call(s)},placeholder:()=>{var d;return(d=s["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(s)}}),c]))):null,this.mergedBordered?u("div",{class:`${n}-input__border`}):null,this.mergedBordered?u("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?u(yC,null,{default:c=>{var d;const{renderCount:f}=this;return f?f(c):(d=s.count)===null||d===void 0?void 0:d.call(s,c)}}):null)}}),lq=S("input-group",` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[O(">",[S("input",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),S("button",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[M("state-border, border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),O("&:not(:first-child)",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[M("state-border, border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),O("*",[O("&:not(:last-child)",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[O(">",[S("input",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),S("base-selection-tags",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),O("&:not(:first-child)",` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[O(">",[S("input",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection",[S("base-selection-label",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),S("base-selection-tags",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),M("box-shadow, border, state-border",` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),W2={},K2=J({name:"InputGroup",props:W2,setup(e){const{mergedClsPrefixRef:t}=He(e);return Vr("-input-group",lq,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-input-group`},this.$slots)}}),sq=S("input-group-label",` - position: relative; - user-select: none; - -webkit-user-select: none; - box-sizing: border-box; - padding: 0 12px; - display: inline-block; - border-radius: var(--n-border-radius); - background-color: var(--n-group-label-color); - color: var(--n-group-label-text-color); - font-size: var(--n-font-size); - line-height: var(--n-height); - height: var(--n-height); - flex-shrink: 0; - white-space: nowrap; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[M("border",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-group-label-border); - transition: border-color .3s var(--n-bezier); - `)]),q2=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),cq=J({name:"InputGroupLabel",props:q2,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Input","-input-group-label",sq,kr,e,n),i=P(()=>{const{size:l}=e,{common:{cubicBezierEaseInOut:s},self:{groupLabelColor:c,borderRadius:d,groupLabelTextColor:f,lineHeight:h,groupLabelBorder:v,[ye("fontSize",l)]:p,[ye("height",l)]:b}}=o.value;return{"--n-bezier":s,"--n-group-label-color":c,"--n-group-label-border":v,"--n-border-radius":d,"--n-group-label-text-color":f,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),a=r?Je("input-group-label",P(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?u("div",{class:`${r}-input-group-label__border`}):null)}});function dq(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const uq={name:"AutoComplete",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:dq},fq=uq;function hq(e){return e.map(Y2)}function Y2(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>Y2(o))}:e}const vq=O([S("auto-complete",` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),S("auto-complete-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),X2=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,menuProps:Object,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),pq=J({name:"AutoComplete",props:X2,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,c=D(null),d=D(null),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=D(!1),b=D(!1),m=Se("AutoComplete","-auto-complete",vq,fq,e,r),g=P(()=>hq(e.options)),y=P(()=>{const{getShow:de}=e;return de?de(v.value||""):!!v.value}),C=P(()=>y.value&&p.value&&!!g.value.length),x=P(()=>to(g.value,hh("value","children")));function w(de){const{"onUpdate:value":Ce,onUpdateValue:we,onInput:me}=e,{nTriggerFormInput:Oe,nTriggerFormChange:ke}=i;we&&he(we,de),Ce&&he(Ce,de),me&&he(me,de),f.value=de,Oe(),ke()}function k(de){const{onSelect:Ce}=e,{nTriggerFormInput:we,nTriggerFormChange:me}=i;Ce&&he(Ce,de),we(),me()}function _(de){const{onBlur:Ce}=e,{nTriggerFormBlur:we}=i;Ce&&he(Ce,de),we()}function T(de){const{onFocus:Ce}=e,{nTriggerFormFocus:we}=i;Ce&&he(Ce,de),we()}function $(){b.value=!0}function R(){window.setTimeout(()=>{b.value=!1},0)}function I(de){var Ce,we,me;switch(de.key){case"Enter":if(!b.value){const Oe=(Ce=d.value)===null||Ce===void 0?void 0:Ce.getPendingTmNode();Oe&&(z(Oe.rawNode),de.preventDefault())}break;case"ArrowDown":(we=d.value)===null||we===void 0||we.next();break;case"ArrowUp":(me=d.value)===null||me===void 0||me.prev();break}}function z(de){(de==null?void 0:de.value)!==void 0&&(k(de.value),e.clearAfterSelect?w(null):de.label!==void 0&&w(de.label),p.value=!1,e.blurAfterSelect&&Q())}function A(){w(null)}function L(de){p.value=!0,T(de)}function j(de){p.value=!1,_(de)}function E(de){p.value=!0,w(de)}function U(de){z(de.rawNode)}function K(de){var Ce;!((Ce=c.value)===null||Ce===void 0)&&Ce.contains(ur(de))||(p.value=!1)}function Q(){var de,Ce;!((de=c.value)===null||de===void 0)&&de.contains(document.activeElement)&&((Ce=document.activeElement)===null||Ce===void 0||Ce.blur())}const V=P(()=>{const{common:{cubicBezierEaseInOut:de},self:{menuBoxShadow:Ce}}=m.value;return{"--n-menu-box-shadow":Ce,"--n-bezier":de}}),re=o?Je("auto-complete",void 0,V,e):void 0,ee=D(null),ue={focus:()=>{var de;(de=ee.value)===null||de===void 0||de.focus()},blur:()=>{var de;(de=ee.value)===null||de===void 0||de.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:ee,uncontrolledValue:f,mergedValue:v,isMounted:An(),adjustedTo:Lt(e),menuInstRef:d,triggerElRef:c,treeMate:x,mergedSize:a,mergedDisabled:l,active:C,mergedStatus:s,handleClear:A,handleFocus:L,handleBlur:j,handleInput:E,handleToggle:U,handleClickOutsideMenu:K,handleCompositionStart:$,handleCompositionEnd:R,handleKeyDown:I,mergedTheme:m,cssVars:o?void 0:V,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>{if(this.$slots.default)return Mu(this.$slots,"default",{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return u(In,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement,width:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return sn(u(cc,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n==null?void 0:n.class],style:[n==null?void 0:n.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle})),[[fr,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),gl=rr&&"loading"in document.createElement("img"),gq=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},wv=new WeakMap,Cv=new WeakMap,Sv=new WeakMap,G2=(e,t,n)=>{if(!e)return()=>{};const r=gq(t),{root:o}=r.options;let i;const a=wv.get(o);a?i=a:(i=new Map,wv.set(o,i));let l,s;i.has(r.hash)?(s=i.get(r.hash),s[1].has(e)||(l=s[0],s[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(h=>{if(h.isIntersecting){const v=Cv.get(h.target),p=Sv.get(h.target);v&&v(),p&&(p.value=!0)}})},r.options),l.observe(e),s=[l,new Set([e])],i.set(r.hash,s));let c=!1;const d=()=>{c||(Cv.delete(e),Sv.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(r.hash),i.size||wv.delete(o))};return Cv.set(e,d),Sv.set(e,n),d},mq=e=>{const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:c,color:ht(r,n),colorModal:ht(d,n),colorPopover:ht(f,n)}},bq={name:"Avatar",common:et,self:mq},Z2=bq,Q2="n-avatar-group",yq=S("avatar",` - width: var(--n-merged-size); - height: var(--n-merged-size); - color: #FFF; - font-size: var(--n-font-size); - display: inline-flex; - position: relative; - overflow: hidden; - text-align: center; - border: var(--n-border); - border-radius: var(--n-border-radius); - --n-merged-color: var(--n-color); - background-color: var(--n-merged-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[_o(O("&","--n-merged-color: var(--n-color-modal);")),qo(O("&","--n-merged-color: var(--n-color-popover);")),O("img",` - width: 100%; - height: 100%; - `),M("text",` - white-space: nowrap; - display: inline-block; - position: absolute; - left: 50%; - top: 50%; - `),S("icon",` - vertical-align: bottom; - font-size: calc(var(--n-merged-size) - 6px); - `),M("text","line-height: 1.25")]),J2=Object.assign(Object.assign({},Se.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),Kg=J({name:"Avatar",props:J2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1);let o=null;const i=D(null),a=D(null),l=()=>{const{value:C}=i;if(C&&(o===null||o!==C.innerHTML)){o=C.innerHTML;const{value:x}=a;if(x){const{offsetWidth:w,offsetHeight:k}=x,{offsetWidth:_,offsetHeight:T}=C,$=.9,R=Math.min(w/_*$,k/T*$,1);C.style.transform=`translateX(-50%) translateY(-50%) scale(${R})`}}},s=Le(Q2,null),c=P(()=>{const{size:C}=e;if(C)return C;const{size:x}=s||{};return x||"medium"}),d=Se("Avatar","-avatar",yq,Z2,e,t),f=Le(D2,null),h=P(()=>{if(s)return!0;const{round:C,circle:x}=e;return C!==void 0||x!==void 0?C||x:f?f.roundRef.value:!1}),v=P(()=>s?!0:e.bordered||!1),p=C=>{var x;if(!g.value)return;r.value=!0;const{onError:w,imgProps:k}=e;(x=k==null?void 0:k.onError)===null||x===void 0||x.call(k,C),w&&w(C)};rt(()=>e.src,()=>r.value=!1);const b=P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e,{self:{borderRadius:_,fontSize:T,color:$,border:R,colorModal:I,colorPopover:z},common:{cubicBezierEaseInOut:A}}=d.value;let L;return typeof C=="number"?L=`${C}px`:L=d.value.self[ye("height",C)],{"--n-font-size":T,"--n-border":w?R:"none","--n-border-radius":x?"50%":_,"--n-color":k||$,"--n-color-modal":k||I,"--n-color-popover":k||z,"--n-bezier":A,"--n-merged-size":`var(--n-avatar-size-override, ${L})`}}),m=n?Je("avatar",P(()=>{const C=c.value,x=h.value,w=v.value,{color:k}=e;let _="";return C&&(typeof C=="number"?_+=`a${C}`:_+=C[0]),x&&(_+="b"),w&&(_+="c"),k&&(_+=Pa(k)),_}),b,e):void 0,g=D(!e.lazy);Mt(()=>{if(gl)return;let C;const x=Ft(()=>{C==null||C(),C=void 0,e.lazy&&(C=G2(a.value,e.intersectionObserverOptions,g))});Dt(()=>{x(),C==null||C()})});const y=D(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:h,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender,hasLoadError:r,handleError:p,shouldStartLoading:g,loaded:y,mergedOnLoad:C=>{var x;const{onLoad:w,imgProps:k}=e;w==null||w(C),(x=k==null?void 0:k.onLoad)===null||x===void 0||x.call(k,C),y.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,mergedOnLoad:l,shouldStartLoading:s,loaded:c,hasLoadError:d}=this;a==null||a();let f;const h=!c&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?f=this.renderFallback?this.renderFallback():vt(n.fallback,()=>[u("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):f=Ct(n.default,v=>{if(v)return u(Dr,{onResize:this.fitTextTransform},{default:()=>u("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r){const{imgProps:p}=this;return u("img",Object.assign(Object.assign({},p),{loading:gl&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:gl||s||c?r:void 0,onLoad:l,"data-image-src":r,onError:this.handleError,style:[p==null?void 0:p.style,{objectFit:this.objectFit},h?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),u("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},f,i&&h)}}),xq=S("avatar-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[S("avatar",[O("&:not(:first-child)",` - margin-left: var(--n-gap); - `)])]),F("vertical",{flexDirection:"column"},[S("avatar",[O("&:not(:first-child)",` - margin-top: var(--n-gap); - `)])])]),wq=()=>({gap:"-12px"}),Cq={name:"AvatarGroup",common:et,peers:{Avatar:Z2},self:wq},Sq=Cq,eP=Object.assign(Object.assign({},Se.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,size:[String,Number]}),_q=J({name:"AvatarGroup",props:eP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("AvatarGroup","-avatar-group",xq,Sq,e,t);nt(Q2,e);const o=Zt("AvatarGroup",n,t),i=P(()=>{const{max:l}=e;if(l===void 0)return;const{options:s}=e;return s.length>l?s.slice(l-1,s.length):[]}),a=P(()=>{const{options:l,max:s}=e;return s===void 0?l:l.length>s?l.slice(0,s-1):l.length===s?l.slice(0,s):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:P(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return u("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):u(Kg,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):u(Kg,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),kq={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Rq=e=>{const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},kq),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})},Pq={name:"BackTop",common:et,self:Rq},$q=Pq,Tq=u("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},u("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},u("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},u("g",{transform:"translate(120.000000, 4285.000000)"},u("g",{transform:"translate(7.000000, 126.000000)"},u("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},u("g",{transform:"translate(4.000000, 2.000000)"},u("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),u("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),Oq=S("back-top",` - position: fixed; - right: 40px; - bottom: 40px; - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - height: var(--n-height); - min-width: var(--n-width); - box-shadow: var(--n-box-shadow); - background-color: var(--n-color); -`,[$n(),F("transition-disabled",{transition:"none !important"}),S("base-icon",` - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),O("svg",{pointerEvents:"none"}),O("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[S("base-icon",{color:"var(--n-icon-color-hover)"})]),O("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[S("base-icon",{color:"var(--n-icon-color-pressed)"})])]),tP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),zq=J({name:"BackTop",inheritAttrs:!1,props:tP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(!1);Ft(()=>{const{value:x}=r;if(x===null){o.value=!1;return}o.value=x>=e.visibilityHeight});const i=D(!1);rt(o,x=>{var w;i.value&&((w=e["onUpdate:show"])===null||w===void 0||w.call(e,x))});const a=xe(e,"show"),l=wt(a,o),s=D(!0),c=D(null),d=P(()=>({right:`calc(${Ot(e.right)} + ${Sp.value})`,bottom:Ot(e.bottom)}));let f,h;rt(l,x=>{var w,k;i.value&&(x&&((w=e.onShow)===null||w===void 0||w.call(e)),(k=e.onHide)===null||k===void 0||k.call(e))});const v=Se("BackTop","-back-top",Oq,$q,e,t);function p(){var x;if(h)return;h=!0;const w=((x=e.target)===null||x===void 0?void 0:x.call(e))||yb(e.listenTo)||_k(c.value);if(!w)return;f=w===document.documentElement?document:w;const{to:k}=e;typeof k=="string"&&document.querySelector(k),f.addEventListener("scroll",m),m()}function b(){(dw(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function m(){r.value=(dw(f)?document.documentElement:f).scrollTop,i.value||_t(()=>{i.value=!0})}function g(){s.value=!1}Mt(()=>{p(),s.value=l.value}),Dt(()=>{f&&f.removeEventListener("scroll",m)});const y=P(()=>{const{self:{color:x,boxShadow:w,boxShadowHover:k,boxShadowPressed:_,iconColor:T,iconColorHover:$,iconColorPressed:R,width:I,height:z,iconSize:A,borderRadius:L,textColor:j},common:{cubicBezierEaseInOut:E}}=v.value;return{"--n-bezier":E,"--n-border-radius":L,"--n-height":z,"--n-width":I,"--n-box-shadow":w,"--n-box-shadow-hover":k,"--n-box-shadow-pressed":_,"--n-color":x,"--n-icon-size":A,"--n-icon-color":T,"--n-icon-color-hover":$,"--n-icon-color-pressed":R,"--n-text-color":j}}),C=n?Je("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:d,mergedShow:l,isMounted:An(),scrollElement:D(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:g,handleScroll:m,handleClick:b,cssVars:n?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e}=this;return u("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},u(lc,{to:this.to,show:this.mergedShow},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?u("div",Wn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),vt(this.$slots.default,()=>[u(st,{clsPrefix:e},{default:()=>Tq})])):null}})}))}}),Mq=e=>{const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}},Iq={name:"Badge",common:et,self:Mq},Fq=Iq,Dq=O([O("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),S("badge",` - display: inline-flex; - position: relative; - vertical-align: middle; - color: var(--n-color); - font-family: var(--n-font-family); - `,[F("as-is",[S("badge-sup",{position:"static",transform:"translateX(0)"},[$n({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),F("dot",[S("badge-sup",` - height: 8px; - width: 8px; - padding: 0; - min-width: 8px; - left: 100%; - bottom: calc(100% - 4px); - `,[O("::before","border-radius: 4px;")])]),S("badge-sup",` - background: var(--n-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: #FFF; - position: absolute; - height: 18px; - line-height: 18px; - border-radius: 9px; - padding: 0 6px; - text-align: center; - font-size: var(--n-font-size); - transform: translateX(-50%); - left: 100%; - bottom: calc(100% - 9px); - font-variant-numeric: tabular-nums; - z-index: 1; - display: flex; - align-items: center; - `,[$n({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),S("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),O("&::before",` - opacity: 0; - transform: scale(1); - border-radius: 9px; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)])])]),nP=Object.assign(Object.assign({},Se.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),Aq=J({name:"Badge",props:nP,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Badge","-badge",Dq,Fq,e,n),a=D(!1),l=()=>{a.value=!0},s=()=>{a.value=!1},c=P(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&e.value<=0)||!xa(t.value)));Mt(()=>{c.value&&(a.value=!0)});const d=Zt("Badge",o,n),f=P(()=>{const{type:p,color:b}=e,{common:{cubicBezierEaseInOut:m,cubicBezierEaseOut:g},self:{[ye("color",p)]:y,fontFamily:C,fontSize:x}}=i.value;return{"--n-font-size":x,"--n-font-family":C,"--n-color":b||y,"--n-ripple-color":b||y,"--n-bezier":m,"--n-ripple-bezier":g}}),h=r?Je("badge",P(()=>{let p="";const{type:b,color:m}=e;return b&&(p+=b[0]),m&&(p+=Pa(m)),p}),f,e):void 0,v=P(()=>{const{offset:p}=e;if(!p)return;const[b,m]=p,g=typeof b=="number"?`${b}px`:b,y=typeof m=="number"?`${m}px`:m;return{transform:`translate(calc(${d!=null&&d.value?"50%":"-50%"} + ${g}), ${y})`}});return{rtlEnabled:d,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:s,cssVars:r?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender,offsetStyle:v}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n==null||n();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return u("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,u(It,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?u("sup",{class:`${t}-badge-sup`,title:rc(this.value),style:this.offsetStyle},vt(o.value,()=>[this.dot?null:u(MK,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?u($2,{clsPrefix:t}):null):null}))}}),Bq={fontWeightActive:"400"},Eq=e=>{const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Bq),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})},Lq={name:"Breadcrumb",common:et,self:Eq},Nq=Lq,Hq=S("breadcrumb",` - white-space: nowrap; - cursor: default; - line-height: var(--n-item-line-height); -`,[O("ul",` - list-style: none; - padding: 0; - margin: 0; - `),O("a",` - color: inherit; - text-decoration: inherit; - `),S("breadcrumb-item",` - font-size: var(--n-font-size); - transition: color .3s var(--n-bezier); - display: inline-flex; - align-items: center; - `,[S("icon",` - font-size: 18px; - vertical-align: -.2em; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `),O("&:not(:last-child)",[F("clickable",[M("link",` - cursor: pointer; - `,[O("&:hover",` - background-color: var(--n-item-color-hover); - `),O("&:active",` - background-color: var(--n-item-color-pressed); - `)])])]),M("link",` - padding: 4px; - border-radius: var(--n-item-border-radius); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-item-text-color); - position: relative; - `,[O("&:hover",` - color: var(--n-item-text-color-hover); - `,[S("icon",` - color: var(--n-item-text-color-hover); - `)]),O("&:active",` - color: var(--n-item-text-color-pressed); - `,[S("icon",` - color: var(--n-item-text-color-pressed); - `)])]),M("separator",` - margin: 0 8px; - color: var(--n-separator-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - `),O("&:last-child",[M("link",` - font-weight: var(--n-font-weight-active); - cursor: unset; - color: var(--n-item-text-color-active); - `,[S("icon",` - color: var(--n-item-text-color-active); - `)]),M("separator",` - display: none; - `)])])]),rP="n-breadcrumb",oP=Object.assign(Object.assign({},Se.props),{separator:{type:String,default:"/"}}),jq=J({name:"Breadcrumb",props:oP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Breadcrumb","-breadcrumb",Hq,Nq,e,t);nt(rP,{separatorRef:xe(e,"separator"),mergedClsPrefixRef:t});const o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:s,itemTextColorHover:c,itemTextColorPressed:d,itemTextColorActive:f,fontSize:h,fontWeightActive:v,itemBorderRadius:p,itemColorHover:b,itemColorPressed:m,itemLineHeight:g}}=r.value;return{"--n-font-size":h,"--n-bezier":a,"--n-item-text-color":s,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":d,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":b,"--n-item-color-pressed":m,"--n-item-border-radius":p,"--n-font-weight-active":v,"--n-item-line-height":g}}),i=n?Je("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},u("ul",null,this.$slots))}}),Vq=rr?window:null,Uq=(e=Vq)=>{const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}=(e==null?void 0:e.location)||{};return{hash:o,host:i,hostname:a,href:l,origin:s,pathname:c,port:d,protocol:f,search:h}},n=()=>{r.value=t()},r=D(t());return Mt(()=>{e&&(e.addEventListener("popstate",n),e.addEventListener("hashchange",n))}),Qs(()=>{e&&(e.removeEventListener("popstate",n),e.removeEventListener("hashchange",n))}),r},iP={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},Wq=J({name:"BreadcrumbItem",props:iP,setup(e,{slots:t}){const n=Le(rP,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=Uq(),a=P(()=>e.href?"a":"span"),l=P(()=>i.value.href===e.href?"location":null);return()=>{const{value:s}=o;return u("li",{class:[`${s}-breadcrumb-item`,e.clickable&&`${s}-breadcrumb-item--clickable`]},u(a.value,{class:`${s}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),u("span",{class:`${s}-breadcrumb-item__separator`,"aria-hidden":"true"},vt(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function Gi(e){return ht(e,[255,255,255,.16])}function ed(e){return ht(e,[0,0,0,.12])}const aP="n-button-group",Kq={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},qq=e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:f,textColor3:h,primaryColorHover:v,primaryColorPressed:p,borderColor:b,primaryColor:m,baseColor:g,infoColor:y,infoColorHover:C,infoColorPressed:x,successColor:w,successColorHover:k,successColorPressed:_,warningColor:T,warningColorHover:$,warningColorPressed:R,errorColor:I,errorColorHover:z,errorColorPressed:A,fontWeight:L,buttonColor2:j,buttonColor2Hover:E,buttonColor2Pressed:U,fontWeightStrong:K}=e;return Object.assign(Object.assign({},Kq),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:j,colorSecondaryHover:E,colorSecondaryPressed:U,colorTertiary:j,colorTertiaryHover:E,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:E,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:h,textColorHover:v,textColorPressed:p,textColorFocus:v,textColorDisabled:f,textColorText:f,textColorTextHover:v,textColorTextPressed:p,textColorTextFocus:v,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:v,textColorGhostPressed:p,textColorGhostFocus:v,textColorGhostDisabled:f,border:`1px solid ${b}`,borderHover:`1px solid ${v}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${v}`,borderDisabled:`1px solid ${b}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:v,colorPressedPrimary:p,colorFocusPrimary:v,colorDisabledPrimary:m,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:m,textColorTextHoverPrimary:v,textColorTextPressedPrimary:p,textColorTextFocusPrimary:v,textColorTextDisabledPrimary:f,textColorGhostPrimary:m,textColorGhostHoverPrimary:v,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:v,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${v}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${v}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:C,colorPressedInfo:x,colorFocusInfo:C,colorDisabledInfo:y,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:y,textColorTextHoverInfo:C,textColorTextPressedInfo:x,textColorTextFocusInfo:C,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:C,textColorGhostPressedInfo:x,textColorGhostFocusInfo:C,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${C}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${C}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:k,colorPressedSuccess:_,colorFocusSuccess:k,colorDisabledSuccess:w,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:w,textColorTextHoverSuccess:k,textColorTextPressedSuccess:_,textColorTextFocusSuccess:k,textColorTextDisabledSuccess:f,textColorGhostSuccess:w,textColorGhostHoverSuccess:k,textColorGhostPressedSuccess:_,textColorGhostFocusSuccess:k,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${k}`,borderPressedSuccess:`1px solid ${_}`,borderFocusSuccess:`1px solid ${k}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:T,colorHoverWarning:$,colorPressedWarning:R,colorFocusWarning:$,colorDisabledWarning:T,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:T,textColorTextHoverWarning:$,textColorTextPressedWarning:R,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:T,textColorGhostHoverWarning:$,textColorGhostPressedWarning:R,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:T,borderWarning:`1px solid ${T}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${R}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${T}`,rippleColorWarning:T,colorError:I,colorHoverError:z,colorPressedError:A,colorFocusError:z,colorDisabledError:I,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:I,textColorTextHoverError:z,textColorTextPressedError:A,textColorTextFocusError:z,textColorTextDisabledError:f,textColorGhostError:I,textColorGhostHoverError:z,textColorGhostPressedError:A,textColorGhostFocusError:z,textColorGhostDisabledError:I,borderError:`1px solid ${I}`,borderHoverError:`1px solid ${z}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${z}`,borderDisabledError:`1px solid ${I}`,rippleColorError:I,waveOpacity:"0.6",fontWeight:L,fontWeightStrong:K})},Yq={name:"Button",common:et,self:qq},vr=Yq,Xq=O([S("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("color",[M("border",{borderColor:"var(--n-border-color)"}),F("disabled",[M("border",{borderColor:"var(--n-border-color-disabled)"})]),pt("disabled",[O("&:focus",[M("state-border",{borderColor:"var(--n-border-color-focus)"})]),O("&:hover",[M("state-border",{borderColor:"var(--n-border-color-hover)"})]),O("&:active",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})]),F("pressed",[M("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),F("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[M("border",{border:"var(--n-border-disabled)"})]),pt("disabled",[O("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[M("state-border",{border:"var(--n-border-focus)"})]),O("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[M("state-border",{border:"var(--n-border-hover)"})]),O("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})]),F("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[M("state-border",{border:"var(--n-border-pressed)"})])]),F("loading","cursor: wait;"),S("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[F("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),rr&&"MozBoxSizing"in document.createElement("div").style?O("&::moz-focus-inner",{border:0}):null,M("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),M("border",{border:"var(--n-border)"}),M("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),M("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[S("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[kn({top:"50%",originalTransform:"translateY(-50%)"})]),B2()]),M("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[O("~",[M("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),F("block",` - display: flex; - width: 100%; - `),F("dashed",[M("border, state-border",{borderStyle:"dashed !important"})]),F("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),O("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),O("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),lP=Object.assign(Object.assign({},Se.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!j2}}),sP=J({name:"Button",props:lP,setup(e){const t=D(null),n=D(null),r=D(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(aP,{}),{mergedSizeRef:a}=xn({},{defaultSize:"medium",mergedSize:x=>{const{size:w}=e;if(w)return w;const{size:k}=i;if(k)return k;const{mergedSize:_}=x||{};return _?_.value:"medium"}}),l=P(()=>e.focusable&&!e.disabled),s=x=>{var w;l.value||x.preventDefault(),!e.nativeFocusBehavior&&(x.preventDefault(),!e.disabled&&l.value&&((w=t.value)===null||w===void 0||w.focus({preventScroll:!0})))},c=x=>{var w;if(!e.disabled&&!e.loading){const{onClick:k}=e;k&&he(k,x),e.text||(w=n.value)===null||w===void 0||w.play()}},d=x=>{switch(x.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=x=>{switch(x.key){case"Enter":if(!e.keyboard||e.loading){x.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:v,mergedClsPrefixRef:p,mergedRtlRef:b}=He(e),m=Se("Button","-button",Xq,vr,e,p),g=Zt("Button",b,p),y=P(()=>{const x=m.value,{common:{cubicBezierEaseInOut:w,cubicBezierEaseOut:k},self:_}=x,{rippleDuration:T,opacityDisabled:$,fontWeight:R,fontWeightStrong:I}=_,z=a.value,{dashed:A,type:L,ghost:j,text:E,color:U,round:K,circle:Q,textColor:V,secondary:re,tertiary:ee,quaternary:ue,strong:de}=e,Ce={"font-weight":de?I:R};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const me=L==="tertiary",Oe=L==="default",ke=me?"default":L;if(E){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ve||_[ye("textColorText",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorTextPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorTextHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorTextDisabled",ke)]}}else if(j||A){const ve=V||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":ve||_[ye("textColorGhost",ke)],"--n-text-color-hover":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-pressed":ve?ed(ve):_[ye("textColorGhostPressed",ke)],"--n-text-color-focus":ve?Gi(ve):_[ye("textColorGhostHover",ke)],"--n-text-color-disabled":ve||_[ye("textColorGhostDisabled",ke)]}}else if(re){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve,fe=L!=="default"&&L!=="tertiary";we={"--n-color":fe?ft(Z,{alpha:Number(_.colorOpacitySecondary)}):_.colorSecondary,"--n-color-hover":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-pressed":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryPressed)}):_.colorSecondaryPressed,"--n-color-focus":fe?ft(Z,{alpha:Number(_.colorOpacitySecondaryHover)}):_.colorSecondaryHover,"--n-color-disabled":_.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":Z,"--n-text-color-hover":Z,"--n-text-color-pressed":Z,"--n-text-color-focus":Z,"--n-text-color-disabled":Z}}else if(ee||ue){const ve=Oe?_.textColor:me?_.textColorTertiary:_[ye("color",ke)],Z=U||ve;ee?(we["--n-color"]=_.colorTertiary,we["--n-color-hover"]=_.colorTertiaryHover,we["--n-color-pressed"]=_.colorTertiaryPressed,we["--n-color-focus"]=_.colorSecondaryHover,we["--n-color-disabled"]=_.colorTertiary):(we["--n-color"]=_.colorQuaternary,we["--n-color-hover"]=_.colorQuaternaryHover,we["--n-color-pressed"]=_.colorQuaternaryPressed,we["--n-color-focus"]=_.colorQuaternaryHover,we["--n-color-disabled"]=_.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=Z,we["--n-text-color-hover"]=Z,we["--n-text-color-pressed"]=Z,we["--n-text-color-focus"]=Z,we["--n-text-color-disabled"]=Z}else we={"--n-color":U||_[ye("color",ke)],"--n-color-hover":U?Gi(U):_[ye("colorHover",ke)],"--n-color-pressed":U?ed(U):_[ye("colorPressed",ke)],"--n-color-focus":U?Gi(U):_[ye("colorFocus",ke)],"--n-color-disabled":U||_[ye("colorDisabled",ke)],"--n-ripple-color":U||_[ye("rippleColor",ke)],"--n-text-color":V||(U?_.textColorPrimary:me?_.textColorTertiary:_[ye("textColor",ke)]),"--n-text-color-hover":V||(U?_.textColorHoverPrimary:_[ye("textColorHover",ke)]),"--n-text-color-pressed":V||(U?_.textColorPressedPrimary:_[ye("textColorPressed",ke)]),"--n-text-color-focus":V||(U?_.textColorFocusPrimary:_[ye("textColorFocus",ke)]),"--n-text-color-disabled":V||(U?_.textColorDisabledPrimary:_[ye("textColorDisabled",ke)])};let pe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};E?pe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:pe={"--n-border":_[ye("border",ke)],"--n-border-hover":_[ye("borderHover",ke)],"--n-border-pressed":_[ye("borderPressed",ke)],"--n-border-focus":_[ye("borderFocus",ke)],"--n-border-disabled":_[ye("borderDisabled",ke)]};const{[ye("height",z)]:Me,[ye("fontSize",z)]:H,[ye("padding",z)]:W,[ye("paddingRound",z)]:Y,[ye("iconSize",z)]:ce,[ye("borderRadius",z)]:X,[ye("iconMargin",z)]:B,waveOpacity:N}=_,te={"--n-width":Q&&!E?Me:"initial","--n-height":E?"initial":Me,"--n-font-size":H,"--n-padding":Q||E?"initial":K?Y:W,"--n-icon-size":ce,"--n-icon-margin":B,"--n-border-radius":E?"initial":Q||K?Me:X};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":w,"--n-bezier-ease-out":k,"--n-ripple-duration":T,"--n-opacity-disabled":$,"--n-wave-opacity":N},Ce),we),pe),te)}),C=v?Je("button",P(()=>{let x="";const{dashed:w,type:k,ghost:_,text:T,color:$,round:R,circle:I,textColor:z,secondary:A,tertiary:L,quaternary:j,strong:E}=e;w&&(x+="a"),_&&(x+="b"),T&&(x+="c"),R&&(x+="d"),I&&(x+="e"),A&&(x+="f"),L&&(x+="g"),j&&(x+="h"),E&&(x+="i"),$&&(x+="j"+Pa($)),z&&(x+="k"+Pa(z));const{value:U}=a;return x+="l"+U[0],x+="m"+k[0],x}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:g,handleMousedown:s,handleKeydown:f,handleBlur:h,handleKeyup:d,handleClick:c,customColorCssVars:P(()=>{const{color:x}=e;if(!x)return null;const w=Gi(x);return{"--n-border-color":x,"--n-border-color-hover":w,"--n-border-color-pressed":ed(x),"--n-border-color-focus":w,"--n-border-color-disabled":x}}),cssVars:v?void 0:y,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Ct(this.$slots.default,o=>o&&u("span",{class:`${e}-button__content`},o));return u(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,u(Ro,{width:!0},{default:()=>Ct(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&u("span",{class:`${e}-button__icon`,style:{margin:xa(this.$slots.default)?"0":""}},u(ko,null,{default:()=>this.loading?u(eo,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):u("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:u($2,{ref:"waveElRef",clsPrefix:e}),this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?u("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Pt=sP,Jr=sP,fn="0!important",cP="-1px!important";function tl(e){return F(e+"-type",[O("& +",[S("button",{},[F(e+"-type",[M("border",{borderLeftWidth:fn}),M("state-border",{left:cP})])])])])}function nl(e){return F(e+"-type",[O("& +",[S("button",[F(e+"-type",[M("border",{borderTopWidth:fn}),M("state-border",{top:cP})])])])])}const Gq=S("button-group",` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[pt("vertical",{flexDirection:"row"},[pt("rtl",[S("button",[O("&:first-child:not(:last-child)",` - margin-right: ${fn}; - border-top-right-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-left: ${fn}; - border-top-left-radius: ${fn}; - border-bottom-left-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin-left: ${fn}; - margin-right: ${fn}; - border-radius: ${fn}; - `),tl("default"),F("ghost",[tl("primary"),tl("info"),tl("success"),tl("warning"),tl("error")])])])]),F("vertical",{flexDirection:"column"},[S("button",[O("&:first-child:not(:last-child)",` - margin-bottom: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-bottom-left-radius: ${fn}; - border-bottom-right-radius: ${fn}; - `),O("&:last-child:not(:first-child)",` - margin-top: ${fn}; - margin-left: ${fn}; - margin-right: ${fn}; - border-top-left-radius: ${fn}; - border-top-right-radius: ${fn}; - `),O("&:not(:first-child):not(:last-child)",` - margin: ${fn}; - border-radius: ${fn}; - `),nl("default"),F("ghost",[nl("primary"),nl("info"),nl("success"),nl("warning"),nl("error")])])])]),dP={size:{type:String,default:void 0},vertical:Boolean},o0=J({name:"ButtonGroup",props:dP,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);return Vr("-button-group",Gq,t),nt(aP,e),{rtlEnabled:Zt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),Tf=1901,Ia=40,Zq={date:J7,month:dh,year:f2,quarter:u2};function Ao(e,t,n){const r=Zq[n];return Array.isArray(e)?e.some(o=>r(o,t)):r(e,t)}function _v(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{borderRadius:t,fontSize:n,lineHeight:r,textColor2:o,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:c,baseColor:d,hoverColor:f,cardColor:h,modalColor:v,popoverColor:p}=e;return Object.assign(Object.assign({},tY),{borderRadius:t,borderColor:ht(h,l),borderColorModal:ht(v,l),borderColorPopover:ht(p,l),textColor:o,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:n,lineHeight:r,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ht(h,f),cellColorHoverModal:ht(v,f),cellColorHoverPopover:ht(p,f),cellColor:h,cellColorModal:v,cellColorPopover:p,barColor:c})},rY={name:"Calendar",common:et,peers:{Button:vr},self:nY},oY=rY,iY=O([S("calendar",` - line-height: var(--n-line-height); - font-size: var(--n-font-size); - color: var(--n-text-color); - height: 720px; - display: flex; - flex-direction: column; - `,[S("calendar-prev-btn",` - cursor: pointer; - `),S("calendar-next-btn",` - cursor: pointer; - `),S("calendar-header",` - display: flex; - align-items: center; - line-height: 1; - font-size: var(--n-title-font-size); - padding: 0 0 18px 0; - justify-content: space-between; - `,[M("title",` - color: var(--n-title-text-color); - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - `),M("extra",` - display: flex; - align-items: center; - `)]),S("calendar-dates",` - display: grid; - grid-template-columns: repeat(7, minmax(0, 1fr)); - grid-auto-rows: 1fr; - border-radius: var(--n-border-radius); - flex: 1; - border-top: 1px solid; - border-left: 1px solid; - border-color: var(--n-border-color); - transition: border-color .3s var(--n-bezier); - `),S("calendar-cell",` - box-sizing: border-box; - padding: 10px; - border-right: 1px solid; - border-bottom: 1px solid; - border-color: var(--n-border-color); - cursor: pointer; - position: relative; - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&:nth-child(7)",` - border-top-right-radius: var(--n-border-radius); - `),O("&:nth-last-child(7)",` - border-bottom-left-radius: var(--n-border-radius); - `),O("&:last-child",` - border-bottom-right-radius: var(--n-border-radius); - `),O("&:hover",` - background-color: var(--n-cell-color-hover); - `),M("bar",` - position: absolute; - left: 0; - right: 0; - bottom: -1px; - height: 3px; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `),F("selected",[M("bar",` - background-color: var(--n-bar-color); - `)]),S("calendar-date",` - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - color: var(--n-text-color); - `,[M("date",` - color: var(--n-text-color); - `)]),F("disabled, other-month",` - color: var(--n-day-text-color); - `,[S("calendar-date",[M("date",` - color: var(--n-day-text-color); - `)])]),F("disabled",` - cursor: not-allowed; - `),F("current",[S("calendar-date",[M("date",` - color: var(--n-date-text-color-current); - background-color: var(--n-date-color-current); - `)])]),S("calendar-date",` - position: relative; - line-height: 1; - display: flex; - align-items: center; - height: 1em; - justify-content: space-between; - padding-bottom: .75em; - `,[M("date",` - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - margin-left: -0.4em; - width: 1.8em; - height: 1.8em; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),M("day",` - color: var(--n-day-text-color); - transition: color .3s var(--n-bezier); - `)])])]),_o(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-modal); - `),S("calendar-cell",` - border-color: var(--n-border-color-modal); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-modal); - `)])])),qo(S("calendar",[S("calendar-dates",` - border-color: var(--n-border-color-popover); - `),S("calendar-cell",` - border-color: var(--n-border-color-popover); - `,[O("&:hover",` - background-color: var(--n-cell-color-hover-popover); - `)])]))]),uP=Object.assign(Object.assign({},Se.props),{isDateDisabled:Function,value:Number,defaultValue:{type:Number,default:null},onPanelChange:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),aY=J({name:"Calendar",props:uP,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Calendar","-calendar",iY,oY,e,n),{localeRef:i,dateLocaleRef:a}=yn("DatePicker"),l=Date.now(),s=D(Tr((t=e.defaultValue)!==null&&t!==void 0?t:l).valueOf()),c=D(e.defaultValue||null),d=wt(xe(e,"value"),c);function f(g,y){const{onUpdateValue:C,"onUpdate:value":x}=e;C&&he(C,g,y),x&&he(x,g,y),c.value=g}function h(){var g;const y=On(s.value,-1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function v(){var g;const y=On(s.value,1).valueOf();s.value=y,(g=e.onPanelChange)===null||g===void 0||g.call(e,{year:Jt(y),month:qt(y)+1})}function p(){var g;const{value:y}=s,C=Jt(y),x=qt(y),w=Tr(l).valueOf();s.value=w;const k=Jt(w),_=qt(w);(C!==k||x!==_)&&((g=e.onPanelChange)===null||g===void 0||g.call(e,{year:k,month:_+1}))}const b=P(()=>{const{common:{cubicBezierEaseInOut:g},self:{borderColor:y,borderColorModal:C,borderColorPopover:x,borderRadius:w,titleFontSize:k,textColor:_,titleFontWeight:T,titleTextColor:$,dayTextColor:R,fontSize:I,lineHeight:z,dateColorCurrent:A,dateTextColorCurrent:L,cellColorHover:j,cellColor:E,cellColorModal:U,barColor:K,cellColorPopover:Q,cellColorHoverModal:V,cellColorHoverPopover:re}}=o.value;return{"--n-bezier":g,"--n-border-color":y,"--n-border-color-modal":C,"--n-border-color-popover":x,"--n-border-radius":w,"--n-text-color":_,"--n-title-font-weight":T,"--n-title-font-size":k,"--n-title-text-color":$,"--n-day-text-color":R,"--n-font-size":I,"--n-line-height":z,"--n-date-color-current":A,"--n-date-text-color-current":L,"--n-cell-color":E,"--n-cell-color-modal":U,"--n-cell-color-popover":Q,"--n-cell-color-hover":j,"--n-cell-color-hover-modal":V,"--n-cell-color-hover-popover":re,"--n-bar-color":K}}),m=r?Je("calendar",void 0,b,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:d,monthTs:s,dateItems:P(()=>Of(s.value,d.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:p,handlePrevClick:h,handleNextClick:v,mergedTheme:o,cssVars:r?void 0:b,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:s},dateLocale:{locale:c},handleTodayClick:d,handlePrevClick:f,handleNextClick:h,onRender:v}=this;v==null||v();const p=o&&Cl(o).valueOf(),b=Jt(n),m=qt(n)+1;return u("div",{class:[`${t}-calendar`,this.themeClass],style:r},u("div",{class:`${t}-calendar-header`},u("div",{class:`${t}-calendar-header__title`},Ra(a.header,{year:b,month:m},()=>{const g=tn(n,"MMMM",{locale:c});return[l?`${g} ${b}`:`${b} ${g}`]})),u("div",{class:`${t}-calendar-header__extra`},u(o0,null,{default:()=>u($t,null,u(Pt,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>u(e0,null)})}),u(Pt,{size:"small",onClick:d,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>s}),u(Pt,{size:"small",onClick:h,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>u(st,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>u(Ha,null)})}))}))),u("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:g,ts:y,inCurrentMonth:C,isCurrentDate:x},w)=>{var k;const{year:_,month:T,date:$}=g,R=tn(y,"yyyy-MM-dd"),I=!C,z=(e==null?void 0:e(y))===!0,A=p===Cl(y).valueOf();return u("div",{key:`${m}-${w}`,class:[`${t}-calendar-cell`,z&&`${t}-calendar-cell--disabled`,I&&`${t}-calendar-cell--other-month`,z&&`${t}-calendar-cell--not-allowed`,x&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var L;if(z)return;const j=Tr(y).valueOf();this.monthTs=j,I&&((L=this.onPanelChange)===null||L===void 0||L.call(this,{year:Jt(j),month:qt(j)+1})),this.doUpdateValue(y,{year:_,month:T+1,date:$})}},u("div",{class:`${t}-calendar-date`},u("div",{class:`${t}-calendar-date__date`,title:R},$),w<7&&u("div",{class:`${t}-calendar-date__day`,title:R},tn(y,"EEE",{locale:c}))),(k=a.default)===null||k===void 0?void 0:k.call(a,{year:_,month:T+1,date:$}),u("div",{class:`${t}-calendar-cell__bar`}))})))}}),lY=e=>{const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,dividerColor:v}},sY={name:"ColorPicker",common:et,peers:{Input:kr,Button:vr},self:lY},cY=sY;function dY(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Us(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function uY(e){return e=Math.round(e),e>=360?359:e<0?0:e}function fY(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const hY={rgb:{hex(e){return wi(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hex:{rgb(e){return mo(Bn(e))},hsl(e){const[t,n,r,o]=Bn(e);return xi([...up(t,n,r),o])},hsv(e){const[t,n,r,o]=Bn(e);return ya([...dp(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=hl(e);return wi([...fp(t,n,r),o])},rgb(e){const[t,n,r,o]=hl(e);return mo([...fp(t,n,r),o])},hsv(e){const[t,n,r,o]=hl(e);return ya([...kk(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=ba(e);return wi([...ci(t,n,r),o])},rgb(e){const[t,n,r,o]=ba(e);return mo([...ci(t,n,r),o])},hsl(e){const[t,n,r,o]=ba(e);return xi([..._d(t,n,r),o])}}};function fP(e,t,n){return n=n||Us(e),n?n===t?e:hY[n][t](e):null}const ol="12px",vY=12,Zi="6px",pY=6,gY="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",mY=J({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=uY((i.clientX-s-pY)/(l-vY)*360);e.onUpdateHue(c)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,style:{height:ol,borderRadius:Zi}},u("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:gY,height:ol,borderRadius:Zi,position:"relative"},onMousedown:this.handleMouseDown},u("div",{style:{position:"absolute",left:Zi,right:Zi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Zi})`,borderRadius:Zi,width:ol,height:ol}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Zi,width:ol,height:ol}})))))}}),Gl="12px",bY=12,Qi="6px",yY=J({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||!e.rgba||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:s}=a.getBoundingClientRect(),c=(i.clientX-s)/(l-bY);e.onUpdateAlpha(fY(c))}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:P(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:Gl,borderRadius:Qi},onMousedown:this.handleMouseDown},u("div",{style:{borderRadius:Qi,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},u("div",{class:`${e}-color-picker-checkboard`}),u("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&u("div",{style:{position:"absolute",left:Qi,right:Qi,top:0,bottom:0}},u("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${Qi})`,borderRadius:Qi,width:Gl,height:Gl}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:mo(this.rgba),borderRadius:Qi,width:Gl,height:Gl}}))))}}),td="12px",nd="6px",xY=J({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=D(null);function n(i){!t.value||(St("mousemove",document,r),St("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:s,left:c,bottom:d}=a.getBoundingClientRect(),f=(d-i.clientY)/s,h=(i.clientX-c)/l,v=100*(h>1?1:h<0?0:h),p=100*(f>1?1:f<0?0:f);e.onUpdateSV(v,p)}function o(){var i;xt("mousemove",document,r),xt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:P(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},u("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),u("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&u("div",{class:`${e}-color-picker-handle`,style:{width:td,height:td,borderRadius:nd,left:`calc(${this.displayedSv[0]}% - ${nd})`,bottom:`calc(${this.displayedSv[1]}% - ${nd})`}},u("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:nd,width:td,height:td}})))}}),i0="n-color-picker";function wY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),255)):!1}function CY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),360)):!1}function SY(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(parseInt(e),100)):!1}function _Y(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function kY(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(parseInt(e)/100,100)):!1}const RY={paddingSmall:"0 4px"},xC=J({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=D(""),{themeRef:n}=Le(i0,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,s;switch(e.label){case"HEX":s=_Y(a),s&&e.onUpdateValue(a),t.value=r();break;case"H":l=CY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=SY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=kY(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=wY(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return u(In,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:RY,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),PY=J({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?wi:ps)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?ya:pp)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?mo:vp)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?xi:gp)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return u("div",{class:`${e}-color-picker-input`},u("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),u(K2,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?wi:ps)(r)}catch{}return u(xC,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>u(xC,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}}),$Y=J({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Le(i0,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,s=t.label||n.value;return u("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},u("div",{class:`${i}-color-picker-trigger__fill`},u("div",{class:`${i}-color-picker-checkboard`}),u("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?xi(r):""}}),o&&r?u("div",{class:`${i}-color-picker-trigger__value`,style:{color:r[2]>50||r[3]<.5?"black":"white"}},s?s(o):o):null))}}});function TY(e,t){if(t==="hsv"){const[n,r,o,i]=ba(e);return mo([...ci(n,r,o),i])}return e}function OY(e){const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}const zY=J({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=P(()=>e.swatches.map(i=>{const a=Us(i);return{value:i,mode:a,legalValue:TY(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:s}=i;return s||(s="hex",/^[a-zA-Z]+$/.test(l)?l=OY(l):(Yn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),s===a?l:fP(l,a,s)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>u("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(t),onKeydown:n=>this.handleSwatchKeyDown(n,t)},u("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),MY=J({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=Us(e);return Boolean(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,fP(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-color-picker-preview__preview`},u("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),u("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),IY=O([S("color-picker",` - display: inline-block; - box-sizing: border-box; - height: var(--n-height); - font-size: var(--n-font-size); - width: 100%; - position: relative; - `),S("color-picker-panel",` - margin: 4px 0; - width: 240px; - font-size: var(--n-panel-font-size); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - `,[$n(),S("input",` - text-align: center; - `)]),S("color-picker-checkboard",` - background: white; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[O("&::after",` - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 12px 12px; - background-position: 0 0, 0 6px, 6px -6px, -6px 0px; - background-repeat: repeat; - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("color-picker-slider",` - margin-bottom: 8px; - position: relative; - box-sizing: border-box; - `,[M("image",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),O("&::after",` - content: ""; - position: absolute; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - pointer-events: none; - `)]),S("color-picker-handle",` - z-index: 1; - box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); - position: absolute; - background-color: white; - overflow: hidden; - `,[M("fill",` - box-sizing: border-box; - border: 2px solid white; - `)]),S("color-picker-pallete",` - height: 180px; - position: relative; - margin-bottom: 8px; - cursor: crosshair; - `,[M("layer",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("shadowed",` - box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); - `)])]),S("color-picker-preview",` - display: flex; - `,[M("sliders",` - flex: 1 0 auto; - `),M("preview",` - position: relative; - height: 30px; - width: 30px; - margin: 0 0 8px 6px; - border-radius: 50%; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - overflow: hidden; - `),M("fill",` - display: block; - width: 30px; - height: 30px; - `),M("input",` - position: absolute; - top: 0; - left: 0; - width: 30px; - height: 30px; - opacity: 0; - z-index: 1; - `)]),S("color-picker-input",` - display: flex; - align-items: center; - `,[S("input",` - flex-grow: 1; - flex-basis: 0; - `),M("mode",` - width: 72px; - text-align: center; - `)]),S("color-picker-control",` - padding: 12px; - `),S("color-picker-action",` - display: flex; - margin-top: -4px; - border-top: 1px solid var(--n-divider-color); - padding: 8px 12px; - justify-content: flex-end; - `,[S("button","margin-left: 8px;")]),S("color-picker-trigger",` - border: var(--n-border); - height: 100%; - box-sizing: border-box; - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - cursor: pointer; - `,[M("value",` - white-space: nowrap; - position: relative; - `),M("fill",` - border-radius: var(--n-border-radius); - position: absolute; - display: flex; - align-items: center; - justify-content: center; - left: 4px; - right: 4px; - top: 4px; - bottom: 4px; - `),F("disabled","cursor: not-allowed"),S("color-picker-checkboard",` - border-radius: var(--n-border-radius); - `,[O("&::after",` - --n-block-size: calc((var(--n-height) - 8px) / 3); - background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); - background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; - `)])]),S("color-picker-swatches",` - display: grid; - grid-gap: 8px; - flex-wrap: wrap; - position: relative; - grid-template-columns: repeat(auto-fill, 18px); - margin-top: 10px; - `,[S("color-picker-swatch",` - width: 18px; - height: 18px; - background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); - background-size: 8px 8px; - background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; - background-repeat: repeat; - `,[M("fill",` - position: relative; - width: 100%; - height: 100%; - border-radius: 3px; - box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; - cursor: pointer; - `),O("&:focus",` - outline: none; - `,[M("fill",[O("&::after",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - background: inherit; - filter: blur(2px); - content: ""; - `)])])])])]),hP=Object.assign(Object.assign({},Se.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Lt.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),FY=J({name:"ColorPicker",props:hP,setup(e,{slots:t}){const n=D(null);let r=null;const o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=yn("global"),{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:d}=He(e),f=Se("ColorPicker","-color-picker",IY,cY,e,s);nt(i0,{themeRef:f,renderLabelRef:xe(e,"renderLabel"),colorPickerSlots:t});const h=D(e.defaultShow),v=wt(xe(e,"show"),h);function p(N){const{onUpdateShow:te,"onUpdate:show":ve}=e;te&&he(te,N),ve&&he(ve,N),h.value=N}const{defaultValue:b}=e,m=D(b===void 0?dY(e.modes,e.showAlpha):b),g=wt(xe(e,"value"),m),y=D([g.value]),C=D(0),x=P(()=>Us(g.value)),{modes:w}=e,k=D(Us(g.value)||w[0]||"rgb");function _(){const{modes:N}=e,{value:te}=k,ve=N.findIndex(Z=>Z===te);~ve?k.value=N[(ve+1)%N.length]:k.value="rgb"}let T,$,R,I,z,A,L,j;const E=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsv":return ba(N);case"hsl":return[T,$,R,j]=hl(N),[...kk(T,$,R),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...dp(z,A,L),j]}}),U=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"rgb":case"hex":return Bn(N);case"hsv":return[T,$,I,j]=ba(N),[...ci(T,$,I),j];case"hsl":return[T,$,R,j]=hl(N),[...fp(T,$,R),j]}}),K=P(()=>{const{value:N}=g;if(!N)return null;switch(x.value){case"hsl":return hl(N);case"hsv":return[T,$,I,j]=ba(N),[..._d(T,$,I),j];case"rgb":case"hex":return[z,A,L,j]=Bn(N),[...up(z,A,L),j]}}),Q=P(()=>{switch(k.value){case"rgb":case"hex":return U.value;case"hsv":return E.value;case"hsl":return K.value}}),V=D(0),re=D(1),ee=D([0,0]);function ue(N,te){const{value:ve}=E,Z=V.value,fe=ve?ve[3]:1;ee.value=[N,te];const{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([Z,N,te,fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(Z,N,te),fe]),"cursor");break;case"rgb":we((ne?mo:vp)([...ci(Z,N,te),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(Z,N,te),fe]),"cursor");break}}function de(N){V.value=N;const{value:te}=E;if(!te)return;const[,ve,Z,fe]=te,{showAlpha:ne}=e;switch(k.value){case"hsv":we((ne?ya:pp)([N,ve,Z,fe]),"cursor");break;case"rgb":we((ne?mo:vp)([...ci(N,ve,Z),fe]),"cursor");break;case"hex":we((ne?wi:ps)([...ci(N,ve,Z),fe]),"cursor");break;case"hsl":we((ne?xi:gp)([..._d(N,ve,Z),fe]),"cursor");break}}function Ce(N){switch(k.value){case"hsv":[T,$,I]=E.value,we(ya([T,$,I,N]),"cursor");break;case"rgb":[z,A,L]=U.value,we(mo([z,A,L,N]),"cursor");break;case"hex":[z,A,L]=U.value,we(wi([z,A,L,N]),"cursor");break;case"hsl":[T,$,R]=K.value,we(xi([T,$,R,N]),"cursor");break}re.value=N}function we(N,te){te==="cursor"?r=N:r=null;const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onUpdateValue:fe,"onUpdate:value":ne}=e;fe&&he(fe,N),ne&&he(ne,N),ve(),Z(),m.value=N}function me(N){we(N,"input"),_t(Oe)}function Oe(N=!0){const{value:te}=g;if(te){const{nTriggerFormChange:ve,nTriggerFormInput:Z}=o,{onComplete:fe}=e;fe&&fe(te);const{value:ne}=y,{value:ge}=C;N&&(ne.splice(ge+1,ne.length,te),C.value=ge+1),ve(),Z()}}function ke(){const{value:N}=C;N-1<0||(we(y.value[N-1],"input"),Oe(!1),C.value=N-1)}function pe(){const{value:N}=C;N<0||N+1>=y.value.length||(we(y.value[N+1],"input"),Oe(!1),C.value=N+1)}function Me(){we(null,"input"),p(!1)}function H(){const{value:N}=g,{onConfirm:te}=e;te&&te(N),p(!1)}const W=P(()=>C.value>=1),Y=P(()=>{const{value:N}=y;return N.length>1&&C.value{N||(y.value=[g.value],C.value=0)}),Ft(()=>{if(!(r&&r===g.value)){const{value:N}=E;N&&(V.value=N[0],re.value=N[3],ee.value=[N[1],N[2]])}r=null});const ce=P(()=>{const{value:N}=i,{common:{cubicBezierEaseInOut:te},self:{textColor:ve,color:Z,panelFontSize:fe,boxShadow:ne,border:ge,borderRadius:Pe,dividerColor:Ae,[ye("height",N)]:Ke,[ye("fontSize",N)]:qe}}=f.value;return{"--n-bezier":te,"--n-text-color":ve,"--n-color":Z,"--n-panel-font-size":fe,"--n-font-size":qe,"--n-box-shadow":ne,"--n-border":ge,"--n-border-radius":Pe,"--n-height":Ke,"--n-divider-color":Ae}}),X=d?Je("color-picker",P(()=>i.value[0]),ce,e):void 0;function B(){var N;const{value:te}=U,{value:ve}=V,{internalActions:Z,modes:fe,actions:ne}=e,{value:ge}=f,{value:Pe}=s;return u("div",{class:[`${Pe}-color-picker-panel`,X==null?void 0:X.themeClass.value],onDragstart:Ae=>{Ae.preventDefault()},style:d?void 0:ce.value},u("div",{class:`${Pe}-color-picker-control`},u(xY,{clsPrefix:Pe,rgba:te,displayedHue:ve,displayedSv:ee.value,onUpdateSV:ue,onComplete:Oe}),u("div",{class:`${Pe}-color-picker-preview`},u("div",{class:`${Pe}-color-picker-preview__sliders`},u(mY,{clsPrefix:Pe,hue:ve,onUpdateHue:de,onComplete:Oe}),e.showAlpha?u(yY,{clsPrefix:Pe,rgba:te,alpha:re.value,onUpdateAlpha:Ce,onComplete:Oe}):null),e.showPreview?u(MY,{clsPrefix:Pe,mode:k.value,color:U.value&&ps(U.value),onUpdateColor:Ae=>we(Ae,"input")}):null),u(PY,{clsPrefix:Pe,showAlpha:e.showAlpha,mode:k.value,modes:fe,onUpdateMode:_,value:g.value,valueArr:Q.value,onUpdateValue:me}),((N=e.swatches)===null||N===void 0?void 0:N.length)&&u(zY,{clsPrefix:Pe,mode:k.value,swatches:e.swatches,onUpdateColor:Ae=>we(Ae,"input")})),ne!=null&&ne.length?u("div",{class:`${Pe}-color-picker-action`},ne.includes("confirm")&&u(Pt,{size:"small",onClick:H,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.confirm}),ne.includes("clear")&&u(Pt,{size:"small",onClick:Me,disabled:!g.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?u("div",{class:`${Pe}-color-picker-action`},{default:t.action}):Z?u("div",{class:`${Pe}-color-picker-action`},Z.includes("undo")&&u(Pt,{size:"small",onClick:ke,disabled:!W.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.undo}),Z.includes("redo")&&u(Pt,{size:"small",onClick:pe,disabled:!Y.value,theme:ge.peers.Button,themeOverrides:ge.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:s,namespace:c,selfRef:n,hsla:K,rgba:U,mergedShow:v,mergedDisabled:a,isMounted:An(),adjustedTo:Lt(e),mergedValue:g,handleTriggerClick(){p(!0)},handleClickOutside(N){var te;!((te=n.value)===null||te===void 0)&&te.contains(ur(N))||p(!1)},renderPanel:B,cssVars:d?void 0:ce,themeClass:X==null?void 0:X.themeClass,onRender:X==null?void 0:X.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n==null||n(),u("div",{class:[this.themeClass,`${t}-color-picker`],ref:"selfRef",style:this.cssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u($Y,{clsPrefix:t,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:e.label})}),u(Sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(this.renderPanel(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),DY={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},AY=e=>{const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeColorHover:v,closeColorPressed:p,modalColor:b,boxShadow1:m,popoverColor:g,actionColor:y}=e;return Object.assign(Object.assign({},DY),{lineHeight:r,color:i,colorModal:b,colorPopover:g,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:c,closeColorHover:v,closeColorPressed:p,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:m,borderRadius:n})},BY={name:"Card",common:et,self:AY},vP=BY,EY=O([S("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[Ak({background:"var(--n-color-modal)"}),F("hoverable",[O("&:hover","box-shadow: var(--n-box-shadow);")]),F("content-segmented",[O(">",[M("content",{paddingTop:"var(--n-padding-bottom)"})])]),F("content-soft-segmented",[O(">",[M("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),F("footer-segmented",[O(">",[M("footer",{paddingTop:"var(--n-padding-bottom)"})])]),F("footer-soft-segmented",[O(">",[M("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),O(">",[S("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[M("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),M("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),M("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),M("content","flex: 1; min-width: 0;"),M("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[O("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),M("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),S("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[O("img",` - display: block; - width: 100%; - `)]),F("bordered",` - border: 1px solid var(--n-border-color); - `,[O("&:target","border-color: var(--n-color-target);")]),F("action-segmented",[O(">",[M("action",[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("content-segmented, content-soft-segmented",[O(">",[M("content",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("footer-segmented, footer-soft-segmented",[O(">",[M("footer",{transition:"border-color 0.3s var(--n-bezier)"},[O("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),F("embedded",` - background-color: var(--n-color-embedded); - `)]),_o(S("card",` - background: var(--n-color-modal); - `,[F("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),qo(S("card",` - background: var(--n-color-popover); - `,[F("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),a0={title:String,contentStyle:[Object,String],headerStyle:[Object,String],headerExtraStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},LY=Nn(a0),pP=Object.assign(Object.assign({},Se.props),a0),gP=J({name:"Card",props:pP,setup(e){const t=()=>{const{onClose:c}=e;c&&he(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=He(e),i=Se("Card","-card",EY,vP,e,r),a=Zt("Card",o,r),l=P(()=>{const{size:c}=e,{self:{color:d,colorModal:f,colorTarget:h,textColor:v,titleTextColor:p,titleFontWeight:b,borderColor:m,actionColor:g,borderRadius:y,lineHeight:C,closeIconColor:x,closeIconColorHover:w,closeIconColorPressed:k,closeColorHover:_,closeColorPressed:T,closeBorderRadius:$,closeIconSize:R,closeSize:I,boxShadow:z,colorPopover:A,colorEmbedded:L,colorEmbeddedModal:j,colorEmbeddedPopover:E,[ye("padding",c)]:U,[ye("fontSize",c)]:K,[ye("titleFontSize",c)]:Q},common:{cubicBezierEaseInOut:V}}=i.value,{top:re,left:ee,bottom:ue}=yi(U);return{"--n-bezier":V,"--n-border-radius":y,"--n-color":d,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":L,"--n-color-embedded-modal":j,"--n-color-embedded-popover":E,"--n-color-target":h,"--n-text-color":v,"--n-line-height":C,"--n-action-color":g,"--n-title-text-color":p,"--n-title-font-weight":b,"--n-close-icon-color":x,"--n-close-icon-color-hover":w,"--n-close-icon-color-pressed":k,"--n-close-color-hover":_,"--n-close-color-pressed":T,"--n-border-color":m,"--n-box-shadow":z,"--n-padding-top":re,"--n-padding-bottom":ue,"--n-padding-left":ee,"--n-font-size":K,"--n-title-font-size":Q,"--n-close-size":I,"--n-close-icon-size":R,"--n-close-border-radius":$}}),s=n?Je("card",P(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),u(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Ct(s.cover,c=>c&&u("div",{class:`${r}-card-cover`,role:"none"},c)),Ct(s.header,c=>c||this.title||this.closable?u("div",{class:`${r}-card-header`,style:this.headerStyle},u("div",{class:`${r}-card-header__main`,role:"heading"},c||this.title),Ct(s["header-extra"],d=>d&&u("div",{class:`${r}-card-header__extra`,style:this.headerExtraStyle},d)),this.closable?u(Go,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Ct(s.default,c=>c&&u("div",{class:`${r}-card__content`,style:this.contentStyle,role:"none"},c)),Ct(s.footer,c=>c&&[u("div",{class:`${r}-card__footer`,style:this.footerStyle,role:"none"},c)]),Ct(s.action,c=>c&&u("div",{class:`${r}-card__action`,role:"none"},c)))}}),NY=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),HY={name:"Carousel",common:et,self:NY},jY=HY;function VY(e){const{length:t}=e;return t>1&&(e.push(wC(e[0],0,"append")),e.unshift(wC(e[t-1],t-1,"prepend"))),e}function wC(e,t,n){return nr(e,{key:`carousel-item-duplicate-${t}-${n}`})}function CC(e,t,n){return n?e===0?t-3:e===t-1?0:e-1:e}function kv(e,t){return t?e+1:e}function UY(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function WY(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function KY(e,t){return t&&e>3?e-2:e}function SC(e){return window.TouchEvent&&e instanceof window.TouchEvent}function _C(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-parseFloat(o.getPropertyValue("padding-left"))-parseFloat(o.getPropertyValue("padding-right")),r=r-parseFloat(o.getPropertyValue("padding-top"))-parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function rd(e,t,n){return en?n:e}function qY(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const mP="n-carousel-methods",YY=e=>nt(mP,e),l0=(e="unknown",t="component")=>{const n=Le(mP);return n||Dn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n},XY={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},GY=J({name:"CarouselDots",props:XY,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=l0();function o(c,d){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(d);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var d;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(d=document.activeElement)===null||d===void 0?void 0:d.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:h}=c,v=h==="PageUp"||h==="ArrowUp",p=h==="PageDown"||h==="ArrowDown",b=h==="PageUp"||h==="ArrowRight",m=h==="PageDown"||h==="ArrowLeft",g=r.isVertical(),y=g?v:b,C=g?p:m;!y&&!C||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),s(r.currentIndexRef.value)):C&&!r.isPrevDisabled()&&(r.prev(),s(r.currentIndexRef.value)))}function s(c){var d;(d=n.value[c])===null||d===void 0||d.focus()}return Zm(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return u("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},dD(this.total,n=>{const r=n===this.currentIndex;return u("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:o=>this.handleKeydown(o,n)})}))}}),ZY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"}))),QY=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u("g",{fill:"none"},u("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"}))),JY=J({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=He(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=l0();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-carousel__arrow-group`},u("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},ZY),u("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},QY))}}),hu="CarouselItem",eX=e=>{var t;return((t=e.type)===null||t===void 0?void 0:t.name)===hu},bP=J({name:hu,setup(e){const{mergedClsPrefixRef:t}=He(e),n=l0($w(hu),`n-${$w(hu)}`),r=D(),o=P(()=>{const{value:d}=r;return d?n.getSlideIndex(d):-1}),i=P(()=>n.isPrev(o.value)),a=P(()=>n.isNext(o.value)),l=P(()=>n.isActive(o.value)),s=P(()=>n.getSlideStyle(o.value));Mt(()=>n.addSlide(r.value)),Dt(()=>{n.removeSlide(r.value)});function c(d){const{value:f}=o;f!==void 0&&(n==null||n.onCarouselItemClick(f,d))}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:s,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,s=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return u("div",{ref:"selfElRef",class:s,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),tX=S("carousel",` - position: relative; - width: 100%; - height: 100%; - touch-action: pan-y; - overflow: hidden; -`,[M("slides",` - display: flex; - width: 100%; - height: 100%; - transition-timing-function: var(--n-bezier); - transition-property: transform; - `,[M("slide",` - flex-shrink: 0; - position: relative; - width: 100%; - height: 100%; - outline: none; - overflow: hidden; - `,[O("> img",` - display: block; - `)])]),M("dots",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `,[F("dot",[M("dot",` - height: var(--n-dot-size); - width: var(--n-dot-size); - background-color: var(--n-dot-color); - border-radius: 50%; - cursor: pointer; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - background-color: var(--n-dot-color-active); - `)])]),F("line",[M("dot",` - border-radius: 9999px; - width: var(--n-dot-line-width); - height: 4px; - background-color: var(--n-dot-color); - cursor: pointer; - transition: - width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[O("&:focus",` - background-color: var(--n-dot-color-focus); - `),F("active",` - width: var(--n-dot-line-width-active); - background-color: var(--n-dot-color-active); - `)])])]),M("arrow",` - transition: background-color .3s var(--n-bezier); - cursor: pointer; - height: 28px; - width: 28px; - display: flex; - align-items: center; - justify-content: center; - background-color: rgba(255, 255, 255, .2); - color: var(--n-arrow-color); - border-radius: 8px; - user-select: none; - -webkit-user-select: none; - font-size: 18px; - `,[O("svg",` - height: 1em; - width: 1em; - `),O("&:hover",` - background-color: rgba(255, 255, 255, .3); - `)]),F("vertical",` - touch-action: pan-x; - `,[M("slides",` - flex-direction: column; - `),F("fade",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%); - `)]),F("card",[M("slide",` - top: 50%; - left: unset; - transform: translateY(-50%) translateZ(-400px); - `,[F("current",` - transform: translateY(-50%) translateZ(0); - `),F("prev",` - transform: translateY(-100%) translateZ(-200px); - `),F("next",` - transform: translateY(0%) translateZ(-200px); - `)])])]),F("usercontrol",[M("slides",[O(">",[O("div",` - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 100%; - transform: translate(-50%, -50%); - `)])])]),F("left",[M("dots",` - transform: translateY(-50%); - top: 50%; - left: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `)]),M("arrow-group",` - position: absolute; - display: flex; - flex-wrap: nowrap; - `),F("vertical",[M("arrow",` - transform: rotate(90deg); - `)]),F("show-arrow",[F("bottom",[M("dots",` - transform: translateX(0); - bottom: 18px; - left: 18px; - `)]),F("top",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("left",[M("dots",` - transform: translateX(0); - top: 18px; - left: 18px; - `)]),F("right",[M("dots",` - transform: translateX(0); - top: 18px; - right: 18px; - `)])]),F("left",[M("arrow-group",` - bottom: 12px; - left: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("right",[M("dots",` - transform: translateY(-50%); - top: 50%; - right: 12px; - flex-direction: column; - `,[F("line",[M("dot",` - width: 4px; - height: var(--n-dot-line-width); - margin: 4px 0; - transition: - height .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - `,[F("active",` - height: var(--n-dot-line-width-active); - `)])])]),M("dot",` - margin: 4px 0; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - flex-direction: column; - `,[O("> *:first-child",` - margin-bottom: 12px; - `)])]),F("top",[M("dots",` - transform: translateX(-50%); - top: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - top: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("bottom",[M("dots",` - transform: translateX(-50%); - bottom: 12px; - left: 50%; - `,[F("line",[M("dot",` - margin: 0 4px; - `)])]),M("dot",` - margin: 0 4px; - `),M("arrow-group",` - bottom: 12px; - right: 12px; - `,[O("> *:first-child",` - margin-right: 12px; - `)])]),F("fade",[M("slide",` - position: absolute; - opacity: 0; - transition-property: opacity; - pointer-events: none; - `,[F("current",` - opacity: 1; - pointer-events: auto; - `)])]),F("card",[M("slides",` - perspective: 1000px; - `),M("slide",` - position: absolute; - left: 50%; - opacity: 0; - transform: translateX(-50%) translateZ(-400px); - transition-property: opacity, transform; - `,[F("current",` - opacity: 1; - transform: translateX(-50%) translateZ(0); - z-index: 1; - `),F("prev",` - opacity: 0.4; - transform: translateX(-100%) translateZ(-200px); - `),F("next",` - opacity: 0.4; - transform: translateX(0%) translateZ(-200px); - `)])])]),nX=["transitionDuration","transitionTimingFunction"],yP=Object.assign(Object.assign({},Se.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Rv=!1;const rX=J({name:"Carousel",props:yP,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(null),o=D(null),i=D([]),a={value:[]},l=P(()=>e.direction==="vertical"),s=P(()=>l.value?"height":"width"),c=P(()=>l.value?"bottom":"right"),d=P(()=>e.effect==="slide"),f=P(()=>e.loop&&e.slidesPerView===1&&d.value),h=P(()=>e.effect==="custom"),v=P(()=>!d.value||e.centeredSlides?1:e.slidesPerView),p=P(()=>h.value?1:e.slidesPerView),b=P(()=>v.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),m=D({width:0,height:0}),g=P(()=>{const{value:oe}=i;if(!oe.length)return[];const{value:Fe}=b;if(Fe)return oe.map(Ge=>_C(Ge));const{value:Ne}=p,{value:Ze}=m,{value:Ue}=s;let le=Ze[Ue];if(Ne!=="auto"){const{spaceBetween:Ge}=e,gt=le-(Ne-1)*Ge,be=1/Math.max(1,Ne);le=gt*be}const Ie=Object.assign(Object.assign({},Ze),{[Ue]:le});return oe.map(()=>Ie)}),y=P(()=>{const{value:oe}=g;if(!oe.length)return[];const{centeredSlides:Fe,spaceBetween:Ne}=e,{value:Ze}=s,{[Ze]:Ue}=m.value;let le=0;return oe.map(({[Ze]:Ie})=>{let Ge=le;return Fe&&(Ge+=(Ie-Ue)/2),le+=Ie+Ne,Ge})}),C=D(!1),x=P(()=>{const{transitionStyle:oe}=e;return oe?mn(oe,nX):{}}),w=P(()=>h.value?0:qY(x.value.transitionDuration)),k=P(()=>{const{value:oe}=i;if(!oe.length)return[];const Fe=!(b.value||p.value===1),Ne=Ie=>{if(Fe){const{value:Ge}=s;return{[Ge]:`${g.value[Ie][Ge]}px`}}};if(h.value)return oe.map((Ie,Ge)=>Ne(Ge));const{effect:Ze,spaceBetween:Ue}=e,{value:le}=c;return oe.reduce((Ie,Ge,gt)=>{const be=Object.assign(Object.assign({},Ne(gt)),{[`margin-${le}`]:`${Ue}px`});return Ie.push(be),C.value&&(Ze==="fade"||Ze==="card")&&Object.assign(be,x.value),Ie},[])}),_=P(()=>{const{value:oe}=v,{length:Fe}=i.value;if(oe!=="auto")return Math.max(Fe-oe,0)+1;{const{value:Ne}=g,{length:Ze}=Ne;if(!Ze)return Fe;const{value:Ue}=y,{value:le}=s,Ie=m.value[le];let Ge=Ne[Ne.length-1][le],gt=Ze;for(;gt>1&&GeKY(_.value,f.value)),$=kv(e.defaultIndex,f.value),R=D(CC($,_.value,f.value)),I=wt(xe(e,"currentIndex"),R),z=P(()=>kv(I.value,f.value));function A(oe){var Fe,Ne;oe=rd(oe,0,_.value-1);const Ze=CC(oe,_.value,f.value),{value:Ue}=I;Ze!==I.value&&(R.value=Ze,(Fe=e["onUpdate:currentIndex"])===null||Fe===void 0||Fe.call(e,Ze,Ue),(Ne=e.onUpdateCurrentIndex)===null||Ne===void 0||Ne.call(e,Ze,Ue))}function L(oe=z.value){return UY(oe,_.value,e.loop)}function j(oe=z.value){return WY(oe,_.value,e.loop)}function E(oe){const Fe=N(oe);return Fe!==null&&L()===Fe}function U(oe){const Fe=N(oe);return Fe!==null&&j()===Fe}function K(oe){return z.value===N(oe)}function Q(oe){return I.value===oe}function V(){return L()===null}function re(){return j()===null}function ee(oe){const Fe=rd(kv(oe,f.value),0,_.value);(oe!==I.value||Fe!==z.value)&&A(Fe)}function ue(){const oe=L();oe!==null&&A(oe)}function de(){const oe=j();oe!==null&&A(oe)}function Ce(){(!me||!f.value)&&ue()}function we(){(!me||!f.value)&&de()}let me=!1,Oe=0;const ke=D({});function pe(oe,Fe=0){ke.value=Object.assign({},x.value,{transform:l.value?`translateY(${-oe}px)`:`translateX(${-oe}px)`,transitionDuration:`${Fe}ms`})}function Me(oe=0){d.value?H(z.value,oe):Oe!==0&&(!me&&oe>0&&(me=!0),pe(Oe=0,oe))}function H(oe,Fe){const Ne=W(oe);Ne!==Oe&&Fe>0&&(me=!0),Oe=W(z.value),pe(Ne,Fe)}function W(oe){let Fe;return oe>=_.value-1?Fe=Y():Fe=y.value[oe]||0,Fe}function Y(){if(v.value==="auto"){const{value:oe}=s,{[oe]:Fe}=m.value,{value:Ne}=y,Ze=Ne[Ne.length-1];let Ue;if(Ze===void 0)Ue=Fe;else{const{value:le}=g;Ue=Ze+le[le.length-1][oe]}return Ue-Fe}else{const{value:oe}=y;return oe[_.value-1]||0}}const ce={currentIndexRef:I,to:ee,prev:Ce,next:we,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:E,isNext:U,isActive:K,isPrevDisabled:V,isNextDisabled:re,getSlideIndex:N,getSlideStyle:te,addSlide:X,removeSlide:B,onCarouselItemClick:ve};YY(ce);function X(oe){!oe||i.value.push(oe)}function B(oe){if(!oe)return;const Fe=N(oe);Fe!==-1&&i.value.splice(Fe,1)}function N(oe){return typeof oe=="number"?oe:oe?i.value.indexOf(oe):-1}function te(oe){const Fe=N(oe);if(Fe!==-1){const Ne=[k.value[Fe]],Ze=ce.isPrev(Fe),Ue=ce.isNext(Fe);return Ze&&Ne.push(e.prevSlideStyle||""),Ue&&Ne.push(e.nextSlideStyle||""),Gs(Ne)}}function ve(oe,Fe){let Ne=!me&&!qe&&!ct;e.effect==="card"&&Ne&&!K(oe)&&(ee(oe),Ne=!1),Ne||(Fe.preventDefault(),Fe.stopPropagation())}let Z=null;function fe(){Z&&(clearInterval(Z),Z=null)}function ne(){fe(),!e.autoplay||T.value<2||(Z=window.setInterval(de,e.interval))}let ge=0,Pe=0,Ae=0,Ke=0,qe=!1,ct=!1;function dt(oe){var Fe;if(Rv||!(!((Fe=o.value)===null||Fe===void 0)&&Fe.contains(ur(oe))))return;Rv=!0,qe=!0,ct=!1,Ke=Date.now(),fe(),oe.type!=="touchstart"&&!oe.target.isContentEditable&&oe.preventDefault();const Ne=SC(oe)?oe.touches[0]:oe;l.value?Pe=Ne.clientY:ge=Ne.clientX,e.touchable&&(St("touchmove",document,ut,{passive:!0}),St("touchend",document,je),St("touchcancel",document,je)),e.draggable&&(St("mousemove",document,ut),St("mouseup",document,je))}function ut(oe){const{value:Fe}=l,{value:Ne}=s,Ze=SC(oe)?oe.touches[0]:oe,Ue=Fe?Ze.clientY-Pe:Ze.clientX-ge,le=m.value[Ne];Ae=rd(Ue,-le,le),oe.cancelable&&oe.preventDefault(),d.value&&pe(Oe-Ae,0)}function je(){const{value:oe}=z;let Fe=oe;if(!me&&Ae!==0&&d.value){const Ne=Oe-Ae,Ze=[...y.value.slice(0,_.value-1),Y()];let Ue=null;for(let le=0;leUe/2||Ae/Ne>.4?Fe=L(oe):(Ae<-Ue/2||Ae/Ne<-.4)&&(Fe=j(oe))}Fe!==null&&Fe!==oe?(ct=!0,A(Fe),_t(()=>{(!f.value||R.value!==I.value)&&Me(w.value)})):Me(w.value),Xe(),ne()}function Xe(){qe&&(Rv=!1),qe=!1,ge=0,Pe=0,Ae=0,Ke=0,xt("touchmove",document,ut),xt("touchend",document,je),xt("touchcancel",document,je),xt("mousemove",document,ut),xt("mouseup",document,je)}function Ve(){if(d.value&&me){const{value:oe}=z;H(oe,0)}else ne();d.value&&(ke.value.transitionDuration="0ms"),me=!1}function We(oe){if(oe.preventDefault(),me)return;let{deltaX:Fe,deltaY:Ne}=oe;oe.shiftKey&&!Fe&&(Fe=Ne);const Ze=-1,Ue=1,le=(Fe||Ne)>0?Ue:Ze;let Ie=0,Ge=0;l.value?Ge=le:Ie=le;const gt=10;(Ge*Ne>=gt||Ie*Fe>=gt)&&(le===Ue&&!re()?de():le===Ze&&!V()&&ue())}function G(){m.value=_C(r.value,!0),ne()}function q(){var oe,Fe;b.value&&((Fe=(oe=g.effect).scheduler)===null||Fe===void 0||Fe.call(oe),g.effect.run())}function _e(){e.autoplay&&fe()}function Be(){e.autoplay&&ne()}Mt(()=>{Ft(ne),requestAnimationFrame(()=>C.value=!0)}),Dt(()=>{Xe(),fe()}),Qm(()=>{const{value:oe}=i,{value:Fe}=a,Ne=new Map,Ze=le=>Ne.has(le)?Ne.get(le):-1;let Ue=!1;for(let le=0;leGe.el===oe[le]);Ie!==le&&(Ue=!0),Ne.set(oe[le],Ie)}Ue&&oe.sort((le,Ie)=>Ze(le)-Ze(Ie))}),rt(z,(oe,Fe)=>{if(oe!==Fe)if(ne(),d.value){if(f.value&&T.value>2){const{value:Ne}=_;oe===Ne-2&&Fe===1?oe=0:oe===1&&Fe===Ne-2&&(oe=Ne-1)}H(oe,w.value)}else Me()},{immediate:!0}),rt([f,v],()=>void _t(()=>A(z.value))),rt(y,()=>d.value&&Me(),{deep:!0}),rt(d,oe=>{oe?Me():(me=!1,pe(Oe=0))});const Ee=P(()=>({onTouchstartPassive:e.touchable?dt:void 0,onMousedown:e.draggable?dt:void 0,onWheel:e.mousewheel?We:void 0})),ae=P(()=>Object.assign(Object.assign({},mn(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:T.value,currentIndex:I.value})),ze=P(()=>({total:T.value,currentIndex:I.value,to:ce.to})),ie={getCurrentIndex:()=>I.value,to:ee,prev:ue,next:de},Te=Se("Carousel","-carousel",tX,jY,e,t),se=P(()=>{const{common:{cubicBezierEaseInOut:oe},self:{dotSize:Fe,dotColor:Ne,dotColorActive:Ze,dotColorFocus:Ue,dotLineWidth:le,dotLineWidthActive:Ie,arrowColor:Ge}}=Te.value;return{"--n-bezier":oe,"--n-dot-color":Ne,"--n-dot-color-focus":Ue,"--n-dot-color-active":Ze,"--n-dot-size":Fe,"--n-dot-line-width":le,"--n-dot-line-width-active":Ie,"--n-arrow-color":Ge}}),$e=n?Je("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:h,autoSlideSize:b,displayIndex:I,realIndex:z,slideStyles:k,translateStyle:ke,slidesControlListeners:Ee,handleTransitionEnd:Ve,handleResize:G,handleSlideResize:q,handleMouseenter:_e,handleMouseleave:Be,isActive:Q,arrowSlotProps:ae,dotSlotProps:ze},ie),{cssVars:n?void 0:se,themeClass:$e==null?void 0:$e.themeClass,onRender:$e==null?void 0:$e.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:s={},arrowSlotProps:c,dotSlotProps:d,$slots:{default:f,dots:h,arrow:v}}=this,p=f&&Ir(f())||[];let b=oX(p);return b.length||(b=p.map(m=>u(bP,null,{default:()=>nr(m)}))),this.duplicatedable&&(b=VY(b)),this.slideVNodes.value=b,this.autoSlideSize&&(b=b.map(m=>u(Dr,{onResize:this.handleSlideResize},{default:()=>m}))),(e=this.onRender)===null||e===void 0||e.call(this),u("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),u(Dr,{onResize:this.handleResize},{default:()=>u("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?b.map((m,g)=>u("div",{style:o[g],key:g},sn(u(It,Object.assign({},s),{default:()=>m}),[[wr,this.isActive(g)]]))):b)}),this.showDots&&d.total>1&&Ra(h,d,()=>[u(GY,{key:i+a,total:d.total,currentIndex:d.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&Ra(v,c,()=>[u(JY,null)]))}});function oX(e){return e.reduce((t,n)=>(eX(n)&&t.push(n),t),[])}const iX={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},aX=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadiusSmall:v,lineHeight:p}=e;return Object.assign(Object.assign({},iX),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,borderRadius:v,color:t,colorChecked:s,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${ft(s,{alpha:.3})}`,textColor:c,textColorDisabled:a})},lX={name:"Checkbox",common:et,self:aX},Il=lX,sX=e=>{const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:c,fontSizeMedium:d,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:d,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},cX={name:"Cascader",common:et,peers:{InternalSelectMenu:Ml,InternalSelection:fh,Scrollbar:hr,Checkbox:Il,Empty:Bi},self:sX},dX=cX;function od(e){return e?e.map(t=>t.rawNode):null}function uX(e,t,n,r){const o=[],i=[];function a(l){for(const s of l){if(s.disabled)continue;const{rawNode:c}=s;i.push(c),(s.isLeaf||!t)&&o.push({label:Gg(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(i)}),!s.isLeaf&&s.children&&a(s.children),i.pop()}}return a(e),o}function Gg(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const fX=u("svg",{viewBox:"0 0 64 64",class:"check-icon"},u("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),hX=u("svg",{viewBox:"0 0 100 100",class:"line-icon"},u("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),xP="n-checkbox-group",wP={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},CP=J({name:"CheckboxGroup",props:wP,setup(e){const{mergedClsPrefixRef:t}=He(e),n=xn(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=D(e.defaultValue),a=P(()=>e.value),l=wt(a,i),s=P(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=P(()=>Array.isArray(l.value)?new Set(l.value):new Set);function d(f,h){const{nTriggerFormInput:v,nTriggerFormChange:p}=n,{onChange:b,"onUpdate:value":m,onUpdateValue:g}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),C=y.findIndex(x=>x===h);f?~C||(y.push(h),g&&he(g,y,{actionType:"check",value:h}),m&&he(m,y,{actionType:"check",value:h}),v(),p(),i.value=y,b&&he(b,y)):~C&&(y.splice(C,1),g&&he(g,y,{actionType:"uncheck",value:h}),m&&he(m,y,{actionType:"uncheck",value:h}),b&&he(b,y),i.value=y,v(),p())}else f?(g&&he(g,[h],{actionType:"check",value:h}),m&&he(m,[h],{actionType:"check",value:h}),b&&he(b,[h]),i.value=[h],v(),p()):(g&&he(g,[],{actionType:"uncheck",value:h}),m&&he(m,[],{actionType:"uncheck",value:h}),b&&he(b,[]),i.value=[],v(),p())}return nt(xP,{checkedCountRef:s,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return u("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),vX=O([S("checkbox",` - line-height: var(--n-label-line-height); - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - --n-merged-color-table: var(--n-color-table); - `,[O("&:hover",[S("checkbox-box",[M("border",{border:"var(--n-border-checked)"})])]),O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),F("inside-table",[S("checkbox-box",` - background-color: var(--n-merged-color-table); - `)]),F("checked",[S("checkbox-box",` - background-color: var(--n-color-checked); - `,[S("checkbox-icon",[O(".check-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("indeterminate",[S("checkbox-box",[S("checkbox-icon",[O(".check-icon",` - opacity: 0; - transform: scale(.5); - `),O(".line-icon",` - opacity: 1; - transform: scale(1); - `)])])]),F("checked, indeterminate",[O("&:focus:not(:active)",[S("checkbox-box",[M("border",` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),S("checkbox-box",` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[M("border",{border:"var(--n-border-checked)"})])]),F("disabled",{cursor:"not-allowed"},[F("checked",[S("checkbox-box",` - background-color: var(--n-color-disabled-checked); - `,[M("border",{border:"var(--n-border-disabled-checked)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),S("checkbox-box",` - background-color: var(--n-color-disabled); - `,[M("border",{border:"var(--n-border-disabled)"}),S("checkbox-icon",[O(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),M("label",{color:"var(--n-text-color-disabled)"})]),S("checkbox-box-wrapper",` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),S("checkbox-box",` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[M("border",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),S("checkbox-icon",` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[O(".check-icon, .line-icon",` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),kn({left:"1px",top:"1px"})])]),M("label",` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[O("&:empty",{display:"none"})])]),_o(S("checkbox",` - --n-merged-color-table: var(--n-color-table-modal); - `)),qo(S("checkbox",` - --n-merged-color-table: var(--n-color-table-popover); - `))]),SP=Object.assign(Object.assign({},Se.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Zo=J({name:"Checkbox",props:SP,setup(e){const t=D(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=xn(e,{mergedSize(k){const{size:_}=e;if(_!==void 0)return _;if(s){const{value:T}=s.mergedSizeRef;if(T!==void 0)return T}if(k){const{mergedSize:T}=k;if(T!==void 0)return T.value}return"medium"},mergedDisabled(k){const{disabled:_}=e;if(_!==void 0)return _;if(s){if(s.disabledRef.value)return!0;const{maxRef:{value:T},checkedCountRef:$}=s;if(T!==void 0&&$.value>=T&&!h.value)return!0;const{minRef:{value:R}}=s;if(R!==void 0&&$.value<=R&&h.value)return!0}return k?k.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:l}=i,s=Le(xP,null),c=D(e.defaultChecked),d=xe(e,"checked"),f=wt(d,c),h=it(()=>{if(s){const k=s.valueSetRef.value;return k&&e.value!==void 0?k.has(e.value):!1}else return f.value===e.checkedValue}),v=Se("Checkbox","-checkbox",vX,Il,e,n);function p(k){if(s&&e.value!==void 0)s.toggleCheckbox(!h.value,e.value);else{const{onChange:_,"onUpdate:checked":T,onUpdateChecked:$}=e,{nTriggerFormInput:R,nTriggerFormChange:I}=i,z=h.value?e.uncheckedValue:e.checkedValue;T&&he(T,z,k),$&&he($,z,k),_&&he(_,z,k),R(),I(),c.value=z}}function b(k){a.value||p(k)}function m(k){if(!a.value)switch(k.key){case" ":case"Enter":p(k)}}function g(k){switch(k.key){case" ":k.preventDefault()}}const y={focus:()=>{var k;(k=t.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=t.value)===null||k===void 0||k.blur()}},C=Zt("Checkbox",o,n),x=P(()=>{const{value:k}=l,{common:{cubicBezierEaseInOut:_},self:{borderRadius:T,color:$,colorChecked:R,colorDisabled:I,colorTableHeader:z,colorTableHeaderModal:A,colorTableHeaderPopover:L,checkMarkColor:j,checkMarkColorDisabled:E,border:U,borderFocus:K,borderDisabled:Q,borderChecked:V,boxShadowFocus:re,textColor:ee,textColorDisabled:ue,checkMarkColorDisabledChecked:de,colorDisabledChecked:Ce,borderDisabledChecked:we,labelPadding:me,labelLineHeight:Oe,labelFontWeight:ke,[ye("fontSize",k)]:pe,[ye("size",k)]:Me}}=v.value;return{"--n-label-line-height":Oe,"--n-label-font-weight":ke,"--n-size":Me,"--n-bezier":_,"--n-border-radius":T,"--n-border":U,"--n-border-checked":V,"--n-border-focus":K,"--n-border-disabled":Q,"--n-border-disabled-checked":we,"--n-box-shadow-focus":re,"--n-color":$,"--n-color-checked":R,"--n-color-table":z,"--n-color-table-modal":A,"--n-color-table-popover":L,"--n-color-disabled":I,"--n-color-disabled-checked":Ce,"--n-text-color":ee,"--n-text-color-disabled":ue,"--n-check-mark-color":j,"--n-check-mark-color-disabled":E,"--n-check-mark-color-disabled-checked":de,"--n-font-size":pe,"--n-label-padding":me}}),w=r?Je("checkbox",P(()=>l.value[0]),x,e):void 0;return Object.assign(i,y,{rtlEnabled:C,selfRef:t,mergedClsPrefix:n,mergedDisabled:a,renderedChecked:h,mergedTheme:v,labelId:Cr(),handleClick:b,handleKeyUp:m,handleKeyDown:g,cssVars:r?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:f,handleKeyDown:h,handleClick:v}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:h,onClick:v,onMousedown:()=>{St("selectstart",window,p=>{p.preventDefault()},{once:!0})}},u("div",{class:`${c}-checkbox-box-wrapper`},"\xA0",u("div",{class:`${c}-checkbox-box`},u(ko,null,{default:()=>this.indeterminate?u("div",{key:"indeterminate",class:`${c}-checkbox-icon`},hX):u("div",{key:"check",class:`${c}-checkbox-icon`},fX)}),u("div",{class:`${c}-checkbox-box__border`}))),s!==null||t.default?u("span",{class:`${c}-checkbox__label`,id:l},t.default?t.default():s):null)}}),dc="n-cascader",kC=J({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:s,loadingKeySetRef:c,cascadeRef:d,mergedCheckStrategyRef:f,onLoadRef:h,mergedClsPrefixRef:v,mergedThemeRef:p,labelFieldRef:b,showCheckboxRef:m,updateHoverKey:g,updateKeyboardKey:y,addLoadingKey:C,deleteLoadingKey:x,closeMenu:w,doCheck:k,doUncheck:_,renderLabelRef:T}=Le(dc),$=P(()=>e.tmNode.key),R=P(()=>{const{value:me}=t,{value:Oe}=n;return!Oe&&me==="hover"}),I=P(()=>{if(R.value)return ue}),z=P(()=>{if(R.value)return de}),A=it(()=>{const{value:me}=r;return me?i.value.includes($.value):o.value===$.value}),L=it(()=>r.value?a.value.includes($.value):!1),j=it(()=>l.value.includes($.value)),E=it(()=>{const{value:me}=s;return me===null?!1:me===$.value}),U=it(()=>n.value?c.value.has($.value):!1),K=P(()=>e.tmNode.isLeaf),Q=P(()=>e.tmNode.disabled),V=P(()=>e.tmNode.rawNode[b.value]),re=P(()=>e.tmNode.shallowLoaded);function ee(me){if(Q.value)return;const{value:Oe}=n,{value:ke}=c,{value:pe}=h,{value:Me}=$,{value:H}=K,{value:W}=re;qn(me,"checkbox")||(Oe&&!W&&!ke.has(Me)&&pe&&(C(Me),pe(e.tmNode.rawNode).then(()=>{x(Me)}).catch(()=>{x(Me)})),g(Me),y(Me)),H&&we()}function ue(){if(!R.value||Q.value)return;const{value:me}=$;g(me),y(me)}function de(){!R.value||ue()}function Ce(){const{value:me}=K;me||we()}function we(){const{value:me}=r,{value:Oe}=$;me?L.value||A.value?_(Oe):k(Oe):(k(Oe),w(!0))}return{checkStrategy:f,multiple:r,cascade:d,checked:A,indeterminate:L,hoverPending:j,keyboardPending:E,isLoading:U,showCheckbox:m,isLeaf:K,disabled:Q,label:V,mergedClsPrefix:v,mergedTheme:p,handleClick:ee,handleCheckboxUpdateValue:Ce,mergedHandleMouseEnter:I,mergedHandleMouseMove:z,renderLabel:T}},render(){const{mergedClsPrefix:e,renderLabel:t}=this;return u("div",{class:[`${e}-cascader-option`,{[`${e}-cascader-option--pending`]:this.keyboardPending||this.hoverPending,[`${e}-cascader-option--disabled`]:this.disabled,[`${e}-cascader-option--show-prefix`]:this.showCheckbox}],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},this.showCheckbox?u("div",{class:`${e}-cascader-option__prefix`},u(Zo,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue})):null,u("span",{class:`${e}-cascader-option__label`},t?t(this.tmNode.rawNode,this.checked):this.label),u("div",{class:`${e}-cascader-option__suffix`},u("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?u(st,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>u(Jb,null)}):null}):null:u(eo,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>u(st,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>u(Ha,null)})}))))}}),pX=J({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Le(dc),o=D(null),i=D(null),a={scroll(l,s){var c,d;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(d=o.value)===null||d===void 0||d.scrollTo({index:l,elSize:s})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:P(()=>dn(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return u("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},u(rn,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?u(No,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>u(kC,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>u(kC,{key:r.key,tmNode:r}))}))}}),gX=J({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a}=Le(dc),l=[],s=D(null),c=D(null);function d(){o()}oh(c,d);function f(m){var g;const{value:{loadingRequiredMessage:y}}=t;(g=s.value)===null||g===void 0||g.showOnce(y(m))}function h(m){i(m)}function v(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onFocus(m)}function p(m){const{value:g}=c;!g||g.contains(m.relatedTarget)||e.onBlur(m)}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:c,submenuInstRefs:l,maskInstRef:s,mergedTheme:a,handleFocusin:v,handleFocusout:p,handleClickOutside:h},{scroll(m,g,y){const C=l[m];C&&C.scroll(g,y)},showErrorMessage:f})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?sn(u("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?u("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>u(pX,{ref:i=>{i&&(e[o]=i)},key:o,tmNodes:r,depth:o+1})),u(uK,{clsPrefix:t,ref:"maskInstRef"})):u("div",{class:`${t}-cascader-menu__empty`},vt(this.$slots.empty,()=>[u(Ei,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),Ct(this.$slots.action,r=>r&&u("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),u(Po,{onFocus:this.onTabout})),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),mX=J({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:s,handleSelectMenuClickOutside:c,doUncheck:d,doCheck:f,clearPattern:h}=Le(dc),v=D(null),p=P(()=>uX(e.tmNodes,i.value==="child",e.labelField,e.separator)),b=P(()=>{const{filter:R}=e;if(R)return R;const{labelField:I}=e;return(z,A,L)=>L.some(j=>j[I]&&~j[I].indexOf(z))}),m=P(()=>{const{pattern:R}=e,{value:I}=b;return(R?p.value.filter(z=>I(R,z.rawNode,z.path)):p.value).map(z=>({value:z.value,label:z.label}))}),g=P(()=>to(m.value,hh("value","children")));function y(){l()}function C(R){x(R)}function x(R){if(e.multiple){const{value:I}=n;Array.isArray(I)?I.includes(R.key)?d(R.key):f(R.key):I===null&&f(R.key),h()}else f(R.key),s(!0)}function w(){var R;(R=v.value)===null||R===void 0||R.prev()}function k(){var R;(R=v.value)===null||R===void 0||R.next()}function _(){var R;if(v){const I=(R=v.value)===null||R===void 0?void 0:R.getPendingTmNode();return I&&x(I),!0}return!1}function T(R){c(R)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:v,selectTreeMate:g,handleResize:y,handleToggle:C,handleClickOutside:T,cascaderSlots:a},{prev:w,next:k,enter:_})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return u(It,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?sn(u(cc,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>vt(r["not-found"],()=>[])}),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),bX=O([S("cascader-menu",` - outline: none; - position: relative; - margin: 4px 0; - display: flex; - flex-flow: column nowrap; - border-radius: var(--n-menu-border-radius); - overflow: hidden; - box-shadow: var(--n-menu-box-shadow); - color: var(--n-option-text-color); - background-color: var(--n-menu-color); - `,[$n({transformOrigin:"inherit",duration:"0.2s"}),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),S("scrollbar",{width:"100%"}),S("base-menu-mask",{backgroundColor:"var(--n-menu-mask-color)"}),S("base-loading",{color:"var(--n-loading-color)"}),S("cascader-submenu-wrapper",` - position: relative; - display: flex; - flex-wrap: nowrap; - `),S("cascader-submenu",` - height: var(--n-menu-height); - min-width: var(--n-column-width); - position: relative; - `,[F("virtual",` - width: var(--n-column-width); - `),S("scrollbar-content",{position:"relative"}),O("&:first-child",` - border-top-left-radius: var(--n-menu-border-radius); - border-bottom-left-radius: var(--n-menu-border-radius); - `),O("&:last-child",` - border-top-right-radius: var(--n-menu-border-radius); - border-bottom-right-radius: var(--n-menu-border-radius); - `),O("&:not(:first-child)",` - border-left: 1px solid var(--n-menu-divider-color); - `)]),S("cascader-menu-action",` - box-sizing: border-box; - padding: 8px; - border-top: 1px solid var(--n-menu-divider-color); - `),S("cascader-option",` - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-option-font-size); - padding: 0 0 0 18px; - box-sizing: border-box; - min-width: 182px; - background-color: #0000; - display: flex; - align-items: center; - white-space: nowrap; - position: relative; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color 0.2s var(--n-bezier); - `,[F("show-prefix",{paddingLeft:0}),M("label",` - flex: 1 0 0; - overflow: hidden; - text-overflow: ellipsis; - `),M("prefix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),M("suffix",{width:"32px",display:"flex",alignItems:"center",justifyContent:"center"}),S("cascader-option-icon-placeholder",{lineHeight:0,position:"relative",width:"16px",height:"16px",fontSize:"16px"},[S("cascader-option-icon",[F("checkmark",{color:"var(--n-option-check-mark-color)"},[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),F("arrow",{color:"var(--n-option-arrow-color)"})])]),F("selected",{color:"var(--n-option-text-color-active)"}),F("active",{color:"var(--n-option-text-color-active)",backgroundColor:"var(--n-option-color-hover)"}),F("pending",{backgroundColor:"var(--n-option-color-hover)"}),O("&:hover",{backgroundColor:"var(--n-option-color-hover)"}),F("disabled",` - color: var(--n-option-text-color-disabled); - background-color: #0000; - cursor: not-allowed; - `,[S("cascader-option-icon",[F("arrow",{color:"var(--n-option-text-color-disabled)"})])])])]),S("cascader",` - z-index: auto; - position: relative; - width: 100%; - `)]),_P=Object.assign(Object.assign({},Se.props),{allowCheckingNotLoaded:Boolean,to:Lt.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,onChange:[Function,Array]}),yX=J({name:"Cascader",props:_P,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=He(e),a=Se("Cascader","-cascader",bX,dX,e,r),{localeRef:l}=yn("Cascader"),s=D(e.defaultValue),c=P(()=>e.value),d=wt(c,s),f=P(()=>e.leafOnly?"child":e.checkStrategy),h=D(""),v=xn(e),{mergedSizeRef:p,mergedDisabledRef:b,mergedStatusRef:m}=v,g=D(null),y=D(null),C=D(null),x=D(null),w=D(null),k=D(new Set),_=D(null),T=D(null),$=Lt(e),R=D(!1),I=ie=>{k.value.add(ie)},z=ie=>{k.value.delete(ie)},A=P(()=>{const{valueField:ie,childrenField:Te,disabledField:se}=e;return to(e.options,{getDisabled($e){return $e[se]},getKey($e){return $e[ie]},getChildren($e){return $e[Te]}})}),L=P(()=>{const{cascade:ie,multiple:Te}=e;return Te&&Array.isArray(d.value)?A.value.getCheckedKeys(d.value,{cascade:ie,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),j=P(()=>L.value.checkedKeys),E=P(()=>L.value.indeterminateKeys),U=P(()=>{const{treeNodePath:ie,treeNode:Te}=A.value.getPath(w.value);let se;return Te===null?se=[A.value.treeNodes]:(se=ie.map($e=>$e.siblings),!Te.isLeaf&&!k.value.has(Te.key)&&Te.children&&se.push(Te.children)),se}),K=P(()=>{const{keyPath:ie}=A.value.getPath(w.value);return ie}),Q=P(()=>a.value.self.optionHeight);ha(e.options)&&rt(e.options,(ie,Te)=>{ie!==Te&&(w.value=null,x.value=null)});function V(ie){const{onUpdateShow:Te,"onUpdate:show":se}=e;Te&&he(Te,ie),se&&he(se,ie),ke.value=ie}function re(ie,Te,se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormInput:Ne,nTriggerFormChange:Ze}=v;$e&&he($e,ie,Te,se),oe&&he(oe,ie,Te,se),Fe&&he(Fe,ie,Te,se),s.value=ie,Ne(),Ze()}function ee(ie){x.value=ie}function ue(ie){w.value=ie}function de(ie){const{value:{getNode:Te}}=A;return ie.map(se=>{var $e;return(($e=Te(se))===null||$e===void 0?void 0:$e.rawNode)||null})}function Ce(ie){var Te;const{cascade:se,multiple:$e,filterable:oe}=e,{value:{check:Fe,getNode:Ne,getPath:Ze}}=A;if($e)try{const{checkedKeys:Ue}=Fe(ie,L.value.checkedKeys,{cascade:se,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ue,de(Ue),Ue.map(le=>{var Ie;return od((Ie=Ze(le))===null||Ie===void 0?void 0:Ie.treeNodePath)})),oe&&X(),x.value=ie,w.value=ie}catch(Ue){if(Ue instanceof S2){if(g.value){const le=Ne(ie);le!==null&&g.value.showErrorMessage(le.rawNode[e.labelField])}}else throw Ue}else if(f.value==="child"){const Ue=Ne(ie);if(Ue!=null&&Ue.isLeaf)re(ie,Ue.rawNode,od(Ze(ie).treeNodePath));else return!1}else{const Ue=Ne(ie);re(ie,(Ue==null?void 0:Ue.rawNode)||null,od((Te=Ze(ie))===null||Te===void 0?void 0:Te.treeNodePath))}return!0}function we(ie){const{cascade:Te,multiple:se}=e;if(se){const{value:{uncheck:$e,getNode:oe,getPath:Fe}}=A,{checkedKeys:Ne}=$e(ie,L.value.checkedKeys,{cascade:Te,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});re(Ne,Ne.map(Ze=>{var Ue;return((Ue=oe(Ze))===null||Ue===void 0?void 0:Ue.rawNode)||null}),Ne.map(Ze=>{var Ue;return od((Ue=Fe(Ze))===null||Ue===void 0?void 0:Ue.treeNodePath)})),x.value=ie,w.value=ie}}const me=P(()=>{if(e.multiple){const{showPath:ie,separator:Te,labelField:se,cascade:$e}=e,{getCheckedKeys:oe,getNode:Fe}=A.value;return oe(j.value,{cascade:$e,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(Ze=>{const Ue=Fe(Ze);return Ue===null?{label:String(Ze),value:Ze}:{label:ie?Gg(Ue,Te,se):Ue.rawNode[se],value:Ue.key}})}else return[]}),Oe=P(()=>{const{multiple:ie,showPath:Te,separator:se,labelField:$e}=e,{value:oe}=d;if(!ie&&!Array.isArray(oe)){const{getNode:Fe}=A.value;if(oe===null)return null;const Ne=Fe(oe);return Ne===null?{label:String(oe),value:oe}:{label:Te?Gg(Ne,se,$e):Ne.rawNode[$e],value:Ne.key}}else return null}),ke=D(!1),pe=xe(e,"show"),Me=wt(pe,ke),H=P(()=>{const{placeholder:ie}=e;return ie!==void 0?ie:l.value.placeholder}),W=P(()=>!!(e.filterable&&h.value));rt(Me,ie=>{if(!ie||e.multiple)return;const{value:Te}=d;!Array.isArray(Te)&&Te!==null?(x.value=Te,w.value=Te,_t(()=>{var se;if(!Me.value)return;const{value:$e}=w;if(d.value!==null){const oe=A.value.getNode($e);oe&&((se=g.value)===null||se===void 0||se.scroll(oe.level,oe.index,dn(Q.value)))}})):(x.value=null,w.value=null)},{immediate:!0});function Y(ie){const{onBlur:Te}=e,{nTriggerFormBlur:se}=v;Te&&he(Te,ie),se()}function ce(ie){const{onFocus:Te}=e,{nTriggerFormFocus:se}=v;Te&&he(Te,ie),se()}function X(){var ie;(ie=C.value)===null||ie===void 0||ie.focusInput()}function B(){var ie;(ie=C.value)===null||ie===void 0||ie.focus()}function N(){b.value||(h.value="",V(!0),e.filterable&&X())}function te(ie=!1){ie&&B(),V(!1),h.value=""}function ve(ie){var Te;W.value||Me.value&&(!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ur(ie))||te())}function Z(ie){!W.value||ve(ie)}function fe(){e.clearFilterAfterSelect&&(h.value="")}function ne(ie){var Te,se,$e;const{value:oe}=x,{value:Fe}=A;switch(ie){case"prev":if(oe!==null){const Ne=Fe.getPrev(oe,{loop:!0});Ne!==null&&(ee(Ne.key),(Te=g.value)===null||Te===void 0||Te.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"next":if(oe===null){const Ne=Fe.getFirstAvailableNode();Ne!==null&&(ee(Ne.key),(se=g.value)===null||se===void 0||se.scroll(Ne.level,Ne.index,dn(Q.value)))}else{const Ne=Fe.getNext(oe,{loop:!0});Ne!==null&&(ee(Ne.key),($e=g.value)===null||$e===void 0||$e.scroll(Ne.level,Ne.index,dn(Q.value)))}break;case"child":if(oe!==null){const Ne=Fe.getNode(oe);if(Ne!==null)if(Ne.shallowLoaded){const Ze=Fe.getChild(oe);Ze!==null&&(ue(oe),ee(Ze.key))}else{const{value:Ze}=k;if(!Ze.has(oe)){I(oe),ue(oe);const{onLoad:Ue}=e;Ue&&Ue(Ne.rawNode).then(()=>{z(oe)}).catch(()=>{z(oe)})}}}break;case"parent":if(oe!==null){const Ne=Fe.getParent(oe);if(Ne!==null){ee(Ne.key);const Ze=Ne.getParent();ue(Ze===null?null:Ze.key)}}break}}function ge(ie){var Te,se;switch(ie.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Me.value)break;ie.preventDefault();break}if(!qn(ie,"action"))switch(ie.key){case" ":if(e.filterable)return;case"Enter":if(!Me.value)N();else{const{value:$e}=W,{value:oe}=x;if($e)y.value&&y.value.enter()&&fe();else if(oe!==null)if(j.value.includes(oe)||E.value.includes(oe))we(oe);else{const Fe=Ce(oe);!e.multiple&&Fe&&te(!0)}}break;case"ArrowUp":ie.preventDefault(),Me.value&&(W.value?(Te=y.value)===null||Te===void 0||Te.prev():ne("prev"));break;case"ArrowDown":ie.preventDefault(),Me.value?W.value?(se=y.value)===null||se===void 0||se.next():ne("next"):N();break;case"ArrowLeft":ie.preventDefault(),Me.value&&!W.value&&ne("parent");break;case"ArrowRight":ie.preventDefault(),Me.value&&!W.value&&ne("child");break;case"Escape":Me.value&&($a(ie),te(!0))}}function Pe(ie){ge(ie)}function Ae(ie){ie.stopPropagation(),e.multiple?re([],[],[]):re(null,null,null)}function Ke(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function qe(ie){var Te;!((Te=g.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie),te())}function ct(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!0,ce(ie))}function dt(ie){var Te;!((Te=C.value)===null||Te===void 0)&&Te.$el.contains(ie.relatedTarget)||(R.value=!1,Y(ie))}function ut(ie){qn(ie,"action")||e.multiple&&e.filter&&(ie.preventDefault(),X())}function je(){te(!0)}function Xe(){e.filterable?N():Me.value?te(!0):N()}function Ve(ie){h.value=ie.target.value}function We(ie){const{multiple:Te}=e,{value:se}=d;Te&&Array.isArray(se)&&ie.value!==void 0?we(ie.value):re(null,null,null)}function G(){var ie;(ie=_.value)===null||ie===void 0||ie.syncPosition()}function q(){var ie;(ie=T.value)===null||ie===void 0||ie.syncPosition()}function _e(){Me.value&&(W.value?G():q())}const Be=P(()=>!!(e.multiple&&e.cascade||f.value!=="child"));nt(dc,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:d,checkedKeysRef:j,indeterminateKeysRef:E,hoverKeyPathRef:K,mergedCheckStrategyRef:f,showCheckboxRef:Be,cascadeRef:xe(e,"cascade"),multipleRef:xe(e,"multiple"),keyboardKeyRef:x,hoverKeyRef:w,remoteRef:xe(e,"remote"),loadingKeySetRef:k,expandTriggerRef:xe(e,"expandTrigger"),isMountedRef:An(),onLoadRef:xe(e,"onLoad"),virtualScrollRef:xe(e,"virtualScroll"),optionHeightRef:Q,localeRef:l,labelFieldRef:xe(e,"labelField"),renderLabelRef:xe(e,"renderLabel"),syncCascaderMenuPosition:q,syncSelectMenuPosition:G,updateKeyboardKey:ee,updateHoverKey:ue,addLoadingKey:I,deleteLoadingKey:z,doCheck:Ce,doUncheck:we,closeMenu:te,handleSelectMenuClickOutside:Z,handleCascaderMenuClickOutside:ve,clearPattern:fe});const Ee={focus:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.focus()},blur:()=>{var ie;(ie=C.value)===null||ie===void 0||ie.blur()},getCheckedData:()=>{if(Be.value){const ie=j.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Be.value){const ie=E.value;return{keys:ie,options:de(ie)}}return{keys:[],options:[]}}},ae=P(()=>{const{self:{optionArrowColor:ie,optionTextColor:Te,optionTextColorActive:se,optionTextColorDisabled:$e,optionCheckMarkColor:oe,menuColor:Fe,menuBoxShadow:Ne,menuDividerColor:Ze,menuBorderRadius:Ue,menuHeight:le,optionColorHover:Ie,optionHeight:Ge,optionFontSize:gt,loadingColor:be,columnWidth:De},common:{cubicBezierEaseInOut:Qe}}=a.value;return{"--n-bezier":Qe,"--n-menu-border-radius":Ue,"--n-menu-box-shadow":Ne,"--n-menu-height":le,"--n-column-width":De,"--n-menu-color":Fe,"--n-menu-divider-color":Ze,"--n-option-height":Ge,"--n-option-font-size":gt,"--n-option-text-color":Te,"--n-option-text-color-disabled":$e,"--n-option-text-color-active":se,"--n-option-color-hover":Ie,"--n-option-check-mark-color":oe,"--n-option-arrow-color":ie,"--n-menu-mask-color":ft(Fe,{alpha:.75}),"--n-loading-color":be}}),ze=i?Je("cascader",void 0,ae,e):void 0;return Object.assign(Object.assign({},Ee),{handleTriggerResize:_e,mergedStatus:m,selectMenuFollowerRef:_,cascaderMenuFollowerRef:T,triggerInstRef:C,selectMenuInstRef:y,cascaderMenuInstRef:g,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:d,mergedShow:Me,showSelectMenu:W,pattern:h,treeMate:A,mergedSize:p,mergedDisabled:b,localizedPlaceholder:H,selectedOption:Oe,selectedOptions:me,adjustedTo:$,menuModel:U,handleMenuTabout:je,handleMenuFocus:ct,handleMenuBlur:dt,handleMenuKeydown:Pe,handleMenuMousedown:ut,handleTriggerFocus:Ke,handleTriggerBlur:qe,handleTriggerClick:Xe,handleClear:Ae,handleDeleteOption:We,handlePatternInput:Ve,handleKeydown:ge,focused:R,optionHeight:Q,mergedTheme:a,cssVars:i?void 0:ae,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{mergedClsPrefix:e}=this;return u("div",{class:`${e}-cascader`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),u(Sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Lt.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return u(gX,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n==null?void 0:n.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),u(Sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return u(mX,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n==null?void 0:n.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n==null?void 0:n.style]}))}})]}))}}),xX=e=>{const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}},wX={name:"Code",common:et,self:xX},kP=wX,CX=O([S("code",` - font-size: var(--n-font-size); - font-family: var(--n-font-family); - `,[F("show-line-numbers",` - display: flex; - `),M("line-numbers",` - user-select: none; - padding-right: 12px; - text-align: right; - transition: color .3s var(--n-bezier); - color: var(--n-line-number-text-color); - `),F("word-wrap",[O("pre",` - white-space: pre-wrap; - word-break: break-all; - `)]),O("pre",` - margin: 0; - line-height: inherit; - font-size: inherit; - font-family: inherit; - `),O("[class^=hljs]",` - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, - ${t} .hljs-quote { - color: var(--n-mono-3); - font-style: italic; - }`,`${t} .hljs-doctag, - ${t} .hljs-keyword, - ${t} .hljs-formula { - color: var(--n-hue-3); - }`,`${t} .hljs-section, - ${t} .hljs-name, - ${t} .hljs-selector-tag, - ${t} .hljs-deletion, - ${t} .hljs-subst { - color: var(--n-hue-5); - }`,`${t} .hljs-literal { - color: var(--n-hue-1); - }`,`${t} .hljs-string, - ${t} .hljs-regexp, - ${t} .hljs-addition, - ${t} .hljs-attribute, - ${t} .hljs-meta-string { - color: var(--n-hue-4); - }`,`${t} .hljs-built_in, - ${t} .hljs-class .hljs-title { - color: var(--n-hue-6-2); - }`,`${t} .hljs-attr, - ${t} .hljs-variable, - ${t} .hljs-template-variable, - ${t} .hljs-type, - ${t} .hljs-selector-class, - ${t} .hljs-selector-attr, - ${t} .hljs-selector-pseudo, - ${t} .hljs-number { - color: var(--n-hue-6); - }`,`${t} .hljs-symbol, - ${t} .hljs-bullet, - ${t} .hljs-link, - ${t} .hljs-meta, - ${t} .hljs-selector-id, - ${t} .hljs-title { - color: var(--n-hue-2); - }`,`${t} .hljs-emphasis { - font-style: italic; - }`,`${t} .hljs-strong { - font-weight: var(--n-font-weight-strong); - }`,`${t} .hljs-link { - text-decoration: underline; - }`]}]),RP=Object.assign(Object.assign({},Se.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),PP=J({name:"Code",props:RP,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(),i=D(null),a=n?{value:void 0}:h2(e),l=(v,p,b)=>{const{value:m}=a;return!m||!(v&&m.getLanguage(v))?null:m.highlight(b?p.trim():p,{language:v}).value},s=P(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:v}=i;if(!v)return;const{language:p}=e,b=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const g=l(p,b,e.trim);if(g!==null){if(e.inline)v.innerHTML=g;else{const y=v.querySelector(".__code__");y&&v.removeChild(y);const C=document.createElement("pre");C.className="__code__",C.innerHTML=g,v.appendChild(C)}return}}if(e.inline){v.textContent=b;return}const m=v.querySelector(".__code__");if(m)m.textContent=b;else{const g=document.createElement("pre");g.className="__code__",g.textContent=b,v.innerHTML="",v.appendChild(g)}};Mt(c),rt(xe(e,"language"),c),rt(xe(e,"code"),c),n||rt(a,c);const d=Se("Code","-code",CX,kP,e,r),f=P(()=>{const{common:{cubicBezierEaseInOut:v,fontFamilyMono:p},self:{textColor:b,fontSize:m,fontWeightStrong:g,lineNumberTextColor:y,"mono-3":C,"hue-1":x,"hue-2":w,"hue-3":k,"hue-4":_,"hue-5":T,"hue-5-2":$,"hue-6":R,"hue-6-2":I}}=d.value,{internalFontSize:z}=e;return{"--n-font-size":z?`${z}px`:m,"--n-font-family":p,"--n-font-weight-strong":g,"--n-bezier":v,"--n-text-color":b,"--n-mono-3":C,"--n-hue-1":x,"--n-hue-2":w,"--n-hue-3":k,"--n-hue-4":_,"--n-hue-5":T,"--n-hue-5-2":$,"--n-hue-6":R,"--n-hue-6-2":I,"--n-line-number-text-color":y}}),h=o?Je("code",P(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:P(()=>{let v=1;const p=[];let b=!1;for(const m of e.code)m===` -`?(b=!0,p.push(v++)):b=!1;return b||p.push(v++),p.join(` -`)}),cssVars:o?void 0:f,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i==null||i(),u("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?u("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),SX=e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0"}},_X={name:"Collapse",common:et,self:SX},kX=_X,RX=S("collapse","width: 100%;",[S("collapse-item",` - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - margin: var(--n-item-margin); - `,[F("disabled",[M("header","cursor: not-allowed;",[M("header-main",` - color: var(--n-title-text-color-disabled); - `),S("collapse-item-arrow",` - color: var(--n-arrow-color-disabled); - `)])]),S("collapse-item","margin-left: 32px;"),O("&:first-child","margin-top: 0;"),O("&:first-child >",[M("header","padding-top: 0;")]),F("left-arrow-placement",[M("header",[S("collapse-item-arrow","margin-right: 4px;")])]),F("right-arrow-placement",[M("header",[S("collapse-item-arrow","margin-left: 4px;")])]),M("content-wrapper",[M("content-inner","padding-top: 16px;"),jo({duration:"0.15s"})]),F("active",[M("header",[F("active",[S("collapse-item-arrow","transform: rotate(90deg);")])])]),O("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),M("header",` - font-size: var(--n-title-font-size); - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: color .3s var(--n-bezier); - position: relative; - padding: 16px 0 0 0; - color: var(--n-title-text-color); - cursor: pointer; - `,[M("header-main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - color: var(--n-title-text-color); - `),M("header-extra",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),S("collapse-item-arrow",` - display: flex; - transition: - transform .15s var(--n-bezier), - color .3s var(--n-bezier); - font-size: 18px; - color: var(--n-arrow-color); - `)])])]),$P=Object.assign(Object.assign({},Se.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),TP="n-collapse",PX=J({name:"Collapse",props:$P,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=D(e.defaultExpandedNames),a=P(()=>e.expandedNames),l=wt(a,i),s=Se("Collapse","-collapse",RX,kX,e,n);function c(b){const{"onUpdate:expandedNames":m,onUpdateExpandedNames:g,onExpandedNamesChange:y}=e;g&&he(g,b),m&&he(m,b),y&&he(y,b),i.value=b}function d(b){const{onItemHeaderClick:m}=e;m&&he(m,b)}function f(b,m,g){const{accordion:y}=e,{value:C}=l;if(y)b?(c([m]),d({name:m,expanded:!0,event:g})):(c([]),d({name:m,expanded:!1,event:g}));else if(!Array.isArray(C))c([m]),d({name:m,expanded:!0,event:g});else{const x=C.slice(),w=x.findIndex(k=>m===k);~w?(x.splice(w,1),c(x),d({name:m,expanded:!1,event:g})):(x.push(m),c(x),d({name:m,expanded:!0,event:g}))}}nt(TP,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const h=Zt("Collapse",o,n),v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:m,dividerColor:g,titleTextColor:y,titleTextColorDisabled:C,textColor:x,arrowColor:w,fontSize:k,titleFontSize:_,arrowColorDisabled:T,itemMargin:$}}=s.value;return{"--n-font-size":k,"--n-bezier":b,"--n-text-color":x,"--n-divider-color":g,"--n-title-font-size":_,"--n-title-text-color":y,"--n-title-text-color-disabled":C,"--n-title-font-weight":m,"--n-arrow-color":w,"--n-arrow-color-disabled":T,"--n-item-margin":$}}),p=r?Je("collapse",void 0,v,e):void 0;return{rtlEnabled:h,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),$X=J({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Lk(xe(e,"show"))}},render(){return u(Ro,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=u("div",{class:`${r}-collapse-item__content-wrapper`},u("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?sn(i,[[wr,e]]):e?i:null}})}}),OP={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},TX=J({name:"CollapseItem",props:OP,setup(e){const{mergedRtlRef:t}=He(e),n=Cr(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Le(TP);o||Dn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:s}=o,c=P(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:h}=r;return!~f.findIndex(v=>v===h)}else if(f){const{value:h}=r;return h!==f}return!0});return{rtlEnabled:Zt("Collapse",t,l),collapseSlots:s,randomName:n,mergedClsPrefix:l,collapsed:c,mergedDisplayDirective:P(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:P(()=>a.arrowPlacement),handleClick(f){o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,l=Ra(t.header,{collapsed:r},()=>[this.title]),s=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return u("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},u("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},u("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&l,u("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},Ra(c,{collapsed:r},()=>{var d;return[u(st,{clsPrefix:i},{default:(d=e.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?u(e0,null):u(Ha,null)})]})),n==="left"&&l),fD(s,{collapsed:r},d=>u("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},d))),u($X,{clsPrefix:i,displayDirective:o,show:!r},t))}}),OX=S("collapse-transition",{width:"100%"},[jo()]),zX=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},MX={name:"CollapseTransition",common:et,self:zX},IX=MX,zP=Object.assign(Object.assign({},Se.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),FX=J({name:"CollapseTransition",props:zP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("CollapseTransition","-collapse-transition",OX,IX,e,t),i=Zt("CollapseTransition",r,t),a=P(()=>e.collapsed!==void 0?e.collapsed:e.show),l=P(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),s=n?Je("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){return u(Ro,{appear:this.appear},{default:()=>{var e;if(!!this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),u("div",Wn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}}),MP={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Yn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},IP=J({name:"ConfigProvider",alias:["App"],props:MP,setup(e){const t=Le(Er,null),n=P(()=>{const{theme:p}=e;if(p===null)return;const b=t==null?void 0:t.mergedThemeRef.value;return p===void 0?b:b===void 0?p:Object.assign({},b,p)}),r=P(()=>{const{themeOverrides:p}=e;if(p!==null){if(p===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const b=t==null?void 0:t.mergedThemeOverridesRef.value;return b===void 0?p:cl({},b,p)}}}),o=it(()=>{const{namespace:p}=e;return p===void 0?t==null?void 0:t.mergedNamespaceRef.value:p}),i=it(()=>{const{bordered:p}=e;return p===void 0?t==null?void 0:t.mergedBorderedRef.value:p}),a=P(()=>{const{icons:p}=e;return p===void 0?t==null?void 0:t.mergedIconsRef.value:p}),l=P(()=>{const{componentOptions:p}=e;return p!==void 0?p:t==null?void 0:t.mergedComponentPropsRef.value}),s=P(()=>{const{clsPrefix:p}=e;return p!==void 0?p:t==null?void 0:t.mergedClsPrefixRef.value}),c=P(()=>{var p;const{rtl:b}=e;if(b===void 0)return t==null?void 0:t.mergedRtlRef.value;const m={};for(const g of b)m[g.name]=bu(g),(p=g.peers)===null||p===void 0||p.forEach(y=>{y.name in m||(m[y.name]=bu(y))});return m}),d=P(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),v=P(()=>{const{value:p}=n,{value:b}=r,m=b&&Object.keys(b).length!==0,g=p==null?void 0:p.name;return g?m?`${g}-${Bs(JSON.stringify(r.value))}`:g:m?Bs(JSON.stringify(r.value)):""});return nt(Er,{mergedThemeHashRef:v,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:s,mergedLocaleRef:P(()=>{const{locale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedLocaleRef.value:p}),mergedDateLocaleRef:P(()=>{const{dateLocale:p}=e;if(p!==null)return p===void 0?t==null?void 0:t.mergedDateLocaleRef.value:p}),mergedHljsRef:P(()=>{const{hljs:p}=e;return p===void 0?t==null?void 0:t.mergedHljsRef.value:p}),mergedKatexRef:P(()=>{const{katex:p}=e;return p===void 0?t==null?void 0:t.mergedKatexRef.value:p}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:h||!1}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):u(this.as||this.tag,{class:`${this.mergedClsPrefix||ZR}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),FP={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},DX=J({name:"Countdown",props:FP,setup(e){let t=null,n=0,r=!1;const o=D(0);Ft(()=>{o.value=e.duration});let i=-1;function a(v){return e.duration-n+i-v}function l(v){const p=Math.floor(v/36e5),b=Math.floor(v%36e5/6e4),m=Math.floor(v%6e4/1e3),g=Math.floor(v%1e3);return{hours:p,minutes:b,seconds:m,milliseconds:g}}function s(v){const{hours:p,minutes:b,seconds:m,milliseconds:g}=v,{precision:y}=e;switch(y){case 0:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}`;default:return`${String(p).padStart(2,"0")}:${String(b).padStart(2,"0")}:${String(m).padStart(2,"0")}.${String(Math.floor(g/(y===1?100:y===2?10:1))).padStart(y,"0")}`}}const c=()=>{var v;const{precision:p}=e,b=a(performance.now());if(b<=0){o.value=0,d(),r||(r=!0,(v=e.onFinish)===null||v===void 0||v.call(e));return}let m;switch(p){case 3:case 2:m=b%34;break;case 1:m=b%100;break;default:m=b%1e3}o.value=b,t=window.setTimeout(()=>{c()},m)},d=()=>{t!==null&&(window.clearTimeout(t),t=null)};Mt(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const v=performance.now();i!==-1&&(n+=v-i),d()}})}),Dt(()=>{d()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:s})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}}),AX=e=>1-Math.pow(1-e,5);function BX(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=()=>{const s=performance.now(),c=Math.min(s-l,r),d=t+(n-t)*AX(c/r);if(c===r){i();return}o(d),requestAnimationFrame(a)},l=performance.now();a()}const DP={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},EX=J({name:"NumberAnimation",props:DP,setup(e){const{localeRef:t}=yn("name"),{duration:n}=e,r=D(e.from),o=P(()=>{const{locale:h}=e;return h!==void 0?h:t.value});let i=!1;const a=h=>{r.value=h},l=()=>{var h;r.value=e.to,i=!1,(h=e.onFinish)===null||h===void 0||h.call(e)},s=(h=e.from,v=e.to)=>{i=!0,r.value=e.from,h!==v&&BX({from:h,to:v,duration:n,onUpdate:a,onFinish:l})},c=P(()=>{var h;const p=JN(r.value,e.precision).toFixed(e.precision).split("."),b=new Intl.NumberFormat(o.value),m=(h=b.formatToParts(.5).find(C=>C.type==="decimal"))===null||h===void 0?void 0:h.value,g=e.showSeparator?b.format(Number(p[0])):p[0],y=p[1];return{integer:g,decimal:y,decimalSeparator:m}});function d(){i||s()}return Mt(()=>{Ft(()=>{e.active&&s()})}),Object.assign({formattedValue:c},{play:d})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}});function LX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const NX={name:"Popselect",common:et,peers:{Popover:Ua,InternalSelectMenu:Ml},self:LX},s0=NX,AP="n-popselect",HX=S("popselect-menu",` - box-shadow: var(--n-menu-box-shadow); -`),c0={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},RC=Nn(c0),jX=J({name:"PopselectPanel",props:c0,setup(e){const t=Le(AP),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=Se("Popselect","-pop-select",HX,s0,t.props,n),i=P(()=>to(e.options,hh("value","children")));function a(h,v){const{onUpdateValue:p,"onUpdate:value":b,onChange:m}=e;p&&he(p,h,v),b&&he(b,h,v),m&&he(m,h,v)}function l(h){c(h.key)}function s(h){qn(h,"action")||h.preventDefault()}function c(h){const{value:{getNode:v}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],b=[];let m=!0;e.value.forEach(g=>{if(g===h){m=!1;return}const y=v(g);y&&(p.push(y.key),b.push(y.rawNode))}),m&&(p.push(h),b.push(v(h).rawNode)),a(p,b)}else{const p=v(h);p&&a([h],[p.rawNode])}else if(e.value===h&&e.cancelable)a(null,null);else{const p=v(h);p&&a(h,p.rawNode);const{"onUpdate:show":b,onUpdateShow:m}=t.props;b&&he(b,!1),m&&he(m,!1),t.setShow(!1)}_t(()=>{t.syncPosition()})}rt(xe(e,"options"),()=>{_t(()=>{t.syncPosition()})});const d=P(()=>{const{self:{menuBoxShadow:h}}=o.value;return{"--n-menu-box-shadow":h}}),f=r?Je("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:s,cssVars:r?void 0:d,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u(cc,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),BP=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),Aa(Ma,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ma.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),c0),EP=J({name:"Popselect",props:BP,inheritAttrs:!1,__popover__:!0,setup(e){const t=Se("Popselect","-popselect",void 0,s0,e),n=D(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function o(a){var l;(l=n.value)===null||l===void 0||l.setShow(a)}return nt(AP,{props:e,mergedThemeRef:t,syncPosition:r,setShow:o}),Object.assign(Object.assign({},{syncPosition:r,setShow:o}),{popoverInstRef:n,mergedTheme:t})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return u(jX,Object.assign({},l,{class:[l.class,n],style:[l.style,o]},mn(this.$props,RC),{ref:$k(r),onMouseenter:gs([i,l.onMouseenter]),onMouseleave:gs([a,l.onMouseleave])}),{action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return u(Wa,Object.assign({},Aa(this.$props,RC),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function VX(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const UX={name:"Select",common:et,peers:{InternalSelection:fh,InternalSelectMenu:Ml},self:VX},LP=UX,WX=O([S("select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("select-menu",` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NP=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),HP=J({name:"Select",props:NP,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Select","-select",WX,LP,e,t),a=D(e.defaultValue),l=xe(e,"value"),s=wt(l,a),c=D(!1),d=D(""),f=P(()=>{const{valueField:G,childrenField:q}=e,_e=hh(G,q);return to(z.value,_e)}),h=P(()=>QK(R.value,e.valueField,e.childrenField)),v=D(!1),p=wt(xe(e,"show"),v),b=D(null),m=D(null),g=D(null),{localeRef:y}=yn("Select"),C=P(()=>{var G;return(G=e.placeholder)!==null&&G!==void 0?G:y.value.placeholder}),x=Ri(e,["items","options"]),w=[],k=D([]),_=D([]),T=D(new Map),$=P(()=>{const{fallbackOption:G}=e;if(G===void 0){const{labelField:q,valueField:_e}=e;return Be=>({[q]:String(Be),[_e]:Be})}return G===!1?!1:q=>Object.assign(G(q),{value:q})}),R=P(()=>_.value.concat(k.value).concat(x.value)),I=P(()=>{const{filter:G}=e;if(G)return G;const{labelField:q,valueField:_e}=e;return(Be,Ee)=>{if(!Ee)return!1;const ae=Ee[q];if(typeof ae=="string")return xv(Be,ae);const ze=Ee[_e];return typeof ze=="string"?xv(Be,ze):typeof ze=="number"?xv(Be,String(ze)):!1}}),z=P(()=>{if(e.remote)return x.value;{const{value:G}=R,{value:q}=d;return!q.length||!e.filterable?G:ZK(G,I.value,q,e.childrenField)}});function A(G){const q=e.remote,{value:_e}=T,{value:Be}=h,{value:Ee}=$,ae=[];return G.forEach(ze=>{if(Be.has(ze))ae.push(Be.get(ze));else if(q&&_e.has(ze))ae.push(_e.get(ze));else if(Ee){const ie=Ee(ze);ie&&ae.push(ie)}}),ae}const L=P(()=>{if(e.multiple){const{value:G}=s;return Array.isArray(G)?A(G):[]}return null}),j=P(()=>{const{value:G}=s;return!e.multiple&&!Array.isArray(G)?G===null?null:A([G])[0]||null:null}),E=xn(e),{mergedSizeRef:U,mergedDisabledRef:K,mergedStatusRef:Q}=E;function V(G,q){const{onChange:_e,"onUpdate:value":Be,onUpdateValue:Ee}=e,{nTriggerFormChange:ae,nTriggerFormInput:ze}=E;_e&&he(_e,G,q),Ee&&he(Ee,G,q),Be&&he(Be,G,q),a.value=G,ae(),ze()}function re(G){const{onBlur:q}=e,{nTriggerFormBlur:_e}=E;q&&he(q,G),_e()}function ee(){const{onClear:G}=e;G&&he(G)}function ue(G){const{onFocus:q,showOnFocus:_e}=e,{nTriggerFormFocus:Be}=E;q&&he(q,G),Be(),_e&&Oe()}function de(G){const{onSearch:q}=e;q&&he(q,G)}function Ce(G){const{onScroll:q}=e;q&&he(q,G)}function we(){var G;const{remote:q,multiple:_e}=e;if(q){const{value:Be}=T;if(_e){const{valueField:Ee}=e;(G=L.value)===null||G===void 0||G.forEach(ae=>{Be.set(ae[Ee],ae)})}else{const Ee=j.value;Ee&&Be.set(Ee[e.valueField],Ee)}}}function me(G){const{onUpdateShow:q,"onUpdate:show":_e}=e;q&&he(q,G),_e&&he(_e,G),v.value=G}function Oe(){K.value||(me(!0),v.value=!0,e.filterable&&ut())}function ke(){me(!1)}function pe(){d.value="",_.value=w}const Me=D(!1);function H(){e.filterable&&(Me.value=!0)}function W(){e.filterable&&(Me.value=!1,p.value||pe())}function Y(){K.value||(p.value?e.filterable?ut():ke():Oe())}function ce(G){var q,_e;!((_e=(q=g.value)===null||q===void 0?void 0:q.selfRef)===null||_e===void 0)&&_e.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function X(G){ue(G),c.value=!0}function B(G){c.value=!0}function N(G){var q;!((q=b.value)===null||q===void 0)&&q.$el.contains(G.relatedTarget)||(c.value=!1,re(G),ke())}function te(){var G;(G=b.value)===null||G===void 0||G.focus(),ke()}function ve(G){var q;p.value&&(!((q=b.value)===null||q===void 0)&&q.$el.contains(ur(G))||ke())}function Z(G){if(!Array.isArray(G))return[];if($.value)return Array.from(G);{const{remote:q}=e,{value:_e}=h;if(q){const{value:Be}=T;return G.filter(Ee=>_e.has(Ee)||Be.has(Ee))}else return G.filter(Be=>_e.has(Be))}}function fe(G){ne(G.rawNode)}function ne(G){if(K.value)return;const{tag:q,remote:_e,clearFilterAfterSelect:Be,valueField:Ee}=e;if(q&&!_e){const{value:ae}=_,ze=ae[0]||null;if(ze){const ie=k.value;ie.length?ie.push(ze):k.value=[ze],_.value=w}}if(_e&&T.value.set(G[Ee],G),e.multiple){const ae=Z(s.value),ze=ae.findIndex(ie=>ie===G[Ee]);if(~ze){if(ae.splice(ze,1),q&&!_e){const ie=ge(G[Ee]);~ie&&(k.value.splice(ie,1),Be&&(d.value=""))}}else ae.push(G[Ee]),Be&&(d.value="");V(ae,A(ae))}else{if(q&&!_e){const ae=ge(G[Ee]);~ae?k.value=[k.value[ae]]:k.value=w}dt(),ke(),V(G[Ee],G)}}function ge(G){return k.value.findIndex(_e=>_e[e.valueField]===G)}function Pe(G){p.value||Oe();const{value:q}=G.target;d.value=q;const{tag:_e,remote:Be}=e;if(de(q),_e&&!Be){if(!q){_.value=w;return}const{onCreate:Ee}=e,ae=Ee?Ee(q):{[e.labelField]:q,[e.valueField]:q},{valueField:ze}=e;x.value.some(ie=>ie[ze]===ae[ze])||k.value.some(ie=>ie[ze]===ae[ze])?_.value=w:_.value=[ae]}}function Ae(G){G.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&ke(),ee(),q?V([],[]):V(null,null)}function Ke(G){!qn(G,"action")&&!qn(G,"empty")&&G.preventDefault()}function qe(G){Ce(G)}function ct(G){var q,_e,Be,Ee,ae;switch(G.key){case" ":if(e.filterable)break;G.preventDefault();case"Enter":if(!(!((q=b.value)===null||q===void 0)&&q.isComposing)){if(p.value){const ze=(_e=g.value)===null||_e===void 0?void 0:_e.getPendingTmNode();ze?fe(ze):e.filterable||(ke(),dt())}else if(Oe(),e.tag&&Me.value){const ze=_.value[0];if(ze){const ie=ze[e.valueField],{value:Te}=s;e.multiple&&Array.isArray(Te)&&Te.some(se=>se===ie)||ne(ze)}}}G.preventDefault();break;case"ArrowUp":if(G.preventDefault(),e.loading)return;p.value&&((Be=g.value)===null||Be===void 0||Be.prev());break;case"ArrowDown":if(G.preventDefault(),e.loading)return;p.value?(Ee=g.value)===null||Ee===void 0||Ee.next():Oe();break;case"Escape":p.value&&($a(G),ke()),(ae=b.value)===null||ae===void 0||ae.focus();break}}function dt(){var G;(G=b.value)===null||G===void 0||G.focus()}function ut(){var G;(G=b.value)===null||G===void 0||G.focusInput()}function je(){var G;!p.value||(G=m.value)===null||G===void 0||G.syncPosition()}we(),rt(xe(e,"options"),we);const Xe={focus:()=>{var G;(G=b.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=b.value)===null||G===void 0||G.blur()}},Ve=P(()=>{const{self:{menuBoxShadow:G}}=i.value;return{"--n-menu-box-shadow":G}}),We=o?Je("select",void 0,Ve,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:Q,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:f,isMounted:An(),triggerRef:b,menuRef:g,pattern:d,uncontrolledShow:v,mergedShow:p,adjustedTo:Lt(e),uncontrolledValue:a,mergedValue:s,followerRef:m,localizedPlaceholder:C,selectedOption:j,selectedOptions:L,mergedSize:U,mergedDisabled:K,focused:c,activeWithoutMenuOpen:Me,inlineThemeDisabled:o,onTriggerInputFocus:H,onTriggerInputBlur:W,handleTriggerOrMenuResize:je,handleMenuFocus:B,handleMenuBlur:N,handleMenuTabOut:te,handleTriggerClick:Y,handleToggle:fe,handleDeleteOption:ne,handlePatternInput:Pe,handleClear:Ae,handleTriggerBlur:ce,handleTriggerFocus:X,handleKeydown:ct,handleMenuAfterLeave:pe,handleMenuClickOutside:ve,handleMenuScroll:qe,handleMenuKeydown:ct,handleMenuMousedown:Ke,mergedTheme:i,cssVars:o?void 0:Ve,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender})},render(){return u("div",{class:`${this.mergedClsPrefix}-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),u(Sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),sn(u(cc,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[wr,this.mergedShow],[fr,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[fr,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),KX={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},qX=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:f,heightTiny:h,heightSmall:v,heightMedium:p}=e;return Object.assign(Object.assign({},KX),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:v,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})},YX={name:"Pagination",common:et,peers:{Select:LP,Input:kr,Popselect:s0},self:qX},jP=YX;function XX(e,t,n){let r=!1,o=!1,i=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:i,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,s=t;let c=e,d=e;const f=(n-5)/2;d+=Math.ceil(f),d=Math.min(Math.max(d,l+n-3),s-2),c-=Math.floor(f),c=Math.max(Math.min(c,s-n+3),l+2);let h=!1,v=!1;c>l+2&&(h=!0),d=l+1&&p.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let b=c;b<=d;++b)p.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return v?(o=!0,a=d+1,p.push({type:"fast-forward",active:!1,label:void 0,options:PC(d+1,s-1)})):d===s-2&&p[p.length-1].label!==s-1&&p.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:s-1,active:e===s-1}),p[p.length-1].label!==s&&p.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:s,active:e===s}),{hasFastBackward:r,hasFastForward:o,fastBackwardTo:i,fastForwardTo:a,items:p}}function PC(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const $C=` - background: var(--n-item-color-hover); - color: var(--n-item-text-color-hover); - border: var(--n-item-border-hover); -`,TC=[F("button",` - background: var(--n-button-color-hover); - border: var(--n-button-border-hover); - color: var(--n-button-icon-color-hover); - `)],GX=S("pagination",` - display: flex; - vertical-align: middle; - font-size: var(--n-item-font-size); - flex-wrap: nowrap; -`,[S("pagination-prefix",` - display: flex; - align-items: center; - margin: var(--n-prefix-margin); - `),S("pagination-suffix",` - display: flex; - align-items: center; - margin: var(--n-suffix-margin); - `),O("> *:not(:first-child)",` - margin: var(--n-item-margin); - `),S("select",` - width: var(--n-select-width); - `),O("&.transition-disabled",[S("pagination-item","transition: none!important;")]),S("pagination-quick-jumper",` - white-space: nowrap; - display: flex; - color: var(--n-jumper-text-color); - transition: color .3s var(--n-bezier); - align-items: center; - font-size: var(--n-jumper-font-size); - `,[S("input",` - margin: var(--n-input-margin); - width: var(--n-input-width); - `)]),S("pagination-item",` - position: relative; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - display: flex; - align-items: center; - justify-content: center; - box-sizing: border-box; - min-width: var(--n-item-size); - height: var(--n-item-size); - padding: var(--n-item-padding); - background-color: var(--n-item-color); - color: var(--n-item-text-color); - border-radius: var(--n-item-border-radius); - border: var(--n-item-border); - fill: var(--n-button-icon-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - fill .3s var(--n-bezier); - `,[F("button",` - background: var(--n-button-color); - color: var(--n-button-icon-color); - border: var(--n-button-border); - padding: 0; - `,[S("base-icon",` - font-size: var(--n-button-icon-size); - `)]),pt("disabled",[F("hover",$C,TC),O("&:hover",$C,TC),O("&:active",` - background: var(--n-item-color-pressed); - color: var(--n-item-text-color-pressed); - border: var(--n-item-border-pressed); - `,[F("button",` - background: var(--n-button-color-pressed); - border: var(--n-button-border-pressed); - color: var(--n-button-icon-color-pressed); - `)]),F("active",` - background: var(--n-item-color-active); - color: var(--n-item-text-color-active); - border: var(--n-item-border-active); - `,[O("&:hover",` - background: var(--n-item-color-active-hover); - `)])]),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `,[F("active, button",` - background-color: var(--n-item-color-disabled); - border: var(--n-item-border-disabled); - `)])]),F("disabled",` - cursor: not-allowed; - `,[S("pagination-quick-jumper",` - color: var(--n-jumper-text-color-disabled); - `)]),F("simple",` - display: flex; - align-items: center; - flex-wrap: nowrap; - `,[S("pagination-quick-jumper",[S("input",` - margin: 0; - `)])])]),VP=Object.assign(Object.assign({},Se.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Lt.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),UP=J({name:"Pagination",props:VP,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Pagination","-pagination",GX,jP,e,n),{localeRef:a}=yn("Pagination"),l=D(null),s=D(e.defaultPage),d=D((()=>{const{defaultPageSize:pe}=e;if(pe!==void 0)return pe;const Me=e.pageSizes[0];return typeof Me=="number"?Me:Me.value||10})()),f=wt(xe(e,"page"),s),h=wt(xe(e,"pageSize"),d),v=P(()=>{const{itemCount:pe}=e;if(pe!==void 0)return Math.max(1,Math.ceil(pe/h.value));const{pageCount:Me}=e;return Me!==void 0?Math.max(Me,1):1}),p=D("");Ft(()=>{e.simple,p.value=String(f.value)});const b=D(!1),m=D(!1),g=D(!1),y=D(!1),C=()=>{e.disabled||(b.value=!0,E())},x=()=>{e.disabled||(b.value=!1,E())},w=()=>{m.value=!0,E()},k=()=>{m.value=!1,E()},_=pe=>{U(pe)},T=P(()=>XX(f.value,v.value,e.pageSlot));Ft(()=>{T.value.hasFastBackward?T.value.hasFastForward||(b.value=!1,g.value=!1):(m.value=!1,y.value=!1)});const $=P(()=>{const pe=a.value.selectionSuffix;return e.pageSizes.map(Me=>typeof Me=="number"?{label:`${Me} / ${pe}`,value:Me}:Me)}),R=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.inputSize)||mp(e.size)}),I=P(()=>{var pe,Me;return((Me=(pe=t==null?void 0:t.value)===null||pe===void 0?void 0:pe.Pagination)===null||Me===void 0?void 0:Me.selectSize)||mp(e.size)}),z=P(()=>(f.value-1)*h.value),A=P(()=>{const pe=f.value*h.value-1,{itemCount:Me}=e;return Me!==void 0&&pe>Me-1?Me-1:pe}),L=P(()=>{const{itemCount:pe}=e;return pe!==void 0?pe:(e.pageCount||1)*h.value}),j=Zt("Pagination",o,n),E=()=>{_t(()=>{var pe;const{value:Me}=l;!Me||(Me.classList.add("transition-disabled"),(pe=l.value)===null||pe===void 0||pe.offsetWidth,Me.classList.remove("transition-disabled"))})};function U(pe){if(pe===f.value)return;const{"onUpdate:page":Me,onUpdatePage:H,onChange:W,simple:Y}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),s.value=pe,Y&&(p.value=String(pe))}function K(pe){if(pe===h.value)return;const{"onUpdate:pageSize":Me,onUpdatePageSize:H,onPageSizeChange:W}=e;Me&&he(Me,pe),H&&he(H,pe),W&&he(W,pe),d.value=pe,v.value{f.value,h.value,E()});const Oe=P(()=>{const{size:pe}=e,{self:{buttonBorder:Me,buttonBorderHover:H,buttonBorderPressed:W,buttonIconColor:Y,buttonIconColorHover:ce,buttonIconColorPressed:X,itemTextColor:B,itemTextColorHover:N,itemTextColorPressed:te,itemTextColorActive:ve,itemTextColorDisabled:Z,itemColor:fe,itemColorHover:ne,itemColorPressed:ge,itemColorActive:Pe,itemColorActiveHover:Ae,itemColorDisabled:Ke,itemBorder:qe,itemBorderHover:ct,itemBorderPressed:dt,itemBorderActive:ut,itemBorderDisabled:je,itemBorderRadius:Xe,jumperTextColor:Ve,jumperTextColorDisabled:We,buttonColor:G,buttonColorHover:q,buttonColorPressed:_e,[ye("itemPadding",pe)]:Be,[ye("itemMargin",pe)]:Ee,[ye("inputWidth",pe)]:ae,[ye("selectWidth",pe)]:ze,[ye("inputMargin",pe)]:ie,[ye("selectMargin",pe)]:Te,[ye("jumperFontSize",pe)]:se,[ye("prefixMargin",pe)]:$e,[ye("suffixMargin",pe)]:oe,[ye("itemSize",pe)]:Fe,[ye("buttonIconSize",pe)]:Ne,[ye("itemFontSize",pe)]:Ze,[`${ye("itemMargin",pe)}Rtl`]:Ue,[`${ye("inputMargin",pe)}Rtl`]:le},common:{cubicBezierEaseInOut:Ie}}=i.value;return{"--n-prefix-margin":$e,"--n-suffix-margin":oe,"--n-item-font-size":Ze,"--n-select-width":ze,"--n-select-margin":Te,"--n-input-width":ae,"--n-input-margin":ie,"--n-input-margin-rtl":le,"--n-item-size":Fe,"--n-item-text-color":B,"--n-item-text-color-disabled":Z,"--n-item-text-color-hover":N,"--n-item-text-color-active":ve,"--n-item-text-color-pressed":te,"--n-item-color":fe,"--n-item-color-hover":ne,"--n-item-color-disabled":Ke,"--n-item-color-active":Pe,"--n-item-color-active-hover":Ae,"--n-item-color-pressed":ge,"--n-item-border":qe,"--n-item-border-hover":ct,"--n-item-border-disabled":je,"--n-item-border-active":ut,"--n-item-border-pressed":dt,"--n-item-padding":Be,"--n-item-border-radius":Xe,"--n-bezier":Ie,"--n-jumper-font-size":se,"--n-jumper-text-color":Ve,"--n-jumper-text-color-disabled":We,"--n-item-margin":Ee,"--n-item-margin-rtl":Ue,"--n-button-icon-size":Ne,"--n-button-icon-color":Y,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":X,"--n-button-color-hover":q,"--n-button-color":G,"--n-button-color-pressed":_e,"--n-button-border":Me,"--n-button-border-hover":H,"--n-button-border-pressed":W}}),ke=r?Je("pagination",P(()=>{let pe="";const{size:Me}=e;return pe+=Me[0],pe}),Oe,e):void 0;return{rtlEnabled:j,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:f,pageItems:P(()=>T.value.items),mergedItemCount:L,jumperValue:p,pageSizeOptions:$,mergedPageSize:h,inputSize:R,selectSize:I,mergedTheme:i,mergedPageCount:v,startIndex:z,endIndex:A,showFastForwardMenu:g,showFastBackwardMenu:y,fastForwardActive:b,fastBackwardActive:m,handleMenuSelect:_,handleFastForwardMouseenter:C,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:k,handleJumperInput:me,handleBackwardClick:V,handleForwardClick:Q,handlePageItemClick:we,handleSizePickerChange:ue,handleQuickJumperChange:Ce,cssVars:r?void 0:Oe,themeClass:ke==null?void 0:ke.themeClass,onRender:ke==null?void 0:ke.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:f,selectSize:h,mergedPageSize:v,pageSizeOptions:p,jumperValue:b,simple:m,prev:g,next:y,prefix:C,suffix:x,label:w,goto:k,handleJumperInput:_,handleSizePickerChange:T,handleBackwardClick:$,handlePageItemClick:R,handleForwardClick:I,handleQuickJumperChange:z,onRender:A}=this;A==null||A();const L=e.prefix||C,j=e.suffix||x,E=g||e.prev,U=y||e.next,K=w||e.label;return u("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,m&&`${t}-pagination--simple`],style:r},L?u("div",{class:`${t}-pagination-prefix`},L({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(Q=>{switch(Q){case"pages":return u($t,null,u("div",{class:[`${t}-pagination-item`,!E&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},E?E({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Mi,null):u(Ti,null)})),m?u($t,null,u("div",{class:`${t}-pagination-quick-jumper`},u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})),"\xA0/ ",i):a.map((V,re)=>{let ee,ue,de;const{type:Ce}=V;switch(Ce){case"page":const me=V.label;K?ee=K({type:"page",node:me,active:V.active}):ee=me;break;case"fast-forward":const Oe=this.fastForwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Oi,null):u(zi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-forward",node:Oe,active:this.fastForwardActive||this.showFastForwardMenu}):ee=Oe,ue=this.handleFastForwardMouseenter,de=this.handleFastForwardMouseleave;break;case"fast-backward":const ke=this.fastBackwardActive?u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(zi,null):u(Oi,null)}):u(st,{clsPrefix:t},{default:()=>u(cC,null)});K?ee=K({type:"fast-backward",node:ke,active:this.fastBackwardActive||this.showFastBackwardMenu}):ee=ke,ue=this.handleFastBackwardMouseenter,de=this.handleFastBackwardMouseleave;break}const we=u("div",{key:re,class:[`${t}-pagination-item`,V.active&&`${t}-pagination-item--active`,Ce!=="page"&&(Ce==="fast-backward"&&this.showFastBackwardMenu||Ce==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Ce==="page"&&`${t}-pagination-item--clickable`],onClick:()=>R(V),onMouseenter:ue,onMouseleave:de},ee);if(Ce==="page"&&!V.mayBeFastBackward&&!V.mayBeFastForward)return we;{const me=V.type==="page"?V.mayBeFastBackward?"fast-backward":"fast-forward":V.type;return u(EP,{to:this.to,key:me,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Ce==="page"?!1:Ce==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:Oe=>{Ce!=="page"&&(Oe?Ce==="fast-backward"?this.showFastBackwardMenu=Oe:this.showFastForwardMenu=Oe:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:V.type!=="page"?V.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),u("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:I},U?U({page:o,pageSize:v,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):u(st,{clsPrefix:t},{default:()=>this.rtlEnabled?u(Ti,null):u(Mi,null)})));case"size-picker":return!m&&l?u(HP,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:h,options:p,value:v,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:T})):null;case"quick-jumper":return!m&&s?u("div",{class:`${t}-pagination-quick-jumper`},k?k():vt(this.$slots.goto,()=>[d.goto]),u(In,{value:b,onUpdateValue:_,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:z})):null;default:return null}}),j?u("div",{class:`${t}-pagination-suffix`},j({page:o,pageSize:v,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),ZX={padding:"8px 14px"},QX=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},ZX),{borderRadius:t,boxShadow:n,color:ht(r,"rgba(0, 0, 0, .85)"),textColor:r})},JX={name:"Tooltip",common:et,peers:{Popover:Ua},self:QX},vh=JX,eG={name:"Ellipsis",common:et,peers:{Tooltip:vh}},WP=eG,tG={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},nG=e=>{const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,heightSmall:h,heightMedium:v,heightLarge:p,lineHeight:b}=e;return Object.assign(Object.assign({},tG),{labelLineHeight:b,buttonHeightSmall:h,buttonHeightMedium:v,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ft(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})},rG={name:"Radio",common:et,self:nG},d0=rG,oG={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},iG=e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,heightSmall:h,heightMedium:v,heightLarge:p,heightHuge:b,textColor3:m,opacityDisabled:g}=e;return Object.assign(Object.assign({},oG),{optionHeightSmall:h,optionHeightMedium:v,optionHeightLarge:p,optionHeightHuge:b,borderRadius:l,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:ft(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},aG={name:"Dropdown",common:et,peers:{Popover:Ua},self:iG},u0=aG,lG={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},sG=e=>{const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:f,lineHeight:h,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,dividerColor:m,heightSmall:g,opacityDisabled:y,tableColorStriped:C}=e;return Object.assign(Object.assign({},lG),{actionDividerColor:m,lineHeight:h,borderRadius:f,fontSizeSmall:v,fontSizeMedium:p,fontSizeLarge:b,borderColor:ht(t,m),tdColorHover:ht(t,l),tdColorStriped:ht(t,C),thColor:ht(t,a),thColorHover:ht(ht(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:d,thButtonColorHover:l,thIconColor:s,thIconColorActive:c,borderColorModal:ht(n,m),tdColorHoverModal:ht(n,l),tdColorStripedModal:ht(n,C),thColorModal:ht(n,a),thColorHoverModal:ht(ht(n,a),l),tdColorModal:n,borderColorPopover:ht(r,m),tdColorHoverPopover:ht(r,l),tdColorStripedPopover:ht(r,C),thColorPopover:ht(r,a),thColorHoverPopover:ht(ht(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:y})},cG={name:"DataTable",common:et,peers:{Button:vr,Checkbox:Il,Radio:d0,Pagination:jP,Scrollbar:hr,Empty:Bi,Popover:Ua,Ellipsis:WP,Dropdown:u0},self:sG},dG=cG,KP=Object.assign(Object.assign({},Ma),Se.props),ph=J({name:"Tooltip",props:KP,__popover__:!0,setup(e){const t=Se("Tooltip","-tooltip",void 0,vh,e),n=D(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(o){n.value.setShow(o)}}),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:P(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return u(Wa,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),uG=S("ellipsis",{overflow:"hidden"},[pt("line-clamp",` - white-space: nowrap; - display: inline-block; - vertical-align: bottom; - max-width: 100%; - `),F("line-clamp",` - display: -webkit-inline-box; - -webkit-box-orient: vertical; - `),F("cursor-pointer",` - cursor: pointer; - `)]);function OC(e){return`${e}-ellipsis--line-clamp`}function zC(e,t){return`${e}-ellipsis--cursor-${t}`}const qP=Object.assign(Object.assign({},Se.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),f0=J({name:"Ellipsis",inheritAttrs:!1,props:qP,setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:r}=He(e),o=Se("Ellipsis","-ellipsis",uG,WP,e,r),i=D(null),a=D(null),l=D(null),s=D(!1),c=P(()=>{const{lineClamp:m}=e,{value:g}=s;return m!==void 0?{textOverflow:"","-webkit-line-clamp":g?"":m}:{textOverflow:g?"":"ellipsis","-webkit-line-clamp":""}});function d(){let m=!1;const{value:g}=s;if(g)return!0;const{value:y}=i;if(y){const{lineClamp:C}=e;if(v(y),C!==void 0)m=y.scrollHeight<=y.offsetHeight;else{const{value:x}=a;x&&(m=x.getBoundingClientRect().width<=y.getBoundingClientRect().width)}p(y,m)}return m}const f=P(()=>e.expandTrigger==="click"?()=>{var m;const{value:g}=s;g&&((m=l.value)===null||m===void 0||m.setShow(!1)),s.value=!g}:void 0);Zs(()=>{var m;e.tooltip&&((m=l.value)===null||m===void 0||m.setShow(!1))});const h=()=>u("span",Object.assign({},Wn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?OC(r.value):void 0,e.expandTrigger==="click"?zC(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:u("span",{ref:"triggerInnerRef"},t));function v(m){if(!m)return;const g=c.value,y=OC(r.value);e.lineClamp!==void 0?b(m,y,"add"):b(m,y,"remove");for(const C in g)m.style[C]!==g[C]&&(m.style[C]=g[C])}function p(m,g){const y=zC(r.value,"pointer");e.expandTrigger==="click"&&!g?b(m,y,"add"):b(m,y,"remove")}function b(m,g,y){y==="add"?m.classList.contains(g)||m.classList.add(g):m.classList.contains(g)&&m.classList.remove(g)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:h,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return u(ph,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),fG=J({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),YP=Object.assign(Object.assign({},Se.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),no="n-data-table",hG=J({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Le(no),o=P(()=>n.value.find(s=>s.columnKey===e.column.key)),i=P(()=>o.value!==void 0),a=P(()=>{const{value:s}=o;return s&&i.value?s.order:!1}),l=P(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?u(fG,{render:e,order:t}):u("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):u(st,{clsPrefix:n},{default:()=>u(p2,null)}))}}),vG=J({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}}),gh={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},XP="n-radio-group";function GP(e){const t=xn(e,{mergedSize(y){const{size:C}=e;if(C!==void 0)return C;if(a){const{mergedSizeRef:{value:x}}=a;if(x!==void 0)return x}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||a!=null&&a.disabledRef.value||y!=null&&y.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=t,o=D(null),i=D(null),a=Le(XP,null),l=D(e.defaultChecked),s=xe(e,"checked"),c=wt(s,l),d=it(()=>a?a.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(a)return a.nameRef.value}),h=D(!1);function v(){if(a){const{doUpdateValue:y}=a,{value:C}=e;he(y,C)}else{const{onUpdateChecked:y,"onUpdate:checked":C}=e,{nTriggerFormInput:x,nTriggerFormChange:w}=t;y&&he(y,!0),C&&he(C,!0),x(),w(),l.value=!0}}function p(){r.value||d.value||v()}function b(){p()}function m(){h.value=!1}function g(){h.value=!0}return{mergedClsPrefix:a?a.mergedClsPrefixRef:He(e).mergedClsPrefixRef,inputRef:o,labelRef:i,mergedName:f,mergedDisabled:r,uncontrolledChecked:l,renderSafeChecked:d,focus:h,mergedSize:n,handleRadioInputChange:b,handleRadioInputBlur:m,handleRadioInputFocus:g}}const pG=S("radio",` - line-height: var(--n-label-line-height); - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - align-items: flex-start; - flex-wrap: nowrap; - font-size: var(--n-font-size); - word-break: break-word; -`,[F("checked",[M("dot",` - background-color: var(--n-color-active); - `)]),M("dot-wrapper",` - position: relative; - flex-shrink: 0; - flex-grow: 0; - width: var(--n-radio-size); - `),S("radio-input",` - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - cursor: pointer; - `),M("dot",` - position: absolute; - top: 50%; - left: 0; - transform: translateY(-50%); - height: var(--n-radio-size); - width: var(--n-radio-size); - background: var(--n-color); - box-shadow: var(--n-box-shadow); - border-radius: 50%; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - opacity: 0; - position: absolute; - left: 4px; - top: 4px; - height: calc(100% - 8px); - width: calc(100% - 8px); - border-radius: 50%; - transform: scale(.8); - background: var(--n-dot-color-active); - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),F("checked",{boxShadow:"var(--n-box-shadow-active)"},[O("&::before",` - opacity: 1; - transform: scale(1); - `)])]),M("label",` - color: var(--n-text-color); - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - display: inline-block; - transition: color .3s var(--n-bezier); - `),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),F("focus",[O("&:not(:active)",[M("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),F("disabled",` - cursor: not-allowed; - `,[M("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[O("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),F("checked",` - opacity: 1; - `)]),M("label",{color:"var(--n-text-color-disabled)"}),S("radio-input",` - cursor: not-allowed; - `)])]),h0=J({name:"Radio",props:Object.assign(Object.assign({},Se.props),gh),setup(e){const t=GP(e),n=Se("Radio","-radio",pG,d0,e,t.mergedClsPrefix),r=P(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:f,boxShadowActive:h,boxShadowDisabled:v,boxShadowFocus:p,boxShadowHover:b,color:m,colorDisabled:g,colorActive:y,textColor:C,textColorDisabled:x,dotColorActive:w,dotColorDisabled:k,labelPadding:_,labelLineHeight:T,labelFontWeight:$,[ye("fontSize",c)]:R,[ye("radioSize",c)]:I}}=n.value;return{"--n-bezier":d,"--n-label-line-height":T,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":h,"--n-box-shadow-disabled":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":b,"--n-color":m,"--n-color-active":y,"--n-color-disabled":g,"--n-dot-color-active":w,"--n-dot-color-disabled":k,"--n-font-size":R,"--n-radio-size":I,"--n-text-color":C,"--n-text-color-disabled":x,"--n-label-padding":_}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=He(e),l=Zt("Radio",a,i),s=o?Je("radio",P(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n==null||n(),u("label",{class:[`${t}-radio`,this.themeClass,{[`${t}-radio--rtl`]:this.rtlEnabled,[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars},u("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${t}-radio__dot-wrapper`},"\xA0",u("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]})),Ct(e.default,o=>!o&&!r?null:u("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),gG=S("radio-group",` - display: inline-block; - font-size: var(--n-font-size); -`,[M("splitor",` - display: inline-block; - vertical-align: bottom; - width: 1px; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - background: var(--n-button-border-color); - `,[F("checked",{backgroundColor:"var(--n-button-border-color-active)"}),F("disabled",{opacity:"var(--n-opacity-disabled)"})]),F("button-group",` - white-space: nowrap; - height: var(--n-height); - line-height: var(--n-height); - `,[S("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),M("splitor",{height:"var(--n-height)"})]),S("radio-button",` - vertical-align: bottom; - outline: none; - position: relative; - user-select: none; - -webkit-user-select: none; - display: inline-block; - box-sizing: border-box; - padding-left: 14px; - padding-right: 14px; - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - color: var(--n-button-text-color); - border-top: 1px solid var(--n-button-border-color); - border-bottom: 1px solid var(--n-button-border-color); - `,[S("radio-input",` - pointer-events: none; - position: absolute; - border: 0; - border-radius: inherit; - left: 0; - right: 0; - top: 0; - bottom: 0; - opacity: 0; - z-index: 1; - `),M("state-border",` - z-index: 1; - pointer-events: none; - position: absolute; - box-shadow: var(--n-button-box-shadow); - transition: box-shadow .3s var(--n-bezier); - left: -1px; - bottom: -1px; - right: -1px; - top: -1px; - `),O("&:first-child",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - border-left: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-left-radius: var(--n-button-border-radius); - border-bottom-left-radius: var(--n-button-border-radius); - `)]),O("&:last-child",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - border-right: 1px solid var(--n-button-border-color); - `,[M("state-border",` - border-top-right-radius: var(--n-button-border-radius); - border-bottom-right-radius: var(--n-button-border-radius); - `)]),pt("disabled",` - cursor: pointer; - `,[O("&:hover",[M("state-border",` - transition: box-shadow .3s var(--n-bezier); - box-shadow: var(--n-button-box-shadow-hover); - `),pt("checked",{color:"var(--n-button-text-color-hover)"})]),F("focus",[O("&:not(:active)",[M("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),F("checked",` - background: var(--n-button-color-active); - color: var(--n-button-text-color-active); - border-color: var(--n-button-border-color-active); - `),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `)])]);function mG(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:w}=n,{common:{cubicBezierEaseInOut:k},self:{buttonBorderColor:_,buttonBorderColorActive:T,buttonBorderRadius:$,buttonBoxShadow:R,buttonBoxShadowFocus:I,buttonBoxShadowHover:z,buttonColorActive:A,buttonTextColor:L,buttonTextColorActive:j,buttonTextColorHover:E,opacityDisabled:U,[ye("buttonHeight",w)]:K,[ye("fontSize",w)]:Q}}=f.value;return{"--n-font-size":Q,"--n-bezier":k,"--n-button-border-color":_,"--n-button-border-color-active":T,"--n-button-border-radius":$,"--n-button-box-shadow":R,"--n-button-box-shadow-focus":I,"--n-button-box-shadow-hover":z,"--n-button-color-active":A,"--n-button-text-color":L,"--n-button-text-color-hover":E,"--n-button-text-color-active":j,"--n-height":K,"--n-opacity-disabled":U}}),x=c?Je("radio-group",P(()=>n.value[0]),C,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:s,mergedValue:p,handleFocusout:g,handleFocusin:m,cssVars:c?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=mG(Ir(nc(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),bG=gh,yG=J({name:"RadioButton",props:gh,setup:GP,render(){const{mergedClsPrefix:e}=this;return u("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},u("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),u("div",{class:`${e}-radio-button__state-border`}),Ct(this.$slots.default,t=>!t&&!this.label?null:u("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),JP=40,e$=40;function MC(e){if(e.type==="selection")return e.width===void 0?JP:dn(e.width);if(e.type==="expand")return e.width===void 0?e$:dn(e.width);if(!("children"in e))return typeof e.width=="string"?dn(e.width):e.width}function xG(e){var t,n;if(e.type==="selection")return Ot((t=e.width)!==null&&t!==void 0?t:JP);if(e.type==="expand")return Ot((n=e.width)!==null&&n!==void 0?n:e$);if(!("children"in e))return Ot(e.width)}function qr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function IC(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function wG(e){return e==="ascend"?1:e==="descend"?-1:0}function CG(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:parseFloat(t))),e}function SG(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=xG(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Ot(r)||n,maxWidth:Ot(o)}}function _G(e,t,n){return typeof n=="function"?n(e,t):n||""}function Pv(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function $v(e){return"children"in e?!1:!!e.sorter}function t$(e){return"children"in e&&!!e.children.length?!1:!!e.resizable}function FC(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function DC(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function kG(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:DC(!1)}:Object.assign(Object.assign({},t),{order:DC(t.order)})}function n$(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}const RG=J({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:r}=Le(no),o=D(e.value),i=P(()=>{const{value:f}=o;return Array.isArray(f)?f:null}),a=P(()=>{const{value:f}=o;return Pv(e.column)?Array.isArray(f)&&f.length&&f[0]||null:Array.isArray(f)?null:f});function l(f){e.onChange(f)}function s(f){e.multiple&&Array.isArray(f)?o.value=f:Pv(e.column)&&!Array.isArray(f)?o.value=[f]:o.value=f}function c(){l(o.value),e.onConfirm()}function d(){e.multiple||Pv(e.column)?l([]):l(null),e.onClear()}return{mergedClsPrefix:t,mergedTheme:n,locale:r,checkboxGroupValue:i,radioGroupValue:a,handleChange:s,handleConfirmClick:c,handleClearClick:d}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return u("div",{class:`${n}-data-table-filter-menu`},u(rn,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?u(CP,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>u(Zo,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):u(QP,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>u(h0,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),u("div",{class:`${n}-data-table-filter-menu__action`},u(Pt,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),u(Pt,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});function PG(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const $G=J({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=He(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:s}=Le(no),c=D(!1),d=o,f=P(()=>e.column.filterMultiple!==!1),h=P(()=>{const y=d.value[e.column.key];if(y===void 0){const{value:C}=f;return C?[]:null}return y}),v=P(()=>{const{value:y}=h;return Array.isArray(y)?y.length>0:y!==null}),p=P(()=>{var y,C;return((C=(y=t==null?void 0:t.value)===null||y===void 0?void 0:y.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(y){const C=PG(d.value,e.column.key,y);s(C,e.column),a.value==="first"&&l(1)}function m(){c.value=!1}function g(){c.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:v,showPopover:c,mergedRenderFilter:p,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:g,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return u(Wa,{show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return u(vG,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:o}=this.column;return u("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},o?o({active:this.active,show:this.showPopover}):u(st,{clsPrefix:t},{default:()=>u(lW,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:n}):u(RG,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),TG=J({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Le(no),n=D(!1);let r=0;function o(s){return s.clientX}function i(s){var c;const d=n.value;r=o(s),n.value=!0,d||(St("mousemove",window,a),St("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(s)-r)}function l(){var s;n.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),xt("mousemove",window,a),xt("mouseup",window,l)}return Dt(()=>{xt("mousemove",window,a),xt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return u("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),r$=J({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return u("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),OG=e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}},zG={name:"Icon",common:et,self:OG},MG=zG,IG=S("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[F("color-transition",{transition:"color .3s var(--n-bezier)"}),F("depth",{color:"var(--n-color)"},[O("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),O("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},Se.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),i$=J({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Icon","-icon",IG,MG,e,t),o=P(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=s;return{"--n-bezier":l,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Je("icon",P(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:P(()=>{const{size:a,color:l}=e;return{fontSize:Ot(a),color:l}}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Yn("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),u("i",Wn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?u(o):this.$slots)}}),v0="n-dropdown-menu",mh="n-dropdown",AC="n-dropdown-option";function Zg(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function FG(e){return e.type==="group"}function a$(e){return e.type==="divider"}function DG(e){return e.type==="render"}const l$=J({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Le(mh),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:f,childrenFieldRef:h,renderOptionRef:v,nodePropsRef:p,menuPropsRef:b}=t,m=Le(AC,null),g=Le(v0),y=Le(Ol),C=P(()=>e.tmNode.rawNode),x=P(()=>{const{value:U}=h;return Zg(e.tmNode.rawNode,U)}),w=P(()=>{const{disabled:U}=e.tmNode;return U}),k=P(()=>{if(!x.value)return!1;const{key:U,disabled:K}=e.tmNode;if(K)return!1;const{value:Q}=n,{value:V}=r,{value:re}=o,{value:ee}=i;return Q!==null?ee.includes(U):V!==null?ee.includes(U)&&ee[ee.length-1]!==U:re!==null?ee.includes(U):!1}),_=P(()=>r.value===null&&!l.value),T=ND(k,300,_),$=P(()=>!!(m!=null&&m.enteringSubmenuRef.value)),R=D(!1);nt(AC,{enteringSubmenuRef:R});function I(){R.value=!0}function z(){R.value=!1}function A(){const{parentKey:U,tmNode:K}=e;K.disabled||!s.value||(o.value=U,r.value=null,n.value=K.key)}function L(){const{tmNode:U}=e;U.disabled||!s.value||n.value!==U.key&&A()}function j(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:K}=U;K&&!qn({target:K},"dropdownOption")&&!qn({target:K},"scrollbarRail")&&(n.value=null)}function E(){const{value:U}=x,{tmNode:K}=e;!s.value||!U&&!K.disabled&&(t.doSelect(K.key,K.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:b,popoverBody:y,animated:l,mergedShowSubmenu:P(()=>T.value&&!$.value),rawNode:C,hasSubmenu:x,pending:it(()=>{const{value:U}=i,{key:K}=e.tmNode;return U.includes(K)}),childActive:it(()=>{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q{const{value:U}=a,{key:K}=e.tmNode,Q=U.findIndex(V=>K===V);return Q===-1?!1:Q===U.length-1}),mergedDisabled:w,renderOption:v,nodeProps:p,handleClick:E,handleMouseMove:L,handleMouseEnter:A,handleMouseLeave:j,handleSubmenuBeforeEnter:I,handleSubmenuAfterEnter:z}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:f,props:h,scrollable:v}=this;let p=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);p=u(s$,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const b={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=f==null?void 0:f(r),g=u("div",Object.assign({class:[`${i}-dropdown-option`,m==null?void 0:m.class],"data-dropdown-option":!0},m),u("div",Wn(b,h),[u("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):jt(r.icon)]),u("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(r):jt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),u("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?u(i$,null,{default:()=>u(Ha,null)}):null)]),this.hasSubmenu?u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:`${i}-dropdown-offset-container`},u(Sr,{show:this.mergedShowSubmenu,placement:this.placement,to:v&&this.popoverBody||void 0,teleportDisabled:!v},{default:()=>u("div",{class:`${i}-dropdown-menu-wrapper`},n?u(It,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:g,option:r}):g}}),AG=J({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Le(v0),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Le(mh);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,s=u("div",Object.assign({class:`${t}-dropdown-option`},o==null?void 0:o(l)),u("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},u("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},jt(l.icon)),u("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):jt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),u("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:s,option:l}):s}}),BG=J({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return u($t,null,u(AG,{clsPrefix:n,tmNode:e,key:e.key}),r==null?void 0:r.map(o=>{const{rawNode:i}=o;return i.show===!1?null:a$(i)?u(r$,{clsPrefix:n,key:o.key}):o.isGroup?(Yn("dropdown","`group` node is not allowed to be put in `group` node."),null):u(l$,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),EG=J({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return u("div",t,[e==null?void 0:e()])}}),s$=J({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Le(mh);nt(v0,{showIconRef:P(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>o?o(s):s.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:P(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:s})=>Zg(s,o));const{rawNode:l}=i;return Zg(l,o)})})});const r=D(null);return nt(oc,null),nt(ic,null),nt(Ol,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:DG(i)?u(EG,{tmNode:o,key:o.key}):a$(i)?u(r$,{clsPrefix:t,key:o.key}):FG(i)?u(BG,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):u(l$,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return u("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?u(Pf,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?O2({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),LG=S("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[$n(),S("dropdown-option",` - position: relative; - `,[O("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),S("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[O("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),pt("disabled",[F("pending",` - color: var(--n-option-text-color-hover); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),O("&::before","background-color: var(--n-option-color-hover);")]),F("active",` - color: var(--n-option-text-color-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-active); - `),O("&::before","background-color: var(--n-option-color-active);")]),F("child-active",` - color: var(--n-option-text-color-child-active); - `,[M("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),F("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[M("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[F("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),M("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[F("show-icon",` - width: var(--n-option-icon-prefix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),M("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),M("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[F("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),S("icon",` - font-size: var(--n-option-icon-size); - `)]),S("dropdown-menu","pointer-events: all;")]),S("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),S("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),S("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),O(">",[S("scrollbar",` - height: inherit; - max-height: inherit; - `)]),pt("scrollable",` - padding: var(--n-padding); - `),F("scrollable",[M("content",` - padding: var(--n-padding); - `)])]),NG={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},HG=Object.keys(Ma),c$=Object.assign(Object.assign(Object.assign({},Ma),NG),Se.props),p0=J({name:"Dropdown",inheritAttrs:!1,props:c$,setup(e){const t=D(!1),n=wt(xe(e,"show"),t),r=P(()=>{const{keyField:z,childrenField:A}=e;return to(e.options,{getKey(L){return L[z]},getDisabled(L){return L.disabled===!0},getIgnored(L){return L.type==="divider"||L.type==="render"},getChildren(L){return L[A]}})}),o=P(()=>r.value.treeNodes),i=D(null),a=D(null),l=D(null),s=P(()=>{var z,A,L;return(L=(A=(z=i.value)!==null&&z!==void 0?z:a.value)!==null&&A!==void 0?A:l.value)!==null&&L!==void 0?L:null}),c=P(()=>r.value.getPath(s.value).keyPath),d=P(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);kb({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:x},ArrowDown:{prevent:!0,handler:k},ArrowLeft:{prevent:!0,handler:C},Enter:{prevent:!0,handler:_},Escape:y}},f);const{mergedClsPrefixRef:h,inlineThemeDisabled:v}=He(e),p=Se("Dropdown","-dropdown",LG,u0,e,h);nt(mh,{labelFieldRef:xe(e,"labelField"),childrenFieldRef:xe(e,"childrenField"),renderLabelRef:xe(e,"renderLabel"),renderIconRef:xe(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:xe(e,"animated"),mergedShowRef:n,nodePropsRef:xe(e,"nodeProps"),renderOptionRef:xe(e,"renderOption"),menuPropsRef:xe(e,"menuProps"),doSelect:b,doUpdateShow:m}),rt(n,z=>{!e.animated&&!z&&g()});function b(z,A){const{onSelect:L}=e;L&&he(L,z,A)}function m(z){const{"onUpdate:show":A,onUpdateShow:L}=e;A&&he(A,z),L&&he(L,z),t.value=z}function g(){i.value=null,a.value=null,l.value=null}function y(){m(!1)}function C(){$("left")}function x(){$("right")}function w(){$("up")}function k(){$("down")}function _(){const z=T();(z==null?void 0:z.isLeaf)&&n.value&&(b(z.key,z.rawNode),m(!1))}function T(){var z;const{value:A}=r,{value:L}=s;return!A||L===null?null:(z=A.getNode(L))!==null&&z!==void 0?z:null}function $(z){const{value:A}=s,{value:{getFirstAvailableNode:L}}=r;let j=null;if(A===null){const E=L();E!==null&&(j=E.key)}else{const E=T();if(E){let U;switch(z){case"down":U=E.getNext();break;case"up":U=E.getPrev();break;case"right":U=E.getChild();break;case"left":U=E.getParent();break}U&&(j=U.key)}}j!==null&&(i.value=null,a.value=j)}const R=P(()=>{const{size:z,inverted:A}=e,{common:{cubicBezierEaseInOut:L},self:j}=p.value,{padding:E,dividerColor:U,borderRadius:K,optionOpacityDisabled:Q,[ye("optionIconSuffixWidth",z)]:V,[ye("optionSuffixWidth",z)]:re,[ye("optionIconPrefixWidth",z)]:ee,[ye("optionPrefixWidth",z)]:ue,[ye("fontSize",z)]:de,[ye("optionHeight",z)]:Ce,[ye("optionIconSize",z)]:we}=j,me={"--n-bezier":L,"--n-font-size":de,"--n-padding":E,"--n-border-radius":K,"--n-option-height":Ce,"--n-option-prefix-width":ue,"--n-option-icon-prefix-width":ee,"--n-option-suffix-width":re,"--n-option-icon-suffix-width":V,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":Q};return A?(me["--n-color"]=j.colorInverted,me["--n-option-color-hover"]=j.optionColorHoverInverted,me["--n-option-color-active"]=j.optionColorActiveInverted,me["--n-option-text-color"]=j.optionTextColorInverted,me["--n-option-text-color-hover"]=j.optionTextColorHoverInverted,me["--n-option-text-color-active"]=j.optionTextColorActiveInverted,me["--n-option-text-color-child-active"]=j.optionTextColorChildActiveInverted,me["--n-prefix-color"]=j.prefixColorInverted,me["--n-suffix-color"]=j.suffixColorInverted,me["--n-group-header-text-color"]=j.groupHeaderTextColorInverted):(me["--n-color"]=j.color,me["--n-option-color-hover"]=j.optionColorHover,me["--n-option-color-active"]=j.optionColorActive,me["--n-option-text-color"]=j.optionTextColor,me["--n-option-text-color-hover"]=j.optionTextColorHover,me["--n-option-text-color-active"]=j.optionTextColorActive,me["--n-option-text-color-child-active"]=j.optionTextColorChildActive,me["--n-prefix-color"]=j.prefixColor,me["--n-suffix-color"]=j.suffixColor,me["--n-group-header-text-color"]=j.groupHeaderTextColor),me}),I=v?Je("dropdown",P(()=>`${e.size[0]}${e.inverted?"i":""}`),R,e):void 0;return{mergedClsPrefix:h,mergedTheme:p,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{!e.animated||g()},doUpdateShow:m,cssVars:v?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const e=(r,o,i,a,l)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const f=(d==null?void 0:d(void 0,this.tmNodes.map(v=>v.rawNode)))||{},h={ref:$k(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return u(s$,Wn(this.$attrs,h,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return u(Wa,Object.assign({},mn(this.$props,HG),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),d$="_n_all__",u$="_n_none__";function jG(e,t,n,r){return e?o=>{for(const i of e)switch(o){case d$:n(!0);return;case u$:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function VG(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:d$};case"none":return{label:t.uncheckTableAll,key:u$};default:return n}}):[]}const UG=J({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Le(no),l=P(()=>jG(r.value,o,i,a)),s=P(()=>VG(r.value,n.value));return()=>{var c,d,f,h;const{clsPrefix:v}=e;return u(p0,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(h=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||h===void 0?void 0:h.Dropdown,options:s.value,onSelect:l.value},{default:()=>u(st,{clsPrefix:v,class:`${v}-data-table-check-extra`},{default:()=>u(x2,null)})})}}});function Tv(e){return typeof e.title=="function"?e.title(e):e.title}const f$=J({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:f,componentId:h,scrollPartRef:v,mergedTableLayoutRef:p,headerCheckboxDisabledRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:g,handleTableHeaderScroll:y,deriveNextSorter:C,doUncheckAll:x,doCheckAll:w}=Le(no),k=D({});function _(j){const E=k.value[j];return E==null?void 0:E.getBoundingClientRect().width}function T(){i.value?x():w()}function $(j,E){if(qn(j,"dataTableFilter")||qn(j,"dataTableResizable")||!$v(E))return;const U=f.value.find(Q=>Q.columnKey===E.key)||null,K=kG(E,U);C(K)}function R(){v.value="head"}function I(){v.value="body"}const z=new Map;function A(j){z.set(j.key,_(j.key))}function L(j,E){const U=z.get(j.key);if(U===void 0)return;const K=U+E,Q=CG(K,j.minWidth,j.maxWidth);m(K,Q,j,_),g(j,Q)}return{cellElsRef:k,componentId:h,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:p,headerCheckboxDisabled:b,handleMouseenter:R,handleMouseleave:I,handleCheckboxUpdateChecked:T,handleColHeaderClick:$,handleTableHeaderScroll:y,handleColumnResizeStart:A,handleColumnResize:L}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:s,mergedTheme:c,checkOptions:d,componentId:f,discrete:h,mergedTableLayout:v,headerCheckboxDisabled:p,mergedSortState:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:g,handleColumnResizeStart:y,handleColumnResize:C}=this,x=u("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>u("tr",{class:`${t}-data-table-tr`},$.map(({column:R,colSpan:I,rowSpan:z,isLast:A})=>{var L,j;const E=qr(R),{ellipsis:U}=R,K=()=>R.type==="selection"?R.multiple!==!1?u($t,null,u(Zo,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:p,onUpdateChecked:g}),d?u(UG,{clsPrefix:t}):null):null:u($t,null,u("div",{class:`${t}-data-table-th__title-wrapper`},u("div",{class:`${t}-data-table-th__title`},U===!0||U&&!U.tooltip?u("div",{class:`${t}-data-table-th__ellipsis`},Tv(R)):U&&typeof U=="object"?u(f0,Object.assign({},U,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Tv(R)}):Tv(R)),$v(R)?u(hG,{column:R}):null),FC(R)?u($G,{column:R,options:R.filterOptions}):null,t$(R)?u(TG,{onResizeStart:()=>y(R),onResize:re=>C(R,re)}):null),Q=E in n,V=E in r;return u("th",{ref:re=>e[E]=re,key:E,style:{textAlign:R.align,left:gn((L=n[E])===null||L===void 0?void 0:L.start),right:gn((j=r[E])===null||j===void 0?void 0:j.start)},colspan:I,rowspan:z,"data-col-key":E,class:[`${t}-data-table-th`,(Q||V)&&`${t}-data-table-th--fixed-${Q?"left":"right"}`,{[`${t}-data-table-th--hover`]:n$(R,b),[`${t}-data-table-th--filterable`]:FC(R),[`${t}-data-table-th--sortable`]:$v(R),[`${t}-data-table-th--selection`]:R.type==="selection",[`${t}-data-table-th--last`]:A},R.className],onClick:R.type!=="selection"&&R.type!=="expand"&&!("children"in R)?re=>{m(re,R)}:void 0},K())}))));if(!h)return x;const{handleTableHeaderScroll:w,handleMouseenter:k,handleMouseleave:_,scrollX:T}=this;return u("div",{class:`${t}-data-table-base-table-header`,onScroll:w,onMouseenter:k,onMouseleave:_},u("table",{ref:"body",class:`${t}-data-table-table`,style:{minWidth:Ot(T),tableLayout:v}},u("colgroup",null,s.map($=>u("col",{key:$.key,style:$.style}))),x))}}),WG=J({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){const{isSummary:e,column:t,row:n,renderCell:r}=this;let o;const{render:i,key:a,ellipsis:l}=t;if(i&&!e?o=i(n,this.index):e?o=n[a].value:o=r?r(js(n,a),n,t):js(n,a),l)if(typeof l=="object"){const{mergedTheme:s}=this;return u(f0,Object.assign({},l,{theme:s.peers.Ellipsis,themeOverrides:s.peerOverrides.Ellipsis}),{default:()=>o})}else return u("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},o);return o}}),BC=J({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:e}=this;return u("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick},u(ko,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():u(st,{clsPrefix:e,key:"base-icon"},{default:()=>u(Ha,null)})}))}}),KG=J({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Le(no);return()=>{const{rowKey:r}=e;return u(Zo,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),qG=J({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Le(no);return()=>{const{rowKey:r}=e;return u(h0,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}});function YG(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const XG=J({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return u("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},u("colgroup",null,n.map(i=>u("col",{key:i.key,style:i.style}))),u("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),GG=J({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:f,mergedCurrentPageRef:h,rowClassNameRef:v,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:b,rightActiveFixedColKeyRef:m,rightActiveFixedChildrenColKeysRef:g,renderExpandRef:y,hoverKeyRef:C,summaryRef:x,mergedSortStateRef:w,virtualScrollRef:k,componentId:_,scrollPartRef:T,mergedTableLayoutRef:$,childTriggerColIndexRef:R,indentRef:I,rowPropsRef:z,maxHeightRef:A,stripedRef:L,loadingRef:j,onLoadRef:E,loadingKeySetRef:U,expandableRef:K,stickyExpandedRowsRef:Q,renderExpandIconRef:V,summaryPlacementRef:re,treeMateRef:ee,scrollbarPropsRef:ue,setHeaderScrollLeft:de,doUpdateExpandedRowKeys:Ce,handleTableBodyScroll:we,doCheck:me,doUncheck:Oe,renderCell:ke}=Le(no),pe=D(null),Me=D(null),H=D(null),W=it(()=>s.value.length===0),Y=it(()=>e.showHeader||!W.value),ce=it(()=>e.showHeader||W.value);let X="";const B=P(()=>new Set(r.value));function N(je){var Xe;return(Xe=ee.value.getNode(je))===null||Xe===void 0?void 0:Xe.rawNode}function te(je,Xe,Ve){const We=N(je.key);if(!We){Yn("data-table",`fail to get row data with key ${je.key}`);return}if(Ve){const G=s.value.findIndex(q=>q.key===X);if(G!==-1){const q=s.value.findIndex(ae=>ae.key===je.key),_e=Math.min(G,q),Be=Math.max(G,q),Ee=[];s.value.slice(_e,Be+1).forEach(ae=>{ae.disabled||Ee.push(ae.key)}),Xe?me(Ee,!1,We):Oe(Ee,We),X=je.key;return}}Xe?me(je.key,!1,We):Oe(je.key,We),X=je.key}function ve(je){const Xe=N(je.key);if(!Xe){Yn("data-table",`fail to get row data with key ${je.key}`);return}me(je.key,!0,Xe)}function Z(){if(!Y.value){const{value:Xe}=H;return Xe||null}if(k.value)return Pe();const{value:je}=pe;return je?je.containerRef:null}function fe(je,Xe){var Ve;if(U.value.has(je))return;const{value:We}=r,G=We.indexOf(je),q=Array.from(We);~G?(q.splice(G,1),Ce(q)):Xe&&!Xe.isLeaf&&!Xe.shallowLoaded?(U.value.add(je),(Ve=E.value)===null||Ve===void 0||Ve.call(E,Xe.rawNode).then(()=>{const{value:_e}=r,Be=Array.from(_e);~Be.indexOf(je)||Be.push(je),Ce(Be)}).finally(()=>{U.value.delete(je)})):(q.push(je),Ce(q))}function ne(){C.value=null}function ge(){T.value="body"}function Pe(){const{value:je}=Me;return je==null?void 0:je.listElRef}function Ae(){const{value:je}=Me;return je==null?void 0:je.itemsElRef}function Ke(je){var Xe;we(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}function qe(je){var Xe;const{onResize:Ve}=e;Ve&&Ve(je),(Xe=pe.value)===null||Xe===void 0||Xe.sync()}const ct={getScrollContainer:Z,scrollTo(je,Xe){var Ve,We;k.value?(Ve=Me.value)===null||Ve===void 0||Ve.scrollTo(je,Xe):(We=pe.value)===null||We===void 0||We.scrollTo(je,Xe)}},dt=O([({props:je})=>{const Xe=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ve=We=>We===null?null:O(`[data-n-id="${je.componentId}"] [data-col-key="${We}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return O([Xe(je.leftActiveFixedColKey),Ve(je.rightActiveFixedColKey),je.leftActiveFixedChildrenColKeys.map(We=>Xe(We)),je.rightActiveFixedChildrenColKeys.map(We=>Ve(We))])}]);let ut=!1;return Ft(()=>{const{value:je}=p,{value:Xe}=b,{value:Ve}=m,{value:We}=g;if(!ut&&je===null&&Ve===null)return;const G={leftActiveFixedColKey:je,leftActiveFixedChildrenColKeys:Xe,rightActiveFixedColKey:Ve,rightActiveFixedChildrenColKeys:We,componentId:_};dt.mount({id:`n-${_}`,force:!0,props:G,anchorMetaName:wl}),ut=!0}),Qs(()=>{dt.unmount({id:`n-${_}`})}),Object.assign({bodyWidth:n,summaryPlacement:re,dataTableSlots:t,componentId:_,scrollbarInstRef:pe,virtualListRef:Me,emptyElRef:H,summary:x,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:j,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:Y,empty:W,paginatedDataAndInfo:P(()=>{const{value:je}=L;let Xe=!1;return{data:s.value.map(je?(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:G%2===1,index:G}):(We,G)=>(We.isLeaf||(Xe=!0),{tmNode:We,key:We.key,striped:!1,index:G})),hasChildren:Xe}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:f,currentPage:h,rowClassName:v,renderExpand:y,mergedExpandedRowKeySet:B,hoverKey:C,mergedSortState:w,virtualScroll:k,mergedTableLayout:$,childTriggerColIndex:R,indent:I,rowProps:z,maxHeight:A,loadingKeySet:U,expandable:K,stickyExpandedRows:Q,renderExpandIcon:V,scrollbarProps:ue,setHeaderScrollLeft:de,handleMouseenterTable:ge,handleVirtualListScroll:Ke,handleVirtualListResize:qe,handleMouseleaveTable:ne,virtualListContainer:Pe,virtualListContent:Ae,handleTableBodyScroll:we,handleCheckboxUpdateChecked:te,handleRadioUpdateChecked:ve,handleUpdateExpanded:fe,renderCell:ke},ct)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||o!==void 0||a,f=!d&&i==="auto",h=t!==void 0||f,v={minWidth:Ot(t)||"100%"};t&&(v.width="100%");const p=u(rn,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||f,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:v,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:h,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const b={},m={},{cols:g,paginatedDataAndInfo:y,mergedTheme:C,fixedColumnLeftMap:x,fixedColumnRightMap:w,currentPage:k,rowClassName:_,mergedSortState:T,mergedExpandedRowKeySet:$,stickyExpandedRows:R,componentId:I,childTriggerColIndex:z,expandable:A,rowProps:L,handleMouseenterTable:j,handleMouseleaveTable:E,renderExpand:U,summary:K,handleCheckboxUpdateChecked:Q,handleRadioUpdateChecked:V,handleUpdateExpanded:re}=this,{length:ee}=g;let ue;const{data:de,hasChildren:Ce}=y,we=Ce?YG(de,$):de;if(K){const Y=K(this.rawPaginatedData);if(Array.isArray(Y)){const ce=Y.map((X,B)=>({isSummaryRow:!0,key:`__n_summary__${B}`,tmNode:{rawNode:X,disabled:!0},index:-1}));ue=this.summaryPlacement==="top"?[...ce,...we]:[...we,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:Y,disabled:!0},index:-1};ue=this.summaryPlacement==="top"?[ce,...we]:[...we,ce]}}else ue=we;const me=Ce?{width:gn(this.indent)}:void 0,Oe=[];ue.forEach(Y=>{U&&$.has(Y.key)&&(!A||A(Y.tmNode.rawNode))?Oe.push(Y,{isExpandedRow:!0,key:`${Y.key}-expand`,tmNode:Y.tmNode,index:Y.index}):Oe.push(Y)});const{length:ke}=Oe,pe={};de.forEach(({tmNode:Y},ce)=>{pe[ce]=Y.key});const Me=R?this.bodyWidth:null,H=Me===null?void 0:`${Me}px`,W=(Y,ce,X)=>{const{index:B}=Y;if("isExpandedRow"in Y){const{tmNode:{key:Ke,rawNode:qe}}=Y;return u("tr",{class:`${n}-data-table-tr`,key:`${Ke}__expand`},u("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===ke&&`${n}-data-table-td--last-row`],colspan:ee},R?u("div",{class:`${n}-data-table-expand`,style:{width:H}},U(qe,B)):U(qe,B)))}const N="isSummaryRow"in Y,te=!N&&Y.striped,{tmNode:ve,key:Z}=Y,{rawNode:fe}=ve,ne=$.has(Z),ge=L?L(fe,B):void 0,Pe=typeof _=="string"?_:_G(fe,B,_);return u("tr",Object.assign({onMouseenter:()=>{this.hoverKey=Z},key:Z,class:[`${n}-data-table-tr`,N&&`${n}-data-table-tr--summary`,te&&`${n}-data-table-tr--striped`,Pe]},ge),g.map((Ke,qe)=>{var ct,dt,ut,je,Xe;if(ce in b){const $e=b[ce],oe=$e.indexOf(qe);if(~oe)return $e.splice(oe,1),null}const{column:Ve}=Ke,We=qr(Ke),{rowSpan:G,colSpan:q}=Ve,_e=N?((ct=Y.tmNode.rawNode[We])===null||ct===void 0?void 0:ct.colSpan)||1:q?q(fe,B):1,Be=N?((dt=Y.tmNode.rawNode[We])===null||dt===void 0?void 0:dt.rowSpan)||1:G?G(fe,B):1,Ee=qe+_e===ee,ae=ce+Be===ke,ze=Be>1;if(ze&&(m[ce]={[qe]:[]}),_e>1||ze)for(let $e=ce;$e{re(Z,Y.tmNode)}})]:null,Ve.type==="selection"?N?null:Ve.multiple===!1?u(qG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:()=>V(Y.tmNode)}):u(KG,{key:k,rowKey:Z,disabled:Y.tmNode.disabled,onUpdateChecked:($e,oe)=>Q(Y.tmNode,$e,oe.shiftKey)}):Ve.type==="expand"?N?null:!Ve.expandable||((Xe=Ve.expandable)===null||Xe===void 0?void 0:Xe.call(Ve,fe))?u(BC,{clsPrefix:n,expanded:ne,renderExpandIcon:this.renderExpandIcon,onClick:()=>re(Z,null)}):null:u(WG,{clsPrefix:n,index:B,row:fe,column:Ve,isSummary:N,mergedTheme:C,renderCell:this.renderCell}))}))};return r?u(No,{ref:"virtualListRef",items:Oe,itemSize:28,visibleItemsTag:XG,visibleItemsProps:{clsPrefix:n,id:I,cols:g,onMouseenter:j,onMouseleave:E},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:v,itemResizable:!0},{default:({item:Y,index:ce})=>W(Y,ce,!0)}):u("table",{class:`${n}-data-table-table`,onMouseleave:E,onMouseenter:j,style:{tableLayout:this.mergedTableLayout}},u("colgroup",null,g.map(Y=>u("col",{key:Y.key,style:Y.style}))),this.showHeader?u(f$,{discrete:!1}):null,this.empty?null:u("tbody",{"data-n-id":I,class:`${n}-data-table-tbody`},Oe.map((Y,ce)=>W(Y,ce,!1))))}});if(this.empty){const b=()=>u("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},vt(this.dataTableSlots.empty,()=>[u(Ei,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?u($t,null,p,b()):u(Dr,{onResize:this.onResize},{default:b})}return p}}),ZG=J({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,syncScrollState:l}=Le(no),s=D(null),c=D(null),d=D(null),f=D(!(n.value.length||t.value.length)),h=P(()=>({maxHeight:Ot(o.value),minHeight:Ot(i.value)}));function v(g){r.value=g.contentRect.width,l(),f.value||(f.value=!0)}function p(){const{value:g}=s;return g?g.$el:null}function b(){const{value:g}=c;return g?g.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:p,scrollTo(g,y){var C;(C=c.value)===null||C===void 0||C.scrollTo(g,y)}};return Ft(()=>{const{value:g}=d;if(!g)return;const y=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{g.classList.remove(y)},0):g.classList.add(y)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:d,headerInstRef:s,bodyInstRef:c,bodyStyle:h,flexHeight:a,handleBodyResize:v},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return u("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:u(f$,{ref:"headerInstRef"}),u(GG,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}});function QG(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=D(e.defaultCheckedRowKeys),a=P(()=>{var w;const{checkedRowKeys:k}=e,_=k===void 0?i.value:k;return((w=o.value)===null||w===void 0?void 0:w.multiple)===!1?{checkedKeys:_.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(_,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=P(()=>a.value.checkedKeys),s=P(()=>a.value.indeterminateKeys),c=P(()=>new Set(l.value)),d=P(()=>new Set(s.value)),f=P(()=>{const{value:w}=c;return n.value.reduce((k,_)=>{const{key:T,disabled:$}=_;return k+(!$&&w.has(T)?1:0)},0)}),h=P(()=>n.value.filter(w=>w.disabled).length),v=P(()=>{const{length:w}=n.value,{value:k}=d;return f.value>0&&f.valuek.has(_.key))}),p=P(()=>{const{length:w}=n.value;return f.value!==0&&f.value===w-h.value}),b=P(()=>n.value.length===0);function m(w,k,_){const{"onUpdate:checkedRowKeys":T,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:R}=e,I=[],{value:{getNode:z}}=r;w.forEach(A=>{var L;const j=(L=z(A))===null||L===void 0?void 0:L.rawNode;I.push(j)}),T&&he(T,w,I,{row:k,action:_}),$&&he($,w,I,{row:k,action:_}),R&&he(R,w,I,{row:k,action:_}),i.value=w}function g(w,k=!1,_){if(!e.loading){if(k){m(Array.isArray(w)?w.slice(0,1):[w],_,"check");return}m(r.value.check(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,_,"check")}}function y(w,k){e.loading||m(r.value.uncheck(w,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"uncheck")}function C(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.check(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function x(w=!1){const{value:k}=o;if(!k||e.loading)return;const _=[];(w?r.value.treeNodes:n.value).forEach(T=>{T.disabled||_.push(T.key)}),m(r.value.uncheck(_,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:v,allRowsCheckedRef:p,headerCheckboxDisabledRef:b,doUpdateCheckedRowKeys:m,doCheckAll:C,doUncheckAll:x,doCheck:g,doUncheck:y}}function id(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function JG(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?eZ(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function eZ(e){return(t,n)=>{const r=t[e],o=n[e];return typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function tZ(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(v=>{var p;v.sorter!==void 0&&h(r,{columnKey:v.key,sorter:v.sorter,order:(p=v.defaultSortOrder)!==null&&p!==void 0?p:!1})});const o=D(r),i=P(()=>{const v=t.value.filter(m=>m.type!=="selection"&&m.sorter!==void 0&&(m.sortOrder==="ascend"||m.sortOrder==="descend"||m.sortOrder===!1)),p=v.filter(m=>m.sortOrder!==!1);if(p.length)return p.map(m=>({columnKey:m.key,order:m.sortOrder,sorter:m.sorter}));if(v.length)return[];const{value:b}=o;return Array.isArray(b)?b:b?[b]:[]}),a=P(()=>{const v=i.value.slice().sort((p,b)=>{const m=id(p.sorter)||0;return(id(b.sorter)||0)-m});return v.length?n.value.slice().sort((b,m)=>{let g=0;return v.some(y=>{const{columnKey:C,sorter:x,order:w}=y,k=JG(x,C);return k&&w&&(g=k(b.rawNode,m.rawNode),g!==0)?(g=g*wG(w),!0):!1}),g}):n.value});function l(v){let p=i.value.slice();return v&&id(v.sorter)!==!1?(p=p.filter(b=>id(b.sorter)!==!1),h(p,v),p):v||null}function s(v){const p=l(v);c(p)}function c(v){const{"onUpdate:sorter":p,onUpdateSorter:b,onSorterChange:m}=e;p&&he(p,v),b&&he(b,v),m&&he(m,v),o.value=v}function d(v,p="ascend"){if(!v)f();else{const b=t.value.find(g=>g.type!=="selection"&&g.type!=="expand"&&g.key===v);if(!(b!=null&&b.sorter))return;const m=b.sorter;s({columnKey:v,sorter:m,order:p})}}function f(){c(null)}function h(v,p){const b=v.findIndex(m=>(p==null?void 0:p.columnKey)&&m.columnKey===p.columnKey);b!==void 0&&b>=0?v[b]=p:v.push(p)}return{clearSorter:f,sort:d,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:s}}function nZ(e,{dataRelatedColsRef:t}){const n=P(()=>{const V=re=>{for(let ee=0;ee{const{childrenKey:V}=e;return to(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:re=>re[V],getDisabled:re=>{var ee,ue;return!!(!((ue=(ee=n.value)===null||ee===void 0?void 0:ee.disabled)===null||ue===void 0)&&ue.call(ee,re))}})}),o=it(()=>{const{columns:V}=e,{length:re}=V;let ee=null;for(let ue=0;ue{const V=t.value.filter(ue=>ue.filterOptionValues!==void 0||ue.filterOptionValue!==void 0),re={};return V.forEach(ue=>{var de;ue.type==="selection"||ue.type==="expand"||(ue.filterOptionValues===void 0?re[ue.key]=(de=ue.filterOptionValue)!==null&&de!==void 0?de:null:re[ue.key]=ue.filterOptionValues)}),Object.assign(IC(i.value),re)}),c=P(()=>{const V=s.value,{columns:re}=e;function ee(Ce){return(we,me)=>!!~String(me[Ce]).indexOf(String(we))}const{value:{treeNodes:ue}}=r,de=[];return re.forEach(Ce=>{Ce.type==="selection"||Ce.type==="expand"||"children"in Ce||de.push([Ce.key,Ce])}),ue?ue.filter(Ce=>{const{rawNode:we}=Ce;for(const[me,Oe]of de){let ke=V[me];if(ke==null||(Array.isArray(ke)||(ke=[ke]),!ke.length))continue;const pe=Oe.filter==="default"?ee(me):Oe.filter;if(Oe&&typeof pe=="function")if(Oe.filterMode==="and"){if(ke.some(Me=>!pe(Me,we)))return!1}else{if(ke.some(Me=>pe(Me,we)))continue;return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:h,sort:v,clearSorter:p}=tZ(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach(V=>{var re;if(V.filter){const ee=V.defaultFilterOptionValues;V.filterMultiple?i.value[V.key]=ee||[]:ee!==void 0?i.value[V.key]=ee===null?[]:ee:i.value[V.key]=(re=V.defaultFilterOptionValue)!==null&&re!==void 0?re:null}});const b=P(()=>{const{pagination:V}=e;if(V!==!1)return V.page}),m=P(()=>{const{pagination:V}=e;if(V!==!1)return V.pageSize}),g=wt(b,a),y=wt(m,l),C=it(()=>{const V=g.value;return e.remote?V:Math.max(1,Math.min(Math.ceil(c.value.length/y.value),V))}),x=P(()=>{const{pagination:V}=e;if(V){const{pageCount:re}=V;if(re!==void 0)return re}}),w=P(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;const V=y.value,re=(C.value-1)*V;return d.value.slice(re,re+V)}),k=P(()=>w.value.map(V=>V.rawNode));function _(V){const{pagination:re}=e;if(re){const{onChange:ee,"onUpdate:page":ue,onUpdatePage:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),I(V)}}function T(V){const{pagination:re}=e;if(re){const{onPageSizeChange:ee,"onUpdate:pageSize":ue,onUpdatePageSize:de}=re;ee&&he(ee,V),de&&he(de,V),ue&&he(ue,V),z(V)}}const $=P(()=>{if(e.remote){const{pagination:V}=e;if(V){const{itemCount:re}=V;if(re!==void 0)return re}return}return c.value.length}),R=P(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":_,"onUpdate:pageSize":T,page:C.value,pageSize:y.value,pageCount:$.value===void 0?x.value:void 0,itemCount:$.value}));function I(V){const{"onUpdate:page":re,onPageChange:ee,onUpdatePage:ue}=e;ue&&he(ue,V),re&&he(re,V),ee&&he(ee,V),a.value=V}function z(V){const{"onUpdate:pageSize":re,onPageSizeChange:ee,onUpdatePageSize:ue}=e;ee&&he(ee,V),ue&&he(ue,V),re&&he(re,V),l.value=V}function A(V,re){const{onUpdateFilters:ee,"onUpdate:filters":ue,onFiltersChange:de}=e;ee&&he(ee,V,re),ue&&he(ue,V,re),de&&he(de,V,re),i.value=V}function L(V,re,ee,ue){var de;(de=e.onUnstableColumnResize)===null||de===void 0||de.call(e,V,re,ee,ue)}function j(V){I(V)}function E(){U()}function U(){K({})}function K(V){Q(V)}function Q(V){V?V&&(i.value=IC(V)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:C,mergedPaginationRef:R,paginatedDataRef:w,rawPaginatedDataRef:k,mergedFilterStateRef:s,mergedSortStateRef:h,hoverKeyRef:D(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:A,deriveNextSorter:f,doUpdatePageSize:z,doUpdatePage:I,onUnstableColumnResize:L,filter:Q,filters:K,clearFilter:E,clearFilters:U,clearSorter:p,page:j,sort:v}}function rZ(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,scrollPartRef:o}){let i=0;const a=D(null),l=D([]),s=D(null),c=D([]),d=P(()=>Ot(e.scrollX)),f=P(()=>e.columns.filter($=>$.fixed==="left")),h=P(()=>e.columns.filter($=>$.fixed==="right")),v=P(()=>{const $={};let R=0;function I(z){z.forEach(A=>{const L={start:R,end:0};$[qr(A)]=L,"children"in A?(I(A.children),L.end=R):(R+=MC(A)||0,L.end=R)})}return I(f.value),$}),p=P(()=>{const $={};let R=0;function I(z){for(let A=z.length-1;A>=0;--A){const L=z[A],j={start:R,end:0};$[qr(L)]=j,"children"in L?(I(L.children),j.end=R):(R+=MC(L)||0,j.end=R)}}return I(h.value),$});function b(){var $,R;const{value:I}=f;let z=0;const{value:A}=v;let L=null;for(let j=0;j((($=A[E])===null||$===void 0?void 0:$.start)||0)-z)L=E,z=((R=A[E])===null||R===void 0?void 0:R.end)||0;else break}a.value=L}function m(){l.value=[];let $=e.columns.find(R=>qr(R)===a.value);for(;$&&"children"in $;){const R=$.children.length;if(R===0)break;const I=$.children[R-1];l.value.push(qr(I)),$=I}}function g(){var $,R;const{value:I}=h,z=Number(e.scrollX),{value:A}=r;if(A===null)return;let L=0,j=null;const{value:E}=p;for(let U=I.length-1;U>=0;--U){const K=qr(I[U]);if(Math.round(i+((($=E[K])===null||$===void 0?void 0:$.start)||0)+A-L)qr(R)===s.value);for(;$&&"children"in $&&$.children.length;){const R=$.children[0];c.value.push(qr(R)),$=R}}function C(){const $=t.value?t.value.getHeaderElement():null,R=t.value?t.value.getBodyElement():null;return{header:$,body:R}}function x(){const{body:$}=C();$&&($.scrollTop=0)}function w(){o.value==="head"&&ka(_)}function k($){var R;(R=e.onScroll)===null||R===void 0||R.call(e,$),o.value==="body"&&ka(_)}function _(){const{header:$,body:R}=C();if(!R)return;const{value:I}=r;if(I===null)return;const{value:z}=o;if(e.maxHeight||e.flexHeight){if(!$)return;z==="head"?(i=$.scrollLeft,R.scrollLeft=i):(i=R.scrollLeft,$.scrollLeft=i)}else i=R.scrollLeft;b(),m(),g(),y()}function T($){const{header:R}=C();!R||(R.scrollLeft=$,_())}return rt(n,()=>{x()}),{styleScrollXRef:d,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:p,leftFixedColumnsRef:f,rightFixedColumnsRef:h,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:_,handleTableBodyScroll:k,handleTableHeaderScroll:w,setHeaderScrollLeft:T}}function oZ(){const e=D({});function t(o){return e.value[o]}function n(o,i){t$(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function iZ(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,s=!1;function c(h,v){v>a&&(n[v]=[],a=v);for(const p of h)if("children"in p)c(p.children,v+1);else{const b="key"in p?p.key:void 0;r.push({key:qr(p),style:SG(p,b!==void 0?Ot(t(b)):void 0),column:p}),l+=1,s||(s=!!p.ellipsis),o.push(p)}}c(e,0);let d=0;function f(h,v){let p=0;h.forEach((b,m)=>{var g;if("children"in b){const y=d,C={column:b,colSpan:0,rowSpan:1,isLast:!1};f(b.children,v+1),b.children.forEach(x=>{var w,k;C.colSpan+=(k=(w=i.get(x))===null||w===void 0?void 0:w.colSpan)!==null&&k!==void 0?k:0}),y+C.colSpan===l&&(C.isLast=!0),i.set(b,C),n[v].push(C)}else{if(d1&&(p=d+y);const C=d+y===l,x={column:b,colSpan:y,rowSpan:a-v+1,isLast:C};i.set(b,x),n[v].push(x),d+=1}})}return f(e,0),{hasEllipsis:s,rows:n,cols:r,dataRelatedCols:o}}function aZ(e,t){const n=P(()=>iZ(e.columns,t));return{rowsRef:P(()=>n.value.rows),colsRef:P(()=>n.value.cols),hasEllipsisRef:P(()=>n.value.hasEllipsis),dataRelatedColsRef:P(()=>n.value.dataRelatedCols)}}function lZ(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),o=D(e.defaultExpandAll?n!=null&&n.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=xe(e,"expandedRowKeys"),a=xe(e,"stickyExpandedRows"),l=wt(i,o);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":f}=e;d&&he(d,c),f&&he(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:s}}const EC=cZ(),sZ=O([S("data-table",` - width: 100%; - font-size: var(--n-font-size); - display: flex; - flex-direction: column; - position: relative; - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - --n-merged-th-color-hover: var(--n-th-color-hover); - --n-merged-td-color-hover: var(--n-td-color-hover); - --n-merged-td-color-striped: var(--n-td-color-striped); - `,[S("data-table-wrapper",` - flex-grow: 1; - display: flex; - flex-direction: column; - `),F("flex-height",[O(">",[S("data-table-wrapper",[O(">",[S("data-table-base-table",` - display: flex; - flex-direction: column; - flex-grow: 1; - `,[O(">",[S("data-table-base-table-body","flex-basis: 0;",[O("&:last-child","flex-grow: 1;")])])])])])])]),O(">",[S("data-table-loading-wrapper",` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - justify-content: center; - `,[$n({originalTransform:"translateX(-50%) translateY(-50%)"})])]),S("data-table-expand-placeholder",` - margin-right: 8px; - display: inline-block; - width: 16px; - height: 1px; - `),S("data-table-indent",` - display: inline-block; - height: 1px; - `),S("data-table-expand-trigger",` - display: inline-flex; - margin-right: 8px; - cursor: pointer; - font-size: 16px; - vertical-align: -0.2em; - position: relative; - width: 16px; - height: 16px; - color: var(--n-td-text-color); - transition: color .3s var(--n-bezier); - `,[F("expanded",[S("icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})]),S("base-icon","transform: rotate(90deg);",[kn({originalTransform:"rotate(90deg)"})])]),S("base-loading",` - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()]),S("base-icon",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[kn()])]),S("data-table-thead",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-merged-th-color); - `),S("data-table-tr",` - box-sizing: border-box; - background-clip: padding-box; - transition: background-color .3s var(--n-bezier); - `,[S("data-table-expand",` - position: sticky; - left: 0; - overflow: hidden; - margin: calc(var(--n-th-padding) * -1); - padding: var(--n-th-padding); - box-sizing: border-box; - `),F("striped","background-color: var(--n-merged-td-color-striped);",[S("data-table-td","background-color: var(--n-merged-td-color-striped);")]),pt("summary",[O("&:hover","background-color: var(--n-merged-td-color-hover);",[O(">",[S("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),S("data-table-th",` - padding: var(--n-th-padding); - position: relative; - text-align: start; - box-sizing: border-box; - background-color: var(--n-merged-th-color); - border-color: var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - color: var(--n-th-text-color); - transition: - border-color .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - font-weight: var(--n-th-font-weight); - `,[F("filterable",` - padding-right: 36px; - `,[F("sortable",` - padding-right: calc(var(--n-th-padding) + 36px); - `)]),EC,F("selection",` - padding: 0; - text-align: center; - line-height: 0; - z-index: 3; - `),M("title-wrapper",` - display: flex; - align-items: center; - flex-wrap: nowrap; - max-width: 100%; - `,[M("title",` - flex: 1; - min-width: 0; - `)]),M("ellipsis",` - display: inline-block; - vertical-align: bottom; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - `),F("hover",` - background-color: var(--n-merged-th-color-hover); - `),F("sortable",` - cursor: pointer; - `,[M("ellipsis",` - max-width: calc(100% - 18px); - `),O("&:hover",` - background-color: var(--n-merged-th-color-hover); - `)]),S("data-table-sorter",` - height: var(--n-sorter-size); - width: var(--n-sorter-size); - margin-left: 4px; - position: relative; - display: inline-flex; - align-items: center; - justify-content: center; - vertical-align: -0.2em; - color: var(--n-th-icon-color); - transition: color .3s var(--n-bezier); - `,[S("base-icon","transition: transform .3s var(--n-bezier)"),F("desc",[S("base-icon",` - transform: rotate(0deg); - `)]),F("asc",[S("base-icon",` - transform: rotate(-180deg); - `)]),F("asc, desc",` - color: var(--n-th-icon-color-active); - `)]),S("data-table-resize-button",` - width: var(--n-resizable-container-size); - position: absolute; - top: 0; - right: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - cursor: col-resize; - user-select: none; - `,[O("&::after",` - width: var(--n-resizable-size); - height: 50%; - position: absolute; - top: 50%; - left: calc(var(--n-resizable-container-size) / 2); - bottom: 0; - background-color: var(--n-merged-border-color); - transform: translateY(-50%); - transition: background-color .3s var(--n-bezier); - z-index: 1; - content: ''; - `),F("active",[O("&::after",` - background-color: var(--n-th-icon-color-active); - `)]),O("&:hover::after",` - background-color: var(--n-th-icon-color-active); - `)]),S("data-table-filter",` - position: absolute; - z-index: auto; - right: 0; - width: 36px; - top: 0; - bottom: 0; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - font-size: var(--n-filter-size); - color: var(--n-th-icon-color); - `,[O("&:hover",` - background-color: var(--n-th-button-color-hover); - `),F("show",` - background-color: var(--n-th-button-color-hover); - `),F("active",` - background-color: var(--n-th-button-color-hover); - color: var(--n-th-icon-color-active); - `)])]),S("data-table-td",` - padding: var(--n-td-padding); - text-align: start; - box-sizing: border-box; - border: none; - background-color: var(--n-merged-td-color); - color: var(--n-td-text-color); - border-bottom: 1px solid var(--n-merged-border-color); - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[F("expand",[S("data-table-expand-trigger",` - margin-right: 0; - `)]),F("last-row",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after",` - bottom: 0 !important; - `),O("&::before",` - bottom: 0 !important; - `)]),F("summary",` - background-color: var(--n-merged-th-color); - `),F("hover",` - background-color: var(--n-merged-td-color-hover); - `),M("ellipsis",` - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - max-width: 100%; - vertical-align: bottom; - `),F("selection, expand",` - text-align: center; - padding: 0; - line-height: 0; - `),EC]),S("data-table-empty",` - box-sizing: border-box; - padding: var(--n-empty-padding); - flex-grow: 1; - flex-shrink: 0; - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - transition: opacity .3s var(--n-bezier); - `,[F("hide",` - opacity: 0; - `)]),M("pagination",` - margin: var(--n-pagination-margin); - display: flex; - justify-content: flex-end; - `),S("data-table-wrapper",` - position: relative; - opacity: 1; - transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); - border-top-left-radius: var(--n-border-radius); - border-top-right-radius: var(--n-border-radius); - line-height: var(--n-line-height); - `),F("loading",[S("data-table-wrapper",` - opacity: var(--n-opacity-loading); - pointer-events: none; - `)]),F("single-column",[S("data-table-td",` - border-bottom: 0 solid var(--n-merged-border-color); - `,[O("&::after, &::before",` - bottom: 0 !important; - `)])]),pt("single-line",[S("data-table-th",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last",` - border-right: 0 solid var(--n-merged-border-color); - `)]),S("data-table-td",` - border-right: 1px solid var(--n-merged-border-color); - `,[F("last-col",` - border-right: 0 solid var(--n-merged-border-color); - `)])]),F("bordered",[S("data-table-wrapper",` - border: 1px solid var(--n-merged-border-color); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - overflow: hidden; - `)]),S("data-table-base-table",[F("transition-disabled",[S("data-table-th",[O("&::after, &::before","transition: none;")]),S("data-table-td",[O("&::after, &::before","transition: none;")])])]),F("bottom-bordered",[S("data-table-td",[F("last-row",` - border-bottom: 1px solid var(--n-merged-border-color); - `)])]),S("data-table-table",` - font-variant-numeric: tabular-nums; - width: 100%; - word-break: break-word; - transition: background-color .3s var(--n-bezier); - border-collapse: separate; - border-spacing: 0; - background-color: var(--n-merged-td-color); - `),S("data-table-base-table-header",` - border-top-left-radius: calc(var(--n-border-radius) - 1px); - border-top-right-radius: calc(var(--n-border-radius) - 1px); - z-index: 3; - overflow: scroll; - flex-shrink: 0; - transition: border-color .3s var(--n-bezier); - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),S("data-table-check-extra",` - transition: color .3s var(--n-bezier); - color: var(--n-th-icon-color); - position: absolute; - font-size: 14px; - right: -4px; - top: 50%; - transform: translateY(-50%); - z-index: 1; - `)]),S("data-table-filter-menu",[S("scrollbar",` - max-height: 240px; - `),M("group",` - display: flex; - flex-direction: column; - padding: 12px 12px 0 12px; - `,[S("checkbox",` - margin-bottom: 12px; - margin-right: 0; - `),S("radio",` - margin-bottom: 12px; - margin-right: 0; - `)]),M("action",` - padding: var(--n-action-padding); - display: flex; - flex-wrap: nowrap; - justify-content: space-evenly; - border-top: 1px solid var(--n-action-divider-color); - `,[S("button",[O("&:not(:last-child)",` - margin: var(--n-action-button-margin); - `),O("&:last-child",` - margin-right: 0; - `)])]),S("divider",` - margin: 0 !important; - `)]),_o(S("data-table",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - --n-merged-th-color-hover: var(--n-th-color-hover-modal); - --n-merged-td-color-hover: var(--n-td-color-hover-modal); - --n-merged-td-color-striped: var(--n-td-color-striped-modal); - `)),qo(S("data-table",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - --n-merged-th-color-hover: var(--n-th-color-hover-popover); - --n-merged-td-color-hover: var(--n-td-color-hover-popover); - --n-merged-td-color-striped: var(--n-td-color-striped-popover); - `))]);function cZ(){return[F("fixed-left",` - left: 0; - position: sticky; - z-index: 2; - `,[O("&::after",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - right: -36px; - `)]),F("fixed-right",` - right: 0; - position: sticky; - z-index: 1; - `,[O("&::before",` - pointer-events: none; - content: ""; - width: 36px; - display: inline-block; - position: absolute; - top: 0; - bottom: -1px; - transition: box-shadow .2s var(--n-bezier); - left: -36px; - `)])]}const dZ=J({name:"DataTable",alias:["AdvancedTable"],props:YP,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{bottomBordered:Ve}=e;return n.value?!1:Ve!==void 0?Ve:!0}),a=Se("DataTable","-data-table",sZ,dG,e,r),l=D(null),s=D("body");Zs(()=>{s.value="body"});const c=D(null),{getResizableWidth:d,clearResizableWidth:f,doUpdateResizableWidth:h}=oZ(),{rowsRef:v,colsRef:p,dataRelatedColsRef:b,hasEllipsisRef:m}=aZ(e,d),{treeMateRef:g,mergedCurrentPageRef:y,paginatedDataRef:C,rawPaginatedDataRef:x,selectionColumnRef:w,hoverKeyRef:k,mergedPaginationRef:_,mergedFilterStateRef:T,mergedSortStateRef:$,childTriggerColIndexRef:R,doUpdatePage:I,doUpdateFilters:z,onUnstableColumnResize:A,deriveNextSorter:L,filter:j,filters:E,clearFilter:U,clearFilters:K,clearSorter:Q,page:V,sort:re}=nZ(e,{dataRelatedColsRef:b}),{doCheckAll:ee,doUncheckAll:ue,doCheck:de,doUncheck:Ce,headerCheckboxDisabledRef:we,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedCheckedRowKeySetRef:ke,mergedInderminateRowKeySetRef:pe}=QG(e,{selectionColumnRef:w,treeMateRef:g,paginatedDataRef:C}),{stickyExpandedRowsRef:Me,mergedExpandedRowKeysRef:H,renderExpandRef:W,expandableRef:Y,doUpdateExpandedRowKeys:ce}=lZ(e,g),{handleTableBodyScroll:X,handleTableHeaderScroll:B,syncScrollState:N,setHeaderScrollLeft:te,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke}=rZ(e,{scrollPartRef:s,bodyWidthRef:l,mainTableInstRef:c,mergedCurrentPageRef:y}),{localeRef:qe}=yn("DataTable"),ct=P(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);nt(no,{props:e,treeMateRef:g,renderExpandIconRef:xe(e,"renderExpandIcon"),loadingKeySetRef:D(new Set),slots:t,indentRef:xe(e,"indent"),childTriggerColIndexRef:R,bodyWidthRef:l,componentId:Cr(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:a,scrollXRef:P(()=>e.scrollX),rowsRef:v,colsRef:p,paginatedDataRef:C,leftActiveFixedColKeyRef:ve,leftActiveFixedChildrenColKeysRef:Z,rightActiveFixedColKeyRef:fe,rightActiveFixedChildrenColKeysRef:ne,leftFixedColumnsRef:ge,rightFixedColumnsRef:Pe,fixedColumnLeftMapRef:Ae,fixedColumnRightMapRef:Ke,mergedCurrentPageRef:y,someRowsCheckedRef:me,allRowsCheckedRef:Oe,mergedSortStateRef:$,mergedFilterStateRef:T,loadingRef:xe(e,"loading"),rowClassNameRef:xe(e,"rowClassName"),mergedCheckedRowKeySetRef:ke,mergedExpandedRowKeysRef:H,mergedInderminateRowKeySetRef:pe,localeRef:qe,scrollPartRef:s,expandableRef:Y,stickyExpandedRowsRef:Me,rowKeyRef:xe(e,"rowKey"),renderExpandRef:W,summaryRef:xe(e,"summary"),virtualScrollRef:xe(e,"virtualScroll"),rowPropsRef:xe(e,"rowProps"),stripedRef:xe(e,"striped"),checkOptionsRef:P(()=>{const{value:Ve}=w;return Ve==null?void 0:Ve.options}),rawPaginatedDataRef:x,filterMenuCssVarsRef:P(()=>{const{self:{actionDividerColor:Ve,actionPadding:We,actionButtonMargin:G}}=a.value;return{"--n-action-padding":We,"--n-action-button-margin":G,"--n-action-divider-color":Ve}}),onLoadRef:xe(e,"onLoad"),mergedTableLayoutRef:ct,maxHeightRef:xe(e,"maxHeight"),minHeightRef:xe(e,"minHeight"),flexHeightRef:xe(e,"flexHeight"),headerCheckboxDisabledRef:we,paginationBehaviorOnFilterRef:xe(e,"paginationBehaviorOnFilter"),summaryPlacementRef:xe(e,"summaryPlacement"),scrollbarPropsRef:xe(e,"scrollbarProps"),syncScrollState:N,doUpdatePage:I,doUpdateFilters:z,getResizableWidth:d,onUnstableColumnResize:A,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:L,doCheck:de,doUncheck:Ce,doCheckAll:ee,doUncheckAll:ue,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:B,handleTableBodyScroll:X,setHeaderScrollLeft:te,renderCell:xe(e,"renderCell")});const dt={filter:j,filters:E,clearFilters:K,clearSorter:Q,page:V,sort:re,clearFilter:U,scrollTo:(Ve,We)=>{var G;(G=c.value)===null||G===void 0||G.scrollTo(Ve,We)}},ut=P(()=>{const{size:Ve}=e,{common:{cubicBezierEaseInOut:We},self:{borderColor:G,tdColorHover:q,thColor:_e,thColorHover:Be,tdColor:Ee,tdTextColor:ae,thTextColor:ze,thFontWeight:ie,thButtonColorHover:Te,thIconColor:se,thIconColorActive:$e,filterSize:oe,borderRadius:Fe,lineHeight:Ne,tdColorModal:Ze,thColorModal:Ue,borderColorModal:le,thColorHoverModal:Ie,tdColorHoverModal:Ge,borderColorPopover:gt,thColorPopover:be,tdColorPopover:De,tdColorHoverPopover:Qe,thColorHoverPopover:ot,paginationMargin:lt,emptyPadding:Kt,boxShadowAfter:Vt,boxShadowBefore:Re,sorterSize:Ye,resizableContainerSize:at,resizableSize:kt,loadingColor:Ut,loadingSize:At,opacityLoading:Ur,tdColorStriped:Et,tdColorStripedModal:cn,tdColorStripedPopover:$o,[ye("fontSize",Ve)]:Qo,[ye("thPadding",Ve)]:Jo,[ye("tdPadding",Ve)]:ei}}=a.value;return{"--n-font-size":Qo,"--n-th-padding":Jo,"--n-td-padding":ei,"--n-bezier":We,"--n-border-radius":Fe,"--n-line-height":Ne,"--n-border-color":G,"--n-border-color-modal":le,"--n-border-color-popover":gt,"--n-th-color":_e,"--n-th-color-hover":Be,"--n-th-color-modal":Ue,"--n-th-color-hover-modal":Ie,"--n-th-color-popover":be,"--n-th-color-hover-popover":ot,"--n-td-color":Ee,"--n-td-color-hover":q,"--n-td-color-modal":Ze,"--n-td-color-hover-modal":Ge,"--n-td-color-popover":De,"--n-td-color-hover-popover":Qe,"--n-th-text-color":ze,"--n-td-text-color":ae,"--n-th-font-weight":ie,"--n-th-button-color-hover":Te,"--n-th-icon-color":se,"--n-th-icon-color-active":$e,"--n-filter-size":oe,"--n-pagination-margin":lt,"--n-empty-padding":Kt,"--n-box-shadow-before":Re,"--n-box-shadow-after":Vt,"--n-sorter-size":Ye,"--n-resizable-container-size":at,"--n-resizable-size":kt,"--n-loading-size":At,"--n-loading-color":Ut,"--n-opacity-loading":Ur,"--n-td-color-striped":Et,"--n-td-color-striped-modal":cn,"--n-td-color-striped-popover":$o}}),je=o?Je("data-table",P(()=>e.size[0]),ut,e):void 0,Xe=P(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const Ve=_.value,{pageCount:We}=Ve;return We!==void 0?We>1:Ve.itemCount&&Ve.pageSize&&Ve.itemCount>Ve.pageSize});return Object.assign({mainTableInstRef:c,mergedClsPrefix:r,mergedTheme:a,paginatedData:C,mergedBordered:n,mergedBottomBordered:i,mergedPagination:_,mergedShowPagination:Xe,cssVars:o?void 0:ut,themeClass:je==null?void 0:je.themeClass,onRender:je==null?void 0:je.onRender},dt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n==null||n(),u("div",{class:[`${e}-data-table`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},u("div",{class:`${e}-data-table-wrapper`},u(ZG,{ref:"mainTableInstRef"})),this.mergedShowPagination?u("div",{class:`${e}-data-table__pagination`},u(UP,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u("div",{class:`${e}-data-table-loading-wrapper`},vt(r.loading,()=>[u(eo,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),uZ={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},fZ=e=>{const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},uZ),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:c,iconColorDisabled:d})},hZ={name:"TimePicker",common:et,peers:{Scrollbar:hr,Button:vr,Input:kr},self:fZ},h$=hZ,vZ={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0"},pZ=e=>{const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:c,textColor1:d,dividerColor:f,boxShadow2:h,borderRadius:v,fontWeightStrong:p}=e;return Object.assign(Object.assign({},vZ),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:ft(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:h,panelBorderRadius:v,calendarTitleFontWeight:p,scrollItemBorderRadius:v,iconColor:s,iconColorDisabled:c})},gZ={name:"DatePicker",common:et,peers:{Input:kr,Button:vr,TimePicker:h$,Scrollbar:hr},self:pZ},mZ=gZ;function bZ(e,t){const n=P(()=>{const{isTimeDisabled:d}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return d==null?void 0:d(f)}),r=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isHourDisabled}),o=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isMinuteDisabled}),i=P(()=>{var d;return(d=n.value)===null||d===void 0?void 0:d.isSecondDisabled}),a=P(()=>{const{type:d,isDateDisabled:f}=e,{value:h}=t;return h===null||Array.isArray(h)||!["date","datetime"].includes(d)||!f?!1:f(h)}),l=P(()=>{const{type:d}=e,{value:f}=t;if(f===null||d==="datetime"||Array.isArray(f))return!1;const h=new Date(f),v=h.getHours(),p=h.getMinutes(),b=h.getMinutes();return(r.value?r.value(v):!1)||(o.value?o.value(p,v):!1)||(i.value?i.value(b,p,v):!1)}),s=P(()=>a.value||l.value);return{isValueInvalidRef:P(()=>{const{type:d}=e;return d==="date"?a.value:d==="datetime"?s.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:s,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function yZ(e,t){const n=P(()=>{const{isTimeDisabled:f}=e,{value:h}=t;return!Array.isArray(h)||!f?[void 0,void 0]:[f==null?void 0:f(h[0],"start",h),f==null?void 0:f(h[1],"end",h)]}),r={isStartHourDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:P(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:P(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[0],"start",v)}),i=P(()=>{const{type:f,isDateDisabled:h}=e,{value:v}=t;return v===null||!Array.isArray(v)||!["daterange","datetimerange"].includes(f)||!h?!1:h(v[1],"end",v)}),a=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[0]),p=Uu(h[0]),b=Wu(h[0]),{isStartHourDisabledRef:m,isStartMinuteDisabledRef:g,isStartSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),l=P(()=>{const{type:f}=e,{value:h}=t;if(h===null||!Array.isArray(h)||f!=="datetimerange")return!1;const v=di(h[1]),p=Uu(h[1]),b=Wu(h[1]),{isEndHourDisabledRef:m,isEndMinuteDisabledRef:g,isEndSecondDisabledRef:y}=r;return(m.value?m.value(v):!1)||(g.value?g.value(p,v):!1)||(y.value?y.value(b,p,v):!1)}),s=P(()=>o.value||a.value),c=P(()=>i.value||l.value),d=P(()=>s.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:s,isEndValueInvalidRef:c,isRangeInvalidRef:d})}const bh="n-date-picker";function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qg={exports:{}},Jg={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i]);return r}e.exports=t.default})(Jg,Jg.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Jg.exports);function r(i){return i&&i.__esModule?i:{default:i}}function o(i){return(0,n.default)({},i)}e.exports=t.default})(Qg,Qg.exports);const xZ=yh(Qg.exports);var em={exports:{}},tm={exports:{}},nm={exports:{}},Xn={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){if(o.length1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(Xn,Xn.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){return(0,n.default)(1,arguments),a instanceof Date||o(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}e.exports=t.default})(nm,nm.exports);var Lr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xn.exports);function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(s){return typeof s}:o=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},o(a)}function i(a){(0,n.default)(1,arguments);var l=Object.prototype.toString.call(a);return a instanceof Date||o(a)==="object"&&l==="[object Date]"?new Date(a.getTime()):typeof a=="number"||l==="[object Number]"?new Date(a):((typeof a=="string"||l==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Lr,Lr.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(nm.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){if((0,o.default)(1,arguments),!(0,n.default)(l)&&typeof l!="number")return!1;var s=(0,r.default)(l);return!isNaN(Number(s))}e.exports=t.default})(tm,tm.exports);var rm={exports:{}},om={exports:{}},Vo={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){if(r===null||r===!0||r===!1)return NaN;var o=Number(r);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(Vo,Vo.exports);const wZ=yh(Vo.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(Vo.exports),r=i(Lr.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,o.default)(2,arguments);var c=(0,r.default)(l).getTime(),d=(0,n.default)(s);return new Date(c+d)}e.exports=t.default})(om,om.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(om.exports),r=i(Xn.exports),o=i(Vo.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l,s){(0,r.default)(2,arguments);var c=(0,o.default)(s);return(0,n.default)(l,-c)}e.exports=t.default})(rm,rm.exports);var im={exports:{}},am={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(Lr.exports),r=o(Xn.exports);function o(l){return l&&l.__esModule?l:{default:l}}var i=864e5;function a(l){(0,r.default)(1,arguments);var s=(0,n.default)(l),c=s.getTime();s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0);var d=s.getTime(),f=c-d;return Math.floor(f/i)+1}e.exports=t.default})(am,am.exports);var lm={exports:{}},Ws={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=o(Lr.exports),r=o(Xn.exports);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){(0,r.default)(1,arguments);var l=1,s=(0,n.default)(a),c=s.getUTCDay(),d=(c=f.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}e.exports=t.default})(zf,zf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=i(zf.exports),r=i(Ws.exports),o=i(Xn.exports);function i(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,o.default)(1,arguments);var s=(0,n.default)(l),c=new Date(0);c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0);var d=(0,r.default)(c);return d}e.exports=t.default})(sm,sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ws.exports),o=a(sm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c){(0,i.default)(1,arguments);var d=(0,n.default)(c),f=(0,r.default)(d).getTime()-(0,o.default)(d).getTime();return Math.round(f/l)+1}e.exports=t.default})(lm,lm.exports);var cm={exports:{}},Ks={exports:{}},Ka={};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getDefaultOptions=CZ;Ka.setDefaultOptions=SZ;var v$={};function CZ(){return v$}function SZ(e){v$=e}(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(Lr.exports),r=a(Xn.exports),o=a(Vo.exports),i=Ka;function a(s){return s&&s.__esModule?s:{default:s}}function l(s,c){var d,f,h,v,p,b,m,g;(0,r.default)(1,arguments);var y=(0,i.getDefaultOptions)(),C=(0,o.default)((d=(f=(h=(v=c==null?void 0:c.weekStartsOn)!==null&&v!==void 0?v:c==null||(p=c.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&h!==void 0?h:y.weekStartsOn)!==null&&f!==void 0?f:(m=y.locale)===null||m===void 0||(g=m.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&d!==void 0?d:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var x=(0,n.default)(s),w=x.getUTCDay(),k=(w=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(x+1,0,k),_.setUTCHours(0,0,0,0);var T=(0,o.default)(_,d),$=new Date(0);$.setUTCFullYear(x,0,k),$.setUTCHours(0,0,0,0);var R=(0,o.default)($,d);return C.getTime()>=T.getTime()?x+1:C.getTime()>=R.getTime()?x:x-1}e.exports=t.default})(Mf,Mf.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=l(Mf.exports),r=l(Xn.exports),o=l(Ks.exports),i=l(Vo.exports),a=Ka;function l(c){return c&&c.__esModule?c:{default:c}}function s(c,d){var f,h,v,p,b,m,g,y;(0,r.default)(1,arguments);var C=(0,a.getDefaultOptions)(),x=(0,i.default)((f=(h=(v=(p=d==null?void 0:d.firstWeekContainsDate)!==null&&p!==void 0?p:d==null||(b=d.locale)===null||b===void 0||(m=b.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&v!==void 0?v:C.firstWeekContainsDate)!==null&&h!==void 0?h:(g=C.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&f!==void 0?f:1),w=(0,n.default)(c,d),k=new Date(0);k.setUTCFullYear(w,0,x),k.setUTCHours(0,0,0,0);var _=(0,o.default)(k,d);return _}e.exports=t.default})(dm,dm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Lr.exports),r=a(Ks.exports),o=a(dm.exports),i=a(Xn.exports);function a(c){return c&&c.__esModule?c:{default:c}}var l=6048e5;function s(c,d){(0,i.default)(1,arguments);var f=(0,n.default)(c),h=(0,r.default)(f,d).getTime()-(0,o.default)(f,d).getTime();return Math.round(h/l)+1}e.exports=t.default})(cm,cm.exports);var If={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){for(var i=r<0?"-":"",a=Math.abs(r).toString();a.length0?c:1-c;return(0,n.default)(s==="yy"?d%100:d,s.length)},M:function(l,s){var c=l.getUTCMonth();return s==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(l,s){return(0,n.default)(l.getUTCDate(),s.length)},a:function(l,s){var c=l.getUTCHours()/12>=1?"pm":"am";switch(s){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(l,s){return(0,n.default)(l.getUTCHours()%12||12,s.length)},H:function(l,s){return(0,n.default)(l.getUTCHours(),s.length)},m:function(l,s){return(0,n.default)(l.getUTCMinutes(),s.length)},s:function(l,s){return(0,n.default)(l.getUTCSeconds(),s.length)},S:function(l,s){var c=s.length,d=l.getUTCMilliseconds(),f=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(f,s.length)}},i=o;t.default=i,e.exports=t.default})(um,um.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(am.exports),r=c(lm.exports),o=c(zf.exports),i=c(cm.exports),a=c(Mf.exports),l=c(If.exports),s=c(um.exports);function c(m){return m&&m.__esModule?m:{default:m}}var d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(g,y,C){var x=g.getUTCFullYear()>0?1:0;switch(y){case"G":case"GG":case"GGG":return C.era(x,{width:"abbreviated"});case"GGGGG":return C.era(x,{width:"narrow"});case"GGGG":default:return C.era(x,{width:"wide"})}},y:function(g,y,C){if(y==="yo"){var x=g.getUTCFullYear(),w=x>0?x:1-x;return C.ordinalNumber(w,{unit:"year"})}return s.default.y(g,y)},Y:function(g,y,C,x){var w=(0,a.default)(g,x),k=w>0?w:1-w;if(y==="YY"){var _=k%100;return(0,l.default)(_,2)}return y==="Yo"?C.ordinalNumber(k,{unit:"year"}):(0,l.default)(k,y.length)},R:function(g,y){var C=(0,o.default)(g);return(0,l.default)(C,y.length)},u:function(g,y){var C=g.getUTCFullYear();return(0,l.default)(C,y.length)},Q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"Q":return String(x);case"QQ":return(0,l.default)(x,2);case"Qo":return C.ordinalNumber(x,{unit:"quarter"});case"QQQ":return C.quarter(x,{width:"abbreviated",context:"formatting"});case"QQQQQ":return C.quarter(x,{width:"narrow",context:"formatting"});case"QQQQ":default:return C.quarter(x,{width:"wide",context:"formatting"})}},q:function(g,y,C){var x=Math.ceil((g.getUTCMonth()+1)/3);switch(y){case"q":return String(x);case"qq":return(0,l.default)(x,2);case"qo":return C.ordinalNumber(x,{unit:"quarter"});case"qqq":return C.quarter(x,{width:"abbreviated",context:"standalone"});case"qqqqq":return C.quarter(x,{width:"narrow",context:"standalone"});case"qqqq":default:return C.quarter(x,{width:"wide",context:"standalone"})}},M:function(g,y,C){var x=g.getUTCMonth();switch(y){case"M":case"MM":return s.default.M(g,y);case"Mo":return C.ordinalNumber(x+1,{unit:"month"});case"MMM":return C.month(x,{width:"abbreviated",context:"formatting"});case"MMMMM":return C.month(x,{width:"narrow",context:"formatting"});case"MMMM":default:return C.month(x,{width:"wide",context:"formatting"})}},L:function(g,y,C){var x=g.getUTCMonth();switch(y){case"L":return String(x+1);case"LL":return(0,l.default)(x+1,2);case"Lo":return C.ordinalNumber(x+1,{unit:"month"});case"LLL":return C.month(x,{width:"abbreviated",context:"standalone"});case"LLLLL":return C.month(x,{width:"narrow",context:"standalone"});case"LLLL":default:return C.month(x,{width:"wide",context:"standalone"})}},w:function(g,y,C,x){var w=(0,i.default)(g,x);return y==="wo"?C.ordinalNumber(w,{unit:"week"}):(0,l.default)(w,y.length)},I:function(g,y,C){var x=(0,r.default)(g);return y==="Io"?C.ordinalNumber(x,{unit:"week"}):(0,l.default)(x,y.length)},d:function(g,y,C){return y==="do"?C.ordinalNumber(g.getUTCDate(),{unit:"date"}):s.default.d(g,y)},D:function(g,y,C){var x=(0,n.default)(g);return y==="Do"?C.ordinalNumber(x,{unit:"dayOfYear"}):(0,l.default)(x,y.length)},E:function(g,y,C){var x=g.getUTCDay();switch(y){case"E":case"EE":case"EEE":return C.day(x,{width:"abbreviated",context:"formatting"});case"EEEEE":return C.day(x,{width:"narrow",context:"formatting"});case"EEEEEE":return C.day(x,{width:"short",context:"formatting"});case"EEEE":default:return C.day(x,{width:"wide",context:"formatting"})}},e:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"e":return String(k);case"ee":return(0,l.default)(k,2);case"eo":return C.ordinalNumber(k,{unit:"day"});case"eee":return C.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return C.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return C.day(w,{width:"short",context:"formatting"});case"eeee":default:return C.day(w,{width:"wide",context:"formatting"})}},c:function(g,y,C,x){var w=g.getUTCDay(),k=(w-x.weekStartsOn+8)%7||7;switch(y){case"c":return String(k);case"cc":return(0,l.default)(k,y.length);case"co":return C.ordinalNumber(k,{unit:"day"});case"ccc":return C.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return C.day(w,{width:"narrow",context:"standalone"});case"cccccc":return C.day(w,{width:"short",context:"standalone"});case"cccc":default:return C.day(w,{width:"wide",context:"standalone"})}},i:function(g,y,C){var x=g.getUTCDay(),w=x===0?7:x;switch(y){case"i":return String(w);case"ii":return(0,l.default)(w,y.length);case"io":return C.ordinalNumber(w,{unit:"day"});case"iii":return C.day(x,{width:"abbreviated",context:"formatting"});case"iiiii":return C.day(x,{width:"narrow",context:"formatting"});case"iiiiii":return C.day(x,{width:"short",context:"formatting"});case"iiii":default:return C.day(x,{width:"wide",context:"formatting"})}},a:function(g,y,C){var x=g.getUTCHours(),w=x/12>=1?"pm":"am";switch(y){case"a":case"aa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(g,y,C){var x=g.getUTCHours(),w;switch(x===12?w=d.noon:x===0?w=d.midnight:w=x/12>=1?"pm":"am",y){case"b":case"bb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(g,y,C){var x=g.getUTCHours(),w;switch(x>=17?w=d.evening:x>=12?w=d.afternoon:x>=4?w=d.morning:w=d.night,y){case"B":case"BB":case"BBB":return C.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return C.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return C.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(g,y,C){if(y==="ho"){var x=g.getUTCHours()%12;return x===0&&(x=12),C.ordinalNumber(x,{unit:"hour"})}return s.default.h(g,y)},H:function(g,y,C){return y==="Ho"?C.ordinalNumber(g.getUTCHours(),{unit:"hour"}):s.default.H(g,y)},K:function(g,y,C){var x=g.getUTCHours()%12;return y==="Ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},k:function(g,y,C){var x=g.getUTCHours();return x===0&&(x=24),y==="ko"?C.ordinalNumber(x,{unit:"hour"}):(0,l.default)(x,y.length)},m:function(g,y,C){return y==="mo"?C.ordinalNumber(g.getUTCMinutes(),{unit:"minute"}):s.default.m(g,y)},s:function(g,y,C){return y==="so"?C.ordinalNumber(g.getUTCSeconds(),{unit:"second"}):s.default.s(g,y)},S:function(g,y){return s.default.S(g,y)},X:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();if(k===0)return"Z";switch(y){case"X":return v(k);case"XXXX":case"XX":return p(k);case"XXXXX":case"XXX":default:return p(k,":")}},x:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"x":return v(k);case"xxxx":case"xx":return p(k);case"xxxxx":case"xxx":default:return p(k,":")}},O:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"O":case"OO":case"OOO":return"GMT"+h(k,":");case"OOOO":default:return"GMT"+p(k,":")}},z:function(g,y,C,x){var w=x._originalDate||g,k=w.getTimezoneOffset();switch(y){case"z":case"zz":case"zzz":return"GMT"+h(k,":");case"zzzz":default:return"GMT"+p(k,":")}},t:function(g,y,C,x){var w=x._originalDate||g,k=Math.floor(w.getTime()/1e3);return(0,l.default)(k,y.length)},T:function(g,y,C,x){var w=x._originalDate||g,k=w.getTime();return(0,l.default)(k,y.length)}};function h(m,g){var y=m>0?"-":"+",C=Math.abs(m),x=Math.floor(C/60),w=C%60;if(w===0)return y+String(x);var k=g||"";return y+String(x)+k+(0,l.default)(w,2)}function v(m,g){if(m%60===0){var y=m>0?"-":"+";return y+(0,l.default)(Math.abs(m)/60,2)}return p(m,g)}function p(m,g){var y=g||"",C=m>0?"-":"+",x=Math.abs(m),w=(0,l.default)(Math.floor(x/60),2),k=(0,l.default)(x%60,2);return C+w+y+k}var b=f;t.default=b,e.exports=t.default})(im,im.exports);var fm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,c){switch(s){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},r=function(s,c){switch(s){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},o=function(s,c){var d=s.match(/(P+)(p+)?/)||[],f=d[1],h=d[2];if(!h)return n(s,c);var v;switch(f){case"P":v=c.dateTime({width:"short"});break;case"PP":v=c.dateTime({width:"medium"});break;case"PPP":v=c.dateTime({width:"long"});break;case"PPPP":default:v=c.dateTime({width:"full"});break}return v.replace("{{date}}",n(f,c)).replace("{{time}}",r(h,c))},i={p:r,P:o},a=i;t.default=a,e.exports=t.default})(fm,fm.exports);var Ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){var o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),r.getTime()-o.getTime()}e.exports=t.default})(Ff,Ff.exports);const LC=yh(Ff.exports);var uc={};Object.defineProperty(uc,"__esModule",{value:!0});uc.isProtectedDayOfYearToken=RZ;uc.isProtectedWeekYearToken=PZ;uc.throwProtectedError=$Z;var _Z=["D","DD"],kZ=["YY","YYYY"];function RZ(e){return _Z.indexOf(e)!==-1}function PZ(e){return kZ.indexOf(e)!==-1}function $Z(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hm={exports:{}},vm={exports:{}},pm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(a,l,s){var c,d=n[a];return typeof d=="string"?c=d:l===1?c=d.one:c=d.other.replace("{{count}}",l.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+c:c+" ago":c},o=r;t.default=o,e.exports=t.default})(pm,pm.exports);var gm={exports:{}},mm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=o.width?String(o.width):r.defaultWidth,a=r.formats[i]||r.formats[r.defaultWidth];return a}}e.exports=t.default})(mm,mm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(mm.exports);function r(c){return c&&c.__esModule?c:{default:c}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},l={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:i,defaultWidth:"full"}),dateTime:(0,n.default)({formats:a,defaultWidth:"full"})},s=l;t.default=s,e.exports=t.default})(gm,gm.exports);var bm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(a,l,s,c){return n[a]},o=r;t.default=o,e.exports=t.default})(bm,bm.exports);var ym={exports:{}},xm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){return function(o,i){var a=i!=null&&i.context?String(i.context):"standalone",l;if(a==="formatting"&&r.formattingValues){var s=r.defaultFormattingWidth||r.defaultWidth,c=i!=null&&i.width?String(i.width):s;l=r.formattingValues[c]||r.formattingValues[s]}else{var d=r.defaultWidth,f=i!=null&&i.width?String(i.width):r.defaultWidth;l=r.values[f]||r.values[d]}var h=r.argumentCallback?r.argumentCallback(o):o;return l[h]}}e.exports=t.default})(xm,xm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xm.exports);function r(v){return v&&v.__esModule?v:{default:v}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},d=function(p,b){var m=Number(p),g=m%100;if(g>20||g<10)switch(g%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},f={ordinalNumber:d,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,n.default)({values:a,defaultWidth:"wide"}),day:(0,n.default)({values:l,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:s,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},h=f;t.default=h,e.exports=t.default})(ym,ym.exports);var wm={exports:{}},Cm={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i){return function(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.width,c=s&&i.matchPatterns[s]||i.matchPatterns[i.defaultMatchWidth],d=a.match(c);if(!d)return null;var f=d[0],h=s&&i.parsePatterns[s]||i.parsePatterns[i.defaultParseWidth],v=Array.isArray(h)?o(h,function(m){return m.test(f)}):r(h,function(m){return m.test(f)}),p;p=i.valueCallback?i.valueCallback(v):v,p=l.valueCallback?l.valueCallback(p):p;var b=a.slice(f.length);return{value:p,rest:b}}}function r(i,a){for(var l in i)if(i.hasOwnProperty(l)&&a(i[l]))return l}function o(i,a){for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},a=o.match(r.matchPattern);if(!a)return null;var l=a[0],s=o.match(r.parsePattern);if(!s)return null;var c=r.valueCallback?r.valueCallback(s[0]):s[0];c=i.valueCallback?i.valueCallback(c):c;var d=o.slice(l.length);return{value:c,rest:d}}}e.exports=t.default})(Sm,Sm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Cm.exports),r=o(Sm.exports);function o(C){return C&&C.__esModule?C:{default:C}}var i=/^(\d+)(th|st|nd|rd)?/i,a=/\d+/i,l={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},s={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},g={ordinalNumber:(0,r.default)({matchPattern:i,parsePattern:a,valueCallback:function(x){return parseInt(x,10)}}),era:(0,n.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:s,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(x){return x+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:v,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:b,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},y=g;t.default=y,e.exports=t.default})(wm,wm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(pm.exports),r=l(gm.exports),o=l(bm.exports),i=l(ym.exports),a=l(wm.exports);function l(d){return d&&d.__esModule?d:{default:d}}var s={code:"en-US",formatDistance:n.default,formatLong:r.default,formatRelative:o.default,localize:i.default,match:a.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=s;t.default=c,e.exports=t.default})(vm,vm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(vm.exports);function r(i){return i&&i.__esModule?i:{default:i}}var o=n.default;t.default=o,e.exports=t.default})(hm,hm.exports);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=C;var n=v(tm.exports),r=v(rm.exports),o=v(Lr.exports),i=v(im.exports),a=v(fm.exports),l=v(Ff.exports),s=uc,c=v(Vo.exports),d=v(Xn.exports),f=Ka,h=v(hm.exports);function v(w){return w&&w.__esModule?w:{default:w}}var p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,b=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;function C(w,k,_){var T,$,R,I,z,A,L,j,E,U,K,Q,V,re,ee,ue,de,Ce;(0,d.default)(2,arguments);var we=String(k),me=(0,f.getDefaultOptions)(),Oe=(T=($=_==null?void 0:_.locale)!==null&&$!==void 0?$:me.locale)!==null&&T!==void 0?T:h.default,ke=(0,c.default)((R=(I=(z=(A=_==null?void 0:_.firstWeekContainsDate)!==null&&A!==void 0?A:_==null||(L=_.locale)===null||L===void 0||(j=L.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&z!==void 0?z:me.firstWeekContainsDate)!==null&&I!==void 0?I:(E=me.locale)===null||E===void 0||(U=E.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&R!==void 0?R:1);if(!(ke>=1&&ke<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var pe=(0,c.default)((K=(Q=(V=(re=_==null?void 0:_.weekStartsOn)!==null&&re!==void 0?re:_==null||(ee=_.locale)===null||ee===void 0||(ue=ee.options)===null||ue===void 0?void 0:ue.weekStartsOn)!==null&&V!==void 0?V:me.weekStartsOn)!==null&&Q!==void 0?Q:(de=me.locale)===null||de===void 0||(Ce=de.options)===null||Ce===void 0?void 0:Ce.weekStartsOn)!==null&&K!==void 0?K:0);if(!(pe>=0&&pe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Oe.localize)throw new RangeError("locale must contain localize property");if(!Oe.formatLong)throw new RangeError("locale must contain formatLong property");var Me=(0,o.default)(w);if(!(0,n.default)(Me))throw new RangeError("Invalid time value");var H=(0,l.default)(Me),W=(0,r.default)(Me,H),Y={firstWeekContainsDate:ke,weekStartsOn:pe,locale:Oe,_originalDate:Me},ce=we.match(b).map(function(X){var B=X[0];if(B==="p"||B==="P"){var N=a.default[B];return N(X,Oe.formatLong)}return X}).join("").match(p).map(function(X){if(X==="''")return"'";var B=X[0];if(B==="'")return x(X);var N=i.default[B];if(N)return!(_!=null&&_.useAdditionalWeekYearTokens)&&(0,s.isProtectedWeekYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),!(_!=null&&_.useAdditionalDayOfYearTokens)&&(0,s.isProtectedDayOfYearToken)(X)&&(0,s.throwProtectedError)(X,k,String(w)),N(W,X,Oe.localize,Y);if(B.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return X}).join("");return ce}function x(w){var k=w.match(m);return k?k[1].replace(g,"'"):w}e.exports=t.default})(em,em.exports);const TZ=yh(em.exports);function NC(e,t,n){var r=MZ(e,n.timeZone,n.locale);return r.formatToParts?OZ(r,t):zZ(r,t)}function OZ(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function zZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function MZ(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function IZ(e,t){var n=BZ(t);return n.formatToParts?DZ(n,e):AZ(n,e)}var FZ={year:0,month:1,day:2,hour:3,minute:4,second:5};function DZ(e,t){try{for(var n=e.formatToParts(t),r=[],o=0;o=0&&(r[i]=parseInt(n[o].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function AZ(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Ov={};function BZ(e){if(!Ov[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=t==="06/25/2014, 00:00:00"||t==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";Ov[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ov[e]}function p$(e,t,n,r,o,i,a){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,o,i,a),l}var HC=36e5,EZ=6e4,zv={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function g0(e,t,n){var r,o;if(!e||(r=zv.timezoneZ.exec(e),r))return 0;var i;if(r=zv.timezoneHH.exec(e),r)return i=parseInt(r[1],10),jC(i)?-(i*HC):NaN;if(r=zv.timezoneHHMM.exec(e),r){i=parseInt(r[1],10);var a=parseInt(r[2],10);return jC(i,a)?(o=Math.abs(i)*HC+a*EZ,i>0?-o:o):NaN}if(HZ(e)){t=new Date(t||Date.now());var l=n?t:LZ(t),s=_m(l,e),c=n?s:NZ(t,s,e);return-c}return NaN}function LZ(e){return p$(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function _m(e,t){var n=IZ(e,t),r=p$(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),o=e.getTime(),i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function NZ(e,t,n){var r=e.getTime(),o=r-t,i=_m(new Date(o),n);if(t===i)return t;o-=i-t;var a=_m(new Date(o),n);return i===a?i:Math.max(i,a)}function jC(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var VC={};function HZ(e){if(VC[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),VC[e]=!0,!0}catch{return!1}}var jZ=60*1e3,VZ={X:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);if(o===0)return"Z";switch(t){case"X":return UC(o);case"XXXX":case"XX":return ll(o);case"XXXXX":case"XXX":default:return ll(o,":")}},x:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"x":return UC(o);case"xxxx":case"xx":return ll(o);case"xxxxx":case"xxx":default:return ll(o,":")}},O:function(e,t,n,r){var o=Mv(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+UZ(o,":");case"OOOO":default:return"GMT"+ll(o,":")}},z:function(e,t,n,r){var o=r._originalDate||e;switch(t){case"z":case"zz":case"zzz":return NC("short",o,r);case"zzzz":default:return NC("long",o,r)}}};function Mv(e,t){var n=e?g0(e,t,!0)/jZ:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function Df(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?"-":"+",o=Math.abs(e),i=Df(Math.floor(o/60),2),a=Df(Math.floor(o%60),2);return r+i+n+a}function UC(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Df(Math.abs(e)/60,2)}return ll(e,t)}function UZ(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Df(i,2)}const WZ=VZ;var KZ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const qZ=KZ;var Iv=36e5,WC=6e4,YZ=2,tr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:qZ};function g$(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var n=t||{},r=n.additionalDigits==null?YZ:wZ(n.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=XZ(e),i=GZ(o.date,r),a=i.year,l=i.restDateString,s=ZZ(l,a);if(isNaN(s))return new Date(NaN);if(s){var c=s.getTime(),d=0,f;if(o.time&&(d=QZ(o.time),isNaN(d)))return new Date(NaN);if(o.timeZone||n.timeZone){if(f=g0(o.timeZone||n.timeZone,new Date(c+d)),isNaN(f))return new Date(NaN)}else f=LC(new Date(c+d)),f=LC(new Date(c+d+f));return new Date(c+d+f)}else return new Date(NaN)}function XZ(e){var t={},n=tr.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=tr.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){var o=tr.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function GZ(e,t){var n=tr.YYY[t],r=tr.YYYYY[t],o;if(o=tr.YYYY.exec(e)||r.exec(e),o){var i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=tr.YY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}return{year:null}}function ZZ(e,t){if(t===null)return null;var n,r,o,i;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(n=tr.MM.exec(e),n)return r=new Date(0),o=parseInt(n[1],10)-1,qC(t,o)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=tr.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return tQ(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=tr.MMDD.exec(e),n){r=new Date(0),o=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return qC(t,o,l)?(r.setUTCFullYear(t,o,l),r):new Date(NaN)}if(n=tr.Www.exec(e),n)return i=parseInt(n[1],10)-1,YC(t,i)?KC(t,i):new Date(NaN);if(n=tr.WwwD.exec(e),n){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return YC(t,i,s)?KC(t,i,s):new Date(NaN)}return null}function QZ(e){var t,n,r;if(t=tr.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),Fv(n)?n%24*Iv:NaN;if(t=tr.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Fv(n,r)?n%24*Iv+r*WC:NaN;if(t=tr.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Fv(n,r,o)?n%24*Iv+r*WC+o*1e3:NaN}return null}function KC(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var JZ=[31,28,31,30,31,30,31,31,30,31,30,31],eQ=[31,29,31,30,31,30,31,31,30,31,30,31];function m$(e){return e%400===0||e%4===0&&e%100!==0}function qC(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;var r=m$(e);if(r&&n>eQ[t]||!r&&n>JZ[t])return!1}return!0}function tQ(e,t){if(t<1)return!1;var n=m$(e);return!(n&&t>366||!n&&t>365)}function YC(e,t,n){return!(t<0||t>52||n!=null&&(n<0||n>6))}function Fv(e,t,n){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var nQ=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function rQ(e,t,n){var r=String(t),o=n||{},i=r.match(nQ);if(i){var a=g$(e,o);r=i.reduce(function(l,s){if(s[0]==="'")return l;var c=l.indexOf(s),d=l[c-1]==="'",f=l.replace(s,"'"+WZ[s[0]](a,s,null,o)+"'");return d?f.substring(0,c-1)+f.substring(c+1):f},r)}return TZ(e,r,o)}function oQ(e,t,n){var r=g$(e,n),o=g0(t,r,!0),i=new Date(r.getTime()-o),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function b$(e,t,n,r){var o=xZ(r);return o.timeZone=t,rQ(oQ(e,t),n,o)}const rs={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Dv(e){return`00${e}`.slice(-2)}function os(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Dv(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Dv(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Dv(r===12?12:r-12)):e}function ad(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function iQ(e,t,n){const r=os(rs[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||Dn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function aQ(e){return di(e)<12?"am":"pm"}const y$="n-time-picker",ld=J({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return u("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>t(a):void 0},o)})}}),lQ={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,nowText:String,confirmText:String,transitionDisabled:Boolean,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},sQ=J({name:"TimePickerPanel",props:lQ,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Le(y$),r=P(()=>{const{isHourDisabled:l,hours:s,use12Hours:c,amPmValue:d}=e;if(c){const f=d!=null?d:aQ(Date.now());return os(rs.hours,s,f).map(h=>{const v=Number(h),p=f==="pm"&&v!==12?v+12:v;return{label:h,value:p,disabled:l?l(p):!1}})}else return os(rs.hours,s).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=P(()=>{const{isMinuteDisabled:l,minutes:s}=e;return os(rs.minutes,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=P(()=>{const{isSecondDisabled:l,seconds:s}=e;return os(rs.seconds,s).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=P(()=>{const{isHourDisabled:l}=e;let s=!0,c=!0;for(let d=0;d<12;++d)if(!(l!=null&&l(d))){s=!1;break}for(let d=12;d<24;++d)if(!(l!=null&&l(d))){c=!1;break}return[{label:"AM",value:"am",disabled:s},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:D(null),minuteScrollRef:D(null),secondScrollRef:D(null),amPmScrollRef:D(null)}},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o}=this;return u("div",{tabindex:0,class:`${r}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},u("div",{class:`${r}-time-picker-cols`},this.showHour?u("div",{class:[`${r}-time-picker-col`,this.isHourInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"hourScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showMinute?u("div",{class:[`${r}-time-picker-col`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${r}-time-picker-col--invalid`]},u(rn,{ref:"minuteScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.showSecond?u("div",{class:[`${r}-time-picker-col`,this.isSecondInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"secondScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null,this.use12Hours?u("div",{class:[`${r}-time-picker-col`,this.isAmPmInvalid&&`${r}-time-picker-col--invalid`,this.transitionDisabled&&`${r}-time-picker-col--transition-disabled`]},u(rn,{ref:"amPmScrollRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[u(ld,{clsPrefix:r,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),u("div",{class:`${r}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?u("div",{class:`${r}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("now")?u(Pt,{size:"tiny",theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{size:"tiny",type:"primary",class:`${r}-time-picker-actions__confirm`,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,u(Po,{onFocus:this.onFocusDetectorFocus}))}}),cQ=O([S("time-picker",` - z-index: auto; - position: relative; - `,[S("time-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("time-picker-icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("time-picker-panel",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[$n(),S("time-picker-actions",` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),S("time-picker-cols",` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),S("time-picker-col",` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[F("transition-disabled",[M("item","transition: none;",[O("&::before","transition: none;")])]),M("padding",` - height: calc(var(--n-item-height) * 5); - `),O("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[M("item",[O("&::before","left: 4px;")])]),M("item",` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[O("&::before",` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `)]),F("active",` - color: var(--n-item-text-color-active); - `,[O("&::before",` - background-color: var(--n-item-color-hover); - `)]),F("disabled",` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),F("invalid",[M("item",[F("active",` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function Av(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const x$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>Av(e,23)},minutes:{type:[Number,Array],validator:e=>Av(e,59)},seconds:{type:[Number,Array],validator:e=>Av(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),Af=J({name:"TimePicker",props:x$,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),{localeRef:i,dateLocaleRef:a}=yn("TimePicker"),l=xn(e),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:d}=l,f=Se("TimePicker","-time-picker",cQ,h$,e,n),h=kb(),v=D(null),p=D(null),b=P(()=>({locale:a.value.locale}));function m(se){return se===null?null:lr(se,e.valueFormat||e.format,new Date,b.value).getTime()}const{defaultValue:g,defaultFormattedValue:y}=e,C=D(y!==void 0?m(y):g),x=P(()=>{const{formattedValue:se}=e;if(se!==void 0)return m(se);const{value:$e}=e;return $e!==void 0?$e:C.value}),w=P(()=>{const{timeZone:se}=e;return se?($e,oe,Fe)=>b$($e,se,oe,Fe):($e,oe,Fe)=>tn($e,oe,Fe)}),k=D("");rt(()=>e.timeZone,()=>{const se=x.value;k.value=se===null?"":w.value(se,e.format,b.value)},{immediate:!0});const _=D(!1),T=xe(e,"show"),$=wt(T,_),R=D(x.value),I=D(!1),z=P(()=>i.value.now),A=P(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),L=P(()=>i.value.negativeText),j=P(()=>i.value.positiveText),E=P(()=>/H|h|K|k/.test(e.format)),U=P(()=>e.format.includes("m")),K=P(()=>e.format.includes("s")),Q=P(()=>{const{isHourDisabled:se}=e;return Ce.value===null?!1:ad(Ce.value,"hours",e.hours)?se?se(Ce.value):!1:!0}),V=P(()=>{const{value:se}=we,{value:$e}=Ce;if(se===null||$e===null)return!1;if(!ad(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:oe}=e;return oe?oe(se,$e):!1}),re=P(()=>{const{value:se}=we,{value:$e}=Ce,{value:oe}=me;if(oe===null||se===null||$e===null)return!1;if(!ad(oe,"seconds",e.seconds))return!0;const{isSecondDisabled:Fe}=e;return Fe?Fe(oe,se,$e):!1}),ee=P(()=>Q.value||V.value||re.value),ue=P(()=>e.format.length+4),de=P(()=>{const{value:se}=x;return se===null?null:di(se)<12?"am":"pm"}),Ce=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"HH",b.value))}),we=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"mm",b.value))}),me=P(()=>{const{value:se}=x;return se===null?null:Number(w.value(se,"ss",b.value))});function Oe(se,$e){const{onUpdateFormattedValue:oe,"onUpdate:formattedValue":Fe}=e;oe&&he(oe,se,$e),Fe&&he(Fe,se,$e)}function ke(se){return se===null?null:w.value(se,e.valueFormat||e.format)}function pe(se){const{onUpdateValue:$e,"onUpdate:value":oe,onChange:Fe}=e,{nTriggerFormChange:Ne,nTriggerFormInput:Ze}=l,Ue=ke(se);$e&&he($e,se,Ue),oe&&he(oe,se,Ue),Fe&&he(Fe,se,Ue),Oe(Ue,se),C.value=se,Ne(),Ze()}function Me(se){const{onFocus:$e}=e,{nTriggerFormFocus:oe}=l;$e&&he($e,se),oe()}function H(se){const{onBlur:$e}=e,{nTriggerFormBlur:oe}=l;$e&&he($e,se),oe()}function W(){const{onConfirm:se}=e;se&&he(se,x.value,ke(x.value))}function Y(se){var $e;se.stopPropagation(),pe(null),ge(null),($e=e.onClear)===null||$e===void 0||$e.call(e)}function ce(){Ve({returnFocus:!0})}function X(se){se.key==="Escape"&&$.value&&$a(se)}function B(se){var $e;switch(se.key){case"Escape":$.value&&($a(se),Ve({returnFocus:!0}));break;case"Tab":h.shift&&se.target===(($e=p.value)===null||$e===void 0?void 0:$e.$el)&&(se.preventDefault(),Ve({returnFocus:!0}));break}}function N(){I.value=!0,_t(()=>{I.value=!1})}function te(se){c.value||qn(se,"clear")||$.value||je()}function ve(se){typeof se!="string"&&(x.value===null?pe(tt(Xi(XU(new Date),se))):pe(tt(Xi(x.value,se))))}function Z(se){typeof se!="string"&&(x.value===null?pe(tt(vv(nH(new Date),se))):pe(tt(vv(x.value,se))))}function fe(se){typeof se!="string"&&(x.value===null?pe(tt(pv(Zb(new Date),se))):pe(tt(pv(x.value,se))))}function ne(se){const{value:$e}=x;if($e===null){const oe=new Date,Fe=di(oe);se==="pm"&&Fe<12?pe(tt(Xi(oe,Fe+12))):se==="am"&&Fe>=12&&pe(tt(Xi(oe,Fe-12))),pe(tt(oe))}else{const oe=di($e);se==="pm"&&oe<12?pe(tt(Xi($e,oe+12))):se==="am"&&oe>=12&&pe(tt(Xi($e,oe-12)))}}function ge(se){se===void 0&&(se=x.value),se===null?k.value="":k.value=w.value(se,e.format,b.value)}function Pe(se){ut(se)||Me(se)}function Ae(se){var $e;if(!ut(se))if($.value){const oe=($e=p.value)===null||$e===void 0?void 0:$e.$el;oe!=null&&oe.contains(se.relatedTarget)||(ge(),H(se),Ve({returnFocus:!1}))}else ge(),H(se)}function Ke(){c.value||$.value||je()}function qe(){c.value||(ge(),Ve({returnFocus:!1}))}function ct(){if(!p.value)return;const{hourScrollRef:se,minuteScrollRef:$e,secondScrollRef:oe,amPmScrollRef:Fe}=p.value;[se,$e,oe,Fe].forEach(Ne=>{var Ze;if(!Ne)return;const Ue=(Ze=Ne.contentRef)===null||Ze===void 0?void 0:Ze.querySelector("[data-active]");Ue&&Ne.scrollTo({top:Ue.offsetTop})})}function dt(se){_.value=se;const{onUpdateShow:$e,"onUpdate:show":oe}=e;$e&&he($e,se),oe&&he(oe,se)}function ut(se){var $e,oe,Fe;return!!(((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0?void 0:oe.contains(se.relatedTarget))||((Fe=p.value)===null||Fe===void 0?void 0:Fe.$el.contains(se.relatedTarget)))}function je(){R.value=x.value,dt(!0),_t(ct)}function Xe(se){var $e,oe;$.value&&!(!((oe=($e=v.value)===null||$e===void 0?void 0:$e.wrapperElRef)===null||oe===void 0)&&oe.contains(ur(se)))&&Ve({returnFocus:!1})}function Ve({returnFocus:se}){var $e;$.value&&(dt(!1),se&&(($e=v.value)===null||$e===void 0||$e.focus()))}function We(se){if(se===""){pe(null);return}const $e=lr(se,e.format,new Date,b.value);if(k.value=se,zr($e)){const{value:oe}=x;if(oe!==null){const Fe=jn(oe,{hours:di($e),minutes:Uu($e),seconds:Wu($e)});pe(tt(Fe))}else pe(tt($e))}}function G(){pe(R.value),dt(!1)}function q(){const se=new Date,$e={hours:di,minutes:Uu,seconds:Wu},[oe,Fe,Ne]=["hours","minutes","seconds"].map(Ue=>!e[Ue]||ad($e[Ue](se),Ue,e[Ue])?$e[Ue](se):iQ($e[Ue](se),Ue,e[Ue])),Ze=pv(vv(Xi(x.value?x.value:tt(se),oe),Fe),Ne);pe(tt(Ze))}function _e(){ge(),W(),Ve({returnFocus:!0})}function Be(se){ut(se)||(ge(),H(se),Ve({returnFocus:!1}))}rt(x,se=>{ge(se),N(),_t(ct)}),rt($,()=>{ee.value&&pe(R.value)}),nt(y$,{mergedThemeRef:f,mergedClsPrefixRef:n});const Ee={focus:()=>{var se;(se=v.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=v.value)===null||se===void 0||se.blur()}},ae=P(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:$e,iconColorDisabled:oe}}=f.value;return{"--n-icon-color-override":$e,"--n-icon-color-disabled-override":oe,"--n-bezier":se}}),ze=o?Je("time-picker-trigger",void 0,ae,e):void 0,ie=P(()=>{const{self:{panelColor:se,itemTextColor:$e,itemTextColorActive:oe,itemColorHover:Fe,panelDividerColor:Ne,panelBoxShadow:Ze,itemOpacityDisabled:Ue,borderRadius:le,itemFontSize:Ie,itemWidth:Ge,itemHeight:gt,panelActionPadding:be,itemBorderRadius:De},common:{cubicBezierEaseInOut:Qe}}=f.value;return{"--n-bezier":Qe,"--n-border-radius":le,"--n-item-color-hover":Fe,"--n-item-font-size":Ie,"--n-item-height":gt,"--n-item-opacity-disabled":Ue,"--n-item-text-color":$e,"--n-item-text-color-active":oe,"--n-item-width":Ge,"--n-panel-action-padding":be,"--n-panel-box-shadow":Ze,"--n-panel-color":se,"--n-panel-divider-color":Ne,"--n-item-border-radius":De}}),Te=o?Je("time-picker",void 0,ie,e):void 0;return{focus:Ee.focus,blur:Ee.blur,mergedStatus:d,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:C,mergedValue:x,isMounted:An(),inputInstRef:v,panelInstRef:p,adjustedTo:Lt(e),mergedShow:$,localizedNow:z,localizedPlaceholder:A,localizedNegativeText:L,localizedPositiveText:j,hourInFormat:E,minuteInFormat:U,secondInFormat:K,mergedAttrSize:ue,displayTimeString:k,mergedSize:s,mergedDisabled:c,isValueInvalid:ee,isHourInvalid:Q,isMinuteInvalid:V,isSecondInvalid:re,transitionDisabled:I,hourValue:Ce,minuteValue:we,secondValue:me,amPmValue:de,handleInputKeydown:X,handleTimeInputFocus:Pe,handleTimeInputBlur:Ae,handleNowClick:q,handleConfirmClick:_e,handleTimeInputUpdateValue:We,handleMenuFocusOut:Be,handleCancelClick:G,handleClickOutside:Xe,handleTimeInputActivate:Ke,handleTimeInputDeactivate:qe,handleHourClick:ve,handleMinuteClick:Z,handleSecondClick:fe,handleAmPmClick:ne,handleTimeInputClear:Y,handleFocusDetectorFocus:ce,handleMenuKeydown:B,handleTriggerClick:te,mergedTheme:f,triggerCssVars:o?void 0:ae,triggerThemeClass:ze==null?void 0:ze.themeClass,triggerOnRender:ze==null?void 0:ze.onRender,cssVars:o?void 0:ie,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n==null||n(),u("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(In,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():u(cW,null)})}:null)}),u(Sr,{teleportDisabled:this.adjustedTo===Lt.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),sn(u(sQ,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[fr,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),dQ="HH:mm:ss",w$={active:Boolean,dateFormat:String,timeFormat:{type:String,value:dQ},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array],onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean};function C$(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Le(bh),l=P(()=>({locale:t.value.locale})),s=D(null),c=kb();function d(){const{onClear:z}=e;z&&z()}function f(){const{onConfirm:z,value:A}=e;z&&z(A)}function h(z,A){const{onUpdateValue:L}=e;L(z,A)}function v(z=!1){const{onClose:A}=e;A&&A(z)}function p(){const{onTabOut:z}=e;z&&z()}function b(){h(null,!0),v(!0),d()}function m(){p()}function g(){(e.active||e.panel)&&_t(()=>{const{value:z}=s;if(!z)return;const A=z.querySelectorAll("[data-n-date]");A.forEach(L=>{L.classList.add("transition-disabled")}),z.offsetWidth,A.forEach(L=>{L.classList.remove("transition-disabled")})})}function y(z){z.key==="Tab"&&z.target===s.value&&c.shift&&(z.preventDefault(),p())}function C(z){const{value:A}=s;c.tab&&z.target===A&&(A==null?void 0:A.contains(z.relatedTarget))&&p()}let x=null,w=!1;function k(){x=e.value,w=!0}function _(){w=!1}function T(){w&&(h(x,!1),w=!1)}function $(z){return typeof z=="function"?z():z}const R=D(!1);function I(){R.value=!R.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:s,locale:o,doConfirm:f,doClose:v,doUpdateValue:h,doTabOut:p,handleClearClick:b,handleFocusDetectorFocus:m,disableTransitionOneTick:g,handlePanelKeyDown:y,handlePanelFocus:C,cachePendingValue:k,clearPendingValue:_,restorePendingValue:T,getShortcutValue:$,handleShortcutMouseleave:T,showMonthYearPanel:R,handleOpenQuickSelectMonthPanel:I}}const m0=Object.assign(Object.assign({},w$),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function b0(e,t){const n=C$(e),{isValueInvalidRef:r,isDateDisabledRef:o,isDateInvalidRef:i,isTimeInvalidRef:a,isDateTimeInvalidRef:l,isHourDisabledRef:s,isMinuteDisabledRef:c,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:h,datePickerSlots:v}=Le(bh),p={isValueInvalid:r,isDateDisabled:o,isDateInvalid:i,isTimeInvalid:a,isDateTimeInvalid:l,isHourDisabled:s,isMinuteDisabled:c,isSecondDisabled:d},b=P(()=>e.dateFormat||f.value.dateFormat),m=D(e.value===null||Array.isArray(e.value)?"":tn(e.value,b.value)),g=D(e.value===null||Array.isArray(e.value)?Date.now():e.value),y=D(null),C=D(null),x=D(null),w=D(Date.now()),k=P(()=>{var B;return Of(g.value,e.value,w.value,(B=h.value)!==null&&B!==void 0?B:f.value.firstDayOfWeek)}),_=P(()=>{const{value:B}=e;return qg(g.value,Array.isArray(B)?null:B,w.value)}),T=P(()=>{const{value:B}=e;return Xg(Array.isArray(B)?null:B,w.value)}),$=P(()=>{const{value:B}=e;return Yg(g.value,Array.isArray(B)?null:B,w.value)}),R=P(()=>k.value.slice(0,7).map(B=>{const{ts:N}=B;return tn(N,f.value.dayFormat,n.dateFnsOptions.value)})),I=P(()=>tn(g.value,f.value.monthFormat,n.dateFnsOptions.value)),z=P(()=>tn(g.value,f.value.yearFormat,n.dateFnsOptions.value));rt(g,(B,N)=>{(t==="date"||t==="datetime")&&(dh(B,N)||n.disableTransitionOneTick())}),rt(P(()=>e.value),B=>{B!==null&&!Array.isArray(B)?(m.value=tn(B,b.value,n.dateFnsOptions.value),g.value=B):m.value=""});function A(B){return tt(t==="datetime"?Zb(B):t==="month"?Tr(B):t==="year"?Ub(B):t==="quarter"?Vs(B):Cl(B))}function L(B){const{isDateDisabled:{value:N}}=p;return N?N(B):!1}function j(B){const N=lr(B,b.value,new Date,n.dateFnsOptions.value);if(zr(N)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),e.panel);else if(!Array.isArray(e.value)){const te=jn(e.value,{year:Jt(N),month:qt(N),date:Kr(N)});n.doUpdateValue(tt(A(tt(te))),e.panel)}}else m.value=B}function E(){const B=lr(m.value,b.value,new Date,n.dateFnsOptions.value);if(zr(B)){if(e.value===null)n.doUpdateValue(tt(A(Date.now())),!1);else if(!Array.isArray(e.value)){const N=jn(e.value,{year:Jt(B),month:qt(B),date:Kr(B)});n.doUpdateValue(tt(A(tt(N))),!1)}}else ee()}function U(){n.doUpdateValue(null,!0),m.value="",n.doClose(!0),n.handleClearClick()}function K(){n.doUpdateValue(tt(A(Date.now())),!0);const B=Date.now();g.value=B,n.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(n.disableTransitionOneTick(),ce(B))}function Q(B){if(L(B.ts))return;let N;if(e.value!==null&&!Array.isArray(e.value)?N=e.value:N=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){const te=fu(e.defaultTime);te&&(N=tt(jn(N,te)))}switch(N=tt(B.type==="quarter"&&B.dateObject.quarter?GU(lC(N,B.dateObject.year),B.dateObject.quarter):jn(N,B.dateObject)),n.doUpdateValue(A(N),e.panel||t==="date"||t==="year"),t){case"date":n.doClose();break;case"year":e.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(N);break;case"quarter":n.disableTransitionOneTick(),ce(N);break}}function V(B,N){let te;e.value!==null&&!Array.isArray(e.value)?te=e.value:te=Date.now(),te=tt(B.type==="month"?Qb(te,B.dateObject.month):lC(te,B.dateObject.year)),N(te),ce(te)}function re(B){g.value=B}function ee(B){if(e.value===null||Array.isArray(e.value)){m.value="";return}B===void 0&&(B=e.value),m.value=tn(B,b.value,n.dateFnsOptions.value)}function ue(){p.isDateInvalid.value||p.isTimeInvalid.value||(n.doConfirm(),de())}function de(){e.active&&n.doClose()}function Ce(){g.value=tt(Mp(g.value,1))}function we(){g.value=tt(Mp(g.value,-1))}function me(){g.value=tt(On(g.value,1))}function Oe(){g.value=tt(On(g.value,-1))}function ke(){const{value:B}=y;return B==null?void 0:B.listElRef}function pe(){const{value:B}=y;return B==null?void 0:B.itemsElRef}function Me(B){var N;(N=C.value)===null||N===void 0||N.sync()}function H(B){B!==null&&n.doUpdateValue(B,e.panel)}function W(B){n.cachePendingValue();const N=n.getShortcutValue(B);typeof N=="number"&&n.doUpdateValue(N,!1)}function Y(B){const N=n.getShortcutValue(B);typeof N=="number"&&(n.doUpdateValue(N,e.panel),n.clearPendingValue(),ue())}function ce(B){const{value:N}=e;if(x.value){const te=qt(B===void 0?N===null?Date.now():N:B);x.value.scrollTo({top:te*Ia})}if(y.value){const te=Jt(B===void 0?N===null?Date.now():N:B)-Tf;y.value.scrollTo({top:te*Ia})}}const X={monthScrollbarRef:x,yearScrollbarRef:C,yearVlRef:y};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:k,monthArray:_,yearArray:T,quarterArray:$,calendarYear:z,calendarMonth:I,weekdays:R,mergedIsDateDisabled:L,nextYear:Ce,prevYear:we,nextMonth:me,prevMonth:Oe,handleNowClick:K,handleConfirmClick:ue,handleSingleShortcutMouseenter:W,handleSingleShortcutClick:Y},p),n),X),{handleDateClick:Q,handleDateInputBlur:E,handleDateInput:j,handleTimePickerChange:H,clearSelectedDateTime:U,virtualListContainer:ke,virtualListContent:pe,handleVirtualListScroll:Me,timePickerSize:n.timePickerSize,dateInputValue:m,datePickerSlots:v,handleQuickMonthClick:V,justifyColumnsScrollState:ce,calendarValue:g,onUpdateCalendarValue:re})}const S$=J({name:"MonthPanel",props:Object.assign(Object.assign({},m0),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=b0(e,e.type),n=i=>{switch(i.type){case"year":return i.dateObject.year;case"month":return i.dateObject.month+1;case"quarter":return`Q${i.dateObject.quarter}`}},{useAsQuickJump:r}=e,o=(i,a,l)=>{const{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:d}=t;return u("div",{"data-n-date":!0,key:a,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:i.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:i.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:!r&&s(i.ts)}],onClick:()=>{r?d(i,f=>e.onUpdateValue(f,!1)):c(i)}},n(i))};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:o})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${e}-date-panel-month-calendar`},u(rn,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"yearVlRef",items:this.yearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:s})=>o(l,s,e)})}),i==="month"||i==="quarter"?u("div",{class:`${e}-date-panel-month-calendar__picker-col`},u(rn,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,s)=>o(l,s,e)),u("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),this.datePickerSlots.footer?u("div",{class:`${e}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(r==null?void 0:r.length)||n?u("div",{class:`${e}-date-panel-actions`},u("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const s=n[l];return Array.isArray(s)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(s)},onClick:()=>{this.handleSingleShortcutClick(s)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),u("div",{class:`${e}-date-panel-actions__suffix`},r!=null&&r.includes("clear")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,r!=null&&r.includes("now")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,r!=null&&r.includes("confirm")?u(Pt,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),kl=J({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=D(null),t=D(null),n=D(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(ur(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),u(Sr,{show:this.show,teleportDisabled:!0},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?sn(u(S$,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[fr,e,void 0,{capture:!0}]]):null})})]}))}}),uQ=J({name:"DateTimePanel",props:m0,setup(e){return b0(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,onRender:s,$slots:c}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${o}-date-panel-header`},u(In,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),u(Af,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),u("div",{class:`${o}-date-panel-calendar`},u("div",{class:`${o}-date-panel-month`},u("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(c["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},vt(c["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},vt(c["next-month"],()=>[u(Mi,null)])),u("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},vt(c["next-year"],()=>[u(zi,null)]))),u("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(d=>u("div",{key:d,class:`${o}-date-panel-weekdays__day`},d))),u("div",{class:`${o}-date-panel-dates`},this.dateArray.map((d,f)=>u("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:d.isCurrentDate,[`${o}-date-panel-date--selected`]:d.selected,[`${o}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>this.handleDateClick(d)},u("div",{class:`${o}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?u("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||a?u("div",{class:`${o}-date-panel-actions`},u("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(d=>{const f=a[d];return Array.isArray(f)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d})})),u("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?u(Pt,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),y0=Object.assign(Object.assign({},w$),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function x0(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:s,isStartSecondDisabledRef:c,isEndSecondDisabledRef:d,isStartDateInvalidRef:f,isEndDateInvalidRef:h,isStartTimeInvalidRef:v,isEndTimeInvalidRef:p,isStartValueInvalidRef:b,isEndValueInvalidRef:m,isRangeInvalidRef:g,localeRef:y,rangesRef:C,closeOnSelectRef:x,updateValueOnCloseRef:w,firstDayOfWeekRef:k,datePickerSlots:_}=Le(bh),T={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:s,isStartSecondDisabled:c,isEndSecondDisabled:d,isStartDateInvalid:f,isEndDateInvalid:h,isStartTimeInvalid:v,isEndTimeInvalid:p,isStartValueInvalid:b,isEndValueInvalid:m,isRangeInvalid:g},$=C$(e),R=D(null),I=D(null),z=D(null),A=D(null),L=D(null),j=D(null),E=D(null),U=D(null),{value:K}=e,Q=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(K)&&typeof K[0]=="number"?K[0]:Date.now(),V=D(Q),re=D((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(K)&&typeof K[1]=="number"?K[1]:tt(On(Q,1)));Ae(!0);const ee=D(Date.now()),ue=D(!1),de=D(0),Ce=P(()=>e.dateFormat||y.value.dateFormat),we=D(Array.isArray(K)?tn(K[0],Ce.value,$.dateFnsOptions.value):""),me=D(Array.isArray(K)?tn(K[1],Ce.value,$.dateFnsOptions.value):""),Oe=P(()=>ue.value?"end":"start"),ke=P(()=>{var Re;return Of(V.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),pe=P(()=>{var Re;return Of(re.value,e.value,ee.value,(Re=k.value)!==null&&Re!==void 0?Re:y.value.firstDayOfWeek)}),Me=P(()=>ke.value.slice(0,7).map(Re=>{const{ts:Ye}=Re;return tn(Ye,y.value.dayFormat,$.dateFnsOptions.value)})),H=P(()=>tn(V.value,y.value.monthFormat,$.dateFnsOptions.value)),W=P(()=>tn(re.value,y.value.monthFormat,$.dateFnsOptions.value)),Y=P(()=>tn(V.value,y.value.yearFormat,$.dateFnsOptions.value)),ce=P(()=>tn(re.value,y.value.yearFormat,$.dateFnsOptions.value)),X=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[0]:null}),B=P(()=>{const{value:Re}=e;return Array.isArray(Re)?Re[1]:null}),N=P(()=>{const{shortcuts:Re}=e;return Re||C.value}),te=P(()=>Xg(rl(e.value,"start"),ee.value)),ve=P(()=>Xg(rl(e.value,"end"),ee.value)),Z=P(()=>{const Re=rl(e.value,"start");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),fe=P(()=>{const Re=rl(e.value,"end");return Yg(Re!=null?Re:Date.now(),Re,ee.value)}),ne=P(()=>{const Re=rl(e.value,"start");return qg(Re!=null?Re:Date.now(),Re,ee.value)}),ge=P(()=>{const Re=rl(e.value,"end");return qg(Re!=null?Re:Date.now(),Re,ee.value)});rt(P(()=>e.value),Re=>{if(Re!==null&&Array.isArray(Re)){const[Ye,at]=Re;we.value=tn(Ye,Ce.value,$.dateFnsOptions.value),me.value=tn(at,Ce.value,$.dateFnsOptions.value),ue.value||_e(Re)}else we.value="",me.value=""});function Pe(Re,Ye){(t==="daterange"||t==="datetimerange")&&(Jt(Re)!==Jt(Ye)||qt(Re)!==qt(Ye))&&$.disableTransitionOneTick()}rt(V,Pe),rt(re,Pe);function Ae(Re){const Ye=Tr(V.value),at=Tr(re.value);(e.bindCalendarMonths||Ye>=at)&&(Re?re.value=tt(On(Ye,1)):V.value=tt(On(at,-1)))}function Ke(){V.value=tt(On(V.value,12)),Ae(!0)}function qe(){V.value=tt(On(V.value,-12)),Ae(!0)}function ct(){V.value=tt(On(V.value,1)),Ae(!0)}function dt(){V.value=tt(On(V.value,-1)),Ae(!0)}function ut(){re.value=tt(On(re.value,12)),Ae(!1)}function je(){re.value=tt(On(re.value,-12)),Ae(!1)}function Xe(){re.value=tt(On(re.value,1)),Ae(!1)}function Ve(){re.value=tt(On(re.value,-1)),Ae(!1)}function We(Re){V.value=Re,Ae(!0)}function G(Re){re.value=Re,Ae(!1)}function q(Re){const Ye=o.value;if(!Ye)return!1;if(!Array.isArray(e.value)||Oe.value==="start")return Ye(Re,"start",null);{const{value:at}=de;return Re=de.value?se(de.value,Re.ts,"wipPreview"):se(Re.ts,de.value,"wipPreview")}}function ae(){g.value||($.doConfirm(),ze())}function ze(){ue.value=!1,e.active&&$.doClose()}function ie(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Re,Math.max(e.value[1],Re)],e.panel)}function Te(Re){typeof Re!="number"&&(Re=tt(Re)),e.value===null?$.doUpdateValue([Re,Re],e.panel):Array.isArray(e.value)&&$.doUpdateValue([Math.min(e.value[0],Re),Re],e.panel)}function se(Re,Ye,at){if(typeof Re!="number"&&(Re=tt(Re)),at!=="shortcutPreview"){let kt,Ut;if(t==="datetimerange"){const{defaultTime:At}=e;Array.isArray(At)?(kt=fu(At[0]),Ut=fu(At[1])):(kt=fu(At),Ut=kt)}kt&&(Re=tt(jn(Re,kt))),Ut&&(Ye=tt(jn(Ye,Ut)))}$.doUpdateValue([Re,Ye],e.panel&&at==="done")}function $e(Re){return tt(t==="datetimerange"?Zb(Re):t==="monthrange"?Tr(Re):Cl(Re))}function oe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye))if(e.value){if(Array.isArray(e.value)){const at=jn(e.value[0],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}}else{const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});ie($e(tt(at)))}else we.value=Re}function Fe(Re){const Ye=lr(Re,Ce.value,new Date,$.dateFnsOptions.value);if(zr(Ye)){if(e.value===null){const at=jn(new Date,{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}else if(Array.isArray(e.value)){const at=jn(e.value[1],{year:Jt(Ye),month:qt(Ye),date:Kr(Ye)});Te($e(tt(at)))}}else me.value=Re}function Ne(){const Re=lr(we.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[0],{year:Jt(Re),month:qt(Re),date:Kr(Re)});ie($e(tt(at)))}}else Ue()}function Ze(){const Re=lr(me.value,Ce.value,new Date,$.dateFnsOptions.value),{value:Ye}=e;if(zr(Re)){if(Ye===null){const at=jn(new Date,{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}else if(Array.isArray(Ye)){const at=jn(Ye[1],{year:Jt(Re),month:qt(Re),date:Kr(Re)});Te($e(tt(at)))}}else Ue()}function Ue(Re){const{value:Ye}=e;if(Ye===null||!Array.isArray(Ye)){we.value="",me.value="";return}Re===void 0&&(Re=Ye),we.value=tn(Re[0],Ce.value,$.dateFnsOptions.value),me.value=tn(Re[1],Ce.value,$.dateFnsOptions.value)}function le(Re){Re!==null&&ie(Re)}function Ie(Re){Re!==null&&Te(Re)}function Ge(Re){$.cachePendingValue();const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||se(Ye[0],Ye[1],"shortcutPreview")}function gt(Re){const Ye=$.getShortcutValue(Re);!Array.isArray(Ye)||(se(Ye[0],Ye[1],"done"),$.clearPendingValue(),ae())}function be(Re,Ye){const at=Re===void 0?e.value:Re;if(Re===void 0||Ye==="start"){if(E.value){const kt=Array.isArray(at)?qt(at[0]):qt(Date.now());E.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(L.value){const kt=(Array.isArray(at)?Jt(at[0]):Jt(Date.now()))-Tf;L.value.scrollTo({index:kt,debounce:!1})}}if(Re===void 0||Ye==="end"){if(U.value){const kt=Array.isArray(at)?qt(at[1]):qt(Date.now());U.value.scrollTo({debounce:!1,index:kt,elSize:Ia})}if(j.value){const kt=(Array.isArray(at)?Jt(at[1]):Jt(Date.now()))-Tf;j.value.scrollTo({index:kt,debounce:!1})}}}function De(Re,Ye){const{value:at}=e,kt=!Array.isArray(at),Ut=Re.type==="year"&&t!=="yearrange"?kt?jn(Re.ts,{month:qt(t==="quarterrange"?Vs(new Date):new Date)}).valueOf():jn(Re.ts,{month:qt(t==="quarterrange"?Vs(at[Ye==="start"?0:1]):at[Ye==="start"?0:1])}).valueOf():Re.ts;if(kt){const Et=$e(Ut),cn=[Et,Et];$.doUpdateValue(cn,e.panel),be(cn,"start"),be(cn,"end"),$.disableTransitionOneTick();return}const At=[at[0],at[1]];let Ur=!1;switch(Ye==="start"?(At[0]=$e(Ut),At[0]>At[1]&&(At[1]=At[0],Ur=!0)):(At[1]=$e(Ut),At[0]>At[1]&&(At[0]=At[1],Ur=!0)),$.doUpdateValue(At,e.panel),t){case"monthrange":case"quarterrange":$.disableTransitionOneTick(),Ur?(be(At,"start"),be(At,"end")):be(At,Ye);break;case"yearrange":$.disableTransitionOneTick(),be(At,"start"),be(At,"end")}}function Qe(){var Re;(Re=z.value)===null||Re===void 0||Re.sync()}function ot(){var Re;(Re=A.value)===null||Re===void 0||Re.sync()}function lt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.listElRef:(at=j.value)===null||at===void 0?void 0:at.listElRef}function Kt(Re){var Ye,at;return Re==="start"?(Ye=L.value)===null||Ye===void 0?void 0:Ye.itemsElRef:(at=j.value)===null||at===void 0?void 0:at.itemsElRef}const Vt={startYearVlRef:L,endYearVlRef:j,startMonthScrollbarRef:E,endMonthScrollbarRef:U,startYearScrollbarRef:z,endYearScrollbarRef:A};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:R,endDatesElRef:I,handleDateClick:Be,handleColItemClick:De,handleDateMouseEnter:Ee,handleConfirmClick:ae,startCalendarPrevYear:qe,startCalendarPrevMonth:dt,startCalendarNextYear:Ke,startCalendarNextMonth:ct,endCalendarPrevYear:je,endCalendarPrevMonth:Ve,endCalendarNextMonth:Xe,endCalendarNextYear:ut,mergedIsDateDisabled:q,changeStartEndTime:se,ranges:C,startCalendarMonth:H,startCalendarYear:Y,endCalendarMonth:W,endCalendarYear:ce,weekdays:Me,startDateArray:ke,endDateArray:pe,startYearArray:te,startMonthArray:ne,startQuarterArray:Z,endYearArray:ve,endMonthArray:ge,endQuarterArray:fe,isSelecting:ue,handleRangeShortcutMouseenter:Ge,handleRangeShortcutClick:gt},$),T),Vt),{startDateDisplayString:we,endDateInput:me,timePickerSize:$.timePickerSize,startTimeValue:X,endTimeValue:B,datePickerSlots:_,shortcuts:N,startCalendarDateTime:V,endCalendarDateTime:re,justifyColumnsScrollState:be,handleFocusDetectorFocus:$.handleFocusDetectorFocus,handleStartTimePickerChange:le,handleEndTimePickerChange:Ie,handleStartDateInput:oe,handleStartDateInputBlur:Ne,handleEndDateInput:Fe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:Qe,handleEndYearVlScroll:ot,virtualListContainer:lt,virtualListContent:Kt,onUpdateStartCalendarValue:We,onUpdateEndCalendarValue:G})}const fQ=J({name:"DateTimeRangePanel",props:y0,setup(e){return x0(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,$slots:s}=this;return l==null||l(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{class:`${r}-date-panel-header`},u(In,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),u(In,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),u(Af,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(s["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(s["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(s["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(s["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>u("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,d)=>{const f=this.mergedIsDateDisabled(c.ts);return u("div",{"data-n-date":!0,key:d,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>this.handleDateClick(c),onMouseenter:f?void 0:()=>this.handleDateMouseEnter(c)},u("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),hQ=J({name:"DatePanel",props:m0,setup(e){return b0(e,"date")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--date`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},u("div",{class:`${r}-date-panel-calendar`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel-dates`},this.dateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)?null:u(Jr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(c)},onClick:()=>{this.handleSingleShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s})})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),vQ=J({name:"DateRangePanel",props:y0,setup(e){return x0(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,$slots:l}=this;return a==null||a(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month`},u("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},vt(l["prev-year"],()=>[u(Oi,null)])),u("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},vt(l["prev-month"],()=>[u(Ti,null)])),u(kl,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),u("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},vt(l["next-month"],()=>[u(Mi,null)])),u("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},vt(l["next-year"],()=>[u(zi,null)]))),u("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(s=>u("div",{key:s,class:`${r}-date-panel-weekdays__day`},s))),u("div",{class:`${r}-date-panel__divider`}),u("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((s,c)=>u("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!s.inCurrentMonth,[`${r}-date-panel-date--current`]:s.isCurrentDate,[`${r}-date-panel-date--selected`]:s.selected,[`${r}-date-panel-date--covered`]:s.inSpan,[`${r}-date-panel-date--start`]:s.startOfSpan,[`${r}-date-panel-date--end`]:s.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(s.ts)}],onClick:()=>this.handleDateClick(s),onMouseenter:()=>this.handleDateMouseEnter(s)},u("div",{class:`${r}-date-panel-date__trigger`}),s.dateObject.date,s.isCurrentDate?u("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(s=>{const c=i[s];return Array.isArray(c)||typeof c=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>s}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Pt,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),pQ=J({name:"MonthRangePanel",props:Object.assign(Object.assign({},y0),{type:{type:String,required:!0}}),setup(e){const t=x0(e,e.type),n=(r,o,i,a)=>{const{handleColItemClick:l}=t,s=!1;return u("div",{"data-n-date":!0,key:o,class:[`${i}-date-panel-month-calendar__picker-col-item`,{[`${i}-date-panel-month-calendar__picker-col-item--current`]:r.isCurrent,[`${i}-date-panel-month-calendar__picker-col-item--selected`]:r.selected,[`${i}-date-panel-month-calendar__picker-col-item--disabled`]:s}],onClick:()=>{l(r,a)}},r.type==="month"?r.dateObject.month+1:r.type==="quarter"?`Q${r.dateObject.quarter}`:r.dateObject.year)};return Mt(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:n})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:s}=this;return s==null||s(),u("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},u("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"startYearVlRef",items:this.startYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"start")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,d)=>l(c,d,r,"start")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),u("div",{class:`${r}-date-panel__vertical-divider`}),u("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},u("div",{class:`${r}-date-panel-month-calendar`},u(rn,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>u(No,{ref:"endYearVlRef",items:this.endYearArray,itemSize:Ia,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:d})=>l(c,d,r,"end")})}),a==="monthrange"||a==="quarterrange"?u("div",{class:`${r}-date-panel-month-calendar__picker-col`},u(rn,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,d)=>l(c,d,r,"end")),a==="monthrange"&&u("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?u("div",{class:`${r}-date-panel-footer`},Jm(this.datePickerSlots,"footer")):null,((e=this.actions)===null||e===void 0?void 0:e.length)||i?u("div",{class:`${r}-date-panel-actions`},u("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const d=i[c];return Array.isArray(d)||typeof d=="function"?u(Jr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(d)},onClick:()=>{this.handleRangeShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),u("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?u(Jr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,u(Po,{onFocus:this.handleFocusDetectorFocus}))}}),gQ=O([S("date-picker",` - position: relative; - z-index: auto; - `,[S("date-picker-icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),S("icon",` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("date-picker-icon",` - color: var(--n-icon-color-disabled-override); - `),S("icon",` - color: var(--n-icon-color-disabled-override); - `)])]),S("date-panel",` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - `,[$n(),F("shadow",` - box-shadow: var(--n-panel-box-shadow); - `),S("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[F("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),S("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[M("picker-col",` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[O("&:first-child",` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M("picker-col-item",[O("&::before","left: 4px;")])]),M("padding",` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M("picker-col-item",` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[O("&::before",` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),pt("disabled",[O("&:hover::before",` - background-color: var(--n-item-color-hover); - `),F("selected",` - color: var(--n-item-color-active); - `,[O("&::before","background-color: var(--n-item-color-hover);")])]),F("disabled",` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[F("selected",[O("&::before",` - background-color: var(--n-item-color-disabled); - `)])])])]),F("date",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),F("daterange",{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("datetime",{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),F("datetimerange",{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),F("month",{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),S("date-panel-footer",{gridArea:"footer"}),S("date-panel-actions",{gridArea:"action"}),S("date-panel-header",{gridArea:"header"}),S("date-panel-header",` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[O(">",[O("*:not(:last-child)",{marginRight:"10px"}),O("*",{flex:1,width:0}),S("time-picker",{zIndex:1})])]),S("date-panel-month",` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M("prev, next, fast-prev, fast-next",` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M("month-year",` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M("text",` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[F("active",` - background-color: var(--n-calendar-title-color-hover); - `),O("&:hover",` - background-color: var(--n-calendar-title-color-hover); - `)])])]),S("date-panel-weekdays",` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M("day",` - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - `)]),S("date-panel-dates",` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[S("date-panel-date",` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M("trigger",` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),pt("disabled",[pt("selected",[O("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),F("current",[M("sup",` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),O("&::after",` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),F("covered, start, end",[pt("excluded",[O("&::before",` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),O("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),O("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),F("selected",{color:"var(--n-item-text-color-active)"},[O("&::after",{backgroundColor:"var(--n-item-color-active)"}),F("start",[O("&::before",{left:"50%"})]),F("end",[O("&::before",{right:"50%"})]),M("sup",{backgroundColor:"var(--n-panel-color)"})]),F("excluded",{color:"var(--n-item-text-color-disabled)"},[F("selected",[O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),F("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[F("covered",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),F("selected",[O("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),O("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),M("vertical-divider",` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),S("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),S("date-panel-actions",` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M("prefix, suffix",` - display: flex; - margin-bottom: -8px; - `),M("suffix",` - align-self: flex-end; - `),M("prefix",` - flex-wrap: wrap; - `),S("button",` - margin-bottom: 8px; - `,[O("&:not(:last-child)",` - margin-right: 8px; - `)])])]),O("[data-n-date].transition-disabled",{transition:"none !important"},[O("&::before, &::after",{transition:"none !important"})])]),_$=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timeFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onChange:[Function,Array]}),mQ=J({name:"DatePicker",props:_$,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=yn("DatePicker"),i=xn(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:s}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:d,mergedBorderedRef:f,namespaceRef:h,inlineThemeDisabled:v}=He(e),p=D(null),b=D(null),m=D(null),g=D(!1),y=xe(e,"show"),C=wt(y,g),x=P(()=>({locale:o.value.locale})),w=P(()=>{const{format:ae}=e;if(ae)return ae;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat}}),k=P(()=>{var ae;return(ae=e.valueFormat)!==null&&ae!==void 0?ae:w.value});function _(ae){if(ae===null)return null;const{value:ze}=k,{value:ie}=x;return Array.isArray(ae)?[lr(ae[0],ze,new Date,ie).getTime(),lr(ae[1],ze,new Date,ie).getTime()]:lr(ae,ze,new Date,ie).getTime()}const{defaultFormattedValue:T,defaultValue:$}=e,R=D((n=T!==void 0?_(T):$)!==null&&n!==void 0?n:null),I=P(()=>{const{formattedValue:ae}=e;return ae!==void 0?_(ae):e.value}),z=wt(I,R),A=D(null);Ft(()=>{A.value=z.value});const L=D(""),j=D(""),E=D(""),U=Se("DatePicker","-date-picker",gQ,mZ,e,d),K=P(()=>{var ae,ze;return((ze=(ae=c==null?void 0:c.value)===null||ae===void 0?void 0:ae.DatePicker)===null||ze===void 0?void 0:ze.timePickerSize)||"small"}),Q=P(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),V=P(()=>{const{placeholder:ae}=e;if(ae===void 0){const{type:ze}=e;switch(ze){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;default:return""}}else return ae}),re=P(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),ee=P(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),ue=P(()=>{const{actions:ae,type:ze,clearable:ie}=e;if(ae===null)return[];if(ae!==void 0)return ae;const Te=ie?["clear"]:[];switch(ze){case"date":return Te.push("now"),Te;case"datetime":return Te.push("now","confirm"),Te;case"daterange":return Te.push("confirm"),Te;case"datetimerange":return Te.push("confirm"),Te;case"month":return Te.push("now","confirm"),Te;case"year":return Te.push("now"),Te;case"quarter":return Te.push("now","confirm"),Te;case"monthrange":case"yearrange":case"quarterrange":return Te.push("confirm"),Te;default:{Yn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function de(ae){if(ae===null)return null;if(Array.isArray(ae)){const{value:ze}=k,{value:ie}=x;return[tn(ae[0],ze,ie),tn(ae[1],ze,x.value)]}else return tn(ae,k.value,x.value)}function Ce(ae){A.value=ae}function we(ae,ze){const{"onUpdate:formattedValue":ie,onUpdateFormattedValue:Te}=e;ie&&he(ie,ae,ze),Te&&he(Te,ae,ze)}function me(ae,ze){const{"onUpdate:value":ie,onUpdateValue:Te,onChange:se}=e,{nTriggerFormChange:$e,nTriggerFormInput:oe}=i,Fe=de(ae);ze.doConfirm&&ke(ae,Fe),Te&&he(Te,ae,Fe),ie&&he(ie,ae,Fe),se&&he(se,ae,Fe),R.value=ae,we(Fe,ae),$e(),oe()}function Oe(){const{onClear:ae}=e;ae==null||ae()}function ke(ae,ze){const{onConfirm:ie}=e;ie&&ie(ae,ze)}function pe(ae){const{onFocus:ze}=e,{nTriggerFormFocus:ie}=i;ze&&he(ze,ae),ie()}function Me(ae){const{onBlur:ze}=e,{nTriggerFormBlur:ie}=i;ze&&he(ze,ae),ie()}function H(ae){const{"onUpdate:show":ze,onUpdateShow:ie}=e;ze&&he(ze,ae),ie&&he(ie,ae),g.value=ae}function W(ae){ae.key==="Escape"&&C.value&&($a(ae),Xe({returnFocus:!0}))}function Y(ae){ae.key==="Escape"&&C.value&&$a(ae)}function ce(){var ae;H(!1),(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function X(){var ae;(ae=m.value)===null||ae===void 0||ae.deactivate(),Oe()}function B(){Xe({returnFocus:!0})}function N(ae){var ze;C.value&&!(!((ze=b.value)===null||ze===void 0)&&ze.contains(ur(ae)))&&Xe({returnFocus:!1})}function te(ae){Xe({returnFocus:!0,disableUpdateOnClose:ae})}function ve(ae,ze){ze?me(ae,{doConfirm:!1}):Ce(ae)}function Z(){const ae=A.value;me(Array.isArray(ae)?[ae[0],ae[1]]:ae,{doConfirm:!0})}function fe(){const{value:ae}=A;Q.value?(Array.isArray(ae)||ae===null)&&ge(ae):Array.isArray(ae)||ne(ae)}function ne(ae){ae===null?L.value="":L.value=tn(ae,w.value,x.value)}function ge(ae){if(ae===null)j.value="",E.value="";else{const ze=x.value;j.value=tn(ae[0],w.value,ze),E.value=tn(ae[1],w.value,ze)}}function Pe(){C.value||je()}function Ae(ae){var ze;!((ze=p.value)===null||ze===void 0)&&ze.$el.contains(ae.relatedTarget)||(Me(ae),fe(),Xe({returnFocus:!1}))}function Ke(){l.value||(fe(),Xe({returnFocus:!1}))}function qe(ae){if(ae===""){me(null,{doConfirm:!1}),A.value=null,L.value="";return}const ze=lr(ae,w.value,new Date,x.value);zr(ze)?(me(tt(ze),{doConfirm:!1}),fe()):L.value=ae}function ct(ae){if(ae[0]===""&&ae[1]===""){me(null,{doConfirm:!1}),A.value=null,j.value="",E.value="";return}const[ze,ie]=ae,Te=lr(ze,w.value,new Date,x.value),se=lr(ie,w.value,new Date,x.value);zr(Te)&&zr(se)?(me([tt(Te),tt(se)],{doConfirm:!1}),fe()):[j.value,E.value]=ae}function dt(ae){l.value||qn(ae,"clear")||C.value||je()}function ut(ae){l.value||pe(ae)}function je(){l.value||C.value||H(!0)}function Xe({returnFocus:ae,disableUpdateOnClose:ze}){var ie;C.value&&(H(!1),e.type!=="date"&&e.updateValueOnClose&&!ze&&Z(),ae&&((ie=m.value)===null||ie===void 0||ie.focus()))}rt(A,()=>{fe()}),fe(),rt(C,ae=>{ae||(A.value=z.value)});const Ve=bZ(e,A),We=yZ(e,A);nt(bh,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:d,mergedThemeRef:U,timePickerSizeRef:K,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:xe(e,"firstDayOfWeek"),isDateDisabledRef:xe(e,"isDateDisabled"),rangesRef:xe(e,"ranges"),timePickerPropsRef:xe(e,"timePickerProps"),closeOnSelectRef:xe(e,"closeOnSelect"),updateValueOnCloseRef:xe(e,"updateValueOnClose")},Ve),We),{datePickerSlots:t}));const G={focus:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=m.value)===null||ae===void 0||ae.blur()}},q=P(()=>{const{common:{cubicBezierEaseInOut:ae},self:{iconColor:ze,iconColorDisabled:ie}}=U.value;return{"--n-bezier":ae,"--n-icon-color-override":ze,"--n-icon-color-disabled-override":ie}}),_e=v?Je("date-picker-trigger",void 0,q,e):void 0,Be=P(()=>{const{type:ae}=e,{common:{cubicBezierEaseInOut:ze},self:{calendarTitleFontSize:ie,calendarDaysFontSize:Te,itemFontSize:se,itemTextColor:$e,itemColorDisabled:oe,itemColorIncluded:Fe,itemColorHover:Ne,itemColorActive:Ze,itemBorderRadius:Ue,itemTextColorDisabled:le,itemTextColorActive:Ie,panelColor:Ge,panelTextColor:gt,arrowColor:be,calendarTitleTextColor:De,panelActionDividerColor:Qe,panelHeaderDividerColor:ot,calendarDaysDividerColor:lt,panelBoxShadow:Kt,panelBorderRadius:Vt,calendarTitleFontWeight:Re,panelExtraFooterPadding:Ye,panelActionPadding:at,itemSize:kt,itemCellWidth:Ut,itemCellHeight:At,scrollItemWidth:Ur,scrollItemHeight:Et,calendarTitlePadding:cn,calendarTitleHeight:$o,calendarDaysHeight:Qo,calendarDaysTextColor:Jo,arrowSize:ei,panelHeaderPadding:Ni,calendarDividerColor:kh,calendarTitleGridTempateColumns:Rh,iconColor:Ph,iconColorDisabled:$h,scrollItemBorderRadius:Th,calendarTitleColorHover:Oh,[ye("calendarLeftPadding",ae)]:zh,[ye("calendarRightPadding",ae)]:Mh}}=U.value;return{"--n-bezier":ze,"--n-panel-border-radius":Vt,"--n-panel-color":Ge,"--n-panel-box-shadow":Kt,"--n-panel-text-color":gt,"--n-panel-header-padding":Ni,"--n-panel-header-divider-color":ot,"--n-calendar-left-padding":zh,"--n-calendar-right-padding":Mh,"--n-calendar-title-color-hover":Oh,"--n-calendar-title-height":$o,"--n-calendar-title-padding":cn,"--n-calendar-title-font-size":ie,"--n-calendar-title-font-weight":Re,"--n-calendar-title-text-color":De,"--n-calendar-title-grid-template-columns":Rh,"--n-calendar-days-height":Qo,"--n-calendar-days-divider-color":lt,"--n-calendar-days-font-size":Te,"--n-calendar-days-text-color":Jo,"--n-calendar-divider-color":kh,"--n-panel-action-padding":at,"--n-panel-extra-footer-padding":Ye,"--n-panel-action-divider-color":Qe,"--n-item-font-size":se,"--n-item-border-radius":Ue,"--n-item-size":kt,"--n-item-cell-width":Ut,"--n-item-cell-height":At,"--n-item-text-color":$e,"--n-item-color-included":Fe,"--n-item-color-disabled":oe,"--n-item-color-hover":Ne,"--n-item-color-active":Ze,"--n-item-text-color-disabled":le,"--n-item-text-color-active":Ie,"--n-scroll-item-width":Ur,"--n-scroll-item-height":Et,"--n-scroll-item-border-radius":Th,"--n-arrow-size":ei,"--n-arrow-color":be,"--n-icon-color":Ph,"--n-icon-color-disabled":$h}}),Ee=v?Je("date-picker",P(()=>e.type),Be,e):void 0;return Object.assign(Object.assign({},G),{mergedStatus:s,mergedClsPrefix:d,mergedBordered:f,namespace:h,uncontrolledValue:R,pendingValue:A,panelInstRef:p,triggerElRef:b,inputInstRef:m,isMounted:An(),displayTime:L,displayStartTime:j,displayEndTime:E,mergedShow:C,adjustedTo:Lt(e),isRange:Q,localizedStartPlaceholder:re,localizedEndPlaceholder:ee,mergedSize:a,mergedDisabled:l,localizedPlacehoder:V,isValueInvalid:Ve.isValueInvalidRef,isStartValueInvalid:We.isStartValueInvalidRef,isEndValueInvalid:We.isEndValueInvalidRef,handleInputKeydown:Y,handleClickOutside:N,handleKeydown:W,handleClear:ce,handlePanelClear:X,handleTriggerClick:dt,handleInputActivate:Pe,handleInputDeactivate:Ke,handleInputFocus:ut,handleInputBlur:Ae,handlePanelTabOut:B,handlePanelClose:te,handleRangeUpdateValue:ct,handleSingleUpdateValue:qe,handlePanelUpdateValue:ve,handlePanelConfirm:Z,mergedTheme:U,actions:ue,triggerCssVars:v?void 0:q,triggerThemeClass:_e==null?void 0:_e.themeClass,triggerOnRender:_e==null?void 0:_e.onRender,cssVars:v?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,onRender:this.onRender},i=()=>{const{type:l}=this;return l==="datetime"?u(uQ,Object.assign({},o),r):l==="daterange"?u(vQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?u(fQ,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?u(S$,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?u(pQ,Object.assign({},o,{type:l})):u(hQ,Object.assign({},o),r)};if(this.panel)return i();t==null||t();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return u("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>this.isRange?u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?vt(r.separator,()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(hW,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>vt(r["date-icon"],()=>[u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>u(sC,null)})])}):u(In,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>u(st,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>vt(r["date-icon"],()=>[u(sC,null)])})})}),u(Sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.placement},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?sn(i(),[[fr,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),bQ={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},yQ=e=>{const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:c,lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v}=e;return Object.assign(Object.assign({},bQ),{lineHeight:d,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:v,titleTextColor:r,thColor:ht(o,t),thColorModal:ht(i,t),thColorPopover:ht(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:ht(o,l),borderColorModal:ht(i,l),borderColorPopover:ht(a,l),borderRadius:s})},xQ={name:"Descriptions",common:et,self:yQ},wQ=xQ,k$="DESCRIPTION_ITEM_FLAG";function CQ(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[k$]:!1}const SQ=O([S("descriptions",{fontSize:"var(--n-font-size)"},[S("descriptions-separator",` - display: inline-block; - margin: 0 8px 0 2px; - `),S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[S("descriptions-table-header",{padding:"var(--n-th-padding)"}),S("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),pt("bordered",[S("descriptions-table-wrapper",[S("descriptions-table",[S("descriptions-table-row",[O("&:last-child",[S("descriptions-table-content",{paddingBottom:0})])])])])]),F("left-label-placement",[S("descriptions-table-content",[O("> *",{verticalAlign:"top"})])]),F("left-label-align",[O("th",{textAlign:"left"})]),F("center-label-align",[O("th",{textAlign:"center"})]),F("right-label-align",[O("th",{textAlign:"right"})]),F("bordered",[S("descriptions-table-wrapper",` - border-radius: var(--n-border-radius); - overflow: hidden; - background: var(--n-merged-td-color); - border: 1px solid var(--n-merged-border-color); - `,[S("descriptions-table",[S("descriptions-table-row",[O("&:not(:last-child)",[S("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),S("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-header",` - font-weight: 400; - background-clip: padding-box; - background-color: var(--n-merged-th-color); - `,[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),S("descriptions-table-content",[O("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),S("descriptions-header",` - font-weight: var(--n-th-font-weight); - font-size: 18px; - transition: color .3s var(--n-bezier); - line-height: var(--n-line-height); - margin-bottom: 16px; - color: var(--n-title-text-color); - `),S("descriptions-table-wrapper",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[S("descriptions-table",` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-sizing: border-box; - `,[S("descriptions-table-row",` - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[S("descriptions-table-header",` - font-weight: var(--n-th-font-weight); - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-th-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),S("descriptions-table-content",` - vertical-align: top; - line-height: var(--n-line-height); - display: table-cell; - box-sizing: border-box; - color: var(--n-td-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("content",` - transition: color .3s var(--n-bezier); - display: inline-block; - color: var(--n-td-text-color); - `)]),M("label",` - font-weight: var(--n-th-font-weight); - transition: color .3s var(--n-bezier); - display: inline-block; - margin-right: 14px; - color: var(--n-th-text-color); - `)])])])]),S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color); - --n-merged-td-color: var(--n-td-color); - --n-merged-border-color: var(--n-border-color); - `),_o(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-modal); - --n-merged-td-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("descriptions-table-wrapper",` - --n-merged-th-color: var(--n-th-color-popover); - --n-merged-td-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),R$=Object.assign(Object.assign({},Se.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelStyle:[Object,String],contentStyle:[Object,String]}),_Q=J({name:"Descriptions",props:R$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Descriptions","-descriptions",SQ,wQ,e,t),o=P(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:s},self:{titleTextColor:c,thColor:d,thColorModal:f,thColorPopover:h,thTextColor:v,thFontWeight:p,tdTextColor:b,tdColor:m,tdColorModal:g,tdColorPopover:y,borderColor:C,borderColorModal:x,borderColorPopover:w,borderRadius:k,lineHeight:_,[ye("fontSize",a)]:T,[ye(l?"thPaddingBordered":"thPadding",a)]:$,[ye(l?"tdPaddingBordered":"tdPadding",a)]:R}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":R,"--n-font-size":T,"--n-bezier":s,"--n-th-font-weight":p,"--n-line-height":_,"--n-th-text-color":v,"--n-td-text-color":b,"--n-th-color":d,"--n-th-color-modal":f,"--n-th-color-popover":h,"--n-td-color":m,"--n-td-color-modal":g,"--n-td-color-popover":y,"--n-border-radius":k,"--n-border-color":C,"--n-border-color-modal":x,"--n-border-color-popover":w}}),i=n?Je("descriptions",P(()=>{let a="";const{size:l,bordered:s}=e;return s&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender,compitableColumn:Ri(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Ir(e()):[];t.length;const{compitableColumn:n,labelPlacement:r,labelAlign:o,size:i,bordered:a,title:l,cssVars:s,mergedClsPrefix:c,separator:d,onRender:f}=this;f==null||f();const h=t.filter(m=>CQ(m)),v={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((m,g,y)=>{const C=g.props||{},x=h.length-1===y,w=["label"in C?C.label:Tx(g,"label")],k=[Tx(g)],_=C.span||1,T=m.span;m.span+=_;const $=C.labelStyle||C["label-style"]||this.labelStyle,R=C.contentStyle||C["content-style"]||this.contentStyle;if(r==="left")a?m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:1,style:$},w),u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2+1:_*2-1,style:R},k)):m.row.push(u("td",{class:`${c}-descriptions-table-content`,colspan:x?(n-T)*2:_*2},u("span",{class:`${c}-descriptions-table-content__label`,style:$},[...w,d&&u("span",{class:`${c}-descriptions-separator`},d)]),u("span",{class:`${c}-descriptions-table-content__content`,style:R},k)));else{const I=x?(n-T)*2:_*2;m.row.push(u("th",{class:`${c}-descriptions-table-header`,colspan:I,style:$},w)),m.secondRow.push(u("td",{class:`${c}-descriptions-table-content`,colspan:I,style:R},k))}return(m.span>=n||x)&&(m.span=0,m.row.length&&(m.rows.push(m.row),m.row=[]),r!=="left"&&m.secondRow.length&&(m.rows.push(m.secondRow),m.secondRow=[])),m},v).rows.map(m=>u("tr",{class:`${c}-descriptions-table-row`},m));return u("div",{style:s,class:[`${c}-descriptions`,this.themeClass,`${c}-descriptions--${r}-label-placement`,`${c}-descriptions--${o}-label-align`,`${c}-descriptions--${i}-size`,a&&`${c}-descriptions--bordered`]},l||this.$slots.header?u("div",{class:`${c}-descriptions-header`},l||nc(this,"header")):null,u("div",{class:`${c}-descriptions-table-wrapper`},u("table",{class:`${c}-descriptions-table`},u("tbody",null,b))))}}),P$={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]},kQ=J({name:"DescriptionsItem",[k$]:!0,props:P$,render(){return null}}),RQ={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},PQ=e=>{const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:c,successColor:d,warningColor:f,errorColor:h,primaryColor:v,dividerColor:p,borderRadius:b,fontWeightStrong:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},RQ),{fontSize:y,lineHeight:g,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:b,iconColor:v,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:f,iconColorError:h,borderRadius:b,titleFontWeight:m})},$Q={name:"Dialog",common:et,peers:{Button:vr},self:PQ},$$=$Q,fc={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},T$=Nn(fc),TQ=O([S("dialog",` - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[M("icon",{color:"var(--n-icon-color)"}),F("bordered",{border:"var(--n-border)"}),F("icon-top",[M("close",{margin:"var(--n-close-margin)"}),M("icon",{margin:"var(--n-icon-margin)"}),M("content",{textAlign:"center"}),M("title",{justifyContent:"center"}),M("action",{justifyContent:"center"})]),F("icon-left",[M("icon",{margin:"var(--n-icon-margin)"}),F("closable",[M("title",` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),M("close",` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),M("content",` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[F("last","margin-bottom: 0;")]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),M("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),M("title",` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S("dialog-icon-container",{display:"flex",justifyContent:"center"})]),_o(S("dialog",` - width: 446px; - max-width: calc(100vw - 32px); - `)),S("dialog",[Ak(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),OQ={default:()=>u(Ii,null),info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null)},w0=J({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},Se.props),fc),setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(e),o=P(()=>{var f,h;const{iconPlacement:v}=e;return v||((h=(f=t==null?void 0:t.value)===null||f===void 0?void 0:f.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function i(f){const{onPositiveClick:h}=e;h&&h(f)}function a(f){const{onNegativeClick:h}=e;h&&h(f)}function l(){const{onClose:f}=e;f&&f()}const s=Se("Dialog","-dialog",TQ,$$,e,n),c=P(()=>{const{type:f}=e,h=o.value,{common:{cubicBezierEaseInOut:v},self:{fontSize:p,lineHeight:b,border:m,titleTextColor:g,textColor:y,color:C,closeBorderRadius:x,closeColorHover:w,closeColorPressed:k,closeIconColor:_,closeIconColorHover:T,closeIconColorPressed:$,closeIconSize:R,borderRadius:I,titleFontWeight:z,titleFontSize:A,padding:L,iconSize:j,actionSpace:E,contentMargin:U,closeSize:K,[h==="top"?"iconMarginIconTop":"iconMargin"]:Q,[h==="top"?"closeMarginIconTop":"closeMargin"]:V,[ye("iconColor",f)]:re}}=s.value;return{"--n-font-size":p,"--n-icon-color":re,"--n-bezier":v,"--n-close-margin":V,"--n-icon-margin":Q,"--n-icon-size":j,"--n-close-size":K,"--n-close-icon-size":R,"--n-close-border-radius":x,"--n-close-color-hover":w,"--n-close-color-pressed":k,"--n-close-icon-color":_,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":$,"--n-color":C,"--n-text-color":y,"--n-border-radius":I,"--n-padding":L,"--n-line-height":b,"--n-border":m,"--n-content-margin":U,"--n-title-font-size":A,"--n-title-font-weight":z,"--n-title-text-color":g,"--n-action-space":E}}),d=r?Je("dialog",P(()=>`${e.type[0]}${o.value[0]}`),c,e):void 0;return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:s,handlePositiveClick:i,handleNegativeClick:a,handleCloseClick:l,cssVars:r?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:s,negativeText:c,positiveText:d,positiveButtonProps:f,negativeButtonProps:h,handlePositiveClick:v,handleNegativeClick:p,mergedTheme:b,loading:m,type:g,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const C=i?u(st,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>Ct(this.$slots.icon,w=>w||(this.icon?jt(this.icon):OQ[this.type]()))}):null,x=Ct(this.$slots.action,w=>w||d||c||s?u("div",{class:`${y}-dialog__action`},w||(s?[jt(s)]:[this.negativeText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,ghost:!0,size:"small",onClick:p},h),{default:()=>jt(this.negativeText)}),this.positiveText&&u(Pt,Object.assign({theme:b.peers.Button,themeOverrides:b.peerOverrides.Button,size:"small",type:g==="default"?"primary":g,disabled:m,loading:m,onClick:v},f),{default:()=>jt(this.positiveText)})])):null);return u("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`],style:r,role:"dialog"},o?u(Go,{clsPrefix:y,class:`${y}-dialog__close`,onClick:this.handleCloseClick}):null,i&&n==="top"?u("div",{class:`${y}-dialog-icon-container`},C):null,u("div",{class:`${y}-dialog__title`},i&&n==="left"?C:null,vt(this.$slots.header,()=>[jt(a)])),u("div",{class:[`${y}-dialog__content`,x?"":`${y}-dialog__content--last`]},vt(this.$slots.default,()=>[jt(l)])),x)}}),O$="n-dialog-provider",z$="n-dialog-api",M$="n-dialog-reactive-list",zQ=e=>{const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}},MQ={name:"Modal",common:et,peers:{Scrollbar:hr,Dialog:$$,Card:vP},self:zQ},IQ=MQ,C0=Object.assign(Object.assign({},a0),fc),FQ=Nn(C0),DQ=J({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean},C0),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=D(null),n=D(null),r=D(e.show),o=D(null),i=D(null);rt(xe(e,"show"),m=>{m&&(r.value=!0)}),iR(P(()=>e.blockScroll&&r.value));const a=Le(Uk);function l(){if(a.transformOriginRef.value==="center")return"";const{value:m}=o,{value:g}=i;if(m===null||g===null)return"";if(n.value){const y=n.value.containerScrollTop;return`${m}px ${g+y}px`}return""}function s(m){if(a.transformOriginRef.value==="center")return;const g=a.getMousePosition();if(!g||!n.value)return;const y=n.value.containerScrollTop,{offsetLeft:C,offsetTop:x}=m;if(g){const w=g.y,k=g.x;o.value=-(C-k),i.value=-(x-w-y)}m.style.transformOrigin=l()}function c(m){_t(()=>{s(m)})}function d(m){m.style.transformOrigin=l(),e.onBeforeLeave()}function f(){r.value=!1,o.value=null,i.value=null,e.onAfterLeave()}function h(){const{onClose:m}=e;m&&m()}function v(){e.onNegativeClick()}function p(){e.onPositiveClick()}const b=D(null);return rt(b,m=>{m&&_t(()=>{const g=m.el;g&&t.value!==g&&(t.value=g)})}),nt(oc,t),nt(ic,null),nt(Ol,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:r,childNodeRef:b,handlePositiveClick:p,handleNegativeClick:v,handleCloseClick:h,handleAfterLeave:f,handleBeforeLeave:d,handleEnter:c}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:r,handleBeforeLeave:o,preset:i,mergedClsPrefix:a}=this;let l=null;if(!i){if(l=Mu(e),!l){Yn("modal","default slot is empty");return}l=nr(l),l.props=Wn({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none",class:`${a}-modal-body-wrapper`},u(rn,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var s;return[(s=this.renderMask)===null||s===void 0?void 0:s.call(this),u(Ob,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var c;return u(It,{name:"fade-in-scale-up-transition",appear:(c=this.appear)!==null&&c!==void 0?c:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:r,onBeforeLeave:o},{default:()=>{const d=[[wr,this.show]],{onClickoutside:f}=this;return f&&d.push([fr,this.onClickoutside,void 0,{capture:!0}]),sn(this.preset==="confirm"||this.preset==="dialog"?u(w0,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},mn(this.$props,T$),{"aria-modal":"true"}),e):this.preset==="card"?u(gP,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},mn(this.$props,LY),{"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,d)}})}})]}})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),AQ=O([S("modal-container",` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S("modal-mask",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[Ho({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),S("modal-body-wrapper",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S("modal-scroll-content",` - min-height: 100%; - display: flex; - position: relative; - `)]),S("modal",` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[$n({duration:".25s",enterScale:".5"})])]),I$=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),C0),{onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),F$=J({name:"Modal",inheritAttrs:!1,props:I$,setup(e){const t=D(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=He(e),i=Se("Modal","-modal",AQ,IQ,e,n),a=jk(64),l=Hk(),s=An(),c=e.internalDialog?Le(O$,null):null,d=aR();function f(w){const{onUpdateShow:k,"onUpdate:show":_,onHide:T}=e;k&&he(k,w),_&&he(_,w),T&&!w&&T(w)}function h(){const{onClose:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function v(){const{onPositiveClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function p(){const{onNegativeClick:w}=e;w?Promise.resolve(w()).then(k=>{k!==!1&&f(!1)}):f(!1)}function b(){const{onBeforeLeave:w,onBeforeHide:k}=e;w&&he(w),k&&k()}function m(){const{onAfterLeave:w,onAfterHide:k}=e;w&&he(w),k&&k()}function g(w){var k;const{onMaskClick:_}=e;_&&_(w),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(ur(w))&&f(!1)}function y(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!d.value&&f(!1)}nt(Uk,{getMousePosition:()=>{if(c){const{clickedRef:w,clickPositionRef:k}=c;if(w.value&&k.value)return k.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:s,appearRef:xe(e,"internalAppear"),transformOriginRef:xe(e,"transformOrigin")});const C=P(()=>{const{common:{cubicBezierEaseOut:w},self:{boxShadow:k,color:_,textColor:T}}=i.value;return{"--n-bezier-ease-out":w,"--n-box-shadow":k,"--n-color":_,"--n-text-color":T}}),x=o?Je("theme-class",void 0,C,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:s,containerRef:t,presetProps:P(()=>mn(e,FQ)),handleEsc:y,handleAfterLeave:m,handleClickoutside:g,handleBeforeLeave:b,doUpdateShow:f,handleNegativeClick:p,handlePositiveClick:v,handleCloseClick:h,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return sn(u("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},u(DQ,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return u(It,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),BQ=Object.assign(Object.assign({},fc),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function}),EQ=J({name:"DialogEnvironment",props:Object.assign(Object.assign({},BQ),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=D(!0);function n(){const{onInternalAfterLeave:d,internalKey:f,onAfterLeave:h}=e;d&&d(f),h&&h()}function r(d){const{onPositiveClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function o(d){const{onNegativeClick:f}=e;f?Promise.resolve(f(d)).then(h=>{h!==!1&&s()}):s()}function i(){const{onClose:d}=e;d?Promise.resolve(d()).then(f=>{f!==!1&&s()}):s()}function a(d){const{onMaskClick:f,maskClosable:h}=e;f&&(f(d),h&&s())}function l(){const{onEsc:d}=e;d&&d()}function s(){t.value=!1}function c(d){t.value=d}return{show:t,hide:s,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,maskClosable:s,show:c}=this;return u(F$,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,maskClosable:s,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>u(w0,Object.assign({},mn(this.$props,T$),{style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),D$={injectionKey:String,to:[String,Object]},A$=J({name:"DialogProvider",props:D$,setup(){const e=D([]),t={};function n(l={}){const s=Cr(),c=Fi(Object.assign(Object.assign({},l),{key:s,destroy:()=>{t[`n-dialog-${s}`].hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>s=>n(Object.assign(Object.assign({},s),{type:l})));function o(l){const{value:s}=e;s.splice(s.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>l.hide())}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return nt(z$,a),nt(O$,{clickedRef:jk(64),clickPositionRef:Hk()}),nt(M$,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return u($t,null,[this.dialogList.map(n=>u(EQ,Aa(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}});function B$(){const e=Le(z$,null);return e===null&&Dn("use-dialog","No outer founded."),e}function LQ(){const e=Le(M$,null);return e===null&&Dn("use-dialog-reactive-list","No outer founded."),e}const NQ=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}},HQ={name:"Divider",common:et,self:NQ},jQ=HQ,VQ=S("divider",` - position: relative; - display: flex; - width: 100%; - box-sizing: border-box; - font-size: 16px; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); -`,[pt("vertical",` - margin-top: 24px; - margin-bottom: 24px; - `,[pt("no-title",` - display: flex; - align-items: center; - `)]),M("title",` - display: flex; - align-items: center; - margin-left: 12px; - margin-right: 12px; - white-space: nowrap; - font-weight: var(--n-font-weight); - `),F("title-position-left",[M("line",[F("left",{width:"28px"})])]),F("title-position-right",[M("line",[F("right",{width:"28px"})])]),F("dashed",[M("line",` - background-color: #0000; - height: 0px; - width: 100%; - border-style: dashed; - border-width: 1px 0 0; - `)]),F("vertical",` - display: inline-block; - height: 1em; - margin: 0 8px; - vertical-align: middle; - width: 1px; - `),M("line",` - border: none; - transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); - height: 1px; - width: 100%; - margin: 0; - `),pt("dashed",[M("line",{backgroundColor:"var(--n-color)"})]),F("dashed",[M("line",{borderColor:"var(--n-color)"})]),F("vertical",{backgroundColor:"var(--n-color)"})]),E$=Object.assign(Object.assign({},Se.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),UQ=J({name:"Divider",props:E$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Divider","-divider",VQ,jQ,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:s,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":s,"--n-font-weight":c}}),i=n?Je("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:u("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?u($t,null,u("div",{class:`${a}-divider__title`},this.$slots),u("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),WQ=e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:c,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,borderRadius:v,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:c,closeBorderRadius:v,resizableTriggerColorHover:p}},KQ={name:"Drawer",common:et,peers:{Scrollbar:hr},self:WQ},qQ=KQ,YQ=J({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=D(!!e.show),n=D(null),r=Le(Pb);let o=0,i="",a=null;const l=D(!1),s=D(!1),c=P(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:d,mergedRtlRef:f}=He(e),h=Zt("Drawer",f,d),v=_=>{s.value=!0,o=c.value?_.clientY:_.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",y),document.body.addEventListener("mouseleave",x),document.body.addEventListener("mouseup",C)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),s.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},b=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:m,doUpdateWidth:g}=r,y=_=>{var T,$;if(s.value)if(c.value){let R=((T=n.value)===null||T===void 0?void 0:T.offsetHeight)||0;const I=o-_.clientY;R+=e.placement==="bottom"?I:-I,m(R),o=_.clientY}else{let R=(($=n.value)===null||$===void 0?void 0:$.offsetWidth)||0;const I=o-_.clientX;R+=e.placement==="right"?I:-I,g(R),o=_.clientX}},C=()=>{s.value&&(o=0,s.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",y),document.body.removeEventListener("mouseup",C),document.body.removeEventListener("mouseleave",x))},x=C;Ft(()=>{e.show&&(t.value=!0)}),rt(()=>e.show,_=>{_||C()}),Dt(()=>{C()});const w=P(()=>{const{show:_}=e,T=[[wr,_]];return e.showMask||T.push([fr,e.onClickoutside,void 0,{capture:!0}]),T});function k(){var _;t.value=!1,(_=e.onAfterLeave)===null||_===void 0||_.call(e)}return iR(P(()=>e.blockScroll&&t.value)),nt(ic,n),nt(Ol,null),nt(oc,null),{bodyRef:n,rtlEnabled:h,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:P(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:k,bodyDirectives:w,handleMousedownResizeTrigger:v,handleMouseenterResizeTrigger:p,handleMouseleaveResizeTrigger:b,isDragging:s,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?sn(u("div",{role:"none"},u(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>u(It,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>sn(u("div",Wn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?u("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?u("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):u(rn,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[wr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:XQ,cubicBezierEaseOut:GQ}=_r;function ZQ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${XQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${GQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:QQ,cubicBezierEaseOut:JQ}=_r;function eJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${QQ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${JQ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:tJ,cubicBezierEaseOut:nJ}=_r;function rJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${tJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${nJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn:oJ,cubicBezierEaseOut:iJ}=_r;function aJ({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[O(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${oJ}`}),O(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${iJ}`}),O(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),O(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),O(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),O(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const lJ=O([S("drawer",` - word-break: break-word; - line-height: var(--n-line-height); - position: absolute; - pointer-events: all; - box-shadow: var(--n-box-shadow); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - background-color: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - `,[ZQ(),eJ(),rJ(),aJ(),F("unselectable",` - user-select: none; - -webkit-user-select: none; - `),F("native-scrollbar",[S("drawer-content-wrapper",` - overflow: auto; - height: 100%; - `)]),M("resize-trigger",` - position: absolute; - background-color: #0000; - transition: background-color .3s var(--n-bezier); - `,[F("hover",` - background-color: var(--n-resize-trigger-color-hover); - `)]),S("drawer-content-wrapper",` - box-sizing: border-box; - `),S("drawer-content",` - height: 100%; - display: flex; - flex-direction: column; - `,[F("native-scrollbar",[S("drawer-body-content-wrapper",` - height: 100%; - overflow: auto; - `)]),S("drawer-body",` - flex: 1 0 0; - overflow: hidden; - `),S("drawer-body-content-wrapper",` - box-sizing: border-box; - padding: var(--n-body-padding); - `),S("drawer-header",` - font-weight: var(--n-title-font-weight); - line-height: 1; - font-size: var(--n-title-font-size); - color: var(--n-title-text-color); - padding: var(--n-header-padding); - transition: border .3s var(--n-bezier); - border-bottom: 1px solid var(--n-divider-color); - border-bottom: var(--n-header-border-bottom); - display: flex; - justify-content: space-between; - align-items: center; - `,[M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),S("drawer-footer",` - display: flex; - justify-content: flex-end; - border-top: var(--n-footer-border-top); - transition: border .3s var(--n-bezier); - padding: var(--n-footer-padding); - `)]),F("right-placement",` - top: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - left: 0; - transform: translateX(-1.5px); - cursor: ew-resize; - `)]),F("left-placement",` - top: 0; - bottom: 0; - left: 0; - `,[M("resize-trigger",` - width: 3px; - height: 100%; - top: 0; - right: 0; - transform: translateX(1.5px); - cursor: ew-resize; - `)]),F("top-placement",` - top: 0; - left: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - bottom: 0; - left: 0; - transform: translateY(1.5px); - cursor: ns-resize; - `)]),F("bottom-placement",` - left: 0; - bottom: 0; - right: 0; - `,[M("resize-trigger",` - width: 100%; - height: 3px; - top: 0; - left: 0; - transform: translateY(-1.5px); - cursor: ns-resize; - `)])]),O("body",[O(">",[S("drawer-container",{position:"fixed"})])]),S("drawer-container",` - position: relative; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - `,[O("> *",{pointerEvents:"all"})]),S("drawer-mask",` - background-color: rgba(0, 0, 0, .3); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `,[F("invisible",` - background-color: rgba(0, 0, 0, 0) - `),Ho({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),L$=Object.assign(Object.assign({},Se.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),sJ=J({name:"Drawer",inheritAttrs:!1,props:L$,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=An(),i=Se("Drawer","-drawer",lJ,qQ,e,t),a=D(e.defaultWidth),l=D(e.defaultHeight),s=wt(xe(e,"width"),a),c=wt(xe(e,"height"),l),d=P(()=>{const{placement:w}=e;return w==="top"||w==="bottom"?"":Ot(s.value)}),f=P(()=>{const{placement:w}=e;return w==="left"||w==="right"?"":Ot(c.value)}),h=w=>{const{onUpdateWidth:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),a.value=w},v=w=>{const{onUpdateHeight:k,"onUpdate:width":_}=e;k&&he(k,w),_&&he(_,w),l.value=w},p=P(()=>[{width:d.value,height:f.value},e.drawerStyle||""]);function b(w){const{onMaskClick:k,maskClosable:_}=e;_&&y(!1),k&&k(w)}const m=aR();function g(w){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Ek(w)&&!m.value&&y(!1)}function y(w){const{onHide:k,onUpdateShow:_,"onUpdate:show":T}=e;_&&he(_,w),T&&he(T,w),k&&!w&&he(k,w)}nt(Pb,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:y,doUpdateHeight:v,doUpdateWidth:h});const C=P(()=>{const{common:{cubicBezierEaseInOut:w,cubicBezierEaseIn:k,cubicBezierEaseOut:_},self:{color:T,textColor:$,boxShadow:R,lineHeight:I,headerPadding:z,footerPadding:A,bodyPadding:L,titleFontSize:j,titleTextColor:E,titleFontWeight:U,headerBorderBottom:K,footerBorderTop:Q,closeIconColor:V,closeIconColorHover:re,closeIconColorPressed:ee,closeColorHover:ue,closeColorPressed:de,closeIconSize:Ce,closeSize:we,closeBorderRadius:me,resizableTriggerColorHover:Oe}}=i.value;return{"--n-line-height":I,"--n-color":T,"--n-text-color":$,"--n-box-shadow":R,"--n-bezier":w,"--n-bezier-out":_,"--n-bezier-in":k,"--n-header-padding":z,"--n-body-padding":L,"--n-footer-padding":A,"--n-title-text-color":E,"--n-title-font-size":j,"--n-title-font-weight":U,"--n-header-border-bottom":K,"--n-footer-border-top":Q,"--n-close-icon-color":V,"--n-close-icon-color-hover":re,"--n-close-icon-color-pressed":ee,"--n-close-size":we,"--n-close-color-hover":ue,"--n-close-color-pressed":de,"--n-close-icon-size":Ce,"--n-close-border-radius":me,"--n-resize-trigger-color-hover":Oe}}),x=r?Je("drawer",void 0,C,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:b,handleEsc:g,mergedTheme:i,cssVars:r?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return u(lc,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?u(It,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?u("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,u(YQ,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[ac,{zIndex:this.zIndex,enabled:this.show}]])}})}}),N$={title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},cJ=J({name:"DrawerContent",props:N$,setup(){const e=Le(Pb,null);e||Dn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:l,scrollbarProps:s,closable:c,$slots:d}=this;return u("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?u("div",{class:`${t}-drawer-header`,style:a,role:"none"},u("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},d.header!==void 0?d.header():e),c&&u(Go,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?u("div",{class:`${t}-drawer-body`,style:o,role:"none"},u("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},d)):u(rn,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},s,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?u("div",{class:`${t}-drawer-footer`,style:l,role:"none"},d.footer()):null)}}),dJ={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},uJ=()=>dJ,fJ={name:"DynamicInput",common:et,peers:{Input:kr,Button:vr},self:uJ},hJ=fJ,S0="n-dynamic-input",vJ=J({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Le(S0);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o}=this;return u("div",{class:`${r}-dynamic-input-preset-input`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o}))}}),pJ=J({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Le(S0);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o}=this;return u("div",{class:`${o}-dynamic-input-preset-pair`},u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput}),u(In,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput}))}}),gJ=S("dynamic-input",{width:"100%"},[S("dynamic-input-item",` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[S("dynamic-input-preset-input",{flex:1,alignItems:"center"}),S("dynamic-input-preset-pair",` - flex: 1; - display: flex; - align-items: center; - `,[S("dynamic-input-pair-input",[O("&:first-child",{"margin-right":"12px"})])]),M("action",` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[F("icon",{cursor:"pointer"})]),O("&:last-child",{marginBottom:0})]),S("form-item",` - padding-top: 0 !important; - margin-right: 0 !important; - `,[S("form-item-blank",{paddingTop:"0 !important"})])]),sd=new WeakMap,H$=Object.assign(Object.assign({},Se.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),mJ=J({name:"DynamicInput",props:H$,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=He(),a=Le(Fu,null),l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=Se("DynamicInput","-dynamic-input",gJ,hJ,e,r),f=P(()=>{const{value:$}=c;if(Array.isArray($)){const{max:R}=e;return R!==void 0&&$.length>=R}return!1}),h=P(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),v=P(()=>{var $,R;return(R=($=n==null?void 0:n.value)===null||$===void 0?void 0:$.DynamicInput)===null||R===void 0?void 0:R.buttonSize});function p($){const{onInput:R,"onUpdate:value":I,onUpdateValue:z}=e;R&&he(R,$),I&&he(I,$),z&&he(z,$),l.value=$}function b($,R){if($==null||typeof $!="object")return R;const I=va($)?zt($):$;let z=sd.get(I);return z===void 0&&sd.set(I,z=Cr()),z}function m($,R){const{value:I}=c,z=Array.from(I!=null?I:[]),A=z[$];if(z[$]=R,A&&R&&typeof A=="object"&&typeof R=="object"){const L=va(A)?zt(A):A,j=va(R)?zt(R):R,E=sd.get(L);E!==void 0&&sd.set(j,E)}p(z)}function g(){y(0)}function y($){const{value:R}=c,{onCreate:I}=e,z=Array.from(R!=null?R:[]);if(I)z.splice($+1,0,I($+1)),p(z);else if(t.default)z.splice($+1,0,null),p(z);else switch(e.preset){case"input":z.splice($+1,0,""),p(z);break;case"pair":z.splice($+1,0,{key:"",value:""}),p(z);break}}function C($){const{value:R}=c;if(!Array.isArray(R))return;const{min:I}=e;if(R.length<=I)return;const z=Array.from(R);z.splice($,1),p(z);const{onRemove:A}=e;A&&A($)}function x($,R,I){if(R<0||I<0||R>=$.length||I>=$.length||R===I)return;const z=$[R];$[R]=$[I],$[I]=z}function w($,R){const{value:I}=c;if(!Array.isArray(I))return;const z=Array.from(I);$==="up"&&x(z,R,R-1),$==="down"&&x(z,R,R+1),p(z)}nt(S0,{mergedThemeRef:d,keyPlaceholderRef:xe(e,"keyPlaceholder"),valuePlaceholderRef:xe(e,"valuePlaceholder"),placeholderRef:xe(e,"placeholder")});const k=Zt("DynamicInput",o,r),_=P(()=>{const{self:{actionMargin:$,actionMarginRtl:R}}=d.value;return{"--action-margin":$,"--action-margin-rtl":R}}),T=i?Je("dynamic-input",void 0,_,e):void 0;return{locale:yn("DynamicInput").localeRef,rtlEnabled:k,buttonSize:v,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:h,handleCreateClick:g,ensureKey:b,handleValueChange:m,remove:C,move:w,createItem:y,mergedTheme:d,cssVars:i?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{$slots:e,buttonSize:t,mergedClsPrefix:n,mergedValue:r,locale:o,mergedTheme:i,keyField:a,itemStyle:l,preset:s,showSortButton:c,NFormItem:d,ensureKey:f,handleValueChange:h,remove:v,createItem:p,move:b,onRender:m}=this;return m==null||m(),u("div",{class:[`${n}-dynamic-input`,this.rtlEnabled&&`${n}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(r)||r.length===0?u(Pt,Object.assign({block:!0,ghost:!0,dashed:!0,size:t},this.createButtonProps,{disabled:this.insertionDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>vt(e["create-button-default"],()=>[o.create]),icon:()=>vt(e["create-button-icon"],()=>[u(st,{clsPrefix:n},{default:()=>u(_l,null)})])}):r.map((g,y)=>u("div",{key:a?g[a]:f(g,y),"data-key":a?g[a]:f(g,y),class:`${n}-dynamic-input-item`,style:l},Ra(e.default,{value:r[y],index:y},()=>[s==="input"?u(vJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):s==="pair"?u(pJ,{clsPrefix:n,value:r[y],parentPath:d?d.path.value:void 0,path:d!=null&&d.path.value?`${d.path.value}[${y}]`:void 0,onUpdateValue:C=>h(y,C)}):null]),u("div",{class:`${n}-dynamic-input-item__action`},u(o0,{size:t},{default:()=>[u(Pt,{disabled:this.removeDisabled,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,circle:!0,onClick:()=>v(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(b2,null)})}),u(Pt,{disabled:this.insertionDisabled,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>p(y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}),c?u(Pt,{disabled:y===0,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("up",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(tW,null)})}):null,c?u(Pt,{disabled:y===r.length-1,circle:!0,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:()=>b("down",y)},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(p2,null)})}):null]})))))}}),bJ={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},yJ=()=>bJ,xJ={name:"Space",self:yJ},j$=xJ;let Bv;const wJ=()=>{if(!rr)return!0;if(Bv===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Bv=t}return Bv},V$=Object.assign(Object.assign({},Se.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),U$=J({name:"Space",props:V$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e),r=Se("Space","-space",void 0,j$,e,t),o=Zt("Space",n,t);return{useGap:wJ(),rtlEnabled:o,mergedClsPrefix:t,margin:P(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ye("gap",i)]:a}}=r.value,{row:l,col:s}=tD(a);return{horizontal:dn(s),vertical:dn(l)}})}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:s,useGap:c,wrapItem:d,internalUseGap:f}=this,h=Ir(nc(this));if(!h.length)return null;const v=`${i.horizontal}px`,p=`${i.horizontal/2}px`,b=`${i.vertical}px`,m=`${i.vertical/2}px`,g=h.length-1,y=r.startsWith("space-");return u("div",{role:"none",class:[`${l}-space`,s&&`${l}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${m}`,marginBottom:c||e?"":`-${m}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},!d&&(c||f)?h:h.map((C,x)=>u("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:x!==g?b:""}:s?{marginLeft:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginRight:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}:{marginRight:y?r==="space-between"&&x===g?"":p:x!==g?v:"",marginLeft:y?r==="space-between"&&x===0?"":p:"",paddingTop:m,paddingBottom:m}]},C)))}}),CJ={name:"DynamicTags",common:et,peers:{Input:kr,Button:vr,Tag:M2,Space:j$},self(){return{inputWidth:"64px"}}},SJ=CJ,_J=S("dynamic-tags",[S("input",{minWidth:"var(--n-input-width)"})]),W$=Object.assign(Object.assign(Object.assign({},Se.props),I2),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputStyle:[String,Object],inputProps:Object,max:Number,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),kJ=J({name:"DynamicTags",props:W$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),{localeRef:r}=yn("DynamicTags"),o=xn(e),{mergedDisabledRef:i}=o,a=D(""),l=D(!1),s=D(!0),c=D(null),d=Se("DynamicTags","-dynamic-tags",_J,SJ,e,t),f=D(e.defaultValue),h=xe(e,"value"),v=wt(h,f),p=P(()=>r.value.add),b=P(()=>mp(e.size)),m=P(()=>i.value||!!e.max&&v.value.length>=e.max);function g($){const{onChange:R,"onUpdate:value":I,onUpdateValue:z}=e,{nTriggerFormInput:A,nTriggerFormChange:L}=o;R&&he(R,$),z&&he(z,$),I&&he(I,$),f.value=$,A(),L()}function y($){const R=v.value.slice(0);R.splice($,1),g(R)}function C($){switch($.key){case"Enter":x()}}function x($){const R=$!=null?$:a.value;if(R){const I=v.value.slice(0);I.push(e.onCreate(R)),g(I)}l.value=!1,s.value=!0,a.value=""}function w(){x()}function k(){l.value=!0,_t(()=>{var $;($=c.value)===null||$===void 0||$.focus(),s.value=!1})}const _=P(()=>{const{self:{inputWidth:$}}=d.value;return{"--n-input-width":$}}),T=n?Je("dynamic-tags",void 0,_,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:p,inputSize:b,inputValue:a,showInput:l,inputForceFocused:s,mergedValue:v,mergedDisabled:i,triggerDisabled:m,handleInputKeyUp:C,handleAddClick:k,handleInputBlur:w,handleCloseClick:y,handleInputConfirm:x,mergedTheme:d,cssVars:n?void 0:_,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r==null||r(),u(U$,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagStyle:a,type:l,round:s,size:c,color:d,closable:f,mergedDisabled:h,showInput:v,inputValue:p,inputStyle:b,inputSize:m,inputForceFocused:g,triggerDisabled:y,handleInputKeyUp:C,handleInputBlur:x,handleAddClick:w,handleCloseClick:k,handleInputConfirm:_,$slots:T}=this;return this.mergedValue.map(($,R)=>o?o($,R):u(ws,{key:R,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,style:a,type:l,round:s,size:c,color:d,closable:f,disabled:h,onClose:()=>k(R)},{default:()=>typeof $=="string"?$:$.label})).concat(v?T.input?T.input({submit:_,deactivate:x}):u(In,Object.assign({placeholder:"",size:m,style:b,autosize:!0},this.inputProps,{ref:"inputInstRef",value:p,onUpdateValue:$=>{this.inputValue=$},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeyup:C,onBlur:x,internalForceFocus:g})):T.trigger?T.trigger({activate:w,disabled:y}):u(Pt,{dashed:!0,disabled:y,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:m,onClick:w},{icon:()=>u(st,{clsPrefix:n},{default:()=>u(_l,null)})}))}})}}),RJ={name:"Element",common:et},PJ=RJ,K$=Object.assign(Object.assign({},Se.props),{tag:{type:String,default:"div"}}),XC=J({name:"Element",alias:["El"],props:K$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Element","-element",void 0,PJ,e,t),o=P(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,s)=>(l[`--${XR(s)}`]=a[s],l),{})}),i=n?Je("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i==null||i(),u(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),$J={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},TJ=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},$J),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})},OJ={name:"Form",common:et,self:TJ},q$=OJ,zJ=S("form",[F("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[S("form-item",{width:"auto",marginRight:"18px"},[O("&:last-child",{marginRight:0})])])]),hc="n-form",Y$="n-form-item-insts";var MJ=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const X$=Object.assign(Object.assign({},Se.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>e.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),IJ=J({name:"Form",props:X$,setup(e){const{mergedClsPrefixRef:t}=He(e);Se("Form","-form",zJ,q$,e,t);const n={},r=D(void 0),o=s=>{const c=r.value;(c===void 0||s>=c)&&(r.value=s)};function i(s,c=()=>!0){return MJ(this,void 0,void 0,function*(){return yield new Promise((d,f)=>{const h=[];for(const v of Nn(n)){const p=n[v];for(const b of p)b.path&&h.push(b.internalValidate(null,c))}Promise.all(h).then(v=>{if(v.some(p=>!p.valid)){const p=v.filter(b=>b.errors).map(b=>b.errors);s&&s(p),f(p)}else s&&s(),d()})})})}function a(){for(const s of Nn(n)){const c=n[s];for(const d of c)d.restoreValidation()}}return nt(hc,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),nt(Y$,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return u("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vu(e,t,n){return DJ()?vu=Reflect.construct.bind():vu=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&qs(c,a.prototype),c},vu.apply(null,arguments)}function AJ(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Rm(e){var t=typeof Map=="function"?new Map:void 0;return Rm=function(r){if(r===null||!AJ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return vu(r,arguments,km(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),qs(o,r)},Rm(e)}var BJ=/%[sdj%]/g,EJ=function(){};typeof process<"u"&&process.env;function Pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function LJ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||LJ(t)&&typeof e=="string"&&!e)}function NJ(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},is={integer:function(t){return is.number(t)&&parseInt(t,10)===t},float:function(t){return is.number(t)&&!is.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(KJ())},hex:function(t){return typeof t=="string"&&!!t.match(eS.hex)}},qJ=function(t,n,r,o,i){if(t.required&&n===void 0){G$(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?is[l](n)||o.push(mr(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(mr(i.messages.types[l],t.fullField,t.type))},YJ=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(h?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(mr(i.messages[f].len,t.fullField,t.len)):l&&!s&&dt.max?o.push(mr(i.messages[f].max,t.fullField,t.max)):l&&s&&(dt.max)&&o.push(mr(i.messages[f].range,t.fullField,t.min,t.max))},il="enum",XJ=function(t,n,r,o,i){t[il]=Array.isArray(t[il])?t[il]:[],t[il].indexOf(n)===-1&&o.push(mr(i.messages[il],t.fullField,t[il].join(", ")))},GJ=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(mr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bt={required:G$,whitespace:WJ,type:qJ,range:YJ,enum:XJ,pattern:GJ},ZJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i,"string"),Fn(n,"string")||(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i),Bt.pattern(t,n,o,a,i),t.whitespace===!0&&Bt.whitespace(t,n,o,a,i))}r(a)},QJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},JJ=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},eee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},tee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n)||Bt.type(t,n,o,a,i)}r(a)},nee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},ree=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},oee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Bt.required(t,n,o,a,i,"array"),n!=null&&(Bt.type(t,n,o,a,i),Bt.range(t,n,o,a,i))}r(a)},iee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt.type(t,n,o,a,i)}r(a)},aee="enum",lee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i),n!==void 0&&Bt[aee](t,n,o,a,i)}r(a)},see=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();Bt.required(t,n,o,a,i),Fn(n,"string")||Bt.pattern(t,n,o,a,i)}r(a)},cee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(Bt.required(t,n,o,a,i),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),Bt.type(t,s,o,a,i),s&&Bt.range(t,s.getTime(),o,a,i)}}r(a)},dee=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Bt.required(t,n,o,a,i,l),r(a)},Ev=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,a)&&!t.required)return r();Bt.required(t,n,o,l,i,a),Fn(n,a)||Bt.type(t,n,o,l,i)}r(l)},uee=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();Bt.required(t,n,o,a,i)}r(a)},Cs={string:ZJ,method:QJ,number:JJ,boolean:eee,regexp:tee,integer:nee,float:ree,array:oee,object:iee,enum:lee,pattern:see,date:cee,url:Ev,hex:Ev,email:Ev,required:dee,any:uee};function $m(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Tm=$m(),vc=function(){function e(n){this.rules=null,this._messages=Tm,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=JC($m(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function d(b){var m=[],g={};function y(x){if(Array.isArray(x)){var w;m=(w=m).concat.apply(w,x)}else m.push(x)}for(var C=0;Ce.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function hee(e){const t=Le(hc,null),n=P(()=>{const{labelPlacement:v}=e;return v!==void 0?v:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),r=P(()=>n.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=P(()=>{if(n.value==="top")return;const{labelWidth:v}=e;if(v!==void 0&&v!=="auto")return Ot(v);if(r.value){const p=t==null?void 0:t.maxChildLabelWidthRef.value;return p!==void 0?Ot(p):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ot(t.props.labelWidth)}),i=P(()=>{const{labelAlign:v}=e;if(v)return v;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=P(()=>{var v;return[(v=e.labelProps)===null||v===void 0?void 0:v.style,e.labelStyle,{width:o.value}]}),l=P(()=>{const{showRequireMark:v}=e;return v!==void 0?v:t==null?void 0:t.props.showRequireMark}),s=P(()=>{const{requireMarkPlacement:v}=e;return v!==void 0?v:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=D(!1),d=P(()=>{const{validationStatus:v}=e;if(v!==void 0)return v;if(c.value)return"error"}),f=P(()=>{const{showFeedback:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),h=P(()=>{const{showLabel:v}=e;return v!==void 0?v:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:s,mergedValidationStatus:d,mergedShowFeedback:f,mergedShowLabel:h,isAutoLabelWidth:r}}function vee(e){const t=Le(hc,null),n=P(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=P(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:s}=t.props,{value:c}=n;if(s!==void 0&&c!==void 0){const d=js(s,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=P(()=>r.value.some(a=>a.required)),i=P(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}const{cubicBezierEaseInOut:tS}=_r;function pee({name:e="fade-down",fromOffset:t="-4px",enterDuration:n=".3s",leaveDuration:r=".3s",enterCubicBezier:o=tS,leaveCubicBezier:i=tS}={}){return[O(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),O(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),O(`&.${e}-transition-leave-active`,{transition:`opacity ${r} ${i}, transform ${r} ${i}`}),O(`&.${e}-transition-enter-active`,{transition:`opacity ${n} ${o}, transform ${n} ${o}`})]}const gee=S("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[S("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[M("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),M("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),S("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),F("auto-label-width",[S("form-item-label","white-space: nowrap;")]),F("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: start; - `,[S("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[F("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),F("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),F("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),F("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),M("text",` - grid-area: text; - `),M("asterisk",` - grid-area: mark; - align-self: end; - `)])]),F("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[F("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),S("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),S("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),S("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[O("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),S("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[F("warning",{color:"var(--n-feedback-text-color-warning)"}),F("error",{color:"var(--n-feedback-text-color-error)"}),pee({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var nS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pc=Object.assign(Object.assign({},Se.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object}),Z$=Nn(pc);function rS(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||(r==null?void 0:r.then)?r:(r===void 0||Yn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(r){Yn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const _0=J({name:"FormItem",props:pc,setup(e){BD(Y$,"formItems",xe(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Le(hc,null),o=fee(e),i=hee(e),{validationErrored:a}=i,{mergedRequired:l,mergedRules:s}=vee(e),{mergedSize:c}=o,{mergedLabelPlacement:d,mergedLabelAlign:f,mergedRequireMarkPlacement:h}=i,v=D([]),p=D(Cr()),b=r?xe(r.props,"disabled"):D(!1),m=Se("Form","-form-item",gee,q$,e,t);rt(xe(e,"path"),()=>{e.ignorePathChange||g()});function g(){v.value=[],a.value=!1,e.feedback&&(p.value=Cr())}function y(){_("blur")}function C(){_("change")}function x(){_("focus")}function w(){_("input")}function k(A,L){return nS(this,void 0,void 0,function*(){let j,E,U,K;return typeof A=="string"?(j=A,E=L):A!==null&&typeof A=="object"&&(j=A.trigger,E=A.callback,U=A.shouldRuleBeApplied,K=A.options),yield new Promise((Q,V)=>{_(j,U,K).then(({valid:re,errors:ee})=>{re?(E&&E(),Q()):(E&&E(ee),V(ee))})})})}const _=(A=null,L=()=>!0,j={suppressWarning:!0})=>nS(this,void 0,void 0,function*(){const{path:E}=e;j?j.first||(j.first=e.first):j={};const{value:U}=s,K=r?js(r.props.model,E||""):void 0,Q={},V={},re=(A?U.filter(Ce=>Array.isArray(Ce.trigger)?Ce.trigger.includes(A):Ce.trigger===A):U).filter(L).map((Ce,we)=>{const me=Object.assign({},Ce);if(me.validator&&(me.validator=rS(me.validator,!1)),me.asyncValidator&&(me.asyncValidator=rS(me.asyncValidator,!0)),me.renderMessage){const Oe=`__renderMessage__${we}`;V[Oe]=me.message,me.message=Oe,Q[Oe]=me.renderMessage}return me});if(!re.length)return{valid:!0};const ee=E!=null?E:"__n_no_path__",ue=new vc({[ee]:re}),{validateMessages:de}=(r==null?void 0:r.props)||{};return de&&ue.messages(de),yield new Promise(Ce=>{ue.validate({[ee]:K},j,we=>{we!=null&&we.length?(v.value=we.map(me=>{const Oe=(me==null?void 0:me.message)||"";return{key:Oe,render:()=>Oe.startsWith("__renderMessage__")?Q[Oe]():Oe}}),we.forEach(me=>{var Oe;!((Oe=me.message)===null||Oe===void 0)&&Oe.startsWith("__renderMessage__")&&(me.message=V[me.message])}),a.value=!0,Ce({valid:!1,errors:we})):(g(),Ce({valid:!0}))})})});nt(Fu,{path:xe(e,"path"),disabled:b,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:g,handleContentBlur:y,handleContentChange:C,handleContentFocus:x,handleContentInput:w});const T={validate:k,restoreValidation:g,internalValidate:_},$=D(null);Mt(()=>{if(!i.isAutoLabelWidth.value)return;const A=$.value;if(A!==null){const L=A.style.whiteSpace;A.style.whiteSpace="nowrap",A.style.width="",r==null||r.deriveMaxChildLabelWidth(Number(getComputedStyle(A).width.slice(0,-2))),A.style.whiteSpace=L}});const R=P(()=>{var A;const{value:L}=c,{value:j}=d,E=j==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:U},self:{labelTextColor:K,asteriskColor:Q,lineHeight:V,feedbackTextColor:re,feedbackTextColorWarning:ee,feedbackTextColorError:ue,feedbackPadding:de,labelFontWeight:Ce,[ye("labelHeight",L)]:we,[ye("blankHeight",L)]:me,[ye("feedbackFontSize",L)]:Oe,[ye("feedbackHeight",L)]:ke,[ye("labelPadding",E)]:pe,[ye("labelTextAlign",E)]:Me,[ye(ye("labelFontSize",j),L)]:H}}=m.value;let W=(A=f.value)!==null&&A!==void 0?A:Me;return j==="top"&&(W=W==="right"?"flex-end":"flex-start"),{"--n-bezier":U,"--n-line-height":V,"--n-blank-height":me,"--n-label-font-size":H,"--n-label-text-align":W,"--n-label-height":we,"--n-label-padding":pe,"--n-label-font-weight":Ce,"--n-asterisk-color":Q,"--n-label-text-color":K,"--n-feedback-padding":de,"--n-feedback-font-size":Oe,"--n-feedback-height":ke,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":ee,"--n-feedback-text-color-error":ue}}),I=n?Je("form-item",P(()=>{var A;return`${c.value[0]}${d.value[0]}${((A=f.value)===null||A===void 0?void 0:A[0])||""}`}),R,e):void 0,z=P(()=>d.value==="left"&&h.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:$,mergedClsPrefix:t,mergedRequired:l,feedbackId:p,renderExplains:v,reverseColSpace:z},i),o),T),{cssVars:n?void 0:R,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i==null||i();const l=()=>{const s=this.$slots.label?this.$slots.label():this.label;if(!s)return null;const c=u("span",{class:`${t}-form-item-label__text`},s),d=a?u("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?"\xA0*":"*\xA0"):o==="right-hanging"&&u("span",{class:`${t}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:f}=this;return u("label",Object.assign({},f,{class:[f==null?void 0:f.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[d,c]:[c,d])};return u("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),u("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?u("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},u(It,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:s}=this;return Ct(e.feedback,c=>{var d;const{feedback:f}=this,h=c||f?u("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:v,render:p})=>u("div",{key:v,class:`${t}-form-item-feedback__line`},p())):null;return h?s==="warning"?u("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},h):s==="error"?u("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},h):s==="success"?u("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},h):u("div",{key:"controlled-default",class:`${t}-form-item-feedback`},h):null})}})):null)}}),oS=1,Q$="n-grid",J$=1,Ys={span:{type:[Number,String],default:J$},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},mee=Nn(Ys),Om=J({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ys,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Le(Q$),i=Ko();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:P(()=>gn(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=J$,privateShow:l=!0,privateColStart:s=void 0,privateOffset:c=0}=i.vnode.props,{value:d}=t,f=gn(d||0);return{display:l?"":"none",gridColumn:`${s!=null?s:`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return u("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return u("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),zm=Object.assign(Object.assign({},Ys),pc),iS=J({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:zm,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(Om,mn(this.$.vnode.props||{},mee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),bee=Array.apply(null,{length:24}).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[F(`${n}-span`,{width:r}),F(`${n}-offset`,{marginLeft:r}),F(`${n}-push`,{left:r}),F(`${n}-pull`,{right:r})]}),yee=O([S("row",{width:"100%",display:"flex",flexWrap:"wrap"}),S("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[M("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),bee])]),eT="n-row",xh={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},xee=Nn(xh),tT=J({name:"Row",props:xh,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=He(e);Vr("-legacy-grid",yee,t);const r=Zt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return nt(eT,{mergedClsPrefixRef:t,gutterRef:xe(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Ot(o.value,{c:.5})} -${Ot(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Ot(i.value)})`)}},render(){return u("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),wh={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},wee=Nn(wh),nT=J({name:"Col",props:wh,setup(e){const t=Le(eT,null);return t||Dn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:P(()=>`${Ot(t.verticalGutterRef.value,{c:.5})} ${Ot(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:P(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return u("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?u("div",null,e):e)}}),k0=Object.assign(Object.assign({},wh),pc),Cee=Nn(k0),rT=J({name:"FormItemCol",props:k0,setup(){const e=D(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(nT,mn(this.$props,wee),{default:()=>{const e=mn(this.$props,Z$);return u(_0,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),See=Object.assign(Object.assign({},xh),k0),_ee=J({name:"FormItemRow",props:See,setup(){const e=D(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;if(r)return r.restoreValidation()}}},render(){return u(tT,mn(this.$props,xee),{default:()=>{const e=mn(this.$props,Cee);return u(rT,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),kee=J({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Le(Er,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Wo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:s,fontFamily:c,bodyColor:d,cubicBezierEaseInOut:f,lineHeight:h}=e?cl({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||et,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):et;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=d,n.color=l,n.fontSize=s,n.fontFamily=c,n.lineHeight=h;const v=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=v},0):n.transition=v,t.setAttribute("n-styled",""),r=!0,o=!1}})}),Qs(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),Ree=e=>{const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:ft(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:ft(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:ft(r,{alpha:.6}),colorEndWarning:r,colorStartError:ft(o,{alpha:.6}),colorEndError:o,colorStartSuccess:ft(n,{alpha:.6}),colorEndSuccess:n}},Pee={name:"GradientText",common:et,self:Ree},$ee=Pee,Tee=S("gradient-text",` - display: inline-block; - font-weight: var(--n-font-weight); - -webkit-background-clip: text; - background-clip: text; - color: #0000; - white-space: nowrap; - background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier); -`),oT=Object.assign(Object.assign({},Se.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),Oee=J({name:"GradientText",props:oT,setup(e){$b();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=P(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=P(()=>{let c=e.size||e.fontSize;return c&&(c=Ot(c)),c||void 0}),i=P(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const d=c.deg||0,f=c.from,h=c.to;return`linear-gradient(${d}deg, ${f} 0%, ${h} 100%)`}}),a=Se("GradientText","-gradient-text",Tee,$ee,e,t),l=P(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:d},self:{rotate:f,[ye("colorStart",c)]:h,[ye("colorEnd",c)]:v,fontWeight:p}}=a.value;return{"--n-bezier":d,"--n-rotate":f,"--n-color-start":h,"--n-color-end":v,"--n-font-weight":p}}),s=n?Je("gradient-text",P(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),u("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),zee={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},iT=24,Lv="__ssr__",aT={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:iT},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Mee=J({name:"Grid",inheritAttrs:!1,props:aT,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=He(e),r=/^\d+$/,o=D(void 0),i=QD((n==null?void 0:n.value)||zee),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=P(()=>{if(!!a.value)return e.responsive==="self"?o.value:i.value}),s=it(()=>{var g;return(g=Number(Vl(e.cols.toString(),l.value)))!==null&&g!==void 0?g:iT}),c=it(()=>Vl(e.xGap.toString(),l.value)),d=it(()=>Vl(e.yGap.toString(),l.value)),f=g=>{o.value=g.contentRect.width},h=g=>{ka(f,g)},v=D(!1),p=P(()=>{if(e.responsive==="self")return h}),b=D(!1),m=D();return Mt(()=>{const{value:g}=m;g&&g.hasAttribute(Lv)&&(g.removeAttribute(Lv),b.value=!0)}),nt(Q$,{layoutShiftDisabledRef:xe(e,"layoutShiftDisabled"),isSsrRef:b,itemStyleRef:xe(e,"itemStyle"),xGapRef:c,overflowRef:v}),{isSsr:!rr,contentEl:m,mergedClsPrefix:t,style:P(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:gn(e.xGap),rowGap:gn(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${s.value}, minmax(0, 1fr))`,columnGap:gn(c.value),rowGap:gn(d.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:s,handleResize:p,overflow:v}},render(){if(this.layoutShiftDisabled)return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const s=Ir(nc(this)),c=[],{collapsed:d,collapsedRows:f,responsiveCols:h,responsiveQuery:v}=this;s.forEach(y=>{var C,x,w,k;if(((C=y==null?void 0:y.type)===null||C===void 0?void 0:C.__GRID_ITEM__)!==!0)return;if(hD(y)){const $=nr(y);$.props?$.props.privateShow=!1:$.props={privateShow:!1},c.push({child:$,rawChildSpan:0});return}y.dirs=((x=y.dirs)===null||x===void 0?void 0:x.filter(({dir:$})=>$!==wr))||null;const _=nr(y),T=Number((k=Vl((w=_.props)===null||w===void 0?void 0:w.span,v))!==null&&k!==void 0?k:oS);T!==0&&c.push({child:_,rawChildSpan:T})});let p=0;const b=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(b!=null&&b.props){const y=(n=b.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(p=(o=(r=b.props)===null||r===void 0?void 0:r.span)!==null&&o!==void 0?o:oS,b.props.privateSpan=p,b.props.privateColStart=h+1-p,b.props.privateShow=(i=b.props.privateShow)!==null&&i!==void 0?i:!0)}let m=0,g=!1;for(const{child:y,rawChildSpan:C}of c){if(g&&(this.overflow=!0),!g){const x=Number((l=Vl((a=y.props)===null||a===void 0?void 0:a.offset,v))!==null&&l!==void 0?l:0),w=Math.min(C+x,h);if(y.props?(y.props.privateSpan=w,y.props.privateOffset=x):y.props={privateSpan:w,privateOffset:x},d){const k=m%h;w+k>h&&(m+=h-k),w+m+p>f*h?g=!0:m+=w}}g&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return u("div",Wn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Lv]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?u(Dr,{onResize:this.handleResize},{default:e}):e()}}),Iee=e=>{const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}},Fee={name:"IconWrapper",common:et,self:Iee},Dee=Fee,Aee=S("icon-wrapper",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-icon-color); -`),lT=Object.assign(Object.assign({},Se.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),Bee=J({name:"IconWrapper",props:lT,setup(e,{slots:t}){const n=Se("IconWrapper","-icon-wrapper",Aee,Dee,e),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=P(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:s,iconColor:c}}=n.value;return{"--n-bezier":l,"--n-color":s,"--n-icon-color":c}}),a=o?Je("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Ot(e.size);return a==null||a.onRender(),u("div",{class:[`${r.value}-icon-wrapper`,a==null?void 0:a.themeClass.value],style:[i==null?void 0:i.value,{height:l,width:l,borderRadius:Ot(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}}),R0=Object.assign(Object.assign({},Se.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),sT="n-image";function Eee(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Lee={name:"Image",common:et,peers:{Tooltip:vh},self:Eee},Nee={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Hee=e=>{const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:f,textColor1:h,textColor3:v,borderRadius:p,fontWeightStrong:b,boxShadow2:m,lineHeight:g,fontSize:y}=e;return Object.assign(Object.assign({},Nee),{borderRadius:p,lineHeight:g,fontSize:y,headerFontWeight:b,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:d,closeColorPressed:f,headerTextColor:h,descriptionTextColor:v,actionTextColor:t,boxShadow:m})},jee={name:"Notification",common:et,peers:{Scrollbar:hr},self:Hee},Vee=jee,Uee={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Wee=e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:c,boxShadow2:d,primaryColor:f,lineHeight:h,borderRadius:v,closeColorHover:p,closeColorPressed:b}=e;return Object.assign(Object.assign({},Uee),{closeBorderRadius:v,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:f,closeColorHover:p,closeColorPressed:b,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:b,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:b,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:b,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:b,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:b,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:h,borderRadius:v})},Kee={name:"Message",common:et,self:Wee},qee=Kee,Yee=e=>{const{textColorDisabled:t}=e;return{iconColorDisabled:t}},Xee={name:"InputNumber",common:et,peers:{Button:vr,Input:kr},self:Yee},Gee=Xee,Zee=e=>{const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:ht(r,l),siderToggleBarColorHover:ht(r,s),__invertScrollbar:"true"}},Qee={name:"Layout",common:et,peers:{Scrollbar:hr},self:Zee},Ch=Qee,Jee=e=>{const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:n,colorHover:s,colorModal:r,colorHoverModal:ht(r,s),colorPopover:o,colorHoverPopover:ht(o,s),borderColor:i,borderColorModal:ht(r,i),borderColorPopover:ht(o,i),borderRadius:a,fontSize:l}},ete={name:"List",common:et,self:Jee},tte=ete,nte=e=>{const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}},rte={name:"LoadingBar",common:et,self:nte},ote=rte,ite=e=>{const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}},ate={name:"Log",common:et,peers:{Scrollbar:hr,Code:kP},self:ite},lte=ate,ste=e=>{const{boxShadow2:t}=e;return{menuBoxShadow:t}},cte={name:"Mention",common:et,peers:{InternalSelectMenu:Ml,Input:kr},self:ste},dte=cte;function ute(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}const fte=e=>{const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:s,itemColorActive:ft(r,{alpha:.1}),itemColorActiveHover:ft(r,{alpha:.1}),itemColorActiveCollapsed:ft(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},ute("#BBB",r,"#FFF","#AAA"))},hte={name:"Menu",common:et,peers:{Tooltip:vh,Dropdown:u0},self:fte},vte=hte,pte={titleFontSize:"18px",backSize:"22px"};function gte(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},pte),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const mte={name:"PageHeader",common:et,self:gte},bte={iconSize:"22px"},yte=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},bte),{fontSize:t,iconColor:n})},xte={name:"Popconfirm",common:et,peers:{Button:vr,Popover:Ua},self:yte},wte=xte,Cte=e=>{const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Ste={name:"Progress",common:et,self:Cte},cT=Ste,_te=e=>{const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}},kte={name:"Rate",common:et,self:_te},Rte=kte,Pte={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},$te=e=>{const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},Pte),{lineHeight:l,titleFontWeight:s,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})},Tte={name:"Result",common:et,self:$te},Ote=Tte,zte={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},Mte=e=>{const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:s,borderRadius:c,fontSize:d,opacityDisabled:f}=e;return Object.assign(Object.assign({},zte),{fontSize:d,markFontSize:d,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:s,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})},Ite={name:"Slider",common:et,self:Mte},Fte=Ite,Dte=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}},Ate={name:"Spin",common:et,self:Dte},Bte=Ate,Ete=e=>{const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},Lte={name:"Statistic",common:et,self:Ete},Nte=Lte,Hte={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},jte=e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},Hte),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})},Vte={name:"Steps",common:et,self:jte},Ute=Vte,Wte={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},Kte=e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e,i="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},Wte),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:i,railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${ft(t,{alpha:.2})}`})},qte={name:"Switch",common:et,self:Kte},Yte=qte,Xte={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},Gte=e=>{const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:c,fontWeightStrong:d,lineHeight:f,fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p}=e;return Object.assign(Object.assign({},Xte),{fontSizeSmall:h,fontSizeMedium:v,fontSizeLarge:p,lineHeight:f,borderRadius:c,borderColor:ht(n,t),borderColorModal:ht(r,t),borderColorPopover:ht(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:ht(n,a),tdColorStripedModal:ht(r,a),tdColorStripedPopover:ht(o,a),thColor:ht(n,i),thColorModal:ht(r,i),thColorPopover:ht(o,i),thTextColor:l,tdTextColor:s,thFontWeight:d})},Zte={name:"Table",common:et,self:Gte},Qte=Zte,Jte={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},ene=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:c,baseColor:d,dividerColor:f,fontWeight:h,textColor1:v,borderRadius:p,fontSize:b,fontWeightStrong:m}=e;return Object.assign(Object.assign({},Jte),{colorSegment:c,tabFontSizeCard:b,tabTextColorLine:v,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:v,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:v,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:v,tabTextColorHoverCard:v,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:c,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},tne={name:"Tabs",common:et,self:ene},nne=tne,rne=e=>{const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}},one={name:"Thing",common:et,self:rne},ine=one,ane={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},lne=e=>{const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},ane),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})},sne={name:"Timeline",common:et,self:lne},cne=sne,dne={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},une=e=>{const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:s,tableHeaderColor:c,textColor1:d,textColorDisabled:f,textColor2:h,textColor3:v,borderColor:p,hoverColor:b,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x}=e;return Object.assign(Object.assign({},dne),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:p,borderColor:p,listColor:s,headerColor:ht(s,c),titleTextColor:d,titleTextColorDisabled:f,extraTextColor:v,extraTextColorDisabled:f,itemTextColor:h,itemTextColorDisabled:f,itemColorPending:b,titleFontWeight:t,closeColorHover:m,closeColorPressed:g,closeIconColor:y,closeIconColorHover:C,closeIconColorPressed:x})},fne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:une},hne=fne,vne=e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:r,primaryColor:o,textColor3:i,textColor2:a,textColorDisabled:l,fontSize:s}=e;return{fontSize:s,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:r,nodeColorActive:ft(o,{alpha:.1}),arrowColor:i,nodeTextColor:a,nodeTextColorDisabled:l,loadingColor:o,dropMarkColor:o}},pne={name:"Tree",common:et,peers:{Checkbox:Il,Scrollbar:hr,Empty:Bi},self:vne},dT=pne,gne=e=>{const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px"}},mne={name:"TreeSelect",common:et,peers:{Tree:dT,Empty:Bi,InternalSelection:fh},self:gne},bne=mne,yne={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},xne=e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:f,warningColor:h,errorColor:v,successColor:p,codeColor:b}=e;return Object.assign(Object.assign({},yne),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:v,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:f,textColorSuccess:p,textColorWarning:h,textColorError:v,codeTextColor:n,codeColor:b,codeBorder:"1px solid #0000"})},wne={name:"Typography",common:et,self:xne},Li=wne,Cne=e=>{const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:c,lineHeight:d,borderRadius:f,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:ft(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}},Sne={name:"Upload",common:et,peers:{Button:vr,Progress:cT},self:Cne},_ne=Sne,kne={name:"Watermark",common:et,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},Rne=kne,Pne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),$ne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),Tne=u("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),One=O([O("body >",[S("image-container","position: fixed;")]),S("image-preview-container",` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),S("image-preview-overlay",` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[Ho()]),S("image-preview-toolbar",` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("base-icon",` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),Ho()]),S("image-preview-wrapper",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[$n()]),S("image-preview",` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),S("image",` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[pt("preview-disabled",` - cursor: pointer; - `),O("img",` - border-radius: inherit; - `)])]),dd=32,uT=J({name:"ImagePreview",props:Object.assign(Object.assign({},R0),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Se("Image","-image",One,Lee,e,xe(e,"clsPrefix"));let n=null;const r=D(null),o=D(null),i=D(void 0),a=D(!1),l=D(!1),{localeRef:s}=yn("Image");function c(){const{value:H}=o;if(!n||!H)return;const{style:W}=H,Y=n.getBoundingClientRect(),ce=Y.left+Y.width/2,X=Y.top+Y.height/2;W.transformOrigin=`${ce}px ${X}px`}function d(H){var W,Y;switch(H.key){case" ":H.preventDefault();break;case"ArrowLeft":(W=e.onPrev)===null||W===void 0||W.call(e);break;case"ArrowRight":(Y=e.onNext)===null||Y===void 0||Y.call(e);break;case"Escape":Ce();break}}rt(a,H=>{H?St("keydown",document,d):xt("keydown",document,d)}),Dt(()=>{xt("keydown",document,d)});let f=0,h=0,v=0,p=0,b=0,m=0,g=0,y=0,C=!1;function x(H){const{clientX:W,clientY:Y}=H;v=W-f,p=Y-h,ka(de)}function w(H){const{mouseUpClientX:W,mouseUpClientY:Y,mouseDownClientX:ce,mouseDownClientY:X}=H,B=ce-W,N=X-Y,te=`vertical${N>0?"Top":"Bottom"}`,ve=`horizontal${B>0?"Left":"Right"}`;return{moveVerticalDirection:te,moveHorizontalDirection:ve,deltaHorizontal:B,deltaVertical:N}}function k(H){const{value:W}=r;if(!W)return{offsetX:0,offsetY:0};const Y=W.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:X,deltaHorizontal:B,deltaVertical:N}=H||{};let te=0,ve=0;return Y.width<=window.innerWidth?te=0:Y.left>0?te=(Y.width-window.innerWidth)/2:Y.right0?ve=(Y.height-window.innerHeight)/2:Y.bottom.5){const H=A;z-=1,A=Math.max(.5,Math.pow(I,z));const W=H-A;de(!1);const Y=k();A+=W,de(!1),A-=W,v=Y.offsetX,p=Y.offsetY,de()}}function de(H=!0){var W;const{value:Y}=r;if(!Y)return;const{style:ce}=Y,X=Gs((W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.style);let B="";if(typeof X=="string")B=X+";";else for(const te in X)B+=`${XR(te)}: ${X[te]};`;const N=`transform-origin: center; transform: translateX(${v}px) translateY(${p}px) rotate(${L}deg) scale(${A});`;C?ce.cssText=B+"cursor: grabbing; transition: none;"+N:ce.cssText=B+"cursor: grab;"+N+(H?"":"transition: none;"),H||Y.offsetHeight}function Ce(){a.value=!a.value,l.value=!0}function we(){A=re(),z=Math.ceil(Math.log(A)/Math.log(I)),v=0,p=0,de()}const me={setPreviewSrc:H=>{i.value=H},setThumbnailEl:H=>{n=H},toggleShow:Ce};function Oe(H,W){if(e.showToolbarTooltip){const{value:Y}=t;return u(ph,{to:!1,theme:Y.peers.Tooltip,themeOverrides:Y.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>s.value[W],trigger:()=>H})}else return H}const ke=P(()=>{const{common:{cubicBezierEaseInOut:H},self:{toolbarIconColor:W,toolbarBorderRadius:Y,toolbarBoxShadow:ce,toolbarColor:X}}=t.value;return{"--n-bezier":H,"--n-toolbar-icon-color":W,"--n-toolbar-color":X,"--n-toolbar-border-radius":Y,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:pe}=He(),Me=pe?Je("image-preview",void 0,ke,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:An(),displayed:l,previewedImgProps:T==null?void 0:T.previewedImgPropsRef,handleWheel(H){H.preventDefault()},handlePreviewMousedown:$,handlePreviewDblclick:R,syncTransformOrigin:c,handleAfterLeave:()=>{j(),L=0,l.value=!1},handleDragStart:H=>{var W,Y;(Y=(W=T==null?void 0:T.previewedImgPropsRef.value)===null||W===void 0?void 0:W.onDragstart)===null||Y===void 0||Y.call(W,H),H.preventDefault()},zoomIn:ee,zoomOut:ue,rotateCounterclockwise:K,rotateClockwise:Q,handleSwitchPrev:E,handleSwitchNext:U,withTooltip:Oe,resizeToOrignalImageSize:we,cssVars:pe?void 0:ke,themeClass:Me==null?void 0:Me.themeClass,onRender:Me==null?void 0:Me.onRender},me)},render(){var e,t;const{clsPrefix:n}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),u(lc,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?u("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?u(It,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return u("div",{class:`${n}-image-preview-toolbar`},this.onPrev?u($t,null,o(u(st,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>Pne}),"tipPrevious"),o(u(st,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>$ne}),"tipNext")):null,o(u(st,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>u(mW,null)}),"tipCounterclockwise"),o(u(st,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>u(gW,null)}),"tipClockwise"),o(u(st,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>u(xW,null)}),"tipOriginalSize"),o(u(st,{clsPrefix:n,onClick:this.zoomOut},{default:()=>u(yW,null)}),"tipZoomOut"),o(u(st,{clsPrefix:n,onClick:this.zoomIn},{default:()=>u(bW,null)}),"tipZoomIn"),o(u(st,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Tne}),"tipClose"))}}):null,u(It,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return sn(u("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},u("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[wr,this.show]])}})),[[ac,{enabled:this.show}]])):null}}))}}),fT="n-image-group",hT=R0,vT=J({name:"ImageGroup",props:hT,setup(e){let t;const{mergedClsPrefixRef:n}=He(e),r=`c${Cr()}`,o=Ko(),i=s=>{var c;t=s,(c=l.value)===null||c===void 0||c.setPreviewSrc(s)};function a(s){if(!(o!=null&&o.proxy))return;const d=o.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${r}]:not([data-error=true])`);if(!d.length)return;const f=Array.from(d).findIndex(h=>h.dataset.previewSrc===t);~f?i(d[(f+s+d.length)%d.length].dataset.previewSrc):i(d[0].dataset.previewSrc)}nt(fT,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:s=>{var c;(c=l.value)===null||c===void 0||c.setThumbnailEl(s)},toggleShow:()=>{var s;(s=l.value)===null||s===void 0||s.toggleShow()},groupId:r});const l=D(null);return{mergedClsPrefix:n,previewInstRef:l,next:()=>a(1),prev:()=>a(-1)}},render(){return u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}}),pT=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},R0),gT=J({name:"Image",props:pT,inheritAttrs:!1,setup(e){const t=D(null),n=D(!1),r=D(null),o=Le(fT,null),{mergedClsPrefixRef:i}=o||He(e),a={click:()=>{if(e.previewDisabled||n.value)return;const c=e.previewSrc||e.src;if(o){o.setPreviewSrc(c),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:d}=r;!d||(d.setPreviewSrc(c),d.setThumbnailEl(t.value),d.toggleShow())}},l=D(!e.lazy);Mt(()=>{var c;(c=t.value)===null||c===void 0||c.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Mt(()=>{if(gl)return;let c;const d=Ft(()=>{c==null||c(),c=void 0,e.lazy&&(c=G2(t.value,e.intersectionObserverOptions,l))});Dt(()=>{d(),c==null||c()})}),Ft(()=>{var c;e.src,(c=e.imgProps)===null||c===void 0||c.src,n.value=!1});const s=D(!1);return nt(sT,{previewedImgPropsRef:xe(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:l,loaded:s,mergedOnClick:c=>{var d,f;a.click(),(f=(d=e.imgProps)===null||d===void 0?void 0:d.onClick)===null||f===void 0||f.call(d,c)},mergedOnError:c=>{if(!l.value)return;n.value=!0;const{onError:d,imgProps:{onError:f}={}}=e;d==null||d(c),f==null||f(c)},mergedOnLoad:c=>{const{onLoad:d,imgProps:{onLoad:f}={}}=e;d==null||d(c),f==null||f(c),s.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),s=this.src||r.src||"",c=u("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:gl?s:this.showError?this.fallbackSrc:this.shouldStartLoading?s:void 0,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:gl&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return u("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?c:u(uT,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>c}),!o&&l)}});function zne(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function Mne(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Nv(e){return e==null?!0:!Number.isNaN(e)}function aS(e,t){return e==null?"":t===void 0?String(e):e.toFixed(t)}function Hv(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const Ine=O([S("input-number-suffix",` - display: inline-block; - margin-right: 10px; - `),S("input-number-prefix",` - display: inline-block; - margin-left: 10px; - `)]),lS=800,sS=100,mT=Object.assign(Object.assign({},Se.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Fne=J({name:"InputNumber",props:mT,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Se("InputNumber","-input-number",Ine,Gee,e,n),{localeRef:i}=yn("InputNumber"),a=xn(e),{mergedSizeRef:l,mergedDisabledRef:s,mergedStatusRef:c}=a,d=D(null),f=D(null),h=D(null),v=D(e.defaultValue),p=xe(e,"value"),b=wt(p,v),m=D(""),g=B=>{const N=String(B).split(".")[1];return N?N.length:0},y=B=>{const N=[e.min,e.max,e.step,B].map(te=>te===void 0?0:g(te));return Math.max(...N)},C=it(()=>{const{placeholder:B}=e;return B!==void 0?B:i.value.placeholder}),x=it(()=>{const B=Hv(e.step);return B!==null?B===0?1:Math.abs(B):1}),w=it(()=>{const B=Hv(e.min);return B!==null?B:null}),k=it(()=>{const B=Hv(e.max);return B!==null?B:null}),_=B=>{const{value:N}=b;if(B===N){$();return}const{"onUpdate:value":te,onUpdateValue:ve,onChange:Z}=e,{nTriggerFormInput:fe,nTriggerFormChange:ne}=a;Z&&he(Z,B),ve&&he(ve,B),te&&he(te,B),v.value=B,fe(),ne()},T=({offset:B,doUpdateIfValid:N,fixPrecision:te,isInputing:ve})=>{const{value:Z}=m;if(ve&&Mne(Z))return!1;const fe=(e.parse||zne)(Z);if(fe===null)return N&&_(null),null;if(Nv(fe)){const ne=g(fe),{precision:ge}=e;if(ge!==void 0&&geAe){if(!N||ve)return!1;Pe=Ae}if(Ke!==null&&Pe{const{value:B}=b;if(Nv(B)){const{format:N,precision:te}=e;N?m.value=N(B):B===null||te===void 0||g(B)>te?m.value=aS(B,void 0):m.value=aS(B,te)}else m.value=String(B)};$();const R=it(()=>T({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),I=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:-N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),z=it(()=>{const{value:B}=b;if(e.validator&&B===null)return!1;const{value:N}=x;return T({offset:+N,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(B){const{onFocus:N}=e,{nTriggerFormFocus:te}=a;N&&he(N,B),te()}function L(B){var N,te;if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;const ve=T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ve!==!1){const ne=(te=d.value)===null||te===void 0?void 0:te.inputElRef;ne&&(ne.value=String(ve||"")),b.value===ve&&$()}else $();const{onBlur:Z}=e,{nTriggerFormBlur:fe}=a;Z&&he(Z,B),fe(),_t(()=>{$()})}function j(B){const{onClear:N}=e;N&&he(N,B)}function E(){const{value:B}=z;if(!B){me();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function U(){const{value:B}=I;if(!B){we();return}const{value:N}=b;if(N===null)e.validator||_(V());else{const{value:te}=x;T({offset:-te,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const K=A,Q=L;function V(){if(e.validator)return null;const{value:B}=w,{value:N}=k;return B!==null?Math.max(0,B):N!==null?Math.min(0,N):0}function re(B){j(B),_(null)}function ee(B){var N,te,ve;!((N=h.value)===null||N===void 0)&&N.$el.contains(B.target)&&B.preventDefault(),!((te=f.value)===null||te===void 0)&&te.$el.contains(B.target)&&B.preventDefault(),(ve=d.value)===null||ve===void 0||ve.activate()}let ue=null,de=null,Ce=null;function we(){Ce&&(window.clearTimeout(Ce),Ce=null),ue&&(window.clearInterval(ue),ue=null)}function me(){ke&&(window.clearTimeout(ke),ke=null),de&&(window.clearInterval(de),de=null)}function Oe(){we(),Ce=window.setTimeout(()=>{ue=window.setInterval(()=>{U()},sS)},lS),St("mouseup",document,we,{once:!0})}let ke=null;function pe(){me(),ke=window.setTimeout(()=>{de=window.setInterval(()=>{E()},sS)},lS),St("mouseup",document,me,{once:!0})}const Me=()=>{de||E()},H=()=>{ue||U()};function W(B){var N,te;if(B.key==="Enter"){if(B.target===((N=d.value)===null||N===void 0?void 0:N.wrapperElRef))return;T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((te=d.value)===null||te===void 0||te.deactivate())}else if(B.key==="ArrowUp"){if(!z.value||e.keyboard.ArrowUp===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&E()}else if(B.key==="ArrowDown"){if(!I.value||e.keyboard.ArrowDown===!1)return;B.preventDefault(),T({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}}function Y(B){m.value=B,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&T({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}rt(b,()=>{$()});const ce={focus:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.focus()},blur:()=>{var B;return(B=d.value)===null||B===void 0?void 0:B.blur()}},X=Zt("InputNumber",r,n);return Object.assign(Object.assign({},ce),{rtlEnabled:X,inputInstRef:d,minusButtonInstRef:f,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:v,mergedValue:b,mergedPlaceholder:C,displayedValueInvalid:R,mergedSize:l,mergedDisabled:s,displayedValue:m,addable:z,minusable:I,mergedStatus:c,handleFocus:K,handleBlur:Q,handleClear:re,handleMouseDown:ee,handleAddClick:Me,handleMinusClick:H,handleAddMousedown:pe,handleMinusMousedown:Oe,handleKeyDown:W,handleUpdateDisplayedValue:Y,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:P(()=>{const{self:{iconColorDisabled:B}}=o.value,[N,te,ve,Z]=Bn(B);return{textColorTextDisabled:`rgb(${N}, ${te}, ${ve})`,opacityDisabled:`${Z}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>u(Jr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>vt(t["minus-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(b2,null)})])}),r=()=>u(Jr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>vt(t["add-icon"],()=>[u(st,{clsPrefix:e},{default:()=>u(_l,null)})])});return u("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},u(In,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),Ct(t.prefix,i=>i?u("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[Ct(t.suffix,i=>i?u("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),bT="n-layout-sider",Sh={type:String,default:"static"},Dne=S("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[S("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),Mm={embedded:Boolean,position:Sh,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function xT(e){return J({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},Se.props),Mm),setup(t){const n=D(null),r=D(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=He(t),a=Se("Layout","-layout",Dne,Ch,t,o);function l(b,m){if(t.nativeScrollbar){const{value:g}=n;g&&(m===void 0?g.scrollTo(b):g.scrollTo(b,m))}else{const{value:g}=r;g&&g.scrollTo(b,m)}}nt(yT,t);let s=0,c=0;const d=b=>{var m;const g=b.target;s=g.scrollLeft,c=g.scrollTop,(m=t.onScroll)===null||m===void 0||m.call(t,b)};Mb(()=>{if(t.nativeScrollbar){const b=n.value;b&&(b.scrollTop=c,b.scrollLeft=s)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},v=P(()=>{const{common:{cubicBezierEaseInOut:b},self:m}=a.value;return{"--n-bezier":b,"--n-color":t.embedded?m.colorEmbedded:m.color,"--n-text-color":m.textColor}}),p=i?Je("layout",P(()=>t.embedded?"e":""),v,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:v,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return u("div",{class:i,style:this.cssVars},this.nativeScrollbar?u("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Ane=xT(!1),Bne=xT(!0),Ene=S("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),F("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),wT={position:Sh,inverted:Boolean,bordered:{type:Boolean,default:!1}},Lne=J({name:"LayoutHeader",props:Object.assign(Object.assign({},Se.props),wT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-header",Ene,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=n?Je("layout-header",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),Nne=S("layout-footer",` - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; -`,[F("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - bottom: 0; - `),F("bordered",` - border-top: solid 1px var(--n-border-color); - `)]),CT=Object.assign(Object.assign({},Se.props),{inverted:Boolean,position:Sh,bordered:Boolean}),Hne=J({name:"LayoutFooter",props:CT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Layout","-layout-footer",Nne,Ch,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.footerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.footerBorderColorInverted):(s["--n-color"]=l.footerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.footerBorderColor),s}),i=n?Je("layout-footer",P(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),jne=S("layout-sider",` - flex-shrink: 0; - box-sizing: border-box; - position: relative; - z-index: 1; - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - min-width .3s var(--n-bezier), - max-width .3s var(--n-bezier), - transform .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-color); - display: flex; - justify-content: flex-end; -`,[F("bordered",[M("border",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 1px; - background-color: var(--n-border-color); - transition: background-color .3s var(--n-bezier); - `)]),M("left-placement",[F("bordered",[M("border",` - right: 0; - `)])]),F("right-placement",` - justify-content: flex-start; - `,[F("bordered",[M("border",` - left: 0; - `)]),F("collapsed",[S("layout-toggle-button",[S("base-icon",` - transform: rotate(180deg); - `)]),S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),S("layout-toggle-button",` - left: 0; - transform: translateX(-50%) translateY(-50%); - `,[S("base-icon",` - transform: rotate(0); - `)]),S("layout-toggle-bar",` - left: -28px; - transform: rotate(180deg); - `,[O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),F("collapsed",[S("layout-toggle-bar",[O("&:hover",[M("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),S("layout-toggle-button",[S("base-icon",` - transform: rotate(0); - `)])]),S("layout-toggle-button",` - transition: - color .3s var(--n-bezier), - right .3s var(--n-bezier), - left .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - cursor: pointer; - width: 24px; - height: 24px; - position: absolute; - top: 50%; - right: 0; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 18px; - color: var(--n-toggle-button-icon-color); - border: var(--n-toggle-button-border); - background-color: var(--n-toggle-button-color); - box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); - transform: translateX(50%) translateY(-50%); - z-index: 1; - `,[S("base-icon",` - transition: transform .3s var(--n-bezier); - transform: rotate(180deg); - `)]),S("layout-toggle-bar",` - cursor: pointer; - height: 72px; - width: 32px; - position: absolute; - top: calc(50% - 36px); - right: -28px; - `,[M("top, bottom",` - position: absolute; - width: 4px; - border-radius: 2px; - height: 38px; - left: 14px; - transition: - background-color .3s var(--n-bezier), - transform .3s var(--n-bezier); - `),M("bottom",` - position: absolute; - top: 34px; - `),O("&:hover",[M("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),M("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),O("&:hover",[M("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),M("border",` - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 1px; - transition: background-color .3s var(--n-bezier); - `),S("layout-sider-scroll-container",` - flex-grow: 1; - flex-shrink: 0; - box-sizing: border-box; - height: 100%; - opacity: 0; - transition: opacity .3s var(--n-bezier); - max-width: 100%; - `),F("show-content",[S("layout-sider-scroll-container",{opacity:1})]),F("absolute-positioned",` - position: absolute; - left: 0; - top: 0; - bottom: 0; - `)]),Vne=J({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},u(st,{clsPrefix:e},{default:()=>u(Ha,null)}))}}),Une=J({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return u("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},u("div",{class:`${e}-layout-toggle-bar__top`}),u("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ST={position:Sh,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},Wne=J({name:"LayoutSider",props:Object.assign(Object.assign({},Se.props),ST),setup(e){const t=Le(yT),n=D(null),r=D(null),o=P(()=>Ot(s.value?e.collapsedWidth:e.width)),i=P(()=>e.collapseMode!=="transform"?{}:{minWidth:Ot(e.width)}),a=P(()=>t?t.siderPlacement:"left"),l=D(e.defaultCollapsed),s=wt(xe(e,"collapsed"),l);function c(w,k){if(e.nativeScrollbar){const{value:_}=n;_&&(k===void 0?_.scrollTo(w):_.scrollTo(w,k))}else{const{value:_}=r;_&&_.scrollTo(w,k)}}function d(){const{"onUpdate:collapsed":w,onUpdateCollapsed:k,onExpand:_,onCollapse:T}=e,{value:$}=s;k&&he(k,!$),w&&he(w,!$),l.value=!$,$?_&&he(_):T&&he(T)}let f=0,h=0;const v=w=>{var k;const _=w.target;f=_.scrollLeft,h=_.scrollTop,(k=e.onScroll)===null||k===void 0||k.call(e,w)};Mb(()=>{if(e.nativeScrollbar){const w=n.value;w&&(w.scrollTop=h,w.scrollLeft=f)}}),nt(bT,{collapsedRef:s,collapseModeRef:xe(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:b}=He(e),m=Se("Layout","-layout-sider",jne,Ch,e,p);function g(w){var k,_;w.propertyName==="max-width"&&(s.value?(k=e.onAfterLeave)===null||k===void 0||k.call(e):(_=e.onAfterEnter)===null||_===void 0||_.call(e))}const y={scrollTo:c},C=P(()=>{const{common:{cubicBezierEaseInOut:w},self:k}=m.value,{siderToggleButtonColor:_,siderToggleButtonBorder:T,siderToggleBarColor:$,siderToggleBarColorHover:R}=k,I={"--n-bezier":w,"--n-toggle-button-color":_,"--n-toggle-button-border":T,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":R};return e.inverted?(I["--n-color"]=k.siderColorInverted,I["--n-text-color"]=k.textColorInverted,I["--n-border-color"]=k.siderBorderColorInverted,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColorInverted,I.__invertScrollbar=k.__invertScrollbar):(I["--n-color"]=k.siderColor,I["--n-text-color"]=k.textColor,I["--n-border-color"]=k.siderBorderColor,I["--n-toggle-button-icon-color"]=k.siderToggleButtonIconColor),I}),x=b?Je("layout-sider",P(()=>e.inverted?"a":"b"),C,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:p,mergedTheme:m,styleMaxWidth:o,mergedCollapsed:s,scrollContainerStyle:i,siderPlacement:a,handleNativeElScroll:v,handleTransitionend:g,handleTriggerClick:d,inlineThemeDisabled:b,cssVars:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Ot(this.width)}]},this.nativeScrollbar?u("div",{class:`${t}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):u(rn,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?u(Une,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):u(Vne,{clsPrefix:t,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?u("div",{class:`${t}-layout-sider__border`}):null)}}),Kne={extraFontSize:"12px",width:"440px"},qne=e=>{const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:c,borderRadius:d,cardColor:f,tableHeaderColor:h,textColor1:v,textColorDisabled:p,textColor2:b,borderColor:m,hoverColor:g}=e;return Object.assign(Object.assign({},Kne),{itemHeightSmall:c,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:d,borderColor:m,listColor:f,headerColor:ht(f,h),titleTextColor:v,titleTextColorDisabled:p,extraTextColor:b,filterDividerColor:m,itemTextColor:b,itemTextColorDisabled:p,itemColorPending:g,titleFontWeight:t,iconColor:r,iconColorDisabled:n})},Yne={name:"Transfer",common:et,peers:{Checkbox:Il,Scrollbar:hr,Input:kr,Empty:Bi,Button:vr},self:qne},Xne=Yne,gc="n-transfer",cS=J({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:s,mergedClsPrefixRef:c}=Le(gc),d=P(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:h}=d,{value:v}=l,{value:p}=c;return u("div",{class:`${p}-legacy-transfer-list-header`},u("div",{class:`${p}-legacy-transfer-list-header__checkbox`},u(Zo,{theme:v.peers.Checkbox,themeOverrides:v.peerOverrides.Checkbox,checked:h.checked,indeterminate:h.indeterminate,disabled:h.disabled||s.value,onUpdateChecked:e.onChange})),u("div",{class:`${p}-legacy-transfer-list-header__header`},e.title),u("div",{class:`${p}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),dS=J({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Le(gc),s=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:s,handleClick:t?()=>{e.disabled||a(!s.value,e.value)}:()=>{e.disabled||l(!s.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return u("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},u("div",{class:`${n}-legacy-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-legacy-transfer-list-item__label`,title:rc(r)},r))}}),uS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return u($t,null,u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return u(dS,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):u("div",{class:`${t}-legacy-transfer-list-content`},u(Gf,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>u(dS,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),u(It,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}}),fS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(gc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-legacy-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>u(y2,null)})}))}});function Gne(e,t){const n=D(e.defaultValue),r=xe(e,"value"),o=wt(r,n),i=P(()=>{const R=new Map;return(e.options||[]).forEach(I=>R.set(I.value,I)),R}),a=P(()=>new Set(o.value||[])),l=P(()=>e.options.filter(R=>!a.value.has(R.value))),s=P(()=>{const R=i.value;return(o.value||[]).map(I=>R.get(I))}),c=D(""),d=D(""),f=P(()=>{if(!e.filterable)return l.value;const{filter:R}=e;return l.value.filter(I=>R(c.value,I,"source"))}),h=P(()=>{if(!e.filterable)return s.value;const{filter:R}=e;return s.value.filter(I=>R(d.value,I,"target"))}),v=P(()=>new Set(f.value.filter(R=>!R.disabled).map(R=>R.value))),p=P(()=>new Set(h.value.filter(R=>!R.disabled).map(R=>R.value))),b=D([]),m=D([]),g=P(()=>{const R=b.value.filter(z=>v.value.has(z)).length,I=v.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=P(()=>{const R=m.value.filter(z=>p.value.has(z)).length,I=p.value.size;return I===0?{checked:!1,indeterminate:!1,disabled:!0}:R===0?{checked:!1,indeterminate:!1}:R===I?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),C=it(()=>t.value?!0:m.value.length===0),x=it(()=>t.value?!0:b.value.length===0),w=D(!1);function k(){w.value=!0}function _(){w.value=!1}function T(R){c.value=R!=null?R:""}function $(R){d.value=R!=null?R:""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:v,avlTgtValueSet:p,tgtOpts:s,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:h,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:c,tgtPattern:d,isInputing:w,fromButtonDisabled:C,toButtonDisabled:x,handleInputFocus:k,handleInputBlur:_,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:T}}const Zne=O([O("@keyframes legacy-transfer-slide-in-from-left",` - 0% { - transform: translateX(-150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-right",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(150%); - } - `),O("@keyframes legacy-transfer-slide-in-from-right",` - 0% { - transform: translateX(150%); - } - 100% { - transform: translateX(0); - } - `),O("@keyframes legacy-transfer-slide-out-to-left",` - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-150%); - } - `),O("@keyframes legacy-transfer-height-collapse",` - 0% { - max-height: var(--n-item-height); - } - 100% { - max-height: 0; - } - `),O("@keyframes legacy-transfer-height-expand",` - 0% { - max-height: 0; - } - 100% { - max-height: var(--n-item-height); - } - `)]),Qne=O([S("legacy-transfer",` - display: flex; - width: var(--n-width); - font-size: var(--n-font-size); - height: 240px; - display: flex; - flex-wrap: nowrap; - `,[S("legacy-transfer-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("disabled",[S("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),S("legacy-transfer-list",` - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - width: calc(50% - 36px); - position: relative; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - background-color: var(--n-list-color); - `,[M("border",` - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("legacy-transfer-list-header",` - height: calc(var(--n-item-height) + 4px); - box-sizing: border-box; - display: flex; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),M("header",` - flex: 1; - line-height: 1; - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `,[F("disabled",{color:"var(--n-header-text-color-disabled)"})]),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - justify-self: flex-end; - margin-right: 14px; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("legacy-transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("legacy-transfer-filter",` - padding: 0 8px 8px 8px; - box-sizing: border-box; - background-color: var(--n-header-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-filter-divider-color); - `),S("legacy-transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `,[S("scrollbar-content",{width:"100%"})]),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `,[Ho()]),S("legacy-transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[F("transition-disabled",[S("legacy-transfer-list-item",{animation:"none !important"})]),S("legacy-transfer-list-item",` - height: var(--n-item-height); - max-height: var(--n-item-height); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - cursor: pointer; - display: flex; - align-items: center; - color: var(--n-item-text-color); - `,[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),M("extra",` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - padding-right: 4px; - `),M("checkbox",` - display: flex; - align-items: center; - position: relative; - padding: 0 9px 0 14px; - `),F("disabled",` - cursor: not-allowed - background-color: #0000; - color: var(--n-item-text-color-disabled); - `),F("source",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; - `),O("&.item-leave-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; - `)]),F("target",{animationFillMode:"forwards"},[O("&.item-enter-active",` - transform: translateX(-150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); - animation-delay: 0s, .25s; - animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; - `),O("&.item-leave-active",` - transform: translateX(150%); - animation-duration: .25s, .25s; - animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); - animation-delay: .25s, 0s; - animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; - `)])])])])])]),S("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),S("button",[O("&:first-child",{marginBottom:"12px"})])]),Zne]),_T=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Jne=J({name:"LegacyTransfer",props:_T,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("LegacyTransfer","-legacy-transfer",Qne,Xne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:V}=o,{self:{[ye("itemHeight",V)]:re}}=n.value;return dn(re)}),{uncontrolledValue:l,mergedValue:s,avlSrcValueSet:c,avlTgtValueSet:d,tgtOpts:f,srcOpts:h,filteredSrcOpts:v,filteredTgtOpts:p,srcCheckedValues:b,tgtCheckedValues:m,srcCheckedStatus:g,tgtCheckedStatus:y,srcPattern:C,tgtPattern:x,isInputing:w,fromButtonDisabled:k,toButtonDisabled:_,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I}=Gne(e,i);function z(V){const{onUpdateValue:re,"onUpdate:value":ee,onChange:ue}=e,{nTriggerFormInput:de,nTriggerFormChange:Ce}=r;re&&he(re,V),ee&&he(ee,V),ue&&he(ue,V),l.value=V,de(),Ce()}function A(V){const{value:{checked:re,indeterminate:ee}}=g;ee||re?b.value=[]:b.value=Array.from(c.value)}function L(){const{value:{checked:V,indeterminate:re}}=y;re||V?m.value=[]:m.value=Array.from(d.value)}function j(V,re){if(V)m.value.push(re);else{const ee=m.value.findIndex(ue=>ue===re);~ee&&m.value.splice(ee,1)}}function E(V,re){if(V)b.value.push(re);else{const ee=b.value.findIndex(ue=>ue===re);~ee&&b.value.splice(ee,1)}}function U(){z(b.value.concat(s.value||[])),b.value=[]}function K(){const V=new Set(m.value);z((s.value||[]).filter(re=>!V.has(re))),m.value=[]}nt(gc,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:b,tgtCheckedValuesRef:m,srcOptsRef:h,tgtOptsRef:f,srcCheckedStatusRef:g,tgtCheckedStatusRef:y,handleSrcCheckboxClick:E,handleTgtCheckboxClick:j});const{localeRef:Q}=yn("LegacyTransfer");return{locale:Q,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),isInputing:w,mergedTheme:n,filteredSrcOpts:v,filteredTgtOpts:p,srcPattern:C,tgtPattern:x,toButtonDisabled:_,fromButtonDisabled:k,handleSrcHeaderCheck:A,handleTgtHeaderCheck:L,handleToSrcClick:K,handleToTgtClick:U,handleInputFocus:T,handleInputBlur:$,handleTgtFilterUpdateValue:R,handleSrcFilterUpdateValue:I,cssVars:P(()=>{const{value:V}=o,{common:{cubicBezierEaseInOut:re,cubicBezierEaseIn:ee,cubicBezierEaseOut:ue},self:{width:de,borderRadius:Ce,borderColor:we,listColor:me,headerColor:Oe,titleTextColor:ke,titleTextColorDisabled:pe,extraTextColor:Me,filterDividerColor:H,itemTextColor:W,itemColorPending:Y,itemTextColorDisabled:ce,extraFontSize:X,titleFontWeight:B,iconColor:N,iconColorDisabled:te,[ye("fontSize",V)]:ve,[ye("itemHeight",V)]:Z}}=n.value;return{"--n-bezier":re,"--n-bezier-ease-in":ee,"--n-bezier-ease-out":ue,"--n-border-color":we,"--n-border-radius":Ce,"--n-extra-font-size":X,"--n-filter-divider-color":H,"--n-font-size":ve,"--n-header-color":Oe,"--n-header-extra-text-color":Me,"--n-header-font-weight":B,"--n-header-text-color":ke,"--n-header-text-color-disabled":pe,"--n-item-color-pending":Y,"--n-item-height":Z,"--n-item-text-color":W,"--n-item-text-color-disabled":ce,"--n-list-color":me,"--n-width":de,"--n-icon-color":N,"--n-icon-color-disabled":te}})}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},u("div",{class:`${e}-legacy-transfer-list`},u(cS,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})),u("div",{class:`${e}-legacy-transfer-gap`},u(Pt,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(Ha,null)})}),u(Pt,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(e0,null)})})),u("div",{class:`${e}-legacy-transfer-list`},u(cS,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),u("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?u(fS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,u("div",{class:`${e}-legacy-transfer-list-flex-container`},u(uS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),u("div",{class:`${e}-legacy-transfer-list__border`})))}}),ere=O([S("list",` - --n-merged-border-color: var(--n-border-color); - --n-merged-color: var(--n-color); - --n-merged-color-hover: var(--n-color-hover); - margin: 0; - font-size: var(--n-font-size); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - padding: 0; - list-style-type: none; - color: var(--n-text-color); - background-color: var(--n-merged-color); - `,[F("show-divider",[S("list-item",[O("&:not(:last-child)",[M("divider",` - background-color: var(--n-merged-border-color); - `)])])]),F("clickable",[S("list-item",` - cursor: pointer; - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `),F("hoverable",[S("list-item",` - border-radius: var(--n-border-radius); - `,[O("&:hover",` - background-color: var(--n-merged-color-hover); - `,[M("divider",` - background-color: transparent; - `)])])]),F("bordered, hoverable",[S("list-item",` - padding: 12px 20px; - `),M("header, footer",` - padding: 12px 20px; - `)]),M("header, footer",` - padding: 12px 0; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); - `,[O("&:not(:last-child)",` - border-bottom: 1px solid var(--n-merged-border-color); - `)]),S("list-item",` - position: relative; - padding: 12px 0; - box-sizing: border-box; - display: flex; - flex-wrap: nowrap; - align-items: center; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[M("prefix",` - margin-right: 20px; - flex: 0; - `),M("suffix",` - margin-left: 20px; - flex: 0; - `),M("main",` - flex: 1; - `),M("divider",` - height: 1px; - position: absolute; - bottom: 0; - left: 0; - right: 0; - background-color: transparent; - transition: background-color .3s var(--n-bezier); - pointer-events: none; - `)])]),_o(S("list",` - --n-merged-color-hover: var(--n-color-hover-modal); - --n-merged-color: var(--n-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `)),qo(S("list",` - --n-merged-color-hover: var(--n-color-hover-popover); - --n-merged-color: var(--n-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `))]),kT=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),RT="n-list",tre=J({name:"List",props:kT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("List",r,t),i=Se("List","-list",ere,tte,e,t);nt(RT,{showDividerRef:xe(e,"showDivider"),mergedClsPrefixRef:t});const a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,textColor:d,color:f,colorModal:h,colorPopover:v,borderColor:p,borderColorModal:b,borderColorPopover:m,borderRadius:g,colorHover:y,colorHoverModal:C,colorHoverPopover:x}}=i.value;return{"--n-font-size":c,"--n-bezier":s,"--n-text-color":d,"--n-color":f,"--n-border-radius":g,"--n-border-color":p,"--n-border-color-modal":b,"--n-border-color-popover":m,"--n-color-modal":h,"--n-color-popover":v,"--n-color-hover":y,"--n-color-hover-modal":C,"--n-color-hover-popover":x}}),l=n?Je("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r==null||r(),u("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?u("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?u("div",{class:`${n}-list__footer`},t.footer()):null)}}),nre=J({name:"ListItem",setup(){const e=Le(RT,null);return e||Dn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return u("li",{class:`${t}-list-item`},e.prefix?u("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?u("div",{class:`${t}-list-item__main`},e):null,e.suffix?u("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&u("div",{class:`${t}-list-item__divider`}))}}),PT="n-loading-bar",$T="n-loading-bar-api",rre=S("loading-bar-container",` - z-index: 5999; - position: fixed; - top: 0; - left: 0; - right: 0; - height: 2px; -`,[Ho({enterDuration:"0.3s",leaveDuration:"0.8s"}),S("loading-bar",` - width: 100%; - transition: - max-width 4s linear, - background .2s linear; - height: var(--n-height); - `,[F("starting",` - background: var(--n-color-loading); - `),F("finishing",` - background: var(--n-color-loading); - transition: - max-width .2s linear, - background .2s linear; - `),F("error",` - background: var(--n-color-error); - transition: - max-width .2s linear, - background .2s linear; - `)])]);var jv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function ud(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const ore=J({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=He(),{props:t,mergedClsPrefixRef:n}=Le(PT),r=D(null),o=D(!1),i=D(!1),a=D(!1),l=D(!1);let s=!1;const c=D(!1),d=P(()=>{const{loadingBarStyle:w}=t;return w?w[c.value?"error":"loading"]:""});function f(){return jv(this,void 0,void 0,function*(){o.value=!1,a.value=!1,s=!1,c.value=!1,l.value=!0,yield _t(),l.value=!1})}function h(w=0,k=80,_="starting"){return jv(this,void 0,void 0,function*(){yield f(),a.value=!0,i.value=!0,yield _t();const T=r.value;!T||(T.style.maxWidth=`${w}%`,T.style.transition="none",T.offsetWidth,T.className=ud(_,n.value),T.style.transition="",T.style.maxWidth=`${k}%`)})}function v(){if(s||c.value||!a.value)return;s=!0;const w=r.value;!w||(w.className=ud("finishing",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1)}function p(){if(!(s||c.value))if(!a.value)h(100,100,"error").then(()=>{c.value=!0;const w=r.value;!w||(w.className=ud("error",n.value),w.offsetWidth,a.value=!1)});else{c.value=!0;const w=r.value;if(!w)return;w.className=ud("error",n.value),w.style.maxWidth="100%",w.offsetWidth,a.value=!1}}function b(){o.value=!0}function m(){o.value=!1}function g(){return jv(this,void 0,void 0,function*(){yield f()})}const y=Se("LoadingBar","-loading-bar",rre,ote,t,n),C=P(()=>{const{self:{height:w,colorError:k,colorLoading:_}}=y.value;return{"--n-height":w,"--n-color-loading":_,"--n-color-error":k}}),x=e?Je("loading-bar",void 0,C,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:h,error:p,finish:v,handleEnter:b,handleAfterEnter:m,handleAfterLeave:g,mergedLoadingBarStyle:d,cssVars:e?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return u(It,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),sn(u("div",{class:[`${e}-loading-bar-container`,this.themeClass],style:this.containerStyle},u("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[wr,this.loading||!this.loading&&this.entering]])}})}}),TT=Object.assign(Object.assign({},Se.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}}),OT=J({name:"LoadingBarProvider",props:TT,setup(e){const t=An(),n=D(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():_t(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():_t(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():_t(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=He(e);return nt($T,r),nt(PT,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return u($t,null,u(Js,{disabled:this.to===!1,to:this.to||"body"},u(ore,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function zT(){const e=Le($T,null);return e===null&&Dn("use-loading-bar","No outer founded."),e}const ire=J({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:yn("Log").localeRef}},render(){const{clsPrefix:e}=this;return u("div",{class:`${e}-log-loader`},u(eo,{clsPrefix:e,strokeWidth:24,scale:.85}),u("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),MT="n-log",are=J({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Le(MT),i=D(null),a=P(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(c,d){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(d,{language:c}).value:d}return Mt(()=>{n.value&&l()}),rt(xe(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return u("pre",{ref:"selfRef"},e?null:t)}}),lre=S("log",` - position: relative; - box-sizing: border-box; - transition: border-color .3s var(--n-bezier); -`,[O("pre",` - white-space: pre-wrap; - word-break: break-word; - margin: 0; - `),S("log-loader",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - position: absolute; - right: 16px; - top: 8px; - height: 34px; - border-radius: 17px; - line-height: 34px; - white-space: nowrap; - overflow: hidden; - border: var(--n-loader-border); - color: var(--n-loader-text-color); - background-color: var(--n-loader-color); - font-size: var(--n-loader-font-size); - `,[$n(),M("content",` - display: inline-block; - vertical-align: bottom; - line-height: 34px; - padding-left: 40px; - padding-right: 20px; - white-space: nowrap; - `),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 12px; - top: calc(50% - 10px); - font-size: 20px; - width: 20px; - height: 20px; - display: inline-block; - `)])]),IT=Object.assign(Object.assign({},Se.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),sre=J({name:"Log",props:IT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=D(!1),o=P(()=>e.language!==void 0),i=P(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=P(()=>{const{log:y}=e;return y?y.split(` -`):e.lines}),l=D(null),s=Se("Log","-log",lre,lte,e,t);function c(y){const C=y.target,x=C.firstElementChild;if(r.value){_t(()=>{r.value=!1});return}const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w;if(T<=e.offsetTop){const{onReachTop:R,onRequireMore:I}=e;I&&I("top"),R&&R()}if($<=e.offsetBottom){const{onReachBottom:R,onRequireMore:I}=e;I&&I("bottom"),R&&R()}}const d=xs(f,300);function f(y){if(r.value){_t(()=>{r.value=!1});return}if(l.value){const{containerRef:C,contentRef:x}=l.value;if(C&&x){const w=C.offsetHeight,k=C.scrollTop,_=x.offsetHeight,T=k,$=_-k-w,R=y.deltaY;if(T===0&&R<0){const{onRequireMore:I}=e;I&&I("top")}if($<=0&&R>0){const{onRequireMore:I}=e;I&&I("bottom")}}}}function h(y){const{value:C}=l;if(!C)return;const{slient:x,top:w,position:k}=y;x&&(r.value=!0),w!==void 0?C.scrollTo({left:0,top:w}):(k==="bottom"||k==="top")&&C.scrollTo({position:k})}function v(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",slient:y})}function p(y=!1){Yn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",slient:y})}nt(MT,{languageRef:xe(e,"language"),mergedHljsRef:h2(e),trimRef:xe(e,"trim"),highlightRef:o});const b={scrollTo:h},m=P(()=>{const{self:{loaderFontSize:y,loaderTextColor:C,loaderColor:x,loaderBorder:w,loadingColor:k},common:{cubicBezierEaseInOut:_}}=s.value;return{"--n-bezier":_,"--n-loader-font-size":y,"--n-loader-border":w,"--n-loader-color":x,"--n-loader-text-color":C,"--n-loading-color":k}}),g=n?Je("log",void 0,m,e):void 0;return Object.assign(Object.assign({},b),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:v,scrollToBottom:p,handleWheel:d,handleScroll:c,cssVars:n?void 0:m,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n==null||n(),u("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[u(rn,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>u(PP,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>u(are,{key:o,line:r}))})}),u(It,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?u(ire,{clsPrefix:e}):null})])}}),mc="n-menu",P0="n-submenu",$0="n-menu-item-group",fd=8;function T0(e){const t=Le(mc),{props:n,mergedCollapsedRef:r}=t,o=Le(P0,null),i=Le($0,null),a=P(()=>n.mode==="horizontal"),l=P(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=P(()=>{var h;return Math.max((h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize,n.iconSize)}),c=P(()=>{var h;return!a.value&&e.root&&r.value&&(h=n.collapsedIconSize)!==null&&h!==void 0?h:n.iconSize}),d=P(()=>{if(a.value)return;const{collapsedWidth:h,indent:v,rootIndent:p}=n,{root:b,isGroup:m}=e,g=p===void 0?v:p;if(b)return r.value?h/2-s.value/2:g;if(i)return v/2+i.paddingLeftRef.value;if(o)return(m?v/2:v)+o.paddingLeftRef.value}),f=P(()=>{const{collapsedWidth:h,indent:v,rootIndent:p}=n,{value:b}=s,{root:m}=e;return a.value||!m||!r.value?fd:(p===void 0?v:p)+b+fd-(h+b)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:f,NMenu:t,NSubmenu:o}}const O0={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},FT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),cre=J({name:"MenuOptionGroup",props:FT,setup(e){nt(P0,null);const t=T0(e);nt($0,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:r}=Le(mc);return function(){const{value:o}=n,i=t.paddingLeft.value,{nodeProps:a}=r,l=a==null?void 0:a(e.tmNode.rawNode);return u("div",{class:`${o}-menu-item-group`,role:"group"},u("div",Object.assign({},l,{class:[`${o}-menu-item-group-title`,l==null?void 0:l.class],style:[(l==null?void 0:l.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),jt(e.title),e.extra?u($t,null," ",jt(e.extra)):null),u("div",null,e.tmNodes.map(s=>z0(s,r))))}}}),DT=J({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Le(mc);return{menuProps:t,style:P(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:P(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):jt(this.icon);return u("div",{onClick:l=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&u("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),u("div",{class:`${e}-menu-item-content-header`,role:"none"},r?r(t.rawNode):jt(this.title),this.extra||o?u("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):jt(this.extra)):null),this.showArrow?u(st,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):u(fW,null)}):null)}}),AT=Object.assign(Object.assign({},O0),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),dre=J({name:"Submenu",props:AT,setup(e){const t=T0(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=P(()=>{const{disabled:h}=e;return r!=null&&r.mergedDisabledRef.value||o.disabled?!0:h}),s=D(!1);nt(P0,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),nt($0,null);function c(){const{onClick:h}=e;h&&h()}function d(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(h){s.value=h}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>n.activePathRef.value.includes(e.internalKey)),collapsed:P(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:P(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:f,title:h,childActive:v,icon:p,handleClick:b,menuProps:{nodeProps:m},dropdownShow:g,iconMarginRight:y,tmNode:C,mergedClsPrefix:x}=this,w=m==null?void 0:m(C.rawNode);return u("div",Object.assign({},w,{class:[`${x}-menu-item`,w==null?void 0:w.class],role:"menuitem"}),u(DT,{tmNode:C,paddingLeft:l,collapsed:s,disabled:c,iconMarginRight:y,maxIconSize:d,activeIconSize:f,title:h,extra:this.extra,showArrow:!a,childActive:v,clsPrefix:x,icon:p,hover:g,onClick:b}))},i=()=>u(Ro,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:u("div",{class:`${t}-submenu-children`,role:"menu"},a.map(s=>z0(s,this.menuProps)))}});return this.root?u(p0,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),this.isHorizontal?null:i())}):u("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},o(),i())}}),BT=Object.assign(Object.assign({},O0),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),ure=J({name:"MenuOption",props:BT,setup(e){const t=T0(e),{NSubmenu:n,NMenu:r}=t,{props:o,mergedClsPrefixRef:i,mergedCollapsedRef:a}=r,l=n?n.mergedDisabledRef:{value:!1},s=P(()=>l.value||e.disabled);function c(f){const{onClick:h}=e;h&&h(f)}function d(f){s.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),c(f))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:o,dropdownEnabled:it(()=>e.root&&a.value&&o.mode!=="horizontal"&&!s.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:s,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o==null?void 0:o(n.rawNode);return u("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),u(ph,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):jt(this.title),trigger:()=>u(DT,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),fre=J({name:"MenuDivider",setup(){const e=Le(mc),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:u("div",{class:`${t.value}-menu-divider`})}}),hre=Nn(FT),vre=Nn(BT),pre=Nn(AT);function ET(e){return e.type==="divider"||e.type==="render"}function gre(e){return e.type==="divider"}function z0(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(ET(n))return gre(n)?u(fre,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,s=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?u(cre,mn(s,hre,{tmNode:e,tmNodes:e.children,key:i})):u(dre,mn(s,pre,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):u(ure,mn(s,vre,{key:i,tmNode:e}))}const hS=[O("&::before","background-color: var(--n-item-color-hover);"),M("arrow",` - color: var(--n-arrow-color-hover); - `),M("icon",` - color: var(--n-item-icon-color-hover); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[O("a",` - color: var(--n-item-text-color-hover); - `),M("extra",` - color: var(--n-item-text-color-hover); - `)])],vS=[M("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),S("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[O("a",` - color: var(--n-item-text-color-hover-horizontal); - `),M("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],mre=O([S("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[F("horizontal",` - display: inline-flex; - padding-bottom: 0; - `,[S("submenu","margin: 0;"),S("menu-item","margin: 0;"),S("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[O("&::before","display: none;"),F("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),S("menu-item-content",[F("selected",[M("icon","color: var(--n-item-icon-color-active-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[O("a","color: var(--n-item-text-color-active-horizontal);"),M("extra","color: var(--n-item-text-color-active-horizontal);")])]),F("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[O("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),M("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),M("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",vS)]),F("selected",[Ji(null,[M("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),F("child-active",[Ji(null,[M("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[O("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),M("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ji("border-bottom: 2px solid var(--n-border-color-horizontal);",vS)]),S("menu-item-content-header",[O("a","color: var(--n-item-text-color-horizontal);")])])]),F("collapsed",[S("menu-item-content",[F("selected",[O("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),S("menu-item-content-header","opacity: 0;"),M("arrow","opacity: 0;"),M("icon","color: var(--n-item-icon-color-collapsed);")])]),S("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),S("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("> *","z-index: 1;"),O("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),F("disabled",` - opacity: .45; - cursor: not-allowed; - `),F("collapsed",[M("arrow","transform: rotate(0);")]),F("selected",[O("&::before","background-color: var(--n-item-color-active);"),M("arrow","color: var(--n-arrow-color-active);"),M("icon","color: var(--n-item-icon-color-active);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[O("a","color: var(--n-item-text-color-active);"),M("extra","color: var(--n-item-text-color-active);")])]),F("child-active",[S("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[O("a",` - color: var(--n-item-text-color-child-active); - `),M("extra",` - color: var(--n-item-text-color-child-active); - `)]),M("arrow",` - color: var(--n-arrow-color-child-active); - `),M("icon",` - color: var(--n-item-icon-color-child-active); - `)]),pt("disabled",[pt("selected, child-active",[O("&:focus-within",hS)]),F("selected",[Ji(null,[M("arrow","color: var(--n-arrow-color-active-hover);"),M("icon","color: var(--n-item-icon-color-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[O("a","color: var(--n-item-text-color-active-hover);"),M("extra","color: var(--n-item-text-color-active-hover);")])])]),F("child-active",[Ji(null,[M("arrow","color: var(--n-arrow-color-child-active-hover);"),M("icon","color: var(--n-item-icon-color-child-active-hover);"),S("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[O("a","color: var(--n-item-text-color-child-active-hover);"),M("extra","color: var(--n-item-text-color-child-active-hover);")])])]),F("selected",[Ji(null,[O("&::before","background-color: var(--n-item-color-active-hover);")])]),Ji(null,hS)]),M("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),M("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),S("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: var(--n-item-text-color); - `,[O("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[O("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),M("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),S("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[S("menu-item-content",` - height: var(--n-item-height); - `),S("submenu-children",` - overflow: hidden; - padding: 0; - `,[jo({duration:".2s"})])]),S("menu-item-group",[S("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),S("menu-tooltip",[O("a",` - color: inherit; - text-decoration: none; - `)]),S("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Ji(e,t){return[F("hover",e,t),O("&:hover",e,t)]}const LT=Object.assign(Object.assign({},Se.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,defalut:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array,dropdownPlacement:{type:String,default:"bottom"}}),bre=J({name:"Menu",props:LT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Menu","-menu",mre,vte,e,t),o=Le(bT,null),i=P(()=>{var T;const{collapsed:$}=e;if($!==void 0)return $;if(o){const{collapseModeRef:R,collapsedRef:I}=o;if(R.value==="width")return(T=I.value)!==null&&T!==void 0?T:!1}return!1}),a=P(()=>{const{keyField:T,childrenField:$,disabledField:R}=e;return to(e.items||e.options,{getIgnored(I){return ET(I)},getChildren(I){return I[$]},getDisabled(I){return I[R]},getKey(I){var z;return(z=I[T])!==null&&z!==void 0?z:I.name}})}),l=P(()=>new Set(a.value.treeNodes.map(T=>T.key))),{watchProps:s}=e,c=D(null);s!=null&&s.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=xe(e,"value"),f=wt(d,c),h=D([]),v=()=>{h.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Ft(v):v();const p=Ri(e,["expandedNames","expandedKeys"]),b=wt(p,h),m=P(()=>a.value.treeNodes),g=P(()=>a.value.getPath(f.value).keyPath);nt(mc,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:b,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:P(()=>e.mode==="horizontal"),invertedRef:xe(e,"inverted"),doSelect:y,toggleExpand:x});function y(T,$){const{"onUpdate:value":R,onUpdateValue:I,onSelect:z}=e;I&&he(I,T,$),R&&he(R,T,$),z&&he(z,T,$),c.value=T}function C(T){const{"onUpdate:expandedKeys":$,onUpdateExpandedKeys:R,onExpandedNamesChange:I,onOpenNamesChange:z}=e;$&&he($,T),R&&he(R,T),I&&he(I,T),z&&he(z,T),h.value=T}function x(T){const $=Array.from(b.value),R=$.findIndex(I=>I===T);if(~R)$.splice(R,1);else{if(e.accordion&&l.value.has(T)){const I=$.findIndex(z=>l.value.has(z));I>-1&&$.splice(I,1)}$.push(T)}C($)}const w=T=>{const $=a.value.getPath(T!=null?T:f.value,{includeSelf:!1}).keyPath;if(!$.length)return;const R=Array.from(b.value),I=new Set([...R,...$]);e.accordion&&l.value.forEach(z=>{I.has(z)&&!$.includes(z)&&I.delete(z)}),C(Array.from(I))},k=P(()=>{const{inverted:T}=e,{common:{cubicBezierEaseInOut:$},self:R}=r.value,{borderRadius:I,borderColorHorizontal:z,fontSize:A,itemHeight:L,dividerColor:j}=R,E={"--n-divider-color":j,"--n-bezier":$,"--n-font-size":A,"--n-border-color-horizontal":z,"--n-border-radius":I,"--n-item-height":L};return T?(E["--n-group-text-color"]=R.groupTextColorInverted,E["--n-color"]=R.colorInverted,E["--n-item-text-color"]=R.itemTextColorInverted,E["--n-item-text-color-hover"]=R.itemTextColorHoverInverted,E["--n-item-text-color-active"]=R.itemTextColorActiveInverted,E["--n-item-text-color-child-active"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveInverted,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHoverInverted,E["--n-item-icon-color"]=R.itemIconColorInverted,E["--n-item-icon-color-hover"]=R.itemIconColorHoverInverted,E["--n-item-icon-color-active"]=R.itemIconColorActiveInverted,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHoverInverted,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActiveInverted,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHoverInverted,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsedInverted,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontalInverted,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontalInverted,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontalInverted,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontalInverted,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontalInverted,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontalInverted,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontalInverted,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontalInverted,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontalInverted,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontalInverted,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontalInverted,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontalInverted,E["--n-arrow-color"]=R.arrowColorInverted,E["--n-arrow-color-hover"]=R.arrowColorHoverInverted,E["--n-arrow-color-active"]=R.arrowColorActiveInverted,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHoverInverted,E["--n-arrow-color-child-active"]=R.arrowColorChildActiveInverted,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHoverInverted,E["--n-item-color-hover"]=R.itemColorHoverInverted,E["--n-item-color-active"]=R.itemColorActiveInverted,E["--n-item-color-active-hover"]=R.itemColorActiveHoverInverted,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsedInverted):(E["--n-group-text-color"]=R.groupTextColor,E["--n-color"]=R.color,E["--n-item-text-color"]=R.itemTextColor,E["--n-item-text-color-hover"]=R.itemTextColorHover,E["--n-item-text-color-active"]=R.itemTextColorActive,E["--n-item-text-color-child-active"]=R.itemTextColorChildActive,E["--n-item-text-color-child-active-hover"]=R.itemTextColorChildActiveHover,E["--n-item-text-color-active-hover"]=R.itemTextColorActiveHover,E["--n-item-icon-color"]=R.itemIconColor,E["--n-item-icon-color-hover"]=R.itemIconColorHover,E["--n-item-icon-color-active"]=R.itemIconColorActive,E["--n-item-icon-color-active-hover"]=R.itemIconColorActiveHover,E["--n-item-icon-color-child-active"]=R.itemIconColorChildActive,E["--n-item-icon-color-child-active-hover"]=R.itemIconColorChildActiveHover,E["--n-item-icon-color-collapsed"]=R.itemIconColorCollapsed,E["--n-item-text-color-horizontal"]=R.itemTextColorHorizontal,E["--n-item-text-color-hover-horizontal"]=R.itemTextColorHoverHorizontal,E["--n-item-text-color-active-horizontal"]=R.itemTextColorActiveHorizontal,E["--n-item-text-color-child-active-horizontal"]=R.itemTextColorChildActiveHorizontal,E["--n-item-text-color-child-active-hover-horizontal"]=R.itemTextColorChildActiveHoverHorizontal,E["--n-item-text-color-active-hover-horizontal"]=R.itemTextColorActiveHoverHorizontal,E["--n-item-icon-color-horizontal"]=R.itemIconColorHorizontal,E["--n-item-icon-color-hover-horizontal"]=R.itemIconColorHoverHorizontal,E["--n-item-icon-color-active-horizontal"]=R.itemIconColorActiveHorizontal,E["--n-item-icon-color-active-hover-horizontal"]=R.itemIconColorActiveHoverHorizontal,E["--n-item-icon-color-child-active-horizontal"]=R.itemIconColorChildActiveHorizontal,E["--n-item-icon-color-child-active-hover-horizontal"]=R.itemIconColorChildActiveHoverHorizontal,E["--n-arrow-color"]=R.arrowColor,E["--n-arrow-color-hover"]=R.arrowColorHover,E["--n-arrow-color-active"]=R.arrowColorActive,E["--n-arrow-color-active-hover"]=R.arrowColorActiveHover,E["--n-arrow-color-child-active"]=R.arrowColorChildActive,E["--n-arrow-color-child-active-hover"]=R.arrowColorChildActiveHover,E["--n-item-color-hover"]=R.itemColorHover,E["--n-item-color-active"]=R.itemColorActive,E["--n-item-color-active-hover"]=R.itemColorActiveHover,E["--n-item-color-active-collapsed"]=R.itemColorActiveCollapsed),E}),_=n?Je("menu",P(()=>e.inverted?"a":"b"),k,e):void 0;return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:h,mergedExpandedKeys:b,uncontrolledValue:c,mergedValue:f,activePath:g,tmNodes:m,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showOption:w}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;return r==null||r(),u("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(o=>z0(o,this.$props)))}});function yre(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!rr)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t==null?void 0:t.debug;if(l){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const c=s.style,d=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(p=>{if(f&&p==="lineHeight")if(d.boxSizing==="border-box"){const b=parseInt(d.height),m=parseInt(d.paddingTop)+parseInt(d.paddingBottom)+parseInt(d.borderTopWidth)+parseInt(d.borderBottomWidth),g=m+parseInt(d.lineHeight);b>g?c.lineHeight=`${b-m}px`:b===g?c.lineHeight=d.lineHeight:c.lineHeight="0"}else c.lineHeight=d.height;else c[p]=d[p]}),a?e.scrollHeight>parseInt(d.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,o),f&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g,"\xA0"));const h=document.createElement("span");h.textContent=e.value.substring(o)||".",h.style.position="relative",h.style.left=`${-e.scrollLeft}px`,h.style.top=`${-e.scrollTop}px`,s.appendChild(h);const v={top:h.offsetTop+parseInt(d.borderTopWidth),left:h.offsetLeft+parseInt(d.borderLeftWidth),absolute:!1,height:parseInt(d.fontSize)*1.5};return l?h.style.backgroundColor="#aaa":document.body.removeChild(s),v.left>=e.clientWidth&&t.checkWidthOverflow&&(v.left=e.clientWidth),v}const xre=O([S("mention","width: 100%; z-index: auto; position: relative;"),S("mention-menu",` - box-shadow: var(--n-menu-box-shadow); - `,[$n({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),NT=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Yn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),wre=J({name:"Mention",props:NT,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=He(e),i=Se("Mention","-mention",xre,dte,e,n),a=xn(e),l=D(null),s=D(null),c=D(null),d=D("");let f=null,h=null,v=null;const p=P(()=>{const{value:ee}=d;return e.options.filter(ue=>ee?typeof ue.label=="string"?ue.label.startsWith(ee):typeof ue.value=="string"?ue.value.startsWith(ee):!1:!0)}),b=P(()=>to(p.value,{getKey:ee=>ee.value})),m=D(null),g=D(!1),y=D(e.defaultValue),C=xe(e,"value"),x=wt(C,y),w=P(()=>{const{self:{menuBoxShadow:ee}}=i.value;return{"--n-menu-box-shadow":ee}}),k=o?Je("mention",void 0,w,e):void 0;function _(ee){if(e.disabled)return;const{onUpdateShow:ue,"onUpdate:show":de}=e;ue&&he(ue,ee),de&&he(de,ee),ee||(f=null,h=null,v=null),g.value=ee}function T(ee){const{onUpdateValue:ue,"onUpdate:value":de}=e,{nTriggerFormChange:Ce,nTriggerFormInput:we}=a;de&&he(de,ee),ue&&he(ue,ee),we(),Ce(),y.value=ee}function $(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function R(){var ee;const ue=$();if(document.activeElement!==ue){_(!1);return}const{selectionEnd:de}=ue;if(de===null){_(!1);return}const Ce=ue.value,{separator:we}=e,{prefix:me}=e,Oe=typeof me=="string"?[me]:me;for(let ke=de-1;ke>=0;--ke){const pe=Ce[ke];if(pe===we||pe===` -`||pe==="\r"){_(!1);return}if(Oe.includes(pe)){const Me=Ce.slice(ke+1,de);_(!0),(ee=e.onSearch)===null||ee===void 0||ee.call(e,Me,pe),d.value=Me,f=pe,h=ke+1,v=de;return}}_(!1)}function I(){const{value:ee}=s;if(!ee)return;const ue=$(),de=yre(ue);de.left+=ue.parentElement.offsetLeft,ee.style.left=`${de.left}px`,ee.style.top=`${de.top+de.height}px`}function z(){var ee;!g.value||(ee=c.value)===null||ee===void 0||ee.syncPosition()}function A(ee){T(ee),L()}function L(){setTimeout(()=>{I(),R(),_t().then(z)},0)}function j(ee){var ue,de;if(ee.key==="ArrowLeft"||ee.key==="ArrowRight"){if(!((ue=l.value)===null||ue===void 0)&&ue.isCompositing)return;L()}else if(ee.key==="ArrowUp"||ee.key==="ArrowDown"||ee.key==="Enter"){if(!((de=l.value)===null||de===void 0)&&de.isCompositing)return;const{value:Ce}=m;if(g.value){if(Ce)if(ee.preventDefault(),ee.key==="ArrowUp")Ce.prev();else if(ee.key==="ArrowDown")Ce.next();else{const we=Ce.getPendingTmNode();we?V(we):_(!1)}}else L()}}function E(ee){const{onFocus:ue}=e;ue==null||ue(ee);const{nTriggerFormFocus:de}=a;de(),L()}function U(){var ee;(ee=l.value)===null||ee===void 0||ee.focus()}function K(){var ee;(ee=l.value)===null||ee===void 0||ee.blur()}function Q(ee){const{onBlur:ue}=e;ue==null||ue(ee);const{nTriggerFormBlur:de}=a;de(),_(!1)}function V(ee){var ue;if(f===null||h===null||v===null)return;const{rawNode:{value:de=""}}=ee,Ce=$(),we=Ce.value,{separator:me}=e,Oe=we.slice(v),ke=Oe.startsWith(me),pe=`${de}${ke?"":me}`;T(we.slice(0,h)+pe+Oe),(ue=e.onSelect)===null||ue===void 0||ue.call(e,ee.rawNode,f);const Me=h+pe.length+(ke?1:0);_t().then(()=>{Ce.selectionStart=Me,Ce.selectionEnd=Me,R()})}function re(){e.disabled||L()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:b,selectMenuInstRef:m,inputInstRef:l,cursorRef:s,followerRef:c,showMenu:g,adjustedTo:Lt(e),isMounted:An(),mergedValue:x,handleInputFocus:E,handleInputBlur:Q,handleInputUpdateValue:A,handleInputKeyDown:j,handleSelect:V,handleInputMouseDown:re,focus:U,blur:K,cssVars:o?void 0:w,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-mention`},u(In,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{style:{position:"absolute",width:0,height:0},ref:"cursorRef"})}),u(Sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o==null||o(),this.showMenu?u(cc,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),HT={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},jT="n-message-api",VT="n-message-provider",Cre=O([S("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[jo({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),S("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[M("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),M("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>F(`${e}-type`,[O("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),O("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()])]),M("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[O("&:hover",` - color: var(--n-close-icon-color-hover); - `),O("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),S("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[F("top",` - top: 12px; - left: 0; - right: 0; - `),F("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),F("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),F("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),F("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),F("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),Sre={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},_re=J({name:"Message",props:Object.assign(Object.assign({},HT),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=He(e),{props:r,mergedClsPrefixRef:o}=Le(VT),i=Zt("Message",n,o),a=Se("Message","-message",Cre,qee,r,o),l=P(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:f,margin:h,maxWidth:v,iconMargin:p,closeMargin:b,closeSize:m,iconSize:g,fontSize:y,lineHeight:C,borderRadius:x,iconColorInfo:w,iconColorSuccess:k,iconColorWarning:_,iconColorError:T,iconColorLoading:$,closeIconSize:R,closeBorderRadius:I,[ye("textColor",c)]:z,[ye("boxShadow",c)]:A,[ye("color",c)]:L,[ye("closeColorHover",c)]:j,[ye("closeColorPressed",c)]:E,[ye("closeIconColor",c)]:U,[ye("closeIconColorPressed",c)]:K,[ye("closeIconColorHover",c)]:Q}}=a.value;return{"--n-bezier":d,"--n-margin":h,"--n-padding":f,"--n-max-width":v,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":g,"--n-close-icon-size":R,"--n-close-border-radius":I,"--n-close-size":m,"--n-close-margin":b,"--n-text-color":z,"--n-color":L,"--n-box-shadow":A,"--n-icon-color-info":w,"--n-icon-color-success":k,"--n-icon-color-warning":_,"--n-icon-color-error":T,"--n-icon-color-loading":$,"--n-close-color-hover":j,"--n-close-color-pressed":E,"--n-close-icon-color":U,"--n-close-icon-color-pressed":K,"--n-close-icon-color-hover":Q,"--n-line-height":C,"--n-border-radius":x}}),s=t?Je("message",P(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:c,showIcon:d}=this;l==null||l();let f;return u("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):u("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=kre(s,t,o))&&d?u("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},u(ko,null,{default:()=>f})):null,u("div",{class:`${o}-message__content`},jt(r)),n?u(Go,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function kre(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?u(eo,{clsPrefix:n,strokeWidth:24,scale:.85}):Sre[t]();return r?u(st,{clsPrefix:n,key:t},{default:()=>r}):null}}const Rre=J({name:"MessageEnvironment",props:Object.assign(Object.assign({},HT),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=D(!0);Mt(()=>{r()});function r(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function o(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&r()}function a(){const{onHide:d}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function l(){const{onClose:d}=e;d&&d(),a()}function s(){const{onAfterLeave:d,onInternalAfterLeave:f,onAfterHide:h,internalKey:v}=e;d&&d(),f&&f(v),h&&h()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return u(Ro,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?u(_re,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),UT=Object.assign(Object.assign({},Se.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),WT=J({name:"MessageProvider",props:UT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r=D({}),o={create(s,c){return i(s,Object.assign({type:"default"},c))},info(s,c){return i(s,Object.assign(Object.assign({},c),{type:"info"}))},success(s,c){return i(s,Object.assign(Object.assign({},c),{type:"success"}))},warning(s,c){return i(s,Object.assign(Object.assign({},c),{type:"warning"}))},error(s,c){return i(s,Object.assign(Object.assign({},c),{type:"error"}))},loading(s,c){return i(s,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};nt(VT,{props:e,mergedClsPrefixRef:t}),nt(jT,o);function i(s,c){const d=Cr(),f=Fi(Object.assign(Object.assign({},c),{content:s,key:d,destroy:()=>{var v;(v=r.value[d])===null||v===void 0||v.hide()}})),{max:h}=e;return h&&n.value.length>=h&&n.value.shift(),n.value.push(f),f}function a(s){n.value.splice(n.value.findIndex(c=>c.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(r=>u(Rre,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Aa(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function KT(){const e=Le(jT,null);return e===null&&Dn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const _h="n-notification-provider",Pre=J({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Le(_h),r=D(null);return Ft(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return u("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),$re={info:()=>u(Ii,null),success:()=>u(Va,null),warning:()=>u(Ai,null),error:()=>u(ja,null),default:()=>null},M0={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},Tre=Nn(M0),Ore=J({name:"Notification",props:M0,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Le(_h),{inlineThemeDisabled:o,mergedRtlRef:i}=He(),a=Zt("Notification",i,t),l=P(()=>{const{type:c}=e,{self:{color:d,textColor:f,closeIconColor:h,closeIconColorHover:v,closeIconColorPressed:p,headerTextColor:b,descriptionTextColor:m,actionTextColor:g,borderRadius:y,headerFontWeight:C,boxShadow:x,lineHeight:w,fontSize:k,closeMargin:_,closeSize:T,width:$,padding:R,closeIconSize:I,closeBorderRadius:z,closeColorHover:A,closeColorPressed:L,titleFontSize:j,metaFontSize:E,descriptionFontSize:U,[ye("iconColor",c)]:K},common:{cubicBezierEaseOut:Q,cubicBezierEaseIn:V,cubicBezierEaseInOut:re}}=n.value,{left:ee,right:ue,top:de,bottom:Ce}=yi(R);return{"--n-color":d,"--n-font-size":k,"--n-text-color":f,"--n-description-text-color":m,"--n-action-text-color":g,"--n-title-text-color":b,"--n-title-font-weight":C,"--n-bezier":re,"--n-bezier-ease-out":Q,"--n-bezier-ease-in":V,"--n-border-radius":y,"--n-box-shadow":x,"--n-close-border-radius":z,"--n-close-color-hover":A,"--n-close-color-pressed":L,"--n-close-icon-color":h,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":p,"--n-line-height":w,"--n-icon-color":K,"--n-close-margin":_,"--n-close-size":T,"--n-close-icon-size":I,"--n-width":$,"--n-padding-left":ee,"--n-padding-right":ue,"--n-padding-top":de,"--n-padding-bottom":Ce,"--n-title-font-size":j,"--n-meta-font-size":E,"--n-description-font-size":U}}),s=o?Je("notification",P(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:P(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},u("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?u("div",{class:`${t}-notification__avatar`},this.avatar?jt(this.avatar):this.type!=="default"?u(st,{clsPrefix:t},{default:()=>$re[this.type]()}):null):null,this.closable?u(Go,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,u("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?u("div",{class:`${t}-notification-main__header`},jt(this.title)):null,this.description?u("div",{class:`${t}-notification-main__description`},jt(this.description)):null,this.content?u("pre",{class:`${t}-notification-main__content`},jt(this.content)):null,this.meta||this.action?u("div",{class:`${t}-notification-main-footer`},this.meta?u("div",{class:`${t}-notification-main-footer__meta`},jt(this.meta)):null,this.action?u("div",{class:`${t}-notification-main-footer__action`},jt(this.action)):null):null)))}}),zre=Object.assign(Object.assign({},M0),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),Mre=J({name:"NotificationEnvironment",props:Object.assign(Object.assign({},zre),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Le(_h),n=D(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,_t(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function a(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:b,onAfterShow:m}=e;b&&b(),m&&m()}function l(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function s(p){const{onHide:b}=e;b&&b(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:b,onAfterHide:m,internalKey:g}=e;p&&p(),b(g),m&&m()}function d(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function h(p){p.currentTarget===p.target&&d()}function v(){const{onClose:p}=e;p?Promise.resolve(p()).then(b=>{b!==!1&&o()}):o()}return Mt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:v,handleAfterLeave:c,handleLeave:s,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:h}},render(){return u(It,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?u(Ore,Object.assign({},mn(this.$props,Tre),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),Ire=O([S("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[O(">",[S("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[O(">",[S("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[S("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),F("top, top-right, top-left",` - top: 12px; - `,[O("&.transitioning >",[S("scrollbar",[O(">",[S("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),F("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[O(">",[S("scrollbar",[O(">",[S("scrollbar-container",[S("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),S("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),F("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),F("top",[S("notification-wrapper",` - transform-origin: top center; - `)]),F("bottom",[S("notification-wrapper",` - transform-origin: bottom center; - `)]),F("top-right, bottom-right",[S("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),F("top-left, bottom-left",[S("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),F("top-right",` - right: 0; - `,[hd("top-right")]),F("top-left",` - left: 0; - `,[hd("top-left")]),F("bottom-right",` - right: 0; - `,[hd("bottom-right")]),F("bottom-left",` - left: 0; - `,[hd("bottom-left")]),F("scrollable",[F("top-right",` - top: 0; - `),F("top-left",` - top: 0; - `),F("bottom-right",` - bottom: 0; - `),F("bottom-left",` - bottom: 0; - `)]),S("notification-wrapper",` - margin-bottom: 12px; - `,[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),O("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),O("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),S("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[M("avatar",[S("icon",{color:"var(--n-icon-color)"}),S("base-icon",{color:"var(--n-icon-color)"})]),F("show-avatar",[S("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),F("closable",[S("notification-main",[O("> *:first-child",{paddingRight:"20px"})]),M("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[S("icon","transition: color .3s var(--n-bezier);")]),S("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[S("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[M("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),M("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),M("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),M("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[O("&:first-child",{margin:0})])])])])]);function hd(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",r="0";return S("notification-wrapper",[O("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${n}, 0); - `),O("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(${r}, 0); - `)])}const qT="n-notification-api",YT=Object.assign(Object.assign({},Se.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),XT=J({name:"NotificationProvider",props:YT,setup(e){const{mergedClsPrefixRef:t}=He(e),n=D([]),r={},o=new Set;function i(v){const p=Cr(),b=()=>{o.add(p),r[p]&&r[p].hide()},m=Fi(Object.assign(Object.assign({},v),{key:p,destroy:b,hide:b,deactivate:b})),{max:g}=e;if(g&&n.value.length-o.size>=g){let y=!1,C=0;for(const x of n.value){if(!o.has(x.key)){r[x.key]&&(x.destroy(),y=!0);break}C++}y||n.value.splice(C,1)}return n.value.push(m),m}const a=["info","success","warning","error"].map(v=>p=>i(Object.assign(Object.assign({},p),{type:v})));function l(v){o.delete(v),n.value.splice(n.value.findIndex(p=>p.key===v),1)}const s=Se("Notification","-notification",Ire,Vee,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:h},d=D(0);nt(qT,c),nt(_h,{props:e,mergedClsPrefixRef:t,mergedThemeRef:s,wipTransitionCountRef:d});function f(v){return i(v)}function h(){Object.values(n.value).forEach(v=>{v.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return u($t,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?u(Js,{to:(n=this.to)!==null&&n!==void 0?n:"body"},u(Pre,{style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>u(Mre,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Aa(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function GT(){const e=Le(qT,null);return e===null&&Dn("use-notification","No outer `n-notification-provider` found."),e}const Fre=O([S("page-header-header",` - margin-bottom: 20px; - `),S("page-header",` - display: flex; - align-items: center; - justify-content: space-between; - line-height: 1.5; - font-size: var(--n-font-size); - `,[M("main",` - display: flex; - flex-wrap: nowrap; - align-items: center; - `),M("back",` - display: flex; - margin-right: 16px; - font-size: var(--n-back-size); - cursor: pointer; - color: var(--n-back-color); - transition: color .3s var(--n-bezier); - `,[O("&:hover","color: var(--n-back-color-hover);"),O("&:active","color: var(--n-back-color-pressed);")]),M("avatar",` - display: flex; - margin-right: 12px - `),M("title",` - margin-right: 16px; - transition: color .3s var(--n-bezier); - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("subtitle",` - font-size: 14px; - transition: color .3s var(--n-bezier); - color: var(--n-subtitle-text-color); - `)]),S("page-header-content",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")]),S("page-header-footer",` - font-size: var(--n-font-size); - `,[O("&:not(:first-child)","margin-top: 20px;")])]),ZT=Object.assign(Object.assign({},Se.props),{title:String,subtitle:String,extra:String,onBack:Function}),Dre=J({name:"PageHeader",props:ZT,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=He(e),o=Se("PageHeader","-page-header",Fre,mte,e,t),i=Zt("PageHeader",n,t),a=P(()=>{const{self:{titleTextColor:s,subtitleTextColor:c,backColor:d,fontSize:f,titleFontSize:h,backSize:v,titleFontWeight:p,backColorHover:b,backColorPressed:m},common:{cubicBezierEaseInOut:g}}=o.value;return{"--n-title-text-color":s,"--n-title-font-size":h,"--n-title-font-weight":p,"--n-font-size":f,"--n-back-size":v,"--n-subtitle-text-color":c,"--n-back-color":d,"--n-back-color-hover":b,"--n-back-color-pressed":m,"--n-bezier":g}}),l=r?Je("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:s,subtitle:c,extra:d,default:f,header:h,avatar:v,footer:p,back:b}=l,m=t,g=n||s,y=r||c,C=o||d;return u("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},h?u("div",{class:`${i}-page-header-header`,key:"breadcrumb"},h()):null,(m||v||g||y||C)&&u("div",{class:`${i}-page-header`,key:"header"},u("div",{class:`${i}-page-header__main`,key:"back"},m?u("div",{class:`${i}-page-header__back`,onClick:t},b?b():u(st,{clsPrefix:i},{default:()=>u(pW,null)})):null,v?u("div",{class:`${i}-page-header__avatar`},v()):null,g?u("div",{class:`${i}-page-header__title`,key:"title"},n||s()):null,y?u("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),C?u("div",{class:`${i}-page-header__extra`},o||d()):null),f?u("div",{class:`${i}-page-header-content`,key:"content"},f()):null,p?u("div",{class:`${i}-page-header-footer`,key:"footer"},p()):null)}}),QT="n-popconfirm",JT={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},pS=Nn(JT),Are=J({name:"NPopconfirmPanel",props:JT,setup(e){const{localeRef:t}=yn("Popconfirm"),{inlineThemeDisabled:n}=He(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Le(QT),a=P(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:c,iconSize:d,iconColor:f}}=o.value;return{"--n-bezier":s,"--n-font-size":c,"--n-icon-size":d,"--n-icon-color":f}}),l=n?Je("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},yn("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:P(()=>e.positiveText||t.value.positiveText),localizedNegativeText:P(()=>e.negativeText||t.value.negativeText),positiveButtonProps:xe(i,"positiveButtonProps"),negativeButtonProps:xe(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=vt(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&u(Pt,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&u(Pt,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},Ct(r.default,i=>n||i?u("div",{class:`${t}-popconfirm__body`},n?u("div",{class:`${t}-popconfirm__icon`},vt(r.icon,()=>[u(st,{clsPrefix:t},{default:()=>u(Ai,null)})])):null,i):null),o?u("div",{class:[`${t}-popconfirm__action`]},o):null)}}),Bre=S("popconfirm",[M("body",` - font-size: var(--n-font-size); - display: flex; - align-items: center; - flex-wrap: nowrap; - position: relative; - `,[M("icon",` - display: flex; - font-size: var(--n-icon-size); - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - margin: 0 8px 0 0; - `)]),M("action",` - display: flex; - justify-content: flex-end; - `,[O("&:not(:first-child)","margin-top: 8px"),S("button",[O("&:not(:last-child)","margin-right: 8px;")])])]),eO=Object.assign(Object.assign(Object.assign({},Se.props),Ma),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),Ere=J({name:"Popconfirm",props:eO,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=He(),n=Se("Popconfirm","-popconfirm",Bre,wte,e,t),r=D(null);function o(l){const{onPositiveClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}function i(l){const{onNegativeClick:s,"onUpdate:show":c}=e;Promise.resolve(s?s(l):!0).then(d=>{var f;d!==!1&&((f=r.value)===null||f===void 0||f.setShow(!1),c&&he(c,!1))})}return nt(QT,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),Object.assign(Object.assign({},{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}}),{mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i})},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return u(Wa,Aa(t,pS,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const r=mn(t,pS);return u(Are,Object.assign(Object.assign({},r),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),Lre=O([S("progress",{display:"inline-block"},[S("progress-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),F("line",` - width: 100%; - display: block; - `,[S("progress-content",` - display: flex; - align-items: center; - `,[S("progress-graph",{flex:1})]),S("progress-custom-content",{marginLeft:"14px"}),S("progress-icon",` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[F("as-text",` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),F("circle, dashboard",{width:"120px"},[S("progress-custom-content",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),S("progress-text",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),S("progress-icon",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),F("multiple-circle",` - width: 200px; - color: inherit; - `,[S("progress-text",` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),S("progress-content",{position:"relative"}),S("progress-graph",{position:"relative"},[S("progress-graph-circle",[O("svg",{verticalAlign:"bottom"}),S("progress-graph-circle-fill",` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[F("empty",{opacity:0})]),S("progress-graph-circle-rail",` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),S("progress-graph-line",[F("indicator-inside",[S("progress-graph-line-rail",` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[S("progress-graph-line-fill",` - height: inherit; - border-radius: 10px; - `),S("progress-graph-line-indicator",` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),F("indicator-inside-label",` - height: 16px; - display: flex; - align-items: center; - `,[S("progress-graph-line-rail",` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),S("progress-graph-line-indicator",` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("progress-graph-line-rail",` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[S("progress-graph-line-fill",` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[F("processing",[O("&::after",` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),O("@keyframes progress-processing-animation",` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),Nre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Hre=J({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=P(()=>Ot(e.height)),r=P(()=>e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):""),o=P(()=>e.fillBorderRadius!==void 0?Ot(e.fillBorderRadius):e.railBorderRadius!==void 0?Ot(e.railBorderRadius):e.height!==void 0?Ot(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:l,percentage:s,unit:c,indicatorTextColor:d,status:f,showIndicator:h,fillColor:v,processing:p,clsPrefix:b}=e;return u("div",{class:`${b}-progress-content`,role:"none"},u("div",{class:`${b}-progress-graph`,"aria-hidden":!0},u("div",{class:[`${b}-progress-graph-line`,{[`${b}-progress-graph-line--indicator-${i}`]:!0}]},u("div",{class:`${b}-progress-graph-line-rail`,style:[{backgroundColor:a,height:n.value,borderRadius:r.value},l]},u("div",{class:[`${b}-progress-graph-line-fill`,p&&`${b}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:v,height:n.value,lineHeight:n.value,borderRadius:o.value}},i==="inside"?u("div",{class:`${b}-progress-graph-line-indicator`,style:{color:d}},s,c):null)))),h&&i==="outside"?u("div",null,t.default?u("div",{class:`${b}-progress-custom-content`,style:{color:d},role:"none"},t.default()):f==="default"?u("div",{role:"none",class:`${b}-progress-icon ${b}-progress-icon--as-text`,style:{color:d}},s,c):u("div",{class:`${b}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:b},{default:()=>Nre[f]}))):null)}}}),jre={success:u(Va,null),error:u(ja,null),warning:u(Ai,null),info:u(Ii,null)},Vre=J({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(r,o,i){const{gapDegree:a,viewBoxWidth:l,strokeWidth:s}=e,c=50,d=0,f=c,h=0,v=2*c,p=50+s/2,b=`M ${p},${p} m ${d},${f} - a ${c},${c} 0 1 1 ${h},${-v} - a ${c},${c} 0 1 1 ${-h},${v}`,m=Math.PI*2*c,g={stroke:i,strokeDasharray:`${r/100*(m-a)}px ${l*8}px`,strokeDashoffset:`-${a/2}px`,transformOrigin:o?"center":void 0,transform:o?`rotate(${o}deg)`:void 0};return{pathString:b,pathStyle:g}}return()=>{const{fillColor:r,railColor:o,strokeWidth:i,offsetDegree:a,status:l,percentage:s,showIndicator:c,indicatorTextColor:d,unit:f,gapOffsetDegree:h,clsPrefix:v}=e,{pathString:p,pathStyle:b}=n(100,0,o),{pathString:m,pathStyle:g}=n(s,a,r),y=100+i;return u("div",{class:`${v}-progress-content`,role:"none"},u("div",{class:`${v}-progress-graph`,"aria-hidden":!0},u("div",{class:`${v}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},u("svg",{viewBox:`0 0 ${y} ${y}`},u("g",null,u("path",{class:`${v}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:b})),u("g",null,u("path",{class:[`${v}-progress-graph-circle-fill`,s===0&&`${v}-progress-graph-circle-fill--empty`],d:m,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:g}))))),c?u("div",null,t.default?u("div",{class:`${v}-progress-custom-content`,role:"none"},t.default()):l!=="default"?u("div",{class:`${v}-progress-icon`,"aria-hidden":!0},u(st,{clsPrefix:v},{default:()=>jre[l]})):u("div",{class:`${v}-progress-text`,style:{color:d},role:"none"},u("span",{class:`${v}-progress-text__percentage`},s),u("span",{class:`${v}-progress-text__unit`},f))):null)}}});function gS(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const Ure=J({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=P(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:r,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:l,railColor:s,railStyle:c,percentage:d,clsPrefix:f}=e;return u("div",{class:`${f}-progress-content`,role:"none"},u("div",{class:`${f}-progress-graph`,"aria-hidden":!0},u("div",{class:`${f}-progress-graph-circle`},u("svg",{viewBox:`0 0 ${r} ${r}`},d.map((h,v)=>u("g",{key:v},u("path",{class:`${f}-progress-graph-circle-rail`,d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:s[v]},c[v]]}),u("path",{class:[`${f}-progress-graph-circle-fill`,h===0&&`${f}-progress-graph-circle-fill--empty`],d:gS(r/2-o/2*(1+2*v)-i*v,o,r),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[v],strokeDashoffset:0,stroke:l[v]}})))))),a&&t.default?u("div",null,u("div",{class:`${f}-progress-text`},t.default())):null)}}}),tO=Object.assign(Object.assign({},Se.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),nO=J({name:"Progress",props:tO,setup(e){const t=P(()=>e.indicatorPlacement||e.indicatorPosition),n=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=He(e),i=Se("Progress","-progress",Lre,cT,e,r),a=P(()=>{const{status:s}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:d,fontSizeCircle:f,railColor:h,railHeight:v,iconSizeCircle:p,iconSizeLine:b,textColorCircle:m,textColorLineInner:g,textColorLineOuter:y,lineBgProcessing:C,fontWeightCircle:x,[ye("iconColor",s)]:w,[ye("fillColor",s)]:k}}=i.value;return{"--n-bezier":c,"--n-fill-color":k,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":x,"--n-icon-color":w,"--n-icon-size-circle":p,"--n-icon-size-line":b,"--n-line-bg-processing":C,"--n-rail-color":h,"--n-rail-height":v,"--n-text-color-circle":m,"--n-text-color-line-inner":g,"--n-text-color-line-outer":y}}),l=o?Je("progress",P(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:s,viewBoxWidth:c,strokeWidth:d,mergedIndicatorPlacement:f,unit:h,borderRadius:v,fillBorderRadius:p,height:b,processing:m,circleGap:g,mergedClsPrefix:y,gapDeg:C,gapOffsetDegree:x,themeClass:w,$slots:k,onRender:_}=this;return _==null||_(),u("div",{class:[w,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?u(Vre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:s,viewBoxWidth:c,strokeWidth:d,gapDegree:C===void 0?e==="dashboard"?75:0:C,gapOffsetDegree:x,unit:h},k):e==="line"?u(Hre,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:s,processing:m,indicatorPlacement:f,unit:h,fillBorderRadius:p,railBorderRadius:v,height:b},k):e==="multiple-circle"?u(Ure,{clsPrefix:y,strokeWidth:d,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:s,showIndicator:r,circleGap:g},k):null)}}),Wre=u("svg",{viewBox:"0 0 512 512"},u("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),Kre=S("rate",{display:"inline-flex",flexWrap:"nowrap"},[O("&:hover",[M("item",` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),M("item",` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[O("&:not(:first-child)",` - margin-left: 6px; - `),F("active",` - color: var(--n-item-color-active); - `)]),pt("readonly",` - cursor: pointer; - `,[M("item",[O("&:hover",` - transform: scale(1.05); - `),O("&:active",` - transform: scale(0.96); - `)])]),M("half",` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[F("active",` - color: var(--n-item-color-active); - `)])]),rO=Object.assign(Object.assign({},Se.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),qre=J({name:"Rate",props:rO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Rate","-rate",Kre,Rte,e,t),o=xe(e,"value"),i=D(e.defaultValue),a=D(null),l=xn(e),s=wt(o,i);function c(C){const{"onUpdate:value":x,onUpdateValue:w}=e,{nTriggerFormChange:k,nTriggerFormInput:_}=l;x&&he(x,C),w&&he(w,C),i.value=C,k(),_()}function d(C,x){return e.allowHalf?x.offsetX>=Math.floor(x.currentTarget.offsetWidth/2)?C+1:C+.5:C+1}let f=!1;function h(C,x){f||(a.value=d(C,x))}function v(){a.value=null}function p(C,x){var w;const{clearable:k}=e,_=d(C,x);k&&_===s.value?(f=!0,(w=e.onClear)===null||w===void 0||w.call(e),a.value=null,c(null)):c(_)}function b(){f=!1}const m=P(()=>{const{size:C}=e,{self:x}=r.value;return typeof C=="number"?`${C}px`:x[ye("size",C)]}),g=P(()=>{const{common:{cubicBezierEaseInOut:C},self:x}=r.value,{itemColor:w,itemColorActive:k}=x,{color:_}=e;return{"--n-bezier":C,"--n-item-color":w,"--n-item-color-active":_||k,"--n-item-size":m.value}}),y=n?Je("rate",P(()=>{const C=m.value,{color:x}=e;let w="";return C&&(w+=C[0]),x&&(w+=Pa(x)),w}),g,e):void 0;return{mergedClsPrefix:t,mergedValue:s,hoverIndex:a,handleMouseMove:h,handleClick:p,handleMouseLeave:v,handleMouseEnterSomeStar:b,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o==null||o(),u("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},B5(this.count,(a,l)=>{const s=i?i():u(st,{clsPrefix:r},{default:()=>Wre}),c=t!==null?l+1<=t:l+1<=(n||0);return u("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:d=>{this.handleClick(l,d)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:d=>{this.handleMouseMove(l,d)}},s,this.allowHalf?u("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},s):null)}))}}),Yre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),u("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),u("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),u("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),u("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),u("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),Xre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),u("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),u("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),Gre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),u("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),u("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),u("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),u("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),u("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),Zre=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},u("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),u("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),Qre=S("result",` - color: var(--n-text-color); - line-height: var(--n-line-height); - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier); -`,[S("result-icon",` - display: flex; - justify-content: center; - transition: color .3s var(--n-bezier); - `,[M("status-image",` - font-size: var(--n-icon-size); - width: 1em; - height: 1em; - `),S("base-icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),S("result-content",{marginTop:"24px"}),S("result-footer",` - margin-top: 24px; - text-align: center; - `),S("result-header",[M("title",` - margin-top: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - text-align: center; - color: var(--n-title-text-color); - font-size: var(--n-title-font-size); - `),M("description",` - margin-top: 4px; - text-align: center; - font-size: var(--n-font-size); - `)])]),Jre={403:Zre,404:Yre,418:Gre,500:Xre,info:u(Ii,null),success:u(Va,null),warning:u(Ai,null),error:u(ja,null)},oO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),eoe=J({name:"Result",props:oO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Result","-result",Qre,Ote,e,t),o=P(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:s},self:{textColor:c,lineHeight:d,titleTextColor:f,titleFontWeight:h,[ye("iconColor",l)]:v,[ye("fontSize",a)]:p,[ye("titleFontSize",a)]:b,[ye("iconSize",a)]:m}}=r.value;return{"--n-bezier":s,"--n-font-size":p,"--n-icon-size":m,"--n-line-height":d,"--n-text-color":c,"--n-title-font-size":b,"--n-title-font-weight":h,"--n-title-text-color":f,"--n-icon-color":v||""}}),i=n?Je("result",P(()=>{const{size:a,status:l}=e;let s="";return a&&(s+=a[0]),l&&(s+=l[0]),s}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o==null||o(),u("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},u("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||u(st,{clsPrefix:r},{default:()=>Jre[t]})),u("div",{class:`${r}-result-header`},this.title?u("div",{class:`${r}-result-header__title`},this.title):null,this.description?u("div",{class:`${r}-result-header__description`},this.description):null),n.default&&u("div",{class:`${r}-result-content`},n),n.footer&&u("div",{class:`${r}-result-footer`},n.footer()))}}),iO=Object.assign(Object.assign({},Se.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),toe=J({name:"Scrollbar",props:iO,setup(){const e=D(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return u(rn,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),noe=toe,roe=e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}},ooe={name:"Skeleton",common:et,self:roe},ioe=O([S("skeleton",` - height: 1em; - width: 100%; - transition: background-color .3s var(--n-bezier); - transition: - --n-color-start .3s var(--n-bezier), - --n-color-end .3s var(--n-bezier), - background-color .3s var(--n-bezier); - animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); - background-color: var(--n-color-start); - `),O("@keyframes skeleton-loading",` - 0% { - background: var(--n-color-start); - } - 40% { - background: var(--n-color-end); - } - 80% { - background: var(--n-color-start); - } - 100% { - background: var(--n-color-start); - } - `)]),aO=Object.assign(Object.assign({},Se.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),aoe=J({name:"Skeleton",inheritAttrs:!1,props:aO,setup(e){$b();const{mergedClsPrefixRef:t}=He(e),n=Se("Skeleton","-skeleton",ioe,ooe,e,t);return{mergedClsPrefix:t,style:P(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:s,colorEnd:c,borderRadius:d}=l;let f;const{circle:h,sharp:v,round:p,width:b,height:m,size:g,text:y,animated:C}=e;g!==void 0&&(f=l[ye("height",g)]);const x=h?(r=b!=null?b:m)!==null&&r!==void 0?r:f:b,w=(o=h&&b!=null?b:m)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:h?"50%":p?"4096px":v?"":d,width:typeof x=="number"?gn(x):x,height:typeof w=="number"?gn(w):w,animation:C?"":"none","--n-bezier":a,"--n-color-start":s,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=u("div",Wn({class:`${n}-skeleton`,style:t},r));return e>1?u($t,null,Array.apply(null,{length:e}).map(i=>[o,` -`])):o}});function mS(e){return window.TouchEvent&&e instanceof window.TouchEvent}function bS(){const e=D(new Map),t=n=>r=>{e.value.set(n,r)};return Zm(()=>e.value.clear()),[e,t]}const loe=O([S("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[F("reverse",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(50%, -50%); - `)]),F("vertical",[S("slider-handles",[S("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),S("slider-marks",[S("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),S("slider-dots",[S("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),F("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[S("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[S("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),S("slider-rail",` - height: 100%; - `,[M("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),F("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),S("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[S("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),S("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[S("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),F("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[S("slider-handle",` - cursor: not-allowed; - `)]),F("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),O("&:hover",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),F("active",[S("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[M("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),S("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),S("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[S("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),S("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[M("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),S("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[S("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[S("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),O("&:focus",[S("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[O("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),S("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[F("transition-disabled",[S("slider-dot","transition: none;")]),S("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[F("active","border: var(--n-dot-border-active);")])])]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[$n()]),S("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[F("top",` - margin-bottom: 12px; - `),F("right",` - margin-left: 12px; - `),F("bottom",` - margin-top: 12px; - `),F("left",` - margin-right: 12px; - `),$n()]),_o(S("slider",[S("slider-dot","background-color: var(--n-dot-color-modal);")])),qo(S("slider",[S("slider-dot","background-color: var(--n-dot-color-popover);")]))]),soe=0,lO=Object.assign(Object.assign({},Se.props),{to:Lt.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),coe=J({name:"Slider",props:lO,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=He(e),o=Se("Slider","-slider",loe,Fte,e,t),i=D(null),[a,l]=bS(),[s,c]=bS(),d=D(new Set),f=xn(e),{mergedDisabledRef:h}=f,v=P(()=>{const{step:ne}=e;if(ne<=0||ne==="mark")return 0;const ge=ne.toString();let Pe=0;return ge.includes(".")&&(Pe=ge.length-ge.indexOf(".")-1),Pe}),p=D(e.defaultValue),b=xe(e,"value"),m=wt(b,p),g=P(()=>{const{value:ne}=m;return(e.range?ne:[ne]).map(ee)}),y=P(()=>g.value.length>2),C=P(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),x=P(()=>{const{marks:ne}=e;return ne?Object.keys(ne).map(parseFloat):null}),w=D(-1),k=D(-1),_=D(-1),T=D(!1),$=D(!1),R=P(()=>{const{vertical:ne,reverse:ge}=e;return ne?ge?"top":"bottom":ge?"right":"left"}),I=P(()=>{if(y.value)return;const ne=g.value,ge=ue(e.range?Math.min(...ne):e.min),Pe=ue(e.range?Math.max(...ne):ne[0]),{value:Ae}=R;return e.vertical?{[Ae]:`${ge}%`,height:`${Pe-ge}%`}:{[Ae]:`${ge}%`,width:`${Pe-ge}%`}}),z=P(()=>{const ne=[],{marks:ge}=e;if(ge){const Pe=g.value.slice();Pe.sort((dt,ut)=>dt-ut);const{value:Ae}=R,{value:Ke}=y,{range:qe}=e,ct=Ke?()=>!1:dt=>qe?dt>=Pe[0]&&dt<=Pe[Pe.length-1]:dt<=Pe[0];for(const dt of Object.keys(ge)){const ut=Number(dt);ne.push({active:ct(ut),label:ge[dt],style:{[Ae]:`${ue(ut)}%`}})}}return ne});function A(ne,ge){const Pe=ue(ne),{value:Ae}=R;return{[Ae]:`${Pe}%`,zIndex:ge===w.value?1:0}}function L(ne){return e.showTooltip||_.value===ne||w.value===ne&&T.value}function j(ne){return T.value?!(w.value===ne&&k.value===ne):!0}function E(ne){var ge;~ne&&(w.value=ne,(ge=a.value.get(ne))===null||ge===void 0||ge.focus())}function U(){s.value.forEach((ne,ge)=>{L(ge)&&ne.syncPosition()})}function K(ne){const{"onUpdate:value":ge,onUpdateValue:Pe}=e,{nTriggerFormInput:Ae,nTriggerFormChange:Ke}=f;Pe&&he(Pe,ne),ge&&he(ge,ne),p.value=ne,Ae(),Ke()}function Q(ne){const{range:ge}=e;if(ge){if(Array.isArray(ne)){const{value:Pe}=g;ne.join()!==Pe.join()&&K(ne)}}else Array.isArray(ne)||g.value[0]!==ne&&K(ne)}function V(ne,ge){if(e.range){const Pe=g.value.slice();Pe.splice(ge,1,ne),Q(Pe)}else Q(ne)}function re(ne,ge,Pe){const Ae=Pe!==void 0;Pe||(Pe=ne-ge>0?1:-1);const Ke=x.value||[],{step:qe}=e;if(qe==="mark"){const ut=we(ne,Ke.concat(ge),Ae?Pe:void 0);return ut?ut.value:ge}if(qe<=0)return ge;const{value:ct}=v;let dt;if(Ae){const ut=Number((ge/qe).toFixed(ct)),je=Math.floor(ut),Xe=ut>je?je:je-1,Ve=ut0)&&(Ae===null||ct0?1:-1),ge)}function pe(ne){var ge,Pe;if(h.value||!mS(ne)&&ne.button!==soe)return;const Ae=me(ne);if(Ae===void 0)return;const Ke=g.value.slice(),qe=e.range?(Pe=(ge=we(Ae,Ke))===null||ge===void 0?void 0:ge.index)!==null&&Pe!==void 0?Pe:-1:0;qe!==-1&&(ne.preventDefault(),E(qe),Me(),V(re(Ae,g.value[qe]),qe))}function Me(){T.value||(T.value=!0,St("touchend",document,Y),St("mouseup",document,Y),St("touchmove",document,W),St("mousemove",document,W))}function H(){T.value&&(T.value=!1,xt("touchend",document,Y),xt("mouseup",document,Y),xt("touchmove",document,W),xt("mousemove",document,W))}function W(ne){const{value:ge}=w;if(!T.value||ge===-1){H();return}const Pe=me(ne);V(re(Pe,g.value[ge]),ge)}function Y(){H()}function ce(ne){w.value=ne,h.value||(_.value=ne)}function X(ne){w.value===ne&&(w.value=-1,H()),_.value===ne&&(_.value=-1)}function B(ne){_.value=ne}function N(ne){_.value===ne&&(_.value=-1)}rt(w,(ne,ge)=>void _t(()=>k.value=ge)),rt(m,()=>{if(e.marks){if($.value)return;$.value=!0,_t(()=>{$.value=!1})}_t(U)}),Dt(()=>{H()});const te=P(()=>{const{self:{markFontSize:ne,railColor:ge,railColorHover:Pe,fillColor:Ae,fillColorHover:Ke,handleColor:qe,opacityDisabled:ct,dotColor:dt,dotColorModal:ut,handleBoxShadow:je,handleBoxShadowHover:Xe,handleBoxShadowActive:Ve,handleBoxShadowFocus:We,dotBorder:G,dotBoxShadow:q,railHeight:_e,railWidthVertical:Be,handleSize:Ee,dotHeight:ae,dotWidth:ze,dotBorderRadius:ie,fontSize:Te,dotBorderActive:se,dotColorPopover:$e},common:{cubicBezierEaseInOut:oe}}=o.value;return{"--n-bezier":oe,"--n-dot-border":G,"--n-dot-border-active":se,"--n-dot-border-radius":ie,"--n-dot-box-shadow":q,"--n-dot-color":dt,"--n-dot-color-modal":ut,"--n-dot-color-popover":$e,"--n-dot-height":ae,"--n-dot-width":ze,"--n-fill-color":Ae,"--n-fill-color-hover":Ke,"--n-font-size":Te,"--n-handle-box-shadow":je,"--n-handle-box-shadow-active":Ve,"--n-handle-box-shadow-focus":We,"--n-handle-box-shadow-hover":Xe,"--n-handle-color":qe,"--n-handle-size":Ee,"--n-opacity-disabled":ct,"--n-rail-color":ge,"--n-rail-color-hover":Pe,"--n-rail-height":_e,"--n-rail-width-vertical":Be,"--n-mark-font-size":ne}}),ve=r?Je("slider",void 0,te,e):void 0,Z=P(()=>{const{self:{fontSize:ne,indicatorColor:ge,indicatorBoxShadow:Pe,indicatorTextColor:Ae,indicatorBorderRadius:Ke}}=o.value;return{"--n-font-size":ne,"--n-indicator-border-radius":Ke,"--n-indicator-box-shadow":Pe,"--n-indicator-color":ge,"--n-indicator-text-color":Ae}}),fe=r?Je("slider-indicator",void 0,Z,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:p,mergedValue:m,mergedDisabled:h,mergedPlacement:C,isMounted:An(),adjustedTo:Lt(e),dotTransitionDisabled:$,markInfos:z,isShowTooltip:L,shouldKeepTooltipTransition:j,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:I,getHandleStyle:A,activeIndex:w,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:pe,handleHandleFocus:ce,handleHandleBlur:X,handleHandleMouseEnter:B,handleHandleMouseLeave:N,handleRailKeyDown:Oe,indicatorCssVars:r?void 0:Z,indicatorThemeClass:fe==null?void 0:fe.themeClass,indicatorOnRender:fe==null?void 0:fe.onRender,cssVars:r?void 0:te,themeClass:ve==null?void 0:ve.themeClass,onRender:ve==null?void 0:ve.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},u("div",{class:`${t}-slider-rail`},u("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?u("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>u("div",{key:o.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,u("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(o,i),onFocus:()=>this.handleHandleFocus(i),onBlur:()=>this.handleHandleBlur(i),onMouseenter:()=>this.handleHandleMouseEnter(i),onMouseleave:()=>this.handleHandleMouseLeave(i)},vt(this.$slots.thumb,()=>[u("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&u(Sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Lt.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),u("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?u("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>u("div",{key:o.label,class:`${t}-slider-mark`,style:o.style},o.label))):null))}}),doe=O([O("@keyframes spin-rotate",` - from { - transform: rotate(0); - } - to { - transform: rotate(360deg); - } - `),S("spin-container",{position:"relative"},[S("spin-body",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ho()])]),S("spin-body",` - display: inline-flex; - align-items: center; - justify-content: center; - flex-direction: column; - `),S("spin",` - display: inline-flex; - height: var(--n-size); - width: var(--n-size); - font-size: var(--n-size); - color: var(--n-color); - `,[F("rotate",` - animation: spin-rotate 2s linear infinite; - `)]),S("spin-description",` - display: inline-block; - font-size: var(--n-font-size); - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - margin-top: 8px; - `),S("spin-content",` - opacity: 1; - transition: opacity .3s var(--n-bezier); - pointer-events: all; - `,[F("spinning",` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),uoe={small:20,medium:18,large:16},sO=Object.assign(Object.assign({},Se.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),foe=J({name:"Spin",props:sO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Spin","-spin",doe,Bte,e,t),o=P(()=>{const{size:a}=e,{common:{cubicBezierEaseInOut:l},self:s}=r.value,{opacitySpinning:c,color:d,textColor:f}=s,h=typeof a=="number"?gn(a):s[ye("size",a)];return{"--n-bezier":l,"--n-opacity-spinning":c,"--n-size":h,"--n-color":d,"--n-text-color":f}}),i=n?Je("spin",P(()=>{const{size:a}=e;return typeof a=="number"?String(a):a[0]}),o,e):void 0;return{mergedClsPrefix:t,compitableShow:Ri(e,["spinning","show"]),mergedStrokeWidth:P(()=>{const{strokeWidth:a}=e;if(a!==void 0)return a;const{size:l}=e;return uoe[typeof l=="number"?"medium":l]}),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&u("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?u("div",{class:[`${r}-spin-body`,this.themeClass]},u("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):u("div",{class:[`${r}-spin-body`,this.themeClass]},u(eo,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?u("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},u("div",{class:[`${r}-spin-content`,this.compitableShow&&`${r}-spin-content--spinning`]},n),u(It,{name:"fade-in-transition"},{default:()=>this.compitableShow?l:null})):l}}),hoe=S("statistic",[M("label",` - font-weight: var(--n-label-font-weight); - transition: .3s color var(--n-bezier); - font-size: var(--n-label-font-size); - color: var(--n-label-text-color); - `),S("statistic-value",` - margin-top: 4px; - font-weight: var(--n-value-font-weight); - `,[M("prefix",` - margin: 0 4px 0 0; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-prefix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})]),M("content",` - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-text-color); - `),M("suffix",` - margin: 0 0 0 4px; - font-size: var(--n-value-font-size); - transition: .3s color var(--n-bezier); - color: var(--n-value-suffix-text-color); - `,[S("icon",{verticalAlign:"-0.125em"})])])]),cO=Object.assign(Object.assign({},Se.props),{tabularNums:Boolean,label:String,value:[String,Number]}),voe=J({name:"Statistic",props:cO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Statistic","-statistic",hoe,Nte,e,t),i=Zt("Statistic",r,t),a=P(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:f,labelTextColor:h,valueSuffixTextColor:v,valueTextColor:p,labelFontSize:b},common:{cubicBezierEaseInOut:m}}=o.value;return{"--n-bezier":m,"--n-label-font-size":b,"--n-label-font-weight":s,"--n-label-text-color":h,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":v,"--n-value-text-color":p}}),l=n?Je("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},Ct(r,a=>u("div",{class:`${t}-statistic__label`},this.label||a)),u("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},Ct(o,a=>a&&u("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?u("span",{class:`${t}-statistic-value__content`},this.value):Ct(n,a=>a&&u("span",{class:`${t}-statistic-value__content`},a)),Ct(i,a=>a&&u("span",{class:`${t}-statistic-value__suffix`},a))))}}),poe=S("steps",` - width: 100%; - display: flex; -`,[S("step",` - position: relative; - display: flex; - flex: 1; - `,[F("disabled","cursor: not-allowed"),F("clickable",` - cursor: pointer; - `),O("&:last-child",[S("step-splitor","display: none;")])]),S("step-splitor",` - background-color: var(--n-splitor-color); - margin-top: calc(var(--n-step-header-font-size) / 2); - height: 1px; - flex: 1; - align-self: flex-start; - margin-left: 12px; - margin-right: 12px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("step-content","flex: 1;",[S("step-content-header",` - color: var(--n-header-text-color); - margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); - line-height: var(--n-step-header-font-size); - font-size: var(--n-step-header-font-size); - position: relative; - display: flex; - font-weight: var(--n-step-header-font-weight); - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[M("title",` - white-space: nowrap; - flex: 0; - `)]),M("description",` - color: var(--n-description-text-color); - margin-top: 12px; - margin-left: 9px; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),S("step-indicator",` - background-color: var(--n-indicator-color); - box-shadow: 0 0 0 1px var(--n-indicator-border-color); - height: var(--n-indicator-size); - width: var(--n-indicator-size); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `,[S("step-indicator-slot",` - position: relative; - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - font-size: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - `,[M("index",` - display: inline-block; - text-align: center; - position: absolute; - left: 0; - top: 0; - font-size: var(--n-indicator-index-font-size); - width: var(--n-indicator-icon-size); - height: var(--n-indicator-icon-size); - line-height: var(--n-indicator-icon-size); - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()]),S("base-icon",` - color: var(--n-indicator-text-color); - transition: color .3s var(--n-bezier); - `,[kn()])])]),F("vertical","flex-direction: column;",[pt("show-description",[O(">",[S("step","padding-bottom: 8px;")])]),O(">",[S("step","margin-bottom: 16px;",[O("&:last-child","margin-bottom: 0;"),O(">",[S("step-indicator",[O(">",[S("step-splitor",` - position: absolute; - bottom: -8px; - width: 1px; - margin: 0 !important; - left: calc(var(--n-indicator-size) / 2); - height: calc(100% - var(--n-indicator-size)); - `)])]),S("step-content",[M("description","margin-top: 8px;")])])])])])]);function goe(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function moe(e){return e.map((t,n)=>goe(t,n))}const dO=Object.assign(Object.assign({},Se.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),uO="n-steps",boe=J({name:"Steps",props:dO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=He(e),o=Zt("Steps",r,n),i=Se("Steps","-steps",poe,Ute,e,n);return nt(uO,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return u("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},moe(Ir(nc(this))))}}),fO={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},yoe=J({name:"Step",props:fO,setup(e){const t=Le(uO,null);t||Dn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=He(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=P(()=>r.vertical),s=P(()=>{const{status:h}=e;if(h)return h;{const{internalIndex:v}=e,{current:p}=r;if(p===void 0)return"process";if(vp)return"wait"}return"process"}),c=P(()=>{const{value:h}=s,{size:v}=r,{common:{cubicBezierEaseInOut:p},self:{stepHeaderFontWeight:b,[ye("stepHeaderFontSize",v)]:m,[ye("indicatorIndexFontSize",v)]:g,[ye("indicatorSize",v)]:y,[ye("indicatorIconSize",v)]:C,[ye("indicatorTextColor",h)]:x,[ye("indicatorBorderColor",h)]:w,[ye("headerTextColor",h)]:k,[ye("splitorColor",h)]:_,[ye("indicatorColor",h)]:T,[ye("descriptionTextColor",h)]:$}}=o.value;return{"--n-bezier":p,"--n-description-text-color":$,"--n-header-text-color":k,"--n-indicator-border-color":w,"--n-indicator-color":T,"--n-indicator-icon-size":C,"--n-indicator-index-font-size":g,"--n-indicator-size":y,"--n-indicator-text-color":x,"--n-splitor-color":_,"--n-step-header-font-size":m,"--n-step-header-font-weight":b}}),d=n?Je("step",P(()=>{const{value:h}=s,{size:v}=r;return`${h[0]}${v[0]}`}),c,r):void 0,f=P(()=>{if(e.disabled)return;const{onUpdateCurrent:h,"onUpdate:current":v}=r;return h||v?()=>{h&&he(h,e.internalIndex),v&&he(v,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:s,handleStepClick:f,cssVars:n?void 0:c,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,o=Ct(this.$slots.default,i=>{const a=i||this.description;return a?u("div",{class:`${e}-step-content__description`},a):null});return t==null||t(),u("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,o&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u("div",{class:`${e}-step-indicator`},u("div",{class:`${e}-step-indicator-slot`},u(ko,null,{default:()=>Ct(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:l}=this;return a==="finish"||a==="error"?a==="finish"?u(st,{clsPrefix:e,key:"finish"},{default:()=>vt(l["finish-icon"],()=>[u(Jb,null)])}):a==="error"?u(st,{clsPrefix:e,key:"error"},{default:()=>vt(l["error-icon"],()=>[u(g2,null)])}):null:i||u("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?u("div",{class:`${e}-step-splitor`}):null),u("div",{class:`${e}-step-content`},u("div",{class:`${e}-step-content-header`},u("div",{class:`${e}-step-content-header__title`},vt(this.$slots.title,()=>[this.title])),this.vertical?null:u("div",{class:`${e}-step-splitor`})),o))}}),xoe=S("switch",` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[M("children-placeholder",` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),M("rail-placeholder",` - display: flex; - flex-wrap: none; - `),M("button-placeholder",` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),S("base-loading",` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[kn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),M("checked, unchecked",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),M("checked",` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),M("unchecked",` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),O("&:focus",[M("rail",` - box-shadow: var(--n-box-shadow-focus); - `)]),F("round",[M("rail","border-radius: calc(var(--n-rail-height) / 2);",[M("button","border-radius: calc(var(--n-button-height) / 2);")])]),pt("disabled",[pt("icon",[F("rubber-band",[F("pressed",[M("rail",[M("button","max-width: var(--n-button-width-pressed);")])]),M("rail",[O("&:active",[M("button","max-width: var(--n-button-width-pressed);")])]),F("active",[F("pressed",[M("rail",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),M("rail",[O("&:active",[M("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),F("active",[M("rail",[M("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),M("rail",` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[M("button-icon",` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[kn()]),M("button",` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),F("active",[M("rail","background-color: var(--n-rail-color-active);")]),F("loading",[M("rail",` - cursor: wait; - `)]),F("disabled",[M("rail",` - cursor: not-allowed; - opacity: .5; - `)])]),hO=Object.assign(Object.assign({},Se.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let Zl;const woe=J({name:"Switch",props:hO,setup(e){Zl===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?Zl=CSS.supports("width","max(1px)"):Zl=!1:Zl=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Switch","-switch",xoe,Yte,e,t),o=xn(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=D(e.defaultValue),s=xe(e,"value"),c=wt(s,l),d=P(()=>c.value===e.checkedValue),f=D(!1),h=D(!1),v=P(()=>{const{railStyle:T}=e;if(!!T)return T({focused:h.value,checked:d.value})});function p(T){const{"onUpdate:value":$,onChange:R,onUpdateValue:I}=e,{nTriggerFormInput:z,nTriggerFormChange:A}=o;$&&he($,T),I&&he(I,T),R&&he(R,T),l.value=T,z(),A()}function b(){const{nTriggerFormFocus:T}=o;T()}function m(){const{nTriggerFormBlur:T}=o;T()}function g(){e.loading||a.value||(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue))}function y(){h.value=!0,b()}function C(){h.value=!1,m(),f.value=!1}function x(T){e.loading||a.value||T.key===" "&&(c.value!==e.checkedValue?p(e.checkedValue):p(e.uncheckedValue),f.value=!1)}function w(T){e.loading||a.value||T.key===" "&&(T.preventDefault(),f.value=!0)}const k=P(()=>{const{value:T}=i,{self:{opacityDisabled:$,railColor:R,railColorActive:I,buttonBoxShadow:z,buttonColor:A,boxShadowFocus:L,loadingColor:j,textColor:E,iconColor:U,[ye("buttonHeight",T)]:K,[ye("buttonWidth",T)]:Q,[ye("buttonWidthPressed",T)]:V,[ye("railHeight",T)]:re,[ye("railWidth",T)]:ee,[ye("railBorderRadius",T)]:ue,[ye("buttonBorderRadius",T)]:de},common:{cubicBezierEaseInOut:Ce}}=r.value;let we,me,Oe;return Zl?(we=`calc((${re} - ${K}) / 2)`,me=`max(${re}, ${K})`,Oe=`max(${ee}, calc(${ee} + ${K} - ${re}))`):(we=gn((dn(re)-dn(K))/2),me=gn(Math.max(dn(re),dn(K))),Oe=dn(re)>dn(K)?ee:gn(dn(ee)+dn(K)-dn(re))),{"--n-bezier":Ce,"--n-button-border-radius":de,"--n-button-box-shadow":z,"--n-button-color":A,"--n-button-width":Q,"--n-button-width-pressed":V,"--n-button-height":K,"--n-height":me,"--n-offset":we,"--n-opacity-disabled":$,"--n-rail-border-radius":ue,"--n-rail-color":R,"--n-rail-color-active":I,"--n-rail-height":re,"--n-rail-width":ee,"--n-width":Oe,"--n-box-shadow-focus":L,"--n-loading-color":j,"--n-text-color":E,"--n-icon-color":U}}),_=n?Je("switch",P(()=>i.value[0]),k,e):void 0;return{handleClick:g,handleBlur:C,handleFocus:y,handleKeyup:x,handleKeydown:w,mergedRailStyle:v,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:d,mergedDisabled:a,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o==null||o();const{checked:a,unchecked:l,icon:s,"checked-icon":c,"unchecked-icon":d}=i,f=!(xa(s)&&xa(c)&&xa(d));return u("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},u("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},Ct(a,h=>Ct(l,v=>h||v?u("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),h),u("div",{class:`${e}-switch__rail-placeholder`},u("div",{class:`${e}-switch__button-placeholder`}),v)):null)),u("div",{class:`${e}-switch__button`},Ct(s,h=>Ct(c,v=>Ct(d,p=>u(ko,null,{default:()=>this.loading?u(eo,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(v||h)?u("div",{class:`${e}-switch__button-icon`,key:v?"checked-icon":"icon"},v||h):!this.checked&&(p||h)?u("div",{class:`${e}-switch__button-icon`,key:p?"unchecked-icon":"icon"},p||h):null})))),Ct(a,h=>h&&u("div",{key:"checked",class:`${e}-switch__checked`},h)),Ct(l,h=>h&&u("div",{key:"unchecked",class:`${e}-switch__unchecked`},h)))))}}),Coe=O([S("table",` - font-size: var(--n-font-size); - font-variant-numeric: tabular-nums; - line-height: var(--n-line-height); - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - background-color: var(--n-td-color); - border-color: var(--n-merged-border-color); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - --n-merged-border-color: var(--n-border-color); - `,[O("th",` - white-space: nowrap; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - text-align: inherit; - padding: var(--n-th-padding); - vertical-align: inherit; - text-transform: none; - border: 0px solid var(--n-merged-border-color); - font-weight: var(--n-th-font-weight); - color: var(--n-th-text-color); - background-color: var(--n-th-color); - border-bottom: 1px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),O("td",` - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - color .3s var(--n-bezier); - padding: var(--n-td-padding); - color: var(--n-td-text-color); - background-color: var(--n-td-color); - border: 0px solid var(--n-merged-border-color); - border-right: 1px solid var(--n-merged-border-color); - border-bottom: 1px solid var(--n-merged-border-color); - `,[O("&:last-child",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("bordered",` - border: 1px solid var(--n-merged-border-color); - border-radius: var(--n-border-radius); - `,[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0 solid var(--n-merged-border-color); - `)])])]),F("single-line",[O("th",` - border-right: 0px solid var(--n-merged-border-color); - `),O("td",` - border-right: 0px solid var(--n-merged-border-color); - `)]),F("single-column",[O("tr",[O("&:not(:last-child)",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])]),F("striped",[O("tr:nth-of-type(even)",[O("td","background-color: var(--n-td-color-striped)")])]),pt("bottom-bordered",[O("tr",[O("&:last-child",[O("td",` - border-bottom: 0px solid var(--n-merged-border-color); - `)])])])]),_o(S("table",` - background-color: var(--n-td-color-modal); - --n-merged-border-color: var(--n-border-color-modal); - `,[O("th",` - background-color: var(--n-th-color-modal); - `),O("td",` - background-color: var(--n-td-color-modal); - `)])),qo(S("table",` - background-color: var(--n-td-color-popover); - --n-merged-border-color: var(--n-border-color-popover); - `,[O("th",` - background-color: var(--n-th-color-popover); - `),O("td",` - background-color: var(--n-td-color-popover); - `)]))]),vO=Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),Soe=J({name:"Table",props:vO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Se("Table","-table",Coe,Qte,e,t),i=Zt("Table",r,t),a=P(()=>{const{size:s}=e,{self:{borderColor:c,tdColor:d,tdColorModal:f,tdColorPopover:h,thColor:v,thColorModal:p,thColorPopover:b,thTextColor:m,tdTextColor:g,borderRadius:y,thFontWeight:C,lineHeight:x,borderColorModal:w,borderColorPopover:k,tdColorStriped:_,tdColorStripedModal:T,tdColorStripedPopover:$,[ye("fontSize",s)]:R,[ye("tdPadding",s)]:I,[ye("thPadding",s)]:z},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":d,"--n-td-color-modal":f,"--n-td-color-popover":h,"--n-td-text-color":g,"--n-border-color":c,"--n-border-color-modal":w,"--n-border-color-popover":k,"--n-border-radius":y,"--n-font-size":R,"--n-th-color":v,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":C,"--n-th-text-color":m,"--n-line-height":x,"--n-td-padding":I,"--n-th-padding":z,"--n-td-color-striped":_,"--n-td-color-striped-modal":T,"--n-td-color-striped-popover":$}}),l=n?Je("table",P(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),_oe=J({name:"Th",render(){return u("th",null,this.$slots)}}),koe=J({name:"Tr",render(){return u("tr",null,this.$slots)}}),Roe=J({name:"Td",render(){return u("td",null,this.$slots)}}),Poe=J({name:"Thead",render(){return u("thead",null,this.$slots)}}),$oe=J({name:"Tbody",render(){return u("tbody",null,this.$slots)}}),I0="n-tabs",F0={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Toe=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:F0,setup(e){const t=Le(I0,null);return t||Dn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return u("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),pO=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Aa(F0,["displayDirective"])),Bf=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:pO,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,tabChangeIdRef:a,onBeforeLeaveRef:l,triggerRef:s,handleAdd:c,activateTab:d,handleClose:f}=Le(I0);return{trigger:s,mergedClosable:P(()=>{if(e.internalAddable)return!1;const{closable:h}=e;return h===void 0?o.value:h}),style:i,clsPrefix:t,value:n,type:r,handleClose(h){h.stopPropagation(),!e.disabled&&f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){c();return}const{name:h}=e,v=++a.id;if(h!==n.value){const{value:p}=l;p?Promise.resolve(p(e.name,n.value)).then(b=>{b&&a.id===v&&d(h)}):d(h)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,style:s,trigger:c,$slots:{default:d}}=this,f=o!=null?o:i;return u("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?u("div",{class:`${t}-tabs-tab-pad`}):null,u("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Wn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?void 0:s},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),u("span",{class:`${t}-tabs-tab__label`},e?u($t,null,u("div",{class:`${t}-tabs-tab__height-placeholder`},"\xA0"),u(st,{clsPrefix:t},{default:()=>u(_l,null)})):d?d():typeof f=="object"?f:jt(f!=null?f:n)),l&&this.type==="card"?u(Go,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Ooe=S("tabs",` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[F("segment-type",[S("tabs-rail",[O("&.transition-disabled","color: red;",[S("tabs-tab",` - transition: none; - `)])])]),F("left, right",` - flex-direction: row; - `,[S("tabs-bar",` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("tabs-tab",` - padding: var(--n-tab-padding-vertical); - `)]),F("right",` - flex-direction: row-reverse; - `,[S("tabs-bar",` - left: 0; - `)]),F("bottom",` - flex-direction: column-reverse; - justify-content: flex-end; - `,[S("tabs-bar",` - top: 0; - `)]),S("tabs-rail",` - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[S("tabs-tab-wrapper",` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[S("tabs-tab",` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[F("active",` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - `),O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])])]),F("flex",[S("tabs-nav",{width:"100%"},[S("tabs-wrapper",{width:"100%"},[S("tabs-tab",{marginRight:0})])])]),S("tabs-nav",` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[M("prefix, suffix",` - display: flex; - align-items: center; - `),M("prefix","padding-right: 16px;"),M("suffix","padding-left: 16px;")]),S("tabs-nav-scroll-wrapper",` - flex: 1; - position: relative; - overflow: hidden; - `,[F("shadow-before",[O("&::before",` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),F("shadow-after",[O("&::after",` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),S("tabs-nav-y-scroll",` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[O("&::-webkit-scrollbar",` - width: 0; - height: 0; - `)]),O("&::before, &::after",` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - top: 0; - bottom: 0; - width: 20px; - z-index: 1; - `),O("&::before",` - left: 0; - `),O("&::after",` - right: 0; - `)]),S("tabs-nav-scroll-content",` - display: flex; - position: relative; - min-width: 100%; - width: fit-content; - `),S("tabs-wrapper",` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),S("tabs-tab-wrapper",` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),S("tabs-tab",` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[F("disabled",{cursor:"not-allowed"}),M("close",` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - display: flex; - align-items: center; - `)]),S("tabs-bar",` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("&.transition-disabled",` - transition: none; - `),F("disabled",` - background-color: var(--n-tab-text-color-disabled) - `)]),S("tabs-pane-wrapper",` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),S("tab-pane",` - color: var(--n-pane-text-color); - width: 100%; - padding: var(--n-pane-padding); - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[O("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),O("&.next-transition-leave-active, &.prev-transition-leave-active",` - position: absolute; - `),O("&.next-transition-enter-from, &.prev-transition-leave-to",` - transform: translateX(32px); - opacity: 0; - `),O("&.next-transition-leave-to, &.prev-transition-enter-from",` - transform: translateX(-32px); - opacity: 0; - `),O("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` - transform: translateX(0); - opacity: 1; - `)]),S("tabs-tab-pad",` - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),F("line-type, bar-type",[S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[O("&:hover",{color:"var(--n-tab-text-color-hover)"}),F("active",` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),F("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),S("tabs-nav",[F("line-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-nav-scroll-content",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-bar",` - border-radius: 0; - bottom: -1px; - `)]),F("card-type",[M("prefix, suffix",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-pad",` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab-pad",` - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-tab-border-color); - `),S("tabs-tab",` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[F("addable",` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - `,[M("height-placeholder",` - width: 0; - font-size: var(--n-tab-font-size); - `),pt("disabled",[O("&:hover",` - color: var(--n-tab-text-color-hover); - `)])]),F("closable","padding-right: 6px;"),F("active",` - border-bottom: 1px solid #0000; - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),F("disabled","color: var(--n-tab-text-color-disabled);")]),S("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),F("left, right",[S("tabs-wrapper",` - flex-direction: column; - `,[S("tabs-tab-wrapper",` - flex-direction: column; - `,[S("tabs-tab-pad",` - height: var(--n-tab-gap); - width: 100%; - `)])]),S("tabs-nav-scroll-content",` - border-bottom: none; - `)]),F("left",[S("tabs-nav-scroll-content",` - box-sizing: border-box; - border-right: 1px solid var(--n-tab-border-color); - `)]),F("right",[S("tabs-nav-scroll-content",` - border-left: 1px solid var(--n-tab-border-color); - `)]),F("bottom",[S("tabs-nav-scroll-content",` - border-top: 1px solid var(--n-tab-border-color); - border-bottom: none; - `)])])]),gO=Object.assign(Object.assign({},Se.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),zoe=J({name:"Tabs",props:gO,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=He(e),s=Se("Tabs","-tabs",Ooe,nne,e,a),c=D(null),d=D(null),f=D(null),h=D(null),v=D(null),p=D(!0),b=D(!0),m=Ri(e,["labelSize","size"]),g=Ri(e,["activeName","value"]),y=D((r=(n=g.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Ir(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),C=wt(g,y),x={id:0},w=P(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rt(C,()=>{x.id=0,$(),R()});function k(){var X;const{value:B}=C;return B===null?null:(X=c.value)===null||X===void 0?void 0:X.querySelector(`[data-name="${B}"]`)}function _(X){if(e.type==="card")return;const{value:B}=d;if(!!B&&X){const N=`${a.value}-tabs-bar--disabled`,{barWidth:te,placement:ve}=e;if(X.dataset.disabled==="true"?B.classList.add(N):B.classList.remove(N),["top","bottom"].includes(ve)){if(T(["top","maxHeight","height"]),typeof te=="number"&&X.offsetWidth>=te){const Z=Math.floor((X.offsetWidth-te)/2)+X.offsetLeft;B.style.left=`${Z}px`,B.style.maxWidth=`${te}px`}else B.style.left=`${X.offsetLeft}px`,B.style.maxWidth=`${X.offsetWidth}px`;B.style.width="8192px",B.offsetWidth}else{if(T(["left","maxWidth","width"]),typeof te=="number"&&X.offsetHeight>=te){const Z=Math.floor((X.offsetHeight-te)/2)+X.offsetTop;B.style.top=`${Z}px`,B.style.maxHeight=`${te}px`}else B.style.top=`${X.offsetTop}px`,B.style.maxHeight=`${X.offsetHeight}px`;B.style.height="8192px",B.offsetHeight}}}function T(X){const{value:B}=d;if(!!B)for(const N of X)B.style[N]=""}function $(){if(e.type==="card")return;const X=k();X&&_(X)}function R(X){var B;const N=(B=v.value)===null||B===void 0?void 0:B.$el;if(!N)return;const te=k();if(!te)return;const{scrollLeft:ve,offsetWidth:Z}=N,{offsetLeft:fe,offsetWidth:ne}=te;ve>fe?N.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ne>ve+Z&&N.scrollTo({top:0,left:fe+ne-Z,behavior:"smooth"})}const I=D(null);let z=0,A=null;function L(X){const B=I.value;if(B){z=X.getBoundingClientRect().height;const N=`${z}px`,te=()=>{B.style.height=N,B.style.maxHeight=N};A?(te(),A(),A=null):A=te}}function j(X){const B=I.value;if(B){const N=X.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,B.style.maxHeight=`${N}px`,B.style.height=`${Math.max(z,N)}px`};A?(A(),A=null,te()):A=te}}function E(){const X=I.value;X&&(X.style.maxHeight="",X.style.height="")}const U={value:[]},K=D("next");function Q(X){const B=C.value;let N="next";for(const te of U.value){if(te===B)break;if(te===X){N="prev";break}}K.value=N,V(X)}function V(X){const{onActiveNameChange:B,onUpdateValue:N,"onUpdate:value":te}=e;B&&he(B,X),N&&he(N,X),te&&he(te,X),y.value=X}function re(X){const{onClose:B}=e;B&&he(B,X)}function ee(){const{value:X}=d;if(!X)return;const B="transition-disabled";X.classList.add(B),$(),X.classList.remove(B)}let ue=0;function de(X){var B;if(X.contentRect.width===0&&X.contentRect.height===0||ue===X.contentRect.width)return;ue=X.contentRect.width;const{type:N}=e;(N==="line"||N==="bar")&&ee(),N!=="segment"&&pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Ce=xs(de,64);rt([()=>e.justifyContent,()=>e.size],()=>{_t(()=>{const{type:X}=e;(X==="line"||X==="bar")&&ee()})});const we=D(!1);function me(X){var B;const{target:N,contentRect:{width:te}}=X,ve=N.parentElement.offsetWidth;if(!we.value)veZ.$el.offsetWidth&&(we.value=!1)}pe((B=v.value)===null||B===void 0?void 0:B.$el)}const Oe=xs(me,64);function ke(){const{onAdd:X}=e;X&&X(),_t(()=>{const B=k(),{value:N}=v;!B||!N||N.scrollTo({left:B.offsetLeft,top:0,behavior:"smooth"})})}function pe(X){if(!X)return;const{scrollLeft:B,scrollWidth:N,offsetWidth:te}=X;p.value=B<=0,b.value=B+te>=N}const Me=xs(X=>{pe(X.target)},64);nt(I0,{triggerRef:xe(e,"trigger"),tabStyleRef:xe(e,"tabStyle"),paneClassRef:xe(e,"paneClass"),paneStyleRef:xe(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:xe(e,"type"),closableRef:xe(e,"closable"),valueRef:C,tabChangeIdRef:x,onBeforeLeaveRef:xe(e,"onBeforeLeave"),activateTab:Q,handleClose:re,handleAdd:ke}),nh(()=>{$(),R()}),Ft(()=>{const{value:X}=f;if(!X||["left","right"].includes(e.placement))return;const{value:B}=a,N=`${B}-tabs-nav-scroll-wrapper--shadow-before`,te=`${B}-tabs-nav-scroll-wrapper--shadow-after`;p.value?X.classList.remove(N):X.classList.add(N),b.value?X.classList.remove(te):X.classList.add(te)});const H=D(null);rt(C,()=>{if(e.type==="segment"){const X=H.value;X&&_t(()=>{X.classList.add("transition-disabled"),X.offsetWidth,X.classList.remove("transition-disabled")})}});const W={syncBarPosition:()=>{$()}},Y=P(()=>{const{value:X}=m,{type:B}=e,N={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[B],te=`${X}${N}`,{self:{barColor:ve,closeIconColor:Z,closeIconColorHover:fe,closeIconColorPressed:ne,tabColor:ge,tabBorderColor:Pe,paneTextColor:Ae,tabFontWeight:Ke,tabBorderRadius:qe,tabFontWeightActive:ct,colorSegment:dt,fontWeightStrong:ut,tabColorSegment:je,closeSize:Xe,closeIconSize:Ve,closeColorHover:We,closeColorPressed:G,closeBorderRadius:q,[ye("panePadding",X)]:_e,[ye("tabPadding",te)]:Be,[ye("tabPaddingVertical",te)]:Ee,[ye("tabGap",te)]:ae,[ye("tabTextColor",B)]:ze,[ye("tabTextColorActive",B)]:ie,[ye("tabTextColorHover",B)]:Te,[ye("tabTextColorDisabled",B)]:se,[ye("tabFontSize",X)]:$e},common:{cubicBezierEaseInOut:oe}}=s.value;return{"--n-bezier":oe,"--n-color-segment":dt,"--n-bar-color":ve,"--n-tab-font-size":$e,"--n-tab-text-color":ze,"--n-tab-text-color-active":ie,"--n-tab-text-color-disabled":se,"--n-tab-text-color-hover":Te,"--n-pane-text-color":Ae,"--n-tab-border-color":Pe,"--n-tab-border-radius":qe,"--n-close-size":Xe,"--n-close-icon-size":Ve,"--n-close-color-hover":We,"--n-close-color-pressed":G,"--n-close-border-radius":q,"--n-close-icon-color":Z,"--n-close-icon-color-hover":fe,"--n-close-icon-color-pressed":ne,"--n-tab-color":ge,"--n-tab-font-weight":Ke,"--n-tab-font-weight-active":ct,"--n-tab-padding":Be,"--n-tab-padding-vertical":Ee,"--n-tab-gap":ae,"--n-pane-padding":_e,"--n-font-weight-strong":ut,"--n-tab-color-segment":je}}),ce=l?Je("tabs",P(()=>`${m.value[0]}${e.type[0]}`),Y,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:C,renderedNames:new Set,tabsRailElRef:H,tabsPaneWrapperRef:I,tabsElRef:c,barElRef:d,addTabInstRef:h,xScrollInstRef:v,scrollWrapperElRef:f,addTabFixed:we,tabWrapperStyle:w,handleNavResize:Ce,mergedSize:m,handleScroll:Me,handleTabsResize:Oe,cssVars:l?void 0:Y,themeClass:ce==null?void 0:ce.themeClass,animationDirection:K,renderNameListRef:U,onAnimationBeforeLeave:L,onAnimationEnter:j,onAnimationAfterEnter:E,onRender:ce==null?void 0:ce.onRender},W)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,$slots:{default:s,prefix:c,suffix:d}}=this;l==null||l();const f=s?Ir(s()).filter(y=>y.type.__TAB_PANE__===!0):[],h=s?Ir(s()).filter(y=>y.type.__TAB__===!0):[],v=!h.length,p=t==="card",b=t==="segment",m=!p&&!b&&this.justifyContent;a.value=[];const g=()=>{const y=u("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?f.map((C,x)=>(a.value.push(C.props.name),Vv(u(Bf,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:x!==0&&(!m||m==="center"||m==="start"||m==="end")}),C.children?{default:C.children.tab}:void 0)))):h.map((C,x)=>(a.value.push(C.props.name),Vv(x!==0&&!m?wS(C):C))),!r&&o&&p?xS(o,(v?f.length:h.length)!==0):null,m?null:u("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return u("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?u(Dr,{onResize:this.handleTabsResize},{default:()=>y}):y,p?u("div",{class:`${e}-tabs-pad`}):null,p?null:u("div",{ref:"barElRef",class:`${e}-tabs-bar`}))};return u("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,m&&`${e}-tabs--flex`,`${e}-tabs--${n}`],style:this.cssVars},u("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${n}`,`${e}-tabs-nav`]},Ct(c,y=>y&&u("div",{class:`${e}-tabs-nav__prefix`},y)),b?u("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?f.map((y,C)=>(a.value.push(y.props.name),u(Bf,Object.assign({},y.props,{internalCreatedByPane:!0,internalLeftPadded:C!==0}),y.children?{default:y.children.tab}:void 0))):h.map((y,C)=>(a.value.push(y.props.name),C===0?y:wS(y)))):u(Dr,{onResize:this.handleNavResize},{default:()=>u("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?u(UA,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:g}):u("div",{class:`${e}-tabs-nav-y-scroll`},g()))}),r&&o&&p?xS(o,!0):null,Ct(d,y=>y&&u("div",{class:`${e}-tabs-nav__suffix`},y))),v&&(this.animated?u("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},yS(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yS(f,this.mergedValue,this.renderedNames)))}});function yS(e,t,n,r,o,i,a){const l=[];return e.forEach(s=>{const{name:c,displayDirective:d,"display-directive":f}=s.props,h=p=>d===p||f===p,v=t===c;if(s.key!==void 0&&(s.key=c),v||h("show")||h("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const p=!h("if");l.push(p?sn(s,[[wr,v]]):s)}}),a?u(Gf,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function xS(e,t){return u(Bf,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function wS(e){const t=nr(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Vv(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const Moe=S("thing",` - display: flex; - transition: color .3s var(--n-bezier); - font-size: var(--n-font-size); - color: var(--n-text-color); -`,[S("thing-avatar",` - margin-right: 12px; - margin-top: 2px; - `),S("thing-avatar-header-wrapper",` - display: flex; - flex-wrap: nowrap; - `,[S("thing-header-wrapper",` - flex: 1; - `)]),S("thing-main",` - flex-grow: 1; - `,[S("thing-header",` - display: flex; - margin-bottom: 4px; - justify-content: space-between; - align-items: center; - `,[M("title",` - font-size: 16px; - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-title-text-color); - `)]),M("description",[O("&:not(:last-child)",` - margin-bottom: 4px; - `)]),M("content",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("footer",[O("&:not(:first-child)",` - margin-top: 12px; - `)]),M("action",[O("&:not(:first-child)",` - margin-top: 12px; - `)])])]),mO=Object.assign(Object.assign({},Se.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),Ioe=J({name:"Thing",props:mO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=He(e),i=Se("Thing","-thing",Moe,ine,e,n),a=Zt("Thing",o,n),l=P(()=>{const{self:{titleTextColor:c,textColor:d,titleFontWeight:f,fontSize:h},common:{cubicBezierEaseInOut:v}}=i.value;return{"--n-bezier":v,"--n-font-size":h,"--n-text-color":d,"--n-title-font-weight":f,"--n-title-text-color":c}}),s=r?Je("thing",void 0,l,e):void 0;return()=>{var c;const{value:d}=n,f=a?a.value:!1;return(c=s==null?void 0:s.onRender)===null||c===void 0||c.call(s),u("div",{class:[`${d}-thing`,s==null?void 0:s.themeClass,f&&`${d}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,u("div",{class:`${d}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?u("div",{class:`${d}-thing-avatar-header-wrapper`},t.avatar?u("div",{class:`${d}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header-wrapper`},u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null):null):u($t,null,t.header||e.title||t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header`},t.header||e.title?u("div",{class:`${d}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?u("div",{class:`${d}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?u("div",{class:`${d}-thing-main__description`,style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?u("div",{class:`${d}-thing-main__content`,style:e.contentStyle},t.default?t.default():e.content):null,t.footer?u("div",{class:`${d}-thing-main__footer`},t.footer()):null,t.action?u("div",{class:`${d}-thing-main__action`},t.action()):null))}}}),bO={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},Foe=J({name:"Time",props:bO,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=yn("Time"),o=P(()=>{const{timeZone:c}=e;return c?(d,f,h)=>b$(d,c,f,h):tn}),i=P(()=>({locale:r.value.locale})),a=P(()=>{const{time:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t}),l=P(()=>{const{to:c}=e;return e.unix?c===void 0?t:Gw(typeof c=="number"?c:c.valueOf()):c!=null?c:t});return{renderedTime:P(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):SH(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?Qr(this.renderedTime):u("time",[this.renderedTime])}}),CS=1.25,Doe=S("timeline",` - position: relative; - width: 100%; - display: flex; - flex-direction: column; - line-height: ${CS}; -`,[F("horizontal",` - flex-direction: row; - `,[O(">",[S("timeline-item",` - flex-shrink: 0; - padding-right: 40px; - `,[F("dashed-line-type",[O(">",[S("timeline-item-timeline",[M("line",` - background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 10px 1px; - `)])])]),O(">",[S("timeline-item-content",` - margin-top: calc(var(--n-icon-size) + 12px); - `,[O(">",[M("meta",` - margin-top: 6px; - margin-bottom: unset; - `)])]),S("timeline-item-timeline",` - width: 100%; - height: calc(var(--n-icon-size) + 12px); - `,[M("line",` - left: var(--n-icon-size); - top: calc(var(--n-icon-size) / 2 - 1px); - right: 0px; - width: unset; - height: 2px; - `)])])])])]),F("right-placement",[S("timeline-item",[S("timeline-item-content",` - text-align: right; - margin-right: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - width: var(--n-icon-size); - right: 0; - `)])]),F("left-placement",[S("timeline-item",[S("timeline-item-content",` - margin-left: calc(var(--n-icon-size) + 12px); - `),S("timeline-item-timeline",` - left: 0; - `)])]),S("timeline-item",` - position: relative; - `,[O("&:last-child",[S("timeline-item-timeline",[M("line",` - display: none; - `)]),S("timeline-item-content",[M("meta",` - margin-bottom: 0; - `)])]),S("timeline-item-content",[M("title",` - margin: var(--n-title-margin); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),M("content",` - transition: color .3s var(--n-bezier); - font-size: var(--n-content-font-size); - color: var(--n-content-text-color); - `),M("meta",` - transition: color .3s var(--n-bezier); - font-size: 12px; - margin-top: 6px; - margin-bottom: 20px; - color: var(--n-meta-text-color); - `)]),F("dashed-line-type",[S("timeline-item-timeline",[M("line",` - --n-color-start: var(--n-line-color); - transition: --n-color-start .3s var(--n-bezier); - background-color: transparent; - background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); - background-size: 1px 10px; - `)])]),S("timeline-item-timeline",` - width: calc(var(--n-icon-size) + 12px); - position: absolute; - top: calc(var(--n-title-font-size) * ${CS} / 2 - var(--n-icon-size) / 2); - height: 100%; - `,[M("circle",` - border: var(--n-circle-border); - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - width: var(--n-icon-size); - height: var(--n-icon-size); - border-radius: var(--n-icon-size); - box-sizing: border-box; - `),M("icon",` - color: var(--n-icon-color); - font-size: var(--n-icon-size); - height: var(--n-icon-size); - width: var(--n-icon-size); - display: flex; - align-items: center; - justify-content: center; - `),M("line",` - transition: background-color .3s var(--n-bezier); - position: absolute; - top: var(--n-icon-size); - left: calc(var(--n-icon-size) / 2 - 1px); - bottom: 0px; - width: 2px; - background-color: var(--n-line-color); - `)])])]),yO=Object.assign(Object.assign({},Se.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),xO="n-timeline",Aoe=J({name:"Timeline",props:yO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Timeline","-timeline",Doe,cne,e,n);return nt(xO,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return u("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),wO={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},Boe=J({name:"TimelineItem",props:wO,setup(e){const t=Le(xO);t||Dn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),$b();const{inlineThemeDisabled:n}=He(),r=P(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:s}=e,{self:{titleTextColor:c,contentTextColor:d,metaTextColor:f,lineColor:h,titleFontWeight:v,contentFontSize:p,[ye("iconSize",i)]:b,[ye("titleMargin",i)]:m,[ye("titleFontSize",i)]:g,[ye("circleBorder",s)]:y,[ye("iconColor",s)]:C},common:{cubicBezierEaseInOut:x}}=l.value;return{"--n-bezier":x,"--n-circle-border":y,"--n-icon-color":C,"--n-content-font-size":p,"--n-content-text-color":d,"--n-line-color":h,"--n-meta-text-color":f,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-margin":m,"--n-title-text-color":c,"--n-icon-size":Ot(a)||b}}),o=n?Je("timeline-item",P(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n==null||n(),u("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},u("div",{class:`${e}-timeline-item-timeline`},u("div",{class:`${e}-timeline-item-timeline__line`}),Ct(r.icon,o=>o?u("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):u("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),u("div",{class:`${e}-timeline-item-content`},Ct(r.header,o=>o||this.title?u("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),u("div",{class:`${e}-timeline-item-content__content`},vt(r.default,()=>[this.content])),u("div",{class:`${e}-timeline-item-content__meta`},vt(r.footer,()=>[this.time]))))}}),bc="n-transfer",SS=J({name:"TransferHeader",props:{size:{type:String,required:!0},source:Boolean,onCheckedAll:Function,onClearAll:Function,title:String},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:s}=Le(bc),{localeRef:c}=yn("Transfer");return()=>{const{source:d,onClearAll:f,onCheckedAll:h}=e,{value:v}=i,{value:p}=l,{value:b}=c,m=e.size==="large"?"small":"tiny",{title:g}=e;return u("div",{class:`${p}-transfer-list-header`},g&&u("div",{class:`${p}-transfer-list-header__title`},g),d&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:o.value?f:h,disabled:n.value||a.value},{default:()=>o.value?b.unselectAll:b.selectAll}),!d&&r.value&&u(Pt,{class:`${p}-transfer-list-header__button`,theme:v.peers.Button,themeOverrides:v.peerOverrides.Button,size:m,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),u("div",{class:`${p}-transfer-list-header__extra`},d?b.total(s.value):b.selected(t.value.length)))}}}),_S=J({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Le(bc),s=it(()=>t.value.has(e.value));function c(){e.disabled||o(!s.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:s,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return u("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},u("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&u("div",{class:`${n}-transfer-list-item__checkbox`},u(Zo,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),u("div",{class:`${n}-transfer-list-item__label`,title:rc(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&u(Go,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),kS=J({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc),n=D(null),r=D(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:s}=l;return s}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:s}=l;return s}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return u(rn,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?u(No,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:s,disabled:c}=this;return u(_S,{source:s,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):u("div",{class:`${n}-transfer-list-content`},t.map(l=>u(_S,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}}),RS=J({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Le(bc);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return u("div",{class:`${t}-transfer-filter`},u(In,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>u(st,{clsPrefix:t},{default:()=>u(y2,null)})}))}});function Eoe(e){const t=D(e.defaultValue),n=wt(xe(e,"value"),t),r=P(()=>{const x=new Map;return(e.options||[]).forEach(w=>x.set(w.value,w)),x}),o=P(()=>new Set(n.value||[])),i=P(()=>{const x=r.value,w=[];return(n.value||[]).forEach(k=>{const _=x.get(k);_&&w.push(_)}),w}),a=D(""),l=D(""),s=P(()=>e.sourceFilterable||!!e.filterable),c=P(()=>{const{showSelected:x,options:w,filter:k}=e;return s.value?w.filter(_=>k(a.value,_,"source")&&(x||!o.value.has(_.value))):x?w:w.filter(_=>!o.value.has(_.value))}),d=P(()=>{if(!e.targetFilterable)return i.value;const{filter:x}=e;return i.value.filter(w=>x(l.value,w,"target"))}),f=P(()=>{const{value:x}=n;return x===null?new Set:new Set(x)}),h=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&!x.has(w.value)&&x.add(w.value)}),x}),v=P(()=>{const x=new Set(f.value);return c.value.forEach(w=>{!w.disabled&&x.has(w.value)&&x.delete(w.value)}),x}),p=P(()=>{const x=new Set(f.value);return d.value.forEach(w=>{w.disabled||x.delete(w.value)}),x}),b=P(()=>c.value.every(x=>x.disabled)),m=P(()=>{if(!c.value.length)return!1;const x=f.value;return c.value.every(w=>w.disabled||x.has(w.value))}),g=P(()=>d.value.some(x=>!x.disabled));function y(x){a.value=x!=null?x:""}function C(x){l.value=x!=null?x:""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:h,valueSetForUncheckAllRef:v,valueSetForClearRef:p,filteredTgtOptionsRef:d,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:b,canBeClearedRef:g,allCheckedRef:m,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:s,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:C}}const Loe=S("transfer",` - width: 100%; - font-size: var(--n-font-size); - height: 300px; - display: flex; - flex-wrap: nowrap; - word-break: break-word; -`,[F("disabled",[S("transfer-list",[S("transfer-list-header",[M("title",` - color: var(--n-header-text-color-disabled); - `),M("extra",` - color: var(--n-header-extra-text-color-disabled); - `)])])]),S("transfer-list",` - flex: 1; - min-width: 0; - height: inherit; - display: flex; - flex-direction: column; - background-clip: padding-box; - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-list-color); - `,[F("source",` - border-top-left-radius: var(--n-border-radius); - border-bottom-left-radius: var(--n-border-radius); - `,[M("border","border-right: 1px solid var(--n-divider-color);")]),F("target",` - border-top-right-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `,[M("border","border-left: none;")]),M("border",` - padding: 0 12px; - border: 1px solid var(--n-border-color); - transition: border-color .3s var(--n-bezier); - pointer-events: none; - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `),S("transfer-list-header",` - min-height: var(--n-header-height); - box-sizing: border-box; - display: flex; - padding: 12px 12px 10px 12px; - align-items: center; - background-clip: padding-box; - border-radius: inherit; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; - line-height: 1.5; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[O("> *:not(:first-child)",` - margin-left: 8px; - `),M("title",` - flex: 1; - min-width: 0; - line-height: 1.5; - font-size: var(--n-header-font-size); - font-weight: var(--n-header-font-weight); - transition: color .3s var(--n-bezier); - color: var(--n-header-text-color); - `),M("button",` - position: relative; - `),M("extra",` - transition: color .3s var(--n-bezier); - font-size: var(--n-extra-font-size); - margin-right: 0; - white-space: nowrap; - color: var(--n-header-extra-text-color); - `)]),S("transfer-list-body",` - flex-basis: 0; - flex-grow: 1; - box-sizing: border-box; - position: relative; - display: flex; - flex-direction: column; - border-radius: inherit; - border-top-left-radius: 0; - border-top-right-radius: 0; - `,[S("transfer-filter",` - padding: 4px 12px 8px 12px; - box-sizing: border-box; - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),S("transfer-list-flex-container",` - flex: 1; - position: relative; - `,[S("scrollbar",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - height: unset; - `),S("empty",` - position: absolute; - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - `),S("transfer-list-content",` - padding: 0; - margin: 0; - position: relative; - `,[S("transfer-list-item",` - padding: 0 12px; - min-height: var(--n-item-height); - display: flex; - align-items: center; - color: var(--n-item-text-color); - position: relative; - transition: color .3s var(--n-bezier); - `,[M("background",` - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),M("checkbox",` - position: relative; - margin-right: 8px; - `),M("close",` - opacity: 0; - pointer-events: none; - position: relative; - transition: - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),M("label",` - position: relative; - min-width: 0; - flex-grow: 1; - `),F("source","cursor: pointer;"),F("disabled",` - cursor: not-allowed; - color: var(--n-item-text-color-disabled); - `),pt("disabled",[O("&:hover",[M("background","background-color: var(--n-item-color-pending);"),M("close",` - opacity: 1; - pointer-events: all; - `)])])])])])])])]),CO=Object.assign(Object.assign({},Se.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~(""+t.label).toLowerCase().indexOf((""+e).toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),Noe=J({name:"Transfer",props:CO,setup(e){const{mergedClsPrefixRef:t}=He(e),n=Se("Transfer","-transfer",Loe,hne,e,t),r=xn(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=P(()=>{const{value:L}=o,{self:{[ye("itemHeight",L)]:j}}=n.value;return dn(j)}),{uncontrolledValueRef:l,mergedValueRef:s,targetValueSetRef:c,valueSetForCheckAllRef:d,valueSetForUncheckAllRef:f,valueSetForClearRef:h,filteredTgtOptionsRef:v,filteredSrcOptionsRef:p,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcPatternRef:C,tgtPatternRef:x,mergedSrcFilterableRef:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_}=Eoe(e);function T(L){const{onUpdateValue:j,"onUpdate:value":E,onChange:U}=e,{nTriggerFormInput:K,nTriggerFormChange:Q}=r;j&&he(j,L),E&&he(E,L),U&&he(U,L),l.value=L,K(),Q()}function $(){T([...d.value])}function R(){T([...f.value])}function I(){T([...h.value])}function z(L,j){T(L?(s.value||[]).concat(j):(s.value||[]).filter(E=>E!==j))}function A(L){T(L)}return nt(bc,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:b,canNotSelectAnythingRef:m,canBeClearedRef:g,allCheckedRef:y,srcOptionsLengthRef:P(()=>e.options.length),handleItemCheck:z,renderSourceLabelRef:xe(e,"renderSourceLabel"),renderTargetLabelRef:xe(e,"renderTargetLabel"),showSelectedRef:xe(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:An(),mergedTheme:n,filteredSrcOpts:p,filteredTgtOpts:v,srcPattern:C,tgtPattern:x,mergedSize:o,mergedSrcFilterable:w,handleSrcFilterUpdateValue:k,handleTgtFilterUpdateValue:_,handleSourceCheckAll:$,handleSourceUncheckAll:R,handleTargetClearAll:I,handleItemCheck:z,handleChecked:A,cssVars:P(()=>{const{value:L}=o,{common:{cubicBezierEaseInOut:j},self:{borderRadius:E,borderColor:U,listColor:K,titleTextColor:Q,titleTextColorDisabled:V,extraTextColor:re,itemTextColor:ee,itemColorPending:ue,itemTextColorDisabled:de,titleFontWeight:Ce,closeColorHover:we,closeColorPressed:me,closeIconColor:Oe,closeIconColorHover:ke,closeIconColorPressed:pe,closeIconSize:Me,closeSize:H,dividerColor:W,extraTextColorDisabled:Y,[ye("extraFontSize",L)]:ce,[ye("fontSize",L)]:X,[ye("titleFontSize",L)]:B,[ye("itemHeight",L)]:N,[ye("headerHeight",L)]:te}}=n.value;return{"--n-bezier":j,"--n-border-color":U,"--n-border-radius":E,"--n-extra-font-size":ce,"--n-font-size":X,"--n-header-font-size":B,"--n-header-extra-text-color":re,"--n-header-extra-text-color-disabled":Y,"--n-header-font-weight":Ce,"--n-header-text-color":Q,"--n-header-text-color-disabled":V,"--n-item-color-pending":ue,"--n-item-height":N,"--n-item-text-color":ee,"--n-item-text-color-disabled":de,"--n-list-color":K,"--n-header-height":te,"--n-close-size":H,"--n-close-icon-size":Me,"--n-close-color-hover":we,"--n-close-color-pressed":me,"--n-close-icon-color":Oe,"--n-close-icon-color-hover":ke,"--n-close-icon-color-pressed":pe,"--n-divider-color":W}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return u("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},u("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},u(SS,{source:!0,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),u("div",{class:`${e}-transfer-list-body`},o?u(RS,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},t?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):u(kS,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})),u("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},u(SS,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),u("div",{class:`${e}-transfer-list-body`},i?u(RS,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,u("div",{class:`${e}-transfer-list-flex-container`},n?u(rn,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):u(kS,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),u("div",{class:`${e}-transfer-list__border`})))}}),D0="n-tree-select",yc="n-tree",Hoe=J({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(e){const{renderSwitcherIconRef:t}=Le(yc,null);return()=>{const{clsPrefix:n}=e;return u("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,e.expanded&&`${n}-tree-node-switcher--expanded`,e.hide&&`${n}-tree-node-switcher--hide`],onClick:e.onClick},u("div",{class:`${n}-tree-node-switcher__icon`},u(ko,null,{default:()=>{if(e.loading)return u(eo,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:r}=t;return r?r({expanded:e.expanded,selected:e.selected}):u(st,{clsPrefix:n,key:"switcher"},{default:()=>u(sW,null)})}})))}}}),joe=J({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){const t=Le(yc);function n(o){const{onCheck:i}=e;if(i)return i(o)}function r(o){e.indeterminate?n(!1):n(o)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){const{clsPrefix:e,mergedTheme:t,checked:n,indeterminate:r,disabled:o,focusable:i,handleUpdateValue:a}=this;return u("span",{class:[`${e}-tree-node-checkbox`,this.right&&`${e}-tree-node-checkbox--right`],"data-checkbox":!0},u(Zo,{focusable:i,disabled:o,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:a}))}}),Voe=J({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){const{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:o}=Le(yc),i=D(null);function a(s){const{onClick:c}=e;c&&c(s)}function l(s){a(s)}return{selfRef:i,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:o,handleClick:l}},render(){const{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:o=!1,renderLabel:i,renderPrefix:a,renderSuffix:l,handleClick:s,onDragstart:c,tmNode:{rawNode:d,rawNode:{prefix:f,suffix:h,[t]:v}}}=this;return u("span",Object.assign({},n,{ref:"selfRef",class:[`${e}-tree-node-content`,n==null?void 0:n.class],onClick:s,draggable:c===void 0?void 0:!0,onDragstart:c}),a||f?u("div",{class:`${e}-tree-node-content__prefix`},a?a({option:d,selected:o,checked:r}):jt(f)):null,u("div",{class:`${e}-tree-node-content__text`},i?i({option:d,selected:o,checked:r}):jt(v)),l||h?u("div",{class:`${e}-tree-node-content__suffix`},l?l({option:d,selected:o,checked:r}):jt(h)):null)}});function PS({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return u("div",{style:o})}function Uoe({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}function SO(e){return P(()=>e.leafOnly?"child":e.checkStrategy)}function li(e,t){return!!e.rawNode[t]}function _O(e,t,n,r){e==null||e.forEach(o=>{n(o),_O(o[t],t,n,r),r(o)})}function Woe(e,t,n,r,o){const i=new Set,a=new Set,l=[];return _O(e,r,s=>{if(l.push(s),o(t,s)){a.add(s[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(rr&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Koe(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,s=[],c=[],d=[];function f(v){v.forEach(p=>{if(d.push(p),t(n,p)){i.add(p[r]),l.add(p[r]);for(let m=d.length-2;m>=0;--m){const g=d[m][r];if(!a.has(g))a.add(g),i.has(g)&&i.delete(g);else break}}const b=p[o];b&&f(b),d.pop()})}f(e);function h(v,p){v.forEach(b=>{const m=b[r],g=i.has(m),y=a.has(m);if(!g&&!y)return;const C=b[o];if(C)if(g)p.push(b);else{s.push(m);const x=Object.assign(Object.assign({},b),{[o]:[]});p.push(x),h(C,x[o])}else p.push(b)})}return h(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:s}}const qoe=J({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Le(yc),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:s,blockLineRef:c,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:h}=t,v=it(()=>!!e.tmNode.rawNode.checkboxDisabled),p=it(()=>li(e.tmNode,h.value)),b=it(()=>t.disabledRef.value||p.value),m=P(()=>{const{value:K}=l;if(!!K)return K({option:e.tmNode.rawNode})}),g=D(null),y={value:null};Mt(()=>{y.value=g.value.$el});function C(){const{tmNode:K}=e;if(!K.isLeaf&&!K.shallowLoaded){if(!t.loadingKeysRef.value.has(K.key))t.loadingKeysRef.value.add(K.key);else return;const{onLoadRef:{value:Q}}=t;Q&&Q(K.rawNode).then(V=>{V!==!1&&t.handleSwitcherClick(K)}).finally(()=>{t.loadingKeysRef.value.delete(K.key)})}else t.handleSwitcherClick(K)}const x=it(()=>!p.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),w=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),k=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),_=it(()=>{const{value:K}=w;if(!K)return!1;const{value:Q}=f;return typeof Q=="boolean"?Q:Q(e.tmNode.rawNode)});function T(K){const{value:Q}=t.expandOnClickRef,{value:V}=x,{value:re}=_;if(!V&&!Q&&!re||qn(K,"checkbox")||qn(K,"switcher"))return;const{tmNode:ee}=e;V&&t.handleSelect(ee),Q&&!ee.isLeaf&&C(),re&&I(!k.value)}function $(K){var Q,V;c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function R(K){var Q,V;!c.value||(b.value||T(K),(V=(Q=m.value)===null||Q===void 0?void 0:Q.onClick)===null||V===void 0||V.call(Q,K))}function I(K){t.handleCheck(e.tmNode,K)}function z(K){t.handleDragStart({event:K,node:e.tmNode})}function A(K){K.currentTarget===K.target&&t.handleDragEnter({event:K,node:e.tmNode})}function L(K){K.preventDefault(),t.handleDragOver({event:K,node:e.tmNode})}function j(K){t.handleDragEnd({event:K,node:e.tmNode})}function E(K){K.currentTarget===K.target&&t.handleDragLeave({event:K,node:e.tmNode})}function U(K){K.preventDefault(),i.value!==null&&t.handleDrop({event:K,node:e.tmNode,dropPosition:i.value})}return{showDropMark:it(()=>{const{value:K}=o;if(!K)return;const{value:Q}=i;if(!Q)return;const{value:V}=r;if(!V)return;const{tmNode:re}=e;return re.key===V.key}),showDropMarkAsParent:it(()=>{const{value:K}=n;if(!K)return!1;const{tmNode:Q}=e,{value:V}=i;return V==="before"||V==="after"?K.key===Q.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var K;return(K=t.highlightKeySetRef.value)===null||K===void 0?void 0:K.has(e.tmNode.key)}),checked:k,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:b,checkable:w,mergedCheckOnClick:_,checkboxDisabled:v,selectable:x,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:m,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:s,checkboxPlacement:d,contentInstRef:g,contentElRef:y,handleCheck:I,handleDrop:U,handleDragStart:z,handleDragEnter:A,handleDragOver:L,handleDragEnd:j,handleDragLeave:E,handleLineClick:R,handleContentClick:$,handleSwitcherClick:C}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:s,blockLine:c,indent:d,disabled:f,pending:h,internalScrollable:v,nodeProps:p,checkboxPlacement:b}=this,m=s&&!f?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,g=v?Pk(e.key):void 0,y=b==="right",C=n?u(joe,{right:y,focusable:this.checkboxFocusable,disabled:f||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return u("div",Object.assign({class:`${t}-tree-node-wrapper`},m),u("div",Object.assign({},c?p:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:h,[`${t}-tree-node--disabled`]:f,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":g,draggable:s&&c,onClick:this.handleLineClick,onDragstart:s&&c&&!f?this.handleDragStart:void 0}),Rk(e.level,u("div",{class:`${t}-tree-node-indent`},u("div",{style:{width:`${d}px`}}))),u(Hoe,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,onClick:this.handleSwitcherClick}),y?null:C,u(Voe,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:s&&!c&&!f?this.handleDragStart:void 0,tmNode:e}),s?this.showDropMark?PS({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}):this.showDropMarkAsParent?PS({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:d}):null:null,y?C:null))}}),kO=qoe;function Yoe({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,handleSelect:o,handleSwitcherClick:i}){const{value:a}=r,l=Le(D0,null),s=l?l.pendingNodeKeyRef:D(a.length?a[a.length-1]:null);function c(d){if(!e.keyboard)return;const{value:f}=s;if(f===null){if((d.key==="ArrowDown"||d.key==="ArrowUp")&&d.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(d.key)&&f===null){const{value:h}=t;let v=0;for(;vp.key===f);if(!~v)return;if(d.key==="Enter")o(h[v]);else if(d.key==="ArrowDown")for(d.preventDefault(),v+=1;v=0;){if(!h[v].disabled){s.value=h[v].key;break}v-=1}else if(d.key==="ArrowLeft"){const p=h[v];if(p.isLeaf||!n.value.includes(f)){const b=p.getParent();b&&(s.value=b.key)}else i(p)}else if(d.key==="ArrowRight"){const p=h[v];if(p.isLeaf)return;if(!n.value.includes(f))i(p);else for(v+=1;vu("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:gn(this.height)}},this.nodes.map(t=>u(kO,{clsPrefix:e,tmNode:t})))})}}),Goe=S("tree",` - font-size: var(--n-font-size); - outline: none; -`,[O("ul, li",` - margin: 0; - padding: 0; - list-style: none; - `),O(">",[S("tree-node",[O("&:first-child",{marginTop:0})])]),S("tree-node-indent",` - flex-grow: 0; - flex-shrink: 0; - height: 0; - `),S("tree-motion-wrapper",[F("expand",[jo({duration:"0.2s"})]),F("collapse",[jo({duration:"0.2s",reverse:!0})])]),S("tree-node-wrapper",` - box-sizing: border-box; - padding: 3px 0; - `),S("tree-node",` - transform: translate3d(0,0,0); - position: relative; - display: flex; - border-radius: var(--n-node-border-radius); - transition: background-color .3s var(--n-bezier); - `,[F("highlight",[S("tree-node-content",[M("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),F("disabled",[S("tree-node-content",` - color: var(--n-node-text-color-disabled); - cursor: not-allowed; - `)]),pt("disabled",[F("clickable",[S("tree-node-content",` - cursor: pointer; - `)])])]),F("block-node",[S("tree-node-content",` - flex: 1; - min-width: 0; - `)]),pt("block-line",[S("tree-node",[pt("disabled",[S("tree-node-content",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),F("selectable",[S("tree-node-content",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("pending",[S("tree-node-content",` - background-color: var(--n-node-color-hover); - `)]),F("selected",[S("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),F("block-line",[S("tree-node",[pt("disabled",[O("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),F("pending",` - background-color: var(--n-node-color-hover); - `),F("selectable",[pt("selected",[O("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),F("selected",{backgroundColor:"var(--n-node-color-active)"})]),F("disabled",` - cursor: not-allowed; - `)])]),S("tree-node-switcher",` - cursor: pointer; - display: inline-flex; - flex-shrink: 0; - height: 24px; - width: 24px; - align-items: center; - justify-content: center; - transition: transform .15s var(--n-bezier); - vertical-align: bottom; - `,[M("icon",` - position: relative; - height: 14px; - width: 14px; - display: flex; - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - font-size: 14px; - `,[S("icon",[kn()]),S("base-loading",` - color: var(--n-loading-color); - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[kn()]),S("base-icon",[kn()])]),F("hide",{visibility:"hidden"}),F("expanded",{transform:"rotate(90deg)"})]),S("tree-node-checkbox",` - display: inline-flex; - height: 24px; - width: 16px; - vertical-align: bottom; - align-items: center; - justify-content: center; - margin-right: 4px; - `,[F("right","margin-left: 4px;")]),F("checkable",[S("tree-node-content",` - padding: 0 6px; - `)]),S("tree-node-content",` - position: relative; - display: inline-flex; - align-items: center; - min-height: 24px; - box-sizing: border-box; - line-height: 1.5; - vertical-align: bottom; - padding: 0 6px 0 4px; - cursor: default; - border-radius: var(--n-node-border-radius); - text-decoration-color: #0000; - text-decoration-line: underline; - color: var(--n-node-text-color); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[O("&:last-child",{marginBottom:0}),M("prefix",` - display: inline-flex; - margin-right: 8px; - `),M("text",` - border-bottom: 1px solid #0000; - transition: border-color .3s var(--n-bezier); - flex-grow: 1; - max-width: 100%; - `),M("suffix",` - display: inline-flex; - `)]),M("empty","margin: auto;")]);var Zoe=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const vd=30;function RO(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const PO={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array]},$O=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},indent:{type:Number,default:16},allowDrop:{type:Function,default:Uoe},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),PO),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),TO=J({name:"Tree",props:$O,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=He(e),o=Zt("Tree",r,t),i=Se("Tree","-tree",Goe,dT,e,t),a=D(null),l=D(null),s=D(null);function c(){var be;return(be=s.value)===null||be===void 0?void 0:be.listElRef}function d(){var be;return(be=s.value)===null||be===void 0?void 0:be.itemsElRef}const f=P(()=>{const{filter:be}=e;if(be)return be;const{labelField:De}=e;return(Qe,ot)=>{if(!Qe.length)return!0;const lt=ot[De];return typeof lt=="string"?lt.toLowerCase().includes(Qe.toLowerCase()):!1}}),h=P(()=>{const{pattern:be}=e;return be?!be.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:Koe(e.data,f.value,be,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),v=P(()=>to(e.showIrrelevantNodes?e.data:h.value.filteredTree,RO(e.keyField,e.childrenField,e.disabledField,e.getChildren))),p=Le(D0,null),b=e.internalTreeSelect?p.dataTreeMate:v,{watchProps:m}=e,g=D([]);m!=null&&m.includes("defaultCheckedKeys")?Ft(()=>{g.value=e.defaultCheckedKeys}):g.value=e.defaultCheckedKeys;const y=xe(e,"checkedKeys"),C=wt(y,g),x=P(()=>b.value.getCheckedKeys(C.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=SO(e),k=P(()=>x.value.checkedKeys),_=P(()=>{const{indeterminateKeys:be}=e;return be!==void 0?be:x.value.indeterminateKeys}),T=D([]);m!=null&&m.includes("defaultSelectedKeys")?Ft(()=>{T.value=e.defaultSelectedKeys}):T.value=e.defaultSelectedKeys;const $=xe(e,"selectedKeys"),R=wt($,T),I=D([]),z=be=>{I.value=e.defaultExpandAll?b.value.getNonLeafKeys():be===void 0?e.defaultExpandedKeys:be};m!=null&&m.includes("defaultExpandedKeys")?Ft(()=>z(void 0)):Ft(()=>z(e.defaultExpandedKeys));const A=xe(e,"expandedKeys"),L=wt(A,I),j=P(()=>v.value.getFlattenedNodes(L.value)),{pendingNodeKeyRef:E,handleKeydown:U}=Yoe({props:e,mergedSelectedKeysRef:R,fNodesRef:j,mergedExpandedKeysRef:L,handleSelect:Ee,handleSwitcherClick:Be});let K=null,Q=null;const V=D(new Set),re=P(()=>e.internalHighlightKeySet||h.value.highlightKeySet),ee=wt(re,V),ue=D(new Set),de=P(()=>L.value.filter(be=>!ue.value.has(be)));let Ce=0;const we=D(null),me=D(null),Oe=D(null),ke=D(null),pe=D(0),Me=P(()=>{const{value:be}=me;return be?be.parent:null});rt(xe(e,"data"),()=>{ue.value.clear(),E.value=null,Xe()},{deep:!1});let H=!1;const W=()=>{H=!0,_t(()=>{H=!1})};let Y;rt(xe(e,"pattern"),(be,De)=>{if(e.showIrrelevantNodes)if(Y=void 0,be){const{expandedKeys:Qe,highlightKeySet:ot}=Woe(e.data,e.pattern,e.keyField,e.childrenField,f.value);V.value=ot,W(),ne(Qe,fe(Qe),{node:null,action:"filter"})}else V.value=new Set;else if(!be.length)Y!==void 0&&(W(),ne(Y,fe(Y),{node:null,action:"filter"}));else{De.length||(Y=L.value);const{expandedKeys:Qe}=h.value;Qe!==void 0&&(W(),ne(Qe,fe(Qe),{node:null,action:"filter"}))}});function ce(be){return Zoe(this,void 0,void 0,function*(){const{onLoad:De}=e;if(!De)return yield Promise.resolve();const{value:Qe}=ue;if(!Qe.has(be.key)){Qe.add(be.key);try{(yield De(be.rawNode))===!1&&G()}catch(ot){console.error(ot),G()}Qe.delete(be.key)}})}Ft(()=>{var be;const{value:De}=v;if(!De)return;const{getNode:Qe}=De;(be=L.value)===null||be===void 0||be.forEach(ot=>{const lt=Qe(ot);lt&&!lt.shallowLoaded&&ce(lt)})});const X=D(!1),B=D([]);rt(de,(be,De)=>{if(!e.animated||H){_t(ve);return}const Qe=new Set(De);let ot=null,lt=null;for(const kt of be)if(!Qe.has(kt)){if(ot!==null)return;ot=kt}const Kt=new Set(be);for(const kt of De)if(!Kt.has(kt)){if(lt!==null)return;lt=kt}if(ot===null&<===null)return;const{virtualScroll:Vt}=e,Re=(Vt?s.value.listElRef:a.value).offsetHeight,Ye=Math.ceil(Re/vd)+1;let at;if(ot!==null&&(at=De),lt!==null&&(at===void 0?at=be:at=at.filter(kt=>kt!==lt)),X.value=!0,B.value=v.value.getFlattenedNodes(at),ot!==null){const kt=B.value.findIndex(Ut=>Ut.key===ot);if(~kt){const Ut=B.value[kt].children;if(Ut){const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"expand",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}}if(lt!==null){const kt=B.value.findIndex(Ut=>Ut.key===lt);if(~kt){const Ut=B.value[kt].children;if(!Ut)return;X.value=!0;const At=Ug(Ut,be);B.value.splice(kt+1,0,{__motion:!0,mode:"collapse",height:Vt?At.length*vd:void 0,nodes:Vt?At.slice(0,Ye):At})}}});const N=P(()=>C2(j.value)),te=P(()=>X.value?B.value:j.value);function ve(){const{value:be}=l;be&&be.sync()}function Z(){X.value=!1,e.virtualScroll&&_t(ve)}function fe(be){const{getNode:De}=b.value;return be.map(Qe=>{var ot;return((ot=De(Qe))===null||ot===void 0?void 0:ot.rawNode)||null})}function ne(be,De,Qe){const{"onUpdate:expandedKeys":ot,onUpdateExpandedKeys:lt}=e;I.value=be,ot&&he(ot,be,De,Qe),lt&&he(lt,be,De,Qe)}function ge(be,De,Qe){const{"onUpdate:checkedKeys":ot,onUpdateCheckedKeys:lt}=e;g.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Pe(be,De){const{"onUpdate:indeterminateKeys":Qe,onUpdateIndeterminateKeys:ot}=e;Qe&&he(Qe,be,De),ot&&he(ot,be,De)}function Ae(be,De,Qe){const{"onUpdate:selectedKeys":ot,onUpdateSelectedKeys:lt}=e;T.value=be,lt&&he(lt,be,De,Qe),ot&&he(ot,be,De,Qe)}function Ke(be){const{onDragenter:De}=e;De&&he(De,be)}function qe(be){const{onDragleave:De}=e;De&&he(De,be)}function ct(be){const{onDragend:De}=e;De&&he(De,be)}function dt(be){const{onDragstart:De}=e;De&&he(De,be)}function ut(be){const{onDragover:De}=e;De&&he(De,be)}function je(be){const{onDrop:De}=e;De&&he(De,be)}function Xe(){Ve(),We()}function Ve(){we.value=null}function We(){pe.value=0,me.value=null,Oe.value=null,ke.value=null,G()}function G(){K&&(window.clearTimeout(K),K=null),Q=null}function q(be,De){if(e.disabled||li(be,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Ee(be);return}const Qe=De?"check":"uncheck",{checkedKeys:ot,indeterminateKeys:lt}=b.value[Qe](be.key,k.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});ge(ot,fe(ot),{node:be.rawNode,action:Qe}),Pe(lt,fe(lt))}function _e(be){if(e.disabled)return;const{key:De}=be,{value:Qe}=L,ot=Qe.findIndex(lt=>lt===De);if(~ot){const lt=Array.from(Qe);lt.splice(ot,1),ne(lt,fe(lt),{node:be.rawNode,action:"collapse"})}else{const lt=v.value.getNode(De);if(!lt||lt.isLeaf)return;let Kt;if(e.accordion){const Vt=new Set(be.siblings.map(({key:Re})=>Re));Kt=Qe.filter(Re=>!Vt.has(Re)),Kt.push(De)}else Kt=Qe.concat(De);ne(Kt,fe(Kt),{node:be.rawNode,action:"expand"})}}function Be(be){e.disabled||X.value||_e(be)}function Ee(be){if(!(e.disabled||!e.selectable)){if(E.value=be.key,e.internalUnifySelectCheck){const{value:{checkedKeys:De,indeterminateKeys:Qe}}=x;e.multiple?q(be,!(De.includes(be.key)||Qe.includes(be.key))):ge([be.key],fe([be.key]),{node:be.rawNode,action:"check"})}if(e.multiple){const De=Array.from(R.value),Qe=De.findIndex(ot=>ot===be.key);~Qe?e.cancelable&&De.splice(Qe,1):~Qe||De.push(be.key),Ae(De,fe(De),{node:be.rawNode,action:~Qe?"unselect":"select"})}else R.value.includes(be.key)?e.cancelable&&Ae([],[],{node:be.rawNode,action:"unselect"}):Ae([be.key],fe([be.key]),{node:be.rawNode,action:"select"})}}function ae(be){if(K&&(window.clearTimeout(K),K=null),be.isLeaf)return;Q=be.key;const De=()=>{if(Q!==be.key)return;const{value:Qe}=Oe;if(Qe&&Qe.key===be.key&&!L.value.includes(be.key)){const ot=L.value.concat(be.key);ne(ot,fe(ot),{node:be.rawNode,action:"expand"})}K=null,Q=null};be.shallowLoaded?K=window.setTimeout(()=>{De()},1e3):K=window.setTimeout(()=>{ce(be).then(()=>{De()})},1e3)}function ze({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(oe({event:be,node:De},!1),Ke({event:be,node:De.rawNode}))}function ie({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||qe({event:be,node:De.rawNode})}function Te(be){be.target===be.currentTarget&&We()}function se({event:be,node:De}){Xe(),!(!e.draggable||e.disabled||li(De,e.disabledField))&&ct({event:be,node:De.rawNode})}function $e({event:be,node:De}){!e.draggable||e.disabled||li(De,e.disabledField)||(Ce=be.clientX,we.value=De,dt({event:be,node:De.rawNode}))}function oe({event:be,node:De},Qe=!0){var ot;if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:lt}=we;if(!lt)return;const{allowDrop:Kt,indent:Vt}=e;Qe&&ut({event:be,node:De.rawNode});const Re=be.currentTarget,{height:Ye,top:at}=Re.getBoundingClientRect(),kt=be.clientY-at;let Ut;Kt({node:De.rawNode,dropPosition:"inside",phase:"drag"})?kt<=8?Ut="before":kt>=Ye-8?Ut="after":Ut="inside":kt<=Ye/2?Ut="before":Ut="after";const{value:Ur}=N;let Et,cn;const $o=Ur(De.key);if($o===null){We();return}let Qo=!1;Ut==="inside"?(Et=De,cn="inside"):Ut==="before"?De.isFirstChild?(Et=De,cn="before"):(Et=j.value[$o-1],cn="after"):(Et=De,cn="after"),!Et.isLeaf&&L.value.includes(Et.key)&&(Qo=!0,cn==="after"&&(Et=j.value[$o+1],Et?cn="before":(Et=De,cn="inside")));const Jo=Et;if(Oe.value=Jo,!Qo&<.isLastChild&<.key===Et.key&&(cn="after"),cn==="after"){let ei=Ce-be.clientX,Ni=0;for(;ei>=Vt/2&&Et.parent!==null&&Et.isLastChild&&Ni<1;)ei-=Vt,Ni+=1,Et=Et.parent;pe.value=Ni}else pe.value=0;if((lt.contains(Et)||cn==="inside"&&((ot=lt.parent)===null||ot===void 0?void 0:ot.key)===Et.key)&&!(lt.key===Jo.key&<.key===Et.key)){We();return}if(!Kt({node:Et.rawNode,dropPosition:cn,phase:"drag"})){We();return}if(lt.key===Et.key)G();else if(Q!==Et.key)if(cn==="inside"){if(e.expandOnDragenter){if(ae(Et),!Et.shallowLoaded&&Q!==Et.key){Xe();return}}else if(!Et.shallowLoaded){Xe();return}}else G();else cn!=="inside"&&G();ke.value=cn,me.value=Et}function Fe({event:be,node:De,dropPosition:Qe}){if(!e.draggable||e.disabled||li(De,e.disabledField))return;const{value:ot}=we,{value:lt}=me,{value:Kt}=ke;if(!(!ot||!lt||!Kt)&&!!e.allowDrop({node:lt.rawNode,dropPosition:Kt,phase:"drag"})&&ot.key!==lt.key){if(Kt==="before"){const Vt=ot.getNext({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}if(Kt==="after"){const Vt=ot.getPrev({includeDisabled:!0});if(Vt&&Vt.key===lt.key){We();return}}je({event:be,node:lt.rawNode,dragNode:ot.rawNode,dropPosition:Qe}),Xe()}}function Ne(){ve()}function Ze(){ve()}function Ue(be){var De;if(e.virtualScroll||e.internalScrollable){const{value:Qe}=l;if(!((De=Qe==null?void 0:Qe.containerRef)===null||De===void 0)&&De.contains(be.relatedTarget))return;E.value=null}else{const{value:Qe}=a;if(Qe!=null&&Qe.contains(be.relatedTarget))return;E.value=null}}rt(E,be=>{var De,Qe;if(be!==null){if(e.virtualScroll)(De=s.value)===null||De===void 0||De.scrollTo({key:be});else if(e.internalScrollable){const{value:ot}=l;if(ot===null)return;const lt=(Qe=ot.contentRef)===null||Qe===void 0?void 0:Qe.querySelector(`[data-key="${Pk(be)}"]`);if(!lt)return;ot.scrollTo({el:lt})}}}),nt(yc,{loadingKeysRef:ue,highlightKeySetRef:ee,displayedCheckedKeysRef:k,displayedIndeterminateKeysRef:_,mergedSelectedKeysRef:R,mergedExpandedKeysRef:L,mergedThemeRef:i,mergedCheckStrategyRef:w,nodePropsRef:xe(e,"nodeProps"),disabledRef:xe(e,"disabled"),checkableRef:xe(e,"checkable"),selectableRef:xe(e,"selectable"),expandOnClickRef:xe(e,"expandOnClick"),onLoadRef:xe(e,"onLoad"),draggableRef:xe(e,"draggable"),blockLineRef:xe(e,"blockLine"),indentRef:xe(e,"indent"),cascadeRef:xe(e,"cascade"),checkOnClickRef:xe(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:Oe,droppingNodeParentRef:Me,draggingNodeRef:we,droppingPositionRef:ke,droppingOffsetLevelRef:pe,fNodesRef:j,pendingNodeKeyRef:E,disabledFieldRef:xe(e,"disabledField"),internalScrollableRef:xe(e,"internalScrollable"),internalCheckboxFocusableRef:xe(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:xe(e,"renderLabel"),renderPrefixRef:xe(e,"renderPrefix"),renderSuffixRef:xe(e,"renderSuffix"),renderSwitcherIconRef:xe(e,"renderSwitcherIcon"),labelFieldRef:xe(e,"labelField"),multipleRef:xe(e,"multiple"),handleSwitcherClick:Be,handleDragEnd:se,handleDragEnter:ze,handleDragLeave:ie,handleDragStart:$e,handleDrop:Fe,handleDragOver:oe,handleSelect:Ee,handleCheck:q});function le(be){var De;(De=s.value)===null||De===void 0||De.scrollTo(be)}const Ie={handleKeydown:U,scrollTo:le,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:be}=x.value;return{keys:be,options:fe(be)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:be}=x.value;return{keys:be,options:fe(be)}}},Ge=P(()=>{const{common:{cubicBezierEaseInOut:be},self:{fontSize:De,nodeBorderRadius:Qe,nodeColorHover:ot,nodeColorPressed:lt,nodeColorActive:Kt,arrowColor:Vt,loadingColor:Re,nodeTextColor:Ye,nodeTextColorDisabled:at,dropMarkColor:kt}}=i.value;return{"--n-arrow-color":Vt,"--n-loading-color":Re,"--n-bezier":be,"--n-font-size":De,"--n-node-border-radius":Qe,"--n-node-color-active":Kt,"--n-node-color-hover":ot,"--n-node-color-pressed":lt,"--n-node-text-color":Ye,"--n-node-text-color-disabled":at,"--n-drop-mark-color":kt}}),gt=n?Je("tree",void 0,Ge,e):void 0;return Object.assign(Object.assign({},Ie),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:te,aip:X,selfElRef:a,virtualListInstRef:s,scrollbarInstRef:l,handleFocusout:Ue,handleDragLeaveTree:Te,handleScroll:Ne,getScrollContainer:c,getScrollContent:d,handleAfterEnter:Z,handleResize:Ze,cssVars:n?void 0:Ge,themeClass:gt==null?void 0:gt.themeClass,onRender:gt==null?void 0:gt.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,internalFocusable:s,checkable:c,handleKeydown:d,rtlEnabled:f,handleFocusout:h}=this,v=s&&!l,p=v?"0":void 0,b=[`${r}-tree`,f&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`],m=y=>"__motion"in y?u(Xoe,{height:y.height,nodes:y.nodes,clsPrefix:r,mode:y.mode,onAfterEnter:this.handleAfterEnter}):u(kO,{key:y.key,tmNode:y,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:y,internalScrollablePadding:C}=this,x=yi(C||"0");return u(Pf,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:y.peers.Scrollbar,themeOverrides:y.peerOverrides.Scrollbar,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0},{default:()=>{var w;return(w=this.onRender)===null||w===void 0||w.call(this),u(No,{ref:"virtualListInstRef",items:this.fNodes,itemSize:vd,ignoreItemResize:this.aip,paddingTop:x.top,paddingBottom:x.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:x.left,paddingRight:x.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:k})=>m(k)})}})}const{internalScrollable:g}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),g?u(Pf,{class:b,tabindex:p,onKeydown:v?d:void 0,onFocusout:v?h:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>u("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(m))}):u("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:v?d:void 0,onFocusout:v?h:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(m):vt(this.$slots.empty,()=>[u(Ei,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function $S(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function TS(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const Qoe=O([S("tree-select",` - z-index: auto; - outline: none; - width: 100%; - position: relative; - `),S("tree-select-menu",` - position: relative; - overflow: hidden; - margin: 4px 0; - transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-menu-border-radius); - box-shadow: var(--n-menu-box-shadow); - background-color: var(--n-menu-color); - outline: none; - `,[S("tree","max-height: var(--n-menu-height);"),M("empty",` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),M("action",` - padding: var(--n-action-padding); - transition: - color .3s var(--n-bezier); - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),$n()])]),OO=Object.assign(Object.assign(Object.assign(Object.assign({},Se.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Lt.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),PO),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),Joe=J({name:"TreeSelect",props:OO,setup(e){const t=D(null),n=D(null),r=D(null),o=D(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=He(e),{localeRef:s}=yn("Select"),{mergedSizeRef:c,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur:h,nTriggerFormChange:v,nTriggerFormFocus:p,nTriggerFormInput:b}=xn(e),m=D(e.defaultValue),g=xe(e,"value"),y=wt(g,m),C=D(e.defaultShow),x=xe(e,"show"),w=wt(x,C),k=D(""),_=P(()=>{const{filter:q}=e;if(q)return q;const{labelField:_e}=e;return(Be,Ee)=>Be.length?Ee[_e].toLowerCase().includes(Be.toLowerCase()):!0}),T=P(()=>to(e.options,RO(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,R=D(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),I=P(()=>e.multiple&&e.cascade&&e.checkable),z=D(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=xe(e,"expandedKeys"),L=wt(A,z),j=D(!1),E=P(()=>{const{placeholder:q}=e;return q!==void 0?q:s.value.placeholder}),U=P(()=>e.checkable?[]:K.value),K=P(()=>{const{value:q}=y;return e.multiple?Array.isArray(q)?q:[]:q===null||Array.isArray(q)?[]:[q]}),Q=P(()=>{const{multiple:q,showPath:_e,separator:Be,labelField:Ee}=e;if(q)return null;const{value:ae}=y;if(!Array.isArray(ae)&&ae!==null){const{value:ze}=T,ie=ze.getNode(ae);if(ie!==null)return _e?TS(ie,ze.getPath(ae).treeNodePath,Be,Ee):$S(ie,Ee)}return null}),V=P(()=>{const{multiple:q,showPath:_e,separator:Be}=e;if(!q)return null;const{value:Ee}=y;if(Array.isArray(Ee)){const ae=[],{value:ze}=T,{checkedKeys:ie}=ze.getCheckedKeys(Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Te}=e;return ie.forEach(se=>{const $e=ze.getNode(se);$e!==null&&ae.push(_e?TS($e,ze.getPath(se).treeNodePath,Be,Te):$S($e,Te))}),ae}return[]}),re=P(()=>{const{self:{menuPadding:q}}=Ve.value;return q});function ee(){var q;(q=n.value)===null||q===void 0||q.focus()}function ue(){var q;(q=n.value)===null||q===void 0||q.focusInput()}function de(q){const{onUpdateShow:_e,"onUpdate:show":Be}=e;_e&&he(_e,q),Be&&he(Be,q),C.value=q}function Ce(q,_e,Be){const{onUpdateValue:Ee,"onUpdate:value":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),m.value=q,b(),v()}function we(q,_e){const{onUpdateIndeterminateKeys:Be,"onUpdate:indeterminateKeys":Ee}=e;Be&&he(Be,q,_e),Ee&&he(Ee,q,_e)}function me(q,_e,Be){const{onUpdateExpandedKeys:Ee,"onUpdate:expandedKeys":ae}=e;Ee&&he(Ee,q,_e,Be),ae&&he(ae,q,_e,Be),z.value=q}function Oe(q){const{onFocus:_e}=e;_e&&_e(q),p()}function ke(q){pe();const{onBlur:_e}=e;_e&&_e(q),h()}function pe(){de(!1)}function Me(){d.value||(k.value="",de(!0),e.filterable&&ue())}function H(){k.value=""}function W(q){var _e;w.value&&(!((_e=n.value)===null||_e===void 0)&&_e.$el.contains(ur(q))||pe())}function Y(){d.value||(w.value?e.filterable||pe():Me())}function ce(q){const{value:{getNode:_e}}=T;return q.map(Be=>{var Ee;return((Ee=_e(Be))===null||Ee===void 0?void 0:Ee.rawNode)||null})}function X(q,_e,Be){const Ee=ce(q),ae=Be.action==="check"?"select":"unselect",ze=Be.node;e.multiple?(Ce(q,Ee,{node:ze,action:ae}),e.filterable&&(ue(),e.clearFilterAfterSelect&&(k.value=""))):(q.length?Ce(q[0],Ee[0]||null,{node:ze,action:ae}):Ce(null,null,{node:ze,action:ae}),pe(),ee())}function B(q){e.checkable&&we(q,ce(q))}function N(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!0,Oe(q))}function te(q){var _e;!((_e=o.value)===null||_e===void 0)&&_e.contains(q.relatedTarget)||(j.value=!1,ke(q))}function ve(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!0,Oe(q))}function Z(q){var _e,Be,Ee;((_e=o.value)===null||_e===void 0?void 0:_e.contains(q.relatedTarget))||((Ee=(Be=n.value)===null||Be===void 0?void 0:Be.$el)===null||Ee===void 0?void 0:Ee.contains(q.relatedTarget))||(j.value=!1,ke(q))}function fe(q){q.stopPropagation();const{multiple:_e}=e;!_e&&e.filterable&&pe(),_e?Ce([],[],{node:null,action:"clear"}):Ce(null,null,{node:null,action:"clear"})}function ne(q){const{value:_e}=y;if(Array.isArray(_e)){const{value:Be}=T,{checkedKeys:Ee}=Be.getCheckedKeys(_e,{cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded}),ae=Ee.findIndex(ze=>ze===q.value);if(~ae){const ze=Ee[ae],ie=ce([ze])[0];if(e.checkable){const{checkedKeys:Te}=Be.uncheck(q.value,Ee,{checkStrategy:e.checkStrategy,cascade:I.value,allowNotLoaded:e.allowCheckingNotLoaded});Ce(Te,ce(Te),{node:ie,action:"delete"})}else{const Te=Array.from(Ee);Te.splice(ae,1),Ce(Te,ce(Te),{node:ie,action:"delete"})}}}}function ge(q){const{value:_e}=q.target;k.value=_e}function Pe(q){const{value:_e}=r;_e&&_e.handleKeydown(q)}function Ae(q){q.key==="Enter"?(w.value?(Pe(q),e.multiple||(pe(),ee())):Me(),q.preventDefault()):q.key==="Escape"?w.value&&($a(q),pe(),ee()):w.value?Pe(q):q.key==="ArrowDown"&&Me()}function Ke(){pe(),ee()}function qe(q){qn(q,"action")||q.preventDefault()}const ct=P(()=>{const{renderTag:q}=e;if(!!q)return function({option:Be,handleClose:Ee}){const{value:ae}=Be;if(ae!==void 0){const ze=T.value.getNode(ae);if(ze)return q({option:ze.rawNode,handleClose:Ee})}return ae}});nt(D0,{pendingNodeKeyRef:R,dataTreeMate:T});function dt(){var q;!w.value||(q=t.value)===null||q===void 0||q.syncPosition()}oh(o,dt);const ut=SO(e),je=P(()=>{if(e.checkable){const q=y.value;return e.multiple&&Array.isArray(q)?T.value.getCheckedKeys(q,{cascade:e.cascade,checkStrategy:ut.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(q)||q===null?[]:[q],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Xe={getCheckedData:()=>{const{checkedKeys:q}=je.value;return{keys:q,options:ce(q)}},getIndeterminateData:()=>{const{indeterminateKeys:q}=je.value;return{keys:q,options:ce(q)}},focus:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.focus()},blur:()=>{var q;return(q=n.value)===null||q===void 0?void 0:q.blur()}},Ve=Se("TreeSelect","-tree-select",Qoe,bne,e,i),We=P(()=>{const{common:{cubicBezierEaseInOut:q},self:{menuBoxShadow:_e,menuBorderRadius:Be,menuColor:Ee,menuHeight:ae,actionPadding:ze,actionDividerColor:ie,actionTextColor:Te}}=Ve.value;return{"--n-menu-box-shadow":_e,"--n-menu-border-radius":Be,"--n-menu-color":Ee,"--n-menu-height":ae,"--n-bezier":q,"--n-action-padding":ze,"--n-action-text-color":Te,"--n-action-divider-color":ie}}),G=l?Je("tree-select",void 0,We,e):void 0;return Object.assign(Object.assign({},Xe),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:w,namespace:a,adjustedTo:Lt(e),isMounted:An(),focused:j,menuPadding:re,mergedPlaceholder:E,mergedExpandedKeys:L,treeSelectedKeys:U,treeCheckedKeys:K,mergedSize:c,mergedDisabled:d,selectedOption:Q,selectedOptions:V,pattern:k,pendingNodeKey:R,mergedCascade:I,mergedFilter:_,selectionRenderTag:ct,handleTriggerOrMenuResize:dt,doUpdateExpandedKeys:me,handleMenuLeave:H,handleTriggerClick:Y,handleMenuClickoutside:W,handleUpdateCheckedKeys:X,handleUpdateIndeterminateKeys:B,handleTriggerFocus:N,handleTriggerBlur:te,handleMenuFocusin:ve,handleMenuFocusout:Z,handleClear:fe,handleDeleteOption:ne,handlePatternInput:ge,handleKeydown:Ae,handleTabOut:Ke,handleMenuMousedown:qe,mergedTheme:Ve,cssVars:l?void 0:We,themeClass:G==null?void 0:G.themeClass,onRender:G==null?void 0:G.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return u("div",{class:`${t}-tree-select`},u(Nr,null,{default:()=>[u(Hr,null,{default:()=>u(n0,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),u(Sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Lt.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>u(It,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:s}=this;return(r=this.onRender)===null||r===void 0||r.call(this),sn(u("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l==null?void 0:l.class,this.themeClass],ref:"menuElRef",style:[(l==null?void 0:l.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),u(TO,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:s,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>u("div",{class:`${o}-tree-select-menu__empty`},vt(n.empty,()=>[u(Ei,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),Ct(n.action,c=>c?u("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),u(Po,{onFocus:this.handleTabOut})),[[fr,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),eie=S("h",` - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - margin: var(--n-margin); - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[O("&:first-child",{marginTop:0}),F("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[F("align-text",{paddingLeft:0},[O("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),O("&::before",` - content: ""; - width: var(--n-bar-width); - border-radius: calc(var(--n-bar-width) / 2); - transition: background-color .3s var(--n-bezier); - left: 0; - top: 0; - bottom: 0; - position: absolute; - `),O("&::before",{backgroundColor:"var(--n-bar-color)"})])]),oa=Object.assign(Object.assign({},Se.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),Fl=e=>J({name:`H${e}`,props:oa,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=He(t),o=Se("Typography","-h",eie,Li,t,n),i=P(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[ye("headerPrefixWidth",e)]:f,[ye("headerFontSize",e)]:h,[ye("headerMargin",e)]:v,[ye("headerBarWidth",e)]:p,[ye("headerBarColor",l)]:b}}=o.value;return{"--n-bezier":s,"--n-font-size":h,"--n-margin":v,"--n-bar-color":b,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":f}}),a=r?Je(`h${e}`,P(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),u(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),tie=Fl("1"),nie=Fl("2"),rie=Fl("3"),oie=Fl("4"),iie=Fl("5"),aie=Fl("6"),lie=S("a",` - cursor: pointer; - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - text-decoration-color: var(--n-text-color); - color: var(--n-text-color); -`),zO=Object.assign({},Se.props),sie=J({name:"A",props:zO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-a",lie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Je("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),cie=S("p",` - box-sizing: border-box; - transition: color .3s var(--n-bezier); - margin: var(--n-margin); - font-size: var(--n-font-size); - line-height: var(--n-line-height); - color: var(--n-text-color); -`,[O("&:first-child","margin-top: 0;"),O("&:last-child","margin-bottom: 0;")]),MO=Object.assign(Object.assign({},Se.props),{depth:[String,Number]}),die=J({name:"P",props:MO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-p",cie,Li,e,t),o=P(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:s},self:{pFontSize:c,pLineHeight:d,pMargin:f,pTextColor:h,[`pTextColor${l}Depth`]:v}}=r.value;return{"--n-bezier":s,"--n-font-size":c,"--n-line-height":d,"--n-margin":f,"--n-text-color":a===void 0?h:v}}),i=n?Je("p",P(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),uie=S("blockquote",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - margin: 0; - margin-top: 12px; - margin-bottom: 12px; - box-sizing: border-box; - padding-left: 12px; - border-left: 4px solid var(--n-prefix-color); - color: var(--n-text-color); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[O("&:first-child",{marginTop:0}),O("&:last-child",{marginBottom:0}),F("align-text",{marginLeft:"-16px"})]),IO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),fie=J({name:"Blockquote",props:IO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-blockquote",uie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:s,blockquoteLineHeight:c,blockquoteFontSize:d}}=r.value;return{"--n-bezier":a,"--n-font-size":d,"--n-line-height":c,"--n-prefix-color":s,"--n-text-color":l}}),i=n?Je("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),hie=S("hr",` - margin: 12px 0; - transition: border-color .3s var(--n-bezier); - border-left: none; - border-right: none; - border-bottom: none; - border-top: 1px solid var(--n-color); -`),vie=J({name:"Hr",props:Object.assign({},Se.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-hr",hie,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Je("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),u("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),OS=O("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),zS=[O("&:first-child",` - margin-top: 0; - `),O("&:last-child",` - margin-bottom: 0; - `)],FO=O([S("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[F("align-text",{paddingLeft:0}),OS,zS]),S("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[F("align-text",{paddingLeft:0}),OS,zS])]),DO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),pie=J({name:"Ul",props:DO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),AO=Object.assign(Object.assign({},Se.props),{alignText:Boolean}),gie=J({name:"Ol",props:AO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-xl",FO,Li,e,t),o=P(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:s,liMargin:c,liTextColor:d,liLineHeight:f,liFontSize:h}}=r.value;return{"--n-bezier":a,"--n-font-size":h,"--n-line-height":f,"--n-text-color":d,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":s}}),i=n?Je("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),u("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),mie=J({name:"Li",render(){return u("li",null,this.$slots)}}),bie=S("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[F("strong",` - font-weight: var(--n-font-weight-strong); - `),F("italic",{fontStyle:"italic"}),F("underline",{textDecoration:"underline"}),F("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),BO=Object.assign(Object.assign({},Se.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),yie=J({name:"Text",props:BO,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Typography","-text",bie,Li,e,t),o=P(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ye("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:f},self:{codeTextColor:h,codeBorderRadius:v,codeColor:p,codeBorder:b,[s]:m}}=r.value;return{"--n-bezier":f,"--n-text-color":m,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":v,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":b}}),i=n?Je("text",P(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Ri(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?u("code",{class:o,style:this.cssVars},this.delete?u("del",null,i):i):this.delete?u("del",{class:o,style:this.cssVars},i):u(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),Dl="n-upload",EO="__UPLOAD_DRAGGER__",LO=J({name:"UploadDragger",[EO]:!0,setup(e,{slots:t}){const n=Le(Dl,null);return n||Dn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return u("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});var NO=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const HO=e=>e.includes("image/"),MS=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},IS=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,jO=e=>{if(e.type)return HO(e.type);const t=MS(e.name||"");if(IS.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=MS(n);return!!(/^data:image\//.test(n)||IS.test(r))};function xie(e){return NO(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!HO(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const wie=rr&&window.FileReader&&window.File;function Cie(e){return e.isDirectory}function Sie(e){return e.isFile}function _ie(e,t){return NO(this,void 0,void 0,function*(){const n=[];let r,o=0;function i(){o++}function a(){o--,o||r(n)}function l(s){s.forEach(c=>{if(!!c){if(i(),t&&Cie(c)){const d=c.createReader();i(),d.readEntries(f=>{l(f),a()},()=>{a()})}else Sie(c)&&(i(),c.file(d=>{n.push({file:d,entry:c,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(s=>{r=s,l(e)}),n})}function Xs(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:s,fullPath:c,batchId:d}=e;return{id:t,name:n,percentage:r!=null?r:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:l!=null?l:null,type:s!=null?s:null,fullPath:c!=null?c:null,batchId:d!=null?d:null}}function kie(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,s]=o.split("/");if((l==="*"||i&&l&&l===i)&&(s==="*"||a&&s&&s===a))return!0}else return!0;return!1})}const Rie=(e,t)=>{if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},A0=J({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:s,draggerInsideRef:c,handleFileAddition:d,mergedDirectoryDndRef:f,triggerStyleRef:h}=n,v=P(()=>a.value==="image-card");function p(){o.value||i.value||s()}function b(C){C.preventDefault(),l.value=!0}function m(C){C.preventDefault(),l.value=!0}function g(C){C.preventDefault(),l.value=!1}function y(C){var x;if(C.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const w=(x=C.dataTransfer)===null||x===void 0?void 0:x.items;w!=null&&w.length?_ie(Array.from(w).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{d(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var C;const{value:x}=r;return e.abstract?(C=t.default)===null||C===void 0?void 0:C.call(t,{handleClick:p,handleDrop:y,handleDragOver:b,handleDragEnter:m,handleDragLeave:g}):u("div",{class:[`${x}-upload-trigger`,(o.value||i.value)&&`${x}-upload-trigger--disabled`,v.value&&`${x}-upload-trigger--image-card`],style:h.value,onClick:p,onDrop:y,onDragover:b,onDragenter:m,onDragleave:g},v.value?u(LO,null,{default:()=>vt(t.default,()=>[u(st,{clsPrefix:x},{default:()=>u(_l,null)})])}):t)}}}),Pie=J({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Le(Dl).mergedThemeRef}},render(){return u(Ro,null,{default:()=>this.show?u(nO,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),$ie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),Tie=u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},u("g",{fill:"none"},u("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var Oie=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const pd={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},zie=J({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le(Dl),n=D(null),r=D(""),o=P(()=>{const{file:w}=e;return w.status==="finished"?"success":w.status==="error"?"error":"info"}),i=P(()=>{const{file:w}=e;if(w.status==="error")return"error"}),a=P(()=>{const{file:w}=e;return w.status==="uploading"}),l=P(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:w}=e;return["uploading","pending","error"].includes(w.status)}),s=P(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),c=P(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:w}=e;return["finished"].includes(w.status)}),d=P(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:w}=e;return["error"].includes(w.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),h=P(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:w},listType:k}=e;return["finished"].includes(w)&&f.value&&k==="image-card"});function v(){t.submit(e.file.id)}function p(w){w.preventDefault();const{file:k}=e;["finished","pending","error"].includes(k.status)?m(k):["uploading"].includes(k.status)?y(k):Yn("upload","The button clicked type is unknown.")}function b(w){w.preventDefault(),g(e.file)}function m(w){const{xhrMap:k,doChange:_,onRemoveRef:{value:T},mergedFileListRef:{value:$}}=t;Promise.resolve(T?T({file:Object.assign({},w),fileList:$}):!0).then(R=>{if(R===!1)return;const I=Object.assign({},w,{status:"removed"});k.delete(w.id),_(I,void 0,{remove:!0})})}function g(w){const{onDownloadRef:{value:k}}=t;Promise.resolve(k?k(Object.assign({},w)):!0).then(_=>{_!==!1&&Rie(w.url,w.name)})}function y(w){const{xhrMap:k}=t,_=k.get(w.id);_==null||_.abort(),m(Object.assign({},w))}function C(){const{onPreviewRef:{value:w}}=t;if(w)w(e.file);else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.click()}}const x=()=>Oie(this,void 0,void 0,function*(){const{listType:w}=e;w!=="image"&&w!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{x()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:s,showDownloadButton:c,showRetryButton:d,showPreviewButton:h,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:p,handleDownloadClick:b,handleRetryClick:v,handlePreviewClick:C}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):jO(r)?u(st,{clsPrefix:e},{default:()=>$ie}):u(st,{clsPrefix:e},{default:()=>Tie})):u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?u(gT,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):u("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=u("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):u(st,{clsPrefix:e},{default:()=>u(nW,null)}));const s=u(Pie,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return u("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},u("div",{class:`${e}-upload-file-info`},i,u("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?u("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):u("span",{onClick:this.handlePreviewClick},r.name)),a&&s),u("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?u(Pt,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(m2,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&u(Pt,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:pd,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>u(ko,null,{default:()=>this.showRemoveButton?u(st,{clsPrefix:e,key:"trash"},{default:()=>u(oW,null)}):u(st,{clsPrefix:e,key:"cancel"},{default:()=>u(dW,null)})})}),this.showRetryButton&&!this.disabled&&u(Pt,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(vW,null)})}),this.showDownloadButton?u(Pt,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:pd},{icon:()=>u(st,{clsPrefix:e},{default:()=>u(iW,null)})}):null)),!a&&s)}}),VO=J({name:"UploadFileList",setup(e,{slots:t}){const n=Le(Dl,null);n||Dn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:l,cssVarsRef:s,themeClassRef:c,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:h}=n,v=P(()=>i.value==="image-card"),p=()=>a.value.map(m=>u(zie,{clsPrefix:o.value,key:m.id,file:m,listType:i.value})),b=()=>v.value?u(vT,Object.assign({},h.value),{default:p}):u(Ro,{group:!0},{default:p});return()=>{const{value:m}=o,{value:g}=r;return u("div",{class:[`${m}-upload-file-list`,v.value&&`${m}-upload-file-list--grid`,g?c==null?void 0:c.value:void 0],style:[g&&s?s.value:"",l.value]},b(),f.value&&!d.value&&v.value&&u(A0,null,t))}}}),Mie=O([S("upload","width: 100%;",[F("dragger-inside",[S("upload-trigger",` - display: block; - `)]),F("drag-over",[S("upload-dragger",` - border: var(--n-dragger-border-hover); - `)])]),S("upload-dragger",` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[O("&:hover",` - border: var(--n-dragger-border-hover); - `),F("disabled",` - cursor: not-allowed; - `)]),S("upload-trigger",` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("+",[S("upload-file-list","margin-top: 8px;")]),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),F("image-card",` - width: 96px; - height: 96px; - `,[S("base-icon",` - font-size: 24px; - `),S("upload-dragger",` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),S("upload-file-list",` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[O("a, img","outline: none;"),F("disabled",` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[S("upload-file","cursor: not-allowed;")]),F("grid",` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),S("upload-file",` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[jo(),S("progress",[jo({foldPadding:!0})]),O("&:hover",` - background-color: var(--n-item-color-hover); - `,[S("upload-file-info",[M("action",` - opacity: 1; - `)])]),F("image-type",` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[S("upload-file-info",` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[S("progress",` - padding: 2px 0; - margin-bottom: 0; - `),M("name",` - padding: 0 8px; - `),M("thumbnail",` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[O("img",` - width: 100%; - `)])])]),F("text-type",[S("progress",` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),F("image-card-type",` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[S("progress",` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),S("upload-file-info",` - padding: 0; - width: 100%; - height: 100%; - `,[M("thumbnail",` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[O("img",` - width: 100%; - `)])]),O("&::before",` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),O("&:hover",[O("&::before","opacity: 1;"),S("upload-file-info",[M("thumbnail","opacity: .12;")])])]),F("error-status",[O("&:hover",` - background-color: var(--n-item-color-hover-error); - `),S("upload-file-info",[M("name","color: var(--n-item-text-color-error);"),M("thumbnail","color: var(--n-item-text-color-error);")]),F("image-card-type",` - border: var(--n-item-border-image-card-error); - `)]),F("with-url",` - cursor: pointer; - `,[S("upload-file-info",[M("name",` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[O("a",` - text-decoration: underline; - `)])])]),S("upload-file-info",` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[M("thumbnail",` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[S("base-icon",` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),M("action",` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[S("button",[O("&:not(:last-child)",{marginRight:"4px"}),S("base-icon",[O("svg",[kn()])])]),F("image-type",` - position: relative; - max-width: 80px; - width: auto; - `),F("image-card-type",` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),M("name",` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[O("a",` - color: inherit; - text-decoration: underline; - `)])])])]),S("upload-file-input",` - display: block; - width: 0; - height: 0; - opacity: 0; - `)]);var FS=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{c(r.next(d))}catch(f){a(f)}}function s(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?i(d.value):o(d.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};function Iie(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(s){var c;let d=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),d=Xs(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}function l(s){var c;if(e.isErrorState){if(e.isErrorState(n)){a(s);return}}else if(n.status<200||n.status>=300){a(s);return}let d=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),d=Xs(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:d,event:s}))||d),r(d,s)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(s){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,s)},handleXHRProgress(s){const c=Object.assign({},t,{status:"uploading"});if(s.lengthComputable){const d=Math.ceil(s.loaded/s.total*100);c.percentage=d,i=d}r(c,s)}}}function Fie(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:s}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(d){const f=Object.assign({},n,{status:"uploading"}),h=d.percent;f.percentage=h,c=h,s(f)},onFinish(){var d;let f=Object.assign({},n,{status:"finished",percentage:c});f=Xs(((d=t.onFinish)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)},onError(){var d;let f=Object.assign({},n,{status:"error",percentage:c});f=Xs(((d=t.onError)===null||d===void 0?void 0:d.call(t,{file:f}))||f),s(f)}})}function Die(e,t,n){const r=Iie(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function UO(e,t){return typeof e=="function"?e({file:t}):e||{}}function Aie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function Bie(e,t,n){const r=UO(t,n);!r||Object.keys(r).forEach(o=>{e.append(o,r[o])})}function Eie(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:s}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const d=new FormData;if(Bie(d,s,n),d.append(t,n.file),Die(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),Aie(c,l,n),c.send(d);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const WO=Object.assign(Object.assign({},Se.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>wie?jO(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object}),Lie=J({name:"Upload",props:WO,setup(e){e.abstract&&e.listType==="image-card"&&Dn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=He(e),r=Se("Upload","-upload",Mie,_ne,e,t),o=xn(e),i=P(()=>{const{max:$}=e;return $!==void 0?v.value.length>=$:!1}),a=D(e.defaultFileList),l=xe(e,"fileList"),s=D(null),c={value:!1},d=D(!1),f=new Map,h=wt(l,a),v=P(()=>h.value.map(Xs));function p(){var $;($=s.value)===null||$===void 0||$.click()}function b($){const R=$.target;y(R.files?Array.from(R.files).map(I=>({file:I,entry:null,source:"input"})):null,$),R.value=""}function m($){const{"onUpdate:fileList":R,onUpdateFileList:I}=e;R&&he(R,$),I&&he(I,$),a.value=$}const g=P(()=>e.multiple||e.directory);function y($,R){if(!$||$.length===0)return;const{onBeforeUpload:I}=e;$=g.value?$:[$[0]];const{max:z,accept:A}=e;$=$.filter(({file:j,source:E})=>E==="dnd"&&(A==null?void 0:A.trim())?kie(j.name,j.type,A):!0),z&&($=$.slice(0,z-v.value.length));const L=Cr();Promise.all($.map(({file:j,entry:E})=>FS(this,void 0,void 0,function*(){var U;const K={id:Cr(),batchId:L,name:j.name,status:"pending",percentage:0,file:j,url:null,type:j.type,thumbnailUrl:null,fullPath:(U=E==null?void 0:E.fullPath)!==null&&U!==void 0?U:`/${j.webkitRelativePath||j.name}`};return!I||(yield I({file:K,fileList:v.value}))!==!1?K:null}))).then(j=>FS(this,void 0,void 0,function*(){let E=Promise.resolve();return j.forEach(U=>{E=E.then(_t).then(()=>{U&&x(U,R,{append:!0})})}),yield E})).then(()=>{e.defaultUpload&&C()})}function C($){const{method:R,action:I,withCredentials:z,headers:A,data:L,name:j}=e,E=$!==void 0?v.value.filter(K=>K.id===$):v.value,U=$!==void 0;E.forEach(K=>{const{status:Q}=K;(Q==="pending"||Q==="error"&&U)&&(e.customRequest?Fie({inst:{doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:K,action:I,withCredentials:z,headers:A,data:L,customRequest:e.customRequest}):Eie({doChange:x,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},j,K,{method:R,action:I,withCredentials:z,responseType:e.responseType,headers:A,data:L}))})}const x=($,R,I={append:!1,remove:!1})=>{const{append:z,remove:A}=I,L=Array.from(v.value),j=L.findIndex(E=>E.id===$.id);if(z||A||~j){z?L.push($):A?L.splice(j,1):L.splice(j,1,$);const{onChange:E}=e;E&&E({file:$,fileList:L,event:R}),m(L)}};function w($){var R;if($.thumbnailUrl)return $.thumbnailUrl;const{createThumbnailUrl:I}=e;return I?(R=I($.file,$))!==null&&R!==void 0?R:$.url||"":$.url?$.url:$.file?xie($.file):""}const k=P(()=>{const{common:{cubicBezierEaseInOut:$},self:{draggerColor:R,draggerBorder:I,draggerBorderHover:z,itemColorHover:A,itemColorHoverError:L,itemTextColorError:j,itemTextColorSuccess:E,itemTextColor:U,itemIconColor:K,itemDisabledOpacity:Q,lineHeight:V,borderRadius:re,fontSize:ee,itemBorderImageCardError:ue,itemBorderImageCard:de}}=r.value;return{"--n-bezier":$,"--n-border-radius":re,"--n-dragger-border":I,"--n-dragger-border-hover":z,"--n-dragger-color":R,"--n-font-size":ee,"--n-item-color-hover":A,"--n-item-color-hover-error":L,"--n-item-disabled-opacity":Q,"--n-item-icon-color":K,"--n-item-text-color":U,"--n-item-text-color-error":j,"--n-item-text-color-success":E,"--n-line-height":V,"--n-item-border-image-card-error":ue,"--n-item-border-image-card":de}}),_=n?Je("upload",void 0,k,e):void 0;nt(Dl,{mergedClsPrefixRef:t,mergedThemeRef:r,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:v,triggerStyleRef:xe(e,"triggerStyle"),shouldUseThumbnailUrlRef:xe(e,"shouldUseThumbnailUrl"),renderIconRef:xe(e,"renderIcon"),xhrMap:f,submit:C,doChange:x,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrlResolver:w,listTypeRef:xe(e,"listType"),dragOverRef:d,openOpenFileDialog:p,draggerInsideRef:c,handleFileAddition:y,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:n?void 0:k,themeClassRef:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:P(()=>{var $;return($=e.directoryDnd)!==null&&$!==void 0?$:e.directory})});const T={clear:()=>{a.value=[]},submit:C,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:c,inputElRef:s,mergedTheme:r,dragOver:d,mergedMultiple:g,cssVars:n?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const s=o.default()[0];!((e=s==null?void 0:s.type)===null||e===void 0)&&e[EO]&&(n.value=!0)}const l=u("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?u($t,null,(t=o.default)===null||t===void 0?void 0:t.call(o),u(Js,{to:"body"},l)):(a==null||a(),u("div",{class:[`${r}-upload`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&u(A0,null,o),this.showFileList&&u(VO,null,o)))}}),Nie=O([S("watermark-container",` - position: relative; - `,[pt("selectable",` - user-select: none; - -webkit-user-select: none; - `),F("global-rotate",` - overflow: hidden; - `),F("fullscreen",` - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - position: fixed; - `)]),S("watermark",` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - pointer-events: none; - background-repeat: repeat; - `,[F("fullscreen",` - position: fixed; - `),F("global-rotate",` - position: absolute; - height: max(284vh, 284vw); - width: max(284vh, 284vw); - `)])]);function Hie(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const KO=Object.assign(Object.assign({},Se.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),jie=J({name:"Watermark",props:KO,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=He(e),r=Se("Watermark","-watermark",Nie,Rne,e,n),o=D(""),i=rr?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=D(!1);return nh(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const s=Hie(a),{xGap:c,yGap:d,width:f,height:h,yOffset:v,xOffset:p,rotate:b,image:m,content:g,fontColor:y,fontStyle:C,fontVariant:x,fontStretch:w,fontWeight:k,fontFamily:_,fontSize:T,lineHeight:$,debug:R}=e,I=(c+f)*s,z=(d+h)*s,A=p*s,L=v*s;if(i.width=I,i.height=z,a){a.translate(0,0);const j=f*s,E=h*s;if(R&&(a.strokeStyle="grey",a.strokeRect(0,0,j,E)),a.rotate(b*(Math.PI/180)),m){const U=new Image;U.crossOrigin="anonymous",U.referrerPolicy="no-referrer",U.src=m,U.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:K,imageHeight:Q}=e;a.drawImage(U,A,L,(e.imageWidth||(Q?U.width*Q/U.height:U.width))*s,(e.imageHeight||(K?U.height*K/U.width:U.height))*s),o.value=i.toDataURL()}}else g&&(R&&(a.strokeStyle="green",a.strokeRect(0,0,j,E)),a.font=`${C} ${x} ${k} ${w} ${T*s}px/${$*s}px ${_||r.value.self.fontFamily}`,a.fillStyle=y,a.fillText(g,A,L+$*s),o.value=i.toDataURL())}else uD("watermark","Canvas is not supported in the browser.")}),()=>{var s;const{globalRotate:c,fullscreen:d,zIndex:f}=e,h=n.value,v=c!==0&&d,p="max(142vh, 142vw)",b=u("div",{class:[`${h}-watermark`,c!==0&&`${h}-watermark--global-rotate`,d&&`${h}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:v?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${p} + ${e.width/2}px) calc(${p} + ${e.height/2}px), ${p} ${p}`:p,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?b:u("div",{class:[`${h}-watermark-container`,c!==0&&`${h}-watermark-container--global-rotate`,d&&`${h}-watermark-container--fullscreen`,e.selectable&&`${h}-watermark-container--selectable`],style:{zIndex:v?f:void 0}},(s=t.default)===null||s===void 0?void 0:s.call(t),b)}}}),Vie=J({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),Uie={message:KT,notification:GT,loadingBar:zT,dialog:B$};function Wie({providersAndProps:e,configProviderProps:t}){let r=F_(()=>u(IP,qv(t),{default:()=>e.map(({type:l,Provider:s,props:c})=>u(s,qv(c),{default:()=>u(Vie,{onSetup:()=>o[l]=Uie[l]()})}))}));const o={app:r};let i;return rr&&(i=document.createElement("div"),document.body.appendChild(i),r.mount(i)),Object.assign({unmount:()=>{var l;if(r===null||i===null){Yn("discrete","unmount call no need because discrete app has been unmounted");return}r.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,r=null}},o)}function Kie(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i}={}){const a=[];return e.forEach(s=>{switch(s){case"message":a.push({type:s,Provider:WT,props:n});break;case"notification":a.push({type:s,Provider:XT,props:o});break;case"dialog":a.push({type:s,Provider:A$,props:r});break;case"loadingBar":a.push({type:s,Provider:OT,props:i});break}}),Wie({providersAndProps:a,configProviderProps:t})}const qO={value:String,katex:Object,katexOptions:Object},qie=J({name:"Equation",props:qO,setup(e){const t=Le(Er),n=P(()=>{var r;const o=((r=e.katex||(t==null?void 0:t.mergedKatexRef.value))===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=(i==null?void 0:i[1])||"span",l=i==null?void 0:i[2],s=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:s,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return u(i,{class:o,innerHTML:r})}}}),DS=Object.freeze(Object.defineProperty({__proto__:null,NAffix:v2,affixProps:uh,NAlert:NK,alertProps:E2,NAnchor:GK,anchorProps:N2,NAnchorLink:KK,anchorLinkProps:L2,NAutoComplete:pq,autoCompleteProps:X2,NAvatar:Kg,avatarProps:J2,NAvatarGroup:_q,avatarGroupProps:eP,NBackTop:zq,backTopProps:tP,NBadge:Aq,badgeProps:nP,NBreadcrumb:jq,breadcrumbProps:oP,NBreadcrumbItem:Wq,breadcrumbItemProps:iP,NButton:Pt,NxButton:Jr,buttonProps:lP,NButtonGroup:o0,buttonGroupProps:dP,NCalendar:aY,calendarProps:uP,NColorPicker:FY,colorPickerProps:hP,NCard:gP,cardProps:pP,NCarousel:rX,carouselProps:yP,NCarouselItem:bP,NCascader:yX,cascaderProps:_P,NCheckbox:Zo,checkboxProps:SP,NCheckboxGroup:CP,checkboxGroupProps:wP,NCode:PP,codeProps:RP,NCollapse:PX,collapseProps:$P,NCollapseItem:TX,collapseItemProps:OP,NCollapseTransition:FX,collapseTransitionProps:zP,NConfigProvider:IP,configProviderProps:MP,NCountdown:DX,countdownProps:FP,NNumberAnimation:EX,numberAnimationProps:DP,NDataTable:dZ,dataTableProps:YP,NDatePicker:mQ,datePickerProps:_$,NDescriptions:_Q,descriptionsProps:R$,NDescriptionsItem:kQ,descriptionsItemProps:P$,NDialog:w0,dialogProps:fc,NDialogProvider:A$,dialogProviderProps:D$,useDialog:B$,useDialogReactiveList:LQ,NDivider:UQ,dividerProps:E$,NDrawer:sJ,drawerProps:L$,NDrawerContent:cJ,drawerContentProps:N$,NDropdown:p0,dropdownProps:c$,NDynamicInput:mJ,dynamicInputProps:H$,NDynamicTags:kJ,dynamicTagsProps:W$,NElement:XC,elementProps:K$,NEl:XC,NEllipsis:f0,ellipsisProps:qP,NEmpty:Ei,emptyProps:R2,NForm:IJ,formProps:X$,NFormItem:_0,formItemProps:pc,NFormItemGridItem:iS,NFormItemGi:iS,formItemGiProps:zm,formItemGridItemProps:zm,NFormItemCol:rT,NFormItemRow:_ee,NGlobalStyle:kee,NGradientText:Oee,gradientTextProps:oT,NGrid:Mee,gridProps:aT,NGridItem:Om,gridItemProps:Ys,NGi:Om,giProps:Ys,NIcon:i$,iconProps:o$,NIconWrapper:Bee,iconWrapperProps:lT,NImage:gT,imageProps:pT,NImageGroup:vT,imageGroupProps:hT,NInput:In,inputProps:U2,NInputGroup:K2,inputGroupProps:W2,NInputGroupLabel:cq,inputGroupLabelProps:q2,NInputNumber:Fne,inputNumberProps:mT,NLayout:Ane,layoutProps:Mm,layoutContentProps:Mm,NLayoutContent:Bne,NLayoutHeader:Lne,layoutHeaderProps:wT,NLayoutFooter:Hne,layoutFooterProps:CT,NLayoutSider:Wne,layoutSiderProps:ST,NRow:tT,rowProps:xh,NCol:nT,colProps:wh,NLegacyTransfer:Jne,legacyTransferProps:_T,NList:tre,listProps:kT,NListItem:nre,NLoadingBarProvider:OT,loadingBarProviderProps:TT,useLoadingBar:zT,NLog:sre,logProps:IT,NMenu:bre,menuProps:LT,NMention:wre,mentionProps:NT,NMessageProvider:WT,messageProviderProps:UT,useMessage:KT,NModal:F$,modalProps:I$,NNotificationProvider:XT,notificationProviderProps:YT,useNotification:GT,NPageHeader:Dre,pageHeaderProps:ZT,NPagination:UP,paginationProps:VP,NPopconfirm:Ere,popconfirmProps:eO,NPopover:Wa,popoverProps:z2,NPopselect:EP,popselectProps:BP,NProgress:nO,progressProps:tO,NRadio:h0,radioProps:gh,NRadioGroup:QP,radioGroupProps:ZP,NRadioButton:yG,radioButtonProps:bG,NRate:qre,rateProps:rO,NResult:eoe,resultProps:oO,NScrollbar:noe,scrollbarProps:iO,NSelect:HP,selectProps:NP,NSkeleton:aoe,skeletonProps:aO,NSlider:coe,sliderProps:lO,NSpace:U$,spaceProps:V$,NSpin:foe,spinProps:sO,NStatistic:voe,statisticProps:cO,NSteps:boe,stepsProps:dO,NStep:yoe,stepProps:fO,NSwitch:woe,switchProps:hO,NTable:Soe,tableProps:vO,NTh:_oe,NTr:koe,NTd:Roe,NThead:Poe,NTbody:$oe,NTabs:zoe,tabsProps:gO,NTabPane:Toe,tabPaneProps:F0,NTab:Bf,tabProps:pO,NTag:ws,tagProps:F2,NThing:Ioe,thingProps:mO,NTime:Foe,timeProps:bO,NTimePicker:Af,timePickerProps:x$,NTimeline:Aoe,timelineProps:yO,NTimelineItem:Boe,timelineItemProps:wO,NTooltip:ph,tooltipProps:KP,NTransfer:Noe,transferProps:CO,NTree:TO,treeProps:$O,NTreeSelect:Joe,treeSelectProps:OO,NH1:tie,NH2:nie,NH3:rie,NH4:oie,NH5:iie,NH6:aie,h1Props:oa,h2Props:oa,h3Props:oa,h4Props:oa,h5Props:oa,h6Props:oa,NA:sie,aProps:zO,NP:die,pProps:MO,NBlockquote:fie,blockquoteProps:IO,NHr:vie,NUl:pie,ulProps:DO,NOl:gie,olProps:AO,NLi:mie,NText:yie,textProps:BO,NUpload:Lie,uploadProps:WO,NUploadDragger:LO,NUploadTrigger:A0,NUploadFileList:VO,NWatermark:jie,watermarkProps:KO,createDiscreteApi:Kie,NEquation:qie,equationProps:qO},Symbol.toStringTag,{value:"Module"})),Yie="2.34.3";function Xie({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:s}=a;r(i,l,a),s&&s.forEach(c=>{r(i,c,a)})}))}return{version:Yie,componentPrefix:e,install:o}}const YO=Xie({components:Object.keys(DS).map(e=>DS[e])}),Gie=YO;YO.install;const XO=F_(ZF);XO.use(Gie);XO.mount("#app")});export default Zie(); diff --git a/docs/barack+obama.json b/docs/barack+obama.json deleted file mode 100644 index 46632d3..0000000 --- a/docs/barack+obama.json +++ /dev/null @@ -1,472 +0,0 @@ -[ - { - "distance": 25.5, - "pos": "ADJ", - "text": "strategic" - }, - { - "distance": 81.66666666666667, - "pos": "ADJ", - "text": "bright" - }, - { - "distance": 89.75, - "pos": "ADJ", - "text": "binding" - }, - { - "distance": 96.66666666666667, - "pos": "ADJ", - "text": "safer" - }, - { - "distance": 107.54545454545455, - "pos": "ADJ", - "text": "secure" - }, - { - "distance": 111, - "pos": "ADJ", - "text": "sophisticated" - }, - { - "distance": 111.45454545454545, - "pos": "ADJ", - "text": "final" - }, - { - "distance": 120.33333333333333, - "pos": "ADJ", - "text": "stable" - }, - { - "distance": 123, - "pos": "ADJ", - "text": "terrorist" - }, - { - "distance": 123.5, - "pos": "ADJ", - "text": "total" - }, - { - "distance": 114, - "pos": "ADP", - "text": "after" - }, - { - "distance": 119.41176470588235, - "pos": "ADP", - "text": "despite" - }, - { - "distance": 141.375, - "pos": "ADP", - "text": "inside" - }, - { - "distance": 153.14285714285714, - "pos": "ADP", - "text": "up" - }, - { - "distance": 156.75, - "pos": "ADP", - "text": "upon" - }, - { - "distance": 157, - "pos": "ADP", - "text": "so" - }, - { - "distance": 167.6, - "pos": "ADP", - "text": "though" - }, - { - "distance": 170.14285714285714, - "pos": "ADP", - "text": "across" - }, - { - "distance": 196.6153846153846, - "pos": "ADP", - "text": "toward" - }, - { - "distance": 199.5, - "pos": "ADP", - "text": "during" - }, - { - "distance": 25, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 71, - "pos": "ADV", - "text": "nevertheless" - }, - { - "distance": 83.3157894736842, - "pos": "ADV", - "text": "legally" - }, - { - "distance": 84.25, - "pos": "ADV", - "text": "apparently" - }, - { - "distance": 96, - "pos": "ADV", - "text": "secondly" - }, - { - "distance": 102.33333333333333, - "pos": "ADV", - "text": "deep" - }, - { - "distance": 110.6470588235294, - "pos": "ADV", - "text": "too" - }, - { - "distance": 122.3125, - "pos": "ADV", - "text": "definitely" - }, - { - "distance": 125, - "pos": "ADV", - "text": "finally" - }, - { - "distance": 129.1, - "pos": "ADV", - "text": "sooner" - }, - { - "distance": 224.5, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 283.23664122137404, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 349.47058823529414, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 387.5, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 57.666666666666664, - "pos": "DET", - "text": "te" - }, - { - "distance": 162.75, - "pos": "DET", - "text": "such" - }, - { - "distance": 175, - "pos": "DET", - "text": "whatever" - }, - { - "distance": 185.5, - "pos": "DET", - "text": "some" - }, - { - "distance": 191.44444444444446, - "pos": "DET", - "text": "there" - }, - { - "distance": 216.425, - "pos": "DET", - "text": "any" - }, - { - "distance": 227, - "pos": "DET", - "text": "both" - }, - { - "distance": 227.8235294117647, - "pos": "DET", - "text": "each" - }, - { - "distance": 229.0909090909091, - "pos": "DET", - "text": "all" - }, - { - "distance": 255.85714285714286, - "pos": "DET", - "text": "that" - }, - { - "distance": 21.666666666666668, - "pos": "NOUN", - "text": "dandong" - }, - { - "distance": 22, - "pos": "NOUN", - "text": "hongxiang" - }, - { - "distance": 22.333333333333332, - "pos": "NOUN", - "text": "equipment" - }, - { - "distance": 22.666666666666668, - "pos": "NOUN", - "text": "development" - }, - { - "distance": 23, - "pos": "NOUN", - "text": "co." - }, - { - "distance": 23.333333333333332, - "pos": "NOUN", - "text": "ltd" - }, - { - "distance": 24.333333333333332, - "pos": "NOUN", - "text": "fine" - }, - { - "distance": 26.333333333333332, - "pos": "NOUN", - "text": "zte" - }, - { - "distance": 27, - "pos": "NOUN", - "text": "tech" - }, - { - "distance": 39.666666666666664, - "pos": "NOUN", - "text": "assad" - }, - { - "distance": 67, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 87.5, - "pos": "NUM", - "text": "1945" - }, - { - "distance": 121.16666666666667, - "pos": "NUM", - "text": "$1.2" - }, - { - "distance": 125.14285714285714, - "pos": "NUM", - "text": "30" - }, - { - "distance": 143.5, - "pos": "NUM", - "text": "35" - }, - { - "distance": 147.5, - "pos": "NUM", - "text": "113" - }, - { - "distance": 147.52, - "pos": "NUM", - "text": "billion" - }, - { - "distance": 147.75, - "pos": "NUM", - "text": "4" - }, - { - "distance": 155.25, - "pos": "NUM", - "text": "200" - }, - { - "distance": 156.83333333333334, - "pos": "NUM", - "text": "21" - }, - { - "distance": 116.75, - "pos": "PRON", - "text": "she" - }, - { - "distance": 155, - "pos": "PRON", - "text": "his" - }, - { - "distance": 171.31428571428572, - "pos": "PRON", - "text": "you" - }, - { - "distance": 220.33333333333334, - "pos": "PRON", - "text": "what" - }, - { - "distance": 232.83333333333334, - "pos": "PRON", - "text": "himself" - }, - { - "distance": 247.87179487179486, - "pos": "PRON", - "text": "it" - }, - { - "distance": 249.89473684210526, - "pos": "PRON", - "text": "me" - }, - { - "distance": 252.9391304347826, - "pos": "PRON", - "text": "i" - }, - { - "distance": 253, - "pos": "PRON", - "text": "her" - }, - { - "distance": 256.5681818181818, - "pos": "PRON", - "text": "they" - }, - { - "distance": 188.25, - "pos": "PRT", - "text": "off" - }, - { - "distance": 207.3, - "pos": "PRT", - "text": "in" - }, - { - "distance": 210.69811320754718, - "pos": "PRT", - "text": "'" - }, - { - "distance": 225.77777777777777, - "pos": "PRT", - "text": "on" - }, - { - "distance": 230.08823529411765, - "pos": "PRT", - "text": "back" - }, - { - "distance": 254, - "pos": "PRT", - "text": "away" - }, - { - "distance": 268.3246753246753, - "pos": "PRT", - "text": "up" - }, - { - "distance": 283.160751565762, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 291.68674698795184, - "pos": "PRT", - "text": "out" - }, - { - "distance": 341.5, - "pos": "PRT", - "text": "through" - }, - { - "distance": 22.666666666666668, - "pos": "VERB", - "text": "selling" - }, - { - "distance": 37.07142857142857, - "pos": "VERB", - "text": "supported" - }, - { - "distance": 46.333333333333336, - "pos": "VERB", - "text": "sanctioning" - }, - { - "distance": 47, - "pos": "VERB", - "text": "fanned" - }, - { - "distance": 47, - "pos": "VERB", - "text": "authorised" - }, - { - "distance": 48.125, - "pos": "VERB", - "text": "engaging" - }, - { - "distance": 50.333333333333336, - "pos": "VERB", - "text": "dipped" - }, - { - "distance": 50.5, - "pos": "VERB", - "text": "tested" - }, - { - "distance": 50.666666666666664, - "pos": "VERB", - "text": "unsealed" - }, - { - "distance": 54, - "pos": "VERB", - "text": "ignored" - } -] \ No newline at end of file diff --git a/docs/brexit.json b/docs/brexit.json deleted file mode 100644 index cc33cc6..0000000 --- a/docs/brexit.json +++ /dev/null @@ -1,482 +0,0 @@ -[ - { - "distance": 80.66666666666667, - "pos": "ADJ", - "text": "surprised" - }, - { - "distance": 84.85714285714286, - "pos": "ADJ", - "text": "problematic" - }, - { - "distance": 85.5, - "pos": "ADJ", - "text": "roving" - }, - { - "distance": 92, - "pos": "ADJ", - "text": "decent" - }, - { - "distance": 95, - "pos": "ADJ", - "text": "responsible" - }, - { - "distance": 101.66666666666667, - "pos": "ADJ", - "text": "micro-mini" - }, - { - "distance": 103.33333333333333, - "pos": "ADJ", - "text": "young" - }, - { - "distance": 106.5, - "pos": "ADJ", - "text": "political" - }, - { - "distance": 110.5, - "pos": "ADJ", - "text": "xenophobic" - }, - { - "distance": 113.375, - "pos": "ADJ", - "text": "unreasonable" - }, - { - "distance": 110, - "pos": "ADP", - "text": "of" - }, - { - "distance": 133.0909090909091, - "pos": "ADP", - "text": "during" - }, - { - "distance": 158, - "pos": "ADP", - "text": "once" - }, - { - "distance": 162.14285714285714, - "pos": "ADP", - "text": "under" - }, - { - "distance": 170, - "pos": "ADP", - "text": "due" - }, - { - "distance": 178.68421052631578, - "pos": "ADP", - "text": "so" - }, - { - "distance": 182.42857142857142, - "pos": "ADP", - "text": "although" - }, - { - "distance": 185.46666666666667, - "pos": "ADP", - "text": "until" - }, - { - "distance": 204.1818181818182, - "pos": "ADP", - "text": "alongside" - }, - { - "distance": 205.0909090909091, - "pos": "ADP", - "text": "among" - }, - { - "distance": 68.22222222222223, - "pos": "ADV", - "text": "conclusively" - }, - { - "distance": 74.71428571428571, - "pos": "ADV", - "text": "crucially" - }, - { - "distance": 87, - "pos": "ADV", - "text": "certainly" - }, - { - "distance": 92, - "pos": "ADV", - "text": "truly" - }, - { - "distance": 110.66666666666667, - "pos": "ADV", - "text": "significantly" - }, - { - "distance": 111.5, - "pos": "ADV", - "text": "increasingly" - }, - { - "distance": 117.14285714285714, - "pos": "ADV", - "text": "infamously" - }, - { - "distance": 130.6, - "pos": "ADV", - "text": "on" - }, - { - "distance": 131.9090909090909, - "pos": "ADV", - "text": "traditionally" - }, - { - "distance": 141.33333333333334, - "pos": "ADV", - "text": "hugely" - }, - { - "distance": 239.5, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 261.0869565217391, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 264.57142857142856, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 299.2972972972973, - "pos": "CONJ", - "text": "nor" - }, - { - "distance": 315.875, - "pos": "CONJ", - "text": "neither" - }, - { - "distance": 330.25539568345323, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 117.71428571428571, - "pos": "DET", - "text": "which" - }, - { - "distance": 163.66666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 191.30769230769232, - "pos": "DET", - "text": "both" - }, - { - "distance": 213.63636363636363, - "pos": "DET", - "text": "either" - }, - { - "distance": 261.72093023255815, - "pos": "DET", - "text": "such" - }, - { - "distance": 293.0144927536232, - "pos": "DET", - "text": "that" - }, - { - "distance": 293.5, - "pos": "DET", - "text": "some" - }, - { - "distance": 306.9565868263473, - "pos": "DET", - "text": "the" - }, - { - "distance": 311.5568181818182, - "pos": "DET", - "text": "this" - }, - { - "distance": 312.10526315789474, - "pos": "DET", - "text": "half" - }, - { - "distance": 65.33333333333333, - "pos": "NOUN", - "text": "patrick" - }, - { - "distance": 65.66666666666667, - "pos": "NOUN", - "text": "st" - }, - { - "distance": 67, - "pos": "NOUN", - "text": "retirement" - }, - { - "distance": 74.42857142857143, - "pos": "NOUN", - "text": "engagements" - }, - { - "distance": 75, - "pos": "NOUN", - "text": "starkey" - }, - { - "distance": 75.28571428571429, - "pos": "NOUN", - "text": "historian" - }, - { - "distance": 75.42857142857143, - "pos": "NOUN", - "text": "reformation" - }, - { - "distance": 75.85714285714286, - "pos": "NOUN", - "text": "expansion" - }, - { - "distance": 77.83333333333333, - "pos": "NOUN", - "text": "predecessor" - }, - { - "distance": 78, - "pos": "NOUN", - "text": "age" - }, - { - "distance": 115.375, - "pos": "NUM", - "text": "2021" - }, - { - "distance": 121, - "pos": "NUM", - "text": "440" - }, - { - "distance": 163.36363636363637, - "pos": "NUM", - "text": "38" - }, - { - "distance": 163.45454545454547, - "pos": "NUM", - "text": "62" - }, - { - "distance": 179.82142857142858, - "pos": "NUM", - "text": "one" - }, - { - "distance": 205.41666666666666, - "pos": "NUM", - "text": "56" - }, - { - "distance": 206.5, - "pos": "NUM", - "text": "$59" - }, - { - "distance": 206.5, - "pos": "NUM", - "text": "$65" - }, - { - "distance": 207.88235294117646, - "pos": "NUM", - "text": "55" - }, - { - "distance": 209.08, - "pos": "NUM", - "text": "bn" - }, - { - "distance": 129.33333333333334, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 175.64, - "pos": "PRON", - "text": "its" - }, - { - "distance": 204, - "pos": "PRON", - "text": "'s" - }, - { - "distance": 228, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 240.15254237288136, - "pos": "PRON", - "text": "my" - }, - { - "distance": 261.5217391304348, - "pos": "PRON", - "text": "their" - }, - { - "distance": 261.6348547717842, - "pos": "PRON", - "text": "he" - }, - { - "distance": 271.2, - "pos": "PRON", - "text": "ourselves" - }, - { - "distance": 281.47058823529414, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 282.59022556390977, - "pos": "PRON", - "text": "who" - }, - { - "distance": 139.54545454545453, - "pos": "PRT", - "text": "by" - }, - { - "distance": 232.5, - "pos": "PRT", - "text": "in" - }, - { - "distance": 249.76, - "pos": "PRT", - "text": "to" - }, - { - "distance": 255.3913043478261, - "pos": "PRT", - "text": "about" - }, - { - "distance": 264.60377358490564, - "pos": "PRT", - "text": "down" - }, - { - "distance": 287.7036040882195, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 289.53225806451616, - "pos": "PRT", - "text": "off" - }, - { - "distance": 295.3790322580645, - "pos": "PRT", - "text": "up" - }, - { - "distance": 295.64285714285717, - "pos": "PRT", - "text": "on" - }, - { - "distance": 300.4266666666667, - "pos": "PRT", - "text": "out" - }, - { - "distance": 48.714285714285715, - "pos": "VERB", - "text": "formed" - }, - { - "distance": 75.57142857142857, - "pos": "VERB", - "text": "presaged" - }, - { - "distance": 77.14285714285714, - "pos": "VERB", - "text": "branded" - }, - { - "distance": 81, - "pos": "VERB", - "text": "shot" - }, - { - "distance": 81, - "pos": "VERB", - "text": "demanding" - }, - { - "distance": 83, - "pos": "VERB", - "text": "decides" - }, - { - "distance": 85.14285714285714, - "pos": "VERB", - "text": "buy" - }, - { - "distance": 88.28571428571429, - "pos": "VERB", - "text": "invoked" - }, - { - "distance": 93.33333333333333, - "pos": "VERB", - "text": "chastised" - }, - { - "distance": 93.42857142857143, - "pos": "VERB", - "text": "framed" - } -] \ No newline at end of file diff --git a/docs/donald+trump.json b/docs/donald+trump.json deleted file mode 100644 index d5b7fa0..0000000 --- a/docs/donald+trump.json +++ /dev/null @@ -1,492 +0,0 @@ -[ - { - "distance": 96.90243902439025, - "pos": "ADJ", - "text": "pro-trump" - }, - { - "distance": 104.4, - "pos": "ADJ", - "text": "shocked" - }, - { - "distance": 109.6, - "pos": "ADJ", - "text": "casual" - }, - { - "distance": 113.20833333333333, - "pos": "ADJ", - "text": "explicit" - }, - { - "distance": 113.72727272727273, - "pos": "ADJ", - "text": "lower" - }, - { - "distance": 119.91111111111111, - "pos": "ADJ", - "text": "intolerable" - }, - { - "distance": 121.36065573770492, - "pos": "ADJ", - "text": "unofficial" - }, - { - "distance": 129, - "pos": "ADJ", - "text": "false" - }, - { - "distance": 134.94736842105263, - "pos": "ADJ", - "text": "expensive" - }, - { - "distance": 138.95652173913044, - "pos": "ADJ", - "text": "incorrect" - }, - { - "distance": 134.86666666666667, - "pos": "ADP", - "text": "outside" - }, - { - "distance": 183.36363636363637, - "pos": "ADP", - "text": "that" - }, - { - "distance": 208.8181818181818, - "pos": "ADP", - "text": "through" - }, - { - "distance": 219.19230769230768, - "pos": "ADP", - "text": "upon" - }, - { - "distance": 220.28571428571428, - "pos": "ADP", - "text": "en" - }, - { - "distance": 221.14754098360655, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 225.9, - "pos": "ADP", - "text": "for" - }, - { - "distance": 242.80645161290323, - "pos": "ADP", - "text": "amid" - }, - { - "distance": 260.2608695652174, - "pos": "ADP", - "text": "whether" - }, - { - "distance": 267.67857142857144, - "pos": "ADP", - "text": "beside" - }, - { - "distance": 111.21951219512195, - "pos": "ADV", - "text": "above" - }, - { - "distance": 116.06666666666666, - "pos": "ADV", - "text": "mostly" - }, - { - "distance": 121.66666666666667, - "pos": "ADV", - "text": "usually" - }, - { - "distance": 129.0909090909091, - "pos": "ADV", - "text": "domestically" - }, - { - "distance": 144.66, - "pos": "ADV", - "text": "accurately" - }, - { - "distance": 148.6, - "pos": "ADV", - "text": "realistically" - }, - { - "distance": 154.34722222222223, - "pos": "ADV", - "text": "greatly" - }, - { - "distance": 155, - "pos": "ADV", - "text": "utterly" - }, - { - "distance": 160.54166666666666, - "pos": "ADV", - "text": "explicitly" - }, - { - "distance": 161.59574468085106, - "pos": "ADV", - "text": "casually" - }, - { - "distance": 206.49122807017545, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 276.86842105263156, - "pos": "CONJ", - "text": "nor" - }, - { - "distance": 322.875, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 397.0769230769231, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 421.8888888888889, - "pos": "CONJ", - "text": "yet" - }, - { - "distance": 482.9981369352585, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 502.1, - "pos": "CONJ", - "text": "neither" - }, - { - "distance": 689.4897959183673, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 260.7350427350427, - "pos": "DET", - "text": "both" - }, - { - "distance": 267.54545454545456, - "pos": "DET", - "text": "which" - }, - { - "distance": 271.3673469387755, - "pos": "DET", - "text": "any" - }, - { - "distance": 315.98501872659176, - "pos": "DET", - "text": "another" - }, - { - "distance": 322.8888888888889, - "pos": "DET", - "text": "such" - }, - { - "distance": 344.3636363636364, - "pos": "DET", - "text": "quite" - }, - { - "distance": 359.8646408839779, - "pos": "DET", - "text": "all" - }, - { - "distance": 377.38310269482884, - "pos": "DET", - "text": "that" - }, - { - "distance": 377.89237668161434, - "pos": "DET", - "text": "some" - }, - { - "distance": 399.5192307692308, - "pos": "DET", - "text": "no" - }, - { - "distance": 43.5, - "pos": "NOUN", - "text": "meyers" - }, - { - "distance": 59, - "pos": "NOUN", - "text": "satellite" - }, - { - "distance": 60, - "pos": "NOUN", - "text": "launching" - }, - { - "distance": 61, - "pos": "NOUN", - "text": "ground" - }, - { - "distance": 78.76190476190476, - "pos": "NOUN", - "text": "y." - }, - { - "distance": 88.57142857142857, - "pos": "NOUN", - "text": "senses" - }, - { - "distance": 88.95, - "pos": "NOUN", - "text": "golden" - }, - { - "distance": 90.42857142857143, - "pos": "NOUN", - "text": "co-host" - }, - { - "distance": 94.625, - "pos": "NOUN", - "text": "nadler" - }, - { - "distance": 96.29824561403508, - "pos": "NOUN", - "text": "cheney" - }, - { - "distance": 107.8, - "pos": "NUM", - "text": "7,000" - }, - { - "distance": 108.88888888888889, - "pos": "NUM", - "text": "$65,000" - }, - { - "distance": 112.6, - "pos": "NUM", - "text": "6,800" - }, - { - "distance": 113.72727272727273, - "pos": "NUM", - "text": "60,350" - }, - { - "distance": 117.8, - "pos": "NUM", - "text": "1979" - }, - { - "distance": 121.45, - "pos": "NUM", - "text": "\"." - }, - { - "distance": 134.6, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 143.0952380952381, - "pos": "NUM", - "text": "195" - }, - { - "distance": 145.05405405405406, - "pos": "NUM", - "text": "800" - }, - { - "distance": 146, - "pos": "NUM", - "text": "4,571" - }, - { - "distance": 112.5, - "pos": "PRON", - "text": "u" - }, - { - "distance": 208.9189189189189, - "pos": "PRON", - "text": "yourself" - }, - { - "distance": 236.66666666666666, - "pos": "PRON", - "text": "it." - }, - { - "distance": 248.6875, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 292.1923076923077, - "pos": "PRON", - "text": "whatever" - }, - { - "distance": 293.13157894736844, - "pos": "PRON", - "text": "ourselves" - }, - { - "distance": 312.72906403940885, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 321.30232558139534, - "pos": "PRON", - "text": "you'r" - }, - { - "distance": 334.0983606557377, - "pos": "PRON", - "text": "you" - }, - { - "distance": 342.6946778711485, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 212.93333333333334, - "pos": "PRT", - "text": "to" - }, - { - "distance": 225.78571428571428, - "pos": "PRT", - "text": "test." - }, - { - "distance": 254.36363636363637, - "pos": "PRT", - "text": "up" - }, - { - "distance": 261.10151187904967, - "pos": "PRT", - "text": "back" - }, - { - "distance": 277.0779220779221, - "pos": "PRT", - "text": "na" - }, - { - "distance": 278.4416961130742, - "pos": "PRT", - "text": "through" - }, - { - "distance": 341.73148148148147, - "pos": "PRT", - "text": "away" - }, - { - "distance": 354.6933962264151, - "pos": "PRT", - "text": "in" - }, - { - "distance": 366.12783171521033, - "pos": "PRT", - "text": "on" - }, - { - "distance": 367.85, - "pos": "PRT", - "text": "about" - }, - { - "distance": 73.5, - "pos": "VERB", - "text": "depicted" - }, - { - "distance": 85.28571428571429, - "pos": "VERB", - "text": "bolstering" - }, - { - "distance": 85.5, - "pos": "VERB", - "text": "cut" - }, - { - "distance": 96, - "pos": "VERB", - "text": "accumulate" - }, - { - "distance": 97.26666666666667, - "pos": "VERB", - "text": "had" - }, - { - "distance": 101.95, - "pos": "VERB", - "text": "check" - }, - { - "distance": 102, - "pos": "VERB", - "text": "outmatch" - }, - { - "distance": 106.28571428571429, - "pos": "VERB", - "text": "outlast" - }, - { - "distance": 108.4, - "pos": "VERB", - "text": "enhancing" - }, - { - "distance": 109.45454545454545, - "pos": "VERB", - "text": "coordinating" - } -] \ No newline at end of file diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index df36fcf..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index c23701a..0000000 --- a/docs/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - entityscrape - - - - - -
- - - - \ No newline at end of file diff --git a/docs/north+korea.json b/docs/north+korea.json deleted file mode 100644 index 5e0756f..0000000 --- a/docs/north+korea.json +++ /dev/null @@ -1,477 +0,0 @@ -[ - { - "distance": 53.857142857142854, - "pos": "ADJ", - "text": "indiscriminate" - }, - { - "distance": 61.285714285714285, - "pos": "ADJ", - "text": "despicable" - }, - { - "distance": 72.66666666666667, - "pos": "ADJ", - "text": "voluntary" - }, - { - "distance": 76.38461538461539, - "pos": "ADJ", - "text": "diplomatic" - }, - { - "distance": 79.25, - "pos": "ADJ", - "text": "secure" - }, - { - "distance": 80.75, - "pos": "ADJ", - "text": "unanimous" - }, - { - "distance": 83.05555555555556, - "pos": "ADJ", - "text": "secretive" - }, - { - "distance": 83.5, - "pos": "ADJ", - "text": "historic" - }, - { - "distance": 86, - "pos": "ADJ", - "text": "previous" - }, - { - "distance": 86.33333333333333, - "pos": "ADJ", - "text": "islamic" - }, - { - "distance": 122.18181818181819, - "pos": "ADP", - "text": "although" - }, - { - "distance": 161, - "pos": "ADP", - "text": "between" - }, - { - "distance": 164.33333333333334, - "pos": "ADP", - "text": "before" - }, - { - "distance": 167.77777777777777, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 189, - "pos": "ADP", - "text": "onto" - }, - { - "distance": 196.8, - "pos": "ADP", - "text": "whether" - }, - { - "distance": 206.19298245614036, - "pos": "ADP", - "text": "across" - }, - { - "distance": 231.1818181818182, - "pos": "ADP", - "text": "through" - }, - { - "distance": 234, - "pos": "ADP", - "text": "along" - }, - { - "distance": 250.57912457912457, - "pos": "ADP", - "text": "against" - }, - { - "distance": 34.5, - "pos": "ADV", - "text": "long" - }, - { - "distance": 55.714285714285715, - "pos": "ADV", - "text": "angrily" - }, - { - "distance": 93.85714285714286, - "pos": "ADV", - "text": "afloat" - }, - { - "distance": 112.66666666666667, - "pos": "ADV", - "text": "personally" - }, - { - "distance": 121.11111111111111, - "pos": "ADV", - "text": "as" - }, - { - "distance": 122.6, - "pos": "ADV", - "text": "reluctantly" - }, - { - "distance": 128.66666666666666, - "pos": "ADV", - "text": "adamantly" - }, - { - "distance": 128.85714285714286, - "pos": "ADV", - "text": "last" - }, - { - "distance": 130.875, - "pos": "ADV", - "text": "intensively" - }, - { - "distance": 131.77777777777777, - "pos": "ADV", - "text": "closer" - }, - { - "distance": 31.333333333333332, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 105.57142857142857, - "pos": "CONJ", - "text": "plus" - }, - { - "distance": 304.56657963446474, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 330.9389312977099, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 667.8, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 150.9047619047619, - "pos": "DET", - "text": "another" - }, - { - "distance": 163.57894736842104, - "pos": "DET", - "text": "whatever" - }, - { - "distance": 189.26923076923077, - "pos": "DET", - "text": "an" - }, - { - "distance": 190.69230769230768, - "pos": "DET", - "text": "half" - }, - { - "distance": 191.13793103448276, - "pos": "DET", - "text": "both" - }, - { - "distance": 207.38888888888889, - "pos": "DET", - "text": "all" - }, - { - "distance": 253.81420765027323, - "pos": "DET", - "text": "there" - }, - { - "distance": 275.2027027027027, - "pos": "DET", - "text": "that" - }, - { - "distance": 285.25714285714287, - "pos": "DET", - "text": "these" - }, - { - "distance": 291.0281690140845, - "pos": "DET", - "text": "no" - }, - { - "distance": 22.5, - "pos": "NOUN", - "text": "possession" - }, - { - "distance": 37.166666666666664, - "pos": "NOUN", - "text": "blog" - }, - { - "distance": 42.833333333333336, - "pos": "NOUN", - "text": "launching" - }, - { - "distance": 43.166666666666664, - "pos": "NOUN", - "text": "un-employees" - }, - { - "distance": 46.833333333333336, - "pos": "NOUN", - "text": "no." - }, - { - "distance": 49, - "pos": "NOUN", - "text": "manipulation" - }, - { - "distance": 52.75, - "pos": "NOUN", - "text": "millitary" - }, - { - "distance": 54.875, - "pos": "NOUN", - "text": "ground" - }, - { - "distance": 55.125, - "pos": "NOUN", - "text": "satellite" - }, - { - "distance": 60.333333333333336, - "pos": "NOUN", - "text": "improvement" - }, - { - "distance": 63.75, - "pos": "NUM", - "text": "nine" - }, - { - "distance": 123.22222222222223, - "pos": "NUM", - "text": "28,500" - }, - { - "distance": 129.33333333333334, - "pos": "NUM", - "text": "1950" - }, - { - "distance": 130.875, - "pos": "NUM", - "text": "2100" - }, - { - "distance": 148.33333333333334, - "pos": "NUM", - "text": "3,600" - }, - { - "distance": 157.0735294117647, - "pos": "NUM", - "text": "$1.35" - }, - { - "distance": 161.57142857142858, - "pos": "NUM", - "text": "ten" - }, - { - "distance": 163.6875, - "pos": "NUM", - "text": "2008" - }, - { - "distance": 165.93333333333334, - "pos": "NUM", - "text": "2009" - }, - { - "distance": 174.85714285714286, - "pos": "NUM", - "text": "2003" - }, - { - "distance": 159.66666666666666, - "pos": "PRON", - "text": "it." - }, - { - "distance": 166.8235294117647, - "pos": "PRON", - "text": "who" - }, - { - "distance": 223.89361702127658, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 227.0222222222222, - "pos": "PRON", - "text": "our" - }, - { - "distance": 238.26027397260273, - "pos": "PRON", - "text": "itself" - }, - { - "distance": 259.28125, - "pos": "PRON", - "text": "his" - }, - { - "distance": 264.47058823529414, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 270.64406779661016, - "pos": "PRON", - "text": "you" - }, - { - "distance": 289.18518518518516, - "pos": "PRON", - "text": "your" - }, - { - "distance": 289.9795918367347, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 121.45454545454545, - "pos": "PRT", - "text": "to" - }, - { - "distance": 167.21428571428572, - "pos": "PRT", - "text": "about" - }, - { - "distance": 187, - "pos": "PRT", - "text": "back" - }, - { - "distance": 218.5, - "pos": "PRT", - "text": "in" - }, - { - "distance": 236.36729222520108, - "pos": "PRT", - "text": "up" - }, - { - "distance": 301.89473684210526, - "pos": "PRT", - "text": "down" - }, - { - "distance": 302.90058479532166, - "pos": "PRT", - "text": "off" - }, - { - "distance": 305.54411764705884, - "pos": "PRT", - "text": "through" - }, - { - "distance": 309.3888888888889, - "pos": "PRT", - "text": "on" - }, - { - "distance": 317.8052550231839, - "pos": "PRT", - "text": "out" - }, - { - "distance": 28, - "pos": "VERB", - "text": "pressuring" - }, - { - "distance": 36.23076923076923, - "pos": "VERB", - "text": "declare" - }, - { - "distance": 37.166666666666664, - "pos": "VERB", - "text": "communicating" - }, - { - "distance": 37.166666666666664, - "pos": "VERB", - "text": "relent" - }, - { - "distance": 47.25, - "pos": "VERB", - "text": "had" - }, - { - "distance": 50, - "pos": "VERB", - "text": "match" - }, - { - "distance": 50.125, - "pos": "VERB", - "text": "fail" - }, - { - "distance": 54.57142857142857, - "pos": "VERB", - "text": "subverting" - }, - { - "distance": 56.142857142857146, - "pos": "VERB", - "text": "objected" - }, - { - "distance": 72, - "pos": "VERB", - "text": "departed" - } -] \ No newline at end of file diff --git a/docs/vladimir+putin.json b/docs/vladimir+putin.json deleted file mode 100644 index 1285f48..0000000 --- a/docs/vladimir+putin.json +++ /dev/null @@ -1,467 +0,0 @@ -[ - { - "distance": 28, - "pos": "ADJ", - "text": "big" - }, - { - "distance": 29.5, - "pos": "ADJ", - "text": "angry" - }, - { - "distance": 36, - "pos": "ADJ", - "text": "intermediate" - }, - { - "distance": 55.5, - "pos": "ADJ", - "text": "available" - }, - { - "distance": 72, - "pos": "ADJ", - "text": "most" - }, - { - "distance": 85, - "pos": "ADJ", - "text": "trilateral" - }, - { - "distance": 85.5, - "pos": "ADJ", - "text": "dangerous" - }, - { - "distance": 89.97435897435898, - "pos": "ADJ", - "text": "russian" - }, - { - "distance": 94, - "pos": "ADJ", - "text": "military" - }, - { - "distance": 95, - "pos": "ADJ", - "text": "easy" - }, - { - "distance": 33, - "pos": "ADP", - "text": "to" - }, - { - "distance": 48, - "pos": "ADP", - "text": "after" - }, - { - "distance": 52.5, - "pos": "ADP", - "text": "among" - }, - { - "distance": 59, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 85.33333333333333, - "pos": "ADP", - "text": "throughout" - }, - { - "distance": 86, - "pos": "ADP", - "text": "via" - }, - { - "distance": 104, - "pos": "ADP", - "text": "under" - }, - { - "distance": 131.48648648648648, - "pos": "ADP", - "text": "between" - }, - { - "distance": 152.25, - "pos": "ADP", - "text": "behind" - }, - { - "distance": 185.4, - "pos": "ADP", - "text": "about" - }, - { - "distance": 12.5, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 86.33333333333333, - "pos": "ADV", - "text": "far" - }, - { - "distance": 90, - "pos": "ADV", - "text": "already" - }, - { - "distance": 93.5, - "pos": "ADV", - "text": "quickly" - }, - { - "distance": 97, - "pos": "ADV", - "text": "then" - }, - { - "distance": 106.33333333333333, - "pos": "ADV", - "text": "north" - }, - { - "distance": 116.33333333333333, - "pos": "ADV", - "text": "ahead" - }, - { - "distance": 119.33333333333333, - "pos": "ADV", - "text": "rather" - }, - { - "distance": 126, - "pos": "ADV", - "text": "just" - }, - { - "distance": 129.66666666666666, - "pos": "ADV", - "text": "here" - }, - { - "distance": 170, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 409.1611842105263, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 528.9577464788732, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 624.7692307692307, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 154.16666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 182.77777777777777, - "pos": "DET", - "text": "a" - }, - { - "distance": 188.66666666666666, - "pos": "DET", - "text": "another" - }, - { - "distance": 247.94827586206895, - "pos": "DET", - "text": "that" - }, - { - "distance": 317.6666666666667, - "pos": "DET", - "text": "those" - }, - { - "distance": 350.7241379310345, - "pos": "DET", - "text": "which" - }, - { - "distance": 374.05882352941177, - "pos": "DET", - "text": "both" - }, - { - "distance": 385.1489361702128, - "pos": "DET", - "text": "this" - }, - { - "distance": 411, - "pos": "DET", - "text": "any" - }, - { - "distance": 426.6280487804878, - "pos": "DET", - "text": "the" - }, - { - "distance": 2, - "pos": "NOUN", - "text": "goal" - }, - { - "distance": 8, - "pos": "NOUN", - "text": "kuril" - }, - { - "distance": 9, - "pos": "NOUN", - "text": "southern" - }, - { - "distance": 12, - "pos": "NOUN", - "text": "territories" - }, - { - "distance": 12.5, - "pos": "NOUN", - "text": "meetings" - }, - { - "distance": 13, - "pos": "NOUN", - "text": "northern" - }, - { - "distance": 17.5, - "pos": "NOUN", - "text": "desk" - }, - { - "distance": 18, - "pos": "NOUN", - "text": "ministry" - }, - { - "distance": 20.5, - "pos": "NOUN", - "text": "oval" - }, - { - "distance": 21.5, - "pos": "NOUN", - "text": "office" - }, - { - "distance": 24, - "pos": "NUM", - "text": "17" - }, - { - "distance": 45, - "pos": "NUM", - "text": "1987" - }, - { - "distance": 91, - "pos": "NUM", - "text": "trillion" - }, - { - "distance": 92, - "pos": "NUM", - "text": "$1" - }, - { - "distance": 98, - "pos": "NUM", - "text": "two" - }, - { - "distance": 99, - "pos": "NUM", - "text": "70" - }, - { - "distance": 99, - "pos": "NUM", - "text": "2016" - }, - { - "distance": 115.33333333333333, - "pos": "NUM", - "text": "2017" - }, - { - "distance": 137.66666666666666, - "pos": "NUM", - "text": "one" - }, - { - "distance": 140, - "pos": "NUM", - "text": "18" - }, - { - "distance": 32, - "pos": "PRON", - "text": "me" - }, - { - "distance": 78.5, - "pos": "PRON", - "text": "what" - }, - { - "distance": 95.5, - "pos": "PRON", - "text": "my" - }, - { - "distance": 96.66666666666667, - "pos": "PRON", - "text": "she" - }, - { - "distance": 114, - "pos": "PRON", - "text": "our" - }, - { - "distance": 119.4, - "pos": "PRON", - "text": "we" - }, - { - "distance": 132.66666666666666, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 135, - "pos": "PRON", - "text": "his" - }, - { - "distance": 138, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 289.2857142857143, - "pos": "PRON", - "text": "its" - }, - { - "distance": 124.66666666666667, - "pos": "PRT", - "text": "on" - }, - { - "distance": 244.33333333333334, - "pos": "PRT", - "text": "down" - }, - { - "distance": 342, - "pos": "PRT", - "text": "in" - }, - { - "distance": 353.26402640264024, - "pos": "PRT", - "text": "to" - }, - { - "distance": 355.6551724137931, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 368.5, - "pos": "PRT", - "text": "out" - }, - { - "distance": 398.4642857142857, - "pos": "PRT", - "text": "up" - }, - { - "distance": 459.3333333333333, - "pos": "PRT", - "text": "'" - }, - { - "distance": 1076.6666666666667, - "pos": "PRT", - "text": "away" - }, - { - "distance": 4, - "pos": "VERB", - "text": "signing" - }, - { - "distance": 9, - "pos": "VERB", - "text": "expressed" - }, - { - "distance": 12.5, - "pos": "VERB", - "text": "had" - }, - { - "distance": 12.5, - "pos": "VERB", - "text": "scheduled" - }, - { - "distance": 19, - "pos": "VERB", - "text": "raise" - }, - { - "distance": 21, - "pos": "VERB", - "text": "makes" - }, - { - "distance": 23, - "pos": "VERB", - "text": "asked" - }, - { - "distance": 24.5, - "pos": "VERB", - "text": "declared" - }, - { - "distance": 27, - "pos": "VERB", - "text": "pay" - }, - { - "distance": 39, - "pos": "VERB", - "text": "acting" - } -] \ No newline at end of file diff --git a/docs/xi+jinping.json b/docs/xi+jinping.json deleted file mode 100644 index d77e0a3..0000000 --- a/docs/xi+jinping.json +++ /dev/null @@ -1,477 +0,0 @@ -[ - { - "distance": 51.6, - "pos": "ADJ", - "text": "underway" - }, - { - "distance": 63.8, - "pos": "ADJ", - "text": "friendly" - }, - { - "distance": 65.75, - "pos": "ADJ", - "text": "unconfirmed" - }, - { - "distance": 74.7, - "pos": "ADJ", - "text": "good" - }, - { - "distance": 75.75, - "pos": "ADJ", - "text": "earlier" - }, - { - "distance": 76.25, - "pos": "ADJ", - "text": "productive" - }, - { - "distance": 77.5, - "pos": "ADJ", - "text": "domestic" - }, - { - "distance": 77.5, - "pos": "ADJ", - "text": "mutual" - }, - { - "distance": 87.16666666666667, - "pos": "ADJ", - "text": "unofficial" - }, - { - "distance": 89, - "pos": "ADJ", - "text": "glad" - }, - { - "distance": 97.75, - "pos": "ADP", - "text": "toward" - }, - { - "distance": 110.30434782608695, - "pos": "ADP", - "text": "before" - }, - { - "distance": 110.33333333333333, - "pos": "ADP", - "text": "because" - }, - { - "distance": 122, - "pos": "ADP", - "text": "since" - }, - { - "distance": 137.14285714285714, - "pos": "ADP", - "text": "after" - }, - { - "distance": 158.70833333333334, - "pos": "ADP", - "text": "despite" - }, - { - "distance": 163.27272727272728, - "pos": "ADP", - "text": "in" - }, - { - "distance": 171.35537190082644, - "pos": "ADP", - "text": "between" - }, - { - "distance": 175.8095238095238, - "pos": "ADP", - "text": "if" - }, - { - "distance": 201, - "pos": "ADP", - "text": "to" - }, - { - "distance": 13.5, - "pos": "ADV", - "text": "most" - }, - { - "distance": 82, - "pos": "ADV", - "text": "casually" - }, - { - "distance": 88.5, - "pos": "ADV", - "text": "principally" - }, - { - "distance": 105, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 127.85714285714286, - "pos": "ADV", - "text": "late" - }, - { - "distance": 140.55555555555554, - "pos": "ADV", - "text": "surely" - }, - { - "distance": 142.56756756756758, - "pos": "ADV", - "text": "very" - }, - { - "distance": 145.11111111111111, - "pos": "ADV", - "text": "just" - }, - { - "distance": 153.36363636363637, - "pos": "ADV", - "text": "n't" - }, - { - "distance": 155.5, - "pos": "ADV", - "text": "notably" - }, - { - "distance": 132.16666666666666, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 220.11111111111111, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 273.3333333333333, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 287.3703703703704, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 305.4347826086956, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 77.75, - "pos": "DET", - "text": "both" - }, - { - "distance": 82.2, - "pos": "DET", - "text": "another" - }, - { - "distance": 147, - "pos": "DET", - "text": "this" - }, - { - "distance": 164.6, - "pos": "DET", - "text": "all" - }, - { - "distance": 165, - "pos": "DET", - "text": "these" - }, - { - "distance": 194.08510638297872, - "pos": "DET", - "text": "any" - }, - { - "distance": 218.9655172413793, - "pos": "DET", - "text": "the" - }, - { - "distance": 228.8125, - "pos": "DET", - "text": "that" - }, - { - "distance": 232.66666666666666, - "pos": "DET", - "text": "those" - }, - { - "distance": 234.3111111111111, - "pos": "DET", - "text": "a" - }, - { - "distance": 40.42857142857143, - "pos": "NOUN", - "text": "problem" - }, - { - "distance": 51.2, - "pos": "NOUN", - "text": "negotiations" - }, - { - "distance": 53.4, - "pos": "NOUN", - "text": "reports" - }, - { - "distance": 56.333333333333336, - "pos": "NOUN", - "text": "courtesy" - }, - { - "distance": 60.166666666666664, - "pos": "NOUN", - "text": "adrian" - }, - { - "distance": 60.333333333333336, - "pos": "NOUN", - "text": "minutes" - }, - { - "distance": 61.4, - "pos": "NOUN", - "text": "appreciation" - }, - { - "distance": 64.54545454545455, - "pos": "NOUN", - "text": "communications" - }, - { - "distance": 65.75, - "pos": "NOUN", - "text": "reference" - }, - { - "distance": 65.75, - "pos": "NOUN", - "text": "contrast" - }, - { - "distance": 32, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 59.666666666666664, - "pos": "NUM", - "text": "seven" - }, - { - "distance": 89.16666666666667, - "pos": "NUM", - "text": "1979" - }, - { - "distance": 102, - "pos": "NUM", - "text": "18" - }, - { - "distance": 117.85714285714286, - "pos": "NUM", - "text": "18.03." - }, - { - "distance": 125.2, - "pos": "NUM", - "text": "17.03." - }, - { - "distance": 142.22727272727272, - "pos": "NUM", - "text": "4" - }, - { - "distance": 143.57142857142858, - "pos": "NUM", - "text": "28" - }, - { - "distance": 144.35135135135135, - "pos": "NUM", - "text": "6" - }, - { - "distance": 161.5, - "pos": "NUM", - "text": "2" - }, - { - "distance": 102, - "pos": "PRON", - "text": "my" - }, - { - "distance": 136.6046511627907, - "pos": "PRON", - "text": "i" - }, - { - "distance": 163.6, - "pos": "PRON", - "text": "it." - }, - { - "distance": 190.1764705882353, - "pos": "PRON", - "text": "him" - }, - { - "distance": 196.42857142857142, - "pos": "PRON", - "text": "they" - }, - { - "distance": 203, - "pos": "PRON", - "text": "we" - }, - { - "distance": 204, - "pos": "PRON", - "text": "his" - }, - { - "distance": 217.34736842105264, - "pos": "PRON", - "text": "it" - }, - { - "distance": 233.1125, - "pos": "PRON", - "text": "he" - }, - { - "distance": 233.23076923076923, - "pos": "PRON", - "text": "what" - }, - { - "distance": 142.625, - "pos": "PRT", - "text": "in" - }, - { - "distance": 148.0952380952381, - "pos": "PRT", - "text": "through" - }, - { - "distance": 188.75, - "pos": "PRT", - "text": "about" - }, - { - "distance": 226.28571428571428, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 261.3235294117647, - "pos": "PRT", - "text": "out" - }, - { - "distance": 262.85714285714283, - "pos": "PRT", - "text": "up" - }, - { - "distance": 316.29411764705884, - "pos": "PRT", - "text": "off" - }, - { - "distance": 322.1111111111111, - "pos": "PRT", - "text": "on" - }, - { - "distance": 325.04347826086956, - "pos": "PRT", - "text": "'" - }, - { - "distance": 449, - "pos": "PRT", - "text": "to" - }, - { - "distance": 19.333333333333332, - "pos": "VERB", - "text": "expected" - }, - { - "distance": 45.714285714285715, - "pos": "VERB", - "text": "enhancing" - }, - { - "distance": 57.2, - "pos": "VERB", - "text": "occurred" - }, - { - "distance": 59, - "pos": "VERB", - "text": "lasted" - }, - { - "distance": 59.5, - "pos": "VERB", - "text": "reporting" - }, - { - "distance": 59.77777777777778, - "pos": "VERB", - "text": "places" - }, - { - "distance": 62.6, - "pos": "VERB", - "text": "express" - }, - { - "distance": 65.75, - "pos": "VERB", - "text": "released" - }, - { - "distance": 66.6, - "pos": "VERB", - "text": "say" - }, - { - "distance": 67.75, - "pos": "VERB", - "text": "considered" - } -] \ No newline at end of file diff --git a/go.mod b/go.mod index a79c0f6..a485a64 100644 --- a/go.mod +++ b/go.mod @@ -1,28 +1,40 @@ module github.com/ndabAP/entityscrape -go 1.18 +go 1.25.0 -require github.com/ndabAP/assocentity/v14 v14.0.1 +require ( + cloud.google.com/go/language v1.14.5 + cloud.google.com/go/translate v1.12.6 + github.com/ndabAP/assocentity v1.0.0 + golang.org/x/net v0.44.0 + golang.org/x/sync v0.17.0 + golang.org/x/text v0.29.0 + google.golang.org/api v0.249.0 +) require ( - cloud.google.com/go/compute v1.19.0 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect - cloud.google.com/go/language v1.9.0 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect - github.com/google/go-cmp v0.5.9 // indirect - github.com/google/s2a-go v0.1.3 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.9.1 // indirect - go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.1.0 // indirect - golang.org/x/net v0.9.0 // indirect - golang.org/x/oauth2 v0.7.0 // indirect - golang.org/x/sys v0.7.0 // indirect - golang.org/x/text v0.9.0 // indirect - google.golang.org/api v0.123.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect - google.golang.org/grpc v1.55.0 // indirect - google.golang.org/protobuf v1.30.0 // indirect + cloud.google.com/go v0.122.0 // indirect + cloud.google.com/go/auth v0.16.5 // indirect + cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect + cloud.google.com/go/compute/metadata v0.8.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/google/s2a-go v0.1.9 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect + github.com/googleapis/gax-go/v2 v2.15.0 // indirect + go.opentelemetry.io/auto/sdk v1.2.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect + go.opentelemetry.io/otel v1.38.0 // indirect + go.opentelemetry.io/otel/metric v1.38.0 // indirect + go.opentelemetry.io/otel/trace v1.38.0 // indirect + golang.org/x/crypto v0.42.0 // indirect + golang.org/x/mod v0.27.0 + golang.org/x/oauth2 v0.31.0 // indirect + golang.org/x/sys v0.36.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250908214217-97024824d090 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090 // indirect + google.golang.org/grpc v1.75.1 // indirect + google.golang.org/protobuf v1.36.9 // indirect ) diff --git a/go.sum b/go.sum index 88d436d..1bc4c26 100644 --- a/go.sum +++ b/go.sum @@ -1,195 +1,144 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys= -cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= -cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/language v1.9.0 h1:7Ulo2mDk9huBoBi8zCE3ONOoBrL6UXfAI71CLQ9GEIM= -cloud.google.com/go/language v1.9.0/go.mod h1:Ns15WooPM5Ad/5no/0n81yUetis74g3zrbeJBE+ptUY= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +cloud.google.com/go v0.120.0 h1:wc6bgG9DHyKqF5/vQvX1CiZrtHnxJjBlKUyF9nP6meA= +cloud.google.com/go v0.120.0/go.mod h1:/beW32s8/pGRuj4IILWQNd4uuebeT4dkOhKmkfit64Q= +cloud.google.com/go v0.122.0 h1:0JTLGrcSIs3HIGsgVPvTx3cfyFSP/k9CI8vLPHTd6Wc= +cloud.google.com/go v0.122.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU= +cloud.google.com/go/auth v0.16.1 h1:XrXauHMd30LhQYVRHLGvJiYeczweKQXZxsTbV9TiguU= +cloud.google.com/go/auth v0.16.1/go.mod h1:1howDHJ5IETh/LwYs3ZxvlkXF48aSqqJUM+5o02dNOI= +cloud.google.com/go/auth v0.16.5 h1:mFWNQ2FEVWAliEQWpAdH80omXFokmrnbDhUS9cBywsI= +cloud.google.com/go/auth v0.16.5/go.mod h1:utzRfHMP+Vv0mpOkTRQoWD2q3BatTOoWbA7gCc2dUhQ= +cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= +cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= +cloud.google.com/go/compute/metadata v0.7.0 h1:PBWF+iiAerVNe8UCHxdOt6eHLVc3ydFeOCw78U8ytSU= +cloud.google.com/go/compute/metadata v0.7.0/go.mod h1:j5MvL9PprKL39t166CoB1uVHfQMs4tFQZZcKwksXUjo= +cloud.google.com/go/compute/metadata v0.8.0 h1:HxMRIbao8w17ZX6wBnjhcDkW6lTFpgcaobyVfZWqRLA= +cloud.google.com/go/compute/metadata v0.8.0/go.mod h1:sYOGTp851OV9bOFJ9CH7elVvyzopvWQFNNghtDQ/Biw= +cloud.google.com/go/language v1.14.5 h1:BVJ/POtlnJ55LElvnQY19UOxpMVtHoHHkFJW2uHJsVU= +cloud.google.com/go/language v1.14.5/go.mod h1:nl2cyAVjcBct1Hk73tzxuKebk0t2eULFCaruhetdZIA= +cloud.google.com/go/translate v1.12.5 h1:QPMNi4WCtHwc2PPfxbyUMwdN/0+cyCGLaKi2tig41J8= +cloud.google.com/go/translate v1.12.5/go.mod h1:o/v+QG/bdtBV1d1edmtau0PwTfActvxPk/gtqdSDBi4= +cloud.google.com/go/translate v1.12.6 h1:QHcszWZvBLEZHM2WJ6IDg2BUTWzEPMiHhbJAd15yKGU= +cloud.google.com/go/translate v1.12.6/go.mod h1:nB3AXuX+iHbV8ZURmElcW85qkEDWZw68sf4kqMT/E5o= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/s2a-go v0.1.3 h1:FAgZmpLl/SXurPEZyCMPBIiiYeTbqfjlbdnCNTAkbGE= -github.com/google/s2a-go v0.1.3/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= -github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/gax-go/v2 v2.9.1 h1:DpTpJqzZ3NvX9zqjhIuI1oVzYZMvboZe+3LoeEIJjHM= -github.com/googleapis/gax-go/v2 v2.9.1/go.mod h1:4FG3gMrVZlyMp5itSYKMU9z/lBE7+SbnUOvzH2HqbEY= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= -github.com/ndabAP/assocentity/v14 v14.0.1 h1:iUbwGJz+s+aqgOjHXp8m+f1Wcdrq1BvmWtB8LexGB4s= -github.com/ndabAP/assocentity/v14 v14.0.1/go.mod h1:xUHsAWrosdroGxYcyXiuB7h2eFf8LqhNihhtcea0h9M= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= +github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.3.6 h1:GW/XbdyBFQ8Qe+YAmFU9uHLo7OnF5tL52HFAgMmyrf4= +github.com/googleapis/enterprise-certificate-proxy v0.3.6/go.mod h1:MkHOF77EYAE7qfSuSS9PU6g4Nt4e11cnsDUowfwewLA= +github.com/googleapis/gax-go/v2 v2.14.2 h1:eBLnkZ9635krYIPD+ag1USrOAI0Nr0QYF3+/3GqO0k0= +github.com/googleapis/gax-go/v2 v2.14.2/go.mod h1:ON64QhlJkhVtSqp4v1uaK92VyZ2gmvDQsweuyLV+8+w= +github.com/googleapis/gax-go/v2 v2.15.0 h1:SyjDc1mGgZU5LncH8gimWo9lW1DtIfPibOG81vgd/bo= +github.com/googleapis/gax-go/v2 v2.15.0/go.mod h1:zVVkkxAQHa1RQpg9z2AUCMnKhi0Qld9rcmyfL1OZhoc= +github.com/ndabAP/assocentity v1.0.0 h1:2Hvda8rMk9cCgEe4o4SMIzTKxrJ12mE79mDeE7SZeTI= +github.com/ndabAP/assocentity v1.0.0/go.mod h1:cE5sUcKi6Ug400f02YGU1db4R7lEFaz4llWyKrgEqbM= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.1.0 h1:MDRAIl0xIo9Io2xV565hzXHw3zVseKrJKodhohM5CjU= -golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= -golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= -golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= -golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.123.0 h1:yHVU//vA+qkOhm4reEC9LtzHVUCN/IqqNRl1iQ9xE20= -google.golang.org/api v0.123.0/go.mod h1:gcitW0lvnyWjSp9nKxAbdHKIZ6vF4aajGueeslZOyms= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/auto/sdk v1.2.0 h1:YpRtUFjvhSymycLS2T81lT6IGhcUP+LUPtv0iv1N8bM= +go.opentelemetry.io/auto/sdk v1.2.0/go.mod h1:1deq2zL7rwjwC8mR7XgY2N+tlIl6pjmEUoLDENMEzwk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 h1:RbKq8BG0FI8OiXhBfcRtqqHcZcka+gU3cskNuf05R18= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0/go.mod h1:h06DGIukJOevXaj/xrNjhi/2098RZzcLTbc0jDAUbsg= +go.opentelemetry.io/otel v1.36.0 h1:UumtzIklRBY6cI/lllNZlALOF5nNIzJVb16APdvgTXg= +go.opentelemetry.io/otel v1.36.0/go.mod h1:/TcFMXYjyRNh8khOAO9ybYkqaDBb/70aVwkNML4pP8E= +go.opentelemetry.io/otel v1.38.0 h1:RkfdswUDRimDg0m2Az18RKOsnI8UDzppJAtj01/Ymk8= +go.opentelemetry.io/otel v1.38.0/go.mod h1:zcmtmQ1+YmQM9wrNsTGV/q/uyusom3P8RxwExxkZhjM= +go.opentelemetry.io/otel/metric v1.36.0 h1:MoWPKVhQvJ+eeXWHFBOPoBOi20jh6Iq2CcCREuTYufE= +go.opentelemetry.io/otel/metric v1.36.0/go.mod h1:zC7Ks+yeyJt4xig9DEw9kuUFe5C3zLbVjV2PzT6qzbs= +go.opentelemetry.io/otel/metric v1.38.0 h1:Kl6lzIYGAh5M159u9NgiRkmoMKjvbsKtYRwgfrA6WpA= +go.opentelemetry.io/otel/metric v1.38.0/go.mod h1:kB5n/QoRM8YwmUahxvI3bO34eVtQf2i4utNVLr9gEmI= +go.opentelemetry.io/otel/sdk v1.36.0 h1:b6SYIuLRs88ztox4EyrvRti80uXIFy+Sqzoh9kFULbs= +go.opentelemetry.io/otel/sdk v1.38.0 h1:l48sr5YbNf2hpCUj/FoGhW9yDkl+Ma+LrVl8qaM5b+E= +go.opentelemetry.io/otel/sdk/metric v1.36.0 h1:r0ntwwGosWGaa0CrSt8cuNuTcccMXERFwHX4dThiPis= +go.opentelemetry.io/otel/sdk/metric v1.38.0 h1:aSH66iL0aZqo//xXzQLYozmWrXxyFkBJ6qT5wthqPoM= +go.opentelemetry.io/otel/trace v1.36.0 h1:ahxWNuqZjpdiFAyrIoQ4GIiAIhxAunQR6MUoKrsNd4w= +go.opentelemetry.io/otel/trace v1.36.0/go.mod h1:gQ+OnDZzrybY4k4seLzPAWNwVBBVlF2szhehOBB/tGA= +go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJrmcNLE= +go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs= +golang.org/x/crypto v0.38.0 h1:jt+WWG8IZlBnVbomuhg2Mdq0+BBQaHbtqHEFEigjUV8= +golang.org/x/crypto v0.38.0/go.mod h1:MvrbAqul58NNYPKnOra203SB9vpuZW0e+RRZV+Ggqjw= +golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4= +golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc= +golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI= +golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8= +golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg= +golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ= +golang.org/x/mod v0.27.0 h1:kb+q2PyFnEADO2IEF935ehFUXlWiNjJWtRNgBLSfbxQ= +golang.org/x/mod v0.27.0/go.mod h1:rWI627Fq0DEoudcK+MBkNkCe0EetEaDSwJJkCcjpazc= +golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY= +golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds= +golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= +golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I= +golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= +golang.org/x/oauth2 v0.31.0 h1:8Fq0yVZLh4j4YA47vHKFTa9Ew5XIrCP8LC6UeNZnLxo= +golang.org/x/oauth2 v0.31.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= +golang.org/x/sync v0.14.0 h1:woo0S4Yywslg6hp4eUFjTVOyKt0RookbpAHG4c1HmhQ= +golang.org/x/sync v0.14.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= +golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug= +golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw= +golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k= +golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4= +golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA= +golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng= +golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU= +golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk= +golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= +google.golang.org/api v0.236.0 h1:CAiEiDVtO4D/Qja2IA9VzlFrgPnK3XVMmRoJZlSWbc0= +google.golang.org/api v0.236.0/go.mod h1:X1WF9CU2oTc+Jml1tiIxGmWFK/UZezdqEu09gcxZAj4= +google.golang.org/api v0.248.0 h1:hUotakSkcwGdYUqzCRc5yGYsg4wXxpkKlW5ryVqvC1Y= +google.golang.org/api v0.248.0/go.mod h1:yAFUAF56Li7IuIQbTFoLwXTCI6XCFKueOlS7S9e4F9k= +google.golang.org/api v0.249.0 h1:0VrsWAKzIZi058aeq+I86uIXbNhm9GxSHpbmZ92a38w= +google.golang.org/api v0.249.0/go.mod h1:dGk9qyI0UYPwO/cjt2q06LG/EhUpwZGdAbYF14wHHrQ= +google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2 h1:1tXaIXCracvtsRxSBsYDiSBN0cuJvM7QYW+MrpIRY78= +google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822 h1:oWVWY3NzT7KJppx2UKhKmzPq4SRe0LdCijVRwvGeikY= +google.golang.org/genproto/googleapis/api v0.0.0-20250603155806-513f23925822/go.mod h1:h3c4v36UTKzUiuaOKQ6gr3S+0hovBtUrXzTG/i3+XEc= +google.golang.org/genproto/googleapis/api v0.0.0-20250826171959-ef028d996bc1 h1:APHvLLYBhtZvsbnpkfknDZ7NyH4z5+ub/I0u8L3Oz6g= +google.golang.org/genproto/googleapis/api v0.0.0-20250826171959-ef028d996bc1/go.mod h1:xUjFWUnWDpZ/C0Gu0qloASKFb6f8/QXiiXhSPFsD668= +google.golang.org/genproto/googleapis/api v0.0.0-20250908214217-97024824d090 h1:d8Nakh1G+ur7+P3GcMjpRDEkoLUcLW2iU92XVqR+XMQ= +google.golang.org/genproto/googleapis/api v0.0.0-20250908214217-97024824d090/go.mod h1:U8EXRNSd8sUYyDfs/It7KVWodQr+Hf9xtxyxWudSwEw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 h1:fc6jSaCT0vBduLYZHYrBBNY4dsWuvgyff9noRNDdBeE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250826171959-ef028d996bc1 h1:pmJpJEvT846VzausCQ5d7KreSROcDqmO388w5YbnltA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250826171959-ef028d996bc1/go.mod h1:GmFNa4BdJZ2a8G+wCe9Bg3wwThLrJun751XstdJt5Og= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090 h1:/OQuEa4YWtDt7uQWHd3q3sUMb+QOLQUg1xa8CEsRv5w= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250908214217-97024824d090/go.mod h1:GmFNa4BdJZ2a8G+wCe9Bg3wwThLrJun751XstdJt5Og= +google.golang.org/grpc v1.72.2 h1:TdbGzwb82ty4OusHWepvFWGLgIbNo1/SUynEN0ssqv8= +google.golang.org/grpc v1.72.2/go.mod h1:wH5Aktxcg25y1I3w7H69nHfXdOG3UiadoBtjh3izSDM= +google.golang.org/grpc v1.75.0 h1:+TW+dqTd2Biwe6KKfhE5JpiYIBWq865PhKGSXiivqt4= +google.golang.org/grpc v1.75.0/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= +google.golang.org/grpc v1.75.1 h1:/ODCNEuf9VghjgO3rqLcfg8fiOP0nSluljWFlDxELLI= +google.golang.org/grpc v1.75.1/go.mod h1:JtPAzKiq4v1xcAB2hydNlWI2RnF85XXcV0mhKXr2ecQ= +google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= +google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= +google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= +google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw= +google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/main.go b/main.go index ee5e5ba..f8143b8 100644 --- a/main.go +++ b/main.go @@ -1,263 +1,104 @@ package main import ( - "bufio" "context" - "encoding/csv" - "encoding/json" - "flag" - "log" - "net/url" + _ "embed" + "log/slog" "os" - "path/filepath" - "sort" - "strings" - "sync" + "strconv" - "github.com/ndabAP/assocentity/v14" - "github.com/ndabAP/assocentity/v14/nlp" - "github.com/ndabAP/assocentity/v14/tokenize" -) + "github.com/ndabAP/entityscrape/cases" + "github.com/ndabAP/entityscrape/cases/isopf" + "github.com/ndabAP/entityscrape/cases/nsops" + "github.com/ndabAP/entityscrape/cases/rvomg" -func init() { - log.SetFlags(0) - flag.Parse() -} + "golang.org/x/sync/errgroup" +) var ( - gogSvcLocF = flag.String( - "google-svc-acc-key", - "", - "Google Clouds NLP JSON service account file, example: -google-svc-acc-key=\"~/google-svc-acc-key.json\"", - ) + logger = slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{ + Level: slog.LevelDebug, + })) + + ctx = context.Background() ) -func main() { - log.Println("reading articles and entities ...") - // Read - articles, err := readArticles("./source/articles.csv") - if err != nil { - log.Fatal(err) - } - entities, err := readEntities("./source/entities.txt") - if err != nil { - log.Fatal(err) - } +func init() { + slog.SetDefault(logger) - // Validate - if len(*gogSvcLocF) == 0 { - log.Fatal("missing google service account file") - } - if len(entities) == 0 { - log.Fatal("missing entities") + _, err := os.Stat("go.mod") + if os.IsNotExist(err) { + panic("must be executed in root") } - log.Printf("len(entities)=%d", len(entities)) - texts := accumTexts(articles) - if len(texts) == 0 { - log.Fatal("missing texts") + cwd, err := os.Getwd() + if err != nil { + panic(err.Error()) } - log.Printf("len(texts)=%d", len(texts)) - - log.Println("getting distances ...") - nlpTok := nlp.NewNLPTokenizer(*gogSvcLocF, nlp.AutoLang) - var wg sync.WaitGroup - for _, entities := range entities { - switch l := len(entities); { - case l > 10: - if err := scrape(texts, entities, nlpTok); err != nil { - log.Fatal(err) - } + cases.SetCorpusRootDir(cwd) - continue + gcloudSvcAccountKey := os.Getenv("GCLOUD_SERVICE_ACCOUNT_KEY") + if len(gcloudSvcAccountKey) == 0 { + panic("missing GCLOUD_SERVICE_ACCOUNT_KEY") + } + cases.GoogleCloudSvcAccountKey = gcloudSvcAccountKey - default: - // Use goroutine strategy + sampleRate := os.Getenv("SAMPLE_RATE") + if len(sampleRate) > 0 { + s, err := strconv.ParseUint(sampleRate, 10, 64) + if err != nil { + panic(err.Error()) } - - wg.Add(1) - - go func(entities []string) { - if err := scrape(texts, entities, nlpTok); err != nil { - log.Fatal(err) - } - - wg.Done() - }(entities) + if s > 100 { + panic("SAMPLE_RATE must be <= 100 or unset") + } + cases.SampleRate = s } - - wg.Wait() } -func scrape(texts, entities []string, tokenizer tokenize.Tokenizer) error { - log.Printf("entities=%v", entities) - - // First entity is primary by definition - entity := entities[0] - log.Printf("entity=%s", entity) - - l := log.New(os.Stderr, "entity="+entity+",", 0) +func main() { + study := os.Getenv("CASE_STUDY") - // Ignore articles without entity. This is a fuzzy search to spare the API - temp := texts[:0] - for _, text := range texts { - if strings.Contains(text, entity) { - temp = append(temp, text) + g, ctx := errgroup.WithContext(ctx) + g.Go(func() error { + if study != "isopf" { + return nil } - } - texts = temp - l.Printf("len(texts)=%d", len(texts)) - - var ( - poS = tokenize.ADJ | tokenize.ADP | tokenize.ADV | tokenize.CONJ | tokenize.DET | tokenize.NOUN | tokenize.NUM | tokenize.PRON | tokenize.PRT | tokenize.VERB - source = assocentity.NewSource(entities, texts) - ) - dists, err := assocentity.Distances( - context.Background(), - tokenizer, - poS, - source, - ) - if err != nil { - l.Fatal(err) - } - assocentity.Normalize(dists, assocentity.HumanReadableNormalizer) - assocentity.Threshold(dists, 0.1) - mean := assocentity.Mean(dists) - - l.Printf("len(mean)=%d", len(mean)) - - if len(mean) == 0 { - l.Print("no mean found, returning") - return nil - } - // Convert to slice to make it sortable - l.Println("converting to slice ...") - type meanVal struct { - dist float64 - tok tokenize.Token - } - meanVals := make([]meanVal, 0) - for tok, dist := range mean { - // TODO: Whitelist ASCII - meanVals = append(meanVals, meanVal{ - dist: dist, - tok: tok, - }) - } - - // Sort by closest distance - l.Println("sorting by pos and distance ...") - sort.Slice(meanVals, func(i, j int) bool { - if meanVals[i].tok.PoS != meanVals[j].tok.PoS { - return meanVals[i].tok.PoS < meanVals[j].tok.PoS - } - return meanVals[i].dist < meanVals[j].dist + // Recover for easier debugging. + defer func() { + if r := recover(); r != nil { + panic(r) + } + }() + return isopf.Conduct(ctx) }) - - // Top 10 per pos - l.Println("limit top 10 ...") - type topMeanVal struct { - Dist float64 `json:"distance"` - PoS string `json:"pos"` - Text string `json:"text"` - } - topMeanVals := make([]topMeanVal, 0) - poSCounter := make(map[tokenize.PoS]int) - for _, meanVal := range meanVals { - // Stop at 10 results per pos - if poSCounter[meanVal.tok.PoS] >= 10 { - continue + g.Go(func() error { + if study != "nsops" { + return nil } - // Ignore unusual missmatches - poS, ok := tokenize.PoSMapStr[meanVal.tok.PoS] - if !ok { - continue + defer func() { + if r := recover(); r != nil { + panic(r) + } + }() + return nsops.Conduct(ctx) + }) + g.Go(func() error { + if study != "rvomg" { + return nil } - topMeanVals = append(topMeanVals, topMeanVal{ - Dist: meanVal.dist, - PoS: poS, - Text: meanVal.tok.Text, - }) - - poSCounter[meanVal.tok.PoS] += 1 - } - l.Printf("len(topMeanVals)=%d", len(topMeanVals)) - - // Write top 10 to disk - l.Println("writing to disk ...") - file, err := json.MarshalIndent(&topMeanVals, "", " ") - if err != nil { - l.Fatal(err) - } - name := url.QueryEscape(strings.ToLower(entity)) - path := filepath.Join("web", "public", name+".json") - if err := os.WriteFile(path, file, 0600); err != nil { - l.Fatal(err) - } - return nil -} - -func readEntities(path string) (entities [][]string, err error) { - file, err := os.Open(path) - if err != nil { - return - } - defer file.Close() - - scanner := bufio.NewScanner(file) - for scanner.Scan() { - entities = append(entities, strings.Split(scanner.Text(), ",")) - } - return -} - -func readArticles(path string) (articles [][]string, err error) { - file, err := os.Open(path) - if err != nil { - return - } - defer file.Close() - - csvReader := csv.NewReader(file) - articles, err = csvReader.ReadAll() - return -} - -func accumTexts(articles [][]string) (texts []string) { - // For - // [ - // [ID1, DATE1, LINK1, TITLE1, SUBTILE1, TEXT1], - // [ID2, DATE2, LINK2, TITLE2, SUBTILE2, TEXT2], - // ... - // ] - for _, article := range articles[1:] { // Remove CSV header - // Or: text := article[5] - for idx, text := range article { - switch idx { - case - // article_id - 0, - // publish_date - 1, - // article_source_link - 2, - // title - 3, - // subtitle - 4: - continue - - // Text - case 5: - if len(text) > 0 { - texts = append(texts, text) - } + defer func() { + if r := recover(); r != nil { + panic(r) } - } + }() + return rvomg.Conduct(ctx) + }) + if err := g.Wait(); err != nil { + logger.Error(err.Error()) + os.Exit(1) } - return } diff --git a/parser/amnd.go b/parser/amnd.go new file mode 100644 index 0000000..b9e8089 --- /dev/null +++ b/parser/amnd.go @@ -0,0 +1,75 @@ +package parser + +import ( + "bytes" + "encoding/json" + "io" + "unicode" +) + +// AMND parses "Adverse Media News Dataset". +func AMND(r io.Reader, c chan []byte) chan error { + errs := make(chan error, 1) + go func() { + defer close(errs) + + decoder := json.NewDecoder(r) + if _, err := decoder.Token(); err != nil { + errs <- err + return + } + + var text, lang json.RawMessage + for decoder.More() { + token, err := decoder.Token() + if err != nil { + errs <- err + return + } + + // Key + k, ok := token.(string) + if !ok { + continue + } + + // Value + var v json.RawMessage + if err = decoder.Decode(&v); err != nil { + return + } + + switch k { + case "language": + lang = v + case "text": + text = v + } + } + + // Validate + if !bytes.Equal(lang, []byte(`"english"`)) { + errs <- ErrUnsupportedLang + return + } + + // Normalize + text = bytes.ReplaceAll(text, []byte("\\u"), []byte(" ")) + text = bytes.ReplaceAll(text, []byte("\\n"), []byte(" ")) + text = bytes.ReplaceAll(text, []byte("\\"), []byte(" ")) + text = bytes.ReplaceAll(text, []byte("\n"), []byte(" ")) + text = bytes.ReplaceAll(text, []byte("\t"), []byte(" ")) + text = bytes.TrimPrefix(text, []byte(`"`)) + text = bytes.TrimSuffix(text, []byte(`"`)) + text = bytes.Map(func(r rune) rune { + if unicode.IsPrint(r) { + return r + } + return -1 + }, text) + + c <- text + }() + + return errs +} diff --git a/parser/crftc.go b/parser/crftc.go new file mode 100644 index 0000000..58808ea --- /dev/null +++ b/parser/crftc.go @@ -0,0 +1,29 @@ +package parser + +import ( + "bufio" + "bytes" + "io" +) + +func CRFTC(r io.Reader, c chan []byte) chan error { + errs := make(chan error, 1) + go func() { + defer close(errs) + + scanner := bufio.NewScanner(r) + scanner.Scan() // Skip header + for scanner.Scan() { + spl := bytes.Split(scanner.Bytes(), []byte("|")) + if len(spl) < 2 { + continue + } + c <- spl[1] + } + if err := scanner.Err(); err != nil { + errs <- err + } + }() + + return errs +} diff --git a/parser/ds.go b/parser/ds.go new file mode 100644 index 0000000..7cb7e5a --- /dev/null +++ b/parser/ds.go @@ -0,0 +1,28 @@ +package parser + +import ( + "encoding/csv" + "io" +) + +func DS(r io.Reader, c chan []byte) chan error { + errs := make(chan error, 1) + go func() { + defer close(errs) + + reader := csv.NewReader(r) + reader.TrimLeadingSpace = true + + records, err := reader.ReadAll() + if err != nil { + errs <- err + return + } + + for _, r := range records[1:] { + c <- []byte(r[9]) + } + }() + + return errs +} diff --git a/parser/errors.go b/parser/errors.go new file mode 100644 index 0000000..397165c --- /dev/null +++ b/parser/errors.go @@ -0,0 +1,5 @@ +package parser + +import "errors" + +var ErrUnsupportedLang = errors.New("unsupported language") diff --git a/parser/etc.go b/parser/etc.go new file mode 100644 index 0000000..2efd5d9 --- /dev/null +++ b/parser/etc.go @@ -0,0 +1,28 @@ +package parser + +import ( + "bufio" + "bytes" + "io" +) + +func Etc(r io.Reader, c chan []byte) chan error { + errs := make(chan error, 1) + go func() { + defer close(errs) + + scanner := bufio.NewScanner(r) + var buf bytes.Buffer + for scanner.Scan() { + buf.Write(scanner.Bytes()) + buf.WriteRune(' ') + } + + c <- buf.Bytes() + if err := scanner.Err(); err != nil { + errs <- err + } + }() + + return errs +} diff --git a/parser/gpsc.go b/parser/gpsc.go new file mode 100644 index 0000000..3ac6a1b --- /dev/null +++ b/parser/gpsc.go @@ -0,0 +1,46 @@ +package parser + +import ( + "encoding/xml" + "fmt" + "io" + "regexp" + + "golang.org/x/net/html" +) + +// GPSC parses "German Political Speeches Corpus". +func GPSC(r io.Reader, c chan []byte) chan error { + spaceregex := regexp.MustCompile(`\s+`) + + errs := make(chan error, 1) + go func() { + defer close(errs) + + type ( + text struct { + Anrede string `xml:"anrede,attr"` + Rohtext string `xml:"rohtext"` + } + collection struct { + Texts []text `xml:"text"` + } + ) + + coll := collection{} + if err := xml.NewDecoder(r).Decode(&coll); err != nil { + errs <- err + return + } + for _, t := range coll.Texts { + text := fmt.Sprintf("%s %s", t.Anrede, t.Rohtext) + + text = html.UnescapeString(text) + text = spaceregex.ReplaceAllString(text, " ") + + c <- []byte(text) + } + }() + + return errs +} diff --git a/reports/.gitkeep b/reports/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/reports/nsops/germany.json b/reports/nsops/germany.json new file mode 100644 index 0000000..a87b711 --- /dev/null +++ b/reports/nsops/germany.json @@ -0,0 +1,82 @@ +[ + { + "word": [ + "Bundesrepublik", + "Federal Republic" + ], + "pos": "NOUN", + "n": 1345 + }, + { + "word": [ + "sein", + "be" + ], + "pos": "VERB", + "n": 987 + }, + { + "word": [ + "haben", + "have" + ], + "pos": "VERB", + "n": 317 + }, + { + "word": [ + "Standort", + "Location" + ], + "pos": "NOUN", + "n": 168 + }, + { + "word": [ + "Teil", + "Part" + ], + "pos": "NOUN", + "n": 116 + }, + { + "word": [ + "stehen", + "stand" + ], + "pos": "VERB", + "n": 112 + }, + { + "word": [ + "machen", + "make" + ], + "pos": "VERB", + "n": 102 + }, + { + "word": [ + "Einheit", + "Unit" + ], + "pos": "NOUN", + "n": 89 + }, + { + "word": [ + "leisten", + "afford" + ], + "pos": "VERB", + "n": 75 + }, + { + "word": [ + "Frankreich", + "France" + ], + "pos": "NOUN", + "n": 74 + } +] \ No newline at end of file diff --git a/reports/nsops/russia.json b/reports/nsops/russia.json new file mode 100644 index 0000000..ba88aab --- /dev/null +++ b/reports/nsops/russia.json @@ -0,0 +1,82 @@ +[ + { + "word": [ + "Банк", + "Bank" + ], + "pos": "NOUN", + "n": 539 + }, + { + "word": [ + "гражданин", + "citizen" + ], + "pos": "NOUN", + "n": 327 + }, + { + "word": [ + "территория", + "territory" + ], + "pos": "NOUN", + "n": 185 + }, + { + "word": [ + "Президент", + "President" + ], + "pos": "NOUN", + "n": 162 + }, + { + "word": [ + "Почта", + "Mail" + ], + "pos": "NOUN", + "n": 135 + }, + { + "word": [ + "Правительство", + "Government" + ], + "pos": "NOUN", + "n": 127 + }, + { + "word": [ + "экономика", + "economy" + ], + "pos": "NOUN", + "n": 71 + }, + { + "word": [ + "народ", + "people" + ], + "pos": "NOUN", + "n": 62 + }, + { + "word": [ + "регион", + "region" + ], + "pos": "NOUN", + "n": 55 + }, + { + "word": [ + "фонд", + "fund" + ], + "pos": "NOUN", + "n": 48 + } +] \ No newline at end of file diff --git a/reports/nsops/united_states.json b/reports/nsops/united_states.json new file mode 100644 index 0000000..93f082d --- /dev/null +++ b/reports/nsops/united_states.json @@ -0,0 +1,82 @@ +[ + { + "word": [ + "States", + "States" + ], + "pos": "NOUN", + "n": 30420 + }, + { + "word": [ + "Congress", + "Congress" + ], + "pos": "NOUN", + "n": 657 + }, + { + "word": [ + "be", + "be" + ], + "pos": "VERB", + "n": 569 + }, + { + "word": [ + "Code", + "Code" + ], + "pos": "NOUN", + "n": 532 + }, + { + "word": [ + "Senate", + "Senate" + ], + "pos": "NOUN", + "n": 484 + }, + { + "word": [ + "Service", + "Service" + ], + "pos": "NOUN", + "n": 406 + }, + { + "word": [ + "Army", + "Army" + ], + "pos": "NOUN", + "n": 384 + }, + { + "word": [ + "have", + "have" + ], + "pos": "VERB", + "n": 278 + }, + { + "word": [ + "House", + "House" + ], + "pos": "NOUN", + "n": 257 + }, + { + "word": [ + "Court", + "Court" + ], + "pos": "NOUN", + "n": 256 + } +] \ No newline at end of file diff --git a/reports/rvomg/hip_hop.json b/reports/rvomg/hip_hop.json new file mode 100644 index 0000000..2842aea --- /dev/null +++ b/reports/rvomg/hip_hop.json @@ -0,0 +1 @@ +[{"word":["be","be"],"n":227},{"word":["get","get"],"n":115},{"word":["know","know"],"n":64},{"word":["keep","keep"],"n":35},{"word":["fight","fight"],"n":30},{"word":["cause","cause"],"n":29},{"word":["fuck","fuck"],"n":29},{"word":["make","make"],"n":29},{"word":["see","see"],"n":28},{"word":["let","let"],"n":26}] diff --git a/reports/rvomg/pop.json b/reports/rvomg/pop.json new file mode 100644 index 0000000..5f0cc83 --- /dev/null +++ b/reports/rvomg/pop.json @@ -0,0 +1 @@ +[{"word":["be","be"],"n":219},{"word":["want","want"],"n":38},{"word":["know","know"],"n":28},{"word":["tell","tell"],"n":25},{"word":["read","read"],"n":23},{"word":["get","get"],"n":23},{"word":["say","say"],"n":20},{"word":["let","let"],"n":19},{"word":["come","come"],"n":19},{"word":["clap","clap"],"n":18}] diff --git a/reports/rvomg/rock_and_roll.json b/reports/rvomg/rock_and_roll.json new file mode 100644 index 0000000..4bdae94 --- /dev/null +++ b/reports/rvomg/rock_and_roll.json @@ -0,0 +1 @@ +[{"word":["be","be"],"n":114},{"word":["keep","keep"],"n":30},{"word":["do","do"],"n":27},{"word":["let","let"],"n":25},{"word":["tell","tell"],"n":23},{"word":["love","love"],"n":22},{"word":["same","same"],"n":19},{"word":["fuck","fuck"],"n":19},{"word":["come","come"],"n":18},{"word":["go","go"],"n":18}] diff --git a/source/articles.csv b/source/articles.csv deleted file mode 100644 index e59dd2a..0000000 --- a/source/articles.csv +++ /dev/null @@ -1,3825 +0,0 @@ -article_id,publish_date,article_source_link,title,subtitle,text, -1,2017/2/7,http://abcnews.go.com/Politics/pence-break-tie-betsy-devos-confirmation-vote-today/story?id=45310061,"Betsy DeVos Confirmed as Education Secretary, With Pence Casting Historic Tie-Breaking Vote",,"Michigan billionaire education activist Betsy DeVos was confirmed today to serve as the secretary of education in President Trump's administration, after Vice President Mike Pence cast a tie-breaking vote in the Senate. The Senate voted on DeVos""?highly contentious nomination this afternoon, and the tally was split evenly, requiring Pence to use his authority as president of the upper chamber of Congress to break the impasse. This was the first time that a vice president has broken a tie to confirm a Cabinet nominee. Pence read the vote count 50-50 and then voted himself, rendering the tally 51-50. The day before the vote, Democrats staged a 24-hour marathon of speeches, with more than 30 lawmakers taking to the floor to urge at least one additional Republican to vote against DeVos and block her confirmation. ""It is hard to imagine a worse choice,""?Sen. Elizabeth Warren, D-Mass., said before she read letters from constituents urging her to vote no. DeVos stirred up vehement opposition from teachers""?unions and all 48 Senate Democrats. Many cited concerns about her support of school vouchers, which critics believe will weaken public schools, and her lack of experience, since she never attended or worked in the public education system. Others cited her lack of familiarity with a landmark law protecting the education needs of disabled children. She was panned for a gaffe during her confirmation hearing, when she hedged on an answer about guns in schools by saying they might be needed in states like Wyoming to defend against ""potential grizzlies.""?DeVos' nomination drew above-average negative reactions from the public, with voters flooding Senate phone lines and email accounts in recent weeks. Sen. Chris Van Hollen, D-Md., said his office received 14,000 calls about DeVos. In addition to the entire Democratic caucus, two moderate Republicans, Sens. Susan Collins of Maine and Lisa Murkowski of Alaska announced they would not support DeVos. During a speech announcing her opposition, Collins said DeVos""?focus on charters and vouchers ""raises the question of whether or not she fully appreciates that the secretary of education's primary focus must be on helping states and communities, parents, teachers, school board members and administrators strengthen our public schools.""?Before the confirmation vote, the Senate Health, Education, Labor and Pensions Committee voted along party lines, 12-11, to refer DeVos""?nomination to the full Senate. ABC News""?Morgan Winsor contributed to this report.", -2,2017/2/7,http://abcnews.go.com/Politics/wireStory/melania-trump-white-house-millions-brand-45327337,Melania Trump Says White House Could Mean Millions for Brand,,"First lady Melania Trump has said little about what she intends to do with her prominent position. But in new court documents, her lawyers say that the ""multi-year term"" during which she ""is one of the most photographed women in the world"" could mean millions of dollars for her personal brand. While the new documents don't specifically mention her term as first lady, the unusual statement about her expected profits drew swift condemnation from ethics watchdogs as inappropriate profiteering from her high-profile position, which is typically centered on public service. The statement came Monday in a libel lawsuit the first lady re-filed in a state trial court in Manhattan. Trump has been suing the corporation that publishes the Daily Mail's website over a now-retracted report that claimed she once worked as an escort. In the filing Monday, Trump's lawyers argued that the report was not only false and libelous, but also damaged her ability to profit off her high profile and affected her business opportunities. Trump ""had the unique, once-in-a-lifetime opportunity, as an extremely famous and well-known person, as well as a former professional model, brand spokesperson and successful businesswoman, to launch a broad-based commercial brand in multiple product categories, each of which could have garnered multi-million dollar business relationships for a multi-year term during which plaintiff is one of the most photographed women in the world,"" the lawsuit said. The products could have included apparel, accessories, jewelry, cosmetics, hair care and fragrance, among others, the suit says. The first lady is seeking compensatory and punitive damages of at least $150 million. Richard Painter, who advised former President George W. Bush on ethics, said the language in the lawsuit shows Melania Trump is engaging ""in an unprecedented, clear breach of rules about using her government position for private gain. This is a very serious situation where she says she intends to make a lot of money. That ought to be repudiated by the White House or investigated by Congress."" Painter is part of a group of attorneys suing the president for an alleged violation of a constitutional clause that prohibits presidents from receiving foreign gifts or payments. In response to questions from The Associated Press, Charles Harder, Melania Trump's attorney, said ""the first lady has no intention of using her position for profit and will not do so. It is not a possibility. Any statements to the contrary are being misinterpreted."" Harder did not respond to a follow-up question about what the lawsuit means by ""once-in-a-lifetime opportunity."" To Painter and others, there is no ambiguity. ""She's not talking about the future,"" Painter said. ""She's talking about earning money now."" Scott Amey, general counsel of the Washington watchdog Project on Government Oversight, said it is ""another example of the first family blurring the line between public service and private business interests."" Trump previously filed the lawsuit against Mail Media Inc. in Maryland, but a judge earlier this month ruled the case was filed in the wrong court. The lawsuit is now filed in New York, where the corporation has offices. Trump also had sued blogger Webster Tarpley for reporting the unsubstantiated rumors. Trump filed the lawsuit in Maryland after both Tarpley and the Daily Mail issued retractions. On Tuesday, Melania Trump's attorneys said they'd settled the Maryland case against Tarpley. ""Mr. Tarpley has issued the attached retraction and apology to Mrs. Trump and her family, and agreed to pay her a substantial sum as a settlement,"" Harder's office said in a statement. Melania Trump's previous work in marketing has drawn scrutiny before. On Inauguration Day, the official White House biography for Melania Trump originally included an explicit reference to her jewelry collection, which it noted was sold on the home-shopping channel QVC. By the next day, that bio had been edited and simplified to say that she had ""launched her own jewelry collection."" A spokeswoman for the first lady said the website was updated out of ""an abundance of caution"" and that the jewelry line is no longer available in any case. President Donald Trump continues to financially benefit from his global business empire, breaking from past practice. Previous presidents and their families have divested from business interests and placed their holdings in a blind trust, although there is no legal requirement to do so. Trump handed daily management of the real estate, property management and licensing to his adult sons and a longtime Trump Organization employee.", -3,2017/2/7,http://abcnews.go.com/Politics/wireStory/trump-fears-fraud-gop-eliminates-election-commission-45328264,"As Trump Fears Fraud, GOP Eliminates Election Commission",,"A House committee voted on Tuesday to eliminate an independent election commission charged with helping states improve their voting systems as President Donald Trump erroneously claims widespread voter fraud cost him the popular vote. The party-line vote came less than two days after Trump vowed to set up a White House commission helmed by Vice President Mike Pence to pursue his accusations of election fraud. ""We're going to look at it very, very carefully,"" Trump said of voter fraud in an interview with Fox News that aired Sunday. ""It has to do with the registration, and when you look at the registration and you see dead people that have voted."" Reports that Trump told congressional leaders in a meeting last month that 3 to 5 million ballots were cast illegally during the 2016 race were met with discomfort on Capitol Hill. While top Republicans have refused to disavow his charges of election fraud, they haven't pushed for action on the issue, which remains a low priority for congressional leadership. The vote in the House Administration Committee underscored, once again, the political differences between the Republican president and the party's rank-and-file. The GOP majority on the committee eliminated the Election Assistance Commission, which was created by Congress after the 2000 Florida recount to upgrade voting technology and provide election-related information to federal entities, state officials and election administrators. Republicans say the commission is a prime example of government waste. They've been introducing legislation to end the commission for years with little success. ""If we're looking at reducing the size of government this is a perfect example of something that can be eliminated,"" said Rep. Gregg Harper, the committee chairman. ""We don't need fluff."" Harper said he hadn't spoken to Trump about the legislation. ""He's certainly welcome to call me at any time,"" he said. The bill was opposed by committee Democrats and voting rights groups, who argued that the federal agency plays a vital role in protecting elections from hacking and other types of interference. ""At a time when the vast majority of the country's voting machines are outdated and in need of replacement, and after an election in which foreign criminals already tried to hack state voter registration systems, eliminating the EAC poses a risky and irresponsible threat to our election infrastructure,"" said Wendy Weiser, the democracy program director at the Brennan Center for Justice. The committee also voted to terminate the public financing system, which provides major party presidential nominees a lump sum grant of roughly $94.14 million in the general election. But by accepting the grant, a candidate may not raise any additional funds and is severely limited in how much of his own money he can give or lend to his campaign. President Barack Obama effectively ended the practice of candidates taking general election public financing in 2008, when he chose not to accept it. His Republican rival John McCain took the grant that year and was swamped by the Obama campaign's spending. Neither Hillary Clinton nor Trump accepted public financing this year. Money for the public financing of campaigns is collected through voluntary $3 checkoffs on taxpayers' returns. The checkoffs do not affect how much money a taxpayer owes. The legislation would devote $63 million of the available funds to pediatric cancer research. The remainder would be returned to the Treasury for deficit reduction. It is not clear if the full House will vote on the measures.", -4,2017/2/7,http://abcnews.go.com/Politics/appeals-court-decide-challenge-trumps-immigration-executive-order/story?id=45325524,Appeals Court to Decide on Challenge to Trump's Immigration Executive Order,,"This afternoon, three federal judges from the 9th Circuit Court of Appeals will hear oral arguments in the emergency legal challenge to President Trump's executive order that temporarily bars immigration and travel to the U.S. for people from seven Muslim-majority countries and for refugees. The hearing, which will be conducted over the phone at 3 p.m. Pacific time, will allow each side to give 30-minute arguments. The plaintiffs in this appeal, Washington and Minnesota, will state their case, as will the Department of Justice. The public can listen to the hearings live on the 9th Circuit website. The judges are expected to rule on the future of the executive order after hearing oral arguments. While their decision won't determine the constitutionality of Trump's immigration ban, it will determine whether the suspension of the executive order, ruled by U.S. District Court Judge James Robart, will remain. The two states have argued that Trump's order was likely to cause ""irreparable harm"" to businesses, schools, family relations and state residents' freedom to travel and is unconstitutional because it discriminates on the basis of religion. The Justice Department said the travel restrictions are a matter of national security and the administration was excluding people from countries with ties to terrorism, not people of a certain religion. Today, Trump suggested that the legal battle between the two states and the Justice Department could make it all the way to the Supreme Court. ""We're going to take it through the system,"" said Trump. ""It's very important for the country, regardless of me or whoever succeeds at a later date."" On Capitol Hill today, Secretary of >Homeland Security John Kelly defended the immigration executive order, calling it ""lawful and constitutional."" Only a week old, the order has sparked protests and outcry across the country. The legal community has been grappling with the order, some travelers have been delayed, and others are wondering if they will be allowed previously approved entry into the United States. The order, called Protecting the Nation From Foreign Terrorist Entry Into the United States, bars all people with immigrant and nonimmigrant visas from Iraq, Iran, Libya, Somalia, Sudan, Syria and Yemen from coming to the U.S. for 90 days. It also prevents the entry of refugees from anywhere in the world for 120 days, with an indefinite ban on refugees from the war-torn country of Syria. The Monday after Trump signed his order, Washington state filed a legal challenge that was joined by Minnesota. Robart, an appointee of President George W. Bush, on Friday issued a temporary restraining order, which covers the entire U.S., blocking the travel ban. Trump immediately took issue with the move, tweeting on Saturday, ""The opinion of this so-called judge ... is ridiculous and will be overturned!"" On Saturday the Department of Justice, challenging Robart's ruling, turned to the powerful 9th Circuit Court of Appeals in San Francisco to try to immediately lift the restraining order while the appeal was being considered. The appeals court denied the request. The outcome of today's hearing with the 9th Circuit could determine ""?at least temporarily ""?the fate of thousands of refugees, immigrants and travelers in the United States and abroad hoping to enter the U.S.", -5,2017/2/7,http://abcnews.go.com/US/23-states-winter-weather-alerts-us-braces-severe/story?id=45319196,At Least 4 Tornadoes Reported in Southeast Louisiana,,"At least four tornadoes touched down in Louisiana today, causing damage and injuring locals. Tornadoes were reported in New Orleans, Baton Rouge, Donaldsonville, Ponchatoula and Killian, according to ABC News meteorologist Melissa Griffin. Tornado watches were in effect for parts of Louisiana, Mississippi, Alabama and the Florida panhandle. The tornado watch in Louisiana and Mississippi expired after 2 p.m., when the storms moved east, Griffin said. The tornado watch in Alabama and Florida is set to expire at 6 p.m. Severe storms are expected in cities such as Gulfport, Biloxi, Mobile and Pensacola. There could still be isolated and severe storms in North and South Carolina. As of Tuesday morning, at least 23 U.S. states were under winter weather alerts, and a tornado watch has been issued for parts of the Southeast as most of the country braces for severe weather this week. ""We are in a very active weather pattern all across the country, from California to New York,""?ABC News senior meteorologist Max Golembo said. An atmospheric river, which draws massive amounts of water vapor from the Pacific Ocean, has taken aim at California, where the National Weather Service has issued flash flood and flood watches through Friday. Copious rainfall is in the forecast for the West Coast until the end of the week, potentially bringing floods, mudslides and debris flows. ABC News""?weather team predicts more than a half a foot of rain in Central to Northern California over the next several days. Additional rain is expected for Portland, Oregon, and Seattle. ""California will see waves of moisture on and off through Friday,""?Golembo said. Meanwhile, thunderstorms and damaging winds are expected to rattle Southern states, from the Gulf Coast to the Ohio Valley. The National Weather System has issued a tornado watch for portions of southern Louisiana, southern Mississippi and other parts of the region's coast until 2 p.m. local time. ""severe storms are firing up already in Louisiana and Mississippi,""?Golembo said. ""damaging winds are the biggest threat this morning.""? Northeastern states can expect to see rain, snow and ice this week, according to ABC News meteorologists. The first of two storms arrives today, bringing rain and ice for much of the region, with potential snowfall in Boston and other parts of New England. The icy weather moved through the Hudson Valley into southern New England this morning. By this afternoon, the snow and ice in Boston will transition to heavy rain, with some snow and ice lingering in New England and the upper Hudson Valley near Albany, New York. ABC News meteorologists said a second storm will move into the Northeast on Thursday morning, bringing mostly snow to New York City and Boston. Heavy snowfall is in the forecast until Thursday afternoon. Some weather models are showing snow farther south in Philadelphia and Washington, D.C. ""This could be a plowed event for major Northeast cities,""?Golembo said. ""stay tuned. This is a changing forecast.""? ", -6,2017/2/7,http://abcnews.go.com/International/wireStory/mother-backpacker-slain-australia-criticizes-trump-45322081,Mother of Backpacker Slain in Australia Criticizes Trump,,"The mother of a backpacker slain in an Australian hostel wrote an open letter to U.S. President Donald Trump, rejecting the decision to label her daughter's death as a ""terror attack."" The August slayings of Mia Ayliffe-Chung, 20, and fellow Briton Tom Jackson, 30, were on a list of 78 attacks the White House says were ""executed or inspired by"" the Islamic State terror group ""?and under-reported by the media. Rosie Ayliffe says the possibility of terrorism was discounted early in the investigation. ""My daughter's death will not be used to further this insane persecution of innocent people,"" she wrote. Police in Australia allege that suspect Smail Ayad shouted ""Allahu akbar"" ""?an Arabic phrase meaning ""God is great"" ""?during the attack, but said there was no indication the assault was motivated by extremism. They have said they are investigating whether Ayad, who is French and was 29 years old at the time of killing, had a romantic obsession with Ayliffe-Chung. The attack took place in front of dozens of backpackers at a hostel in northern Queensland. Ayliffe-Chung was found dead at the scene. Jackson tried to stop the attack and was fatally wounded. ""This vilification of whole nation states and their people based on religion is a terrifying reminder of the horror that can ensue when we allow ourselves to be led by ignorant people into darkness and hatred,"" Ayliffe wrote.", -7,2017/2/7,http://abcnews.go.com/Politics/trumps-labor-secretary-pick-andrew-puzder-admits-employing/story?id=45314474,Trump's Labor Secretary Pick Andrew Puzder Admits to Employing Undocumented Worker,,"Donald Trump's pick for labor secretary, Andrew Puzder, admitted Monday night that he and his wife employed an undocumented worker for years, according to a statement. ""My wife and I employed a housekeeper for a few years, during which I was unaware that she was not legally permitted to work in the U.S.,"" Puzder, a fast food executive, said in the statement. ""When I learned of her status, we immediately ended her employment and offered her assistance in getting legal status. We have fully paid back taxes to the IRS and the state of California and submitted all required paperwork regarding her employment."" His hearing has been stalled, but he still plans to pursue confirmation for the position. Puzder is the CEO of CKE Restaurants Inc., the parent company of Hardee's and Carl's Jr. ", -8,2017/2/7,http://abcnews.go.com/International/wireStory/iran-president-nuclear-deal-blueprint-disputes-45316889,Iran's Top Leader Mocks 'Newcomer' Trump,,"Iran's supreme leader said Tuesday that ""newcomer"" President Donald Trump had shown the ""real face"" of the United States, after the American leader accused Iran of being ungrateful for sanctions relief approved by the Obama administration and vowed a tougher stance. Last week, after Iran tested a ballistic missile, Trump tweeted that the country was ""playing with fire,"" saying they ""don't appreciate how 'kind' President (Barack) Obama was to them. Not me!"" Ayatollah Ali Khamenei, who makes the final decisions on all major policies in Iran, appeared to respond to the tweet in a remarks carried by State TV. ""Why should we be thankful to the previous U.S. administration?"" he said. ""Because it imposed anti-Iranian sanctions? Because of the extremist Islamic State group? Setting the region on fire in Iraq and Syria?"" He went on to mock Trump, saying: ""We are thankful to Mr. Newcomer, of course, since he has shown the real face of the U.S. and proved what Iran has said for 38 years about the political, economic, social and moral corruption of the U.S. government."" He added that the Iranian people ""are not afraid of any threat."" Trump has repeatedly criticized the 2015 nuclear agreement between Iran, the U.S. and five other world powers, in which Tehran agreed to curb its uranium enrichment in exchange for the lifting of international sanctions, but he has not said what he plans to do about it. His administration said Iran was ""on notice"" over the missile test, and imposed new sanctions on more than two dozen Iranian companies and individuals. Iranian President Hassan Rouhani, a moderate who has worked to improve relations with the West, said earlier Tuesday that the nuclear agreement could serve as a blueprint for resolving other Middle East disputes. As an example, he pointed to Russian-led negotiations in Kazakhstan aimed at firming up a shaky Syrian cease-fire and paving the way for the revival of peace talks to end that country's nearly six-year civil war. Iran and Russia are close allies of Syrian President Bashar Assad, while the U.S. and other Western countries support the rebels fighting to topple him.", -9,2017/2/7,http://abcnews.go.com/International/wireStory/eu-britain-pay-ordered-leaving-45319307,EU to Britain: Pay Up for What You Ordered Before Leaving,,"The European Union is warning Britain that any financial commitment it has taken on as a member ""should be honored in full,"" even well after it leaves as a result of the Brexit negotiations. Estimates have been made that the bill at the exit door could go as high as 60 billion euros ($64 billion). ""This will be an essential element of the negotiations on the orderly separation,"" EU Commission spokesman Margaritis Schinas said Tuesday. Otherwise, he said, it would be like going to a pub with 27 friends, ordering a round and leaving while the party continues. ""You still need to pay for the round you ordered,"" Schinas said.", -10,2017/2/7,http://abcnews.go.com/US/multi-state-manhunt-southeast-intensifies-alleged-murderer-accomplice/story?id=45320369,Multi-State Manhunt in Southeast Intensifies for Alleged Murderer and Accomplice,,"A manhunt is intensifying in the Southeast for alleged killer William ""Billy"" Boyette and his alleged accomplice Mary Rice, who are on the run and considered armed and dangerous after the deaths of three women in the Florida panhandle area. In Escambia County, Florida -- where uniformed and plain clothed officers are increasing patrols -- the sheriff's office on Monday called Boyette, 44, and Rice, 37, moving targets, saying they are believed to be moving through wooded areas and may be along the Florida and Alabama border. U.S. Marshals from across the country, along with bloodhounds and helicopters, are taking part in the search, officials said this morning. ""We have a killer in our midst,"" said Escambia County Sheriff David Morgan. The first reported crime was on Jan. 31, in Santa Rosa County, Florida, when Alicia Greer, 30, and Jacqueline Moore, 39, were found shot to death at an inn, Morgan said. Boyette and Rice are both suspects, The Associated Press reported. Greer, a mother of three, was allegedly in an abusive relationship with Boyette, the victim's father told ABC affiliate WEAR in Pensacola. Authorities say the other victims didn""t appear to have any connection to Boyette. On Feb. 3, in nearby Baldwin County, Alabama, 52-year-old Peggy Broz was discovered shot to death in her driveway, Morgan said. Officials said today that both Boyette and Rice were involved in the fatal shooting. According to AP, investigators said the duo then stole Broz' car. On Feb. 6, in Escambia County, Florida, 28-year-old Kayla Crocker was shot and injured during a home invasion, they added. Crocker's white Chevrolet Cobalt was stolen, and Morgan said that video surveillance showed the duo took the car. We just received these recent pictures of Boyette and Rice. Now believed to be traveling in a white 2006 Chevrolet Cobalt Fl Tag #9613BJ. pic.twitter.com/mDQhvp48aG Santa Rosa County, Florida, Sheriff Bob Johnson this morning said there is no doubt Rice is a ""willing participant"" in the crime-spree. Regarding Boyette, Johnson said, ""it's just a matter of time"" before he's caught. The pair were last seen in west Escambia County, Alabama, he said. ""Sooner or later he's going to make a mistake and when he does were gonna pounce on him,"" Johnson said. ""Hopefully we can get to him before he does anything stupid again."" The Associated Press contributed to this report.", -11,2017/2/7,http://abcnews.go.com/Health/flu-takes-toll-nyc-children-reported-dead-seasonal/story?id=45320883,Flu Takes a Toll in NYC With 4 Children Reported Dead in Seasonal Outbreak,,"The flu season has been particularly rough in New York City this year with four pediatric deaths from the virus reported in the city, all in January, according to New York State Health Department. The flu has been spreading across the country, with the U.S. Centers for Disease Control and Prevention seeing epidemic levels of flu activity late last month. There have been 15 flu-related pediatric deaths in the nation during this current flu season, the CDC reported last week. New York, New Jersey and Pennsylvania all reported high levels of flu-like activity, according to a CDC flu report last week. Dr. William Schaffner, an infectious disease expert at Vanderbilt University Medical Center, said while the deaths are tragic, the New York cases are not unusual for the flu season. The New York State Department of Health did not disclose the ages of the children or whether they had been vaccinated or had an underlying condition that would have put them at additional risk for complications. ""Every year in our pediatric emergency room come children who are otherwise clearly healthy and they are seriously ill with the flu,"" Schaffner said of Vanderbilt. ""The lesson is that flu can strike even healthy children."" During the previous flu season, a total of 89 pediatric deaths related to the flu virus were reported in the U.S., according to the CDC. Public health experts have been concerned about vaccination rates since pediatricians may have had difficulty getting some children to get vaccinated against the flu if they have an aversion to needles, Schaffner noted. While in the past doctors could vaccinate needle-averse children with a flu mist vaccine, they were advised not to use the flu nasal spray this year, since it was found less effective than a vaccine injection. ""It's clear that the substantial majority of children who die from influenza every year have not been vaccinated,"" Schaffner said, clarifying that he was speaking generally and not about the recent deaths in New York. Flu can cause symptoms of headache, fever, joint pain and cough. The seasonal flu generally spreads across the U.S. from November till March, with the peak number of cases often occurring in February. The number of people affected every year can vary widely, but generally, the CDC reports that ""millions of people are sickened, hundreds of thousands are hospitalized and thousands or tens of thousands of people die from flu every year."" Children under the age of 1 are at increased likelihood of developing complications if they contract the flu.", -12,2017/2/7,http://abcnews.go.com/International/wireStory/romania-president-crisis-45317513,Romania Protests Endure as President Says Country in Crisis,,"Romania's president told lawmakers Tuesday that the country is in a ""fully-fledged"" political crisis, after hundreds of thousands demonstrated against a government measure that would weaken the country's anti-corruption drive. In an address to Parliament, President Klaus Iohannis, a critic of the two-month-old government, said the majority of Romanians now believed the country was going in the wrong direction. ""Romania needs a government that is transparent, which governs predictably by the light of day, not sneakily at night,"" the president said, referring to the late hour the government passed an emergency ordinance last week aimed at decriminalizing some forms of official corruption. The move ""?which bypassed Parliament and was not signed off by Iohannis, who has limited powers ""?ignited the biggest protests seen since communism ended in the country in 1989. As a result, the government will now seek to introduce the plan in Parliament. Thousands gathered for the eighth consecutive evening in Victory Square outside the government offices, shouting ""Social Democratic Party, the red plague!"" and ""Resign!"" In smaller numbers, about 2,000 protesters gathered outside the presidential palace yelling ""Get out, you traitor!"" Iohannis, who was elected in 2014 by direct vote, was chairman of the opposition Liberal Party. He quit the party that year to stand as president. He has been critical of the government headed by Prime Minister Sorin Grindeanu, which came into being after the December parliamentary elections. The government ""has been saying publicly I can't stomach the result of the vote ... that I'd overturn a legitimate government,"" Iohannis said. ""That's false. You won, now govern and legislate, but not at any price."" Some lawmakers booed and shouted ""shame on you!"" at Iohannis and walked out. Other lawmakers cheered. Despite the crisis, Iohannis said Romania didn't need early elections, a view the government shares. Liviu Dragnea, chairman of the governing Social Democratic Party, and Senate speaker Calin Popescu Tariceanu refused to greet the president when he arrived at Parliament. In his speech, Iohannis pressed ahead with an earlier initiative to hold a referendum on another government initiative to pardon prisoners. Critics say the proposal will help government allies convicted of corruption. Dragnea, the main power broker behind the government, expressed disappointment Iohannis did not deliver a ""speech of unity,"" and said ""he should leave the government alone, to govern.""", -13,2017/2/7,http://abcnews.go.com/US/wireStory/hillary-clinton-releases-video-statement-future-female-45318123,Hillary Clinton Releases Video Statement: 'Future Is Female',,"Hillary Clinton says ""the future is female"" in a new video statement. The former Democratic presidential nominee cites as an example the millions of demonstrators who took part in last month's Women's March. The video was made for the MAKERS Conference, a California gathering focused on women's leadership. She says the world needs ""strong women to step up and speak out."" She asks conference attendees to set an example for women and girls who are ""worried about what the future holds"" and whether women's ""rights, opportunities and values will endure."" The three-day MAKERS Conference began Monday and includes other high-profile speakers from politics, Hollywood and business.", -14,2017/2/7,http://abcnews.go.com/Politics/homeland-security-secretary-john-kelly-defends-travel-ban/story?id=45322742,Homeland Security Secretary John Kelly Defends Travel Ban but Regrets Quick Rollout,,"In his first appearance before Congress as secretary of Homeland Security, John Kelly called President Trump's executive order on immigration ""lawful and constitutional"" but said he should have delayed the order's rollout ""just a bit"" so that members of Congress could be prepared. ""The thinking was to get it out quick so that potentially people that might be coming here to harm us would not take advantage of some period of time that they could jump on an airplane and get here,"" Kelly said. He argued that the order, which blocks travelers from seven Muslim-majority nations from entering the country, ""will prevail [in court] and be able to take the steps necessary to protect our nation."" Kelly repeatedly disputed that the executive order is a Muslim ban, insisting it's just a ""pause"" based on security concerns. He said five of the seven countries named in the order are ""nearly failed states"" and four of them don't have U.S. embassies. ""So I'm at a total loss to understand how we can vet people from various countries when in at least four of those countries we don't even have an embassies,"" he said. Earlier in the hearing, Rep. Bennie Thompson, D-Miss., asked Kelly to provide information on any ""bad people"" who have been let into the U.S. since a court halted the executive order. ""Let's just say, for instance, a person who is trying to get to the United States to do some harm, some terrorist attack, is coming in during this period that the courts put a stay on our enforcement. We won't know that until an individual who's a bad person, until they do something bad,"" Kelly said. ""But it's entirely possible that someone that's coming in, whether it's during this stay court action or previous to this, they intend to do us harm."" ""But you don't have any proof at this point?"" Thompson followed up. ""Not until the boom,"" Kelly said. When asked to clarify, Kelly responded, ""Not until they act to blow something up or go into a mall and kill people."" He continued, ""The vetting on the other end, in those seven countries, are suspect. And Mr. Trump, and certainly in my view, we have to do a pause, which he ordered. Now is under court action, so that we can take a look at what we're doing on the other end. I believe the vetting on the other end right now is not adequate to protect the nation."" ABC News' Morgan Korn contributed to this report.", -15,2017/2/7,http://abcnews.go.com/Politics/times-kellyanne-conway-referenced-bowling-green-massacre-attack/story?id=45311574,2 Other Times Kellyanne Conway Referred to Bowling Green 'Massacre' or 'Attack',,"Last week senior Trump adviser Kellyanne Conway came under fire for referring to a Bowling Green ""massacre""?or ""attack"" ""?an incident that never happened ""?to defend his controversial executive order temporarily halting immigration and refugees from seven Muslim-majority nations. Although she later said she misspoke, the Feb. 2 interview wasn""t the first time Conway made the reference. Cosmopolitan.com is reporting that she also made inaccurate comments about attacks in Bowling Green as early as Sunday, Jan. 29, when she said President Barack Obama implemented a similar action in 2011. ""He did. It's a fact,""?Conway said in remarks not initially published by Cosmopolitan.com. ""Why did he do that? He did that for exactly the same reasons. He did that because two Iraqi nationals came to this country, joined ISIS, traveled back to the Middle East to get trained and refine their terrorism skills and come back here and were the masterminds behind the Bowling Green massacre of taking innocent soldiers""?lives away.""?And in a Jan. 29 interview with TMZ, Conway said two Iraqi men were the ""masterminds""?behind a ""Bowling Green attack""?on American troops. ""President Obama suspended the Iraq refugee program for six months in 2011, and no one certainly covered ""?I think nobody noticed,""?she told TMZ. ""He did that because, I assume, there were two Iraqis who came here, got radicalized, joined ISIS and then were the masterminds behind the Bowling Green attack on our brave soldiers.""?In response to criticism of her citing a nonexistent Bowling Green attack or massacre, Conway released a statement, explaining that she misspoke. ""I meant to say masterminds or terrorists and not massacre,""?Conway said in the statement. ""It does not detract from the evil they perpetrated and the evil that others may wish to perpetrate if they lie about why they are here.""?Her comments about Bowling Green began garnering attention shortly after her interview with MSNBC's Chris Matthews aired Thursday night. ""I bet it's brand-new information to people that President Obama had a six-month ban on the Iraqi refugee program after two Iraqis came here to this country, were radicalized, and they were the masterminds behind the Bowling Green massacre,""?Conway told Matthews. ""Tost people don""t know that because it didn""t get covered.""? She later said she was referring to the ""Bowling Green terrorists""?ABC News first reported on in 2013. On @hardball @NBCNews @MSNBC I meant to say ""Bowling Green terrorists"" as reported here: https://t.co/nB5SwIEoYI The story was about two Iraqi refugees who plotted to attack Americans and who later admitted in court to attacking U.S. troops in Iraq. The two refugees lived in Bowling Green, Kentucky, but they never committed a massacre or any attacks in Bowling Green, as Conway said.", -16,2017/2/7,http://abcnews.go.com/Politics/trump-dishonest-press-report-terror/story?id=45306486,Trump Says 'Very Dishonest Press Does Not Want to Report' on Terror,,"President Trump on Monday lambasted the ""dishonest press"" for what he says is an unwillingness to report on terrorist attacks. ""We have seen what happened in Paris, Nice, all over Europe,"" Trump said while speaking at MacDill Air Force Base in Tampa, Florida in his address to U.S. service members. ""It has gotten to a point where it is not even being reported. And in many cases, the very, very dishonest press does not want to report it."" Trump did not specify any particular incidents that had been omitted from coverage. ""They [the press] have their reasons, and you understand that,"" he said. During a subsequent press gaggle aboard Air Force One, White House press secretary Sean Spicer appeared to double down on the president's claim, saying there were several instances of the media under-reporting terrorist attacks. ""There's a lot of instances that have occurred where I don't think they've gotten the coverage it's deserved and I think that's what the president was clearly referring to there,"" Spicer said. Spicer did not offer any specific examples at the time, but said he believed that while some attacks or foiled attacks ""barely [get] coverage,"" extensive reporting has been done on some protests against the Trump administration. Included in a list of attacks that the White House provided Monday evening were the Paris attacks in November 2015, San Bernardino, in December 2015, Brussels in March 2016 and Nice, France in July 2016. Those incidents, each with multiple casualties, were among dozens of attacks the White House listed between September 2014 and December 2016. ""The point here is that these terrorist attacks are so pervasive at this point that they do not spark the wall-to-wall coverage they once did,"" a White House spokesperson said. During his brief remarks at the headquarters of the U.S. Central Command, the president seemed to make reference to his executive order banning immigration and visas from seven Muslim-majority nations that is currently the subject of a number of legal challenges. ""We need strong programs,"" he said, adding that ""people that want to destroy us and want to destroy our country"" must be kept out. Trump went on to defend NATO while simultaneously saying members of the alliance were not making ""full and proper contributions."" Echoing President Ronald Reagan, Trump said the U.S. military should be guided by the mantra ""Peace Through Strength,"" before repeating his campaign refrain ""America First."" ", -17,2017/2/7,http://abcnews.go.com/Entertainment/tom-brady-wife-gisele-bundchen-retire/story?id=45326185,Tom Brady Says Wife Gisele Bundchen Wants Him to Retire,,"At 39 years old, quarterback Tom Brady is still at the top of his game: On Sunday, he led the New England Patriots to victory over the Atlanta Falcons in Super Bowl LI, earning the game's MVP title. But his wife, Gisele Bundchen, wants the father of her children to hang it all up. While speaking to Jim Miller on his SiriusXM NFL Radio show Monday, Brady said, ""If it was up to my wife, she would have me retire today. She told me that last night three times."" But Brady isn't ready to leave football behind just yet. ""I said, ""Too bad, babe, I'm having too much fun right now.""?You know, I feel like I can still do it and if you love what you do and you'r capable of doing it then --"" he added, cutting himself off. ""I'd be so bored if I wasn""t going out there, knowing that I could still do it. So, I'm going to work hard to be ready to go and I still plan on playing for a long time."" Tom Brady talks #SB51 win, ""magical year,"" and his response to Gisele telling him to retire https://t.co/HYlPhQcdc0 (AP Photo) #SuperBowl pic.twitter.com/4MI8vhNZiv Brady spoke to ABC News last year about the lengths he goes to to stay in top shape at his age. ""there's no other 39-year-olds playing now at quarterback,"" he said. ""I don""t go to bed at 1 a.m. and wake up at 5 a.m. and say, ""Let's see if I can get this done today.""?Instead, he said he's usually in bed by 8:30 p.m. ""Because my career is so important, I think I make a lot of, I wouldn""t call them sacrifices, but just concessions for my job,"" he continued. ""Sometimes, it's hard to cut things out, for me where I cut is, like, my friends, they probably don""t get as much time as they used to."" Brady and Bundchen are also famous for their healthy lifestyle. ""I try to not eat as much sugar, but it's so hard in our American diet to do that. ... It's hard to completely avoid. I don""t drink much alcohol,"" Brady said last year. Despite the retirement talk, Bundchen was in Houston for Sunday's big game and joined her husband on the field with their three children after the win. She later posted, ""Wonderful things come to those who work hard with focus, tireless dedication and who never stop believing. Forever grateful for this moment. Congratulations my love!!"" Wonderful things come to those who work hard with focus, tireless dedication and who never stop believing. Forever grateful for this moment. Congratulations my love!!#neverstopbeliving #lovemovesmountains #dedication #family #thankyouGod ????Coisas maravilhosas acontecem para aqueles que trabalham duro, com foco, dedicação incans��vel, e que nunca deixam de acreditar. Para sempre grata por este momento. Parab��ns meu amor!! #nuncaparedeacreditar #oamormovemontanhas #dedicação #fam��lia #obrigadaDeus A photo posted by Gisele Bundchen (@gisele) on Feb 6, 2017 at 7:58am PST ", -18,2017/2/7,http://abcnews.go.com/Sports/tom-brady-missing-super-bowl-jersey-shows-ebay/story?id=45299006,"Texas Rangers to Help Search for Tom Brady's Stolen Super Bowl Jersey, Lt. Gov. Says",,"The Texas Rangers are joining the search for the jersey worn by New England Patriots star quarterback Tom Brady in last night's historic Super Bowl game. Brady's jersey was allegedly stolen from the Patriots locker room after the Super Bowl in Houston, according to a statement from Texas Lt. Gov. Dan Patrick, who said he asked the Texas Rangers to help the Houston Police look for it. ""Tom Brady's jersey has great historical value and is already being called 'the most valuable NFL collectible ever,"" Patrick said in a statement. ""It will likely go into the Hall of Fame one day. It is important that history does not record that it was stolen in Texas. I""ve called Colonel Steve McCraw to ask that the Texas Rangers work with the Houston Police Department on this case."" ""I'm a Texans and Cowboys fan first,"" Patrick said, ""but the unquestionable success of the Super Bowl in Houston last night was a big win for our entire state and I don""t want anything to mar that victory. Whoever took this jersey should turn it in. The Texas Rangers are on the trail."" The intrigue surrounding Brady's missing jersey began last night after the Patriots' historic win, when Brady was seen on video telling Patriots owner Robert Kraft that his game jersey was stolen. The Patriots said Brady's jersey and pads were taken off the field before the trophy ceremony Sunday night, Boston station FOX25 reported Monday morning; it appears the jersey disappeared at some point after that. This clarified an earlier Fox25 report that a team equipment manager had locked the jersey up. This morning, Brady told reporters he is still missing the jersey, saying he put it in his bag Sunday night and later it was gone. ""If it shows up on eBay somewhere, someone let me know,"" Brady said this morning. ""It's unfortunate, because that's a nice piece of memorabilia,"" Brady said. ""Those are pretty special ones to keep ... What can you do? I'll take the ring and that's good enough for me."" Brady, who was named Most Valuable Player of the Super Bowl for the fourth time, accepted the MVP trophy from NFL Commissioner Roger Goodell with smiles at the press conference this morning. Goodell had suspended Brady for the first four games of the 2016 season for his alleged involvement in the deflation of footballs during the 2015 AFC championship game. Last night marked the biggest comeback in Super Bowl history as the Patriots erased a 25-point deficit, beating the Atlanta Falcons 34-28 in overtime. It was also a record fifth Super Bowl win for Brady. Brady said at a press conference this morning of the Falcons, ""I give them a lot of credit. They're a great football team."" ""It took a lot of great plays for us to overcome the deficit and the hole that we dug. But we were able to do it,"" Brady said. Brady said the Patriots ""faced a lot of adversities"" this year and he called their stunning victory a ""great way to really culminate the season."" ""It took a kind of miraculous effort to do it,"" he said, adding that he's ""happy that we were able to get it accomplished."" Brady said ""it was great"" to celebrate at the Super Bowl with his mother, who has been ill and missed all of this season's games. ""She's been through a lot. Way harder than what I went through last night ... and my dad's been there every step of the way. They set such a great example for me,"" Brady said. Now that the big game is over, Brady said he's looking to spending time with his children, who he said will be happy to see the trophy. ", -19,2017/2/7,http://abcnews.go.com/International/putin-friend-poisoned-russian-activists-wife-tells-trump/story?id=45310449,"Putin Not a Friend, Poisoned Russian Activist's Wife Tells Trump",,"The wife of a poisoned Russian opposition activist says President Donald Trump must not consider Vladimir Putin a friend. In an exclusive interview with ABC News after visiting her comatose husband in a Moscow hospital, Evgenia Kara-Murza said, ""�[Trump] must know that such people as Vladimir Putin are not friends. And they cannot be dealt with on friendly terms.""?Her husband, 35-year-old Vladimir Kara-Murza, an outspoken critic of Putin, remains in critical condition, fighting for his life, she said. His doctors say he was poisoned by an unknown substance, she added. The activist was hospitalized on Thursday shortly after feeling ill; within hours, most of his major organs were failing. It is the second time in two years that he was poisoned; the first time, in 2015, left the father of three with nerve damage that left him walking with cane. Evgenia Kara-Murza said that she does not know who is behind the poisoning but that she believes it can only be related to his work. A veteran opposition campaigner, he has appeared repeatedly before the U.S. Congress, pressing for it to impose sanctions on Russian officials involved in human rights abuse. On Sunday, Fox News Host Bill O��Reilly asked Trump if he respects his Russian counterpart, to which the U.S. president said he did but ""ghat doesn""t mean I'm going to get along with him.""?When the host interjected that ""Putin's a killer,""?Trump said, ""Lot of killers. We're got a lot of killers. What, you think our country's so innocent? You think our country's so innocent?""?Wiping away tears during an interview from Moscow, Evgenia Kara-Murza told ABC News""?Brian Ross that neither her husband nor other Putin opponents will be stopped by the ugly tactics. ""people like my husband will never stop, no matter what. They will fight, with all of their might.""?Vladimir Kara-Murza is hardly the first Putin critic to have come to serious harm in mysterious circumstances. ""there is a pattern of Putin's critics being poisoned or dying of mysterious, unexplained medical problems,""?said former White House national security official Richard Clarke, now an ABC News consultant. ""This is straight out of the old KBG playbook, and it's death by poison.""?Two years ago this month, Boris Nemtsov, a prominent opposition leader in Russia and longtime critic of Putin, was shot to death on a Moscow bridge. Vladimir Kara-Murza worked closely with Nemtsov, who was the godfather of one of Kara-Murza's daughters. In 2006 a former Russian spy, Alexander Litvinenko, died after being poisoned by a rare radioactive material in London ""?a murder blamed on Putin by a British government-ordered inquiry. Trump's defense of Putin has drawn the ire not just of foreigners living in fear of the Russian president. On Monday night, leaders from both U.S. political parties were at a loss to explain why the U.S. president continued to defend one of the United States""?starkest adversaries. In an interview with ABC News from Capitol Hill today, Sen. John McCain, R-Ariz., was critical of the president's comments, saying ""the United States of America has made serious mistakes ""?we all know that ""?but not, nowhere near anything like the intentional murders committed by Vladimir Putin.""?Meanwhile, Rep. Nancy Pelosi, D-Calif., said that she wanted ""go know what the Russians have on Donald Trump.""?""I think we have to have an investigation by the FBI into his financial, personal and political connections to Russia,""?she said. ABC News""?Cho Park, Alex Hosenball and Paul Blake contributed to this report.", -20,2017/2/7,http://abcnews.go.com/Politics/dept-justice-calls-ruling-immigration-order-case-vastly/story?id=45310450,Dept. of Justice Cites 'National Security' in Calling for Trump Immigration Order Reinstatement,,"The Department of Justice blasted a court ruling that imposed a nationwide restraining order on President Donald Trump's immigration executive action, citing ""national security"" as a reason for it to be reinstated. ""The State argues...that the injunction does not impose any irreparable harm. But the injunction reinstates procedures that the President determined should be temporarily suspended in the interest of national security,"" the reply brief to the 9th Circuit Court of Appeals, filed Monday evening, says. ""The potential national-security risks and harms resulting from the compelled application of procedures that the President has determined must be reexamined, for the purpose of ensuring an adequate measure of protection for the Nation, cannot be undone. Nor can the effect on our constitutional separation of powers."" The DOJ also called Washington state Federal Judge James Robart's action ""lastly overbroad, extending far beyond the State's legal claims to encompass numerous applications of the Order that the State does not even attempt to argue are unlawful.""?Today, the appeals court scheduled oral arguments in the case for 3 p.m. PT on Feb. 7. On Friday, Robart agreed with the states of Washington and Minnesota that Trump's executive order -- which curtailed immigration and refugees from seven predominantly Muslim countries -- was likely to ""go cause irreparable harm""?to businesses, schools, family relations, and state residents""?freedom to travel and issued a nationwide temporary restraining order blocking most parts of the executive order. The Trump administration appealed to the 9th Circuit late Saturday night arguing that the president is acting within his authority and that the ruling by Robart ""second-guesses the President's national security judgment.""?Early Sunday morning, the 9th Circuit rejected the DOJ's request for an emergency stay on the restraining order. Washington state's lawsuit received support from major technology companies including Apple, Google, and Facebook, as well as former secretaries of state and national security officials. Former Secretaries of State Madeleine Albright and John Kerry joined former national security and foreign affairs officials including Leon Panetta, Janet Napolitano, Lisa Monaco, and Michael Hayden and wrote a declaration to the appeals court that ""where is no national security purpose for a total bar on entry for aliens from the seven named countries,""?adding that as a national security issue, the executive order was ""ill-conceived, poorly implemented, ill-explained.""?""the opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned!""?Trump tweeted on Saturday. Trump has also tweeted that if something happens while his executive order is blocked, to blame the judge in the case. ABC News' James Hill, Arlette Saenz, Kate Shaw, and Jack Date contributed to this report.", -21,2017/2/7,http://www.cnn.com/2017/02/07/politics/betsy-devos-senate-vote/index.html,Betsy DeVos confirmed as education secretary, vice president casts historic tie-breaking vote,Washington (CNN)Vice President Mike Pence cast a historic tie-breaking vote Tuesday to confirm Betsy DeVos as the next education secretary after the Senate was evenly divided over the controversial pick.,"The 51-50 vote ends Trump's toughest confirmation battle yet. Senate Democrats debated through the night and into Tuesday morning in a last-ditch attempt to derail DeVos, buoyed by support from Republican Sens. Lisa Murkowski of Alaska and Susan Collins of Maine. Throughout the fight, Democrats argued they needed ""Just one more!"" to lure away another Republican vote. But Senate Republican leaders succeeded in delivering a victory to Trump in a confirmation fight that very few expected to become as tough as it did. DeVos' poor performance in her confirmation hearing -- punctuated by her suggestion that a school in Wyoming might want to have guns on premises to protect against grizzly bears -- contributed to roaring anger among public school supporters and teachers unions. Even before her hearing, critics pointed to DeVos's lack of experience with public schools and her bankrolling of efforts like school vouchers that could take money from public institutions. Senate minority leader Chuck Schumer voiced his displeasure with the vote moments after she was confirmed, tweeting, ""Today @VP Mike Pence did something no one else has ever done: cast the tie breaking vote on his own cabinet nominee."" Devos tweeted after the vote, ""I appreciate the Senate's diligence & am honored to serve as @usedgov Secretary. Let's improve options & outcomes for all US students."" Sen. Chris Murphy told CNN earlier Tuesday that DeVos seemed to have no knowledge of the federal law that protects students with disabilities. ""You put those two things together, lack of compassion for what's happened to places like Sandy Hook and an inability to just understand the basic law around vulnerable students and it was clear at the end of that hearing that this was someone who shouldn't be the secretary of education,"" the Connecticut Democrat said. DeVos' Senate vote comes after a dramatic 24 hours of protest from Democrats inside and outside the Capitol that lasted through the night, into Tuesday morning, with Democratic senators taking shifts in the Senate arguing against DeVos. The delay tactics have succeeded in stalling many of Trump's most important Cabinet picks -- but Senate Republican leaders promised Monday to get votes for four nominees this week: DeVos, Health and Human Services nominee Tom Price, Treasury pick Steven Mnuchin and attorney general nominee, Sen. Jeff Sessions. Meanwhile, with each passing day, more questions have been raised about Trump's Cabinet picks. Labor Department nominee Andrew Puzder admitted Monday to hiring an undocumented immigrant as a housekeeper. But Senate Majority Whip John Cornyn promised to overcome Democratic tactics with long hours at the Capitol -- including the possibility of working through Saturday. ""We'll be burning the midnight oil,"" Cornyn said Monday." -22,2017/2/7,http://www.cnn.com/2017/02/07/politics/trump-watch-live-coverage-week-3/index.html,Trump watch: Live coverage,"From travel ban to high-stakes confirmation hearings, we are tracking President Trump's third week in office.",, -23,2017/2/7,http://www.cnn.com/2017/02/05/opinions/devos-racism-public-school-opinion-wong/index.html,A vote for DeVos is a vote for resegregation,"Felicia Wong is President and CEO of the Roosevelt Institute, an economic and social policy think tank working to re-imagine the rules so they work for all Americans, and co-author of the forthcoming book ""Rewrite the Racial Rules: Building an Inclusive American Economy."" Randi Weingarten, President of the American Federation of Teachers, is on Roosevelt's board. The views expressed in this commentary are her own.","The limited scope of DeVos' education policy experience has raised questions for many about whether she is suited to run the federal agency charged with making American public education first-rate for all children. But there is another subterranean element to this debate, which now should be surfaced, especially given our racially charged environment and the role that segregated schools have long played in our politics. Racial animus was a primary catalyst of the move toward private and religious K-12 education almost 50 years ago, and racial segregation remains a dominant factor in all schooling, public and private, today. DeVos' track record suggests that as secretary, she will do little to combat these trends. In the wake of the 1954 Brown v. Board Supreme Court decision, which famously declared that separate schools for black and white children were not equal, the federal government began -- albeit slowly -- to desegregate. This applied to schools in the South that were previously forbidden by law from educating children of different races together and to schools in the North plagued by de facto segregation. The backlash, now infamous but perhaps too familiar even today, was fierce. From Alabama Governor George Wallace's stance in the schoolhouse door and his proclamations of ""segregation now, segregation forever"" to Louise Day Hicks leading the Boston antibusing movement, the reaction to desegregation roiled American politics. But the Brown ruling did not apply to private schools. Thus, an estimated half-million white students left public schools between 1964 and 1975 to enroll in schools that were known as ""segregation academies."" This move to private schools was part of a larger ""white flight"" movement. White flight was one of the greatest demographic shifts in American history. Millions of whites nationwide moved out of cities and into racially isolated suburbs. Scholar Kevin Kruse has called white flight ""the most successful segregationist response to the moral demands of the civil rights movement and the legal authority of the courts."" The character and quality of most American schools today, like the neighborhoods in which they are found and which they shape, have a racial past. Now, American public schools are falling back into a kind of racial segregation that is reminiscent of our country before Brown. In the last 25 years, the number of severely racially isolated schools, defined as those with 0-10% white students, has tripled. In 2010 in New York City, 92% of black students and 88% of Latino students attended schools that were majority-minority, some of which see such severely racialized and concentrated poverty that they are dubbed ""apartheid schools."" In DeVos's own state of Michigan, which has seen two decades of charter school growth, enrollment and funding for public schools has waned while schools have become increasingly segregated. Nor does public funding for private schools, which DeVos advocates, seem to achieve much good for students of color. Voucher and other public funding programs are marketed as appealing because tax dollars ""follow the child."" But research over the past fifteen years shows that private schools are even more racially segregated than public schools. This has negative consequences for both white students and students of color. Research shows that both black children who attend desegregated schools end up with more income, higher wages and better long-term health, with no negative effects on white students. Further, a range of studies strongly suggest that desegregated schools educate all children such that they can better contribute to American society and to a healthier American economy. It is therefore both a moral outrage and an economic mistake that so much of the current movement in favor of school choice and religious education carries the stain of racial animosity, even in dog-whistle form. Of course, many private and religious schools are excellent and inclusive places of learning. But let's not be fooled. School choice is not really about freedom. Freedom, of course, is a bedrock American value. But the kind of ""freedom"" associated with the flight away from integration and toward racial isolation will never lead to a more truly free United States. So as senators consider DeVos' nomination to oversee public education for every American child, they would do well to remember the deepest values of public schooling, as well as the deeper meaning of appointing a Secretary of Education associated with a more exclusive and racially exclusionary vision.", -24,2017/2/7,http://www.cnn.com/2017/02/07/politics/iran-khamenei-trump-comments/index.html,"Trump 'shows true face of US,' says Iran's Supreme Leader","(CNN)Iran's Supreme Leader Ayatollah Ali Khamenei said Tuesday that he's grateful to President Donald Trump for showing ""the true face of the US.""","Khamenei told a gathering of Iran's air force commanders in Tehran that the new US administration has shown the world ""the depth of corruption in US government,"" according to quotes published by Iran's semi-official MEHR news agency. Khamenei reportedly told the commanders: ""We however thank this new guy in the White House, since he largely did the job we had been trying to do in the past decades: to divulge the true face of the US. We had been working to show the world the depth of corruption in US government and ranks and files of the ruling elite; Trump did it in few days after coming to the White House."" He added: ""Their claims to human rights are no longer tenable."" Khamenei also made an apparent reference to the five-year-old son of an Iranian mother who was detained at a US airport following Trump's ban on visas for seven Muslim-majority countries, including Iran. According to Iran's official news agency, IRNA, the Ayatollah said: ""Presently, too, by embarking on such actions, like putting handcuffs on a five-year-old kid, he [Trump] is demonstrating the reality behind the American human rights."" Khamenei's comments come amid escalating tensions between Iran and the US since Trump became president. The travel ban and sanctions enacted by the Trump administration, coupled with missile testing by Iran, have contributed to the deteriorating relationship. Concerns have been raised over the future of a deal, brokered by the Obama administration, that requires Iran to heavily restrict its nuclear program. On Saturday, a day after the Trump administration imposed fresh sanctions over an Iranian ballistic missile test, US Defense Secretary James Mattis called Iran ""the single biggest state sponsor of terrorism in the world."" Two days earlier, Trump had tweeted that ""Iran has been formally PUT ON NOTICE"" and should have been ""thankful"" for the ""terrible deal"" brokered by the Obama administration. He declined to rule out military action against Iran. But a senior Iranian adviser to the Ayatollah, Ali Akbar Velayati, dismissed Trump's remarks as ""baseless ranting."" And this is not the first time that the Ayatollah has spoken in such terms about the US President. In November, during the election race, Khamenei lambasted both Trump and Hillary Clinton for revealing what he called the moral shortcomings of the US.", -25,2017/2/7,http://www.cnn.com/2017/02/07/politics/yemen-raid-al-qaeda/index.html,Al Qaeda leader mocks Trump after Yemen raid,"(CNN)Days after a raid on an al Qaeda compound in Yemen led to the first US military combat death under Donald Trump, the leader of al Qaeda in the Arabian Peninsula released an audio message taunting the new American President.","In an 11-minute recording, AQAP leader Qassim al-Rimi condemned the January 29 raid, saying, ""The new fool of the White House received a painful slap across his face."" The message was released online Saturday and translated by the SITE Intelligence Group. In the recording, Rimi also claimed ""dozens of Americans were killed and wounded,"" a number starkly at odds with the US account, which reported the death of one Navy SEAL, Chief Petty Officer William ""Ryan"" Owens. Three additional SEALs also were wounded. Rimi acknowledged the deaths of 14 men and 11 women and children in the raid, a joint counterterrorism effort between the United States and United Arab Emirates. A senior US military official told CNN on Monday that Rimi was a target of the operation. The recording was released after last week's raid. Trump is using Obama as a security blanket Civilian deaths Reportedly among the dead was the 8-year-old the daughter of Anwar al-Awlaki, the late US-born cleric who directed attacks against the United States. Awlaki was killed in 2011. Reprieve, a London-based nongovernmental organization, and a Sanaa-based human rights worker told CNN that at least 23 civilians were killed in the attack. ""When the Americans escaped, they dragged their killed and wounded, and they found no other alternative but to destroy their own planes so that it would not be proof of their scandal,"" Rimi said. The senior US military official told CNN on Monday that intelligence collection wasn't the only objective of the Yemen raid but that it had also targeted Rimi. In the event Rimi wasn't there, the US military believed it would find intelligence that would help lead to him, the official said. Green-lighting the mission was not dependent on al-Rimi being there, however, a senior US military official emphasized. But US Central Command, which oversees forces in the region, had strongly disputed that Rimi was the objective of the raid more than a week ago. ""It wasn't a high-value target mission,"" Col. John Thomas told CNN, referring to operations aimed at killing or capturing terrorist leaders. Thomas added no hard intelligence indicated a ""high possibility"" Rimi was at the compound on the night of the raid, saying that Navy SEALs would have captured any leaders of the al Qaeda affiliate, including Rimi, as part of an intelligence-gathering operation. ""Anyone found on site would have been taken,"" Thomas said. NBC first reported that Rimi was a target of the raid. The chance to take out such a pivotal member of al Qaeda may explain the large allocation of resources used in the mission. Military botches release of video seized in Yemen raid Raid missteps Al Qaeda in the Arabian Peninsula fighters detected the SEAL team before it reached its objective, leading to an intense firefight. Following news of the raid, the military had said the goal of the mission was to gather intelligence on the al Qaeda affiliate in Yemen. On Friday, the Pentagon released clips from an al Qaeda training video seized during the raid but later pulled them because the video was nearly a decade old. Government officials previously told CNN plans for the raid had been in the works for months and that Trump green-lighted the mission shortly after his inauguration. How Donald Trump's first military action went from the Obama White House to deadly raid The Pentagon said the battle resulted in the deaths of 14 al Qaeda fighters, including two AQAP leaders. Many observers have considered al Qaeda in the Arabian Peninsula among the most dangerous, if not the most dangerous, branch of al Qaeda since its formation in 2009. Rimi reportedly became its leader following a 2015 drone strike that killed Nasir al-Wuhayshi.", -26,2017/2/7,http://www.cnn.com/2017/02/07/politics/trump-japan-shinzo-abe-mar-a-lago/index.html,Trump teeing up a softer diplomatic approach with Japan,"Washington (CNN)President Donald Trump is turning on the charm. Or at least, he's turning on his golf cart.","After a combative round of telephone diplomacy with even the staunchest US allies, the commander in chief is planning a more genial approach this week when he decamps with Japan's Prime Minister to his winter getaway in Florida for a round of golf. He's not likely to instruct Shinzo Abe how to dance the Cotton-Eyed Joe, the way George W. Bush did when Vladimir Putin visited his Crawford, Texas, ranch. Nor is he hoping to replicate the courtside bro-out Barack Obama enjoyed with David Cameron at a March Madness game in Ohio. But in bringing Abe to his ornate southern retreat Mar-a-Lago, Trump is nonetheless continuing a long tradition of presidents melding recreation and negotiation in their encounters with foreign leaders. Trump, who is still seeking his diplomatic footing three weeks into his term, finds himself more relaxed at his oceanfront oasis than in the White House, where he's lived for less than a month. He hopes the gesture will also put the buttoned-up Abe at ease. ""That's the one thing about golf -- you get to know somebody better on a golf course than you will over lunch,"" Trump told a radio interviewer over the weekend. The President has told aides he hopes to use golf and visits to Mar-a-Lago as a way to develop warmer ties with his foreign counterparts, many of whom are approaching his presidency with uncertainty. Trump, who prefers to sleep in his own bed, has expressed little interest so far in traveling abroad, though he's committed to attending a European NATO summit in May and accepted an invitation from Britain's Queen Elizabeth II for a state visit this summer. RELATED: Theresa May in trouble over Trump's UK state visit invite At Mar-a-Lago, Trump is happy to play host. Overlooking the Atlantic on Florida's Gold Coast, the club is firmly Trump's turf. On his first trip there as president last weekend, he mingled in the club's living room with paying members even as a Washington state judge halted his controversial immigration order. Friends say Trump is most relaxed in the confines of his estate -- or playing golf on the courses he owns nearby. ""He's able to relax on the golf course with people he knows and trusts and likes,"" said Robin Bernstein, one of Mar-a-Lago's original members, who speaks with Trump frequently when he's staying in Florida. ""I think that he finds golf kind of his outlet to relax. He loves it, he enjoys it, he's a fabulous athlete, and that's what he loves. Some people go fishing -- Donald loves golf."" In Abe, Trump finds a leader eager to foster a closer bond with the US, particularly given Trump's tough criticism of the Trans-Pacific Partnership trade agreement, which Japan was a partner in, and the costs of US security support provided to the East Asian nation. ""This is a testament to the importance the United States places on the bilateral relationship and the strength of our alliance and the deep economic ties between the United States and Japan,"" White House press secretary Sean Spicer said on Tuesday after detailing the weekend trip. Abe enjoyed a congenial working relationship with Obama, but the two men never developed warm personal ties. When Abe tried bringing Obama to Tokyo's best sushi restaurant in 2014, the US president grew restless as the dinner stretched for hours. Abe is hoping to start fresh with Trump, already meeting once with the real estate mogul in November. The pair discussed bilateral ties in Trump's Louis XIV-style livingroom at Trump Tower in Manhattan. Abe brought along a gold-colored golf driver as a gift. ""I know he loves the game, and we're going to have a lot of fun,"" Trump said in the radio interview this week. ""I'll just make sure he's my partner."" Trump's invitation for a weekend at his private club continues a well-established practice of vacation diplomacy for US presidents. His predecessors have acted both as hosts for their foreign counterparts and as guests at vacation spots and golf courses the world over. But no recent president has owned as lavish a getaway home as Trump, or been so eager to show it off. Obama, who maintained a residence in Chicago but rarely visited there himself, employed public properties instead to host foreign leaders away from the White House. Obama invited the new Chinese President Xi Jinping to the Sunnylands estate in Southern California for their first meeting, including a long ramble in scalding desert heat around the grounds. He used Camp David, the presidential retreat in Maryland's Catoctin Mountains, to reassure Arab Gulf leaders of his Iran nuclear deal in 2015. Accustomed to more lavish environs, leaders like Saudi King Salman sent top advisers instead. More relaxing were his encounters with Cameron. After Obama flew him to Dayton for the NCAA tournament in 2012, Cameron reciprocated with a round of golf at the Grove Club in Hertfordshire. He was one of the few foreign leaders who joined Obama for golf -- others included the Prime Ministers of New Zealand and Malaysia. Bush, who swore off golf shortly after the start of the Iraq War, hosted more than a dozen leaders among the scrub brush at his Crawford ranch. His three-day summit there with Putin in 2001 featured line dancing and a barbecue, but little agreement on missile defense. A session with the Saudi King resulted in some awkward photos of the President holding the Gulf monarch's hand. Bill Clinton used Camp David to try securing an agreement between Israeli Prime Minister Ehud Barak and Palestinian leader Yasir Arafat at the end of his term. He wasn't successful; the wooded retreat proved less inspiring than it had 20 years earlier, when Jimmy Carter brokered a successful peace accord there between Israel and Egypt. Like Trump, Clinton identified golf as an entry point into personal relationships with counterparts. A round in 2000 with Singapore's Prime Minister in Brunei started late and stretched well past midnight. American leaders aren't alone in using quieter retreats as a setting for talks. When Obama visited Saudi Arabia in 2014, then-King Abdullah received him at his desert getaway oasis, Rawdat Khurayim, 35 miles outside Riyadh. Trump, too, could soon find himself at another leader's vacation home when he travels to Britain -- though not necessarily to make him more comfortable. Alex Salmond, the former Scottish first minister, suggested this week that Trump's visit to the United Kingdom may take place at Balmoral, the Queen's Scotland estate, to evade the expected masses of protesters in London. The palace later tamped down that speculation, noting the Aberdeenshire castle was privately owned by the royal family, and thus unsuitable for a state visit. But of the Queen's other official residences, two -- Windsor Castle, outside London, and Holyroodhouse, in Edinburgh -- would at least move Trump away from the capital.", -27,2017/2/7,http://www.cnn.com/2017/02/07/politics/white-house-terror-attack-list-trump/index.html,Journalists call out White House claims on terror reporting,(CNN)Journalists are calling out a White House claim that news outlets are failing to adequately report terror attacks.,"On Monday, the White House issued a list of 78 terror attacks to underscore President Donald Trump's assertion that the media is failing to adequately report them. Trump told enlisted service-members at MacDill Air Force Base in Florida that attacks were happening ""all over Europe"" and that ""it's gotten to a point where it's not even being reported."" ""And in many cases, the very, very dishonest press doesn't want to report it. They have their reasons, and you understand that,"" Trump added. Later, the White House distributed a list of the attacks Trump was citing, saying ""most did not receive adequate attention."" ""Below is a list of 78 major terrorist attacks targeting the West that were executed or inspired by ISIS since September 2014, soon after the terror group declared its caliphate. Most of these attacks did not receive adequate attention from Western media sources,"" a White House official said on background, when distributing the list. But reporters in print, on air and on social media have robustly covered many of those attacks and terror in general. ""As a journalist I'm really troubled by that,"" Washington Post columnist David Ignatius said on CNN's ""The Lead"" on Monday, responding to Trump's initial statement. ""We have brave colleagues who everyday are taking big risks to cover these stories. Look at The New York Times, which the President demonizes often. The New York Times this weekend had an outstanding piece of reporting about how ISIS has been reaching out, is more involved in some attacks in Europe and abroad,"" he said. Ignatius said he has about 100 examples of strong reporting he'd like to show the President. CNN's Anderson Cooper also highlighted his coverage of many of the events listed. ""Not only did we cover many of the attacks on that list the White House has released, we covered them heavily. I know because I was there on the ground reporting a number of them,"" he said Monday night, before showing footage of himself reporting from Ottawa, Canada, in 2014; Paris in November 2015; San Bernardino, California, in 2015; in Orlando, Florida, in June 2016. He added: ""To be sure, we as a program did not cover each and every incident on the list, however other programs, as well as CNN International covered most if not all of them, many of them exhaustively."" The attacks listed span from September 2014 to December 2016, and include the Paris attacks, the Orlando nightclub shooting, the truck attacks in Nice and Berlin, the Brussels airport attack, the Istanbul airport and Sultanahmet attacks, and the Sydney siege. But the White House only mentions attacks that appear to have been carried out with Islamist motives and omits other terror operations. It does not mention the recent attack on a mosque in Quebec City, or the racially motivated attack by Dylann Roof on a church in South Carolina, in which nine black worshipers were shot dead. White House press secretary Sean Spicer told reporters after Trump's statement that the President ""felt as though members of the media don't always cover some of those events to the extent that other events might get covered; that a protest will get blown out of the water, and yet an attack or a foiled attack doesn't necessarily get the same coverage."" Trump has used terror attacks to justify his controversial temporary ban on citizens from seven Muslim-majority nations from entering the US. He has also repeatedly referred to media organizations critical of him as ""fake news.""", -28,2017/2/7,http://www.cnn.com/2017/02/07/politics/trump-travel-ban-oral-arguments-what-you-need-to-know/index.html,Trump travel ban oral arguments: what you need to know,(CNN)Three federal judges on the Ninth Circuit Court of Appeals are set to hear oral arguments at 6 p.m. ET Tuesday in the challenge to President Donald Trump's travel ban.,"The lawsuit, brought by attorneys general of Washington and Minnesota, has captivated the nation since last Friday when a federal district court judge put a stop to Trump's executive order restricting travel for foreign nationals, and as a result, temporarily opened US borders to immigrants once again. The hearing will be by telephone and livestreamed; here's what to listen for: What's the hearing about? US District Court Judge James Robart upended Trump's executive order nationwide Friday by temporarily halting the key provisions restricting travel for foreign nationals from seven Muslim-majority countries (Syria, Iran, Iraq, Yemen, Sudan, Somalia and Yemen) and refugee admissions. The central question for the appellate court is whether Robart abused his discretion by putting a temporary hold on the travel ban. No court has addressed the constitutionality of the executive order thus far. The players The attorney general of Washington state, Bob Ferguson, filed the case and was later joined by the attorney general of Minnesota, Lori Swanson. The suit is being defended by lawyers at the Civil Division of the Department of Justice in Washington, DC. The randomly assigned three-judge panel includes Judge William C. Canby Jr, an appointee of President Jimmy Carter; Judge Michelle T. Friedland; who was appointed by President Barack Obama; and Judge Richard R. Clifton, an appointee of President George W. Bush. When is this hearing? The appellate court has set an hour-long telephonic oral argument in the case for Tuesday at 6 p.m. ET. It will be available for live streaming through the court's website. Each side will get 30 minutes to make their case. What are the states saying? On Monday attorneys for the states that filed the lawsuit submitted their brief urging the appellate court to keep the travel ban suspension in place. The states say that the temporary restraining order should remain in place because the President had ""unleashed chaos"" by signing the order. They also argue that the government's claim -- that it would be ""irreparably harmed"" by keeping Robart's temporary suspension order in place while the case proceeds to the merits -- doesn't make any sense. To accept DOJ's position, they argue, ""would mean that until the (Executive) Order was issued, Defendants were suffering some, unspecified, ongoing irreparable harm. That makes no sense. ...Preserving the status quo against sudden disruption is often in the interest of all parties."" What is the Trump administration's argument? The government submitted its own brief in response Monday evening. DOJ continues to emphasize that the states do not have the ability to sue in this case and a district court judge does not have the right to second-guess the President's national security judgment in the immigration context. But the government also raised a fallback argument in its latest court filing -- suggesting if the appellate court is inclined to uphold the Seattle district court's decision, then it must at least limit it to the class of people who have been previously admitted to the US -- like someone traveling on a student visa. In the government's view, aliens outside of the US who have never stepped foot on US soil have no constitutional right to enter the US. What happens next? The judges have a number of different options at their disposal to resolve this case, but it is unlikely that they would rule on whether the ban is constitutional (since that is not the question before them) -- the central issue is whether the executive order should remain suspended for now. For example, the judges could dismiss DOJ's request for a stay of Robart's decision because, as the government acknowledges, temporary restraining orders are generally not appealable, or they could uphold his ruling -- but under either scenario the suspension of the ban would remain in place while the case moves forward with further scheduled hearings. Alternatively, the appellate court could find Robart abused his discretion and overreached to include classes of people not protected under the Constitution (e.g., aliens living abroad) -- in which case the travel ban would go back into effect. After the three-judge panel publishes its decision, the losing party has 14 days to file a petition for rehearing the case by the full appellate court (but is not required to do so in order to get the case in front of the Supreme Court). Given the high stakes involved in this lawsuit, it is expected that whoever ultimately loses before the Ninth Circuit will most likely appeal to the Supreme Court. At the moment, there are only eight justices on the court, meaning if there is a 4-4 split then the Ninth Circuit's ruling will be the law of the land.", -29,2017/2/7,http://www.cnn.com/2017/02/07/europe/romanian-president-on-corruption/index.html,"People appalled by corruption bill, Romanian President says","(CNN)The President of Romania has attacked the country's government in a speech in Parliament, saying ""Romanians are appalled"" over the corruption bill scandal that has rocked the country in recent days.","President Klaus Iohannis said it is time for Romania to decide whether it wants to be a ""strong prosperous"" nation or a ""weak despised one"" -- and he called for a referendum so the people can have their say. Half a million citizens took to the streets on Sunday in the largest of a series of demonstrations over a bill that would have protected many politicians from being prosecuted for corruption. The Social Democrat-led government announced that day in a statement that it was repealing the decree, which had been approved last week without input from Parliament. However, Prime Minister Sorin Grindeanu indicated that he still planned to push through the amendments to the criminal codes via legislation that would be put to Parliament for approval. Protests continued over the issue Monday night -- albeit on a smaller scale -- with calls for the government to be removed. 'Transparent government' In his speech on Tuesday, Iohannis, a former National Liberal Party politician, said withdrawing the decree is too little. Although he stopped short of calling for a fresh election, he told members of the center-left government, which has been in power since December, ""Your first worry was to take care of the files of the convicted (politicians). Romanians are appalled. ""The withdrawal of Ordnance 13 is too little. Early elections, at this point, is too much. Who needs to come up with a solution? The Social Democrats, as they created the problem."" At this point, members of the governing coalition -- made up of the Social Democrats and a smaller party, the Alliance of Liberals and Democrats, walked out of the room. ""Are you already tired?"" asked the President. ""Too bad. Romania needs a strong government, a transparent one, whose governing is predictable, done in broad daylight, not stealthily at night."" He went on to ask, ""What kind of nation do we want to be? Do we want to be a strong, prosperous one, which builds a rule of law and respects it, where justice is strong and independent? Or do we want to be a weak nation, despised, which risks everything to save a few from difficult times?"" This, he said, would be the ""question and the purpose"" of a referendum, which would ""really find out the will of the Romanian people."" Demonstrations continue Around 25,000 demonstrators gathered in Victory Square, Bucharest, on Monday evening and around 20,000 elsewhere in the country, according to estimates by the Romanian media. Although they turned out in far smaller numbers than Sunday, they continued to call for the government to resign. A counter-demonstration with about 3,000 people gathered outside the presidential palace in support of the government, calling for Iohannis to resign. Speaking to CNN on Tuesday, Vlad Mixich, a Romanian journalist and political commentator, said of the President's address to Parliament, ""He talked mainly to the people who protested in the last week in the streets. I think it was important for him to do that. ""This was one of the biggest protests in Romania since (the fall of communism in) 1989. So he had to speak directly to those people who were in the streets to protest even if the protesters don't perceive the President as their leader""."" Mixich said the referendum suggested by the President ""would be a symbolic gesture. One of the type that politicians love so much -- it will keep this topic on the table."" A brighter future ""The protests won't stop until some of the ministers will quit their jobs. We've had enough of them,"" said Bianca Dumitru, 25, a sports journalist who joined protests in her home town of Brasov, central Romania. ""The last week was incredible for the whole country. We got so united and motivated that we have to thank the government for this. But I think it's time for them to let us enjoy the victory and live in a prosperous environment, with a bright future ahead."" Parliament is due on Wednesday to debate a censure motion submitted by the opposition in a bid to remove the government from office. This is not expected to succeed, as the coalition holds a majority in the legislative body.", -30,2017/2/7,http://www.cnn.com/2017/02/07/politics/barack-obama-kitesurfing-richard-branson/index.html,Barack Obama's kitesurfing adventure with Richard Branson,Washington (CNN)#IslandLife was good to Barack Obama.,"Before returning to Washington, the former president dove into an aquatic and athletic challenge with his friend, Virgin Group founder and billionaire Richard Branson, while vacationing on the British Virgin Islands with former first lady Michelle Obama. Now that Obama is free from many Secret Service-imposed restrictions that did not allow him to partake in activities like surfing, Branson offered Obama the chance to learn how to kitesurf. But to make things more interesting, Branson took on a challenge of his own. ""We decided to set up a friendly challenge: Could Barack learn to kitesurf before I learned to foilboard? We agreed to have a final day battle to see who could stay up the longest,"" Branson wrote in a post on Virgin.com. Kitesurfing is riding on a surfboard while holding onto a kite and foilboarding is riding a surfboard with a hydrofoil that goes into the water lifts the board above the surface. Following a few days of training, the challenge was on and Obama kitesurfed his way to victory. ""We were neck and neck until the last run on the last day, when I got up on the foilboard and screamed along for over 50 metres, three feet above the water,"" Branson wrote. ""I was feeling very pleased with myself, only to look over and see Barack go 100 metres on his kiteboard! I had to doff my cap to him and celebrate his victory.""", -31,2017/2/7,http://www.cnn.com/2017/02/07/health/male-birth-control-vasalgel-contraceptive-monkey-trial-trnd/index.html,"Male contraceptive gel effective in monkeys, but will it work in humans?","(CNN)When it comes to contraception, there are no long-lasting, easily reversible options for men. The only choices are condoms or a vasectomy.","And it's been this way for more than a century. But a new injectable gel that blocks sperm inside the body, preventing them from leaving while allowing seminal fluid to pass through, has proved effective in trials using monkeys. The researchers behind the product, known as Vasalgel, hope it could get trials in humans within a few years. ""What was important here was that this worked and was safe in animals similar to humans,"" said Elaine Lissner, executive director of the Parsemus Foundation, the medical research organization behind Vasalgel that is also leading the trials. A new study, published Tuesday, involved 16 male monkeys receiving injections of Vasalgel who were released into social outdoor housing with females. Any adverse effects, as well as their ability to impregnate females, was compared with a historical sample of monkeys that had received vasectomies. ""It was a simple efficacy study,"" Lissner said, meaning the researchers merely set out to see whether the gel was safe and worked to prevent pregnancy. The social groups were monitored for at least one breeding season, and the team reported in its paper that none of the females in the group conceived during that time. One monkey had the gel inserted incorrectly, and another developed a sperm granuloma, or lump of sperm, but the majority tolerated the gel and saw little inflammation, Lissner said, adding that rates of granuloma and inflammation are usually higher after a vasectomy. Lissner's team is hoping to conduct clinical trials in humans next year and plans to stage further animal trials this year in preparation. But although the gel worked well in monkeys, it won't necessarily translate perfectly to humans. ""This is a bigger, longer task than we first anticipated,"" Lissner said. Stopping sperm in their tracks Administering Vasalgel inside a man, or a monkey, involves a polymer injected into the sperm-carrying tubes between the testicles and penis, known as the vas deferens, to block sperm as they are released. The injection is given under anesthetic and mimics the effect of a vasectomy, but without the snip. ""It's a sticky gel that goes into (the tubes) and basically filters out sperm,"" Lissner said. A similar polymer called RISUG is being trialled in India and has proved effective in men. The new gel is injected in a location similar to that cut during a vasectomy and allows fluids through while blocking sperm. The backed-up sperm are then reabsorbed by the body. A further benefit is that -- unlike with a vasectomy -- the gel is meant to disintegrate when a second solution is injected to break down the barrier and flush it out. This would make the process reversible. Reversibility was shown in trials on rabbits, but it was not tested in the new trial on monkeys. Recent trials on baboons also failed to reverse the effect. ""Successful reversibility will be the key to make this world-changing,"" Lissner said. Invasive procedure A further factor likely to impact numbers using this method is that Vasalgel still involves minor surgery to pull out the sperm tubes and inject the gel. What's more, when sperm are reabsorbed into the body, there is a risk of an immune reaction, potentially leaving men less fertile after reversal -- similar to vasectomy, though risks with the gel are lower, according to Lissner. ""Fifty percent of men after a vasectomy reversal remain infertile,"" said Dr. Ilpo Huhtaniemi, emeritus professor of reproductive endocrinology at Imperial College London, who was not involved in the new study. However, he points out that this doesn't prevent men from having children, as sperm can still be collected and used for in-vitro fertilization. The latest evidence on monkeys has many hoping a new form of contraceptive may be on the horizon, but experts believe more evidence is first needed on its reversibility. ""In order for it to have a chance of replacing the traditional surgical method of vasectomy, the authors need to show that the procedure is reversible, and it's reassuring that apparently such studies are ongoing,"" said Allan Pacey, professor of andrology at the University of Sheffield who was also not involved in the new research. ""The idea of trying to replace the traditional method of vasectomy by inserting a gel into the tube which carries sperm from the testicles to the penis at ejaculation is not a new one. However, we haven't seen much progress in developing the idea in recent years, so this study is a useful step in the right direction."" A male hormonal birth control injection was shown to prevent pregnancy in a 2016 study but was ended early due to side effects. Other approaches have involved strategies to control the production of sperm by targeting the hormone testosterone, but this had side effects of depression and weight gain. In 2015, Japanese scientists discovered a protein, calcineurin, found to be crucial in helping sperm swim and break through the membrane of a female egg in order to fertilize it. When the genes behind this protein were blocked during studies in mice, they became infertile. But Vasalgel is further along than the Japanese research and has not shown severe side effects in animals. Lissner is confident that her team's gel will overcome the challenges. She sees value in providing birth control that does not interfere with hormones. ""Why manipulate the whole body when there's a small tube that all the sperm swim through?"" she asked. Huhtaniemi agrees that Vasalgel could be valuable in certain populations but feels that in terms of birth control for the masses, a less-invasive option is needed. ""We need a pill. That's the easiest to administer,"" he said. ""It is feasible. We just need to find the right target.""", -32,2017/2/7,http://www.cnn.com/2017/02/07/sport/new-zealand-hotel-room-bugged-australia/index.html,Man arrested over Australia vs. New Zealand 'bug gate' case,(CNN)A man has been charged over the discovery of a listening device in New Zealand's team room ahead of last year's Rugby Championship match against Australia.,"New Zealand Rugby had reported that a room had been bugged in Sydney's Double Bay Intercontinental Hotel, where the All Blacks held meetings before August's Bledisloe Cup clash with the Wallabies. New South Wales police said Tuesday that a 51-year-old man, who was employed as a security consultant at the time of the alleged offense, had been charged with public mischief. He will appear in court on March 21. READ: 'Invictus' legend dies aged 45 All Blacks head coach Steve Hansen described the charge as ""bizarre"" and ""unbelievable."" ""The charged man has worked for the All Blacks, and many other organizations, for a long time and is someone who is well respected by us,"" the 57-year-old said in a statement released by New Zealand Rugby. ""However, as with all cases before the courts, there has to be a due process that takes place and it is not right or proper for us to make any further comment as this could jeopardize the outcome of the case."" READ: The double life of 'Super Maro' READ: Record-breaking All Blacks sidestep 'clown affair' READ: NZ star apologizes after airport toilet incident 'Still leaves a bitter taste' Bill Pulver, chief executive of Australia Rugby Union (ARU), praised the police. ""The aspect that still leaves a bitter taste out of this whole affair is that the discovery of the device was reported publicly on game day, when it is understood that the alleged discovery of the device occurred much earlier in the week leading up to the Test match,"" he said in a statement. ""Clearly the media attention which resulted from it was a distraction that neither team needed on the morning of a very important Test match. ""The ARU and the Wallabies were never accused of any wrongdoing, however it was still important that this matter reached a conclusion to provide complete reassurance to all fans that the organization and the team had no part in any of this. ""There may be some questions that remain but certainly today's news is welcome news that an individual has been called to account over this incident."" READ: NZ legend McCaw ends career Visit cnn.com/rugby for more news and videos The All Blacks, ranked the world's best rugby union team, went on to beat Australia 42-8 in the match to record their biggest win over the Wallabies on Australian soil in 113 years. Hansen's team set a new world record with its 18th consecutive victory in the third and final Bledisloe Cup series fixture in Auckland in October, but lost to Ireland in Chicago in its next game.", -33,2017/2/7,http://www.cnn.com/2017/02/07/europe/vladimir-kara-murza-suffers-organ-failure/index.html,Putin critic in 'grave' condition after suffering full organ failure,"Moscow (CNN)A vocal critic of Russian President Vladimir Putin, who said he was poisoned in 2015, has suffered ""full organ failure"" and is still in ""grave"" condition after being hospitalized in Moscow last week, his wife says.","Doctors in the hospital where Vladimir Kara-Murza, 35, is being treated say they still ""have no real idea"" what caused his illness, but agree a ""toxic substance"" is to blame, his lawyer Vadim Prokhorov told CNN. Kara-Murza's wife, Yevgenia, told CNN that doctors have tried to bring her husband out of a medically-induced coma but that when they did so, he ""had almost no reaction at all, except to his name being called."" He is currently on dialysis and artificial ventilation. She said doctors have diagnosed him with ""acute intoxication by an unidentified substance"" and that there is ""no prognosis,"" adding that the risks are now more serious due to his previous illness. Prokhorov told CNN that an investigator from the Khamovniki district of Moscow contacted him last Friday to inquire about the circumstances which led to Kara-Murza's hospitalization, but has not received any further updates about the ongoing investigation. ""The problem is that they are not paying any real attention to this,"" Prokhorov said. ""The investigative committee is only interested in this situation because of the media coverage."" He said he has no direct proof his client was poisoned. The Kremlin has denied any involvement in Kara-Murza's 2015 illness. Moscow denies involvement in 2015 health scare CNN spoke to Kara-Murza in 2015, months after a mysterious illness nearly killed him. ""I fell into a coma, all of my major organs began failing, one after another. It was the kidneys first, then the lungs, the heart, the liver,"" he said at the time. He said he believed his 2015 suspected poisoning was a politically motivated attack. ""Frankly there is no other possible reason,"" he said. ""I don't have any money dealings. I don't have any personal enemies. I didn't steal anybody's wife."" The case had parallels with the killing of former Russian agent Alexander Litvinenko in London. A British public inquiry into that 2006 poisoning found two former Russian agents responsible for carrying out the poisoning with the radioactive isotope Polonium-210. Its final report concluded that Putin was ""probably"" aware of the operation. The Russian Foreign Ministry dismissed the UK inquiry as politically motivated and the Kremlin said Russia wasn't involved. In February 2015, a leading Russian opposition figure and friend of Kara-Murza, Boris Nemtsov, was shot to death on a bridge near the Kremlin as he walked home from a restaurant. Kara-Murza became ill four months later. US lawmakers urge investigation Kara-Murza's hospitalization has triggered an outcry from US lawmakers, who have called on the Trump administration to speak out on his behalf. US Sen. Marco Rubio, R-Florida, said Putin should be held accountable if there is evidence the government poisoned Kara-Murza. ""Vladimir Putin does not deserve any benefit of the doubt here, given how commonplace political assassinations and poisonings have become under his regime,"" said Rubio, a frequent Putin critic. ""I am praying that Kara-Murza's condition improves."" He urged the White House and the State Department to question Russian authorities about the case. Kara-Murza, who splits his time between Russia and his family home in Virginia, is a dual Russian-British citizen. He is part of the Open Russia foundation, an organization of anti-Putin activists who call for open elections, a free press and civil rights reforms. When he fell ill last week, Kara-Murza was touring Russia for screenings of a documentary about Nemtsov.", -34,2017/2/7,http://www.cnn.com/2017/02/07/health/arkansas-rape-law-trnd/index.html,New law lets husbands sue wives to stop abortion - even in rape cases,(CNN)A new Arkansas law will let a husband sue a doctor to stop his wife from getting an abortion. And it makes no exception for cases of spousal rape.,"The law, called the Arkansas Unborn Child Protection From Dismemberment Abortion Act, was passed and signed by Arkansas Gov. Asa Hutchinson, and goes into effect later this year. It prohibits dismemberment abortion, the most common procedure used in second-trimester abortions. A clause in the law states that the husband of a woman getting the abortion can sue the doctor to stop his wife's abortion. The husband has to be the father of the child. And because there's no exemption in the law for rape or incest, a woman's rapist could theoretically file suit to stop the abortion. The ACLU of Arkansas claims the law is unconstitutional and plans to challenge it in court before it goes into effect. One Arkansas lawmaker said there wasn't much debate about those parts of the law. ""It was not something that was talked about on the Senate floor,"" Arkansas state Sen. Joyce Elliott told CNN affiliate KARK. ""If we cannot make headway on something like an exception for rape and incest, I think it just felt kind of fruitless to make some sense out of the rest of what was in the bill."" Elliott added, ""They don't see the outrage in constantly putting the thumb on women to dictate what they can do and not do."" But another lawmaker believes husbands should have a voice in these decisions. ""I think a woman does have control over her own body, but when you have created a life, you created a life with someone else,"" said state Sen. Missy Irvin. Kansas and Oklahoma passed similar abortion laws which are tied up in the courts, according to CNN affiliate KFSM. A few states, with conservative lawmakers emboldened by Donald Trump's election, have passed strict new abortion laws, including Ohio, which passed a measure banning abortion after 20 weeks of pregnancy.", -35,2017/2/7,http://www.cnn.com/2017/02/07/motorsport/f1-drivers-zoom-charity-photo-auction-hamilton-button-verstappen/index.html,Formula One stars auction photos for children's charity,(CNN)Ever wanted to get to know your favorite Formula One star a little better?,"The annual Zoom charity event auctions signed photographs taken by the biggest names in motor racing to raise funds for the Starlight Children's Foundation. Giving fans a glimpse behind the scenes, the project has raised more than $100,000 for charity since it was launched in 2012. ""Zoom is a super project,"" said former F1 chief executive Bernie Ecclestone. ""We are proud to be supporting it again, helping to raise money for charity while showing what the stars of F1 get up to away from the TV cameras."" READ: Five ways F1 will change after Liberty Media takeover", -36,2017/2/7,http://www.cnn.com/2017/02/06/asia/china-japan-disputed-islands-intrusion/index.html,Chinese ships sail near disputed Japanese islands,"(CNN)Three Chinese Coast Guard ships entered waters near a chain of islands claimed by both China and Japan in the East China Sea on Monday, according to authorities from both sides.","Japan controls the chain and calls them the Senkaku Islands, while China calls them the Diaoyu Islands. The sailing comes just days after US Defense Secretary James Mattis reaffirmed America's commitment to defending Japan and its disputed islands. According to Japanese broadcaster NHK, protests were lodged with the Chinese Embassy in Tokyo and in Beijing through the Japanese Embassy. Tensions have flashed numerous times in recent years over the disputed islands,-including face-offs between Japanese and Chinese air and naval forces-that have been termed dangerous by both sides. EXPLAINER: How an uninhabited island chain split Japan and China China's State Oceanic Administration, which oversees the country's Coast Guard, put out a statement late Monday saying the three ships ""cruised within China's Diaoyu Islands territorial sea."" China's Defense Ministry, which is separate from the Oceanic Administration, posted a statement on its website confirming the Coast Guard ship movement. Japan's Coast Guard said the Chinese vessels spent two hours in Japanese territorial waters. It was the fourth time Chinese ships have entered Japan's waters this year, the Japanese Coast Guard said. There were 36 such incidents in 2016, it said. Despite the frequency of the Chinese sailings, experts said having one so soon after Mattis' visit to Japan sent a subtle message to both Tokyo and Washington. ""It is both a signal that China won't be intimidated from defending its interests/claims and a test to see how the new (Trump) administration responds,"" said Carl Schuster, a professor at Hawaii Pacific University and former director of operations at the US Pacific Command's Joint Intelligence Center. Denny Roy, an Asian security expert at the East-West Center in Honolulu, said ship movements in disputed waters could result in a shooting incident. ""The danger is especially high considering military personnel on both sides are often eager to demonstrate their determination to defend what they consider national territory,"" Roy said. And a China-Japan military confrontation could bring US forces into play. During a press conference Saturday in Tokyo, Mattis said the US would defend the islands with Japan. ""I made clear that our long-standing policy on the Senkaku Islands stands -- the US will continue to recognize Japanese administration of the islands and as such Article 5 of the US-Japan Security Treaty applies,"" Mattis said in an appearance with Japanese Defense Minister Tomomi Inada. The US position was reinforced Tuesday in a phone call between Japanese Foreign Minister Fumio Kishida and the new US Secretary of State Rex Tillerson, according to a statement from Japan's Foreign Ministry. ""The United States will be against any unilateral action made to damage the Japanese administration of the Senkaku Islands,"" Tillerson stated during the call, according to the Japanese statement. China responded quickly on Saturday to the US stance on the islands, saying it brings instability to the region. ""Diaoyu and its affiliated islands have been Chinese territory since ancient times. These are historical facts that cannot be changed. The so-called US-Japan security treaty was a product of the Cold War, and it should not harm China's territorial sovereignty and legitimate rights,"" Chinese Foreign Ministry spokesman Lu Kang said in a statement. ""We urge the US side to adopt a responsible attitude and stop making wrong remarks on the issue of the sovereignty of Diaoyu Islands,"" Lu said. The US commitment to the Senkakus is not new. In 2014, the Obama administration also said the remote chain fell under the treaty. In late 2013, China-declared an air defense identification zone (ADIZ) over much of the East China Sea, including the Senkakus, despite objections from Tokyo and Washington. Japan also has an ADIZ over the islands. Although the Senkakus are uninhabited, their ownership would allow for exclusive oil, mineral and fishing rights in the surrounding waters. While the Senkakus remain a source of friction in the US-China relationship, Mattis' visit seemed to have soothed relations a bit in another area, the South China Sea. Although the US defense chief said ""China has shredded the trust of nations in the region"" by fortifying disputed South China Sea islands, Mattis also said no increased US military maneuvers there were needed. Lu, the Chinese Foreign Ministry spokesman, on Monday welcomed that stance. ""As for Mattis' comment that there is no need for large-scale military operations in the area and the issue should be resolved through diplomacy, these remarks deserve our affirmation,"" Lu said.", -37,2017/2/7,http://www.cnn.com/2017/02/07/world/afghanistan-explosion/index.html,20 dead in suicide blast outside Afghan Supreme Court in Kabul,"Kabul, Afghanistan (CNN)At least 20 people are dead after a suicide blast Tuesday outside Afghanistan's Supreme Court in Kabul, police and other officials told CNN.","A suicide bomber detonated his explosives in a parking near the court in the Afghan capital, according to Basir Mojahid, spokesman for Kabul's chief of police. The attack at around 3:45 p.m. local time targeted Supreme Court employees as they were leaving for the day, Mojahid said. At least 35 people were wounded in the blast, according to Saleem Rasooli, head of Kabul hospitals. There have been no initial claims of responsibility. An eyewitness told CNN that he felt the explosion shake the ground as he was leaving his office, opposite the Supreme Court. Nimatullah Mati said the area is home to several residential apartments and was crowded Tuesday afternoon with people who were heading home from work. Ambulances and firetrucks arrived on the scene within five minutes, Mati said. Afghanistan's chief executive, Abdullah Abdullah, expressed his condolences on Twitter. ""The blood of our people isn't cheap & won't be wasted,"" he said. NATO also condemned the attack. ""Anyone who seeks to destabilize the pillars of a functioning government are enemies of Afghanistan,"" Italian army Lt. Gen. Rosario Castellano, deputy commander of the NATO mission in Afghanistan, said in a statement. The blast comes a month after at least 36 people were killed and dozens wounded in two suicide bombings near the Afghan Parliament in Kabul. The Taliban claimed responsibility for those January 10 attacks. Tuesday's blast underscores the growing concern about the security situation in Afghanistan, where the country's security forces and its international allies have been fighting Taliban militants and other radical groups for years. A new report Monday from the UN Assistance Mission in Afghanistan said more than 11,000 people were killed or injured in 2016. That's the highest number of civilian casualties in a single year since the United Nations began systemically documenting those in 2009. The report also shows a record spike in the number of children killed in the long-running Afghanistan War. Of the 3,498 killed last year, 923 were children, the report said. Anti-government forces, mainly the Taliban, were behind almost two-thirds of the casualties, according to the report. ISIS militants have established a presence in the country, and their attacks particularly target Shia Muslims, the report said.", -38,2017/2/7,http://www.cnn.com/2017/02/07/middleeast/syria-executions-amnesty-international-report/index.html,"13,000 people hanged in secret at Syrian prison, Amnesty says","(CNN)Thousands of people have been hanged at a Syrian prison in a secret crackdown on dissent by the regime of Bashar al-Assad, a report by Amnesty International alleges.","The human rights group says as many as 13,000 people have been executed at Saydnaya prison, north of the capital Damascus in a ""hidden"" campaign authorized by senior regime figures. Amnesty's report, Human slaughterhouse, says prisoners are moved in the middle of the night from their cells under the pretext of being transferred. They are taken to the grounds of the prison, where they are hanged, likely unaware of their fate until they feel the noose around their neck, Amnesty alleges. The report is the culmination of a year-long investigation, including interviews with 84 witnesses including security guards, detainees, judges and lawyers, Amnesty says. Most of those hanged were civilians ""believed to be opposed to the government,"" the report finds. ""The horrors depicted in this report reveal a hidden, monstrous campaign, authorized at the highest levels of the Syrian government, aimed at crushing any form of dissent within the Syrian population,"" Lynn Maalouf, the deputy director for research at Amnesty's Beirut office, said in a statement announcing the report. Amnesty International says there are two detention centers at Saydnaya prison. In the ""red building,"" the majority of detainees are civilians who have been arrested since the beginning of the conflict in 2011, according to the organization. In the ""white building,"" the detainees are mainly military officers and soldiers. CNN has asked the Syrian government for comment. The report contends that the executed detainees were given a sham trial by ""a so-called Military Field Court."" ""The judge will ask the name of the detainee and whether he committed the crime. Whether the answer is yes or no, he will be convicted ... This court has no relation with the rule of law. This is not a court,"" a former judge said, according to Amnesty. Nicolette Waldman, an Amnesty International researcher, elaborated on the horrific conditions prisoners allegedly face. ""They have been actually dying in massive numbers as a result of repeated torture in combination with the systematic deprivation of food, water, medicine and medical care,"" she told CNN. ""(The report) has gotten the attention it deserved,"" Waldman said. ""It's a big story. But for people who work on Syria, it was almost a test case for 'Does the world still care, not just about death but the fact that it was organized, systematic?'"" In light of its findings, she said Amnesty is calling for investigation without delay and for the UN to act immediately. ""I want to be very clear that these practices are unacceptable, and they have to stop. They have to be brought to an end. Mass killings of civilians and extermination so that people are dying of starvation, of illness, of treatable diseases must stop, and Russia has a very special responsibility to uphold peace and security in the world,"" Waldman said. ""We are calling on them to use their influence with the Syrian authorities to push for access to independent monitors to all of the prisons in Syria run by the government where these atrocities are taking place so the perpetrators can be held to account."" Speaking at the UN, UK Ambassador and Deputy Permanent Representative Peter Wilson responded to the report's allegations. ""We have seen the report of Amnesty International on atrocities in Syria,"" he said. ""Our foreign secretary has said he is sickened by that report. We strongly condemn these atrocities, and we continue to effort to shine a light on what's happening in Syria and to hold people accountable for these actions."" 'Just a headline' President Assad's regime has previously been accused of extrajudicial killings and war crimes during the country's civil war, which broke out in 2011. In 2014, CNN was given a copy of a report that found ""direct evidence"" of ""systematic torture and killing"" by the Syrian government, based on photographs leaked by a Syrian defector. One of the report's authors called it a ""smoking gun"" proving the use of torture. But Assad has steadfastly maintained that many of the accusations leveled against him are politically motivated. ""I'm just a headline -- the bad president, the bad guy, who is killing the good guys,"" Assad told a group of western visitors, including The New York Times, in November. ""You know this narrative. The real reason is toppling the government. This government doesn't fit the criteria of the United States."" The UN estimates that about 400,000 people have been killed since the start of the war and another 4.8 million have fled the country.", -39,2017/2/7,http://www.cnn.com/2017/02/07/arts/martin-schoeller-celebrity-photos/index.html,From bodybuilders to Obama: How Martin Schoeller takes an 'honest' photograph,This video is a segment from the CNN Style show.,"But what truly distinguishes the German-born New Yorker's practice is his his consistent style. ""It's been 20 years that I've been taking these close-up portraits and everybody (has) the same lighting, the same setting, the same angle, the same camera. Nobody is retouched -- what you see is what you get,"" Schoeller explained to CNN Style show presenter Derek Blasberg. By treating each portrait in the same way, regardless of the subject, Schoeller attempts to find some truth in what he feels can be a very dishonest medium. ""I do think all photographs lie. I don't think there is one picture that is really honest. You can't describe a person in a split second, but maybe in the grand scheme of photography, I think there are some pictures that are more honest than others, you know? So I'm trying to steer to the little bit more honest side of the spectrum,"" he said. Out of the thousands of people he has photographed, who does Schoeller find the most challenging to photograph? ""Actors in general are difficult to shoot because they are always acting. You feel like 'Oh, this was an honest, great portrait' while you're photographing them... and then (I'm) looking at the contact sheets and I feel like, 'Oh my god, they were playing the whole time and I didn't even notice it.'"" Watch the video above to find out more about Martin Schoeller's photography.", -40,2017/2/7,http://www.cnn.com/2017/02/07/entertainment/christie-brinkley-sports-illustrated-swimsuit/index.html,"Christie Brinkley, 63, back in SI Swimsuit issue",(CNN)Christie Brinkley has made a splash return in the latest Sports Illustrated Swimsuit issue.,"Thirty-eight years after she first appeared on the cover of the coveted magazine, Brinkley is back in the pages -- this time with daughters Alexa Ray Joel, 31 and Sailor Brinkley Cook, 18. The trio were photographed posing on the beach in Turks & Caicos. Brinkley also gets a solo pic sporting a red bikini and called it a ""full circle moment."" Brinkley made history when she appeared on the cover three consecutive years in a row, 1979, 1980 and 1981. The 63-year-old posted the magazine photo with her daughters on Instagram Monday and wrote ""thank you Sports Illustrated for sending the powerful message that good things come in packages of every size and we do not come with an expiration date!"" Joel is Brinkley's daughter with Billy Joel, and like her father, is a singer. She shared a her bikini shot with a caption about body acceptance. ""I don't have a completely flat tummy, or cellulite-free thighs... nor am I a model's height or shape,"" Joel wrote. ""Neither are hundreds of millions of other beautiful women out there. SO WHAT."" Brinkley told People she had decided at age 30 to stop posing in bathing suits. The opportunity to pose with her daughters made her change her mind, she said. ""I thought, 'Those days are over,'"" she said. ""But to get to do it with my girls, I thought, 'One last go!'""", -41,2017/2/7,http://www.cnn.com/2017/02/07/sport/ski-world-championships-st-moritz-lindsey-vonn/index.html,"St .Moritz 2017: Lindsey Vonn, Mikaela Shiffrin seek world titles",(CNN)Free-falling out of the start gate and accelerating to 90 miles per hour in just six seconds.,"It's a chilling prospect and it's just the beginning of the men's downhill course in St. Moritz. The start hut is cut into a rock face and the slick slope is so steep -- 100% or 45 degrees -- TV cameramen must abseil into positions wearing crampons. But the one skier able to conquer their fear and harness this breakneck speed will be crowned world downhill champion for the next two years. The race is the highlight of the 2017 World Championships, which start this week in the chic Swiss town. St. Moritz, the jewel of the Engadin valley, has been a longtime destination for the jetset and draws a well-heeled international clientele to its fine-dining restaurants and five-star hotels. Often dubbed the ""home of winter sports,"" St. Moritz has hosted two Winter Olympics and four previous World Championships. A total of 600 athletes from more than 70 countries will compete across six alpine skiing disciplines -- slalom, giant slalom, super-G, downhill, super combined (downhill and slalom) and the team event. Outside of the Olympics, it's the biggest event in the sport and carries more cachet than the World Cup circuit. ""It's winning, basically, the Olympics minus all the other sports -- that's what the World Championships is for us. It's big,"" Mikaela Shiffrin, who leads the World Cup overall and slalom standings, told CNN's Alpine Edge. The 21-year-old American is going for a third straight slalom world title after winning gold in Schladming in 2013 and Beaver Creek two years ago. She also won the Olympic slalom gold in 2014, and is aware she has set herself a very high benchmark. ""Not winning stinks -- it makes me feel like I've done something wrong,"" Shiffrin adds. But the headline attraction will be her compatriot Lindsey Vonn, the second most successful ski racer of all time -- male or female -- with 77 World Cup wins, behind only Sweden's Ingemar Stenmark (86). Speed queen Vonn, the 2010 Olympic downhill champion, won her only world title in 2009 and is back on the circuit following a broken arm and severe nerve damage to her right hand sustained in a crash shortly after returning from knee surgery. Vonn won in only her second race since returning to the circuit in Garmisch-Partenkirchen in Germany in January, but crashed in a downhill at Cortina d'Ampezzo in Italy this month. In St. Moritz Tuesday, she skied out during the opening run of the World Championships' first race -- the women's super-G -- after trying to regain grip on her pole. ""I just kind of lost my concentration there for a minute,"" Vonn, the 2015 bronze medalist, told reporters. ""I stayed on my feet, so that was the important thing."" Austria's Nicole Schmidhofer won the gold medal from Tina Weirather of Liechtenstein and home favorite Lara Gut in perfect conditions, after two days of heavy snow had canceled the men's and women's downhill training sessions. Defending champion and Olympic gold medalist Anna Veith didn't make the second run after missing a gate. The women's downhill start is lower than the men's but still a considerable test of skill and stamina. Vonn's main rivals on Sunday will be World Cup overall champion Gut and Slovenia's Ilka Stuhec, this season's World Cup downhill leader. Another Slovenian Tina Maze, who has since retired, won the world title in 2015. The men's downhill takes place Saturday on the legendary ""Free Fall"" course, which was dreamed up by Bernhard Russi, the Swiss two-time downhill world champion and 1972 Olympic gold medalist. READ: Vonn crashes in Cortina READ: Vonn wins first race since comeback READ: Lindsey Vonn -- 'Hardest recovery of my career' Racers access the start hut via a steel staircase before plunging from 9,317 feet to 6,692 feet down to the Salastrains plateau above St. Moritz. Switzerland's Patrick Kung is the defending champion, but Italy's Peter Fill won the 2015-16 World Cup title and leads the standings this season. Norway's Kjetil Jansrud and Italian Dominik Paris, the winner in Kitzbuhel, are second and third in the World Cup standings. Former wold junior champion Beat Feuz triumphed at St. Moritz last year and the 29-year-old Swiss skier could improve on his World Championship bronze from Beaver Creek in 2015. The men's slalom on February 19 is likely to be a shootout between Austria's Marcel Hirscher and Sweden's Henrik Kristofferson. Hirscher, 27, has won four World Championship golds and a record five overall World Cup titles, while 22-year-old Kristofferson is last year's World Cup slalom champion. It is worth keeping an eye on Briton Dave Ryding, who has been making waves after scoring his country's joint best result in a World Cup race with a second place in the slalom in Kitzbuhel last month. He equaled the achievement of Konrad Bartelski in a downhill in Val Gardena, Italy in 1981. Ryding followed it up with 10th in the Schladming night slalom and sits fifth in the World Cup slalom standings. Visit cnn.com/skiing for more news and video Britain has won 11 medals at the World Championships but none since 1936.", -42,2017/2/7,http://www.cnn.com/2017/02/06/arts/bio-art-microbes-and-machines/index.html,Of microbes and machines: How art and science fuse in bio-art,"Sean Redmond is one of the curators of the Morbis Artis: Diseases of the Arts exhibition. Darrin Sean Verhagen works for RMIT University. He has previously received funding from the Australia Council, Arts Victoria and City of Melbourne.","There is art in science -- the artistic precision of the scalpel, the cool aesthetics of the laboratory, and the intimate observations undertaken by scientists to discover new materials and microbes living unseen in the world. Bio-art, an artistic genre that took hold in the 1980s, solidifies, extends and enriches this organic relationship. According to the artist and writer Frances Stracey, it represents: ""a crossover of art and the biological sciences, with living matter, such as genes, cells or animals, as its new media."" Bio-artists might use and incorporate imaging technologies within the artistic space; bringing living and dead matter into the gallery. They draw upon biology metaphors to imbue artwork with healing and wounding propensities. In BioCouture, for example, fashion, art, and biology are weaved together, blossoming new materials into existence. As author Suzanne Anker has noted, ""Donna Franklin and Gary Cass have invented dresses made from cellulose generated by bacteria from red wine. Suzanne Lee composes 'growing' textiles produced by sugar, tea and bacteria to fashion jackets and kimonos."" Lee makes jackets out of cellulose produced by bacteria in baths of green tea and sugar. Bio-art includes the skins and cells of celluloid and digital video, the membranes of sound, and the liquids and fluids of body parts and eyeballs. To take another example, in Christian B?k's The Xenotext, a ""chemical alphabet"" is used to translate poetry into sequences of DNA for subsequent implantation into the genome of a bacterium. When translated into a gene and then integrated into the cell, the poetry constitutes a set of instructions, all of which cause the organism to manufacture a viable, benign protein in response. Writes B?k: ""I am, in effect, engineering a life-form so that it becomes not only a durable archive for storing a poem, but also an operant machine for writing a poem ""-one that can persist on the planet until the sun itself explodes..."" Scientists and artists work together in what become teeming new spaces of co-creation. Together, they often set Bio-art within current debates and concerns about what constitutes life, what counts as a sentient being, and who gets to determine what lives are saved, exploited or destroyed. Bio-art draws together the hopes and concerns of scientists and artists as we hurtle into an age where human life and everyday living seems to be undergoing radical and sometimes dangerous transformations. As author Sheel Patel suggests in relation to Bok's work: ""If a living cell can be cultured to spit out and produce novel poetry, could we eventually live in a society where humans are no longer needed to produce new thoughts, and works of literature?"" Arts and disease In the interactive art-science exhibition Morbis Artis: Diseases of the Arts, actual and metaphoric communicative diseases are employed to explore the often toxic relationship between human and non-human life. The exhibition explores the thin doorway that exists between life and death in a vexing age of species and habitat destruction, and the increasingly permeable tissues of contemporary bodies. The discourses of science in particular train us to see and to look for disease in every location. Science's microscopic and bio-technological powers allow it to reach into every atom. Of course, dominant discourse also communes that some spaces, things, and objects are more diseased than others. We are taught to see disease in the homes of outsiders and the nests of insects, in the fabric of pariah nation states and the tissues of certain religions and philosophies. At the same time, new materialism and animal philosophy question the very parameters of what life is, where it can be found, and they turn the question of disease onto humankind, whose activities are seen to infect all that it touches and taints. There is a frightening collision, then, between the possibilities and limitations of human and non-human life: caught as it were between nightmare and dream. Morbis Artis: Diseases of the Arts is composed of 11 artistic works, with each piece using a different media or art form to explore the chaos of the world it draws upon. Each artist imagines disease differently, and yet within the terror of their imaginings there is great beauty, and much hope. In Drew Berry's video projection, infectious cells are ""set free"" so that the very connective tissue of the exhibition room teems with the droplets of life and death. Herpes, influenza, HIV, polio and smallpox bacteria are projected onto the gallery wall as if they have taken flight. Magnified and chaotic, those entering the space are hit by their scale and size. Lienors Torre's multimedia and glass work on degenerative vision explores how our view of the world is metered and tainted by digital technologies. We see two large glass eyeballs, a liquid animation, and a glass cabinet full of jars filled with water in varying degrees of opacity, with engraved eye images on them. Eyes quickly become raindrops as the liquidity of vision is brought to watery life. There are tears and scars that reflect across the eyes of this exquisite art-piece. In Alison Bennett's touch-based screen work, the viewer is presented with a high-resolution scan of bruised skin. Viewers can use the touch-screen to manipulate the soft and damaged tissue before them, and their eyes become organs of touch. What does it feel like to touch a bruise and be bruised? The gallery is thus, both laboratory and studio. In all its variant forms, and with a scalpel and a paintbrush to hand, Bio-art fashions the world anew. Morbis Artis: Diseases of the Arts is currently exhibited at the RMIT Gallery until February 18, 2017.", -43,2017/2/7,http://www.cnn.com/2017/02/07/sport/joost-van-der-westhuizen-south-africa-rugby-alistair-hargreaves-cobus-visagie/index.html,Joost van der Westhuizen: Fearless rugby legend 'broke the mold',"(CNN)Joost van der Westhuizen finally lost his brave battle with a body-wasting disease, but his powerful legacy lives on in modern rugby.","Wheelchair-bound and barely able to talk in his later years, the South Africa legend passed away Monday aged 45. Motor neurone disease had left him a shadow of the gladiator who helped the Springboks win the World Cup in 1995, but his contribution to the game will never be forgotten, says former teammate Cobus Visagie. ""Joost basically created the new requirements for a modern No. 9,"" the former South Africa front-row prop told CNN's World Sport show Tuesday. Van der Westhuizen was 6 foot 2 inches tall, but played at scrumhalf -- a position traditionally occupied by the game's smallest players, providing the link between teams' backs and forwards. ""Some days I looked down when we were standing in a circle and saw a man with boots three sizes bigger than myself -- a scrumhalf!"" added Visagie, who played alongside van der Westhuizen at the 1999 World Cup and won 29 caps for his country. ""He had incredible speed, he had incredible bravery -- he's very well known for the tackles he made in the crucial 1995 World Cup, but also in all other games."" In the 1995 World Cup final against New Zealand, van der Westhuizen stopped a rampaging Jonah Lomu when the giant winger had broken through the South African defense. The Springboks went on to win 15-12 in extra time, in the first major sporting event to be staged in South Africa after the end of Apartheid rule. The '95 side has achieved iconic status, notably through the Hollywood film ""Invictus."" ""Who could forget that '95 World Cup tackle?"" former Springboks forward Alistair Hargreaves told CNN. ""He was fearless, and for a scrumhalf he certainly broke the mold. As a young boy, he epitomized what South African rugby was all about. We idolized him."" READ: Blitzboks star leaves sevens on a high READ: Scotland stuns Ireland in Six Nations opener READ: Van der Westhuizen vows to fight motor neurone disease Courage on the field -- and off it Van der Westhuizen was diagnosed with motor neurone disease in 2011, having retired from international rugby in 2003 with what was then a record 89 caps for the Springboks. Also known as ALS or Lou Gehrig's disease, the condition causes muscles to weaken and waste away over time. In 2014 the ""Ice Bucket Challenge"" became a worldwide phenomenon, with millions of people helping to raise awareness and funds to research the disease. Although he never played alongside van der Westhuizen, Hargreaves -- who left South Africa in 2012 to play domestic rugby in England -- was fortunate enough to met his childhood hero later in life. ""I met him after his career and I probably met him at a time that his illness really kicked in,"" Hargreaves said. ""If he was resilient on the field, he certainly proved to be resilient and even more courageous when he found out about the terrible circumstances he found himself in. ""What a brilliant battle he fought. You can only respect the man for what he did."" After his diagnosis, van der Westhuizen set up the J9 Foundation, a charity dedicated to helping sufferers of motor neurone disease. ""It is incredibly sad, but Joost fought a long battle,"" Hargreaves added. ""He was aware of the struggle he faced and I presume there is a certain amount of relief at the end of it. ""The guy has achieved so much, he's done so much for rugby, I'm sure they're going to hold him up as a real legend of the game."" Visit cnn.com/rugby for more news and videos A public memorial service will be held on Friday at Loftus Versveld Stadium in Pretoria, South Africa, the home ground of van der Westhuizen's provincial side the Blue Bulls.", -44,2017/2/7,http://www.cnn.com/2017/02/07/us/harambe-cheeto-trnd/index.html,"Cheeto that looks like Harambe worth $100,000? Nothing is okay anymore","(CNN)In the 26th century BC, the Egyptians constructed the Great Pyramid of Giza, an architectural marvel that would remain the tallest structure in the world for millennia, and still stands to this day.","In 1499 AD, Michelangelo completed the Pieta, a transcendent marriage of classical ideals and divine imagination long considered one of the finest works ever freed from stone. In 2017, a Flamin' Hot Cheeto that looks like a dead gorilla was put up for sale on the internet. Well, we had a good run. We're going to choose NOT to believe the Cheeto -- which ""looks like Harambe the Gorilla"" in the way any given Cheeto looks like anything -- sold for almost $100,000 after a 132-episode bidding war. That's what the eBay page says, but if you believe that, then you are admitting the flame of human innovation dies here, snuffed out under an amorphous log of cornmeal and monosodium glutamate. The seller of this foul totem does, however, appear to be legit. The account has been active since 2008 and has enough buyer and seller feedback for there to be a dim possibility that someone doled out a luxury cars' worth of cash on a Cheeto. CNN has reached out for comment. Really, we did. To salt the wound, there are now dozens of Harambe Cheeto-related items polluting the eBay listings, a cruel burlesque at the nadir of consumerism and irony and possibly humanity itself. If you want one, you can buy one with your hard-earned money. Or, you could open up any bag of Cheetos and squint. It doesn't matter. Nothing matters anymore.", -45,2017/2/7,http://www.cnn.com/2017/02/07/africa/maasai-tanzania-wildlife-warriors/index.html,Lion-killer Maasai turn wildlife warriors to save old enemy,"(CNN)The Maasai have roamed Tanzania since time immemorial. Cattle in tow, the East African pastoralists have circled the land looking for fresh grass, co-existing with nature for as long as anyone can remember.","But nature is not always kind. Fifty percent of the world's lion population lives in East Africa -- and lions like to eat livestock. Historically the Maasai would use deadly force to protect their herds, often heading out in revenge parties to hunt and kill lions. There were ritual killings also, known as ""Ala-mayo."" Killing a lion, a symbol of strength and power, was a rite of passage for Maasai initiates into ""Morani,"" the warrior class. Armed with a spear, these youths became men in the process, returning to the tribe to be treated with new-found respect. The Tanzanian government banned ritual killing in the 1970s, but certain pockets of activity were silently condoned. In Ngorongoro Crater, north west of Tarangire National Park and a conservation area since 1959, the practice was judged sustainable due to the high lion concentration and low human presence. In the 1960s the tribe claimed no more than 10 animals per year, but as with so much of the world in the 20th century, the Maasai's population grew in Ngorongoro. Forty lions, if not more, are now under threat annually in the conservation area, and all over Tanzania lion numbers are declining. Conservationists know the problem needs to be addressed, and in a remarkable turnaround they've enlisted the very best gamekeepers to patrol the Maasai Steppe: the Maasai themselves. At around 5am the Maasai ""Wildlife Warriors"" rise to birdsong, nature's alarm clock. A bowl of porridge and cup of chai to start the day. Slipping on a pair of sandals, their soles recycled from old car tires, the Warriors head out of their ""kraal,"" a small sheltered community, to begin tracking. These Maasai have traded in their hunting ways for a life of conservation. Part of an initiative run by the Tanzania People and Wildlife Fund, an organization specializing in human-animal conflict, the Warriors are spread across communities in Tarangire and the surrounding rangeland, using their skills, their lifeblood, to protect what was once their adversary. Beyond the ""boma,"" a low wall surrounding the ""kraal,"" tracks line the dirt. They betray the lions, hyenas and wild dogs who visit in the night, drawn to livestock and, in the dry season, the community's water supply. On an uneventful day, Warriors might take a car owned by the Fund and conduct an animal headcount, circling the Steppe in the early morning. But sometimes tracks start inside the ""boma,"" suggesting a big cat. When big cat footprints are involved, they usually lead to a kill. The next step is crucial. ""People are becoming more and more angry towards wildlife,"" says Wildlife Warrior Lucas Lengoje. In the past a carcass resulted in retribution. The head of cattle per person has decreased among the Maasai in recent years, meaning the pain of every loss is felt all the more. ""The community finds it very difficult to comprehend the importance of the wildlife,"" Lengoje adds. ""It takes time to calm them down and for them to believe you, as they care more about their livestock than wildlife."" Some of the reprisals have become extreme. Aside from spearings, Maasai have begun poisoning carcasses between a lion's initial gorge and second feed. This not only kills the lion, but anything that feeds on the lion's subsequent carcass. Wildlife Warriors intercede, dissipate the situation, and ultimately provide solutions for their communities and those around them. One of their primary concerns is to document the attack and location, using GPS to map the incident on the Fund's database. They'll also warn neighboring herders of the dangers nearby, and sometimes provide contact details so Maasai can claim compensation from the government. Then begins the long-term approach to preventing cattle loss. ""Living Walls"" (African myrrh trees joined by chain link fences) are being used by the Fund and built in collaboration with the Maasai, and have been rolled out across communities. ""The difference between the 'boma' and the Living Wall is that the living wall uses chain link,"" explains Elvis Kisimir, from the Fund. 'Bomas' contain dried twigs from the thorny acacia bush, but chain link is infinitely more effective, especially when fortified with living, fast-growing thorny trees, which only become more impassable with age. In the wet season these walls reach over 12 feet high. ""We currently have more than 700 'bomas,' and the Living Wall is a program that has safeguarded 99% of our livestock at night,"" says Kisimir. This immediate success is being supplemented with education programs fronted by Maasai Wildlife Warriors, aimed at neutralizing any antagonism between man and his fellow predators. ""If we decided to do this on our own, we wouldn't achieve much,"" admits Kisimir. ""Community is everything."" Laly Lichtenfeld, executive director of the Fund, describes this as ""the next step,"" and a way to help create a self-regulating environment in which both Maasai and lions can prosper. ""The Maasai people are absolutely critically integral to the conservation process in northern Tanzania,"" she adds. ""This is their land, and their livelihoods are so dependent on wise environmental stewardship. ""Healthy grasslands mean healthy livestock. And the livestock, the cattle, are core of their being -- who they are. It's their pride, it's their identity; it's their economic wellbeing. And so if they can manage to really keep these ecosystems intact and healthy, then everything in the system benefits.""", -46,2017/2/7,http://www.cnn.com/2017/02/07/health/dalai-lama-humor-how-you-can-have-it-too/index.html,"Playful humor: The Dalai Lama's secret weapon (and how it can be yours, too)","(CNN)When you are the spiritual leader of an entire people, you've lived your entire adult life in exile, your movements are restricted by ever-watchful bodyguards and you must watch every word for fear of setting off an international incident, you would think your face would reflect the weight of the world.","But when you are the Dalai Lama, the deepest lines on your 81-year-old skin are laugh lines. His Holiness knows how to find joy in nearly everything and everyone, largely because of his sense of humor. It is something he uses regularly to quickly win over crowds and something he thinks everyone should embrace in order to have a better life. When he presided over the Emory-Tibet Symposium in December at an imposing temple owned by the Tibetan community in exile in Mundgod, India, he showed his teasing nature right away. Gathered were thousands of saffron-robed nuns and monks, world-renowned scientists, Tibetans and many interested followers, eager learn how to ""bridge science and Buddhism for mutual enrichment."" The crowd looked as serious as the topic. As they waited in the temple, they murmured quietly and shifted in their seats. Finally, the low moan of a guttural chant began, and everyone quieted and sat up a little straighter. When His Holiness finally emerged from a side door, the sound of scraping plastic chairs echoed throughout the hall as the crowd stood and applauded. Some prostrated themselves on the ground. His Holiness walked in slowly, surrounded by monks in traditional robes and bodyguards in Western dress. Two monks gently guided him down a small set of steps. At the bottom, the Dalai Lama smiled with great joy, laughing and waving at the friends gathered in his honor. ""When you smile, I notice everyone around you smiles. I notice it is very contagious as well,"" said Dr. Sanjay Gupta, CNN's Chief Medical correspondent, in an interview with His Holiness after the event. ""Basically, we are social animal,"" the Dalai Lama replied. ""We need friend. In order to develop genuine friendship, trust is very important. For trust, if you show them genuine sort of respect, genuine love, then trust come, so here I think the expression of genuine warm feeling smile I think part of that, that's genuine smile."" But it is clear that joking around is also key to winning over a crowd. At the event, the Dalai Lama finally sat in his floral chair, against what looked like a pillow one of the monks must have grabbed from his bed, hoping to make him more comfortable. The crowd quieted, leaning forward to hear what His Holiness had to say. But instead of a prayer or a gentle word of wisdom, he decided it was the perfect time to wipe his brow. He took his time and then, rather than putting the white washcloth on the table next to him, he immediately put it on his head, where it rested like an absurd floppy hat. Giggling, he wore it through first part of the meeting, for about an hour. Then, he reached with some ceremony for a glass jar of candy on the low table in front of him. ""This is not decoration,"" he joked, holding it up. He pointed to himself -- ""eat"" -- and promptly unwrapped the gold foil to pop a hard candy into his mouth. His impish behavior, laughing and joking did the trick. The solemn and respectful crowd began laughing with him, warming up immediately. Everyone seemed ready to listen to a discussion of heavy topics such as ""What are the fundamental constituents of the universe, and how did it originate?"" and ""How is knowledge established and what constitutes valid reasoning?"" When Gupta later asked His Holiness about why he decided to wear the washcloth so comically, the Dalai Lama admitted it was, in part, because he is practical and gets hot. But he also hinted that there was something deeper: It's important for leaders, particularly spiritual leaders, to ""act like a human being"" and to be playful. Often, ""everyone too much formal,"" he said, ""That is self-torture."" And though he knows he must respect those leaders, despite ""no word, no movement"" from them, he has sometimes developed ""a strange thinking"" and often hopes something unexpected will happen to make that leader act more ""like a human being."" ""I had this experience (in) 1954 when I was in Peking,"" His Holiness said. ""Some Indian ambassador, he call on me, come to my room, then as usual, some Chinese foreign ministries officials come. ""Everyone too much formal like that,"" he said then mimed being stiff. ""Then somehow they brought some fruit, somehow dumped over, and then everyone acted like a human being,"" he said, laughing and miming people scrambling around, as he saw them do around on the floor. His Holiness suggests everyone let themselves be playful and find the funny in life. In his book ""My Spiritual Journey,"" he calls himself a ""professional laugher"" and writes that he comes from a cheerful family that is always ""amusing ourselves, teasing each other, joking. It's our habit."" A quick laugh and an ability to see humor in daily situations and to be playful have been shown to help adults lower stress levels, both for themselves and for those around them, studies show. By being playful and using humor, people also become more observant and more empathetic. They are often bored less, they learn more, they have more friends, and studies show that people who are willing to let out their playful side tend to have a better sense of all-around well-being. His Holiness believes that no matter how difficult your life may be, this approach will bring you something much deeper. ""Thinking only of the negative aspect doesn't help to find solutions and it destroys peace of mind,"" he writes. ""I love smiles, and my wish is to see more smiles, real smiles. ... If we want those smiles, we must create the reasons that make them appear.""", -47,2017/2/7,http://www.cnn.com/2017/02/07/travel/taschen-rooftop-photos-book/index.html,13 incredible rooftops around the world,"(CNN)As cities become more crowded and congested at the street level, refuge can often be found many stories above.","More than 50 rooftops designed by some of the world's most renowned and up-and-coming architects and landscape designers is featured in ""Rooftops: Islands in the Sky,"" Taschen's photography book releasing February 15 in the United States. The book features forests reaching for the skies, blooming gardens, pools flowing to a building's edge, art installations and outdoor spaces that switch easily from serving lunch to pouring drinks as nighttime hot spots. ""There may be as many ways to design and convert rooftops as there are buildings in modern cities,"" writes the book's editor Philip Jodidio. ""The attraction of the roof, the high place, is ancient, surely going further back in the human psyche than even the Old and New Testaments or the Qur'an,"" he goes on. ""Simply put, the roof offers a view, a place to contemplate the city, or to escape from its bustle and noise, at least for a time."" Click through the gallery to see the work of Norman Foster,-Shigeru Ban,-Toyo Ito, Frank Gehry, Ken Smith-and-more.", -48,2017/2/7,http://www.cnn.com/2017/02/07/opinions/trump-claim-on-under-covering-terrorism-is-baloney-bergen/index.html,Trump's terrorism claim is baloney,"Peter Bergen is CNN's national security analyst, a vice president at New America and a professor of practice at Arizona State University. He is the author of ""United States of Jihad: Investigating America's Homegrown Terrorists.""","Now comes President Donald Trump's claim Monday at the key US military base overseeing the war on ISIS -- US Central Command in Tampa, Florida -- that the media aren't reporting terrorism for ""reasons"" the President didn't elaborate upon. Trump told the CENTCOM audience, ""You've seen what happened in Paris and Nice. All over Europe, it's happening. It's gotten to a point where it's not even being reported. And in many cases, the very, very dishonest press doesn't want to report it. They have their reasons, and you understand that."" To ""prove"" that the media aren't covering terrorism adequately the Trump White House, which is fighting in court to reinstate a refugee ban citing the terrorist threat, on Monday night released a list of 78 ""major"" terrorist attacks since September 2014, claiming, ""Most have not received the media attention they deserved."" This is one of the biggest baloney sandwiches this White House has foisted on the public since ... well ... the ""Bowling Green massacre,"" but it's a much bigger and harder-to swallow helping of baloney because it is the President who is forcing it down our throats rather than one of his aides. Taking the White House timeline of terrorist attacks, I ran it through the Nexis database, which is an authoritative resource for tracking media hits of all types, including in newspapers, magazines, wire service reports, TV news shows and the like. The results show that terrorist attacks over the past couple of years are, in fact, some of the most well-reported stories of our times. The total number of media hits for the 78 terrorist attacks that the White House released Monday is 80,878, or about an average of slightly more than 1,000 mentions per incident. And those numbers clearly understate how much coverage the media have given these incidents because a Nexis search only will display a maximum of 3,000 mentions for any given search. There are 16 terrorist attacks on the White House list of purportedly under-covered attacks that each elicited more than 3,000 media mentions. The following are a representative sample: ""?In Ottawa in October 2014 Michael Zehaf-Bibeau killed a Canadian soldier. ""?Two months later in Sydney, Man Haron Monis killed two Australians. ""?In March 2015, 21 tourists were killed at the Bardo Museum in Tunis, Tunisia. ""?Two months later in Garland, Texas, two ISIS-inspired militants attacked a Prophet Mohammed cartoon contest. Luckily no one was killed except the terrorists. ""?In Tunisia, also in 2015, 38 were killed at a beach popular with Westerners. ""?In October 2015, 224 were killed in Sinai, Egypt, when ISIS brought down a Russian passenger jet with a bomb. The terror attacks in Paris and Nice, France, that Trump cited in his CENTCOM speech also received more than 3,000 media mentions. The terrorist attacks that didn't get as much coverage were -- surprise --- the ones where there were no deaths or that took place in countries such as Saudi Arabia or Bangladesh where there is little independent media reporting. In three cases, there were no articles listed in the publications included in the Nexis database, and in each of those cases there were no casualties. The media, including CNN, have exhaustively covered terrorism around the globe since the 9/11 attacks made the issue a central national security concern. Indeed, the wall-to-wall media coverage of the ISIS attacks in Paris in November 2015 in which 129 were killed and the ISIS-inspired attack in San Bernardino, California, a month later in which 14 were killed was instrumental in boosting Trump in the polls, according to the polling analysis site FiveThirtyEight Many Americans felt threatened by the ISIS-directed and ISIS-inspired attacks. As the presidential campaign was in full swing at the beginning of 2016, just over half of Americans said they were very or somewhat worried that they, or a member of their family, would be victims of a terrorist attack. This was the largest number to feel that way since just after the 9/11 attacks. And how did so many Americans learn about the terrorist attacks they were so scared of? Here's a clue: It wasn't through telepathy. Below is the official White House timeline of terrorist attacks since September 2014 with my annotations in bold about the media coverage they each received. (There are a number of incorrectly spelled words I have left as they were in the original.) TIMELINE: September, 2014 - December, 2016 NUMBER OF ATTACKS: 78 MELBOURNE, AUSTRALIA September, 2014 TARGET: Two police officers wounded in knife attack ATTACKER: Abdul Numan Haider 406 stories TIZI OUZOU, ALGERIA September, 2014 TARGET: One French citizen beheaded ATTACKER: Jund al-Khilafah in Algeria 140 stories QUEBEC, CANADA October, 2014 TARGET: One soldier killed and one wounded in vehicle attack ATTACKER: Martin Couture-Rouleau 1,509 stories OTTAWA, CANADA October, 2014 TARGET: One soldier killed at war memorial; two wounded in shootings at Parliament building ATTACKER: Michael Zehaf-Bibeau More than 3,000 stories NEW YORK CITY, NY, USA October, 2014 TARGET: Two police officers wounded in knife attack ATTACKER: US person 477 stories RIYADH, SAUDI ARABIA November, 2014 TARGET: One Danish citizen wounded in shooting ATTACKERS: Three Saudi Arabia-based ISIL members 10 stories ABU DHABI, UAE DATE: December 2014 TARGET: One American killed in knife attack ATTACKER: Dalal al-Hashimi 24 stories SYDNEY, AUSTRALIA December, 2014 TARGET: Two Australians killed in hostage taking and shooting ATTACKER: Man Haron Monis More than 3,000 stories TOURS, FRANCE December, 2014 TARGET: Three police officers wounded in knife attack ATTACKER: Bertrand Nzohabonayo 91 stories PARIS, FRANCE January, 2015 TARGET: One police officer and four hostages killed in shooting at a kosher supermarket ATTACKER: Amedy Coulibaly More than 3,000 stories TRIPOLI, LIBYA January, 2015 TARGET: Ten killed, including one US citizen, and five wounded in bombing and shooting at a hotel frequented by westerners ATTACKERS: As many as five ISIL-Libya members 837 stories RIYADH, SAUDI ARABIA January, 2015 TARGET: Two US citizens wounded in shooting ATTACKER: Saudi Arabia-based ISIL supporter 5 stories NICE, FRANCE February, 2015 TARGET: Two French soldiers wounded in knife attack outside a Jewish community center ATTACKER: Moussa Coulibaly 268 stories COPENHAGEN, DENMARK February, 2015 TARGET: One civilian killed in shooting at a free-speech rally and one security guard killed outside the city's main synagogue ATTACKER: Omar Abdel Hamid el-Hussein 535 stories TUNIS, TUNISIA March, 2015 TARGET: 21 tourists killed, including 16 westerners, and 55 wounded in shooting at the Bardo Museum ATTACKERS: Two ISIL-aligned extremists More than 3,000 stories KARACHI, PAKISTAN April, 2015 TARGET: One US citizen wounded in knife attack ATTACKERS: Pakistan-based ISIL supporters 375 stories PARIS, FRANCE April, 2015 TARGET: Catholic churches targeted; one civilian killed in shooting, possibly during an attempted carjacking ATTACKER: Sid Ahmed Ghlam 612 stories ZVORNIK, BOSNIA April, 2015 TARGET: One police officer killed and two wounded in shooting ATTACKER: Nerdin Ibric 61 stories GARLAND, TX, USA May, 2015 TARGET: One security guard wounded in shooting at the Prophet Muhammad cartoon event ATTACKERS: Two US persons More than 3,000 stories BOSTON, MA, USA June, 2015 TARGET: No casualties; one police officer attacked with knife ATTACKER: US person 627 stories EL GORA (AL JURAH), EGYPT June, 2015 TARGET: No casualties; camp used by Multinational Force and Observers (MFO) troops attacked in shooting and bombing attack ATTACKERS: Unknown number of ISIL-Sinai members 0 stories LUXOR, EGYPT June, 2015 TARGET: One police officer killed by suicide bomb near the Temple of Karnak ATTACKER: Unidentified 101 Stories SOUSSE, TUNISIA June, 2015 TARGET: 38 killed and 39 wounded in shooting at a beach frequented by westerners ATTACKERS: Seifeddine Rezgui and another unidentified attacker More than 3,000 stories LYON, FRANCE June, 2015 TARGET: One civilian killed in beheading and explosion at a chemical plant ATTACKER: Yasin Salhi 188 stories CAIRO, EGYPT July, 2015 TARGET: One killed and nine wounded in VBIED attack at Italian Consulate ATTACKER: Unidentified ISIL operatives 1,085 stories CAIRO, EGYPT July, 2015 TARGET: One Croatian national kidnapped; beheaded on August 12 at an unknown location ATTACKER: Unidentified ISIL-Sinai operative 466 stories PARIS, FRANCE August, 2015 TARGET: Two civilians and one US soldier wounded with firearms and knife on a passenger train ATTACKER: Ayoub el-Khazzani 2,484 stories EL GORA, EGYPT September, 2015 TARGET: Four US and two MFO troops wounded in IED attack ATTACKER: Unidentified 5 stories DHAKA, BANGLADESH September, 2015 TARGET: One Italian civilian killed in shooting ATTACKER: Unidentified 788 stories COPENHAGEN, DENMARK September, 2015 TARGET: One police officer wounded in knife attack ATTAKER: Palestinian national 130 stories EL GORA, EGYPT October, 2015 TARGET: No casualties; airfield used by MFO attacked with rockets ATTAKER: Unidentified ISIL-Sinai operatives 0 stories PARRAMATTA, AUSTRALIA October, 2015 TARGET: One police officer killed in shooting ATTAKER: Farhad Jabar 1,826 stories RANGPUR, BANGLADESH October, 2015 TARGET: One Japanese civilian killed in shooting ATTAKER: Unidentified 471 stories HASANAH, EGYPT October, 2015 TARGET: 224 killed in downing of a Russian airliner ATTAKER: Unidentified ISIL-Sinai operatives More than 3,000 stories MERCED, CA, US November, 2015 TARGET: Four wounded in knife attack on a college campus ATTAKER: US person 163 stories PARIS, FRANCE November, 2015 TARGET: At least 129 killed and approximately 400 wounded in series of shootings and IED attacks ATTAKERS: Brahim Abdelslam, Saleh Abdeslam, Ismail Mostefai, Bilal Hadfi, Samy Amimour, Chakib Ahrouh, Foued Mohamed Aggad, and Abdelhamid Abaaoud More than 3.000 stories DINAJPUR, BANGLADESH November, 2015 TARGET: One Italian citizen wounded in shooting ATTAKER: Unidentified 203 stories RAJLOVAC, BOSNIA December, 2015 TARGET: Two Bosnian soldiers killed in shooting ATTAKER: Enes Omeragic 42 stories SAN BERNADINO, CA December, 2015 TARGET: 14 killed and 21 wounded in coordinated firearms attack ATTAKERS: Two US persons More than 3,000 stories LONDON, ENGLAND, UK December, 2015 TARGET: Three wounded in knife attack at an underground rail station ATTAKER: Muhyadin Mire 44 stories DERBENT, RUSSIA December, 2015 TARGET: One killed and 11 wounded in shooting at UN World Heritage site ATTAKER: Unidentified ISIL-Caucasus operative 286 stories CAIRO, EGYPT January, 2016 TARGET: Two wounded in drive-by shooting outside a hotel frequented by tourists ATTAKERS: Unidentified ISIL operatives 5 stories PARIS, FRANCE January, 2016 TARGET: No casualties; attacker killed after attempted knife attack on Paris police station ATTAKER: Tarek Belgacem 97 stories PHILADELPHIA, PENNSYLVANIA January, 2016 TARGET: One police officer wounded in shooting ATTAKER: US person 321 stories HURGHADA, EGYPT January, 2016 TARGET: One German and one Danish national wounded in knife attack at a tourist resort ATTAKER: Unidentified 5 stories MARSEILLES, FRANCE January, 2016 TARGET: One Jewish teacher wounded in machete attack ATTAKER: 15 year-old Ethnic Kurd from Turkey 184 stories ISTANBUL, TURKEY January, 2016 TARGET: 12 German tourists killed and 15 wounded in suicide bombing ATTAKER: Nabil Fadli More than 3,000 stories JAKARTA, INDONESIA January, 2016 TARGET: Four civilians killed and more than 20 wounded in coordinated bombing and firearms attacks near a police station and a Starbucks ATTAKERS: Dian Joni Kurnaiadi, Muhammad Ali, Arif Sunakim, and Ahmad Muhazan bin Saron 2,530 stories COLUMBUS, OH, US February, 2016 TARGET: Four civilians wounded in machete attack at a restaurant ATTAKER: US person 108 stories HANOVER, GERMANY February, 2016 TARGET: One police officer wounded in knife attack ATTAKER: Safia Schmitter 60 stories ISTANBUL, TURKEY March, 2016 TARGET: Four killed and 36 wounded in suicide bombing in the tourist district ATTAKER: Mehmet Ozturk 306 stories BRUSSELS, BELGIUM March, 2016 TARGET: At least 31 killed and 270 wounded in coordinated bombings at Zaventem Airport and on a subway train ATTAKERS: Khalid el-Bakraoui, Ibrahim el-Bakraoui, Najim Laachraoui, Mohammed Abrini, and Osama Krayem More than 3,000 stories ESSEN, GERMANY April, 2016 TARGET: Three wounded in bombing at Sikh temple ATTAKERS: Three identified minors 197 stories ORLANDO, FL, US June, 2016 TARGET: 49 killed and 53 wounded in shooting at a nightclub ATTAKER: US person More than 3,000 stories MAGNANVILLE, FRANCE June, 2016 TARGET: One police officer and one civilian killed in knife attack ATTAKER: Larossi Abballa 1,124 stories KABUL, AFGHANISTAN June, 2016 TARGET: 14 killed in suicide attack on a bus carrying Canadian Embassy guards ATTAKER: ISIL-Khorasan operative 1,404 stories ISTANBUL, TURKEY June, 2016 TARGET: 45 killed and approximately 240 wounded at Ataturk International Airport ATTACKERS: Rakhim Bulgarov, Vadim Osmanov, and an unidentified ISIL operative More than 3,000 stories DHAKA, BANGLADESH July, 2016 TARGET: 22 killed, including one American and 50 wounded after hours-long siege using machetes and firearms at holy Artisan Bakery ATTACKERS: Nibras Islam, Rohan Imtiaz, Meer Saameh Mubasheer, Khairul Islam Paye, and Shafiqul Islam Uzzal More than 3,000 stories NICE, FRANCE July, 2016 TARGET: 84 civilians killed and 308 wounded by an individual who drove a truck into a crowd ATTACKER: Mohamed Bouhlel More than 3,000 stories WURZBURG, GERMANY July, 2016 TARGET: Four civilians wounded in axe attack on a train ATTACKER: Riaz Khan Ahmadzai 283 stories ANSBACH, GERMANY July, 2016 TARGET: At least 15 wounded in suicide bombing at a music festival ATTACKER: Mohammad Daleel 300 stories NORMANDY, FRANCE July, 2016 TARGET: One priest killed in knife attack ATTACKERS: Adel Kermiche and Abdel Malik Nabil Petitjean 1,637 stories CHALEROI, BELGIUM August, 2016 TARGET: Two police officers wounded in machete attack ATTACKER: Khaled Babouri 10 stories QUEENSLAND, AUSTRALIA August, 2016 TARGET: Two killed and one wounded in knife attack at a hostel frequented by Westerners ATTACKER: Smail Ayad 852 stories COPENHAGEN, DENMAKR September, 2016 TARGET: Two police officers and a civilian wounded in shooting ATTACKER: Mesa Hodzic 43 stories PARIS, FRANCE September, 2016 TARGET: One police officer wounded in raid after VBIED failed to detonate at Notre Dame Cathedral ATTACKERS: Sarah Hervouet, Ines Madani, and Amel Sakaou 21 stories SYDNEY, AUSTRALIA September, 2016 TARGET: One civilian wounded in knife attack ATTACKER: Ihsas Khan 269 stories ST. CLOUD, MN, US September, 2016 TARGET: 10 wounded in knife attack in a mall ATTACKER: Dahir Ahmed Adan 241 stories NEW YORK, NY; SEASIDE PARK AND ELIZABETH, NJ, US September, 2016 TARGET: 31 wounded in bombing in New York City; several explosive devices found in New York and New Jersey; one exploded without casualty at race in New Jersey; one police officer wounded in shootout ATTACKER: Ahmad Khan Rahami More than 3,000 stories BRUSSELS, BELGIUM October, 2016 TARGET: Two police officers wounded in stabbing ATTACKER: Belgian national 31 stories KUWAIT CITY, KUWAIT TARGET: No casualties; vehicle carrying three US soldiers hit by a truck ATTACKER: Ibrahim Sulayman 0 stories MALMO, SWEDEN October, 2016 TARGET: No casualties; mosque and community center attacked with Molotov cocktail ATTACKER: Syrian national 26 stories HAMBURG, GERMANY October, 2016 TARGET: One killed in knife attack ATTACKER: Unknown 516 stories MANILA, PHILIPPINES November, 2016 TARGET: No casualties; failed IED attempt near US Embassy ATTACKERS: Philippine nationals aligned with the Maute group 1 story COLUMBUS, OH, US November, 2016 TARGET: 14 wounded by individuals who drove a vehicle into a group of pedestrians and attacked them with a knife ATTACKER: US person More than 3,000 stories N'DJAMENA, CHAD November, 2016 TARGET: No casualties; attacker arrested after opening fire at entrance of US Embassy ATTACKER: Chadian national 11 stories KARAK, JORDAN December, 2016 TARGET: 10 killed and 28 wounded in shooting at a tourist site ATTACKERS: Several gunmen 2,037 stories BERLIN, GERMANY December, 2016 TARGET: 12 killed and 48 wounded by individual who drove truck into a crowded market ATTACKER: Anis Amri More than 3,000 stories", -49,2017/2/7,http://www.cnn.com/2017/02/07/opinions/fight-for-democracy-opinion-ghitis/index.html,Trump vs. America: The fight for democracy,"Frida Ghitis is a world affairs columnist for The Miami Herald and World Politics Review, and a former CNN producer and correspondent. The views expressed in this commentary are her own.","Trump was defending the Russian President after Fox's Bill O'Reilly called Putin a ""killer."" His response, ""You think our country is so innocent,"" reveals Trump's dismissive attitude toward the most fundamental democratic norms that America has aspired to embody. Clearly, the United States has made many grave mistakes throughout history, but the country's guiding principles have remained unchanged: the fierce defense of individual liberties and an unshakeable commitment to democratic ideals. In Russia, by contrast, Putin has decimated the opposition, imprisoned critics and taken control of all branches of government. The free press is a faint shadow of its former self, and Putin's critics, including journalists, continue to turn up dead under suspicious circumstances. One of Putin's most vocal critics, Vladimir Kara-Murza, remains in a Moscow hospital in ""grave condition"" after suffering a ""full organ failure"" that, as his lawyer told CNN, doctors agree is the result of a ""toxic substance."" Despite Trump's comments and recent executive actions, Trump should expect push-back from a country committed to liberal democratic principles. This division between the President and the American people makes the United States the latest battleground in a worldwide clash of ideologies. When the wave of populist authoritarianism started, few would have expected the United States, the principal beacon of modern democracy for over 200 years, to fall under the spell of nativist politics. But fall it did. The many Americans who remain skeptical of Trump and now find themselves protesting on a weekly basis can take comfort in knowing they are not alone. On Sunday, while the American public was rapt in the Super Bowl, an astonishing sight came into focus in Romania. Hundreds of thousands of people took to the streets to protest a government push to decriminalize corruption. The remarkable part was that protesters had already won. Demonstrations had begun six days earlier, after the government tried to quietly pass a decree that would have cleared the records and freed from prison people convicted of corruption for amounts less than $47,000. The government agreed to rescind the order. But the demonstrations only grew, with protesters saying they came out to protect their democracy. Romanians knew they had to fight for democracy because of their recent communist past and the onslaught in neighboring countries against liberal democracy, which requires separation of powers, a free judiciary, free and fair elections and, yes, freedom to protest. Sadly, now, in the aftermath of the global financial crisis and the surge of refugee arrivals, demagogic politicians have leveraged popular discontent, lashing out against foreigners, vowing to put their country's ""true"" residents first, and gradually dismantling the foundations of liberal democracy. Romanians seem to have won round one. But the forces defending democracy elsewhere, including in neighboring Hungary, have been losing. Hungarian Prime Minister Viktor Orban openly declared he's building an ""illiberal state,"" and is making strides in his quest to imitate regimes run by the likes of Putin. Democratic freedoms have suffered sharp reverses in recent years. Turkey is slipping into dictatorship, Venezuela remains mired in autocracy, as do countries in every continent. But what's ahead for the United States? Some veterans of the battle are pessimistic. When millions of mostly women took to the streets the day after Trump's inauguration, Julia Ioffe, whose family fled Russia, threw cold water on their jubilant movement, tweeting, ""The happy, feisty crowds, the clever signs - it all feels like the protests in Moscow in 2011. That went nowhere."" It's true that protests have not achieved much against other authoritarian regimes. In Venezuela, the Chavista regime came to power in 1999, and despite every effort from a determined opposition, it remains in power. In Turkey, mass demonstrations, and even what seemed like electoral victories, have failed to stop Recep Tayyip Erdogan's march to de facto dictator. In Russia, Putin is all but unchallenged, with a quiescent legislature and near-complete control of the news Russians consume. But the story is likely to have a different outcome in the United States. Yascha Mounk, a Harvard expert in right-wing populism, observed that Trump is turning out to be ""more authoritarian than I feared,"" though the opposition is also proving ""more courageous than I expected."" America has deeper democratic roots than any of the countries whose liberal democracies has been toppled. The national religion is freedom from tyranny. The day after Trump took office, Americans put on what may have been the largest national demonstration in the country's history. A week later, when Trump issued his travel ban for seven Muslim-majority countries, spontaneous demonstrations materialized at major airports across the country. Lawyers filed legal briefs on the spot. While the Republican-controlled Congress has proven mostly silent in countering Trump's attacks on the independent media and the judiciary, the press appears determined to do its job and judges seem unintimidated by White House bullying. Even members of the executive branch are speaking out. Many Americans support Trump, but there are signs that his sharp break with democratic traditions, his attacks on judges, his fulminations against the media and against critics of all stripes -- from comedians to restaurant reviewers -- are producing a backlash. History is being written by two opposing forces -- those fighting for and those fighting against liberal democracy. President Trump's likening of America to Putin's Russia puts him on the illiberal side. But the American people have spent hundreds of years building a strong democratic system, and they are prepared to fight to defend it.", -50,2017/2/7,http://www.cnn.com/2017/02/07/opinions/trumps-moral-relativism-lucas-opinion/index.html,Trump has become Putin's ally in Russia's war on the West,"Edward Lucas is a senior editor at The Economist, where he was the Moscow bureau chief from 1998 to 2002. He is also senior vice president at the Center for European Policy Analysis, a Washington, DC, think tank. The opinions expressed in this commentary are his own.","""Whataboutism"" was a favorite Kremlin propaganda technique during the Cold War. It aimed to portray the West as so morally flawed that its criticism of the Soviet empire was hypocritical. Any criticism of the Soviet Union (the war in Afghanistan, martial law in Poland, persecution of dissidents) was met with a list of Western abuses (supporting fascist dictatorships, trampling trade unions, racial oppression). It was well encapsulated in a joke about the fictional Radio Yerevan (a staple of Soviet-era humor) in which a caller asks what is the average wage of an American manual worker. The real answer would undermine Soviet claims to economic superiority, so after a pause, the pundit replies: ""Over there they lynch Negroes."" By the time the system collapsed, that phrase had become a derisive synecdoche for Soviet propaganda as a whole. ""Whataboutism"" seemed to have died in the 1990s when Russia's official aim was to become like the West. But it made a comeback under President Vladimir Putin, whose propaganda machine specializes in spreading FUD (Fear Uncertainty and Doubt) in the West. If Americans, Britons, Germans and others can be made to believe that their rulers are crooks and idiots, and that legality and liberty are a sham, then they will be much less likely to take risks and make sacrifices in defending their own countries. To some extent, ""whataboutism"" is a sensible tactic in argument. Criticism delivered from a purported moral high ground deserves special scrutiny. We shouldn't take lessons from Russia about minority rights, say, given the way that the Kremlin mistreats its own indigenous populations -- Maris, Buryats, Komis and the like. But unlike Putin's Russia, the West is genuinely well placed to make such criticisms. We are not perfect. But we are self-critical and self-correcting. The cornerstone of our system is contestability. Of course, our elected representatives and government officials make mistakes -- but they are constrained and challenged for them. They risk civil and criminal legal actions, impeachment, media scrutiny, public protest and being tossed out of office into a lifetime of disgrace. These checks and balances are imperfect too, but they do work. President François Hollande has misruled France only mildly by Russian standards. But whereas he won't get a second term, President Putin can stay in office as long as he wants. President Trump has made an outrageous mistake in his visa ban and has immediately run into legal obstacles. When was the last time a Russian court told Putin that his actions were illegal? All this is lost on Trump. He appears to wish that America were more like Russia. He finds legal constraints on executive power outrageous. That view is not just mistaken: it is dangerous. All over the world, people look to America as a beacon of freedom and justice. It sets a standard (albeit sometimes a theoretical one) by which other political systems are judged. That represents a huge store of political capital. Trump is squandering it with every word he utters. Moral relativism corrodes sentiment in the frontline states of the new cold war. In places like Bulgaria, Georgia, Moldova and Ukraine, pro-Western figures are feeling that their struggle is doomed. Why bother fighting for freedom when the leader of the free world has given up? Worse than this, the thinking will spread that maybe Putin is right: the world is all about power and money, and the political currency that really works is coined from lies and fear. If those are the real rules of the game, then better to play them. It seems to have worked for Trump, after all. Edward Lucas is a senior editor at The Economist, where he was the Moscow bureau chief from 1998 to 2002. He is also senior vice president at the Center for European Policy Analysis, a Washington, D.C., think tank. The opinions expressed in this commentary are his own.", -51,2017/2/7,http://www.cnn.com/2017/02/06/opinions/sean-spicer-cupp/index.html,Sean Spicer has a problem: Melissa McCarthy,"S.E. Cupp is the author of ""Losing Our Religion: The Liberal Media's Attack on Christianity,"" co-author of ""Why You're Wrong About the Right"" and a columnist at the New York Daily News. The opinions expressed in this commentary are her own.","Let's hope these came in handy when he watched Melissa McCarthy parody the White House spokesman on ""Saturday Night Live"" over the weekend. We all know his thin-skinned, humorless boss, President Donald Trump, has not taken kindly to SNL's countless spoofs, complaining on Twitter that SNL is ""unwatchable,"" ""totally biased"" and ""not funny."" He's also said that Alec Baldwin's impersonation ""just can't get any worse."" I happen to largely agree with that assessment. ""SNL"" has taken to merely mimicking Trump and his antics through Baldwin, rather than cleverly satirizing him. Despite plenty of material to work with, thus far, the Trump-SNL era has been, well, boring and predictable. Until this weekend, that is. The difference between the usual Trump spoofs and McCarthy's take on Spicer is that hers was actually hilarious. A podium-wielding McCarthy plays on Spicer's rocky start at the White House -- his oratorical stumbles, his new, Trump-like scorn for critical press, his equally Trumpian fact-manipulation -- with a well-studied ear for his tics and tone. Exaggerating a White House spokesman might sound like inside-the-beltway kind of humor that average viewers won't appreciate or find funny. But in the theatrical, reality-television era of Trump, everyone around him is a character, too. And in this case, ""SNL"" writers didn't just mimic Spicer, they encapsulated a far bigger story: this is what it looks like when a normal, professional political operative becomes Trumpified. And if you didn't laugh out loud, you may have Trump's thin-skin disorder. But will Spicer follow his boss's lead, tweeting out how unfunny ""SNL"" is, or telling reporters that the show is biased and unwatchable? Not if he's smart, he won't. If an ""SNL"" spoof is funny, there's only one way for the spoofee to handle it -- embrace it. At his next press briefing (Monday's was called off), where he will undoubtedly be asked about it, he should laugh it off, say he was flattered, and then make a joke at his own expense. He already took a crack at this approach in an interview with Extra on Sunday, telling AJ Calloway that McCarthy ""could dial back"" a bit, but also managing to call the show ""funny."" If he can keep this up, he'd be following a long tradition of politicos taking parody in stride. In 1995, House Republicans invited Chris Farley, who'd been impersonating Speaker Newt Gingrich on ""SNL,"" to impersonate him to his face at the conference meeting while Gingrich laughed along. After spoofing George H.W. Bush for four years, Dana Carvey was invited to the White House to meet him. After Bush lost to Bill Clinton, he had Carvey come cheer up his staff. In October of 2008, after Tina Fey spent weeks perfectly portraying then Alaska Governor Sarah Palin, Palin appeared on ""SNL"" alongside Fey and Alec Baldwin, who ""mistakes"" her for Fey -- his former 30 Rock co-star -- and asks how she could appear on the show with the real Palin, ""that horrible woman."" But that was all BT -- Before Trump. I know dozens of people in his new administration and many have become more like him, at least outwardly. They've become defensive, self-serious and aggressive, and they've adopted Trump's rhetorical penchant for hyperbole, bombast and fact-blurring. They say things publicly that I know they never would have said before. It seems like they're playing a part in a new Trump reality show. I wouldn't be surprised if Spicer reverts to Trump's lack of humor toward unflattering satire, just to stick to script. But that would make it infinitely worse. It's already problematic that the credibility of the White House and its staff is being lampooned only two weeks into the job. With the elevation of Trump political adviser Steve Bannon, some are wondering who are the cooler heads and saner voices surrounding the president. If the White House wants to allay these fears -- and perhaps they do not -- Spicer should be his cooler, saner, pre-Trump self, and play along with McCarthy's performance. Otherwise, the notion that Trump's White House can't take a joke gets a lot more serious.", -52,2017/2/2,http://www.cnn.com/2017/01/30/world/myfreedomday-students-stand-up-to-slavery/index.html,#MyFreedomDay: Students stand up to slavery on March 14,"(CNN)Right now, between 21 and 45 million people are trapped in slavery. At least 5.5 million of those are children.","Although slavery is outlawed in every country, criminals earn more than $150 Billion every year from enslaving people. But you can do something about it. On MARCH 14, 2017, we want YOU and your school to join us for #MyFreedomDay. We're asking students to organize events at their school on the day to highlight modern slavery and celebrate freedom. The schools that show the most spirit in fighting slavery will be featured on CNN TV, CNN.com and CNN Facebook. A few schools will even receive a visit from a CNN correspondent, who will report live from the school on the day. So how do you take part? We're encouraging students and teachers to come up with their own ideas, but here are some suggestions for the kind of thing you could do. Film Screening - Look for movies or documentaries that deal with human trafficking. If you want to use a CNN documentary, we'll let you show it for free. You can watch the videos at cnn.com/myfreedom. Art Show -- Create art work, in any media, and show it off at the school then post it to Twitter or Instagram using #MyFreedomDay. The theme can be anti-slavery and should include peaceful, hopeful messages; art work about survivors and traffickers, and any form of expression that highlights human trafficking in a way that will raise awareness to your community. Stand for Freedom -- Students can stand for 45 mins (or 45 hours, if you're really dedicated!) to represent the 45 million victims of slavery in the world today. Holi Day - The Indian Festival in March celebrates love and color to raise awareness and money. Festivities involve washable pigmented powders that can be thrown at each other. Add music and a booth for human trafficking information and you have a full day of fun for the community. Panel Discussion -- Invite local lawmakers and anti-trafficking organizations to discuss the issue and what it looks like not just abroad, but in your hometown. Day of Service -- Support a half-day of service where students volunteer at rehabilitation centers, visit their local lawmakers for a call to action, or collect items needed for survivors in conjunction with local organizations. It doesn't matter what you do, as long as you do something. Let us know your plans by telling us on Twitter or Instagram, using #MyFreedomDay. (You must be aged 13 or older to post on social media). Find out more at cnn.com/myfreedom. And you can use the same hashtag to tell us what freedom means to you. - It could be the freedom to see your friends or family - Freedom to be yourself - Freedom to do the job you choose - Freedom to travel - Freedom to express yourself the way you choose Whatever freedom means in your life -- the important thing is the message, and encouraging people to think about the freedom they may take for granted.", -53,2016/12/21,http://www.cnn.com/2016/12/19/americas/costa-rica-migration/index.html,The other migrant crisis: Thousands risk journey through Latin America,"Paso Canoas, Costa Rica (CNN)Yolanda ticks off the countries she and her husband have passed through in the last three months: Brazil, Peru, Ecuador, Colombia, Panama and now Costa Rica. But she is no tourist.","""A lot of roads, lots of bus rides, and a lot of walking too,"" she tells CNN, agreeing to be interviewed but asking that we only use her first name and not show her face. ""For a 7-month pregnant woman, that is a long, long time."" Yolanda says she is originally from Congo. She and her husband are among tens of thousands of migrants -- many from Africa and Haiti -- criss-crossing South and Central America trying to reach the United States. Now they're stuck in the border town of Paso Canoas, Costa Rica, waiting for the travel documents that will let them enter the country and continue their journey northward. ""I hope to leave soon, for my turn to come fast so I can see a doctor,"" she says. ""I don't want my baby to be born on the road."" Read: Deadly crossing into Europe Long an obligatory stop on an important trade and tourist route, Paso Canoas has seen an unprecedented influx of migrants trekking north in recent months. The huge surge in undocumented arrivals is a logistical and humanitarian nightmare for the government of Costa Rica. ""At this moment Costa Rica is absolutely overwhelmed with our immigration situation and we're doing our best to protect the human rights of the people who are coming,"" said Mauricio Herrera Ulloa, the Costa Rican Communications Minister and point person for the migration crisis. ""No one was prepared or was thinking about the possibility that we would receive 10,000 people from Haiti or Africa."" Perilous journeys Since April, when Costa Rica first started issuing transit visas for undocumented migrants, more than 18,000 people have crossed the border into the country. There are no comparative figures because the demand simply wasn't there in previous years so the visas didn't exist, officials say. It is a situation that is being replicated in border towns throughout the Americas. Experts say migrants are risking their lives in perilous journeys that expose them to crime and hunger and leave them vulnerable to human trafficking. ""They offer (migrants) something that they really need and in the case of these people, what they really need is to get one more border north,"" says Cy Winter, director of border management for the International Organization for Migration (IOM). More on human trafficking That means they often pay so-called coyotes for illegal border crossings -- breaking their ties to the state and public administration system. They often fall prey to false job offers ""just over the border."" ""But then, on the other side, what's arranged there is completely different,"" says Winter. ""So they end up in a place where they have to work and they've got no way to get away from it."" 'Congo isn't a country, it's a password' The IOM and other experts believe the majority of migrants are Haitians, many of them pretending to be Congolese in order to avoid deportation since it would be too costly for most Latin American countries to fly them to Africa. And in both Haiti and Congo, French is spoken. ""The people I've spoken to claiming to be from Congo, barely know the capital and don't know the dialects that are spoken in the Congo and don't know the football jersey,"" said Winter. According to the US Secretary of Homeland Security, some 40,000 Haitian migrants are working their way north, already overwhelming many border crossings into the United States. Many of them entered Brazil as legal refugees after the 2010 earthquake. But the economic crisis in Brazil has made it increasingly difficult for migrants to get jobs, sparking an exodus. ""We've seen accumulations of up to 5,000 people on the border in various countries in South America so it is a concerning uptick in arrivals,"" said Winter. One migrant I met on the Panamanian-Costa Rican border told me that every single one of the dozens of ""Congolese"" migrants milling about the migration office was actually from Haiti. ""Here, Congo isn't a country, it's a password,"" he said, explaining that he and others destroy their passports so that they can re-invent themselves. The bottlenecks at borders have raised serious concerns. The IOM has begun offering workshops at schools like Colegio Progreso -- in Panama, just across the border from Paso Canoas -- teaching students about the connection between migration and human trafficking. In the past, the school was used as a shelter for hundreds of Cubans trying to make their way to the United States. The regional school director says she heard stories of women turning to prostitution in desperation. ""In relation to the people being trafficked, we've heard horror stories,"" said Flor Bonilla. In San Jose, the capital of Costa Rica, Marilia Morales is just as worried. She founded the non-profit Rahab Foundation 20 years ago to rescue, rehabilitate and support survivors of sexual exploitation. Now she's launching a project on Costa Rica's northern border with Nicaragua. ""We have an avalanche of people coming, we have Africans, Haitians, we have people coming from a lot of places,"" Morales told CNN. ""We are in the process of training our personnel and we are going to be working with this community directly because they have to be aware that they could be victims of human trafficking, either for slave labor, sexual slavery and other ends,"" she said. Nicaragua has closed its borders to undocumented migrants forcing thousands on the border into deplorable makeshift shelters and tent villages. On Costa Rica's southern border, officials are trying to process migrants as quickly as possible. They're admitting 100-200 a day, but there is a long waiting list. In Yolanda's case, her hopes for a quick trip through Costa Rica were quickly dashed. Upon arrival, she was told she would have to wait six weeks just for an appointment with immigration officials. Without the laissez-passer, she and her husband can't access the shelters set up by authorities in conjunction with the Red Cross -- warehouses and schools where migrants get free meals and a mattress to sleep on. For the time being, they are sleeping in a makeshift hostel just a short walk from the border. They pay $5 a day and squeeze in with some 50 other people. Yolanda says she left Congo for Brazil, where she worked in a restaurant for a year. She says both she and her husband lost their jobs in the recession -- just as they discovered she was pregnant. Now, their dream is for their daughter to be born in the United States. But the odds are not in their favor. The money they borrowed from family back home is running out and she says they can't ask for more. While Yolanda says she is from Congo, when I first met her, she couldn't at first remember or pronounce what she said was her hometown: Brazzaville, the capital of Congo. When the time came to say goodbye to Yolanda and her husband, I couldn't help but wonder where they came from, and where this journey will ultimately take them. Unfortunately for Haitians trying to make their way into the United States, officials recently eliminated the generous benefits and easy entry that were established after the 2010 earthquake. Which means that even if they make it to the US border after months of travel and hardship, neither Haitian nor Congolese migrants are likely to get in. ", -54,2016/8/23,http://www.cnn.com/2016/08/23/world/canada-indigenous-sex-trafficking/index.html,Canada's stolen daughters: Sex traffickers target indigenous Canadians,"Winnipeg, Canada (CNN)As Lauren Chopek painfully details her story, she does so with the reticence of a survivor, as if somehow remaining silent would have been better.","""I used to blame myself for everything. But, like I, I would say I let them do that to me. I am dirty. It's my fault,"" says Chopek through tears. But Chopek is finally speaking out, determined to shake the guilt and shame that she knows should stalk her perpetrators instead of her. ""Now I see that I was just a child,"" says Chopek, now sitting serenely in a safe house, a healing lodge in rural Manitoba that cradled her in the love and protection she so needed when she escaped her life on the streets. Now 19, Lauren was just 14 when she was sexually exploited and trafficked for sex in her hometown of Winnipeg. But as an indigenous girl in Canada, her story is hardly rare. More from the CNN Freedom Project Canada's indigenous population is very small -- just 4% of the population -- yet more than 50% of all sex trafficking victims in Canada are indigenous. The reasons are complicated and varied but are ultimately rooted in a legacy of poverty, racism and abuse. ""I was actually making these bad choices for a reason,"" explains Chopek. ""You know when you experience sexual abuse it's really confusing. You never know if it's your fault or is it theirs."" 'Targets of violence and abuse' Diane Redsky runs Ma Mawi Wi Chi Itata Centre, which advocates for indigenous women and children, specifically sex trafficking victims. Her organization runs the rural healing lodge where Chopek stayed, as well as safe houses, rehabilitation and prevention programs throughout Manitoba. Read: Trafficked women tattooed by their pimps Redsky says the history of racism against indigenous Canadians feeds into the cycle of violence and exploitation against them. ""It's really difficult to be able to fight those stereotypes as indigenous women when a whole society is targeting indigenous women and girls, particularly for violence and abuse -- and that spills over into sex trafficking,"" says Redsky. Tanay Little's story shows how insidious the abuse can be. Little was just 11 when she was sexually exploited on the streets surrounding her family's home in Winnipeg. An older girl, someone who pretended to be her friend she says, was actually preying on Little, first luring her with drugs and then trafficking her for sex. ""I remember one time that she put me in a room and then two guys, one, not together, but one would come in and then I would have sex with him and then the other the other guy would come in. And then I'd get high after that,"" says Little. She is blunt about what would happen if she refused to have sex with anybody. ""If you're not beat up, then you would get raped by a few of them at once,"" explains Little. ""There is a debt bondage that's between $1,000 and $2,000 a day that these girls must bring, must hand in to their trafficker or else,"" says Redsky. These startling anecdotes have been heard in family homes, police stations and safe houses for years in Manitoba. The province is now taking the lead on an innovative approach to prevention and rehabilitation. Focus on the victims Redsky and others in Manitoba are now leading transformative programs to help identify the threats and risks so prevalent in indigenous communities. It is a new approach to help fight sex trafficking, one that focuses on the needs of the victims. Jennifer Richardson runs Tracia's Trust, Manitoba's strategy to combat sexual exploitation and sex trafficking of children. Crucially, Manitoba's government has committed more than $10 million Canadian a year to fund it, a huge sum for a population of only about a million people. ""Within a 10-year span Manitoba has really grown this massive strategy that is just recognized throughout Canada as being kind of the frontier leaders in this area,"" says Richardson. Read: 'I was raped 43,200 times' The program is different and revolutionary for Manitoba because it uses not only targeted funds, but also words, deeds, and training to fight human trafficking in a whole new way. Outreach on neighborhood streets is one strategy that is executed with the help of law enforcement officers. Almost daily, Winnipeg Police dispatch an elite unit on the streets to try and counter sexual exploitation and human trafficking. The approach is a departure for Winnipeg Police, who now say their efforts are firmly focused on helping victims. Outreach is conducted in a way to help victims and then bring their perpetrators to justice. Law enforcement officials acknowledge a history of bias and racism that in the past prevented police from truly understanding how and why indigenous girls are vulnerable and at risk. ""There is bias in the police service. We recognize it, that there's implicit bias. We certainly have taken steps to try to address that in a myriad of ways,"" says Danny Smyth, Winnipeg's deputy police chief. ""We have a team that's dedicated just to outreach. Just to being out there and trying to get to know who's out on the street, and trying to establish a relationship with them,"" adds Smyth. The legacy of years of abuse and racism though are making it difficult for Canada's indigenous community to heal and move on. Canada will soon launch an inquiry that will focus on why hundreds of indigenous women and girls have gone missing or been murdered over the years. Canadian and independent studies have revealed that indigenous women and girls are five times more likely to die in violent circumstances than non-indigenous women and girls. ""We're still in a society that targets indigenous women and girls. In fact the national task force concluded that there's a market for indigenous girls,"" says Redsky, adding, ""what that leads to is a society who views indigenous women as less than, and in fact of no human value.""", -55,2016/4/22,http://www.cnn.com/2016/04/21/us/project-vic-child-abuse/index.html,How child predator was caught by tiny clue in photo he posted online,"(CNN)In a bathroom, the predator has placed a child on the counter to photograph his evil acts.","In the background of the photo, which was posted online, are products including prescription medication. But zooming in on that pill bottle makes the details unreadable. In a small, dark lab Jim Cole, special agent and supervisor of Victim Identification at the Homeland Security Investigations Cyber Crimes Center gets to work using the latest technology available. Using technology to identify abusers ""Utilizing some technology that hadn't even been released to the public yet we were able to take a look at the bottle and reverse out some of the motion blur,"" Cole said. They can now see the offender's first name ""Stephen,"" the first two letters of the last name and the first three digits on the prescription order. With that he applies to the pharmacy for the customer details of every person who fits that criteria. It narrows the list down to a man named ""Stephen Keating."" But that's not all. The offender's fingers are also in the picture and incredibly this crack team manages to pull the fingerprints from the image. ""That was the first time we were able to do that,"" Cole said. The evidence was strong enough to put Stephen Keating behind bars for 110 years. Investigators rescued his 14 victims. No victim left behind Cole co-founded Project VIC: their aim is that no victim is be left behind. ""We strive to find these children as quick as possible,"" Cole said. ""The longer it takes us the longer that child is in harm's way."" Read: Raid reunites trafficked sisters It's not an easy task when Cole says they are seeing 500,000 images a week: that's over 25 million a year. The Keating case ran for about three weeks and in the past it could have taken months -- or worse, the image may never have been uncovered at all. Using technology known as ""Photo DNA"" their computers can wade through the hundreds of thousands of photos fast, categorizing the ones they've already seen to allow his team to focus on the new victims. ""What used to take us nine months now takes us a month,"" said Cole. ""It helps us review video on a scale of about 100 times faster than previously,"" he added. ""It's been a complete game-changer for law enforcement and we get that feedback from the field all the time."" Easing psychological burden The efficiency not only saves time, it helps ease the psychological burden on investigators. ""We definitely see a mental health benefit because the nature of our offenders is they are trading material we've seen hundreds of thousands of times in addition to the new material,"" Cole said. Read: Vietnamese girls smuggled in to China, sold as brides The technology helped investigators find a seemingly harmless photo of a known offender with her victim on vacation. The image showed the pair holding fish at a campsite. The fish were isolated from the image and sent to Cornell University, which provided investigators with a geographical area where those fish can be caught. The campsite image, with the child and perpetrator removed, was sent to every single campsite advertiser in that location. Upon tracking down the actual campsite they found the same photo posted in the reception room. ""Within four hours we had her identified,"" Cole said. The child was rescued and the woman is now serving a 25-year sentence. On another image of an offender with a young girl, the Project VIC team noticed a company logo on the man's sweatshirt but they couldn't decipher what was written. Some cutting edge technology helped make the logo almost completely readable. An online search for names that might match the letters led investigators to a plumbing business. The offender, a former employee, was tracked down and four victims were rescued. Global problem The number of images like these being shared online is on the rise. Last year the National Center for Missing and Exploited Children (NCMEC) received 4.4 million reports to its CyberTipline. That's a nearly 800% increase in reporting since 2013. Tip-offs come from the public, and also companies like Facebook, Google and Twitter, who are mandated by U.S. regulations to report any such images. According to Lindsay Olson, director of the Exploited Child Division at NCMEC, 94% of the cases last year were outside the United States. ""The CyberTipline receives reports of child porn, online enticement of children for sexual acts, online sex trafficking, child molestation; any type of child exploitation can be reported to the cyber tip line,"" said Olson. ""We make reports available to law enforcement in about 100 countries and we also work with Europol and Interpol."" Swedish based company Griffeye was one of the founding partners of Project VIC. Director Johann Hofmann says it donates its software to be used in child exploitation cases. ""As more and more crime is becoming more and more digital as data is being distributed online,"" he said. ""You see a new type of police officer that is behind a computer screen and with the right tools they can crack these cases."" The Internet has no borders so law enforcement agencies need to overcome traditional geographic boundaries to work together. Project VIC is now being used by Interpol, Europol and agencies in 35 countries including the United Kingdom and Canada, and it's about to be rolled out in Australia. In the United States the results speak for themselves. ""We've been absolutely floored by the success we've seen with Project VIC,"" said Cole. ""Going back a few years we were seeing victims in the low hundreds and in this past year we've rescued over 1,000 victims just in HSI (Homeland Security Investigations -- a division of U.S. Immigration and Customs Enforcement (ICE)). alone and we've seen similar results in other agencies as well.""", -56,2016/4/19,http://www.cnn.com/2016/04/17/asia/vietnamese-girls-child-brides-china/index.html,Vietnamese girls smuggled into China and sold as child brides,The names of the trafficked girls in this story have been changed to protect their identities.,"Lan remembers the night that changed her whole life. While preparing for university along the border in northern Vietnam, a friend she met online asked her to a group dinner. When she was tired and wanted to go home, the people asked her to stay and talk and have a drink. Next thing she knew, she had been smuggled across the border to China. ""At that time, I wanted to leave,"" says Lan. ""There were other girls there in the car but there was people to guard us."" The villages along the Vietnamese-Chinese border are a hunting ground for human traffickers. Girls as young as 13 say they are tricked or drugged, then spirited across the porous border by boat, motorbike or car. Young Vietnamese women are valuable commodities in China, where the one-child policy and long-standing preference for sons has heavily skewed the gender ratio. To put it simply, Chinese men are hungry for brides. ""It costs a very huge amount of money for normal Chinese man to get married to a Chinese woman,"" explained Ha Thi Van Khanh, national project coordinator for the U.N.'s anti-trafficking organization in Vietnam. Traditionally, Chinese men wishing to marry local women are expected to pay for an elaborate banquet and to have purchased a new home to live in after the wedding. ""This is why they try to import women from neighboring countries, including Vietnam."" Diep Vuong started the Pacific Links Foundation to combat trafficking in Vietnam. She says that Vietnamese brides can sell for upwards of $3,000 to the end buyer and that they are often considered desirable because of cultural similarities to the Chinese. Nguyen was just 16 when a friend's boyfriend drugged her and smuggled her into China. She tried to resist a forced marriage. For three months, she refused, even though her traffickers beat her, withheld food and threatened to kill her, she says. Finally, she relented. She says her husband was kind to her, but she never stopped missing her family in Vietnam. ""My desire to go home was indescribable,"" Nguyen said. ""I agreed to marry the man but I could not stay with a stranger without any feelings for him."" When her mother-in-law realized Lan was never going to warm to the marriage, the family returned her to the traffickers. They got their money back, Nguyen says, after which she was forced into a second marriage. A refuge for escaped women The Pacific Links Foundation runs a shelter for trafficking victims in the city of Lao Cai, northern Vietnam. The young women stay for an average of two to three years. They go to school or get vocational training. They do art therapy. They learn to cook and sew and keep a big garden. Surrounded by other woman with similar experiences, the shelter helps them get back on their feet and then to find jobs to support themselves. ""Once that whole investment process can happen with these young women then it is much easier for them to have their own lives,"" says Diep. Her organization also does community outreach to try and stop more girls from falling into the hands of traffickers. About once a month, a group of trafficking victims visits the market at Bac Ha, a regional hub for buying food, fabric and livestock. On this day, on a stage overlooking hundreds of shoppers, they talk about their experiences, take questions and play games with the crowd. When they ask people to share personal experiences concerning trafficking, more than 20 people come forward. ""I think awareness is the only tool,"" Diep says. Ha from the U.N. agrees that the top priority is to spread awareness, especially in the poor, rural regions along the border. She also believes reducing poverty will help stop women going to China seeking work, another common way traffickers lure victims. Saved at the border During CNN's trip to the border, the government called and told us the police had just rescued five girls as they were about to cross the border with a trafficker. We met the girls, who are just 14 years old. They said they were promised $600 to go to work in China by a neighbor from the same village. They didn't tell their parents they were going. The neighbor is now under arrest. The Vietnamese police are sometimes able to rescue women even after they have crossed into China, by enlisting the help of Chinese authorities. Nguyen Tuong Long, the head of the government's social vice prevention department in Lao Cai, says last year they rescued and returned 109 Vietnamese trafficking victims. ""Because of cooperation between the Vietnamese and the Chinese police, we have found and caught trafficking rings,"" Nguyen says. ""We've found women far inside China, at brothels where they're forced to become sex workers."" Trafficked women who aren't rescued in raids have to find ways to get out on their own. Some of them say they were able to contact their families from China, but they couldn't get help from police because they didn't know exactly where they were. Lan and Nguyen ended up in the same town in China. After two years, together they managed to slip out of their homes and take a taxi to a local police station. The whole time they were afraid their husbands' families would find them. The Chinese police investigated and eventually returned them to Vietnam. The women were free of their forced marriages, but they paid a high price. Both left their babies in China. Lan says if she saw her daughter again, she would apologize for leaving her behind. ""I hope she'll have a better life there,"" she says. Both Lan and Nguyen say in school their teachers had talked to them about trafficking. At the time, neither believed it could happen to them.", -57,2017/2/7,http://www.huffingtonpost.com/2017/02/07/donald-trump-vaccines_n_14636042.html,Hundreds Of Health Groups Plead With Trump To Look At Scientific Evidence On Vaccines,The president has falsely said the shots cause autism.,"WASHINGTON ""?Hundreds of state and national medical groups on Tuesday sent President Donald Trump-scientific evidence debunking the theory that childhood vaccines cause autism.- ""Claims that vaccines are unsafe when administered according to expert recommendations have been disproven by a robust body of medical literature, including a thorough review by the National Academy of Medicine,""?reads the-letter, which was signed by groups including the American Medical Association, the American Academy of Family Physicians and the American Academy of Pediatrics.- The medical groups attached summaries of more than three dozen studies that found no link between vaccines and neurological problems, and noted that immunization has eradicated several diseases in the U.S. Trump has repeatedly espoused the discredited theory that children can get autism from vaccines. He hosted Robert F. Kennedy Jr., a proponent of the autism theory, in January at Trump Tower in New York City. Kennedy said afterward that Trump had asked him to head a commission investigating vaccine safety.- A Trump spokeswoman previously said no decision had been made about whether to create a commission. The White House press office did not immediately respond to a request for comment on Tuesday.-- Public health groups have been wary of wading into the political fray on vaccines, reluctant to give the impression that there's any legitimate debate among scientists over whether people should have their children immunized. The letter had been in the works since Trump's vaccine doubts resurfaced last month, according to the American Academy of Pediatrics. Several government bodies already vouch for the safety of vaccines, and nongovernment researchers have repeatedly probed the link between vaccines and autism since a 1998 paper first caused alarm. That paper has since been retracted.", -58,2017/2/7,http://www.huffingtonpost.com/2017/02/07/jake-gyllenhaal-broadway-musical-debut_n_14636028.html,Here Is Jake Gyllenhaal Singing His Heart Out Ahead Of His Broadway Musical Debut,"Yes, yes, yes, yes and yas.","Attention, world: Jake Gyllenhaal is making his Broadway musical debut this month. How do we know? Well, We're known. But also, Gyllenhaal just posted a video teasing his singing chops on Facebook, and damn. The kid's got talent. ""This is what happens when Riva Marker (the badass president of NineStories) and I invite #CaryJojiFukunaga to rehearsals for our new Broadway musical,""?he wrote in a status accompanying the video. Cary Joji Fukunaga, of ""true Detective""?fame, did indeed shoot the single-shot video, Variety reports. And you can tell. In the nearly four-minute video above, Gyllenhaal sings a song ""?""�Finishing the Hat,""?to be exact ""?from an upcoming revival of Stephen Sondheim's musical, ""sunday in the Park With George.""?The actor, best known for his role in ""donny Darko""?(it's true!), will begin preview performances of the show at New York City's Hudson Theatre this Saturday, Feb. 11.-The musical's official opening night is set for Thursday, Feb. 23.- Until then, you're got this:", -59,2017/2/7,http://www.huffingtonpost.com/2017/02/07/new-study-finds-e-cigarettes-are-much-safer-and-less-toxic-than-tobacco_n_14636026.html,New Study Finds E-Cigarettes Are Much Safer And Less Toxic Than Tobacco,"""There is a very low risk associated with their long-term use.""","Consuming e-cigarettes is far safer and less toxic than smoking conventional tobacco cigarettes, according to the findings of a study analyzing levels of dangerous and cancer-causing substances in the body. Researchers found that people who switched from smoking regular cigarettes to e-cigarettes or nicotine replacement therapy (NRT) such as gum or patches for at least six months had much lower levels of toxins in their saliva and urine than those who continued to smoke. ""ourstudy adds to existing evidence showing that e-cigarettes and NRT are far safer than smoking, and suggests that there is a very low risk associated with their long-term use,""?said Lion Shahab, a specialist in epidemiology and public health at University College London who led the work. E-cigarettes, which heat nicotine-laced liquid into vapor, have grown into an $8 billion-a-year market, according to Euromonitor International - more than three times that of NRT products. They are, however, still dwarfed by a tobacco market estimated by Euromonitor to be worth around $700 billion. Many health experts think e-cigarettes, or vapes, which do not contain tobacco, are a lower-risk alternative to smoking and potentially a major public health tool. But some question their long-term safety and worry that they may act as a ""gateway""?to taking up conventional cigarettes. The U.S. surgeon general in December urged lawmakers to impose price and tax policies that would discourage their use. Monday's study, published in the journal Annals of Internal Medicine, analyzed saliva and urine samples from long-term e-cigarette and NRT users as well as smokers, and compared levels of key chemicals found in their bodies. It found that smokers who switched completely to e-cigarettes or NRT had significantly lower levels of toxic chemicals and carcinogens compared to people who continued to smoke tobacco cigarettes. Those who used e-cigarettes or NRT but did not completely quit smoking did not show the same drop in toxin levels. This underlined that a complete switch was needed to get the long-term health benefits of quitting tobacco, the researchers said. The World Health Organization says tobacco is the world's biggest preventable killer, with a predicted cumulative death toll of a billion by the end of this century if current trends continue. Tobacco smoking currently kills around 6 million people a year. Kevin Fenton, national director of health and wellbeing at the government authority Public Health England, said the findings held a clear message for tobacco smokers. ""Switching to e-cigarettes can significantly reduce harm to smokers, with greatly reduced exposure to carcinogens and toxins,""?he said in a statement. ""the findings also make clear that the benefit is only realized if people stop smoking completely and make a total switch. ""the best thing a smoker can do, for themselves and those around them, is to quit now, completely and forever.""?(Reporting by Kate Kelland; Editing by Kevin Liffey)", -60,2017/2/7,http://www.huffingtonpost.com/the-conversation-us/should-scientists-engage_b_14636016.html,Should scientists engage in activism?,,"By Ivan Oransky, New York University and Adam Marcus, Johns Hopkins University Have you heard that scientists are planning a march on Washington? The move is not being billed as a protest, but rather as a ""celebration of our passion for science and a call to support and safeguard the scientific community,"" although it comes as a direct response to recent policy changes and statements by the Trump administration. Not everyone thinks the nonprotest protest is a good thing. It's ""a terrible idea,"" wrote Robert Young, a geologist at Western Carolina University, in The New York Times. The march, Young said, will just reinforce a belief among some conservatives that ""scientists are an interest group,"" and polarize the issue, making researchers' jobs more difficult. Others find that argument less than convincing, pointing out that science and politics have always been intertwined. As the founders of the blog Retraction Watch and the Center for Scientific Integrity, we often see researchers reluctant to push for or embrace change - whether it's to the conventional way of dealing with misconduct in journals (which for years was basically to not do so) or addressing problems of reproducibility of their experiments. To the timorous, airing dirty laundry, and letting the public in on the reality of science, could endanger public trust - and funding. So this isn't the first time scientists and engineers have voiced similar concerns. Take the example of Marc Edwards and his colleagues at Virginia Tech: To many people watching the Flint water crisis, they were heroes. After being asked to visit by concerned residents, they found, and announced, that people in the beleaguered city were being exposed to excessive amounts of lead through their tap water. They also launched a crowdfunding campaign to raise money for water filters for city residents and created a website to push their findings about the hazards of the city's water supply and shame governments at all levels to act. If not for their tireless efforts, thousands of children may have been exposed to dangerous amounts of lead for far longer than they already were. Even the Environmental Protection Agency has acknowledged that it waited too long to sound the alarm. But that's not exactly how the editor of a leading engineering journal sees things. In October, a remarkable editorial appeared in the journal Environmental Science & Technology. The essay, by University of California, Berkeley engineering professor and Water Center Director David Sedlak, ES&T's editor-in-chief, expressed concern that some of his colleagues in the field had crossed the ""imaginary line"" between scientist and advocate. ""Speaking out against a corrupt or incompetent system may be the product of a culture where idealism, personal responsibility, and Hollywood's dramatic sensibilities conspire to create a narrative about the noble individual fighting injustice,"" Sedlak wrote. By becoming ""allies of a particular cause, no matter how just, we jeopardize the social contract that underpins the tradition of financial support for basic research."" In other words, don't cross Congress - which many scientists already view as hostile to their profession - and risk retaliation in the form of budget cuts. That's no small pie, either. Through its oversight of the National Institutes of Health, the Centers for Disease Control and Prevention, the Department of Energy and other agencies and programs, Congress holds the strings to a research purse worth nearly US$70 billion a year. Let's take a moment to absorb all that. Some (unnamed but easily identified) scientists, lulled by the media, have cast themselves as superheroes in a struggle against villains born of their own conceit. Their arrogance and vanity threaten to awaken the master, who will punish us all for the sins of a few. We rarely get the opportunity to watch a chilling effect in action, but you can almost see the breath of researchers caught up in a debate over the proper role of scientists in the crisis. It's not just engineers who fear speaking out. ""We have too often been reluctant to voice our protest, for fear of incurring the [National Institute of Mental Health's] displeasure (and losing whatever opportunities we still have for funding),"" wrote neuroscientist John Markowitz in The New York Times last fall. In a refreshing piece, Markowitz was arguing that ""there's such a thing as too much neuroscience."" As cofounders of Retraction Watch, a blog that focuses on some of science's nasty episodes, we are occasionally admonished that pointing out cases of fraud - even when we also praise good behavior - will give anti-science forces ammunition. In some ways, we should be glad scientists are acknowledging these concerns, instead of pretending they're never swayed by the almighty dollar. But anyone who clings to the notion that science exists in a pure vacuum, untainted by politics, economics or social justice needs also to understand that science is a human endeavor and scientists have the same eyes and ears for injustice and outrage as the rest of us. Although the conduct of science demands honesty and rigor, nowhere is it written that researchers must remain silent when governments or other powerful players either misuse science or suppress findings in the service of harmful policies. And before Edwards and his efforts on behalf of the Flint community, some scientists have spoken out. Claire Patterson, a physical chemist, put himself on a decades-long collision course with industry when he took on lead poisoning. John Snow earned the ire of Londoners when he removed the pump handle on a cholera-infested well, and wasn't vindicated until after his death. It took Peter Buxtun several years to stop the infamous Tuskegee syphilis experiment; he eventually had to leak documents to reporter Jean Heller in 1972. Edwards and his colleagues, we would argue, are part of a long tradition of bridging the worlds of science and policy. They have been instrumental in bringing not only attention but change to the beleaguered city of Flint. And money: Thanks in part to their pressure, the Senate in September voted overwhelmingly to approve $100 million in aid for Flint, and hundreds of millions more in loans from the Environmental Protection Agency for upgrading municipal water infrastructures and studying exposure to lead. In a stinging rebuke to Sedlak, Edwards and three coauthors - Amy Pruden, Siddhartha Roy and William Rhoads - blasted the critical editorial as a ""devastating, self-indictment of cowardice and perverse incentives in modern academia."" Indeed, scientists who accept funding with the tacit agreement that they keep their mouths shut about the government are far more threatening to an independent academy than those who speak their minds. Since Nov. 8, it has been painfully clear that science will be playing defense for a while. The United States has never seen a regime so hostile to science and the value of the scientific method. President Donald Trump has declared climate change a ""hoax"" cooked up by the Chinese. He has flirted seriously with debunked anti-vaccination views and declared that polls (read, data) that are negative about his ambitions are ""fake news."" Science and politics are not always compatible. And science need not always triumph over policy: After all, research shows that steroids improve athletic performance, but we have a compelling political interest to ban them. The same can be said of eugenics. Research must always be ethical, and ethics is a conversation that includes scientists and policymakers. Still, while the two domains are separate, the divide is, and should be, bridgeable. As Edwards and his colleagues write, ""The personal and professional peril is great, the critics are numerous and vocal, but staying silent is to be complicit in perpetrating injustice. And no matter what may come of the rest of our lives or careers, we are certain of one thing: Flint was a community worth going out on a limb for, and by upholding a just cause, we enhanced the social contract between academics and the public."" That could easily be said of the March for Science. Except now it's not just a limb but the entire tree that's in peril. Ivan Oransky, Distinguished Writer In Residence, Arthur Carter Journalism Institute, New York University and Adam Marcus, Adjunct Faculty for Advanced Academic Programs, Johns Hopkins University This article was originally published on The Conversation. Read the original article.", -61,2017/2/7,http://www.huffingtonpost.com/2017/02/07/princesses-wear-pants-by-savannah-guthrie_n_14636008.html,Savannah Guthrie's New Kids' Book Shows That Princesses Can Be Strong Women,"The book is a celebration of ""girl power.""","On Monday, TODAY co-anchor Savannah Guthrie announced that she's written a children's book ""?and revealed the title.- The book, which she co-wrote with parent educator Allison Oppenheim, is called ""Princesses Wear Pants,""?and it's about Princess Penelope Pineapple, who ""celebrates girl power by showing young girls that its not how they look, but what they do that matters most.""Guthrie and Oppenheim both said it was their princess-obsessed daughters who inspired them to create the book.- ""I realized pretty quickly Vale was going to love princesses. I think it's in her genetic code,""?Guthrie told TODAY of her daughter. ""We wanted our daughters to be okay with their love of princesses but also realize that princesses are strong women with real things to do.""?Both women noted that they are not ""Anti-princess.""Oppenheim told TODAY, ""We don""t want to send our little girls the message that what they love is problematic or silly. But we do want them to know that women are substantive and do important things no matter how they look. I see the princess phase as a major opportunity for learning, if we navigate it thoughtfully.""?The book's website also hints at empowering content, revealing that Princess Penelope flies in the Pineapple Air Command, hosts a science fair and works in her vegetable garden.- The book will be available in September and can be pre-ordered here.", -62,2017/2/7,http://www.huffingtonpost.com/madelaine-dangelo/how-to-minimize-risks-and_b_14635990.html,How to Minimize Risks and Maximize Returns in Art Investments,,"Many investors interested in alternative assets often shy away from art due to the overwhelming amount of risks and responsibilities that come with acquiring investment grade art. In this article, we identify these risks, and tell you how investing in art through Arthena will make you want to start today. Comparables, Experience and Costs: Needless to say, investment grade art is not the stock market or the real estate market where you can compare prices of one asset to another. With art assets, the ability to determine the legitimacy and the price, comes with expertise - this barrier makes it difficult for the traditional investor to confidently invest. When evaluating a work of art, art appraisers look for: Authenticity, condition, rarity, provenance, and value. Art appraisers' expertise can charge anywhere between $50 dollars to several hundreds of dollars an hour, and not all have equivalent experiences. Additional time is needed to ween out truly experienced art appraisers from those who are not. How can Arthena help? By investing through Arthena, we take away all the troubles of doing your own research, determining which work to purchase, placing the right bid, and hiring the right appraiser. At Arthena, we use our very own regression analysis to determine works of art to purchase for investment purposes. We organize artworks with similar core characteristics into logical groups according to their specific criteria, in accordance with USPAP (Uniform Standards of Professional Appraisal Practice) guidelines, which is also known as a IRS appraisal. The characteristics include artist, genre, date range, content, materials, size, coloration, and style, among others. Then, Arthena targets works by artists that have shown appreciation over the past 5 years and are projected to grow by 20% +/- YoY over the next five, or the lifetime of the fund. From storage to insurance, Arthena takes all these burdens away from the traditional art investor. By investing a minimum of $10k into our funds, we handle every troublesome task when it comes to acquiring a work of art. Just sit back, and watch your investment grow. Illiquidity: Generally, the art market is relatively illiquid in comparison to traditional assets such as equities and stocks. Therefore, art assets are ideal for long-term investments. That being said, there is varying liquidity within the art market itself. Determined by the difference between the ask and bid price, the lower the bid price from the ask price, the more illiquid the asset is. The greater the bid is from the ask price, the more liquid it is. Let Arthena identify the art market's most liquid assets: Arthena acquires works in the emerging, PWC, and Modern market sectors, which in total account for over 70% of the US market, and have shown the highest rate of growth over the past 10 years. Art market analysts have identified the most liquid sector of the art market are works of art under $250,000. Arthena confirms that the artist and art work fit our growth metrics, rate at 1 or above for Sharpe Ratio, to confirm that it is a high growth investment with low volatility, and determine its maximum acquisition price Lack of Data: Many reports have noted upon the lack of transparency in the art market. As a result, companies have created indices such as Mei Moses and Artnet index to amend this ""problem"". Nonetheless, these indices bring in a new set of issues. Such indices as the two mentioned do not encompass the entire art market. For example, Mei Moses's data lies primarily on numbers from Sotheby's and Christie's, negating their online sales as well as other auction houses and private sales. Another problem is that some indexes rely heavily on repeat sales, but does not include bought in lots, which variates some data. How Arthena operates through transparency: As such, Arthena acquires works at auction for increased price transparency to the benefit of our investors and our methodology. When works from Arthena's index of artists appear at auction, Arthena uses regression modeling to determine maximum acquisition price. Once acquired, investors can view their art collection through Arthena's online dashboard, allowing our clients to have full access into their investments. Stock market vs. art market performance: Multiple art market analysts have determined that the art market has a low correlation to the stock market, while other analysts have deemed that there is still a certain level of correlation between the two because of the notion that investors would only spend disposable income on collectibles and luxury assets when the market is bullish rather than vice versa. Regardless, the art market has proven itself to be a great store of wealth especially during times of economic uncertainty. Notably, it only took the art market 16 months to return to pre-recession levels in 2008, while the stock market took six years. As such, according to Deloitte: ""Increasing awareness of art as an asset class: 53% of wealth managers had a high level of awareness of developments linked to art as an asset class, up from 43% in 2012 and 33% in 2011; this signals that increasing attention is being paid by the wealth management community to the art and collectibles market."" - Deloitte and ArtTactic Art & Finance Report 2014 Arthena takes a new approach to investing in art. Like a hedge fund, Arthena identifies specific market segments and artists that have shown impressive historical performance and creates buy orders to acquire said works. Don't wait any longer, invest today through Arthena. Click here to start investing in our funds.", -63,2017/2/7,http://www.huffingtonpost.com/2017/02/07/paid-family-leave-ivanka-trump_n_14635968.html,Progressives Hang Onto Hopes For Ivanka Trump,Sen. Kirsten Gillibrand (D-N.Y.) hopes President Donald Trump would be receptive to a paid family leave plan because his daughter has spoken about the issue.,"WASHINGTON ""?Progressives wondering whether President Donald Trump will give any notice to their concerns hold out hope that his daughter Ivanka will intervene. Sen. Kirsten Gillibrand (D-N.Y.), a longtime champion of paid family leave, on Tuesday reintroduced her Family Act, which would guarantee 12 weeks of paid family and medical leave for all workers. The legislation, which proposes a universal paid leave program funded by a small payroll tax, failed to advance in the previous session of the Republican-led Congress, and likely faces the same fate under Trump. But Gillibrand and Rep. Rosa DeLauro (D-Conn.), sponsor of a companion bill in the House, on Tuesday expressed optimism that the president would be receptive, in part because Ivanka Trump has spoken about the issue. ""I am hopeful that the administration will reach out to me and work with me on a national paid leave plan,""?Gillibrand said on a call with reporters. Gillibrand referenced Ivanka Trump's speech at last summer's Republican National Convention, in which she presented her father, who has a record of demeaning women, as a champion for women's rights and a supporter of equal pay for women. It led many progressives to hope that her influence would encourage-""?or at least make it possible ""?that the president pivot from his campaign promises. Ivanka Trump also tried during the campaign to deflect attention away from her father's history of misogyny and climate change denial. Last week, Ivanka Trump and husband Jared Kushner, a senior White House adviser, reportedly convinced the president not to roll back LGBTQ protections, a important achievement of former President Barack Obama. Trump's proposed paid leave plan, like most of his policy proposals, contains little substance and is limited in scope. It allows for six weeks of paid leave, and only applies to mothers. Ivanka Trump said in an interview when her father's leave plan was announced in September that it is intended to ""help mothers in recovery in the immediate aftermath of childbirth.""?She would not elaborate on whether it would apply to LGBTQ, adoptive or foster parents, or people caring for aging parents. ""we'll wait to see what the dimensions of it, what the details are,""?DeLauro said of Trump's proposal.- ""I don""t know when they will move forward with making a substantive proposal,""?she added. ""We'r waiting for them to join the debate. We'r on the field. The U.S. remains the only industrialized country without mandated paid family leave. Sunday was the 24th anniversary of the Family Medical Leave Act, which provides 12 weeks of unpaid leave for people who work at companies with more than 50 employees. The push for universal paid leave is growing, with state legislatures and businesses enacting more expansive plans. Gillibrand said she hopes to gain bipartisan support because the issue affects everyone. ""Despite the fact that we don""t have a Republican yet, I am optimistic that people will be demanding action on this issue, that people will rise up and say we need a national paid leave plan, and really call on their elected leaders to listen to the challenges that they'r facing,""?Gillibrand said. ""I am hopeful that the new administration will focus on it because they did run on it, they did talk about it, and it should be nonpartisan.""?,-1""", -64,2017/2/7,http://www.huffingtonpost.com/2017/02/07/my-first-time-masturbating_n_14635960.html,My First Time Masturbating,True story: The best sex I've ever had is with myself.,"You don""t need a partner to have amazing, fireworks-on-the-Fourth-of-July level orgasms. The animated-Glamour video above is a great reminder of that. In it, a 27-year-old woman named Mariel talks about how reading harlequin novels and erotica as a teen quickly led her down the pathway to self-pleasure. ""I saw stars,""?she says of her first time masturbating. ""I must have come in less than 30 seconds. Needless to say, I fell right to sleep.""Now as an adult, she still considers sex with herself the best sex she's ever had.- ""Every time I touch myself or learn a different way to make myself feel good, I feel more confident to bring that into my sexual experiences with other people,""?she says. Watch the video to hear her full story.--", -65,2017/2/7,http://www.huffingtonpost.com/2017/02/07/sean-duffy-terrorism_n_14635946.html,GOP Congressman Insists White Terrorist Attacks Are Totally Different,"Rep. Sean Duffy (R-Wis.) also pointed to ""the good things"" that came from the shooting of black churchgoers in Charleston, South Carolina.","Rep. Sean Duffy (R-Wis.) vehemently defended President Donald Trump's ban on refugees and travelers Tuesday, arguing that terrorists who come from the Middle East are an existential threat to the United States and totally different from white domestic terrorists,-who just commit ""Ane-off""?incidents that the government can""t do anything about.- Duffy said Trump was justified in stopping Syrian refugees from entering the United States ""until in Syria they figure out this conflict in the civil war and this hotbed for terrorism.""?Presumably, however, once the conflict is over, women and children, for example, won""t feel it is as necessary to escape their country to find a safe haven.- Host Alisyn Camerota pressed Duffy on Trump claiming that the media were intentionally covering up terrorist attacks and either not reporting or underreporting them. The White House later Monday released a list of 78 attacks it said backed up Trump's claim. The list notably did not include a recent attack on Muslims inside a Quebec City mosque that killed six people. Trump, who frequently tweets about terrorist attacks, also has not mentioned this one.- Duffy argued in his CNN interview that attacks by white people ""?such as the one in Quebec City ""?aren""t as big of a problem.- ""You don""t have a group like ISIS or al Qaeda that is inspiring people around the world to take up arms and kill innocents. That was a one-off. That was a one-off, Alisyn,""?Duffy said. Camerota then pointed to the massacre of black churchgoers in Charleston, South Carolina, in 2015 and the Oklahoma City bombing in 1995, as acts carried out by white terrorists. Duffy tried to make lemonade out of the Charleston attack, in which a white supremacist killed nine people:- CAMEROTA: How about Charleston, congressman? He was an extremist. He was a white extremist?- DUFFY: Yes, he was. OK? CAMEROTA: How about that? That doesn""t matter?- DUFFY: No, it does matter. It does matter. Look at the good things that came from it. [Then-South Carolina Gov.] Nikki Haley took down the Confederate flag, that was great.- But you want to say I can give you a couple of examples. There's no constant threat that goes through these attacks. And you have radical Islamic terrorists and ISIS that are driving the attacks, and if you want to compare those two, maybe you can throw another one ""��?CAMEROTA: You can.- Duffy claimed that people on the left were manufacturing outrage, saying there was plenty of blame to go around.- ""Look at Gabby Giffords. The Marxist, who took her life, a leftist guy, and now you see violence and terror in the streets all across America, burning and beating people with Donald Trump hats. The violence you have to look in, you'r trying to use examples on the right,""?he said. Former Rep. Gabby Giffords (D-Ariz.) is not dead. As a congresswoman in 2011, she survived an assassination attempt, and she remains an outspoken proponent of gun safety reform. Duffy said he be happy to help do something about white supremacy but he just didn""t know what to do: ""Can we vet that? How should we vet that to keep ourselves safe? I will join you in that effort, what do you do?""?- Watch Duffy's full interview below:- Camerota: Why isn't the president talking about white terrorism? Duffy: There's a difference. https://t.co/YEgSitUsdS The Southern Poverty Law Center has tracked radical-right terrorist plots that have occurred since the Oklahoma City bombing and has a list here.- There have been zero fatal terrorist attacks on U.S. soil since 1975 by immigrants from the seven countries listed in Trump's executive order. The order restricts travelers from those countries from coming to the U.S. for 90 days, prevents refugees from all countries from entering the U.S. for 120 days and bars Syrian refugees indefinitely. Want more updates from Amanda Terkel? Sign up for her newsletter, Piping Hot Truth, here.", -66,2017/2/7,http://www.huffingtonpost.com/2017/02/07/6-things-i-learned-from-being-ghosted_n_14635944.html,I Was Ghosted 3 Times In The Last Year. Here Are 6 Things I Learned.,Hello? Helllllllllllllo?,"Ah, dating in the 21st century. If disappointing websites, drug-resistant STIs and troublingly short attention spans weren""t enough to make us lose our minds (and possibly our libidos), we'r also now stuck grappling with another modern phenomenon: ghosting. The New York Times defines ghosting as ""ending a romantic relationship by cutting off all contact and ignoring the former partner's attempts to reach out.""?This has happened to me three times in the past year. Granted, I don""t believe it necessarily needs to be a ""relationship""?in the traditional sense in order for one party to be ghosted. It could (or should) also include entanglements that involved meeting up or hanging out or hooking up with someone two or more times before the other person vanished without a trace. I haven""t been in a formal relationship in almost four years, but I frequently meet guys that I find worthy of getting to know better (both with and without my clothes on) and the exchanges that result from those interactions are meaningful to me in one way or another ""?at least meaningful enough to want some closure if or when they end. After investing some time and energy and possibly saliva or other body fluids in another person, it's disconcerting when they suddenly disappear. Of course, if you're only been on one or two ""dates""?(however you want to define that term) with someone and at the end of your time together neither of you reaches out to the other, that's not ghosting. That's just life.-And I understand that dating is hard and that finding someone who ticks ""?or if we'r really lucky, tickles ""?all of our boxes is virtually impossible but I still (perhaps naively) cling to the (perhaps now radical and totally outdated) idea that it's a mature move to give someone a heads up if you'r going to stop talking or seeing or fucking them. So, in light of my experiences over the past year, here are a few humble and totally unscientific thoughts on ghosting: 1. Just don""t do it. Be an adult and send a text that reads something like: ""Hey. Glad we hung out but I'm just not feeling a connection. Stay awesome""?or whatever other generic and possibly hurtful or patronizing or maybe just uncomfortable (but at least emotionally clear) and instructive language you want to use. I'll respect you for it even if it bums me out and that way neither of us has to dread randomly running into the other at Whole Foods or at that bar with all those vintage pinball machines that I stupidly and regretfully introduced you to because I thought you were cool (or at least we won""t experience more than the usual basic human level of dread that accompanies those kinds of surprise social interactions). 2. If you do it, do not ""?as two of the three guys who originally ghosted me have done ""?start texting me again three to four weeks later and pretend like nothing happened as if you unexpectedly slipped into a coma and then suddenly woke up again or went on a hot air balloon trip around the world and didn""t have access to your phone and just forgot to tell me. The only thing worse than ghosting is re-materializing a month later ""?and I mean worse for both of us because at that point, I""ve had all that time to think about how bad your taste in music actually is or question a million other questionable things you told me in our short time together and now that I""ve thought about it, I don""t want to see you again. 3. Being ghosted made me realize I""ve probably ghosted guys in the past-(and now that I'm publishing this piece, I'm guessing one or two or 74 of you will come forward and say as much). If I ghosted you, I'm sorry. I was an asshole. I was immature. And I was probably scared of hurting your feelings or just didn""t know how to verbalize why I didn""t want to see you again. Chances are it was something innocuous and had nothing to do with your character. And I'm sure if you asked any of the guys who ghosted me, they say exactly the same things. But that doesn""t excuse it and going forward I'm vowing taking my own advice, no matter how awkward it might feel. 4. Human beings are finicky creatures and, what's more, as our cultural ideas about and understanding of what dating and relationships and couples and families look like continues to shift and destabilize,-linking up and breaking apart is probably only going to get trickier. These days many of us aren""t looking to get married or have kids (or at least aren""t looking to get married and have kids the way our parents or our grandparents-did) and so, the way we think about how we enter and exit relationships is mutating and not always in ideal ways, which means we have to be even more mindful of our (in)actions. 5. Communicating is hard ""?and getting harder.-As much as I think the guys who ghosted me suck, I get it. And in many ways, aside from reminding me to treat others the way I'd like to be treated, being ghosted also has made me rethink who and what I'm looking for in a partner or a fuck buddy ""?or just someone I want to go and have a donut with. What's more, it's made me rethink how I communicate with other human beings in general and reevaluate what the best way is to express myself and my needs and my desires to friends and family and colleagues, too. Email and texts make it easy to send a message but we have to stop to think about the quality of those messages. And are those forms of communication appropriate for what we need to say?-What is the value of face to face contact and experiencing the world offline? What are the best ways to grow a relationship and how often do I rely on technology as a crutch to deal with ""?or get out of ""?something? These are all questions that have been pacing the hallways in my head lately and it feels good (or at least productive) to think about them. 6. Ghosting aside, there's something kind of nice about dating as a 38-year-old because I know what I want better than I did when I was 25 or even 32 and I put up with less shit. And if, in the end, someone doesn""t text me back, the truth is I'm totally happy to spend Friday night watching ""the Great British Bakeoff""?all by myself (maybe, if I'm being totally honest, even happier).", -67,2017/2/7,http://www.huffingtonpost.com/2017/02/06/orthodox-women-clergy_n_14635938.html,"Despite Ban, These Orthodox Jewish Clergywomen Are Determined To Serve",Not even a ban from the religious establishment will stop these women from fulfilling their calling.,"The Orthodox Union, one of the largest-networks of Orthodox Jewish synagogues in America, recently adopted a policy that bans women from serving as clergy.- Opinions about whether women should be allowed to serve as clergy have caused some division within America's Modern Orthodox Jewish community. The religious establishment, including the OU's counterpart, the Rabbinical Council of America,-is strongly opposed to women's ordination.-On the other hand, some OU synagogues have embraced the idea of women clergy. The new policy attempts to clear up the confusion. But despite the enforcement of this glass ceiling, Orthodox women who have felt the pull to serve as spiritual leaders aren""t backing away from their calling.- Rabba Sara Hurwitz is the co-founder and Dean of Yeshivat Maharat, an-Orthodox Jewish seminary that ordains women as clergy. The school has graduated 14 female clergy and 28 others are currently students. Hurwitz told The Huffington Post that nine of the their graduates are currently employed in synagogues. She said students remain committed to ""learning, teaching, being a pastoral presence for people in their time joy and vulnerability, and being a role model for others.""?""their reaction [to the policy] is to keep marching forwards, fulfilling their passion to become clergy,""?she wrote in an email. The OU's decision comes down to a difference in opinion about God's will for men and women. According to a statement, OU leaders said that they had been approached by Orthodox rabbis and lay leadership for definitive guidance about women's ordination. The OU placed the question in front of a group of seven modern Orthodox rabbis. After months of reviews and forums with community members, the panel concluded that more should be done to encourage women towards leadership positions. However, their interpretation of Jewish law found that men and women have-different gender roles and obligations when it comes to serving in a synagogue. OU leaders argued that the idea of gender equality in religious practice ""inexorably clashes""?with the Orthodox interpretation of Jewish scripture. In their worldview, individual autonomy must always submit to the will of God, as interpreted by rabbinic leaders. The rabbis agreed that women can serve as administrators, educators, and counselors. They can even advise other women about Jewish law as it relates to marriage, sexuality and women's health.- But on the matter of ordination, the rabbis concluded that women weren""t allowed. As a result, the OU adopted a policy on February 1 that discourages-member synagogues from employing-women clergy, or allowing women to perform tasks typically associated with clergy ""� such as officiating at significant life-cycle events, delivering sermons from the pulpit, and serving as a synagogue's primary religious teacher. Instead of focusing on what women are prohibited from doing, the leaders asked the community to focus on what women are allowed to do.- ""Women must be encouraged to share their Torah knowledge, and their enthusiasm and wisdom, with the broader community,""?the leaders said in a statement. ""Let us focus our energy and communal creativity on increasing and enhancing the contributions that women make to our shuls and communities, rather than being consumed with limitations.""?But some female Orthodox clergy are determined not to let these restrictions stop them from acting as spiritual leaders. Maharat Ruth Balinsky Friedman, an ordained spiritual leader at Washington D.C.'s Ohev Sholom - The National Synagogue, told The Huffington Post that she's determined to keep doing her job. ""I am grateful to have an extremely supportive community, and so this decision does not affect me personally. However, some of my colleagues are personally affected, and this decision caused them a lot of upset and worry,""?she told The Huffington Post in an email. ""therefore, my top reaction is one of anger.-That these rabbis made this decision without considering the effects it would have on the women who are currently serving as clergy, or who are training to serve, is disgraceful.""?The OU's statement does not explicitly state whether the rabbinic panel listened to ordained women's voices and opinions during the review process. The Huffington Post's requests for comment were not returned. The Jewish Orthodox Feminist Alliance, a group that advocates for expanded roles for women within the community, was ""dismayed""?by the OU's decision.- ""there are various ways of practicing Judaism, halachic Orthodox Judaism,""?Sharon Weiss-Greenberg, the group's executive director, told the Forward. ""We are disappointed, however, that the OU is attempting to squash that healthy debate and impose their [religious ruling] on hundreds of synagogues, thus centralizing power""?and not giving autonomy to communities""?lay and professional leaders.""?Bracha Jaffe, a member of Yeshivat Maharat's Class of 2017, is still hoping to take the title of ""rabba""?after her ordination this year. She told The Huffington Post that she feels the forum doesn""t reflect the diversity within the Orthodox community. She said the OU's decision has encouraged her and her colleagues to ""do our work in a more public fashion""?to raise their visibility.- ""�Visible female clergy presence in Orthodox synagogues lends validity to women's participation, gives voice to the women's side and creates a welcoming space and role models for women of all ages in our synagogues,""?Jaffe told The Huffington Post. ""Let us not deprive the Orthodox world of what these talented and dedicated women have to offer!""?,-1""", -68,2017/2/7,http://www.huffingtonpost.com/quora/what-effect-does-suger-ha_b_14635936.html,What Effect Does Suger Have on Our Brains?,,"What does sugar do to our brains? originally appeared on Quora - the knowledge sharing network where compelling questions are answered by people with unique insights. Answer by Keck Medicine of USC, 500+ internationally renowned doctors at a leading academic medical center, on Quora: This question originally appeared on Quora - the knowledge sharing network where compelling questions are answered by people with unique insights. You can follow Quora on Twitter, Facebook, and Google+.", -69,2017/2/7,http://www.huffingtonpost.com/2017/02/03/arab-erotic-poetry-women-art_n_14635932.html,"Inspired By Erotic Arabic Poetry, Women Artists Depict Radical Love","""Radial Love: Female Lust"" features 48 women artists from around the world interpreting ancient poetry.","Wallada bint al-Mustakfi was an Andalusian poet who lived and wrote in 11th-century Spain,-sometimes sewing her verses onto the trim of her transparent tunics and wearing them around town. The daughter of a caliph, Wallada eventually inherited her father's palace and transformed it into a literary hall where she'dmentor young women of all backgrounds in poetry and the arts. Her poems mixed themes of spiritual worship and erotic yearning ""?sometimes exalting her beloved, other times scolding the lovers who had done her wrong. She wrote: ""I am made for higher goals and by Allah I am going my way with pride. I allow my lover to touch my cheek And bestow my kiss to him who craves it.""When Irish born, London-based actress R��is��n O'Loughlin unexpectedly encountered Wallada's poems last year, she was struck by how contemporary they felt. ""they read like the best pop lyrics,""?O'Loughlin said in a statement. ""Short and sweet in their intense defiance, desire, lovesick longing, pride and fun.""?In an email to The Huffington Post,-O'Loughlin said they reminded her of the songs of contemporary songstress FKA Twigs, who infuses her erotic lyrics with hints of spiritual reverence.- Astounded by her discovery, O'Loughlin began to research other women poets from the ancient Arab world. She landed upon the collection of Abdullah al-Udhari, comprised of verses written by women between the 7th and 12th centuries. Like Wallada, the other ancient poets spun verses that praised pleasures both carnal and divine with the same fearless breath.-One piece by 11th-century poet Itimad al-Rumaykiyya reads: ""I urge you to come faster than the wind to mount my breast and firmly dig and plough my body, and don""t let go until you're flushed me thrice.""?Lyrics like these ""?lavish and unapologetic ""?contradict the persistent, patriarchal myths that cast women, and especially women of Muslim faith, as submissive or silent. These ancient Arabic poets revealed that for millennia, women of various backgrounds, classes and faiths have expressed their feelings and beliefs in no uncertain terms, through passages that vibrate with conviction and lust, sometimes directed toward another person, and alternately, toward life itself.- ""I was really attracted to the poems, in part, because they didn""t have any agenda,""?O'Loughlin told HuffPost. ""Today the idea of empowerment is sold to us. It's become an advertising tool used to sell dresses or soap. These artists, their way of speaking, just felt really free. They felt like celebrations of life.""?Inspired by these visionary poets whose words still resonate centuries later,-O'Loughlin brainstormed how to usher this little-known pocket of ancient, erotic feminist literature into contemporary discussions, in a time so many of the stereotypes regarding femininity, Islam and the Arab World still persist. She decided to match present-day artists with their poetic predecessors, inviting women of today to create visual testimonies to accompany the written works that came before them.- O'Loughlin collected 24 total poems from Arabic women poets ""?most are Muslim, though one is Jewish and one predates Islam. She recruited two female contemporary artists from different cultural and artistic traditions to craft an artistic responses to each poem. The resulting exhibition, called ""radical Love: Female Lust,""?features 48 artworks made by women around the world, approximately half of whom are of Arab descent. Hailing from countries including Syria, Saudi Arabia, Israel, Lebanon, Egypt, Russia, America, Pakistan and Ghana, the featured artists use ancient Arabic poetry as a point of departure, visualizing desire and worship in a dizzying array of manifestations.- The show will take place at the Crypt Gallery in London, a former burial ground located beneath a church. According to O'Loughlin, ""Here the words of these poets who have been silenced are given voice again, and in doing so the desire for life that is present in the female rises in the work of the modern artist.""?The curator funded the entire exhibition herself, and is currently crowdfunding on Generosity to help with the cost. She hopes to earn enough to divide all proceeds from the show between the participating artists and the Global Fund for Women,-helping Syrian refugees who have relocated to Lebanon.- The image above, a print by by Saudi artist Hend al-Mansour, was inspired by the poet Juml, a young Bedouin woman who, in 9th-century Iraq, served as a concubine to poet Idris Ibn Abi Hafsah. Al-Mansour riffed off the style of the Arabic storybook Maqamat Badi""?al-Zaman al-Hamadhani,-adding splashes of neon pink and her heroine's salty expression.- Another work, by Dublin-based photographer Deborah Sheedy titled ""I Keep my Passion to Myself,""?was inspired by a poem by Zahra. Her airy, black-and-white photo depicts a woman spinning in a white dress, appearing like something between an embodied human and imagined chimera. The photo-""?blurred and bubbling from the edges ""?transforms what photographers often construe as mistakes into opportunities for additional experimentation and play.- The motley assemblage of artists have a few things in common:-urgency, a desire to express core emotions like strength, vulnerability and love. ""they are a deliberate and timeless resistance to the silencing and patronizing of females,""?O'Loughlin added. ""Whatever external restraints were placed on these women, they retained a vitality and independence of spirit, a powerful tonic to these troubling times.""O'Loughlin originally began researching ancient Arabic poetry in 2015 -Before Brexit, before Trump's election, and before the president's-executive order barring immigrants from seven Muslim-majority nations. Islamophobia and the xenophobic myths that such thinking engenders were palpable then. ""I was shocked by Brexit and I was shocked by Donald Trump being elected,""?she said. ""But I was aware that people were being reduced to their ethnicity or their faith.""?Through her exhibition, O'Loughlin hoped to reveal the futility of defining human beings through such sweeping labels,-demonstrating the depth and difference that exist within every cultural category.- ""It's crazy that the word ""Muslim""?is being described to define millions of people who are from different places and cultures,""?O'Loughlin continued. ""people from Pakistan or Palestine or Algeria come from such distinct cultures. And every single woman has a different relationship to God.""?Subsequently, the featured artists in her exhibition do not disclose their faiths alongside their work. That, O'Loughlin expressed, is an aspect of themselves they are not compelled to explain to anyone. ""they are women and artists, that's all they have to be.""?Radical Love: Female Lust-is on view Crypt Gallery, St Pancras, London from Feb. 14 through March 5. The show will raise money for The Global Fund for Women helping Syrian refugees.-", -70,2017/2/7,http://www.huffingtonpost.com/renee-fisher/a-valentine-for-potus_b_14631164.html,A Valentine For POTUS,,"Dear POTUS, This year, I'm sending you a Valentine, not because I love you or respect you, but because I love my country. And you are the duly-elected symbol of that country. You may not know that I love my country, since I'm not in the pro-life movement, I don't attend church, fear immigrants, or verbally wave the flag every chance I get. I'm not even Christian, which I suspect is becoming ground zero for patriotism. In fact, I pretty much don't fit any of the recent descriptions used for those who love our country. My love of country stems, instead, from deep, unwavering gratitude. Gratitude that my parents were allowed to emigrate here, and that this country made room for them. Gratitude that I was given a childhood that was dramatically different than theirs. Gratitude that my life choices were those of people who have enough food to eat, a home to live in, and a government that protects them and not hunts them down. I had only to decide which clothes to wear for school that day, which homework assignment should be done first, and which children's shows I would look forward to seeing on TV over the weekend. These were decisions my parents never got to consider when they were growing up. I also love my country because my experience growing up was that people of different religions living together was entirely normal. My friends were Jewish, Protestant, Catholic. We attended the same school, borrowed books from the same library, watched movies on Saturday morning at the same theater. My parents did not experience this. Because of their religion, they lived only where the government allowed them to live. Their lives were so insular that they never learned the languages of the countries in which they lived. This is what I'd like you to understand, that, because of who I am and because of the circumstances of my family history, I love my country. You and I speak the same language, and we may use the same terms, but I may mean something a bit different than you when I do so. For example: pro-life: My belief is that life is sacred, and that being pro-life means that we have an obligation to those, like my parents, who seek asylum within our borders. And we have an obligation to those who live here now, to be inclusive. Pro-life means not shutting them out, either economically, socially, or educationally. I do not believe that they are here to suck us dry or kill us. I believe they are, like my parents, here to have a chance at a better life. ""radical Islamic terrorism"": a favorite term of yours. You'll be happy to know that I believe radical Islamic terrorism exists and that it is a threat to us and to the world. I also believe radical non-Islamic terrorism exists. It has resulted in Timothy McVeigh and the Oklahoma City bombing, Dylann Roof and the Charleston Church shooting, Adam Lanza and the Newtown School shooting, Charles Roberts and the Amish school shooting, Eric Harris and Dylan Klebold and the Columbine High School massacre. The list goes on and on. Terrorism, no matter its motivation, is unacceptable. ""government-run education monopoly"" Democracies depend on the educational system they provide their citizens. Corporations that are monopolies have consumers at their mercy, and may set prices to increase profit. They don't have to consider the welfare of the people who use their products or services. Education, as a monopoly, ensures that common standards are upheld. They are beholden to the people who use their services. There is a big difference between a business and an educational system. People of means will always have the option of sending their children to private school, just as people of faith will always have the option of sending their children to faith-based school. And people will (and should) have the option of home-schooling or sending their children to charter schools. But none of these alternatives should impact in any way whatsoever on the public school system that the vast majority of Americans attend. Alternatives mean choice, not the standard. ""fake news"": I agree wholeheartedly that fake news exists. But, in this era of unlimited avenues in which people can gather information, it's irresponsible to accept any news (no matter where it comes from) without checking sources. If you limit yourself solely to one source or one way of thinking, you become vulnerable to manipulation. And that is a very dangerous place to be. A free society is based on a free press. It is not up to any leader of this country to decide what people should read and/or listen to. It is up to us, the people,to do due diligence to weed through news sources, in order to make ourselves better-informed citizens. I also have definitions that differ from yours, regarding what it would take to ""make America great again"" and ""make the inner cities safe"" and ""keep our borders safe."" I will happily share them with you, if you'd like. So, here's your Valentine, POTUS, from a grateful-to-be-here patriot of this amazing country. I suspect that no matter what path you choose to lead this country down for the foreseeable future, I will make my opinion known. I will continue to exercise the right that was not given to my parents. And I will continue to love this country as much as anyone possibly can and to get chills whenever I say the Pledge of Allegiance or sing the national anthem.", -71,2017/2/7,http://www.bbc.co.uk/news/uk-politics-38895007,Brexit rebellion avoided after 'meaningful vote' offer,The government has seen off an attempt to add conditions to its Brexit bill as a Conservative rebellion was avoided.,"The government has seen off an attempt to add conditions to its Brexit bill as a Conservative rebellion was avoided. MPs rejected a bid by Labour's Chris Leslie to force the government to consult Parliament on the deal struck with the EU before it is finalised. It came after ministers pledged that a ""meaningful"" vote would be offered. Labour and some Tories had pushed for MPs to have a decisive say on the final terms, but the 326 to 293 vote means the bill remains unchanged. MPs are still debating other elements of the draft legislation, which will authorise the prime minister to formally begin Brexit negotiations under Article 50 of the Lisbon Treaty. Theresa May has already promised Parliament will get a say on the final deal, but critics, including some Conservatives, said they wanted more than the ""take it or leave it"" vote being offered. Any possibility of a Conservative rebellion appeared to be halted by comments from Brexit Minister David Jones. Mr Jones said MPs would get a say on the final draft Brexit agreement before it was voted upon by the European Parliament. ""This will be a meaningful vote,"" he told MPs. ""It will be the choice of leaving the EU with a negotiated deal or not."" However, some MPs questioned whether any concessions had in fact been offered. Asked what would happen if Parliament rejected the Brexit deal or if there was no agreement with the EU to vote upon, Mr Jones said that in each scenario the UK would still leave the EU but ""fall back on other arrangements"". This would effectively see the UK default to World Trade Organization trade rules, involving potential tariffs on exports and imports. Opponents of Brexit have said this would cause real damage to British business, but supporters say the UK can live with the consequences if necessary as the UK would then be free to negotiate its own trade arrangements. Mr Jones said the government wanted to avoid a situation in which ministers were sent back to the negotiating table to hammer out a better deal. This, he said, would be hard given the two-year limit for talks and would also be ""the surest way of undermining our negotiating position and delivering a worse deal"". Former chancellor Ken Clarke - the only Tory to vote against kickstarting the Brexit process last week - said Parliament should have the opportunity to shape the final deal, while former SNP leader Alex Salmond said MPs should have a genuine choice without the ""Sword of Damocles"" hanging over them. Labour's Chuka Umunna said the choice facing MPs was ""unacceptable"", Lib Dem leader Nick Clegg described it as a ""symbolic handout"" while Green Party leader Caroline Lucas said MPs were being ""duped"". But Labour's font bench claimed the move as a ""significant victory"" in response to its repeated demands for a ""meaningful"" vote at the end of the two-year negotiation process. The party withdrew its proposed amendment before Mr Leslie's was defeated. MPs, who overwhelmingly backed the European Union Bill last Wednesday, are currently in the middle of three further days of more detailed debate, with the Commons looking at amendments proposed by MPs. Labour leader Jeremy Corbyn, who backed the Remain side in last year's EU referendum, has ordered his MPs to support the government's bill, whether his party's amendments are accepted or not. If passed by Parliament - with the House of Lords due to scrutinise it after the Commons - the bill would allow Prime Minister Theresa May to invoke Article 50 of the Lisbon Treaty, getting divorce talks with the EU under way. Mr Corbyn argues that it would be undemocratic to ignore the will of the people, as expressed in last June's EU referendum. Shadow business secretary Clive Lewis has vowed to oppose the bill unless Labour amendments are passed in the Commons. Frontbench members of parties are generally expected to resign from their post if they ignore a three-line whip.", -72,2017/2/7,http://www.bbc.co.uk/news/uk-politics-38889941,Speaker John Bercow defends his comments on Donald Trump,Commons Speaker John Bercow has defended voicing his opposition to Donald Trump addressing Parliament.,"Commons Speaker John Bercow has defended voicing his opposition to Donald Trump addressing Parliament. His comments, including accusing the US president of ""racism and sexism"", had been made ""honestly and honourably"" and were within his remit, he told MPs. Several Conservatives have criticised the Speaker, one saying his career could be in ""jeopardy"" and another that he had damaged the national interest. Downing Street called his comments ""a matter for Parliament"". The US president has accepted an invitation from the Queen for a state visit to the UK, which can include an address to both Houses of Parliament, later this year. However, responding to a point of order in the Commons on Monday, Mr Bercow said he was opposed to Mr Trump speaking to MPs and peers - as some other international leaders have done. He said it was ""not an automatic right"", but an ""earned honour"", to applause from Labour and SNP MPs. Questioned in the Commons on Tuesday about his remarks, he replied: ""The House has always understood that the chair has a role in these matters."" He added: ""I was honestly and honourably seeking to discharge my responsibilities to the House."" Mr Bercow said it was time ""to move on to other matters"". Conservative MP Sir Gerald Howarth said there had been a ""rather subdued aspect"" among his party's MPs when Mr Bercow had spoken. He added: ""I do hope that you will help us to ensure that we can have full confidence in your impartiality, because that's the way for the House to proceed."" The ""relationship between the United Kingdom and United States is an extremely important one"", Sir Gerald also said. However, Labour MP Paul Flynn said the Commons owed Mr Bercow ""a debt of gratitude for deciding that in this case such an invitation should not be supported by this House."" And SNP MP Alex Salmond, who had several run-ins with Mr Trump when he was Scottish First Minister, told Mr Bercow: ""If ever a statement deserved clapping, then yours did yesterday."" Mr Bercow is one of three ""key holders"" to Westminster Hall - where Mr Trump's predecessor Barack Obama spoke in 2011 - along with the Speaker of the House of Lords, Lord Fowler, and the Lord Great Chamberlain, a hereditary peer in charge of certain parts of the Palace of Westminster. All three must agree in order for an address to take place there. Lord Fowler addressed peers on Tuesday, saying Mr Bercow had not informed him ahead of voicing his opinion on Mr Trump, adding that Mr Bercow had told him he was ""genuinely sorry"" for this. He added: ""I don't intend to argue the case for or against Mr Trump's visit. That's not my role as Speaker. ""But let me say I have spent the last 30 years campaigning against discrimination, particularly against LGBT people and people with HIV/Aids."" As speaker, Mr Bercow is the highest authority of the House of Commons and must remain politically impartial. Several senior Conservatives have been highly critical of his comments. One unnamed Tory MP and former cabinet member told the BBC he ""must be close to standing down"" as Speaker, while another said his remarks had gone ""way beyond what is acceptable"". Conservative MP Nadine Dorries said: ""When he loses support for what was a very partisan moment I think his position will become more and more in jeopardy."" Crispin Blunt, the Conservative MP who chairs the Commons Foreign Affairs Select Committee, said Mr Bercow was going to have to deal with ""the consequences"" of his comments. He added that the Speaker, ""who's meant to referee all of this, should keep himself above that"". What is a state visit? Former Culture Secretary John Whittingdale told Sky News: ""It was a performance, it was John Bercow playing to the gallery and I think it was damaging to the national interest. I think it is regrettable that he did it."" Fellow Conservative Nadhim Zahawi, who has been critical of Mr Trump's travel ban on nationals from seven mainly Muslim countries, said the Speaker prided himself on his neutrality and to become the story was ""a bad place to be"". He said Mr Bercow had opened himself up to accusations of hypocrisy after allowing other controversial leaders, like the Chinese president, to speak, and urged him to explain his thinking to MPs. Meanwhile, Joe Wilson, a Congressman for Mr Trump's republican Party, told the BBC's Newsnight programme Mr Bercow's interjection had been ""very disappointing"". ""If ever in recent years there's been a more pro-British president of the United States, it's Donald Trump,"" he said. Former UKIP leader Nigel Farage said Mr Bercow had ""abused his position"" and that to have expressed his opinions in the way he did ""devalues this great office"". But Labour leader Jeremy Corbyn, who has called for the state visit to be postponed, welcomed the intervention, while Liberal Democrat leader Tim Farron said Mr Trump was ""not welcome"". A petition to withdraw the invitation to the US president - and another one backing the visit - will be debated by MPs later this month. No date for Mr Trump's visit has been announced.", -73,2017/2/7,http://www.bbc.co.uk/news/uk-38899472,RAF Typhoon jets escort Pakistan plane to Stansted,RAF fighter jets have been scrambled to divert a Pakistan International Airlines plane to Stansted Airport.,"RAF fighter jets have been scrambled to divert a Pakistan International Airlines plane to Stansted Airport. Stansted said the flight from Lahore to Heathrow had landed in Essex at 14:50 GMT after being escorted by Typhoons. Essex Police said the diversion had been due to reports of a disruptive passenger and was ""not believed to be a hijack situation or terror matter"". In an unrelated matter, a passenger due to be arrested by police on arrival at Heathrow was held at Stansted instead. The Met said the 52-year-old had been arrested on suspicion of committing fraud offences in the UK and was being transferred to a London police station. The Airbus A330 was held away from the airport after its diversion and Pakistan International Airlines said passengers were provided with ""surface transport"" to London. Stansted remained open as usual throughout the incident. An Essex police spokesman said: ""An aircraft was diverted to Stansted Airport at around 3pm this afternoon while over UK airspace en route to Heathrow Airport due to reports of a disruptive passenger on board. ""The plane is currently at the airport and officers are making enquiries. There is no disruption to the ongoing operation of Stansted Airport."" However, Pakistan International Airlines said in a statement that UK authorities had received ""some vague security threat through an anonymous phone call"" regarding the flight. Pakistan's Civil Aviation Authority tweeted: ""#PIA flight bound for Heathrow from Lahore has been diverted to #Stansted due to reasons aboard the aircraft."" The RAF confirmed that Quick Reaction Alert Typhoon aircraft had been scrambled from RAF Coningsby, in Lincolnshire. Stansted is a designated airport for dealing with hijacks and major security alerts. Such incidents are dealt with in a remote part of the airfield to the north-west of the terminal building. Are you on board the flight? Get in touch by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -74,2017/2/7,http://www.bbc.co.uk/news/uk-england-beds-bucks-herts-38893753,Accused Ian Stewart says 'never stopped loving' author Helen Bailey,"The man accused of murdering children's author Helen Bailey has told a court he ""never stopped loving"" her.","The man accused of murdering children's author Helen Bailey has told a court he ""never stopped loving"" her. Ian Stewart, 56, denies murdering his fiancee and dumping her body in order to inherit her money. Mr Stewart broke down in tears as he told jurors there was ""no way"" he was responsible for killing the Electra Brown writer. St Albans Crown Court heard he sent her texts while she was missing, begging her to return. Mr Stewart is accused of drugging and probably suffocating his bride-to-be as part of a plot to acquire her riches. He was repeatedly overcome by emotion as he recalled the early days of their relationship, saying: ""We totally clicked and worked together as a couple."" The 51-year-old writer was last seen on 11 April and reported missing by Mr Stewart on 15 April. She was found beneath the garage, together with that of her dachshund Boris, on 15 July. Mr Stewart denied knowing she had died until her body was found in a cesspit, Simon Russell Flint, defending, asked him: ""Did you have any knowledge of her death until you heard her body had been found?"" ""No,"" he replied. When it was suggested he had killed his fiancee, he responded: ""No way"". The former software engineer said he first met Ms Bailey on a Facebook group for widowers and widows following the death of his wife in 2010. The pair started out comforting each other over their losses - Ms Bailey's first husband drowned in 2011 - but eventually began a relationship. ""We totally clicked and worked together as a couple,"" he told the court. ""I had fallen in love with her quite quickly but she warned me once to never say the L word. But then I went to hug her and I said it and she replied instantly, 'I love you too'. ""I never stopped loving her."" The prosecution alleges Mr Stewart murdered Northumberland-born Ms Bailey for her money. She was worth more than ?3.3m at the time of her death, the court heard. They also allege he disposed of her phone. Mr Stewart, of Baldock Road, Royston, also denies preventing a lawful burial, fraud and three counts of perverting the course of justice. The trial continues.", -75,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38897507,Education nominee Betsy DeVos wins Senate confirmation vote,"The US Senate has confirmed President Donald Trump's controversial nominee for education secretary, Betsy DeVos, by the slenderest possible margin.","The US Senate has confirmed President Donald Trump's controversial nominee for education secretary, Betsy DeVos, by the slenderest possible margin. US Vice-President Mike Pence cast the tie-breaking vote to secure her cabinet role, splitting the chamber 50-50. It was the first time ever that a vice-president has interceded in such a way for a cabinet secretary. Mrs DeVos, a billionaire who has no experience with public schools, faced a rocky confirmation hearing last month. Moments after voting ended, she tweeted: ""I appreciate the Senate's diligence & am honored to serve as @usedgov Secretary. ""Let's improve options & outcomes for all US students."" Senate Democrats staged a 24-hour debate into Tuesday to hold up her confirmation. They hoped their all-night speaking marathon would pressure more Republican senators to oppose the nomination, but their efforts were in vain. Mr Pence was also the first vice-president to cast a deciding vote in the Senate since 2008, when Dick Cheney voted on a tax adjustment plan. No Democrats voted in favour of Mrs DeVos. Two Republican senators stood by their plan to oppose her confirmation, leaving the Senate in a deadlock. In the end Donald Trump is going to get the team he wants. Betsy DeVos's education secretary nomination looked a bit shaky for a while, but no Republican senator was willing to be the third ""no"" vote that would have sunk her. Secretary of State Rex Tillerson's ties to Russia made some conservatives uneasy, and prompted sharp questioning from Senator Marco Rubio of Florida, but the former oil magnate's party closed ranks behind him. The only real question mark left is labour secretary nominee Andrew Puzdner, whose confirmation hearings have been postponed four times amid reports that he has not fully disentangled himself from his sprawling fast-food business empire. If he withdraws, however, it will be quietly, before a confrontation with Democrats heats up. Democrats always faced an uphill battle in bringing down any of Mr Trump's cabinet nominees, given the mathematical reality of being in the Senate minority. Republicans were loath to deal an early, embarrassing setback to the new president, possibly earning his long-term enmity. The fight over Mrs DeVos and other nominees has engaged the Democratic base, however. Now the question is whether they will stay engaged in the months and years ahead - or if this initial surge of activism will recede over time. Critics say Mrs DeVos, who advocates for charter schools, is not qualified to run the Department of Education. She faced intense scrutiny before a Senate committee in January, when she made headlines for noting that a Wyoming school might need a gun to defend against grizzly bears. Labour unions, rights groups and teaching organisations have also spoken out against her nomination. Groups including the American Federation of Teachers and the Leadership Conference on Civil and Human Rights held protests against Mrs DeVos outside of Congress on Monday evening. The 59-year-old is a wealthy Republican Party donor and a former Michigan Republican Party chairwoman who has long campaigned for education reform in the state. Her husband Dick DeVos was a chief executive of the beauty and nutrition giant Amway and her brother is Erik Prince, the founder of the controversial private security company Blackwater. She is among several of Mr Trump's cabinet picks whom Democrats have been trying to block from being approved. Democrats said in January they would target eight of Mr Trump's nominees based on their lack of qualifications and policy positions. Before Mrs DeVos' approval, just six of Mr Trump's cabinet picks had been confirmed, compared with former President Barack Obama's 12 cabinet secretaries at this point in 2009 and 16 of George W Bush's in 2001, according to the Washington Post. The slowed process is also partly due to the fact that some of Mr Trump's picks have not completed a lengthy vetting process typically required of Cabinet candidates, which helps identify potential conflicts of interest. Hundreds of staff positions also remain vacant as the fate of 15 of Trump administration's nominees hangs in the balance.", -76,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38899343,Barack Obama goes kitesurfing with Richard Branson,,Former US President Barack Obama has enjoyed a spot of kitesurfing with Richard Branson., -77,2017/2/7,http://www.bbc.co.uk/news/uk-politics-38884601,More affordable housing promised in White Paper,"The government has vowed to build more affordable houses and help people buy and rent, after admitting the current market is ""broken"".","The government has vowed to build more affordable houses and help people buy and rent, after admitting the current market is ""broken"". The new housing strategy for England includes giving councils powers to pressurise developers to start building on land they own. Ministers also pledged to make renting more ""family-friendly"" with longer tenancies offered. Labour called the measures announced ""feeble beyond belief"". The government says at least 250,000 new homes are needed each year to keep pace with demand and councils and developers need to ""get real"" to the scale of the challenge. Mr Javid set out the details of the housing White Paper in a statement to MPs, with measures including: So-called starter homes, championed by former Prime Minister David Cameron, will be aimed at ""households that need them most"", those with combined incomes of less than ?80,000, or ?90,000 in London. Starter homes are new homes built for first-time buyers between 23 and 40 years old and sold at least 20% below market value. The maximum price after the discount has been applied is ?250,000 outside London and ?450,000 in the capital. Under the new proposals, starter home buyers will need a mortgage, ""to stop cash buyers"", and some or all of the discount will have to be repaid if the property is resold within 15 years, ""to reduce the risk of speculation"". A proposal that 20% of all larger developments had to be starter homes is to be dropped and replaced with a ""clear expectation"" that at least 10% of developments will be ""affordable home ownership units"". The 22-year-olds who bought their own home (without mum and dad's help) Ruby Willard, a recruitment consultant, and engineer Sam Bardell bought a ?182,200 two-bedroom terraced house in Havant, Hampshire, last year. They took advantage of the government's Help to Buy Isa, but to save for the ?18,000 deposit, it was a case of being ""quite tight"", she says. ""When we decided we were going to buy, I thought I'm not going to spend money elsewhere when I don't need to... ""I get commission and Sam gets overtime so we probably earn ?55,000 overall, which meant we were in a position we could borrow maybe more than people on minimum wage."" Read how other 20-somethings managed to do it Mr Javid said: ""Walk down your local high street today and there's one sight you're almost certain to see: young people, faces pressed against the estate agent's window, trying and failing to find a home they can afford. ""With prices continuing to skyrocket, if we don't act now, a whole generation could be left behind. We need to do better, and that means tackling the failures at every point in the system. ""The housing market in this country is broken and the solution means building many more houses in the places that people want to live."" Mr Javid admitted there was ""no one single magic bullet"" and there had to be a ""proper conversation about housing need"". Ministers have admitted the government is behind schedule in its efforts to build one million new homes in England by 2020. For Labour, shadow housing minister John Healey said: ""We hoped for better and we needed better. His disappointment will desperately disappoint millions of people struggling to cope with a housing crisis. It was feeble beyond belief."" He added: ""We were promised a White Paper; we are presented with a white flag."" The Lib Dems criticised the ""utterly vacuous"" proposals for not mentioning the government's stated aim of a million new homes by 2020, a target ministers have insisted they are still aiming for. BBC home editor Mark Easton This government seems to speak with two voices on housing: the communities department wants to shift the balance of power firmly towards new development in places people want to live, but Number 10 and some influential Tory backbenchers are sympathetic to the passionate concerns of those who wish to protect the countryside and particularly the green belt. The real question that lies behind all the rhetoric and policy bullet-points is whether the balance of power between development and local opposition has fundamentally changed. Ministers now accept England needs 250,000 new homes every year, they have described the housing market as ""broken"" and they agree that radical change is the only way to mend it. But many have yet to be convinced that this White Paper amounts to a ""realistic plan"" to achieve that. Read more from Mark Former Conservative housing minister Grant Shapps told the BBC's Daily Politics the problem would not be solved simply ""by slotting in a few more homes in converted former industrial sites"". He added: ""Housing ministers over the years have come out with documents or bills, and the truth is none of them are going to make much difference - and I don't suppose this will make that much difference either. ""The reason is this - unless you build literally two, three, million more homes then you're not going to solve the problem."" The Local Government Association said the White Paper contained ""some encouraging signs"" on increasing housing supply and affordability. It welcomed the new ""flexibility"" around starter homes and called for new power and funding to allow councils to build affordable homes directly. The Campaign to Protect Rural England welcomed what it said was a focus on addressing current failings rather than ""meddling"" with the planning system. ""We are pleased that ministers have recognised that weakening the Green Belt is unnecessary,"" said chief executive Shaun Spiers. ""But with 360,000 houses already proposed for Green Belt land the government needs to do much more to uphold national policy and stop councils releasing it for development."" Daniel Bentley, editorial director at the think tank Civitas, said: ""The problem is not sites with planning permission standing idle, except in limited circumstances. ""It is with sites that are being developed, but too slowly to get ahead of demand and make any difference to the affordability of housing."" Graeme Brown, interim chief executive of the homelessness charity Shelter, said: ""The White Paper poses the right questions. What we need now is quick and bold action that helps people in need of a decent home tomorrow, not in 10 years."" Where can I afford to live? Do you feel the need to get on the housing ladder or are you happy to rent? Or are you looking to downsize after living in your family home for several years? Tell us your experiences by emailing haveyoursay@bbc.co.uk You can also contact us in the following ways:", -78,2017/2/7,http://www.bbc.co.uk/news/uk-england-derbyshire-38893253,Mia Ayliffe-Chung: Backpacker's mum slams Trump 'terror' claim,"The mother of a backpacker who was stabbed to death in Australia has criticised the White House for labelling her death a ""terror attack"".","The mother of a backpacker who was stabbed to death in Australia has criticised the White House for labelling her death a ""terror attack"". Mia Ayliffe-Chung, 20, who was killed at a hostel in Queensland in August, did not die as a result of terrorism, police have said. Despite this, her death was included on a list of 78 alleged ""terror"" attacks released by the Trump administration. Rosie Ayliffe said Mia's death must not be used to persecute innocent people. How the BBC covered Trump's list of 'under-reported' terror attacks The White House released the list of attacks to back up Mr Trump's claim the media was ""under-reporting"" attacks committed or inspired by the Islamic State group. The list included the Bataclan theatre attack in Paris, the shootings in Sousse, Tunisia, which killed 30 British tourists, and Ms Ayliffe-Chung's murder. The 20 year old, from Wirksworth, died from multiple stab wounds, during the attack at Home Hill, near Townsville. Australian police have ruled out the possibility her death - which was widely reported by media in the UK and abroad - was the result of a terror attack. Mr Trump's comments come amid a legal bid by his administration to restore a travel ban on visitors and refugees from seven predominantly Muslim countries. In an open letter to the president, Mrs Ayliffe said: ""Treating immigrants as disposable commodities and disregarding their safety causes deaths throughout our so-called civilised world."" French national Smail Ayad, 29, has been charged with the murder of Ms Ayliffe-Chung and that of Thomas Jackson, 30, from Cheshire, who was also stabbed and later died in hospital. Mrs Ayliffe added: ""The possibility of Mia and Tom's deaths being consequent to an Islamic terror attack was discounted in the early stages of the police investigation. ""This vilification of whole nation states and their people based on religion is a terrifying reminder of the horror that can ensue when we allow ourselves to be led by ignorant people into darkness and hatred."" Mr Trump has insisted ""the threat from radical Islamic terrorism is very real"" and has vowed to have the travel ban reinstated.", -79,2017/2/7,http://www.bbc.co.uk/news/uk-england-surrey-38891663,Surrey couple's divorce payments raised after 15 years,"The ex-husband of a woman who was awarded ?230,000 on her divorce has been told by the Court of Appeal he must support her for life.","The ex-husband of a woman who was awarded ?230,000 on her divorce has been told by the Court of Appeal he must support her for life. Maria Mills, 51, was originally awarded ?1,100 a month from 50-year-old Graham Mills after 13 years of marriage. Appeal Court judges also ruled he should pay her ?1,441 per month as she is ""unable to meet her basic needs"". Mr Mills had argued he should not have to ""pick up the tab"" 15 years after the couple split. Lord Justice Longmore and Sir Ernest Ryder heard the couple married in 1988, had a now-grown-up son, separated in 2001 and divorced in 2002. Mr Mills, a surveyor, had agreed to give Mrs Mills, a former Notting Hill estate agent, almost all their ""liquid capital"" when they divorced, while he kept his business. His barrister, Philip Cayford, told the court Mr Mills, who now lives in Guildford, had since remarried and wanted to ""move on"" with his life. The court heard Mrs Mills had made some ""unwise"" property investments, moving from a house in Weybridge to a flat in Wimbledon, and then to an apartment in a luxury Victorian mansion block in Battersea. After selling the Battersea flat she was left ""without any of the capital"", the court was told, and was now living in a rented home in Weybridge. Mrs Mills works for two days per week as a beauty therapist, the court was told. Frank Feehan, representing Mrs Mills, said she had been left with the responsibility for the couple's young child and without enough money to buy a house that she considered ""good enough"". He said his client was ""unable to meet her basic needs"". In the ruling, Sir Ernest said Mr Mills had the ability to make the increased maintenance ""until a further order of the court"".", -80,2017/2/7,http://www.bbc.co.uk/news/business-38894023,"Tax burden to be highest in 30 years, says think tank","Tax is set to rise as a share of the UK's income to its highest level since 1986, according to a think tank.","Tax is set to rise as a share of the UK's income to its highest level since 1986, according to a think tank. Higher income from taxes and relatively low growth will combine to create this effect, according to the the Institute for Fiscal Studies. Austerity will continue into the 2020s, after Chancellor Philip Hammond's decision to scrap a target of balancing the nation's books, it said. The Treasury said it was committed to repairing Britain's finances. Forecasts by Oxford Economics, which contributed to the report, estimate the UK economy will grow by 1.6% in 2017. In 2018, growth in gross domestic product will slow to 1.3%, Oxford Economics said. Growth is expected to be dulled as a result of inflation prompted by the decline of the value of the pound after the EU referendum. While a weaker pound is likely to improve the performance of manufacturers and exporters, higher costs for consumers will more than erase this gain, said the report. Ahmed: Public finances and the shadow of Osborne ""Though the UK economy has continued to achieve solid growth, it has been almost entirely reliant on the consumer,"" said Andrew Goodwin, lead UK Economist at Oxford Economics and co-author of part of the report. ""With spending power set to come under significant pressure from higher inflation and the welfare squeeze, the consumer will not be able to keep contributing more than its fair share. Exports should be a bright spot, but overall a slowdown in GDP growth appears likely."" The UK's economy could be 3% smaller by 2030 than if Britain had voted Remain, according to forecasts in the IFS's annual Green Budget. This annual analysis, ahead of next month's Budget, says spending on health, social care and benefits for sick or disabled people represents a particular risk to the public finances because it accounts for almost one third of government expenditure. The report confirms that the period between 2009 and 2014 saw the slowest rate of growth in health spending in England since the mid-1950s. And it argues that health budgets by the end of this decade will be over a billion pounds less than what is needed to cope with England's growing and ageing population, regardless of what are likely to be significant rises in demand for NHS care. In a statement, the Treasury said: ""The government is committed to repairing the public finances and living within our means so that we can build an economy that works for all. ""That has required some difficult decisions on spending, but we are determined to deliver efficient public services which provide maximum value for every pound of taxpayers' money."" Spending on public services dropped by 10% since 2010, the report said, after adjusting the figures for inflation. To meet his target of eliminating the deficit during the next parliament, which is from 2020 to 2025, Mr Hammond will probably have to find a further ?34bn in tax rises and spending cuts, extending austerity. The report said ?17bn of tax rises could be needed to contribute to closing the gap for government between outgoings and income.", -81,2017/2/7,http://www.bbc.co.uk/news/uk-england-manchester-38892464,Manchester tram racist abuse man jailed,A man who admitted racially abusing a US army veteran on a Manchester tram with two other males has been jailed.,"A man who admitted racially abusing a US army veteran on a Manchester tram with two other males has been jailed. Juan Jasso was verbally attacked and had beer thrown at him for tackling the trio for using foul language on the Metrolink tram on 28 June. Jobless Robert Molloy, 20, of no fixed address, was jailed for six months for abusing Mr Jasso and two other men. Sentencing of Aaron Cauchi, 19, was adjourned over illness while a boy, 16, was given a six-month referral order. The court heard the trio had been drinking all night when they went on a ""rampage"" and abused Mr Jasso and two other people in separate incidents. Their abuse of Mr Jasso was filmed by a passenger and widely viewed. Trouble began at 07:45 BST when a passenger heard ""disgusting, vile abuse"" on the tram packed with mothers with babies, schoolchildren and commuters, the court heard. Joseph O'Connor, prosecuting, told the court the trio then got off the tram and surrounded another man, ""with their chests stuck out and shoulders back, striking him with a cigarette lighter to intimidate him"". Shortly afterwards another man was cycling to work when he passed the trio and one or more spat at him, the court heard. Molloy pleaded guilty to racially aggravated assault, common assault and using threatening words or behaviour. Jailing Molloy, chair of the bench Michael Evans told him: ""Hopefully on your release from prison a lesson will be learned and you will be able to make a positive contribution and treat people with respect."" Molloy was also banned from using Greater Manchester trams for two years. Cauchi, of Spa Crescent, Little Hulton, Salford, who admitted to using threatening words or behaviour to Mr Jasso and another man and an assault on a third man, was taken from the court in an ambulance to hospital after complaining of stomach pains. It is not known when he will be sentenced. The youth, who cannot be named for legal reasons, received a six-month referral on Monday. He was charged with using threatening words or behaviour and common assault.", -82,2017/2/7,http://www.bbc.co.uk/news/uk-england-38891475,Strippers who blackmailed Danny Cipriani sentenced,"Two strippers who admitted blackmailing rugby player Danny Cipriani, after one of them aborted his child, have received suspended sentences.","Two strippers who admitted blackmailing rugby player Danny Cipriani, after one of them aborted his child, have received suspended sentences. Lisa Murphy, 39, had a termination in the summer of 2015 after a relationship with Cipriani, 29, the court heard. But when she was forced to miss work, due to complications, she asked him for money, which he did not pay. Murphy enlisted her colleague, Violet Smith, 29, for help and they threatened to go to the papers with the story. Murphy from Wootton, Northampton, and Smith of Slough, Berkshire, were handed a 22-month sentence suspended for two years at Kingston Crown Court. The Wasps fly-half - who was playing for Sale Sharks at the time - had offered to pay for the abortion but Murphy refused, insisting she could have the procedure for free on the NHS, the court heard previously. But when she experienced a health scare following the procedure and was unable to work, she became ""increasingly frustrated, increasingly upset, and increasingly desperate"", her lawyer, Hannah Duncan, said. Judge Peter Lodder noted while Cipriani had ""repeatedly"" offered to help, he ""did not act according to his earlier promises"". He said: ""Certainly he does not appear to have fully appreciated the extent of your difficulties"". Judge Lodder said Murphy was ""feeling increasingly desperate and was continuing to suffer from the emotional consequences of her condition"". Nigel Mitchell, representing Smith, said the pair had been offered ?18,000 for their story by The Sun but intended to resolve the situation with the former England player and continued to message him between September and October 2015. He said: ""Ms Smith's intention was to try and resolve matters. Like her co-defendant, not for a second did she consider her action and behaviour was amounting to a criminal offence."" Judge Lodder added that Smith was ""motivated by concern"" for her friend. ""It is against that background that the threat to go to the newspapers was made,"" he told the court. Describing how both defendants had since lost their jobs, he commented: ""It is an understatement to say that nobody has come out of this episode well."" ", -83,2017/2/7,http://www.bbc.co.uk/news/world-asia-38894409,Kyra Poh: The 14-year-old who is the 'world's fastest flyer',,"Fourteen-year-old indoor skydiver Kyra Poh was crowned the ""world's fastest flyer"" in one of the sport's biggest competitions, the Wind Games. Riding winds as fast as 230km/h (143mph), Kyra flips and whirls around the arena, a small blur of white spandex in a giant vertical wind tunnel.", -84,2017/2/7,http://www.bbc.co.uk/news/uk-38900223,Want to buy a house? Under 25? Watch this,,"Owning a home by the age of 25 has become an unobtainable dream for many over the last two decades. Soaring property prices mean just one in five 25-year-olds own a property, compared to nearly half two decades ago, according to one recent study.", -85,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38899342,Sean Spicer: 'I don't think the President owns a bathrobe',,"The New York Times has referred to President Trump wearing a bathrobe and his press secretary Sean Spicer has come out to refute that, calling it 'fake news'. Social media, meanwhile, has been flooded with photos of a younger Mr Trump clad in a robe.", -86,2017/2/7,http://www.bbc.co.uk/news/entertainment-arts-38892452,Comedian says Simon Cowell 'furious' about BGT prank,,"The comedian who pretended to be a ""rapping rabbi"" on Britain's Got Talent has told 5 live he thought Simon Cowell would be amused by his stunt. Simon Brodkin told 5 live's Afternoon Edition: ""I thought Simon Cowell would have a sense of humour about it and would find the whole thing funny"", but he has been told he is ""pretty furious"" about the prank. Brodkin, known for his comedy character Lee Nelson, has carried out similar stunts on President Trump, Sir Phillip Green and Sepp Blatter. Brodkin reveals how he does his stunts in a Channel 4 documentary called Britain's Greatest Hoaxer.", -87,2017/2/7,http://www.bbc.co.uk/news/world-38881351,The European village where Muslims and gays are unwelcome,,"Muslim dress and ""Homosexual propaganda""?have been banned in a remote village in southern Hungary. Its mayor, Laszlo Toroczkai, says that while he would welcome people from Western Europe to live in the area, ""we wouldn't like to attract Muslims to the village"". Lesley Ashmall reports for the Victoria Derbyshire programme. The Victoria Derbyshire programme is broadcast on weekdays between 09:00 and 11:00 on BBC Two and the BBC News channel.", -88,2017/2/7,http://www.bbc.co.uk/news/uk-38890907,'Don't let parents have social media',,"Research commissioned by Newsround has found that 10-12 year-olds feel worried and pressured about looking good in the photos they share on social media. The majority take at least four selfies before choosing one to share, and three quarters say they edit photos before posting them. But what's shaping their attitudes?", -89,2017/2/7,http://www.bbc.co.uk/news/science-environment-38898641,How do you reintroduce a herd of bison into the wild?,,"A herd of plains bison have been successfully reintroduced to Canada's oldest national park, more than 100 years after they were nearly hunted out of existence.", -90,2017/2/7,http://www.bbc.co.uk/news/uk-politics-38896276,A look inside Number 10 at Theresa May's top team,,"Since Theresa May's team moved into Downing Street last July, pretty much all of her predecessor's advisers were given their marching orders. So who is in her new team? As part of the Daily Politics series Westminster Village, reporter Mark Lobel takes a look inside that famous door. For rights reasons, this film is not available outside the UK. More: Follow @daily_politics on Twitter and like us on Facebook and watch a recent clip and watch full programmes on iPlayer", -91,2017/2/7,http://www.bbc.co.uk/news/science-environment-38890905,Will robots replace workers by 2030?,,"According to some predictions, robots will go on to replace people in a third of UK jobs by 2030. So should we be worried by the rise of the machines? BBC Breakfast's Tim Muffet reports.", -92,2017/2/6,http://www.bbc.co.uk/news/38877149,Southern rail: Could drivers reject deal?,"""It's two weeks of my life I'll never get back. But we finally got there.""","""It's two weeks of my life I'll never get back. But we finally got there."" Bizarrely, the bosses of both sides said exactly the same thing to me when I interviewed them last week, moments after they'd announced a deal to resolve the worst of the Southern rail strikes. Mick Whelan from Aslef and Nick Brown from GTR (Southern's parent company) looked shattered but pleased with their agreement. But was everyone cracking the champagne corks too soon? Aslef's 1,000 or so drivers still need to vote on the deal and there are possible signs that they might just kick it out. I spoke to a couple of Southern's train drivers over the weekend and they were not happy. One wrote this to me: ""GTR, 'We will agree to carry on doing exactly what we want.' Aslef, 'OK, we'll agree to that then.'"" He went on: ""I'm very much of the opinion it will be a resounding 'no' vote (when members vote). The feeling is the union has sold us out."" Another driver also said that everyone he'd spoken to will vote no to the deal, again saying that they felt let down and that the company had got away with it. He even suggested that some of his colleagues might leave Aslef and join the RMT union instead. The RMT is still in dispute with Southern over the same issue and was vitriolic about the deal over the weekend. True, this is just the opinion of two drivers who've been chatting to their colleagues. But it suggests some anger at what they are being asked to sign up to. I understand that there is going to be a meeting in Brighton on Tuesday, where Aslef reps will try to sell the deal to members. It's bound to be frosty. All of this doesn't necessarily mean that Aslef's drivers will vote against the agreement. When I interviewed Mick Whelan last week he told me: ""I'm not in the habit of making deals that my members don't like."" Then there are the London members who already use driver-only-operated trains and may not feel as strongly over this crunch issue. Plus, Aslef doesn't pay members during industrial action, and the double whammy of losing strike-day pay plus overtime may be enough to cut their appetite for a fight. If the drivers do vote against the deal though, it's hard to see where the next breakthrough in this dispute might come. If two weeks of ""incredibly intense"" negotiation at the TUC can't solve it, what can? Presumably, Aslef would be forced to call more crippling strikes, which would also turn up the heat on the government to take over either part or all of this troublesome, complex behemoth of a franchise. I can tell you, ministers are not keen to seize control. Meanwhile, the RMT union, which represents the guards/conductors, has vowed to keep fighting. Their strikes don't have the same impact as Aslef's, with the last one only knocking out around 30% of services. But even that might change if their angry Aslef colleagues decide not to cross picket lines. Anyway, we should know all on 16 February when the ballot result comes back. The worst may not be over for beleaguered Southern passengers.", -93,2017/2/6,http://www.bbc.co.uk/news/business-38650976,Why the falling cost of light matters,"Back in the mid-1990s, an economist called William Nordhaus conducted a series of simple experiments with light.","Back in the mid-1990s, an economist called William Nordhaus conducted a series of simple experiments with light. First, he used a prehistoric technology: he lit a wood fire. But Prof Nordhaus also had a piece of hi-tech equipment with him - a Minolta light meter. He burned 20lb (9kg) of wood, kept track of how long it burned for and carefully recorded the dim, flickering firelight with his meter. Next, he bought a Roman oil lamp, fitted it with a wick, and filled it with cold-pressed sesame oil. He lit the lamp and watched the oil burn down, again using the light meter to measure its soft, even glow. Bill Nordhaus's open wood fire had burned for just three hours on 9kg of wood. But a mere eggcup of oil burned all day, and more brightly and controllably. Why did he do this? He wanted to understand the economic significance of the light bulb. But Prof Nordhaus also wanted to illuminate a difficult issue for economists: how to keep track of inflation, the changing cost of goods and services. 50 Things That Made the Modern Economy highlights the inventions, ideas and innovations that helped create the economic world. It is broadcast on the BBC World Service. You can find more information about the programme's sources and listen online or subscribe to the programme podcast. To see why this is difficult, consider the price of travelling from - say - Lisbon in Portugal to Luanda in Angola. When that journey was first made, by Portuguese explorers, it would have been an epic expedition, possibly taking months. Later, by steam ship, it would have taken a few days; then, by plane, a few hours. An economic historian could start by tracking the price of passage on the ship, but once an air route has opened up, which price do you look at? Maybe you simply switch to the airline ticket price once more people start flying than sailing. But flying is a different service - faster, more convenient. If more travellers are willing to pay twice as much to fly, it hardly makes sense for inflation statistics to record that the cost of the journey has suddenly doubled. It was to raise this question over the way we measure inflation that Bill Nordhaus started fooling around with wood fires, oil lamps and light meters. He wanted to unbundle the cost of a single quality that humans have cared deeply about since time immemorial, using the state-of-the-art technology of different ages: illumination. Light is measured in lumens, or lumen-hours. A candle gives off 13 lumens while it burns. A typical modern light bulb is almost 100 times brighter than that. Imagine gathering and chopping wood 10 hours a day for six days. Those 60 hours of work would produce 1,000 lumen hours of light. That is the equivalent of one modern light bulb shining for just 54 minutes, although what you would actually get is many more hours of dim, flickering light instead. Of course, light is not the only reason to burn fires: they also help keep you warm, cook your food and scare off wild animals. If you just needed light and a wood fire was your only option, you might decide to wait until the Sun comes up. Thousands of years ago, better options came along - candles from Egypt and Crete, and oil lamps from Babylon. Their light was steadier and more controllable, but still prohibitively expensive. In a diary entry of May 1743, the president of Harvard University, the Reverend Edward Holyoake, noted that his household had spent two days making 78lb (35kg) of tallow candles. Six months later, he noted: ""Candles all gone."" And those were the summer months. The iPhone at 10: How the smartphone became so smart The steel box that changed global trade The hidden strengths of unloved concrete How the barcode changed retailing Nor were these the clean-burning paraffin wax candles we use today. The wealthiest could afford beeswax, but most people - even the Harvard president - used tallow candles, stinking, smoking sticks of animal fat. Making them involved heating up animal fat and dipping and re-dipping wicks into the molten lard. It was pungent and time-consuming work. According to Prof Nordhaus's research, if you set aside one whole week a year to spend 60 hours devoted exclusively to making candles - or earning the money to buy them - that would enable you to burn a single candle for just two hours and 20 minutes every evening. Things improved a little as the 18th and 19th Centuries unfolded. Candles were made of spermaceti - the milk-hued oily gloop harvested from dead sperm whales. American founding father Ben Franklin loved the strong, white light they gave off, and the way they ""may be held in the hand, even in hot weather, without softening"", and noted that they ""last much longer"". While the new candles were pleasing, they were also pricey. George Washington calculated that burning a single spermaceti candle for five hours a night all year would cost him ?8, or well over $1,000 (?820) in today's money. A few decades later, gas lamps and kerosene lamps helped to lower costs. They also saved the sperm whale from extinction. But they, too, were basically an expensive hassle. They dripped, smelt and set fire to things. Then something changed. That something was the light bulb. By 1900, one of Thomas Edison's carbon filament bulbs would provide you with 10 days of bright, continuous illumination, 100 times as bright as a candle, for the money you could earn with our 60-hour week of hard labour. By 1920, that same week of labour would pay for more than five months' continuous light from tungsten filament bulbs. By 1990, it was 10 years. A couple of years after that, thanks to compact fluorescent bulbs, it was more than five times longer. The labour that had once produced the equivalent of 54 minutes of quality light now produced 52 years. And modern LED lights continue to get cheaper and cheaper. Switch off a light bulb for an hour and you are saving illumination that would have cost our ancestors all week to create. It would have taken Benjamin Franklin's contemporaries all afternoon. But someone in a rich industrial economy today could earn the money to buy that illumination in a fraction of a second. And of course our light bulbs are clean, safe and controllable - no flicker, pig fat stink or risk of fire. The light bulb has become an icon of innovation. It has transformed our society into one where we can work, read, sew or play whenever we want to, regardless of how dark the night has become. But the price of light alone tells a fascinating story: it has fallen by a factor of 500,000, far faster than official inflation statistics suggest. A thing that was once too precious to use is now too cheap to notice. Tim Harford writes the Financial Times's Undercover Economist column. 50 Things That Made the Modern Economy is broadcast on the BBC World Service. You can find more information about the programme's sources and listen online or subscribe to the programme podcast.", -94,2017/2/7,http://www.bbc.co.uk/news/uk-politics-38899301,Reality Check: Will it be easier to build on green belt?,"The government has described the housing market as broken, promised more affordable homes and said it would help people to buy and rent.","The claim: The green belt is safe from an increase in development. Reality Check verdict: The rules for developing green belt previously said that it was allowed only in exceptional circumstances. The government has now specified what would count as exceptional circumstances. It is not clear whether the new rules will be more or less strict than just letting councils decide what counted as exceptional circumstances. The government has described the housing market as broken, promised more affordable homes and said it would help people to buy and rent. A big question in discussions of increasing the supply of homes is whether planning regulations will be changed to make it easier to build on green belt land. Green belts were introduced after World War Two to stop cities from sprawling and countryside being spoilt. About 13% of England is now covered. This covers scenic sites open to the public, such as the Chiltern Hills and North Downs, but it also covers a lot of land that has limited public access and may not be particularly beautiful. In the House of Commons, Communities Secretary Sajid Javid said: ""In 2015, we promised the British people that the green belt was safe in our hands and that is still the case."" So what has changed? There has been little variation in the amount of green belt land since 1997, although data is not available for every year. The Housing White Paper says the current planning regulations allow building on the green belt only ""in exceptional circumstances"" but that there is no detail given of what would amount to exceptional circumstances. The government has now specified that before allowing development on green belt land, councils would need to rule out options including: The White Paper also says that councils allowing the boundaries of green belt land to be changed would have to make up for it by improving other bits of green belt. It also asks for suggestions of other things councils should take into account before doing so. Read more from Reality Check", -95,2017/2/7,http://www.bbc.co.uk/news/world-australia-38877658,The Kylie Minogue vs Kylie Jenner trademark battle,A trademark battle between Kylie Minogue and Kylie Jenner appears to have come to an end.,"A trademark battle between Kylie Minogue and Kylie Jenner appears to have come to an end. Jenner, who first shot to fame in the US reality TV show Keeping Up With the Kardashians, has been trying to trademark the name Kylie in the US. But she has been blocked by the veteran Australian pop star Minogue, best known for hits such as I Should Be So Lucky and Can't Get You Out Of My Head. After a long and heated battle, the Kylies may have reached a settlement. According to papers filed with the US Patent and Trademark Office (USPTO), in April 2015 Jenner attempted to register the mark ""KYLIE"" in the US for ""advertising services"" and ""endorsement services"". In response, Minogue's team filed their opposition in February 2016, citing possible confusion and ""damage"" to Minogue's branding. They noted Minogue was an ""internationally renowned performing artist, humanitarian and breast cancer activist"" who already owns Kylie-related trademarks in the US in several industries, as well as the website www.kylie.com. Jenner, on the other hand, was dismissed as a ""secondary reality television personality"" who had drawn criticism for her ""photographic exhibitionism and controversial posts"" on social media. The case was suspended at least twice in 2016 for settlement negotiations. On 19 January Minogue's team withdrew its opposition, which means Jenner's application could proceed. This raises the possibility that they agreed to a settlement. The BBC approached both sides, but Jenner's lawyers declined comment, and Minogue's team did not respond. The USPTO does not comment on individual cases. But meanwhile Jenner appears to have conclusively lost another battle - to trademark her full name. In November 2015, Jenner's lawyers separately tried to trademark the name ""KYLIE JENNER"" for a long list of clothing and accessories. But this was rejected in July last year. On 23 January, Jenner's team appealed against this decision. Flight attendant shares story of saving trafficking victim Why do Germans hate this football club? How to own a home in the UK by the age of 25 Last year, Jenner launched a line of cosmetics called KYLIE. According to her latest appeal, she wants to eventually have ""KYLIE JENNER"" branded clothing as well as loungewear, swimwear, and underwear. Meanwhile, Minogue owns ""KYLIE"" and other similar trademarks in perfumes and toiletries, music and sound recordings, live entertainment, jewellery, dolls and toys, and printed matter such as magazines and books. So far, Minogue has released fragrances, furniture and clothes with her trademarks on them. She also had previously said in interviews she intends to one day produce a musical featuring her greatest hits, and owns the US trademark for ""Lucky: The Kylie Minogue Musical"". But it's more than that. Since the 1980s, Kylie Minogue has never had to go by any other name but Kylie, and her team has argued it's a fundamental part of the pop diva's identity. Even with a possible settlement, what the battle shows is that at the very least brand KYLIE is not won without a fight. Reporting by the BBC's Tessa Wong, Kevin Ponniah and Jay Savage.", -96,2017/2/6,http://www.bbc.co.uk/news/business-38877091,Do 'longest flight' records matter?,"Qatar Airways has launched what it says is the longest current non-stop commercial route, after completing a journey from Doha to Auckland.","Qatar Airways has launched what it says is the longest current non-stop commercial route, after completing a journey from Doha to Auckland. Flight QR920 landed on Monday after 16 hours and 23 minutes, slightly quicker than expected. The Boeing 777-200LR jet was showered with water cannons on arrival - a tradition for airlines on new routes. Carriers like to talk up these records, but how are they measured and do they really matter? Longest (time) or furthest (distance) are the two key distinctions to make, but it's not as simple as it might sound. The distance between two cities doesn't vary for airlines of course, but they might choose to take alternative routes. For example, a carrier might choose to avoid flying over certain countries which can alter how far a plane flies from point A to point B. And airlines have been known to take unconventional routes. In October last year, Air India flew Delhi to San Francisco by crossing the Pacific rather than the Atlantic - a direction switch which added an extra 1,400km to the journey, making the 15,127km trip the longest ever non-stop flight by distance. By comparison, Qatar's new route is 14,535km. But regardless of the route, flight time is dependent on headwinds or tailwinds. For example, Qatar's return leg from Auckland to Doha is expected to take about 18 hours because of headwinds. And though Air India went the ""long way round"", favourable tailwinds meant the journey took about two-and-a-half hours less than its conventional route. ""The longest flying time doesn't always correspond with the longest distance,"" says Ellis Taylor of Flightglobal. ""Of course, from a passenger perspective, the flying time is probably the best measurement."" Record-breaking flights may make headlines. But new long-haul flights mean nothing if they're treated as a standalone route, says Mr Taylor. Rather, it's what a new route brings to the airline's existing network. ""On its own, it wouldn't be viable to fly between Auckland and Doha, but Qatar is focusing on the passengers from Auckland going on to Europe, Africa, the US or elsewhere,"" says Mr Taylor. ""In that light, even though it may take some time for the route to stack up from a profit perspective, it may help the economics of its wider network."" Historically, most of the major long-haul routes have been serviced by legacy airlines like Singapore Airlines and Australia's Qantas. But adding new routes have allowed newer airlines like Qatar, and perhaps most notably Emirates, to expand their business very rapidly. ""It's also about reach for Middle East airlines striving to outdo each other,"" says Geoffrey Thomas of Airlineratings.com. Longest flight records will continue to change hands as airlines launch new routes, and the range capability of aircraft improves. Last year, for example, Qantas revealed it would fly direct between Perth and London from March 2018, a flight that will take 17 hours. The price of fuel and the types of planes which airlines buy will be the determining factors in opening new routes ""With the arrival of the 777-8X in 2022, new records such as flights from Sydney to New York and Sydney to London will be set,"" says Mr Thomas. ""The 777-8X will be the ultimate long haul airliner."" But remember, for routes to be viable, they also require people to buy tickets. That depends on passengers being willing to sit in their seats for 16, 17 or maybe 18 hours at a time. How long that desire will last (especially for travellers cramped up in economy) is something airlines will monitor carefully.", -97,2017/2/6,http://www.bbc.co.uk/news/world-us-canada-38881119,Taking on Trump: Is the US facing a constitutional crisis?,"Donald Trump says he is defending the United States from terrorism - but a ""so-called judge"" is ""making the job very difficult"".","Donald Trump says he is defending the United States from terrorism - but a ""so-called judge"" is ""making the job very difficult"". But the judge - in halting the president's controversial executive order on immigration - said he was making sure President Trump's actions follow the law. That sets two theoretically equal branches of the government against one another - and could bring about a crisis. The separation of powers is crucial to understanding how the US is governed. The country's constitution established its treasured system of checks and balances - where the different branches of government hold equal authority and offset one another. The federal government's power is split into three distinct parts - the executive branch, which includes the president and his cabinet; the legislative branch, Congress, which makes the laws; and the judiciary. This works well most of the time, with each branch co-operating with the next. But with the president in open conflict with another branch, there are fears that an impasse could be reached. That could lead to a constitutional crisis - a scenario in which the situation cannot be resolved - particularly after Mr Trump seemed to openly question the judge's authority. ""The President's hostility toward the rule of law is not just embarrassing, it is dangerous,"" Democratic Senator Patrick Leahy, from the Senate judiciary committee, said. ""He seems intent on precipitating a constitutional crisis."" There are about 700 federal district judges in the US - the type facing down the president's order. Unlike state court judges, these men and women are part of the federal court system - along with the Supreme Court and the Courts of Appeals. Day to day, it's the 94 District Courts which deal with interpretation of US laws, treaties, and public officials - powers devolved to them from the Supreme Court. The judicial Power shall extend to all Cases, in Law and Equity, arising under this Constitution, the Laws of the United States, and Treaties made, or which shall be made... But the courts do not offer opinions on government policy unless they are asked - they only interpret law when a case is brought before them. The other two branches of government make and enforce the laws, and the judicial branch interprets the laws when there is a dispute. That is the issue here - a presidential executive order has all the force of law, and is subject to the same checks. Those judicial powers have been used many times before. Barack Obama faced stumbling blocks in 2015 when he attempted to use an executive order to grant a reprieve to undocumented immigrants, and George W Bush faced similar battles over detainees in Guantanamo Bay. It is true that district judges are appointed by the president and confirmed by the Senate. Judge James Robart, for example - the ""so-called judge"" of Mr Trump's Twitter criticism - was appointed by President George W Bush and confirmed in 2004. But Mr Trump can't fire judges. That's because the founding fathers of the United States created a system to protect the judiciary from interference. Only Congress can remove a federal judge from office through impeachment, which involves both the House and Senate. It is the same system used to remove a president. This ""article three"" protection is, in practical terms, very rigid. Only eight judges have been convicted in an impeachment trial in the entire history of the United States. The end result is that federal judges usually serve until they choose to retire - or until death. In effect, two of the country's three branches of government are in conflict - and neither can remove the other. Inside the mind of Donald Trump Which executive actions will have the most impact? Tech world caught between Trump and a liberal place The Supreme Court, as the name implies, has ultimate power in the judiciary - the other courts are inferior to it. In this case, the government could have taken its appeal against the district rulings straight to the Supreme Court - and may still do so. Nine seats make up the court Four were appointed by Democrats: two by President Clinton, and two by President Obama Four were appointed by Republican Presidents: George W Bush, George Bush Snr, and Ronald Reagan One seat is vacant following the death of Antonin Scalia. Just as with the other federal courts, though, the Supreme Court is protected from interference. But there are currently only eight judges on the Supreme Court. Four were appointed by a Democrat, and four by a Republican - with one vacant seat waiting to be filled by Mr Trump's nominee, which could swing the balance of power. Congress could break any deadlock that crops up between the president and the judiciary by creating a law that overturns his decision - or even impeaching a president or judge. Since Mr Trump's Republican party holds a majority there, action against the president seems unlikely. And the independence of the courts is so essential to the US way of governing, that moving to attack judges on behalf of the president would be a drastic step. Nonetheless, with two of the three powers in conflict, the decision may fall to Congress eventually - unless Mr Trump modifies his order. That may be the most prudent move, in keeping with his predecessors who have often backed off in the face of judicial opposition. For now, though, Mr Trump ""just cannot believe a judge would put our country in such peril"" - and shows no signs of changing his mind.", -98,2017/2/3,http://www.bbc.co.uk/news/world-us-canada-38830514,Trump presidency week two: Foot still on accelerator,"President Trump's first week in office was widely regarded as a whirlwind. His second week has been no less hectic. Despite the mass protests of week one and falling approval ratings, the administration appears to be doubling down on its pledge to shake up the Washington playbook.","President Trump's first week in office was widely regarded as a whirlwind. His second week has been no less hectic. Despite the mass protests of week one and falling approval ratings, the administration appears to be doubling down on its pledge to shake up the Washington playbook. In a divided America, many people are repelled by the agenda and tone of this administration, while many others are pleased that their president is taking a bold stand and getting things done. Here are five key things from week two in Trumpland. On Friday, a week after his inauguration, President Trump issued an executive order suspending all refugee admissions for 120 days, banning Syrian refugees indefinitely and suspending arrivals from seven Muslim-majority countries for 90 days. The immediacy of the announcement, which Mr Trump said was necessary to not allow any lag time for ""bad dudes"" to sneak in, caused widespread confusion at airports around the world. Families were separated, and even Green Card holders from the affected countries were initially included in the ban. An Iraqi who put his life at risk as an interpreter for the US army was among hundreds of people detained at airports. Around the world, travellers were prevented from boarding planes, and in some cases, were pulled off flights. Vetted refugees waiting to travel to the US despaired. An Iran-born BBC reporter with British citizenship was among those temporarily detained. Demonstrators flocked to airports in protest, with many lawyers offering their services for free and filing emergency motions to have people released. Mr Trump said the restrictions were required so new security measures could be put in place to protect America from possible terrorist attacks. Things were working out ""very nicely"", he said. Steve Gruber, a popular talk-show host in Michigan, summed up the mood among many Trump voters. Listeners, he said, ""are encouraged that a politician, albeit a new one, is actually doing the things he said he would do"". Several courts moved to block parts of the order being implemented, but reports said that border officers in some places were not complying with the rulings. As condemnation grew, including from a few top Republicans, many foreign governments and major US companies, the White House insisted it was not a Muslim ban, pointing to the many Muslim-majority countries not involved. Thousands join protests across UK But former New York mayor Rudy Giuliani undermined that claim, admitting to Fox News that Mr Trump had previously asked him how to legally implement a ban on Muslims. He said, however, that the ban implemented was based on ""danger"", not religion. Sean Spicer, the White House's combative press secretary, blasted journalists for reporting it as a travel ""ban"", even though his boss used that very wording on Twitter. Meanwhile, the world tried to figure out the unique language on display at protests in Scotland. The immigration order's fallout dominated headlines for most of this week. ""This has proven to be an embarrassing episode in what looks like a not-ready-for-primetime White House,"" our correspondent Anthony Zurcher wrote. Amateur hour at the White House? But President Trump's supporters think he's doing a great job. The former reality TV star now in the White House was this week finally given a chance to fire someone. In the middle of the furore over the immigration ban, acting attorney general Sally Yates ordered justice department lawyers not to enforce President Trump's executive order. Within hours, she was dismissed and accused by President Trump of ""betraying"" her department and being ""weak on borders"". Some observers and journalists asked whether the dismissal would have a chilling effect across government. But the White House said justice department lawyers had deemed the order legal and thus Ms Yates was not fulfilling her duty. The move came on the heels of other comments from the administration suggesting that dissent from officials would not be tolerated. As news spread on Monday that hundreds of US diplomats around the world were planning to use a ""dissent channel"" to argue that the immigration restrictions would not make the US safer, Sean Spicer said ""they should either get with the programme or they can go"". That seemed like a pretty direct message to US government employees with independent views. On Tuesday evening at a White House ceremony, Donald Trump unveiled his pick to fill the vacant seat on the Supreme Court - Judge Neil Gorsuch, of Colorado. The Democrats, whom the administration has chastised for seeking to stymie them at every opportunity, have hinted they will use all means at their disposal to block his confirmation in the Senate. The Supreme Court has the final say on such divisive issues such as abortion, gun control and gay rights. Since Judge Antonin Scalia died a year ago, the court has been split equally between liberal and conservative justices, at four each. Whoever holds the ninth seat is thus pretty significant, though justices don't always split on clear ideological lines. Barack Obama tried to replace Mr Scalia with a nominee of his choice, but the Republicans didn't allow it given an election was forthcoming. Like the late Mr Scalia, the Ivy-League educated Mr Gorsuch is known to support textualism, or the interpretation of law according to its plain text. He also maintains a strict interpretation of the US Constitution, or how it was originally understood by the Founding Fathers. Who is Neil Gorsuch? Why is the US Supreme Court so important? House Democratic Leader Nancy Pelosi called the nominee ""a very hostile appointment"" and ""a very bad decision, well outside the mainstream of American legal thought"". And of course, there were more protests. Stephen Bannon, Donald Trump's chief strategist, is a man who many people believe is behind much of what has come out of the White House in the past two weeks. The former executive chairman of populist, conservative news website Breitbart has been described as a ""rumpled right-wing agitator"" by the New York Times. On Saturday night, he was given a seat on the National Security Council's inner circle, or principals' committee. Under the restructuring, the Joint Chiefs and director of national intelligence have been told only to attend when discussions pertain to their areas. The move shocked many Washington veterans. ""It's completely unprecedented to have a political adviser as a member of that group,"" Eliot Cohen, director of the Strategic Studies Program at the Johns Hopkins University School of Advanced International Studies, told the BBC. Mr Bannon has a ""destructive"" world view and has accumulated an ""unhealthy"" level of power, he said, describing it as an ""ominous"" move. What exactly is his destructive world view? Well, according to the Daily Beast, in 2013 Bannon said he wanted ""to bring everything crashing down, and destroy all of today's establishment"". The White House tried to brush the changes off, pointing to the fact that Obama adviser David Axelrod had been included in some council meetings. Mr Bannon jokingly referred to himself as ""Darth Vader"" in a recent interview where he described US media as ""the opposition party"". Steve Bannon will now sit at a table where issues pertaining to US national security, and thus global stability, are discussed at a very, very senior level. Refugees are very much on President Trump's radar at the moment and it is well known that he likes to talk about deals. But a phone call on the subject on Saturday between the US president and the Australian PM, which was scheduled to last for an hour, was cut short from the White House after just 25 minutes. President Trump said the conversation with Malcolm Turnbull, in which they discussed a refugee resettlement deal between the two nations, was not a favourite among calls he had taken with world leaders. In fact, the Washington Post reported that Mr Trump described the conversation as ""the worst by far"". He appeared to be somewhat irritated by the subject matter - a deal struck with the Obama administration which would see up to 1,250 asylum seekers to Australia resettled in the US. What next? President Trump was so worked up after discussing ""the worst deal ever"" that he decided to issue a statement in his preferred manner - via Twitter. Mr Trump tweeted that he would ""study this dumb deal"". Later, Mr Spicer gave an official version of his boss's 25-minute call with Mr Turnbull. He said that both leaders had ""emphasised the enduring strength and closeness of the US-Australia relationship"". Mr Turnbull later thanked President Trump for agreeing to uphold the deal. Trump's first week: Well, that was intense", -99,2017/2/3,http://www.bbc.co.uk/news/uk-38856081,Should you have two bins in your bathroom?,"Our bathrooms are filled with shampoo bottles, toilet rolls and cleaning products which could easily be put into our recycling bins when finished with.","Our bathrooms are filled with shampoo bottles, toilet rolls and cleaning products which could easily be put into our recycling bins when finished with. Yet research shows our green intentions are washed away as soon as we step near a toilet. Now a business group has come up with an idea for how to combat this problem - two bathroom bins. The Circular Economy Taskforce, who were brought together by Prince Charles's Business in the Community environment charity, says it could boost recycling. So should two bins really sit alongside your stack of loo roll in the bathroom? Why should people have two bins in their bathrooms? ""It's trying to address the problem that people are less likely to recycle packaging for things we use in our bathrooms than for things we use in other rooms of the house,"" says Jonny Hazell, senior policy adviser for environmental think tank Green Alliance. The Recycle Now campaign points to its statistics, which show that while 90% of packaging is recycled in our kitchens, only 50% is being recycled in the bathroom. ""Often homes have one central recycling bin located in the kitchen, so when in the shower or washing your face it can be tricky to remember to transfer it to that bin,"" it says. ""This is why having a recycling bin or bag in the bathroom might be useful, if there is space."" Business in the Community says two bins could make it easier to separate out the plastics that can be recycled. ""But it doesn't have to be a bin, it could be as simple as a bag on the door handle that you bring down to the kitchen every week,"" it added. Where has this idea come from? While recycling has grown from 12% to 45% in the UK over the last decade, campaigners say the bathroom is an area that needs more focus. The Circular Economy Taskforce came up with the idea as part of its work looking at practical collaborative ways to boost recycling and re-use rates. ""The bathroom is one of the areas that has come up time and time again in the group as somewhere where both business and consumers can make a difference to help us all reduce our impact on the environment,"" says Business in the Community. ""Thinking about how different types of bins could boost recycling in the bathroom is just one example of a potential simple solution that could have a big impact."" Why are people failing to recycle their bathroom products? Campaigners believes it comes down not just to where a recycling bin is located but also to confusion over what can be recycled. Recycle Now says: ""There can also be confusion about what can or can't be recycled with bathroom products. ""For example many people don't realise that bleach bottles can be easily recycled - simply make sure it's empty and put the lid back on. ""Recycling just one bleach bottle saves enough energy to power a street light for 6.5 hours, so the value quickly adds up."" Research from the University of Exeter also found that people who threw away waste in the bathroom saw it as being ""dirty"" and were less likely to recycle it. Going through your bathroom bin to separate out what can and can't be recycled can seem off-putting,"" says Business in the Community. It added: ""There is also a lot of confusion around what can be recycled in the bathroom, for example many consumers are confused by aerosols."" How much recyclable waste comes from a bathroom? A surprising amount. Typical products include: Plastic shampoo, conditioner and shower gel bottles, plastic moisturiser bottles (such as for hand cream and body lotion), glass face cream pots (plus the cardboard packaging they come in), perfume and aftershave bottles, aerosols for deodorant, air freshener and shaving foam, bleach and bathroom cleaner bottles, toothpaste boxes and toilet roll tubes. Is a lack of recycling in bathrooms a real problem? Every little helps, is the message from environmental and recycling groups. ""In general, the less we recycle, the more water and energy we need to use to produce the materials we use in our daily lives,"" said Mr Hazell. Recycle Now says recycling reduces the amount we are sending to landfill and makes use of resources already available rather than making them from scratch. ""Ultimately this means reduced levels of greenhouse gases in our atmosphere which contribute to climate change,"" it added. ""For instance it takes 75% less energy to make a plastic shampoo bottle from recycled plastic compared with using virgin materials."" Can two bins have a meaningful impact on recycling overall? ""Ensuring you recycle in the bathroom can make a big difference,"" says Recycle Now. ""It would save ?135,000 in landfill costs if every UK household threw their next empty shampoo bottles into the recycling bin. ""On top of this, if everyone recycled one more toilet roll tube it would save enough cardboard inner tubes from landfill to go round the M25 38 times."" But what if you don't have the space for two bins? There are other options. Hang a reusable bag on the bathroom door so you can transfer your recyclable items straight into the recycling bin. Or opt for a bin with split compartments which can be used to separate recyclable and non-recyclable items.", -100,2017/2/3,http://www.bbc.co.uk/news/uk-38852000,Vegetable shortage: How to cope as supermarkets ration lettuces,"Some supermarkets are rationing iceberg lettuces, with experts warning it could be the, er, tip of the iceberg.","Some supermarkets are rationing iceberg lettuces, with experts warning it could be the, er, tip of the iceberg. Bad weather in Europe has already caused a #courgette crisis, alongside a shortage of broccoli, tomatoes, salad peppers and aubergines. With vegetable shortages expected to continue until April, what alternatives are there for shoppers? During the UK's winter months of December, January and February, UK farmers produce beetroot, Brussel sprouts, cabbage, cauliflower, celeriac, chicory, fennel, Jerusalem artichokes, kale, leeks, parsnips, potatoes, red cabbage, swede and turnips. We've become a ""slightly strange group"", expecting all-year-round produce, according to Lord Haskins, the former chairman of Northern Foods, which supplies Tesco. ""Thirty years ago you'd never have worried about buying lettuce in the middle of the winter - lettuces were things that grew in the summer and you ate them in the summer - you ate cauliflowers and Brussels sprouts in the winter,"" he says. As for courgettes, they are actually ""very, very out of season"", says organic vegetable retailer Riverford. We have just got used to supermarkets supplying them all year round. Eating British produce that's in season is often cheaper, as it is produced locally - and it can be healthier too. According to food industry campaign group Love British Food, fruit and vegetables that are in season contain the nutrients, minerals and trace elements that our bodies need at particular times of year. Apples, for example, are packed with vitamin C to boost our resistance to winter colds. The group's Alexia Robinson recommends beetroot, kale, cabbages, broccoli and traditional root vegetables for their health-giving properties. Riverford says a slaw made with cabbage, beetroot or swede will offer ""10 times more nutrients"" than an iceberg lettuce - which it says aren't known for their nutritional value. If you are really keen on iceberg lettuces, you can probably pay a bit more for one from Peru or South Africa, says Lord Haskins. But imported vegetables can clock up a lot of air miles before they land on your plate - making them worse for the environment. Hatty Richards, from the Community Farm in Chew Magna, Somerset, says buying local is better. ""We have such a range on our doorsteps already, it's fresher, it's really good for the environment - it reduces air miles - and it supports local business which is crucial."" Lord Haskins agrees, and suggests your tastebuds may also be grateful: ""We all buy stuff from far parts. They don't taste nearly as good: strawberries at this time of year from Egypt don't taste anything like as good as a British strawberry in May, June, July."" A leafy salad is nice - but there are plenty of alternative dishes to try. Riverford's Guy Watson thinks the UK's more bitter winter salad leaves and root vegetables can provide ""a far superior substitute"" which will easily make up for a lack of lettuce. Vibrant winter coleslaws and cauliflower salads ""bring British veg to life"", he says, adding that one of the Riverford Field Kitchen's most popular winter dishes is a kale caesar salad. Kale, which was originally used to feed cows, is a robust, hardy winder leaf that can withstand frosty weather. It can also be used in soups, stews, stir fries, gratins or just wilted with butter. For Ms Robinson suggests embracing winter comfort food with a ""good old fashioned winter stew with plenty of root vegetables with tender meat"". If you're still not convinced you can do without leafy salads, try growing your own. Those who do want to eat lettuce need not despair. According to the campaign group Eat Seasonably, lettuce, rocket and other crunchy salad leaves are some of the easiest things to grow at home, all year around - on a seed tray indoors, on your window sill or in the garden. Ms Robinson says: ""As well as the cress there are many great veg that can be easily grown in window boxes such as leaf lettuce, radishes, spinach, green onions and of course a good selection of herbs."" Another easy win is beetroot, Eat Seasonably says, which can be grown in a big pot. Though beetroot is harvested in October, Riverford says it can last up to four months if it's kept in a cold storage. ""Carrots are not too hard to grow either,"" Riverford's Emily Muddeman said, ""Leeks, kale - you could plant just four or five stalks of kale and it will go on sprouting."" Any budding gardeners could start with planting onions later this month - Eat Seasonably says they are ""not even slightly difficult to grow"".", -101,2017/2/6,http://www.bbc.co.uk/news/in-pictures-38880353,The Afghan girls with silver swords,All photographs by Mohammad Ismail,"Led by 20-year-old Sima Azimi, the Shaolin Wushu club practises on a snow-covered mountaintop to the west of Kabul. Developed from ancient Chinese martial arts, the sport of wushu sees these young women moving fluidly, slicing the air with silver swords. After learning the sport in Iran, Sima won medals in competition and says: ""My ambition is to see my students take part in international matches and win medals for their country."" Despite the popularity of martial arts in Afghanistan, women's sport is severely restricted. All of the women in the club are Hazara, a Dari-speaking, mainly Shia group. They have generally more liberal social traditions that allow them to practise sports outside the home. In addition to the regular dangers of life in Kabul, these women face intimidation and abuse. One member, Shakila Muradi, says: ""There are many people harassing us, but we ignore them and follow our goals."" Sima has been teaching in Kabul for about a year, training at the club's gym with her father. This gym has a large poster of stuntman Hussain Sadiqi, a Hazara martial arts champion who fled to Australia to work in film. Her father declares his pride in his daughter. ""I am really happy that I helped, encouraged and supported Sima,"" he says. All photographs by Mohammad Ismail", -102,2017/2/4,http://www.bbc.co.uk/news/in-pictures-38853110,Week in pictures: 29 January - 3 February 2017,Our selection of some of the best news photographs taken around the world this week. All photographs are copyrighted.,Our selection of some of the best news photographs taken around the world this week. All photographs are copyrighted., -103,2017/2/3,http://www.bbc.co.uk/news/world-africa-38847656,Africa's top shots: 27 January-2 February 2017,"Images courtesy of AFP, AP, EPA, Getty Images and Reuters","A selection of the best photos from across Africa this week. Images courtesy of AFP, AP, EPA, Getty Images and Reuters", -104,2017/2/2,http://www.bbc.co.uk/news/in-pictures-38839655,Your pictures: Broken resolutions,"Each week, we publish a gallery of readers' pictures on a set theme. This week it is ""broken resolutions"".",, -105,2017/2/7,http://www.bbc.co.uk/sport/cricket/38897347,Alastair Cook: Playing under new England captain 'not an issue' following resignation,Alastair Cook still 'hungry' to score runs for England,"Share this with Media playback is not supported on this device Alastair Cook says playing under another England captain will ""not be an issue"" following his resignation as skipper on Monday. The 32-year-old opening batsman led England a record 59 times in Tests. ""I hope I can help the next captain with whatever he needs and drive England forward,"" Cook told BBC Sport. ""I can't see, for me, it being an issue being led by someone else. I hope I can be part of it and I'm really looking forward to the next stage."" Cook took over the England captaincy in 2012 and oversaw series victories in India and South Africa, as well as Ashes victories in 2013 and 2015. However his tenure also saw a 5-0 Ashes whitewash in Australia in 2013-14, as well as a 4-0 series defeat in India last year. He is England's top run scorer in Test cricket with 11,057 runs and 30 centuries. ""It's a job you need to do at 100% and be committed to everything and I had to be really honest with myself,"" Cook added. ""I couldn't do that anymore. It's not a job you can do at 95%. I'm sad to walk away but it's the right time to do it."" Cook's last game in charge saw England slip to an innings-and-75-run defeat against India, the culmination of a run of six defeats in their past eight Tests. The Essex batsman, who was left visibly upset by the final day's collapse, said after the game that he would consider his future as captain. ""That was kind of maybe the final nail in the coffin. When I left India, I was pretty sure I wouldn't captain England again,"" Cook said. ""Admitting that isn't the easiest thing to do, certainly not with my character, but it's the right decision for me and the right decision for the team. ""It's such an honour to be England captain and all the bits that go with it. Everything I have been involved with, 59 games as captain, I've absolutely loved. Giving that away was very hard."" Vice-captain Joe Root is the favourite to take over the Test captaincy, having led Yorkshire several times in the County Championship. The 26-year-old, who represents England across all three formats, has scored 4,594 runs at an average of 52.80 since making his debut in 2012. England face Test series in the summer against South Africa and the West Indies, before travelling to Australia in November for the Ashes. ""The one thing I learnt throughout my career as captain is that you need those people outside, looking in, to help you,"" Cook said. ""My first couple of years I was pretty stubborn that this is the way I should do it, and I didn't take that much advice outside of England. ""Actually there's a lot of very good people who watch a lot of cricket, probably more than all of the guys who are playing, who can offer advice. Finding people you trust that way is vitally important and they can help you."" Media playback is not supported on this device Cook has a win percentage of 40.67 as captain, the fourth best of the six captains to have led England in more than 40 Tests. As captain he managed the return - and subsequent ending - of batsman Kevin Pietersen's international career in 2014, a year which saw England lose a Test series against Sri Lanka from the penultimate delivery in Headingley and collapse to a 95-run defeat by India at Lord's. Cook described himself as being ""pretty much at rock bottom"" following the Lord's defeat, but he received a warm ovation from the crowd in Southampton during England's next Test, where he made 95. ""When you're really doubting yourself, to walk out there on that first day was really special for me. It was almost spine-tingling,"" he said. ""It surprised me, to have that warmth of reception. A lot of people walked up to me in the street, saying I was the right man to drive it forward."" Cook added that he felt the decision to end Pietersen's England career should have been handled better, and that he did not want the saga to define his captaincy. ""I was part of the decision-making process but I don't have the power, or didn't have the power, to decide who played for England. I was just asked my opinion about it,"" he said. ""However I felt at one time I was a bit of a lightning rod for it. That was a hard six months. ""I wouldn't want my captaincy to be talked about just because of that. I don't think it's fair on myself or on the teams."" Former England spinner Monty Panesar on BBC Radio 5 live Cook has plenty of years left in him and plenty of scoring to do, so I would like to say keep going, keep scoring the runs because he is a run machine. He is definitely one of the best captains England has ever produced. When the pressure is on, he has the ability to stay calm. He is probably the toughest cricketer England have ever produced and probably the most mentally tough. Former England seamer Matthew Hoggard I don't think there will be any issues with Cook playing under a new captain. [Cook and Root] are good friends and they get on well. Without the burden of having to do all the press, the meetings, the thinking on the pitch, you might find Cook goes on and breaks many records with the bat. Listen to The Tuffers and Vaughan Show on BBC Radio 5 live, Tuesday, 19:30 GMT. Share this with Analysis and opinion from the BBC's cricket correspondent. BBC Test Match Special returns with live commentary on every ball of England's one-day international series against West Indies in March. Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. How to get into cricket - physical exertion with a chess-like element in matches which range from half an hour to five days. 5 people who have modified their bodies with tech Run by the BBC and partners Swimming For Over 50s Steel City Striders Running Club For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -106,2017/2/7,http://www.bbc.co.uk/sport/football/38896070,Claudio Ranieri: Leicester City back Italian coach despite poor form,No crisis at Leicester - Ranieri,"Share this with Media playback is not supported on this device Leicester City have given their ""unwavering support"" to manager Claudio Ranieri despite the reigning Premier League champions being just one point above the relegation zone. The Italian had been under pressure after a run of just two wins in their last 15 Premier Leagues games. However, the Foxes said in a statement that ""the entire club is and will remain united behind its manager"". ""This is not a crisis,"" Ranieri said following the club's backing. ""When you aren't winning you lose confidence, it is normal."" Leicester are 16th and are without a league win in 2017. Foxes goalkeeper Kasper Schmeichel called the club's title defence ""embarrassing"" after Sunday's 3-0 defeat at home to Manchester United. Leicester acknowledged that ""recent form needs to improve"", but said Ranieri would be given the opportunity to turn things around. ""The unprecedented success achieved in recent seasons has been based firmly on stability, togetherness and determination to overcome the greatest of challenges,"" the club said. Ranieri guided Leicester to the Premier League title last season despite the Foxes being 5,000-1 shots. They won the league by 10 points but face becoming the first defending champions to be relegated since 1938, after winning just five league games so far this season. Recent reports suggested Ranieri had lost the support of his players, with the 65-year-old's squad tinkering and supposed ban on chicken burgers angering some of the Leicester squad. Media playback is not supported on this device However, Ranieri denied any unrest and said he has ""a fantastic relationship"" with his squad. ""The dressing room is fantastic,"" he said. ""Never have I seen a chicken burger, only deep fried chicken. It's fantastic. ""The dressing room is fantastic. We try to do our best, but this season everything is wrong."" BBC Radio Leicester's Jason Bourne: ""Claudio was upbeat and thoroughly charming as he showed no signs of pressure during his news conference this afternoon. ""Leicester City are struggling in the Premier League and haven't scored a goal in the competition since 31 December, but you wouldn't know it from speaking to him today. ""He suggested the club's statement was for us in the media rather than for him - but what it does show is that the club are prepared to be patient with him. ""Nigel Pearson initially struggled in his first season in the top-flight but the club backed him and he led them to the 'greatest escape'. ""Here's my concern, though. There was real evidence of fight then but I'm not so sure that steeliness and determination is as prevalent now. I fear for the club this season, but they do have the capability to stay up. I hope they go out there and prove themselves once again. ""Kasper Schmeichel has come out with some strong words and the rest of the players could do well to heed his advice."" Share this with 5 people who have modified their bodies with tech Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Swimming For Over 50s Steel City Striders Running Club For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -107,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38896417,Obama chills with Branson: What about other post-presidency wind downs?,"Whether after four years or eight, all US presidents must eventually confront the question: What happens when I leave the Oval Office?","Whether after four years or eight, all US presidents must eventually confront the question: What happens when I leave the Oval Office? For Barack Obama, the answer was a five-star Caribbean holiday - and a seemingly endless grin. The former commander in chief has been pictured beaming on a beach in a backwards cap, flanked by an equally cheery Michelle. The venue for this masterclass in chilling? Necker island in the British Virgin Islands, owned by British billionaire Sir Richard Branson. Sir Richard posted pictures on his blog of Mr Obama learning to kite-surf, and engaging in a play-fight with the businessman. The airline mogul said he invited the Obamas ""for a complete break"" on his private island after they left the White House. Not every president wants a sunshine stay after the West Wing doors swing shut, however. So which leaders picked elephant hunting, marrying a relative, and a sideline in oil painting...? When the 43rd president left office in January 2009, he ditched Washington for a quiet life between a house in Dallas, Texas, and his 1,500-acre Prairie Chapel Ranch. Keen to enjoy his retirement, the sexagenarian took weekly painting lessons. His subjects included Russian President Vladimir Putin, Tony Blair, and the Dalai Lama - as well as his pets. His inspiration was his great hero Sir Winston Churchill, who turned to art in his forties as a refuge from the tumult of politics. George W Bush paintings go on display Obama asks: What shall I do now? Spotify's job offer for Barack Obama ""When I get to heaven I mean to spend a considerable portion of my first million years in painting, and so get to the bottom of the subject,"" the wartime leader reportedly said. Mr Bush was less patient, telling his art teacher: ""There is a Rembrandt trapped in this body. And your job is to find it."" Despite being nicknamed 'Teddy' and famously refusing to shoot a bear, the 26th president took a year-long African hunting trip with his son, Kermit, in 1909. The duo were accompanied by more than 200 porters, and scientists from the Smithsonian Institution. They made their way round Africa dispatching over 11,000 animals - including elephants, rhinos, hippos, snakes, zebra, and monkeys among others - before shipping the carcasses home for scientific study. Another exotic trip followed for Mr Roosevelt (and Kermit) in late 1913, when they joined Brazil's most famous explorer Candido Rondon to chart the course of the River of Doubt. The 760km (472 mile) stretch was ultimately renamed Roosevelt River in his honour. The aforementioned Teddy Roosevelt had no time for Benjamin Harrison, president from 1889-93, branding him ""a cold-blooded, narrow-minded, prejudiced, obstinate, timid old psalm-singing Indianapolis politician"". But none of that stopped the 23rd president from wedding a woman 25 years his junior, who also happened to be his niece by marriage. Mr Harrison's first wife, Caroline, had died of tuberculosis in 1892. When he wed Mary Dimmick four years later, his two adult children refused to attend the ceremony. America's first president lived only two years after leaving the job - and spent them making whiskey. In 1799, the year of his death, his distillery in Mount Vernon, Virginia, produced nearly 11,000 gallons - making it the largest in the US at the time. Also a livestock farmer, the founding father used leftovers from the whiskey-making to fatten his pigs. As for the distillery - it's still going, selling its golden product to tourists at the Mount Vernon Estate and museum.", -108,2017/2/7,http://www.bbc.co.uk/news/uk-38564137,How to own a home by the age of 25,Owning a home by the age of 25 has become an unachievable dream for many over the last two decades.,"Owning a home by the age of 25 has become an unachievable dream for many over the last two decades. Soaring property prices mean just one in five 25-year-olds own a property, compared to nearly half two decades ago, according to one recent study. But as the government unveils its Housing White Paper, there are some young people who have managed to buck the trend - without help from the bank of mum and dad. Here four young homeowners - all couples - who bought properties in 2016 - reveal just how they did it. Name: Mark Hepburn, age 23. A debt collector on ?18,500 a year Lives with: Partner Laura Starkie, age 25. An accountant on ?20,000 a year Location: Oldham, Greater Manchester House price: ?125,000 for a three bedroom semi-detached house Deposit: ?6,250 (5%) with the Help to Buy mortgage scheme (which ended in December) Why buy a property? We were sick of living at home with each of our parents and wanted our own space. I'd rather live in a house than just a bedroom. We discussed moving out and renting, but we both agreed it was dead money. How did you do it? There was a lot of budgeting. I literally know where every penny goes. I had to drill it into Laura a little bit, but she got used to it after a while. Like her make-up - she had to go for a cheaper brand. We were both working at McDonald's when we were saving and if there were extra shifts, we would take them. Did you make any sacrifices? There was definitely a lifestyle change when we were saving. We would buy supermarket budget stuff instead of brands. We didn't go on holiday during the time we were saving up - and that was a massive thing for Laura. How does it feel to be a home owner? I feel ridiculously happy. I feel proud and our friends are too because they know we worked extremely hard for it. Once you get there, you don't need to worry as much. What if you need to move? I recently went for a job in Bolton, which is not that close to where we are now. The salary was ?27,000 per year, but I wouldn't move house for that. It would have to be significantly higher to consider jobs away from where we are now. Reaction from friends? I can't count how many times our friends have asked us how we've done it. We just explain you need to save, watch your money and cut back. They're happy for us and we are just trying to get it into them not to leave it too long and to start saving. Should more young people be able to buy a home? I have got mixed opinions. When Laura and I were at McDonald's we were on a combined salary of ?23,000 and we managed to save up ?7,000 between us within a year. So I don't see how people can't do it. But then we don't have any kids. The Help to Buy mortgage scheme was a God-send. But if you're stopping something that's so good and helping young people, it's going to cause mayhem. Name: Ruby Willard, age 22. A recruitment consultant on ?19,000 a year plus commission Lives with: Partner Sam Bardell, age 22. An engineer on ?24,000 a year plus overtime Location: Havant, Hampshire House price: ?182,200 for a two-bedroom terraced house Deposit: ?18,220 (10%) with the Help to Buy Isa Why buy a property? It was a case of living at home. I moved back into the box room of my mum's house and I hated it. Sam lived with his parents too so we thought if we can, let's do it - so we decided to save and go for it. We were looking at renting but to us it was like throwing away money. How did you do it? Being quite tight is probably the answer. When we decided we were going to buy, I thought I'm not going to spend money elsewhere when I don't need to. We did still have a nice holiday to Greece. I get commission and Sam gets overtime so we probably earn ?55,000 overall, which meant we were in a position we could borrow maybe more than people on minimum wage. Did you make any sacrifices? We may have not had such a big social life. We still did things, but we were conscious. What I did was save what I knew I needed to save, and lived on whatever I had left - which was usually about ?200 a month. I wasn't buying lunch at work, which would save about ?25 a week. How does it feel to be a home owner? It was weird at first. When we got the keys it was like ""are we on holiday?"" When things started to come together it felt like such an achievement. Everything we had chosen not to do, not going to the cinema one night, helped towards it. What if you need to move? We would be open to the idea, but we would probably look for work closer to where we bought a house, so it probably would affect future decisions. If we did decide we wanted to go somewhere else, we would probably look to sell the house and hopefully we will have made some money on it. Reaction from friends? It's been quite positive. I have got friends that have bought houses, but a lot of them have had big lump sums of money given to them. Should more young people be able to buy a home? Neither of us completed three years at university, so we probably established a career path earlier than those that do go. I speak to a lot of people that have graduated, and they cannot find jobs that will allow them to borrow enough. It takes years to save a deposit, and then house prices go up and they can't borrow enough. I think this is how it is now. You might also like... Name: Andrew Douglas, age 23. A social worker on ?31,000 a year Lives with: Partner Kirsty Lamb, age 24. A pharmacist on ?35,000 a year Location: Moredun, Edinburgh. House price: ?145,000 for a two-storey terraced house with two bedrooms Deposit: ?21,750 (15%) with the Help to Buy Isa Why buy a property? We decided we wanted to get on the property ladder as quickly as possible. If we get on it now, we would be able to buy what we want by the time we are older and looking to have a family. How did you do it? We started saving at the beginning of 2015 and were probably saving between ?400 and ?500 a month each. We did go on a couple of holidays, so although we've been saving, we've still been living. We weren't scrimping, but we do only spend about ?30 a week on food. We check receipts and look for the best deals, so that is more thrifty than most people. Did you make any sacrifices? We spoke about going away for three weeks to somewhere like Australia, but we thought - it's going to cost ?2,000 each and we can put that towards the house now rather than waiting a few extra months. How does it feel to be a home owner? It feels strange. It does feel like quite a lot of responsibility - I didn't realise how much. Things like taking out mortgage protection. Our friends call it ""adulting hard"". They're renting and not really thinking about owning a place and they're like ""wow, you've bought a house"". Reaction from friends? Lots of people think it's really good, other people say they're nowhere near that stage. I don't know if they're thinking I'm growing up too fast. It's generally been positive. I don't know anyone who has done it without a partner, so I think it would be difficult to do it on your own. What if you need to move? With a big move we might give it a trial, and rent out this house while we lived somewhere else. Should more young people be able to buy a home? I do think people complain they can't afford to buy a house but they go out every weekend, they smoke or they eat out all the time. But property prices have also shot up in the last 20 years with more people buying second homes. There are also people who don't want to have the responsibility. I think it's good that the government is helping with Help to Buy schemes and it needs to do more to help first-time buyers. Name: Rebecca Thompson, aged 23. An information analyst on ?21,900 a year. Lives with: Adam Drinkwater, aged 25. A bank administrator on ?16,500 a year. Location: Irlam, Greater Manchester House price: ?126,500 for a three-bedroom semi-detached house Deposit: ?6,300 (5%) with the Help to Buy mortgage scheme and Isa Why buy a property? We lived in a rental flat together for 18 months and realised that the amount we were paying in rent was more or less the same as we would be paying with a mortgage. When we were renting there were a lot of things we couldn't do, like decorate or move anything around. How did you do it? It was difficult. I was working part-time in my final year at university so I saved my entire wage and lived off my student loan, which wasn't much. We didn't go on holiday that year and saved as much as we could. Did you make any sacrifices? We came straight from university, where you're living on a bit of a shoe-string anyway, so we probably sacrificed but not realised, because we've not been enjoying the extra income we've had since graduating. We would have probably gone on some more holidays or gone out more and probably bought a few more clothes. How does it feel to be a home owner? It's brilliant. I feel it's a really secure base while I'm going on to develop my career. It's one less thing. A lot of people are aiming towards saving a deposit while I've got past it. What if you need to move? It would be really difficult, and it's definitely an attraction for staying where I am. In my career there are a lot of opportunities down south, but I wouldn't want to entertain it because of the house prices. It would take us five times longer to save up a deposit, and the amount of income you need to get for a mortgage is totally unobtainable for the average graduate. Reaction from friends? Some live in a more expensive area and I think they were surprised. It's not something that's on a lot of people's radar, owning a home at this age. Particularly if you're not in a relationship, I don't think it is affordable. Should more young people be able to buy a home? I think cultures have changed a bit. When my parents were growing up, their parents drilled into them 'sort yourself a house, get married and that's when your life begins'. Now there's not as much of an emphasis. I think homes do need to be more affordable. It's silly that the town where we live in, a lot people can afford to buy - whereas only as far south as Birmingham no-one can afford to buy a house earning what we do. Source: ONS, Department for Communities and Local Government, Land Registry Where can I afford to live?", -109,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38893302,The president and the bathrobe,The US president's spokesman has caused a bit of a Twitter storm by claiming Mr Trump does not own a bathrobe.,"The US president's spokesman has caused a bit of a Twitter storm by claiming Mr Trump does not own a bathrobe. White House Press Secretary Sean Spicer accused the New York Times of printing inaccuracies, specifically referring to him watching TV in his bathrobe, saying the paper owed President Trump an apology. The president has tweeted his annoyance at what he calls poor reporting: ""The failing @nytimes was forced to apologise to its subscribers for the poor reporting it did on my election win. Now they are worse!"" Unsurprisingly, people have taken to social media to contradict Mr Spicer's bathrobe comment with various hashtags popping up, including #BathRobeGate. Some have even been delving into the presidential bathrobe archives to produce gems such as this from Avi Bueno. He tweeted a photo of Ronald Reagan in a robe, with the caption: 'Weird to see @seanspicer and @realDonaldTrump getting all defensive about a #bathrobe when their hero wasn't shy about it."" And historian Michael Beschloss tweeted a picture of President Lyndon B Johnson sitting in a robe with advisers on Air Force One in 1966. John Aravosis, editor of @AMERICAblog, was quick to post three photos of Donald Trump wearing a bathrobe, which had featured in a November Daily Mail article about a trove of Trump memorabilia being found in a US thrift shop. Considering the Trump Organisation lists 37 properties, including 15 hotels, on its website, many posters are assuming that a bathrobe or two may have been worn in the Trump household. Various robes bearing the Trump brand have been posted on social media, including this picture of American actor Mike Rowe. He tweeted a photo in August 2016 of a bathrobe autographed by Mr Trump, along with a video in which Mike says he wore the robe ""briefly"". There were a few robe-wearing alternatives, such as Evie the Cat, the UK Cabinet Office feline who posted this about the 10 Downing Street cat, Larry. And with a clever bit of editing, some have posted gifs of the president holding up a drawing of a bathrobe. Even @TrumpBathrobe, a twitter account set up in 2015 and inactive since September 2016, has reawakened amidst this robing furore. Similar posts are appearing on Facebook under #bathrobegate, although not everyone is impressed: Compiled by Sherie Ryder, BBC UGC and Social News team.", -110,2017/2/7,http://www.bbc.co.uk/news/world-us-canada-38890090,Trump says terror attacks 'under-reported': Is that true?,"US President Donald Trump has accused the media of under-reporting terror attacks, and produced a list to back up his claim. Is he right?","US President Donald Trump has accused the media of under-reporting terror attacks, and produced a list to back up his claim. Is he right? While on a visit to US Central Command, a wing of the Department of Defense, he warned of the danger posed by the Islamic State group. ""You have seen what happened in Paris and Nice. All over Europe it's happening,"" he said. ""It's gotten to a point where it's not even being reported. And in many cases the very, very dishonest press doesn't want to report it. ""They have their reasons, and you understand that."" Later in the day, the White House published a list of attacks ""executed or inspired"" by IS. Before the list was published, press secretary Sean Spicer said there were ""several instances"" of attacks that had not gained sufficient media coverage (without specifying which fell into that category). We have reproduced the list that was subsequently produced below, and explained what happened in each case and whether we reported on it. Just because the BBC covered an attack does not mean that incident was not under-reported, although it is unclear whether Mr Trump was referring to US or global news organisations. Some terrorist incidents do get more coverage than others, a point hotly debated on social media. Most of the atrocities listed by the White House were committed by Islamists, and the killing of nine black worshippers by a self-avowed white supremacist in South Carolina is notably absent. Absent too is the 2016 bombing of a shopping centre in Baghdad that killed some 300 people, and last week's deadly assault on a mosque in Quebec City. What happened: A teenager was shot dead after he stabbed two police officers. He was a ""known terror suspect"" whose passport had been cancelled on security grounds. Did we cover it? Yes. What happened: An Algerian jihadist group linked to Islamic State (IS) militants beheaded French tourist Herve Gourdel Did we cover it? Yes. What happened: Martin Couture Rouleau, who had been influenced by Islamic extremists, drove a car at two soldiers before being shot dead. Did we cover it? Yes. What happened: A soldier is killed at a war memorial by gunman Michael Zehaf-Bibeau, who had converted to Islam but not displayed militant behaviour. The shooting continued inside parliament. Did we cover it? Yes. We had extensive coverage of the Ottawa attack, but here's our timeline of events, and our live coverage of the shootings. What happened: Policemen were attacked by a man wielding an axe. Did we cover it? Yes. What happened: A Danish man was wounded in a shooting in the Saudi capital. Did we cover it? No, but here is Reuters' report. What happened: An American teacher was killed by an Emirati woman in the toilet of a shopping centre Did we cover it? Yes. Here's our first report into the attack, and here's our report when the perpetrator was executed. What happened: Three people, including the Iranian hostage taker, were killed in the 16-hour siege of a cafe in central Sydney Did we cover it? Yes, extensively - here is our timeline of events, and our live coverage. What happened: A man brandishing a knife shouting ""God is great"" in Arabic is shot dead by police. Did we cover it? Yes. What happened: Attacks, including a gun assault on the headquarters of Charlie Hebdo magazine and a siege in a kosher supermarket, leave 17 people dead. Did we cover it? Yes. As the biggest terror attack in a Western country in several years, the attacks gained a huge amount of coverage. Here is our detailed report of the events in Paris that month. You can find more material, including obituaries for the victims, here. What happened: Nine people, including at least five foreigners, died in an attack on a hotel. Did we cover it? Yes. What happened: The White House list says: ""Two US citizens wounded in shooting."" There are no reports of an attack in the Saudi capital that month. But two US citizens were caught up in a gun attack in the north of the country. What happened: Three soldiers were attacked by a man with a knife outside a Jewish centre in the southern French city. Did we cover it? Yes. What happened: Two people were killed and five injured in two attacks in the Danish capital; the attacker was later killed. Did we cover it? Yes. Our news channels provided rolling coverage of the search for the attacker - here is one of our online reports of the events. What happened: An attack on the Bardo Museum in the Tunisian capital killed 22 people. Did we cover it? Yes. You can see some of our coverage here and the stories from some of the survivors here. What happened: The White House list says: ""One US citizen wounded in knife attack,"" adding that ""Pakistan-based [IS] supporters"" were responsible. Did we cover it? No. But you can read our report on a deadly attack on polio workers in Karachi the same month here. What happened: There were no terror attacks in the French capital this month. The White House appears to be referring to the arrest of a man, who had apparently shot himself by accident, on suspicion of plotting to blow up churches. What happened: A gunman shouting ""God is great"" in Arabic attacked a police station, killing one officer and injuring two more. Did we cover it? Yes. What happened: Two gunmen were shot dead after opening fire outside a conference on cartoons of the Prophet Muhammad in a suburb of Dallas. Did we cover it? Yes. What happened: The White House document appears to refer to the deadly shooting by police of 26-year-old Usaama Rahim, who had been under 24 hour surveillance, and approached officers with a knife. Did we cover it? Yes. What happened: The White House says IS-linked militants targeted a camp used by the Multinational Force and Observers (MFO), an international peacekeeping force based in the Sinai peninsula, in a shooting and bombing attack. Did we cover it? No. What happened: Three men approached a barrier at the entrance to the Temple of Karnak in Luxor, one of the country's most popular tourist sites. When confronted by police, one detonated an explosive belt he was wearing. A second was shot dead and a third severely wounded. Did we cover it? Yes. What happened: A gunman attacked a seafront hotel, killing 38 people, including 30 British tourists. Did we cover it? Yes. You can read our special report on the Sousse tragedy here, learn more about what happened that day here, and learn more about the victims here. What happened: A man was beheaded at a factory by one of his employees. Did we cover it? Yes. What happened: A blast that badly damaged the Italian consulate in Cairo was later claimed by the Islamic State group Did we cover it? Yes. What happened: Militants linked to IS said they had beheaded a Croatian scientist, Tomislav Salopek. Did we cover it? Yes. What happened: A radical Islamist on a train travelling from Amsterdam to Paris had an attack foiled by six passengers. Did we cover it? Yes. And here's our story on how the hero passengers were awarded afterwards. What happened: Four American and two Fijian peacekeepers from the Multinational Force and Observers (MFO) were wounded by two roadside bomb blasts in the Sinai peninsula. Did we cover it? No, but you can read the Washington Post's story here. Two weeks earlier, we had published this piece on the insurgency in Sinai. What happened: An Italian aid worker was shot dead in the diplomatic district of Bangladesh's capital. Did we cover it? Yes. What happened: A Palestinian man whose asylum application was rejected attacked a policeman. Did we cover it? No, but the Daily Telegraph did. (In another incident in the same month, a Bosnian-born Danish national shot three people in Copenhagen. Police said he had sympathies with IS. We didn't report it, but you can read more from The Local Denmark here.) What happened: The White House summed up the incident as ""No casualties; airfield used by MFO attacked with rockets"". It said ""unidentified [IS]-Sinai operatives"" were responsible. Did we cover it? No. What happened: An Australian born in Iran and of Iraqi-Kurdish heritage killed police worker Curtis Cheng. Did we cover it? Yes. This is one of the reports we ran over several days. What happened: A Japanese man was shot dead in northern Bangladesh. Did we cover it? Yes. What happened: This refers to an area of the Sinai peninsula near where a Russian airliner was brought down by a bomb, killing all 224 people on board. The incident was covered in forensic detail by international media. Did we cover it? Yes. Here's what we wrote on all we know about the crash - you can see our live coverage from the day here. What happened: Four people were stabbed by a student, who police later said had been inspired by IS Did we cover it? Yes. We reported on the incident only when the IS links were detailed four months later. What happened: The explosions at the Stade de France and gun attacks on restaurants, bars and the Bataclan nightclub killed 130 people. The attacks, committed by IS militants, were one of the most widely-reported stories in recent years. Did we cover it? Yes. You can read our detailed run-down on the events of the night here, and learn more on the victims here. Our special report on the Paris attacks, bringing together our most important material, is here. What happened: An Italian priest, Piero Parolari, is attacked by unknown assailants on a motorbike, but survives. Did we cover it? Yes. What happened: A suspected Islamist shot dead two policemen before blowing himself up. Did we cover it?Yes. What happened: A married couple, Tashfeen Malik and Syed Rizwan Farook, attacked a community centre, killing 14 people and injuring 21 more. It was one of the deadliest mass shootings in years. Did we cover it? Yes. Here is our full breakdown of the events in San Bernardino, what we know about the victims and the attackers. And you can find all our coverage on US gun violence here. What happened: A man with a knife attacked passengers at Leytonstone underground station, shouting ""this is for Syria"". Muhiddin Mire was later jailed for life. Did we cover it? Yes, from beginning to end. What happened: A gun attack on a citadel in Dagestan killed one person and injured 11 more. It was later claimed by IS. Did we cover it? Yes. What happened: Nine people, including six policemen, died in a raid on a militant hideout. Did we cover it? Yes. What happened: On the anniversary of the first Paris attacks, a man carrying a meat cleaver was shot dead as he tried to attack a police station. He was found with a piece of paper saying he had pledged allegiance to IS. Did we cover it? Yes. What happened: A police officer was ambushed by a man who had pledged allegiance to IS. Did we cover it? Yes. What happened: Three tourists were stabbed at the Red Sea resort. Did we cover it? Yes. What happened: A Turkish Kurd teenager attacked a Jewish teacher in France, saying he was acting in the name of IS. Did we cover it? Yes. What happened: A suicide bomber with IS links killed 10 people near the city's Blue Mosque. Did we cover it? Yes. What happened: A series of explosions and gun attacks in the Indonesian capital killed eight people, including the four attackers. Did we cover it? Yes - here's everything we know about what occurred. What happened? A man who attacked four people with a machete in a restaurant, Mohamed Barry, was killed by police. He was later found to have IS links. Did we cover it? Yes. What happened: In Germany's first attack by an IS sympathiser, a teenage girl stabbed and seriously wounded a police officer in the neck. Did we cover it? Yes, although only when the girl was sentenced to six years in prison in January. What happened: A suicide bomber struck a busy shopping area, killing four people. Did we cover it? Yes. What happened: Bombings at Brussels airport and a metro station in the city killed 32 people from around the world. IS said it was behind the attacks. Did we cover it? Very much so. You can find our entire coverage and analysis here, as well as the run-through of what we know and the stories of the victims. What happened: A teenager whom police said was motivated by radical Islam bombed a Sikh temple, injuring three people. Did we cover it? Yes. What happened: The deadliest mass shooting in US history claimed 49 victims at a gay nightclub. Gunman Omar Mateen had pledged allegiance to IS, but his link to the group is unclear. Did we cover it? Yes. Here is our special report into the shooting and here's our detailed run-through of the events of that night. What happened: A jihadist loyal to IS murdered a couple, both police employees, at their home west of Paris. Did we cover it? Yes. What happened: A suicide blast killed 14 Nepali employees of the Canadian embassy. Did we cover it? Yes. We also covered the Taliban bombing of a police convoy that month, which killed 30 people and injured 50 more. What happened: Three attackers targeted the city's Ataturk airport, firing shots at crowds before blowing themselves up; 45 people were killed, and Turkish authorities said the attackers were linked to IS. Note that another deadly attack in the city in June 2016 was not on the White House's list. Did we cover it? Yes. We also looked at how dangerous the growing instability in Turkey was. What happened: Islamist militants stormed a popular cafe in the Bangladeshi capital, killing 22 people. Did we cover it?Yes. What happened: A lorry driver, not known to have jihadist sympathies, drove a lorry into a crowd celebrating Bastille Day, killing 86 people. IS later said he was acting on their behalf. Did we cover it? Thoroughly. Here is what we know about the attack, a look at who committed it, a profile of the victims and analysis on what authorities in Nice had tried to do to stop jihadism. What happened: A teenager injured four train passengers with an axe. IS released a video purporting to show him making threats. Did we cover it? Yes. What happened: A Syrian man blew himself up, having made a video pledging allegiance to the leader IS. Did we cover it? Yes. What happened: Two men entered a church near Rouen and beheaded Father Jacques Hamel, 86. IS later said two of its ""soldiers"" had carried out the attack. Did we cover it? Yes. What happened: A man was shot dead after attacking police with a machete, while shouting ""God is great"" in Arabic. Did we cover it? Yes. What happened: British backpacker Mia Ayliffe-Chung is killed at a hostel. Her attacker is alleged to have said ""God is great"" before killing her. A British man, Thomas Jackson, was wounded in the attack and later died. Did we cover it? Yes. And here, you can read the reaction of Mia's family to this incident being on the White House list. What happened: Two police officers were shot during an operation in an area inhabited by squatters. While the shooter, a Bosnian-born man, was believed to have had IS sympathies, police said there was no evidence that extremism was behind the attack. Did we cover it? Yes. What happened: A car packed with gas cylinders was found close to Notre Dame cathedral, in a plot police say was directed by IS. Did we cover it? You know the tune by now. Yes. What happened: Police said a man who repeatedly stabbed a 59-year-old man in a suburban park and then tried to stab a policeman was inspired by IS. Did we cover it? Yes. What happened: Eight people were wounded in a stabbing attack at a shopping mall before the Somali-born attacker, claimed by IS as its ""soldier"", was shot dead by police. Did we cover it? Yes. What happened: A bombing in New York's Chelsea district injured 29 people and an unexploded device was found nearby. Earlier the same day, a pipe bomb exploded in a shore town ahead of a charity race. Afghan-born Ahmad Khan Rahami was later arrested. Did we cover it? Yes, over several days. What happened: Two police officers were stabbed by a man police said had jihadist sympathies. Did we cover it? Yes. What happened: An Egyptian man was detained after a bin lorry reportedly loaded with explosives crashed into a vehicle carrying five US soldiers. Only the alleged assailant was injured. Did we cover it: No, but here is an article by the Associated Press, via the Chicago Tribune. What happened: A fire at a community centre that caused only minor damage was claimed by IS. Did we cover it? No. But The Local Sweden did, adding that the claim by IS should be ""taken with a pinch of salt"". What happened: A 16-year-old boy was stabbed to death in the German city, in an attack later claimed by IS. Did we cover it? No, butGerman media did.. What happened: A suspected bomb was found outside the US embassy, but did not explode. Media in the Philippines linked it to a terror group with ties to IS. Did we cover it? No. What happened: IS said it was behind a car and knife rampage at Ohio State University that left 11 people injured. The attack was carried out by a student, Somali-born Abdul Razak Ali Artan. Did we cover it? Yes. What happened: There were some reports of shots having been fired at the US embassy by an unknown perpetrator on 30 November, and the embassy itself said that there had been ""a security incident"". The White House said one man was arrested. Did we cover it? No. What happened: A siege with militants inside a castle left at least 14 people dead, including a Canadian tourist. Did we cover it? Yes. What happened: A lorry smashed into a crowded Christmas market on 19 December, killing 12 people and injuring 49. Attacker Anis Amri, a Tunisian, was shot dead by Italian police on 23 December in Milan after a Europe-wide manhunt. Did we cover it: In detail, yes.", -111,2017/2/7,http://www.bbc.co.uk/news/entertainment-arts-38892322,Oscars class photo: Seven things we spotted,"This year's Oscars ""class photo"" has been released - and as usual there are several quirks and questionable outfits.","This year's Oscars ""class photo"" has been released - and as usual there are several quirks and questionable outfits. The picture sees 163 of this year's nominees gathered together and smiling away, but zoom in and there is a whole lot more going on. Here are just seven of the things we spotted in this year's photo. 1. Pharrell Williams didn't exactly dress for the occasion All of this year's male nominees are dressed smartly in tuxes and suits. Well, almost all. The ""dress code"" memo must have gone into Pharrell's junk email inbox, because he turned up wearing a green baseball cap and grey sweater. To be fair - the sweater does have the Nasa logo on it, a reference to best picture nominee Hidden Figures. Pharrell wrote several songs for the soundtrack to the film, which tells the story of three African-American women who worked behind the scenes at the space agency in the 1960s. 2. Michelle Williams is upstaged by Casey Affleck's facial hair Casey Affleck's facial hair is fast becoming the eighth wonder of the world. It gets longer with every awards ceremony he appears at this season. It's now on the verge of totally eclipsing poor Michelle Williams, Affleck's co-star in Manchester by the Sea, who has to peep out from behind his mane. She must be used to Affleck stealing her limelight. The actor appears in nearly every scene in the 137-minute movie, while Williams's screen time clocks in at 11 minutes. 3. The writer of Moonlight wants you to know how many nominations it has Tarell Alvin McCraney brightens up the back row of the photograph with his winning smile. He's the man behind the stage play In Moonlight Black Boys Look Blue - which went on to become Moonlight, one of this year's most hotly-tipped Oscars contenders. McCraney is so pleased with the film's success he wants to let you know just how many Oscar nominations the film has received, and he is seen here holding up eight fingers. (There is, of course, another explanation. He could be making the ""305"" hand gesture - which is the area code for Miami-Dade county, his home and the place where Moonlight is set.) Also - hats off to Shawn Levy (who's standing next to Tarell), who wins the award for the most delightfully bright smile of the whole photo. He is the producer of Arrival, which is nominated for best picture. 4. Justin Timberlake needs to sack his tailor ""What's your inside leg measurement, Justin?"" ""I don't know, maybe 32 inches?"" ""Hmmm, I don't have enough material for that. Have a 28-inch pair of trousers instead."" ""Great, that'll do, thanks Derek."" 5. The front row is so where we wanna be Emma Stone, Matt Damon, Natalie Portman, Octavia Spencer are all sitting together in the front row. Can someone please organise for us to join this BFF group, that'd be great, thanks. Extra respect for Octavia Spencer for wearing a pair of white trousers while so many of the other female nominees are in a dress or skirt, and for Natalie Portman, who manages to create the illusion she's impressively wearing high heels even while pregnant with twins. (She is actually wearing her flat shoes and tipping her heels up. Crafty.) Also - Manchester by the Sea producer Kimberly Steward (far right) is that sweet kid in your class who was accidentally never looking at the camera in the school photo every single year. 6. Ryan Gosling needs to cheer up You're the lead actor in the jointly most-nominated film of all time, pal. Uncross your arms for goodness sake. Slightly happier to be there is the lovely Dev Patel, in the row in front, looking every inch the Hollywood star. He's come a long way from how he looked at the Toronto International Film Festival in 2009 when he was starring in Slumdog Millionaire. He told the BBC: ""I first came to Toronto in my school shoes and I had a blazer and I was with Frida [Pinto, his co-star] and they said 'You can't put this guy next to her because he looks so terrible'. I think I got a free penguin suit that didn't quite fit me and they gave me shoes."" This year, he's nominated for best supporting actor and is seen wearing a burgundy Valentino suit. Nice. 7. Is this gap for Meryl Streep? Missing nominees from the photo include Michael Shannon (nominated for best supporting actor for Nocturnal Animals) and Andrew Garfield (best actor, Hacksaw Ridge). But of course, the most notable absentee is Her Royal Acting Highness, Meryl Streep - who is up for best actress this year for her role in Florence Foster Jenkins. Maybe this gap in the back row behind Denzel Washington was intended for her, and she got held up in traffic. Alternatively, perhaps she's been to so many of these things she's just had enough. Either way, we're pretty sure she'll be at the ceremony. This year's Oscars, which will be hosted by Jimmy Kimmel, will take place in Hollywood, Los Angeles on 26 February. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -112,2017/2/7,http://www.bbc.co.uk/news/magazine-38893536,"Honours quiz - the people who refused, returned or lost medals and awards",Leaked emails claim to show David Beckham complaining that he never received a knighthood.,"Leaked emails claim to show David Beckham complaining that he never received a knighthood. Giving and receiving gongs can be a fraught business - how well do you remember these other people who refused, returned or were stripped of honours and awards? If you missed last week's 7 day quiz, try it here Photo credits - Alamy; Press Association; Getty Images Join the conversation - find us on Facebook, Instagram, Snapchat and Twitter", -113,2017/2/7,http://www.bbc.co.uk/news/technology-38842791,Use talk not tech to tame your children's online habits,"Like many parents, I am the unofficial IT manager in my house. And, like many IT managers, my users are never happy with the service they get.","Like many parents, I am the unofficial IT manager in my house. And, like many IT managers, my users are never happy with the service they get. The complaints have got louder over the past few months as I have tried to manage how much time two of them (my teenage children) spend online and to restrict what they see. A patchwork of different technologies help me do this. It includes: It works, after a fashion, but I know it has holes and that is why I also use a lot of sneakernet. This involves me walking around the house, kicking my kids off the game console, tablet, phone or TV (delete as appropriate) they are using when they should be doing homework, cleaning out the rabbit or getting ready for school. Research suggests I'm not alone in using tech to oversee online time - both to limit it and to help them stay safe. About 44% of parents use apps to oversee online activity, 39% check browser histories and 37% put controls on the router, suggests statistics gathered by security company Symantec. I use all three of those and want to use more. And it looked like technology was going to get even more useful as electronics companies released products with comprehensive parental controls onboard. It's perhaps no surprise that parents are keen to turn to technology to help manage time online, says Nick Shaw, European general manager at security company Norton, because it's one area where they struggle to find help. ""When people have a parenting problem with their children, they might go to their own parents for advice,"" he says, ""but this is the one area where your parents are not as clued up as you are."" And, he says, children are even more clued up and easily capable of running rings around their parents. ""A lot of parents are very naive about this,"" he says. Even I got complacent because none of the tech I had put in place was sending me alerts. I thought it was all working fine and my children were browsing and gaming in an impenetrable bubble of safety. Wrong. Slowly I found out that by fiddling with system clocks, using safe mode and putting home PCs into sleep states, my two teenagers could avoid most of the locks and blocks. My schoolboy error, says Mr Shaw, was to let the hardware do the heavy lifting. ""Technology is going to help you,"" he says, ""but it's not going to get away from the fact that you should be having more conversations about this with your kids."" What I should be doing, he says, is helping them to understand why the controls are needed. Explaining the reasons, he says, can help to defuse some of the objections. It is fair to say that my children and I have had some of these conversations. But they have been more of the ""play-less-games-and-do-more-maths"" type rather than the ""anti-virus-stops-your-YouTube-account-being-stolen"" sort. Tony Anscombe, security evangelist at anti-virus company Avast, says talking to children about safe ways to use the web is better than just imposing restrictions. ""Sure,"" he says, ""set some rules about how they should use it, but you should also educate your kids about basic security principles. ""A lot of parents just do not have the conversation, talking to them about what is acceptable and what is not."" This should cover not sharing passwords and thinking before they share personal data such as contact information, images and videos. Naivety puts many children at risk, he says, and it is worth reminding them about what can be done with that information and who might want it. It might not just fall into the hands of cyber-thieves, he says, it might also expose them to cyber-bullying or just be inappropriate to share. Warnings about the hidden features in popular apps are worth passing on, he says, as they often seek to scoop up more information than they really need. ""The biggest and most important thing that parents can do is run the apps their children do,"" he says. This will help parents understand what information children might share and uncover any hidden features the apps possess. Some, he says, look innocuous but are designed to help children conceal what they are doing. ""Gadgets are only half the story, if that,"" says Dr Sonia Livingstone, from the London School of Economics, who studies how children use the internet, as part of her work with the long-running EU Kids Online project. Companies should concentrate on doing less selling and more on designing services that do not need the protections they peddle, she says. In addition, she says, parents should encourage children to do the right thing by doing it themselves, rather than just by dictating terms. It's about respect too, she says, helping children make good decisions instead of arbitrarily imposing rules. If they can see the benefits of the rules, they are more likely to follow them. ""I am not very keen on the idea that parents have lots of control over their children,"" she says. ""Children have rights too.""", -114,2017/2/7,http://www.bbc.co.uk/news/business-38878808,The woman trying to revive a century-old leather brand,"""I know I've got to do this. It must be a sickness!"" says Isabel Ettedgui, laughing.","""I know I've got to do this. It must be a sickness!"" says Isabel Ettedgui, laughing. It is June 2016, in Mayfair in central London, and she is standing in the middle of a building site. An early 18th Century house is being renovated, ready to be the home of Mrs Ettedgui's latest venture. She is attempting to relaunch a venerable luxury brand: Connolly, a name famous for its leather for over a century. ""I've known this brand for 30-odd years - I still really believe in it. It's got massive amounts of potential,"" she says. Starting any kind of enterprise is challenging, with many businesses failing within their first few years, and relaunching one can be just as hard. ""Reviving a brand that's been silent for a number of years is very difficult indeed,"" says consultant and author Peter York. So what's the best way to go about it? Heritage is one factor that certainly seems to be on Mrs Ettedgui's side. Look at the websites of many luxury names, and it is clear that history and tradition are some of the factors that brands are most keen to stress. These are attributes that Connolly has in abundance. The firm, which was family-run for much of its history, began producing leather in the late 19th Century. It soon won favour with a huge range of clients. Its leather could be found on the seats of many luxury car marques (including Rolls-Royce), at the Houses of Parliament, on ocean liners such as the Queen Mary, and on supersonic plane Concorde. ""You haven't lived until you have sat your naked butt on Connolly leather,"" actress Joan Collins is reported to have said. In the 1920s, the company asked W Heath Robinson to produce some illustrations to mark its 50th anniversary. The artist, well-known for his drawings of outlandish devices, was astonished by what he found at the factory in Wimbledon. ""I can't improve on that, Mr Connolly,"" was his response to one of the firm's remarkable leather-measuring machines. Decades later, after doing some corporate identity work for the firm, Ms Ettedgui helped the enterprise with a move into retail. ""I just thought, 'this is fantastic""�they don't realise what they've got,'"" she remembers. The first store opened in 1995, in a mews close to the Lanesborough Hotel in London. Several years later, Mrs Ettedgui's husband Joseph was offered the retail arm of the business, because the Connolly family had decided to concentrate on the motor trade. Joseph Ettedgui had extensive experience of fashion retailing, having built up the Joseph chain of high-end fashion stores, which had branches across the UK. He and Isabel nurtured the retail side of Connolly, opening a bigger store in Conduit Street in Mayfair. ""Joseph brought in clothes,"" Mrs Ettedgui recalls. ""It taught me that Connolly wasn't just a brand of briefcases, it had potential to be a fashion brand as well."" But in the 2000s, Connolly faltered. The family's leather finishing business experienced an unsuccessful expansion into the US. And in 2010, Joseph Ettedgui died. ""After Joe died, I kept renewing these trademarks and thinking what am I going to do?"" says Mrs Ettedgui. She decided to put everything on hold. A few years later, she began to get the enterprise going once more. She licensed Jonathan Connolly (a fourth generation member of the family) to start producing leather again, while she began to look for a suitable retail location. Her search led her to a Georgian house just off London's Savile Row. ""It was a little freehold building, which is really rare, and I decided to sell my flat, put everything I could into it and try and launch it without any external backers,"" she says. The house includes several floors of retail space, plus an apartment where Mrs Ettedgui now lives. For her, this is an essential part of the story. ""There's a desperate need for a different narrative in luxury,"" she says. ""Too many brands are being run in silos by men in suits - what people actually like is to see the owner. ""It's like when you go to a restaurant and the chef [appears] - it's such a joy, you feel connected."" As well as emphasising a personal touch, Mrs Ettedgui has broadened the range of items on sale. In addition to leather goods and clothes, there will be furniture too. ""Beautiful objects, beautiful clothes, well-designed pieces of furniture - it just goes together,"" she says. Reviving a brand, as Mrs Ettedgui is attempting to do, is a tricky thing to pull off. ""The things to think about are: how to explain what happened, because people are suspicious of a relaunch. [You need to] say very clearly what it is you're about and reconcile that with the previous back story,"" says Mr York. Mrs Ettedgui is conscious of the challenges she faces - but she is cautiously optimistic. After a hectic period of building and renovation, and working around the clock to get everything ready, the store opened in late 2016. Soon afterwards, a customer came in and showed Mrs Ettedgui a Connolly wallet that he had bought 20 years ago. ""He was really happy that we were back,"" she says. To succeed, she believes, ""you need a dream - you need an obsession really. And you need to believe in something that means you can't not do it.""", -115,2017/2/7,http://www.bbc.co.uk/news/world-europe-38802113,Germany's most hated club RB Leipzig hit by stones and insults,"Football hooliganism is nothing new in Germany, but when violence broke out before a Bundesliga match between two of the top clubs, this was something different.","Football hooliganism is nothing new in Germany, but when violence broke out before a Bundesliga match between two of the top clubs, this was something different. The stones and bottles thrown and the hate banners displayed by Borussia Dortmund supporters on Saturday exposed a widespread loathing in Germany for a team seen as upstarts, RB Leipzig. The club is challenging for Champions League football in its first ever season in the top flight. The hatred is because of the way they are wholly owned by one company, Red Bull. A wall of hatred was on view: ""Slaughter the bulls"", ""Red Bull, enemy of football"" were some of the milder slogans used. Families came under attack, and six fans and four police were hurt. One top football official Max Eberl said the violence was sick: ""Whether you like RB Leipzig or not, it shouldn't get out of hand."" Dortmund's fans are not alone. One tabloid newspaper, the Berliner Kurier, even refused to print the club's name a few weeks ago, using the insulting term ""Dosenverkauf"" (Can-sellers) in their Bundesliga table. Selling drinks is the core business of RB's owner, Red Bull, and there have been plenty more insults since the company bought a team in the Leipzig suburbs in 2009 and oversaw four promotions in seven seasons. Listen to Tim's BBC World Service programme here: The Rise of RB Leipzig The vitriol derives from RB's ownership model. Traditionally German football clubs are run without a single, rich investor. It is the members who must control a majority of the shares in the entity that owns the team. But RB Leipzig has only 17 members. It follows the letter of this law, but not its spirit. Among the club's biggest critics is the chief executive at Borussia Dortmund, Hans-Joachim Watzke. ""It's a club built to push up the revenues for Red Bull and nothing else,"" he says. Read more on RB Leipzig here: RB Leipzig's rapid rise 'no fairytale' Andreas Bischof, whose blog in Leipzig pokes fun at the new club, goes further. ""This club is not owned or sponsored by a company, this club is like an outlet of a company,"" he says. ""It's a whole new level of using sports as a marketing vehicle."" But others argue that RB Leipzig is just what the city and surrounding region need. There has been little Bundesliga football in the former East Germany since unification in 1990. ""Football is a business that needs an enormous amount of money,"" says Martin Machowecz from weekly newspaper Die Zeit. ""And here's someone who's come along, got involved and made sure that we've now reached the same standard as in West Germany in an area of society that's important."" What RB as a club lacks in sporting history, its home city and its stadium provide. Lokomotive Leipzig became a household name when they beat Bordeaux in a penalty shoot-out to qualify for the final of the Uefa Cup Winners' Cup in 1987. The goalkeeper saved two penalties before stepping up to score the winner. Gerlinde Rohr, now director of the Leipzig Sports Museum, was among the reported 110,000 in the stadium that night. ""I was there with a school mate and after Rene Mueller scored his goal I jumped on the seat and we embraced each other,"" she remembers. The Zentralstadion fell into disuse after unification but was given a new lease of life by the 2006 World Cup. The oval embankment of the old stadium was retained and a new stadium built inside it. It's now called the Red Bull Arena. Many see the appointment of Ralf Rangnick as the turning point for RBL, who had spent two frustrating seasons in the fourth tier before his arrival in 2012. As sports director and, for a brief period, trainer, he oversaw three promotions in four seasons. Ralf Rangnick's key to success is youth. He likes to buy players who may never previously have had a professional contract and his squad is the youngest in the Bundesliga, with an average age of a little over 23. In his eyes, young players are hungrier for success and fit his playing philosophy. In Leipzig they place huge emphasis on pressing the other team high up the pitch and winning the ball in the opponent's half. ""Even if you're the best player in the world and you're being attacked by three players, you lose the ball,"" he says. Ralf Rangnick also believes in the club's controversial ownership model. ""What do you need members for? I'm more interested in the number of supporters we have,"" he says. As for suggestions that Red Bull's owner Dietrich Mateschitz plays a big role in the way the club is run, the sports director says they meet and speak on the phone a handful of times every year. But what of the complaint that RB Leipzig is merely a vehicle for selling cans of energy drinks? ""For us it is completely unimportant,"" he says. ""It's got nothing to do with what we do.""", -116,2017/2/7,http://www.bbc.co.uk/news/health-38891481,NHS Health Check: How one GP practice tackled waiting times,A GP practice in Plymouth has reduced the time it takes to get a routine appointment with a doctor from three-to-four weeks to under seven days.,"A GP practice in Plymouth has reduced the time it takes to get a routine appointment with a doctor from three-to-four weeks to under seven days. The Beacon Medical Group cares for more than 30,000 patients and was formed in 2014 after three practices merged. Dr Jonathan Cope, GP and managing partner at Plympton Health Centre, one of the Beacon practices which has 10 doctors, says, at present, there are 30 unfilled GP posts in Plymouth. Three years ago, his practice was unable to recruit the equivalent of one-and-a-half full-time GPs. ""We made a conscious decision to look elsewhere, to work differently. So we decided to looks at what skills clinical pharmacists, paramedic practitioners and nurse practitioners could offer. We converted that budget to two-and-a-half full-time equivalents."" Patients registered at Plympton who feel they need same-day care from their family doctor call the reception team at the surgery. Depending on the problem, they will then be called back by an advanced paramedic, pharmacist, nurse practitioner - or a doctor. Dr Cope said: ""Because of the extra capacity, we have freed up the GPs' time. So we are offering more appointments for routine problems, and the waiting times are now shorter."" The advanced paramedic practitioner, Simon Robinson, responds to any emergency medical problems in the practice, as well as doing, on average, four home visits a day. He says he is often called out to see the more complex cases and his daily schedule allows him to spend more time than the GPs with patients. Simon was keen to point out that if he does have any queries he just has to knock on the GPs' door. Prof Helen Stokes-Lampard, chair of the Royal College of GPs, said while paramedics are highly valued and trusted, they have different skills and training. ""GPs are highly trained to take into account the physical, psychological and social factor - this unique skill set cannot be replaced by another healthcare professional, however well meaning the intention is. ""We do not have enough GPs in the NHS - and actually we don't have enough paramedics either. This transference of workload pressures from one area of the health service to another is not going to benefit our patients in the long term."" In an effort to understand the pressures on the Beacon Medical Group, the 100 most frequent attendees were analysed. Dr Cope expected the list to be dominated by frail, elderly patients but instead the typical patient was a 37-year-old woman, often with mental health problems, multiple prescriptions and referrals to hospital. From March, a psychiatrist will do a weekly clinic from the surgery for these patients and provide additional training on mental health care to staff. It is part of a parallel drive to offer specialised new services more commonly found in a hospital setting. Dr Helen Frow, a GP with a special interest in dermatology, has provided care to patients registered to the group in the last two years. ""Onward referrals to the hospital have reduced by 85%,"" she said. A similar scheme for musculoskeletal care resulted in 75% fewer secondary care appointments. The model of working with between 30,000 to 50,000 patients in a multi-specialty community provider model is known as a Primary Care Home. There were 14 other sites working to this structure across England in the last year. The National Association of Primary Care is working closely with NHS England to explore how they can continue to expand working in this way. A BMA spokesperson said: ""Many GP practices are increasingly becoming hubs where nurses and other professionals work together to deliver services to patients. ""However, while this is encouraging, England is suffering from a drastic and worsening shortage of GPs that is damaging patient care and restricting the number of appointments on offer to the public. ""The government needs to address this workforce crisis urgently."" A week of coverage by BBC News examining the state of the NHS across the UK as it comes under intense pressure during its busiest time of the year.", -117,2017/2/7,http://www.bbc.co.uk/news/health-38733633,NHS Health Check: Voices from the NHS frontline,,"Andrew Foster is the chief executive of Wrightington, Wigan and Leigh NHS Foundation Trust. It is one of the best performing hospital trusts and up until a year ago it was meeting the four-hour A&E target. But that began to change in 2016. Instead of hitting the 95% target for patients to be seen and treated or admitted, performance dropped to 90% and then 85% in the autumn, before it nosedived following Christmas. Cubicles in A&E were full, we had ambulance staff queuing in the corridors and we could not get patients out of hospital ""It started from Boxing Day onwards,"" says Mr Foster. ""We had an outbreak of norovirus which closed three wards and led to 75 staff being off sick. Seven care homes had to shut too. ""It meant our performance dropped to around 60%. It was the worst three weeks I've ever known. Cubicles in A&E were full, we had ambulance staff queuing in the corridors and we could not get patients out of hospital. The whole system backed up."" Since mid-January pressures have eased with four-hour performance back above 80%. But Mr Foster is still worried. ""The problem we have is that we are seeing more and more patients coming to A&E who could be seen by a GP and then we are finding it more difficult to discharge patients. There are simply not the places available any more because of the cuts to social care or we are seeing care homes and families themselves saying that the person's care is too complex. They end up staying in hospital."" Simon Walsh is a consultant in an A&E department in a major trauma centre in London. ""This year things have been closer to breaking point than I've ever known it before,"" he says. ""The set of nights I worked in the period before Christmas were the most difficult I remember working in the last 10 years. ""There was just such pressure on the system and as a result the exit block was so sustained that we had patients stuck for hours on end because there weren't any beds available to admit them on to wards. We had in excess of 20 patients at times for the whole night. And it just paralyses the emergency department."" I don't think I've ever seen such tired, exhausted people - they were absolutely dead on their feet He says patients and their families were understanding, even though they were frustrated. ""The relatives expressed their frustration but it wasn't anger directed at us - they recognised it was factors out of our control."" But he says morale was low among staff. ""I don't think I've ever seen such tired, exhausted people, they were absolutely dead on their feet. ""People try and keep each other up with as high morale as they can but I think people in that period were close to breaking point. ""I wondered if people would actually come back for the next shift after a couple of the nights we did."" Kimberley Gardner is a nurse at a major trauma centre in the East Midlands working in the critical care department, while her partner is also a nurse in the emergency department. She says calling the situation in the NHS a humanitarian crisis, as the Red Cross did in January, ""is not hyperbole, it is the reality"". ""It is the worst I've ever known it. I saw a woman brought in by ambulance after vomiting from eating a tin of Quality Street ""During the coalition years we heard the term 'black alert' being thrown around, but it would never actually happen, it seemed as likely as a major disaster or terrorist attack - devastating- but highly unlikely. Now it's a weekly and sometimes daily occurrence and the novelty has worn off. ""Daily we get a phone call from an emergency department begging critical care for equipment to monitor patients as all of their resus bays have been 'doubled up' (where they put two patients in one bay) meaning they need two monitors but only have one. They ask us but we have run out also."" She says another issue is not enough trained paramedics or dispatchers for 111, the NHS non-emergency phoneline. ""The amount of people sent in by 111 to be on the safe side, it's a total failure. ""I saw a woman brought in by ambulance after eating a tin of Quality Street and she was vomiting - why would she ring an ambulance but also why did the crew bring her in? Because a lot of the time they are technicians and not trained paramedics so bring them in to be on the safe side."" Julie Orr is the head of clinical services for Milton Keynes University Hospital NHS Foundation Trust. She oversees the flow of patients through the hospital managing the site team, bed managers and discharge team. People don't have time to catch breath before the next onslaught."" ""It's been a challenge this winter. I think the main difference has been that it's been sustained pressure. It's been quite relentless rather than periods of a couple of weeks of pressure. ""I've been in the NHS for 30 years and this is probably one of the most sustained, relentlessly pressured winters that I've seen. ""People don't really have time to catch their breath before the next onslaught of pressures."" A former nursing manager, she says all her team are senior clinicians and move around the site ensuring the flow of patients through the hospital. ""We've had some very difficult days, which has meant that not only the site team but the managers on call and the executive on call have been on site for many, many hours into the night to make sure the patients are safe and that the staff are supported."" But she says her teams have coped ""remarkably well"" despite the pressure. ""Obviously it's very difficult. We all want to do the best for our patients and want to get them home wherever possible or on to the next stage of their journey - I think sometimes there's not an understanding of why that can't happen. My discharge team along with the ward nursing teams spend a lot of time with patients trying to explain why there might be a delay in that happening."" Grainne Siggins is director of adult social care for the London Borough of Newham. ""Our staff and our staff within the NHS have worked incredibly hard this winter, it's been really difficult. But in December working positively with our colleagues we didn't have any delayed transfers (out of hospital) at all due to social care."" She knows from speaking to her local peers within London they are an ""outlier"" to be in this situation. Because of the borough's diverse population and high levels of deprivation and health issues they bring, the team has had to ""proactively plan"" - but she says ""it's becoming increasingly difficult going forward"". It's difficult to see how the system will be sustained She says they have been heavily supported by their clinical commissioning group. ""Councils are currently prioritising adults and children's services above other areas of spending, but that will only go so far and we do feel we are at a tipping point and that's been borne out this winter - it's difficult to see how the whole system will be able to be sustained next year."" And she says the ageing population means assessments are taking much longer. ""People have got much more complex needs, multiple long term conditions, so we've got that added level of complexity. ""We've seen a significant increase in the level of support we then have to provide to people to make sure they can go home safely and that they are appropriately supported."" Dr Olivia Hum has been a GP since 2007. She works in a surgery in Lewes, east Sussex. ""The intensity of the work in 2017 is really bad. We work 10-12 hours a day without a break,"" she says. GPs are burning out, they are overworked She says the demand on GPs has increased ""because of the pressure on hospitals"". ""A&E is too crowded which means that people are not diagnosed properly and they come to the GP for the rest of their health problems. They then bounce back to the hospital. ""The local hospital has seen a huge decline in funding, so people are on six to nine-month waiting lists. This has a huge impact on GPs who are dealing with the deteriorating symptoms of people waiting for tests or treatment, including patients who have symptoms of cancer. This waiting also has huge personal impact on patients, it increases their worry and stress."" She adds: ""There is a real crisis in GP staffing. Lots of practices are closing, so patients try to register at the practice next door which has no space. GPs are burning out, they are overworked and many are retiring early. The system is unsustainable now. ""It is just impossible to provide extra appointments in practices. I know GPs with almost twice as many patients as I have and they can only provide care at a very basic level. It is not safe - the brain can't make these decisions properly in less than 10 minutes. In these cases, quality of care and patient safety is compromised."" A week of coverage by BBC News examining the state of the NHS across the UK as it comes under intense pressure during its busiest time of the year.", -118,2017/2/7,http://www.bbc.co.uk/news/health-38832993,NHS Health Check: 'How NHS changed our lives',"The NHS has come under intense pressure this winter, with record numbers of patients facing long waits in accident and emergency units among other challenges.","The NHS has come under intense pressure this winter, with record numbers of patients facing long waits in accident and emergency units among other challenges. We asked some of those who have fallen ill, and the families of others, to share their experiences of winter 2016-17. My dad's mental health has really deteriorated - I blame the trauma of the fall and the time he's been forced to spend in hospital Sue's father's life changed dramatically after he fell out of bed while in hospital in December 2016. Bryan, 84, had been admitted to hospital near their house in Cornwall for a hip operation. Sue says she was not told about his fall for several days, eventually she was told he would not walk again and possibly had only six months left to live. ""I am devastated - six weeks ago everything was fine, now this is not the world I imagined I'd be in. ""In December he was walking into town, doing gardening, he loved mechanics and tinkering. ""Now in hospital his mental health has really deteriorated, he does not speak and strips naked in public. ""I blame the trauma of the fall and the time he's been forced to spend in hospital. ""I'm really on edge, I feel like I'm about to fall off a cliff. ""I break down in tears at least once a day. ""He's had his life taken away too soon. ""Are we saying that because he's too complicated, our society can't care for him? ""It seems like such a big fight to just find out from the hospital what is going on. ""I just hope to God that he doesn't understand what is happening to him. ""I feel like he'll never come home again, he seems lost to us."" I was driving when I realised I was having a heart attack... it felt like a horse was kicking me in the chest John Perrins was on the M6 motorway, driving home from Cambridge, when he realised he was having a heart attack. An ambulance driver himself, he had feared he would never see his wife again - so intense was the pain. But a paramedic saved his life at the side of the road. ""I was vomiting and felt like a horse was kicking me in the chest. ""My wife called an ambulance, which arrived within 10 minutes - seeing the blue lights was the most wonderful thing I've ever seen. ""I passed out, but apparently they performed three lots of heart massage - 90 compressions. ""When I came round they spoke to me and, although I was scared, the way that the paramedic spoke to me made me feel safe. ""The ambulance crew were absolutely phenomenal. ""A friend who is a paramedic came to see me and he told me that the last six heart attack patients he worked on had died - I felt so lucky that I had this particular ambulance crew. ""They have given me my life back. ""The paramedic was treating me, teaching a trainee and looking after my wife in the ambulance - I could not have asked for a better person. ""I am trying to find out the names of the ambulance crew - I want to find them so I can say thank you."" Trevor Dallimore-Wright says his local GP and hospital are ""like a family"" to him, regularly providing life-saving care for his complex health conditions. ""The NHS has been absolutely brilliant,"" says Trevor, from London, who has diabetes and depression. ""My GP keeps me sane and out of hospital - I would give her 10 out of 10. ""I've had emergency admittance twice recently with sepsis - I went to A&E and was treated very quickly. ""They've had a great impact on my life. ""NHS treatment has helped me during the times that I could not get out of bed. ""My GP is extremely kind and patient. They are so patient-centred, I would put them in the luxury bracket. ""All the hospital staff are extraordinarily friendly. ""They are there despite the infrastructure problems in the NHS, and the care could not be better. ""From the moment I walk in, I know I'm being looked after. ""My only problem is that the NHS won't pay for immunotherapy drugs which are at the front line of treatment but are expensive."" Thirty six-year-old Nikki Alldis' satisfaction levels are at the other end of the spectrum, however, despite also living London. She says she has waited 15 months for a bowel operation, which has been twice cancelled. When the procedure was scheduled for early January, she mentally prepared her young children and rearranged her work. But Nikki has twice received a last-minute call telling her there is no bed space. She is still waiting. ""I'd prepared mentally - I planned my whole Christmas around the operation and recovery. I prepared frozen dinners for my kids, they are seven and 13, and I said a farewell goodbye. ""Then in the morning the nurse called me and said, 'We have no bed for you.' ""I was gutted. The kids were so confused when they came home and I was still there. ""I've been waiting for 15 months now - it's hanging over me. ""I did not believe the second appointment would happen, but I packed my bags anyway. ""We didn't even bother to rearrange my husband's work that time, if he's not working we're not earning, so we can't afford these cancellations. ""I put things in place with my work for people to cover me. ""I'm still waiting, hopefully it's third time lucky."" When 29-year-old Paul was feeling suicidal in January, the NHS crisis care team in west London gave him 24-hour care to keep him safe. He has received treatment for bipolar disorder for four years and says his consultant and crisis team are outstanding. ""They helped me in my darkest and most depressive hours,"" says Paul, who asked for his surname not to be revealed. ""I came back home after New Year and went back to day-to-day life, but it kicked off a hefty depression and I was left feeling really low and suicidal. ""My partner called the crisis team, and they came to our house three or four times a day. ""They come at 02:00 or 03:00, they are really responsive. ""I don't feel like they are just doing their jobs, they have genuine care for me. ""They take away my medication to make sure I will not overdose and when they visit, they make me take the medication. ""Sometimes they just spend time with me. ""They ask how I am, what did you eat and sometimes they make me do things like go and buy some milk, which I don't always feel able to do. ""I would not be alive without them. ""But one problem I have with NHS mental health care is that they medicate but do not do counselling, there is a massive waiting list, so now I have to get counselling privately."" I stayed on a chair beside my mum and slept on the floor - she died a week later ""Before she was diagnosed with cancer, my mum could run a marathon,"" says Richard Taylor, 55 from Liverpool. He was devastated after watching her ""undignified"" death last month. The local cancer centre did not have the capacity to give her end-of-life care. ""After she received the second diagnosis, she was sent home and we got caught in a communication loop between three hospitals. It was an emotional rollercoaster. ""Eventually I had to take her to A&E - she could not eat or drink. ""She spent 13 hours on a trolley, behind a curtain in a noisy and busy ward. ""I stayed on a chair beside her and slept on the floor - she died a week later. ""My gripe is with the lack of communication and the delays in my mum's treatment. ""The nursing staff were fantastic, but there is only so much they can do - they could not give my mum 24-hour attention. ""She was a very proud and dignified woman - but in the end she was simply scared to be alone. ""It was awful watching someone die in this extremely undignified way. ""If she was an animal, they would have put her down - she was starving and dehydrated. ""The nurses were lovely and compassionate, but they offered me no support. ""The NHS is a great thing, but it is under the hammer."" A week of coverage by BBC News examining the state of the NHS across the UK as it comes under intense pressure during its busiest time of the year. By Georgina Rannard, UGC & Social News", -119,2017/2/7,http://www.bbc.co.uk/news/health-38882876,Is a 'seven-day NHS' feasible?,,"The ""seven-day NHS"" was a key pledge of former Prime Minister David Cameron, and has been taken on by Theresa May. Her government envisages people having access to local GPs seven days a week. It also wants patients to receive the same level of urgent and emergency care in hospitals in England at weekends, as on Mondays to Fridays. But is this feasible? The Victoria Derbyshire programme reports. The Victoria Derbyshire programme is broadcast on weekdays between 09:00 and 11:00 on BBC Two and the BBC News channel.", -120,2017/2/6,http://www.bbc.co.uk/news/health-38065810,Reality Check: How much could NHS recover from foreign patients?,NHS hospitals in England are to be forced to charge patients from overseas up front for non-emergency care if they are not entitled to free treatment.,"The claim: The NHS could recover between ?200m and ?500m annually from foreign patients if a system of charging them in advance for non-emergency care worked perfectly. Reality Check verdict: The NHS recovered ?289m in 2015-16 and ?500m is the government's target for 2017-18. The NHS may struggle to meet that target, but it is not unreasonable to suggest that amount could be recouped by a perfect system. NHS hospitals in England are to be forced to charge patients from overseas up front for non-emergency care if they are not entitled to free treatment. Dr Mark Porter, from the British Medical Association, told BBC Radio 5 live that the amount that could be recovered if the charging system worked perfectly was between ?200m and ?500m a year. He went on to say that was not very much money in the context of NHS spending and deficits, bearing in mind that the NHS budget in England was ?116.4bn in 2015-16. A report - based on 2013 figures - estimates that treating all visitors and migrants in England (not just in hospitals) costs the NHS about ?2bn, although it warns there is considerable uncertainty about that figure. That includes treating tourists who become ill while on holiday and longer-term migrants who have paid surcharges on their visas to be entitled to NHS care. Not all of that ?2bn could be recovered. Treatment in A&E, for example, is free for everyone up to the point when a patient is either admitted to hospital or given an outpatient appointment. The government does recoup some of the ?2bn, although not as much as it would like. It has a target to recoup ?500m of the cost of treating overseas visitors by 2017-18. It has made considerable progress towards that goal, increasing the amount recouped from ?97m in 2013-14 to ?289m in 2015-16. A big proportion of that increase, ?164m of it, has come from a health surcharge that must be paid by most students and temporary migrants from outside the European Economic Area (EEA) applying for visas to come to the UK for more than six months. Patients from inside the EEA with EHIC cards are generally treated free, with the government applying to their home countries to cover the cost. Those from elsewhere in the world who are not covered by the health surcharge will be charged for the cost of their treatment. Trusts are now allowed to charge 150% of the cost of treatment to patients from outside the EEA. The NHS has not been particularly good at recouping the costs in the past because trusts have not been good at identifying which patients should be charged for their treatment and it is difficult to collect money from patients living outside the EEA once they have returned home. The authorities have also not been particularly good at recouping the costs of treating people from EEA countries. This report from the National Audit Office said that on current trends the NHS would not manage to recover ?500m a year by 2017-18, although that was before the announcement of the change to the rules so that non-urgent care must be paid for upfront. The NAO estimated that trusts only manage to recover about half of the amount they invoiced overseas patients. The Department of Health estimated that in 2012-13 the potentially recoverable amount was ?367m, but it excluded from that figure the estimated cost of between ?100m and ?300m for a combination of people who had travelled to England purely to receive urgent treatment and regular visitors who are described as ""taking advantage"" of the system by registering for GP services and other NHS services to which they are not entitled. All of these figures are estimates. Looking at the bottom end of the range, ?200m is too low a figure as it is considerably less than is currently being collected. At the top end, ?500m is the government's target - it is not unreasonable to suggest that amount could be collected by a perfect system. Find other Reality Checks here", -121,2017/2/7,http://tass.com/world/929606,Russian blogger Lapshin extradited to Baku - media,"Earlier on Tuesday, the Supreme Court of Belarus upheld a lower court ruling to extradite Lapshin","BAKU, February 7. /TASS/. Russian citizen Alexander Lapshin was extradited to Baku from Minsk, Azerbaijan's haqqin.az news portal reported Tuesday. ""A special flight with blogger Alexander Lapshin on board landed in Baku,"" the portal reported. Earlier on Tuesday, the Supreme Court of Belarus upheld a lower court ruling to extradite Lapshin.", -122,2017/2/7,http://tass.com/society/929605,Collection of watches worth over $10 mln seized from detained Sakhalin ex-governor,"The most expensive watch cost $700,000","MOSCOW, February 7. /TASS/. Investigators have seized a collection of watches worth more than 600 mln rubles (roughly $10 mln) from former governor of the Sakhalin region Alexander Khoroshavin, Investigative Committee Spokesperson Svetlana Petrenko told TASS. ""During the investigation it became clear that Khoroshavin had a weakness for expensive accessories, particularly watches. He had a collection of 195 watches with a total value of 602 mln rubles,"" she said. According to Petrenko, the most expensive watch cost $700,000. ""Besides, investigators also found out that shortly before his arrest, Khoroshavin had ordered another watch worth 36 mln rubles (roughly $607,000),"" Petrenko added. She also said that during the investigation, goods with a total value of 1.5 bln rubles (roughly $25 mln) had been seized. Former governor of the Sakhalin region Alexander Khoroshavin and three other defendants have been charged with receiving bribes totaling 522 mln rubles ($8.8 mln), the case has been already sent to court.", -123,2017/2/7,http://tass.com/economy/929603,"Russia's foreign trade down 11.9%, to $470 bln in 2016 ""?Economy Ministry","Export dropped 18.2% in the reporting period, import fell by 0.8%","MOSCOW, February 7. /TASS/. Russia's foreign trade turnover dropped 11.9% annually as of 2016 year-end to $470.6 bln, the Ministry of Economic Development said on Tuesday. Export dropped 18.2% in the reporting period. Import fell by 0.8%. The share of export was 59.3% and import amounted to 40.7% in total turnover of the last year. Worsening of trade conditions resulted in particular from higher volatility of prices on world's market of resource goods: oil, natural gas, aluminum, copper and nickel prices declined in comparison to 2015.", -124,2017/2/7,http://tass.com/politics/929596,"Russian, German top diplomats discuss forthcoming meetings in Bonn, Munich",The ministers also discussed steps towards more active use of Normandy format to implement Minsk accords,"MOSCOW, February 7. /TASS/. Russian and German Foreign Ministers, Sergey Lavrov and Sigmar Gabriel, discussed a schedule of their future contacts, the Russian foreign ministry said on Tuesday after their telephone conversation. The sides discussed ""the current state of the Russian-German relations, a schedule of further political contacts and large-scale multilateral events, including a meeting of the Group of Twenty foreign ministers in Bonn (on February 16-17) and the Munich Security Conference (on February 17-19),"" the ministry said. The Russian foreign minister ""invited his German counterpart to pay a visit to Russia at any time convenient for him,"" the ministry added. The-ministers also discussed steps towards more active use of Normandy format to implement Minsk-2 package. ""In the follow-up to Russian President Vladimir Putin's telephone conversation with German Chancellor Angela Merkel held on the same day, the ministers discussed steps towards more active use of the Normandy format to implement the Minsk agreements on the settlement of the Ukrainian crisis, including ensuring security in the conflict zone and promoting political process,"" the ministry said.", -125,2017/2/7,http://tass.com/economy/929594,"Russian banks managed to shore up positions in Cyprus despite sanctions ""?ambassador","Relations between Russia and Cyprus maintain positive dynamics, the ambassador notes","MOSCOW, February 7. /TASS/. Crisis and sanctions did not prevent operations of Russian banks in Cyprus and they managed to reinforce positions there, Russian ambassador in Cyprus Stanislav Osadchiy told TASS in an interview on Tuesday. ""Concerning our banks represented in the island, they did not merely manage to stay afloat in conditions of recession but strengthened positions there,"" the ambassador said. ""As far as we are aware, anti-Russian sanctions introduced by the European Union did not interfere with their operations,"" he said. ""RCB Bank [a subsidiary of Russia's VTB24] is among leading credit institutions in Cyprus, included recently by the ECB into ranks of four systemic Cyprus banks of the Eurozone,"" Osadchiy said. ""Compared to other credit institutions, RCB Bank is highly liquid and proactively expands its network on the island - subsidiary offices were opened in Nicosia and Limassol in 2015,"" the diplomat said. Russia's Promsvyazbank also has an office in Limassol, he added. Relations between Russia and Cyprus maintain positive dynamics, the ambassador said. ""Close economic cooperation, though frequently exposed to challenging tests, continues to be their driver,"" he added.", -126,2017/2/7,http://tass.com/economy/929591,Ambassador says Russian tourist inflow to Cyprus grows by 50% in 2016,A Russian diplomat notes the significant increase in the number of Russian tourists was a result of flights to Egypt being suspended,"MOSCOW, February 7. /TASS/. The number of Russians visiting the Republic of Cyprus in 2016 grew by 50% compared to the previous year, reaching a record high, Russian Ambassador to the Republic of Cyprus Stanislav Osadchy said in an interview with TASS. ""Last year was a year of records for the Cypriot tourism industry, which became possible largely due to a significant growth in the Russian tourist inflow,"" he said. ""According to the official data provided by the Cypriot statistics agency, the number of our fellow citizens visiting Cyprus neared 800,000, which is more than any previous annual numbers and almost 50% more compared to 2015."" The Russian diplomat also said that although the significant increase in the number of Russian tourists was a result of flights to Egypt being suspended, however, the trend for the growing Russian tourist inflow to Cyprus had remained for the past few years. Osadchy pointed out that Cypriots had been taking more and more interest in Russia due to increasing business cooperation, strengthening personal ties, religious and cultural closeness between the two peoples. ""More Cypriots have been visiting our country as tourists,"" he added. ""Even consular statistics prove that as around 6,000 visas were issued last year."" ""I would like to emphasize that the Republic of Cyprus was recognized by the world community while the so-called Turkish Republic of Northern Cyprus (TRNC) located in the northern part of the island is unrecognizes and is not controlled by Nicosia,"" the Russian diplomat said. ""In other words, if our fellow citizens find themselves in the Turkish Republic of Northern Cyprus it means they are outside the legal system of the Republic of Cyprus."" The ambassador pointed out that arrivals via the northern part of the island ""are viewed by the Cypriot authorities as illegal and are actually a criminal offence."" ""This is why we strongly recommend our fellow citizens to arrive only through the airports and sea ports of the Republic of Cyprus,"" Osadchy said. ""Unfortunately, we often hear that some Russian nationals, either out of ignorance or on the off chance, attempt to cross the buffer zone so the Cypriot authorities arrest them. Often times it leads to deportation, but there have been some more complex incidents,"" the Russian ambassador added. He stated that the Russian embassy's consular department ""provides assistance to Russian nationals no matter in what part of the island they are."" ""However, there are no consular centers in the Turkish Republic of Northern Cyprus, our possibilities are limited there,"" Osadchy said. ""Embassies of other countries have been facing the same problem."" ""For humanitarian reasons, as well as in order not to leave Russians permanently residing in the northern part of the island without assistance, our consulate officials receive Russian nationals in the buffer zone on a regular basis,"" the ambassador concluded.", -127,2017/2/7,http://tass.com/politics/929588,"Russia ready to take part in international conference on Cypriot settlement ""?diplomat","A diplomat believes terms for Cyprus""?reunification should be approved by the population at referendum","MOSCOW, February 7. /TASS/. Russia is ready to take part in an international conference of the Cypriot settlement if necessary, Russia's Ambassador to Cyprus Stanislav Osadchy told TASS on Tuesday. ""The terms under which the island will be reunified are to be approved by Cyprus""?population at a referendum,"" he said. ""On our part, Russia, as a permanent member of the United Nations Security Council, is ready to support the positive result of such plebiscite, to guarantee unimpeded implementation of the parameters of comprehensive settlement, to secure the Cypriot communities from imposed ready-to-use settlement formulas in the interests of third players, and to take part in an international conference of the Cypriot settlement along with other member countries of the United Nations Security Council, should it be needed."" He added that terms for Cyprus""?reunification are to be approved by the population at referendum. He said that it is crucially important ""not to hinder the Cypriots"" in the settlement process. ""Unlike a number of our foreign partners, Russia has been consistently saying that it is up to the Cypriot communities to decide on the settlement parameters, without any foreign interference,"" he stressed. According to the Russian diplomat, a favorable environment for the Cypriot settlement came to existence when Cyprus""?President Nikos Anastasiadis and Turkish Cypriot leader Mustafa Akinci took charge of the negotiating process in May 2015. ""It did not take long for the two communities""?leaders to established trust-based relations dubbed by United Nations Secretary General's Special Adviser on Cyprus Espen Barth Eide as ""Good chemistry.""?Over the months that have elapsed since then, the communities managed to bridge gaps on a number of aspects on the negotiating process,"" Osadchy said. By now, the negotiating process ""has actually entered a decisive stage,"" he said. ""For the first time, it has been joined by representatives of the guarantor states - the United Kingdom, Greece and Turkey. Much will now depend on the political will of Anastasiadis and Akinci, their readiness for compromises in the name of the common goal of the island's reunification,"" the Russian diplomat said. Cyprus has been divided into two parts since 1974 after Turkey invasion of the northern part of the island that followed a state coup staged by supporters of Cyprus""?unification with Greece. As a result of combat operations, Turkey won control of about 37% of the island's territory where the Turkish Cypriot community unilaterally declared independence and formed the Turkish Republic of Northern Cyprus in 1983. Turkey is the guarantor for Northern Cyprus while the island's southern part constitutes the Republic of Cyprus populated primarily by Greek Cypriots. The two communities have been holding U.N.-brokered negotiations for decades.", -128,2017/2/7,http://tass.com/politics/929583,Russia's envoy sees no signs of NATO's changing its eastward expansion plans,Russia and NATO have managed to reach certain agreements on flights of warplanes over the Baltic Sea,"MOSCOW, February 7. /TASS/. Russia's Ambassador to NATO Alexander Grushko said on Tuesday he sees no signs of NATO's rolling back its eastward expansion plans. ""The process of forming command headquarters at the eastern flank continues. Plans have been announced to expand presence in the Black Sea. So far, we see no signs that these plans are going to be adjusted after the new administration came to power [in the United States],"" he said in an interview with the Rossiya-24 television channel. A forthcoming meeting of the NATO defense ministers on the expansion of the alliance's presence in the Black Sea due to be held in Brussels on February 15-16 ""is another step towards building up confrontation with Russia,"" he stressed. Russia and NATO have managed to reach certain agreements on flights of warplanes over the Baltic Sea with their transponders on, he went on.- ""A working group on the Baltic Sea worked under the umbrella of the International Civil Aviation Organization (ICAO). The group dealt with the problem of transponders. Certain agreements were reached within this group, which have made it possible to partially settle this problem. Having heard this group, the Russia-NATO Council supported it work. It will meet again on March 3,"" Grushko said. ", -129,2017/2/7,http://tass.com/politics/929587,"Russia, Cyprus plan to sign deal on cooperation in evacuating Russians from Middle East",The Russian ambassador to Cyprus says the number of interstate agreements has reached 50,"MOSCOW, February 7. /TASS/. Russia and Cyprus are close to agreeing on an document on cooperation in evacuating Russians form Middle Eastern countries should the need arise, Russian Ambassador to the Republic of Cyprus Stanislav Osadchy said in an interview with TASS. According to him, the agreement may be signed in 2017. ""The document that the Cypriot ambassador to Russia mentioned is called the Agreement between the government of the Russian Federation and the government of the Republic of Cyprus on cooperation in conducting humanitarian operations in crisis situations. It is one of the priority projects that are currently under consideration,"" the ambassador said. ""The negotiation process is nearing its end, so we hope the agreement will be signed this year."" ""This will surely provide additional possibilities for bilateral cooperation if some emergency arises, particularly if there is a need for assistance in humanitarian operations carried out in the region,"" the Russian diplomat noted. Osadchy added that Russia and Cyprus had an extensive legal basis for cooperation in various spheres. ""The number of interstate agreements has reached 50,"" he said. Cypriot Ambassador to Russia Georgios Kasoulides said earlier that Nicosia and Moscow had been discussing mechanisms for evacuation of Russians from the Middle East. According to him, talks are underway on an agreement that would provide the two countries with an opportunity to cooperate during humanitarian operations, particularly when there is a need to evacuate Russian nationals through Cypriot ports when some incidents in the Middle East occur.", -130,2017/2/7,http://tass.com/sport/929576,"NHL to decide on league players""?availability for 2018 Olympics in March","The next Winter Olympics will take place in South Korea's PyeongChang on February 9-25, 2018.","MOSCOW, February 7. /TASS/. The US-based National Hockey League (NHL) is likely to make a decision in March regarding the league's players possible participation in the 2018 Winter Olympic Games in South Korea's PyeongChang, Rene Fasel, the president of the International Ice Hockey Federation (IIHF) announced on Tuesday. ""Yesterday we held a conference call with the IIHF Council and representatives from each of the participating teams in the men's tournament,"" a statement posted on the official IIHF website quoted Fasel as saying. ""The majority of this group felt that the NHL will likely need to decide during the month of March because of their scheduling needs for next season,"" the IIHF president said. ""We also know that the European leagues and clubs need clarification as well on that important question before the end of the current season."" ""However, we do not feel at this time that it would be constructive to set a hard deadline for the NHL and NHLPA to confirm their participation,"" he added. The next Winter Olympics, which are XXIII Winter Olympic Games, will take place in South Korea's PyeongChang on February 9-25, 2018.", -131,2017/2/7,http://tass.com/politics/929574,Russia's NATO envoy believes escalation in Donbass is part of Kiev's political plan,"According to the Russian diplomat, the problem has a political component which is geared to make the Ukrainian regime feel that Ukraine is vanishing from the radars","MOSCOW, February 7. /TASS/. Kiev's ongoing provocations along the contact line in Donbass are part of the policy of non-fulfilment of the Minsk agreements, Russia's Permanent Representative to NATO Alexander Grushko said on Tuesday. ""The problem is that Ukraine is not implementing the Minsk agreements. Moreover, the current escalation is a result of a certain political plan,"" he said in an interview with the Rossiya-24 television channel. According to the Russian diplomat, the problem has a ""political component which is geared to make the Ukrainian regime feel that Ukraine is vanishing from the radars."" ""It was an attempt to demonstrate that responsibility rests on the Russian side,"" he added.", -132,2017/2/7,http://tass.com/world/929573,"Russian, Jordanian top diplomats discuss efforts to enhance ceasefire in Syria","Jordan's representatives took part in the first meeting of the joint task force on the Syrian ceasefire comprising Russia, Iran and Turkey, on February 6","MOSCOW, February 7. /TASS/. Efforts towards enhancing and expanding cessation of hostilities in Syria were in focus of a telephone conversation between Russian and Jordanian Foreign Ministers, Sergey Lavrov and Ayman Al Safadi, the Russian foreign ministry reported on Tuesday. ""The sides exchanged views on current regional problems with a focus on the Syrian settlement in the context of efforts towards enhancing and expanding the ceasefire and resuming the intra-Syrian negotiating process,"" the ministry said. The two ministers also touched upon ""a number of practical aspects of bilateral cooperation,"" the ministry added. The conversation was initiated by the Jordanian side. Jordan's representatives took part in the first meeting of the joint task force on the Syrian ceasefire comprising Russia, Iran and Turkey, which was held in Kazakhstan's capital city of Astana on February 6. Prior to that, thanks to Jordan's efforts, groups of the so-called southern front had joined the ceasefire ahead of the international meeting on Syria in Astana on January 23-24.", -133,2017/2/7,http://tass.com/world/929572,Pentagon says no dialogue with Russia on joining forces in Syria,The Air Force chief says Pentagon is reviewing US-Russian memorandum on Syria,"WASHINGTON, February 7. /TASS/. The US Department of Defense is not considering a possibility of joining forces with Russia in Syria, Air Force Chief of Staff General David Goldfein told reporters at a Defense Writers Group breakfast. ""I have not heard of any dialogue that leads us towards joining forces (with Russia),"" he said. According to Goldfein, the US has been focused on measures to ""deconflict our operations."" Goldfein added that the US Russian speakers from the Combined Air Operations Center located at the al-Udeid Air Base in Qatar had been maintaining ""a daily dialogue with Russian counterparts to ensure we deconflict operations."" He went on saying, ""and the way I would describe deconfliction is - let me tell you where I'm planning to fly. Where are you planning to fly? How do we ensure that we maintain appropriate separation, so we don""t have a miscalculation. It's as much of a safety dialogue as it is an operational dialogue."" ""That is the level of our dialogue at this point, it's very heavily focused on the deconfliction,"" the US Air Force Chief of Staff added. ""And so that's the direction we've been given now to execute."" The US Department of Defense and the new Defense Secretary James Mattis in particular has been reviewing the US-Russian memorandum on preventing incidents in Syrian airspace, he added.- When asked if the new US administration was willing to enhance the memorandum, he said that ""right now the Department of Defense and Secretary Mattis is doing an overall review like any new administration does coming in."" ""And so I think they'r taking a look at... all of the memorandums and directives that they now have inherited to see where they want to make any changes. So that review is going on right now,"" Goldfein added.", -134,2017/2/7,http://tass.com/sport/929565,Russian Olympic chief pledges support for all national track and field athletes,Russian track and field athletes can be cleared for international competitions after IAAF approves their individual applications,"SOCHI, February 7. /TASS/. The Russian Olympic Committee (ROC) will grant support to all national track and field athletes wishing to compete in international competitions in a neutral status, ROC President Alexander Zhukov told TASS on Tuesday. Russian track and field athletes can be cleared for international competitions after IAAF approves their individual applications. However they cannot perform under the Russian flag until IAAF re-grants membership to the All-Russia Athletics Federation (ARAF). More than 30 Russian track and field athletes, including world champions Sergei Shubenkov and Maria Kuchina, have applied already submitted their personal application with the IAAF as of today. ""The ROC will be extending support for all Russian track and field athletes even in case of their neutral status of participation,"" Zhukov said in an interview with TASS. ""We will be granting them support regardless of their status."" In 2015, the WADA (World Anti-Doping Agency) Independent Commission carried out an investigation in regard to the activities of the All-Russia Athletics Federation (ARAF), the Moscow anti-doping laboratory, the Russian Anti-Doping Agency (RUSADA) and the Russian sports ministry. The commission accused certain athletes and sports officials of doping abuse and involvement in other activities related to violations of international regulations on performance enhancing substances.", -135,2017/2/7,http://tass.com/society/929567,Prosecutor General's office sends former Sakhalin governor case to court,,"MOSCOW, February 7. /TASS/. The Russian Prosecutor General's Office has sent former governor of the Sakhalin region Alexander Khoroshavin's case to court, spokesman for the Prosecutor General's Office Alexander Kurennoi told TASS. ""Russian Deputy Prosecutor General Viktor Grin has confirmed the indictment against former governor of the Sakhalin region Alexander Khoroshavin, deputy governor Sergei Karepkin, governor's advisor Andrei Ikramov and regional agriculture, trade and food minister Nikolai Borisov,"" Kurennoi said. The case has been sent to the Yuzhno-Sakhalinsk City Court for consideration on the merits. Sakhalin governor's arrest sends anti-corruption message to regional elites ", -136,2017/2/7,http://tass.com/politics/929560,"Russian diplomat says meeting between Russian, Georgian presidents is possible",A personal meeting between Russian and Georgian Presidents is not ruled out some time in future,"PRAGUE, February 7. /TASS/. A personal meeting between Russian and Georgian Presidents, Vladimir Putin and Giorgi Margvelashvili is not ruled out some time in future, Russian Deputy Foreign Minister Grigory Karasin told TASS on Tuesday. ""In general, such strategic perspective does exist,"" he said. ""But now we must focus on practical issues to arrange such a meeting."" ""It would have sense only in this event,"" he stressed. ", -137,2017/2/7,http://tass.com/politics/929556,Russian diplomat urges world community to think about how to build relations with Kiev,Russian diplomat says Kiev goes to great lengths in attempts to upset Minsk accords,"PRAGUE, February 7. /TASS/. The international community should think seriously about how to further build relations with Kiev, Russian Deputy Foreign Minister Grigory Karasin told TASS on Tuesday. ""The political line of the current Ukrainian leadership has caused this situation to turn into an increasingly acute international problem,"" the diplomat said. ""The international community should start thinking seriously about how to further build relations with the Kiev regime,"" the diplomat said. ""One has an impression Kiev has been doing all it can to break the Minsk Accords of February 2015,"" Karasin said. ""The current authorities in Kiev have no wish to implement them. Also they lack an opportunity to do something."" The situation at the disengagement line in the Donbass region has escalated sharply in the past few days. -", -138,2017/2/7,http://tass.com/sport/929561,Russian anti-doping agency says on right track for WADA's membership reinstatement,Starting last year's January control over anti-doping regulations in Russian sports has been exercised by RUSADA strictly under the supervision of the British anti-doping agency,"MOSCOW, February 7. /TASS/. The Russian Anti-Doping Agency (RUSADA) noted on Tuesday a positive course of developments regarding the progress of its suspended membership reinstatement in the World Anti-Doping Agency (WADA). ""RUSADA continues its work with WADA, the Russian Sports Ministry, the Independent Public Anti-Doping Commission (IPADC) as well as with other interested parties in order for the organization to regain its status in compliance with the WADA Code,"" RUSADA said in its statement. ""The progress of RUSADA's activities maintains a stable and positive course,"" the statement added. Less than two years ago the WADA Independent Commission carried out an investigation in regard to the activities of RUSADA, the All-Russia Athletics Federation (ARAF), the Moscow anti-doping laboratory and the Russian Sports Ministry, and announced the results of the probe on November 9, 2015. The commission accused certain athletes and sports officials of doping abuse and involvement in other activities related to violations of international regulations on performance enhancing substances. The work of the Moscow anti-doping laboratory and RUSADA was eventually suspended. Starting last year's January control over anti-doping regulations in Russian sports has been exercised by RUSADA strictly under the supervision of the British anti-doping agency (UKAD).", -139,2017/2/7,http://tass.com/politics/929558,Russian ambassador says EU in panic over Trump's presidency,"According to the Russian diplomat, skeptical anticipations of the EU future have been expanding and growing stronger in the recent time","MOSCOW, February 7. /TASS/. The European Union seems to be in panic after Donald Trump took the presidential office in the United States and is unable to arrive at a common position about him, Russia's Permanent Representative to the European Union Vladimir Chizhov said on Tuesday. ""To tell it in a nutshell, there is a mood of panic. The majority of the European Union member countries staked on Clinton. So, it is too early to speak about a common European Union's position on the new U.S. administration,"" he said in an interview with the Rossiya-1 television channel. Apart from that, according to the Russian diplomat, skeptical anticipations of the EU future ""have been expanding and growing stronger"" within the EU in the recent time. ""So far, they are not dominating but are already impacting the European Union's common position on a number of matters,"" he added.", -140,2017/2/7,http://tass.com/sport/929554,Russian athletes harvest 12 medals on Day 9 of 2017 Winter Universiade in Almaty,"Following Tuesday competitions, the Russian national team secured its strong lead in the medals standings of the tournament, boasting a total of 68 medals","MOSCOW, February 7. /TASS/. Russian athletes packed an impressive load of 12 medals (four gold, six silver and two bronze) on the ninth day of the 2017 Winter Universiade, held in Kazakhstan's Almaty between January 29 and February 8. The four gold medals were brought by cross-country skier Lillia Vasilyeva (Ladies""?15 kilometers Mass Start), snowboarder Anastasia Loginova (Ladies""?Big Air), snowboarder Mikhail Matveyev (Men's Big Air) and freestyle skier Anna Antonova (Ladies""?Ski Cross). Tuesday's six silver medals of the 2017 Universiade competitions were conquered for Russia by cross-country skier Anna Nechkasova (Ladies""?15 kilometers Mass Start), snowboarder Yelena Kostenko (Ladies""?Big Air), freestyle skier Kirill Merenkov (Men's Ski Cross), freestyle skier Maya Averianova (Ladies""?Ski Cross) and the women's national curling team. Russia's parcel of two bronze medals on Tuesday was packed by biathlon racer Larisa Kuklina (Women's 12.5 kilometers Mass Start) and freestyle skier Yekaterina Maltseva (Ladies""?Ski Cross) Following Tuesday competitions, the Russian national team secured its strong lead in the medals standings of the tournament, boasting a total of 68 medals (27 gold, 26 silver and 15 bronze medals), ahead of Kazakhstan, which is in the second place with 11 gold, seven silver and 16 bronze medals. The Republic of Korea ranks in the third place with 11 gold, five silver and five bronze medals before the closing day of the global competition. The Winter Universiade is an international sporting and cultural festival which is staged every two years in a different city. The name of the international sports event is a combination of two words, which are ""university""?and ""Olympiad.""?It is only second to the Olympic Games. The program of the Winter Universiade currently includes 6 compulsory sports (8 compulsory disciplines) and up to 3 optional sports chosen by the host country. The next Winter Universiade is scheduled to be held in Russia's Krasnoyarsk in 2019. Krasnoyarsk, which has a population of over one million, was elected to host the 2019 Winter Universiade at the session of the FISU Executive Committee in Brussels in 2013. The event is scheduled for March 2-12, 2019.", -141,2017/2/7,http://tass.com/society/929542,Russian Far Eastern Safari Park marks 10 years anniversary,Primorye Safari Park was long in the focus of Russian mass media after its inmate Tiger Amur refused to kill and befriended a goat given to him as food,National park in Russia's Far Eastern Primorye region marks its 10th anniversary. Primorye Safari Park was long in the focus of Russian mass media after its inmate Tiger Amur-refused to kill and befriended a goat given to him as food. See the photographs of Primorye Safari Park-famous-inhabitants. , -142,2017/2/7,http://tass.com/defense/929548,"Russia's military hardware exports yield $15 bln for state coffers ""?PM","The state defense order has been 99% fulfilled, the Russian premier says","MOSCOW, February 7. /TASS/. Russia's military hardware exports yielded about $15 billion for the state coffers in 2016, Prime Minister Dmitry Medvedev said on Tuesday. The Russian premier cited these data at an enlarged session of the United Russia faction in the national parliament. ""The state defense order has been actually 99% fulfilled and this has never happened before,"" Medvedev told members of the ruling United Russia party, which he heads. ""The export deliveries of military hardware as part of military and technical cooperation have brought about $15 billion, which allows us to keep our positions on the world armaments market,"" the premier said. Russia is placed 2nd on this market after the United States, Medvedev said. ""It is important for us to retain this market,"" the premier said. According to the premier, Russian defense enterprises have increased production by more than 10% Last year, Russia's aircraft-making industry increased military production by almost 3.5% while its civilian output grew by about 20%,"" the premier said. ""Russia is developing principally new models of aircraft, such as the MC-21, which will fly using the promising PD-14 engine. Quite recently, the plane was rolled out in Irkutsk,"" Medvedev said, expressing the hope that the project would develop according to plan. Domestic ship-building has also demonstrated fairly good results, the premier said. ""Defense output in this sphere grew by more than 2% while the civilian segment of ship-building increased by 11%,"" Medvedev said. -Conditions should be created for export expansion of Russian industrial products to global markets, he went on. ""Our industry should be competitive; goods manufactured by our industry should enjoy demand on the domestic and on the international markets. We must create all the conditions for the so-called export expansion,"" Medvedev said. Defense industry companies should also meet such criteria, particularly on account of making dual-purpose products, the Prime Minister said. The defense industry was often the source for technologies development in the non-defense sector, Medvedev said. ""The situation has reversed at present all over the world - the non-defense sector and its advance areas are very often pushing defense technologies forward,"" he added. There is also a need to implement innovations in the industry, Medvedev said. This will ""make possible to perform the quickest possible upgrade of branches currently lagging behind and create modern and high-technology jobs,"" he added. Medvedev considers it appropriate to maintain measures to support the non-oil-and-gas sector of the Russian economy. ""I think this is right, I hope that the Minister meant this (Industry and Trade Minister Denis Manturov - TASS) - to maintain the set of measures of support that we approved in order to strengthen the non-oil sector,"" Medvedev said. The Prime Minister recalled that in 2016, these measures led to a growth in the light industry, in production of railway rolling stock, in forestry sector and other sectors. According to Medvedev, initially those measures were criticized in the Cabinet. ""But there is one criterion of truth - it is the result. If, despite these measures od support, the industry continued to decline, in that case it would be necessary to review them and to focus on other areas, but the industry is growing,"" the Prime Minister said. ""That's why we decided to keep these measures of support,"" Medvedev said. He added that some of the support mechanisms will be revised and other forms of industrial incentives will be introduced.", -143,2017/2/7,http://tass.com/economy/929547,"Development of Arctic boosts demand for qualified specialists ""?experts",The region is in demand for well-trained experienced specialists skilled to working in the North,"MURMANSK. February 7. /TASS/. Development of the Arctic, as a priority direction of the Russian state polices, has increased the demand for qualified specialists in various fields. Experts say, the region is in demand for not adventurers, but for well-trained experienced specialists skilled to working in the North. Besides, of high demand are scientific suggestions on both development of the Arctic and on maintaining its natural conditions. Analysts of the HeadHunter recruiting portal say that open positions in the Russian Arctic regions (like the Sakha Republic, Nenets, Yamal-Nenets, Chukotka) in January 2017 doubled year-on-year. ""The biggest demand was for sales positions (28% of the vacancies the regions published in January 2017), raw materials exploration and development (16%), banking (14%), blue-collar positions (13%), and personnel for production facilities (12%). Most vacancies come from companies related to production of gas, oil, minerals, to development of open pits or to industrial construction,"" the company said. Most often, the companies were looking for applicants with working experience from one to three years (40%) and from three to six years (32%), while 23% of listed jobs were for applicants without experience. The average offered salary of 60,000 rubles (about $1,000 a month) goes next to 174,000 rubles for a programmer or 157,000 for a mining engineer working shifts. Candidates most often are guaranteed not only food and bed, but also laundry services, libraries and gyms. Misbalance between demand and offer in human resources in terms of territory and professional skills - this is how expert of the Presidential Academy Vera Smorchkova characterized in a conversation with TASS the biggest problem, which affects the social and economic development of the Arctic regions. She said about a lack of a balanced system for training and forecast to see what professions will be of demand on the Arctic market in five or seven years. The projects to implement systematic approaches in personnel training for the Arctic are only at the level of tests now. For example, the Murmansk region - the only part in the North-Western Federal District - is testing a standard of human resources for industrial growth purposes. The project involves employers, universities, authorities and the WorldSkills movement. The standard is used to forecast human resources demand and develop focused training, to organize independent evaluation of training, and the system for additional education for children. The region's six leading companies have agreed to participate in the test: mining, shipbuilding and other companies. Across the country, the standard is tested in 21 regions. Northern regions also do not forget about representatives of the indigenous peoples. The department of education at the Yamal-Nenets Autonomous District told TASS about training of nomadic teachers for schools and kindergartens. ""Today, in Yamal's tundra work 17 ""�chum""?(dwelling of nomadic peoples) kindergartens and five schools,"" the department said. Yakutia, for the purpose of supporting the locals, makes big companies working in the region employ the locals first of all, head of the region Yegor Borisov told TASS. ""Companies, working in development, do not have problems with personnel, and in work with those companies we set only one task - to employ more locals,"" he said. Thus, over the recent five years Alrosa (diamond producer) employed 18,000 local residents, and Surgutneftegaz (oil and gas producer) - 2,000 people. Companies working on Arctic projects - Norilsk Nickel, Rosneft, Gazprom and others - have been initiating educational programs. As yet, the Presidential Academy's expert said, cooperation between educational institutions and businesses has been on first stages of development - only five percent of educational programs are implemented in cooperation with employers. For example, Norilsk Nickel, under its corporate programs on working with students, cooperates with more than 15 Russian core universities. The company's press service told TASS about a few working projects, including a program to develop human capital - Conquerors of the North, which in 2016 won the national competition among projects involving graduates and young specialists. The company's second program is the Cup MISIS Case and the Cup Technical competitions in business cases. In 2016, more than 200,000 students from 65 universities in 25 cities participated in the first championship, and more than 350,000 from 250 universities in 35 cities participated in the second competition, which was aimed at solving more scientifically-technical practical cases. Many universities now give forecasts what professions will be of demand in the Arctic. For example, the Tyumen Oil and Gas University in 2000 opened a department of the Earth's cryology. Academician Vladimir Melnikov says, every year the department educates specialists in studies of natural and natural-technical processes in the Earth's cold regions. In 2016, the University opened the first in the world department of cryo studies, to working at which the University invited leading scientists from the U.S., Mexico, Israel, Finland, Sweden and Norway. The North (Arctic) Federal University opened the Arctic innovation center to implement results of research made by scientists and students. The university opened 24 small innovative companies to implement scientific results. One of the companies has offered technical characteristics and technology for production of autoclaved cellular concrete, using local mineral resources. Cooperation of universities, training specialists for work in the Arctic, with other countries in the educational and scientific spheres becomes a popular trend. The North (Arctic) University has close relations with educational institutions in Norway, Finland, Sweden, Canada and the U.S. More than 400 students and 300 teachers every year participate in academic exchange programs, and 80% of all the students""?and 40% of the teachers""?exchanges are organized with universities in the Arctic countries.", -144,2017/2/7,http://tass.com/politics/929543,Lavrov believes Kiev uses tensions in Donbass to distract attention from Minsk accords,The Russian top diplomat says tensions in Ukraine could benefit Pyotr Poroshenko who is seeking to distract the world's attention from Kiev's inability to implement the Minsk agreements,"MOSCOW, February 7. /TASS/. Growing tensions in Ukraine could benefit Ukrainian President Pyotr Poroshenko who is seeking to distract the world's attention from Kiev's inability to implement the Minsk agreements, Russian Foreign Minister Sergey Lavrov told TASS on Tuesday. ""Media outlets such as Radio Liberty and the Foreign Policy Magazine, receiving funds particularly from the US Department of State, are now saying that the current tensions (in Donbass) could benefit, first and foremost, the Poroshenko regime, seeking to distract attention from its inability to implement its obligations and to make the (Trump) administration believe that it is Russia who is to blame,"" Lavrov said. ""If someone hopes that all Ukraine's problems will be solved as soon as Kiev regains full control of Donbass, they are wrong for it is impossible. It is clear for everybody in Europe, including Paris, Berlin and Brussels, as well as in the US, even the previous US administration came to understand it in the end,"" Lavrov stressed. ""This is why Kiev cannot avoid fulfilling its obligations under the Minsk agreements."" According to the Russian foreign minister, the Normandy Quartet has been drawing up a road map that would coordinate steps aimed at implementing the Minsk agreements. ""These processes should go together,"" Lavrov noted. ""The president (of Russia Vladimir Putin) spoke about it in detail at a press conference in Budapest.""", -145,2017/2/7,http://tass.com/politics/929538,"Russian, Iranian diplomats to discuss implementation of Iran nuclear deal ""?source","A deal on Iran's nuclear program was reached between Iran and six international mediators on July 14, 2015","MOSCOW, February 7. /TASS/. Russian Deputy Foreign Minister Sergei Ryabkov will have a meeting with his Iranian counterpart, Abbas Araghchi, in Moscow on February 8 to exchange views on the progress in the implementation of the Joint Comprehensive Plan of Action (JCPOA) on the Iranian nuclear program and discuss bilateral relations, a diplomatic source told TASS on Tuesday. ""Top-ranking Russian and Iranian diplomats will hold consultations in Moscow on February 8 on the development of bilateral relations and on regional and international affairs,"" the source said. ""They are also expected to discuss progress in the implementation of the Joint Comprehensive Plan of Action on the Iranian nuclear program."" A deal on Iran's nuclear program was reached between Iran and six international mediators (the United Kingdom, Germany, China, Russia, the United States, and France) on July 14, 2015. On January 16, 2016, the parties to the deal announced beginning of its implementation. Under the deal, Iran undertakes to curb its nuclear activities and place them under total control of the International Atomic Energy Agency (IAEA) in exchange of abandonment of the sanctions imposed previously by the United Nations Security Council, the European Union and the United States over its nuclear program.", -146,2017/2/7,http://tass.com/sport/929520,"Three Russian cities able to bid for hosting 2028 Olympic Games ""?Russia's Olympic chief",The president of the Russian Olympic Committee is confident that Russia can host major sports competitions at the highest possible level,"SOCHI, February 7. /TASS/. Russian cities of Kazan, Sochi and St. Petersburg are ready for submitting bids to host Olympic Games, Alexander Zhukov, the president of the Russian Olympic Committee (ROC), said on Tuesday. Russian Deputy Prime Minister Dmitry Kozak said earlier in the day that the government was ready to provide support in case residents of the country's second-largest city of St. Petersburg would grant approval for their city to bid for hosting the 2028 Summer Olympics. ""There are several cities across Russia ready for hosting the Summer Olympics and they are Kazan, Sochi and St. Petersburg,"" Zhukov told journalists. ""These cities are capable of submitting bids."" ""We have a good experience of hosting the Games in Sochi,"" the ROC president said. ""I am positive that Russia is able to host-major sports competitions at the highest possible level."" In February and March of 2014, the Russian resort city of Sochi hosted the Winter Olympic and Paralympic Games, which, according to international sports officials, athletes and visitors, were organized at the highest level possible and provided up-to-date infrastructure at all levels.", -147,2017/2/7,http://tass.com/world/929532,Merkel says new Normandy format steps agreed with Putin on Ukraine,,"WARSAW, February 7. /TASS/. German Chancellor Angela Merkel and Russian President Vladimir Putin have agreed during their phone talk on Tuesday new Normandy format steps on settling the Ukrainian crisis, Germany's leader said. ""I have again talked to President Vladimir Putin today because we'r concerned over the situation in east Ukraine,"" the German chancellor said at a press conference in Warsaw after talks with Polish Prime Minister Beata Szydlo. ""We have agreed on further steps that can be taken within the Normandy format,"" she added.", -148,2017/2/7,http://tass.com/politics/929533,Putin signs law decriminalizing domestic violence,"The law declares domestic violence an administrative, rather than criminal, offence","MOSCOW, February 7. /TASS/. Russian President Vladimir Putin has signed a law decriminalizing domestic violence. The law has been published on Russia's official website containing legal information. The law declares domestic violence an administrative, rather than criminal, offence, provided it is a first-time transgression.- The law amends Article 116 of the Russian Criminal Code by excluding physical assaults on relatives from criminal offences while a person who commits repeated assaults will face criminal charges. In June 2016, first-time battery was declared an administrative offence, however, it was announced that if those committing battery were motivated by hooliganism, political, ethnic and ideological enmity, or were assaulting their relatives, would face criminal charges. The decision whipped up turmoil in society leading to protests against first-time domestic battery being declared a criminal offence. According to Russian MP Yelena Mizulina, ""there are 59 articles stipulating criminal responsibility for violence"" so there is no need to amount domestic battery to physical assaults committed out of hooliganism or any kind of enmity. ""We mean physical assaults that do not require a medical report as they do not result in injuries, these are family disputes with minor consequences,"" she elaborated. The administrative offence for first-time battery envisages an arrest for ten to fifteen days, a fine of 5,000 to 30,000 rubles (roughly $85 - 500) or compulsory community service for 60-120 hours. Meanwhile, those charged with repeated assaults will face criminal charges under Article 116 of the Russian Criminal Code which stipulates a fine of up to 40,000 rubles (roughly $670), compulsory community service for up to six months or an arrest for up to three months. -", -149,2017/2/7,http://tass.com/economy/929522,Brent oil price drops below $55 per barrel,,"MOSCOW, February 7. /TASS/. Brent oil futures with delivery in April 2017 declined 1.92% on the London's ICE to $54.71 per barrel, according to trading data released on Tuesday. Brent oil prices were below $55 per barrel for the last time on January 27, 2017. Meanwhile, the dollar adds 0.50 to 59.4 rubles on the Moscow Exchange. The euro is up 0.08 to 63.43 rubles. Urals-Primorsk oil futures with performance in March 2017 declined 2.21% on St. Petersburg's SPIMEX to $51.82 per barrel.", -150,2017/2/7,http://tass.com/defense/929518,Russian Baltic Fleet's S-400 missile system crews repel air strike in drills,"During the drills, the combat crews destroyed over 30 notional air targets","KALININGRAD, February 7. /TASS/. The combat crews of S-400 Triumf antiaircraft missile systems of the Baltic Fleet's air defense large unit repelled a notional enemy's massive missile and air strike in drills, Fleet spokesman Roman Martov told TASS on Tuesday. ""Under the drills""?plan, the fleet's radar reconnaissance has practiced detecting a notional enemy's air attack in the designated area of responsibility and aiming the S-400 Triumf antiaircraft missile system to destroy the targets detected. The combat crews of the Pantsyr-S1 antiaircraft missile/gun system provided cover for the S-400 complexes,"" Martov said. During the drills, the combat crews destroyed over 30 notional air targets. After repelling the attacks, the missile systems made a march to a new positioning area under the cover of Pantsyr-S1 complexes, the Fleet's spokesman said. Modern weaponry of Russia's armed forces ", -151,2017/2/7,http://tass.com/economy/929528,Putin signs law on ratification of Turkish Stream agreement,The Turkish Stream project envisages the construction of a natural gas pipeline via the Black Sea to the European part of Turkey,"MOSCOW, February 7. /TASS/. Russian President Vladimir Putin signed the law on ratification of the agreement with Turkey on the Turkish Stream gas pipeline project. The document was posted on the official Internet portal of legal information. The Turkish Stream project envisages the construction of a natural gas pipeline via the Black Sea to the European part of Turkey to be further extended to the border with Greece. The seabed section is about 910 kilometers and the mainland section through Turkey is 180 kilometers. Previously the project was estimated at 11.4 bln euro. It is supposed that gas supplies via the first line will be totally aimed for the needs of the growing Turkish market.", -152,2017/2/7,http://tass.com/politics/929521,Russia expects Trump administration to achieve greater results in war on terror,"Russia's top diplomat also said that Trump's commitment to come to grips with the core of the Ukrainian problems is seen as a ""qualitative change"" as compared with the position of his predecessor","MOSCOW, February 7. /TASS/. Moscow is confident that the results of the war on terror under the administration of US President Donald Trump will be more significant than under Barack Obama, Russian Foreign Minister Sergey Lavrov told TASS on Tuesday. ""We have always said at all the stages, including during last year's marathon between me and [former US Secretary of State] John Kerry, between our militaries, which finally ended in the approval of a very specific document on coordination but which was rejected by the US administration, that apart from the procedures of avoiding unforeseen incidents, we should establish real coordination for agreeing targets and delivering strikes against terrorists""?positions,"" the foreign minister said. As the Russian foreign minister said, the agreements with the Obama administration on this score had not been fulfilled. At the same time, the Trump administration ""took a specific, even if a one-off action already in the first days of its work in the White House [the provision of terrorists""?coordinates in the province of Aleppo on January 22] in the struggle against the Islamic State terrorist organization [outlawed in Russia],"" Russia's top diplomat said. ""I believe that this characterizes one and the other administration,"" the Russian foreign minister said. ""To my mind, the incumbent US administration is far less ideologized and far more focused on the specific result,"" Russia's top diplomat said. ""I'm confident that with this approach the result will be more significant and weightier,"" Lavrov said. Lavrov also said that Trump's commitment to come to grips with the core of the Ukrainian problems is seen as a ""qualitative change"" as compared with the position of his predecessor. ""You know what kind of position Donald Trump has taken: he said he wants to come to grips with problems in Ukraine to be able to see how the parties are behaving. So, I think it is a big qualitative change as compared with the Obama administration which sought to demand everything from us and exculpate [Ukrainian President Pyotr] Poroshenko,"" he said.", -153,2017/2/7,http://tass.com/world/929499,"Jordan's participation in Astana meetings will consolidate Syria ceasefire ""?expert","Jordan will become the guarantor of security on the southern border and this will put an end to the penetration of armed gangs through it, an Arab expert Nidal Sabi said","BEIRUT, February 7. /TASS/. Jordan's decision to join the Syria ceasefire monitoring group set up in Kazakhstan's Astana will contribute to ending the crisis, an Arab expert Nidal Sabi told TASS on Tuesday. ""Jordan's participation in the work of a joint operative group will allow expanding the ceasefire on the frontline to the south of Damascus,"" Sabi said. ""Like Turkey in northern Syria, Jordan will become the guarantor of security on the southern border and this will put an end to the penetration of armed gangs through it."" Besides, Jordan is also mobilizing moderate armed opposition towards forcing terrorists of the Islamic State and Jabhat al-Nusra groups (outlawed in Russia) out of the provinces of Daraa and Quneitra, the expert said. ""It is very important that after Jordan the work of the joint operative group is joined by the representatives of Saudi Arabia and Qatar, the major sponsors of the armed opposition,"" he stressed. The first session of a joint task force on monitoring ceasefire in Syria, comprising representatives of Russia, Turkey, Iran, and also the United Nations and Jordan, was held in Kazakhstan's Astana on February 6. The task force was set up after the January 23-24 conference on the Syrian settlement in Astana. Jordan's representatives said in Astana that opposition groups in Syria's southern provinces are ready to join cessation of hostilities and conduct combat actions against the Islamic State and Jabhat al-Nusra. Since 2013, Sabi has been an active participant of the Syrian peace initiative on establishing dialogue between the government and the opposition. He said progress reached in Astana creates necessary conditions now for a successful intra-Syrian dialogue in Geneva due on February 20 under the auspices of UN Special Envoy for Syria Staffan de Mistura. ""The Astana meeting was the first conference over the past six years that brought practical results,"" Sabi said. ""All the sides should think about the importance of continuing the work in this direction of settling the Syrian crisis.""", -154,2017/2/7,http://tass.com/politics/929509,Russia's Investigative Committee starts criminal proceedings over Donbass bombardments,On February 4-6 Ukrainian troops and national guardsmen carried out multiple artillery bombardments of the Donetsk Region,"MOSCOW, February 7. /TASS/. Russia's Investigative Committee has launched a criminal case over the use of prohibited means and methods of war in connection with multiple bombardments of the Donetsk Region by Kiev's forces and the National Guard, the IC's acting spokeswoman Svetlana Petrenko said on Tuesday. ""On February 4-6 Ukrainian troops and national guardsmen carried out multiple artillery bombardments of the Donetsk Region. Dozens of apartment buildings and administrative offices, as well as power supply lines and railway rolling stock were damaged,"" she said. ""The IC's department for the investigation of crimes involving the use of outlawed means and methods of warfare has opened a criminal case under part one of article 356 of the Criminal Code (The use of outlawed means and methods of war). In violation of the Minsk Accords and the related ceasefire obligations, Petrenko said, the authorities in Kiev keep building up their military presence along the engagement line by bringing there reinforcements, including units of the 79th separate airborne assault brigade, the Donbass battalions and the Azov regiment. ""Few have doubts about the aims and results of such a military build-up. Since May 2014 the Investigative Committee has more than once reported progress in investigating grave and extremely grave crimes committed by Ukraine's top political and military leadership in the territories of the Donetsk and Lugansk regions,"" Petrenko said. ""For the past three years civilians in these areas have been subjected to bombardments. Civilians are in the line of fire. Children are being killed and schools, hospitals and other civilian facilities ruined."" Russian investigators have interpreted these actions as particularly grave crimes, as genocide, the use of outlawed means and methods of warfare, extremism, participation of mercenaries in an armed conflict or combat operations and kidnappings.", -155,2017/2/7,http://tass.com/defense/929501,Rosatom to create ammunition for Armata tanks,"Rosatom had to be commissioned to this part of work as manufacturing ammunition implies ""certain specifics""","MOSCOW, February 7. /TASS/. Russia's nuclear power corporation Rosatom was commissioned to create ammunition for Russia's new heavy tracked platform-based tank Armata, the CEO of the tank's designer and manufacturer Uralvagonzavod, Oleg Siyenko, has told TASS. ""We are in the process of test runs in the field and firing practice. We have done a great deal. Currently the focus is on firing practice and it depends on when we have the ammunition from our Rosatom subcontractors,"" Siyenko said. He explained that the Rosatom had to be commissioned to this part of work because manufacturing ammunition implies certain specifics. ""It's related with the caps. Rosatom said it could cope with that program for us. We sincerely help them,"" he said. The requirements to be met during the testing keep growing. ""It can go on and on like this without an end. We would like to deliver our products to the armed forces as soon as possible,"" Siyenko said. ""We hope that the army will start operating the new tanks next year at the latest, if not this year."" In the middle of last year Uralvagonzavod deputy CEO Vyacheslav Khalitov said the Armata tanks will begin to be batch-produced in 2018. The world's most legendary tanks ", -156,2017/2/7,http://tass.com/world/929504,Afghanistan expects Russian oil supplies will grow,Russia is viewing an opportunity to supply 1-1.5 mln tonnes of oil products annually to Afghanistan,"MOSCOW, February 7. /TASS/. Afghanistan expects oil import from Russia will grow, Foreign Minister Salahuddin Rabbani said on Tuesday after talks with his Russian counterpart Sergey Lavrov. ""We discussed economic cooperation and trade relations. We focused on opportunities for Russian investments in Afghanistan,"" the minister said. ""In particular, we are interested in increasing oil import from Russia,"" Rabbani said. Russia is viewing an opportunity to supply 1-1.5 mln tonnes of oil products annually to Afghanistan, Deputy Energy Minister Yuri Sentyurin said last year.", -157,2017/2/7,http://tass.com/politics/929495,Russia's envoy: Kiev continues to move heavy arms to disengagement line in Donbass,"Kiev is ignoring Contact Group decisions on heavy weapons withdrawal, Russian presidential envoy to Minsk talks Boris Gryzlov said","MOSCOW, February 7. /TASS/. Ukrainian forces keep moving heavy weapons and ammunition towards the line of disengagement in Donbass, Russian presidential envoy to Minsk talks on a settlement in the east of Ukraine, Boris Gryzlov, has said. ""From OSCE SMM reports and news from territories along the line of disengagement in Donbass we know that heavy weapons and ammunition continue to be massed up,"" he said. ""I would like to once again remind Ukraine's leaders of the statement passed by the Contact Group on February 1, which calls on the parties to pull weapons falling under the Minsk agreements from the contact line to storage places by February 5,"" Gryzlov said. ""This major provision of the statement has not yet been implemented by the Ukrainian armed forces,"" he stressed. Of particular worry, in his words, is mortar shelling of the Mayorsk checkpoint by Ukrainian troops in the evening on February 6. ""Luckily, no one was hurt. The incident only heightens our concern over security of people crossing the engagement line,"" he added. The situation along the line of contact in Donbass has deteriorated dramatically over the past few days. There are casualties among the civilian population due to the incessant shelling by the Ukrainian armed forces, many dwelling houses and infrastructure facilities have been damaged. Thus, the Mayorsk checkpoint near Gorlovka came under mortar shelling by Ukrainian troops on Monday. In all, the self-proclaimed Donetsk People's Republic (DPR) reported more than 600 episodes of shelling by Ukrainian troops in the past day. On February 1, the Contact Group on the settlement in eastern Ukraine demanded at a meeting in Minsk an end to hostilities in Donbass and withdrawal of all weapons and equipment along the entire contact line to storage sites by February 5. However, according to the DPR command, Kiev has been pulling more weapons to the contact line instead of withdrawing them.", -158,2017/2/7,http://tass.com/economy/929491,Georgian diplomat says Tbilisi ready to welcome Moscow's steps to ease visa restrictions,"On December 23, 2016, Russian President Vladimir Putin said that Moscow could grant visa waiver for Georgia","PRAGUE, February 7. /TASS/. Georgia is ready to welcome Russia's steps aimed at easing visa restrictions or even waiving visas, Georgia's Special Representative for Relations with Russia, Zurab Abashidze told reporters in Czech Republic's capital of Prague on Tuesday. ""If Russia takes further steps to ease visa restrictions or even waive visas for Georgia's citizens, we will welcome it, but we understand that it's for the Russian authorities to decide,"" Abashidze added. He pointed out that in March 2012, Georgia had unilaterally waived visas for Russian nationals, while in early 2016, Russia had eased visa restrictions for Georgian citizens. On Tuesday, in Prague, Russian Deputy Foreign Minister Georgy Karasin said that it was too early to speak about waiving visas for Georgia. ""Visas should not be expected to be waived soon, but we should work in this direction,"" the Russian diplomat said following his meeting with Abashidze. ""We are not against visa-free travel but we don""t have diplomatic relations (with Georgia)."" ""Competent agencies should thoroughly discuss all the measures related to the two countries""?security,"" Karasin added. On December 23, 2016, during his annual news conference, Russian President Vladimir Putin said that Moscow could grant visa waiver for Georgia. ""I don""t rule out that visas for Georgian citizens could be waived. I think such decision would be reasonable partly because we see that Georgia's authorities have been sending some positive signals,"" the Russian president added. ""It is very important that secret services and law enforcement agencies establish normal contacts between them in order to cooperate in combating terrorism, so we need to be sure that visa waiver will not damage our security,"" Putin said. ""I think it is possible."" Russia introduced visas for Georgia in 2000, later Georgia took a similar decision. In 2004, Georgia unilaterally eased visa restrictions for Russian citizens who received an opportunity to obtain one-to three-month visas upon their arrival in the country. In 2011, Georgia granted visa-free entry for a period of up to 90 days for Russian citizens residing in North Caucasus republics and entering the country via the Kazbegi checkpoint. In March 2012, Georgia waived visas for Russian nationals.", -159,2017/2/7,http://tass.com/sport/929481,Russia's delegation for 2018 Winter Olympics to include over 400 athletes,"The next Winter Olympics will take place in South Korea's PyeongChang on February 9-25, 2018","MOSCOW, February 7. /TASS/. Initial estimations suggest that Russia's delegation to the 2018 Winter Olympic Games in South Korea's PyeongChang will include over 400 athletes, training staff and specialists, a Russian Olympic official told TASS on Tuesday. ""We have made some calculations jointly with the Organizing Committee of the Games regarding the representation of our (Russian) delegation,"" Igor Kazikov, the head of a department with the Russian Olympic Committee (ROC), said in an interview with TASS. ""Our delegation will be made up of over 400 people if we count the support personnel,"" Kazikov, who was also a deputy head of the Russian Olympic team's delegation at the 2012 Games in London, added. The next Winter Olympics, which are XXIII Winter Olympic Games, will take place in South Korea's PyeongChang on February 9-25, 2018. Russia's delegation at the previous Winter Olympic Games, held in the Black Sea resort city of Sochi in 2014, enlisted a total of 225 athletes.", -160,2017/2/7,http://tass.com/economy/929476,Russian regional authorities suggests using local ATVs in Arctic development,Russia's Transbaikalia authorities suggests using all-terrain vehicles for the development of the Arctic,"CHITA, February 7. /TASS/. Transbaikalia's authorities suggested using all-terrain vehicles (ATV), produced at Chita Global Terranica, in development of the Arctic, the governor's press service said on Tuesday. ""Our local ministry of economic development considers suggesting use of ATVs in development of the Russian Arctic zone,"" the press service quoted the region's Deputy Prime Minister Sergei Novichenko. ""The project to produce ATVs is interesting and unique for Transbaikalia, and we are pleased to say it is based on innovative technologies."" ""ATV's parts are made in Russia, and some of them are made at the plant in Chita,"" he said, adding the ATVs made by Global Terranica are already on the list of the Siberian Federal District's products, necessary for the Arctic. The Global Terranica Company in production of all-terrain vehicles uses exclusively Russian design. The company has several patents. Transbaikalia's press service told TASS, Global Terranica works at the industrial facility of the Chita Machinery Plant.", -161,2017/2/7,http://tass.com/world/929472,Syrian army gaining ground in effort to re-take Palmyra,"The commanding heights along the road have been put under control, according to the Russian General Staff","MOSCOW, February 7. /TASS/. The Syrian army has regained the communities of Tias and El Beida and made a larger part of the way towards Palmyra, the chief of the Russian General Staff's main operations directorate, Lieutenant-General Sergey Rudskoy told a news briefing on Tuesday. ""On the way to Palmyra Russian air group-supported Syrian army has considerably expanded the area under its control near Tyas. A total of 783 square kilometers has been retaken from the terrorists. The Syrian army has moved 25 kilometers eastwards to have taken El-Beida. ""The commanding heights along the road have been put under control. A greater part of the way towards Palmyra has been covered,"" Rudskoy said.", -162,2017/2/7,http://tass.com/defense/929471,"Syrian troops destroy over 4,500 terrorist facilities with Russian air task force's help","Russia's Tu-22M3 long-range bombers have carried out 36 combat flights to Syria's city of Deir ez-Zor since the beginning of the year, destroying 34 terrorist facilities","MOSCOW, February 7. /TASS/. The Syrian government forces have destroyed 4,608 facilities of the Islamic State terrorist organization (outlawed in Russia) with the assistance of Russia's air task force since the beginning of this year, Chief of the Russian General Staff's Main Operations Department Lieutenant-General Sergey-Rudskoi said on Tuesday. ""The government troops supported by the Russian air task force are currently conducting an offensive against the terrorist grouping of the ISIL [the former name of the Islamic State]. A total of 4,608 terrorist facilities have been destroyed since January 1,"" the general said. Over the past month, the Syrian government troops have driven terrorists out of 35 communities in the north of the province of Aleppo, he said. ""Control of a territory of over 300 square kilometers has been established. The government troops are currently 1.5 kilometers south of the town of al-Bab, the general said. Joint actions by Russian Aerospace Force and Turkey's Air Force are making a considerable contribution to destroying the IS grouping, he noted. ""For this purpose, they are maintaining constant interaction and exchanging information, as well as doing joint planning and delivering strikes. The Russian warplanes have destroyed 892 terrorist objectives near al-Bab,"" the Russian general said. According to Rudskoi, Russia's Tu-22M3 long-range bombers have carried out 36 combat flights to Syria's city of Deir ez-Zor since the beginning of the year, destroying 34 facilities of the Islamic State. ""The airstrikes of Russia's long-range bombers in the city of Deir ez-Zor area have played an important role in eroding the combat capabilities and morale of the ISIL militants. The Tu-22M3 bombers have carried out 36 combat flights destroying as many as 34 terrorist facilities. Russia's Aerospace Force will continue its activities aimed at eliminating terrorist facilities on Syria's territory,"" the general added. On January 18, Russia's General Staff said that the Islamic State militants ""continue to attack the positions of the Syrian troops. In case the city is taken by terrorists, the residents will face a true genocide. The population of Deir ez-Zor may be exterminated."" After that, Russia has more than once used its long-range bombers to deliver airstrikes in the Deir ez-Zor province. ", -163,2017/2/7,http://tass.com/economy/929469,Russia may sell SSJ-100 aircraft to Armenia in 2018-2019,Russia and Armenia are in talks on establishing a new airline in Armenia,"MOSCOW, February 7, /TASS/. Russia may supply two-four Sukhoi Super Jet-100 aircraft to Armenia in 2018-2019, Industry and Trade Minister Denis Manturov said on the sidelines of the meeting of the United Russia faction on Tuesday. ""I think in total it concerns supplying not more than 10 aircraft in five years, but we will start with two-four aircraft,"" the minister said. ""If we form a sound program this year and find ways of its implementation, including the sources (of financing - TASS) , than, taking into account the production cycle, this (the delivery of aircraft - TASS) will be in 2018 - early 2019 in the best case. But I think it would be more realistic in 2019 (to arrange deliveries of aircraft - TASS),"" Manturov added. In January, it was reported that Russia and Armenia are in talks on establishing a new airline in Armenia. It was planned that SSJ-100 aircraft would form the core of the fleet of the new company. Currently, Armenia has only one airline that was created in 2016 and began to carry out flights lasts summer. The airline's main airport is Zvartnots (Yerevan). -", -164,2017/2/7,http://tass.com/world/929462,Trump slams 'haters' for accusing him of sympathizing with Russia,"After being elected the US resident, Trump has been repeatedly slamming the US media","WASHINGTON, February 7. /TASS/. US President Donald Trump has once again stressed that all the accusations of him sympathizing with Russia are groundless. I don't know Putin, have no deals in Russia, and the haters are going crazy - yet Obama can make a deal with Iran, #1 in terror, no problem! After being elected the US resident, Trump has been repeatedly slamming the US media.- Donald Trump's path to presidency ", -165,2017/2/7,http://tass.com/politics/929458,Defense Ministry refutes reports about Russia's airstrikes on Idlib,"""All the reports on these strikes are blatant lie"", the ministry said","MOSCOW, February 7. /TASS/. Russia's Aerospace Forces have not delivered strikes on Syria's Idlib, Defense Ministry's official spokesman Igor Konashenkov said on Tuesday. ""The aircraft of Russia's Aerospace Forces did not deliver any air strikes on Idlib yesterday, this week or even since early 2017. All the reports on these strikes are blatant lie,"" Konashenkov stressed. ""Such information attacks are usually prepared by the same mass media, by one pattern, on a regular basis and always citing anonymous ""�civil defense""?activists,"" the spokesman said. The Reuters news agency reported earlier that at least 15 people were killed in eight air strikes on Syria's Idlib carried out by Russia's Aerospace Forces on Tuesday. Experts almost completed the effort on designating areas in Syria controlled by the Islamic State and Jabhat al-Nusra at the meeting on Syria in Kazakhstan's Astana, Sergey Rudskoy, the chief of the main operations directorate of the Russian General Staff, also said. ""At the meeting, the effort on fixing the areas controlled by the IS and Jabhat al-Nusra was almost completed. There are minor differences that will be agreed soon,"" Rudskoy said. This allows separating the opposition from terrorist groups, he added.- The first session of a joint task force on monitoring ceasefire in Syria, comprising representatives of Russia, Turkey, Iran, and also the United Nations and Jordan, was held in Kazakhstan's Astana on February 6. The task force was set up after the January 23-24 conference on the Syrian settlement in Astana. The next meeting of the group is scheduled for February 15-16.", -166,2017/2/7,http://tass.com/sport/929455,Swiss-based lawyers to defend interests of Russia's banned skiers in CAS,"On December 23, the FIS slapped provisional suspensions on six Russian cross-country skiers","MOSCOW, February 7. /TASS/. A Swiss-based law firm will be representing interests of Russian cross-country skiers, who intend to file appeals against their provisional suspensions with the Court of Arbitration for Sports (CAS), Elena Vyalbe, the president of the Russian Cross Country Ski Federation, told TASS on Tuesday. Russian cross country skier Maxim Vylegzhanintold TASS earlier in the day that he and his teammates Alexey Petukhov, Julia Ivanova and Evgenia Shapovalova intended to appeal their provisional suspension with the Court of Arbitration for Sport (CAS) in Lausanne. The International Ski Federation (FIS) ruled on Tuesday to keep in force earlier imposed provisional suspensions in regard to the four athletes at the issue. ""The Russian Cross Country Ski Federation made a decision to hire lawyers from a Swiss-based firm to defend interests of the Russian athletes,""?Vyalbe said in an interview with TASS, but did not specify the name of the law firm in Switzerland. The FIS announced earlier in the day in its official statement that ""the FIS Doping Panel, after having heard Julia Ivanova, Evgenia Shapovalova, Alexey Petukhov and Maxim Vylegzhanin, and the FIS, has decided today (06.02.2017) by majority not to reverse its initial decision but to uphold the provisional suspensions of the four athletes until further notice. ""A similar decision was handed down for the teammates Alexander Legkov and Evgeniy Belov on 25th January 2017,"" the statement added. On December 23, the FIS slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules at the 2014 Winter Olympic Games in Sochi. -", -167,2017/2/7,http://tass.com/economy/929449,Russia's Industry Ministry ready to sign special investment contract with Mercedes,"The contract with Mercedes has not yet been signed but all the decisions have been made, Russian Minister of Industry Denis Manturov said","MOSCOW, February 7. /TASS/. Russian Ministry of Industry is ready to sign a special investment contract with Mercedes focused on production of vehicles in Russia and is waiting for an initiative from the producer, minister Denis Manturov said on Tuesday. ""The contract [with Mercedes - TASS] has not yet been signed but all the decisions were made. We assume colleagues themselves should be interested in this decision in the first instance. We assume they will put forward a signing initiative shortly and are ready for it,"" Manturov said. The Russian automobile industry will embark on a recovering trend, considering the support of key branches of industry, the minister said. In particular, the Ministry of Industry expects sales and production of cars in Russia will start growing gradually. Construction of Mercedes-Benz automobile plant in Moscow Region is expected to start in 2018, Manturov said earlier.", -168,2017/2/7,http://tass.com/sport/929445,IBF set to exclude Russian boxer Povetkin from its rating lists over doping abuse,"Last Sunday, the World Boxing Federation also announced its decision to exclude Povetkin from its rating lists citing his violations of anti-doping rules","MOSCOW, February 7. /TASS/. Russian heavyweight boxer Alexander Povetkin will be excluded from the IBF (International Boxing Federation) ratings after his doping sample tested positive for a banned performance enhancing drug, IBF President Daryl Peoples told TASS on Tuesday. Last Sunday, the World Boxing Federation (WBC) also announced its decision to exclude Povetkin from its rating lists citing his violations of anti-doping rules. Povetkin's doping sample, collected on December 6 ahead of his title WBC title bout with Canadian heavyweight boxer Bermane Stiverne, tested positive for doping. The bout was scheduled to take place in Russia's Yekaterinburg on December 17, but was not approved by the WBC. The Russian 37-year-old boxer eventually held a non-title fight with French heavyweight boxer Johann Duhaupas winning it with the 6th round KO. Povetkin's doping samples collected on December 13 and 15 tested negative. However, it was announced last week that Povetkin's sample B tested positive for the banned performance enhancing drug ostarine and a relevant investigation was launched.", -169,2017/2/7,http://tass.com/economy/929444,"China is among Russia's top priority partners in media sphere ""?ministry",Russia's deputy telecom minister says the China market is interesting,"MOSCOW, February 7. /TASS/. China is among top priority partners of Russia from the standpoint of business interests in media sphere, Deputy Telecom Minister Alexei Volin said on Tuesday at CSTB Forum. ""We definitely understand China is among the most important partners for us in terms of our business interests in the media sphere,"" Volin said. ""We are fully aware the Ukrainian market has been closed for us and we merely have to look for additional ways of content selling at present, and the state of affairs with China is very good,"" the official said. ""We believe movies, serials, distribution, joint production and software are of higher priority and sufficiently beneficial for the Russian business,"" Volin said. The China market is ""good and interesting,"" he added. At the same time, China ""is a challenging partner requiring high patience and systemic work,"" the deputy minister said. ""Our practice shows it takes somewhat up to two years from first contacts to signature of agreements and contracts,"" Volin added.", -170,2017/2/7,http://tass.com/politics/929431,Russian diplomat believes sanctions will not force North Korea to give up nuclear program,Russia's ambassador to South Korea says development of North Korea's nuclear program leads to irreparable consequences,"MOSCOW, February 7. /TASS/. Sanctions will not force North Korea to abandon its missile and nuclear program and the solution to this issue may be only achieved through talks, Russia's Ambassador to South Korea Alexander Timonin said in an interview with TASS. ""The Russian side does not share the extremely tough approach of the US and its regional allies towards North Korea,"" the ambassador said. ""It is clear for us that it is wrong to expect that the sanctions and pressure will sooner or later lead to North Korea's breakdown or force the country's leadership to make serious concessions on the principal issues."" ""We believe that the only solution to the nuclear and other issues of the Korean Peninsula is to continue political and diplomatic efforts with the goal of returning North Korea to the six-party talks,"" he said. ""In a broader international context, the denuclearization of the Korean Peninsula should be carried out in the framework of the overall military and political detente in Northeast Asia, reducing the level of military confrontation and forming the basis for mutual confidence between the regional states."" ""Russia, just as South Korea, does not accept North Korea's self-proclaimed nuclear status,"" he said. ""We are confident that the policy aimed at boosting the nuclear missile capacity is not conducive to ensuring Pyongyang's security and can lead to further aggravation of the situation on the Korean Peninsula and irreparable consequences for the situation in the region as a whole."" ""Relying on these considerations, the Russian side supported UN Security Council Resolutions 2270 and 2321 passed in 2016 over nuclear missile tests in the North and has consistently complied with the provisions of these documents,"" the diplomat said. Timonin noted that Russia does not share the excessively tough approach towards North Korea by the US and its regional allies. ""For us it is obvious that hopes that sanctions and pressure will sooner or later trigger North Korea's collapse or force top officials in that country to make serious concessions on key issues are futile,"" he went on to say. ""We adhere to an opinion that the only way of tackling the nuclear and other issues of the Korean Peninsula is the continuation of political and diplomatic efforts with a view to returning North Korea to the six-party negotiating table."" The ambassador added that the final denuclearization of the Korean Peninsula ""must be carried out within the framework of the overall easing of tensions in the military and political sphere in Northeast Asia, reducing the level of military confrontation and laying the foundation for mutual trust between the countries in the region.""", -171,2017/2/7,http://tass.com/politics/929428,"THAAD in South Korea poses direct threat to Russian security, ambassador says","Russia's ambassador to Seoul believes ""the deployment of THAAD batteries in South Korea goes beyond the bounds of tasks of deterring a ""�North Korean""?threat - real or imaginary""","MOSCOW, February 7. /TASS/. The deployment of the Terminal High Altitude Area Defense (THAAD) in South Korea continues Washington's policy of creating a missile defense segment in Northeast Asia and thereby poses a threat to Russia, Russia's ambassador to Seoul, Aleksandr Timonin, told TASS in an interview. ""The decision to deploy US THAAD missile systems in South Korean territory remains Russia's major concern,"" he said. ""We are being told these US missile systems are purely defensive and meant for warding off missile threats coming from North Korea."" Timonin said Russia had a wider vision of this issue. ""We regard this as further efforts by Washington to create a new regional segment of the United States""?global missile defense in Northeast Asia near the Russian border,"" he said. ""This is a direct threat to the security of our country, because the main aim of the US global missile defense is to minimize the effectiveness of Russia's missile potential."" Timonin said the Republic of Korea as a sovereign state was free to decide how to go about the business of ensuring its national security. ""Nevertheless, we believe that the deployment of THAAD batteries in South Korea obviously goes beyond the bounds of tasks of deterring a ""�North Korean""?threat - real or imaginary,"" he said. ""This step may upset the strategic balance and harm our systematic efforts for enhancing relations of mutual trust, partnership and cooperation in the region of Northeast Asia."" Timonin recalled that Russia urged ""collective search for a new, constructive strategy of exit from the critical situation in the Korean Peninsula and insisted on a peace and diplomatic settlement of the peninsula's nuclear problem."" This year's schedule of high-level contacts between Moscow and Seoul is under consideration, it very much depends on the current political situation in South Korea, Timonin said in an interview with TASS. While responding to a question when Russian Foreign Minister Sergey Lavrov could visit Seoul, he said that ""we are content with intensive high-level political contacts between our countries."" ""We hope that bilateral political dialogue will remain active this year,"" the Russian ambassador added. According to him, ""the schedule for contacts between the two foreign ministries in 2017 is currently under consideration. It will be agreed on depending on the political situation in South Korea."" The diplomat pointed out that in March 2016, Russian Deputy Prime Minister Arkady Dvorkovich had held talks with South Korea's Finance Minister Yoo Il-ho on the sidelines of the Boao Forum for Asia. In April 2016, Moscow hosted a meeting of the parliament speakers of Eurasian countries, arranged for the first time upon the initiative of Russia's State Duma (lower house of parliament) speaker and the speaker of South Korea's National Assembly. In May 2016, Chief of South Korea's Constitutional Court Park Han-Chul visited Russia to take part in the Fourth St. Petersburg International Legal Forum. ""The foreign ministers of Russia and South Korea met three times last year: on the sidelines of the Munich Security Conference in February, during a meeting of the Conference on Interaction and Confidence-Building Measures in Asia held in Beijing in April, and in June, when the South Korean top diplomat visited Russia,"" Timonin added. Implementation of large-scale investment projects in Siberia and the Far East with participation of Korean business will make bilateral economic ties more active, Timonin said. ""From our point of view, implementation of large-scale joint investment projects in regions of Siberia and the Far East and creation of new production facilities with proactive use of advantages for foreign business within the framework of advance development territories (ADT) and Vladivostok Free Port can promote expansion of bilateral economic ties,"" the ambassador said. Companies from South Korea-may take part in setup of new high-technology production facilities in Russia's Far East, Timonin said. ""More active efforts on creation of investment and finance platforms are undertaken for solution of this task,"" the ambassador said. A range of important agreements was already reached at the regional level in September 2016 on sidelines of the Eastern Economic Forum, he added.", -172,2017/2/7,http://tass.com/politics/929417,"Putin, Merkel call for immediate ceasefire in Ukraine ""?Kremlin",The leaders of Russia and Germany have agreed to build up diplomatic efforts for the purpose of assisting the peaceful settlement of the Ukrainian crisis,"MOSCOW, February 7. /TASS/. Russian President Vladimir Putin and German Chancellor Angela Merkel have spoken out in favor of restoring the ceasefire in Ukraine at an early date in a phone conversation. During today's phone talk, the leaders of Russia and Germany ""agreed to build up diplomatic efforts for the purpose of assisting the peaceful settlement of the Ukrainian crisis,"" the press office said. ""In particular, this envisages contacts in the immediate future between the foreign ministers and the aides of the Normandy format countries""?leaders and subsequently the continuation of the discussions at the highest level,"" the Kremlin press office said. ""The Russian president and German chancellor have spoken out in favor of speedy restoration of a ceasefire and supported in this context the efforts of the OSCE Special Monitoring Mission,"" the Kremlin press service reported. Both leaders discussed the situation in southeast Ukraine that had escalated dramatically in the past few days over the Ukrainian side's provocative actions, the Kremlin press office said. ""Serious concern was expressed over the escalation of the armed standoff, as a result of which there are human victims and the civil infrastructure and the housing stock in some communities in the Donbass region have been damaged considerably,"" the Kremlin press office said. As the Kremlin press office said in its statement, ""Putin drew Merkel's attention to the data of the OSCE Special Monitoring Mission, and also to pronouncements by Kiev's representatives evidencing the attempts by the Ukrainian army to change the situation at the engagement line in its favor in a military way."" ""What is clearly seen is the desire of the Ukrainian authorities to disrupt the implementation of the Minsk accords and also use the Normandy format to cover up its destructive steps,"" the Kremlin press office said.", -173,2017/2/7,http://tass.com/politics/929414,Kremlin ready to wait until 2023 for Fox News journalist apologies,"""This is an awkward situation for Fox News"", the Kremlin spokesman said","MOSCOW, February 7. /TASS/. The Kremlin believes the abusive remarks about Russian President Vladimir Putin by Fox News anchor, Bill O��Reilly , do this TV channel no credit. However, it has no intention of blowing the incident out of proportion, Russian Presidential Spokesman, Dmitry Peskov, told reporters on Tuesday. ""We do not feel like exaggerating it and have no intention of blowing it out of proportion. This is an awkward situation for Fox News rather than for us,"" the Kremlin spokesman said. When asked whether the Russian authorities""?attitude towards this TV network could change, Peskov emphasized that Kremlin is guided ""strictly by provisions of the media law, which is in effect in our country."" ""We have the same attitude towards both domestic - federal and regional - and international media,"" he said. ""Anyway, this is an insult. First, a media correspondent utters it. Then the media's editors prefer to keep quiet about it. Of course, this does little credit to this media outlet,"" Peskov added. The Kremlin spokesman noted that it is possible to wait for apologies from Bill O��Reilly in 2023 for his insulting remarks about the Russian leader. ""We have a different understanding of good manners and etiquette with this gentleman,"" he said commenting the journalist's statement that he may apologize for his words in 2023. ""We are very kind and very patient. We will make a note in the calendar for 2023 and return to him with this question."" According to earlier reports as Trump was interviewed on Fox News, the TV host in one of the questions about US-Russian relations called Putin a ""killer."" Trump replied, ""We're got a lot of killers. What, do you think our country's so innocent..? I say it's better to get along with Russia than not."" Russian Presidential Spokesman, Dmitry Peskov, said shortly after that the Kremlin considers a statement by the Fox News host insulting and impermissible and would prefer to ""receive apologies addressed to the Russian president from such a respectable television network."" O��Reilly later noted with sarcasm that he may be ready to offer apologies in 2023.", -174,2017/2/7,http://tass.com/world/929406,Lawyer claims US never formally requested to extradite Snowden,"Snowden, a civil employee of the NSA, disclosed electronic spying methods being used by US secret services, including the tapping of telephones of foreign leaders","MOSCOW, February 7. /TASS/. Russia has not received any requests from the United States yet for the extradition of former CIA employee Edward Snowden, his lawyer Anatoly Kucherena has told TASS. ""No charges have been brought against Snowden to this day. Russia has received no extradition requests,"" he said. Kucherena is certain that US President Donald Trump will make the correct decision regarding Snowden. ""We all hope that the United States""?new president will take a balanced approach to this matter and make the sole decision that is correct - to terminate criminal prosecution of Edward Snowden, a man who loves America and misses it."" ""The way I see it, he [Donald Trump - TASS]-would gain far more authority if he saw to it all insinuations about Edward Snowden were brought to an end,"" Kucherena stated, adding that throughout the Obama presidency the case remained invariably politicized. Snowden should decide himself whether he needs to get Russian citizenship, Kucherena stressed: ""Under the existing Russian legislation, if he wishes so, he can apply for getting the citizenship after the elapse of five years. So far, this term has not yet expired and it is premature to speak about this. This issue is within his competence and precisely he will decide on whether to extend his residence permit or raise the issue of obtaining the Russian citizenship,"" the lawyer said.- Snowden, a civil employee of the National Security Agency, in 2013 disclosed electronic spying methods being used by US secret services, including the tapping of telephones of foreign leaders. In his attempts to escape persecution by the US authorities Snowden asked more than 20 countries, including Russia, for political asylum. On August 1, 2014 he was granted a residence permit and has remained in Russian territory since. In the United States Snowden is charged under two articles of the spying law. Each of the charges is punishable with a maximum of ten years in prison. US Administration officials have said more than once they regarded Snowden as a traitor and had no intention of forgiving him, because he caused serious harm to national security.", -175,2017/2/7,http://tass.com/sport/929405,Four Russian cross country skiers set to appeal temporary suspension with CAS,The athletes will be seeking a prompt approach in regard to their appeals,"MOSCOW, February 7. /TASS/. Russian cross country skiers Maxim Vylegzhanin, Alexey Petukhov, Julia Ivanova and Evgenia Shapovalova are set to appeal their provisional suspension with the Court of Arbitration for Sport (CAS) in Lausanne, Vylegzhanin told TASS on Tuesday. The International Ski Federation (FIS) ruled earlier in the day to keep in force earlier imposed provisional suspensions in regard to the four athletes at the issue. ""We have been expecting this and will be preparing documentation to file appeals with the CAS,"" Vylegzhanin said in an interview with TASS. ""We will be definitely seeking a prompt approach in regard to our appeals."" The FIS announced earlier in the day in its official statement that ""The FIS Doping Panel, after having heard Julia Ivanova, Evgenia Shapovalova, Alexey Petukhov and Maxim Vylegzhanin, and the FIS, has decided today (06.02.2017) by majority not to reverse its initial decision but to uphold the provisional suspensions of the four athletes until further notice. ""A similar decision was handed down for the teammates Alexander Legkov and Evgeniy Belov on 25th January 2017,"" the statement added. On December 23, the FIS slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules at the 2014 Winter Olympic Games in Sochi. The athletes subjected to the provisional suspensions are four male skiers, namely Alexander Legkov, Maxim Vylegzhanin, Yevgeny Belov and Alexey Petukhov and two female skiers - Julia Ivanova and Evgenia Shapovalova. The decision was made in the wake of the infamous McLaren Report. According to Part Two of the report, delivered in early December in London by the WADA Independent Commission and its chairman, Canadian sports law professor Richard McLaren, more than 1,000 Russian athletes competing in summer, winter and Paralympic sports could have been involved in an alleged manipulation scheme to conceal positive doping tests. Part Two of McLaren's report claimed in particular that doping samples of 12 Russian medalists of 2014 Winter Games in Sochi had been tampered with. In addition, doping tests of two more Russian athletes, who won four gold medals of the 2014 Sochi Olympics, had been falsified as well. On January 25, the FIS Anti-Doping Panel ruled to keep in force the provisional suspensions of Legkov and Belov. Both athletes later filed their appeals with the Swiss-based Court of Arbitration for Sport disputing the FIS ruling.", -176,2017/2/7,http://tass.com/politics/929400,Lavrov hopes Russia-US contacts on Syria will remain intense under Trump,"Russian and US diplomats continue contacts on Syria in Switzerland's Geneva, according to the Russian foreign minister","MOSCOW, February 7. /TASS/. Russian Foreign Minister Sergey Lavrov is convinced that the contacts of Russian and US diplomats on Syria in Geneva will remain intense under the new US administration. ""As soon as the structures of the administration that will work in the Syrian direction are formed and the positions are filled, I'm convinced that (the intensity of contacts between diplomats) will be at least not less rare,"" Lavrov said. ""The contacts at the working level in Geneva continued,"" Lavrov said. ""Every week, the meetings of two groups - on ceasefire and humanitarian issues - are held in Geneva. The contacts as part of these mechanisms between the Russian and US diplomats continue,"" he said. ""Although the agreement did not enter into force due to the US refusal and the differences inside the White House, the contacts at the working level continued, including in Geneva,"" he said. ""Our contacts will resume already at the political level and I'm convinced of this as the Trump administration has called the Islamic State a key threat to be jointly countered,"" he said. Before each of these weekly meetings the Russian and US diplomats and the UN representatives hold meetings to coordinate their upcoming discussions, Lavrov said. -", -177,2017/2/7,http://tass.com/politics/929401,Kremlin says Aerospace Force's snap check continues existing combat readiness practice,The president and the defense minister have numerously said that this practice will be continued because it has proved to produce quite positive results,"MOSCOW, February 7. /TASS/. A snap combat readiness check of Russia's Aerospace Force announced on Tuesday continues the existing practice of testing Russian troops, Kremlin spokesman Dmitry Peskov said. ""This practice of sudden checks has continued for more than one year,"" the presidential spokesman said in reply to a question about why the Aerospace Force had been alerted in a snap check. As the presidential spokesman said, ""the president and the defense minister have numerously said that this practice will be continued because it has proved to produce quite positive results from the viewpoint of maintaining the proper level of the defense capabilities of our Armed Forces."" Russian Defense Minister Sergey Shoigu said on Tuesday the Aerospace Force had been alerted in a snap combat readiness check by order of Russia's supreme commander-in-chief. The practice of sudden combat readiness checks of the Russian Armed Forces was resumed in 2013.", -178,2017/2/7,http://tass.com/politics/929396,Kremlin says Russia views NATO expansion negatively,"Earlier, the media said that the Trump Administration was prepared to give its consent to Montenegro's accession to NATO","MOSCOW, February 7. /TASS/. Russia has a negative attitude towards the possibility of NATO's further eastward expansion, Russian presidential spokesman Dmitry Peskov told the media on Tuesday. ""In any case, even if one brushes aside media reports and statements, Russia's attitude to NATO's further expansion to the East is well known and this attitude is negative,"" Peskov said. He acknowledged that he would not like to make comments on media reports, ""the more so since we have heard Michael Flynn (US presidential national security adviser) make no statements on that score."" ""There have been no official statements,"" Peskov said. Earlier, the media said that the Trump Administration was prepared to give its consent to Montenegro's accession to NATO and that Flynn would advise the US president to support Montenegro's decision to join NATO.", -179,2017/2/7,http://tass.com/politics/929397,Russian diplomat says early to speak about introducing visa-free travel for Georgia,"""We are not against the visa-free regime, but we don""t have diplomatic relations,"" the diplomat stressed","PRAGUE, February 7. /TASS/. It is premature to speak about introducing a visa-free travel for Georgia, Russian Deputy Foreign Minister Grigory Karasin said on Tuesday. ""One should not expect lifting visa requirements but to work in this direction,"" said the diplomat, who is holding another meeting in Prague with the Georgian Prime Minister's Special Envoy for Relations with Russia Zurab Abashidze. ""We are not against the visa-free regime, but we don""t have diplomatic relations,"" he stressed. ""We need to calmly discuss all the measures concerning security of the two countries in the framework of the respective agencies,"" Karasin said. The diplomat also welcomed the decision of the European Parliament earlier this week to lift visa requirements for Georgia once a suspension mechanism allowing reintroducing visas with third countries enters into force. He voiced hope that this will help solve the issue on ""unblocking"" the citizens of Abkhazia and South Ossetia. The two breakaway republics were recognized by Russia as independent states in August 2008. The visa regime between Russia and Georgia was imposed in 2000. In 2004, Georgia unilaterally eased it for Russian nationals. In March 2012, Tbilisi cancelled the visa regime for all Russian citizens. In December 2015, Russia's Foreign Ministry said Moscow would ease the visa regime for Georgians from December 23, not ruling out that a mutual visa-free regime could be introduced in the future.", -180,2017/2/7,http://tass.com/economy/929395,Russia's dependence on imported oil and gas equipment drops to 53%,Industry and Trade Ministry expected to reduce dependence on import to 60% this year,"Russia's dependence on imported oil and gas equipment has dropped to 53% today, Industry and Trade Minister Denis Manturov said at a meeting of the United Russia faction. ""We expected to reduce dependence on import to 60% this year. In fact, we have already exceeded this level: the share of Russian equipment purchased by our companies is more than 53%,"" the minister said. According to him, in 2014, the Industry and Trade Ministry and Energy Ministry set up a special interdepartmental commission for this purpose and the results of its work are seen today. ", -181,2017/2/7,http://tass.com/world/929391,Egypt's Foreign Ministry officially calls Russian plane crash over Sinai act of terror,"Egypt previously did not reject the version of a terror attack on board the Russian plane that crashed on October 31, 2015","CAIRO, February 7. /TASS/. The Egyptian Foreign Ministry has officially described the crash of the Russian airliner over the Sinai Peninsula in October 2015 as a terrorist attack, Foreign Ministry spokesman, Ahmed Abu Zeid, said on Tuesday in response to a list of 78 terrorist attacks, which did not get sufficient media coverage, released by the White House. Commenting on critical remarks by US President, Donald Trump, who accused US media of covering up terrorist attacks in Europe and elsewhere by not reporting them, the Egyptian diplomat noted that 9 out of 78 attacks occurred in Egypt. ""Terrorist operations have killed dozens or even hundreds of people, including the crash of the Russian airliner in Sinai and the explosion of the al-Butrusia Coptic Church,"" he said. ""It is regrettable that the selectivity and bias criticized by Trump apply to the some Western media's approach towards covering terrorist attacks."" Egypt previously did not reject the version of a terror attack on board the Russian plane that crashed on October 31, 2015. However, Cairo has always pointed to the need to wait for the official results of the probe, which have not been made public to date. The Egyptian Foreign Ministry has repeatedly stressed that work at all stages of the investigation was conducted proceeding from the assumption that the air crash was a deliberate act. ""The White House's stance is in line with Egypt's repeated calls on the need for comprehensive, consistent and unselective counterterrorism strategy, including in its political, information and cultural aspects,"" the spokesman noted.", -182,2017/2/7,http://tass.com/science/929374,Scientists unlock secrets that could breach second law of thermodynamics,An international team of scientists under discovered that entropy can decrease in quantum systems,"MOSCOW, February 7. /TASS/ The law of non-decrease of entropy in closed systems, which is one of the formulations of the second law of thermodynamics, can be broken, said the press service of the Moscow Institute of Physics and Technology (MIPT). An international team of scientists under the guidance of Gordey Lesovik, Chief Researcher at MIPT's Laboratory of Quantum Theory of Information and the L. D. Landau Institute for Theoretical Physics of the Russian Academy of Sciences discovered that entropy can decrease in quantum systems. The results of the study have been published in the journal Scientific Reports from the Nature publishing group. ""We have discovered Maxwell's demon which can reduce the entropy in the system,"" Lesovik said. Maxwell's demon is a mythic creature invented by British physicist James Clerk Maxwell in the second half of the 19th century in order to explain the paradox of the second law of thermodynamics. The demon should increase the orderliness of a system which by itself cannot grow in the isolated system according to the laws of physics. In the 1870s, Ludwig Boltzmann formulated the principle of growth of entropy (disorder) in his H-theorem which postulated that the value of entropy in a closed system can only increase or remain constant. For a long time, this theorem could not be proven in the framework of traditional statistical physics without additional restrictions. After establishing quantum mechanics, scientists suggested that the H-theorem was rooted in the quantum world. In the quantum theory of information, the important results were obtained which describe conditions when the entropy of a system does not diminish. The group led by Lesovik first formulated the H-theorem in the language of quantum physics and for several years had tried to find proof of that theorem. As a result, the researchers uncovered conditions when the second law of thermodynamics can be locally breached. This can happen in quantum systems of relatively small but macroscopic size measuring a few centimeters or even meters. The notable difference between the classical and quantum approach is that in classical physics, the decrease of entropy is connected to the transmission of heat energy while in the quantum world, the reduction of entropy can take place without energy transfer but due to quantum entanglement. According to Lesovik, the researchers are planning to perform experiments in the near future to verify the effect. Such experiments will open the door to creating a new type of quantum coolers and power generators.- ", -183,2017/2/7,http://tass.com/pressreview/929349,Press review: Mass arrests in Turkey and wedge between Moscow and Tehran,Top stories in the Russian press on Tuesday,"- Russia and Iran have a common objective in Syria, and all assertions about the possibility of driving a wedge between the two countries are speculations, Vedomosti quotes former Russian Ambassador to Saudi Arabia, Andrei Baklanov, as saying. ""We have substantially coinciding stances with Tehran. Bashar al-Assad's regime is legitimate and should be preserved, while Syria's future must be determined by the people of the country. As for Iran, Trump currently has other priorities or just does not have enough hard facts,"" the diplomat stressed. The Wall Street Journal earlier reported, citing high-ranking sources in the White House, Europe and some Arab countries, that the Trump administration is searching for ways of destroying the military and diplomatic alliance between Russia and Iran to accelerate the end of the conflict in Syria and step up the fight against the Islamic State (terrorist group, outlawed in Russia). The US will be unable to influence the Russia-Iran alliance directly, according to Vladimir Yevseyev, Deputy Director of the CIS Countries Institute. In his view, Washington can create problems indirectly, primarily by hampering the work of Russian businesses in Iran through new sanctions against Tehran or strengthening the existing ones. Discord in the Russia-Turkey-Iran troika in Syria is possible as well, and Moscow should prevent this from happening, the expert went on to say. ""The possible weak points are demands for Tehran to stop arms supplies to Hezbollah via Syria and the withdrawal of Revolutionary Guards advisers from that country. If that happens, Iran's role in Syria will diminish substantially, which make combat operations more difficult, while Iran will get the impression that it has been excluded from the process. In that case, it may turn against Russia."" - Moscow and Tbilisi will hold another round of consultations on mending bilateral relations in Prague on Tuesday. As usual, Russia is represented at the talks by Deputy Foreign Minister, Grigory Karasin, and Georgia - by Special Representative for Relations with Russia, Zurab Abashidze. Georgia has been doing its utmost in terms of abolishing visas for Russians and citizens of other countries, Abashidze told Nezavisimaya Gazeta. ""We have cancelled visa restrictions for Russian nationals,"" he said. ""They may stay in Georgia without visas for up to a year. For its part, Russia simplified visa requirements for Georgian citizens, which affected the number of issued visas. We heard the Russian president's remarks about the possibility of abolishing visas. If Russia pushes ahead with its efforts in terms of simplifying requirements or abolishing visas, we will see that as a step in the right decision, which would be praised. The visa issue is Russia's domain. If there are new proposals on this matter, we will hear them out and discuss them. When asked about the prospects for restoring diplomatic relations between Moscow and Tbilisi, Abashidze emphasized that that ""the issue will not be on the agenda as long as Georgia's territorial integrity is violated."" ""However, if the process of resolving the problems related to Abkhazia and South Ossetia begins, if significant progress is made, restoration of diplomatic relations could be included in the agenda at some point,"" he emphasized. - Russia's Federal National Guard Troops Service will monitor rallies, concerts and football matches by using airships, Izvestia writes. These high-altitude reconnaissance devices equipped with cutting-edge optics will be able to pinpoint specific pockets of unrest, especially rabble-rousers and isolate them without endangering other people's lives and wellbeing. They could be used for the first time during the 2017 FIFA Confederations Cup scheduled to be held in Russia this summer. A source in the Russian National Guard informed TASS that the use of aerial monitoring systems is a new direction in developing weapons for Russia's National Guard Troops. ""As a rule, there is a small group of troublemakers who revel in sparking destructive activity. They are behind the masses of people who take to the streets,"" Sergey Melikov, First Deputy Director of the Russian National Guard, explained in an interview with the paper. ""Therefore, we need to localize such offenders and detain the instigators. We ensure people's safety, first and foremost. We see our mission as preventing adverse conditions where mass discontent may escalate into mass civil disobedience."" Meanwhile, Vsevolod Alexeyev, Chairman of the Society for Consumer Right's Protection in Sports, told the paper that the proposed move could be of considerable help in ensuring security during the Confederations Cup and the FIFA World Cup. ""It is clear that security requirements during the World Cup and the Confederations Cup in Russia will be very stringent, and the task of all services involved is to minimize possible incidents. If aerial monitoring makes it possible to identify specific individuals who break the law, this will significantly contribute to ensuring security."" - Moldova's President, Igor Dodon, will soon start negotiations with other representatives of the Moldovan authorities on Transnistria and the presence of Russian peacekeepers there, presidential adviser for Transnistria, Vasile Sova, informed Nezavisimaya Gazeta. Prime Minister Pavel Filip earlier asked the Organization for Security and Cooperation in Europe (OSCE) to again consider the issue of ""the illegal presence of Russian troops,"" including peacekeepers, in Moldova. According to Sova, Russian peacekeepers were deployed to that country under the 1992 agreement, which has a substantial legal base, which means that there are no grounds to question their presence. However, they could be replaced as part of the ""5+2"" international negotiation framework (Moldova and Transnistria as parties, Russia, Ukraine and the OSCE as mediators, and EU and the US as observers). Negotiations within this framework were frozen for several years. After the arrival of President Igor Dodon, a glimmer of hope appeared that they could be revived. Dodon was the first president who travelled to Tiraspol to meet with new Transnistria leader, Vadim Krasnoselsky, and struck a deal on regular meetings with him, the paper notes. ""The ruling coalition in Moldova never achieved any positive results during its negotiations with Transnistria,"" Irina Vlah, head of Moldova's Gagauz autonomy, told the paper. ""But then Dodon appeared who is prepared for talks with Transnistria at any level. Dialogue is necessary, but there is no need to hurry,"" she said. - The latest wave of arrests in Turkey is not only part of a counter-terrorism campaign but also part of the preparations for the referendum on a new draft Constitution, which envisages transitioning the country from a parliamentary to a presidential republic, a source close to diplomatic circles in Ankara told Izvestia. ""The vote is expected to be held in April,"" the source said. ""Meanwhile, Turkish President, Recep Tayyip Erdogan, needs to tackle two problems, namely, the economic crisis and rampant terrorism. This will make it possible for him to get the required support from the Turkish population. So, the recent arrests should be seen from this perspective as well."" According to the latest data, Turkish security forces have arrested nearly 800 people suspected of having links to the Islamic State (terrorist group, outlawed in Russia). Igor Morozov, member of Russia's Federation Council (upper house of parliament) International Affairs Committee, said in an interview with the paper that this is further evidence of Ankara's change in attitude towards those forces, which the Turkish leadership previously had turned a blind eye to. ""Turkey's stance on the Islamic State has changed significantly. Erdogan saw that members of this group carry out terrorist attacks against Turkish officials. Very often, militants are a tool in the hands of the opponents of the Turkish president,"" Morozov explained. The senator added that the large-scale arrests can be seen negatively in Turkish society too, since many of Erdogan's political opponents have been detained as well. - TASS is not responsible for the material quoted in the-press reviews", -184,2017/2/7,http://tass.com/politics/929372,Moscow seeks to cooperate with Afghanistan in security,"""We support efforts of Afghanistan's leadership in stabilizing the situation in the country and in the war on terror"", Russian Foreign Minister Sergey Lavrov said","MOSCOW, February 7. /TASS/. Moscow wants to cooperate with Kabul in a range of areas, especially in security and economy, Russian Foreign Minister Sergey Lavrov said on Tuesday opening talks with his Afghan counterpart Salahuddin Rabbani. ""Russia and Afghanistan are old-time and close partners, and are interested in cooperation in security, humanitarian and economic areas,"" Lavrov said. ""We support efforts of Afghanistan's leadership in stabilizing the situation in the country and in the war on terror."" Moscow is satisfied by the ""level of political dialogue"" with Afghanistan and cooperation in the United Nations, Russia's top diplomat said. Lavrov expressed condolences to the families of those killed in the avalanches in Afghanistan earlier this month, wishing a speedy recovery to the injured people. More than 100 people died in this tragedy between February 4 and 6. Lavrov called on Afghanistan to develop cooperation in preparing for natural disasters. Rabbani thanked Lavrov for offering condolences, noting that Afghanistan's authorities are making every effort to reduce the aftermath of the disaster. ""This trip is important, we call for developing our relations. We have many topics for discussion, in particular, the fight against terrorism,"" Afghanistan's foreign minister said. Russia and Afghanistan have established a close dialog between their special services to identify and eliminate terrorist groups, Lavrov said following talks with his Afghan counterpart. ""The anti-terror cooperation is an important topic and an element of our bilateral relationships,"" the minister said. ""We have an inter-governmental agreement on Russia's military and technical assistance to Afghanistan. It has sealed the practice that has existed for already many years and practically helps to raise the combat potential of Afghanistan's security services and the Afghan national army,"" Russia's top diplomat said. ""Now we have an agreement and so the legal framework has been strengthened; it entered into force in November last year,"" the foreign minister said. Russia is prepared to continue providing assistance to Afghanistan in supplying and repairing military equipment, Lavrov said. ""The Russian side has confirmed its willingness to continue providing assistance to Afghanistan in supplying and repairing military equipment,"" the minister said. ""We have the appropriate capabilities and the appropriate agreements. We will also help training national personnel of the Islamic Republic of Afghanistan, both in military and civilian occupations."" The international meeting on Afghanistan with participation of Russia, Pakistan, China, Iran and India will be held in Moscow in mid-February, -Lavrov said. ""We have a common understanding that there is the need to boost efforts (for reconciliation in Afghanistan). In this context, we confirmed the invitation for the Afghan colleagues for another meeting on Afghanistan's settlement due in mid-February in Moscow, with participation of representatives of Russia, Afghanistan, Pakistan, China, Iran and India,"" Lavrov said. ""We expect that all partners will be represented at a high level, and most of them have already confirmed their participation,"" he said. Russia's supports Afghanistan's bid for full-fledged membership in the Shanghai Cooperation Organization (SCO), according to Lavrov. ""We confirmed our support for the development of cooperation in assisting the Afghan settlement as part of the SCO, considering that this year India and Pakistan will join the SCO as full-format members and considering that Kabul filed a similar application in 2015 for full-fledged membership, a bid, which the Russian Federation supports,"" Lavrov said. Russia will continue working in favor of the approval of this application by all the SCO members, Russia's top diplomat said. Moscow is prepared to establish contacts with the United States on Afghanistan and this will be to the benefit of everyone, first of all the Afghan people, Lavrov said. According to Lavrov, Russia maintained some contacts on Afghanistan with the previous US administration but they were ""sporadic"" and lacked confidence. Russia's top diplomat said he is convinced that Russia and the US will establish ""partner cooperation"" taking into consideration that US President Donald Trump confirmed that the fight against the Islamic State terrorist group is a top priority in the international affairs. ""As soon as the structures are formed in Washington, which will deal with the war on terror and the Afghan issue in broader terms, both in the State Department, the White House and other bodies of the US administration, I'm sure that our contacts will be established,"" Lavrov said. ""This will be to the benefit of everyone, including our Afghan friends,"" he said. The Russian diplomat also said that Russia supports the idea of plugging the Taliban into a dialog over future settlement in Afghanistan on the basis of UN Security Council resolutions. ""We have confirmed our common stance that-Taliban should be involved in a constructive dialog in keeping with the criteria contained in the UN Security Council resolutions,"" Lavrov said. Lavrov said the Taliban was trying ""to conduct the dialog on certain terms that do not quite suit our Afghan counterparts and in a situation where the Islamic State (terrorist organization outlawed in Russia), has been trying to get a foothold in Afghanistan.""", -185,2017/2/7,http://tass.com/society/929367,Russian adventurer Konyukhov sets off on record-breaking air balloon flight,The flight has been delayed by two hours due to strong wind,"YAROSLAVL, February 7. /TASS/. Russian adventurer Fyodor Konyukhov and his companion, certified balloonist, holder of the ""master of sports"" title Ivan Menyailo have left an airdrome near Rybinsk, the Yaroslavl Region, by a hot air balloon hoping to stay in the air for more than 50 hours, thereby setting a new non-stop flight world record, the adventurer's son, Oskar Konyukhov, has told TASS. ""At 09:04 Moscow time the balloon took off and has since remained at an altitude of 50-60 meters. It is moving southwest, towards Moscow. The launch has taken place and this is most important,"" said Konyukhov Jr. For setting a new non-stop flight world record lasting more than 50 hours the adventurers are expected to avoid crossing air borders with other countries, because the wind may carry the balloon towards Ukraine, Belarus, Latvia and Lithuania. In that case the crew will have to land. Likewise the ambitious attempt will have to be terminated if the balloon ventures into Moscow's airspace or if there is heavy snowfall. Oskar Konyukhov said strong wind delayed the flight by two hours, but Konyukhov's support team eventually managed to load the gondola with extra 75 fuel cylinders. ""The wind was strong. Originally the balloon was due to leave at seven in the morning. We had to wait for two hours for the wind to subside somewhat. We managed to bring extra fuel cylinders on board,"" Oskar Konyukhov said. Previously, the flight was scheduled for the middle of January only to have been postponed due to a thaw. Clear skies and frosty weather, with air temperatures staying at 15-20 degrees below freezing are the key factors for success. The local authorities will arrange festivities on the occasion of the record-setting attempt. Konyukhov has dedicated the flight to an Orthodox Saint, Admiral Fyodor Ushakov, who was born in the Rybinsk district of the Yaroslavl Region. Konyukhov set the previous non-stop flight record on a hot air balloon in January 2016 over the Tula, Moscow, Ryazan, Vladimir and Ivanovo regions. He stayed in the air for 32 hours and 20 minutes. Around-the-globe records: world's famous adventurers ", -186,2017/2/7,http://tass.com/society/929368,Historical Museum's director blasts handover of St. Isaac's Cathedral to church,"The church and the museum community have joint tasks of ""preserving spirituality, morality, high moral and cultural values""","MOSCOW, February 7. /TASS/. Director of Russia's State Historical Museum Alexei Levykin has told TASS he opposes the handover of St. Isaac's Cathedral, one of St. Petersburg's prominent landmarks and a UNESCO World Heritage site, to the Russian Orthodox Church. Saint Isaac's: The iconic St. Petersburg cathedral Currently, there are many opportunities for successful cooperation of museums and the church, he stressed. ""Still, I'm a representative of the museum community and a member of the Russian presidium of the International Council of Museums (ICOM) and a member of the presidium of the Union of Museums of Russia, and my stance here is that I do not welcome the handover of St. Isaac's Cathedral. I believe that there are much more opportunities for joint successful cooperation of museums and the church that complement each other,"" he said in an interview with TASS. The church and the museum community have joint tasks of ""preserving spirituality, morality, high moral and cultural values,"" Levykin said. ""We should not forget that the museum personnel preserved the church values in the extreme conditions during the post-revolutionary and the war time, sometimes at the expense of their own life,"" he said. During the Soviet time, the State Historical Museum in Moscow incorporated the Krutitsy Metochion, containing historic buildings erected in the late 17th century, and the Novodevichy Convent, a UNESCO world heritage site and burial place of many famous figures. These two sites were handed over to the Orthodox Church some 20 years ago and in 2010, respectively. Saint Basil's Cathedral, one of symbols of Russia and a major tourist attraction, which became part of the Historical Museum in 1928, has been jointly managed by the museum and the Orthodox Church for a quarter of a century already. Every Sunday and twice a year worship service is held in the cathedral. During this time, the access of tourists is limited to create convenient conditions for the believers. The plans by the St. Petersburg government to hand over St. Isaac's Cathedral to the Orthodox Church have stirred up a lot of public controversy. The announcement was followed by protests throughout the city. More than 200,000 people have signed a petition against the handover of the cathedral, one of Russia's most popular museums visited by some 3.5 mln tourists annually. Mikhail Piotrovsky, Director of the State Hermitage Museum, has asked Patriarch of Moscow and All Russia Kirill to revoke the handover request to stop public protests. The cathedral was built in 1818-1858 and transformed into a museum after the 1917 Bolshevik Revolution. Church services were resumed at St. Isaac's in 1990. However, St. Isaac's was not property of the Orthodox Church even prior to the revolution since its maintenance was very expensive. The cathedral was managed by the Imperial Ministry of Communication Routes and Public Buildings until 1871 and was then turned over to the Interior Ministry of the Russian Empire.", -187,2017/2/7,http://tass.com/economy/929361,"Deputy PM says no progress in gas, oil talks between Russia, Belarus","Russia still expects Belarus to repay its gas debt, Russia's Deputy Prime Minister Arkady Dvorkovich said","MOSCOW, February 7. /TASS/. Russia still expects Belarus to repay its gas debt, though there is no progress in the talks on issues related to gas and oil between the two countries, Russia's Deputy Prime Minister Arkady Dvorkovich said Tuesday. ""So far there is no progress. We'r expecting our colleagues to make suggestions. There are no agreements between us based on previous proposals. But in any case we'r expecting repayment for 2016,"" he said. Earlier Dvorkovich said that Belarus' debt for Russian gas supplies had reached around $550 mln as of January 28. Belarus and Russia have been negotiating a reduction in gas prices since early 2016. Minsk insisted on lowering the price of Russian natural gas from $132 to $73 per 1,000 cubic meters and demanded that Russia switch to equal netback pricing. In response to underpayment of around $300 mln for Russian gas supplies Moscow cut its tax-free oil supplies to Belarus by more than a third. In end-2016, Belarus transferred an advance payment for Russian gas and expressed the hope that the volume of oil supplies would be restored. However, Russian Deputy Prime Minister Arkady Dvorkovich said that Russia had returned the advance payment and insisted on full execution of the gas contract. At the same time, Dvorkovich did not rule out that the settlement of the gas dispute with Belarus could be resolved in court.", -188,2017/2/7,http://tass.com/economy/929360,Central Bank says Russia's GDP positive in fourth quarter of 2016,,"MOSCOW, February 7. /TASS/. Russia's GDP dynamics (seasonally adjusted) turned positive in the fourth quarter of 2016, the Central Bank reported Tuesday. ""In the fourth quarter of 2016, the annual rate of gain in production was estimated as positive, which is highlighted by the dynamics of forward-looking indicator of output of products and services on the main types of economic activity. The quarterly GDP growth rate (seasonally adjusted) is estimated to turn positive, demonstrating a revival of economic activity, which will persist in early 2017 as well,"" the report said. Meanwhile, the recovery in cumulative demand in the first half of 2017 will spur Russia's economic growth further on, the Bank of Russia said. ""In the fourth quarter of 2016, the economic recovery started to get sustainable, though the dynamics of the main indicators remained mixed. On the one hand, industrial production increased, backed by surging external demand and expansion of import substitution. The investment activity gradually rebounded,"" the report said. On the other hand, the consumer demand shrank following a slight growth in the third quarter of 2016, the regulator said. ""In the fourth quarter, seasonally adjusted GDP turned positive, according to the Bank of Russia. In 2016, GDP reduction amounted to 0.2%. A recovery of cumulative demand in the first half of 2017 will facilitate further GDP growth,"" the Central Bank said. According to the Economic Development Ministry's official outlook for 2017, Russia's GDP growth will be 0.6%. However, Economic Development Minister said earlier that GDP growth would exceed 2% in the second half of this year, meaning that 1H 2017 GDP growth will be above 1%. Finance Minister Anton Siluanov said Russia's GDP growth may be around 1-1.2% this year.", -189,2017/2/7,http://tass.com/defense/929358,Snap check of Russia's Aerospace Forces begins Tuesday,"Special attention should be paid to combat alert, deployment of air defense systems for a time of war and air groupings""?readiness to repel the aggression, Russian Defense Minister Sergey Shoigu said","MOSCOW, February 7. /TASS/. A snap check of the Russian Aerospace Forces has begun on Tuesday morning by decision of Russian President Vladimir Putin, Russian Defense Minister, Sergey Shoigu, said. ""In accordance with the decision by the Armed Forces Supreme Commander, a snap check of the Aerospace Forces began to evaluate readiness of the control agencies and troops to carry out combat training tasks,"" he said.According to Shoigu, the control agencies and military units started measures to enhance combat readiness at 09:00 Moscow Time. - ""Special attention should be paid to combat alert, deployment of air defense systems for a time of war and air groupings""?readiness to repel the aggression,"" Shoigu added. He also ordered to ensure strict compliance with the safety requirements and undamaged condition of weapons and ammunition. The minister pointed to the need to rule out damage to state-owned property and prevent negative impact on the environment.", -190,2017/2/7,http://tass.com/world/929356,"Assad says Russia-US cooperation will benefit Syria, entire world","However, it is too early to judge whether the Trump administration is ready for such cooperation, the Syrian president told Belgian media","MOSCOW, February 7. /TASS/. Syrian President, Bashar al-Assad, has said that cooperation between Russia and the United States could be beneficial for Syria and the entire world. However, in his view, it is too early to judge whether the Trump administration is ready for such cooperation. ""What we heard as statements by Trump during the (election) campaign and after the campaign is promising regarding the priority of fighting terrorists, and mainly ISIS, that's what We're been asking for during the last six years. So, I think this is promising, we have to wait, it's still early to expect anything practical,"" Assad said in an interview with Belgian media. The text of the interview has been posted on the website of the SANA news agency. ""It could be about the cooperation between the US and Russia that we think is going to be positive for the rest of the world, including Syria,"" the Syrian president noted. ""So, as I said, it's still early to judge it.""", -191,2017/2/7,http://tass.com/politics/929355,Ambassador: Russian diplomats in Syria still in danger despite ceasefire deal,Russia's embassy in Damascus came under shelling once again on February 3,"MOSCOW, February 7. /TASS/. The actual danger that Russia's embassy in Damascus may come under attack is not decreasing even amid the ceasefire deal between the Syrian government and the opposition, Russian Ambassador to Syria Alexander Kinshchak said in an interview with TASS. ""The establishment of ceasefire on December 30, 2016 had a positive impact on the military and political situation in Syria in general,"" he said. ""Unfortunately, this does not mean that the security situation of the embassy has automatically improved."" It's no secret that not only terrorists of the Islamic State and Jabhat al-Nusra (outlawed in Russia) but also some other ""irreconcilable"" Jihadist groups call against peaceful settlement in Syria and for continuing the armed struggle until the regime of Bashar Assad is toppled, he said. These armed gangs do not recognize the ceasefire agreement and try to disrupt it by all means, ""including through attempts to stage high-profile terrorist attacks against Russia's representatives in Syria,"" Kinshchak said. ""By the way, the Army of Islam [Jaysh al-Islam] is just one of the groups responsible for the shellings of Damascus,"" the ambassador said. ""This was also done by the Nusra members dug in Jobar and Eastern Ghouta, their former allies from Faylaq ar-Rahman and possibly other bandits. Unfortunately, this threat remains."" Russia's embassy in Damascus again came under shelling on February 3, the ambassador said, adding that there was no serious damage to it. ""We constantly register shellings in close vicinity to the embassy,"" he added. ""Finally, a serious threat is coming not only from mortar shellings, but also from terrorist attacks, including with the use of suicide bombers,"" the ambassador said, recalling the January 12 suicide bombing in a government quarter in Kafr Sousa, in downtown Damascus. ""So, even during the ceasefire the level of danger is not reducing for us,"" Kinshchak stressed. ""That's why, as before, we are forced to pay high-priority attention to ensuring security to increase the real protection of our staff members from all possible threats,"" he said.", -192,2017/2/7,http://tass.com/politics/929345,Russia's ambassador to Syria describes situation in Aleppo as 'not so bad',The ambassador assed that the international automobile road connecting Damascus and Aleppo remains blocked in Idlib Governorate and the bypass route was not safe,"MOSCOW, February 7. /TASS/. Russian Ambassador to Syria, Alexander Kinshchak has described the situation in Aleppo as ""not bad""-and ""having a tendency towards improvement"". ""As for the unfreezing of our Consulate General in Aleppo, we think it's too early now to raise the issue for security considerations,"" he said in an interview with TASS. ""The problem is bigger than the situation in Aleppo as such, since the latter is not bad and has a tendency towards improvement,"" Kinshchak said. ""The operative situation in northern Syria remains complicated and unstable in general."" He recalled that the international automobile road connecting Damascus and Aleppo remained blocked in Idlib Governorate and the bypass route was not safe because of sorties conducted by Islamic State militants. ""Aleppo international airport regularly undergoes shelling by terrorist units and even helicopters can""t be absolutely safe as means of transportation in the situation as it is, since it's well-known that the militants have shoulder-carried multiple launchers,"" Kinshchak said. ""If we reopen the Consulate General now, our fellow-diplomats who will be placed there will run into constant problems in communications with the embassy in Damascus,"" he said. ""I don""t see any particular need in subjecting them to such risks, since they are civilians - regular diplomats and technical support staff, not military.""", -193,2017/2/7,http://tass.com/press-releases/929348,Infortrend EonStor GS Features Symmetric Active-Active Controllers,,"TAIPEI, Taiwan, Feb. 7, 2017 /PRNewswire/.-Infortrend Technology, Inc. (TWSE: 2495) today announced its EonStor GS family now supports symmetric active-active controller configuration to minimize administrative effort and boost performance. Infortrend is also introducing a new feature, Service Manager, which can automatically report EonStor GS issues to Infortrend Service Center to request support service. The symmetric active-active controllers simplify IT management by eliminating the need to configure a preferred path in server virtualization environments. Performance is boosted as path thrashing is eliminated and workload is more equally distributed without additional load balancing software. I/O can continue through the remaining paths without interruption in the event of a path failure and failover is accomplished without the need to renegotiate a connection. Service Manager is a service request tool integrated on EonOne, centralized management software for the EonStor GS Family, which provides automatic reports of system issues to Infortrend Service Center for quick handling. It automatically collects system logs and configuration information of EonStor GS and sends them to Infortrend Service Center along with a service request to simplify the process of requesting technical support. Users can also keep track of the status of their service requests through EonOne Service Manager. ""We design the EonStor GS Family with the goal to simplify deployment and management of storage systems and will continue to introduce features that boost performance, availability and convenience for users,"" said Thomas Kao, Senior Director of Product Planning at Infortrend. For more information about Infortrend symmetric active-active controllers and service manager features in EonStor GS family, please click here. About Infortrend Infortrend (TWSE: 2495) has been developing and manufacturing storage solutions since 1993. With a strong emphasis on in-house design, testing, and manufacturing, Infortrend storage delivers performance and scalability with the latest standards, user friendly data services, personal after-sales support, and unrivaled value. For more Information, please visit www.infortrend.com Infortrend and EonStor are trademarks or registered trademarks of Infortrend Technology, Inc., other trademarks property of their respective owners. Media Contact: Infortrend Europe Ltd.- Agnieszka Wesolowska- Tel:+44-1256-305-220- E-mail:marketing.eu@infortrend.com", -194,2017/2/7,http://tass.com/economy/929326,Council for joint economic operations on Southern Kuril Islands set up in Japan,"The Southern Kuril range consists of the islands of Kunashir, Iturup and Shikotan and the Habomai archipelago","TOKYO, February 7. /TASS/. Foreign Minister Fumio Kishida of Japan told a news conference on Tuesday a council for joint economic operations with Russia on the Southern Kuril-Islands had been set up in Japan. He told reporters he would stand at the head of the entity personally. Hiroshige Seko, a deputy minister of economy, commerce and industry who supervises economic cooperation with Russia in the government, will be deputy head of the council while representatives of other departments concerned high rank officials from the finance, agriculture and fishing industry ministries will take seats on it, well-informed sources told TASS. ""We hope to get down to tackling the problems of joint economic operations on the islands through the efforts of our entire government,"" Kishida said at the news conference. Sources also indicated the council will consider concrete projects of cooperation in the area of Southern Kurils, including fisheries, seafood farming, tourism, and nature conservation. Along with it, this cooperation should not call into question Russia and Japan's fundamental positions as regards the sovereignty over the islands. Russia and Japan reached agreement on a start of consultations on joint economic operations on the Southern Kurils upon the end of Russian President Vladimir Putin's visit to Japan on in the middle of last December. The first round of the consultations at the level of deputy foreign ministers is to take place in Tokyo next month. Moscow made first attempts to reach arrangements on joint economic activity on Southern Kuril Islands-at the end of the 1990's but they encountered Japan's reluctance to agree to putting this type of cooperation on the basis of Russian legislation. The Southern Kuril-range consists of the islands of Kunashir, Iturup and Shikotan and the Habomai archipelago.", -195,2017/2/7,http://tass.com/politics/929330,Russia's ambassador says Syrian army may start new offensive against IS in Palmyra,"Syria's army backed by the Russian Aerospace Forces is making attempts of seizing the initiative in the area of Palmyra from the IS, the Russian ambassador has noted","MOSCOW, February 7. /TASS/. -The Syrian Army, which is supported by the Russian Aerospace Force, is making attempts to recapture the initiative from the militants in the area of Palmyra, the Russian ambassador to Syria, Alexander Kinshchak told TASS. ""As for the military aspect of developments there, the Syrian government forces that are drawing on support from the allies, including the Russian Aerospace Force, are making attempts now to seize initiative from the Islamic State in this area."" He also said particularly intense combat operations were taking place near the T-4 airbase: ""Jihadists are suffering big losses there and are retreating. This is still some way off from Palmyra but I don""t have any doubts its turn will come soon,"" Kinshchak said. ""Mass media are talking a lot about the situation in the ancient part of Palmyra and that's why I don""t see any need in an expanded advertising of the organization of diehard terrorists, which is banned in Russia, or in further comments on their barbaric actions against the monuments of the antique civilization,"" Kinshchak said. In March 2016, Syrian Army units supported by the Russian Aerospace Force liberated Palmyra after ten-months-long control by the IS. Russian army engineers took part in mine-clearing efforts in the city. On December 9, the IS attacked Palmyra again. The government troops retreated from the central part of the city on the night of December 11. On January 20, 2017, reports said the IS militants had destroyed the facade of the Roman Theatre and the Four Pylons architectural compound in Palmyra. It is too premature yet to discuss a possibility of liberation of Syria's Idlib-from terrorists at this moment, the Russian ambassador to Syria-has warned. At this state, the priority task is to maintain and consolidate the ceasefire, he said: ""That's why there's no discussing the possibilities of 'a march on Idlib' where militants from the liberated areas of Syria are flocking.-I think prospects for liberation will get clearer as long the separation of terrorists and the groupings ready to give up struggle against the government forces continues."" Jabhat al-Nusra terrorist group-has created a new coalition to fight against the groups that took part in the talks in Kazakhstan's Astana, Russia's ambassador to Damascus stressed:- ""After the meeting of delegations of the Syrian government and the armed opposition in Kazakhstan's capital on January 23-24, the terrorists of Nusra [Syrian branch of al-Qaeda]-made up a new coalition of very radically-minded Jihadists and started large-scale combat actions against their former ""Brothers-in-arms,""?the representatives of whom took part in the above mentioned Astana event.""- Representatives of the Syrian government and the opposition could create a joint constitutional commission to work on a draft of the new constitution: ""As for preparing a draft of the new constitution - and this task is considered to be vital by all the sound Syrian sides - here it would be right to speak about exchanging views and groundwork of various political forces, including with our participation, rather than practical work on agreeing on the text of a particular document. It's a long way to go,"" the diplomat said. ""For the beginning, an intra-Syrian working body should be probably created, for example, a joint constitutional commission with the participation of representatives of the government and the opposition,"" Kinshchak added.- The ambassador stressed that Russia's key task remains the same - to ""encourage both representatives of the authorities and their opponents, the opposition, to jointly search for the ways out of the current crisis situation."" This means ""providing assistance to the Syrian partners rather than doing something for them,"" the diplomat explained: ""As for preparing a draft of the new constitution - and this task is considered to be vital by all the sound Syrian sides - here it would be right to speak about exchanging views and groundwork of various political forces, including with our participation, rather than practical work on agreeing on the text of a particular document. It's a long way to go.""- ""For the beginning, an intra-Syrian working body should be probably created, for example, a joint constitutional commission with the participation of representatives of the government and the opposition,"" Kinshchak said. ", -196,2017/2/7,http://tass.com/world/929317,TASS website blacklisted in Estonia for alleged anti-Estonian propaganda,"On Monday, Propastor posted a list of 28 Russian internet resources which, it claims, are carrying out anti-Estonian propaganda","MOSCOW, February 6. /TASS/. TASS""?website has been blacklisted among a number of other Russian internet resources allegedly spreading anti-Estonian propaganda, according to Propastor, a web blog of the Estonian Defense League. On Monday, Propastor posted a list of 28 Russian internet resources which, it claims, are carrying out anti-Estonian propaganda. Along with TASS, the list includes websites of RT, Channel One, NTV, Ren TV, RBC, and Gazeta.ru. Moreover, it said the list is far from being complete. Earlier, Propastor issued a similar blacklist of Russian television channels, including Channel One, Rossiya-1, Rossiya-24, NTV, and Zvezda. Propastor is a web project of the Estonian Defense League which is linked with the country's Defense Ministry. The project is geared to ensure the country's information security, its founders say.", -197,2017/2/7,http://tass.com/politics/929327,Head of Russia's east-Siberian region of Buryatia says will tender resignation,"The whole world abides by the two-term principle, he said","ULAN-UDE, February 7. /TASS/. The head of Russia's constituent region of Buryatia, which is located to the east of Lake Baikal, Vyacheslav Nagovitsyn told reporters on Tuesday he was not going to run for a third term of office and would ask President Putin for an early resignation shortly. ""I've done two full terms of office,"" he said. ""From a formal point of view, there are grounds to run for a third term but the situation prompts there's a public sensation this region needs change today."" ""I've taken a decision for myself and I find it to be the only correct one,"" Nogovitsyn said. ""I won't run for the third term. I think I've performed my duties during these two terms decently. And that's about enough."" ""The whole world abides by the two-term principle because there's a need for rotation, since rotations bring in new fresh waves of people,"" he said.", -198,2017/2/6,http://tass.com/economy/929321,Russian government has no plans to privatize state railway corporation,"The government endorsed a program of privatizations just a few days ago, and RZD isn't on the list, Shuvalov said","MOSCOW, February 7. /TASS/. Russian government has no plans to privatize the state railway corporation RZD, First Deputy Prime Minister Igor Shuvalov said in an interview published by Izvestia daily. ""I'd like to tell you right away we don't have any plans to privitize the RZD,"" he said. ""The government endorsed a program of privatizations just a few days ago and RZD isn't on the list."" ""More than that, when we discussed privatization of the RZD in the past, we considered only a small package that could be floated at one for the benefit of non-state pension funds, but now even that is off the agenda,"" Shuvalov said. ""Privatization couldn't affect them in any way."".", -199,2017/2/6,http://tass.com/society/929314,Russian girl creates new IKEA's stuffed toy,"A children's drawing competition was held in all IKEA stores on November 20 and 25-27, 2016","MOSCOW, February 6. /TASS/. A Russian girl becomes an author of a new stuffed toy for IKEA stores, the Swedish company said in its press release. ""A children's drawing competition was held in all IKEA stores on November 20 and 25-27, 2016, with 2,730 participants in the age up to 12 from Russian cities and towns. A drawing of a Russian participant for the first time joined ranks of top ten winners of the international contest this year,"" the company said. Sofia Oganyants from Khimki town in Moscow region became the winner with her drawing of toucan bird, IKEA said. Children from the US, the Republic of Korea, Australia, Japan, Poland, Bulgaria, the UAE, Germany and Austria are also among authors of designs.", -200,2017/2/6,http://tass.com/sport/929308,Russian athletes secure early win in medals standings of 2017 Winter Universiade,Russian hockey players have grabbed the 23rd gold medal for the national team,"MOSCOW, February 6. /TASS/. Russian hockey players have grabbed the 23rd gold medal for the national team, securing an early win in the medal standings of the 2017 Winter Universiade underway in Kazakhstan's Almaty. Two days before the Universiade ends, the Russian national team boasts 23 gold, 20 silver and 13 bronze medals, well ahead of Kazakhstan, which is in the second place with ten gold, six silver and 11 bronze medals. The South Korean team ranks in the third place with eight gold, four silver and five bronze medals. Gold medals went to Russian cross country skiers Liliya Vassilyeva, Olga Repnitsyna and Anna Nechayevskaya in the relay 3x5 km women, to Yegor Berezin, Valery Gontar, Kirill Vichuzhanin and Dmitry Rostovtsev in the relay 4x7.5 km men, as well to speed skater Anna Pristalova winning mass-start gold. Russian women's ice hockey team grabbed gold defeating the Canadian team 4:1. Bronze went to speed skater Alexander Razorenov in mass start. The Russian national team has secured an early win in the medal standings of the 2017 Winter Universiade with 23 gold, 20 silver and 13 bronze medals. Sixteen sets of medals are yet to be awarded at the Winter Universiade. Kazakhstan, that comes second to Russia at the moment, is no longer claiming medals in women's and men's curling, men's hockey and in women""?snowboard (big air). Even if the hosts win all the remaining 12 gold medals, they will still have 22 gold medals against Russia's 23. South Korea cannot seek the first place either, as it no longer fights for awards in men's hockey as well as men's and women's curling. The World Student Games, or Universiade, is an international sporting and cultural festival which is staged every two years in a different city. The name of the international sports event is a combination of two words, which are ""university""?and ""�Olympiad.""?It is only second to the Olympic Games. The program of the Winter Universiade currently includes 6 compulsory sports (8 compulsory disciplines) and up to 3 optional sports chosen by the host country. Almaty plays host to the 2017 Winter Universiade between January 29 and February 8.The next Winter Universiade will take place in Russia's Krasnoyarsk in 2019.", -201,2017/2/6,http://tass.com/economy/929300,Eurasian Economic Commission expects Belarus will approve EAEU Customs Code shortly,Alexander Lukashenko said at the meeting with reporters on February 3 that he ordered withdrawal of Belarus main specialists from customs authorities of the EAEU,"MOSCOW, February 6. /TASS/. The Eurasian Economic Commission (EEC) expects that Belarus will early complete procedures for approval of the new Customs Code of the Eurasian Economic Union (EAEU), EEC Board Member (Minister) on Integration and Macroeconomy Tatiana Valovaya told TASS on Monday. Minsk has had no grievances regarding the text of the document until now, she said. ""We raised this issue [regarding Customs Code signing - TASS] for our Belarus counterparts, particularly at the last meeting at deputy prime ministers""?level. Belarus colleagues said they are working on it and look forward to positive conclusion of the process. That is, they had no comments on that document,"" the minister said. The President of Belarus Alexander Lukashenko said at the meeting with reporters on February 3 that he ordered withdrawal of Belarus main specialists from customs authorities of the EAEU. According to Lukashenko, trade turnover of Belarus within the EAEU fell by 40% in 2015 and by 18% more last year. Valovaya said she has no data whether Belarus withdrew its specialists from EAEU customs bodies. ""I do not have such information,"" she said. Significant decline in mutual turnover among EAEU member-states was noted in 2015 and 2016, the EEC minister said. ""Our mutual trade contracted because of objective reasons and not because of integration. It declined because of economic growth slowdown; prices for oil and other energy resources fell,"" she added. Meanwhile, statistics already shows that the decline in trade within the Eurasian Economic Union has ended, Valovaya said. ""We actually observed the decline in mutual trade because of objective reasons. Growth has surfaced recently. Monthly trade in October and November 2016 were higher than monthly trade volumes in 2015,"" she added.", -202,2017/2/6,http://tass.com/economy/929304,"AliExpress to change rules of delivery to Russia, Belarus and Ukraine",Economic delivery service will not be available anymore for goods with the value above $2 with destinations in Russia,"MOSCOW, February 6. /TASS/. AliExpress changes rules of goods delivery to Russia, Belarus and Ukraine from February 7, the Chinese online retailer said on Monday in the press release posted on its website. Economic delivery service will not be available anymore for goods with the value above $2 with destinations in Russia. This service will not be available for buyers from Belarus and Ukraine irrespective of the goods cost. Assignment of tracking numbers will become mandatory for goods. These measures are introduced to improve quality of logistical servicing, AliExpress said. ", -203,2017/2/6,http://tass.com/politics/929297,Russian diplomat blames Kiev for military hardware pullback failure,The Russian OSCE ambassador says extended Normandy Four format unlikely to anticipate settlement in Donbass,"MOSCOW, February 6./TASS/. The pullback of military hardware in Donbass on February 5 failed to take place due to Kiev's acts of provocation, Russia's OSCE Ambassador Alexander Lukashevich told Rossiya 24 television. ""Of course, there was a talk of the situation after the Contact Group's decision on weapons pullback by February 5. Sadly, nothing was done because of continuing acts of provocation from Kiev that continues shelling and pulls in hardware,"" he said. According to the diplomat, although the OSCE's Special Monitoring Mission ""fixes a lot of violations on both sides,"" provocative activities of the Ukrainian authorities cause a great damage to ceasefire efforts. ""The armed forces of Ukraine had clearly triggered a new spiral of tension in Donbass, to which a special report of the mission of January 30 pointed,"" the Russian permanent representative to the European security agency said. ""We will urge the OSCE Mission to be not a mere passive onlooker but to act as a mechanism pushing the parties towards fulfilling their liabilities,"" he said. ""Even if it is not envisaged by the Mission's mandate, but the very logic of its activities must be based on the necessity of not simply monitoring and verifying but also on the necessity of compelling the parties to implement their liabilities."" ""This topic [of an OSCE police mission - TASS] is not on the OSCE agenda. It lost its topicality when no consensus was reached after certain consultations in 2016,"" he said. ""More to it, I know it for sure from conversations with the heads of the OSCE monitoring mission that this idea is seen as very dangerous, both from the point of view of personnel security and prospects for promoting settlement."" He said that the Mission's mandate is highly unlikely to be stopped soon. ""I have no information that anyone is interested in closing this European, or even international, verification mechanism that is acting on behalf of European society and even broader,"" Lukashevich added. Participants of the Contact Group on settlement in Donbass agreed on February 1 on the withdrawal of weapons and military hardware to the storage facilities by February 5. He added that-extended Normandy Four format unlikely to anticipate settlement in Donbass. ""Naturally, this topic is outside the OSCE agenda as the Normandy Four format is a higher degree of interaction between the four countries,"" he said. ""It is an important instrument designed to help solve the problems of the Ukrainian settlement."" ""As for possible extension of the Normandy format, I don""t think, and this is my personal opinion, that it might hasten settlement in any way, at least now,"" he said. ""It's more likely that the Ukrainian partners would seek to enhance their positions thanks to the West's influence and would try to rebuild the entire logic of political settlement."" According to the Russian diplomat, the Normandy format has become one of the driving forces of the entire settlement process.", -204,2017/2/6,http://tass.com/sport/929295,Pole vault star Isinbayeva chosen as ambassador of 2017 Winter World Military Games,"About 1,000 athletes from more than 20 countries will compete at the Winter World Military Games in Sochi","MOSCOW, February 6. /TASS/. Russia's two-time Olympic Champion Yelena Isinbayeva has been chosen as an official ambassador of the 3rd Winter World Military Games to be held in Russia's Black Sea resort city of Sochi on February 22 through 28, the press center of the Games said on Monday. ""It is an honor for me to become an ambassador of the 3rd Winter World Military Games. It is a very important mission. Thank you for your confidence. In 2015, I decided to continue service in the Russian Armed Forces, in my home CSKA sports club because I want to work in the interests of the Russian military sports. I believe that our athletes have unlimited possibilities and they will be able to once again prove it at the Sochi Games,"" Isinbayeva said. Isinbayeva, 34, a triple world champion (2005, 2007 and 2013), with a total of 28 world records to her credit, who is credited as the greatest female pole-vaulter of all time, will carry the Russian flag at the Games""?opening ceremony. About 1,000 athletes from more than 20 countries, including those representing NATO armies, will compete at the Sochi Winter World Military Games.", -205,2017/2/6,http://tass.com/world/929293,Syrian parliamentarians to visit Moscow in early April,The parliamentarians have been invited by Federation Council Speaker Valentina Matviyenko,"DAMASCUS, February 6. /TASS/. Syrian parliamentarians will visit Moscow early in April at the invitation of the Russian upper house's speaker, Syrian parliament Speaker Hadiya Khalaf Abbas told Russian parliamentarians in Damascus on Monday. ""We are going to visit Moscow in April. We have been invited by Federation Council Speaker Valentina Matviyenko, and we will take an opportunity of her invitation to also visit you (the State Duma lower house of parliament),"" she said in reply to an invitation from parliamentarian Dmitry Sablin to visit Duma. ""We are very glad about these upcoming meetings. Thus we will strengthen our friendship and cooperation,"" she added.", -206,2017/2/6,http://tass.com/politics/929291,"Russia, Egyptian diplomats discuss Syrian settlement",The two diplomats exchanged views on the Middle East agenda,"MOSCOW, February 6. /TASS/. Problems of the Syrian settlement were in focus of a meeting between Russian president's envoy for the Middle East and African countries and Deputy Foreign Minister Mikhail Bogdanov and Egypt's Ambassador to Moscow Mohammed al-Badri, the Russian foreign ministry reported on Monday. ""The sides discussed current practical aspects of the comprehensive and mutually beneficial Russian-Egyptian cooperation,"" the ministry said. ""The two diplomats also exchanged views on the Middle East agenda, including the problems of the crisis settlement in Syria."" The meeting was initiated by the Egyptian ambassador.", -207,2017/2/6,http://tass.com/economy/929292,"Venezuela's oil minister, Russian energy minister discuss oil output cut deal",,"MOSCOW, February 6. /TASS/. Oil Minister of Venezuela Nelson Martinez discussed performance of the oil production reduction agreement with Russian Energy Minister Alexander Novak, Martinez told TASS on Monday. ""We came to say hello to him [Mr. Novak - TASS]; we are in Moscow. [We] talked about the agreement that we signed,"" Nelson Martinez said. The progress in delivery of the agreement is valued highly, he said. Venezuela adheres to undertaken obligations in full scope, Martinez said. He did not detail oil reduction volumes. It was reported earlier Nelson Martinez succeeded to Eulogio Del Pino, who was approved in the office of the chief executive of the national oil and gas company PDVSA.", -208,2017/2/6,http://tass.com/science/929288,"Russian scientists create highly-efficient, inorganic perovskite solar batteries",Batteries made from perovskites are cheaper than those based on silica and their production is non-toxic,"MOSCOW, February 6. /TASS/ Scientists from Skoltech's Institute of Problems of Chemical Physics, and Moscow State University have come up with inorganic perovskite solar batteries with tremendous efficiency, said Skoltech's press service. The new devices exhibit very high efficiency in light conversion (10.5%) comparable with those of perovskite batteries based on classical hybrid materials (about 12%). ""Our devices demonstrate tremendous efficiency and excellent repeatability of electric characteristics from sample to sample,"" one of the study's coauthors, Professor Pavel Troshin of the Center for Electrochemical Energy Storage said. ""The obtained results demonstrate on the high potential of inorganic complex halogenides which offers new opportunities for target design of photoactive materials for effective and stable perovskite solar batteries."" Perovskite is a mineral which is rare on the Earth surface, calcium titanate, while perovskites are various materials with crystal lattice similar to those of perovskite. In 2009, it was shown that perovskites are capable of effectively converting visual light into electricity, and ever since then they have been seen as a very prospective candidate for developing solar energy. In 2013, Science, one of the world's most reputable scientific journals, included perovskite-based solar batteries into the top 10 main breakthroughs of the year. Batteries made from perovskites are cheaper than those based on silica and their production is non-toxic. These batteries can be made thin and flexible in order to place them on the surfaces of various curvatures. Nowadays, the best efficiency of conversion light into electricity is achieved by hybrid perovskite photocells based on organic-inorganic materials APbI3 where A can be various organic cations (A=CH3NH2+ or HC(NH2)2+). The performance coefficient of laboratory prototypes of such devices reaches 22% approaching the characteristics of photoelements based on crystalline silica. However, the commercialization of those setups is hindered by their poor service durability. Upon functioning, they deteriorate very fast due to thermal and photochemical decomposition of perovskites. The most efficient approach to creating stable perovskite materials is a complete replacement of organic cations to inorganic ones. However, such substitution is normally accompanied by a decrease in the devices""?efficiency. For example, the solar cells based on CsPbI3 created by precipitation from the solution showed only 2-3% efficiency in light conversion. In the new study, the Russian scientists suggested producing CsPbI3 using another technology - thermic co-evaporation of cesium and lead iodides. As a result, the solar batteries based on these inorganic perovskites have demonstrated a stable performance efficiency figure of about 10%. Herewith, the reference samples of solar cells with an analogous architecture based on coatings of hybrid perovskite CH3NH3PbI3 demonstrate a comparable efficiency of 10-12%. The results of the study have been published in the Journal of Physical Chemistry Letters.", -209,2017/2/6,http://tass.com/sport/929287,RPC Athletes Commission criticizes decision to ban Russian athletes,Earlier the International Paralympic Committee declined a bid from the RPC to allow Russian athletes to participate in the qualifying rounds for the 2018 Winter Paralympic Games,"MOSCOW, February 6. /TASS/. The Athletes""?Commission of the Russian Paralympic Committee (RPC) has criticized the decision of the International Paralympic Committee (IPC) aimed at barring Russian para athletes from international competitions, the RPC press service said. Earlier the International Paralympic Committee declined a bid from the RPC to allow Russian athletes to participate in the qualifying rounds for the 2018 Winter Paralympic Games. At the same time, the IPC said that Russia still had a possibility to take part in the Paralympic Games under quotas waived by national paralympic committees or upon bilateral invitation. During the meeting, athletes emphasized the need to closely cooperate with the IPC in order to continue the work aimed at restoring Russia's membership. The meeting's participants also backed the RPC's decision to continue training athletes for the winter and summer Paralympic Games, implement the membership restoration criteria, develop interaction with international sports federations as well as Russia's independent public anti-doping commission headed by Vitaly Smirnov, and protect the interests of athletes taking into consideration Russia's legislation and international laws. Besides, the participants in the Athletes""?Commission's meeting reiterated that there had never been any state-backed doping system in Russia. Moreover, the athletes stressed that there was no place for doping in sports since doping posed a threat to athletes""?life and health while those using doping violated the principles of fair play. ""The situation has been difficult for all the Russian para athletes, but we should not lose courage,"" Vice President of the Russian Paralympic Committee Rima Batalova said. ""We need to have patience, unite and try to do our work in the best possible way,"" she stressed. ""We will use all the possible tools to ensure that our athletes take part in international competitions, including the Paralympic Games in South Korea's Pyeongchang,"" she added. ""We would like all our athletes to have a chance to compete and win medals for our country, see Russia's flag rise in their honor and hear the national anthem of our great country,""-Batalova said.", -210,2017/2/6,http://tass.com/sport/929280,"Russia to issue 250,000 stamps depicting wolf as mascot for 2018 FIFA World Cup","The 102x71mm postal bloc containing a 30x42mm stamp at a par value of 100 rubles and issued with a circulation of 250,000 copies will be offered for sale at branches of the Post Office of Russia","MOSCOW, February 6. /TASS/. Russia will issue 250,000 stamps depicting the wolf as a mascot for the 2018 FIFA World Cup, the press office of the federal postal operator Post Office of Russia told TASS on Monday. ""A postal bloc depicting the official mascot of the 2018 FIFA World Cup Russia will be released into postal circulation on February 7. The 102x71mm postal bloc containing a 30x42mm stamp at a par value of 100 rubles and issued with a circulation of 250,000 copies will be offered for sale at branches of the Post Office of Russia,"" the press office said. In addition to the stamps, the Post Office of Russia will issue first day covers and prepare special redemption postmarks for the cities of Volgograd, Yekaterinburg, Kazan, Kaliningrad, Krasnodar, Moscow, Nizhny Novgorod, Rostov-on-Don, Samara, St. Petersburg, Saransk and Sochi where the ceremony will be held on February 7. The campaign to choose an official mascot for the 2018 FIFA World Cup in Russia started in April 2016. At the first stage, Russian football fans chose ten candidates, after which a special panel picked three finalists - the wolf, the cat and the tiger. The open voting held on October 21, 2016 announced the Wolf called Zabivaka (the one who scores) as the winner of the contest. Russia is currently in full-swing preparations for the global football tournament after the country clinched the bid, following the final vote at the FIFA Executive Committee in December 2010. The victory came following a tight race against the bids from England, Portugal and Spain, in addition to a joint bid on behalf of Belgium and the Netherlands. The country selected 11 host cities to be the venues for the matches of the 2018 World Cup and they are Moscow, St. Petersburg, Sochi, Kazan, Saransk, Kaliningrad, Volgograd, Rostov-on-Don, Nizhny Novgorod, Yekaterinburg and Samara. The matches of the 2018 World Cup will be held between June 14 and July 15 at 12 stadiums located in the 11 above-mentioned cities across Russia. Two of the stadiums are located in the Russian capital of Moscow.", -211,2017/2/6,http://tass.com/world/929286,Russian Defense Ministry reports three more Syrian settlements join reconciliation process,Syrian government troops have liberated an area of 53.1 square kilometers over the past 24 hours,"MOSCOW, February 6. /TASS/. Three populated localities in Syria have joined ceasefire in Syria in the past day, the Russian center for reconciliation of the warring parties in Syria said in its regular daily news bulletin posted on the official website of the Russian defense ministry of Monday. ""During the day, agreements on joining cessation of hostilities were signed with the settlements of Harasta al-Basal and Muhayam-al-Wafedin in Damascus province and the settlement of Btigramo in Latakia province,"" the center said, adding that the overall number of Syrian settlements that have joined the reconciliation process has reached 1,198. Talks on joining cessation of hostilities were continued with field commanders of armed opposition groups in the provinces of Aleppo, Damascus, Homs, Hama and al-Quneitra, as follows from the bulletin. The number of armed groups stating their commitment to the ceasefire in line with the agreement of February 27, 2016, has remained unchanged - 109. The number of opposition units joining the ceasefire has also remained unchanged, standing at 64. Syrian government troops have liberated an area of 53.1 square kilometers over the past 24 hours, the Russian center said. An overall area of 1,220.9 square kilometers has been liberated from January 1, the center added. Russian officers in the Russian-Turkish joint commission set up to monitor ceasefire violations in Syria reported three ceasefire violations in the province of Latakia and one in Hama. Turkish officers reported seven ceasefire violations, including five in Damascus province, one in Aleppo province and one in Homs province. Seven violations were not confirmed by the Russian side, the bulletin said. The nationwide ceasefire came into force across Syria at midnight on December 30, 2016 under the agreement on a complex solution to the Syria crisis. Syrian government forces and groups of armed opposition with an overall strength of more than 60,000 have joined the agreement. Russia and Turkey act as the ceasefire guarantors. Ceasefire does not cover terrorist groups, such as Islamic State.", -212,2017/2/6,http://tass.com/society/929283,Mayor says does not expect price tag for Sochi vacation to grow,"Near 6,500,000 people visited Sochi in 2016","MOSCOW, February 6. /TASS/. The price tag for a vacation in the Russian city of Sochi will not grow this year, Sochi Mayor Anatoly Pakhomov said following his meeting with representatives of big tour operators at the Federal Tourism Agency (Rostourism). ""I am confident that those working in the accommodation industry will hear and understand us. Hotel prices will not grow compared to 2016, I am completely sure of that,"" Pakhomov said. He added that a meeting of accommodation industry representatives from all four Sochi districts would take place next week. ""We will gather them all and explain what risks they could create if they raised the price tag,"" the Sochi mayor said. According to him, the city authorities will ensure the tourists""?safety. ""We guarantee your safety, this is one of our advantages,"" he stated. According to Pakhomov, as many as 6,500,000 people visited Sochi in 2016, which is the highest number to date. The mayor explained that ""it became possible because many accommodation facilities had been brought into operation."" ""We are capable of providing accommodation to 200,000 visitors (at a time),"" Pakhomov said. ""Our opportunities are huge, so we want tour operators to know that we are ready to join their efforts aimed at improving the tourism industry's efficiency,"" the mayor noted adding that in Sochi tourists would feel safe and comfortable. Pakhomov stressed that new competitors for Sochi had been emerging which were seeking to dump prices. ""Tourists used to travel abroad are our main challenge but Russian resorts have many advantages, Turkish and Egyptian resorts know that so they will have to improve their capabilities."" Pakhomov pointed out that package tours to Sochi were on sale through 26 regional travel agencies for the second year in a row. Putin hits ice at Night Hockey League match in Sochi ", -213,2017/2/6,http://tass.com/economy/929276,Russian diplomat says partnership policy aims at defining future of Arctic,Russian First Deputy Foreign Minister Vladimir Titov believes it is highly important to prevent the politicization of international cooperation in the Arctic,"MOSCOW, February 6. /TASS/. Russia is determined to combat efforts to erode its competitive advantage in the Arctic region, Russian First Deputy Foreign Minister Vladimir Titov told TASS on Monday. According to him, Moscow stands for partnership policy as far as the Arctic is concerned. ""Russia wants to protect the Arctic as a region of partnership and sustainable development,"" he stressed. ""Today, it is highly important to prevent the politicization of international cooperation in the Arctic and combat efforts aimed to spark confrontation in the region."" ""We are confident it is partnership policy that may help define the future of the Arctic,"" the Russian diplomat noted. ""At the same time, we plan to continue combating efforts to erode our competitive advantage in the Arctic region, introduce bellicose rhetoric and spread destructive activities, including NATO's heightening military activities near Russia's borders."" ""We believe that the Arctic states have been facing common challenges caused by the global warming as well as increasing economic activities in the Arctic,"" Titov went on to say. ""Our political activities in the Arctic are aimed, first and foremost, at assisting the Arctic states in making joint decisions on regional development and boosting practical cooperation in order to reach this goal."" According to the Russian first deputy foreign minister, these issues will be discussed during the Fourth International Arctic Forum dubbed ""The Arctic - a Territory of Dialogue"", scheduled to be held on March 29-30 in Russia's northern city of Arkhangelsk, in which high-ranking foreign representatives are expected to participate. ""The forum's participants will have to review their approaches towards the efficient use of the Arctic's potential in order to improve the quality of life of people living in the Far North,"" he added. Titov also emphasized Russia's readiness to implement joint economic projects ""on a mutually beneficial basis with our regional partners as well as other countries."" According to him, in this connection, Russia is interested in beefing up the activities of the Arctic Economic Council, taking into consideration the fact that its steering committee is due to hold a meeting on February 7-8 in Russia's city of St. Petersburg.", -214,2017/2/6,http://tass.com/world/929281,Hungarian top diplomat says EU's anti-Russian sanctions failed,"The sanctions regime against Russia has failed both in economic and political terms, according to Hungary's Minister of Foreign Affairs and Trade Peter Szijjarto","BRUSSELS, February 6. /TASS/. The European Union's anti-Russian sanctions have failed to reach a desired effect and hit the the European economy instead, Hungary's Minister of Foreign Affairs and Trade Peter Szijjarto said on Monday. ""The sanctions regime against Russia has failed both in economic and political terms,"" he said after a meeting of EU foreign ministers. He said the sanctions imposed on Russia following its reunification with Crimea were an ""erroneous response."" These sanctions have inflicted economic damage on the European Union and all its member states, Szijjarto stressed. The Hungarian top diplomat noted that the issue of the anti-Russian sanctions should be considered at a next summit of the European Union. Following the developments in Ukraine in 2014 and Crimea's reunification with Russia, the European Union imposed sanctions on Russia and has numerously extended them ever since. Talks on visa-free travel and on a new basic cooperation agreement were suspended. A number of Russian officials were banned to enter the European Union and their assets were frozen. Apart from that, the European Union imposed trade, financial and defense-sector restriction. In all, more than 150 individuals and several dozens of legal entities have been blacklisted by the European Union. Sectoral sanctions were imposed on a number of Russian financial, oil producing and defense entities.", -215,2017/2/6,http://tass.com/sport/929279,More than 1.5 million people to take part in Ski-Track of Russia races,This year's festival is likely to turn out the largest-ever by the number of contestants and the regions where it will be held,"MOSCOW, February 6. /TASS/. An estimated 1.5 million fathers and mothers, grandpas and grandmas, as well as their kids and grandkids across Russia, not to mention professional athletes - all skiing enthusiasts - will put on their winter gear early in the morning next Sunday, January 11, to take part in the decades-old sports festival called Ski-Track of Russia. This year's festival is likely to turn out the largest-ever by the number of contestants and the regions where it will be held- 74 of the country's 85. Russia's Sports Minister Pavel Kolobkov said this year the Ski-Track of Russia series of skiing promotion events will be held for the 35st time. ""Over the years the tournament has noticeably grown in scale and we pay unflagging attention to it. Back in the Soviet days the slogan was ""lrom Mass Participation to True Mastership.""?It is still relevant today,"" Kolobkov told a TASS news conference, adding that he was going to participate in a skiing event in Yakhroma, north of Moscow, selected as the site of this year's main skiing event. ""I plan to race, too, so spent quite a while training lately,"" he said. Weather watchers say the day of the big race will be frosty and sunny.", -216,2017/2/6,http://tass.com/politics/929275,Russia offers condolences to families of those killed in avalanches in Afghanistan,"On February 5, more than 100 people were killed in avalanches caused by heavy precipitation in a number of settlements in the Afghan provinces","MOSCOW, February 6. /TASS/. Russia's Foreign Ministry on Monday offered condolences to the families of those killed in deadly avalanches in Afghanistan. ""On February 5, more than 100 people were killed in avalanches caused by heavy precipitation in a number of settlements in the Afghan provinces of Parwan, Badakhshan and Nuristan,"" the ministry said. ""We offer our sincere condolences to the families of those dead and wish soonest recovery to those injured."" According to latest reports, the death toll from snow avalanches in Afghanistan has reached 119. More than 80 people got injured. Afghan Minister of Public Works Mahmoud Balegh said the authorities have managed to generally normalize the situation, despite heavy frost, abundant snowfalls, and transport problems [as motor roads in many regions are blocked by snow - TASS]. According to preliminary data, twenty-two Afghan provinces were hit by bad weather. Relief aid is being directed to people living in affected areas.", -217,2017/2/6,http://tass.com/politics/929271,FSB explains reason for introduction of border zone on frontier with Belarus,The FSB said the establishment of the border zone doesn't impose any restrictions on the freedom of travel across the Belarusian border,"MOSCOW, February 6. /TASS/. The introduction of a border zone along Russia's border with Belarus does not imply any restrictions on the rules of crossing the border that concern individuals, transport or goods, the public relations center of Russia's federal security service FSB told the media after the FSB director issued an order to create a border zone on the border with Belarus in Russia's Smolensk, Pskov and Bryansk regions. The FSB explained that these rules impose no restrictions on the freedom of travel across the border by either country's citizens. ""The establishment of the border zone does not envisage border control of individuals, vehicles, cargoes, goods or animals or creation of border checkpoints,"" the FSB said. Russian and Belarussian citizens in the border zone are obliged to follow the border rules established by the FSB on October 15, 2012, equally applicable to foreign nationals and Russian citizens. The FSB explained that the border zone had been introduced to identify and prevent transit illegal migration, drugs trafficking and illegal movement of goods and valuables across the border. ""The border zone was established with the aim of creating the necessary conditions for the reliable protection of Russia's state border in accordance with Article 16 of Russia's law of April 1, 1993 On the State Border of Russia and of carrying out measures to prevent legal abuse within the competence of border control agencies.", -218,2017/2/6,http://tass.com/politics/929274,Russian court passes first ever verdict on failure to report a crime,"The convict knew that his acquaintance had undergone training at a militants""?camp but did not report to law-enforcement bodies, the prosecutor's office said","ASTRAKHAN, February 6. /TASS/. A district court in the southern Russian city of Astrakhan has passed the first ever verdict in Russia on count of a failure to report a crime and fined a local resident 70,000 rubles ($1,185), the regional prosecutor's office told TASS on Monday. Local resident Ulugbek Gafurov has been penalized under new article 206.6 of Russia's Criminal Code (""Failure to Report a Crime""). ""The convict knew that his acquaintance had undergone training at a militants""?camp and later joined terrorists""?illegal armed formations. However, he did not report to law-enforcement bodies,"" the prosecutor's office said. The criminal case has been opened on the basis of the case files of the regional branch of Russia's Federal Security Service (FSB), the regional prosecutor's office said. The new article on the failure to report a crime was included in Russia's Criminal Code in 2016 after the national parliament passed amendments to the package of anti-terrorist laws (the so-called Yarovaya anti-terror package). The package of anti-terrorist laws obliges communications operators from July 1, 2018 to store for three years the data on the receipt, transmission, delivery and processing of voice information and text messages, images, audio and video materials. Operators are obliged to keep ""the heaviest"" content - images, audio and video data - for six months. They will also be required to supply this information at the request of special services.", -219,2017/2/6,http://tass.com/economy/929273,Moscow expects high-ranking foreign representatives to take part in Arctic forum,"The forum provides an opportunity to review approaches towards the efficient use of the Arctic's potential, according to Russian First Deputy Foreign Minister Vladimir Titov","MOSCOW, February 6. /TASS/. Moscow expects high-ranking foreign representatives to participate in the Fourth International Arctic Forum dubbed ""The Arctic - a Territory of Dialogue"", scheduled to be held on March 29-30 in Russia's northern city of Arkhangelsk, Russian First Deputy Foreign Minister Vladimir Titov told TASS on Monday. ""Our political activities in the Arctic region are aimed at encouraging the Arctic states to make joint decisions on regional development and boost practical cooperation in order to reach this goal,"" the diplomat said. ""These issues will be discussed during The Arctic - a Territory of Dialogue forum due to be held on March 29-30 in Arkhangelsk, high-ranking foreign representatives are expected to participate."" ""This is a credible platform which provides an opportunity to review approaches towards the efficient use of the Arctic's potential in order to improve the quality of life of people living in the Far North,"" Titov stressed.", -220,2017/2/6,http://tass.com/science/929269,Breakthrough puts researchers on right path to creating drugs to fight heart disease,,"MOSCOW, February 6. /TASS/. Researchers from Russia, the UK, and Switzerland demonstrated that the endothelin receptors type B have almost no influence of the fission of cells of unstriated muscles of vessels, the press service of Skolkovo Institute of Science and Technology said. The results of the study imply that to cope with the vessel diseases, remedies need to be developed aimed at interacting with endotheline receptors type A (ETA) and time should not be spent on working with endotheline receptors B (ETB). The article describing the study has been published in the journal Hypertension. ""The experiments show no significant role of ETB receptors in the proliferation of smooth muscle cells. This is new information which may potentially save lots of money and effort just by pointing out the way which one should not follow, and namely, creating an ETB antagonist based anti-atherosclerotic drugs,"" commented Skoltech Professor Yury Kotelevtsev, Associate Director of Skoltech Center for Functional Genomics, and a coauthor of the study. Endothelines are substances synthesized by the human body for constricting vessels. In order for them to function, they must be bound to corresponding receptors which are located in the vascular walls. These receptors can be classified into two types: A (ETA) and B (ETB). The ETA and ETB receptors govern the processes of vessels constriction and distension, as well as the growth of their tissues, and consequently play an important role in the evolution of some diseases, for instance, pulmonary hypertension and atherosclerosis. To clarify the role of ETB receptor in the control of growth of smooth muscles cells, the scientists switched off the genes coding the receptor. Using a mouse, they damaged the arterial walls in the limb of the rodent to track the growth of vessel tissues without ETB receptors and found out that this receptor has almost no effect on the fission of cells after vessel damage. According to Kotelevtsev, the scientists expected to come to sharply contradicting conclusions. But now, additional experiments have been scheduled, since these crucial results must be rechecked before finally being validated.", -221,2017/2/7,http://www.dw.com/en/turkey-transfers-billions-of-dollars-worth-of-assets-to-state-wealth-fund/a-37449914?maca=en-rss-en-all-1573-rdf,Turkey transfers billions of dollars worth of assets to state wealth fund,"Turkey has transfered government stakes worth billions to a new sovereign wealth fund. The fund could be used to finance mega projects to revive the economy, but would lead to greater political control of companies.","Turkey has transferred government stakes worth billions of dollars in its flag carrier Turkish Airlines, the country's largest bank by assets Ziraat Bank and fixed-line operator Turk Telekom to a sovereign wealth fund (SWF). Some analysts told DW that ahead of the planned presidential referendum, which would allow President Recep Tayyip Erdogan to consolidate his power, this move would lead to greater political control of the companies, but without the necessary oversight. Analysts also said that the newly transferred assets could be used as collateral to secure funding for major infrastructure projects. Political control ""The move is likely to increase political control over the companies now owned by the SWF,"" said Wolfango Piccoli, director of research at advisory firm Teneo Intelligence. ""The transfer of state assets to the SWF comeses at a time of increasing political involvement in the economy,"" he said. Piccoli said that over the last 18 months, more than 600 privately-owned companies have been seized by the government on suspicion of links with the-exiled Islamic preacher Fethullah Gulen, who Erdogan blames for orchestrating the failed July 15 coup attempt last year. More than 600 privately-owned companies have been seized by the government over the last 18 months In the third quarter, the economy shrank for the first time in almost seven years while investors worry that the structural reform agenda would stall due to Erdogan's ambition to boost the economy ahead of the presidential referendum. ""The creation of the wealth fund will, in all probability, allow Erdogan and his team to exercise greater control over companies in which the state already owns large stakes, but without the level of transparency demanded by members of Turkey's political opposition (especially the CHP),"" Anthony Skinner, director of the Middle East and North Africa practice at Verisk Maplecroft, told DW. Mega Projects The Erdogan government in 2013 announced 200 billion dollars worth of infrastructure investments as part of its 2023 goals. Building a waterway and the world's largest airport in Istanbul were among these goals, as Erdogan has been relying on large scale projects to bolster the construction industry and boost domestic demand. The economy has slowed following the coup attempt and analysts said that President Erdogan aims to revive the stalling economy with mega projects. ""The creation of the fund confirms the government's goal to drive large infrastructure projects forward to boost economic growth over the coming years. Infrastructure mega-projects and the government's diplomatic offensive to expand exports are intended to help offset the impact of reduced domestic consumption and demand in 2017,"" Verisk Maplecroft's Skinner said. In recent months, Erdogan has applied intense pressure to commercial banks to increase loans to the private sector in an attempt to boost flagging economic growth. Erdogan has also been pressuring the central bank for some time to lower interest rates to support economic growth. The country has been hit by rising regional tensions, political uncertainties amid widening concern about the crackdown following the failed coup, which also battered its currency. ""The government is currently struggling to finance a series of high-profile infrastructure projects. Erdogan hopes these will boost his domestic prestige and enable him to consolidate his grip on power through the introduction of an executive presidential system with almost no checks or balances,"" said Piccoli. The Yavuz Sultam Selim bridge, which spans the banks of the Bosphorus, was opened in August 2016 Fiscal discipline? Some are concerned about the motive of the decision, despite the claims by the government that the fund will not compromise fiscal discipline. ""I think there are several reasons for concern. One is that it suggests that Turkey is unlikely to privatize key companies in which the state has an interest (providing further evidence that the reform agenda is unlikely to restart). Another reason is that it could provide scope for a significant loosening of fiscal policy,"" Capital Economics economist William Jackson told DW. The fund, approved by parliament in August, is headed by Mehmet Bostan, a former banker and head of the privatization administration last year. Appointments to the board included Erdogan's advisers and aides. Sovereign wealth funds are often associated with oil producing countries, such as Norway or Gulf states, who set aside money from energy exports for investment. Norway's $890-billion (832 billion euros) sovereign wealth fund is the world's largest. ""One final point I would make is that we tend to think of wealth funds (such as those in the Gulf) having significant foreign currency assets; ultimately, those can be sold to improve the balance of payments position. But, Turkey's wealth fund would hold lira assets, so it couldn't be used in the event of another balance of payments shock,"" Jackson said. Opposition politicians expressed concerned about the move. Opposition party CHP lawmaker and former treasury undersecretary Faik Oztrak told a press conference that ""this government set up a wealth fund to pledge the assets left by our ancestors to borrow and cover up the volatility in the economy until the referendum.""", -222,2017/2/7,http://www.dw.com/en/poland-wants-nuclear-weapons-for-europe/a-37449773?maca=en-rss-en-all-1573-rdf,Poland wants nuclear weapons for Europe,"Jaroslaw Kaczynski, chairman of Poland's ruling Law and Justice Party (PiS), has in a newspaper interview called for a European nuclear superpower. Is this a debate we really need to have?","The strongman of Poland's ruling national-conservative party has stoked a debate that was previously held in only a very limited capacity. In an interview with the daily ""Frankfurter Allgemeine Zeitung,"" Jaroslaw Kaczynski said Europe should be a superpowerwith a nuclear arsenal to rival that of Russia. He conceded that such a program would, however, be very costly and that he did not anticipate such investment. That aside, Kaczynski has broached a taboo subject typically only embraced by individual voices. One example is German parliamentarian Roderich Kiesewetter, of the conservative Christian Democrats, who recently told Reuters news agency that ""Europe needs nuclear protection as a deterrent"" if the United States were no longer to extend its protection. But how realistic are such ideas? Franco-British nuclear capability? ""It's not surprising that we'r seeing this kind of debate now,"" said Nick Witney, former head of the European Defense Agency and now a senior fellow at the European Council on Foreign Relations. In principle, it's about the question of whether US President Donald Trump is prepared to sacrifice Chicago to save Warsaw. And what would his answer to that be? The political situation has changed so quickly, and with it the current state of defense policy. But how credible would a European nuclear deterrent be? Thirty years ago, London and Paris would have been flattered to be chosen as the defenders of the European continent. But what EU state would be prepared to accept such a nuclear defense force now? Never mind what Britain's decision to leave the EU has done to whatever credibility that idea still had. How credible would Britain be as a nuclear deterrent power for Europe? For his part, Witney says he doesn""t believe in a common European nuclear power. ""You would need institutions for that which the EU doesn""t have,"" he said. That leaves just France with its nuclear weapons which, in an emergency, could perhaps still just about ""rip the arm off of a Russian bear."" Witney's conclusion: ""The discussion is very much one that is on the fringe, if not completely out of the realm of the possible."" EU nuclear weapons would be a mistake ""There is no concrete threat,"" said Ulrich K��hn of the Carnegie Endowment for International Peace. The arguments for such a discussion are all there now in the Trump era, but at the same time, he says, this is ""not helpful."" NATO still exists, and under US leadership, conventional weapons are being stationed in Poland stationed in Poland and the Baltics. As long as NATO exists, Europeans should stay away from a nuclear race, he said. Moreover, K��hn added, the suggestions are not practical. ""Russia has between 2,000 and 3,000 tactical nuclear weapons,"" meaning that Europe would face enormous expenses if it were to acquire an adequate arsenal to serve as a deterrent. And the main question is who would control the red button? Aside from these issues, there's also the fact that a majority of European citizens, including those in Poland, are against engaging in a nuclear arms race. K��hn also believes it is dangerous that the non-proliferation treaty would effectively be voided if the Europeans were to withdraw from it. ""That would have global consequences,"" he said. ""You could suddenly see the creation of 55 to 60 nuclear countries - a horrific scenario."" Instead, he said, the Europeans should finally do what they have long talked about doing: Take concrete steps towards realizing defense cooperation, sign agreements and work together on weapons systems in order to be more effective and credible in conventional defense measures. Gahler: 'We don""t want to revive the old arms debates of the 1980s' No to a nuclear arms race Michael Gahler of the defense committee in European Parliament is also in favor of greater EU-wide cooperation. ""We should finally do what the Lisbon Treaty allows us to do, which is to implement structural cooperation,"" he said. Of the 203 billion euros ($217 billion) spent on defense in the EU, 26 billion could be saved or otherwise allocated if the member states would only work together, according to a parliamentary paper on common defense policy. ""Common acquisition, common exercises and common structures"" are the next steps, according to Gahler. But he also said that a nuclear arms race would be a mistake. Although he perceives Russian tactical nuclear weapons as a real threat, he believes that overall, there is a balance when it comes to nuclear deterrents. ""We don""t want to revive the old arms debates of the 1980s,"" Gahler said. While he admitted that Russia and the United States of today were not foreseeable at the turn of the century, Gahler remains firm in his belief that ""this is a debate that should not be started.""", -223,2017/2/7,http://www.dw.com/en/german-cup-bobby-wood-strikes-as-hamburg-reach-last-eight/a-37449884?maca=en-rss-en-all-1573-rdf,German Cup: Bobby Wood strikes as Hamburg reach last eight,Goals from Gideon Jung and Bobby Wood help Hamburg see off Cologne. HSV reach the last eight of the German Cup for the first time in three seasons.,"Hamburg 2-0 Cologne (Jung 5', Wood 76') Hamburg scored a goal in each half to dump Cologne out of the German Cup and reach the last eight. Gideon Jung gave the three-time champions a dream start with a close-range finish inside five minutes, and Cologne never recovered. Hamburg, liberated from their Bundesliga struggles in the Cup, doubled their lead 14 minutes from the end through Bobby Wood, whose low finish nestled in the bottom corner. More to follow.", -224,2017/2/7,http://www.dw.com/en/suspect-in-louvre-attack-breaks-his-silence/a-37448930?maca=en-rss-en-all-1573-rdf,Suspect in Louvre attack breaks his silence,"The man who allegedly attacked security guards at the Paris museum has confirmed his identity to investigators. After initially refusing to cooperate, the 29-year-old Egyptian is now answering police questions.","The suspect in the attack on guards of the Louvre Museum in Paris has started talking to investigators and confirmed his suspected identity, sources told several news agencies on Tuesday. The man confirmed-that he is in fact the 29-year old Egyptian police assumed he was. Though the man is now cooperating with officials, it is not yet known why the suspect carried out the attack, or whether he acted by himself or followed orders. The man allegedly attacked four soldiers who where guarding the Louvre art museum in Paris last Friday with two machetes while shouting ""Allahu akbar"" (""God is the greatest"" in Arabic). The suspect was severely injured when a guard fired at him in self-defense, according to the French Interior Ministry, while one soldier sustained slight injuries. After he was stabilized at a hospital, the alleged attackerinitially refused to answer questionsby police. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Wx5C The man is believed to have entered France on a flight from Dubai eight days before the attack. He reportedly purchased the two machetes at gun store in the French capital two days after arriving. In the past two years, France has been plagued by several terror attacks that have cost a total of 238 lives. The country has officially been in a state of emergency since November 2015, when 130 people died in a series of attacks in Paris.-The threat of terrorism will likely play an important role in the upcoming presidential election in April and May ""?far-right candidate Marine Le Pen has surged in part due to her promises to restore law and order in France. mb/rt (AFP, dpa, Reuters)", -225,2017/2/7,http://www.dw.com/en/lake-chad-countries-need-to-recognize-the-gravity-of-the-crisis/a-37448142?maca=en-rss-en-all-1573-rdf,Lake Chad: 'Countries need to recognize the gravity of the crisis',The Lake Chad Basin crisis is now at a turning point. Boko Haram's attacks and military counter-offensives have displaced at least 2.3 million people.,"The Lake Chad Basin is grappling with a humanitarian emergency affecting some 17 million people across north-eastern Nigeria, northern-Cameroon, western Chad and Niger. Many of those affected have had to flee their homes. The majority of the displaced are sheltered by communities who are themselves among the world's most vulnerable.- The Lake Chad Basin crisis was until recently one of-the fastest growing refugee-crises in Africa and it is becoming the most acute food and nutritional crisis in Africa. It is the fourth biggest humanitarian response for United Nations (UN) and non-governmental organisations-in 2017. Toby Lanzer, the assistant Secretary-General to the UN, spoke to DW ahead of the Oslo Humanitarian Conference on Nigeria and the Lake Chad Region at the end of February.- DW: How is the humanitarian situation in the Lake Chad region? Toby Lanzer: The situation continues to be very grave. I think over the past few months we have understood more fully what is happening thanks to an improved security situation which has enabled the United Nations and its partners to travel further afield from the main town, Maiduguri, and get a stronger appreciation from the people themselves who have been stuck in many villages and towns. -But we know that there are millions of people in desperate need of humanitarian assistance and we are doing our utmost together with the international community to meet the needs. Lanzer says the displaced often end up in vulnerable regions Has the response from-foreign governments been adequate? Well, adequate is a difficult word to use. And I think there are so many crises in different parts of the world. I think that via DW and others we are hoping to get the word out. That there is a particularly grave crisis the numbers are huge 10 million in need, 7 million who are severely food insecure, and 515,000 children who are acutely malnourished. I don""t think any single government on earth in the world could face that alone. International solidarity is required. And that is required at a time when pressures are high all over the globe and so, no, the response is inadequate at the moment but am hopeful that in coming weeks more countries will come on board and help the UN and NGOs-to work with the communities and the authorities of Cameroon, Chad, Niger and of course of Nigeria, to meet the needs. What support do you want from the German government?- I think Germany has really come on board as a very strong supporter in political terms and the chancellor herself has been to Niger one of the key countries in this region. I think that political support usually signals financial support which I understand will be on its way. -And at the end of the day, that's actually what people need because the money will be translated into medicines, food, shelter, and all the other things that people who are in desperate need require on a day to day basis to weather this terrible storm that's afflicted them. What is your wish as far as the donor's conference is concerned? There will be a conference thanks to Germany, Nigeria and Norway, and with support of the UN, the international community will gather in Oslo Norway on the February 24. I think my wish there is really a stronger recognition by a broader range of countries including Canada, the Netherlands, and Korea. Let's say a broader range of countries who recognize the gravity of the situation and the scale of the need and that that they actually join the effort of countries such as Germany, the United Kingdom, the United States and the-European Commission and the UN in meeting peoples various serious need to survive this violence-perpetrated by Boko Haram, which comes on top of abject poverty, climate change and real challenges which have wrecked peoples lives and made it so very difficult for them.- What could the governments of the countries located in the Lake Chad region do? - We are hopeful that, whether it's Cameroon, Chad, Niger or Nigeria,-they will continue to do what they have been which is to do that utmost to care for their own people. But there are limits to what poor countries can do. And you know on that note so many people look at me and say ""-isn""t -Nigeria a rich country?"" Well it is and it is not. At the moment oil production has plummeted.-Oil prices are low so it's a very trying moment for Nigeria to do everything that it would like to for its own-people. But let's congratulate the government of Nigeria and others in the region for having facilitated the work of the aid agencies. For having made sure that we feel welcome,-for making sure that we are safe. This is a difficult part oft the world to be operating in. Violent extremists are not particularly easy by any means when it comes to the populations of the region, but also aid agencies. So the governments really have been very forthcoming trying to do as much as they possibly can, but also welcoming the international communities support in this time of severe crisis. Toby Lanzer is the assistant-Secretary General to-the United Nations and Regional Humanitarian Coordinator for the Sahel region.- Interview: Daniel Pelz", -226,2017/2/7,http://www.dw.com/en/president-moise-inaugurated-in-haiti/a-37436991?maca=en-rss-en-all-1573-rdf,President Moise inaugurated in Haiti,"President-elect Jovenel Moise has been inaugurated in Haiti, putting to bed an 18-month electoral crisis. Several opponents are still contesting his first-round victory though in the crisis-ridden Caribbean state.","The banana exporter has never held political office before and was hand-picked by former president Michel Martelly to represent the center-right Tet Kale Party (PHTK). He is at the center of an unresolved money laundering probe. More than 2,000 people attended as the 48-year-old become the 58th head of state of the first black republic. In February 2016, with Martelly's five-year term nearing its end and his political succession in limbo, Haiti's parliament elected Jocelerme Privert, president of the Senate at the time, to be interim president. The elections were rescheduled for October-and then postponed to November after Hurricane Matthew battered the country. Moise was declared the winner with 55 percent of the votes, but with a dismal turnout of just 21 percent. Austerity has been the motto of the ceremony, as Haiti is suffering from an economic crisis with more than $2 billion in debt and anemic growth that is not expected to surpass one percent this year. The Dominican, Venezuelan, Guyanese and Trinidadian presidents appeared at the ceremonies alongside foreign delegations. The incoming president has also said he had invited the 53 other former presidential candidates to signal his willingness to ease political tensions. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2S5Uo jbh/rt (AFP/Reuters)", -227,2017/2/7,http://www.dw.com/en/us-senate-approves-devos-as-education-secretary-in-narrow-vote/a-37449168?maca=en-rss-en-all-1573-rdf,US Senate approves DeVos as education secretary in narrow vote,President Trump's choice looked set to be defeated with a 50-50 stalemate. But then Vice President Mike Pence stepped in to cast the tie-breaking vote.,"With a tie-breaking vote by Vice President Mike Pence, the US Senate confirmed President Donald Trump's pick for education secretary, Betsy DeVos, on Tuesday.-The Senate had voted 50-50 on the nomination of the controversial billionaire heiress, prompting Pence to cast the decisive vote. Because the vice president also serves as the-president of the Senate, Pence is allowed to vote in the cabinet confirmation process.-The Senate historian said this marked the first time a vice president had to break a tie on a cabinet nomination. Democrats had fought hard against DeVos' confirmation. After Pence cast his vote, Senate Minority Leader Chuck Schumer - who had previously called DeVos ""the least qualified nominee in an historically unqualified cabinet"" - doubled down on his statement-on Twitter.- Two Republicans opposed DeVos It had been a particular divisive-cabinet pick. Teachers unions opposed DeVos' nomination because the former head of the Michigan Republican Party believes in ""school choice"". DeVos champions voucher programs-that allow parents to send their children to the school of their choice - including privately-run, for-profit schools. Teachers advocates believe that this would hurt the funding of public-schools. The 59-year old also-garnered criticism from-civil rights advocates for her conservative religious beliefs. Two Republicans broke-rank in order to oppose DeVos' confirmation, along with all 46-Senators from the Democratic Party and two Independents-closely affiliated with the Democrats. A champion for school choice Democrats held the floor of the Senate for 24 hours ahead of the vote-in an effort to halt DeVos' confirmation. They repeatedly-criticized her lack of experience - the businesswoman has never worked in education --as well as the fact that DeVos has-financial stakes in-organizations promoting private schools. DeVos has-promised to divest herself from these-organizations. During her confirmation hearing, the wealthy Republican donor at times stumbled, leading her opponents to argue that she was unfamiliar with key debates in education policy. President Donald Trump stood by DeVos, describing her as a ""reformer"" and-accusing Democrats of protesting to ""keep the failed status quo"".- Senate Majority Leader Mitch McConell argued in favor of DeVos ahead of the vote, saying that she would-empower states to make important education decisions instead of federal bureaucrats. ""I know that she is committed to improving our education system so that every child - every child - has a brighter future,"" McConell said.- Not the only controversial pick While many of Trump's cabinet picks have already been confirmed, Republicans are hoping to vote another batch of nominees into office this week: Senator Jeff Sessions as attorney general, Representative Tom Price as health secretary and hedge fund manager Steve Mnuchion as treasury secretary. Sessions in particular has been deemed a controversial choice - in 1986, the US Senate denied him a federal judgeship because of controversial, racially-charged-statements former colleagues testified Sessions had made.- Pence (57) is an experienced politician. After working as a lawyer and conservative talk radio host, he served for 12 years in the House of Representatives before becoming governor of Indiana in 2013. The father of three has strongly opposed abortion rights and same-sex marriage throughout his career. He has described himself as ""a Christian, a conservative and a Republican, in that order."" The CEO of oil giant Exxon Mobil has close ties with Russian president Vladimir Putin - he was even awarded Russia's ""Order of Friendship"" in 2013. Despite this, and the Texan businessman's lack of experience in foreign policy, the Senate Foreign Relations Committee narrowly approved Tillerson's nomination. Priebus (44), a lawyer and familiar face on the Wisconsin political scene, has served as director of the Republican National Committee since 2011. He has said that the Trump administration will aim to ""create an economy that works for everyone, secure our borders, repeal and replace Obamacare and destroy radical Islamic terrorism."" After a long career on Wall Street at Goldman Sachs, Mnuchin (53) set up a hedge fund and made millions of dollars buying and rebranding a failed mortgage lender after the 2008 crash. He has since financed several Hollywood movies. Mnuchin wants to cut taxes for businesses and the middle class and will consider public-private partnerships to fund infrastructure projects. The retired Army general - and registered Democrat - was fired as director of the Defense Intelligence Agency in 2014. He has referred to Islamism as ""a vicious cancer inside the body of 1.7 billion people on this planet"" and his son, a Trump aide, recently lost his job for spreading a fake news story that claimed Hillary Clinton's allies were running a pedophile ring from a Washington pizzeria. The Alabama Senator was one of the first members of Congress to endorse Trump. A former lawyer, Sessions (69) takes a hard line on immigration and strongly opposes legalizing of marijuana. Allegations of racism, including a former colleague's testimony that Sessions joked he thought the Ku Klux Klan were ""okay, until I found out they smoked pot,"" cost him a potential federal judgeship in 1986. During his 44-year military career, Mattis (66) earned nicknames like ""Mad Dog"" and ""warrior monk."" He led the US Central Command from 2011 to 2013, and was a key figure in the wars in Iraq and Afghanistan. His appointment as Defense Secretary would depend on a waiver from the Senate, as US law requires that retired military personnel wait seven years before they can take up this role. Upon his retirement in January 2016, Kelly (66) was the longest serving Marine general in US history. As head of the US Southern Command, he was responsible for US military activity in South and Central America, which included oversight of the controversial Guantanamo Bay detention facility in Cuba. Kelly's eldest son was killed in combat in Afghanistan in 2010. The Montana lawmaker and former Navy SEAL commander had been expected to run for the Senate in 2018. Zinke (55) has advocated increased energy drilling and mining on federally controlled land. While skeptical about the urgency of climate change, he does believe it is important for the United States to invest in renewable energy. He describes himself as a ""Teddy Roosevelt Republican."" The former Indiana senator was US ambassador to Germany from 2001 to 2005 under the George W. Bush administration. Coats (73) is considered a mainstream Republican and served on the Senate Intelligence and Armed Services committees. A vocal critic of Russia, he pushed for Moscow to be punished for its annexation of Crimea in 2014. The Kansas congressman is a member of the Republican Tea Party movement and a former Army tank officer. Pompeo (52) has defended the use of torture methods, such as waterboarding, and opposes the closure of the Guantanamo Bay prison. He once said that Edward Snowden, who exposed the National Security Agency's mass domestic surveillance program in 2013, deserved to receive the death penalty. The two-time presidential hopeful said during his 2012 run that, should he get into the White House, he would scrap the Department of Energy. Perry (66), who served as governor of Texas for 14 years, sits on the board for the parent company of Dakota Access LLC, which is pushing to build the controversial Dakota Access pipeline. He once called Trump a ""cancer on conservatism."" The former chairman of right-wing website Breitbart News became Trump's campaign chief in August. His CV also includes stints as a naval officer, investment banker and Hollywood producer. Ben Shapiro, a former editor-at-large of Breitbart, described Bannon as ""a nasty figure"" and ""a smarter version of Trump"". Carson, a retired neurosurgeon from Michigan, made his first foray into politics as one of Trump's rivals in the Republican presidential primary. During the campaign, Carson made controversial comments on topics such as evolution and climate change. The investor and former banker made billions in restructuring failing companies in industries such as steel and coal, later investing in troubled European banks during the financial crisis. Ross, 79, was a vocal Trump supporter during the election campaign and believes the US needs a ""more radical, new approach to government."" Lighthizer served as deputy trade representative during Ronald Reagan's presidential administration. He returns to government after working as a lawyer for US steel companies for nearly three decades. Like Trump, the 71-year old has argued that the US needs to defend its economic interests against China more aggressively to reduce the US-China trade deficit. Andy Puzder, chief executive of CKE Restaurants, which runs fast food chains Hardee's and Carl's Jr., has long argued against higher minimum wages and government regulation in the workplace. He has frequently criticized the new Labor Department rule that extends overtime pay to more than 4 million workers, and praised the benefits of automation in the fast food industry. As a prominent figure in the ""school choice"" movement and chair of the American Federation for Children, DeVos is an advocate of charter schools, which are publicly funded but privately run. She is a long-time Republican Party donor and her father-in-law is Richard DeVos, the billionaire founder of US company Amway. In 2001, Chao was appointed Labor Secretary under George W. Bush, becoming the first woman of Asian descent to take a US Cabinet position. She previously worked in banking and as director of the Peace Corps, expanding its presence in Eastern Europe and Central Asia. Chao (63) immigrated to the USA from Taiwan at the age of eight and is now married to Senate Majority Leader Mitch McConnell. The former orthopedic surgeon was elected to the House of Representatives in 2012 and named Budget Committee chair in 2015. Price, 62, is a staunch opponent of Obamacare, advocating a system based on medical savings accounts. Price has voted against federal funding for abortion and opposes gun control. Over the past five years, the Oklahoma state attorney general - a vocal climate-change skeptic - has brought multiple lawsuits against the very organization he is now due to lead. Pruitt said: ""I intend to run this agency in a way that fosters both responsible protection of the environment and freedom for American businesses.�?The former CEO of World Wrestling Entertainment (WWE) spent an estimated $100 million on two unsuccessful Senate campaigns in 2010 and 2012. She has supported reduced financial regulation and a lower corporate tax rate. Trump described her as ""one of the country's top female executives advising businesses around the globe."" Mulvaney was voted into the House of Representatives in 2011 as a ""Tea Party"" Republican. As someone who opposes federal governmental spending, the 49-year old from South Carolina could help Trump defund the Affordable Care Act, but might also be at odds with his trillion dollar infrastructure investment plan. Donald Trump's son in law, who already served a pivotal role in his campaign, will also serve as an adviser in the Trump administration. The son of real-estate tycoon Charles Kushner is married to Trump's daughter Ivanka. He previously worked in real estate and publishing and had never worked in politics before the start of the Trump campaign. Haley (44) is serving her second term as the Governor for South Carolina. After the mass shooting at an African-American church in Charleston in 2015, Haley, who is the daughter of Indian immigrants, pushed for the confederate flag to be removed from the grounds of the South Carolina state house. She referred to Trump's proposal for a temporary ban on Muslims entering the US as ""un-American."" Shulkin already served as Under Secretary of Veterans Affairs for Health under President Barack Obama. The 57-year old medical doctor previously also worked as Chief Medical Officer at a university hospital in Pennsylvania. Author: Rachel Stewart, Mara Bierbach mb/rt (AFP, AP, dpa, Reuters)-", -228,2017/2/7,http://www.dw.com/en/Reichsb��rger-raided-in-three-german-states/a-37448473?maca=en-rss-en-all-1573-rdf,Reichsb��rger' raided in three German states,"Police have raided fifteen homes and offices belonging to ""Reichsb��rger"" in three German states. The far-right suspects are accused of using forged documents to deny the existence of the modern federal republic.","Prosecutors based in Ingolstadt, Bavaria, said the raids were aimed at 16 suspects - two of them women and aged between 40 and 62 - involved in the spread of counterfeit documents and impersonation of officialdom. The raids involving 250 police and prosecutors, including special squads, were focused on Bavaria but also two locations in the neighboring federal states of Baden-W��rttemberg and Rhineland-Palatinate. You might be interested in reading this: Reichsb��rger movement on the rise in Germany Ingolstadt police spokesman Hans-Peter Kammerer said seven of the 16 persons targeted Tuesday were suspected of acting as self-appointed officials of a fictional ""State of Bavaria"" based in Pliening, east of Munich. Charges pending, says police spokesman Kammerer The others were suspected sympathizers who had obtained and used fake documents. The accused had deluged authorities with written objections to fines and confiscation orders ""in which they expressed their crude legal views and lodged counterclaims,"" according to the Ingolstadt police bureau. The contents amounted to attempted extortion, attempted coercion and impersonation of officialdom, investigators said, who said the probe had begun last week into the issuing of falsified identity documents and drivers' licenses. This 'passport' seized last June asserts the existence of the 'German Reich' Grouping numbers 10,000 Last month, the federal head of Germany's VfS domestic intelligence service Hans-Georg Maassen said the ""Reichsb��rger scene"" of activists and sympathizers - mostly middle-age white males - was thought to number about 10,000. Of these, 500 to 600 were known right-wing extremists, Maassen said, adding that his Cologne-based agency was worried about the movement's ""considerable propensity for violence and increased aggressiveness."" Most high-profile incidents have emerged in Germany's formerly communist east and in the southern state of Bavaria. Denial of modern Germany's existence 'Reichsb��rger' refuse to recognize the legitimacy of the post-war Federal Republic of Germany and its constitution, and believe in the continued existence of the pre-war German Reich. Last October, a suspected far-right member opened fire in northern Bavarian town of Georgensgm��nd, near Nuremburg, wounding four policemen, including a 32-year-old special forces officer-who later died. The accused faces a murder charge. Reichsb��rger do not recognise the Federal Republic of Germany as a legitimate state After that killing, some German regional police forces checked their own ranks in search of possible 'Reichsb��rger"" in uniform. 'Mister Germany' Last August, a one-time ""Mister Germany"" pageant winner opened fire at his home in the eastern state of Saxony-Anhalt, slightly injuring three police officers. Two weeks ago, police raided 12 locations nationwide and detained two suspected members of a terror cell. And on Tuesday, federal prosecutors said one of those accusedarrested in Brandenburg, a so-called ""Druid,"" was also facing charges of illegal weapons possession. ""If they have access to weapons, they pose an extreme threat,"" said Heiko Homburg, an intelligence official of another eastern state, Brandenburg. ipj/rt-(AFP, dpa, Reuters)", -229,2017/2/7,http://www.dw.com/en/live-last-16-german-cup/a-37447173?maca=en-rss-en-all-1573-rdf,Live: Last 16 - German Cup,"Bayern Munich hope to take a step closer to a 19th German Cup title when they host Wolfsburg in the last 16. Elsewhere, Borussia M?nchengladbach meet Greuther F��rth, while Hamburg host Cologne. Follow the action here.",, -230,2017/2/7,http://www.dw.com/en/scottish-parliament-rejects-brexit-in-non-binding-vote/a-37448650?maca=en-rss-en-all-1573-rdf,Scottish parliament rejects Brexit in non-binding vote,Scotland's devolved parliament-has officially opposed Westminster's march towards Brexit. The outcome of the vote could now serve as a basis for a second referendum for Scottish independence.,"With 90 votes to 34, Scottish parliament voted overwhelmingly against triggering Article 50 of the Lisbon Treaty on Tuesday - with most of the votes against coming from UK Prime Minister Theresa May's-own party, the Conservatives. British lawmakers in Westminster are-currently debating-legislation which will start the Brexit process. The Scottish government argues, however, that the draft bill should not proceed, as Westminster has allegedly failed to set-the necessary provisions with the devolved administrations (of Scotland, Wales and Northern Ireland) on reaching a UK-wide approach on Brexit.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WtWT 'Far more than symbolic' Ahead of Tuesday's non-binding vote,-Scottish First Minister Nicola Sturgeon-said it-was-one of the most important in the semi-autonomous parliament's 18-year history. ""This vote is far more than symbolic. It is a key test of whether Scotland's voice is being listened to and whether our wishes can be accommodated within the UK process,"" Sturgeon said. Soon after the vote, Scottish First Minister Nicola Sturgeon-confirmed the result-on Twitter, writing that Scottish parliament had voted ""overwhelmingly"" against triggering Article 50 of the Lisbon Treaty. Although the vote was non-binding, Tuesday's outcome could now serve as groundwork for a second referendum for Scottish independence.-The UK's Supreme Court-ruled last month that the launch of Brexit-talks with the EU must be approved by the British parliament, but that May has no-legal obligation to consult the devolved administrations in Scotland,-Wales and Northern Ireland. However, prior-to the 2014 Scottish referendum---which saw-55 percent of the Scottish population vote-in favor of remaining part of the UK --Scotland was-told it would be an ""equal partner"" in the British union if it rejected independence. Almost two years later in June's EU referendum,-Scotland voted to remain in the EU by 62 percent, but was outvoted by England which has a vastly larger population. In total, 52 percent of the UK-population voted in favor of Brexit,-leaving the country divided in the aftermath. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JMFf Asked on Thursday whether London would facilitate plans for a second Scottish independence referendum before 2020, UK Defense Minister Michael Fallon told Scottish paper the Herald: ""No, forget it."" After later being challenged again, during a live interview with BBC Radio Scotland, Fallon answered:-""We've made it clear that there's no need for a second referendum."" MPs to vote on Brexit deal Ahead of the Scottish parliament's vote-on Tuesday, the UK-government appeared to-bow to opposition-pressure, as Brexit Minister David Jones announced that MPs-will get to vote on the Brexit deal before it is ""concluded"" and before the European Parliament votes on it. Jones told the House of Commons that the vote will cover Britain's withdrawal arrangements and its future relationship with the EU. Keir Starmer, Brexit spokesman for the opposition Labour Party,-described the announcement as a ""huge and very important concession,"" but-demanded more details. Britain's Conservative-government wants to pass the bill through parliament by early-March and trigger the two-year EU divorce process by March 31.", -231,2017/2/7,http://www.dw.com/en/german-intelligence-finds-no-evidence-of-putin-disinformation-campaign/a-37448072?maca=en-rss-en-all-1573-rdf,German intelligence 'finds no evidence of Putin disinformation campaign',Germany's secret services have found little evidence that the Kremlin is directly trying to manipulate the country's public opinion. But the leaked government report suggests that indirect methods may be at work.,"Russian President Vladimir Putin is not deliberately trying to undermine Chancellor Angela Merkel ahead of her impending re-election campaign - or at least, if he is, he is hiding his tracks well. That's the inconclusive conclusion that Germany's foreign and domestic intelligence agencies came to last fall, following several months of investigation which was delivered to Merkel's chief-of-staff Peter Altmaier in the form of a 50-page report. Altmaier chose not to make the report public, but it was leaked to the ""S��ddeutsche Zeitung"" newspaper this week. According to the paper, the BND (Germany's equivalent of the CIA) and its domestic counterpart, the Verfassungsschutz (BfV), was charting a ""middle way"" between two conclusions - firstly, that the Russian government is not directly spreading misinformation in Germany, and, secondly, that it is, but it couldn't be proven. ""An open/direct control or financing through Russian state authorities or Russian intelligence agencies could not be proven in any cases,"" the report said. Nevertheless, such activities ""could be carried out by people and organizations outside the services."" Though these various external protagonists ""were not playing a prominent role in endangering Germany's security interests,"" ""further investigative efforts"" were still necessary, the intelligence agents added. Merkel commissioned the report into Russian intervention Threads to the Kremlin Despite not being able to find any direct evidence, the German spies seemed convinced that the Russian government is coordinating a campaign to ""sow disunity in the EU and Germany, and so to weaken their position of power"" from the highest levels of the Russian government: ""The bundling of all the influencing activities in the presidential administration does represent a significant success factor."" The report listed three well-publicized examples of how Russian actors may have spread misinformation in Germany - or at least about Germany. The first was the case of ""Lisa,"" a 13-year-old Russian-German living in Berlin, who told police in January 2016 that she had been raped by people of ""Mediterranean appearance."" Though she later admitted to having made the story up, the case made international headlines and sparked protests outside Merkel's office by both far-right groups and the Russian community in Berlin. The situation escalated when Russian state media and the Foreign Minister Sergey Lavrov accused the German police of covering up the crime. ""The news that she disappeared was kept secret for a very long time,"" Lavrov told a press conference. The newly-leaked German intelligence report also noted a Russian-language WhatsApp message that was widely distributed among Russian-speaking Germans last winter, which read, ""Muslims organizing a sex-jihad in Europe on February 14."" This was part of a conspiracy theory alleging that a Muslim hate preacher had called on his followers to mass-rape German women on that date. Since the message was deemed ""amateurish,"" the German intelligence agencies concluded there was no involvement from Russian secret services. Meanwhile in other cases, the German chancellery decided that the agency's conclusions were too speculative - one of the reasons it was not made public. No clear agenda Mark Galeotti, Russian security specialist at the European Council on Foreign Relations, said this lack of clarity was nothing new. ""There's no question that Russia is supporting and sponsoring a campaign to use disinformation to try and have a political impact,"" he told DW. ""The issue isn't: 'Is there a fake news campaign?' Yes, of course there is. The issue is: 'Is all fake news Russian?' The answer is clearly not."" Altmaier said much of the evidence was inconclusive ""There is evidence of the Kremlin's involvement, but there isn't evidence of how effective it is,"" Galeotti said. ""The Kremlin puts a lot of money into its soft power arms like [state news outlet] RT and we know that the Kremlin lies to a considerable degree for political effect. We also know there are attempts to carry out more covert and subversive acts - secret funding for political groups, that kind of thing."" Indeed, the new German report found ""possible Russian influence attempts"" being made on Germany's nationalist Alternative for Germany (AfD) party. Russia's alleged hack on the Democratic National Convention in the US last year unsettled many in Germany who wonder whether the Kremlin may be planning a similar attempt to sabotage the Bundestag election in September - even if the hack's ultimate effect on the US vote, balanced against other factors, is impossible to quantify. Not only that, is toppling Merkel actually Moscow's conscious policy? ""Well maybe - but there's a certain degree of stability in having Merkel as chancellor, and you never know quite what an alternative government would mean,"" pointed out Galeotti. ""It's not like the Russians want to conquer Europe - I don't believe that for a minute - but what they do want to do is ensure that Europe is too divided to prevent Russia from imposing its will on Ukraine, and Belarus, and Georgia."" Furthermore, just because Russia has state news outlets doesn't mean they are constantly being controlled by the state. ""I know people who work in the RT newsroom,"" said Galeotti. ""Occasionally, yes, there is the phone call that says, 'this is the line' when something big happens. But usually when there's a story, there are bunch of people who know roughly what the Kremlin wants, and they say, 'can we use this, can we spin this?' It's almost entrepreneurial disinformation. It's opportunistic.""", -232,2017/2/7,http://www.dw.com/en/opinion-this-is-not-echte-liebe/a-37445915?maca=en-rss-en-all-1573-rdf,Opinion: This is not Echte Liebe,"The violent attacks on Saturday in Dortmund are damaging for German football. Regardless of what Dortmund fans feel about tradition, violence is never the solution, writes Jonathan Harding.","At the bottom of theS��dtribune on Saturday, a large, yellow banner with black words read: -'For the people's sport of football, against those who destroy it.' Dortmund-fans' are absolutely entitled to defend the tradition of their club. But the ugly scenes that marred one of the Bundesliga's biggest games of the season-showed a demonstration of pride isn't enough for them, they now want to-attack the freedom of other fan's to oppose those views. Not just with banners but with makeshift weapons. The assaults on-blameless Leipzig fans must have come as a shock to the numerous people who gaze at Germany's football culture with-envy. Even before Germany won the World Cup in 2014, the country worked-hard to market 'the German football experience' --and with good reason. Cheap tickets, great atmosphere, the inclusive role fans play - and the great football. Hundreds flew in for a weekend of football at Borussia Dortmund or Schalke. It was a chance to become part of a raw football community centered around Saturday afternoons. The imposing-yellow and black wall in-the Signal Iduna Park is one of the main reasons so many travel to Dortmund, but there was something very-different about it on Saturday. Even before the game, the atmosphere-felt tenser. By the time the game-kicked off-it sounded louder. It turned out it was also a lot more sinister. DW's Jonathan Harding This match-was an opportunity-to expel-a hatred that has been bubbling under ever since Leipzig arrived in the Bundesliga. Dortmund fans (and many football fans for that matter)-are rightly aggrieved that this club from the east has bypassed the one rule (50+1 rule) holding the stitches of the German-game together.-But-attacking, spitting or hurling abuse at others just for supporting their team is a world away from feeling wronged by an administrative body. Football violence is not a new phenomena, but the motive for these attacks is. How can it be at all acceptable to harm-someone because you don't like the way their team is run? RB Leipzig have satisfied the yearning of-fans in the east of Germany-for quality, top-flight football. They've created a-new culture - one that quite frankly is preferrable to some of the moronic elements of the one they-met on Saturday. Whether Leipzig have played by-the rules is a different question. German FA (DFB) President Reinhard Grindel has called for a change in the culture of violence in German football. There needs to be an end to the culture of violence, not a change. No one is asking for the emotion of football to be lost, but there is a world of difference between emotional support and physical-rage.", -233,2017/2/7,http://www.dw.com/en/what-goes-on-in-a-far-right-facebook-filter-bubble/a-37446682?maca=en-rss-en-all-1573-rdf,What goes on in a far-right Facebook filter bubble?,People tend to surround themselves with like-minded people - filter bubbles have taken that to a new level. Two German reporters were shocked when they entered the world of the far-right on Facebook via a fake account.,"What goes on in far-right filter bubbles on Facebook? To find out first-hand, two TV reporters for Germany's ZDF broadcaster created a fake account - 33-year-old ""Hans Mayer,"" a proud German patriot with a clear penchant for right-wing topics. They encountered a world of closed groups, hatred, lies and agitation. ""Mayer,"" the reporters quickly learned, was surrounded by many like-minded men and women in a filter bubble that had little to do with reality and where objections never stood a chance. A filter bubble results from a personalized search and a website's algorithm selecting information a user might want to see, withholding information that disagrees with his or her viewpoints. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2VtOa Virtual expedition These filter bubbles are a ""great threat to democracy,"" ZDF reporter Florian Neuhann says. He and his colleague David Gebhard had an idea of what went on in far-right filter bubbles, Neuhann told DW, but were ""totally taken aback by the speed at which their fake account accumulated Facebook friends and the utter absurdity of the stories being spread."" People in filter bubbles focus their hatred on the same person or phenomenon - like Chancellor Angela Merkel or refugees - and they whip each other into a frenzy to outdo one another with abuse, explains Wolfgang Schweiger, a communication scientist at Hohenheim University. 'Mayer' delved into a parallel society, Neuhann says On day three of the experiment, ""Hans Mayer's"" timeline brimmed with fake news and lurid headlines: stories about government plans to take away the children of right-wing critics, a report stating that the city of Cologne canceled its carnival celebrations for fear of refugees, fake Merkel quotes - all shared thousands of times. The reports often followed a pattern, with an actual source hidden somewhere in the story that had dealt with the issue on hand, however remotely. Worldwide, populists benefit from such activities; their supporters rarely challenge the ""facts"" they are presented. Alarming radicalization Humans, Schweiger says, tend to believe information passed on by those who hold the same or similar views they do. A week into the experiment, ""Mayer"" had many friends on Facebook and was invited into closed groups where users openly urged resisting the system. Forget inhibitions: Interspersed between cute cat photos and pictures of weddings, posts would read ""Shoot the refugees, stand them in front of a wall and take aim,"" while others denied the Holocaust. No one objected. Blind to other people's views By day 12, ""Mayer"" had 250 Facebook friends - real people who never met him in person but felt he shared their beliefs. Neuhann and Gebhard wondered what would happen if ""Mayer"" were to pipe up and disagree. The refugee situation in Germany has led to a rise in outspoken right-wing sentiment So they posted official statistics showing that crime rates have not risen despite the influx of hundreds of thousands of refugees into Germany. To no avail, Neuhann-says: ""We were either ignored or insulted.""- It's a parallel world, Neuhann says. Part of the bubble is so far gone there is no way reasonable arguments can reach them, he adds, arguing that some people are only partially involved. They still have a life and maybe a job, so they might be approachable, though ""perhaps not as much online as offline."" Asked whether the reporters are afraid now that their story is out in the open, Neuhann says no, since ""Hans Mayer"" wasn't the fake account's real name. It hasn't been deactivated, but the journalists broke off their experiment after three-weeks. The right-wing-filter bubble continues to exist.", -234,2017/2/7,http://www.dw.com/en/star-wars-composer-john-williams-turns-85/a-37439812?maca=en-rss-en-all-1573-rdf,'Star Wars' composer John Williams turns 85,"John Williams has created soundtracks to some of the top-grossing films of all time. His music has etched itself into our memory, from ""Jaws"" don't-get-in-the-water warnings to ""Star Wars"" inter-galactic battle tunes.","The name John Towner Williams may not ring any bells initially, but there's a good chance you've heard him before. Williams, who celebrates his 85th birthday on February 8, 2017, is one of the most heard composers of our time, having written the soundtracks to the of the biggest blockbusters of the past half-decade.- The New England-born composer and pianist got his start in 1955 as a student at the Juilliard School of Music after serving in the Air Force. After his studies, he moved on to Los Angeles, where he recorded with Henry Mancini throughout the 1960s while composing for some of the most popular television series of the time. His music set the backdrop for paradise-gone-wrong on the series ""Gilligan's Island,"" created the mood in ""Lost in Space,"" and later provided the theme music for the drug-addled antics in 1967's ""Valley of the Dolls,"" for which he received his first Oscar nomination. Inspired by Richard Wagner and Pyotr Ilyich Tchaikovsky, Williams has won-numerous awards throughout his career, becoming-the second-most-nominated person in Academy Award history with 50 Oscar nods. Among his Oscar-award-winning compositions are the scores for the cinematic successes-""Schindler's List,"" ""E.T.,"" ""Star Wars,"" ""Jaws"" and ""Fiddler on the Roof."" He likewise holds 22 Grammys, four Golden Globes and seven British Academy Film Awards to his name. Setting movies to music As the theme music to many of the highest-grossing films of all time, Williams' scores have helped instill-many film-goers with unforgettable-emotions:-The ominous two-note ostinato from ""Jaws"" still rings in many of our ears when we step into an ocean and a pit of dread forms in our stomachs.- The leitmotifs that run through the-""Star Wars""' space-epics made the soundtrack one of the highest grossing non-popular music recordings of all time. It's hard to imagine Superman taking flight or Indiana Jones running from a giant boulder without the blast of trumpets. Even Harry Potter's magic wand gains new life when waved to the sounds of Williams' compositions. Despite all the successes Williams has achieved thus far in his career, he shows no signs of slowing down at 85, continuing to lend his talents to numerous films. A good friend of Stephen Spielberg's, he has written the soundtracks for-""Munich,"" ""The Adventures of Tintin"" and, more-recently, ""The Book Thief"" and-""Lincoln."" Next up: the music for the latest in-the Star Wars-series. -", -235,2017/2/7,http://www.dw.com/en/losses-continue-to-rack-gm-s-opel/a-37447908?maca=en-rss-en-all-1573-rdf,Losses continue to rack GM's Opel,"Despite intense efforts to turn a profit, Opel has yet to come out of the red. But business for the European automaker's American parent company, General Motors, is booming, with the firm posting record sales worldwide.","GM's European subsidiary Opel last year failed once again in its attempt to turn into a profitable entity. GM announced Tuesday that Opel's losses for the full year 2016 stood at around $257 million (239 million euros). The parent company, however, profited from positive conditions in its home market, the United States, which allowed it to boost sales of pickups and SUVs. The Detroit-based automaker was also able to replicate its success across the world, selling a record number of around 10 million vehicles.- The firm's annual revenue, meanwhile, rose nine percent to about $166 billion. Net income, however, fell 2.7 percent to $9.4 billion. GM currently ranks third among global automakers, behind Germany's Volkswagen and Japan's Toyota. While Volkswagen sold 10.3 million vehicles worldwide in 2016, Toyota followed closely with sales of 10.18 million vehicles. Opel CEO Karl-Thomas Neumann has-blamed the British vote to leave the EU and the consequent fall in value of the pound sterling for the company's bad results. Opel would have made a profit if the pound hadn't depreciated the way it did, he said, noting that the carmaker improved its earnings by around $600 million during the previous year. Opel is also planning to launch a number of new models this year, as part of its efforts to reverse its fortunes. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WsmK sri/uhe (dpa, AFP) - -", -236,2017/2/7,http://www.dw.com/en/un-envoy-inhumane-things-are-happening-in-libya/a-37447848?maca=en-rss-en-all-1573-rdf,UN envoy: 'Inhumane things are happening in Libya',The EU wants better cooperation with North African countries to resolve the migration crisis. Repatriation to Libya is also on the table. But UN special envoy to Libya Martin Kobler says that's a bad idea.,"Deutsche Welle: The EU is discussing what steps it can take to resolve the migration crisis. One option under consideration is sending migrants back to Libya. What's your view on that? Martin Kobler: Of course, I understand that the Europeans want to stem the flow of migrants from and via Libya, but at this point in time, repatriation to Libya is not a viable solution. There are inhumane things happening here. There are human traffickers at work, there are crimes against humanity. All this has to be stopped. There are international standards, the Geneva Convention has to be respected. And that's why people shouldn't be sent back to face terrible circumstances, such as those in Libyan refugee camps. I think everyone can agree on that. Could you describe the conditions in the camps? They're not like the refugee camps in Jordan, with tents from the UNHCR. The camps in Libya are very crowded, and some people have to sleep standing up or on top of one another, or take turns. Around 10 percent of the male refugees are malnourished. Then there's the problem of disease and abuses by the state. People are being beaten and raped, and some have even been shot. It's completely lawless, there's no order. These are not the kind of circumstances under which you can send refugees back to Libya - that would be completely unacceptable. Again, I understand that the EU and Germany want to limit the number of refugees coming to Europe. But you can't send them back to camps where they will go hungry, be tortured and raped. The fact that neither Germany nor the EU has diplomatic missions in Libya shows how precarious the security situation is there. What has to happen to create the kind of conditions where refugees could be sent back to Libya? Martin Kobler is the UN Special Representative for Libya The solution lies in building up strong state structures. And when Libya is once again a country where there is rule of law and where human rights in the camps can be guaranteed, then we can talk with the government about the possibility of bringing people there. But in the more immediate term, how can we prevent people using Libya as a starting point for their journey to Europe? We need to extend the reach of the coast guard. And we have to improve the humanitarian situation in the camps. And thirdly, we need to increase the number of people who would voluntarily return to their home country. Last year, we sent 3,000 people back to their country of origin. The fourth element lies in improving the situation in the countries of origin, because people don't choose to undertake such a long journey if there is no good reason. Usually, they choose this option if they are subject to political persecution or economic hardship. If the Europeans can work with the countries of origin to improve conditions, then fewer people will make the choice to leave. Libya is considered to be a crisis region. How long will it take before the situation there improves? I don't want to make any predictions about that. The situation here has stabilized somewhat. We have started a political process, but there are no effective state structures. And it's impossible to say how long it will take before there is a proper government in place. Libya has rarely ever had strong state institutions. This is a country that can look back on two generations of the Gadhafi dictatorship - it's hard to get over something like that overnight. Libyans know that, the international community knows that. But we're working hard so that this country which has the largest oil reserves in Africa, no longer needs the support of the international community, and so that the people of this country can enjoy the prosperity that they deserve. Martin Kobler previously served as the German ambassador to Egypt and Iraq. Since November 2015, he has been the Special Representative of the Secretary-General and Head of the United Nations Support Mission in Libya (UNSMIL). UNSMIL recently published a study on the conditions in camps in Libya. Interview by: Nicolas Martin", -237,2017/2/7,http://www.dw.com/en/ex-white-house-ethics-lawyer-warns-trump-to-use-better-judgement-in-public-statements/a-37442721?maca=en-rss-en-all-1573-rdf,Ex-White House ethics lawyer warns Trump to use better judgement in public statements,"To avoid potential future moves to oust him from office, President Trump should be more careful in what he says, the former chief ethics advisor to President Bush tells DW. He also compares the two Republican presidents.","DW: Donald Trump has handed over the management of his businesses to a trust run by his sons. A Trump lawyer also said that the company would not engage in any new foreign deals during Trump's tenure and that new domestic deals would be vetted rigorously by a neutral ethics advisor. What's wrong with that approach? Richard Painter: The president still owns the businesses, which means that all the money that is paid into the businesses is for the financial benefit of the president. And the money that comes from foreign governments, banks controlled by foreign governments or sovereign wealth funds is in violation of the United States Constitution. The Constitution specifically prohibits anyone who holds a position of trust with the United States government, including the president, from receiving economic benefits from foreign governments. So that money from foreign governments and entities controlled by foreign governments is unconstitutional. Other money coming into the Trump business empire from private sources creates serious conflicts of interests. We are very concerned about the president having investments all over the world in places where there could be all sorts of trouble. That is not a good situation for the United States and so we feel strongly that the president needs to divest ownership interest from his businesses. The head of Germany's BGA foreign trade association has said new economic alliances are required to offset the expected negative impact from Donald Trump's protectionist agenda - and keep German exports strong. (07.02.2017) US President Donald Trump has lashed out against a federal judge over legal pushback against his travel ban. Though that is disturbing, the good news is that the system of checks and balances seems to be working. (06.02.2017) A court in San Francisco is to hear the US Justice Department's arguments over whether the entry ban should be restored. The order, which temporarily bars people from seven Muslim-majority states, is currently on hold. (07.02.2017) You along with several other prominent lawyers and the watchdog group Citizens for Responsibility and Ethics (CREW) have sued President Trump under the so called Emoluments Clause, which bars high government officials from receiving gifts or money from a foreign state. You filed the suit a few days after the inauguration. What is the current state of the lawsuit? This is one of dozens of lawsuits against the president in his official capacity because the way in which the president has chosen to run his administration and conduct his business. Our lawsuit asks the judge to look at the foreign government payments coming into the Trump business empire, to look at the Constitution and decide what the president can and what he cannot keep under the Constitution. The suit has been filed and the judge shall decide what the procedures going forward shall be and when decisions will be made. That is out of our control at this point. While many legal experts agree that you may be right on the issue, they argue that you don't have the necessary ""standing""-to win the case, meaning that you are not personally hurt and affected by the case. How do you counter that? The federal courts in the New York area where we filed the suit have been willing to give standing to organizations such as ours which had to substantially alter their work and their mission and have been affected by the unconstitutional conduct of government officials. There is case law in the second circuit court supporting our positions and we hope that the courts do give standing. Ultimately the Supreme Court may have to rule on that issue. If the courts do not give standing to organizations such as ours, then the courts may end up not deciding this constitutional question at all and the alternative would be for the House of Representatives in two or three years to convene a hearing and investigate and find out what foreign government money the president has received and then think about what action to take. The problem is that this is a very politicized process and will be for sure if the Democrats ever get control of the House of Representatives. It could result in impeachment of the president - a constitutional crisis - and this is something we believe can be avoided if the courts in a much more neutral manner are willing to give us standing and then decide what the president can keep and what he cannot. Former chief White House ethics lawyer Richard Painter Much has been made recently by opponents of the president about the 25th amendment as a possible way to remove Donald Trump from office without impeachment. The amendment allows the removal of a president who is deemed unable ""to discharge the powers and duties of his office""-temporarily by a majority vote of the vice president and cabinet, but ultimately requires a two-thirds vote in Congress. Do you consider this as a realistic option at all? The 25th amendment is used to deal with a different situation - when the president is incapacitated, not when he is acting illegally. It is designed to deal with a president who is incapacitated due to the president's physical or mental health. At this point, all I would say is that President Trump should use better judgment in his public statements. That's where we are right now. I don't think the evidence is there at this point to say that the president is not physically or mentally capable of carrying out the duties of the president. But I do think he needs to be somewhat more careful and balanced in what he communicates to the public. You served as the chief ethics lawyer for President George W. Bush. Can you briefly compare how President Bush dealt with ethics questions and how President Trump is handling it? President Bush insisted that he as president set a good example for everyone working in the administration and that he set the right tone at the top. And President Bush, like every other president in recent memory, made absolutely sure that he had no financial conflicts of interests with his official duty. He followed the same rules as everyone in his administration. He did not say that he was somehow special because he was president. He never would have said that the president does not have a conflict of interest unless the president indeed had taken the steps that he took to make absolutely sure that there was no conflict of interest in fact. The president is not above the law and President Bush was adamant about that point. That's one of many respects that President Bush was quite different. He also felt very strongly that our country must welcome people of all religions and races. President Bush right after 9/11 made it very clear that the United States was not in a war with Islam and that we welcome Muslims to our country. We are certainly at war with extremism of any sort and that that is what the war on terror is about. President Bush would never have tolerated any effort to denigrate or discriminate against Muslims in the United States. He recognized that that was un-American and unconstitutional. Richard Painter is a law professor at the University of Minnesota. From 2005 to 2007 he served as the chief White House ethics lawyer for President George W. Bush. The interview was conducted by Michael Knigge.", -238,2017/2/7,http://www.dw.com/en/victims-of-torture-must-receive-eu-visas-court-adviser-says/a-37446126?maca=en-rss-en-all-1573-rdf,"Victims of torture must receive EU visas, court adviser says",The European Court of Justice's top adviser said that EU states have to grant entry visas to people at risk of torture or inhuman treatment. Opponents fear this could open up a new route for refugees to get into Europe.,"Advocate General Paolo Mengozzi said that any EU member state had to provide a visa on humanitarian grounds if-new arrivals were judged to be at risk. The announcement came after Belgian authorities refused to grant humanitarian visas to a family from the besieged city of Aleppo, arguing their links to the city were too tenuous and that they were not obliged to admit everyone coming from a war zone like Syria. ""The Belgian State was not entitled to conclude that it was exempted from its positive obligation under Article 4 of the Charter,"" Mengozzi said, referring to the European Union's rulebook on human rights. Mengozzi's opinion is not binding - however, the advocate general's comments are usually followed by the court, which is due to rule on the case of the Syrian family in the coming weeks. The ruling could affect policy across all EU member states. Daily fines Belgian State Secretary for Migration, Theo Francken, made controversial remarks that may cost the Belgian taxpayer hundreds of thousands of euros Belgian Immigration Minister Theo Francken made a controversial statement about the family from Syria in November 2016, saying that he would rather sell-his office furniture in order to pay-daily fines for defying EU guidelines on admitting refugees instead of honoring a court ruling in favor of the Syrian family. Belgium has been fined 4,000 euros ($4,270) a day for defying a local appeal tribunal in the case. The family is believed still to be in Syria. Many EU states are struggling to process and care for hundreds of thousand of refugees from the Middle East and North Africa, the majority of whom undertake perilous journeys to the EU to apply for asylum on arrival. ss/rt-(AP, Reuters, dpa) Famous for his theory of relativity, German Jewish Nobel Prize laureate Albert Einstein was visiting the US in 1933 when it became clear he could not return to Nazi Germany. He seems to have had mixed feelings about life in exile. He once wrote that he felt ""privileged by fate"" to be living in Princeton, but ""almost ashamed to be living in such peace while all the rest struggle and suffer."" German singer and actress Marlene Dietrich, she of the husky voice and bedroom eyes, was already a star living in the US, when she acquired American citizenship in 1939 and turned her back on Nazi Germany. A prominent refugee, she spoke out against Hitler and sang for US troops during the war - while her films were banned in Germany. But she said: ""I was born a German and shall always remain one."" He was a Harvard professor, an authority on international relations, the 56th US Secretary of State, and instrumental in shaping American foreign policy - but in 1938, Bavarian-born Henry Kissinger fled Germany to escape Nazi persecution. Nevertheless Germany, the nonagenarian said in a speech several years ago, ""has never ceased being a part of my life."" Born in what is now the Czech Republic, Madeleine Albright and her family fled to the US in 1948 when communists took over the government. She got involved in politics and went on to become the highest-ranking woman in the US government: the first female Secretary of State (1997-2001). Born in Vienna in 1919, Lord George Weidenfeld was a British Jewish publisher who immigrated to London in the aftermath of the Nazi annexation of Austria. He co-founded a publishing company, served as chief of staff to Israel's first president, and funded the rescue of Syrian and Iraqi Christians. ""I can't save the world ""?but I had a debt to repay,"" he once said. The 20th century Hungarian composer, virtuoso pianist and folk music collector Bela Bartok was not a Jew, but he was opposed to the rise of Nazism and the persecution of the Jews. In 1940, he moved to the US. ""My main idea, which dominates me entirely, is the brotherhood of man over and above all conflicts,"" Bartok is quoted as saying. Milos Forman, already a leading art-house film director, turned his back on Czechoslovakia and moved to the US after the Prague Spring of 1968. He went on to make two internationally acclaimed Oscar-winning movies: ""One Flew Over the Cuckoo's Nest"" (1975) and the 1984 period drama film ""Amadeus."" Chilean President Salvador Allende was overthrown in a coup and died in 1973. His cousin's daughter Isabel (who called him uncle) fled to Venezuela after herself receiving death threats. She later settled in the US. Her novels are internationally-acclaimed classics of magical realism, including the ""The House of the Spirits"" and ""Eva Luna."" Miriam Makeba - lovingly know as Mama Africa - was on tour in the US when the South African government cancelled the young woman's passport for campaigning against the Apartheid regime and later banned her from returning home. Her song ""Pata Pata"" was a worldwide hit in 1967. The legendary singer lived in the US and Guinea before she saw her native country again decades later. Sioux leader Tatanka Iyotake - Sitting Bull - is one of the most famous Native American chiefs in history. Did you know he spent a few years as a refugee? In 1877 he fled to Canada, almost a year after the Battle of the Little Bighorn, also known as Custer's Last Stand. In 1881, he returned to the US, was taken prisoner, and later returned to a reservation. Like his colleague Vedad Ibisevic of Hertha Berlin, Bundesliga soccer player Neven Subotic - who has just signed for K?ln from Dortmund - fled the war in Bosnia as a child. Well aware of hardship, Subotic in 2012 created a foundation to help give people in the poorest parts of the world access to clean water and sanitation. Author: Dagmar Breitenbach", -239,2017/2/7,http://www.dw.com/en/macedonia-will-only-survive-as-a-democratic-country/a-37440801?maca=en-rss-en-all-1573-rdf,'Macedonia will only survive as a democratic country',"The latest elections have failed to put an end to the political crisis in Macedonia. Gudrun Steinacker, former German ambassador to Macedonia, explains what can be done to help the small Balkan country.","DW: Macedonian President Gjorge Ivanov declined to offer a mandate to form a new government to the main opposition party, the Social Democrats. Previously, the conservative leader and former premier Nikola Gruevski, had failed to form a government. How do you evaluate the president's role in the current political crisis? Gudrun Steinacker: I find it deplorable, because he does not anwer the question what else there is to do and how to overcome the present situation in the country. So the only other solution would probably be new elections, which would mean another few months of total stagnation. That would be an expensive choice for a small country like Macedonia: Organizing elections so often is very difficult. [Editor's note: The last vote in December was held as part of a European Union-brokered deal between Macedonia's main political parties aimed at ending a long-running political crisis. At the elections in December, Gruevski's conservative party VMRO-DPMNE secured 51 seats in the 120-seat parliament - only two more than the Social Democrats.] The Russian Foreign Ministry claimed the West was trying to destabilize Macedonia. ""The goal is obvious - to deal with Macedonian politicians unwelcome-by the West"", it stated at the end of last week. Do you agree with Moscow that conservative leader Gruevski is 'unwelcome' by the West? Gudrun Steinacker, former German ambassador to Macedonia and Montenegro Of course his reputation is severely damaged due to the wiretapping affair, which has not been clarified yet. We have to see what the special prosecutor will finally come up with. We know how often she is being attacked by media organizations close to the-VMRO-DPMNE, which is not acceptable in my view. She should have a chance to do her job. During my time as an ambassador, I did not see that Russia was really playing a constructive and-positive role in Macedonia. And I'm a little amazed at the relatively new interest of Russia in Macedonia. I'm not sure whether the Russians are really taking into account that this is a fragile, ethnically and religiously very mixed country. I have the feeling that the Russian government is either not aware of this, or that it doesn't take it into account sufficiently. And finally, I don't see what Russia is offering the country and the region. Many politicians in Brussels and Berlin seem to be tired of the Macedonian crisis. Do you see any danger that the EU and Germany, who obviously have to deal with much bigger problems such as Trump's presidency, the Brexit and the refugee crisis, could give up on this small Balkan country and accept any solution that might guarantee its stability - even at the expense of democracy?- It is difficult to predict what is going on in Brussels. There is a-certain fatigue with regard to the crisis in Macedonia and to the situation in the Balkans, particularly regarding EU enlargement: That was even an argument used by Western and German politicians in their dialogue with regional elites, with the message - 'You have to make more efforts towards reforms'. I could imagine that there is a certain fatigue, but on the other hand, I think the crucial people who are dealing with Macedonia are aware that they cannot give up on the country and that they have to stay involved. But there are also different positions in different EU countries and I see a problem for the EU to find a common stance on what to do-and how to do it.- Do you think the EU is doing enough in Macedonia and in the Balkans? As someone who has been involved with the Balkans for so many years, it is my personal view that there is not enough involvement, although we do a lot for the Balkans in particular terms: economic support, support for the reforms etc. But perhaps we should rethink the methods and instruments that we --the EU or Germany-- are using-and adapt them more to the problems of the region so that we can see real progress and not only progress on-paper. What could be the solution for the Macedonian crisis-in your opinion? I think we should ask, in the foreseeable future, for all the claims of wrongdoing and even criminal acts to be investigated.-I would not exclude anyone. And all those who are under investigation should refrain from taking political positions until we know what actually happened. It is still very unclear what happened in many cases. I would like to mention, for example, the case of the young people who were killed in Smilkovci [in 2012]. These are cases that put a strain on relations between the different ethnic groups in the country. Macedonia will only survive as a liberal, democratic country, a homeland for all its citizens, irrespective of their ethnicity or religion.- Gudrun Steinacker was Germany's ambassador to Macedonia from 2011 to 2014.", -240,2017/2/7,http://www.dw.com/en/uk-s-kent-highlights-brexit-division/a-37442112?maca=en-rss-en-all-1573-rdf,UK's Kent highlights Brexit division,MPs are debating legislation to permit Prime Minister Theresa May to trigger Article 50 and start Britain's exit of the EU. Abigail Frymann Rouch traveled to Kent to find out how much rancor and division still exists.,"Halfway down a market street in Canterbury sits a van selling Bratwurst. ""Everyone goes mad for German sausage at the Christmas market,"" vendor Geoff Richardson told DW, ""so we thought we'd do it all year around."" Not that a love of Bratwurst equated to political Europhilia. Voters in the historic Kent-city were almost evenly split between those in favor of leaving the European Union (51 percent) and those against (49 percent). Although last June's referendum was a yes-no question, voters addressed a kaleidoscope of issues. The Leave campaign urged people to ""take back control"" on issues such as immigration, borders, over-stretched infrastructure, unpopular directives from Brussels, long-winded bureaucracy, or the cost of EU membership. Reasons cited by remainers - with less passion until it was too late - included regional stability and solidarity, upholding human rights directives, maintaining access to immigrant labor-or financial markets or the fear of the unknown. Many Brits feel their country has bitten off more than it can chew by opting to leave the EU A divided Britain? Dr Chris Moreh, a Research Fellow at the Center for Population Change at the University of Southampton, said the vote had brought to surface divisions that had developed during ""at least the previous decade or so,"" and seemed to have legitimized certain forms of prejudice and hate speech against migrants and judges (who were vilified by the right-wing press for ruling that the government could not trigger Article 50 --declaring the intention to withdraw from the EU --without the authorization of Parliament). ""The UK certainly feels more divided after the Brexit vote [and] any perception of increased division has real social circumstances,"" Dr Moreh told DW. During the public debates on Brexit in the coming years, ""citizens and EU nationals may very well feel that the country is becoming less welcoming, less tolerant of differences in opinion, and overall more divided."" Indeed, David Isaac, chairman of the state-funded Equality and Human Rights Commission, told MPs last month that he feared a fresh increase in religiously or racially motivated hate crime-against EU citizens in Britain when Article 50 is triggered, as was the case in the two months after the vote. In many cases the Brexit vote split friends and families So just how divided has Britain become? Canterbury in Kent had a high voter turnout (75 percent) and a close-run 51-49 split among Leavers and Remainers. Most people DW spoke to said they had had heated discussions on social media and with friends, family or colleagues about it, but these had passed. Two friends interviewed together, Rory Edwards and Elliot Hawkins, hadn't known that they had voted differently from the other. Richard Board, who voted to leave while his wife voted to remain, said that the referendum had not caused a rift but it had just got people engaging with politics again. Only one interviewee, pro-Leave John Luckie-Downe, who works in corporate finance in Bahrain, said he had lost a friend over Brexit. Some expressed frustration with segments of the electorate. Kevin Burdett, a retired civil servant, had little sympathy for ""youngsters [who] couldn't be bothered to vote"" and were ""moaning"" about the result. Kelly, an administrator who declined to give her surname, said she was ""angry"" with Leavers who only listened to emotive immigration rhetoric. Hamish Dowlen, who works in financial services in the City of London and has clients across the EU, lamented a lack of understanding by some Leavers of the ""crucial relevance of the EU within our complex economy."" He blamed politicians and schools for failing to communicate the importance of Britain's relationship with the EU. Analysis by the BBC this week found that education levels, then age, were key measures in determining how someone voted. Polls have suggested some Leave voters regret their decision. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2RObc Pragmatic approach Among some remainers, pragmatism has replaced disappointment. Charity worker Catherine Parker foresaw advantages to ""getting rid of EU bureaucracy"" while Chris Ball, 19, a drama student disappointed by the falsehoods peddled by the Leave campaign, said: ""Now we just need to get on with it [while] maintaining a stable relationship with the EU --if that is possible."" Is it possible? The Guardian asked last week, after the publication of the Government's White Paper on Brexit, ""What if there is no deal?"" and quoted a Tory MP as saying ""we have set sail in a very stormy situation."" Such pessimism was far from the older leavers of Canterbury. ""I don't care if we get a bad trade deal, we can make our own way,"" retired Lynn Fielding told DW, adding ""We like to be Europeans, but outside of Europe."" Kevin Burdett said he was looking forward to-increased trade with countries such as India and China. Board, a professional landlord in Canterbury facing tax increases from Brussels, told DW he was ""absolutely confident Britain could get a good trade deal --trade barriers were last century; it's essential now for all nations to be able to trade freely, we all recognize that."" Greg Mayn fears that Britain will be out of its depth in future trade deals However, Greg Mayne, a tax consultant who voted to remain, was less sure, arguing: ""We don't have the expertise to negotiate trade deals, we haven't done so for 40 years.""-Dowlen, in more apocalyptic language, feared that leaving the EU was tantamount to being herded ""off the economic cliff edge into the abyss."" Resentment between leavers and remainers could sink back beneath the surface, given that the latter have no Nigel Farage-like figurehead to agitate for them. But the test of cohesion will be seen in the experience of EU nationals and levels of hate crime over the next months and possibly years.", -241,2017/2/7,http://www.dw.com/en/fall-armyworm-attacks-southern-african-crops/a-37445437?maca=en-rss-en-all-1573-rdf,'Fall armyworm' attacks southern African crops,Southern Africa is facing a plague of pests which is threatening crop harvests and food supplies for millions of people. Zimbabwe hosts an emergency FAO meeting next week to shape a coordinated regional response.,"The fall armyworm is a destructive caterpillar that is indigenous to the Americas, the 'fall' referring to the season during which it tends to migrate to the United States. It was only spotted in Africa last year but has already left a trail of destruction which is threatening food security in many parts of southern Africa. The pest targets maize, sorgum, soya beans, groundnuts and potatoes. Zambia says 124,000 hectares (306,000 acres) of-its crops have been destroyed. In December 2016, the-country ordered the national air force into action to control the plague.- In a statement last week, the Food and Agricultural Organization (FAO) said ""preliminary reports indicated the possible presence (of the pest) in Malawi, Mozambique, Namibia, South Africa, Zambia and Zimbabwe.""- Essential for food security in large parts of Africa, maize is particularly vulnerable to the larvae of the fall armyworm, which attack the crop's growing points and burrow into the cobs.- Jan-Hendrink Venter: ""It's prone to the prevailing winds and can migrate large distances"" South Africa says it is still assessing the damage but three of the country's nine provinces have been hit. Agriculture, Forestry and Fisheries Minister Senzeni Zokwana said they had positively identified fall armyworm in samples collected in Limpopo province. Zokwana said his department was registering pesticides for use against the fall armyworm as ""no pesticide was previously registered to be used against it."" He also told local radio on Tuesday he was convinced pesticides would be able to contain the outbreak. Regional response The minister also stressed that South Africa would be taking part in an FAO meeting in Zimbabwe's capital Harare next week to draw up an emergency response to the threat.------------ He said the Department of Agriculture ""realized that trans-boundary pests and diseases, especially migratory pests, threaten food security. Regional efforts are important to address these risks, to ensure that early warnings of these biological threats are in place."" Countries with confirmed outbreaks can face import bans on their agricultural products-because armyworm is classified as a quarantine pest. A Zimbabwean farmer inspects his crop of maize which has been hit by armyworm Mathew Cock, chief scientist at the UK-based Center for Agriculture and Biosciences International, said outbreaks could cause devastating losses and mounting debts for famers.- The fall armyworm from the Americas is also harder to detect and eradicate than its African counterpart -Jan-Hendrink Venter, a plant scientist with South Africa's Department of Agriculture, told DW-it was-spreading fast. ""We are used to the common African armyworm. This is something new. It has a life cycle of 24 to 40 days. It's prone to the prevailing winds and can migrate very large distances. A rural farmer in Limpopo province, who identified himself as Willi, says he belongs to a group of neighboring farmers who are extremely worried. He's concerned that the government might take care of commercial farmers and ""forget us small farmers in rural areas so we might end up losing the whole crop.""-------- -", -242,2017/2/7,http://www.dw.com/en/monument-to-aleppo-opens-to-protests-in-dresden/a-37445794?maca=en-rss-en-all-1573-rdf,'Monument' to Aleppo opens to protests in Dresden,A peace memorial by Syrian-born artist Manaf Halbouni drawing attention to the parallels between Syria's war and the 1945 bombing of Dresden has been unveiled in Dresden - to loud protests.,"""Monument,"" a memorial created by the Syrian-German artist Manaf Halbouni, was unveiled Tuesday in the city of Dresden. Designed to draw attention to the Syrian war while appealing for peace and humanity, the memorial consists of three buses erected on their sides beside the Frauenkirche church in Dresden's central Neumarkt square. Halbouni, who was born in Damascus to a German mother and Syrian father, said the idea behind the public art piece came from a powerful image that was seen worldwide in 2015: Residents of Aleppo put-bombed-out buses on their sides in the heart-of the formerly thriving industrial city to protect themselves from sharpshooters. The buses became a symbol of the resistance movement in the town which, by the end of 2016, had been nearly totally destroyed by war. The 12-meter tall sculpture was installed next to the restored Frauenkirche In Dresden, the sculpture is comprised of three outdated public buses. The artist said he intentionally uses buses that had not been wrecked, as a-symbol-of the peace that can still be found in Germany --unlike in Syria. The Kunsthaus Dresden, a sponsor of the project, said that the artwork creates ""a connection between the people of the Middle East and Europe and our shared destinies"" and symbolizes-""the suffering and unspeakable losses as well as the hope for reconstruction and peace."" A symbol of peace and forgiveness The monument was unveiled Tuesday-in an opening ceremony that was loudly protested by members of the right-wing nationalist party AfD and the Pegida movement. Dresden's Mayor-Dirk Hilbert-is under protection due to death threats he received for his approval of the 12-meter-tall (over 39-foot) sculpture. He was loudly booed as he attempted to give a speech celebrating the work. ""The right-wing populists, not only in our city but also across Europe, are building themselves up by forgetting,"" said Hilbert. That's why, he told the crowd at the opening, ""Monument"" is so important. Artist Manaf Halbouni came up with the idea as a memorial to the destroyed city of Aleppo On display in the city through April 3, the installation was funded through donations from the local community. The artist said he-found it important to show that there is a side to Dresden which stands in contrast to the anti-foreigner movement that has become associated with the city. Halbouni, who studied art in Dresden and has had works displayed in London's Victoria and-Albert Museum as well as at the 56th Bienniale in Venice, said the location of the installation is one of great meaning. It was chosen not only because of the artist's connection to the city, but also because of the history of Dresden, which-was completely destroyed in World War II. More than-25,000 people died during-three nights of Allied bombing in February 1945. The restored Frauenkirche serves as a symbol of peace and forgiveness after war. ct/kbm-(AFP, dpa) -", -243,2017/2/7,http://www.dw.com/en/merkel-and-szydlo-navigate-common-ground-on-russia-and-eu/a-37444645?maca=en-rss-en-all-1573-rdf,Merkel and Szydlo navigate common ground on Russia and EU,"During a visit to Poland, German Chancellor Angela Merkel has said the situation in Ukraine remains unacceptable. The German chancellor also warned against ""exclusive clubs within the EU.""","Angela Merkel's brief visit to Warsaw on Tuesday marked the German leader's first trip to Poland since a populist government was elected there-in 2015.-Relations between Berlin and Warsaw remain largely positive, however,-with trade between the two countries booming. The trip has been widely seen as a chance for the two nations to nurture the improving diplomatic relations. Following a 60-minute talk with Merkel, leader of the governing-Law and Justice (PiS) party Jaroslaw-Kaczynski said there was a ""good atmosphere."" Kaczynski, a politician deeply distrustful of Germany, once-said the chancellor's goal was to make Poland subordinate to its western neighbour. Merkel meanwhile called-on Poland's right-wing government to protect the rights-of the political opposition as well as those of the justice system,-trade unions and media, amid an investigation by the EU-Commission-into possible Polish violations of the rule of law. Russia sanctions In separate talks with-Polish Prime-Minister Beata Szydlo, Merkel addressed the ongoing conflict in Ukraine. The chancellor later told reporters that-sanctions against Moscow over the ongoing conflict Ukraine-cannot yet be lifted. ""The situation on the ground is still unacceptable,"" she said. Merkel's comments came just hours after a telephone call with Russian President Vladimir Putin, in which she urged Putin to-use his influence on separatists in eastern Ukraine to bring an end to almost three years of violence. The two agreed, however, on the need for new ceasefire efforts. Angela Merkel and Beata Szydlo stressed the importance of German-Polish ties Poland against Nord Stream 2 Despite being largely on the same page-when it comes to Russia,-the controversial Nord Stream 2-project-remains a contentious issue between Poland and Germany. Reiterating her country's stance on Tuesday,-Szydlo said the Baltic Sea pipeline is ""not acceptable to Poland."" The-deal would see-Russia's state controlled energy giant Gazprom extend its pipeline to-Germany, bypassing-Poland, the Baltic states and Ukraine. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X59T EU reform Also on the agenda in Warsaw-was reform in the European Union. During the joint press conference,-Szydlo-said Poland is determined to further ties with Germany. ""I am confident that a good partnership between Poland and-Germany is necessary for the success of the European project,"" Szydlo said. ""Poland and Germany ... have a huge role to play in the changes that are taking place in the Union,"" she added. While Poland and Germany both favor-stronger security at EU borders, Merkel said-she was ""cautious about demands for EU treaty change."" The German chancellor also warned against ""exclusive clubs within the EU."" Trans-Atlantic relations Two weeks into Donald Trump's presidency in the US, Merkel also addressed comments made by the newly-inaugurated president on Monday in which he said the US ""strongly supports"" NATO. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Wwn1 ""What has been said of NATO by the president and by the-defense and foreign ministers are very important statements and-we will have the opportunity within NATO to meet and to talk-about the future and the challenges,"" Merkel added. Trump's most recent remarks regarding the trans-Atlantic alliance were a far cry from those made prior to his election in which he dismissed NATO as ""obselete,"" sparking concerns that he would seek-to withdraw the US from the alliance. NATO defense ministers are due to meet with-US Defense Secretary Jim Mattis-for the first time next week, and again at the Munich Security Conference a week later. During a phone call last month, Mattis told his German counterpart Ursula von der Leyen that the US was committed to the NATO alliance and US-Germany relations. ksb/rt (Reuters, dpa)", -244,2017/2/7,http://www.dw.com/en/don-t-waste-it-eat-it/a-37445177?maca=en-rss-en-all-1573-rdf,"Don't waste it, eat it","Why don't we eat crooked cucumbers and knobbly carrots? Because they're hard to find, that's why. Initiatives in Germany and the Czech Republic are encouraging consumers to get more daring with their fruit and veggies.","When it comes to culinary delights, our eyes want to feast too, and that also impacts our shopping habits. When we hit the produce department at the local grocer, we always grab the most appealing specimens. This aesthetic expectation leads to food waste and makes us oblivious to mother nature's diversity. ""Supermarkets and grocery chains only offer fruit and vegetables that look uniform,"" explains Anna Strejcov��, spokeswoman and co-founder of the Czech initiative Zachra�� j��dlo (Save the Food). ""Retailers claim that consumers won""t buy anything else."" About 20 percent of crops in the Czech Republic, and up to 30 percent in German, are kept from our plates as a result of norms that determine the size, shape and color of fruit and vegetables. ""But since food doesn""t always grow uniformly, it has to be sorted,"" says Strejcov��. And this sorting often happens right on the fields during harvest time. It wasn""t originally a question of aesthetics that led to this idealization of cucumbers, apples, and the like, but the fact that uniformly shaped produce takes up less space when stored and transported. Retailers developed internal norms, as did the EU with its often-cited ""bendy cucumber"" directive. But blaming the latter for produce uniformity does not sit well with Amelie Mertin of the German Querfeld initiative. ""What many people don""t know: the EU ""bendy cucumber"" directive has not been in effect since 2009."" A flexible leek can become many kinds of dinner. It just needs a chance. It is a vicious circle. Consumers are conditioned to buy straight cucumbers because supermarkets will not stock anything else, which in turn does not allow customers to become (re)accustomed to different shapes and sizes ""?or perhaps they don""t even remember they exist. ""We must educate the public. Demand it, buy it."" Amelie Mertin urged. She takes this topic very personally. As a business student, she worked at organic farms during semester breaks and was shocked to hear about the amount of food that goes to waste. ""Many people don""t even know how much we throw away."" In Germany alone, roughly 18 million tons of groceries are squandered annually, enough to fill 450,000 transport trucks. Veggies with-character Zachra�� j��dlo is also fed up with the fact that we place greater value on appearance than taste. A campaign called Jsem p?ipraven ""?I am ready ""?aims to put to rest the argument that the customer is not prepared to buy non-standard fruits and vegetables. Almost 10,000 Czech supporters have joined the cause since its inception. Querfeld is a product of the Berlin start-up scene and designed to appeal to the public at large. ""We'r not trying to 'convert' anybody or wag our finger at consumers, pressuring them to buy our misshapen vegetables,"" Amelie Mertin explained. ""Instead, our campaigns aim to get people excited about our produce."" Communication is key, so the campaign must be hip and fun. They appeal to the public with vegetables with character, like tomatoes with noses and the huge variety of root vegetables. ""When we make it fun, we reach a large audience,"" says the young woman who started working for Querfeld's Munich branch in early 2016. ...with a five-headed eggplant. Just a few examples from the Mutato series. The Mutato series consists of thousands of pictures - this is just a small selection. The installation for the World Food Day at the Design-Quartier Ehrenfeld in Cologne (2011). ...also known as a tomato. A collection of different tomato varieties and at the same time the first species of the Cultivar series. An old tomato variety from Greeneville, Tennessee (USA). A tomato variety from the IPK gene bank in Gatersleben found by F. Schwanitz (1957). A beautiful tomato variety found by friends of the photographer in France. Different varieties of the common bean. Author: Klaus Esterluss Zachra�� j��dlo is also playing with the aesthetics of nonconformity. On the Artwall that runs along the bank of Prague's Vltava River, activists have placed photographs by German artist Uli Westphal-that depict oddly-shaped fruits and vegetables, a theme he has been working on since 2006. Westphal's exhibition is supposed to show that ""misshapen"" produce is not only delicious, but also visually unique. ""We are pleased when the consumer thinks it's cool, but that cannot be the extent of it,"" Anna Strejcov�� emphasizes. ""That is why we initiated round table discussions and invited farmers, distributers, experts and representatives from the department of agriculture. We want to tell them which concrete steps can be taken to bring otherwise discarded produce to market."" All about quality Querfeld has already found one solution: They deliver to business clients such as catering companies and cafeterias who do not care about the appearance of the cucumber before they chop it up. To get to this point, Querfeld had to convince producers and retailers to play along. And that wasn't always easy. Young city-dwellers promoting a start-up was enough to make farmers a little skeptical. ""It was important that our project was not a one-off campaign,"" Amelie Mertin points out. In the meantime, the relationship between Querfeld and producers has grown strong, although the fledging food saving business can't always take everything off the farmers' hands. Too big for the shelves, but not for the aspirations of food savers in Germany and the Czech Republic The main priority for both initiatives in Germany and the Czech Republic is to prevent food waste. Regardless of appearance, the quality of the fruit and vegetables must be high. ""It is important to us that the produce be regional and organic,"" Amelie emphasizes. We do not buy and sell old or moldy produce, just food that is optically irregular."" This reduces food waste, increases profits for farmers, and offers customers an opportunity to get organic produce at great prices. This article was written in cooperation with j��du and FUTUREPERFECT with the support of the Goethe-Instituts and FUTURZWEI, and is reproduced here with their kind permission.", -245,2017/2/7,http://www.dw.com/en/german-agency-calls-for-all-refugees-to-be-fingerprinted-to-fight-fraud/a-37441626?maca=en-rss-en-all-1573-rdf,German agency calls for all refugees to be fingerprinted to fight fraud,Germany's migration agency has urged regional authorities to fingerprint all refugees. The measure seeks to rule out the use of multiple identities and prevent possible benefit fraud.,"Germany's Federal Office for Migration and Refugees (BAMF) said on Tuesday that it is now pushing for all refugees currently living in Germany to be fingerprinted in order to combat so-called ""cheat-identities."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X1wd Jutta Cordt, who recently took over leadership of the BAMF, told the ""Passauer Neue Presse"" that it's now the responsibility of Germany's regional immigration offices to fingerprint refugees. ""They have to take the fingerprints of all people who register with them and compare the data with the central register,"" Cordt told the paper. Since last autumn, the BAMF itself has been cross checking fingerprints with security authorities and was able to ""now rule out multiple identities in the asylum procedure."" BAMF is also currently dealing with a backlog of some 430,000 unprocessed applications for asylum. Yesterday, a 25-year-old asylum-seeker in Hannover was handed 21 month suspended sentence including 200 hours of community service for fraud, German public-broadcaster NDR reported. He admitted to having registered in several cities across Germany under seven different names in order to obtain social benefits. Earlier in January, the northern German city of Braunschweig opened a special commission to investigate over 300 cases of welfare fraud committed by asylum-seekers. The total fraud is estimated to have cost taxpayers 3 to 5 million euros ($3.2 to $5.3 million) in the state of Lower Saxony. rs/rt-(AFP, KANN, NDR) A total of 722,370 first-time applicants filed requests for political asylum in Germany in 2016, according to the Federal Office for Migration and Refugees (BAMF). The number reflects a roughly 65 percent increase compared to the previous year, when the total number of new applications stood at 441,899. The number of follow-up applications, however, recorded a decline of 33.3 percent. In 2015, 34,750 second-chance asylum requests were filed with BAMF, whereas in 2016 the number fell to 23,175. Combined, the number of first-time and follow-up applications for 2016 stood at 745,545. In 2015, this number stood at 476,649. So, BAMF recorded a 56.4 percent net increase in the total number of asylum requests in 2016 compared with 2015. The highest number of requests in 2016 were filed by Syrian nationals. According to BAMF's report, people from the war-torn Middle Eastern state submitted 266,250 of the new applications (36.9 percent). Afghan nationals came in second, with 127,012 (17.6 percent), followed by Iraqis, who filed 96,116 asylum requests (13.3 percent) last year. People from Iran filed 26,426 applications (3.7 percent). Eritreans submitted 18,854 applications (2.6 percent). Albanians totaled 14,853 (2.1 percent), 14,484 people from Pakistan requested asylum (2 percent), and Nigerians submitted 12,709 applications (1.8 percent). Nearly three-quarters of the applications filed in 2016 came from people younger than 30 years old. People aged between 18 and 25 filed 196,853 asylum requests, or about 23.5 percent of the overall total, making them the largest age group. The number of applications for children under the age of 4 stood at 78,192 (10.8 percent). German authorities accepted 433,920 people of the 695,733 applications they decided on in 2016. The overall protection rate for all countries of origin amounted to 62.4 percent. Ranging from vandalism to arson, more than 900 attacks on refugee centers were recorded in Germany in 2016. The Federal Criminal Police Office reported that, out of the 921 recorded offenses, 857 were suspected to have had far-right motives. In 2015, 1,031 such offenses were recorded, 923 of which were suspected of having a far-right background. Author: Aasim Saleem", -246,2017/2/7,http://www.dw.com/en/un-criticizes-first-royal-defamation-case-under-thai-new-monarch/a-37444152?maca=en-rss-en-all-1573-rdf,UN criticizes first royal defamation case under Thai new monarch,"A senior UN official has criticized the first royal defamation case brought under Thailand's new monarch. King Vajiralongkorn, who succeeded his father in 2016, appears keen to continue the controversial convention.","David Kaye, the UN's special rapporteur, on Tuesday attacked the case against-Jatupat Boonpatararaksa - a pro-democracy student activist - who was arrested in December for sharing a profile of King Maha Vajiralongkorn on Facebook. ""Public figures, including those exercising the highest political authority, may be subject to criticism, and the fact that some forms of expression are considered to be insulting to a public figure is not sufficient to justify restrictions or penalties,"" Kaye said in a statement. Kaye said such laws ""have no place in a democratic country"" and called for Thailand to repeal them. The chances of that happening are low as the country is run by royalist generals who have formed the most authoritarian government for many years, with political gatherings banned and opponents jailed or facing trial. Use of lese majeste law - making it illegal to defame, insult or threaten the monarch --has leapt since ultra-royalist generals seized power-in 2014. Jatupat Boonpatararaksa - a prominent junta critic better known by his nickname Pai - is the only person to have been prosecuted so far and faces up to 15 years in prison if convicted. The Ministry of Foreign Affairs said it could not comment on the case against Pai as it was ongoing. Meanwhile, a Thai court on Tuesday sentenced an Australian man to death for murdering a Hells Angels gang member in 2015, a lawyer at the trial said. jh/rt (AFP, AP, Reuters)", -247,2017/2/7,http://www.dw.com/en/german-nato-battalion-receives-official-welcome-in-lithuania/a-37443784?maca=en-rss-en-all-1573-rdf,German NATO battalion receives official welcome in Lithuania,"Seven months after NATO agreed to increase troops in Eastern Europe, a German-led battalion has arrived in Lithuania. President Grybauskaite officially greeted the troops alongside German Defense Minister von der Leyen.","Lithuania's President hailed the arrival of the troops on Tuesday, saying the increased NATO military deployment sends a strong message of unity. ""Never before has Lithuania hosted military forces of such size and integrity. It sends a very clear and important message to all that NATO stands strong and united,"" President Dalia Grybauskaite said during a ceremony to welcome a German battalion in the central town of Rukla. ""The NATO deterrence protects peace,"" she added. Referencing Russia, Grybauskaite spoke of an ""ongoing military build-up"" and ""aggressive actions"" in the region. In January, the German army started sending military vehicles, including 30 tanks, by train to Lithuania along with 450 troops. German Defense Minister Ursula von der Leyen, who attended the ceremony, said the deployment of military tanks and other equipment signified that Lithuania was not alone. Von der Leyen also said she was confided that the United States would remain committed to NATO despite US President Donald Trump's statements on the defense alliance. German-led battalion Germany's presence as a leader in the NATO deployment is also ""symbolic and very important,"" Grybauskaite told German news agency DPA ahead of the ceremony. The stationing of German troops in Eastern Europe is a particularly sensitive issue due to the history of the Nazi invasion during World War II and its occupation of the region. ""We understand these concerns,"" Grybauskaite said. ""Which is precisely why we see Germany's decision so favorably."" Germany will lead a NATO battalion of some 1,000 troops as part of the defense alliance's push to increase its presence in three Baltic states that are seen as particularly vulnerable to possible Russian aggression. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2RmgL ""Germany has made many confessions with respect to the consequences of World War II ... But today we are in the 21st century and it is the responsibility of all of us to reflect on the future of Europe and to preserve the peace and security of Europe for the future,"" President Grybauskaite said. Von der Leyen is due to meet with her counterpart, US Defense Secretary Jim Mattis in Washington on Friday. Her visit comes ahead of a meeting with NATO defense ministers next week and the Munich Security Conference a week after. rs/rt (AFP, dpa, Reuters)", -248,2017/2/7,http://www.dw.com/en/romanian-president-says-he-won-t-seek-to-topple-government/a-37442443?maca=en-rss-en-all-1573-rdf,Romanian president says he won't seek to topple government,Romanian President Klaus Iohannis has said the Social Democrat government caused the current crisis. But he will not seek to oust the cabinet or hold a snap election.,"""The resignation of a single minister is too little and early elections would be at this stage too much: This is the space for maneuver available,"" Iohannis told parliament on Tuesday. ""Romania needs a strong government, not one that shyly executes party orders. Romania needs a government that governs transparently, predictably, not at night in secret."" A woman waves a Romanian flag during a protest against the government in Bucharest, February 6 The leader of Romania's ruling Social Democrats-(PSD) coalition said on Monday that the government would-not step down despite ongoing protests against a controversial decree that would have shielded politicians from prosecution on certain corruption charges. One possible beneficiary would have been Social Democratic Party leader Liviu Dragnea, whose path to becoming prime minister has been effectively blocked by corruption charges. Justice Minister Florin Iordache told reporters that he would publish the details of a new, alternative bill to change corruption provisions in the criminal code, although his own ministry later contradicted him, saying the Justice Ministry was not planning to draft such a bill. Prime Minister Grindeanu meanwhile also threatened to fire the justice minister. The rallies have continued especially in the capital Bucharest, where some 250,000 protesters congregated one week after the start of the protests and chanted: ""We don't believe you;-we won't give up."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X37S jbh/tj (AP, Reuters)", -249,2017/2/7,http://www.dw.com/en/legend-of-chanson-juliette-gr��co-turns-90/a-37441665?maca=en-rss-en-all-1573-rdf,Legend of chanson Juliette Gr��co turns 90,The muse of existentialists celebrates her 90th birthday on February 7. Here's a look back at French singer Juliette Gr��co's impressive 70-year-long career.,"The Parisian concert hall Olympia was filled with thousands of excited fans in May 2014. They were there for Juliette Gr��co, who was already 87 at the time. Everyone was well aware that it might be their last chance to get to see the artist who has been dubbed ""the high priestess of existentialism."" The grande dame of French chanson showed up on stage, greeted by thunderous applause. For many, it felt like they were meeting a good old friend again. Youth afflicted by World War II Juliette Gr��co was born on February 7, 1927 in Montpellier-on the French Mediterranean coast. Her father, a police commissioner from Corsica, left the family early on. Her mother moved to Paris with her two daughters and became active in the resistance movement against the German occupiers. Juliette and her sister Charlotte were mainly raised by their grandmother in Bordeaux. In 1943, her mother and sister were arrested by the Gestaspo and were deported to the concentration camp in Ravensbr��ck.-Both survived the ordeal until liberation in 1945. Juliette, too young to be deported, was kept for three weeks in the women's prison Fresnes. Melancholy as a trademark After the end of the war, Juliette started singing in caf��s in Saint-Germain-des-Pr��s. In 1946, she was among the founders of-the cellar club Le Tabou, a famous haunt of French existentialists. Philosopher and novelist Jean-Paul Sartre, film director and actor Orson Welles and Berlin film diva Marlene Dietrich were among the caf��'s regulars. Juliette Gr��co was fascinated by the unconventional style and mindset of these new intellectuals. In turn, they were also inspired by the singer. ""Her voice carries millions of poems that haven't been written yet,"" Sartre once said. He felt that she made people aware of the sensual beauty of words. Gr��co became friends with Sartre and painter Bernard Buffet. Jean-Paul Sartre and Albert Camus also wrote lyrics for her songs, describing the post-war generation's hunger for life. Juliette Gr��co with Serge Gainsbourg (right) Gr��co had long black hair at the time and-wore black make-up and black men's trousers. It was her way of demonstrating her affiliation to the existentialists. Her dark voice made her the perfect interpreter of such melancholic songs. She would quickly be celebrated as the ""black muse of Saint-Germain-des-Pr��s."" ""Black provides space for the imaginary,"" she told the German weekly ""Die Zeit"" in 2015. Multiple lovers Her friendships with poets and intellectuals were more lasting than her love affairs, which she had with both men and women. In her 20s, she had a relationship with jazz musician Miles Davis. ""What do I care what other people think?,"" she'd typically answer to anyone who'd-ask.- She married three times and-had a daughter with her first husband, actor Philippe Lemaire. Her second husband was actor Michel Piccoli. Since 1988, she has been living with her third husband, pianist and composer G��rard Jouannest. Singer and actress: Juliette Gr��co in London in 1965 'The stage is my home' Her songs ""Si tu t'imagines"" and ""L'��ternel f��minin"" became hits at the end of the 1940s. She would also sing some of the chansons of her colleagues, like Jacques Brel or Georges Brassens. She was a celebrated performer in France, Germany, the US and Japan. Gr��co-also obtained film roles, performing for author, filmmaker and painter Jean Cocteau in ""Orpheus"" (1959). Further roles would-follow. To this day, Gr��co feels the words she sings: ""Even if I tell the story of a 16-year-old girl, I believe what I'm singing. I am that girl."" She manages to do that even at an advanced age. It only requires a lot of energy. Building trust in Germany Her first performance in Germany after the war was in 1959. She initially hesitated to go to the country responsible for her family's traumatizing experiences. She sang with tears in her eyes that night; she later said she was thinking about the time her mother and sister spent in Ravensbr��ck. After the hesitant start, she kept returning to Germany. She would perform often in Berlin. In Hamburg, the revue ""Marlene"" combined songs by Marlene Dietrich with her own material. She was a guest of honor at the German Schwetzingen Festival. In 2005, she even released an album in German, ""Abendlied."" Farewell tour Two years ago, the existentialists' muse launched her emotional farewell tour, ""Merci."" With concerts around the world, she fulfilled the fans' expectations, singing hits such as ""D��shabillez-moi,"" ""Sous le ciel de Paris"" and ""Amsterdam"" by Jacques Brel. Her singing was accompanied by the gestures which became her trademark over the nearly 70 years of her career. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1I4Y0 She said ""au revoir"" to her fans in Frankfurt in 2015; they thanked her with a long ovation. However, in March 2016, she had a stroke and had to cancel her concerts to recover. ""I am not afraid of dying,"" she had previously told ""Die Zeit,"" ""I'm only afraid of having to stop singing. But you have to know when something is over."" Now celebrating her 90th birthday, she can proudly look back at a remarkable and influential career. -", -250,2017/2/7,http://www.dw.com/en/white-house-lists-underreported-attacks-including-berlin-paris-and-orlando/a-37440517?maca=en-rss-en-all-1573-rdf,"White House lists 'underreported' attacks - including Berlin, Paris, and Orlando","The White House has released a list of 78 terror attacks that US President Donald Trump claims have been ""underreported."" It includes events such as the deadly truck assault at a Berlin Christmas market in December 2016.","The White House late on Monday issued a list of terror attacks over a 28-month period from September 2014 to December 2016, with US President Donald Trump saying that media had failed to cover them properly.- The release of the list came after-Trump continued to accuse the media of deliberately manipulating the news, saying that the press had been minimizing coverage of terror attacks and-playing down the threat posed by the so-called ""Islamic State"" (IS). He stated-that the ""very, very dishonest press"" had ""their reasons"" for not reporting what he referred to as a ""genocide"" at the hands of the terrorist group. The list, which - according to the top US political website ""The Hill"" - was made available to journalists, details cities, months, years, targets, and attackers. However, the document-fails to explain why the White House had assessed these events to be underreported, and how they were all supposedly linked to IS. The Washington Post published the actual list online, which is more than 1,600 words long and features 27 instances of the term ""attacker"" misspelled. ""You've seen what happened in Paris and Nice. All over Europe it's happening. It's gotten to a point where it's not even being reported,"" Trump told a group of military leaders during a visit to the US Central Command at MacDill Air Force Base in Tampa, Florida. ""We will defeat radical Islamic terrorism and we will not allow it to take root in our country. We're not going to allow it."" Trump's list includes a number of attacks that were covered internationally, including the December 2016 Berlin attack, the June 2016 shooting at a gay nightclub in Orlando, and a string of attacks in Paris in 2015. The list is seen as an attempt to gather support for Trump's presently frozen executive order imposing a travel ban on seven Muslim countries. Damage control White House Press Secretary Sean Spicer later specified that the president's words were intended to point out that attacks were ""underreported,""-rather than-""unreported.""-Spicer said that the media exaggerated protest while ""an attack or a foiled attack doesn't necessarily get the same coverage."" White House spokesman Sean Spicer said that ""foiled attacks"" went underreported Spicer offered no advice, however, on how to go about reporting on a ""foiled attack."" ""Look, I think the president's comments were very clear at the time. He felt as though members of the media don't always cover some of those events to the extent that other events might get covered,"" Spicer said. White House deputy spokeswoman Lindsay Walters added that ""the real point here is that these terrorists' attacks are so pervasive at this point that they do not spark the wall-to-wall coverage they once did."" ""If you look back just a few years ago, any one of these attacks would have been ubiquitous in every news outlet, and now they're happening so often - at a rate of more than once every two weeks, according to the list we sent around - that networks are not devoting to each of them the same level of coverage they once did,"" she said. Reporting on the 'Bowling Green massacre' The White House's claims brought back to mind-recent remarks-by Trump adviser Kellyanne Conway, who-said in a recent-interview that news outlets had refused to cover the ""Bowling Green massacre"" - an event which never occurred. Conway later withdrew her comments, saying that she ""misspoke."" In 2011, two Iraqi citizens had been arrested in Bowling Green, Kentucky, for trying to send funds and arms to terrorist groups in Iraq; however, there was no violent incident involved. Conway, who famously claimed that ""alternative facts"" indicated that more people had attended Trump's inauguration than actually did,-had previously made repeated allegations in interviews-that-a ""Bowling Green massacre"" had been-underreported. ss/tj-(AP, dpa) -", -251,2017/2/7,http://www.dw.com/en/can-tourism-protect-the-great-barrier-reef/a-37367234?maca=en-rss-en-all-1573-rdf,Can tourism protect the Great Barrier Reef?,"A severe bleaching event last year prompted reports of the Great Barrier Reef's death. But tour operators say much of the reef still thrives, and their boats can help protect it.","It's a tranquil afternoon on the Whitsunday Islands at the southern end of Australia's Great Barrier Reef. A tour boat sits moored on a thin slice of white sand as snorkelers marvel at coral beneath crystal clear waters. But the boat's captain, Mike Evans, says these days some visitors have worries on their minds. ""I've actually had a few people tell me that they've come to see the reef before it's too late,"" he told DW. ""I tell them that our area's fine but they are having bleaching problems up north."" Lost treasure? Last year, there were reports of the largest coral die-off ever recorded at the Great Barrier Reef. The reef's northern region lost 67 percent of its shallow-water corals in 2016, prompting some media to claim the reef was ""already dead."" The damage didn't extend as far south as the Whitsunday Islands. But tour operators in the coastal town of Airlie Beach, where visitors disembark to explore the islands, say more and more people are coming to see the reef before it vanishes. ""I heard that because of the global warming there was degradation of coral reefs,"" Sergi Altadill, visiting from Barcelona, told DW. ""I was thinking this is the moment to come because in a few years there is no more coral reef in this area."" It isn't just Australia's reefs that are under threat. In December, the United Nations Environment Program published a study showing that with current trends, 99 percent of the world's reefs will suffer severe bleaching annually by the end of this century. Bleaching occurs when the water becomes too warm, causing coral to expel the algae that gives it its vibrant color. The result isn't just a white hue that disappoints divers-- the-coral is also left-vulnerable to starvation and disease. Modeling the reef's future Still, behind the UN study was a development that offers some hope. It drew on new high-resolution projections based on global climate models to-predict when and where coral bleaching will occur. In conducting her research, environmental scientist Karen Joyce enjoys a great overview of marine life in the Great Barrier Reef. This photo shows a panoramic view of Heron Island from the west. The flattened, disk-like bodies of two rays are visible in the lower right of the image. Joyce sets the flying robot on a pre-programmed mission. She operates the drone with a remote control and a computer. Photographs taken by the drone can be downloaded after the mission. This drone view shows the southern part of the Heron Reef flat, and open water out to Wistari Reef. The Great Barrier Reef is a collection of different undersea habitats. The picture above shows corals and algae on Heron Island from about 20 meters (66 feet) up in the air - and looks like a piece of art. A live feed of what the drone sees will be sent back to Joyce's computer - albeit in low resolution. On the left, sharks can be seen swimming in the boat channel on Heron Island. On the right hand side, dense coral is visible. Drone technology offers a great advantage in that it enables Joyce to survey areas that are too difficult or too dangerous to access. This also allows scientists to cover a much larger area than snorkeling or scuba diving would. With the help of drones, scientists are able to get high-resolution information with much greater detail than data provided by satellites. This image shows a highly detailed mosaic of hundreds of individual photos taken by Joyce's drone above Heron Reef. The Great Barrier Reef suffers from massive coral bleaching. With this phenomenon, corals expel symbiotic algae, turn white and eventually die. Climate change-induced warming of seawater is regarded as one of the main reasons for coral bleaching. Research by scientists like Karen Joyce could shed further light on the mechanisms behind the phenomenon. Author: Oleg K?dding-Zurm��hlen Roger Beedon, director of tourism and stewardship at the Great Barrier Reef Marine Park Authority, says this opens up new possibilities to use data collected by scientists and tour operators. ""Coral reefs are made up of animals, but they behave a bit more like forests because many of them can live for hundreds of years, and they can lock up a record of what has happened to them during that period of time,"" he told DW. ""They're a bit like trees. You can look at growth bands within those corals, and you can see how well they were doing each year."" This information about the past-can be used to model future developments, and combined with current-observations gathered by tour boats.-That-helps focus protection efforts on areas at-risk,-and has-implications for global conservation efforts. ""One of the important things about reefs is they can give us insights about what's happening at global scale,"" Beedon-says.- Cruise Whitsundays, the largest tour operator in the area, has been participating in a monitoring program called Eye on the Reef since 2007. Tour boats survey the sites they visit regularly and provide data to help manage any impacts they find, including bleaching. Reef outreach Company spokesperson Alyce Carter says the tours also educate visitors about the dangers the reef faces, and dispel exaggerated claims of the reef's ""death."" ""What's missing in media reports is that the degree the reef is affected varies widely from insignificant to severe,"" she told DW. ""It's the northern section of the Great Barrier Reef that is currently experiencing a major coral bleaching event. That area is approximately 1,590km from our pontoons. People who have lived in this area for more than 20 years have observed that the reef around our pontoons is in the best condition they have ever seen."" Bleaching happens when algae is expelled from coal, leaving it vulnerable to starvation and disease Not all locals agree. Sandra Williams is a campaigner with the Australian Marine Conservation Society who lives in Airlie Beach. ""I'm fortunate enough to have seen the Great Barrier Reef at its most magnificent best,"" she told DW. ""But I also know that people alive now and those coming in the future will never have the opportunity to see what I've seen on the reef, because it is a very different place even now."" Williams acknowledges that tour operators in the Whitsundays have upped their reef monitoring activity and educate visitors about environmental threats. Treading lightly- ""Many of the boats that go out daily are actively engaged in reporting changes they see to scientists and government bodies to build up that picture of what is happening locally in the marine environment,"" she says. ""People are very engaged and proactive in looking after their patch, and also in trying to shift government regulation and policy to enact better reef protection."" But she says this isn't the case with some operators in other parts of the reef. ""They don't want it publicised that the reef is under threat or that there's been coral bleaching-because they see an immediate negative impact on their business."" And tour boats themselves pose a threat to the reef,-both through engine pollution and by scraping the coral surface. Operators like-Cruise Whitsundays are part of an-eco-certification scheme which means they take-precautions above and beyond what is legally required. Tourists board a Whitsundays cruise boat to see southern parts of the reef, which have seen only minimal bleaching The-Great Barrier Reef Marine Park Authority also restricts their movements with a complex system of-permitting and zoning, which-actively engages tour operators in a communication loop. The authority uses information their boats-gather-to identify vulnerable areas of the reef and restrict activity there. Extreme weather Minimizing damage from tourism is vital given the threat-from climate change. And with extreme weather events happening more frequently, this-is not limited to bleaching. Right now, one of the main concerns for-those protecting the reef is ensuring corals are in the best possible health if and when a cyclone hits. ""We're now in the middle of our summer period - this is traditionally our cyclone season,"" says Williams. ""For first time in three years we're actually having a wet season, and I expect somewhere at least once in the coming months, somewhere on the coast, there will be a massive cyclone."" Williams says if a cyclone hit a northern area like Port Douglas, where two thirds of the coral is already dead,-the impact on what remains-could be devastating.- ""It doesn't have the resilience to fight back from that."" -", -252,2017/2/7,http://www.dw.com/en/syrian-refugees-open-for-business-in-sweden/a-37428707?maca=en-rss-en-all-1573-rdf,Syrian refugees open for business in Sweden,"Damascus neighbors braved the dangerous journey from Syria, Swedish bureaucracy and local tensions to start a new business. Now they need their reboot of the family craft to thrive, reports Richard Orange from Malm?.","Mohannad Sabbagh deftly whips a copper scoop into the rotating cauldron in front of him, pulling it out loaded with hot salt. ""My body is a thermometer!"" he grins as he dabs his palm lightly on the surface. ""My hand is what measures the temperature."" Sabbagh, 20, has been roasting cashews, pistachios, chick peas, and melon seeds in exactly this way ever since his father sent him out aged 12 to work at the family roastery near Bab Touma gate in Damascus's old city.- The cauldron, heated by a dull diesel flame, is not so different from the one his great-grandfather used back in 1913 when he launched his roastery, a Damascus institution that is still going strong today. Some Syrian refugees in Germany have made arrangements to return home voluntarily. DW has spoken to a few of these refugees about the challenges they face. (27.01.2017) Vienna's Habibi & Hawara restaurant employs a dozen mainly Syrian refugees. But it's not just a job: The goal is to teach newcomers how to run a company in Austria, reports Matteo Tacconi. (22.10.2016) The challenge of integrating large numbers of refugees from the Middle East is nothing new for Sweden. A dozen years ago, the country opened its doors to Iraqis - with mixed results. Richard Orange reports from Malm?. (21.10.2015) But we are not in Syria. We are in a drab industrial estate on a cold, wet January morning in Malm?, the city in Sweden to which Sabbagh and his brother Moumen fled in December and October 2015 respectively, during the last wave of Europe's refugee crisis. Together with their old Damascus neighbors Jehad and Mamoun Abo Rokba, the brothers hope to bring a taste of home to the 112,000 Syrians who have fled to Sweden since civil war began five years ago.- ""The Syrians love it! It's like their dream shop has opened,"" Sabbagh says of Delicious Rosteri, which opened three weeks ago in M?llevaangen Square, the center of the city's immigrant population, with a dabka folk dance-featuring bagpipes and tambourines.- Lavishly decorated with gold cladding, the shop sells more than 90 varieties of nuts from its wooden drawers.- ""Whoever knows it from Damascus, they will come on the basis of the name. The flavor is known, it's like a franchise, like IKEA,"" Sabbagh-jokes. - The brothers also hope to serve the rest of the city's Arab population, and even lure in the occasional Swede. Spurred on by suffering Back at the factory, Sabbagh-pokes his nose over the cauldron and smells the now half-roasted chickpeas, an expression of exaggerated delight spreading over his face.- ""It's not the flame that roasts the nuts, it's the hot salt,"" he explains enthusiastically, ""because the seeds will burn if exposed to raw flame or hot metal.""- The roasting machine, the four spinning barrels used to flavor the nuts, the copper scoop, even the rubber baskets made from old car tires, everything has been shipped from Syria by his father.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2TFIN ""All of the ways of making this roastery are 'old-school,' because we want the old taste to stay,"" he says. ""We did consider new roasting techniques, but it lacks the flavor. We want it to taste the way it tasted 50 years ago.""- Once roasted, the nuts must be sold quickly to retain their flavor and nutritional value. Nuts which have sat in storage for months after being imported from Iraq or Egypt quickly absorb moisture and grow a patina of mould.- It hasn't been easy. Sabbagh whistles and looks theatrically at the ceiling when asked about his month-long journey from Turkey, which began when the boat he joined to cross over to Greece began to sink into the cold December waters of the Aegean.- He was rescued, and then arrested, before making the long overland journey to Sweden, all the time fearing that by the time he got here, the rules would have changed to prevent him from being able to stay.- ""But if it wasn't for this suffering we wouldn't have such motivation to start a business like this,"" he smiles. ""It makes us appreciate it more."" The brothers and their partners are in a hurry. They rented premises and imported the machines within months of arriving in the city, only to discover that Sweden's authorities didn't look too kindly on burning diesel with an open flame in an enclosed space.- Getting a license took a frustrating eight months and required installing an expensive ventilation system.- When they went to Almi, a Swedish government bank which funds and advises immigrants starting small businesses, they were advised to give up. ""They said 'your project isn't going to work,'"" shrugs Mamoun Abo Rokba, who worked as a lawyer in Syria before fleeing three years ago, and now handles the business side.""So I went straight back to the workshop and started to make it happen."" Local tensions What Abo Rokba and the al-Sabbagh brothers have going for them is the backing of their prosperous Damascus families: The Sabbagh family owns five roasteries, while Abo Rokba's father runs a company importing medical equipment. This is not unusual for Syrians in Sweden, who are often richer and better educated than the Iraqis who came in the wake of the 2003 invasion of Iraq. - The family behind the-Jasmin al-Sham restaurant which opened in the middle of the city's main pedestrian street last April owned four paper tissue factories in the Syrian city of Homs. They spent hundreds of thousands of euros converting an old branch of Pizza Hut into a replica of a Damascene house. But the perceived arrogance with which Malm?'s newly arrived Syrians splash money around, and the attention-seeking dabka dances they arrange to launch new businesses, generate not a little resentment among established Arabs. - ""There is that sentiment,"" admits Abo Rokba. ""You can feel it. They're not happy with whatever you started. People tend to forget that we didn't come here by choice. We were forced to leave Syria.""- Mohannad Sabbagh and his brother are carrying on a family tradition with Delicious Rosteri But Syrians like him aren't willing to spend years living on benefits while they study Svenksa f?r Invandrare (SFI, Swedish for immigrants), the slow-moving language program which is the official first step to integration in Sweden.- ""Syrians don't like to stay at home and wait for things to happen,"" he says. ""SFI doesn't get you a job. We don't want to be a burden, we want to be an active part of society.""- Abo Rokba-has just come back from a business meeting in Austria where he discussed exporting his freshly roasted nuts. He has plans to set up another roastery in Berlin. He is thinking of adding freshly roasted Arabic coffee to the product line. Back at the factory, Sabbagh inserts a metal bucket into the cauldron and chickpeas and salt begin to cascade down a ramp, the chickpeas into rubber baskets, and the salt falling through holes to floor to be used again.- He scoops up a handful of the hot nuts and pours them into my hand.- ""You will taste the flavor of Sham now,"" he exclaims. ""A taste of old Syria!""", -253,2017/2/7,http://www.dw.com/en/safer-internet-day-it-s-down-to-you-me-kids-and-parents-to-protect-ourselves-online/a-37430402?maca=en-rss-en-all-1573-rdf,"Safer Internet Day: It's down to you, me, kids and parents to protect ourselves online","The annual Safer Internet Day is all about kids and how to protect them online. But it's about all of us, really. Parents need to know how to help their kids, and sometimes the kids can help the ""olds.""","What are the threats for kids online? Official advice on internet safety tends to focus on a few main threats. In late 2015, the UK government published measures to keep children safe online at school and at home. It includes ""cyber bullying, pornography and the risk of radicalization"" as major threats. It refers to ""some school children, who travelled or attempted to travel to Syria, were able to access material about Daesh [""Islamic State"" or ISIS] and foreign fighters via school computers."" In September 2016, the German government advice listed the same basic threats, but replaced radicalization with the risk of ""gruesome, violent imagery."" And it's all true, but a bit vague, to be honest. The United States Department of Justice (DOJ), however, dives right into the detail: ""Children may come into contact with demeaning, racist, sexist, violent, hateful or false information."" The advice is dated October 24, 2016, so it can be safely assumed the reference to hateful and false information has nothing to do with President Donald Trump (or his administration's tampering of government websites). It then skips over pornography, SPAM containing obscene material, and ""file swapping programs with inappropriate and sometimes mislabeled content,"" before stating that ""most worrisome, children may encounter actual predators that use the internet to identify and lure victims through chat rooms, instant messaging facilities, and social networking sites."" So what can kids and parents do to surf the net safely? Well, the DOJ says that due to ""first amendment rights to free speech, various types of information can be posted in the web, some of which a parent may find inappropriate for their child(ren) to view."" It then goes on to recommend parents snoop on their kids, which, on one level, counters that very idea of free speech. But we are talking about protecting kids, so perhaps snooping is the only way, certainly when kids hit those secretive teen years. While you mull that over,, let me give you more from the DOJ. It'll help you decide. ° Do not post personal information online or your picture - ""it can be copied, changed or used to find you."" ° Do not post your plans and activities in a chat room. Do not post entries that make it clear no one is at your home. And do not use location services - they reveal your location in real-time. ° Do not communicate with people who make you feel uncomfortable or afraid. This, no doubt, is meant to help you steer clear of cyber bullies. But bullies are predators, and sometimes simply walking away isn't enough. So what do you do then? Find someone you trust, like your parents or a teacher. Parents, says the DOJ, should ensure their kids' computers are in a public space even in the home. This neatly ignores concealed messaging on smartphones and watches, but you get the idea. It's also suggested you know your kids' passwords and read through their emails regularly - perhaps also follow them on social media. This is understandable up to a point, but it could have devastating effects on trust within your family. And when that trust is bust, who do you think your kids will turn to? So try talking to your kids before spying on them. And kids, how about you share with your parents before they feel the urge to track you like a troll? For instance, if you come across images that upset you online, talk to your parents. They may not have all the answers, but it'll be better than keeping it secret. - Amanda Todd, a 15-year-old and cyber bullying victim, called for help in a YouTube video before committing suicide You should also talk to your parents before buying apps or in-app purchases and before joining online groups and games. Involve them, and seek their advice - it's no reason to be ashamed. Oh, and speaking of shame: Try to avoid sexting. It'll only come back to bite you in the ""?or send you head first into a case of revenge porn. Not good. Don't internet companies bear responsibility? Yes, companies should bear responsibility, and some do. Take the UK Council for Child Internet Safety. It's worked with internet service providers and telcos, like BT and Everything Everywhere, as well as social media companies like Facebook and the makers of the massively multiplayer online game (MMO) and virtual world, Club Penguin, to produce a set of universal guidelines. It's advice on ""effective internet safety messages"" for providers. Granted, it's just words, mere talk, where engagement is what's needed. But talk is often a first step. The very same information is aimed at schools. This is vital, as increasingly education is done directly on networked, mobile devices. Teachers are on the frontline. There's also Google's Internet Legends, which goes on tour to ""educate primary school children on online safety.""-Its-Safety Centre gives advice on managing your ""online reputation."" It says make smart connections and, on cyber bullying (or ""cybermobbing"" as it's called in Germany), it encourages you to ""be an upstander, not a bystander."" And this is all well and good. But quite often parents - those people who are closest to you kids - are not the most internet-savvy people. So, sometimes internet safety has to be built in. The German government points to two child-safe search engines: fragFinn.de, which may require extra child-protection software, and blinde-kuh.de. And klicksafe.de is an EU-driven portal with loads of information on safety online. Or obfuscate""?For advanced users among us, refraining from posting personal information is just the start. Some people protect themselves online through direct action. As Finn Brunton and Helen Nissenbaum write in ""Obfuscation,"" there are ways to spray false, meaningless information to hide yourself in the noise, or disrupt another conversation. There are ethical issues at stake, possibly even legal ones - obfuscation can be used for good and bad. So it's to be deployed with care. Check out a Safer Internet Day 2017 action near you.", -254,2017/2/7,http://www.dw.com/en/grindel-germany-needs-fundamental-debate-on-football-violence/a-37440331?maca=en-rss-en-all-1573-rdf,Grindel: Germany needs 'fundamental debate' on football violence,"After the shocking attacks on RB Leipzig fans in Dortmund on Saturday, German FA chief Reinhard Grindel has called for an urgent change to Germany's football culture. Grindel wants to see an ""uprising of the decent.""","A number of Leipzig fans and four police officers-were injured when Dortmund supporters pelted visiting fans with stones and cans ahead of the clash between the teams. Reports from the ground confirmed that there were even children among those targeted, while a number of offensive banners were unfurled in the stands at Signal Iduna Park. For Grindel, enough is enough:- -""In view of the violent riots and the massive threat to-families and children outside the stadium, as well as the-contemptuous banners in the stands, words of indignation are not-enough,"" reads his-statement on the German FA website. ""It's important now to have a fundamental debate resulting in a joint stance against any form of physical or psychological violence. We need an uprising of the decent in the stands, and a dissociation with violence. And we need public prosecutors to prosecute the perpetrators and ensure that they are given sentences quickly and (that are) commensurate to their actions."" As well as the censure they've received from authorities, politicians-and fans of other clubs, Dortmund could also face sanctions from the DFB as a result of the-banners. Other German clubs have also come out in condemnation of the violence and its impact can already be seen at local rivals Schalke. Regional police took the unusual step of calling a press conference more than a week before Schalke's Europa League tie with Greek side PAOK, citing the violence in Dortmund - as well as violent clashes-between the sides in 2013 - as reason for the caution.- Dortmund-chief executive, Hans-Joachim Watzke has been vocal in his criticisms of RB Leipzig - controversially backed by Red Bull --in the past but condemned the behaviour of his club's-fans on Monday. ""We will do everything in our power to stamp this out once and-for all,"" said Watzke, while also promising to find those responsible.- mp/jh (DPA/SID)", -255,2017/2/7,http://www.dw.com/en/munich-re-sees-profit-falling/a-37439671?maca=en-rss-en-all-1573-rdf,Munich Re sees profit falling,"Munich Re has reported a year-on-year drop in profit for 2016 as natural disaster-related costs increased particularly in the final months of the year. On top of that, low interest rates remained a headache.","The world's largest reinsurer said Tuesday its profit dropped by around 16 percent to 2.6 billion euros ($2.7 billion) in 2016, down from 3.1 billion euros in the previous year. Munich Re said it had been hit by higher costs from natural disasters in the final three months of 2016. It pointed to claims for some 232 million euros relating to Hurricane Matthew, which struck the Caribbean and the US in October, and 252 million euros for an earthquake in New Zealand. Happy shareholders Like other financial industry firms, Munich Re kept battling extremely low interest rates, making it more difficult to earn money on the premiums paid by clients. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2W1pc While profits were lower last year, Munich Re said it would increase its dividend to 8.60 euros per share, up from 8.25 euros per share for 2015. ""We are sure that we will be able to maintain this level of dividend and continue the trend of raising it in the future, CFO J?rg Schneider said in a statement. hg/jd (AFP, dpa) -", -256,2017/2/7,http://www.dw.com/en/highlights-of-the-berlinale-in-pictures/a-37431378?maca=en-rss-en-all-1573-rdf,Highlights of the Berlinale in pictures,The Berlin International Film Festival features nearly 400 films this year. Discover some of the highlights of the packed program at Germany's largest film festival.,"Film screenings make up the core of the Berlinale, of course. Yet one look at the program of the international film festival indicates that there's even more to it than the movies: discussions and workshops, exhibitions and parties, award ceremonies and stars lining up on the famous red carpet. The picture gallery above offers just a small impression of the program's variety. -", -257,2017/2/7,http://www.dw.com/en/the-best-films-about-filmmaking/a-37426776?maca=en-rss-en-all-1573-rdf,The best films about filmmaking,"From classics like ""King Kong"" and ""Singin' in the Rain"" to, most recently, ""Hail, Caesar!,"" movies about the process of making films have followed the history of cinema. Here are some of the best ones.","Filmmaking fascinates both movie-lovers and directors alike. On anyone's list of favorite films, there's bound to be a work that goes behind-the-scenes of the film industry. The chaos that characterizes many film shoots has inspired great comedies, such as David Mamet's ""State and Main."" ""The Player"" by Robert Altman depicts the absurdities of everyday life in Hollywood. And a whole film crew gets-lost in the middle of a jungle in Ben Stiller's ""Tropic Thunder."" Some of these-films reflect the-directors'-deep passion for their-art. ""Day for Night"" (""La Nuit am��ricaine""), by Francois Truffaut, portrays various-difficulties that can arise during-a film shoot - all while celebrating the power of cinema.- Willem Dafoe is a vampire in ""Shadow of the Vampire"" Other films chronicle how famous works were made. ""Shadow of the Vampire"" (2000) is a tribute to the German filmmaker Friedrich Wilhelm Murnau, portraying him making the classic ""Nosferatu"" - in a fictionalized way.-The lead actor is actually a vampire who sucks the blood of other crew members. Film theaters have also obtained a starring role in many movies, with ""Cinema Paradiso,"" featuring Philippe Noiret, or Woody Allen's ""The Purple Rose of Cairo"" among the most famous examples. Click through the gallery above for our 10 favorites films about films.- -", -258,2017/2/7,http://www.dw.com/en/bp-returns-to-profitability-in-2016/a-37437416?maca=en-rss-en-all-1573-rdf,BP returns to profitability in 2016,"British energy giant BP has announced it's entered positive territory again, logging a slight bottom-line profit for the whole of 2016 and recovering from a huge net loss in the previous year.","BP posted a slight net profit for 2016, the company announced Tuesday. Profit after tax stood at $115 million (108 million euros) last year, compared with a net loss of $6.5 billion in 2015. Weak oil prices were offset by the impact of cost-cutting measures, BP pointed out. The company noted that fourth-quarter earnings more than doubled as it made progress in adjusting to lower oil prices. Oil spill impact Underlying replacement cost profit rose to $400 million from $196 million in the same period a year earlier. The figure reflects the industry's preferred measure-and excludes non-operating items and fluctuations in the value of inventories. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Ho68 ""BP delivered solid results in tough conditions,"" BP Chief Executive Bob Dudley said in a statement. He added that BP was moving toward completion of the ""process for resolving claims arising from the 2010 oil spill."" In 2017, cash payments related to the spill are expected to be lower than in 2016 to come in at around $4.5 billion to $5.5 billion before falling sharply to around $2 billion in 2018. hg/jd (AFP, AP, dpa) -", -259,2017/2/7,http://www.dw.com/en/noah-s-park-saving-elephants-from-the-flood/a-37426245?maca=en-rss-en-all-1573-rdf,Noah's Park: Saving elephants from the flood,"Every year, the monsoon floods parts of India's Assam region. This often hurts wild animals like elephants or rhinos, or separates them from their herds. A rescue station in the area steps in to help.","Project goal: Rescue wild animals that are orphaned, hurt or separated from their mothers or herds. Treat them and then release them back into the wild. Project partner: International Fund for Animal Welfare (IFAW), Wildlife Trust of India (WTI) and Assam Department of Environment & Forests. Project implementation: The IFAW-WTI Wildlife Rescue Station includes a veterinarian's office, an operating room and a laboratory. Five mobile clinics also allow the teams to reach wildlife in the remote regions of Assam. Project size: Aside from the treatment rooms, the station also has expansive enclosures for birds, reptiles, ungulates, primates, big cats and special facilities for raising very young elephants and rhinoceroses. Biodiversity: The adjacent 430 square kilometer Kaziranga National Park is the most important protection area for the Indian rhinoceros in the world and is home to more than 70 percent of the entire population. The park is also home to many other species such as Bengal tigers, Asian elephants, wild water buffalo and barasingha.- Kaziranga National Parks in the Indian state of Assam is home to Indian rhinos, elephants, buffalo, tigers and many other wild animals. But the park is flanked by the river Brahmaputra, which regularly floods large areas during the monsoon season. As a result, many wild animals get separated from their herds or mothers and stranded in areas outside the park. Often they even need to be saved from drowning. The IFAW-WTI Wildlife Rescue Station, which is located next to the park, takes care of them. Here, the animals' injuries are treated, they are brought back to strength and animals that have lost their herd are brought together in new small herds of orphans and re-released into the wild. Among the 3,500 animals that have already been cared for by the park are also leopards, Asian black bears, pythons, different types of antelopes, owls, storks, Asian small-clawed otters and cloud leopards. A film by Wiebke Feuersenger -", -260,2017/2/7,http://www.dw.com/en/vietnam-to-boost-shrimp-exports/a-37436954?maca=en-rss-en-all-1573-rdf,Vietnam to boost shrimp exports,The Vietnamese government has said it aims to massively upgrade the country's shrimp industry with a view to boosting exports. It called for investments from commercial banks to help raise output considerably.,"Vietnamese Prime Minister Nguyen Xuan Phuc called on the country's fish-farming industry to boost shrimp exports, state media reported Tuesday. Speaking at a conference in the southern province of Ca Mau, he pushed for $10 billion (9.35 billion euros) in shrimp exports by 2025. ""I urge the sector to earn $10 billion by 2025 and become a major industry of Vietnamese agriculture,"" Phuc said. ""Inadequate high tech for intensive farming has resulted in only modest productivity of 250 to 300 kilos of shrimp per hectare; if productivity is doubled, we can immediately reach our goal."" TPP uncertainty The prime minister said key to the development of the sector was advanced biotechnology as well as automation plus improvements in packaging and branding. He hoped that investments from commercial banks would help raise shrimp output to reflect 10 percent of GDP eventually. The sector was expected to get a boost from the Trans-Pacific Partnership (TPP), whose members accounted for almost half of seafood export destinations. But US President Donald Trump's withdrawal from the trade deal has left the project's fate uncertain. The US is Vietnam's largest shrimp importer, accounting for 23 percent of exports worth $520.2 million in the first nine months of 2016. hg/jd (dpa, AP, vovworld.vn) -", -261,2017/2/7,http://www.dw.com/en/palestinians-decry-israeli-law-which-legalizes-theft-of-their-land/a-37436476?maca=en-rss-en-all-1573-rdf,Palestinians decry Israeli law which 'legalizes theft' of their land,Palestinians have reacted angrily to the approval by Israel's parliament of a controversial law legalizing dozens of Jewish settlements. The legislation promises to compensate Palestinian owners with cash or other land.,"Israel has played down comments from the White House cautioning that new settlement building ""may not be helpful"" to the peace process. Israelis still expect US President Donald Trump to be more pro-Israel than Obama. (03.02.2017) Israeli PM Benjamin Netanyahu has said he will build the first new West Bank settlement in over 20 years. Meanwhile, the Trump administration in the US pushed back against further settlements. (03.02.2017) Under a court order, Israeli security forces have begun to evacuate the unauthorized Amona settlement, despite resistance from residents. Hours earlier, the government unveiled plans for 3,000 new settlement homes. (01.02.2017) The law, which passed by a vote of 60 to 52 on Monday night, retroactively legalized about 4,000 settler homes built on privately-owned Palestinian land in the occupied West Bank. The legislation applies to 53 outposts and homes within existing settlements, according to the anti-settlement organization Peace Now. But analysts said its passage may only be largely symbolic as it contravenes Israeli Supreme Court rulings on property rights. Israel's attorney-general has warned the law is unconstitutional and that he will not defend it in-the country's top court. Palestinians furious In response to Monday's vote, the Palestine Liberation Organization (PLO) slammed the new law as-a means to ""legalize theft"" and demonstrated ""the Israeli government's will to destroy any chances for a political solution."" Under international law, the Israeli settlements are illegal and are seen by most countries as an obstacle to the peace process. But Israel disputes this and cites biblical, historical and political connections to the land, as well as security needs. A PLO statement stressed that the ""Israeli settlement enterprise negates peace and the possibility of the two-state solution."" Ahead of the vote, opposition chief and Labour leader Isaac Herzog lashed out against the ""despicable law"" that he said would undermine the country's Jewish majority. Israeli ministers divided The legislation has raised tensions in the government, with political sources telling news agencies that Prime Minister Benjamin Netanyahu privately opposes the bill. He believes it could provide grounds for prosecution by the International Criminal Court in The Hague. But right-wing members of his government demanded the legislation proceed in response to last week's forced evacuation by the Supreme Court of 330 settlers from the Amona outpost, also built on private Palestinian land. Israeli Prime Minister Benjamin Netanjahu missed the vote as he was in London to meet British leader Theresa May The far-right Jewish Home party paid tribute to US President Donald Trump who has signaled strong support for Israel, in contrast to the Obama administration, which refused to veto a United Nations resolution denouncing Israeli settlements in December. Since Trump took office, Israel has confirmed it will build more than 6,000 new homes in the West Bank and east Jerusalem, seen as key parts of any future Palestinian state. The UN Special Coordinator for the Middle East Peace Process, Nickolay Mladenov, warned in a statement that the law ""will have far reaching legal consequences for Israel and greatly diminish the prospects for Arab-Israeli peace"". mm/jm (AFP, Reuters)", -262,2017/2/7,http://www.dw.com/en/us-researchers-observe-black-hole-taking-more-than-a-decade-to-eat-star/a-37436483?maca=en-rss-en-all-1573-rdf,US researchers observe black hole taking more than a decade to eat star,A US researcher has noticed a black hole taking more than a decade to devour a star. Most black holes only require one year to eat stars.,"University of New Hampshire scientist Dacheng Lin and his team noted a black hole has been eating at a star-since July 2005 and is still going. This is the longest known event of a star being devoured by a black hole. ""We have witnessed a star's spectacular and prolonged demise,"" said Lin in a statement. ""Dozens of tidal disruption events have been detected since the 1990's, but none that remained bright for nearly as long as this one."" The observation was noted Monday in the Nature Astronomy journal. The astronomic event is taking place in a host galaxy 1.8 billion light years away. According to the Chandra X-ray Observatory, NASA's flagship telescope for detecting x-rays around the universe, the black hole, also known as XJ1500+0154, is located in the center of the host galaxy, the expected location for a supermassive black hole. Supermassive black holes are found at the centers of almost all large galaxies in the observable universe. The XJ1500+0154 black hole emitted its greatest x-ray brightness in June 2008, and has since reduced in brightness. The data also indicates the radiation surrounding the black hole has surpassed the so-called Eddington limit, a balance between the outgoing pressure of radiation from hot gas and the inward gravitational pull of the black hole. The limit explains the luminosity of black holes. ""For most of the time we've been looking at this object, it has been growing rapidly. This tells us something unusual --like a star twice as heavy as our sun --is being fed into the black hole,"" said co-author James Guillochon from the Harvard-Smithsonian Center for Astrophysics. The black hole is expected to continue eating away at the star for several more years to come. kbd/jm (AP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2RFo6", -263,2017/2/7,http://www.dw.com/en/ai-estimates-up-to-13-000-civilians-executed-in-syrian-military-prison-over-four-years/a-37435537?maca=en-rss-en-all-1573-rdf,"AI estimates up to 13,000 civilians executed in Syrian military prison over four years",Amnesty International has estimated that 50 civilians per week were unlawfully executed at a military prison between 2011 and 2015. The rights group has called on the regime to be brought before the ICC.,"Between 5,000 and 13,000 people were executed in the Syrian military prison at Saydnaya between 2011 and 2015, according to a report published on Tuesday by rights group Amnesty International (AI). The majority of the victims were civilians who had denounced the regime of Syrian President Bashar al-Assad, Amnesty said. The report, entitled "" Human slaughterhouse: Mass hangings and extermination at Saydnaya prison, Syria"" was corroborated with 84 witness and expert accounts, including prison guards, former prisoners, judges and lawyers. ""Between 2011 and 2015, Saydnaya saw mass executions that came to total around 50 people per week,"" AI's General Secretary in Germany, Markus N. Beeko, said, The executions were reportedly authorized by the Syrian government, with military tribunals taking just minutes-before prisoners-were sentenced to death. Thousands more people are-reported to have died through torture and inhumane treatment. ""These major systematic violations in human rights mean that we are dealing with cases of crimes against humanity,"" Beeko said. ""These crimes cannot go unpunished; they must be referred to the International Criminal Court (ICC)."" If this route is blocked by the UN Security Council, then individual member states should do all they can to make sure that these crimes are answered for, Beeko added. Syria has been rocked by bloody civil war since 2011, which has seen more than 310,000 people killed and millions more displaced. dm/jm-(AFP, dpa) In 2011, as regimes crumble across the region, tens of thousands of Syrians take to the streets to protest against corruption, high unemployment and soaring food prices. The Syrian government responds with live ammunition, claiming some 400 lives by May. At the urging of Western countries, the UN Security Council condemns the violent crackdown. The EU and US implement an arms embargo, visa bans and asset freezes in the months that follow. With the backing of the Arab League, calls eventually grow for the Syrian president's departure. But not all UN members agree with this demand. Bashar al-Assad - who has been in power since the death of his father in 2000 - sees his reputation wane with the continuing unrest. He refuses to end decades-long emergency rule, which allows for surveillance and interrogation. Russia backs its ally, supplying weapons and vetoing UN resolutions on Syria multiple times. By the end of the year, human rights groups and the UN have evidence of human rights abuses. Civilians and military deserters are slowly beginning to organize themselves to fight back against government forces, which have been targeting dissidents. More than 5,000 have died so far in the fighting. It will take another six months before the UN acknowledges that a war is taking place on Syrian soil. In September 2012, Iran confirms that it has fighters on the ground in Syria - a fact long denied by Damascus. The presence of allied troops underscores the hesitance of the US and other Western powers to intervene in the conflict. The US, stung by failed interventions in Afghanistan and Iraq, sees dialogue as the only reasonable solution. As the death toll nears 100,000, the number of refugees in neighboring countries - such as Turkey and Jordan - hits one million. That number will double by September 2013. The West and the Arab League have seen all attempts at a transitional government fail in the two years of war, watching as fighting spills over into Turkey and Lebanon. They fear Assad will stay in power by any means possible. Assad has long claimed he's combatting terrorists. But it's not until the second year of war that the fragmented Free Syrian Army is definitely known to include radical extremists. The group Al-Nusra Front pledges allegiance to al Qaeda, further splintering the opposition. In June 2013, the White House says it has evidence that Assad has been using sarin nerve gas on civilians - a report later backed by the UN. The discovery pushes US President Barack Obama and other Western leaders toward considering the use of military force. However, Russia's proposal to remove the chemical weapons ultimately wins out. Reports of a new jihadist group calling itself the Islamic State of Iraq and the Levant (ISIL) emerge in the final weeks of 2013. Taking land in northern Syria and Iraq, the group sparks infighting among the opposition, with some 500 dead by early 2014. The unexpected emergence of IS ultimately draws the US, France, Saudi Arabia and other nations into the war. Author: Kathleen Schuster", -264,2017/2/6,http://www.dw.com/en/foreign-minister-gabriel-plays-down-libya-as-safe-place-to-return-refugees/a-37436027?maca=en-rss-en-all-1573-rdf,Foreign Minister Gabriel plays down Libya as safe place to return refugees,"At the EU foreign ministers meeting, Germany's Sigmar Gabriel played down proposals to return migrants to Libya. Ministers are pushing the Libyan government to do more to halt an influx of refugees to Europe.","The chairman of the Social Democrats (SPD) has said a comprehensive approach to the migrant crisis had to involve the return of refugees to North Africa. His words echoed sentiments made by Germany's interior minister. (05.02.2017) More migrants attempting to reach Europe by crossing the Mediterranean have been taken aboard rescue ships, aid organizations said. The rescues come as EU leaders adopt controversial measures in cooperation with Libya. (04.02.2017) A plan to keep migrants from crossing the Mediterranean Sea has been agreed on by EU leaders at their Malta summit. Rights groups warn the policy will confine asylum-seekers to inhumane conditions in Libya. (03.02.2017) The Libyan camps where traffickers hold would-be migrants resemble concentration camps, German diplomats say. Their report comes as the EU mulls a migration deal with the North African country. (29.01.2017) Gabriel, who is Germany's Foreign Minister and also Vice Chancellor, was skeptical about deporting migrants from Italy, where over the past year most migrants have landed in Europe, back to Libya because of the country's chaotic political situation. ""We believe Libya is a very unstable place,"" he told reporters on Monday while in Brussels for-talks with his European counterparts, to implement a deal thrashed out last week by EU leaders in Malta. Gabriel's comments contradicted those made by another senior member of his Social Democrats (SPD),-Thomas Oppermann, who heads the-party's parliamentary group. Oppermann had argued in the-Sunday edition of the German newspaper ""Frankfurter Allgemeine Zeitung,""-that if migrants were returned to Libya, it-would help-curb human trafficking. Ten-point plan On Friday, EU states agreed a 10-point program to assist Libya to reduce the migrant flow, including funding and training for the Libyan coastguard. Leaders also vowed to help set up safe refugee camps in the North African country, after human rights groups criticized existing camps for their inhumane conditions. The bloc will also increase support for those who voluntarily return home from Libya, an EU statement said. Germany Foreign Minister Sigmar Gabriel met his EU counterparts for the first time since taking up the job last month Ministers also urged Libyan authorities to step up efforts to protect migrants, especially those held in detention centers. They condemned reports of migrant abuse by people smugglers, and called ""on all parties to ensure unhindered and secure access to the centers for aid workers."" 'Send them back' Austria's Foreign Minister Sebastian Kurz said the bloc needed to learn from the Australian example, which until recently turned away refugees arriving by boat. The ""most important rule"" had to be that if anyone set off illegally towards the EU, they would be sent back at the bloc's external borders. Some 180,000 refugees, most of them from Libya, landed in Italy last year. Over the weekend, some 1,500 migrants were rescued after their rickety boats got into trouble, the Italian coastguard said. Italian and Spanish rescue teams launched nine different operations to pick up the migrants from vessels in the central Mediterranean off Libya. Last week, Libya said it had intercepted more than 1,100 migrants on inflatable and wooden boats off its coast. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X346 mm/jm (AFP, AP, dpa)", -265,2017/2/6,http://www.dw.com/en/berlin-police-launch-test-phase-of-divisive-taser-guns/a-37435401?maca=en-rss-en-all-1573-rdf,Berlin police launch test phase of divisive Taser-guns,Berlin's police department has started to explore the use of so-called Tasers. The controversial weapons were previously only allowed for use by special units.,"Police, journalists and onlookers were scattered around the damaged Christmas market the day after the terrorist attack. DW's Ben Knight joined them. (20.12.2016) The German government has endorsed a package of security bills, including broadening video surveillance and allowing federal police to wear bodycams. The draft was in the works months before the deadly Berlin attacks. (21.12.2016) The head of Germany's intelligence agency has said authorities received a tip in September that 'IS' was planning an attack. Bomb plot suspect, Jaber A., was detained after police found explosives in his apartment. (11.10.2016) Bristol police used the stun gun after mistaking the man for a wanted criminal suspect. Video footage showed him refusing to give his name to police outside his home. (20.01.2017) Police officers in Berlin will run a three-year test phase of using Taser-guns in threatening-situations. The city-state will be the first in Germany to roll out a trial phase of the divisive weapons, which until now-were only available to special police units and federal police forces in charge of domestic security issues. Units in the districts of Mitte and Friedrichshain-Kreuzberg have provided training to 20 officers on how to employ Tasers in dangerous situations. Further officers are expected to receive the same training in due course. The German capital is on high alert following a terror attack in December 2016, in which a truck was used to kill 12 people attending a Christmas market. The city is planning to introduce other-measures as part of a comprehensive overhaul of its security setup, including increased video surveillance. Shoot on sight? The use of firearms will continue-to be allowed alongside Tasers.-However, authorities hope that the roll-out of Tasers will reduce the use of guns, offering this technology as part of non-lethal alternatives such as pepper spray and tear gas to combat attacks. Technically, however, Taser-guns remain subject to state laws governing the use of firearms by police.- A similar pilot project is reportedly planned for the federal state of Rhineland-Palatinate, starting in March 2017. The state of Hesse is also considering the use of Tasers. The contentious weapons are intended to give Berlin police officers more choice in how to react when facing danger A deadly weapon Tasers, also known as stun guns, deliver a powerful and painful electric shock, rendering an attacker unable to move for a number of seconds. The modern weapons are intended to allow police officers to use this time to apprehend a suspect without sustaining injury themselves. Tasers have, however, come in for criticism-for causing the deaths of a number of people, including-former Aston Villa footballer Dalian Atkinson in the UK last year - one of eleven deaths linked to the use of Tasers by the police in the UK alone. London police are-currently examining whether officers-wish to expand the use of a potentially deadly weapon in the face of the ongoing threat of terror across Europe. ss/rt-(dpa, epd, AFP)", -266,2017/2/6,http://www.dw.com/en/maastricht-treaty-not-yet-set-in-stone/a-37435390?maca=en-rss-en-all-1573-rdf,Maastricht Treaty - not yet set in stone,"It's been 25 years since the signing of the Maastricht Treaty, which among other things included provisions that have to be met to join the euro. After all these years, however, they have proved to be mere paper tigers.","The two most important elements of these provisions - known as the convergence criteria - concern fiscal discipline, mandating member states to limit their annual budget deficits to less than three percent of their respective economic output while instructing them to hold their national debt to under 60 percent of gross domestic product (GDP). Germany was the driving force behind the inclusion of these provisions in the agreement, even though the ""three-percent rule"" on budget deficits had originally been conceived by a young French official. Guy Abeille, a low-ranking employee in the French finance ministry, was tasked in 1982 to come up with a way to control the problem of runaway fiscal deficits, a product of then French President Francois Mitterrand's expansive spending policies. The French government's budget deficit at the time roughly amounted to 2.6 percent of GDP. Abeille therefore was of the view that a one percent ceiling on the deficit would be unrealistic; even adhering to a two percent ceiling would be an onerous task for the government. That's why he suggested a three percent upper limit, and the simple and arbitrary manner in which the rule came into being. It was then later incorporated into the Maastricht Treaty as an important criterion that has to be met by potential member states to join the European monetary union. The rule on keeping the level of national debt below 60 percent of GDP was arbitrary, says Oliver Sivering Arbitrary decisions Even the rule on keeping the level of national debt below 60 percent of GDP was arbitrary, says Oliver Sievering of the College of Public Administration and Finance in the southern German city of Ludwigsburg. In the early 1990s, many countries' debt levels were around 60 percent of GDP. The two figures were then intertwined to come up with the debt and deficit rules, Sievering told DW. ""If the economy grows nominally by five percent, the new debt may rise by three percent. And this was used as the basis for coming up with an upper limit on debt of 60 percent of GDP."" But it quickly became clear that achieving an annual growth rate of five percent was far from realistic. It was also evident that countries like Belgium, Italy and Greece wouldn't be able to meet the 60 percent target. As a result, one had to just take comfort from the fact that the debt situation of these countries was moving in a positive direction and focus on the three-percent-deficit target.- A convergence report published in 1998 by the European Monetary Institute shows that except for Greece, all other potential eurozone candidates showed a fiscal deficit of less than three percent of GDP. Fresh eurozone economic data show that inflation has risen to just below the ECB's key target, growth is accelerating and unemployment has hit a seven-year low, suggesting the bloc's economy is finally on the mend. (31.01.2017) An adviser to President Trump says the euro served as a currency for Germany alone, allowing it to ""exploit"" its EU partners and the US. Is it worthwhile to confront this nonsense with facts? asks DW's Rolf Wenkel. (02.02.2017) A poll by an investment consultancy has shown that more investors than ever consider a breakup of the eurozone likely in the next 12 months. Italy's woes are in focus, but it's not the only potential trouble spot. (29.11.2016) Hans Tietmeyer held a major leadership role in two of Germany's most important transitions in recent memory: Reunification and the introduction of the euro currency. His passing has been confirmed by the central bank. (28.12.2016) Some countries, including Germany, resorted to a number of tricks to show that they complied with the requirement. For instance, the German government sold shares in firms like Deutsche Telekom and Deutsche Post to the state-owned development bank KfW, in a bid to show that it reduced its debt level. Italy, meanwhile, introduced a European tax on its citizens only to repay most of it after the introduction of the euro. Not a good example The two Maastricht criteria are meant to be respected even after entering the eurozone club, to guarantee the solidity of the currency and the monetary area. Germany, in particular, has always insisted on their compliance. However, Europe's largest economy, together with France, violated the deficit limit in 2002, and yet both Berlin and Paris managed to avoid paying billions in fines and softened the strict rules. ""Since then, it has been quite detrimental to budgetary discipline in the euro area, as it gave a chance to other countries to say: if Germany and France do not adhere to the criteria, why should we stick to them?"" noted Sievering. At the height of the financial crisis, almost all countries exceeded the budget deficit target.- Although most eurozone countries have managed to rein in their deficits, they still have a long way to go when it comes to their debt. In 2015, for example, it was only Latvia, Lithuania, Estonia, the Czech Republic, Slovakia and Luxembourg whose debts were below the 60 percent threshold. While Germany recorded a budget surplus again in 2016, its national debt was hovering around 70 percent of GDP, way above the prescribed limit. Although the Maastricht criteria have been violated innumerable times, no penalty has so far been imposed on any violator. ""No one wants to impose a fine on the other, because every country knows that in a few years it could face a similar situation and would be glad if it were let off the hook,"" underlined Sievering. In other words, potential perpetrators judge current culprits. Despite the ineffectiveness of the compliance mechanism, Sievering views the rules as indispensable. He points out that just paying attention to the criteria and discussing-them has-a disciplining effect. -", -267,2017/2/6,http://www.dw.com/en/interview-oppermann-s-refugee-stance-not-spd-s-official-position/a-37434602?maca=en-rss-en-all-1573-rdf,Interview: Oppermann's refugee stance not SPD's official position,"Thomas Oppermann, chairman of the Social Democrats in Germany's parliament, wants refugees rescued from the Mediterranean sent back to Africa. Fellow SPD lawmaker Aziz Bozkurt tells DW that is bad policy.","DW: Mr. Bozkurt, your party colleague and Social Democrats (SPD) boss Thomas Oppermann wants refugees who are pulled out of the Mediterranean-returned to North Africa as a way of stopping trafficking. What is wrong with this plan? Aziz Bozkurt: This is, at the very least, legally questionable. It is a fundamental principal of international law not to send back those whose lives and freedom are in danger. Under international law, you can't pull people out of the Mediterranean and then return them to unstable countries. What Oppermann is suggesting is neither realistic nor doable, same as other Social Democrats have said. It has been suggested before and, like spoiled milk, the idea does not get better with time. Oppermann said that refugees should receive ""initial care in North Africa."" That sounds like asylum requests can be reviewed there. It is fine to find legal paths. However, we have to see which countries we're dealing with. Libya, for example, is more than unstable, as Foreign Minister [Sigmar] Gabriel said again today. Then there are countries like Morocco or Tunisia. Conditions there are basic, yet even there we cannot guarantee legal procedures will be carried out to our standards. Interior Minister Thomas de Maiziere plans to establish a reception center in Tunisia. What is wrong with checking asylum cases there? The SPD's Aziz Bozkurt It's that those people are in large part already in European waters, making Europe responsible for the secure and legal handling of asylum procedures. This is also an attempt to push these people out of sight - out of sight, out of mind. That is unacceptable. Asylum cases should be processed here, when the situation calls for it. We cannot avoid the problem. Is closer cooperation with North African countries for you the wrong way to better control the flow of refugees? Of course. We have to work with countries that are safe. It is not our intention that people take dangerous routes and cross the Mediterranean. Thousands died that way last year. What can the German government do to give people less incentive to take that risk? Thomas Oppermann already made some good suggestions - increased foreign aid, for example. Germany gives 0.5 percent of GDP to foreign aid. It will be 0.7 percent soon, and that is already something. Development aid is especially important when you consider how the movement of refugees has been stoked the last few years, for example due to reduced aid to refugee camps in Lebanon. That was also European policy. We have to find legal paths, too. Oppermann has already made immigration policy a talking point, such as migrant work. Elsewhere, there is our cooperation with UNHCR, which opens up the possibility for legal paths for refugees. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X346 Is Oppermann's statement, which sounds more like a CDU position than an SPD one, testing the election campaign waters? Domestic security will presumably be an overriding topic. I don't really believe that. Oppermann's comments certainly were not approved, rejected by (SPD chancellor candidate) Martin Schulz's circle, and met with resistance throughout the party. Seeing that this was a one-off comment, I hope it was not an attempt at rebranding on the part of Oppermann at the expense of the SPD, as someone ready to become interior minister in the image of Otto Schily (who served in the position under Gerhard Schr?der from 1998-2005 and was known for his hard-line, law-and-order stance). To reiterate: It was an isolated opinion and not the consensus of the SPD. Aziz Bozkurt is the chairman of the SPD working group on migration and diversity. The interview was conducted by Volker Wagener.", -268,2017/2/6,http://www.dw.com/en/bayernlb-under-pressure-over-dakota-pipeline-investment/a-37433672?maca=en-rss-en-all-1573-rdf,BayernLB under pressure over Dakota pipeline investment,"Bavaria's state bank is set to invest about $120 million in the Dakota Access Pipeline, which threatens a Native American reservation and drinking water. Other banks have already sold their stake.","There aren't many members of the Sioux tribe living in Bavaria, but, thanks to the tentacles of international finance, the protests against the Dakota Access Pipeline (DAPL) being built near the Standing Rock Indian Reservation-in the US-have reached-the streets of-Munich. Last week, protesters from an alliance of NGOs arrived on the doorstep-of the BayernLB bank to deliver more than 700,000 signatures. They had been-collected via worldwide petitions against DAPL's-17 financial investors, including the Bavarian state bank, which is contributing $120 million (111 million euros)-of the total $2.5 billion cost.-More than 220,000 signatures were on a petition specifically aimed at BayernLB, though that figure had almost-climbed to 300,000-by-Monday 6. Despite an invitation from environmental campaigners Urgewald, BayernLB-declined to send any representatives outside the building to receive the petition. ""But we were allowed to go in with a delegation of three people, and we gave the petition to the press spokesman,"" said Regine Richter, banking specialist at Urgewald. The bank itself is unwilling to give interviews on the subject, and in response to DW's request would only send the public statement it issued in December, which had made many conciliatory noises. ""BayernLB is following the running discussions about the route of the pipeline very carefully and, as part of the consortium financing the pipeline, supports an amicable result of the discussions between the parties,"" it read. Wait and see BayernLB added that it was waiting on a report from the US law firm Foley Hoag,-commissioned in December to look into how the local indigenous people had been consulted on-the project. That report is due out later this month, but it may come too late, because within days of taking office-in January, US President Donald Trump signed an executive order decreeing that the environmental review for the project be fast-tracked. ""Nobody is really sure that means, but we are concerned that DAPL could get the green light any day now,"" Nick Pelosi, corporate engagement director for the campaign group First Peoples Worldwide, told DW.-""It's such an urgent matter at this point that we really don't have time."" Not only that,-Pelosi is also concerned that the study is being conducted behind closed doors and may be no more than a desktop-assessment. ""From what we understand, it is a study on tribal consultation, which is the crux of this issue - that the tribe was not consulted properly about this pipeline,"" Pelosi said. ""But nobody's reached out to the tribe, so it's essentially a study on consultation without any consultation."" All 17 banks insist that the loans for DAPL-are now legally committed. ""But some have shown concern and that they are willing to exert the limited influence that they have,"" Pelosi said. ""I definitely think they're feeling the pressure,"" he said. ""But what the tribe is asking is not necessarily for the banks to pull out, but to use their influence as project lenders to pressure the company into rerouting to avoid their treaty territory."" The banks'-influence appears to be very limited indeed.-They argue that they can't impose new conditions on the loans and that it isn't their role to determine the route. ""Which is true - it's the US government's responsibility - but we're asking them to support the reroute, not dictate it,"" Pelosi said. Dozens of protesters have been arrested at the Standing Rock reservation Passive bank Compared with other banks, BayernLB has been particularly recalcitrant. ""BayernLB was one of the few that outright rejected our request for dialogue,"" said Pelosi. ""BayernLB is being much too passive,"" Richter said. ""Banks like the Dutch ING and the Norwegian DNB are at least expressing public criticism of the pipeline consortium's behavior or are selling stakes in the companies involved."" Meanwhile in Germany, BayernLB's involvement in the project has raised some political hackles - firstly because it is partly owned by the state, and secondly because it received a colossal taxpayer-funded 10-billion-euro ($9.3-billion) bailout during Europe's financial crisis in 2008. ""BayernLB should not be allowed to support the dirty business of climate denier Donald Trump,"" said Anton Hofreiter, the Greens' parliamentary leader and a native of Bavaria. ""This project destroys the environment, is a risk for the drinking water from the Missouri River-and-at the same time-desecrates the Native Americans' cultural heritage."" Hofreiter, along with other German politicians, is sure that BayernLB's commitment to the project could be reversed by Bavaria's state government. ""I'm sure it's possible,"" Frank Schwabe, Bundestag member for the Social Democrats, told DW. ""The bank has oversight committees, and there is political influence on that, so it would be good if the politicians in Bavaria would take a clear position on it. We're discussing the issue of company and bank responsibility more and more, and I think that a state bank in particular needs to stick to that.""", -269,2017/2/6,http://www.dw.com/en/merkel-making-last-chance-visit-to-poland/a-37433305?maca=en-rss-en-all-1573-rdf,Merkel making 'last chance' visit to Poland,"Germany's Angela Merkel is heading to Warsaw, seeking common ground during a difficult geopolitical moment. The visit's highlight will be a meeting with Jaroslaw Kaczynski, the leader of the ruling Law and Justice Party.","Donald Trump's US presidential victory made clear to Poland how dire its geopolitical situation is. Media are shifting ever more attention to neighboring Germany. On Tuesday, Chancellor Angela Merkel will make a brief, but appointment-packed visit to Warsaw. ""The Merkel of last resort: Poland and Germany are bound to each other,"" wrote ""Tygodnik Powszechny,"" a Roman-Catholic weekly based in Krakow. Poznan's weekly, ""Wprost,"" calls the relationship between the two countries a ""marriage of convenience,"" with photographs of the chancellor in a near embrace with Jaroslaw Kaczynski. You may be interested in reading this: Merkel officially nominated as candidate for Chancellor The chancellor's trip is an in-kind gesture after last year's Berlin visit by Beata Szydlo, the Polish prime minister. Merkel also plans to meet with President Andrzej Duda, opposition leadership and representatives of Poland's German-speaking community. Her most important meeting is with Jaroslaw Kaczynski, the leader of the ruling-national-conservative Law and Justice Party (PiS). It is their first face-to-face in years - the invitation coming from the Polish side, German officials said. Kaczynski is Poland's political kingmaker. Focused first and foremost on his so-called ""conservative counterrevolution"" at home, he has not left Poland for either private or political reasons in years. Instead, he has invited select foreign leaders and policymakers to visit ever since his party came to power at the end of 2015: presidents of Ukraine, the French foreign minister and high-profile members of Donald Trump's circle. Merkel's meeting will take place at Hotel Bristol, known in Warsaw as ""neutral ground."" A press conference is not planned. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WXbm 'Bilateralization' The German-Polish relationship is closer than ever. Trade between the two countries hit 100 billion euros in 2016 ($107 billion). Defense cooperation is for the most part good. Russia policy is also on the same page, apart from the Baltic Sea pipeline. Regional disagreements are mounting. The European Union has filed suit against Poland on account of its government's handling of the rule of law. Berlin has not publicly commented on the feud, looking to avoid a ""bilateralization"" of an EU-level matter. Talks in Warsaw will center on the future of the EU and migration policy. Poland is looking to tweak membership obligations in favor of member states, something Berlin rejects. ""If we start with one country, it opens a Pandora's Box,"" said one German diplomat. Berlin and Warsaw are in agreement on more strongly securing EU borders and countering the causes of refugee movement. How that may affect the situation within the EU remains an unanswered question. The German government hopes for a ""fair sharing of the burden"" of refugees, a position that circumvents many countries' continued opposition to refugee resettlement and at most means a sharing of the financial burden. In late 2014, with the war in Syria approaching its fourth year and Islamic State making gains in the north of the country, the exodus of Syrians intensified. At the same time, others were fleeing violence and poverty in countries such as Iraq, Afghanistan, Eritrea, Somalia, Niger and Kosovo. Vast numbers of Syrian refugees had been gathering in border-town camps in neighboring Turkey, Lebanon and Jordan since 2011. By 2015, with the camps full to bursting and residents often unable to find work or educate their children, more and more people decided to seek asylum further afield. In 2015 an estimated 1.5 million people made their way on foot from Greece towards western Europe via the ""Balkan route"". The Schengen Agreement, which allows passport-free travel within much of the EU, was called into question as refugees headed towards the wealthier European nations. Tens of thousands of refugees were also attempting the perilous journey across the Mediterranean on overcrowded boats. In April 2015, 800 people of various nationalities drowned when a boat traveling from Libya capsized off the Italian coast. This was to be just one of many similar tragedies - by the end of the year, nearly 4,000 refugees were reported to have died attempting the crossing. Countries along the EU's external border struggled to cope with the sheer number of arrivals. Fences were erected in Hungary, Slovenia, Macedonia and Austria. Asylum laws were tightened and several Schengen area countries introduced temporary border controls. Critics of German Chancellor Angela Merkel's ""open-door"" refugee policy claimed it had made the situation worse by encouraging more people to embark on the dangerous journey to Europe. By September 2016, Germany had also introduced temporary checks on its border with Austria. In early 2016, the EU and Turkey signed an agreement under which refugees arriving in Greece could be sent back to Turkey. The deal has been criticised by human rights groups and came under new strain following a vote by the European Parliament in November to freeze talks on Turkey's potential accession to the EU. With anti-immigration sentiment in Europe growing, governments are still struggling to reach a consensus on how to handle the continuing refugee crisis. Attempts to introduce quotas for the distribution of refugees among EU member states have largely failed. Conflicts in the Middle East and elsewhere show no signs coming to an end, and the death toll from refugee sea crossings is on the rise. Author: Rachel Stewart Points of clarification A lack of concrete ideas from Poland makes cooperation especially difficult for Berlin. A pan-European military is a prime example, an idea both Kaczynski and Prime Minister Viktor Orban of Hungary have now and then thrown into the mix. It remains unclear what the Visegrad Group - Poland, the Czech Republic, Slovakia and Hungary - actually want. Poland's government has its reasons to view Brexit and Trump differently than Germany's does. Both pose problems for Germany, which could allow Poland - with its government's lukewarm stance towards the EU - a chance to ""strengthen its position and significance,"" writes the political scientist, Olaf Osica, in Tygodnik Powszechny. The Polish political establishment takes umbrage with the ""[German] inability to accept other points of view, based on its steadfast conviction in its own universal policies"" believed capable of solving nearly every problem in the world. Citing a number of policy differences - migration, energy, climate and the Eurozone among them --Osica concludes that these are ""independent of the party in power"" and have been openly debated only since the change in government. It is hoped that the-meeting with Merkel will be a ""serious conversation about serious topics and the defining of common interests.""", -270,2017/2/6,http://www.dw.com/en/neuer-things-aren-t-working-the-way-we-d-like-at-the-moment/a-37432494?maca=en-rss-en-all-1573-rdf,Neuer: Things aren't working the way we'd like at the moment,Bayern goalkeeper Manuel Neuer has admitted that the German champions are struggling to play the brand of football they want to under Carlo Ancelotti. Bayern face Wolfsburg in the German Cup tomorrow.,"The Bavarians were held at home by Schalke on Saturday but extended their lead at the top of the table to four points after RB Leipzig's loss. Despite their league position and seven points from nine since the return from the winter break, Ancelotti's side have faced their fair share of criticism from both the media and fans. And ahead of Tuesday's-game, which sees the previous two winners of the German Cup clash at Allianz Arena, Germany's number 1 admitted that some of that talk is justified. ""Things that have always been our trademarks like pace and accurate passing aren't working the way we'd like at the moment,"" he said. Neuer's feelings were echoed by Philipp Lahm, who said ""it's clear we want to play better football."" Lahm, who made his 500th competitive appearance for Bayern when he came off the bench against Schalke, said the team needed to improve against Wolfsburg and with a Champions League last 16 tie with-Arsenal -just around the corner. ""There's nothing at all wrong at the moment, but the players have to be aware that we can't play the way we did in the last three matches over the next few weeks,"" the club's skipper-said. Wolfsburg, who beat Bayern on penalties in the 2015 final, have somewhat deeper problems. Valerien Ismael's side are just three points clear of the relegation play off spot and lost to Cologne at the weekend. But Ismael is a believer in the old adage that the form book goes out the window in Cup games. ""The Cup has it's own laws,"" he said on Monday.-""We are going into the game confidently and will look to take our chance."" mp (DPA/Reuters)", -271,2017/2/6,http://www.dw.com/en/german-cup-what-to-watch-out-for-in-the-last-16/a-37431020?maca=en-rss-en-all-1573-rdf,German Cup: What to watch out for in the last 16,For Dortmund it's a question of priorities but some of the Bundesliga's sleeping giants will welcome their sole shot at glory. And can Lotte upset the odds again? Here's what to look out for in this week's cup games.,"Can Lotte hit the jackpot again? The last 16 of the German Cup features seven-teams from outside the top flight but there's no doubt that Sportfreunde Lotte are the darlings of this season's competition. The tiny club from Germany's north-west were in the regional leagues until last year but have already seen off Bundesliga heavyweights Bayer Leverkusen and-Werder Bremen. The 10,000 capacity Frimo Stadion is sure to be rocking once again on Wednesday for the visit of 2nd division 1860 Munich. The Bavarians, who made a high profile appointment earlier in the week, have struggled for consistency this term and lost again at the weekend. A division may divide the teams but there are only 11 places between them in the league pyramid. The home side will fancy their chances of making the last eight. Who will Tuchel pick? Thomas Tuchel's team are still fighting on three fronts A win over a Leipzig and suddenly things are looking up again at Dortmund. Their inconsistency in the Bundesliga means Thomas Tuchel's side can all but write off the title for another year and also means the Champions League seems an unlikely goal. Which leaves the German Cup. BVB squeaked through in the last round, requiring penalties to see off Union Berlin. In that match, Tuchel fielded a side peppered with fringe players and almost paid the price. Making the same move against Union's city rivals Hertha would be a bold move. Pal Dardai's side are solid and fit and the Hungarian coach has said he's looking to take the match in to extra time. Tuchel must balance his desire for fresh first teamers with the hunger for silverware. Contrary to the normal thought process, perhaps the Bundesliga game against doomed Darmstadt on Saturday is a better opportunity to rest players ahead of the resumption of the Champions League, against Benfica, on February 14. Will -struggling mid-table trio take it seriously? The cup is Gladbach's best chance of success in 2016/17 The same questions of priority-apply to a host of the Bundesliga's mid-table sides. Schalke may have their own European adventure but they ""?along with Borussia M?nchengladbach and Wolfsburg ""?must see the German Cup as their only chance of glory in seasons that have been various shades of-underwhelming. Wolfsburg have a daunting task when they visit-Bayern Munich on Tuesday-but Schalke (away to Sandhausen on Wednesday) and Gladbach (away to Greuther F��rth on Tuesday) will both expect to progress. This underachieving trio all finished in the Bundesliga's top 8 last term, they all look relatively safe from relegation (though Wolfsburg must still look over their shoulders)-and Europe seems a long shot. A cup exit and many fans will feel their season is over before the end of February. Can Hannover prove their Bundesliga credentials? Hannover were relegated from the Bundesliga last season Two of last season's underachievers meet in Hannover on Wednesday and both have turned their form around. Hannover were wretched in finishing bottom of the Bundesliga-last term but have bounced back to top Bundesliga 2, while Niko Kovac's Eintracht Frankfurt are third in the top tier after surviving in the relegation play off last time round. For Hannover this is a chance to prove they belong back at the table while the Eagles will want to maintain their momentum as the business end of the season approaches.", -272,2017/2/6,http://www.dw.com/en/indian-state-elections-a-referendum-on-pm-modi-s-demonetization-policy/a-37426903?maca=en-rss-en-all-1573-rdf,Indian state elections - A referendum on PM Modi's demonetization policy,"Five Indian states are electing new governments over the next few weeks. The votes will prove to be a key test of PM Modi's popularity, which has taken a hit due to his demonetization move. Murali Krishnan reports.","Indians went to the polls on Saturday, February 4, in the first two of five state elections that experts say are a major popularity test for Prime Minister Narendra Modi. The premier's approval ratings have dropped since his controversial move in November last year to scrap high-denomination currency notes, dubbed locally as ""demonetization."" Weeks after Modi announced the-drastic move to withdraw all 500- and 1,000-rupee notes from circulation, the monetary situation in Asia's third-largest economy has yet to normalize and most people across the country continue to face problems accessing cash for their daily needs. The government has said the move will bring billions of unaccounted money into the formal banking system and clean India's economy of ""black money,"" a term used in the country to refer to unaccounted, untaxed wealth. But since the announcement, serpentine queues have lined up outside banks and ATMs of people replacing their rupee notes or making small withdrawals. And Modi's administration has faced sharp criticism over the slow pace of introducing the new notes, with banks running out of cash and ATMs having to be recalibrated to cope with the different sized bills - a process that is still incomplete. The Indian government's recent surprise decision to ban all high-value currency notes in circulation has affected almost everyone in the country. Economist Rajiv Biswas talks to DW about the effectiveness of the move. (24.11.2016) One of the world's fastest growing economies is projected to experience a slowdown in the current fiscal year. India's economy is forecast to grow by 7.1 percent, which would be its slowest rate of growth in three years. (06.01.2017) India wants to go digital and cash becomes outdated overnight. Prime minister Modi certainly wants to do the right thing. But with the demonetization move his calculation just doesn't add up, writes Katja Keppner. (02.12.2016) Months after India's PM Narendra Modi shocked the nation with an abrupt high-value banknote ban, hitting the country's economic growth, the government has announced a plethora of sops to ease the pain. (01.02.2017) The Indian economy's high reliance on cash only adds to the crisis. Furthermore, many in the South Asian nation lack proper access to banks and financial services. The uncertainty caused by the shock decision has also led foreign investors to withdraw huge amounts of capital from the country and put it elsewhere. The resulting slide in the rupee has sparked speculation that the country's central bank may intervene to shore up the currency. Crucial elections The state elections are being held against this backdrop.-The five states, where the votes are taking place, are home to a fifth of the country's 1.25 billion-strong population. While the voters in the western states of Punjab and Goa cast their ballots on Saturday, polls will be held in Uttar Pradesh and Uttarakhand in the north and Manipur in the northeast between February 11 and March 8. As predicted by political analysts, the demonetization controversy has dominated the crucial state elections. Opposition parties are trying to use the currency controversy to their advantage as the rural population in the states has faced the brunt of the premier's demonetization decision. In the states of Punjab and Uttar Pradesh, farmers are finding it difficult to buy pesticides for the winter crops. ""It is a serious issue as cash scarcity has affected vast swathes of India's rural hinterland. If the objective of the demonetization move was to target the rich, it has not been effective,"" Vinod Singh, a-farmer from Uttar Pradesh, told DW. The election in Uttar Pradesh is crucial for Modi given its enormous significance in Indian politics. Being the most populous state in the country, with over 200 million inhabitants,-it elects the highest number of lawmakers to both houses of Indian parliament. Modi's Hindu-nationalist Bharatiya Janata Party (BJP) won 73 out of the state's 80 Lok Sabha - the lower house of parliament --seats in the 2014 general election, a stunning performance that helped the party secure an absolute majority for the first time. Experts say India's abrupt demonetization 'seems completely silly' - But it won't be an easy ride for the BJP in the state-level polls this time around, warn-experts. The electoral alliance between the regional Samajwadi Party and the Congress party has given a boost to BJP's-opposition. In Punjab, the chances of the Aam Aadmi Party-(Common Man's Party), an outfit campaigning against corruption, securing victory are pretty sound. Several polls following the weekend vote indicate that the party, which has a government in Delhi, could win the Punjab state election. ""It was an election of hopes. People have high hopes, and we will together fulfill those hopes,"" Arvind Kejriwal, the AAP chief, said after the vote. If the BJP performs well in this crucial round of state polls, analysts believe it would be interpreted as an endorsement of PM Modi's policies. A defeat could force the party to reconsider its strategies. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X52r -", -273,2017/2/6,http://www.dw.com/en/10-things-you-should-know-about-the-berlinale/a-37428301?maca=en-rss-en-all-1573-rdf,10 things you should know about the Berlinale,"Richard Gere and Pen��lope Cruz will be there, and you can watch a new TV series about a fictional, Nazi-run Britain. From stars and prizes to politics, here's everything you need to know about the Berlinale.","1. How many films are being shown? The 67th Berlinale, which runs from February 9-12, 2017, presents a total of 399 films. The number of showing is much higher as many of those films are being shown multiple times. Over one quarter of the films on the agenda were directed by women. 2. Is there one overarching theme? No. There are several themes that dominate the various programs. Some of them focus on the fate of refugees, such as the in-competition contribution of Finnish filmmaker Aki Kaurism?ki, ""The Other Side of Hope."" Also this year, the Berlinale, in keeping with its long tradition of focusing on political topics, is presenting numerous documentaries. As 2017 is the 100th anniversary of the October Revolution, some of the contributions deal with political utopias. The section ""Panorama"" shows films on homosexuality, as well as African films and films dealing with racism.- Aki Kaurism?ki's ""The Other Side of Hope"" is vying for a Gold Bear Even though it's been all over the news, the name ""Donald Trump"" wasn't mentioned at all during the Berlinale's opening press conference. ""Our program in itself is already a strong form of protest,"" responded Berlinale director Dieter Kosslick when asked how the festival would be responding to the new US president. 3. Which stars will be there? This year, Hollywood actors including Richard Gere and Ethan Hawke, Cillian Murphy and Robert Pattinson will be making appearances. The female stars that've marked Berlinale in their calendars tend to be from Europe, such as C��cile de France, Pen��lope Cruz, Catherine Deneuve and Kristin Scott Thomas. Australian stars Geoffrey Rush and Hugh Jackman, as well as German actors Nina Hoss, Moritz Bleibtreu, August Diehl, Bruno Ganz and Hanna Schygulla are also expected. 4. Which German films are being shown? This year, German films are strongly represented with 104 works shown in various program sections, as well as three films in competition by Volker Schl?ndorff, Thomas Arslan and Andres Veiel. In addition, young German filmmakers will be shown exclusively in the series ""Perspektive Deutsches Kino"" (Perspective on German film). Thirty-six German films will run in the section ""Lola"" which caters to foreign film distributors. 5. Which international highlights can be expected? Expectations are high for some films in the competition including works by-Aki Kaurism?ki (Finland), Agnieszka Holland (Poland,) Sally Potter (Britain,) Hong Sangsoo (South Korea) and Alex de la Iglesia (Spain,) as well as US filmmakers James Mangold and Oren Moverman. Josef Hader appears in his own film, ""Wild Mouse"" Also drawing a lot of attention are two films directed by actors, namely American Stanley Tucci and Austrian Josef Hader. The works of big-name directors will be shown in other sections, including James Gray, Raoul Peck, Fernando Trueba, Bruce LaBruce and Romuald Karmakar. The Berlinale also offers a platform to new discoveries and lesser-known filmmakers that have promising careers ahead of them.- 6. Which program series are particularly-important? In addition to the competition and the well-established series ""Panorama"" and ""Forum,"" the section ""Generation"" tends to draw crowds. Many Berlinale fans love this part of the festival as it's-directed towards very young audiences. But there's also something in store adults. The section ""NATIVe"" shows films focusing on indigenous peoples in northern Europe. ""Kulinarisches Kino"" (Culinary cinema) not only shows works on food and the environment,-but also invites audiences to actually sit down and enjoy a real bite.-Finally, the ""Berlinale Shorts"" fascinates short film fans.- 7. What does the Berlinale contribute to cinema history? Traditionally, the Berlinale also takes a look back at the past. This time, the historical retrospective is devoted to the science-fiction genre with both well-known newer films from Eastern Europe and Asia. The series ""Berlinale Classics"" presents restored historical works that haven't been viewable in original for a long time, among them Helmut K?utner's ""Schwarzer Kies"" (Black gravel) and the Mexican film ""Canoa."" The digitally upgraded zombie classic ""Night of the Living Dead"" is likely to give viewers the creeps this year. 8. Does the film festival also present TV series? The awards will be presented on Saturday, February 18 Yes, watching entire series has become a tradition at the Berlinale. This year, viewers can look forward to ""4 Blocks"" by Marvin Kren featuring Berlin's drug and clan scene, as well as ""SS-GB"" by Philipp Kadelbach, which is set in a fictional Britain where the Nazis were victorious. Historical film fans can enjoy Rainer Werner Fassbinder's innovative 1972 TV series ""Eight Hours Are Not a Day"" in its restored version. 9. Where are the films shown? Throughout the entire city. The festival's focal point is Potsdamer Platz, where the in-competition films are shown every evening. Other traditional locations are old movie theaters like Zoopalast and Delphi in the western part of the city. The ""Berlinale Goes Kiez"" section brings movies to local Berlin neighborhood cinemas. 10. Which awards can be won? Golden and Silver Bears will be handed out to the competition winners on February 18. Since 2006, the GFF Best First Feature Award, endowed with 50,00 euros, has been presented to a promising newcomer each year. Starting this year, there is yet another new award aimed at producers and directors of documentaries, the ""Glash��tte Original Documentary Award. - There are additional awards handed out to films in some particular sections, like the Teddy in the ""Panorama"" section, which goes to a gay/lesbian film. This year, the Italian costume designer Milena Canonero, who became known by her work with Stanley Kubrick, will receive the Honorary Golden Bear. The Berlinale Camera 2017 goes to Chinese film distributor Nansun Shi, Australian actor Geoffrey Rush, and Egyptian film critic Samir Farid. -", -274,2017/2/6,http://www.dw.com/en/netanyahu-calls-for-new-sanctions-against-iran/a-37430268?maca=en-rss-en-all-1573-rdf,Netanyahu calls for new sanctions against Iran,"At talks in London, Israeli Prime Minister Benjamin Netayahu has called for ""responsible nations"" to stand up to Iran. His British counterpart, Theresa May, was under pressure to condemn Israel's settlement expansion.","On Monday, Benjamin Netanyahu welcomed US President Donald Trump's introduction of-new sanctions against Iran and said other ""responsible nations"" should follow suit in view of what he called Iran's recent ""defiant aggression."" ""Iran seeks to annihilate Israel; it says so openly. It seeks to conquer the Middle East;-it threatens Europe;-it threatens the West;-it threatens the world,"" Netanyahu said during a meeting with British Prime Minister Theresa May in London. ""I'd like to talk to you on how we can ensure that Iran's aggression does not go unanswered,"" he told May, apparently referring to Iran's test of a ballistic missile last week. -The Trump administration said Iran was formally ""on notice"" after the test, and the president has also voiced opposition to the Iran nuclear deal with major international powers. Netanyahu is also a fierce opponent of the 2015 deal, which Britain also signed. The agreement saw Iran-pledge to curb its nuclear program in return for sanctions relief. When asked whether Britain was considering new sanctions, a spokeswoman for May said ""the prime minister made clear that we support the deal on nuclear that was agreed."" ""What happens now is that it needs to be properly enforced, and we also need to be alert to Iran's pattern of destabilizing activity in the region,"" the spokeswoman said. Israel and Iran have been bitter enemies for well over-two decades. Different agendas Ahead of the talks between May and Netanyahu, Britain said it wanted Monday's negotiations to focus on trade ties-as it seeks to bolster trade relations outside the European Union for when it leaves the bloc. The two leaders agreed to set up working groups to continue developing trade ties between the two countries.- May's spokeswoman said the two leaders would also ""talk about a range of security and international issues, including the Middle East peace process."" The spokeswoman said May would voice concern about how the ""continued increase of settlements activity undermines trust."" At the beginning of the meeting, the prime minister said the UK remained ""committed to a two-state solution as the best way of brokering stability and peace."" Israel has stepped up its expansion of settlements in the Palestinian territories since the inauguration of Trump, who is perceived as sympathetic to settlement building. Palestinians say the settlements in the West bank and east Jerusalem, which are home to 600,000 Israelis, are making a two-state solution harder to achieve, a position that has wide international backing-and was also held by Trump's predecessor, Barack Obama. tj/rt (AFP, AP)", -275,2017/2/6,http://www.dw.com/en/madrid-restaurant-offers-homeless-taste-of-luxury/a-37425699?maca=en-rss-en-all-1573-rdf,Madrid restaurant offers homeless taste of luxury,A restaurant in Madrid is transformed at night into an establishment where homeless and those in need are served a sophisticated dinner for free. Hagar Jobse reports.,"Maria Marte migrated to Spain in 2003 and started washing dishes in a Madrid restaurant. She stayed despite the economic crisis and is now a head chef with two Michelin stars to her name. Guy Hedgecoe reports. (01.08.2015) The financial crisis that began in 2008 obliterated millions of jobs in Spain. In the wake of the meltdown, around half of those under 30 are still unable to find a job. Santiago Saez reports from Madrid and Huelva. (29.12.2016) Spanish Twitter users are accusing the Catholic Church of prioritizing its presence in the media over traditional relief work. Others say the criticism is hypocritical. (25.01.2016) ""The worst of having to queue for your food is the shame,"" says Olga, who prefers not to reveal her last name, while she takes a bite of her Spanish omelette. Olga, a tiny woman with grey hair pulled into a ponytail, has been unemployed for almost 10 years. She has a roof above her head, but the monthly 400 euros ($430) she receives from the Spanish government are not enough to make it until the end of the month. So she has had to queue up outside, waiting for the social services to give her a sandwich. ""I am always afraid a family member or friend will see me,"" she tells DW. ""I went to university you know. What if I ran into someone from my class? What would they think?"" But tonight, Olga doesn't have to stand in line for food. She is sitting at a table in Madrid's recently opened Robin Hood restaurant, a fairly ordinary looking Spanish bar with a cigarette machine in the corner and a ham leg on the counter. Here, Olga is served dinner by professional waiters. Every half hour she is asked whether she wants another drink or a refill on her soup. During the day the Robin Hood restaurant is a regular establishment where customers pay 11 euros for a fixed menu. But at night the place transforms into an establishment where homeless and people in need like Olga are served a sophisticated-dinner for free. The business-model is simple: the earnings made at breakfast and lunch fund the evening meals for the homeless. The Robin Hood restaurant uses its daytime earnings to fund meals for the homeless Messengers of peace The restaurant is the latest initiative launched by the charity organization Mensajeros de la Paz, which means messengers of peace, and was founded 54 years ago by priest Angel Garcia Rodriguez. In conservative Spain Father Angel, as he is often called, is a revolutionary. For example, the church he opened two years ago in Madrid's trendy Chueca neighborhood is open 24/7, has a WiFi connection, and features livestreams from the Vatican and religious films. During the winter months homeless are allowed to sleep on the church benches. When DW assists a service at the San Anton Church on Sunday, it is packed with people listening to Father Angel's sermon. Unlike in other churches people are walking in and out and mumbling quietly. After the service Father Angel explains why the noise doesn't bother him. ""In most churches you need to be silent. We don't want to tell people how they must behave. We want them to feel welcome,"" he tells DW. Finding a connection: San Anton Church offers free WiFi to homeless people Father Angel says the idea to open the Robin Hood restaurant was inspired by Pope Francis. ""He always speaks about how important is to give people dignity. It is not only about giving food to the poor, it's also about how you give it to them. So seeing the long lines of people waiting outside in the cold for food, I thought: 'why don't we serve these people food in a restaurant, with proper cutlery and crystal glasses instead of plastic cups?'"" The-economic crisis-in Spain has had a severe impact on the country and Spanish charities like Mensajeros de la Paz are still dealing with the consequences; 30 percent of Spaniards are living close to poverty and 300,000 people in the country are homeless. Helping the homeless Currently, 100 homeless and people in need, selected by the social services of Madrid, can have dinner at Robin Hood every night. ""They have a table reserved for them, just like paying customers when they go out for dinner,"" Father Angel explains. And it is that reservation Antonio Pachon, 62, looks forward to every day. Pachon has been living on the streets of different cities in Spain since he left his native Seville in 1996. ""During the day I usually wander around the city by myself,"" he explains. ""It's nice to have a place like this where a seat is waiting for me and where I can talk with people I know. As soon as I step into the door of this restaurant, I forget about my problems. And when I leave I always feel a little lighter and happier."" Maria Vizuete has worked in several upmarket restaurants but says her job in the Robin Hood has been the most fulfilling It's 8 p.m. and 42-year-old waitress Maria Vizuete is running around with plates stacked in her hand. During a break she explains that she has more then 20 years of experience working in hotels and restaurant. ""I have worked in the Ritz and other expensive hotels. But when I was asked to work here I immediately said yes. Now I am working for people who really need it and that is very gratifying,"" she tells DW. Vizuete explains that the restaurant also tends to be full during the day. ""Two weeks in advance we are usually completely booked."" During DW's visit to the restaurant the place is packed. Elena Sanchez and a friend are just finishing desert. They think the food is wonderful and are glad they can help other people by coming here. ""Since the economic crisis in 2008 so many people have gotten into deep financial trouble after losing their jobs,"" Sanchez thinks the Spanish government hasn't come up with enough solutions to fight-poverty in Spain. ""There is a big need of initiatives like the Robin Hood restaurant in our country,"" she tells DW.", -276,2017/2/6,http://www.dw.com/en/syrian-refugee-takes-facebook-to-court-in-germany/a-37090822?maca=en-rss-en-all-1573-rdf,Syrian refugee takes Facebook to court in Germany,A Syrian refugee in Germany - famous for a selfie he took with Chancellor Angela Merkel in 2015 - is taking Facebook to court. His motive is to stop the circulation of fake news posts showing his face.,"Facebook has been summoned to a district court in the southern city of W��rzburg in what could mark a precedent in the fight against hatred and agitation in social networks. The-public hearing will take place on Monday to decide on an interim injunction against Facebook Europe - the first time the social media giant will take the stand in a German court over the spread of multiple ""fake news"" posts. While in a refugee camp in Berlin Spandau, Anas Modamani heard that the German Chancellor Angela Merkel was coming for a visit and would be talking to refugees. The 19-year-old Syrian, who is quite fond of social media, went to take a selfie. He was hoping for the selfie to inspire a real change in his life.. When Modamani's house in Damascus was bombed, he fled with his parents and siblings to a smaller city called Garia. That is when Anas fled for Europe in the hope that his family could join him there, once he had made it. He first traveled to Lebanon and from there to Turkey and then on to Greece. Anas almost died on the way. In order to get to Greece from Turkey he had to travel in a rubber boat, like most refugees. Anas says the boat was overcrowded and eventually capsized and he almost drowned. From Greece Anas traveled by foot to Macedonia. He continued to Hungary and Austria. In September 2015, he reached his final destination: Munich. Once in Germany, he decided he wants to move to Berlin. He has been living there ever since. Upon arrival to Berlin, Anas spent entire days in front of the LaGeSo, a refugee center in the city. The 19-year-old says that the situation at the LaGeSo was difficult, especially during the winter. Eventually he was sent to the refugee center in Berlin Spandau. He wanted to raise awareness to his situation as a refugee and a selfie with Merkel seemed like the perfect chance to do exactly that. Anas says that the selfie with Chancellor Merkel was a life-changer for him. He got a lot of media attention after the photo was published online, and that is how his German foster family became aware of him. He has been living with them for 2 months now. They have been supporting him ever since he became a member of their family. Since living with the Meeuw's Anas is happier than ever before. He is doing a German language course, has made a lot of friends and is doing a lot of cultural activities. He graduated high school in Syria and wants to pursue higher studies in Germany. But his main aim right now is to be officially granted asylum and to be able to bring his family to Germany as well. Anas is hoping for a good and safe life in Germany. But he is worried about the current sentiment towards refugees in the country. He thinks that the negative mood might escalate and have an impact on the laws in regard to refugees. Anas fears that he might not be granted asylum after all, thus ending his dream of bringing his family to Germany. Author: Rachel Baig Bavarian lawyer Chan-jo Jun filed an injunction on behalf of a young Syrian refugee who says his photo is being spread on social media with claims he is a terrorist,-or a ruthless criminal. ""Facebook is unusually difficult about implementing German law,"" Jun tells users who visit-his law office's Facebook page. ""Slander and abusive insults are against German law, but not against its community standards."" Widely shared fake news Modamani gained instant fame with a selfie he took in 2015 with the German chancellor when she visited the Berlin refugee shelter where the young newcomer was housed. He posted the picture on social media with no idea of the reception it might get, Modamani told DW in last month. German media snapped up a photo of the brief moment, and over the months, it has resurfaced on social media, too. A moment of silence a day after the suicide bombings in the Belgian capital Whenever there's a refugee-related incident, he's trotted out as Merkel's model refugee, ""and the crimes are blamed on him,"" argues Jun. No one should have to put up with that, so now ""Modamani is fighting back,"" says the IT attorney, who has filed various legal complaints against the US social networking company, including demands that Facebook comply with Germany's hate speech laws. Fighting back against slander Most recently, the photo of Modamani and false claims that he was part of a group that tried to set fire to a sleeping homeless man in a Berlin subway station in December was shared more than 500 times. It did not sufficiently violate Facebook's community standards to be removed, the attorney says,-adding that his client's image and the deprecatory comments can still be found on Facebook. Earlier in 2016, fake news content showed the 19-year-old refugee's image in connection was the terrorist attacks in March in-Brussels, claiming he was one of them and had just pretended to be a refugee, with some sites insinuating Merkel took ""a selfie with a terrorist."" In case of failure to comply with an order to stop circulation of the fake news about his client, Chan-jo Jun wants Facebook fined by up to 250,000 euros ($264,000.) The lawyer also says it's high time to end the ""cat and mouse game"" involved in having to pursue Facebook in the-registered jurisdiction of-its European headquarters in Dublin. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UNX5 -", -277,2017/2/6,http://www.dw.com/en/first-german-supermarket-sells-waste-food-only/a-37426777?maca=en-rss-en-all-1573-rdf,First German supermarket sells waste food only,"The first supermarket to sell only salvaged food waste has opened in Germany. It marks a small step towards a zero-waste society - but a major shift in social awareness, says DW reporter Irene Banos Ruiz.","From curious grannies to committed ""food-savers"", everyone who came to ""The Good Food"" when it opened on February 4-was excited by a-shop unlike anything they had ever encountered before. The store in the German city of Cologne is the first of its kind in the country and the-third one in the European Union. It sells-products of all kinds, from vegetables to beer. And the unusual thing is that all these products would otherwise have been destroyed as waste. The other peculiar thing about ""The Good Food"" is that there are no fixed prices. Consumers decide how much they think a product is worth. You only need to take one look at the figures to understand why Nicole Klaski decided to start ""The Good Food"". -Every year, one third of the food produced in the world gets wasted.- If we saved just a quarter of that wasted food, we could feed almost 900 million hungry people, according to the-Food and Agriculture Organization of the United Nations (FAO). Klaski and Thurn want to stop food waste. Valentin Thurn is an author and the award-winning director of the ""Taste the Waste"" documentary. He came along to the opening to celebrate what he sees as a positive move to combat food waste. But he also told DW there were still major challenges to be overcome. ""This idea is simply great,"" Thurn said. ""I still cannot understand why we throw so much food away!"" The starting point Well, actually, he says, he does have some idea. ""The trade knows we prefer to buy something that looks perfect,"" he said. Indeed, the FAO's information shows that at retail level, food is mostly wasted because it does not look attractive. Klaski told DW it was time to take action to change this. She goes into fields after they have been harvested and collects the vegetables left behind. Some of them are deemed too big, some too small, some just too ugly to sell. In her shop, the organic food then becomes accessible to everyone using a ""pay what you think"" system. Buyers can also find non-perishable products from big manufacturers which have passed their sell-by dates. A customer checks the label on a bottle from the ""past the date but delicious"" shelf. ""No one wants to throw the food away,"" Klaski said. ""We save the vegetables and expired products, and the producers are happy that their food is still eaten."" For her, the system is a ""win-win cooperation.""- What about health risks? Some of the curious visitors having a look around ""The Good Food"" admitted they would not buy certain products if they were past the date. Others, however, said it was easy to tell by the color or smell if a product was still in good condition or not. Klaski herself is not worried that there could be health risks involved. ""The expiry dates on products are only a suggestion for the consumer,"" she told DW. ""Most of the products last much longer."" But in the unfortunate event that someone really did get sick, someone has to carry the responsibility. That is why Klaski says the team takes their duty very seriously to inform consumers when a product is out of date. ""And, of course, if something happens we will have to take the responsibility,"" she added. ""But we are even willing to do that; it is worth trying."" Part of a broader movement Contrary to traditional supermarkets' aim of making a profit, ""The Good Food"" aims at having a social impact. ""Pay what you like"", says the sign on these products. ""Our highest expectation is to raise awareness on the problem food waste represents,"" said Anja Rickert, a member of the team at ""The Good Food"".- She believes initiatives like this can motivate people who were not previously aware of issues relating to a sustainable lifestyle. Klaski is convinced that once the first step is taken, the rest follows on. The food waste shop is part of a broader movement to reduce consumption and be aware of how we consume, she said. The furniture used, for instance, is all second hand or recycled. And most of the consumers seem to share the same philosophy. ""Coming here represents more than just buying food, it is a way of life,"" one of the clients told DW. Beyond the social movement Author and film-maker Valentin Thurn has observed a huge change in attitudes since he produced ""Taste the Waste"" in 2010: ""At that time nobody spoke about food waste, literally nobody,"" Thurn said. ""Now many people are involved, even politicians."" However, despite strong social movements such as food-sharing, food waste remains one of the major challenges of our time. Merchandising the leftovers is not enough to combat it, Thurn is convinced.- He believes imposing economic penalties could be the only effective way to really reduce waste. ""We have to find real solutions to reduce over-production,"" he said. And this can only be done through legislation to influence-the economy and businesses models. ""It's not enough to rely on action from a few big business leaders who are aware of environmental issues,""- he concluded. - -", -278,2017/2/6,http://www.dw.com/en/merkel-officially-nominated-as-conservatives-candidate-for-german-chancellor/a-37427076?maca=en-rss-en-all-1573-rdf,Merkel officially nominated as conservatives' candidate for German chancellor,The Christian Democrats and their Bavarian sister party have officially chosen Angela Merkel as their nominee. Her main rival at September elections will be Social Democrat Martin Schulz.,"German Chancellor Angela Merkel was on Monday-officially nominated to run as her party's candidate in this year's federal elections, party sources say.-A leaders' meeting of her center-right Christian Democratic Union (CDU) and its Bavarian sister party, the Christian Social Union (CSU), confirmed the foregone conclusion at a meeting in Munich. There is ""unanimous support of both parties for Merkel's candidacy,"" said Horst Seehofer, the leader of the CSU and premier of Bavaria. German Chancellor Merkel has highlighted her party's common ground with its Bavarian ally as the parties plot a course for the upcoming election. The meeting comes amid a surge in support for the Social Democrats. (05.02.2017) SPD candidate Martin Schulz would receive 16 percent more votes than current CDU Chancellor Angela Merkel, a survey showed. The SPD has benefited since Schulz was nominated as the party's candidate for the Chancellery. (02.02.2017) Martin Schulz has been nominated to run as the SPD chancellor candidate. Many people in the party are euphoric, but how will this new optimism change the Social Democrats? (31.01.2017) The 62-year-old has emerged as one of Merkel's harshest critics within her own ranks in recent years, as Bavaria has borne the brunt of incoming migrants throughout the refugee crisis. Seehofer has called for a cap on the number of refugees, and in 2015-even threatened to file a complaint about the Merkel administration's refugee policy with Germany's highest court. In a press conference on Monday, Merkel-ruled out implementing a limit on refugee numbers, but said both the CSU and her own CDU party had agreed that the influx of more than 1 million people-in-2015-16 should not happen again. She also said the two parties would start working on a joint election platform for the upcoming vote. Agenda to be announced Merkel and Seehofer were expected to present the CDU/CSU election agenda as part of a joint statement late on Monday. A one-time research chemist from former east Germany, Merkel has been active in politics since shortly before the fall of the Berlin Wall in 1989. After a stint as the minister for women and youth and then the environment under former Chancellor Helmut Kohl, she became head of the CDU in 2000. She became chancellor herself in 2005 and has won every election contested since. Her main rival in the 2017 election will be current coalition partners the center-left Social Democrats (SPD)-and their candidate,-former European Parliament President Martin Schulz. es,nm/tj (AFP, dpa)", -279,2017/2/6,http://www.dw.com/en/she-would-ve-turned-100-remembering-the-inimitable-zsa-zsa-gabor/a-36821518?maca=en-rss-en-all-1573-rdf,She would've turned 100: remembering the inimitable Zsa Zsa Gabor,"Zsa Zsa Gabor is a movie star for the ages. A refugee from the Nazis, the former Miss Hungary embodied the ultimate diva in both big and small roles. She died just a few weeks before her 100th birthday on February 6.","Born on February 6, 1917, the inimitable Zsa Zsa Gabor didn't get to become a centenarian, as she died on December 18, 2016-- just a few weeks before her 100th birthday.- A-movie star for the ages, the former Miss Hungary fled her country just before World War II, joining her first husband, Turkish diplomat-Burhan Belge,-in London in June 1939. Later moving to Los Angeles, the child of a prosperous family embodied a fur-and-diamonds lifestyle that became something of a trademark, along with her thick Eastern European accent. The original diva, she began starring in movies in 1950s Hollywood, taking on roles in-""Lovely to Look At,"" ""Moulin Rouge,"" ""Lili,"" Orson Welles' ""Touch of Evil"" and even the camp classic ""Queen of Outer Space."" Everybody's darling Known for her trademark Eastern European accent and habit of calling everyone ""Darling,"" Gabor continued her career making-television appearances until well into her 70s. She appeared in character on shows like ""Batman"" and ""Bonanza"" before-making cameo appearances on the television-series-""The Facts of Life"" and-""Fresh Prince of Bel Air""-as her fame grew.-- Gabor was well-known in the US for her personal life. She had numerous affairs in the public spotlight and-married at least eight times. ""A girl must marry for love, and keep on marrying until she finds it,""-Gabor once said. Hotel heir Conrad Hilton, great-grandfather to Paris Hilton,-was her second husband and the father of her only child, Francesca. She also-had-a short-lived marriage-to businessman John W. Ryan, who was credited with the creation of Barbie dolls. At the time of her death from a heart attack, Gabor had been with her husband Frederic von Anhalt for 26 years.- ""Everybody was there. She didn't die alone,"" an emotional von Anhalt told AFP by phone. Click through the gallery above for a look back at the career. -", -280,2017/2/6,http://www.dw.com/en/bringing-back-ukraine-s-buffalo/a-37405955?maca=en-rss-en-all-1573-rdf,Bringing back Ukraine's buffalo,The Carpathian buffalo was once a popular livestock breed in the Ukraine. But it's fallen out of favor and its numbers have dwindled. Why is one German agronomist trying to bring it back into vogue?,- -, -281,2017/2/6,http://www.dw.com/en/more-cultural-content-on-dw-s-german-language-tv-channel/a-37400592?maca=en-rss-en-all-1573-rdf,More cultural content on DW's German-language TV channel,"As of February 6, Deutsche Welle's German-language program will see its cultural content boosted. DW's head of culture, Rolf Rische, explains how.","DW: What's new about the German-language program offered by DW? Rolf Rische: DW's new German-language TV programs will include-much more cultural content than before. We interpret culture in a very broad sense: We don't want to talk only about cultural highlights in literature, film and music, but also about culture's social dimensions, for instance traditions and values. Our new program isn't just the TV equivalent of the feature pages of a traditional newspaper;-it's-much more exciting television that keeps our audience up-to-date on culture, business, sports,-science-and so much more. As always with DW, you can watch the German program anywhere in the world. For live stream access via the internet, simply click on the ""Live TV"" button in the upper left corner. You can also watch most shows per video on demand on the DW-website under the heading ""TV."" Viewers are sure to find their favorites, from ""Europe in Concert"" and ""Kino"" to ""Kulturzeit"" and ""Shift."" Viewers can also use the DW App under ""TV"" live to follow the German TV program on their phones. Of course, the German TV program will also continue to be broadcast in the usual manner, reaching Eastern Europe, Asia, Oceania, North and South America via satellite. Direct reception is only possible with a very large satellite dish - but DW has more than 250 broadcast partners offering the entire range of DW's German TV program. ""Multichoice"" gives viewers in South Africa and nine other African countries access to the German-language program in its ""DSTv Premium"" channel. Viewers in Canada can turn to ""Shaw Cablesystems"" for DW's German broadcasts. Who is your target audience? Each and every viewer interested in Germany and Europe, or in German and European points of view. And of course everyone who enjoys culture - and who wouldn't? Rolf Rische is DW's head of culture and society and German TV If you have a look at the schedule, you'll see we're truly offering a lot of culture. New, genuine cultural-content, such as the music magazine ""PopXport"" on Mondays of-each-week,-as well as a-new show called ""Kulturzeit"" that will-air-five days a week and that is acquired-from broadcasters ZDF, ORF, SRF and ARD. Sundays, watch out for the successful and-popular show ""Kultur.21."" Then, we have a set of new shows that are all about literature: ""druckfrisch,""-""lesenswert"" and ""B��cherjournal"" give us the opportunity to present a weekly literature broadcast. I know no other program that has such a spectrum. Another novelty is-an almost one-hour-long current affairs show entitled ""Der Tag,"" with a daily guest, and a special slot for cultural-content. Those are just three of a series-of additions that promise to make the program more exciting, as well as giving it a clear cultural-profile. Will most of that content focus on high-brow culture? No, by no means. Perhaps the line between serious ""high-brow"" culture and entertainment is more pronounced in Germany than elsewhere, but that is not true for us, the creators of the television programs. For us, there's only good culture, and perhaps less good culture. Most of all, we want to get our audience interested in good movies, good music, good books, no matter whether they belong to the high culture or the pop culture category. Who would dismiss the unrivaled electronic music band Kraftwerk-as unimportant entertainment, but automatically categorize the one millionth performance of the opera ""Tosca"" on a second rate stage as high culture? People who live in ivory towers and would rather stay there, isolated, that's who. We, on the other hand, are always on the lookout for quality,-beyond what I regard as totally superfluous categories. Take our award-winning film-""Teodor Currentzis, the classical rebel,"" which tells the story of a conductor and his orchestra working on Mozart's ""Don Giovanni."" In a way, that is high culture - but most of all, it's a highly entertaining movie. It's a quality film, and the protagonists, Teodor Currentzis and the MusicAeterna orchestra, are really good, too. Forget the distinctions between high-brow and popular culture to focus on what's good - such as Kraftwerk That said, we plan to continue to show music documentaries, but also German comedy shows like ""Ladies Night"" and ""Nuhr."" Of course, we will also continue to broadcast the entertaining shows that have had a loyal audience for many years, including the daily ""Euromaxx - Leben und Kultur in Europa,""-the travel show ""Check-in"" and the music show ""PopXport."" Why are you focusing on culture at this point? Mainly because the viewers are very interested in culture, as DW's market and media researchers have found out. In addition, it's a perfect fit with DW's chartered mission. According to the DW Act, the broadcaster is intended ""to convey the image of Germany as a cultural state in the European tradition and as a free and democratic constitutional state. They should provide a forum in Europe and on other continents for German (and other) points of view on important topics, primarily in the areas of politics, culture, and economics."" Promoting understanding and the exchange of ideas among different cultures and peoples is Deutsche Welle's mission. And that is what we hope to achieve with the new German-language program. There simply is no better approach to the values and identity of a society than via culture. By nature, the dialogue of cultures nurtures understanding. In these uneasy times, one is tempted to rephrase a well-known, decades-old German advertising slogan for a tonic based on natural herbs: ""Culture - never more valuable than today."" -", -282,2017/2/6,http://www.dw.com/en/queen-elizabeth-celebrates-65-years-on-the-throne/a-37400289?maca=en-rss-en-all-1573-rdf,Queen Elizabeth celebrates 65 years on the throne,February 6 marks the 65th anniversary of the day Elizabeth became Queen of England. She is the first British monarch to reach a Blue Sapphire Jubilee. Here are more records broken by Her Majesty.,"Elizabeth ascended the throne at the age of 25, on February 6, 1952 - the day her father, King George VI, died. Already the longest-reigning British monarch since 2015, Queen Elizabeth II is now making history once again by becoming the first to celebrate a Sapphire Jubilee. The gallery above goes through some of the records detained by monarchs in the UK and around the world.- A traditional gun salute and a performance by the Band of the Royal Artillery is planned to underline the record-breaking anniversary. However, celebrations should remain limited this year. The Queen is said to want to quietly devote the day to her father's memory. Larger celebrations could, however, be planned for the Queen's next big anniversary, her Platinum Jubilee in 2022. As the gallery below shows, no matter how big or small the event, Her Majesty certainly knows how to dress for every occasion.-- - The Queen's outfits are legendary. Her fancy hats always match with her suits and her hemlines are weighted down - to prevent windy wardrobe embarrassments. Then there's the handbag: It always has the same shape. Classic, black, it's just big enough to hold her lipstick, reading glasses, mint lozenges, and a handkerchief. That's how the world has known her for the past 60 years. Queen Elizabeth II rarely shows up bareheaded. She has hats in all shapes and colors. Some are light and playful, trimmed with little flowers, while others look strict and sober. They always match with her outfits. Who could tell how many she actually has? It's one of the world's best-kept secrets. Even when she was younger, she was the queen of headgear. Here she is on the beach, donning a casual hippy style. This picture belongs to a series of historical photos of the Queen which were auctioned in 2008. A private collector can now smile with her every day. Even a princess needs to pitch in: During World War II, Elizabeth Windsor was part of the Auxiliary Territorial Service, the women's division of the British Army. She learned mechanics and how to drive trucks. This picture was taken in 1945 - once again, with headgear. Two years after the war, Elizabeth married her childhood sweetheart, Prince Phillip of Greece and Denmark. Hundreds of ration coupons were collected to purchase her wedding gown: After the war, it was still difficult to obtain such valuable materials, even for the royal house. The satin dress was embroidered with 10,000 pearls and crystals and had a four-meter-long (13-foot) bridal train of lace. At the coronation ceremony On June 2, 1953, she wore a white silk dress with colorful embroideries representing the emblems of the Commonwealth of Nations. Attached to her shoulders, a five-meter-long (16-foot) velvet mantle was carried by six maids of honor. It was billed ""the visit of the century."" In May 1965, the Queen was West Germany's most welcome official foreign guest. 56 years had gone by since the last visit by a British state official - and two wars, during which both countries had experienced great suffering. Queen Elizabeth II spent 11 days traveling through the young Federal Republic - and charmed the Germans with her outfits. After Elizabeth II enchanted Germany with her whimsical hats, she opted for a more traditional style for her Austrian state visit in 1969. She wore a white silk dress with a red sash, and a diadem instead of a hat. In 1978, Elizabeth II came to Germany for the second time. Although she was once again received with great pomp, the procession was more modest than the one for her first visit. Over the years, normalcy and even friendship characterized the two countries' relations. Former German president Walter Scheel, pictured here, contributed to consolidating these ties. In February 1972, the Queen visited King Bhumibol in Thailand. She'd obviously have a stately gown and diadem in her suitcase, but also a few playful outfits as well (with matching hats, of course). Even though it's cheerful, her summery ensemble on this picture doesn't seem frivolous. Nothing can diminish her royal style - not even these 3D glasses. The Queen wore them while visiting the University of Sheffield, where she was invited to operate an excavator with a 3D display. When the Queen is not on state visits, she often prefers a modest headscarf to her designer hats. Suddenly the royal guise is concealed: She rather looks like a good-natured grandmother, pictured here in 2012. She kept it tweedy while riding with the former U.S. President Ronald Reagan in 1982. The Queen showed him around the grounds of Windsor Castle, her favorite residence. On July 29, 1981, Elizabeth's son Prince Charles married Lady Diana in what was considered the ""fairytale wedding of the century."" Although the Queen apparently played a major role in the couple's union, she didn't manage to steal the spotlight from her daughter-in-law that day - not even in bright turquoise. When Prince William married Kate in 2011, the Queen wore a much more relaxed dress than at the wedding of Charles and Diana. Here she's pictured arriving at Westminster Abbey in a sober yellow outfit. Every year for the Queen's speech, she traditionally wears her official royal regalia. The speech always marks the formal beginning of a new legislative period for the British Parliament and outlines the projects of the government for the upcoming session. The Queen still dresses up in royal robes. Here she is with Prince Philip in front of Saint Paul's Cathedral, during a church service in honor of the Order of the British Empire, a highly respected order of merit. The Queen turned 90 in 2016. Although she was born on April 21, 1926, her official birthday is celebrated in June, because the weather is usually nicer for outdoor ceremonies. On June 13, 2015, she drove through London with her husband Prince Philip in an all-white suit, which matched her hair perfectly. Author: Silke W��nsch / eg", -283,2017/2/6,http://www.dw.com/en/blaze-leaves-three-dead-at-sauna-club-in-berlin/a-37424038?maca=en-rss-en-all-1573-rdf,Blaze leaves three dead at sauna club in Berlin,Some 50 firefighters have responded to the deadly fire at a sauna club in the heart of Germany's capital. Authorities have yet to discover the cause of the fire.,"The former squat on Rigaer Strasse 94 in Berlin - one of the last such leftist strongholds in Europe - has won another day in court. The owner's lawyer couldn't prove he was entitled to represent the case. Fire rescue officials on Sunday said three men died in a fire that broke out at a sauna club in the German capital of Berlin. Emergency services received the first call about the fire at 22:30 (2130 UTC). It is unclear how the fire erupted at the Steam Works club, located in the basement of a 10-storey building in the central Berlin district of Sch?neberg, authorities said. Other parts of the building were not affected by the blaze, they added. Firefighters had to cut through a steel gate in order to access the club, the Berlin-based ""BZ"" newspaper reported. A spokesman for emergency response services said some 50 firefighters combed through the small rooms of the 2,000-square-meter-club. Nearly 30 people were at the club at the time the fire broke out. -ls/bw (dpa, BZ", -284,2017/2/4,http://www.dw.com/en/bundesliga-matchday-19-talking-points/a-37416276?maca=en-rss-en-all-1573-rdf,Bundesliga matchday 19: Talking points,Do Bayern Munich rely too much on one man? Why can't RB Leipzig beat the big boys? Is Mahmoud Dahoud back on track under Hecking? All this and more in this week's Bundesliga talking points.,"Dahoud front and center of Hecking's revolution Although Lars Stindl's individual goal in Borussia M?nchengladbach's win over Freiburg will undoubtedly be the highlight worth watching this weekend, do spare a thought for the wonderful one-two between Raffael and Mahmoud Dahoud for the Foal's second goal. The young attacking midfielder has reverted back to looking very much like the prodigy that first burst on the scene last season. It's seems no coincidence that this has happened so soon after Dieter Hecking took over as coach. Against Freiburg, Bayer Leverkusen last week and Darmstadt the week before, Dahoud has pulled strings and dictated play at the very heart of Hecking's new-look side. And as such the Foals have quickly begun moving up the league table, now back up to tenth. Lewandowski-reliant Bayern finally stumble Robert Lewandowski has a habit of making art out of football. Two weeks ago he turned a cold, wet night in Freiburg in to a stage for some game-winning magic. He's done it a number of times for Bayern Munich - and this weekend's-wonderful chipped finish to take the lead against Schalke was no exception. However the Polish international's talent has also underlined a problem with Bayern this season;-nobody else really seems up to the task of helping him win games. Lewandowski currently has 15 league goals. The next man on the goalscoring charts is the injury-prone Arjen Robben with six and then its defender Joshua Kimmich with four, who hasn't scored since October. Indeed the team hasn't been playing well at all this season but for large parts of the league campaign the Polish striker has pulled them out of trouble. Unfortunately, against a stubborn Schalke side, that wasn't the case. Robert Lewandowski scored his 15th goal of the season against Schalke Leipzig missing key players Although RB Leipzig's strength in depth is undoubtedly one of their key assets-and a large part of their success this season, at a certain level you need your very best players for the big games. This became abundantly clear in Saturday's clash with Borussia Dortmund, when a flu-ridden Timo Werner made way for-David Selke, who was tasked with leading the line. Unfortunately, the young striker fell well short of this goal and-found himself back on the bench in the second half. Indeed, Leipzig were also missing Emil Forsberg, Marcel Sabitzer and Diego Demme in a performance that seems to suggest that the key players in this team are exactly that - key to any sustained success in the Bundesliga. Dortmund struggling up front Dortmund, on the other hand, are struggling with a completely different problem: they have the key players fit and ready but such stars are still struggling to deliver the goods each week. Ousmanne Dembele's dribble, run and cross for Pierre-Emerick Aubameyang's opening goal was a thing of beauty but when the euphoria of picking up all three points against Leipzig wears off fans of the club will perhaps wonder why he can't do exactly that from one game to the next. Indeed, Marco Reus' string of misses in the second half highlighted the simple facts. Dortmund have scored 13 fewer goals in the league this season than they had done at this point last year. Over-19 games it's easy to imagine just how many more points Thomas Tuchel's side would be sitting on if they could reach that-same potency in front of goal-again - maybe even all eight separating them and Leipzig in second. Ousmane Dembele (pictured jumping) set up the winner with an outstanding run and cross Consistent Frankfurt are Champions League contenders Whilst all the attention has centered around RB Leipzig, Hoffenheim and Dortmund, Niko Kovac has overseen a quiet revolution in Frankfurt.-Their 3-0 defeat in Leipzig aside (where they played with ten men for 87 minutes after Lukas Hradecky's moment of madness), Eintracht have only lost one other Bundesliga game since October to find themselves third.- Statistically, the improvement can be explained by defensive solidity - by the end of the Hinrunde, the first half of-the season, Frankfurt had conceded 13 goals less than they had at the same stage last season.- But what cannot be explained in simple mathematics is the change in team spirit since Kovac took charge. Kovac is close to sporting director Fredi Bobic and together, the two have established a tangible sense of togetherness in the dressing room, with Alex Meier telling kicker magazine in November that the team are ""much more compact"" and willing to work for one another. Goal-scoring, however, remains a sticking point, with Frankfurt having found the net less than any other side in the top seven. If Kovac's Frankfurt family can find a solution to that as well, there's no reason they can't continue to fight for a Champions League place.- When Schalke conceded a goal within the first ten minutes, it looked like their struggles were due to continue in Munich. But Naldo (center) came to the rescue, bouncing in a free kick that put Schalke level with the defending Bundesliga champions in the first half. Schalke's defense took it from there, holding off Bayern to earn a valuable point away from home. Adam Szalai (left) has not done spectacularly well since leaving Mainz in 2013, but he did have a spectacular game off the bench for Hoffenheim. The Hungarian forward scored two goals against his former club to top off a fantastic rebound performance for Hoffenheim, who lost their first game of the season last week against RB Leipzig. It only took 59 seconds until Berlin took the lead against Ingolstadt on Saturday. Genki Haraguchi smashed a pass from Salamon Kalou into the back of the net, which left Martin Hansen (middle left) in a state of dismay. It was the only goal Hertha needed to secure their first win of 2017. Cologne have lost just once this season when Anthony Modeste has scored. His goal, the only goal in Cologne's 1-0 win over Wolfsburg, came from the penalty spot after the French forward drew a penalty from a misguided dive from Diego Benaglio. It was his 15th goal of the season as he continues to move up the goalscoring chart. It took 73 minutes for Borussia M?nchengladbach to get their motor running, but it roared pretty loud when it kicked into gear. Gladbach scored their three goals in 15 minutes at the end of their contest with Freiburg, Raffael getting the first. Their 3-0 result was the second time this season in which Gladbach have scored three goals in the second half. Kyriakos Papadopoulos (second from left) may be a defender wearing a striker's number (No. 9). But he earned his kit number after a game-winning goal against his former club Bayer Leverkusen - from which he is on loan. The goal gave Hamburg their fourth win in seven Bundesliga games. RB Leipzig shocked Borussia Dortmund in their first ever Bundesliga home game last September with a 1-0 victory. Dortmund did the shocking this time, upsetting the second-placed Red Bulls with a 1-0 victory. Pierre-Emerick Aubameyang headed in the game's only goal, his 17th of the season - in as many Bundesliga starts. Augsburg came from behind twice to secure a thrilling 3-2 victory over Werder Bremen. An entertaining and open game looked to be heading for a draw when Koo equalized with ten minutes to go. But Raul Bobadilla (pictured left) crowned a highly-impressive individual performance with the winning goal deep into stoppage time. Eintracht Frankfurt were made to work very hard for a 2-0 win over bottom-club Darmstadt in the Hesse derby. A second-half penalty by Makoto Hasebe (pictured) finally broke the deadlock before Rebic killed the game off late on. The win takes Frankfurt up to third and firmly in the race for the Champions League. Author: Davis Van Opdorp, Rob Turner", -285,2017/2/3,http://www.dw.com/en/beavers-on-the-rampage/a-37401996?maca=en-rss-en-all-1573-rdf,Beavers on the rampage,"Beavers were almost completely wiped out of Germany by the early 20th century. Now, they've made a comeback. But their busy construction work is causing tensions with human neighbors.","Few animals create such impressive structures or alter their environment so dramatically as the beaver. Few, except for humankind. ""Beavers are like the architects of our waterways,""-says of Iris Barthel of German conservation group Nabu. ""They build dams, burrow, gnaw and fell trees and shrubs. In this way, beavers have shaped our riverscapes for millions of years."" But despite - and sometimes because of - a shared propensity for reshaping the landscape, humans and beavers don""t always make good neighbors. By the early 20th century, humans had hunted the Eurasian beaver - prized for its meat and warm, dense pelt --almost to extinction. In Germany, a few animals survived in pockets on the Elbe river. More recently, protection of the species and reintroduction programs have seen beaver numbers bounce back. Today there are around 30,000 in Germany, with strongholds in east Germany, as well as parts of Bavaria, on the Upper Rhine and the southwest of North-Rhine Westphalia. After a long absence, the hefty rodents-- with their unmistakable flat tails and blunt snouts . became, if not a common sight, at least something you might be lucky enough to glimpse on a German riverbank. Still, beavers are shy, and anyone looking for signs of their presence along the Rhine or Elbe might do better to look out for a beaver's dam, or the stumps of trees felled by gnawing. Beaver dams are hard to miss Beaver-made flooding Some riverside residents, however,-don't have to go out looking for traces of beaver activity. Just as manmade dams can be disaster for the habitat of other animals, so some Germans have found their own homes flooded by beaver-made reservoirs. One homeowner who found the foundations of his house in German city of J��lich threatened by rising water levels from a beaver dam told local broadcaster Westdeutscher Rundfunk: ""They don""t belong here in the middle of the city. We'r not an open-air zoo."" Nabu says conflict usually occurs when farms or gardens extend right up to the river bank-or where the natural floodplain is altered. ""The beavers aren""t aware of property ownership. They see the riverbank as a place they can dig their burrow,""-says Barthel. ""They see tasty food in fields or orchards. So it can happen that a tractor breaks a beaver lodge or a beaver fells a favorite apple tree."" She adds that beavers have been accused of burrowing into dams and dikes, disrupting manmade flood defences, but says there are well-practiced defenses against this kind of damage. ""If beavers are pilloried by politicians, it's primarily to distract from their own failures in flood prevention,""-says Barthel. Beavers are landscape architects - something humans hold against them Warming beaver-human relations Biologist Jessica Dieckmann told DW that part of her role as newly-appointed commissioner on beavers for the German city of Hamm was to help deal with conflicts arising between homeowners and their beaver neighbors. She explained that because injuring or killing beavers or damaging their dams and burrows is forbidden in German, ""A solution has to be found tactfully.""?""A solution could be that landowners sell a 20-meter-wide (66-foot-wide) riparian strip and make it available for nature protection,""-says Dieckmann. Her other tasks as beaver commissioner include finding out whereabouts beavers are in Hamm and how many there are, to know how best to deal with the creatures in the future. Beavers usually live in burrows in the river bank accessed by an underwater tunnel. The dam ensures the water is deep enough to hide the entrance to their ""lodge""-beneath the surface. But while human construction often runs at complete odds with the needs of other living species, beaver dams bring benefits to a whole host of other species. ""They create small ponds, deadwood, marsh areas-or open up areas of soil,""-says Barthel. These provide habitats for dragonflies, amphibians and reptiles, for fish and birds. ""Where humans have to spend a lot of money on preserving biodiversity, the beaver helps out for free."" ""At the same time, it contributes to the cleanliness of water, re-natures rivers and supports natural flood prevention.""", -286,2017/2/3,http://www.dw.com/en/conductor-simone-young-germans-adore-a-good-discussion/a-37405745?maca=en-rss-en-all-1573-rdf,Conductor Simone Young: 'Germans adore a good discussion',One of the first internationally successful female conductors explains how working in Germany can be initially frustrating but very rewarding in the long term - and why so few German women conductors have emerged.-,"The American Marin Alsop, the Mexican Alondra de la Parra, the Lithuanian Mirga Gra?inyt?-Tyla and the Estonian Anu Tali have been stirring up excitement in the world of classical music in the past few years. But one of the first to crack the glass ceiling in this male-dominated profession is the Australian Simone Young. She's been professionally active in Germany for over 30 years, including 10 years as General Music Director and Opera Director in Hamburg. For the past year and a half, she's been a freelance conductor, and is in demand worldwide.- Deutsche Welle: DW is soon to start a German-language television program with cultural and arts content. What do you think of that? Simone Young: I'm surprised it doesn't already exist. If I find myself in a train in England or America for example, and people are speaking German nearby, I can never resist the temptation to get involved in the conversation. Invariably, the internationally mobile Germans have a keen interest in culture. As a director of an opera house, you may have noticed, like I, that foreign critics are much kinder to new productions than German critics are. What does that say about Germans and their attitude towards the arts? It has a lot to do with the fact the arts take a very central position in life in Germany, in a way that they don't, for example, in the English speaking world. Here productions are expected to have a political commentary on current situations, or otherwise be socially relevant. A German critic comes to the performance with the expectation of being challenged, and of finding program notes revealing-what was on the mind of the director. I applaud the idea that the arts should say something about humanity's current situation, that they remain alive and current and relevant, but dislike the kind of intellectual snobbishness that goes with some of this. Extrapolating on this, and drawing on your experience of working in-German speaking lands, what would you say is the essence of being German? I think it's changing, but something I have always found fascinating about the Germans is that they are very politically conversant. I remember that in Australia, where I was born, you didn't talk about religion or politics in polite company! But when I first came to Germany, I was delighted and at the same time shocked by how readily my contemporaries would get into heavy conversations about politics - or about religion for that matter. I eventually realized that the idea of giving voice to your opinion is something that is very actively developed in Germany. Now, not every opinion is worth listening to. And there still is a sense here that everyone says their piece, and the one who says it loudest gets listened to. But I applaud a society that is as politically aware and as self-critical as this one. - This production of Borodin's ""Prince Igor"" from 2012 falls within Young's tenure as director of the Hamburg State opera What are the kinds of messages and values that you think should be projected from Germany to the rest of the world? Or is there even a need for that? I think there is more and more a need for that. Let's put it bluntly: both with Brexit in the UK and Trump in America, I think we're moving into a time when countries are becoming very focused on their own needs and desires in a very selfishly inward-looking way, like: we'll deal with the rest of the world later. Germany carries with it, of course, the legacy and the guilt of the 20th century, and as such continues to engage with the world outside in a way that acknowledges the debts that contemporary Germany has to the rest of the world. Of course, I move in liberal circles, in that in the operatic, the symphonic, the arts world in general, you're dealing with a generally high level of education and social awareness. So I am in a little bit of a bubble. - Maybe everybody's in a bubble in this increasingly polarized world. But with your intense connection to this country, do you see yourself in one way or another as a spokesperson or a representative for the German brand or German values? Actually, there are a number of very fine international Australian artists who really now have a sort of double heritage. While never denying our Australianness, our musical beings have been very much developed and enriched by our experiences in Germany. I'm quite honored to be lumped in with and described as a German conductor, for example, when I go to the States. I'm an Australian conductor, but I have very much a German style, and after all the years here, have a real affinity with the repertoire in Germany. So getting lumped in with German conductors is something I quite like, as it describes the kind of conductors whose work I admire too. At the New Year's Eve concert in Hamburg, 2014 How is work-life in your field in Germany different from that in other countries? The tradition in Germany is highly professional. Everybody is good at what they're hired to do, but they carry no responsibility for the job of anybody else. I always say: when you come to Germany as an English speaker, the first sentence you learn is: ""Es geht nicht"" (That-cannot be done).-And the next one you get is: ""Es war ja immer so ""? (This is how we've always done it""? And the third one is: """"Ich bin aber nicht daf��r zust?ndig."""" (I'm not responsible for that). If you keep asking the questions", there was a kind of inevitability that this would one day work through into the echelons of the conductors. Sure: I still see day-to-day ingrained -287,2017/2/3,http://www.dw.com/en/pooh-the-bionic-cat-gets-back-on-all-fours/a-37401955?maca=en-rss-en-all-1573-rdf,Pooh the bionic cat gets back on all fours,"When Bulgarian stray Pooh lost his hind legs in a road accident, it seemed he would never be back on his paws again. Now, after veterinary surgeons tried out a groundbreaking procedure, he can run and even jump again.","One-year-old stray Pooh is back on all fours after groundbreaking surgery carried out for the first time in continental Europe. The black-and-white feline is thought to have lost his hind legs in a mishap involving either a car or train in April last year. Pooh-and another cat, Stiven, were taken to Sofia's Central Vet Clinic by the animal charity-Let's Adopt Bulgaria. Veterinary surgeon Vladislav Zlatinov is the first vet in Europe to have success in applying the pioneering method of Irish neuro-orthopaedic surgeon Noel Fitzpatrick, who carried out a similar operation in Britain. Zlatinov scanned relevant papers in scientific journals to prepare for the procedure, but without any commercial implants available, he had to have some parts custom-built. The titanium stem joins the bone and can be attached to swappable prosthetic limbs When the complex surgery was completed, Pooh had a pair of titanium legs implanted into his body. These can then be connected to external prostheses which can be changed like shoes. Pooh, whose name means ""fluff"" in Bulgarian, can move pretty well considering the circumstances,-chasing toy mice and fully exploring his new environment. He can even jump up for toys. ""We're very proud,"" said Zlatinov. ""It was quite a success ... It gives hope to other patients."" ""Cats who lost one leg do pretty well. But what happens if they lose both their hind legs? Yes, they move somehow, but what quality of life are we talking about?"" he said. Better than a life on wheels Until Pooh's skin grows over the bone and stem enough to be sure there is no infection, veterinary staff are still supervising his recovery closely. Other than that, the only thing that's different to before is a tiny tapping sound whenever his polymer and rubber paws hit the floor. It's the sort of independence that the normal solution - a set of wheels - would never have offered. Staff at the clinic are looking for a new home for Pooh, and there have already been several applicants. Since Pooh's operation, Zlatinov has carried out the procedure on a number of other cats including Stiven, who was also said to be doing well. (AP, AFP, Reuters)", -288,2017/2/3,http://www.dw.com/en/online-vs-offline-shopping-which-is-better-for-the-environment/a-37394625?maca=en-rss-en-all-1573-rdf,Online vs offline shopping: which is better for the environment?,Is buying something with the click of a mouse worse for the planet than picking it up off the shelf and taking it home yourself? And if it is - would it change the way you shopped?,"Would you avoid shopping online if you thought that would help the environment? That's what Germany's environment minister Barbara Hendricks does. She recently told German newspaper Bild am Sonntag that she refuses to buy anything over the internet because it results in too much packaging waste. But is buying online really more damaging for the environment than heading into a bricks-and-mortar shop? Packaging overkill? Hendricks told the newspaper: ""Ordering goods over the internet is a big problem regarding rubbish. Also, in some cities nowadays, more and more food is delivered by ordering online. There are also increasing numbers of single-person households. That means that more ready meals and smaller portions are being bought. That leads to a lot of packaging waste."" Shopping online in many countries around the globe is growing fast---in the US, market analysts have predicted that between 2013 and 2018, online grocery sales alone will grow annually at an average of 21.1 per cent, according to Packaging World Magazine. Offline grocery sales are expected to rise by a mere 3.1 per cent on average annually during the same period. Packaging - customers want just enough for their product to arrive intact But while consumers may complain about their online-ordered products-arriving wrapped in excessive packaging, they don""t want their goods to reach them damaged, either. Some businesses are trying to minimize the environmental footprint by using recyclable materials in their packaging. For instance, Ecovative's mushroom-based packaging made from mycelium --the root-like structure of mushrooms --is biodegradable. Others, including Amazon, have started using new box-making technology that enables them to customize packaging based on the exact size of the product being shipped, helping reduce overpackaging. Professor Gerrit Heinemann, head of the eWeb Research Center at the Hochschule Niederrhein University of Applied Sciences, told DW that while studies show that both online and offline shopping are similar in how eco-friendly they are, they showed that buying over the internet has the edge. He explained: ""With online shopping, the packaging is more environmentally-friendly than the plastic bags you have in shops."" More people are switching from shopping high streets to buying online The carbon footprint Transport also has to be factored in when trying to weigh up online and offline shopping's green credentials. The carbon footprint generated while shopping can depend a lot on where someone lives, what method of transport is used and how close the nearest store is. A-shopper in the bike-friendly Netherlands heading to a nearby store will likely yield lower carbon emissions per person than a motorist-travelling half-an-hour to a store in the US-Midwest, where people rely more on their cars. Also, whether you go shopping alone or with others, or buy one item or several can also affect the carbon footprint. A study by the Massachusetts Institute of Technology in 2013 found that the further away someone lived from a store and the less efficient the method of transport, then the more eco-friendly it would be to buy online. The paper found that offline shoppers have a carbon footprint almost twice that of online shoppers who never go inside a physical store. Traditional shoppers may make several trips to the store to find out more about the product, compare prices, and finally buy the product, whereas online shoppers can do all of this without leaving the comfort of their homes. But carbon can be added onto online purchases in other ways - for instance, picking up items after a failed delivery or from a click-and-collect point, or returning unwanted items. ""Showrooming""-- trying out products in person at a bricks-and-mortar store before buying online --stands out as being a particularly environmentally-unfriendly way of shopping. Opting for fast delivery also poses environmental problems: same-day delivery and tight delivery slots make-it more difficult for the delivery firms to combine shipments to the same neighborhood. That means a larger distance driven per item. Shopping in a physical store can mean more eco-unfriendly packaging with plastic bags What can consumers and companies do? Both online and offline shopping can be done in eco-friendlier ways. For buying on the internet, consumers should avoid next-day or same-day delivery, and where an eco-friendly packaging option exists, plump for it wherever possible. If consumers need to visit a physical store, then coordinating shopping trips with other errands, buying in bulk rather just a few items and doing the trip with others will help. Cycling or walking to the nearest store is of course going to be better for the environment than driving to a shop just for a carton of milk --and if a car is used, then buying a lot of stuff at one time will be better than buying single items from an e-retailer. For their part, bricks-and-mortar stores could provide more information online so that customers make better-informed purchase decisions, and could also encourage customers to pick up their online orders at stores located in dense urban areas. Online and offline shopping are similar on eco-friendliness - but online 'has the edge' Professor Heinemann told DW that improving efficiency on the so-called ""last mile"" --the point of delivery to the household --could boost online shopping's green credentials. ""The question is, why do we have so many delivery services, such as DHL, UPS etc, which all deliver small amounts, rather than bundling them?""-he said. ""Amazon is already preparing hubs - they have just announced they will build their own airport, so they will take over their own deliveries and will be able to bundle them.-In California, there are already a-lot of pick-up stations-where you can pick up food. In universities you can pick up books-from Amazon."" Professor Heinemann also recommended that customers change their buying behavior. ""The biggest part of retail is food, and the average purchase-in Germany-is-only-11 euro,""-he told DW, saying that if people bought double as much each time they went shopping, ""it would mean 50 per cent less drives to the store and-that-would-have the biggest impact on the environment."" But ultimately, rather than impulse-buying, thinking-about whether you really need the product at all could prove the most environmentally-friendly step-of all.", -289,2017/2/3,http://www.dw.com/en/america-first-but-which-european-country-is-second-parody-videos-make-their-pitch-to-trump/a-37397610?maca=en-rss-en-all-1573-rdf,"'America First,' but which European country is second? Parody videos make their pitch to Trump","A Dutch comedy show produced a video spoofing Trump, inviting him to put ""the Netherlands second"" - and it went viral. Now comedians throughout Europe are replying with their own fake ad.","Shortly after Trump's inaugural declaration that from now on, it would be only ""America First,"" a Dutch comedy show called-""Zondag Met Lubach"" parodied the new US president's rhetoric, absurdly promoting all the reasons why the Netherlands should come in second. The clip went viral. Now late night shows throughout Europe are offering similar pitches using the same format. The spoof tourism ads are addressed to Trump, and narrated in his own style. The clips are collected on the-website EverySecondCounts.eu. As the website was constantly-crashing, presumably-due to heavy traffic, the Twitter account promoting the joint-European-project offered its own alternative-explanation: Switzerland, Portugal, Lithuania, Denmark and Germany were among the first to have published their replies. Germany's 'best history in the world' The German version was produced by comedian-Jan B?hmermann's ""Neo Magazin Royale."" It includes a reminder of-the last time Germany tried to put itself first:- ""Germany has a great history. We actually - it's true - have the best history in the world. Great politicians, great leader. So smart. Great hair, great suit: Look at his suit. He made Germany great again,"" says the Trump-like voice on-images of Hitler. The clip also boasts how Germany built a great wall- and let the Russians pay for it, in reference to Trump's controversial-plans to build a wall on the Mexican border. ""Neo Magazin Royale"" also received a-German Television Award on Thursday, for-best late-night entertainment show. Host-Jan B?hmermann made international headlines in 2016 with his snide poem on Turkish president Erdogan, which led to penal proceedings that were later discontinued.- eg/rf (with dpa)", -290,2017/2/3,http://www.dw.com/en/howgreenami-is-a-life-without-palm-oil-possible/a-37398114?maca=en-rss-en-all-1573-rdf,#HowGreenAmI: Is a life without palm oil possible?,"Palm oil is practically everywhere, whether it be food, cosmetics or gasoline. And it is not always easy to identify. So I decided to understand this ubiquitous stuff better. Turns out, I was naive.","In the beginning, I have to admit, my approach to the subject was naive. ""Clearly, palm oil is something I've heard of before,"" I said, ""it's a product of the oil palm tree. Perhaps it is similar to coconut fat, maybe olive oil, it's most likely used for cooking."" And I assumed that I would learn a lot about this fat relatively quickly. Boy, I was wrong. Avoiding it would be quite a challenge. And that was exactly my task. A few days later I had read a few articles, scanned websites of environmental organizations, and watched YouTube videos on the subject and was quite surprised by what I had found. What had I gotten into? The stuff was everywhere. In food. Not only in Nutella, but also in pretzels, soup, chocolate, biscuits, muesli or margarine. Cosmetics were also full of it. And because palm oil is often used in animal feed, every sausage I would buy was probably, at least indirectly, a palm oil product. And what about gasoline? I had assumed that it contained mainly rape oil, but no: most of it is palm oil. ""I need someone to help me understand this oily business,"" I thought. To make things even more complicated, I found out that there's something called ""green palm oil,"" a certified, perhaps sustainable variant of palm oil. Would that be the solution? Could I use that without remorse? Obviously not, several sources stated. For ""green"" is often nothing more than a smoke screen to cover up environmental destruction. Because for palm oil, rainforest is cut down on a huge scale to make way for monocultures, which can meet the huge demand worldwide. Huge, of course, because palm oil is in everything. Monday I started to turn my kitchen and bathroom upside down. I wanted to understand how bad my behavior really was. But it's actually impossible to study the list of ingredients of each and every product I have at home. What I understood was that companies rarely use the term ""palm oil."" Instead, they use technical terms or complicated names for something that could be anything. But palm oil? In the best case it said that some ""vegetable fats"" were included. Then, however, I struck lucky. While reading about palm oil, I came across an app that might help, I hoped: Codecheck. If you use this app to scan the barcodes of products, it spits out all sorts of information on ingredients, including palm oil. Tuesday The core of the Codecheck app is a database, which is continually updated by the app's users, but also with data coming from environmental groups, Franziska Grammes of Codecheck explained to me. In addition, I learned how the rating system works, which allows the user to see if a particular product is good for them or not: To my surprise, I found almost no food product in my household containing palm oil. However, it was quite common in our cosmetics. Codecheck also distinguishes between good and bad palm oil. Good means ""certified."" This certification is the main contentious issue in the discussion about palm oil. There are different ways to assess palm oil, all of which want to prove that the oil is produced sustainably. However, there is probably no perfect way to prove sustainability, because too many parameters have an impact on production: Is the palm oil produced in a monoculture, or does the rain forest remain untouched? Which fertilizers are used to which extent? Are pesticides used? Do different production standards apply to different markets? And what are farmers getting out of it? Can they make a living growing this crop? The best known and most controversial approach is certification according to the RSPO, the Roundtable on Sustainable Palm Oil, which was launched by the conservation group WWF. Most of the main players in the market, including supermarket chains, use this certification process. Palm oil, which has been certified according to the RSPO, is supposed to fulfill certain conditions, says the WWF. Wednesday Critics, however, see the requirements as too lax. The system isn't perfect yet, the WWF's Ilka Peterson admits during our conversation. But as the organisation's palm oil expert, she says the certification standard is an important step to build upon. The demand for palm oil has doubled over the past ten years. One in two products in an average German supermarket contain the oil. And Germany and Europe are not even the main markets. India and Indonesia consume the most palm oil per year, 10.4 and 9.1 million tons respectively. The EU as a whole uses less than 6.5 million tons. ""But wouldn't it be possible to replace palm oil in Europe with another, native oil?"", I asked. It is not that easy, Ilka Peterson said. ""We just do not have enough space here."" Thursday This is a statement that Sven Selbert simply can't subscribe to. The expert for tropical forests works for the conservation group Robin Wood. He has a clear idea of how a switch to rape could work. The crux is the massive use of fertilizers in the cultivation of oil palm trees, he says. Without them, the high yield of four tons per hectare wouldn't be possible and the yield shrinks to the level of rape. This in turn would make the switch to rape potentially viable. In addition, land has to be freed up. And this could be done if we finally stopped burning precious oil for fuel. For me, there is no issue when it comes to palm oil in gasoline. The simple reason is: I barely drive. I can simply choose not to consume palm oil as gasoline. But many others do. And driving is responsible for a large, if not the largest chunk of palm oil consumption in Europe. With that in mind, it seems impossible to produce all the oil we need- in a way that can be certified as sustainable. Another problem is the existence of different standards, says Robin Wood. Standards applied in Europe, for example, don't automatically apply in other regions of the world. Instead, the producers make palm oil for the European market sustainably, but not for markets in the rest of the world. And the rest of the world consumes substantially more palm oil than Europe. For my project, Robin Wood is the counterpart to the WWF. In the end, both organizations are pulling together for the greater good, to make palm oil more environmentally friendly. Even if one organisation criticizes the other, both say that it is up to us consumers to become active now. If we actively demand alternatives, if we start buying palm oil-free products, and if we make it clear to producers that we take nature conservation seriously, then something can change. Friday Next for my experiment, Martina Bacher finally gets on board. She runs the website Umweltblick.de and has put together a shopping guide which gives consumers the power to fight the mainstream by showing them alternatives to palm oil. Starting in late 2014, food that contains palm oil needs to say so in Germany, says Martina Bacher. Cosmetics and cleaning products still don't need to be labelled. This is one reason why she developed her list and keeps it up-to-date. It is supposed to be a kind of map through the jungle of ingredients. Our conversation brings my week-long experiment to a close. I have not lived completely without palm oil, but I have realized what I am doing, what kinds of products I buy and what I have to look out for. I have learned that it is sometimes hard to recognize palm oil. I have learned that there are certainly efforts to give the sought-after oil a push towards a more sustainable future. Of course, this road is long, and which way we are headed probably depends too much on the profits that palm oil promises companies today. But I also learned that I'm doing pretty well right now, when it comes to palm oil. I rarely use cars, I cook my food at home almost every day and know exactly what kind of ingredients I used (certainly not palm oil). When it comes to cosmetics I always avoid stuff from ordinary drugstores and I eat very little meat. But do I live a life without palm oil? No, I don't. But perhaps life does not need to be entirely palm oil-free. We, as consumers, must be aware of the impact our consumption has on nature. We must adjust accordingly. And if we want less monoculture and less virgin forest to be cleared for palm oil plantations, then we should just make sure that we don't buy products that contain palm oil. And in doing so, the information and impulses that my conversation partners have given can provide some very useful assistance.", -291,2017/2/3,http://www.dw.com/en/new-images-show-swirling-spirals-on-mars-north-pole/a-37395220?maca=en-rss-en-all-1573-rdf,New images show swirling spirals on Mars' north pole,"Thirty-two shots collecting images over six years from the European Space Agency offer a new look at the the red planet's white, frozen north pole.","Recent images from the European Space Agency's Mars Express satellite offer a new perspective to the ice cap on the planet's north pole. Using 32 separate shots collected over a six-year period, the images show dark, spiraling troughs cutting up a million square kilometers of ice-covered terrain. The ice cap and its swirling appearance is believed to have formed when strong winds from the planet's elevated center blew towards the pole and circled in a similar fashion to hurricane spirals on Earth.- Although the ice cap is permanent throughout the year, the winter months can mean up to 30 percent of the planet's atmospheric carbon dioxide precipitates and adds an additional meter of ice to the pole. This adds to the predominantly frozen water and dust on the planet's surface.- When the ice falls on the terrain, it highlights the numerous canyons in the region, including the Chasma Boreale. The chasm-cuts across the pole as a 500km-long and 3km-deep feature seen clearly from space.", -292,2017/2/3,http://www.dw.com/en/influential-painter-neo-rauch-revealed-in-new-documentary/a-37386916?maca=en-rss-en-all-1573-rdf,Influential painter Neo Rauch revealed in new documentary,"He's one of Europe's most successful contemporary artists. The documentary ""Neo Rauch - Gef?hrten und Begleiter"" by Nicola Graef offers insights into the life of the media-shy star of the New Leipzig School.","Television journalist and director Nicola Graef accompanied the world-renowned painter Neo Rauch for three years with her film camera and microphone-to make the film ""Neo Rauch - Gef?hrten und Begleiter""-(loosely translated as ""Neo Rauch - Comrade and Companion"").- What she discovered was an extremely modest person who goes to his studio every day at the same time, just like a laborer punching the clock. ""Nothing whizzes past him,"" Graef said in an interview with DW. ""You notice that in the way he works. He is a very concentrated person who completely focuses on things."" It doesn't bother him when someone watches him work. He has none of the airs some artists have, none of the vanities. Only when he can't move a heavy canvas will Rauch show his irritation on camera, but it's short-lived. There's an-admirable-calm about him - and does not allow himself to be deterred, loyal to-his typical style of socialist realism of the Leipzig School. A foreign world His large-scale canvases are inhabited by enigmatic characters, eerie scenes and dark fantasy-like figures. He paints what's in his head, further develops his idiosyncratic style, goes through phases of employing different colors, stoically and unwaveringly. Rauch's images are enigmatic and unusual Collectors from around the world vie with each other to buy his paintings, and his exhibitions are usually sold-out events. That disconcerts Rauch, and that's also what makes him so unbelievably likeable, said Graef. The whole picture Neo Rauch as a person takes center stage in Graef's documentary: as a painter, an artist colleague, a father, the husband of successful painter Rosa Loy, as a friend of Harry Lybke, the gallery owner who represents him, and as a friendly conversation partner to collectors and other art lovers. The film takes us on an amazing journey of discovery: What characterizes this unique global phenomenon that is Neo Rauch? What are the artistic roots of his unconventional painting? Why is he so calm and collected, despite his international fame? For the first time in years, Rauch speaks in front of the camera about these topics, but also about the wounds and emotional chasms that have preoccupied him all his life. Filling the void Neo Rauch was born on April 18, 1960 in Leipzig. He grew up with his grandparents, after losing his parents in a tragic train accident when he was just four weeks old. ""He has felt that void his entire life,"" Graef noted. ""Since he is such an extremely sensitive person, all of that emotion is laid bare. And you can see that in his pictures."" The artist studied at the Academy of Fine Arts in his hometown of Leipzig, and the school became his artistic homeland. As of 1986, he was a master student under and later assistant to Arno Rink. Those experiences had a profound effect on the young student. Rauch with his wife Rosa Loy, also a painter, in front of his work ""Kalimuna"" His apocalyptically inhabited works made a fast splash in the art world and, early on in his career, were shown at major museums in Basel, Maastricht, Munich and New York. He became famous quickly, his pictures taking their place in private and public collections. From 2005 to 2009, he was a professor at the Academy of Fine Arts in Leipzig. That was an important part of his life that meant a lot to him, noted Graef.- His own cosmos As a painter, Rauch maintains the down-to-earth manner typical of eastern Germany and stays loyal to his style, his friends and his hometown - and to gallery owner, Harry Lybke, who has represented him all these years. All of them accept him the way he wants to be. ""He is someone who permeates everything. That's why he's in his own cosmos - in himself, in his painting, in his studio,"" said director Graef, reflecting on filming with the artist. ""That's why you sometimes get the feeling that he's not of this world. But maybe that's also why his pictures are so powerful."" Her documentary gives viewers a glimpse into the world of thought behind Neo Rauch's pictures. It's a strong film, its images shot with sensitivity and arranged in an entertaining manner. It hits movie theaters on March 2, 2017. The gallery below revisits some of the most important artists of the Leipzig-School. Neo Rauch, 55, is regarded as one of the most important contemporary German painters. His large-format works and graphics have a surreal feel, a trademark of the Leipzig-born artist's style. Rauch's paintings conquered the art market in the 1990s. Gerd Harry Lybke (pictured here with Rauch), the Leipzig art dealer who signed Rauch and other artists after reunification, was an important mediator for the new movement. Lybke has a colorful history: his gallery was under observation by the East German secret Police: the much feared Stasi. After the fall of the Berlin Wall, Leipzig became a center for contemporary art once again. Neo Rauch was actually the movement's only native East German, while Tim Eitel, Rosa Loy and David Schnell (pictured) were West German. The name stuck, however, and New Leipzig School works became immensely popular. Tim Eitel's figurative paintings hang in many private collections around the world. His connection with the New Leipzig School helped him to fame. Often based on newspaper clippings or photographs, his works comment on our society. Arno Rink,75, studied at the Leipzig Academy for Visual Arts, and he also taught at the academy in the early 1970s. His early works are influenced by Picasso, Dix and Beckmann, and many echo mythical themes. Rink is the link between East Germany's Leipzig School and today's New Leipzig School. In terms of a specific genre, the Leipzig School didn't really exist. The name evolved when several painters from Leipzig - Bernhard Heisig (pictured), Wolfgang Mattheuer and Werner T��bke - were invited to the documenta 6 exhibition in 1977. These artists had increasingly moved away from State-sanctioned art and socialist realism from the 1960s. The trio was labeled the ""artistic miracle"" of the East. Werner T��bke - regarded as a Traditionalist and a critical realist - was famous in East Germany for numerous large scale wall paintings. His works disappeared after reunification. Wolfgang Mattheuer used strong images from ancient mythology in his works, that often focused on the fears and desires harbored by his fellow East Germans. Like the other Leipzig painters, Mattheuer wouldn't be silenced by East German authorities. The artists also didn't want to belong to a ""School,"" and refused the label Leipzig School. Author: Sabine Oelze / db", -293,2017/2/3,http://www.dw.com/en/5-actors-with-german-accents-who-ve-made-it-big-in-hollywood/a-19025445?maca=en-rss-en-all-1573-rdf,5 actors with German accents who've made it big in Hollywood,"A German or Austrian accent doesn't necessarily have to stand in the way of a successful career in the movie industry. These five actors have made it big in Hollywood - despite their accents, or perhaps because of them.","To make it to the top in Hollywood, you usually need to speak perfect English. But that's not the case for actors like Arnold Schwarzenegger, Christoph Waltz, J��rgen Prochnow, Marlene Dietrich and Armin Mueller-Stahl, who have enjoyed great success despite or - even because of - their German or Austrian accents. Arnold Schwarzenegger is one of the best-known German-language actors to conquer Hollywood. The former bodybuilder's early films, ""Hercules in New York"" (1969) and ""Mr. Universe"" (1976), were actually dubbed because of his heavy Austrian accent. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Hqff Arnie's breakthrough with 17 sentences For his first lead role in the 1982 film ""Conan the Barbarian,"" he took intensive speech lessons. Two years later, ""Terminator"" was his great breakthrough - and he uttered all of 17 sentences. But Schwarzenegger continued his rise to fame in hit films ""True Lies,"" ""Terminator 2"" and ""Total Recall"" in the 1980s and 1990s. By then, his accent was no longer a casting obstacle, it was his unmistakable trademark. Arnold Schwarzenegger - who claims to speak English perfectly when not on camera - still cultivates the accent to please his fans.", -294,2017/2/2,http://www.dw.com/en/germany-s-new-astronaut-matthias-maurer-eyes-2020-mission-and-chinese-space-ties/a-37389203?maca=en-rss-en-all-1573-rdf,Germany's new astronaut Matthias Maurer eyes 2020 mission and Chinese space ties,"Matthias Maurer is Europe's new astronaut. He may have to wait five years before he flies, but he's the patient sort. And that leaves him time to learn Chinese. He told DW why space is a unifying force.","Deutsche Welle: As the first new German astronaut after Alexander Gerst there are going to be comparisons, and even here today (2.2.2017) at the European Space Operations Centre in Darmstadt, you were almost introduced as Gerst. How are you going to jump that shadow? What do you bring to the table? Matthias Maurer: Well, you said it: Alexander Gerst is very well known in Germany - he's famous here. That's because he did an outstanding job. He flew the 2014 Blue Dot mission. And next year he flies again and then it'll be as commander of the International Space Station (ISS). So I believe he did an outstanding job, and I want to follow his example. But I also want to try to find my own profile. And what would that profile be? Would it be in the science you do? Yes, I'm very much into science. But today is my first day as an astronaut. So I will begin with [my training] and the sharper profile will come later. But tell us a bit about your scientific background. What is your area of speciality? I studied material science engineering in Germany. I also studied in the UK, in Leeds, and in France and Spain. So I'm a material scientist with a European training as my background. Material science focuses on the development of new materials, which are the basis of innovation and economic progress. Thumbs up for Europe's new space trio: German Economics Minister Brigitte Zypries, Maurer, and ESA head Jan W?rner The European Space Agency has named German scientist Matthias Maurer as one of its new astronauts. But who is the young spaceman? On Thursday, Maurer introduces himself at ESA's Space Operations Center. (01.02.2017) The Spanish satellite was developed by Germans and launched on a Russian rocket from French Guiana. It carried the first implementation of a new satellite platform that Germany hopes to further roll out in coming years. (28.01.2017) Believed to have been created by the planet's huge mountains and quick winds, the 10,000-kilometer-long gravity wave would be far larger than anything similar recorded in our Solar System so far. (17.01.2017) In an interview with Deutsche Welle, Director General of the European Space Agency, Jan W?rner, outlined the agency's plans for Mars, the moon and dealing with satellites in deeps space. (18.01.2017) After 17 years and numerous setbacks and budget boosts, Europe's Galileo satellite navigation system has gone live. At this point, 18 of the planned 30 satellites are already in orbit. (15.12.2016) So you do some science up at the ISS, you bring it back down to Earth, and what should we imagine we might end up having in our pockets at the end of it? Make it real for people. Well the best example I can give you about a space innovation is this: Perhaps you have a mobile phone with a fruit on it [Ed.: We think he means an Apple iPhone]""?and perhaps the casing is made of glass metal. That's a technical term. And metal glasses were actually developed in space, on the Space Shuttle, in the 1980s. NASA patented the procedure and the production method, and only now - 20 or 30 years later - this invention is in our pockets, as you said. Let's look into the future now, because you've spoken a bit about the moon and the plans for a Moon Village. What is about the moon that fascinates you? The moon is fascinating because it's there. Everyone knows it and sees it, and we can learn so much on the moon. We can use the moon as a base for astronomy. The moon's atmosphere absorbs certain wavelengths that we cannot see on Earth, so that's really important. But we can also learn about the moon itself. The moon is a dead body, so we can learn about the history of Earth and how our solar system evolved. These are data that scientists need to accurately predict where in the universe we can find live. But while you say you wouldn't take a one-way ticket to Mars, would you spend an extended period of time on the moon? Definitely, definitely. Now when we travel to the ISS we spend six months there, or even 12 months, and I believe a similar amount of time on the moon is absolutely feasible. So when do you think is the next most realistic opportunity for you to be in space? With Gerst's mission as ISS Commander in 2018, you probably won't make that because all the seats have been reserved. So when is a realistic time? Currently we have Thomas Pesquet in space. Later in the year we will have another European astronaut, Paolo Nespoli flying, in 2018 Alexander Gerst, and in 2019 it's Luca Parmitano. On average we have one flight per year. So the next free flight is 2020. But there are other astronauts who are looking to take that seat - not only me. When you say ""one flight per year""?you mean for European astronauts""? Yes. It's one flight per year on average for European astronauts to the ISS. But there are also new opportunities, like the Chinese space station which will be ready by 2022. We are working towards a cooperation with the Chinese, although that still needs to be established. That's an exciting development, isn't it? It is absolutely exciting. And I think it's an excellent way to show how spaceflight actually brings people and the world together. It's also a very good thing in politically uncertain times to have spaceflight cooperation because that unites people and always builds a base.- Matthias Maurer-is the newest recruit to the European Space Agency's astronaut corps. He has a doctorate (PhD) in materials science engineering and holds more than 10 patent applications, with half being international registrations. -", -295,2017/2/2,http://www.dw.com/en/poland-debates-approach-to-new-world-war-ii-museum/a-37381170?maca=en-rss-en-all-1573-rdf,Poland debates approach to new World War II museum,"The World War II museum's construction and exhibition are more or less finished, but the Polish government said it's not ""national"" enough. A court decision has kept the director in his post and could save the museum.","Museum director Pawel Machcewicz had just struck a pose for a farewell photo. Fans of the museum had placed a symbolic barrier in front of the museum gates - with the aim, they said, of warding off ""attacks on cultural institutions."" Then, suddenly-came the good news from the courts in Warsaw: The director did not have to vacate his post, as feared, on February 1, and the museum could continue on its mission. These are the latest scenes from the combative drama concerning the prestigious Museum of the Second World War in Poland. World War II began in Gdansk. Summit conferences to recall the war have regularly occured in the Polish port on the Baltic Sea. So in 2008, the Polish government - at the time led by Donald Tusk, who hails from Gdansk - thought it was high time to build a major museum there. And that is precisely part of the problem: The new, conservative government of the Law and Justive Party (PiS) has criticized the entire concept, aiming to massively alter the nearly completed museum and oust founding director Machcewicz after eight years of work. One of the largest cultural investments after 1989 Pawel Machcewicz laying the cornerstone of the museum in 2012 Yet it's been a labor of love by the distinguished historian Machcewicz and his team - and one of the largest cultural investments in Poland since 1989, with the new building tagged at 104-million euros ($111-million). The architecture, created by the firm Kwadrat,-is grabbing - soaring up at an angle of 56 degrees. The collection includes everything from battle tanks to family keepsakes and the ship bell of the ""Wilhelm Gustloff"" that sank in 1945 carrying refugees. The many items of the collection and those on loan illustrate war and occupation, everyday life and resistance from across Europe. The museum focus is intended to be on the fate of the civilian population as, according to Machcewicz, Poland lost five million civilians and 200,000 soldiers in the war. A catalogue, in Polish and English, has also already been completed. Just as the museum was nearly finished, critics reared their heads. Piotr Glinski, culture minister of Poland's conservative government, demanded three different appraisal reports - all of which came to the conclusion that too much emphasis was being placed on the ""human misfortune"" of the war while ""people's inurement "" as the result of the war was being ignored. One of the appraisers, conservative historian Jan Zaryn, wrote that the museum's approach bespeaks ""pseudo-universalism."" More attention should have paid to Poland itself and its ""freedom-loving,"" proud population, he said. In addition, he noted construction deficits in the building. Court orders stop to compulsory museum merger- As a result, Minister Glinski called for the museum to merge with another institution, which is not really a museum at all, but more of a relatively tiny memorial to the Battle of Westerplatte. This was the-first battle of the war in September 1939,-where Polish soldiers were able to put up the greatest resistance to the Nazi Wehrmacht. The dramatic building features a 56-degree tilt Such a move would be-a-way for the government to oust Machcewicz and redesign-the museum. However, a Warsaw court ordered an injunction to stop the compulsory merger, a decision that was-reconfirmed earlier this week. The culture ministry plans to appeal the outcome. The city of Gdansk, which itself has a liberal-led government, has supported Machcewicz and the museum's other founders. Following the submission of more than 1,000 petitions, Adam Bodnar, Poland's official spokesman for civil liberties, has also responded. He criticized the aimed merger of the museums as it transgresses the law governing cultural activities: The hasty construction of the Westerplatte Museum, which would then ""merge"" with the Museum of the Second World War, would not be a prudent approach to dealing with budget funds, which the government is required to uphold, he said. Furthermore, he added that the minister's methods were an impermissible intrusion into a municipality's competencies. Machcewicz, for his part, is relieved following the latest court decision. He has set his sights on the beginning of March for the museum's opening and then, ""everyone can form their own opinions,"" said the strident director. For now, a final verdict on the matter is not realistically expected for another two to three months. -", -296,2017/2/2,http://www.dw.com/en/why-the-world-is-turning-to-hannah-arendt-to-explain-trump/a-37371699?maca=en-rss-en-all-1573-rdf,Why the world is turning to Hannah Arendt to explain Trump,"George Orwell's ""1984"" is not the only classic that's celebrating a comeback. Hannah Arendt's philosophical essay ""The Origins of Totalitarianism"" has also spiked in interest recently. Here's why it's so relevant.","Born in Germany to a Jewish family, Hannah Arendt (1906-1975) fled when Adolf Hitler rose to power in 1933. She spent time as a stateless refugee in France-and was deported to an internment camp under the Vichy regime. She emigrated to the United States in 1941, later becoming a US citizen. Having experienced first-hand the near collapse of an advanced civilization, she also became one of the first political theorists to analyze how totalitarian political movements could rise in the early-20th century. The roots of Nazism and Stalinism are described in her first major book, ""The Origins of Totalitarianism,"" originally published in English in 1951. It has been compulsory reading for many college students ever since, but the dense political work of over 500 pages isn't typically a bestseller. It has been flying off bookshelves in the US since Trump's inauguration; Amazon even briefly ran out of stock this week. These new Arendt fans are presumably trying to understand what Trump's presidency-could lead to. As it might take a while for readers to get through her heavy essays, here-are a few spoilers:-""Trump is not a totalitarian in her understanding; he incorporates what she calls 'elements' of totalitarianism,""-Roger Berkowitz, professor and head of the Hannah Arendt Center for Politics and Humanity at Bard College in New York, explained-in a recent DW interview. However, strong warning signs shouldn't be ignored, added-Berkowitz:-Arendt believed that-""one of the core elements of totalitarianism is-that it's based in a movement... and-Trump has explicitly called himself the mouthpiece of a movement. That's a very dangerous position for a politician.""-- Populism: easy fixes in times of global anxiety Arendt's analysis focuses on the events of that period.-Although her observations-obviously couldn't explain everything about-today's complex political developments, many are still revealing even now, as-the right-wing populism that's spreading throughout Europe and the US is reminiscent in different ways of the situation in the 1920s and 30s that allowed the Nazis and Communists to rise. Her books provide insight into the mechanisms that allow-so many people to readily-accept lies in times of global uncertainty. While major newspapers --from ""The New York Times"" to ""The Washington Post"" --are revisiting her writings, social media users are widely sharing quotes such as this one: 'Fantastic statements' seen as-tactical cleverness In such a context, repeated, simplified --and false - storylines, which blame-scapegoats and offer-easy solutions, are-preferred over deeper analysis leading to informed opinions. This approach was applied by totalitarian leaders such as Hitler, Arendt wrote. In this sense, Trump's strategy-of placing blanket blame-Muslims or Mexicans for terrorism, crime or unemployment,-and claiming that a travel ban or a wall will be an easy solution,-is not new. According to Arendt, totalitarian leaders at the beginning of the 20th century based their propaganda on this assumption: Trump has pushed this approach to new extremes; even though there are more fact-checkers than ever dedicated to exposing his blatant-lies, the president's-cunning tactic is to discredit-these reports as coming from-the established, ""dishonest"" media. Meanwhile,-his movement's beliefs are-backed by widely available-alternative sources.-- The 'banality of evil' In Arendt's-reporting on the 1961 trial of one of the major organizers of the Holocaust, Adolf Eichmann, she famously came up with the phrase ""the banality of evil"" to describe her view that evil might not be as radical as one might-expect. The resulting book, ""Eichmann in Jerusalem: A Report on the Banality of Evil,"" explains how crimes were committed through people who thoughtlessly obeyed orders to conform to the masses. The definition of thoughtlessness that she provided in a work first published in 1958, ""The Human Condition,"" could just as well have been written to describe President Trump's hastily drawn executive orders and his struggles to justify them:-- Of course, such quotes taken out of context may be easy and comforting to share online, but they do not reflect the entirety of Arendt's ideas. Similarly, those hoping to find all answers to ""The Origins of Totalitarianism"" are bound to-be disappointed.-Arendt didn't pick that title herself --her publisher did. She believed the world was way too complex and messy to pinpoint the roots of totalitarianism, according to Berkowitz.- While revisiting her works, impossibly trying to predict if we'll be overtaken by new forms of totalitarianism in the future, one can also find consolation in another of Arendt's observations: She considered civil disobedience an essential part of the United States' political system - and-the country's strong protest movements currently demonstrate this again. As she famously said:-", -297,2017/2/2,http://www.dw.com/en/lady-gaga-merkel-and-heretics-meet-in-monumental-artwork/a-37381716?maca=en-rss-en-all-1573-rdf,"Lady Gaga, Merkel and heretics meet in monumental artwork","The sculptor Georg Korner aka Matthias K?rner has a liking for monumental projects. After spending 12 years recreating the façade of the Berlin City Palace, his new artwork, ""Transit,"" is made up of 2,600 figures.","The sculptor Georg Korner, whose real name is Matthias K?rner, spent many years working on the reconstruction of the baroque façade of the Berlin City Palace. Since 2013, he's also been preparing hundreds of figures that align into a monumental artwork called ""Transit."" The work deals with transitions in life. DW: What inspired you to work on the concept of ""transit""? Georg Korner:-Transit has been a subtext of my entire life. Three and a half years ago, I wanted to create a tableau of people rushing with their luggage. It only covered one-square meter at first, but it just kept developing ever since. I was looking for the right format, and I finally found it with this large installation. Which themes does the work deal with? There's the transition between life and death, for example. The ""Catrinas"" [Eds. female figures of death] from the Mexican ""D��a de los muertos,"" the day of the dead, which symbolically show up at the table of the living. They eat and dance together and then they disappear again. The installation also includes the heretics of the Spanish Inquisition, undergoing auto-da-f��, the public penance imposed by its judges; soldiers blinded by lethal gas during World War I; and the Devil in Dante's ""Divine Comedy"" from the early Renaissance. There's Lady Gaga and Batman, too. They are the transitory heroes of our times. They're also constantly reinventing themselves;-they're on the move.------ You started on this piece before the refugee crisis reached its peak in Germany. Do you still see it as a comment on the current situation in the world? I rather dealt with the issue more generally - from the Exodus of the Jews out of Egypt to the expulsion of Armenians, from the migration of early populations to the flight of German Jews, Communists and intellectuals over France to America. We have continuously been confronted with this issue-over thousands of years - and it has always moved me. And then came the moment for me to create this work. Two years ago, there were the Charlie Hebdo attacks, and now suicide bombers are also included in the installation.- The work is obviously currently relevant and politically charged. When I think about the narcissist populist Trump, who ordered his travel ban on Muslims on Holocaust Remembrance Day-of all days, then I view my installation with completely new energy. The work was therefore transformed by current events? Exactly, it develops along the way. It also offers a tree of possibilities. I am working on a derived, smaller project-about Leni Riefenstahl and Arno Breker [Eds. She was a filmmaker and he was a sculptor best known for their Nazi propaganda works]. They were also people in transition, who on one hand wanted to make art, but on the other made art on command. Where will ""Transit"" be shown? I have recently said that it works pretty well here in my studio. It'll come out of here one day, but we don't know where it will land yet. -", -298,2017/2/2,http://www.dw.com/en/salt-poses-threat-to-senegal-s-sin��-saloum-delta-wetlands/a-37379872?maca=en-rss-en-all-1573-rdf,Salt poses threat to Senegal's Sin�� Saloum Delta wetlands,"In Senegal, seawater seeping into underground fresh water aquifers is slowly increasing soil salinity causing havoc for farming communities living near wetlands rich in biodiversity.","Senegal's Sin�� Saloum Delta is a biodiversity hotspot. Just 180 kilometers south-east of Dakar, the UNESCO world heritage site covers some 180,000 hectares, comprising wetlands, lakes, lagoons and marshes, as well as sandy coasts and dunes, terrestrial savannah areas and dry, open forest. It's home to 400 species and plays a vital role in flood control and regulating the distribution of rainwater for the local people and wildlife. Lack of fresh water But due to drought, climate change and the uncontrolled logging of mangrove forests, the ground's salinity has shot up ""?threatening the livelihoods of thousands of people living there. One of them is Khadiome Ndongue, a resident of Sadio Ba near the west coast town of Foundiougne. Every day she draws water from a well in the community vegetable garden. The water from the well dug in 1988 has gradually turned salty over the last twenty years. During the dry season, in the wetland along the Saloum river, underground fresh water retreats, letting seawater in. This is known as saltwater intrusion - the movement of saline water into freshwater aquifers ""?making fresh water sources undrinkable. Sadio Ba village has had to abandon rice cultivation because of- this salination. ""The salt has caused a lot of damage in the fields. The scale of our agriculture is decreasing more and more because we don't use the salted ground,""?she said. Khadiome Ndongue relies on the well for water ""We can only use the arable land. Our yields are low and we have problems feeding families and selling our crops like before. Because of the salt we've abandoned the rice fields. Instead, we grow groundnuts, maize, and millet,""?said Ndongue. A few years ago a visiting engineer suggested dropping bags of rice and millet husks, a fine inedible powder residue made from pounding grain,- into the well, in order to reduce salinity. It has worked, at least in the contained area of the well. Djigane Mboup, another villager, has taken up rearing chickens to make ends meet. ""Salt has really damaged our land. Before, you could earn 50,000 CFA francs (80 euro) from your crop. Now you'll barely make 30,000 CFA. It's been like that since 1999 or 2000. Last year was bad, but this year, it's even worse,""?he said. The Sin�� Saloum Delta has been identified as the most important place in Senegal, and even in West Africa, for its population of bird species. The goliath heron, the great egret and the grey heron are a common sight. Uncontrolled logging of mangroves Sey�� advises residents on dealing with salinification But climate change, drought, and the uncontrolled cutting of mangroves, a natural saltwater barrier, are increasing the salinity of the ground with huge impacts on the delta's unique biosphere, says Ball�� Seye, project manager at the International Union for the Conservation of Nature (IUCN). -- ""Mangrove forests help stop the advancement of salinisation in the crop fields,""?said Seye. ""Now all these mangroves are just relics, destroyed. The result is that there's a strong advance of salinisation in the fields and especially pastoral zones. No grass grows on this land ,so you can imagine the difficulties herders will have in a few years,""?he said. To improve environmental conditions, the IUCN launched three pilot initiatives under the Ecosystems Protecting Infrastructure and Communities (EPIC) project, in six villages in Senegal. The first initiative was to develop ways to regulate the exploitation of forestry and fisheries. The second was to construct anti-salt barriers with local materials and lastly, to restore 90 hectares of forest to improve soil quality. Sadio Ba residents have built anti-salt barriers to retain humidity and keep salt water off the land. A new village forest Villagers were trained to grow a nursery of forestry species that can resist increased salt levels in the soil. In Sadio Ba village, 100 square metres of land have been fenced off so that trees can be planted, and will serve as a managed forest area. ""Here, the major difficulty for women is access to firewood. If there's a village forest set up with rules, it will enable women in the long term and in the medium term to have wood for fuel for their consumption, and to replant at the same time,""?said Seye. Around the world, wetlands continue to be drained and reclaimed for farming, as they are seen as a barrier to agriculture. According to the Ramsar Convention, while there is a need for more food production from land, the conversion of wetlands has far reaching impacts on their own ecosystem, and communities living off the ecosystem wetlands provide. World Wetlands Day is celebrated every year on 2 February. It marks the day the Convention on Wetlands was adopted in 1971, in the Iranian city of Ramsar. This year's the theme is Wetlands for Disaster Risk Reduction highlighting the vital roles healthy wetlands play in reducing the impacts of extreme events, like floods. -", -299,2017/2/2,http://www.dw.com/en/the-wetlands-along-the-river-rhine-struggle-to-recover-from-human-engineering/a-37378532?maca=en-rss-en-all-1573-rdf,The wetlands along the river Rhine struggle to recover from human engineering,"The Rhine River once curled and turned, flooding and receding to support a rich mosaic of forests, meadows and marshes. Straightening the river out has been disastrous for its wetlands.","It's a leisurely 9-kilometer (5.6-mile)-bike ride from the center of Karlsruhe in southwestern Germany to Rappenw?rt, where a narrow sliver of translucent green wetland lies nestled between the Rhine River and a raised earth embankment. ""It's an original meander bed from when the Rhine still flowed in its natural course. It flowed in here in a giant loop,"" says Andreas Wolf, a biologist and head of the Nature Conservation Center Karlsruhe-Rappenw?rt, as he walks along the edge of the wetland, crunching over stones, shells and patches of ice. Now, in midwinter, the meander's muddy bank is edged with bulbous canary grass and sedges, fallen tree trunks full of woodpecker holes and bare, straggly trees. But it's these unspectacular-looking trees Wolf is excited about. Woodpecker holes hint at some of the life supported here, even in the depths of winter ""This is a white willow forest, a softwood forest. It's an area that is often flooded, and the white willow can withstand up to 300 days a year with its feet in water,"" he explains, pointing to wide crowns which will burst into shimmering pale green foliage in spring. A number of thin saplings dot the bank - a great sign, says Wolf, that regular flooding is sweeping away undergrowth and bringing in the new sediment that white willows need-to germinate.- On the opposite side of the wetland, it's a different story. In a copse of mature white willows, some around 20 meters high and 100 years old, there's not a sapling in sight. ""When these trees fall down, that's it,"" Wolf sighs. ""In principle, this wetland is connected to the Rhine, but because of the stone groin at the front, the current just doesn't flow swiftly to create the flood dynamic needed."" Fertile floodplains It's the flow and ebb of the floods that made this area so special. Up until 200 years ago, the Rhine meandered, curled and inundated its way from its source in the Swiss Alps all the way to the Dutch-coast, where it empties into the North Sea. For several hundred kilometers downstream of the Swiss city of Basel, the course of the Rhine was particularly unpredictable. Here, in an area known as the Upper Rhine, which runs along the border between France and Germany, the river split into countless tributaries that looped through a giant rift valley bound by the Black Forest on one side and France's Vosges-mountains on the other. Swollen by spring snow melts or summer rains, the valley could flood up to a width of 40 kilometers, at times sweeping away whole villages, explains Jost Armbruster, an engineer and biologist in the Nature Conservation Unit at the Karlsruhe Regional Council.- These meandering floodwaters created a complex and rich mosaic of different habitats ranging from open rocky islands formed by gravel swept down from the Alps, to low lying swampy areas and the moist softwood forests at Rappenw?rt, which thrive in the rich silts and clays dumped during a flood. The Rhine has undergone extensive ""correction"" to accommodate boats With so many diverse conditions in one area, the floodplain forests have a rich biodiversity. Some 9,000 plant species, as well as a rich variety of animals, birds and insects, including 55 different types of dragonfly and 170 types of wild bee, are found here. Penned in and parched Because of the area's ecological importance, in 2008 the Upper Rhine floodplain became one of only ten cross-border sites certified under the international Ramsar wetlands convention. But like others in Europe, the Upper Rhine's floodplain forests are being parched of their vital floodwaters. Two hundred years ago this year, the ground was broken on-a colossal project, just five kilometers away from-Rappenw?rt.-The engineer Johann Gottfried Tulla was in charge of the Rhine-""Correction"" program, which aimed to straighten the-Rhine and reduce flooding.- During the past two hundred years, the Rhine has been put into a kind of straightjacket - its bends have been straightened and groins have been added to increase the water flow for the barges transporting cargo along the river. Its banks have been reinforced and it's been hemmed in by dikes. It's estimated that the area of floodplain between Basel and Karlsruhe has plummeted from 1,000 square kilometers to 130 square kilometers - a loss of 87 percent. Sixty percent of its alluvial forests have already disappeared. On both the French and German side of the Rhine, there are efforts large and small to improve the conditions of the Upper Rhine. As part of a European Union-sponsored LIFE conservation project, for example, two Rhine branches that had become separated from the Rhine were recently reconnected. White willows need sediment left by flooding to germinate Reshaping and reviving ""The mud and silt that had deposited in them in the last decades could be washed out, making the tributary bottoms gravelly again,"" says Armbruster, the project manager. ""Certain types of migratory fish, such as the salmon and the allis shad, a type of herring, need these gravel bottoms to spawn."" Three artificial islands were also built as part of the LIFE project. Their gravelly banks are vital feeding and nesting grounds for wading birds such as the ruddy and the little ringed plover, which only nest on open ground. Projects such as this one, which was supported by the EU as well as local and state authorities, show a changing awareness of the urgent need to save the remnants of the Rhine wetlands. But without regular and extensive flooding, both Armbruster and Wolf say there are limits to how much the area can be regenerated. In Rappenw?rt, skaters traverse a frozen tributary that's still separated from the Rhine by an embankment. In a few months, the waters will fill with migratory birds returning from the south, and the white willow forest will be carpeted with wildflowers - further reminders of the precious life this river brings.", -300,2017/2/2,http://www.dw.com/en/beyonce-announces-twins-giving-fans-appreciated-break-from-politics/a-37377735?maca=en-rss-en-all-1573-rdf,"Beyonce announces twins, giving fans appreciated break from politics",Pop superstar Beyonce is expecting her second child. And her third. The diva has announced she is pregnant with twins - and social media users reacted with a slew of hilarious memes and name suggestions.,"Beyonce and her husband rapper Jay Z announced Wednesday on Instagram that the pop star is pregnant with twins. ""We have been blessed two times over. We are incredibly grateful that our family will be growing by two,"" wrote Beyonce on Instagram in a post signed ""The Carters,"" which is Jay Z's real last name. The post included a photo of the star dressed in panties, a bra and a veil, revealing her baby bump. She is kneeling beside a gigantic floral arrangement with her hands on her visibly pregnant belly. Some fans were quick to point out that Beyonce's announcement coincided with the start of Black History Month, which is observed through the month of February. The singer has been a vocal supporter of the Black Lives Matter movement against racism and police brutality, which became evident in the video to the first single of her ""Lemonade"" album, ""Formation."" That album, released about nine months ago, also stirred debate-for hinting at Jay Z's unfaithfulness, which was never confirmed. ""Lemonade"" is poised to win a Grammy on February 12. While Beyonce is known to be a personal friend of Barack Obama and his-family, and she actively supported Hillary Clinton's presidential campaign, this week's happy announcement is certainly politically untainted. After nearly two weeks of emotional social media posts for and against President Donald Trump's initial actions, some users welcomed a hiatus from news of the latest presidential escapades. That didn't stop others, however, from finding the political angle to the Carter family's news. - Instagram record for most likes Beyonce has over 92 million Instagram followers and her post racked up over seven million likes within hours, breaking Selena Gomez's record for a photo of her sipping a soda that has over six million likes. The star did not share the news on Twitter, but that didn't stop her fans from taking to the platform: their posts using the hashtag #beyoncetewins have been flowing ever since the announcement, not only to celebrate, but also to offer-their two cents: Name suggestions abounded - most of which played on the name of Beyonce and Jay Z's five-year-old daughter, Blue Ivy. Meanwhile, others put themselves in the shoes of Blue Ivy herself. In April, Beyonce is scheduled to headline the renowned Coachella Festival, which runs for two weeks in southern California. Her belly will likely be unmissable at that time. The star has been open about experiencing a miscarriage before giving birth to her first child, Blue Ivy, in 2012. She's said the heartbeat she heard during that first pregnancy was ""the most beautiful music I ever heard in my life."" Other stars with twins include Julia Roberts, Jennifer Lopez, Sarah Jessica Parker, Angelina Jolie, Mariah Carey and Celine Dion. kbm/eg/als (AFP, AP) -", -301,2017/2/1,http://www.dw.com/en/concussion-symptoms-far-more-likely-for-soccer-players-that-regularly-head-the-ball/a-37346371?maca=en-rss-en-all-1573-rdf,Concussion symptoms far more likely for soccer players that regularly head the ball,A new study from the Albert Einstein College of Medicine suggests simply heading a football may cause long-term neurological problems. It suggests that head contact is far more sensitive than previously thought.,"Soccer players who-regularly header a ball are three times more likely to develop the symptoms of concussions compared to those that don't, according to a new study published in the American Academy of Neurology journal. The report, led by researchers at Albert Einstein College of Medicine, contradicts previous studies that suggested that injuries such as concussion resulted mainly from full-on head impacts with other players or collisions with the goal posts. A total of 222 amateur players were studied over the course of the six-month study, which divided the participants into four groups dependent on how often they headed the ball. The top group was defined by heading the ball over 125 times every two weeks, while the bottom group headed the ball just four times in the same period. The study, published in the February 1 edition of Neurology, found that the group with the most headers was three times more likely to have symptoms --dizziness, feeling dazed, stopping play for medical attention or even losing consciousness --than those who rarely used their heads while playing. ""These results show that heading the ball is indeed related to concussion symptoms, which is contrary to a recent study that suggested that collisions were responsible for most concussions,""?concluded the study's author Michael L. Lipton. ""Our study suggests that you don't need an overt collision to warrant this type of concern.""?Previous warnings Factors that may lead to long-term neurological issues in soccer have long been studied, with most reports to date suggesting that single or repeated concussions do lead to neurological problems later in life. Such problems are even more prevalent in American football, where a five-year legal battle between the National Football League and former players concluded in 2016, with the league agreeing to pay out $1 billion to cover the medical payments of players for the next 65 years; with league actuaries estimating that just under 30 percent may go on to develop Alzheimer's, amyotrophic lateral sclerosis or other neural conditions. Yet this study is one of the first to suggest that even minor contact, such as heading an inflated, leather ball, can have long-term effects on a player's health. ""These [previous]-studies did not actually measure heading,""-Dr. Lipton wrote in his report. ""And thus they were unable to separate the relative contributions of intentional and unintentional head impacts.""", -302,2017/2/1,http://www.dw.com/en/march-for-science-to-unite-researchers-against-trump/a-37373616?maca=en-rss-en-all-1573-rdf,March for Science to unite researchers against Trump,"Earth Day 2017 will see another large-scale protest against US President Trump. After the huge success of the Women's March, it is now the scientists' turn to voice anger and dissatisfaction with new policies.","Life under the new US president isn't easy for scientists and science reporters. Donald Trump is a denier of man-made climate change and has called global warming a Chinese-propagated-myth. He has ordered the Environmental Protection Agency (EPA) and the departments of the Interior, Agriculture, and Health and Human Services not to send out any press releases or update their website content for the time being. And he banned the National Parks Service from tweeting. In short, Trump has made many, many enemies in the science community within his first days in office. But scientists, science writers and their supporters are not taking the attacks lying down. They have formed a political action committee (PAC) to get more scientists elected to public office. According to its mission statement, the group called '314 Action' was founded because the US needs ""new leaders who understand that climate change is real and are motivated to find a solution."" Many of the agencies affected by what they perceive as a presidential gag order have also set up ""rogue"" Twitter accounts from which they keep disseminating information. Those supporting verified facts, research and freedom of speech will also descend on Washington D.C. in a ""March for Science,"" a planned gathering inspired by the hugely successful Women's Marches that saw millions of people across the world take to the streets to protest Trump's policies on January 21. The slogan on the march's website is ""Science, not silence."" On Wednesday, the organizers announced via Twitter that the march will take place on Earth Day, April 22, 2017. In their mission statement the organizers write: ""The March for Science champions publicly funded and publicly communicated science as a pillar of human freedom and prosperity."" Scientific method 'on trial' in the US ""Scientists have battled the political and ideological forces against concepts such as evolution and climate change for years,"" Elizabeth Hadly, professor of biology, geological and environmental sciences at Stanford University, told British newspaper The Guardian. Hadly is ready to march because she sees the scientific discourse under attack in the US. That view is shared by science writers as well. Journalists who cover science and share important research and newly discovered facts with the public are worried about what their work will look like under Trump. ""It's a dangerous time for society when the scientific method is on trial,"" Aleszu Bajak, a freelance science journalist based in Boston, told DW via email. ""I fear the muzzling of government scientists and the obscuring - and wholesale deletion - of government data pertaining to climate, health, or any topic deemed too 'political' by the administration."" More and more people are getting involved and are making their voices heard. Trump's ban on Muslims entering the US is also riling scientists. ""Science is an international enterprise, and everyone is worried about what impact the travel ban will have on scientists from other countries,"" Apoorva Mandavilli, editor-in-chief of autism site Spectrum and a freelance science journalist, wrote to DW. ""Scientists who have never been politically active are getting engaged, tweeting about politics, and planning to march."" Whether Trump's policies will have a direct effect on how publicly scientists dare to talk about their research remains to be seen. ""I haven't noticed a chilling effect yet on how researchers discuss their work; just fears that it might happen,"" Umair Ifan, staff writer at environment news outlet E&E News, wrote to DW. ""It's too soon to tell."" The upcoming March for Science at least is a sign that large numbers of scientists are not afraid to show their dissatisfaction or even anger with the Trump administration.", -303,2017/2/1,http://www.dw.com/en/trump-threatens-environmental-democracy/a-37371097?maca=en-rss-en-all-1573-rdf,Trump threatens environmental democracy,"Just a week into his presidency, Donald Trump is already undermining inclusive decision-making on environmental issues. Experts in the USA and abroad are concerned.","Before he was inaugurated, fears swirled-that-President Donald Trump would make good on his environmentally unfriendly campaign rhetoric. After just a-week-in office, those fears may already be being-realized. Experts from the Washington-based global research organization the World Resources Institute (WRI) have-warned that environmental democracy could be under threat. According to the WRI, one of the first troubling signs on the horizon for environmental democracy --or inclusive decision-making on environmental issues---is the Trump administrations media blackout on the Environmental Protection Agency (EPA). Just days into Trump's presidency, emails were sent to EPA staff barring them from speaking to reporters, posting updates on social media or sending press releases. All incoming media requests would be screened by the administration from now on, according to the emails. Other agencies, including the US Department of Agriculture and the National Parks Service, were issued similar gagging orders. Clouding scientific transparency Political appointees are also exerting more oversight over the EPA's scientific communications. Scientists at the agency were told-their scientific findings must be-reviewed on a ""case by case basis""---at least for now --before they can be released to the public. This-includes-routine pollution-monitoring data. The WRI blog-says preventing citizens from having access to accurate, timely information that has not been editorialized or modified will ""obstruct an integral component of democratic policymaking."" ""Citizens can neither understand nor participate in environmental decision-making without having access to objective, scientific information and data,"" the WRI-says, adding: ""As a public institution, the EPA is legally required to provide access to critical environmental information, such as air and water pollution monitoring reports."" US climate scientists held a rally against attacks by the Trump administration The blog-notes-this would be the first time the agency's scientific data --including figures on-climate change --required-review by officials-before publication.- Legally, Trump cannot abolish the EPA, something-he pledged to do-during his election campaign. But he could still do much to wreck it over the next four years by slashing its staff and budget. Elizabeth Moses, environmental democracy specialist at the WRI and one of the blog post's authors, told DW, ""People need to have objective access about environmental issues and the EPA plays an incredibly essential role in helping to educate people, businesses and a variety of other shareholders in terms of what those environmental facts are, so they can participate in decision-making. ""Anything that prevents people from getting that objective information is going to jeopardize-their ability to make well-informed decisions."" Bypassing the public The president's executive order to revive the Keystone XL and Dakota Access pipelines,-without consulting-with the State Department and bypassing further public consultations, also looms as a major threat. ""Public participation is the bedrock of environmental democracy; yet the new administration's plans may undercut this pillar of good governance,""-wrote the WRI. President Donald Trump signs an executive order to advance the Keystone XL pipeline Miranda Schreurs, professor of Environment and Climate Policy at the Technical University of Munich, told DW the growing encroachment on environmental democracy was ""shocking""-and criticized the administration's apparent bid to censor climate science. ""Regardless of which administration has been in power in the past, be it democrat or republican, the US has been a leader on environment science, and any action to damage this would risk climate science and the reputation of the USA as a leader on these questions,""-Schreurs told DW. ""The real threat is that science is being discredited for what it is. It suggests that science needs to be vetted by political appointees and as soon as you do that, it appears politically motivated and that threatens a fundamental pillar of our society: the concept of objective science."" She added: ""It does strike at the heart of democracy, because one of the key pillars of any democracy is to have access to information for its citizens."" Given the EPA's legal requirement to provide environmental information, Schreurs said any attempts by the Trump administration to stymie this could lead to legal action. ""The federal budget is being used to collate this information and it's a transparency requirement that you know what's happening with the information.-So yes, there could easily be grounds for lawsuits.""", -304,2017/2/1,http://www.dw.com/en/sweet-silence-an-industry-shtum-on-artificial-sugars-unless-they-re-called-stevia/a-37368735?maca=en-rss-en-all-1573-rdf,Sweet silence: An industry shtum on artificial sugars unless they'r called Stevia,"There's sugar in almost everything we eat. We need sugar for energy. But too much is bad for our health. So are artificial sweeteners the answer? Well, they can come with risks too - and a bad aftertaste.","Going in search of people who will speak on the record about artificial sweeteners like Aspartame at a sweets fair is like going to a tobacco convention to talk about cancer. Everyone can see the elephant in the room but no one wants to chew it. And there's a palpable sense of anxiety. No one wants to say the wrong thing.- I spent a day at Cologne's international sweets fair (ISM 2017) on Tuesday, and I can confirm that watching the sweets industry side-step questions about artificial sweeteners is as cringe-worthy as witnessing the birth of a new dance. That's true even for those companies that don't use artificial sweeteners. Off the record they'll happily tell about the nasty aftertaste of artificial sweeteners, that you have to mask it, adding chemicals upon chemicals. Or they'll tell you about Aspartame's former use as a deadly neurotoxin (a nerve agent in warfare). Oh and did you hear the one about the study that showed possible links between sweeteners and cancer? Yeah, well, that was back in the 1970s, and it was only found in lab rats, so how reliable is that anyway?- Other than that, the line is: We don't talk about stuff we don't do. We're all natural.- And I did indeed come across two companies who profess to add no extra sugar. One was Natural Foods, who rely on sugars already in fruits like dates.- Natural Foods with ""no added nonsense."" That's no extra natural sugar or artificial sweeteners to you and me ""It's okay to get a bit of sugar on a daily basis, but there is so much added sugar, so we don't add anything else,"" said Joost Warbout of Natural Foods. ""There's a little bit [of sugar] from the fruit but that's it."" It's a simple concept. If you pick up one of their fruit bars, the ingredients will read 51 percent cashews and 49 percent dates. Equals 100 percent. So it is possible. ""It's cold pressed and because of the fruit it sticks together and because of the nuts it has bite, so we don't have to bake it,"" said Warbout. Then there's Germany's old, establishment baker, Brandt. They also have a sugar-free product, but some sugar arises naturally through the baking process. Sometimes, just sometimes, ""sugar free"" actually means sugar free (although some sugar may arise through baking) The thing is, sugar-free for Brandt means ""not sweet."" Shtum unless it's Stevia- - But we do still like to eat sweet things. And why not? Live a little. Some will even say our desire for sweet tastes is genetic. Zucceroo makes decorative sugar products for things like cakes. They only use real sugar. ""The original sugar from sugar beet, or cane sugar, is what we all know and love. I'd say that is genetic,"" said Zucceroo's Peter Forsch. ""Technical sugars like Stevia and Isomalt may have a place in drinks, but we don't love them in food."" - Zucceroo's Peter Forsch says our desire for sweet things like sugar - real sugar - is ""genetic"" Stevia is the only artificial sweetener manufacturers seem comfortable talking about. Perhaps that's because it's plant-based, and it's kind of a trendy super-additive at the moment. It's a low-calorie sweetener and grows like herbs. Just ask the Swiss cough sweet-maker, Ricola.- ""We use Stevia because it's a natural alternative that fits well together with bee balm. Stevia tends to have a taste on its own, so it doesn't go with every product,"" said Ricola's Luka Eiselin. ""But we use Stevia to be as natural as possible."" The Coca-Cola company has apparently found Stevia's natural taste an issue. The soda giant had to remodel its ""Coke Zero"" recipe a few times. I chewed on a Stevia leave at the ISM and it tastes a bit herby, minty and sweet. - ""We use alternative sugars because of the calories in natural sugar and the risk of diabetes, but also because sugar is bad for your teeth,"" said Eiselin.- Sour side-effects But artificial sweeteners have their own bad side-effects. ""Stevia is not much different from an artificial sweetener in my opinion,"" said Ulf Herrmann of Frusano. ""It has a bitter aftertaste and I simply don't like it.""- Frusano makes sweets suitable for people with a fructose intolerance, a dangerous condition. They use glucose syrup. Frusano's Ulf Herrmann: Sugar alternatives are not always about lower calories, but countering a fructose intolerance ""Most producers who use artificial sweeteners use a mixture. Even if you use Stevia, usually there are also sugar alcohols like Sorbitol to mask the taste and make the sweetness round,"" Herrmann said. ""It's almost the opposite of clean labeling. You add more and more ingredients to mask the side-effects of the one, and then another to mask that.""?Labeling is clearly an issue with sweeteners and more so, the extent to which we, the consumers, understand or even read it. For instance, did you know that some artificial sweeteners have a laxative effect? They can cause bloating and intestinal gas. ""There's a new EU law that says you have to write that on packaging,"" said Herrmann. ""The wording is something like 'If consumed in large quantities, may cause diarrhea.' But it always does [if you consume a lot]!"" First the sugars, then the gelatin! Katjes has kickstarted a new trend: vegetarian sweets avoid animal-based gelling agents - -One of my next stops at the ISM was Dallmann's, a German company best known for its sage cough sweets. I asked what they used in their ""sugar-free"" product: real sugar or sweeteners? Ricola, I said, uses Stevia now. The dapper Dallmann's salesman, Herr Lippmann, in his fake apothecary lab coat, looked confused. Then he told me Dallmann's uses a mixture of Sucralose and Isomalt. But he seemed distracted, and mainly concerned with pointing me back to his competitor Ricola, whose website showed ""they also use Aspartame."" - The fact is Aspartame and other artificial sweeteners like Acesulfame potassium, Sucralose, and sugar alcohols like Isomalt are approved for use in foods in the European Union and the United States, just to mention two major markets. But the complete list of substances approved for use in food varies from region to region. Aspartame, like many other types of artificial sweeteners, is hundreds of times more potent than natural sugar. So you should always check the label on ""sugar-free"" products and if you're unsure what the E-numbers - like ""E 954"" (Saccharin) or ""E 951"" (Aspartame) - denote, dig deeper online. Also check recommendations for ""Acceptable Daily Intake""-(ADI).- On my way out of the ISM I headed back to the Ricola stand to ask them about Aspartame. Eiselin had left, so I had the pleasure of meeting the company's young head Felix Richterich. Only as soon as I mentioned Aspartame, he no longer wanted to talk and insisted I contact Eiselin. I have yet to hear back. Please note: This article was originally published on February 1, 2017. At the-time of publication, Ricola had yet to reply to our request for comment on its use of Aspartame. Since then we have received an email from Lukas Eiselin. Here is an unedited, relevant part of his response: ""When Ricola launched the first sugar free herb drops in the 80ies [sic] aspartame was the state-of-the-art sweetener for tooth-friendly and low-calorie sweets. Although certain studies do raise questions to its safety, independent organizations such as the Joint FAO/WHO Expert Committee on Food Additives (JECFA) as well as the European Food Safety Authority (EFSA) have tested the safety of aspartame and confirm that it is safe for consumption."" -- These additional paragraphs were added to this article on February 3, 2017.", -305,2017/2/1,http://www.dw.com/en/why-we-still-need-shakira-s-cultural-m��lange/a-37362382?maca=en-rss-en-all-1573-rdf,Why we still need Shakira's cultural m��lange,"Colombian pop star Shakira, turning 40, is inspired by her Middle Eastern roots and has smashed sales records in Spanish and English. In times of insular politics, her globalized sound could be a healthy escape.","She might just be the proof-some women may need that turning 40 is nothing to dread. Since dropping her lastest single, ""Chantaje"" featuring Maluma, last November, the Colombian superstar has been challenging her fans to send in videos of their own dance moves as they shake their own hips to her track. (Shakira faithfully posts most tweets twice, in Spanish and English.) A quick scan of #ChantajeChallengeContest offers a few moments of what the Germans would call ""fremdsch?men"" (being embarrassed for someone else) - and proof that at 40 Shakira herself still has the world's fastest, sexiest hips. While with her midriff tops, skimpy dresses and erotic moves and lyrics, she may not embody the emancipated modern woman - and certainly didn't in 2001 when she stormed onto the US music scene with her steamy ""Laundry Service"" video and run-of-the-mill pop album of the same name. Not your typical pop queen She was already a big star in Latin America, but with her North American breakthrough at the beginning of the 2000s, ""some people associated the Colombian singer with her American pop-music contemporaries Britney Spears and Christina Aguilera,"" wrote music magazine ""Rolling Stone."" ""But the stylistic breadth of Shakira's music - elements of folk, Middle Eastern and traditional Latin styles over a foundation of rock and pop - gave her a degree of credibility the American teen queens lacked."" And perhaps that - besides her sheer vocal and dance talent - is what makes Shakira not only the inevitable superstar, but also all the more relevant in times of insular politics. So maybe we can't dance like Shak (see #ChantajeChallengeContest). And maybe we can't sing like Shak, a wunderkind who wrote her first song at age eight. But still, she could be any of us. Citizens of the world Shakira Isabel Mebarak Ripoll was born in Barranquilla, Colombia, on February 2, 1977, as the youngest of eight siblings. Her Colombian-born mother had Spanish and Italian roots, while her father was born in New York to Lebanese immigrants. To create her signature dance style, the superstar is able to draw on her diverse cultural heritage - having tapped into her Lebanese background in particular to master the art of belly-dancing. The salsa beats in her 2006 megahit ""Hips Don't Lie"" transported us to the palm-tree-lined squares of Havana, while ""Waka Waka"" made us all feel like Africans. Her 2010 single became the theme song of the FIFA World Cup in South Africa and the video has since racked up well over one billion views. As a UNICEF ambassador and founder of the Barefoot charity for kids in Colombia, Shakira's activism has focused more on education than politics. But in times where national boundaries are being fiercely defended and cultural differences become points of contention, perhaps we are desperately in need of a beat that can break down barriers. Shakira's Latin beats, spiced with Middle Eastern and other world elements and made comfortably familiar by being churned through the pop machine, make you feel like a citizen of the world - albeit one who traipses through the clubs of Miami, Barcelona, Cape Town or Havana, dressed in linen with cocktail in hand. -", -306,2017/2/1,http://www.dw.com/en/germany-approves-electronic-ankle-bracelets-to-monitor-extremists/a-37365188?maca=en-rss-en-all-1573-rdf,Germany approves electronic ankle bracelets to monitor extremists,Germany's cabinet has approved a measure aimed at tracking individuals who might pose a terrorism threat. The monitoring device can be used even if an individual hasn't been convicted.,"Authorities will be able to force suspected Islamist extremists believed to pose a threat to the public to wear-electronic ankle bracelets, the German cabinet agreed on Wednesday. Previously, only convicted individuals could be required to wear the-device used to monitor-location and movements. With the cabinet proposal, ""Gef?hrder,"" or people who pose a security threat,-who have not been convicted can be forced to wear the device by order of the-Federal Criminal Police Office (BKA). The change to the law was approved by the cabinet as part of a package of amendments to BKA law. Interior Minister Thomas de Maiziere and Justice Minister Heiko Maas had previously agreed to change the law in the wake of the December 19 terror attack on a Berlin Christmas market, which killed 12 people and wounded nearly 50 others. The attacker, Anis Amri, was considered a potential threat to public safety and under surveillance until a few months before the attack-when he fell off the radar.- He was ordered to be deported to his native Tunisia, but the deportation was postponed because Tunisia delayed providing his papers. Despite the deportation order, he was able to move around Germany.- The incident prompted sharp criticism of measures aimed at preventing terrorism.-In response, the-German government has put forward-a host of measures to overcome apparent security gaps. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Vash cw/kms-(AFP, dpa)", -307,2017/2/1,http://www.dw.com/en/iraq-s-wetland-paradise-under-threat/a-37267220?maca=en-rss-en-all-1573-rdf,Iraq's wetland paradise under threat,"Climate change, dams and poor water policy could finish off the Mesopotamian Marshes Saddam Hussein once sought to destroy. With them, rich ecosystems and the unique Marsh Arab culture would be lost.","Ali, 13, looks at the buffalo lying next to him in the straw. He affectionately calls it ""the baby."" The animal is only two days old and-its birth was a relief for Ali's family.-Here, in Iraq's Mesopotamian Marshes, buffaloes are often the only capital and wealth. A year ago, Ali's family lost half its buffaloes to-a severe drought. Most inhabitants of the marshes were similarly affected.- The-wetlands,-which some describe as the cradle of civilization, are located in southern Iraq, where the Tigris and Euphrates rivers meet and divide into dozens of channels before flowing-into the Persian Gulf. They are an oasis in the middle of the desert - a biodiverse-Garden of Eden - and home to the ""Marsh Arabs,"" whose unique culture is perfectedly adapted to their environment. Or at least, they used to be, before Saddam Hussein drained them in early 1990s to punish tribesmen there who backed a Shiite uprising against the Baath regime. That paradise, which once encompassed over 20,000 square kilometers, became a hell: a desert filled with mines. The rich wildlife disappeared and locals were forced to leave. Reviving Eden In total, half a million people were displaced as a result of what the United Nations in 2001 called a ""major ecological disaster, broadly comparable in extent and rapidity to the drying of the Aral Sea."" In 2003, when Saddam Hussein's regime fell following the US-led invasion of Iraq, the Marsh Arabs-returned home-and destroyed the dikes that blocked the rivers. ""There was no plan to restore the marshes,"" recalls local engineer Jasim al-Asadi, who was among the first to hack into the embankments built by Saddam Hussein. ""The locals took the initiative because this marsh is their life."" Soon, water flowed back into the marshes. This could have marked a rare-happy ending for post-invasion-Iraq. But today, the marshes are again at risk and some fear they-could disappear-for good. The marshes are only half their former size and pick-ups now drive where once there was water Too salty for life ""There is a big problem with the water, both in terms of quantity and quality,"" explains al-Asadi, who is also the local managing director of Nature Iraq, a nongovernmental organization working on the marshes. Climate change,-poor usage and distribution of water in Iraq,-and above all dams upriver, have dramatically reduced the volume of water flowing into the wetlands. The marshes are about half the size-they used to be. And the water is too salty. With reduced water flow, rising temperatures and evaporation, as well as-saltwater intrusion from the Gulf, salinity levels have rocketed. ""Before Saddam drained the marshes, the salinity level wasn't more than 200 ppm [parts per million],"" says al-Asadi, who remembers how the Marsh Arabs used to drink it. Average salinity is currently around 2,500 ppm. But it sometimes reaches 7,000 ppm - and in 2015 it reached 20,000 ppm in some parts of the marshes. ""The buffaloes would drink the water and die. They would poison themselves,"" remembers Sayeed Ali Murad, 29, a buffalo breeder living deep in the marshes. ""The reeds died, all the plants died."" He lost more than 15 animals. Water as a weapon Iraq's political and security situation has only made things worse since the-""Islamic State"" (IS) organization took control of dams on the Euphrates in Ramadi and Fallujah. In June 2015, IS-closed the Ramadi dam gates, lowering the river's-water levels. IS has lost control of Ramadi and Fallujah-but still holds Syria's largest dam, the Tabqa dam on the Euphrates. All this makes survival in the wetlands harder. But so far,-Sayeed Ali stays. ""We are so happy here in nature."" Just now, the situation is better, he explains. ""The water is okay at the moment,-but in a few months we will probably suffer from the lack of it."" If the water decreases again, he admits he will probably have to leave. Sayeed Ali Murad says if things get any worse he will have to leave Indeed, a new threat is emerging, this time from Turkey. The Ilisu Dam, a contentious hydroelectric dam on the Tigris River, could start operation by the end of 2017, and would further reduce the water flow. ""Turkey, Syria and Iraq have agreements for sharing water resources - but Turkey doesn't respect them,"" says al-Asadi. Ankara's control of the headwaters of the Tigris and Euphrates rivers has long been criticized in the Middle East, with some blaming Turkish-water policy on shortages that have fed conflict and instability-in Syria and Iraq. Who cares about a marsh? In today's chaotic Iraq --with its internal political crisis and rampant corruption - saving the natural wonder of the-Mesopotamian Marshes just isn't high on the national agenda.- The country allocates most of its water to wasteful intensive irrigation practices, prioritizing agriculture over conservation. In July 2016, the Mesopotamian Marshes were added to Unesco's World Heritage list as a ""refuge of biodiversity."" Many Marsh Arabs doubt the impact of this-gesture. But-activist Toon Bijnens thinks it is ""more than symbolic."" A member of the Iraqi Civil Society Solidarity Initiative, Bijnens says the inclusion of the marshes in the list ""sets priorities straight"" and could push Iraqi authorities to take action to protect the marshes. ""Now that the marshes are world heritage, the Iraqi government will have to develop a comprehensive water distribution plan which takes into account not only agricultural production, but also sustainability of the marshes.""", -308,2017/1/31,http://www.dw.com/en/daimler-to-build-self-driving-cars-for-uber/a-37359912?maca=en-rss-en-all-1573-rdf,Daimler to build self-driving cars for Uber,German premium carmaker Daimler has announced a partnership with Uber to supply self-driving cars for the US ride-hailing company as the pair seeks to become leading players in the world of autonomous driving.,"In a statement issued on Tuesday, the two companies announced their tie-up, saying that Daimler planned to ""introduce self-driving vehicles on Uber's global ridesharing network in the coming years."" The statement, however, didn't reveal any financial details of the cooperation. Daimler chief executive (CEO) Dieter Zetsche said that the ""inventor of the automobile"" would aim to become a leader in autonomous driving, which was ""one of the most fascinating aspects of reinventing mobility."" San Francisco-based Uber has invested heavily in self-driving car technology in recent years and is currently piloting the use of autonomous vehicles in the US city of Pittsburgh. But it had no car-building experience, CEO and co-founder Travis Kalanick admitted, which was why he was ""opening up the Uber platform"" to automakers like Daimler. ""Self-driving technology holds the promise of creating cities that are safer, cleaner and more accessible. But we can't get to that future alone,"" he said. Uber is already working with Sweden-based Volvo Cars to develop self-driving cars for sale by 2021. It has already built a self-driving truck which successfully delivered a beer shipment in October. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JRGC German car industry expert Ferdinand Dudenh?ffer predicted that the tie-up between Uber and Daimler wouldn't be the last in the sector. ""It's almost to be expected. And Uber is sure to work with more car manufacturers in the future,"" he told the news agency AFP, adding that this would make ""the world of tomorrow even more exciting."" Nearly all the major global automakers -including BMW, Volkswagen and Ford - are racing to get fully self-driving cars on the market in the next few years, often in cooperation with tech firms. US car giant General Motors (GM) last year announced a $500-million (460-million-euro) investment in Uber's rival Lyft, while Google parent company Alphabet has partnered with Fiat Chrysler to develop self-driving cars. The BMW group, which has partnered with US computer chip giant Intel, said earlier this month it plans to start testing self-driving vehicles on roads in the US and Europe by the end of the year. uhe/hch (AFP, dpa) -", -309,2017/1/31,http://www.dw.com/en/climate-skeptic-advisor-says-trump-could-pull-out-of-paris-climate-agreement-in-days/a-37351108?maca=en-rss-en-all-1573-rdf,Climate skeptic advisor says Trump could pull out of Paris climate agreement in days,"Ahead of the confirmation hearing of climate skeptic Scott Pruitt, President Trump's nominee to head the EPA, former aide Myron Ebell says it's only a matter of time until the US leaves the climate agreement.","The former head of President Donald Trump's transition team at the Environmental Protection Agency (EPA) has said it is only a matter of time before the president pulls America out of the Paris climate agreement, and that an executive order on the issue could come within days. Myron Ebell said President Trump was determined to undo policies implemented by Barack Obama to reduce greenhouse gas emissions. ""I expect Donald Trump to be very assiduous in keeping his promises, despite all of the flack he is going to get from his opponents,"" he told the media at a briefing in London on Monday. He was speaking at an event organized by The Global Warming Policy Foundation (GWPF), the main group advocating climate change skepticism in the United Kingdom. Speaking in London, Ebell also called the environmental movement ""the greatest threat to freedom and prosperity in the modern world."" Ebell, a long-standing climate change denier, said the United States would ""clearly change its course on climate policy"" under the new administration. 'Multiple ways' to pull out Ebell worked for Trump until his inauguration on January 20. He sees himself as an ""enemy of climate change alarmism,"" and does not accept that carbon dioxide is affecting the Earth's climate. He told the gathering the president could pull the US out of the Paris Agreement at short notice: ""He could do it by executive order tomorrow, or he could wait and do it as part of a larger package. There are multiple ways and I have no idea of the timing,"" Ebell said. Wednesday (01.02.2017) sees the confirmation hearing of President Trump's nominee to head the EPA, Oklahoma Attorney General Scott Pruitt. Critics are concerned because Pruitt also denies climate change, and has engaged in major lawsuits against anti-pollution regulations governed by the EPA. This includes the Clean Power Plan, which was the key element of the Obama administration's emissions reduction program. The clean power plan aims to reduce carbon dioxide emissions from power plants Fossil fuel chief as climate negotiator? Rex Tillerson, a former ExxonMobil chief executive, nominated by Trump as Secretary of State, indicated during his recent Senate hearing that the US might remain in global climate negotiations, which are being coordinated by the United Nations. In response to a question about the Paris Agreement, he said: ""I think it's 190 countries have signed on. We're better served by being at that table than by leaving that table."" Yet apart from indicating it might be better to stay in the negotiations, Tillerson played down climate change considerably. Christina Deconcini, Director of Government Affairs at the World Resources Institute, told DW: ""He misstated and understated the scientific evidence around climate change and what is happening."" ExxonMobil is accused of having covered up evidence of climate change in its own research for decades. As climate deniers are poised to serve in prominent positions of Trump's administration, environmentalists have taken to the streets amid worries they could roll back environmental protections. Trump himself, who initially called climate change a ""hoax,"" eventually conceded ""some connectivity"" between humans and climate change, and has now said he is keeping an ""open mind"" on the issue. Pruitt is poised to become the head of the Environmental Protection Agency - an agency he repeatedly sued since becoming Oklahoma Attorney General in 2011. He opposes the Clean Power Plan, aimed at reducing carbon emissions. He has also blocked implementation of the Clean Water Rule, which expanded protection for bodies of water and requires polluters to clean up wastewater. Secretary of State nominee Tillerson worked for petroleum giant ExxonMobil for more than 40 years. During his confirmation hearing, when pressed, he acknowledged climate change risks. He said the increase in greenhouse gases is ""having an effect,"" but added ""our ability to predict that effect is very limited."" ExxonMobil is accused of covering up climate research over several decades. Environmentalists are concerned that as Secretary of Energy, the former Texas governor will boost oil and gas rather than focusing on renewables. In the past, Perry said he intended to axe the whole energy department. He has called global warming a ""contrived phony mess."" He's likely to support the controversial Dakota Access Pipeline. However, Texas did increase wind power production under Perry. Zinke, an ex-Navy SEAL commander from Montana, keeps changing his position on climate change. Initially in favor of climate protection, he later denied it even exists. At his confirmation hearing he told Senate, ""I don't believe it's a hoax."" As head of the Interior Department, he would oversee about a fifth of all US land - and make decisions about coal mining, and drilling for oil and gas. Author: Sarah Steffen From rhetoric to action Ebell told the press in London he assumed the president would overrule Tillerson on any dispute over climate policy. However, President Trump's recent assertion that he would give his secretary of defense, James Mattis, the final say in a dispute over policy on torture could indicate that he may allow his cabinet to make decisions that are not necessarily in line with his own rhetoric. President Trump has already removed the climate change page from the White House website, revived two controversial oil pipelines and put communications restrictions on the EPA and the National Parks Service. Although he appears to have moved slightly away from his campaign stance by admitting there is ""some connectivity"" between human activity and climate change, he has also stated that he will not allow environmental or climate regulations to make US companies uncompetitive. ""There are reasons to think some of the rhetoric might be toned down and different decisions made along the road,"" WRI's Deconcini told DW. She says Trump may realize that it is ""in America's best interests"" to remain in the Paris Agreement after all. Climate goals still in sight Even if the new administration does roll back the Clean Power Plan, Deconcini saysother developments could mean the US could still achieve its climate targets of reducing 2005 emission levels 26 to 28 percent by 2025. ""It's quite conceivable that under a new administration, the states would really up their game,"" Deconcini said. She also pointed out the tremendous speed with which renewable energy is advancing, and how fast the price of it is coming down. Renewable energy has taken on its own momentum, and is now among the cheapest forms of energy to develop ""So it's possible through market forces, and good state actions and businesses - who are not going to stop moving in low-carbon directions - that we will be able to meet those targets."" Deconcini said she hoped the President's background as a businessman would convince him that if the US is to be competitive, it must not ""cede the ground on the clean energy race to other countries."" Convinced of-climate impacts She told DW opinion polls showed people in the US are extremely interested in moving to a low-carbon economy: ""Many polls demonstrate it's not the top concern of people in the US; but people generally want policymakers to move in that direction."" The WRI believes as climate impacts become increasingly evident and costly, the pressure to combat climate change will increase. Deconcini cites concern over the likely impact of sea level rise in Florida as one example. ""I think that will increase the urgency over time, and the amount that elected representatives hear from their constituents about wanting to move towards reducing greenhouse gas emissions."" Myron Ebell, however, remains convinced that President Trump ""thinks global warming is not a crisis and does not require drastic and immediate reductions in greenhouse gas emissions."" At one point considered to be a pick for heading the EPA, Ebell has now returned to his position as Director of Global Warming and International Environmental Policy at the Enterprise Institute, an advocacy group based in Washington, D.C.", -310,2017/1/31,http://www.dw.com/en/what-is-carbon-monoxide-poisoning/a-37351049?maca=en-rss-en-all-1573-rdf,What is carbon monoxide poisoning?,Breathing in too much carbon monoxide is one of the leading causes of death from poisoning in most countries. But how exactly does it lead to death?,"Two tragic cases in Europe have raised awareness of the dangers of carbon monoxide poisoning. Over the weekend, six teenagers died in the southern-German town of Arnstein after they had spent the night in a garden shed with a defective wood-fired heater. And last week,-three migrants had died in a refugee camp on the Greek island of Lesbos-because they were using makeshift stoves in tents, according to news agency AFP.- Carbon monoxide poisoning is associated with a dangerous collection of symptoms - lightheadedness, confusion, headaches and dizziness can all occur from mild acute poisoning, Greater exposure can result in-toxic levels in the heart and central nervous system, which ultimately leads to death. Although the gas is extremely toxic it is completely odorless, tasteless, colorless and non-irritating, making it extremely difficult to detect,-or for someone to notice that they're breathing it in.- After someone breaths in carbon monoxide it enters the bloodstream, where it then bonds with the haemoglobin in the blood stream to form carboxyhaemoglobin. As carbon monoxide molecules-has a stronger affinity to-haemoglobin than oxygen, the oxygen get ""crowded out."" There's essentially no space left for it on board-the red blood cells.-It means the-oxygen can't be carried in the blood,-which ultimately leads to the death and failure of other cells and tissues-in the body. Carbon monoxide is primarily released in to the air when fuels such as gas, oil and coal don't burn completely. Poorly installed or badly-maintained boilers, gas fires, water heaters or cookers are common sources of accidental leaks of the dangerous gas. How do you cure a poisoned patient? The initial treatment for carbon monoxide poisoning is oxygen therapy in a hospital. This involves asking the patient to breath in 100 percent oxygen to allow-the-body to gradually replace the carboxyhaemoglobin. Since normal air contains around 21 percent oxygen, it means the body can flush out the toxic chemicals. Therapy usually continues until the levels of carboxyhaemoglobin in the bloodstream is less than 10 percent.- In some cases hyperbaric oxygen therapy (HBOT) is used. This process floods the body with oxygen in a pressurized room or tube and can be used if the patient has been under exposure to carbon monoxide for a long period of time or is suspected of having nerve damage.- Recovery- If a patient avoids critical damage from poisoning they can often recover, with the time dependent on how much of the gas was in the body.-However there are often long-term complications after treatment. These can involve breathlessness, chest pains, seizures and often loss of consciousness. As well as brain damage in the-form of vision loss, hearing loss or even the development of Parkinson's disease. Over exposure can also effect the heart, with many survivors developing coronary heart disease, which can lead to heart attacks.- According to the British National Health Service-10-15 percent of survivors tend to develop some form of long-term effects of carbon monoxide poisoning.-", -311,2017/1/31,http://www.dw.com/en/can-a-deposit-system-help-reusable-coffee-cups-catch-on/a-37351099?maca=en-rss-en-all-1573-rdf,Can a deposit system help reusable coffee cups catch on?,"Some 320,000 disposable cups are thrown away every hour in Germany. Reusable cups have long been touted as the solution. But will they ever catch on? With clever financial incentives, perhaps yes.","The active service life of a disposable coffee-to-go cup is about 15 minutes. Once it's over, it gets chucked into a dustbin, or onto the street or into some bushes. This daily phenomenon plagues cities everywhere. It entails significant on-going clean-up costs, and it's an eyesore. Disposable plastic cups are an extra-big problem - their remains can-last indefinitely in the environment. According to data from Deutsche Umwelthilfe (DUH), a German environmental organisation, almost three billion cups land in the trash in this country-every year. On average, each of Germany's 82 million people uses 37 cups a year, and the production of plastic cups or plastic-sheathed paper cups causes CO2 emissions of more than 100,000 tonnes per year in Germany. Trend toward reusable cups? Public discomfort about disposable cups is increasing. Consumers, caf�� operators and cities are looking for solutions.- People often bring their personal cups along on the morning commute to work. More and more canteens, bakeries and caf��s are now offering reusable cups as an alternative to disposables. Overflowing rubbish bins like this one, photographed in January 2015 in Berlin, are an all-too-common sight The city of Berlin is now preparing to attempt a great leap forward: soon, coffee consumers in Berlin will be able to enjoy their coffee-to-go from a refillable cup supplied by coffee retailers. You have to pay pay-a deposit, which will be quickly and easily refundable when the cups are returned to participating retailers. The Berlin administration's proposal for the introduction of a multi-use returnable cup system is now being discussed by its Environment Committee. The initiative is scheduled to be voted on within the next few weeks by the city's municipal parliament. ""We see a clear trend in the direction of reusable cups, starting with small initiatives in cafes, projects at German universities or with the Berlin S-Bahn. The decision by the city's politicians paves the way for a multi-reuse future,"" said Stefanie Otterstein of DUH. About 3.8 million disposable paper or plastic cups are thrown away in Germany each day - more than a few of them become litter Cheaper for both consumers and retailers Every year around 2,400 tonnes of coffee-to-go cups are produced in Berlin. Berlin's policy initiative aims to support a shift from disposable to reusable cups with incentives: a-discount of at least 20 cents on the retail price of a cup of coffee, for consumers who use reusable rather than disposable cups. If it succeeds, the measure will have a double benefit: it'll be better for the environment, and it will save the government money on cleanup costs for parks and public places. It's an echo of the deposit system on many glass and plastic bottles that has been in place in Germany for many years. Feel-good coffee-to-go A pilot project in Berlin called 'Just swap it' has already generated encouraging early results. The initiative's organizers developed a reusable mug made of bamboo, cornstarch, and synthetic resin, which is lent to customers in participating Berlin caf��s for a 4 euro ($4.32) deposit. The customers can take the cup with them, and give it back at other cafes. Freiburg has its own reusable, refundable coffee cups (on the left) ""The mugs are catching on,"" project manager Ulrike Gottsauk told Deutsche Welle. ""Our goal is responsible consumption with a good feeling. We don't want to point our fingers at consumers and induce a guilty conscience."" According to Gottschau's data, reusable cups and the deposit system also make financial sense for caf��s: a-plastic cup including lid costs coffee sellers about seven cents, whereas the cost of washing reusable cups is less than half that amount. Incentive for environmentally friendly consumption Other German cities want to promote the use of reusable cups too. In Freiburg's city center, the reusable ""FreiburgCup""-has been available in caf��s and bakeries since last November. Freiburg was-the first city in Germany with a multiple-reuse cup deposit system. ""We want people-to produce less waste and throw fewer coffee cups onto the streets,"" says Gerda Stuchlik, Freiburg's mayor. The city's quarter of a million residents currently go through about twelve million disposable cups annually.", -312,2017/1/31,http://www.dw.com/en/why-some-wild-hamsters-become-crazed-cannibals/a-37346152?maca=en-rss-en-all-1573-rdf,Why some wild hamsters become crazed cannibals,An all-maize diet is turning wild hamsters in northeastern France's maize fields into deranged cannibals that devour their own offspring. The same crazy-making nutritional deficiency has affected humans in the past.,"A balanced diet with all the right nutrients isn't important only for humans. It's important for wild animals, too. Its absence can lead to rather horrifying consequences - as the example of wild hamsters living in western European farmlands demonstrates. The numbers of wild European hamsters (Cricetus cricetus) have declined by more than 99 percent-over recent decades in Belgium, the Netherlands and the adjacent German federal state of North Rhine-Westphalia during recent decades. It was already known that ploughing of fields, which destroys their underground burrows, was part of the reason, and pesticide exposure probably another. But a group of researchers led by Mathilde Tissier, a biologist at the University of Strasbourg in northeastern France, wondered if a nutrional imbalance might be part of the reason for the steep-decline too. Life in the maize fields Tissier and her colleagues knew that there's little other than maize available for wild hamsters to eat in the industrial maize-field monocultures that have replaced natural ecosystems over huge swathes of Europe, to produce raw materials for biofuels as well as fodder for pigs or humans. Maize - usually called corn-in the United States and Canada-- is a grain plant first domesticated by indigenous peoples in Mexico about 10,000 years ago. It is-descended from a genus of plants in the grass family called Zea-by scientists, or ""teosinte""-in native Mesoamerican languages. Num, num. A balanced diet is important - not just for humans... The Strasbourg researchers knew that a nutritional deficiency caused by a diet too dominated by maize had caused health problems in human populations in the past. From 1735 to 1940, maize-based diets led to the death of hundreds of thousands of people from pellagra, a complex disease caused by deficiencies of either tryptophan or vitamin B3, or both. Vitamin B3 is also known as-niacin,-and if you look closely at the list of ingredients on a box of processed cereals, you're likely to find niacin has been added. That's a direct consequence of the pellagra problems of the past. Symptoms of niacin deficiency Pellagra is associated in the medical literature with the ""three Ds"": Diarrhea, dermatitis, and dementia. Physiological symptoms included red skin lesions, hair loss, enlargement and inflammation of the tongue, poor coordination, peripheral nerve damage, and an enlarged, weakened heart. But pellagra also makes people crazy. Prior to developing full-on dementia, pellagra sufferers display mental symptoms including heightened aggression, irritability, restlessness, intolerance to sensory stimuli like bright lights or odors, insomnia, emotional instability, and mental confusion. Was the same phenomenon - pellagra, and its raft of symptoms - affecting wild European hamsters whose diet was too maize-dominated? Tissier decided to find out --by feeding groups of hamsters different diets in the laboratory. A late 19th century victim of pellagra disease in North Carolina, USA A first set of lab experiments with wild specimens compared wheat-based to maize-based diets, each with side dishes of clover or worms. There was virtually no difference in the number of pups born, or the basic nutritional value of the different menus. But when it came to survival rates, the difference was dramatic. About four-fifths of the pups born of mothers feasting on wheat-and-clover or wheat-and-worms diets were successfully weaned. In stark contrast, only five percent of the baby hamsters whose mothers ate maize instead of wheat lived to the end of the weaning period. What was most disturbing is how some of them died: Their mothers - or, in some cases, their siblings - ate them. ""Females stored their pups with their hoards of maize before eating them,"" the scientists reported. ""Pups were still alive at that time."" The maize-fed mothers showed other signs of abnormality: they ran in circles, ""climbing and pounding their feeders,"" when scientists entered the room. They also had swollen and dark tongues, reminiscent of 'black-tongue syndrome' in dogs whose diets are deficient in niacin. The maize-fed hamsters had-blood so thick it was difficult to draw for samples, and a variety of skin or hair abnormalities. Maize - tasty for humans, bad news for hamsters Hamster pellagra After the first round of experiments, it seemed likely to Tissier that the hamsters were indeed experiencing their species' version of pellagra. ""Improperly cooked maize-based diets have been associated with higher rates of homicide, suicide and cannibalism in humans,"" the researchers noted in their final report, drawing a clear parallel between cannabalistic hamsters and-the types of craziness observed in 19th century-humans afflicted-with pellagra. So they re-ran the same set of dietary experiments with new groups of hamsters, with one difference: in the second round of experiments, they added a group of hamsters whose maize-based diets had been supplemented with added niacin (vitamin B3). Sure enough, the niacin-enriched diet was enough to eliminate the horrific symptoms associated with the maize-based diet. None of the niacin-supplemented mothers ate their young. The dire consequences of a vitamin B3-deficient maize diet, the scientists concluded, stemmed from a change in the hamsters' nervous system that induced-dementia-like behaviours. A normal hamster mother checking on her pups in their underground burrow A wider problem? If humans, dogs, and hamsters are all at risk of forms of pellagra if they're restricted to excessively maize-based diets, the scientists suggested, other species of wild animals beyond European hamsters - for example, other wild rodents - may also be at risk of pellagra-like diseases and population declines in territories dominated by maize monocultures. ""Knowing that [wild animal] species [that live in modern farmlands] already face many threats, and that most of them are in danger of extinction, it is urgent to restore a diverse range of plants in agriculture schemes,"" the researchers wrote in conclusion. Gerard Baumgart, President of the Research Centre for Environmental Protection in Alsace, is an expert on the European hamster. Speaking to AFP on Friday, he agreed with the Strasbourg researchers' recommendations. ""Our hamster habitat is collapsing,"" he said. ""Monoculture in agriculture is really bad for biodiversity... Now we need to take concrete action."" Conservation schemes available to support the remaining populations include restoration of diverse natural habitats, captive breeding, and reintroductions. Including-material from AFP.", -313,2017/1/31,http://www.dw.com/en/when-boxer-crabs-fight-anemones-are-the-real-winners/a-37348358?maca=en-rss-en-all-1573-rdf,"When boxer crabs fight, anemones are the real winners","If you're a pom-pom boxer crab, you'll often need to fight to stay alive. When the bell rings, you'll need your anemone to pack some extra sting. Don't have one? Just steal a bit from a friend and feed it like a pet.","The relationship between boxer crabs and the sea anemones that they use as pom-pom boxing gloves is one of the most unusual in nature. Scientists on the island of Fiji have discovered a type of ant that plants, fertilizes and guards its own coffee crops. The industrious creatures have been perfecting their agricultural know-how for millions of years. (22.11.2016) Sex is a serious business for arachnids, and male spiders are often eaten by the female after mating. So spiders have had to develop strategies to help pass on their genes. The males have found a work-around. (21.09.2016) Before the birds and the bees, there was Fractofusus, a prehistoric creature that scientists think was the first organism to use complex methods to reproduce, rather than just asexually multiplying. (05.08.2015) Israeli scientists found that it's possibly unique, with-crabs - also known as Lybia or pom-pom crabs - controlling the-reproductive activity of the anemone. The group were following up on a previous study that showed the crabs - unflatteringly classed-as ""kleptoparasites"" - regulate the food intake and, hence, the-growth of their ""guests."" Scientists go-so far as to-liken-this to the careful-cultivation of bonsai.- Sea anemones throw out a protective shield around their crustacean host, which can save it from being gobbled up by a predator.- They also help the crabs-to pack a punch, having tentacles on their claws that are covered in stinging cells. This-helps-ward off predators, and-can-come-in handy in a duel. Crabs - which hold onto anemone with hooks - can also use them-as food mops, gathering debris from around their-home. While the anemone admittedly gets to feed off the scraps, it seems they benefit least from the relationship. After all, who wants to be a mere mop or pom-pom? Every crab has its mits full Researchers from Israel's Bar-Ilan University and Volcani Center looked at the relationship a little more closely. Each-crab they had seen in the wild had two anemones. The team wanted to know how the crabs might come by their tentacled fighting tools in the wild. The crabs are tiny and hard to observe in the wild, so the scientists took a look at how they behaved in the laboratory. They found that when one sea anemone is taken from a crab, it will weave two smaller fragments from the remaining one. Over the next few days this then grows and regenerates. When a crab with no anemone is placed with a crab boasting the usual-two, the creature-without one will launch a brave assault on its tank-mate. Handled with care They'll do so by holding down the claw of their opponent, and removing all or part of the anemone. Most such encounters would end with a successful theft, and the crabs would-grows whatever they were left with. ""Sea anemone splitting appears to be a well-orchestrated behavior, conducted with apparent care for the final outcome, ie, two new viable sea anemones,"" said the authors of the study, published in the open access journal PeerJ.- According to the researchers, it's a unique example of one animal inducing the asexual reproduction of another. Perhaps that explains a little more of what's in it for the anemone. It's also what seems to happen in the wild. Using German DNA amplification techniques, the team-looked at genetic fingerprints from beaches near Eilat, on the Red Sea. Each crab was found holding genetically identical anenomes, indicating that they were originally one. In a previous study, the scientists found that the crabs, which themselves only grow to abount 2 centimeters (less than an inch),-appear to limit the amount of food that aneome get, limiting their size. Good things, as far as they're concerned, come in small packages.-- -", -314,2017/1/31,http://www.dw.com/en/love-tequila-then-raise-your-glass-to-bats/a-37345753?maca=en-rss-en-all-1573-rdf,Love tequila? Then raise your glass to bats,The next time you decide to purchase a bottle of tequila reflect on this phenomenon: cocktails would be a lot less interesting without the contributions of tequila bats.,"Bats are cemented in the popular imagination as fanged creatures of the night intent on sucking our blood. Rarely are they lauded for their role in bringing tequila shots and margaritas to the bars of the world. Yet without them, this beloved booze from Mexico might not exist. These flying mammals and the agave plant - from which tequila is derived - have co-evolved over millions of years. The lesser long-nosed bat, or tequila bat for short, flies under the cover of night to feed on the flowering desert plant. In exchange for its nectar, the bats scatter the agave's seeds and pollen, allowing the spiky succulent plant to propagate and thrive in the wild.- With a range spreading across the American Southwest and much of Mexico, the bats are the primary pollinator of agave plants. But industrial farming practices in the tequila fields of Mexico disrupted that relationship many years ago, putting the tequila sector and the bats at risk.- The 'Bat Man' of Mexico Tequila bats and agave plants have a mutually beneficial relationship In Mexico, around 138 species of bat are known to exist in addition to 180 species of agave plant. ""Mexico has more species of agave than any other country in the world,"" says, Rodrigo Medellin, a professor of vertebrate biology at the National Autonomous University of Mexico. Medellin, whose conservation work and lifelong interest in bats has earned him the moniker ""bat man,"" is concerned about the resilience of both agave and its pollinators.- As the source of tequila, blue agave is one of Mexico's most commercially valuable crops. But during the 1990s, the monocropping of a single species of the plant led to disaster. A fungus chewed through row upon row of agave fields, extensively damaging the crop. Research suggests overproduction and poor land management practices were to blame. Medellin contends that the decline was also hastened by the loss of genetic diversity, thereby making the fields vulnerable to epidemics. ""They lose genetic diversity each time they plant with clonal shoots,"" he said. Today, the vast bulk of the tequila produced in Mexico is the byproduct of cultivars. That means the plants are carbon copies of each other, selected by growers for their quick growth rate and higher sugar content, rather than for their hardiness. Once they reach their peak, the entire agave crop is harvested before the plants have a chance to flower and go to seed. But in doing so, large-scale producers have removed a major food source from the bats' diet, while undermining the future of the tequila industry by not allowing for genetic diversity, Medellin explained. ""You need to allow a few plants to bloom,"" he said.- Two visions, one goal To bring bats back into the equation, conservationist Medellin has joined forces with restaurant and bar owner David Suro, who founded the Tequila Interchange Project in 2010 to market and promote sustainable agave spirits.- While Medellin has been championing conservation efforts in Mexico and abroad, David Suro has been tackling the problem from a different angle. He formed TIP with the goal of overhauling the dubious reputation tequila has had in the eyes of American consumers.- A small group of tequila growers in Mexico has agreed to make some of their crop bat friendly As the owner of a Mexican restaurant in Philadelphia, he knew his customers regarded tequila as the devil's brew because they told him as much. To combat this bias, he sought out anthropologists and historians to better understand the role agave plants have played in Mexico's history and culture. A product of the arid landscape, ample sunshine and mestizo society, ""tequila is very emblematic of Mexico,"" Suro said. Through his work, Suro eventually encountered Medellin. After bonding over a shared interest in bats and agave propagation, they came up with a model for producing bat friendly tequila. The project involves a simple shift in agricultural practices that benefits plant biodiversity and bats.- ""By allowing 5 percent of the agave plants to flower, about 225 plants per hectare, growers extend an invitation to those responsible for maintaining the genetic diversity of agaves: the bats!,"" according to TIP's website. A small group of tequila producers in Jalisco, a Mexican state along the Pacific, agreed to join the pilot phase of the project, allowing a small percentage of their agave crop to go to seed in order to attract tequila bats. ""We are crossing our fingers that the bats will bring what is desperately needed, which is genetic strength from wild agaves into the tequila fields,"" Suro said. As of December 2016, the organization has produced 265,000 bottles of bat friendly tequila intended for sale and distribution in the US with more to follow. According to Suro, the second stage will involve working with artisans in southern Mexico, whose skill for producing agave-based spirits dates back to the Spanish colonial era. Changing minds with tequila- Bat friendly tequila could get people talking about the benefits of bats, say conservationists Rob Mies, founder of the Organization for Bat Conservation, believes TIP is off to a good start. ""Tequila opens up a door,"" he told DW. In short, the intoxicating allure of artisanal tequila made by skilled craftspeople is a good conversation starter for the role bats play as insectivores and pollinators in rural economies. It also helps that tequila has an outsized reputation for loosening tongues and opening minds, among aficionados. As the coordinator for research projects that monitor the migration of bats across the United States, Canada and Mexico, Mies believes the initiative has a built in market. Tequila already has legions of fans in America and abroad. US residents have a powerful Texas-sized thirst for tequila, consuming approximately 120 million liters, per year. Bat friendly tequila ""is a great way to tap into what people already enjoy, do and understand, and that's margaritas,"" he said.", -315,2017/1/30,http://www.dw.com/en/antibiotics-can-boost-bacterial-growth/a-37337875?maca=en-rss-en-all-1573-rdf,Antibiotics can boost bacterial growth,"We have long known that bacteria can become resistant to antibiotics. Now, British researchers have found that germs multiply much faster after becoming resistant, than they did before.","Researchers at the University of Exeter exposed Escherichia coli (also known as E.coli) bacteria to eight rounds of antibiotic treatment over a period of four days. In the process, the germs, which usually cause stomach pain and diarrhea and in worse cases kidney failure, increased antibiotic resistance with each treatment. This was a mutation-the scientists expected. What they were not prepared for-was the observed speed with which the resistant germs multiplied after being treated. In one case the bacteria populations grew three times as big as in the case of normal E.coli bacteria within the same timeframe. Bacterial mutants are sustainable Even after removing the antibiotics, the mutated bacteria maintained its ability to multiply faster. ""Our research suggests, there could be added benefits for E.coli bacteria when they evolve resistance to clinical levels of antibiotics,"" lead author Prof. Robert Beardmore said. ""It is often said that Darwin evolution is slow, but nothing could be further from the truth, particularly when bacteria are exposed to antibiotics."" He described the ability of bacteria to rearrange their DNA as ""remarkable."" This could stop drugs from working sometimes in a matter of days. ""While rapid DNA change can be dangerous to a human cell, to a bacterium like E.coli it can have multiple benefits, provided they hit on the right changes."" In 2011 it became clear, how dangerous mutated forms of E.coli can be, when several people died of EHEC. You may only know the Tasmanian devil as a cartoon character - the one that's out to get the bird. But Australian scientists say the real thing may carry a deadly weapon against dangerous superbugs. (18.10.2016) With drug-resistant strains of bacteria jeopardizing the lives of hundreds of thousands of people and few new treatments on the horizon, scientists are looking to nature for answers. (29.11.2016) A strain of bacteria resistant to all known medications has been found in the US for the first time. Experts have long warned that overuse of antibiotics is creating drug-resistant bugs increasingly difficult to control. (27.05.2016) Asks Abdiel Reyes from Panama City (07.03.2016) Finding the source by DNA sequencing As part of the study, which was published on January 30th 2017 in the journal Nature Ecology & Evolution, the scientists exposed the bacteria to the antibiotic doxicycline. Then, they froze the bacteria at minus 80 degrees Celsius and conducted gene sequencing to find out exactly which genetic changes were responsible for the observed resistance. Some of the changes were well known and described in clinical patients. One of them is the ability of the bacteria to produce more ""antibiotic pumps"". These are segments called ""pump DNA"", which literally pump antibiotics out of the bacterial cell with the result of ensuring-that the drugs can not do their work. But the scientists also discovered that the mutated bacteria were lacking part of the DNA-that is known to describe a dormant virus. Several parallel evolutionary processes at work What that means exactly is not clear, but Dr. Carlos Reding - a co-author of the study - has an idea. ""Our best guess is that losing viral DNA stops the E.coli destroying itself, so we see more bacterial cells growing once the increase in pump DNA allows them to resist the antibiotic in the first place,"" Reding said. ""This creates an evolutionary force for change on two regions of the E.coli genome"". Usually, bacteria tend to use self destruction as a means to colonize surfaces. That's how a biofilm develops - the slimy substance found,-for instance,-in the drains of sinks. ""But our study used liquid conditions, a bit like a bloodstream, so the-E.coli could give up its biofilm lifestyle in favor of increasing cell production"", the researcher suggests. Using antibiotics in a targeted way Dr. Mark Hewlett - also from Exeter University - added: ""It is said by some that drug resistance evolution doesn't take place at a high dosage but our paper shows that it can and that bacteria can change in ways that would not be beneficial for the treatment of certain types of infection."" Anyhow, he concludes, that it is important to use ""the right antibiotic on patients as soon as possible. So we don't see adaptations like these in the clinic.""", -316,2017/1/30,http://www.dw.com/en/earthworm-numbers-dwindle-threatening-soil-health/a-37325923?maca=en-rss-en-all-1573-rdf,"Earthworm numbers dwindle, threatening soil health",Earthworms help recuperate soil and enrich it with much needed minerals. But environmentalists are concerned as earthworms have come under threat from intensive use of manure and acidic soil.,"Earthworms, it seems, are the unsung heroes of our world. Labeled slimy and disgusting by many, these lowly invertebrates work unseen and underground where they till, fertilize and improve soil. But environmentalists are concerned that industrial agricultural practices are making life difficult for this surprisingly important animal. Intensive use of manure and acidic soil with a pH value below five harm the worm, although it remains unclear whether herbicides affect earthworm's ability to reproduce. Still, one thing is for sure: the destruction of its habitat every few months with heavy machinery stresses the animal. Fewer than 30 earthworms are found per square meter on intensively farmed fields. But on organic farms, where the fields are rarely ploughed, up to 450 worms live in the same area, according to the World Wide Fund for Nature (WWF). - That's bad news according to agronomists and gardeners. A thriving earthworm population is an indication of healthy soil. And the retreat of the species is so evident-the WWF has published an ""Earthworm Manifesto"" to publicize the faith of these dirt-dwellers. - ""If earthworms suffer, so too does our soil and thereby the basis for agriculture and food supply,"" said Birgit Wilhelm, a WWF expert in the farming sector. For Wilhelm, these worms-are the least appreciated creatures on the planet. Diligent workers Earthworms are industrious and irreplaceable in that they tirelessly work to fertilize and aerate soil, and in the process help prevent soil erosion. ""Strictly speaking, there are 45 species and four categories [of worm] that carry out a range of tasks,"" explained Professor Heinz-Christian Fr��nd, an environmental scientist with expertise in soil at the University of Osnabr��ck. - A healthy soil full of earthworms can absorb up to 150 liters of water per hour Some eat fallen leaves and wood on the soil's surface. Others gather en masse in compost heaps. A third category lives in mineral soil, which is derived from minerals or rocks and contains little humus or organic matter. The worms replenish the soil with their excrement, which contains all the nutrients plants needs to thrive, including nitrogen, phosphorous, and calcium. ""The most well-known species of worm, the common earthworm, plays a major role for the farming sector,"" said Fr��nd. The animal builds a system of tunnels in which it lives. It digs a vertical main entrance from the top layers of the soil until it gets to a damp, reliable depth. In an enormous show of strength, the worm burrows through the earth, aerating it, so oxygen and plant roots can reach further down. This act contributes to soil formation and regeneration and improves its ability to absorb water. The common earthworm feasts on rotting, bacteria-rich plant matter that it finds on the soil's surface. ""Therefore, it's essential that farmers don't harvest right down to soil level, but instead leave some remnants,"" Fr��nd said. - Effects of climate change Droughts are particularly devastating for worm populations. If there are too few worms, the soil will become dense, poorly aerated and won't absorb enough water. ""Soil that contains many earthworms will absorb up to 150 liters of water per hour and square meter,"" said WWF's Wilhelm. ""If the soil has too few worms, it will act like a blocked drain. Very little will get through. That can lead to floods."" The tiny earthworms carry out important tasks for our soils - but the tiny creatures have come under threat Heavy metals, such as copper, are one of the factors that can reduce earthworm numbers. However, copper compounds are used mainly by organic farmers - particularly in vineyards. Wine producers have been using the substance as a fungicide for about 100 years, although the European Union has designated it a ""candidate for substitution,"" compelling member states to seek more favorable alternatives. ""Large amounts of copper can negatively impact an earthworm's enzymes. It inhibits their growth or they can no longer reproduce properly,"" according to Bernd Hommel, an expert in analysis and organic chemistry at the Julius-K��hn-Institute, a federal research center for cultivated plants. Although the researcher also established that some earthworm species can excrete the absorbed metal. Even the agricultural sector has long known that earthworms need to be protected, says Hommel. ""Only synthetic pesticides that have been tested in the lab and out in the field for compatibility with earthworms are coming to market,"" he added. - Future food Still, the WWF warns of a ""dangerous chain reaction for humanity,"" and has called for politics and society to encourage an agricultural sector more focused on soil and humus-friendly farming. The goal of the EU's farming policy should be the promotion and maintenance of natural soil fertility, said WWF's Wilhelm. At a time when development is swallowing up more and more countryside, good soil is becoming increasingly important to ensure a secure food supply for the world's growing population. Long-term soil fertility and the ability of farmland to recuperate are under threat and protecting earthworms with their ability to improve soil should be an agricultural goal. Research has shown there are solutions. ""Using a soil cover with a catch crop such as grass during winter led to a sharp rise in earthworms,"" Fr��nd said. It's a glimmer of hope for these underground dwellers. -", -317,2017/1/27,http://www.dw.com/en/meet-the-german-movement-to-transform-agriculture/a-37289747?maca=en-rss-en-all-1573-rdf,Meet the German movement to transform agriculture,"An estimated 18,000 people recently took to the streets in Berlin to show support for small-scale farmers and wholesome food. Why are food politics so big in Germany?","Ottmar Ilchmann is a 54-year-old dairy farmer from Germany's East Frisia region. He has just 60 cows, and says it's becoming harder and harder for small farms like his to survive. ""I see how many of my neighbors have to close their farms, and how much other farmers are taking the land from these little farms."" By other farmers, Ilchmann means the big industrial agriculture operations that are swallowing up more and more of the German countryside. ""They are growing and growing,"" Ilchmann told DW. His neighbors aren't alone in shutting down their operations. According to the Alternative Farmers Association, nearly 4,000 dairy farmers went out of business last year. And organizers of a recent protest in Berlin against the industrialization of agriculture say almost 100,000 small producers have been forced to close in the last decade. Much of the problem, you'll hear farmers and experts explain, lies with discount pricing. The drive for cheap food means many producers can no longer sustain themselves. Farmers Arlette Seiler-Fuller and Luna Piyczyk protest in Berlin. The young couple say theirs is the greatest job in the world Policy for protest The ""We are fed up!"" demonstration has been happening annually since 2011. On January 21, 2017, around 18,000 people marched through the streets of the German capital to show their support for small farmers and wholesome food, chanting ""A future on the land!"" ""People are looking for other possibilities to make good farming which is good for the environment good for the animals and good for the people,"" said Ilchmann, who drove his tractor all the way from northwest Germany to take part. He wasn't alone. In all, 130 tractors made the journey, according to the one of the event's organizers, Iris Kiefer. One traveled almost 600 kilometers (373 miles). Arriving at the demonstration, these producers joined concerned consumers, along with organizations from slow food advocates to international development nonprofits. Taken together, they are people who value the work of small farmers', and share their ideals. Fighting free trade Like Stephanie Roth, who campaigns against the Comprehensive Economic and Trade Agreement (CETA) between Europe and Canada, which will be up for a vote in the European Parliament in February. ""We think it is really important to send personal messages to our elected deputies to tell them that we don't want this free trade agreement,"" Roth told DW. Tractors pull away from Berlin's Potsdamer Platz on as a part of the ""We are fed up!"" rally Roth argues that if Europe opens its market to foodstuffs produced more cheaply in North America, still more German farmers will be put out of business. The agreement would also allow genetically modified food into Europe. Recent studies indicate as many as 80 percent of Germans oppose this. ""There is a German saying that is very well known, every child knows it, it says: 'Du bist was du isst' - you are what you eat.- And I think it is true,"" says Roth. Many in Europe see agreements that would harmonize conditions between Europe and North America as a threat. Karen Hansen-Kuhn works for the Institute for Agriculture and Trade Policy in the US. She says although small farmers are generally better off in Europe than they are in North America, things could shift. Public pressure ""What I hear from a lot of our EU partners is that we shouldn't underestimate all of the pressure that is being put on EU policy makers to change,"" she told DW. This year's demonstration put a special focus on helping young people to get into small-scale farming The risk is that if Europe were to step into line with countries like the United States, laws and subsidies could see small producers priced out of the market. But Hansen-Kuhn believes activists are making a difference. Food and farming have become an important public concern, and European lawmakers are having to listen to voters. ""You wouldn't find the same thing in the US if you talked to a policymaker that they would be able to tick off, consistently, the same four sets of demands that they are hearing from local populations,"" she says. Part of that activism is about getting people out of the streets, as happened in Berlin last weekend. But Kiefer says the size of the crowd is less important than the dialogue between farmers, civil society and consumers. ""I think only if we go together, hand in hand, consumer and farmer, we can change our system-of food production.""", -318,2017/1/26,http://www.dw.com/en/opinion-trump-s-america-is-beginning-to-look-a-lot-like-china/a-37283847?maca=en-rss-en-all-1573-rdf,Opinion: Trump's America is beginning to look a lot like China,"Media gag orders, suppressing public information, sweeping executive decisions - Donald Trump's ecopocalyse has begun. It's reminiscent of another world power's approach to governing - with key differences.","Trump's war on the environment has begun - and information is its first target. After ordering a contract freeze and media blackout-at the Environmental Protection Agency on Tuesday (24.01.2017), the administration on Wednesday went even further by mandating that any studies or data from the public agency undergo ""review"" by political appointees before being released to the public. The administration also reportedly instructed the EPA to remove the climate change page from its website, proving-citizen-driven efforts to collect and protect climate data-prophetic. The Department of Agriculture-also on Tuesday-issued an order banning scientists and other employees in its main research arm, the Agricultural Research Service, from publicly sharing results of its work. The Trump administration temporarily shut down the National Parks Service's official Twitter account last Friday after it retweeted, among other things, a note that the new government-had removed references to climate change from the White House website. Specific offices of the National Parks Service, which is under the Department of Interior, were also targeted by the Trump administration after tweeting facts and information about climate change. While some tweets from the Badlands National Park account were deleted, rogue actions seem to be spreading to other park service accounts. Under a broad call to ""resist,"" National Parks Service employees have even set up an alternative Twitter account. Add to Trump's acts of suppression sweeping executive orders, including to ""fast track"" development of controversial oil pipelines and build a border wall (which may never happen). Trump is also reportedly preparing an executive order to cut funding to the United Nations and review multilateral treaties including the Paris Agreement on climate change. Taken together, this paints a frighteningly undemocratic picture of unilateral control over public institutions. In fact, the picture it paints is reminiscent of another world power: China. From authoritarian to totalitarian Information is power - and the authoritarian-Chinese government is notorious for suppressing it. This applies to environmental matters as well. Recently, Chinese authorities told weather forecasters to stop issuing smog alerts. The Chinese government also ordered an app that collects air quality information to stop releasing data that exceeds official pollution caps. It's trying to cover up how bad its air pollution problem really is. But China, at least, acknowledges the very real risks of climate change. The country is pledging to reduce emissions, and building out its renewable energy capacity. As climate deniers are poised to serve in prominent positions of Trump's administration, environmentalists have taken to the streets amid worries they could roll back environmental protections. Trump himself, who initially called climate change a ""hoax,"" eventually conceded ""some connectivity"" between humans and climate change, and has now said he is keeping an ""open mind"" on the issue. Pruitt is poised to become the head of the Environmental Protection Agency - an agency he repeatedly sued since becoming Oklahoma Attorney General in 2011. He opposes the Clean Power Plan, aimed at reducing carbon emissions. He has also blocked implementation of the Clean Water Rule, which expanded protection for bodies of water and requires polluters to clean up wastewater. Secretary of State nominee Tillerson worked for petroleum giant ExxonMobil for more than 40 years. During his confirmation hearing, when pressed, he acknowledged climate change risks. He said the increase in greenhouse gases is ""having an effect,"" but added ""our ability to predict that effect is very limited."" ExxonMobil is accused of covering up climate research over several decades. Environmentalists are concerned that as Secretary of Energy, the former Texas governor will boost oil and gas rather than focusing on renewables. In the past, Perry said he intended to axe the whole energy department. He has called global warming a ""contrived phony mess."" He's likely to support the controversial Dakota Access Pipeline. However, Texas did increase wind power production under Perry. Zinke, an ex-Navy SEAL commander from Montana, keeps changing his position on climate change. Initially in favor of climate protection, he later denied it even exists. At his confirmation hearing he told Senate, ""I don't believe it's a hoax."" As head of the Interior Department, he would oversee about a fifth of all US land - and make decisions about coal mining, and drilling for oil and gas. Author: Sarah Steffen Therein lies an important difference: Trump's America is all about handing out gifts to his fossil fuel cronies. On the same day he ordered the EPA media blackout, he sat down with beaming automobile executives to talk about how ""out of control"" environmental regulations are. Make no mistake: This is special-interest politics at its most extreme. United States environmental policy under Trump goes beyond China's authoritarianism, since it doesn't acknowledge - indeed, is trying to suppress - the basic fact that climate change exists. If China with its single-party system is authoritarian, Trump with his actions is totalitarian. Muzzling public agencies, strangling down their funding, removing their regulatory authority - will benefit only a few already wealthy businessmen. At the expense of the people. The Environmental Protection Agency and the Department of the Interior are taxpayer-funded institutions - therefore by the people, for the people. They exist to ensure clean air and clean water, and land use that manages wildlife and ecosystems in balance with human needs. Americans who support their right to clean air and clean water, and public lands managed in the public interest:-It's time to stand up totalitarian policies. It is time to resist. Lest we allow special interests to complete their takeover of the US government. Sonya Diehn is Environment Team Leader at Deutsche Welle.", -319,2017/2/7,http://www.aljazeera.com/programmes/insidestory/2017/02/israel-annex-palestinian-territories-170207201102827.html,Will Israel annex Palestinian territories?,Israeli members of parliament pass a new law which allows settlers to remain on Palestinian land.,"Controversial at home, and condemned abroad.- Israel's parliament passed a new law on Monday, retroactively legalising settlements built on Palestinian land. International law says the settlements are illegal, and Israel's Supreme Court is expected to overturn the newly passed law. The fact that it passed shows the strength of Israeli right-wing parties. Their opponents say the shift signals a loss of hope for a two-state solution. What are the legal consequences? Presenter: Hazem Sika Guests: Alan Baker: Jerusalem Center for Public Affairs Mustafa Barghouti: Palestinian National Initiative Ben White: Journalist and researcher specialising in Palestinian-Israeli conflict. Source:-Al Jazeera", -320,2017/2/7,http://www.aljazeera.com/news/2017/02/jovenel-moise-sworn-haiti-president-170207161155899.html,Jovenel Moise sworn in as Haiti's new president,"Haitian leader takes oath of office in Port-au-Prince, ending a political crisis that lasted for more than a year.","Jovenel Moise has been sworn in as-Haiti's new president, opening a new chapter in the country's history after a long-running political crisis . The 48-year-old banana exporter, who has never held political office, took the oath of office on Tuesday in a ceremony in the capital, Port-au-Prince. The handpicked candidate of Haiti's former president, Michel Martelly, Moise initially won the first round of voting in October 2015 - but the results were subsequently annulled amid allegations of massive fraud. The elections were further postponed in October after Hurricane Matthew battered the country, killing hundreds and causing extensive damage. Moise won a November election redo with 55 percent, vowing to stimulate the economy and create more jobs.- Yet, his critics claimed he did not gain a mandate because only 21 percent of voters went to the polls.- The new president begins his five years in power with an already fragile popularity, since he is at the centre of an unresolved money laundering probe. Haiti's Central Unit of Financial Intelligence alleges that Moise laundered $5m through suspicious money transfers - charges he denies. Haiti has been dependant on international aid since a powerful earthquake devastated it in January 2010. Its serious economic problems have been compounded by political instability, violence and corruption. According to the UN World Food Programme, two and half million Haitians live in poverty. REWIND: Haiti in a Time of Cholera Despite the challenges Moise faces as the poor Caribbean country's new president, some Haitians are willing to give him a chance. ""We have to wait and see what is going to happen. Previous governments came and made promises but nothing happened,"" Desilien Simedieu, a community leader at the Carradeux camp, where most people live on less than $3 per day, told Al Jazeera. ""The only thing we can do is wait."" Source:-Al Jazeera and news agencies", -321,2017/2/7,http://www.aljazeera.com/news/2017/02/scotland-rejects-triggering-brexit-binding-vote-170207185646730.html,Scotland rejects triggering Brexit in non-binding vote,"In a symbolic move, Scottish politicians vote by 90 to 34 against a bill that would trigger Britain's exit from the EU. 'Key test'","Scotland's devolved parliament has overwhelmingly rejected Britain's march towards a European Union exit, in a non-binding vote-that could potentially be used as groundwork for a second referendum for Scottish independence. Tuesday's symbolic motion, which was proposed by the Scottish government led by First Minister Nicola Sturgeon, was backed by 90 votes to 34. It argued that the triggering of Article 50, which starts the two-year Brexit process, should be rejected because the UK government has left too many questions unanswered. OPINION: Scotland is trapped in a zombie union It said the Westminster parliament is not guaranteed a say in any new trade relationship once Britain has left the EU and the decision to proceed ""does not respect the majority vote to remain part of the EU that was returned in every council area in Scotland"". Scotland was told it would be an ""equal partner"" in the British union if it rejected independence, which it did by 55 percent in a 2014 referendum. In June 2016, Scotland voted to remain in the EU by 62 percent, but it was outvoted by England which has a vastly larger population. Brexit succeeded overall with 52 percent of the vote. Sturgeon has repeatedly demanded that the interests of Scottish people be taken into account during upcoming Brexit negotiations and says Scotland must have a choice on holding a new independence referendum if that is not the case. ""(This vote) is a key test of whether Scotland's voice is being listened to and whether our wishes can be accommodated within the UK process,"" Sturgeon said ahead of the vote. OPINION: Nicola Sturgeon - The new champion of liberalism The Minister for UK Negotiations on Scotland's Place in Europe, Mike Russell, said the Scottish government will never allow Scotland to be humiliated and its democratic choice rejected. ""We will never, ever, turn our back on Europe and the world,"" he said. Russell said there was still time for London to avert another independence bid by Scotland if it accepted a ""compromise"" - a differentiated solution that would keep Scotland in the European single market even as the rest of Britain leaves. Britain's highest court ruled last month that the launch of Brexit talks must be approved by the British parliament, but Prime Minister Theresa May has no legal obligation to consult the devolved administrations in Scotland, Wales and Northern Ireland. Amendments to May's European Union (Notification of Withdrawal) Bill currently making its way through the House of Commons, which would have given the regional governments a voice in the Brexit process, were rejected on Monday during a British parliamentary debate in London. Analysts say the Scottish parliament vote sends a clear signal to London that the Brexit process is proceeding without their support, but the UK government has no compulsion to listen. ""The UK government will continue our engagement with the Scottish government and with people and groups across Scotland as we prepare to leave the EU to secure the best deal for Scotland and the UK,"" a British government spokesman said. Sturgeon's Scottish National Party has 63 out of seats in the 129-seat Scottish parliament, just short of the 65 seat majority Source:-News agencies", -322,2017/2/7,http://www.aljazeera.com/news/2017/02/israel-land-grab-law-ends-hope-state-solution-170207143602924.html,"Land grab law 'allows theft, stalls peace process'",Law that retroactively legalises settler homes on private Palestinian land widely condemned as legitimising theft. 'Against all international laws',"Israel's land grab law that-retroactively legalises thousands of settlement homes in the occupied West Bank legitimises theft, violates international law and ends the prospect of a two-state solution, according to politicians, legal experts and human rights groups. The so-called ""Regulation Bill""-instantly drew wide condemnation-as it was voted in by members of the Knesset late on Monday with a 60 to 52 majority. The law applies to about 4,000 settlement homes in the West Bank for which settlers could prove ignorance that they had built on privately owned Palestinian land and had received encouragement from the Israeli state to do so. Three Israeli NGOs - Peace Now, Yesh Din and the Association for Civil Rights in Israel - and numerous Palestinians said they intend to petition the Supreme Court to cancel the law. UN Secretary-General Antonio Guterres said on Tuesday in a statement: ""This bill is in contravention of international law and will have far reaching legal consequences for Israel."" The EU's foreign policy chief Federica Mogherini said in a statement that the bloc-""condemns"" the law and urges against its implementation-""to avoid measures that further raise tensions and endanger the prospects for a peaceful solution to the conflict"". Palestinian President Mahmoud Abbas said the law was an aggression against the Palestinian people. ""That bill is contrary to international law,"" Abbas said following a meeting with French President Francois Hollande in Paris. ""This is an aggression against our people that we will be opposing in international organisations. ""What we want is peace ... but what Israel does is to work toward one state based on apartheid."" Hollande called on Israel to go back on the law, saying it would ""pave the way for an annexation, de-facto, of the occupied territories, which would be contrary to the two-state solution"". Hours before Abbas' meeting with Hollande, Saeb Erekat, secretary general of the Palestinian Liberation Organisation, told the Associated Press news agency that the law puts ""the last nail in the coffin of the two-state solution"". Calling the move ""theft"", Erekat said the ruling showed ""the Israeli government trying to legalise looting Palestinian land"". AL JAZEERA'S SENIOR POLITICAL ANALYST, MARWAN BISHARA: ""What you have here is a crazy number of settlers in the [Knesset]. Ten percent of the Israeli parliament are settlers; indeed the speaker of the Israeli parliament is a settler. The settler lobby within the Israeli parliament is quite strong, even when they know that what they are doing is unconstitutional and will probably not pass the Supreme Court. The idea is that the government gets in on it ... even if they don't get their way this time, they will be compensated if the Supreme Court rejects it. All in all, there isn't much room for international pressure on Israel. Prime Minister Benjamin Netanyahu knows it, he knows he has a president in the White House who's going to back him.- Israel is basically going on a spree to increase the settlements in the West Bank. At the end of the day, this is a moving, explosive situation that I cannot see in any shape or form in the intermediate run is simply going to go by without real, major repercussions in Palestine or outside.- Developing, over the last 50 years, is a dual system of government: one for the Jews in the West Bank and one for the Palestinians. There is only one name for that: apartheid. The Arab League also accused Israel of ""stealing the land"" from Palestinians. ""The law in question is only a cover for stealing the land and appropriating the property of Palestinians,"" said the head of the Cairo-based organisation, Ahmed Aboul Gheit. Palestinian owners will be compensated financially or with other land, but cannot negotiate their terms. The law is a continuation of ""Israeli policies aimed at eliminating any possibility of a two-state solution and the establishment of an independent Palestinian state"", Aboul Gheit said. Jordan, one of the few Arab states to have diplomatic ties with Israel, also denounced what it called ""a provocative law likely to kill any hope of a two-state solution"". According to the UN envoy for the Middle East peace process, Nickolay Mladenov,-the law crosses a ""very thick red line"" towards annexation of the occupied West Bank, and sets a ""very dangerous precedent"". Speaking to the AFP news agency, he said: ""This is the first time the Israeli Knesset legislates in the occupied Palestinian lands and particularly on property issues."" He also raised the possibility the law could open Israel up to potential prosecution at the International Criminal Court, a threat Israel's own top government lawyer, attorney general-Avichai Mandelblit,-has also warned of. Mladenov called for strong international condemnation of the legislation but declined to criticise the US after President Donald Trump's administration refused to comment on it. READ MORE: Israeli settlement law 'violates rights and dignity' Trump is more sympathetic to Israel's settlement policies than previous US presidents; the Israeli government has approved plans to build thousands of new homes on occupied territory since the far-right leader settled into the White House. ""I think that is a very preliminary statement,"" Mladenov said. ""Obviously they do need to consult, this is a new administration that has just come into office and they should be given the time and the space to find their policies."" White House spokesman Sean Spicer said the US was likely to discuss the law with Netanyahu when the Israeli prime minister visits on February 15, but did not comment further in a press briefing on Tuesday. David Harris, head of AJC, the global Jewish advocacy organisation, said that ""Israel's High Court can and should reverse this misguided legislation"" ahead of Netanyahu's meeting with Trump in February. That was also the message from Defence Minister Avigdor Lieberman, who said last week: ""The chance that it will be struck down by the Supreme Court is 100 percent."" International law considers all settlements to be illegal, but Israel distinguishes between those it sanctions and those it does not, dubbed outposts. A Palestinian Cabinet minister also called on the international community for support. ""Nobody can legalise the theft of the Palestinian lands. Building settlements is a crime, building settlements is against all international laws,"" said Palestinian Tourism and Antiquities Minister Rula Maayaa. ""I think it is time now for the international community to act concretely to stop the Israelis from these crimes."" Nabil Abu Rdeneh, a spokesman for Palestinian President Mahmoud Abbas, called the law ""unacceptable"" and urged the international community to act immediately. ""This is an escalation that would only lead to more instability and chaos,"" Rdeneh -said. Palestinians want the occupied West Bank, east Jerusalem and the Gaza Strip - territories Israel occupied in the 1967 Middle East war - for their future state. READ MORE: Israel's settlement bill 'big step towards annexation' The international community views settlements as illegal and an obstacle to reaching peace. Shortly before leaving office, US President Barack Obama allowed the UN Security Council to pass a resolution declaring settlements illegal. Tobias Ellwood, Britain's Middle East minister, also condemned the land grab bill, saying it ""is of great concern that the bill paves the way for significant growth in settlements deep in the West Bank"". Yuval Shany, an-international law professor at the Hebrew University in Jerusalem, said the law violates basic rights, interferes with property rights and is discriminatory because it regulates only the transfer of land from Palestinians to Jews. Source:-Al Jazeera and news agencies", -323,2017/2/7,http://www.aljazeera.com/news/2017/02/afghan-refugees-status-extended-year-170207180402885.html,Afghan refugees' status extended until end of year,Pakistani cabinet decides to push back Afghan refugees' legal right to stay in the country from March 31 to end of 2017.,"Islamabad, Pakistan --Pakistan's government has extended a deadline for Afghan refugees to leave the country until the end of 2017, according to state media. A meeting of the cabinet, presided over by Prime Minister Nawaz Sharif, on Tuesday pushed back the refugees' legal right to stay from the previous deadline of March 31, state-run APP news agency-reported. There are currently about 1.3 million registered Afghan refugees resident in Pakistan, according to the United Nations High Commission for Refugees (UNHCR). Many fled violence in their country more than 30 years ago, during the Soviet invasion of Afghanistan, with others fleeing the US-led invasion in 2001. There are also about a million unregistered Afghan refugees present in the country, Pakistani officials say. A recent crackdown by Pakistani authorities, citing security concerns, has seen a sharp rise in both deportations and voluntary repatriations of Afghan nationals from the country. READ MORE: A hard winter - Afghan refugees return from Pakistan Last year, more than 600,000 Afghan refugees left Pakistan to return to their home countries, data from the UNHCR and the International Organization for Migration (IOM) shows. For registered refugees, that number represents a more than six-fold increase from the previous year, according to UNHCR. At least 22,559 Afghans were also deported by Pakistani authorities in that period, IOM says. Refugees and rights groups say increased harassment by police and stricter restrictions on crossing and returning from Pakistan's northwestern border with Afghanistan have been responsible for the rising numbers.- The cabinet meeting on Tuesday reaffirmed those tighter controls on the border. ""It was also decided that the Afghans cross-border movement would now be regulated through the visa regime and their entry passes would be linked with it,"" reported APP. In November 2015, US-based rights group-Human Rights Watch documented a campaign of abuse and harassment of Afghan refugees by Pakistani police, involving confiscation of their registration cards, bribes and raids on their homes. READ MORE: Afghan returnee girls at risk of early marriage - Report Pakistani officials deny there is any such policy or campaign. Until last year, Pakistan regularly extended the Afghan refugees""?legal status in the country for at least 12 months every year. In June, however, an extension of only six months was offered until December 31, 2016. The next extension lasted only three months, until March 31, 2017. Source:-Al Jazeera News", -324,2017/2/7,http://www.aljazeera.com/indepth/opinion/2017/02/romania-protests-corruption-170207100017012.html,,,"On the afternoon of February 5-citizens in Bucharest marched simultaneously from several neighbourhoods across the city, converging on Piata Victoriei where the government building is located. The symbolism of this march was splendid: the grassroots coming together from the smallest corners to stand up to a central government perceived as abusive. For the past fortnight, hundreds of thousands have been demonstrating, first weekly, then daily, across all of Romania against two government proposals that would have seen those guilty of abuse in office pardoned or having their sentence reduced. Then on the night of February 4, the Social-Democratic Party (PSD) which controls the government had announced tht it would withdraw the executive decree reducing some corruption sentences which had drawn the most public criticism. While people gathered in Piata Victoriei and elsewhere celebrated this victory, they also knew that the PSD would still try to push ahead with the measures. In the most likely scenario, the proposed legal changes will be put to vote in a parliament dominated by the PSD. The continuation of protests on February 5 despite the government's announcement was meant to show the executive that it was being watched carefully. Protests may quiet down over the next days but they will most likely pick up once the laws get close to a parliamentary vote. The legal jargon around the two PSD legislative proposals was so complicated that even legal experts were struggling to figure out what was going on. But the nuances of the debate were not lost to protesters. As some in the crowd started asking for the resignation of the government, others immediately pointed out that the government had to stay until it withdrew the executive order and only then resign, otherwise the measures would have legal effect. This is evidence of the high level of sophistication among protesters, many of whom have participated in several waves of demonstrations in Romania since 2012 and become skillful at calling public institutions to account, communicating and organising. The strength of the protests of the past week cannot be understood without looking back at the past years of social mobilisation in Romania. This did not come out of the blue. Protest mobilisation coalesced for the first time during anti-austerity protests in 2012 but it became really powerful during 2013 when weekly protests were staged across the country to save the village of Rosia Montana from a cyanide-based gold mining project. It defeated the PSD government then, which emboldened it. Street protests stopped for a while but returned whenever there was something at stake: fighting deforestation, protecting green spaces in cities or changing electoral laws to make space for smaller parties and independents. New independent media and local activist groups were born. Mass demonstrations happened again after the Colectiv nightclub fire that killed 64 people in Bucharest in 2015. That tragedy revived investigative journalism that revealed criminal flaws in the functioning of the Romanian medical system. A few years ago, during one of the protests, an activist held a banner with the words ""A quarter of century of solitude"". Referring to the famous novel of Gabriel Garcia Marquez, the protester, a historian and activist who had dedicated his adult life to mobilising young people towards civic involvement, was possibly reflecting on how daunting the task was. Like other post-communist countries, Romanian society was known for its low levels of civic involvement and solidarity. Fear of the Securitate - the secret police - during communism followed by the aggressive individualism of capitalism had left Romania's social fabric in tatters. Those speaking about collective political action were seen as freaks. But within little more than five years this has changed. When the PSD unveiled the corruption laws, people knew what they had to do - get together in the streets and protest. It had become a familiar practice. Last week's protests were the biggest since the fall of communism and participation was diverse, across age groups, economic class and political values. Moral outrage against a government ready to circumvent democratic process to serve its members' interests united people. At the same time small gestures of solidarity popped up such as restaurants offering free food and warm tea and hotels offering accommodation to those travelling to Bucharest to protest. Romania's street protests will not solve the country's problems. - A historical photograph from the bloody 1989 anti-communist revolution has been in circulation recently showing a young man holding a sign saying: ""We are here so that our children can be free"". It was echoed last week by young people, the children of the 1989 demonstrators, holding banners saying: ""We are still in the streets protesting"". The post-communist transition failed in many ways in Romania: primarily, because poverty levels are still staggering and the lives of working people still precarious. The PSD's attack on democratic practices in order to pardon the corrupt indicated another failure: even the fundamentals of democracy have been under threat. But while a decade ago, Romanians would complain that they are a passive society not responding to abuse from the rich and powerful, today it is different. On February 4 in Bucharest, a children's protest took place in Piata Victoriei, with families bringing their youngsters out on to the streets to teach them the value of civic involvement. The Romanian state is still failing most of its citizens, but something changed. Many are ready to do their it to help. Authoritarian regimes are rising everywhere in the world, not just in post-socialist Eastern Europe where democracies were always thought to be fragile. Last week, the-PSD gave a first sign that it was ready to sacrifice democratic processes for its own interests-and justify it with redistributive measures that are desperately needed. OPINION: Romania - Keep the corrupt in jail, where they belong The citizen response this past week has dealt a severe blow to the PSD. The party may have thought that winning elections by 45 percent allowed it to do whatever it wanted for the next four years, but protesters insisted the election result was not a blank cheque. Romania's street protests will not solve the country's problems. Failing public institutions, poverty and inequality, racism among others are very real problems that need to be addressed by wise policies and the political will to carry them through. If they are not dealt with, parties like the PSD will always try to exploit those failures for political benefit.-Romania desperately needs an alternative to the PSD on the left that could tackle these issues effectively. The demonstrations show that citizen power can check abuses by the powerful. In a world where our tolerance for such abuse seems to be increasing by the day, that's an extraordinarily hopeful development. Claudia Ciobanu is a Romanian freelance reporter based in Warsaw. Her articles have appeared in the Guardian and Reuters among others. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -325,2017/2/7,http://www.aljazeera.com/news/2016/11/interactive-news-hour-1611230907-161126140702840.html,NewsGrid - Al Jazeera's interactive news hour,"Live every day at 15:00 GMT, our interactive news bulletin gives you the opportunity to engage with our team directly.","Live every day at 15:00 GMT, NewsGrid, Al Jazeera's first interactive news bulletin, gives you the opportunity to engage with the world's news stories on and off the grid. Main topics on Tuesday, February 7: How to get involved in the conversation? - Connect with us on Twitter using #AJNewsGrid - WhatsApp our news team directly via 974 501 111 49 - Comment on our live broadcast via Facebook #AJNewsGrid Tweets Source:-Al Jazeera News", -326,2017/2/7,http://www.aljazeera.com/news/2017/02/nicolas-sarkozy-2012-campaign-funding-170207140826155.html,Nicolas Sarkozy to be tried over 2012 campaign funding,Former French president is to face trial for alleged illegal financing of election expenses during his 2012 campaign. Failed comeback,"Former French president Nicolas Sarkozy is to face trial on charges of illegally financing his failed 2012 re-election bid, according to prosecutors. One of the two investigating magistrates in charge of the case decided that it should go to trial,-a legal source told AFP news agency on Tuesday. The prosecution claims Sarkozy spent nearly double the legal limit of $24m on his lavish campaign, using false billing from a public relations firm called Bygmalion. It is understood that 13 other individuals will also go on trial over the so-called ""Bygmalion Affair"".- Sarkozy's lawyer announced plans to appeal the decision. Bygmalion charged $16.2m in campaign events to Sarkozy's party - which at the time was called the UMP but has since been renamed the Republicans - instead of billing the president's campaign. Sarkozy, who failed in a presidential comeback bid last year after losing to ex-Prime Minister Francois Fillon, has previously told investigators he knew nothing about the billing and put the responsibility squarely on Bygmalion and the UMP. OPINION: Old Sarkozy does not match new France's needs If convicted,-Sarkozy, 62, faces up to a year in a prison.-He could yet be spared trial, however, given that the second investigating magistrate in the case disagreed that Sarkozy be put in the dock. Only one other president - Jacques Chirac - has been tried in France's Fifth Republic, which was founded in 1958. He was given a two-year suspended jail term in 2011 over a fake job scandal.- The son of a Hungarian immigrant father, Sarkozy, was nicknamed the ""bling-bling"" president for his flashy displays of wealth. His trial will focus on whether he himself caused the over-spending in 2012 by demanding that additional rallies be organised towards the end of his campaign, even though they were bound to blow the budget. The judicial source said he was accused of having ignored two warnings from advisors in March and April 2012 about his spending, which came to ""at least $45.7m"". While the so-called Bygmalion case is the most pressing, Sarkozy has been fighting legal problems on several fronts. He is charged with corruption and influence peddling for allegedly offering to help a judge swing a plum retirement job in return from secret information about another case. He has also been accused by former members of-Moammar-Gaddafi's regime of accepting millions in cash towards his first presidential campaign in 2007 from the-toppled Libyan leader- claims he has vehemently denied. After retiring from politics following his 2012 defeat by the Socialist Party's Francois Hollande, he returned to take the helm of the Republicans and sought the party's presidential nod in this year's election. In a surprise result, he was eliminated in November in the first round of a primary contest, trailing the eventual winner, Fillon, and Alain Juppe, another ex-prime minister. News of Sarkozy's trial comes as Fillon faces his own scandal over parliamentary jobs for his family. The presidential candidate apologised on Monday for employing his wife over 15 years as an aide - which is legal - but continued to deny the more serious allegations that she barely worked for her average monthly salary of around $3,950. Source:-Al Jazeera and news agencies", -327,2017/2/7,http://www.aljazeera.com/indepth/interactive/2017/02/explaining-somali-election-process-170207102621524.html,Explaining the Somali election process,A short explainer on how the 2017 elections in Somalia will work.,, -328,2017/2/7,http://www.aljazeera.com/news/2017/02/suicide-blast-supreme-court-kabul-170207114057162.html,Suicide blast near Kabul Supreme Court kills dozens,At least 20 people dead after suspected suicide bomber on foot targeted employees as they were exiting the building. Farah bombing,"A suspected suicide bomber has targeted the Supreme Court building in the Afghan capital, Kabul, killing at least 20 people, according to officials. Ismail Kawasi, the public health ministry spokesman, said 41 people were also wounded in Tuesday's explosion, which hit near a side door used for court employees to leave the building at the end of the work day. The attacker was on foot and detonated his suicide vest packed with explosives near the employees and other people as they were coming out of the main court building,-Najib Danish, deputy spokesman for the interior ministry, told the Associated Press news agency. INTERACTIVE: Afghanistan civilian casualties reaches record high No one immediately claimed responsibility for the attack but Taliban fighters have attacked the top court and its employees in the past, as well as court buildings in the other provinces. ""This is not the first attack that targeted Afghan justice system,"" Al Jazeera's-Qais Azimy, reporting from Kabul, said. ""In fact the exact location, the car park of the supreme court, was targeted before in June 2013 by a suicide bomber, which killed 17 people."" ""That's why this part of the compound is heavily guarded and the employees of this court know that they are targets for Taliban,"" Azimy said. The armed group has repeatedly issued statements threatening to target employees at Afghanistan's justice system ""because they are not happy with the way they are working"", our correspondent added. The Kabul bombing came hours after a roadside bombing killed the top government official of a district in western Farah province. Taliban spokesman Qari Yusouf Ahmadi said the group claimed responsibility for that attack. A Farah police spokesman, Iqbal Baher, told AP that Abdul Khaliq, the top official in the Khak-e-Safed district, was on his way home from the mosque when the explosion took place in the city of Farah, the provincial capital. Taliban fighters frequently use roadside bombs and suicide attacks to target government officials as well as Afghan security forces across the country. Source:-Al Jazeera and news agencies", -329,2017/2/7,http://www.aljazeera.com/news/2017/02/intense-raids-kill-dozens-syria-idlib-170207131816939.html,Intense raids kill dozens in Syria's Idlib,Civilians killed and multi-storey buildings collapse in some of the heaviest strikes to hit rebel-held city in months.,"Dozens of people, including civilians, have been killed in air strikes on the rebel-held Syrian city of Idlib, according to several sources, in some of the most ferocious raids there in months. The Syrian Observatory for Human Rights said on Tuesday that at least 26 people were killed and casualties were expected to rise as rescue workers searched for bodies under the rubble. ""Ten civilians, mostly women, are among the dead,"" Rami Abdel Rahman, head of the UK-based monitoring group tracking development's in Syria's conflict, told AFP news agency. READ MORE: Idlib's rebel split - A crossroads for Syrian opposition Abdel Rahman said the raids were probably carried out by Russian fighter jets - allied with Syria's government - or by a US-backed air coalition. The strikes also wounded scores of people and levelled several multi-storey buildings in residential areas of the northwestern city, according to witnesses, who told Reuters news agency that the extent of the damage and the debris bore the hallmarks of a Russian attack. But Russia's defence ministry said later on Tuesday media reports that its planes had bombed Idlib were not true, Interfax news agency reported. The Civil Defence, a volunteer rescue group operating in rebel-held areas, gave a different death toll, saying 15 bodies were pulled from the rubble and that 30 wounded people were taken for treatment. READ MORE: Syria hanged 13,000 in notorious prison, says Amnesty Video footage by activists on social media showed civilians, including young children, being treated in a main city hospital where the injured had been taken for treatment. ""We are still pulling bodies from the rubble,"" Issam al Idlibi, a volunteer civil defence worker, told Reuters. Russian planes have targeted a number of towns and villages in the area since entering the Syrian conflict in September 2015 to back ally President Bashar al-Assad. Activists and residents said there had been a reduction of Russian strikes in Idlib province since a Turkish-Russian brokered cessation of hostilities late December. Planes from the US-led coalition have launched a number of attacks in the rural province, a major stronghold of fighters, many of them formerly affiliated to al-Qaeda. Idlib's population has been swollen by thousands of Syrian fighters and their families evacuated from villages and towns around Damascus and Aleppo city, which was retaken by the government in recent months. Source:-News agencies", -330,2017/2/7,http://www.aljazeera.com/news/2017/02/somalia-presidential-vote-170207084706801.html,Somalia beefs up security ahead of presidential vote,Mogadishu and surrounding areas are on lockdown after increase in al-Shabab attacks in lead-up to election.,"Somalia's capital is on lockdown a day before the parliament meets to elect a new president, with ongoing security concerns and warnings of famine expected to top the agenda for the incoming administration.- Roads in Mogadishu were closed, businesses asked to shut, and schools and universities gave students a two-day break. In the run-up to the election, al-Shabab fighters have stepped up their attacks against government installations and- hotels in the capital .- Bishar Abshir, Mogadishu police chief, told Al Jazeera that security forces were working to ensure that the election is concluded peacefully. ""We appeal to the public to be patient and cooperate with us as we deter the enemies of peace from carrying out attacks,"" he told Al Jazeera. Al-Shabab, which aims -to topple the country's UN-backed government,- has carried out- hundreds of attacks -in Somalia.- INTERACTIVE: Al-Shabab attacks in Somalia (2006-2017) The presidential election had been due to take place in August, four years after the previous vote in which just 135 clan elders chose MPs who then voted for the country's leader. But political infighting and insecurity, mainly due to al-Shabab, which controls swaths of countryside and strikes at will in Mogadishu, saw the plan ditched for a limited vote running months behind schedule. The troubled Horn of Africa nation, which has not had an effective central government in three decades, had been promised a one-person, one-vote election in 2016. Elections instead began in October with an electoral college system that excluded ordinary citizens and instead involved 14,025 delegates voting for candidates for both parliament and a new upper house. President Hassan Sheikh Mohamud of the conservative Peace and Development Party is seeking a second term after more than four years in office, during which he has faced criticism from the public and western donors about corruption. Prime Minister Omar Abdirashid Ali Sharmarke, a former diplomat, and former president Sharif Sheikh Ahmed are also among the 24 candidates registered for the election. About a third of MPs are loyal to the president's party. While this gives Mohamud an advantage in the race, it is not enough to guarantee him victory. The elections have been marred by widespread allegations of vote-buying and intimidation. In a report on Tuesday, Somalia-based anti-corruption watchdog Marqaati said the elections ""were rife with corruption"". READ MORE: Al-Shabab attack at Mogadishu hotel 'kills 28' While falling well short of the direct election that was promised, the process is more democratic than in the past and is seen as a step towards universal suffrage, now hoped for in 2020. Wednesday's voting will see members of the 275-seat parliament and 54 senators cast ballots inside a hangar within the heavily-guarded airport. No candidate is expected to get the two-thirds majority needed for a first-round win, with two further rounds permitted before a winner is declared. In the absence of political parties, clan remains the organising principle of Somali politics. The overthrow of president Siad Barre's military regime in 1991 ushered in decades of anarchy and conflict in a country deeply divided along clan lines. The clan rivalries and lawlessness provided fertile ground for al-Shabab to take hold and seize territory, frustrating efforts to set up a central administration. Al-Shabab has been in decline since 2011, but still launches regular, deadly attacks against government, military and civilian targets in the capital Mogadishu and elsewhere. Security and overcoming Somalia's adversarial and divisive politics will top the agenda for whoever wins the vote, as will dealing with a growing humanitarian crisis. The United Nations warned last week of ""possible famine"" in Somalia as a severe drought has pushed nearly three million people to the edge of starvation. After two failed rain seasons, aid workers fear a repeat of a 2010-11 drought which left more than 250,000 dead. ""The levels of suffering in the country, triggered by protracted conflict, seasonal shocks and outbreaks of disease, are typically hard to bear, but the impact of this drought represents a threat of a different scale and magnitude,"" the UN's office for humanitarian affairs said in a statement last week. Source:-Al Jazeera and news agencies", -331,2017/2/7,http://www.aljazeera.com/news/2017/02/ayatollah-khamenei-donald-trump-170207114954347.html,Ayatollah Khamenei: Donald Trump shows real face of US,Supreme leader hits back at US president over his travel ban and threats towards Iran.,"Iranian Supreme Leader Ayatollah Ali Khamenei has said that he was grateful to US President Donald Trump for revealing ""the real face of America"". ""We are thankful to this gentleman ... he showed the real face of America,"" Khamenei said in a speech to military officers in Tehran on Tuesday. ""[It was] what we have said for more than 30 years - that there is political, economic, moral and social corruption in the ruling system of the US. This gentleman came and brought it out into the open in the election and after the election."" He referred to the case of a young Iranian boy who was pictured in handcuffs at a US airport following Trump's ban on visas from Iran, among other countries. ""By what he does - handcuffing a five-year-old child - he shows the true meaning of American human rights,"" Khamenei said. Iran is one of the seven predominantly Muslim countries that the Trump administration tried to ban from entering the US. The related executive order last week was frozen by the US judiciary and an appeals court is to hear Trump's latest arguments to reinstate the ban. Khamenei-also responded to Trump's tweet of February 3, when the US president said: ""Iran is playing with fire - they don't appreciate how 'kind' President Obama was to them."" He ridiculed the idea of being grateful to former President Barack Obama, saying he was the one who placed ""paralysing sanctions"" on Iran and helped create the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group through his destabilising actions in Iraq and Syria. READ MORE: Donald Trump clashes with courts over immigration ban ""This is the first time the supreme leader, the highest authority in the republic, has directly responded to Donald Trump's comments and threats towards Iran [with] very strong words,"" Al Jazeera's Dorsa Jabbari, reporting from Tehran, said. Iranian President Hassan Rouhani earlier criticised Trump's statements regarding his country's nuclear deal with Washington and other major powers. He called the nuclear agreement ""a win-win agreement"", in response to Trump, who said it was ""the worst deal in history"". ""The nuclear talks should be used as an example for other talks for stability and security in the region,"" he said. World powers and Iran reached a landmark deal in July 2015 to curb the country's nuclear programme in exchange for sanctions relief. Foreign Minister Mohammad Javad Zarif said that with Trump in the White House, Tehran faced ""difficult days ahead"" on the nuclear deal. ""I believe Trump may try to renegotiate"" the deal, but ""clearly, neither Iran, nor the Europeans or the international community will accept new negotiations,"" Zarif told Ettelaat newspaper in an interview published on Tuesday. Source:-Al Jazeera and news agencies", -332,2017/2/7,http://www.aljazeera.com/indepth/opinion/2017/02/ukraine-testing-ground-kremlin-trump-dialogue-170206201010981.html,,,"The first Grad multiple launch rockets were fired from areas under Kremlin-backed militant control hit Avdiivka in eastern Ukraine only a day after US President Donald Trump held his first official phone call with his Russian counterpart Vladimir Putin. While some viewed the timing of this attack as a chilling confirmation of the new United States administration's willingness to make deals with Moscow at Ukraine's expense, neither the motives behind the sudden escalation, nor-its-effect on the current situation are that straightforward. There were certainly grounds for concern and the feeling of-angst, only strengthened when a Kremlin spokesperson said that the recent escalation in Ukraine proved the need for ""dialogue"" between the US and Russia.- It is implementation of the Minsk Agreement that is required, not ""dialogue"". This, however, includes a ceasefire, withdrawal of all heavy weapons-and, eventually, the securing of the Russian-Ukrainian border. But Russia is actively trying get the Minsk-linked sanctions lifted without fulfilling the commitments it made. The fears of some Ukrainians that the new US administration may be amenable to make deals with Russia that bypass the conditions of the Minsk Agreement are not unfounded. Even if we ignore the US intelligence report demonstrating that Russia directly interfered in the US elections to get Trump elected, Trump's own statements have given Ukraine reason to fear for the future of US support to Ukraine and its commitment to the sanctions. Since Russia's invasion and annexation of Crimea, Trump has on numerous occasions praised Putin, even calling Russia's aggression against Ukraine ""smart"". During the election campaign, he stated that they ""would be looking into"" recognising Crimea as a Russian territory and lifting sanctions on Moscow. He has even dismissed-Russia's involvement in the downing of the Malaysian MH17 airliner over militant-controlled territory in July 2014 despite compelling evidence. It was after that disaster that hard-hitting sanctions were imposed on Russia and these sanctions were tied to Moscow's compliance with the Minsk Agreement. Trump's people have been actively meeting with Russians and fuelling Moscow's hopes that sanctions will be lifted. There is also an ongoing campaign-to push the claim that sanctions ""don't work"" and that Ukraine may have to ""give up""-Crimea in exchange for some kind of a peace deal in Eastern Ukraine. The sanctions, including those over Crimea, are hurting Russia hard and the Kremlin needs them lifted. But if it hoped to steer ""dialogue"" on to such deals by escalating the conflict, its plan may have backfired. Avdiivka, a strategically important city under Ukrainian control, came under attack on January 28. A Bellingcat report has confirmed reports and videos indicating that the intensive shelling of the city was carried out from residential parts of militant-controlled Donetsk. Moscow's attempt to blame Ukraine for this escalation was largely rejected by the international community, since the scale of the attack, and the use of Grad missiles and other heavy artillery makes it inconceivable that this attack was carried out without Moscow's approval. Andrei Piontkovsky, a Russian political analyst, suggested that Russian military personnel may have been in charge of the operation. Western journalists who visited Avdiivka have also reported evidence of ""a psychological warfare operation of a sophistication that suggested Russian involvement"".-Ukrainian soldiers, for example, were bombarded with text messages saying: ""You're just meat to your commanders."" Another reason for assuming Russian military involvement in this attack is that the the Organization for Security and Co-operation in Europe (OSCE) officials in Vienna were warned of a likely escalation on January 26. Daniel Baer, the former US ambassador to the OSCE, recently pointed out that even if fighting is on both sides, this is still a situation where ""Ukraine is the victim and Russia the aggressor"". Baer, however, was removed on January 20, and it remains to be seen whether the new US Mission to the OSCE will continue to take a firm stand on this issue. This is, after all, the critical question. Whether or not the order came from the Kremlin directly, Ukraine is in no doubt that Moscow's primary aim remains the same - to retain its grip on Ukraine through the debilitating and destabilising effect of the conflict in Eastern Ukraine. The so-called Donetsk and Luhansk People's Republics are entirely artificial creations, propped by Russian money, weapons and fighters. Real implementation of the Minsk Agreement would almost certainly lead to their collapse. The militants themselves have acknowledged having no interest in the Minsk Agreement working. READ MORE: Losing everything in Avdiivka Russia knows this and does not want to relinquish its control over Ukraine. The Russian-backed militants continue to delay releasing hostages and violate ceasefires. The White House was very slow in reacting to the new escalation and during his phone conversation with Ukrainian President Petro Poroshenko, Trump only mentioned, rather oddly, that the US is willing to help ""restore peace along the border"". Nonetheless Nikki Haley, the new US Ambassador to the UN, has come out with a clear statement indicating that there is no change in policy, either on Crimea or on the Minsk agreements. This leaves Russia with the option of trying to discredit the Minsk agreements inside Ukraine or to prove that Kiev is at fault. One motive for the carnage and suffering caused in Avdiivka may have been to convince Ukrainians - and perhaps the US - that the Minsk accords are not working and should be abandoned. If the Trump administration is hoping to come to some kind of arrangement with Putin, it would probably want to avoid doing so by lifting sanctions when agreement conditions have not been met, and when other countries are standing by them. There are certainly voices of disgruntlement inside Ukraine, but there is understanding that the removal of sanctions against Russia will encourage its aggression further. As political commentator Serhiy Taran warned, if Ukraine turns away from the Minsk Agreement, there will be no western leverage to put pressure on Russia. Moscow may, however, have made one other miscalculation. In 2014, Ukraine was in no state to defend itself properly after four years of the Viktor Yanukovych regime. During the latest offensive, the country showed its strength. There was extraordinarily efficient cooperation between the military, government agencies and civilian organisations ensuring that people in the besieged city cut off from electricity and heating had somewhere to go. In other cities, hundreds waited patiently to donate blood. Ukraine is not broken and will defend itself. The latest offensive has, nonetheless, demonstrated how cynically Moscow will use weapons of death and destruction for its own questionable gains. This is a lesson the new Trump administration would do well to heed before attempting any deals with Putin. Halya Coynash is a journalist and member of the Kharkiv Human Rights Group. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -333,2017/2/7,http://www.aljazeera.com/news/2017/02/winter-storm-seattle-170207091553913.html,Winter storm hits northwestern US,"Heavy snow blankets the Pacific Northwest, knocking out power, grounding flights and forcing schools to close.","Wet and wintry weather has caused widespread disruption across the Pacific Northwest of the United States, with-the heaviest snowfall to hit the area in several years. The storm started on Sunday night and made for a nasty Monday morning commute across the greater Seattle area. The snowstorm that blanketed Seattle and Western Washington State, causing huge travel delays and major power cuts. Dozens of schools were forced to close, much to the delight of many of the pupils. Dozens of flights were cancelled at Seattle-Tacoma Airport-due to snow and ice and more than 90,000 customers found themselves without electricity at some stage. Snow accumulations amounted to 36cm in places. It is still snowing and forecasters predict as much as 75cm of snow could fall in the Cascade Mountains by the end of Tuesday. Snow is actually quite rare in Seattle because it is so close to the relatively warm waters of the Pacific Ocean. - Portland was also badly affected, and there were concerns that the city would be hit by a major snowstorm. Those concerns did not materialise because temperatures remained high enough above freezing. In the event, Portland, which is a very wet place at the best of times, had more than half a month's worth of rain in just 24 hours. Some 52mm fell on Sunday, making a total of 80mm in three days. The February average is 80mm. It was even wetter in the state capital, Salem, with a downpour of 64mm on Sunday, and 122mm in three days. That easily surpassed the February average of 116mm. Many rivers in the western side of the state have been pushed close to flood levels. More rain is forecast for much of this week so flooding is possible before drier weather arrives this weekend. Source:-Al Jazeera News", -334,2017/2/7,http://www.aljazeera.com/indepth/features/2017/02/israeli-settlement-law-violates-rights-dignity-170207103454876.html,Israeli settlement law 'violates rights and dignity' Nigel Wilson,"Legislation to retroactively legalise settler homes contravenes international humanitarian law, critics say. By","Ramallah - Palestinian politicians and human rights groups are warning that a new law passed by the Israeli parliament violates international laws and is a step towards Israel annexing the occupied West Bank. The so-called Regulation Law, passed on Monday night, allows for the retroactive legalisation of about 4,000 homes built by Jewish settlers on privately owned Palestinian land. ""The law sets a new legal framework that implements the Israeli political interest and puts it above international humanitarian law,""-Suhad Bishara, a lawyer at the Adalah legal centre for Arab minority rights in Israel, told Al Jazeera. The law violates both the right to property and the right to dignity, Bishara said. ""The most obvious case here is that it violates property rights, because it basically confiscates private property for the sake of the illegal settlers,"" she said. ""But we cannot avoid the aspect of dignity here, and humiliation, and no value at all for the rights of the Palestinian owners of the land."" READ MORE: Israel's settlement bill 'big step towards annexation' Before the bill was passed, Israel's attorney general said that it was unconstitutional and that he would not be able to defend it. Along with other rights groups, Adalah is set to file a petition against the law to Israel's Supreme Court later this week, as well as asking for a temporary order not to implement the law until Israel's highest court gives a final decision. According to the Israeli rights group Peace Now, the law will allow for the expropriation of land in more than 50 settlements and outposts. There are 16 cases where demolition orders have already been issued by Israeli authorities, including land in the settlements of Ofra, Eli and Beit El, among others. As a result of the new law, the settlers in these illegal outposts would be allowed to remain in their homes. Palestinian lawmakers in the Knesset denounced the law, calling it a direct challenge to the international community in the wake of December's United Nations Security Council resolution that called for an end to settlement building. ""From the political point of view and from the legal point of view, this law should not have been legislated. This is a law that is meant to implement the creeping annexation of Palestinian occupied lands to Israel,"" Aida Touma-Suleiman, an MK with the Arab Joint List, told Al Jazeera. ""This is a law that is challenging the international community. It's arrogant behaviour by this government, who are not willing to pay attention to what the international community is [saying]. It is about time to hold them responsible for the decisions and laws they are legislating."" Gilad Grossman, a spokesperson for the Israeli human rights NGO Yesh Din, said that the law has stripped Palestinian landowners of any chance to reclaim their land. ""What it means is that Palestinian landowners can't get their land back, whether they want to or not,"" he said. READ MORE: Palestinians call Israel settlement expansion a 'war crime' As a result of the new law, Palestinian landowners only have the option of financial compensation, Grossman added - ""to go through the system of the people who stole your land and to ask for them to give you some money, as much as they decide to give you, on the conditions they decide with the proof they demand"". The ownership of the land itself will remain in the hands of the Palestinian landowners, although they will not be able to access or use it. ""It's a very cynical law,"" Grossman noted. ""It basically means that they own the land and can get it back in the future, if there will be some kind of political agreement and decision regarding the West Bank. It was stolen and now it's being leased against their will basically, and there's nothing they can do about it."" On Tuesday morning, Israel's high court ruled that 17 buildings in the illegal outpost of Tapuach Maarav would have to be demolished by 2018. It is not clear how the new law will affect that ruling. Source:-Al Jazeera", -335,2017/2/7,http://www.aljazeera.com/programmes/rewind/2017/02/revisiting-yahya-jammeh-170206072704396.html,Revisiting Yahya Jammeh,"In 2007, we travelled to The Gambia to meet then-President Yahya Jammeh, who claimed he could personally cure Aids.","Ten years ago, in November 2006, Al Jazeera English was launched. To mark that anniversary, we've created REWIND, which updates some of the channel's most memorable and award-winning documentaries of the past decade. We find out what happened to some of the characters in those films and ask how the stories have developed in the years since our cameras left. In January 2017, The Gambia's president, Yahya Jammeh, stepped down after briefly contesting the results of an election which had brought to an end his 22 years in power. But Jammeh was not a man who would relinquish power easily. It took international condemnation and the threat of armed forces from Senegal, backed by regional governments, before he would step aside in favour of newly elected Adama Barrow. Back in 2007, Al Jazeera's Andrew Simmons travelled to The Gambia to meet then-President Yahya Jammeh and found himself spending time with a charismatic leader who believed he could personally cure asthma and even Aids. To update the film,-REWIND spoke to Al Jazeera correspondent Nicolas Haque about the curious staying power of the country's former dictator. ""This idea that he could heal HIV and Aids, this disease that affects so many people, was seen in Gambia as a way for him to enforce his position of power,"" Haque said. Source:-Al Jazeera News", -336,2017/2/7,http://www.aljazeera.com/indepth/inpictures/2017/01/fighting-flames-isil-iraq-170121081713478.html,"'In our village, ISIL executed hundreds of people '",,"Qayyarah, Iraq - Six months after ISIL fighters torched oil wells in Qayyarah, Iraqi fire crews are still battling the flames.-Like a scene from a Hollywood blockbuster, a vast and pervasive darkness hangs over Qayyarah, as toxic black smoke billows from the burning wells.- Oil has been a key source of income for the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group, making Qayyarah an important strategic town. Its recapture last August by Iraqi forces was a significant gain in their advance towards Mosul. Before fleeing, ISIL fighters used explosives to torch several oil wells, initially as a defensive measure to thwart coalition air strikes. But as the group began losing ground to Iraqi forces, they adopted a scorched-earth strategy, destroying as many oil wells as possible. The operation to extinguish the fires, now in its fifth month, is proving to be a difficult, dangerous and time-consuming task. Teams of firefighters, machine operators, mechanics, engineers and safety experts have come from across the country to join the effort - but regardless of when the flames are extinguished, the human and environmental costs will probably linger for years.", -337,2017/2/7,http://www.aljazeera.com/indepth/opinion/2017/02/mistakes-trump-repeat-afghanistan-170205115216293.html,,,"Kabul has joined Moscow, Tel Aviv and a few other capitals in welcoming Donald Trump's presidential administration. Although Trump has not yet elaborated on his policy towards Afghanistan, his harsh and blunt criticisms of Washington's ills, of the-opportunistic and duplicitous US-allies and of the US' failure to win wars resonate with many Afghans. Trump is the fifth US president to deal with Afghanistan as a central foreign policy issue and national security concern. For his four predecessors - Jimmy Carter, Ronald Reagan, George W Bush and Barack Obama - Afghanistan was an inescapable crisis and an inherited challenge. The Soviet invasion of Afghanistan and the terrorist attacks of 9/11 made the country one of Washington's foreign policy priorities for nearly four decades. Trump has now inherited a 16-year-old conflict with direct US military involvement and a political quagmire within a regime it helped install. Kabul is paralysed by a stalled political process, rampant corruption, a resilient terrorist group and Pakistan's stubborn obsession with making Afghanistan its strategic depth. On his first day of his presidency, Trump encouraged US soldiers based in Afghanistan, saying, ""Keep fighting. We're going to win. We're going to win.""-As a hyper self-confident businessman with impeccable corporate skill, to win in Afghanistan where Obama failed, Trump needs to know that he cannot go about business as usual. In the coming weeks, Trump and his national security team will be reading and listening to many assessments and proposals on the way forward in Afghanistan. The new US administration must begin by critically examining Washington's assumptions, approaches and partners in Afghanistan in a broader regional and global context. One prevailing assumption in Washington is the perception of the US' misplaced priority in promoting ""nation-building"" in Afghanistan, compounded by rampant Afghan corruption. OPINION: No consensus in Afghanistan on how to deal with Taliban Both Obama and Trump have criticised US involvement in ""nation-building"" in Afghanistan and promised to end it. However, neither of them defined or clarified their understanding of ""nation-building"". This confusion has been exacerbated by Washington's simplistic and partial understanding of the root causes of corruption in Afghanistan and its denial of western entities having a role in it. The massive waste, incompetence, corruption, hypocrisy, and unaccountability within western entities are actually significantly under-reported. The recently released report on the massive $125bn waste in the Pentagon, or the leaked information on the monthly payment of $150,000 by Ashraf Ghani's election team to influence Washington's view on fraud during the 2014 Afghan presidential election, show that corruption is not exclusively an oriental sin. To paraphrase former US Sectary of Defense Donald Rumsfeld, the mission no longer determines the coalition in Afghanistan; instead, the many coalition members determine the mission, which results in incoherence and contradictions. - Afghanistan is the place where Trump's criticism of NATO and European performance are valid. The US has two types of European and NATO partners in Afghanistan: the reluctant partners and the dubious ones. The former are some European allies, who would literally not fight after tea time due to the restriction on their combat role; the latter are those who systematically undermine US objectives by legitimising the Taliban in the guise of peace talks and shielding Pakistan's detrimental policies in Afghanistan. To paraphrase former US Sectary of Defense Donald Rumsfeld, the mission no longer determines the coalition in Afghanistan; instead, the many coalition members determine the mission, which has resulted in incoherence and contradictions. Regional policy and the choice of regional partners is another area where Washington made a huge mistake. US policies have been primarily Pakistan-centric. As early as 2003, Pakistan's duplicitous role was recognised by US intelligence and diplomatic stations in the region, but Washington chose to ignore their warnings. Despite growing evidence of Pakistan's systematic support to various terrorist groups and its nuclear proliferation, Pakistan was recognised as US' major non-NATO ally in 2004 and has received more than $30bn of military and economic assistance since 2002 (PDF). On the other hand, US' natural ally in the region, India, has been constantly discouraged from assuming an active role in stabilising Afghanistan. Washington's wrong assumptions about Afghanistan and its unreliable Afghan partners compounded its other misfortune. Washington allowed British colonial thinking, Pakistan's hegemonic agenda and a number of Afghan-Americans' personal and ethnic ambitions to manipulate Washington's mindset and shape US policies and strategies in Afghanistan. These intellectual manipulations and misunderstandings resulted in three principal political and institutional errors. One is imposing one of the world's most rigid centralised political orders on one of the world's most diverse societies. This was followed by the institutionalisation of patronage politics and of political domination enjoyed by self-proclaimed representatives of one ethnic group at the expense of the consolidation of democratic politics. Washington's ambiguous relations with the Taliban was the third mistake. Despite Taliban's consistent actions and rhetoric confirming they are an integral part of radical Islamist movements, the US diplomats and Obama administration treated the Taliban as a-misguided-indigenous rural Pashtun group. Unlike Syria which has become a land of no options, the post-Taliban political structure in Afghanistan still enjoys broad domestic, regional and international support, including bipartisan backing in the US. The new US administration has to strengthen the principal foundation of this architecture: democratic and inclusive politics, regional consensus, and long-term international support, including US commitment to the Afghanistan-US Bilateral Security Agreement. This has to be reinforced by addressing the wrong assumptions of the previous administrations, confronting Afghan and regional spoilers and fixing incompetencies in Washington and within the coalition. Obama's Afghan policy was premised on the idea of ""peace through appeasement"". But the Afghan war can only be won by ""peace through strength"", which can only be achieved through a functioning democratic and sovereign political order in Kabul. Afghanistan is the place where Islamic radicalism was born and nurtured by the West, Saudi Arabia, Pakistan and even Maoist China, in their ideological and geostrategic competition with the Soviet Union (PDF). Although the US succeeded in defeating its arch communist rival in Afghanistan in the 1980s, it has been struggling to defeat its new global enemy: terrorist groups. Its victory in Afghanistan will also affect the global struggle against this threat, both symbolically and strategically. Davood Moradian is the director-general of the Afghan Institute for Strategic Studies and former chief of programmes in President Hamid Karzai's office and chief policy adviser to Afghanistan's ministry of foreign affairs. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -338,2017/2/7,http://www.aljazeera.com/indepth/features/2017/01/coercion-violence-threats-torture-israeli-style-170129092739964.html,Israeli torture of Palestinian children 'institutional' Ben White,"Confessions by Palestinians who have been tortured are regularly accepted by Israeli judges, rights groups say. By","- Coercion, violence and threats: Torture, Israeli-style A recent-article published by the Israeli newspaper Haaretz has confirmed the extent to which Shin Bet interrogators subject their prisoners to torture. Methods include slapping the head ""to hurt sensitive organs like the nose, ears, brow and lips"", forcing a handcuffed individual to squat against a wall for long periods of time, and placing the suspect bent backwards over a chair with his arms and legs cuffed. The interrogators' accounts echo what Palestinians and Israeli human rights groups-have long documented. Prisoners' rights NGO Addameer said that such practices ""are known to be routinely and systematically used against Palestinian detainees"". Other torture methods used against Palestinians include sleep deprivation and threats against family members, an Addameer spokesperson told Al Jazeera. READ MORE: Palestinians forever changed by Israeli torture Rachel Stroumsa, the executive director of the Public Committee Against Torture in Israel (PCATI), said that her NGO was aware of hundreds of complaints and allegations along these lines. In addition to interrogation being used to gain information about future acts, ""our experience is that torture is also used to obtain confessions regarding past acts"", Stroumsa told Al Jazeera. In its annual-report-last year, Amnesty International found that Israeli forces and Shin Bet personnel had ""tortured and otherwise ill-treated Palestinian detainees, including children, particularly during arrest and interrogation"", with methods including ""beating with batons, slapping, throttling, prolonged shackling, stress positions, sleep deprivation and threats"". A representative of Defence for Children International - Palestine told Al Jazeera that the group's research had shown that almost two-thirds of Palestinian children detained in the occupied West Bank by Israeli forces had endured physical violence after their arrest. Interrogators use position abuse, threats and isolation to coerce confessions from some children, and Israeli military court judges seldom exclude these confessions. Ayed Abu Qtaish, accountability programme director at Defence for Children International - Palestine ""Palestinian children are regularly subjected to coercive and violent interrogation techniques intended to extract confessions,"" said Ayed Abu Qtaish, the group's accountability programme director. ""Interrogators use position abuse, threats and isolation to coerce confessions from some children, and Israeli military court judges seldom exclude these confessions."" Torture and ill-treatment are so rife, human rights campaigners say, that convictions of Palestinians for ""security offences"" are fundamentally unreliable, not least because the abuse is part of a wider lack of due process. According to one study, as many as 91 percent of Palestinian detainees interrogated by the Shin Bet in the occupied West Bank-are held incommunicado for either part or all of their interrogation. Stroumsa says this practice is ""an enabling element for torture"". In the military court system, which has a 99 percent conviction rate, Palestinians can be held for 60 days without access to a lawyer - compared with-the United States, where the average length of interrogations producing false confessions is 16 hours. ""As Palestinian children continue to experience systematic ill-treatment and denial of due process rights, it becomes evident that military courts have no interest in justice,"" Abu Qtaish said. In addition to the torture and lack of access to counsel, Palestinians are asked to sign confession sheets in Hebrew, which they often do not understand. All of this ""creates a coercive environment which results in confessions made under duress"", Addameer noted.- A recent example is the case of Mohammad el-Halabi, a Gaza-based employee of World Vision who was charged by Israel with funnelling money to Hamas. Halabi, who is being tried in a Beer Sheva civilian court, has protested his innocence, saying that he was tortured by his interrogators. These claims were also made by his lawyers, who Halabi was prevented from seeing for three weeks after his arrest. The new Haaretz report draws attention to a topic that is not often in the limelight. In November 2015, a video of the interrogation of 13-year-old Ahmad Manasra sparked outrage, while Israel's appearance at the United Nations Committee Against Torture last May - which referred to ""coerced evidence"" being used in courts - also gained coverage. But many other events fly under the radar. An academic study published in November 2015 in a peer-reviewed medical journal revealed dozens of cases of sexual torture and ill-treatment of Palestinian prisoners detained by Israel. READ MORE: Report details 'inhuman' treatment in Israeli jail Activists on the ground say that an international spotlight on Israel's torture practices is urgently needed, not least because of the institutionalised nature of the problem.- Although an Israeli Supreme Court ruling in 1999 prohibited ""physical means"" of interrogation, Shin Bet agents were effectively given impunity for torture and ill-treatment by the so-called ""necessity defence"" or "" ticking bomb"" exemption. According to anti-torture campaigners, this exemption has served as a green light for torture ever since. Since 2001, hundreds of formal complaints have been made against Shin Bet interrogators, but not a single criminal investigation has been opened. ""I think international pressure is essential, and has on some issues proven its efficacy,"" Stroumsa said. ""It is also the duty of the international community to speak out on abuses, given the massive economic and political support for the State of Israel from abroad."" Source:-Al Jazeera", -339,2017/2/7,http://www.aljazeera.com/news/2017/02/geert-wilders-tweets-fake-picture-rival-170207041909646.html,Geert Wilders tweets fake picture of rival,Altered picture purports to show party leader Alexander Pechtold at rally with banners calling for rule of Islamic law.,"Dutch far-right MP Geert Wilders, known for his comments attacking Islam and Muslims, has triggered a fight over fake news, after posting a Twitter message showing a digitally altered picture of another party leader at a rally. Some five weeks before key elections in The Netherlands, Wilders on Monday posted the fake picture of D66 leader Alexander Pechtold supposedly at a rally with Muslims holding up signs reading: ""Islam will conquer Europe"" and ""Shariah for The Netherlands"", referring to Islamic law. Wilders' anti-Islam and anti-immigrant platform has helped propel his Freedom Party (PVV) to the top of the opinion polls in recent months in advance of the March 15 vote. In his tweet, he accused Pechtold, who heads the pro-European, social-liberal D66 party of ""demonstrating with Hamas terrorists"". D66 wil Amsterdam afsplitsen als de verkiezingsuitslag tegenvalt. Pechtold demonstreert met Hamas-terroristen. Is dit de volgende stap? pic.twitter.com/U07jHfQmyh D66 is one of 28 parties contesting the election and is currently trailing fifth in the polls. Wilders' taunt prompted an angry reaction from Pechtold. ""Usually, I laugh at Photoshopped pictures on the internet. But not this time,"" he wrote on his Facebook page. ""Not because I can't stand up for myself ... but because it gives people false impressions."" Last year, Pechtold sued a PVV supporter over photos that sparked death threats against him. ""In these times of fake news and alternative facts, we can't just ignore the consequences that such a fake image can have,"" he said. ""I draw the line today."" The AFP news agency reported that other politicians also sided with Pechtold. Jesse Klaver, leader of GroenLinks (Green Left), called Wilders' Tweet ""low and irresponsible"". ""Those who tweet fake news about others, tarnish their own credibility."" READ MORE: Far-right MP Geert Wilders found guilty of hate speech Deputy Prime Minister Lodewijk Asscher, leader of the Labour party, simply retweeted Wilders tweet with the message ""delete your account"". But Wilders hit back against Pechtold on Twitter, saying: ""Stop complaining, drama queen. You have demonstrated standing among Palestinian flags, with friends of Hamas. #hypocrite"". The vote in The Netherlands will kick off a year of elections in Europe with ballots also due in France and Germany. They will be closely watched amid the rise of populist and far-right parties on the continent. Source:-AFP news agency", -340,2017/2/7,http://www.aljazeera.com/news/2017/02/yemen-yakla-civilians-killed-170207043727800.html,Yakla residents speak of US raid that killed civilians,"Locals say a US raid in Bayda province last month killed 16 civilians, including women and children.","Residents of Yakla, an impoverished Yemeni town that was targeted last month in the first US military raid in the country authorised by President Donald Trump, have said more than a dozen civilians were killed in the botched operation. Locals told Al Jazeera that at least-16 civilians, including women and children, were killed in the raid in Bayda province that also resulted in the death of one US commando and injured three others. The Pentagon said the raid, which included-helicopter gunships and armed Reaper drones,-targeted al-Qaeda leaders. But local journalist Mujahid al-Selalee said Abdulraouf al-Dhahab,-a tribal leader whose house was attacked in the raid,-had repeatedly denied being a member of the armed group.- ""He [Dhahab] made clear on numerous occasions that he has no ties with al-Qaeda. He denied that over and over and we know that based on those living with him,"" Selalee told Al Jazeera. ""One of his brothers was associated with al-Qaeda, but he was killed by a drone a while back."" Al-Qaeda mourned Dhahab's death, calling him a ""holy warrior"", and vowed to avenge him and other slain fighters. In an initial statement, the Pentagon-said it killed 14 members of al-Qaeda, but soon released a second statement admitting that the raid ""likely"" killed civilians as well. Nora, the eight-year-old daughter of Anwar al-Awlaki, a US-born Yemeni preacher who was killed in a 2011 drone attack, was among the victims, family members said. Her grandfather, Nasser al-Awlaki, a former minister of agriculture, said:-""She was hit with a bullet in her neck and suffered for two hours"".- He told reporters that she was visiting her mother when the raid took place. READ MORE: Yemen - Who controls what Residents of the town said that several children were orphaned as a result of the attack. ""These kids, they lost their parents for no reason,"" a resident who requested not to be named told Al Jazeera. ""Their mother was killed and now I am taking care of these boys and girls."" Another resident said ""whole families were wiped out"" by the raid. Al-Qaeda has-exploited Yemen's two-year-civil war that pits Shia Houthi fighters against the Saudi-backed government of President Abd-Rabbu Mansour Hadi and has carried out assassinations and bombings, mostly in areas across the south. The US has stepped up its use of drone strikes in recent years and, while it acknowledges some of them, it generally declines to comment on specific attacks. Source:-Al Jazeera News", -341,2017/2/7,http://www.aljazeera.com/news/2017/02/israel-approves-controversial-settlement-expansion-bill-170206184729444.html,Israel approves controversial settlement expansion bill,"Palestinian leaders condemn bill that legalises nearly 4,000 settler homes, calling it 'theft' of Palestinian land. Amona demolitions","Israel has passed a controversial bill that retroactively legalises thousands of settler homes built on privately owned Palestinian land in the occupied West Bank, drawing widespread anger by Palestinian leaders and rights groups. The Israeli Knesset voted 60 to 52 to approve the contentious bill late on Monday- despite warnings by the government's top lawyer who had previously called it ""unconstitutional"". Minutes after the vote, the Palestine Liberation Organisation (PLO) slammed the new law as a means to ""legalise theft"" of Palestinian land. The law demonstrated ""the Israeli government's will to destroy any chances for a political solution,"" the PLO said in a statement, stressing that the ""Israeli settlement enterprise negates peace and the possibility of the two-state solution"". The so-called ""Regulation Bill"" applies to about 4,000 settlement homes in the West Bank for which settlers could prove ignorance that they had built on privately owned land and had received encouragement from the Israeli state to do so. The bill is seen as another step towards at least partial annexation of the West Bank, and could lead to a host of illegal settlements built on privately owned Palestinian land being legalised retroactively. Three Israeli NGOs - Peace Now, Yesh Din and the Association for Civil Rights in Israel - said they intend to petition the Supreme Court to cancel the law. ""This law will make theft an official Israeli policy by retroactively legalising illegal construction on private lands,"" said Anat Ben Nun, a spokesman for the -anti-settlement organisation-Peace Now. READ MORE: Israel's settlement bill 'big step towards annexation' International law considers all settlements to be illegal, but Israel distinguishes between those it sanctions and those it does not, dubbed outposts. The bill was a key demand for parts of Israeli Prime Minister Benjamin Netanyahu's right-wing cabinet, including the hardline Jewish Home party, which argues that-settlers would be able to live without fear of being driven from their homes - many of which they have lived in for years. The government's attorney general, however, has said that the bill was unconstitutional and would contradict Israel's legal obligations under international law. Israeli MK Tzipi Livni warned that it would lead Israeli soldiers to the International Criminal Court. The bill would apply to 53 other outposts and homes within existing settlements recognised by Israel built on Palestinian land, according to Peace Now. More than 3,800 homes would be ""legalised"", the NGO said. READ MORE: Palestinians decry Israel's settlement bill The parliamentary session before the final readings began on Monday afternoon but was adjourned a short while later after all opposition members withdrew their reservations. Dov Khenin of the Arab Joint List said the opposition would not cooperate with the bill's legislative process, accusing its proponents of acting counter to regulations. Though passed, the bill could still be challenged. Defence Minister Avigdor Lieberman said last week: ""The chance that it will be struck down by the Supreme Court is 100 percent."" Al Jazeera's Imran Khan, reporting from West Jerusalem, said -the Palestinian land owners could take their case to the Supreme Court as early as Tuesday. ""The Palestinian Authority says it has to see what happens next, and [will decide] whether they have to go to the ICC or the UN,"" he added. Last week, a few hundred residents of the Amona outpost in the West Bank were evicted after the Supreme Court ruled that their homes were built on private Palestinian land. In parliament on Monday, Shuli Mualem, of Jewish Home, dedicated the law to the people evicted from Amona. The lengthy Amona saga - including the evictions broadcast live on Israeli television - directly inspired the bill. Nickolay Mladenov, the United Nations envoy for the Middle East peace process,-said on Monday that he was ""concerned"" by the recent bill as it would ""enable the continued use of privately owned Palestinian land for Israeli settlements"". ""If adopted into law, it will have far-reaching legal consequences for Israel and greatly diminish the prospects for Arab-Israeli peace,"" he added. Bezalel Smotrich, of the Jewish Home party, who was one of the forces behind the legislation, thanked the American people for electing Donald Trump as president, ""without whom the law would have probably not passed"". The White House's immediate response was to refer to its statement last week that said the construction of new settlements ""may not be helpful"" in achieving Israeli-Palestinian peace. The state department later said: ""The Trump administration will withhold comment on the legislation until the relevant court ruling."" Since Trump's inauguration, Israel has announced more than 6,000 new homes in the West Bank, including East Jerusalem, seen as key parts of any future Palestinian state. While Trump's administration last week expressed reservations over Israel's settlement expansion, it also broke with previous administrations by saying settlements were not an obstacle to peace. ""President Trump hasn't been as strong on condemnation of settlements as previous US administrations,"" Al Jazeera's Khan said.- ""With this bill, Netanyahu is playing to his domestic audience ... supporters have been pushing him to go even further. He can simply turn around and say, 'I tried my hardest'."" Under the bill, Palestinian owners would be financially compensated by Israel, but could not sell their land. Source:-Al Jazeera and news agencies", -342,2017/2/7,http://www.aljazeera.com/news/2017/02/israeli-army-strikes-gaza-rocket-fired-170206195452300.html,Israeli strikes on Gaza Strip injure three Palestinians,Tank fire and air strikes leave at least three wounded as Israeli military attacks Hamas targets in the Gaza Strip.,"The Israeli army has attacked a number of Hamas targets in the Gaza Strip, wounding at least three people, according to Palestinian health officials. Israel's military said the strikes were in response to a rocket that was launched from the Palestinian territory into Israel earlier on Monday, causing no injuries. Two Hamas posts were targeted by Israeli tank fire, a Palestinian security source told the AFP news agency, while air strikes hit targets in northern Gaza. Later on Monday, at least five air strikes hit Gaza City, while one struck Khan Yunis in the south. READ MORE: Hamas on the two-state solution and a new charter Ashraf al-Qedra, a spokesman for the Gaza health ministry, told reporters that at least three civilians were lightly to moderately injured in the air strikes. Hamas spokesman Abdulatif al-Qanou said in an emailed press statement that his movement holds Israel responsible for the current military escalation on the Gaza Strip and it will be responsible for the consequences. ""The occupation is trying to export its internal corruption crisis to-the Gaza Strip. Therefore, the role of the Palestinian resistance is-to defend our people from this aggression,"" he said. READ MORE: Fatah and Hamas to form unity government There was no immediate claim of responsibility for the Palestinian rocket strike. It was the first time since October that Israel had officially reported that a rocket fired from Gaza had reached Israel. ""In response to the projectile fired towards southern Israeli communities earlier today, the air force targeted three Hamas posts in the northern Gaza Strip,"" the Israeli military said in a statement, cautioning it ""will not tolerate rocket fire towards civilians"". Source:-Al Jazeera and news agencies", -343,2017/2/7,http://www.aljazeera.com/news/2016/05/syria-civil-war-explained-160505084119966.html,Syria's Civil War Explained,The Syrian civil war is the deadliest conflict the 21st century has witnessed thus far. What caused the uprising? Foreign involvement The situation today,"Five years since the conflict began, more than 450,000 Syrians have been killed in the fighting, more than a million injured and over 12 million Syrians - half the country's prewar population - have been displaced from their homes. In 2011, what became known as the "" Arab Spring "" revolts toppled Tunisian President Zine El Abidine Ben Ali and Egyptian President Hosni Mubarak . That March, peaceful protests erupted in Syria as well, after 15 boys were detained and tortured for having written graffiti in support of the Arab Spring. One of the boys, 13-year-old Hamza al-Khateeb , was killed after having been brutally tortured. The Syrian government, led by President Bashar al-Assad, responded to the protests by killing hundreds of demonstrators and imprisoning many more. In July 2011, defectors from the military announced the formation of the Free Syrian Army, a rebel group aiming to overthrow the government, and Syria began to slide into civil war. Initially, lack of freedoms and economic woes fuelled resentment of the Syrian government, and public anger was inflamed by the harsh crackdown on protesters. Successful uprisings in Tunisia and Egypt energised and gave hope to Syrian pro-democracy activists. Many Islamist movements were also strongly opposed to the Assads' rule. In 1982, Bashar al-Assad's father, Hafez, ordered a military crackdown on the Muslim Brotherhood in Hama, which killed between 10,000-40,000 people and flattened much of the city. Even global warming has been claimed to have played a role in sparking the 2011 uprising. A severe drought plagued Syria from 2007-10, spurring as many as 1.5 million people to migrate from the countryside into cities, which exacerbated poverty and social unrest. Although the initial protests were mostly non-sectarian, armed conflict led to the emergence of starker sectarian divisions. Minority religious groups tend to support the Assad government, while the overwhelming majority of opposition fighters are Sunni Muslims. Although most Syrians are Sunni Muslims, Syria's security establishment has long been dominated by members of the Alawite sect, of which Assad is a member. The sectarian split is reflected among regional actors' stances as well. The governments of majority-Shia Iran and Iraq support Assad, as does Lebanon-based Hezbollah ; while Sunni-majority states including Turkey, Qatar, Saudi Arabia and others staunchly support the rebels. Foreign backing and open intervention have played a large role in Syria's civil war. An international coalition led by the United States has bombed-targets of the Islamic State of Iraq and the Levant ( ISIL , also known as ISIS) group since 2014. In September 2015, Russia launched a bombing campaign against what it referred to as ""terrorist groups"" in Syria, which included ISIL, as well as rebel groups backed by western states. Russia has also deployed military advisers to shore up Assad's defences. Several Arab states, along with Turkey, have provided weapons and materiel to rebel groups in Syria . Many of those fighting come from outside Syria. The ranks of ISIL include a sizeable number of fighters from around the world. Lebanese members of Hezbollah are fighting on the side of Assad, as are Iranian and Afghan fighters . Although the US has stated its opposition to the Assad government, it has hesitated to involve itself deeply in the conflict, even after the Assad government allegedly used chemical weapons in 2013, which US President Barack Obama had previously referred to as a ""red line"" that would prompt intervention. In October 2015, the US scrapped its controversial programme to train Syrian rebels, after it was revealed that it had spent $500m but only trained 60 fighters. On November 26, the Syrian army launched a military offensive on Aleppo . In less than a month, Syrian troops, with unfettered Russian air support, were able to recapture 90 percent of the eastern part of Aleppo. On December 13, the Syrian army claimed that 98 percent of east Aleppo was in the hands of Syrian government forces. Besides, Aleppo, the Syrian government currently controls the capital, Damascus, parts of southern Syria and Deir Az Zor, much of the area near the Syrian-Lebanese border, and the northwestern coastal region. Rebel groups, ISIL, and Kurdish forces control the rest of the country. Rebel groups continue to jockey against one another for power, and frequently fight each other. The Free Syrian Army has weakened as the war has progressed, while explicitly Islamist groups, such as the al-Nusra Front, that- has pledged allegiance to al-Qaeda , became empowered. Last July, al-Nusra front leader,-Abu Mohammed al-Jolani, announced his group's name has also changed to Jabhat Fateh al Sham, or The Front for liberation of al Sham. In 2013, ISIL- emerged in northern and eastern Syria after overrunning large portions of Iraq. The group quickly gained international notoriety for its brutal executions and its energetic use of social media. Meanwhile, Kurdish groups in northern Syria are seeking self-rule in areas under their control. This has alarmed Turkey's government, which fears its large native Kurdish population may grow more restive and demand greater autonomy as a result. Last August, Turkish troops and special forces, backed by the Free Syria Army, launched operation ""Euphrates Shield"" against ISIL to liberate the strategic Syrian city of Jarablus on the border with Turkey. Euphrates Shield operation is considered to be the first Turkish ground intervention in Syria since the Syrian crisis started in 2011. WATCH:- Unseen footage takes us into the lives of Syrian rebels. The Syrian war is creating profound effects far beyond the country's borders. Lebanon, Turkey, and Jordan are now housing large and growing numbers of Syrian refugees, many of whom have attempted to journey onwards to Europe in search of better conditions. Fighting has occasionally spilled over from Syria into Lebanon, contributing to the country's political polarisation. Several rounds of peace talks have failed to stop the fighting.- But with much of the country in ruins , millions of Syrians having fled abroad, and a population deeply traumatised by war, one thing is certain: Rebuilding Syria after the war ends will be a lengthy, extremely difficult process. Source:-Aljazeera", -344,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064830.htm,Brexit uncertainty? It's the luck of the Irish,,"When Eoghan Murphy entered the Irish parliament in 2011, he started writing memos to Irish Prime Minister Enda Kenny stressing the importance of a strong relationship with China. His views were heard, and soon there was a surge in bilateral trade and investments from financial firms like the leasing arms of ICBC, China Development Bank and Bank of Communications. Huge investments from firms such as Bank of China Aviation and ICBC Leasing made inroads into Dublin. ""From a personal point of view, I've seen our relationship very much a target of engagement in the past six years,"" Murphy says with a confident and satisfied smile, sitting in his spacious office at the heart of Dublin's Department of Finance. - Eoghan Murphy, Ireland's minister of state for financial services, believes Ireland could become the new gateway into the European market for Chinese companies after Brexit. Cecily Liu / China Daily Since becoming Ireland's Minister of State for Financial Services in May 2016, Murphy has aggressively pushed forward the China agenda. With his help, Dublin received a quota for China onshore-financial investment, lodged an application to join the China-led Asian Infrastructure Investment Bank and made highly publicized visits to Beijing, Shanghai and Hong Kong. Perhaps the timing of his ministerial appointment is fortunate: The Brexit referendum made Murphy realize Ireland could become the new gateway into the European market for Chinese firms, and lost no time in promoting this message. ""With so much uncertainty in the world at the moment, we see ourselves as a rock of certainty and stability,"" says Murphy. Citing Chinese President Xi Jinping's recent speech at the World Economic Forum in Davos on the benefits of globalization and free trade, Murphy stresses that Ireland's openness to foreign investment fits exactly into those values. ""We have a pro-business government, we want companies to come in and make investments to create jobs."" Those words bear great similarities to the 'open for business' message that Britain's former prime minister David Cameron and former chancellor George Osborne used to strengthen Chinese ties during their time in government. But with Cameron and Osborne having left office after the 2016 referendum vote, hints of the new British government, led by Theresa May, somewhat reducing its level of openness emerged when May announced new legal guidelines to closely scrutinize foreign investment in national security-related infrastructure. Within this context, perhaps Murphy's message chimes more pleasantly with China. For Murphy, strengthening Chinese relations is not empty rhetoric, as Brexit uncertainties have sent a warning to Ireland about overreliance on the UK as a trade partner, and Murphy sees China as an assuring partner in its work to diversify and balance trade. ""We've had a close relationship with the UK. Slowly over time we've exported to new markets and found new opportunities, and this process is happening more quickly because of Brexit."" For instance, the sudden devaluation of the pound was a ""dramatic"" consequence of Brexit-related uncertainties already felt by Irish exporters. ""President Xi spoke about commitment to globalization and countries working together to improve the benefits of globalization for their citizens. I suppose this leads to greater ambition for Chinese firms overseas, and that increases opportunities for a country such as Ireland, which has a global outlook."" He stresses Ireland's unique advantage as the only English-speaking country in the European Union post-Brexit, its common-law legal system's similarity to the UK's legal framework, and its government's open-for-business attitude, all of which are factors making Dublin attractive for Chinese firms who once went big on UK investment as a means of European expansion, but who are now adopting a wait-and-see attitude while Britain negotiates its exit terms. In addition to attracting Chinese investment into Dublin, Murphy also holds a vision for Dublin to engage with China through the Belt and Road Initiative, financial technology cooperation and educational exchange. The Belt and Road Initiative, initiated by President Xi Jinping three years ago to strengthen Asian European trade links through infrastructure investment, has gained momentum, receiving support from more than 100 countries and international organizations, more than 40 of which have signed cooperation agreements with China. In May, Murphy will visit Beijing for the China-led Belt and Road Forum for International Cooperation, where he will explore possibilities for Ireland's further participation. In addition, Murphy is eagerly waiting for the AIIB's approval for Ireland's membership, which would enable Ireland help fund infrastructure projects in Belt and Road countries and share its own infrastructure development lessons with the AIIB. ""I think the AIIB plays an important role for countries that need infrastructure investment to increase the capacity and scope of their economies, we want to bring our knowledge to use in the AIIB whenever we can."" He stresses that Ireland's engagement with AIIB is not entirely centered on self interest, and that the potential financial gains are less important than the geopolitical gains. ""There may not be returns for the Irish state in terms of financial returns, but there'll certainly be a return for helping other economies to increase their scope and improve the standards of living for their people"". Murphy praises the AIIB's operating model, explaining it achieves efficiency, quick delivery speeds while maintaining low operating costs. Murphy says the infrastructure funding AIIB helps to channel into developing countries is crucial at a time when the global economy is searching for new sources of growth. He says: ""It's going to be a whole new source of funding in parts of the world that may not necessarily have the resources. The AIIB has come along at an important time to make sure that type of funding can continue and that model can continue."" As a country that has also developed on the back of heavy infrastructure development, Ireland has experience to share with the AIIB, such as lessons in public-private partnership investment, Murphy says. Public-private partnerships, in which initial government investment helps to reduce the risk of the private sector's investment, attract a great deal of private-sector investment and are also at the core of AIIB's philosophy. In addition, Murphy sees great opportunities in broader Irish-Chinese fintech collaboration, explaining that Ireland's system of fintech innovation and supply chain could be the fertile soil where Chinese fintech firms strengthen their products and solutions. Education is an additional area in which Murphy hopes to further Irish-Chinese collaboration, not least because he personally developed an interest in China through teaching Chinese students English during his university days. In the early 2000s, Murphy taught English as a foreign language to Chinese and other Asian immigrants to Ireland at the Able Academy in Dublin and developed valuable friendships with his Chinese students, whom he describes as ""especially committed to family, culture and creativity"". ""It was very much interaction outside the classroom that allowed me to understand the Chinese people. They'd always invite me to cultural festivals - films, dance, music. On occasion, we'd all go out as a group and have food and drink and spend time together, and that's how I got a sense of the importance of family in Chinese culture."" Those fond memories and precious friendships prompted Murphy to take up Mandarin lessons when he attended King's College London studying for his master's degree, although he admits to finding it difficult. ""I quickly failed at Mandarin. It was very difficult for me. There's the language, the writing, the tonal aspects. I was trying to continue my relationship with China through language, but wasn't able to keep it up."" Despite not learning Mandarin, Murphy has today found not just one but many ways to continue his relationship with China, including encouraging educational exchanges between Irish and Chinese universities. He says: ""From my visits to the country, I have realized China places a strong emphasis on education. We do as well. We are constantly trying to think of different courses that suit people, help them up-skill, and that's the approach China is taking."" cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 01/27/2017 page32)", -345,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064829.htm,CSIC fueling major marine technology,,"Firm developing submersible and maritime nuclear power plant to plumb the depths China has begun to upgrade the design of its first-ever floating nuclear demonstration platform and has nearly finished building a new manned submersible capable of reaching the majority of seabeds in the world, says China Shipbuilding Industry Corp, the primary contractor for the country's navy. A floating nuclear platform is a maritime nuclear power station. The technology can be installed in vessels and provide a stable source of electricity to oil rigs or remote areas such as the South China Sea. It can also provide power to offshore engineering ships, desalination ships or projects. ""This technology can be applied in the development of nuclear-powered icebreakers, nuclear-powered research ships for the polar region and other high-power marine engineering projects in the long-term,"" says Wang Junli, a senior specialist at CSIC's technology and information department. The construction of China's first maritime nuclear power plant is scheduled to be completed by 2018, and it is due to be operational by 2019, according to information released last year by China National Nuclear Corp, CSIC's partner in this project. Eager to enhance its earning ability, China National Nuclear Corp also signed a cooperation agreement with state-owned China State Shipbuilding Corp, a domestic rival of CSIC, to develop similar equipment last week. In another key project, Shao Kaiwen, deputy general manager of CSIC, says developing deep-sea manned submersibles for rough seas will be one of the group's priorities in 2017, with the assembly work and shakedown tests for the vessel due to be completed by the end of this year. The project is dominated by the group's 702 research institute that led the development of Jiaolong, China's first manned deep-sea submersible, capable of diving to 7,062 meters deep in the ocean. While Jiaolong is able to carry out research and exploration missions of 99.8 percent of the world's seabed areas, CSIC is now building a new manned submersible that can reach a depth of 4,500 meters. The vessel is now under final assembly and testing phase. The submersible will be equipped with five observation windows and three seats. Compared with Jiaolong, the new vessel boasts wider commercial usage and lower cost, according to CSIC. Meanwhile, a CSIC shipyard is building a mothership, with displacement of around 4,000 tons, for Jiaolong. The vessel is expected to be put into service in March 2019. ""We have also made breakthroughs in big-ticket projects such as the installation and operation of a high-efficiency liquefied natural gas gasifier engineering project, and a measurement system for nuclear reactors with a capacity in excess of 1 million kilowatts, as well as a number of electric propulsion products and chemical cells,"" says Shao. zhongnan@chinadaily.com.cn - Workers try to put cables onto Jiaolong, China's first manned deep-sea submersible, after the completion of a research program. Xinhua (China Daily European Weekly 01/27/2017 page25)", -346,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064828.htm,Provinces push for structural reforms,,"Supply-side structural reform will continue to be a priority of provincial governments this year as China resolves to press ahead with the major tasks of reform amid downward economic pressure, say provincial governors and businessmen. New targets in cutting excess capacity in major sectors such as steel and coal have been set this year, as unveiled at the annual sessions of provincial legislatures in January, they add. The local sessions, which review and approve government economic and social development blueprints, come ahead of the annual sessions of the national legislature and the top political advisory body in March. - An employee works with steel at a mill of CITIC Heavy Industries in Luoyang, Henan province. Huang Zhengwei / For China Daily After a reduction of 33 million tons in steel capacity last year, China's northern Hebei province aims to further slash about 32 million tons in the current year, according to the provincial government work report earlier this month. ""2017 will be our toughest year in capacity reduction,"" says Governor Zhang Qingwei. ""No matter how difficult it is, we are determined to succeed,"" Zhang adds. Hebei produces a quarter of the country's iron and steel. Yu Yong, chairman of Hesteel Group, the biggest steel company in Hebei, says properly cutting capacity will make room for restructuring and upgrading of the steel sector. The company cut 3.2 million tons of iron and steel capacity last year and is targeting a reduction of 4.4 million tons in 2017, Yu adds. Coal-rich Shanxi and central Henan both set the targets of cutting 20 million tons of coal capacity this year. The two provinces each slashed 23 million last year. ""Coal overcapacity reduction should be achieved through market means,"" says Lou Yangsheng, governor of Shanxi, adding that mergers and reorganizations will be encouraged. Hubei says that it will close all its coal production firms in two years. Southwestern Guizhou province will slash 15 million tons of coal capacity by closing 120 coal mines this year. As part of the reform, local governments will also focus on handling poor-performing zombie companies. Eastern Zhejiang province plans to close 300 zombie companies and 1,000 firms with outdated capacity this year. Southern Guangdong province aims to close 74 private zombie firms after it closed more than 2,000 state-owned zombie companies and 39 private companies in 2016. China achieved its 2016 target of cutting 45 million tons of steel and 250 million tons of coal production capacity, affecting nearly 800,000 workers. This year, the tasks will be heavier, and zombie companies will be focused on, according to Xu Shaoshi, head of the National Development and Reform Commission, the country's top economic planner. So far, 27 provinces have unveiled growth rates for last year and their targets for 2017 at local annual legislative sessions. Among them, 23 had growth rates higher than the national 6.7 percent, with Guizhou, Chongqing and Tibet all above 10 percent. Beijing and Shanghai both reported 6.7 percent. Most of the provinces aim to maintain the same or slightly lower growth than in 2016. With an estimated growth of 4.5 percent in 2016, lower than most other provinces, Shanxi set its GDP growth target at 5.5 percent this year to leave flexibility for transformation and reform. Other reforms, such as market-oriented debt-for-equity swaps and administrative streamlining, are being emphasized by many provinces to reduce corporate leverage and encourage businesses. Besides structural reform in industry, officials says China will also emphasize reform in agriculture this year. (China Daily European Weekly 01/27/2017 page29)", -347,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064827.htm,Capacity cuts aim to take heat off coal,,"A price adjustment scheme will help stabilize China's coal industry in 2017 as authorities press ahead with capacity reduction, according to the chief of the industry's top national body. ""Coal capacity reduction needs to be done through both administrative and market means. The scheme is a result of negotiations among coal, steel and power industrial associations. It is a sound system that caters to the interests of producers and consumers in the market,"" says Jiang Zhimin, president of the China National Coal Association. Last week, the National Development and Reform Commission released a notice on preventing severe coal price fluctuations in 2017, establishing specific benchmark prices for the mid-and long-term contracts between coal companies, power companies and steel smelters. The commission has formulated three price spectrums: green (500-570 yuan per ton, or $73-83 per ton; 49-56 euros; 43-49), blue (570-600 or 470-500 yuan per ton) and red (above 600 or below 470 yuan per ton). In the green region, there will be no adjustment measures. In the blue region, the government will enhance market supervision and offer guiding measures when deemed appropriate. In the red region, the government will launch the contingency plan for the adjustment of abnormal prices. ""Generally speaking, coal prices of 500 to 700 yuan per ton are acceptable for most coal companies and downstream industries. Below 470 yuan per ton, the coal industry will suffer across-the-board losses,"" says Jiang. The power coal price was around 639 yuan per ton at the end of last year, up 72.7 percent from the beginning of 2016. Jiang does not offer any prediction about the capacity reduction goal this year, saying that it's being discussed and will be released by the State Council after the Spring Festival holiday. The actual capacity reduction last year was around 300 million tons, compared with the goal of 250 million tons. The capacity is increasingly concentrating in large companies. The number of coal mines has gone down from 24,800 in 2005 to the current 9,000. yangziman@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page25)", -348,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064826.htm,Confidence to be a top priority,,"Policies will likely center around attraction and retention of investment in uncertain times China's policymakers must make greater efforts to stabilize investor confidence as the country is facing the pressure of a slowdown in housing investments this year, economists said. ""Our advice for policymakers is to reduce business taxes and fees, shore up the weak spots of the economy, close 'zombie enterprises' and break the monopolies of State-owned enterprises,"" says Qu Hongbin, co-head of Asian economic research and chief economist for Greater China at HSBC Holdings PLC. ""This will help stabilize the confidence of private companies and prevent private investments from declining further. It will hedge against the risk of a drop in real estate investments and ease the pressure of capital outflows,"" says Qu at a media briefing in Beijing. - China's first Skytrain is readied for trial operations in Chengdu, Sichuan province. Lyu Jia / For China Daily He suggested the government should boost investments in metros and urban underground utilities and take measures to fight against air pollution. China could also encourage companies to increase their environmentally-friendly investments by upgrading equipment to meet higher emissions standards. It is important for the central government to continue streamlining its administration, delegating power to lower levels and reducing bias against privately owned enterprises in regard to market entry. This will help stabilize the economy in the short term and optimize China's economic structure in the medium and long run, he said. Zhao Yang, economist at Nomura International (Hong Kong) Limited, agreed with Qu, saying that he expects the government to launch a more active fiscal policy to accelerate infrastructure investments related to environmental protection, urban transportation, underground pipeline networks and high-speed rails. Liu Ligang, chief China economist at Citigroup Inc, said Citi forecasts that the Chinese economy will grow by 6.5 percent in 2017, if infrastructure investments maintain a growth rate of about 20 percent, and if the growth of consumption and foreign trade remain the same as last year. ""We believe China's policy priority will be economic stability over structural reform in 2017. Leading into late 2017, a 'steady boat' measure in economic policy is likely to be adopted to minimize economic uncertainty. This means the 2016 policy framework could be strengthened this year, with fiscal policy leading the way to achieve a 6.5 to 7 percent growth target,"" Liu says. State-owned enterprise reform saw modest progress in the second half of 2016. Looking ahead, he says the ongoing corporatization of SOEs will continue. However, as a result of the ""steady boat"" approach to economic policy this year, SOE ownership reform - the more decisive part of the reform - may have to wait until 2018. Externally, US President Donald Trump's policies may mean more trade frictions between China and the US, but Liu and other Citigroup economists believe the political and economic stakes are simply too high for the largest and second-largest economies of the world to engage in a trade war. ""Trump's threats on China's currency and trade could mean Beijing will need to sit down and negotiate seriously with the US on market access and protecting intellectual property rights. In some areas, if interests are aligned, these dynamics could also help accelerate China's reform process,"" he says. jiangxueqing@chinadaily.com.cn - Maintenance technicians conduct checks on the maglev train before it enters trial operations in Changsha, Hunan province. Xu Xing / For China Daily (China Daily European Weekly 01/27/2017 page28)", -349,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064825.htm,Consumption remains key driver,,"China's domestic consumption has remained a strong contributor to the economy, helping to drive growth as the country has undergone economic restructuring in recent years. But last year it lagged, according to the latest official statistics released in Beijing on Jan 20. Data released by the National Bureau of Statistics showed that in 2016, domestic consumption contributed 64.6 percent to growth in GDP, dipping 1.8 percentage points from a year ago. From 2012 to 2014, consumption contributed around 50 percent to GDP growth, and the rising ratio has indicated a solid growth in consumer spending and improvement in industrial structures, analysts say. ""The consumption sector has been a strong area of the Chinese economy, which has been dragged down by slowing exports and investments,"" says Zhao Ping, deputy director of the Chinese Academy of International Trade and Economic Cooperation, under the Ministry of Commerce. Currently, China is pushing to stimulate growth by focusing on supply-side reform, which aims to cut low-end industrial capacity, increase high-tech production, encourage online shopping and stimulate the service sector. Last year, GDP grew 6.7 percent year-on-year, the slowest expansion in more than two decades, but still within a reasonable range, the statistics bureau says. In 2016, total retail sales climbed by 10.4 percent year-on-year to 33.23 trillion yuan ($4.83 trillion; 4.49 trillion euros; 3.87 trillion), staying flat with the growth rates of the first three quarters last year. During the same period, catering sales reached 3.58 trillion yuan, rising 10.8 percent year-on-year, the bureau announced at a news conference on Jan 20 in Beijing. Online sales remained strong last year, surging 26.2 percent from a year ago to 5.16 trillion yuan. Sales of physical goods online accounted for 12.6 percent of total retail sales. On Nov 11 last year, China's e-commerce giant Alibaba smashed its sales record once again during its annual Singles Day festival, with consumers spending 120.7 billion yuan during the 24-hour shopping frenzy on the company's e-commerce portals such as Taobao.com and Tmall.com. zhuwenqian@chinadaily.com - A girl chooses decorations in Jinzhou, Liaoning province, for the upcoming Spring Festival. Li Tiecheng / For China Daily (China Daily European Weekly 01/27/2017 page26)", -350,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064824.htm,Quotable,,"The Chinese family is growing bigger with a second child, and they love spacy SUVs even more. The robust demand for SUVs will continue this year and over the next couple of years."" Xu Heyi, chairman of Beijing Automotive Group Co ""Our investment in SkyBridge is an important step in HNA Capital's strategy to build a global asset management business."" Yang Guang, CEO of HNA Capital. HNA Group is seeking to expand its portfolio in the global asset management business by acquiring a majority stake in SkyBridge Capital, an alternative investment firm founded by Donald Trump adviser Anthony Scaramucci. ""Domestic firms will continue to serve as the primary source of demand, as foreign tenants continue to have greater cost-sensitivity. While Beijing will remain an important base for North China operations, slower growth in the country has reduced the urgency in companies' China expansion plans."" Eric Hirsch, head of office leasing for JLL in Beijing. (China Daily European Weekly 01/27/2017 page24)", -351,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064823.htm,Mobike works with Foxconn to expand fleet,,"Chinese bike-sharing startup Mobike signed an exclusive strategic partnership with Foxconn Technology Group on Jan 23, in a move to double its annual bicycle production capacity to more than 10 million units. Under the deal, Foxconn, the world's largest contract consumer electronics maker, will set up production lines for Mobike's bicycles, with an annual production capacity of 5.6 million units. Foxconn has also become a strategic investor in the startup. Davis Wang, CEO and co-founder of Mobike, said the deal will help the Beijing-based company expand its presence in China and overseas markets. ""The move will lower the manufacturing cost. Foxconn's industrial design capability and overseas footprint will also be of great help,"" Wang added. Founded in 2014, Mobike is one of the fastest-growing bike-sharing companies in China, with services available in 13 cities. It is competing with Ofo in the race for control of the nascent bike-on-demand sector. The deal came shortly after Mobike raised $215 million in a new round of funding in January, led by Tencent Holdings. James Du, senior vice-president of Foxconn, said the deal is part of the company's efforts to facilitate public transportation with new technology. masi@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page29)", -352,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064822.htm,Fixed investment growth rate declines,,"Improvement in demand for investment will help consolidate the foundation for domestic economic growth this year, after fixed-asset investment in the private sector witnessed a mild uptick at the end of 2016, the National Bureau of Statistics said on Jan 20. Official data released by the bureau showed that in 2016, fixed-asset investment increased by 8.1 percent year-on-year, down by 0.2 percentage points compared with the first 11 months. The decline is in line with the slowing pace of the government's approval for infrastructure construction projects. The National Development and Reform Commission, the nation's economic regulator, approved 227 fixed-asset investment projects valued 1.7 trillion yuan ($247 billion; 229.7 billion euros; 198.1 billion) in 2016. In 2015, the commission approved a total of 280 fixed-asset investment projects, valued 2.52 trillion yuan. Although the year-on-year growth rate of fixed-asset investment slowed down to the lowest level since 1999, a closer look at the data breakdown points to some promising signs. Investments made by private companies grew by 3.2 percent in 2016 year-on-year, 0.1 percentage points higher than the first 11 months, and the fourth consecutive month to see improvement. An improvement on the private side indicated some improvement in confidence about the future outlook of the economy, according to Niu Li, an economist at the State Information Center. Private investment accounts for about 60 percent of total fixed-asset investment, according to the NBS. Ren Zeping, chief economist of Founder Securities, says the improvement in the private sector was driven up by a warming up in the manufacturing industry and higher-than-expected property investment. Investment in the manufacturing industry rose 4.2 percent year-on-year in 2016, up by 0.6 percentage points compared to the first 11 months in 2016, the data showed. Real estate investment growth was 6.9 percent in 2016, up by 0.4 percentage points higher than the first 11 months, according to NBS. Zhang Yiping, an economist with China Merchants Securities, says that the month-on-month recovery will provide more growth momentum this year. Zhang says he expects that policies introduced in 2016 to support the private sector - such as expanding channels for private investment - will gradually take effect in 2017. wangyanfei@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page26)", -353,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064821.htm,Internet fund aims to boost innovation,,"Initiative is of great significance for the development of the sector, say analysts The newly-established China Internet Investment Fund is expected to foster innovation and entrepreneurship within the internet sector via a market approach, analysts said on Jan 23. The 100 billion yuan ($14.6 billion; 9.8 billion euros; 8.7 billion) internet investment fund, co-sponsored by the Cyberspace Administration of China and the Ministry of Finance, was launched over the weekend. Six strategic partners - including Industrial and Commercial Bank of China Co, CITIC Guoan Group Co, China Post Life Insurance Co and China's three major telecom carriers - have funded the first 30 billion yuan. Three state-owned banks - ICBC, China Development Bank and Agricultural Bank of China Co - will provide financial services and 150 billion yuan of credit for enterprises which have raised money from the internet investment fund. ""Based on market operations, the fund aims to cultivate and promote a new driving force in the internet sector,"" says Deputy Finance Minister Yu Weiping. Shen Meng, director of Chanson & Co, a boutique investment bank in China, says the establishment of the State-backed fund is of great significance for the development of the internet sector and the Internet Plus industry. ""It will bring new opportunities for all parts of the internet sector. "" A report published by the China Internet Network Information Center during the World Internet Conference in Wuzhen last year showed that China's global ranking among countries with a strong internet-based industry had moved up to 25 in 2016 from 36 in 2012, with a score of 72.8 out of 100, surpassing the average of G20 economies for the first time. Shen added that as China stepped up efforts on economic restructuring and upgrading, the government aimed to boost the development of Internet Plus by bankrolling innovative companies. ""The fund has several advantages, such as abundant money and supportive policies. However, it will take on risks for higher yields,"" he adds. One analyst urges caution. ""They should invest in firms and projects of real value to avoid bubbles in the innovation field,"" says Li Zichuan, an analyst at Beijing-based internet consultancy Analysys. Xiang Ligang, CEO of telecoms industry website cctime.com, says the fund also aims to better manage cyberspace. ouyangshijia@chinadaily.com.cn ( China Daily European Weekly 01/27/2017 page29)", -354,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064820.htm,French business chiefs look forward to forum,,"Southern provincial capital Guangzhou offers perfect backdrop for establishing stronger business ties with China, say bosses French business leaders say they are looking forward to attending the Fortune Global Forum in Guangzhou in December, saying the city's business-friendly environment makes it a perfect host. They were speaking in Paris at a roadshow hosted by the Guangzhou government to promote the forum, which was attended by more than 100 business people and government representatives. Guangzhou Deputy Mayor Cai Chaolin says: ""As the host city, we hope to give the forum's guests a good experience and good value."" Cai says the ""good experience"" will come from Guangzhou's historic attractions, modern infrastructure and delicious food, while the ""good value"" will be in the form of new inspiration and business opportunities. As China's southern gateway, Guangzhou has built economic and trade relations with more 200 countries and regions globally. The city plans to establish hubs for shipping, aviation and tech innovation by 2020. More than half of the Fortune Global 500 companies have already made investments in Guangzhou. Alain Loehr, director of global mobility services at Fidal, a French law firm, says: ""Mr Cai shared with us a comprehensive picture of Guangzhou's history, culture, business environment, innovation, inclusiveness and lifestyle, which allowed me to understand so much about Guangzhou and I really look forward to going there."" He says: ""Attending the Guangzhou forum is an important way for us to support our clients, who are French firms with investments in China and Chinese firms with investments in France. We also hope to find new clients at the forum."" Loehr adds that understanding more about Guangzhou would also be useful when suggesting to his clients which Chinese cities to expand into for their global operations. The Fortune Global Forum will be held in Guangzhou from Dec 6 to 8 this year and it will be the fifth time it has been held in China. Thierry Ehrenbogen, chairman of Bollore, a French logistics firm, says attending the forum will help him find more clients, especially companies importing and exporting products in and out of China. He says: ""Guangzhou's reputation as one of China's leading port cities makes it very important for our industry. We hope many Chinese and international brands represented at the forum will also become our clients for logistics distribution."" As a starting point for the Maritime Silk Road, Guangzhou has long been exporting goods and culture to the West. John Needham, managing director of the Fortune Global Forum, says the choice of forum's theme is timely, and is coherent with President Xi Jinping's keynote speech at Davos where he vigorously defended globalization. Many Chinese firms are also eagerly looking forward to the forum, believing it is an opportunity to learn from their international counterparts and find collaboration opportunities both at home and abroad. Li Chuyuan, chairman of Guangzhou Baiyunshan Pharmaceutical Holdings Co Ltd, says: ""It'll be a good opportunity for us to exchange views and discuss partnership opportunities with globally-leading firms."" The Guangzhou government also plans to host roadshows in Hong Kong, New York, San Francisco, Chicago, Washington DC, Tokyo, Seoul, Frankfurt, London, Barcelona and Amsterdam. ecily.liu@mail.chinadailyuk.com (China Daily European Weekly 01/27/2017 page26)", -355,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064819.htm,IPO surge may lower stock prices,,"Anticipation of the regulator's acceleration of new share sale approvals as well as the push for financial deleveraging could be a source of pressure on the Chinese stock market in the coming weeks, analysts say. There have been signs that the Chinese regulator wants to accelerate the approval of initial public offerings this year as pressure in the IPO pipeline has been mounting, with more than 700 companies queueing to issue new shares. In the past two weeks alone, the regulator has approved 24 IPOs, more than doubling the number of deals of the same period in 2016. ""This is a signal that the regulator is speeding up the approval of IPOs, which could weigh on the current market price,"" says Li Yuebo, an analyst with Industrial Securities Co Ltd. The China International Capital Corp estimated that the regulator will likely approve about 500 IPOs this year, raising roughly 300 billion yuan ($43.8 billion; 29.6 billion euros; 26.2 billion). The State-run Xinhua News Agency last week quoted experts as saying that China's ""normalization"" of IPOs could help raise the financing efficiency of companies and direct more capital into the real economy. The report made the market more volatile, as investors worried that more IPOs could drain market liquidity and push down stock prices. The securities regulator also said on Jan 20 that it will adopt new measures to curb frequent refinancing deals by listed companies or a single deal that raises an excess amount of capital. The regulatory move could help channel more capital into the IPO market. Lu Xiaofeng, analyst with BOC International Co Ltd, says that the overall market will maintain the trend of consolidation ahead of the Chinese New Year holiday as factors, including the acceleration of IPOs, will lead to a reduced risk appetite among investors. Meanwhile, Gao Ting, head of China strategy at UBS Securities, says the Chinese government's effort to push for financial deleveraging will likely continue, which could be a source of pressure on the markets in the coming months. In addition, 52 percent of investors surveyed by UBS identified depreciation of the renminbi and capital outflows as the biggest risks for the A-share market this year, followed by economic weakness driven by another property slowdown (32 percent) and spillover of bond market volatility into stocks (16 percent). Nonetheless, the majority of investors polled by UBS are optimistic on Chinese stocks, with 86 percent expecting the MSCI China Index to strengthen in the next 12 months, and over 50 percent expecting at least a 5 percent increase. ""Nearly 80 percent of investors said they believe the rally in cyclical sectors will continue this year, as supply-side reform deepens and demand recovers,"" Gao says. lixiang@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page28)", -356,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064818.htm,CIMC Enric pioneering international gas transport,,"China's hunger for natural gas has pushed CIMC Enric Holding Ltd, one of the country's biggest liquefied natural gas equipment manufacturers by sales revenue, to upgrade its products. Its newly-designed, high-performance, large-capacity LNG tankers are expected to redefine oceanic transport of natural gas. ""Once this mode of transportation is launched and widely accepted, a lot of wasted offshore natural gas will be saved,"" said Yang Baoying, deputy general manager at CIMC Enric. The new 40-foot (12.2 meter) containers passed security tests in the United States recently. Each of them can enable LNG imports in small batches, and successfully implement the LNG one-tank, multimodal transport on road, rail and water. They could also raise standards for LNG logistics in the global market. CIMC Enric also completed a sea trial for a 14,000-cubic-meter LNG carrier in November 2016. This is one of 20 LNG feeder vessels available in the world. The added value and technical content of LNG carriers are more advanced than those of oil tankers, and they will be equipped with tanks that can resist extremely low temperatures. The company produced the world's first CNG transport ship capable of moving 700,000 cubic meters of CNG for its client in Tantong, Jiangsu province, in 2016. Even though demand for LNG is depressed and under pressure, thrust on low carbon energy use will see LNG playing a key role in the optimization of the domestic energy structure, said Sun Hongli, another deputy general manager of CIMC Enric, a subsidiary of China International Marine Containers (Group) Ltd. Bao Zhangjing, director of the China Shipbuilding Industry Research Center, said: ""At present, most of the associated gas gained from offshore drilling projects is commonly burned as waste gas, including in China and other countries."" The company's product range includes storage tanks, LNG carriers, import terminals and export terminals. CIMC Enric specializes in the manufacture of equipment for energy, chemical and liquid food industries. Its equipment and engineering business covers both onshore compressed natural gas and its industrial chain, as well as the offshore LNG industrial chain. zhongnan@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page25)", -357,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064817.htm,IN BRIEF (Page 24),,"- A man buys fireworks to be used to welcome the Lunar New Year. In Beijing, sales of the celebratory fireworks are allowed from Jan 22 to Feb 1. Cao Boyuan / For China Daily Chinese utility buys big in Brazil State Grid Corporation of China announced on Jan 24 that it has taken ownership of a controlling stake in Brazilian power utility CPFL Energia SA, the largest power distributor in the country. State Grid, the world's largest utility company, concluded the deal for a 54.64 percent stake in CPFL five months after signing the agreement for the acquisition. Records show that the value of the deal will total $4.49 billion (4.19 billion euros; 3.58 billion), the State Grid's biggest overseas investment project so far. Mainland investors snap up overseas real estate The rapidly expanding appetite of Chinese mainland capital for international real estate assets reached a record high in 2016 and is likely to continue to play a significant role in the global property market in the next few years - although more domestic capital may look at opportunities on the mainland in 2017, a leading real estate services provider said.Research by Jones Lang LaSalle found that the Chinese mainland's outbound investment last year in commercial and residential properties surged 53 percent from 2015, hitting $33 billion. The report said that over the past three years investments in land, office buildings and hotels accounted for 90 percent of the overall outbound property investments. In 2016, hotel and industrial properties were the two segments that saw the biggest investment increases. Regulator: No curbs on foreign firms' profits Repatriation of normal profits by foreign-invested firms will not be restricted, the head of China's foreign exchange regulator said on Jan 24. The comments follow several similar government statements, meant to reassure international companies that stronger controls on capital leaving the country will not affect operations of foreign firms in China. Pan Gongsheng, the head of the State Administration of Foreign Exchange, also said China supports legitimate overseas direct investment by Chinese firms. Alibaba raises forecast for sales in 2017 Alibaba Group Holding Ltd raised its full-year sales forecast after quarterly results beat estimates, as Chinese spending stays strong and the company wrings revenue from fledgling areas such as cloud computing, entertainment and search. China's biggest e-commerce company increased its projection for fiscal 2017 revenue growth to 53 percent, from 48 percent previously, according to reports by Bloomberg. Beijing-based Oceanwide set to buy IDG A Chinese consortium made up of China Oceanwide Holdings Group Co Ltd and IDG Capital announced that they have entered into a definitive agreement to acquire International Data Group (IDG). With operations in 97 countries worldwide, Boston-headquartered IDG is a leading global media, market research and venture company engaging in the most influential technology ventures and buyers. This acquisition also includes IDG's subsidiaries International Data Corporation (IDC), IDG Communications and IDG Ventures. With this deal, China Oceanwide will be the controlling shareholder of IDG's operating businesses, including IDC and IDG Communications. IDG Capital will become the controlling shareholder of IDG Venture. The consortium has received clearance from the Committee on Foreign Investment in the United States for the transaction, which is expected to close within the first quarter of 2017. Although the amount of the transaction is not disclosed, earlier media reports stated that it would amount to over $1 billion. Renminbi currency card issued in Hungary The Bank of China in Hungary and China UnionPay issued the first Chinese renminbi and Hungarian forint debit card in the Eastern European country on Jan 23. It is the first renminbi bank card to be issued in Europe by the Bank of China. The card will operate in the Hungarian currency, the forint, as well as Chinese renminbi. Customers will be able to draw cash through ATMs and at point-of-sale locations with the UnionPay logo all over the world. Xu Luode, the bank's executive vice-president, said at the card issuing ceremony that the debit card was an important achievement in financial cooperation between China and Hungary. Xiaomi Corp's vice-president quits Xiaomi Corp Vice-President Hugo Barra has quit after four years with the Chinese smartphone maker and will return to Silicon Valley. The former Google Inc executive was hired with much fanfare to be the up-and-coming Chinese brand's international face, becoming a fixture on the global conference circuit and Xiaomi's main pitchman to foreign audiences. In a Facebook post on Jan 23, Barra said it was time for him to return to the United States, though he didn't say in what capacity. During his time at Xiaomi, the company briefly rose to become China's biggest smartphone vendor, with high-end components packed into inexpensive devices. It has since been dethroned by local brands such as Oppo, vivo and Huawei. Third batch of FTZs on the way, official says China's seven new free trade zones are just around the corner, a breakthrough to further open up more areas, according to a government official on Jan 19. The Ministry of Commerce, together with other related departments, is accelerating the pace of setting up the third batch of FTZs, which was proposed last August, said its spokesman Sun Jiwen at a news conference. It will disclose the overall plan, including geographic locations, soon after the mandatory approval process. In addition, Sun urged national-level economic and technological development areas to learn from the successful experience of running the existing FTZs. BYD plans electric car sales in United States BYD Co Ltd plans to sell electric cars in the United States in about two to three years, an executive said on Jan 19, as it races to be the first Chinese automaker to sell cars to US drivers. BYD, backed by Warren Buffett's Berkshire Hathaway Inc, specializes in electric and plug-in petrol-electric hybrid vehicles. At present, its US presence is limited to producing buses and selling fleet vehicles such as taxis. Li Yunfei, BYD's deputy general manager for branding and public relations, said its passenger car plan was not fixed as entering the US was a complicated process. ""It could be adjusted,"" Li said at an event in Beijing. ""Now we can only say roughly two to three years."" Tech companies add Pokemon to festive fun China's tech companies are adjusting to the digital age by adding Pokemon Go-inspired features to their mobile red envelope apps. Alipay, the e-wallet from Ant Financial Services Group, has unveiled a location-based, augmented reality game that allows users to collect virtual red envelopes as they move around. Through the app, users can scan with their smartphone cameras to hide the digital red envelopes, and then send clues to their friends to help them find them. To promote the virtual game, Alipay has allocated 200 million yuan ($29.1 million; 27.1 million euros; 23.2 million) to encourage users who adopt the function. By scanning the Chinese character fu, which stands for luck and fortune, participants have a chance to receive one of the five designated lucky cards. Those who collect all five cards by the eve of the Spring Festival on Jan 27 are entitled to a share of the 200 million yuan. (China Daily European Weekly 01/27/2017 page24)", -358,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064816.htm,Racing ahead with the motoring elite,,"Luxury sports carmaker McLaren is confident of making inroads into Chinese market, says its chief Luxury sports car brand McLaren has come a long way from selling its first car in China four years ago to now generating a major chunk of its global sales from the country. It is profiting from keen interest shown by China's rapidly-growing community of wealthy consumers. The British super sports brand experienced a stellar year in 2016 with a 99.3 percent increase in global sales to 3,286 cars. In China alone, McLaren sold 228 cars last year, a significant addition to the total of 300 it sold in its first three years in China. - Mike Flewitt, chief executive officer of McLaren Automotive, feels confident about the company's future in China. Provided to China Daily It's an achievement that is a little hard to believe given McLaren's China office, in Shanghai, employs only 10 staff, who are mainly in charge of the sales, marketing, after-sales services and relationship management. The company works with a network of 14 Chinese retailers to distribute its cars. ""Affluent Chinese supercar customers appreciate the attributes of the McLaren car and our cars are well suited to this developing market,"" says Mike Flewitt, chief executive officer of McLaren Automotive. ""As a result, we are very confident about our prospects going forward."" Recently, Flewitt spoke with China Daily about the luxury car maker's strategy and business opportunities in China. The following are edited excerpts from the interview: How would you describe your company's prospects in China, given the current economic situation? At McLaren Automotive, we feel very confident about our future in China. We are a relatively new company and we sold our first car in China in September 2013, so went later into the market than most of our competitors. We have seen sales of a number of competitors decline. In contrast to that, in 2015, our sales grew by 56 percent compared with 2014. Awareness of the McLaren brand is developing well through a number of marketing activities, including motor shows and retailer activity. As a result, we are very confident about our prospects going forward. What has been your company's biggest achievement in the mainland market? In my view, setting up a good retailer network in any market, especially a growing market like China, is vital to the success of any company and is one of our greatest achievements. We have worked hard in a very short period of time to find quality retail partners who can represent the McLaren brand well. We have 14 retailers across China and these retailers are growing sales dramatically. As a relatively new competitor in the marketplace, these retailers will be key in developing the awareness and consideration of McLaren in this rapidly developing marketplace and so their achievements will reflect our achievements. In your view, what is the secret of your business's success in China? Very simply, understanding the needs, desires and expectations of our customers. Only in this way can we deliver products that meet those expectations. I and all of my executives frequently meet our customers face-to-face at company-organized events, as well as social gatherings, to listen and understand exactly what they think about us and want from us. What is an example of McLaren's customer-centric approach in China? An example of this was attending the Beijing Autoshow. It was only the second time we had displayed cars in Beijing. We had an excellent presence at the show and we invited our retailers and customers to our stand to debut the new McLaren 570GT to Asian customers. While we were in Beijing, we also took the time to have a gala dinner with our affluent customers, to show them how grateful we were for their patronage but also to help us understand how we can improve what we do for them. We try and have these dinners and social gatherings wherever we are in the world, but it's especially important in China because the landscape and culture changes so quickly. These meetings also help them understand more about who McLaren is, so it's a mutually beneficial outcome. What essential leadership qualities do you consider important when leading your team to grow in the Chinese market? We have recruited very successful leaders in China. A very clear understanding of the local market requirements is vital, as well as the cultural sensitivities and differences between China and other parts of the world. In addition, as in other parts of the world, it's key to understand how the affluent classes behave, spend their free time and so on. Only in this way can we hope to be talking to them in a way that they understand and appreciate, and build strong, long-term and trusting relationships with customers. How does your China market strategy fit in with your work in the Asia-Pacific region? China is part of our Asia-Pacific region and we have populated the leadership roles within that regional team with international people who understand the markets through experience with competitor brands, as well as Chinese employees who understand what Chinese buyers think and want. This balance of international experience and local knowledge has served us very well and has helped deliver the significant sales growth we are experiencing. How do you motivate your international team? Different people need different motivation. We are still a relatively new and small company so I know most of our employees personally. Whenever I travel abroad to events or meetings, if possible, I try to have a meeting or dinner with the local teams to get understanding and feedback from them on performance and how we can make their lives easier. In this way, everybody can feel that their ideas are being listened to and each and every one of them is inputting into the future of the company. In addition, we are fortunate to have a very motivational and passionate brand to work for, and the cars that we build are some of the most aspirational products in the world. All of our employees feel a tremendous sense of pride and motivation to be working for a globally recognized brand like McLaren. This combination makes working for McLaren a very motivational and enjoyable experience. What do you think about the Chinese Dream? What are the dreams you have for your company in China? As a young company, I have many dreams and aspirations that I would like our company to fulfill. Mainly, I would like us to ensure that our potential in this very dynamic and growing market is exceeded. We have started well and made some significant developments in a short period of time. What are McLaren's long-term sales goals in China and globally? Globally, and in China, we have to remain focused on our objectives if our longer-term sales ambitions are going to be achieved. I am very confident that we build the best sports cars in the world but our brand has varying levels of awareness across the globe. In some markets, we have high levels of awareness thanks to an understanding created by our long-term participation in Formula One. But in markets where awareness of Formula One and wider motorsport is low, as a young company we have to develop that awareness. I've said this before but it's a vital ingredient of our future success. Customer awareness of McLaren building the world's best sports cars is how we will fulfill our potential. What are your hobbies? How do you spend your time outside of work when you are in China? As CEO of a young and dynamic company, I don't have a huge amount of spare time. I try and get as close to as many of our customers as possible and this often entails traveling to, or attending events with, McLaren customers over the evenings and weekends. When I'm travelling in China, I'm keen to understand how we can improve what we do for them. When I am at home in the UK and have time, I am an avid motor racing fan, as you might expect doing the job I do and for a company like McLaren, and so I enjoy racing my own historic racing cars whenever I can. cecily@mail.chinadailyuk.com (China Daily European Weekly 01/27/2017 page31)", -359,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064815.htm,Chinese law firm Yingke goes beyond routine legal help,,"Dealing with legal complexities in the UK requires advice on the local culture, says company Leading Chinese law firm Yingke is following Chinese companies' rapid expansion into the United Kingdoms and European markets, providing them with legal guidance and as well as local market advice. ""We go beyond our normal work of just advising clients on law. We advise them also on culture and ways of thinking in the market they are expanding into, so our role is more encompassing than, strictly speaking, the lawyer's role,"" says Linda Yang, global partner and executive chairman of Yingke's global board of directors. ""This is rewarding because we are able to participate in our clients' international expansion journey,"" she says. Yingke international partners celebrate the 15th anniversary in 2016 in Beijing. The Chinese law firm is optimistic about doing more deals in the UK, which has become a popular destination for Chinese investors. Provided to China Daily Yingke originally established a UK subsidiary in 2010, but its presence has significantly grown since it established an exclusive strategic partnership with London-based, mid-market corporate firm Memery Crystal in 2015. Its UK subsidiary, Yingke UK Consulting, is not a direct subsidiary of Yingke Law because Chinese law firms aren't allowed to be shareholders of foreign entities, although the UK entity is directly controlled by the managing partner of Yingke Law. The two law firms have so far collaborated on half a dozen deals, ranging from property investment to cross border acquisitions in fields including football, software technology and industrial technology, although details of the deals are kept confidential. Most of those deals represent Chinese outbound investments originating from Yingke's clients in China. The deals signed in the UK follow UK local law, with Memery Crystal playing a crucial part in seeing the deals through on the ground, as well as occasionally proposing local market acquisition targets if their existing UK clients are looking for investors. Yang is optimistic about doing more deals in the UK, as her team has witnessed more interest from Chinese firms in acquiring UK targets after the June referendum vote when the UK voted to leave the European Union, leading to a depreciation of the pound. In recent years, the UK has become a popular destination for Chinese investors. According to a new study, released in November 2016 by Cass Business School, there were 91 Chinese cross-border M&A investments in the UK from January 2012 to June 2016. Popular sectors of these M&A activities include football, property, healthcare and high technology, says Yang. ""These deals allow Chinese investors to gain technology and expertise very fast, and allow them to quickly internationalize."" Founded in Beijing in 2001, Yingke has quickly grown to become one of China's most famous law firms. According to a league table released in September by The American Lawyer magazine, Yingke is China's largest law firm by headcount and ranked sixth in China by 2015 revenue. Its 2015 revenue also represented a 38 percent year-on-year increase, according to The American Lawyer. Yingke signed a new partnership agreement with the UN Development Program in November focusing on South-South cooperation. The agreement made Yingke one of the five founders of the Global Coalition of Think Tank Networks for South-South Cooperation, focusing on risk management and research in law, regulations and policies. Yang says Yingke was selected by the UNDP mainly because of its global network. Yang says Yingke maintains an open corporate culture, meaning partners can ""express their own opinions and carry out services in ways they would prefer"". Another unique characteristic of Yingke is the array of opportunities it offers young lawyers, as some of the firm's young partners are only in their 30s. Yang says this youthful culture keeps the company vibrant. As an established firm in China, Yingke began its international expansion in 2010, championing a model of forming partnerships with law firms in each of the international jurisdictions it practices in. It refers its existing clients hoping to expand overseas to its partner firms abroad and, once a deal is done, revenue from the legal advice is shared between Yingke and its overseas partner. ""We think this way of expansion is more effective than sending our own teams of lawyers abroad because our partners' mature teams allow us to expand quicker globally as a law firm and also because law is such a regulated profession, lawyers need to understand local laws and regulations. We believe this type of partnership creates the best value for our clients,"" she says. Yang says Yingke's grasp on cultural understanding is a big advantage in helping clients secure cross-border deals. ""Cultural differences can be a big setback for major international deals, but it only takes a little bit of effort to explain things to our clients and make sure they understand."" She recalls one incident, when a Yingke client was setting up a joint venture with a Western partner. The Chinese CEO wanted to show his team's interest and commitment so he made a casual remark as a gesture of friendship that the Chinese side will be the majority partner, but the Western firm insisted for this point to appear in the contract. The Chinese firm refused to include this point in a contract, believing it was only an unofficial friendly remark, so the deal was in jeopardy for a long time - that is, until Yingke stepped in to explain the cultural misunderstanding, that the Chinese firm made the comment only as a message of commitment, not in a legal sense. Examples of such cultural misunderstandings are plenty in Yang's team's daily work, she explains. For instance, Chinese people do not like saying no, so they often just say 'sure' while listening to a point their Western partner makes, but this does not necessarily mean they agree. ""So it's important to really understand what the Chinese company means when they say 'sure'."" On a more serious note, Yang says Yingke firmly believes Chinese companies should seek legal advice throughout the global expansion process, instead of relying on legal advice from their joint venture partners in an international market. She recalls a client who once expanded into Portugal initially without a legal advisor, and did not understand that all legally-binding decisions from board meetings in Portugal must be written in English and Portuguese. Its unreliable Portuguese joint venture partner took advantage of local law by translating all decisions favorable for the Portuguese side into Portuguese, leaving the decisions favorable for the Chinese side in English. The Chinese investor suffered a lot from these legal disadvantages, and in the end their Portuguese JV went bankrupt. Championing local market understanding with an extensive legal background, Yingke now has a global network covering more than 30 countries, including the UK, Germany, Poland, Czech Republic, Slovakia, Hungary, Spain, Italy, Greece and Israel. In the UK, Yingke chose to partner with Memery Crystal due to similar corporate cultures. ""They are international-minded and inclusive, and keen to take on new challenges."" Speaking about this open-minded attitude, Yang remembers when two partners from Memery Crystal visited Shanghai and asked her to take them to a local restaurant to try a famous Shanghai dish called 'hairy crab' they had heard about. ""We were impressed by their willingness to try new things, so we took them to a restaurant. They tried to eat hairy crab actually, but it was very difficult to break the shell and eat it and they ended up making a mess. But we were impressed by their ability to try, as we know a lot of Westerners would just not bother at all."" Memery Crystal CEO Nick Davis also speaks fondly about the Yingke partnership. ""Our two companies have a shared focus on serving clients and our teams share a similar outlook. Memery Crystal is a company which has a history of serving private entrepreneurs, so our corporate culture is very similar to Yingke's,"" Davis says. cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 01/27/2017 page30)", -360,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064814.htm,To Russia with energetic love,,"Chinese investment in a natural gas project in the resource-rich Arctic region promises to be a game-changer later this year Amega overseas project for liquefied natural gas that will likely burnish China's global profile, contribute to the country's energy security, enhance its geopolitical strategy and bolster efforts for economic rejuvenation is scheduled to start production in the Russian Arctic late this year. The Yamal project - its corporate entity is called Oao Yamal LNG - is located in north-central Russia and is expected to produce 16.5 million metric tons per annum. In September 2013, China National Petroleum Corp, the country's largest oil and gas producer by annual output, acting through its subsidiary, CNPC Russia, bought a 20 percent stake in Oao Novatek's $27-billion (25 billion euros; 21.6 billion) Yamal project for $5.4 billion. Oao Novatek holds a 50.1 percent stake in the Yamal project, while Total holds 20 percent and the Silk Road Fund, 9.9 percent. Novatek is Russia's independent natural gas producer and the country's second-biggest LNG company after state-owned Gazprom. China's investment will help the Russian gas supplier to complete the project, one of the largest industrial undertakings in the Russian Arctic. The new gas production center evolving in the Yamal Peninsula is expected to transform the Russian gas industry. It is also expected to boost China's oil and gas reserves substantially, ensuring a steady, long-term supply. Much of Yamal's output would be supplied to China and other Asian countries, according to Novatek. CNPC pledged to buy at least 3 million tons of LNG per year, said analysts. According to Wang Lu, an Asia-Pacific oil and gas analyst from Bloomberg Intelligence, imports from Yamal may account for more than 1.6 percent of China's gas demand, which is estimated to be 257 billion cubic meters in 2018, assuming a 10 percent compound annual growth rate during the 13th Five-Year Plan (2016-20). ""China's LNG imports will continue to be an important contributor to its supply landscape in 2020,"" she says. ""The project's success and reliability will enhance CNPC's investment return, so this aligns CNPC's interests with Novatek's."" For CNPC, Yamal has strategic importance. It expects the project to foster greater cooperation between Beijing and Moscow in the Arctic, give a fillip to economic development and scientific research, and shape regional rules and norms relating to gas reserves in the region. Li Li, energy research director at ICIS China, a consulting company that provides analysis of China's energy market, says the country had arranged for the steady import of natural gas from Russia even before the Yamal investment. Russia's Gazprom has a 30-year contract with China to supply 38 billion cu m of natural gas annually beginning in 2018. CNPC's participation in Yamal is part of Chinese companies' global strategy and signifies the country's intent to be a key player in the crucial Arctic region. In the process, China will have also helped Russia with its shortage due to sanctions imposed by the US and Europe over the annexation of Crimea. The deal represents a significant step in Russian President Vladimir Putin's push to boost commercial ties with China. China's backing will ensure the project will roll, says an official from CNPC Russia. Elaborating, he says sanctions had rendered financing for the project in US dollars impossible. Several US and European banks have pulled out of financing deals, leaving a void to be filled with China's capital, technology and massive markets. According to Evgeniy Kot, director-general of the Yamal project, the company has sold 96 percent of the project's LNG production to European and Asian customers through 20- to 25-year contracts. Benefiting from the vast natural gas reserves across the Yamal Peninsula, the company signed loan agreements with the Export-Import Bank of China and the China Development Bank Corp for 1.2 billion yuan ($173 million; 161 million euros; 138 million ) in all. For its part, Russia will provide tax incentives to companies involved in the development of the Arctic region, including zero export duty on LNG and special tariffs for condensate oil. CNPC Russia said it is confident Novatek's rich experience in operating in Arctic weather conditions will help the Yamal project. zhengxin@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page27)", -361,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064812.htm,Measure of change,,"Nobel-winning economist Robert Engle suggests improvements to capital allocation for fast-growing SMEs American economist Robert Engle gave Chinese officials some ideas on how to make China's financial sector more efficient. Engle, winner of the 2003 Nobel Prize in economics, along with British economist Clive Granger, was invited to Beijing last week by the State Administration of Foreign Experts Affairs to give his suggestions on risk management in China's capital market because of his expertise in studying volatility. Financial institutions should be subjected to regular stress tests to see if they remain solvent enough in the face of an economic downturn. The results of such tests should be published publicly and become benchmarks for the performance of banks so that they do a more effective job of choosing where the loans go, he says. - Robert Engle, Nobel laureate, makes a speech at an economic forum in Nankai University in Tianjin in October 2016. Photos Provided to China Daily - Engle and his wife Mary attend the forum at Nankai University, where he is an honorary professor. ""I think that many more benefits will come from improving allocation of capital to the fast-growing SMEs, which are also job creators,"" says Engle, 75. He and Granger are recognized for developing the groundbreaking statistical model, called the autoregressive conditional heteroskedasticity, designed to analyze unpredictable movements in market prices and interest rates. The method can also measure systematic risks in financial markets, especially on a short-term basis. ""If you try to predict a year in the future, it's very complicated. If it's a day in the future, that's not so hard,"" he explains. ""If we talk about risk management for financial applications, maybe short-horizon predictions are enough."" Engle earned a master's degree in physics before he went on to acquire a PhD in economics from Cornell University in 1969. ""I decided that I wanted to work on something that more than 10 people in the world will understand,"" he says of the reason behind changing streams in academics. While studying economics was at first a ""slow and painful process"", Engle believes his background in physics and statistics eventually helped him stand out as an economist. ""Because in physics we do experiments to measure some complicated things and figure out what they really mean. That's the same way we do economic analysis,"" he says. A longtime professor of economics, Engle now teaches at New York University's Stern School of Business, where he is the Michael Armellino professor of financial services management. Engle paid his first visit to China in 1985, when he was invited to teach an econometrics course at Renmin University of China in Beijing. During the six-week program, which was sponsored by the Ford Foundation and China's Ministry of Education, Engle and two other American teachers taught students from different parts of the country. Chinese students were rather quiet back then, and he did all sorts of things, including giving them small souvenirs, to get them to talk. As part of the trip, Engle toured Shanghai, Guilin and Chengdu and visited many tourist sites in the cities. ""China has changed so dramatically in 30 years. That's extraordinary."" People in Beijing were still wearing old-style blue outfits in the 1980s, and there were very few cars and everybody was riding a bicycle. It was also hard to find people who spoke English, and he had to get somebody to write down in Chinese the name of his hotel so that he could tell a taxi driver to take him back, Engle says. ""If they (Chinese authorities) can figure out what's the right thing to do, they'll do it. And they've been very good at that,"" he adds. Engle, who is on an advisory board of the Chinese Academy of Social Sciences, comes to China more often these days, attending conferences and giving talks. In 2014, Engle launched a Shanghai branch of the Volatility Institute of the Stern School of Business as part of a New York University initiative there. He is director of the institute. NYU Shanghai, which was established by New York University and East China Normal University, is the first Sino-US university campus. Operated in close partnership with the Stern School and applying tools such as an award-winning model to analyze data, the Volatility Institute at NYU Shanghai provides financial information and analysis of the markets on its website for economists, regulators and even the general public. The Shanghai institute has cooperated with the stock exchange and universities in the southern metropolis, and has also started an annual conference series that brings experts to discuss China's financial system, Engle says. Despite his busy schedule as a high-profile economist and a regular teaching schedule, Engle tries to stick to hobbies like figure skating and dancing. But whenever he gets a chance to relax, he finds a lot of questions running through his mind. ""I always look for simple answers,"" says Engle, who rewards himself with simple pleasures like a cup of coffee every time he figures out an answer. liuxiangrui@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page21)", -362,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064811.htm,When rooster makes a call,,"Apple gets Chinese artists to present traditional themes in a modern way for Spring Festival As Spring Festival approaches each year, Chinese households follow the custom of hanging paintings - usually colored woodblock prints - on their doors and walls to welcome the new year. However, the tradition has changed a little in the digital age. One such painting now appears on gadgets' screens, with the swords of door gods replaced by karaoke microphones. One of the door gods holds a camera and a bird's cage, and behind him are skyscrapers and fancy cars. - Above and bottom: Chinese New Year pictures take on a modern look in the creations by young Chinese artists. Photos Provided to China Daily The peace-themed Chinese Lunar New Year painting, created by Beijing-based artist Ye Hongxing, was first designed on a computer and then turned into a physical work of art - a mosaic of tens of thousands of stickers. ""I combined modern and traditional elements to make it interesting. They can be downloaded as wallpapers on phones and computers,"" says Ye. She is one of the five artists invited by US tech giant Apple Inc to make paintings focusing on reunion, fortune, peace and harvest - traditional themes of Chinese woodblock prints for Spring Festival paintings that date back hundreds of years. Unlike Ye, whose paintings have both electronic and printed versions, the other four artists' works are only online. But pictures by all five artists are shown on screens at subway stops and on skyscrapers, and countless phone screens to celebrate the Year of the Rooster. ""New Year pictures are used to convey people's good wishes for the coming year. They often feature fish to herald good fortune and door gods to signal peace and safety,"" says Ye. The 45-year-old was born in the Guangxi Zhuang autonomous region. Her family would hang pictures of door gods and New Year paintings on the walls when she was a child. Apart from those heralding good fortune, some traditional works were created based on stories from Peking Opera, literature and folk legends. ""You can learn about people's lives in different periods of time through these pictures, such as how they dressed or what they ate. The pictures are different in different places in China,"" Ye says. Ye's work contains motifs that make the door gods look modern. The karaoke microphone, camera, bird cage, high buildings, wheels, cars and a flying astronaut all reflect different aspects of our society today, she explains. Parts of the massive image are made up of stickers that are small in size and feature popular symbols like Hello Kitty and Angry Birds. ""It's the first time for me to create a Spring Festival picture in such a modern way. I thought they were only made by craftsmen, who teach apprentices,"" Ye says. Illustrator Eszter Chen also says it's a new way to represent the traditional genre in the digital era and in a style typical of a younger generation. The 28-year-old, Taipei-based illustrator created an electronic version focusing on the important dinner on the eve of the Chinese New Year. In Chen's picture, friends gathered around dining tables have their phones or handheld devices with them. They either send messages bearing good wishes while eating together or have a video chat with those who are away. Even a rooster has a phone in hand - well, in wing. ""It's common to see such kinds of family gatherings. It's interesting,"" says Chen. She recalls that, during her childhood, Spring Festival pictures were printed on calendars, featuring chubby children or various gods. After the family dinner, people set off fireworks and visited relatives. Chen moved to California after primary school. It was impossible to have many relatives at such dinners there. She says the people in her picture are friends and neighbors from a community, who gather to celebrate the occasion in the era of globalization. Dishes on their tables are from different regions of China and include hotpot, seafood, dumplings and tea. ""Times are changing, and technology is changing, too. But New Year pictures will always be our way to celebrate the festival - just through different media,"" says Chen. Xie Wei, a marketing manager from Apple Inc, says that at a time when people are complaining about the disappearing traditions surrounding Spring Festival, technology is helping to revive them in a way that appeals to youth. dengzhangyu@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page20)", -363,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064810.htm,Reunion of the Year,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong bonds of community and culture. You've probably read all about it in the news - the annual exodus of migrant workers from the cities. For the past week, millions of Chinese have risked smog, snow and fog to hurry home for dinner. The migrant masses would have planned for months and booked their tickets way in advance for this crucial trip. Today is the eve of the lunar new year, a day which will start off the Spring Festival holidays. The meal we're talking about is the all-important reunion banquet, the last dinner of the year for the whole family - tuanyuanfan. It is a time-tested tradition for the extended family to gather for this dinner, no matter how far away they've gone from home during the year. - Clockwise from top: It is a happy occasion with the extended family at the all-important reunion banquet of the year. Jiaozi is a must on the occasion, which symbolizes the changeover from old to new. Mahjong is the icing on the cake. Chuai Chatu / For China Daily For many in China, this is also the only holiday they get to spend with their family, when they can relax for a few days and catch up with friends, eat, drink, play and sleep late before they go back to the grind. It is a happy occasion, a loud raucous celebration with lots of card games, mahjong and merry-making. But most important of all, it is a time for all Chinese to reconnect with their cultural and culinary roots. It is a time to pay respects to the parents by acknowledging and honoring the effort they had invested in the family. It is a time to bond with siblings and cousins, aunts and uncles. It is also a time to feast. The reunion dinner table will be overflowing with the most delicious tastes of home, all appropriately named to usher in peace, prosperity, happiness and good luck for the new year. In the frozen north, a feast of fish is the best way to celebrate. Fish is yu, homophonic with great abundance, and an ingredient that is treasured for its rarity. Huge half-meter monsters are fished from the frozen lakes and rivers in massive operations that involve the whole community. The fish will be seared, then braised in iron pans with sloping sides on which grain pancakes will bake, later to be eaten with both fish and pan juices. Still north of the Yangtze, wheat is the staple and noodles and dumplings appear with monotonous regularity at every festive occasion. For the Spring Festival, dumplings are part of the menu of comfort foods. Jiaozi sounds like the words for transition, symbolizing the changeover from old to new. In many places, the home chefs will place little surprises in the dumplings - a red Chinese date, a little silver coin, a cooked chestnut. The fortunate bachelor who gets the red date in his dumpling will have a sweetheart in the new year, while the chestnut will bring a new baby to the family. The silver coin signifies good luck and prosperity and is probably the most coveted prize. For symbolic dishes served at the reunion dinner, no one does it better than the Cantonese. Every dish on the table is carefully named so the entire menu reflects an abundance of blessings. There will always be a whole fish, niannian youyu, for abundance every year. This dish is usually saved so it can be served again on the first day of the new year, so the riches of the past year will continue to be enjoyed. An entire pig trotter braised with black moss and mushrooms may be the next attraction, facai zhushou. This dish represents wealth and prosperity. Another popular dish is fried diced seafood and vegetables wrapped in beancurd skin and steamed. These little ""money bags"" are called jinyin mantang, or halls filled with gold and silver. Dried oysters, known as hou-see in Cantonese, are often cooked with mushrooms so the businessmen in the family will find a good marketplace for their products and services. The list goes on. It is normally during dinner that the young, unmarried members of the family will get their yasuiqian, red packets of money that will help them enter the new year happily and safely. The festivities will slowly peak after dinner. Once the dishes are cleared and washed, the dough boards will be brought out. In the north, the whole family will start kneading dough and rolling out dumpling skins. Trays of dumplings will be set out, ready for the next day. Traditionally, there will be minimal cooking on the first day of the Spring Festival, a time devoted to welcoming close relatives and friends to the house. As the family gather to make dumplings, the television will be tuned in to the annual variety show put out by national broadcasters, China Central Television. It is entertainment designed to please the whole family, with songs, dances, skits, magic acts and the beloved acrobatic and martial arts displays. If there is an elderly person in the household, the family will be careful to keep bright lights burning as a prayer for longevity. At 11 pm, the start of the hour of the Rat, the New Year officially begins and the young ones will gather in gardens and backyards to light firecrackers and fireworks. For the next 15 days, the normal ban on fireworks will be lifted in all major Chinese cities and there will be firecrackers all day and fireworks displays each night. The card games, mahjong sessions, eating and drinking will go on almost all night, at least until the Golden Rooster crows and ushers in a brand new lunar year. Here's wishing one and all a peaceful and prosperous New Year and a very happy Spring Festival. paulined@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page19)", -364,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064809.htm,Holiday sales are a sign of the ancient times,,"Chinese characters for buying and selling have their roots in history It's the holiday season again, and the celebration of the Lunar New Year can mean family gathering and rampant consumerism. In urban China, people learn Christmas carols primarily in shopping malls and celebrate the New Year by taking advantage of holiday discounts on Taobao. In keeping with this modern-day ritual, our character this time is �?(mǎi, purchase, buy). The traditional version for �?is �? on which you can still find traces of its pictographic past. On top of the character is the �?(wǎng, net) radical, and on the bottom, the �?(b��i, cowry shells) radical. As cowry shells were used as an early form of currency in China and many parts of the world, together, they form the image of goods exchanged with currency and put into a net. By the same logic, the character for ""sell"" is a slight variation of ""buy"" - adding an ""out"" radical on top of the character, indicating the reverse flow of goods from the net. Originally created based on the image of grass growing out of the earth, the ""out"" radical evolved into the ""�? radical. Put this simplified radical on top of �? you get �?(mài) or """"sell"""". Naturally"," like """"to buy fruits"""" or 买水�?(mǎi shuǐguǒ)" -365,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064808.htm,The (r) evolution of an internet celebrity,,"A young woman from China's hinterland, with few qualities believed necessary for success, claws her way to online respectability by following loads of chutzpah with growing sophistication. During the latest US presidential election, most Chinese pundits followed the prognostication of mainstream American media and wrote off Donald Trump as an outlier with more entertainment value than a real chance of winning. A notable exception was Luo Yufeng, who did not belong to any think tank here in China or Stateside. A month before the November election, she said, based on the Twitter accounts of Trump and Clinton that she followed, she sensed more support for Trump. On the day of the election, she posted an article about a trailer driver she knew, which ended up explaining Trump's unexpected victory better than almost all Chinese-language analysis that surfaced in the immediate aftermath of the event. The driver, who Luo claims to have known for several years, used to make a decent living by hauling big loads across the American continent. He could rake in considerable cash during the holiday seasons like Christmas because he was willing to work while others would take the time off for family gatherings. But, with the inflow of new immigrants, his pay flattened out and then started a long decline. Now he had to consider quitting the business. He legally migrated to the United States a decade ago, and his livelihood, unlike that of most middle-class American families, was threatened by the wave of illegal immigrants under a Democratic administration. Luo's article did not draw any conclusions. She just gave a vivid description of one person and his quandary. Luo works in a New York beauty parlor, earning a living by clipping nails for customers. She is the furthest thing from a talking head in an ivory tower or power center. She is plugged in to the grassroots, at least the social segment that is her crowd in terms of linguistic preference and social background. Back home in China, her writing has gained a sizable following. A following that used to mock her for her plain looks and ungainly behavior. In the past year and half, many of her early detractors have publicly apologized for their ugly words of prejudice against her. Each of her articles is followed by an endless string of apologies such as this on the iFeng site: ""Sister Phoenix, I was one of those who had ruthlessly ridiculed you. I didn't know it was a complex thing to evaluate someone. I just took the surface for what it is. I have since discovered your talent and your insight and your perseverance. ""I have read all your writings. And I can say that many of those empty-talking experts are just out there for self-gain. Only you have articulated the hardships of people at the bottom of society like us. My sincerest apology to you."" Sister Phoenix, or Fengjie, is her online moniker, patterned on a character in a literary classic. For several years it was a name people loved to hate, or at least to laugh at. A profile in People magazine called her ""China's most hated reality star"". Indeed, there was reason enough to take her as a joke as she was positioning herself as more or less a clown for the purpose of public attention. Luo, born in 1985, hailed from a poor village in the hinterland. She attended college for three years and worked as an elementary school teacher for two years. Then she decided to head for the bright lights. Moving to Shanghai, she found that competition was more fierce in the big city. She was working at the checkout counter of a supermarket when she began to use the dating game as her platform for self-promotion. She turned herself into an instant laughing stock when she listed her ideal men, who included a couple of Chinese superstars and the US president. Her outrageous remarks, such as her self-assessment as ""one with the highest IQ in 300 years and 300 more years from now"", kept her in the limelight, winning her the title ""worthy of the Nobel prize in chutzpah"". Coupled with her lack of physical beauty as defined by stars, her brazenness stood out glaringly in a culture that traditionally values modesty and self-effacement. Luo did the rounds of the nation's reality shows, but rarely made it to the finals. Just as her 15 minutes of fame seemed to be used up - when a report surfaced saying that television shows that included her were considered ""too vulgar"" by the regulators and faced a regulatory crackdown - she got a visa for the US. After a few years as a footnote to the last internet dynasty, Luo reappeared, this time as a contracted columnist for iFeng, a website previously affiliated with the Phoenix television network. Surprisingly to many, she has mellowed. Yes, she still throws out the occasional repartee that blends a superiority complex with an inferiority complex. But when she uses the form and length of writing traditionally saved for old media, her persona emerges with more subtlety and maturity. She is able to discuss complicated social, political and cross-cultural issues with earthy humor and sharp insight. Luo's observations of American society, seen from the ultralow perspective of a wannabe immigrant, and the contrast she provides with Chinese society in flux, have exalted her to a position rarely achieved by anyone with better education or pedigree. She gains a ringside view of the US far from the office towers of prestigious media and relays it to a Chinese public who would never bother with a newspaper, let alone its opinion page. Maybe Luo had a split personality from the start. When she was still playing the dating game, some of her poems surfaced, revealing a sensitive soul and a writing proficiency on par with professionals. But they were lost in the crazy whirlwind she had helped whip up around her. Jane Eyre would not have taken this route to fame or fortune, but Luo, a product of reform-era China, has even less to fall back on than the character in the Charlotte Bronte novel. She may not have clawed her way to middle-class respectability yet, but nobody can deny her effort. For her latest posting on Jan 12, titled ""I want your blessings and encouragement"", she received a tidal wave of empathy and appreciation, especially from the huddled masses who used to taunt her. Contact the writer at raymondzhou@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page22)", -366,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064807.htm,China must cut its wasteful ways,,"Planners look to big data and other solutions to reduce the enormous amount of food being thrown away Aware that one-third of all food produced in the world is thrown away, governments, institutions and organizations are working on minimizing food waste. In China alone, enough food is discarded in restaurants annually to feed between 30 million and 50 million people. China's challenges were highlighted in late November, when Cheng Shengkui from the Chinese Academy of Sciences told the Food Waste Forum in Beijing that 17 to 18 million tons of food were wasted in China each year from 2013 to 2015. Cheng and his team from the Institute of Geographic Sciences and Natural Resources Research surveyed almost 7,000 tables and 366 restaurants in Beijing, Shanghai and the southwestern cities of Lhasa and Chengdu. - Cooks prepare food at a restaurant in Chengdu, in Southwest China's Sichuan province, on Sept 8 last year. It is estimated that enough food is discarded in restaurants annually in China to feed between 30 million and 50 million people. Provided to China Daily The team interviewed hundreds of people, collated 7,500 questionnaires and weighed 32,000 dishes. Cheng presented the findings at the seminar hosted by organizations including the United Nations Environment Programme. ""It is no secret that food loss and waste is a big problem,"" says Xie Yuhong, deputy secretary-general of the All-China Environment Federation, a nongovernmental organization supervised by the Ministry of Environmental Protection, during the forum. The problems are myriad, from the methane gas released by food waste into the atmosphere to the fact that discarded food could help to alleviate poverty. One piece of good news is that there are multiple ways to reduce this type of waste, says Luca Mantovani, a consultant at PDA cademia who specializes in facilities management. Big data, for example, can help cafeterias at large companies cut down on waste. Some are tying food production to data from smart cards that employees use to enter buildings. In effect, cafeteria operators can know almost exactly how many people are in the building and how many will go to eat. Big data can also determine what dishes are popular and what dishes are not on given days, depending on who is at work. ""There are buildings that go all out,"" says Mantovani. ""The recycling business in China is quite big."" The food that consumers throw away is at the tail end of a chain of waste that starts much earlier. In a 2015 study, the Asia-Pacific Economic Cooperation forum found that 54 percent of waste comes from production, handling, storage, processing and packaging - in other words, in the supply of food. The remaining 46 percent is on the demand side of the equation, including distribution and consumption. Campaigns are under way to reduce this massive footprint. In 2013, for example, the United Nations Environment Programme along with partners launched the Think.Eat.Save initiative to reduce waste. At a more local level, the issue is also significant. In Hong Kong, waste of all types is straining the city's infrastructure to its breaking point. Most discarded food in the city ends up in landfills along with other types of municipal solid waste, which is general garbage from the domestic, commercial and industrial sectors. Some 5.5 million tons of solid waste ended up in Hong Kong's landfills in 2015, with a full third of that being food. The numbers have risen every year since 2010. ""The current practice of disposing of biodegradable food waste at landfills is not sustainable,"" says the Hong Kong Environmental Protection Department. ""Reducing food waste disposal at landfills is an important part of the government's plan for waste management."" Food is the single largest category of waste in Hong Kong's landfills and the amount is growing every year. Programs are in place to deal with the problem and the government is working to implement a strategy. ""Our wasteful habits put tremendous pressure on the entire waste chain,"" noted the Hong Kong Environment Bureau (which formulates policies to protect the environment and also enforces related legislation) in a blueprint for the sustainable use of resources for 2013 to 2022. ""We have a large 'waste load'. Over the years, Hong Kong people have become more, not less, wasteful,"" it says. Implemented in 2014, the blueprint called for a reduction of solid waste disposal of 20 percent by this year and 40 percent by 2022. By 2013, the daily per capita rate of municipal solid waste had risen to 1.27 kilograms, from 0.97 about a decade earlier. The numbers continued to rise through 2015. At the same time, recycling rates dropped by about a quarter in the decade leading up to 2015. ""It is a pretty protracted process,"" says Gerald Patchell, an associate professor at the Hong Kong University of Science and Technology. Municipalities in Japan, South Korea and North America all move much faster. In the United States, for example, San Francisco processes all of its waste. ""People make excuses for Hong Kong, and to a certain extent it is valid, about the structure of the city and the environment in a lot of the buildings not having facilities for this type of thing,"" Patchell says. ""Probably the biggest bugbear is this idea that everything is dealt with in Hong Kong."" In other large cities around the world, trash is sent to the outskirts or hinterland. Hong Kong does not have a big enough region to do that, unless it sends its waste to the Chinese mainland. Personal space is also smaller in Hong Kong, so not a lot of room exists to store, say, multiple containers for different types of trash. One effective program is run by the Airport Authority Hong Kong, the government body which manages the international airport. Since 2003, it has been building and expanding the infrastructure to recycle and dispose of food waste, which is composted into soil used for landscaping. In 2011, the program expanded to collect waste from 17 partners and distribute it to a company that converts it into animal feed. A pilot program in 2014 included a shopping mall near the airport. Some 1,200 tons of food waste were collected from the airport in 2015. That same year, 32 tons of surplus food was picked up in Hong Kong by Food Angel, a nongovernmental organization, and was used to produce 25,000 meal boxes for the city's poor. The airport program is unique but relatively small compared to the thousands of tons of waste that ends up in Hong Kong's three operating landfills. The Hong Kong government aims to develop five to six organic waste treatment facilities that can recycle as much as 1,500 tons per day. The first of these plants began construction in 2014 and is expected to be commissioned this year. It has the capacity to treat as much as 200 tons per day. A second plant, with a daily capacity of 300 tons, is still in the planning stages. But the sheer amount of food waste is creating or exacerbating problems in Hong Kong. There is simply no space to put all that waste. Already, the city's three landfills are running out of space and will all be full by 2019. Hong Kong has already closed 13 landfills. Joyce Chan is the chief operations officer at the Foodlink Foundation, a Hong Kong charity dedicated to reducing food waste. She noted that repurposing food to feed those in need would ""not have an enormous impact on the total amount of food waste that is being disposed into our landfills, but it is still necessary, especially when there is a social need for good-quality, edible food"". But dealing with the issue will require a holistic approach, according to Chan, who says the biggest issues relate to the ""displacement of responsibility"". ""We should not assume that food waste is the responsibility of the food industry, as it is largely demand-driven,"" says Chan. ""If consumers are more conscious of the amount of food waste they generate and everyone plays a role in minimizing their personal food waste, then we can do better as a community."" For China Daily (China Daily European Weekly 01/27/2017 page18)", -367,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064805.htm,"From a young age, a ticket to a dream role in paradise",,"When Ahmed Asim was a boy his career path had already been laid out before him ""My job is to make people feel at home, literally, since this has been my home for the past 30 years,"" says Ahmed Asim, room director of the St. Regis Vommuli hotel in the Maldives. Between his generation and that of his parents, his country has turned from a gathering of specks in the Indian Ocean to one of the world's best-known and most desired escapes. Yet for Asim, the notion of escape is virtually nonexistent, if not laughable. ""For me, this only provides an initiation to the outside world as they are coming to us in planeloads."" His entry into this world came early, he says. When he was at primary school, property owners invited him and his classmates to tour the resort islands, where human endeavor tries to emulate natural beauty in creating paradise on Earth - sometimes with unintended results. ""'Wow!' was my reaction,"" Asim recalls, casting an incredulous look. ""Then I told myself: 'Someday I'm going to work here.'"" The wide-eyed child has given way to a soft-spoken man with a confident air, and in the meantime he has gained a diploma in hospitality and worked as a trainee butler and then as a butler for many years in a number of hotels, some of them luxury ones. He joined the St. Regis at Vommuli as room director in October, when preparations were being made for the hotel's grand opening. ""Between 50 and 60 percent of our 300-strong staff are Maldivians,"" Asim says. ""Quite a few of us, including me, are in management."" Spending the bulk of his time in air-conditioned rooms or traveling in buggies from villa to villa, Asim's life is a world apart from that of his parents, who have seven children in total. ""Like most Maldivian families of their generation, my father made a living out of fishing while my mother did household chores. The sea around here is probably the calmest on Earth. I've never heard of anyone who died out fishing in the sea. But still, the sun and the wind can be unforgiving; that's why few young people are involved in fishing today."" His father usually left home about 5:30 am and fished for tuna all day before returning in the evening, he says. ""Ours was a small boat. There were also bigger boats on which one can go out fishing in the sea for weeks at a time. But whatever you go out in, small or big, fishing in the Maldives has to be by pole instead of by net. We do angling all the time. The fish nets are reserved only for the capture of baitfish - fish used as bait when angling. ""Our government has been very aggressive when it comes to environmental protection. That's why we still have what we had 20 or 30 years ago."" Asked whether angling is a financially viable way of fishing, Asim says that on a good day, a good angler can catch up to 2,000 tuna. The fish tend to appear in groups, and when you really think about it, that kind of catch suggests the fish must be virtually jumping onto the hook, if not directly into the boat. These days, though, fishing has decreased compared with 20 years ago. Asim's parents stopped fishing about 15 years ago and now live in Male, the country's capital. The catch, apart from fulfilling local needs, goes on to the dining tables of tourists. At the St. Regis, amid offerings of caviar, lobster, truffle, foie gras and Kobe beef, I discovered a course unpretentiously titled ""Catch of the day"". I tried it and did not regret my decision. Later, as I spent my last day in the Maldives at the Sheraton on Full Moon Island, I encountered the same offering and realized that it was a local signature dish. Ayyoub Salameh, director of culinary service at the St. Regis, says the hotel buys 600 kilograms of fish each day from local fishermen for the consumption of guests and hotel staff. It also buys produce from local farmers. ""I don't think I'll stay in the country for life, so I'm going to deliver something for it,"" says the master cook, a Jordanian, who is also creating a garden for local spices and herbs. Similar willingness is also expressed by Wong Chiu Man and his wife Maria Warner Wong, the architectural duo and Harvard graduates who designed the St. Regis at Vommuli. ""The Vommuli House is inspired by the extending roots of banyan trees,"" Warner Wong says. ""The parts were prefabricated and pre-engineered before being sent to Vommuli for rapid erection with the help of Maldivian workers. In this way we have tried to be environmentally friendly while passing on construction skills to locals."" Once, the couple was invited for a drink at a nearby island, only to discover that the hostess, a Maldivian who had previously worked on the construction site at Vommuli, had fashioned her little bar using discarded plywood she had gathered from the St. Regis site. Wong Chiu Man, asked about any misgivings he has about the hotel's design, said that if he had his chance again he would pay greater heed to any risks such a project posed to the environment. ""The construction of the water villas did cause the bleaching of corals on a scale I hate to see."" But as tourists pour in, won't further stress be put on the country's unspoiled beauty and fragile ecosystem? ""I don't see that happening,"" Asim says. ""First of all, the Maldives is a high-end tourist destination, as we cater to a niche market. This is especially true in our case. For the moment, the government has adopted a very positive attitude toward developing tourism. A college in Male offers a master's degree in hospitality and tourism."" However, he acknowledges that even though tourists started coming to the Maldives in the 1970s, it is only in the past five years that the country's tourism industry has really taken off. Asim, married with a two-and-a-half-year-old son, sees differences in the ways childhoods were spent before and now. ""For me it was just the sun, sand and sea; for him it's more about colorful toys."" Because of Asim's job, he can see his wife and son as often as he would like to. Fan Qianyi, a Chinese diving coach at Vommuli, says this kind of family living arrangement is common among young Maldivians. ""I've been here for four years but haven't seen many Maldivian women. Usually men work outside, on resort islands, while women and children stay behind, in what's known as the local islands. It reminds me of migrant workers in China - certainly not the best solution."" Twenty years ago, when Asim first visited a luxury hotel at a resort, he dreamed of being part of what he saw. He has higher hopes for his son. ""I won't object if he wants to go into the tourism industry - my parents have been very encouraging and all my brothers work in catering - but it would be great if he becomes a doctor or a lawyer."" For some Maldivians, a simple life, though hard, may have started to change along with their long-held sense of contentment. But with all the building and opening of luxury hotels, is there any talk about possible gentrification, the effect of which might be mitigated by the geographical isolation of each island? ""Such an idea has yet to come to the Maldives,"" Asim says. (China Daily European Weekly 01/27/2017 page16)", -368,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064804.htm,Air pollution concerns potential overseas talent,,"Fifty-five percent of polled foreign workers worried about environment China's problems with air pollution are undermining government efforts to make the country more attractive to overseas talent, according to recruitment professionals. A survey by Spring Professional, a subsidiary of human resources company Adecco Group, found that interest among top foreign talent in working in China has risen nearly 150 percent over the past five years. Yet fears over the environment and climate have also increased. Fifty-five percent of 2,000 foreign employees that Spring Professional polled last year - who had each lived in the country for at least five years - said they had concerns about air quality, up from 23 percent in 2012. - China has been watched closely by foreign job applicants in recent years due to the rapid development of its economy and its openness to overseas talent, but air pollution has hurt the recruitment. Guo Junfeng / For China Daily Air pollution has hurt recruitment for the past two years, says Ma Erman, head of overseas recruitment for language training company EF English in Shijiazhuang, Hebei province. ""During interview processes, foreign applicants frequently check the air quality index,"" she says. ""Many will turn down an offer after thinking carefully about their health. For those who work here in Shijiazhuang, all of them will visit the hospital several times, especially during winter. ""Hebei doesn't have many advantages to compete with coastal provinces, which have better economies and offer higher salaries, and air pollution is making recruitment even more difficult."" According to data provided by the Ministry of Environmental Protection, the average daily concentration of PM2.5 - small particulate matter that is hazardous to health - in the country's 31 provinces, autonomous regions and provinces was 47 micrograms per cubic meter last year, down by 6 percent from 2015 levels. He Kebin, dean of Tsinghua University's School of Environment, predicts it could take 10 to 15 years for most of the heavily polluted Chinese cities to meet the national air quality standard. China has been watched closely by foreign job applicants in recent years due to the rapid development of its economy and its openness to overseas talent. Hu Xin, a senior consultant at Spring Professional, says China has become more competitive in the talent war compared with five years ago. ""China has an advantage over European countries, whose economy, social order and political situations are deteriorating,"" Hu says. ""In 2015 and 2016, many private firms in China had a growing demand for high-end overseas technical talent and they are willing to provide attractive salaries and opportunities for promotion."" However, many expats are having second thoughts as air pollution has become a long-term issue. Will Suh, 27, stayed in Beijing for six months last year. ""I miss China, but I had to come back to California. Maybe I will go back to China, but I think I will choose Shanghai or Guangzhou,"" he adds. suzhou@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page15)", -369,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064803.htm,Festival demand soars for fake friends,,"Bian Yong is available for rent this Spring Festival. Tired of being pestered by relatives for still being single, he has placed an online ad offering to pose as a fake boyfriend for a low fee, mainly out of curiosity and in the hope of helping someone else in the same situation. ""I'm a victim of my parents' dissatisfaction,"" says the 32-year-old, who works in Shanghai and usually returns to his hometown in rural Anhui province for the holiday. ""Instead of enduring more nagging, I'd rather pretend to be a woman's boyfriend to ease the pressure on her."" Bian uploaded his ad to 20py.com, one of about five websites that have popped up in recent years to cater to the growing trend of people taking fake partners - often total strangers - to family reunions. Business for such websites has been booming ahead of Spring Festival. ""For the month leading up to Chinese New Year, we've handled more than 1,200 connections. Normally, it's about 100 a month,"" says Wang Jianhua, a spokesman for Zunvyou, a website based in Shenzhen, Guangdong province. (The name means ""rent a girlfriend"".) Prices soar at this time, too. ""It costs about 1,000 yuan ($145; 135 euros; 116) a day right now, compared with about 600 yuan on average,"" Wang says, and that doesn't include transportation and meals. Demand is so high that such websites, which first began to emerge in 2014, make as much at Spring Festival as they do during the rest of the year combined. To post an ad, users must register with their personal information, including age, occupation and height, and upload a headshot. Clients can list special requirements. They are required to pay a deposit - usually half the rental price - and must submit proof of identity and employment. Platforms charge a service fee of 10 to 20 percent. Wang says most of Zunvyou's clients work in large cities but come from smaller cities or rural areas, where people are generally expected to be married by their mid-20s. 20py.com, based in Hangzhou, Zhejiang province, has more than 3 million registered members. The ratio of men to women is 10:1. Such a gender imbalance is common, which Wang put down to women having more safety concerns. He says Zunvyou and other sites have introduced measures to prevent potential threats to personal safety and property. ""We make clients meet first in a public venue and send their location to our employees when they take a 'partner' to their hometown,"" he says. ""We also encourage them to keep their cellphones switched on at all times in case of emergency."" While some offer themselves up for rent as a way to make money, Bian says he is charging only 200 yuan a day. Contact the writers throughzhouwenting@chinadaily.com.cn. (China Daily European Weekly 01/27/2017 page14)", -370,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064802.htm,"Be cautious, China urges the US",,"Beijing says it will protect its territory after the Trump administration's threats over maritime disputes China called on the United States on Jan 24 to respect facts and ""speak and behave with caution"" after the new US administration of President Donald Trump hinted it would take a tougher stance on the South China Sea. ""China's determination to protect its own territory and sovereignty will remain unchanged, regardless of what other countries say or what changes occur,"" Foreign Ministry spokeswoman Hua Chunying said at a news conference in Beijing. China will firmly safeguard its maritime sovereignty, as it holds talks with countries directly involved, to maintain stability in the region, she said. Hua had been asked to respond to White House spokesman Sean Spicer's comment on Jan 23 that ""the US would make sure that we protect our interests"" in the South China Sea. On Jan 11, Trump's secretary of state nominee Rex Tillerson said that China should be denied access to the South China Sea islands. Hua, when asked whether China worried that the Trump administration would take further steps regarding the sea, said that China is not the only country concerned about that. ""China's position on the South China Sea is consistent, and our actions are justified,"" she said. Tensions have cooled over the South China Sea issue since China and other countries involved, including the Philippines, agreed to peacefully solve disputes through negotiations. In October, Philippine President Rodrigo Duterte made a state visit to China, during which the two nations agreed to restore bilateral ties that had been jeopardized by the ruling of an arbitration unilaterally launched by his predecessor, Benigno Aquino III. ""Any responsible country should be glad to see this trend, and play a positive role in promoting regional peace and stability,"" Hua said on Jan 24. Li Haidong, a professor of US studies at China Foreign Affairs University, said the Trump administration's attitude toward the South China Sea is similar to his predecessor's - namely, emphasizing disputes there. ""While Obama dealt with it in so-called multilateral and legal ways, Trump might try to get rough and try to overwhelm China with force there,"" he said. The South China Sea will continue to be an increasingly disputed area between the two countries, he speculated. However, Li said, it remained to be seen whether Washington would follow up on Tillerson's proposal because of ""Trump's unpredictability and the different opinions within the Cabinet"". ""The Trump administration might make an adjustment, adopt a more practical China policy after six months, when it sees it has failed to force China to concede to its aggressive manner regarding issues Washington believes are critical,"" he added. Teng Jianqun, a senior US studies researcher at the China Institute of International Studies, said the Trump administration will continue to test China on various issues, including trade and security, but China will never compromise on territorial issues. Wang Qingyun contributed to this story. Contact the writers at anbaijie@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page15)", -371,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064801.htm,New child policy increases births,,"The universal second-child policy implemented early last year was a major factor in raising the number of births in China to 17.86 million last year, an increase of 7.9 percent and the highest annual number since 2000, according to the top health authority. The number of newborns increased by 1.31 million compared with 2015. The portion of the births to couples who already had at least one child rose quickly to at least 45 percent last year, Yang Wenzhuang, a division director of the National Health and Family Planning Commission, said at a news conference on Jan 22. The proportion was around 30 percent before 2013. ""It demonstrates that the universal second-child policy came in time and worked effectively,"" Yang said. - Second-child policy implemented early last year was a major factor in raising the number of births in China to 17.86 million last year. Provided to China Daily ""Some regions, mostly large cities in eastern areas, began recording second children as comprising more than half of local newborns,"" he added. Yang expected that by 2020, the number of new births each year would stand between 17 and 20 million in China, citing expert estimates. Ma Xiaowei, deputy director of the commission, said recently a baby boom triggered largely by the new policy would probably come within the next two years. For that, the commission plans to add 140,000 more maternity health workers in the coming years, he said. The top decision-makers intensified efforts in late 2013 to adjust birth policies in place for three decades that limited most couples to just one child, hoping to address major demographic challenges such as an aging population and a looming labor shortage. Starting in early 2014, couples of which one person was an only child could have a second child. The universal second-child policy was implemented at the start of 2016. ""The long-term effect of the universal second-child policy is very helpful to China's sustainable development,"" says Yuan Xin, a professor of population studies at Nankai University in Tianjin. By 2050, the policy is expected to bring about an extra 30 million working-age people and reduce the nation's aging rate by 2 percent, commission projections show. But matching policies have not yet been refined to provide good support for couples willing to have more than one child, particularly in terms of maternity education and health services, Yang conceded. A 2015 survey by the commission found nearly 75 percent of respondents were reluctant to have a second baby, largely due to economic burdens. Other major concerns are age, parents' career development and a lack of caregivers, it showed. Yuan suggested the government introduce support measures like favorable tax policies, prolonged maternity leave and education for families with two children. shanjuan@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page14)", -372,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064800.htm,"Beijing, Manila agree on $3.7b in shared projects",,"Officials representing Beijing and Manila shook hands on joint projects worth $3.7 billion on Jan 23 during a meeting in the Chinese capital. The agreement was the latest evidence of warming ties between China and the Philippines. While the specific types of deals and locations were not revealed, the package is the initial installment of planned cooperative projects aiming to improve livelihoods, Minister of Commerce Gao Hucheng told reporters at a news briefing. The briefing came after discussions with a delegation led by Philippines Finance Secretary Carlos Dominguez. Dominguez, in China from Jan 22 to Jan 24, led a heavyweight delegation, including ministerial officials responsible for areas such as economic planning, telecommunications, financing and public projects. Foreign Ministry spokeswoman Hua Chunying said that several Filipino ministers have led delegations to China recently to discuss such areas as trade, infrastructure and energy. It has ""fully showcased the consistent increase in mutual trust and increasingly deepened cooperative relationships,"" Hua said on Jan 23. Also on Jan 23, the two sides agreed to a speedy resumption of meetings of the China-Philippines Joint Commission on Economic and Trade Cooperation, an important body that ground to a halt in 2012 as the relationship deteriorated over territorial sovereignty issues. Vice-Premier Wang Yang, who met with the Philippines delegation, said the countries also should gear up their joint efforts in drafting a plan for bilateral economic and trade cooperation and press ahead with their priority bilateral projects. China is now the second-largest trade partner of the Philippines. The relationship warmed markedly after Philippines President Rodrigo Duterte paid his first state visit to China in October. Duterte is expected to make a second trip to China in May to attend an international forum on building the China-led Belt and Road Initiative. Manila is seeking greater infrastructure cooperation within the initiative's framework, Dominguez said. ""We think that both our governments, as well as both our peoples, will move quickly to support (projects under) this initiative in the Philippines."" Luo Yongkun, a researcher in Southeast Asian studies at the China Institutes of Contemporary International Relations, noted that although the Philippines' economy has seen rapid growth in the past few years, it is still weak in infrastructure and is in need of foreign investment. Contact the writers through zhangyunbi@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page14)", -373,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064799.htm,Smoggy New Year,,"More than 13 cities in Hebei and Henan provinces, including Shijiazhuang and Zhengzhou, will welcome Spring Festival eve with smog, the national environment ministry said on Jan 23. Starting Jan 23, vast regions in the provinces of Hebei and Henan will see an increase in smog, which is forecast to persist and worsen until Friday, Spring Festival eve, the Ministry of Environmental Protection said. The smog is expected to gradually disperse from north to south due to winds. The National Environmental Monitoring Center also forecast severe smog for parts of Hebei, Shandong and Henan provinces, though it said the forecast for the coming weekend might not be accurate due to the changing weather and emissions situation. Among the 13 cities, six were listed in the top-10 cities with severe air pollution in 2016: Hengshui, Shijiazhuang, Baoding, Handan and Xingtai of Hebei, and Zhengzhou of Henan. The ministry has sent the forecast to the governments of these areas, suggesting they issue emergency alerts for air pollution in advance, and saying that violators will be punished severely. The ministry said it will closely monitor major emission sources such as large companies via remote sensing and online monitoring technologies. (China Daily European Weekly 01/27/2017 page15)", -374,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064794.htm,Democracy or humility? Why not both?,,"Recent shock polling results have opened the world's eyes to the fact that no form of government is totally flawless Democracy, as Britain's wartime prime minister Winston Churchill is often quoted as saying, is the worst form of government except for all the others. Even if he did not say precisely that, it is how his pithy aphorism is best remembered. It is a handy phrase for democrats to fall back on when democracy appears to be under pressure. China's People's Daily reflected recently that Western-style democracy used to be recognized as a historical driver of social development. But now, it has reached its limits. In an analysis that will find an echo among many disgruntled voters in the West, it suggested democracy had been hijacked as a weapon for capitalists to boost their profits. A widespread sentiment within Western electorates, that they have been ignored and left behind by self-perpetuating elites, is seen as a key factor in recent election and referendum results in the US and Britain and may play a role in future outcomes of 2017. On the face of it, the Brexit referendum vote in Britain and Donald Trump's victory in the US should be regarded as a vindication of the democratic system - the people were given a choice and they have made their decision. Both results, however, have spurred soul-searching about what these outcomes mean for the future of a political system that is intended to safeguard the interests of all its citizens, not just those who picked the winner. A worrying trend that has emerged is a ""winner-takes-all"" attitude among the victors. Among some who voted for Brexit on the ostensible grounds that it would allow the UK to regain its democratic rights from an undemocratic European Union, a discomfiting tendency has emerged to delegitimize the views of those who continue to warn about the negative consequences of that decision. For example, the UK's pro-Brexit Daily Mail newspaper described a legal challenge to launching Brexit without the assent of Parliament as an unpatriotic attempt to subvert the will of the people. It is an attitude of ""We won, you lost, shut up"". Similarly, in the US, there are fears that the new administration has little tolerance for the kind of dissent displayed by demonstrators on the streets of Washington the day after President Donald Trump's inauguration. Those fears may be misplaced and, to be fair to Trump, he conceded that ""peaceful protests are a hallmark of our democracy"" after earlier castigating the demonstrators for overlooking the results of the election. A prevailing view among liberal analysts, however, and more than a few conservative commentators, is that Trump's brand of populism poses a threat to American democratic values. A Washington Post article by veteran conservative commentator George Will referred to Trump's ""feral cunning in manipulating the masses and the media"" and implicitly criticized the hostile tone the new president has adopted toward China and others. Others have decried the authoritarian tendencies Trump displayed during his campaign and his alleged anti-democratic behavior since the election. ""Donald J. Trump's election has raised a question that few Americans ever imagined asking: Is our democracy in danger?"" academics Steven Levitsky and Daniel Ziblatt told readers of the New York Times back in December. Little over a quarter-century ago, the American political scientist Francis Fukuyama was arguing that the spread of liberal democracy and free market capitalism might be the endpoint of humanity's social evolution. It has been something of a rocky road since then. But it is perhaps a little premature to write off democracy as a system that has brought no positive benefits to those societies where it has evolved. Recent events should, however, generate some humility within the democratic camp and a recognition that other societies with other histories and cultures have taken a different road. Within the international context, what is important is to reinforce the partnerships that have evolved since World War II among societies at various stages of social, political and economic development to tackle the daunting challenges that we all face. The author is a senior media consultant to China Daily. To contact the writer at harvey.morris@gmail.com (China Daily European Weekly 01/27/2017 page11)", -375,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064793.htm,Ranking China's global brand builders,,"As the Chinese economy continues its transition from low-cost production to high-quality premium brands, the new year began with the release of the first BrandZ Top 30 Chinese Brand Builders' ranking and report earlier this month. This report is the result of groundbreaking, new research that provides tremendous insight into the brand-building progress made by Chinese companies in overseas markets. The research methodology focuses on overseas consumers' attitudes, beliefs and feelings toward Chinese brands. Chinese companies and China's image have been subjected to considerable investigative research over many years, but rarely have Chinese product and service brands been singled out with an in-depth, mainly qualitative research study. In total, 167 established Chinese brands were included in the study, for which consumers were surveyed across seven of the world's most developed market economies: the United Kindom, France, Spain, Germany, the United States, Australia and Japan. World-leading advertising and public relations agency WPP and global market research company Kantar Millward Brown collaborated with Google to produce the pioneering report. The report's overall findings make for extremely encouraging reading for those Chinese brands hoping to continue their expansion deeper into overseas markets. More and more Chinese brands now enjoy increasing brand awareness levels. But the report's most significant claim concludes that the circumstances are now very favorable for Chinese brands to build powerful brands based on their high quality and emotional connections with overseas consumers. Lenovo, China's PC giant and the world's largest producer by sales volume, was named the most powerful Chinese global brand builder at present. This should come as no surprise, given Lenovo's clear commitment to international expansion ever since its audacious acquisition of the IBM PC brand well over 10 years ago. Close behind Lenovo comes another consumer electronics brand success story in the shape of Huawei, China's giant multinational networking and telecommunications equipment and services company, headquartered in South China's city of Shenzhen, in Guangdong province. In recent years, Huawei has proven it can compete with even its fiercest rivals, such as Apple and Samsung. Huawei's acclaimed P9 smartphone provides demonstrable proof of the company's commitment to technological innovation, high quality standards, brand building and it is rumored that an even better model, the Huawei P10, could be launched very soon. Chinese e-commerce giant Alibaba is ranked third, which should also come as no surprise, given its fairly recent listing on the US stock exchange. Chinese consumer electronics brands represent a large share of the higher-ranked brands, with smartphone brand Xiaomi coming in at number 5, the third consumer electronics brand in the top 5. The report finds that these higher-ranked brands now compete far less in price than they used to and have gained an enviable reputation for quality, reliability and service in the minds of overseas consumers. But in addition to a cluster of strong consumer electronics brands, Chinese internet brands are also making more than a good name for themselves around the world and are seen by many overseas consumers as very competitively innovative. The report does still present challenges facing Chinese brands in their quest for global recognition and relevance. Overseas consumers, despite growing acceptance of and trust in Chinese brands, reveal an almost habitual reach toward longer-established global brands, rather than the Chinese ""new kids on the block"". But even this habit appears to be waning, as Chinese brands prove themselves more and more and rely on price less and less. It is also apparent from the report that consumer likelihood of purchasing a Chinese brand over an established, non-Chinese rival brand varies from country to country. In France, Germany and Spain, for instance, consumers appear far more likely to consume a Chinese brand, while Japanese, British and American consumers still hold stronger attachments to locally produced brands. Furthermore, geographical proximity can, at least partially, contribute to brand recognition. There may also be some sort of ""hangover"" effect taking place, due to which American and Japanese consumers still hang on to the past, even the very recent past, when their countries were widely seen as technological pioneers. But now, according to the study, consumers are increasingly looking to China and Chinese companies for the latest technology breakthroughs, making now the most opportune time for Chinese brands to penetrate global markets. Gone is China's image of low prices and low quality in its products and brands. This decline in negativity, which dogged Chinese brand building in the past, has also been matched by an increase in consumer involvement when deciding on brand consumption choice. The report finds that fame alone is no longer as significant a factor as it once was when consumers choose brands. Instead, a more rational, conscious and self-confident consumer now places tangible benefits and relevance higher. This has helped Chinese brands compete with brands which have enjoyed international fame for far longer. Harnessing the power of the internet also explains the international rise of many Chinese brands, such as Alibaba and Tencent. Chinese, internet-driven brands have shown that it is not necessary to initially focus on the domestic market to ensure steady growth, but that internet-driven innovation can allow a brand to explode on to the global scene with almost overnight success. Despite a welter of positive findings, the report does also provide a sobering assessment of the challenges facing Chinese brands in increasingly competitive overseas markets. High among these challenges is the need for even more creativity and innovation, perhaps not in the use of the latest technology, but in brands' marketing initiatives. Innovation in technology is an absolute necessity on today's global battle of the brands, but it is not on its own sufficient. Brands have to build on this very tangible form of growth with layer upon layer of emotional meaning that resonates with consumers' increasing need for emotionally-fulfilling lifestyle experiences. Creativity in all aspects of a brand's appearance and promotion is now the next hurdle for Chinese companies to overcome. But even here, there are encouraging signs, with Chinese companies such as Huawei investing heavily in sports and entertainment sponsorships to build emotional connections with overseas consumers, augmenting its reputation for quality and service. So what could this all mean for European businesses? Should Chinese brands be seen as friend or foe? At a glance, the answer to this question may appear to be the latter, but looking into the question further should yield a different conclusion. This is good news for European industries in which the rise of Chinese brands internationally represents many substantial opportunities. Chinese brands will now be seeking more long-term cooperation with European partners all along the supply chain, for example. European brands can also now see their Chinese competitors as an opportunity to learn from their technological excellence, in particular. The idea that the rise of Chinese brands internationally poses a significant threat should be dispelled when pinpointing the sources of Chinese brands' success. It was, and still is, the firm presence of Western brands across the China mainland that initiated this brand-building path. Chinese companies learned extensively from these newly arrived Western brands and were spurred on to become even more competitive than their established Western rivals. If Chinese brands can rise to the arrival of Western brands in China, then surely European brands can do likewise now that more and more Chinese brands have arrived in their backyard. The author is a visiting professor at the University of International Business and Economics in Beijing and a senior lecturer at Southampton University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/27/2017 page10)", -376,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064792.htm,China could withstand a trade war,,"Nation has the resources to survive Trump's threatened onslaught and create prosperity internally In the Chinese press, offline and online, business commentators are nowadays all talking about the same thing: the coming trade war with the United States. But whether there will be a full-scale trade war is up to Donald Trump, because that's what he said he wanted. What the Chinese should do is not just talk, explaining that trade war isn't a good thing. They can do many things, starting right now, to make the economy less vulnerable to outside influences and stronger against imminent trade war attacks. No matter on how many fronts and how seemingly powerful the trade war is, it comes from the outside after all. How much resistance an economy can mobilize depends primarily on internal factors. Having long foreseen the unsustainability of its export-driven growth since the 1990s, China has, beginning almost 10 years ago, been gradually reducing its dependence on foreign trade. Not only has the total volume of its exports been in decline, the ratio between export and total GDP fell from 37 percent 10 years ago to around 20 percent, according to the World Bank. Although it is higher than the US level, it is lower than that of many trading nations in Asia and Europe. Admittedly, in volume, the figure for China's export of goods to the US is still much larger than that for imports, registered as $482 billion versus $116 billion by the Office of the US Trade Representative. But a large proportion of it was made-for-US consumer brands. Should US businesses discard the production they have partnered with in China and ship the $300 billion-plus-worth of business entirely home, that would be more than 2 trillion yuan ($308.6 billion; 208.6 billion euros; 184.9 billion), as compared with China's total GDP of some 74 trillion yuan in 2016, or less than 3 percent of the latter. It may not be extremely hard for China to redirect that amount of productivity to other markets, domestic and foreign. At least mathematically, Chinese society has become different from the way it was 20 years ago. A rise in the general income level in coastal cities should have created enough middle class consumers who want to spend more, evidence of which is also seen in data for the spending of Chinese tourists abroad. With smart management, China may better utilize that new potential of its society, to provide its middle class consumers with goods of better quality and better services. One handy example is the rapid expansion of the high-speed rail network. At the beginning of the rail modernization program, many people doubted its commercial viability. In fact, many of the long, hugely expensive railways cannot be expected to generate a profit in a just two to three years. But the nation's consumer behavior has changed quickly, with an increasing number of people willing to travel for holidays and weekends on the speedy and decent train rides to cities other than their home towns. In 2015, by serving 4 billion visitors, the nation generated 4 trillion yuan in tourist revenue, a much larger amount than its merchandise trade surplus with the US. In 2017, some major high-speed railways were completed to link the more developed coastal cities with the scenic towns in the mountainous West China. With good security protection and more entrepreneurial initiatives, China's ""high-speed rail economy"" alone can generate enough to compare with the GDP of a medium-sized nation. So in the face of Trump's statements, the best defense China can have is to never get distracted by his attacks and deceits and be steadfast in pursuing its own economic reform. This is the most effective way China can win the future trade war. The government should do a better job not only in investing in large infrastructure, but also in protecting small enterprises and private initiatives - with good laws and policy terms. It should start acting now. The author is editor-at-large of China Daily. Contact the writer atedzhang@chinadaily.com.cn. (China Daily European Weekly 01/27/2017 page13)", -377,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064791.htm,Momentum gives hope in a challenging year,,"Despite uncertainties, indicators are good for reasonable growth, giving the nation's policymakers some leeway While both global trade and China's economy enter 2017 with decent growth momentum, we expect GDP growth to ease to 6.3 percent this year due to a harsher climate for China's exports in the United States, slower real estate investment and, importantly, a change in tone of policymakers toward somewhat less emphasis on growth. Real GDP growth edged up to 6.8 percent year-on-year in the fourth quarter of 2016 as services output momentum picked up. This brought whole-year GDP growth to 6.7 percent, down from 6.9 percent in 2015 but comfortably exceeding the ""bottom line"" of the 6.5 to 7 percent target range. However, this was at the cost of a further rise in leverage. Overall credit - total social financing excluding equity financing, but including local government bond issuance - grew 16.1 percent in 2016. Rebalancing continued last year. With the service sector outpacing industry and price changes also in favor of services, its share in GDP climbed by 1.2 percentage points to 51.9 percent. Investment momentum picked up in the fourth quarter of 2016, having weakened mid-year, with growth of fixed asset investment rising to 7.9 percent, supported by some improvement in corporate investment. Surprisingly, real estate fixed asset investment also accelerated again in the fourth quarter in spite of measures taken in large cities to contain housing price increases. Consumption remained robust in the fourth quarter, with real retail sales growth 9.1 percent, although passenger car sales slowed in December. The growth in exports of real goods slowed to 1.4 percent year-on-year in the fourth quarter. But the three month moving average, the seasonally adjusted monthly export volume, rose a full 4 percent in December, pointing to solid export momentum going into 2017. Consumer price inflation eased in December to 1.9 percent year-on-year on lower food price increases. While the producer price index rose a full 5.5 percent year-on-year, we expect the spurt to run out of steam in the first half of 2017 and forecast consumer price index inflation to remain comfortably below the likely target of 3 percent in 2017, suggesting no major monetary policy implications. Looking ahead, recent global trade indicators show a decent momentum going into 2017 and we expect it to grow by 2.7 percent this year, from 1.4 percent in 2016. Indeed, China should in principle benefit from any pick-up in growth in the US from more expansionary fiscal policy under the new Trump administration. But, while we do not expect across-the board tariffs, it is clear to us that China's exports to the US will face a harsher climate. Overall, we expect the export outlook to improve somewhat next year. Domestically, infrastructure investment should remain solid. And corporate investment should benefit from renewed profit growth. But the tightening of housing purchasing restrictions in many large cities will weigh on real estate investment. We expect consumption growth to ease further on moderating wage growth, but to remain relatively solid. Meanwhile, the messages from the Central Economic Work Conference and other recent statements suggest policymakers are moving to put somewhat more emphasis on reducing financial risks and less on ensuring at least 6.5 percent GDP growth. The Central Economic Work Conference provided a mandate for further fiscal expansion but called for a less generous monetary stance. We do not expect a benchmark interest rate rise this year but expect policymakers to guide overall credit growth down to around 14 percent in 2017. Overall, we expect GDP growth to slow to 6.3 percent this year. High uncertainty means Chinese economic policymakers will want to keep their options open. But at least the reasonable current growth momentum gives policy some two-way leeway. The author is the Hong Kong-based head of Asia economics for Oxford Economics. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/27/2017 page12)", -378,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064790.htm,Controlling the looming economic risks,,"China should strengthen communication about its policies and takes steps to stabilize its exchange rate According to the latest Central Economic Work Conference of China, preventing and controlling risks is a very important part of its policies. While the global market is in a period of flux, preventing and controlling financial risks in China is more meaningful than ever. Developed countries, such as European countries and the US, have seen the effects of globalization and are taking steps to encourage overseas capital and manufacturing industries to come back to the developed economies. Meanwhile, many countries, including China, no longer have the advantage of cheaper labor costs. These factors could result in some changes in the global industrial chain's specialization and then influence international capital flow. To the emerging markets, including China, this can mean capital outflow and more challenges in export. The differentiation of global monetary policies and the expected rise of interest rates would help drive capital to flow from emerging markets to the developed countries. China should prevent the risks brought by both the real estate industry and RMB exchange rate at the same time. In the past few years, a large amount of global capital entered the emerging markets in different ways and gathered at the real estate industry and stock market, where the profit rates were relatively high. As China's own currency was not the international reserve currency, there are problems with currency and maturity mismatch. Once policies change, the previously in-flowed capital will be evacuated rapidly, which could cause the collapse of assets value, depreciation of the RMB, the slump of the stock market and other systematic risks. At present, the US dollar is becoming stronger, and the RMB is under great pressure of depreciation. Meanwhile, the domestic real estate market is under stricter control and capital outflow is growing stronger. If the real estate market is over-cooled or causing individuals to sell their properties and invest overseas, this will aggravate the depreciation of the RMB. Under these circumstances, the control policies over real estate should be tailored for different cities, rather than being the same throughout all of China. A certain degree of capital control needs to be maintained, especially the supervision of capital outflow of companies that are following China's ""going out"" strategies. For example, some companies are disregarding cost when doing overseas acquisitions, paying high prices for no reason. China should strengthen communication about its policies and take steps to stabilize its exchange rate. China should also be cautious of unexpected, rapid inflation. Since last year, the producer price index (PPI) of industrial products has been much higher due to supply-side reform and exchange rate fluctuation. The consistent rise of the PPI will affect the consumer price index (CPI). If we take international factors into account, Donald Trump's policies to help with the US' inflation and economic recovery could also lead to global expectation of inflation, which would indirectly influence China's domestic bonds, stock market and commodities prices. Moreover, if the inflation exceeds expectation, it would restrict what China's monetary policies could do, making it difficult to prevent and control future financial risks. It is also crucial to prevent global sources from spreading financial risks to China in the current global political and economic environment. In Europe, political turbulence has affected the financial market in the Eurozone. Several important elections will be held this year, including those of the French president and German chancellor, and Brexit is to be carried out soon. The banking system in the eurozone also faces challenges, especially the fragile banking system in Italy, which could affect other banks in the eurozone. These factors will affect the eurozone, even global trade and monetary policies, and have a huge impact on the global financial market. In the US, new President Donald Trump's policies could raise uncertainties and influence global expectations for inflation and the global financial market. Trump might make big changes to the US' current macro policies. Trump's stated policies on trade are a form of de-globalization, which may, in a short time, affect China's exports and apply more pressure to the RMB. At present, it seems China has underestimated the changes that might take place in the China-US relationship after Trump takes office. As many low-income people in developed countries didn't benefit much from globalization, Trump's policies will cater to their desires. China should negotiate on that, should the free trade process be blocked. If Trump's fiscal policy is carried out, it will encourage the rising expectation of inflation, likely causing the Federal Reserve to increase interest rates to deal with inflation, further pressuring China's RMB depreciation. Song Ke is deputy director of the International Monetary Institute of Renmin University of China. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/27/2017 page12)", -379,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064787.htm,Quotable,,"There should be clear positioning of this region for future development. Rather than developing into a large-scale comprehensive metropolitan area, Chongli should be built into a ski destination with strong local characteristics."" Xi Jinping, president, made the remarks on Jan 23 during his visit to Zhangjiakou, Hebei province, Beijing's co-host city for the 2022 Winter Olympics, to listen to a briefing on preparatory work and inspect proposed venue areas around Chongli county. ""Generally speaking, China's economy is within a proper range, with improved quality and efficiency."" Ning Jizhe, chief of the National Bureau of Statistics, said at a news conference in Beijing. ""As a city, openness and innovation are in our DNA. Guangzhou is a trading port never closed to the outside world, a starting point on the Maritime Silk Road, and we will remain open."" Cai Chaolin, deputy mayor of Guangzhou. The capital city of Guangdong province is set to further global free trade and innovation by welcoming multinationals to the Fortune Global Forum in December. (China Daily European Weekly 01/27/2017 page2)", -380,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064786.htm,IN BRIEF (Page 2),,"- Well-wishers: Keepers of the 23 panda cubs born last year at the Chengdu Research Base of Giant Panda Breeding in Sichuan province hold them for group photos ahead of the Chinese Lunar New Year, which falls on Jan 28 this year. Xue Yubin / Xinhua Washington told to keep promises China called on the new US administration to stick to the one-China principle and strictly limit its relationship with Taiwan to the nonofficial level, Foreign Ministry spokeswoman Hua Chunying said on Jan 23. She made the remarks at a regular news conference when asked about China's expectations for the government led by Donald Trump, who was inaugurated as president on Jan 20. President Xi Jinping sent Trump a congratulatory message. Every US administration should follow the commitment made by both the Republicans and Democrats to stick to the one-China policy, she said, adding that it is the foundation for the Sino-US relationship. Beijing, Manila agree on $3.7b in shared projects Officials representing Beijing and Manila shook hands on joint projects worth $3.7 billion during a meeting in Beijing on Jan 23. The package is the initial installment of planned cooperative projects aiming to improve livelihoods, Minister of Commerce Gao Hucheng told reporters at a news briefing. The briefing came after discussions with a delegation led by Philippines Finance Secretary Carlos Domingue, who was in China from Jan 22 to 24. The delegation included ministerial officials responsible for areas such as economic planning, telecommunications, financing and public projects. Ex-State official gets life in prison Su Rong, a former State official who had also served as Party chief in Jiangxi, Qinghai and Gansu provinces, has been sentenced to life in prison for corruption. Su had been one of the 23 vice-chairmen of the Chinese People's Political Consultative Conference until disciplinary authorities began investigating him in June 2014. He was found guilty of taking bribes, abusing public power and possessing a huge amount of unexplained assets, said the court. New 'carrier-killer' delivered to fleet The People's Liberation Army Navy commissioned its fifth Type 052D guided missile destroyer to the North Sea Fleet. The PLA Navy said in a news release on Jan 23 that the CNS Xining, which has a hull number of 117, was delivered to a destroyer flotilla of the North Sea Fleet at a naval base in Qingdao, Shandong province. The news release said that the Xining has a stealth design and can act as a flagship for a strike group. It is capable of conducting anti-ship, anti-submarine and air defense operations, it said. Poor villagers' relocation should be speedy, Li says Premier Li Keqiang called for innovative ways to relocate poverty-stricken families to a more habitable location during a visit to Zhaotong, Yunnan province, on Jan 23. People in the far-flung village will be moved in March to new houses in a place with convenient transportation, as part of Yunnan's target from last year to relocate 677,000 people below the poverty line at a cost of 23.9 billion yuan. The local government will pay half of the cost of building new houses, and villagers can get interest-free loans of up to 60,000 yuan for three years, in addition to using their own savings. Public doubts reasons for panda deaths A 21-year-old captive panda and one of her female cubs died of acute pancreatitis and intestinal complications, respectively, at the Shanghai Wild Animal Park in December. The zoo, still breeding five other pandas, has since become the target of public anger, raising questions about why the endangered mammals were being kept outside of their traditional habitat of Southwest China's Sichuan province. The State Forestry Administration said breeding pandas in developed regions can provide a safer environment for the species and aid in public education, while allowing them to take advantage of the advanced research and technology in those regions. Nation exceeds urban job creation target China created 13.14 million new jobs for urban residents last year, exceeding the official target, but the country faces a new challenge this year in creating jobs for a historic high of almost 8 million university graduates. The registered unemployment rate in Chinese cities stood at 4.02 percent at the end of last year, down from 4.04 percent three months earlier, Lu Aihong, an official with the Ministry of Human Resources and Social Security, said at a news conference on Jan 23. 1,800 detained for illegally crossing border Border-control police in South China's Guangdong province detained more than 1,800 foreigners entering the country illegally last year, a 190-percent increase compared with 2015, according to officials at the provincial border-control department. The total number of people detained for illegally entering or exiting the country was 2,571, an increase of 99.3 percent year-on-year, which involved 337 cases, officials said. Among them, 192 cases involved 1,879 foreigners illegally entering China. Crackdown sees 111 golf courses closed China has closed more than 100 golf courses and ordered 507 others to make changes over the past five years as part of a clampdown on illegal land and water use, according to the National Development and Reform Commission. The golf courses were guilty of illicit behavior, including illegally using large amounts of arable land or natural reserves, and extracting groundwater from prohibited areas, the commission said. Couple set for flight around the world A Chinese couple with a penchant for adventure are planning an 80,000-kilometer round-the-world trip that will see them fly themselves to five continents, including Antarctica. Zhang Xinyu and his wife, Liang Hong, plan to begin their journey by flying a Chinese-made plane from Harbin, capital of Heilongjiang province, to North America via the Russian Far East. Their trip is scheduled to begin before the end of this month, and the adventure will last until June. Li: More foreign talent welcome More foreign talent is welcome to China for innovative work and business, and the government will step up support in such areas as granting ""green cards"", project applications and intellectual property protection, Premier Li Keqiang said. The country will also ""relax market access, attract more foreign investment and learn advanced technologies and management"", Li told a gathering in Beijing of outstanding foreign experts working in China. Xi tells Hebei to hasten overcapacity reduction Hebei province needs to quicken the pace of overcapacity reduction this year, President Xi Jinping said on Jan 24. Xi said stepped-up efforts would lead to healthy economic growth through developing emerging industries such as dairy production. There should be zero tolerance for allowing ""zombie"" factories and enterprises previously shut down to restart operations, he said. Cheating must not be permitted, the president said. WHO put on 'high alert' for bird flu The World Health Organization has called on all countries to closely monitor outbreaks of deadly bird flu in birds and poultry, and to promptly report any human cases that could signal the start of a flu pandemic. Different strains of bird flu have been spreading across Europe and Asia since late last year, leading to large-scale slaughter of poultry in some countries and occasional human deaths in China. Experts fear the virus could mutate to spread more easily among people. Nearly 40 countries have reported new outbreaks of the highly pathogenic bird flu in poultry or wild birds since November, according to the WHO. Beijing to push talks on regional free trade pacts Beijing said on Jan 24 that it will support ongoing deliberation for two free-trade arrangements in the Asia-Pacific region after the United States quit the Trans-Pacific Partnership. Foreign Ministry spokeswoman Hua Chunying said China will stay committed to pressing ahead with the economic integration process in the Asia-Pacific region. Beijing will further promote the negotiation of the Regional Comprehensive Economic Partnership, since the negotiations have made substantial progress and should be completed at an early date, Hua said. US President Donald Trump signed an executive order on Jan 23 to withdraw the country from the TPP. Tap TCM's potential, premier says Premier Li Keqiang called for traditional Chinese medicine producers on Jan 24, during a visit to Yunnan province, to introduce advanced methods from developed economies to make diversified products and improve people's health. The premier spoke with managers and researchers of Yunnan Baiyao Group Co in Kunming. Li said traditional Chinese medicine has great potential for development of new products and expansion in overseas markets. In the bigger picture, the company can develop more manufactured goods under the category of dietary supplements. Report of new type of passport dismissed Guo Shaochun, director general of the Foreign Ministry's Department of Consular Affairs has dismissed a fake online report that claims China will issue a ""frequent traveler passport"" that would grant holders visa-free trips to 141 countries. He reminded the public to get authoritative information from two sources: his department's website and its Wechat account. Currently, there are three main types of passports for Chinese citizens - diplomat, service and regular passports. Graduates urged to work for grassroots units The central government issued a guideline on Jan 24, urging departments to encourage college graduates to work for grassroots units in remote areas. The guideline stated that grassroots work experience should be a mandatory requirement for civil service applicants eyeing provincial-level posts. More training and field studies should be organized to prepare the students for work with grassroots organizations, according to the guideline. 3,800 arrested for IP rights crimes Nearly 3,800 people were arrested in China for crimes related to intellectual property rights violations last year, the Supreme People's Procuratorate announced on Jan 24. More than 7,000 people were prosecuted for violating IPR last year, the SPP said. According to official statistics, more than 3,500 people were arrested for crimes involving trademark infringement, accounting for more than 92 percent of all IPR offenders last year. Program aired to mark anniversary The Shanghai People's Association for Friendship with Foreign Countries published a documentary on Jan 24 to celebrate its 60th anniversary. The 20-minute documentary, entitled People-to-People Diplomacy: Six Decades of Shining Glories, gives a brief account of the organization, which was founded on Sept 13, 1956. By 2015, the organization had established exchange relationships with 345 organizations in 100 countries. Duo sent to prison over illegal vaccine trade A woman and her daughter were sentenced to prison terms on Jan 24 after being convicted of selling vaccines without a license in Shandong province, according to a local court. Pang Hongwei was sentenced to 15 years in prison for illegally purchasing vaccines and then selling them to clients in the province and other parts of the country between June 2013 and April 2015, according to the Jinan Intermediate People's Court. Pang improperly stored the vaccines she bought, and sold them for a total sales value of nearly 75 million yuan ($11 million), the court said. Investment will help protect farmland China will invest 600 billion yuan ($87.5 billion) in the next four years to protect farmland and improve its facilities, an official said on Jan 24, as the country is set to encourage more private capital to participate in the farmland improvement process. Han Jun, deputy director of the Office of the Central Leading Group for Rural Work, said a national effort to increase the area of well-facilitated farmland from the current 26.7 million hectares to 53.3 million hectares by 2020 could cost about 600 billion yuan, and authorities will encourage private capital to take part in the process. The group is China's top rural affairs decision-making agency. New leader takes helm of PLA Navy The People's Liberation Army Navy has a new commander, 60-year-old Vice-Admiral Shen Jinlong, according to the Navy. Shen has replaced Admiral Wu Shengli, 71, to take charge of the largest navy in Asia. Shen was chosen because of his rich experience with front-line combat units, institutes and a major fleet's commanding body, according to a senior researcher with the PLA Navy, who asked not to be named, said. 4th quarter growth bucks slowing trend China's economic growth hit the full-year target of 6.7 percent in 2016, with a faster-than-expected rate of 6.8 percent in the fourth quarter, but more proactive efforts may be needed to keep the strong momentum, economists said. The performance in the fourth quarter bucked the trend of decline for the first time in the past two years. Industrial production grew steadily last year, with high-tech industry rising by 10.8 percent year-on-year. The economic structure also improved, with the service sector accounting for 51.6 percent of the total GDP, according to NBS data. Second-child policy increases births by 7.9% The universal second-child policy implemented early last year was a major factor in raising the number of births in China to 17.86 million last year, an increase of 7.9 percent and the highest annual number since since 2000, according to the top health authority. The number of newborns has increased by 1.31 million compared with 2015. The portion of the births to couples who already had at least one child rose quickly to at least 45 percent last year, Yang Wenzhuang, a division director of the National Health and Family Planning Commission, said at a news conference. - Premier Li Keqiang meets with Scottish-American chemist Sir James Fraser Stoddart, winner of the 2016 Nobel Prize in chemistry, in the Great Hall of the People in Beijing. More foreign talent is welcome to China for innovative work and business, Li told a gathering of outstanding foreign experts working in China. Wu Zhiyi / China Daily (China Daily European Weekly 01/27/2017 page2)", -381,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064785.htm,Gearing up,,"As Trump calls on manufacturers to return to the US, what are the prospects for China's industrial strategy? Where next for manufacturing? The geographic location of factories and production has become one of the more hotly debated issues in recent months. At an executive meeting of the Chinese State Council, chaired by Premier Li Keqiang on Dec 28, a guideline was issued to encourage more foreign investment in high-end manufacturing in China. This would underpin the ""Made in China 2025"" strategy for the country to become a global leader in such areas as rail transport, robotics, motorcycles and industrial design within the next decade. Meanwhile, US President Donald Trump has called upon US manufacturers to return their production from China and elsewhere to the United States to create jobs there. Ford has already canceled plans for a $1.6 billion plant in Mexico and will build one in the US instead. Arguably, with labor costs (once the primary driver for offshoring) now a smaller component of overall production costs because of increased automation, manufacturing is becoming increasingly mobile and can be located in developed countries with higher labor costs. In October, Fuyao, the Chinese autoglass maker, opened the world's biggest glass plant in Moraine, Ohio, where labor costs are eight times higher than in China. It wants to get a larger slice of the US market and some believe that this might be part of a trend of Chinese manufacturers playing a role in Trump's so-called jobs revolution. The Chinese government wants its own companies to invest in manufacturing in China, partly to stem the flow of capital out of the country which has a weakening effect on the country's currency. The State-Owned Assets Supervision and Administration Commission issued a notice in January saying it was to monitor overseas investment by state-owned companies in certain sectors. Peter Williamson, professor of international management at Cambridge University's Judge Business School, says China is aiming to build an advanced high-end manufacturing sector which will be a core platform for the overall economy. ""It knows full well it can't build a high-income economy based on low-cost, labor-intensive manufacturing,"" he says ""It needs to build a more high-value industrial base, some of which it will be able to do itself, but some of it will rely on investment by foreign companies."" Williamson, a leading expert on Chinese innovation, believes China will have little difficulty attracting such investment. ""One of the advantages of the Chinese market is that it is the fastest growing, and in many cases the biggest, market in the world. If you take a company like Apple, almost a quarter of its profits and almost all the growth in its volume came from China."" Eric Thun, the Peter Moores associate professor in Chinese Business Studies at Oxford University's Said Business School, says that despite progress there are still challenges for China in upgrading its industry. He cites the semi conductor industry, which receives large government subsidies but is still heavily reliant on imported chips - in particular from the US - for its high-end gadgets. ""There are still limitations as to what Chinese semiconductor companies can do,"" says Thun. The American academic, who is an authority on the China automotive sector, says there have been challenges in the past in opening up these new sectors for investment. ""Sometimes it has worked and sometimes it hasn't. There have been these concerns in the international business community over the past couple of years about uncertainty,"" he says. ""There is frustration that the government wants to loosen things up for investment in some areas but makes it difficult for everyone else in others."" Whether the new US administration succeeds in persuading more of its native companies to base their operations back in their homeland remains to be seen. There is, however, already an established trend for companies moving some of their activities back. According to research by the non-profit organization Reshoring Initiative, some 249,000 jobs were moved back in the five years up to the end of 2015. This was more than the 220,000 that left between 2000 to 2003, seen as the peak period for offshoring globally. He Weiwen, vice-president and senior fellow of the Center for China and Globalization, China's leading independent think tank, believes there is a limit on what can be moved back. He points to US Department of Commerce statistics, which show that the value added per employee for US multinational overseas operations is 29 percent higher than that within the US. ""The only way to bridge that would be for Trump to cut the corporation tax rate from 35 to 20 percent and then impose a 10 percent tariff on goods of these companies coming back into the US. That would still not account for the higher medicare and legal costs involved in employing people in the US,"" he says. ""All this, however, would be a major violation of World Trade Organization rules."" He, a former economic and commercial counselor at the Chinese Consulate General in New York and San Francisco, believes it will be a challenge to get US companies to invest more in Chinese manufacturing. ""In my exchanges with American businesses in China, they are not concerned with manufacturing, but getting more access to services, not only financial services like banking and insurance but also legal consulting, leisure and medical services."" Williamson at Cambridge, who was speaking from Switzerland after attending the Davos forum, says the problem with some of the current debate is that it is couched in terms of manufacturing still being vertically integrated and companies doing everything in one location. He says that model began to die out in the 1990s - driven to a large degree by China - and now the whole production system is built on global supply chains. ""When Donald Trump talks about bringing manufacturing back, what exactly is he talking about? The real question is what bits of this complex global supply chain can be moved and the economics are going to be different depending on which part of the chain you are taking about because some bits are capital-intensive and some labor-intensive."" ""It would be quite some paradox if the bit that gets moved back to the US is the final assembly operation."" Fuyao was not the first Chinese manufacturer to set up a production facility in the US. Wanxiang Group, based in Hangzhou, has made a series of acquisitions in the US, including buying bankrupt A123 Systems, a battery maker, for $256 million. Edward Tse, chairman and founder of Gao Feng Advisory, the management consultancy, says a pattern is emerging of Chinese companies doing relatively low-end manufacturing in the US and buying up high-end facilities in Europe. ""We have had a lot of clients come to us looking to make acquisitions in the US, particularly in automotive parts, consumer retail and areas like building materials,"" he says. ""When it comes to areas like high-end manufacturing, they are looking to make acquisitions in Germany, the UK and places like Switzerland and Austria."" Tse, author of The China Strategy, says this separation has emerged mainly because of US resistance to Chinese technology companies like telecommunications giant Huawei making investments in the US. ""What you are seeing instead is Chinese money in start-up investments in Silicon Valley, Seattle and on the east coast around Boston and Cambridge. They are often part American and part Chinese ventures and because they are small, they are subject to much less scrutiny."" Jeffrey Towson, professor of investment at Peking University's Guanghua School of Management, says even if there is a major wave of Chinese manufacturing investments in the Rust Belt or major reshoring by US companies, it is unlikely to create the jobs that Trump craves. ""The biggest impact on manufacturing jobs in the US has not been offshoring to Asia or China but the advance of technology,"" he says. ""It is wiping out jobs far faster than offshoring ever did. It is going to be an increasing phenomenon and is not a trend that will reverse itself."" Thun at Said Business School believes China is following the right strategy in trying to upgrade its manufacturing by partnering with foreign firms. ""This has so far involved acquiring German firms. There is some concern in Germany about losing their crown jewels, particularly the family-owned mittelstadt (small to medium-sized) companies which are often willing to sell out."" ""For China to be successful in high-end manufacturing, they need to acquire some of these German institutional and educational structures that promote this type of precision engineering. If you can't beat them at their own game, you can always acquire them,"" he says. andrewmoody@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page1)", -382,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064784.htm,Highs and lows of living in paradise,,"For Cui Yanbing, the fruit platter on the table of the guest room is an apt metaphor for the existence of those who live on the island of Vommuli, in the central western Maldives, including hers. ""The fruit you see here comes from all over the world,"" she says, pointing to the lemon, plum and passion fruit, none native to the island country. Cui, who goes by her English name Ice, first came to the Maldives in October 2013. ""It was part my own choice, part destiny,"" says the 24-year-old, who was first hired by a photo studio in Dubai in 2012. Luxury hotel St. Regis at Vommuli Island in the central western Maldives. Photos by Zhao Xu / China Daily; Lin Xiaoli, Wong Chiu Man, Fan Qianyi / For China Daily ""My job was to try to persuade customers to pay for touristy pictures taken of them with, and sometimes without, their consent. I hated the fact I had to be pushy all the time and asked to leave after a mere six months."" But it was not as easy as she had thought. The company, which had paid her relocation expenses, wanted its money back. ""There was a second choice - to go to the Maldives."" So she went. And despite having no experience with a camera, she found herself behind the shutter, snapping pictures for tourists, many of them Chinese. The work continued for some time before Cui landed another job as a receptionist at a luxury hotel. When the St. Regis announced its pre-opening last October, Cui joined the team as the hotel's only Chinese butler. ""In a way, I feel that I've been carried to the shore of the Maldives, and to Vommuli, by the current of fate."" Yet it has also been an upstream swim - the position of butler is considered much more challenging and is, of course, higher-paid than that of a receptionist. People come to the Maldives to relax and be free of worries. But for those who are here for a living, the daily problems, from overcoming language barriers to battling loneliness, often teem below the surface. ""My English vocabulary was very limited when I first came,"" Cui says. ""Now I have absolutely no problem communicating with my English-speaking clients and colleagues. The secret? Before, I learned by brain; now I learn by heart."" Apart from Cui, the St. Regis Hotel at Vommuli has a guest experience manager and a dive center coach who are also Chinese. The hotel's spa has one masseuse who is Chinese Malaysian, and when I was there in early December, the hotel had also invited a Chinese chef from the St. Regis Shenzhen to work with local chefs on Chinese cuisine with a twist. Xue Rui, the associate director of St. Regis Hotels & Resorts, Greater China, says the hotel management clearly has its high-end Chinese customers in mind. ""It's true that the Maldives, the country of a thousand islands, has myriad choices, and the bulk of Chinese customers still head for middle-priced destinations. However, we believe in the potential the Chinese market holds for luxury travel."" Fan Qianyi, 37, is the Chinese dive center coach. A former merchandiser bitten by the travel bug, she decided to be a coach not long after she learned diving. Over the past few years, the job has taken her to some of the world's most beautiful beaches, from Thailand and Malaysia to the Maldives. ""The Maldives is different from all the rest, in the sense that the islands are all very separated. The result is a rather encapsulated way of existence that can in some ways wear you down."" Fan reckons that these days there are about 60 Chinese diving coaches in the Maldives, of whom she knows about 25. ""Since we live on different islands we don't see each other very often."" Indeed, friendships made in this part of the world are subject to change from the very beginning, as Cui has learned over the past year or so. ""In the Maldives, we usually have one hotel for one island. So a change of job usually involves island hopping,"" says Cui, who shares one bedroom with three of her workmates at the St. Regis. ""When I went to Dubai, 10 girls from the same tourism school went with me. Three of us eventually came here. Now I'm the only one who's still here."" And Fan believes that in the Maldives, the constant sense of fluidity inevitably seeps into relationships that elsewhere would probably have lasted longer. ""Romance does blossom here but is often short-lived. I've seen as many marriages (often involving a foreign woman and a Maldivian man) end up as divorces. To be frank, the Maldives is probably one of the most open Muslim countries."" Asked what she does in her spare time, Fan, whose contact with the wind and the sea is burnished on her face, smiles and says: ""Gossip. This is a small place."" Once every year she spends time with her husband, who introduced her to scuba diving, outside the Maldives. ""He has only come here once, because I need have to go somewhere else."" The couple plans to migrate to Australia, where Fan can do scuba diving and more. ""For me, the Maldives is a free long holiday; too long, I'm afraid."" For Cui, who has an older brother, the pressure is mounting. ""When I first left China, in April 2013, I promised my parents that I would return within two years, a promise that has been broken."" She went back to her home in Henan province, central China, and stayed for about three months between May and August last year. Her father underwent a minor operation. ""One thing that's constantly on my mind is my parents' medical expenses - they are OK now, but there may come a day when they need costly treatment. I've seen people left untreated for financial reasons. And I decided that this is not going to happen to my parents."" Almost all the money she has earned in the Maldives has gone into her savings account, she says. The monthly income, including salaries and tips, is usually between 7,000 yuan ($1,022.7; 951.3 euros; 822.7) and 10,000 yuan. ""It's easier to save here because you don't have many places to spend on a tiny island. ""I've asked my parents to come, but they didn't want to, worrying about the cost. When they became aware that here we commute in boats and sea planes instead of buses, they became seriously worried about me."" With the full knowledge that in a few years she will be back in China - probably her hometown, where a suitable marriage and a stable life awaits - Cui believes that the Maldives has given her much more than better English and darker skin. ""My birthday is in October, so when my last birthday came, I had just joined the St. Regis. I expected nothing, but my work mates and friends gave me the biggest surprise,"" she says, beaming. ""They handmade a birthday cake, sang Happy Birthday to me in Chinese and, in a typical Maldivian way of celebrating a birthday, threw me into the sea. ""This is going to be my last stop in the Maldives."" When Cui first left China, she was a second-year student at a Beijing occupational school for would-be tour guides. ""To be honest, attending that school was more about paying money for a certificate than about receiving a quality education, so I quit as soon as the right opportunity came up."" What sounds like a natural choice today must have been a bold move for a 21-year-old who had never been abroad before. The Maldives, despite its soothing calmness, is in fact for dreamers and risk-takers, those who dare to live differently. Fan the diving coach knows all about that. ""For the Maldives, each one of us is merely a passing ship, but as we do so the ocean waves leave their mark. Under Maldives law you're not allowed to take anything away from this country, not even a tiny branch of dead coral. For me, a net full of memories is more than enough."" zhaoxu@chinadaily.com.cn ( China Daily European Weekly 01/27/2017 page1)", -383,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064783.htm,China could help make America great again,,"Instead of opponents, the two nations could be partners assisting the Trump administration in achieving its stated aims On Jan 20, Donald Trump took the oath of office and was sworn in as the 45th president of the United States, but his aggressive remarks on economics, trade and geopolitics add more uncertainty - even potential tension - to Sino-US relations. In fact, the two countries are major trading partners and according the research Report on Chinese Enterprises Globalization - published by the Center for China and Globalization, China has become a net capital exporter for the first time. In 2015, China's total direct investment to the US exceeded the FDI amount from the US to China for the first time. Also, China-US bilateral investment has experienced a rapid increase in the past few decades. This astonishing development has resulted in an immense spillover effect for both countries, promoting domestic employment, upgrading technological development and stimulating industrial restructuring. Thus, the two countries should prioritize economic diplomacy and seek more opportunities for collaboration. To make America great again, Trump has promised to bring manufacturing companies back to US, and increase infrastructure investment to create more jobs for unemployed Americans. In this case, China is probably the best partner America can have to help it achieve its ambitions. It is believed that during Trump's administration, policy initiatives will be heavily deployed to revitalize American manufacturing and bring jobs back to the country. Whether Trump will be successful in his attempt to encourage more manufacturing companies to move operations to the US depends not only on re-shoring but also on Chinese manufacturers. These manufacturers might be a solution to Trump's Rust Belt jobs problem. CCG's research shows that, while sectors for China's outbound investment are quite diversified, manufacturing comes out first. And, most importantly, private enterprises have become the main force for outbound investment. More private enterprises have gone up to the high-end of global value chain. Last year, I was invited as a guest to attend Fuyao Glass America's opening ceremony for its newest US facility in Moraine, Ohio. This investment accounts for $450 million, which represents the largest Chinese investment in Ohio and the eighth largest direct foreign investment in the US in the past decade. Currently, this factory employs about 2,000 people and expects to recruit 300-500 people more by the end of 2017. As is planned, this investment will be enlarged to $1 billion and create 5,000 jobs for local people. Fuyao Glass is not the only enterprise that is committed to investing in the US. Cross-border mergers and acquisitions are a growing trend and have become the main focus of Chinese companies' outbound investment. Resources, technology, brands and market channels are the main motivations for cross-border M&A. In January 2016, Chinese home appliance maker Haier Group made a deal to buy General Electric Co's appliance business for $5.4 billion. This month, Jack Ma, Alibaba executive chairman, met Trump and laid out the Chinese e-commerce giant's new plan that could create 1 million jobs for small US businesses over the next five years. Another way for Trump to create more jobs is through an infrastructure revamp. This is a chance for China to play a role, since it has a great deal of experience in infrastructure construction. China can also invite the US to join the Asian Infrastructure Investment Bank. China can work with the US to foster a stronger and wider collaboration in infrastructure construction, involving the US, including by jointly exploring markets in other countries. The Chinese government recently announced a series of reforms to improve the overall investment climate, including both market access and regulation, which inevitably compete with Trump's initiatives for attracting investment. The two countries still have a great potential for collaboration, and China seems the best choice as a partner to help the US become a great power again. The author is the president of Center for China and Globalization. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 01/27/2017 page8)", -384,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064782.htm,Mexico's losses could be China's gains,,"Trump's recent pronouncements about auto imports and NAFTA may knock out nation's biggest competition When it comes to the United States market, Chinese and Mexican manufacturers have long been rivals. Both groups export fairly similar types of goods. Both have advantages in lower labor costs. And they are now the No 1 and No 2 exporters to the US. In most sectors, whether it is toys or laptops, Chinese manufacturers have become dominant. However, in a few key sectors, most notably cars and autoparts, Mexican manufacturers have been more successful, and most frequently because of the North American Free Trade Agreement. That is why US President Donald Trump's statements about wanting to renegotiate or dismantle NAFTA and US-Mexico trade are so important. This could be very bad for Mexican manufacturers but possibly quite good for China. Either way, it looks like it will change the existing dynamic. My argument for this is three points: Point 1: In the US market, Chinese manufacturers have consistently beaten Mexican manufacturers. The types of exports coming from China and Mexico are fairly similar. In 2015, electronic equipment was 26 percent of China's exports (about $600 billion) and 21 percent of Mexico's (about $81 billion). Machines, engines and pumps were 16 percent of China's ($364 billion) and 16 percent of Mexico's ($59 billion). The other major categories such as furniture, lighting, signs; plastics; and medical and technical equipment are also similar between the two countries. The biggest differences you see between Chinese and Mexican exports are in oil and vehicles. And what is most noticeable is that China's exports in almost all of these sectors now dwarf Mexico's. This was not the case 15 years ago. In 2000, Mexico was already six years into the enactment of NAFTA but China had yet to join the World Trade Organization. According to the US Census Bureau, Mexico's exports to the US totaled $136 billion in 2000. At the same time, China's exports to the US were $100 billion. Yet by 2010, China's exports to the US had soared to $365 billion, far surpassing Mexico at $230 billion. Also during 2000 to 2006, Mexico's export growth rate fell to 6 percent, from its previous 15 percent during 1995-2000 and prior to China joining the WTO. In 2016, China's exports to the US reached $423 billion, compared with $271 billion from Mexico. One can certainly argue that Mexico was actually increasing in overall exports to the US during this period. China was just doing better. However, the quote that comes to mind is by Warren Buffett's partner Charlie Munger, who said: ""At Berkshire Hathaway, we do not like to compete against Chinese manufacturers."" Mexican manufacturers probably now say the same thing. Point 2: A big exception to this trend is in cars and autoparts, where Mexican manufacturers have done consistently better. The biggest exception to this China and Mexico export story is in vehicles and autoparts. In 2016, Mexican global exports in this sector reached $90 billion, making it the country's single largest export at 23.7 percent. And the US was the primary destination for a rapidly growing autoparts-automotive industry. In contrast, China's global exports in this space represented only 2.7 percent of their exports, and totalled $62.7 billion. The reasons for this are, unsurprisingly, NAFTA and Mexico's close proximity to the US. It is simply much cheaper to transport cars and other heavy items from Mexico to the US and most final car assembly is done close to market. However, autoparts have less of a geographic factor and there is fairly complicated movement of parts, components and various stages of assembly across Mexico, America and Canada. NAFTA is the other factor, which has removed most trade and investment barriers between the US, Canada and Mexico. Virtually all of the major automakers have now centralized some or all of their production for North America to Mexico. Today, the importance of the automobile-auto parts industry to Mexico cannot be overstated. It is the country's single biggest export and source of dollars (now surpassing money sent home by migrants to the US). Mexican car production has reached record numbers with more than 3 million cars produced each year. Automobile-autoparts are also one of the biggest drivers for foreign investment into the country. Since 2010, nine of the major automakers have announced more than $24 billion in investments in Mexico, with most targeting the US as their primary end-market. Point 3: US President Trump may now be changing NAFTA and the rules of US-Mexican trade. This could be very good for Chinese manufacturers. US President Trump's recent announcements of an intended renegotiation or cancellation of NAFTA have sent shockwaves through Mexico. More than 70-80 percent of all Mexican exports are going to the US and Canada (i.e., the NAFTA members). And what's worse, Trump has specifically focused on Mexican produced automobiles and auto parts, one of the most rapidly growing areas of Mexican manufacturing. Trump has specifically called for a 35 percent tax on cars imported from Mexico. Trump has also already criticized Ford, General Motors and Toyota for moving facilities to Mexico and has stated they will have to pay this 35 percent tax to bring their cars into the US. Ford had the unfortunate luck of announcing an end to all of their US production of small cars in the middle of the election, which got a response from candidate Trump. Ford have now canceled their planned $1.6 billion plant in Mexico. Without question, the potential for upcoming changes to NAFTA and car imports is already having a chilling effect on investment into Mexico. However, for Chinese manufacturers this could be a positive development. For them, this looks like their biggest competitor for exports to the US may be about to lose its biggest advantage, a largely tariff-free border. Plus, Mexican exports to the US are heavily weighted to automobile-auto parts, the area Trump is focusing most on. For China, broad changes to NAFTA could result in a leveling of the playing field in certain sectors in terms of tariffs. It is also worth noting that Chinese manufacturers have already been catching up with Mexican manufacturers in automobile-auto parts, just as they have in most other industries. In 2014, China passed Canada and became the second-largest exporter of automotive parts into the US after Mexico. Even before the recent comments, Mexican manufacturers were worried that China might be granted a lower tariff. Ultimately, there are a lot factors in each sub-sector when it comes to trade, whether its tariffs, shipping costs, changing currencies or others. So it's difficult to generalize too much when it comes to Mexico and Chinese manufacturers. However, we can conclude that Trump's recent pronouncements about auto imports and NAFTA are much worse for Mexico than China. And they raise a very intriguing question: Without NAFTA, can Mexican manufacturers successfully compete with China? The author is the professor of investment, Guanghua School of Management. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/27/2017 page8)", -385,2017/1/27,http://europe.chinadaily.com.cn/epaper/2017-01/27/content_28064781.htm,Returning to the US? It's a non-starter,,"Taking some operations back to their roots wouldn't make any sense at all, says expert Paul Ni believes it will be almost impossible for US companies to move their operations back to the United States to create jobs at home. The 34-year-old principal for management consultants Roland Berger says there is no logic for companies that have major operations in Asia, and in particular China, to do that. US President Donald Trump has called for American companies to bring their manufacturing operations home. ""You have, on the one hand, what he wants to come back to the US and on the other hand, the reality of what can actually come back,"" says Ni. So far, only US companies in Mexico have said they are moving some of their operations back. General Motors has announced it is moving 450 jobs back. Ford has axed plans for a $1.6 billion plant in the US-neighboring country, which industry sources claim was never going to get the final go-ahead anyway. Ni, speaking at his company's offices in Gateway Plaza, Beijing, says it would be highly damaging for some of his clients to up sticks from China and move back to the US. He highlights the US chemicals company Cabot, which has been in China for 30 years and set up a joint venture with Hengyecheng in Wuhai in Inner Mongolia in September last year to make silica. The new investment will create many thousands of jobs. ""It has done a considerable amount of work on that project, including building a strong relationship with the local government. Why would it have to close that plant and rebuild another one in the US? It would just be illogical."" He says Cabot, which has other hubs in Tianjin and Shanghai, is a prime example of a modern US multinational company, with 80 percent of its revenues coming from overseas. ""Its growth is driven by Asia, primarily by China. The American market is not really a growth area for the company."" Ni believes Chinese autoglass maker Fuyao's decision to set up an operation in Moraine, Ohio, in October was driven by very specific factors. The Volkswagen scandal relating to disguising emission levels is set to boost sales of US cars and therefore autoglass. Fuyao already has a 60 percent share of the China market and needs to find markets outside the country. ""The economic advantages relate to energy costs, such as natural gas, being between a third and half the price they are in China. They are getting the land almost free. The labor costs, however, are almost eight times those of China."" Ni argues it is not just the cost of labor that is likely to stop a flood of China manufacturers switching operations to the US, but also the lack of skills now available. Cao Dewang, founder and chairman of Fuayo, has admitted that he has had to employ mainly people over the age of 50. ""He can hardly find any young working adults suitable for such blue collar jobs. This is because the industrial landscape has changed and is now very much service-orientated rather than production-orientated so there aren't the young people with these skills anymore."" Ni also cannot envisage Trump getting the steel mills in Pittsburgh rolling again, with the Pennsylvanian city now more noted for its robotics industry. ""We no longer talk about American companies in the steel sector, to be honest. It is either Japanese, Chinese or European ones in high-end steel production."" Ni, who was born in Harbin but moved to Singapore as a teenager, studied electrical engineering at the National University of Singapore before doing his master's at MIT in the US. He began his career in investment banking with Credit Suisse in Singapore before going to study for an MBA at INSEAD in Fontainebleau, France. He joined Roland Berger - one of the few international management consultancy firms that has developed out of Europe, rather than the US - in 2011 and now works for a wide range of clients in industrial goods, packaging, steel, utilities and energy. Ni believes that instead of manufacturing migrating out of China, it is now more likely to remain at home, given the current emphasis on developing a high-end manufacturing sector. The State Council issued a guideline in December aimed at attracting more foreign investment in manufacturing. ""In China you have access to a more talented, highly skilled and comparatively cheaper labor force. China has transformed from low-cost production to a technologically-driven and technically intensive economy. The Government has achieved this by investing heavily in research and development,"" he says. Ni believes there is now a major opportunity for early stage European start-up companies, in particular, to come to China to develop their products. ""This does not just apply in manufacturing, but more generally. There is just a bigger market to test any concept with. In the past, companies might have tested their products in Sweden and the Nordic region, with access to 20 million people, before taking them to Western Europe. In China, they can do this on a much bigger scale."" The consultant says that any reservations companies may have had in the past about intellectual property protection are no longer as relevant. ""They can come to China earlier and patent their product and then continue to upgrade it to make sure the application is not being copied later on."" Ni thinks some of China's low-end manufacturing will continue to move to South East Asian destinations like Thailand, Vietnam and Laos but believes it will be at least another generation before it moves to Africa. ""In Africa, you have mining and some consumer-related enterprises but you don't have a fully established industry-related infrastructure. You have the production of shoes and apparel but no more than that,"" he says. ""I would be confident that in 10 to 20 years you will see an automotive hub there."" Ni believes the real activity, however, will be in China, which is now building many advantages over the US. ""China has everything the US can offer to develop high-end industrial activity. There is a big market, which is potentially more dynamic. Even in areas like technology, you have major successes such as Didi (the China taxi-hailing service), which has now merged its operations with Uber,"" he says. andrewmoody@chinadaily.com.cn (China Daily European Weekly 01/27/2017 page7)", -386,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006273.htm,Quotable,,"Owing to a lack of funding, experience and resources, it is really difficult for young entrepreneurs to operate their businesses at the beginning . . . But they are well-educated, passionate, innovative and eager to learn, which also offers them advantages."" Bao Chunlei, a researcher at the Institute of Labor Science ""When a country gets more developed economically, its consumers tend to go for high-end activities."" Robert Koepp, director of the Economist Corporate Network consultancy, who added that skiing and other snow sports were typical examples of high-end activities. ""Lu is likely to attract like-minded talent globally to join the company, which will assist Baidu's further growth."" Zhang Mengmeng, an analyst at Counterpoint Technology Market Research, said search engine giant Baidu Inc's recent appointment of former Microsoft Corp executive Lu Qi as president and chief operating officer was a major push to help the company gain an edge in its latest profit driver - artificial intelligence. (China Daily European Weekly 01/20/2017 page24)", -387,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006272.htm,Baidu Inc unveils augmented reality lab,,"Smartphone applications will offer a new type of experience Internet search provider Baidu Inc unveiled an augmented reality lab on Jan 16 in Beijing to build smartphone-based AR applications. The new lab will leverage the group's more than 600 million mobile-based users to explore AR applications powered by artificial intelligence technology, such as image recognition and object detection. - Baidu's self-driving car at an exhibition in Wuzhen, Zhejiang province. Zhu Xingxin / China Daily ""Our cellphone-based approach has enabled us to ship augmented reality experiences to a significant number of users in a very short amount of time,"" said Andrew Ng, chief scientist of Baidu, who heads the company's research arm. ""There is an appetite for this technology and we are seeing its rapid adoption by our partners in a range of industries,"" he noted. Since August, it has rolled out a range of AR-based marketing solutions for brands including L'Oreal China and KFC, providing interactive experiences for customers to learn about the latest products and offerings, Baidu said. Now users can access AR functions through a number of gateway apps like Mobile Baidu, Baidu Maps and group-buying site Baidu Nuomi. After typing in certain key words, users can choose to see AR effects related to the searched terms. Along with the move, the lab also launched a project that ""recreated"" lost historical sites along a Beijing subway line using AR technology. The AR effects can be activated by turning on the camera function inside the Mobile Baidu app and then taking a picture of the old city gate photos inside subway stations. It will signal a future in which AR could become a main method of navigating the Internet, said Zhou Zhiping, founder of Shanghai-based ICT consultancy Douzhi. ""AR marketing is going to be a new source of revenue for Chinese tech firms. Baidu has put a special focus on mobile applications, because they are more accessible than hardware and can better leverage the company's existing online services,"" he said. The global AR software market is expected to reach $30 billion by 2020, thanks to the popular game Pokemon GO, according to estimates from technology research firm TrendForce. Chinese tech giants are already flocking to the AR arena. Alipay launched a location-based AR game that lets players collect virtual red packets containing money. hewei@chinadaily.com.cn - A Baidu robot is displayed at TV program event in Nanjing, Jiangsu province. Provided to China Daily (China Daily European Weekly 01/20/2017 page28)", -388,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006271.htm,Product aims to boost meat production,,"The Bluestar Adisseo Company, one of world's largest producers of animal nutrition products, announced the launch of methionine - an amino acid - in powder form. The product is said to meet the growing need for animal protein driven by fast-growing demand for meat in China. Jean-Marc Dublanc, CEO of Bluestar Adisseo Company, says the fast-growing demand for safe and nutritious food, plus fluctuating prices of animal feed products, including wheat and corn, are requiring animal nutrition solution providers to offer products with higher efficiency, safety and quality. Adisseo is the world's second-largest provider of methionine, with a market share of 27 percent. The company went public in Shanghai in 2015, the first European company to be listed on the A-share market. Its plant in Nanjing, in East China's Jiangsu province, is one of the group's largest facilities globally. About 47 percent of products produced in the plant are exported to other countries. China is currently Adisseo's largest market by sales revenue. ""We aim to offer high added-value services to help our clients gain precise animal nutrition solutions. Our consultancy-based analysis helps clients understand their specific needs and get customized feeding solutions for animal nutrition,"" said Dublanc. In this way, clients can reduce and better control their costs, and use animal nutrition products safely and correctly. This also helps to secure the safety of the entire food supply chain. Products such as probiotics can be used to replace some antibiotics. This may help reduce overuse of antibiotics in animal feeding and cut the risk of harm to end consumers, says Dublanc. Adisseo is also open to growth opportunities outside organic growth, such as strategic mergers or acquisitions, technology alliances and partnerships in China and globally, says Dublanc. The compound annual growth rate of global market demand for methionine has been about 6 percent since 2013. China's market demand is growing faster, at 7 to 10 percent, according to data from FoodInfo, an information services provider focusing on the food industry. China's demands for meat protein have risen more than 50 percent in the past 10 years, and annual demand for animal feed is about 600 million metric tons, pushing up demand for animal nutrition products, according to research from the China Animal Feeding Information Network. wuyiyao@chinadail.com.cn (China Daily European Weekly 01/20/2017 page29)", -389,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006270.htm,IN BRIEF (Page 24),,"- Visitors to a high-speed railway exhibition examine a model of a China Railway High-speed train. The event was held in Kuala Lumpur to introduce local people to China's achievements in high-speed railways. Zhang Wenzong / Xinhua Syngenta takeover likely to be approved Syngenta AG Chairman Michel Demare said he expects only a ""few"" concessions would be needed to get regulatory approval for China National Chemical Corp's $43 billion (40 billion euros; 35 billion) takeover of the Swiss agrochemical and seeds company. ""The overlap is extremely small,"" Demare said at the World Economic Forum in Davos.""There's a few market concessions that will have to be made, but nothing that will fundamentally change the business model of Syngenta,"" he added. The deal has faced delays as authorities, who are concerned the acquisition might raise prices or reduce choice for crop-protection products sold to farmers, requested more information from the companies. Feng Shui Index predicts flighty Year of Rooster In the coming Year of the Rooster, Hong Kong's Hang Seng Index is destined for a flat start, before tracking upward to peak around July and August and finally ending on a positive note amid year-end volatility. This is the prediction from Hong Kong-based brokerage and investment company CLSA's 23rd Feng Shui Index. The tongue-in-cheek report, first published back in 1992 in Lunar New Year cards for clients, uses the traditional methodology of feng shui to chart the seasonal movements of Hong Kong's benchmark equity index. Rich people favor overseas properties A report showed that nearly half of people on the Chinese mainland with total assets worth more than 10 million yuan ($1.45 million; 1.35 million euros; 1.17 million) consider overseas properties their most important means of investment. The group has 2.3 overseas houses each on average, and 15.6 percent of them own at least four each, according to the report published by Hurun Research Institute. Over 50 percent of the properties they bought were purchased for school district access, the report said, adding that children's education and the need to hedge against risks are two major reasons for their purchases. As of May 2016, the Chinese mainland had about 1.34 million people with assets worth more than 10 million yuan, up 10.7 percent year-on-year, the report said. Shanghai Disney packs in 6 million visitors Shanghai Disneyland took close to 6 million visitors through its gates in the first seven months after its opening in mid-June. That's according to Fan Xiping, chairman of Shanghai Shendi Group, Disney's Chinese partner. Fan said that 5.6 million people visited Shanghai Disneyland by Dec 31, 2016. An independent survey found 86 percent of the visitors said they were ""very satisfied"" or ""satisfied"" with their trip. Meanwhile, Shanghai Disneyland Hotel and Toy Story Hotel reported occupancy of up to 90 percent. The first-ever Mandarin production of The Lion King was staged over 220 times, making it the most-run Broadway musical on the Chinese mainland. COSCO 'bidding' for Orient Overseas A source says the race to buy HK's biggest container shipping line is heating up. Chinese media outlet Caixin reported China COSCO Shipping Corp and other liners will bid for Orient Overseas International Ltd, owner of Hong Kong's biggest container-shipping line. Evergreen Marine Corp Taiwan Ltd and CMA CGM SA are also bidding, according to the report, which cited an unidentified employee of COSCO Shipping. Orient Overseas stock jumped as much as 12 percent, the biggest intraday gain since March 2011. The company has a market value of about HK$26.8 billion ($3.5 billion; 3.3 billion euros; 2.8 billion). A representative at COSCO Shipping's media relations department said the company wasn't aware of the bidding. Rise in outbound investment last year China's non-financial outbound direct investment increased 44.1 percent year-on-year to $170.11 billion in 2016, official data showed. Chinese companies invested in 7,961 overseas companies in 164 countries and regions in the past year, according to the Ministry of Commerce. The ministry said the Belt and Road Initiative provided a strong boost in dealings between Chinese and international groups. Outbound investment to countries involved in the initiative totaled $14.53 billion in 2016, said ministry official Han Yong. Chinese companies focused on the real economy and emerging industries for their outbound investment, Han said. Big data industry to triple its size by 2020 China aims to more than triple the size of its big data industry by 2020, as the world's second-largest economy steps up efforts to accelerate the application of the cutting-edge technology. The Ministry of Industry and Information Technology unveiled a plan on Jan 17 that it would devote more resources to nurturing the big data sector, with the aim of increasing its annual sales to 1 trillion yuan by 2020 from an estimated 280 billion yuan in 2015. The government is targeting a compound annual growth rate of around 30 percent for the industry's sales in 2016-20, according to the plan. It also set goals to create 10 world-leading big data companies by 2020 and establish 10-15 experimental zones to speed up the industry's development. Huawei to target $33b in phone unit revenue Huawei Technologies Co is aiming for revenue growth of more than 25 percent from its consumer electronics business this year as global smartphone sales bounce off record lows, people familiar with the matter say. The smartphone maker is shooting for $33 billion in 2017 revenue from a consumer business that also makes tablets and watches, the people said, declining to be identified talking about internal targets. That would put Huawei's consumer division almost on par with annual revenue at companies such as Oracle Corp and Nike Inc. But it marks a sharp slowdown from 2016, when the unit's revenue soared by about 42 percent to 178 billion yuan. Wanda's input for outbound investment China's richest man, Wang Jianlin, said on Jan 17 his Dalian Wanda group has earmarked $5-10 billion each year for outbound investment, focusing on entertainment and sports. The billionaire property tycoon-turned-entertainment mogul, speaking to Reuters in an interview on the sidelines of the annual World Economic Forum in Davos, said the United States would be the top priority for investment opportunities, followed by Europe. The group was also considering a ""a very large"" tourism project in Australia because it is a favorite destination for Chinese tourists. Cadillac expects major sales growth General Motors Co's Cadillac expects sales in China to continue growing at a double-digit rate this year, but at a slower pace than in 2016 when volumes saw a sharp spike after the brand opened its first dedicated factory in the country. Cadillac, relatively late to introduce local production in the world's biggest auto market, is among a second wave of luxury car brands in China seeking to take market share from established brands. (China Daily European Weekly 01/20/2017 page24)", -390,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006269.htm,SinoFortone aims to be household name in UK,,"Chinese now look beyond pure financial returns in efforts to move up value-added ladder SinoFortone may not yet be household name in the UK, but the company is committing billions of pounds of investment in crucial UK infrastructure projects with a clear strategy of using the foothold to grab opportunities in Europe and along the route of China's Belt and Road Initiative. SinoFortone first made a name for itself in the UK during President Xi Jinping's 2015 state visit by announcing an investment of 2 billion ($2.5 billion; 2.3 billion euros) in two biomass power stations in Wales, and 100 million in London's new Paramount entertainment park. Since then, it has signed a deal with Scottish First Minister Nicola Sturgeon to lead a Chinese consortium to invest 10 billion in Scotland's infrastructure. - SinoFortone has invested in a renewable power plant in Anglesey, Wales. Provided to China Daily ""We are confident about the UK's investment opportunities despite short-term Brexit uncertainties,"" says Peter Zhang, chief executive of SinoFortone. ""In the UK we would focus our investment strategy on renewable energy projects and social housing, as those sectors require more investment, provide desirable revenue return and have turnaround time periods that suit our investment agenda."" Although returns on infrastructure projects vary, Zhang says on average they can generate about 8 percent return on capital, which is not high compared with projects in emerging markets. ""Instead of looking for immediate financial returns, we are more concerned with building our reputation in the UK, gaining experience in this mature market and using our UK resources and enhanced brand image to grow into other international markets,"" Zhang says. Sinofortone is a joint venture between Sinolinks Group and Liaoning Fortone Group. Liaoning Fortone is a private construction business in Shenyang that focuses on investment in large-scale projects and becoming a construction partner in those projects. Sinolinks is a Chinese company focusing on asset and fund management, commodity trading and mining. Capital is one advantage it has in the UK's current infrastructure and housing investment market. Its ability to source cost-effective materials in the supply chain from China is another core advantage. The UK's public sector strain on infrastructure capital has been exacerbated by the British public's vote to leave the European Union in June 2016, meaning the UK may no longer be eligible for valuable European infrastructure funds. The UK may lose eligibility for the so-called Juncker Plan, which aims to unlock 315 billion euros ($334 billion; 270 billion) of infrastructure investment between 2015 and 2017. Currently, the plan includes eight major UK projects worth a total of 8.2 billion euros, which could create more than 70,000 jobs. Whether the funding continues will depend on the UK-EU exit negotiations. In that context, the British government is eager to attract Chinese funds. During the eighth Economic and Finance Dialogue in London in November, it showcased 13 projects offering more than 5 billion in investment opportunities to Chinese investors. Concerns emerged after China General Nuclear finally inked its agreement to invest in the UK's Hinkley Nuclear power station in October and the new British government led by Prime Minister Theresa May announced new rules for scrutinizing foreign investment in infrastructure projects that involve national security, but Zhang is not worried. ""Our investment mostly focuses on renewable energy, like wind, solar, waste-to-energy and biomass, which have no national security concerns, unlike nuclear,"" Zhang says. In addition to capital investment, SinoFortone also helps European projects become more cost effective through sourcing equipment from China, which could cut material costs 30 to 50 percent, Zhang says. The two biomass power stations will generate up to 299 megawatts of power each, and will be built using technology from British partner Orthios Eco Parks, which developed the innovative technology to create electricity from plants. So far in 2016 Orthios and Zhang's team have raised 30 million in the UK from bond issuance, which is already invested in the initial phases of the power station. Currently, factory construction does not have a timeline, as it is waiting for the UK government's Contract for Difference auction - an energy subsidy allocation process, which was delayed by the Brexit vote from 2016 to spring 2017. It is a standard process wherein the government subsidizes the price difference between what consumers pay and what power companies charge to make their investment profitable. ""Once we start construction, the power station can become operational in two years,"" Zhang says. Construction for the second biomass power station in Wales, in Port Talbot, will begin once the Anglesey power plant is complete. Despite the Anglesey delay, SinoFortone's involvement in renewable energy has secured it opportunities to negotiate deals with various governments for infrastructure investment, including Kazakhstan, Greece, Georgia, Angola, Guinea and Pakistan. ""Securing the UK renewable energy deals helped us establish a good reputation and greatly helped push forward those deals in Africa and in the Belt and Road countries, where we could also play a role in bringing advanced UK technology,"" Zhang says. SinoFortone's investment in the two biomass plants is welcomed by Orthios, though the fact that the technology was unproven in the market had made fundraising difficult. Orthios was founded over a decade ago by Sean McCormick, an architect, and Lewis LeVasseur, an engineer. Orthios had already secured planning permission and relevant approvals before SinoFortone joined the project. ""We have spent five years researching and developing this model, and the investment from China will help us roll it out across the planet,"" says McCormick, chief executive of Orthios. China's focus on green energy and its ability to take a long-term view was instrumental in securing the deal, McCormick says, adding that the two biomass plants combined will create 1,000 full-time jobs, as well as thousands of jobs during the construction phase. Industry analysts see the collaboration as a win-win for both the Chinese and British sides. Danae Kyriakopoulou, head of research at the Official Monetary and Financial Institutions Forum, a London-based think tank, says SinoFortone's investment in Wales is an important example of how China is increasingly using its resources to invest in high-innovation, knowledge-driven economies. ""Appropriately for an economy in the phase of industrialization, China has traditionally focused its investment on resource-rich economies that have in exchange provided it with the raw materials it needed to fuel its development,"" Kyriakopoulou says. ""However, China is now looking beyond the purely financial returns on investment as it seeks to move up the ladder in the global chain of value-added."" In March, SinoFortone led a Chinese consortium to sign an agreement with the Scottish government to invest 10 billion in Scotland's infrastructure, covering projects in transportation, power stations and social housing. China Railway No 3 Engineering Group is also part of the consortium and is expected to provide technical support. ""We saw market demand in Scotland for those new infrastructure projects, so we wanted to help the Scottish government fulfill those demands,"" Zhang says. ""Our advantage in engaging with those projects is our capital investment and our ability to bring Chinese elements."" One example of Chinese construction techniques to be deployed in Scotland is prefabricated modular housing, which could be 30 percent more cost effective than on-site construction. In addition to infrastructure projects, SinoFortone is also increasingly engaging with the UK's tourism market, riding an increasing number of Chinese visitors. In December it purchased The Plough at Cadsden, the pub in rural Buckinghamshire where then-prime minister David Cameron treated President Xi Jinping to fish and chips and a pint of beer in 2015. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 01/20/2017 page30)", -391,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006268.htm,New faces in banking,,"Regulator's liberalization, innovation by non-State enterprises are making financial services inclusive Ten years ago, Peng Jindong, then 21, set up a small e-store called Mmaicco to sell street-dance wear on Taobao, China's largest online marketplace operated by Alibaba Group Holding Ltd. Peng was then based in Zhengzhou, Henan province. Little did he realize that financial innovation, brought about by the liberalization of financial services and the advent of new Chinese private sector banks in offline and online channels, would help him to expand his business to men's and women's clothing. Peng's business expansion in subsequent years was a result of online shopping giant Alibaba's 2010 decision to offer easy loans to merchants on Taobao. As one of the first group of traders who received loans, he borrowed 5,000 yuan ($719; 677 euros; 596) with sales orders for collateral. Later, he relocated to Hangzhou, Zhejiang province, rented a 140 square meter apartment and hired a few hands to run the business. Again, it was Alibaba's loan that made it possible. This time round, the loan was much bigger: 100,000 yuan. When Ant Financial, an Alibaba subsidiary, launched an online private bank called MYbank in 2015, Peng received a credit quota of 1 million yuan. Based on his previous record, he did not have to pledge anything or offer any collateral to MYbank. That emboldened him to become ambitious. He wanted to launch his own clothing brand, outgrowing the sales-only phase of his business. So he spoke to a loan officer of MYbank about a possible bigger loan. MYbank assessed risks using big data analysis and decided to increase his credit limit to 2 million yuan. That helped Peng to contract a small clothing factory, hire five fashion designers and more than 10 employees. He also rented a 1,000-square-meter office and a warehouse of the same size in Hangzhou. ""Our company is still very small. But, just like Jack Ma, the founder of Alibaba, I also want to run a business for 102 years,"" he says. He adds: ""And do a lot of things"". He already owns a clothing brand and will open an offline store next. Peng's success is as much a tribute to his can-do spirit as it is a shining example of MYbank's effectiveness in China's liberalized banking industry. As an online bank (with no offline branches), it relies on internet technologies like big data and cloud computing to make lending decisions, and assess and manage risks. It has positioned itself as a specialist in all things small - that is, its deposits, loans and customers (mainly self-owned businesses, farmers and startups founded by college students in rural areas) are all small. By the end of November, MYbank had served more than 2 million micro and small enterprises, lending each 15,000 yuan on average. Its loan balance was 25.4 billion yuan, up 243 percent from the beginning of last year. Starting in June 2016, it also began offering micro and small business owners a free online product that analyzes financial data of their business thoroughly. This means, they no longer have to make rough calculations of their profits or losses. Currently, 500,000 micro and small enterprises are benefitting from the product. That is all in stark contrast to the past. This change in China's financial services sector began with the launch of a trial program in 2014 to set up the first five private banks, including MYbank. The China Banking Regulatory Commission has gradually accelerated approvals for the establishment of such banks. As of Jan 10, the CBRC has approved 17 private banks. Seven of them have opened for business already. Among the new kids on the banking block are Beijing's Zhongguancun Bank, named after the area where it is located, also known as China's ""Silicon Valley""; and Jiangsu Suning Bank Co Ltd, founded by electronics retailer Suning Commerce Group Co Ltd and a few other companies in Jiangsu province. At a news conference on Dec 8, Ling Gan, director of the CBRC's City Commercial Banks Supervision Department, said the regulator will continue to push forward the orderly establishment of private banks, as long as the applications for banking licenses meet regulatory requirements and the founders are well prepared. ""The first five private banks tried to innovate their models of development and bolster weak spots in the traditional financial sector. They are trying to provide more targeted and more convenient financial services to communities, startup companies, as well as micro, small and medium-sized enterprises,"" Ling said. The CBRC requires private banks to choose a clear market position and make different business strategies from existing banks', based on regional economic factors and their shareholders' resources. The big idea is to modernize the banking system. So, the first five private banks have been reaching out to micro and small businesses or individuals in relatively low-income groups that were neglected by traditional banks. Some of the new banks played to their strengths in e-commerce, social networking or big data, while others exploited their geographical and local policy advantages. For instance, WeBank, an online bank founded by internet giant Tencent Holdings Ltd, launched personal loans ranging from 500 yuan to 300,000 yuan, without asking for any collateral or guarantee. In addition to the consumer credit report provided by China's central bank, WeBank says it mines information from social networking patterns and online transactions of loan applicants through multipurpose apps WeChat and QQ, which belong to the Tencent stable. In late November, WeBank's small consumer-loans served more than 60 million people in 549 cities in China, most of whom were not clients of traditional banks. WeBank data found that 65 percent of the borrowers were aged 25 to 35; 75 percent of them were male; and the top five industries where they worked were manufacturing, technology, trading, public services and financial services. WeBank's total collateral-free small consumer-loans exceeded 160 billion yuan, with bad loans less than 1 percent, lower than the 1.81 percent average of commercial banks. It is not as if private banks are making runaway progress as regulatory prudence in China tends to be conservative, says Wu Qing, director of the comprehensive research office of the Research Institute of Finance under the Development Research Center of the State Council. jiangxueqing@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page26)", -392,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006267.htm,Dependence on foreign oil up,,"Level for last year reflects high local output costs, low global crude price China's foreign oil dependency level reached 64.4 percent of total demand in 2016, 3.8 percent higher than the previous year, and was expected to rise again in 2017, a leading economics think tank in China said on Jan 12. The mainland's domestic crude production dropped to 200 million metric tons in 2016 due to high production costs of domestic crude oil at an average of $45-50 (47-42 euros; 36-40) per barrel, higher than the global average, according to the CNPC Economics and Technology Research Institute. Under such circumstances, imported oil was more cost-effective, it said. An analyst said the world's second-biggest crude oil consumer, to make up for the decline of domestic oil output, will continue the trend to import crude oil from abroad and the dependence on foreign oil was likely to climb further. Li Li, an energy research director at ICIS China, says the country's foreign oil dependency level might increase to 70 percent by 2020. ""With the declining global crude oil prices, the country's major oil giants have all lowered their domestic production and investment, which will lead to a further decrease of domestic crude production,"" says Li. The latest official data indicates that 2016 output of China's two largest oilfields, Daqing in Heilongjiang province and Shengli in Shandong province, fell by over 5 million tons compared with 2015. Daqing posted crude oil production of 36.56 million tons and Shengli 23.9 million tons, for decreases of 1.826 million and 3.2 million tons, respectively, compared with 2015. That number is expected to further drop in 2017. With no discoveries in recent years, there are concerns that the output reduction of the two major oilfields will lead to a further decline of the country's domestic crude oil production, the analyst says. However, Li says the agency forecast a slight increase of domestic crude oil production in 2017 following a rebalancing of the global crude oil price. Li says OPEC's long-sought agreement to reduce production by 1.2 million barrels a day is seen as bringing equilibrium back to demand and supply. According to the CNPC Economics and Technology Research Institute, the country's total energy consumption reached around 4.36 billion tons of coal equivalent in 2016, a year-on-year increase of 1.4 percent. The world's biggest consumer of energy plans to cap total primary energy consumption at around 4.4 billion tons of coal equivalent in 2017, with a further push to use cleaner fuel, according to the National Energy Administration. China's refined oil consumption reached 313 million tons last year, a 1 percent decrease compared with the same period last year and the first time the refined fuel sector saw a downward trend, it says. zhengxin@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page27)", -393,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006266.htm,"Next target is to cut costs, make machines locally",,"Experts have said the development of homegrown world-class ballpoint pen heads will cut the cost of making the tips by roughly 50 percent. Kui Weiliang, deputy director of the China Ningbo Stationery Association in Ningbo, East China's Zhejiang province, home to one of the leading Chinese stationery enterprises, Beifa Group, says: ""The average cost of producing a ballpoint pen is about 0.5 yuan (7 cents). The head costs more than 0.1 yuan, which could be decreased to a maximum of 0.05 yuan when the homemade stainless steel products replace imported ones. When it (specialty steel) is mass produced, customers will be able to buy high-quality pens at a lower price."" However, Zhao Dongmin, who has run the M&G Chenguang Stationery store in Chaoyang district, Beijing, for about five years, says the price of ballpoint pens would not be affected. ""I don't think the buying and selling price will change,"" Zhao says. ""The cost saved on materials is likely to be offset by the increasing production and logistical expenses."" In his store, varieties of ballpoint pens are on display. Prices ranges from 1 to 4.5 yuan. ""Generally, customers tend to pay 2 or 3 yuan for a ballpoint pen. For items as cheap as ballpoint pens, few people will care whether the pen is made in China or not. But the difference in quality will be noticed,"" Zhao says. Since Taiyuan Iron & Steel Co declared its intention to develop the first homegrown stainless steel unit for use in the production of ballpoint pen heads in early January, the topic has garnered more than 7.5 million page views on Sina Weibo, a Twitter-like social media platform in China. ""The production process for a ballpoint pen head is as complicated as that of a watch. I'm proud China is the sixth country to succeed in doing it,"" messaged one neitzen. Fu Yuanlong, deputy director of the National Light Industry Fountain Pen and Ballpoint Pen Testing Center, says ballpoint pen testing has strict standards. ""A qualified ballpoint pen should write 2,000 meters and there should be no broken lines or ink leakage,"" he says. ""The diameter of the ball is no bigger than one millimeter. And it should be matched perfectly with the ball seat to let the ink flow from the gap between."" Fu says that since the tiny head requires high-precision stainless steel and high-end equipment, China had been importing them from Japan and Switzerland for many years, causing the high production cost. ( China Daily European Weekly 01/20/2017 page25)", -394,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006265.htm,Share prices of SOEs expected to 'bounce back',,"Restructuring and recombining promises to grow profits in steel, coal The share prices of China's giant state-owned enterprises in the steel, coal and power sectors are expected to rebound this year as the country recombines resources to create more Fortune Global 500 companies to compete with foreign rivals, an expert said on Jan 16. The opportunity came after the State-owned Assets Supervision and Administration Commission said recently that the SOE reform will no longer focus only on cutting the number of groups or their subsidiaries. Industrial upgrading, global market diversification and resource optimization are main focus of the reform this year. Listed companies such as Hunan Valin Steel Co, Jizhong Energy Group Co, Beijing-based Huaneng Power International Inc, Shanghai Electric Power Co and another 10 companies from these three industries all announced that they have been involved in asset reorganization since 2016. He Jingtong, a professor of economics at Nankai University in Tianjin, says that because the steel, coal and power businesses can notably affect SOE profits, the government is keen to integrate these commodity-based sectors to support profit growth, as international commodity prices are gradually picking up. ""The changing relationship between supply and demand of China's manufacturing products, the stable business operations of the steel and coal industries, and the central government's call to cut excessive industrial capacity are all core factors pushing reform in these three industries,"" says Li Jin, a researcher at the Beijing-based China Enterprise Research Institute. The SASAC has set a target to raise the profit growth rate gained by central SOEs to between 3 percent and 6 percent year-on-year in 2017. The sales revenue of central SOEs reached 23.4 trillion yuan ($3.39 trillion) in 2016, up 2.6 percent year-on-year, while they gained 1.23 trillion yuan in profits, increasing 0.5 percent from the previous year, according to the National Business Daily. China has, to date, cut the number of its central SOEs to 102. Local SOE watchdogs in 10 municipalities and provinces including Beijing, Chongqing and Guangdong, have already made plans to further recombine or cut the number of SOEs this year. China has 150,000 SOEs at different levels, which manage more than 100 trillion yuan ($14.5 trillion; 13.6 trillion euros; 11.8 trillion) in assets and employ more than 30 million people. zhongnan@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page28)", -395,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006264.htm,Payment agencies told to bank clients' cash,,"Latest step in third-party platforms' regulation aims to tackle rising cases of embezzlement amid rapid growth China's central bank, or PBOC, said on Jan 13 that it will eventually ban all non-bank payment agencies, including Alipay, from using clients' money. As a first step, it will require all platforms to deposit 20 percent of clients' funds in appointed bank accounts. The move is the latest step to be taken by the central bank to tackle the financial risks caused by a rising number of institutions found embezzling money. Starting from April 17, a total of 267 third-party organizations with central bank licenses in China, including Alibaba-owned Alipay, will have to submit around 20 percent of provisions to a single account opened in a commercial bank, with the central bank's approval. Customer provisions refer to money held by third-party organizations that is not the property of the organization. The exact amount handed in by each institution will be calculated based upon the daily average balance of provisions in the previous quarter and will be adjusted quarterly thereafter. ""The 20 percent level aims to leave time for institutions to adapt to new rules,"" says Xie Zhong, head of the central bank's payment and settlement department. ""The final level will be 100 percent"", meaning the central bank will then be the only authority governing provisions. Xie did not provide a specific timeline for adjusting the level. The move comes after the central bank decided to establish a clearinghouse for online transactions early last year, aiming to trim financial risks by disconnecting the direct clearing business from third-party payment firms and banks. The clearinghouse, which can be used as an alternative to commercial banks to keep custody of provisions, will be launched in March this year, according to Xie. Li Aijun, a law professor with the China University of Political Science and Law, says the new rules will not have a major impact on the income level of the companies. ""The new rules will hit small institutions that are more vulnerable to financial risks,"" she says. Li says she believes it will not take long for the central bank to increase the level to 100 percent, since risks have emerged quickly in recent years in the ever-expanding market. The third-party online payment market in China attained a total transaction value of 4.65 trillion yuan ($674 billion; 630 billion euros; 546 billion) in the second quarter of 2016, up 6.5 percent quarter-to-quarter according to the latest data from Analysis International. A total of 460 billion yuan of customer provisions has been reserved by third-party institutions as of the third quarter of last year, according to the central bank. By the end of last year, more than 30 third-party institutions were fined for illegally embezzling provisions, data from the Chinese Academy of Social Sciences show. Contact the writers at wangyanfei@chinadaily.com.cn. (China Daily European Weekly 01/20/2017 page29)", -396,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006263.htm,Churning out milk from grass to the glass,,"Dutch dairy giant excels at product safety and quality control, says its chief executive For Roelof Joosten, a love of life and milk led him to work in a dairy company. When he landed the job of CEO of Dutch dairy producer Royal FrieslandCampina, one of the world's five largest dairy companies, he refreshed its strategies and changed it to be a more purpose-driven company. ""Dutch people drink a lot of milk by nature and they have a love for milk. It has been part of their daily lives for many years and we don't know what life would be without milk,"" he says. ""I joined FrieslandCampina because of what I learned from my previous work. I believed I could help the company to go to a different level. Working for the stakeholders, in this case farmers, is something I appreciate,"" he says. Roelof Joosten, CEO of Dutch dairy producer Royal FrieslandCampina, says the company primarily focuses on the infant formula market in China. Provided to China Daily Recently, he spoke to China Daily about the company's e-commerce expansion plans in China and emerging opportunities in smaller Chinese cities. The following are the edited excerpts of the interview. Do you have any plans to expand in China in the next few years? We obviously want to expand further into infant formula, but we also would like to enlarge the other categories, predominantly food service, cheese and ultra-heat treatment milk. We would like to put more effort into those three categories and diversify our business, but at this time, the most important category to play with is infant formula and we should not lose focus. What are your competitive advantages over other international and Chinese brands? FrieslandCampina is not in the game of volumes, but into value creation. In China, we primarily focus on infant formula, because we believe that we can create a lot of value there in how we control our quality and the safety of our product line. We are one of the few producers who control the full dairy chain, so it's from grass to glass. Do you mainly target high-income consumers? Overall, we target consumers with higher incomes. For Friso (the company's high-end infant and toddler formula brand), we still focus on first and second-tier cities in terms of distribution and we can still do a better job on that. For Friso, we can go deeper and wider into the Chinese market and use e-commerce to reach out to other consumers. For example, our cooperation with Suning Commerce Group Co helps us to reach out to those consumers in some third to sixth-tier cities where we don't have any distribution. In these cities, we also target higher income consumers. In the future, we might reach out to the rural areas. What's your growth potential like with the two-child policy in China? The regulatory change has had quite an impact on local producers as well as international producers. With stricter rules, the unprofessional players who take advantage of the opportunities in China have to leave the market. That means there will be a lot of infant formula dumping in 2017, which will distort the market somewhat. I think the market will recover from that in 2018, when the second-child policy kicks in to have an impact on the market. So I believe 2018 will be a year of full recovery and growth - and in the years to come as well. Do you plan to increase your R&D efforts in China? At the moment, we are building a food services lab in Shanghai to support food service activities in China. We have research centers in Wageningens in the Netherlands and in Singapore. They are the focus centers for infant formula. We have no plan yet to build a research lab in China, but it might still be a possibility in the future. Do infant formula products popular in Asia have any flavor difference from those in Western markets? The recipes in China are slightly different from what we have in Europe. There is a little bit of difference in the composition, such as in content of protein and lactose, as the requirements in China GB standards are different from Europe. From the quality and food safety perspective, there is no difference. Why do you like to work for consumer companies? The good thing is that you can see your own product and experience your product, compare with competitors' and bring your product to life. It makes it more interesting if you work for a company like FrieslandCampina because you work for the farmers. FrieslandCampina is owned by farmers. It's a cooperative, so we know our shareholders. We aim to provide better nutrition the generations to come and a good living for our farmers. What's your management style like? I try to assemble people around me, most of them are much better than I am myself, and I give them a lot of responsibilities. In my previous jobs, I hated it when the general manager looked over my shoulder. You have to give them freedom to work and trust them. That's what I'm trying to apply at my work. I think that getting high-caliber people, people who deserve trust, and then giving them freedom is important, so I can focus on the primary tasks of a CEO, which are employee management and looking at the general direction and sustainability. I'm a down-to-earth boss. I was born in the northern part of the Netherlands, and there is a saying says that ""you should never forget where you come from. Another saying says that ""it could always be worse"", which keeps people humble. How do you spend your weekend? When I'm not traveling on business trips, I try to spend time with my family. Earlier I traveled with my wife to the southern part of Argentina. It was a trip that I wanted to do for a long time. It was a very interesting and almost spiritual experience. For the rest of my time on weekends, I do sports. I play golf and I run. I have run two marathons. I also bought a racing bike. I want a healthy life because when I am on business trips, there's usually not much exercise and a lot of eating and drinking, which isn't good for the body. Do you lead a green lifestyle? I try to live an environmentally-friendly lifestyle. I separate my waste and we have energy and gas from green sources. My car is a hybrid and uses both fuel and electricity. These are only small things. But it shows that whenever it's possible, we are trying to have a green approach to life. What's your favorite Chinese city? I have been here many times since 1995, but I have not seen enough Chinese cities yet. The cities I visited are very special in themselves. Beijing has a rich history. Shanghai breathes the international dimension into China, so I like that as well. Looking out from a hotel in Pudong was a very nice experience, particularly at night. I have no special preferences, but I always like to visit new cities and to explore. zhuwenqian@chinadaily.com.cn ( China Daily European Weekly 01/20/2017 page31)", -397,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006262.htm,Cheers to the beer that conquered the world,,"Tsingtao quenches global thirst by pursuing high quality through innovation On Dec 1, Mike Steward, a cyber engineer from Boston, in the United States, tweeted about Tsingtao: ""I'm in love with this beer. It's so amazing and full of life; life is in it."" Kammy Chahal, brand director of Pabst's Tsingtao US, told the media later: ""Yes, we have seen double-digit sales volume increases for the past few months in key markets in the United States."" In 2016, Tsingtao's sales grew 12 percent in overseas market, including 8 percent in the western Europe, 14 percent in Latin America and 45 percent in the Asia-Pacific. The year-on-year increase reached 80 percent in South Korea, 55 percent in Russia and 97 percent in Costa Rica. - Bottles of beer are selected for quality tests at Tsingtao's production base in Luoyang, Henan province. Provided to China Daily Founded in 1903 by beer-savvy German and British merchants in China, Tsingtao is sold in 94 countries and regions. The company has hosted one of the world's largest beer festivals, the Qingdao International Beer Festival, or Asian Oktoberfest, for 26 years. In 2015, Tsingtao Brewery sold 8.48 million kiloliters of beer, with revenue reaching 27.64 billion yuan ($4.15 billion; 3.44 billion euros; 3.44 billion). It is now ranked fifth globally in the sector in terms of production output, according to the Barth Report, an authoritative beer industry compilation. In a recent interview, Sun Mingbo, chairman of Tsingtao Brewery, said: ""We want to actively explore overseas markets. There is consensus in China's liquor industry that we need to build brands with an international reputation."" The UK has pub culture and its consumers are very picky about beer quality and taste. That Tsingtao beer sales increased at least 10 percent annually in recent years is a tribute to its resilience in the market. According to James Wright, a UK-based Tsingtao dealer, there are more than 2,000 beer brands in the UK market. ""Tsingtao has actually been one of the stand-out brands. The Chinese brand's market share kept growing in the UK's imported beer sales,"" he says. This is all the more impressive when you consider that beer sales have stuttered in the UK in recent years due to the exorbitant duties, Wright says. In Germany, where fresh breweries are seen all over and a total of 5,000 brands are sold, the average price of Tsingtao beer is set at 3 euros ($3.2; 2.6), compared with 0.8 euro to 1 euro of local brands. At least 150,000 boxes of Tsingtao beer have been sold in Germany annually in recent years. ""The pursuit of higher quality through innovation has been a major driver for Tsingtao's overseas market expansion,"" says Sun. In order to ensure products meet high standards, Tsingtao brewers must stick to a strict and detailed brewing process, which has 113 years of history. Each bottle goes through 1,800 procedures before it is delivered to market. ""For a Chinese brand, it takes decades rather than years to gain recognition in the international markets, and the quality is the foundation to achieve that. ""Tsingtao does not intend to produce low-end products just to improve sales in the international market. Our products aim at the global middle and high-end markets."" Tsingtao is also trying to diversify its products to meet changing market demand. For instance, Tsingtao's factory in Qingdao used to produce only three kinds of beer in the 1980s, compared to the current 183 varieties. Tsingtao's factories nationwide are producing 1,500 beer products across more than 20 categories. It has launched several new products, including special packages for festival events, high-end black beer (or schwarzbier, a dark lager usually made in Germany) and football packages to upgrade its portfolio. Zhang Yi, senior customer manager of Tsingtao Overseas Business Department, says: ""We offer customized packages on festive occasions in different countries and ensure that all our design elements embody traditional Chinese culture in depth, so that people in these countries can fully understand Chinese zodiac and festival culture."" With a brand value estimated at about 116.9 billion yuan, Tsingtao Brewery leads China's beer industry, according to the World Brand Lab, a leading independent consultancy of brand valuations. xiechuanjiao@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page27)", -398,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006261.htm,The write stuff: Chinese pens reach tipping point,,"SOE Tisco attains a breakthrough in the making of special steel, stirs debate on quality Shanxi-based Taiyuan Iron & Steel Co Ltd, or Tisco, one of China's major stainless steel producers, has independently developed the specialty steel needed to make the feedstock for ballpoint pens tips. It is hoped this will replace the annual import of 1,000 metric tons of special steel for making the pen tips. ""The feedstock, as small as it is (only 2.3 millimeters thick), requires an exact proportion of microelements,"" says Wang Huimian, senior engineer of Taiyuan Iron and Steel. A quality control worker examines raw material used in the manufacture of ballpen tips at Taiyuan Iron & Steel Co Ltd in Shanxi province. Sun Ruisheng / China Daily With 26 years' experience of working in technological development teams, Wang says that the ballpoint pens' feedstock was a tough nut to crack. ""The steel requires the exactly right proportion of a number of special microelements to maximize the pen's performance. Even a small difference in the proportions of the elements would affect the final quality. If the right proportions could not be found, China would always have to rely on imports,"" says Wang. The tip of a ballpen is made up of two parts: the tungsten carbide ball for writing and the feedstock for holding the ball. China produces and exports the tungsten carbide ball. But the feedstock relies on imports from countries such as Switzerland and Japan. China's overall iron and steel output is in excess. Yet most of the overcapacity is in ordinary and low-quality products. The country still has to import technology-intensive specialty steel. The country makes 38 billion ballpoint pens every year, more than any other country in the world. But it has to import more than 1,000 tons of steel for pen tips at 120,000 yuan ($17,386; 16,405 euros; 14,203) per ton. Taiyuan Iron & Steel's project for developing homegrown feedstock started five years ago in collaboration with Beifa Group, one of China's largest makers of ballpoint pens, based in Ningbo, Zhejiang province. Li Jianmin, technological director of Taiyuan Iron & Steel, said that additives in the steel affect the ability of the final product to resist corrosion. The quality of the feedstock is controlled by strictly managing the additives at every stage, including rolling, wire-drawing and heat treatment. ""The proportion of microelements that overseas companies use is usually a top secret. Taiyuan Iron & Steel has deciphered the proportion independently through thousands of experiments,"" Li says. The developers drew inspiration from making dough. ""If you want dough to be of just the right softness, you need additives. It's the same with steel. The ordinary additives are in the shape of lumps. If they can be made fine and smooth, the liquid steel and additives will be more evenly blended,"" Wang says. The technological breakthrough has pushed up the stock price of Shanxi Taigang Stainless Steel Co Ltd, the group's subsidiary listed on the Shenzhen Stock Exchange. From Jan 9 to 11, its stock price rose by 27.4 percent to 5.12 yuan. Contact the writers through yangziman@chinadaily.com.cn The tip/ball of the ballpen calls for advanced manufacturing technology, which Tisco has mastered after five years of research. Lyu Jianshe / Xinhua ( China Daily European Weekly 01/20/2017 page25)", -399,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006260.htm,Brewer optimistic about growth,,"Anheuser-Busch InBev SA/NV, the world's biggest brewer by sales, is optimistic about maintaining double-digit growth in sales of its super premium brands in China this year, as demand continues to increase, a top executive says. ""We see an obvious trend for consumers who want more from the beer market in China, especially in the south and in the first-tier cities. Consumers are demanding different types of beer and are willing to pay more for a swig of the imported stuff,"" says John Hsu, vice-president of super premium brands of AB InBev China. ""Although the growth of China's overall beer industry is slowing down, we have seen double-digit annual growth in the import volumes of super premium beer in the past three years,"" Hsu tells China Daily. - A worker checks bottled beer at AB InBev's factory in Zhangjiagang, Jiangsu province. Zhu Rui / For China Daily Premium and super premium beer is the sector beer makers believe shows the most promise to break through the current bottleneck in beer sales in the Chinese market, to generate rapid growth. Although total sales volumes of beer in 2015 fell 4.9 percent year-on-year, sales of premium beer and super premium beer increased by 9 percent and 17 percent respectively, according to Fang Gang, a Beijing-based beer marketing specialist. ""Midrange and low-priced beer still commands at least 80 percent of the beer market in China, but supply exceeds demand in that segment,"" he says. In response, local breweries like Tsingtao Beer, Yanjing Beer and China Resources' Snow Beer launched a number of premium products in the past two years to compete against imported brands that now sit at the top of the sales pyramid. But the premium and super premium market in China is actually still under development, according to Zhu Danpeng, a researcher at the China Brand Research Institute, specializing in food and beverage business. ""To develop the market, cultivating a beer culture is the key,"" says Hsu from AB InBev China, which sells 20-odd premium and super premium brands in China, including Corona and Stella Artois. For example, AB InBev recently brought the Corona Sunsets Music Festival to Guangzhou in southern China's Guangdong province . It built a 7,000-square-meter artificial beach, where young people could dance to music while holding Corona beer served with lime. ""We will introduce more premium beer and the top brand of each type to Chinese consumers,"" Hsu says. ""By linking a brand to a particular drinking ritual and lifestyle, we hope to build up special connections between consumers and different products."" xujingxi@chinadaily.com (China Daily European Weekly 01/20/2017 page29)", -400,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006259.htm,'China's destiny was to lead the world',,"Former British minister looks back on an eventful career - including the handover of Hong Kong Sir Malcolm Rifkind, UK foreign secretary in the run-up to the Hong Kong handover 20 years ago this year, says he was going to choose a title for his autobiography that might have chimed with Chinese notions of longevity and respect for the elderly. ""My first draft title for the book, which my publishers were amused but not particularly impressed by, was My Early Life: The First 70 Years, which a Chinese audience would have appreciated."" ""We are told the lifespan is going to be a lot more than it would have been once upon a time but this was seen as slightly frivolous."" - Sir Malcolm Rifkind says leaving EU makes it more difficult for the Chinese to make decisions to invest in UK. Nick J.B. Moore / For China Daily The title eventually chosen was Power and Pragmatism, concepts that perhaps best sum up the career of the respected Scottish politician who served as a cabinet minister under former prime ministers Margaret Thatcher and John Major for 18 continuous years, a feat (shared with three of his ministerial colleagues) not achieved since the 1820s. Rifkind, who was speaking in the lounge of the Intercontinental London Park Lane Hotel in Mayfair, says that pragmatic politicians differ from conviction politicians in that they don't feel guilty adapting their positions to circumstances. ""The pragmatist is much more relaxed about it. It doesn't mean the pragmatist has no convictions but if you are dealing with a problem and your previous conceptual or philosophical preference does not add up, it is OK to ask, what else would work?"" In the book- full of dry observations and witty anecdotes-he recounts the negotiations leading up to the handover of Hong Kong back to China on June 30, 1997. He was foreign secretary up until a month before, when the Conservatives suffered a landslide defeat at the hand of incoming Labour prime minister Tony Blair and he himself lost his Edinburgh Pentlands seat in Parliament, which he had held for 23 years. He held his first meeting with Chinese foreign minister Qian Qichen in London in 1995 and when he visited Hong Kong and the Chinese mainland the following January he was given the nickname in the local press of ""Li Wenjun"", meaning ""a cultured gentleman"". ""Much of the hard work had already been done by Margaret Thatcher and Sir Geoffrey Howe (the former foreign secretary who had negotiated the 1984 Joint Declaration that paved the way for the handover). So I was just dealing with a number of unresolved issues, or new issues that had arisen. It was not too difficult,"" he says. ""Because we were approaching the moment of truth, obviously within Hong Kong itself there was increased nervousness about what the changeover would mean."" Rifkind makes the point that Beijing resuming control of Hong Kong was an unprecedented event. ""It was a unique problem which required a unique solutions so it is fair to say that Hong Kong remains governed by a different system to the rest of China,"" he says. ""The fundamental commitment to two systems in one country has been honored, in the sense you know."" The book charts his career from an up-and-coming Scottish advocate to being elected as a Member of Parliament when he was only in his late 20s. Although gifted with an uncanny ability-honed in debates at university-to speak without notes, he is slightly bemused by his reputation as an intellectual, which he modestly says belies his actual academic achievements at school. His first cabinet appointment came under Mrs Thatcher when he was made secretary of state for Scotland in 1986. He believes Scottish public opinion remains firmly against independence and that, as a result, Scotland's First Minister Nicola Sturgeon will not trigger a second referendum, despite her rhetoric. ""Mrs Sturgeon is a very clever lady and she knows if she had one, she would almost certainly lose it."" Rifkind says he is not surprised that China has emerged as such a powerful economy over the past 40 years. ""It was always inevitable that would happen. You could not have a country the size of China with such a huge population, as well as its historical and cultural identity going back 2,000 years, where that was not the case,"" he says. ""China should always have been a great power. It should always have been the largest or second largest economy in the world."" He believes former Chinese leader Deng Xiaoping's reform and opening up agenda in the late 1970s proved the catalyst. ""Chinese societies that have had experience of capitalism have been brilliantly successful. The economic reforms in China, starting with Deng Xiaoping, turned China into a capitalist system, albeit with communist characteristics."" One of the UK's foreign policy shifts in recent years was the heralding of a new ""golden era"" of relations with China, culminating in Chinese President Xi Jinping's state visit to London and Manchester in 2015. Some have suggested that new Prime Minister Theresa May is less willing than her predecessor David Cameron to fully embrace the world's second largest economy. The new government, however, did finally give the go-ahead to Chinese investment in Hinkley Point C nuclear power station in the west of England, despite calling in the decision for review. ""If Mrs May's government had ended up rejecting Hinkley Point, that would have represented a sea change. That would have been fundamental - but she didn't,"" he says. ""There were a number of safeguards that were insisted upon but Chinese investment in the UK economy, and in particular its nuclear industry, is continuing. So to that degree there is continuity."" One of the major questions is whether the UK's referendum decision in June to leave the European Union will make it a less attractive place to invest. Rifkind, who supported the UK remaining in the EU, says the country's uncertain status makes it more difficult for the Chinese and others to make investment decisions. ""Clearly any major companies from other parts of the world, who have a European market with a headquarters in the UK, ask themselves ""what does this mean for us?"" He, however, believes the UK will prove itself to be resilient in the end. ""If you only have 65 million people and you are the 5th or 6th largest economy in the world, that is an enormous economic achievement. That strength didn't begin when we joined the EU and it doesn't disappear because we have left it."" Rifkind had to resign his seat before the 2015 General Election, having been caught up in a sting by the Channel 4 Dispatches program, where he was secretly filmed discussing a potential board position for a fictitious East European company. Suggestions there was a conflict of interest were later dismissed as groundless by the Parliamentary Standards Commissioner. The veteran politician, who at the time of this interview was about to address a conference on the Middle East, said he felt it was the right time to set the record straight on many aspects of his life by writing his autobiography. ""I'd always sort of assumed that in the dim and distant future I would write a book of this kind and it was about a year ago that I gradually had to come to terms with the fact that, as I was approaching 70, the dim and distant future had arrived."" andrewmoody@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page32)", -401,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006258.htm,Woman fights to popularize Eileen Chang in English,,"Her work has inspired Oscar-winning director Ang Lee and she is considered one of the most important Chinese writers of the 20th century, but Eileen Chang has yet to make a major impact in the West. Translator Karen S. Kingsbury says she is determined to change that and persuade readers in the United States to understand why Chang is worthy of their attention through a biography she is working on. ""I am not planning just to write an English version of the already existing biographies in Chinese. I will try to speak to an American audience to explain why Eileen Chang is so worth their attention,"" says Kingsbury. When Kingsbury first read Chang's Love in a Fallen City in Chinese, her Chinese wasn't very good. ""But it's like a magnet that pulls you into it, and you become a translator because of that text,"" recalls Kingsbury. The American academic wrote her doctoral dissertation on Chang, completing it in 1995, the same year Chang died in Los Angeles of cardiovascular disease. Since then, Kingsbury has published translations of Chang's Love in a Fallen City and Half a Lifelong Romance. Kingsbury's translation of Love in a Fallen City was first published in Renditions, a literary journal run by Chinese University of Hong Kong, for a special issue in memory of Chang in 1996. Together with translations of Chang's other short stories, it was later published by Penguin in 2007, and it has been selling steadily since then. The same year, Ang Lee released his erotic thriller Lust, Caution, based on a short story by Chang. The movie won many awards, including the Golden Lion at the Venice Film Festival, and was nominated for a Golden Globe in the United States. The growing interest in Chang prompted Kingsbury to translate Half a Lifelong Romance, which took her six years to finish and was published by Penguin in 2014. Born to an elite family in Shanghai in 1920, Chang read a lot of classical Chinese literature and started publishing stories when she was still in middle school. She studied English literature at the University of Hong Kong and emigrated to the US in 1955. Chang's life in the US was a personal and professional struggle. Her second husband, Ferdinand Reyher, an American screenwriter, suffered a series of strokes and died in 1967, and she didn't gain much popularity until after her death. Kingsbury is a professor of international studies at the faculty of English at Chatham University in Pennsylvania, and Chang features strongly in the curriculum. ""It was very helpful to remind them (the students) that when you're living in Shanghai in the 1930s - even though the Japanese are bombing the city and all kinds of terrible things are happening - there is still a kind of daily life that is going on,"" Kingsbury says at a seminar on translation in Beijing. By relegating major historical events, such as the Japanese invasion of China and the outbreak of World War II, Chang emphasized the private lives of her characters - human emotions, marriage and family matters. ""Chang's works won't appeal to everyone, but readers who like to peer deeply into psychology will like her writing,"" says Kingsbury. Kingsbury graduated from Whitman College in Washington in 1982 and spent the next year teaching English at Sichuan Foreign Studies University in China, where she began a lifelong passion for Chinese literature. She became interested in Chang when she was studying comparative literature at Columbia University in New York under the guidance of Hsia Chih-tsing and Wang Der-wei, two renowned scholars who praised Chang's works. - Kingsbury's translations of Eileen Chang's Half a Lifelong Romance and Love in a Fallen City. Photos Provided to China Daily (China Daily European Weekly 01/20/2017 page19)", -402,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006257.htm,Endangered species make up new focus,,"Former paraglider stays connected to natural world through wildlife photography Gu Ying was once a paraglider, winning gold medals in national competitions. But now she is a wildlife photographer, taking photos of endangered species. In the past three years, Gu has trekked to the Earth's ""three poles"" - the North Pole, South Pole and the Qinghai-Tibetan Plateau - to catch a glimpse of wildlife living in the most extreme environments of the planet. Her shots of polar bears, emperor penguins and Tibetan antelopes, and her efforts to promote public awareness of endangered animals, won her the title of 2016 Chinese Culture Person of the Year, awarded on Jan 11 by the Chinese Culture Promotion Society. - Tibetan antelopes cross the Qinghai-Tibet Highway in a picture Gu Ying took in 2016 in Qinghai's Hol Xil. Provided to China Daily Gu was born into a military family in Beijing. Her parents worked in the air force and, when she was still a little girl her family was relocated to a radar base in the mountains near Xuzhou, Jiangsu province. ""Sometimes I missed the school bus and had to walk alone on the mountainous paths between home and school,"" recalls Gu. ""I got my guts and love for nature during that period of time."" After graduating from university, Gu worked in Shenzhen, Guangdong province, and started a successful business in the late 1990s, but she never forgot about the mountains and went outdoors whenever she could. Once, when Gu was hiking on a mountain, a paraglider flew by and waved at her. ""I was thrilled because I once wanted to be a fighter pilot,"" says Gu. ""The paraglider evoked my childhood dream."" Gu then registered for a paragliding course and, after three weeks' training, made her first flight. ""It felt like I was a bird and belonged to the sky."" Since then, Gu has taken many classes and later became a paragliding athlete. She won gold medals four times in national competitions and set a national women's record for 100-kilometer paragliding. In 2009, Gu fell from the sky in an accident and broke her back. Luckily, her spine was not irreparably injured. After three months in bed, Gu was able to stand up again, but she had to say goodbye to her paragliding career. ""We paragliders call ourselves birdmen,"" says Gu. ""When I couldn't fly like a bird, I found another hobby - taking photographs of birds."" Since 2011, Gu has taken photos of around 1,000 species of birds in dozens of countries. Some of her photos of rare birds have been included in The Handbook of the Birds of the World. Starting with bird photography, Gu gradually became a wildlife photographer. In 2014, she embarked on a journey to capture the moment polar bears bring their newborn cubs out of their caves after hibernation. It took her more than 10 days at a base within the Arctic Circle in Canada to get a good shot. The next year, Gu flew to inland Antarctica to take shots of the emperor penguin. This time, she was stuck in a camp near the habitat of the penguins for 18 days because of strong storms caused by the El Nino effect. ""Everyone was frustrated, but I was very happy because I could spend more time taking photos of emperor penguins,"" says Gu. ""And only in storms could one capture their real living environment."" ""Every day, I spent more than 10 hours out there photographing the penguins,"" adds Gu. Last year, she went to Hoh Xil in Qinghai province three times. She wanted to photograph Tibetan antelopes in the least populated area of China, 5,000 meters above sea level. In order to capture the Tibetan antelope's breeding process, Gu remained hidden from 5am to 9pm every day. ""I could not go outside, nor eat any food that had a smell. It was really tough, but I think it was worth it,"" says Gu, whose photos have been used by the Hoh Xil local government in applying for UNESCO's World Heritage List. ""After all these years photographing wildlife, recording their lives has begun to feel like a responsibility for me,"" says Gu. ""But I don't want my photos to be the last 'living monuments' of those species that can be seen only in a frame."" xingyi@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page19)", -403,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006256.htm,Open the gates,,"Imagining public parks with no walls Imagine a park that has no barrier from the surrounding neighborhood, nothing to prevent you stepping right off the sidewalk into the park from any direction. This is hardly a revolutionary concept in urban design. In fact, you could be forgiven for thinking it is, in fact, the dictionary definition of a public park. The announcement of a plan by a land developer in Shanghai's Xuhui district to make an open-access, fenceless green space on land donated by the local government in the new central business district was enthusiastically received by local media, which promoted it as a centerpiece of modernized city planning and Xuhui's own version of Central Park. Back in 2009, the Guangzhou government's ""give the park back to the people"" movement had the same bright idea, proposing the removal of the walls around three of its biggest urban parks. In this case, however, the plans were temporarily halted due to an outcry from local residents. One elderly Guangzhou resident said: ""Tear down the walls, and you can no longer call it a park."" His argument was a linguistic one - the character �?(yu��n), for garden, is the Chinese word for ""public park"" (公园, gōng yu��n, public garden) uses the radical, which comes from the ancient ideographic representation for enclosure. Other citizens translated his concern into more practical terms: without walls, what was to prevent the park from becoming a ""free hotel"" for the homeless, or a wretched hive of criminals who could enter and escape at will? Encouraged by official directives to add recreational areas and green spaces to the urban landscape, cities in China are increasingly building so-called ""open-style parks"" (开放式公园, kāifàng shì gōngyu��n ). But the history of truly open-plan, public-access parks in China is short, and the learning curve they present is steep. Until the early 2000s, most ""public"" parks in China - defined simply as parks not reserved for use by any danwei (单位, dān w��i), or work unit - not only had walls and fences but charged admission to enter. In 2002, Shanghai and the city of Zhuhai, Guangdong province, began to offer free admission to a limited number of their parks. Beijing followed in 2006. However, the terminology of ""open-style parks"" is misleading; in most cases, even without a ticket office, the parks have retained guarded entrances, opening and closing hours, and enclosures all around the perimeter. Beijing's Ming Dynasty City Wall Relics Park is a special case. By the standards common to Chinese landscaping, they've gone and put walls on the wrong side. Completed in 2006, the park consists of grassy knolls, winding paths, and flowering shrubs buttressed against one of the last remaining sections of Beijing's ancient fortifications; on the other side, the grass runs straight up against the sidewalk. ""Strictly speaking, that makes us an open-style green space, not an open-style park,"" says the manager of the park office, surnamed Shi. Last October, when Shanghai's Xiangyang Park was reopened after renovations, which included the removal of the park's outer walls, the response from the community was lukewarm. ""They don't understand that the wall itself is a part of landscaping, it's architecture,"" a long-time park visitor was reported as telling local news blog Shanghai Guangcha. Chinese landscaping scholar Yang Han has published papers that have been generally approving of the opening up of China's urban parks, referring to the trend as the natural accompaniment for modern, urban society's recreational needs. However, he has also argued that walls should not be ""blindly removed"" because their long cultural and symbolic history, as well as architectural details, make them an invaluable ""Chinese characteristic"" in landscape architecture. Walls have played an indispensable role in the two ancient styles that influenced traditional Chinese landscaping, the ""imperial garden (御花�? yù huā yu��n)"" and ""literati garden (文人园林, w��nr��n yu��nl��n)"". Imperial gardens originated from early imperial hunting grounds, which were walled off to all users except for the emperor. These later evolved into private retreats in which the emperor could relax and enjoy his diverse, often exotic collection of plants. As with City Wall Park's corner tower, there is a sense the garden being a place to preserve and showcase objects of historical interest. The ""literati garden"", of which the private gardens of China's Jiangnan region are the most famous example, favored a simpler aesthetic consisting of native plants and more naturalistic arrangements. Built with a philosophy of ""high walls and deep courtyards (高墙大院, gāoqi��ng dàyuàn)"", they were meant to be secluded spaces for the scholar's literary and spiritual contemplation, influenced by the so-called ""hermit culture in the tumultuous Northern and Southern Dynasties (420-589) period. Under this culture, educated men were encouraged to retreat from political life and cultivate their moral qualities in nature. Stepping into a Chinese park still feels like discovering a private sanctuary: Residents walk slower and without fear of being run over by bikes, while the sounds of the city are muted behind the old melodies playing on the radio as seniors dance. But Zhang Jie, a landscape engineer attached to the Parks and Greening Management Bureau of Changsha, Hunan province, is not sure that such a place ought to qualify as a public park. To him, they fail to incorporate the first character of 公园, which is �?(public). Screened behind walls and fences, recreation takes place out of the sight of passersby, instead of being integrated into each resident's sensory experience of the city. This is a mode of life that Zhang calls ""participatory"". It was with the intention of increasing the participatory character of their communities that the Changsha government, earlier last year, gave the order to remove the walls around their public parks. ""Our country has always advocated ""�getting close to people's hearts', and there's no better way than to welcome them to our spaces,"" Zhang says. These days, while many universities and military units are still set up like this, most urban residents of China find themselves living in their own apartments and crossing paths with strangers at every turn. In essence, this forces Chinese urban residents to adjust to a concept of ""public space"" where they must coexist with and respect the individual needs of others, rather than the socialist ""communal space"" in which they shared with others a similar, state-mandated style of living. To Zhang, this is a positive development in helping residents ""get to know their neighbors, their city, their government"". However, it's also the source of much of the controversy in response to open parks in cities like Guangzhou and Shanghai, as residents' unease toward public spaces spills into the last remaining institutions that symbolized the old style of governance and security. Zhang says he has not received any feedback from residents anxious about their safety or the suzhi (素质), or ""quality"" of their fellow park visitors after the removal of the walls, though he admits that open parks are potentially more challenging to make safe and orderly for users. The views from the ground are mixed. On a weekday morning, a knot of local residents exercising at the City Wall Park share their impressions of the park's good points and bad. They unanimously say that ease of access is the main reason that they come to the park, some of them every day. Shi believes that her park has been more or less free from controversy due to the security investments taken by Beijing as a whole. ""Each city has its own concept of safety, a different threshold for accepting these open public spaces,"" she says. Residents of Guangzhou, would probably have different concerns about its safety compared to the capital. Fang agrees that the impression of public safety is not purely due to the presence of guards but the quality of Beijing residents. ""This is a nice neighborhood,"" she stresses. Courtesy of The World of Chinese, www.theworldofchinese.com The World of Chinese (China Daily European Weekly 01/20/2017 page23)", -404,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006254.htm,Internet-based thriller draws fans to theaters,,"Hollywood's young-adult thriller Nerve does not have Chinese stars or scenes shot in China, but it is making waves in China - the world's largest internet market, where half the population is online - thanks to its internet celebrities. Internet celebrities are ordinary people striving to become online sensations by showing off their talents. Such celebrities in China have millions of fans, generating huge profits. Some of the most popular reportedly earn more than 300,000 yuan ($43,300; 40,638 euros; 40,638) monthly. This may explain why Nerve, which examines the dark side of the internet-celebrity craze, has struck a chord with many young Chinese, who now form a major part of the theater-going population. Since it opened on the Chinese mainland on Jan 6 - the same day as the tentpole Rogue One: A Star Wars Story - Nerve has become the second highest-grossing movie among the Hollywood imports currently on the country's big screen. Directed by Henry Joost and Ariel Schulman, the duo known for the internet fraud-themed documentary and series Catfish, the 96-minute film returns to a familiar zone: online violence triggered by the web's anonymous environment. The film is based on a livestreamed game that gives weird or risky dares to players and cash rewards to the most-watched winners. It begins with tasks such as kissing a stranger or running away from a public place naked. In the movie, the protagonist, a high-school girl played by American actress Emma Roberts, is dragged into a lethal trap where viewers want to see a win-or-die competition between her and her competitor, played by Dave Franco. Despite the film's popularity, most Chinese viewers reported feeling a bit disappointed with the latter part of the film. While they expected it to take an in-depth look at internet culture and its negative effects, the film's conclusion failed to meet that expectation. xufan@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page20)", -405,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006253.htm,Yoga lessons aim to tackle student stress,,"Teachers visit universities to help youngsters deal with the strain of academic life Dozens of students at Tsinghua University are practicing yoga in a stadium, following demonstrations by a teacher onstage. It's part of Yogi Yoga's recent public service campaign to tackle the problems of depression and anxiety among Chinese university students. The yoga center is doing a tour of 10 top universities in cities such as Beijing and Shanghai to teach students to fight stress with yoga. - Yin Yan cofounded Yogi Yoga with Indian yoga master Man Mohan Bhandari in 2003 to promote yoga in China. Photos provided to China Daily Yogi Yoga aims to help 100 universities within 100 days and is encouraging institutions to organize yoga classes, saying it will send volunteers to teach. ""I want to share authentic Indian yoga with others. Yoga practice can help Chinese students enjoy campus life, rather than suffer stress and anxiety,"" says Yogi Yoga co-founder Yin Yan. The former editor-in-chief of fashion magazine Elle China, she co-founded Yogi Yoga with Indian yoga master Man Mohan Bhandari, better known in China as Yogi Mohan, in 2003. They later became a couple and now have two children. ""It is estimated that more than 90 million people in China suffer from depression. The campaign aims to help those who have the potential to fall victim to depression,"" she says. Bhandari has developed some yoga postures that he says are helpful in stress management for university students. He speaks at universities and shares videos online so that more students can benefit from yoga. He also has a Sina Weibo account to answer questions from those who practice yoga. Until the end of December, a yoga teacher will be doing a daily live broadcast beginning at 7 am on an account named Yoga Digest on Sina Weibo, to encourage the Chinese to learn the ancient Indian practice. Each video attracts tens of thousands of hits. Yogi Yoga has also worked with Peking University to establish a yoga training center to offer one semester of free courses for university students, including meditation and breathing. ""Scientific research shows that yoga has positive effects in combating depression and anxiety. Yoga can help deal with one's nervous system. And once your system becomes quiet, your mind will be quiet,"" says Bhandari. According to Bhandari, those who suffer from depression have one problem - they cannot breathe properly. Yoga, he says, can help them balance the oxygen and carbon dioxide levels in the body. In India, most people know about yoga. They know that it is not only a physical exercise, but also deals with the mind, energy and spirituality. But for Chinese students, he has to first teach the basics. He believes there are not many differences between teaching in India and in China. Yin practices yoga postures and breathing every morning, to stretch her body. She suggests others find time to fully concentrate on yoga. ""Yoga is a good way to ease pressure and make you sleep better. Many have the misconception that it is only for those whose body is supple. Actually, those who have a stiff body should practice yoga to keep their body balanced,"" she says. ""Yoga is not a career, but it is my destiny (to promote it). It gives me faith and power,"" says Yin. For Yin, her link to yoga and her husband came from a 21-day journey to India in 2003. She spent the first week in Rishikesh to learn traditional yoga. The city is known as ""the yoga capital of the world"", with numerous yoga centers that attract visitors from all over the world. She was a bit depressed when she first saw the city's streets after heavy rain: narrow muddy roads, stray dogs and vendors loudly hawking their goods. When she first encountered Bhandari, she was impressed that the young man in white robes was quiet and professional. After one week of learning yoga postures from him, her perspective began to change. There were adorable dogs in the streets filled with sunshine and friendly locals with smiles on their faces. ""In that week, nothing changed but me. As my body became relaxed and soft, so did my heart,"" she says. ""Happiness can be simple. Yoga taught me that happiness is about whether or not you are in a balanced and optimistic state. When you are in society, that state may be affected subconsciously. But yoga can help you to remain positive."" It also stirred her creativity and she wrote a Chinese book, Song of India, the same year about the trip that changed her life. In August 2003, Yin and Bhandari co-founded Yogi Yoga in Beijing, a few months after she invited him to the city to teach her and her friends yoga. While Yin is in charge of management and operations, Bhandari is responsible for teaching. ""Yin has great vision, and she wants to give the benefits of yoga to society and initiated the events at universities,"" says Bhandari. According to Yin, yoga helps people to have an optimistic attitude toward life. Yoga is an in-depth study, not just a series of poses. She says it is better to practice yoga under the guidance of professionals to find what suits you best. For example, for those who have lumbar disc protrusion, some postures are good while others are not. xulin@chinadaily.com.cn - Man Mohan Bhandari believes yoga can help those who suffer from depression to balance the oxygen and carbon dioxide level in the body. (China Daily European Weekly 01/20/2017 page21)", -406,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006252.htm,Cozying up to the Kitchen God,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong bonds of community and culture. It's only fair that we should pay homage to one of the most ancient of Chinese deities in a food column devoted to a culture largely incubated in the territory he reigns over - the kitchen. Zaojun, the Kitchen God, is a fair-faced celestial being who spends only a few days in the heavenly court of the Jade Emperor. For most of the year, he presides over the heart and hearth of earthly households, guarding the livestock, the servants and, most of all, the cooking stove. He is privy to the darkest secrets, and he sees all. - From as long as we can remember, the portrait of the Kitchen God, seen here with his wife, has reigned over the cooking stove in many Chinese kitchens. Jin Yuequan / For China Daily He listens to the back room gossip, the quarrels among the womenfolk. He witnesses the trickery of malingering servants, the secret stashes of food hidden for a stolen feast, the cutting of corners in the making of a complicated dish, the whispered rumors, the scandalous truths. For those reasons, when it is time for him to ascend to make his annual reports, the whole household is suddenly alerted to his imminent departure and he is showered with food offerings to put him in the best of moods. Yes, even the gods must be bribed. In this case, the Kitchen God is sent off with an appropriate feast, all of which will include a final offering that is very sticky, and very sweet. These sticky sweets, the foolish humans hope, will seal his lips or sweeten his tongue and he will return in the new year with the appropriate bountiful blessings from heaven after making a positive assessment of their merits. Right now, in kitchens large and small all across China, the preparations are starting. Zaojun will be traveling to report to his boss soon, on the 23rd day of the last lunar month, which is Jan 20. He has been doing this every year for a long, long time - as far back as the Xia Dynasty (c.21st century-16th century BC), more than 2,000 years before Christ was born. The Xia was the first recorded dynasty in Chinese history, so it is likely Zaojun has been around even longer than that. Basically, the Kitchen God has been guardian of the stove ever since the Chinese started cooking indoors. The day of his departure also signals the start to a flurry of preparations for the official arrival of Spring, a week away. His portrait, probably smoky from standing over the stove for an entire year, will be taken down, smeared with honey and reverently burnt to send him on his way. In the new year, a brand new portrait will go up on the wall. Meanwhile, the kitchen and its inhabitants will be pretty busy. There is even a folk rhyme to guide you through it all: Twenty-third, pumpkin candies, twenty-fourth, spring cleaning. Twenty-fifth, tofu time, twenty-sixth, make meat stew. Twenty-seventh, kill the rooster, twenty-eighth, rise the dough. Twenty-ninth, steam the buns, New Year's Eve, stay up late New Year's Day, celebrate! Once Zaojun leaves, replete with sticky pumpkin-shaped candies, the mops and dusters come out the next day and every dustball and each cobweb is industriously swept up and removed. The more creative among the girls will start crafting beautiful paper cut-outs from auspicious red paper. Fruits and flowers, the Chinese characters for happiness and spring, images of deer and bats and other lucky icons - all these will be pasted on windows and walls. Those with good calligraphy skills will be called upon to write couplets of good wishes that will go across lintels and door frames. All on red paper. In the meantime, an enormous amount of cooking will be done - starting with the slaughter of the chickens, ducks, pigs and goats to the soaking of soy beans for the making of tofu. Another important task is the bun making. Steamed buns are very much part of the daily diet all year round, but the buns for the New Year will be decorated with dates and shaped into impressive works of art. In my own household, Ayi and I will be creating flower buns cut from strips of dough artfully twisted into blossoms. Ayi comes from Henan, where the ladies are really good at turning dough into masterpieces of miniature architecture. She has taught me how to press dried Chinese jujubes into the dough for instant effect. The red fruits add color and flavor as well. We also make piggy buns because the pig is, of course, a symbol of prosperity. In the southern regions of China, a sticky rice cake called niangao is also prepared. The basic recipe is golden syrup and glutinous rice flour. Occasionally, red beans and coconut milk are added and the mixture poured into containers lined with bamboo or coconut leaves. These days, elaborate jelly molds are used to shape the cakes, with fish molds being the most popular because fish is homophonic with ""overflowing abudance"". At this time of the year, rituals and symbolic foods become part of the celebrations and even though some may seem to be based simply on superstitions, they are still oddly comforting and very much part of the festivities that make a new lunar year so very special. As for the Kitchen God, I'm pretty sure he enjoys the attention he gets every year and he never fails to return, duty completed, and ready for another year listening in on the household secrets. paulined@chinadaily.com.cn - To worship the god, crafting paper cut-outs, fruits and flowers, images of lucky icons - all these will be pasted on windows and walls while food such as buns and desserts will be prepared. Photos Provided to China Daily (China Daily European Weekly 01/20/2017 page18)", -407,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006251.htm,Lonesome lives: The sad plight of children left behind by workers seeking a better life in China's cities,,"Spring Festival will be celebrated by Chinese at home and abroad in a week's time. A good number of the country's more than 200 million migrant workers will return home to smaller cities and villages, bearing gifts for the children they have left behind in their pursuit of work in bigger cities. A central government survey released in November suggests China now has 9 million children at or under the age of 16 whose parents work away from their domiciles. In 2013, the All China Women Federation, a government-backed agency said the country had 60 million such children under the age of 18. Analysts say the new survey's methodology is different from the previous one in terms of the children's age as well as the categorization of absent parents. Some sociologists expect an actual decline in the number in coming years, with signs of more family migrations. But a recent visit to East China's Anhui province, which is among the top inland areas for outward migration, showed that on the other side of the country's economic boom lie villages and small towns that continue to battle a deep emotional void. - A girl and her grandfather live in Fuyang, Anhui province. In rural patches of Fuyang, a large municipal-level city located more than 200 kilometers northwest of the provincial capital Hefei, most residents are the elderly and their young grandchildren. Here, the working age population is simply missing. Hundreds of empty houses dotted across farmlands provide further evidence of desertion. In the Houyuan neighborhood of Wuli village, for instance, more than half of the 22 households have children in the care of their grandparents. In adjacent Dongzhou, of the settlement's 65 residents, the majority face a similar situation. Local government officials estimate 2.8 million people from Fuyang's population of 10 million live in different parts of the country. Guo Lin, chairwoman of the Fuyang Women's Federation, says the migrants mostly move to wealthier eastern provinces, such as Zhejiang and Jiangsu, and Shanghai to do low-level jobs in manufacturing, services, construction and other sectors. As a result, 179,000 children under the age of 18 have been left behind in Fuyang, she says. The term used to describe such children emerged from the so-called left-behind wives whose husbands had migrated from Anhui and other provinces, such as Sichuan, Henan, Guizhou, Hunan and Hubei, to mainly coastal cities in the 1990s. In the following decade, the women themselves started to migrate. A large number of female domestic helpers in Beijing came from Anhui back then. ""The 2016 survey considers the legal working age of young Chinese and of families where both parents have migrated,"" Guo says of the differences between the new central government study and ACWF's 2013 survey that counted such children even when one parent was missing. Sociologists have previously also studied migration patterns in the rural reaches of relatively affluent places such as Chongqing and Guangdong province. In the Houyuan area of Fuyang's Wuli village, Zhou Peisheng and his wife, Liu Guilan, have been raising their granddaughter for the past three years. The couple's daughter and son-in-law are a waitress and a chef at a restaurant in Nanjing in Jiangsu province. ""It's no trouble taking care of her, she isn't naughty,"" Zhou says of his granddaughter, Ni Yuting, aged 9. Her parents keep long working hours, which is why Ni can't live with them in Nanjing, he says. Ni wants to see her parents more often and for longer periods than just during the annual holidays. She also wants to know ""what gifts they will bring for me"". In Zhou's neighborhood, most working age couples have migrated to Hangzhou in Zhejiang province, where the G20 Summit was held last year. Zhou was once a crop farmer who worked part-time at rural construction sites in Fuyang. Today, he is among the better-off people in his locality, with income coming in from growing vegetables. His daughter sends money home as well. For Song Jinlan, a 55-year-old resident of Dongzhou area in the same Wuli village, life is slightly harder. The widow has been looking after her grandson since his birth six years ago. Her son works in Hangzhou driving trucks that carry construction materials and her daughter-in-law works at a textile unit in the city. Her son sends her 1,000 yuan ($145; 136.7 euros; 120.70) a month on average, Song says. In addition, she earns some money from selling corn and other crops that she grows. In 2015, Fuyang's per capita rural dispensable income was 9,001 yuan on average per year. Song's son and daughter-in-law come home every Chinese New Year and stay for less than two weeks. This year the couple want to arrive ahead of the Spring Festival week to hold a ceremony to cut a few strands of long hair their son has been wearing since early childhood as a traditional symbol of good fortune. But so far, Song says, her son hasn't been granted the extra leave he requested. ""Without his parents around, I sometimes feel helpless, especially when the kid falls sick,"" she says pointing to her grandson, Zhou Junhao, aged 6. In the town of Xihu, some distance from Wuli village, former schoolteacher Du Fengcai and his wife have raised two grandsons in the past 20 years. Du's son, a longtime migrant who now runs a hotel in the tourist city of Dali, in Southwest China's Yunnan province, can't take his 13-year-old younger child along because of the limited options for education there, Du says. His older grandson, aged 22, has joined his parents' business in Dali. Du longs for reform of the country's household registration system, or hukou, to increase the educational prospects for the children of migrant workers in host cities. While the first nine years of education are compulsory in China, the existing hukou system throws some challenges at migrants. The 2016 government survey makes mention of the reform, too. While at least 8 million grandparents form the backbone of second-generation parenting in China today, this aging group, with limited resources at its disposal, is often unable to provide the emotional support that the grandchildren, especially teenagers, need. ""Some problems of left-behind children are being solved with the country's economic progress, but their psychological lives still need attention,"" says Lu Shizhen, deputy chairwoman at the China Youth and Children's Research Association, a Beijing-based affiliate of the China Youth University of Political Studies. Lu advocates long-term professional counseling, not just for the affected children but also for their primary caregivers. The children of migrant couples are ""de facto orphans"", she says, adding that a mix of economic and social reasons has triggered the situation. According to the new survey, a percentage of the 9 million children largely live without adult supervision on a daily basis, effectively forcing them to stay alone. In an appalling case last year, police reported the deaths of four siblings, aged 5 to 14, in Guizhou, among the country's poorest provinces. In a ""suicide note"" written before they died, the eldest said their mother, who worked in a different place, hadn't visited them in a year and a half. Other than abject loneliness, unsupervised children in particular are at risk of sexual abuse. A few years ago, 19 cases of sexual assault on girls under the age of 18 were registered in Henan province, China Youth Daily reported. With the majority of ""left-behind"" children living in villages, there's also a need to include more women in countryside Party committees, Lu says. Last year, the State Council, China's cabinet, issued a set of guidelines for local governments to follow, including setting up more child welfare centers across the country. ""How central policies percolate down to the grassroots level is the key question,"" Lu says. That's where the real implementation is necessary. Zhu Lixin and Wu Yue contributed to this story. satarupa@chinadaily.com.cn - Zhou Junhao, 6, lives with his grandmother, Song Jinlan, a widow, in Fuyang's Wuli village, Anhui province. Zhou's parents live and work in Hangzhou and send about 1,000 yuan to Song every month for child care and other expenses. - Song Jinlan(left) says she feels most desperate when her grandson (center) falls sick. - Du Wenbo(middle) and his grandparents. (China Daily European Weekly 01/20/2017 page16)", -408,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006250.htm,Melancholy life of teenager who must fend for herself,,"Fan Xiaohui, 15, is among the 4 percent of 9 million ""left-behind"" children in China who are deprived of adult supervision by a close family member on a daily basis. [ZHU LIXIN/CHINA DAILY] Fan Xiaohui, 15, is among the 4 percent of 9 million ""left-behind"" children in China who are deprived of adult supervision by a close family member on a daily basis. Some sociologists argue that the percentage of such children is less than estimated but these cases, even if they are in the minority, are of grave societal concern. While she understands her mother's inability to take phone calls at work, and the fact that her parents and a 10-year-old brother live in a cramped room in the capital's Haidian district, Fan is working hard to cope with the psychological fallout from the family's decision to send her to Fuyang to continue her education. The bespectacled girl, whose bright smile seldom betrays her pain, was born in Huzong village in the same county. When she was 3, her parents, now both in their late 30s, migrated to Beijing along with her. There she studied for a few years in a school for the children of migrant workers but eventually her parents realized Fan needed better access to resources that her hometown could provide. She was enrolled into the Central School of Huzong Township in Fuyang. In China, migrant workers aren't often able to send their children to schools of their choosing in host cities because of the household registration system, or hukou. A reform of the system has been urged by many and may happen eventually. Fan lives in a furnished apartment that belongs to a relative who only occasionally stays in it. A typical weekday in her life involves waking up; going to school, which is a few minutes by foot; studying and eating meals at school; playing chess and reading Russian authors for fun; and ""meeting"" childhood friends on social media, most of whom are the so-called left-behind children. On the weekend, she visits her ailing grandfather in the nearby village of her birth, where he lives in a dilapidated house. Fan can't live in it, she says, because ""it's falling apart"". She doesn't need to shop for groceries or cook. She washes her own clothes and does daily chores that aren't unusual for any teenager. When China Daily met with her recently, the interview was brief as she was studying for an upcoming exam. Questions that could have provided a deeper glimpse into her life remain unanswered because of a shortage of time. Used to life in the big city, Fan initially struggled to adapt to her new semi-urban existence. She was afraid of living alone, she says. But her school seems to have played a significant role in easing her situation. Of a total 775 students here, 543 are children whose parents work in cities outside of Fuyang. Guan Dongkui, the principal, says his school acts as a second home for such children. ""We help them fight loneliness."" Fan's parents and sibling usually visit her during the weeklong Spring Festival holiday. She also travels to Beijing when schools close for the summer. ""I don't have real dreams yet because dreaming isn't always practical,"" she says with the wisdom of a person who has been forced to grow up early. But Fan isn't totally dismissive of the future either. She would like to travel the world if she makes enough money, she says. Zhu Lixin contributed to this story. (China Daily European Weekly 01/20/2017 page16)", -409,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006249.htm,Plastic surgery could give Hubei man second chance,,"A poor couple who took in a badly disfigured baby after he was abandoned two decades ago have used their life savings to pay for his facial surgery, in the hope he will one day find a job. They are now hoping that well-wishers can help him complete the treatment and give him the chance of a better life. Li Xianyu, 68, discovered the child she later named Zhao Xuecheng under a bridge in Xiangyang, Hubei province, in 1994. ""It was around Spring Festival and it was snowing,"" she recalls, adding that she had been on her way home from selling vegetables and heard the soft crying of a baby. She searched a nearby bush and found the child. - Zhao Xuecheng, whose face was severely burned during his childhood, longs for a normal life. Ran Wen / For China Daily ""His face was totally burned, so much so that I could hardly tell his facial features,"" she says. ""I immediately realized he'd been abandoned."" Li took the child home to her husband, Zhao Liniu. He recalls: ""I was afraid the baby would die at any minute due to his severe wounds."" They named him Xuecheng, which means ""happening in snow"". After the Spring Festival holiday, the couple took the boy to a hospital but could not afford the cost of plastic surgery, which would have been tens of thousands of yuan. They barely made ends meet by planting and selling vegetables and had little money saved. So they bought some medicine and fed him milk powder and rice soup. After three months, the scars on the boy's face began to heal. When he reached the age of 7, he was rejected by schools because of his appearance. Finally, one accepted him but he could not bear the discrimination and bullying and dropped out a year later. The couple, who only had primary school education themselves, taught him at home. When their vegetable business struggled, they began picking through garbage for recyclables to make money. Zhao Xuecheng is now 22 but has been unable to find work because of his disfigurement, Li says. ""We are getting old and he has to making a living by himself. All we can do is use our savings, 30,000 yuan ($4,370; 4,085 euros; 3,542), to get him the surgery he needs."" This month, the family arrived at Chongqing's Southwest Hospital affiliated with the Third Military Medical School. The 30,000 yuan covered the cost of the first surgery. Now their son is out of the hospital and in six months he will have another operation, which is expected to cost more than 80,000 yuan. After the couple's plight was reported by local media, donations began pouring in to help cover the medical bills, Li says. tanyingzi@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page15)", -410,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006248.htm,Digital economy invents new job fields,,"Careers that did not exist a few years ago now employ millions Gong Xiaopei, 21, looks a lot like a flight attendant, wearing a black suit, orange tie and a smile sweet enough to clearly communicate that she is eager to help. But instead of flying, she spends most of her time meeting passengers arriving at Beijing Capital International Airport in her role as a ""pickup assistant"" - a new job that has arisen along with the demand for mobile ride-hailing. ""Our job is to help car-hailers find the rides they have booked as soon as they get off planes. Most of them are first-time visitors to Beijing,"" says Gong, one of more than 170 people who have landed this type of job. Their services are used heavily by Didi Chuxing, China's largest ride-hailing platform. Gong Xiaopei, a ""pickup assistant"", contacts passengers at Beijing Capital International Airport in December. Wang Zhuangfei / For China Daily As China steps up efforts to restructure its economy, the country's burgeoning digital sector is creating new jobs for millions of people like Gong. Besides ""pickup assistants"", other new titles include ""cyber anchors"" who rake in as much as 1,000 yuan ($145; 136 euros; 120) a day by live streaming advice on such subjects as playing electronic games, map information collectors who drive around China collecting road data, and purchasing agents who help Chinese buy products in foreign countries. Zhang Dayi, 28, a former model, is one of the cyber celebrities who have made it big in the country's booming digital marketplace. She opened a shop in 2014 on Taobao, Alibaba Group's online marketplace. By offering a range of online advice to women on makeup, hairdos and wardrobes, she accumulated over 4.5 million fans on Sina Weibo, a Chinese version of Twitter. Her fans are eager to mimic Zhang's wardrobe, overwhelming her shop whenever new designs are released. In November, 5,000 garments were sold within two seconds on Zhang's store, equivalent to the annual sales of a small brick-and-mortar store. These new jobs are particularly popular among young people who put a premium on freedom and flexibility when considering careers, says Shen Meng, director of Chanson & Co, a boutique investment bank in China. ""Compared with previous generations, who prioritized salaries, young people are increasingly in favor of positions that are intertwined with their hobbies,"" Shen says. Experts say that these jobs are so new that many people know little about them or how to break into one of the new fields. A survey by QQ browser, owned by Tencent Holdings, showed that only about 3.8 percent of 13,000 university students born after 1995 indicated a preference for new jobs created by the digital economy. However, among those interested, cyber anchors, voice actors and game testers were among the jobs most desired. The push to crack down on pornography on the internet has also given rise to a new profession. Jiao Yi, CEO of iweiju, a Guangzhou-based startup that develops social networking apps, says almost every internet content firm in China has recruited people to delete inappropriate user-generated content, with some firms recruiting as many as 50 so-called ""porn-detectors"". The digital economy is breathing new life into many traditional industries that have struggled with declining growth. Thanks to the e-commerce boom, for instance, China's logistics industry has been creating an average of 200,000 new jobs annually in recent years, says Ma Junsheng, head of the State Postal Bureau, the industry regulator. In 2015, about 113 million Chinese worked in businesses driven by China's digital economy, according to a report by Boston Consulting Group. ""As information technologies continue to revolutionize the retail, entertainment, finance, manufacturing and other industries, China's digital economy will reach $16 trillion by 2035, with 415 million jobs created accumulatively,"" the report forecasts. That's up from $1.4 trillion in 2015. ""If not for the robust growth of the internet and the sharing economy, China would have been under unprecedented employment pressure, weighed down by slowing GDP growth,"" says Zhang Yansheng, director of the National Development and Reform Commission's Institute for International Economics Research. ""Digital businesses are not taking jobs away from traditional sectors. They are creating new jobs,"" he adds. masi@chinadaily.com.cn ( China Daily European Weekly 01/20/2017 page14)", -411,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006247.htm,Xinjiang to invest huge amount in road network,,"Huge plan will aid in Belt and Road development, increase opportunities and employment The Xinjiang Uygur autonomous region will inject record funding into building new roads this year so it can better serve as China's trade hub linking countries along the Silk Road Economic Belt. New infrastructure projects are also expected to bring more job opportunities for locals, the region's top economic planning official says. This year, the northwestern region will invest 170 billion yuan ($24.8 billion; 23.1 billion euros; 20.1 billion) on new roads, up nearly six fold from 2016. The region has never seen such investment in road construction, Zhang Chunlin, director of the Xinjiang Development and Reform Commission, says in an exclusive interview in the regional capital of Urumqi. The region will also invest 8.1 billion yuan in constructing railways and 4.8 billion yuan in civil aviation projects, both up by 50 percent from last year. The investment in roads, railways and airports this year will top the total funding for transportation infrastructure from 2011 to 2015. Building a highway network in a region that takes up a sixth of China's territory is a priority, Zhang says. Currently, about 40 percent of the cities and counties in Xinjiang are not connected by highways. ""Without the highways, oil, coal and agricultural products of Xinjiang cannot be shipped out of the region smoothly, and logistics costs will remain high,"" Zhang says. After the planned highway network is completed, logistics costs in the region can be reduced by 30 percent, he adds. The region plans to start construction this year on 6,096 kilometers of highways. Although poor infrastructure has been holding back development of the region, Xinjiang now sees opportunity for economic growth. Massive transportation projects can use significant amounts of steel and concrete, which can help to stimulate economic growth. What's more, locals can fill the jobs created by those projects, he adds. Currently, there is one highway linking Xinjiang and other parts of China to the east. The roads now connecting the region and China's neighbors to the west cannot meet the demands of future trade. Zhang believes that without the support of transportation, becoming the trade hub on the Silk Road Economic Belt is not feasible, so Xinjiang must face the challenge head-on. The central government sees Xinjiang, which borders countries including Kazakhstan, Pakistan and Mongolia, as the key trade center on the economic belt. The economic belt, part of the Belt and Road Initiative proposed by President Xi Jinping in 2013, aims to revive the ancient trade route. Xinjiang also plans to begin research on a high-speed railway connecting Urumqi and Horgos, a land port on the China-Kazakhstan border. Additionally, Urumqi International Airport will be expanded to cope with surging domestic and international traffic. Contact the writer at cuijia@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page15)", -412,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006246.htm,Father of pinyin writing system dies at age 111,,"Zhou Youguang, a linguist considered the father of pinyin, a system of Latin letters for reading and writing standard Chinese, died on Jan 14 at his home in Beijing at the age of 111, one day after his birthday. In 1955, Zhou, then an economics professor at Fudan University in Shanghai, was asked by the central government to quit his job and join a national committee to develop an accessible alphabetic writing system. It took him and his colleagues three years to devise the official Romanization system, which was adopted in 1958. Since then, pinyin - which can be translated as ""spelled sounds"" - has helped to considerably increase literacy across the country, and has made it easier for foreigners to study the Chinese language. It has also facilitated the use of Chinese characters on computer keyboards and cellphones: pinyin is entered on a keyboard, and users are given a choice of characters. ""The committee's work was extremely important to establishing a modern country because about 85 percent of Chinese people were illiterate when New China was founded,"" Zhou recalled in one of his many reference books. He later lectured at Peking University and Renmin University of China on linguistics. In the early 1980s, Zhou participated in a successful campaign proposing pinyin as the international standard spelling for Chinese. It is considered superior to the Wade-Giles system, developed in the 19th century and widely used until the 1980s. Zhou also worked with other scholars to translate the Encyclopedia Britannica into Chinese. ""Mr Zhou was a great scholar whose knowledge has spread from East to West,"" says Su Peicheng, a linguistics professor at Peking University. ""He was the founder of the theory of modern learning for the Chinese language."" Zhou was born in 1906 in Changzhou, Jiangsu province, and in 1923 enrolled at the prestigious St John's University in Shanghai. There, he majored in economics and also took courses in linguistics. In 1933 he went to Japan to further his economics studies, but returned to Shanghai two years later when Sino-Japanese ties became tense. After World War II ended, he worked as a banker in the United States but in 1949 he chose to return to China shortly after New China was founded. He joked about his longevity on his birthday in 2013: ""God is so busy. He has forgotten me."" Zhou was married for nearly 70 years to Zhang Yunhe, who came from a legendary literary family in Hefei, Anhui province. Zhang died in 2002 at the age of 94. The couple had a daughter who died as a child and a son, Zhou Xiaoping, a meteorologist, who died in 2015 at age 82. wangkaihao@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page14)", -413,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006238.htm,Look at history to see the future,,"My recent piece of work on de-globalization and China-WTO issues was published by China Daily and picked up by Eureporter. I received lots of feedback, either favoring globalization or against Chinese social-economic-political directions and its ""fake"" stance of openness, non-discrimination, and equality.... The opponents' opinions are strong but I am actually very pleased to see China become the subject of discussion. It shows how much attention it has generated, which might ironically be at a similar level to that which emerged after Brexit and the Trump victory. It looks like we won't be bored this century and deprived of tremendous transitions and changes. The Western world and its media, most of the time, don't reflect what the real China was and is, and don't understand seemingly-complicated Chinese phenomena. It is disappointing to see that many opinions from the West are influenced by the media, so that its citizens, politicians and decision-makers have been sadly misled about China's comprehensive phenomena for example on the recent topic of China's (non) market status on WTO regulations. Even so, I believe we should have a shot at understanding to those opinions. As a deep believer in Buddhism and Taoism, with which most Chinese were born with and raised, discrimination is not at the root of our values. On the contrary, we value connectiveness and collectivism, cooperation and the toleration of differences. Chinese culture was not cultivated to judge others by using its own value system. Neither, I believe, do our friends in the West. However, it does not always appear to be so. Why is that? How is it that we can share the same fundamental belief in doing the best for our people but at an institutional level we grow apart? The majority of people in the West do not have enough information on what China is and where it has been, which influences the way the country is seen and understood. Some raise the issues of freedom, equality and openness as a ""weapon"" to judge Chinese performance and its role and contribution to globalization and world prosperity. Do they understand the sacrifices and costs that China has paid? At times, those biased attitudes and opinions have been too extreme and too shallow. We were born differently and developed differently but we have the honor of co-existing on the same planet with certain rules. We need to respect the rules and continue to develop positive energy to improve things for the sake of this planet's wellbeing. Those wrongly using and supporting the concept of so called anti-discrimination and equality should open their eyes and take a step back to review the antecedents and consequences of real discrimination and inequality in some countries. Discrimination comes from inequality and should be prioritized for discussion at a global level. Why are some countries / people chosen to make rules and some countries / people chosen to be badly or unfairly treated? Why are some countries / people arrogant to order others about? We should learn to respect others and not forcibly impose our values on them. China 1,500 years ago was ruled by the Tang Dynasty and that era was its most prosperous, as the largest economic and civilization contributor to the world. Openness to the world, the embracing of variety and collaboration were default values, similar to what USA has done for the past 300 years and the EU agreed to cherish when it was set up. Discrimination was disapproved of in China's Tang Dynasty and onwards. Countries trading with China were well-treated, not just as friends and partners, but as family. Prosperity was sought together and evil thoughts were fought together. However, during China's Qing dynasty 300 years ago, anti-globalization and protectionism dominated and bloodily dragged the wealthy dragon back to nothing, as a nobody. People were extremely poor, without status and identity. The country was plundered and lost its dignity. The story of our shared history is cruel but true. It clearly mirrors the present and accurately predicts the future. When we look at history, the only variables for us to consider are the time and the mentality. So what does this tell us about de-globalization? How should we adjust our values, thoughts and behavior to become more responsible and moral, and create a virtuous path for the benefit of us all? The author is Associate Dean & Associate Professor on Entrepreneurship at Rotterdam School of Management, Erasmus University, the Netherlands. ( China Daily European Weekly 01/20/2017 page10)", -414,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006237.htm,Don't drag out the Blue Monday blues,,"Winter weather and holiday withdrawals can exacerbate already uncertain and unpleasant times, but it won't last forever If you're reading this, it means you survived Blue Monday. The term was coined just over a decade ago to pinpoint the day - usually the third Monday of January - calculated to be the most depressing in the year. According to a formula credited to a British academic, bad weather, post-holiday debt and the failure to keep New Year's resolutions all combine to make it the most miserable day of the year. The giveaway is that this bit of pseudoscience was first revealed in a press release from a travel company seeking to boost early bookings of summer holidays. So, Blue Monday turns out to be just another marketing ploy, just like Black Friday or Cyber Monday or any other of those shop-till-you-drop dates that have invaded the modern calendar. Maybe that is the most depressing thing of all. Unlike those other commercial fixtures, Blue Monday is not really exportable beyond the Western world. Although many in Europe and North America will need no reminding that it is a gloomy time of the year, much of the world is basking in the sunshine. In China, 1.4 billion people are gearing up for the extended Spring Festival celebrations, the most fun part of the year. It's all a matter of perspective. To quote President Xi Jinping quoting Charles Dickens during his speech this week at Davos: ""It was the best of times, it was the worst of times."" Just as the Industrial Revolution had disrupted Dickens' world, so economic globalization had created new problems, Xi acknowledged. But that was no reason to write it off. Sadly, however, many in the West do appear to have written it off as we risk lapsing into a chronic funk that will extend well beyond Blue Monday. With uncertainties provoked by Donald Trump's election victory, Brexit in the UK and the rise of inward-looking populist parties elsewhere in Europe, it seems that everyone is in a sulk - even the winners. In the US, the victor barely scraped an approval rating of 40 percent - a historic low - just days before his inauguration. Trump's characteristic reaction was to claim the poll was rigged. In Britain, those who successfully backed the country's exit from the European Union continue to groan and gripe at the merest suggestion that Brexit might be watered down. One reason for the widespread blues is that one half of the population in the US and Europe is being dragged down a populist path not of its choosing and fears the consequences. Meanwhile, the other half, who cast their votes for promised change, were in fact voting for things to stay the same, or indeed to revert to some idealized past. And nothing ever stays quite the same. It is perfectly rational for those who have lost their jobs or seen their incomes decline - in the last decade the latter includes nearly all but the 1 percent who are super-rich - to blame a system in which the winners take all. What is less rational or acceptable is to blame one's ills on immigrants and foreigners and trade competitors. That is the mark of a reactionary revolution, not a progressive one. The one-percenters gathered in Davos have been hearing that vastly more jobs are currently threatened by automation and robotization than by more open foreign trade. Their challenge is to ensure that the benefits of this new industrial revolution are evenly spread. Technology can be liberating, rather than enslaving. It just has to be done right and that should be the object of voters' demands. In the meantime, don't despair. As the days get longer and the credit card bill gets shorter, bin the happy pills, look on the bright side and count your blessings. Blue Monday is only supposed to last one day. The writer is a senior editorial consultant for China Daily UK. (China Daily European Weekly 01/20/2017 page11)", -415,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006236.htm,Those investing overseas must consider risks,,"China has transformed from a capital importing country to a capital exporting one. This is an important characteristic of the new normal of the Chinese economy. The latest statistics show China's current foreign exchange reserve is $3.05 trillion (2.87 trillion euros; 2.48 trillion), nearly $1 trillion lower than its peak in June 2014. Investing abroad has been a growing trend for both enterprises and individuals. Chinese enterprises have never been so passionate about investing in foreign capital markets, and they have become one of the largest sources of global investment. Individual investors have shown a similar desire for going out. Investments are made in overseas assets and children studying abroad. Some wealthy individuals have also sought to move their fortunes overseas in a bid to evade the yuan's depreciation. First, wealthy Chinese buy homes. Later, they buy foreign insurance products, and invest in hedge funds or foreign stock markets. Money from Chinese investors creates business opportunities for other economies. To some extent, the surge of house prices in the United States, United Kingdom, Canada and Australia is related to the influx of Chinese investors. Home buyers from the Chinese mainland have not only boosted these countries' property markets, they have also created jobs and promoted local economic growth. People from the mainland also buy life insurance and investment dividend-returning insurance, especially in the Hong Kong Special Administrative Region, which has undoubtedly given impetus to the development of the offshore financial market in Hong Kong. Currently, people can directly open accounts abroad and invest in overseas stock markets, as well as financial products for Qualified Domestic Institutional Investors. Along with the opening-up of China's capital market, individual Chinese nationals are becoming an important customer source for the wealth management industry in some economies. In this process, investors are increasing their input in overseas stock markets and funds, which undoubtedly fosters the development of financial markets in the countries concerned. In the future, exchange rate fluctuation and the decline in the return on investments at home will make more Chinese nationals want to invest abroad. A survey of Chinese families by the Financial Times last year shows that 56.8 percent of those sampled said they would increase their overseas assets in the next two years, and investing abroad is no longer exclusive to the very rich. More and more Chinese families with a disposable income of between 600,000 yuan ($87,000; 81,300 euros; 70,000) and 6 million yuan are investing overseas. There are certainly some uncertainties and risks behind the investments. Fluctuations in foreign exchange rates, housing prices, tax policy changes, etc. Some foreign insurance is not protected by Chinese laws and foreign stock markets are by no means safe harbors. But the momentum of Chinese residents investing abroad will continue this year. And their capital will inject continuous vitality into overseas housing, insurance and stock markets, foster local economic growth and create jobs. Yet Brexit, Donald Trump's stepping into power as US president and the forthcoming elections in France and Germany will increase uncertainties in these markets and Chinese investors will have to pay even more attention to their risk assessments this year than before. They will need to ensure they are fully informed so they can control potential risks and make rational investment decisions. The author is a partner in the Yongshi Fund Management Company. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/20/2017 page12)", -416,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006235.htm,Famous folk can't resist a tasty sound bite,,"British wartime Prime Minister Sir Winston Churchill was a master of the cute quote and Chinese President Xi Jinping must have won many hearts and minds at Davos when he quoted Charles Dickens: ""It was the best of times, it was the worst of times."" The line comes from the opening paragraph of Dickens's 19th century classic, A Tale of Two Cities. Just about every British schoolboy of my generation knows that one. Xi also pitched in with a remark, which resonates in Chinese and British culture - that there's no such thing as a free lunch. Churchill, of course, took over as leader of a nation fighting the fascism of Nazi Germany and his key quotes have gone into the history books. He had nothing, he said, to offer the British people, except ""blood, toil, tears and sweat,"" adding in his characteristic growl ""we shall never surrender"". The Free French leader General Charles de Gaulle, who later became president, despaired of the antics of his fellow-countrymen - ""how can you govern a country that has 246 different kinds of cheese."" Legendary Chinese leader Deng Xiaoping was the master of the catchphrase - his coining of the agreement covering the return to Chinese sovereignty of Hong Kong as being ""one country, two systems"" was, and remains, a masterpiece. Mao Zedong was the master of the one-line aphorism - off the top of my head I remember, ""In waking a tiger use a long stick"" and ""Women hold up half the sky."" I guess the point here is that an experienced leader, no matter what his political persuasion, knows the power of a catchy quote. Disgraced US president Richard Nixon, seeking to justify some of his more questionable decisions while in office, once memorably declared: ""If the president does it, it is not illegal."" He lived to regret that remark after being forced to resign in disgrace in 1974 ahead of almost certain impeachment and dismissal from office, the only president to do so. Of course, in this modern age of 24-hour news and digital information channels, the race is on for the sound bite that grabs attention. Some 43 years after I first heard it, one quote by a US Air Force major still has me flummoxed. It was December 1972 and the US was desperate to conclude a peace deal that would extract it from the morass of the Vietnam War - Peace With Honour, as Nixon and National Security Adviser Henry Kissinger would call it. The North Vietnamese, headed by Le Duc Tho, were digging their heels in and by mid-December they refused to set a date for further talks in Paris after South Vietnamese demands, in their view, made a deal impossible. Nixon and Kissinger resorted to the old adage: ""Bomb them to the conference table."" In an operation dubbed Linebacker II, huge US B-52 bombers blitzed targets in Hanoi and surrounding areas, killing more than 1,600 people and causing widespread damage to infrastructure. At this point, let me introduce Major Jere Forbus, an amiable officer who handled press conferences, dubbed the Five o'Clock Follies, in a disused movie theatre in downtown Saigon. Here's the thing - time zones and mid-20th century creaky communications meant the Saigon press crowd was baying for news of the bombing campaign, which had not been officially released by the Americans. An exasperated New York correspondent stood up and said - I remember the question to this day: ""Major, you know you're bombing, the North Vietnamese know you're bombing, so why won't you tell us?"" Came back the immortal quote from Forbus - ""That's protection of information."" It is, of course, the supreme example of the spokesman's art of obfuscation. Years later, I tracked down a retired Forbus to his home in Washington. I asked him what he had meant. As genial as ever, he smiled, and said: ""I had to tell you guys something. Have another beer."" I am still in the dark. Chris Peterson is managing editor of China Daily European Bureau. Contact the writer at chris@mail.chinadailyuk.com. (China Daily European Weekly 01/20/2017 page11)", -417,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006234.htm,Azerbaijan forms a key link in the Silk Road chain,,"Strategically-placed nation bears witness to the huge potential of trade route linking Asian and European nations Azerbaijan, a modern south Caucasus country on the Caspian Sea - rich in oil and natural resources - is a key link in the Silk Road Economic Belt, the Chinese vision for a route connecting Asia, Europe and the rest of the world. China has huge development projects in this region, involving billions of dollars of investment and trade. In 2013, Chinese President Xi Jinping put forward the Silk Road Economic Belt initiative, signifying multidirectional cooperation between Eastern and Western countries throughout Central Asia and the Caucasus region. In March 2015, China declared its Visions and Actions on Jointly Building the Silk Road Economic Belt and 21st-Century Maritime Silk Road. Azerbaijan is the pivotal point of the China-Central Asia-West Asia Economic Corridor. The country has a long history of welcoming merchants from land and sea due to its proximity to Asia and Europe since the time of the ancient Silk Road. If we look back, the first merchant route between the Roman Empire and Western Han Dynasty (206 BC-AD 24) China emerged in the first century BC in Azerbaijan. The Silk Road Economic Belt comprises 6 corridors which connect five central Asian countries, Iran and the Persian Gulf region, Transcaucasia, Turkey and the Saudi Arabian peninsula. Traditionally, trade between China and West Asia takes place mostly via maritime routes, and the China-Central Asia-West Asia Economic Corridor is a land-based substitute for these traditional routes. The shortest way to approach West Asia from China is via Baku, the capital of Azerbaijan. Azerbaijan was the safest of the old routes in the 5th century BC. Barda (about 250 km west of Baku) was the old capital of Azerbaijan, a trading hub on the ancient Silk Road. China is the manufacturer of the world's fastest and most luxurious trains and a rail track is already operational from Aktau and Turkmenbashi, transporting goods to the New Baku International Sea Trade Port and then westward to Turkey and Europe. In August 2015, the Trans-Caspian International Transport Route was launched; the Nomad Express, carrying goods from China's Shihezi, traveled through the port of Aktau and arrived at Baku. The North-South Transport Corridor is under construction and will connect Iran and Russia, providing road access from Indian Ocean countries to Europe and Central Asia. China has been promoting the interconnection routes to the west of the Caspian Sea. Both China and Azerbaijan have strong links in the construction of railway tracks for transporting oil and gas. The Baku-Tbilisi-Ceyhan pipeline is a major initiative of Azerbaijan to supply oil and gas to Georgia and countries in Europe. The Baku-Tbilisi-Erzurum Pipeline is another project supplying oil and gas to satisfy the demands of Europe. Azerbaijan has signed agreements for multiple trans-Caspian international transport routes with Kazakhstan and Georgia, and even initiated the Trans Caspian transport consortium to operate the Trans-Caspian International Transport Route from China to Europe. Azerbaijan is a major supporter of the Transport Corridor Europe-Caucasus-Asia project, initiated by the EU and considered the backbone of the Silk Road. History is being repeated and the Chinese vision of One Belt One Road is getting an extraordinary response from countries along the ancient route. The Baku-Tbilisi-Kars railway has been dubbed the Iron Silk Road. China has initiated the Silk Road Fund, for which Asian Infrastructure Investment Bank will allocate enormous sums for the construction of these international corridors. According to estimates, the trans-Caspian route could be transporting around 300,000-400,000 containers by 2020, bringing in hundreds of millions of dollars. Relations between China and Azerbaijan are growing fast and Azerbaijan has great potential to become a valuable partner in the Silk Road project - one of the great initiatives of the 21th century. Malik Ayub Sumbal is the Editor in Chief of Eurasia Media Network and The Caspian Times. (China Daily European Weekly 01/20/2017 page13)", -418,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006232.htm,Fintech will help boost real economy,,"Technology will potentially provide the tonic needed to get finance and business working efficiently in the near future The latest Central Economic Work Conference of China has put boosting the real economy high on the agenda for 2017. A real economy that provides products and services is the key to a country's economic success and the finance industry should serve its development. Due to information asymmetry, security problems and restrictions on time and space, the traditional finance sector presents many barriers to serving the real economy. However, in recent years, the appearance of Fintech (financial technology) has brought new opportunities. Fintech refers to the technologies that can be used in the financial sector to help traditional companies innovate, such as the mobile internet, big data, cloud computing and the blockchain. It could help solve problems that traditional financing may have. Technology could be the main driver for financial innovation, which would then stimulate consumption and encourage the development of businesses, especially small and medium-sized companies, and then boost the development of the real economy. Financial products and services using Fintech would be more efficient and of higher quality compared with their traditional counterparts. Fintech would greatly influence some key aspects of the finance industry, such as risk, leverage and credit. First, Fintech would make products and services safer and more efficient to support the real economy. For example, the common use of online payment tools such as Alipay and Wechat wallet, increases the efficiency of transactions and lowers costs. Moreover, a financial services system based on blockchain technology will make data produced by companies more accurate. Accurate data will greatly improve the efficiency of companies' operations. Second, Fintech will improve China's economic and consumption structure. The upgrading of industrial and consumption structure is a key element in China's supply-side reform. Under the current traditional financial system, consumers face problems borrowing and companies find it difficult to get loans from banks. One report showed that in 2016 consumer credit accounted for only around 5 percent of the whole credit market, which is about 30 percent lower than the rate for developed countries. By the end of 2015, China had more than 20 million companies and 54 million self-employed entrepreneurs, but only about 10 percent of them were able to get loans from the banks. Fintech provides a solution to this. In the individual consumption sector, credit instruments have become quite commonly used. For example, internet retail giant JD.com has launched an online financial service which allows consumers to borrow money for purchases and, if they pay it back within 30 days, pay no interest. For companies, there are many peer-to-peer lending platforms emerging in China, which are based on big data. With Fintech, these p2p platforms could collect money from individuals and then lend to companies and individuals, based on an evaluation of their information, which would also increase the quality and efficiency of financial activities. In the end, Fintech would provide a better way of avoiding risk, which is important to the stable development of financial activities. The application of big data in the financial industry will make it easier to develop reliable risk control systems, which could supplement more traditional risk control systems based on the financial reports. If a company is likely to commit financial fraud, big data from online transactions, payments and other related issues could predict such a situation. This could help improve the financial institutions' ability to assess default risks. Yang Wang, a researcher at the Hande Institute of Finance in Shenzhen, and Qu Shuangshi, a researcher at the International Monetary Institute of Renmin University of China. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/20/2017 page12)", -419,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006223.htm,Quotable,,"The carbon trade will ensure transparency and will be operated based on market principles. China's firm attitude toward engaging in global climate change prevention will inject confidence amid a rising division between pro-globalization and anti-globalization."" Xie Zhenhua, China's special envoy for climate change, who has participated in United Nations conferences on the subject, said in an exclusive interview with China Daily. ""Employment is vital to people's livelihood and provides core support for developing our economy. The importance of employment cannot be overestimated. With jobs, there is income, and hence a basis for innovation, stability and development. We want sound momentum going forward, and sound jobs are a start."" Li Keqiang, premier, said at a State Council executive meeting on Jan 18. ""It's better that the country builds a unified early warning system for smog, instead of having separate releases from the weather and environmental departments. The environmental authorities should take the lead on this."" Xie Shaodong, professor of environmental sciences at Peking University, said after the meteorological authorities announced it will no longer release separate smog alerts. (China Daily European Weekly 01/20/2017 page2)", -420,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006222.htm,IN BRIEF (Page 2),,"- Heading home for festive fun: A family of three from Jiangxi province head home on a motorcycle for Lunar New Year celebrations in Jinjiang, Fujian province, on Jan 18. Gas stations in the province were refueling motorbikes free of charge for migrant workers and also offering free breakfast. Wang Dongming / China News Service Country set to make own ballpoint pen tips State-owned Taiyuan Iron and Steel (Group) Co plans to mass-produce ballpoint pen tips and replace imports in two years, company officials said on Jan 17. The group has spent five years on research and development to acquire the technology, ending a long-term Chinese reliance on imported pen tips. Wang Huimian, TISCO's senior engineer, said the company will invest more financial resources and manpower to develop next-generation ballpoint pen tips in an environmentally friendly way to further compete with rivals in Japan and Switzerland. Cargo spacecraft to leave factory China's first cargo spacecraft is set to leave the factory, according to the China Manned Space Agency. A review meeting was convened recently, during which officials and experts unanimously concluded that the Tianzhou I cargo spacecraft met all the requirements to leave the factory. The spacecraft, which is scheduled to be launched in Hainan province in April, will dock with the Tiangong II space lab and refuel it. China reiterates support for EU integration China reiterated its support for continued European integration after US President-elect Donald Trump's comments on the process ignited concerns in Europe. Foreign Ministry spokeswoman Hua Chunying said at a news briefing in Beijing on Jan 17 that China hopes to see a Europe that is prosperous and open, and which remains united and stable. Hua made the remarks when asked to comment on Trump's hailing of the United Kingdom's decision to exit the European Union, as well as the strong reactions it has stirred up in Europe. Premier stresses focus on research, innovation Premier Li Keqiang pledged to grant universities and research institutions more independence in teaching and research, and to raise subsidies for graduate students pursuing master's degrees or doctorates, as part of efforts to boost basic research and innovation. The premier was speaking at a meeting on Jan 16 to solicit suggestions for the annual Government Work Report in March from representatives in the fields of education, science, culture, sports and healthcare as well as startup businesses, according to a statement released on Jan 17. Li vowed to continue the national strategy of innovation-driven development and to implement a policy that gives universities and research institutes more room to make self-determined choices on classes and research. Abe accused of 'sowing discord' in region China slammed Japanese Prime Minister Shinzo Abe's act of ""sowing discord"" during his tour of four Asia-Pacific countries, saying it displayed ""an extremely unhealthy mentality"". Foreign Ministry spokeswoman Hua Chunying made the remarks on Jan 16 after The Philippine Star quoted Philippine President Rodrigo Duterte as saying he had declined an offer by Abe to provide missiles to the Philippines. Abe was quoted by The Associated Press as saying in Manila that ""the issue of the South China Sea is linked directly to regional peace and stability, and is a concern to the entire international community"". Hua dismissed Abe's behavior as showing ""ulterior motives"". Hospital sees medical tourist increasing An online network of hospitals is turning the Xinjiang Uygur autonomous region into an attractive destination for medical tourists from Central Asia, health officials said. The system, launched in the summer, allows patients seeking treatment overseas to consult Chinese doctors for free and book other services, such as flights, airport pickups, accommodation and even city tours. The network is the latest effort by health authorities in Urumqi to boost the lure of the region to tourists through improved medical services. Additives, contamination are top food concerns Overuse of food additives and microbial contamination were the primary food safety problems facing China last year, according to the top food authority. The two together accounted for more than 64 percent of all food safety problems found in random inspections by the China Food and Drug Administration, Yan Jiangying, spokeswoman for the administration, announced on Jan 16. In addition, food products manufactured and sold by large companies are less likely to be substandard, Yan said, suggesting consumers buy food from reputable outlets. IMF fixes projection of nation's growth The International Monetary Fund revised its forecast for China's economic growth due to expectations of continued policy support, according to the latest IMF World Economic Outlook report released on Jan 16. The IMF forecast 6.5 percent growth in China's economy in 2017, up 0.3 of a percentage point from its October forecast. Global growth for 2016 is estimated to be 3.1 percent, in line with the October forecast. Rule aimed at promoting home talent Chinese soccer's governing body has cut the number of foreign players that clubs can field in domestic matches, citing a need to curb ""irrational"" spending and encourage the development of more homegrown talent. Starting in the new season, which kicks off in early March, clubs in the Chinese Super League and China League One will be allowed a maximum of three foreigners on the pitch, down from five, according to a statement by the Chinese Football Association on Jan 16. The association also said each club is now required to have at least two Chinese players under the age of 23 in their 18-member matchday squad, and at least one in the starting lineup. Beijing to establish environmental police Beijing plans to establish an environmental police force by the end of March, amid tightened controls on air pollution, the Beijing Municipal Environmental Protection Bureau said after the capital and other northern cities were engulfed by a new bout of smog. The planned environmental police force will focus on reducing environmental crimes. World's oldest panda heralds 37th birthday Basi, the world's oldest panda living in captivity, celebrated her 37th birthday on Jan 18 in Fuzhou, capital of Fujian province. Thirty-seven panda years is thought to be equal to about 140 human years. The typical life span of a giant panda is 18 to 20 years in the wild and 30 years in captivity, according to Guinness World Records. Basi was born in 1980 in Baoxing, Sichuan province. Since 2000, Basi has been suffering from illnesses including cataracts, pancreatitis and epilepsy, according to Chen Yucun, head of the Cross-Straits Fuzhou Panda Research and Exchange Center. SOEs face 'red line' on investment China will draw a ""red line"" that forbids its 102 major state-owned enterprises from investing overseas in real estate, iron ore, petroleum and nonferrous metal. The State-owned Assets Supervision and Administration Commission released two documents to further clarify SOEs' investment direction, procedures, risk control and accountability in domestic and overseas markets, as part of the country's SOE reforms. Pollution-heavy industries, energy and mining-related businesses that damage the environment or those affected by the fluctuation of global commodity prices will be either prohibited or strictly monitored by regulators. Beijing gears up for green Winter Olympics President Xi Jinping pledged on Jan 18 to host an extraordinary Winter Olympic Games in 2022. While meeting with Thomas Bach, president of the International Olympic Committee, at the committee's headquarters in Lausanne, Switzerland, Xi said Beijing will host a green, open-minded and corruption-free Olympic event. Gearing up for the 2022 Winter Games shows China's support and proactive participation in the sporting event, the president said. Preparatory work will be a major task for China over the next few years, he added. Li calls sound jobs the key to momentum China will maintain a proactive policy on employment by providing diversified skills training, encouraging entrepreneurship and restructuring inefficient industries with the aim of boosting the number of new jobs and overall workforce quality. Unleashing market potential and enhancing policy implementation will be major priorities under a new program on employment for the 13th Five-Year Plan (2016-20) period. The program was approved on Jan 18 at a State Council executive meeting presided over by Premier Li Keqiang. Swift measures to aid development Premier Li Keqiang has called on officials to respond quickly and actively to public concerns in order to manage market expectations. Speaking at a State Council plenary meeting on Jan 18, the premier urged more than 30 ministers and local governments to take timely action in the face of changing economic indicators, which should be closely tracked and analyzed to assist in policy-making. Facing increasing uncertainty about the global economy, as well as domestic challenges, the government must enhance its sense of urgency and maintain strategic determination to overcome difficulties, Li said. China 'attractive' to US companies China remains a ""highly attractive"" destination for companies from the United States, Foreign Ministry spokeswoman Hua Chunying said on Jan 18, refuting a survey report published on the same day by a US business organization. In the 2017 China Business Climate Survey Report, the American Chamber of Commerce in China said that more than 80 percent of its 462 member companies surveyed ""feel foreign businesses are less welcome in China than before"". More than 60 percent expressed a lack of confidence in the Chinese government's commitment to further opening China's markets. In response, Hua quoted statistics issued by the Ministry of Commerce, showing that the US' actual investment in China witnessed a year-on-year increase of 52.6 percent in 2016. PLA slashes commercial activities The People's Liberation Army and the Armed Police Force have halted 40 percent of their commercial activities as part of ongoing military reforms, Xinhua News Agency reported. Decommercialization efforts will now focus on five fields - housing rental, agricultural and livestock production, hospitality services, medical services and research and development - the report said on Jan 17. Governments in provincial-level regions, including Beijing, Tianjin, Shanghai, Chongqing and Guangdong, have set up interdepartmental teams to work with military authorities to push forward the efforts, it said, adding that most business owners who rented houses from or used commercial services of the military received local government assistance. Policies to support private schools Education authorities will support the development of private schools by issuing a series of preferential policies in areas including finance, taxes and land, the Ministry of Education announced on Jan 18. Private schools in China are either nonprofit and for-profit, and the support offered to the two types of school may differ, according to the ministry. For example, nonprofit private schools will be able to use land allocated by the government, just as public schools are, while their for-profit counterparts will not. But for-profit private schools will be able to set their own tuition fees. First quantum satellite surpasses expectations Micius, the world's first quantum satellite, has successfully completed four months of in-orbit tests since China launched it on Aug 16, the Chinese Academy of Sciences announced. ""The overall performance has been much better than we expected, which will allow us to conduct all our planned experiments using the satellite ahead of schedule and even add some extra ones,"" said Pan Jianwei, chief scientist for the satellite project, on Jan 18. Country to clean up rural pollution China plans to rid its rural areas of pollution from wastewater and remove refuse from its mountains by 2020, officials said. Special campaigns have been launched in different regions to improve the rural environment, Zhao Hui, chief economic engineer of the Ministry of Housing and Urban-Rural Development, told a conference organized by the State Council Information Office on Jan 18. China didn't have the ability to dispose of all newly-produced garbage before 2012, so garbage from urban areas piled up in rural areas, resulting in mountains of trash, Zhao said. 28m received legal aid over 4 years China has handled more than 5 million legal assistance cases since 2013, providing legal advice to more than 28 million people, the Ministry of Justice said on Jan 15. Stations offering legal services have been established in more than 2,000 detention houses, the ministry said. This year, the ministry will urge lawyers to perform their criminal defense duties in accordance with the law and maintain the legitimate rights of citizens facing difficulties, according to Minister of Justice Wu Aiying. Official: Focus to be on innovation As anti-globalization shows signs of gathering force in some parts of the world, China's efforts to explore overseas markets will hit an increasing number of snags, forcing the country to focus on innovation in frontier technologies and emerging industries, said Li Wei, head of the Development Research Center of the State Council, at the eighth China Economic Outlook Forum in Beijing on Jan 15. The event, sponsored by the China Economic Times, had a theme of ""innovation-driven development and replacing old drivers of growth with new ones"". Chinese immigrants in Africa rapidly increasing The number of Chinese immigrants in Africa has risen sevenfold over less than two decades, although most still plan to return home for retirement, according to a recent survey. The Annual Report on Overseas Chinese Study said the African continent was home to more than 1.1 million Chinese immigrants in 2012, compared with less than 160,000 in 1996, adding that 90 percent of the current total arrived after 1970. The study was conducted by researchers at Huaqiao, Peking and Xiamen Universities, and released by the Social Sciences Academic Press, a publisher affiliated with the Chinese Academy of Social Sciences. Many ready to quit if annual bonus too low Heads of companies and institutes that won't give their employees annual bonuses, or who won't give sufficient bonuses, may have to mull over their decision again as a report shows that about 40 percent of white-collar workers in China said they may quit if they are not satisfied with their bonus. The report, published recently by the Chinese human resources website Zhaopin.com, shows the average annual bonus in China was 12,821 yuan ($1,860; 1,747 euros; 1,517) last year, 2,000 yuan more than in 2015 but almost 800 yuan less than in 2014. Chinese white-collar workers are not currently satisfied with what they are receiving. - Giant panda Basi eats rice paste from inside her birthday cake in Fuzhou, Fujian province, on Jan 18. Hu Meidong / For China Daily - Kids have work cut out: Children from home and abroad learn paper-cutting, a centuries-old tradition in China, in a community in Yiwu, Zhejiang province. The event to celebrate the upcoming Spring Festival involved more than 20 folk paper-cutting masters. Gong Xianming / For China Daily (China Daily European Weekly 01/20/2017 page2)", -421,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006221.htm,"Silk Road investment to link public, private growth",,"Project attracts interest as more seek to get involved in vital infrastructure development China's Belt and Road Initiative became a hot talking point at the World Economic Forum in Davos, as global leaders gathered to search for new impetus of growth. This surge of interest comes at a time when the importance of infrastructure investment is increasingly obvious, despite sluggish global growth curtailing spending in advanced economies. ""It's talked about so much. Businesses internationally knew about the Belt and Road Initiative but they don't know how to get involved, so now discussions are focused on the details,"" says Honson To, chairman of KPMG China. - People welcome President Xi Jinping to Davos on Jan 15. Xu Jingxing / China Daily ""A key part of how China has developed in the last 30 years has been laying out infrastructure within the country. It's a proven way. Now this concept will be exported to countries around the world with the Belt and Road Initiative,"" says To. Launched by President Xi Jinping three years ago, the initiative is now gaining momentum after receiving support from more than 100 countries and international organizations, more than 40 of which have signed cooperation agreements with China. In May this year, China will host the Belt and Road Forum for International Cooperation in Beijing, which will ""discuss ways to boost cooperation, build cooperation platforms and share cooperation outcomes"", as President Xi highlighted in his keynote address at Davos. Summit participants welcomed the high importance Xi attached to the Belt and Road Initiative, saying it was a concrete demonstration of China's leadership in globalization and inclusive growth. Thomas Maier, managing director for infrastructure at the European Bank for Reconstruction and Development, says China can play a leadership role in supporting sustainable infrastructure development that is also environmentally friendly. It can also contribute to the development of a global system where the government leads infrastructure investment and encourage private sector investors to follow suit. Those values which EBRD champions are also coherent with the philosophy of the China-led Asian Infrastructure Investment Bank, which pledges to operate with a ""lean, clean and green"" model, meaning long-term, sustainable infrastructure will get priority for funding. In June 2016 AIIB and EBRD agreed to jointly commit a total of $55 million to upgrade a key section of the motorway connecting Tajikistan with Uzbekistan, which is also one of AIIB's first projects. Maier says another crucial way China contributes to the global infrastructure system is through funding provided by its large commercial banks. He also applauds Chinese companies' export of important environmentally friendly infrastructure and technology to countries along the Belt and Road. So far Chinese companies have invested more than $50 billion in projects in those countries. Lord Mark Malloch-Brown, former United Nations deputy secretary-general, says that the AIIB's ability to deploy capital, especially from the private sector, is impressive and an inspiration for the way multinational development banks could function. ""AIIB's capital commitment is able to attract private sector money because its agenda is closely aligned with the Chinese government's emphasis on China becoming an important trading nation,"" says Malloch-Brown, who is also chairman of the non-profit group the Business and Sustainable Development Commission. The Commission, established at Davos in 2016, launched at this year's forum a report identifying a potential annual deficit of $2-3 trillion globally over the next 15 years. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 01/20/2017 page7)", -422,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006220.htm,Jackie Chan's Indian adventure,,"Movie giant in a new location for his latest big-screen offering Jackie Chan is taking his adventures to a new level. In his latest movie, he drives a car carrying a lion in the back seat, and the big cat is not computer-generated. The very real predator is owned by Dubai's royal family. Chan plays an archeologist who seeks a lost treasure using an ancient map in the action-comedy Kung Fu Yoga. The movie, one of three Sino-Indian coproductions being made as a result of an agreement between the two countries, will be released on Jan 28, the first day of the Chinese Lunar New Year. - The upcoming Sino-Indian coproduction Kung Fu Yoga features (clockwise from top left) Hong Kong action star Jackie Chan and Indian actress Disha Patani; veteran Indian actor Sonu Sood and Hong Kong actor and singer Aarif Lee. Photos Provided to China Daily The film's trailer, featuring the lion ""passenger"", which was released on Jan 5, has garnered millions of clicks on major video-streaming sites, making Kung Fu Yoga one of the most-anticipated films of the profitable Spring Festival holiday. Chan, who has starred in more than 100 films and been involved in at least another 100, is very popular globally for his unique blend of action and comedy. But this forthcoming title is more than just another Chan-style action comedy. In September 2014, China and India signed a groundbreaking agreement on coproducing films, in a bid to bring the two major movie powerhouses together. It yielded results in May the following year, when China's State Administration of Press, Publication, Radio, Film and Television, and the Indian embassy in China announced plans for three joint productions. Kung Fu Yoga is one of the three films. The other two are a biographical feature, Xuan Zang, based on a seventh-century monk's pilgrimage to India, and Buddies in India, comedian Wang Baoqiang's directorial debut. Xuan Zang was released in April and Buddies in India will also premiere during the upcoming Spring Festival. Of the three films, Chan's movie is expected to make an impression in India as the star's early Hollywood blockbusters - Rumble in the Bronx (1995) and Rush Hour (1998) - made him a well-known name in the country. Also, Chan's profile in India was boosted when his 2005 fantasy epic The Myth was filmed there. Disha Patani, an Indian actress in the film, says: ""In India, most young people have grown up watching Chan's action movies. He is very famous in India. For me, it's like a dream come true to work with him."" The popularity of Chan's action films means that many Indians believe most Chinese can perform martial-arts stunts like the actor, says Amyra Dastur, an India model-actress who also has a role in the film. Both the actresses - Patani, who plays an Indian professor assisting Chan, and Dastur, who plays her sister - say that the film is their first Chinese-language movie. The movie also features veteran actor Sonu Sood, who has starred in more than 60 Bollywood productions. As for the commercial prospects of the film, Chinese filmmakers believe it will make a splash in both markets. ""Kung fu is a symbol of China, just like yoga is of India,"" says Stanley Tong, the Hong Kong director who helped make Chan famous in Hollywood. The new film sees them teaming up again after Rumble in the Bronx, Police Story 4: First Strike and CZ12. Speaking about the challenges faced in making the movie, Tong says: ""It is a bit difficult to mix two cultures. I read a lot of ancient books, especially on cultural communication in the Tang Dynasty (AD 618-907), which inspired me."" Giving details on the other aspects of the movie, Tong says the film features scenes shot in Iceland and Dubai. Most of Chan's action films offer visual feasts. ""My job was to make this (action film) more creative and different."" Also, using his personal connections with Dubai's royal family, Tong borrowed several animals, including the lion, from them, besides some very expensive sports cars. For Chan, however, the movie is all in a day's work. ""I love to be on a film set. It's my amusement park. I always have new ideas and realize my dreams when I am there,"" the 62-year-old says. On set, Chan is said to always lead by example, whether doing stunts, choreography or just being environmentally aware. Seeing Chan picking up discarded bottles and using paper towels sparingly on set was an eye-opener for the two Indian actresses. Meanwhile, Jonathan Shen, founder of Shinework Media, one of the film's Chinese producers, says the movie will enhance links between Chinese and Indian filmmakers. He says that the film will be released in around 500 cinemas in India. xufan@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page1)", -423,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006219.htm,Just what Europe wanted to hear,,"Since Jan 17 media attention has been monopolized by the annual World Economic Forum, which brings together leaders in politics, business, economics, technology and society. This year the main topic discussed was how to promote responsible and responsive leadership. As shown by recent voting, the gap between political leaders and civil society has never been as important as it is today. Digital media are providing key instruments for reducing the gap. Politicians and business leaders have embraced Twitter in order to stay in touch with their constituents, turning them into followers. But Twitter is only the tip of an iceberg. Social media, connected devices and big data will provide a better match between the expectations of voters and customers on one side and those of political and business leaders on the other. A few weeks ago, the Las Vegas' Consumer Electronics Show (CES) once again offered a showcase for new digital opportunities in this area. Leading telecom vendor ZTE presented its new 'Hawkeye' smartphone, which resulted from its innovative crowdsourcing project to develop a phone based on consumer choices. Last year, ZTE started collecting ideas from the Android community about the future smartphone they would like to see on the market. Future users chose from phones with five core features, such as eye-tracking, self-adhesive back, waterproof VR mask functions, and the ZTE is now in mass production thanks to the success of crowd-sourcing. Empowerment of the consumer is the future. In the same vein, WeChat, the messaging service of Chinese tech giant Tencent, is taking a big step to liberate smartphone users from the need to compare and download apps from Google Play or the App Store. The main features normally obtained via apps are now available inside the messaging service via so-called mini-programs, allowing users to make payments, book a taxi, order food, book tickets, etc. The days of apps may be numbered. It isn't just luck that these major innovations came from China. A total of 1,575 Chinese companies exhibited in Las Vegas, one third of the total number of exhibitors, second only to the US. These numbers illustrate the increased contributions of China to the global economy, not only in terms of innovation but also as an engine of economic growth. Today, China is progressively translating this economic power into political influence. This was highlighted by media coverage of the keynote speech given by President Xi Jinping on Jan 17, due not only to the fact that it was the first appearance of a Chinese head of state at Davos, but mainly because of his clear messages. In his strong defense of globalization, President Xi claimed that the only way to ensure growth and productivity is to work hand-in-hand to improve global governance and make it more inclusive. The president confirmed his country's firm commitment to pursuing an enabling environment for foreign investments, boosting domestic consumption, developing advanced manufacturing and striving to maintain the positive momentum of the Chinese economy, which has contributed as much as 30 percent to annual global growth since the financial crisis. Xi's message will have been music to the ears of the large delegation from the EU - 12 commissioners out of 28 - in Davos. With the French and German elections in sight, a major challenge for the Eurozone is to deliver growth. Forecasts see growth in the Eurozone slowing slightly in 2017, after coming in at an expected 1.6 percent in 2016. Forecasts for 2018 are not much better: GDP growth is predicted to stagnate at 1.5 percent in 2018. At the same time, the Chinese economy is expected to grow at 6.5 percent in 2017. EU leaders are looking east, particularly now that the incoming Trump administration is bringing substantial uncertainties about future EU-US and US-China trade relations. The EU has much to offer China. First, there is a stable and predictable trade policy framework determined by the EU Commission under the active leadership of Trade Commissioner Cecilia Malmstrom, who attended the Davos Forum, explaining the opportunities offered by the EU's trade policy to the top Chinese business leaders who were present. These included Alibaba's Chairman Jack Ma, China Telecom's Chairman Yang Jie, Baidu's Chairman Zhang Yaqin and HTC's Chairwoman Cher Wang. Second, there are lucrative investment opportunities. Think of the recent acquisition of German robotics maker Kuka by China's Midea. The EU's innovative companies allow China to fill technology gaps and strengthen its emerging global digital leadership. On the initiative of Jyrki Katainen, European Commission vice-president for jobs, growth, investment and competitiveness, the EU has launched a practical operational website allowing any company in the world to find investment projects in the EU, including its digital sector - the European Investment Project Portal - with, for the moment, a list of 139 promising projects. President Xi made clear that isolationism is not part of his country's policy. Let us now work together to implement this policy, bring together Chinese and EU business and start building together our common future. The author is director of ChinaEU, a business-led association in Brussels. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/20/2017 page7)", -424,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006218.htm,China's philosophy of mutual benefits coherent with Davos,,"President Xi Jinping calls for open and inclusive growth in the World Economic Forum The world is now at a crucial juncture, facing either progress with globalization or retreat into protectionism, and Chinese President Xi Jinping's call for open and inclusive growth in Davos this week came like a breath of fresh air, injecting new confidence into global economic relations. One can really feel the power of his messages in Davos, where his words remained a hot talking point throughout the week of the forum. President Xi spoke about market-driven growth, free trade, environmental sustainability and fostering win-win partnerships globally. With those messages, China is stepping into its newfound role as a global leader, filling in a vacuum once occupied by the US. Despite leading the world's largest economy, President Donald Trump and his administration have shown protectionist tendencies, driven by voters who feel left out of the benefits of globalization. Under this context, President Xi's advocacy for free trade became more important, and is yet another reflection of the Chinese ancient philosophy of mutual benefit and win-win partnerships, which have shaped the country's way of thinking for thousands of years. Philosophy aside, China's development is itself an apt reflection of the benefits of globalization. When China joined the World Trade Organization in 2001, it felt worried that multinationals' entrance into China would lead to severe unemployment. But this fear was soon appeased, as many Chinese firms became more vibrant and competitive due to globalization. Industries with few trade barriers, like technology, benefited the most from globalization, while those receiving government protection still experienced great inefficiencies, such as the energy sector. Over the years, China has not only benefited from globalization but also contributed to other countries' wealth and prosperity. As China's manufacturing sector grew and it became the world's factory, consumers in Western countries enjoyed more wealth and consumption. More importantly, manufacturing jobs' shift to China freed up the labor market in advanced economies like the US, allowing them to focus more on high-end services for which profit margins are much higher. Meanwhile, China's economic growth has created an expanding middle class whose consumption power is now having a huge influence on the world. Consider the record number of Chinese tourists and students going abroad to advanced economies like the US, allowing them to export products without physically shipping them overseas. But the story does not end here, because globalization is not just about trade, it is also the exchange of ideas and building of platforms. When Facebook founder Mark Zuckerberg visited China's technology giant Tencent for learning and inspiration, Tencent welcomed him with open doors. Many Chinese firms expanding overseas are bringing Western businesses into their existing ecosystems, helping them to access the Chinese market. E-commerce giant Alibaba is now helping many US brands to sell to Chinese buyers through its cost-effective e-commerce logistics channels. Through this integration of ideas, channels and platforms in our increasingly connected global economy, Chinese businesses are becoming more globally-oriented and creating jobs in international markets. Just this month, Alibaba's founder Jack Ma promised one million jobs to the US when he met with President Trump. Home appliance manufacturer Hisense, which has built a factory in Mexico, now conducts much of its research and development in international markets. Chinese firms are becoming increasingly global, and Chinese business leaders' presence at Davos is rapidly expanding. China is the focus of discussions across a diverse range of sessions at the forum. Chinese CEOs are increasingly confident and articulate. Dalian Wanda's founder Wang Jianlin grabbed media headlines when he urged the US to keep its market open and refrain from protectionist tendencies. China's business leaders, like Wang, are becoming increasingly unafraid to voice their views. As the world is trying to get back on its feet and find new sources of growth and new directions for development, China's advocacy for globalization seems to have offered a version of a solution. But China also needs to realize that actions speak louder than words, and the world is watching to see how China translates President Xi's commitments into concrete policies. China needs to strengthen its credibility by further opening up its borders to international trade and investment partners, according to the president's promise, and perhaps inspire other global leaders to follow its lead in building a more inclusive world. Sun Baohong is distinguished chair professor of Marketing, Associate Dean of CKGSB Americas, and Cao Huining is professor of Finance and Chair of the Finance Department at CKGSB. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/20/2017 page8)", -425,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006217.htm,China's contribution to the global economy,,"In the past 5 years, China's economy has maintained vigorous growth, playing an active and constructive role in the world. This list shows a set of data which specify China's contribution to the global economy: (China Daily European Weekly 01/20/2017 page9)", -426,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006216.htm,US could lose its imaginary war,,"Trump's hostile language and protectionist promises could condemn his nation to miss out on trade opportunities Many like to borrow military expressions in describing business competition, a hot one being ""trade war"". Some say Donald Trump, the new US president, may think himself a contemporary General Patton, a warrior in trade. And the anticipated trade war would be Trump's main theater. In response, some Chinese commentators recommend their readers go back to the nation's 2,000-year-old Art of War by Sun Tzu to find defense methods. The fact is - and it is an important fact - that seeing trade in terms of war has never been a smart thing to do. Business is not a war. The biggest difference between business competition and a war is the simple fact that all wars end. No matter how bad a war is, there is a day when one side prevails, and peace is restructured. But in business, competition goes on. Its logic doesn't recognize an ""end"" so long as a company doesn't break up by itself. In the long run, there is no specific enemy. The more a company grows, the more it will find competition a market-wide challenge, joined by rivals large and small, known and unknown. Nor can it be possible for any triumph, however celebrated, to result in a monopoly as clear and solid as the status of a superpower in the geopolitical sense. This is why the victory of Apple's iPhone over Nokia was not a victory for the whole market. It still faces competition from many other players in the market, and any small mistake may cost its market share in the world. As for trade war, there is only one way in which it can make sense. That is when it is used no more than a trade embargo - to serve not a business purpose, but a political purpose. Even when trade is being used for a political purpose, the user will have to take a few precautions to control the possible damage on its own economic goals, making sure the target is a weaker and less productive economy, that the policy has worldwide support, and that the goods affected by the policy will be high in strategic importance but limited in number. This being the case, the grand trade war that Trump and his lieutenants may be planning is a rather unconventional one. It will be used to serve not a specific political purpose, but an economic agenda which, paradoxically, is touted as ""making America great again"". If the incoming administration does what it has declared, it will wage a trade war on all imported goods from China, if not from the rest of the world. That would certainly be unprecedented in history. But will it work? It won't. Apart from its enormous size and complex, often multilateral details, there are two things on the macro-economic level to challenge the very logic of a trade war. First, global market will continue to develop even if the United States no longer wants to play a leading part in it. The size of world trade is nowadays more than eight times that of 1980, before president Ronald Reagan took office. In Reagan's time, the biggest trade challenge to the US was presented by Japan. Now, China and many other developing countries with a general wage level much lower than that of Japan, can produce things almost as well as American workers. There are millions of such workers throughout Southeast Asia and India. Their manufacturing capabilities are attested by the fact that trade among developing countries has now grown larger than trade between developed and developing countries in value, and is close in size to the trade among all developed countries. In recent years, China's trade with ASEAN countries has been on a more rapid increase than its trade with the US. Developing countries can continue to trade with one another and are likely to yield more shared opportunities despite the one-sided trade war waged by the US. Second, assuming the so-called Trumponomics works and 25 million new jobs are created within a few years in a protected environment, the US will still have to rely on the international market to sell the new workers' products, which can't all be consumed at home. Unless Trump is determined to permanently shut the US down to the world market to follow a path of Stalinist self-sufficiency, his administration will still have to seek mutually-beneficial trade policies with foreign countries, especially with Asia, where the world's largest group of new middle-class consumers is. Chinese President Xi Jinping told his audience in Davos, Switzerland, that in the coming five years, China's development is expected to generate a demand for $8 trillion of imports, $600 billion of inbound investments and $750 billion of outbound investments. Those waging of a trade war with China can't afford to miss out on these rich opportunities. The author is editor-at-large of China Daily. Contact the writer atedzhang@chinadaily.com.cn (China Daily European Weekly 01/20/2017 page8)", -427,2017/1/20,http://europe.chinadaily.com.cn/epaper/2017-01/20/content_28006215.htm,A breath of fresh air,,"Global leaders take heart from President Xi's stance on free trade at Davos Forum Global leaders once again gathered in the snowy Swiss Alpine resort of Davos this week to find new drivers for economic growth in 2017 - and they seem to have taken encouragement from China's advocacy for openness and free trade. For the first time ever, the World Economic Forum was attended by Chinese President Xi Jinping, who gave a keynote address vigorously defending free trade. It was applauded by political and business leaders as a rich symbol of China taking the lead in global issues, reflecting this year's forum theme of ""responsive and responsible leadership"". ""There is no point in blaming economic globalization for the world's problems because that is simply not the case,"" Xi said on Jan 17. The four-day forum ended on Jan 20 and was attended by 3,000 delegates. Offering his suggestions for new sources of growth, Xi stressed the need to develop a dynamic innovation-driven growth model, which leads to win-win cooperation, fair and equitable governance and balanced, equitable and inclusive development. Klaus Schwab, executive chairman of the World Economic Forum, praises Xi's address, saying his commitment is crucial ""to the innovative, open and inclusive world."" ""We're living in a global, interdependent world and we cannot recreate artificial borders. Globalization is a win-win situation and we have a common destiny as humankind,"" Schwab says. He acknowledges the ""Chinese Dream"" initiated by Xi while calling for a ""Global Dream"", a dream of a world that remains innovative, open and fair. The World Economic Forum in Davos, founded 47 years ago, has made a name for itself as both a gathering for global elites and an incubator of new ideas, but this year China's strong participation made it special. ""Xi's remarks come at a critical juncture in history,"" says Danae Kyriakopoulou, head of research at the think tank Official Monetary and Financial Institutions Forum. ""The US and the UK, once the champions of economic liberalism and the proponents of globalization, are retreating from the world stage and from integration with their neighbors. In this context, Xi's speech was a refreshing showcase of his leadership on the world stage,"" Kyriakopoulou says. Xi's speech comes at a time when sluggish economic growth in the West has led to signs of protectionist measures. Populist leaders have been taking advantage of the dissatisfaction of those left behind by globalization. US President Donald Trump, who did not attend the forum due to his inauguration, pledged during his election campaign to pull out of the 12-nation Trans-Pacific Partnership. Meanwhile, the UK is experiencing Brexit-related uncertainties after the British public voted to leave the European Union in a 2016 referendum. Aside from Xi's address, China's representation at Davos this year is unprecedented. Insightful sessions by Chinese entrepreneurs like Dalian Wanda's Wang Jianlin and Alibaba's Jack Ma have been hugely popular. The interest is easy to understand, especially considering Alibaba made history as the largest Initial Public Offering on the New York Stock Exchange in 2014. Dalian Wanda made headlines in 2016 with the $3.5 billion (3.2 billion euros; 2.8 billion) purchase of production house Legendary Entertainment, becoming the first Chinese company to own a major American film company. Chinese firms are shaping and shaking the world economy, but so are many China-initiated trends and concepts. China's Belt and Road Initiative, China's outward direct investment, Chinese firms' globalization and China's middle-class consumers are hot topics repeatedly featured at panel discussions this year. Perhaps China is now inseparable from the global economy. ""China advances on all fronts and no longer hesitates to propose its own models, its own values,"" says Andre Loesekrug-Pietri, founder and managing partner of ACapital, a private equity fund. Three years after Xi proposed the Belt and Road Initiative, which seeks to increase Europe and Asia's trade and investment relationships through improved infrastructure, it has received support from more than 100 countries and international organizations. More than 40 countries and international organizations have signed cooperation agreements with China, and Chinese companies have made more than $50 billion of investment, spurring the economic development of these countries and creating many local jobs. The China-led Asian Infrastructure Investment Bank is introducing a new model for multinational development banks. ""What's striking about the AIIB is its ability to deploy lots of capital, especially by pulling capital from the private sector. In scale and ambition, many older generation multinational development banks can learn from it,"" says Lord Mark Malloch-Brown, former United Nations deputy secretary-general. As China increasingly plays an important economic role internationally, the country is also opening up and liberalizing its domestic market - a comment Xi reiterated at Davos. In 2016, the Chinese government significantly increased foreign access to its domestic bond and stock markets. The internationalization of the renminbi, marked by its inclusion in the International Monetary Fund's basket of special drawing rights currencies, is seen as a great contribution to global financial stability. ""Increased usage of the renminbi in global trade transactions and as a reserve currency by central banks in a number of developed and developing economies will, in time, reduce vulnerability to bouts of US dollar strength,"" says Phyllis Papadavid, a senior research fellow of the Overseas Development Institute think tank. ""The renminbi's inclusion in SDR and its growing internationalization is a reflection of China's ongoing financial deepening and expansion. Chinese policymakers are likely to continue to set the conditions for further financial and economic liberalization,"" Papadavid says. But China's international leadership is not just reflected in economic issues, as Davos participants highlight. Helen Hai, a goodwill ambassador for the United Nations Industrial Development Organization, says China can take a leadership role in achieving sustainable development goals, especially by sharing with other developing countries its own lessons in industrialization and poverty reduction. ""I'm so glad to see such huge participation from China this year at Davos. China has made significant contributions in the Millennium Development Goals, it achieved the biggest poverty reduction globally and, going forward, China is going to tell the world how it has transformed itself,"" Hai says. Last year the Chinese government released plans aiming to lift all of China's poor, by current standards, out of poverty by 2020, 10 years ahead of the schedule set by the UN sustainable development goals. To help other developing nations achieve their targets, China also pledged aid through the China-initiated assistance fund for South-South Cooperation and the China-UN Peace and Development Fund. Business leaders also warmly welcomed China's continued commitment to the Paris climate accord on reducing carbon emissions. In September 2015, China announced its aim to hit peak CO2 emissions by around 2030 and slash emissions per unit of the GDP by 60-65 percent from the 2005 level. ""China's voice (at Davos) is urgently needed,"" says Tom Szaky, CEO of TerraCycle, a US recycling technology firm, explaining Davos can help China develop important and timely alliances with businesses and non-government organizations on environmental issues. ""China is taking the lead in terms of investing in a more sustainable future through changes in energy, waste and other consumer patterns,"" Szaky says. Despite optimism over talk of growth at Davos, many challenges still exist for global growth in 2017, perhaps further highlighting the importance of China's contribution. Papadavid of ODI says she sees continued sluggish growth in the global economy as heightened political uncertainty in the US, Europe and the UK could reduce investment intentions, while protracted weakness in commodities is likely to reduce trade growth, especially in emerging and developing countries. ""China's economic transformation will be important. The emergent strength in China's household sector is likely to provide a stimulus to global growth,"" Papadavid says. In his advocacy for globalization, Xi stressed that China has not only benefited from economic globalization but also contributed to it. He explained that rapid growth in China has been a sustained, powerful engine for global economic stability and expansion, while the inter-connected development of China with a large number of other countries has made the world economy more balanced. The numbers speak for themselves. In the coming five years, Xi said, China is expected to import $8 trillion-worth of goods, attract $600 billion of foreign investment and make $750 billion of outbound investment. Chinese tourists will make 700 million overseas visits. China's contribution to global economic growth and its unprecedented participation at Davos have highlighted the country's growing international leadership. ""There is a vacuum when it comes to global economic leadership and Xi Jinping is clearly aiming to fill it,"" says former Swedish Prime Minister Carl Bildt. cecily.liu@mail.chinadailyuk.com   President Xi Jinping delivers the keynote speech at the World Economic Forum on Jan 17 in Davos, Switzerland. Fabrice Coffrini / AFP (China Daily European Weekly 01/20/2017 page1)", -428,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941685.htm,Nokia phone may struggle in China,,"New Nokia-branded smartphones may not be able to compete with domestic Chinese handset brands, as the country now has the most competitive smartphone market in the globe, analysts say. HMD Global, which owns rights to use Nokia's brand on mobile phones, recently announced its first smartphone, the Nokia 6, to target Chinese consumers. It will be released exclusively in China through internet retail giant JD.com early this year. The launch marks the first handset produced under the Nokia brand since 2014, when the company sold its devices and services division to Microsoft Corp. The new device will run on Google's Android system with a 13.97-centimeter screen, and featuring 4GB of RAM and 64GB of storage. Catering to the middle of the market, the handset is equipped with a Snapdragon 430 processor and is priced at 1,699 yuan ($245; 232 euros; 201). ""We intend to move with speed to establish a position as a player in the smartphone category,"" says Arto Nummela, chief executive officer of HMD Global. ""We look forward to unveiling further products in the first half of this year."" The Finland-based company, which secured a license to produce Nokia-branded mobile phones and tablets for the next decade, hopes to win back the lost glory of Nokia, which once dominated mobile phone sales but then failed to nail the smartphone market in the late 2000s. However, Xiang Ligang, independent analyst and founder of telecom industry website cctime.com, says it is difficult for new devices to rolling out in China. ""In terms of producing midrange cellphones, Nokia won't be able to beat domestic brands such as Xiaomi, Huawei, Vivo and Oppo,"" Xiang says. Xiang says Nokia's brand is not as powerful as it used to be and the company is not competitive in terms of operating brand, distribution channels and marketing, compared with Chinese homegrown brands. ouyangshijia@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page26)", -429,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941684.htm,Riding out the perfect storm,,"Lloyd's sees written premiums on China platform more than doubling in 2016 What Lloyd's of London chairman John Nelson sees is a ""perfect storm"" facing the global insurance market. He says exceptionally low interest rates and an excessive amount of capital in the insurance sector are driving down both investment returns and premiums for insurers. Nelson also notes the rapid development of technology, which has also increased competition in markets by changing the relationship between insurers and their customers. - John Nelson, chairman of Lloyd's of London. Getty Images Lloyd's of London, the world's oldest market for specialty insurance and reinsurance, is responding with a strategy known as Vision 2025, according to Nelson. One of the highlights of the strategy is international expansion. Central to that is China, which will remain one of the most important frontiers for the institution as it continues to evolve from its start in a coffeehouse in London dealing in marine insurance in the 17th century to a global marketplace where more than 200 insurance brokers come to pool and spread risks. Nelson spoke recently with China Daily about the insurance market's strategy and its plans in China. The following are edited excerpts from the interview: How do you see the growth potential of the Chinese insurance sector and what opportunities are there for Lloyd's? Over the last few years China has become an extremely important platform for the Lloyd's market. In Shanghai and in Beijing, we now have over half of the Lloyd's managing agents physically present on the platform - 31 to be precise. We have increased our business substantially on this platform to 792 million yuan ($114 million; 107.7 million euros; 92 million) in gross written premiums in 2015, and we are confident we will surpass 2 billion for the past year. We continue to see China as perhaps the most important growth market in the long term for Lloyd's. Insurance can provide vital support and protection, allowing Chinese companies to offset risks and focus on growing their businesses. In particular, Lloyd's has the specialist expertise for the sorts of large construction, energy, marine and transport projects that this country is investing in. As a platform for international expansion, Lloyd's provides a really good springboard for Chinese insurers wanting to develop their international strategies. For example, China Reinsurance Group has joined the Lloyd's platform. We also signed a memorandum of understanding with China Taiping Reinsurance in October. I think these things take time and that global carriers from China coming onto the Lloyd's platform will increase. How do you plan to further expand your presence in China? Our Shanghai hub opened in 2007, and two years ago we opened a branch in Beijing, which brought us closer to the major reinsurance market. We have about nine managing agents on that platform and I am very pleased with the progress. I think the main next step is to reinforce what we have already done. We've got the core of the market here. Now the challenge for the participants is to increase penetration in specialist lines. We are looking at new forms of distribution and are trying to get these specialist lines more into the veins and arteries of the Chinese economy. How can Lloyd's specialties and services meet the need for more sophisticated insurance products amid China's ongoing process of urbanization? Increasing urbanization is in one sense making the economy more efficient and more interconnected. But in another sense, it is concentrating risks, and the consequences are obviously more relevant if you have greater urbanization. China is a classic example of a country that continues to rapidly urbanize. The movement of people from the countryside to the cities is making economies more efficient, but also making them more vulnerable to systemic shock. What we are seeing is that the risk from natural catastrophes is increasing, but also man-made risks such as cyberattacks. What role can Lloyd's play in China's Belt and Road Initiative? The initiative will deepen trade ties between China and Europe and secure the future prosperity of generations to come in areas of the developing world. And it has the power to reshape the economic landscape, just as the original Silk Road did before it. It will also provide new development opportunities for Chinese insurers' international operations as well as global reinsurers, with them providing capacity and global expertise. And just as Lloyd's was the backstop behind early maritime trade and the transport innovations that subsequently transformed our world, so we are ready to partner with Chinese insurers to provide solutions to support and protect China's economic growth and Chinese business interests abroad. How do you intend to attract more capital from Chinese insurers to Lloyd's platform after forming partnerships with two of China's reinsurance firms? I think over the next five to 10 years, you will see a number of additional Chinese carriers coming onto the platform. We want the process to be gradual and don't want see people rushing at making a commitment. There is no point for the Lloyd's market in a carrier coming on just for capital. What we want is to make sure it is broadening our footprint and business. We are also very keen to diversify the nationality base of the people on the Lloyd's platform. So if a carrier wants to come on to the Lloyd's platform, we are very keen that they put some of their best people into their Lloyd's business. We think that having Chinese people on the Lloyd's platform will massively increase the expertise in the market. China has established an insurance exchange in Shanghai with the ambition to develop its own insurance market. What does this mean for Lloyd's? This is where I think Lloyd's can help. We can bring expertise to the new products and we can do that through reinsurance and by backing up domestic insurers. Also, diversifying reinsurance risks outside the country can help the domestic economy. So in other words, having a liberal insurance market is very important. The Shanghai Insurance Exchange is in its early days. We are supportive of it and we have agreed to become a member of it. It will be very interesting to see how it develops. What is the biggest challenge for Lloyd's to navigate in the Chinese insurance market? I think one of the biggest challenges is assessing risks in China. As the economy changes, there is a lack of data and a lack of history. In other countries, we have got good quality data which allow us to model risks more accurately. As time goes on, that will improve in China. But at the moment it is still somewhat difficult as it is at a fairly early stage of development. As times passes, we will be able to collect the data and it will become easier for us to model the risk. How would you define your management philosophy at Lloyd's? If you look at it as a soccer analogy, we set out the football pitch, we mow the grass, we paint the lines and we make it as good a pitch as it could possibly be. That is our philosophy. What do you do in your free time? I enjoy my family. And I enjoy sailing. I have been sailing since I was 15. I also like the arts, and I am a trustee of the National Gallery in London. lixiang@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page31)", -430,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941682.htm,China bids to lure more investment,,"Government procurement contracts to be open to bids by overseas companies if the products they offer are locally made China will lure more foreign direct investment by allowing international companies to bid on government procurement contracts - as long as their products are made in China, according to Vice-Minister of Commerce Wang Shouwen. At a news conference in Beijing on Jan 6, Wang said the government had noticed that China's ability to attract foreign direct investment has been challenged in recent years by a number of factors, including the cost advantages of domestic production. Additionally, nearby countries have been taking their own steps to entice more foreign investment to their shores. ""Some neighboring countries have already begun to offer more favorable policies to gain FDI to compete with China,"" he said. ""Many developed countries are also encouraging their manufacturing businesses to move back to their home markets to boost jobs and taxes."" Wang's comments follow the State Council's approval of a document last month that aims to make the process for FDI more direct, fair, open and efficient. The document outlined the steps required to give foreign capital more market access to the country's services sector - including reviews of account auditing, financial institutions, share brokerages, fund management, telecommunications, internet, culture and education. The opening of opportunities in rail transportation, one of China's pillar manufacturing sectors, is also included to stimulate market competition. Wang said international companies can still remit their revenues overseas or add new investments anytime. He said China's recent moves to tighten controls on capital outflows was targeting only illegal activities and was temporary. Profits earned by international groups based on the Chinese mainland - as well as companies from Hong Kong, Macao and Taiwan in the manufacturing sector - grew by 10.8 percent year-on-year to 1.5 trillion yuan ($216.8 billion; 205 billion euros; 175.4 billion) between January and November 2016. Li Guo, vice-minister of the General Administration of Customs, says the customs service will further simplify port clearance procedures; and it will also encourage more innovation in trade processing and more special customs-control areas to support both China's FDI and foreign trade activities. Li says the central government is allowing local governments to set their own policies to attract FDI within their statutory powers, based on their own economic development characteristics. zhongnan@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page29)", -431,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941680.htm,"Young, diverse, innovative and female",,"Expert says Chinese companies in UK that allow local autonomy tend to be most successful The fastest-growing Chinese-owned companies in the United Kingdom come in all shapes and sizes - although a look at the executives reveals that they do share some things in common. Boards are typically gender diverse, younger and willing to work alongside local management to enhance innovation, according to the authors of a new report released by accountancy firm Grant Thornton. The Grant Thornton Tou Ying Tracker 2016, produced in collaboration with China Daily, is a compilation of the 30 fastest-growing Chinese-owned firms in the UK. At Chinese state-owned enterprises on the list, 12 percent of board members in the UK are female. The boards of private Chinese-owned companies in Britain are 6 percent female. Both levels compare favorably with the 5.6 percent of board positions occupied by women at companies listed in the FTSE 250 Index. Three companies in particular stand out for their gender diversity. Four of 13 board members at ICBC Standard Bank are women; two women sit on telecom giant Huawei's seven-strong board; and Bank of China subsidiary China Bridge Group has an all-female board. The board members at fast-growing Chinese-owned companies in the UK are also younger on average than their British counterparts. In the UK, the average age of nonexecutive directors is 59; for executives it's 52. The average age of board members across the companies on the Grant Thornton list is 48. In terms of management strategy, Simon Bevan, head of the China Britain Services Group at Grant Thornton and co-author of the report, says the Chinese companies that give more autonomy to their UK entities during and after mergers or acquisitions tend to be more successful than those that govern more rigidly from afar. ""Those companies that have devolved power in order to ensure that the acquisition is well integrated are, in my experience, more successful than those that make an acquisition from China and try to run it from China,"" Bevan says. ""The ability of the people on the ground to make real-time decisions and to be more dynamic is a big factor in ensuring integration."" Bevan points to Fosun's 2015 takeover of nursery product brand Silver Cross as an example of a successful acquisition in which a Chinese company worked alongside an existing UK management team with limited interference. Eight of the 14 private companies on the 2016 list are products of the M&A process, and such deals can be expected to continue in 2017 as more Chinese companies look to go global, says Angus Knowles-Cutler, China Services Group Chairman for Deloitte. ""I think there will be even more focused M&A activity from China in Europe in 2017 - and quite a lot of it. And it's going to be increasingly professional,"" Knowles-Cutler says. ""I've seen in the past year or two Chinese businesses becoming much more professional with their merger and acquisition activity in Europe. They are taking due diligence more seriously; they are increasingly making sure what they buy is a good strategic fit."" Bevan, however, encourages Chinese companies in the UK to adhere more closely to administrative regulations, particularly as the market becomes more competitive and the Chinese presence in the UK becomes more established. ""One particularly striking thing was the high proportion of late filed accounts,"" Bevan says of the Chinese companies researched by Grant Thornton. ""Out of 280 companies, 30 percent were late in filing. It's not the most important aspect of governance, but it's a quantitative aspect that you can say points to the fact that there is not as strong a focus on good governance as is the ideal."" angus@mail.chinadailyuk.com ( China Daily European Weekly 01/13/2017 page30)", -432,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941679.htm,Ma tells Trump 'I'll create 1m jobs in US',,"Alibaba boss pledges to add US companies to its huge lineup of e-commerce sites Alibaba's ambitious plan to create 1 million US jobs has highlighted the importance of the Chinese market to the incoming Trump administration while boosting the win-win economic relationship between China and the United States, analysts say. Alibaba Executive Chairman Jack Ma met US president-elect Donald Trump on Jan 9 and laid out the e-commerce giant's plan to include 1 million small and medium-sized US businesses on its websites to sell to Chinese consumers over the next five years. The Chinese company expects the initiative to create jobs as each company adds a position, an Alibaba spokesman says. - US president-elect Donald Trump and Alibaba Executive Chairman Jack Ma speak with reporters after a meeting at Trump Tower in New York on Jan 9. Drew Angerer / Getty Images Ma, who oversees the world's largest online shopping sites, says the two shared ""ideas about how we can improve trade"". After the meeting at Trump Tower in New York, Trump told reporters: ""Jack and I are going to do some great things."" ""We had a great meeting,"" Trump said. He called Ma ""a great, great entrepreneur, one of the best in the world, and he loves this country, and he loves China"". Ma says he thinks Trump is ""very smart"" and ""very open-minded"". Sang Baichuan, director of the Institute of International Business at the University of International Business and Economics in Beijing, says the meeting was a sign that the incoming Trump administration is optimistic that China's burgeoning middle class will continue to consume more foreign products. China exports consumer goods in exchange for high-tech, energy, agricultural and automobile products from the United States, Sang says, adding that ""most of the trade is complementary. It isn't direct competition."" Li Gang, vice-president of the Chinese Academy of International Trade and Economic Cooperation in Beijing, says small and medium-sized businesses in the US are keen to ship their products to China however they can, including e-commerce. ""Giant companies such as Boeing, Honeywell International or Johnson Controls will also push their government to build healthy business ties with China to compete with their European and Japanese rivals,"" Li adds. Bilateral trade between two countries totaled 3.08 trillion yuan ($445 billion; 421.9 billion euros; 365.7 billion) between January and November, dropping by 1.7 percent year-on-year, according to the General Administration of Customs. Over the next five years, the consumption demand of China's domestic market will reach $10 trillion, the Ministry of Commerce forecast. That will present attractive trade and investment opportunities to global companies. The meeting with Trump is a good demonstration of Ma's earlier call to use the internet to knock down trade barriers and provide small and medium-sized enterprises easier access in global commerce, says Qi Xiaozhai, head of the Shanghai Society of Commercial Economy. Alibaba already enables approximately 10 million merchants to sell to Chinese consumers, according to company data. It is considered to be responsible for creating more than 30 million jobs in China since 2003, when shopping portal Taobao was founded. The e-commerce empire envisages 40 percent of its business coming from outside China in the next decade, with a long-term goal of serving 2 billion customers globally and supporting 10 million profitable businesses. According to the 2016 Business Climate Survey conducted by AmCham China, 92 percent of respondents described bilateral relations between China and the US as positive and extremely important to their business growth in China. Vice-Minister of Commerce Wang Shouwen says bilateral trade has provided huge sales revenues to manufacturers in both countries, adding that it is unlikely either party would do something to sabotage already stable business ties. Ai Heping in New York contributed to this report. Contact the writers at zhongnan@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page25)", -433,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941678.htm,Bank's proud record of financial prowess,,"Trading between Europe and China via the Silk Road began centuries ago and marked the beginning of cooperation between the two economic powerhouses. Today, the China's Belt and Road Initiative, led by President Xi Jinping, opens up even greater prospects for China-Europe cooperation opportunities, in terms of both trade and business ecosystems. PGC Capital, in tandem with the initiative, is committed to becoming an ambassador for Chinese outbound investment into Europe. PGC Capital is part of a Taiwan-based conglomerate that has an 80-year track record of successful corporate responsibility, transparency and financial discipline. PGC is a boutique investment bank specializing in property development, private equity funds and international mergers and acquisitions. PGC Capital grand opening ceremony in Shanghai in 2015. Provided to China Daily On top of an altruistic investment philosophy, its insightful knowledge of China and global markets, successful international business experience and professional network led to rapid expansion and solid development. Ching Chih Chen, chairman of PGC Capital, is a renowned global investor, business magnate and philanthropist. He has led businesses in many sectors, including manufacturing, container shipping, venture capital, insurance, energy, city development and international trade. Chen holds a PhD in Industrial Economics from MIT. As a philanthropist, he founded the Shenzhen Educational Science Institute's Futian Experimental School, which became one of the most successful high schools in China's southern region. It was then donated to the Shenzhen government. Denise Li, vice-chairman and CEO of PGC Capital, has a long history of helping companies achieve their China aspirations, including Formula One, the UK Premier League, Porsche, New Zealand Zespri Kiwifruit, Nissan, NHL, Omnicom and Amway. In line with the Belt and Road Initiative, Li inaugurated the International Finance Summit in China, together with former president of the EU Council Mirek Topolanek. It showcases cutting-edge global investment insights and projects to provide government-related European energy and infrastructure investment opportunities for Chinese institutions and high net-worth individuals. In 2016, she was twice invited to appear at the Financial Times Forum in London as a representative from China. She also has a team of international lawyers who provide sophisticated top-structure design and investment banking services for M&A projects. One of PGC Capital's portfolios in the UK - the Jewel Court property development - won the 2016-17 International Property Award, one of the world's most prestigious. Another development, comprising 450 housing units, will be taking off in 2017 to help Birmingham ease its severe housing shortage. The company is looking to expand its property development using the same principles in Europe. PGC Capital welcomes cooperation opportunities from both China and Europe. It is committed to enhancing not just our clients' financial portfolios but, more important, to fortifying the golden decade partnership set by the UK, Europe and China. By synergizing its strengths and leveraging competitive advantages, its teams identify investment opportunities in Europe and deliver custom services. To leave a legacy to society, PGC Capital joined the UN Global Compact in 2016 and has been planning with leading Chinese universities and state-owned companies to achieve the country's Sustainable Development Goals, with a focus on corporate social responsibility for achieving a better world. To know more about the company, please go to www.pgc-fund.com. ( China Daily European Weekly 01/13/2017 page29)", -434,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941677.htm,Quotable,,"Compared with facial and fingerprint recognition, the error rate of iris recognition is much lower. Iris recognition is the most stable, accurate and safest biometric identification technology at present."" Wang Xiaopeng, founder of EyeSmar Technology, a Beijing-based startup. The company has applied biometric iris recognition technology to finance, education, public security, social security, healthcare and public welfare. ""Thanks to blockchain's advantages in safety, sharing, mutual trust and openness, we can use the technology to build a trust system for various parties to transactions and achieve highly efficient and low-cost flow of information and value."" Lyu Jiajin, president of Postal Savings Bank of China Co.The bank announced on Jan 10 that it had launched a blockchain-based system for its asset custody business. It is the Chinese banking sector's first application of blockchain technology to the core banking business system. ""UK toy companies are trying to open up the Asian market, particularly China. ... The reality is that competing with China in terms of raw materials and labor costs is always a very difficult thing to do, but we do have some very good brands making headway in the Chinese market."" John Baulch, a UK-based toy expert (China Daily European Weekly 01/13/2017 page24)", -435,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941676.htm,Bank warns of bitcoin volatility,,"China's financial services authorities required senior executives of the Shanghai-based bitcoin trading platform BTCC on Jan 6 to rectify misbehavior in the trading of the virtual currency. The move was designed to raise awareness of risks, as the value of bitcoin has experienced wild fluctuations. The value of each bitcoin jumped more than 14 percent on Jan 6, after hitting an all-time high of $1,180 (1,114 euros; 954) the previous day. The currency's value fluctuated by more than 30 percent within the past two weeks. A statement by the People's Bank of China Shanghai head office on Jan 6 called the changes in the virtual currency ""abnormal"", and said authorities are requiring the trading platform to operate in compliance with established standards. They urged the platform to probe investors' behavior and to rectify misbehavior. The statement said authorities would like to reaffirm that bitcoin is strictly a virtual currency that cannot be regarded as currency in circulation. Investors flocked to the bitcoin market in recent days in a bid to gain from its fast appreciation. It rose 200 percent in 2016, while analysts warned that wild fluctuations of the virtual currency's price and lack of transparency of its flows may be risky. According to data of Shanghai-based BTCC, a bitcoin trading platform, more than 100 new investors started trading the virtual currency in the past three days, a fast growth compared to some 20 new investors before October in 2016. The bitcoin model limits the currency to a total of 21 million units, of which 16 million have already come into existence. The method to create new bitcoin involves complicated computer processes and has become increasingly difficult: On average no more than 7,000 new bitcoins are supplied to the market per year. ""This trend shows that the bitcoin market's appeal has been rising to a new level,"" a market review by BTCC said on Jan 4. Feng Xin'an, a 43-year-old sales manager at Shanghai-based Maoxin Trade Ltd, says he invested 135,000 yuan ($19,515; 18,430 euros; 15,784) in the bitcoin market, as he regards bitcoin as a ""haven asset"". ""The young generation, like my son and his friends, love to pay with digital currency. Their demand for bitcoin will grow further, as I have observed,"" he says. Analysts warned that bitcoin is not a tool that guarantees yield - and especially for new investors who have limited knowledge about the history of the virtual currency's prices and understanding of its nature, entering the market blindly could be risky. ""Investors should always remember that bitcoin lost more than 75 percent of its value in 2013. We do not recommend it as a long-term investment tool, particularly because of compliance concerns,"" says Zhang Yufang, an investment adviser at Shanghai Shangding Investment Consultancy. wuyiyao@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page29)", -436,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941675.htm,IN BRIEF (Page 24),,"- Models at the opening ceremony of a jewelry shop on Jan 9 in Zhengzhou, Henan province, huddle to stay warm. The temperature was below freezing. Provided to China Daily UK begins review of reactor design China General Nuclear Power Corp said the British government has begun an assessment of the company's plan to build a nuclear power plant at Bradwell in southeastern England. The British government asked nuclear regulators on Jan 10 to begin their assessment of CGN's design - the Hualong One reactor - a process industry experts expect to take about five years. The company is confident that Hualong One will meet the United Kingdom's stringent safety and security requirements, said Mao Qing, project manager at CGN. Trade with China supports US jobs Trade with China supports some 2.6 million jobs in the United States, including jobs that Chinese companies have created directly in the US, according to a report released on Jan 10 by the US-China Business Council. The report - Understanding the US-China Trade Relationship - said that as the Chinese middle class grows over the next decade, likely exceeding the entire US population by 2026, US companies will have opportunities to tap into a lucrative customer base that can further boost employment and economic growth. The report indicates that nations trading closely with China outperform those with less integrated trade ties, and that trend will continue. Cross-border online shopping sees gains The popularity of cross-border online shopping is growing in China, with younger people and families being the driving force, according to a report issued by Amazon China. The report showed that Black Friday, the US shopping spree after Thanksgiving, is getting more popular among Chinese consumers, with sales doubling from Consumers with less than two years of cross-border online shopping experience accounted for more than 50 percent of the total. Young and highly educated consumers with high incomes are the major group of Amazon China's cross-border online consumers. Nearly 80 percent of the consumers are younger than 35 and about 90 percent have at least a bachelor's degree. Consumers with monthly salaries over 5,000 yuan ($720; 683 euros; 594) accounted for 62 percent of cross-border online shoppers in 2016, according to the report. Families with children accounted for 84 percent of shoppers. Volkswagen recalls 49,480 vehicles Volkswagen China will recall 49,480 vehicles due to brake design defects, starting Feb 6, according to China's quality watchdog. The recall involves imported Beetles produced between July 1, 2012 and Aug 6, 2015, and imported Golf Variants produced between July 1, 2012 and July 6, 2013, according to a statement from China's General Administration of Quality Supervision, Inspection and Quarantine. The brake system may malfunction because of a defective noise filter on brake boosters. Investment banks seek bigger stakes Morgan Stanley and UBS Group AG have reportedly engaged in discussions about increasing their holdings in their China securities business, reflecting growing confidence in joint ventures on the Chinese mainland, according to a Bloomberg report. A source familiar with the matter told China Daily that Morgan Stanley would raise its stake to 49 percent, the maximum allowed under current regulations. The source said the plan is still subject to regulatory approval. Currently, Morgan Stanley holds 33.3 percent in its China joint venture Morgan Stanley Huaxin Securities Co. UBS responded in an email to China Daily, saying that the bank has been holding talks since last year with several shareholders about buying their stakes in its mainland securities joint venture. UBS holds 24.99 percent in its China joint venture UBS Securities China. McDonald's sells major China share Fast-food chain McDonald's Corp announced on Jan 9 the sale of 80 percent of its Chinese mainland and Hong Kong operations to a consortium including CITIC Ltd and Carlyle Group LP. The move will help it expand amid growing competition, but analysts warn that challenges remain. The $2.08-billion deal will give CITIC and CITIC Capital a controlling stake - 52 percent of the new entity - with US buyout firm Carlyle holding 28 percent and McDonald's 20 percent, making it the largest franchisee outside the United States. With the transaction, McDonald's is franchising all of its more than 2,600 stores on the Chinese mainland and Hong Kong for 20 years, a major step toward turning around its fortunes in Asia and cutting costs globally, according to Phyllis Cheung, the company's chief executive officer in China. CEFC China Energy signs new deal Private group CEFC China Energy has signed a new deal with a unit of Kazakhstan's state oil and gas company owning assets mainly in Europe to go ahead with a stake transfer that was agreed a year earlier, CEFC executives said on Jan 9. A year ago CEFC agreed to pay $680 million for 51 percent of KMG International, a fully owned unit of Kazakh state oil and gas firm KazMunayGaz that owns a key refinery in Romania and nearly 1,000 petrol stations in Europe. Baidu approved for direct banking Chinese internet giant Baidu has received approval to open a bank, joining its tech counterparts in offering banking services. The country's top banking regulator approved the establishment of Baixin Bank, with joint investment from China CITIC Bank and Baidu. Direct banks are those without any branch networks, offering services remotely via online and telephone banking. 6 locomotives delivered to Kenya Kenya has received six locomotives from China that will run on a China-funded standard-gauge railway due to start trial operations in June. A ceremony was held on Jan 11 at a port station in the coastal city of Mombasa, where the locomotive shipment docked. Minister for Transport and Infrastructure James Macharia and Chinese envoys attended the ceremony to receive the locomotives, which were manufactured by China Railway Construction Corp. In his opening remarks, Macharia said the delivery of the first batch of locomotives marked a major milestone ""in the journey to complete the Mombasa-Nairobi SGR project"". Company to hire more Djibouti residents Chinese construction giant China Civil Engineering Construction Corp has vowed to raise the number of local staff for its operations in Djibouti. The company signed a memorandum of understanding on Jan 11 with the Djibouti Technical Vocational Training department to hire vocational school graduates as part of its commitment to increase the number of its local staff in its varied operations. According to the agreement, the company will hire graduates of Lycee Industrial and Commercial School, which was built by CCECC about 25 years ago. (China Daily European Weekly 01/13/2017 page24)", -437,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941674.htm,Report lists fastest-growing companies,,"Chinese state-owned enterprises and private companies continues to grow at a fast clip in the UK market in 2016, according to a report released by a London accountancy. The Grant Thornton Tou Ying Tracker 2016, produced in collaboration with China Daily, shows that 16 fastest-growing Chinese SOEs in the UK grew at an average rate of 146 percent in 2016, while the top 14 private firms grew at an average of 210 percent. The tracking analysis has been conducted in each of the past four years. The latest installment is the first time the authors have divided the list between SOEs and private companies. ""Private firms are becoming a more crucial part of the growth story of Chinese businesses in the UK. This also aligns with what's going on in China,"" says Jon Wallis, head of China Outbound at Grant Thornton and co-author on the report. China is now publishing foreign direct investment data on a quarterly basis, he says - ""split between SOE and private"" companies. The report, which is based on accounts filed at Companies House in London by Chinese-controlled entities, says the 30 listed businesses employ 25,000 people in the UK and had a combined turnover of 9.8 billion ($11.9 billion; 11.3 billion euros) - down from 35 billion the previous year, which was largely attributed to petrochemical conglomerate Sinochem, with past turnover of 30 billion, not making this year's report. Telecom giant Huawei, one of the list's regulars, featured once again, after a year in which the company's brand recognition in the UK increased significantly and global sales were up for a fifth consecutive year. On Jan 6, the company projected sales revenue of 178 billion yuan ($25.7 billion; 24.3 billion euros; 21.2 billion) for 2016, up by 42 percent from a year ago. A spokesman for Huawei told China Daily that mobile phones ""took off last year, so the most recent breakthrough is on the consumer side"". ""Huawei Consumer BG has achieved great breakthroughs in the European high-end market thanks to strong sales of P9 and P9 Plus."" Of the private firms, the manufacturing and technology sectors were once again well represented, but surprise new entries in the retail and consumer industries - such as Manchester-based babywear company Brecrest Fashion - highlighted the increasingly diverse array of Chinese-controlled private companies in the UK. ""When we first started doing the tracker a few years ago, what we saw was that the bulk of the Chinese activity in the UK was government-owned - the big banks, some of the big players in energy and so on,"" says Simon Bevan, head of China Britain Services Group at Grant Thornton and co-author of the report. ""These state-owned companies between them have provided a platform, an infrastructure, for the private companies that make up the second wave of Chinese investment into the UK."" Fourteen of the 16 SOEs in the list arose through organic growth, while mergers and acquisitions accounted for eight of the 14 private firms. Wallis says the acquisition of Brecrest follows from Chinese investment in department store House of Fraser and jewelry retailer Links of London, highlighting an emerging strategy in which Chinese companies are taking control of UK retail brands and bringing them into the Chinese domestic market. This year's list was once again heavily populated by SOEs from the energy, technology and financial services sectors. Wallis says Bank of China came back ""with a bang"", having been absent from the list since 2014. (China Daily European Weekly 01/13/2017 page30)", -438,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941673.htm,Chinese app developers come of age,,"Talented people take digital world by storm as flood of creativity creates worldwide demand for software When around 2,000 enthusiastic Chinese app developers gathered for Google Inc's annual conference in Beijing in December, they didn't allow the subzero winter temperatures to chill their enthusiasm for the event. Suitably impressed, Scott Beaumont, president of Google Greater China, told the large audience on Beijing Google Developer Day - the biggest such event in the Asia-Pacific region - that Google ""is here to know what Chinese developers want"". The rapturous crowd cheered him on. Google's internet search engine may have been out of the Chinese mainland since 2010, but Google, like other global tech giants such as Apple and Microsoft, has ambitious plans for the world's largest mobile internet market. The California-based giant has launched a Chinese website for local app developers and promises help to take their products global. The developments excite Yan Peng no end. ""Finally, it's here. This is the best Christmas gift for me. I couldn't wait to ask for a day off to celebrate this moment,"" the Shanghai-based app developer says. Such gushing praise has been common among Chinese consumers at the launch of much-awaited gadgets like, say, the latest version of the iPhone. But China is no longer just a humongous end-user market. Apps developed in China are increasingly popular among domestic and overseas users. For instance, Clean Master, a junk-cleaning app, has over 400 million overseas users. Bigo Live, a live-streaming app, boasts 7 million monthly active users from Southeast Asian countries, all of whom came on board within three months. Apps developed in China abound these days. Call China an app-developer hub, if you will. This new facet of China is not lost on the world's tech giants. ""China is now an indispensable part of the global developer community,"" says Ben Galbraith, head of product and developer relations at Google's developer product group. ""Chinese developers are responsive to new technology and known for high efficiency."" The trend started a few years back. In 2014, China nosed ahead of India in software development. Out of 18.5 million professional and amateur software developers globally, China accounted for 10 percent, while India had 9.8 percent, according to International Data Corp, the US IT consultancy. A picture of the current scene has yet to emerge, but it is reasonable to assume that the mobile internet boom and China's digitalization push will likely have boosted the app-developer numbers significantly, says Sandy Shen, research director at Gartner Inc, a US-based technology research and advisory company. Sensing potential, Apple has decided to set up a research and development center in Shenzhen, Guangdong province, later this year. The US tech giant's announcement came after it set up its first China R&D center in Beijing in September. The work is still on, with total cost expected to reach 300 million yuan ($44.6 million; 41 million euros; 35.1 million), including a staff of 500 employees. Shenzhen, which is an innovation hub, already houses over 100,000 developers for Apple. During his May visit to Beijing, Apple CEO Tim Cook held extensive meetings with local app developers. Apple also invested $1 billion last year in Chinese ride-hailing app Didi Chuxing. ""Chinese developers are already technologically strong, and Apple will offer more help on the marketing side to help them venture into overseas markets,"" Cook said at the time. China remains key for Apple, despite tumbling iPhone sales. That's because the country beat the US to become the largest market for Apple's iOS app store last year, according to App Annie, an app-tracker. In the third quarter of 2016, Chinese consumers spent $1.7 billion at the iOS app store, more than five times what they had spent just two years ago, App Annie said in an email. Encouraged, Apple organized its first-ever app developer competition in China in October, to encourage university students to work on apps. With spending rising and competition intensifying in the domestic market as a result, Chinese app developers are venturing abroad. Outbound Chinese app-developers often start with utility apps like cache cleaners, anti-virus offerings and data transfer tools, before testing the waters in the content business, which ranges from social media, live streaming and mapping to mobile payment apps. Some have already had a good start, said Wei Fangdan, CEO of BaijingApp, an online community of more than 40,000 domestic app-developers who have global aspirations. As of January 2016, they developed about 270,000 apps that were sold via Apple's iOS app store. By the end of May, the app developers earned more than $7 billion - and half of that came in the past 12 months, indicating strong growth momentum. In the past two years, Chinese gaming and entertainment app developers saw a 150 percent jump in revenue from Google Play, Google said, without disclosing specific figures. The United States, Japan and South Korea are the top three overseas markets for Chinese app developers. Emerging economies such as India, Mexico and Turkey are new growth drivers, according to App Annie. Interestingly, Chinese app-developers are graduating to cutting-edge technologies like virtual reality and artificial intelligence. Perfect World, a Chinese game developer, unveiled its first VR game Subnautica in March. The game enables consumers to be immersed in a virtual sea world and play with underwater creatures. As of June 2016, the PC version of Subnautica generated more than $1 million in monthly sales. The firm is working on mobile virtual reality games. ""There is an abundance of breakthrough innovation coming from China versus the 'me too' technology we saw in the past,"" says Zack Weisfeld, general manager of Microsoft Global Accelerators. In December, Microsoft said it would launch its mixed-reality headset HoloLens in China this year, so that more local developers can work on apps for the gadget. ""We believe China could be leading the world in terms of mixed reality. We are seeing more virtual reality activities here than in the United States,"" says Terry Myerson, executive vice-president of Microsoft's Windows and Devices Division. Liu Zheng contributed to this story. masi@chinadaily.com.cn ( China Daily European Weekly 01/13/2017 page27)", -439,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941672.htm,Yuan steadies as central bank's remedies take hold,,"Short sellers may find it more difficult to score profits from betting on a continued depreciation of the yuan, according to economists, who say measures rolled out by the central bank to stabilize market expectations have begun to take effect. Faced with pressure from capital outflows and a further possible decline in forex reserves, the central bank also might use what is known as window guidance or jawboning - which could be indirect persuasion through market-oriented measures - both onshore and offshore to curb the market's expectations of a sustained depreciation of the yuan, they say. Forex reserves fell by $41 billion (38.8 billion euros; 33.6 billion) in December from the previous month to $3.01 trillion, the lowest level since March 2011, almost hitting the $3 trillion psychological line that the central bank tolerates, as some media reports have put it. ""The current level of forex reserves is still way above what the nation needs to cope with external financial risks,"" says Zhao Qingming, an economist with China Financial Futures Exchange. A close look at the change in capital flows as shown in forex reserves data shows a slew of recent measures have taken effect, according to a report released on Jan 8 by Chinese investment bank CICC. It referrs to measures like strengthened supervision for overseas investment projects and foreign acquisitions. Capital outflows in December amounted to $30.9 billion, far lower than the $46.2 billion in November, according to the report's estimate. The offshore yuan jumped 2.6 percent in two days last week, the biggest gain against the greenback since 2010. The central parity rate of the yuan strengthened against the US dollar on Jan 6 and stood at 6.8668, the highest level in over a month. Xie Yaxuan, chief economist at China Merchants Securities, says the yuan's recent surge has perplexed speculators, who expected a sustained depreciation. ""It will be more costly for speculators to bet on depreciation of the yuan,"" says Xie, adding that the central bank has enough tools to choose from to curb speculative behavior if a further drop in forex reserves leads to capital flight pressures. Wang Youxin, an economist at the Institute of International Finance affiliated with the Bank of China, says apart from selling dollars in the forex market, the central bank is able to use more market-oriented approaches to curb depreciation expectations. Such measures include tightening liquidity and boosting interest rates, thus raising the opportunity costs of capital outflows. Ren Zeping, chief economist of Founder Securities, says the warming up of the domestic economy and weakening of the dollar index help create an environment for stabilizing the yuan. In the long run, the central bank may need to allow a completely free fluctuation of exchange rates to avoid a recurrence of depreciation expectations, according to Liu Jie, an economist with China Minsheng Securities. wangyanfei@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page26)", -440,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941671.htm,Subsidy cut puts brakes booming on car sales,,"China's passenger vehicle sales last year saw their fastest growth since 2013, but analysts say the momentum will not continue this year. Statistics from the China Passenger Car Association showed that dealers sold 23.9 million sedans, SUVs and MPVs in 2016, a 15.9 percent rise year-on-year, more than double the estimates of several industry organizations, including the China Association of Automobile Manufacturers, made at the start of the year. Cui Dongshu, secretary-general of the CPCA, says the performance was mainly due to a 50 percent tax cut on cars with engines no larger than 1.6 liters, and Chinese motorists' enthusiasm for SUVs. The role of the tax cut was particularly obvious in December, which saw the year's highest monthly sales of 2.76 million cars as people rushed to dealerships before the policy expired by the end of the year. Yale Zhang, managing director of research firm Automotive Foresight, says: ""The policy was like a huge roadside billboard for the car industry, constantly reminding people that there are some models they should consider buying."" Despite the authorities putting in place a 25 percent tax cut for this year, this will still mean that customers have to pay an extra 5,000 yuan ($710; 673 euros; 583) for models priced at around 200,000 yuan, such as the Volkswagen Sagitar or Toyota Camry. SUV sales grew 43.6 percent year-on-year in 2016, the fastest-growing segment in the market. One example of their popularity was that Great Wall Motor Co Ltd sold 80,495 Haval H6 SUVs in December, which means one was sold in every 33 seconds. More than 580,000 H6 were sold in the year. But experts say that the growth rate will plummet now that a huge number of customers have finished purchases in advance and overall economic growth is somewhat slowing down. Cui expects the figure to fall to around 6.5 percent in 2017 while Zhang and John Zeng, managing director of LMC Automotive Consulting (Shanghai), give an even less optimistic estimate of 2 to 3 percent for the year. Zeng says the market would see negative growth without the 25 percent tax cut on small engine cars that took effect this month. However, Zeng is against too much stimulus, insisting that the market should have the final say. He says the favorable policies are like athletes using drugs that produce abnormally high but unsustainable performances. lifusheng@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page25)", -441,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941605.htm,Chinese writers make global splash,,"Garnering many awards, literature from the mainland left a lasting impression on the international stage last year Chinese novels came of age in 2016, bagging many international awards. Children's writer Cao Wenxuan won the Hans Christian Andersen Award; Hao Jingfang took the Hugo Award (following Liu Cixin, the first Chinese winner of the award in 2015); and Wang Anyi, grabbed the 2017 Newman Prize for Chinese Literature from the University of Oklahoma in September. Veteran literary critic Meng Fanhua says the power of Chinese stories comes from the rural areas, ""where we have the strongest literary traditions"". - Books published in 2016 in English or Chinese (clockwise from top left): Death's End by Liu Cixin, Mercy by Lu Nei, Ruined City by Jia Pingwa, Flock of Brown Birds by Ge Fei, The Cocoon by Zhang Yueran and Paper Hawk by Ge Liang. Photos Provided to China Daily Another veteran critic - Bai Ye, from the Chinese Academy of Social Sciences - says that while traditional and established novel writers continue to produce works, younger writers who were born in the 1970s, 80s and 90s are also gaining ground. ""Every year there are about 5,000 novels published in the country. But, this year, I noticed writers are more keen to reflect the pulse of society, and their writings are close to everyday reality and easier for general readers to accept."" Bai, who produces an annual report on Chinese novels, adds that rural life is one of the key elements in the books published last year. As urbanization expands, the nostalgia for rural life grows, as seen in Jia Pingwa's work The Jihua Flower, he says. The novel, about the plight of an abducted girl, stirred a debate about gender equality soon after its release in March. Other themes writers tackled last year were urban life and history. ""It was also a trend for writers to personalize their take on history, offering a touch of warmth to a cold past,"" Bai says, pointing to Mao Dun Literature Award winner Ge Fei's Wang Chun Feng (or The Spring Breeze) as an example of this kind of work. Wang Chun Feng is about a village's transformation as seen through the eyes of a young boy. Giving other examples of these kinds of works, Bai points to Fang Fang's Bare Burial, a story about a lost family history during and after the country's land reform, and Lu Nei's Mercy, about a factory worker's life before and after China's reform and opening-up. Another example is Hong Kong-based writer Ge Liang, who was born in 1978, and his semibiographical referring to younger writers, Bai says that those born in the 1980s are making a noticeable impression on their audiences. Zhang Yueran made a mark with The Cocoon, which is about two young people searching for the facts behind the disappearance of their fathers. Online writer Tangjia Sanshao (real name Zhang Wei) also caught Bai's attention with an autobiographical novel about how a self-made writer achieved fame with help of his wife. Online literature is offering more choices to readers. It ""fills a blank in the Chinese book market"", says Shao Yanjun, a web literature expert at Peking University who says he expects internet literature to be assimilated more into the mainstream. Eight internet writers were elected to the national committee of the China Writers' Association at the group's annual meeting in December. Tangjia Sanshao was elected to the presidium of the association. Explaining how internet literature is growing from strength to strength, Shao says it has now become a major source of adaptation for movies and games, and because of its large readership there is a spurt in the sales of TV and film rights of online works in China. For instance, The Interpreters, a TV series based on a work by Miao Juan about the professional and love lives of two language translators, attracted millions of viewers when it hit TV screens in May. As for the money online writers are making, Liu Chang, who started writing science fiction novels full-time in 2012 under the pen name Biting Dog, says that the TV and film adaptation rights for his work Global Evolution is worth around 2 million yuan ($300,000; 270,000 euros; 246,500). ""Internet literature is becoming more diverse in terms of quality and topics,"" says Peking University's Shao, citing Zeng Dengke (pen name Crazy Banana) as a good example. Zeng writes historical fantasy and tries to match classical literature. Another significant trend noticed by Shao and her students is that Chinese internet literature is attracting Western readers, who are also translating Chinese online novels into English on online forums such as Wuxiaworld.com. The site was started by Chinese-American Lai Jingping, known as RWX on the forum, who quit a foreign service job to start the translation website. As for literary genres that made it big last year, sci-fi was near the top. Wu Yan, director of the Sci-fi Study Center at Beijing Normal University, says he sees more attention being paid to the genre, with a growing number of forums and campus seminars. Even though Hugo Award winner Liu Cixin joked that Chinese scientists were keeping their distance from sci-fi writers, Wu says the China Association for Science and Technology took many initiatives to use sci-fi to promote popular science to the public. Its efforts included organizing the China Sci-Fi Festival, the first large-scale sci-fi event, in Beijing in September. Moreover, sci-fi works have begun to infiltrate classrooms, which once dismissed such works. ""Even startups are focusing on sci-fi,"" he says. ""But, despite the good news for sci-fi in China, I did not see too many good works produced in 2016."" However, despite his disappointment, Wu recommended a few works. Among his picks were young sci-fi writer Jiang Bo, who recently finished the last installment of his trilogy The Heart of Galaxy, which won the World Chinese Science Fiction Association prize. Wu also recommended River of Time, a work on time travel by 68-year-old Wang Jinkang, who has been writing science fiction for more than 20 years. Other notable mentions included the works of overseas Chinese-Americans published in China, such as short stories by sci-fi writer Ken Liu, whose translations of the works of Liu Cixin and Hao Jingfang helped them win their Hugos. Another Chinese-American who earned a mention was Karen Bao, a graduate of Columbia University, who recently published the first installment of her sci-fi series The Dove Chronicles in China. On a more somber note, 2016 was also the year when China lost two literary stars: Chen Zhongshi and Yang Jiang. Contact the writers through xingyi@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page18)", -442,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941604.htm,A dumpling for every season,,"Here's why jiaozi are consumed with gusto during so many Chinese holidays and festivals How do Chinese people celebrate festivals? Even if you are not a China expert, you might have been able to guess this one: eating 饺子 (jiǎozi) thin pieces of dough with ground meat or vegetable filling, steamed or boiled (also known as dumplings). In a country with a history of thousands of years and a diverse culinary culture, it's hard to imagine that such a commonplace item can be regarded as one of the country's most representative dishes. It can be said without exaggeration that, at least in northern China (not all over the country - more on that later), jiaozi plays an important role in almost half of Chinese festivals. One should eat jiaozi at Chinese New Year, the fifth day of the first month according to the lunar calendar, the Autumn Commencement, the Winter Commencement and the Winter Solstice. As the Chinese saying goes: ""Food is the god of the people."" Alternatively, we can conclude that when foodies really want to eat something, they can always find reasons. The Chinese New Year Eating jiaozi on Chinese New Year's Eve is the most important custom in northern China during Spring Festival. Families get together around a table to wrap jiaozi together in the evenings and eat them at midnight. That's because, according to ancient timekeeping customs, a day was divided into 12 two-hour periods and the period between 11 pm and 1 am was called 子时(zǐsh��), or the Zi period. On New Year's Eve, the Zi period marked the transition from an old year to a new year and had a special name, 交子 (jiāozǐ), which sounded very similar to jiaozi. What's more, the shape of a jiaozi is just like a gold yu��nbǎo (元宝, ingot), an ancient currency, so people eat jiaozi at the dinner with the wish that they will have prosperity in the new year. Some cooks will hide a coin inside a jiaozi and whoever happens to find it is said to have good luck in the coming year. The fifth day of the first month in the lunar calendar Just five days after New Year's Eve, people eat jiaozi again. This custom is called ""breaking the fifth"", or 破五 (pòwǔ), because there are so many taboos during the Spring Festival period such as doing needlework, breaking things, getting your hair cut and so on. However, after the fifth day after the New Year, those taboos don't exist anymore, so people celebrate by eating jiaozi. A special custom exists in the city of Tianjin and surrounding areas, where people believe that when you wrap jiaozi, you need to press the wrapper edges tightly so that people who like to talk about you behind your back will have their mouths zipped in the coming year. The start of the Fu days The Fu days can be understood as the ""dog days"" of the Chinese summer, which usually last 30 or 40 days between the traditional calendar seasons of ""Little Heat"" and ""Great Heat"". The first day of Fu is another jiaozi day. Because the Fu days are the hottest time of the year, people usually lack appetite, so something delicious is needed to stimulate their taste buds. Jiaozi, a popular food that many people liked since ancient times, became the optimal choice. And because the Fu days took place during the start of harvest, every household could afford the good meal. The start of autumn When the high temperature that takes away people's appetites finally drops, cool autumn arrives, and it's definitely worth celebrating. On the Autumn Commencement day of the lunar calendar, it is believed people should eat something good, especially meat, to 贴秋�?(tiē qiūbiāo) gain autumn weight, because most people have lost some weight during the long hot summer and need to gain it back to stay healthy during the winter. Of course, for jiaozi lovers, dumplings with meat filling works perfectly. The start of winter When the weather is hot, you eat jiaozi; when it's cold, jiaozi-lovers will eat jiaozi, too. Eating jiaozi on the Winter Commencement day is one of the best-known jiaozi customs in China, and it is related to the origin of jiaozi. Though there are many folk stories explaining how jiaozi was invented, the most popular one was about the famous doctor Zhang Zhongjing. Zhang was a great practitioner of traditional Chinese medicine, who lived during the Eastern Han Dynasty (25-220). One day in winter, when Zhang was on his way home, he found many poor people had frostbitten ears, because they didn't have warm clothes and sufficient food. Zhang tried to heal their ears. He stewed lamb, peppers and some medicine in a pot, chopped them into small pieces and used them to fill small dough wrappers. Zhang named these dumplings 娇�?jiāo'ěr), literally meaning ""tender ear"", and boiled them every day to feed his patients. Gradually, these patients became better and, when Spring Festival came, their ears were healed. In order to express their gratitude to Zhang, people began to imitate his recipe to make jiao'er, which later became the current jiaozi, and ate them to celebrate Spring Festival. The winter solstice Chinese people have long placed a great deal of importance on the winter solstice. Family members get together, worship their ancestors and eat jiaozi. Some claim the reason people eat jiaozi on this day is also to commemorate Zhang Zhongjing, while others said it's because of a goddess in ancient Chinese legend, N��wa, who is known for creating humans and repairing a great hole that one day appeared the sky. It is said that N��wa existed at the beginning of the world and created humans by sculpting them with yellow clay. But when she made ears for these humans, she worried that the clay would freeze and the ears wouldn't stay attached to their heads when it became cold. Therefore, she pierced their ears and used a string to fix them to their heads. So, on the winter solstice, which is the darkest and one of the coldest times of year, people make and eat the ear-shaped jiaozi in memory of N��wa, and it's said if you don't eat jiaozi this day, your ears will freeze and drop from your head. Jiaozi lovers can always find a reason to eat jiaozi, but the interesting thing is that it just happens in the north, where there is a tradition of eating wheat-based food. Southern people, whose traditional dishes tend to be based more on rice, are not crazy about it, even though as more people migrate around the country for work and consume mass media (such as CCTV's documentary about jiaozi as the ultimate Chinese festival food), the northern customs are becoming better known and even adopted by some southerners. However, traditionally, southerners had other choices for festivals. At Spring Festival, they eat tangyuan or fried nian'gao, traditional dishes made from sticky rice; on the winter solstice, they eat tangyuan; for Lantern Festival they of course also eat tangyuan. There are also dishes special to certain regions; other winter solstice foods, for instance, include fried sticky rice consumed in the Jiangnan region, nine-layer rice cakes and soy flour-covered sweet round cakes made of glutinous rice paste in parts of the southeastern coast (and Taiwan), noodles and pumpkin patties in Anhui province and mutton soup in Shandong. After all, China is a vast land so to designate one dish as the official festival food would probably lead to a civil war - but at least we can agree that the holidays are the perfect excuse to binge on all your favorite dishes. Courtesy of The World of Chinese, www.theworldofchinese.com The World of Chinese (China Daily European Weekly 01/13/2017 page21)", -443,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941603.htm,The land of cold and gold,,"China's northernmost territory is a true winter wonderland for tourists It takes courage to explore Mohe in winter - and some warm clothes. Very warm clothes. A lot of them. Temperatures in China's northernmost county plummet to a biting -40 C at night. - Clockwise from top left: Tourists aboard one-horse sleighs in Santa Village in China's northernmost county of Mohe, Heilongjiang province; a visitor plays a popular game of splashing hot water, which freezes instantly in the cold air; villagers hack a hole in the river and push a net down for fish; a reindeer-drawn sleigh in front of the Santa's house. Liu Xiangrui / China Daily Days aren't much warmer. But its icy climate is exactly what gives the small border settlement in Heilongjiang province its appeal. At least much of it. China is said to be shaped like a rooster. Mohe perches on the crest that prods Russia's belly. Such offerings as the northern lights have elevated its position on the tourism map. I recently visited the county and spent a few relaxing - and freezing - days in Beiji village, the country's northernmost community. It was worth enduring the cold to experience Mohe's magic. I'd prepared fretfully. I borrowed thick shoes and other winterwear from friends. But I realized I had to buy even warmer footwear upon arrival. Still, my feet froze. Nonetheless, I was excited, as were the other tourists in our group from the southern province of Guangdong. We spent the first night in the county town, where illuminated ice and snow sculptures lined the streets. We headed to Beiji the next day. About two decades ago, it was a poor hamlet. Today, it's a national 5A tourist attraction, the highest level. We climbed a lookout tower halfway to the village and saw a river snaking through woodlands of rime-sheathed trees. Then we enjoyed a stroll along a boardwalk through birch forests. The village is situated on the southern bank of the Heilongjiang River, which marks the border with Russia. Travelers come to visit China's northernmost post office, bank and primary school. But its biggest single attraction is the aurora borealis. It's said to be the only place in China where the electromagnetic phenomenon can be seen. Hundreds of photographers flock to the destination every summer in hope of capturing the northern lights - although sightings are rare in the warmer months. I enjoyed it most when the village went silent after 10 pm. We used phone apps to detect constellations among the countless stars. We were able to snap a couple of satisfying photos of the Milky Way after standing outdoors for nearly two hours. Despite the late night, we got up around 6 am to enjoy seeing the sunrise from a an observation tower. Morning light sparkled on the rime-encrusted woodland. Haze drifted through the valley. Chimney smoke coiled from dwellings on the river's Russian side. Such scenery is best explored aboard a one-horse open sleigh (jingle bells not included). The village has a team of drivers, and passengers ride under quilts in the vehicles. We watched them whoosh by on our way to go ice fishing. Villagers hack holes in the river and use a long pole to push a net down. A day or two later, they return to collect their catch. The fish are said to be particularly tasty but hauls depend on luck. Afterward, we headed to the nearby Santa Village. It happened to be a few days before Christmas and it was looking a lot like it everywhere we went. Here, St. Nick's job isn't making a list, checking it twice and finding out who's naughty or nice. It's posing for photos with tourists. Spoiler alert: As Mohe isn't really the North Pole, Santa isn't really Kriss Kringle but rather a Finnish native who plays the part. Mostly, his job is posing for photos with guests. Speaking of poles, we did see a pole-dancing party in front of Santa's house. An unlikely venue, perhaps. But seasonal performances are staged in which dancers dazzle crowds for up to five minutes outdoors with nothing but bikinis to shield them from the cold. Hearty fare helps stave off the cold in Mohe. I particularly enjoyed goose stewed with potatoes in a traditional wood-fired oven. As we dined, more ingredients were added - pickled Chinese cabbage and frozen tofu - a local specialty. On our way back to the county town, we stopped by Old Gold Valley to learn about the region's history. The yellow mineral was discovered in a 14-kilometer-long gorge over a century ago. A rush began and prospectors flooded the riverbanks in the following decades. Gold can still be found in the sand, our guide says. Today, perhaps the snowy climate's tourism appeal makes white the new gold in Mohe. liuxiangrui@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page19)", -444,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941602.htm,A dish full of history,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong bonds of community and culture. It is a dish full of history, and there are about as many myths and legends attached to it as there are ingredients in the recipe. Unlike many Chinese classics for the dinner table, this one has no fancy title. It is simply known as pencai, or ""dish in a basin"". The name reflects the presentation. Layers of food are stacked on top of one another in a large serving pot or basin. To find out why, we need to hark back to its origins. - The layerings of meat and vegetables provide a delicate harmony of taste and texture. Photos by Chuai Meitu / For China Daily Many versions of how this dish came about are floating around the wild blue yonder of the internet, but the elements are largely the same as the story my mother told me when I first tasted pencai in Hong Kong decades ago. The story involved a fugitive king or general washed up on the shores of either Shenzhen or Hong Kong - cold, hungry and in need of the kindness of strangers. The strangers were variously fishermen or village folk, depending on which version of the story one prefers. Out of sympathy and respect, the common folk brought out the best ingredients they had in their homes and cooked for their down-and-out visitor. They were so poor they didn't have enough spare crockery for guests, so the food was served from a wooden basin. One thing everyone agreed on was the Hakka element. The Hakka are the ""guest people"" - emigrants from the Central Plains who settled in the coastal provinces of the south, notably Fujian and Guangdong. In Hong Kong they built villages surrounded by low enclosures called weicun, or walled villages. In neighboring Shenzhen, they formed fishing communities and also settled in the hills of nearby Meizhou. There is historical evidence that the royal refugee would most likely have been hosted by a Hakka community. The Hakka are famous to this day for their pencai, which is eaten on festive occasions such as birthdays, weddings and on the eve of the lunar new year, during the reunion dinner. It is a masterpiece of cooking skill and frugality, with expert layering of ingredients that sound contradictory but actually provide a delicate harmony of taste and texture. At the very bottom of the large basin is a layer of braised radish, a root vegetable that withstands long cooking and readily absorbs the juices of meat and seafood. On top of the radish is usually braised pork belly, its rich fat leaching down to nourish the radishes. The pork may be topped with fried tofu or gluten balls, which again soak up the fatty meat juices and act as a soft barrier for the next layer. Roast duck or steamed chicken on top of the tofu or gluten adds distinctive flavor and texture - especially duck, whose fat lends a special fragrance to the dish. The next layer, again vegetables, is likely to be thick slices of yam or taro, chosen for the ability to complement meat. The layering will go on, alternating meat, seafood and vegetables until the chef runs out of imagination and ingredients. Generally, the best ingredients are displayed on the very top, and some pencai may even see the luxurious addition of dried scallops, whole abalones or sea cucumber. Other ingredients used may include dried oysters, prawns, fish maw, crab, fish cakes or meatballs. In fact, the pencai may be assembled from very economical items, not just expensive, exclusive treats. Pencai is popular in Huaiyang cuisine as well, a cooking style that is quickly gaining popularity in China for its lighter, natural flavors. It has traveled far from its Yangzhou-Huai'an roots and is now often served at state banquets, including dinners served at the Great Hall of the People. A senior colleague from Yangzhou says the Huaiyang version of pencai also has the characteristic layerings of meat and vegetables. What makes it different is that it will have two very Huaiyang ingredients - danjiao and fish meatballs. Danjiao are dumplings made with an egg skin. Beaten egg is poured into a heated ladle and swirled until slightly set. A spoonful of filling is added and the dumpling is quickly folded over. The dumplings are laid out in rows in the pencai to fully cook. Fish meatballs are equally laborious to make. The filleted meat of the freshest fish is scraped and minced and beaten together until it forms a light, white cloud. With a dexterous squeeze and twist, a meatball is formed and dropped into boiling water. The finished meatballs are then added to the pencai. Huaiyang cuisine only uses sea cucumber to top the dish, and skips the abalone. The dish has also been duplicated in the north, where it's known as quanjiafu, or ""family reunion"". However, the ingredients may be more rough-and-ready, and it may lose some of its southern finesse. The romance of the dish seems to fade as it travels. paulined@chinadaily.com.cn A popular dish for Spring Festival reunions A new culinary phenomenon that has surfaced in recent years is the hotel hamper for Spring Festival. In many ways, it is like the traditional Christmas hamper, minus the turkey or ham. It also reflects the changing lifestyle of many urban Chinese. A series of family meals is a traditional part of the festivities, starting with the reunion dinner on New Year's Eve. The first day of the Chinese New Year sees another gathering of family and friends, and the feasting may go on for a week. While in the past a battalion of mothers, aunts and sisters would be churning out dishes from the kitchen, it is getting increasingly likely that food may be ordered in. This is where the hotel hampers come in, with their gifts of cakes, buns and a large ready-to-heat pot of pencai, an ideal dish for such occasions, All you need to do is to reheat the pot on a low fire and wait until the ingredients are again warm and bubbling. Cooking time is minimal because the dish has been prepared in advance. And its ready mix of seafood, meat and vegetables is a luxurious and impressive treat for all. (China Daily European Weekly 01/13/2017 page20)", -445,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941601.htm,Company has grand designs on the world,,"A 30-volume series of children's books received a lot attention online in China recently, not just because of its sheer size but also because of the source of its financial backing - crowdfunding organized by an online bookshop. The illustrations in the 30 volumes of stories, taken from all over the world, reflect the breadth of the books and the stories in them - 3,000 pictures by 30 illustrators from various countries and regions, such as Francesca Greco and Valentina Fiore Perla from Italy. ""There are stories from Grimm's Fairy Tales and from the Middle East, and of course illustrators from those countries and regions are very well suited to that job,"" says Hou Mingliang, founder of IlluSalon, a company in Beijing that aims to bring together illustrators and those who use illustrations. ""Prices of illustrations can vary widely, depending largely on the local economy. There may be little difference in the quality of works when you compare various places, but some will be expensive while others are extremely cheap. ""With IlluSalon, publishers have many choices and can make decisions based on their needs and their budgets."" In China, publishers have long paid students in fine arts academies a pittance to churn out illustrations for books. ""There is a joke about those cheap illustrations,"" says Gao Shan, chief executive of IlluSalon. ""If you go to many illustrations and remove the hair or skin color of the figures in them you will find that all the eyes and noses - including those of dogs, cats and humans - are similar."" One reason such conditions have prevailed for so long is that there is a scarcity of good channels through which anyone can find suitable illustrators, Hou says. ""Also, publishers demand the best illustrations, but are not willing to pay accordingly,"" Hou says. IlluSalon was founded in 2014 at a time when an upswing in demand in China for good-quality illustrations and picture books was emerging. ""We have lived through the printing era and the writing era and are now in the audiovisual era,"" Hou says. ""So people are crying out for more pictures, especially really creative ones that express a creator's ideas."" IlluSalon has been the driving force behind a new event that recognizes artistic talent, the Global Illustration Award. At the Frankfurt Book Fair in October, IlluSalon hosted the awards ceremony. More than 10,000 entries from five continents were received in two months, in five illustration categories: covers, children's books, editorial, scientific, and one entitled ""Learning to live together"". The awards went to 15 artists from seven countries and regions. One of the original aims of IlluSalon was to bring foreign illustrators into the Chinese market as it continues to grow. Further down the road, the idea is to introduce Chinese illustrators to the world. IlluSalon says it has signed contracts with about 1,000 foreign illustrators, mainly from Europe. ""Illustrators who want to join us can show us their works,"" Hou says. ""After signing a contract with us we will link illustrators with customers, and eventually we should have a stable of great illustrators. They will be the backbone of IlluSalon."" Under IlluSalon's plans the website would eventually become a trading platform akin to taobao.com. Illustrators would post introductions of themselves and their works on the website, and potential customers would use key words to search for works or creators. IlluSalon says that in addition to publishers, it has customers from other fields such as Apple and the global advertising agency Batten, Barton, Durstine & Osborn. IlluSalon says it has found illustrators from all over the world to paint emoji packages that users can pay to download from Apple. ""We want to build a platform through which the creative abilities of illustrators and their works can circulate efficiently globally,"" Hou says. ( China Daily European Weekly 01/13/2017 page16)", -446,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941600.htm,The big picture,,"Illustrators struggle to draw attention to the value of their work Two-and-a-half millennia after Confucius said that ""one seeing is worth a hundred hearings"", some bright spark in the English-speaking world took a leaf out of the great sage's book and came up with ""a picture is worth a thousand words"". The West gave birth last century to an industry that employs millions of people who provide illustrations for books, cataloges, advertising and other media. And, yet somewhere along the way, in China the old message seems to have been overlooked. Only in recent years has the printed picture begun to make an impact as a medium par excellence for getting messages across in many different areas. - Children's picture books have been growing in popularity in the past few years. Xu han (inset), one of the artists who caters to this genre, created the iconic character Ali. Photos Provided to China Daily - One of the drawings by Zhang Yunbao, an editor and illustrator of children's picture books. One of those who is aware of how far China has lagged behind - but is now seeing it making strides to catch up - is Zhang Yunbao, 29, a children's picture book editor for Beijing Poplar Culture Project Co. In her free time she draws commercial illustrations and makes her own picture books. Zhang has worked in the field for five years and says she has noticed that in the past two years demand for both commercial illustrations and children's picture books has begun to take off, ""which holds the prospect of a much bigger market in coming years"". ""You can see that illustrations are increasingly wanted by online shops, clothing brands, cellphone brands and booths in shopping malls."" Over each of the past 10 years, sales of children's picture books have grown by an average of 10 to 12 percent in China, says Hou Mingliang, founder of IlluSalon, an organization founded in Beijing in 2014 to promote the use of illustrations in China and bring together illustrators and customers. Hou has worked in children's book publishing for eight years. As China fulfils its mission of ensuring that most of its citizens are clothed, fed and feeling well-off materially, the public is developing an appetite for intellectual and spiritual nourishment that only education and the arts, such as music, literature and painting can give, he says. Li Ajiu, 32, a freelance illustrator in Shanghai, says that just 10 years ago when she graduated from university, illustrated books were hard to come by in China, but now they are everywhere. That is partly because parents have come to accept the concept of picture books, she says. Hou says: ""Picture books with beautiful illustrations, good stories and creative storytelling will exert great influence on children, who construct the world and connect themselves with society through them. So good picture books are very important."" However, 85 percent of children's picture books are imported and only 15 percent are domestic creations, Hou says. Chinese parents prefer to buy imported picture books for their children because the values reflected in the stories are expressed in more creative ways and the quality is generally better than that of domestic works, he says. ""And for publishing houses, good-quality imported picture books - particularly ones that have won awards - are safer in the market."" Some people attribute this to the longer history of the illustration tradition in Europe and the United States, which cultivate highly talented illustrators. Hou and Zhang, say many other factors are hampering the growth of the domestic illustration industry. Zhang can recall few cases in which those who have ordered illustrations from her have offered a contract for her to sign. In most cases the only communication is by email and, without legal protection, some illustrators have to fight to get paid even after their work has been used. Apart from requiring artistic talent and training, creating an illustration is time-consuming, and most illustrators who have not made a name for themselves struggle to survive on meager earnings. In fact, many of Zhang's illustrator friends say trying to make a living from their art is out of the question. ""They all love painting, but they have to live,"" she says. Han Dan, 28, an illustrator who is known on the internet as Ghost Master, is an editor at Chemical Industry Press in Beijing. The lethargic growth in the publication of original picture books in China is partly the result of a dearth of picture book editors in publishing houses and elsewhere she says. Zhang says: ""Apart from illustrators, most people do not know about illustrations, what kind of illustrators they need or what kind of creative styles they want. People in other fields know little about art and painting."" For Han, another problem is the limited scope that illustrators have for selling their work. ""In China, picture books are mainly for children, and that means illustrators have a very limited space in which to express themselves."" Hou says that in Europe, illustrations were originally created by people to express their ideas or imagination on canvas. Some of the more personal illustrations that carried the wisdom of older generations may have been shown to the young as a means of education. He cites The Tale of Peter Rabbit by Beatrix Potter, saying that Potter originally just painted for herself without thinking about publishing. But after she showed the stories to a friend, he encouraged her to publish them. Peter Rabbit then became a popular picture book, which has become a classic. ""Many European illustrators draw very personal stories and then have them published,"" Hou says. Han has rarely drawn commercial illustrations because ""they usually don't like my style, which is cool, not that kind of warm or light style"". She has been working intermittently on stories about ghosts living in another world. ""I have talked to people on an online illustration platform. Obviously what they are looking for are illustrations for children books, so for them weird or cold, dark themes and colors are out. ""I know some Chinese illustrators who are really good. You may say they lack creativity compared with people in Europe or the United States but that's because they cannot express themselves fully."" To gauge the quality of illustrations in a certain country you have to see the general level of the illustrators, not just a few of the top ones, Hou says. ""Maybe this is going to offend some people, but the average level of Chinese illustrators is low. Many are just craftspeople who are good at technique but lack the quality to become masters because they don't have a big enough reserve of culture, including literature, music and painting. ""China's arts education is twisted. Students who go to fine art academies are usually those who may not be able to enter general universities. Ideas are most important for illustrations and the images are secondary. ""So there is still a long way to go. Nowadays, Chinese people, on average, read no more than five books annually, compared with more than 60 in Israel."" College teacher Xu Han creates stories about Ali, the popular red fox. Now he is directing a movie about the character. He says that when he creates the picture books, the biggest challenge he faces is writing good stories rather than getting the painting technique right. ""The core of a picture book is the story. To write a good story you have to build up a big collection of ideas from everyday life,"" he says. The task that illustrators or designers face covers more than just artistic technique and form. It also entails trying to express oneself through the content, Xu says. Zhang says that when she was deciding which university to attend her father, who always encouraged her to chase her dreams, suggested that she should go to a comprehensive university rather than a special one. ""When I was little, my father told me to find the thing I really love and pursue it as a career. Of course, academies of fine arts have their advantages, with better faculties and richer artistic perspectives for students. ""My father said, 'I know you love painting, but at an academy of fine arts you will be surrounded by nothing but arts. If you go to a comprehensive university there are various kinds of things you can learn about, which I think is better for your development'. ""I personally believe that illustrators need to care about more than painting - things such as literature, movies, theater, photography or child psychology. You also need to know about society. These things are connected."" Luo Qianxi, 26, a freelance illustrator in Beijing, says China's illustration industry lacks organizations or agencies that can help creators promote their works. ""Illustrators spend most of their time and energy on creation. They don't know how to find customers or promote themselves. On the other hand, there are many well-developed organizations and agencies in Europe that help illustrators promote themselves and find customers. They also have good platforms to sell their works,"" Luo says. In addition, in Europe people generally are more familiar with the illustration industry and often support and respect illustrators' works, she says. In China, piracy is also a big problem, says Xia Mengyu, another freelance illustrator. However, Hou believes that in the future illustrations will become mainstream in China and even part of everyday life. They will appear everywhere, and people will use them to decorate their houses or to promote their products, he says. Good works will be collected and stored. ""This is an audiovisual era, and the day will come soon."" yangyang@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page16)", -447,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941598.htm,Awards recognize China's innovators,,"Advances in medicine, physics and technology are among those called vital for nation's progress President Xi Jinping presented the State Preeminent Science and Technology Award on Jan 9 to Tu Youyou, co-winner of the 2015 Nobel Prize in physiology or medicine, and physicist Zhao Zhongxian, recognizing the country's booming innovation. Tu is best known for discovering artemisinin, a substance derived from the traditional Chinese medicine qinghaosu, which is used to treat malaria. She is the first woman to receive the national award. Zhao Zhongxian, an academician at the Chinese Academy of Sciences, has spent four decades researching superconductors. Twenty-seven scientists have received the nation's top science and technology award since it was established in 2000. It comes with a prize of 5 million yuan ($721,000; 680,900 euros; 595,900). The award is one way the government encourages fundamental research, Premier Li Keqiang said at the ceremony. Scientists should be dedicated to patient research since China is in greater need of scientific progress than at any other time, he said. Li paraphrased a Chinese proverb, saying that scientists ""could stay silent for a decade"" but ""try to amaze the world with a single brilliant feat"". He vowed to protect intellectual property rights, which he said are crucial for innovation. The nation will have sustainable development only by relying on innovation, he said. Li also expressed gratitude to the foreign scientists and scholars who have contributed to China's scientific progress. The country welcomes foreign scholars for entrepreneurship and innovation, he said, adding that the government will provide opportunities and facilities for international talent willing to work in China. Five foreign experts, including Katharina Kohse-Hoeinghaus, a professor at the University of Bielefeld in Germany, and one organization received China's International Science and Technology Cooperation Award during the ceremony. The Chang'e-3 project shared the Top Science and Technology Progress Award with 19 others. Research into standards for high-speed wireless communication known as TD-LTE got the State Science and Technology Progress Special Award. Contact the writers at anbaijie@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page15)", -448,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941597.htm,Clean-up drive for disciplinary teams,,"Clear standards set for handling tips, working cases and managing assets The country's 500,000-plus corruption investigators are being placed under stricter supervision after a regulation to standardize graft probes was adopted on Jan 8. Experts says the regulation, passed at the annual plenary meeting of the top anti-corruption watchdog - the Central Commission for Discipline Inspection of the Communist Party of China - can help ensure an unsullied disciplinary team, after some corrupt investigators were exposed. The regulation, details of which were not released, sets clear standards on how to handle corruption tips, how to check and review cases and how to manage ill-gotten money and assets, according to a report published on the commission's website on Jan 8. It also encourages audio and video recordings throughout the entire process of the interrogation and the establishment of a registration system for those who make inquiries about, or try to interfere in, the cases, the report said. ""Trust (in disciplinary officials) cannot replace supervision,"" a meeting communique released on Jan 8 said. ""We must make sure the power granted by the Party and the people is not abused."" Many commission members who attended the three-day meeting say they have felt rising pressure on disciplinary officials. In recent years, President Xi Jinping has repeatedly required officials to ""clean house"" to ensure a trustworthy disciplinary team. ""As those who enforce anti-graft rules, we must first place ourselves under scrutiny,"" says Liu Qifan, head of the anti-corruption watchdog in the Inner Mongolia autonomous region. China launched a massive anti-corruption and austerity campaign as the top Party leadership was elected in late 2012. Xi said on Jan 6 that years of effort have stopped corruption from spreading, and a ""crushing momentum"" against graft has taken shape. However, some disciplinary officials have become conceited with the anti-corruption achievements, and a small number of them have loosened their self-restraint and become corrupt themselves, says Wang Yanfei, head of the provincial discipline watchdog in Sichuan province. Since late 2012, more than 7,900 disciplinary officials from across the country have been punished for various types of wrongdoing, with 17 from the top anti-corruption watchdog being placed under investigation in graft probes, according to figures from the commission. Recently, a three-episode TV documentary produced by the commission, named To Forge an Iron, One Must Be Strong Oneself, offered the public a rare glimpse into guilty officials from discipline inspection authorities. It featured the cases of 10 former anti-graft officials, including Zhu Mingguo, who was once in charge of fighting corruption in Guangdong province. In the documentary, Zhu, convicted in November of taking bribes of 141 million yuan ($20.4 million; 19 million euros, 16 million), admitted that he made use of his position. He said he received over a thousand bottles of expensive alcohol as gifts, and had taken bribes as far back as the 1990s. ""It is very rare for the commission to make such a documentary for publicity,"" says Xie Chuntao, director of the Dean's Office of the CPC Central Committee Party School, adding that the move also reflects the commission's determination to strengthen self-supervision. Contact the writers at caoyin@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page15)", -449,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941596.htm,Sports authority proposes cap on football salaries,,"As China's lavish football clubs continue to sign foreign stars for staggering sums of money, the country's top sports body is considering imposing a salary cap to restrict excessive spending and achieve more sustainable development of the domestic league. A cost ceiling for players should be set to curb the mounting financial burden on clubs, the General Administration of Sport of China, the country's top sports body, said in a statement released on Jan 5. It also said more transparent financial auditing of clubs should be conducted. ""A series of issues, such as clubs spending excessively on overpriced foreigners - while neglecting investment in youth training - have been hampering the long-term development of the game,"" the statement said. Chinese Super League clubs spent $363 million (345 million euros; 298 million) on star imports early last year, followed by the arrival of another costly foreign legion in December, including Brazilian midfielder Oscar and Argentine striker Carlos Tevez. On Dec 23, Oscar was signed by Shanghai SIPG, from English Premier League giant Chelsea, for $63.5 million, eclipsing the previous record of $58.9 million paid by SIPG for his compatriot Hulk in July. Shanghai Greenland Shenhua, another CSL club in the city, announced three days later the signing of Tevez, a former Manchester City striker, from Argentine club Boca Juniors for $11 million over two-years. With CSL's winter transfer window open until Feb 28, more expensive signings are expected. Some established overseas professional sports leagues, such as the National Basketball Association, have long used salary caps to keep the investment of each team within a reasonable range. However, it would be difficult for Chinese football to cap itself at the moment, despite good intentions, observers say. ""The sentiment is a positive thing, as the spending is clearly way out of control. It's a good thing that people in power look to try to control the spending,"" says Mark Dreyer, founder of the China Sports Insider website. ""The problem is that it's extremely hard to institute a cap to an existing league, and to get it right with the amount,"" he says, because the salary cap constantly changes in overseas leagues based on league income. ""To bring it into existing leagues, with players already fixed on multi-year contract, is very tricky,"" Dreyer says. Tan Jianxiang, a sports sociology expert at South China Normal University, says clubs could still bypass the mandatory ceiling by compensating their star players in the name of training or traffic subsidies. ""The administration should focus more on making policies to inspire more investment in youth development, rather than dictating the financial operation of the league,"" he says. The administration also said in its Jan 5 statement that the CSL should allocate funding from its annual revenues to support the development of reserve teams and youth leagues. sunxiaochen@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page14)", -450,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941594.htm,IN BRIEF (Page 12),,"- Vice-Premier Liu Yandong (right) interacts with winners of the International Science and Technology Cooperation Award and their families after an annual ceremony to honor distinguished scientists and research achievements in Beijing on Jan 9. Zhou Weihai / For China Daily Xi's book sets distribution record More than 6.2 million copies of President Xi Jinping's book - Xi Jinping: The Governance of China - have been distributed worldwide since its debut two years ago, said Jiang Jianguo, minister of the State Council Information Office, on Jan 9. It was a distribution record, surpassing all other Chinese leaders' works since reform and opening-up was undertaken in the late 1970s, Jiang said. A book exhibition, which will last one month, was launched a day before the Ministry of Foreign Affairs announced Xi's visit to Switzerland from Jan 15 to 18. Ex-senior judge admits taking bribes Xi Xiaoming, former vice-president of the Supreme People's Court, pleaded guilty on Jan 10, during a hearing in Tianjin, to taking more than 114 million yuan ($16.5 million; 15.6 million euros; 13.5 million) in bribes. He was charged by prosecutors with using his position at the court to provide conveniences for individuals or entities in the handling of cases and the public listing of companies, the Second Intermediate People's Court said in an online statement. Traffic gets worse, but also better One-third of China's 100 largest cities faced worsening traffic congestion in 2016, according to a survey by AutoNavi Software Co. Beijing lost its 2015 position as the country's most congested city; it was replaced by Jinan, followed by Harbin, capital of Heilongjiang province. In many cases, more cars were to blame. In the 32 cities where traffic worsened, it took almost twice as long to reach a destination during rush hours - from 7 to 9 am and 5 to 7 pm - than it took at off-peak hours, the company said. Traffic in 36 cities was unchanged from the previous year, while 32 cities improved, the report said. Anti-graft agencies to be realigned China's four-year anti-corruption fight will produce a new institution - a supervisory commission - to integrate separate and less effective corruption control authorities. Three provincial-level supervisory commissions are being assembled as a test in Beijing, Shanxi and Zhejiang provinces following approval by the Standing Committee of the National People's Congress in December. Whether the program will be extended is uncertain, but the three test commissions are expected to be ready by the end of March, according to the Central Commission for Discipline Inspection. Commissions at city and county levels in the three jurisdictions will be established by the end of June, it said. Regional equity rules enhanced China is enhancing regulations for the regional equities market to boost its role in diversifying financing channels for the country's micro, small and medium-sized businesses and to encourage private investment. Updated regulations were approved on Jan 11 at a State Council executive meeting presided over by Premier Li Keqiang. The new regulations make clear the need for the regional equity market as a financing channel for local small businesses, and they provide more specific requirements for market operators and investors. The regional equity market offers financing flexibility for small businesses and technological innovation. Work begins on Tibet observatory Construction began this month on an observatory in Southwest China that will look for waves in space created by the Big Bang. The observatory is being built on a plateau 5,000 meters above sea level in the Tibet autonomous region's Ali district, which has been identified as one of the best places in the Northern Hemisphere to observe primordial gravitational waves. It is expected to be finished in five years. Gravitational waves, predicted by Albert Einstein in 1915 as part of his general theory of relativity, are generated when celestial bodies collide. Code of conduct for sea takes shape China confirmed on Jan 11 that it will complete a framework with Southeast Asian nations by the middle of the year for a code of conduct governing the South China Sea. Negotiation on the code has entered an important phase, Vice-Foreign Minister Liu Zhenmin said at a news conference at which a white paper was released on China's Asia-Pacific security cooperation and policy. Liu added that heavier work will come after the draft is completed. Fireworks outlets reduced for festival Beijing will reduce sales of fireworks during Spring Festival by cutting the number of retail outlets, authorities said on Jan 11. Fireworks will be sold at 511 outlets, down 29 percent from last year, according to authorities. Sales will be allowed from Jan 22 to Feb 1, authorities said. If orange or red alerts are issued for heavy air pollution, delivery and sales of fireworks will be suspended. Medical reform plan issued The State Council issued a plan on Jan 9 for medical reform during the 13th Five-Year Plan period (2016-20). Signed and approved by Premier Li Keqiang, the plan addresses diagnosis and treatment systems, hospital administration, medical security, medical supplies and a regulatory system. A multitiered diagnosis and treatment system commensurate with Chinese conditions should be in place by 2020. Yao Ming to co-lead CBA election group Retired basketball star Yao Ming's pivotal role in the game's professional reform in China grew on Jan 9 with his involvement in the upcoming election of the new Chinese Basketball Association leadership. Yao, a former NBA All-Star, was named on Jan 9 the co-head of a preparatory group for the general election of the CBA, which is scheduled for March, the CBA said in a statement. According to a report in Basketball Pioneers newspaper on Jan 2, the General Administration of Sport of China, the nation's sports regulator, made 10 proposals during an internal meeting on basketball's future development, two of which involved Yao. The first called for discussion of Yao becoming the new chairman, and the second reportedly was to invite Yao to be head coach of the national men's team. Endangered birds spotted in Wenzhou Fifteen Chinese mergansers, an endangered bird species under state Class 1 protection, were spotted in Wenzhou, a bird protection association said on Jan 11. The species can be traced back 10 million years. There are only about 1,000 of the birds worldwide. 'Toilet revolution' comes to Xi'an Xi'an, Shaanxi province - home to the famed Terracotta Warriors - has created ""toilet chiefs"" and a leading group to steer public restroom upgrades. Neighborhood office employees will be tasked with regularly checking facilities, according to the city's tourism administration. If a restroom at a tourism spot or attraction does not make the grade, the officials responsible for sanitation, including those at the district level, will fail their annual work assessment, according to Zhang Yongke, director of the administration. Ministry: Textbooks should be revised The Ministry of Education urged education departments across the country to revise textbooks for primary and secondary schools by extending the official period of the war from eight to 14 years. In previous textbooks, the Chinese People's War of Resistance Against Japanese Aggression lasted for eight years beginning on July 7, 1937, when Japanese troops bombed Lugou Bridge and Wanping county in southwest Beijing; and it ending on Aug 15, 1945, when Japan declared its unconditional surrender. In the revised version, the start of the war would be Sept 18, 1931, when Japanese troops blew up a section of railway in Shenyang, Liaoning province, and attacked the Chinese garrison quartered in the city - marking the beginning of its occupation of China's northeastern region. Beijing's subway going full bore Two more new lines will connect with the massive matrix of Beijing subway construction projects in 2017, adding to the 20 projects already in progress, officials announced on Jan 11. Line 28, also known as the CBD Line, will run through eight stations under Beijing's central business district, as well as the Beijing East Railway Station in Chaoyang district. The Yanfang Branch Line connects Zhoukoudian, the site of the Peking Man Relics Site, to the city-center-bound Yanfang main line, which is expected to open this year. The two new lines are expected to open no later than 2021. Organs to have airline priority Donated organs will have priority when it comes to boarding airplanes at all civil airports in China, according to a regulation released by the Civil Aviation Administration of China on Jan 11. Medical staff transporting donated organs should apply to an airline at least four hours before departure, if possible, the regulation says. If they fail to apply in advance or fail to arrive at an airport on time, airlines should carry out emergency plans and arrange priority passage for them so they can complete security checks and boarding procedures as quickly as possible, it says. New PLA Navy ship unveiled The People's Liberation Army Navy has commissioned a new reconnaissance ship, a PLA Navy media outlet reported on Jan 11 in a rare move that also made public the composition of the nation's electronic intelligence fleet. The CNS Kaiyangxing, or Mizar, with hull code 856, was delivered to a combat support flotilla of the North Sea Fleet on Jan 10 in Qingdao, Shandong province, the report by Modern Navy said. The Kaiyangxing is capable of all-weather, round-the-clock reconnaissance on multiple targets, the report said, adding that the ship is so sophisticated that only a few other countries, such as the United States and Russia, are capable of matching it. National tobacco law has positive effect It is estimated that about 10 percent of the population of China - the world's biggest tobacco consuming country, with more than 300 million smokers - now enjoy legal protection against secondhand smoke as a result of tobacco control regulations, according to a recent report. The report - A Civil Society Perspective on Tobacco Control in China 2016 - was published on Jan 10 by the ThinkTank Research Center for Health Development, one of the country's most outspoken NGOs committed to tobacco control. To date, only three Chinese cities - Beijing, Shanghai and Shenzhen - have introduced smoking bans in public places, while some smaller cities have local laws on tobacco control. More ethanol from corn encouraged China will further encourage the use of corn to make ethanol this year as part of an effort to reduce its huge grain stocks. Authorities are also considering adjustments to the floor prices for wheat and rice this year. Xu Shaoshi, head of the National Development and Reform Commission, told an annual work conference on grain recently that the commission will allow a moderate increase in corn-based ethanol and expand its use in other areas to help absorb corn stocks. Instead of subsidizing storage facilities, it is better to use the corn, he said. Rankings to aid career prospects A reform of the ranking system for Chinese and foreign professionals, to be launched within three years, is expected to boost the career prospects of millions by removing outdated requirements. Professionals across most industries are currently placed in one of three categories - junior, midlevel or senior - which limits their opportunities for promotion. The reform will see a greater emphasis on ethics, social contributions and innovation, the general offices of the Communist Party of China Central Committee and the State Council said in a notice. More than 55 million Chinese and foreign professionals will be affected, it said. Guideline issued for disaster relief The central government has issued a guideline on disaster prevention and relief to upgrade the country's ability to cope with natural disasters. The document, released on Jan 10, said greater efforts should be made to balance the relationship between humans and nature, and to properly handle the relationship between socioeconomic growth and disaster prevention and relief. Efforts aim to prevent spread of avian flu China's health authority has called for more efforts to prevent and control the spread of the H7N9 avian flu virus. The National Health and Family Planning Commission made the statement on the heels of reports that people had been infected with H7N9 in Jiangxi and Hunan provinces. 1,315 firms in Shanxi fined for pollution A total of 1,315 companies have been punished after a three-month campaign in Shanxi province, which has experienced some of the worst smog in China this winter. The campaign started in mid-December, according to the provincial Environmental Protection Department. Fines totaling 21.5 million yuan ($3.1 million; 3 million euros; 2.6 million) have been meted out, and 33 people have been punished. Students detained over muggings Fifteen middle school student were held in criminal detention in Beijing on suspicion of carrying out a series of muggings in early December in the Sanlitun area, a popular commercial district in the capital's downtown area. Police said the gang operated late at night and targeted multiple victims in the district, which is known for its bars and shopping centers. All of the suspects study at a nearby middle school. The youngest is 13, the police said. Flight delays still a pressing issue The punctuality rate of China's major airports is still far from satisfactory, according to a recent report published by local aviation statistics company VariFlight.Although the average punctuality rate of the surveyed airports rose 7 percent year-on-year to 70.4 percent in 2016, the average delay was 33 minutes. July saw the lowest punctuality rate of 62.3 percent, with delays during that month averaging 42 minutes. - Head above water: An archaeologist investigates in Hongmen Reservoir in Fuzhou, Jiangxi province, on Jan 8. The Buddha statue was first noticed at the end of last year when a hydropower gate renovation project lowered water levels in the reservoir by more than 10 meters. Judging from the design of the Buddha's head, the statue was carved during the Ming Dynasty (1368-1644), according to archaeologists. Wan Xiang / Xinhua - Washing up for the Spring Festival rush: Workers clean train cars near Beijing Railway Station on Jan 11 to prepare for the busy Spring Festival transportation season from Jan 13 to Feb 21. The capital is expected to handle 31.5 million passenger trips by railway in the festival rush this year, according to the Beijing Railway Bureau. Jiang Dong / China Daily (China Daily European Weekly 01/13/2017 page12)", -451,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941593.htm,Quotable,,"It should have been done earlier. The July 7 Incident in 1937 was the beginning of China's nationwide full-scale war against the Japanese invasion, but the fight of regional resistance actually began much earlier in 1931. That part of history, from 1931 to 1937, of people and garrison soldiers in Northeast China fighting against Japanese aggressors despite struggle and sacrifice, had been neglected for a long time. It's time to teach younger generations the full history."" Xue Gang, a Beijing-based volunteer researcher who specializes in Chinese World War II history, applauds the revision of textbooks on the length of the country's War of Resistance Against Japanese Aggression for better educating younger generations. ""Jack and I are going to do some great things. ... We had a great meeting. (Ma is) a great, great entrepreneur, one of the best in the world, and he loves this country, and he loves China."" Donald Trump, US president-elect, said on Jan 9, after the meeting with Alibaba Executive Chairman Jack Ma at Trump Tower in New York. ""The Taiwan Straits are an international waterway shared by the mainland and Taiwan, so it is normal for CNS Liaoning to pass through in training. It won't affect cross-Straits relations."" Liu Zhenmin, vice-foreign minister, said on Jan 11. The CNS Liaoning carrier and its five escort vessels, returning from drills in the South China Sea, sailed north and entered the Taiwan Straits on the morning of Jan 11. (China Daily European Weekly 01/13/2017 page12)", -452,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941592.htm,It's common sense in any language,,"The world is scrambling to learn English - but that's not necessarily a good thing for native speakers We used to have a saying in the Anglosphere during the Cold War 70s that optimists learned Russian while pessimists learned Chinese. It was a knowing, if flippant, expression of a contrary view that the Soviet Union was not the West's biggest challenger. Ultimately China would re-emerge as the dominant world power. That seemed a ludicrously distant proposition at a time when China was emerging from the trials of the ""cultural revolution"" (1966-76) and US president Richard Nixon had only just initiated his pivot to Beijing. Then came the start of a four-decade era in China of ""reform and opening -up"", and the rest, as they say, is history. Soviet power crumbled, the US emerged as the lone superpower and China continued on an economic long march that is seeing it challenge the Americans in the present decade for the title of world's largest economy. So were all those optimistic Anglophones who learned Russian wasting their time? Are all those pessimists who learned Chinese poised to reap the benefits? The evidence is that most of the Anglosphere learned neither and remained stubbornly monolingual, while the rest of the world was busy learning English. English is now the undisputed language of international exchange. French, which once dominated diplomacy, has played a diminishing role. Around the world English is the lingua franca of millions of non-native speakers. Business deals and treaties are negotiated via the medium of what has become the No 1 world language. That may represent some kind of triumph for the Anglosphere, but it is scarcely a personal victory for individual Americans, Britons or other Anglophones. They are less and less likely to speak another language. An official 2013 British Council report revealed an ""alarming shortage"" of people able to speak the 10 languages vital to the country's future prosperity and global standing. Mandarin figured prominently at No 4 on the British Council list. Despite that warning, subsequent evidence shows that language learning has declined further in British schools. A 2015 report said British teachers found attracting pupils to study languages after the age of 16 was a ""challenge"". One small consolation was a ""modest increase"" - from a low base - in the number of schools offering Mandarin, a language ""recognized as crucial to the UK's long-term competitiveness"". In the US, the situation is even worse. A 2015 survey showed that budget cuts, low enrollments and teacher shortages meant Americans were falling behind the rest of the world. It was revealed that less than 1 percent of American adults were proficient in a foreign language that they studied at school, in an era when one in five American jobs are tied to international trade. Sadly, a largely monolingual Anglosphere can probably continue to thrive in a globalized world despite the dire warnings of the educationalists. Now that everyone else seems to speak English, it may be tempting to ask, ""what's the problem"". The problem is perhaps that learning a language also means learning a culture and learning a different way of thinking. It can also open up many possibilities that have nothing to do with business deals or international politics - access to culture, literature, personal friendships across borders. It is not too farfetched to theorize that the insularity so recently displayed by voters in Britain and the US might have at least some connection to the language issue. It has never been easier than now to learn a language through a range of online resources, many of them free. They even say it is good for your brain. Studies say bilingualism can delay the onset of dementia. So, as you start out on your New Year's resolutions, forget the gym membership (you know you won't last more than a month) and learn a language instead. Haoyun! Good luck! The writer is a senior editorial consultant for China Daily UK. (China Daily European Weekly 01/13/2017 page11)", -453,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941591.htm,"Pandas are cute, but spare a thought for red cousin",,"If giant pandas had a cuteness rating, they'd be off the chart. What's not to like about a cuddly black-and-white bundle of fur that acts up for the camera every time it snows? China has made Herculean efforts to protect what is, to all intents and purposes, a national symbol. And there's good news, too, for all us pandaphiles. The 2014 Chinese census showed there were 1,835 pandas living in the wild in their natural bamboo forest habitat in southwest China - up from the 2004 census, which listed 1,600 wild pandas. And thanks to a 30-year conservation effort by the Chinese authorities, there are now about 300 giant pandas in captivity, most in Chinese conservation areas and zoos but about 50 in zoos worldwide, on loan from China and under strict supervision. With, of course, a steady supply of bamboo. But what about their distant cousin, the red panda? Actually, scientists now say they are not part of the same genus, although they share the same habitat and love the same food - succulent bamboo stalks. In my book, red pandas are also well up there on the cuteness scale, so let's take a closer look. Smaller than his so-called cousin, the red panda (xiaoxiongmao in Chinese) looks more like a cross between a small cat and a bear, often with red fur and vivid white markings around the eyes and muzzle, as well as a distinctive bushy ringed tail. They are also found in Southwest China, and - like the giant panda - are an endangered species, although the giant panda has recently been upgraded to the lesser level of vulnerable by the International Union for the Conservation of Nature, the international body for species protection. But the red panda is also found in parts of Tibet and Nepal. It's a solitary creature that also likes bamboo. Estimates of the wild population are difficult, but experts reckon there are about 10,000 of the little critters out there. The latest statistics show about 800 living happily in captivity. China's conservation efforts also extend to the red panda, with over 40 percent of its natural habitat in the country's southwest classified as protected area. Hunting and trapping are strictly forbidden. So why am I using my column as a pulpit to preach about pandas, red and giant? I think it's because, like many people, I've become acutely aware recently that for some species, time is running out. No one who has seen a tiger at a zoo can fail to be awed by the sheer power of what is, after all, a very sophisticated killing machine. Yet tigers are under threat. The Zoological Society of London, with which China Daily has worked closely in the past, is focusing on preserving various species of tigers worldwide. These magnificent beasts are constantly under threat - there are those who still believe its skin, claws, teeth and bones are essential ingredients of traditional Asian medicine. You'd better sit down for this factoid. In past decades 95 percent - yes, 95 percent - of the world's tiger population has disappeared. In Indonesia, ZSL is supporting local wildlife rangers to protect the remaining 300 or so Sumatran tigers. There is hope - in 2010, worldwide tiger numbers hit an all-time low of 3,200 animals in the wild. Now, for the first time in more than a century, a global census showed that the number had risen to 3,890 animals. So whether it's a panda, giant or red, or a tiger, or an elephant - in fact anything that makes this planet worth living on - just say yes to conservation. We won't regret it. The author is managing editor of China Daily European Bureau. Contact the writer at chris@mail.chinadailyuk.com (China Daily European Weekly 01/13/2017 page11)", -454,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941590.htm,2017 bodes well for Chinese takeovers,,"New approach sees buyers opting for long-term brand enhancement rather than an overeager grab for profits Now that we have entered 2017 it may be easier to review dispassionately the business year behind, and to look ahead. In doing so, a more pragmatic view goes beyond the much-hyped macro indicators of gross domestic product and the consumer price index. Most significant throughout 2016 was the number and size of foreign takeovers by Chinese companies. The total value of Chinese mergers and acquisitions of foreign companies reached a record $247.2 billion (234.3 billion euros; 201.5 billion) in 2016. If this figure is not staggering enough, then how about the year-on-year percentage increase, which stands at an amazing 142 percent. Before discussing key deals that took place last year and then looking ahead at what to expect throughout 2017, the changing nature of these takeovers needs highlighting. Takeovers involving raw material purchases and other supplies that are needed to fuel factory production now represent a far smaller percentage of Chinese acquisition activity. The focus now is much more on consumer branding and the technological know-how needed to fuel domestic consumption. It is now estimated that this new approach, set to continue as China's economy continues its transition from low-cost production and exporting to domestic consumption of premium brands, accounts for approximately 50 percent of all Chinese company takeovers of foreign brands. Last year also highlighted major change in a variety of industries now targeted by Chinese companies in their foreign firm acquisition strategies. Even more significantly, last year witnessed the further emergence of privately owned Chinese companies planting a firm footprint on the international M&A scene. Going back only as far as 2013, Chinese takeover deals were heavily dominated by the state-owned sector, which typically went on the hunt for copper mines in Africa, iron ore producers in Australia and major players in the Canadian energy sector. Europe is now very much the focus of increasingly ambitious and entrepreneurial privately- owned Chinese enterprises, with recent acquisitions of French fashion houses, Italian football teams and UK luxury brands. From finance to food and fashion to football, the increasing variety of industries targeted has been more than matched by the increasing amounts invested in huge takeovers of foreign companies and their branded products by Chinese companies. Last year saw the largest takeover to date by a Chinese company of a foreign firm. In August, Chinese chemical giant ChemChina secured the acquisition of Swiss pesticide and seed producer Syngenta for a formidable 43 billion ($53 billion; 50 billion euros). The European focus for Chinese takeover targets last year also saw Tencent, part of the increasingly dominant Chinese internet sector, splash out almost $9 billion in July on Finnish mobile game development company Supercell, easily Tencent's largest foreign takeover so far. Acquisitions by Chinese firms across Europe last year totaled a whopping $76.5 billion, comfortably the largest merger and acquisition investment sum compared with the Americas and Asia. Companies from Western Europe, and Germany in particular, appear to stand out as the favored targets for takeover. Further examination of Chinese company merger and acquisition activity last year reveals a far more mature, professional approach in which takeover targets were screened with the utmost scrutiny before the launch of any takeover bid. Takeovers are also seen increasingly as partner brands - where considerable care is taken in post-acquisition integration. They are not simply public trophies. But will this Chinese company-led and European-focused M&A spree continue throughout 2017? In short, the answer is not only a resounding ""yes"", but even greater growth could take place. Here are some of the reasons behind what could be another record year for Chinese company takeovers: US President Trump. Despite huge uncertainty over the soon-to-be appointed president, it is clear that the US economy could become far less open for business with the outside world - Asia and China in particular. This could leave Europe, already the clearly favored target for overseas expansion by Chinese companies, an even more attractive place. Europe's attractiveness is further enhanced when the likely industry targets for Chinese companies are considered. Top among the most high-profile takeovers last year are fashion, football, finance and technology, and major Western European economies offer a rich supply of established global brands in each of these areas. For example, Europe boasts three of the four widely recognized fashion capitals in the world: London, Paris and Milan. Consequentially many of the top global fashion brands are European. Chinese investment in football clubs really took off last year. For example, Chinese consumer electronics retailer Suning bought a majority stake in Italian football giant Inter Milan in June last year for $307 million, and one of the biggest English football clubs, Aston Villa, also became Chinese owned. Further forays into the most-developed football leagues around the world is highly likely, and once again European football dominates. The English Premier League, the German Bundesliga and the French Ligue1, as well as the Italian Serie A and the Spanish La Liga, contain many of the most highly valued football clubs in the world. Europe's financial sector will also continue to prove attractive to potential Chinese investors. Takeovers in Europe's ailing banking sector are seen as far less politically sensitive than the US banking industry. Global technology brands, much-coveted by Chinese industry as a vital aid in their modernization efforts, can also be found in abundance across Europe. This goes some way to explaining the attractiveness of German industries as potential takeover targets. German companies and the German government continue to welcome investment from China, and Chinese companies appreciate just how much the adoption of the most advanced technologies in their industry will improve their competitiveness. Of course there are concerns that too much outbound investment may lead to government attempts to curb activities in order to protect the currency. But such concerns do not stand up to scrutiny. Further transition toward the adoption across Chinese industry of a high-investment, high-quality and premium branding business culture will not happen if any kind of currency reliance continues. It is, therefore, unlikely that currency concerns will lead to a limitation of overseas involvement by Chinese companies - especially in acquisition activity. So what should European businesses make of this inexorable influx of takeovers by Chinese companies and how might they actually benefit? Crucial for European business has been the changing approach toward takeover targets by Chinese firms and the post-acquisition process. In both case, partnerships and a long-term perspective appear to have usurped the previously overeager, short-term acquisitive attitude of Chinese companies. Chinese companies and their leaders are no longer trophy hunting when it comes to takeovers of European businesses and their brands. Instead, they increasingly see growth via foreign brand acquisition as part of a clear, sustainable growth strategy, where long-term market share and customer satisfaction trump without trouble any short-term financial objectives. Chinese companies, while keen to learn from their European takeover targets, also appear to accept that established global brands should be left as individual product brands with no or little public association between the brand and its new corporate owner. During 2017 and beyond, therefore, European brands could benefit substantially from Chinese corporate takeover investment, which - if last year's M&A activities are indicative of future activity - should be seen as much-needed fuel for brand building. The author is a visiting professor at the University of International Business and Economics in Beijing and a senior lecturer at Southampton University. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 01/13/2017 page10)", -455,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941579.htm,On the road again,,"Orchestra's European tour highlights traditional Chinese music for appreciative Western audiences Chinese conductor Hong Xia had her most memorable birthday in January last year when she led the Chinese Traditional Orchestra of the China National Opera & Dance Drama Theater in performances at the KKL in Lucerne, Switzerland, during the orchestra's European tour. At the end of rehearsals, Wu Jiatong, CEO of Wu Promotion, the private promoter in China that organized the 2016 tour, stepped onto the stage with cake and flowers, wishing Hong a happy birthday and congratulating the orchestra. ""I totally forgot my birthday,"" Hong recalls. ""When Wu walked to me, I thought he was going to give a short speech. I was really surprised."" From Left: Musicians from Chinese Traditional Orchestra of the China National Opera & Dance Drama Theater, and Swiss audience, at the Culture and Convention Centre Lucerne in Switzerland. Wu Jiatong (first left), CEO of Wu Promotion; Remy Pagani (second left), mayor of the City of Geneva; Lorella Bertani (center, in gray suit), president of the Board of the Grand Theatre de Geneve, with representitives from the Chinese orchestra. Photos Provided to China Daily What made Hong even more excited was that the KKL - or Culture and Convention Centre Lucerne - was the same venue where the late conductor Claudio Abbado (1933-2014) gave his final concerts. ""Abbado was one of my favorite conductors in the world, and I was honored to perform there,"" says Hong, a 1982 graduate of Shenyang Conservatory of Music. The concert turned out to be a great success, with a full house of more than 2,000 giving the orchestra a lengthy ovation. On Jan 27, Hong will lead the musicians in a performance at the KKL, again as part of a new European tour, which will kick off on Jan 16 in Budapest, Hungary. After KKL, they will travel to Erl, Austria, on Jan 29. ""I thought the main audience for a traditional Chinese folk music concert would be overseas Chinese. I didn't expect that the majority of the audience would be Westerners,"" she says. ""Their warm feedback was very encouraging, and we are looking forward to our upcoming shows."" The 2017 program will feature well-known music pieces, including The Great Wall Capriccio (Erhu Concerto) by Chinese composer Liu Wenjin (1937-2013), and Lingering Snow on The Broken Bridge, composed by Liu Xijin, in which a solo flutist performs with the folk orchestra. The orchestra is one of four national Chinese folk music orchestras that will tour abroad during the upcoming Chinese Spring Festival period, with the support of Wu Promotion. Titled the Grand Chinese New Year Concert, the tour will involve more than 300 Chinese musicians from the China National Opera & Dance Drama Theater, the Guangdong National Orchestra of China, the Zhejiang Traditional Orchestra and the Shaanxi Broadcasting Chinese Orchestra. They will visit 27 cities in 14 countries, including Kazakhstan, Russia, Poland, Hungary, Austria, Germany, Switzerland, Finland and the United Kingdom. According to Wu, each performance will open with an introduction showing the uniqueness of traditional Chinese instruments. The idea is to enable Western audiences to better understand the music. ""The Grand Chinese New Year Concert is our oldest brand. It will celebrate its 20th anniversary next year,"" says Wu, who founded Wu Promotion with his father in 1991. The company currently produces more than 500 concerts and events annually in China and abroad. The company recently wrapped up a Cuba tour by the China Philharmonic Orchestra, which featured performances on Dec 15 and 16. Besides the Grand Chinese New Year Concert, one of the best-known projects is the annual Peking Opera Festival, which celebrated its eighth year in the Darwin Entertainment Centre, Australia, from Nov 29 to Dec 1. Wu recalls the first concert in the Vienna Musikverein in 1998 with the orchestra under the baton of conductor Chen Xieyang. ""Tickets sold out, and even the stairs in the venue were occupied by audience members. That was an unexpected success. Since then, we've made the Grand Chinese New Year Concert an annual event to display our traditional folk music to foreign audiences,"" says Wu, who was born in Beijing and pursued his music studies in Austria. So far, the grand concert has attracted about 300,000 concertgoers in some 20 countries. Presenting music with such instruments as the horse-headed fiddle from Inner Mongolia, as well as Cantonese melodies from the gaohu (a string instrument played with a bow), 13 Chinese folk music orchestras have performed as part of the project. The tour has stopped in Switzerland most frequently. In 2006, Wu Promotion brought China Traditional Orchestra Zhejiang to perform at the KKL in Lucerne under the baton of conductor Zhang Guoyong. It also visited five German cities and then went to Vienna, Amsterdam, Alexandria and Cairo. Wu says Swiss Television provided six hours of coverage for the event, including broadcasting the concert and presenting documentaries about traditional Chinese musicians and their instruments. More than 2,000 people saw the show in person, and even more were exposed via television to the great variety of sounds and musical instruments less known in the Western world. Since then, Wu Promotion has brought many Chinese orchestras and art troupes to perform in Switzerland. The company has also brought Swiss art troupes to China, including the Grand Theatre de Geneve Ballet Company, which toured China in April Wu Promotion has a three-year plan to bring the established Lucerne Festival to Shanghai from 2018 to 2020. The festival is a summer music event held annually in Switzerland. Founded in 1938, it is known for presenting famous orchestras, legendary conductors and celebrated soloists. During the 7th Peking Opera Festival, which was held in Geneva, Switzerland, last year, the president of Grand Theater de Geneva, Tobias Richter, discussed with Wu the idea of moving Opera des Nations to China after June 2018. Grand Theater de Geneva, built in 1876, is the largest opera house in the French-speaking area of Switzerland. Due to renovations that have been in progress for more than two years, a large wood-construction theater was purchased from France for temporary use. The temporary theater, which served as a venue for La Comedie-Francaise during its own renovation, was resettled in Geneva. The structure was expanded and revived under the name of Opera de Nations. The city of Geneva has agreed to gift the structure to China as a token of friendship in the long history of close ties between China and Geneva. ""This will be a historic event for both China and Switzerland, and it will serve as a cultural bond between the two countries,"" says Wu. ""I fully support this transfer of the Theatre des Nations from Geneva to Beijing, two cities already linked by a thriving partnership. It would represent one more excellent opportunity to increase and further deepen the relations between our two countries,"" says Jean-Jacques de Dardel, Swiss ambassador to China. ""This gift from Switzerland to China will allow many Swiss artists, musicians, orchestras, and dancers to perform for the Chinese public and strengthen the cultural ties between our two people in a structure representing the best in sustainable building methods. The fact that this theater could be rebuilt in Beijing, the capital city, is also a symbolic gesture illustrating the long lasting Sino-Swiss political relations."" chennan@chinadaily.com.cn ( China Daily European Weekly 01/13/2017 page5)", -456,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941578.htm,State visit to enhance ties with Switzerland,,"President Xi Jinping will be giving a ""strong boost"" to relations between China and Switzerland, which already enjoy considerable mutual trust, says Didier Burkhalter, head of the Federal Department of Foreign Affairs of Switzerland. ""I am confident that President Xi's state visit will be giving a strong boost to our relationship, which is already very good and promising,"" Burkhalter tells China Daily. Xi is to visit Switzerland from January 15-18 to deepen the relationship by announcing new measures to boost free trade, cultural exchanges, tourism and financial cooperation. Switzerland was the first Western nation to recognize the People's Republic of China in January 1950. ""And from that time, our relationship, which is a historic one, has become stronger and stronger with the mutual trust we have rendered,"" he says. Switzerland recognized China's market economy status in 2007. In July 2014, the two countries started to implement a free trade agreement and in April 2016, when former president of the Swiss Confederation Johann N. Schneider-Ammann visited China, both sides signed a ""partnership of innovation."" Federal Councillor Doris Leuthard took over from Schneider-Ammann as president of the Swiss Confederation from the beginning of this year. Leuthard also visited China in August last year. Burkhalter says currently both sides enjoy a ""very good and promising relationship"" with dialogue in various areas such as the economy, finance, environment, culture and human rights. He also says China and Switzerland have set examples on how to establish a win-win partnership by ironing out differences in their political and social systems. ""The Swiss side is willing to deepen cooperation with China to explore innovation and maintain the global free trade system,"" says Burkhalter. Burkhalter adds that his country will also work closely with China in various multilateral areas to become stabilizing factors of the increasingly complex global situation. fujing@chinadaily.com (China Daily European Weekly 01/13/2017 page2)", -457,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941577.htm,"By working together, we'll create better world",,"Responsible business leaders need to create environments where ideas can connect and people can collaborate We see a lot in the media currently about division - between people, between nations, between ideologies. And it's true, the world is moving in new, and sometimes unexpected, directions, and the existing order is being disrupted. But we must remember that the exchange of ideas can be a uniting force. Most of the world's real innovations come not from individuals laboring away in isolation, or even from ""eureka"" moments, but from working together. The theme of this year's annual meeting of the World Economic Forum, ""Responsible and Responsive Leadership"" highlights the vital role collaboration must play for us to best navigate the future. This year, British Telecommunications Plc will celebrate 180 years since the filing of the first patent for the five-needle electric telegraph - an innovation that laid the earliest foundations for today's connected world and which underpins the fourth industrial revolution. The inventors of that device, Charles Wheatstone (a scientist) and William Fothergill Cooke (an entrepreneur) worked together to turn a great idea into what eventually became a global industry. If I think about innovations from BT's history, almost all were collaborative efforts. From the first live TV transmission across the Atlantic - a collaboration between AT&T's Bell Labs and BT Labs - to the work we're doing today on the next generation of ultrafast broadband technologies, the biggest successes have resulted from experts in different fields working together to achieve a common goal. That's why companies today are increasingly taking a global ""open innovation"" approach. A major risk for large organizations, even ones such as ours who invest extensively in R&D is the ""not invented here"" syndrome - the chance that disruptive technologies will be ignored because they're not pioneered in your own labs. BT's innovation scouting teams and university partnerships in the UK, Silicon Valley, the MIT tech cluster, Abu Dhabi, China and other strategic locations around the world give us a global view, bringing the most innovative technologies into our business, wherever they originate. Collaboration between business and academia is a key component of ""open innovation"". As we're gathering for the annual meeting of the World Economic Forum, let's take a Swiss example of collaboration - CERN, with its 2,500 staff from 22 member states. The birthplace of the World Wide Web, CERN provides a global community of scientists with access to powerful facilities for experimentation, research, data processing and analysis. In 2013, the combination of these great minds and world-leading facilities in tunnels not far from Davos proved the existence of the Higgs boson, or ""God particle"", a fundamental building block of the universe. There's a significant contingent of British brains involved in CERN. Britain is a melting pot of science and industry and, in a post-Brexit world, the UK will need to capitalize on its world-leading universities and build an innovation-led economy that lays a powerful foundation for future growth. Helping universities to focus their research and enormous intellectual capital on areas that have the potential for the creation of world-leading intellectual property is a role that businesses like ours increasingly need to step up to. Sustainable future growth needs purposeful innovation that is socially and commercially relevant. At a global level we see how things like the Sustainable Development Goals and Paris Agreement need to apply a collaborative and open approach to transcend national and political boundaries and develop innovative solutions to the big global issues of our time - extreme poverty, inequality and climate change. And every day we see examples of the collective power of people using social media. When used responsibly, this can be a force for good, supporting people in need and improving the state of the world. The first social media platforms were born of a few creative and collaborative minds less than a decade ago. They have since been adopted by billions of people and continue to evolve in their form and function. In 2016, Major Tim Peake, Britain's first astronaut, used social media to bring the enormity of space closer to millions of schoolchildren in the UK and around the world. The International Space Station, which he visited, is one of the most ambitious international collaborations ever attempted and the most politically complex space exploration program ever undertaken. The largest space station ever constructed, it continues to be assembled in orbit and to date has been visited by astronauts of nearly 20 nationalities who make use of its research laboratories to improve our understanding of the world around us. So whether we look to the inky blackness of the sky or somewhere closer to home, we see time and again the power of the exchange of ideas and of working together across boundaries. Chance favors the connected mind; fortune favors the brave. In our modern world, responsive and responsible business leaders need to create environments where ideas can connect and people can collaborate. The author is the Chief Executive of BT Group. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 01/13/2017 page9)", -458,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941576.htm,A glimpse of the future,,"Amid global uncertainties - not least a new US presidency - China plots a steady course of continued progress and reform President Xi Jinping is set to make a case defending globalization at the World Economic Forum meeting in Davos. He will make clear the world's second-largest economy's commitment to being a key driver of world trade. The theme of the forum, which runs from Jan 17 to 20, is ""Responsive and Responsible Leadership"". Klaus Schwab, founder and executive chairman of the Geneva-based international organization, welcomed China's involvement. ""China is an emerging superpower, and we expect the country to play an increasingly active role as a responsive and responsible global leader,"" he says. ""Areas where we are already seeing this happen include catalyzing support for protecting the environment, acting as a champion for international trade and investment, supporting development and infrastructure finance and moving to develop and expand the global digital economy."" Despite increasing fears of protectionism, economic ties can continue to flourish between industrializing Asia and developed Europe. On China's part, everyone agrees that some big challenges remain - Trump provocations (or political distractions), domestic debt, or capital outflow to court potentially high returns from the overseas (mainly American) markets. The Central Economic Work Conference, held in Beijing in mid-December, was used to deal with exactly these challenges. China's top-level decision-makers hold such a conference each December to map out development strategies and targets for the next year. Key targets will not be revealed until they are proposed to the National People's Congress in early March, when targets become official. But enough information can be obtained by China business watchers from the communique of the Central Economic Work Conference, which is in effect a carefully-worded statement of all major strategies for the next year. Some overseas commentators said what they read from the communique was a general approach of putting stability first and reform second, leaving the impression that Beijing will never muster enough resolve, even though its leaders have made great strides in building a more solid power base through an unprecedented anti-corruption campaign over the past few years. China has to take necessary precautions in reform. A lot of time is needed because it is a completely different game for local officials, who began their careers when GDP, and almost nothing else, served as the measure of their performance. In 2017, stability is still important, if not even more so now that a change in the US administration and its possible China policy are bringing in an additional sense of uncertainty. But stability doesn't mean a standstill or no change. Reform won't stop, even if it can't proceed by leaps and bounds as it did in earlier days, such as when the special economic zones were just being launched in the 1980s. That was a time when China's per capita GDP was only around $300. Now, it is $8,200. What is in the nation's best interest is to progress with reform amid stability. Stability is guarantee for reform. The ongoing clean-government movement requires more than frequent reports and checks on officials' conduct in office and with public funds. They are also expected to carry out more economic tasks than just enlarging the local GDP. In the nation's 13th Five-Year Plan (2016-20), rigorous targets are set for social development and environmental protection. Some economic targets do not even require growth in numbers. One example is the task, assigned two years ago and yet to be completed, to slash industrial capacity - most noticeably the closure of some steel mills. It is aimed at helping the world's steelmakers and reducing pollution. As serious readers will realize, the communique said, 2017 will be a more demanding year for reform. Cutting excessive industrial capacity, inventory, borrowing, operational costs and whatever shortcomings exist in management and production is a task to be continued from 2016. New tasks abound. One area to watch is reform of the public-private partnership scheme, sometimes called the mixed-ownership scheme, in state-owned enterprises. It is something that China has been talking about for the last few years but, since being included in the top leaders' 60-point decision on reform in 2013, it has been put into practice in only a small number of pilot projects, as with all reform programs in their initial stage. There were rumors that an overall PPP program was being drawn up for some national-level large SOEs. But, as the Chinese like to say, conditions were still not quite right for introducing PPP nationwide. By contrast, in 2017, according to the communique, some ""concrete steps"" will be taken in industries ranging from power generation and grid, oil and gas, railways, airlines, telecommunications and defense systems. Although accomplishment of the whole PPP program is likely to take a few years, once implemented it will amount to a second remaking of the Chinese SOE system, after its first major reform in the early 1990s, overseen by the premier Zhu Rongji. Even amid the bold changes of Zhu's time, having private investment in defense companies was beyond anyone's imagination. Apart from the above-mentioned changes, progress is planned in many areas. In general, it features two things. One is the domestic and the other the legal side of economic reform, especially protection of the property rights of companies and private citizens. Thanks to all the efforts since the 2008 global crisis to maintain stability while seeking development, China has developed a more balanced economic system. Its focus has grown from chasing ever-faster growth to building a lasting institution. The Central Economic Work Conference also pledged new efforts, including: In agricultural reforms, to focus on the definition and protection of land rights; In industrial reforms, to focus on boosting innovation and helping small and medium-sized enterprises; In the real estate market, to restrict speculative investment in urban residential housing units; In the regional development strategy, to focus on the country's existing key urban belts; In the economic legal system, to strengthen the protection of property rights and redress wrong court rulings in this regard; In the financial system, to clarify fiscal interests and responsibilities between the central and local governments, while making regulation more effective in the financial market. Of course, the Central Economic Work Conference has painted a far-from-detailed picture of business in China in 2017. It is a framework, in which policies and the methods of their implementation can be adjusted according to conditions and possibilities. But the framework is expected to remain stable. It is especially important when, in all likelihood, China's international environment will deteriorate if the Trump administration acts as its boss repeatedly pledged during his election campaign. As some observers say, what the world will see from the Trump administration will not be a simple version of isolationism, but unilateralism. Other economies, as a result, may feel pressured to take initiatives by themselves instead of counting on the US market. More than ever before, China will have to depend on its own economy for growth. But just as Marcus Aurelius said, time is everyone's equal possession. While Trump plays his own unilateral game, other countries can also develop their games. Four years is not a short time, as long as there isn't a major disaster. It is enough for China to make changes, and come out stronger as a more resourceful business partner for all countries in the world. Contact the writers at edzhang@chinadaily.com.cn and andrewmoody@chinadaily.com.cn - An employee works at a factory in Qian'an, Hebei province. Companies in the city, most related to the steel industry, are trying to update their industrial chains and eliminate outdated capacity. Yang Shiyao / Xinhua - A robot at an exhibition in Zhenjiang, Jiangsu province. In industrial reforms, China focuses on boosting innovation and helping small and medium-sized enterprises. Li Chunpeng / Xinhua (China Daily European Weekly 01/13/2017 page1)", -459,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941575.htm,Federer has advantage with Chinese fans,,"As Roger Federer goes full-tilt in preparation for the 2017 Australian Open he exudes confidence in a strong comeback after missing half of last year's professional tennis season. His legion of Chinese fans can hardly wait. ""I really don't know how long he can play, but I hope he can at least finish the 2017 season, because a five-month wait is quite long for us,"" says Lin Shengjie, a diehard fan of the 17-time singles Grand Slam champion from Switzerland. To fully recover from surgery on his left knee, Federer withdrew from the 2016 season after Wimbledon, taking five months off for the first time in his 20-year career. Lin, 26, is among his countless avid fans who turn almost every tournament he plays in China into a home-court event - cheering hard between points in matches, and gathering at his hotel lobby and practice court for autographs and adulation. Federer hasn't opened a personal account on social media in China, but fans have voluntarily set up multiple online communities to share updates and to organize offline interactions with him once he makes himself available. What they ask in return is quite simple. ""I personally don't mind if he gets another Grand Slam or not. Just watching him play is an enormous pleasure,"" Lin says. Zhang Bendou, a veteran tennis writer at Titan Sports in China, attributes Federer's undisputed recognizability in China to the fact that his career upswing coincided with the general ascent of professional tennis in the country since the early 2000s. ""He is popular worldwide, but the Chinese market is of special significance for him. He is a superstar who ascended to career prime during the period when the game began to be promoted and appreciated here,"" says Zhang, who has followed professional tennis for more than a decade. ""Lots of fans here fell in love with the game watching him. That's a concrete emotional tie."" Lin, who ran an online community for Federer fans from 2007 to 2009, agrees. ""Federer was the best player when tennis was growing dramatically in China,"" she says. ""The past decade saw a boom in the tennis market here. Federer was always at the top. Good timing,"" she says. Since first playing in China at the 2002 Tennis Masters Cup in Shanghai, the year-end championship at the time, Federer has come to play in China 11 times, including in the 2008 Beijing Olympics. His flawless skills, elegant style and decent public image off the court soon captured the hearts of Chinese fans. Although not seen as an Olympic powerhouse, the Swiss athletes received boisterous cheers from the stands at the 2008 opening ceremony, mainly for Federer carrying the Swiss flag. ""Effortless yet deadly shots and smooth footwork - his tennis is beautiful to watch. You can't stay immune. You have to admire his game,"" Zhang says. As the darling of fans worldwide, Federer never hesitates to express his gratitude for the support from Chinese fans. ""It's great energy, I must say. It gives me unbelievable motivation. It inspires me to train hard and push further for that particular day, but also wanting to come back again next year, and again and again,"" the 35-year-old said during the 2013 Shanghai Masters. Along with Federer, fellow countrywoman Martina Hingis ranks among the best-known Swiss in China - also for accomplishments in tennis. Building her name on the pro tour ahead of Federer in the 1990s, Hingis still enjoys enduring popularity in China, as demonstrated by her appearance in Beijing to play doubles at the 2016 China Open. From the first-round of the Premier Mandatory women's event, Hingis' game with partner Coco Vandeweghe, who is virtually unknown in China, was celebrated by boisterous Chinese fans who chanted her name while holding posters adorned with her Chinese nickname ""Swiss princess"". ""I am already in the Hall of Fame, and I'm still playing in different tournaments, so they still have some memories of me playing, even if it was 10 or 15 years ago. It shows an awareness of the history of the game,"" says the 36-year-old, who has won five Grand Slam singles and 12 doubles titles since 1997. sunxiaochen@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page3)", -460,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941574.htm,Sino-Swiss links are in peak condition,,"Business links between China and Switzerland are expected to be further enriched by a bilateral free trade agreement and investment in sophisticated service businesses and high-tech manufacturing over the next decade, say officials and business leaders from both sides. Shen Danyang, spokesman for China's Ministry of Commerce, says that even though both the Chinese and Swiss economies have been affected by the global economic downturn, the degree of interdependence between the two remains stable in bilateral trade. Eager to enhance their earning abilities, China and Switzerland signed one of the highest-level and most comprehensive free trade agreements in July 2014, covering environmental issues, employment matters and intellectual property protection. Since the implementation of the China-Switzerland FTA, the volume of bilateral trade has turned around from dropping 27 percent year-on-year in 2014 to 1.7 percent growth to reach $44.26 billion (41.7 billion euros; 36.42) in 2015, data from the General Administration of Customs show. China mainly ships electrical equipment, metal products, furniture, organic chemicals and garments to Switzerland. Watches, industrial instruments and parts, medicine and healthcare products are the main products Switzerland exports to China. ""Both sides are currently working on the next stage of the agreement,"" says Shen. ""The China-Switzerland FTA will exert a more positive influence on the promotion of trade and investment promotion and benefit more companies in the two countries."" China's exports to Switzerland in particular, maintained a favorable momentum in the first half of this year, while bilateral trade volume amounted to 100.25 billion yuan ($14.42 billion). China's exports to Switzerland also reached 9.85 billion yuan, up 5.6 percent on a year-on-year basis during the six-month period. ""China will continue to export consumer goods in exchange for Switzerland's high-tech products such as electronic goods, industrial parts and medical equipment. Most of the imports are complementary. Therefore, it isn't direct competition,"" says Lin Shunjie, director-general of department of trade and investment promotion at the China Council for the Promotion of International Trade. Sonova Group, the world's largest hearing-care services provider by revenue, plans to enter more lower-tier Chinese cities and introduce its first 24-hour rechargeable hearing aid-the Phonak Audeo B-R-in China in 2017, as well as bringing its latest hearing aids for children and adults with severe hearing loss to the country in the future. ""Switzerland has always been viewed by Chinese consumers and the government as a country that develops high-tech products. Sonova has been investing in China for more than 10 years and we will continue to expand as we have in the past,"" says Albert Lim, senior vice-president of Sonova for the APAC region. ""Our latest project in China is an audiology training academy for the whole Asia-Pacific region. It has been established in our industrial campus in Suzhou,"" says Lim. The academy's goal is to develop certified professional courses to continually upgrade and expand the skills of industry professionals. ""Capable Chinese companies are also inclined to acquire Swiss companies to gain cutting-edge technology, especially in chemistry, agricultural products, biology and precision instruments,"" says He Jingtong, a professor of international trade at Nankai University in Tianjin. zhongnan@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page4)", -461,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941572.htm,Supply-side reform good recipe for fixing economy,,"Companies should improve competitiveness and branding to reduce reliance on expensive overseas brands China's economy has entered a new normal of slower economic growth, and it's encountering some challenges, including relatively low competitiveness of Chinese companies and overcapacity in some industrial sectors. The world economy, led by developed countries, has entered its own new normal phase in which it's difficult even for developed economies to recover. This has had an impact on China's exports. Protectionism is edging back into some countries, as multilateral cooperation - as envisioned by the Trans-Pacific Partnership, for example - is replaced with a more closed pattern of bilateral trade and investment mechanisms. To adapt to these new realities, the key for China is to revitalize its existing assets and make the best use of profitable incremental assets. The way forward includes the following: First, China needs more high-quality talent to replace low-cost labor Second, adopt a strategy of globalization as a primary driver of economic growth, replacing the old way of bringing in foreign investment Third, increase the efficiency of resource allocation, replacing the old model of using policy tools to support companies through price supports and tax subsidies. In this way, China could use the mechanisms of fair competition in the market to push Chinese companies to improve their own competitiveness and branding, which would naturally reduce their cost of buying overseas brands and technology at high prices, and could also effectively solve related problems. To realize that, the key is to deepen the supply-side structural reform in China. This includes six aspects: First, streamline administration and delegate power to lower levels, and mobilize the vitality of market players. When the market fails to function well, government should improve regulations and systems to ensure fair competition in the market and deal with fluctuations. Second, vigorously push forward the reform of state-owned enterprises to create an environment that encourages innovation and entrepreneurship. SOEs should say goodbye to the environment in which they could depend on low-cost labor, the spillover effect brought by foreign investment, price subsidies and the special competitive status the government has given them. Third, speed up the reform of China's fiscal and tax system, changing resource allocation, which feeds less into the real economy than into other sectors, such as finance. The government should consider coming up with property tax with the right timing, adjust tax rates of transactions involving financial assets, etc. For emerging companies and companies that are environmentally friendly, taxes could be reduced. Fourth, speed up the reform of China's financial system and banking system, to increase banks' and financial institutions' ability to serve the real economy, and to increase the ability to prevent financial crises. Fifth, make more contributions toward improving people's livelihoods, especially in the reform of the pension system, the healthcare system and the fair allocation of education resources. Sixth, during the structural reform, China needs to ensure that policies are compatible with reality and flexible in case they bring on unintended consequences. This requires China to have a good understanding of the complicated economic situation, both in China and globally. Industrial policies should avoid having all companies invest in the same industry or sector. Companies should have the flexibility to set a course in line with future economic development. At the micro level, market regulation should be loosened, while enhancing supervision, to create a market environment in which the fittest survive. Policies should also be targeted to improve investment in the markets and strengthen consumers' willingness to spend. China needs to have accurate industrial policies that encourage innovation and improve people's livelihoods, and also flexible policies that push forward the transformation and upgrading of companies. It needs carry out every reform policy in every link of supply-side reform, which is key to the quality and sustainability of the country's future economic development. Moreover, it should also be prepared for negative influences brought by black swan events that may take place in the world. The author is director of the Financial Research Center at Fudan University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/13/2017 page8)", -462,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941571.htm,Calm voice emerges from global turmoil,,"Academic believes Chinese president could be a stable influence at Davos as world events bring waves of uncertainty Rana Mitter believes President Xi Jinping could offer a voice for stability in an uncertain world at the World Economic Forum meeting in Davos. The director of the Dickson Poon University of Oxford China Centre says Xi's attendance at the summit - the first by a Chinese head of state - could signal the global order does not need to change, despite Donald Trump assuming office on Jan 20. ""I think (Xi's attendance) could be interpreted as a vote of confidence by China in the current global order, which in 2017, may be sorely needed. Clearly last year was a bruising year,"" he says. - Rana Mitter, director of the Dickson Poon University of Oxford China Centre, says President Xi Jinping's attendance at the World Economic Forum in Davos this year could signal that the global order does not need to change, despite Donald Trump assuming office on Jan 20. Nick J.B. Moore / For China Daily ""If you think of all the things that Davos stands for, it is about the maintenance of the liberal economic order and, broadly speaking, a quite progressive sort of social system too."" President Xi's decision to be at this year's summit comes after the attendance of Vice-President Li Yuanchao last year and Premier Li Keqiang in 2015. China has also held its own Summer Davos annually since 2007, under the auspices of the WEF, alternating between host cities Tianjin and Dalian. Mitter, who was speaking in the front room of his Oxford home, believes that, given China's engagement with Davos, Xi's keynote address to the forum is likely to carry extra significance. The Chinese president is set to reaffirm his commitment to globalization and free trade at the meeting. ""I think a lot of people will be listening very carefully to what he has to say. It is likely to make more of a splash this year than it would have done a year ago. The world 12 months ago was really very different in terms of what was happening and any likely expectations."" Davos has come to symbolize the global elite, bringing together politicians, heads of think tanks and large corporations, leading economists, academics and the media. It is this elite that has come under fire from populist movements that have led to the election of Donald Trump in the US and the UK's Brexit decision. Mitter, 47 and regarded as one of the leading China experts in the West, believes voters should not fool themselves into thinking they are being offered anything other than a different form of elite. ""What is mostly happening is that one elite is being replaced by another. Donald Trump has articulated the voices of many people who are clearly desperately unhappy with their current economic situation but it is not as if he, himself, is a horny-handed son of toil who has worked his way up through the coal mines."" ""An awful lot of the anti-elites, who are themselves elites of a different sort, are offering supposed solutions that have very little substance to them whatsoever."" One of the main discussion points at Davos is the risk of returning to a 1930s-style era of protectionism. President-elect Trump threatened during his election campaign to impose a 45 percent import tariff on Chinese goods ""This strikes me as highly unlikely in practice,"" says Mitter. ""China, famously, and the US are in the World Trade Organization, which exists precisely to try and prevent this sort of trade war escalating. The idea that the US and China can simply launch a trade war against each other without outside intervention does not reflect the reality of the situation."" ""There are an awful lot of other actors who would have something to say about this, including the European Union, Canada, Australia and the UK, once it leaves the EU of course."" Climate change is also likely to be high on the agenda at Davos, with the hard-won agreement drawn up at the 2015 Paris summit, which both China and the US ratified, seemingly under threat from the new US administration. ""He hasn't actually said he will abandon it. Like many other things, when you peruse the grammar very carefully, he has allowed himself more wriggle room than is immediately clear from the rhetoric,"" adds Mitter. ""It wouldn't actually be that easy to simply dump the climate change deal because, by doing so, he would be dumping every single one of America's allies, who have also signed up for it. He will be aware there will be a price to pay for that as well."" The future of the European Union will be another debating point at the Swiss ski resort. The UK is set to invoke Article 50 at the end of March, which will trigger the start of Brexit negotiations. The French have their general election in May, with Front National leader Marine Le Pen likely to get into the final round of voting and with a chance of winning the presidency. ""If Le Pen does win, that will put a bomb under the structures of the European Union. I think it would put an end to the great European project, at least in its current form,"" says Mitter. The academic says that even if conservative candidate Francois Fillon is elected in France and Angela Merkel is returned in Germany, the EU still faces major uphill challenges. ""It still has the euro crisis, it still has the Italian banks problem and it still has relatively sluggish growth. Its structural problems will not have been resolved."" Mitter, the son of academics originally from West Bengal, studied Chinese at Cambridge and was a Kennedy scholar at Harvard before embarking on an academic career. He has written a number of books on China, including the highly acclaimed China's War With Japan, 1937-45: The Struggle for Survival, which has been translated into Chinese. He combines being director of the Oxford University China Centre, which he is contracted to until 2019, with being a presenter of the BBC Radio 3 arts program Free Thinking. Mitter, who attended Davos last year as a speaker, believes another of the major talking points there will be the future of US foreign policy under the new administration. ""A pre-Trump America, or any other president, would be concerned about things such as security in Europe. I suspect there is at least some part of the Trump administration that really doesn't regard that as a first level American priority,"" he says. The future of trade within Asia itself will also be debated. The incoming president has already announced he will withdraw the US from the Trans-Pacific Partnership. Some have suggested that China may want to form its own alternative bloc, possibly built around RCEP (Regional Comprehensive Economic Partnership), an ASEAN (Association of Southeast Asian Nations) initiative. Mitter, however, believes that President Xi would much prefer to form a trading bloc that included the United States rather than going it alone ""I'm totally convinced by the idea that China would much rather have the US inside, whatever structure it is."" The academic maintains that Xi is likely to provide a reassuring presence at Davos in a world of change. Klaus Schwab, founder and executive chairman of the Geneva-based international organization, has already said the president will outline his country's evolving role in the new global structure. ""Chinese politics is probably likely to be much more predictable and stable during 2017, certainly compared to an untried US President, the start of Brexit negotiations and the structural problems of the European Union. All of these are the political unknowns that will begin to unfold over the next 12 months,"" says Mitter. andrewmoody@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page7)", -463,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941570.htm,"Factory of the future: Clean, high-tech",,"Get ready for a complete rethink of the workplace as innovation takes manufacturing to a new level Factories have long held a place in the popular imagination, not just as sources of employment and community prosperity, but also as hectic, noisy, grimy and polluting facilities where thousands of people are employed in largely low-skill jobs. Today's factories are changing. Breathtaking advances in technology, automation and globalization are transforming how and where manufacturers plan, construct, operate and integrate their factory networks. They are also ushering in significant operational, political and societal changes. From rust belt America to rural India and China, a chorus of voices is struggling to understand: How are technologies changing how we produce and distribute products? Are automation and free trade taking away valuable factory jobs? What type of skills will be required? How can communities prosper in the face of new production technologies? How and when should manufacturers upgrade their legacy equipment to embrace new technologies to boost yields and efficiency for greater profits or simply to remain competitive? These are the questions we've been pondering as we've worked as a Knowledge Partner on the World Economic Forum's Future of Production initiative. Businesses, governments and society alike must understand the technological dynamics at play and collaborate to ensure that tomorrow's factory towns prosper. What will the factory of the future look like? The answers will come from the factory floor, where new technologies like 3D printing, advanced robotics, the internet of things, artificial intelligence, wearable devices and virtual and augmented reality are converging to create new value, enabling the hyperefficient and flexible factory of the future. The value created is real: Large global producers have increased efficiency and reduced costs by up to 30 percent across all operations, driven by improvements in overall operating efficiency, lower inventory, energy and water costs and reduction in incidents involving safety. While the pace of change, and how these changes will propagate across networks, will differ by industry and country, the factory of the future is a more digital, more virtual and more resource-efficient space. It is an environment that is more connected - both in terms of information availability and machines speaking to and directing each other. Automation, simulation, visualization and analytics are deployed more widely to eliminate waste and increase efficiency in material yields, energy consumption, effort and time. In particular, factories of the future have three common overarching characteristics: Digital shop floor processes that are connected, automated and flexible. The internet of things and connectivity combined with analytics and artificial intelligence will improve asset efficiency, decrease downtime and unplanned maintenance, and allow manufacturers to uncover new sources of value in services. By employing digital twins, simulations and virtual reality, designers and operators will virtually immerse in interactive media to optimize design, production processes and material flows. New relationships between operators and machines. Technologies are changing the nature of work and skills required from operators. Robotics are automating most of the ""dull, dirty and dangerous"" tasks and, increasingly, collaborative robots are moving out of the cage to work side-by-side with operators. Augmented reality and wearables are also changing how operators train, assemble and make decisions on the shop floor; increasing flexibility, productivity and quality. Labor will actually remain cost-effective in many arenas, as technology allows workers to significantly improve their productivity even as overall numbers decline. Some human-cyber combinations will likely remain the dominant cog in factories for several years to come, certainly well into the coming decade. Structure, location, and scale of factories. The factory of the future is hyperefficient and sustainable, increasingly modularized with interchangeable lines that can be easily reconfigured for multiple production batches. Digital production technologies will allow software developers, product designers and production technicians to work in open, airy environments. As technology diminishes the role of low-cost labor and lowers the threshold of economies of scale, distributed manufacturing will become the norm, with producers augmenting their traditional production footprints with smaller and more flexible units located next to points of consumption, allowing them to meet local requirements with a more responsive supply chain. These more localized, more energy-efficient, lower-waste factories will contribute to advances in the circular economy. The author is a partner in the New York office of A.T. Kearney (www.atkearney.com), a global strategy and management consulting firm. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/13/2017 page9)", -464,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941569.htm,Xi expected to bring a steady voice to Davos,,"Fighting trade protectionism and anti-globalization, as well as boosting confidence in the Chinese economy, will be high on President Xi Jinping's agenda as he becomes the first top Chinese leader to attend and address the World Economic Forum annual meeting, observers say. Xi will pay a state visit to Switzerland on Jan 15 to 18 and attend the forum's annual meeting in Davos on Jan 17 alongside corporate and political leaders, Foreign Ministry spokesman Lu Kang said on Jan 10. The meeting was attended by Premier Li Keqiang in 2015 and by Vice-President Li Yuanchao last year. Xi will deliver a keynote speech when attending the meeting, Vice-Foreign Minister Li Baodong told a news briefing in Beijing. Xi's attendance has attracted great attention amid sluggish international trade and investment, the rise of protectionism and its impact upon the multilateral trade mechanism, the diplomat noted. By participating in the meeting, the Chinese leader aims to explain China's views and positions, and to offer a useful response ""to concerns of the international community about economic globalization"", Li said. China plans to analyze the deep-seated factors behind the problems of world economic growth and seek to find directions and pathways that point on the way out, Li added. Widespread political reshuffling across the globe has dampened investor confidence and added uncertainty to the already sluggish growth of the world economy since the economic crisis in 2008. World political and economic leaders also are anticipating Xi addressing the health of the world's second-largest economy in the wake of fluctuations in the yuan and Beijing's measures to rein in systematic financial risks, experts say. The vice-foreign minister said that Xi, during the meeting, will respond to the world's focus on hotspot issues of Chinese economy and boost understanding of Chinese economic policy. ""China is ready to embark on in-depth discussions with various parties to jointly tackle major global challenges and promote the healthy, stable development of the world economy,"" Li said. Ruan Zongze, vice-president of the China Institute of International Studies, says Xi's first trip to the Davos meeting is to address ""the widespread lack of confidence over the prospects for the world economy and the lack of viable solutions"". Events last year, including the United Kingdom's vote to leave the European Union, ""showcase the downward pressure of the global economy since the crisis in 2008"", and ""the gathering momentum against globalization and in favor of protectionism"", Ruan says. The world is expecting China to deliver a strong message against trade protectionism at the forum because the voices of smaller countries have not been enough of a counterbalance, Ruan adds. The forum will also be attended by such figures as British Prime Minister Theresa May and US Vice-President Joe Biden. Chen Fengying, a senior researcher on the world economy at China Institutes of Contemporary International Relations, says: ""We should make it clear (at the forum) that the existing international economic cooperative mechanisms should not be changed because of the change in state leaders."" Since the world economy and globalization are ""at a crossroad and a turning point"", it is time for Xi to demonstrate China's power and duty as a major developing country, Chen says. Xi's comments are also highly anticipated because China's annual central economic work conference recently wrapped up, Chen notes. ""China's economy is also at a crossroads. We could get either sustained growth or massive risks breaking out,"" Chen says. Huang Yiping, a member of the central bank monetary policy committee and an economist at Peking University, says China's current priorities include eliminating systematic financial risks and stabilizing economic growth. During his stay in Switzerland, Xi also will visit the offices of the World Health Organization, the United Nations' Geneva office and the International Olympic Committee. At the Palais des Nations, home of the United Nations office, Xi will deliver a keynote speech about building the Community of Shared Destiny for Mankind. zhangyunbi@chinadaily.com (China Daily European Weekly 01/13/2017 page1)", -465,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941568.htm,Investment helps promote global recovery,,"As voices of protectionism rise, Chinese companies maintain a steady hand with their mergers and acquisitions overseas The voices of nativism, protectionism and populism have become louder and stronger, making the global need for inclusive development more obvious as the pace on the road to recovery in recent years has been slow. Global trade and investment was weaker in 2016 than in the previous year. Acceleration of economic growth is the first step in promoting inclusive development. Then comes sharing the achievement. The best way to accelerate economic growth is to encourage global investment. Investment has become a key engine of recovery. Data from the United Nations Conference on Trade and Development says that global trade increased 2.7 percent year-on-year in 2015, with foreign direct investment increasing 38 percent to $1.7 trillion, meaning that investment has become a major growth force. However, global investment remained slow in 2016 - far less than the 2007 level of $2.28 trillion. Foreign direct investment in 2016 is expected to come in at $1.5 trillion or $1.6 trillion, or 10 to 15 percent below the 2015 level. In other words, the global economic recovery remains fragile at a low level of investment. All of the above means we need more investment. Two years ago, some economists in the West complained that China's economic slowdown dragged down the growth of the global economy and triggered a drop in bulk commodity prices. However, it ignored the demand created by the rapid growth of China's outbound foreign investment. In 2015, China's outbound FDI reached $145.7 billion, the second-largest total in the world, and outbound M&A accounted for nearly 40 percent of that. In 2016, outbound foreign direct investment will reach more than $170 billion, according to official data, and the value of Chinese corporate outbound M&A will top the world, according to Morning Whistle Group. Nowadays, complaints about Chinese economic growth have relaxed, even though it has slowed further. But European investment protectionalism against FDI by Chinese companies - as seen in the voices of critics, legislation and other measures - has been increasing gradually. Some M&A deals were stopped because of resistance from the European countries' governments or public opinion. Such criticisms and complaints are baseless, especially in the M&A field, because those deals will give both China and Western countries a better future. In fact, as some critics said, Chinese investors came for technology. Data from Morning Whistle show that 44 percent of M&A deals proposed by Chinese enterprises focused on gaining advanced technologies, 30 percent on gaining market channels and 10 percent on brand recognition. Chinese investors paid a premium for such M&As. In addition to making attractive offers, the Chinese investors also brought strategic resources - such as market opportunities in China - to their Western partners. The deals will increase jobs in both sides and bring win-win results. Some Western countries insisted that those deals, proposed at such high prices, were supported by subsidies from the Chinese government - low-interest loans, for example. They didn't seem to know that about 70 percent of Chinese M&A deals were proposed by private companies, that more than 70 percent of Chinese M&A deals were conducted by Chinese-listed companies or that the high purchase prices were actually supported by Chinese private companies' shareholders in a stock market whose average price-to-earnings ratio is more than double that of European companies. In other words, these deals deserved such values, in combination with Chinese stock market valuation, and actually provided a channel for Western investors or owners to share in the premium Chinese capital market. It wasn't subsidies. More Chinese companies tried to raise funds in overseas markets because the cost of financing is much lower than at home. Chinese enterprises hope they can build capital channels and financing platforms in overseas markets to reduce their financing costs and increase their investment and financing ability. Western complaints about the purchase prices offered by Chinese companies - which may be very high and thus attractive to the targets - come from competitors' jealousy, which will ultimately ruin the mutual benefits. It is not fair play. Chinese companies' investments in overseas markets will remain strong in 2017, boosted by technological upgrades, a decrease in the rate of domestic economic growth, the valuation gap between China and Western stocks, US Fed interest rate increases, etc., but growth will slow for both foreign and domestic entities. Companies will pay more attention to improvements in the global value chain when proposing overseas M&A deals, and investment in Belt and Road countries is encouraged and supported. The government didn't intend to prevent normal outbound FDI through tighter foreign exchange rules; rather, it aimed to improve sustainability and to prevent money laundering. The pressure on both the price and volume of Chinese foreign exchange reserves can be expected to further relax in 2018 - or earlier - depending on the US federal interest rate cycle. Structural adjustments will help. So we forecast that the driving forces of growth will remain steady. Europe was the first destination that abstracted Chinese investment. From 2014 to 2016, the United States, Britain, Australia, Germany, South Korea and Canada topped the list of M&A activity with Chinese companies. The companies will take Europe as their first investment target in 2017, according to Morning Whistle. We hope both sides can open their minds and cooperate well to share the China premium and other benefits. We also hope Europe will remain the first choice for Chinese corporate M&A activity. The recovery of the world economy needs inclusive, fair and green investment. We hope the investments from Chinese companies will bring more opportunities to the destination countries, and promote inclusive development. We also noticed that the Chinese government is trying to absorb more foreign investment and giving more freedom to local governments at the beginning of 2017. We appreciate the help of Western investment in promoting China's economic growth over the past 30 years. And we believe that Chinese investment overseas will bring a better future to the world. The author is a co-founder of Morning Whistle Group. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 01/13/2017 page8)", -466,2017/1/13,http://europe.chinadaily.com.cn/epaper/2017-01/13/content_27941567.htm,Xi to send signal against protectionism,,"Free trade with Switzerland to be reinforced as other countries seek China deals amid preparations for economic summit During his upcoming state visit to Switzerland, President Xi Jinping is expected to send a strong signal against rising global protectionism. During the visit, from Jan 15 to 18, Xi and his Swiss counterpart, Doris Leuthard, will announce a joint decision to scale up a free trade partnership that was launched in 2014, according to Chinese Ambassador to Switzerland Geng Wenbing. Increased action to facilitate two-way trade and investment tops Xi's agenda for the visit, Geng says. - Geng Wenbing, Chinese ambassador to Switzerland, says increased action to facilitate two-way trade and investment tops Xi Jinping's agenda for the visit. Fu Jing / China Daily ""Both sides will actively explore ways to upgrade the free trade agreement,"" he told China Daily. ""Leaders of both countries will join hands to send a strong signal against any form of global protectionism that blocks trade and investment flows."" In addition to beefing up the trade relationship, Geng says, both sides will announce new measures to boost cultural exchanges, tourism and financial cooperation. During the trip, Xi will deliver a keynote speech at the annul meeting of the World Economic Forum in Davos. He is scheduled to visit the Lausanne-based International Olympic Committee and the headquarters of the World Health Organization in Geneva. He will also speak at the United Nations Office in Geneva before wrapping up his first overseas tour of 2017. Geng says both sides are determined to set an example on free trade, which should be followed by the European Union and other global players to pave the way for faster growth of the global economy. The two countries' free trade agreement, which waives most tariffs on goods, took effect in July, 2014. Talks began in 2011 and the two sides sealed the deal in 2013. Talks with Norway are ongoing, but Iceland has already entered into a free trade agreement with China. The European Union, meanwhile, insists that it should conclude a bilateral investment agreement with China before the two sides start free trade talks, though some of its member states are eager to clinch a deal with China. Geng says more countries have shown interest in free trade talks with China lately, mainly because Switzerland has already benefited from the partnership through export growth. Official figures from the Swiss government showed that overall exports slowed in October and November last year, but export volume to China maintained double-digit year-on-year growth in the same period. Exports to China increased 11.5 percent year-on-year in November, while the rise in October was 24.1 percent. ""Such rosy results have led more countries to become interested in free trade talks with China, and some of them even asked me for the text of the agreement between China and Switzerland,"" Geng says. ""I am sure that every country that enters such a trade arrangement with China will become a winner."" Geng says China has been restructuring its investment and trade-led economy toward consumption and innovation, creating tremendous opportunities for imports. In December, the European Union, United States and Japan, the leading global economies, refused to fulfill a promise made 15 years ago when China joined the World Trade Organization to recognize China as an equal trade partner. But Switzerland joined dozens of WTO members in recognizing China's market economy status back in 2007. Apart from efforts to boost trade, the leaders will also upgrade their political relationship, Geng says. Switzerland was the first Western country to establish diplomatic relations with the People's Republic of China in 1950. In April, former president of the Swiss Confederation Johann N. Schneider-Ammann visited China. ""Within less than a year, President Xi is returning a state visit, and he is only visiting Switzerland during this tour, which indicates how much importance China has attached to the bilateral relationship,"" Geng says. fujing@chinadaily.com.cn (China Daily European Weekly 01/13/2017 page3)", -467,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876252.htm,Foreign links key to future success,,"Overseas partnerships offer lucrative and beneficial opportunities for both sides, says veteran consultant Many countries should look to China's successful record of attracting foreign investment and using it to help develop its economy, a veteran consultant says. Michael Enright, director of the Hong Kong-based strategy consultancy Enright, Scott & Associates, says there are some important lessons for other countries to learn from China. He was in Beijing recently launching his new book, Developing-China: the Remarkable Impact of Foreign Direct Investment, which demonstrates the enormous impact that FDI has on China. The first lesson for other countries to learn is that foreign investment can be a very powerful engine for development, Enright says. Michael Enright, at the launch ceremony for his new book in Beijing. Provided to China Daily Second is that using foreign investment as an engine of development can be managed, but a country has to develop not only capabilities in the workforce but also must develop the administrative and governmental capabilities to administer and manage a more advanced economy that includes foreign-invested enterprises. The book says that FDI accounts for only a bit over 2 percent of China's gross capital formation. But if the FDI and the operations of foreign investment enterprises and the ripple effects of the supply chains and employee spending are also counted, the impact is 33 percent of China's GDP. Enright thinks that estimate is still low. He said the spillover effect of foreign investment is uncountable. For example, its impact on Chinese companies through the transfer of technology, the adoption of modern management techniques, and the training of tens of thousands of Chinese professionals through corporate training and university programs based on a Western model. Foreign enterprises also help create distribution and supplier networks in China; help educate tens of thousands of professionals; give Chinese companies access into international markets (as foreign enterprises carry 75 percent of all of China's international cargo); bring in world-class environmental standards; and cooperate on social responsibility standards. Enright says that when China started its reform and opening up in the 1980s, its economy lagged behind many other countries. A smart thing China did rather than trying to reinvent all the business models and technologies to develop a more advanced economy by itself was to attract good ideas and good companies from around the world to China. The country has its own historical circumstances, and has recognized that to develop its economy, all the good ideas cannot come from one place. It really needs to tap into global ideas, global sources of capital and global expertise, Enright says. Moreover, China has enormous potential with its large population, as well as its skills and capabilities, he says. In Enright's view, China's use of foreign capital has been managed carefully, step by step, to absorb foreign investment without experiencing many of the potential downsides. Although there are some foreign companies that think China has not opened up enough, he says any country would open only as much as it is comfortable with. What most foreigners don't understand is that given China's unique history, from the late 1950s to late 1970s, included basically no foreign investment. So when it started to open up, it had to gradually create the necessary administrative, regulatory and legal frameworks to support it. But the more a country opens, the more investment and high-quality investment it can obtain, so China should be more confident and open to additional foreign investment, Enright says. While foreign investment benefits China, he says China has also brought many things to foreign investors. One of those has been the market. The stereotype outside China is that foreign companies come to China to make things with cheaper labor to send back overseas. That was true in the 1980s and maybe the first half of 1990s, he says. But foreign companies are now primarily in China to sell to China. Foreign companies sell far more in China than they export from China. Enright says that China did offer relatively inexpensive labor to the world in the early days of its opening-up, but that is changing. Increasingly, multinational companies are putting R&D facilities and their most advanced manufacturing facilities in China. In the old days they were looking for low-cost labor. Now they are looking for highly qualified labor, for skilled professionals, skilled scientists and that helps the companies, and it helps develop the Chinese economy as well, he says. Foreign companies in the past made their plans based on 10 percent annual GDP growth; now they have to adjust, he added. At the same time, Chinese companies have become more experienced and can better identify their markets and use high-class technology, which results in tougher competition in the domestic market. Those are two main mechanisms that will cause the multinationals to rethink, he says. Enright says China still has great potential, but many foreign companies haven't realized it yet. He took the Belt and Road Initiative as an example, as it will cover a large population in more than 60 countries. It is a massive opportunity, and the potential is not only China but also Southeast Asia, South Asia, Central Asia and Europe, because it proposes to build so much connecting infrastructure, he says. He says that the Chinese government has recognized that it is impossible for Chinese companies and Chinese financial institutions to do all the projects all by themselves, and certain technology and expertise will be required from foreign partnerships. In addition, many of the places along the Belt and Road are not places where Chinese companies have experience, but foreign companies do and that provides good opportunities for partnerships, too. But the key is: To partner successfully outside China, those companies also have to be partnering with the part that is inside China, Enright says. For China's Manufacturing 2025 strategy, if you look at the leading technologies behind advanced manufacturing, the complete factory of automation systems, the internet of things, machine-to-machine communication systems right now the leaders in many of the technologies are outside of China, he says. If China really wants to develop to be the world's leading advanced manufacturing center, a lot of cooperation with foreign companies would be good and good business for the foreign companies, he says. He says there is a great deal of confusion in the international community, because it is not clear what approach is best to get involved. There is also some fear that many initiatives might be exclusive to Chinese companies so it is best if China can work out the details soon. Enright says that as Chinese companies go international, there will be more need of mutual understanding over the next few years about what Chinese companies are allowed to do in foreign countries and what foreign companies are allowed to do in China. China became a major exporter, but with relatively few Chinese companies actually understanding the international market. And that is going to be one area in which working with foreign companies or allying with foreign companies is going to be critically important, he says. Certainly for the developing countries, capital, expertise and infrastructure investment from China could make major contribution to development. In the more advanced countries, Chinese investment is also contributing more to developing infrastructure, and it is creating need jobs. chenyingqun@chinadaily.com.cn ( China Daily European Weekly 01/06/2017 page32)", -468,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876247.htm,Roses have scent of money,,"Jewelry, perfume, fashion and accessories certainly fit the bill as luxury brands. But could fragrant flowers, like roses, be added to that category? Definitely, according to Pu Yi, founder and CEO of roseonly, a Beijing-based startup formed in 2013. ""Just like Tiffany in the US, and Mikimoto in Japan, roseonly is gradually becoming a new signature luxury brand embraced by the country's middle class. We want to become a homegrown Chinese luxury brand,"" says Pu. Such an aspiration may be sound ambitious but is it realistic? The company, which spells its name with a lower-case 'r', has had unprecedented success in China selling premium roses imported from Ecuador in South America to upwardly mobile, newly wealthy upper- middle-class consumers. Its bouquets are among the hottest gift choices for young Chinese. - A sales representative at roseonly arranges product samples at one of its outlets in Beijing. Feng Yongbin / China Daily Prices range from 999 yuan ($143; 138 euros; 117) for an 11-rose bunch to 9,999 yuan for a 99-rose bouquet. The startup expects the sales in 2016 via outlets in multiple cities and online stores to reach around 250 million yuan, up from 130 million yuan in 2015, 61 million yuan in 2014 and 14.6 million yuan in 2013. It expects sales to exceed 300 million yuan this year. Annual sales revenue has been surging, probably due to roseonly's unique packaging and marketing, which emphasizes not the imported roses themselves but a once-in-a-lifetime expression of love for one special person (who is, usually, the buyer's girlfriend, fiancee or wife). Information about buyers and bouquet recipients is stored in a database at the time of purchase. This information cannot be changed later. That means a customer can buy at roseonly only once - no repeat purchases by the same customer for a different recipient is allowed. This seemingly self-defeating strategy has paid off - the sales figures are proof. If more proof is needed, twice in recent months, roseonly witnessed sales surges. The latest was during the Christmas-New Year week. ""We've seen a 40 percent rise in sales during the Christmas season,"" Pu says. The earlier spike was around the Qixi festival, or the Chinese Valentine's Day, in August. ""If my boyfriend buys me an expensive roseonly bouquet, it contains more than a bunch of roses; it signals his loyalty and a reassuring promise,"" says Wang Qin, 23, a Beijing resident. Investors may have caught a whiff of potential profits in roses. Angel investors chipped in with funds two months after roseonly launched. Tencent, owner of the WeChat app, poured $10 million into the startup. In 2014, IDG capital and Accel Partners invested more than $10 million (9.6 million euros; 8.1 million), followed by 190 million yuan from Genesis Capital, Prosperity Investment and Echo Capital. All that money over the years has helped roseonly to open 28 outlets in Beijing, Shanghai and other first- and second-tier cities. It is the biggest flower vendor on Tmall, Alibaba's online marketplace. The florist is now valued at $100 million, according to TechinAsia. Not surprisingly, roseonly wants to go beyond the Chinese mainland. It plans to open shops in Malaysia, Hong Kong, Taiwan, Japan, South Korea and Singapore in the years to come. Pu describes the brand's target demographic as men and women between the ages 25 and 45, with stable incomes and an appreciation for high-quality goods and affordable luxuries. According to a report by McKinsey, generational change and the rising prosperity of inland cities will power consumption for years to come. By 2022, more than 75 percent of China's urban consumers will earn 60,000 yuan to 229,000 yuan a year, the McKinsey report says. ""There will be not only challenges but also plenty of opportunities for companies whose strategies reflect China's new constellation of rising incomes, shifting urban landscapes, and generational change,"" says Pu. To ride the trend, roseonly has launched new offerings such as bouquets of exotic flowers, which it bundles with jewelry pieces in exquisite gift packages. ""We will expand the business to the high-end gift market,"" says Pu. ""We've so far come up with many love-related jewelry gifts like bracelets, necklaces and earrings, and will cooperate more with some of the world's renowned designers and celebrities. ""The jewelry market has more potential than the flower market, and the gift market has even more."" Most of roseonly's jewelry gifts are designed to be rose-related, and target younger women and girls. The company also sells tailor-made gifts during peak seasons, such as a snowman necklace during Christmas and limited-edition designer jewelry associated with celebrities. (China Daily European Weekly 01/06/2017 page25)", -469,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876246.htm,Warning of tight times ahead for insurers,,"Analysts warned on Jan 2 that insurers' profit margins will be tighter this year, in an environment of low interest rates and increased regulation to contain financial risks. The China Insurance Regulatory Commission recently tightened its regulation of the ownership structure of the nation's insurers. The measure was adopted to safeguard the insurers' role in the capital market as long-term providers of protection, rather than short-term speculators. The regulator lowered the maximum stake in an insurer a single shareholder can own from 51 percent to 33 percent in recently released draft rules currently open to public discussion. The regulator also banned life insurers from opening new branches if short-term insurance policies account for more than 50 percent of their total premiums on a quarterly basis. ""Tighter regulation, together with the low interest rates, will further constrain the business growth of insurers. Bigger players will be less affected than smaller ones, which may need to adjust their strategy accordingly,"" says Wei Tao, an analyst at BOC International Holdings. Insurers' total premiums were expected to exceed 3 trillion yuan ($431.4 billion; 411.6 billion euros; 350.8 billion) in 2016, a 25 percent increase year-on-year, according to analysts' forecasts. The outstanding value of investment by insurance funds had already exceeded 13 trillion yuan as of November. Aggressive stake bidding by insurance funds in the stock market has caught the regulator's attention, amid serious concerns that this trend will result in greater volatility that could endanger the broader financial system. Shen Juan, an analyst at Huatai Securities, says in a research note that, given the tighter regulatory control, insurers are likely to rely more on sales of traditional long-term insurance products and adopt less aggressive investment strategies to manage their funds. The regulator's crackdown on high cash-value products will constrain the premium growth of life insurers this year, with insurers exposed to significant asset-liability duration mismatches facing a more acute challenge, according to credit ratings agency Fitch Ratings Inc. lixiang@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page26)", -470,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876245.htm,Weaker yuan is a double-edged sword,,"A weaker Chinese currency could help ease pressure on the country's exporters, but means higher investment costs for companies that intend to expand overseas, analysts said on Dec 29. Citing false bidding prices from the Bloomberg foreign exchange system, media reported a day ealier that the value of the onshore renminbi against the US dollar dropped below 7 yuan, sparking a fresh round of concerns over a potential acceleration in the currency's depreciation. The People's Bank of China, the central bank, immediately responded to the reports in a late-night statement, condemning them for being ""irresponsible"" and confirming that the exchange rate of the renminbi has remained stable at between 6.9500 to 6.9666. The overall expectation by analysts is that a weaker yuan could help boost export-oriented sectors such as commodities, textiles, shipping and chemicals. Yu Jianlong, secretary-general of the China Chamber of International Commerce, says the depreciation of the renminbi will enable companies to put their export volume on a firmer footing. But some argued that the effect on boosting exports could be limited, as the real exchange rate of the renminbi against a basket of currencies has not depreciated as much as the value against the dollar. Xiao Lisheng, a senior finance researcher at the Chinese Academy of Social Sciences, says that a weaker currency would mean greater risk-hedging costs for companies that plan to borrow dollar-denominated debt and seek to make outbound investments. ""The PBOC's prompt response highlighted the fragile market sentiment toward the value of the renminbi,"" Xiao says. ""The pressure will likely be greater next year (2017) for China's policymakers, as they are facing a tough option of either maintaining currency stability with tighter monetary policy or maintaining growth with a more accommodative policy."" The value of the Chinese currency has depreciated against the dollar by more than 7 percent this year, hitting a record low in eight years. Some economists believe that it is only a matter of time before the currency falls below 7 yuan per dollar given the tightening cycle of the US Federal Reserve and decreasing investment returns at home. ""The depreciation of the renminbi means greater costs for currency conversion,"" says Xie Delong, vice-general manager of Sichuan Dawn Machinery Co. Contact the writers through lixiang@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page28)", -471,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876244.htm,Quotable,,"CRC will work with both private and state-owned companies to form joint ventures to support mixed ownership reform, and will accelerate the pace of asset-backed securitization and equity financing in the railway sector."" Lu Dongfu, general manager of China Railway Corp, the world's biggest railway operator by rail length ""The current regulations increased the operating costs of P2P lending platforms. A large number of them will possibly vanish in the next two or three years. The platforms that demonstrated relatively high compliance with standards will be for sale, and those showing low compliance will be forced to close."" Deng Jianpeng, vice-president of the Chinese Internet Financial Innovation Research Institute ""We should not simply be a processor for overseas guitar companies. Development of our own brands has been a priority. The rising labor and production costs in the Pearl River Delta have made us less profitable. We need to build our own brands for sustainable development."" Danny Tsai, general manager of World Sound Music (Huizhou) Co, a guitar manufacturer (China Daily European Weekly 01/06/2017 page24)", -472,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876243.htm,IN BRIEF (Page 24),,"Tourists enjoy the lanterns in a traditional village in suburban Nanning, capital of the Guangxi Zhuang autonomous region, on Jan 2. The city's suburbs attracted lots of tourists during the New Year's holiday. Huang Xiaobang / Xinhua Sogou plans IPO offering up to $5b The head of China's third-biggest search engine Sogou says he expects his company to launch an initial public offering in the United States with a valuation as high as $5 billion. The money would be used to close the gap with mobile market leader Baidu Inc. Sogou, whose name means ""search dog"", plans to sell about 10 percent of its shares in an IPO that will probably be held this year, Chief Executive Officer Wang Xiaochuan said in an interview. The company, which is backed by social media giant Tencent Holdings and Sohu.com Inc, has not formally hired banks to run the listing. Sohu shares to a 10-month high on Jan 4. While Baidu remains the biggest provider across all platforms in China, it has been under siege after a scandal over medical advertising. Smaller rivals, including Sogou and Qihoo 360 Technology Co, are nipping at its heels and winning mobile users. Wang said he planned to use part of the IPO proceeds to improve search results. ANZ sells stake in Shanghai bank Australia & New Zealand Banking Corp sold its 20 percent stake in Shanghai Rural Commercial Bank for A$1.84 billion (1.3 billion euros; 1.1 billion), marking Chief Executive Officer Shayne Elliott's latest move to unwind an Asian expansion that has sapped profits. China COSCO Shipping Corp and Shanghai Sino-Poland Enterprise Management Development Corp bought 10 percent stakes in the Chinese bank, the Melbourne-based company said in a statement on Tuesday. The stake was valued at A$2 billion in ANZ's 2015 annual report. Alibaba pays more taxes in 2016 Alibaba and its financial branch paid a total of 23.8 billion yuan ($3.41 billion; 3.29 billion euros; 2.8 billion) in taxes in 2016, up 33 percent compared with 2015, the company said on Jan 3. According to Alibaba, the company led merchants operating on its platforms, upstream manufacturers and logistics companies to pay totaling at least 200 billion yuan taxes last year and creating more than 30 million jobs. The company has also catalyzed new businesses such as the outsourcing of customer service, product photography, quality testing, e-shop design, recruitment and training for e-commerce. There are over 45,000 such service providers on Alibaba's shopping platforms, Taobao and Tmall, the company said, adding that those providers registered 142-percent growth in income year-on-year as of Sept 30. China-Serbia visa-free entry starts Jan 15 Serbian Foreign Minister Ivica Dacic told a news conference on Dec 30 that the country's agreement with China for mutual visa-free tourism will take effect on Jan 15. He said all internal procedures have been completed. Dacic added that the visa-free regime will start 30 days after the two countries inform each other officially. He added that the Serbian government will continue to cancel the need for visas with as many countries as possible. According to earlier reports, the policy will recognize holders of ordinary passports of either country for stays of up to 30 days. Chinese steel pulls out of the red China's large and medium-sized steel mills reported profits of 33.15 billion yuan ($4.77 billion; 4.57 billion euros; 3.9 billion) in the first eleven months of 2016, according to the latest report of the China Iron and Steel Association. That compared with a loss of 52.91 billion yuan in the same period of 2015, CISA data showed. Of the 99 steel mills tracked by CISA, the average profit margin stood at 1.28 percent in the period, the CISA report says. China's manufacturing sector continues to expand, with the official manufacturing PMI, which surveys larger companies, standing at 51.4 in December, lower than the 51.7 in November but above the boom-bust line of 50 for the fifth straight month. The steel industry still has a long way to go to increase profit margins, said Li Xinchuang, CISA vice-president, adding that this year the industry will continue to cut excessive and outdated capacity. ( China Daily European Weekly 01/06/2017 page24)", -473,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876242.htm,Old electronics mean new opportunities for company,,"Aihuishou.com, one of China's online electronics recycling platforms, is ramping up its efforts to expand into smaller cities, pinning its hopes on the potentially huge market, company executives say. Late last month, the Shanghai-based startup raised 400 million yuan ($57.56 million; 55.3 million euros; 47 million) in Series-D fundraising, attracting support from heavyweight investors such as Cathay Capital, Fortune Capital, Tiantu Capital and JD.com Inc. Announcing the funding details, CEO Chen Xuefeng says his company will use a large proportion of the investment to further support two new business lines. One focuses on growth in smaller cities, by partnering with local recycling stores. The other is to encourage consumers to rent new smartphones from the platform instead of buying them. The company's president, Zheng Pujiang, outlined the geographical rollout. ""To date, Aihuishou has secured the market in first-tier and second-tier cities,"" he says. ""Third-tier and smaller cities will be our next strategic priority."" Since August, the group has established links with assorted partners in these markets. Aihuishou, established in 2011, recycles old electronics such as cellphones, laptops, cameras and assorted hardware. The platform then resells most of the used goods after cleaning and testing, and channels the low-value ones to professional recycling centers. To date, the platform has set up five operations centers and more than 200 recycling stores nationwide. In 2016, the average monthly revenue of Aihuishou exceeded 200 million yuan. It started turning a profit in September, the company said. It collected nearly 5 million cellphones last year, compared with fewer than 3 million in 2015, Industry data indicate future market potential. In the first 11 months last year, shipments of Chinese cellphones increased to 497 million, up 7.6 percent from the same period the previous year, according to figures from the Ministry of Industry and Information Technology. The fast-growing business fueled Aihuishou's plans for a public listing. ""The countdown to our initial public offering will begin in 2017,"" says CEO Chen Xuefeng. ""The preparation stage is likely to last three years."" He says the company prefers to go public in the domestic market than to list abroad. ""Aihuishou's online-to-offline business model has become mature and has raised the service standards of the recycling industry,"" says Cai Mingpo, president of Cathay Capital Private Equity. ""We see a bright outlook as the company has created strong barriers to competition and maintained a fast pace of growth."" Yang Tinghui, investment director at Fortune Venture Capital Co, says compared with listing on the Nasdaq in the United States, Aihuishou's business model and characteristics are more in line with the requirements of the domestic capital market in China. ""Aihuishou has big size and strong profitability. And its model of internet plus environmental protection' is in the national interest,"" Yang adds. (China Daily European Weekly 01/06/2017 page29)", -474,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876241.htm,Profit growth key for Huawei,,"Firm seeking to take a bigger slice of the action from Apple in premium market Huawei Technologies Co's renewed focus on profits in 2017 signals a shift in its smartphone business, as the Chinese tech group seeks to outsell Apple Inc in the premium handset sector, analysts said on Jan 2. The world's third-largest smartphone vendor says it will focus on boosting profits this year, as it deals with greater global economic uncertainty. - Attendees inspect Huawei P9 smartphones on display at the China International Information Exhibition in Beijing. Nanshan / For China Daily ""Despite our robust revenue growth, marketing costs and retail channel investments are rising too quickly,"" says Yu Chengdong, CEO of Huawei's consumers business. The consumer unit, which mainly includes smartphones, saw its sales increase 42 percent to 178 billion yuan ($25.6 billion; 24.4 billion euros; 20.8 billion) in 2016, Yu says. Roger Sheng, a senior hardware analyst at Gartner Inc, says the announcement indicates Huawei is no longer content with a rapid rise in smartphone shipments. ""It realized there is an urgent need to prioritize profits, especially as the global smartphone market reaches a saturation point and competition heats up."" Huawei shipped 139 million handsets in 2016, up 29 percent year-on-year. By comparison, the global smartphone market grew by just 1 percent, research firm International Data Corp estimates. According to Sheng, the Shenzhen-based company has done a good job in cracking the high-end segment. Shipments of its premium handset P9 series exceeded 10 million units within eight months. ""But costs have outpaced its revenue and gross margin growth after Huawei wrote big checks for marketing,"" he says. Huawei has signed Argentine soccer superstar Lionel Messi and US actress Scarlett Johansson as global ambassadors to promote its consumer electronics. Last year, Huawei grew rapidly in overseas markets but lost its home crown to domestic rival Oppo Electronics Corp. The firm said it would streamline its smartphone product lineup and improve supply chain management. Nicole Peng, research director at Shanghai-based consultancy Canalys, says it is difficult for Huawei to balance its revenue growth and profit growth in the short term, as it still needs to rely on large-scale marketing to shape its brand in foreign countries. ""Our research shows that if a firm's smartphone sales exceed a 10 percent share in a single market, it will have bigger say in its ties with retailers and handset parts makers. Huawei needs to work in this direction,"" Peng says. masi@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page26)", -475,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876240.htm,Fund aims to be a long-term investor,,"China's $800 billion (762.56 billion euros; 650.25 billion) sovereign wealth fund aims to be a long-term international investor and increase its close work with partners to seek opportunities under the Belt and Road Initiative, its top executive says. China Investment Corp President Tu Guangshao says cross-border investment is vital for China's economic growth and structural adjustment. ""As a financial investor, China Investment Corp is not seeking to control industry. Instead, we want to cooperate with partners at home and abroad to participate in global investment and create a win-win situation,"" Tu says. His comments came after the latest move: China Investment Corp, Hopu Investment Management and Hillhouse Capital Management are holding talks about making a joint offer for Singapore-based Global Logistic Properties, according to news agency Bloomberg in November. Tu says regional cooperation is an important part of globalization and the Belt and Road Initiative is a key development of regional cooperation. He adds that CIC will work closely with its partners to seek opportunities under the initiative. There are challenges in cross-border investment - such as the relationship between economic benefits and social responsibility, labor and environmental protection - and difficulties in developing multilateral investment agreements, according to Tu. Jiang Guorong, a managing director of UBS Group AG, says China's cross-border investment developed rapidly since 2015 because of a number of factors. ""Increasing demand for companies' business, increases in production capacity and output, overseas technology and capital and global asset allocation can explain booming cross-border investments,"" Jiang says. Jiang says developed economies such as the United States and Europe have been popular destinations for cross-border investments, while countries along the Belt and Road will be increasingly attractive. Ding Xuedong, chairman of China Investment Corp, says that CIC in the future will pay more attention to alternative investments - asset classes other than stocks, bonds and cash - and set up a sustainable development mechanism to prevent risks. Previously, CIC mainly invested in equities and fixed income. According to CIC's 2015 financial report, China Investment Corp had assets totaling more than $810 billion under its management by the end of 2015. caixiao@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page26)", -476,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876239.htm,Chinese giant makes inroads into the UK's infrastructure,,"Company looks to Northern Powerhouse project, which presents a wide range of opportunties Beijing Construction Engineering Group is making big strides into the UK's construction market at a time when the country requires rapid infrastructure growth. The company has the advantage of extensive experience accumulated from numerous Chinese and global projects over the years. It made a name for itself in the UK in 2014 by becoming one of the two contractors for Manchester's 800 million ($1.3 billion; 956 million euros) Airport City Manchester project. - Beijing Construction Engineering Group works on the Airport City Manchester project. Provided to China Daily Now it has established a solid foothold in the UK with two additional property development projects. It is continuing to look for new opportunities, especially infrastructure projects related to the Northern Powerhouse - the UK government's program to revitalize growth in northern England through infrastructure construction, which is set to become more important after Brexit. ""We see a lot of opportunities for future expansion in the UK market. Our goal is to look for suitable projects in the UK, and in particular northwest England, because we think the UK's Northern Powerhouse strategy will bring many opportunities,"" says Yu Dongwen, UK operations director of BCEG. BCEG, which was established in Beijing in 1953, already has a presence in many developing countries. It expanded into Western markets in 2007 by building a hospital in Dallas, Texas. BCEG also worked on other projects in the US, Canada and Australia. Examples include a retirement home in Los Angeles and a commercial center in Australia. BCEG's first project in Europe was Airport City Manchester, with the company responsible for 50 percent of the construction work, alongside the British contractor Carillion. It is also an equity partner, investing a 20 percent stake into the project. Spread over an area of 465,000 square meters, the project includes construction of offices, hotels, advanced manufacturing facilities, and logistics and warehousing facilities. Yu says his team has already made significant progress on the basic infrastructure work for the project, aiming to finish the majority of infrastructure work in 2017. It has already started designing hotels and offices for construction this year. BCEG's involvement in Airport City Manchester can be traced back to 2011 when the UK and China signed an infrastructure cooperation agreement. In 2013, when former prime minister David Cameron went to Beijing to promote the project, BCEG was invited to bid for it as a part of a consortium. ""We see Airport City Manchester as a first step into the UK market and an opportunity for us to gain experience and understand the UK's construction market, so that we can take on bigger projects gradually and with more confidence,"" Yu says. He says experience can relate to construction methods, working with local contractors and suppliers, maintaining a good relationship with the British government, setting up local teams and developing a working relationship with local advisers. BCEG's efforts won praise from Lynda Shillaw, CEO of MAG Property, the property arm of Manchester Airport Group. ""BGEG is a valuable partner in the development of Airport City and a positive example of the inward investment that is being attracted from China,"" she says. ""This is the first major infrastructure project in the UK with the involvement of a Chinese company as an equity partner, and it demonstrates how a new wave of investment from China is transforming infrastructure and development in the UK,"" Shillaw says. After building a reputation with the Airport City Manchester project, BCEG successfully started two new projects. The first was Middlewood Locks, a residential project that employed the Beijing-based company as a design and construction contractor. The second is St Michael's, a residential and commercial property development that has two tall towers and is located in the heart of Manchester, near Town Hall. BCEG is investing a 21 percent stake in St Michael's, and is in charge of design and construction. It will play a supporting role in sales by promoting the residential and office units in China. Yu says BCEG's key advantages in the UK market include its competitive edge as a highly international company, and its comprehensive supply chain. ""The UK construction market is very mature. It has a good legal framework and we can learn a lot of lessons here; but still, the amount of construction going on in the UK is nothing compared to China. ""In Manchester, for example, the only tall tower in the city is the Hilton Hotel. The rest of the buildings here are quite old, so perhaps compared with local construction companies we have a lot of experience."" BCEG has worked on many recent big projects in China, like the new offices of the Beijing government, the headquarters of the Asian Infrastructure Investment Bank, the APEC conference center and the Beijing New Airport, among others. BCEG has offices in 27 countries so it has accumulated experience from different international markets. In addition, it has a comprehensive supply chain. ""We can supply our UK projects with cost-effective materials, which are either our own materials or materials from our existing suppliers in China,"" Yu says. He explains that many European construction firms would actually like to buy materials from China, but the fact that BCEG is a Chinese company and knows the Chinese market well means it can source the most cost-effective materials with the same quality. In addition, BCEG's role as an investment partner in some projects where it is also the contracted builder means it is able to become involved in the project at an early stage. ""This means we can give the project owner advice on what is possible and efficient, so that their initial designs are made with construction practicality in mind. Then there will not be so many alterations at later stages,"" Yu says. Christopher Bovis, professor of European and international business law at the University of Hull, says the ability of Chinese firms like BCEG to act as both financial investors and construction contractors helps with their profitability. ""As a financial investor, they can be incentivized to improve the efficiency of the supply chain and create savings through volume, so the project will generate better returns."" BCEG's international expansion fits into the trend of Chinese infrastructure builders going global, supported by the Chinese government. Examples of such companies include Liaoning Fortone, a private construction business in Shenyang, currently constructing two 299-megawatt combined heat and power stations in Wales, and China Triumph International Engineering Co, which built six solar farms in the UK. Yu says BCEG's internationalization strategy fits roughly into three phases, which apply to many Chinese construction companies in general. The first was in the 1970s, when China sent many construction workers to developing nations, such as parts of Africa, as a part of its financial aid. A lot of those first projects built according to Chinese standards and much of the construction was done by Chinese workers, he says. The second phase mainly happened in Southeast Asian countries, before the Asian Financial Crisis. The third phase happened after 2000. ""This third phase involved much of the expansion into developed markets, such as the UK,"" says Yu. During this process we have taken on a different model of expansion. In developed markets, where we cannot easily second many employees, we mostly rely on local partners and play the role of project managers, leveraging on our experiences and management skills."" Looking into the future, Yu says his team is keen to expand across Europe, and especially in the UK. He believes construction opportunities in northwestern England will not be affected by Brexit-related uncertainties because the UK market is currently at a point where population growth is creating a large demand for property, and this demand is not being met by current market supply. ""Brexit means the UK needs to generate more growth from its own economy, and the Northern Powerhouse can supply a lot of this growth. The fact that many Chinese companies are interested in Northern Powerhouse-related investment opportunities means that we can play a role in leading these investments, and invest alongside other Chinese companies,"" says Yu. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 01/06/2017 page30)", -477,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876238.htm,E-commerce set to boost traditional enterprises,,"E-commerce companies say they will make great efforts to boost traditional enterprises and upgrade the real economy as the government published plans to develop e-commerce business during the 13th Five-Year Plan (2016-20). The plans set goals to increase the trading volume of e-commerce to 40 trillion yuan ($5.76 trillion; 5.49 trillion euros; 4.68 trillion) by 2020, including 10 trillion yuan from online retail businesses. The e-commerce market is expected to employ 50 million people by the end of 2020, according to the plan. The plans also set out five tasks to expand the e-commerce market, such as speeding the upgrading, promoting its deep integration of e-commerce with traditional industry, improving the public service system of e-commerce and optimizing its governance. JD.com Inc, China's second-largest e-commerce player, says the plan is to improve the quality and promote the upgrading of e-commerce, which will play an important role in driving the transformation of the real economy, deepening supply-side reform and achieving the integration of the internet and the real economy. The company says cutting-edge technologies, including big data, cloud computing, artificial intelligence and intelligent hardware, will aid the development of e-commerce. And, e-commerce players will utilize new technologies extensively during the period of the plan. Chinese cross-border B2B e-trade company DHgate says: ""The plan is put forward to promote the deep integration of e-commerce with traditional industries. We have built bridges for small and medium-sized enterprises to enter overseas markets since 2004."" In the future, DHgate will help traditional enterprises transform and upgrade, as well as find new growth points for the country's foreign trade. China is the world's largest e-commerce market, with e-commerce market turnover reaching 16.4 trillion yuan. The turnover of the online shopping market reached 3.8 trillion yuan last year, according to iResearch Consulting Group. E-commerce will help drive innovation in healthcare, education, culture and tourism, becoming a key engine for economic growth, according to the plan. Moreover, the plan promotes the development of cross-border e-commerce. Kaola, a shopping platform run by online gaming services provider NetEase Inc, says the plan is good news for cross-border e-commerce and beneficial for the whole industry's healthy and efficient development. The company plans to cultivate specialized talent in cross-border e-commerce, continue to create more employment opportunities, and boost the skills of employees. Lu Zhenwang, CEO of the Shanghai-based Wanqing Consultancy, says the plan offers a clear development target for e-commerce and indicates the direction for its future development. ""The next step should be how to better integrate traditional industry with e-commerce,"" Lu says. fanfeifei@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page28)", -478,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876237.htm,CNPC in running for Iran energy projects,,"Chinese oil giant among 29 firms to bid for tenders as a nation recovers from international sanctions China National Petroleum Corp, one of the country's oil giants, has been invited to bid for Iran's crude and natural gas development projects as the Persian Gulf state seeks investment in energy. CNPC, together with 28 other oil companies including Total SA, Royal Dutch Shell Plc and PJSC Gazprom, is among the international companies that have qualified to bid for tenders, according to Iran's oil ministry If CNPC wins, the deal would be in the interests of both countries, reviving Iran's energy industry which has been hard hit by international sanctions while satisfying China, the world's second-largest economy, which has a strong demand for energy. Iran is trying to fast-track projects to boost oil and gas production amid low prices and wants to sign agreements as soon as possible. However, Alastair Syme, an oil analyst at Citigroup Inc in London, warns companies to be wary of investing too quickly or too much in Iran. According to a senior engineer with CNPC, despite years of sanctions leading to a hammered economy and infrastructure, Iran, with the world's biggest natural gas reserves-estimated by BP Plc at 34 trillion cubic meters- still has significant strategic importance, with its substantial reserves of oil and gas. Strategically located in the Middle East and sharing land borders with 15 nations, Iran also plays a crucial role in the Belt and Road Initiative as an energy hub, he says. According to CNPC, the company has been present in Iran since 2004 and is engaged in oil and gas operations and oilfield services. In 2009, the company signed contracts with National Iranian Oil Co to develop the North Azadegan Oilfield and Phase 11 of the South Pars gas field, which began trial production in 2015. Iran exported 500,000 to 600,000 barrels of crude oil per day to China in 2015, and the country recently signed a $4.8 billion (4.6 billion euros; 3.9 billion) natural gas development project with CNPC and Total. Iran aims to attract more than $100 billion in foreign investment to boost the country's energy sector. The country has doubled its exports as crude prices rallied. Iran boosted oil output in 2016 by 870,000 barrels per day to 3.67 million bpd by November, and has reached several preliminary agreements with international companies, despite no concrete deals having been signed yet, Bloomberg says. The country has set a target for daily output of 5.7 million bpd of crude and condensate early in the next decade, according to Oil Minister Bijan Namdar Zanganeh. zhengxin@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page25)", -479,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876236.htm,Mining a rich urban resource - discarded batteries,,"Company sees profit potential in recycling vast numbers of used power packs, while helping to avoid an environmental mess GEM Co Ltd, the listed group involved in urban mining - the recycling of metal, old electronics, batteries and catalytic converters that would otherwise be left to decompose in landfills - says it sees great opportunities in lithium battery reuse as China's new-energy car sales rapidly expand. ""Although the economy is cooling down, one thing keeps growing - waste,"" says Xu Kaihua, chairman of GEM. Xu says China has around 6 million metric tons of electronic waste. Every year, the country generates 24 billion waste batteries. ""The waste is an urban mine to be exploited and an environmental disaster at the same time,"" he says. Founded in 2001, the company, based in Shenzhen, Guangdong province, went public in 2010 on the Shenzhen Stock Exchange. It now has net assets of 6.7 billion yuan ($963.5 million; 926.3 million euros; 787.2 million). In 2003, GEM proposed the idea of ""digging into the urban mines"" to recycle used batteries, electronic waste, scrap cars and rare metals such as nickel, tungsten and cobalt. Battery recycling is an important part of GEM's business portfolio, which accounted for 25 percent of its total revenue of 3.3 billion yuan, up 45.7 percent from the same period last year, in the first half of this year. The profits from battery recycling totaled 36.6 percent of its net profit of 172 million yuan for the half, which was up 30 percent from last year. Lithium battery production is expanding thanks to the fast growth of the new-energy vehicle sector. The Lithium Institute of Shenzhen Gaogong Industry Research Co says that in the third quarter of 2016, national output of lithium battery materials was worth 11 billion yuan. According to research by Li Junhua, chief researcher at the Shenzhen-based ylz360.com, a website for energy consulting, sales revenues from recycled metals from lithium batteries - including cobalt, nickel, manganese, iron and aluminum - will increase sharply to 5.2 billion yuan in 2018, 13.6 billion yuan in 2020, and more than 30 billion yuan by 2023. The new-energy vehicle plan projects that by 2020 the annual production capacity of the industry will be 2 million units, with sales to date at a cumulative 5 million units. Xu Shiguo, deputy director of GEM's new-energy material research institute, says the company has formed a recycling network throughout China, with 12 waste recycling bases. Since 2005, GEM has treated 15,000 tons of cobalt, 10,000 tons of nickel and 4,000 tons of manganese in its effort to build an industrial chain of recycled raw materials. ""Our goal is to build a closed cycle in the industry from materials, batteries, new-energy car manufacturing, supply chain finance and power battery recycling,"" Xu says. yangziman@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page27)", -480,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876235.htm,Domestic buyers a key real estate driver,,"Purchasers are favoring premier office buildings that bring stable and steady income, as government policies tighten In real estate across the country, domestic buyers are expected to dominate big investment deals worth 100 million yuan ($14.4 million; 13.8 million euros; 11.7 million) or more each in the New Year, an industry report says. That is because buyer interest in office buildings, serviced apartments and commercial complexes is rising, according to a research report by DTZ/Cushman & Wakefield, a realty services provider. The report says the realty investment market in China has been ""particularly active"" in 2016 and may continue to thrive in 2017. A potential buyer seeks information about property projects at a real estate expo in Shanghai. Yang Yi / For China Daily Nationwide, bloc deals were worth some 200 billion yuan this year. In Shanghai alone, bloc deals exceeded 130 billion yuan, more than double that in 2015, according to DTZ. In terms of transaction value in Shanghai, office building deals accounted for more than 75 percent of all transactions. In terms of transacted space, they accounted for more than 70 percent. ""An obvious trend is that domestic buyers are dominating the market, and the average transaction value of deals is rising. Domestic buyers are favoring premier office buildings that bring stable and steady income. Investors are looking for quality assets, and the real estate market provides good opportunities,"" says Jim Yip, managing director of Investment and Advisory Services, China, DTZ/Cushman & Wakefield. As residential property policies have been tightened earlier this month, investors are looking at commercial realty. The easier interest rate environment has also encouraged buyers to look at bigger deals, analysts say. Insurer-linked funds, which have been widely reported to have acquired overseas assets in previous years, are also allocating huge amounts to domestic assets like office buildings, commercial complexes and shopping malls. Post transaction, buildings may be refurbished or transformed for other purposes, based on current trends. For example, old hotels in central locations are turned into office buildings, the DTZ report says. Office buildings in Wuhan, Shenzhen and Chengdu are in great demand as they play a key role in driving regional growth, the report says. Serviced apartments are also expected to become a key real estate category and an investor target in the next few years, particularly in first- and second-tier cities, given the rise in transaction value. For instance, Shanghai's serviced apartments generated 7.15 billion yuan in 2016 sales, up from 4.2 billion yuan in 2015. wuyiyao@chinadaily.com.cn ( China Daily European Weekly 01/06/2017 page27)", -481,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876234.htm,"Belt, Road study nears completion",,"Research covers law, politics, trade and economic zones along 64-nation trading route across Asia to Europe In 2017, the China Council for the Promotion of International Trade, or CCPIT, will complete its research on the laws and business regulations of 64 countries and regions along the Belt and Road Initiative to ensure that Chinese outbound direct investment faces fewer risks, officials said on Dec 29. The research projects will focus on law studies and assessments of commercial environments and political situations, as well as disparities between economic zones and nonzone markets in each country or region along the initiative. - A businesswoman from the United States (left) attends an investment and trade fair in Xiamen, Fujian province. Zhang Guojun / Xinhua Feng Yaoxiang, CCPIT spokesman, says the research will give Chinese companies better knowledge of the markets they want to invest in. Market demand, industrial structure, insurance policies, terrorism risk and inflation rate will all be studied to help companies avoid risks. The research will cover most of the countries and regions along the Silk Road Economic Belt and the 21st Century Maritime Silk Road, Feng says. The CCPIT set up 102 trade information offices to provide early warning and legal services in 2016 in major export-oriented provinces and cities, such as Zhejiang and Shanghai. Liu Chao, deputy director-general of the council's department of legal affairs, says many countries along the two routes, including Turkey, Poland and Malaysia, have good infrastructure and industrial foundations to support their growth. But for some others, developing infrastructure and services remains crucial. The council will also offer legal advice, consultation services and practical measures to Chinese companies regarding Section 337 investigations to improve their ability in dealing with trade remedy investigations in 2017. Launched by the US International Trade Commission, Section 337 investigations are related to claims involving intellectual property rights. China encountered 117 trade remedy investigations launched by 27 countries and regions, with a total of $14 billion (13.3 billion euros; 11.4 billion) involved, between January and Dec 21, according to the Ministry of Commerce. Ministry spokesman Shen Danyang urged the Office of the US Trade Representative on Jan 5 to treat Chinese companies objectively, as China has made significant progress in improving the protection of intellectual property in recent years. His comments came after the trade representative recently included four e-commerce websites and six manufacturers in China on its 2016 blacklist of ""notorious marketplaces"". (China Daily European Weekly 01/06/2017 page28)", -482,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876233.htm,Service sector shows continued expansion,,"China's service sector continued to expand in December, posting its strongest rate in 17 months, according to a private survey released on Jan 5. The Caixin General Services Purchasing Managers' Index edged up to 53.4 from 53.1 in November, according to the survey conducted by financial information service provider Markit, sponsored by Caixin Media. The previous high was 53.8 in July 2015. A reading above 50 indicates expansion, while below 50 represents contraction. Demand in the sector picked up as new orders at service companies rose in December at the fastest pace in 17 months. Rising raw-materials costs for service companies caused expenses to soar at their fastest rate in nearly two years, but service providers only slightly raised their prices in December due to market competition. Optimism about growth in 2017 reached a four-month high, with surveyed companies generally showing more confidence due to improving market conditions and company expansions. The Caixin China Manufacturing PMI, which was released on Jan 3, hit a 47-month high of 51.9 in December. The strong performance in the two sectors meant the Caixin Composite Output Index, which reflects performance in both sectors, hit a 45-month high of 53.5 in December from November's 52.9. Zhong Zhengsheng, director of macroeconomic analysis at CEBM Group, an investment research firm, says the figures show continued recovery in China's economy. ""The Chinese economy performed better in the fourth quarter than in the previous three quarters. There is no question that the government full year growth target will be reached,"" Zhong says. China's GDP grew at 6.7 percent in the first three quarters of 2016, the government target being between 6.5 and 7 percent for the year. National Bureau of Statistics data showed that China's manufacturing and nonmanufacturing PMI posted the second-highest monthly reading of 2016 in December, adding to signs of economic stabilization. (China Daily European Weekly 01/06/2017 page24)", -483,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876232.htm,It's critical to go fast on digital highway,,"Speed will separate winners from losers in the internet age, according to Honeywell's CEO-in-waiting Sitting in front of a room-sized aerospace simulator for pilots, Darius Adamczyk, president and chief operating officer of Honeywell, deftly shifts from topic to topic - subjects as diverse as aerospace and the company's new line of the breathable masks that help protect people during high-pollution days in China. His wide range of interests reflects the extraordinary range of businesses of the $40 billion (38 billion euros; 32.4 billion) technology and manufacturing giant, from aerospace to electronic control technologies for buildings, homes and turbochargers, to high-performance materials. But Adamczyk, 50, who is to be the new CEO starting at the end of March, is pushing for even more changes in his group. He is determined to take the company to even higher heights of involvement in the digital age. Darius Adamczyk, CEO-in-waiting of Honeywell, will take office in March. Provided to China Daily On his recent trips to China, Adamczyk talked to his Chinese teams about how the multinational will achieve more growth by blending its strengths in hardware with a stronger presence in software in the digital age. He encouraged them to create new ideas as startups rather than in an established industrial conglomerate. He believes the place to achieve such breakthroughs is in China, Honeywell's second-largest market after the United States. Adamczyk is clear about how committed Honeywell is to the country - with its major presence, 13,000 employees and diversified businesses in manufacturing and research and development, which serves both Chinese and international markets. Honeywell wants to be viewed as a local player, working at the brisk performance level that has been achieved by many domestic companies, he says. ""When I think about China, I can't think of a company that's more aligned to the needs of where the country is heading,"" he says, citing the key areas of energy conservation, energy solutions, clean air and water, smart buildings, chemicals and work safety. Recently he spoke with China Daily about the company's strategy and business opportunities in China. The following are edited excerpts from the interview. Q: What are your strategies for the company in the long term? A: No 1 is to continue to provide superior value to our customers, and No 2 is to drive digitalization throughout Honeywell. We have a strong presence in software but we have a lot more opportunities to drive it. All aspects of our business are very customer-centric. I want to make sure that we operate in segments that are exciting and growing, and well-aligned with mega trends. How are you going to blend software programming with Honeywell's existing physical products? Honeywell has been developing in internet of things, and we have access to data. Honeywell is the company that has those products that actually generate that data. However, we've used that information just to make the basically functional products. We now aim to integrate the data with information across the whole installation base that we have, and across all our products, and to think about our customers' challenges differently. We now have opportunities to redefine how we create new value for our customers through our software capability, installation base and domain knowledge. What do you think are the most challenging issues in making Honeywell more flexible and nimble in the internet era? Speed is something that's going to separate the winners from losers. And in this new industrial software - and certainly one of the things that I'm trying to enable in Honeywell - it's important for us to be able to operate and come up with ideas at a whole different rate of speed than ever before. What's your definition of a breakthrough? I'm never satisfied with the current speed of growth. When we think of growth, I think about it as continuing to gain a share in our core markets, but also coming up with adjacent strategies that will enhance our overall growth. So I'm pushing and driving the organization to be more creative, to think about our offerings differently, to rethink what breakthrough growth means and to take the time to set metrics and expectations to make sure that happens. What kind of incentives are you going to offer to your employees to be creative and develop new products and new applications? I am encouraging all of our businesses to create new ideas and new organizational structures, to create new small businesses. I want them to operate like startups. So I want to remove a lot of bureaucracy and encourage our people and businesses to embrace higher-risk, higher-reward breakthrough initiatives to really drive growth. How do you prioritize your business portfolio to meet this goal? As a new CEO takes over, we can take a look at the markets we are in and the markets we are not in and optimize our operations and where we are today. I really want to align our businesses towards a lot of longer-term global macro trends. But, most important for Honeywell, we have to be in segments where you differentiate yourself by technology. Honeywell is a technology company. How have Honeywell's Chinese operations performed in the past year, and what are their prospects? They continue to do very well. We've had another strong year in China and we are anticipating it to be even stronger in 2017. We have seen a recovery in some areas. One of the more challenging market sectors in China has been the oil and gas segment, due to what's been happening there. But, overall, it was a very strong year in 2016 and we look forward to an even stronger 2017. You started your career as an engineer. What is your advice to people making the transition from engineering to management? It's the most challenging thing to make that first transition from being an engineer. In my case, I happened to bridge my engineering career with an MBA, to go into the world of business. But my advice to engineers is to take an assignment outside core engineering. Because the broader understanding you have, the more effectively you can make that progress. You've been praised for succeeding in every business leadership role you have ever held. What's your secret? It's about having strategies, having a group of people to work with and having the tactics to make sure the strategy is being executed every day, every week, every month, every year. Everybody in the organization should be able to say how they are contributing to that strategy. Then it's about putting the operational systems in place. And people are critical. What is the most important quality for a leader? As a leader, you have to put a lot of energy and a lot of passion into the business. You have to be the spark that moves the organization. That's something that I am always trying to do. I think the job of leader is to always set the bar higher, to always challenge the organization. What are your hobbies and interests outside of work? I spend all my spare time with my family. To make sure that you stay really grounded, what's truly important is your family. wangzhuoqiong@chinadaily.com.cn Bio: Darius Adamczyk Age: 50 Career: March 2017: CEO of Honeywell Current: President and chief operating officer of Honeywell Previous positions include: President and CEO of Honeywell Performance Materials and Technologies; president of Honeywell Process Solutions; president of Honeywell Scanning & Mobility Senior associate at Booz Allen Hamilton Electrical engineer at General Electric Education: MBA, Harvard University Master's degree in computer engineering from Syracuse University Bachelor's degree in electrical and computer engineering from Michigan State University ( China Daily European Weekly 01/06/2017 page31)", -484,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876231.htm,Startups prove there's a lot of money in muck,,"Recycling industry expands in Beijing as residents demand a door-to-door pickup service In the morning on the first weekend of each month, 28-year-old programmer Liang Tianlong waits patiently for the recycling man to collect his household waste, including paper and bottles. Liang says he's gotten used to the routine after more than six months. Nowadays, a growing number of Chinese can enjoy services like this, thanks to the development of the online-to-offline waste recycling industry. - A woman scans and installs an application for the collection of waste in Shanghai. Recycling services using apps are popular in big cities such as Shanghai and Beijing. Yang Yi / For China Daily New Living (Beijing) Information Technology Co is a startup at the heart of the sector, which was established two years ago. It has developed an application that provides a regular door-to-door recycling service for waste - including plastic bottles, cans, paper and old electronic appliances. Having won itself a solid customer base in the capital, New Living is striving to carve out a self-sustaining business model, according to Xia Fan, its CEO. ""As scrap prices are declining, the company's innovative business model is showing advantages in dealing with the challenge,"" Xia says. Besides recycling, the app also provides e-commerce services, enabling its users to purchase fruit and vegetables online and to hire housekeeping or repair services. Such services are not uncommon on other O2O platforms. But Xia says his company's increasingly mature logistics system gives it an advantage over competitors. ""When collecting the waste, the worker can also deliver what the clients ordered online. That's how we reduce costs and improve logistics efficiency,"" Xia adds. Xia says he believes such ""reverse logistics"" represent a sustainable business model and will add to the returns in the recycling business. To date, New Living has built up a recycling team of more than 300 workers who serve more than 200,000 families in 800 communities in Beijing. The amount of wastepaper New Living recycled in 2016 more than doubled to 6,500 metric tons from the same period the year before. In the same period, the number of plastic bottles and cans processed totaled 36 million, up 38.5 percent from a year earlier. In the past few years, many startups have begun to compete in the industry, especially after the government released a six-year plan on building up a recycling system for renewable resources starting in January 2015. According to statistics from the Ministry of Commerce, China's top 10 categories of recycling renewable resources in 2015 were worth 514.9 billion yuan ($74 billion; 71.2 billion euros; 60.5 billion). Li Yinan, an analyst at China Co-Harmony Investment Fund Management Co, says companies need to establish a sound and sustainable strategy. ""A door-to-door waste recycling service is demanded by many individuals. That means tremendous market potential ahead,"" Li says. ""For household waste, however, the profit margin is relatively low. O2O startups in this sector need large-scale operations."" Tian Yuanyuan contributed to this story. jingshuiyu@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page29)", -485,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876229.htm,The curing month,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong bonds of community and culture. The last month of the lunar calendar used to be called the Hunting Month in more rustic times. That was when traps were set in the wild to catch pheasants, rabbits, deer and wild boar in preparation for the rounds of feasting during the Spring Festival, just weeks away. These days, wild game is no longer easily available so tamer options are used, although the meats are still cured and hung up to dry in the chilly winds. Layue has come to represent a time for preparing and curing meats, known as larou. - Assorted cured meats form elaborate displays in markets. Photos Provided to China Daily - Major curing ingredients range from pig liver to poultry, from beef to mutton. In spite of the urban spread of China's population, the year-end tradition of preserving meat is still popular, with a variety of birds, cuts of beef, mutton, pork and fish strung up in backyards and on balconies to catch the winter wind and sun. Let's start from the southern end of the country where Cantonese cured meats form elaborate displays at New Year's markets. Sausages are made from hand-cut belly pork and marinated in salt, plenty of sugar and quality Chinese yellow wine, which gives the links their characteristic red tinge. This is also the time when fresh duck or goose livers are marinated in spices, sugar and wine and stuffed into intestines. These, unlike the meat sausages, are seasonal delicacies only available for a limited time. Another uniquely Cantonese cured product is a whole pig liver, hollowed out and stuffed with a piece of pork fat. Surprisingly, they are not hard to eat. The liver turns firm during the curing process, while the fat turns crisp and transparent. The Cantonese cook steams, then cuts these liver sausages into very thin slivers, serving them on slices of steamed arrowroot or yam. More familiar are whole ducks which are spatchcocked, spiced and salted. The intensely savory birds will be a highlight on the reunion table on Lunar New Year's Eve. Surprisingly, chicken is cooked fresh and seldom cured in the southern regions. Duck thigh fillets are now more popular with the modern generation, as traditions change with the shrinking size of families. These deep maroon nuggets are easily cut up and even easier to steam and there are no bony bits to contend with. Further north, in Yunnan and Sichuan, various cuts of meat are heavily seasoned and hung up to dry, ending up in stir-fries or simply steamed. Here, the meats are pickled with lots of chilli and Sichuan peppercorns. Local sausages are also very spicy, and they leach a bright red oil when they are fried, sending out a fragrance that is irresistible to the homesick Sichuan native. Near the central plains and the lake regions just to the south, soy sauce is a major curing ingredient and sauce-cured strips of meat are already hanging up to dry in many backyards. Poultry, such as duck, goose or chicken, is also steeped in sauce. In Ningbo, a favorite New Year's delicacy is a sort of ham, with chopped pork stuffed into a pig's stomach and then cured in brine. In Hubei, where there are plenty of lakes and ponds, preparation for spring must start with fishing for carp. Whole carp are salted and then hung up to dehydrate but a good cured carp stays soft and supple for the New Year's meals. As we move farther north, the nomadic influences come into play and the main ingredients change to beef and mutton, and the style becomes more like jerky. Whole sheep are cured and beef is cut and dried in easy-to-transport strips. Beef jerky is still popular with horsemen driving flocks. These days, however, they have become favorite snacks for the keyboard generation, who buy them from online supermarkets that deliver to the door. Strips of cured meat or tiny cubes individually wrapped are all best-sellers. The Hunting Month may have slowly evolved into the curing month, but it is still part of a culinary tradition that is a prelude to the most important celebration of the entire lunar year. paulined@chinadaily.com.cn Making sausages the Cantonese way Prepare sausage casings These natural pig intestines are heavily salted to preserve them, and you need to soak them for a day or two to make them supple again. Once they are soft, you have to gently run water through them to make sure there are no leaks. I often ""sterilize"" them by pushing fat cloves of garlic down the entire length. Cutting the meat The best ratio of fat to lean is about 70 percent marbled meat to 30 percent fat, which must be hand-cut into the smallest dices. It is the fat that keeps the sausages moist. Marbled meat is softer, with fat lacing the leaner fibers. These cuts are normally on the upper shoulders and thighs. Hand-cutting the meat is important if you want to control the texture. You can mince the meat but it means a more mealy and dense sausage after curing. Once the meats are prepared, mix them up thoroughly so there are jewels of fat studded throughout. The marinade Salt, sugar and Chinese five-spice powder are dissolved in a dark soy sauce and Chinese yellow wine mixture. You must be able to smell the fragrance of the wine, so a quality product must be chosen. I also add a couple spoonfuls of strong white liqueur to aid the preservation. You can use vodka as a substitute. Taste. If you're happy with the balance of flavors, it's time to add the meat. Mix it all really well and let it sit for an hour for the meat to absorb the marinade. Stuffing the sausages Open up the sausage casing and push it up the narrow end of a funnel. Hold on to the casing as you push the meat through the funnel. If you are a beginner, work on shorter, more manageable lengths. Always check that your sausages are not split or leaking. Twist them into the lengths you want and then hang them on a bamboo pole. You can cure them on the balcony where the cold will soon dry them up. Remember to place a tray beneath the links to catch the dripping fat, otherwise your neighborhood pets will soon be congregating on your balcony or in your backyard. The links will be wrinkled and ready in about three weeks and you can then transfer them to the refrigerator. Steam them, or cut them up to fry. (China Daily European Weekly 01/06/2017 page18)", -486,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876228.htm,Hit and myth: the movie monsters lost in translation,,"Beasts portrayed in movies may be scary - but audiences complain they're not really Chinese After watching Zhang Yimou's latest film The Great Wall , Gu Meng was impressed by the army of Tao Tie monsters from Chinese mythology. However, he complained that the Tao Tie in Zhang's film were not ""Chinese"" monsters. ""They look like Western ones with Chinese names. They have more in common with monsters from Hollywood films, such as Godzilla,"" says Gu, a programmer in Beijing who loves monster movies. Gu is not the only one to feel this way. Many Chinese netizens say that as the Tao Tie is seen as one of the four evil creatures - and is believed to be the offspring of a dragon, according Chinese mythology - it should have been portrayed as a single beast, instead of hoards of ant-like beasts in the film. - Monsters are typically Westernized, like the one portrayed in the 2015 Chinese fantasy film Chronicles of the Ghostly Tribe. Photos Provided to China Daily - A dragon designed by Gino Acevedo with wings and a body inspired by sea horses. But the complaints are not only about Tao Tie. Chinese people have long complained that monsters portrayed in domestic movies look like those in Western films. That's not surprising, since many were created by Western companies. The Tao Tie in Zhang's film, which is based on the Chinese literary work Classic of Mountains and Seas, has been created by the New Zealand company Weta Workshop. Gao Xia, a concept designer with Weta Workshop, who worked on rendering Tao Tie, says: ""Chinese monsters are very different from their Western counterparts. It is also more difficult to portray Chinese monsters on screen because of the cultural factor."" Pointing out some of the challenges involved in creating Chinese monsters, he says that, for example, the eyes of Tao Tie must be under the arms according to mythology. However, in the film they are moved to the neck. Referring to Hollywood creatures, he says: ""They must be anatomically perfect. The veins of the monster, the color of its skin, the muscles and even the parasites in them must make sense."" Another problem with creating Chinese versions, he says, is that ancient paintings that portray Chinese monsters often use clouds and fire, and many monsters from folk tales and mythology only exist in the written form, making them difficult to portray. ""Just like Chinese ink paintings, we put more stress on imagination,"" says Gao. Speaking about the difference between monsters from the East and West, Gino Acevedo, who has been involved in the creation of monsters for films like The Lord of The Rings, The Hobbit and Alien, says Eastern culture is fond of the powers of supernatural beings, while the West turns to nature for inspiration. Acevedo himself is a good example of a monster expert inspired by nature. His favorite TV shows were all about animals. He loves lizards and snakes so much that he once raised more than 30 kinds of snakes and lizards in his bedroom. The dragons he now designs are based on these reptiles. His monsters often have sharp teeth or long tusks, which he says are inspired by crocodiles. ""I think ghosts and monsters from the East are more scary. They are supernatural. And, sometimes, even though they do not have eyes, they still know where you are."" When it comes to the creatures that he finds memorable, he says that the ghosts and monsters from A Chinese Ghost Story, produced by Hong Kong director Tsui Hark, impressed many Westerners. The film is about a love story between a young man and a female ghost. Referring to the size of the monsters, Acevedo says that those in the East have the same proportions as human beings, but monsters in Western films typically have bigger bodies to show that they are not humans. Acevedo says that, although the West has a long history creating monsters on screen, China can find ideas from its own rich mythology. Gao says that after working with Western companies he feels it is now time for him and his Chinese peers in the film industry to look more closely at Chinese culture. He says this is because if you want to create a monster to meet local tastes you need cultural context. This view is supported by Yan Dingxian, 80, creator of the Monkey King and monsters in the animated film Havoc in Heaven, which was made in the 1960s. He says that it is a deep understanding of Chinese cultural elements like Peking Opera, mythologies and martial arts that made the movie popular with Chinese audiences at the time. dengzhangyu@chinadaily.com.cn - A fish-like monster from the folk tale Madam White Snake created by Chinese artist Wu Jian'an. (China Daily European Weekly 01/06/2017 page19)", -487,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876227.htm,Two-child policy poses risks for older women,,"Experts are warning that the country's new family planning measures could have unintended but far-reaching consequences In recent years, the treatment of pregnant patients has become an increasingly thorny task for Liu Wenxian, a cardiologist at Anzhen Hospital in Beijing, as a result of the rise in the number of older women wanting to give birth. ""Many of these women are from outside Beijing and have risky complications, such as cardiac disease,"" she says. ""The problem has worsened since the adoption of the universal two-child policy because such complications are more commonly seen in pregnant women who have given birth before. In many cases - especially when the patient's condition is critical - we have to re-evaluate their decision to have a baby and end the pregnancy promptly to save their life."" - Mothers-to-be practice yoga at a training institute in Nanchang, Jiangxi province. Photos by Xinhua - Pregnant women line up for health checks at Jinan Maternity and Child Care Hospital in Jinan, Shandong province, in March. Thirty percent of mothers-to-be visiting the hospital are expecting their second child, according to hospital sources. Gu Hong, a pediatrician at the hospital who specializes in treating cardiac disease in babies, warns that the two-child policy could have unintended but far-reaching consequences: ""We are facing some very harsh challenges. Many women are trying their best to have a second child, even if conditions such as cardiac disease could put them at high risk."" According to Gu, seven pregnant women have died in the hospital in the past five years as a result of cardiac complications, and those risks still exist despite improvements in medical technology. Anzhen Hospital is not alone in facing the challenge. According to the National Health and Family Planning Commission, in the first half of the year China's maternity mortality rate reached 183 per 1 million people, an increase of more than 30 percent compared with the same period last year. The mortality rate had been declining steadily in China until the end of last year, when the country's leaders approved the adoption of the universal two-child policy to tackle the problems posed by the nation's rapidly aging population. As a result, the decadeslong family planning policy, which limited most couples to one child, was relaxed. Last year, the mortality rate during pregnancy fell to 201 per 1 million people, from 300 per 1 million in 2010, according to the commission. But the figure is now rising. ""The rise in the number of pregnant women, particularly those at higher risk, such as older women, resulted in a rise in maternity deaths in some parts of the country in the first half of the year,"" a statement released by the commission in October said. The NHFPC estimates that more than 3 million women at higher risk will become pregnant in China every year between the start of next year and 2020, a rise of 30 percent from the period before the adoption of the two-child policy. ""This will cause increased risks of maternity complications and present challenges to treatment and recovery,"" the commission said. The number of babies born in the first half of the year was 8.31 million, a rise of 6.9 percent over the same period last year, a significant increase despite the declining number of married women of fertile age, it said. In addition, the sudden rise in pregnancies has resulted in maternity services coming under greater strain, and both facilities and hospital personnel are under-resourced, according to the commission. Of the 90 million women now eligible to have a second baby, 60 percent are 35 or older, which means they are considered to be at higher risk during pregnancy, the NHFPC says. Gu says about 150 pregnant patients with cardiac complications were received by Anzhen Hospital last year, compared with approximately 110 in 2011. This year, the number is expected to surpass 180. Acting on traditional beliefs, many women are opting to have another child, according to Gu: ""Many of these patients are seeking treatment and care in our hospital, but not all women are suitable for pregnancy. Women with serious conditions are very likely to give birth to an unhealthy child, and their own lives could also be threatened during childbirth."" Liu, the cardiologist, urged older women to assess the risks they face before deciding to have a child. ""With the rise in age, pregnant women have a higher chance of developing illnesses. They must be aware of their physical condition before pregnancy to reduce the risk to them during childbirth,"" she says. He Wenjie, a gynecologist at the reproductive medicine department at Xuzhou Maternal and Child Healthcare Hospital, in Xuzhou, Jiangsu province, has also seen a rise in the number of older patients: ""The average age of patients I am receiving is rising. It is crucial that all women, especially those who are older, have checkups before pregnancy to reduce the health risk."" The NHFPC says health authorities will take more measures in the next few years to improve the health of pregnant women, given the rising rates of mortality during pregnancy. Hospitals nationwide will add 89,000 obstetrics beds, and local authorities will upgrade emergency equipment at hospital obstetrics and pediatrics departments. The commission will also select a number of national midwifery training bases and organize training related to the treatment of pregnant women with critical conditions. It will also cooperate with other departments to provide training, with the aim of producing 140,000 extra obstetricians and midwives. wangxiaodong@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page20)", -488,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876226.htm,You know where you are with province names,,"Titles of Chinese regions are mostly based on logic and geography If there is one quality a good administrator of an empire ought to have it's knowing where everything is. In early history, the tribes that were the forerunners of the Chinese civilization called their homeland ""the Central Plains"" - defined as the plains in the ""center"" of the various tribes that surrounded them. This name later gave rise to the term zhōnggu��, or ""Central Kingdom"", the literal translation of the name of said civilization. The names of many Chinese administrative regions today retain helpful references to directions and geographic features to let you know roughly where they are, for instance, ""south of the river,"" or ""north of the river"". Easy: Henan (河南, H��n��n), Hebei (河北, H��běi), Hunan (湖南,Hún��n), Hubei (湖北,Húběi), Shandong (山东, Shāndōng), Shanxi (山西, shānxī) First, brush up on your cardinal directions: �?dōng, east), �?(xī, west), �?(n��n, south), �?(běi, north). �?(h��) refers to ""river"", �?(hú) is ""lake"", and �?(shān) is ""mountain(s)"". But actually, in ancient times, �?was the exclusive name of the Yellow River, the major river of consequence in northern China, whereas your run-of-the-mill tributaries, streams, channels, conduits and waterways would have all been referred to as �?(chuān, as in Sichuan, ""four rivers""). That more or less gives away the answer to the first pair of provinces: Henan and Hebei are regions (and later provinces) north and south of the Yellow River. Hunan and Hubei are likewise north and south of the lake, which in this case is Dongting Lake. The mountains referred to in Shandong and Shanxi, on the other hand, are open to some dispute. They could refer to the Taihang Mountains, which are located between Shanxi and Hebei province (but not present-day Shandong), Xiao Mountain in present-day Henan province, or Mount Hua in Shanxi. It could also refer to all of these mountains, as up until the Qing dynasty ""Shandong"" referred to a much larger region roughly comprising the plains around the eastern section of the Yellow River, east of the ""mountains,"" generally speaking, that were found north of the Central Plains. Moderate: Guangxi (广西, Guǎngxī), Guangdong (广东, Guǎngdōng), Jiangxi (江西, Jiāngxī) These province names also include cardinal directions, but no clear geographic marker. The �?(guǎng) in Guangxi Autonomous Region and Guangdong province literally means ""wide"", but the name of the region traces itself to Emperor Wu of the Han Dynasty in the 2nd century BC. During his reign, the Han conquered the southern kingdom of Nanyue (南越, also known as Southern Yue), focused around the present-day city of Guangzhou. According to ancient historians, at this time Emperor Wu said: ""初开粤地宜广布恩�?(as we develop the Yue region, we must widely broadcast favor and trust)."" The characters �?and �?quote gave rise to the name to the new regional capital Guangxin, and the entire region of present-day Guangdong and Guangxi came to be called ""Guangzhou"" after this city. In the Song Dynasty (960-1279), the road leading to this region had two branches called ""Guangxi South Road"" and ""Guangdong South Road,"" which gave the two present-day administrative regions their names. Jiangxi also has many confusing explanations. In ancient times the character �?(jiāng), for river, belonged like �?exclusively to one river, which in this case is the Yangtze River (长江, ch��ngjiāng). Since the Yangtze actually flows through present-day Jiangxi province, it would make sense that Jiangxi refers to the western part of the Yangtze, except Jiangxi is actually located quite far east. Some other explanations are that the �?actually refers to the �?(gàn) River, another major river in the province. The real answer is that Jiangxi is an abbreviation: for 江南西部 (jiāngn��n xībù), or ""western part of the Jiangnan region"", the name given to the geographic and cultural area immediately south of the Yangtze. Hard: Shaanxi (陕西, Shǎnxī), Yunnan (云南, Yúnn��n), Hainan (海南, Hǎin��n), Tibet (西藏,Xīzàng) Like Jiangxi, the names of these provinces and regions also lack a direct counterpart. However, unlike Jiangxi, the reason here is that these names all refer to former Chinese border regions and are named according to their cardinal direction relative to some description of China's borders, highlighting their status ""outside"" the ancient definition of the homeland; their ""counterpart"" would simply be existing Chinese regions that already had names or more broadly, China itself. Shaanxi, currently home to Xi'an, the former imperial capital of Chang'an, was integrated into the central Chinese civilization early on. However, the name of the region comes from its location west of the Shaan Plateau (陕塬, shǎnyu��n) in present-day Shaan county, Henan province, and was decidedly a frontier region of the Western Zhou Dynasty (c.11th century-771 BC), which was based around the Central Plains. In around the 9th century BC, the region became the seat of the Qin Kingdom, one of the Warring States, which was considered by the other states to be a western border-region upstart beneath their notice. As we now know, the Qin exploited this advantage and conquered all the other states to become the Qin Empire, the first Chinese empire, and with this the former frontier of Shaanxi and the Qin capital of Chang'an became the new Chinese heartland. The names of Yunnan and Hainan both connote places that, in ancient times, were really, incredibly, unimaginably far away. Yunnan literally means ""South of the Clouds"", and that is the actual origin of the name: it was the mysterious region south of the cloud-shrouded mountains that marked the southwestern boundary of the ancient Chinese civilization, but a more colorful legend states that one day, Emperor Wu of Han saw iridescent clouds on top of a mountain and ordered his servant to follow it. When the servant reported back that he found land south of those clouds, Emperor Wu named it ""Yunnan"". Hainan, on the other hand, comes from Hainan Island and the name means ""South of the Sea"", and was among many folk names that the island used to go by in ancient times including ""southern extremity"" (南极, n��nj��), ""edge of the sea"" (海角, hǎijiǎo), and ""edge of the sky"" (天涯, tiāny��). ""Xizang"", finally, has several explanations: the character �?(zàng) itself is said to be a transliteration of a Tibetan word for the region populated by the Tibetan ethnic group, which also included present-day parts of Sichuan and Qinghai provinces. ""Xi"", however, comes from a slightly different origin, as part of the general name that Chinese empires since the Yuan Dynasty (1271-1368) gave to their western border regions (西域, xīyù). Expert level: Guandong (关东, Guāndōng); all provincial abbreviations Guandong, not to be confused with Guangdong, was the old name for the northeastern region of China, which in English today is still called ""Manchuria"" (a name first created by French missionaries). The name referred to the region's position east (but mostly north) of the passes on the Great Wall, through which the Manchu rulers of the Qing Dynasty (1636-1912) eventually entered China and integrated the region into the Chinese homeland. Courtesy of The World of Chinese, www.theworldofchinese.com The World of Chinese (China Daily European Weekly 01/06/2017 page23)", -489,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876225.htm,Building a giant reputation,,"An architect ahead of his time, self-described rebel Wang Shu struggled for years with no commissions before going on to win the coveted Pritzker Prize When officials of Fuyang approached Wang Shu in 2012 to ask him to design an arts center, the Pritzker Prize-winning architect had a rather unusual condition. He wanted to have a hand in designing homes for local villages as well. Fuyang is located about an hour's drive from Hangzhou, Zhejiang province, and sits on the north bank of the Fuchun River, a place renowned for its natural beauty. Earlier this year, it became a district under the city of Hangzhou. - A view of the roof of the Gongwang Art Museum. The building is part of an arts complex that houses an archive and another museum. - The architecture of the Gongwang Art Museum blends traditional Chinese elements with modern aesthetics. Photos Provided to China Daily The local administration promptly agreed to Wang's request. The prospect of securing the services of this famous figure in the architecture world was reason enough to do so. In a display of just how much they revered Wang, the local authorities dedicated a prime piece of land near a mountain and by a river for the arts center. Should that piece of land in this location be used for real estate development today, it would be valued at a staggering 1 billion yuan ($150 million; 142.6 billion euros; 5121.5 billion). Such was Wang's influence. The arts center will comprise three buildings - Gongwang Art Museum, Fuyang Archives and Fuyang Museum - all of which will be designed by Wang. The Gongwang Art Museum is already open to public, while the other two segments are still under construction. Wang, 53, is the first Chinese person to win the world's top prize in architecture. Based in Hangzhou, Zhejiang province, he is currently dean of the School of Architecture at the China Academy of Art. A lover of traditional art, Wang grew up in the Xinjiang Uyghur autonomous region, where his mother worked as a schoolteacher. During the ""cultural revolution"" (1966-76), when schools across the country were shuttered, teachers and many others were forced to become farmers. As a young boy, Wang enjoyed working in the fields as it enabled him to feel a connection with the earth. He said that he also found fulfillment in physical labor. Wang loved reading and had fortuitous access to a range of books censored by the government when his mother was transferred from the fields to become a librarian. When he was 10, Wang moved to Xi'an, Shaanxi province, where tents were used as classrooms. He later witnessed how the locals would build new classrooms and was fascinated with the bamboo frameworks used in the construction process. As Wang was passionate about art and engineering, he decided to study architecture at Southeast University because he thought the discipline was a perfect blend of the two. He describes himself as a rebellious undergraduate who was always ready to challenge professors. Wang even wrote a thesis criticizing modern Chinese architecture. A keen lover of traditional Chinese art, with a particular interest in ancient gardens and landscape paintings, Wang was eager to incorporate the aesthetics and building techniques of such places into his own creations. But he was perhaps too far ahead of his time, because no one on China's architectural scene acknowledged or understood his ideas. For several years following his graduation, Wang had no commissions to work on. He said it was his wife, Lu Wenyu, who smoothed the rough edges of his personality. In 1997, the two of them founded the Amateur Architecture Studio. In his new book How To Build House, Wang pays tribute to his wife, conceding that ""for the first seven years of our married life, it was her who supported me"". The couple lived an idyllic life in Hangzhou where they would often stroll along West Lake and had plenty of time to spend sipping tea with friends. Wang says this calming experience nurtured his heart and in turn evoked a change in his perspective on life. ""You could spend a long time watching the rain, how it falls along the ridges of a building, how the streams flow and where the water drops. All this interests you. You would be thinking if it is possible to design architecture and show clearly where the rain comes from, where it flows, where it goes ... each turn and change in movement touches one's heart,"" he says. Wang's unique style was eventually recognized and he was presented with the opportunity to design the Ningbo Museum in Zhejiang province. Construction of the museum, which featured the use of bricks salvaged from old buildings that were demolished to make way for modern developments, took place between 2004 and 2008. Wang said he approached the structure as if creating a landscape painting. ""Looking at the museum from afar, you see the building as a painting of a mountain that is spreading out right in front of your eyes. When entering the structure, you'll find different landscapes at different positions, offering different perspectives. This is how traditional Chinese landscape paintings should be experienced, through free shifts of perspective and angles,"" Wang says. After this project, Wang was a part of the World Expo 2010 in Shanghai, for which he designed the Tengtou Village Pavilion, inspired by a painting of a mountain dwelling by Chen Hongshou (1599-1652). He says that stepping into the doorway of the pavilion is akin to entering a cave where different landscapes unfold at every step, like ""a page in an ancient leaflet of small paintings"". Wang also gained international recognition for designing a building on the Xiangshan Campus of the China Art Academy in suburban Hangzhou. In 2012, Wang received the accolade that most people in his profession can only dream of. He won the Pritzker Architecture Prize. The Pritzker jury praised his ""unique ability to evoke the past, without making direct references to history"", while calling his work ""timeless, deeply rooted in its context and yet universal"". Wang describes his approach as a combination of ancient aesthetics with modern utility. As an architect working in contemporary China, he believes that ""one has the opportunity to create something great, something lasting longer than his own life span."" For the Fuyang project, Wang was determined to reignite the ancient Chinese admiration for mountains and rivers which embodies a unique Chinese philosophy about seeking a life that is in harmony with nature. This was why he specified his unusual condition about designing homes for local villagers. Together with employees from Amateur Architecture Studio and students from the China Art Academy, Wang visited 290 villages in the area to inspect old houses and become immersed in the traditional way of life. He says that nature plays an integral role in the simple yet charming way of life in such areas which is today on the verge of extinction. He laments how many of the homes being built in the country today are soulless ""American-style big villas"" or ""fake antiques"" with white walls and gray tiles. Wang used the smaller residential structures in the village as a canvas for experimentating with ideas. He used stones, old tiles and materials usually considered worthless to construct new village homes and this process helped him determine what he would do for the design of the Gongwang Art Museum. While the museum might be large, its imposing size is tempered by the roof's long and soft curves which are reminiscent of the mountain ridges in the distance. But not everyone is in awe of Wang's creations. Some have raised concerns about leakage issues, high maintenance and how his buildings are too distinctive in style, drawing attention away from the exhibits on display. However, Li Lei, director of China Art Museum Shanghai, begs to differ, saying that a fine piece of architecture of the kind Wang has created is ""a bold challenge to pragmatism"". ""The building itself is a piece of art. ... Apart from the skyscrapers that are mushrooming all over China, the country needs architecture for aesthetic appreciation and spiritual fulfillment, too,"" says Li. ""As the nation's ideas develop in tandem with economic growth, there will be cultural awakening, and people will soon be able to appreciate great architecture."" zhangkun@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page21)", -490,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876224.htm,"Cleaner, greener - and becoming richer",,"Rejuvenated area in Zhejiang province is using its most famous attraction - Qiandao Lake - to bring in the visitors Waking up to birds chirping and a gentle breeze blowing is one of the pleasures of living near Zhejiang's tourism hot spot Qiandao Lake. More than 1,000 green islands form a labyrinth on the lake and the area is a sight for sore eyes. Everything is green, yellow and red when we visit the lake in Chun'an county, west of Hangzhou, in mid-December. - A traditional Chinese weaving experience, a historical street, and idyllic landscape are among what Zhejiang's Chun'an county can offer, in addition to the tourism hot spot Qiandao Lake. Photos by Yang Feiyue / China Daily - Tourists visit a caravan camping and container hotel facility in Chun'an county. Although the lake has become a household name, Chun'an might be unfamiliar to visitors from afar. That's why the county plans to use the lake to raise its profile. A clean environment, rich folk traditions and farmland-based leisure are what Chun'an offers, says Jiang Huaping, deputy head of the county. ""We want to develop rural tourism, so visitors come and see more than just the lake,"" says Jiang A river town, a historic street, caravan facilities and a traditional Chinese medicine plantation zone will be developed to spice up the tourist experience. Sport events will also be introduced, since Chun'an features diverse landforms, which are perfect for sports such as cycling and hiking, says Jiang. So far, the tourism potential of the area has lured a few young locals who worked in big cities to return home. Fang Chaoxi, in his 20s, is one of the younger generation who quit his white-collar job in Hangzhou and returned to set up an inn in the mountainous Pinghu village, which is just five minutes from the Qiandao Lake zone, in 2013. ""I decided that it was better for me to be my own boss,"" says Fang. His instincts have been proved right, and business is brisk. Now his business brings in roughly 600,000 yuan ($86,335; 69,944) a year. His guests come mostly from Jiangsu, Shanghai and Zhejiang. ""Most of my guests stay for around four days and just lie back and enjoy themselves,"" says Fang. Now, the village has roughly 40 inns developed by locals which can accommodate more than 700 visitors at a time. Local inn owners mostly promote their business online and the local offerings are very popular with the visitors. ""They enjoy the local cuisine, the fishing and fruit picking,"" says Fang. The village's white loquats are a specialty and the annual output could be worth as much as 13.6 million yuan, according to local authorities. Other young people have also returned since Fang came back. ""I was the first who returned, but now there are enough of us to play mahjong,"" says Fang. Meanwhile, driving through the county, we find well-paved roads lined with colorful plants as the local government has spent 1.6 billion yuan to develop green belts across Chun'an. Those belts extend to all villages in the region, with tea and fruit parks all over. All those belts run 350 kilometers through the county, making it easier for cycling, hiking and public transportation. ""They are lined with green plants,"" says Jiang. Improved infrastructure has also helped boost the development of the surrounding villages that used to be cut off. Feng Bo, who gave up his chemical business in Hangzhou's Xiaoshan district, and moved to Taoyuanlingjia village to start a fruit plantation three years ago, says: ""It used to take a whole day for us to travel to downtown Chun'an earlier. But now the distance has been shortened to just 40-minute drive."" Feng's plantation produces 50 fruits, including peaches and kiwis. ""Visitors can pick seasonal fruits throughout the year,"" he says. More than 10,000 visitors have been to his facility so far this year and the income from fruit picking has topped one million yuan. Feng also offers dining and barbecue facilities, and wooden villas are available for those who want to spend the night. Feng is now planning to build an open-air exercise facility. His business has also created job opportunities for locals. Among the things that makes him happy are his good relationship with the locals and the changes he has been able to bring about in the local environment. ""Everything was dirty and chaotic when I first came here, but now every household cleans up their own mess and keeps things in order,"" he says. A sewage system was also set up to treat waste water in the area, thanks to support from the government, he adds. Taoyuanlingjia is just one example of the transformation taking place in Chun'an. Jiang says that so far, the local government has spent approximately 2 billion yuan to develop a sewage system and roads in the area, and modern toilets have been built across the county. ""So, all sewage is treated to ensure clean water and soil,"" he says. Animal waste is also being taken care of. Locals have benefited from improving tourism and have thus began to protect the greenery. ""Preserving water resources matters for Zhejiang, and a tourism-led development model is the ideal way out,"" he adds. yangfeiyue@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page22)", -491,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876194.htm,"At Stanford, fairway is classroom",,"Stanford freshman Emily Wang Ziyi had a high SAT score, was a student union president and enjoyed reading, writing, calligraphy, music and jogging. But what really helped the 18-year-old get into the elite US university was something more rare: her potential to be an international golf star. ""Emily is the epitome of a student-athlete,"" said Stanford golf head coach Anne Walker. ""She has pursued an extremely rigorous academic schedule in Beijing and, at the same time, traveled internationally to compete in the best golf events."" Many Chinese families with children who play golf were also overjoyed at Stanford's decision, but for a more practical reason. For them, a golf scholarship from such a prestigious US university is another testimonial affirming a unique strategy of college preparation that centers on the game as a scholarship vehicle. - Pupils attend a gold training class at a golf school in Shanghai. The school, established in 2015, specializes in golf training for adolescents. Gao Erqiang / China Daily In the past few years, dozens of Chinese students have played golf on US sports scholarships that were won after years of hard training and with considerable parental investment of money and time. The trend has accelerated since 2015 and there is now a bigger crop ripe for the picking, with almost 20 students from the Chinese mainland signing with golf programs at universities including Stanford, Princeton, the University of Southern California, the University of Washington and the University of California, Berkeley, according to the American Junior Golf Association, which tracks students' commitments to college offers. While Wang is the youngest ever to win the China LPGA Tour, several others have the same, if not more illustrious, golf resumes, despite their youthfulness. They include University of Florida freshman Andy Zhang who, at the age of 14, was the youngest golfer ever to compete in the US Open. He Muni, who was born in Chengdu, known for amateur appearances at pro events and top junior finishes. She will compete on the USC women's team in the spring. Most of the teens learned the game at a young age, with their fathers as their first teacher. All have come from upper-middle-class families, since training and competition are expensive. Wang's mother, Liu Yan, who advocates golf as a steppingstone to US universities, says she had devoted all her time to her daughter as her cook, driver and chaperon. Her father trained with her during weekends and took leave to be her caddie at important competitions. However, Liu says she believes that extraordinary self-discipline was the key to her daughter's success. Likewise, Dan Webb, CEO of Palm Springs Golf, an academy for local children in southern Shenzhen, says he believes young Chinese golfers' greatest advantage is their way of thinking. ""The Chinese philosophy produces an extreme work ethic, focus and humility,"" he says. ""When circumstance allows self-confidence to be introduced within this philosophy, you have the making of a serious golf player, perhaps a champion."" Luo Ying caused a stir in Seattle in 2013 when she played for the University of Washington while maintaining a 4.0 grade point average. It was fun playing the sport she loves and getting paid for it, she told a recent gathering of Chinese parents and children who were eager to follow her path. yuanzhou@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page15)", -492,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876193.htm,Stamps set to mark Year of Rooster,,"China Post Group Co has released a new set of stamps to celebrate the Year of the Rooster, based on the Chinese zodiac. The set, which went on sale on January 5 at designated post offices, includes two stamps and has a face value of 2.4 yuan ($0.34; .33 euro; 28p). One stamp features a running rooster, while the other displays a hen with two chicks. Han Meilin, designer of the stamp set, said the Chinese have a special affinity for roosters because their silhouette resembles the shape of China on a map. ""The stamps symbolize family harmony,"" he added.It is the third time that Han, 80, has accepted the invitation to design Lunar New Year stamps. The rooster is the 10th Chinese zodiac in a 12-year cycle, with the previous Year of the Rooster being in 2005. The coming Year of the Rooster starts on Jan 28, 2017. - Rooster-themed stamps to celebrate the Year of the Rooster are displayed at a post office in Weifang, Shandong province, on Jan 3. Zhang Chi / For China Daily (China Daily European Weekly 01/06/2017 page15)", -493,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876192.htm,$503b earmarked for high-speed railway plan,,"In the next five years, China will invest 3.5 trillion yuan ($503 billion; 478 billion euros; 407.5 billion) to accelerate railway construction, including expansion of the country's high-speed rail network to 30,000 kilometers, a senior official said on Dec 29. ""By 2020, more than 80 percent of China's major cities will be connected by high-speed railways,"" says Yang Yudong, vice-minister of transportation. China released a white paper, titled Development of China's Transport, which Hu Kaihong, director of the State Council Information Office's Press Bureau, says is the first to review the sector's tremendous changes in recent decades and to set goals for its future. - The world's highest bridge, at 565 meters, opened on Dec 29 on the border of Guizhou and Yunnan provinces. In the past few years, China's railway network, especially high-speed lines, has undergone dramatic change. He Junyi / For China Daily Over the past few years, China's railway network, especially high-speed rail, has undergone dramatic change. From 2011 to 2015, China invested 3.58 trillion yuan to build 30,000 km of railway. By the end of this year, the nation's total railway length will reach 124,000 km, including 20,000 km of high-speed railway, accounting for 65 percent of the world's total high-speed rail. In July, the National Development and Reform Commission issued an updated national railway development plan envisioning a 175,000-km rail network by the end of 2025, with 38,000 km of high-speed rail. However, the network still faces challenges, especially in the less-developed western part of China. Yang says he is confident that lines in western China will eventually become profitable. ""Plus, building high-speed railways in less-developed regions is not only about recouping investment. It is part of the big project of rejuvenating the whole region and the country's economy. The high-speed rail linking Beijing and Shanghai showed a profit last year, Xinhua News Agency reported in July, quoting Tianjin Railway Construction Co, a shareholder of Beijing-Shanghai High-Speed Railway Co. Yang Hao, a professor of rail transportation at Beijing Jiaotong University, says the economic returns of a high-speed railway network shouldn't be judged solely on whether lines are profitable, since these railways can leverage the development of such industries as tourism, logistics and real estate. According to China Railway Corp, construction began on Dec 29 on a high-speed line linking Guiyang, Guizhou province - a transportation hub connecting members of the Association of Southeast Asian Nations -and Nanning, capital of the Guangxi Zhuang autonomous region. The 482-km line will connect the Shanghai-Kunming railway and the Chengdu-Guiyang railway to the north, and will also link to southern coastal areas including Hainan province and Guangzhou, Guangdong province. The new will accelerate communication between China and ASEAN countries and play an important role in the Belt and Road Initiative. Contact the writers at suzhou@chinadaily.com.cn Transportation in China Development of China's transportation network Railway By the end of 2015, China's railway network totaled 121,000 km, ranking second in the world. It has the world's longest high-speed railway network, totaling 19,000 km. By 2020, China will expand its high-speed railway network to 30,000 km, connecting more than 80 percent of its big cities. Highways By the end of last year, China's highways totaled 4.58 million km, and the country ranked No 1 in the world in expressway construction. Civil aviation China had 210 civil airports by 2015, for which 26 handle more than 10 million passengers annually, and 51 handle over 10,000 metric tons of cargo and mail each year. Ports At the end of last year, China's ports had more than 31,000 quay berths for production use, and the number of berths for 10,000 tons or above reached 2,221. (China Daily European Weekly 01/06/2017 page14)", -494,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876191.htm,Xi insists on 'strictest' control over food safety,,"President urges harsher penalties for those who endanger public's well-being China's top leaders are calling for rigorous measures to ensure food safety. ""Improving food safety concerns the health and life of more than 1.3 billion people in China, and we can never be too strict on the issue,"" President Xi Jinping said, according to a China Central Television report on Jan 3. In recent years the Chinese government has made great efforts to improve food safety. But while it has been constantly improving, many problems remain, Xi said. He urged authorities at all levels to adhere to ""the strictest standards"" for ""the strictest supervision"" of food safety, and the imposition of punishments of greater severity for those guilty of endangering it. China will also build a professional team of food safety inspectors and improve law enforcement capacity at the grassroots level to improve safety at every link, he said. Premier Li Keqiang also urged local governments to give priority to ensuring the safety of the food chain and improving supervision mechanisms. Improving safety should start at the source, and irregularities must be severely punished, he said. Zhang Gaoli, vice-premier and head of the Food Safety Commission of the State Council, China's Cabinet, said China's food safety situation is stable in general but at the same time challenging and complex. Zhang spoke while hosting a commission meeting on Jan 3. He urged authorities across China to adopt strict measures to fight irregularities, including improving legislation, such as considering criminal punishments in cases of food adulteration and fake food products. Zhang also urged authorities to release the 13th Five-Year Plan for Food Safety (2016-20) and increase investment in safety supervision and law enforcement. The integrity of food production systems has been a major concern for the Chinese people, especially after a severe case of melamine adulteration in 2008, in which thousands of infants across China were sickened and four died after ingesting melamine-tainted infant formula made by Sanlu Group, a leading domestic dairy operator. Melamine, a chemical used in plastics, was used to make it appear that the products contained high protein. Food safety ranked at the top of a list of 10 safety issues that most worry Chinese, according to a survey released by Xiaokang magazine and Tsinghua University in July. In January, the China Food and Drug Administration published a list of 35 catering companies that used opium, banned as a food additive, in their dishes. The list included some famous chain restaurants. China has seen improvements since it adopted its revised Food Safety Law in 2015. Tests showed that 96.8 percent of samples met standards in 2015, an increase of 2.1 percentage points compared with the previous year, according to a report by law enforcement teams dispatched by the National People's Congress, China's top legislature. The report was based on inspections in 10 provinces, municipalities and autonomous regions. The report also noted that food safety in China still faces major challenges, including lack of law enforcement capacity at the grassroots level caused by lack of equipment and talent. And many testing institutes in China lack adequate capacity for food inspections and testing. wangxiaodong@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page15)", -495,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876190.htm,New sectors are opening up to foreign investors,,"Recent government guideline will lower entry hurdles in wide range of fields China is opening more sectors to foreign investment and introducing a slew of measures to invite participation, top officials say. The State Council's executive meeting on Dec 28, chaired by Premier Li Keqiang, approved a new guideline to further attract foreign investment and advance China's opening-up. ""We should take measures with great effectiveness in attracting foreign capital,"" Li said. Under the new guideline, foreign investment access hurdles will be dropped in a number of manufacturing sectors, including rail transportation, motorbikes and ethanol fuels. Foreign capital will have access to fields like energy, water conservancy, environmental protection and utilities via franchise agreements. ""China's economy develops as we continue our opening-up strategy. Besides advanced technology and experience in management, China also needs capital investment from overseas,"" Li said. The catalog for industrial access for foreign investors also will be amended to match the new measures. Foreign capital will be encouraged to enter high-end manufacturing, as well as related services, such as industrial design and logistics. Accounting and auditing, architecture design and rating services will be open to foreign investment for the first time. Foreign-funded companies will be cleared to join the national science and technology program as equals with domestic ones, and enjoy favorable policies under the ""Made in China 2025"" strategy. The guideline emphasizes equal treatment for foreign investors, and no additional restrictions are allowed. Li said that government at all levels should further streamline administration to reinforce the implementation of existing policies in attracting foreign investment and to reduce institutional costs. The new guideline highlights consistency in policies designed to attract foreign investment. Better protection of intellectual property rights for investors is also covered. The government will work to make it easier for foreign investors and experts to live and work in China. Foreign investment in the ""encouraged categories"" in central and western areas will receive financing, land and taxation incentives. Li has emphasized the importance of foreign investment this year. Addressing the UN General Assembly in New York in September, he vowed that China will carry out a new round of opening-up. Foreign investment is vital for China's economic transformation and structural adjustment, according to Chen Fengying, a researcher in global economies at the China Institute of Contemporary International Relations. ""Multinational companies are facing competition from Chinese rival enterprises and rising costs of labor, but the market potential of Chinese consumers and China's advantage in educated talent still attract overseas investors,"" Chen says. China, which now is encouraging foreign investments to move into high-end, low-carbon and sustainable industries, can improve the business environment and lower market access barriers by introducing negative lists and granting multinational companies national treatment, which may maintain its attractiveness, Chen says. Negative lists include only those activities that are off-limits in a sector, and all other activities are considered open. Contact the writer at zhangyue@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page14)", -496,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876160.htm,Innovation requires tolerance of failure,,"China's state-owned enterprises are administered by governments at various levels. The number of those monitored by the State-Owned Assets Supervision and Administration Commission of the State Council stands at 103, after years of streamlining efforts. But as shown in the recently issued Outline of Central Government-led Enterprises' 13th Five-Year Development Plan, they are saddled with great responsibility in achieving innovation-driven development in a bid to help realize the country's goal of power through innovation. In fact, in recent years, based on some inherent technology advantages, central government-led enterprises have continuously refreshed the innovation record. For example, scientists have utilized aerospace plasma technology to overcome the lean coal ignition problem; China National Offshore Oil Corp completed its first high-yield well test in 2015; and the Shenzhou-11 spacecraft solar wing was 100 percent made in China. The R&D input by central government-led enterprises has exceeded 25 percent of China's total, which is already responsible for more than 2 percent of its GDP. In 2015, central government-led enterprises won 86 National Science and Technology Awards, or 34 percent of the total. However, they still have a long way to go. The outline has raised a new goal for the enterprises: continuously optimizing the structure of state-owned capital; substantively improving the enterprises' innovation-driven development capacity; cultivating a group of multinational corporations with innovation capacity; and boosting international competitiveness. Compared with the multinationals in developed countries, the Chinese enterprises lack strong in-house innovation. Many in developed countries have large-scale R&D institutes, and a large number of personnel. The R&D input remains at a high level. Take Dupont for instance. The company had Charles J. Pederson, winner of Nobel Prize in Chemistry in 1987, in its innovation lab. Because of the comparative weakness of the in-house system, central government-led enterprises in China are in short of originality and innovative capabilities. Right now, a large proportion of R&D capacity in China is confined to universities and research institutions, rather than being possessed by enterprises. For future innovation capacity building, China needs to adjust the distribution of R&D resources, transferring more to enterprises. Otherwise, the country may get a lot of R&D output, but without harvesting the fruits of innovation. Since the reform and opening-up policy was adopted, China has developed into the world's factory and has achieved fast economic growth. The technology progress pattern of this round of fast economic development was ""technology importation, assimilation and re-innovation"". Most of the innovation activities carried out by large government-led enterprises - such as China Railway Corp, China Mobile, China National Petroleum Corp and China Petroleum and Chemical Corp - followed this trajectory. However, while the technology gap between China and developed countries is continuously narrowing, the previous pattern of technology progress will not be sustainable. If Chinese enterprises cannot upgrade from technology follower to innovation leader, it can be foreseen that they will fall into a trap in the technology race - that is, while they may approach the high technology level through the old learning pattern, once a new technology field comes into being, they will find themselves on the ebb again. Therefore, at present, the government-led enterprises face a new innovation goal, with internal and external challenges. Furthermore, the previous innovation trajectory needs to be overhauled as the country enters a new round in global technology competition. Notably, the Chinese government has provided strong policy support to its enterprises, including the Interim Incentive Measures on Equity and the Dividend for the State-owned Science and Technology Enterprises. But while a supporting political environment is in place, the enterprises still need to make efforts from within to change conventional thinking and behavior, and cultivate an innovation culture. They need to develop a culture that tolerates failure. Original innovation progresses by drawing from failures. However, the government-led enterprises do not have such a culture, which means few projects can be terminated halfway. Nowadays, a newborn innovation model - ""iterative innovation"", which pushes semi-mature products to the market, and then continuously improves them based on market feedback - has been adopted by some industries that are in highly uncertain and competitive positions. This new model is flexible and effective, bringing many enterprises to a position of advantage in an environment of furious competition. Central government-led enterprises can hardly embrace this innovation model without rejecting the current management model and creating a new mindset that bravely faces and utilizes failures in the course of technology advancement. Meanwhile, the enterprises need to develop a culture that dares to put innovative R&D personnel at center stage. When they plan projects, R&D personnel are not in a position to make their own decisions. Therefore, the incentives and enthusiasm for original innovation are not in place within the enterprises. The ice of bureaucratic hierarchy and authority division should be broken, opening smooth channels for innovation activities. In an era of globalized innovation, manufacturing activities will no longer be high value-added. Chinese enterprises developed strong manufacturing capacity in the past, which supported industrialization. However, it only brought China to the starting line in the new competitive global race, and cannot guarantee winning the medal for technology power. Central government-led enterprises need a more risk-taking innovation culture, putting innovation first on their agenda. They need innovation multitasking to realize the transformation mission. Liu Xielin is dean of the Innovation and Entrepreneurship Research Centre at University of Chinese Academy of Sciences. Wu Sheng is a doctoral student at the academy. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 01/06/2017 page10)", -497,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876159.htm,"Open, frequent exchanges will foster better UK ties",,"As the world faces more uncertainty, partnership between nations could provide a platform for increased understanding As the British and Chinese governments concluded their latest strategic dialogue on Dec 20 - with both sides reaffirming their commitment to a Sino-British ""golden era"" amid the uncertainty created by Brexit - the world today looks very different from October 2015, when President Xi Jinping paid a high-profile state visit to the United Kingdom. The first challenge 2016 brought to UK-China ties was Brexit, which will require the UK to develop its China policy without the benefit of a multilayered approach where objectives are pursued both bilaterally and with the support of the more influential European Union. The UK will therefore find itself on the spot more with respect to China, whether on human rights or trade policy. This might also create opportunities for Beijing. Most attention has focused on a free trade agreement, with business voices expressing support for such a move. However, caution is in order. An agreement that is good for the UK will involve much greater access to China's service sector, but it is not yet clear whether China is prepared to grant that. Besides, as many have pointed out, depending on the content, a UK-China agreement could constrain London in reaching an all-important future trade agreement with Brussels. Nor is it clear that it would push the EU toward its own free trade agreement with China, as Beijing might hope. The second major factor that will hang over the agenda is uncertainty over the impact of a Donald Trump presidency in the United States. Although it is still too early to judge what strategic direction Trump will take, judging by his critical tone on the campaign trail, there is a good chance he will take a tougher line on China than his predecessor Barack Obama. We can expect more uncertain times. This is not good for Europeans, who are wary of the next US president. Greater uncertainty and friction in US-China relations tend to heighten tensions in the Asia-Pacific region, making the regional prosperity and stability that contribute to Europe's economic security more difficult to achieve. The UK, whose new government has reiterated its commitment to pursuing good relations with China, may find itself at the sharp end of this, especially as it concurrently looks to get the London-Washington relationship onto an even footing. The challenges for UK policymakers can be seen in some recent mixed messages about its approach to East Asia. The British foreign secretary said in a recent talk at Chatham House that ""the emerging balance of power system in Asia needs the influence of friendly countries"", while there has been some lack of clarity over remarks by the UK's ambassador to the US on the possibility of the British military engaging in ""freedom of navigation"" operations in the South China Sea, something that would exacerbate the security dilemma in the region. The UK, ideally working with the EU despite Brexit, should be encouraging a modus vivendi between China and the US in East Asia, on the basis of a balanced and impartial approach. London's response to the Asian Infrastructure Investment Bank and the Belt and Road Initiative (the Silk Road Economic Belt and 21st Century Maritime Silk Road) set the right tone, demonstrating an openness to a changing world order. The talk of a Sino-British ""golden era"" aside, the more significant achievement of Xi's state visit to the UK was the establishment of a comprehensive global strategic partnership. This partnership should provide the basis for open, honest and frequent exchanges of views on the full range of global interests. Of course, this does not mean the two governments agree on everything - far from it. But it does provide a platform for responding to the uncertainties facing the world, and for exploring reforms, to ensure the international system reflects changes in the global and regional distribution of power. The author is a senior consulting fellow at Chatham House. (China Daily European Weekly 01/06/2017 page12)", -498,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876158.htm,Stop capital flight by reducing taxes,,"The way to encourage industries to keep jobs in the country is to lower the burden of costs they are hampered by News that China's largest automobile glass-maker Fuyao Group is to invest $600 million (570.3 million euros; 486 million) to build a 2,000-worker factory in Moraine, Ohio, in the United States should set off alarm bells, prompting the Chinese government to lower taxes and operating costs for manufacturing industries to prevent the drain of Chinese capital and jobs. Responding to criticisms of his investment abroad in a recent interview, Cao Dewang, chairman and founder of Fuyao Glass Industry Group in Fujian province, complained about the heavy tax burden in China. Cao, who started investing small amounts in the United States in 1995, said it took him more than 20 years of observation to make the ""prudent"" decision two months ago, because there is an obvious gap in production and operational costs between China and the US. Taxes on enterprises, electricity tariffs and natural gas costs in China are all higher than in the US, he said. And compared with a number of fees an enterprise has to pay for using land in China, land is virtually free to use in the US, thanks to local subsidies. The high cost of production and the heavy tax burden on manufacturing enterprises are facts many in China already knew. But it is Cao who first highlighted that in China they were not just high, but much higher than in the US. At the recently concluded Central Economic Work Conference, the central government pledged to lower taxes, fees and other costs to foster the development of the real economy. So Cao's remarks immediately after the conference should spur the authorities in charge of reform to put their words into action. Although China has deepened economic reform through a series of measures since late 2012, the production and operating costs for enterprises, including labor and institutional transaction costs, have increased. All costs ultimately find their way into retail prices paid by consumers, so, many enterprises, including well-established ones, will either have to accept the loss of their competitiveness as buyers opt for alternative products at lower prices, or they can relocate overseas to places where production costs are lower and the business environment better. In fact, many Chinese enterprises have moved their production bases to foreign economies, especially Southeast Asian countries, in recent years. And this trend is likely to gather pace in the future. Because of its re-industrialization strategy, the US government is seeking to attract manufacturing industries, including foreign ventures, back to the country, as they are not only important taxpayers but also job generators. If the cost gap Cao talked about is true, Chinese people should not lament the shifting of Fuyao Group's production unit; instead, they should appreciate the fact that many Chinese enterprises have not moved to the US. The government has made some breakthroughs in tax reform. But it's far from enough. The enterprise tax rate in China is still markedly higher than in developed countries. So the government should not only see how much tax it has cut; it should also see how much could still be cut. US President-elect Donald Trump has vowed to lower enterprises' tax from 35 percent to 15 percent. The Chinese reform authorities should show the same sense of urgency to protect Chinese capital and enterprises. Behind the tax reform is a deeper level of reform - that of the government itself, as well as the national administrative system. The author is a Beijing-based financial columnist. The article was first published in Beijing News on Dec 28. (China Daily European Weekly 01/06/2017 page12)", -499,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876157.htm,Even men can suffer from domestic violence,,"The Mentougou district court in western Beijing recently issued a restraining order against a woman who had abused her husband, surnamed Zhang, in a number of incidents of domestic violence. It is the first such order to be issued in Beijing, and one of the first of its kind nationwide. The court order, not surprisingly, has sparked a debate on social media. While many netizens have expressed sympathy for the man, some say they do not believe a man can be beaten up by his wife. A few have even made fun of Zhang, saying he is ""not man enough"" and ""a true man should fight back"". There is a common misunderstanding about domestic violence in China. When people talk about domestic violence, they envisage a man beating up his wife. That to a large extent is true, especially because men in general are stronger physically than women. But that does not necessarily mean only men can be bullies. Last May, in a primary school in Huaiyuan county, Anhui province, a 13-year-old boy who was not identified by the media bullied his entire class of seven. He is shorter than the rest of his classmates and does not have any physical advantage, yet he succeeded in bullying his classmates because of his aggressive character. That happens in many families, too. Another common misunderstanding about domestic violence is that it is a family affair in which the judiciary should not intervene. This idea runs so deep in some people's minds that they have even invented precepts to support their view: A good judge does not pass rulings in cases related to family affairs. No one is innocent in a fight. The victim must also have faults. When incidents of domestic violence happen in some rural areas, relatives and friends of the family often intervene only to persuade the victim to forget the physical pain and humiliation for the sake of ""maintaining peace in the family"" and some victims even agree to it, which often leads to more severe domestic violence. An All-China Women's Federation survey showed that victims call the police only after suffering domestic violence 35 times on average. Worse, some judicial officials seem to share a distorted view, too, and thus adopt a laissez-faire attitude toward domestic violence. There have been too many cases in which police have refused to detain the perpetrators of domestic violence, claiming that it is a ""family matter"". This belief is so widespread that only last July researchers at the Hunan Police Academy conducted their first training course for police officers to teach them how they can help domestic violence victims. Surprisingly, even during the training course, some officers insisted on not intervening in family matters, because they could not distinguish between normal family matters and domestic violence. That's why the Mentougou court's restraining order is important. It not only breaks the common impression that only women suffer domestic violence but also shows the judiciary's firm determination to protect all domestic violence victims. This, in the long run, will help improve the rule of law in China. It may be not possible to root out domestic violence from Chinese society within a short period, but we hope at least common misunderstandings about domestic violence can be removed from people's minds. The author is a writer at China Daily. Contact the writer at zhangzhouxiang@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page13)", -500,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876156.htm,Focus shifts from growth to structure,,"Government report conveys confidence in the economic transition and an emphasis on deeper, more difficult reforms Much was decided about the direction of China's economy at this year's Central Economic Work Conference, which ran from Dec 14 to 16 in Beijing. Each December, Chinese leaders use the conference to map out their priorities for the year ahead, and to issue a communique summarizing the policies and targets they have chosen. Readers of the communique of the just-closed talks can tell that, other than the tasks to continue from 2016, there will probably be more, rather than less, reform measures undertaken next year. However, the communique did not mention a single word about growth. This is quite contrary to the nearly four-decade-long practice of a government that built its legitimacy on delivering the world's top GDP growth rate. In the days following the conference, a research report by the Chinese Academy of Social Sciences recommended that 2017's GDP growth should be set at 6.5 percent, in line with the forecasts of many international investors. There has been little debate this year whether chasing so much growth is realistic, or whether it's actually a good thing. What was not articulated is symbolic of change. It represents a shift of focus. From the initial few years of its economic transformation, China has gained experience and confidence in maintaining a level of growth to, by and large, generate the jobs it needs without relying on exports and bailout money for state-owned enterprises. Compared with the first-generation problems in the transition, namely whether the country can survive shrinking export orders and the relocation of manufacturers to cheaper cities overseas, China can now focus on the more difficult problems, most importantly to accumulate experience in managing and protecting its financial system. This is exactly the focus of the Central Economic Work Conference - and its central task for 2017. China's emphasis on speedy growth has historical roots dating to the beginning of the reform era. Deng Xiaoping, the leader of the reform, once said: ""Only development"" provides a solid basis for the future. Most Chinese interpret development in this case as meaning the growth rate. Through the 1990s and 2000s, China was the fastest-growing economy in the world. The speed of growth remained an issue of debate after the government-led transition began in 2013. International observers asked time and again whether a certain growth target is within China's reach, considering the difficulties it faces at home and in the rest of the world. Last year, the government worked hard to achieve a year-on-year growth rate of 6.9 percent. The rate was 10.3 percent in 2010. The question remains whether it still makes sense to keep a growth target, be it a fixed figure or a certain range. The official target in Premier Li Keqiang's government work report to the National People's Congress is set as above 6.5 percent through the 13th Five-Year Plan (2016-20), and 6.5 to 7 percent for 2016. Some suggest that China should abandon its growth target once and for all. This is in order to avoid making big efforts to sustain growth when there are so many limitations, and for the government to save face if it fails to deliver the set rate. Since China managed to maintain a 6.7 percent growth rate in the first three quarters of 2016, little doubt exists about the achievement of its full-year target - even as its export orders continue to dwindle and world commodity prices continue to edge up. In fact, in the last couple of years, exports have stopped playing as important a role in China's overall growth. And the fact that the nation is no longer set on being the world's factory may well be seen as a timely precaution against the looming protectionism in today's world. While the Central Economic Work Conference said nothing about growth, it did not mention foreign trade either. This suggests even more that China's shift of focus is serious. So people may expect more attempts in 2017 to improve the country's financial health, and especially to control the risk of the dangerous debt burden on its enterprises and local governments. The author is an editor-at-large at China Daily. Contact the writer at edzhang@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page13)", -501,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876155.htm,British railways have run out of steam,,"No light at the end of the tunnel for a transport system that once was the undisputed world leader If you want to travel from Kunming to Shanghai, a mere 2,252 kilometers, it will take you 11 hours and 15 minutes- and you can bet your fancy high-speed train will be right on time. If you want to travel the 664 km from London to Edinburgh, it will take you nearly five hours, the train may well be delayed and you will have to pay extra to guarantee a seat. Traveling on China's new high-speed, state-of-the-art trains costs you an average of 100 yuan an hour, travelling at around 350 km/h. Roughly put, it means the ticket between Kunming and Shanghai should cost you around 1,115 yuan, around 130 ($159; 152.6 euros) at current rates. Don't ask me how I know this stuff - I just do. Taking that nightmare London-Edinburgh route - and it can be a nightmare - will cost you around 150. For a country that invented railways (1825, George Stephenson's Stockton-to-Darlington line in northeast England, since you ask), Britain has made a pretty poor job of it in recent years. And if strikes, delayed engineering works, malfunctioning signals and poor infrastructure weren't enough, the government has just announced a 2.3 percent rise in rail fares across the board. I commute to work every day and, as things go, I'm luckier than most. Southeastern, which operates my service, is a little better than some of the other operators, although each time I climb the stairs from the car park I seem to be greeted by ""Southeastern apologizes for "", followed by the latest delay, excuse or cancellation. Reasons offered include unruly passengers, ice, snow, rain, leaves on the line, missing train crew and, believe it or not, strong winter sunshine in the drivers' eyes. I've always loved trains, especially the mystery of steam. I confess to having a box full of Hornby Dublo model engines, those splendidly made electric models of the golden era of British steam. I have beautifully detailed models of the Flying Scotsman, the Duchess of Hamilton and designer Sir Nigel Gresley's Mallard, a streamlined monster that set the world speed record for a steam engine in 1938 and has never been beaten. I suppose it goes back to my childhood in the 1950s, when my father would take my mother and his sister by car (a 1937 Austin 14) from Oxford to Hartlepool, while we boys would go with my uncle by steam train, changing at Darlington for the two-hour run to West Hartlepool. What a trip - Mars bars, pork pies, fizzy drinks and a fresh comic book for the journey. Boyhood heaven. All that, of course, was spoiled by a gentleman called Dr Richard Beeching, whose 1963 report on the state of Britain's railways resulted in a shortsighted slashing of 2,636 stations and 5,000 miles of track. I personally don't think the system has ever recovered. Since then, the nation's rail network has become a political football. Of all the public facilities, railways should be run by one central entity - frankly, I don't care if it is state-run or privately owned. After all, China, France and Germany, to name but a few places, all have one entity controlling their rail systems and it seems to work for them. Here, although the infrastructure is run by Network Rail, the services are run by a series of franchises awarded by the government, with varying degrees of success. Try to buy a ticket and you will be faced with a bewildering array of choices. No wonder many Britons opt to drive, overcrowding the motorways and adding to pollution. Next time I'm in China, China Railway Co will be getting my business, that's for sure. The author is managing editor of China Daily European Bureau. Contact the writer at chris@mail.chinadailyuk.com (China Daily European Weekly 01/06/2017 page11)", -502,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876154.htm,Ivory trade ban key to saving elephants,,"Perhaps now profiteering will be seen as less respectable - and more people will enjoy seeing the glorious creatures in the wild Every 15 minutes or so an elephant is slaughtered by poachers to meet an international demand for ivory that threatens to wipe out the species within little more than a decade. An estimated two-thirds of that demand has come from China, where members of a growing middle class associate carved ivory products with luck and prosperity. The trade in trinkets, chopsticks and figurines has remained legal even though the government moved to ban imports of ivory. China has now taken a historic step to phase out the commercial ivory trade by the end of 2017, a decision that has been greeted as the single biggest hope for the survival of elephants since the modern poaching crisis began. ""Ending the legal ivory trade in China - the world's largest consumer of elephant ivory - is critical to saving the species,"" wrote Elly Pepper of the US-based Natural Resources Defense Council, welcoming the Chinese government's decision. Britain's Prince William, a prominent wildlife campaigner, said the Chinese ban was a potential turning point in the race to save elephants from extinction. ""I congratulate the Chinese government for following through on this important commitment,"" he said in a statement. Beijing's action may indeed turn out to be the most important measure to preserve the species since the African elephant was first listed as endangered in 1989. But many other factors are involved and experts are reluctant to predict that the path to guaranteeing the future of the world's largest land mammal is now secure. The Chinese authorities had already taken vigorous action against the illicit trade in ivory, which figured in President's Xi Jinping's well-publicized crackdown on corrupt officials. As recently as November, a man was jailed for 14 years after the biggest-ever seizure of illegal wildlife products in Beijing. When the prospect of a ban on the legal trade was first raised, officials publicly burned stockpiles of ivory. However, as China Daily reported, 40 tons of legal ivory remained stockpiled at the end of last year and could become a complicating factor in instituting the new ban. Experts also believe the effectiveness of the ban will depend on strengthened measures to combat smuggling. A recent surge in demand for ivory and rhino horn in Vietnam has been linked to possible smuggling networks. Under the measures China announced at the end of December, domestic ivory carving workshops and factories will shut down by the end of March and registered traders and processors will be phased out by the end of the year. Activists had argued that the legal trade had helped to disguise the illegal trade, because it was often impossible to determine the origin of raw ivory. The new ban addresses that challenge. However, there is still much to be done beyond China's borders to confront the extinction threat. There is a need to deter poachers who earn a mere handful of dollars per kilo of ivory that is then sold to end-users for hundreds of times more. That will involve more effective aid programs to improve the livelihoods of poor rural communities. But it will also demand more effective anti-poaching tactics. Blue Sky Rescue, one of China's largest nongovernmental disaster rescue organizations, has sent volunteers to Africa to join local efforts in wildlife protection. Meanwhile, the UK government announced late last year that it was partnering with China to train African border forces to spot and stop smugglers involved in the illicit animal products trade. Such measures will help reinforce the impact of the ban on the legal trade announced by Beijing. Ultimately what will save the elephants will be a change in public attitudes. The state, wildlife activists and celebrities have joined in campaigns to educate Chinese consumers about the devastating impact of the ivory trade. Now that the legal trade is being banned, the desire to own ivory may become even less respectable. Prosperous consumers may eventually be persuaded that the most exciting way to enjoy ivory is to book an African safari and go and see it while it's still attached to a living elephant. The writer is a senior editorial consultant for China Daily UK. (China Daily European Weekly 01/06/2017 page11)", -503,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876149.htm,Quotable,,"No one should fall behind on the road to a well-off society. ... We adhere to peaceful development, and resolutely safeguard our territorial sovereignty and maritime rights and interests. ... Chinese people will never allow anyone to get away with making a great fuss about it."" President Xi Jinping in his New Year's address on Dec 31. He said that ""only hard work will make dreams come true"". ""China's efforts are widely recognized, and we hope all sides will avoid remarks and actions to escalate the situation."" Geng Shuang, foreign Ministry spokesman, speaking at a regular news conference on Jan 3 after US President-elect Donald Trump said China was not helping with the issue of the denuclearization of the Korean Peninsula. ""China has reduced its reliance on exports for growth to a great extent, thanks to its prompt shift to domestic demand when global market demand was no longer in high growth mode in the last few years."" Zhang Yansheng, chief economist at the China Center for International Economic Exchanges, a think tank close to the government. (China Daily European Weekly 01/06/2017 page2)", -504,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876148.htm,IN BRIEF (Page 2),,"- A stone lion on a bridge in Tianjin is covered with a mask in the heavy smog that hit much of the country's northern region recently. At least 32 cities issued red alerts for air pollution, the highest emergency response in the four-tier system, according to the Ministry of Environmental Protection. Tong Yu / For China Daily Smog prompts 309 flight cancellations in Tianjin Hundreds of flights have been canceled in north China's port city of Tianjin because of the heavy smog that limited visibility on Jan 1. The municipal government has issued an orange alert for smog and haze on Saturday night. An orange alert means heavy pollution -- PM2.5 higher than 150 -- for three consecutive days. A total of 309 flights have been canceled, 15 forced to land in other airports and one returned as of 3 pm, according to the airport. Emergency plans have been activated to take care of the stranded passengers. TV series focuses on corruption cases A three-part anti-corruption documentary, produced by the Communist Party of China's Central Commission for Discipline Inspection and China Central Television, began airing nightly on Jan 3 at 8 pm on CCTV-1. The series provides the first full look inside the stories of corrupt officials, including luxurious lives lived at the public's expense and tearful expressions of regret, with analysis of their illegal behavior and ideological transformation. The series was made to educate the public and to act as a strong warning to public servants, according to a statement by the commission. Farmers to share in business earnings China will reform collective ownership in rural areas in the next five years to enable farmers to have a share in the operating assets in their villages, a guideline issued by the central government said. Han Changfu, minister of agriculture, said at a news conference on Jan 3 that the move is aimed at increasing the income of farmers by ensuring their rights to a share of the assets. Earnings from such collective assets could come from factories, contracting services or other enterprises run by the village. Box office revenue stagnant in 2016 Movie box office takes for China's film industry remained stagnant in 2016, but most industry insiders see it as a blessing in disguise. Last year's box office total was predicted to reach 60 billion yuan (57.8 billion euros; 48.8 billion). Instead, it was 45.7 billion yuan, growing a mere 3.73 percent over 2015's 44 billion yuan, the lowest in a decade. The construction of movie theaters rushed ahead at breakneck speed, with about 26 a day, or 9,552 new screens a year. China now has 41,179 movie screens, the most in the world, with 85 percent of them capable of projecting 3-D films. Foreign currency loophole closed Chinese residents now need to fill out an application form indicating the purpose of foreign exchange purchases, reflecting strengthened scrutiny from the nation's top currency regulator, the State Administration of Foreign Exchange, amid renewed pressure from capital flight. The application form includes 11 purposes residents can check, including travel and medical care. The form specifies that residents will not be approved to purchase foreign currency if they hope to make overseas purchases not yet open to domestic individuals, such as overseas housing and insurance with investment returns. Tsai warned before her overseas trip The Chinese mainland will share development opportunities with Taiwan but at the same time firmly opposes ""Taiwan independence"" activities, Zhang Zhijun, head of the Taiwan Affairs Office of the State Council, said in his New Year's greeting. The remarks were issued a week ahead of Taiwan leader Tsai Ing-wen's trip to Latin America, which was to start on Jan 7. Analysts said that if Tsai continues to provoke Beijing, Taiwan will face more punishment from the mainland. First freight train rolling to London China launched its first freight train to London on Jan 1, China Railway Corp said. Departing from Yiwu West Railway Station in Zhejiang province, the train will travel for 18 days over more than 12,000 kilometers before reaching its destination. It will pass through Kazakhstan, Russia, Belarus, Poland, Germany, Belgium and France before arriving in London. Xi urges more efforts to ensure food safety China's top leadership has called for more efforts to ensure food safety, noting there are still many problems despite an improving food safety situation. More efforts should be made to ensure food safety for the public, said President Xi Jinping in his latest instructions on the country's food safety work. The president called for the most rigorous standards, the most stringent regulation, the most severe punishment and the most serious accountability for improving food safety control. He stressed administration under the law, enhancement of work at the grassroots level and professionalism of food safety inspectors, and demanded a comprehensive food safety system from farm to table. 3 billion rail trips expected in 2017 China's railways are forecasting at least 3 billion passenger trips in 2017, China Railway Corp said on Jan 3 during its annual meeting in Beijing. That would put the railroads over that mark for the first time. In 2016, 2.77 billion trips were made on China's railways, including 1.44 billion trips by high-speed trains, which accounts for more than 52 percent of the total, according to Lu Dongfu, general manager of the railway operator. The record for a single day was 14.43 million trips, during October's Golden Week holiday travel rush. China urges deeper BRICS partnership President Xi Jinping called on BRICS countries on Jan 1 to deepen their partnership for a brighter future. China will host the ninth summit of the leaders of BRICS countries - Brazil, Russia, India, China and South Africa - in Xiamen, a coastal city in Fujian province, in September, Xi said. Xi called for the enhanced partnership in a letter to Russian President Vladimir Putin, South African President Jacob Zuma, Brazilian President Michel Temer and Indian Prime Minister Narendra Modi. In the letter, he also briefed the leaders on China's blueprint for promoting BRICS cooperation during Chinese presidency of the bloc this year. Mobile spending surges in 2016 Chinese mobile payments are expected to continue to surge overseas this year, as tech-savvy millennials increase spending on travel and purchases, analysts say. Outbound spending by Chinese tourists via mobile devices in 2016 jumped more than sevenfold year-on-year, with the number of transactions soaring by 730 percent, the country's largest third-party payment provider, Alipay, said on Jan 4. Transactions made via mobile wallets could surge to 90 percent of total business volume this year, up from 71 percent last year, according to James Yan, research director at Counterpoint Technology Market Research. Government efficiency listed as top priority China will work harder to use simpler, more straightforward procedures and balanced market regulation to streamline government administration. A series of decisions to accomplish this goal was announced on Jan 4 during the State Council's executive meeting, chaired by Premier Li Keqiang. The State Council is the highest executive agency of state power. The measures include delegating more authority to local governments and reducing central government certification and evaluation requirements. Also, the country will issue its first guideline for market supervision and regulation to make its business environment more inviting. Anti-graft effort satisfies 62% of public Six out of 10 people are satisfied with China's anti-graft efforts in 2016, according to a poll by the top state-run think tank. The approval level among the public of 62 percent was higher for functionaries, at 95 percent, in the poll by the Chinese Academy of Social Sciences. The poll, based on more than 5,000 questionnaires, is part of the sixth annual report on the evaluation of China's anti-graft drive released by the academy on Jan 4. The past year's crackdown appears to be having the desired effect, says Jiang Laiyong, secretary-general of the government Integrity Research Center at the academy. Guideline sets limit on betrothal gifts A county in Henan province recently issued a guideline on arranging weddings and funerals in which it said that the total amount of money a man gives his fiancee's family should not exceed 60,000 yuan ($8,645; 8,213 euros; 7,014). Betrothal gifts are a tradition deeply rooted in Chinese culture, especially in rural areas. The guideline, issued by the Taiqian county government, states that a wedding banquet should serve no more than 10 tables of guests and the total number of vehicles used should be six or fewer. Those who don't follow the rules will be punished, according to the guideline. Ring road in Lhasa expected to ease traffic Lhasa, capital of the Tibet autonomous region, is expected to have a ring road opened by June this year to improve traffic flow and accelerate the city's development. With a planned investment of 11.3 billion yuan ($1.62 billion; 1.53 billion euros; 1.31 billion), the ring road is nearly 100 kilometers long, with seven tunnels and 27 bridges, according to the city government. The road links Lhasa Gongkar Airport in the south and with three highways. It also crosses over the Qinghai-Tibet Railway. After it opens, drivers will be able to circle the city's downtown area in just two hours at a maximum speed of 60 km/h. 16 million illegal publications seized Law enforcement officers confiscated more than 16 million illegal publications last year, and shut down or banned more than 14,000 websites disseminating ""harmful information"". The figures were released by the National Office Against Pornographic and Illegal Publications on Jan 4. In 2016, the office disposed of more than 4.5 million items of online pornography as well as other harmful information, handling more than 600 criminal cases. More than 1,300 people were criminally punished. 500 new electric buses hit the road A fleet of 500 electric buses hit the roads on Jan 4 in Tianjin, increasing the number of such buses to 1,346. The buses, the result of a joint venture between Tianjin Bus Group and Shenzhen-based carmaker BYD, have a range of more than 200 kilometers on a full charge, says Wang Deqi of the bus group, adding that that's enough for a bus to run its daily route. The group also opened a charging station capable of serving 80 buses at one time and 448 buses in a day. Telefraud suspects back from Vietnam Five telecom fraud suspects have been repatriated from Vietnam, the Ministry of Public Security announced on Jan 4. The suspects - one from the Chinese mainland and four from Taiwan - were arrested following allegations that they had been masquerading as law enforcement officials to extort money from people in Zhejiang province through telephone scams. The five have been implicated in at least 27 fraud cases involving more than 1.33 million yuan ($191,300; 181,754 euros; 155,213), the ministry said. China scholar named on Forbes '30 Under 30' list He Jiang, the first Chinese person to deliver a Harvard University commencement address, made the 2017 Forbes ""30 Under 30"" on Jan 3. He, a 29-year-old postdoctoral fellow at the Massachusetts Institute of Technology, was chosen in the healthcare category after being nominated by his professors at Harvard. He used a new technology called single-virus tracking super-resolution imaging, known as STORM, to understand more about how influenza infects cells. He discovered human genes with strong anti-viral effects. City official shoots 2, then kills himself An official in Panzhihua, Sichuan province, killed himself on Jan 4 after shooting two of the city's top officials, local authorities said. Chen Zhongshu, the city's land and resources chief, broke into a meeting room at the local conference and exhibition center at about 10.50 am. He shot Zhang Yan, the city's Party chief, and mayor Li Jianqin as they were having a meeting. Police are still investigating the case. Murals discovered in ancient tomb Archaeologists have found murals dating back more than 900 years in a tomb in Zhangzi county, Shanxi province. The tomb is from the Jin Dynasty (1115-1234). The colorful murals are largely painted on a white background. The upper parts feature acts of filial piety, says Zhang Guanghui, a research fellow at Shanxi Archaeological Research Institute. Beneath, are murals of people working and cooking. Flanking the gate of the tomb, there are images of herdsmen and cattle. The pictures are adorned with floral, animal and cloud motifs, Zhang says. - A cut above the rest: International students from Liaoning University of Technology take a paper-cutting class with Zhang Xinlan, a retired art teacher from the university, at a community center in Jinzhou, Liaoning province, on Jan 4. More than 100 works by Zhang were displayed at the center. Li Tiecheng / For China Daily - A customer shows off two commemorative coins issued for the Year of the Rooster that she picked up on Jan 4 at a bank in Taiyuan, Shanxi province. It was the first day the People's Bank of China issued the coins to those who had reservations. Their value to collectors is considered higher than their 10 yuan face value. Zhang Yun / China News Agency (China Daily European Weekly 01/06/2017 page2)", -505,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876147.htm,'Our exhaustion is worth it',,"Provincial environmental supervisors make big effort to support central inspection team It was an inspection carried out with a certain level of stress, both physically and psychologically, for Zhao Zhenwei, head of the Heilongjiang provincial Environmental Supervision Bureau. On July 19, a central inspection team officially started its monthlong operation in Heilongjiang - ""a surprise and swift inspection, and also the first thorough inspection of the environment from such a high-level team in the past 20 years,"" says Zhao, who started working there in 1993. The inspection became the top priority in his work, as well as the province's. As the head of the provincial supervision team for the environment, Zhao led teams to support the central inspectors. The major task was to collect materials, coordinate work and convey inspectors' demands down to lower departments and governments. In the first 10 days, the inspectors widely reviewed policies and materials related to the environment, and searched for major meeting records on environmental protection from more than 60 districts and counties since 2013. The environmental bureaus usually did not keep such records. And most governments didn't expect such thorough reviews, Zhao says. ""The counties and districts handed in the documents quickly, the next day after receiving notice,"" he says. ""There were so many documents that they were delivered in bags and I had to carry them to the inspectors by cart."" ""It's quite exhausting because we usually ran to give them the materials they needed,"" he says, adding that the coordination teams lived nearby the inspectors and usually worked late with them. As coordinators, Zhao and his team also participated in other tasks, some of which were not done ahead of the central inspection. For example, they talked with 27 provincial leaders, ""which reminded us that they are serious and will play it hard"", he recalls. In addition, Zhao felt the mental strain. He had ""concerns that they would expose some problems we hadn't"". That didn't mean the province was hiding anything, he says. ""We took it as a chance to check ourselves and to improve environmental protection,"" he says. Plants in some polluting industries, such as quarries, would work as long as they had licenses, he adds, noting, ""We can work more smoothly"". After a month of intense scrutiny, companies became more willing to protect the environment. Moreover, more policymakers have realized their responsibility for protecting the environment and for more cooperation with regular local inspections, he says. For example, residents living near the Haotian corn processing plant in Suihua city have complained about the unpleasant odor for at least two years. The plant, whose emissions already met government standards, made some efforts but did not completely control the smell. However, after the problem was identified by the central inspectors, the company invested more to finally solve the problem in September. ""Many long-standing problems that we have taken many measures to curb, yet failed, have been solved because of the inspectors,"" Zhao says. ""The monthlong inspection has deep influence for environmental protection in Heilongjiang, which will spur us to work more efficiently in the future. Our exhaustion is worth it."" zhengjinran@chinadaily.com.cn (China Daily European Weekly 01/06/2017 page7)", -506,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876146.htm,Data tamperers face tough penalties,,"False readings are an open secret - but now perpetrators risk criminal charges A new judicial interpretation from China's top court and procuratorate has been added to the country's list of environmental crimes. Now, anyone who falsifies data to avoid pollution regulation will be subject to prosecution. The move is expected to help regulate behavior by companies, monitoring agencies and governments. The interpretation, which took effect on Jan 1, is the third to deal with pollution since 1997 and represents a big step in the country's progress toward accurate and authentic environmental data. The judicial interpretations specify actions to which Chinese Criminal Law applies, making the rules easier to enforce. The environmental data include what is collected from the monitoring equipment of companies that discharge water and airborne pollutants, and air, water and soil quality measurements from stations set up by governments. As China has drawn attention over its environmental protection efforts, the data have come to play an increasingly important role in providing policymakers with an accurate picture as they frame public policy. The newly released judicial interpretation says that any major pollutant emitters that tamper with or fabricate monitoring data, or that interfere with the normal operation of monitoring equipment, can be criminally prosecuted and face three to seven years imprisonment and fines in cases with severe consequences. Other new stipulations target agencies that provide monitoring equipment and services, as well as government officials who falsify the record. It's the first time that such acts have been made punishable as crimes. In the past, they were only punished by administrative penalties, such as 15-days of detention. Currently, the falsification of data by some companies is an open secret, and a thorny problem in the environmental protection efforts of governments at all levels, because it hinders their ability to control pollution - a top priority for both leaders and the public. Some companies may deliberately tamper with the monitoring data to reduce the cost of maintaining equipment or to avoid fines if the authorities were to discover excessive emissions. Now, officials may be punished or barred from job promotions if they falsified data. Punishments also apply to environmental bureaus. In the past, there was little risk in falsifying data to reflect better performance. In March, equipment at an air quality monitoring station in Xi'an city of Shaanxi province was found covered with cotton yarn to filter the air and lower pollution readings to avoid punitive action. But no criminal penalty was attached to the act at that time. Such violations will be punished strictly under the new judicial interpretation, to deter other officials from misbehavior. Agencies providing monitoring equipment and services will be subject to regulation. Individual violators could face a penalty of more than five years in prison. China has confronted many issues as it has enacted a range of environmental pollution controls, especially in efforts to reduce the number of smoggy days to satisfy public demand for clean air and a healthy life. To make progress, the central government has already adopted a number of measures, including the issuance of new regulations and launching of national action plans targeting air, water and soil pollution. But the legal step of adding criminal penalties may be be the most effective and powerful weapon to date. Moreover, governments need to better utilize market rules to induce companies to upgrade their production equipment and technologies willingly, and to guide related service agencies to establish and maintain a good reputation by providing authentic and accurate data, which can only help them retain market share in a growing field. Ma Yong is a researcher at the Environmental Theory Research Center under the Supreme People's Court, and deputy secretary-general of the China Biodiversity Conservation and Green Development Foundation. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 01/06/2017 page8)", -507,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876145.htm,Sculpting China's changing seasons,,"As spring thunder wakes animals from their winter sleep, sprouting plants breathe an air of freshness into the world. The temperature rises and rain turns the mountains green. When the heat of summer recedes, farmers prepare for the harvest; and as snow falls in winter, the mountains are enveloped in pure white. The transformation of the landscape brought about by the changing seasons has long been the subject of poems, paintings, nursery songs and other forms of art. Artist Dong Lin, 25, depicts these climate phenomena in a series of ceramic sculptures, 24 Solar Terms, which she began a year ago in Jingdezhen, Jiangxi province, China's ceramics capital. Based on observations of the sun's annual motion, the ancient Chinese created a calendar dividing the year into 24 segments, each given a specific ""solar term"" , or jieqi. The system provided a time frame for agriculture, everyday life and festivals. Dong is now exhibiting the first six ceramics of her ongoing series in a solo exhibition at Beijing's Soka Art Center. She has named each piece after a solar term - such as Insects Awakening (jingzhe) and Grain Rain (guyu). ""The idea came to me when I saw a Weibo posting about the solar terms. The names sounded so poetic and inspired my imagination,"" she says. Dong used the zhan jing pan technique, a method of creating miniature landscapes used during the Han Dynasty (206 BC-220). She molded mountains, rocks and animals, and arranged them in a ceramic pot to portray natural scenery corresponding to a solar term. Each work was given a different colored glaze. The red tone of End of Heat (chushu) indicates summer fever; the yellow of Autumnal Equinox (qiufen) suggests a harvest; and the silver of Light Snow (xiaoxue) symbolizes the arrival of winter. ""Dong's works offer not only a novel visual experience,"" says exhibition curator Sun Yiwei, ""but also have a lingering charm because of deeply rooted Chinese cultural traditions."" The solar terms themselves recently found favor with the Intergovernmental Committee for the Safeguarding of Intangible Cultural Heritage, part of the United Nations Educational, Scientific and Cultural Organization, or UNESCO. On Nov 30, the committee added the Chinese 24 Solar Terms to the Representative List of the Intangible Cultural Heritage of Humanity during its 11th session held in Addis Ababa, Ethiopia. The committee examined 37 applications bidding to be inscribed on the list. The addition of the solar terms increased the number of Chinese items on the list to 31. The committee said the inscription would give Chinese people an awareness of ""the importance of transmitting and safeguarding intangible cultural heritage at the national level, as well as an enhanced understanding of the regional variations of solar terms"". It also said the inscription would advance international dialogue on traditional systems of knowledge about time, so that people would appreciate and respect cultural diversity and human creativity. Fifth invention The solar terms are viewed as ""China's fifth invention"" in international meteorological circles. The system originated in areas along the Yellow River, which for a long time served as China's political and economic center. A solar term is any of the 24 points on the traditional Chinese lunisolar calendar that matches an astronomical event or signifies a natural phenomenon. The points are spaced 15 degrees apart along an ellipse and were used to keep lunisolar calendars synchronized with the seasons. The calendar combines lunar and solar observations. Surviving historical files show that the Lyushi Chunqiu (or Master Lyu's Spring and Autumn Annals), an encyclopedic Chinese classic text compiled around 239 BC, first recorded eight terms corresponding to four seasons. Huai nanzi, a classical essay collection from 139 BC, mentioned 24 terms identical to those of today. In 104 BC, the Taichu Calendar (the Grand Inception Calendar), China's first official calendar with complete written records, integrated 24 solar terms to reaffirm their status in astronomy, based on which successive dynasties created their own official calendars. Having been merged into the Gregorian calendar, the system has been passed down for generations to guide agriculture. Liu Xiaofeng, a history professor at Tsinghua University, says the solar terms predict a general trend of temperature and rainfall and, therefore, were essential for Chinese farmers, who needed to make the best use of climatic conditions. The different periods are marked nationwide with rituals and festivities, although there are variations between regions and ethnic groups. During the Beginning of Spring (lichun) solar term, that normally falls on Feb 3-5, people in Suichang county, Zhejiang province, used to set off fireworks, arrange plum blossoms in pots and hold sacrificial ceremonies to the gods of the land, among other spring celebrations. By doing so, they notified each other of the need to prepare for field plowing. The ceremonies, known as banchun quannong (or encouraging agrarian activities at the arrival of spring), came to halt in the chaotic early 20th century. They have been revived in some communities since the 1980s. A a folk culture museum was opened in 2009 displaying objects and materials relating to local agricultural development. The traditions were inscribed on the list of state-level intangible cultural heritage in 2011, being preserved as an extended item of the 24 Solar Terms. Liu says that although more than half of the Chinese population now live in cities, the system is still important today as it encourages a harmonious relationship with nature and sustainable development. Li Ting, a popular Beijing-based science writer and postdoctoral researcher of atmospheric physics, says these days the solar terms have more cultural than astronomical significance. ""Weather forecasts based on scientific measurements have become so advanced that they can provide a better guide for agriculture,"" she says. ""However, the solar terms reflect the wisdom of the ancient Chinese, and this knowledge has contributed to an understanding of natural life cycles."" Common festivals Li adds that some solar terms are now common festivals, such as the Qingming Festival, which marks the Fresh Green solar term, a time in which people nationwide make excursions to the countryside and worship their ancestors. She also notes that because many events associated with solar terms are held in rural areas, they are at risk of waning as more people move to urban areas. Efforts are thus being made at both the grassroots and national level to transmit some of the cultural cohesion provided by the solar terms to the younger generation, through formal and informal education. Wang Yingde, a researcher at the Beijing-based China Agricultural Museum, says the museum has worked with several representative communities to formulate a five-year plan, beginning in 2017, for a series of measures designed to protect the traditions. Communities boasting varieties of solar term traditions include Anren county, in central Hunan province, where people trade herbal medicines at fairs and cook them with pork in an annual routine marking the spring equinox (chunfen). Wang says courses on how to safeguard traditions will be offered in certain communities and then spread to more areas. He says schoolbooks about the solar terms will be compiled, and relevant oral and paper documents and artifacts will be collected and cataloged in digital format, as well shown in exhibitions. He adds that the museum runs a website dedicated to the 24 Solar Terms. It provides basic information, photos and videos and will be enhanced by incorporating interactive digital technologies to engage more people, especially children and teenagers, he says. Bamo Qubumo, an expert on ethnic literature and the conservation of intangible cultural heritage at the Chinese Academy of Social Sciences, says the vitality of solar terms can only be maintained when they become part of everyday life for young people. Advanced digital technologies are of great help in achieving this. She says more apps, images and such things as animations and online games are needed to engage young people's interest. ""The 24 Solar Terms boast an extensive sea of knowledge and practices that all Chinese people should explore,"" she says, ""because every one of us is responsible for keeping the traditions alive."" Contact the writer through linqi@chinadaily.com.cn China's 24 Solar Terms (China Daily European Weekly 01/06/2017 page1)", -508,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876144.htm,Taking a breath of fresh air,,"Vigorous enforcement effort behind the scenes is tackling pollution by taking aim at regional officials Residents in Beijing have already experienced hazardous smog in the early days of the new year, while at least 60 cities in the northern region have adopted joint emergency measures to reduce emissions, including the short-term shutdown of some factory operations. But there's another effort going on behind the scenes that's making a big difference. The central government has sharpened its supervision of policymakers across the country through high-level environmental inspections, which have grown into a powerful enforcement tool. Since the central inspectors made their debut with a monthlong inspection in Hebei province in January 2016, they have been busy expanding the effort to 16 provincial-level areas. The latest inspections were completed on Dec 30, according to the Ministry of Environmental Protection. Through the end of last year, polluters have been fined more than 441 million yuan ($63 million; 60.7 million euros; 51.7 million), and 597 people who were accused of polluting the environment were detained, according to the ministry. Enforcement is no longer focused solely on polluting companies. The center of the storm against polluters has shifted from companies to governments - ""highlighting the major role of policymakers in environmental issues"", says Chen Jining, minister of environmental protection. In the inspection undertaken in mid-July, more than 40,000 people at both the central and local levels have participated in monthlong inspections, which have covered Heilongjiang, Jiangsu, Jiangxi, Henan and Yunnan provinces, and the Ningxia Hui, Inner Mongolia and Guangxi Zhuang autonomous regions. Since late November, the inspection teams have visited seven provincial-level areas - Beijing, Shanghai, Chongqing, as well as Hubei, Guangdong, Shaanxi and Gansu provinces. Chen says that within two years, the inspections will have covered all provincial regions. Accountability The State Council, China's cabinet, sent inspection teams in January, mid-July and late November - a large-scale ""accountability storm"" aimed at the governments. China has introduced laws and regulations stipulating that key leaders should play a major role in environmental protection, but the implementation of such measures has not been stellar. Similar to the inspections ordered by the Central Commission for Discipline Inspection to check for cases of official corruption, the high-level inspectors are looking for environmental lapses and offenses. The inspectors hold talks with leading officials, conduct field investigations, receive reports from the public via phone and mail, and review official documents. The teams review the governments' performance at the provincial and local levels to see if they have met set standards or neglected their duties in relation to pollution control, and will investigate major issues frequently reported by the public. In the 16 inspected regions so far, including industrialized and developing regions, the teams have exposed long-existing problems in governmental management of environmental issues, and have not withheld details, which illustrates the central government's determination, experts say. For example, Zhengzhou, Henan province, failed to meet its air pollution reduction goal in 2015, while the annual assessment for the city was labeled good, which means the city government did not realize the importance of environmental protection, according to Wang Wanbin, head of the central inspection team for Henan province. Similar neglect and weak implementation of environmental protection measures was exposed in other provinces, which is one of the priorities among the inspection teams' tasks. For example, since the Yunnan provincial government released its Regulation on Fuxian Lake Protection in 2007, many illegal buildings - including hotels, apartments and villas with total floor area of 140,000 square meters - have been built inside the protection zone and are still for sale. Yang Chunming, deputy head of the Yunnan provincial Environmental Protection Bureau, says the province initiated special teams to correct the problems immediately after receiving the inspection report. ""We have conducted serious investigations on the illegal construction at Fuxian Lake,"" he says, adding that other exposed problems will be treated seriously. The inspections provide ""a chance for us to improve our environmental protection"", he says. Zhang Benxing, a 73-year-old resident of Xiangshan district in Guilin city, in the Guangxi Zhuang autonomous region, says some of the villagers reported illegal quarrying, which created heavy dust around the nationally known scenic area on the Lijiang River. After that, 37 officials at the county and city level were found to have been responsible. The reports revealed issues commonly found in the 16 inspected regions, including insufficient attention by leadership to environmental protection, lax implementation of pollution-control measures and improper exploitation of resources in natural reserves. Some areas have experienced environmental degradation, with air, water and soil quality suffering, the reports said. After the inspections, around 6,400 government officials were held accountable, with punishments including suspensions, public criticism and lost promotions, the ministry said. ""From the problems exposed by the inspectors, we can see they play hardball in monitoring the governments, and that has helped the policymakers do better with the environment rather than just promoting economic growth,"" says Qin Tianbao, professor of environmental law at Wuhan University in Hubei province. He says the governments have behaved better after the inspections, especially after witnessing or receiving punishments. But after the intense monthlong inspections, the mechanism needs to become a long-term system, he says. ""It's better if there are laws to back up such inspections."" The central inspections have been conducted in accordance with a trial regulation from the State Council. Some governments have set up their own inspection and investigation systems to more effectively control pollution - Henan province and Inner Mongolia, for example. Chang Jiwen, deputy director of the Institute for Resources and Environment Policies at the State Council Development Research Center, a high-level think tank, agrees that progress has been made with the large number of cases exposed. But he suggests the central inspection teams should focus more on provincial and city governments. ""The leading policymakers in the province have more influence over the environment than environmental officials at the grassroots,"" he says. Strict controls Along with the monitoring of officials, the inspectors have focused attention on pollution problems at companies, after receiving reports from the public by phone or mail. Subsequent inspections exposed and transferred more than 26,000 cases to related governments. More than 20,000 polluting companies were required to cease polluting and were given huge fines. ""The strict investigations have promoted solutions to many long-existing thorny problems,"" Chang says. A pharmaceutical factory located in Hulunbuir, in Inner Mongolia, was reported 80 times during the inspection month because of the bad odor it emitted. ""The plant has been punished administratively 29 times by the environmental bureaus at the city and regional levels, but the plant continued in production and generating the odor,"" according to a statement from the region. After the inspection, the governments conducted thorough investigations and detained two people accused of pollution. The plant subsequently suspended production, the statement said. For some polluters, administrative punishments from the environmental authorities are not a strong deterrent, and the central inspectors have helped the governments put a tighter leash on them. Tighter control has brought pollution in some regions under control, Chang says. But it's better that the governments adopt legal weapons against the pollution instead of the relying on the short-term inspection, like fully implementing the revised Environmental Protection Law, he says. Zhang Xiaode, director of the Ecological Civilization Research Center at the Chinese Academy of Governance, says the central inspections have demonstrated the government's determination to improve the environment, and the effort has proved to be effective. It has also sent a signal to society that the environment is related to social and economic growth, he says, adding that it has also helped governments identify issues and find effective solutions.   Inspectors examine a factory in Xingtai, Hebei province. Enforcement is no longer focused solely on polluting companies. The State Council sent inspection teams last year in a large-scale ""accountability storm"" aimed at the regional governments, looking for environmental lapses and offenses. Provided to China Daily (China Daily European Weekly 01/06/2017 page1)", -509,2017/1/6,http://europe.chinadaily.com.cn/epaper/2017-01/06/content_27876143.htm,Residents' feedback pinpoints the polluters,,"Volunteers keep a watchful eye on industrial emissions in a bid to cut danger to health ""See? It stopped. Now we can see the entire sky,"" Lu Lin, a 30-year-old volunteer, says excitedly as he points to nearby industrial chimneys. Four companions join him in a sigh of relief. What is getting them excited is the suspension of operations at Yunnan Xianfeng Chemical Industry Co, a state-owned enterprise related to the coal industry in Xundian county, Yunnan province. Inspectors from the central government declared on Nov 23 that its polluting emissions were severe. ""The suspension of production should be credited to the central inspectors and the wide participation of the public,"" he says. ""The fumes from the chimneys would spread out and cover half the county and part of the sky. The odor was bad and people coughed a lot."" - A woman takes a picture during heavy smog in Shanghai. Provided to China Daily Lu has kept note of emissions from the plant for more than six months, after seeing a news report. He and his teammates in a volunteer group called Good Air Protector have conducted field research in nearby communities to see the effect of the plant's discharges. ""A pond was severely polluted, and it's hard to breathe when they put out fumes morning and night,"" Lu says. Some residents say they developed debilitating conditions in their lungs, which may be related to the fumes, he says. But the plant had continued to produce and discharge the fumes since 2014, despite requirements from the environmental protection bureaus at county, city and provincial levels, according to a statement from the central inspectors. Villagers took a chance and reported to the inspectors - as many as 46 times in the first two weeks after the inspection began. The inspectors ordered the province to investigate. Even then, the plant continued to pollute, but further reporting by the media and an ongoing stream of complaints from residents brought on the suspension, Lu says. ""Our research materials will be handed to the authorities if they need them during the investigation,"" he adds, noting that other volunteers exposed the pollution problem in social media, which put the case in the public spotlight. ""The central inspection and wide public participation have helped the villagers breathe better air,"" Lu says, adding that his group will continue to follow up on updates about the plant during the suspension. The central inspections have attracted public attention to some 20,000 pollution cases in 16 provincial-level areas. Zhang Yu, a 28-year-old woman who works in Nanjing, Jiangsu province, says some residents in her community complained to the central inspectors about emissions from a small restaurant whose fumes had stained the area near its chimney. The restaurant was shut down. ""I'm satisfied to see the changes after the reports - meaning that after we participated in monitoring, we were able to see the improvement,"" Zhang says. (China Daily European Weekly 01/06/2017 page7)", -510,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818676.htm,How to achieve more with less in business,,"The concept helps to improve productivity and sustainability by forging connections between people, production and technology, says Rockwell Automation's chief ""Doing more with less"" is Blake Moret's buzzphrase. In his book, even in the age of cost-conscious corporate culture, ""less"" need not always mean fewer workers or a thinner wage bill, and ""more"" could very well mean more ""indirect"" jobs. Moret, Rockwell Automation's president and CEO, and a mechanical engineer by training, is passionate about his vision called Connected Enterprise, a concept or solution he believes can help people and enterprises to do more with less. So, he is driving its acceleration through innovation, leveraging his in-depth knowledge of customers' business needs. - Blake Moret, Rockwell Automation's president and CEO, says Chinese manufacturers should have a step-by-step approach to technology changes. Provided to China Daily That knowledge is his by dint of decades of working with one of the world's largest industrial automation and information companies by market value. Moret has 31 years of broad experience with Rockwell Automation, a leading provider of industrial automation power, control and information solutions for manufacturers. He has held leadership roles in marketing, solutions, services and product groups. He assumed his current role in July. Doing more with less, in a China context, is to maximize the application of the Connected Enterprise to deliver the future today, he said. The idea is closely related to China's campaign to upgrade its manufacturing sector through the Made in China 2025 and Internet Plus initiatives. According to Moret, the Connected Enterprise solution forges connections between people, production processes and technology through information-sharing and internet connectivity. This will, in turn, enable enterprises to significantly improve productivity, sustainability and performance, he says. The solution, based on a synergized control and information structure, offers enterprises a smarter, safer and more productive manufacturing environment. During his frequent visits to China, Moret is often found in meeting rooms with clients, or at manufacturing sites, listening to customers' latest needs. Recently, he spoke with China Daily about the company's strategy, business opportunities and prospects. Following are edited excerpts from the interview: What are the major changes China's manufacturers are facing in the process of cutting overcapacity and contributing to the Made in China 2025 campaign? In the past, it was enough just to provide equipment that would enable greater capacity or to replace older equipment. But today, there must be additional value, such as faster time to market, lower total cost of ownership, increased asset utilization and better management of enterprise risk. It's also important to note that rarely does a manufacturer make the change all at once. So they should have a step-by-step approach and be able to put a foundation in place that's future-proof, so that you can take advantage of additional new technology in the future. What are some of these additional values? One example: We have provided additional value to a luxury automotive manufacturer, where again it's not enough just to be able to provide the means for enabling additional capacity, but to be able to enable their made-to-order process. In that example, keeping with principles of Made in China 2025, we have applied information management software in concert with the basic control equipment, to be able to provide a higher level of productivity and decision-making support. What's your take on the view that automation leads to job losses instead of creating the much-needed new jobs? In today's worldwide competitive economy, manufacturers that want to remain relevant have to find ways to become more productive - there's no alternative. Today, for traditional manufacturing, for every direct manufacturing job there's estimated to be another half a job required to support that process. In smart manufacturing, the multiplier of additional jobs created is three or four additional indirect jobs that support that basic process. So, while there may be some reduction of the repetitive traditional labor on a factory floor, the overall employment for the most competitive manufacturers will actually go up because of those additional indirect jobs, and also because they themselves will be taking additional market share. How can automation solutions help Chinese manufacturers build up their overseas footprint? Rockwell Automation can provide several valuable services and solutions in working with these manufacturers investing overseas that are facing various challenges, including regulation and standards - for example, introducing those manufacturers to our global partners, and conducting assessments of the readiness of the Chinese product in Chinese manufacturing operations for a given market, such as safety assessments to see if a given machinery will comply with the relevant country's standards. We can also enforce worldwide standards across multiple countries. Have any Chinese manufacturers benefited from these solutions? One example that I can provide is of a very large Chinese tire manufacturer that wants to establish a plant in the United States. We were able to work with that manufacturer to understand their requirements, because we've worked with them in China to introduce them to local sources of value in the state that they were moving to, and also to help acquaint them with some recent advances in tire-making information systems that they'll apply to their new process. How does Rockwell Automation seize the opportunities arising from smart manufacturing in China? The rise of the middle class and the demand for additional consumer products will drive a lot of our growth. The whole class of products that we refer to as consumer products is a very important focus area for the company for that very reason - the increasing numbers of people that fit that classification, such as automobile buyers. Our capabilities for adding information management systems on top of basic control, such as serialization and track-and-trace capabilities, will be particularly important in the future to meet demands for flexibility, speed and quality. We're working with not just consumer-based product companies like food and beverage and where we're really strong like auto and tire, but we're also working with companies that make doors for the metro and rail industry to help them integrate MES (manufacturing execution systems) in their facilities. What's your client portfolio in the China market? How do you localize your business in China? China is the second-largest country market for Rockwell Automation. Over the last five to 10 years, we've transitioned from where our business was 30 percent domestic and 70 percent multinational, to the current position with 70 percent of our business coming from domestic customers and 30 percent from MNCs. We have double-digit market share in terms of programmable controllers. In general, our market share positions are highest in the consumer and automotive and tire industries. What are the latest requirements and demands you have heard from your clients' feedback? One is to be able to continue to improve the output and the efficiency of those machines even after the initial machinery is delivered. It is a new concept to be able to provide upgrades to that equipment, to be able to improve its effectiveness even after the initial delivery. And that's something we're helping equipment manufacturers provide today. Another is the ability to remotely monitor that equipment. So, to be able to reduce the amount of labor that is on the site physically, you have to have a deep understanding of the machinery. The use of remote monitoring techniques is becoming important in all industries that we serve. What's your leadership style? What is your mantra? It's results-oriented. I like to create simple plans and assemble a team of capable, empowered people who can execute on those plans. wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page31)", -511,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818675.htm,Quotable,,"It is necessary for the country to set up a super-regulator to help clear some regulatory blind spots."" Liu Junhai, business law professor at Renmin University of China in Beijing. Recent incidents in the Chinese bond market have highlighted the lack of internal risk controls, analysts say, which may help accelerate regulatory reforms toward a more coordinated regime. ""The best part of being a tenant here is that you can make full use of various services, and you see opportunities everywhere. It's like a 24-hour party of entrepreneurs. Everyone wants to know about everyone else's business - ' How can I help others through my business?' That's what drives us. You can have a shower late at night because this space is open 24/7."" Jasmine Jin, a startup co-founder and tenant at WeWork's co-work site in Shanghai ""What LeEco lacks is not the money but the execution. Unless LeEco makes a significant reform in business and product, no strategic investor will enter into it. It should cut down the businesses that burn cash and lack core competitiveness, shifting its focus to the R&D of key technologies of core products."" Shen Meng, director of Chanson & Co, a boutique investment bank ( China Daily European Weekly 12/30/2016 page24)", -512,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818674.htm,Coal-to-liquid venture delivers first shipment,,"Project, the biggest of its kind in the world, seen as boost for China's energy security With annual output capacity of more than 4 million metric tons of oil, the largest coal-to-liquid project in the world delivered its first shipment of products on Dec 28 in Yinchuan, Ningxia Hui autonomous region. The project is the result of 39 months' construction and investment of 44 billion yuan (6.2 billion euros; 5.2 billion). Total investment is estimated at 55 billion yuan, according to the developer, Shenhua Ningxia Coal Industry Group, a subsidiary of energy giant Shenhua Group Corp. Although the output is small compared with China's nationwide oil demand - expected to be 610 million tons a year by 2020 - industry insiders say the project is a milestone in the nation's energy security efforts and in the process of economic restructuring in Ningxia. ""The completion of the project is a substantive achievement for China in optimizing its strategic energy reserves,"" says Shenhua Chairman Zhang Yuzhuo. ""It also means that China's abilities in equipment manufacturing and integration have reached a higher level."" China's fuel resources have featured abundant coal but insufficient supplies of oil and gas, with more than 60 percent of its crude oil needs dependent on imports in 2015. Zuo Qianming, chief coal analyst at Cinda Securities Co, says that coal-to-liquids technology had greater significance for China's national energy security than for generating profits. ""If the international oil price shoots up, China will have a backup for its oil demand,"" Zuo says. The liquification project employs a process that involves gasification of the coal into a mixture of carbon monoxide and hydrogen, and then distills the syngas mixture into liquid hydrocarbons. It will consume about 20 million tons of coal annually and produce 2.73 million tons of diesel fuel, nearly 1 million tons of naphtha and 340,000 tons of liquefied petroleum gas. ""Our technologies are leading the world in many ways, enabling us to build large-scale projects,"" says Yao Min, deputy general manager of Shenhua Ningxia. ""The domestically developed technologies and equipment will help to cut costs and increase profit."" Guo Shaoyu contributed to this story. Contact the writers at zhangzhao@chinadaily.com.cn and yangziman@chinadaily.com.cn - Workers help install a crane tower for the coal-to-liquid project at Shenhua Ningxia Coal Industry Group in the Ningxia Hui autonomous region. Xue Zhou / For China Daily (China Daily European Weekly 12/30/2016 page25)", -513,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818673.htm,China's FTZs sharpening their competitive edge,,"The development of free trade zones will create a competitive edge for China to tap supply-side reform and the Belt and Road Initiative, as well as allow inland regions to diversify their manufacturing and exploit their geographical advantages, senior commerce officials said on Dec 26. Commerce Minister Gao Hucheng said China has introduced 19 practical measures related to the investment environment, administrative reforms and policies to assist innovation in its four FTZs. The country will open another seven FTZs - the third batch - including Liaoning and Zhejiang provinces, to create new market growth points for both trade and investment. The plan was approved by the central government in August. FTZs offer global companies the ability to expand in China and for Chinese companies to move their capital to overseas markets in diverse services and financial operations, such as e-commerce, manufacturing and logistics. - A major helicopter expo in China (Tianjin) Pilot Free Trade Zone. Provided to China Daily ""Based on statistics between January and November, China is expected to gain $126 billion (121 billion euros; 103 billion) in foreign direct investment from the nonfinancial sector in 2016,"" Gao said at the ministry's annual meeting in Beijing. The third batch of FTZs is expected to be officially launched as early as January, according to Economic Information Daily. Tang Wenhong, director-general of the ministry's department of foreign investment administration, said the nation will further simplify and modify four foreign investment laws and encourage foreign companies to invest in the country's central and western regions next year. ""China's modern service businesses; its environmental protection, communication and information services; and its high-tech industries will offer more market access to foreign investment in 2017,"" Tang said. ""Foreign companies have discovered that market demand in China is changing, as both consumers and companies want to purchase more high-value-added products, and there is a surging demand for services,"" said Li Gang, vice-president of the Beijing-based Chinese Academy of International Trade and Economic Cooperation, the ministry's think tank. Li says that because the service infrastructure facilities of China's central and western regions are not as advanced as those in eastern regions, foreign companies are keen to enter markets that have yet to fully develop. ""The upcoming Hubei FTZ could possibly cut companies' financial costs in the area,"" says Fu Cheng, chairman of Exsun Electronics and Information Technology Inc, a company that makes satellite positioning systems in Wuhan, Hubei province. He said if the Hubei FTZ adopts the operating model of Qianhai in Shenzhen, Guangdong province - where intercompany transactions are tax-free and businesses pay taxes annually instead of monthly - then liquidity costs will be significantly reduced. Now companies have to pay taxes as long as transactions are billed, even if customers have yet to pay. He Fei contributed to this story. Contact the writer through zhongnan@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page26)", -514,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818672.htm,Office sharing gives startups a leg up,,"Popularity of co-work spaces spreads like wildfire among entrepreneurs, stoking a new kind of business culture These days, Shanghai 189 Lane - Citic Capital's colorfully decorated and brightly illumined seven-story shopping complex in downtown Shanghai - sees an endless stream of young people entering and exiting, morning until late at night. The year-end winter chill is no barrier. Holiday shopping is not why they are there. They are some of the city's entrepreneurs and self-employed professionals, out to view in the top two stories of the complex. That's where lots of shared spaces have been installed of late. Shanghai 189 Lane is one of the 200 or so such sites that have mushroomed across the city. Zhang Yueqiang, a startup co-founder who plans to launch a visual reality content design outfit soon, says: ""I've visited 18 sites in Shanghai over the past week, and I'm thinking of moving into one of them at the beginning of 2017. Some are offering discounted rates at year's end. But my co-founder said we should visit some more as there are plenty of choices now. ""We need to choose the most cost-effective one, taking rental, location and services into consideration."" Convenient, flexible, and affordable, co-work spaces have become the first choice of many startups, freelancers, independent players and self-employed professionals on the lookout for offices in Beijing and Shanghai. According to a research note by JLL, a real estate services provider, the number of co-work spaces in Beijing and Shanghai has jumped to over 500 from no more than 10 just five years ago. A research note from Shanghai-based Ruiyi Consultancy said the co-work space market by floor space grew 71 precent annually on average from 2007 to 2015, and is projected to grow 68 percent annually from 2016 to 2018. Companies from different fields such as real estate (UR Work, Soho 3Q), hospitality (Naked Hub, owner of several resorts and hotel sites) and media (KrSpace) have entered the co-work space market and expanded quickly. That's not all. Foreign brands in this segment, such as WeWork from the United States, are trying to meet China's rising demand for co-work spaces. WeWork received $430 million in funding from China's Legend Holdings. The latter's private equity arm, Hony Capital, valued WeWork at more than $15 billion (14.4 billion euros; 12.3 billion). WeWork has opened two co-work sites in Shanghai and is preparing to launch a third one now. It's also expanding to Beijing. Mao Daqing, founder of UR Work, said his co-work space brand aims to increase the number of sites from 40 across 10 cities by year's end to 60 in 2017. Naked Hub announced in late November that it will accelerate its regional expansion and enhance its property resources via Gaw Capital Partners, aiming to add up to 30 new locations, or about 150,000 square meters and 30,000 members across the Chinese mainland, Hong Kong and other key cities in Asia. A research note from CBRE on innovative sectors' leasing trends said that China's small enterprises and startups are favoring co-work spaces because their cost is lower and their atmosphere appeals to young talent, particularly those working in the technology, media and telecommunications space. Sam Xie, research director of CBRE China, says innovative talent tends to work at sites in convenient locations. And when they work together, they can form a potent cluster. ""Co-work spaces are meeting these demands, so they are increasingly favored,"" Xie says. Tenants have other considerations too, real estate agents say. Says Feng Yunxi, a real estate agent with Shanghai-based Fengxiang Real Estate Co: ""Innovation and entrepreneurship have become a national aspiration. An increasing number of startups are emerging. All of them need a decent space to operate from. They can actually work from their homes or even rented residential flats to save on costs. ""But they are looking for a community, where they can feel that they are not alone; where they can get resources, such as business opportunities from other tenants, on a short-term lease basis. That's so because startups do realize there's no certainty they will survive in the long run and thrive. If they do, they may need to move to a larger office."" That would be a risk though, from the space provider's perspective. Whether tenants' businesses succeed or fail, they will likely move out eventually, leaving the office desks empty. So operators are evolving new strategies to make their own business viable in the long run. In addition to startups and freelancers, mid-sized and large enterprises are also being courted by co-work site operators. ""Co-work spaces may no longer be an exclusive zone for small businesses. Operators' huge investments need a stable turnover. So, a balanced tenant portfolio becomes necessary to hedge risks,"" says Kenneth Rhee, CEO of Huhan Business Advisory (Shanghai). ""In the US where co-work spaces first emerged, and in Hong Kong, where co-work spaces are common, bigger businesses such as banks and technology companies have moved some of their teams to co-work spaces. ""The younger generation among their staff prefer the atmosphere, and some creative arms of established businesses may not find a fixed seat comfortable and suitable. I think in the Chinese mainland, more co-work spaces will allocate more resources to bigger tenants in the future."" wuyiyao@chinadaily.com.cn - Startup entrepreneurs work in a incubator office in Liaocheng, Shandong province. Xu Wenhao / For China Daily (China Daily European Weekly 12/30/2016 page27)", -515,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818671.htm,Long stock correction may end in 2017,,"Continued 'aggressive' fiscal stance will be a key factor, along with a monetary policy that's 'prudent, neutral' Analysts have a bullish outlook for the A-share market in 2017, with more confidence in macroeconomic fundamentals and companies' profitability. Fast-growing emerging industries have become strong drivers of China's overall economic growth, particularly after regulators, policy-makers and market players expressed clear views on reform and transformation. Also, the central government mapped out growth guidelines for 2017 in early December. - An investor appears unimpressed by the gap between his expectations and actual stock prices at a brokerage in Nanjing, Jiangsu province, on Dec 19, when the Shanghai Composite Index closed almost flat. Xing Qu / For China Daily ""Monetary policy is officially set to be prudent and neutral in 2017. Fiscal policy will not only remain aggressive but also become more forceful and effective,"" says Xing Dongchen, chief economist at BNP Paribas. ""While limited in breakthroughs regarding SOE reform, central economic policy is committed to improving private property protection and increasing the government's creditworthiness, in order to regain private investor confidence and business enthusiasm."" The profitability of companies has been recovering based on their performance in the last quarter of 2016. While emerging industries' growth has been accelerating, reforms of state-owned enterprises and ""supply-side reform"" measures have had evident impact on traditional industries such as coal mining and steel-making, which have achieved capacity reductions and a recovery in net profits, according to Xun Yugen, an analyst at Haitong Securities. ""It is estimated that the consumption, healthcare, information technology and telecommunications industries can maintain net profit growth of 25 percent year-on-year, and traditional industries, including energy and raw materials, can grow their profits at somewhere between 20 and 25 percent,"" Xun says. ""The overall A-share market's net profit growth is estimated at 8 percent year-on-year at the end of 2017, putting an end to a four-year-long correction."" Listed companies will also see better liquidity because their debt service cycle is approaching the end, and another round of financing and capital expansion may start early in 2017, according to Dai Kang, an analyst at Huatai Securities. ""Companies' incentives for inventory replenishment and investment are rising as fundamentals are recovering to a much better level than that at the beginning of 2016. These fundamentals are likely to support companies' profitability growth in the next 12 months,"" Dai said. Companies focusing on consumption-driven businesses (foods and beverages, healthcare and medical services), pan-entertainment sectors (sports, media, and filmmaking) and the hospitality sector (restaurants, hotels and commercial real estate development) are likely to see robust growth in revenues and profits, according to a research note from Guosen Securities. In 2017, institutional investors will play a bigger role in the A-share market since pension funds are expected to be allowed to enter. ""Institutional investors usually attach more importance to fundamentals and long-term value. They play the role of an anchor, bringing more stability to the market and requiring more transparency and better regulations, such as disclosure and compliance efforts,"" said Cao Jianfei, chairman of Yuanshi Asset. ""This will benefit the A-share market in the long run and will, in the short term, boost blue-chip stocks, which are undervalued."" wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page26)", -516,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818670.htm,Chinese business school spreads its global perspective,,"The Cheung Kong Graduate School of Business is expanding into Europe to offer a Chinese market perspective to global executives at a time when the country's economy is increasingly engaging in the international business environment. The school has been testing the European waters since it held a weeklong executive training program in the UK and Switzerland in 2012. It is now into the second year of offering a full dual degree executive MBA. ""With China's WTO accession, there is a need for China to have more global companies,"" says Xiang Bing, founding dean and professor of China business and globalization at CKGSB, speaking of the World Trade Organization. In Xiang's view, it was precisely this need to help Chinese businesses successfully become global players, and to document their global expansion in academic research, that drove CKGSB's internationalization. - European executives who are Cheung Kong Graduate School of Business students are on a learning trip in Beijing. Provided to China Daily The rise of the Chinese economy and desire of Western businesses to expand into China offers opportunities for business schools such as CKGSB to offer Chinese insights to Western companies. ""For China's economy to become truly global China will need to have its own version of IBM, GE, Siemens and HSBC,"" says Xiang. ""Truly global companies from China will become one of the key forces of change; therefore, introducing a global perspective to Chinese entrepreneurs is important."" Xiang says CKGSB's strategy starts with creating a 40-member full-time faculty with extensive overseas teaching and research experience. The school then needs to form a global network with other universities to create knowledge-sharing and exchange platforms. Its international partners include Switzerland's IMD Business School in Lausanne, Harvard's Kennedy School, the Columbia Business School and National University of Singapore. The school aims to send students abroad for short-term learning programs to give them firsthand learning from international universities and the business world. Established in 2002 with the financial backing of the Li Ka Shing Foundation, CKGSB prides itself on teaching China's business elite through its Chinese EMBA programs. Xiang says internationalization has been a key focus of the school since its early days. ""When we devise our international expansion strategy, we look at which country is an important trading partner for China,"" Xiang says. CKGSB has identified the US and Europe as important areas in which to expand its footprint, given that they dominate the trading volume between China and the West. Additionally, Asian countries, including Japan, South Korea and Singapore form what Xiang terms the Confucian Economic Bloc. For this reason, CKGSB has established offices in New York,-Hong Kong-and London. ""In the coming two to three years, we will also have a focus for expansion in countries along China's Belt and Road Initiative."" The London office, established in 2011, initially focused on coordinating a three and a half day executive training program, taught at the University of Cambridge in 2012, and subsequently repeated at IMD. It brought Chinese and Western entrepreneurs into the same room to discuss preconceptions of each other's culture and to correct them in order to reach a better level of understanding in the business world, according to Neil Selby, former director of executive education at CKGSB Europe. ""It is quite a shock,"" said Selby. ""And from the shock, you then build. It's actually what eats away at the previous mindset you have. You probably have held that view for 20 years, and in the joint sessions you have something new."" After preconceptions are demolished in the initial encounters, students are asked to look at case studies of Chinese and European business interactions, along with conventional course materials. The initial program at Cambridge attracted 30 European CEOs, including Tom Hunter, a well-known philanthropist who was once Scotland's richest man, and Charles Aldington, former chairman of Deutsche Bank. Having successfully established its reputation in Europe, CKGSB embarked on the more ambitious project of launching a 22-month dual degree EMBA program with IMD, which includes teaching classes in London, Africa, Shanghai, Beijing and Lausanne. Launched in 2015, the program is now in its second year. Course content includes the implications of Chinese businesses going global, the leadership of internationally recognized Chinese companies such as Baidu and Alibaba, and insights into how the Chinese state works with businesses. Xiang says one key advantage for CKGSB is the insight it offers about China, derived from its professors' understanding of the Chinese business environment, and their research in the country. For example, the types of competition faced by state-owned enterprises, multinationals and private businesses in China are all very different because their platforms are different. The knowledge of CKGSB's professors about competition among market segments is helpful to students' practical understanding of doing business in China. Xiang says CKGSB's innovative thinking and teaching methods are key strengths. ""I often ask my colleagues to see earth from the moon,"" he says. It's an expression he uses to mean thinking outside the box. A lot of CKGSB's business ideas and concepts are taught in combination with philosophy and history, so students can understand the deeper meanings behind business concepts. In addition, Xiang says the high proportion of company CEOs and chairmen among its students makes the school unique as other business schools mostly focus on younger students and junior executives. More than 50 percent of CKGSB's 10,000 alumni are CEOs and chairmen of companies that accounted for 17 percent of China's GDP in 2015. ""Today there are so many fast technological, social and geopolitical changes that I think there is a greater need for chairmen and CEOs to come back to the classroom to study,"" he says. CKGSB has been praised by global business leaders, including HSBC Group Chairman Douglas Flint and Alibaba founder Jack Ma. ""It has brought a holistic view of understanding business, combining education with integrity, and value systems that are, I think, the foundation of the successful businessmen of the future,"" Flint says. Ma praised the effort: ""It is a daunting challenge for a business school to bring so many truly A-list business leaders together, but CKGSB has managed to hit another home run."" Looking into the future, Xiang is optimistic about CKGSB's European expansion, believing in a solid growing market for foreign executives to learn about China, and Chinese executives studying in Europe. In addition, as China's economy continues to mature and become closer in structure and characteristics to European economies, Chinese executives can learn more lessons from Europe - as in, for example, how to improve social welfare programs. ""Economically we are doing well, but in social programs we are falling behind,"" Xiang says. ""There is so much to learn from Europe, not just as a source of great technology and brands, and civilization and mobility, but also social programs. We place great emphasis on Europe as a source of learning."" cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 12/30/2016 page29)", -517,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818669.htm,IN BRIEF (Page 24),,"A girl is amazed by the size of the strawberries in a greenhouse in Zhejiang province. Winter is the harvest season for strawberries, and tourists had a fruitful time going to greenhouses recently. By opening their greenhouses to tourists, farmers can sell strawberries at a higher price than in the regular market. Ning Wenwu / For China Daily Ministry stresses foreign investment More sectors will be opening to foreign investment, an important stimulus for China's real economy, according to the Ministry of Commerce. In 2017 a larger share of capital inflows will be directed to high-end manufacturing, a key part of the economy, Minister of Commerce Gao Hucheng said at a national commerce work conference that concluded on Dec 27. Investment access restrictions will be lowered for general manufacturing as well, he said. 2 possible buyers for McDonald's China McDonald's Corp is reported to have narrowed the potential buyers of its China franchise to state-owned CITIC Group Corp and US-based private equity firm Carlyle Group LP, and an analyst said he is bullish on the potential transaction. The acquisition would greatly assist a McDonald's expansion in third- and fourth-tier cities in China, and boost its localization strategies."" McDonald's China didn't comment on the details of the deal. McDonald's plans to sell its Chinese mainland and Hong Kong resaurants, with a reported transaction value of $2 billion (191 million euros; 160 million). The fast-food chain said there is no detailed schedule on the deal, and it will announce the details once the sale has been confirmed. Outsourcing sees growth The growth of China's service outsourcing industry quickened in the first 11 months on strong overseas demand, according to the Ministry of Commerce. Chinese businesses inked service outsourcing contracts worth 836 billion yuan (115 billion euros; 98.2 billion) during the January-November period, up 17.5 percent year-on-year. The growth was faster than the 9.5 percent rise seen in the first 10 months. Among the deals were offshore service outsourcing contracts valued at 552.7 billion yuan, rising 17.1 percent year-on-year. Service outsourcing contracts from the United States and European Union were up 8 percent and 23 percent, respectively. BMW to recall 193,611 vehicles BMW will recall 193,611 vehicles in the Chinese mainland because of defective airbags, the country's quality watchdog said. The recall, which is set to begin on Aug 1, affects 168,861 imported cars made between Dec 9, 2005 and Dec 23, 2011, as well as 24,750 sedans manufactured between July 12, 2005 and Dec 31, 2011, according to the website of the General Administration of Quality Supervision, Inspection and Quarantine. China hits GM with $29 million fine China slapped a $29 million fine (27.8 million euros; 23.6 million) on General Motors Co for antitrust violations, a sign of growing international tensions. The biggest US automaker is accused of setting minimum prices on some models in its SAIC General Motors joint venture. The Shanghai Municipal Development & Reform Commission, which imposed the 201 million yuan fine, alleged in a statement that GM punished dealers who sold cars for less than the prices set by the Detroit-based automaker. It is the first time China has fined GM, the second-largest foreign carmaker in China by sales. Ikea to increase megamalls in China Ikea Centres China is firming up plans to replicate its success in three cities across the country. Beginning 2020, it will open one megamall per year. Typically, a megamall is a shopping mall with an Ikea store. Future ones may also include apartments, hotels or offices. The megamalls are also known as Livat shopping centers. In China, the company's megamalls are in Beijing and in Wuxi, Jiangsu province, and Wuhan, Hubei province. Ding Hui, president of Ikea Centres China, said the three centers have served as tests that produced encouraging results. New shopping centers may come up in major cities such as Beijing, Shanghai, Shenzhen and Guangzhou, as well as in second-tier cities such as Chongqing, Xi'an, Wuhan, Hangzhou, Nanjing and Qingdao, Ding said. The fourth in the country, which will entail an investment of about 4 billion yuan ($576 million; 552 million euros; 471 million), will be a commercial complex in Changsha, Hunan province. Health 'ecosystem' coming to China Royal Philips of the Netherlands is looking to roll out a personal health ""ecosystem"" in the Chinese market to seek opportunities amid surging demand for health improvement, according to Jorgen Behrens, senior vice-president of Personal Health Solutions at Philips. Behrens made the announcement during his trip to China for the launch of Philips Health Watch, a piece of upgradable hardware that helps users to better manage their health using data from sensors, smartphone app software and remote location support services. It is the first of a slew of products targeting China's consumers in first- and second-tier cities who are allocating more income on personal health improvement, Behrens said. New users of the product - which has a starting price of 3,599 yuan ($519; 497 euros; 424) - in China can get the first three-month subscription with value-added services free. After that, the charge is 500 yuan for every three-month subscription. Czech rail operator buys Chinese units Czech domestic rail and bus operator Leo Express has signed a contract to buy three Electric Mutiple Units from Chinese train manufacturer CRRC Zhuzhou Electric Locomotive Co. The total value of the transaction exceeds 20 million euros (17.1 million). According to Liao Hongtao, deputy general manager of CRRC ZELC, the contract includes three EMUs, spare parts, testing equipment and training services. The EMU units are the first from a Chinese enterprise to enter the European Union market. CRRC ZELC will provide all the electric locomotives that Leo Express needs in the next few years - as many as 30 over three years. Ethiopia approves financing deals Ethiopia's parliament on Dec 27 approved three loan agreements worth over $380 million (364 million euros; 310 million) with the Chinese government and the Export-Import Bank of China to finance major infrastructure constructions in Ethiopia. The three agreements already approved will finance two road construction projects in Ethiopia's capital, Addis Ababa, and upgrade the city's electric grid system, according to Birhanu Abebe, vice-chair of the Budget and Finance Affairs Standing Committee of the parliament. Briefing members of the House of Peoples' Representatives on Dec 27, the lower house, Birhanu said that one of the three projects is a $230 million advanced electric grid system installation designed to upgrade and modernize Addis Ababa's electric service. The parliament also ratified two other loan agreements to finance two road construction sites in the capital, which will cost $102 million and $50 million, respectively. ( China Daily European Weekly 12/30/2016 page24)", -518,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818668.htm,WeChat calls beat telecom companies,,"WeChat has eclipsed telecom carriers to become the first choice for Chinese people to make calls, a study has found. The 768 million active WeChat users - more than double the entire population of the United States - made more than 100 million voice and video calls everyday via the app in 2016, its developer Tencent Group Holdings Ltd said in a report on Dec 28. With the advent of the faster 4G network and wireless connections, the figure was 1.8 times that of last year, the report found. A typical WeChat user - defined by Tencent as in his or her 20s and 30s - spent on average 65 minutes per month on WeChat-enabled calls. That further squeezed margins for telecom operators as they worry about a dent in their revenue, the study said. The country's biggest carrier, China Mobile Communications Corp, for example, saw its revenue from voice services fall 16.5 percent year-on-year in 2015. The report found that half of active WeChat users linger on the app for longer than 90 minutes on a daily basis. A typical user sent out 74 messages, up 67 percent from last year, contrasting with a double-digit percent drop in short message service revenue for the likes of China Mobile. Tencent's all-purpose app encapsulates the functions of Facebook, Uber and PayPal, increasingly making it an essential tool for China's rising middle class. New features from digital ads to digital wallet are also helping Tencent win new territory beyond its traditional stronghold, the study found. For instance, typical users spend 580 yuan ($83.4; 79.8 euros; 68) per month on distributing red packets, a play on the red envelopes traditionally used to give gifts of money during festivals in China. By doing so, Tencent is intent on cultivating customer habits to use WeChat as a payment channel and a gateway to other business scenarios it hopes to capitalize on. The report also found that China's elderly people, aged 55 or older, have become the biggest beneficiaries of the app. Many leapt from the pre-web era straight to the mobile internet, skipping the personal computer altogether. Data showed they spent 17 more minutes every month in audio and video chats than their younger peers, and outperformed them in WeChat Sports, a fitness tracking function that allows motion tracking to share the number of steps users take each day. WeChat has become a lifestyle in China, as half of its users open it more than 10 times per day, according to Li Chunyan, founder of Feida Consulting. WeChat creator Zhang Xiaolong says it is set to revolutionize the app industry by introducing ""mini-apps"", which are apps that do not require installation. ""This will boost the ease of use and reliability of the app, without it becoming inconvenient in terms of storage space and clutter for the user,"" said Zhang during a recent developers' event in Guangzhou. The mini apps will not be accessed from WeChat, but most likely through scanning quick response or QR codes. hewei@chinadaily.com.cn - A WeChat QR code poster in Taiyuan, Shanxi province. Deng Yinming / For China Daily (China Daily European Weekly 12/30/2016 page25)", -519,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818667.htm,TCL Corp took global strategy to heart early,,"Business model was 'just a concept' in the beginning, but financial crisis showed necessity of taking operations overseas While many companies think about going global only when they are strong domestically, Chinese electronics giant TCL Corp has cultivated its international DNA since it was very young. Established in 1981, TCL sells to more than 160 countries. Of its 104.6 billion yuan ($15billion; 14.4 billion euros; 12.3 billion) revenue in 2015, about 46 percent came from overseas markets. ""In two or three years, I aim to make the proportion exceed 50 percent,"" says Li Dongsheng, chairman of TCL, in an interview in Beijing during the 2016 China Entrepreneur Summit in December. - Visitors experience the new products at TCL's headquarter in Huizhou, Guangdong province. Mai Tian / For China Daily Headquartered in Huizhou, Guangdong province, TCL started cultivating its global landscape in 1999 - and that has much to do with Li's early experiences and awareness of globalization. Having graduated from South China University of Technology in 1982 with a degree in radio wireless technology, Li started working for the TTK home appliance company, the predecessor of TCL. Later he worked for three years for the Huizhou government, focusing on bringing in foreign investment. He returned to TCL in 1993. Li says that at that time China had begun to reform and open up, and Guangdong province was at the forefront, having taken big steps by bringing in many foreign companies. Li was able to participate in the creation of more than 10 large joint ventures. ""While establishing joint ventures, I got many chances to visit foreign companies, such as Philips and Siemens, and was greatly impressed by the technology and management. I also realized that successful companies not only have success in their home countries but are usually global,"" he says. ""I then realized that if we wanted sustainable development of our business, we needed to be global."" TCL's globalization process started in late 1990s. At that time, the company still focused on processing materials supplied by foreign business people and for foreign brands. However, when the financial crisis in Southeast Asia occurred around 1997, TCL's exports were severely affected. ""For me globalization was just a concept, bringing in the experiences of overseas companies and learning from them. Good companies all have global business,"" he says. ""But when the financial crisis came, we realized we could not achieve globalization if we relied on processing materials supplied by the foreign business people, so we decided to go overseas ourselves."" TCL started by manufacturing recording tapes. It then expanded its business on a big scale, manufacturing telephones, TVs, mobile phones, refrigerators, washing machines, air-conditioners, home appliances and LCD panels. The company now has 82,000 employees, 23 research and development centers and 21 manufacturing bases worldwide. But the globalization process is never easy. The company made headlines when it acquired the TV business of French electronics firm Thomson SA for 230 million euros ($255 million; 196 million) in January 2004. Seven months later, it stunned the telecommunications industry by gobbling up Paris-based Alcatel Mobile Phone. However, the ambitious Chinese acquirer soon suffered indigestion. TCL ran up gigantic losses of about 2.7 billion yuan in 2005, the first time it had slipped into the red since its inception in 1981. Its overseas business did not stop sliding until 2009. Li admits that was a very difficult time, but when he recalls it he says: ""You need to be very, very consistent, however difficult it is, as long as you know you are doing the right thing."" - Li dongsheng, chairman of TCL. Provided to China Daily Li says that mergers and acquisitions represent a quick way for Chinese companies to go global, because it is a way of quickly acquiring the other companies' market share and expertise in products and technology. ""But it poses great challenges for the management of companies, because you need to integrate your own company with a new organization and a new team. If the integration doesn't go well, costs will increase, and competitiveness will be weakened,"" he says. The question is whether it is better for companies to grow via mergers and acquisitions or to expand markets by themselves, based on the industry's situation, the market environment and overall ability. Li says that in the early stages, TCL's relatively cheaper prices and good quality attracted overseas consumers, but it has been spending more energy on technological innovation and brand-building to strengthen its push for globalization. ""Chinese brands and products have gradually got rid of the image of being low-priced and low-quality,"" he says. ""TCL now covers a wide range of goods, with various products all under the brand of TCL that can be expensive, affordable or cheap, depending on the requirements of consumers worldwide."" Li says that with the increasing competitiveness of China's manufacturing, he believes that Chinese companies will play more important roles in the world economy. ""In certain industry sectors, Chinese companies now perform better than traditional Western brands. In the electronics industry, Chinese companies are the main manufactures of TVs, mobile phones and many household electrical appliances. This is a huge achievement,"" he says. As for different countries and markets, he says the business models should all be different. But one rule is the same: There must be different strategies; different business models based on the specific situation in different markets; and different products and services based on different consumers' demands in different countries. ""Moreover, you need set up business systems that fit operation in a specific country with respect to its economic environment and regulations. Then you will be able to be efficient and competitive,"" he says. For example, in the Indian market, the average size of a TV set is smaller than 32 inches. In Africa, what sells best are TV sets between 28 inches and 24 inches. For smartphones, in some countries, there is good mobile network infrastructure to support use, but in others there is no 4G internet, he says, so different products should be made to fit in with the local markets. Moreover, he added, when going global, it is important for Chinese companies to shoulder certain social responsibilities. ""It is not right to just sell your products to another country and then leave. You need to transfer your industrial abilities, technology and service expertise. While building your own business, you need to contribute to the the local economy. Bear this in mind and your globalization will see sustainable development,"" he says. Li says China's Belt and Road Initiative will also be helpful for TCL's globalization, noting that in the past it took 35 to 40 days to transport products from the Guangdong manufacturing center to Poland, where its center for European markets is situated. But this year, with the opening of the China Railway Express, TCL's products were sent by train from Chengdu, Sichuan province, to Poland in about 10 days. ""For us, turnover efficiency is much higher and the duration of the journey has been reduced by about 25 days, which means a lot in the fast-changing electronics industry. Moreover, the cost of transport by train is cheaper than by sea, which is very helpful for us in developing European markets."" Li says the Belt and Road Initiative will help connect many countries and regions, and TCL is considering expanding along the routes to places such as East Asia and Russia. Meanwhile, the Maritime Silk Road will also help TCL develop markets in South Asia and Europe, he says. chenyingqun@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page28)", -520,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818664.htm,A river that flows with local culture,,"Many world-class cities are endowed with a first-rate river. Shanghai has two. Suzhou Creek and the Huangpu River are tributaries of the metropolis' appeal. Suzhou Creek in particular is worth exploring. The ""mother of Shanghai"", as it's also called, serves as an umbilical linking the city's past and present. It snakes 17 kilometers from the Waibaidu Bridge downtown to western Shanghai's outer ring road. The bridge is an icon that appears in many movies that were set in the city. Dozens of couples flock to the bridge every day for wedding photos. The ""garden bridge"", as it is also called, marks the point where Suzhou Creek begins and intersects with the Huangpu. It flashes with colored lights at night. The 106-meter-long bridge - the first large one built in the city - was designed by a British company and built in 1873. It no longer serves as a traffic artery - nearly 40 other bridges have been erected over the waterway. But it stands as a pedestrian corridor for tourists. It's a Shanghai tradition for a grandmother to carry a 1-month-old grandchild across a bridge as a blessing to indicate that the newborn has navigated all the twists and turns so far and will be safe and happy throughout life. Suzhou Creek's banks hosted the textile mills, chemical plants and factories that propelled Shanghai's 1920s industrialization. They produced modernization - and pollution.By the 1930s, the water was devoid of fish and no longer suitable for taps. Things started to turn around in the 1990s. Factories were replaced by sought-after highrises. Changning district hosts a 5-km waterfront that has become a popular place to walk and sit on lawns. A boardwalk runs along both banks. As 29-year-old resident Xiao Xu puts it: ""Jogging on different sides offers different feelings. The north side is next to the water, while the south is next to highrises, which makes it like running through a jungle."" Presumably, she means the concrete kind. zhouwenting@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page20)", -521,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818663.htm,Three days in Shanghai,,"Once heralded as the Paris of the East, Shanghai remains arguably the country's most cosmopolitan city. Resident Alywin Chew devised a three-day itinerary to take in the best it has to offer Shanghai is the engine of China's financial and innovation development. The mega city offers a captivating blend of modernity and old-world charm like no other place in the country. Lujiazui district's towering skyscrapers are a symbol of Shanghai's rapid ascent as one of the world's most prominent financial hubs. Yet the countless old alleyways, shikumen houses and unmistakable beauty of the former French Concession serve to temper the city's image as a modern behemoth with insatiable global ambitions. Both Shanghai and neighboring Jiangsu and Zhejiang provinces offer 144-hours visa-free to visitors. Half that can be used to explore China's most metropolitan metropolis. DAY 1 The Bund The Bund is a destination in itself, worth a full day. Check into the Fairmont Peace Hotel, a historical property that dates to before World War II. It features brilliant art deco-inspired interiors that pay homage to a style of visual arts that rose to prominence in the 1930s. Then, take a stroll along Shanghai's most famous tourist stretch. The waterfront area overlooks the Huangpu River and the Lujiazui skyline, which is anchored by the iconic Oriental Pearl Tower and the 632-meter-high Shanghai Tower. There's no shortage of excellent dining options around the Bund. Three on the Bund is home to a number of acclaimed Western eateries, including three restaurants by culinary maestro Jean-Georges Vongerichten - Jean-Georges, Mercato and Chi Q. Relax at the Fairmont Peace Hotel's jazz bar on the ground level, where the city's most-renowned and oldest jazz musicians - they average about 80 years old - demonstrate that age is just a number. A short walk from the hotel, The Nest offers a variety of nightcap options and an impressive selection of sophisticated bar bites. DAY 2 Meat-and-soup-filled dumplings No trip to Shanghai would be complete without sampling xiaolongbao, the quintessential local snack. Jia Jia Tang Bao is arguably the city's most renowned hole-in-the-wall institution for this soup dumpling. Another beloved Shanghainese snack is the shengjianbao. Like xiaolongbao, it also has a delicious broth, but it's considerably larger, has a thicker skin and is pan-fried instead of steamed. Locals swear by those made at Fengyu, which has multiple stores across the city. Shanghai Old Town Admire architecture that dates back to dynastic rule in Shanghai Old Town, between Remin Road and Zhongshan Road. You'll also find street vendors selling snacks, souvenirs and antiques. Have lunch at Jian Guo 328, a popular Shanghainese dining establishment that serves hearty home-cooked fare at very affordable prices. If Shanghainese cuisine is too sweet for your liking, head to Canton 8, which was crowned in 2016 as the world's cheapest restaurant with two Michelin stars. The establishment serves Cantonese cuisine and a sumptuous dim sum spread. Fuxing Park Get a glimpse into the daily lives of Shanghai residents at Fuxing Park. This manicured green space hosts tai chi practitioners, dancing middle-aged women and old men chatting with cigarettes in one hand and bird cages in the other. Hairy crabs are a must-try Shanghai delicacy. Xin Guang Jiu Jia, where customers are spared the hassle of dissecting the crustaceans, is celebrated. Cooks separate the flesh and roe for customers. Massage Enjoy a soothing foot massage at Taipan Massage, where the service is complemented by a free flow of beverages and small servings of noodles. Noodles A nameless, hole-in-the-wall noodle joint at 166 Zhaozhou Road, near Ji'nan Road, offers an utterly local dining experience. Featured in Anthony Bourdain's Parts Unknown travel-and-food TV series, the ""long leg"" noodles here come with pork, lard, soy sauce, vegetables and a delectable broth. DAY 3 Breakfast Green eggs and ham come on a sandwich at Madison Kitchen, which also offers roast beef sandwiches and peanut butter-and-almond cookies. Art museum Take a tour of the Shanghai Museum of Contemporary Art. Designed by the acclaimed local company Atelier Liu Yuyang Architects, the museum features a surreal mix of contemporary Chinese and international works. Sightseeing tunnel Hop onto a tram at the Shanghai Bund Sightseeing Tunnel that takes you under the Huangpu River to Lujiazui. The experience is admittedly a little kitschy, but there's no doubt that the psychedelic lighting makes for great photographs. Admire the breathtaking cityscape from the observation deck on the 119th floor of Shanghai Tower, the second-tallest building in the world after the Burj Khalifa in Dubai. Nightcap Round off your last night with a nightcap at Speak Low, which came in second in the inaugural 2016 Asia's 50 Best Bars. Helmed by Japanese cocktail veteran Shingo Gokan, it offers creatively crafted tipples in cozy surrounds. alywin@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page20)", -522, 2016/12/30 7:11,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818662.htm,Changing the subject,,"A wise man said the only certainties in life are death and taxes. Everything else is in continuous motion, so you might as well enjoy the ride Once upon a time, there was an old man who lived at the foot of two mountains. He hated the mountains for blocking his way and decided to move them one bucket at a time. Determined, the man devoted his life to the effort. In the end, God decided to move the mountains for him. Imagine how easy a task (and how short a story) it would have been if the man had simply moved his house. There are many similar stories in Chinese mythology where humanity triumphs over nature. Little did they know that in the future - with melting ice caps, sinking cities and shrinking glaciers - there would be a price to pay for humankind's arrogance in nature's realm. Faced with global warming (全球变暖 qu��nqiú biàn nuǎn), �?(biàn, change, transform) is a character you might do well to learn. From its early pictorial form, we know this character emphasizes the human element in change. The top half of the character is a complicated pattern, consisting of a pair of hands trying to sort through a mess of silk threads. This is the radical , which means ""chaos"". The bottom half is a hand holding a stick, which later evolved into the radical �? So, essentially, our ancestors wanted to use a stick to bring order to a mess. A saying from the I Ching《易经�?(Classic of Changes) stressed the importance of �? ""穷则变,变则通,通则久�? (Qi��ng z�� biàn", which can be attached to different subjects. 变化 (biànhuà -523,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818661.htm,Timeless Chinese BBQ,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong visages of community and culture. In virtually any Chinatown in the world, barbecued duck, chicken and pork are a standard sight, hanging on hooks behind glass counters - effective advertising to attract meat lovers of all nationalities. It works like magic. Unexpected guests for dinner? Run down to the Chinese barbecue and get a roast duck. The chef will even chop it up for you, ready to go on the plate once you reach home. Or ask for a mixed platter for a savory variety. Solitary and hungry for lunch or dinner? Rice and noodles are staples, topped by your choice of meat, from a roast duck drumstick to maybe a row of neatly slivered barbecued pork loin. The barbecue chef will even throw in a salad of cucumber, cilantro, tomato, and pickled radishes and carrots. - Soy sauce chicken is made from organic chicken that is repeatedly dunked into a boiling soy sauce marinade until the bird is just cooked and still slightly pink at the bone. Photos by To Chee Kan / For China Daily - The perfect bowl of won-ton noodles must have egg noodles cooked al dente and dumplings that float like clouds in the tasty soup. Such is the universal appeal of Chinese barbecue worldwide that it is often the first introduction to Chinese food, followed probably by dim sum, the snacks-on-trolleys at Chinatown restaurants. We owe this to the first emigrants from southern China, the Cantonese, whose legacy was further reinforced later by a second diaspora of chefs from Hong Kong in the mid-1990s. It's still the Hong Kong chefs who do barbecue best, having the advantage of a sophisticated, appreciative audience and access to the best ingredients. Where else would you find them making char siew from the best Kurobuta pork? Let's take a tour of the Chinese barbecue counter. First there will be several kind of birds hanging whole, ready to be cut up and served as orders come in. There will be whole roast geese, distinguishable from ducks by their longer necks, larger bodies and a fatty hump at the top of their heads. There are ducks, of course, skins crisp and burnished a beautiful red-bronze by a maltose glaze, slow roasting over an open fire. Often, there are whole chickens - braised, not roasted, and succulent at every bite, their skin saturated by a fragrant soy sauce marinade kicked up a notch by Chinese rice wine. Whole slabs of belly pork are salted, seasoned with five-spice powder and roasted until their skins puff up. The siew yuk or shaorou is a delicious masterpiece with distinct layers of lean meat and fat topped by an exquisite square of crisp crackling. Char siew is the name for honeyed strips of barbecued pork fillets, which are often the most popular. Whereas the roast duck, the braised soy chicken and even the crackling-topped belly pork are pretty specific in their use of ingredients, barbecue chefs in Hong Kong and Guangdong have exercised the most creativity in making char siew. Traditionally, the recipe calls for a loin fillet that is marinated in a thick soybean paste, maltose or honey-and-soy sauce. The strips of meat are then hung and baked in a drum oven until the fatty edges crisp or even blacken. The burnt ends are very popular with children. Modern-day chefs are catering to changing tastes. At one time, pale pink and generously marbled pork cheeks were used to make char siew. The result was an incredibly tender piece of meat that almost melts in the mouth. This is still my favorite cut of meat. The trend these days is to offer two types of char siew, a fatty version and a healthier alternative. The fatty char siew is made with meat just bordering the belly, with enough marbling to ensure tenderness and some visible fat on the edges that crisp up for a flavor contrast. Perhaps this is a knee-jerk reaction to the health fads that have cut a swath across the food and beverage industry. Chinese barbecue is also famous for its accompanying sauces and garnishes. For roast goose and duck, there is always a hot, dark chili oil and a sweet-and-sour thick plum sauce, both designed to cut the grease. In the past, every order of roasted bird came with a shallow pool of duck or goose juices and several spoonfuls of candied whole soybeans braised in licorice bark and soy sauce. The soy-braised chicken, however, comes with a sauce of pulverized spring onions and ginger scalded in sesame oil. Salads of sliced cucumbers and tomatoes, pickled radishes and carrots are all part of the mise-en-place. And, you can order rice or noodles to go with your barbecue, always with a thoughtful ladle of sauce drizzled over them. Restaurant dishes follow trends and consumer fads, but if ever there is an evergreen, it must be the time-tested Chinese barbecue. paulined@chinadaily.com.cn Grassroots favorites earn Michelin stars When the famed Michelin Guide to good food first entered China, it zoomed in on Hong Kong, where food is a major attraction for both tourists and locals. It also wisely took to the streets instead of confining its critiques to posh restaurants. So it was that a hole-in-the-wall dim sum shop got its one Michelin star, and a Chinese barbecue stall run by three generations of chefs was awarded another. The dim sum outfit is Tim Ho Wan, and the Chinese barbecue is Kam's Roasts - both of which have been successfully franchised and exported to other countries, such as Singapore. The master franchisee is none other than Robert Chua, the legendary broadcaster who turned the Chinese variety show Enjoy Yourself Tonight into a launchpad for countless Hong Kong television celebrities. In his second career as he tops 70, Robert Chua is powering his way forward in the food and beverage industry. Television and food are not much different, he says. They are both people industries. ""You must give them a good product, honest hard work and thoughtful service,"" he says. Needless to say, you also need an excellent entrepreneurial sense and people skills to persuade the owners of Tim Ho Wan and Kam's Roasts to hand over the franchises. When we visited his restaurant, Chua did not say much but he was certainly doing a lot. As Kam's executive chef, Wong Kwan Seng, says, Chua is a tireless dynamo, personally overseeing the staff, greeting customers, introducing the menu and even clearing the tables after the diners have finished. Seven decades old, he still sets an example that shames those much younger. And that's why I have no doubt that a Kam's Roasts will soon come to a location near you. (China Daily European Weekly 12/30/2016 page19)", -524,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818660.htm,Ethnic art inspires high fashion,,"Chinese brands draw inspiration from Miao ethnic traditions, adding flair to products while helping the old ways to survive Tucked away in the mountains, Jidao village is a three-hour drive from Guiyang, capital of Guizhou province. Here, the ethnic Miao people maintain their traditional lifestyle, living in wooden houses, preserving meat in early winter and holding gatherings at the riverside to remember their ancestors. All this might seem to have no connection with high fashion, but the community has been a source of inspiration for many designers and fashion houses, including fashion brand Eve. - Eve models show off the brand's new collections, which use embroidery patterns inspired by the ethnic Miao in Jidao village, Guizhou province. Photos Provided to China Daily The Chinese brand recently made a trip to the village for an advertising campaign for its 2017 spring and summer collection, which features Miao-style embroidery. Inspired by the sea, the collection features shades of blue on suits, sweaters and coats. A smattering of embroidery adorns the classic suit silhouette. The women's collection includes sleek qipao - a traditional Chinese women's dress - along with dresses that highlight nature-inspired embroidery. While traditional Miao embroidery is intricate, Wu Chaohui, creative director of Eve's menswear line, says the brand has simplified it to cater to customers' modern-day needs. ""Traditional Miao embroidery is usually very rich and ornate, while modern menswear is understated. So we try to use it in a selective, moderate way,"" he says. ""We want to revive this heritage by offering it to an urban clientele, and we hope this tradition will live on."" Eve has been working on a project to preserve Miao embroidery over the past 15 years with a dedicated team that documents the traditional crafts. It has established a network of craftspeople and their work, which has been used extensively in their collections and shown at exhibitions and in runway shows in Milan, London and Paris in recent years. Separately, Eve has also formed an alliance with local brands, so that all its members can make use of the database. In a related development, it helped build a museum in Guizhou to exhibit the works of the embroiderers. Xia Hua, founder and chairwoman of the Eve Group, says, ""These people are preserving their heritage with their hands. I want to share their craftsmanship with the world and let it see the beauty of our country."" Xia was a teacher at China University of Political Science and Law before founding the Eve Group in 1994. Eve is best known for making men's suits, and has dressed such Chinese magnates as Jack Ma and Liu Chuanzhi. The company now has five brands - Eve de Uomo, Notting Hill, Kevin Kelly, Jaques Pritt and Eve Cina. The prices of its outfits range from a few hundred to more than 10,000 yuan ($1,440; 1,380 euros; 51,175). The group currently has more than 500 stores in China, including a designer space in Beijing's Parkview Green mall that showcases its collaborations with international and local designers. The growing interest in Miao ethnic culture is also changing the lives of villagers. In Jidao village, embroiderers now hold workshops to teach children the craft. There are about 50 embroiderers in the village, with the oldest more than 80. For overseas exposure, the embroiderers were taken by Chinese designer Xie Feng to Paris Fashion Week in 2012 to exhibit their skills. As their craftsmanship has gained more exposure over the years, orders have flooded in. Now, looking to secure their future, the embroiderers have created a foundation to which they contribute 3 percent of their revenues. Its assets now total around 6,000 yuan, which they intend to use to promote their art, says Chen Qin, an embroiderer and a foundation organizer. ""It is like a seed. We will use it to spread our heritage."" Contact the writer at sunyuanqing@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page18)", -525,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818659.htm,Outbound investment expected to grow,,"Companies encouraged to continue operations internationally despite moves to curb risky deals China's outbound investment is expected to continue to grow next year, despite efforts to tighten irrational - or risky and potentially disruptive - investments, the Ministry of Commerce said on Dec 23. Ministry spokesman Shen Danyang told a news conference in Beijing that the authorities are encouraging companies to continue to expand and operate internationally. ""At the same time, we need to put a cap on irrational outbound investment in real estate, hotels, entertainment and sports to guard against risks,"" Shen said. He said that special attention needed to be paid to companies making large-scale investments in fields outside their main business, companies of limited partnership and companies investing in overseas projects that are bigger than the mother company itself. China's overseas direct investment in the first 11 months stood at $161.7 billion (154.86 billion euros; 132.08 billion), up 55.3 percent year-on-year. That growth rate is three times higher than for the same period last year. The ministry did not elaborate on the rate the country's outbound investments are predicted to grow in 2017. Some of the biggest investments in the current year included Wanda Group's purchase of US movie making company Legendary Pictures at $3.5 billion, Midea Group's takeover of German robot manufacturing company KUKA at $5 billion, and Anbang Insurance Group's acquisition of a luxury housing project from the Black Stone Group for $6.5 billion. Four government departments - the National Development and Reform Commission, the Ministry of Commerce, the People's Bank of China and State Administration of Foreign Exchange - have recently made joint remarks about tightening irrational investment overseas. Fu Hongyu, deputy director of the research center of domestic and overseas financial law at Beijing Foreign Studies University, says that on one hand investment in infrastructure construction - particularly in the Belt and Road Initiative region - is to be encouraged. On the other hand, he adds, investments in areas where hot money and speculation thrive will be subjected to stricter review. ""Management of industries such as hotels, entertainment and sports is complicated because it is easy to rig the taxes and statistics, which makes them ideal channels for money laundering,"" Fu says. yangziman@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page15)", -526,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818658.htm,China looks to export its stealth fighter,,"Improved version of advanced aircraft gets a test flight four years after first prototype was born An improved version of China's FC-31 Gyrfalcon stealth fighter jet is undergoing flight tests in Shenyang, Liaoning province, according to aviation industry sources. Previously known as the J-31, the twin-engine, radar-evading aircraft is still under development by Shenyang Aircraft Corp, part of the Aviation Industry Corp of China. The test flight of the latest prototype took place on Dec 23 at Shenyang Aircraft Corp, four years after the first one took to the skies, sources say. Aviation enthusiasts posted pictures on Chinese websites, showing what they said was the second prototype in flight. A publicity officer at AVIC who declined to be named confirmed the flight test but said he was not authorized to disclose details. The FC-31 was unveiled in October 2012, when the first prototype took to the air, becoming the country's second fifth-generation fighter jet following the J-20, which had its first flight in January 2011. Deliveries of J-20s to the People's Liberation Army Air Force have begun. Fifth-generation fighters are the most advanced available. The new FC-31 seems to have better stealth capabilities, improved electronic equipment and a larger payload capacity, says Wu Peixin, an aviation industry observer in Beijing. ""Compared with the first FC-31, there are a lot of improvements on the second prototype. Changes were made to the airframe, wings and vertical tails, which make it leaner, lighter and more maneuverable,"" he says. Fu Qianshao, an aircraft expert with the PLA Air Force, says the new FC-31 has state-of-the-art instruments such as its electro-optical targeting system and helmet-mounted display and sight system. He says AVIC wants to use the FC-31 to capture market share at home and abroad, but the company is making a big push to attract foreign buyers with the medium-sized stealth combat planes. ""I believe the aircraft will have bright prospects in the market. Based on my experience and knowledge, I presume its price will be around $70 million (67 million euros; 57 million), about half that of the United States' Lockheed Martin F-35 Lightning II,"" he says. ""Moreover, the fourth-generation Eurofighter Typhoon and Dassault Rafale fighter jets are priced at about $100 million. All of these mean you can spend a lot less money to get an advanced, fifth-generation stealth combat plane."" Li Yuhai, deputy general manager of AVIC, has previously said AVIC plans to use the FC-31 to ""put an end to some nations' monopolies on the fifth-generation fighter jet"". This plane ""is able to compete with any other aircraft of its kind"", Li says. The only fifth-generation fighter jet currently available in the market is the US F-35 Lightning II, but the US sells it only to allies. AVIC displayed a large-scale model of the FC-31 at the 14th Dubai Airshow in the United Arab Emirates in November 2015. Specifications supplied by AVIC reveal a maximum takeoff weight of 28 metric tons, a flight radius of 1,250 kilometers and a top speed of Mach 1.8, or 1.8 times the speed of sound. It can carry 8 tons of weapons. The plane can hold six missiles in its internal weapons bay and another six under its wings. zhaolei@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page14)", -527,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818657.htm,Two bullet train lines now connect southwest to coast,,"Plans for future high-speed connections power ahead as important links are opened China opened two major high-speed rail lines on Dec 28, linking the country's less developed southwest with built-up coastal areas. It also marks Yunnan province's entry into the nation's high-speed railway network. The new lines link its capital, Kunming, with Shanghai and Guangzhou. Twenty-nine of 31 provincial-level regions on the Chinese mainland are now served by high-speed railways, excluding only the Tibet and Ningxia autonomous regions. The 2,252-kilometer Shanghai-Kunming rail line traverses five provinces - Zhejiang, Jiangxi, Hunan, Guizhou and Yunnan - and cuts rail travel time between the two cities from 34 to 11 hours, according to China Railway Corp, the nation's rail service provider. It's the nation's longest east-west high-speed railway. Trains run from 300 to 350 kilometers per hour, depending on topography. The new Kunming-Guangzhou line cuts travel time from 16 and 30 minutes to 8 hours and 52 minutes, running at 200 to 250 km/h. A high-speed grid of four north-south lines and four east-west lines is taking shape. In 2008, China set a target to build the grid by 2020. Only two sections have not opened yet, the Jinan-Shijiazhuang and Baoji-Lanzhou lines. ""The two new high-speed lines and the newly opened transportation hub at Kunming South Railway Station are important basic infrastructure to link with neighboring countries in South Asia and Southeast Asia,"" China Railway Corp said in a statement. The system also aims to help eradicate poverty by transforming the high-speed rail industry into an economic driving force. Peng Wan, a 28-year-old train fan from Kunming, took a day off work on Dec 28 to catch the first bullet train departure from his hometown. ""In the early 1990s, I took a train from Kunming to Guiyang for the first time. It took about 20 hours. The travel time from Kunming to Guiyang has been reduced, to 17 hours and then to 10 hours, and now to only 2 hours and 30 minutes. Guizhou is our neighbor and we can travel back and forth in the same day,"" he said. In July, the National Development and Reform Commission issued an updated national railway development plan envisioning 38,000 km of high-speed railways by the end of 2025, up from more than 20,000 km now. The current system accounts for 60 percent of the world's high-speed railroads, according to China Railway Corp. ""We will accelerate the construction of railways in central and western parts of China. We will also boost the expansion of intercity and suburban rail links,"" Zhang Dawei, deputy head of the Transport Ministry's planning department, said in July. By the end of 2020, plans call for more than 80 percent of mainland cities with a population of at least 1 million to be covered by high-speed railways. luowangshu@chinadaily.com.cn - Tao Feiran, a student at Yunnan Normal University, proposes to Xu Mengming on the high-speed train from Kunming, Yunnan province, to Guiyang, Guizhou province, on Dec 28. Zou Hong / China Daily (China Daily European Weekly 12/30/2016 page15)", -528,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818656.htm,TCM law promotes traditional health practice,,"China's first law covering traditional Chinese medicine was passed by the top legislature on Dec 25 to ensure development of the time-honored medical practice and enhance the public's ability to access more quality products and related services. The law will take effect on July 1. ""It is a milestone for TCM development as it's recognized by law,"" Wang Guoqiang, head of the State Administration of TCM, said at a news conference on Dec 25. The law is also an indication of public demand and expectations for TCM, which has proved effective but at times cannot be easily defined or regulated by mainstream Western medical approaches, he said. - Employees work at a traditional Chinese medicine shop in Zhengzhou, Henan province. China's first law covering traditional Chinese medicine was passed recently and will take effect in July. Provided to China Daily ""The adoption of the law is only a start, and more matching policies and regulations will follow in the spirit of the law boosting TCM,"" he said. TCM long ago was the only treatment available in China, but Western medicine began to dominate in modern times. In recent years, some have even called on authorities to drop TCM's status as a legally accepted treatment option. The law recognizes TCM as an important part of the country's healthcare system and encourages its development. It also allows it to be managed and regulated according to its own characteristics. Unlike many doctors of Western medicine, some TCM practitioners learned their skills from a master instead of going through a standard school education. But ""many do command great skill. The law allows them to get a license to practice TCM and go mainstream"", says Deng Yong, a researcher of law at Beijing University of Chinese Medicine. The new law stipulates that practitioners must pass exams highlighting practical skills and treatment outcomes by provincial-level TCM authorities, and obtain recommendations from two certified practitioners. That's a major breakthrough as ""many competent TCM doctors work underground because they couldn't pass the exams for medical doctors that focus on Western medicine or the English tests"", Deng says. The law also makes it easier to open individual practices and clinics by requiring only the filing of a record with the local health authority, instead of an approval, he added. There are 3,966 TCM hospitals and 42,528 TCM clinics across the country, with roughly 452,000 practitioners, according to a white paper on TCM issued by the State Council Information Office this month. They receive an average 910 million annual visits nationwide, it said. ""The law will help bring more competent TCM doctors to patients,"" said the TCM administration's Wang. By clearly setting the boundaries of treatment, the law helps to eliminate fake TCM doctors who often boast they can cure all diseases, Deng said. ""That protects patients' rights and health and the reputation of TCM,"" he said. Under the law, TCM products and services can be advertised only with approval from the local TCM authority. To safeguard consumers' health, the law also calls for strengthened management and quality control over TCM raw materials and related procedures including raising, planting, collecting and stocking such materials. Highly toxic pesticides cannot be used to cultivate medicinal herbs. shanjuan@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page14)", -529,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818651.htm,Africa's open road to development,,"Continent positioned to become the next major manufacturing hub in the global marketplace Our world is coming off an incredible 2016. If the United Kingdom's vote for Brexit wasn't bad enough, Donald J. Trump will be sworn as president of the United States in January. And Africa's year hasn't been so rosy either. From protests in Ethiopia and the Democratic Republic of the Congo, to deepening economic turmoil in Nigeria and South Africa, to ongoing humanitarian crises across the continent, Africa has probably more reasons to mourn than rejoice in 2016. Yet there may be a glimmer of hope. Key stepping stones on Africa's path to industrialization were laid firmly in 2016, creating an important opportunity: The continent can become the next manufacturing hub for the global market. The Made in Africa Initiative aims to help the continent seize the opportunity for industrialization arising from the pending relocation of light manufacturing from China and other developing market economies. By capturing this opportunity, Africa will achieve sustainable, dynamic and inclusive growth. However, today's Africa faces serious challenges. What Africa needs now are success stories to provide the aspirations, confidence and experience necessary for it to realize its potential in terms of industrialization and shared prosperity. The Made in Africa Initiative offers a vision to create success in African countries. The opportunities Modern economic growth, highlighted by a continuous rise in a country's per capita income, is a process of ever-increasing labor productivity. Making this process possible are continuous structural transformations in technologies and industries - to reduce the factor costs of production and increase output values; and in infrastructure and institutions to reduce transaction costs and risks. Why have African countries failed to prosper? Because they have not transformed their economic structures from agriculture and mining to modern industry. However, from our perspective, poverty and backwardness is not destiny for African countries. The future can change if Africa seizes the golden opportunity of industrialization. The developed high-income countries of Europe and North America all started to transform their humble, premodern agrarian economies by developing light manufacturing. The few economies in East Asia catching up to the developed countries after World War II jump-started their industrialization by entering light manufacturing because of rising wages in the higher-income countries. Consider the relocations from the United States to Japan in the 1950s, from Japan to the four Asian Tigers - Hong Kong, Taiwan, Singapore, and South Korea - in the 1960s, and from the four Asian Tigers to the Chinese mainland in the 1980s. China is now at a stage - like that of Japan in the 1960s and the Four Tigers in the 1980s - to begin relocating its light manufacturing to other countries because of its rapidly rising labor costs. Growth in China and in other emerging market economies, such as India and Brazil, will again provide opportunities for other developing countries to jump-start their industrialization. Africa is potentially an attractive destination for the relocation of light manufacturing from China and other developing market economies. Africa has an abundant supply of young labor. It is close to European and the US markets. And it has zero tariffs on its exports, thanks to the Africa Growth Opportunity Act in the US and the EU's Everything But Arms policy. The Made in Africa Initiative aims to help Africa exploit this window of opportunity to become the world's next manufacturing hub and to achieve dynamic, sustainable and inclusive growth. The challenges To capture this opportunity, African countries faces several challenges that needs to be tackled in the near future: Lack of technological know-how - how to produce high-quality goods at a competitive price in the global market by using abundant labor and other resources. Lack of confidence by international buyers in the ability of African manufacturers to deliver goods on time and with the consistent quality specified in contracts. Lack of infrastructure and a business environment to reduce the transaction costs in reaching international markets. How can an African country best overcome these challenges? First, the government must adopt an active investment promotion strategy to attract existing export-oriented light manufacturing companies that have the technological know-how and enjoy the confidence of international buyers in China and other emerging market economies. Second, governments must use their limited resources and implementation capacity strategically to establish industrial parks and special economic zones with adequate infrastructure and a good business environment to help investors reduce their transaction costs. A new mission The Made in Africa Initiative will help African countries generate quick successes in export-oriented light manufacturing through a strategy that includes the following: Bridging the information gap to help export-oriented light manufacturing enterprises in China and other emerging market economies understand Africa's advantages and set up production there. Engaging with stakeholders and connecting with policymakers, development agencies, businesses communities and other key parties, globally, regionally and nationally, to share the vision and the approach for capturing Africa's window of opportunity to industrialize. Advocating triangular collaboration to connect the dots. Advocate win-win cooperation between African countries and prospective investors, such as international retailers in Europe and the US, presenting the comparative advantages in abundant supplies of labor and raw materials. Working with international organizations and world leaders in the global supply chain to connect the dots of triangular collaboration (manufacturing capability, global retail market and African comparative advantages). Supporting African countries in identifying their comparative advantages and creating their own development approach, as well as providing intellectual support to African countries to identify their sectors of comparative advantage. Sharing successes and failures of past industrialization efforts, and support African countries in developing an approach that is green, inclusive, sustainable and environmentally friendly. Working with governments, including national leaders, to build quick key success examples in industrial development. Bringing prospective investors who have the manufacturing know-how to visit African countries to facilitate early-stage investment negotiations with the government and to ensure successful investments and implementation to turn the country's opportunities into reality. Identifying policy constraints through the first movers' operations, and advising the government on further reforms to attract more international and domestic manufacturing investment. Africa's future As we believe that the best way to develop a country's economy is to upgrade and diversify its industries by clearly identifying its latent comparative advantages, we see more African countries recognizing the right path to industrialization. More important, Africa's future prosperity can be foreseen. The efforts of the global community of nations and a private sector committed to supporting African industrialization will promote production capacity cooperation and achieve sustainable development goals through the application of top-level technical expertise and other available tools. After all, poverty is not destiny. The author is chief executive officer, Made in Africa Initiative. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/30/2016 page7)", -530,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818650.htm,2017 will be the Year of Chinese Consumers,,"Increasingly prosperous spenders will become an important driving force for businesses at home and throughout the world In the past one or two years, Chinese consumers have arrived as a significant economic force. They have become a real driver of China's GDP growth. Their spending is fueling local companies and minting millionaire and billionaire entrepreneurs. And they have become a significant part of business in markets around the world. But this is just the beginning. In fact, what we have been seeing is just the laying of the foundation for the eventual impact of Chinese consumers on the world. I believe their real impact will begin to show itself in 2017, which will be the Year of the Chinese Consumer. Here are my predictions: 1. Chinese and foreign businesses will increasingly follow Chinese consumers around the world. Last year over 110 million Chinese tourists flew outbound into the world. More than half of all tourists in Asia were from China. An estimated 950,000 Chinese tourists visited New York City in 2016, up 700 percent from 2007. The favorite destination, Thailand, received around 8 million Chinese tourists. While this large outbound migration initially caused some friction with local cultures - resulting in some humorous stories and occasional blacklistings - international Chinese tourists have matured. They are now more sophisticated and experienced international consumers. In short, the Chinese tourism phenomenon has matured and has become routine. As a result, businesses everywhere are now investing and making strategic decisions based on this now stable economic phenomenon. And that is what I predict we are going to see in 2017 lots of businesses making increasingly significant investments to support and service Chinese international tourists as a permanent fixture of the global economy. One example of this is that Chinese companies are now going international to follow their Chinese customers. While Chinese CEOs have for a long time expressed their intention to go global, this has largely not happened. With the exception of Huawei and a few others in the natural resources and infrastructure sectors, most Chinese companies have remained focused on winning in China. And many of their international moves, such as technology, brand and natural resource acquisitions, were really about competing more effectively back in China. This is now finally changing. Chinese companies are seeing their customers traveling abroad in large numbers, and they know if they don't continue to serve them overseas then someone else will. Chinese companies are going international out of necessity. Examples of this have been accumulating recently. In November, Chinese travel platform Ctrip announced its acquisition of UK-based flight search engine Skyscanner. This will let it expand its offerings to include foreign flights. In August, Chinese taxi-hailing leader Didi Chuxing purchased Uber China and then promptly refocused on its international investments, including Indian Ola, American Lyft and SE Asian Grab. Throughout 2016, Alibaba's Jack Ma has repeatedly said that 50 percent of Alibaba's revenue will be international by 2025. And most recently, the Plough at Cadsden pub, where UK Prime Minister David Cameron and Chinese President Xi Jinping drank beer together, has just been purchased by a Chinese-backed SinoFortone Group. All of these international moves are about following Chinese consumers. One area where Chinese companies are going international in a particularly aggressively fashion is in payments and credit cards. In November, Ant Financial invested in Thailand's Ascend Money. In September, UnionPay announced that its card is now accepted at 80 percent of US merchants and 100 percent of US ATMs. And virtually everyone from Huawei and Xiaomei to Apple is jumping into e-payments for Chinese consumers. We can see foreign companies behaving the same way. They are also investing to benefit from the emergence of more international Chinese consumers. Signs saying we accept Alipay and TenPay are now ubiquitous across Thailand. In vitro fertilization clinics in Los Angeles are building new facilities and hiring full-time Mandarin-speaking staff specifically to accommodate the influx of expectant Chinese women. And so on. Overall, in the past three years, more than 360 million Chinese consumers have traveled out of China. This now-stable economic phenomenon will increasingly influence business decision-making around the world. 2. Mobile and O2O applications will show hyper-adoption by Chinese consumers. That Chinese consumers like buying things on their phones is not news. What is going to be different in 2017 is the speed of adoption of mobile applications and services. The already fast adoption rate appears to be accelerating, including the online-to-offline, or O2O model. Mobike and Ofo are the newest examples of the hyper-adoption of mobile applications by Chinese consumers. Twelve months ago, you could find some Mobikes and Ofo bikes scattered around Beijing and Shanghai. Now they are everywhere. Shanghai, in particular, seems almost overrun with Mobikes. Yet both companies were founded less than two years ago . Chinese company Meitu, which is currently preparing for a Hong Kong IPO, offers a mobile photo editing application that lets you alter your appearance - such as making your chin narrower, your eyes larger, and so on. Its use by Chinese women who want to ""beautify"" their selfies has surged to stunning numbers. More than 440 million Chinese women are now using the application. This is remarkable growth for this kind of app. Like bicycle sharing, it serves a market that virtually nobody saw coming. On a side note, in September 2016, a woman was pulled over for drunk driving in the Xinjiang Uygur autonomous region. After a breathalyzer confirmed intoxication, the police began taking photos for evidence. The woman then demanded that they use Meitu for their photos, so she would look better. 3. Chinese women - moms in particular - will increase their influence as consumers. I have argued that Chinese moms are the most important consumers on the planet. They typically generate 50 percent of household income in China. They were estimated by Mastercard to control over 75 percent of Chinese household spending. And they are far more attuned to health, education and safety issues, particularly regarding their one child in a country with food, water and air quality issues. They are a major force among rising Chinese consumers. I expect this to increase in 2017. First, like most Chinese consumers and households, they are increasing in wealth. This has a lot to do with the ongoing urbanization. For example, in the past three years, over 30 million people moved into Chinese cities. And by 2025, China will likely have 10 New York-size cities. So the pure number of Chinese urban households is growing - and Chinese women are still the biggest force within urban household spending. However, Chinese women themselves are also changing rapidly, not just becoming more numerous. They are getting married later, now at an average age of 27 instead of 24. They are beginning to have more children. There is now a mini baby boom following the changes to the one-child policy. They are increasingly focused on health and healthy living. They are increasingly worldly, with young women being a significant portion of Chinese tourists. All of these things, and others, are changing the lifestyles, priorities and spending habits of arguably China's most important consumer demographic. This is a phenomenon to watch in 2017. 4. Increasingly emotional Chinese consumers will increasingly surprise the world. Chinese urban households have largely passed the point where they worry about paying for the necessities of life. They can now afford food, shelter, clothing and the other basic necessities. They are now focusing more on what to do with their increasing disposable income. They are thinking more about occasional luxuries, travel destinations, sports sneakers and other semi-necessities. In marketing terms, they have moved from being value consumers to mainstream consumers. Basically, they have stopped buying based mostly on what they need and are now buying more based on what they want. And ""want"" is much more about emotions, aspirations and impulses. Basically, Chinese are becoming much more emotional consumers. Given their growing impact on the world, this increasingly emotional consumer behavior is increasingly impacting other markets, often in real time. Suddenly, if Chinese consumers lose interest in buying houses in Toronto because they prefer California, Toronto's housing market can take a significant hit. Suddenly, when Brexit causes the value of the pound sterling to fall versus the yuan, Chinese tourists shift their vacation plans and arrive en masse to take advantage of the increased spending power in the UK. The author is professor of investment at Peking University and author of the One Hour China Consumer Book. (China Daily European Weekly 12/30/2016 page10)", -531,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818649.htm,"Smog in the air, but green is on the horizon",,"Progress is being made to ensure that environmental safeguards work, but mechanisms still need refining In one respect the year has ended much as it began in Beijing, with more of those foggy, smoggy days in which levels of PM2.5 density are much higher than they should be, forcing people to wear masks, and factories, schools and factories to be closed and flights to be cancelled. Yet Beijingers have more or less got used to this suffocating scenario. Shortly after the winter heating has been fired up in northern China in recent years, almost as if on cue smog has hit the Beijing-Tianjin-Hebei area, one of China's most urbanized regions with a population of more than 100 million. The government is well aware of the severity of the pollution. In 2013 the State Council set out measures in what was called Air Pollution Prevention and Control Action Plan. Three years have passed, and the plan has had some positive effects, but there is still more work to do. In the Fifth Plenum of the 18th Communist Party of China Central Committee last year, five core concepts for economic development were put forward and emphasized. Innovative, coordinated, green, open and shared development must be implemented to tackle the problems hindering the country so that the development target of the 13th Five-Year Plan period (2016-20) can be achieved. Green development implies that we must stick to the concept of an environmentally friendly, low-carbon and circular economy and persistently follow the course of sustainable development. President Xi Jinping has repeatedly said that to keep the environment green and clean is as valuable as creating wealth, and protecting our environment is tantamount to increasing productivity. Over the past year both the central government and local governments have achieved significant successes in implementing the green development concept. In the past, despite targets related to environmental protection and green development, the absence of policy constraints and a pertinent evaluation system has offset the efficiency in realizing these targets. The blind pursuit of high economic growth at the expense of the environment still exists and the environment has in fact deteriorated in some parts of China. But in recent years the central government and provincial governments made gains in implementing green development. Such development is now regarded as a strict constraint when policies are made and executed. Government and business have also been moved to comply with the idea of green development with new incentives. The first achievement is a closer connection of the green development concept with policy-making in development priority zones. The outline of the 13th Five-Year Plan further defined the scope of development priority zones, and it is expected that the central government will increase financial transfer payments toward key ecological functional areas soon. And obviously this will benefit the restoration of ecologically fragile areas and strengthen ecological curbs in development zones. The second achievement is reflected in a closer combination of the green development concept with industrial policies regarding cutting excess capacity. As one of the five major tasks to promote structural reform from the supply side, new policies have been introduced to cut excess production in the steel and coal industries. In defining the policy it has been made clear that all manufacturing facilities that damage the environment or pose a threat to safe production should be eliminated without hesitation. This policy sets green development as a precondition of industrial development. This in effect forces companies to give green development higher strategic significance. The closer connection between the systems under which officials are evaluated and green development is another good example. This year the reporting mechanism of provincial environmental protection departments has been transformed from territorial management to vertical management. Thus the Ministry of Environmental Protection now directly oversees provincial environmental protection department. The appointment of local environmental officials has also centralized, eliminating potential interference from local government in the enforcement of environmental protection laws. And a balance sheet of natural resources assets is being developed. All these measures will further enlarge the responsibility of the local authority in protecting natural resources, and these policy innovations will lay a solid foundation for protecting the environment. To fully implement green development in the 13th Five-Year Plan period, we must change the way we think about developing urban economies and gradually improve our planning. When I am invited to work on urban and industrial development plans in many cities, I stress that development must not be absolutely paramount, an idea that on the face of it seems to run counter to advocacy of industrial development. In fact, what it means is that we must reserve space and land in the process of urban and industrial development under the new economic norms, to grow the economy not only in scale, but also in quality. On the other hand, we must make a greater effort to formulate and implement policies with reference to our experience. I would earnestly hope that the green development concept will be regarded as a constraint in more regional policies as well as industrial policies. Given adequate policies with market-oriented incentives, people's sentiment about environmental protection will change quickly. For such policies to be effective, we should promote them in more areas and apply them to more industries after they have been improved. Eventually, we must gradually develop a series of institutions and mechanisms regarding green development that are appropriate for China and that promote its sustainable economic growth. We should better manage the incremental growth based on the current economic scale. China's economy is still growing at a considerable pace, with the target set at 6.5 percent average during the 13th Five-Year Plan period. We must prevent pollution and damage to the environment in pursing the incremental growth of the economy while encouraging the growth of green manufacturing, a low-carbon economy and environmentally friendly industries. We must also accelerate our progress in environmental governance, environmental detection and energy conservation. I firmly believe that in the 13th Five-Year Plan period, with regards to green development many more achievements lie ahead. The author is a Beijing-based senior partner of Roland Berger Strategy Consultants. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/30/2016 page6)", -532,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818648.htm,E-commerce holds plenty of surprises,,"Entrepreneurs set to stir up online shopping sector, led by rising generation of vigorous, creative Chinese talent As we enter the new year, it is always an appropriate time to look ahead to industry developments, especially in those so-called strategic industries that are growing most quickly and significantly. Perhaps no industry can lay more claim to this ""strategic"" status than e-commerce. During 2016, global retail e-commerce sales reached an amazing $1.9 trillion (1.8 trillion euros; 1.6 trillion). Double-digit growth continued and is forecast to continue until 2020 at which time worldwide sales are estimated at a staggering $4 trillion. Key to this inexorable rise has been the parallel propulsion of the Chinese e-commerce industry, where giants such as Baidu, Alibaba and Tencent have certainly made their mark on the world stage. One of the key consumer trends that is set to continue throughout 2017 is the preference for e-commerce engagement via mobile phone rather than personal computer. It is estimated that retailers that cannot reach consumers via mobile or tablet may be, in effect, ignoring as much as half their customer base. One such eminent e-commerce player in recent years, Alibaba, has certainly set up effective mobile engagement with its customer base. Over 85 percent of Alibaba's sales during this year's Singles Day were the result of transactions on mobile devices. Clearly, 2017 is a year during which websites will have to be as mobile-compatible as possible. Furthermore, a mobile-first approach appears absolutely essential when building online consumer experience. The e-commerce payment landscape could continue to change during 2017. Card payment security continues to concern many, and alternative payment methods and platforms such as Alipay, PayPal and Amazon Pay are likely to gain considerable market share. Ease of mobile payment will also become an increasingly important factor affecting online consumer decision making. Once again Chinese e-commerce players are set for further gains here with advanced payment systems. Chinese e-commerce giants Tencent (messaging app. with payment via WeChat) and Alibaba (payment via Alipay) are both perfect examples. Speed and cost of delivery will also play an increasingly important role in customer decision-making when purchasing online. Most retailers now set next-day delivery as standard. Long gone are the days where 5- to 7-day delivery was the norm. Customers demand free and increasingly rapid delivery. We may witness a move toward same-day delivery during 2017, where retailers will work closely with their distribution partners in an attempt to hit this difficult target. Further progress toward personalizing the online shopping experience will no doubt feature in 2017. Retailers, via their online platforms, should be able to make better use of previous order patterns and additional online interaction to personalize the shopping experience. Consumer culture around the world is now characterized by a need for self-expression and, therefore, any move toward further personalization of the online experience should meet with success. In terms of the design of e-commerce sites - vitally important when attracting new potential customers - pictorial presentation appears to be the major trend. Too many words may well confuse consumers who are more interested in an emotional shopping experience and purchasing products that enhance their lifestyle emotionally too. Visual appeal and colorful images that create consumer engagement should dominate any e-commerce design/redesign. Very important, it is crucial that retailers do not forget the importance of customer service across all channels. Recently, major e-commerce players such as Ebay and Amazon have moved to work even closer with their partners in order to ensure ever-higher levels of customer service. Consumers now demand excellent service. Consumers also value stimulation and eschew any form of mundane, routine lifestyle. It is therefore expected that increasing flash sales will continue to work well. Such sales fit very well with new, unpredictable consumer lifestyles and shopping behaviors. Those e-commerce players who respond quickest to major, surprising news and events with a suitable flash sales events will gain significantly and bond much more effectively with their customer base. So where do these e-commerce trends leave China's growing e-commerce industrial sector? Are Chinese e-commerce industry players well-placed to take advantage of these trends, or will their emergence be stifled somewhat? A glance at some of the recent initiatives that have taken place with some of the major Chinese e-commerce players suggests that an even stronger performance is to be expected during 2017. Tencent perhaps typifies the Chinese e-commerce sector. Earlier this month it announced a strategic partnership with Starbucks. Tencent's messaging app, WeChat, will soon extend its payment service across Starbucks stores in Chinese mainland. In addition, Starbucks will present itself as a partner in the launch of a new ""social gifting"" feature of WeChat. Clearly, Tencent understands the importance of the trends discussed above, especially ease of payment and enhancing the emotional benefit of the online experience. Competition among China's major e-commerce companies will also likely intensify during 2017, which can only be a good thing for consumer choice and industry quality standards. Tencent rival Alibaba looks set for a successful 2017. Earlier this year it very smoothly integrated the online video company Youku Tudou, thereby enhancing the overall market offering. Alibaba has also continued to increase considerably its content investment in the digital media segment. Its investments have included acquisitions in the areas of film, music and games. The Alibaba online platform has also been strengthened significantly from the formation of relationships with other investment companies. The international investment community is also bullish on Baidu, China's major internet search engine. Many expect Baidu's share price to outperform the market. However the really exciting possibility for 2017 is the likely emergence of a number of smaller, agile e-commerce companies. China is also well placed here, with a high-tech-led entrepreneurial culture spreading across the mainland. Younger generations, self-confident and savvy, could power China's e-commerce sector to new, unimaginable heights in 2017 and beyond. We should also see e-commerce companies focusing more on specific industries, which should allow for a more personalized and enhanced customer experience. Smaller Chinese e-commerce player Mogujie is a typical example, where the company focuses almost exclusively on online fashion consumption. The name Mogujie literally means ""Mushroom Street"" in English. The company was co-founded in 2011 by a former engineer at Alibaba. Mogujie started out as a social site similar to Pinterest, where users create photo collages of fashion items. It evolved into a shopping site where the company derives income from merchants paying commissions. Expect more from Mogujie and other e-commerce companies that are similarly small and entrepreneurial. Overall, expect 2017 to be a year in which the e-commerce industry becomes more fragmented. Even the strongest, most entrenched e-commerce providers may experience unprecedented competitive threats from newly formed, entrepreneurial and internationally fearless e-commerce startups. In recent years it has been the Chinese e-commerce giants such as Tencent, Alibaba and Baidu whose emergence surprised many. But in years to come, it will be Chinese e-commerce entrepreneurs who will create even more surprises around the world. The most important trend, which will become crystal clear during 2017, is the consumer need for innovative, industry-focused e-commerce companies. Coupled together with a restless consumer who distrusts larger e-commerce providers and values stimulation, the door is wide open for entrance of e-commerce startups. Expect younger Chinese generations to grasp this opportunity for e-commerce startups with speed and determination that may outmatch even the Americans. The author is a visiting professor at the University of International Business and Economics in Beijing and a senior lecturer at Southampton University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/30/2016 page11)", -533,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818647.htm,Britain's health service is a gem. I should know.,,"On Dec 12, I spent a fascinating, if at times painful, day in the company of Chinese, Filipina, Sri Lankan, Polish and English women. And it was all free - well, sort of. Let me explain. They were all nurses working for Britain's National Health Service at Guy's Hospital, and their job was to use equipment worth hundreds of thousands of pounds to monitor me in a series of tests. They were at the same time professional and friendly - I even managed to persuade the Chinese nurse, who hailed from Harbin, that she should buy a copy of China Daily's UK edition from the news agent downstairs. Her Filipina colleague sang cheerfully as she worked. This, for me, represents the National Health Service at its finest. Sadly, of late, it has become a political football, with the UK's left-wing parties claiming the right-wing Conservative government of Theresa May is hell-bent on privatizing it. (In a word, Theresa, DON'T). Add to that a drip-feed of claims, mainly from so-called Little Englanders - foreigners who travel to Britain specifically to be treated for free in the system. One estimate I've seen, which I've no reason to disbelieve, is that so-called health tourists cost the NHS - and therefore the British taxpayer - 1.8 billion pounds a year (2.1 billion euros; $2.2 billion), of which only an estimated 500 million pounds is recoverable. But it's a bit more complex than that. Foreign visitors from outside the EU, who come here specifically for free treatment, cost this country as much as 280 million pounds a year on top of that 1.8 billion pounds, and that is certainly unrecoverable. Here's the wrinkle: When you check into the NHS facility, nobody asks for identification, and emergency treatment is automatic. If you are a foreign national, there are signs throughout NHS facilities requesting you politely to register with reception. How very British. When I had a bad road crash in the US way back in 1973, I lay on a gurney in the emergency treatment room in Ohio and was asked to provide details on my insurance coverage before they continued. How very American. NHS staff themselves have said it is not their job to act as a de facto border security force, demanding identity cards or passports from patients. So what happens now is that for patients within the EU, the NHS can recover money from their respective countries. But the figure for so-called health tourists is just a drop in the ocean. The NHS is Britain's largest employer, with a budget of 116.4 billion pounds and a permanent staff of 1.7 million. It is the world's fifth-largest employer, beating labor-force-heavy outfits like China's state energy sector and Indian Railways. Unbelievable, but true. The treatment it delivers is world class, coming as it does from a wide range of nationalities at the top of their game, and using state of the art equipment. No wonder many Britons were angered when right-wing US politicians, with a blinkered view of the world, sneeringly dismissed the NHS as ""socialist"" as President Barack Obama fought to introduce medical care for America's poor and underprivileged. Those right-wing politicians would prefer giant insurance companies to run things, and cream off healthy profits. I read last year that China, which as far as I can tell has a highly complex healthcare system, has set up a joint study group with the NHS and UK government officials to see what it can learn from the UK experience. Well, is Beijing listening? As a newly diagnosed cancer patient, I can tell you the NHS works. I've had nothing but practical and positive support from every professional I've dealt with in the past six weeks, and the outlook is positive. Of course, I have over the years contributed about 11 percent of my salary in national insurance payments, like everyone else here. But that falls a long way short of the tens of thousands of pounds that my treatment will cost. From my point of view, it's money well spent. The author is managing editor of China Daily Europe Bureau. Contact the writer at chris@mail.chinadailyuk.com (China Daily European Weekly 12/30/2016 page13)", -534,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818646.htm,"Superior tech, stronger brands needed",,"China has advocated innovation as a way to renew growth in the volatile global economy. Innovation will also act as a signal to the rest of the world that China is joining the ranks of the industrialized countries, which have historically relied on innovation to drive their growth. Advances in science are an important source of innovation. With continuous and heavy investment in research and development by both the government and high technology companies over the several decades, China's innovation capabilities are growing at an accelerated pace, and a number of technological breakthroughs have emerged. Examples of such high-tech companies include Tencent, one of the largest Internet companies in the world; Huawei, the largest telecommunications company in the world; and CRRC Corp, the largest railway vehicle manufacturer in the world. As these examples indicate, in some areas Chinese companies have completed their journey from catching up to leading the innovation race at the cutting edge of scientific development. Significantly, China has outperformed other emerging economies, such as India and Brazil, in innovation. According to the latest Global Innovation Index released jointly by Cornell University, INSEAD and the World Intellectual Property Organization, in 2016, China joined the ranks of the world's 25 most-innovative economies. Switzerland, Sweden, the United Kingdom, the United States, Finland and Singapore were in the lead. This is the first time a middle-income country has joined the highly developed economies that have historically dominated the top of the GII. This remarkable achievement has attracted much attention from Western scholars and policymakers, who are trying to understand the key ingredients that characterize the Chinese model of innovation. However, even within China, there is no clear definition of what the Chinese model is. The rise of high-profile e-commerce companies such as Alibaba and the on going problems it has with counterfeit goods only confound matters further, resulting in questions as to whether any truly innovative model actually exists in China. A related question is the trajectory of innovation, as the country aspires to move upward to join the advanced economies. There is a strong sense of urgency in China to move upward rather than stagnate, which has caused excitement and fear in equal measure among scholars, companies and policymakers. The country is once again at a crossroads, as it was more than 30 years ago when the opening-up policy and reform first began. But this time China needs a very different set of capabilities to succeed. After three decades of double digit growth, propelled by the combination of an abundant supply of cheap labor and large flows of inward foreign direct investment, growth is slowing and stagnating as these advantages disappear. In November 2016 I attended a research forum on innovation. Like many forums in China, it raised important questions and provided a platform for knowledge-sharing. This article is an attempt to reflect on these discussions and provide some initial thoughts based on my research findings. In the past 30 years, China's technological development has evolved from learning through technology transfer, reverse engineering and imitation to disruptive innovation and customer-led innovation. These models relied on rapid technological learning and absorption capacity and created value for Western clients as original-equipment manufacturers and for their domestic customers who demanded low-cost products with strong functionality. This development trajectory has been examined thoroughly and understood by most Western scholars studying China. However, as leading Western companies such as Ericsson and Facebook wake up to the shocks of Huawei becoming the world's top telecom supplier, Tencent's versatile social network platform WeChat competing for the dominant position, and the use of robots to deliver parcels by Shunfeng Courier Services, Western scholars are puzzled as to why some Chinese companies such as Huawei, Tencent and CRRC can break away from the traditional path-dependent trajectory of development to become truly innovative companies on the world stage. To solve this puzzle, one has to turn to the unique geographic, demographic and cultural formation of the country. It would be over-simplistic to describe China as a single market with 1.4 billion consumers. It would be equally ignorant to comprehend the country merely as a combination of dissimilar and disconnected regions. Despite their similarity in terms of the size of territories, it would be misleading to compare the US market with the Chinese market. The different layers of income and population density of Chinese cities and towns, combined with the cultural characteristics of interdependence, inner drive and tolerance, create a unique ecosystem that opens up multiple opportunities for Chinese companies to compete based on differential advantages. For example, for many Chinese companies low cost is the main competitive advantage. These companies have access to low-cost labor as well as a sufficiently large segment of domestic customers who are cost-conscious. However, Chinese companies have sufficient economies of scale and scope to experiment in different geographic regions and in different market segments to gradually proceed up the quality ladder and fulfill different needs, from utilitarian to hedonic. Companies like Huawei applied the strategy internationally by starting in developing markets like Africa and gradually moving to advanced regions like Europe. Having achieved a leading position globally, companies like Huawei will need to rely more on basic scientific research in areas such as artificial intelligence to keep competitors at bay. In addition, as the country's economy is slowing down and with air quality worsening and regulations tightening, many companies are investing abroad to deploy excess capacity, manage risk and access global market opportunities. This requires Chinese companies to work in a very different institutional and cultural environment, which requires a different set of core capabilities, including innovative capabilities, coordination capabilities, marketing communication capabilities and corporate social responsibilities. Another challenge facing the Chinese economy is the role of government. Historically, the Chinese government has played a key role in terms of policy incentives and financial investment in developing innovation capabilities. However, the results have been very mixed, with state-owned enterprises, research institutes and universities benefiting most from these incentives, whereas private enterprises have very limited access to resources. The recent policy of the government has been to change from the top-down planned approach to a bottom-up entrepreneurial approach. This is a significant policy shift, but for it to become embedded it needs a new ecosystem in which access to finance by private and startup companies can be provided. More fundamentally the country's education system needs a total revamp as it is outdated and geared toward passing exams rather than nurturing creative talent. Finally, and most important, after 30 years of accumulated wealth, the new Chinese middle class and its need for hedonic satisfaction and affirmation of self-identity can no longer be ignored. This segment of society will be the new engine for growth as the desire of its members to perfect themselves in all areas of their lives is insatiable and they are the most discerning customers in terms of quality, style and taste. This is particularly challenging for the traditional model of innovation, where the focus is on reducing cost and increasing efficiency rather than on superior quality and emotional connection with customers. This is a huge gap for China, and so far it has been filled almost entirely by Western brands such as Apple, BMW and Hermes, to name just a few. This is because, while the demand side has shifted from low cost to high-quality products, the supply side is still trapped by a low-cost production model, resulting in a mismatch between demand and supply. The value of innovation is to identify and satisfy the latent needs of sophisticated customers in China and worldwide. This requires both the tangible asset of intellectual property and intangible asset of brands. Looking around, the most innovative companies are also the best known brands and this is no coincidence. It is in this respect that the gap between China and the West is most pronounced. According to Interbrand's 2016 best global brands ranking, the top 100 most-valued brand positions are almost completely occupied by Western brands, with the exception of Huawei (No 72) and Lenovo (No 99). Statistics differ, but overall they agree that, although the quality of output varies, China has significantly increased its R&D spending and the number of IPR and scientific publications. However, China significantly lags in terms of the number of global brands. Brand-building requires a different mindset from that of low-cost production. A brand not only provides new functions but also tells a story that is meaningful and memorable, thus communicating unique value and ensuring customer loyalty. Brands are the embodiment of culture and rooted in heritage and history. They require confidence in one's cultural identity and history. China's economic success has brought about renewed confidence and interest in Chinese culture. Therefore, it is time to develop strong brands. A strong brand brings out the best of the culture of its country of origin, thus increasing the soft power of the country and its influence in the world stage. A new ecosystem of innovation is therefore required to break the path of dependency on the traditional innovation model to combine technological superiority with strong brand building. Qing Wang, professor of Marketing and Innovation, Warwick Business School, University of Warwick, UK. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 12/30/2016 page12)", -535,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818645.htm,China walks its own path to prosperity,,"After a turbulent 2016, and with emerging hostility in the United States, the country can rely on an ancient solution The year 2016 proved to be a strange and difficult year for the world. The past 12 months have been turbulent for people everywhere. We have seen the continued rise of religious fundamentalism and the growing threat of terrorism by extremist groups, most recently in the atrocity committed in Berlin, where innocent people preparing for Christmas with their families and friends were murdered by a fanatic, intent on killing people whose views are not the same as his. We witnessed serious political turbulence in Turkey over the summer with the attempted military coup against the elected president - followed by the assassination of a senior diplomat in Ankara. We lived through another year of suffering in the Middle East, not only in Aleppo, but also across large parts of Syria and northern Iraq, while fighting in South Sudan forced the United Nations to warn that the situation may soon turn to genocide unless action is taken to bring peace in the country. It has been a year when we have been reminded of the problems and dangers posed by climate change, not least in China, where there has been a stern reminder in recent weeks of the need to protect our environment and focus on growth that is truly sustainable. The two greatest shocks, however, have come from the Western world. First, in June, the United Kingdom voted for Brexit. What this will mean is not yet clear. However, the significance is not so much what it means for the UK and its relationship with the European Union or for its dealings with other countries around the world - especially when it comes to trade. Rather, the issue is whether the UK's vote demonstrates the first point of collapse of the European Union itself. Elections in 2017 in France and Germany in particular will turn in large part on many of the questions raised during the Brexit vote - about democracy and accountability, about freedom of movement and the future of the single currency. This is important as far as China is concerned, and especially for Chinese businesses that either buy from or sell into countries within the European Union. As anyone involved in commerce knows, the worst thing in business is uncertainty. Not knowing what tariffs will (or will not) apply in the future is difficult for all those involved in a transaction. So too is the lack of clarity as to what decisions will be made in the coming months, and what their implications will be for both buyer and seller, who need to be planning ahead, especially in complex industries that come with heavy up-front capital costs. The second major shock wave has come in the United States, where the election of Donald Trump confounded the pollsters and analysts and threatens to upset an already uneasy global equilibrium. Trump raged against many targets during the election campaign, from Muslims to Mexicans - but also against China. The Chinese have been using the US as a piggy bank to rebuild China, he said in the buildup to the election, as well demanding that the US must stop jobs from being stolen. It is tempting to be carried away by such grandstanding rhetoric, and foolish to take it at face value. The Trump administration will be defined by what the president does now, rather than by what he has said. Besides, it would be foolish not to recognize that there is some truth in his observation that employment in the United States has been profoundly affected by the shift of manufacturing - and of jobs - primarily to Asia, and above all to China. The appointment of Peter Navarro, author of books titled The China Wars and Death by China, to the high profile role as head of the newly created White House National Trade Council is not promising for those who prefer to see transitions take place calmly and slowly. His urging consumers in the US to ""Help defend America and protect your family: Don't buy Made in China"", suggests a tough line in months to come as Trump seeks to ""make American manufacturing great again"". The picture need not be gloomy for Chinese business, even in the event that relations with the US and the problems in the EU force a change of direction. Just over 2,000 years ago, Zhang Qian was sent out by the rulers of Han China to explore what opportunities lay to the west - in Central Asia. The envoy reported back that there were flourishing markets that had yet to be explored, where ""all sorts of goods are bought and sold"". There were many opportunities to look into that would serve to strengthen the economy at home and to enrich those abroad. Building connections across the spine of Asia was a key point in China's development 20 centuries ago. These helped bring new ideas from far away, as well as goods and products - ranging from spices to foods, from technologies to scholarship - while opening a window for China onto the world beyond. What happens within the European Union and the United States, and in the relations of both with China and elsewhere, will be matters of profound importance for the global community. But it is the same region that Zhang Qian visited that is where China's future now lies. Some two-thirds of the world's population live in the countries of the Silk Roads - those lying along the Belt and Road Initiative. Many of these countries have large populations, such as Pakistan (nearly 200 million), Bangladesh (150 million), Iran (80 million), and of course India (1.2 billion) and Russia (150 million). These represent substantial markets individually. Collectively, they represent something much more important. Many are blessed with natural resources - like oil, gas, tin, zinc, gold, silver and more - that will play a major part in China's own development in coming years. But all are filled with possibilities for businesses to cooperate and expand locally. Finding good partners locally requires patience and knowledge: To trust someone, especially when it comes to business, you need to understand them. That starts with understanding their history and understanding how you yourself are perceived - in other words, how they understand your history. The Silk Roads are rising. They will do so regardless of what decisions are made in London, Paris or Washington. The last 12 months have been difficult for many of the countries that are part of the Belt and Road Initiative, for a variety of reasons. However, as projects like the China-Pakistan Economic Corridor and the new deep-water port at Gwadar, Pakistan, show, there is considerable potential in the months and years to come. As Zhang Qian noted, the trick is to prepare properly, to find out what is being bought and sold, and not to rush to do too much too fast. The peoples lying west of China may have been ""poor in the use of weapons"", but they have always been ""very clever when it comes to commerce"". Preparing properly, setting realistic expectations and planning ahead is the key to unlocking the treasures of the overland and maritime Silk Roads. As has been the case for thousands of years. The author is a senior research fellow at Worcester College, Oxford. His book, The Silk Roads: A New History of the World, is an international best-seller. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/30/2016 page8)", -536,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818644.htm,Cheap Chinese solar panels are good,,"A group of European Union parliamentarians have added their voices to calls from climate action groups and much of Europe's solar industry for an end to punitive tariffs on Chinese solar power equipment. What is going on? Just as everyone else appears to be demanding higher tariffs, amid a predicted return to trade protectionism in Europe and the United States, along comes an unlikely alliance of industry, charities and politicians saying get rid of them. A letter signed this month by 22 members of the European Parliament, including the vice-chairs of the energy and international trade committees, helps to explain. In an appeal to the European Commission to scrap ""harmful"" duties, they said existing trade measures against China were stifling competition and damaging Europe's own energy sector. It looks as if this and other appeals may fail to sway the Commission, the European Union's executive arm. The trade press this month quoted documents suggesting it would recommend keeping import duties and a minimum price for solar panels for two more years. A final decision has to come by March but interested parties have until Jan 6 to respond before the Commission makes a formal proposal to the EU's 28 governments. In the present climate of protectionism emerging in Europe, it may turn out that the 28 would prefer not to court headlines about cutting tariffs on China and will go along with the commission. However, the MEPs who signed the letter argued that many European jobs depended on the solar sector and existing duties did not take into account Europe's green energy targets. In short, cheap Chinese solar energy components are good for business and good for the climate. They were echoing arguments put forward by action groups, including Greenpeace and the World Wildlife Fund, urging the commission in October to remove trade barriers on solar panels. The charities said solar power is one of the key technologies Europe needs to reduce its reliance on fossil fuels and to meet its obligations under the recent Paris climate agreement. ""We are therefore concerned that the current tariffs on imported solar panels are making solar power more expensive and slowing down the deployment of solar power in Europe,"" they told EC Trade Commissioner Cecilia Malmstrom. ""Instead of putting citizens at the heart of the Energy Union, the present trade measures negatively impact consumers and make their participation in the energy transition costlier,"" the charities said. These appeals have in turn been echoed by 400 European solar energy companies, which demanded the EU immediately scrap a minimum import price (MIP) agreement that establishes a floor for Chinese solar modules. They said the arrangement was harming the growth of an important industry across the European continent. In fact the MIP deal, originally introduced to avert a trade war, is already almost defunct, since all the major Chinese producers pulled out of it. One company, JA Solar, explained that the actual price of modules in the EU was already well below the agreed minimum rate and falling, damaging its ability to stay competitive in Europe. The EU imposed anti-dumping and anti-subsidy duties on imported Chinese solar components of 51.5 percent and 5 percent respectively at the end of 2013. Chinese companies got around the barriers, and similar measures in the US, by setting up production elsewhere in Asia. EU tariffs aside, the most novel prediction about the solar sector in the coming year comes from Sven Lindstroem, CEO of solar tech company Midsummer. In a syndicated New Year look ahead to 2017, he claims that ""President Trump will turn green"". Although Donald Trump's election, and some of his subsequent appointments, have been heralded as a victory for the oil and coal industries, Lindstroem notes that renewable energy is the most efficient way to make the US independent and self-sufficient. ""US citizens like independence, and so does President-elect Trump,"" he writes. According to Lindstroem, many American families already use oil-fired generators to produce their own electricity, and the growth of solar power would encourage many more to go off-grid. ""The revolution has just started,"" he writes, ""and it will take more than a policy shift to stop it."" The writer is a senior editorial consultant for China Daily UK. (China Daily European Weekly 12/30/2016 page13)", -537,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818642.htm,IN BRIEF (Page 2),,"- A Chinese rescue helicopter removes crew members from a fishing boat in the East China Sea after the boat's engine caught fire and burned out of control about 165 kilometers southeast of Shanghai on Dec 27. All 10 on board the boat were saved. Lu Wei / For China Daily New bullet-train lines now open China opened two major high-speed rail lines on Dec 28, linking the country's less developed southwest with built-up coastal areas. The openings also mark Yunnan province's entry into the nation's high-speed railway network. The new lines link its capital, Kunming, with Shanghai and Guangzhou. The 2,252-kilometer Shanghai-Kunming rail line traverses five provinces - Zhejiang, Jiangxi, Hunan, Guizhou and Yunnan - and cuts rail travel time between the two cities from 34 to 11 hours, according to China Railway Corp, the nation's rail service provider. Satellites launched for ground imaging China launched two commercial remote-sensing satellites on Dec 28 to compete with foreign companies that dominate high-resolution ground imaging. The SuperView 1A and 1B were lifted atop a Long March 2D carrier rocket at 11:23 am from the Taiyuan Satellite Launch Center in Shanxi province, according to China Aerospace Science and Technology Corp, developer of the satellite series. After the devices are placed in position 500 kilometers above Earth, they will start to take pictures with a ground image resolution of 0.5 meter - the clearest yet produced by Chinese commercial satellites, according to Yang Yike, director of high-resolution satellite projects at the company. Supervision of officials heightened China will continue its pressure against corruption in 2017, strengthening supervision and severely punishing officials who break Party rules, according to senior leaders. A pilot reform program for an integrated supervision system will also be on next year's anti-graft agenda, a meeting of the Political Bureau of the Communist Party of China Central Committee determined on Dec 28. The Party has gained the upper hand in the fight against corruption, and ""the high pressure against graft will be maintained"", a news release from the meeting said. Courts set up to improve efficiency Two new circuit courts - one in Nanjing, Jiangsu province, and the other in Zhengzhou, Henan province - were established on Dec 28 to improve judicial efficiency and reduce the burden of case hearings on the Supreme People's Court. All 12 presiding judges of the Third Circuit Court in Nanjing will be from the top court. The presiding judges, with an average age of 45, each have at least 10 years of experience. Under the latest judicial interpretation issued by the top court, the current six circuit courts cover 26 provinces, municipalities and autonomous regions across China. Join hands to beat bullies, experts say Teachers, parents and public security authorities need to work closer together to combat bullying, according to a senior judicial official. The Supreme People's Procuratorate, the top prosecuting authority, received about 1,900 cases related to school bullying in the first 11 months of 2016, leading to 1,100 arrests and 2,300 prosecutions, according to data released on Dec 28. Shi Weizhong, deputy director of the authority's Juvenile Procuratorial Affairs Office, says Chinese laws covering juveniles are too general to provide guidance on intervention and rectification. Water projects promise benefits China plans to launch at least another 15 major water conservancy projects next year, increasing targeted investment in the field to more than 900 billion yuan ($129.7 billion; 124.1 billion euros; 105.8 billion), the Ministry of Water Resources announced on Dec 28. Having launched 21 projects in 2016, construction work is now underway on 106 projects altogether, increasing total investment to 800 billion yuan. The latest, the Yangtze-to-Huaihe Water Diversion Project, began on Dec 29. Students seeking success in startups A survey released by Renmin University of China on Dec 28 found that more than 120,000 college students - or 28 percent of respondents - are running their own business or have had a related experience. Only 10.2 percent said they don't want to start their own business. The report is based on information collected from more than 430,000 students at 1,767 universities and colleges across the country. It found that chasing dreams and freedom are two main drivers for college students seeking to become entrepreneurs. Baby penguins go to 'kindergarten' Sunasia Ocean World, an aquarium in Dalian, Liaoning province, has sent more than 20 young penguins to a ""kindergarten"" where they will learn survival skills. The penguins will be in class for two months, learning to eat on their own and practicing swimming, according to Han Han, a keeper at the aquarium. Penguins go to the kindergarten when they are 1 month old, Han said. It helps the youngsters get to know each other before the important business of finding a mate. Regulation details bike-sharing rules To standardize the development of the online bike-sharing industry, the Shenzen Transport Commission unveiled a draft plan on Dec 27, adding violations such as illegal parking to people's credit records. Renting bikes through smartphones and parking them at the users' convenience has grown in popularity. In Shenzhen, Guangdong province, there are about 120,000 rental bicycles, and the number is expected to increase to 210,000 by the end of January, according to the commission. Recognizing online bike-sharing as part of the city's transportation system, the authority will integrate bicycle lanes and bicycle parking facilities in street renovations. Oil giants face $24m Bohai Bay spill claim Fishermen affected by the 2011 Bohai Bay oil spill are demanding 170 million yuan ($24.5 million; 23.4 million euros; 20 million) in damages from the oil giants behind the disaster. Lawyers representing 205 people from Yantai, Shandong province, who are suing China National Offshore Oil Corp and ConocoPhillips, revealed the compensation figure on Dec 28, according to a source at Qingdao Maritime Court. The plaintiffs claim their livelihoods have been severely affected by leaks from the Penglai 19-3 Oilfield. Two spills over a period of weeks in June 2011 polluted more than 6,200 square kilometers of the sea, according to investigative reports. Sao Tome restores ties with Beijing China and the African island nation of Sao Tome and Principe resumed diplomatic relations on Dec 26. Foreign Minister Wang Yi and his counterpart from Sao Tome and Principe, Urbino Botelho, signed a joint communique at the Diaoyutai State Guesthouse in Beijing to resume diplomatic ties. The ceremony on Dec 26. The African nation broke off ties with Taipei last week. Beijing suspended its relationship with Sao Tome and Principe in 1997 after that country established ""diplomatic ties"" with Taipei. Data fraud subject to criminal law Falsifying environmental data to avoid pollution regulations is a criminal offense, according to a set of new judicial interpretations on environmental crimes framed by the top court and top procuratorate and released on Dec 26. It is the first time for such fraud to be subject to criminal punishment. Previously, administrative penalties were usually meted out. The court and the procuratorate issued interpretations on a number of environmental offenses. The new interpretations, which take effect on Jan 1, are widely considered an indication that judicial punishment of environment-related crimes will be strengthened. Outbound tourism to see steady rise China's outbound tourism industry is expected to see slower but steady growth over the next five years. Visits by Chinese outbound tourists are forecast to reach 150 million in 2020 from 117 million in 2015, with an estimated average annual growth rate of about 5.1 percent, according to the China National Tourism Administration. The administration released its 13th Five-Year Plan (2016-20) on Dec 26. It said domestic visits by Chinese tourists in 2020 would reach 6.4 billion, with total revenue in the tourism industry soaring to 7 trillion yuan ($1 trillion; 960 billion euros; 820 billion). Tibetans lead team to South Pole Tibetan mountaineers have proved their world-class competence once again after two climbers from the region achieved ""seven plus two"" on Dec 25 - reaching the highest peaks on all seven continents and Earth's two poles. Graduate students Tsering Tandar and Dechen Ngodup, sponsored by the China University of Geosciences in Wuhan, Hubei province, reached the South Pole at 6:16 am on Dec 25. In doing so, they finished the nine-challenge adventure known as the Explorers Grand Slam, which has been accomplished by only about 50 people in the world. Improved ties with Vatican sought China is willing to conduct constructive dialogue with the Vatican and hopes that the Vatican will adopt a flexible and pragmatic attitude, a top religious affairs official said on Dec 27 as the country's Catholic church representatives gathered in Beijing for a national assembly. China's stance on improving ties with the Vatican has long been that the country is willing to hold talks with the Vatican ""based on relevant principles to narrow differences and expand common ground"", Wang Zuoan, head of the State Administration for Religious Affairs, said at the opening of the Ninth Assembly of Chinese Catholic Representatives. 5-year visa aims to promote S. Korea South Korea will introduce a new five-year renewable visa in January to attract affluent Chinese tourists. The move was made against the backdrop of a decrease in Chinese arrivals in the second half of 2016. The visa allows holders to return for stays of up to 30 days. Chinese tourists who buy specialized four-day travel packages costing 17,350 yuan ($2,498; 2,389 euros; 2,038) or more can apply. China's leading tour company, Ctrip, predicted that only 1 percent of mainland tourists would be eligible for the new visa. Testing starts on first maglev rail Beijing's first rail line using magnetic levitation technology is scheduled to start running next year, with engineers now testing the new trains, city officials announced on Dec 25. The overhead maglev line, called S1, will run in the western suburbs. It will stretch about 10 kilometers and have eight stations. The line will make scenic spots in Beijing's suburbs more easily accessible to residents and tourists. Probes to head for Mars, Jupiter China plans to send unmanned probes to explore Mars and Jupiter by 2030, according to a senior space official. Wu Yanhua, deputy director of the China National Space Administration, said at a news conference in Beijing on Dec 27 that the government has decided to send a robotic probe to Mars to orbit and land on the red planet around 2020. The probe will conduct scientific research on the Martian soil and atmosphere and search for signs of water. A larger probe will set off for Mars around 2030 to take samples and return them to Earth, he said. Xi says support for UN remains firm President Xi Jinping praised cooperation between China and the United Nations and reaffirmed China's firm support for the organization in a phone conversation on Dec 26 with outgoing UN Secretary-General Ban Ki-moon. Xi said the world is facing many new problems that require stronger global governance and more work from the UN, and he praised Ban's contribution to deepening China's cooperation with the UN during his 10 years as head of the organization. Xi stressed that China would maintain close cooperation with the incoming secretary-general, Antonio Guterres, to reinforce China's ties. Regulator maps out cybersecurity strategy China's top internet regulator has mapped out a national security strategy, aiming to safeguard cyberspace sovereignty, security and interests of cyberspace development. The Cyberspace Administration of China said on Dec 27 that the government will safeguard cyberspace sovereignty and national security, protect key information infrastructure and crack down on cyberterror and cybercrime. Wang Xiujun, deputy head of the administration, said the work includes international cooperation. Liaoning departs for Pacific drill The CNS Liaoning aircraft carrier battle group has set off for the Western Pacific where it will take part in an open-sea exercise, a spokesman for the People's Liberation Army Navy has announced. According to the PLA Navy, the group carried out ""full-element"" training in the East China Sea on Dec 24, which mainly involved J-15 carrier-borne fighter jets. The planes performed air tactical confrontation drills and air refueling operations, while ships conducted resupply training, the navy said. - Migrant workers hold up portraits taken for free by members of the Beijing Model Worker Association and photography enthusiasts during an activity on Dec 27 held by the Beijing Federation of Trade Unions to celebrate the new year. Xinhua (China Daily European Weekly 12/30/2016 page2)", -538,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818641.htm,Quotable,,"Hot dry rock could make a great contribution to cutting China's emissions and solving our energy problems."" Wang Bingchen, an official of the National Geothermal Energy Center, speaking about a source of geothermal energy that was detected in Shandong province recently. ""The law will help bring more competent TCM doctors to the patients."" Wang Guoqiang, head of the State Administration of TCM, commenting on China's first law supporting traditional Chinese medicine, which was passed by the top legislature on Dec 25. ""Putting together Israel's spirit of innovation and capacity for thinking outside the box and China's ability to produce everything with such efficiency and speed - this is a win-win."" Peretz Lavie, president of the Israel Institute of Technology, speaking about the coming Guangdong Technion-Israel Institute of Technology. (China Daily European Weekly 12/30/2016 page2)", -539,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818614.htm,Change to what?,,"As a year of massive political shocks ends, and one whose outlines could not be more in doubt is just beginning The world economy is likely to face many challenges in the year ahead, not least an extraordinary level of uncertainty. United States President-elect Donald Trump takes the oath of office on Jan 20 and has promised protectionist measures against China and a program of fiscal expansion. Britain's negotiations on quitting the European Union are likely to begin in the spring around the time of French presidential elections, both of which could have major implications for the future of the EU. So where does this leave China? The world's second-largest economy enjoyed a relatively benign 2016 with growth stabilizing at 6.7 percent in the first three quarters. External events - not least the possible US tariffs on Chinese imports - could partly derail its economic progress. The Chinese government made clear its own economic agenda at the Central Economic Work Conference, attended by senior leaders in Beijing, in December. It set out six directions of policy: maintaining medium-to-high ""new normal growth""; stability; supply-side reform; a new development concept focusing on innovation and the development of green technologies; improving quality and efficiency; and combining policies at both the macro and micro level that work for the good of the overall economy. Vincent Chan, managing director and head of China research for Credit Suisse, who is based in Hong Kong, says that for the first three months of the year China will be trying to work out what the new policy agenda will be in the US. ""This is the major uncertainty. You have a situation where not just China but nobody else understands what this is going to be. Politics is going to be the big issue, which will influence the economics."" Chan, however, believes China's growth, assuming no major external shocks, should increase to 6.8 percent in 2017, 0.1 percent up from the level achieved so far this year. It will be notched upward by export growth of 8 percent, compared with the 6 percent contraction in goods and services sold overseas in 2016, he says. ""The current high levels of infrastructure investment at two and a half times the level of nominal GDP growth will keep the economy steady at 6.5 percent, and exports will give it an additional push next year."" Duncan Innes-Ker, regional director, Asia, of the Economist Intelligence Unit, based in London, says the Chinese economy will struggle to maintain its momentum in 2017. He believes growth will slow to 6.2 percent. ""What has driven growth in 2016, particularly in the second half, has been the construction sector, which has been related to the strength of the housing market,"" he says. (Property prices in the major cities have risen 30 percent over the year). Innes-Ker believes the current credit growth of 20 percent a year, fueling debt, is becoming unsustainable. He though thinks the government will wait until 2018 to tackle that, resulting in a hard landing, with growth slumping to 4 percent but recovering to 5 percent in 2019. ""If it doesn't, there would be severe strains in the financial sector that would be very damaging in the longer term,"" he says. Louis Kuijs, head of Asia for the global advisory firm Oxford Economics, who is based in Hong Kong, thinks there will be no major change in economic policy until after the 19th Congress of the Communist Party of China in November, when a new Standing Committee will be elected. He believes policymakers will manage to achieve 6.3 percent growth. ""Growth will continue to rely on policy support in the form of fiscal expansion and, especially, generous credit growth. We do not expect policymakers to significantly slow the pace of credit expansion before the party meeting."" Edward Tse, founder and chief executive officer of the management consultancy Gao Feng Advisory, says he is not particularly worried about debt in the Chinese economy. ""It has never been proven what is a dangerous level of debt. I don't think right now China is at any major risk."" Tse, also author of The China Strategy and who is confident the economy will enjoy growth of between 6 and 7 percent in 2017, believes debates about investment in infrastructure becoming increasingly inefficient in terms of return miss the point. ""I do not believe they take into account all the multiplier effects of having a highly efficient transport system. They might say a high-speed rail line from point A to B is not worth it, but they fail to see the benefit from the point of view of the whole rail grid being improved by the additional line,"" he says. Chan at Credit Suisse says the main worry about China is not the industrial economy but the financial system, as evidenced by the weakening of the yuan. In the year to November it had depreciated by a trade-weighted 8 percent. ""It is a measure to some extent of how important the Chinese yuan has become as a global currency,"" Chan says. ""I think it is less important than the US dollar or the euro, but now more significant than either the Japanese yen or the British pound. ""You can see this with market behavior over the past two months responding to the yen falling by 15 to 20 percent. There has been virtually no reaction. When the Chinese yuan falls by just 2 percent everybody seems to worry."" The currency depreciation reflects concerns over rising debt in the system, shadow banking and bond market weaknesses, he says. ""It goes further than just being a matter of the exchange rate itself."" One of the major concerns is whether Trump is serious about imposing trade barriers on Chinese goods, such as the 45 percent tariff on imports proposed during the election campaign. On Dec 22 the president-elect sent an ominous signal by appointing Peter Navarro to the new post of director of trade and industrial policy. Navarro, a professor at the University of California, Irvine, has been highly critical of China. Wang Huiyao, president and founder of the Center for China and Globalization in Beijing, China's largest independent think tank, believes the rhetoric seems to ignore the reality of a globalized world that relies on very sophisticated supply chains. ""This means that the iPhone is assembled in China and products sold by Walmart in the US are sourced from China. If we suddenly move away from this then consumers will be hurt - the very consumers who now seem set against globalization by voting for Trump and Brexit. ""We still live in a globalized world, and that is a fact. We sink or swim together."" Tse, who is acknowledged as one of China's leading business experts, believes that instead of putting up barriers, the US could receive a jobs boost from Chinese manufacturing investment in the rust belt. The Chinese automotive glass maker Fuyao opened a glass fabrication plant, which will be the world's largest, in Moraine, Ohio, in October and created thousands of jobs. ""There is no reason why a Trump government should not welcome this kind of investment because it is not taking jobs from America but adding them,"" Tse says. However, he says, he is picking up sentiment from businesses that because of the uncertainty they may prioritize investment in locations on China's Belt and Road Initiative and not in the US or Europe. ""More Chinese companies are looking to identify opportunities away from Europe and the US and are looking to central Asia, Africa, Southeast Asia and, in particular, are showing renewed interest in the Philippines after a major improvement in the political relationship between the two countries."" One subject of increasing debate is whether the Chinese government will abandon its target of doubling its 2010 GDP by 2020 to become a high-income country by then. This was one of the central aims of the 13th Five-Year Plan (2016-20). Wang, a state councilor on the Chinese State Council, or cabinet, who believes growth will remain about 6.5 percent next year, says targets play an important role in driving economic activity in China. ""The government mandate is to set objectives for people to reach, and therefore people are motivated. I think it is important that the government has set the overall objective to reach this target."" Chan at Credit Suisse says nothing is going to change until after the key party meeting in the autumn, but he believes there is more nuance in the goal set than is often perceived. ""Being a high-income society is actually a relative concept. By 2020 China might be a high-income society because other countries have not grown as quickly as it has over the previous decade. It will have achieved its objective without doubling GDP. It is not a discussion the government will have in 2017."" Chan believes that as the year begins, the main concerns will not be about the Chinese economy, as they were last year, but about other things. ""China's real economy currently has less uncertainty surrounding it compared with many economies in the developed world right now. Last year there were discussions about whether China would significantly slow down. I don't think that is so much an issue now."" andrewmoody@chinadaily.com.cn   A worker at a car manufacturing plant in Zunyi, Guizhou province. The Chinese economy will struggle to maintain its momentum in 2017, economists say. Provided to China Daily (China Daily European Weekly 12/30/2016 page1)", -540,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818613.htm,There but for the presence of China ...,,"Expert lauds country's role as economic savior and as a guarantor of continued stability The American economist Stephen Roach insists it is vital for the world economy that China continues to grow solidly in 2017. The senior fellow at the Jackson Institute for Global Affairs at Yale University says that even with its ""new normal"" levels of growth its economy remains the engine of the world economy. ""If there is a dramatic slowdown in China there would be a period of weakness we have not seen at any period since the end of World War II,"" he warns. Roach, also a former chairman of Morgan Stanley Asia, was speaking before giving a presentation on ""A World Without China"", looking at what would happen to the global economy without China's economic momentum, at a lunch organized by the Center for China and Globalization, a think tank in Beijing. In the talk at the Park Hyatt Hotel in Beijing, he argues that world annual growth between 1980 and 2016 would have been just 2.7 percent - almost 25 percent less than its present 3.5 percent - without China growing at 9.7 percent during this period. And that if China's growth was to fall from the 7.6 percent achieved in the first three quarters of 2016 to 5 percent next year, global growth would almost halve from 3.4 percent to 1.8 percent. ""Without China's growth the world will have fallen into a very deep recession after the global financial crisis, and that would apply now,"" Roach says. He argues that since 1945 the world has had a major growth engine with the US powering the world economy in the 1950s, Europe growing strongly for much of the period and Japan and South Korea emerging before China. ""If China is not there, I don't think the US will provide it. I don't think Europe will or the rest of Asia or the resource economies will. The world will enter a period of significant weakness."" Roach says that among the worst hit will be the European economies such as Spain, Greece and Italy, which already have high levels of unemployment. ""There has been a lot of structural unemployment since the end of the financial crisis, and the hope has been that rising global growth would be able to absorb that. This, however, will not happen in a world without China."" Roach, who was brought up in Beverly Hills, California, began his career as a research fellow at the Brookings Institution in the 1970s after his doctorate at New York University. He then went on to work for the Federal Reserve before joining Morgan Stanley in the 1980s. He first got to know China well in the immediate aftermath of the Asian financial crisis in the late 1990s when he challenged himself to visit the country at least twice a month. ""For about five years I spent half my time there, and even now that I am teaching I still come four or five times a year."" Roach, who financially backed the Democratic presidential nominee Hillary Clinton in the recent election, is skeptical as to how Donald Trump as president can follow a fiscal expansion strategy while erecting trade barriers against China. He argues that the US would only be able to fund the resultant increased budget deficit with Chinese savings. US savings are 2.3 percent of GDP compared with China's 40 percent. ""Fiscal expansion in a low-savings economy just spells bigger budget deficits and wider current account imbalances and trade deficits. This would put the US on a collision course with the protectionist policies that Mr Trump is also prescribing. ""Right now it is all blue sky and optimism (with the Dow Jones index hitting record highs in December) with little regard for some of the tougher issues which may be evident down the road."" Roach, also author of Unbalanced: The Codependency of America and China, fears the world situation is now worse than it was even in the inflationary era of the 1970s. ""It is hard to say from a geopolitical point of view but I think it is worse. You have the populist backlashes, the lack of appetite for trade liberalization and globalization. ""At the end of the 1970s we had high inflation, slowing growth, the specter of inflation but we worked our way through that by economic means rather than geostrategic cooperation."" Roach was encouraged by the Chinese government's Central Economic Work Conference in December, which placed emphasis again on achieving ""new normal"" medium to high growth and supply-side reforms. ""China's push toward supply-side reforms is welcome and important but it is not an excuse for not rebalancing the demand-side of the equation. ""What concerns me is that there is almost too much focus on the supply side without continuing to underscore the commitment toward consumer-led growth on the demand side. You need both supply and demand to drive China to the next phase and to avoid the middle-income trap."" Roach welcomes President Xi Jinping attending the World Economic Forum in Davos, Switzerland, next month and says it will be a chance for China to show leadership, if the West is seen to be retreating under Trump. ""They will want to hear that China is still committed to dealing with global issues from climate change to trade and also opening its markets and borders warmly to other nations."" He also believes much of the debate will be about the future of globalization, a concept almost led by China with its vital manufacturing role in global supply chains. ""Just where is globalization heading? There has been a lot of push-back against globalization; that is what Brexit was all about, that is what the ascendancy of Trump is all about and that is what potentially the election of Marine Le Pen in France is all about. ""These are some of the pressures that will be actively debated and discussed at Davos."" Roach argues, however, that as with 2016 there is still little sign of the world finally lifting itself from the global financial crisis. ""The theory of resilience of economic cycles is that economies in general are elastic organisms, so imagine holding a big rubber band. The further you pull it down, the faster it snaps back. We have had a very deep downturn but a very anemic snap back. ""There are still enormous headwinds in this post-crisis climate. If it had not been for China the world would be in a much weaker place."" andrewmoody@chinadaily.com.cn - Stephen Roach, the senior fellow at the Jackson Institute for Global Affairs at Yale University, argues that world annual growth between 1980 and 2016 would have been just 2.7 percent - almost 25 percent less than its present 3.5 percent - without China growing at 9.7 percent during this period. Zou Hong / China Daily (China Daily European Weekly 12/30/2016 page5)", -541,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818612.htm,A story of deadly torrents and tears,,"They were united toward a common goal 30 years ago. In trying to achieve it, 11 of their friends, peers and rivals had lost their lives. Now, as they met for a reunion, drinks and tears flowed freely. ""During the party in Beijing all of us drank late into the night, and we laughed and wept,"" says Chu Siming, 59, a member of the China-US Upper Yangtze River expedition in 1986. That mission called for a journey of about 2,500 kilometers lasting 10 weeks on rafts and kayaks through virtually uncharted waters. It would entail negotiating swirling torrents, dozens of waterfalls and precipitous drops. This was no scatterbrained attempt by a group of individuals to set a Guinness record but an effort that had the approval of the top sports authorities in China. Yet two strong undercurrents propelled the expedition from the start: national hubris and money. - Above: The Sino-US joint team on the upper reaches of the Yangtze in 1986. Below: The group before leaving for the river. Jan Warren / For China Daily In 1985, Ken Warren, an adventurer from Oregon in the United States, declared that he and a team would attempt to be first to raft the perilous upper reaches of the Yangtze, China's longest river. The announcement raised public hackles. People questioned why foreigners had been handed the right to conquer a wild ribbon of water that, by dint of history and culture, enjoyed almost mystical national status. China Sports Service Co, an affiliate of the national sports authority, had signed an $800,000 deal (766,000 euros; 5653,000) with Warren allowing him to raft the upper reaches of the Yangtze and later to develop a commercial rafting operation. ""In the 1980s, China had just opened its economy to the outside world, and many government departments were seeking profitable projects,"" says Chu, who was an employee at China Sports Service Co, affiliated with the sports authority. In an apparent attempt to assuage public criticism, it was later announced that several Chinese rafters had been selected to join the US team. That recruitment drive had encountered difficulties of its own. Many of those approached rejected the opportunity, believing the mission to be too dangerous. Chu was among those who were undeterred. ""I signed up anyway,"" he says. ""I was young and willing to do anything new and exciting."" The company managed to find two other Chinese members for the 11-man joint team. One was a mountaineer from Sichuan; the other was from a sports school in Wuhan, Hubei province. Also with the team would also be photographer, a camera crew and a doctor, as well as a support group - including Warren's wife, Jan - that would travel by road. News of the joint expedition garnered much interest in both countries, but it soon became clear that the US-China expedition would not be alone in its attempt. In China, many young people started organizing their own expeditions to beat the team to the prize. The most notable of these was led by Yao Maoshu, 32, a rafting enthusiast from Sichuan province. In June 1985 he started out alone, which some regarded as foolhardy. It was reported that before he set out he told his wife to get an abortion because he feared that he might not return and she would be a widow burdened with a child. After 1,300 kilometers in the water, Yao drowned when his raft overturned in the river's treacherous Jinshajiang section. Some hailed him as a national hero. Apparently emboldened by the tale of heroism, many young Chinese men joined in the competition the next year. Like Yao, nine perished in the waters of the Jinshajiang section. After months of planning, it was decided that the joint team would set off in late July 1986 from the river's source - the Tuotuo River on the Qinghai-Tibet plateau, at an elevation of about 5,000 meters. The overland trek to the river's source proved to be a stiff challenge for the team. Within a short time one of the team members, David Shippee, a National Geographic photographer, was suffering badly from apparent altitude sickness. Another team member, Ancil Nance, in his account of the expedition, Yangtze River Expedition, 1986: An Adventure, says another team member urged Shippee to drink and think of his wife. ""It's not worth it,"" Nance quotes Shippee as saying about the expedition. ""Then he slumped in our arms. We carried him to his tent. By midnight he was dead."" Chu says he vividly recalls the power of the river and says that some sections of the Yangtze may never be conquered because of the extreme rapids. One of those sections is Tiger Leaping Gorge, in northwestern Yunnan province. When the team was about 320 kilometers from there, on Aug 28, 1986, Warren wrote in his diary: ""We were mauled by the river, bounced around like the inside of a pinball machine or maybe a washing machine. ... In a dreamlike sequence our boat was crushed by a mountain of water. It felt like we had hit a brick wall at 20 miles an hour (32 km/h)."" Chu says: ""Rocks lay hidden under the rapids, and there was turbulence beyond the rocks. The river was totally unpredictable, and you realized that the normal principles of buoyancy did not apply. You could be pulled into a hole by the power of the rapids, and sometimes it was like being in a runaway car with no brakes. It's difficult to put the fear into words."" However, as the team battled with nature, other problems were simmering in Yushu, Qinghai province. Nance said several team members, whom he called dissidents, voiced their disgruntlement about how things were being run. Eventually four Americans quit the expedition. The rest of the team pressed on for another 650 km, but neither it nor any other team cleared the Jinshajiang section where the river drops more than 3,000 meters, and where the rapids are especially vicious. Warren said in an entry in his diary that his 10.8-meter-long boat, the most advanced rafting vessel at the time, was tossed around like a toy. Even for a veteran like him, the power of the Yangtze was indescribable, he said. In summer this year, two reporters, Du Xiuqi and Chen Chuhan, spent four months interviewing members of the Chinese teams and retraced the route from Xining, Qinghai province, to Batang near Chengdu, Sichuan province, where Warren's team ended its adventure. ""I chanced upon a memorial of the expedition in Tiger Leaping Gorge when I traveled there earlier this year,"" Chen says. ""It was a shocking and tragic story, and I realized that young people like me knew nothing about it."" Chu says that instead of comparing the expedition to an adventure gone wrong, people should see it as a test of human resolve. ""I found rafting to be more about what it means to be human than an adventure. In an extremely dangerous and unfamiliar situation, even a little problem can be amplified into a big one."" The problem the joint team faced was not only the difficulty of the route but also shortages of food, he says. However, after Warren and others finally acknowledged nature as the winner in their intrepid tussle, more battles lay in store when they returned to the US. The Warrens faced at least six lawsuits from some of the American team members, including one for wrongful death. In June 1990 the couple were vindicated in all the lawsuits, but Jan Warren says they paid more than $180,000 out of pocket for legal fees. Ken Warren died early the next year. ""I simply couldn't handle all the loss,"" Jan Warren says. ""I was angry and I had to spend a lot of effort to heal the mind and support my then-13-year-old son."" At one stage she refused to even talk about the expedition but says she eventually felt compelled to write about it on behalf of her husband, who was posthumously recognized with a lifetime achievement award in Beijing ""I just cried when I saw the trophy. It is beautiful,"" she says. That is why she decided to tell the story of the China-US expedition in a book she self-published in the US, 1986 Sino-US Upper Yangtze River Expedition, for which she has sought a publisher for a Chinese version. Chu was among the attendees at the party in Beijing on Oct 29, along with Jan Warren, Zhang Jiyue (another member of the expedition) and two Chinese reporters who had been attached to the joint team. There was ""lots of laughter, talking and reliving"", Jan says. ""I spent the day with Chu and we had a wonderful talk about the expedition."" Chu, who is now in the real estate investment and art business, gave up rafting many years ago, but Jan Warren is as keen on it as ever. She holds onto the dream of promoting rafting as a sport in China. ""One of the things I still want to do, even if I am too old, is to organize Chinese tourists to river raft in the US. Lots of Chinese tourists come to the US these days, and we want to show them the excitement, but in a careful way."" Chu reckons that as a result of the ill-fated expedition, young people may have been deterred from the sport. To this day the feat that those intrepid rafters attempted 30 years ago remains unaccomplished. xuxiaomin@chinadaily.com.cn (China Daily European Weekly 12/30/2016 page1)", -542,2016/12/30,http://europe.chinadaily.com.cn/epaper/2016-12/30/content_27818611.htm,New year will be marked by change,,"Uncertainty will dog 2017 but it will be offset by immense opportunity It has been a monumental year for Chinese companies' overseas investments. The companies, as a group have become the world's largest source of foreign direct investment. According to Bloomberg, as of Dec 8. Chinese cross-border merger and acquisition activity for the year reached $237.7 billion (227.6 billion euros; 194 billion) - including $63.9 bilion and $83.4 billion on US and European acquisitions respectively - a year-on-year increase of 186 percent. If the past quarter of 2016 is a sign of what is to come in 2017, then Chinese outbound investments will likely face a much more complicated environment, with the new year likely to be one of more geographically diversified M&A coupled with a decline of overall M&A volume, especially in the early part of the year. In November 2016, the Chinese government made a decision to restrict capital outflows by increasing the scrutiny of Chinese outbound acquisitions over $10 billion and acquisitions of over $1 billion that are unrelated to the ""core business"" of the Chinese buyers. At the same time, the government also singled out investment in certain industries, such as foreign entertainment, hotels, real estate, film, and professional sports, where there will be increased scrutiny. These additional capital controls didn't just affect Chinese firms. Foreign companies were surprised to discover that the amount of cash needing approval by the State Administration of Foreign Exchange to be remitted abroad dropped from $50 million to $5 million and that the entire process will take more time than it did previously. The results of the US presidential election and the rise of political populism in a series of other countries, including many in Europe, are casting major uncertainty on global politics. Both domestic and foreign pressures will force Chinese companies to become smarter and more knowledgeable when it comes to their global M&A goals and strategies. How relations between the United States and China will evolve once Donald Trump becomes president remains highly uncertain and difficult to predict. There seems to be a prevailing political wind against further Chinese acquisitions of US companies, given the background of Trump's major campaign controversies related to China throughout his presidential campaign. It remains to be seen what awaits Chinese investors in the US in 2017, but a highly likely scenario is one in which it will be more difficult for Chinese acquisitions to get approval from the US government in sectors the government deems sensitive or potentially involved with national security. However, for the other sectors, one would be hard-pressed to imagine why and how the US government would not welcome Chinese investment. A case in point is Fuyao Glass, which is investing $1 billion in the US, including a $500 million investment in Ohio to build the world's largest automotive glass plant. According to Cao Dewang, Fuyao's chairman, the decision to invest in the US was based on analysis comparing the economics of producing glass in the US and in China. He concluded that it is in fact cheaper to produce in the US. By building a plant there, Fuyao's investment would create between 2,500 to 3,000 local jobs. And job creation in the US, particularly in the blue-collar segment in the US rust belt, is a priority for the country. Europe will probably continue in some form of economic stagnation in 2017. It may follow the US in policy-setting regarding Chinese businesses in some areas (China's non-market-economy status, for example), but it may also decide to strike out on its own path in areas where it feels there would be tangible benefits to its member countries. We expect Chinese companies to continue their interest in acquiring European companies - to gain access to necessary and more advanced technologies, for market access, or for bringing the acquired companies to the China market as part of business expansion. The greatest risk for Chinese investors looking at European opportunities in 2017 will be an increase in local populism. European populism will be a wild card in 2017 that could cause Chinese companies seeking acquisition opportunities to be suddenly shut down by European leaders to satisfy their own citizens and fend off attacks from political rivals. When Brexit becomes a reality in 2017, the United Kingdom will likely feel more vulnerable and possibly drive the UK government and its companies to cooperate more with their Chinese counterparts. Already since the referendum, the pound sterling has depreciated quite a bit, from its high of 1:1.47 USD in May to 1:1.24 USD at its lowest to date in December, making the price of UK assets cheaper relative to the USD and RMB. This presents Chinese investors with opportunities to find good deals such as those found in British real estate investments. As China looks at the world, there is clearly ample space beyond the US and Europe. In the past several years, China has stepped up its effort to play a more visible and influential role in international governance and geopolitics. The Belt and Road Initiative, though still nascent, is an ambitious and multinational program that could open up opportunities for Chinese and non-Chinese companies. Some of these initiatives can be huge and will take some time to materialize, if at all, but for the moment, good momentum is being generated. We expect to see a higher degree of Chinese M&A activities in the countries along the Belt and Road. I recently visited Manila in the Philippines and met with a number of senior business executives. There was quite a high degree of interest from the Filipino business community regarding Chinese companies' investment in their country. This coincides with the renewed, improved diplomatic relationship between China and the Philippines - and, after all, the Philippines is also strategically located at the beginning of the Maritime Silk Road. Of course, the Philippines is not the US or Europe. Nonetheless, it is an example of where Chinese investments are very much welcome. We also expect more investment from Chinese companies along other parts of the land and maritime Silk Roads, and it will come not only from Chinese state-owned enterprises but also from private companies. Africa, in particular, could see a step-up in such activities, as many African countries need more and better infrastructure, and some of them are rich in resources that China desires. Strategically, China also sees Africa as an important ally. Certainly, 2017 will bring uncertainties. In some cases, the Chinese companies' overseas buying spree may be dampened, but in other cases it will probably happen with even more speed and intensity. Economic nationalism will manifest in different ways across different countries. There will be a dampening of acquisitions in selected sectors, yet globalization and regional development will be intensifying in their own ways, and progress will continue. Though a year of uncertainty, 2017 will also be a year of change - and for some, the uncertainty will be related to the immense opportunities. The author is founder and CEO of Gao Feng Advisory Co, a global strategy and management consulting firm with roots in China. He is also the author of China's Disruptors (Portfolio, 2015). The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 12/30/2016 page9)", -543,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685686.htm,A land shaped by water's ebb and flow,,"Challenge has created mentality among Chinese that almost any problem faced by the nation can be solved by engineers Science writer Philip Ball believes water has played a key role in determining China's destiny. This is the main argument of his new book, The Water Kingdom: A Secret History of China, which examines the country's long history through the prism of this vital aspect of its physical geography. ""China has had to develop a relationship with water that is unparalleled. You have a combination of factors that you don't see anywhere else in the world,"" he says. - Philip Ball says he has been interested in Chinese culture since he was a teenager. Nick J.B. Moore / For China Daily ""You have places like Bangladesh, where there is a constant risk of extreme floods; and the Middle East, where there are always problems of water shortage; but China has to deal with both."" Ball, 54, was speaking outside the British Library near St Pancras in central London, where he is currently researching a new book. He fully acknowledges that water is not the only perspective to see China from but it is a useful prism. ""What I hope is that by narrowing the focus to this particular window, it enables you to tell an extraordinary and surprising amount, not just about Chinese history but politics, culture, art, philosophy and language even."" Ball says water would not necessarily be a particularly useful vantage point for the history of his own country, famous for its rainfall. ""Every country and civilization has had to be close to water and have a relationship with water. In the UK, for example, we have plenty of it, as a whole, and it is just a matter of making sensible use of it."" The writer says it is no accident that one of the heroes of China's history, Emperor Yu, founder of the Xia Dynasty (c. 21st century-16th century BC), was effectively a hydraulic engineer. He created a river system involving irrigation canals that prevented farmland from being flooded. ""He is not like a Noah figure who rides out the flood. He is someone who takes matters into his own hands and introduces engineering measures such as carving channels and dredging rivers to make floods subside. ""Like many people in Chinese myth and legend he is more of a remote administrator figure, unlike the sharp personalities you get in Greek or Norse myth or, indeed, with Noah who was the progenitor of the whole species (according to Christian doctrine)."" Ball says China's essential water problem is that water flows from the mountains of the west to the seas in the east but the challenge throughout history has been getting grain from the farmlands of the south to the north. One of the great engineering solutions to this was the Grand Canal, some of which dates back to the 5th Century BC, which links the Yangzte and Yellow rivers. ""The Yangtze valley is below the Yellow River valley so you have got an uphill gradient going north. So you have this contrast of the water-poor north and the water-rich south,"" he says. One of the China's modern grand schemes is the South-to-North Water Diversion Project, which aims to channel water from the Yangtze in southern china to the north through three canal systems. The $79 billion (74.3 billion euros; 62.3 billion) scheme, which will shift 44.8 billion cubic meters of water, is one of the world's most expensive engineering projects. ""It actually goes under the Yellow River through tunnels. It would be hard to find any other nation prepared even to contemplate something in this scale but China has the capacity to do this."" Ball, who was brought up on the Isle of Wight off the south coast of England, studied chemistry at Merton College, Oxford before going on to do a doctorate at Bristol University in theoretical condensed-matter physics. After university, he went to work for Nature magazine, the leading British science publication that has been in existence since Victorian times, as a writer and editor on physical sciences. It was while on a three-month sabbatical from the magazine in 1992 he made his first visit to China. ""I would say that from a teenager I had this interest in Chinese culture and under this very enlightened scheme Nature had, I thought this is my chance to finally go,"" he says. He made use of his existing contacts there and spent the first month visiting science laboratories across the country and then generally traveling around. ""Looking back, it was an interesting time to be there (the year of Deng Xiaoping's Southern Tour which unleashed economic reforms) but it was still tough to travel in China."" Ball now makes regular annual trips to China and acts as a consultant to the Shanghai Institute of Applied Physics. ""I go there and speak about the work they are doing, which relates to the molecular structure of water, an area I have long been interested in. ""Over the past 10 years I have pretty much gone to China every year with my family. I have a lot of contact there and friends in virtually every Chinese city."" Ball left Nature in 2001 (although he still contributes to it) to focus on writing books, of which he has published around 20. Critical Mass: How One Thing Leads to Another in 2004 won the Aventis prize for science books, and The Music Instinct in 2011, about why music matters to people, prompted a huge debate. ""I have always done music in one way or another. I played in bands in Bristol and I wanted to find a way of writing about music drawing on my scientific background."" His new book contains many themes that are still relevant to China. Only in 2007, the Yellow River, whose origin is the Qinghai Tibet plateau, dried up for 10 months before reaching the sea. ""It had happened in the historical past but this was a real warning and a real shock. It was to do with overuse of river water, too much being taken out for industrial use, agriculture and irrigation. Over the past 10 years, management of the river seems to have been getting better,"" he says. Ball says China's water challenge has created a mentality among the Chinese that almost any problem the country has can be solved by engineers. Until recently many of the country's leaders including Deng Xiaoping and Hu Jintao have been engineers. ""I think that is part of the reason why China has had this appetite for huge engineering projects. There is a view in the West that they should perhaps be more like China and that there be more scientist and engineers in positions of power."" As well as being fascinated by its water history, Ball has a deeper commitment to China with he and his wife having adopted a Chinese baby in 2006. Mei Lan is now 11 and the elder of their two daughters. The book is dedicated to her. ""That is the reason why we go back to China a lot because we are keen she has contact with her Chinese roots,"" he says. All the family are, in fact, now learning Mandarin. ""I can read menus in restaurants so I know what I am ordering, and get a taxi to get around. I am not sadly able to read the Tang Dynasty poets, but, you know, one day."" Ball, also a judge of this year's Baillie Gifford prize for non-fiction, is turning his attention away from China for his next book, which will be about modern myths. ""I am struck by how many stories such as Frankenstein, Dracula, Jekyll and Hide and even Sherlock Holmes have become modern myths while perhaps having mediocre literary credentials."" andrewmoody@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page32)", -544,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685685.htm,IN BRIEF (Page 24),,"A Smart car a brand jointly owned by Mercedes-Benz and Swatch-attracts the attention of passers-by on a street in Chengdu, Sichuan province. Renters can drive it away by paying through an app or a WeChat account. Tan Xi / For China Daily New refinery set to start up next year China National Offshore Oil Corp, or CNOOC, is expected to start operating a new refinery in Huizhou in the second quarter of 2017, with Saudi Arabia as the potential crude supplier, three sources familiar with the plan said on Dec 14. ""The new plant is slated for startup around May or June ... with a configuration geared to process medium-sour grades, typically Arab medium from Saudi Arabia and similar grades from Kuwait,"" says a Beijing-based industry official. ICBC ready to finance Bulgarian project Industrial and Commercial Bank of China, the country's biggest lender by assets, is ready to finance a Bulgarian nuclear power project, Bulgaria's government said on Dec 15. The Balkan country plans to privatize the Belene project on the Danube River after it paid more than 600 million euros ($637 million; 507.6) in compensation to Russia's state nuclear giant Rosatom following the cancellation of the project. An international arbitration court ruled in June that Bulgaria should pay the compensation for nuclear equipment it ordered from Russia's Rosatom before canceling the 10-billion-euro project in 2012. Honeywell introduces Mandarin language Honeywell Aerospace has introduced the Mandarin language into a safety system for helicopter cockpits called an enhanced ground proximity warning system, the Asia-Pacific headquarters of Honeywell said on Dec 14. The US Federal Aviation Administration has approved the Mandarin use. Honeywell says it is the first company to obtain non-English-language approval for alerts in helicopter cockpits. China sales at topof Audi's markets German automaker Audi AG says the highest sales volume growth for an individual market came from China in November. Audi's sales figures in China rose by 6.6 percent to 52,776 automobiles in November. A total of 540,040 units were delivered to Chinese customers from January to November, up by 5.7 percent year-on-year. Direct flight opens to Adelaide, Australia China Southern Airlines' first direct flight from the southern Chinese city of Guangzhou arrived in Adelaide, capital of South Australia, on Dec 13. Adelaide Airport welcomed the major flight with a water-cannon salute. The Airbus A330-200, packed with more than 190 passengers, touched down on time at 9:30 am local time. This is the sixth flight of the airline that offers a direct link between Guangzhou and a provincial capital in Australia. Bell Helicopter to build assembly line in China US aircraft producer Bell Helicopter will build an assembly line in Xi'an, capital of northwest China's Shaanxi province, local authorities said on Dec 10. The project, with a total investment of 5.3 billion yuan ($767 million; 729.4 million euros; 611.23 million), will be located at Xi'an's national civil aerospace industrial base, according to the agreement concluded on Dec 9 between Bell and Shaanxi Aviation Industry Development, a subsidiary of Shaanxi Energy Group. The project includes an assembly line for Bell 407GXP helicopters, a center for helicopter training, emergency response and rescue, as well as research and development related to drones. $120m in steel mill reconstruction planned Chinese steel manufacturer Hesteel announced that it will invest $120 million (114.1 million euros; 95.6 million) in a steel mill in Smederevo, a city about 45 kilometers from Belgrade. Hesteel Chairman Yu Yong says that his company is satisfied with production at the recently purchased steel mill in Smederevo and decided to add the investment to develop it further. Yu Yong made the announcement after meeting Serbian Minister of Economy Goran Knezevic in Belgrade. Hesteel took over the steel mill in July. China-Europe train brings German meat A freight train loaded with meat from Germany arrived at Chengdu, capital of southwest China's Sichuan Province, sources at Chengdu Qingbaijiang International Railway Port said on Dec 11. The train took 13 days to travel 12,000 kilometers from Nuremberg, Germany, to Chengdu, and was loaded with 21.9 tons of German pork. All the meat products will be put on the Chinese market after passing quarantine inspection, says the Sichuan Entry-Exit Inspection and Quarantine Bureau. The train saves 45 days of transport time compared with ocean shipping, and saves 10,000 yuan ($1,448; 1,377 euros; 1,154) per ton when compared with air freight. The China-Europe freight train marks the opening of the railway channel for China to import meat products from Europe. Chinese fund invests $4 billion in Africa The China Africa Development Fund, an equity investment fund managed by China Development Bank, had invested $4 billion (3.8 billion euros; 3.1 billion) in Africa as of the end of November, authorities said on Dec 14. Since its establishment in 2007, the fund has invested in 88 projects in 37 African countries. SAP plans smart park for Chengdu German software giant SAP announced it plans to spend 40 billion yuan ($5.8 billion; 5.5 billion euros; 4.6 billion) on building an industrial park in southwest China's Sichuan province. The industrial park, in Tianfu New Area in Chengdu, the capital city of Sichuan, is scheduled to be completed by 2021. The park will include centers for data innovation, product R&D, talent development, global purchases, intelligent logistics as well as education and medicare facilities, said Liu Qiang, vice-president of SAP Greater China. After completion, the smart industrial park will have international influence, with intelligent manufacturing as its core industry, according to Zhou Siyuan, deputy director of the administration committee of Tianfu New Area. ( China Daily European Weekly 12/16/2016 page24)", -545,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685684.htm,The language of luxury,,"New store in London caters to fashion house customers from China with more tailored services Italian menswear designer Ermenegildo Zegna has taken Chinese customers to heart, with salespeople speaking their language at its new and largest store on London's Bond Street. The store, launched on Nov 9, has hired Chinese-speaking sales staff and is offering the services of a Chinese consultant who can explain the brand's history and culture. The luxury menswear brand's CEO, Ermenegildo Zegna, says the move shows a strong focus on Chinese shoppers as a result of the soaring number of Chinese tourists visiting the UK. - Ermenegildo Zegna, the fourth-generation CEO of his family's fashion house and brand. Wang Mingjie / China Daily The fourth-generation CEO of the family-run fashion house says: ""Chinese customers are one of our biggest clientele. By offering native-speaking staff who understand the culture and the customers' needs, we are able to bring a comfortable shopping experience to our Chinese patrons."" The Italian company, which owns sheep farms in Australia that supply wool to its Italian mill, opened in China in 1991. It was the first luxury apparel company to launch in the Chinese market, and China is now its biggest single market, accounting for about a third of its global sales of 1.26 billion euros ($1.34 billion; 1.07 billion) in 2015. ""This would not have happened if we hadn't taken the market seriously by making an early entry, building the right store, creating the right team and continuing to invest in new things,"" Zegna says. He believes China is a market where retailers cannot stand still, because customers keep asking for more and the competition is fierce. ""To remain a leader as a menswear luxury brand in China you have to keep renewing yourself and reinvesting in the brand to make sure that people are given superior service and a constant innovative brand proposition,"" Zegna says. He adds that China's key stores are a testing ground for new products and new ideas, as Chinese customers enjoy looking for something new. Recently Zegna spoke to China Daily about his vision and strategy and new opportunities for Zegna's operations in China. Following are edited excerpts of the interview: How would you describe Zegna's prospects in China in the current economic environment? Our commitment to China has been demonstrated over many years. As you know, we have been dressing Chinese men for over 25 years, dating back to 1991 when we opened our first China boutique in Beijing. Throughout this time we have been fortunate to see the amazing change and development that has made China what it is today. We have offered the Chinese gentleman unparalleled craftsmanship and bespoke style that is both modern and highly relevant to their wardrobe needs. When I look at China's future, I believe digital is the key - everyone in China has a mobile phone. We have to understand quickly how customers' desires change and that's why you need to be connected as a brand and tell your story via mobile. This generation has been rocked by digitization, and the organic integration of online and offline sales can offer a whole new development path for the Zegna brand in China and globally. What is your company's biggest achievement here since 1991, when Zegna entered this market? As you know, we are a fourth-generation family business, which I am sure you will agree is already a great achievement in itself. I believe our biggest achievement is the huge following we have developed with our Chinese customers. Over the past 25 years, we've been offering consistent excellence in quality, fabrics, service and innovation. This has resulted in Zegna having an extremely loyal Chinese customer base. I am glad to say that, thanks to our dedication and passion, we are still able to deliver to our global customers of all ages and backgrounds, and to Chinese gentlemen even after such a long time in the market - a contemporary image and esthetic. As one of the first few luxury brands launched in China in the early 1990s, and having witnessed the evolution of luxury brands, how would you describe Chinese consumer trends with regard to luxury brands over the last 20 years? Chinese consumers have become a driving force for global innovation and this is especially true in fashion. We see our Chinese customers as some of the most discerning customers Zegna has, and I know our new creative director, Alessandro Sartori, is very much looking forward to getting to know our customers on the Chinese mainland. In your view, what is the secret of Zegna's success in China? We embrace our fourth-generation family heritage, with a relentless focus on quality and service. We have always been able to adapt and move forward with innovation. We have to move quickly in terms of product innovation and need to create continuous excitement in our stores, which we can do also thanks to our supply chain. We also place critical importance on understanding the culture of each of our markets globally. We strive to understand local traditions as much as possible. Other than seeing the world from a global perspective, you have to see it from a more local point of view. We love interpreting local desires by anticipating new trends. To do that, you need to spend quality time with customers. With this local vision, we will continue to place great importance on the Chinese market. I believe our customers in China feel this and respond accordingly by being very loyal to the Zegna brand. What do you think is the competitive edge of your brand in China? I think China is still at the forefront of luxury in Asia. Competition for luxury brands is fierce, and we need to invest a lot of ourselves in terms of budget, energy, ideas and time to make sure we are competitive. Storytelling is crucial, since you need to convey an emotion through the product. Nevertheless, we will continue to offer the hallmarks of the Zegna brand - luxury, style, quality, craftsmanship and, of course, innovation in every area. What essential leadership qualities do you consider most important when leading your team to growth in the Chinese market? You must strive to find a good way to communicate with the team, and keep an open mind. You also have to look into the long-term future but at the same time must not forget about the original values and traditions. How do you handle the challenges your team has encountered in China, if any? I think it is the same with every market. You figure out what works, and you constantly flex your business strategy to meet the demands of a market. The fantastic thing about being a family company is our ability to move quickly. This has become so critical in this world, where customer preferences and the retail landscape have shifted so quickly. What are the dreams you have for your company in China? I am in awe of the progress China has made in the 25 years I have been operating in the Chinese market. When you look at the absolute growth, the numbers in China year-on-year are astounding. I want us to continue to share our heritage with this fascinating country and culture. What are your hobbies? How do you spend your time outside of work when you are in China? I like to play tennis on weekends, skiing in the wintertime and walking in the countryside. I am also passionate about vintage car races. wangmingjie@mail.chinadailyuk.com (China Daily European Weekly 12/16/2016 page31)", -546,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685683.htm,Property developers set to ride out market turbulence,,"Analysts say conditions may be challenging but bright spots abound China's property developers will ride out challenging market conditions like slowing sales growth, debt pressure and fewer financing channels and see a stable 2017 marked by slower yet positive growth, industry analysts say. Debt management will improve, demand for housing in key cities will be sustained and the ""develop-and-manage"" model will find acceptance, which will help developers explore new paths for development, they say. ""Concern about surging debt pressure seems to have found a solution, with more developers using financial tools to hedge risks,"" says a research note from Ping An Securities. China's real estate developers have been clearing their US dollar-denominated debts to prevent losses as the currency has been strengthening against the Chinese yuan in recent months, a situation that may pile more pressure on smaller players than bigger ones. The financial health of developers worsened recently as sales slowed due to policymakers' moves against potential overheating in the residential market in key cities and speculative buying, the analysts say. Dollar-debt issuers have been learning lessons from the past. They are reducing losses caused by exchange rate fluctuations through swap transactions or by retiring debts well before maturity. Issuing US-denominated bonds in overseas markets was a major financing channel for many developers in the past three years. Interest rates were lower than other channels. But now, this ""low-cost"" financing option is no longer economical, as the dollar has gained more than 3 percent against the yuan in the past two months. According to data from Shanghai-based Wind, a financial information provider, China's real estate developers have been retiring dollar-denominated debts before maturity since the beginning of November. So far, they have cleared debts of more than $1 billion (940 million euros; 788 million). For instance, on Nov 28, Hong Kong-listed, Chongqing-based LongFor Properties Co informed the Hong Kong Stock Exchange that it had redeemed callable bonds of $417 million maturing in 2019. Analysts say that such moves will help developers reduce losses caused by exchange rate fluctuations and will help create more room for further financing. ""The trend is that more developers who bought US dollar debts are going to do the same, as they are likely to shift from overseas markets back to the domestic market for financing,"" says Zhang Dawei, an analyst at Centalaine Property. A research note from Moody's, which rates 50 listed developers in China, says the outlook for developers for 2017 is ""stable"" as support from market demand remains, income is steady and pressure for financing and refinancing is under control. ""Credit indicators of rated developers ... have been improving, creating easier financing conditions that potentially bring more liquidity to the market. The total size of developers' debts that mature in 2017 is relatively small, and both loan and bond markets are open to developers, so risks for refinancing are under control,"" says Yang Liu, an analyst with Moody's, in the research note. The report says that the risks developers face are largely not from external market conditions but from internal factors, including decreasing support from the parent group concerned or disagreements among shareholders, which vary case by case. Only two out of 50 rated developers are facing considerable pressure in re-financing, says Moody's. Ren Zhiqiang, former chairman of real estate company Huayuan Property Co Ltd and a real estate market veteran, says as long as economic growth is positive, job opportunities will increase, urbanization will proceed apace, solid demand for residential properties in key cities will remain robust and developers that hold quality projects in such cities are likely to see stable cash flow through sales. Urbanization and China's shifting economic growth pattern, driven by consumption, will generate more diversified demand, giving developers more opportunities to come up with new types of project, say analysts. A research note from CICC says that about 100 million residents will be migrating to urban areas in the next few years, creating a leasing market whose size will exceed 1 trillion yuan ($144.91 billion; 136.2 billion euros; 114.3 billion). ""We expect that long-term leasing services will take some 20 percent of the entire leasing market in the next few years, and it is observed that more developers are entering this market,"" says the research note. Increasing numbers of developers listed in Shanghai, Shenzhen and Hong Kong are also adopting more sophisticated business models, shifting from previous ""develop-and-sell"" to ""develop-and-manage"". Some developers are building up communities that integrate commercial properties, residential properties, and public facilities all together, say analysts. wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page27)", -547,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685682.htm,"X-lab nurtures the future for China, Germany",,"Twenty-nine-year-old Jan Milark sits deep in the corner of a 1,000-square-meter office, but he's easy to spot with his snow-white shirt and Caucasian face. Milark started an online art business earlier this year and was attracted to the current office - an arm of Tsinghua University's X-lab - in October. The lab, in Zhongguancun, the heart of China's Silicon Valley, supports more than 900 entrepreneurial teams whose projects range from mobile internet and new materials to artificial intelligence. ""With the rising of the middle class, China will become the leading market for outstanding young artists from Europe and around the world,"" Milark says confidently. He graduated from Tsinghua University two years ago. - Students from China and Germany discuss their projects as a multinational team. Provided to China Daily Mao Donghui, executive director of the X-lab program, explains the mission: ""Talent is the foundation of innovation for the new economy. A new kind of education is key for training innovators. We hope to help students from home and abroad master the basics of innovation and creating business startups. These are the engine for the future."" China and Germany have cooperated in the areas of economics, culture and education in order to promote upgrades over the past decade. In June, China's National Development and Reform Commission and the German Federal Ministry of Economy and Energy hosted the eighth Sino-German Economic and Technical Cooperation forum. And in June, Qian Yingyi, dean of the Tsinghua University School of Economics and Management, signed a memorandum of understanding with Helmut Schoenenberger, CEO of the innovation center at Technical University of Munich, calling for collaboration between German and Chinese startups. It covers student exchanges, education sharing and creating and Tsinghua's X-lab is closely involved. ""We will promote in-depth cooperation for students from both countries and explore new models of international innovation and entrepreneurship education,"" Mao says. Tsinghua's X-lab, founded in 2013, aims to lighten the burden of creativity for undergraduates and to provide basic training and support. ""X"" means exploration of the unknown, as well as discipline and integration. The word ""lab"" reflects learning through practical experience and teamwork. As of the end of October, more than 20,000 students had participated in lectures, competitions, exchanges and activities organized by X-lab. Some 943 programs launched by Tsinghua students and alumni joined the lab, whose registered financing has exceeded 1 billion yuan ($145 million; 137 million euros; 115 million). And they created more than 5,000 working positions, according to Emily Wang, information officer of X-lab. Mao says 14 entrepreneurial teams from China and Germany applied to join the bilateral program this year. Students from both countries conduct market explorations while networking and participating in cultural exchanges. ""They set up temporary multinational teams and learn from field work to look for practical solutions by themselves. This is the most valuable experience for them."" The trip to Germany allowed students to communicate with local IT and law experts, helping them understand how to enter the European market, says Zheng Qi, senior director from international program of X-lab. She says some students even planned to launch their services in Germany and China in the near future. According to Mao, the project will be held every year in Munich and Beijing to benefit more German and Chinese students. X-lab will also seek cooperation with other major universities in other countries to cultivate a global vision for the future entrepreneurs. ""The partnership between the X-lab entrepreneurship center and innovation of Technical University of Munich not only adds vitality to the Sino-German cooperation but also helps cultivate innovative international enterprises for both countries,"" German Ambassador to China Michael Clauss wrote in a letter to Qiu Yong, president of Tsinghua University. wuyong@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page26)", -548,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685681.htm,Chint Group expands through offshore deals,,"Company rides explosive growth to move beyond the manufacturing of electrical equipment Zhejiang-based Chint Group, China's leading industrial electrical equipment and new-energy enterprise in the private sector, is pushing forward its overseas mergers and acquisitions. At the same time, it is forging cooperation agreements on production capacity and equipment manufacturing along the Belt and Road Initiative. ""We are going to make more acquisitions to complete a whole industrial chain,"" says Nan Cunhui, chairman and founder. An engineer monitors the automated production line at Chint Group's photovoltaic components factory in Hangzhou, Zhejiang province. Shi Xiaofeng / China Daiy Founded in 1984, Chint Group has seen its businesses expand over the years, from electrical equipment to power transmission and distribution equipment and services, instruments and meters, building appliances, photovoltaic power generation and equipment manufacture. In October, the company signed a comprehensive strategic cooperation agreement with Veolia, the world's largest environmental services provider, covering almost all of Chint's industrial chain across new energy, power transmission and distribution. Its international business has seen explosive growth for a year, especially in the field of new energy. For instance, Chint's solar components factory in Malaysia started mass production in January. It is the company's third components factory after those in China and Germany. In March, Chint completed two PV power plant projects in Thailand. It also drew up a plan to build one more components factory in the country to expand its business. So far, it has established factories, R&D centers and marketing branches in about 80 countries in Europe, North America, Russia, South America, the Middle East and the Asia-Pacific region. It constructed more than 30 overseas ground PV power plants, and sold its products to over 130 countries and regions. Its PV business grew by 80 percent last year; its power electronics products sector in the North American market grew by 168 percent; and the domestic and overseas general contract business grew by 425 percent. According to Nan, Chint's chairman, the company has benefited from its acquisition of Conergy, a German PV company. At the time, the latter was on the verge of bankruptcy. Chint acquired its components factory in 2014. ""We had a very efficient circulation network. We sold the products from our German factory to the Asian market. The factory runs well now,"" says Nan. The acquisition provided a chance for the Chint to introduce the German factory's management systems and automation production lines into its manufacturing bases in China, South Korea, Japan, India, the US, Spain, Thailand and Malaysia. This helped to increase production efficiency. ""Now, six engineers can operate the whole process at one workshop, whereas just two years ago, we had to use dozens of workers to complete all the work,"" says Lu Chuan, CEO of Chint New Energy, a subsidiary of Chint Group. ""We can even monitor the manufacturing process at factories in different countries from our headquarters."" To meet the needs of domestic and overseas markets, Chint Group funnels 3 to 10 percent of its sales revenues into R&D each year. In its high-end equipment sector, the R&D investment reached 50 percent of its sales revenues. Last year, Chint launched China's largest PV power plant project, a 2 billion yuan ($294 billion; 278 billion euros; 233 billion) 200 megawatt light project to complement local agriculture, at a mountainous area in rural Quzhou, Zhejiang province. shixiaofeng@chinadaily.com.cn ( China Daily European Weekly 12/16/2016 page28)", -549,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685680.htm,Recruiting overseas needs knack for diversity,,"Chinese enterprises need to think globally about their mergers and acquisitions - and not only about the market but about talent, says Ya-Qin Zhang, president of Baidu Inc, at the 3rd Conference on China Outbound Forum in Sanya, Hainan province. Hiring talent is always a tough but unavoidable issue for all overseas investors. Bosses have to consider whether talented people from abroad are willing to move to another country, especially when they are not familiar with the language and local culture. Zhang shared his experience recruiting globally for Baidu, the world largest Chinese search engine. ""We definitely want people to choose to live in Beijing, Shanghai or Shenzhen because it's convenient to work together,"" Zhang says. ""But there are reasons that hold them back"" - for example, a family is settled in one place and may be reluctant to move. Baidu finds there is a strong demand to set up labs and recruit teams globally. It set up a research and development center for artificial intelligence and unmanned ground vehicles in Silicon Valley, in California, because many kinds of talent the company needs are concentrated there. ""Among those we can attract, half of them may be Chinese who work for Google, Microsoft or Amazon,"" Zhang says. ""But half may be Americans."" Huawei Technologies, with more than 70,000 employees of different nationalities, has a model for recruiting talent abroad. It has established joint research programs with more than 150 universities around the world, hiring local experts and researchers for Huawei's global expansion. ""There is no boundary for innovation,"" says David Harmon, vice-president for global public affairs at Huawei. ""So we focus a lot on cooperation in different markets to attract the best talent."" Different from the domestic market, in which most everyone shares a language and cultural background, overseas M&As face communication challenges in a multicultural context. Yu Weiping, vice-president of CRRC Corp, used one of Wanda Group's acquisitions as a case in point. When Wanda acquired AMC Entertainment, the parent company hired people who had studied or worked in China to reform the management team and run the business in the US. Those people, who were familiar with Chinese culture and understood the American business model, successfully transformed AMC from losing to gaining. ""Chinese international students brought in the business ideas and management models of those multinational enterprises,"" says Liu Ke, dean of the Institute of Clean Energy at South University of Science and Technology of China. ""But in the next 30 years, another mission for them is to bring our company to the world."" ( China Daily European Weekly 12/16/2016 page25)", -550,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685679.htm,Quotable,,"With the new regulations, the performers who used to make easy money by dancing, telling jokes or simply eating and sleeping, will find that they are no longer popular."" Zhang Jiangjian, a Shenzhen-based independent internet industry analyst. On Dec 12, the Ministry of Culture released new regulations for online performances under which live streaming platforms must require performers to register with valid identity documents. ""We have basically covered almost everything Messe Frankfurt does in Germany and replicated it in China. We run 34 exhibitions in China, more than in Germany itself, covering almost every field."" Stephan Buurma, a member of Messe Frankfurt's extended board of management. ""Americans like large-scale fireworks. There is considerable growth potential in the US market, with strong seasonal features. Our company sells the biggest amount of products on July 4, followed by Christmas and New Year."" Chen Shimei, general manager of Golden Peak Fireworks Corp, one of the largest manufacturers of the products in Wanzai, Jiangxi province, where about 60 percent of factories focus solely on exports. In the next few years, the manufacturer plans to further expand into Europe, including Germany, Spain and Italy. It attends the Spielwarenmesse International Toy Fair in Germany every year to attract more international buyers. (China Daily European Weekly 12/16/2016 page24)", -551,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685678.htm,Earthquake opened door for telecom giant,,"When damage to undersea cables cut service to Europe, partnership followed In December 2006, the Hengchun earthquake off the south coast of Taiwan disrupted five submarine cables, cutting off the internet connection between Europe and Asia. Keen to keep its customers connected, British Telecom asked China Telecom for help. ""BT asked us to provide connections between London and Hong Kong within a week, and we only took half of that time,"" says Charlie Cao, managing director of China Telecom Europe. China Telecom was able to provide BT with this service thanks to its extensive terrestrial and submarine cable networks linking Europe with Asia. When natural disasters like earthquakes affect cables, data transfer can still be achieved by rerouting it. - China Telecom's team at the opening of the company's Paris office in 2013. Provided to China Daily During the Hengchun earthquake, China Telecom's trans-Russian network was not affected, which made the service for BT possible. ""We have a higher numbers of cables compared with our Chinese competitors and we also provide efficient, direct and flexible services when transferring data across countries through these cables,"" says Cao. The BT partnership in 2006 was one of China Telecom's first tasks in Europe, as the company established a European footprint by setting up a subsidiary in London that year. With a decade of history in Europe under its belt, China Telecom is already a networking supplier to most major European telecommunications giants, including British Telecom, Vodafone, Telefonica, Deutsche Telekom and Orange. China Telecom's history goes back to 1994, when the government established a company in Beijing that owned and controlled all public telecommunications, including mobile, fixed-line and postal services. Over the years China Telecom underwent a series of changes and restructuring, the most significant of which was in 2000, which led to the establishment of the company China Telecom Corp as it is known today. China Telecom has been listed on the Hong Kong and New York City stock exchanges since 2002. In 2000, China Telecom also started to expand overseas by establishing a representative office in the US. Over the years it expanded overseas, mainly across Europe, the Americas, Africa and the Middle East. In 2012, a new company called China Telecom Global was established. In an effort to better integrate its resources, all of the company's overseas offices are integrated into China Telecom Global, which is headquartered in Hong Kong. China Telecom's European expansion has grown rapidly since 2006 and now the company has subsidiaries across countries in Europe, including in Germany, France, Russia, Belarus and Turkey. It also has representative offices in a handful or other countries, including Benelux, Italy, Poland, Czech Republic, Portugal, Spain and Hungary. Its equipment is installed in a half-dozen additional cities to facilitate communication, including Helsinki, Stockholm, Milan, Madrid and Istanbul. ""Geography is a key advantage we enjoy,"" Cao says. To connect between Europe and Asia, ground-based cables need to go through China, Kazakhstan, Mongolia or Russia; therefore China Telecom's headquarters location in China gives it an advantage over Western telecommunications firms in rolling out such cables. Compared with terrestrial cables, submarine cables are more prone to disruptions, and are more difficult to repair when they are broken. China Telecom's European expansion plays a supportive role for Chinese companies in Europe, as these firms often need to send data back to their headquarters at very fast speeds or hold video conferences with colleagues in China or other international offices. Its corporate clients are now spread across industries including finance, manufacturing, retail, gaming and high technology firms. ""Once they are connected onto our network, they can enjoy global communication across more than 60 data points and 33 cables globally,"" Cao says. China Telecom is also now increasingly providing corporate services to Western companies, especially those requiring communication with China. ""Before our entrance into Europe, many of these corporate clients were served by Western carriers. Most major Western carriers entered the Chinese market by partnering with Chinese firms like us, but now that we're going global we are competing with them to expand our client base,"" says Cao. The roll-out of China Telecom's cable infrastructure between Asia and Europe means many Western clients can enjoy the same services. Compared with Western telecommunications firms, the company has ""more flexibility and quicker responses to clients' needs on a regular basis"", Cao says. In addition to serving corporate clients, China Telecom also launched a dual-number SIM card service in 2012, targeting retail clients, who are mostly business travelers or overseas Chinese. Known as CTExcelBiz, this SIM card allows clients in the UK and Europe to make and receive calls with local numbers and Chinese numbers at local service rates. Currently there are 20,000 such cards in use in the UK, and an additional 20,000 in France. The SIM card issued in France has two versions, one focusing on usage in France, and the second on customers frequently traveling to other continental European countries by providing cheap roaming services. In addition to facilitating calls, the card also supports mobile payment activities using Alipay and Wechat Pay, as both apps can only support Chinese mobile phone numbers. With a decade of history in the UK, China Telecom has also developed a unique corporate culture, characterized by placing strong emphasis on customer trust, thinking from the customer's perspective and respect for contracts. ""We try to build strong trust with our customers. We are honest when doing business with them. We do not over-emphasize our abilities and we do not make promises for things we cannot deliver,"" says Cao of China Telecom. Thinking from the customer's perspective often does not necessarily mean providing them with the most expensive package of products, Cao says. ""If we realize they do not require a service package with such great speed or bandwidth, we will recommend a more cost-efficient package that will still satisfy their needs."" Looking to the future, Cao says his team will increase geographical reach with its services, broaden service range and venture into new business areas like cloud technology and smart technology. ""Currently we've established quite a presence in Western European countries like the UK, France and Germany, but we still see many more opportunities in the Scandinavian countries, in Portugal, Spain and Turkey,"" Cao says. Cao says his team would also like to broaden its services for corporate clients, and in particular supply ICT (integration communication technology) systems to Chinese companies coming to the UK and Europe. ICT systems refer to a package of telecommunications services that satisfy a Chinese company's needs in a comprehensive way. ""In addition, we would like to explore opportunities to provide cloud and smart cities technologies. For example, a lot of cloud technology may encounter firewall challenges in China, and we could contribute toward overcoming these technical barriers,"" says Cao. His team is already exploring cloud technology opportunities in partnership with Alibaba Cloud, Google, Amazon and Microsoft. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 12/16/2016 page30)", -552,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685677.htm,Wanda chief: China must create channels for culture export,,"Creating communication channels and famous brands are two key factors that will help Chinese culture to be better understood by the rest of the world, says China's richest businessman, Wang Jianlin, chairman of Dalian Wanda Group. Wang says China's movie industry, television and print media all have a shortage of delivery channels for communicating with the overseas market and making themselves understood. He spoke during the 2016 China Entrepreneur Summit, hosted by China Entrepreneur magazine earlier in December. ""It is just as if you want to drive, you need first to build highways,"" he says. ""If you want the outside world to understand more about Chinese culture, you need to build the communicating channels first to send the cultural products overseas. "" Wanda has been aggressively seeking acquisitions and partnerships with Hollywood studios in the past few years, and its overseas business has been focusing mainly on the cultural industry. It already owns AMC Theaters, and it purchased Legendary Entertainment for $3.5 billion (3.2 billion euros; 2.7 billion) early this year. Wang expanded on the movie industry example, noting that there are a large number of movie companies in the world. In the US market there are more than 3,000 independent film production companies, but only six of them have global distribution channels and well-known brands. Does the ability of China's movies to go overseas depend on the channels of these six companies? Wang's answer is no. China needs to build its own channels, he says. The Chinese movie box office has doubled where it was three years ago in the domestic market, but in overseas markets it has been rare to see an up-tick over the past few years, he says. He attributes it to a lack of global distribution channels. But good channels are not enough, he says. China needs to cultivate big leading companies in the cultural industry that have brands that are famous globally, such as Disneyland. ""The US is not only strong economically, but also culturally. Its biggest export is culture,"" he says. ""Cultural industry output accounts for about 24 percent of the US GDP."" In China, the cultural industry's output accounted for only about 4 percent of GDP last year, according to the National Bureau of Statistics. Wang says that at present China is still far away from being able to put a label on its culture, and it will take a long time before people understand that. The sizes of Chinese companies are quite small, and there are no big companies with a famous name. ""If China could cultivate about 10 cultural companies with annual income of tens of billions dollars, maybe our culture would play a leading role in world cultural exchanges,"" he says. He adds that Chinese companies like Wanda could be a primary force in taking Chinese culture global. Wang says the central government should be more supportive of the cultural industry, as in China most are small and find it difficult to compete with global companies. Wang says he conducted some research in France because he was confused why French movies could be influential in the world - for example, its Cannes International Film Festival is both famous and prestigious worldwide. ""I came to understand that this is because the French realized a long time ago that if they don't support French movies, then their market will be occupied by English movies. So when they shoot a French movie, the government provides a lot of subsidiaries,"" he says. chenyingqun@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page26)", -553,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685676.htm,"Gasoline, diesel prices rise",,"Increase was triggered by output cuts announced by OPEC and other oil-producing countries China just saw its biggest gasoline and diesel price increase in the past four years, with prices driven up by the output cuts of OPEC and other producers. Gasoline and diesel prices were hiked by 435 yuan ($63; 60 euros; 50) and 420 yuan per metric ton, respectively, according to an announcement by the National Development and Reform Commission on Dec 14. It was the 24th price adjustment of this year. National average retail prices rose by 0.32 yuan (for 90-octane gasoline) and 0.36 yuan (for diesel) per liter. The prices have been fluctuating around 5 yuan per liter since the beginning of this year. For a car with a 50-liter fuel tank, it will cost another 16-20 yuan to get a full tank. This is the ninth fuel price hike in China so far this year. Last week, OPEC and 11 non-OPEC countries, including Russia, agreed to cut 1.8 million barrels of crude oil output per day within six months, starting from January. The output curb has pushed up international oil prices. As of Dec 13, the WTI crude price increased by $1.33 per barrel to $52.83 per barrel, compared with Nov 30 when OPEC announced the output cut. The price of Brent crude increased by $1.36 per barrel to $55.69 per barrel. Both have reached their highest level so far this year. Li Li, an analyst with ICIS China, says that global oil prices are unlikely to surpass $60 per barrel in the short run. ""International oil prices are expected to fluctuate between $55 and $60 per barrel. Output in China is not expected to increase much because the capacity that has been shut down is mostly outdated and from small facilities. The general expectation is that oil prices are not going to surge. The effect on the consumer price index is also limited,"" Li says. The last major price hike was in October, with an increase of 340 yuan and 355 yuan per ton for gasoline and diesel, also driven by the output limitation announced by OPEC at the end of September. ""OPEC has achieved its goal of an oil price hike by shedding some market share. This has also created good opportunities for the US oil industry to recover. Moreover, Rex Tillerson, the chief executive officer of ExxonMobil Corp, has just been appointed as the next US secretary of state, which will add impetus to the country's oil industry,"" says Li. Zou Yanan, an analyst with SCI International, says that retailers in central, southwestern and northwestern parts of China have been limiting sales due to the tight supply of gasoline and diesel. yangziman@chinadaily.com.cn - A worker helps refuel a car at a gas station in Nanjing, Jiangsu province, on Dec 14. Qu Xing / For China Daily (China Daily European Weekly 12/16/2016 page25)", -554,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685675.htm,Luxury homes get smaller as property prices go up,,"A big trend toward smaller things is well underway in Shanghai's luxury real estate market. Stratospheric housing prices in the metropolis are forcing developers to downsize high-end properties to make them more affordable. ""Shanghai's luxury real estate market today is replicating the story of Hong Kong,"" says the Shanghai office of Hong Kong-listed China Overseas Land and Investment Ltd. ""Buyers are accepting the idea that luxury homes can have a floor space of 100 square meters, a frustrating reality that Hong Kong people have long lived with."" - Smaller luxury homes could become a trend in Shanghai. Xu Haifeng / For China Daily Sky-high home prices are pressing builders in Shanghai to redefine just how big a luxury property should be. The average price of a 90-square-meter home is about 25 times average household income. More than two years ago, luxury homes with a floor area ranging from 250 to 400 square meters were commonplace for the company in Shanghai. However, with housing fever showing no sign of cooling down over the past two years, the state-owned developer has been compelled to control selling prices by trimming sizes to 200-210 or 130-140 square meters. As of November, the average price of flats in Shanghai had reached 50,000 yuan ($7,278; 6,885 euros; 5,785) per square meter, while houses priced at no more than 100,000 yuan per square meter can hardly be labeled as luxury. Upgraders who are in a hurry to replace their small apartments with better accommodation, have been the mainstay of purchasers. The hard fact is that the seemingly endless escalation of Shanghai's home costs is lowering people's expectations for living space. A batch of luxury flats in downtown Shanghai, 100 square meters in size and valued at 10 million yuan each, has proven to be highly sought-after. China Overseas says smaller luxury homes could well be a long-term trend, as Shanghai is poised to emerge as a mega city in the foreseeable future, dwarfing its peers like New York, London and Tokyo, both in terms of city size and housing prices. ""There is a big chance for overall home prices in Shanghai to surpass those of Hong Kong. So it would be safe to say that house-buying costs in Shanghai will see room to climb."" Although policymakers in the world's second-largest economy are grappling to cool the red-hot real estate market in first-tier cities, the developer says the flurry of cooling measures is weeding out unregulated, highly indebted properties, rather than dealing a blow to normal demand. This has made the company reiterate its confidence in the coastal city's property market. Demand on a nationwide level remains robust, which underlines price sustainability, four Harvard academics wrote in a working paper last month. This is in part because buyers are not highly indebted, tend to invest for the long term and are unlikely to sell houses even if prices drop. luoweiteng@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page28)", -555,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685674.htm,Real estate prices settling into stable pattern,,"To buy or not to buy - that is the question for Hu Chengru, 39, a prospective homebuyer in Shanghai. Hu had realized some 3.6 million yuan ($529,000; 503,000 euros; 421,000) from the sale of her old apartment earlier this year. Now, she would like to buy a more spacious flat for ""upgrading"" the quality of her life. But she is still waiting for the right time to buy. ""Every day, I ask whoever I think may have some knowledge about the real estate market: 'Will home prices drop in Shanghai?' ""Their answers have ranged from 'Definitely not' two months ago to the currently 'Perhaps',"" Hu says. In key cities like Beijing and Shanghai, home prices are less likely to drop significantly, but the pace of the rise has slowed, analysts say. ""One major reason there's little chance of a sharp fall in home prices in key cities is the great demand as reflected by demographic data,"" says Liu Ligang, an economist at Citibank China. ""Some 70 million residents are entering the age of getting married, having children or having a second child, and urbanization-related migrants also need housing in cities. Without new developments, some cities may exhaust their current inventories in just nine months. Supply of land is limited. Considering all these factors, home prices in key cities are not likely to drop significantly."" The average price of apartments may not drop significantly but transaction volume may shrink to 40 percent in the first half of 2017, in immediate response to measures against speculative buying, says Zhang Yu, an analyst at investment banker CICC Ltd. ""In first- and second-tier cities, demand from speculators has been curbed after policy tightening, so transaction volume will shrink, but the average price won't decline because land prices are high and demand is still solid and increasing, while supply is short,"" Zhang wrote in a research note. In third- and lower-tier cities, particularly those neighboring key cities, prices may rise slightly around 10 percent, which would be natural and rational, Zhang says. A research note from Guotai Junan Securities cites financing conditions as a factor for stable growth of the real estate sector. The note further says monetary policies have not been tightened much, which gives the real estate sector spacious room to grow. Also, as a pillar of economic growth, real estate is not likely to face significant downward pressure if the overall economic growth is positive. Economists says that uncertainty remains, including changes to policies, the pace of urbanization and investment growth. Market corrections, if any, will be mild. Wang Tao, an economist with UBS Securities, says policymakers would not like to see a significant decline in the real estate market because that would impact overall economic growth. ""Construction and investment recover mildly and slowly, so even if the real estate market sees pressure, it will not decline as it did two years ago,"" Wang says. (China Daily European Weekly 12/16/2016 page27)", -556,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685673.htm,Chinese overseas investment patterns evolving,,"In contrast to years ago, more outbound investment is flowing into the manufacturing and IT industries, experts told a recent outbound investment forum. From January to October, Chinese companies had a cumulative direct investment of $145.96 billion (137 billion euros; 115.3 billion) overseas, with year-on-year growth of 53.3 percent, according to the latest report provided by China's Ministry of Commerce. According to a report released by the ministry, $17.59 billion of outbound investment was injected into the manufacturing industry in the first half-year of 2016, with year-on-year growth of 245.6 percent. The change of focus comes from the maturing of China's economy, says Luo Xiaojun, co-founder of Morning Whistle, a merger and acquisition consultancy. - Long Yongtu, former vice-minister of commerce, spoke at the forum on Dec 2. Provided to China Daily ""In the early days, China focused more on investing resources to fulfill the needs of manufacturing,"" he says. ""We simply produced and exported to the global market while the advanced technologies were still out there."" As China undergoes economic restructuring, Chinese manufacturers need to update technology and expand their markets. Chinese enterprises prefer to obtain advanced technology and a position in overseas markets through mergers and acquisitions rather than independent research and development, which is costly and time-consuming. From January to September, Chinese enterprises spent $64.44 billion on mergers and acquisitions, $10 billion more than the total amount for last year, according to data provided by the Ministry of Commerce. Manufacturing and information technology are the top two industries, with investment of $16.10 billion and $15.48 billion respectively. Mergers and acquisitions can help companies to obtain technology, patents and talent, and to enter a new market within short time, Yu Weiping, vice-president of CRRC Corp, told the 3rd Conference of China Outbound Forum, held from Dec 2 to 3. Through acquisition, domestic enterprises can also increase their influence by acquiring well-known brands to promote their products and services in both overseas and home markets. ""Overseas acquisition is a way we can narrow the gap between us and the developed countries,"" said Long Yongtu, former vice-minister of the Ministry of Foreign Trade and Economic Cooperation (now called the Ministry of Commerce), at the forum. Private enterprises have done a better job in terms of acquisitions, say experts. According to data from the Center for China Globalization, private enterprises made 290 mergers and acquisitions, accounting for 64 percent of all reported deals. Relative independence gives private capital more flexibility to put its money where it is required. Private enterprises' rapid decision-making allows them to act efficiently, says Qian Jiannong, vice-president of Fosun Group. He also pointed out that if they encounter problems they can change and reform quickly. Unlike state-owned businesses, private ones can use overseas funds and capital to invest in acquisitions. When private enterprises become international companies, the way they use their funds is not restricted by local policies or rules, leaving more space for the companies to invest. ""I feel foreign companies and governments are willing to cooperate with our private enterprises,"" Qian says. ""I believe there are great prospects for private enterprises in the international expansion process in the future."" liuxuan@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page25)", -557,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685672.htm,UnionPay cards expanding globally,,"More countries rush to accept the increasingly popular payment method as they bid to attract more customers One of the largest global bankcard associations, UnionPay, is fast expanding its overseas networks to facilitate convenient payment services for Chinese outbound travelers, with the goal of rivaling Western banking giants Visa and MasterCard. With a network spanning over 2.2 million merchants across 39 European countries, UnionPay's expansion momentum is demonstrated by the high-profile partnerships signed in November with the Czech Republic's largest commercial bank, Ceska Sporitelna, France's Louvre Hotels Group and Portugal's main card processing firm, Unicre. The Unionpay advertisement at Copenhagen Airport in Denmark. Provided to China Daily ""Europe is significant to UnionPay's internationalization strategy. At present, UnionPay's acceptance environment keeps improving both online and offline, and more types of merchants are accepting UnionPay cards, "" says Cai Jianbo, CEO of UnionPay International. Cai adds that the expansion supports increasing international collaboration between China and other countries and regions, as well as the exchange of personnel, by providing users with an improved customer experience and secure, convenient payment services. UnionPay was founded in 2002 with a view toward enabling interbank payment transactions in China. The company began to expand overseas in 2004, which later led to the founding of its subsidiary, UnionPay International. Despite its short history, UnionPay has quickly expanded to now being accepted in 160 countries and regions. It is now the world's third-largest payment network by value of transactions processed, behind only Visa and MasterCard, according to November statistics compiled by the US research service BI Intelligence. Once entering a Western country, UnionPay's acceptance rate grows quickly, and here the statistics speak for themselves. For example, UnionPay's acceptance rate by local merchants is 90 percent in Denmark, 70 percent in Spain, and 60 percent in the Netherlands. Almost all ATMs in Switzerland, Austria and Iceland, and more than 80 percent of local ATMs in Italy, Spain and Greece accept UnionPay cards. One unique advantage for UnionPay is domestic market strength, as UnionPay is currently the only interbank network in Chinese mainland that connects all of the ATMs of all banking companies throughout China. UnionPay's international growth is helped a lot by booming outbound tourist numbers. Chinese outbound tourists exceeded 59 million in the first half of 2016, and China is the largest tourist source for many countries including Thailand, Japan, South Korea, the Maldives, Russia, and the UK. For this reason, overseas retailers keen to attract high spending Chinese tourists have all accepted UnionPay, ranging from London's department store Harrods to Swiss jeweler Beyer, to the British hotel chain IHG. Markus Baumgartner, sales director at Beyer, says working with UnionPay greatly improved Beyer's access to Chinese shoppers, and now 20 to 30 percent of revenue at Beyer's Swiss shops are processed through UnionPay. ""Payments we receive through UnionPay always come quickly and efficiently, and customers using UnionPay cards never experience payment issues. They're a great partner to work with,"" Baumgartner says. Pierre-Frederic Roulot, president of Louvre Hotels Group, says of Chinese tourists: ""We want to provide as much convenience as possible. Benefiting from the strategic cooperation with UnionPay International, we will be able to enhance our service quality and improve payment services for Chinese tourists."" UnionPay cards are now accepted across the group's six major hotel brands, which include 1,100 hotels in 51 countries and regions. At the beginning of next year, UnionPay cards will be accepted by the group's 200 self-operated hotels, and then will be expanded across its 500 franchised hotels. One factor behind UnionPay's fast international expansion is its partnerships with Western payment systems, so UnionPay can leverage those partners' existing networks. Portugal's Unicre is a good example, as the partnership allowed UnionPay's member cards to be accepted by all ATMs in the country. ""Accepting UnionPay helps merchants attract customers, and thus realize an all-win result,"" says Luis Flores, CEO of Unicre. Another example is Six Payment Services of Switzerland, which began processing UnionPay transactions in 2006. ""Chinese customers are a very important target group especially for merchants in the tourism and luxury business. We are, therefore, highly interested in enabling smooth payments for UnionPay cardholders at any of our merchants, be it on-site or, in the future, online,"" says Roger Niederer, head of merchant services at Six Payment. Niederer adds that in the future his team also wants to work with UnionPay on ecommerce payments, so UnionPay card holders can shop online or book hotels in Europe. In addition to facilitating easy payments, UnionPay also helped Bank of China with the issuance of the first European travel-oriented card in November, giving high-spending Chinese tourists an easy payment option that can be promoted to more than 100,000 merchants in 32 European countries, riding on a wave of innovative financial solutions targeting Chinese travelers. This new card fits into Bank of China's Travel Mate Credit Card program, which has already issued about 2 million cards targeting Chinese people traveling to countries including South Korea, Japan and the US, all of which have payments facilitated by UnionPay. Xu Luode, executive vice-president of the Bank of China, says the new card is a good solution given the concern that the rate of growth of Chinese shopping in Europe is now slowing, compared with the high growth of previous years. ""We combine premium European merchants and their promotions into our card offerings. So we say to our customers, there are good products and services in Europe; you should come here,"" Xu says. Cai says that his team will work to strengthen technical support for UnionPay users, and help Chinese travelers get better promotional packages in Europe. Brands Bucherer and Beyer are examples of the first batch of retailers to sign up the card with unique promotional offers. Another key discount opportunity UnionPay offered its users is its ""50 Selected Business Districts"" campaign, a package designed for the New Year and the Chinese Spring Festival. Since December, about 1,000 stores in 50 popular business districts worldwide are offering exclusive discounts for UnionPay cardholders. In Europe, participating merchants include Roger & Gallet, Lancel, Le BHV Marais, La Rinascente Duomo, El Corte Ingles, the Style Outlets and nine Value Retail Outlets. The increasing use of renminbi payment for overseas purchases - facilitated by initiatives like the new Bank of China travel card - also fits into the wider trend of RMB internationalization, according to Cui Zhijian, an associate professor of operations management at IE Business School in Spain. ""In the long term, such initiatives will facilitate the internationalization of the renminbi and enhance the position of the Chinese financial industry in the world market,"" Cui says. UnionPay's services are warmly embraced by customers. ""I try to use my UnionPay card whenever I can, instead of a Visa card,"" says Chen Yixin, a Shanghai student who visited the UK for a four-week summer study program in July. ""I've used UnionPay in many tax-free shops in London. It's simple and secure to use,"" Chen says. cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 12/16/2016 page29)", -558,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685671.htm,"What's up with the money, doc?",,"Doctor's wealth disclosure has raised eyebrows - but aren't these lifesavers worth more? Ren Liming is a urologist at the Second People's Hospital in Chengdu, Sichuan province. He was thrust into the limelight when he posted a photo of a down jacket he just bought - with an eye-popping price tag of 10,000 yuan ($1,400; 1,324 euros; 1,112). Some were amazed by his flaunting of personal wealth. They thought people in the healthcare industry should keep a low profile because of the long-standing tension between doctors and patients in China. Many doctors have been accused of taking cash gifts from patients or their families - to the point that they represent a significant part of their income. Admittedly, Ren's expensive jacket, together with the revelation that he makes 1 million yuan a year, raised the suspicion that his lavish lifestyle is built on this so-called gray income. Just as he was supposed to be shedding tears of remorse for his outburst of vanity, Ren came forward and divulged more personal information to a local reporter. He owns three properties and about one-fifth of his annual income - 200,000 yuan - is from his day job at the hospital, and he spends it on clothing alone. He derives other income from online consulting and offline teaching, practicing medicine in other places and making healthcare-related investments. The purpose of ""spilling the beans"", he says, is to instill pride in young professionals who are just entering the business. He says many of his peers in the top echelon make as much as he does, or even more. He also addresses the sensitive topic of ""gray income"", saying that if your legal earnings are high enough, you have no incentive to take bribes. But I suspect that his real motive is to promote his businesses and his personal name. Now that he is the best-known urologist in the city, requests for consultations will go through the roof, I imagine. Which is not wrong - just a bit unconventional. Ren may have been exploiting the nation's hate-the-rich mentality for his own good. China has come full circle from ""To get rich is glorious"" in the 1980s to ""You'd better lie low if you're filthy rich because the whirlwinds of envy will sweep you away"". The internet has magnified the wealth gap, with websites incessantly hyping the lifestyles of the rich and then following up with blanket hatred of that high-profile demographic. In recent years the voice of reason has spoken up, arguing that the key is not how much wealth one has but how that wealth was accumulated, legally, ethically or otherwise. A tricky point of debate is the so-called original sin, which refers to the often less-than-upright way the first pot of gold was made - a sin that's said to tarnish many private entrepreneurs. For years Chen Guangbiao was China's most conspicuous spender. He would stack up a wall of bills and take photos with it. He claimed to be a big philanthropist but has turned out to be a big showman, who used philanthropy as a means to ingratiate himself in circles of power. I'm not discounting the desperate need for vulgarian excess that characterizes the nouveau riche, but when the flaunting gets too tacky it arouses suspicion that there's more than vanity at work. Maybe someone of Guo Meimei's age doesn't think twice before posting expensive purchases made possible by a rich sugar daddy, but a mature entrepreneur would probably resist the temptation unless he or she is totally isolated from the internet culture. Guo almost singlehandedly ruined the reputation of the Red Cross when she gave herself a title affiliated with the organization and posted pictures of luxury items. I don't know if Ren's comment that many of his peers make as much as he does is accurate. A few years ago, I went on a trip to Africa with a dozen healthcare professionals who were offering free medical services for treating cataracts. I learned firsthand that most of them did not make as much as Ren. I did a search and found a 2015 survey on Dxy.cn, a medical information site. It surveyed 30,000 doctors nationwide and concluded that the average annual salary was 77,000 yuan, and 74 percent of the doctors were not satisfied. If this figure is accurate and can be extrapolated to the whole country, it confirms my impression that doctors in China are far from enviable - not only compared with their counterparts in developed countries but with professionals in other Chinese industries such as finance. Considering the higher-than-normal investment in education and training, their incomes can be said to be on the lower end of the social spectrum. The primary reason the incomes of Chinese doctors do not reflect their status or market demand is that the rates for medical services in China are highly regulated. It costs only a couple of yuan to see a doctor, so even if a doctor treats 100 patients a day it does not add up to much. To subsidize the cost of the counseling, hospitals add a heavy markup to prescribed drugs. These practices are rooted in the good intention of offering a nearly free service to everyone, but they have led to less-than-desirable results. For example, some people flock to the best hospitals for something as innocuous as a common cold. Meanwhile, both patients and pharmaceutical sales representatives dangle big bribes in front of doctors, which is the market's way of ""correcting"" the reality of doctors being seriously underpaid. Whenever there is a complaint against the medical profession, people cite United States doctors as role models. But they tend to forget that US doctors are paid 15 times as much. It is pretty hard for anyone to keep up a good attitude when 100 patients are squeezed into one shift. Everyone wants free or nearly free healthcare that is also good quality. Few see the irony in this. A government should help those in need - the poor who cannot afford expensive medical services. But if it makes healthcare affordable by artificially depressing incomes in the profession, it is tantamount to driving away future talent. In that sense, Ren has become a lightning rod, even though his solution may not be applicable across the industry. Contact the writer at raymondzhou@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page22)", -559,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685669.htm,Goodall: Our brains can save us,,"Champion of environment believes intelligence is humans' greatest asset in fighting threat of devastation Bees can use tools. So can birds. Octopuses can slither out of tanks, slink into others to gobble fish and squish back into their own, pulling the lid closed behind them - humans none the wiser, until they review surveillance footage. Clever creatures. Indeed. Goodall looks at rescued chimpanzees in July at Sweetwaters, Kenya's only great-ape sanctuary. Photos Provided to China Daily Primatologist and environmentalist Jane Goodall speaks at the recent Beijing summit of the Roots & Shoots environmental-education program for youth run by her institute. Especially considering that mollusks don't have brains, per se. This, says Jane Goodall, the household-name primatologist who discovered that chimps use tools, makes it an amazing time for humanity's next generation to study animals. And human intelligence can be the instrument by which we blunt ecological devastation, the Briton believes. Goodall realized decades ago, upon observing the apes modifying natural objects to manipulate their environment - for instance, using sticks to extract insects from the earth - that we needed to ""redefine man, redefine tool or include chimpanzees with humans"". So, science did. ""It was very exciting for me because I was the first to learn about chimpanzees,"" she says. But revolutionary discoveries about animal intelligence are generating new paradigms. ""In 1960, if I said to the professors, 'Let's study the intelligence of the octopus', they would have laughed at me and locked me up as an insane person,"" she says. ""Now, there's huge interest because octopuses are incredibly intelligent, and they can solve problems. Crows ... can make tools. They can do things even some primates can't."" But experts for decades believed birds' dissimilar brain structures meant they weren't capable of intelligence, she points out. ""So, it's a very exciting time for young people to go out there and learn about animals."" Bumblebees were recently taught to pull strings to earn a reward. More strikingly, others replicated the procedure after observing it, she points out. Goodall, who made the journey to Tanzania's forests as a young woman without formal training, is celebrated for revolutionizing our understanding of our species' closest kin. But her methods weren't without criticism, especially giving names rather than numbers. Numbers ""make them objects of study rather than living beings"", she says. So, to me it's very, very important, if it's possible, to know them as individuals, to name them and describe them."" They may not be people, yet they have individual personalities. They share emotions like joy and sadness, she discovered. They're capable of empathy. Goodall first documented chimp warfare. ""It's not only learning about the primate but also learning from the primate. There's a difference,"" she explains. ""It's more a humility. I have a lot to learn."" Goodall left the chimpanzees she loved decades ago - to save them. She saw, while flying over Tanzania's Gombe in the early 1990s, that deforestation had shaved surrounding forests bald. That changed everything. She realized: ""You cannot do animal conservation unless you do people conservation."" Protecting nature requires sustainable development that produces solutions for humans who share other species' habitats, she understood. Goodall soon after led the successful movement to reforest the area and improve local residents' living standards. But her battle is global. The 82-year-old environmentalist, anthropologist and United Nations Messenger of Peace spends more than 300 days a year jetting around the world as an advocate. What started as a mission to save the chimpanzees turned into a journey to improve life for all living things. Roots & Shoots, an environmental-education program for youth run by the Jane Goodall Institute, has 150,000 members in 130 countries and regions, and 700 groups on the Chinese mainland. ""My hope for Roots & Shoots is to create a critical mass of young people who understand the importance of the natural world - for humans as well as wildlife - and a group of people who understand that, while we need money to live, it starts to go wrong when we live for money,"" she tells China Daily. ""But it's really young people who understand that economic development at the expense of the environment is a death knell, if it goes on like this, for the children of the future. That's worldwide."" Goodall says she has seen vast changes in Chinese children's mentality since she started coming to the country three decades ago. Adults are following suit. ""China is already beginning to do a lot. In some cases, it's a world leader in things like solar technology,"" Goodall says. ""The big problem in China is air pollution."" She says China has done better than many countries on climate change, especially regarding the Paris Agreement, which it signed. But the world needs more, she believes. ""Some countries are really doing well. And other countries have signed it and are carrying on as usual or even worse - that's not China."" She's impressed by a water-purification system in Sichuan province's capital, Chengdu, that uses gravity to pull water through marshland plants that filter out contaminants. It doubles as a fish habitat. Wetlands as sieves proved a prominent theme among students' displays at the Beijing Roots & Shoots summit. Six primary schools in Jiangsu province's Zhangjiagang distributed hand-drawn postcards of wetlands with handwritten descriptions of what they learned during field research. Dalian Minzu University student Wang Shuaiyu called the event - and meeting Goodall - ""very moving"". ""It's a moment to celebrate all our environmental-protection projects,"" she says. Goodall told the crowd one of her sources of hope is ""our extraordinary brains"". ""It's the explosive development of the human intellect that is the single greatest difference between us and chimpanzees, our closest animal relatives - and all other animals,"" she says. Beijing's air pollution reminds her of London when she was growing up. ""It was the same in New York and Los Angeles. It was when people began to use their brains that we gradually made the difference."" That, she believes, is still happening worldwide. ""You,"" she told the Beijing crowd, ""are my reason for hope."" Contact the writer at erik_nilsson@chinadaily.com.cn ( China Daily European Weekly 12/16/2016 page21)", -560,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685668.htm,"At Taoist resort, peace prevails",,"In Jintan, Jiangsu province, a new tourist attraction looks a bit like Zhejiang's touristy Wuzhen, but with a regal and religious touch It was like time travel, one afternoon in late November, when a group of tourists entered the Oriental Salt Lake Resort being built at the foot of Maoshan mountain, the Taoist holy mountain in Jintan, Jiangsu province. A giant Taoist stone sculpture and a long, rugged stone wall greeted us at the resort. Soft, smooth Taoist music wafted through the air, adding to the atmosphere. We were awestruck as we explored, walking along the resort's stone slab roads. One road gradually led us upward to where we could look down at small lakes and buildings. Yellow lights shone on gates, pavilions, inns and museums, for an ancient look - a magnificent view. Farther away, stretches of dark-green mountains hugged the resort. - Oriental Salt Lake Resort draws visitors with its picturesque landscape, ancient-looking buildings and Taoism-themed activities. Photos Provided to China Daily - A performance at the Wuyang theater, featuring young actors and actresses from China, Japan and South Korea. The area looked in some ways similar to Zhejiang province's tourism hotspot Wuzhen, yet with a regal and religious touch. When completed, the resort will cover an area of 27.8 square kilometers at a cost of nearly 10 billion yuan ($1.45 billion; 1.4 billion euros; 1.15 billion). The first phase - 66.7 hectares - which opened to the public in March, integrates mountains, water, local tea and food resources. The resort has already logged around 1 million visits. ""Visitors who drive their own cars are the biggest group so far,"" says Yang Guozhong, head of the Jintan Tourism Bureau. ""Most of them typically spend two days here, getting in touch with nature and soaking up Taoist culture."" The resort is an hour's drive from Nanjing and two hours from Shanghai. Accommodations is priced from 600 yuan to a little more than 1,200 yuan, including breakfast for two and entrance fees. Here, visitors can practice tai chi, enjoy organic food and take side trips to nearby villages. A museum showcases the history of Taoism over the past 5,000 years. The wall paintings and sculptures carved from wood are very delicate. Walking through the Maoshan mountain area, which forms part of the resort, is like being in a picture. Hotels and inns with gray tiles, white walls and wooden pillars line both sides of the main roads. They are typical of the architecture south of the Yangtze River. There are also waterfalls on the small stone mountains, on top of which lie gorgeous pavilions. Visitor numbers peaked during the summer vacation, when families of three to five members came to visit, says Yang Cuidi, an employee of the resort's Xiangyun Hotel. ""We were fully booked during that time,"" Yang says. Interactive programs are offered to spice up the experience at the hotel. They include dumpling-making, painting, pottery, tea performances, calligraphy, music classes and vegetable planting. My group opted for a night mime at the Wuyang Theater. The hourlong show, starting at 8 pm, is about a young student learning Taoism and kung fu. The show is free for resort guests. It integrates Taoism and hip-pop elements and features young actors and actresses from China, Japan and South Korea. The stage effects and the actors' kung fu skills and synchronization with the music brought the house down. A multiple curtain projection created a 3-D effect, changing from Chinese ink painting to bright and colorful natural scenery. The audience can also get involved in certain sessions, such as jump-rope and qigong, a system of deep breathing exercises. The resort offers other recreational experiences as well. For example, there is a sky cinema, where visitors can watch Pan Gu, a film about the creator of the universe in Chinese mythology, who makes sky and earth out of primal chaos. Rafting is available in Kundi Valley, where visitors experience an ancient village setting with blooming shrubs and stone carvings. Kanshuifa is a themed water zone that invites visitors to ride bicycles and play with squirt guns, while the Lihuo Temple offers ancient totems and fire sacrifice performances. Drum beating and live-action performances are on offer at Zhenleichang. The drum is 3 meters in diameter and weighs 100 kilograms. The drumbeats literally spread to all corners of the site. Duiyanzang has a salt museum where visitors can experience salt-making and see traditional sacrificial dances done with salt. Our group was lucky: It snowed while we were there, which gave the area a white, quiet, holy aura. For someone who wants a change of pace from the city's hustle and bustle, along with a slice of Taoist culture while relaxing with family and friends, this resort is a wonderful option. yangfeiyue@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page20)", -561,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685667.htm,Fanning the flames of obsession,,"The phrases you'll need to tackle a severe case of celebrity worship If you have any interest at all in pop culture, you'll have come across people like this: They are the most loyal champions any celebrity could wish for. They are, of course, the fans. But apart from debating the merits of their idols on social media and injecting billions of yuan into the media industry each year, they are also the fountainhead of a lot of internet slang. The word 粉丝 (fěnsī), literally ""rice noodles"", is the Chinese term for ""fans"" (say it out loud a few times to find out why). These days, there is a new expression - 迷妹 (m��m��i), literally ""obsessed sisters"", and its counterpart, ""obsessed brothers"" (迷弟, m��dì), which are considered more accurate descriptions of the level of these individuals' mania. - Chinese fans welcome Hollywood star Natalie Portman at the Beijing International Film Festival in April. Zhu Xingxin / China Daily To shore up your credibility as an adoring fan, there are certain phrases you have to master in order to lavish praise on your idols, defend them to the hilt and swear eternal loyalty and love. As far as fans are concerned, their idols are perfect. To their admirers, all pop stars are good-looking, have good acting or singing skills, work hard and treat fans well. Complimenting the object of your admiration usually starts with appearance. First, you should learn the word 颜�?(y��nzh��), literally meaning ""face value"". The better-looking someone is, the higher the face value. Here are two phrases that have been around for a while but can be very useful: 颜值爆�?(y��nzh�� bàobiǎo), which means ""the face value has destroyed the charts"", and 颜值逆天 (y��nzh�� nìtiān), meaning ""the face value goes against the laws of nature"". Sometimes you see the four-character phrase 美颜盛世 (měiy��n sh��ngshì), literally meaning ""beautiful face flourishing era"". Don't question the meaning; these are simply four characters that are supposed to make you think of pleasant things, just like the beautiful object of your praise. Even more confusingly, there is ""the spring of the face dog (颜狗的春�?y��ngǒu de chūntiān)"". 颜狗 literally means ""face dog"", a somewhat self-deprecating term to describe fans who only care about a pop star's appearance. So, the logic goes, a face dog's ""spring"" comes when they see many beautiful faces (i.e. they are happy). If the whole cast of the film is studded with handsome mugs, fans will exclaim: ""This movie is totally the spring of face dogs."" You will also frequently see the word �?(kū, cry). In some cases it is not used as a verb but an adverb indicating a description of a high degree. For example, 帅哭 means ""extremely handsome"" or ""so handsome that it makes me cry"". Got that? Now that you've mastered how to fawn over appearances, it's time to comment on the acting: I am overcome by these acting skills. Zh�� yǎnjì wǒ fú! 这演技我服�? I could feel the good acting even on the other side of the screen. G��zhe p��ngmù dōu gǎnshòu dàole yǎnjì! 隔着屏幕都感受到了演技! I couldn't see any of the actor in the character. Too awesome. Zài ju��s�� shēnshang w��nqu��n kànbudào běnr��n de yǐngzi! Tài zàn le! 在角色身上完全看不到本人的影子!太赞了! Or singing: These singing skills have brought me to my knees. Zh�� chànggōng wǒ gěi guì le! 这唱功我给跪了! I've put the song on a loop. Totally can't stop. Yǐ kāiqǐ xúnhu��n bōfàng! Gēnběn t��ng bú xià l��i. 已开启循环播�? 根本停不下来�?Some fans truly like the acting or singing; others just believe that, as a fan, it's their obligation to give positive feedback so their idol can bask in its light. This means, of course, that they are also their idol's staunchest defenders against any negative feedback. To ordinary audiences, the most fanatical admirers of a celebrity are called ""brain-damaged fans (脑残�? nǎoc��n fěn)."" Their favorite shot to fire is the all-purpose line, ""Do you know how hard-working he/she is? (你们知道他多努力�? Nǐmen zhīdào tā yǒu duō nǔlì ma?"" When pop stars are criticized for their lack of skill, mocked for poor taste in fashion, or even get caught breaking the law, their fans will use their hard work as the catch-all defense. But apparently, hard work can't cover everything, especially when the star is involved in serious issues like drugs. In these situations, their loyal 脑残�?(nǎo c��n fěn) will try a different tack - everyone makes mistakes. He's still just a kid. Why can't we give him a second chance? Tā h��i zhǐ shì ge h��izi, wǒmen w��ish��nme bùn��ng zài gěi tā y�� cì jīhuì ne? 他还只是个孩子,我们为什么不能再给他一次机会呢�?The general public doesn't usually respond well to these excuses. On social media, you can see as many declarations of love from fans to celebrities that show just how far the obsession can go. They range from the romantic and touching to the deluded and kind of creepy; on the other hand, they work as a declaration of love for someone in your own life. It was destiny for me to love you. Xǐhuān nǐ shì mìngzhōngzhùdìng. 喜欢你是命中注定�?I could not be a part of your past, but in your future, I'll be accompanying you to the end. Nǐ de guòqù wǒ w��in��ng cānyǔ, nǐ de w��il��i wǒ f��ngp��i dǎodǐ. 你的过去我未能参与,你的未来我奉陪到底�?Courtesy of The World of Chinese, www.theworldofchinese.com The World of Chinese (China Daily European Weekly 12/16/2016 page23)", -562,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685666.htm,"Longest night, tastiest feast",,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong visages of community and culture. The Winter Solstice will soon be upon us on Dec 21 and, to the Chinese, this is both an important solar term as well as a major traditional festival. The longest night in the year also signals that, from there on, the daylight hours will only get lengthier. It signifies an awakening of the earth and the start of the annual rejuvenation, culminating in Spring Festival, about a month away. As far back as 2,500 years ago, during the Spring and Autumn Period (770-476 BC), Chinese astronomers calculated the exact dates of the winter solstices, the first of the solar terms to be so precisely set. - At Winter Solstice, dumplings are a must in northern China, with more meat used and the fillings speckled with finely-diced dried mushrooms or dried baby shrimp. Zou Hong / China Daily To the Chinese, it is yet another sign from heaven to gather together and bond as a family, an occasion that takes more and more effort these days as the urban diaspora spreads. In the lunar-solar calendar, this is the last of three important family festivals, after Spring Festival and Mid-Autumn festival. As in every major celebration, food is central. The southern provinces, less influenced by the conquering Mongolian-Manchurian influences up north, still commemorate the winter solstice in the old ways. Here, the belief is that this winter festival is almost as important as the lunar new year. The essential banquet must be prepared, with dishes of chicken, pork, fish and vegetables. Little glutinous rice balls are always eaten, their name wanzi or tangyuan being homophonic with ""reunion"". There are always regional specialties in a festival where ancestor worship is included in the rituals. Whether it be a private celebration at home or a more elaborate gathering at the village clan hall, food offerings reflect the terroir and culinary culture. In the Chaoshan region of Guangdong province, sugar cane plantations dot the countryside and sugar is an important product. Raw cane sugar is cooked into a thick syrup, which is then spun and pulled into a taffy. The hardening sugar strand is repeatedly worked until it solidifies into slender snowy white tubes that are as light as air. These tangcong, or ""sugar scallions"", are eaten wrapped in a flour crepe and garnished with crushed toasted peanuts. It is a labor-intensive candy that must be offered to the ancestors as a sweet reminder that they are not forgotten. In ancient communities in Fujian and Ningbo, little glutinous rice balls are offered to the gods. Fujian uses sweet potatoes in both the dough and the filling, while the Ningbo version keeps the rice balls plain, but served in a soup flavored by sweet wine lees. Ningbo is famous for its yellow rice wines. Cantonese tangyuan combines the best of both worlds. There are different fillings for the rice balls, including red bean paste, sweetened sesame paste, lotus seed paste and peanut paste. Sometimes, the rice balls are made plain but are colored brightly for an auspicious end to the meal. Also, they are always served in a sweet syrup flavored by ginger to chase away the chills and aid digestion. While winters are less harsh in southern China, the bone-chilling winds of the north demand heartier fare. So in Tengzhou, Shandong province, they celebrate with a steaming pot of mutton soup, a tradition that has prevailed since the Han Dynasty (202 BC-220 AD). According to legend, it was the father of traditional Chinese medicine Zhang Zhongjing who got the people eating mutton. He believed it was just what they needed to warm up the blood after a cold winter, and to this day gifts of mutton are brought to the elders in the family during the winter solstice. In the northern provinces, such as Hebei, Liaoning and even in Beijing, dumplings are eaten, as for almost every other major occasion. Homemade dough is rolled into very thin wrappers for fillings of minced meat and vegetables. Because it is the winter solstice, more meat will be used and the fillings are sometimes speckled with finely diced dried mushrooms or dried baby shrimps. These hearty dumplings are normally just boiled in water, but during the winter solstice, they are served with soup. The soups will be flavored with shredded dried laver sheets and more of the dried baby shrimp or krill, topped by fresh coriander. Whatever food appears on the table, the Winter Solstice is the first sign of cheer after a long gloomy season, and there is a lilt of anticipation in the air, as well as the fragrance of festive dishes. paulined@chinadaily.com.cn Winter Solstice Soup Dumplings Serves 4 80 ready-made dumpling skins 1 beaten egg 500g minced pork 300g shrimp meat 6-8 dried shiitake mushrooms, soaked 2 tablespoons minced water chestnuts 2 tablespoons finely diced carrots I tablespoon cornstarch 1 tablespoon sesame oil 2 tablespoons water Salt and pepper Chicken stock Chinese greens First prepare the filling: Roughly chop the shrimp and add to the minced pork, together with diced carrots and water chestnuts. Remove stems from the soaked mushrooms and dice. Add to mixture. Season with sesame oil, salt and pepper and add cornstarch and water to loosen up the filling. Stir in one direction until the meat mixture binds. Wash the Chinese greens, which can either be Shanghai cabbage, bok choy or green lettuce. Set aside, ready to use. Wrap the dumplings: Place a large spoonful of filling in the center of each dumpling wrapper. Wet the edges with the beaten egg and simply fold over, pressing the edges firmly together and smoothing out any air pockets. Set aside on a lightly floured board until you finish making all the dumplings. Heat up a pot of water and a pot of chicken stock. Cook the dumplings by dropping them 10 at a time into the boiling water. When the dumplings all float to the surface, they are done. Blanch the greens in the chicken stock and place them at the bottom of each soup bowl. Place cooked dumplings on top and ladle hot chicken stock over them. If you like, you can garnish with chopped spring onions, coriander and a drizzle of sesame oil. Reunion Rice Balls 1 small packet glutinous rice flour (225g) Warm water (blood temperature) Food coloring - red, yellow, green 5 cm piece ginger, lightly crushed Rock sugar Place rice flour into a mixing bowl and add enough warm water so the dough comes together. Be careful to add it a little at a time, sprinkling more water if the dough seems stiff. Divide dough into four portions, coloring each portion with red, yellow and green food colors and leaving one portion white. Roll up small teaspoons of dough into little balls. Make a simple syrup with about liter of water and rock sugar to taste, adding the ginger for flavor. Cook the rice balls in boiling water, stirring so they don't stick to the bottom of the pot. When they float, they are ready and can be served with the ginger syrup. Keep the rice balls small so they cook easily. You can also add fillings of crunchy peanut butter or red bean paste but make sure the dough is sealed properly so the filling does not burst during cooking. (China Daily European Weekly 12/16/2016 page18)", -563,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685664.htm,Singing has stayed in tune with the times,,"First they did it in karaoke bars, then they did it in living rooms and now they're doing it in the bedroom. In the early 1990s, karaoke bars began springing up all over China. Before long, for many people, singing became the after-dinner entertainment of choice. Then, with the help of computer programs that could provide anyone with a karaoke DJ, the venue changed. It became possible to organize karaoke parties at home or simply entertain yourself. At the same time, you can fantasize about being a star. In the next wave of change, in the era of the internet - and lately through apps and social networking - software has become much more sophisticated. Thus, a form of leisure that had been enjoyed in public but had retreated to the private realm, reasserted itself in public, thanks to live streaming and the ability to distribute music and engage with audiences. A report by Beijing internet consultancy Analysys suggests that the new lease on life for karaoke could at least partly be attributed to the huge popularity of television talent shows. In fact, some of the companies that develop and distribute mobile karaoke apps have formed alliances with TV producers as they seek to cash in on the popularity of the shows. In the first quarter of this year, more than 57 million mobile karaoke apps had been installed on devices in China, Analysys says, with most users born in the 1990s. Many were from provincial capitals; most were students, freelancers or self-employed; and female users outnumbered males. About 62 percent of the users of the app Changba were female, as were about 60 percent of the users of WeSing, according to analysys. The apps provide a good platform for budding internet celebrities to become better known, Analysys says, and once they are well known enough they can take part in the apps' singing contests or reality shows to become even better known. - Zhang xin, a Changba celebrity singer, performs at a bar. (China Daily European Weekly 12/16/2016 page16)", -564,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685662.htm,"Beijing, Paris agree to enhance pursuit of fugitives",,"Beijing and Paris will strengthen joint investigations of corrupt officials who have fled China, while improving systems for the return of ill-gotten assets illegally transferred to France, a senior anti-graft official from the Ministry of Justice says. Chinese judicial officers and their French counterparts will expand intelligence-sharing and evidence-collecting in major cases, says Zhang Xiaoming, deputy director-general of the Judicial Assistance and Foreign Affairs Department at the Ministry of Justice. They will set up a work team and work closely on investigating, freezing and confiscating illicit money. They also will establish a quick-response procedure to combat cross-border economic crimes such as telecom fraud, he says. Zhang says that during a recent meeting in Beijing, law enforcement officers from both countries exchanged views on tracking down fugitives and returning their ill-gotten money. ""It's more than necessary to share information with our Chinese counterparts in a timely manner and, after obtaining intelligence, such as indications of money laundering or other economic fraud, access our system to continue the investigation,"" says Robert Gelli, head of the Directorate for Criminal Matters and Pardons of the Ministry of Justice of France. In recent years, Western countries, including the United States, Canada and some European countries, have become popular destinations for corrupt officials because an absence of bilateral extradition treaties and differences in legal systems make it harder to secure their return, according to the Ministry of Public Security. Since April 2015, when Interpol issued red notices for the capture of 100 major Chinese corrupt officials, 36 have been returned from more than 16 countries and regions - including two from France - to stand trial, according to the Central Commission for Discipline Inspection. Two of the most-wanted female economic fugitives await extradition from France to face trial, according to the Ministry of Public Security. One of them is Feng Jinfang, a former private company executive; the name of the second has not been disclosed. Both suspects are accused of defrauding investors and have been detained in France. It will be the second time important fugitives from China have been extradited from France since a bilateral extradition treaty took effect in 2015. Zhang acknowledged that, while progress has been made, practical challenges still hinder further judicial cooperation between China and France. Huang Feng, a law professor at Beijing Normal University, says the priority is to ""improve the quality of evidence and offer a complete chain of evidence"" - including proof that assets were raised illegally - to assist France when its assistance is requested. Zhangyan1@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page15)", -565,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685660.htm,Family seeks payout over executed son,,"Parents demand apology and millions in compensation from authorities in bid to recover innocent man's reputation The parents of Nie Shubin, who was executed for rape and murder 21 years ago and pardoned earlier this month, have applied to a court in Hebei province for State compensation of more than 13.9 million yuan ($2 million; 1.9 million euros; 1.59 million) on Dec 14, lawyers of the family announced. Zhang Huanzhi, Nie's mother, accompanied by her lawyers, handed over the application at the Hebei Provincial High People's Court. The total amount of compensation applied for is 13.91 million yuan, of which 12 million is for the psychological damage Nie and his parents suffered over the past two decades, according to the lawyers. - Nie Shubin's family burns the innocent verdict at the grave of Nie Shubin. Chi Tu / For China Daily - Nie Shusheng, father of Nie Shubin, speaks to the press after the pardon. Provided to China Daily ""Nie's freedom was seriously infringed upon as he was wrongly detained for 216 days, and he was then executed, which brought great suffering to him and his parents. According to the State Compensation Law, the family should be given mental compensation,"" says Wang Dianxue, a lawyer from Beijing Jingshi Law Firm. The family also asked for compensation for funeral expenses and fees incurred from their long-term litigation, Wang adds. In addition, judicial bodies found to be guilty of flaws in handling Nie's case are required to send a letter of apology to the parents, and to publish any compensation agreement via the media, which is aimed at recovering Nie's reputation and removing negative effects on his family and society, Wang said. ""The application has been filed by the court,"" he adds. By law, government agencies or officers involved in State compensation should make a decision on compensation within two months of receiving an application. During this period, the departments involved are asked to listen to the applicants and may negotiate the terms and value of compensation, the law states. Zhang Xinnian, another Beijing-based attorney, says the high people's court in Hebei should not only deal with the compensation case in line with the law, but also suggest social welfare organizations provide legal aid for the family. ""After all, money is one element for the parents, but mental support and comfort are also important,"" Zhang says. In addition, it is important to assess the accountability of the judicial officers who were allegedly at fault in dealing with the case, he adds. On Dec 2, Nie, 21, a native of Hebei, was found innocent at the Second Circuit Court of the Supreme People's Court in Shenyang, capital of Liaoning province, on the basis of unclear facts and insufficient evidence, although he had already been executed for the rape and murder of a woman in 1995. Since then, Nie's parents have appealed to governments and courts to clear their son's name. Nie's case came into the public eye again in 2005, when a man named Wang Shujin, also from Hebei, was detained for a separate rape and murder case. During Wang's detention, he confessed to the crimes that cost Nie his life. Judicial bodies in Hebei then began an investigation, with each development in the case making national headlines. In December 2014, the country's top court asked Shandong Provincial High People's Court to conduct an investigation. In June this year, the highest judicial chamber ordered the circuit court to retry the case. caoyin@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page15)", -566,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685659.htm,Chinese math teaching buoys British schools,,"British education officials expect the benefits of the Shanghai Mastery model for teaching and learning mathematics to reach about half the primary schools in the United Kingdom as a result of an exchange program currently underway. In the third round of the program, launched more than two years ago, around 30 math teachers from Shanghai did a two-week stint in the UK in which they shared their Chinese-style teaching methods at 35 primary schools. In July, the UK government rolled out the Chinese Mastery approach to math instruction at more than 8,000 institutions, using funding of up to 41 million ($51.6 million; 48.9 million euros) over four years to improve British students' performance. Clare Fowler, director of math education policy for England at the UK Department for Education, says teaching methods for math in UK schools have changed a great deal. The exchange program between China and the UK started in September 2014, when 71 British math teachers went to Shanghai to spend time with their exchange partners at high-performing schools and colleges. Between November 2014 and March 2015, about 120 mathematics teachers from China taught at more than 200 schools in the UK, and almost 1,000 British teachers listened to the classes taught by their Shanghai counterparts, according to the Chinese Embassy education section. ""We are developing a deep understanding of the teaching of mathematics in China and what makes it so effective,"" says Debbie Morgan, director for primary schools at the National Centre for Excellence in the Teaching of Mathematics. ""This deep understanding is important if we are going to adopt the strategies in an attempt to improve mathematics teaching in England."" In November, an independent study by the University of Oxford said students taught using the traditional Asian ""Mastery"" methods do ""significantly better"". It was the first study of its kind confirming that children perform at levels far ahead of their peers after learning math through Chinese-style teaching methods. The effect may take some time to appear on a broader scale, though. Recent reports have shown few overall signs of improvement. They say this demonstrates the need to introduce the Chinese system at an early age. wangmengjie@mail.chinadailyhk.com (China Daily European Weekly 12/16/2016 page14)", -567,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685658.htm,China to integrate its data resources,,"Move expected to boost efficiency, expand market opportunities The central government will promote the sharing of data to build an integrated, connected and secure system for the nation, a move that experts believe will boost efficiency and expand market opportunities. The initiative was included in the Guideline on State Informatization for the 13th Five-Year Plan (2016-20), which was approved at a State Council executive meeting presided over by Premier Li Keqiang on Dec 7. According to a statement released after the meeting, barriers to sharing information will be overcome to establish an integrated, connected and secure system for the nation's data resources by interconnecting information systems between different government departments and accelerating the process of providing public access to data. Under the four major targets set in the guideline, China will expand its broadband reach in rural areas, while further reducing costs; build a system to monitor information security; and promote 12 priority projects, including 5th-generation telecommunication technologies. Meanwhile, online scammers will be the focus of a severe crackdown and sterner punishment, as the guideline also aims at containing such frauds. Informatization and digitalization have great significance in innovation and to the national Made in China 2025 strategy, and can improve people's livelihoods, the statement said. The guideline showed the country's determination to overcome the barriers and closely connect core data, says Ning Jiajun, a consultant for the Advisory Committee for State Informatization. He adds that this will probably speed up the informatization process. At present, most of the core data is being controlled by key government departments, which has created ""artificial walls and isolated islands"" to obstruct distribution and sharing of data, says Ning. Zhang Lin is a 22-year-old senior student majoring in public management in Beijing. He complained of the difficulty of finding government records to complete his graduation thesis on urban affordable housing. ""In my first proposal, I wanted to write on the costs and benefits of providing low-income people with affordable apartments. However, I couldn't find any public information on the costs. Then I had to adjust to the status quo of urban affordable housing, which my instructor thought was too general,"" Zhang says. ""But that's the only part of my specialized area could find specific information and data to support my thesis. My friend found all the records needed for his thesis for his master's degree in New York, 90 percent of which was available online or at the library."" As a country undergoing rapid development in internet technology, China is encouraging the integration of the internet with other industries, such as traditional manufacturing and agriculture. But huge amounts of data, which are being generated to help sellers find market opportunities, are still hidden from most people. Data sharing has also been a major concern for Li Keqiang. At the opening ceremony of the Big Data Summit in May in Guiyang, Guizhou province, Li said the government holds 80 percent of the data and information generated in the nation and will publicize more, except that which is related to national security, commercial secrets and privacy. By doing this, the government can create a market of fair competition while integrating with the internet and big data to boost public services, he said. The State Council, China's Cabinet, has held several executive meetings since November 2015 on integrating the internet with government services, aiming to simplify the process of approving applications by relocating the provision of services away from physical government buildings to online channels. Electronic data and broadband service can be thought of as the infrastructure for online business and services, says Zhou Hanhua, a researcher on governmental information at the Chinese Academy of Social Sciences. ""Some of us have entered the age of information but some have not, due to lack of a sharing mechanism between different departments,"" Zhou says. ""That should be altered to boost efficiency and make it simple for the public to get their applications done."" huyongqi@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page14)", -568,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685657.htm,Is this the road to a more stable future?,,"In September 2013, President Xi Jinping formally announced the Silk Road Economic Belt in Kazakhstan, and in February 2014 he expanded the program to include maritime trade. The Belt and Road Initiative, an combination of overland and a maritime corridors, will connect eastern China to western Europe and provide a platform that will stimulate economic, trade and cultural interactions. The Asian Infrastructure Investment Bank, launched in Beijing in June 2015, is another important initiative aimed at reinforcing China's role in global affairs. The Belt and Road Initiative and AIIB constitute two ambitious initiatives, both of which play an important role in China's foreign policy strategy for economic, trade and strategic outreach to China's partners. In our interconnected world, the links between economics, trade and security are extremely important. The economic and trade logic is expected to help overcome obstacles and hesitations linked to security that have stalled similar projects before. Trade and economics increase the level of transactions between countries, enhance familiarity between people and discourage conflict. It is important to note that China's strategy of security and economics creates a dense network of relations that bring assurances of security which will particularly increase influence in Asia and Europe. Economic development may address the roots of conflict in Pakistan, Afghanistan and China's western frontiers. Unlike most other countries, China has substantial foreign reserves for large-scale projects. This enables it to ensure that countries along the corridors share an interest in participating in the ownership of the initiative, since their companies will participate in the building of the infrastructure. Many countries along the Belt and Road lack the resources to set up competing business and trade networks, so they have no choice but to participate in those sectors that might improve their connectivity to major markets and resource supplies. The Belt and Road Initiative has been welcomed by more than 60 countries, and is of particular interest to Pakistan and India. The China-Pakistan corridor is important because the harbor of Gwadar is one of the points where overland and maritime routes intersect. The Bangladesh-China-India-Myanmar economic corridor connecting Yunnan in southern China with Myanmar, Bangladesh and eastern India is of importance to India. With regard to other geopolitical concerns it remains to be seen how much the initiative will converge or compete with Russia's Euroasian Economic Union initiative. The EU matters for the Belt and Road Initiative, and the Belt and Road Initiative matters to the EU. The European dimension of the project is an integral element of the initiative. During the June 2015 EU-China Summit, both parties decided to build synergies between the Belt and Road Initiative and European Commission President Jean-Claude Juncker's investment plan, and to actively explore business and investment opportunities. There are carefully selected nodal points along the land corridor and transit and terminal points along the maritime corridor in Europe. The EU has demonstrated that it is willing to go beyond short-term economic gains to attract China's direct investment and play an important role in turning the Belt and Road Initiative into reality. The European Investment Bank has set up a group comprising the initiative, the European Commission and the European Investment Bank to coordinate and help accelerate the implementation of projects. China is also using Juncker's investment plan to boost involvement in Europe. Greece has been placed on the map as the end point of the maritime corridor. Cosco operates two container terminals and manages 67 percent of the port of Piraeus, which now serves as a major logistics hub for China's trade with Europe. Cosco took over TrainOSE, the Greek railway company that already signed agreements for freight transport to Central and Northern Europe with Hewlett Packard, Sony, Huawei and ZTE. A high-speed rail corridor is envisioned to connect the port of Piraeus with Northern and Central Europe. All these agreements will reinforce Cosco's cooperation with the largely global Greek shipping industry. It should be noted that most ships for the Greek merchant fleet are built in China. Another terminus on the maritime belt is the port of Rotterdam, an important cargo hub for Europe where land and maritime corridors come together. Hungary is also a key logistical hub on the trans-Siberian link, which serves as a distribution point for Chinese exports to Europe. In addition to physical infrastructure, China wishes to rely on Europe for the financial integration needed for effective implementation. The EU's contribution is needed for a sophisticated financial network to underpin the physical infrastructure that will bind Europe and Asia together. As of the end of 2015, more than 1,400 contracts were announced for infrastructure and other projects alongside Belt and Road areas. There are ongoing discussions at bilateral, multilateral and regional levels on how to accelerate the implementation of the Belt and Road Initiative through concrete projects. In 1993 the EU launched the Transport Corridor Europe Caucasus Asia, a project similar to the China's initiative. EU technical assistance has been used to develop a transport corridor on an East-West axis from Europe across the Black Sea, through the Caucasus and the Caspian Sea to Central Asia. Ongoing projects cover transport and network operability, logistics and transport safety and security. In a nutshell, the Belt and Road Initiative, with its continental and maritime dimensions, will enable China to assume its responsibilities on the world stage more fully as a global power. The initiative could have an important impact on China's domestic economy through export of its excess steel, cement and aluminium. In addition to the economic/trade objectives the Belt and Road has a security dimension, especially where energy is concerned. Although it offers opportunities to boost trade and investment in the regions it covers, it also presents challenges due to uncertain political and regulatory conditions. The project passes through conflict-ridden geographical areas and countries with weak administrative structures. For many countries along the Belt and Road Initiative, transparency, accountability and good governance are not priorities. Their poor credibility regarding security, government effectiveness, tax policies and low standards of local infrastructure, may hinder China's plans for effective implementation of the project. The critical challenge is to turn good intentions in agreements reached at the top tier of government, into real cooperation at the local level where implementation usually takes place. China hopes that the economic development along the corridor will also help reduce tensions between the various Muslim minorities and the rest of the Chinese population. There is no doubt that through the Belt and Road, China is defining a broad geopolitical approach for future investment and trade that will affect the selection of future infrastructure projects. China's important involvement in the development of global supply chains may provide the impetus for new regional frameworks and rules. It remains to be seen to what extent the Belt and Road Initiative's regional impact will lead to new rules of global governance now that multilateral efforts at the World Trade Organization and other United Nations multilateral forums have been stalled. The author, former counselor at the European Commission, is currently working as a consultant in international economic and political negotiations. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page12)", -569,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685656.htm,China edging more into tech value chain,,"A small number of companies have become successful global brands without control of supply and assembly of key components The global value chain of the information and communications technology sector has undergone considerable evolution in recent decades, with China's participation growing in significance. Although the most innovative aspects associated with shaping the trajectory of internet-related activities continue to be dominated by Western technology companies, the center of gravity of most of the manufacturing and assembly work of key products and devices has shifted to Asia, with China playing an increasingly important role in production. China's role, however, continues to be a relatively subordinate one. Having failed to achieve significant technology transfer from foreign companies in China through insisting on the establishment of joint ventures with Chinese companies, state policy more recently has focused on the promotion of indigenous innovation, while using its rapidly growing market as a leverage for its relationship with foreign investors. The challenge for Chinese policymakers is to find the right balance between China's ongoing dependence on foreign technology and the collaborative role it needs to develop with major technology companies in its deepening involvement in the global value chain. In pushing for technical standards based on indigenous innovation, China faces demands for compliance with international norms both from abroad and from within the country, while attempting to achieve a certain level of autonomy for the development of Chinese firms. In a recently published paper, our analysis illustrates how Western companies, together with companies from Japan, South Korea and Taiwan continue to dominate the upper reaches of the ICT value chain and, despite locating much of their production activity in Chinese mainland, have succeeded in avoiding any major leakage of intellectual property to competitors. Although the technological trajectory of the ICT global value chain continues to be controlled by these companies, the significant shift in ICT production to the Chinese mainland raises questions about the future evolution of the value chain, and whether a tipping point has been reached in relation to China's possible indispensable role in its development. Among these implications is the extent to which major global technology companies can exploit the comparative advantages of China while continuing to ensure its subordinate role in the global value chain. While some commentators on the relationship between the Chinese state and foreign investors tend to emphasize the obvious tensions that can arise in the bargaining process, our data analysis, including company interviews, suggests a more nuanced and complex relationship. Analysis of trade data relating to the most significant importing and exporting ICT companies in China between 2001 and 2012 provides useful insights into both the evolution of China's role in the value chain, and the role played by mainland companies. In addition to significant growth in the volume of ICT activity during this period, there has been an important shift by foreign companies from using China primarily as a low-cost export platform to an increased focus on China as a rapidly growing market for ICT products and services. China's increased role in the ICT value chain has been closely related to the growth in outsourcing and offshoring of ICT production, assembly and testing by major global technology companies to the Chinese mainland. To some extent, the main beneficiaries of this enormous shift in the center of gravity of ICT production have been Taiwan companies, Foxconn in particular, which by far is the world leader in contract manufacturing on behalf of global technology companies. These original design manufacturing companies, however, operate under a regime of very tight control of their major clients, who also ensure that profit margins are razor thin. Foxconn's rise during this period has been particularly associated with Apple's business model of outsourcing 100 percent of its production to China, while ensuring no leakage of intellectual property through stringently controlling its contract manufacturers and supplier companies. Because of the importance of intellectual property and innovation in controlling the technological trajectory of the ICT sector, the role played by high value added component companies in areas like semiconductors and hard disk drives, and more recently applications processors for mobile devices, is crucial. Our data reveal that, apart from the dominant role of companies in South Korea and Taiwan in the thin-film-transistor liquid-crystal display (TFT-LCD) display area, Western companies continue to play an important role as component suppliers, with Samsung being both a significant brand company as well as a major supplier. Apart from Foxconn in the original design manufacturing sector, Samsung, with its rather exceptional in-house production model, is the other company that dominates the trade data across the whole spectrum of activity. The lack of technological progress to date by Chinese mainland companies in generating significant inputs from indigenous innovation is obvious. Some commentators claim that policymakers have begun to appreciate the limits of a growth path driven by policy-induced high-tech exports. Despite a poor performance in achieving any significant control in either ICT assembly or in the supply of key components, a small number of Chinese companies have become highly successful global brands. While questions continue to be raised about the extent of state regulation of China's domestic market, and bearing in mind their reliance to some extent on the capabilities of foreign suppliers, the significant progress made by these Chinese brands should be acknowledged. Our data indicate that, over time, these companies have succeeded in dislodging significant Western companies that were initially highly successful from the lists of top ICT traders in China. The considerable strides made by these companies, which is reflected in their ability to compete globally, is further attested to by our company management interviews. But rather than falling into a simplistic binary model of foreign and mainland companies, both our data and company interviews suggest a more nuanced picture of significant interconnections between many types of companies through client relationships, joint ventures, and mergers and acquisitions. To some extent, the success of Chinese brands is exaggerated by the invisibility of major global brands such as Apple, whose production is masked by original design manufacturing company trade. The success of these Chinese brands, however, raises interesting questions about the ability of indigenous companies in an exceptionally fast-growing market of enormous scale, to displace formerly successful brands in what is, for them, a very different marketplace. With the continuing shifts in the ICT global value chain in an era of mobile devices, cloud computing and expanding ecommerce, the potential for Chinese companies for creating more intense competition for established global corporations is considerable. Whether they can gain greater market penetration globally without the necessary progress in vital areas of intellectual property remains to be seen. Yutao Sun is an associate professor at Faculty of Management and Economics, Dalian University of Technology. Seamus Grimes is emeritus professor at Whitaker Institute, National University of Ireland, Galway. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page10)", -570,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685655.htm,Financial creativity crucial for East Africa,,"East Africa should continuously cooperate with Developmental Financial Institutes, known as DFIs, to deal with the peak period of debt repayment. Countries in the region are dealing with a growing debt burden and will gradually reach the peak period for repayment, due to the major commitment to infrastructure financed by the DFIs. One solution is for countries to cooperate with DFIs continuously to deal with the repayment issue and convert the burden into an opportunity for growth. Benefiting from infusions of external capital, East African countries have seen unprecedented levels of stable economic growth over the last decade. However, as a consequence, the peak period for debt repayment is also arriving. For example, Kenya's treasury will have to deploy approximately 40 percent of its tax revenues just to service loans next year. Should we view the side-effects of progress in loans as a sign to cut down engagement with DFIs? The answer is definitely no. In fact, the current debt situation has already benefited from low interest rates and well-designed repayment models provided by DFIs. It's hard to imagine the completion of the expensive Mombasa-Nairobi Standard Gauge Railway without the support of concessional loans from the Export-Import Bank of China. The modern railway has become a perfect model to leverage the low-cost overseas capital to accelerate domestic construction and foster tremendous opportunities for Kenya's national strategy and regional development. Meanwhile, DFI loans are often designed to facilitate repayment with grace periods. Accordingly, Tanzania was firmly rated by the IMF as a state with low risk of external debt distress, despite having a high external debt rate of roughly 70 percent. One fact contributing to this is that roughly all the external debt of Tanzania remains under DFIs, especially multilateral DFIs, such as the International Developments Association and the African Development Bank. For example, DFI financing assists Tanzania considerably in stabilizing its repayment burden and debt distress. With the help of external DFI financing, other often-neglected spillover effects help to foster socioeconomic development. Although there is a seemingly inappropriate budget allocation deficiency for education and health in African countries, the robust economic growth and technology transfer will gradually and effectively compensate for social welfare. This so-called share squeezing is temporary, and could be the beginning of new advantages, as some Asian countries experienced after World War II. Technology transfer, an increasingly vital principle in any project in Africa, will also partially compensate for insufficient investment in education. There is even an argument that the completion of a large-scale project is a graduation ceremony for the local workers involved. However, it is difficult for government leaders to wait for the spillover effects to take effect. That requires time. Currently, Tanzania's leadership is launching unprecedented campaign to enhance the country's competitive capacity in the form of tax reform. The government plans to collect taxes evaded or underpaid going back 20 years. Other than political factors, the tax revenue to be collected is expected to relieve Tanzania's repayment burden and dependence on development aid, especially for those with intervention suspicions. The necessity to correct tax evasion should never be denied, but time is needed to examine the results of this ambitious and dangerous campaign. It's obvious that this controversial operation has already offset the state's potential spillover effects. The business environment has been damaged, since the Tanzania Revenue Authority is being urged to collect a fixed amount in a limited time, which leads to unreasonable fines without transparency. Large numbers of entrepreneurs, who are not only the pillar of support for the state in this difficult period but also the tunnel for spillover effects, have been driven away or even into bankruptcy. Moreover, the government's attitude toward developmental financial engagement should never be packed in the form of nationalism, no matter whether or not the engagement has strings attached. A complete deviation away from external financing will put the country into worse financial condition than ever. The answer to financial difficulties lies in continuous and deeper cooperation with DFIs, rather than completely pulling away. Further cooperation is the pivot of reversing the vicious cycle of the debt burden. Creative use of DFIs, such as introducing Public and Private Partnerships, will not only leverage more smart capital and relieve sovereign guarantees, but also improve the state's financial management skills. Financial creativity brings more learning opportunities to technocrats than simple lending. New skills will, over time, enhance the state's financial condition from both sides. The author is a master's candidate at SciencesPo, Paris. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page13)", -571,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685654.htm,Trump may find tough sledding ahead,,"Any country attempting to run a closed-door market parallel to an open global one will suffer by losing its competitiveness Some people have begun comparing Donald Trump with Ronald Reagan. Under the Reagan administration, the US economy underwent remarkable growth, as did the US dollar (against other currencies) and the US stock market. For Trump himself, this is of course what he would like to achieve, if only he can. There are also observers saying Trump's chances are slim on various grounds - such as too few people to hire (for a plan of 25 million new jobs), delayed results (from infrastructure investment), and meager domestic saving. These are all arguments on the technical level. More fundamentally, however, the questions that one has to ask are: What industries will the new policies benefit? And what consumers will those industries serve? Doubtless, low interest rates and tax cuts will conspire to encourage companies to invest more and produce more. But in a situation many investors are calling asset famine, what industries are worth so much new investment? Or, where can investors find good returns of their investment? The building of infrastructure is an answer that one can easily think of. But no country can fully develop itself by building infrastructure solely. Admittedly, building and renovation of infrastructure can generate a lot of manufacturing jobs. A high-speed rail system needs new rails, engines and new passenger and cargo cars, along with construction of new facilities . But they cannot realize their value unless they eventually win more customers and generate more sales. Hardly any country - and not even the Chinese government, with its not-so-small sector of state-owned enterprises - can realize a profit directly from building infrastructure, which is by definition a public good whose use is open to all. It is only its users who, by lowering cost from their newly gained convenience, can make a good profit. And the most efficient users are usually from the private sector. So infrastructure will have to serve an industrial purpose, to help other industries in their value-added production and services. Maybe, in a more favorable policy environment, some industrial activities, like the making of air-conditioners, can remain in the United States for a few more years. But it is the same kind of manufacturing activities that workers in Mexico can perform. If the United States shuts its door completely to competition at this level, it will take the risk that in a few years other less-protected countries will be able to turn out even better and cheaper air-conditioners for the global market. The logic of globalization cannot be reversed. Part of it is the global market. Any country attempting to run a closed-door market parallel to an open global market is going to suffer in the end by losing its competitiveness almost entirely. This is a lesson that China has learned with so much pain from its past experience with a planned economy. In an open, competitive market economy environment, what a government can do to stimulate growth - including providing direct and indirect incentives - is actually very limited. Government help is usually most effective with an industry in its nascent state that can be nurtured before releasing it to full-scale competition. This being the case, it tends to work better in a more focused way rather than in all industries. It helps to promote growth in tech-heavy industries, and any industries where the way of doing things is likely to be different from the past, such as modernization of farming. And it does not help as much to generate jobs in traditional industries. Right now, the hottest industry is perhaps that of artificial intelligence and robots, which potentially threatens many jobs rather than helping Trump deliver his promise of 25 million new jobs. It certainly does not help the non-college-graduate blue-collar workers keep getting paychecks. For a while, the Trump factor can indeed suck a lot of capital in the world to the US market. But in a few years, whether or not he can impress the investors as a second Reagan depends not on the sheer number of jobs he can protect but on what new industries he can help build that prove competitive in the world. Judging from the American wage level, those industries are bound to be making different things than mass market air-conditioner units or mobile phones that workers in other countries can also make. What are they? The world has yet to find out. The author is editor-at-large of China Daily. Contact the writer atedzhang@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page13)", -572,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685653.htm,Virtual reality will never make you a traveler,,"The best experiences are totally unexpected - and it is important to enjoy them in real life Waiting for a medical appointment, I idly picked up a magazine - the sort I would normally never look at in a month of Sundays - and read an article extolling virtual reality as a way of visiting exotic places. Sorry, but that doesn't work for me. You have to go somewhere to sense a place, to talk to people, to get a feel for it. I've been an inveterate traveler for as long as I can remember, and journalism became the ideal vehicle. Even to this day, I end up somewhere and my first thought is, ""Wow, I'm being paid to do this?"" That was my first question when I landed as an extremely callow correspondent in 1972 at Singapore's old Paya Lebar International Airport, now replaced by the superefficient Changi International. As they cracked open the door of the Malaysia-Singapore Airlines Boeing 707, that never-to-be-forgotten smell of tropical Asia hit me. It was like walking into a warm, soggy sponge. (For aviation buffs, that flight from London, which stopped in Rome, Abu Dhabi and then Singapore, was one of the last by the jointly owned airline. Shortly afterward Malaysian Airline Systems and Singapore Airlines were born.) Relaxing with a very cold Tiger beer next to the pool outside my room that night, I listened to the cicadas chirping away and wondered again: ""I'm being paid to do this?"" So I guess that's when I got hooked, and it's been a great ride that certainly is not over yet. There have been moments, thrilling and surreal, that stick in my mind. There was, for example, my flight from Saigon, as it was then called, to Vientiane, the sleepy capital of Laos where the word for ""tomorrow"" makes the Spanish word ""manana"" sound like a swearword. We trundled along at just over 3,000 meters in a much-abused DC3 of Royal Air Laos until - at a stopover in Savannakhet in southern Laos - a large, beaming Laotian lady plonked herself down in the seat across the aisle. The cabin attendant came up with her baggage and put it in the seat next to her. It was a large, protesting piglet, stoutly wrapped in a rattan basket affair. You couldn't make this up. In Vientiane itself, a fellow correspondent and I, at a loose end one evening, decided to head into town for a drink. Lured by a sign that said ""Draught Guinness"", we went through a barrel-shaped door and stumbled into the Purple Porpoise. Behind the bar stood a one-eyed giant of a man, who greeted us in pure cockney: ""Allo gents, Monty Banks is the name, all the way from Bethnal Green. What's your pleasure?"" I could tell he was a cockney straight away by the way he pronounced his birthplace - ""Befnal Green"". Two satisfying pints later, his story came out. He said he'd been a radio operator with one of the joint US-UK Deer military teams that were parachuted into the region in the dying days of the war against Japan, and he never left. Now he was operating this bar. As the gloom lifted, my colleague and I realiszed we were the only civilians in the room. The rest were all men in their 50s and 60s, wearing white aviator shirts and almost to a man sporting huge, chunky gold bracelets - Air America pilots. Air America was the CIA-sponsored airline that got up to all sorts of devious tricks. But I'll save what happened to us for another day. So you tell me, can you get that sort of experience with virtual reality? No way. China is my next target: I want to tackle the Great Wall, which I missed out on during my last visit, and also take in the Three Gorges and, if I can, Xi'an. China does that to you - you think you're well-traveled until you look at a map. It's huge. Can't wait. Chris Peterson is Managing Editor for China Daily in Europe. Contact him at chris@mail.chinadailyuk.com (China Daily European Weekly 12/16/2016 page11)", -573,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685652.htm,Smog has a silver lining for scientists,,"Understanding what made postwar Great London Smog so deadly could be a welcome step toward new solutions It seems impossible these days to escape the Great London Smog. Not literally, of course. It is now 64 years since the sulferous yellow blight descended on the British capital, blocking the daylight for five days and killing at least 4,000 people before it was carried off by the wind. Thanks to a glossy new must-see TV series, in which London's most notorious pea-souper plays a supporting role, a new generation has now been introduced to an era of fog, austerity and gloom. But more of that later. More important, a team of Chinese, American and British scientists has finally solved the mystery of what turned the 1952 smog into a mass killer. The research, led by Renyi Zhang, a Nanjing-educated atmospheric scientist at Texas A&M University, included data from Beijing and Xi'an, two heavily polluted Chinese cities. It has long been known that the 1952 smog coincided with a period of cold, windless weather that trapped a pall of pollutants, mostly linked to coal burning, above the city. The new findings, published at the end of November in the Proceedings of the National Academy of Sciences, relied on recreating the smog in a lab to determine precisely how sulfur dioxide in the air was turned into deadly sulfuric acid. The scientists found that the main difference between China's pollution and the London smog is that in China much smaller airborne particles are involved. ""In China, sulfur dioxide is mainly emitted by power plants. Nitrogen dioxide is from power plants and automobiles, and ammonia comes from fertilizer use and automobiles,"" Zhang says in a statement. ""Interestingly, while the London fog was highly acidic, contemporary Chinese haze is basically neutral."" He says the new understanding of air chemistry will foster effective regulatory action in China. ""We think we have helped solve the 1952 London fog mystery, and have also given China some ideas on how to improve its air quality,"" Zhang writes. Which brings us to The Crown. It is the latest multipart megaseries from Netflix, tempting viewers with a sometimes rosy vision of the early reign of Queen Elizabeth. Episode 4 has every Londoner, from the newly enthroned monarch to an increasingly senile prime minister Winston Churchill, wrestling with the smog crisis. Churchill had boosted the production of coal. In those postwar years it was virtually the only means of domestic heating for most of the city. In the series, his failure to tackle the long-term pollution problem is shown as threatening his government. Personally, I remember the Great Smog rather fondly. For us kids, unaware that as many as 100,000 people were coughing their way to emergency care, or that as many as 12,000 might eventually die from the effects of the pollution, it was something of an adventure. In those days before health-and-safety consciousness, we were allowed out to see how far we could stretch our fingers before they disappeared into the gloom. Bonfires blazed outside bus stations to guide what were then virtually the only vehicles on the streets. In a sense, the Great Smog marked the end of the wartime era, which had carried on since 1945. Rationing was to last for another two years. Money was still in short supply, as were things to spend it on. Inner London was still scarred with bomb sites. But a corner had been turned. The Great Smog at last prompted some action on urban pollution. By 1956, the first Clean Air Act came into force, and the use of raw coal was eventually banned. Pea-soupers, once an essential prop in literary portrayals of London from Dickens to Conan Doyle, became a distant memory. By chance, I recently met a man who was a producer of The Crown and responsible for its smog sequences. He asked me, as a survivor, how I thought he had done. I told him: ""You could have made it thicker."" The writer is a senior editorial consultant for China Daily UK. ( China Daily European Weekly 12/16/2016 page11)", -574,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685649.htm,Quotable,,"People who experienced wars and had their homes ravaged by enemies know better the value of justice and how precious peace is. We hold the National Memorial Day ceremony not to pass on hatred but to awaken the longing for and adherence to peace."" Zhao Leji, head of the Communist Party of China Central Committee's Organization Department, speaking at the Memorial Hall of the Nanjing Massacre. Zhao said the Chinese people will always remember the victims. ""We urge the new US administration and its leader to fully understand the high sensitivity of the Taiwan question."" Geng Shuang, Foreign Ministry spokesman, speaking on Dec 12 at a news conference. Geng said the one-China policy is the political foundation of the Sino-US relationship and if this foundation is broken, Sino-US cooperation in key areas would have no basis. ""Instead, they should work to find out the root cause of the incident in a timely manner, guide the children involved to face and handle the incident in a correct way and teach them to behave properly to avoid similar situations."" Huang Zifang, a psychologist specializing in children's growth issues, commenting after a mother in Beijing posted a description online of how her 10-year-old son was bullied at Zhongguancun No 2 Primary School, a top school in the city's Haidian district. (China Daily European Weekly 12/16/2016 page2)", -575,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685648.htm,IN BRIEF (Page 2),,"- Veterans and people from many countries, including the United States, France and Japan, gather on Dec 13 to remember the 300,000 victims of the Nanjing Massacre at the Memorial Hall of the Nanjing Massacre. Yang Bo / For China Daily Retail sales growth strongest in a year China's retail sales growth picked up to 10.8 percent year-on-year in November, the highest this year, the National Bureau of Statistics said on Dec 13. In the same month, industrial output rose by 6.2 percent year-on-year, up from 6.1 percent in October. Urban fixed-asset investment growth was 8.3 percent in the first 11 months, unchanged from the January-October period, while private investment growth increased by 3.1 percent in the first 11 months, up from 2.9 percent in the first 10 months. Private investment, which to a large extent indicates the vitality of the corporate sector, and home sales, which is a main driver of growth for China this year, have shown signs of weakening, casting a shadow on the prospects of the Chinese economy next year. Antitrust fine soon to hit US carmaker A penalty for monopolistic behavior will soon be issued against a United States automaker for impeding competition, China's top pricing regulator said. The penalty, against an unnamed company, comes as authorities work to step up antitrust oversight and expand the industries they scrutinize in order to promote fair market competition, according to Zhang Handong, director of the National Development and Reform Commission's price supervision bureau. This is being done while treating foreign and domestic enterprises equally, Zhang said. Talks with Vietnam boost cooperation Chinese and Vietnamese government delegations, led by Chinese Vice-Foreign Minister Liu Zhenmin and Vietnamese Deputy Minister of Foreign Affairs Le Hoai Trung, met on Dec 12 in Beijing for border and maritime boundary negotiations. The two sides agreed to implement cooperative projects on fisheries and on oil and gas exploration in Beibu Bay, and to continue conducting joint patrols by the two navies and coast guards, in order to maintain peace and stability at sea. They also reaffirmed that they will continue to implement the consensus reached by the two countries and steadily push forward border and maritime boundary negotiations. Documentary begins the second season The second season of the documentary series The Tokyo Trials premiered on International Channel Shanghai on Dec 13. To mark 70 years since the commencement of the post-World War II tribunal against 28 military and political leaders of Japan, the Shanghai Media Group News Center produced the documentary with the Tokyo Trial Research Center at Shanghai Jiao Tong University. The second season's three episodes were made because of stronger research and new discoveries, according to Song Jiongming, head of the SMG News Center. Hepatitis C therapy to be improved Several DAA medicines are expected to get approval from the top drug authority and enter the Chinese market early next year, which will bring China's hepatitis C treatment in line with international mainstream practices, according to Wei Lai, president of the Chinese Society of Liver Diseases of the Chinese Medical Association. Currently, most Chinese patients are on injection interferon therapy, which takes longer and may cause serious reactions for some recipients. DAA, by contrast, is taken orally and can usually get rid of the virus and cure the disease in about 12 weeks. Misuse of funds for fighting pollution found In ongoing central inspections in seven provincial-level regions, more than 1,100 officials have been summoned to talk about their performance in environmental protection, with 687 being held accountable, according to a statement released by the Ministry of Environmental Protection on Dec 13. The inspection teams, headed by ministerial-level officials, have exposed and transferred 5,462 cases to the governments they inspected, and 112 people were detained, the statement says. Total fines from polluters have grown to 66 million yuan ($10 million; 9.41 million euros; 7.89 million), of which Guangdong province has been fined the most out of the regions, which also include Beijing, Shanghai and Chongqing municipalities, and the provinces of Hubei, Shaanxi and Gansu. Ethnic regions see economic growth Economic growth in regions inhabited by ethnic groups in China has been faster than the rest of the country in the past few years, but poverty alleviation remains a long-term challenge, according to a report released on Dec 13. The gross domestic product growth rate of the country's five ethnic autonomous regions - Xinjiang Uygur, Tibet, Ningxia Hui, Inner Mongolia and Guangxi Zhuang - and of the three provinces inhabited by many ethnic groups - Yunnan, Guizhou and Qinghai - was above the national average in 2015, which was 6.9 percent. However, the GDP per capita in these areas is still quite low. Telecom satellite system to encircle the globe China Aerospace Science and Technology Corp plans to build a global real-time communications satellite network by 2020, a senior company executive says. Sun Weigang, chief engineer at the state-owned space giant, says the Hongyan satellite system will be composed of 60 small satellites operating in low orbits and 20 ground stations around the world. The system will provide a wide range of civilian services such as ground data collection and exchange, ship identification and tracking, mobile broadcasting as well as navigation signal enhancement, he says. Military cooperation seen as mutual trust-builder Cooperation between Chinese and the Philippines in the defense and security field, if realized, would further develop the relationship as well as boost mutual trust, Chinese observers say. Philippine President Rodrigo Duterte said on Dec 11 that he had decided to accept an arms deal offered by China. Duterte said he has directed Philippine Defense Secretary Delfin Lorenzana to send a general to formally receive guns from Beijing that were offered through what Duterte described as ""a grant payable in 25 years"", according to the Philippine news site Inquirer.net. Xi says law, virtue both crucial to governing Xi Jinping, general secretary of the Communist Party of China Central Committee, underscored governance of the country by both law and virtue, in order to modernize state systems and capabilities. Xi made the remarks at a group study attended by members of the Political Bureau of the CPC Central Committee. The group study, the 37th of its kind, focused on governance by law and virtue through Chinese history. Xi said that ""law is virtue put down in words, and virtue is law borne in people's hearts"", adding that law and virtue are both important in state governance, since both regulate social behavior, adjust social relations and maintain social order. Orbiter to study lightning, pollutants China has launched a new-generation weather satellite on Dec 11 that can improve weather forecasting, as well as help study lightning and air pollutants, including PM2.5. The 5.4-metric-ton Fengyun 4A, developed by the Shanghai Academy of Spaceflight Technology, was launched on Dec 10 atop a Long March 3B carrier rocket from the Xichang Satellite Launch Center in Sichuan province, according to the State Administration of Science, Technology and Industry for National Defense, which is overseeing the satellite project. The country's latest geosynchronous meteorological satellite will gradually replace the Fengyun 2 satellites, the administration said in a statement. Incident with Japan triggers concern China is gravely concerned about Japan's interference with Chinese Air Force planes passing through Miyako Strait, China's Defense Ministry said. It was the second major confrontation between the two countries' air forces this year. The first came in mid-June, when Japanese fighter jets used fire-control radar to target Chinese military planes in the East China Sea, the ministry said in a statement in July. On Dec 17, two Japanese F-15 fighter jets closely harassed and released decoy flares at Chinese Air Force planes that were passing through the Miyako Strait to conduct an exercise in the western Pacific Ocean, Defense Ministry spokesman Yang Yujun said in a news release on Dec 17. Scientists find method to block fearful memories Chinese scientists say they've found a new way to effectively inhibit a person's fear memory arising from traumatic events such as domestic violence, sexual assault and war. Animal testing led by Yu Yongchun, a researcher at Fudan University's Institutes of Brain Science in Shanghai, found that fear can be effectively removed by transplanting a special kind of nerve cell into the brain of an adult mouse. The findings are expected to shine new light on the treatment of severe mental conditions, such as post-traumatic stress disorder, or PTSD. The results were published online recently by Neuron, an influential journal in the field of neuroscience. Helicopters used to monitor traffic Helicopters have been enlisted in Lanzhou, Gansu province, to monitor rush-hour traffic three days a week. Police are hoping the helicopters will help them spot traffic violations and gather evidence. Police choppers will be on duty every Monday morning, Wednesday afternoon and Friday evening for two hours. They are equipped with high-definition cameras and real-time image transfer systems to send images captured from 150 meters away to traffic police headquarters. River chiefs to balance growth, environment The central government will establish a system of chiefs responsible for rivers and lakes nationwide, and covering all waterways by the end of 2018. The chiefs will take full responsibility for the management and protection of the country's water bodies. Heads of provincial-level regions will be general chiefs responsible for all rivers and lakes in the region, while other top officials at the provincial, city, county and township levels will act as chiefs responsible for different parts of the water bodies, according to a document released by the general offices of the Communist Party of China Central Committee and the State Council. Finance sought for radio telescope in Antarctica Chinese astronomers are applying for government funding to begin construction of a radio telescope in Antarctica that could help solve the mysteries behind stars and galaxies. The proposed facility, to be built on a giant ice cap known as Dome A, has been designed to observe in terahertz, a band of electromagnetic waves normally too weak for ground-based stations to receive. Temperatures at Dome A can fall as low as -80 C. The extreme environment is perfect for scientific experiments, but few were able to make use of it before the Polar Research Institute of China and its international partners set up the Plateau Observatory, or Plato, in 2008. Leaders asked to oversee legal work The central government on Dec 14 issued a new regulation to make the Communist Party of China and government leaders above county level responsible for pushing forward the country's legal framework. It stipulated that such leaders should create agendas for adding legal systems into their regional social and economic growth plans, which should be evaluated annually. They should support the work of legal organs and are forbidden to interfere with any case, the regulation says. Committee elected to choose next HK chief All of the members of the election committee that will choose the next chief executive of the Hong Kong Special Administrative Region were elected on Dec 11 and 12. Around 1,200 newly elected members in 38 subsectors will vote for Hong Kong's next chief executive in March. The seats in 13 of the 38 subsectors were not contested, since the number of valid candidates in those subsectors did not exceed the number of allocated committee seats, the Electoral Affairs Commission said. In the other 25 subsectors, 1,239 candidates ran for 733 seats. New rules boost robot production China will publish standards to regulate its burgeoning robot industry while pushing for wider robotic applications in key industries, according to officials and experts. The Ministry of Industry and Information Technology will work out standards for the industry that will cover such aspects as product quality, research and development capabilities, staff qualifications, sales practices and social responsibility, according to Sun Feng, deputy director of the ministry's Equipment Industry Department, at the 2016 China Robot Industry Conference on Dec 14. The move is intended to raise the core competitive strength of China's industrial robot manufacturing, he said. Shanghai eases access for foreign talent Shanghai recently unveiled measures aimed at attracting talented people from overseas, including high-level professionals and young graduates, as it tries to build itself into a global technological innovation hub by 2030. According to the 10-article immigration policy, recently approved by the Ministry of Public Security, senior overseas professionals will have easier access and spend less time when they apply for permanent resident permits. Expats working at the Shanghai Zhangjiang National Innovation Demonstration Zone or the China (Shanghai) Pilot Free Trade Zone, along with their spouses and children, can directly apply for permanent residency with a recommendation from the administrative committees of the zones. - Overview of the Bairencheng archaeological site. Excavation of the site of a 2,500-year-old city recently started in Xingtai, Hebei province. The city belonged to the state of Zhao during the Spring and Autumn and Warring States Period (770-221 BC). It is one of the largest existing ancient cities in China. Mou Yu / Xinhua (China Daily European Weekly 12/16/2016 page2)", -576,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685647.htm,Song apps provide a new stage for fame,,"It's the dead of night and Yang Jie is staring at her mobile phone and feeling sentimental. She puts on her headphones, swipes the screen and starts to record herself singing along with the music coming from it. ""I love singing because it helps me relax, especially when I'm feeling down,"" says Yang, 28, an office worker from Beijing. She particularly likes singing pop songs by stars such as Karen Joy Morris and Rene Liu and posting her versions online. ""When someone clicks a 'like' button to my song on the app, I feel a sense of achievement and post more songs,"" she says. Millions of Chinese have taken to using such apps in recent years as a way of entertaining themselves and earning kudos from friends and strangers. In their quest for praise and inner satisfaction they can send their performances to those they know, or share them on their social media. - Participants in the WeSing contest can stream their voices live. Photos Provided to China Daily Users can broadcast through live streaming or can videotape themselves and upload the clip later. If they lack the skills to sing a song in their own style they can closely follow the style of a recorded original. And if what they produce leaves something to be desired, they can even modify the way their voice sounds. They can also compete with others to be in the app's ranking list to draw more fans. Some well-known singers use apps so their fans can interact with them. ""It's human nature to sing,"" says Chen Hua, founder and chief executive of Beijing Changba Technology Co. ""There has always been a demand for people who can sing, and there always will be. Nothing has changed except the stage on which they perform."" Changba says its karaoke app has about 30 million active users a month on average, about 62 percent of them female. Most users are between 20 and 25. Chen says users are always wanting changes and new features, which means the company is constantly having to upgrade the app. ""The social aspects are important in our app. Users can interact with those who have things in common with them,"" Chen says. Ji Mingzhong, product director of the digital music department of Tencent Music Entertainment (Shenzhen) Co, says: ""A mobile app allows you to distribute your beautiful singing online."" The company is owned by Chinese internet giant Tencent Inc. Tencent's WeSing offers users a strong social network, thanks to the support of its popular instant messaging apps WeChat and QQ. ""The connectivity function plays an important role in keeping app users active,"" Ji says. ""You can interact with friends, for example by listening to their singing and you can sing in chorus with them. You can also challenge your friends."" Prospects for the market are good and getting better, he says. ""It's essential to integrate singing with other fields, such as short videos and live broadcasting, or expand the settings within which the performances take place and to seek out good-quality content."" Many of those who use the app will have been influenced by acquaintances who use it, he says. As long as you have talent you can build up a fan base through the app and even become well known, without having to take part in a singing contest on TV, he says. ""As a singing platform, the app helps independent musicians get their work known and it improves their incomes so they can make ends meet."" Some live stream, singing or chatting with fans. Income depends on how many virtual gifts they receive from fans. For Liu Xingtong, 36, a mobile karaoke app is a good substitute for a karaoke bar. ""The thing about the app is that I can sing with it whenever I want,"" says Liu, an office worker from Guangzhou. ""Now, rather than going out with friends, all I want to do is sing with all my heart. It's a bit of a difficult situation because I know that if I were in a karaoke bar with them, some would be singing out of tune."" She used to frequent karaoke bars when she was a teenager. ""It was the golden age of karaoke. Without the internet, reality shows or social media, karaoke was almost the only way for young people to have fun."" Liu says she used to pay to record her singing in a karaoke bar, but now she can do so free with the app. She also likes to hear others. However, for some, like Yang, a mobile app cannot replace the experience of singing in a karaoke bar. She likes spending time with her friends in a bar because of the relaxed atmosphere and good equipment, such as stereo sound. They often choose a place that serves food, and everyone has a good time, she says. ""It's different having someone right by your side enjoying your singing, rather than receiving a 'like' online. The other thing is that when I'm at home using the app it bothers me that my parents may interrupt. In a karaoke room there are no such worries."" In June 2014 Changba joined with Beijing Mysong Culture Communication Co to establish Changba Mysong KTV, with a chain of more than 70 karaoke bars in 15 provinces and cities. One has 15 to 30 rooms, the idea being to maximize use and minimize overhead. ""It's karaoke combined with internet thinking,"" Chen says. ""We're striving to provide a great experience for customers. The bright lights, good stereo and a small catwalk in the room make them feel like superstars."" Guests can do many things with the Changba app, including making a reservation, requesting a song to be played and paying the bill. They can also broadcast their singing live on the app. Chen says the number of people frequenting karaoke bars is falling, but the demand for spending time with friends in such places is still robust. Apart from the popularity of mobile karaoke apps, there are other factors behind the decreasing popularity of the bars, Ji says. Among them are the many ways entertainment can now be delivered, the economic slowdown and the fact that consumers are becoming increasingly picky. ""Going to a karaoke bar is an important social activity for Chinese. Demand is weaker now, but it won't disappear altogether. The best karaoke bars are not affected much and still attract regular customers, but it's different for the bars that are just run of the mill,"" Ji says. Many Chinese households in the past featured lots of singing using various pieces of equipment. Ji reckons those days may be about to return. It is now possible to install a karaoke app on an android TV box. Once you have done so, the whole family can instantly be in the music business. xulin@chinadaily.com.cn - Changba's celebrity users get together for a singing party. (China Daily European Weekly 12/16/2016 page1)", -577,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685646.htm,Give China its due, stop the protectionism,,"China welcomed the 15th anniversary of its entry into the World Trade Organization on Dec 11. In accordance with Article 15 of the accession protocol signed in 2001, the surrogate country approach for calculating so-called dumping tariffs expired on Dec 11, 2016. China should have received market economy status to better protect its companies and workers from the harm of anti-dumping regulations in other markets, such as the United States and the European Union. But those major economies, joined by Japan, have failed to abide by the rules. This will not only have a negative impact on global trade but will also worsen the global financial situation and the anti-globalization trends in some parts of the world. After joining the WTO, China has been improving its market system and level of marketization. It has also contributed a lot to the sustainable growth of the global economy. At present, it is working on further perfecting its market economy system and to shoulder more responsibility for global economic development. So it is unwise and unreasonable for the above-mentioned economies to continue to employ the tool of the surrogate approach for setting tariffs, which is based on conditions in third countries. One one hand, China has always actively participated and integrated with the world trade system, and has consistently improved its market system and marketization level during exchanges with other economies. Through many global and regional cooperation mechanisms, such as APEC, G20 and AIIB, China has advocated win-win and inclusive development concepts, and it is shouldering more responsibility in the world. On the other hand, China has always worked on building a market economy system to higher standards to provide a more diversified development path for world economic development. Through new economic concepts such as the Belt and Road Initiative, China has been working to push globalization. It is important to clarify that there is no perfect market system in any country or region. The so-called ""full market economy country"" is also a concept with blurry standards. But whether in state-owned companies' reform or in building and improving multilayered capital market, China has always been open and responsive to its imperfections and keeps making progress - which I think is the essence of a market economy. Undoubtedly, as an important player in the global market economy, China has proved that it is worthy of market economy status. And it has been patient, as it has waited for what was written in Article 15 to be carried out properly. It concerns not only China's development, but also the world's prosperity. For other members of the WTO, respecting Article 15 and giving up the surrogate approach is not only their legal duty but also a reasonable judgment and a smart choice. For the European Union, which is now facing crises such as Brexit and other problems, it would be unwise of them to adopt protectionism. The author is an associate professor of law and a research fellow at Renmin University of China's International Monetary Institute. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page7)" -578,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685645.htm,Breaking with globalization is ill-advised,,"Many countries advocating protectionism will suffer the consequences of inertia in economic and social growth structures China's growth in recent decades is an economic miracle. As it lifted 728 million people above the UN-defined poverty line - contrasting with a mere 152 million in the rest of the world since 1981 - China became the world's second-largest economy, contributing nearly 39 percent to global economic growth. China's economic structure has evolved adaptively, from a central-government-ruled economy to a market-oriented one. Since 2001, when China entered the World Trade Organization, the world has benefited enormously from the country's contribution. In return, China also significantly benefited from collaborating with WTO members in terms of improving manufacturing efficiency, technology and innovation capability, and in boosting economic power and catching up with the others. The WTO's basic rule involves mutual trust, non-discriminatory ""national treatment"" and the concept of globalization, which allows members to freely trade with each other according to need. But the 2008 economic crisis created long-lasting pain for both developed and developing countries. Taking the most important indexes to evaluate an economy - GDP growth rate and unemployment - many advanced countries have shown weak capability to recover. The weakness is mainly seen in their social-economic structures' ability to sustain growth and well-being. In the post-crisis era, calculating the extent to which China can directly contribute to other countries' economic growth has become the keynote. China is no longer an economic spillover taker but an economic spillover giver. With China's strong willpower and efforts to sustainably transform its economy from one based on manufacturing and investment to a service- and consumption-orientated model, worries have been growing, especially from those who depend economically on the country's economic growth. Therapies to get over economic fatigue are presented with two options: either follow the globalization concept and obey WTO rules for open collaboration in the long run, or to close the door and advocate de-globalization to protect domestic uncompetitive industries. The options are not parallel. It is known that de-globalization in a long run will hurt economic sustainability, political stability, and social advances. The purpose of the WTO is to encourage international trade and facilitate technology and social advances in order to boost each member's comparative advantage. Advanced economies such as the United States, the European Union and Japan bypassed the efficiency-based economic development phrase and are now in the innovation-based stage. The focus for them should be to increase collective social welfare by moving their economies to a more equality-defined sharing economy. Denying other countries - such as China - market economy status and jumping to apply punitive tariffs will not work. Other countries' deliberate misinterpretation of China's economic structure, identity and development model, arises from their own internal economic-political unrest. This is not only a stance against China but against globalization. China's important role in the world economy will have to continue, even with some unwise noises emanating from a number of countries' mindset of self-interest and de-globalization. In the past decade, it has encountered numerous anti-dumping investigations from a few WTO members. Ironically, none of them would have succeeded without China's contribution. By far, China has obviously raised enough manufacturing and technology capacity for taking care of world consumption - and at high-quality and with a favorable cost ratio. And it has more than sufficient domestic consumption capacity as it braces for a de-globalization phenomena. Many of those countries advocating de-globalization are suffering the consequences of their own inertia and unadaptive economic and social growth structures. The world, especially in the post-economic crisis era, must be a global economy that requires all local economies to collaborate for mutual prosperity and collectively transform to a sustainable entity. In the circumstance where a country finds it difficult to recover from the crisis, China has been acting as a responsible partner. Denying China's market economy status and its role in global landscape under a de-globalization mindset is not wise and will bring our world to an even worse situation. The author is associate dean of Rotterdam School of Management, Erasmus University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page8)", -579,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685644.htm,One answer to punitive West: Upgrade steel,,"Anti-dumping measures could prompt a rethink on production in China, according to experts, executives All Chinese steel manufacturers will be forced to upgrade their products and expand sales channels if the European Union and the United States continue to use the surrogate country system in anti-dumping investigations, trade experts and company executives say. Their comments came on Dec 12, after China notified the secretariat of the World Trade Organization that it had requested dispute consultations with the US and the EU regarding the special calculation methodology they use in anti-dumping proceedings. Those countries already impose high tariffs on Chinese steel products, leading to a sharp fall in exports of China's seamless steel pipes and tubes. - Employees work at the factory of Anteel in Liaoning province. Ansteel Group has taken measures to avoid financial losses in exports to the European Union and the United States. Huang Xiandong / For China Daily The European Commission, the EU's executive body, conducted 15 trade remedy investigations against Chinese goods between 2014 and February this year, and eight of them involved steel products. ""We are paying close attention and are worried about the tendency of the EU and US toward steel protectionism,"" says Yao Lin, vice-president of Ansteel Group in Liaoning province. Eager to restore its earning ability, Ansteel has taken measures to avoid financial losses in exports to those markets. It opened a new plant in April to make high-end steel products for automotive and home appliance manufacturing to offset the weak demand for low-end steel. The facility, constructed in the southern metropolis of Guangzhou, is part of a joint venture with Guangzhou Automobile Group and German multinational ThyssenKrupp. The first phase cost 1.5 billion yuan ($217 million; 205 million euros; 171 million) and has an annual production capacity of 450,000 tons of steel plate. ""The EU has frequently resorted to restrictive measures since the start of 2016, as it blames Chinese steel products for its glutted industry,"" Yao says. ""It is groundless, as Europe's steel woes stem from a weak economy. The EU should be rational and take an objective view, instead of adopting protectionist policies that impede competition. ""The Pearl River Delta is an important base for auto and home appliance manufacturing. Building a presence there allows us to bring our steel products to many of China's most important buyers."" Shen Danyang, spokesman for China's Ministry of Commerce, says: ""As many domestic steel-makers are expanding their export channels in other emerging markets - especially those along the Belt and Road Initiative - it is also practical for them to focus more closely on new fast-growing regions, as well as localization strategies for domestic production bases."" The infrastructure, trade and service network proposed by the Chinese government in 2013 envisions a Silk Road Economic Belt and a 21st Century Maritime Silk Road, covering about 4.4 billion people in more than 60 countries and regions in Europe, Asia and Africa. Shen says Chinese iron and steel smelters should cut risks by further diversifying their export destinations to places such as Africa, the Middle East, South America and member countries of the Association of Southeast Asian Nations. Bai Ming, a researcher at the Chinese Academy of International Trade and Economic Cooperation, the think tank of the Ministry of Commerce, says: ""A trade war would certainly harm all of us because it would change the method for determining a fair price. The recovery of the global economy is proving to be more complex than anticipated."" Liu Zhenjiang, secretary-general of the China Iron and Steel Industry Association, notes that many countries in Europe are having elections soon, and because companies in their steel and solar energy sectors have reported losses in recent years, politicians are trying to use excuses such as overcapacity to subsidize certain industries to affect China's lawful rights and foreign trade activities. ""If China takes retaliatory measures by imposing higher taxes on imports from the US and the EU, their manufacturers will also suffer more financial losses,"" Liu says. ""China is a large steel exporter and a big importer of special steel used in shipbuilding, weapons, automobiles and machine manufacturing. Yet import prices are three times the export price on average,"" says Xue Rongjiu, vice-director of the Beijing-based China Society for WTO Studies. Xue says the country needs to improve the quality of its steel products and move up the value chain. zhongnan@chinadaily.com.cn (China Daily European Weekly 12/16/2016 page7)", -580,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685643.htm,"As protectionism rises, China may face new problems",,"Fifteen years after its accession to the World Trade Organization, China's inward foreign direct investment stock has multiplied by six times, with a compound annual growth rate of 14 percent. More dramatically, its outward FDI stock increased 27 percent per year in the same period, indicating its emergence as the second-largest source of FDI after the US. The rapid growth of China's inward and outward FDI clearly contrasts with the global trend in FDI, which has experienced a significant downturn, especially since the economic crisis occurred in 2008. China's success in both inward and outward FDI is strongly related to its achievements in economic transformation in general and to its efforts in deregulating FDI to meet WTO compliance in particular. Over past two decades, China's FDI policies have seen continuous deregulation with regard to the ownership control, geographical location and sectoral restrictions. The accession to the WTO has led to a reduction in tariffs, elimination of quotas on exports and a reduction in barriers to the cross-border supply of services, while the transformation of the Chinese economic system has changed the competitive landscape in China and thus increased the competitiveness of Chinese firms in the world market. Access to the service sector was a focal point for the US and EU in negotiating WTO accession for China, as this has been of paramount importance to US and European companies in their dealings with China. Recent developments show a convergence of both Chinese and Western interests in promoting FDI in the service sectors. Over the past decade, China's inward FDI has declined in the manufacturing industry - especially in export processing activities - because of rising labor costs. Yet, this decline has been largely compensated by increasing FDI flows in the service industry, especially in retailing, banking and the insurance sector. Given the fact that China is rapidly turning into a service economy, foreign service multinationals are expected to further invest in projects focusing on consumer services. Another substantial change is the increasing potential for foreign multinationals to participate in China's emerging sectors, which are driven by innovation and technology, such as e-commerce, medical devices and high-end manufacturing. By contrast, traditional sectors with intensive labor inputs and overcapacity, such as the steel, shipbuilding, real estate and industrial products sectors, will be restricted. With regard to the impact of WTO accession on China's outward FDI, the surge of the country's foreign exchange reserves and the mounting pressure of competition in the domestic market convinced the government and Chinese companies of the necessity to build up global competitive advantages in order to sustain economic growth. Actually, the ""go abroad"" strategy was initiated to anticipate and be able to cope with growing competition in domestic markets as a result of China's accession to the WTO in 2001. Facing increasing competition in the domestic market and rising labor costs, it became essential for Chinese firms to move up on the value chain by upgrading their products and manufacturing technologies, and by developing their own brands. These firms, especially the large private industrial ones, backed by their large-scale production and huge sales volume in China, turned to Western countries in their search for technology, brands and markets. As part of their cost leadership strategy, these firms attempt to acquire core technology and assets (such as in the case of Kraussmaffei Group and Gimatic), to occupy key positions in the global value chain, to create (think acquisition of Syngenta by Chinachem) and to tap into global production, transportation and financial hubs (for example, COSCO in Antwerp). The WTO accession has substantially affected the Chinese inward and outward FDI landscape, while the active participation of China in global trade and investment governance has significantly contributed to its effective coordination and monitoring of both inward and outward FDI. Yet, facing increasing economic protectionism and nationalism, new challenges could be emerging for China, especially at its turning point of becoming a service-oriented and knowledge-based economy. The authoer is a professor and director of the Neoma Business School-Confucius Institute in France. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/16/2016 page8)", -581,2016/12/16,http://europe.chinadaily.com.cn/epaper/2016-12/16/content_27685642.htm,Keep your promises,,"China files official complaint with World Trade Organization over US and EU's failure to withdraw anti-dumping penalties In a reversal of roles, China has filed a complaint with the World Trade Organization over the failure of the United States and the European Union to honor promises made 15 years ago when China joined the global trade body. Usually they are the ones demanding that others obey international rules. ""China urges each party to keep their word, observe international law and fulfill their international obligations,"" said Minister of Commerce Gao Hucheng on the 15th anniversary of China's entering the WTO. ""As for those who refuse to keep their promises, China will adamantly protect its legitimate interests and reserve the right to take further measures."" On Dec 12, the day after China's WTO transitional period ended, Beijing notified the WTO Secretariat that it had requested dispute consultations with the United States and the European Union over their refusal to act on promises in the WTO accession documents. Article 15 of China's WTO entry protocol allowed other members of the WTO to employ the so-called ""surrogate country"" mechanism to calculate anti-dumping penalties against Chinese products. It clearly states that the provision expires 15 years after China's accession, which would be Dec 11 this year. Starting on Dec 12, China's domestic prices - not those of a third country - should be used as references when WTO members calculate dumping margins, if such cases emerge. Gao said that since this obligation was written into the international treaty, each WTO member should fulfill it by abolishing the ""surrogate country"" system as scheduled. Xue Rongjiu, deputy director of the Beijing-based China Society for WTO Studies, warns that a continuation of the surrogate country system in anti-dumping investigations by the EU and US against China will damage the interests of all three parties in the long run and cost a huge amount in legal resources. Xue's comments came after China notified the Secretariat on Dec 12 that it had requested the dispute consultations. Under the rule, if consultations fail to resolve the dispute, China can request adjudication by a panel. At that stage, experts say, China has a strong case. The defendant party has the right to challenge the panel's ruling within a year. Under these circumstances, a final adjudication would be made by a WTO committee within 90 days. The WTO allows 15 months for the defendant to carry out the final order. If the defendant fails to do so, the aggrieved party can apply trade retaliation measures. It took three decades for China to integrate into the global multilateral trade system. It took 15 years from 1986 for China to resume its status as a party of General Agreement on Tariffs and Trade, known as GATT, which was converted into the World Trade Organization in 1995. After inking the deal in Doha, Qatar, in 2001, China has worked to turn promises in the lengthy accession documents into action. That involved radical domestic reforms during the 2001-16 transitional period. The figures show that China's efforts have paid off as a win-win with the world economy. Yi Xiaozhun, deputy director-general of the WTO, says China's historic accession has made both China and the WTO stronger and more vibrant, while China has made ""deep and broad commitments"" to reach this point. Yi says China accelerated major steps to liberalize trade before its entry into the WTO - for example, its reduction of most-favored-nation tariffs from 45 percent in 1992 to 15 percent in 2001. In 2015, the average of such tariffs was reduced to 9.5 percent. And China's trade-weighted average tariff is now as low as 4.5 percent. China also has opened up more than 100 service subsectors, such as finance, insurance, legal services, telecom, distribution and courier logistics. He also says China overhauled some 3,000 laws and regulations at the central government level, and many more at the local level, to bring its legal system into compliance with WTO standards. Yi says in the past 15 years both China and the world have seen trade flows rise dramatically. ""In the absence of the surge of imports into China over the last six or seven years, it's very likely the global recession would have further deepened and that Asian countries would have been more adversely affected,"" he says. Furthermore, China is one of the few major developing countries that are committed to granting duty-free treatment for up to 97 percent of products made by the least-developed countries. However, China has yet to agree to terms with many of the developed economies on how to calculate the so-called dumping prices after Dec 11. Many WTO members fulfilled their promises just a few years after China's WTO entry. Examples include New Zealand, Australia, Iceland and Switzerland, which have not only recognized China as a market economy but also signed agreements for free trade. Up to 100 countries have already phased out the ""surrogate country"" mechanism, which usually puts Chinese exporters in a disadvantageous position in calculating dumping margins. Within the EU, the UK, Netherlands, Hungary and the Nordic countries support China's market economy status. Germany is supportive in principle but is interested in safeguards for sensitive industries. Italy and France are opposed. Since late 2015, US think tanks have exerted influence on the EU, warning of huge job losses if its members grant China market economy status. The EU has also linked the WTO issue to steel overcapacity, which is a global problem. In March, about 5,000 steelworkers marched on the streets outside some EU institutions in Brussels; and the European Parliament voted to refuse China market economy status, with many members saying that it had not met the five criteria set by the European institutions. The vote is not binding. All these efforts go hand-in-hand with the EU's so-called legislative reform steps, which allow it to scrap the list of market economies and use the concept of ""market distortions"" in calculating anti-dumping tariffs. Some European politicians share China's worries about the rise of protectionism in the West. ""Regretfully, the European Union and United States have not fully recognized the potential China would release, and instead have resorted to protectionism,"" said former French premier Jean-Pierre Raffarin during an interview in Paris. ""Protectionism is rampant and we must fight against it."" Facing the EU and US failure to recognize China's status, Gao, the commerce minister, said the country will join hands with most of the member states to protect the solemnity of the multilateral trading system. Switzerland, among the earliest countries to recognize China's market economy status, has taken a similar position. On Dec 12, in a meeting with visiting Chinese Foreign Minister Wang Yi, Johann N. Schneider-Ammann, president of the Swiss Confederation and head of the Federal Department of Foreign Affairs, Didier Burkhalter, agreed that the Swiss side is willing to deepen cooperation with China to maintain the global free trade system. Wang said: ""With the trends of protectionism picking up, we will take advantage of the chance to upgrade our free trade partnership to send active signals of maintaining the global trade system, while opposing any form of protectionism."" - Containers piled up at a port in Qingdao, Shandong province. China has filed a complaint with the World Trade Organization over the failure of the United States and the European Union to honor promises made 15 years ago when China joined the global trade body. Yu Fangping / For China Daily - Employees arrange Christmas toys that will be exported to Western markets in Lianyungang, Jiangsu province. Si Wei / For China Daily (China Daily European Weekly 12/16/2016 page1)", -582,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618103.htm,Expanding on a fast track,,"As production abroad gains steam, rail company reaches for big share of markets China Railway Rolling Stock Corp, the country's railway vehicle and equipment exporter, says it will augment overseas production and R&D to boost its overseas sales revenue. In 2015, CRRC's overseas sales reached 26.57 billion yuan ($3.86 billion; 3.63 billion euros; 3.03 billion), up 67 percent year-on-year, and accounted for 7 percent of total sales. It is seeking to boost the figure to 35 percent by 2025 (that is, the end of the 14th Five-Year Plan). The goal is to grab more market share from established global rivals. Its sales in 2015 reached 243.7 billion yuan, up over 8 percent year-on-year, earning a profit of 16.3 billion yuan, up over 17 percent. Zheng Changhong, former CRRC's deputy chairman, says the group expects a total of $8 billion worth of orders from overseas customers by the end of this year. ""The opportunities come from surging demand in both developed and developing countries for high-speed railroads, improved railway infrastructure, upgradation of subway systems, passenger services and regional connectivity, as well as their desire to create jobs and new commercial areas,"" says Zheng, who retired last week. CRRC's main competitors are France's Alstom SA, Germany's Siemens AG and Canada's Bombardier Inc. The other three have over 30 percent of international business in railway vehicles, related products, operations-related solutions and maintenance. CRRC's biggest customer is still China Railway Corp, the country's railway operator. Eager to enhance earnings from this fast-growing industry and prevent unhealthy competition among Chinese firms in overseas markets, the Chinese government decided to merge two former rivals, CSR Corp and CNR Corp, to form CRRC in 2015. The state-owned enterprise now has 190,000 employees and 430 subsidiaries, including five listed companies, throughout the world. Zheng says the merged entity has managed to cut overlapping investment worth 1 billion yuan, including building manufacturing facilities in a number of Chinese cities, and ""will gear up to export bullet trains, subway cars, rail technologies and equipment"". To date, CRRC has shipped and deployed its railway vehicles, parts, signalling systems, maintenance and other service businesses to markets in 102 countries and regions, accounting for 83 percent of countries that operate railway services in the world. ""The world's rail-transport market is not as hot as in the past years, just like the global economy. Infrastructure construction needs money. The general demand is falling,"" says Zhao Mingde, director of CRRC's strategy and planning department. ""Many foreign governments also ask us to build plants in their countries as part of the deal to continue the business."" With a total asset amount of 22.6 billion yuan, the Chinese company has set up 56 branches such as CRRC North America or CRRC South America in 21 countries with 4,625 employees. In August, CRRC's first joint venture plant in India/South Asia started operations. India has one of the world's most extensive rail systems. The joint venture, CRRC Pioneer (India) Electric Co Ltd, is based in Bavo Industrial District, Haryana state, near the national capital New Delhi. The manufacturing base saw an investment of $63.4 million. The Chinese side holds a 51 percent stake in the venture. Even though CRRC has set goals to double its global sales to as much as $15 billion by 2020, Zhao said localization, quality after-sales services and reasonably-priced advanced products will be key to overcoming business uncertainty caused by declining global demand and trade protectionism in certain regions. ""Under such circumstances, we wouldn't mind building 'competitor-partner' relations with rivals to win bids in certain markets if it's necessary,"" says Chen Dayong, general manager of CRRC's international business department. For instance, CRRC and Bombardier agreed in September to expand their relationship and join forces on international bids. They will cooperate to develop the market of New York's aging subway system. The Chinese company will also deliver its first train built at its manufacturing plant in Springfield, Massachusetts, to the Boston transit system in 2018. The construction work was completed in August. In March, CRRC also won a bid in Chicago to produce 846 metro rail cars, a record in the developed markets. The group now operates plants that produce electric locomotives, electric multiple units and subway trains in South Africa, Malaysia, Turkey and Iran. The goal is to tap key countries and regional markets around each plant. CRRC's subsidiaries, including CRRC Zhuzhou Electric Locomotive Co, Zhuzhou CRRC Times Electric Co and CRRC Sifang Co, have invested 3 billion yuan so far to acquire European technologies and manufacturing parts suppliers, including the United Kingdom-based Dynex and Germany's Boge Elastmetail GmbH. CRRC Zhuzhou Electric Locomotive Co, one of CRRC's manufacturers mainly producing electric locomotives, is also in takeover talks with Czech Republic's Skoda Transportation. Any deal would mark the Chinese group's first takeover of a full-fledged rail transit equipment manufacturer. Skoda Transportation mainly produces trams, electric locomotives, carriages, electric buses, traction motors and complete drives for traffic systems. ""Widening the international sales network and manufacturing bases in overseas markets can help not only the Chinese rail equipment manufacturer but infrastructure and service providers, who can enhance their localization abilities. Expanded global play could also help gain political and public support through local employment,"" says Cheng Hui, a researcher at the Institute of Transportation Research under the National Development and Reform Commission. By 2015-end, China had built more than 19,210 km of high-speed railroads country-wide, building a solid foundation for an industry that can generate new market growth points during the nation's 13th Five-Year Plan (2016-2020) period. zhongnan@chinadaily.com.cn ( China Daily European Weekly 12/09/2016 page26)", -583,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618102.htm,What gets Harley chief's motor running,,"Classic motorcycle boss describes joy of riding in China, promises more dealerships in cities big and small Every morning Matt Levatich walks into his garage and listens to his three Harley-Davidson motorcycles to hear which one ""speaks"" to him. Then he picks the one that feels right for the day. A mechanical engineer by training, the president and chief executive officer of Harley-Davidson has a passion for engines, power and range. Growing up riding motorcycles, Levatich combined his business ambitions with his lifestyle when he joined the company in 1994. - Matt Levatich, president and CEO of Harley-Davidson Inc. Provided to China Daily He has been riding in many places around the world. One of the trips that most impressed him was in 2006, when Harley-Davidson first entered the Chinese market and he rode along the Great Wall with 30 other owners of the motorcycles known affectionately as members of Harley Owners Group, H.O.G. He has witnessed rapid expansion of the business in the past decade and has made frequent visits to the mainland. Levatich recently spoke to China Daily about the company's strategy and China's motorcycling culture. Following are edited excerpts from the interview. What kind of lifestyle does Harley-Davidson represent? How would you describe a person who follows this lifestyle? I think every culture has a slightly unique perspective on Harley. But what they all have as a common perspective is this sense of freedom, and a sense of identity that ""I'm a certain sort of person, and I wanna make a statement about who I am as an individual."" We call it personal freedom and it's the core of what the brand means for the riders. How do you evaluate Harley-Davidson's performance since it entered China in 2006? I am quite pleased to see the number of Harley-Davidson owners grow quickly in the past decade. The brand is widely known among consumers. Financially China, as a part of the Asian market, is also one of the fastest-growing markets, despite a fiercely competitive environment. We are pleased to see the passion from Chinese riders, and we are confident that more understanding of the riding culture will drive growth. Which Harley-Davidson models sell the best in China and why? The Harley-Davidson Street 750 and Sportster motorcycles are both best sellers in the China market. These two families appeal to young riders who are keen on agile and powerful rides in China's urban environments. Moreover, the Street, Iron 883 and Forty-Eight models form the Dark Custom lineup - hard-nosed machines that offer an authentic, affordable experience to a new generation of riders who want to make the Dark Custom motorcycle his or her own with accessories, ingenuity or riding experiences. This aspect certainly appeals to Chinese riders. What is your vision and what are your objectives for Harley-Davidson's business in China? Establishing the business 10 years ago and building it up carefully to have that level of passion in those numbers is quite remarkable. And to see them all come to the rallies and celebrate - it's building the right kind of understanding and the right kind of momentum for us. We look at the Chinese market as being very important for Harley-Davidson in the long term. We have goals, and they certainly include sales and also putting dealers in tier 2 and even tier 3 cities over time. That will help us to expand our reach to people, to have access to our brand. How do accessories, clothing and other nonmotorcycle products contribute to the overall Harley-Davidson business? The whole package of the motorcycle, the rider, the experience, the fellow riders and those other items - clothing and accessories - helps create a real, richer experience for the rider. We have a relatively strong heritage worldwide. It is all about customization or personalization of the motorcycle. Have market conditions been more challenging in the past few years - or is it as friendly as before for Harley-Davidson in China? There is no simple answer. Even in the United States it's been difficult when you look at the economic indicators, such as GDP, consumer confidence and so on. But the degree to which people want to spend money on a car, house, vacation or a Harley-Davidson is a function of many things. And there's no refining it in this day and age around the world. There are lots of uncertainties, and all these things go into us being able to perform as a business in a world that is less predictable than it used to be. How does Harley-Davidson cooperate with its dealers? In China we already have 23 dealerships. In the future, there will be more dealerships in key cities, and we are also looking at lower-tier cities where there are increasing numbers of consumers who have embraced the riding culture. Opening a dealership like the massive and amazing facility in Beijing requires a huge investment, and we are making every effort to support our dealerships and provide best-quality products, to ensure that the investment is a success. How does Harley-Davidson fit in the context of increasing importance attached to the environment? In 2014, we introduced a demonstration of an electric Harley-Davidson motorcycle, and we took it around the world to give customers an opportunity to try it out. That's because most people would say, ""I don't understand."" The other thing is when people think of an electric bike, they think of something maybe a little boring, underpowered and not fun, and we wanted to show people what is possible with an electric Harley-Davidson. The feedback has been just fantastic. They want it now and say: ""Why can't I buy it today?"" But we know we can offer products with more range and lower cost and we are moving toward that. We are looking forward to launching the electric motorcycle in the next five years. How does Harley-Davidson cope with the changing tastes of riders? Is there any plan for new targeted groups such as young riders? We use products to increase the reach of the brand, and people can find their way to Harley-Davidson through different products. That's important for us, not just in China but in markets around the world. Increasing the reach and impact that we can have with the product - to women, young adults, new riders and experienced riders - is about making sure that we capture their emotional excitement. We are a very emotional brand and we want to make sure we stay that way, because it's a special place to be. How would you describe your leadership style? I don't have an easy answer. I have incredibly high standards. I don't usually come across as demanding. But there are things that need to be done in certain ways. High quality. High focus. High intensity. And these are the expectations I have for myself as a person doing anything. I think if you are going to do something, do it and do it well and get it done. I bring all that passion. Sometimes, I'm sure, the intensity is constructive; Sometimes, maybe less so. I'm just a true believer that the business has to be the best for the customer and then it'll be good for the investors, good for the employees and good for everybody else. What routes in China would you like to ride in the near future? I would love to ride more in China. My son has studied Mandarin in high school and college. He spent two months with me one summer touring around China, and one summer living in Kunming. I flew into Kunming once and I thought how beautiful it was from the air. I always think to myself that it would be a great place to ride around. We have a dealership in Kunming, and we've had an event in Dali. The riding around was absolutely spectacular and the weather was great. So I had this instinct, looking out from the window, that it was a good place to ride. This is one of the great joys of my job - the opportunity to ride in these beautiful places around the world. wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page31)", -584,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618101.htm,The British link,,"Innovative Chinese telecom equipment-maker TP-Link plugs into UK market Chinese telecommunications equipment maker TP-Link is fast expanding into the United Kingdom, selling a wide range of networking products and championing the idea of micro innovation. Its wireless routers, power banks and other accessories may not represent groundbreaking technology, but with good design, reliable functions and value for money, they have proved popular with UK consumers. As a newcomer in the networking equipment sector, TP-Link is already the UK's biggest seller of such products, with around a 40 percent market share, ahead of decades-old Western brands like D-Link and Netgear. TP-Link's booth at IFA in Berlin, the global trade show for consumer electronics and home appliances. Provided to China Daily In an effort to constantly innovate, TP-Link also launched its smart plug in the UK, allowing devices to be controlled from anywhere. Developed through extensive research collaboration in TP-Link's Silicon Valley research and development office, it now sells 120,000 units a month in the United States. ""Our brand's development and global expansion rides on a wave of Chinese brands going global and Chinese technology upgrades, so we invest heavily in technology R&D and place a strong strategic focus on global expansion,"" says Nelson Qiao, TP-Link's UK country manager. Founded in 1996 in Shenzhen, Guangdong province, TP-Link has grown into an industry leader in China. Its process of internationalization started in 2005 when it began selling in overseas markets through distributors. In Europe, it established a subsidiary in Germany in 2009, and subsequently expanded into the UK in 2010. Globally, the company today has over 40 offices, with products sold in 120 countries and employing 23,000 staff. Earlier this year, TP-Link was ranked for the 23rd consecutive quarter as the world's largest supplier of wireless local area network (WLAN) products by IDC Research, with a 41.2 percent global share. WLAN refers to any product that connects two or more devices using wireless technology within a small geographical space, such as a router. Qiao says one key advantage for TP-Link is product quality, combined with competitive cost and premium service. Many of its products are manufactured with top-quality components from established Western brands such as chip manufacturers Qualcomm and Broadcom. ""Our good supply chain management and manufacturing process management strategies enable effective cost management,"" he said. In addition, TP-Link constantly innovates its technology. Noticing that the smart home was picking up speed as a trendy concept, where US tech giants like Google and Amazon are pushing to the market their own systems, TP-Link developed a compatible smart plug. This allows users to switch electronic products on and off remotely using their phones. It can turn on appliances like coffee machines, washing machines, heaters and lights with a simple mobile phone command. As an endorsement for the TP-Link smart plug's quality, Amazon sent an email to all its customers in the US in August to certify that the product is compatible with its smart home system. This led to big sales growth in the US. More recently, TP-Link's smart plug became available in the UK through retailers like Tesco and Argos. Another example of TP-Link's innovative product development is its wireless nano-router, which sold more than 1,000 units in the UK within a few months of its launch in 2012. With multiple functions, including transferring wired internet access to wireless and reinforcing the existing wireless signal, the TP-Link router is different from most others available on the British market. Other products the company sells in the UK are electronic accessories for cars, mobile devices and entertainment, such as gaming. TP-Link started to push for this market segment two years ago, with an emphasis on its products' ease of use and reliability. For example, at the height of the game Pokemon Go's popularity this summer, TP-Link's power banks were completely sold out for a week in the UK across all major retail chains, including Amazon, Tesco, Sainsbury's and John Lewis. As networking goods are TP-Link's major products in the UK, Qiao says his team is also working hard to defend its market share while increasingly selling into the small business market segment. ""In the small and medium business sector, we've partnered up with many local network-installing companies, and leverage on their customer networks to reach more businesses,"" Qiao says. Qiao's team places greater emphasis on maintaining relationships with these customers, providing after-sale customer support. The UK is a crucial part of TP-Link's international strategy, because having a good reputation in a mature market like the UK helps it to expand into developed and emerging markets, Qiao says. In 2015, TP-Link generated revenue of $60 million (55.8 million euros; 47 million), representing 20 percent growth year-on-year. Its team of 50 staff in the UK is multicultural, with only six employees assigned from headquarters. ""The large number of local hires has led to a local culture, but we still champion many typical corporate values central to the TP-Link brand,"" Qiao says. In particular, the Chinese value of efficiency in responding to customer needs and a hardworking attitude are key, because TP-Link usually provides responses to customers within a day, and its customer service line is available 24 hours a day. ""When we get tasks done, we say we work at TP-Link speed,"" Qiao says. cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 12/09/2016 page29)", -585,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618100.htm,ZTE expands with 48% stake in Turkey telecom,,"As part of global expansion, Chinese smartphone giant awaits regulatory approval for latest deal ZTE Corp said on Dec 6 that it would spend up to $101.3 million (94.4 million euros; 79.5 million) to purchase a 48 percent stake in a leading Turkish telecom company, as the Chinese telecom equipment-maker ramps up efforts to expand its business in the country. The company, based in Shenzhen, Guangdong province, said in a filing with the Hong Kong Stock Exchange that the deal, once completed, would make it the largest shareholder of Netas Telekomunikasyon AS. The Turkish Armed Forces Foundation will hold 15 percent. The acquisition is awaiting approval from the Competition Board of Turkey. - Visitors look at smartphones at ZTE Corp booth at the Mobile World Congress in Barcelona, Spain. In the first nine months of this year, ZTE's revenue exceeded $10.35 billion, a year-on-year growth of 4.4 percent. Provided to China Daily ""Netas is one of the largest telecom system integration companies in Turkey. Its abundant local client resources will help us grow a presence there,"" ZTE said, adding that the transaction will be paid for with internal funds. Founded in 1985, ZTE is the second-largest telecom equipment manufacturer in China, after Huawei Technologies Co. It supplies telecom products and services to customers in more than 160 countries and regions. Netas, founded in 1967, posted revenues of $371 million for the 2015 fiscal year. Its customers span telecom carriers, banks, and government agencies, ZTE said. Xiang Ligang, CEO of the telecom industry website cctime.com, says Turkey, given its geographic location, can serve as a steppingstone for ZTE to expand in the Middle East region, where demand for telecom infrastructure is rising. ""It is difficult for Chinese telecom companies to crack foreign markets on their own, due to concerns over information security,"" Xiang says. ""The investment in Netas will help ZTE better localize its products and reduce the trouble of directly dealing with local clients."" Investors responded differently to the move by ZTE, which is listed in both Hong Kong and Shenzhen. The company's stock jumped 3.12 percent in Hong Kong to close at HK$12.56 ($1.62; 1.51 euros; 1.27) on Dec 6, while its Shenzhen-traded shares declined 0.24 percent to close at 16.29 yuan. Fu Liang, a telecom industry analyst, says ZTE is accelerating its global expansion as it tries to out-compete its rivals by migrating to post-4G telecom technology and the Internet of Things market. In the first nine months of this year, ZTE's revenue exceeded 71 billion yuan, for year-on-year growth of 4.4 percent. The firm is also seeking growth in the smartphone sector, launching both premium and budget handsets around the world. Thanks to its inexpensive smartphone devices, ZTE has become the fourth-largest smartphone vendor in the United States by shipments, with a 7 percent market share, according to research firm International Data Corp. masi@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page27)", -586,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618099.htm,Airlines to take direct hit from rising price of oil,,"Chinese airlines are expected to bear the brunt of rising oil prices after OPEC came to an agreement to limit production. In response, the airlines are likely to levy fuel surcharges on domestic and international flights, experts said. On Nov 30, OPEC reached a consensus on production cuts to ease excess global inventory, triggering a jump in oil prices. ""The oil price rise will have a negative effect on domestic airlines. Airlines have very weak abilities to resist the fluctuations of oil prices, and it will be a challenge to their business growth,"" says Li Xiaojin, a professor of aviation economics at the Civil Aviation University of China in Tianjin. ""Airlines should take some steps to hedge against the risks. They can prepare to levy a fuel surcharge on passengers and take other measures to reduce oil consumption, as the impact is likely to be long-term,"" Li says. Since February 2015, all domestic airlines have stopped levying fuel surcharges, as a result of the cost declines of fuel procurement. Li says that in the near future, oil prices are unlikely to surge further or drop significantly. Passengers may consider the total cost of flying, and some are likely to choose trains instead on some routes to save money. Meanwhile, Chinese airlines are also suffering the pain of a weakening yuan. In November, the yuan depreciated steadily against the dollar, beyond market expectations. That depreciation will cause exchange losses for domestic airlines. In the first half of this year, major domestic airlines, including Air China, China Eastern and China Southern, all recorded foreign exchange losses of another 1 billion yuan year-on-year - nearly half of their net profits in the first half, according to their earnings reports. ""The yuan is likely to stay weak against the dollar for awhile. Airlines need to adjust their liability compositions, speed up the repayment of dollar debts, and take other steps such as issuing bonds in yuan and loans in multiple currencies,"" said Su Baoliang, an analyst at Sinolink Securities Co. zhuwenqian@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page30)", -587,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618098.htm,Insurers are thinking big on overseas investing,,"Survey finds many reasons behind companies' plans to diversify assets beyond the shores of their homeland China's insurers are keen to step up overseas investments in the next five years, a survey has found. BNP Paribas surveyed 12 leading domestic insurers and found they are eager to diversify assets and hedge their risks by looking at opportunities beyond popular options like real estate, listed stocks and private equity. Among those surveyed were senior executives and leaders of joint ventures. The respondents said insurers' overseas investments are still at an early stage. On average, only 2 percent of their investable capital is invested overseas. - An outlet of BNP Paribas in Paris, France. Provided to China Daily China's insurers are expected to have assets in excess of 12 trillion yuan ($1.7 trillion; 1.6 trillion euros; 1.4 trillion) by year's end, according to the China Insurance Regulatory Commission. It is estimated that they will have a total asset balance of around 20 trillion yuan by 2020. Insurers will likely have invested around $100 billion in overseas markets by 2020, or 2.7 times the amount invested at the end of 2015. China's insurance regulator has stipulated that domestic insurers' overseas investments must not exceed 15 percent of their total asset balance as of the last year's end. The current level - around 2 percent - is far below this, suggesting there is great potential for growth, the research report said. About 55 percent of respondents said they would like to increase overseas investments to somewhere between 5 and 10 percent by 2020. That would indicate significant growth, the report said. Some 45 percent of respondents were more conservative, saying they would like to increase overseas investment to somewhere below 4 percent. Reasons abound as to why insurers are looking at overseas markets. They include asset diversification, hedging risks, higher returns, a balanced debt ratio and a larger global footprint. ""Overseas investments will help us to obtain assets we don't have in the domestic market. For example, assets of groundbreaking technologies, and assets in the sports industry,"" the research note quoted a senior executive respondent from Shanghai-based ICBC-AXA Life Insurance Company as saying. According to Phillip Benoit, head of the APAC market, BNP Paribas: ""Like their global peers, China's insurers are looking at overseas markets to diversify their investments, hedge risks and gain stable and steady income. But considering the uncertainty in global markets, currency risks and many other factors, China's insurers are both aspiring and prudent."" He says while the United States is still the most popular investment destination, Europe has a lot of good opportunities to offer with a number of undervalued assets. China's insurers need to build up their in-house capacity to allocate these opportunities, Benoit says. Also, they should seek professional help to prevent regulatory risks and get local know-how before entering an overseas market. A separate research note from Z-Ben Advisors, an asset management research and consultancy services provider, said the China Risk-Oriented Solvency System, which was implemented at the beginning of this year, encourages insurers to improve their risk management, giving them one more reason to look for good assets in global markets. wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page28)", -588,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618097.htm,Levitating and hurtling toward a breakthrough,,"Conceivably, regional flight services in China may face tough competition in the next decade from China Railway Rolling Stock Corp Ltd, if the country's railway vehicle manufacturer overcomes all the technical barriers and pushes magnetic levitation or maglev trains (operational speed: 600 km per hour) into the market. In October, the Ministry of Science and Technology decided to transfer certain key research projects to select state-owned enterprises, including CRRC. A high-speed test line for a maglev train, with a length of no less than 5 kilometers, is expected to be completed in Qingdao of East China's Shandong province by 2021. ""Even though our European rivals previously were trying to hold back our market expansion in developing wheel technology-based high-speed trains, they have failed and generally there is no European country capable of competing with China in this field,"" says Jia Limin, head of China's high-speed rail innovation program. However, Japan remains a strong competitor not only in the areas of bullet train operation and development but high-speed maglev train technologies. The country plans to put its 500 km/h maglev trains with cryogenic superconducting technologies into operation by 2027. ""Therefore, we must make a breakthrough as soon as possible to develop maglev trains that can run at speeds between 200 km/h and 600 km/h, to ensure we'll have adequate market share in both domestic and global markets in the future,"" says Jia. The project will be led by CRRC Qingdao Sifang Co Ltd, one of the three subsidiary bullet-train makers. Investment in these projects, which include building of a research and development institute, will reach 3.22 billion yuan ($465 million; 431 million euros; 364.5 million). The railway major will also start R&D of cross-border high-speed trains that can run at 400 km/h and alternate between different track gauges, ranging from 60 cm to 1.676 meters. Compared with other types of urban rail transportation, maglev trains are quiet and can achieve high speeds because they don't actually ride on rails with wheels but hover centimeters above the track through the use of magnets, avoiding speed-reducing friction, says Ren Jian, deputy director of CRRC's technology management department. The world's first maglev line was launched in Shanghai in 2002, connecting a metro station to Pudong International Airport. With speeds of up to 430 km/h, its 30-km route takes less than eight minutes to travel. ( China Daily European Weekly 12/09/2016 page26)", -589,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618096.htm,IN BRIEF (Page 24),,"- A manufacturing robot is demonstrated at the World Intelligent Manufacturing Summit on Dec 6 in Nanjing, Jiangsu province. The three-day event attracted 285 exhibitors from home and abroad. Cui Xiao / For China Daily 51 companies added to trading board Some 51 small and medium-sized enterprises were added to China's New Third Board, increasing its number of listed companies to 9,786 as of Dec 2. Turnover on the board reached 4.65 billion yuan ($676 million; 628 million euros; 535 million), up 4.7 percent from a week ago. A total of 2,304 SMEs have been added to the board since the beginning of 2016, with combined market value of more than 3.74 trillion yuan. The New Third Board, or the National Equities Exchange and Quotation system, helps SMEs transfer shares and raise funds. McDonald's to keep minority stake US fast-food chain McDonald's Corp is looking to raise up to $2 billion (1.85 billion euros; 1.58 billion) from the sale of its Chinese mainland and Hong Kong restaurants after deciding to keep ""a significant minority stake in the business"", a person with direct knowledge of the plans said on Dec 6. The company has picked a consortium led by private-equity firm Carlyle Group LP and Chinese conglomerate CITIC Group Corp to buy the restaurants. Its decision to retain the minority stake lowered the price tag for the business from the possible $3 billion expected previously, said the person, who declined to be identified because details of the deal are not public. McDonald's wants exposure to future growth in the world's second-largest economy, which is why it decided to maintain the stake, the source said. Chinese company's US deal blocked The Foreign Ministry expressed displeasure on Dec 5 after US President Barack Obama blocked a Chinese investment fund from acquiring the US business of German semiconductor equipment maker Aixtron on the pretext of national security. Foreign Ministry spokesman Lu Kang said the government had always supported Chinese firms investing overseas on the basis of market principles, international rules and respecting local laws. The Aixtron deal is purely a commercial matter, he said. Goldman Sachs sees slower 2017 growth Goldman Sachs expects China to register lower annual growth in 2017, as property and auto sales are likely to decelerate. The bank forecasts a slight slowing in China's GDP growth to 6.5 percent in 2017, from a forecast of 6.7 percent in 2016. Although Goldman expects only a modest slowing in real estate investment in 2017, it sees both price and transaction growth slowing significantly, meaning a much lower contribution to China's GDP growth from the housing sector in 2017. In a report to clients, the bank noted auto sales growth may slow sharply to 3 percent in 2017, from an estimated 15 percent this year, as the government is likely to cut tax rebates for auto purchases in half. Coal-bed methane production to rise China expects to increase its proven coal-bed methane reserves by 420 billion cubic meters during the 2016-20 period, the National Energy Administration said. The country seeks to extract 24 billion cubic meters of the clean energy source, and have three industrial bases by 2020, according to a development plan released by the NEA. Coal-bed methane will likely account for 13 percent of the country's natural gas output by that time, according to the administration. Before new tax, luxury car sales increase Luxury car dealers in China made calls to their best prospects, urging them to buy to avoid paying extra taxes on their gilded rides. Some distributors sold as many cars on Dec 7 night as they normally deliver in three months, as buyers sought to beat the implementation of a 10 percent levy in the form of value-added tax on vehicles costing more than 1.3 million yuan, according to Wang Cun, a China Automobile Dealers Association official. Australia, China agree to open aviation Australia and China reached an agreement to open up the aviation markets of the two countries, Australian Minister for Infrastructure and Transport Darren Chester and Minister for Trade, Tourism and Investment Steven Ciobo said in a statement on Dec 4. The new arrangements will remove all capacity restrictions between Australia and China for airlines, allowing Australian tourism businesses to take advantage of the largest and fastest-growing consumer market in the world. Coal-rich province exceeds target cuts Shanxi province, which supplies about a quarter of China's coal, shut down or restructured 25 mines this year, cutting 23.25 million tons of coal production capacity and surpassing the target of closing or restructuring 21 coal mines and reducing 20 million tons of production this year. The target was set in August as part of a plan to cut overcapacity between 2016 and 2020, according to local land and resources authorities. At the end of October, Shanxi's coal enterprises had inventories of 30.84 million tons - 4.91 million tons lower than in September. China Mobile forges link with Alibaba China Mobile and Alibaba Group Holding inked a comprehensive strategic partnership on Dec 7, as the world's largest telecom carrier by subscribers and China's largest e-commerce firm joined hands to boost growth. Under the agreement, the two sides will work closely in basic telecommunication services, information infrastructure, marketing and emerging sectors, China Mobile said in a statement. The move came shortly after Alibaba inked a similar deal with China Unicom, the country's second largest telecom carrier, last month. China Mobile is stepping up efforts to expand its presence in the internet industry. China Unicom also wants to arrest its continuing profit decline by partnering with internet giants. BoC committed to Belt and Road Initiative Bank of China is committed to the Belt and Road Initiative, Tian Guoli, the chairman, said at the bank's New Year's Reception 2017 in Beijing. The bank is looking forward to grasping the opportunities the initiative presents in various countries for entrepreneurs and financiers, Tian told nearly 300 representatives of foreign embassies, multinational companies and international financial institutions in China and top executives from domestic financial institutions closely affiliated with the initiative. Tian said the bank puts great emphasis on exchanging ideas with friends from all sectors of the community. Alipay teams up with European banks Alipay, the popular digital payment tool run by China's Ant Financial Services Group, announced a partnership with three European banks on Dec 6. The payment service, which has 450 million active users, inked deals with financial institutions BNP Paribas, Barclays, UniCredit and SIX Payment Services, a major payment service company, to allow more European merchants to accept Alipay as a payment tool in Europe. Ant Financial, which is the internet finance affiliate of Alibaba Group, has been gearing up for global expansion. Helping more Chinese outbound travelers use Alipay overseas is one of the major steps in that effort. (China Daily European Weekly 12/09/2016 page24)", -590,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618095.htm,Alipay gets warm welcome in Santa's hometown,,"China's high-spending tourists are reaching some of the most remote parts of Europe - evidenced by the fact that the Chinese payment platform Alipay has gained acceptance in more than 100 shops, restaurants and hotels in the northern Finnish city of Rovaniemi within a month. Rovaniemi, capital of the northern Finnish province of Lapland that's famous for its Santa Claus Village tourist attraction, is also the location Alipay chose to launch its 12.12 shopping festival, which gives discounts to Chinese shoppers between Dec 9 and 12 across 70,000 merchants in 16 countries around the globe. The launch ceremony on Dec 6 was attended by Rovaniemi Mayor Esko Lotvonen, some of Alipay's local merchant partners and some Chinese tourists. Lotvonen said Alipay's choice to launch the festival in Santa Claus Village was a token of friendship between China and Finland and his hopes to welcome more Chinese tourists. - Merchants and Chinese tourists attend the opening ceremony of the 12.12 shopping festival at Santa Claus village in Rovaniemi, Finland, on Dec 6. Cecily Liu / China Daily Alipay is the payment arm of Ant Financial Services Group, an affiliate of internet giant Alibaba Group Holding. Alipay has 450 million users in China and is expanding rapidly internationally, offering tourists easy and secure payment support. Now in its third year, 12.12 is a shopping festival that Alipay has used to encourage more purchases - similar to the 11.11 Singles Day shopping event in China. Whereas 11.11 focuses on online shopping, 12.12 offers are only available when making purchases offline. In Finland, Alipay cooperates with mobile payment provider ePassi, which currently works with about 10,000 merchants in Finland. When Chinese shoppers pay with Alipay, Finnish merchants will receive money in their ePassi wallets within seconds. ""Typically, Chinese travelers in Finland encounter two challenges: tourist information is not widely available in Chinese, and they often need to carry lots of cash. Alipay's entry into Finland solves both challenges,"" says Alexander Yin, chief financial officer of TCG, the parent company of ePassi. Beyond payment convenience, Alipay's app also provides practical information about its partner merchants in Finland, helping these merchants to more effectively attract Chinese tourists. It's increasingly being embraced. ""We are so glad to add Alipay as a new payment method, after having this request from Chinese shoppers for so long,"" says Tanja Keisu-Makinen, the Helsinki Airport store manager of Finnish watchmaker Lindroos. Tina Jokinen, the Helsinki Airport store manager for local glassworks manufacturer Littala, says, ""We've already had some Alipay transactions in our store, even though we've just launched it for a week."" Alipay was used by 120 million customers overseas last year. It also cooperates with Germany's Wirecard and France's Ingenico, in a similar way to its links with ePassi in Finland. ""Alipay gives me so much convenience; it's very easy to use,"" says Cao Binjie, 27, a tourist from Guangzhou who used Alipay to buy a deerskin mat, magnets and postcards from the Santa Claus Village souvenir shop. masi@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page27)", -591,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618094.htm,Buying a luxury car? Pay 10% surtax,,"Move aims to curb lavish spending, but wealthy 'won't mind' China is levying an additional consumption tax on high-end luxury cars to curb lavish spending and emissions. But analysts say the move is unlikely to have a major effect on car sales. Starting on Dec 1, cars with a price tag of 1.3 million yuan ($189,000; 177,000 euros; 148,000) and above will be subject to an additional 10 percent tax, the Ministry of Finance said. That's an additional 130,000 yuan. - Visitors are attracted by a luxury car model at an auto show in Beijing. Cars with a price tag of 1.3 million yuan ($189,000) and above will have an additional 10 percent tax levied on them from Dec 1. Wang Zhuangfei / For China Daily The move is to ""guide reasonable consumption, lower emissions and save energy"", according to the ministry. Bentley Motors China said in a statement that it respects and will abide by the additional tax policy, but ""at this stage, it is too early to assess the full implications on our operations"". Aston Martin China said the policy may have some impact on the brand's performance in China in the near future, but the long-term effect may take time to appear. ""We constantly adjust to specific conditions in the markets in which we do business, and will do so for this taxation change in China,"" the British brand said in a statement. John Zeng, managing director of LMC Automotive Consulting Shanghai, says the new move is ""a little bit too mild"" and will not affect the sales of luxury brands such as Aston Martin, Bentley, Ferrari and Rolls-Royce. ""They have a relatively stable customer base and those who can afford a 1.3 million yuan car won't mind paying an extra 10 percent,"" Zeng says, adding that any tax less than 30 percent, or even 40 percent, will not likely yield the desired results. Cui Dongshu, secretary-general of the China Passenger Car Association, says the tax hike is the latest move in the country's structural reform, which is a sign of the government's intention to stimulate mass consumption while curbing the consumption of luxury goods. But, he says the move's effect on the overall auto market would be negligible because of the limited sales of such cars. Most super luxury brands do not release their sales figures, but data quoted in media reports show that Bentley Motors sold 1,600 cars in China last year, while Ferrari delivered 673 units. In the same year, 24.6 million cars were sold in China, the world's largest auto market since 2009. Many super luxury carmakers have been eyeing China as one of their most important markets. lifusheng@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page30)", -592,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618093.htm,Forex reserves decline by 2.2% in November,,"The recent strengthening of the US dollar played a key role in the drop in China's dollar-dominated foreign exchange reserves last month, but capital outflow pressure will not persist because market speculation is expected to wane after the US Federal Reserve makes its interest rate decision, said analysts. Official data on Dec 7 showed that foreign exchange reserves fell by $69.1 billion (64.1 billion euros; 54.6 billion) to $3.05 trillion in November, or 2.2 percent. The monthly dollar-dominated reserve drop came amid a strong US dollar rally, with a potential interest rate hike in the United States expected to come in the near future, according to Yan Ling, an economist at China Merchants Securities Co. The Chinese yuan depreciated by 1.7 percent against the greenback in November, during which the trading volume in the foreign exchange market increased for the third consecutive month - up by 9.3 percent month-on-month. ""But the decline in forex reserves is expected to slow in December when the market is expected to calm down after the US decision to raise its interest rate or not,"" Yan says. A string of measures on strengthened supervision for outbound investment rolled out by the central authorities aroused concerns over the government's strong intention to curb capital outflows. Four top regulatory bodies tightened screening of overseas investment projects earlier this month. The National Development and Reform Commission and three other financial regulators said on Dec 6 that China will rein in risks in outbound investment, targeting speculative behavior trying to move money out of China. Ivan Chuang, vice-president of Moody's Investors Service Inc's Asia-Pacific Regional Management Group, regarded stricter supervision as a necessary move as the nation steps up the opening of its economy. Chuang said that he did not see the necessity for the government to control only outflows without regulating inflows. ""The government should be more willing to see balanced capital flows,"" he said. ""Although investors' appetites do become uncertain as a weaker yuan leads them to diversify their assets, it is understandable to see the government tightening control to fend off risks in outbound investment."" wangyanfei@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page25)", -593,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618092.htm,Ex-WTO chief lauds China's trade,,"The European Union will soon grant China the recognition it has long coveted as a market economy, former World Trade Organization head Pascal Lamy says. He made the prediction as the 15th anniversary of China's accession to the organization approaches on Dec 11. Lamy, who was the WTO's director-general from 2005 to 2013, said in Beijng recently that while the EU is likely to recognize China's market economy status, it will also probably change its anti-dumping regulations in a nondiscriminatory way. As a condition for being admitted to the WTO, China agreed in 2001 that other members could treat it as a ""non-market economy"" for 15 years, ending on Dec 11 this year. This status has made it relatively easy for aggrieved parties to prosecute anti-dumping claims against China. Lamy says that changing anti-dumping regulations has long been a subject of debate in the EU, and changes that are made are likely to affect not only China but all other countries that trade with the EU. The EU will recognize China's market economy status, he says, ""but in some way anti-dumping measures will be reformulated"". Lamy, who is now honorary president of the Paris think tank Notre Europe, played a key role in negotiating China's admission to the WTO. Reviewing the past 15 years, he says China has fulfilled the commitments it made when it joined the organization. As globalization has proceeded, it has also increased the value it adds to the goods it produces, and that has been important in the country's economic growth. ""China adds more value to what it produces. Twenty years ago it would import 60 and export 100, adding 40 of value to the 60 it imported. Today it imports 30 and adds 70, instead of 40, and that is good news for China,"" Lamy says. The country has pledged to open up more and wants to proceed with more economic reform, and that is a good signal, Lamy says, adding that he hopes more action will soon be taken, particularly regarding the services markets, which will help push domestic consumption and benefit Chinese consumers. ""Better service will come from more competition in the service industry. And more competition in the service industry will come with more services being imported or foreign service providers establishing themselves within the Chinese system,"" he says. The opening-up of trade is still the main trend in the world, he says, even if there is opposition in the EU to Chinese steel imports, and there is an anti-free-trade backlash in the United States. Protectionism cannot guarantee people's livelihoods and social well-being but is in fact destructive and will not make a return, he says. ""My understanding is that the connections in today's world between production systems, between trade flows, between financial flows, between people flows are such that stepping back from openness would be damaging for everybody, much more than it was in the past."" In Europe, despite Britain's decision to leave the EU, things are stable, and notwithstanding some calls for protectionism, it will not increase, he says: ""Trade remains open. If you look at trade today, it is more open than yesterday, when it was more open than the day before, so the direction is right."" While protectionism was not becoming a reality, vigilance was needed, Lamy says: ""We cannot in today's world close our borders, build walls everywhere and go back to the Middle Ages."" Reducing obstacles to trade, whether multilaterally, bilaterally or regionally, should be the common goal for all organizations, he says. And the major obstacles to trade in the future might be those stemming from differences in standards, packaging and safety regulations about how to protect consumers from risks such as safety, or traceability requirements. For each country to benefit from the opening-up of trade, they need to keep pushing to build global trade systems and environmental rules that are equitable, he says. chenyingqun@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page25)", -594,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618091.htm,OPEC cut likely to affect upstream sectors,,"OPEC's agreement to curb crude oil production for the first time in eight years will have an impact on the upstream sectors of China's oil giants, analysts say. Domestic oil companies that focus on upstream sectors - oil exploration and production - are likely to see an increase in revenue as the deal reached by OPEC on Nov 30 is believed designed to help bolster global oil prices, at least in the short term, says Wang Lu, an Asia-Pacific oil and gas industry analyst from Bloomberg Intelligence. ""The state-owned China National Offshore Oil Corp, which has more upstream business related to oil and gas exploration and production, will be more exposed to oil prices than its other two competitors - China National Petroleum Corp and China Petrochemical Corp,"" Wang says. The impact on CNOOC is likely to be the greatest of the three, with the recovery of oil prices improving CNOOC's revenue and operating income, she said. CNPC and Sinopec focus more on downstream oil and gas sectors, including refining and marketing, which gives them an edge when the oil price is low, Wang says. OPEC will reduce output by about 1.2 million barrels per day, to 32.5 million in January. Oil prices have dropped drastically since the second half of 2014. Oversupply and a sluggish world economy were among the factors that drove prices down. OPEC produces about one-third of the world's oil, according to Reuters. However, Wang says it still takes time to tell how big the impact of the move will be in accelerating the industry's recovery. ""A promise to cut is one thing; to deliver it is another,"" Wang says. ""The OPEC agreement to cut output has improved market sentiment and led to a price surge. It will take months to monitor whether OPEC members actually deliver on their promise."" Li Li, energy research director at ICIS China, says that OPEC's decision ""will surely have some short-term effect in bolstering global oil prices and helping oil and gas firms in China"". Analysts said soaring oil prices in the next three to five years would be unlikely, considering the current demand and supply situation in the oil market. US shale oil is likely to return to volume growth next year. ""US shale oil may serve as the stabilizer to oil prices and cap the amount of recovery,"" Wang says. ""All the moving parts, including the OPEC cut and demand growth, make the rebalancing a dynamic process and not easy to forecast."" zhengxin@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page30)", -595,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618090.htm,Copenhagen to co-host 2018 Design Week,,"Event will showcase products from creative firms, help boost exports and attract more Chinese visitors Copenhagen was selected to co-host Beijing Design Week 2018, which will put Danish design on display before a large international audience. ""I am certain that this will benefit Copenhagen's creative firms, help boost exports and attract more Chinese visitors to Denmark,"" Frank Jensen, lord mayor of the Danish capital city, said at the First China Denmark Regions and Cities Forum in Beijing on Dec 6. Beijing Design Week is China's leading design festival, organized by the Ministry of Culture and the Beijing Municipal Government. It has been held every year from late September to early October since 2011. Frank Jensen (left), lord mayor of Copenhagen, and A. Carsten Damsgaard (right), Denmark's ambassador to China, ride on bikes in Beijing. Provided to China Daily Previous co-hosts included London, Milan, Dubai, Amsterdam, Seoul and Barcelona. An estimated 5 million visitors come to Beijing Design Week every year. Copenhagen will invite Danish organizations and companies in the design industry to be part of the co-hosting effort, Jensen said. Everything from artistic design and gastronomy to innovative urban planning and computer game programming, will be included. Copenhagen will also have an exhibit in Beijing's 798 art district during Design Week 2018, as well as launching events throughout the Chinese capital, in the same way events are presented in Denmark. ""We intend to use Beijing Design Week 2018 as an opportunity to make design an even bigger part of our efforts to promote Copenhagen and encourage more people to visit here,"" says Mikkel Aaro-Hansen, managing director of Wonderful Copenhagen, the city's official tourism bureau. Market analysis by the bureau found that design is an important motivation for Chinese travelers' decision to visit the city. About 80 percent of people from China who visit Copenhagen report being interested in buying Danish design products. Jensen was among the Danish guests visiting Beijing and took part in the First China Denmark Regions and Cities Forum on Dec 5 and 6. The forum had about 400 attendees. Danish Minister for Nordic Cooperation and Gender Equality Karen Ellemann, together with Li Xiaolin, president of the Chinese People's Association for Friendship with Foreign Countries, witnessed the signing of six cooperation agreements - on agriculture, wastewater treatment, dairy and organic farming, tourism and finance - between Chinese and Danish commercial and municipal partners. ""Both Denmark and China are trying to engage with more local-level governments to enhance the bilateral partnership,"" says A. Carsten Damsgaard, Denmark's ambassado to China. ""During this two-day forum, the Danish competencies in sectors that are prioritized in the Chinese government's reform plans will be showcased and discussed by stakeholders."" Enhanced cooperation at the local political level is at the center of Sino-Danish bilateral relations. At the political level, a letter of intent was signed between the Harbin government in Heilongjiang province and the Royal Danish Embassy on deepening agricultural cooperation, along with a joint action plan between the Beijing Municipal Tourism Commission and Wonderful Copenhagen, to promote tourism. In a memorandum of understanding between government and business, Zhaoqing city in Guangdong province joined hands with the Danish pump manufacturer Grundfos to equip two new hospitals with the latest wastewater treatment solutions. Europe's leading milking operator and equipment manufacturer S.A.Christensen & Co inked two memorandums of understanding on dairy farms and organic farming with its local business partners in the Xinjiang Uygur autonomous region and Hebei province. renjie@chinadaily.com.cn ( China Daily European Weekly 12/09/2016 page28)", -596,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618089.htm,China-UK dual degrees now within easier reach,,"Chinese students will have better chances of obtaining top-notch dual China-UK degrees - and at a lower cost - thanks to an initiative advancing student mobility and educational exchanges between the countries. The China-UK Association for the Humanities in Higher Education joined forces with 12 top-tier universities to strengthen academic ties and promote people-to-people exchanges. ""We should take full advantage of the cluster competency of the alliance to forge a multilateral academic collaboration model,"" says Minister of Education Chen Baosheng, who witnessed the formation of the alliance in Shanghai. Chen says the collaboration strives to help schools attract talented international students, and improve global visibility and prestige. The top schools include Tsinghua University, Peking University, Oxford University, the London School of Economics and the University of Cambridge's Needham Research Institute. In addition to joint research projects and forums, universities will offer teaching and research activities comprising double degree programs, summer schools and research trips for prospective students. The Young Scholar Forum serves as the core cultural and academic exchange avenue for the association, with the Young Talent Program set up to encourage students to tap into innovative projects and startups. Among the latest efforts is the LSE-Fudan Institute for Global Public Policy, a school preparing future leaders, and contributing to global governance and public affairs. The double degree program to be rolled out next year will feature cross-disciplinary teaching and recruit master's students from China and abroad. ""With China making strides on the international stage, we see pressing needs for talented people who will be able to properly present our stances in global arenas such as international organizations. That, in part, propels us to establish this joint program,"" says Jing Yijia, vice-director of foreign affairs at Fudan University and a professor at the School of International Relations and Public Affairs. A collection of scholarships is up for grabs for students to relieve their financial burdens, Jing says. The school is also mulling the possibility of offering students the option to take all courses in China but still be able to earn two degrees, which would further trim tuition fees and living expenses. ""I managed to access research opportunities at two institutions and diversify my education,"" says Che Rui, a recent graduate with a dual master's degree in global media and communications from Fudan and LSE, a predecessor program that dates to 2007. Che, who now works for a well-known securities broker in Shanghai, says the double degree gives him a competitive edge in the job market. With the aid of the dual degree programs, universities can pool educational resources and use complementary teaching expertise to build study programs that they otherwise wouldn't be able to offer, according to Katherine Morton, professor and chair of Chinese international relations at the University of Sheffield. ""Many Chinese students come to study at our university each year, and I expect the number to grow. It's highly important that we have such a dialogue mechanism, and we'll get more exchange programs up and running,"" she says. China remains the largest source of international students studying in the UK. According to the British Council in June, one in three non-EU students studying in the UK in 2014-15 were from China. hewei@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page25)", -597,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618088.htm,Quotable,,"I think the EU will recognize China's market economy status, but in some way anti-dumping measures will be reformulated."" Pascal Lamy, Former World Trade Organization head, in an interview as the 15th anniversary of China's accession to the WTO approaches on Dec 11. ""We believe that the time is right for renewal in the mobile industry. The market is fatigued and flooded with undifferentiated products. Consumers are looking for a technology with a clear purpose, something that is useful, exciting, branded and trustworthy."" Florian Seiche, president of Finland-based HMD Global, the parent company of Nokia. Seiche says Nokia will make a comeback next year with a plan to launch new smartphones. ""Although some people say that China's leading venture and private equity market is facing a challenge of capital shortage, data show this is not true."" Ni Zhengdong, chairman of leading venture capital and private equity research company Zero2IPO. Ni said Chinese VC and PE institutions are projected to manage more than 10 trillion yuan by 2020. (China Daily European Weekly 12/09/2016 page24)", -598,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618087.htm,"Proceed with caution, guru warns",,"A longtime admirer of China, top economist says he is concerned about the country's rising level of debt Ruchir Sharma insists he writes for the people who have to live with the consequences of their decisions. The chief global strategist at Morgan Stanley Investment Management certainly has no shortage of readers. His latest book, The Rise and Fall of Nations, is already a New York Times international bestseller ""Books about global macro economics and political ideas are often typically written by academics and have zero practical value,"" he says. - Ruchir Sharma, chief global strategist at Morgan Stanley Investment Management, says China, and Asia as a whole, have proved that to have a successful economy it is important to put ""factories first"". Provided to China Daily ""They often have long time horizons and don't look at what the world is going to look like in the next five or 10 years, which I think most people are concerned with. I wish I could have a client to whom I could say, 'Hey, come and check out my performance in 20 years from now'. It just doesn't work like that."" Sharma, who is also a regular contributor to the Wall Street Journal and Washington Post and was speaking from his home in New York, is something of a celebrity economic guru. His first book, Breakout Nations: In Pursuit of the Next Economic Miracles, also a best seller, firmly pricked the hype bubble surrounding emerging nations, questioning the performance of the BRICS economies such as his native India, Russia, India, Brazil and South Africa. Last time, he argued that China was the only emerging economy likely to break out of the so-called middle-income trap, but in his new book, he is less optimistic about the immediate outlook for the world's second-largest economy. ""My take on China is that it is a country that I grew up completely in awe of. I say in the book, however, that I am now worried about the pace of increase of its debt level,"" he says. ""At the peak of the US housing bubble in 2008, it used to take $3 of debt to create $1 of GDP growth in the United States, which is considered to be extreme. In China this year, it is taking $4 of debt to create $1 of GDP."" The strategist, who was brought up in India (where he remains famous) but moved to the US 14 years ago, is now not as confident China will find it so easy to escape the middle-income trap, as he earlier predicted. The government's own target is to achieve high-income status in 2020 by doubling its 2010 GDP. ""I think the target is a bit of a risk just because of the way the debt level has exploded from 2009 onward. So the probability of China achieving that target has declined. It might still happen, but the whole issue is that old driving slogan - it is better to arrive late than never at all."" The book, which as usual is brimming with interesting perspectives, comes up with 10 criteria on which a country can be judged. They are: demographics; whether a country is ready to embrace reform; wealth inequality; the government's role in economy; whether a country is capitalizing on its geographic location (""The Geographic Sweet Spot""); manufacturing investment (""Factories First""); inflation (""The Price of Onions""); whether its currency is over- or undervalued; debt; and the hype factor (how the country is portrayed by global opinion makers). ""Not all of them are original to me,"" says Sharma. ""There is a body of work done on things like low inflation or high investment. Some of it is original, like the entire chapter on The Kiss of Debt, focusing on the five-year time horizon and the increase in debt as being what matters. The idea of good and bad billionaires (wealth inequality) is a totally original concept I've tried to create. It has just not all been strung together in this format, and that is what I have tried to do here."" He believes that China, in terms of its billionaires, has largely benefited, with a number - such as Alibaba's Jack Ma - playing an influential role in the economy. The top 10 Chinese tycoons control just 1 percent of GDP in China, compared with 12 percent in India. ""The share of billionaires in the economy is at a manageable level. It's not like Russia, India or Mexico where the share of wealth becomes just too large and sows the seeds of political resentment,"" he says. Sharma says the way the government has retreated from many parts of the economy over the past 30 years has also been of benefit to China. ""It went from being a very big obtrusive all-controlling state to one that has systematically reduced its share (of the economy) over time. And that has done very well for China. You have, however, seen an increase in state involvement to try and shore up economic growth as part of the stimulus."" Sharma, also says that with recent moves like the Belt and Road Initiative, the government has tackled the problem that the west of the country is not in a geographic sweet spot, being handicapped by being landlocked. ""With the whole Silk Road project, China has made use of its geography. China has really been very good about opening up its borders compared to other countries in the region, such as India."" Sharma says China, and Asia as a whole, have proved that to have a successful economy it is important to put ""factories first"" and have a manufacturing base, in contrast to Africa and South America. He does not believe, as some argue in Africa, that an economy can easily move from agriculture to services in one fell swoop. ""Although it sounds theoretically OK, we just haven't seen any evidence of it so far. So, for now, I would say factories first."" Sharma, an important Wall Street figure at the center of one of the top financial institutions in the US, says some of the rhetoric that has come out of Trump Tower about China does not stand up to scrutiny, particularly in regard to it being a currency manipulator. ""Anyone who knows the world knows that the Chinese currency is basically overvalued and not undervalued,"" he says. The investment strategist says it is difficult to know what 2017 will bring but he says it is wrong to assume that China can continue growing year after year without encountering a setback at some point. ""In the past 100 years the United States suffered from a dozen recessions and a Great Depression and has still managed to be the premier economy in the world. It is perfectly reasonable to expect that China will have downturns or even recessions. That's just the laws of economic nature."" andrewmoody@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page32)", -599,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618086.htm,Of good deeds and online fog,,"A father's plea to help his cancer-stricken daughter embroiled him in controversy. The truth was uncovered by journalistic diligence. Within half an hour on Nov 30, I went on a personal roller coaster between feeling mildly good about myself to feeling duped. It was all because I had forwarded an article on WeChat. The article detailed the difficulties faced by Luo Er, a reporter in Shenzhen, whose 5-year-old daughter, Luo Yixiao, was in intensive care for leukemia. He mentioned the treatment could cost between 10,000 yuan ($1,500; 1,390 euros; 1,186) to 30,000 yuan a day. But instead of explicitly asking for a donation, he said forwarding his article would suffice, as a third party would pay 1 yuan each time it was reposted. I normally refrain from doing such ""good deeds"" but Luo's status as a journalist, his recounting of the details of his daughter's situation and his noncoercion in seeking public support lent it credibility. Most crucial of all, my brother recently died of colon cancer, and I had a reflex of empathy for Luo. Little did I know that when I was reposting it to my friends on the app, the piece was being debunked: Luo had three properties in the city where real estate prices are sky high. He had vastly exaggerated his financial need. The whole thing was a scam concocted by a company whose goal was to accumulate eyeballs. I quickly deleted my post, feeling bad about anyone who might have lost money because of my impulsive act. But I also thought things weren't as clear-cut as they were made out to be. Thanks to the timely reaction of local media and relevant organizations, the truth emerged the next day. And indeed, it was not all black and white. The medical condition of Luo's daughter was accurate. In China, it would be a gross violation of ethics for a parent to make up such a claim. It would be seen as a curse on one's child. Luo indeed has three properties - one in Shenzhen, where the family resides, and two in neighboring Dongguan. The Dongguan apartments have not been issued ownership permits yet, which makes resale a bit hard. And all three units are far from being highly valued. Luo's monthly salary is 4,000 yuan, and he is the only breadwinner in his household. It seems the family is on the lower end of the middle-class spectrum. Luo's deal with a marketing firm was not complicated. The company would pay him a minimum of 20,000 yuan and a maximum of 500,000 yuan for the total number of repostings, accounting for the 1 yuan donation. But I still cannot figure out whether the donations from readers of the post would go to the firm or to Luo. Anyway, a total of more than 2 million yuan was raised before Luo told people to stop sending money. Now comes the part I would like to dwell on: the amount needed. The hospital has revealed that the total cost so far for the treatment of Luo's daughter is around 100,000 yuan, and insurance has covered most of it, with Luo paying some 20,000 yuan out of his own pocket. This was later confirmed by Luo himself. This is an amount most Chinese families can afford - even without putting up any asset for sale. In the past year I have learned firsthand that money is often not the make-or-break factor in treating a cancer patient. Most people have the notion that the more money we can spend, the more likely our loved ones can be saved. But in most cases that I know, this is not true. Sure, some treatments are costly and not covered by insurance. But the cruel truth is, the miracle cure is simply not there yet for any amount of money. The rate of cancer survival depends on early diagnosis. I got Opdivo, a very expensive drug, for my brother two days before he passed away. The doctor told us that it works well for most patients with skin cancer. For others, the likelihood of a cure is very limited. Now, my sister-in-law wants to donate the remaining medicine to someone who cannot afford it. But the change of hands must be authorized and explained by a doctor, I insist, because I fear the recipient may be misled by the high value of the drug into thinking it is a panacea. I honestly believe that China's medical system covers most who need help and the few who fall through the cracks can be helped by philanthropy, including online donations in small amounts. Judging from all the reports, I have a feeling that Luo did not set out to dupe anyone. When his daughter was taken into an intensive care unit, it was natural for him as a father to feel sudden despair. He exaggerated the amount needed probably because he was trying to cover future medical costs. Also, as he said, he never expected his article to go viral. Most such pleas never leave one's circle of acquaintances. There is a streak in the Chinese mentality that favors exaggeration and simplification. Luo may be an example of it, but those who accuse him of various ""sins"" and ""crimes"" seem more culpable. They rely on hearsay instead of conducting investigations. The road to the moral high ground is always crowded with people who think in either/or terms. I salute those who uncover fabrications of ""good deeds"". About a year ago, there was a father's post about his drive with his teenage son to the western part of Sichuan province. The son was suffering from altitude sickness, but the father didn't understand. By the time they sought help at a local hospital, it was too late. The story was presented as a cautionary tale for travelers from low altitudes who are unaware of such risks. There was not a whiff of financial gain. But the hospital that was mentioned dutifully checked its records and found no such incident. To date, I have no idea what the hoax was about. Maybe it was a novelist who forgot to state he was writing fiction. In the age of the internet, even a token gesture of giving 1 yuan or forwarding a post requires a certain familiarity with journalistic ethics and properly vetting and double-checking things. I just don't know whether this is a sad or glad turn for the public. By Dec 1, Luo, along with Tencent, the online platform where the fund was raised, and other relevant parties issued a statement that the money would be returned - every cent of it. Contact the writer through raymondzhou@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page22)", -600,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618085.htm,Village revival,,"A county in East China is part of an effort to save centuries-old houses before they succumb to modern pressures Songyang does not even have a taxi. Located in Lishui, Zhejiang province, the county of 240,000 population is the exception in East China. Thanks to its well-preserved old villages, its people call their hometown the best kept secret in Jiangnan, a term used to describe the area south of Yangtze River, one of China's most developed regions. Youtian village in Songyang has 312 registered residents. Its few old houses with yellow earthen walls and black tiles point to its centuries-old history. Today, about 10 old structures remain in the village, having withstood the vicissitudes of nature for about 500 years. - Villagers dry newly harvested sweet potatoes under the sun in Youtian village in Lishui, Zhejiang province. Photos by Wang Kaihao / China Daily - Youtian village has a history of more than 500 years and is now on the national list of ""traditional Chinese villages"". ""Traditional landscapes cannot be allowed to be destroyed by urban lifestyles,"" says Ye Lianhan, head of the village committee. ""There are new houses amid the old ones, but we have reconstructed their roofs and repainted their walls to make them blend in."" Once upon a time, Ye and other residents were faced with the dilemma of how to deal with the crumbling of many old houses. ""We feel terrible to see the old houses collapse,"" he says. ""They belong to our ancestors, so we wanted to ensure that they don't become ruins."" But the residents did not have enough money to renovate, and local cultural authorities were reluctant to finance the restoration of privately owned property. Fortunately, a trial project was launched in 2015 to save the houses before they fell apart. The China Foundation for Cultural Heritage Conservation, a Beijing-based public fund, offered an option to the villagers to renew their homes. ""We were provided with half the money we needed to restore the houses, and the rest we managed ourselves,"" Ye says. ""The villagers decided how to use their houses in the future, and renovation plans were adjusted accordingly."" Fifty villages in Songyang, including Youtian, are now on a national list of Traditional Chinese Villages. This puts it at the top of county-level administrative regions in East China, and there are still dozens of similar villages that have not made the list yet. Meanwhile, the foundation plans to spend 40 million yuan ($5.8 million; 5.5 million euros; 4.6 million) in Songyang on the renovation of other houses in the area. The county has also set up a special administrative office to supervise the use of funds. More than 1,000 houses in 80 local communities will benefit from the money. The foundation wants to be sure that the money is spent wisely. ""Sometimes, when too much money is spent by the government on restoration, the result is often not ideal and does not cater to the residents' needs,"" says Li Xiaojie, chairman of the foundation. ""So, those who use the houses should have more say. It's equally important to let residents live comfortably after the restoration."" He also says that villagers may take things for granted if the government repeatedly takes the initiative to repair the old houses. Now, residents must apply for the funds, rather than being bestowed with largesse to restore their houses. Under the current project, there are 105 applicants, and renovations have begun on 42 houses. ""We would like the money to become a tool to mobilize more social effort,"" Li says. ""It is a move to seek the greatest common dividend for all concerned."" Though the project emphasizes the future functions of the houses, standards for cultural heritage site maintenance should still be followed, says Lu Yuanzheng, deputy director of the Zhejiang Provincial Institute of Ancient Architectural Design and Research, which is participating in the restoration. ""It's like repairing the Forbidden City in Beijing,"" he says. ""When things can be fixed, they will not be replaced. And we cannot combine different architectural styles in the restoration, so we rely on local artisans. That's a good chance to revitalize traditional craftsmanship."" He admits that challenges remain. For instance, he says, if a house is co-owned by different families, the owners often have different views on how the house should be revamped. ""That is why we need a system to work out how much money is needed for each restoration,"" he says. ""A customized plan is needed for each case, but certain technical standards have to be set for general guidance."" Songyang is currently listed by the Ministry of Housing and Urban-Rural Development and the State Administration of Cultural Heritage as the country's only trial region for the revitalization of traditional villages. Separately, creative thinking is being used in the renovation process. In Youtian, for example, an abandoned cowshed, which used to be co-owned by 14 families, was taken over by the village committee after paying 3,500 yuan to each family. After restoration, it was turned into a countryside inn. ""If it runs well, more villagers will see the benefits of restoration,"" Ye says. ""And more houses will be saved."" According to Lei Chao, deputy head of the county government in Songyang, about 20 million yuan is now being allocated annually by the local government for the revitalization of traditional villages. Subsidies are also provided to residents who are running home inns, at up to 120 yuan per square meter. But restoring houses is only one piece of the puzzle for some. ""It's easier to restore houses than to rejuvenate traditional lifestyles in the Chinese countryside,"" Lei says. ""The resumption of eco-friendly agriculture and traditional folk art cannot be absent."" wangkaihao@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page20)", -601,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618084.htm,Building character,,"Some Chinese symbols take on whole new meanings when they're multiplied It's hard to learn Chinese, especially the characters. Sometimes it seems just like random strokes are jumbled together and given an arbitrary meaning. But in some special cases, you will find the construction of some particular characters follows a simple law - a character plus itself equals a new character. Let's take the basic character �?(r��n, person, people) as an example. When one person meets another one, it becomes �?(c��ng), meaning follow, join, secondary or to act in a certain manner or according to a certain principle. The basic meaning is ""follow"", which is quite easy to understand when you see one person just appear along with another. If there comes a third person, it will then become �?(zhòng), meaning many, numerous, or a large number of people. The logic is just as you may guess: Two may be company, but three is a crowd. 人都有从众倾向�?R��n dōu yǒu c��ngzhòng qīngxiàng. People have a tendency to follow the crowd. The character �?(kǒu, mouth, hole or entrance) is another example. When two �?come together, it is �?(lǚ), which is mostly used as a surname. Though it has another meaning, ""temperament"", we can hardly say it has any connection with �? Three �?can also work. It is �?(pǐn), which has a lot of meanings. As a noun, it could be an article, product, rank, character or quality. While as a verb, it means taste, which may be related to its radical �?in a way. So here is a sentence: 小吕正在小口地品茶�?Lyu is sipping tea and tasting its flavor. Xiǎo Lǚ zh��ngzài xiǎokǒu de pǐnch��. Maybe you can also think of the character �?(ti��n), which looks like four �? But actually it has nothing to do with �? it a pictographic character, meaning field. This law of building a character can only be applied to a few characters, including the Five Elements - metal (�? jīn), wood (�? mù), water (�? shuǐ), fire (�? huǒ) and earth (�? tǔ), which is a fivefold conceptual scheme that many traditional Chinese fields used to explain a wide array of phenomena, from cosmic cycles to the interaction between internal organs, and from the succession of political regimes to the properties of medicinal drugs. Let's have a look at them one by one. �?- �?�?(jīn) is the simplest one, because there is only the three-�?character, �?(xīn), which means financial prosperity. Usually, you can't find a word containing this character, but it is commonly used in personal or shop names. Since �?has the meaning of ""gold"" and ""cash"", for people who want money, �?is of course bliss, even compared with a single �? �?- �?- �?This is the one that makes the most sense. One �?(mù) is a ""tree"". �?is the radical of many Chinese characters, many of which are names of a certain plant. When five�?come together, it becomes the two-character word 森林 (sēnl��n, forest). Individually, �?(l��n) means wood, grove, or cluster of similar things. And �?(sēn) means ""trees growing thickly"", or ""gloomy and horrendous"". �?- �?- �?�?(shuǐ) is water, a common word. But two �?make �? which has two pronunciations, zhuǐ and zǐ, meaning that sand at the beach that is under the ocean. This character is uncommon and almost never used in daily life. �?(miǎo) means ""an expanse of water"", and it is often used in people's names. And when you come to ?, you have every right to doubt whether it is a character, as most Chinese do (it's pretty rare). It is pronounced as màn, and means flood, given that so much water is gathered together. �?- �?- �?- �?�?(huǒ) is fire; a pictographic character, �?(y��n) is scorching, or extremely hot; �?(yàn) is blaze, flame. The special one is �?(yì), which means burning fiercely, an uncommon character again. �?- �?- �?�?(tǔ) is soil, earth, dust; �?(guī) is a tapering handheld jade tablet used by nobility on ceremonial occasions in ancient times. And if someone can pronounce �?(y��o) correctly, chances are they know a person who uses it as name. It's rare, but for those who are interested, it means high mountains. Many of these characters are rarely used, except in names. To understand why, we need to go back to the Five Elements concept. It's mentioned that ancient Chinese tended to use the Five Elements to explain everything, including people's fate. And even today, when a baby is born, many parents will ask a fortune-teller to analyze their shengchen bazi (生辰八字), which translates to ""the date of birth and the eight characters of the horoscope"", before naming the baby. After a mysterious calculation process, the fortune-teller will conclude that the baby lacks a certain element in life, which would of course affect their luck in the future, and the solution is to give them a name containing that element. So, you can tell that a man named �?is very likely to have been diagnosed as lacking earth in his life, and a girl whose name is �?may be short of water. And if you search online, you will find some more interesting characters. For example, three horses (�? mǎ) make �?(biāo), describing many horses galloping together; �?(bēn), made up of three cows (�? niú), means ""run fast"" or ""super strong"". Let's finish with a funny piece of internet slang -又双叒叕. While this is often seen online, very few native speakers can actually say it. The first character, �?(yòu), means ""again"". The second, �?(shuāng), means ""pair"" or ""double"". These two are very common characters in Chinese. But the last two are not ordinary Chinese. �?is the ancient version of ""�?(yǒu, friends)""; �? pronounced as ""ruò"", refers to deep friendship; �?has four types of pronunciation: zhu��, yǐ, lì, ju��, and you really don't need to learn its meanings, since it's almost never used. When these four characters appear together in order, it means ""again and again and again and again and again ""? When think about the meaning of �? you can easily figure out why. You can use it when you want to express a strong emotion",8 -602,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618083.htm,Season for chestnuts!,,"Editor's note: To understand China, sit down to eat. Food is the indestructible bond that holds the whole social fabric together and it is also one of the last strong visages of community and culture. Roasted chestnuts are cold weather comfort food. On the streets of Beijing, tiny hole-in-the-wall shops with big black drum roasters or huge iron woks are once again sending out the tempting aroma of caramelized chestnuts. They are seasonal vendors. For the rest of the year, the drums are silent, the woks are cold and the shopkeepers sell dried fruits, melon seeds and other tidbits. Only after the autumn harvest does the roasting begin in earnest. If you take an excursion out to the Great Wall at Mutianyu, you can see native chestnut trees beneath your feet as a cable car carries you to the hilltop. Tourists visiting the Ming Tombs, too, may rest unaware beneath ancient chestnut trees. - Chestnuts are often used in Chinese cuisine. Photos Provided to China Daily But the trees are there, distinguished by their dark green ovate leaves with serrated edges, or their skinny catkins in flowering season. The easiest time to identify chestnuts is when the fruits ripen and fall to the ground. The reddish brown nuts, two to three in each thorny case, will peek through a prickly shell called the burr. In my old campus stomping grounds, there were plenty of stately trees in the park, and Asian students would gather the fallen fruits, stepping on the burrs to release the nuts to save their fingers from the barbs. American chestnuts are much larger and need to be sun-dried a bit to sweeten them. Otherwise they taste floury. We did not have the equipment to roast the nuts, so we simply cranked up the oven and baked them. I even experimented with grinding the nuts into powder and making bread and chestnut cookies, which worked pretty well. Strangely enough, no one else but the squirrels bothered to pick up the chestnuts, and so we were left to enjoy the free bounty. In China, not a nut goes to waste. Even wild chestnut trees are carefully monitored. When the burrs fall, they are hastily foraged. The best chestnuts are from Liangxiang in Fangshan, a southwestern suburb of Beijing. Liangxiang chestnuts have become well-known and are sold all over the country. They're even exported. Tianjin also produces chestnuts and the farmers there have carefully packaged their nuts in ready-to-eat vacuum packs that are sold in the city's souvenir shops. You can see these at airport duty-free shops all over China. But ask Beijing locals and they will swear by the chestnuts from Huairou, an outlying county that is well known for its trout farms and farmers' restaurants. Huairou chestnuts are smaller, but by all accounts the sweetest. Chestnuts are grown all over China, and the cultivars are all slightly different. Some are suitable for roasting, others are sold freshly shucked at markets for the cooking pot. Still others are harvested, skinned and dried to be sold all year long. The better-quality chestnuts are from Shandong and Fujian. Chinese chestnuts are winter snacks. Whole nuts are snipped at bottom end to prevent them exploding during cooking, and are then roasted in a mixture of sand and sugar. They are sifted clean before being sold but are still characterized by the slightly gritty sticky shells. These sweet chestnuts, a deep chocolate brown and glistening with sugar glaze, are a real treat. They used to be hand fried in huge iron woks, with the vendors perspiring over the hot sand mixture, despite the winter chill. The sand helps to increase the heat needed to pop the nuts open. These days, chestnuts are mostly roasted in automated steel drums that rotate, rustling noisily as they turn. Holding a bag of hot chestnuts warms both hands and heart. And, because of the high carbohydrate content, the nuts also provide heat to the body. As the nuts cool quickly in the chilly temperatures of winter, they become easier to crack and peel, their dark brown skin coming away from the creamy yellow flesh like paper. Chestnuts are also used in cooking. They are one of the ingredients in the classic Eight Treasures Duck, together with lotus seeds, shiitake mushrooms, Chinese sausages, leeks, scallions, pine nuts and sticky rice. You could say this is the Chinese equivalent of turkey stuffing. Chinese chefs go one better. The duck is carefully boned before the filling is stuffed into the bird, steamed and then flash fried to crisp the skin before serving. Sometimes, the duck is tied at the neck and at the waist to shape it into a bottle gourd, or hulu, a symbol of good fortune and longevity. Another classic dish is braised chicken and chestnuts in an onion gravy. It is an extremely popular home-cooked dish when fresh chestnuts are in season. Unlike the French, the Chinese are traditionally less likely to use chestnuts in patisserie, but the new coffee clubs and cake houses in the cities are now pushing out a popular cake topped with candied chestnut puree similar to marron glac. This pastry first originated in Hong Kong and was in turn inspired by the classic French Mont Blanc. Chestnuts are also dried. Dehydrated nuts meant that chefs could use the nuts all year, simply soaking them in water before cooking. Dried chestnuts are sold in Chinatowns all over the world. During the fifth lunar month when rice dumplings are prepared for the Dragon Boat Festival, dried chestnuts fly off the shelves. Every savory dumpling will always need one or two chestnuts to complete the filling. Like most Chinese ingredients, chestnuts are valued for their medicinal value. Traditional Chinese medicine prescriptions use chestnuts for stomach ulcers and to whet appetites. They are believed to be a yang food and therefore good for virility. Taken in moderation, they aid blood flow and increase qi in the body. Chestnuts are also said to be good food for women, having the ability to combat anemia and improve complexions. That's very comforting to know, and for once, I'm sure, most will gladly take the prescriptions and enjoy them too. paulined@chinadaily.com.cn Braised Chestnuts with Chicken Serves 4: 12 chicken mid-wings 500 g fresh chestnuts, peeled 1 large onion, cut into thin rings (Or 10 shallots, peeled but left whole) 2 tablespoons oyster sauce 1-2 dried red chili Salt and pepper Place two tablespoons oil in a wok, heat till haze rises and add the onions. Stir fry until well caramelized. Add chicken wings and brown slightly. Add oyster sauce, dried chili and enough water to just cover the wings. Add chestnuts and bring mixture to a boil. Lower heat and simmer until the chestnuts are softened and the wings are tender. Adjust seasoning with salt and pepper. The onions will melt and thicken the gravy. I like using mid-wings for their collagen but any chicken pieces will do. Chestnut Dessert with Osmanthus Flowers Serves 2-4: 500 g fresh chestnuts 2 tablespoons water chestnut starch (Or cornstarch if that's not available) Rock sugar to taste Dried osmanthus flowers Wash, peel and steam the chestnuts for half an hour to soften them. Dice, then chop finely. Place chopped chestnuts into a liter of water and cook till slightly mushy. Add rock sugar to taste. Create a slurry of water chestnut starch and water and add slowly to the chestnut porridge. Bring to a simmer, then remove from heat. Before serving, garnish with a sprinkle of dried osmanthus. In our house, this was a popular dessert served during the Winter Solstice, which is normally in the third week of December. (China Daily European Weekly 12/09/2016 page18)", -603,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618082.htm,Old man's brew tickles young,,"As China continues to modernize at a frantic pace, traditional rice wine offers a new generation a chance to slow down and enjoy life David swipes his hand across the skyline of Shaoxing, Zhejiang province, as if to undo the cluster of high-rises that have shot up in the past 10 years. ""When I first came here, none of this existed. It was a sleepy town. Everything has changed dramatically."" Standing in the usually tranquil Meilong Lake Park, the Englishman's voice does battle with the gyrating guitar lines of an Australian psych-rock band whose performance at the inaugural Shaoxing MIDI festival has sent the crowd into raucous antics. Despite having lived in the eastern Zhejiang city for eight years, the Yorkshire native now finds himself in unfamiliar surroundings. - Wu Hui's tasty rice wine infused nougat sits elegantly beside a cup of sweet rice wine. For Chinese people, Shaoxing is synonymous with the yellow rice wine locals have been producing since the Spring and Autumn Period (770-476 BC). Suitably, amid the food and beverage marquees lining the festival field is a rice wine cocktail booth. The amber nectar is never far from the action in this pocket of East China. In fact, the very existence of the rock festival in downtown Shaoxing was catalyzed by the same authorities who have run the Shaoxing Rice Wine Festival for the past 22 years. Historically, the weeklong festival is the harbinger of winter, which means the start of the brewing season. This year, the celebrations bear a more expansive complexion: Local industry heads have seen Shaoxing's GDP triple since 2011, and they hope to broaden the horizons of citizens and the reach of the city's dominant industry through youth-oriented rebranding. ""This is a good turnout,"" David says, pointing to a gang of well-dressed twenty-somethings. ""It's nice to see different kinds of young people exploring the city."" The turnout was boosted by an unseasonably warm patch of November weather, but the bartender conjuring rice wine sangrias certainly helped. The Rice Wine Group organized the booth to show how modern flair can blend with tradition. ""They have 14 to 15 percent alcohol content and leave a nice taste in your mouth,"" a bartender says while preparing a rum-rice wine concoction. ""Rice wine cocktails attract many young people during the festival."" That statement would certainly excite those involved in Shaoxing's most famous industry, who long to lose the old image and appeal to younger taste buds. One such individual is Shaoxing native Bo Hong, vice-president of local brewing giant China Shaoxing Rice Wine Group. Bo is quietly passionate and swears by the health benefits of consuming a little Shaoxing spirit daily - he prefers the dry variety. Despite producing an industry high 5 billion tons in 2015, Bo is cautious in his optimism, believing things need to slow down for the rice wine industry to fully flourish. It's a touching but somewhat paradoxical notion, given the helter-skelter nature of Shaoxing's development. After strolling amid Shaoxing's rustic, monochrome buildings, it is easy to grasp the allure of Bo's point. From the hundreds of years spent producing some batches of rice wine, to the laid-back environment in which the drink is best enjoyed, the wine perfectly complements the meandering canals crisscrossing the city. ""The character of the wine is slow and mellow, exactly our marketing strategy for selling rice wine,"" Bo says. But his relaxed tone masks the proactive steps his company is taking in marketing, research and product development. The challenge for his company's future is remaining relevant and appealing in a highly competitive marketplace. Currently, Baijiu, China's ubiquitous spirit of choice, holds over 60 percent of the market in sales volume. Factor in the encroaching popularity of imported foreign alcohol - including wine, which saw 26.8 percent sales growth in 2015 - and the precarious position of rice wine becomes blindingly apparent. - Hundreds of vats of aged rice wine pack the insides of warehouses on the outskirts of Shaoxing. Photos by Richard Whiddington / China daily One reaction has been the creation of rice wine alcopop drinks, fruity low-alcohol beverages sold online and in local shops. The inspiration stems from European companies that have rejuvenated their image through similar drinks that are 3 to 7 percent alcohol. One resonant example for Shaoxing companies to learn from is Jagermeister, a German liqueur established in the 1930s as a semi-medicinal hunter's brew that had an old man's reputation. Another important avenue for rice wine is an improved online strategy. Online sales of tobacco and liquor products have increased by 13 percent since 2014. Rice wine companies need to develop a network of customers and offer an exciting interactive experience. ""If the rice wine industry doesn't harness the capabilities of the internet, it will lose out in the future,"" says Qiu Han, executive president of Zhejiang Modern E-commerce Business Research Institute. Qiu is pragmatic in his assessment of rice wine companies and stresses the need to modernize not simply by ""culturally orienting a product to suit young people"" but through ""employing young talent"" capable of engaging customers and anticipating changes in the alcohol market. The e-commerce expert speculates that the most drastic shift rests in the rising popularity of the consumer-to-business model, or C2B. One growing facet of C2B is the creation of specialized and customized products based consumer demand. In 2014, Shaoxing experienced the online crowd-funding phenomenon. Ju Gang, a renowned product designer, sought to produce 1,000 bottles of homemade rice wine brewed using traditional techniques. Bottles were reasonably priced and sold in stylish Ge ware jars, a type of Zhejiang celadon ceramic. Demand for Ju's concept soared like steam from a cup of warm wine. The bottles sold out in 24 hours, netting 99,000 yuan ($14,400; 13,500 euros; 11,400). Ju's success was born of an ability to sell consumers something artsy, unique and divorced from anonymous large-scale production goods. ""The majority of consumers of personalized goods are post-1980s and post-1990s people,"" Qiu says. ""In the future it will be commonplace for large companies to customize."" Qiu believes developing C2B avenues is more than a popularity gimmick. The flexible production model significantly reduces inventory and waste problems, thereby increasing profits. However, a full-bodied turn to modernity and the internet won't necessarily uncork the industry's future profits. After all, its chief commodity spends a lifetime inside storehouses - sometimes purchased a generation in advance by patrons who won't ever sniff their investment. In short, it faces the paradox of needing to seem both culturally ancient and fashionably modern. This is the impression one has while exploring Shaoxing Rice Wine Group's Central Wine Cellar, a storehouse 20 minutes' drive from downtown Shaoxing. The surroundings shift suddenly from cobwebbed rows of rice wine containers to plush, tastefully lit rooms with the latest audiovisual displays. A tour guide named Jin who has worked at the facility for more than 30 years, proudly introduces guests to one of the company's most recent product developments: customization. Customers can have patterns, names or messages carved on a rice wine container by the company's in-house artist. Although following the traditional B2C line, the new feature certainly offers a greater sense of individuality. Contrary to the tweaking adjustments of rice wine companies, however, are the drastic innovative ideas of individuals like Wu Hui, a local resident who has grown a business around rice wine since 2012. ""Young people have a mind for seeking novelty, and this is what we want to do when we develop products,"" Wu says. Milk tea, chocolate, nougat, ice cream, custard, pudding - name a sugary treat, and chances are Wu has already infused it with rice wine and sold it in artful packages at his two downtown stores. The product he is most proud of is a milk tea concoction consisting of a warm drink whose bottom is covered with grains of rice discarded during the rice wine fermentation process. The drink has a rum-raisin taste, and the rice adds a pleasing texture and slight sweetness. ""We keep the unique taste of rice wine and the sweetness of the milk tea at the same time,"" Wu says. In perhaps the ultimate compliment, major rice wine companies have begun mimicking some of Wu's products with rice wine popsicles and milk teas available at the China Yellow Rice-Wine Museum. However, in crucial ways they are merely following fumes rather than making the brew. Without a traditional factory, and by building a thriving online platform, Wu stands at the vanguard of rice wine's image shift. His asset-light, flexible business model is implausible for the industry's big players, but if he can successfully continue his mission of novelty and creativity he'll help them prove Shaoxing rice wine is so much more than an old man's favorite nightcap. Contact the writers at richard_w@chinadaily.com.cn Sun Hui contributed to this story. (China Daily European Weekly 12/09/2016 page19)", -604,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618080.htm,Stick to the rules. Witch rules?,,"Books gave birth to a sport for those who lack the magic touch One afternoon recently two young women walked into a shopping mall in the Liudaokou area of Beijing. When they arrived on the third floor, they made a beeline for a deserted corner that was being redecorated. ""This is the place,"" Li Yangdan, 26, told her companion, Liu Yiying, 22. Out of their bags they took black gowns and proceeded to put them on. Then the pair, now transformed into witches, took out their wands. That may sound like a scene from a Harry Potter novel, in which the magic world is invisible to muggles, or ordinary people who lack magic powers. But despite being muggles themselves, and therefore unable to fly on their broomsticks, Li and Liu play Quidditch. They are the founders of the Beijing Quidditch Club and were in the shopping mall to shoot a short video for a company. In late 2011, when Liu, who is from Chengdu, was still a high school student at Hangzhou Foreign Languages School, her schoolmate Wang Jiasheng returned after studying in the United States and introduced muggle Quidditch to the school. At the time, Liu had been admitted to Peking University and, like many of her schoolmates, she was not obliged to take national college entrance examinations, so they started playing the game with students from other grades. Each of the players has to ride on a broom while running instead of flying. There are seven members on each team - one seeker, three chasers, two beaters and one keeper. A team can have both males and females. Unlike witches and wizards, muggles have to use a white volleyball to replace what is called a quaffle in the books. If chasers throw the quaffle into one of the three rings of the rival team, the team gains 10 points. Similarly, muggles use soft volleyballs to represent what are called bludges. Beaters throw the balls onto the members of a rival team to knock the targeted ones temporarily out of the game. The golden snitch is a tennis ball contained in a sock that is fastened to the waist of a person, supposedly one wearing golden clothes who is good at escaping. When a seeker catches the golden snitch, the game is over and the seeker's team wins 30 points. The game, first played by students in Middlebury, Vermont, in 2005, has become popular with students in Europe and North America. It is reported that globally there are more than 4,000 Quidditch players in more than 300 teams. ""It is a very intense sport, combining American football, basketball and soccer,"" Liu says. ""A lot of universities in the US have their own team."" Before Li met Liu in Beijing in 2012, Li was an experienced player. ""We used to play online through group chatting and instant messages. We input words stating our positions and movements, and referees would say who got the balls and who scored first by the time we sent the messages. It was awesome and your fingers and your internet had to be fast."" In the fall of 2012, when Liu came to Beijing to study at Peking University, Li, then a graduate student at Beijing Jiaotong University, found her, hoping to be able to play Quidditch with her. That's when they formed the Beijing Quidditch Club. Coincidently, a company saw Li's Weibo microblog that said she also wanted to play Quidditch and decided to support her. As a result, they got the equipment for the game from the company - six hula hoops, six sticks, six parasol bases, volleyballs, soft volleyballs and tennis balls, and another 60 people who were either were curious about how to play or wanted to play. After the first event, they didn't have another game until the Beijing International Film Festival in June 2013, when Harry Potter fans could watch the eight films of the series over three days. Li and Liu met many other fans at the festival, and they later became club members. In November 2014 the club organized its first league matches. Students from Peking University, Beijing Jiaotong University, Central University of Finance and Economics and China Foreign Affairs University formed four teams. After preparation and training in September and October, they played three games, and the team from Peking University won the final. Over the past two years the club has organized several activities to publicize the game. The club has more than 100 members, including students and people who have jobs. Over the past several years there have been comings and goings. ""We have become great friends and often go to other activities, such as Harry Potter fairs and parties, as well as playing Quidditch,"" Liu says. In China there are only a few teams so far, in Beijing, Shanghai and Hangzhou. ""But our long-term goal is to bring our teams out of Beijing to compete in the international arena,"" Li says. Then the two waved their wands, and like magic, the video shoot instantly began. (China Daily European Weekly 12/09/2016 page16)", -605,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618079.htm,Executed man found not guilty,,"Evidence insufficient, unclear in 1990s Nie case, top court says Justice finally came, even though it was 21 years too late. Nie Shubin, a young man executed in 1995 after being found guilty in a rape and murder case, was declared not guilty by China's top court on Dec 2. The Supreme People's Court said in its verdict that the facts and evidence in Nie's case, which has drawn huge public attention, were unclear and insufficient, so ""he should be pronounced innocent"". - Nie Xuesheng, father, and Nie Shuhui, elder sister of Nie Shubin, burst into tears at home in Shijiazhuang, Hebei province, after hearing the top court's verdict. Xie Kuangshi / For China Daily It added that the judgment was made in accordance with a basic principle in the Criminal Law: No punishment shall be given in doubtful cases. ""I'm satisfied with the result. I've been expecting today for a long time,"" said Zhang Huanzhi, Nie's mother, with trembling voice and in tears. She spent more than two decades trying to clear her son's name. She heard the announcement at the Second Circuit Court, one of the arms of the Supreme People's Court, in Shenyang, Liaoning province. Zhang was also informed in court that she can apply for state compensation within two years. ""I'll discuss (the compensation) with my husband,"" she said. Xia Daohu, one of the judges, confirmed that the compensation application process had begun. But he did not say how much a litigant can receive in such a case. ""The compensation will be provided in accordance with the State Compensation Law, and the final amount will consider how many days Nie had been wrongfully detained, as well as the mental damage,"" Xia says. Xia also says an accountability investigation of police and judicial officers who were involved has started, but he did not elaborate. Li Shuting, the family's lawyer, said: ""Rights of lawyers, including reading legal materials and sharing opinions with the court, were well protected. I'm also happy to end my work with such a result."" Nie, a worker in Shijiazhuang, Hebei province, was sentenced to death and executed in 1995 for the rape and murder of a woman the year before. He was 21 when he was executed. The case first came to the public's attention in 2005, when Wang Shujin was detained for rape and murder in other cases. He confessed that he was the actual culprit in Nie's case. Since then, Nie's case had been reinvestigated. His name is well-known across the country, and any development in the new investigation made headlines. His case has been handled by the Hebei Provincial High People's Court and Shandong Provincial High People's Court. Both courts failed to deliver a final verdict. On June 15, the top court designated the Second Circuit Court to retry the case. Ding Hui, president of the law school at Liaoning Normal University, said: ""I'm a mother as well. I fully understood Zhang when I saw her crying in the courtroom. ""Meanwhile, I applaud the fact that justice was upheld by the top court. It is so important to fulfill the rule of law in our country."" Mo Hongxian, a law professor at Wuhan University, says the case is a milestone in Chinese criminal law research, adding that the top court highlighted the principle of no punishment for doubtful cases in Nie's case. ""The case could serve as a guide when judges tackle other similar cases,"" she says. Both professors say that Nie's case also points to an urgent need to establish a mechanism to avoid wrongful convictions. ""How to ensure evidence is collected legally and verdicts are made without interference is also highly important,"" Ding says. caoyin@chinadaily.com.cn Timeline August 1994: Nie Shubin is arrested by police in Shijiazhuang, Hebei province, for allegedly raping and killing a woman. March 1995: Nie is sentenced to death by Shijiazhuang Intermediate People's Court for homicide and rape. Nie later appeals to a higher court. April 27, 1995: Nie is executed after his appeal is rejected by the Provincial High People's Court of Hebei. January 2005: Wang Shujin, a native of Hebei, is detained and charged with murder and rape in many other cases. Wang confesses that he is the culprit in Nie's case. Judicial departments in Hebei open a new investigation in Nie's case. March 2007: Wang is sentenced to death. The death penalty awaits final approval by the Supreme People's Court, the top court. September 2013: Provincial High People's Court of Hebei announces that there is no evidence suggesting Wang was the culprit in Nie's case. December, 2014: The top court designates Shandong Provincial High People's Court to investigate Nie's case. June 15, 2016: The top court asks one of its branch courts, the Second Circuit Court in Shenyang, Liaoning province, to retry Nie's case. (China Daily European Weekly 12/09/2016 page14)", -606,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618078.htm,Sierra Leone recovers with 'help of friend',,"Country's president thanks China for debt write-off, saying he is optimistic for the future of the continent Sierra Leone President Ernest Bai Koroma says China's decision to write off his country's debts will now give the West African republic breathing space to focus on other priorities. China made the debt cancellation move at the start of the president's six-day visit to the country that marks the 45th anniversary of diplomatic ties between the two countries. ""We welcome such a pronouncement because it is helping us out of a very difficult situation. Giving us this relief will help us address other important issues,"" he says. - Sierra Leone President Ernest Bai Koroma says the country's economy is now on target to grow 4.7 percent this year and by 5.4 percent in 2017. Wang Zhuangfei / China Daily Sierra Leone's was one of the fastest growing economies in Africa in the past decade but was hit by two devastating events, the collapse of the price of iron ore, its main export, and the Ebola epidemic, which killed 3,590 people. Its GDP contracted 21.5 percent in 2015. Koroma, who was speaking at the Diaoyutai State Guesthouse in Beijing, says the crisis facing the country was extremely challenging. ""It has been very difficult but with the support of friends like China we have been able to roll out programs of recovery to restore our utilities, get our services back and provide support for our private sector to get the market properly operating again,"" he says. Koroma, who has been president since 2007, says the economy is now on target to grow 4.7 percent this year and by 5.4 percent in 2017. ""This shows that although, yes, it has been difficult, the measures adopted, including austerity ones, have resulted in things taking shape and in the not too distant future we will be able to restore ourselves to pre-Ebola status and become one of the fastest growing economies in the world again."" One of the biggest investors in Sierra Leone is Shandong Iron and Steel, which owns the country's Tonkolili iron ore mine. It ceased production during the Ebola crisis but resumed activity last year. The president made a visit to Shandong on Dec 3. ""We need to visit them to encourage them to scale up their activities. The projections they have made before they are not currently hitting. We are therefore looking for assurances,"" he says. Koroma welcomed China's commitment to Africa and, in particular, Chinese President Xi Jinping's trebling of funding support to $60 billion (55.6 billion euros; 47.4 billion) at the second Forum on China Africa Cooperation Summit (FOCAC) in Johannesburg in December last year. FOCAC has itself enhanced the relationship between China and Africa with President Xi escalating it to the highest level of comprehensive strategic and cooperativity partnership and giving his support for Africa playing a bigger role internationally, he says. During his visit an agreement was also signed by the two sides to support the establishment of a center for disease control in the country. ""Ebola is new to us all, including China at the time, and we have learned lots of lessons and are still learning. There is no complete study on Ebola but this is an opportunity for us to continue to study the virus."" Koroma, who was a senior insurance executive before he became president, believes in developing a market-led approach to Sierra Leone's development. ""We have an open market and we want to create an environment that is friendly and supportive to external investors. We are not an exclusively a Chinese market. We have other players but it seems that the Chinese are getting an upper hand,"" he says. Koroma says he hopes some Chinese manufacturing - particularly in resources processing - will now move to Sierra Leone as it has done to some other African countries such as Ethiopia, famous for Chinese shoemaking. ""We believe that should be the next step. These are the issues we are now looking at,"" he says. The president says he is also optimistic for the future of the continent, despite the commodities recession denting the frequently vaunted ""Africa Rising"" narrative of the last decade. ""The future of Africa is still bright. We still have the world's largest supply of arable land, are home to a good number of mineral resources. Oil and gas is discovered regularly and we have marine resources in abundance. We just need to develop them to the fullest,"" he says. andrewmoody@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page15)", -607,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618077.htm,Party briefs EU on its anti-graft initiative,,"The Communist Party of China's decision to implement strict governance and a sweeping anti-corruption campaign can help it provide constructive solutions to global problems while dealing with domestic challenges, a senior Chinese official said on Dec 5. ""China has entered a historically critical moment. We are becoming rich but not rich, and internationally we are becoming strong but not strong,"" said Yuan Shuhong, deputy director of the Legislative Affairs Office of the State Council at a seminar in Brussels, Belgium. In recent years ""corruption and other challenges, such as weakening the Party's leadership and loosening Party governance, have become rampant"", he said. Yuan said strong determination has led to lasting efforts to fight corruption with an iron fist and uphold the strict governance of the Party. Yuan is leading a CPC delegation to the European Union to discuss October's Sixth Plenary Session of the 18th CPC Central Committee. The delegation is updating think tank experts and party leaders in the European Parliament. ""With its historicial and current complexities, China must have a leadership core to overcome the challenges at home and abroad,"" Yuan said at the seminar, organized by the Brussels-based Foundation for European Progressive Studies. Yuan said the Party must abide by strict political discipline to ensure its leadership of China's national renewal. ""And these efforts could help us live up to the expectations of the international community to position China to play a constructive role worldwide,"" he said. New Party theory, a leadership reshuffle and plans for coming years are anticipated at the Party's 19th National Congress next year. ""In doing so, we lend our ears to our friends to ask them to pass along ideas and suggestions to improve the governance of the CPC,"" said Wang Xueyong, deputy director-general of the Bureau for Western European Affairs of the International Department of the Central Committee of the CPC. fujing@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page13)", -608,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618076.htm,Parents wanted to live long enough to clear son,,"Zhang Huanzhi, a bereaved mother in her 70s, finally got the ""not guilty"" verdict for her son that she had waited so long to hear. Her fight for justice began the moment her son, Nie Shubin, was arrested for murder in 1994. The confession in 2005 of another man, Wang Shujin, who claimed he was the actual murderer, gave her additional power and courage to continue. In March 2005, Zhang hired a lawyer and began the legal process to clear the name of her son. Soon after the appeal, the provincial Political and Legal Affairs Committee in Hebei said it would set up a joint investigative group with other judicial departments in the province to look into the case. However, in the decade since, no decisions were made. It was not until December 2014, when the Supreme People's Court, the country's top court, ordered a retrial of Nie's case in Shandong High People's Court that the family found hope in their excruciating struggle for justice. Nie's mother said she was relieved when the top court designated the court in Shandong to review her son's case. She had visited the Hebei High People's Court multiple times since 2005 requesting that her son's case be reviewed, but always in vain. ""I'm more than thrilled,"" Zhang said in an interview with Xinhua News Agency in 2014. ""The decision is a reflection that the country's judicial system is improving. ""My husband and I often say to ourselves we have to strive to live until the day my son's name is cleared. ""I have so much regret because I did not even get to see my son before he was executed,"" Zhang said. ""The only thing I could do was to try to prove his innocence to ease my pain."" Nie's father, Nie Xuesheng, said it was the happiest day in the more than 20 years since his son was executed. The father attempted suicide the day after he learned of his son's execution from a staff member of the prison grocery shop in April, 1995. He had gone to visit his son and give him a shirt. The suicide attempt left him paralyzed in one of his legs, so his wife made most of the trips to the court asking for a retrial. The father told Beijing News that he accepted the apology from the Provincial High People's Court in Hebei. ""Justice delayed is still justice,"" he said. zhang_yi@chinadaily.com.cn - Zhang Huanzhi, the mother of Nie Shubin, who was executed for a rape and murder that was never proved, talks to the media outside the court in Shenyang, Liaoning province, after it overturned his conviction. Lu Yao / For China Daily (China Daily European Weekly 12/09/2016 page14)", -609,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618075.htm,Factory makes special cups for autistic teen,,"A Chinese factory is partly shutting down its normal business to help an autistic British teenager by making a toddlers' cup he is dependent on but which has long been out of production. Jackel China, in Dongguan, Guangdong province, will halt the normal operation of three of its machines for two to three days. They will be used to make 500 to 1,000 blue-green Tommee Tippee cups. The teen's dad, Marc Carter, says it is the only cup his autistic son Ben will drink from. The cup used by 14-year-old Ben was purchased 12 years ago and is now worn out. His father issued an appeal to find a replacement. - A worker makes cups at Jackel China in Guangdong province. The company will shut down normal production to make special cups needed by an autistic teen in the United Kingdom. Zhou Mo / China Daily Manufacturing of the two-handled cup ended in 2003. It was originally produced by Jackel China under contract from UK-based Mayborn Group, which was acquired by Shanghai Jahwa (Group) Co in April. Catherine Lee, the company's head of Asia operations and procurement, says she heard of Ben's story on the internet and also from colleagues in the UK. ""It only took us two days to make the decision and we managed to produce 50 samples within 10 days,"" Lee says. ""We are really happy to do the job. It is something full of love and with great value."" She says samples have been sent to Ben's father, who will check the color. Once confirmed, the factory will begin production. The special order will take a week to complete, and the company will pick up the 20,000 yuan ($2,900; 2,709 euros; 2,292) cost. ""We hope to send those cups to Ben on Christmas Day or on New Year's Day as a gift for him,"" she says. Zhu Yingming, employed by the factory for 14 years, says he was proud to play a part in the campaign. ""I could still remember the cups when I was told to search for its mold in our warehouse. It only took me 20 minutes to find it among more than 1,000 molds,"" he says. Many Chinese netizens have praised the company for spreading positive energy. ""Although the cost of the cups is not high, the campaign plays an active role in enhancing our country's international image. Meanwhile, there are many autistic children in China. We need also to pay more attention to them,"" user XiwohouLV posted online. Ben's father tweeted last week: ""Can't believe Tommee Tippee have managed to find the mold and are going to make me so many. They have been truly incredible, such a genuinely lovely and caring team."" sally@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page13)", -610,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618074.htm,New day for traditional medicine,,"TCM now being used in 183 countries and regions as it gains wider acceptance Traditional Chinese medicine is growing in popularity worldwide. A white paper released by the State Council Information Office on Dec 7 outlines China's efforts to promote international exchanges and cooperation in TCM. The paper, Traditional Chinese Medicine in China, says its use has spread to 183 countries and regions. According to the World Health Organization, 103 member states have given approval to the practice of acupuncture and moxibustion, 29 have enacted special statutes regarding traditional medicine and 18 have included acupuncture and moxibustion treatments in their medical insurance provisions, the white paper says. - Visitors at a TCM museum built by the state-owned Chinese medicine company TRT Group in the Republlic of San Marino. Xinhua Moxibustion involves burning herbs and applying heat to the body to increase vital energy flows. TCM has gradually gained more international acceptance, and some practices have been recognized by authorities in Russia, Cuba, Vietnam, Singapore, the United Arab Emirates and other nations, according to the white paper. ""We have established 10 TCM centers outside China, and all of them are popular among locals,"" Wang Guoqiang, head of the State Administration of Traditional Chinese Medicine, said at a news conference on Dec 6. ""Governments of 86 countries and regions have signed agreements with the Chinese government on TCM cooperation."" Many countries have expressed hopes of working more closely with China since traditional therapies are both effective and easy to apply, and the low cost means they can help control ballooning health expenditures, he said. In China, the number of practitioners and assistant practitioners of TCM reached 452,000 as of the end of last year, the report says. Medical care services provided by TCM institutions in the national total increased from 14.3 percent to 15.7 percent in the few years from 2009 to 2015. Last year, outpatient expenses per visit and inpatient expenses per capita at public TCM hospitals were, respectively, 11.5 percent and 24 percent lower than those at general public hospitals, according to the white paper. ""Development of traditional medicine is a global trend, and it is natural that TCM is drawing more attention from the world,"" Wang said. TCM drew worldwide attention in August, when images of purple circles on the back and shoulders of US Olympic swimmer Michael Phelps were widely circulated. The circles were caused by traditional cupping therapy, practiced in China for more than 2,000 years to relieve pain and boost the metabolism. Also, Tu Youyou, a Chinese researcher, shared the 2015 Nobel Prize in physiology or medicine after isolating the anti-malaria drug artemisinin from sweet wormwood, long used in traditional medicine. She became the first Chinese national to win a Nobel Prize in science. Some TCM techniques, such as acupuncture, have been adopted by many countries and are popular with locals, according to Yang Zhen, an associate professor at Beijing University of Chinese Medicine and a certified acupuncturist in California. But use of traditional Chinese medicines is not as widespread as it could be due to such factors as a lack of scientific research on the medicines and the fact that they often are not covered by medical insurance, he says. wangxiaodong@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page13)", -611,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618066.htm,Connecting to investors' needs,,"Both its economic growth rate and currency stability can make China a useful hedge against the United States The beginning of this week saw the opening of stock trading connection between Hong Kong and Shenzhen, a stock market on the Chinese mainland that features most of the country's technology companies. Back in November 2014, the stock trading connection between Hong Kong and Shanghai, the largest stock market on the mainland, went into operation. The Shenzhen-Hong Kong connection is important first of all because it marks the completion of a system able to synchronize trading in the three main securities markets in the country and help Chinese investors access securities markets in other parts of the world. With more than $3 trillion (2.79 trillion euros; 2.373 trillion) in total market capitalization ($16 trillion for New York, by comparison) and robust trading - of which around half is by investors from the outside - Hong Kong is an important capital market in the world. The Chinese regulatory authorities are commendable for linking up the two domestic stock markets with a more open and mature market like Hong Kong to help reform the trading culture in the domestic markets in such a way as to be closer to international rules and norms. Furthermore, the timing for setting up the stock trading connection is also important - for investors to evade some risk in currency exchanges and also to avoid putting all their eggs into one basket, meaning the basket of the US dollar and US market. At the moment, as ample signs are suggesting a rally in the dollar (against all other major currencies) and a rally in American stocks - potentially benefiting from the tax cut and investment hike in public infrastructure that Donald Trump promised - it may be hard for investors in the world to resist the temptation for converting their money into the greenback. For some time now, China's foreign exchange reserve and its renminbi's price against the dollar have both been on the decline, because Chinese money has been used for overseas buyouts of assets in large volume. But the Chinese companies' overseas buying spree cannot be sustainable, judging from the trend emerging in the United States. Assets are becoming more expensive. Government is becoming restrictive. If the American rally continues, liquidity will have dried up a few months from now and investors will be forced to give up some of their interests. Many Chinese investors are already talking about the need to deleverage before it is too late. For them, foreign currencies, especially the dollar, will be more precious. But the renminbi won't become less significant simply because of its falling exchange rate against the dollar in recent months, because it is still relatively stable compared with other currencies' rate against the dollar. Both its economic growth rate and currency stability can make China a useful hedge against the United States, as Sun Mingchun, chairman and chief investment officer of Hong Kong-based Deepwater Capital, pointed out. In case of instability in America, either in the dollar or its stock market, investors may find China, especially its freer and more orderly market in Hong Kong, a worthy place to be - so long as China can maintain a basic balance in its own economic transition. At least in the foreseeable future, one can be almost certain that China's three stock markets combined can be a more attractive market than many other places. With Hong Kong's stock trading connections with Shanghai and Shenzhen, Chinese investors will not have to exchange all their money into dollars at this time of uncertainty but still chase the value in a dollar-denominated market - which is part of Hong Kong's uniqueness. This is because, first, the Hong Kong dollar is pegged to the US dollar in its exchange rate and the Hong Kong stock market is a highly international one. Second, the trading connections with the mainland don't require investors to exchange their money when they invest in Hong Kong. Given some time, the existing trading connections can easily expand their functionalities by facilitating trade in bonds and in international investment funds, thus making the entire Chinese financial system more open and more agile in correcting its excesses. The author is editor-at-large of China Daily. Contact the writer atedzhang@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page12)", -612,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618065.htm,Deliver us from these robot postmen,,"Dinner by automaton? Parcels by drone? It'll never catch on - or will it? Maybe China has the perfect solution Driving through the east London suburb of Greenwich to pick up my wife from the station the other evening, I pulled up at a pedestrian crossing to allow a man using a mobile phone to cross, along with what I thought was his companion. However, the ""partner"" wasn't anything to do with him. It was a six-wheeled fiberglass box with a whip aerial and it seemed to have a mind of its own. The pedestrian walked off in one direction and it went in the other. I sat mesmerized by this apparently remote-controlled device trundling along the pavement until it turned a corner and vanished. I didn't know it at the time but I'd just watched part of an experiment in the high-tech Millennium Greenwich village to deliver hot food by remote control. The idea is simple - you phone the delivery company for, let's say, a Chinese meal. The food is put into the little truck and locked with a code. The truck heads off to the address, where the recipient - alerted by text message - opens the box with the code and takes out the meal. The device is steered by commands that take it to pre-programmed coordinates, and sensors make sure it doesn't bump into anything en route. What could possibly go wrong? In the big wide open spaces of the rural United States, Amazon is experimenting with small drones that carry boxes, up to a certain size and weight, and deliver them to pre-programmed addresses using a sophisticated form of GPS. Given the enthusiasm in some states in the US for their right to bear arms, I think you'll find these drones will make ideal targets. I can't see the drone idea or the remote food buggy working in the urban jungles of Beijing or Shanghai. How on earth will a drone figure out how to reach Mr and Mrs Wong on the 64th floor of a tower block? China, however, with that brilliant problem-solving trait that seems to pervade the country, has come at the delivery problem from a different angle. If Muhammad won't come to the mountain, then take the mountain to Muhammad. When I spent a few weeks in Beijing earlier this year I was fascinated by the arrival in the early morning of fleets of those pesky electric delivery tricycles that you can't hear coming, pulling up outside the offices of China Daily in Chaoyang district. I was equally fascinated by the queues of employees lining up to take their parcels. Later, colleagues enlightened me. Let's say you order something online at 9 pm but you know you have to be work the next day and your boss isn't going to buy the old ""I have to stay home to wait for a delivery"" line. Plus, the delivery guy isn't ready to deliver to the 64th floor of a tower block. Instead, a time is designated outside the office and you collect your parcel. And it's free. In the competitive world of internet commerce, that's a plus. Of course, it could lead to anarchy. In Beijing, the authorities have moved to try to bring a sense of order after reports of tricycle drivers racing to meet tight delivery deadlines, ignoring red lights and riding in bicycle lanes. So although the actual status of these machines has yet to be defined - Motorized? Nonmotorized? - the authorities now require them to clearly carry a registration mark, and their appearance will be standardized, as well as the drivers being issued a card with a code of conduct on it. So far, according to a report by one of my colleagues, the authorities have so far brought 57,000 tricycles from 40 delivery companies into the scheme. Me? I have a very good relationship with my postman, who delivers on foot regularly, six days a week, come rain, sun or snow. Also, he talks. I don't see him being replaced by a robot anytime soon. The author is managing editor of China Daily European Bureau. Contact the writer at chris@mail.chinadailyuk.com (China Daily European Weekly 12/09/2016 page10)", -613,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618064.htm,Another Silk Road is needed to defeat terror,,"High on the hills between Jerusalem and Bethlehem, someone has scrawled some old wisdom on the concrete barriers that slice across the old Green Line: ""All walls fall"". One can but hope. With Donald Trump now heading for the White House, there is a clear and present danger that America will double down on the neoconservative ""clash of civilizations"" philosophy that the self-styled Islamic State uses to recruit its foot soldiers of hate. IS commander Abu Omar Khorasani has already declared the ""maniac"" in the White House will increase terrorist numbers by ""thousands"". This is a dangerous moment. Figures from the Global Terrorism Index reveal IS is now the deadliest terror group on earth. Its attacks on 252 cities last year killed more than 6,000 people. Yet what we face in the Middle East is an insurgency. No-one can kill their way to victory. Peace will require politics, and good politics needs prosperity. That is why it is time for the West to take a leaf out of China's book and establish a complementary vision for a new Silk Road, to match the ambition set out by President Xi Jinping in 2013. In the long term, our best defense against a fanatical Middle East is a flourishing Middle East. Today, the cancer of poverty and inequality is as dangerous as any religious division. Yet, the low long-term oil price is fast becoming an existential threat to regional stability. In many Gulf states, 60-80 percent of people are employed by the public sector. Collapsing oil tax revenues means Arab countries can no longer afford this. The International Monetary Fund forecasts that by 2021, a third of young people may be unemployed. Over the last 10 years, the United Kingdom has spent nearly 15 billion ($19 billion; 18 billion euros) in aid to countries in the Middle East and South-east Asia. But there is no strategic intent behind it, no grand effort to transform our economic relationship or to build infrastructure that might help countries trade and prosper. This is why we should learn from the first fruits of China's Silk Road Economic Belt vision that we have seen this year: the new sea, road and rail connections that are transforming the costs of trade across the 65 Eurasian countries described with such wonder by Marco Polo. Many of these are nations that IS wants to sweep into a new theocratic caliphate in which it would wipe out the extraordinary diversity of modern Islam. Today, we think of globalization as something new. In fact, it was slowly invented on the trade routes that connected Europe, the Middle East and China. Along these roads moved trade, innovation, ideas, culture - and trust. As we seek new security for new times, this history has much to teach us. The author is Labour MP for Birmingham Hodge Hill. His latest book, Black Flag Down: Counter-Extremism, Defeating ISIS and Winning the Battle of Ideas was published in November by Biteback Books. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/09/2016 page12)", -614,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618063.htm,A shift toward climate leadership,,"Amid global uncertainty about future US policy, China could set the pace for environmental action Implementation was the keyword for the 22nd Conference of Parties meeting (COP22), recently held in Marrakech, Morocco. In October, 113 out of 197 parties to the United Nations Framework Convention on Climate Change ratified the Paris Agreement, representing 80 percent of global CO2 emissions. Following this achievement, two urgent matters lie ahead: the development of elaborate and concrete road maps to achieve the goals set in the agreement and fulfilling what is left in the Kyoto Protocol. Marrakech was, without doubt, the beginning of the post-Paris era. Climate finance was under the spotlight during the conference, discussed widely across national pavilions and at side events. Deep concerns were shared by developing countries, especially the least developed and most vulnerable. Although developed countries promised at Copenhagen in 2009 to give annual aid of $100 billion (94 billion euros; 79 billion) from 2010 to 2020 to help developing countries cope with climate change, so far there is still an annual $40 to $70 billion gap to fill. Additionally, this is only the financing shortage within the Kyoto time frame. The world is facing an even bigger challenge when it comes to the Paris Agreement. Last year, before the Paris Conference, developed countries, led by the European Union and the United States, secretly formed a ""high ambition coalition"" with 79 African, Caribbean, and Pacific countries, but excluding China and India. The group emerged at the end of the conference to push for a legally binding plan to hold the global temperature increase to within 1.5 C by 2100, instead of the former agreed target of 2 C. The final version of the Paris Agreement, therefore, states ""pursuing efforts to limit the temperature increase to 1.5 C above pre-industrial levels"". This plan serves the best interests of vulnerable countries. But the climate finance conundrum dragged the ambition down to earth at COP22, with the name ""Donald Trump"" contributing to the process. Noticeably, the landscape of climate leadership is shifting toward the east. China was widely expected to play a leading role at COP22, an expectation reinforced by the pessimistic atmosphere created by Trump's election. Over the years, China has indeed proactively helped other developing countries on climate change. From 2011, China has invested more than $1 billion to help African and vulnerable countries. In last year's US-China Joint Presidential Statement on Climate Change, China committed to establishing the South-South Cooperation on Climate Change Fund and to provide $3.1 billion in three years. This will finance programs including infrastructure construction, personnel training and capacity building in developing countries. At COP22, this commitment was strengthened again by Xie Zhenhua, China's special representative on climate change affairs, during the High-Level Forum on South-South Cooperation on Climate Change, which was the most important event in the China pavilion. During the forum, the COP22 president, UN officials and dozens of ministers from developing countries shared their views and visions on south-south cooperation and China's positive role in it. By incorporating climate change in south-south cooperation, China expanded the scope for foreign aid, which is widely recognized as an important strategy in every country's foreign policy portfolio. The poor and vulnerable countries cry for money, technology and expertise to adapt to climate change and develop a green economy. In this sense, conventional foreign aid targets such as poverty, health and education can be considered more broadly as climate change issues. Geopolitically, large powers compete for greater influence in global governance through foreign aid programs. The gap in climate financing therefore offers considerable opportunities for competitive donors to influence the climate agenda and international affairs more generally. In this potential competition, China has many advantages, including empathy for the need for economic development and the necessity of cooperation. This has resulted in China's ""assistance-plus investment"" foreign aid model. International opinion on China's foreign aid, however, is extremely polarized. Some argue that China's no ""strings attached"" approach is efficient and generates win-win outcomes. Others criticize this direct, economically-driven assistance as a form of neocolonialism. Unarguably, China's influence on less-developed countries has been growing rapidly, along with growing concern from the West. The reasons behind this come not only from concerns that China may undermine the democratic process of these countries but also, and more important, from the fear of losing advantages they earn from their own foreign aid programs. The elephant in the room at COP22 was the question, Does Trump fear losing these advantages? He claimed on the campaign trail that he would halt US funding for UN climate change programs, seemingly undermining US President Barack Obama's original commitment of $3 billion. What he will actually do once in office remains to be seen. Regardless, China is taking on a growing leadership role in global climate governance. It is inevitable that the shifting landscape toward China's leadership will put pressure on the US in terms of its global image and influence. The world can only hope that, as a self-proclaimed successful investor, Trump will come to agree with Obama that climate finance is ""a smart investment for us to make"". Qi Ye is director of the Brookings-Tsinghua Center for Public Policy in Beijing; Zhu Mengye is a doctoral candidate at Tsinghua University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/09/2016 page11)", -615,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618062.htm,Tell Santa you want something Chinese,,"Strong tradition of family togetherness means Asian products make perfect Christmas gifts More and more Chinese brands are now positioned as Christmas gifts. Not only are increasing numbers of Chinese companies building brands around the world, they are increasingly tuned in to the festive mood across Europe at this time of year. Leading the pack, by a country mile, is London-based Chinese luxury brand Shanghai Tang. Just a cursory glance at the Shanghai Tang website reveals a clear shift in brand positioning, with Christmas gift-giving central to its current theme. Most prominent on the website is the Christmas Gift Collection for 2016, which presents an amazing array of luxury clothing and accessories. Shanghai Tang sets a fine example of the highest quality and presentation levels we now see across European markets where Chinese brands are concerned But crucially, Shanghai Tang leads the way in pursuing brand building via Chinese associations, many of them traditional. European consumers are now aware of this Chinese theme and will, without hesitation, purchase a Christmas gift with a Chinese image. Shanghai Tang has, in effect, uncovered and ignited a hitherto dormant desire among European consumers. Not that this desire extends only as far as clothing with traditional Chinese patterns, which are very much the cornerstone of Shanghai Tang's brand strategy. The company currently offers a full range of luxury fashion accessories and even traditional Chinese tea, all very much presented as Christmas gifts. But why does it appear that European consumers are eager to buy Chinese brands as Christmas gifts? Of course, it may just be a trend, a new way of finding interesting gifts for friends and family. But it is a finding of my ongoing research on the changing perception of Chinese brands across Europe and the West generally that European consumers are increasingly attracted to China - and Chinese culture in particular. I strongly suspect that it is admiration and respect for traditional Chinese culture and family cohesion that has led to the ready and enthusiastic acceptance of Chinese brands as Christmas gifts. Furthermore, Europeans are envious of the cohesive and caring nature of extended Chinese families, where several generations maintain unbreakable bonds. Across Europe, gift-giving at Christmas often revolves around families, and extended families in particular, where an annual coming together takes place. It may well be that the handing-over of Chinese brands as gifts at this time to family members, especially infrequently visited distant family members, goes further toward a more close-knit family and brings extended families closer in a far more meaningful way. While Shanghai Tang and many other Chinese brands that position themselves as gifts for European consumers at Christmas time have made great progress in recent years, there is room for far more emotional meaning here. Shanghai Tang and others should be providing clear visual traditional Chinese associations alongside their brands and highlighting clearly the family togetherness - extended family in particular - that these brands represent. Often the most valued Christmas gifts are those that are consumed more or less immediately and shared among the family and extended family. Such gifts are even more valued as contributors to family togetherness when they also contribute to a relaxing, happy atmosphere. This brings us on, rather naturally, to Chinese green tea. Often touted by leading authorities, such as the World Health Organization, as one of the healthiest dietary accompaniments, Chinese green tea also carries an unrivaled image of peace and serenity. What a perfect opportunity for an extremely highly valued family Christmas gift where the vast majority of European families could accept and enjoy Chinese green tea consumption as a major part of their Christmas family fun and relaxation. Disappointingly, to date very few genuine Chinese green tea brands have found their way to prime locations among major European retailers. But for European Christmas gift-givers there are numerous specialist retailers online who provide a wide choice of some of the finest Chinese green tea brands. European retailers have ventured into the green tea market but, despite impressive efforts, they can't seem to match the emotional association and quality of the best Chinese brands. European retailers sell their own label green tea products. Chinese providers offer the most emotionally associative brands worldwide. Some of the best known brands in Chinese mainland would probably find European market penetration easiest, given their rich history and associations. These brands also possess the financial muscle to build brand awareness across very competitive European markets. Long Jing pan-fried green tea from Hangzhou, capital of eastern China's Zhejiang province, ranks as one of the brands that enjoys top awareness. Not far behind are Chinese Bi Luo Chun, from central China's Jiangsu province, and Tie Guan Yin, a type of oolong tea from East China's Fujian province. It is these brands, and not the craftily contrived Western retailer versions, that will attract European consumers in search of that perfect Christmas gift to be enjoyed by the entire family, in much the same way as it is across Chinese mainland on a regular basis. Chinese brands as Christmas gifts, therefore, deserve to take pride of place at a time of family togetherness. But Christmas is also a time for romantic, gifts and Chinese brands also have competitive offerings here. The perfect romantic gift for European female loved ones at Christmas is the traditional Chinese dress known as the qipao. This elegant item is also symbolic of traditional China and Chinese culture, something that European consumers perceive as increasingly sophisticated and stylish. The qipao, which dates back to 17th century China, is traditionally made of silk with decorative and ornate embroidery. Trimmed at the collar and sleeves, this is the dress of empresses. Opportunity also knocks for romantic Europeans searching for that perfect Christmas gift for male loved ones. Often cited as the male version of the qipao, the changshan presents an opportunity for style and sophistication in the form of a traditional male Chinese clothing item. Even though traditional Chinese clothing has not found its way into European shopping centers and the best-known fashion stores, the qipao and the changshan can be found very easily with a quick and simple online search. There is a significant overlap between the emotions aroused at Christmas time in Europe and traditional Chinese culture. Both revolve around family togetherness, belonging and romantic feelings for loved ones. Chinese brands, especially those infused with traditional Chinese associations, possess a considerable and natural competitive advantage, therefore, when positioned in the minds of European consumers as Christmas presents. For European consumers, the perfect Christmas gifts that will lead to the most meaningful family experience have to include more than a few Chinese brands. Christmas gift-giving and traditional Chinese culture share many similarities. Chinese brands, therefore, could be part of that perfect family time. The author is a visiting professor at the University of International Business and Economics in Beijing and a senior lecturer at Southampton University. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/09/2016 page9)", -616,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618061.htm,"China, EU should team up on internet security",,"Did Russian government hackers influence the outcome of the presidential election in the United States? Or are the allegations just another urban legend, launched by Americans unhappy with the outcome? There will probably never be certainty. What is certain, however, is that the internet is much more vulnerable than we used to think. Cybersecurity is rightly one of key topics for discussion at the Internet Global Forum, the annual get-together of all internet stakeholders, in Guadalajara, Mexico. Cybersecurity is a global issue; it requires a global response. In the early 2000s, the European Union set up a specialized agency to promote common approaches and to exchange best practices in the EU - the European Union Agency for Network and Information Security, or ENISA. The ENISA worked closely with the governments of EU member states and the private sector to deliver advice and solutions. For example, it hosted the pan-European Cyber Europe Security Exercises in 2010, 2012 and 2014. It also advocated the development of national cybersecurity strategies, which are now mandatory in the EU under the recent Network and Information Security Directive. In parallel, ENISA developed a methodology to identify critical communication networks, links and components - dependencies on communication networks of critical infrastructure, such as electrical grids. ENISA disseminates its cybersecurity expertise through studies. For example, it published a study on secure cloud services, addressing data protection issues, privacy enhancing technologies and privacy on emerging technologies, electronic identity cards and trust services, and identifying the threat landscape. Another example is the report Communication Network Interdependencies in Smart Grids, which was published in January. It's mainly directed at smart grid operators, manufactures and vendors, as well as tool providers. The mandate of the ENISA will lapse in June 2020 and the EU is reflecting on its future mandate. Most of the reflection is focused on ENISA's future tasks, now that the network of national computer security incident response teams is in place. Insufficient attention was given to the possibility of widening the geographic scope of its mission, in view of the global nature of internet security. At the Trust Tech event in Cannes, the China Information Technology Industry Federation, or CITIF, highlighted the urgent need to establish a professional and perfect information security personnel training mechanism in China. The federation also bemoaned the fact that China's information security awareness lagged behind the world average, and that very few countries purchase information security services. The Chinese government pledged to make network and information security a national strategy and has already introduced a series of policies and taken other steps to strengthen information security and promote the development of an information security industry. But why do it all alone? Why not make use of the re-evaluation of the ENISA to transform it into a Chinese-European agency for network and information security, or CENISA? The legal basis of ENISA could evolve from an EU regulation to an international agreement between the European Union and China, which could eventually be joined by other countries, for example the UK after its exit from the EU. The new body would build on the current practice and expertise of ENISA to promote network security through: Recommendations; Activities that support policy-making and implementation, such as exchanging best practices and coordinating global security exercises; Hands-on work, where CENISA would collaborate directly with operational teams in China and the EU. Such reforms would be only first steps toward greater internet security, but would confirm the commitment of the EU and China to work together for a more secure internet. The author is president of ChinaEU, a business-led association that aims to strengthen joint research and business collaboration and investment in internet, telecommunications and high-tech between China and Europe. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/09/2016 page11)", -617,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618060.htm,Europe's shaken belief in its stability,,"Contradictory poll results sow seeds of doubt throughout a continent more accustomed to predictability Looking back over 70 years of post-war history, most Western Europeans would conclude that political instability is something that happens somewhere else. Now, however, following the Brexit vote in Britain, a referendum upset in Italy and the prospect of untested populist politicians coming to power elsewhere in Europe, a mood of uncertainty has gripped the continent. Europeans look warily across the Atlantic to assess the possible consequences of a Donald Trump presidency, and toward Asia, where the rising power of China has surpassed that of the old continent. We have short memories, of course. The postwar era was not quite the steady ride toward the golden uplands that is now recalled by those who yearn to go back to it. In the early 1970s, the Western world was facing the economic consequences of an oil price shock that quadrupled the cost of energy and stalled a period of rapid growth. In Europe, Spain and Portugal were still run by anachronistic dictatorships, while a junta of incompetent colonels was in power in Greece. Germany and Italy were threatened by domestic terrorism of the left and right, and even in sedate old Britain a group of superannuated officers and spies plotted a military coup against the Labour government of the day. And, for a further decade and a half, Europe was to remain divided between East and West, living under the threat that a false step or a miscalculation could lead to nuclear war. At the end of the Cold War, the now much-criticized European project led to a period of cooperation and integration between the previously divided halves of the continent. The current received wisdom is that Europe is now facing a widespread revolt by those left behind in this period of rapid change. A populist, nativist sentiment is said to be replacing the liberal internationalism of those who have governed the continent for a generation. It is a theory, of course, that is only as good as the latest election result. Brexit and the failure of Italian Prime Minister Matteo Renzi to gain backing this month for his constitutional reforms appear to affirm the strength of a Europe-wide populist backlash. But, if the narrow defeat of far-right presidential candidate Norbert Hofer in Austria is followed by election victories for Angela Merkel in Germany and a centrist of the left or right in France next year, the picture might look very different. Whatever the outcome of another year of political uncertainty after the shocks of 2016, Europe's leaders, whoever they turn out to be, will have to face the challenge of changing geopolitics. European strategists believe the relationship with China will be crucial, particularly in view of the antagonistic tone Trump has adopted toward Beijing even before he enters the White House. Sebastien Goulard, a French consultant on China-Europe relations, recently wrote that candidates in France's election next April must pay more attention to links with China. He said the favorite, the center-right's Francois Fillon, had mostly portrayed China as a threat. ""Although he is regarded as a supporter of economic liberalism, Fillon wants Europe to pursue anti-dumping policies toward China,"" Goulard wrote in the Asia-Pacific magazine The Diplomat. ""Furthermore he fails to see China's investments in the innovation sector as an opportunity for France and Europe."" Meanwhile, Alexander Stubb, a former Finnish prime minister, noted recently that Europe was coming to terms with the fact that China is buying European businesses in all shapes and forms. ""Europe should not complain,"" he wrote in the Financial Times. ""Europe should not burn bridges by taking knee-jerk protectionist measures,"" he wrote. ""Few predicted that the Chinese would emerge as advocates of free trade while the US turned inward."" These are sentiments that would be widely shared in China. Whether they prevail will depend on the choices made by Europe's increasingly divided electorates. The writer is a senior editorial consultant for China Daily UK. (China Daily European Weekly 12/09/2016 page10)", -618,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618036.htm,Quotable,,"Our strategy to boost westward growth has not changed. Yet, recently, there has been a divergence in development between southern and northern China, and each of the six provinces in central China also has its own conditions. It's necessary to improve development across regions so that the central region can truly play a supporting role in China's economy."" Premier Li Keqiang, referring on Dec 7 to a guideline for invigorating development in China's central regions, which was approved at a State Council executive meeting. ""We hoped that the mission would last longer because we had so much fun in space. We had a very memorable journey."" Jing Haipeng, commander of the Shenzhou XI mission, speaking to reporters on Dec 7 at the Astronaut Center of China in Beijing's northwestern suburbs. ""China's reaction reflected its confidence in the stability of China-US relations, its patience for Trump to get a better understanding of China policy, and its determination to defend the bottom line of the bilateral relationship."" Dong Chunling, a researcher at the China Institutes of Contemporary International Relations, commenting on US President-elect Donald Trump's phone call with Taiwan leader Tsai Ing-wen and his subsequent China-related tweets. (China Daily European Weekly 12/09/2016 page2)", -619,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618035.htm,IN BRIEF (Page 2),,"- Religious replica: A man paints a replica of a reclining Buddha statue, which weighs 3 metric tons and took eight days to assemble. Cultural relics from Dunhuang, Gansu province, have been transported to join an exhibition at Chengdu Museum in Sichuan province. The exhibition will be held at the end of this month. Chen Yuxiao / For China Daily Growth goals set for central provinces China issued a five-year guideline for invigorating development of its central region, aiming to build it into a key area for advanced manufacturing, modern agriculture, urbanization and ecological conservation. The new guideline sets a goal that the six provinces in central China - Henan, Shanxi, Hubei, Anhui, Hunan and Jiangxi - will account for a considerable proportion of China's production output, while people's livelihoods will be improved significantly. The goals will be achieved through such measures as optimizing the regional economic structure, creating new economic drivers, encouraging industrial upgrading, improving modern transportation infrastructure and strengthening agriculture development. China stands ready to aid Iran's recovery Senior officials and trade association leaders from China and Iran have called for reinforcing Beijing's role in revitalizing infrastructure and trade in Iran. China is well positioned for this, Iranian Foreign Minister Mohammad Javad Zarif said, because it has been a friend during hard times. Zarif, made the remarks on Dec 6, during an official visit to China, at the Iran-China Business Forum, a gathering of more than 300 corporate delegates. The visit was made at a time when China's role has been highlighted in helping the oil-rich Middle Eastern country address the poor condition of its infrastructure after international sanctions were lifted in January. The sanctions were imposed 10 years earlier over Iran's nuclear program. PLA Navy ships visit San Diego base Three Chinese Navy vessels arrived in San Diego on Dec 6 morning for a four-day visit to the Southern California city. Sun peeked through the clouds as rear admirals Huang Xinjian and Wu Haihua of the People's Liberation Army Navy walked off their vessel at San Diego's downtown B Street Pier. They were welcomed by US Rear Admiral James Bynum, commander of Carrier Strike Group Nine, and by Rear Admiral Yancy Lindsey, commander of the US Navy's southwest region. Some 600 Chinese sailors, most of whom were setting foot on United States soil for the first time, planned to spend three days with their counterparts from the USS Cape St George. Energy sector faces more inspections China's work safety watchdog will step up checks and supervision in the energy sector, including coal mines and oil and gas production and transportation, as rising energy prices increase motivation for illegal production. The country saw five major work safety incidents, including four involving coal mines, in the past three months, with at least 179 people losing their lives, according to the State Administration of Work Safety. At a conference on Dec 5 it said it will crack down on illegal coal mine production and activities that exceed designated mine capacity, and step up the phasing-out of small coal mines to prevent major accidents. Youth in China get taller, heavier Chinese youth have become taller, but they are also fatter and have worse eyesight, according to a report released on Dec 7. The average height of kids age 7 to 18 increased from 2000 to 2014, according to the Annual Report on Development of Youth Sports in China 2016. The average 18-year-old male stood at 1.72 meters in 2014, up from 1.70 m in 2000, while females grew from 1.58 m to 1.59 m. However, the obesity rate of males aged 7 to 22 in urban areas increased 25-fold from 1985 to 2014, reaching nearly 15 percent, while males in rural areas increased 45-fold. Little spent on public promotion of science China has been gaining international recognition for its scientific research thanks to significant government investment, though authorities seem not as generous in promoting science to the general public. Survey results released on Dec 7 by the Ministry of Science and Technology show that last year, special government funding for science promotion was 4.63 yuan ($0.67; 0.63 euros; 0.53) per capita, a 0.05 yuan drop from the previous year. The fund is mainly spent on sponsoring government organs or semiofficial organs to carry out science promotion projects, such as publishing books, holding lectures and organizing exhibitions. PISA scores for Chinese students fall Chinese students' scores fell across the board in science, reading and mathematics, in a global study conducted every three years by the Organization for Economic Co-operation and Development. The so-called PISA test for 2015 found that 15-year-old students' scholastic performance weakened, compared with 2012, although they were able to stay in the top 10 in science and math, according to an assessment of results released on Dec 6 by the OECD. Students in Beijing, Jiangsu, Guangdong and Shanghai scored a median 518 and were ranked 10th in science, compared with the 580 score of students from Shanghai in 2012. Industrial park signs Oxford University deal Jiansu-based Suzhou Industrial Park and the UK's Oxford University signed a deal establishing a joint research center, officials said on Dec 8. The Oxford Suzhou Centre for Advanced Research will be a multi-disciplined research, innovation and technology centre; it will initially focus on biomedical engineering, biomedicine, advanced function material, energy, environmental technology, financial mathematics, computer science and the health industry. The agreement, which took five years to negotiate, was signed by Suzhou Industrial Park's chairman, Yang Zhiping, and Professor Donal Bradley, head of the Mathematical, Physical and Life Sciences Division of Oxford University. Small firms should create jobs, Li says Premier Li Keqiang called on the owners of small private businesses to build their brands and contribute to employment and the national economy. At a ceremony on Dec 5 marking the 30th anniversary of the China Privately Owned Business Association, Li met with more than 200 representatives of the group. Such businesses now provide 40 percent of the country's jobs and have played an important role in boosting economic growth, vitalizing the market and meeting the public's diversified demands, Li said. The government will further streamline administrative processes and strengthen public services to protect their rights and legal property, he said. Protection of pandas, big cats to improve China is set to establish a national park system to beef up the protection of giant pandas, Siberian tigers and Amur leopards, according to a decision made by the country's leading group for overall reform. A pilot program for a national park system will help increase the integrity, connectivity and coordination of the habitats of the three at-risk animal species in China, according to a statement released on Dec 5, after a meeting of the Central Leading Group for Comprehensively Deepening Reforms. New drone adds to PLA's aerial toolbox The People's Liberation Army will soon have a new drone with an unusual shape. It is expected to strengthen the Chinese military's aerial reconnaissance capabilities. An unknown number of Xianglong, or Soar Dragon, high-altitude, long-endurance drones have been produced by Guizhou Aviation Industry Group, which is part of the state-owned aircraft maker Aviation Industry Corp of China, according to aviation sources. The aircraft is believed to be undergoing testing and is expected to be delivered to the PLA soon, sources said, adding that it is likely to become China's answer to the United States' Northrop Grumman RQ-4 Global Hawk, the best-known unmanned surveillance drone in the world. Delivery tricycles get more oversight Beijing recently introduced a registration system for express delivery tricycles that standardizes the appearance of such vehicles. The city also issued safety instruction cards to couriers, officials said. Insurance policies for the tricycles have also become a must for express-delivery companies. About 57,000 tricycles had been repainted as of early December, including those of 40 delivery companies. Some old tricycles do not meet the standards, and companies are being urged to discard them, according to Niu Jianming, office director at the Beijing Express Association. Ancient high-level sacrificial site found Archaeologists recently discovered a government-level venue used by ancient emperors to participate in sacrificial offerings. The Shaanxi Provincial Institute of Archaeology announced the discovery on Dec 5 on its official website, saying the find had great academic value for in-depth research on social institutions and politics of the Qin (221-206 BC) and Western Han (206 BC-AD 24) dynasties, as well as ancient Chinese ritual culture generally. The old sacrificial site, named Yongshan Blood Pool, is located in Fengxiang, about 15 kilometers southeast of the Yongcheng ruins, which is believed to have been the capital of the state of Qin (770-221 BC). Sale of old painting sets price record Five Drunken Kings on Horses, a Chinese classical painting of the Yuan Dynasty (1271-1368), sold for 303.6 million yuan ($44 million; 41 million euros; 34.6 million) at a Beijing auction on Dec 4, a record high for a Chinese painting so far this year. The color painting drew a packed room of bidders at Beijing Poly Auction's sale of ancient Chinese paintings and calligraphy. The bidding started at 68 million yuan and lasted about 40 minutes. The painting was created by Ren Renfa (1255-1327), a high-ranking official in charge of water conservancy in the Mongol-ruled court. In his spare time, he achieved prominence as a painter of horses and grooms. Xi: Constitution is fundamental President Xi Jinping called for enhanced public awareness of the Constitution and its implementation as the country observed its third National Constitution Day on Dec 4. The Constitution contains the fundamental rules of the nation, and it must be adhered to while implementing the rule of law, Xi said in a message marking the opening of an exhibition hall in Hangzhou. The hall features documents on the first Constitution of the People's Republic of China, which was drafted in Hangzhou and enacted in 1954. China's top legislature adopted the current Constitution on Dec 4, 1982, based on the 1954 version. New hardy rice strain resists cold Yuan Longping, a scientist known as China's ""father of hybrid rice"", has developed a new strain that could enable the plant to adapt to more varied growing environments at a significantly lower cost. The strain, the third generation of hybrid rice that Yuan has developed, is designed to be hardier and able to withstand lower temperatures during the plant's reproductive phase. Yuan said the cost of breeding the new strain has also decreased significantly, making its commercial use viable in the short term. However, he declined to disclose the expected average unit yield of the new rice strain. CFLAC appoints new chairwoman Writer Tie Ning was elected as chairwoman of the China Federation of Literary and Art Circles, replacing Sun Jiazheng. Tie was also re-elected chairwoman of the Chinese Writers Association. The 10th National Congress of the CFLAC and the Ninth National Congress of the CWA wound up on Dec 3. Tie, 59, won national acclaim in the 1980s for her prize-winning short story Ah, Xiangxue, about the adventures of a country girl who yearns to know the outside world and gets on a train by mistake. Tibet Museum to be renovated The Tibet Museum in Lhasa will undergo a massive renovation that will more than double its current size. The project, set to begin in April, will take three to five years, expanding the 28,000-square-meter building to 60,000 square meters. The project's cost has not been disclosed. The new museum will have a relics preservation center for the study and protection of Tibet art treasures including thangka, Tibetan Buddhist paintings on cotton or silk applique. President stresses role of eco-civilization President Xi Jinping has called for stepping up efforts in the construction of ecological civilization, according to a statement released by the central government. Xi urged local governments as well as departments concerned to earnestly implement a new concept of development and bear in mind that clear waters and green mountains are invaluable assets. More should be done to institutionalize and legalize ecological civilization and to speed up a greener, renewable and low-carbon growth, Xi said. Poverty relief plan issued for 2016-20 A national poverty alleviation plan issued by the State Council has provided a timetable and road map to fight poverty over the next five years. The document specified the main strategy, primary goals, targets and approaches to root out poverty. Under the outline, 128,000 impoverished villages and 832 counties across the country will be lifted out of poverty by 2020. - Looking for work: Job seekers collect information at a booth at the Job Fair for Foreign Students in China at Peking University. About 2,500 prospective employees attended interviews. The fair, which was organized by the Chinese Service Center for Scholarly Exchange, was offering 450 positions in fields including construction, high-speed railways, student counseling and financial services. Zhu Xingxin / China Daily - Five Drunken Kings on Horses, a painting by Ren Renfa (1255-1327), was auctioned for $44 million on Dec 4. Provided to China Daily (China Daily European Weekly 12/09/2016 page2)", -620,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618034.htm,Green bond drives yuan to go global,,"China's green bond is becoming a big driver for future renminbi internationalization, effectively linking Western investors' strong appetite for investment with green credentials with China's need to channel funds to clean up its environment. As of September, China issued $17.4 billion (16.2 billion euros; 13.8 million) of green bonds, making it the biggest global source of the securities. Green bonds in China have gone from nothing two years ago to accounting for 41 percent of the global market. An example of high profile issue is the New Development Bank's issue of 3 billion yuan ($448.37 million) of yuan-denominated, green bonds in China's interbank market in July. The NDB was established by the BRICS group of emerging nations. - As of September, China issued $17.4 billion of green bonds, making it the biggest global source of the securities. Provided to China Daily For the first time this year, green finance also gained a significant place on the agenda of G20 Global Leaders Summit through China's leadership, giving political support for the growth of this market. ""Renminbi green bonds can be attractive to overseas institutional investors because of the extra transparency in the use of proceeds,"" says Sean Kidney, CEO of the non-profit organization Climate Bonds Initiative. Green bonds have more transparency because the money raised needs to be spent on energy and sustainability projects, which is often monitored and certified by third parties. For this reason, European institutional investors looking for long term return, such as pension funds, find green bonds desirable for the safe long term return they generate. ""There is clearly a big demand from European investors for green bonds, supported by political and regulatory push. As things move forward, having green renminbi bonds and therefore a more diversified portfolio will be an attractive opportunity for European investors,"" says Andrew Carmichael, a partner at the law firm Linklaters. Green bonds are not only effective in financing China's domestic sustainable projects, but can also finance infrastructure projects along the Belt and Road initiative. ""Currently there is a huge amount of capital looking for yields, and projects along the Belt and Road strategy are very attractive in providing these desirable yields. "" Kidney adds that the fact that the China-backed Asian Infrastructure Investment Bank has positioned itself as a green bank and said it will prioritize green investments means many of the projects along the Belt and Road will have a green and sustainable focus, and the fact they are likely to be financed in renminbi means investment into those projects by global investors is helpful for the renminbi internationalization process. Despite huge potential, the growth of renminbi green bonds still faces two issues, says Carmichael. ""The first is the depreciation of the renminbi over the past year, creating some reluctance in the market to do renminbi deals, but this should be short-lived. The second issue, which relates to the fact China's own green bond standards are different from Western standards, may take some effort and education to solve,"" he says. Currently Chinese green bonds follow standards set by the Chinese central bank, which are different from global green bond standards in minor ways. For example, funding of clean coal through green bonds in China is allowed, but not internationally. Luckily, harmonization of standards is already happening as an increasing number of bonds issued by Chinese entities fit both the Chinese and international standards. One key example is a $500 million Bank of China bond listed on London Stock Exchange in November. Significantly, this bond is a covered bond, giving investors dual recourse: allowing claims over a dedicated ""cover pool"" of assets, and the usual claim against Bank of China. Carmichael says covered renminbi bonds should be a great opportunity for future renminbi internationalization. ""There is already a big appetite for covered bonds in Europe, so if there is an increase in issuance of renminbi green covered bonds, that will really help renminbi internationalization."" cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 12/09/2016 page7)", -621,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618033.htm,Yuan in demand,,"European financial centers seek renminbi business, as Chinese currency gains momentum With the Brexit vote in Britain raising uncertainties about London's leadership in Chinese currency trading, other European financial centers are trying to get a piece of the action. Already the world's third-largest trade finance currency after the US dollar and Euro, the yuan's reserve currency status was boosted by its inclusion in the International Monetary Fund's basket of special drawing rights currencies in October. The inclusion allows the yuan to sit alongside the dollar, euro, pound and yen in a basket that asset managers globally follow for asset allocation. The yuan makes up 10.9 percent of the basket. To facilitate Western investors' increasing yuan asset allocation, the Chinese government also significantly opened up its domestic bond market to foreign access this year and encouraged the issuance of offshore bonds denominated in yuan, also known as dim sum bonds. The Chinese Ministry of Finance issued its first sovereign offshore bond in yuan in London in May, in an effort to boost market confidence by providing liquid and safe bonds against which all other offshore yuan assets can be priced. Miranda Carr, senior analyst at Haitong Securities in London, says the sovereign bond and subsequent offshore renminbi bonds made it easier for international investors to access investment opportunities in Chinese currency. ""Due to the growing prominence of the renminbi globally and its inclusion into the SDR, investors globally are trying to increase their portfolios' weight of renminbi assets,"" Carr says. Jan Dehn, head of research at London-based Ashmore Investment Management, says the increasing issuance of offshore bonds reflects China's decision to open its capital account. ""This decision has enormous significance,"" Dehn says. ""Clearly, an open capital account exposes the country to more foreign exchange volatility, so it is highly advantageous that the renminbi becomes a global reserve currency, since global reserve currencies tend to be more stable than other currencies."" Dehn added that the issuance of dim sum bonds reflects market demand for yuan, particularly for hedging purposes by corporations. ""Most issuers of overseas RMB tend to be highly solvent institutions that could easily finance in their own currencies or the established global reserve currencies. Hence, they tend to issue in order to meet a specific demand,"" Dehn says. More issuance of RMB bonds abroad also helps to ""populate the offshore renminbi yield curve"", meaning future issuers can more easily find the prices of RMB bonds, Dehn says. In yet another milestone, in April the government of Hungary became the first Eastern European sovereign to issue a dim sum bond. In the first seven months of 2016, 68.3 billion yuan ($9.9 billion; 9.3 billion euros; 7.85 billion) of dim sum bonds were issued. Meanwhile the London Stock Exchange is on track to produce a feasibility study on a link between London and Shanghai stock markets, which over the long term could help Western investors buy A-shares listed in China. Brexit uncertainties Currently, London is the dominant European center for offshore RMB activity. The city overtook Singapore to become the largest yuan clearing center outside China in April, and London's yuan activity has continued to grow despite Brexit uncertainties. The People's Bank of China shows London's yuan-denominated business transactions in August were 60 percent above those in July. Between June 2014, when an official RMB clearing bank was designated, and August 2016, a landmark 10 billion yuan were cleared in London transactions. Brexit - the June referendum in which British citizens voted to leave the European Union - has injected an element of uncertainty. Even so, European financial centers outside of London are competing for RMB activity. Germany's Deutsche Borse made an announcement in October in London that it would establish a D-share market in the second quarter of next year for Chinese companies to raise euro-denominated funds for local acquisitions. Meanwhile Luxembourg Stock Exchange's CEO Robert Scharfe visited China in October to strengthen collaboration with Chinese financial institutions, including Bank of Communications and China Merchants Bank. The Luxembourg exchange currently has the largest listing of offshore RMB bonds in Europe. ""We have witnessed increasing efforts from other European centers to attract offshore renminbi business,"" says Andrew Carmichael, a partner at the law firm Linklaters. He says each European center has its respective strengths. For example, Luxembourg has strength in funds, and Frankfurt is backed by the largest European economy and enjoys proximity to the European Central Bank, Carmichael says. Currency convergence China's journey to internationalize the RMB started after the 2008 financial crisis, when significant quantitative easing by the US government caused China's US dollar-denominated foreign reserves to lose value. Traditionally, because the Chinese government encouraged export-led economic growth, it fixed the renminbi to the US dollar for its exchange rate, which resulted in the accumulation of a large quantity of US dollar foreign reserves. After setting its RMB internationalization agenda, China allowed the renminbi's exchange rate to gradually move toward a managed float coherent with the market equilibrium exchange rate, and encouraged the renminbi's increasing use internationally for trade and investment financing. According to November figures from the Society for Worldwide Interbank Financial Telecommunication, the RMB is the third-most-active currency in trade finance, after the US dollar and euro, with a share of 4.61 percent. SWIFT data also show that 57 countries now use the yuan for more than 10 percent of direct payments to China. Offshore yuan use grew significantly in recent years, but one key development for 2016 is an offshore-onshore convergence facilitated by a growing number of onshore RMB bonds issued. Known as panda bonds, these onshore bonds in China are increasingly sought by global investors as China's domestic bond market liberalizes. Convergence between the onshore and offshore markets is significant in helping the renminbi to move more swiftly across borders, and facilitate liquidity growth in its international use. Sales of panda bonds in the first seven months this year totaled 55.6 billion yuan. Significantly, Poland became the first European country to issue government debt in China's bond market in August. In September, the World Bank issued the first renminbi-settled special drawing rights bonds in China. Panda bonds like the Polish sovereign bond and the World Bank bond will be traded in China's $7 trillion interbank bond market. Despite being the world's third-largest bond market, the foreign investor share there is only 2 percent so far. One key reason is the previous lack of access, but in recent months a significant opening-up has been achieved, and the creation of more international products in this market, like the World Bank bonds, is expected to increase foreign investors' interest. Ivan Chung, associate managing director at Moody's, says the simplification in the panda bond issuance procedures is a big driver for more panda bonds and onshore-offshore renminbi market convergence. ""The onshore market has undergone considerable reforms in the area of market liberalization over the past 18 months, integrating it more with international investors and issuers. We are seeing considerable progress in onshore and offshore market convergence this year,"" Chung says. Carr says more international organizations will be issuing and buying RMB denominated bonds in the future, encouraged by the World Bank initiative. But she also warned that in the shorter term there are still challenges for foreign investment in China's bond market, especially unfamiliarity with this new asset class that has only recently opened to international investors. Aside from high-profile financial reforms and RMB financing deals, Chinese shoppers' increasing spending in Europe is becoming a significant driver of RMB internationalization, thanks to payment systems like UnionPay and Alipay, which allow Chinese tourists to pay for goods and services in yuan. In 2015, Chinese outbound tourists spent $229 billion overseas, according to research firm GfK. UnionPay already has a network involving 2 million retailers across 39 countries in Europe, where Chinese shoppers can use their Chinese bankcards to pay for shopping, and the card service is rapidly expanding its network. Cui Zhijian, an associate professor of operations management at IE Business School in Spain, says the initiative will facilitate the internationalization of the yuan and will enhance the position of the Chinese financial industry in the world market. Contact the writer at cecily.liu@mail.chinadailyuk.com   Representatives at a ceremony when 1 billion offshore bonds denominated in yuan, or dim sum bonds, issued by the China Construction Bank, were listed on London Stock Exchange's markets in October 2015. Zhou Zhaojun / China News Service (China Daily European Weekly 12/09/2016 page1)", -622,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618032.htm,International yuan boosts Belt and Road,,"The next phase of the internationalization of China's currency, the renminbi is progressing rapidly. Market participants are witnessing major steps, such as CIPS, the cross border payment structure, continued expansion of market access programs connecting China and the rest of the world, and the RMB's recent inclusion in the International Monetary Found's special drawing rights basket. That occurred shortly after the first SDR bond issuance by the World Bank in the onshore Interbank Bond Market. There are hundreds of specific projects, the importance and often local relevance of which will evolve over time. Significant trade volumes between China and various European countries, as well as increasing Chinese mergers and acquisitions activity in Europe, contribute to a need for an increased internationalization of the renminbi. RMB Clearing Banks in London, Frankfurt or Luxembourg, and financial institutions such as CEINEX have in Europe, in earlier years, been perceived as steps on the way to the internationalization of the RMB. The Belt and Road Initiative is a Chinese government development framework focused on promoting cooperation and boosting trade through policy coordination, better and more connected infrastructure, lowering or eliminating barriers to trade. From a European perspective, it goes far beyond the ostensible aim of building a trade and infrastructure network connecting Asia with Europe and Africa along the ancient Silk Road and maritime routes. The initiative creates corridors for trade and interaction, and overall a conceptual framework beyond infrastructure. As a result, the Belt and Road forms a significant development strategy with the intention of promoting economic cooperation as well as enhancing the orderly free flow of economic factors and the efficient allocation of resources. Trade and investment along the Belt and Road will, in effect, facilitate the overseas use of RMB. The acquisition of Greece's Piraeus Port by Cosco is one example for the interplay between the Chinese and the European economies. Other examples include the New Eurasia Land Bridge (an international railway line running from Lianyungang in China's Jiangsu province to Rotterdam in Holland), an international freight rail route linking Chongqing and Duisburg in Germany; a direct link between Wuhan, Melnik and Pardubice in the Czech Republic, a freight rail route from Chengdu to Lodz in Poland and a freight rail route from Zhengzhou to Hamburg. These new rail routes promote trade by offering ""one declaration, one inspection, one cargo release"". Recent European studies have reviewed how much trade might be created among Belt and Road countries because of the reduction in transportation costs and found that European countries, especially landlocked ones, should benefit considerably. The European Union, originally created as a European Free Trade Zone, was established to ensure peace in Europe by way of promoting free trade among nations. So the Belt and Road Initiative could have a similar, game-changing relevance, as well as an impact on RMB internationalization. RMB's evolving role, both as an international investment currency and as a reserve currency, helps companies working on the Belt and Road projects to get better exchange rates and better financing terms. In this context, the IMF's recent inclusion of RMB in its SDR basket of currencies may form a tipping point in China's role in the world economy. Yet regional economic cooperation is still the most effective way to promote cross-border circulation of RMB. The yuan is now regarded as a very strong and liquid currency in the major Belt and Road regions. In order to facilitate unimpeded trade, various steps will be required to resolve investment and trade issues, reduce investment obstacles and trade barriers as well as lower trade and investment costs. Many Europeans are aware of this and many European countries and institutions want to participate in and benefit from the various projects initiated under the Belt and Road Initiative. In this context it is important to emphasize that the European financial markets may actually support RMB's use in the Belt and Road strategy, as a number of projects may be partly financed outside China - and better interlocked financial Eurasian financial markets may well be one outcome. In Europe it is widely expected that China may enlarge the scope and scale of RMB settlements with countries along the Belt and Road routes, cutting exchange rate risks and transaction costs for trade and investment. The People's Bank of China has signed more than 20 bilateral currency swap agreements with central banks along the Belt and Road routes and China has also designated five RMB clearing banks along the routes - while at the same time other RMB hubs have been established in Luxembourg, London and Frankfurt. The authors work for King & Wood Mallesons, in the firm's HK and Frankfurt offices. The views do not necessarily reflect those of China Daily. ( China Daily European Weekly 12/09/2016 page8)", -623,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618031.htm,Assessing the RMB's multinational role,,"When it comes to the clout of its currency, the world's second-largest economy punches significantly below its economic weight Of all the important spheres of economic influence, the international monetary system has been the most rigid in responding to China's unprecedented growth and development. From the absolute level of annual GDP growth and the scale of foreign exchange reserves, to the share of global investment in renewables and other technologies - and countless other metrics - China has risen to occupy the top spot globally. Yet when it comes to the clout of its currency, the world's second-largest economy punches significantly below its economic weight. While the renminbi has gained ground over the past decade, it is still only the fifth-most-used currency in terms of payments, making up just 2 percent of the global total. The picture for reserves is similar. Only 38 countries hold renminbi in their official reserves, with the total value of renminbi holdings equal to $75 billion (70.5 billion euros) - equivalent to just 1.1 percent of total official reserves globally. This discrepancy, far from being accidental, is the result of the cautious attitude of Chinese policy-makers in terms of aligning the country's rapid economic growth with the opening of its capital markets. This approach is now changing. As both a political and an economic tool, the internationalization of the renminbi is becoming a key policy objective. This is reflected in several initiatives, including the creation of new multilateral investment banks such as the Asian Infrastructure Investment Bank and the New Development Bank, as well as the proliferation of central bank swap agreements. These agreements enable central banks to exchange local currency at fixed rates, ensuring that they can withstand balance of payments pressures when facing market shocks and destabilizing currency fluctuations. This is particularly important for economies that have (or want to build) strong trade and investment links with each other. China is now the largest or second-largest trading partner for most of the world economy. This creates important incentives for many central banks to hold greater amounts of renminbi in their foreign reserves that can be supplied to domestic banks and to companies that face short-term funding constraints for their foreign currency activities. Since late 2008, 36 central banks have signed currency swap agreements with China, totaling $500 billion. (3.3 trillion yuan). These include central banks in major advanced-economies - the European Central Bank, Bank of England, Bank of Canada, Swiss National Bank, the Monetary Authority of Singapore and the Reserve Bank of Australia - but also central banks in emerging economies such as Argentina, Pakistan and Thailand. The renminbi's entry into the International Monetary Fund's special drawing rights currency basket on Oct 1 was an important milestone in consolidating the currency's status as a reserve currency, joining the dollar, euro, pound sterling and yen. Apart from acting as a ceremonial seal of approval, a practical implication of the renminbi's SDR inclusion is to elevate the importance of China's swap agreements. Under existing SDR arrangements central banks that draw renminbi under swap agreements can subsequently convert it into SDR and then into dollars, which means that swap agreements with China now grant these central banks access to international liquidity via an indirect channel. Although such international considerations are important to the growing appeal of the renminbi, the currency's fate crucially remains tied to that of the Chinese economy. While fears over a hard landing have abated compared with the periods of high financial market volatility in mid-2015 and early 2016, China's success in rebalancing its economy, deflating its high debt pile and avoiding the middle-income trap without experiencing a recession, is far from secured. Despite these doubts, the momentum of the renminbi remains strong. Another expansion area in the infrastructure for internationalization is the promotion of the renminbi as a benchmark currency for commodities. This includes an already launched renminbi-denominated benchmark price for gold. Oil could follow next, as China seeks to avoid exchange rate risks and to hedge against shocks in oil-exporting regions, which in turn would see increased incentives for raising their renminbi holdings. This multitude of initiatives to actively promote the internationalization of the currency, together with the growing foreign acceptance and interest in the renminbi as reflected in its SDR inclusion, sets the scene for a new era in Chinese policy-making where the rise of the renminbi will be one of the principal, if not the most important, characteristics in a phase of rebalancing and transition. In turn, China's growing monetary influence will with time come to challenge the dollar's hegemony, consolidating a new era in the global monetary landscape, that of the multicurrency system. The author is head of research in the Official Monetary and Financial Institutions Forum, a London-based independent advisory group for worldwide public-private sector interaction in finance and economics. The views do not necessarily reflect those of China Daily. (China Daily European Weekly 12/09/2016 page8)", -624,2016/12/9,http://europe.chinadaily.com.cn/epaper/2016-12/09/content_27618030.htm,China is nutty about Potter,,"Enthusiasm unabated in China nearly 20 years after the schoolboy wizard first cast his spell on the world Late at night in Beijing on Nov 24, as the temperature continued to fall to its forecast -5 C, and as the usual din in the streets of the city's Sanlitun area began to abate, an unusual scene began to unfold. Every now and then, strange figures in twos and threes strolled into the square, in the middle of which was a giant brown suitcase in front of a billboard for the movie Fantastic Beasts and Where to Find Them. Almost all these people wore black gowns, striped scarves of scarlet - and gold, green, silver, yellow, black, blue and bronze - and ties in the same matching patterns. Some wore carrot-shaped earrings, Harry Potter and the Deathly Hallows necklaces, or silver badges saying ""Head Boy"" or ""Head Girl"". Tucked inside their bulky sleeves and bags were exquisite wands. The square was abuzz with their chatter, and they eventually headed for the warmer confines of an underground cinema, the Megabox, where they lined up to get preordered tickets for Fantastic Beasts from a group that calls itself the Room of Requirement. The film premiered on the Chinese mainland after midnight. - Harry Potter fans gathered in Beijing to watch the movie Fantastic Beasts and Where to Find Them. Photos Provided to China Daily - Lin Pin, a cosplayer and PhD student at Peking University. - Harry Potter fans help each other adjust their fittings. - Fellow Harry Potter cosplayers at a wedding of one of their members in November 2015. Once they had secured their tickets, these die-hard Harry Potter fans chatted with one another and took photos. A total of 102 fans from all walks of life attended the premiere that night. Some traveled from Tianjin especially for the party. It was the third activity this year organized by the Room of Requirement, a society named after the room in the Harry Potter novels. It was started in February, when fans from all over China gathered in Shanghai for a memorial event for Alan Rickman, the British actor who played Professor Snape, and who died in January. ""It's amazing to make so many friends who love Harry Potter books,"" says Zhang Ruoxi, 26, one of the organizers of the activity. ""It feels like a lot of witches and wizards hide among ordinary people, and when you raise your wand they will respond to you."" Zhang is an engineer. Other Potter fans included an architect, a doctor, an editor, a student and a traffic police officer. ""When you put on the gown, no matter who you are or what you do, you are just one of us, equal and being cared for and loved as a Harry Potter fan,"" says Liu Zhujie, 18, another organizer of the activity. Liu, from Shanghai, recently started university studies in Beijing. It is difficult to say how many Harry Potter fans there are in China, but since 2000, when the Chinese version of the first book came out, nearly 20 million copies of the series have been sold. When the last book of the series Harry Potter and the Deathly Hallows was published nine years ago, there were 1 million copies in the first print run of the Chinese version. The Chinese version of Harry Potter and the Cursed Child was published on Oct 29, and since then all 300,000 copies have been sold and the publisher is printing more. British author J.K. Rowling's Potter novels have played a significant role in the lives of many Chinese readers, especially those of the only-child generations. Not only did they grow up with Harry, Ron and Hermione, but they have also formed great friendships as a result of a shared enthusiasm. One of the most outlandish things that Lin Pin, now 28, has done relating to Harry Potter was in 2003 when he started high school in Fujian province. Lin had special feelings for Harry Potter because when he was attending middle school a close family member died, reflecting the experience of the fictional British schoolboy Harry, both of whose parents died when he was an infant. ""Rowling's stories gave me very important comfort and accompanied me as I went through pain and sadness,"" Lin says. In the summer of 2003, Harry Potter and the Order of Phoenix was published. To read the story as early as possible, Lin went online for the first time in his life to buy his first English novel, and he devoured it no time. In the book, his favorite adult character Sirius Black, Harry's godfather, dies. Lin was so saddened by this that he wrote a poem in memory of him. At high school, Lin took part in a poetry recital contest. All the other students chose well-known classic poems, but Lin recited the poem he wrote for Sirius Black. Not only that, but he bought a gown online and was dressed like Harry Potter when he was stepped onto the stage. ""It was the first time that I cosplayed Harry,"" Lin says. ""It was also the first time that anyone had done cosplay in our county."" Lin says the sincerity in his poem touched many in the audience, whether they had read the books or not. But his antics were regarded as offbeat, particularly because many teachers and students at the time knew nothing of the stories, let alone the fictional character Sirius Black. ""For me, it is a very precious memory. Although the character is fictional, I expressed sincere feelings in my poem that touched many in the audience,"" he says. Later, he often cosplayed Harry Potter with other fans, especially after he went to Beijing. Some say he is the person in China who looks most like Harry Potter. Lin is now a PhD student at Peking University and will graduate next year. As a student in the Chinese Department he wrote a paper on Harry Potter when he was a junior undergraduate. In nearly 40,000 characters he analyzed the reasons for the popularity of the novels worldwide, rejecting the view of many critics that Harry Potter books are children's books that are either too naive for adults or too dark for children. He dug out the deeper meaning behind the metaphor of the magic world Rowling had created. Lin says her books have helped form his worldview. With characters like crazy girl Luna and the twins Fred and George, the books have encouraged him to be himself regardless of what other people think, he says. ""Luna is my favorite character in the novels. She shows us there are so many different kinds of people in the world. We should respect people who are different from us, embrace diversity and treat others fairly."" That worldview and ethos is shared by many Harry Potter aficionados, among them Yin Pingping, 29. ""After I finished reading The Casual Vacancy I was very much touched by Rowling's humanist spirit,"" she says. ""She is so consistently sincere with herself and readers. In the Harry Potter series she writes about discrimination against non-pureblooded witches and wizards, and the slavery of house elves. She expresses her opposition to racism, sexism and hierarchy through the stories in the magic world. And in The Casual Vacancy she expresses such ideas more directly."" Like many Harry Potter fans, Yin was immediately drawn into Rowling's magic world once she started reading the first book in the series. In 2003, when cases of SARS (severe acute respiratory syndrome) were reported in Beijing, Yin was a high school student in the capital. Because of SARS schools were closed, so Yin spent six months studying at home and communicating with schoolmates on the school's bulletin board system. ""We built a section especially devoted to Harry Potter and made a lot of friends,"" she says. Three years later when she arrived at Fudan University in Shanghai, she felt lonely because many of her schoolmates in the city had known each other since primary school. At the suggestion of a roommate, Yin printed some advertising fliers in an effort to gather Harry Potter fans, but without success. So she knocked on dormitory doors, one after another, looking for ""comrades"" in different classes. Finally she recruited about 30 first-year students, a number that narrowly passed the requirement of the university to set up a new club. Despite some skepticism, the university eventually granted Yin's application and she became the leader of the Harry Potter Fan Society at Fudan University, the first in China. To better organize activities for members, she had to give up training with the women's softball team at the university and the Japanese course she had planned to take. Before the last Harry Potter book came out in 2007, the society had more than 400 members. Regular activities included the annual performance of a play adapted from the novels - or an original play - in November, a reading club each week and a costume ball on Halloween. ""Unlike many other societies, we gathered together because we love the books rather than to build up relationships for our future, as many students do at university,"" Yin says. ""So I am glad that our society kept a space for people like us. And it also showed how tolerant the school was. We received a lot of interviews, including some by foreign media."" The society gave Yin many things, including a romantic relationship. But what she cherished above all, she says, was the spirit she got from the books of Harry Potter: courage, responsibility, love and friendship. ""I started reading Harry Potter when I was 11 years old. At the most important moments of my life, when I was disappointed in love, failed in examination, or couldn't find a job, I would always go back to the books, where all the questions have solutions."" Lin's feelings are similar. ""I read Harry Potter stories from the spring of 2001 to the summer of 2007, between the ages - 12 and 18, while characters in the books Harry, Hermione, Ron and Luna - grew up from 11 to 17. In my youth their company was irreplaceable."" So irreplaceable that some diehard fans have used Harry Potter as the theme for their weddings, with Harry Potter books or stuffed owls as decorations, and borrowing from the book for their marriage vows. Lin analyzes the popularity of the Harry Potter series from another perspective, saying: ""It's very precious because many die-hard fans, including me, are the only child of our families, without brothers or sisters."" ""But we have made many friends because of this common interest. We communicate both online and offline, transcending the limit of space or the connection of blood."" The Room of Requirement is a good example. Zhang and Liu have made more than 270 friends online. ""When you go traveling, just put on your gown and you will be received by friends in every city,"" Zhang says. ""When I decided which university I wanted to go to in June, I found the gate of the world was open wide to me. Instead of remaining in Shanghai and spending my whole life there, I decided to come to Beijing. And when I arrived I didn't feel lonely at all, because I knew there was a group of people like me living here."" yangyang@chinadaily.com.cn (China Daily European Weekly 12/09/2016 page1)", -625,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545478.htm,Baidu maps out global expansion,,"Baidu Map, a desktop and mobile map service provided by China's online search giant Baidu Inc, is set to become a world mapping service provider covering more than 150 countries and regions. On Nov 30, the company launched its map services for more countries and regions. The services will cover countries in Asia, Europe, Africa, North America, South America and Oceania, and provide services for 99 percent of the world population. ""This signals that we will finally transform from a Chinese map provider to a world map provider and become the Chinese brand that provides global services for mobile travel applications,"" says Li Dongmin, general manager of Baidu Map. Currently, Baidu Map claims to account for about 70 percent of domestic market share, with more than 300 million active monthly users and about 100 million car owners using its mapping service. At the beginning of the year, Baidu Map initiated its internationalization strategies and has been expanding rapidly around the globe. On Nov 28, Baidu Map started strategic cooperation with the tourist administrations of four northern European countries - Denmark, Finland, Norway and Sweden. The two sides will exchange data, share resources, and jointly develop more events to improve the travel experiences of Chinese visitors. ""The cooperation signals a further step forward in the localization of Baidu Map in the course of its internationalization, following our cooperation with the tourist administrations of South Korea and Thailand,"" Li says. In the first half of 2016, Chinese people made 59.03 million trips abroad, up 4.3 percent year-on-year, according to the China National Tourism Administration. Baidu Map says it has covered 25 percent of Chinese outbound tourists and, by 2020, it aims to have overseas users accounting for half of its total users. ""We will strengthen in-depth cooperation with overseas governments and leading enterprises and choose some key countries to provide mapping services in local languages and increase our local impact,"" Li says. zhuwenqian@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page26)", -626,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545477.htm,Rent-a-bike: High hopes for emerging sector,,"In the 1980s, a bicycle, a radio and a sewing machine were considered the top three necessities for young Chinese couples contemplating marriage. At the time, China was the ""Kingdom of Bicycles"" - bikes were key to people's daily transportation. Now, the country boasts the world's largest automobile market. There are more cars than bicycles on the roads. Yet, ambitious entrepreneurs keep attempting to restore the lost glory of bikes. Their strategy, however, is changing. - A student uses an ofo bike on the campus of the University of International Business and Economics in Beijing. Zhu Xingxin / China Daily While continuing to advice every family to own at least one bike, they are also attempting to persuade people to share bikes. Welcome to bike-on-demand services, the latest segment in China's booming sharing economy. They are not very different from ride-on-demand apps, which changed the way people hail cabs in China. Sensing potential for a similar success story, venture capital firms are betting big on bike-on-demand apps. Since August, two Beijing-based startups - Mobike, which enables people to rent the nearest available GPS-enabled bike via smartphones, and its rival ofo - have been locked in a race for funding. New investors have poured cash into them every two weeks on average. Newcomers such as Hello-bike and Ubike are emerging. However, catching up with Mobike and ofo, which also make bikes, may prove easier said than done. Mobike's two kinds of signature black-and-orange bikes are already ubiquitous in Beijing, Shanghai, Shenzhen, Guangzhou and Chengdu. Ofo's shiny yellow bikes are gaining visibility on university campuses in 18 cities, and all over Beijing, Shanghai, Shenzhen and Guangzhou. Mobike has so far deployed around 100,000 bikes across the five cities. There are more than 190,000 ofo bikes out there. Each of its bikes costs Mobike hundreds to around 2,000 yuan ($290; 273 euros; 231); for ofo, a bike costs between 200 yuan and 300 yuan, depending on bells and whistles like a vegetable basket in front. Hu Weiwei, the founder of Mobike, says there is a certain rationale to the investment spree in bike-sharing firms. ""People have always had a need for bikes, to cover short distances of less than 5 kilometers. With the development of mobile internet technology, we can now make it happen."" While cab-on-demand services such as Didi Chuxing meet people's demand for quick long-distance rides, bike-sharing firms serve urban citizens seeking to reach a bus stop from home, an office from a subway station or a neighborhood vegetable market from their apartment. Li Xiangyu, 20, a student at Beijing-based University of International Business and Economics, says he instantly took a shine to Mobike after trying out the 1/2-yuan-per-hour service. ""I ride their bike every time I need to go from the university to the nearest subway station. Unlike the bike-rental services that require users to borrow bikes from (and return them to) certain locations, services like Mobike allow users to borrow and return bikes wherever and whenever they want,"" says Li. Because Mobike's bicycles are GPS-enabled, the next borrower will be able to find them using his/her smartphone. In Mobike's case, after users locate the nearest available bike, they can reach it and book it by scanning its ID or QR code. Payments are done online using apps such as WeChat and Alipay. There is no time limit for a ride. Li Hao, an analyst at Beijing-based internet consultancy Analysys, says: ""There will be many bumps ahead, such as how to lower the cost of the high-tech bikes and how to cooperate with local governments."" Contact the writers at mengjing@chinadaily.com.cn and ouyangshijia@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page25)", -627,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545476.htm,Meet the real-life robocop,,"Mechanical workers are playing an ever-increasing role in Chinese life Security officer AnBot, on patrol at the Shenzhen Bao'an International Airport, stands out from the other security officers at the scene. They are tall - and cool. In contrast, AnBot is just 1.5 meters high, portly and oval-shaped. But it's AnBot that attracts the attention of passers-by. AnBot is no ordinary security officer. It is China's first ""robotcop"" and came into service in August. The smart machine can move on wheels at speeds of up to of 18 kilometers per hour. Equipped with four cameras, it can automatically map the best routes for itself to move, communicate with people and recognize and track faces. When its battery is about to die, it can find the nearest charging point, enabling it to patrol nonstop for eight hours. More important, in an emergency situation, human officers can guide the robot by remote control to disable or disarm a target. According to the Shenzhen Municipal Public Security Bureau, AnBot can patrol 24 hours a day and is of great help at the short-staffed airport. The smart machine, developed by China's top military academy, the National University of Defense Technology, is part of the country's effort to develop service robots for both professional and personal use, amid the dual challenges of an aging society and rising labor costs. ""Though China became the biggest market for industrial robots as early as 2013, its service robot industry is still at a very early stage,"" says Luo Jun, CEO of the Asian Manufacturing Association. In 2014, 212,590 service robots were sold in China, accounting for less than 5 percent of the global market, according to the Shenzhen-based Forward Business Research Institute. But that is changing rapidly, partly fueled by strong policy support from national and provincial governments, and rising demand from China's swelling middle class. In April, the Ministry of Industry and Information Technology unveiled an ambitious plan to sell more than 30 billion yuan ($4.4 billion; 4.1 billion euros; 3.5 billion)-worth of domestic service robots by 2020 to meet demand from the healthcare, education, entertainment, medical and defense industries. ""If you ask me to describe the development of China's robotics industry in one word, I'd choose 'explosion',"" says Zhao Jie, a professor of mechanical engineering at Harbin Institute of Technology. According to Zhao, investment and talent are flooding into the industry, with the involvement of giants as well as startups. In line with the trend, the institute's startup HIT Robot Group was launched in 2014, in partnership with the Heilongjiang provincial government. The university has done years of cutting-edge robot research. It is the maker of China's first space robots and lunar vehicle. One of its priorities now is to develop service robots for professional use, such as defense robots. Some of its anti-terrorism robots, which can sniff out bombs, climb slopes, monitor the environment and operate guns, have been exported to countries in the southern hemisphere already, an employee at HIT Robot says. ""Universities and enterprises are working closely on the research and development of robotics technology, which is pushing China's service robot industry forward,"" says Hao Yucheng, deputy director of the China Robot Industry Alliance. According to Hao, the professional robot industry is investment-intensive, highly risky and generates slow returns. Any breakthrough demands long-term effort. Shortsighted strategies will lead to failure, he says. Zhejiang University, in association with Nanjiang Robotics, a startup that was created in 2014, unveiled Chitu - China's first four-legged robot, that can jump and run - at the recent Third World Internet Conference in Wuzhen, Zhejiang province. The mid sized, spider like Chitu can walk upstairs step-by-step, just like human beings, and can carry a load of up to 50 kg. ""In the future, Chitu could be used to carry goods in earthquake-stricken areas and outdoors where the roads are pretty bumpy,"" says Li Chao, a member of the research team from Zhejiang University. A vacuum cleaner robot outsold TVs to emerge as the top-selling electronic appliance on Alibaba's Tmall.com on Nov 11, China's annual Singles Day online shopping festival. Online sales of DeeBot, the vacuum cleaner developed by Ecovacs Robotics Co, generated 200 million yuan. Such an encouraging consumer response is pulling new players into the industry. Xiaomi Corp, which has evolved from a smartphone maker to a tech giant, unveiled an automated vacuum cleaner in September. This explosion of service robots is spawning unlikely uses beyond households, in places like cemeteries. In central Henan province, a cemetery deployed a humanoid robot in October to escort female patrol guards on night duty, local media reported. Winnie Tang, a founding member of the Hong Kong Professionals and Senior Executives Association, an organization to promote communication between the Chinese mainland and Hong Kong, says in a column for the South China Morning Post that there are three stages in the evolution of the service robots in China: tool, governor and companion. ""China is still at the 'tool' stage, where robots are mainly used to do household chores. To progress, the country must enter the 'governor' and 'companion' stages, where the main objective is social interaction,"" she says. masi@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page28)", -628,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545475.htm,"CNPC separates its gas sales, pipeline units",,"China National Petroleum Corp is to split its natural gas sales and pipeline units, a move that will further accelerate natural gas industry reform and promote a market-based pricing system for the sector, experts say. The newly separated pipeline company will be responsible for all pipeline-related operations, while the corporation will establish five individual natural gas sales companies. The pipeline unit of the major oil and natural gas provider was previously responsible for both natural gas pipeline operations and sales. - Workers replace a pressure meter on a section of natural gas pipeline in the Qaidam Basin in Qinghai province. Xinhua Xu Wenrong, vice-president of CNPC, says the move is significant in accelerating market reform in the natural gas sector. An analyst also says the spinoff of the natural gas pipeline operations and sales business will move the company in the direction of a more subdivided natural gas sales organization and let the market play a decisive role in resource allocation. According to Sun Yang, an analyst from Zhongyu Counsel, a counseling agency in the fields of coal, steel, oil and natural gas, the separation of natural gas sales and pipeline units will help speed up market reform in the natural gas sector and help formulate market-oriented prices for clean energy. The company recently raised non-residential natural gas prices in the country's northern regions to help manage peak demand during a winter expected to be the coldest in four years. It raised prices by 10 percent in Shandong province, and gas prices were also increased in the northeast to deal with a ""very tight supply"" in the peak winter period. The state-owned company said earlier that it would increase investment in natural gas pipeline construction and gas sales in the coming decade. The company, Asia's biggest oil and gas producer, currently allocates 70 percent of its total budget to natural gas production and around 10 percent to gas pipeline construction. It is expected to increase these figures as it focuses more effort on its gas business, says Hou Qijun, head of CNPC's planning department. Hou says the firm will expand its annual gas output to 180 billion cubic meters by 2020 from the current capacity of 120 billion cu m. PetroChina Co, CNPC's listed arm, says its profits from natural gas and pipelines slumped nearly 36 percent to 4.7 billion yuan ($703 million; 663.2 million euros; 561.6) in the first four months of 2016. The 2050 energy outlook report, released by CNPC's research institute, shows that China's natural gas use will surge to 510 billion cu m by 2030 and 710 billion cu m by 2050. zhengxin@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page25)", -629,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545474.htm,Belt and Road coordination with EEU seen as historic,,"The Amur International Rail Bridge - known in China as the China-Russian Tongjiang Rail Bridge - was first proposed in 2007 by Valery Solomonovich Gurevich, vice-chairman of the Jewish autonomous oblast - or administrative region - in eastern Russia. The 2,197-meter bridge will link Nizhneleninskoye in the Russian Jewish region with Tongjiang, Heilongjiang province, at an estimated cost of nearly $230 million (216 million euros; 183 million), according to Gurevich. The bridge was designed by Russia's Giprostroymost Institute, meeting both Russian and Chinese standards. It will have both a standard gauge (1,435 mm) track and a Russian gauge (1,520 mm) track, with the two tracks offset by 800 mm, so that only one can be used at a time. Coordination of the Belt and Road Initiative with the Eurasian Economic Union is promising and historic, experts say. The Silk Road Economic Belt was initiated by President Xi Jinping in 2013, first in Kazakhstan, which is a key member of the Eurasian Economic Union, and he paid a state visit to Uzbekistan in June, on the path of the ancient Silk Road. Shakhrat Nuryshev, Kazakhstan's ambassador to China, said China was the first country, in 1992, to recognize the independence of Kazakhstan and to establish diplomatic relations with the former Soviet republic. Nuryshev says the Belt and Road Initiative, Shanghai Cooperation Organization and EEU can be more connected and provide a clear direction for multinational cooperation. Kerry Brown, of the China Studies Center at Sydney University in Australia, says China would like to provide opportunities for EEU countries, especially those that are involved in the Silk Road Economic Belt, with long-term, low-interest loans similar to those given in Africa for big infrastructure projects. Kamel Mellahi, professor of strategic management at Warwick Business School in the United Kingdom, says: ""Regional connectivity is the main objective of the strategy of China's Silk Road. There is little doubt that it's a win-win project for all countries involved."" Yang Cheng, deputy director of the Center for Russian Studies at East China Normal University in Shanghai, says most EEU countries have resource-based economies whose energy sectors suffered from the rapid downturn in oil prices - even though the lower prices brought opportunities for cooperation with China in other sectors. Yang says the coordination of initiatives provides opportunities for countries that want to raise their competitiveness in international markets. Such coordination could result in constructive reforms of their resource-based economies and also see China and EEU countries build an efficient industry chain, allowing greater capital input. He says that to coordinate the two initiatives, ""all countries need to establish greater industrial cooperation - and not only industrial cooperation but capital, talent, technology, market and cultural cooperation"". renqi@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page30)", -630,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545473.htm,A bridge to nations' shared prosperity,,"Russia's ideal location between China and Europe means it's ideally suited to improve connectivity between continents Russia and China have achieved positive results through cooperation on infrastructure construction - including such projects as the Amur International Rail Bridge - and Russian investors are expecting more opportunities under the cooperative framework, according to Kirill Dmitriev, CEO of the Russian Direct Investment Fund. The fund is a $10 billion (9.4 billion euros; 8 billion) pool established by the Russian government in June 2011 to make equity investments in high-growth sectors of the Russian economy. Both the Russian and Chinese governments are pushing coordination of the Eurasian Economic Union with China's Belt and Road Initiative. Dmitriev says the support from leaders stimulates business development by minimizing additional risk and reducing red tape around Sino-Russian economic cooperation. ""If our leaders continue to inspire and promote this cooperation, governments and companies will follow suit,"" Dmitriev says. ""However, to achieve this we need specially designed vehicles, such as the Russia-China Investment Fund and the Russia-China Intergovernmental Investment Cooperation Commission and the Russia-China Business Advisory Committee, to be successful in converting the positive and proactive attitudes of our leaders into real and trangible mutual benefit for both the Russian and Chinese economies."" The Russian fund, together with China Investment Corporation, established the Russia-China Investment Fund, or RCIF, in 2012, which received $2 billion in commitments from the Russian Direct Investment Fund and China Investment Corp. Dmitriev says the RCIF has identified five key focus areas in which lie considerable potential for generating returns that include natural resources, infrastructure, food and agriculture, and consumer goods and services. ""We target opportunities created by the rapid development of economic cooperation, fast-growing trade and the increasing purchasing power of the middle class in Russia and China,"" Dmitriev says. ""The approach allows the fund to generate attractive returns for investors."" He adds that RCIF projects in China include investments in Didi Dache, Tutor Group and the Russian-China Bridge across the Amur River. Just recently, RCIF and Tus-Holdings, an integrated enterprise that owns Tsinghua University Science Park, agreed to establish a joint Russia-China Venture Fund. The fund will promote the development of trade and economic investment, as well as scientific and technological cooperation between Russia and China. ""The fund target size will be up to $100 million and may be further increased,"" he says. ""The RCIF and Tus-Holdings will be anchor investors. There will likely also be participation from other Russian and Chinese institutional investors."" ""The One Belt, One Road Initiative is very important for Russia, because it has the potential to provide sources of additional economic growth,"" Dmitriev says. ""Russia's strategic location between China and Europe means we are ideally situated to support this initiative and improve the connectivity between East and West."" At present, the Russian Direct Investment Fund is actively looking for more Belt and Road-related investment opportunities and has signed a partnership agreement with the Silk Road Fund of China, a state-owned investment fund of the Chinese government, to foster increased investment in countries along the Belt and Road route and is actively pursuing related investment opportunities. Dmitriev says the railroad bridge across the Amur may serve as and example of a potential Belt and Road connection with the EEU. The bridge - called the Amur International Rail Bridge or the China-Russian Tongjiang Rail Bridge - links Nizhneleninskoye with Tongjiang. Dmitriev says the bridge will be greatly beneficial to both countries as it creates a new export corridor and alleviates transport infrastructure constraints between new fields being developed in Eastern Siberia and the Far East. It will also allow for a significant increase in the turnover of goods and the competitiveness of Russian exporters and producers when entering Chinese markets. renqi@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page30)", -631,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545472.htm,Shanghai increases down payment requirements,,"Shanghai's housing authorities have announced that they are stepping up limitations on home purchases in the city. In particular, they are raising down payment requirements as part of an effort to restrain fast-rising house prices by limiting speculative buying. Analysts say that more measures could be taken since policy-makers have not exhausted the many tools they have in the box. In the process, the city's housing market may see fluctuations in both trading activities and average prices, they say. - Buyers select apartments at a real estate fair in Shanghai. Provided to China Daily The new measure, announced Nov 28, says that the required down payment for first-home buyers is raised to no less than 35 percent of the total price, compared to the previous requirement of no less than 30 percent. The definition of first-home buyer has also been narrowed to those who do not own a home and also have no record of a housing loan from any bank nationwide. Previously, the definition looked only at housing loans from banks in the city. Homebuyers who have previously applied for a home loan and have cleared their debt are not defined as first-home buyers, according to the new measure. Other buyers are required to pay at least 50 percent as a down payment, and buyers of nonstandard apartments, such as villas and luxury apartments, are required to pay at least 70 percent down, according to the new measure. ""The move totally rules out speculative buyers in the housing market in Shanghai, giving no chance for them to leverage home loans to buy more apartments than they actually need,"" says Feng Shuguang, a realty agent at Shanghai Dongyun Real Estate. These policies could have a significant impact on transaction volumes as many recent deals have been households upgrading properties, with many of these purchasers taking advantage of the 30 percent to 40 percent down payment requirements. The implementation of the new measures means many of these purchasers may no longer have the requisite capital for the increased down payments of 50 to 70 percent, says James Macdonald, head of Savills China Research. ""While this is unlikely to have an immediate impact on pricing, reduced transaction volumes will most likely cool price growth further. Additionally, if transaction volumes remain low for a sustained period of time, this will result in an increase in downward pressure on pricing,"" says Macdonald. Since the beginning of 2016, Shanghai has launched a slew of measures to cool its overheated residential market. wuyiyao@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page26)", -632,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545471.htm,Electric bus pioneer pulls into wider European market,,"As environmental regulations tighten, manufacturer is well placed to meet growing demand Chinese vehicle manufacturer BYD is playing a major role in meeting Europe's demand for environmentally friendly transport. The company is competing with Western producers such as Volkswagen, Renault-Nissan, and General Motors for a slice of the growing market for electric vehicles. As the producer of Europe's largest fleet of all-electric buses, BYD recently announced it was setting up a new factory in Hungary to produce electric vehicles in preparation for even faster expansion. - BYD's electric single-deck buses on display in London. Photos Provided to China Daily The assembly plant in the northern Hungarian city of Komarom, to be built with 20 million euros ($21.3 million; 17 million) of investment, will employ up to 300 people over two shifts and will be capable of assembling up to 400 vehicles a year. With a research and development center and battery-testing facility, it will begin production in the first quarter of 2017. ""There is literally no limit to our ambitions in the UK and Europe,"" says Isbrand Ho, managing director of BYD Europe. ""We plan to roll out more business-to-business products and then will come our passenger cars."" BYD started selling buses to the UK three years ago, initially as a trial run. After proving its technology, it rolled out 51 all-electric versions of the iconic London red bus in September, to operate between London Bridge and Waterloo. That is so far Europe's largest pure electric bus fleet, and it is estimated that it will reduce London's CO2 emissions by 700 metric tons a year. In addition to the London buses, BYD has supplied fleets to Merseyside and Nottingham. It sold 50 taxis to British company Thriev two years ago and is now partnering with the popular taxi hailing app Uber for a trial of 30 electric taxis. Although it's a newcomer to the UK, BYD has made a big name for itself in a market where its competitors have supplied only 22 electric buses to London. The market potential is huge because the Greater London Authority aims to make all 300 of the city's single-deck buses that travel through central London zero-emission by 2020, and all its 3,100 double-deckers by 2019. BYD's electric buses in the UK are made in partnership with Scottish company Alexander Dennis. BYD supplies the chassis, which holds the core technology and powertrain, and Alexander Dennis manufactures the body, which includes innovative features such as USB charging points and Wi-Fi. To service the new buses, 43 charging points were supplied by BYD and installed at the Waterloo garage, with another five located at the nearby Mandela Way depot. BYD worked closely with Scotland's SSE energy group and UK Power Networks on providing power. About 7 million passengers a year use buses on the routes, covering more than 1.1 million kilometers to April 2016. BYD has also supplied vehicles to other countries, including Sweden, the Netherlands, Denmark, Belgium and Spain. The company has already produced 10,000 buses, which are sold across 50 countries and operate in 240 cities. BYD was founded in Shenzhen in 1995. It's European headquarters is in the Netherlands. Originally a battery maker, it became the world's largest rechargeable battery manufacturing firm. Battery technology remains its core competitive advantage for electric vehicles. ""We understand batteries better than anyone else,"" Ho says. This technology gave BYD a big head start when it started to make electric vehicles. Unlike competitors, who buy batteries from third parties, BYD can use its in-house iron phosphate battery, which is known to be safe, reliable and long-lasting. ""Every competitor has to acquire this technology from third parties and try and integrate the related components, while we produce all these in-house,"" Ho says. With a team of 16,000 research and development engineers, BYD has ambitions to increase the power density of its batteries by 10 percent per year. ""This means more powerful batteries offering even longer range, or lighter, smaller batteries offering more carrying capacity for people and goods,"" he says. Perhaps as testimony to its battery technology, BYD's buses in London have proved that they can run reliably and consistently for a 16-hour shift without charging. BYD's strategic position as an electric vehicle maker has come at an opportune time, because over the next few years global emission standards will become increasingly strict. In BYD's home market the government has announced big plans to encourage electric vehicle growth. By spring this year, BYD was producing more than 10,000 electric buses worldwide. With the Chinese government's goal of having 5 million all-electric vehicles and plug-in hybrids on the roads by 2020, China's electric vehicle market has boomed. Sales of electric and hybrid vehicles reached 206,000 for the first eight months of 2016, a 160 percent increase from 2015, according to JATO Dynamics, a research firm. Globally, 1.79 million electric and hybrid vehicles were sold the same year, JATO says. With such huge opportunities, it is a competitive market. Chinese carmaker Zhejiang Geely is building electric taxis, known as TX4 Euro 5 London taxicabs, after its acquisition of the London Taxi Co three years ago. They will be launched in mid-2017 and, which shifting from diesel to electric power, will also be more spacious. Chang'an Automobile and SAIC Motors are also selling electric and hybrid vehicles in response to Chinese policy initiatives to support the sector. Felipe Munoz, global automotive analyst at JATO, says BYD's position as the leading Chinese electric vehicle manufacturer gives it on edge over Western competitors. ""China wants to lead global markets with electric vehicles. To be local to China is its major advantage because it will be part of the accelerated growth that will bring more technologies and expertise,"" Munoz says. Munoz says BYD's presence in Europe means it can benefit from various European laws and government incentives. To encourage the increased use of electric cars, European regulators have set a goal of turning 10 percent of parking spaces in new buildings in the eurozone into recharging points. Norway and the Netherlands, two countries leading electric vehicle growth in Europe, have plans to completely phase out diesel vehicles by 2025. Munoz says BYD's main challenge in Europe is gaining recognition and combating the bad reputation Chinese cars have there. ""The European market is very competitive, with very little space for newcomers, as the local players are very well positioned in their markets,"" he says. ""All electric vehicles face problems trying to gain the trust of consumers, who worry about their range, recharging and efficiency issues. And this is even more of a problem if the brand is unknown to most of the public."" In this respect, perhaps BYD's strategy of establishing a name in the public transport sector before rolling out cars is smart. Looking into the future, Ho is optimistic about growth in the use of electric vehicles in Europe, because cities are becoming increasingly densely populated, creating a big demand for public transport. And the environmental credentials of electric vehicles are a big factor, as European cities move increasingly to reduce pollution, he says. cecily.liu@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page29)", -633,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545470.htm,Minister: China should stand out,,"China will encourage crowd innovation, crowd funding, crowd outsourcing and other innovative business techniques to further support the ""Made in China 2025"" initiative, especially in its mature and fast-growing sectors, says the country's top official for industrial businesses. Miao Wei, minister of industry and information technology, says these platforms will change production and management. They will be able to attract both small and micro businesses as well as big companies. ""It allows employees within the company to get rewards in addition to their salary by sharing creative ideas online. It will also offer opportunities to manufacturers outside the company to take part in innovation and share the benefits,"" he says. - An advertisement in the Zhongguancun incubation area, which offers startup companies breakfast to see other companies' roadshows. A Jing / For China Daily The ""Made in China 2025"" initiative is a 10-year national plan designed to transform China from a manufacturing giant into a global high-tech manufacturing power. Robots and high-end numerically controlled machine tools are among the 10 key fields of the initiative. With more capital and technology supporting models, the minister says, a large group of micro businesses will be incubated, and cooperation among research institutions through internet technologies will upgrade their innovations in a more efficient manner, in particular in industries such as e-commerce, telecommunication and other types of service businesses. Eager to upgrade the country's manufacturing ability, the Ministry of Industry and Information Technology launched 46 intelligent manufacturing pilot projects in 2015 and started 63 projects in industries such as bullet trains, 3D printing, construction machinery and electric vehicles. The Central government has allocate 5.2 billion yuan ($755 million; 710 million euros; 605 million) to promote 133 key projects in 25 provinces and autonomous regions involving intelligent manufacturing this year, which is nearly 1.5 times the capital invested in the projects in 2015. ""China is experiencing a new type of industrialization, IT application, urbanization and agricultural modernization, which can generate strong domestic demand,"" Miao says. Shenyang-based Siasun Robot and Automation Co, the country's biggest robot maker by market value, has set goals to continue improving its innovative system to compete with established foreign rivals, including Switzerland's ABB Group and Fanuc Ltd of Japan, over the next decade. Qu Daokui, president of Siasun, says the company will make more efforts to train workers to manufacture and operate robots, as the national manufacturing initiative ""Made in China 2025"" gains momentum. Contact the writers through zhongnan@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page26)", -634,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545469.htm,Automated future is at your service,,"""Your Royal Highness, my name is Run. I have a gift for you. Please push the 'open' button to receive your present."" That was the human-like voice of a robot - waist-high, cylindrical, mobile, wearing a bow tie and behaving gentlemanly - speaking to Prince Andrew, the Duke of York, on his recent visit to China. The robot gave the prince a notebook with an embroidered cover and the royal visitor appeared pleased with both the gift and his new Chinese friend who, avoiding the crowds and obstacles, guided him through the hall to the exhibition stand. Designed by Yunji Technology, a Chinese startup, Run is the latest in a series of robots that have been impressing VIPs. Pitt, Run's predecessor, had interacted with Premier Li Keqiang and then became an online celebrity. Yunji has multiple patents for artificial intelligence in China. The company focuses on the development and commercialization of autonomous robots, especially for delivering goods. Zhi Tao, co-founder and CEO of Yunji, says he believes the key is to make every robot move freely. ""In order to bring robots to the masses, it is important to make them move easily. Once a robot is not fixed to one physical location, just like a human, its ability will be enhanced and then it can serve us better,"" Zhi says. ""We are committed to making the robots move easily within 1 kilometer for use in both indoor and outdoor scenarios, including hotels, office buildings, shopping malls, hospitals, communities and so forth."" Founded in 2014, the company currently has nearly 40 service robots operating in hotels, offices and office buildings. They work at almost 30 high-end hotels. Equipped with advanced positioning systems, bellhop can automatically identify and avoid obstacles and people. Once a robot becomes part of the Internet of Things, it can communicate with elevators, move between hotel floors, arrive at the door, notify guests of telephone calls, deliver items they need, such as food, water and towels. In July, Yunji signed a strategic cooperation agreement with Changcheng Property Group, a leading Chinese property enterprise. The two companies will conduct research on possible applications of service robots in communities. It is expected such robots will materialize by the end of this year or at the beginning of next year, and become operational in the middle of 2017. ""It is a huge industry,"" Zhi says. ""The Chinese commercial-use robotics market will reach tens of billions of yuan by 2018."" Wang Tianran, an academician at the China Academy of Engineering, told Xinhua News Agency earlier that China's demand for service robots had grown rapidly. He said that, thanks to strong policy support, there will be more new robots to meet people's daily needs. In the past, Yunji received funding from iFlytek Co, a Chinese company dedicated to intelligent speech and language technologies. ouyangshijia@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page28)", -635,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545468.htm,RMB predicted to stabilize,,"The renminbi will stabilize against the US dollar because the Chinese economy seems to have reached its bottom, Cao Yuanzheng, chairman of BOCI Research Limited and former chief economist of Bank of China, said on Nov 29. Although China experienced a continuous economic slowdown for 24 quarters, the growth of the Producer Price Index has recently turned from negative to positive, showing an increase in Chinese companies' sales revenues and their ability to pay interest on loans. Meanwhile, the profit growth of industrial enterprises is accelerating, also indicating an improvement in companies' debt-repayment ability, according to Cao. ""We think the Chinese growth rate may have reached its bottom, so China will not ease monetary policy further to give a large-scale stimulus to the economy. That is, the possibility the central bank will cut interest rates and reduce reserve requirements is significantly reduced. Under this monetary environment, the renminbi has no basis for depreciation in the long run and will stabilize against the US dollar,"" he said at the Renminbi World Conference 2016, which was organized by the Asian Banker, a Singapore-based provider of strategic information on the financial services industry. Furthermore, big infrastructure projects along the routes of the Belt and Road Initiative will provide a broader space for the use of the renminbi, which will become an important, stable currency over the long term, he added. Yang Bin, a senior executive at Shanghai Pudong Development Bank Co, said: ""Under the trend of the internationalization of the renminbi, commercial banks are seeing new opportunities in areas including infrastructure financing, and cross-border renminbi asset management."" jiangxueqing@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page25)", -636,2016/12/2,http://europe.chinadaily.com.cn/epaper/2016-12/02/content_27545467.htm,The fine art of selling culture,,"Leading international auction chief says Chinese collectors will play a pivotal role in future market Jussi Pylkkanen is the president of Christie's, one of the two biggest auction houses in the world. But he sees himself as more of an aficionado and part of the cultural landscape that connects museums, foundations and art dealers from all parts of the globe. A fan of Chinese porcelain and English glass, the 53-year-old Pylkkanen is the auctioneer at the center of the art world's biggest sales. - Jussi Pylkkanen, global president of Christie's, takes a bid on a painting by Georges Seurat entitled Attelage Rural during the Impressionist and Modern Evening Art Sale in February 2015 in London, England. Getty Images He believes China has a pivotal role to play in the global market as its collectors show an ever-growing interest in art, and auction sales in China continue their inexorable rise. Under Pylkkanen's leadership, Christie's recently opened its new central Beijing flagship center, part of a continued expansion in China. It is the second Christie's venue on the Chinese mainland after its Shanghai branch, which opened in 2014. According to Pylkkanen, the auction house is continuing to grow and invest in China and the new Beijing space is not only an important milestone in the auction house's 250-year mission to connect art and collectors but also illustrates its resolve to continue expansion in the country. Pylkkanen recently spoke to China Daily about his China strategy, leadership style and personal life. The following are edited excerpts from the interview: Art collecting has been popular and auctions have done well in China over the past few years, as Chinese moguls have splashed out money on masterpieces. How would you describe the Christie's business in China in recent years? China is an absolutely critical part of the international art market today. Over the last three years, since our Shanghai office opened, we have witnessed huge growth in interest from Chinese collectors in all areas of the international art market - in Hong Kong, New York, London, Geneva and elsewhere. There is no question that in years to come the number of Chinese buyers - and Western buyers showing an interest in buying Chinese art - will grow very rapidly. We have witnessed this before, when we opened our business in North America in 1977. Quickly the US became a critical part of the market for us. As well as being a London-based company, we are also a multicultural company with significant operations across the world. How has the Christie's expansion in China been going so far? What strategies will you adopt to expand further? We already have three exhibition bases in China, which I am very proud of: the one in Hong Kong, which we have continuously developed over 30 years, a historical location in Shanghai and the new space in Beijing. We have the kind of exhibition spaces that no other businesses, other than the local Chinese ones, have. We are pleased to be the first Western company to have a broad, structured footprint in China and we will continuously grow. Is there a leadership style that is particularly effective in China? What is the proportion of Chinese and expats in your management team? We are trying to make Chinese collectors comfortable to work with our business. We have opened many relationships over the past 250 years. We have strong resources and love to get very close to museums, collectors and young artists. It's a combination of the classical and the new here in China. And Christie's gives collectors an international platform, which is very important. The management team in China is 100 percent Chinese. We have a staff in China of almost 50. They are all from the Chinese mainland. We want to build a business, which is all about being in China and run by Chinese. How hot is the competition that Christie's faces in China? What do you do to distinguish Christie's from competitors? We don't see anybody working in the art market as being a competitor. We see them as part of the art landscape that includes the museums, the foundations and the art dealers. It's one big community of art and culture. The more people dealing with art and culture, the better. We are leading our business with a team of many creative minds. What is your competitive edge in this community you describe? We have very high selling rates. We deliver what we promise. We like to do things well. Our exhibition spaces in Beijing brought out the exhibition on Pablo Picasso and other Chinese artists, and when we opened the space in Shanghai in 2014 we did the same thing. People know we take our responsibilities seriously. We make sure the culture and art of every nation is well represented. I'm currently on a tour, visiting museums, collectors and foundations and looking for exhibition spaces, and with all of them we want to reach out to the community. What are the biggest achievements, opportunities and challenges for Christie's in China? If we look at the commercial side, 28 percent of our buyers last year came from Asia, and 40 to 50 percent of those were from China. We sold around $6 or $7 billion (6.6 billion euros; 5.6 billion) -worth of artwork last year. It's a very healthy environment and many people want to create relationships with us. Some of them are buyers, some want to come and learn about the art market, and some come to the education courses provided by Christie's. In China we are launching a new education course with Yale University, based in Beijing. As more Chinese moguls buy world-famous works of art, do you think there's now a trend for art collections to house a major portion of global wealth? People have been collecting artwork for over two centuries. People have been collecting as a symbol of their wealth and their position for many years - hundreds of years - and it continues today. It's normal. It's part of a culture that we are all in. Some compare China's current art-collecting phenomenon with that of Japan in the mid '80s, when wealthy Japanese were chasing impressionist masterpieces. What do you think? Japanese collectors have fantastic taste. They bought beautiful things and continue to buy beautiful pieces. The Chinese collectors are doing the same. There are sometimes financial ups and downs and I wouldn't call it a Japanese issue. The Japanese are continuing to collect art pieces and the Chinese are now, too. The Chinese just arrived more recently in the market than the Japanese. The Japanese have had a long time to collect. Japan's economy subsequently went into deep recession due to the bursting of an asset bubble, and the art market followed. Will China experience a similar fate and how can it avoid that? I don't think so. The Chinese economy is very strong. As long as the Chinese economy, or any economy in the world, is strong, there will be individuals able and wanting to collect works of art. During your trips to China, is there a place that particularly impressed you? Of all the places I have ever been to, the Forbidden City stands out as incredible. I was able to go with our top specialist who showed me the wonderful pieces and porcelain in the museum. That was really a highlight for me. They are magnificent. What are your hobbies? How do you spend your time off-duty while in China? I collect contemporary art from across the world. But I also collect artwork, like glass from my home country, England. It's very close to the porcelain in China. What's your favorite piece of artwork? I love collecting artwork and I'm a passionate collector of Scandinavian and modern British glass. And one of my favorites is Modigliani's painting Nu Couch, Reclining Nude. In recent years we have created very meaningful relationships with collectors in China, and the Long Museum in China bought it last year. zhengxin@chinadaily.com.cn (China Daily European Weekly 12/02/2016 page31)", -637,2017/2/7,http://www.rte.ie/news/2017/0207/850712-waiting-lists-reaction/,Crumlin hospital theatre for scoliosis patients to open in April - Harris,,"Minister for Health Simon Harris has promised that a new operating theatre built for scoliosis patients will open at Our Lady's Children's Hospital Crumlin from April. The opening of the operating theatre has been-delayed due to staffing issues. An RT? Investigates programme, Living On The List, broadcast last night revealed that the number of patients waiting for operations or medical procedures was significantly higher than published, and highlighted shortcomings in the way waiting lists were being processed. In the D��il this evening, Mr Harris repeated that he was ashamed and said the RT? programme brought home the genuine pain and suffering of patients who are waiting far too long for treatment. The minister said the theatre would carry out 194 spinal operations. Mr Harris also said that by June an additional orthopaedic surgeon will be in place at the hospital. Health Minister tells D��il that a new theatre for scoliosis patients in Crumlin Hospital will operate from April https://t.co/yp2CwDi1kB pic.twitter.com/eeq0jlFqhq ""?RT? News (@rtenews) February 7, 2017 Agreement with the HSE was also reached that paediatric scoliosis waiting times will be a maximum-of four-months by end of the year. The Minister for Health has also directed that the National Treatment Purchase Fund audit the practices in the hospitals highlighted in the individual cases in last night's programme. It is very important that lessons are learnt to see exactly how each of those cases were handled, he said. The minister met the Health Service Executive-and the NTPF today about the disclosure that many more patients were awaiting treatment than had been thought. The D��il is to hold a special debate on the programme on Thursday morning. Politicians and medical experts are demanding that the waiting list scandal be brought to an end. Political-reaction to waiting list figures The minister told the D��il that the-day case waiting list of over 18 months will be eliminated by the end of June for all day case procedures through the NPTF. Mr Harris said that this will see over 2,000 patients begin to receive their treatment from March. - RT? broadcast evidence-showing-there are at least two other significant waiting lists that are not published by the-NTPF, which has responsibility for collating waiting list data. The documentary also dealt with difficulties encountered by patients, adults and children, in need of operations. The HSE-has apologised to patients and accepted some delays were unacceptably long. Following the programme, Minister Harris-said he was-""ashamed"" and ""heartbroken"". Speaking on RT?'s Claire Byrne Live, Mr Harris said: ""I don't think there's any sugar-coating of this, I don't think there's any possibility, or any point in anybody saying anything other than that this is ... this is wrong, this is something that as a country we can't stand over. It's something that I as minister for health can't stand over and it does make me feel ashamed."" Mr Harris said extra capacity was needed in the health service - citing staff numbers, beds and building new hospitals. ""I feel ashamed. I feel heartbroken"" - Minister for Health Simon Harris tells #CBLive. #RTEInvestigates pic.twitter.com/4PSDvkPM1x ""?RT? News Now (@RTENewsNow) February 6, 2017 The Department of Health has confirmed that the current system for waiting lists was put in place in 2002 when the NTPF was established. Fianna F��il-has said there is a need to get patients moving through the health system. The party's health spokesman Billy Kelleher said ""we are exhausted from talking about reform"" and what is needed is output and delivery of service that puts patients first. Speaking on RT?'s Morning Ireland, Mr Kelleher said while there are clear management issues in the HSE, the lack of capacity in the-hospital system is the real problem. Mr Kelleher added that over recent years there has been a downgrading in the HSE in terms of capacity, out-put and productivity and it has resulted in the waiting lists growing longer and longer. Sinn F��in's health spokesperson Louise O'Reilly said ""the sad reality of these figures is that this is endemic of perpetual health crisis and one which is being concealed from public view by creative accounting and massaging of figures."" Labour's Alan Kelly said the public were tired of the lack of accountability and the minister needs to take a hard line with the HSE.- He also called for a full investigation of how the waiting lists were established. Hospital beds - the numbers The PA Consulting Report on Bed Capacity for the HSE in 2008-said that Ireland would need to have 17,843 public hospital beds by this year. Department of Health statistics show that the system currently has about 12,400 public inpatient and day beds. The PA study projected that the health service would need 19,822 public hospital beds, including critical care beds-by 2020. However, it said that if Ireland moved to a system where care shifted from large hospitals-to more community and home care, the acute bed need would fall to about 8,800 by 2020. That system was termed a 'Preferred Health System' which the HSE called an 'Integrated Health System' and which it said it would move towards. At the time, the HSE said that if the shift was fully achieved, Ireland would need 8,834 public hospital beds by 2020. However, if it was only 25% achieved, Ireland would need 16,174 public hospital beds by 2020. Ten years ago, the number of people on the national surgical and medical waiting list was 22,747 - according to NTPF figures. By 2011, the number had increased to 28,850 patients. At the end of last year, the national waiting list-for inpatient-or day case treatment had increased to 81,015. System is 2,000 beds-short, consultant says Professor Paud O'Regan, Consultant Physician at South Tipperary General Hospital in Clonmel, said the national system is about 2,000 beds short and as a result cases are being delayed and beds are being lost by acute admissions. Prof O'Regan said the end result is the awful stories that were on television last night. He said that if enough money was being put into the system, it was being extremely badly managed and-denied that consultants were not always available because they were occupied with private practices. He said consultants were always available but they were not being-given the opportunity to look after patients properly. Orthopaedic Surgeon at-Mayo General Hospital-Derek Bennett-has said that Ireland has produced-some of the best physicians, nurses and health care professionals and-exported them. Speaking on-RT?'s Today with Sean O'Rourke, he said-there are low numbers of specialists in Ireland and it was not simply a question of throwing more money at the jobs, but rather making them attractive to those applying. This included, he said, ensuring that surgeons have a staffed operating theatre and an outpatients' clinic available to them.- Meanwhile, Orthopaedic Surgeon at Crumlin-Children's Hospital Pat Kiely-said none of the stories he saw on the RT?-investigates programme surprised him. He said Ireland is probably the lowest staffed country in western Europe when it comes to orthopaedics and population. He said there is not the staff to deploy the two orthopaedic theatres in Crumlin fully and there are two days this week where the spinal surgery in the hospital is not in use. Separately, there are 587 patients on trolleys, or wards, today waiting admission to a hospital bed, according to the Irish Nurses and Midwives Organisation. The hospitals worst affected are University Hospital Limerick with 46 waiting, University Hospital Galway with 44 and Beaumont Hospital with 40.", -638,2017/2/7,http://www.rte.ie/news/2017/0207/850841-commission-of-inquiry/,Call for O'Sullivan to stand aside during whistleblower inquiry,,"There have been calls for Garda Commissioner N��ir��n O'Sullivan to stand aside pending the report of the commission to investigate claims that senior garda�� mounted a smear campaign against a prominent whistleblower in the force. The Government agreed to establish a Commission of Inquiry today on foot of a recommendation from former judge Iarfhlaith O'Neill in a report prepared for Minister for Justice Frances Fitzgerald last year. That report will be published in redacted form tomorrow. The Government will only publish Mr O'Neill's conclusions and recommendations based on legal advice from the Attorney General. It is understood that the Attorney General's advice is based on the fact that the former judge's report contains information about the protected disclosures made by the garda whistleblowers. The allegations arise from protected disclosures known to have been made by former head of the Garda Press Office Superintendent-Dave Taylor, and whistleblower Sergeant-Maurice McCabe. Sgt McCabe last year claimed he had been the target of a smear campaign that involved senior members of the force. He was backed by Supt Taylor. Both men made the allegation under the protection of whistleblower legislation. Supt Taylor is said to have implicated the commissioner, who has strenuously denied knowledge of any smear campaign. Independent4Change TD Clare Daly said the commissioner should stand aside while the inquiry is under way. Minister Fitzgerald said she could not comment on that ahead of the draft order setting up the commission, but the scale of its work should become clear tomorrow. Supreme Court judge Peter Charleton will head the Commission of Inquiry.-His terms of reference will be published tomorrow. Fianna F��il's justice spokesperson Jim O'Callaghan welcomed the new commission and said his party looks forward to Judge Charleton ""working towards a speedy conclusion to his investigation so that we can get to the truth of these matters as soon as possible.""", -639,2017/2/7,http://www.rte.ie/news/2017/0207/850691-land-forestry-fraud-roscommon-laois/,Two in court over forestry investment fraud,,"Two men have appeared in court charged in connection with a forestry investment fraud.- David Peile from Rectory Way in Bray is accused of deceiving a person to invest over ?50,000-in forestry in Ireland. The father-of-two was granted bail at Dún Laoghaire District Court this morning despite garda objections and is due to appear again in six weeks' time. Mr Peile was arrested by the Garda National Economic Crime Bureau at his home in Bray yesterday morning. He is accused of deceiving a Swedish man, Kari Wahlstrom, out of ?52,000. Detective Garda Siobhan Moore told the court that the complainant alleged that he invested in forestry believing he would own the land and get Government grants. The detective also said that David Peile allegedly used the false name of David Marshall. Det Moore objected to bail because of the seriousness of the charge, the nature of the evidence and her belief that Mr Peile, as a UK national, was a flight risk. The detective testified that Mr Peile spent a lot of time in the UK, Spain and Europe and had not been employed since last December. She also said she did not believe that he knew he was to be charged with a criminal offence. However defence solicitor Michael Staines said Mr Peile was aware of this investigation for some time, he had a partner and two children here, he was prepared to stay in the country and not take any business trips abroad. Judge Ann Watkins released Mr Peile on �1,000-bail along with another �1,000 bond requiring him to sign on twice daily and surrender his passport. He was also directed not to leave the country and be contactable by garda��-on his mobile phone at all times. A-second man appeared in court this evening in connection with the-forestry investment fraud. Garrett Hevey, 41, with an address at Brookdene, Shankill, is accused of -deceiving an investor - Kari Wahlstrom - of ?52,000 sterling and possession of over �1.9 million-in an AIB account alleged to be the proceeds of crime. Inspector Cathrina-Gunne-of the Garda National Economic Crime Bureau told Dublin District Court that Mr Hevey was a signatory to and the beneficial owner of that account and a director of Arden Forestry Management. - She said investors transferred large sums of money to this account believing they were investing in a legitimate forestry business and were furnished with false documents for falsified folios, timber certificates and management contracts. The father-of-one was remanded in custody with consent to bail to appear again in court next Thursday.", -640,2017/2/7,http://www.rte.ie/news/2017/0207/850865-trump-cabinet-nominees/,Pence vote needed to confirm DeVos as education secretary,,"US President Donald Trump's choice of Betsy DeVos to be education secretary was confirmed by the US Senate, but only after Vice President Mike Pence was called in to break a tie that threatened to defeat her. The tie-breaking vote, which Senate officials said was unprecedented to confirm a president's Cabinet nominee, came after two Republicans joined with 46 Democrats and two independents in opposition to Ms DeVos. Critics have called her unprepared to lead the Department of Education. Two moderate Senate Republicans, Susan Collins and Lisa Murkowski, opposed Mr Trump's-pick, citing Ms DeVos's lack of qualifications for the post that oversees thousands of schools, millions of school children and national curriculum standards. Democrats were unable to convince another Republican to defect, despite an intense lobbying effort that culminated with all-night Democratic talks-on the Senate floor. Democratic Senator Patty Murray, a former pre-school teacher, said Ms DeVos's performance at last month's confirmation hearing ""underscored how unprepared she is to serve as secretary of education."" Ms-DeVos, a former chair of the Michigan Republican Party, never attended public school or worked in the public school system. Supporters praise the billionaire businesswoman and philanthropist as a fierce advocate of school choice, a US movement that seeks to use tax credits and vouchers to allow parents to opt out of the public school system in favour of privately managed charter schools for their children. She is just the fifth of 15 cabinet members to be confirmed by the US Senate, along with CIA director and US ambassador to the United Nations, which are cabinet-rank positions. .@VP Pence was required to cast deciding vote to confirm @BetsyDeVos for Education Sec as Senate voted 50-50.1st time for a cabinet pick ""?Caitriona Perry (@CaitrionaPerry) February 7, 2017 Senate Democratic leader Chuck Schumer immediately derided the proceeding. - - - - - - ""This cabinet nom is so unqualified, so divisive, that @MikePenceVP had to drive down Pennsylvania Ave to cast the deciding vote,"" he wrote in a Twitter post after the vote. Under the US-Constitution, the vice president also serves as president of the Senate, with the power to cast votes only when there are ties on nominations or legislation.- - - - -- The US-Senate, in a procedural vote, also cleared the way for confirming President Trump's nomination of Senator Jeff Sessions to be the next attorney general. - - - - - - By a vote of 52-47, the Republican-controlled Senate agreed to limit debate on Mr Sessions. A final vote on confirming him to head the Justice Department, the nation's top law enforcementj ob, is likely sometime this week. - - - - - - Mr Sessions, as is the custom for senators voting on their own nominations, cast a vote of ""present.""", -641,2017/2/7,http://www.rte.ie/news/analysis-and-comment/2017/0207/850683-tony-connelly-brexit/,"Tony Connelly: Ireland, Britain and the perils of the Brexit Fairy",,"As awareness spreads about the implications of Brexit, reassurances from London and Dublin that there will be ""no return to the hard borders of the past""-are wearing thin. The tacit bipartisan policy of the opposition parties has gone and it is now getting intensely political. There are two reasons why the mood is sharpening, writes Europe Editor Tony Connelly. British Prime Minister Theresa May has finally spelled out via two speeches (London and Davos) and a White Paper that Britain will be out of the single market and probably the customs union (although she left an unexplained caveat that there could be some future customs association between the UK and the EU). The second is the testimony of Michael Lux, the former head of the European Commission's customs procedures unit, to a House of Commons committee. He made it clear in sobering terms that Mrs May's idea of a ""seamless""-or ""frictionless""-border was a fantasy. ""If you define seamless as no border controls then the answer is no,-at least for Ireland,-because it is obliged to apply EU law,""-he told the committee. The revelations have been pounced upon as evidence that the Government's Brexit strategy is faltering, fuelling calls for a dedicated Brexit minister and a special status for Northern Ireland. The view from Brussels, and from officials with a keen knowledge of the EU's customs rules, is more nuanced. But there is a distinct sense that Ireland should move up from the ""sympathy""-gear it has-been operating, and to start making concrete solutions. ""There's no doubt that people are sympathetic,""-says one well-placed EU source. ""But sympathy only gets you so far. You may not find sympathy when you start proposing solutions. Will those solutions be acceptable to the other 26 member states?"" The reality is that Britain will be what is called a ""third country.""- Since London wants to sign trade deals in other parts of the globe it will have to leave the customs union. That means it will be subject to tariffs on goods and services (unless there is a tariff free trade agreement with the EU after the two-year divorce negotiations). It also means the EU's-external border will run through Ireland. To protect the EU single market from goods and services produced in the UK without the same regulatory and standards regime, there will have to be a customs regime between the two territories. Ireland is trying to fight its case against that brutal reality. EU officials say the Government has been extremely active in raising awareness about the key concerns: the trading relationship, the Common Travel Area, the Irish peace process (the Commission's chief negotiator Michel Barnier has publicly asserted his deep knowledge, when he was regional affairs Commissioner, of European funds administered through the PEACE programmes for Northern Ireland). While Taoiseach Enda Kenny will carry Ireland's flag once the negotiations start, the first line of defence is Ireland's Permanent Representation to the EU, effectively Ireland's embassy. The staff level has been boosted to around 90 officials to cope with the Brexit workload. Government ministers have also been fanning out across EU capitals to make Ireland's case. Another line of defence is the Irish civil service. Officials have been making regular trips to Brussels since the autumn for highly technical discussions with officials from European Commission's Task Force on Brexit (also known informally as TF50, after Article 50) who in turn call in experts from the commission's Directorate Generals (DGs). One such meeting took place on Tuesday 24 January. Officials from four Government departments - Department of the Taoiseach, Foreign Affairs, Agriculture and the Revenue Commissioners ""?held long discussions with members of the Commission Task Force, which was joined by officials from the commission's health, taxation and agriculture divisions. They worked on some of the key issues that will dominate the Irish debate on Brexit: customs checks, the movement of foodstuffs and live animals back and forth across the border post-Brexit, and energy issues;-including, among others, the implications for Ireland's single electricity market, and for how Ireland's energy security will be affected long-term, given that our future energy supply from the UK may come with tariffs attached. Lobby groups make their case on Brexit Lobby groups such as Ibec-have also been making their case, independent of government. On Thursday, the President of the Irish co-operative movement ICOS, Martin Keane, and chief executive TJ-Flanagan will meet two members of the commission's Task Force --Tadhg O'Briain, who handles Irish and energy issues, and Nina Obermeier, an experienced commission official --as well as two officials from the commission's-agriculture division, Bence Toth and Michael Niejahr. The nature of the ICOS meeting actually tells us a lot about the heightened concerns in Ireland. Many of these concerns are complicated, because they involve the disentanglement of complex supply chains running North and South, that have evolved over the years of Britain's EU membership. ""We currently estimate that the adjustments needed to 'detangle' these supply chains and reorganise business structures would take approximately ten years,""-according to an ICOS briefing note. One of the key problems is the milk sector, especially given the heavy investment producers and processors have made to take advantage of the ending of milk quotas. Every year, 600 million litres of milk produced in Northern Ireland are carried by tanker across the border to be processed in the Republic. Of this, 120 million litres is sold as liquid milk. That accounts for 25%-of the Irish milk supply. Part of the reason northern producers supply so much is because they are incentivised to produce milk during the winter months, something not done in the Republic. Brexit will have a serious impact on this trade thanks to potential tariffs and customs controls. It could also require a shift in southern milk production to winter supply. More seriously again, recent investments in processing facilities could be undermined. The other problem is that milk from Northern Ireland may have to be kept out of dairy production in the Republic of Ireland, which is sold across the EU single market and beyond to global consumers. If milk from Northern Ireland is not EU milk then, under origin labelling rules, it would not be acceptable to the rest of Europe and beyond. Animal movement could be affected by Brexit Live animal movement could also be devastated by Brexit. Every week around 10,000 pigs, and 1,000 bovines move back and forth across the border as part of the normal slaughtering and processing activity. This can currently operate unhindered because operators on both sides of the border comply with EU rules on animal safety, animal health and welfare, disease control and traceability. But once Brexit happens, Northern Ireland farmers and producers will-not be covered by those rules ""?unless Britain agrees at the end of a tortuous negotiation process to bind itself to such regulations (politically a very hard sell for Brexiteers). ICOS will propose to the commission, for example, that milk from Northern Ireland be designated as ""Irish""-milk, to get around these issues. But that could invite a host of problems, not least a backlash from both Dublin and Belfast. Again, this is instructive as to how difficult things will become for the Irish Government once the negotiations get under way. Part of the critique of the Government's approach in Brussels is that Dublin has felt it must first secure an understanding with the UK on the monumental border and trade problems, and that the other 27 member states will fall into line, because Ireland is a ""special case"". ""We'r trying to remind them,""-says one EU official. ""This is not just a common travel area between Ireland and the UK, this is a common travel area between a third country and the EU. ""One cannot assume there won't be a problem simply because Britain and Ireland issue a statement saying there won't be a problem."" The official continues: ""Food standards will be the big issue. We have to protect [EU] food standards. Arguments that Ireland is a special case are all very fine. Will they fit into a European context? Irish stakeholders claim they have a special case. How do you think that will travel? ""If there are protections for Irish farmers it's not much consolation to a beef producer in France who sells into the UK market and who wants to compete on a level playing pitch. ""If you have a special deal for Ireland which discriminates against other producers in other countries it simply isn't going to fly."" Irish sources reject any idea that the Government has been naïve in the whole question of how ""seamless""-or ""frictionless""-a post-Brexit border will be. ""There is a border, and there will be customs checks,"" says one source familiar with the technical discussions between Dublin and Brussels. ""Nothing has changed. The public debate is, however, becoming more focused. ""There is an EU customs code and we need to operate within that. But just because there will be customs checks it doesn't mean that it will be a military style border."" The technical discussions, which are happening now at least once a month, are a chance for the Government to ""educate""-commission officials, who will feed the intelligence into the negotiating process once Article 50 is triggered. But with each meeting, new technical issues arise, and officials have to drill deeper into the dark seams of EU expertise. Where the technical ends and the political begins is another issue. Minister for Foreign Affairs Charlie Flanagan has been charting a more political course, meeting his counterparts across Europe (this week Finland, Italy and Belgium), either in foreign capitals, Brussels or Dublin. The Taoiseach has met the Spanish prime minister in Madrid and will meet his Polish counterpart this week. In both cases one can assume that Mr Kenny is both explaining Ireland's issues, and reassuring his counterparts over their's (Gibraltar-for Spain, and the rights of Irish citizens in the UK for Poland). The Government has to be delicate, however. It cannot push hard position papers over to the commission's Task Force which might immediately be rejected. But at a certain point, Dublin will have to spell out how it wants the problems posed by Brexit on the Irish border to be fixed. ""[Chief negotiator Michel] Barnier is not going to come up with solutions,""-says one EU source. ""Ireland needs to come up with solutions. The problems are understood, and the circumstances are understood. But Ireland needs solutions, it will have to come up with solutions."" Will there be a 'frictionless' border?- Another reason Ireland will need those solutions is more prosaic. If a new customs regime has to be installed in Ireland, it will take time. Much of the focus has been on using technology to deliver that ""frictionless""-border: a crude example would be the way licence plate scanning technology facilitates the proxy payment of tolls on the M50. There is no doubt that customs registration can be done electronically in advance of trucks crossing a border. But there will still have to be checks. ""You can't do it without physical controls,""-says one EU source familiar with customs operations. ""Sure, there aren't as many checks, there are computer programmes assessing risks. But you can't get away from physical inspections."" What that means is that there will be the illusion of frictionless travel. Sources suggest that, post-Brexit, not all trucks will be stopped, and they will not necessarily be stopped on the actual land border. Figuring out how to set up a customs post on the M1 Belfast to Dublin route is the stuff of nightmares. The checks might be more discreet, and a road station ""?where trucks are checked - might move to Balbriggan or Swords, for example. ""If you are a haulier you are still likely to end up in a 40 acre road station,""-the source says. ""There will still have to be a physical examination. There may be less pain and paperwork, but the notion that it can be done without physical inspections is fanciful."" This brings to mind the ""Brexit Fairy"" - memorably conjured up by Steve Peers, Professor of EU Law at the University of Essex --""who will magically solve all problems which Brexit might create."" There are 300 roads crossing the Irish border and no-one is suggesting there will be checks on each one. But if the UK is out of the customs union and if there are two-way tariffs, customs and excise duties between what will be EU territory and ""third country""-territory, then it will be a criminal offence to bring certain kinds of goods, or a certain value of goods across the border without customs clearance. What causes most concern is how co-operative the UK will be on the infrastructure front, once the new system is required. ""Ireland will operate its rules,""-says another official familiar with EU customs rules. ""But how close will the UK come to what Ireland is doing? Will they want to build glass customs posts ... or concrete ones?"" All these things will need planning. But the Government, and therefore Irish customs officials, are effectively hamstrung, not just before the negotiations start, but before there is a shape on how they will end up. The new systems will also have to be backed by EU legislation. ""That will be difficult. You'll need staff operating the new regime. They""�ll need to be trained, and to be familiar with each other's systems. It will be a challenge. How smoothly can we do this?"" But there are other scenarios that will have to be confronted. A haulier driving from Dundalk to Letterkenny will cross the EU border twice before reaching his or her destination. In theory the driver could have to make two customs declarations. Here is where we get into the realm of TIR carnets. For those of you, myself included, who have ever wondered what those initials on the back of a truck stand for, now is the moment of revelation. Transports Internationaux Routiers derive from a 1975 convention that allowed truckers to transit their goods across territories without making any deliveries there. A TIR carnet is a customs document which describes the goods, the shipper and the destination. It is a financial guarantee that the driver is not going to surreptitiously deliver goods in a country he is only supposed to be transiting. When he arrives at a customs post the import duties and taxes are suspended, and if he passes through (to Letterkenny, say), no taxes are due. If, however, he delivers in Northern Ireland, then the taxes are billed to the importer and the financial bond backstops the importer's obligation to pay the taxes. The lorry must also be sealed as well as carrying the bond. As well as applying to transit from Dundalk to Letterkenny, it will also affect a huge proportion of Irish exports which transit through Liverpool and Dover to the European continent, or via air freight from Gatwick. This procedure most often happens in countries like Russia and Ukraine, Turkey and countries in the Middle East. The TIR procedure became unnecessary for intra-EU transport once the EU created the single market. But Britain is leaving the single market.", -642,2017/2/7,http://www.rte.ie/news/2017/0207/850832-brexit-david-jones/,No renegotiation on Brexit deal if rejected by MPs,,"Britain will not seek further talks with the European Union if parliament rejects the exit deal it reaches, the British government said in a statement, as ministers resisted pressure to give politicians more say on the terms of the final agreement. The statement, which echoes British Prime Minister Theresa May's stance that ""no deal is better than a bad deal,"" came as parliament debated a law that would give her the power to begin exit negotiations with the EU. Last month, Mrs May promised to ask parliament to approve the final exit terms, but said that even if it rejected the deal, Britain would leave the EU, raising concern among some politicians that their vote would be purely symbolic. Asked whether the government would go back to the negotiating table if parliament rejected the deal, junior Brexit minister David Jones said: ""I can't think of a greater signal of weakness than for this House to send the government back to the European Union and to say we want to negotiate further ... therefore I can't agree with it."" Mr Jones also said that if Britain and the EU could not come to a Brexit deal within the two-year timeframe allowed under Article 50 of the EU's Lisbon Treaty, Britain would ultimately fall back on World Trade Organisation (WTO) terms of trade. Opposition politicians want to use the bill going through parliament as a way to attach extra conditions to Mrs May's plan to trigger Brexit talks by 31 March. The most contentious focus on calls for a ""meaningful vote"" on the final exit deal and could see an embarrassing defeat for the government if enough members of Mrs May's Conservative Party defy their leader's wishes. That vote will take place later today. Seeking to allay any such rebellion, Mr-Jones said that parliament would be given a vote on the final deal before the European Parliament debates and votes on the agreement. MPs reacted angrily when it emerged they would not be able to force the government back to the negotiating table. ""MPs must not be duped by the government's attempt to quell unrest on their back benches,"" said one Green Party MP. ""The vote they're offering - which will give MPs a choice between an extreme Brexit and falling off a cliff edge into WTO trade rules - isn't a concession, it's an ultimatum.""", -643,2017/2/7,http://www.rte.ie/news/2017/0207/850850-fatal-rtc-monaghan/,Man dies in Monaghan road crash,,"A man in his 30s has died following a three-car collision in Co Monaghan this afternoon. The collision occurred on the N2 Dublin to Derry Road, between Monaghan town and Emyvale, at around 12.20pm. Two women in one of the other cars involved were-seriously injured and are being treated at-Cavan General Hospital. A man in the third car-was uninjured. The road has been-closed and diversions are in place. Garda�� have appealed for-witnesses to-contact Monaghan Garda Station on 047-77200, the Garda Confidential Line on 1800-666-111 or any garda station.", -644,2017/2/7,http://www.rte.ie/news/2017/0207/850693-us-politics/,Trump's border agent hiring goals may not be met - Kelly,,"US Homeland Security Secretary John Kelly has said he does not expect to meet President Donald Trump's hiring targets for border and immigration agents within the next two years. Mr Trump has called for an additional 5,000 Customs and Border Protection agents and 10,0000 Immigration and Customs Enforcement agents in an executive order, but he did not specify a timeline. Mr Kelly told a congressional hearing that he would not ""skip on training and standards"" to speed up the pace of hiring. He also said the US-is not considering adding any countries to its list of seven whose nationals were temporarily banned-from entering the country on visas. Mr Kelly was responding to reports that the Trump administration was considering adding 12 countries to the list. The US-Justice Department will face off with opponents in a federal appeals court today over the fate of President Donald Trump's temporary travel ban on people from seven Muslim-majority countries, his most controversial act since taking office last month. Last Friday, US-District Judge James Robart suspended Mr Trump's ban, opening a window for people from the seven affected countries to enter the country. The 9th US-Circuit Court of Appeals in San Francisco will hear arguments over whether to restore the ban from Justice Department lawyers and opposing attorneys for the states of Minnesota and Washington at 3pm Pacific time. Today, Mr Trump said that he needed the appeals court to go his way, saying a lot of ""bad people"" are thinking of going to the United States. The US president made the comments during an appearance at the White House in which he also criticised Senate delays of his cabinet nominees, including Scott Pruitt for the Environmental Protection Agency. In a tweet last night, Mr Trump said: ""The threat from radical Islamic terrorism is very real, just look at what is happening in Europe and the Middle-East. Courts must act fast!"" The threat from radical Islamic terrorism is very real, just look at what is happening in Europe and the Middle-East. Courts must act fast! ""?Donald J. Trump (@realDonaldTrump) February 7, 2017 Mr Trump has said the travel measures are designed to protect the country against the threat of terrorism. He has derided Judge Robart, appointed by Republican President George W-Bush, as a ""so-called judge"". In a brief filed yesterday, the Justice Department said the suspension of Mr Trump's order was too broad and ""at most"" should be limited to people who were already granted entry to the country and were temporarily abroad, or to those who want to leave and return to the United States. Opponents say the 90-day ban, which bars entry for citizens from Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen and imposes a 120-day halt to all refugees, is illegal. The state of Washington argues it has suffered harm, saying some students and faculty at state universities had been stranded overseas because of the ban. The Republican president's 27 January-executive order sparked protests and chaos at US-and overseas airports in the weekend that followed. All the people who had carried out fatal attacks inspired by Islamist militancy in the United States since the 11 September 2001, attacks had been US-citizens or legal residents, the New America think-tank said. None came to the US-or were from a family that emigrated from one of the countries listed in the travel ban, it said. Trump's pick for labour secretary admits to employing illegal immigrant Meanwhile, Mr Trump's choice to lead the US Labor Department admitted to employing an undocumented immigrant as a house cleaner, the kind of revelation that derailed Cabinet nominees in previous administrations. - - - - - - Andrew Puzder, chief executive officer of CKE Restaurants Inc, is one of several Trump nominees who face strong opposition from Senate Democrats and progressive groups. - - - - - - In a statement, Mr Puzder said he and his wife had employed a housekeeper for a few years without being aware that she was not legally permitted to work in the United States. - - - - - - ""When I learned of her status, we immediately ended her employment and offered her assistance in getting legal status,""he said in the statement. He said he paid back taxes for employing the maid to the US-Internal Revenue Service and to California. - - - - - - The statement was first reported by the Huffington Post. - - - - - - Senator Lamar Alexander, chairman of the Senate Committee on Health, Education, Labor and Pensions, the panel that will vet Mr Puzder's nomination, said in a statement that Mr Puzder had reported his mistake and voluntarily corrected it. - - - - - - ""I do not believe that this should disqualify him from being a cabinet secretary,"" he added.", -645,2017/2/7,http://www.rte.ie/news/2017/0207/850878-donal-scanlon/,"Cork steelworks fined �10,000 over apprentice's death",,"A steelworks in Co Cork has been fined �10,000 after a 21-year-old apprentice died in an explosion, which a judge said described as a fundamental breach of safety. Donal Scanlon was working for Bryan and Coakley Ltd., trading as B&C Services of Marlhill Court, Foxhole Industrial Estate in Youghal, when the incident occurred on 18 November 2015. The court was told that Mr Scanlon, who was employed as an apprentice fitter, was cutting an oil drum with a plasma cutter when the lid blew off and struck him in the head. He was airlifted to Cork University Hospital, where he later died. Waste oil and fumes inside the drum were ignited by the plasma cutter causing the explosion. The drum was being prepared to be used to store scrap metal and Judge Se��n Ó Donnabh��in said:-""There is invariably going to be waste in the drum. This is fairly fundamental. It is a fundamental breach of safety"". The company has two directors, Mark Coakley and Ivan Bryan, and a guilty plea was entered by Mr Coakley on behalf of the company to a charge of failing to provide a safe and well-organised system of work. Judge Ó Donnabh��in said the explosion was ""entirely preventable"". He added: ""The culpability of the company is high. The level of preparation, the level of management, the level of supervision were all significantly lacking"". However, he said-he could not impose a fine so large that it would put the company out of business. ""I accept it is a small company, that is conscientious about the manner in which they met the case, they took advice and correction and are genuinely remorseful"". He fined the company �10,000 and gave it 12 months to pay. Mr Scanlon's aunt, Anne Stack, speaking on behalf of the family, said her nephew-""radiated happiness and brought good humour and joy wherever he went. He was very hard-working and was the heart and soul of our family"".", -646,2017/2/7,http://www.rte.ie/news/2017/0207/850847-kabul-attack-court/,Blast kills at least 20 outside Kabul Supreme Court,,"At least 20 people have been killed in a bomb blast outside the Supreme Court in the centre of the Afghan capital, government officials said, in what appears to be the latest in a series of attacks on the judiciary. The Ministry of Public Health said that 41 others were wounded and taken to Kabul hospitals. There was no immediate claim of responsibility for the attack, in which police said an apparent suicide bomber targeted Supreme Court employees leaving their offices at the end of the working day. The bomber appeared to have entered an area where guards were performing security checks when he detonated the explosives. Afghan President Ashraf Ghani condemned the attack as a ""crime against humanity and an unforgivable act"". The Supreme Court was the target of a bomb in June 2013, when a suicide bomber drove an explosives-packed car into a bus carrying court employees, including judges. The Taliban claimed responsibility for that attack, and since then security near the court has been increased with large concrete blast walls. In 2015 a Taliban bomber killed five prosecutors from the office of the Attorney General in Kabul, and last year Taliban gunmen stormed a legal office in Logar province, killing seven people, including two prosecutors. The same militant group killed four people at a provincial courthouse in Ghazni in 2016. Last month, bombers killed more than 30 people and wounded about 70 in twin blasts in a crowded area of Kabul during the afternoon rush hour. The Islamist militant Taliban, fighting to oust foreign forces and bring down the US-backed government, claimed responsibility for that attack on 10 January. Afghan government forces control no more than two-thirds of national territory, and have struggled to contain the insurgency since the bulk of NATO soldiers withdrew at the end of 2014. Several thousand foreign troops, most of them Americans, remain in training and counter-terrorism roles.-", -647,2017/2/7,http://www.rte.ie/news/2017/0207/850843-adrian-vaduva-court/,Man sentenced to three years over social welfare fraud,,"The largest known social welfare fraud case uncovered with the use of facial recognition software has led to a man being sentenced to three years in prison. Adrian Vaduva, 44, who pleaded guilty, obtained more than �180,000 in fraudulent social welfare payments over a 16-year period. He was only found out when a picture taken of him was matched with the picture of another man also claiming social welfare. It proved that they-were one and the same and that Vaduva had been using a false name to claim double benefits. Wexford Circuit Court heard that Vaduva, who has an address at Riverchapel,-Gorey, came to Ireland from Romania in 1999.-He was refused asylum but returned five months later with a false birth certificate and ID and gave his name as Eduard Preda. He was granted asylum and started claiming social welfare payments and allowances under the false name. Romania joined the EU in 2008 and Vaduva then began claiming social welfare payments under his own name, while also collecting payments as Eduard Preda. The fraud was carried out at various post offices in Dublin, Cork, Kerry, Arklow and Wexford. Up until the summer of 2015 he had collected a total of �180,828 using the two identities. The court heard that a relatively new Cogent Facial Imaging Matching Software (CFIMS) system used by the Department of Social Protection was instrumental in detecting the fraud. ""Eduard Preda"" was invited to have a photograph taken of himself in 2015-under department guidelines and ""Adrian Vaduva"" was invited last summer. Breda Murphy of the department's staff in Wexford alerted Garda Kevin Heffernan to the case last June after the software matched the two photos and showed that both Vaduva and Preda were in fact the same man. Garda Heffernan, on secondment to the Department of Social Protection, told the court it was evident ""Eduard Preda"" and ""Adrian Vaduva"" were the same person. Vaduva was arrested in Arklow last summer and-admitted the fraud, including renting a flat in Wexford which was supposed to be the address for ""Eduard Preda"". He was paying �100 a month in rent but receiving almost �1,000 in payments and Garda Heffernan described it as an elaborate scheme. Vaduva co-operated fully with the investigation and garda��-say it would have been difficult to prove the case back to 1999 if he had not been so upfront. The court was told Vaduva had not accumulated any of the money but was using it to live on. He also paid money for his sick mother and he had three children in Romania, one of whom is seriously ill. He only had �10 on him when arrested and had no money in his bank accounts. Vaduva cried throughout the court hearing and the court heard he sobbed throughout his interviews with garda��. Describing him as an emotional man, Judge Barry Hickson said the new CFIMS software had been instrumental in this case. The judge said the social welfare system has been deprived of almost �100,000. He sentenced Vaduva to three years in jail and suspended the last nine months, backdating the sentence to last June when he was first arrested.", -648,2017/2/7,http://www.rte.ie/news/2017/0207/850756-live-blog-politics/,"As It Happened: Reaction to waiting list revelations, latest politics",,, -649,2017/2/7,http://www.rte.ie/news/2017/0207/850863-diversity-integration-groups/,New initiative to boost migrant integration,,"Community groups around the country are being encouraged to make a greater effort to welcome migrants and refugees, with the launch of a new initiative to boost integration. The Migration Integration Strategy will give funding of up to �1,000 to local organisations that work with families and individuals that have made Ireland their home. As well as supporting such groups, the strategy sets a number of targets for State agencies over the next four years. These include the provision of information in different languages, interpretation facilities and enhanced processes to identify and report racist behaviour. It is envisaged that by 2020 at least 1% of staff in the civil service will come from the European Economic Area). The Government says this will lead to a more representative civil service but there are no plans to remove a recruitment bar on non-EEA nationals at this time. The Communities Integration Fund of �100,000 will be open to sports organisations and voluntary groups to allow them to promote greater migrant integration. Meanwhile, the first group of asylum seekers who are to be accommodated in Ballaghaderreen, Co Roscommon are arriving on a flight to Ireland this evening.-Another group will arrive next week.- The group will initially stay in Balseskin Reception Centre which has a HSE medical centre on site.", -650,2017/2/7,http://www.rte.ie/news/2017/0207/850867-minister-for-justice/,Minister will not ask UK undercover police inquiry to cover Ireland,,"The Minister for Justice will not seek to have a UK inquiry into the activities of undercover British police officers extended to consider the activities of one officer in Ireland. Following calls on Frances Fitzgerald by activists, including some involved with the Shell to Sea campaign,-who say they were spied on and deceived into personal relationships by a named police officer,- a Department of Justice-statement-said the UK inquiry is a matter for the UK government. However it said should any information emerge relevant to policing in this jurisdiction it will be considered. The statement also points out that a report on the presence of a British undercover officer in Ireland was prepared by the Garda Commissioner and given to the Minister for Justice in 2011. That report noted that no evidence has been established that the person in question had been involved in any criminal activity while in the State. The statement continues that the Minister has now asked for a fresh report on the matter from the Garda Commissioner in the light of developments outside the jurisdiction.", -651,2017/2/7,http://www.rte.ie/news/2017/0207/850746-drugs/,�100k worth of heroin seized in Dublin,,"A man in his 20s has been arrested after heroin with an estimated street value of �100,000 was found-in Dublin. A planned house search in the Crumlin area was carried out by garda��-from Sundrive Road and Crumlin garda stations, and supported by the Regional Armed Support Unit, at around 7pm yesterday. During the search, the heroin and mixing agent were-seized. The man was arrested at the scene. Other drug dealing paraphernalia such as bagging equipment, weighing scales, documents and mobile phones were also seized. The man is being held at Sundrive Road Garda Station.", -652,2017/2/7,http://www.rte.ie/news/2017/0207/850692-politics/,Supervised injecting facilities approved at Cabinet,,"The Cabinet has approved the introduction of legislation to establish supervised injecting facilities for drug users. Facilities would be-staffed by medics trained to deal with overdoses where users can access sterile needles and rooms to inject drugs they have brought with them. It would effectively legalise possession of heroin in the unit, but it would still be illegal to sell or supply drugs inside or outside the facility. The first pilot injecting centre is due to be opened in Dublin city centre in the autumn. The locations of the other facilities have not yet been decided. The legislation is expected to be introduced in the D��il in the coming weeks. The Department of Health-said the experience from 90 facilities around the world showed a reduction in fatal overdoses and transmission of blood-borne diseases, less drug-related litter and no increase in drug usage or drug-related crime. Speaking on-RT?'s News at One, Minister of State Catherine Byrne said that injection centres should not result in more drug use or drug related crime. However, she said they would reduce the risk of fatal overdose and blood borne viruses. Ms Byrne said there is already a cohort of people injecting openly in Dublin. She said the centres-provide-a safe place for people who were already using drugs in the area. Independent Alliance Minister of State Finian McGrath is supportive of the policy, but believes such facilities should be located in all affected regions and not just Dublin city centre. Amid reports that-garda��-have concerns about the establishment of injecting centres, a spokesman for-An Garda S��och��na yesterday said they will support whatever policy and legislation is introduced in this area. Minister for Health Simon Harris said in a statement after the Cabinet meeting: ""I know people have concerns about where this first pilot facility will be located, but I want to assure you that no decisions have been made. ""The HSE will be undertaking a process of consultation, including with local stakeholders and communities. Any decision on the location of the pilot facility will be informed by the outcome of this consultation process."" A company representing businesses and cultural centres in Temple Bar said the decision effectively is a decriminalisation of drug use in certain areas of Dublin city. The Temple Bar Company said it does not believe a measured approach has been taken, saying that injection centres are implemented as part of a unified approach to tackling addiction in other countries. It said in other countries, ""adequate policing is in place to manage additional numbers of addicts into these areas and drugs are safely dispensed and medically supervised unlike the Government's proposals where people will carry drugs to and from centres"".- Separately, Minister for Public Expenditure and Reform-Paschal Donohoe brought a memo to Cabinet on a new approach to review certain day-to-day expenditure by Government departments over a period. The Cabinet discussed the locations of ministerial trips for St Patrick's Day and it is expected there will be a focus on Brexit and European locations. Fianna F��il launches pension bill Fianna F��il's Willie O'Dea has launched a private members' bill to ensure workers in defined benefit pension schemes are protected from their employers attempting to wind up the scheme. Unlike a separate bill from the-Labour Party, he said his bill was not retrospective as legal advice he received suggested it was not constitutionally possible. When asked if it would deal with the pension situation at INM, he said his bill was not geared at any specific company.", -653,2017/2/7,http://www.rte.ie/news/2017/0207/850695-syria/,Assad says 'defending' Syria more important than UN tribunal,,"Syria's-President Bashar al-Assad has said that ""defending"" his country in a time of war was more important than any international tribunal that may be brought against his government later. His comments to Belgian media came as rights watchdog Amnesty International accused the regime of hanging 13,000 at an infamous prison near Damascus. According to an English-language transcript of the interviews published by Syrian state news agency SANA today, Mr Assad accused United Nations institutions of acting unfairly towards his country. ""We all know that the United Nations institutions are not unbiased, they are biased because of the American influence and the French and British, mainly,"" he said. ""They are only politicised to implement the agenda of those countries,"" he added. Syria's conflict first broke out in March 2011 with widespread protests that descended into violence. Asked whether he was concerned about a potential court case brought against the regime at the UN's highest court in The Hague, Mr Assad said he and other Syrian officials ""don't care"". ""For me, as president, when I do my duty, the same for the government and for the army, to defend our country, we don't look to this issue, we don't care about it,"" he said. ""We have to defend our country by every mean, and when we have to defend it by every mean, we don't care about this court, or any other international institution,"" Mr Assad added. The UN General Assembly in December agreed to begin gathering evidence on war crimes in Syria as a first step towards prosecuting those responsible for atrocities there. At the time, Syria's Ambassador Bashar Jafaari slammed the measure, calling it a ""flagrant interference in the internal affairs of a UN member-state"". But in a new report published today, Amnesty International said Syria's government had carried out a deliberate ""policy of extermination"" at the Saydanaya military prison. The report found that as many as 13,000 people were killed in mass hangings at the facility between 2011 and 2015. The rights group accused-the regime of a ""policy of extermination"". The report on Saydnaya prison is based on interviews with 84 witnesses,-including guards, detainees, and judges. Warning: Disturbing content It found that at least once a week between 2011 and 2015, groups of up to 50 people were taken out of their prison cells for arbitrary trials, beaten, then hanged ""in the middle of the night and in total secrecy"". ""Throughout this process, they remain blindfolded. They do not know when or how they will die until the noose was placed around their necks,"" the rights group wrote. Amnesty said the practices amounted to war crimes and crimes against humanity, but were likely still taking place. Thousands of prisoners are held in the military-run Saydnaya prison, one of the country's largest detention centres located 30km-north of Damascus. Amnesty accused the Syrian government of carrying out a ""policy of extermination"" there by repeatedly torturing detainees and withholding food, water-and medical care. Prisoners were raped or forced to rape each other, and guards would feed detainees by tossing meals onto the cell floor, which was often covered in dirt and blood. A twisted set of ""special rules"" governed the facility: detainees were not allowed to speak and must assume certain positions when guards enter their cells. The group has previously said that more than 17,700 people were estimated to have died in government custody across Syria since the country's conflict erupted in March 2011. The figure of 13,000 deaths in a single prison, therefore, is a marked increase. ""The horrors depicted in this report reveal a hidden, monstrous campaign, authorised at the highest levels of the Syrian government, aimed at crushing any form of dissent within the Syrian population,"" said Lynn Maalouf, deputy director for research at Amnesty's Beirut office. ""The cold-blooded killing of thousands of defenceless prisoners, along with the carefully crafted and systematic programmes of psychological and physical torture that are in place inside Saydnaya Prison cannot be allowed to continue,"" she said. A probe by the UN last year accused Mr Assad's government of a policy of ""extermination"" in its jails. More than 310,000 people have been killed and millions have fled their homes since the conflict began with anti-Assad protests.", -654,2017/2/7,http://www.rte.ie/news/2017/0207/850744-sarkozy-trial-order/,French ex-president Sarkozy to face trial over campaign,,"A magistrate has ordered former French president Nicolas Sarkozy to stand trial over irregularities in the funding of his failed 2012 re-election bid, a judicial source has said. The charge against Mr Sarkozy, who led France for five years from 2007, exposes the 62-year old conservative politician to a one-year prison sentence if convicted. One of two magistrates handling the case ordered the trial on the charge that Mr Sarkozy spent way more than he was entitled to, despite warnings from his accountants. The source, who was speaking on condition of anonymity as is often the case in France when initial announcements of trials are made, said 13 others would also face trial over the affair. The source said it was still possible that an appeal could be lodged against the trial order because it was signed by only one of the two magistrates in charge of the case. No comment could be immediately obtained from Mr Sarkozy's aides. The trial order comes at a time when French politicians face growing scrutiny over their personal and political finances in the build-up to this year's presidential election in April and May. Mr Sarkozy's conservative predecessor Jacques Chirac was convicted in 2011, after his retirement, of misusing public funds to keep political allies in phantom jobs. That was the first conviction of a French head of state since Nazi collaborator Marshal Philippe Petain in 1945. Conservative Francois Fillon, who beat rivals including Mr Sarkozy to become the centre-right's candidate in this year's race, has been engulfed by a scandal over payments of public funds to his wife and children. Far-right presidential candidate Marine Le Pen is also being pursued by the European Parliament to refund money paid to her bodyguard and another person. Meanwhile, the other presidential candidate, Emmanuel Macron, has denied a gay-ex-marital affair with Radio France chief executive Mathieu Gallet. Late last night, Mr Macron sought to quash the rumours, saying: ""If you're told I lead a double life with Mr Gallet it's because my hologram has escaped"". A spokeswoman said the comments were ""a clear denial of the rumours about his private life"". French politics has a long history of financial and personal scandals, and the country's media has become less shy about reporting the private life of public figures in the social media age. Revelations about the love child of former president Francois Mitterrand took years to come out in the press, even though the facts were widely known by journalists while he was in power between 1981 and 1995. - - - - - - But photographs of current president, Francois Hollande, arriving outside the flat of actress Julie Gayet on the back of a motor scooter were splashed across front pages while he was officially still in another relationship.- - --", -655,2017/2/7,http://www.rte.ie/news/2017/0207/850794-communications-committee/,Witness says appearing before committee 'awkward',,"A witness before the Oireachtas Committee on-Communications, which is examining the proposed acquisition of CMNL Limited --formerly Celtic Media Newspapers Limited --by Independent News and Media, has expressed concern over being before a committee of which Michael Lowry is a member. Dublin City University Professor Colum Kenny said while he did not view the potential take over in personal terms, he said he had ""difficulties"" appearing before a committee looking at the take over of INM on which Mr Lowry sits.- ""I think there's a conflict of interest"", he said. He also expressed concern over the lack of ""firm details"" regarding the takeover and said such circumstances made it difficult to give an informed position. Prof-Kenny said he did not understand how the committee had been asked to make a consideration of a matter before the Broadcasting Authority of Ireland had considered it and described the procedure as ""awkward"". The business model in local newspapers is broken according to the chief executive officer of CMNL. In his opening statement to the Oireachtas Communications Committee, Frank Mulrennan said the company and the jobs of 98 people earning �1.8m-in salaries almost went out of business in 2012, due to the weight of bank debts and continuing falling revenues. Mr-Mulrennan said his colleagues were hugely supportive of the management buyout, which he said he led in June 2012 because their jobs, and 950 years of newspaper history was secured. He said 25% of the equity was allocated to editors, sales managers and production managers.- Mr Mulrennan said Celtic Media Newspapers borrowed �1.5m-in 2012, but five years later, the company is faced with a ""broken business model"" in terms of publishing local newspapers. He requested that the committee approach the sale with an open mind, ignoring the very considerable noise around the issue in the national media, but a noise he said that-had nothing to do with the job security of workers.", -656,2017/2/7,http://www.rte.ie/news/2017/0207/850845-bandon-flood-errors/,Computer glitch causes 80 false flood alerts around Bandon,,"Cork County Council has said-that over 80 flood alerts issued for the Bandon area this afternoon are due to a computer systems error. The council says it is trying to resolve the issue and stressed that the current Flood Early Warning System status is ""Green"" (meaning-""all clear""), with a little rain forecast for the coming week. The Bandon FEWS has been in place for over four years and issues text alerts to residents and businesses when there is a risk of flooding along the River Bandon catchment area. In a statement issued this afternoon, the local authority apologised saying the fault is due to a computer error and it is trying to resolve the issue as soon as possible.", -657,2017/2/9,http://abcnews.go.com/Politics/legal-experts-conway-violated-ethics-rules-tv-endorsement/story?id=45376786,Legal Experts: Conway Violated Ethics Rules in TV Endorsement of Ivanka Trump Brand,,"Multiple legal experts and former White House officials say Kellyanne Conway's endorsement on TV of the Ivanka Trump brand violated ethics rules governing executive branch employees. Conway, a counselor to the president, made the remarks on Fox News on Thursday morning, responding to the recent decision by Nordstrom to remove Ivanka Trump items from its shelves. ""This is just a wonderful line. I own some of it, I fully ""?I'm going to give a free commercial here,"" Conway said. ""Go buy it today, everybody. You can find it online."" Former White House ethics officials and other legal experts said her endorsement appears to be a clear-cut violation of an ethics regulation barring executive branch employees from endorsing products and using their public office for the private gain of friends. Kathleen Clark, a professor at Washington University in St. Louis and a member of the D.C. Bar rules of professional conduct review committee, told ABC News, ""It is accurate to say that she broke the law. It's not a criminal law. It's a regulation."" Clark added that the action would normally prompt some type of ""employment discipline"" within the White House. Norm Eisen, who was an ethics czar for the Obama White House, said on MSNBC that the comments amounted to ""a violation of the rules, pure and simple."" ""I imagine that you are going to see complaints flowing in,"" Eisen said. ""The responsibility to oversee this in the first instance is with the White House counsel, Don McGahn. He is going to need to look at the rules, look at the president and decide what range of penalties might apply."" Richard Painter, who was an ethics lawyer for George W. Bush's White House, would not say in an interview that Conway broke the law, but he spelled out what the regulation clearly prohibits. ""It is a violation of federal ethics regulations prohibiting use of public office for private gain for any government employee in an official speech, an official capacity TV interview or any similar communication to promote the products or services of a particular private business belonging to the employee's own family, the president's family, a friend, a campaign contributor or anyone else,"" Painter said. ""That was strictly forbidden in the Bush administration because it is illegal."" The nonprofit watchdog group Citizens for Responsibility and Ethics in Washington said Thursday it has already filed a complaint with the Office of Government Ethics and the White House counsel's office over Conway's comments. ""This is just another example of what looks like a disturbing pattern of this administration acting to benefit the businesses of the president's family and supporters,"" the group's executive director, Noah Bookbinder, said in a press release. ""Americans are unfortunately at the point where they have to question who the Trump administration is looking out for, the American people or the Trump family."" Former White House Cabinet secretary Chris Lu said on Twitter that if officials in the Obama White House had been caught making similar comments, it likely would have cost them their job. My Obama WH colleagues can chime in. If we did what @KellyannePolls did, we would've been fired. Then again, our boss cared about ethics ABC News has requested comment from the White House, the Office of Government Ethics and the office of House Oversight Chairman Jason Chaffetz but did not immediately receive any responses. Nordstrom has said its decision to remove Ivanka Trump's clothing line is related to sales and was not politically motivated. From his personal Twitter account, President Donald Trump on Wednesday tweeted that Nordstrom treated his daughter ""unfairly."" That was retweeted by the official POTUS account. Ivanka Trump said in an earlier statement that she would no longer be ""involved with the management or operations of"" her brand or the Trump Organization. On Wednesday, Eisen criticized Trump for his tweet about Nordstrom and suggested that Nordstrom should sue under unfair competition laws that prohibit the type of behavior displayed in Trump's tweet. ""I do believe Nordstrom has a colorful claim,"" Eisen said. ""This will be another place where the courts will remind him he's not above the law."" On Twitter, Eisen even offered to help Nordstrom should the company decide to file a suit. He is an outspoken legal critic of the president and is leading another lawsuit against him over the emoluments clause. ABC News' Julia Jacobo, Jordyn Phelps and Emily Shapiro contributed to this report.", -658,2017/2/9,http://abcnews.go.com/Politics/sean-spicer-citing-unknown-atlanta-terror-attack-times/story?id=45364173,Sean Spicer on Citing Atlanta Terror Attack That Never Happened: I 'Clearly Meant' Orlando,,"Kellyanne Conway isn't the only member of the Trump administration citing a terrorist attack that never happened: White House press secretary Sean Spicer is just as guilty, recently referring three times to an attack in Atlanta. Spicer first made an Atlanta reference during a Jan. 29 appearance on ABC's ""This Week,"" telling chief global affairs correspondent Martha Raddatz, ""What do we say to the family who loses somebody over a terroristic ""?to whether it's Atlanta or San Bernardino or the Boston bomber? Those people, each of whom had gone out to a country and then come back."" And the head scratching continued the next day, when on MSNBC's ""Morning Joe"" he argued that there are too many instances of terrorism in the U.S., ""whether you're talking about San Bernardino, Atlanta."" Spicer again cited an Atlanta attack during a press briefing just hours after his MSNBC interview, after being asked by a reporter why some countries with terrorist ties are not included in President Trump's travel ban. ""We're reviewing the entire process over this period of time to make sure that we do this right,"" Spicer said. ""But I don't think you have to look any further than the families of the Boston Marathon, in Atlanta, in San Bernardino to ask if we can go further."" A string of bombings, carried out by domestic terrorist Eric Rudolph, did take place in Atlanta in 1996 and 1997. But that's not what Spicer was referring to. In an email to ABC News on Wednesday, Spicer finally addressed his repeated references to an Atlanta attack, writing that he ""clearly meant Orlando."" Spicer's about-face ""?saying he intended to refer to the massacre in June at Pulse, a gay nightclub in Orlando, Florida ""?comes on the heels of Conway's repeated references to a nonexistent Bowling Green massacre, which she has since acknowledged never occurred.", -659,2017/2/9,http://abcnews.go.com/Politics/analysis-trump-white-house-plays-terrorism-blame-game/story?id=45358300,ANALYSIS: Trump White House Plays Terrorism Blame Game,,"The Trump administration has a blunt message: Be afraid. And if something goes wrong, blame the third branch of government and the fourth estate. That's the message emanating from the White House, starting with President Trump, just three weeks into his hectic presidency. The president is arguing that the terrorism threat is far worse than most people imagine -""?and that forces, including the judiciary and the news media, are potentially making the United States less safe. ""Believe me,""?the president told a law enforcement gathering in Washington Wednesday morning, ""I've learned a lot in the last two weeks, and terrorism is a far greater threat than people understand.""?And, as he's done multiple times over the past week, he turned his attention to a federal judiciary, which has put the brakes on his executive order limiting migration from seven predominantly Muslim countries. ""right now, we are at risk because of what happened,""?Trump said. As scrutiny has grown over his travel ban, Trump has cast it as central to his mission of keeping Americans safe. He's lashed out at the federal judge who effectively put the policy on hold with a temporary restraining order, tweeting that ""if something happens blame him,""?and saying that even a ""bad high-school student""?would understand that the president's order is legal. He also has taken his attack to the media. A ""lery, very dishonest press""?is failing to report on terrorist attacks in Europe, the president said. His White House put out a typo-ridden list of attacks the administration believes demonstrates that some were under-covered, which included several incidents with tenuous links to terrorists, as well as incidents that were widely covered: Orlando, San Bernardino, Paris. Along the way, the warnings coming from his administration have become more urgent and ominous. ""What we can""t do is wait for the next attack to come,""?White House Press Secretary Sean Spicer said Wednesday. ""not until the boom,"" warned Homeland Security Secretary John Kelly on Tuesday, when pressed by a member of Congress on what proof the administration has that people are coming to the U.S. with the intent to harm Americans. ""the world is an angry place,""?the president himself told ABC News' David Muir, in the first major television interview of his presidency. It's a rhetorical break with the main message coming from the last two presidents, one a Democrat and one a Republican. Their general stance even after 9/11 was to reassure Americans and urge them to go on about their daily business. For Trump, the tone appears to have policy implications. A president who claims to know the public's sentiments without polls is seeking to claim the mantle of public support for an agenda that aims to be more aggressive in combating threats. If, to Trump and his allies, the ends justify those means, it's instructive to game out how Trump might cast an attack on Americans under his watch. The president appears to see enemies everywhere, including inside the country he leads.", -660,2017/2/9,http://abcnews.go.com/Politics/trump-mccain-yemen-raid-success/story?id=45373038,Trump Goes After McCain After He Says Yemen Raid Wasn't a 'Success',,"President Donald Trump has started another war of words with Arizona Sen. John McCain over whether a recent raid in Yemen ""?in which a Navy SEAL and a number of civilians, including women and children, were killed ""?was a success. McCain, the head of the Senate Armed Services Committee, told NBC on Wednesday that when a mission leads to the loss of life, ""I don't believe you can call it a success."" ""My understanding of the parameters of the raid were that they wanted to capture individuals, and obviously they didn't want to kill children or women,""?McCain said. Reprieve, an international human rights group that frequently represents victims of drone strikes and their families, said that as many as 23 civilians may have been killed in the raid. U.S. Central Command said in a statement, ""A team designated by the operational task force commander has concluded regrettably that civilian noncombatants were likely killed in the midst of a firefight during a raid in Yemen Jan. 29. Casualties may include children."" It is reviewing claims of civilian casualties. White House press secretary Sean Spicer criticized McCain during Wednesday's press briefing, saying, "" Anybody who undermines the success of that raid owes an apology and [does] disservice to the life of Chief [Naval Surface Warfare Operator William 'Ryan'] Owens."" Spicer called the raid a ""huge success,"" though he said in a press briefing on Feb. 2 that ""it's hard to ever say something was successful when you lose a life."" His defense didn't stop Trump from slamming McCain in a series of tweets this morning. ""Sen. McCain should not be talking about the success or failure of a mission to the media. Only emboldens the enemy! He's been losing so long he doesn't know how to win anymore, just look at the mess our country is in - bogged down in conflict all over the place. Our hero Ryan died on a winning mission (according to General Mattis), not a 'failure.' Time for the U.S. to get smart and start winning again!"" Trump wrote. Sen. McCain should not be talking about the success or failure of a mission to the media. Only emboldens the enemy! He's been losing so.... ...long he doesn't know how to win anymore, just look at the mess our country is in - bogged down in conflict all over the place. Our hero.. ..Ryan died on a winning mission ( according to General Mattis), not a ""failure."" Time for the U.S. to get smart and start winning again! This is not the only time that Trump has been openly critical of McCain. Shortly after launching his presidential campaign, Trump said McCain is ""not a war hero. He's a war hero because he was captured. I like people who weren't captured."" Editor's note: An earlier version of this story misstated the number of civilian deaths in the raid. Reprieve says it has accounted for 23 civilian deaths.", -661,2017/2/9,http://abcnews.go.com/Politics/wireStory/gop-lawmakers-us-push-restrictions-voting-45365225,Republican State Lawmakers Push for Restrictions on Voting,,"As President Donald Trump hurls unfounded allegations of colossal fraud in last fall's election, lawmakers in at least 20 mostly Republican-led states are pushing to make it harder to register or to vote. Efforts are underway in places such as Arkansas, Iowa, Maine, Nebraska and Indiana to adopt or tighten requirements that voters show identification at the polls. There is a move in Iowa and New Hampshire to eliminate Election Day registration. New Hampshire may also make it difficult for college students to vote. And Texas could shorten the early voting period by several days. Supporters say the measures are necessary to combat voter fraud and increase public confidence in elections. But research has shown that in-person fraud at the polls is extremely rare, and critics of these restrictions warn that they will hurt mostly poor people, minorities and students ""?all of whom tend to vote Democratic ""?as well as the elderly. They fear, too, that the U.S. Justice Department, under newly confirmed Attorney General Jeff Sessions, will do little to intervene to protect voters. Some election watchers see voting rights under heavy attack. ""What is really happening here is an attempt to manipulate the system so that some people can participate and some people can't,"" said Myrna Perez, director of the Voting Rights and Elections project at New York University's Brennan Center for Justice. Even so, there are more bills around the country aimed at making it easier to vote, according to the Brennan Center. Starting or expanding early voting and creating automatic voter registration are two popular proposals. Democratic Gov. Andrew Cuomo of New York, for example, is backing a proposal to automatically register people to vote using their motor vehicle paperwork and to offer early voting for 12 days before Election Day. Many of the restrictive laws became possible after the U.S. Supreme Court in 2013 struck down a key provision of the federal Voting Rights Act that required certain states and counties, largely in the South, to get Justice Department approval before changing their election laws. The 2016 presidential election was the first without those protections, and voters in 14 states faced new restrictions on voting or registration. Kevin Hall, spokesman for the Iowa Secretary of State, said proposed legislation would provide non-photo identification cards to anyone who doesn't have another acceptable form of ID, such as a driver's license or passport. The bill would also update voting system technology. ""This is a commonsense approach just to protect the integrity of our election,"" he said. ""We want to make sure it's secure and boost voter confidence as well."" Other states such as Maine and Nebraska, meanwhile, are looking to require photo identification for voting. In addition to eliminating same-day registration, New Hampshire Republicans want to add a residency requirement that critics say could prevent college students from voting. People can now vote in New Hampshire if they consider it their home. Proponents say the new measure would ensure that only people who truly live in the state can take part in elections. Many of these measures are certain to face court challenges. Before the presidential election, federal courts rolled back some of the toughest restrictions in North Carolina and Texas. Those cases are still working their way through the legal system, and voting rights groups are worried the new attorney general will abandon efforts made under the Obama administration to fight the restrictions. Over the past few years, ""states and localities were emboldened unlike ever before in employing a wide range of tactics to deny voting rights to people of color and people with disabilities,"" said Scott Simpson with the Leadership Conference on Civil and Human Rights. ""We expect that this will get much worse with a Justice Department that is hostile to voting rights."" Trump has claimed without evidence that as many as 5 million people voted illegally in the presidential election, complaining that the voter rolls include dead people, non-citizens and people registered in multiple states. He has called for an investigation. Election experts are more concerned about the age of the nation's voting systems and their vulnerability to tampering. A federal commission responsible for working with states on those very issues is facing an uncertain future, after a House committee this week voted to eliminate it. The Election Assistance Commission was created after the ""hanging chad"" debacle in Florida during the 2000 presidential election. Republicans say the agency is a prime example of government waste. The commission is scheduled to make recommendations later this year on new standards for voting equipment. ""?This story has been corrected to show that the Iowa legislation would provide non-photo identification cards, not photo ones, to people who do not have a valid ID for voting purposes. ""?Cassidy reported from Atlanta. Associated Press writer Barbara Rodriguez in Des Moines, Iowa, contributed to this report. Follow Kathleen Ronayne on Twitter at http://twitter.com/kronayne and Christina Almeida Cassidy at http://twitter.com/AP""�Christina .", -662,2017/2/9,http://abcnews.go.com/Politics/wireStory/labor-secretary-nominee-addresses-conflicts-interest-45366903,Labor Secretary Nominee Addresses Conflicts of Interest,,"President Donald Trump's nominee for secretary of labor has proposed avoiding conflicts of interest by resigning as CEO of his fast food empire, selling off hundreds of holdings and recusing himself from government decisions in which he has a financial interest, according to his ethics filings with the government. ""I will not participate personally and substantially in any particular matter in which I know that I have a financial interest directly and predictably affected by the matter"" without a waiver from government ethics officials, Andrew Puzder wrote in the nine-page filing, dated Tuesday and obtained by The Associated Press. Puzder is CEO of CKE Restaurants Inc., which owns such chains as Hardee's and Carl's Jr. Asked on a separate Senate questionnaire obtained Thursday whether he would ""sever all connections with (his) present employer"" if confirmed, Puzder answered, ""Yes."" A spokesperson for Tennessee GOP Sen. Lamar Alexander, whose committee will handle Puzder's confirmation hearing, confirmed that the panel had received the agreement with the Office of Government Ethics required of all presidential Cabinet nominees. The hearing was set for Feb. 16. Democrats are questioning how well Puzder could advocate for American workers atop the agency charged with enforcing protections, given his business empire. They are publicizing several unflattering stories from current and former employees of Puzder's company, and his hearing had been postponed several times. Despite the plan to divest, Puzder represents to them the face of corporations who aren't giving workers their due. Trump, meanwhile, has not said he would divest from his business empire. Senate Democratic Leader Charles Schumer Thursday called on the administration and Puzder to withdraw his name from consideration ""before he further embarrasses this administration and further exposes the hypocrisy of President Trump."" Puzder said on the questionnaire that from 2014 through 2016, he personally lobbied lawmakers and their staffers ""to advocate on behalf of issues that are of importance to the restaurant industry."" Puzder cited his firm's interest in menu labeling, franchise regulations, the Affordable Care Act and an Obama administration labor ruling that companies can be held responsible for labor violations committed by their contractors. Although not listed on the committee's questionnaire, Congressional lobbying disclosures show that Puzder's company, CKE Restaurant Holdings Inc., spent $220,000 on lobbyists who contacted legislators and federal officials on workplace, agriculture and franchise regulation issues. The fast food executive promised in his ethics agreement that he would sell off his CKE Restaurant Holdings partnership stock shares to his company. Puzder estimated the worth of those stock holdings at between $10 million and $50 million, according to his financial disclosures. Unlike the OGE-approved agreements of several other Trump Cabinet nominees, notably Secretary of State Rex Tillerson's, Puzder's does not include language that would place his sold-off holdings in a trust administered by an independent trustee. Such ""blind trusts"" are frequently used to wall off top federal officials from decisions made about their financial holdings. Instead, the government appears to be allowing Puzder to use an alternate route of insulating himself from his holdings by converting them into ""non-conflicting assets"" approved by ethics officials, such as government bonds or diversified mutual funds. Puzder said he was due a promised 2016 bonus, which he estimated in his disclosure to be worth between $1 million and $5 million, and said he hoped it would be paid ""before I assume the duties of the position of secretary."" But Puzder said he would forfeit that bonus if his company did not pay it to him before he took office. Puzder's agreement indicated that he sought extra time to sell off some of his assets and that government ethics officials gave him only cautious allowances to do so. Puzder said he expected to be able to sell more than 200 stocks, bonds and mutual fund holdings within 90 days but warned that more than a dozen other investment funds with multiple underlying assets could take longer to sell. Puzder said selling off those investment funds could take up to a half-year and his agreement indicated that Labor Department ethics officials might give him up to two months more but only if he shows ""substantial progress"" toward completing the divestiture of all of these entities within a half-year. Two of those complicated investment funds are vehicles run by Solamere Capital, an investment team headed by former Republican presidential candidate Mitt Romney and his son, Tagg. Puzder said he held up to $1 million in one of those funds, Solamere Capital Fund ll LLP. Puzder promised to work with government ethics officials ""to develop an effective recusal mechanism"" for any decisions affecting those corporate entities. The AP obtained the documents from a government official who was not authorized to release them before they are made public.", -663,2017/2/9,http://abcnews.go.com/US/trump-signs-executive-actions-crime-police-drug-cartels/story?id=45375771,"Trump Signs 3 Executive Actions on Crime Against Police, Drug Cartels",,"During Jeff Sessions' swearing in Thursday morning as United States Attorney General, President Donald Trump signed three executive actions including targeting drug cartels and violence against law enforcement. ""First, I'm directing Department of Justice and Homeland Security to undertake all necessary and lawful action to break the back of the criminal cartels that have spread across our nation and are destroying the blood of our youth and other people, many other people,"" said Trump. ""Secondly, I'm directing Department of Justice to form a task force on reducing violent crime in America,"" the president added. ""And thirdly, I'm directing the Department of Justice to implement a plan to stop crime and crimes of violence against law enforcement officers,"" he said. ""It's a shame what's been happening to our great, truly great law enforcement officers. That's going to stop as of today."" Since assuming office over two weeks ago, Trump has utilized executive action to follow through on several campaign promises -- most notably a ban on travel and immigration from seven Muslim-majority countries. Vows to protect law enforcement officials and crack down on crime were frequent pledges Trump made as a candidate. ""Today's ceremony should be seen as a clear message to the gang members and drug dealers terrorizing innocent people, your day is over,"" said Trump. ""A new era of justice begins and it begins right now.""", -664,2017/2/9,http://abcnews.go.com/Politics/alabama-attorney-general-luther-strange-appointed-replace-jeff/story?id=45370967,Alabama Attorney General Luther Strange Appointed to Replace Jeff Sessions in Senate,,"Alabama Attorney General Luther Strange has been appointed to temporarily fill the vacant Senate seat left by Jeff Sessions, who was confirmed Wednesday as U.S. attorney general. Alabama Gov. Robert Bentley made the announcement this morning in a statement. ""Alabama has surely been well represented by Senator Sessions, and I am confident Senator Strange will serve as a fine representative for our people,"" Bentley said. ""His leadership on a national level, service as a statewide elected official and long record of taking on tough federal issues are the very qualities that will make him a strong conservative Senator for Alabama.""?Strange, who was elected Alabama attorney general in 2011, said he is ""greatly honored and humbled"" to accept Bentley's appointment. ""Senator Sessions' commitment to public service is nearly unparalleled in Alabama history and his departure from the Senate leaves tremendous shoes to fill,"" Strange, 63, said in a statement. ""I pledge to the people of Alabama to continue the same level of leadership as Jeff Sessions in consistently fighting to protect and advance the conservative values we all care about."" A special election to fill the Senate seat permanently will take place in 2018. Strange, nicknamed ""Big Luther"" for his tall stature, had already announced he would throw his hat into the 2018 special election. As Alabama's attorney general, Strange has been a central figure in the scandal last year that engulfed Gov. Bentley last year, who was accused of having an affair with his former political adviser and using campaign funds to cover the trail. Alabama lawmakers on both sides of the aisle filed a resolution in April 2016 to impeach Bentley on charges of corruption. Gov. Bentley denied he had an affair and refused to step down, saying in a statement there were ""no grounds for impeachment."" In June 2016, the state's House Judiciary Committee began its impeachment investigation and in November 2016, committee announced it was suspending its impeachment investigation of Gov. Bentley at the request of Attorney General Strange. In a letter to the House Judiciary Committee chairman, Strange wrote that the committee should ""cease"" their investigation ""until I am able to report to you that the necessary related work of my office has been completed,"" without elaborating what that works entails. The Associated Press contributed to this report", -665,2017/2/9,http://abcnews.go.com/International/wireStory/kremlin-ukraine-deal-us-45367722,Kremlin: No Ukraine 'Deal' With US Possible,,"Russian President Vladimir Putin's spokesman is rejecting suggestions that the Kremlin and the Trump Administration may try to negotiate a deal over the war in eastern Ukraine. Last week saw a surge in fighting between government forces and Russia-backed separatist rebels. The fighting, which killed more than 30 people, came amid concerns that President Donald Trump's stated desire to improve relations with Russia could lead to lifting of U.S. sanctions against Russia connected to its interference in Ukraine. Putin spokesman Dmitry Peskov told journalists Thursday that Russia wants the United States to pressure Ukraine to fulfill the terms of a two-year-old agreement on ending on the war and that the conflict ""can hardly be a subject for some kind of deal.""", -666,2017/2/9,http://abcnews.go.com/Politics/wireStory/judges-response-trump-criticism-silence-45366898,"Roberts, Judiciary's Leader, Silent on Trump Criticism",,"President Donald Trump's unusually personal criticism of federal judges has drawn rebukes from many quarters, including from Supreme Court nominee Neil Gorsuch, but not much from the judges themselves. The leader of the federal judiciary, Chief Justice John Roberts, has himself been a target of Trump's attacks. But Roberts has refused to comment on Trump's remarks, including recent criticism of judges who are dealing with the president's executive order on immigration. And that's not likely to change, even if the tweeter in chief keeps up his attacks on judges. Bolstered by lifetime tenure, independent judges should not respond to criticism, no matter how harsh or that its source is the president, said a former judge, a law school dean and a constitutional law professor. Judges ""should basically give the tweets the attention they deserve, which means they should be ignored. This is basically a childish tantrum from someone who didn't get his way. And the judiciary should go about its business and decide cases, including cases involving him,"" said Vanderbilt University law professor Suzanna Sherry. Trump's style may be different and his language more coarse, but the comments themselves are not the ""threat to judicial independence that some commentators have made them out to be,"" said University of Pennsylvania law school dean Theodore Ruger. Former U.S. District Judge Paul Cassell said judges would find themselves in unfamiliar territory ""if they start critiquing the Twitter feed of the president."" Among sitting judges who have commented in some way is Gorsuch, who has been meeting on Capitol Hill with senators who soon will consider whether to confirm him to the Supreme Court. On Wednesday, Gorsuch said he found the president's attacks on the judiciary ""disheartening"" and ""demoralizing,"" according to Democratic Sen. Richard Blumenthal of Connecticut. Trump took to Twitter to question the veracity of Blumenthal's account, but Senate Democratic Leader Chuck Schumer of New York and Sen. Ben Sasse, R-Neb., each confirmed that Gorsuch made similar comments to them. Sasse told MSNBC's ""Morning Joe,"" ''Frankly, he got pretty passionate about it,"" said Sasse, adding that Gorsuch said any attack on the ""'brothers or sisters of the robe is an attack on all judges.'"" Former Sen. Kelly Ayotte, a Republican who is helping with Gorsuch's confirmation and attended the Blumenthal meeting, issued a statement acknowledging that Gorsuch said he finds any criticism of a judge's integrity and independence to be ""disheartening and demoralizing."" But Ayotte said the nominee also made clear he was not referring to any specific comment. Also Wednesday, U.S. District Judge Dan Polster said during a speech in Cleveland that questioning the legitimacy of a federal judge is a line that shouldn't be crossed. Polster, a nominee of President Bill Clinton, did not mention Trump by name, according to a report on Cleveland.com. Polster said that a public office holder who makes those types of comments ""calls into question his or her own legitimacy."" Roberts was the first judge to incur Trump's wrath. During the presidential campaign last winter, Trump called the chief justice ""an absolute disaster"" and ""disgraceful"" mainly for the two opinions Roberts wrote that preserved President Barack Obama's health care overhaul. Next in Trump's sights was U.S. District Judge Gonzalo Curiel, who was presiding over fraud lawsuits against Trump University. In June, Trump called Curiel ""a hater of Donald Trump"" who couldn't be fair to him because Curiel is ""of Mexican heritage"" and Trump had proposed building a wall on the U.S.-Mexican border. Last week, Trump called U.S. District Judge James Robart a ""so-called judge"" after Robart imposed a temporary halt on Trump's executive order barring people from seven predominantly Muslim countries from coming to the United States. On Sunday, Trump renewed his Twitter attacks against Robart: ""Just cannot believe a judge would put our country in such peril. If something happens blame him and court system. People pouring in. Bad!"" On Wednesday, he said the ""courts seem to be so political,"" in reference to the three federal appeals court judges who are considering the administration's plea to enforce the order. Trump is not the first president to object to court decisions or to opine about how a court should rule, said Paul Collins, a political science professor at the University of Massachusetts at Amherst. Obama used his 2010 State of the Union message to assail the Supreme Court's Citizens United campaign finance ruling, with several justices in the audience. Obama also delivered a lengthy pitch for his health care law while the court was weighing the case in 2015. With the exception of John F. Kennedy, every president since Dwight Eisenhower has been critical of some Supreme Court decisions, said Collins, drawing on research he did with co-author Matthew Eshbaugh-Soha of the University of North Texas. But past presidents did not make their displeasure known by ""attacking judges ... or by questioning the decision such that there's a possibility of undermining faith in the judicial system,"" Collins said. ""I get this uncomfortable sense that the president may be trying to lower confidence in judges in anticipation of defying a ruling."" Ruger said Roberts, as the head of the judicial branch of government, or another justice might feel compelled to speak up about the importance of an independent judiciary if the attacks continue. But Cassell, a law professor at the University of Utah who was a judge from 2002 to 2007, said Trump has the right to voice his disagreement. ""We live in an age now where, for better or for worse, the language we use is getting rougher in a variety of contexts,"" he said.", -667,2017/2/9,http://abcnews.go.com/International/wireStory/blast-french-nuclear-plants-machine-room-radiation-45368183,Blast in French Nuclear Plant's Machine Room, No Radiation,,"A fire led to a blast in a nuclear power plant's turbine hall Thursday on France's northwest coast but there was no radiation leak or casualties, operator EDF and local authorities said. EDF said the staff at the Flamanville plant in Normandy immediately brought the fire under control. The cause of the fire, in the machine room of the No. 1 reactor, was under investigation. The machine room, which houses turbines that produce electricity, is a non-nuclear area of the plant. There was no radiation leak as a result of the fire or blast, EDF said. Fire officers checked five of the plant's workers to see if they were suffering from smoke inhalation but they did not require further medical attention, said Olivier Marmion, a regional official. Foul play was ruled out as a cause of the fire, with initial suspicions focusing on a possible electrical short-circuit, Marmion said. EDF said the plant's No. 1 reactor was subsequently disconnected from the grid ""?a normal operating procedure in such circumstances. Flamanville has two 1,300-megawatt reactors, in operation since 1985 and 1986. Nearly 80 percent of France's electricity production is generated from nuclear power." -668,2017/2/9,http://abcnews.go.com/Technology/wireStory/russian-hackers-burned-deal-russias-spy-agency-45370599,Russian Hackers Get Burned in Deal With Russia's Spy Agency,,"For several years a group of Russian hackers have been posting letters and documents stolen from senior Russian officials with impunity. And then the nation's spy agency tracked them down and offered them a deal. A member of the Shaltai Boltai (Humpty Dumpty) group told The Associated Press on Thursday that the hackers accepted the offer from the Federal Security Service, or FSB, the top KGB successor agency: show their spoils before publishing in exchange for protection. But somehow the things went wrong for the group, and its leader and two other men have ended up behind bars. Alexander Glazastikov, who spoke to the AP from Tallinn, Estonia, where he's seeking political asylum, said his group had no connection to the hacking of Democratic Party emails during the 2016 U.S. election campaign. Former President Barack Obama's administration had accused Russia of launching the hacking campaign to help Republican Donald Trump win, accusations that the Kremlin has denied. ""We did not have any interest in Western countries, the United States. No one except inside Russia,"" Glazastikov said. He didn't say if the FSB officers who approached the group were those arrested in December on charges of spying for the United States. The arrests reported by Russian media outlets fueled speculation that the officers could have been connected to hacking the Democrats. While the interview Thursday provided no new information about Russian meddling in the U.S. elections, it offered a rare glimpse into the shadowy world of Russian politics, where hackers serve as a weapon for competing Kremlin clans and rival spy agencies. Glazastikov said the hacking group's leader, Vladimir Anikeyev, had offered to set up Shaltai Boltai as a resource that would release information serving public interests. Glazastikov said he joined the group because he was bored with his marketing job. The group quickly won the limelight by publishing letters written by government officials, artists or Kremlin-connected tycoons that cast them as unscrupulous and cynical. And then Shaltai Boltai began to cash in on its fame by blackmailing its victims to make them pay to prevent the publication of their personal data. Glazastikov said he believed the group crossed a red line for Russian officials in 2015, when it posted letters and documents from the chief of the Defense Ministry's construction department and then followed up with an open letter to the head of military counterintelligence mocking the agency's inability to keep secrets. ""We were playing with fire: The counterintelligence got very interested in us after that letter,"" Glazastikov said in an interview broadcast Thursday with the Russian Dozhd television station. He said unidentified people, possibly from the Defense Ministry, bought the cache of documents stolen from the military construction department chief for about $100,000. Separately, the FSB, competing for influence with other spy agencies, got the hacking group in its crosshairs. Glazastikov said that Dozhd Anikeyev, the hacking group's leader, had told him the FSB contacted him via proxies to give a message: ""Guys, we know all about you. We won't arrest you, but we would like to know what you are doing."" Neither the Defense Ministry nor the FSB has had any immediate comment about Glazastikov's claims. Glazastikov said Anikeyev was maintaining links to hackers who stole personal data and also dealing with the victims and those who ordered the hackings. Glazastikov estimated the group earned up to $2 million since 2014, but a large share of the money was spent to cover ""operational expenses."" He said he himself made less than $100,000. Glazastikov said Anikeyev didn't name the FSB officers he was dealing with, and added that he doesn't know if they were the officers of the FSB's cybercrime division arrested on treason charges in December. Two of them have been named in Russian media as Col. Sergei Mikhailov, deputy head of the FSB's Information Security Center (TsIB), and his subordinate, Maj. Dmitry Dokuchayev. According to Russian media reports, Mikhailov was arrested in a way designed to sow fear in the ranks: He had a bag placed over his head while attending a meeting of senior FSB officials. Glazastikov said Anikeyev had asked him to come to Russia, but he refused because he had a feeling that Anikeyev had been arrested and was making the request on officials' orders. Another hacking group member, Konstantin Teplyakov, agreed to come and was arrested. Anikeyev's arrest was later officially announced. Glazastikov said he didn't know another alleged group member, Alexander Filinov, who also was arrested. Filinov showed up Thursday at a Moscow court, which extended his arrest until April. ""��?Isachenkov reported from Moscow.", -669,2017/2/9,http://abcnews.go.com/Politics/wireStory/college-republicans-hitler-themed-valentines-card-45375634,College Republicans Sorry for Hitler-Themed Valentine's Card,,"A Central Michigan University Republican student group is apologizing for a Valentine's Day card that mocks Jews who died in the Holocaust. The College Republicans group handed out gift bags to students Wednesday night, including one with a card that said ""my love 4 u burns like 6,000 jews."" It had a photo of Adolf Hitler and was signed ""XOXO, Courtney."" The group apologized on Facebook, saying it doesn't condone anti-Semitism and that the card was made and placed in the bag without its knowledge. The group didn't identify the member who placed the card in the bag. Central Michigan spokeswoman Sherry Knight told Mount Pleasant's local paper, The Morning Sun, ( http://bit.ly/2kw1Ji0 ) that the school is ""deeply disappointed."" She says campus leaders are meeting Thursday to discuss the incident. ""?Information from: Morning Sun, http://www.themorningsun.com/", -670,2017/2/9,http://abcnews.go.com/US/noreaster-snow-buries-northeast-cities-shutter-schools-airports/story?id=45373276,"Blizzard Buries Northeast as Cities Shutter Schools, Airlines Cancel Flights",,"Snow is piling up in cities across the Northeast today in what could be the biggest blizzard of the season, affecting about 50 million people. The weather system developed in the Midwest before moving east across the country, bringing a light blanket of snow from Iowa to Ohio Wednesday. The system swept into the Northeast this morning and quickly intensified as it hit the East Coast, according to ABC News meteorologists who are tracking the storm. ""This is what we call a nor'easter in meteorology,""?ABC News senior meteorologist Max Golembo said. ""that's when winds primarily come out of the Northeast for the duration of the storm.""? As of this morning, the National Weather Service had issued blizzard warnings for Long Island, New York, and eastern Massachusetts, as well as winter storm warnings for Philadelphia, New York City, Boston and Portland, Maine. Heavy snow started coming down in the tri-state area (New York, New Jersey and Connecticut) this morning with a snowfall rate of about 2 to 4 inches per hour, which could create whiteout conditions, according to ABC News meteorologists. ""We'r in the core of this now,""?ABC News meteorologist Rob Marciano said while reporting from New York City for ""Good Morning America.""? As of 7 a.m. ET, almost 2 inches were recorded at New Jersey's Newark Liberty International Airport, while 2 inches had fallen in New Canaan and Bridgeport, Connecticut, according to the National Weather Service. As of 8 a.m. ET, almost 8 inches of snow had fallen in Albany, New York, and about 3 inches of snow had collected in New York City's Central Park, according to ABC News meteorologists. As of 9 a.m. ET, 5 inches of snow had accumulated in Haskell, New Jersey, about 6.4 inches had fallen in Bronx, New York, and 6.4 inches had collected in Danbury and Newtown, Connecticut, according to the National Weather Service. The snowfall is expected to end in New York City by 3 p.m. ET and between 9 and 10 p.m. ET in Boston and eastern New England, according to ABC News meteorologists. ABC News meteorologists say Philadelphia could get up to 6 inches of snow, New York City could see up to a foot and Boston could have up to 15 inches of snow by the end of the day. Today's blizzard conditions are in stark contrast to Wednesday's balmy weather, when some northeastern cities, like Philadelphia and New York City, enjoyed record-high temperatures in the low to mid-60s. The snowstorm will be followed by freezing temperatures today, according to ABC News meteorologists. Wind chills, or ""Heels like""?temperatures, will bottom out for numerous cities in the Northeast and Midwest. ""Wind chills tomorrow morning will be near zero for many in the Northeast and the Midwest,""?Golembo said. The heavy snowfall is creating hazardous travel and whiteout conditions for many cities in the Northeast. The National Weather Service advised against travel in New York City and the surrounding tri-state area this morning because of the snowstorm. The federal agency urged people to have an ""Emergency kit""?on hand if travel becomes absolutely necessary. ""Travel is NOT recommended tomorrow morning due to heavy snow. If you absolutely must venture out, have an emergency kit in your car,""?the National Weather Service in New York City tweeted Wednesday. Travel is NOT recommended tomorrow morning due to heavy snow. If you absolutely must venture out, have an emergency kit in your car. pic.twitter.com/DXmYeW9baf ABC News""?Linzie Janis, reporting from the New Jersey Turnpike this morning, said the roads were snow-covered and the travel conditions were ""Pretty treacherous.""?""these roads may only get worse. Of course, those extra-cold temperatures are on the way and it could all turn to ice,""?Janis said on ""Good Morning America.""?""We're seen several accidents already.""? Thousands of flights were canceled out of airports in the Northeast region as the storm approached. As of this morning, over 3,000 flights were canceled within, into or out of the United States today. The Port Authority of New York and New Jersey said up to 1,800 flights have been canceled so far at Newark Liberty International Airport, John F. Kennedy International Airport and LaGuardia Airport. ""there is very minimal air traffic at this time primarily because there are so many cancellations,""?Port Authority spokesman Steve Coleman told ABC New York City station WABC-TV this morning. Area airports should be able to resume full operations by Friday morning, he said. Meanwhile, Boston Logan International Airport had canceled 341 flights and Philadelphia International Airport had canceled 107 as of this morning, according to officials. As of 11 a.m. ET, New Jersey State Police said its troopers had responded to reports of 198 motor-vehicle crashes and 226 motor-vehicle aids in their patrol areas since midnight. #NJSP responded 2 the report of 198 MV crashes & 226 MV aids since midnight. Totals will vary. Based on reports. #snow #SnowStorm #snowday pic.twitter.com/dYgnkYRh6X According to the New York City Police Department, a doorman was killed while shoveling snow this morning after he slipped and fell through a glass window of his building on E. 93th Street in Manhattan. Many schools and administrative offices throughout Philadelphia, New York City and Boston were closed because of the storm. Some government buildings, including the United Nations headquarters in New York City's Manhattan, were also shuttered because of the inclement weather. ABC News' Gregory Croft, Max Golembo, Joshua Hoyos and Aaron Katersky contributed to this report.", -671,2017/2/9,http://abcnews.go.com/US/winter-weather-grounds-delays-thousands-flights-us/story?id=45360621,"Winter Weather Grounds, Delays Thousands of Flights Across US",,"Frigid temperatures and sheets of snow have snarled travel throughout the Northeast region today. At least 3,431 U.S. flights have been cancelled and at least 732 have been delayed. Yesterday, close to 500 flights were cancelled and 2,330 were delayed. LaGuardia Airport in New York has cancelled 403 flights so far, followed closely by Newark Liberty International Airport (394), John F. Kennedy International Airport (355) and Boston Logan International Airport (353). A ground stop has been issued at JFK until at least 2 p.m. ET. At least 11 airlines had issued travel waivers along the East Coast as of Thursday morning. JetBlue has cancelled 60 percent of its flights today. Drivers in New York City and Philadelphia have been urged to avoid unnecessary travel due to inclement conditions. ABC News meteorologists predict that 50 million Americans are in the path of the winter storm. Temperatures in the Northeast, which have been unseasonably high, plummeted overnight into Thursday morning. Blizzard warnings were in effect for eastern Long Island and eastern Massachusetts. Winter storm warnings were issued for Philadelphia, New York City, Boston, and Portland, Maine. ABC News meteorologists forecast that NYC will be hit with a foot of snow. Boston could be slammed with 15 inches of snow and Philadelphia up to 6 inches. The storm is expected to clear out by Friday morning. ABC News' Max Golembo, Melissa Griffin and Whitney Lloyd contributed reporting.", -672,2017/2/9,http://abcnews.go.com/Politics/trump-suggests-supreme-court-nominee-neil-gorsuch-criticism/story?id=45369370,Trump Suggests That Supreme Court Nominee Neil Gorsuch's Criticism of Him Misrepresented,,"President Trump today suggested that his Supreme Court nominee, Judge Neil Gorsuch, was misrepresented regarding comments describing the president's view of the judiciary as ""demoralizing"" and ""disheartening,"" even though a spokesman for Gorsuch had confirmed the remarks. In an early-morning tweet, Trump lambasted Sen. Richard Blumenthal, D-Conn., who on Wednesday reported Gorsuch's private remarks expressing concern over Trump's recent attacks on the judiciary. Sen.Richard Blumenthal, who never fought in Vietnam when he said for years he had (major lie),now misrepresents what Judge Gorsuch told him? Former Sen. Kelly Ayotte of New Hampshire, who is leading the White House team working to confirm Gorsuch, 49, said in a statement today, ""Judge Gorsuch has made it very clear in all of his discussions with senators, including Sen. Blumenthal, that he could not comment on any specific cases and that judicial ethics prevent him from commenting on political matters. He has also emphasized the importance of an independent judiciary, and while he made clear that he was not referring to any specific case, he said that he finds any criticism of a judge's integrity and independence disheartening and demoralizing.""?Blumenthal is standing by his characterization of Gorsuch's comments, despite the president's tweets to the contrary. ""There is no question that Judge Gorsuch said that these attacks on the judiciary are disheartening and demoralizing,"" Blumenthal told ABC News this morning. He also urged Gorsuch to go public. ""He should be telling the American people how abhorrent and destructive these attacks are,"" Blumenthal said. ""The American people need to hear it from him."" Republican Sens. Cory Gardner of Colorado and Ben Sasse of Nebraska corroborated Blumenthal's account, saying Gorsuch made similar statements to them. ""He said any attack on any of ""?I think his term to me was 'brothers or sisters of the robe' ""?is an attack on all judges,"" Sasse said this morning on MSNBC. Gardner said he agrees with Gorsuch's comments but emphasized that previous presidents have also been critical of the judiciary. ""It's highly unusual for a senator to hold a press conference and disclose the entirety of a meeting after a private meeting like that with a nominee. But that's what he said. I have no reason to not believe Sen. Blumenthal or Judge Gorsuch, what he said or his spokesperson. And I would agree with Judge Gorsuch,"" Gardner told CNN. ""But this is not the first time that we've seen somebody besmirch a court,"" Gardner added. ""This isn't the first time a president used the power of the office to criticize a Supreme Court decision or a judge."" Trump has on several occasions castigated a judge who blocked his immigration order in Washington state last week. Over the weekend, he panned Judge James Robart as a ""so-called judge""?and blamed him for risking national security by issuing the temporary restraining order, which applied nationwide, calling it ""a terrible decision."" Speaking to law enforcement leaders Wednesday morning, Trump suggested that the courts are acting politically. He also commented on the 9th Circuit Court of Appeals judges who could decide whether to lift the restraining order on his travel ban. The three-judge panel heard oral arguments Tuesday night and was expected to rule this week. Gorsuch met Wednesday with six senators, including Blumenthal, on Capitol Hill. In an interview that day, Blumenthal said Gorsuch's answers to questions about Trump's comments on the judiciary left him unsatisfied. ""He found them to be disheartening and demoralizing,"" Blumenthal said of Gorsuch, a federal appellate judge in Denver. ""I think he needs to be far stronger and tell the American public rather than state them to me as a senator."" Blumenthal said that he still has ""by no means reached a decision on his nomination"" and that he pressed Gorsuch on whether he would respect Roe v. Wade, the 1973 Supreme Court decision finding that abortion is a constitutional right. ""He declined to commit that he would continue to uphold any specific case,"" Blumenthal said, adding that he expects such issues to come up again before the Senate Judiciary Committee.", -673,2017/2/9,http://abcnews.go.com/Politics/scotus-pick-neil-gorsuch-calls-trump-comments-judiciary/story?id=45358697,SCOTUS Pick Neil Gorsuch Calls Trump Comments on Judiciary 'Demoralizing' and 'Disheartening',,"Donald Trump's nominee for the Supreme Court, Neil Gorsuch, called the president's comments on the judiciary ""demoralizing"" and ""disheartening"" during a meeting with Sen. Richard Blumenthal, D-Conn., a spokesman for Gorsuch confirmed. The spokesman did not say which of Trump's comments Gorsuch was referring to. Trump has spoken out multiple times against a federal judge who blocked his immigration order in Washington state last week. Over the weekend, he panned Judge James Robart as a ""so-called judge""?and blamed him for risking national security by issuing the temporary restraining order (which applied nationwide), calling it ""a terrible decision."" The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned! What is our country coming to when a judge can halt a Homeland Security travel ban and anyone, even with bad intentions, can come into U.S.? Because the ban was lifted by a judge, many very bad and dangerous people may be pouring into our country. A terrible decision Speaking to law enforcement leaders this morning, Trump suggested that the courts are acting politically. He also commented on the 9th Circuit Court of Appeals judges who could decide whether to lift the restraining order on his travel ban. The three-judge panel heard oral arguments last night. ""I have to be honest that, if these judges wanted to, in my opinion, help the court in terms of respect for the court, they do what they should be doing,""?Trump said. ""And I don't ever want to call a court biased, so I won't call it biased. And we haven't had a decision yet. But courts seem to be so political and it would be so great for our justice system if they would be able to read a statement and do what's right.""?He went on to tweet this afternoon that there's been a ""big increase in traffic""?into the United States from ""Certain areas,""?seeming to suggest that the court's ruling should be an ""easy""?decision. Big increase in traffic into our country from certain areas, while our people are far more vulnerable, as we wait for what should be EASY D! Gorsuch's meeting with Blumenthal was one of six he held with senators on Capitol Hill today. In an interview, Blumenthal said Neil Gorsuch's answers to questions about Trump's comments on the judiciary left him unsatisfied. ""He found them to be disheartening and demoralizing. I think he needs to be far stronger, and tell the American public rather than state them to me as a senator,"" Blumenthal said. The Connecticut Democrat says he still has ""by no means reached a decision on his nomination"" and said he pressed Gorsuch on whether he would respect Roe v. Wade. ""He declined to commit that he would continue to uphold any specific case,"" he said of Gorsuch. Blumenthal said he expects these issues to come up again before the Judiciary Committee. The White House did not immediately respond to a request for comment. ABC News' Katherine Faulders and Jordyn Phelps contributed reporting to this report.", -674,2017/2/8,http://abcnews.go.com/Politics/key-moments-appeals-court-hearing-trumps-travel-ban/story?id=45345705,5 Key Moments From the Appeals Court Hearing on Trump's Travel Ban,,"Three judges from the 9th U.S. Circuit Court of Appeals grilled lawyers for the Department of Justice and the state of Washington on Tuesday in an extraordinary hearing over Donald Trump's executive order temporarily banning immigrants from seven majority-Muslim countries. The case before the court centers on the Trump administration's appeal of a nationwide temporary restraining order issued on Friday by U.S. District Court Judge James Robart in Seattle. The executive order also placed a 120-day hold on admitting any refugees to the U.S. and indefinitely blocked Syrian refugees from entering. The administration asserts that the restraining order is ""vastly overbroad"" and an improper judicial encroachment on the authority of the president. Thousands of people tuned in to listen to an audio live stream of the hearing. The judges have indicated that a ruling could come as soon as today. Arguing for DOJ was August Flentje, a special counsel to the assistant attorney general, civil division. Washington state's solicitor general, Noah Purcell, presented the case for his state and Minnesota. Nearly 100 technology companies, as well as numerous civil rights groups and lawyers, filed amicus briefs with the court in support of Washington state. Hearing the case via telephone conference were Circuit Judge Michelle Friedland (appointed by President Barack Obama) in San Jose, California, who presided over the hearing; Senior Circuit Judge William C. Canby (appointed by President Jimmy Carter) in Phoenix; and Senior Circuit Judge Richard Clifton (appointed by President George W. Bush) in Honolulu. Here were the key moments from the hearing: Arguing for the federal government that the executive order was ""well within the president's power as delegated to him by Congress,"" Flentje soon found himself on the defensive as Friedland pressed for evidence the government relied on to determine the risks posed by immigrants from the seven countries affected by the executive order. ""Has the government pointed to any evidence connecting these countries with terrorism?"" she asked. ""These proceedings have been moving very fast,"" he replied, and cited decisions made during the Obama administration to restrict nationals of those seven countries from eligibility for a visa waiver program. ""And that is, I think, the strongest type of reliance, where the president is relying on Congress' determination that these are countries of concern."" Chiming in, Canby pointed out that during last week's hearing in Seattle, the federal government's lawyer was unable to provide any examples of federal crimes committed in the U.S. by visa holders from the seven countries. ""Yes, your honor,"" Flentje answered. ""These proceedings have been moving quite fast, and we're doing the best we can."" He then offered an example of people from Somalia who were convicted in the United States of supporting Somali-based terrorist group al-Shabaab. ""Is that in the record?"" Friedland asked. ""Can you point us to where in the record you are referring"" ""It is not in the record,"" Flentje conceded. Purcell argued that ""shocking evidence"" of Trump's ""intent to discriminate against Muslims"" is proof that the travel ban is unconstitutional because it was motivated by religious discrimination. But he was repeatedly challenged on that assertion by Clifton, who pointed out that the executive order affects only a small percentage of Muslims worldwide. ""I have trouble understanding why we're supposed to infer religious animus when, in fact, the vast majority of Muslims would not be affected,"" Clifton said. ""And where the concern for those connected with radical Islamic sects is kind of hard to deny."" ""We're not saying that this is a complete ban on Muslims entering the country,"" Purcell said, referring to the broad exclusionary policy Trump promoted early in his presidential campaign. ""We do not need to prove that this order harms only Muslims or that it harms every Muslim,"" Purcell continued. ""We just need to prove that it was motivated by a desire to harm Muslims."" Flentje was repeatedly asked by the judges if the president could explicitly bar all Muslims from entering the country without review by the judicial branch. ""Could the president say in the order, 'We're not going to let any Muslims in'?"" Canby asked. ""That's not what the order does here,"" Flentje replied, avoiding a direct response. ""I know,"" Canby said. ""Could he do that?"" ""That's not what the order does,"" Flentje answered twice more. As the hearing drew to a close, Flentje conceded, ""If there were an executive order that prevented the entry of Muslims, there would be people with standing to challenge that ... but that's not the order we have here. This order is limited to the countries defined by Congress."" ""But the allegations are that ... was the motivation,"" Friedland said. ""And plaintiffs have submitted evidence they suggest shows that was the motivation. So why shouldn't the case proceed perhaps to discovery to see if that was really the motivation or not?"" ""We're not saying the case shouldn't proceed,"" Flentje said. ""But it is extraordinary for a court to enjoin the president's national security determination based on some newspaper articles."" Purcell argued that the government's shifting interpretations of the executive order led to even legal permanent U.S. residents' getting swept up in the chaotic first few days. ""They changed their minds about five times about whether it applies to those people in the time since the order issued, and now they say it doesn't,"" Purcell said. And while White House counsel Don McGahn has since issued a memo to federal agencies stating that the ban does not apply to legal permanent residents, Purcell argued that until the administration changes the language of the order ""to make that crystal clear,"" the judges should not discount the possibility that the administration could again alter the enforcement of the ban. Clifton later raised concerns with Flentje about the legal authority of the White House counsel to instruct government departments about the meaning of the order. ""Why shouldn't we look to the executive branch to more clearly define what the order means rather than looking through the lens of subsequent interpretations?"" Clifton asked. Flentje responded, ""The guidance from the White House counsel is the definitive interpretation of the order, and the White House counsel speaks for the president in this context."" Flentje argued that the temporary restraining order issued by Robart last week is too broad and that the plaintiff states have no standing to challenge the president's authority to enforce provisions of the order affecting refugees and visa holders who have never before been admitted to the U.S. He argued that if the appeals court decides to allow the restraining order to remain in place, it should be modified to apply only to ""previously admitted aliens who are temporarily abroad now or who wish to travel and return to the United States in the future,"" he said. But Purcell argued that limiting the restraining order in that way ""would not remedy the [executive] order's violation"" of the establishment clause in the Constitution ""by favoring one religious group over another.""", -675,2017/2/9,http://abcnews.go.com/Entertainment/anna-nicole-smiths-daughter-now-10-fearless-mom/story?id=45329494,"Anna Nicole Smith's Daughter, Now 10, 'Is Fearless Like Her Mom,' Says Dad Larry Birkhead",,"It's been 10 years since Anna Nicole Smith's untimely death just months after giving birth to her daughter, Dannielynn Birkhead. Though Dannielynn never really knew her mom, her father, Larry Birkhead, said she reminds him of Smith more and more every day. ""she is fearless like her mom. She'll get on any roller coaster that you put in front of her,""?Birkhead, told ABC News ""?0/20""?in an exclusive interview. ""I could stand right next to my daughter and we could look like twins, and the first thing they'll say is ... ""Spitting image of the mother.""?Watch the full story on ABC News ""20/20"" on Friday, Feb. 10 at 10 p.m. ET Smith, a reality TV star and former Playboy Playmate of the Year who struggled with prescription drugs, was found dead in a Florida hotel room on Feb. 8, 2007. After an extensive investigation, the official cause of death was ruled an accidental overdose -- Smith had nine different prescription drugs in her system. She was 39. Dannielynn was just 5 months old at the time. ""Anna always wanted a little girl, that was her dream,""?Birkhead said. ""she went from city to city, as far back [as] the '90s, and she would collect outfits from all these road trips ""?and hope that one day that she could dress her in all these frilly outfits.""? As their daughter has gotten older, Birkhead, a photographer, said he has tried to explain what happened to her mother. ""the way I've told Dannielynn in the past is that, ""�Your mom took some medicines and she ... might not [have] taken them correctly or the right way, and the doctors couldn't help her, and they tried,"" he said. Birkhead had a romantic relationship with Smith but ended up going to court in an epic custody battle for Dannielynn until a paternity test proved Birkhead was the father. Smith's personal attorney, Howard K. Stern, and several other men had also claimed to be the baby's father. The case made international headlines. But Birkhead said Stern has ""been supportive""?of him as a father from the moment he won custody of Dannielynn. ""He just said, 'Look, you're got to get strong. you're got to be there for Dannielynn,'""?Birkhead said. ""the minute after the paternity test was over ... he's helping me change Dannielynn's diaper, [showing me], ""This is how you feed her,""?""?it's been nonstop since then.""? Birkhead said he's tried to give their daughter a stable life away from the spotlight. The two live just outside of Louisville, Kentucky, but Birkhead said even being thousands of miles away from Hollywood hasn""t stopped all the questions that can come with fame. ""people think [Dannielynn] has got millions and millions of dollars,""?he said. ""she came home and asked me where the money was, and I said, ""I'l still looking for it.""?Attorneys for Smith's estate were locked in a complicated legal battle for nearly 20 years with attorneys for the estate of her late husband, Texas billionaire oil tycoon J. Howard Marshall II. Smith was just 24 years old when she married Marshall, who was 89 at the time, in 1994. When he died the following year, he left his estate, valued by some estimates to be worth $1.6 billion, to his son, E. Pierce Marshall, and nothing to Smith. For the next nearly 20 years, Smith's legal team made numerous attempts to have the courts overturn Marshall's will and claim money from his estate. The case even made it to the U.S. Supreme Court twice. In 2013, it seemed Dannielynn could inherit as much as $49 million in damages from Marshall's estate after a California judge's ruling, but the ruling was later overturned and Dannielynn was denied inheritance from his estate. ""If Dannielynn is to inherit anything via her mom that she was entitled to, so be it, but it's not like we'r sitting around waiting for one thing to happen,""?Birkhead said. Birkhead said they receive no support from Smith's estate and that he makes a living through photography and flipping houses. The single dad said he is determined to ensure that Dannielynn has a very different life than her mom. ""It's just like any other kid who has lost a celebrity parent. They think that the child is automatically destined for the same path,""?he said. ""�[But] she can work me like her mom could work people. She gets what she wants.""?,-1""", -676,2017/2/9,http://abcnews.go.com/Politics/japanese-prime-minister-meet-trump-white-house-mar/story?id=45348245,"Japanese Prime Minister to Meet With Trump at White House, Mar-a-Lago",,"Japanese Prime Minister Shinzo Abe is set to meet with President Donald Trump Friday, becoming the second world leader to meet with Trump at the White House since his inauguration. The Prime Minister will be accompanied by Finance Minister Taro Aso and Foreign Minister Fumio Kishida. Abe is expected to unveil an economic proposal to invest $150 billion in U.S. infrastructure projects, according to the Japanese newspaper The Asahi Shibun, which reported on details of the draft proposal released earlier this month. The proposal, which includes plans for high-speed railway systems in Texas and California, could create 700,000 jobs in the U.S. Following meetings in Washington that will likely focus on defense and economic cooperation, Abe and his wife, Akie Abe, will fly to Trump's ""Winter White House,"" the Mar-a-Lago resort in Florida, for weekend golfing. Abe gifted Trump a high-end golf driver when the pair met at Trump Tower in New York last November. Japan, one of the closest U.S. allies, has already become a focal point for the new administration. Secretary of Defense James Mattis visited South Korea and Japan on his first official foreign trip in his new post, highlighting the Pacific region's importance to U.S. security interests. Mattis reaffirmed to Abe the U.S. commitment to the mutual defense treaty with Japan, especially in the wake of North Korea aggression, according to a Pentagon statement on their meeting. In addition to defense cooperation, one of the most important topics of conversation between Trump and Abe will undoubtedly be some sort of bilateral trade agreement. In his first days in office, Trump signed an executive order withdrawing the U.S. from the Trans-Pacific Partnership (TPP), much to Japan's dismay. Abe has said he will appeal that decision to the new administration, but has also signaled openness toward constructing a Japan-U.S. free trade agreement or an economic partnership agreement. According to a White House statement on the Jan. 28 call between Trump and Abe, the pair is ""committed to deepen the bilateral trade and investment relationship."" News of America's withdrawal from the TPP drew concern from partners in the region who had seen the trade pact as a check on China's economic and geopolitical influence. Without U.S. participation in the deal, China is free to work its own trade pacts or push an alternative regional treaty that does not include the U.S. In crafting a trade deal between the U.S. and Japan, expect vehicle sales to be a key issue. Trump complained on Jan. 23 that Japan does ""things to us that make it impossible to sell cars in Japan, and yet, they sell cars [in the U.S.] and they come in like by the hundreds of thousands on the biggest ships I""ve ever seen."" According to Bloomberg, Japan exported 1.6 million vehicles to the U.S. in 2015, while the U.S. sold less than 19,000 to Japan, helping to account for the fact that the country has the fourth-largest trade surplus with the US. Japan's trade minister Hiroshinge Seko responded to Trump, saying that Japan does not apply tariffs to US cars and he wants to ""explain this to the U.S. side."" Instead of tariffs, some attribute the severe trade imbalance to a perception by Japanese consumers that U.S. vehicles have poor quality. ""I wouldn""t mind driving American cars if they didn""t need maintenance for a year,"" said Kunihiko Miyake, a former diplomat who is now a visiting professor at Ritsumeikan University in Kyoto, told Bloomberg. ""Cost-performance-wise, American cars are not good. That's why I don""t buy them, not because of the non-tariff barriers."" ABC News' Anthony Trotter and Luis Martinez contributed to this report.", -677,2017/2/8,http://abcnews.go.com/Politics/story-arcane-senate-rule-silence-elizabeth-warren/story?id=45345670,The Story Behind the Arcane Senate Rule Used to Silence Elizabeth Warren,,"The dramatic episode Tuesday night, during which Senate Majority Leader Mitch McConnell silenced Democratic Sen. Elizabeth Warren's speech against attorney general nominee Jeff Sessions, shone a light on an arcane Senate statute: Rule 19. McConnell, R-Ky., accused the Massachusetts senator of violating a provision in the rule that states ""no Senator in debate shall, directly or indirectly, by any form of words impute to another Senator or to other Senators any conduct or motive unworthy or unbecoming a Senator.""?He claimed that her quoting various 1986 statements from other people on Sen. Sessions -- including the late Sen. Ted Kennedy, who called the Alabama Republican a ""disgrace,""?and the Rev. Martin Luther King Jr.'s widow, Coretta Scott King, who wrote that Sessions ""Chill[ed] the free exercise of the vote by black citizens""?-- was a violation of that provision of the obscure Senate rule, forcing the ultimate rebuke in the Senate floor: to stop talking and sit down. The rule, which former Senate parliamentarian Alan Frumin said he referred to as the ""shut up and sit down rule,""?addresses various aspects of Senate debate decorum, including a requirement that the presiding officer first recognize a senator who wishes to speak before he or she can do so. The Senate added Section 2 of Rule 19, which pertains to speaking ill of another sitting senator, in 1902, in response to a literal fistfight that broke out on the Senate floor. Then-Sen. John McLaurin of South Carolina raced into the Senate chamber and claimed that fellow South Carolinian Sen. Ben Tillman had told a ""willful, malicious and deliberate lie""?about him, according to research from the Senate Historical Office and author Francis Butler Simkins. The ""lie""?in question was about Tillman's criticizing McLaurin for moving closer to the opposing party. Tillman apparently heard the comment, turned around and punched McLaurin ""squarely in the jaw,""?according to the Senate Historical Office. Six days later, the Senate censured both men and added what is now Section 2 to Rule 19. It is up to the presiding officer to flag such language and, typically, remind senators of the rule and their potential violation of it before they move to officially censor him or her, according to Frumin, who served 18 years as chief Senate parliamentarian. For example, Sen. Steve Daines, R-Mont., who was acting as the presiding officer Tuesday night when Warren was censured, warned her as she was quoting Kennedy that she might be violating the rule, before officially censuring her after she moved on to quoting King. ""When [Warren] quoted Sen. Kennedy she was warned,""?Frumin said. ""And I think that that's perfectly appropriate. That's a proper way for this to take place.""?The parliamentarian can help the presiding officer make his or her decision about whether to officially accuse a senator of violating it but, Frumin said, it's completely up to the presiding officer to decide whether to officially ""Call to order""?the senator found in violation of Rule 19. For his part, Daines, the presiding officer whose regular ""shifts""?in that role include 6:30 pm to 8 pm on Tuesdays, said his decision to invoke Rule 19 had nothing to do with politics. ""Given the Senate is the world's greatest deliberative body,""?he told ABC News today, ""I believe we should have civilized debate.""? The short answer is very rarely. One instance widely reported today was in 1979, when then-Sen. Lowell Weicker, R-Conn., called Sen. John Heinz, R-Pa., an ""idiot""?and ""devious""?in a Senate debate, which Majority Leader Robert Byrd sought to defuse with a handshake. Frumin said that when he served as parliamentarian, he sought to first allow senators to work out such issues themselves without getting the Senate rulebook involved. ""I would do backflips to avoid enforcing the rule,""?he said, adding that he would do everything he could to ""lower the temperature""?in the room before the presiding officer resorted to Rule 19.", -678,2017/2/9,http://www.cnn.com/2017/02/09/opinions/nordstrom-trump-too-hot-to-handle-calkins-opinion/index.html,Trump brand too hot to handle,"Timothy Calkins is clinical professor of marketing at Northwestern University's Kellogg School of Management and the author of ""Defending Your Brand: How Smart Companies Use Defensive Strategy to Deal with Competitive Attacks."" The views expressed here are his.","All of this is not good for the Trump brand, which only two years ago was synonymous for many with success, luxury, wealth, and elegance -- so much so that his children had successfully leveraged it to foster ventures in the wine and fashion industries. Wearing a Trump branded suit made a statement. The brand didn't appeal to everyone, but it had a generally positive association. Today, however, the brand has a completely different meaning. It makes a very different statement, with associations of racism, sexism and xenophobia. And now that statement is blowing back onto the Trump children's businesses too. Given the polarizing nature of the Trump brand, Nordstrom's decision last week to drop the Ivanka Trump line shouldn't come as a surprise. It's a reflection of the state of the whole Trump brand today. Nordstrom claims that the decision was driven purely by sales results. A company spokesperson explained the move, noting, ""Each year we cut about 10 percent and refresh our assortment with about the same amount. In this case, based on the brand's performance we've decided not to buy it for this season."" I suspect Nordstrom's decision was a bit more complex, and that ultimately both results and branding played a role in phasing out the line. The Trump brand currently is so polarizing that Nordstrom was probably eager to drop it. The brand is too hot to handle. Nordstrom doesn't want to be seen as supporting the new administration strongly, a wise move given that some people intensely dislike the Trump brand. On the other hand, Nordstrom doesn't want to be opposed to the Trump brand either. It is never smart to publicly provoke a president. It is a very delicate balance, made all the harder when selling the line of products. By dropping the Trump brand due to sales trends, Nordstrom was simply attempting to back away from a conflict. Of course, things are rarely simple when dealing with Donald Trump. He attacked Nordstrom on Twitter, writing ""My daughter Ivanka has been treated so unfairly by @Nordstrom. She is a great person ... terrible!"" Donald Trump is not the first president to defend his family. Back in 1950, music critic Paul Hume wrote a negative review of performance by President Harry Truman's daughter. Truman sent off a frosty letter on White House stationary: ""Someday I hope to meet you. When that happens, you'll need a new nose, a lot of beefsteak for black eyes."" Still, Trump's habit of criticizing individuals and companies such as Nordstrom on social media raises the stakes for brand leaders. It's worth dwelling on the flap between President Trump (as a father and a businessman) and Nordstrom, because more brands are following Nordstrom's lead. Most firms want to be politically neutral -- there is no reason to side with one party or the other and risk turning away customers. As Nordstrom noted in a November Twitter post, ""We hope that offering a vendor's products isn't misunderstood as us taking a political position."" Unfortunately, with the Trump brand, it is seen that way. Supporting Trump in any fashion is making a statement. All of this means that the Trump brand, including the Ivanka Trump line, will have a challenging time going forward. For the Trump brand team, there are two keys for success with the Donald in the White House. First, plan for a soft year. Assume sales will drop, so manage expectations down. Proactively make moves that might logically explain a sales drop, and scale back and conserve resources. Second, work to reduce polarization. The Trump brand will rebound if it can get some early wins and become more broadly appealing. For retailers and licensees, it will be important not to be seen as taking a stand on the Trump brand. In most cases, this means just backing away from ties. The goal is not to be against Trump -- this can result in a Twitter attack from the President, which is not desirable (as Nordstrom experienced). The idea is to just not be seen as a supporter. With retailers such as Nordstrom abandoning the Trump brand, it is clear that a repositioning is in order. Until then, most brands will keep a safe distance away.", -679,2017/2/9,http://www.cnn.com/2017/02/09/politics/donald-trump-fear-travel-ban/index.html,Why Trump seeks to scare where other presidents soothed,"Washington (CNN)President Donald Trump, concerned his travel ban could be stopped cold in the judicial branch after a less-than-stellar rollout, is leaning into fear, attempting to ratchet up terror concerns by telling audiences that he has learned considerably more about terror since taking office last month.","Trump and his top aides are well aware that his travel ban would benefit from public approval, so Trump made the case Wednesday that he knows more about terrorism than most. He suggested that Americans -- at least those who don't get classified briefings -- don't understand the terror threat against the United States. ""Terrorism is a tremendous threat, far greater than people in our country understand,"" Trump told a gathering of sheriffs in a Washington hotel. Seemingly hinting at information gleaned from his classified briefings, the President added: ""Believe me. I've learned a lot in the last two weeks, and terrorism is a far greater threat than the people of our country understand."" Ari Fleischer, who served as Bush's White House press secretary during 9/11, said all presidents use ""realistic, worse-case scenarios"" to push their agendas. He cautioned the tactic could be abused and result in undermining an administration. ""Like anything, you can go too far. You can exaggerate, you can get facts wrong, you can hype it to a degree where you lose credibility,"" he said. ""But it is been a time honored tradition in American politics to use a worst-case scenario to drive an agenda."" It's also a tactic that's worked for Trump. Throughout the 2016 campaign, Trump urged his supporters to worry about terror and pushed them to do so by painting the world as an increasingly dangerous place. ""People are scared,"" Trump said in his June Republican National Convention acceptance speech. ""The attacks on our police, and the terrorism in our cities, threaten our very way of life. Any politician who does not grasp this danger is not fit to lead our country."" More Americans said terrorism was a pressing concern in 2016 than any point since 2003. According to a CNN poll released in 2016, 71% of Americans said further acts of terrorism are very or somewhat likely in the United States over the next several weeks, a number that has not been that high since March 2003. The strategy Trump's strategy as President is twofold. Alarmist language could help sell the travel ban to a skeptical public. Trump is also suggesting he knows more about the need for the ban than the judges overseeing the legal challenges, who are not privy to confidential briefings. Americans are largely split on Trump's executive order, which bars citizens of seven Muslim-majority countries from entering the US for 90 days, all refugees for 120 days and indefinitely halts refugees from Syria. Voters generally disapprove of key aspects of Trump's order, according to a Quinnipiac University poll out Wednesday. It found 51% of the public oppose suspending travel to the US for 90 days from seven countries, 60% oppose suspending all refugee immigration for 120 days and 70% oppose indefinitely suspending the Syrian refugee program. Trump's order went before a 9th Circuit Court of Appeals three-judge panel on Tuesday where lawyers from Trump's Justice Department squared up against the states of Washington and Minnesota. The court is expected to rule on Trump's order by the end of the week. The President knocked the arguments against his travel ban Wednesday, telling the same group of sheriffs that ""even a 'bad high school student' "" could understand the language of his order and find in his favor. Words of reassurance In contrast, after high-profile attacks in San Bernardino and Paris, President Barack Obama said: ""the threat from terrorism is real, but we will overcome it."" ""Let's be vigilant, but not afraid,"" Obama said in his final speech as President. ""(ISIS) will try to kill innocent people. But they cannot defeat America unless we betray our Constitution and our principles in the fight."" Even George W. Bush, whose administration did, at times, stoke fear in the run up to the Iraq War and around homeland security, was measured in the face of the 9/11 attacks. ""Now, the American people have got to go about their business. We cannot let the terrorists achieve the objective of frightening our nation to the point where we don't conduct business, where people don't shop,"" Bush said after 9/11, the deadliest terrorist attack in US history. Bush, in his final speech as president, said the United States was a nation ""that inspires immigrants to risk everything for the dream of freedom."" ""This is a nation where citizens show calm in times of danger, and compassion in the face of suffering,"" he said. A good example of Bush using fear: His push to establish the Department of Homeland Security in 2003. At the time, Fleischer said, Bush would regularly read his morning ""threat matrix"" -- a document about produced by the Department of Homeland Security on possible threats -- and use it publicly at times to push his plan to fight terrorism. ""With a vast nation to defend, we can neither predict nor prevent every conceivable attack,"" Bush said before establishing the new government agency. ""And in a free and open society, no department of government can completely guarantee our safety against ruthless killers, who move and plot in shadows. Yet our government will take every possible measure to safeguard our country and our people.""", -680,2017/2/9,http://www.cnn.com/2017/02/09/politics/washington-democrats-republicans-congress/index.html,Washington's new lows,Washington (CNN)Washington has never been this bad.,"It's a refrain passed through history as successive generations bemoan the spite, division and dysfunction that defines their own political age. But as Donald Trump's presidency staggers to life, intense discord and fury are battering the capital. Capitol Hill is still reverberating from its latest political earthquake -- Tuesday night's startling vote by GOP senators to shut down Democrat Elizabeth Warren and prevent her from speaking on the floor for a debate over the confirmation of Sen. Jeff Sessions as attorney general. In a controversy laced with race and gender, Warren was censured by the GOP majority for reading a letter written by Coretta Scott King, widow of Martin Luther King Jr., opposing Sessions' nomination to a federal judgeship three decades ago. The incident became an instant political firestorm in a capital still getting used to Trump's young administration. But more fundamentally, the dispute underscored the profound -- and personal -- anger flowing through Washington in the aftermath of last year's election and reflects a nation torn in half by bitter political divides. Silencing Elizabeth Warren backfires on Senate GOP With the Senate poisoned, the House in the grip of a zealous GOP majority and a new president who only knows one political strategy -- all-out personal attack -- there is every reason to think the animosity will continue to boil. Some seasoned Washington observers are starting to believe that for once, Beltway nastiness really has hit a historic nadir. ""It has very seldom been worse,"" said Steven Smith, a congressional expert who wrote the 2014 book ""The Senate Syndrome"" about what he considers a period of rising parliamentary warfare in the chamber. There have, of course, been dark moments in Washington's legislative corridors, including a brutal beating of a Massachusetts senator in the Senate chamber several years before the Civil War after he delivered a blistering attack on slavery. ""But it's hard to imagine a time when for actually year after year it has been so intensely partisan as it has been,"" said Smith, a professor at Washington University, St Louis. Trent Lott, the former Republican Senate majority leader, co-authored the book ""Crisis Point"" last year with former Democratic Senate Majority Leader Tom Daschle that warned congressional polarization was making governing impossible. He cautioned against overreacting to the current turmoil while admitting the antagonism in Washington is at dispiriting levels. ""I have been in this city now approaching 50 years. I came here in 1968. When I got to Washington, there were machine guns on the steps of the Capitol,"" Lott said in an interview. During that tumultuous period, he said, the protests of the Vietnam War era and later the trauma of the Watergate scandal were moments when politics appeared to be careening off the rails. But he added: ""I must admit that it's probably as rough right now as I have seen it in years in the Senate."" Americans delivering a verdict Americans are already delivering a verdict on their current leaders. Congress' job approval rating regularly dips below 20% over its apparent inability to get anything done. And Trump took office as the most unpopular new president since polling began. The Warren imbroglio was just the latest eruption of bitterness on Capitol Hill in recent months. Last June, for instance, civil rights hero Rep. John Lewis led a sit-in in the House as Democratic fury erupted when Republicans refused to allow a vote on gun control measures. Warren's moment galvanizes the left More recently, Utah Sen. Orrin Hatch dismissed arguments against Treasury Secretary nominee Steven Mnuchin as ""stupid."" That was a striking choice of words from one of the most gentlemanly senators. Last month, Democrats boycotted hearings for several Trump nominees, prompting Republican Majority Leader Mitch McConnell to say it was time for them to ""get over"" the fact they lost the election. And last week, Democratic Sen. Al Franken of Minnesota took a rhetorical swing at Texas Sen. Ted Cruz during a committee hearing when Cruz was not in the room, earning a rebuke from Republican Sen. John Cornyn, who called his charge ""untoward and inappropriate."" In one of the more symbolic jabs, Senate Democratic Leader Chuck Schumer voted against McConnell's wife, Elaine Chao, in her confirmation vote to become transportation secretary. Such spats might not get a second look in many walks of life. But they are extraordinary in the Senate, which prides itself on a level of decorum that seems anachronistic in the modern age. What is so notable about the recent political ugliness is not that it reveals political differences. It's the personal nature of the affronts that seems new. Former Sen. Ted Kaufman, who spent decades working for then-Sen. Joe Biden and succeeded him as Delaware senator, says the mood in Washington has deteriorated since he left the chamber in 2009. He lays a hefty share of blame for the hyper partisanship cleaving Washington at the feet of the new President. ""The President is to this day the moral leader of the country,"" Kaufman said, warning that Trump's propensity to personally attack his opponents would lower the tone further in the wider political debate. ""It is going to become okay not just in the Senate but throughout the country."" Something quintessential is being lost The sour personal interaction on the Hill has some senators worried that something quintessential is being lost in the chamber even as they often blame the other side for the worst transgressions. ""I'm always worried about the breakdown in civility,"" said Sen. Tom Udall, whose father and uncle were congressmen and whose cousin was also a senator. ""I come from a family where my father and my uncle were champions of civility, of building consensus and I hate all of this."" Republican Sen. Roger Wicker of Mississippi blamed the discord on a demoralized Democratic Party. The epic showdown over presidential power and American identity ""I've never seen the losing party in a national election exhibit this level of disappointment,"" he told CNN. Democrats would counter that their candidate, Hillary Clinton, easily won the popular vote in the presidential election and that Trump has shattered most conventions on how presidents should behave. Trump won the White House with an abrasive promise to incite disruption and to destroy the political elites he blames for what he sees as a national crisis. So he's unlikely to be a peacemaker. Trump lambasted Washington lawmakers on both sides of the aisle in his searing inaugural address on January 20. ""We will no longer accept politicians who are all talk and no action -- constantly complaining but never doing anything about it,"" he said. Hardly serene before Trump But to blame the new president entirely for the dysfunction would be unfair. Washington was hardly serene before Trump's arrival on the scene. Smith believes the combination of emboldened party leaders, a more partisan political environment fanned by outside influences on lawmakers and the growing homogeneity of political parties that has seen cross-party coalitions disappear have added up to a moment of fevered confrontation on Capitol Hill. ""Really over three or four decades the two parties in the Senate have engaged in an intensifying parliamentary war. It involves minority obstruction to majority action on legislation,"" he said. ""And it involves the majority response that means cracking down on the minority whenever it can."" And there's every indication the mood is going to get a lot worse. In recent months, simmering fury on Capitol Hill was exacerbated by the GOP's refusal to even give a hearing to Judge Merrick Garland, former President Barack Obama's pick for the Supreme Court. The impasse leave Democrats in no mood to help speed the path of Trump's pick for the same seat, Neil Gorsuch. Now the GOP is considering the ""nuclear option"" -- a rules change that would incite Democratic incandescence -- to beat a possible filibuster with only Republican votes. Democrats, under pressure pressure from liberals who have experienced a political awakening since Trump's election, are also in a mood for revenge, believing the GOP handcuffed Obama's presidency with endless obstruction. And they believe the administration is rushing through some of the most controversial Cabinet nominees in recent history and thwarting their attempts to fully scrutinize them. Absent some kind of partisan realignment in the years to come, it seems unlikely that this generation of Washington politicians will be the last to lament the partisan swamp in which they swim.", -681,2017/2/9,http://www.cnn.com/2017/02/09/politics/donald-trump-neil-gorsuch-democrats/index.html,Trump falsely accuses senator of misrepresenting Gorsuch criticism,"Washington (CNN)President Donald Trump falsely accused a Democratic senator Thursday of misrepresenting his Supreme Court nominee's words, according to several familiar with the incident.","Sen. Richard Blumenthal said Wednesday that Judge Neil Gorsuch, Trump's nominee, told him he found Trump's attack on a federal judge on Twitter ""disheartening"" and ""demoralizing."" Within a half-hour, Gorsuch spokesman Ron Bonjean, who was tapped by the White House to head communications for Gorsuch, confirmed that the nominee, Gorsuch, used those words in his meeting with Blumenthal. Several other senators, including Republican Sen. Ben Sasse of Nebraska, later relayed similar accounts of Gorsuch forcefully criticizing Trump's public attacks on the judiciary branch. Supreme Court nominee Gorsuch calls Trump's tweets 'disheartening' And on Thursday, Blumenthal said on MSNBC Gorsuch specifically told him he ""should feel free to mention what I said about these attacks being disheartening and demoralizing."" But none of that stopped Trump from firing off a shot against Blumenthal -- and at the same time raising questions about the coherence of the White House's messaging. Supreme Court nominee Gorsuch calls Trump's tweets 'disheartening' ""Sen. Richard Blumenthal, who never fought in Vietnam when he said for years he had (major lie), now misrepresents what Judge Gorsuch told him?"" Trump tweeted Thursday morning. Gorsuch's criticism came in response to Trump's recent criticism of federal judges who have ruled against his immigration ban or appear poised to do so, in particular in reference to one of the President's tweets slamming one of those judges as a ""so-called judge."" ""The opinion of this so-called judge, which essentially takes law-enforcement away from our country, is ridiculous and will be overturned!"" Trump tweeted last Saturday. On Wednesday, Trump pressed forward with his criticism, arguing that the judiciary has become too political and suggesting that judges on the 9th Circuit Court of Appeals might rule against his appeal to reverse a temporary stay on implementing his travel ban because of political considerations, instead of the law. Blumenthal stood by his accounting of Gorsuch's comments, telling CNN's Chris Cuomo on ""New Day"" Thursday morning he ""absolutely and accurately"" stated what Gorsuch told him. ""I think that the President needs to hear from Judge Gorsuch about exactly what he is saying to myself and Senate colleagues,"" Blumenthal said. ""Maybe he simply hasn't been informed and that's the reason for his tweet."" Former GOP Sen. Kelly Ayotte, who is helping shepherd Gorsuch's nomination on the Hill said in a statement Thursday Gorsuch has told senators ""he finds any criticism of a judge's integrity and independence disheartening and demoralizing."" Ayotte added the judge has made clear he ""could not comment on any specific cases and that judicial ethics prevent him from commenting on political matters."" Republican Sen. Ben Sasse of Nebraska also confirmed Thursday that Gorsuch criticized Trump's attacks on the federal judge in a meeting with him as well. Sasse said Gorsuch ""got pretty passionate"" about the topic, particularly when he asked Gorsuch about Trump's ""so-called judge"" tweet. ""This is a guy who welled up with some energy. He said any attack on any brothers or sisters of the robe is an attack on all judges. He believes in an an independent judiciary,"" Sasse said Thursday morning on MSNBC. Military service Trump's dig at Blumenthal's military service is a reference to Blumenthal's past misrepresentations about his service during the Vietnam era. Blumenthal obtained multiple military deferments to avoid getting drafted into the Vietnam War and ultimately landed in the Marine Corps Reserve and never deployed to Vietnam, though he claimed multiple times he had served in Vietnam. Blumenthal apologized for misrepresenting his service in 2010. While Blumenthal enlisted in the Marine Reserve after multiple deferments, Trump -- who was also eligible for the draft during the Vietnam War -- never enlisted, instead obtaining multiple student deferments and ultimately a medical deferment for a bone spur to avoid the military draft. Democrats and Gorsuch Sen. Chris Coons said in his personal meeting with Gorsuch, he plans to ask the nominee about his commitment to judicial independence given some of the President's recent comments about judges. ""I don't think it's constructive for President Trump to weigh in on this and to level accusations against sitting senators,"" the Delaware Democrat told CNN's Alisyn Camerota on ""New Day."" ""I frankly think the more he stays out of this the better for his judicial nominee."" ""But this simply highlights why judicial independence is going to be so important for me and for other Senators as we go through the process of meeting Judge Gorsuch and considering whether or not he should serve on the Supreme Court,"" he added. Trump's Thursday tweet could complicate the upcoming hearings for Gorsuch, who is certain to face questions about Trump's tweets from Democrats. Liberals, already concerned with Gorsuch's record, have also asked how he will demonstrate independence from the President. The President is also set to meet with red state Democrats for lunch, in hopes of wooing their support for Gorsuch. CNN's Ashley Killough, Jeff Zeleny and Eugene Scott contributed to this report.", -682,2017/2/9,http://www.cnn.com/2017/02/09/us/arizona-guadalupe-garcia-de-rayos-protests/index.html,Mother deported in Arizona immigration case that sparked protests,(CNN)[Breaking news at 1:24 p.m.],"Guadalupe Garcia de Rayos, a mother of two in Arizona, has been deported to her native Mexico, Carlos Garcia, director of the advocacy organization Puente Arizona, said Thursday. Garcia de Rayos was taken into custody Wednesday and ordered to be deported during her yearly check-in with the US Immigration and Customs Enforcement office in Phoenix. Immigration officials said she was detained ""based on a removal order issued by the Department of Justice's Executive Office for Immigration Review which became final in May 2013."" [Original story, published 11:39 a.m.] Guadalupe Garcia de Rayos, a mother of two, said a prayer before her yearly check-in with the US Immigration and Customs Enforcement office in Phoenix. But her meeting Wednesday with immigration officials ended differently than others over the last eight years: She was taken into custody and ordered to be deported. ""Lupita has been doing yearly check-ins with ICE and nothing happened,"" said Lucy Sandoval, an activist who has been working with Garcia de Rayos' family. ""But this is a different time."" Immigration advocates said they believe the woman's detention reflects the Trump administration's hard line on illegal immigration. She could be the first Arizonan to be deported under President Donald Trump's new executive order focused on removing undocumented immigrants with a history of arrests, Garcia's attorney told CNN affiliate KNXV-TV. Any undocumented immigrant convicted or simply charged with a crime who hasn't been adjudicated could be deported under a new Trump administration policy announced last month. Under the Obama administration, only undocumented immigrants convicted of a felony, serious misdemeanor or multiple misdemeanors were considered priorities for deportation. In 2008, Garcia de Rayos was arrested in a workplace raid, convicted of felony impersonation and served six months in ICE detention before being released later that year, according to CNN affiliate KPHO/KTVK-TV. Originally from Mexico, she was in the country illegally. Immigration officials said she was detained ""based on a removal order issued by the Department of Justice's Executive Office for Immigration Review which became final in May 2013."" ""Relevant databases indicate Ms. Garcia De Rayos has a prior felony conviction dating from March 2009 for criminal impersonation,"" the ICE statement said. Activists said the woman's conviction stemmed from a false Social Security card she used for employment. 'She wanted to confront this' Garcia de Rayos prayed before her meeting Wednesday with ICE, Sandoval said. Activists warned her of the possibility of her detention and offered her sanctuary, but she decided to show up, Sandoval said. ""She wanted to confront this,"" the activist said. ""She was brave. ... She's a woman of faith. Yes, they were praying. They were hopeful that there would be some consciousness and some heart."" On Wednesday evening, seven people were arrested outside the Phoenix ICE office when protesters attempted to block an agency van from taking Garcia de Rayos away. It was unclear if she was to be deported immediately or if she would be held at a detention center. Wednesday's protests were mostly peaceful, but police said on Twitter that ""despite repeated warnings, some engaging in criminal acts"" refused to stop. Garcia de Rayos' husband and teenage children joined the protesters outside ICE headquarters. Asked what she would ask Trump if she could, Garcia de Rayos' daughter Jaqueline told KNXV: ""I'd ask him, 'Why he would want to take her from me?' She hasn't done anything wrong and I'm not scared of him."" Rights group blames Arpaio's crackdown Immigrant rights group Puente Arizona said that Garcia de Rayos is a victim of the policies of former Maricopa County Sheriff Joe Arpaio. Enforcing identity theft laws was one of Arpaio's most well-known tools to crack down on illegal immigration in the border state. Puente sued Arpaio, saying the workplace raids -- such as the one where Garcia was arrested nine years ago for using a fake Social Security number -- were unconstitutional and amounted to racial and ethnic profiling. It lost the case on appeal, but Arpaio disbanded the task force that conducted the raids. A crackdown on illegal immigration The immigration executive orders signed by Trump could amount to a vast expansion of authority for individual immigration officers and a dramatic increase in efforts to detain and deport undocumented immigrants. The order lays out a series of categories of undocumented immigrants that immigration law enforcement officials should prioritize for removing from the country, a reaction to what was criticized by the right as lax enforcement of immigration law by President Barack Obama. The Obama administration had prioritized expulsion of undocumented immigrants who threatened public safety or national security, had ties to criminal gang activity, committed serious felony offenses or were habitual misdemeanor criminal offenders. Trump's order goes far beyond that, using a sweeping definition of ""criminal"" and giving a single immigration officer the ability to make judgments on threats to public safety. The order says the priority will be removing deportable immigrants who ""have been convicted of any criminal offense; have been charged with any criminal offense, where such charge has not been resolved; have committed acts that constitute a chargeable criminal offense; have engaged in fraud or willful misrepresentation in connection with any official matter or application before a governmental agency; have abused any program related to receipt of public benefits; are subject to a final order of removal, but who have not complied with their legal obligation to depart the United States; or in the judgment of an immigration officer, otherwise pose a risk to public safety or national security.""", -683,2017/2/9,http://www.cnn.com/2017/02/08/world/venezuela-passports-investigation/index.html,Venezuela may have given passports to people with ties to terrorism,Click here to read this article in Spanish/Lee este art��culo en espa?ol,"That's because the former legal adviser to the Venezuelan Embassy in Iraq is revealing secrets he says his government doesn't want disclosed. ""I'm concerned about my safety and my family's safety everywhere I go,"" Lopez said as he walked the cobble-stoned streets of Toledo. Lopez, 41, says he reported what he says was a scheme to sell passports and visas for thousands of dollars out of the embassy and repeatedly turned down offers to get a cut of the money. But it was the response from his government -- which has denied his allegations -- that surprised him the most. CNN and CNN en Espa?ol teamed up in a year-long joint investigation that uncovered serious irregularities in the issuing of Venezuelan passports and visas, including allegations that passports were given to people with ties to terrorism. The investigation involved reviewing thousands of documents, and conducting interviews in the U.S., Spain, Venezuela and the United Kingdom. One confidential intelligence document obtained by CNN links Venezuela's new Vice President Tareck El Aissami to 173 Venezuelan passports and ID's that were issued to individuals from the Middle East, including people connected to the terrorist group Hezbollah. The accusation that the country was issuing passports to people who are not Venezuelan first surfaced in the early 2000s when Hugo Chavez was the country's president, interviews and records show. A Venezuelan passport permits entry into more than 130 countries without a visa, including 26 countries in the European Union, according to a ranking by Henley and Partners. A visa is required to enter the United States. Over the course of the CNN investigation, Lopez provided documents that show he repeatedly told Venezuelan officials about what he discovered. But he said instead of investigating his allegations, the government targeted him for disclosing confidential information. U.S. officials were also made aware of his findings. ""You cannot be a cop, and a thief at the same time,"" Lopez said. ""I decide to be a cop and do the right thing."" Doing the right thing has cost him. Unwelcome surprise It didn't start out that way. Lopez, a lawyer who worked as a police officer in Venezuela, said he thought becoming a diplomat was a great career opportunity, which would also allow him to serve his country. With that in mind, he moved to Baghdad to start his new life at the Venezuelan Embassy. But, he recalled, he got an unwelcome surprise on his first day in July 2013. His new boss, Venezuelan Ambassador Jonathan Velasco, gave him a special envelope, he said. ""He gave me an envelope full of visas and passports,"" Lopez recalled. ""He told me, 'Get this, this is one million U.S. dollars.' I thought it was like a joke. Then he told me here people pay a lot of money to get a visa or a passport to leave this country."" About one month later, Lopez said he realized it was no joke. An Iraqi employee of the embassy, who was hired to be an interpreter, told him she had made thousands of dollars selling Venezuelan passports and visas, he said. And he could make a lot of money, too. But Lopez said he told her it was wrong and he refused. The employee pressed the issue, telling him there were thousands of dollars to be made, he said, even discussing an offer to sell visas to 13 Syrians for $10,000 each. And, Lopez, said, she told him he could get a cut of the money, too. Again, he said he refused. ""I suspect it might be terrorists; that's why I reject, of course, immediately,"" Lopez said. And he said it just got worse. Lists of names Lopez said he was stunned when he found a document inside the embassy. It was a list of 21 Arabic names with corresponding Venezuelan passport numbers and Venezuelan identification numbers. A Venezuelan immigration official told CNN that a cross-check of the passport numbers indicated that the passports are valid and match the names on the list Lopez found -- meaning the people on the list could be able to travel using those passports. But incredibly, a publicly available database in Venezuela examined by CNN shows 20 of the 21 identification numbers are registered to people with Hispanic names -- not the Arabic names listed on the passports. Lopez kept investigating what was going on inside the embassy. He said he even found the case of a convicted drug dealer with an Iraqi identification certificate that appears to show he was born in Iraq. But the man had a Venezuelan passport that said he was born in Venezuela. He kept evidence and notes of what he found. Concerned that the passport and visa scheme was continuing without his knowledge, Lopez investigated the embassy employee who he said had offered to sell passports. He took photos of her desk where he says he found the embassy's official stamp, used to authenticate visas, as well as sheets of papers printed with the Venezuelan government seal. He eventually fired the employee. Lopez did not have any other documents that would confirm the allegations against her. The employee did not respond to repeated requests from CNN for comment. In April 2014, only nine months after he started the job, he emailed a report to Ambassador Velasco about the alleged selling of passports and visas. By then, he said he was convinced that Velasco knew about what was going on inside the embassy. ""He's been there since 2008,"" Lopez said. ""How could he (have) been there so long, couldn't notice that?"" He said Velasco did nothing and even threatened to fire him. By 2015, frustrated that no one would investigate, he took what he found to Delcy Rodriguez, Venezuela's foreign minister. His emailed report said there was ""fraudulent issuing of visas, birth certificates and Venezuelan documents."" He said nothing happened. Going to the FBI Eventually, with nowhere else to turn, Lopez contacted an FBI official at the U.S. Embassy in Madrid. The two met at a restaurant across the street from the embassy, and the official sent Lopez's information to FBI headquarters in Washington, D.C., a law enforcement source said. The FBI would not comment about what happened with the information. For Lopez, it was his final attempt to get something done. But it was too late. By the end of 2015, the Venezuelan government accused Lopez of ""abandoning his post"" and removed him. A police official showed up at his home in Venezuela with a document that said he was under investigation for revealing ""confidential documents or secrets."" Looking for answers In an email, Velasco strongly denied Lopez's allegations. ""This embassy is ready open to be audit [sic] and investigated for any international organization and intelligent [sic] Services as well, I don't have nothing to hide or fear. I be sure [sic] that under my duties this embassy don't never [sic] and ever sell Venezuelan nationalities, this will be a joke for all the international security organization [sic] and we already cooperate with the (Iraqi) government and international intelligent [sic] service,"" the email read in English. In an attempt to get answers, a team from CNN en Espa?ol traveled to Caracas last June. In a letter, the government restricted CNN's coverage to stories related to tourism, weather, alternative energy sources and relations among the different government institutions in Venezuela. Rodriguez, the foreign minister, ignored reporter Rafael Romo when he tried to question her at a press event. A government official told the CNN en Espa?ol team that any questions about the passport allegations would be grounds for expulsion from the country. On a second visit to Caracas last August, a CNN en Espa?ol producer and videographer were forced to leave the country after Venezuelan authorities impounded CNN camera equipment at the airport. Last September, Rodriguez represented Venezuela at the United Nations General Assembly. Inside the UN, she again ignored CNN's attempt to ask her questions. Finally, CNN was able to speak with her as she was walking with a small group on the sidewalk across from the UN. As she walked away from the crews, she said, ""You're going to hurt yourself for following the lies of a person who doesn't know what he's talking about."" She said allegations of selling passports and visas were ""totally"" false. But it's not the first time allegations about Venezuelan passports have been made public. Links to terror U.S. lawmakers heard reports about Venezuelan passport fraud during congressional hearings as far back as 2006. In fact, a congressional report warned, ""Venezuela is providing support, including identity documents that could prove useful to radical Islamic groups."" And a state department report at the time also concluded that ""Venezuelan travel and identification documents are extremely easy to obtain by persons not entitled to them."" Roger Noriega, the former US ambassador to the Organization of American States and former assistant secretary of state for Western Hemisphere affairs, said in prepared remarks before a congressional in 2012 that ""Venezuela has provided thousands of phony IDs, passports and visas to persons of Middle Eastern origin."" Noreiga, who is now managing director of Vision Americas and works for a conservative think tank, told CNN that evidence began to emerge in 2003 in Venezuela that passports were being issued to non-Venezuelans. ""I absolutely believe, and I state it so publicly, that if we do not get our arms around this problem, people are going to die, either our allies or our own personnel or facilities are going to be attacked by networks abetted by the Venezuelans,"" Noriega said. The U.S. State Department declined CNN's request late last year for an interview, instead emailing a link to its 2015 country terrorism overview. That report concluded, ""There were credible reports that Venezuela maintained a permissive environment that allowed for support of activities that benefited known terrorist groups."" A 2013 confidential intelligence report from a group of Latin American countries obtained by CNN says that from 2008 to 2012, 173 individuals from the Middle East were issued Venezuelan passports and IDs. Among them were people connected to the terrorist group Hezbollah. The official who ordered the issuing of the passports, the report said, is Tareck El Aissami, who was appointed vice president of Venezuela in January. He is the former minister in charge of immigration as well as a governor. El Aissami ""took charge of issuing, granting visas and nationalizing citizens from different countries, especially Syrians, Lebanese, Jordanians, Iranians and Iraqis,"" the report said. He did not respond to multiple requests for comment. Another high-profile Venezuelan linked to terrorism is Ghazi Nasr Al-Din, a former Venezuelan diplomat who worked in the country's embassy in Syria. He is ""wanted for questioning"" by the FBI for ""his fundraising efforts"" with Hezbollah contributors, according to a notice on the FBI website. The bureau confirmed that the information was still active, but would not comment further. U.S. officials say he has ""facilitated the travel"" of Hezbollah members to and from Venezuela, according to a 2008 press release from the U.S. Treasury Department. Leaks in the process What allegedly happened in Iraq is no surprise to General Marco Ferreira, who was in charge of Venezuela's immigration office in 2002. Today, Ferreira is living in Miami after being granted political asylum after he supported a 2002 failed coup against Venezuela's then-President Hugo Chavez. He told CNN that he personally witnessed corrupt senior officials ordering passports for people who were not citizens when he was running the department. He added anyone could get a passport at a local office because each worked independently. He said it was ""very easy"" to assume someone else's identity. ""One of the problems was the corrupted people that was working in that place,"" Ferreira said. ""The second one was the fragility of the system because everything was very old and they have a lot of leaks in the process."" He said it was ""very, very easy to go and be Venezuelan, or pretend being born in Venezuela."" Asked about what Misael Lopez described as the alleged passport and visa-selling operation at the Venezuelan Embassy in Iraq, he said he was not surprised. As for Misael Lopez, he's living modestly in Spain, where he also has citizenship; he knows he can't go back to Venezuela. With his safety always an issue, he still says he had to tell his story. And going public, he hopes, will help protect him and his family. ""I did the right thing and I'm proud it,"" he said. ""No regrets at all.""", -684,2017/2/9,http://www.cnn.com/2017/02/09/middleeast/russian-airstrike-accidentally-kill-3-turkish-soldiers/index.html,Russian airstrike mistakenly kills 3 Turkish soldiers in Syria,"(CNN)Three Turkish soldiers were mistakenly killed and 11 were injured in a Russian airstrike near the Syrian city of al-Bab, the Turkish armed forces said Thursday.","Russian state-run news agency Tass reported Russian President Vladimir Putin held a phone call with Turkish President Recep Tayyip Erdogan and ""conveyed his condolences over a tragic accident causing the death of several Turkish military servicemen. ..."" A Russian Ministry of Defense statement said fighter jets were performing a combat mission to destroy ISIS militants' position in the area. The statement said Gen. Valery Gerasimov, chief of the General Staff of the Russian armed forces, expressed his condolences to Turkish Gen. Hulusi Akar for the men ""killed as a result of unintended attack by a Russian plane."" ""The heads of the General Staff agreed to a closer coordination of the joint actions and to exchange information about the situation on the ground,"" the statement said. Turkey and Russia have clashed over other deadly incidents involving the military. In November 2015, Turkey shot down a Russian fighter jet, killing one pilot and injuring another. The two nations disagreed on whether the plane had violated Turkish airspace. Tensions were further strained in December when the Russian ambassador to Turkey was assassinated at an art gallery in Ankara. Ambassador Andrey Karlov's shooting was captured in real time in photos and video that quickly spread through the Internet worldwide. But Turkey and Russia have also worked to broker ceasefires in the Syrian civil war.", -685,2017/2/9,http://www.cnn.com/2017/02/08/world/new-dead-sea-scrolls-cave-discovered/index.html,New Dead Sea Scrolls cave discovered,"(CNN)Excavations on the storied Judean cliffside revealed a new Dead Sea Scrolls cave, full of scroll storage jars and other antiquities, the first such discovery in over 60 years.","The discovery upends a decades-old theory in the archaeological community that Dead Sea Scrolls were only found in certain caves at the Qumran cliffs, which are managed by Israel in the West Bank. ""Until now, it was accepted that Dead Sea Scrolls were found only in 11 caves at Qumran, but now there is no doubt that this is the 12th cave,"" said Dr. Oren Gutfeld, one of the project's lead archaeologists. Pottery shards, broken scroll storage jars and their lids -- even neolithic flint tools and arrowheads -- littered the cave's entrance. Farther in, there appeared to be a cave-in. After a bit of work with a small pickax, the team made a monumental find: an unbroken storage jar with a scroll. It was rushed to Hebrew University's conservation lab, where it was unfurled in a protected environment. It had no writing; it was placed in the jar to prepare it for writing. But the effort was not in vain. Scientists soon discovered the cave-in was intentional and it hid a tunnel about 16-20 feet in length. ""At some point hidden in the tunnel, we found a few [three] broken storage jars with the lid,"" said Gutfeld. The team also found the cloth coverings and the leather strap that bound the scrolls the jars once held. The team thinks looters ransacked the cave around the 1950s, pointing to pickaxes left in the tunnel as evidence. ""I imagine they came into the tunnel. They found the scroll jars. They took the scrolls,"" said Gutfeld. ""They even opened the scrolls and left everything around, the textiles, the pottery."" Over the last few years, researchers believe Dead Sea Scroll fragments made their way onto the antiquity black market. According to Gutfeld, that resurgence led authorities and researchers to embark on the task of surveying all the caves at Qumran in the Judean desert. This is likely just the first in a series of Dead Sea Scroll discoveries, said Gutfeld; they have hundreds of caves and many years to go. ""It's a big project. It's a big operation,"" he said by phone. ""We are very optimistic after 60 years we still find new caves with materials that shed new light on the scrolls."" According to a news release from the Hebrew University of Jerusalem, the excavations are part of ""Operation Scroll,"" a joint effort by the university, the Israel Antiquities Authority, the Israel Nature and Parks Authority and the Civil Administration of Judea and Samaria.", -686,2017/2/9,http://www.cnn.com/2017/02/09/health/india-boy-with-four-legs-surgery/index.html,"Indian boy born with 4 legs, 2 penises recovering after surgery",New Delhi (CNN)An Indian boy born with four legs and two penises is set to return home after a successful surgery.,"Doctors at Bangalore's Narayana Health City described the complexities of the case to local reporters at a news conference Thursday. The boy, who has not yet been named, was born with polymelia -- a rare congenital birth defect that results in extra limbs or organs, which are usually deformed. ""These are problems that happen from time to time and (are) irrespective of socio-economic status,"" said Dr. Sanjay Rao, a senior consultant pediatric surgeon at Narayana Health City who performed the procedure. Rao told CNN the boy's parents gave him permission to discuss the case publicly. 'Parasitic twin' Polymelia is a genetic disorder, which can be caused by chromosomal abnormalities or environmental agents, according to a paper in the Journal of Clinical Imaging Science. The condition can occur when an embryo develops into conjoined twins, but then one twin stops growing but continues to develop extra limbs or organs, which remain attached to the other twin. This was the case for the boy in Bangalore, according to Rao, and it's referred to as ""parasitic twins,"" according to a press release from the hospital. The presence of an extra twin made the surgery, which took place last week, all the more complex, Rao told CNN. The procedure required a team of 20 doctors, nurses and technicians. ""Because the anatomy is not typical, a lot of work had to be done before the operation to clearly define the anatomy, what structures are shared between the parasitic twin and the main baby, the blood vessels need to be identified to control blood loss so there was a lot of pre-operative work to build a road map that would help us during the operation,"" he said. The exact number of cases of polymelia to date, or the likelihood of them occurring, is unknown but Rao said it's uncommon. It's the fourth case the hospital has dealt with in the past decade-- including one in 2008 on a baby girl, Lakshmi Tatma, born in the northern state of Bihar with four legs and four arms. Tatma's story garnered widespread attention. Thousands of religious devotees flocked to see her because they believed she was a reincarnation of Laxmi, the four-armed Hindu goddess of wealth. The journey The boy was born on January 21 in a government-run rural health center in Puladinni village, located in the southern Indian state of Karnataka. Though the birth went smoothly, doctors realized the extra limbs meant the boy would immediately need specialized medical care. He was transported to a local hospital before traveling over 200 miles with his parents to Narayana Health City the day after he was born. The arduous journey took a severe toll on the infant; when he was admitted on January 24 -- at 3 days old -- he was dehydrated and required oxygen support. Superstitions Superstitions and stigma are often synonymous with cases like these in India, especially if the children represent Hindu deities -- like the case of the girl in Bihar. But the boy's parents, Lalitamma and Chennabasava, were quick to recognize that this was a medical condition that required immediate attention. ""Times are changing. Young parents are now more aware about superstitions,"" said Rao. The baby is expected to be discharged within the next week. His follow up care, like the corrective surgery, will be provided for free by Narayana Health City, something his father who works as a farmer is grateful for. There may be cosmetic issues going forward that could require minor procedures, but he'll have a normal childhood, Rao says.", -687,2017/2/9,http://www.cnn.com/2017/02/09/middleeast/israel-petach-tikvah-attack/index.html,"At least 8 injured as Palestinian opens fire on market near Tel Aviv, Israeli authorities say","Jerusalem (CNN)A Palestinian man went on a shooting and stabbing attack Thursday at a marketplace in the Israeli city of Petah Tikva, wounding at least eight people, Israeli authorities say.","The alleged gunman, a 19-year-old from the West Bank, was caught by members of the public and arrested by officers, according to police spokeswoman Luba Samri. Police call the assault a terrorist incident. Petah Tikva is in central Israel, just east of Tel Aviv. Emergency crews said they treated eight wounded people. Seven were listed as lightly injured; one was listed as moderately injured. One of the injured people is being treated in a hospital for stab wounds. This is a developing story.", -688,2017/2/9,http://www.cnn.com/2017/02/09/europe/russia-dissident-wife-blames-kremlin/index.html,Wife of Russian dissident blames Kremlin for husband's mysterious illness,"(CNN)A vocal critic of Russian president Vladimir Putin, who says he was poisoned in 2015, has awoken from a medically induced coma after being hospitalized in Moscow last week, his wife tells CNN.","It is the second time in two years that Vladimir Kara-Murza, 35, has been hospitalized in grave condition, and his wife, Evgenia, claims the Kremlin is to blame. ""The Russian government and President Putin are responsible for what happened to my husband two years ago, and now, one way or another, I'm not saying that they're the ones who did that, but they've created such a climate in our country, that actually encourages this kind of behavior,"" Evgenia said. CNN cannot independently confirm her claims, and Russia has denied any connection to Kara-Murza's illness. ""It's pure nonsense to make any connection of this unfortunate case with President Putin,"" Kremlin spokesman Dmitry Peskov told CNN. Doctors in the hospital where Kara-Murza is being treated say they still ""have no real idea"" what caused his illness, but agree that it was triggered by a ""toxic substance,"" his lawyer Vadim Prokhorov told CNN. He said he has no direct proof his client was poisoned. Doctors have diagnosed Kara-Murza with ""acute intoxication by an unidentified substance,"" Evgenia said, adding that the risks are now more serious due to his previous illness in 2015. Kara-Murza is still too weak and ill to speak, but has been communicating by blinking his eyes, Evgenia said. As of Thursday, he began breathing on his own. Evgenia 'terrified' every time husband returns to Russia Kara-Murza, who lives with his wife and three children in Virginia part-time, was in Russia to promote a documentary on the assassination of his late friend, the former leading opposition figure Boris Nemtsov. Nemtsov was shot to death on a bridge near the Kremlin as he walked home from a restaurant in February 2015. Kara-Murza became ill four months later. Evgenia told CNN that she is ""absolutely terrified"" every time her husband goes back to Russia to do opposition work, but that he is a ""Russian patriot"" committed to his cause. Deputy leader of the Freedom Party, Kara-Murza is also part of the Open Russia foundation, an organization of anti-Putin activists who call for open elections, a free press and civil rights reforms. 'My major organs began to fail' CNN spoke to Kara-Murza in 2015, months after his illness nearly killed him. ""I fell into a coma, all of my major organs began failing, one after another. It was the kidneys first, then the lungs, the heart, the liver,"" he said at the time. He said he believed his 2015 suspected poisoning was a politically motivated attack. ""Frankly there is no other possible reason,"" he said. ""I don't have any money dealings. I don't have any personal enemies. I didn't steal anybody's wife."" US lawmakers urge investigation Kara-Murza's hospitalization has triggered an outcry from US lawmakers. US Sen. Marco Rubio urged the White House and the State Department to question Russian authorities about the case. ""Vladimir Putin does not deserve any benefit of the doubt here, given how commonplace political assassinations and poisonings have become under his regime,"" said Rubio, a frequent Putin critic. ""I am praying that Kara-Murza's condition improves."" Speaking about Kara-Murza on Tuesday, US Sen. John McCain delivered a thinly-veiled rebuttal to recent comments by US President Donald Trump that appeared to draw a moral equivalence between the US and Russia. ""Vladimir (Kara-Murza) knew that Putin is a killer. And he's a killer. And he might very well be the next target. Vladimir knew there was no moral equivalence between the United States and Putin's Russia,"" said McCain, who has been a fierce critic of Trump's rhetoric on Russia. McCain's remarks were made after Trump appeared to defend Putin in an interview with Fox News host Bill O'Reilly, who described Putin as a ""killer."" ""There are a lot of killers,"" Trump said. ""You think our country's so innocent?"" Putin's spokesman called on Fox News to apologize. O'Reilly responded by telling the Kremlin to ""check in with me around 2023."" The incident comes amid chatter that a potential meeting between Trump and Putin may be on the cards. ""There's nothing certain,"" Peskov, the Kremlin spokesman, told journalists on a conference call Thursday. ""There is a common understanding that the priority can be and should be the fight against terrorism and the Islamic State. As for other issues, we will work on them after we understand the format of the meeting,"" Peskov said.", -689,2017/2/9,http://www.cnn.com/2017/02/08/europe/paris-protest-police-rape/index.html,Protests erupt in Paris suburb after alleged police rape,(CNN)Violence has erupted on the edge of Paris and spread to at least five nearby towns amid a public outcry over the alleged rape of a young black man by police.,"Several nights of clashes have broken out after four police officers purportedly forced a 22-year-old man to the ground, beat him, and anally raped him with a baton at a housing estate in the northern Paris suburb of Aulnay-sous-Bois. The officers were suspended pending an inquiry into accusations that they used excessive force while arresting the young man, identified only as Th��o, during an identity check last week. All four officers involved in the February 2 incident have been charged with aggravated assault, while one was also charged with rape, according to the Interior Ministry. Victim describes the incident Th��o said that he was walking with his headphones on when he was approached by the police. ""When I realized how violent their tone was, I said to myself 'they seem pretty serious.' So I stood against the wall, and then, one of the policemen beat me,"" Th��o told France's BFM television channel on Tuesday. ""I saw one of them take his baton and stick it into my bum. As soon as he did that, I fell on my belly. I felt weak. It was as if my body had given up on me. Then, they handcuffed me."" Th��o appealed for calm, telling BFM he had faith in the justice system. ""I call to calm my city because I love it very much,"" Th��o said from his hospital bed. ""Violence is not the way to support me. Justice will do its job."" 'Justice for Th��o' The incident has roiled the working class Paris suburb where Th��o was allegedly assaulted, igniting racial tensions. Another night of violence gripped Seine-Saint-Denis, a region northeast of Paris with a large migrant population, on Wednesday. Twenty-six people were arrested, a spokesperson for the local prefecture told CNN. A few miles away, near Paris' M��nilmontant metro station, several hundred demonstrators gathered to protest police violence. Authorities say 17 people were arrested in Aulnay-sous-Bois on Tuesday night, after protesters torched garbage bins and vehicles. Videos shared on social media showed clashes between riot police and youths as fires burned in the streets. Police fired warning shots into the air to disperse the crowd, according to French reports. On Monday, hundreds of peaceful protesters marched in the same northern suburb. Demonstrators carried banners reading ""Justice for Theo"" past a nearby building that had ""police, rapists"" written on it in graffiti. People shared images of the young man with the hashtag #JusticePourTheo on social media, and a photograph of Th��o with bruises under his eyes and a bandage on his cheek was also circulating online. Bruno Beschizza, the mayor of Aulnay-sous-Bois, released a statement about the violence on Facebook, saying that he was not worried about a repeat of riots in 2005, which were sparked by the death of two teenagers while being chased by police in the nearby neighborhood of Clichy-sous-Bois. ""Obviously we are angry,"" the Mayor's office said in a statement on Wednesday. ""Sometimes the anger was expressed peacefully, sometimes not."" Beschizza, who had called for a strong reaction from the government, said President Francois Hollande's visit to Aulnay-sous-Bois on Tuesday showed that the state supported the community. Hollande visited Th��o at the suburban hospital where he has been treated since the incident. In a photo shared by Hollande on Twitter, the President can be seen standing at Th��o's bedside. In the tweet, Hollande said Th��o ""reacted with dignity"" and urged him to trust in the justice system. Benoit Hamon, the Socialist presidential candidate, has demanded a diligent and transparent investigation. In a tweet he stated that police ""represent the Republic that protects"" and said that ""trust must urgently be restored."" Th��o: A fun-loving soccer fanatic Friends have described Th��o as a fun-loving person who never spoke out of hate. ""He is a sociable person, who loves to laugh with everyone,"" Hicham, who has played soccer with Th��o, told CNN. Th��o, who plays at the Institute of Private Football in Aulnay-sous-Bois, is a soccer fanatic. That athleticism runs in the family. Th��o's sister, Aur��lie, is a professional handball player on Le Havre AC, a French women's club. In an interview with BFM on Tuesday, Aur��lie said her brother is still in critical condition. It is still unclear what the consequences of the attack may be, she says, but doctors are talking about incontinence.", -690,2017/2/9,http://www.cnn.com/2017/02/09/health/dog-dna-death-penalty-eprise/index.html,DNA saves dog from death penalty,"(CNN)Jeb, a much-loved service dog for an elderly man, was locked up in animal control when the judge's verdict came in: He would be put to death for killing a neighbor's dog.","Jeb's owners, Penny and Kenneth Job of St. Clair, Michigan, couldn't believe that their sweet Jeb, the same gentle dog who helps Ken get up when he falls down, who lives peacefully with three other dogs, seven cats and a coopful of chickens, could ever harm another living being. So the family used a forensic technique often used for human defendants to save their dog from death row last fall. The perfect service dog Jeb Stuart Job stands hip-high, with a muscular frame, big dark eyes and a long black snout. He's had a rough two years on this Earth. In January 2016, when he wasn't quite a year old, he was found chained inside a shed in Detroit. His owner had died, and the rest of the family didn't want him. Kandie Morrison, a volunteer with a dog rescue agency, got the call. Once Morrison met Jeb, she thought he'd make the perfect service dog for her father; that's Kenneth Job. Job, 79, an Air Force veteran who owned a drywall business, has a neurodegenerative disease called Charcot-Marie-Tooth. He fell in love with the Belgian Malinois puppy. Dr. Karen Pidick, their veterinarian and neighbor in their rural Michigan town, trained Jeb to help Job stay steady on his shaky legs. The family was a happy one until eight months later. According to court testimony, on the morning of August 24, the Jobs' neighbor, Christopher Sawa, looked out his kitchen window and saw Jeb standing over the lifeless body of his own dog, Vlad. Vlad weighed 14 pounds. Jeb weighed about 90 pounds. Sawa ran out into his yard. He tried to give Vlad mouth-to-mouth resuscitation, but it was too late. The tiny Pomeranian was dead. Sawa called animal control and blamed Jeb. Animal control took the big dog into custody. The trial of Jeb Stuart Job On September 19, all parties gathered at district court in St. Clair County. If Judge Michael Hulewicz deemed Jeb a ""dangerous animal,"" the dog would be put to death. Sawa, the Jobs' neighbor for more than 30 years, testified about finding Jeb standing over his dead Pomeranian. ""It was horrifying. It was terrifying,"" he said, according to transcripts. CNN contacted the Sawas, who declined to comment. He said it wasn't the first time Jeb had scared him. ""I was afraid of the dog. The dog always barked,"" he said. Now, his beloved Vlad was gone. ""We've never had any children,"" he testified. ""The dog was like a child to us."" Job testified that Jeb had indeed gotten away from him that morning: He and the Jobs' other three dogs had run off in the opposite direction of the Sawa home, toward a house with a pond where they liked to swim. The Jobs' attorney, Edward Marshall, pointed to a lack of physical evidence linking Jeb to Vlad's death and questioned whether another large animal had killed Vlad. After all, Pidick, the neighborhood vet, had testified that an unfriendly stray dog had been spotted in the neighborhood, and foxes were known to live in the surrounding woods. In the end, the judge said Jeb met the legal definition of a dangerous animal, and he made what he said was a tough decision. ""I have no choice except to follow out the state law that the animal would be destroyed,"" Hulewicz said. ""I don't like to do this. I don't like it at all."" A lifesaving procedure That's when the Job family asked to have testing done to see whether Jeb's DNA matched the DNA in Vlad's wound. They said they hadn't asked for it sooner because they thought Vlad had been cremated and there would be no way to get his DNA. But at the trial, it came out that Vlad's body was in a freezer. The Jobs arranged to have swabs taken from Vlad's wound and the inside of Jeb's cheek. The samples were sent to the Maples Center for Forensic Medicine at the University of Florida College of Medicine. The process cost $416, according to the Jobs. On October 24, exactly two months after Jeb was taken into custody, AnnMarie Clark, a forensic DNA analyst at the center, sent in her findings: The DNA in the wound didn't match Jeb's DNA. ""Jeb is not the dog that killed (Vlad),"" Clark wrote. ""We were relieved. We were absolutely relieved,"" said Penny Job, Ken's wife. The DNA showed that another dog had killed Jeb, Clark told CNN -- but exactly who that dog is may forever be a mystery. Dogs have no rights Jeb was allowed to go home the following week, after his owners signed an agreement promising that they would make sure Jeb wouldn't leave the yard unleashed and that they would maintain a secure fence to keep their animals in the yard. The Jobs say Jeb came home a very different dog. They say that during his nine weeks in animal control, he went from 90 to 75 pounds, and he became scared and skittish. ""The dog was thin and sick,"" Penny Job said. ""And he lost all his social skills. He was afraid to go outside."" Jeb's weight wasn't taken when he entered and left animal control, said Steve Campau, a spokesman for the St. Clair County sheriff's office, which oversees animal control. ""We fed him a meal day,"" Campau said. ""Maybe he was overfed at home."" Campau also said some behavior changes are to be expected after an animal is released from spending nine weeks of spending 23 hours a day in a kennel that's 6 feet long by 3½ feet wide. ""Veterinarians say after a dog is in a kennel environment for an extended period of time, there's certainly going to be an adjustment period when the dog gets out,"" Campau said. Even now, more than three months after his return home, Jeb is still scared of strange men, his owners say. Still bitter that their innocent dog was nearly put to death, Jeb's owners wonder why they had to come up with the idea of DNA analysis. Why didn't the court do it before condemning Jeb to death? After all, that kind of testing is often done with human defendants. The answer is simple, according to David Favre, a professor at Michigan State University College of Law and editor in chief of the Animal Legal and Historical Center. Humans accused of a crime have rights under criminal due process. ""In a criminal prosecution, where you're putting a person in jail, we have the highest level of protection,"" Favre said. It's a different story with dogs. ""Dogs have no rights. They're property,"" Favre said. He wonders whether courts should reconsider and make DNA analysis a regular part of the process when a dog's life hangs in the balance. ""It's an easy thing to do. We just haven't thought of it in this context,"" he said. He applauds the Jobs for saving their pet. ""Now people will realize they can do this, that it's a tool,"" he said. ""They used a very creative defense.""", -691,2017/2/9,http://www.cnn.com/2017/02/09/health/embryo-skin-cell-ivg/index.html,Could we one day make babies from only skin cells?,"(CNN)In the not-so-distant future, research suggests, eggs and sperm may no longer be needed to make a baby -- at least not in the traditional way.","In 2016, scientists in Japan revealed the birth of mice from eggs made from a parent's skin cells, and many researchers believe the technique could one day be applied to humans. The process, called in vitro gametogenesis, allows eggs and sperm to be created in a culture dish in the lab. Adult cells, such as skin cells, can be reprogrammed to behave like embryonic stem cells and are then known as induced pluripotent stem cells. These cells can be stimulated to grow into eggs or sperm, which in turn are used to form an embryo for implantation into an adult womb. Though most scientists agree we're still a long way off from doing it clinically, it's a promising technology that has the potential to replace traditional in vitro fertilization to treat infertility. If and when this process is successful in humans, the implications would be immense, but scientists are now raising legal and ethical questions that need to be addressed before the technology becomes a reality. A replacement for IVF? In vitro gametogenesis, or IVG, is similar to IVF -- in vitro fertilization -- in that the joining of egg and sperm takes place in a culture dish. But with IVF, you have to collect eggs from the woman and sperm from the man, either surgically or non-surgically, said professor Alan Trounson of the Hudson Institute of Medical Research at Monash University in Australia. ""Or you can do egg or sperm donation or a combination of both."" Trounson believes IVG can provide hope for couples when IVF is not an option. This procedure can ""help men or women who have no gametes -- no sperm or eggs,"" said Trounson, a renowned stem cell scientist best known for developing human IVF with Carl Wood in 1977. Another potential benefit with IVG is that there is no need for a woman to receive high doses of fertility drugs to retrieve her eggs, as with traditional IVF. In addition, same-sex couples would be able to have biological children, and people who lost their gametes through cancer treatments, for instance, would have a chance at having biological children. In theory, a single woman could also conceive on her own, a concept that Sonia M. Suter, professor of law at George Washington University, calls ""solo IVG."" She points out that it comes with some risk, as there will be less genetic variety among the babies. ""Solo IVG -- unlike 'natural' reproduction -- increases the possibility of homozygosity (identical genes) for recessive genes, contributing to a greater risk of disease and disability,"" she wrote in a 2015 paper in the Oxford Academic Journal of Law and the Biosciences. She added that the risk is even greater than with cloning and although you could use genetic diagnosis to find disease in embryos before implantation, it wouldn't fully reduce the risk. This all contributes to the fact that IVG is much more complicated than one might think, and experts add that the process will be even more complex in humans than in mice. ""It's a much tougher prospect to do this in a human -- much, much tougher. It's like climbing a few stairs versus climbing a mountain,"" Trounson said. ""Gametogenesis (in a mouse) is much faster. Everything is much faster and less complicated than you have in a human. So you've got to make sure there's very long intervals to get you the right outcome. ... Life, gametogenesis, everything, is much, much briefer than it is in a human."" Most scientists are reluctant to commit to an exact time frame, but it's probably safe to say they're many years away. ""Most likely, we are one to two decades away from IVG being attempted in humans in a responsible, evidence-based, government-approved manner, but as we've seen with other new stem cell and reproductive technologies, practitioners don't always follow the rules,"" explained Paul Knoepfler, a prominent stem cell scientist at the University of California, Davis who writes a blog on stem cell research. 'Rogue biomedical endeavors' Knoepfler used the example of an unapproved and, he says, potentially dangerous three-person baby produced in Mexico in 2016 by a US doctor without FDA approval. Creating a three-person baby involves a process known as pronuclear transfer, in which an embryo is created using genetic material from three people -- the intended mother and father and an egg donor -- to remove the risk of genetic diseases caused by DNA in a mother's mitochondria. The mitochondria are parts of a cell used to create energy but also carry DNA that is passed on only through the maternal line. This process recently received approval in the UK, but it remains illegal in many countries, including the US. ""Because it seems rogue biomedical endeavors are on the increase, someone could try IVG without sufficient data or governmental approval in the next five to 10 years,"" Knoepfler said. ""IVG takes us into uncharted territory, so it's hard to say legal issues that might come up,"" he said, adding that ""even other more extreme technologies, such as cloning, of the reproductive kind are not technically prohibited in the US."" Legal and ethical challenges For IVG to be researched further, it will be necessary to perform IVF using the derived gametes and then to study the embryos in ways that would involve their destruction. ""At a minimum, federal funding could not be used for such work, but what other laws might come into play is less clear,"" Knoepler said. There are growing calls among researchers for regulators to revisit the ""14-day rule,"" an international agreement three decades old that says an embryo can't be maintained in culture longer than two weeks. The ""primitive streak"" -- a visible band of cells along the head to tail axis of the embryo -- appears on day 15. Some see the rule as essentially a moral compromise between researchers and those who believe that destroying embryos is murder. In several countries, the implantation of a fertilized egg is not allowed if it's been maintained longer than 14 days. Dr. Mahendra Rao, scientific adviser with the New York Stem Cell Foundation, explained that in the US, scientists can legally make sperm and oocytes (immature eggs) from other cells and perform IVF. But they would not be able to perform implantation, even in animals. He said there needs to be clarity that this rule doesn't apply to ""synthetic"" embryos scientists are building in culture, where there's no intention of implanting them. We may be more likely to see the first human IVG experiments performed in Asia, because laws are generally less restrictive there. The leading scientists are in Japan and China, according to George Daley, co-author of a recent editorial on the issue in the journal Science Translational Medicine. Daley and his co-authors highlight concerns over ""embryo farming"" and the consequence of parents choosing an embryo with preferred traits. ""IVG could, depending on its ultimate financial cost, greatly increase the number of embryos from which to select, thus exacerbating concerns about parents selecting for their 'ideal' future child,"" they write. With a large number of eggs available through IVG, the process might exacerbate concerns about the devaluation of human life, the authors say. Also worrying is the potential for someone to get hold of your genetic material -- such as sloughed-off skin cells -- without your permission. The authors raise questions about the legal ramifications and how they would be handled in court. ""Should the law consider the source of the skin cells to be a legal parent to the child, or should it distinguish an individual's genetic and legal parentage?"" they ask. As new forms of assisted reproductive technology stretch our ideas about identity, parentage and existing laws and regulations around stem cell research, researchers highlight the need to address these thoughts and have answers in place before making IVG an option.", -692,2017/2/9,http://www.cnn.com/2017/02/09/golf/tiger-woods-never-feel-great/index.html,Tiger Woods: 'I'll never feel great again',"(CNN)His comeback in limbo after pulling out of an event in Dubai, Tiger Woods has admitted he will ""never feel great again.""","The former world No. 1 withdrew because of back spasms after the first round of the Dubai Desert Classic, prompting speculation over the 41-year-old's ongoing fitness following 17 months out to recover from multiple back surgeries. ""I feel good, not great. I don't think I will ever feel great because it's three back surgeries, four knee operations,"" Woods told former R&A chief executive Peter Dawson in a video interview for Dubai's Vision Magazine at the Burj Al Arab hotel. ""I'm always going to be a little bit sore. As long as I can function, I'm fine with that."" ""Dark times"" Woods experienced ""dark times"" during his lengthy layoff and doubted whether he would ever play the game again. ""It was a tough, tough road,"" he told CNN's Living Golf show. ""There was a lot of dark times where I couldn't get out of bed, couldn't move, the pain was too great. ""Anyone who's ever had nerve pain in their back, they certainly understand what that feels like. I honestly didn't know this time last year, I didn't know if I'd ever play golf again. Just because of the fact that it's nerve pain."" Woods made his comeback in a limited field event in the Bahamas in December and showed promise by leading the field in birdies, although a number of costly errors meant he finished 15th of the 17-man field. He missed the cut in his next event, the PGA Tour's Farmers Insurance Open at Torrey Pines in California last month and slumped to a five-over 77 on day one in Dubai before retiring. Woods looked to be moving gingerly around the Emirates Golf Club course, but told reporters afterwards he ""wasn't in pain at all,"" adding: ""I was just trying to hit shots, and I wasn't doing a very good job."" Woods hasn't won a tournament since 2013 and clinched the last of his 14 majors in 2008. READ: Woods and Trump play golf READ: 20 years of Tiger - highs and lows READ: Woods' comeback falters READ: US must unite, says Woods READ: 'Rusty' Woods misses cut at Torrey Pines Woods is scheduled to play in the Genesis Open at Riviera Country Club, California from February 16-19 before the Honda Classic at PGA National in Florida the following week. Visit cnn.com/golf for more news and videos Beyond that his calendar is unclear, with the year's first major, the Masters at Augusta, starting on April 6 in Georgia.", -693,2017/2/9,http://www.cnn.com/2017/02/09/tennis/andy-murray-roger-federer-andy-murray-live/index.html,Andy Murray warns Roger Federer to stay away from deep-fried Mars bars,(CNN)World No.1 Andy Murray had one piece of advice for Roger Federer when it was revealed the 18-time grand slam champion would play in Scotland for the first time later this year.,"""Don't try the deep-fried Mars bars."" In announcing that the Swiss star would be his guest at an exhibition event in Glasgow, Murray warned his rival against sampling the sweet dish invented in his homeland. ""I tried one last year for the first time and it was horrific,"" said the Wimbledon champion, smiling. ""Stay away from them."" Deep frying a Mars bar was invented in Scotland in the early 1990s and by the beginning of this century the snack's reputation was such that it was mentioned on the Jay Leno Show in 2004. Speaking in east London at the launch of ""Andy Murray Live 2017,"" the Olympic champion said it would be ""incredible"" for tennis fans in Scotland to watch Federer, 35, play at the SSE Hydro on November 7. ""All of us involved in this event are very, very lucky that he's agreed to do it. I'm really looking forward to it,"" added the 29-year-old, who first staged ""Andy Murray Live"" last year. ""He's just really popular everywhere. He said a few years ago that he wants to try to go to places where he's not been so that all his fans can watch him."" READ: 18 reasons to love the Swiss champion READ: Federer savors ""extra special"" win READ: Federer beats Nadal to win 18th grand slam 'Incredible what Federer did' As well as a singles match between Murray and Federer, this year's event will also feature Murray and his brother, Jamie, taking on former British number one Tim Henman and showman Mansour Bahrami in a doubles match. All proceeds will go to charity. Having offered Federer culinary advice, Murray said he would also learn from Federer's Australian Open triumph and consider taking longer breaks from the sport. Despite having not played competitively for six months as he recovered from injury, Federer won his 18th grand slam in Melbourne last month, beating Rafael Nadal -- another player whose season was hampered by injury last year -- in the final. Murray, by contrast, who had a busy but successful end to 2016 was defeated in the fourth round by world No. 50 Mischa Zverev, the lowest-ranked player the Briton had lost to at a major since 2006. ""It is incredible what he [Federer] did in Australia after such a long break,"" said Murray, who ended 2016 as the world number one following five title wins between October and December. ""In tennis we play so much for a lot of the year that actually sometimes coming into events fresh can also be a huge advantage. ""Roger and Rafa were both coming back after a pretty significant period of time out and they both played extremely well, so maybe that's something that we can all learn from."" Murray insisted that he did not regard this year's early exit from the Australian Open, where he was regarded as favorite following Novak Djokovic's second-round loss, as a missed opportunity. ""The end of last season was tough,"" he told CNN. ""I played a lot of tennis in a short period of time. I needed to reflect on that. ""I've never been in that position before, competing in the latter stages of nearly every tournament for four months. ""A lot of people think Roger is the best player of all time. Rafa is also one of the best players of all time and Stan Wawrinka was also in my section of the draw. Had I got through the fourth round, Roger, followed by Wawrinka followed by Rafa would've been tough anyway.""", -694,2017/2/9,http://www.cnn.com/2017/02/09/health/hope-vs-hype-cancer-drugs-partner/index.html,"Amid flurry of new cancer drugs, how many offer real benefits?","Marlene McCarthy's breast cancer has grown relentlessly over the past seven years, spreading painfully through her bones and making it impossible to walk without a cane.","Although the 73-year-old knows there's no cure for her disease, she wants researchers to do better. It's been years, she said, since she has found a drug that has actually helped. McCarthy said she's frustrated that the Food and Drug Administration is approving cancer drugs without proof that they cure patients or help them live longer. ""That simply isn't good enough,"" said McCarthy, of Coventry, R.I. ""I understand [why] that could be satisfactory for some people. It isn't to me."" Pushed by patient advocates who want earlier access to medications, the Food and Drug Administration has approved a flurry of oncology drugs in recent years, giving some people with cancer a renewed sense of hope and an array of expensive new options. A few of these drugs have been clear home runs, allowing patients with limited life expectancies to live for years. Many more drugs, however, have offered patients only marginal benefits, with no evidence that they improve survival or quality of life, said Dr. Vinay Prasad, assistant professor of medicine at the Oregon Health and Sciences University, who has written extensively about the FDA's approval process for cancer drugs. Overall cancer survival has barely changed over the past decade. The 72 cancer therapies approved from 2002 to 2014 gave patients only 2.1 more months of life than older drugs, according to a study in JAMA Otolaryngology-Head & Neck Surgery. And those are the successes. Two-thirds of cancer drugs approved in the past two years have no evidence showing that they extend survival at all, Prasad said. The result: For every cancer patient who wins the lottery, there are many others who get little to no benefit from the latest drugs. ""We are very concerned about the push to get more drugs approved, instead of effective drugs approved,"" said Fran Visco, president of the National Breast Cancer Coalition, who said the last game-changing breast cancer drug, Herceptin, was approved nearly 20 years ago. In a November study published in JAMA Internal Medicine, researcher Diana Zuckerman looked at 18 approved cancer drugs that didn't help patients live longer. Only one had clear data showing that it improved patients' lives, such as by relieving pain or fatigue. Two drugs harmed quality of life. For example, thyroid cancer patients taking the most expensive drug, cabozantinib, scored worse on a scale measuring five symptoms: diarrhea, fatigue, sleep disturbance, distress, and difficult remembering, Zuckerman said. ""Our patients need drugs that provide the greatest possible benefit, particularly when you put that in the context of cost,"" said Dr. Richard Schilsky, senior vice president and chief medical officer at the American Society of Clinical Oncology, which represents cancer specialists. ""You begin to question what is the real value of a therapy when the benefit is small, the toxicity may be similar to a previous drug and the cost is much higher."" Cancer drugs approved last year cost an average of $171,000 a year, according to the Center for Health Policy and Outcomes at New York's Memorial Sloan Kettering Cancer Center. Although the high prices can lead patients to think they're getting the Mercedes of cancer drugs, research shows that a medication's price has no relationship to how well it works. ""We cannot have a system where drugs that may not even work are being sold for these amazingly crazy amounts of money,"" said Zuckerman, president of the National Center for Health Research, a nonprofit in Washington that aims to explain research to consumers. Recognizing the slow pace of progress, the American Society of Clinical Oncology has set goals for new cancer drugs of extending life or controlling tumors for at least 2.5 months. The bar was set relatively low because ""it's not very often that we come across a transformative treatment,"" said Dr. Sham Mailankody, an assistant attending physician and myeloma specialist at Memorial Sloan Kettering. Yet in a study published in September in JAMA Oncology, Mailankody found that only one in five cancer drugs approved from 2014 to 2016 met those standards. Even those slim gains, achieved during carefully controlled clinical trials, can evaporate in the real world, where patients are often older and sicker than those who participate in research studies, said Hanna Sanoff, an associate professor and section chief of the University of North Carolina School of Medicine Gastrointestinal Medical Oncology Program. Cancer is primarily a disease of aging; 59% of patients are over 65 and 30% are older than 75. Yet only 33% of participants in cancer trials are over age 65 and just 10% are over 75, according to a 2012 study in the Journal of Clinical Oncology. In a study published in September in The Oncologist, Sanoff found that a drug that improved survival in liver cancer by three months offered no survival advantage among Medicare patients outside the clinical trial. McCarthy, who reviews breast cancer research proposals for the Department of Defense, said she was twice turned down for clinical trials because of her age. When researching experimental therapies, ""I'd get excited by something that seemed promising, only to be told I was too old to join the trial, because the cutoff age was 70,"" she said. Lowering the bar FDA officials said there are good reasons why many promising cancer drugs lack evidence of improved survival. Because some cancers grow slowly, it can take many years for a study to show whether a new drug helps people live longer, said Dr. Richard Pazdur, director of the FDA's Oncology Center of Excellence. While individual drugs may only modestly improve survival, ""when used sequentially or in combination, they can transform a disease,"" Pazdur said. The design of some cancer trials also can make it hard to tell if drugs help patients live longer. That's because many trials now allow patients in the control group the opportunity to ""cross over"" to get the drug being studied, if preliminary data suggests it could help them, Pazdur said. While such crossover benefits people in the study, who are facing a life-threatening disease, it can lead to inconclusive findings. Lastly, Pazdur said that overall survival rates also don't reflect that fact that some drugs, such as targeted therapies for lung cancer, allow a subset of patients to do extremely well, surviving for years instead of months. The number of patients with advanced melanoma who survive five years after diagnosis has increased from 5 percent before the advent of immune therapies to 30 percent to 40 percent today, said Dr. Steven O'Day, director of immuno-oncology and clinical research at the John Wayne Cancer Institute at Providence Saint John's Health Center in Santa Monica, Calif. Immune therapies work by stimulating a patient's natural immune system to combat cancer cells. ""There is a lot of excitement about these [immunotherapy] drugs, and for good reason,"" Schilsky said. ""There's no diminishing the progress that's been made."" The FDA wants to give patients the chance to benefit as soon as possible, rather than waiting for definitive proof of improved survival, Pazdur said. In some cases, the FDA requires pharmaceutical companies to perform long-term studies after drugs are approved, to measure whether drugs live up to their early promise. But many of these studies never provide an answer, Zuckerman said. Once a drug is approved and is available to anyone, patients have no incentive to participate in a clinical trial. So studies can end with no clear conclusion. In a 2015 study, Prasad looked at 36 drugs approved without proven survival advantages. More than four years later, only five had evidence of improved survival. Otis Brawley, chief medical officer at the American Cancer Society, said he's concerned that the FDA is lowering its standards. ""We're getting less rigorous scientifically because we want to get these drugs out to people faster,"" Brawley said. Unless the FDA requires companies to provide survival data before approving a drug, ""we may never have answers,"" Zuckerman said. ""We will have all of these expensive drugs on the market and we will never have the information we need about how well they work or even how safe they are."" President Donald Trump has vowed to cut regulations at the FDA and recently told pharmaceutical industry leaders that he wants to further speed up the drug approval process. Helpful or harmful? Cancer patients, who are making decisions at a time of intense stress, don't always understand the full risks and benefits of therapy, Brawley said. Studies suggest that both patients and doctors tend to overestimate drugs' benefits, but underestimate their risks and side effects. A study of 2,944 people in JAMA Internal Medicine found that 39 percent mistakenly believed the FDA only approves ""extremely effective"" drugs, while 25 percent mistakenly believed the agency only approves treatments without serious side effects. Even doctors think ""we are better than I actually think we are,"" Brawley said. ""The thought that these drugs could be harmful is foreign to them."" One of the biggest recent changes at the FDA is that more drugs are being approved based on ""progression-free survival"" �?medical jargon for the amount of time that patients live while their tumors are under control. Because small changes in tumor size aren't always clearly visible on scans, doctors consider tumors to be under control as long as they don't grow more than 20 percent, Brawley said. Doctors always hope that a drug that delays tumor growth will help patients live longer. But in a study published in 2015, Prasad found that most statistical analyses have found the link between progression-free survival and overall survival to be very weak. Measures such as progression-free survival ""are just a guess as to whether or not the drug actually works,"" Brawley said. ""The problem with approving a drug based on a progression-free survival is that you don't know if the drug is actually doing anything positive for the patient."" Brawley said he's concerned that patients could be harmed by oncology drugs whose long-term side effects are unknown. The drug Avastin, which was approved for breast cancer in 2008, without evidence that it improved survival, lost its approval three years later, after studies showed it did not help people live longer. The FDA concluded that life-threatening side effects, which included heart attacks, bleeding and high blood pressure, outweighed the drug's benefits. ""There are all these drugs that we used for a long, long time, but we ended up taking them off the market because we finally realized they were harmful,"" Brawley said. ""We are setting ourselves up for that again."" McCarthy has been disappointed in the new cancer therapies she's tried. The last drug that kept her tumors from growing was letrozole, which was approved in 1997. It kept McCarthy's tumors under control for three years. In 2015, after her tumors began growing again, McCarthy began a new breast cancer drug, called Ibrance. The FDA approved Ibrance because it improved progression-free survival by 10 months when combined with a standard hormonal therapy. Four months after McCarthy began the drug, however, scans found new bone tumors. A spokeswoman for Pfizer, Sally Beatty, noted that Ibrance's proven benefits have improved since then. In a study published in November, women taking the Ibrance combination lived 24.8 months with limited tumor growth, compared to 14.5 months for women who took the hormonal therapy alone. McCarthy opted not to try another breast cancer drug, Afinitor, after doctors warned her that it posed too many risks. The FDA approved Afinitor in 2012 because it limited tumor growth for four months longer than placebo. ""That's nothing to be excited about,"" said McCarthy, who has four children and four grandchildren. ""I want to live more than four months."" But keeping tumors in check can be a huge help to patients, said Pazdur, who notes that there are many ways for drugs to help patients, even without extending life. Shrinking a bone tumor, for example, can relieve pain. Shrinking a lung tumor can make it easier for someone to breathe. ""Most patients are pleased if they go to the doctor and the doctor says, 'Your scan says everything is stable. There are no new lesions,'"" Schilsky said. ""I've given that result to patients many times over the years and they are all happy about it. Are they as happy as they would be if the tumor were gone? Of course not. But being free from progression and otherwise feeling OK is not such a bad outcome."" As someone with incurable cancer, McCarthy remains frustrated with the pace of progress. Scientists, she said, aren't asking the right questions. McCarthy said she wants researchers to focus on prevention of cancer, and to learn why breast cancers like her can remain dormant for years before suddenly reactivating. Her cancer, which was first diagnosed when she was 44, disappeared for two decades before reappearing in her bones. ""The status quo isn't good enough,"" said McCarthy. ""I want us to have a breast cancer vaccine to prevent my granddaughter from getting cancer. I'll be working for that with my dying breath.""", -695,2017/2/9,http://www.cnn.com/2017/02/09/health/looking-forward-with-bill-gates/index.html,Looking forward with Bill Gates,"(CNN)Despite widespread global problems like hunger and malaria, Bill Gates has an optimistic outlook on the planet's future -- along with a few ideas on how to make it even better. In this video series, CNN meets the men and women bringing those ideas to life.","Bill Gates is a man on a mission. The 61-year-old co-founder of Microsoft, who has an estimated fortune of nearly $85 billion according to Forbes, is well known for his philanthropic work. In an interview with CNN, recorded in October, Gates talked about his commitment to tackling disease and famine. ""Our foundation focuses on the diseases of poor countries such as malaria, HIV, diarrhea and pneumonia,"" Gates told CNN. The Bill and Melinda Gates Foundation is investing millions in combating mosquito-borne diseases in Latin America. ""In every one of those cases, we've made huge progress. We've cut the number of children under five with diarrhea from 13 million 25 years ago to six million today."" With his brief laid bare, we asked Gates for advice on tackling some of the biggest challenges facing the globe. How to save the world from disease ... ""We'll never get it to zero,"" said Gates on how to rid the planet of disease. ""But the science today should give us tools to solve a lot of the big killers."" He said disease could still be ""cut in half,"" eventually reaching a point where ""a child in a poor country doesn't have a dramatically increased chance of dying compared to other children."" So how do we inspire this scientific innovation in the next generation? ""Understanding what the problems of the world are, I think that stimulates people,"" said Gates, before rushing off to another appointment to spread his message -- and money -- further. ... and famine ""It's about increasing food productivity,"" said Gates matter-of-factly, when asked how to save the world from famine. ""We have one-fifth the productivity in Africa that we have in Europe and the United States. So better seed varieties, access to fertilizer... and the use of cell phones so that market information is more available."" Gates added that African countries could learn from the way some Asian countries had pulled themselves out of famine and dramatically increased crop production. It's going to be OK While there are still huge challenges facing society, Gates has an optimistic outlook. ""The trend is good,"" he said. ""The reduction in violence, the understanding the science, you know, the treatment of women. We have a lot more to do, but, you know, certainly, 30 years ago, it was a lot worse than it is today.""", -696,2017/2/9,http://www.cnn.com/2017/02/09/sport/skiing-steepest-start-gate-st-moritz-90-miles-per-hour/index.html,St. Moritz: Skiing's steepest start gate,"St. Moritz, Switzerland (CNN)They call it ""free fall.""","A leap of faith from a Swiss mountain that propels skiers from standstill to 90 miles per hour in just six seconds. It's the steepest start gate in the world and can be found at the glamorous St. Moritz resort. It's not one for the fainthearted, and it's just the beginning of the men's downhill course for this month's Alpine World Ski Championships. Only accessible by a gondola lift and a 178-step climb, on Saturday the gold medal hopefuls will strap on their skis, approach the precipice and take the plunge. No other course is quite like it. ""People, television, they need stories,"" former Olympic champion and course designer Bernhard Russi tells CNN. ""They want to be able to show the people what these guys can do and how steep it is."" READ: Erik Guay becomes skiing's oldest world champion READ: Countdown to Winter Olympics begins with one year to go Visit cnn.com/skiing for more news and videos Cut into rock face 3,000 meters up, the 45-degree gradient forces TV cameramen to abseil just to obtain suitable filming positions. Don't. Look. Down.", -697,2017/2/9,http://www.cnn.com/2017/02/09/design/worlds-best-wine-cellars/index.html,Wine by design: Beautiful cellars around the world,"(CNN)Historically, wine cellars have been buried beneath a vineyard's water bed to ensure sufficient moisture and cool temperatures.","But thanks to new technology and sophisticated architecture, modern cellars can mimic Mother Nature almost anywhere. Whether high on a hilltop or built into a bunker, beautiful wine storage solutions can now be found in some surprising places. ""Today, putting a wine cellar in your 33rd-floor apartment is just as easy as in an underground cellar,"" says James Molesworth, senior editor of Wine Spectator. Molesworth points to Château Cheval Blanc, in Bordeaux, as an exemplary above-ground wine cellar. ""For me the key is combining both visual eye candy with actual practicality and efficiency,"" says Molesworth. Above ground Designed by Christian de Portzamparc, Château Cheval Blanc's undulating white facade appears at home on a hilltop in the French countryside, complete with its own grassy rooftop. Stretching across 19,685 square feet, the avant-garde cellar streams natural light across artfully lined rows of concrete white vats. ""All the vats are cement and pear-shaped, corresponding to parcel sizes on the vineyard,"" says Molesworth. Carefully labeled with the plot number, capacity, grape variety and date planted, these vats allow Cheval Blanc to manage fine details within a vast vineyard. ""By devoting individual vats to each plot, the winemaking team can pick each parcel when they wish, and then manage smaller and smaller vinifications before eventual blending,"" says Molesworth. ""In essence, they are handling the vineyards at its smallest pixilation, then assembling the final picture -- or blend -- from that,"" says Molesworth. Precision storage Another unconventional cellar -- albeit subterranean -- is Hong Kong's Crown Wine Cellars in Shouson Hill, discretely hidden on the south side of Hong Kong Island. Buried 60 feet underground inside a network of former military bunkers, the cellars are accessed through a concrete tunnel that opens into a series of 1,000-square-foot chambers, each of which are protected by 3-foot-thick reinforced concrete walls. While it appears rugged on the outside, the cellar's interior features state-of-the-art climate-control technology to protect its clients' rare vintages stored inside. ""Temperature and humidity are the two key things -- a quiet, stable environment too, with no vibration,"" says Molesworth of an ideal cellaring environment. ""You wouldn't put a wine cellar under train tracks, basically."" The perfect conditions? Approximately 70% humidity, stable temperatures between 50-55 degrees Fahrenheit, and little to no light. ""Ideally, wine should be stored in a dark space as ultraviolet light destroys wine -- hence colored glass bottles,"" says Adam Bilbey, a wine specialist with auction house Sotheby's. ""And wine should be kept lying still at a perfectly horizontal angle."" Contemporary classics Of course, even with an influx of contemporary cellars, the classics aren't going anywhere. Take US billionaire William Koch's now famous Palm Beach wine cellar in Florida, which pays homage to traditional European cellars of days gone by. One of three extraordinary facilities he maintains -- the other two are in Aspen, Colorado and Cape Cod, Massachusetts -- its underground labyrinth of Austrian red bricks and custom-built arched doorways houses a selection of the wines from his 20,000-bottle collection, one of the largest in the US. ""An incredible attention to detail was needed to create this masterpiece. With Koch's legendary collection of wine, it was fitting it should be cellared in such a beautiful way,"" says Bilbey. Explore some of the world's most beautiful wine cellars in the gallery above.", -698,2017/2/8,http://www.cnn.com/2017/02/08/health/autism-typical-male-brain-study/index.html,"'Male brains' linked to higher autism risk in women, study says","(CNN)Brains, like faces, have features seen as either more masculine or more feminine. One feature of brain anatomy that is characteristic of males is associated with an increased risk of autism, according to a study published Wednesday in the Journal of the American Medical Association's Psychiatry edition.","Women with male characteristic brains are three times more likely to have autism than women with more ""female"" brains, the researchers say. Yet the reverse was not been proven true; no evidence indicates that men with more female-trait brains are less at risk for autism than men with typical brains. Autism is considered a neurodevelopmental condition, which means symptoms begin early and children fail to achieve typical milestones of maturity at appropriate ages. Common symptoms include difficulty with communication and repetitive behaviors. In the United States, about one in 68 children has been identified with autism spectrum disorder, according to the Centers for Disease Control and Prevention. The term ""spectrum"" refers to the fact that symptoms, levels of disability and positive skills may vary from person to person. For example, some people along the spectrum cannot make eye contact or follow simple directions, while others may be exceptional at math. And, as they age, some children with autism will learn to function more or less normally, while others will require substantial support to perform basic activities. Autism spectrum disorder is two to five times more common in males than in females, according to Christine Ecker, lead author of the new study and a professor at Goethe University in Frankfurt, Germany. Though some researchers say sex differences in symptoms account for different rates of diagnosis, others hypothesize that sex-related variations in brain anatomy may contribute to the higher risk among males. Gender differences For the new study, Ecker and her co-authors examined whether brain anatomy differences led to a higher probability of autism in males. Specifically, they looked at cortical thickness: the depth of gray matter across the surface of the cortex. ""For example, it is known from previous studies that females tend to have a thicker cortex than males in various regions of the brain,"" Ecker wrote in an email. Previous studies have also shown thickness to be significantly altered in people with autism. Study participants included 98 high-functioning adults with autism (49 of them men) and 98 adults without autism (51 of them men). Both groups were roughly within the same age range: mid-20s, on average. The researchers excluded anyone with a history of psychiatric disorders, head injuries, certain genetic disorders or other medical conditions affecting brain function, such as epilepsy. People taking mood stabilizers and other medications were also excluded. The researchers conducted MRI brain scans on each participant and then derived cortical thickness patterns for each using a software program. After anonymizing this information, Ecker and her colleagues made predictions about which participants were male or female based on cortical thickness and overall physical characteristics, also referred to as the ""brain phenotype."" ""We found that brain phenotype ranged from being typically female to typically male, and that there is variability between these extremes,"" Ecker said. This is true of all of us: Regardless of sex, our brains fall somewhere along a continuum, with extreme male and extreme female at either end. The variety in the middle is healthy and normal, said Ecker. Among the study participants, 68.1% of the biological female brains fell closer to the female extreme while 74.5% of biological male brains fell closer to the male extreme. Hope for earlier diagnoses Cortical thickness did not unfailingly identify female or male brains, but the researchers found a constellation of sex-related brain structure differences, and based on this, they were able to separate males from females in most cases. ""Overall, our approach was approximately 74% accurate in predicting biological sex based on brain anatomy,"" Ecker said. Further analyzing the data, Ecker and her colleagues discovered that the probability of autism increased significantly among the participants, whether male or female, whose brain phenotype was more typical of males. In fact, female participants with brain anatomy more typical of males were three times more likely to have autism than females with a more typical brain. With this approach, autism risk could be estimated ""for individuals based on how characteristically female or male their brain is,"" Ecker explained. Though she and her colleagues have examined only adult brains so far, Ecker said ""in future research, we are hoping to apply our approach to younger age groups as well."" Early use of this method in a child's life could offer earlier diagnosis among those who might then benefit from earlier intervention, she said. Early training is known to have the best results for normalizing children with autism. According to Dr. Tuong-Vi Nguyen, an assistant professor at McGill University in Montreal, the new study is ""provocative"" with ""good methodology."" Nguyen, who was not involved in the current study, has investigated the sex-specific effects of testosterone on brain structure between ages 4 and 24. ""Given that the authors' predominant theory is that a male-typic brain represents a predisposition to autism, their results only partially confirm this,"" she said. She suggested a more conservative rephrasing of the new study's main finding: ""Female, high-functioning individuals with autism spectrum disorder (a very small portion of the overall autism spectrum disorder population), have an increased likelihood of showing a male-typic pattern of brain structure, more specifically, male-typic patterns of cortical thickness."" She cites the fact that ""there was no significant decrease in autism spectrum disorder risk if males had a more female-typic brain structure."" ""It is definitely too early to say if these neuroimaging tools could be used clinically to predict"" autism spectrum disorder, she said, adding that ""no change to current clinical management can be derived from the results of this study.""", -699,2017/2/9,http://www.cnn.com/2017/02/09/africa/south-africa-art-british-museum/index.html,British Museum exhibit explores the art of South Africa,(CNN)A car painted by renowned 81-year-old artist Esther Mahlangu and Zulu carved ox horns are just some of the items on display at the first major UK Exhibition on South African Art.,"The exhibition explores the rich heritage of the country and covers seven key episodes of South African history, sculptures, clothes and ornaments are displayed alongside artwork from the same time to give them context. The gold treasures of Mapungubwe -- small gold figures found in royal graves in the former capital of the first kingdom of South Africa -- are one of the significant loans to the Museum. They are formed into the shape of animals and status symbols such as crowns. Today one of the treasures, the golden rhino, can be seen on South Africa's highest honor; the Order of Mapungubwe, which has been awarded to Nelson Mandela, journalist Zwelakhe Sisulu and novelist Doris Lessing. ""'South Africa: the art of a nation' is a chance to explore the long and diverse history of South African art,"" said Hartwig Fischer, Director of the British Museum in statement, ""and challenge audience preconceptions in the way our visitors have come to expect from a British Museum exhibition."" South Africa: the art of a nation is on until February 26 at The British Museum.", -700,2017/2/9,http://www.cnn.com/2017/02/08/sport/pyeongchang-winter-olympics-2018/index.html,PyeongChang 2018 Winter Olympics: Countdown begins with one year to go,"(CNN)There has been political turmoil, protests and scandal in South Korea -- but with one year to go until the start of the 2018 Winter Olympics the country is hoping that one of the world's biggest sporting events can help restore national pride.","From February 9 to 25, 2018, the city of PyeongChang will welcome nearly 3,000 athletes from nearly 100 nations for the first Winter Olympics to be held on South Korean soil. It will kick off a series of high-profile sporting events in Asia over the next four years, with Tokyo hosting the 2020 Summer Olympics and Beijing the host city for the Winter Olympics in 2022. READ: Ski like a South Korean To avoid any potential confusion with North Korea's capital Pyongyang, the PyeongChang resort -- which is 50 miles south of the demilitarized zone that separates the two countries -- has changed its name for the Games, capitalizing the C for the first time. A record 102 gold medals will be up for grabs in 15 disciplines at PyeongChang 2018, while four events will be making their Winter Olympic debuts, with the introduction of Big Air snowboarding -- athletes performing tricks after launching from large jumps -- giving the Games a youthful vibe. A $78 million, 50,000-capacity temporary Olympic Stadium, which will host the opening and closing ceremonies, is set to be completed in September. It's one of six new venues being built. In total, 13 venues, split between PyeongChang and neighboring city Gangneung, will be used during the 17 days of the Games. Impeachment & political scandals Yet, as the 12-month countdown begins, South Koreans have been distracted by other events. The country's Constitutional Court is deliberating a motion to impeach President Park Geun-hye over a corruption scandal which sparked weeks of protests in the capital Seoul. It is a far cry from the deafening cheers which greeted the 2011 announcement that the ski resort of PyeongChang, about 180km east of Seoul, would host the Winter Olympics. READ: South Korea presidential scandal - what you need to know Companies have reportedly been reluctant to sign up to sponsorship deals, leaving the organizing committee with a shortfall. The total cost for the Games is said to be just over $10 billion, a contrast to the 2014 Sochi Winter Olympics which cost five times more. Lee Hee-beom, president of PyeongChang 2018, told reporters this week: ""Some part was affected by the political scandal, and some part by the situation of the economy."" He said he's hoping the Games can help shake off the ""negative image"" that came from what he called ""a series of unsubstantiated rumors"" associated with the political scandal. ""Some even went as far as saying we should give up on hosting the Olympics,"" he said. ""But, fortunately, the prevailing opinion is that we should all try to restore our national pride with the Olympics. And we're concentrating only on holding a successful Olympics. ""I know that we are criticized for little public awareness of the 2018 Winter Olympics. I expect the one-year countdown event will add momentum to boost public awareness worldwide."" 'North Korea is not the exception' The Games are being held in a province which witnessed fierce battles during the 1950-53 Korean War, which ended in a truce not a peace treaty. South Korea had rejected the North's suggestion to co-host the Games by holding some of the skiing events at its Masik resort, in Kangwon, east of the capital Pyongyang. North Korea has previously sent teams to participate in recent international sporting events held in the South and Lee urged North Korea to send athletes to the Games. ""The basic principles of Olympics is peace,"" he told reporters. ""Anyone who loves peace should participate, have the right to participate. There is no exception. North Korea is not the exception.""", -701,2017/2/9,http://www.cnn.com/2017/02/09/asia/china-rainbow-chamber-singers/index.html,Why this choir is a huge hit with China's stressed out millennials,"Hong Kong (CNN)As millions of young Chinese people returned home for the Lunar New Year, many will have been dreading the family interrogations that so often accompany the festivities.","Do you have a boyfriend? How much money do you make? When will you get married and have children? Why don't you move home and work for Big Uncle? And why, why, why are you so fat? The pressure to settle down and start popping out offspring can be such that many young Chinese people rent actors -- for upwards of $200 a night -- to pretend to be their romantic partner through the Spring Festival holiday period, which ends Saturday, and help them stave off awkward questions. ""Young people are delaying marriage, but their parents still use the old standard to ask them to get married and have children 'on time',"" said Yue Qian, an assistant professor at the University of British Columbia. These pressures lie behind the success of a viral video in the run up to the vacation. ""A Spring Festival Survival Guide,"" has attracted more than a million views on various platforms in the past month, including over 300,000 on YouTube, which is blocked in mainland China, showing that family pressures don't care about international borders. The song is both a pastiche of traditional Spring Festival stresses, and a rip-roaring anthem to individualism, ending with the defiant chorus: Encore The success of ""Survival Guide"" -- called ""What I Do Is For Your Own Good"" in English -- is even more surprising given its source, not some Chinese popstar or viral video factory, but a traditional chamber choir. The Rainbow Chamber Singers (RCS) were founded in 2010 by conductor Jin Chengzhi and a small group of his fellow students at the prestigious Shanghai Conservatory of Music. The choir puts on a concert every six months, performing old favorites and newly written traditional-style choral pieces. Since 2016, Jin has also been mixing it up with his own compositions, which mix serious music with comedic lyrics and social commentary. ""Where On Earth Did You Leave the Key, Zhang Shichao?"" a kazoo-heavy castigation of ungrateful roommates, was the choir's first major hit, Jin said. They followed it with ""So Far, the Sofa is So Far,"" an anthem for China's ""overtime dogs,"" the millions of underpaid millennials working long hours for abusive bosses. The choir's music deals with stresses common to young people, said Eric Fish, author of ""China's Millennials,"" and growing levels of rebellion against them. ""Young people are steadily pushing back against pressures to get married quickly and gun for the most stable and lucrative job,"" Fish said. Jin -- who describes himself as a ""rational optimist"" -- said that his work comes from his own experiences and anxieties, but that he hopes the songs ""can bring people understanding and hope for life."" ""Though 'So Far, the Sofa is So Far' describes the miserable overtime life of working young people, the core of the song is that you should choose your own lifestyle,"" he said. ""These conflicts are worth discussing because they are happening right now in our daily lives. No matter if it's working overtime or the generation gap, I think we are responsible for society and can make young people's voices heard."" Diversity Choral music in China can be quite conservative, with many people's experience being limited to groups that sing so-called ""red songs,"" music that dates back to the founding of the People's Republic or the Cultural Revolution and which is often heavy on Communist ideology and references to Mao Zedong. The Rainbow Chamber Singers, on the other hand, are keen to reinvent the genre. ""Good music must be diverse,"" Jin said. ""If you stick to something for no reason, the art will lose its original charm."" Their approach has proved a hit with audiences of all ages. ""Once after a performance, four old ladies in their seventies from Anhui were waiting backstage for my autograph,"" Jin said. ""That moved me a lot."" Speaking out As they become more assertive and influential, China's millennials are producing and consuming pop culture that speaks to their concerns and helps spread a feeling of solidarity about certain issues. ""There have been all sorts of media articles, personal accounts and memes in the past few years relating to overbearing family pressure,"" Fish said. ""I think these reflect a growing frustration among young people with antiquated attitudes towards life."" In this sense, he added, the choir's song acts as ""a rallying cry to stand up and resist."" ""Underlying the growing visibility of the pressures (placed on them) is also the young generation's growing self-expression,"" said Yue. ""It's not necessarily rebellion. I think the younger generation want to communicate with the older generation and hope (they) can understand their worldviews and life choices."" And at least in Jin's case, one family has gotten the message: ""My relatives all heard 'What I Do Is For Your Own Good.' So I had a very comfortable Spring Festival.""", -702,2017/2/9,http://www.cnn.com/2017/02/08/entertainment/history-comedy-key-moments/index.html,No joke: 6 times comedy changed the way we live,,"But those on the listening end don't always agree. Take what happened to comedic screen siren Mae West in 1926 after she dared to write and star in a Broadway play titled ""Sex"": She was sentenced to 10 days in a woman's workhouse and fined $500 on obscenity charges. Of course, times change. Some 70 years later, there was so much ""Sex"" happening in the city that an entire television series was devoted to it. As comedian Patton Oswalt puts it in CNN's ""The History of Comedy,"" "" 'Off limits' is not a permanent address. You couldn't say 'pregnant' on TV when Lucille Ball was pregnant on 'I Love Lucy.' So to anyone who says, 'Well, it's off limits' ... enjoy the next 10 minutes because that's about as long as that's going to last."" Like mischievous children, comedians have long pushed boundaries to see what they can get away with. And if it weren't for the Mae Wests of the world, we may never have had the cultural breakthroughs that led us to where we are today. Here are six times when comedy broke barriers, shocked audiences and, in the process, changed the way we live. 1. Lenny Bruce convicted of 'word crimes' When: 1964 What happened: When Bruce came along in the 1950s, he stunned audiences with his unfiltered routines about drugs, race and religion. His material outraged the era's moral crusaders, who banned Bruce from several cities and tried to shut down his act. In 1964, undercover police secretly recorded Bruce performing at a New York club and arrested him on obscenity charges. At his trial, despite testimony on his behalf from Woody Allen, Bob Dylan and others, a Manhattan court convicted Bruce of ""word crimes"" and sentenced him to a workhouse. The verdict derailed Bruce's career, and he died in 1966. A famous line: Why it matters: Can you imagine a world in which Louis C.K., Eddie Murphy or Margaret Cho would be arrested on obscenity charges for their stand-up? ""Lenny opened the doors for the comics today,"" George Carlin, another influencer on this list, told CNN in 1990. ""He made it possible to think that someone could even be funny that way."" 2. George Carlin's 7 dirty words When: 1972 What happened: Carlin began doing a monologue in his stand-up act called ""Seven Words You Can Never Say on Television."" The words: sh*t, p*ss, f**k, c*nt, c**ksucker, motherf**ker and t*ts. After Carlin did the bit onstage at a festival in Milwaukee, he was arrested and the monologue was played at his trial, drawing giggles in the courtroom (a judge tossed out the case). The next year, a man complained to the Federal Communications Commission that his young son had heard Carlin's routine on the radio, sparking a dispute that went all the way to the US Supreme Court. A famous line: Why it matters: The Supreme Court ruled that Carlin's joke was ""indecent but not obscene,"" upholding free speech while also giving federal authorities the power to restrict offensive broadcasts when children are likely to be watching or listening. Asked later about his profane style of comedy, Carlin said, ""I like to find out where the line is drawn, and then drag the audience across the line with me and make them happier for the experience."" 3. Norman Lear's sitcoms reinvent TV When: Early 1970s What happened: Lear broke the existing TV sitcom mold when he created ""All in the Family."" The series, which revolved around the insult-spewing bigot Archie Bunker, tackled the sweeping changes of the era with such honesty that CBS ran an onscreen disclaimer before the first episodes. By balancing comedy with thorny issues like racism, homosexuality, menopause and misogyny, ""All in the Family"" became the No. 1 show on TV and inspired several spinoffs, including ""Maude."" That show broke ground of its own by airing a two-part 1972 episode about the main character's decision to get an abortion. A famous scene: Why it matters: ""TV only started to become socially relevant in the early 1970s,"" said Robert J. Thompson, founding director of the Bleier Center for Television and Popular Culture at Syracuse University. ""The norm before that was more likely to be talking horses and flying nuns."" 4. Richard Pryor gets provocative about race When: Early-to-mid-1970s What happened: While some comedians avoided joking about race, Pryor tackled the topic head-on in electric stand-up performances. Pryor wasn't afraid to make whites feel uncomfortable by mocking racist behavior with thinly veiled anger, and he was one of the first comedians to make liberal use of the N-word. Editor's Note: The following video contains graphic language and content. Viewer discretion is advised. ""This one night I decided to make it my own,"" he said of the racial slur. ""I decided to take the sting out of it ... as if saying it over and over again would numb me and everybody else to its wretchedness."" A famous line: Why it matters: Pryor inspired almost every black comic who followed him, including Eddie Murphy, Bernie Mac, Damon Wayans and Chris Rock. ""Richard basically blazed a trail for black comedy. He defined what it is,"" Wayans told The Washington Post in 1998. ""As a young black man he was saying what he felt -- and that was shocking."" 5. Ellen comes out When: 1997 What happened: Two weeks after comedian Ellen DeGeneres came out as gay on the cover of Time magazine, her ""Ellen"" character came out in a two-part episode of the ABC sitcom (titled ""The Puppy Episode"" after the network's suggestion that her seemingly asexual character get a puppy to boost slumping ratings). The fallout was swift and severe. Some companies pulled their ads, and an affiliate in Birmingham, Alabama, refused to air the episode. Guest star Laura Dern, who played a lesbian, said she had trouble getting work afterward. But the episode drew huge ratings, and 20 years later it's hard to imagine what the fuss was about. A famous line: Why it matters: DeGeneres' was the first lead character to come out as gay on American television, and her example helped usher in major LGBT characters in ""Will & Grace,"" ""Glee"" and other series. 6. 'South Park' skewers sacred cows When: 1997-present What happened: From the very first episode of this subversive cartoon, titled ""Cartman Gets an Anal Probe,"" creators Trey Parker and Matt Stone seemed bent on offending as many groups as possible. Over the years the show has gleefully lampooned conservatives and liberals, satirized Jesus Christ and Mohammed, made insinuations about Tom Cruise's sexuality, depicted Steve Irwin with a stingray barb stuck in his chest and called Scientology a ""big, fat global scam."" Editor's Note: The following video contains graphic language and content. Viewer discretion is advised. In one episode the word ""sh*t"" was said 162 times, complete with a helpful counter that tallied the utterances in the lower-left corner of the screen. Because the show airs on Comedy Central, not broadcast TV, it has been largely spared the wrath of network censors. Still, numerous parents' and conservative groups have called for boycotts. A famous line: Why it matters: By skillfully skewering religion, ethnic groups, celebrities and other targets while pushing the bounds of decency, ""South Park"" has largely obliterated TV's last remaining taboos. Almost no topic, no matter how sensitive, has been immune. Thompson, the Syracuse University professor, compared such trailblazing comedy to the pioneers who pushed west in the 1800s to tame the American wilderness. ""The wilderness is now closed,"" he said, ""and sometime in the '90s we hit the Pacific Ocean.""", -703,2017/2/9,http://www.cnn.com/2013/08/04/travel/swimming-with-sharks/index.html,Best places to swim with sharks,"(CNN)Megalodon may be extinct, but other sharks have been making headlines lately.","There's the great white-tracking app Sharktivity, there's this viral photo of a shark dangerously close to a surfing boy, and there's the Australian zebra shark who shocked scientists by giving birth without a male. And as our fascination shows no sign of abating, swimming with sharks continues to be a large and growing activity. The global shark tourism industry makes an estimated $500 million a year, says Patric Douglas, founder of Shark Divers and a shark dive specialist based in California. Many tout swimming with sharks as one of the greatest diving experiences to be had. Depending on the diver's comfort level, options range from observing sharks from underwater cages to participating in feedings. Here's where to do it. MORE: Great white shark tracking goes mobile False Bay, Cape Town, South Africa African-Shark Eco-charter It's a mystery why shark breaches at False Bay are more frequent and intense than anywhere else in the world. ""White sharks from around the world will breach here, but may not anywhere else,"" says Karen Lawrence from African Shark Eco-charter. ""The intense predator-prey interaction is majestic to watch."" Rob Lawrence, owner of African Shark Eco-charter, is one of the first people to have used a decoy to entice a shark breach. The Air-Jaws tour takes off at dawn, when shark breaching is the most common. The charter also offers cage diving with great whites. African-Shark Eco-charter, Boardwalk Centre, St. George's Street, South Africa; +27 082 838 2309; contact airjaws@mweb.co.za for package rates Shark Cage Diving KZN Kwazulu-Natal's unspoiled waters offer sightings of reef sharks, ragged-tooth sharks and giant guitar sharks. Each guest spends 30 minutes in the cage during the two-and-a-half-hour trip. Divers may encounter up to 20 sharks. Shark Cage Diving KZN, 4182 Old Main Road, South Africa; 082 373 5950 (RSA)/+27 - 82 - 373 5950 (International); dives from around $100 per person Apex Shark Expeditions February to September is the best time for shark cage diving trips in False Bay. When False Bay is out of season, Apex Shark Expeditions -- run by Chris and Monique Fallows -- offer trips to Gansbaai year-round. The waters off Dyer Island have earned the nickname Shark Alley due to their remarkable great white shark populations, attracted by the 60,000-strong sea colony on Geyser Rock. Apex Shark Expeditions, Quayside Buildings, Main Road, Simon's Town, Cape Town; +27 79 051 8558; contact info@apexpredators.com for rates Protea Banks, South Africa AfriDive Divers may encounter up to eight different species of sharks in one dive at Protea Banks. During high season, hammerheads and sand tiger sharks can be seen in schools of several hundred. AfriDive is an advanced dive site and a prime location to see bull and tiger sharks. ""It is an adrenaline-loaded thrill,"" says Afridive owner Roland Mauz. ""Banks is what I call the Himalayas of scuba diving,"" he says. AfriDive, Albert Meyer Drive, Shelley Beach, South Africa; 0824 567 885; dives from $135 per person Bahamas Great Hammerhead Shark Safari There are around 40 species of sharks in the protected Bahamas waters. It's one of the few places where shark sightings are a daily occurrence, due to the marine park's shark-friendly habitat. Running from December to April, slots on the Great Hammerhead Shark Safari are limited to 12 guests a day. The two-tank dive is in approximately 20 feet of water. Tanks and weights are provided, as well as masks, fins and snorkels. Great Hammerhead Shark Safari; Bimini Big Game Club Resort & Marina, Bimini, Bahamas; +242 347 3391; safaris from $299 + 7.5% VAT UNEXSO The Underwater Explorers Society leads shark tours 12 meters underwater. With bait that can attract up to 20 reef sharks at once, the program's staff feed sharks while visitors watch. Divers are encouraged to touch the animals once the shark handler has put them into a state of tonic immobility -- a motionless state that occurs while the animal is inverted. UNEXSO also offers a shark feeder course for those who want feed the beast. UNEXSO, Royal Palm Way, Freeport, Bahamas; +242 373 8956/+1 800 992 3483; dives from $109 per person MORE: 11 of the world's best snorkeling destinations Fiji Aqua Trek Beqa Dive Center Local Fijian villages that traditionally relied on fishing for their livelihood placed a ban on fishing in the name of conservation. That means many of these areas are beautifully unspoiled. Fittingly, marine park fees now to go the villagers. Sharks are attracted to the shallow lagoons and steep drop-offs in the area. Species include bull, nurse and reef sharks, as well as lemon and tiger sharks. On Aqua Trek Beqa dives, guests stay on a perimeter around the reef where the dive master starts the feed, 15 meters underwater. ""Divers will see at least seven shark species each time,"" says Mary-Anne Hines, a representative of the program. Bull shark and tiger shark encounters are the most common. Aqua Trek Beqa Dive Center, Pacific Harbor, Fiji Islands; +679 345 0324; two-tank Ultimate Shark Encounter dive from $160 per person Cocos Island, Costa Rica Undersea Hunter In 1994, Jacques Cousteau described the volcanic Cocos Island Marine Park as ""the most beautiful island in the world."" Located 300 miles off the Pacific coast of Costa Rica, the island is home to hammerheads and many other types of sharks. Live-aboard boats are the only way to dive around Cocos, as visitors are banned from overnight stays and the continental coast is too far to commute. ""Diving on a live-aboard allows you to sit back, relax and focus on one thing, being awed by the incredible beauty above and below water,"" says Shira Katsir of Undersea Hunter. Undersea Hunter's dive trips include everything from entertainment to diving and camera equipment. A 10-day trip includes ground transfer from San Jose and all meals. Undersea Hunter, +506 2228 6613; packages from $4,295 per person MORE: How an A-list photographer captures sharks Red Sea, Egypt PURE Diving ""The Red Sea has some of the clearest waters in the world, offering unparalleled conditions for shark diving,"" says Christian Heylen, general manager of PURE Diving. According to Heylen, the Red Sea is one of the best places to observe curious oceanic white tips, and also one of the few places to see snaggletooth sharks. Feeding and baiting are prohibited in Egypt, so all shark sightings are ""natural"" and not man-induced. PURE exclusively uses closed-circuit re-breathers, allowing divers to be silent and discreet. ""Sharks here are not affected by tourist habits, they don't associate people with food,"" says Heylen, adding that sharks behaving naturally in their natural habitat create unforgettable close encounters. PURE Diving, Sultana Building, Sharm El Sheikh, Egypt; +20 10 733 49 50; contact info@purediving.com for rates MORE: How to live the California beach dream Indonesia Bali Sharks Indonesia's Raja Ampat government recently conserved 4 million hectares of coastal and marine waters as a marine sanctuary for sharks. Indonesia is a huge market for shark-catching according to Paul Friese, founder of Bali Sharks, a nursery for young sharks -- although there are signs the tide is turning. Indonesia was the biggest shark catching country in the world in 2011, exporting 316 tons of shark fin. Now, concerted efforts are being made to rescue sharks from the shark fin trade. Fishermen who had previously depended on shark-finning for their livelihoods now bring the sharks they catch to Friese's nursery, where visitors can dive with sharks and get to watch as sharks are rescued, tagged and released. ""Guests have told me they will never touch a bowl of shark fin soup again,"" says Paul Friese. ""These reactions push me to see how far the shark conservation nursery can grow."" Bali Sharks, Agus Bar and Restaurant, Jl. Tikad Punggawa, Serangan, Bali; +62 361 996 5101; tours are $100 per adult, $90 per child, free for children under five Malapascua, Philippines Thresher Shark Divers Malapascua's Monad Shoal was recently made into a marine park to protect thresher sharks. ""This is the only place threshers can be seen every day,"" says Andrea Agarwal, owner of Thresher Shark Divers. Threshers' tails can make up half their length, and they can grow up to six meters long. ""If you are here for a few days you will almost certainly get a good sighting,"" says Agarwal. Divers will need to be open water-certified as threshers are usually found in deep waters. The best time to see the shy sharks is in the early morning. Thresher Shark Divers, Bounty Beach, Malapascua, Philippines; +63 917 795 9433; contact dive@thresherdivers.com for rates Guadalupe; Mexico Shark Divers Guadalupe's large population of great whites makes the island an important site for shark researchers. The clear waters are great for cage-diving. This six-day live-aboard takes divers from San Diego across the border to Isla Guadalupe. The tour provides meals, accommodation and beer and wine after the shark encounters. Both divers and non-divers can participate. Shark Diver, +1 855 987 4275/+1 619 887 4275; inclusive packages start at $3,195 per person MORE: 11 of the world's most unusual surf spots Oahu, Hawaii Hawaii Shark Encounter Hawaii is home to more than 40 species of sharks ranging from small deep-water pygmy sharks to bus-sized whale sharks. Common sightings include reef sharks, sandbar sharks and hammerheads. At Hawaii Shark Encounter off the shore of Oahu, divers can observe sharks from the safety of a cage. Guests use a snorkel, so no diving experience is necessary. The polyglass pane on the sides allows divers to safely rub noses with sharks that bump the cage. Hawaii Shark Encounter, Haleiwa Small Boat Harbor 66-105 Haleiwa Road, Haleiwa, Hawaii; +1 808 351 9373; contact reservations@hawaiisharkencounters.com for rates", -704,2017/2/9,http://www.cnn.com/2017/02/09/tech/traffickcam-sex-trafficking/index.html,Your hotel room photos could help catch sex traffickers,Join the CNN Freedom Project on March 14 2017 for #MyFreedomDay -- a day-long event when students around the world will be holding events to raise awareness of modern slavery.,"For investigators attempting to track down sex traffickers and their victims, these online advertisements can contain critical clues. The smallest of details in a room could give away its location, but there are too many ads for law enforcement to scan each of them for clues. That's where TraffickCam comes in. It's a simple phone app that uses crowdsourced snapshots of hotel rooms to help law enforcement locate victims and prosecute sex traffickers. Any travelers pit stopping at a hotel can turn on their phone's GPS location and upload photos of the room from four different angles to TraffickCam's database. The idea is that law enforcement agencies can then check adverts featuring suspected trafficking victims in hotel rooms against TraffickCam's database of photos. Stand up to modern slavery on March 14 -- #MyFreedomDay TraffickCam's image analysis tools transform the photos into a number of data points, using features such as patterns on the carpet, paintings on the wall and landmarks out of the window. The various data points in the photos play an important role in matching the location. TraffickCam is the brainchild of Exchange Initiative and a team of researchers at Washington University. Congregation of the Sisters of St. Joseph provided a $100,000 matching grant to begin development of the app, and private donations are made through the non-profit St. Louis Community Foundation. ""This is an easy way for citizens to take a stand against sex trafficking by simply taking photos,"" Kimberly Ritter, director for development for Exchange Initiative, tells CNN. Since launching in June 2016, Ritter says that more than 150,000 hotels have been added to the TraffickCam database. ""We have over 100,000 people using the app right now, and we're hoping that more will join us to take action and fight this fight,"" she says. Tracing the traffickers But even if the database identifies the location of a hotel room, Ritter says it is ""luck of the draw"" whether the victim is still there. This is because traffickers often post photographs from one location to advertise services in another, she explains. Another strategy is for traffickers to base themselves in a central location and post ads in multiple cities. They then drive the girls to different cities, depending on where they get responses to the ads. ""Local girls that are working locally with local pimps will be using local photos, the majority of the time,"" Sergeant Adam Kavanaugh, supervisor of the St. Louis County Multi-Jurisdictional Human Trafficking Task Force, tells CNN. In these cases Kavanaugh imagines TraffickCam could help investigators identify the hotel to prepare an effective sting operation. But when it comes to tracking down what Kavanaugh calls the ""travelers"" -- trafficking victims that are moved all around the United States -- the app may be more useful in showing movement across state lines. ""We can then make a federal case because of the inter-state commerce,"" says Kavanaugh. This could result in a longer sentence for a convicted trafficker. Putting TraffickCam to the test Before the app can be rolled out to law enforcement agencies across the United States, it is being tested by Kavanaugh and the St. Louis County Police Department. ""Right now we're just beta testing the St Louis area, and we're getting positive hits,"" he says, referring to ads that match hotel room photos in the database. Following initial testing in this small area, Kavanaugh feels optimistic about the role TraffickCam can play in identifying both hotel rooms and routes traffickers are using. ""Technology drives everything we do nowadays, and this is just one more tool that law enforcement can use to make our job a little safer and a little bit easier,"" he says. Ritter hopes the app will be available to all law enforcement in the US by Spring 2017, and will eventually be available worldwide. ""With this being such new and cutting-edge technology, we need to perfect it here in the States and then we'll look to making it globally accessible,"" says Ritter. Global users can already download the app and upload photos to the database. Ritter says that all photographs uploaded on TraffickCam from all over the world are being stored for future use. Why hotels? The US National Human Trafficking Hotline found hotels and motels to be a common venue for sex trafficking, with nearly 10 percent of known trafficking cases reported to them in 2016 taking place in a hotel or motel -- although Polaris, which operates the hotline, believes the real figure is much higher. Just under 10 percent of cases were commercial-front brothels, and in nearly eight percent of cases the venue was unknown. Less than five percent of cases were street-based. The app will only be able to narrow in on exact locations if enough photos are added to the database, but Ritter firmly believes people will continue to add them. ""It's amazing how many people are interested in fighting this atrocity,"" she says. ""The more of us that join together to fight this crime, the better the opportunity we have to eradicate it.""", -705,2017/2/9,http://www.cnn.com/2017/02/09/health/my-hero-sanjay-gupta-kelly-twins/index.html,The Kelly twins: Revealing the secrets of the human body in space,"(CNN)The dangers of space exploration are all too clear. Last month, we observed the 50th anniversary of the Apollo 1 disaster, when a cabin fire during launch rehearsals claimed the lives of all three crew.","It was a dreadful start in NASA's quest to reach the moon. January 28 marked 21 years since space shuttle Challenger broke up 73 seconds into its flight, killing all seven aboard. Last week, NASA commemorated the lives of seven crew members who perished 14 years ago when space shuttle Columbia disintegrated above Earth during its re-entry. Even on successful missions, crews face a multitude of issues in space. Astronauts aboard the International Space Station are exposed to radiation levels 10 times that of Earth, leading to increased cancer risks. Seventy-nine percent of astronauts are affected by space motion sickness. The heart deconditions; the immune system weakens; bones lose minerals and density at a rate of 1% per month. Fluids redistribute themselves around the body and away from the legs, and for older astronauts, near vision deteriorates. It goes without saying that astronauts are made of stern stuff. Now retired, Capt. Scott Kelly and Shuttle Commander Mark Kelly are two of a select bunch to leave our planet and put everything on the line in doing so, not for the betterment of themselves but for mankind. For that reason, above all, CNN Chief Medical Correspondent Dr. Sanjay Gupta has chosen the identical twins for the CNN series ""My Hero."" ""It's easy to look at it in retrospect and say 'that was a really cool thing that you did,' but the reality is that they had to take a lot of chances,"" Gupta said. ""They had to take a lot of risks. They had to say goodbye to their family and friends and with not the clear understanding that they'd ever see them again. ""That's a really hard thing to do in the pursuit of trying to learn something for all of humanity."" Mark Kelly was selected as an astronaut in 1996, flying in four missions from 2001 to 2011 aboard Endeavor and Discovery. He visited the ISS four times and clocked over 50 days in space. Kelly's final mission, the last flight of the space shuttle Endeavor, took place as his wife, then-Congresswoman Gabrielle Giffords, recovered from an assassination attempt in January 2011. Also selected for the space program in 1996, Scott Kelly took part in four missions from 1999 to 2016, the first and second aboard NASA shuttles, the third and fourth on Russian Soyuz spacecraft. He totaled 520 days off Earth, the second highest of any astronaut. It was Scott's last mission that would unite the twins, who never went into space at the same time. In November 2012, Scott was chosen to participate in the One-Year Mission, a year-long stay aboard the ISS with cosmonaut Mikhail Korniyenko. The purpose of the mission, to discover more about the long-term effects of space on the human body, required extensive testing of Scott aboard the ISS. But to strengthen the results, the test also required a control subject. Enter Mark. Part of NASA's Human Research Program, the Twins Study was formed of the Kelly twins along with ten researchers, who analyzed samples from Mark and Scott taken before, during and after the mission. Their initial findings, first released January 26, have begun shedding light on the transformations the body undergoes when in space. At a biological level, the team found a decline in bone formation during the second half of Scott's mission, as well as altered gene expression and increased levels of a metabolite in his gut. But the body's response to a flu jab remained the same in orbit, while a ""space gene"" -- a hypothetical change to Scott's genome sequence, triggered by space -- continues to elude scientists (they're still looking). Part of the Twins Study involved tests measuring body response, posture and dexterity. The thrust behind the move is to see how the human body will fare on a six month journey to Mars -- and how fit astronauts will be when they reach the planet. The Functional Task Test found no substantial difference between the results of astronauts in space for six months and a year. However reaction time and accuracy decreased in microgravity. Ahead of a full report due this year, John Charles, chief scientist at the Human Research Program, said in a statement that the results ""have not identified any show-stoppers for longer human spaceflight missions."" The race for Mars is well and truly on. ""Probably the biggest impediment to just going (to Mars) is the cost,"" Scott said in September, adding that if that could be overcome, the technology would follow. He also said he'd put himself forward for the three-year mission. With a bevy of data on Scott's body in space, it would be hard to discount the retired astronaut. As well as an exploratory mission, the venture could lay the groundwork for something more profound. ""NASA believes in redundant systems, and Earth is a system, so if at some point it became feasible to maybe make Mars somewhat like Earth, then there would be a lot of value to that,"" Scott said. ""We don't know how climate's going to affect this planet that we live on,"" Gupta argued. ""We need to start thinking about other places in the universe that we may have to live one day. In order to understand how to do that, we've got to understand what it's going to do to us first."" That's why, in the long term, the Twins Study -- and the sacrifices of Mark and Scott Kelly -- is so important. When the full report comes out this year, we'll be one step closer to the Martian surface -- and perhaps a new home for us all.", -706,2017/2/9,http://www.cnn.com/2017/02/09/opinions/elizabeth-warren-message-robbins/index.html,"Elizabeth Warren, we feel your pain","Mel Robbins is a CNN commentator, legal analyst, best-selling author and keynote speaker. She also is a contributing editor for Success magazine. In 2014, she was named outstanding news talk-radio host by the Gracie Awards. The opinions expressed in this commentary are hers.","Every woman has experienced something like this: being ignored in a meeting, not included in a client dinner, interrupted while speaking, told she's being ""emotional"" when she disagrees or feels strongly about something, passed over for opportunities, or asked to grab the snacks for the meeting. I recently listened to a panel of female CFOs warn an audience of thousands of women about these daily hits a woman can face as she climbs the ladder. One executive in her late 50s, the CFO of a $400 million company, recounted the time she was asked to take notes during a meeting with her male colleagues. It happened last year. (""I laughed and said no,"" she said.) If you think this type of behavior is a fast receding relic of an earlier time when older white men ruled the country, you'd be wrong. It's actually a sign of the times: Listen to Sen. Lindsey Graham crow that silencing Warren was ""long overdue."" Or former Arkansas Gov. Mike Huckabee tweet about ""Sen. Warren aka 'scold.'"" This kind of everyday sexism is not getting scrubbed from the culture as we ""advance"" -- it's getting worse and girls internalize this at a very young age. Recent research showed that at the age of five, girls were more likely to guess that a story about a ""really, really smart person"" was describing a female. By age six, just one year later, girls were more likely to predict that the story was about a male. And if that shift isn't alarming enough, consider that one of the researchers noted that in the past, girls were at least seven before they made this shift. The key to reversing this is teaching confidence to girls and women, who too often silence themselves with the habits of hesitation and self-doubt. Confidence is one of the most important skills you can have in life. Notice, I said skill. For a long time I misunderstood confidence. I thought it was a personality trait or a feeling. It's neither. It's a skill that you develop through deliberate action -- something to be actively encouraged in colleagues and friends, daughters and sisters. Confidence is the ability to ""hear"" your own ideas and lean into them -- to raise your hand, raise your standards, raise your concerns and raise your voice. To persist -- knowing that whether you succeed or fail, are criticized or applauded, you'll survive. The more you act, the more competency builds and it gets easier to put yourself out there the next time. Research shows that it's the most confident people who are the most admired, listened to, and highly regarded. For women, this is acutely important. In one study, managers cited ""lack of confidence"" as the primary reason not to promote a woman, yet they didn't feel comfortable telling her. Elizabeth Warren is a woman who displays tremendous confidence. As a senator, she is fearless and unwavering in her questioning and an excellent example of one of my favorite quotes from activist Maggie Kuhn: ""Speak your mind -- even if your voice shakes."" Warren is one of the few people who isn't afraid of crossing Donald Trump, at every turn. Perhaps that's why it struck such a chord to see her get interrupted, berated and silenced by McConnell as she tried to read from Coretta Scott King's letter on the Senate floor. Yes, she apparently violated an arcane rule, but why then were her male colleagues able to read from the letter uninterrupted? Sen. Tom Udall read it in its entirety. Of course, the line from Mitch McConnell says it all -- she was warned and ""nevertheless, she persisted"" --giving rise to the trending hashtag #ShePersisted. But persist is exactly what we and all of our daughters need to do to succeed. Despite what they say about you or how much you doubt yourself, persist. On a practical level here is how to do this: Speak, even when your voice shakes. No one can take your confidence away from you. Only you can do that. You don't have to feel ready or think you're the kind of ""person who would do such a thing."" You can. Just ask Rosa Parks. She gave a remarkable interview on Pacifica radio a month after her historic act of civil disobedience. She was described by all as a quiet and shy woman, and in fact viewed herself the same way. In the interview she said she didn't think she was ""capable of doing such a thing."" She sure was. Take the action -- and your mind will follow. That's confidence -- the decision to bet on yourself. Warren may have been shut down on the Senate floor, but she didn't shut up. She spoke up. ""The Republicans took away my right to read this letter on the floor -- so I'm right outside, reading it now,"" she said in a Facebook live video immediately after McConnell silenced her -- and then she did what he tried to prevent her from doing: Read the letter from Coretta Scott King. The video has almost 7.5 million views -- crushing the number of people who watched the Sessions' hearing on C-Span. Thanks to her confidence, everyone is now talking about this topic. That is the message that should be heard by women everywhere -- if it matters to you, persist. Confidence isn't about what other people say or do. It's about what you say and do. We women and all of our daughters need to say and do a lot more, and a lot more often.", -707,2017/2/9,http://www.cnn.com/2017/02/09/opinions/trump-buck-stops-there-borger/index.html,"With Trump, the buck stops there -- or anywhere else","(CNN)It was Harry Truman ""?as History 101 shows ""?who famously placed ""The Buck Stops Here"" sign on his desk. The meaning was crystal clear: The president makes the decisions, and bears full responsibility for them.","In this young presidency, there seems to be a new slogan: The buck stops ... there. Or anywhere else, actually. If the White House loses its immigration case before the courts, blame the judges. And if there's some sort of attack, it's their fault, too. Trump tweets: ""If something happens, blame him (the Washington state judge) and court system."" Likewise, if there was confusion at airports worldwide, don't blame the President's hastily arranged travel ban rollout, blame a Delta computer outage, protesters and, of course, the tears of Democratic leader Sen. Chuck Schumer. And what about the actual decision to sign the executive order? Instead of owning it, the President made it clear that, well, he wanted to take more time on implementation, but ""the law enforcement people"" told him otherwise. ""So I wanted to give like a month, then I said, well what about a week? They said well then you're going to have a whole pile of people -- perhaps, perhaps -- with very evil intentions coming in before the restrictions. So there it is folks, it's as plain as you can have it."" In other words, don't look at me; I'm just the President. And speaking of presidents, when was the last time one went out of his way to stoke fear about a possible terror attack? How about Wednesday, when Donald Trump made the case that he knows much more than the public does (as one would expect) and therefore knows we should be very afraid, especially without the travel ban. ""Believe me,"" he said at a session with law enforcement officials. ""I've learned a lot in the last two weeks, and terrorism is a far greater threat than the people of our country understand."" Spreading fear may be a part of a deliberate strategy to encourage support for the ban, but that's a campaign strategy. It doesn't sit well in the oval office. Perhaps there is much more to learn. After all, the President's connection to government, and public service, isn't a long thread. Previously, his link to politics has been buying the favor of public servants, as he told us many times during the campaign. What's more, he has not even been the CEO of a publicly held corporation. He's been the chairman of a private family business, surrounding himself with those indebted to him, and blood relatives. (Paging: Ivanka Trump and Nordstrom) Suddenly, the President finds himself in a world in which he faces co-equal branches of government and foreign leaders who are responsive to public opinion in their own countries, rather than to his opinion. (Exception: Friend Vladimir Putin) In business, Trump is king. So while he may understand the separation of powers, he simply rejects the notion. In his view, the 9th Circuit judges were ""disgraceful"" when they interrogated lawyers. In fact, the very idea that the branches of government don't simply salute when the President wants to do something is anathema to him, considering what he has known his whole life. It's not disgraceful; it's democracy. Just ask Judge Gorsuch.", -708,2017/2/9,http://www.cnn.com/2017/02/09/opinions/white-house-terrorism-list-undermines-the-case-for-travel-ban-bergen/index.html,White House's own terrorism list torpedoes the case for travel ban,"Peter Bergen is CNN's national security analyst, a vice president at New America and a professor of practice at Arizona State University. He is the author of ""United States of Jihad: Investigating America's Homegrown Terrorists.""","Conspicuous by their absence on the White House list of terrorists carrying out major attacks against Western targets were Iraqis, Somalis, Sudanese and Yemenis, who are from four of the seven Muslim countries that the Trump administration is seeking to suspend travel from. (Note: An earlier version of this article incorrectly said there were no Libyans on the White House list of attackers. This article has been updated to reflect the omission.) Instead, the incidents listed on the White House terrorism list identified France, the United States and Belgium as the countries supplying the most anti-Western terrorists. With great fanfare on Monday the White House released a list of 78 terrorist attacks since September 2014. A White House official described them as ""major terrorist attacks targeting the West."" The list was released after President Trump's claim that the media is under-covering terrorist attacks, a contention that is not borne out by the evidence. The White House's own terrorism list underlines the arbitrary nature of the travel ban because, by the White House's own account, the countries that are generating the most significant number of terrorists threatening the West are from the West. The list also underlines the fact that it is American citizens who largely foment terrorism in the United States. This is also the case in countries such as France and Belgium, where it is French and Belgian citizens who are often the ones conducting significant acts of terrorism. Of the total of 90 terrorists on the White House list, at most nine are from travel ban countries. Indeed, 50 of the terrorists ""?more than half -- are from Christian-majority countries in the West. On the list, which includes the identities of attackers where they are known, France leads the way with 16 French terrorists, followed by the United States with 13 American terrorists, 11 of whom are US citizens and two of whom are legal permanent residents. Of these 29 American and French terrorists, only two even have family origins in travel ban countries and they are both from Somalia. Belgium comes in third place with seven terrorists. In descending order after that are: --Tunisians (6), --Libyans and Bengalis are tied with 5, --Saudis (4), --Syrians, Algerians and Indonesians are tied with 3 each; --Afghans, Australians, Bosnians, Canadians, Danes, Germans, Russians and Turks are tied with two each and --One each from Chad, Egypt, the Emirates, Iran, Morocco, the Palestinian Territories, Pakistan, Sweden, and the United Kingdom. These findings may cause a problem for the White House as it makes the argument that citizens of Iran, Iraq, Libya, Somalia, Syria, Sudan and Yemen are particularly likely to foment anti-Western terrorism, when the White House's own terrorism list demonstrates that this is not the case. For example, an unspecified number of Filipinos participated in a botched attempt to blow up a bomb outside the US embassy in Manila last year. In 15 of the 78 attacks the perpetrators have not been identified. I took the White House terrorism list and grouped it by nationalities below. The countries with the largest number of identified terrorists are at the beginning, while attacks where the perpetrator was not identified are listed at the end. The wording added by me is in boldface. FRENCH TOURS, FRANCE December, 2014 TARGET: Three police officers wounded in knife attack ATTACKER: Bertrand Nzohabonayo (French citizen, convert from Burundi) PARIS, FRANCE January, 2015 TARGET: One police officer and four hostages killed in shooting at a kosher supermarket ATTACKER: Amedy Coulibaly (French citizen born in France, family from Mali) NICE, FRANCE February, 2015 TARGET: Two French soldiers wounded in knife attack outside a Jewish community center ATTACKER: Moussa Coulibaly (French originally from Mali) LYON, FRANCE June, 2015 TARGET: One civilian killed in beheading and explosion at a chemical plant ATTACKER: Yasin Salhi (French of Moroccan-Algerian descent) MAGNANVILLE, FRANCE June, 2016 TARGET: One police officer and one civilian killed in knife attack ATTACKER: Larossi Abballa (French, born in France, family origin not clear) NORMANDY, FRANCE July, 2016 TARGET: One priest killed in knife attack ATTACKERS: Adel Kermiche (French-Algerian) and Abdel Malik Nabil Petitjean (French, from eastern France) PARIS, FRANCE September, 2016 TARGET: One police officer wounded in raid after VBIED failed to detonate at Notre Dame Cathedral ATTACKERS: Sarah Hervouet, Ines Madani, and Amel Sakaou (French, family origins French or unclear. ) QUEENSLAND, AUSTRALIA August, 2016 TARGET: Two killed and one wounded in knife attack at a hostel frequented by Westerners ATTACKER: Smail Ayad (French, family origin unclear) PARIS, FRANCE November, 2015 TARGET: At least 129 killed and approximately 400 wounded in series of shootings and IED attacks ATTACKERS: Brahim Abdelslam, (French, Moroccan-Algerian family) Saleh Abdeslam, (French, Moroccan descent) Ismail Mostefai, (French, family origin not clear) Bilal Hadfi, (French, Moroccan descent) Samy Amimour, (French, Algerian descent) Foued Mohamed Aggad, (French, Algerian-Moroccan descent) AMERICANS NEW YORK CITY, NY, USA October, 2014 TARGET: Two police officers wounded in knife attack ATTACKER: US person (American citizen, African-American) GARLAND, TX, USA May, 2015 TARGET: One security guard wounded in shooting at the Prophet Muhammad cartoon event ATTACKERS: Two US persons (Americans, one had a father from Pakistan, the other was African-American) BOSTON, MA, USA June, 2015 TARGET: No casualties; one police officer attacked with knife ATTACKER: US person (American, African-American) MERCED, CA, US November, 2015 TARGET: Four wounded in knife attack on a college campus ATTACKER: US person (American, family originally from Pakistan) SAN BERNARDINO, CA December, 2015 TARGET: 14 killed and 21 wounded in coordinated firearms attack ATTACKERS: Two US persons (American citizen whose family emigrated from Pakistan and legal permanent resident, originally from Pakistan.) PHILADELPHIA, PENNSYLVANIA January, 2016 TARGET: One police officer wounded in shooting ATTACKER: US person (American, African-American) COLUMBUS, OH, US February, 2016 TARGET: Four civilians wounded in machete attack at a restaurant ATTACKER: US person (American, originally from Guinea) ORLANDO, FL, US June, 2016 TARGET: 49 killed and 53 wounded in shooting at a nightclub ATTACKER: US person (American, family originally from Afghanistan.) ST. CLOUD, MN, US September, 2016 TARGET: 10 wounded in knife attack in a mall ATTACKER: Dahir Ahmed Adan (American, family originally from Somalia.) NEW YORK, NY; SEASIDE PARK AND ELIZABETH, NJ, US September, 2016 TARGET: 31 wounded in bombing in New York City; several explosive devices found in New York and New Jersey; one exploded without casualty at race in New Jersey; one police officer wounded in shootout ATTACKER: Ahmad Khan Rahami (American citizen, born in Afghanistan.) COLUMBUS, OH, US November, 2016 TARGET: 14 wounded by individuals who drove a vehicle into a group of pedestrians and attacked them with a knife ATTACKER: US person (American legal resident, originally from Somalia.) BELGIANS These Belgians were both involved in the Paris attacks in November 2015 Chakib Ahrouh, (Belgian-Moroccan) and Abdelhamid Abaaoud (Belgian-Moroccan) BRUSSELS, BELGIUM March, 2016 TARGET: At least 31 killed and 270 wounded in coordinated bombings at Zaventem Airport and on a subway train ATTACKERS: Khalid el-Bakraoui, (Belgian) Ibrahim el-Bakraoui, (Belgian) Najim Laachraoui (Belgian-Moroccan), Mohammed Abrini (Belgian) BRUSSELS, BELGIUM October, 2016 TARGET: Two police officers wounded in stabbing ATTACKER Belgian national TUNISIANS NICE, FRANCE July, 2016 TARGET: 84 civilians killed and 308 wounded by an individual who drove a truck into a crowd ATTACKER: Mohamed Bouhlel (Tunisian) SOUSSE, TUNISIA June, 2015 TARGET: 38 killed and 39 wounded in shooting at a beach frequented by westerners ATTACKERS: Seifeddine Rezgui (Tunisian) PARIS, FRANCE January, 2016 TARGET: No casualties; attacker killed after attempted knife attack on Paris police station ATTACKER: Tarek Belgacem (Tunisian) TUNIS, TUNISIA March, 2015 TARGET: 21 tourists killed, including 16 westerners, and 55 wounded in shooting at the Bardo Museum ATTACKERS: Two ISIL-aligned extremists (Tunisians) BERLIN, GERMANY December, 2016 TARGET: 12 killed and 48 wounded by individual who drove truck into a crowded market ATTACKER: Anis Amri (Tunisian) LIBYANS TRIPOLI, LIBYA January, 2015 TARGET: Ten killed, including one US citizen, and five wounded in bombing and shooting at a hotel frequented by westerners ATTACKERS: As many as five ISIL-Libya members (Libyans) BENGALIS DHAKA, BANGLADESH July, 2016 TARGET: 22 killed, including one American and 50 wounded after hours-long siege using machetes and firearms at holy Artisan Bakery ATTACKERS: Nibras Islam, Rohan Imtiaz, Meer Saameh Mubasheer, Khairul Islam Paye, and Shafiqul Islam Uzzal (Bengalis) SAUDIS RIYADH, SAUDI ARABIA November, 2014 TARGET: One Danish citizen wounded in shooting ATTACKERS: Three Saudi Arabia-based ISIL members (Saudis) RIYADH, SAUDI ARABIA January, 2015 TARGET: Two US citizens wounded in shooting ATTACKER: Saudi Arabia-based ISIL supporter (Saudi) SYRIANS ANSBACH, GERMANY July, 2016 TARGET: At least 15 wounded in suicide bombing at a music festival ATTACKER: Mohammad Daleel (Syrian) MALMO, SWEDEN October, 2016 TARGET: No casualties; mosque and community center attacked with Molotov cocktail ATTACKER: Syrian national ISTANBUL, TURKEY January, 2016 TARGET: 12 German tourists killed and 15 wounded in suicide bombing ATTACKER: Nabil Fadli (Syrian) ALGERIANS TIZI OUZOU, ALGERIA September, 2014 TARGET: One French citizen beheaded ATTACKER: Jund al-Khilafah in Algeria (Algerian) PARIS, FRANCE April, 2015 TARGET: Catholic churches targeted; one civilian killed in shooting, possibly during an attempted carjacking ATTACKER: Sid Ahmed Ghlam (Algerian immigrant) CHARLEROI, BELGIUM August, 2016 TARGET: Two police officers wounded in machete attack ATTACKER: Khaled Babouri (Algerian) INDONESIANS JAKARTA, INDONESIA January, 2016 TARGET: Four civilians killed and more than 20 wounded in coordinated bombing and firearms attacks near a police station and a Starbucks ATTACKERS: Dian Joni Kurnaiadi, Muhammad Ali, Arif Sunakim, and Ahmad Muhazan bin Saron (Indonesians) AFGHANS MELBOURNE, AUSTRALIA September, 2014 TARGET: Two police officers wounded in knife attack ATTACKER: Abdul Numan Haider (Afghan) KABUL, AFGHANISTAN June, 2016 TARGET: 14 killed in suicide attack on a bus carrying Canadian Embassy guards ATTACKER: ISIL-Khorasan operative (Afghan) AUSTRALIANS SYDNEY, AUSTRALIA December, 2014 TARGET: Two Australians killed in hostage taking and shooting ATTACKER: Man Haron Monis (Australian citizen) SYDNEY, AUSTRALIA September, 2016 TARGET: One civilian wounded in knife attack ATTACKER: Ihsas Khan (Australian) CANADIANS QUEBEC, CANADA October, 2014 TARGET: One soldier killed and one wounded in vehicle attack ATTACKER: Martin Couture-Rouleau (Canadian convert) OTTAWA, CANADA October, 2014 TARGET: One soldier killed at war memorial; two wounded in shootings at Parliament building ATTACKER: Michael Zehaf-Bibeau (Libyan Canadian) DANISH COPENHAGEN, DENMARK February, 2015 TARGET: One civilian killed in shooting at a free-speech rally and one security guard killed outside the city's main synagogue ATTACKER: Omar Abdel Hamid el-Hussein (Danish citizen) COPENHAGEN, DENMAKR September, 2016 TARGET: Two police officers and a civilian wounded in shooting ATTACKER: Mesa Hodzic (Danish) BOSNIANS ZVORNIK, BOSNIA April, 2015 TARGET: One police officer killed and two wounded in shooting ATTACKER: Nerdin Ibric (Bosnian) RAJLOVAC, BOSNIA December, 2015 TARGET: Two Bosnian soldiers killed in shooting ATTACKER: Enes Omeragic (Bosnian) GERMANS HANOVER, GERMANY February, 2016 TARGET: One police officer wounded in knife attack ATTACKER: Safia Schmitter (German-Moroccan) WURZBURG, GERMANY July, 2016 TARGET: Four civilians wounded in axe attack on a train ATTACKER: Riaz Khan Ahmadzai (German-Pakistani) RUSSIANS ISTANBUL, TURKEY June, 2016 TARGET: 45 killed and approximately 240 wounded at Ataturk International Airport ATTACKERS: Rakhim Bulgarov, Vadim Osmanov, and an unidentified ISIL operative (Russians) TURKS MARSEILLES, FRANCE January, 2016 TARGET: One Jewish teacher wounded in machete attack ATTACKER: 15 year-old Ethnic Kurd from Turkey (Turk) ISTANBUL, TURKEY March, 2016 TARGET: Four killed and 36 wounded in suicide bombing in the tourist district ATTACKER: Mehmet Ozturk (Turk) EMIRATIS ABU DHABI, UAE DATE: December 2014 TARGET: One American killed in knife attack ATTACKER: Dalal al-Hashimi (Emirati) PAKISTANI KARACHI, PAKISTAN April, 2015 TARGET: One US citizen wounded in knife attack ATTACKERS: Pakistan-based ISIL supporters (Pakistani) MOROCCANS PARIS, FRANCE August, 2015 TARGET: Two civilians and one US soldier wounded with firearms and knife on a passenger train ATTACKER: Ayoub el-Khazzani (Moroccan) PALESTINIANS COPENHAGEN, DENMARK September, 2015 TARGET: One police officer wounded in knife attack ATTACKER: Palestinian national (Palestinian) IRAN-BORN AUSTRALIAN PARRAMATTA, AUSTRALIA October, 2015 TARGET: One police officer killed in shooting ATTACKER: Farhad Jabar (Iranian born Australian) BRITISH LONDON December, 2015 TARGET: Three wounded in knife attack at an underground rail station ATTACKER: Muhyadin Mire (British citizen) EGYPTIAN KUWAIT CITY, KUWAIT TARGET: No casualties; vehicle carrying three US soldiers hit by a truck ATTACKER: Ibrahim Sulayman (Egyptian) November, 2016 CHADIAN TARGET: No casualties; attacker arrested after opening fire at entrance of US Embassy ATTACKER: Chadian national (Chad) SWEDISH One of the 2016 Brussels attackers is Osama Krayem (Swedish) UNIDENTIFIED ATTACKERS MANILA, PHILIPPINES November, 2016 TARGET: No casualties; failed IED attempt near US Embassy ATTACKERS: Philippine nationals aligned with the Maute group (Unspecified number of Filipinos) KARAK, JORDAN December, 2016 TARGET: 10 killed and 28 wounded in shooting at a tourist site ATTACKERS: Several gunmen EL GORA (AL JURAH), EGYPT June, 2015 TARGET: No casualties; camp used by Multinational Force and Observers (MFO) troops attacked in shooting and bombing attack ATTACKERS: Unknown number of ISIL-Sinai members HAMBURG, GERMANY October, 2016 TARGET: One killed in knife attack ATTACKER: Unknown LUXOR, EGYPT June, 2015 TARGET: One police officer killed by suicide bomb near the Temple of Karnak ATTACKER: Unidentified HASANAH, EGYPT October, 2015 TARGET: 224 killed in downing of a Russian airliner ATTACKER: Unidentified ISIL-Sinai operatives DINAJPUR, BANGLADESH November, 2015 TARGET: One Italian citizen wounded in shooting ATTACKER: Unidentified CAIRO, EGYPT July, 2015 TARGET: One killed and nine wounded in VBIED attack at Italian Consulate ATTACKER: Unidentified ISIL operatives CAIRO, EGYPT July, 2015 TARGET: One Croatian national kidnapped; beheaded on August 12 at an unknown location ATTACKER: Unidentified ISIL-Sinai operative EL GORA, EGYPT September, 2015 TARGET: Four US and two MFO troops wounded in IED attack ATTACKER: Unidentified DHAKA, BANGLADESH September, 2015 TARGET: One Italian civilian killed in shooting ATTACKER: Unidentified EL GORA, EGYPT October, 2015 TARGET: No casualties; airfield used by MFO attacked with rockets ATTACKER: Unidentified ISIL-Sinai operatives RANGPUR, BANGLADESH October, 2015 TARGET: One Japanese civilian killed in shooting ATTACKER: Unidentified DERBENT, RUSSIA December, 2015 TARGET: One killed and 11 wounded in shooting at UN World Heritage site ATTACKER: Unidentified ISIL-Caucasus operative CAIRO, EGYPT January, 2016 TARGET: Two wounded in drive-by shooting outside a hotel frequented by tourists ATTACKERS: Unidentified ISIL operatives HURGHADA, EGYPT January, 2016 TARGET: One German and one Danish national wounded in knife attack at a tourist resort ATTACKER: Unidentified ESSEN, GERMANY April, 2016 TARGET: Three wounded in bombing at Sikh temple ATTACKERS: Three identified minors ", -709,2017/2/9,http://www.cnn.com/2017/02/09/opinions/ukraine-abandoned-bociurkiw-opinion/index.html,"In its fight against Putin, Ukraine feels abandoned by the West","Michael Bociurkiw is a writer and development professional who has worked on emergencies on several continents, most recently as a spokesman for the Organization for Security and Co-operation in Europe. The opinions expressed in this commentary are his.","""The dire situation in eastern Ukraine is one that demands clear and strong condemnation of Russian actions,"" the new US ambassador to the United Nations said. "" ... The United States stands with the people of Ukraine who have suffered for nearly three years under Russian occupation and military intervention. Until Russia and the separatists it supports respect Ukraine's sovereignty and territory integrity this crisis will continue."" Haley went on to say that the US Crimea-related sanctions will remain in place until Russia returns the Crimean Peninsula to Ukraine. The statement came as a horrific spike in violence was taking place in eastern Ukraine, killing dozens and bringing more than 11,000 explosions in one day alone along the front line, according to the Organization for Security and Cooperation in Europe. Haley's tough talk could have come straight out of the Obama administration playbook. But whether the harsh tongue-lashing against Russia reflected the views of the newest occupant of the White House is not entirely clear. Indeed, fast-forward to Sunday and Vice President Mike Pence was telling George Stephanopoulos in an interview that aired on ABC's ""This Week"" that the Trump administration will decide in the coming months whether to lift sanctions against Russia in return for joint action against ISIS and international terrorism. The diplomatic mixed signals could not have happened at a worse time and have left Ukrainian diplomats scrambling for more clarification from the Trump White House. In Kiev, the feeling is that Russian sanctions are the only remaining hammer left in an increasingly ineffective diplomatic toolbox. And should Washington withdraw support for sanctions, it could very well trigger a chain reaction, whereby European Union states such as Italy and Greece follow suit. There are already hints that the Trump administration will lift sanctions, but in a step-by-step process. As violence began to flare in eastern Ukraine, the White House announced it is loosening sanctions imposed by Barack Obama on Russia's Federal Security Service. Could the next step be a reversal of the expulsion of Russian diplomats ordered by Obama in the last days of his presidency? Whatever future action taken by the White House, one thing is abundantly clear: Tensions along the front line in eastern Ukraine have never been higher, and the prospect for a full-blown escalation is real. Both sides have moved plenty of heavy weaponry out of storage and in close proximity to each other. Multiple Launch Rocket Systems, proscribed by the Minsk agreement, are also back in action. The human toll is almost incalculable: Several dozen deaths in the past days have brought the total death toll since the conflict began in 2014 close to 10,000. Most of the action has taken place in the flashpoint industrial city of Avdiivka, home to about 20,000 people and the location of a coke and chemical plant that not only provides heating to the surrounding community but also the raw material for Ukraine's vital steel industry. Alexander Hug, the Deputy Chief Monitor of the Organization for Security and Cooperation in Europe, said that continued shelling, especially at the coke plant, could trigger a humanitarian and ecological disaster. Also worrisome is that fighting has resumed in previously quiet areas, including those close to the strategic port city of Mariupol. Though the Ukrainian side is far more battle-ready than when the conflict first began, there are real fears the rebel side is positioning to take more ground. After the humiliating fall of Debaltseve, it is unlikely that Kiev will ignore increasing belligerence from the rebel side. If sanctions are lifted, they will likely have no choice but to move toward escalation. This could also lead to anxious and unpredictable actions on the part of Kiev. The clear signal I picked up during a recent visit to Ukraine is that its people are feeling increasingly abandoned and can no longer rely on traditional, international security guarantees. As Ukrainian parliamentarian Nataliya Katser-Buchkovska says, Ukraine needs to hear from the ""guarantors of the Western order"" that it will not be left alone in its battle against outside aggressors. Few people would disagree that the Minsk agreements have had little impact in bringing peace to the battle-weary people of eastern Ukraine. But they are the only markers, signed by all sides, that set standards of behavior in a conflict that has displaced about 3 million and could force many thousands more to flee. Contradictory messages by the White House on Russia could ignite the fuse that pushes this grinding conflict beyond the point of no return.", -710,2017/2/9,http://www.huffingtonpost.com/2017/02/09/michigan-lgbtq-rights-rap_n_14661902.html,81-Year-Old Man Stuns City Council Meeting With LGBTQ Rights Rap,Wowza!,"A Michigan retiree expressed his support of a local LGBTQ non-discrimination ordinance by performing a whimsical rap in front of his city's council.- As seen in the video above,-Donald Tassie, 81, received thunderous applause from Jackson residents after taking the mic to back a citywide ordinance that prohibits discrimination-based on sexual orientation and gender identity in employment, housing and public accommodations Tuesday. The former superintendent at Jackson's da Vinci High School, Tassie deemed himself ""Tr. T""?and wore a sweatshirt emblazoned with ""Be More Kind""?before showing off some surprising MC chops. - ""Kindness, caring, compassion, too/is what we all need to do,""assie rapped.-""don""t be afraid, don""t be shy/C'lon now, let's give it a try.""Tassie told Michigan Live that he planned to discuss the ordinance in a speech, but opted for a more creative approach in an effort to liven up the crowd.-""I had a whole speech prepared. We got started and people said things I was going to say,""?he said. ""there was a part of me that thought it was time for something different, I said, ""Let's try another thing.""?Tassie said he began getting involved with the local LGBTQ community as an ally after the death of his wife, Tuey, in 2001. Out of all of his friends and family, a lesbian couple, Iris and Dianne, offered him the most support after Tuey's passing, he said.- ""they are my dearest best friends after that,""?he told Michigan Live. ""how could I deny them, my friends, the same rights that I have?""?No word on whether or not Tassie's rap swayed their views, but Jackson city council members voted 5-2 in favor of the non-discrimination ordinance. For more creative ways to combat bigotry, don""t miss the Queer Voices newsletter.-", -711,2017/2/9,http://www.huffingtonpost.com/2017/02/09/keith-cooper-pardon-pence-holcomb_n_14661894.html,An Innocent Man Mike Pence Refused To Pardon Finally Sees Justice,"Current Indiana Gov. Eric Holcomb has pardoned Keith Cooper for what he called a ""wrongful"" conviction.","In 1997, a man attempted to snatch a woman's purse in Elkhart, Indiana. Keith Cooper wasn""t far from the scene of the incident. The 29-year-old had just picked up some groceries for his family and was walking home to make his children breakfast and watch-""�X-Men""?with them. Instead, he found himself in a police station awaiting charges for the purse-snatching.-Then things got worse: A detective with the Elkhart Police Department connected Cooper to an armed robbery at an apartment complex where a shooting took place. ""This is crap,""?Cooper told the detective at the time, The Indianapolis Star reported. ""I didn""t do the crime I'm going to trial for, let alone this one.""?Cooper was found innocent of the purse snatching, but convicted of armed robbery. He spent the next 10 years of his life behind bars for a crime he never committed. In 2006, he was finally released from prison after DNA evidence and witness statements proved his innocence.- The Indiana Court of Appeals overturned his conviction, but there was a catch: Cooper could be released immediately with a felony still on his record, or he could face a new trial. Cooper wanted to see his family, so chose to get out as soon as possible. Hoping to be pardoned, Cooper wrote a letter in 2013 to then-Indiana Gov. Mike Pence (R), who is now the U.S. vice president. The Indiana Parole Board recommended in 2014 that Pence grant the pardon. Last September, Pence finally wrote back to Cooper to say he wasn""t going to pardon him. ""It crushed me a little bit,""?Cooper, a 49-year-old forklift operator, told the Chicago Tribune.-""I haven""t give up hope. My hope is what keeps me strong, but I'm human and it hurts.""?Pence said he wouldn""t pardon Cooper until he had exhausted all of his options in court. On Thursday,-Gov. Eric Holcomb (R) came to a different conclusion. He gave Cooper his pardon. This morning, I pardoned Keith Cooper. ""After careful and thoughtful consideration and review, something I""ve thought about every day over the last month, just earlier today I issued a pardon to Mr. Keith Cooper for his past and I believe wrongful armed robbery felony [conviction],""?Holcomb said, according to the South Bend Tribune. ""since that conviction in 1997 many pieces of the information that were out and about ...-have changed,""?Holcomb added, noting that ""A victim, an informant, even the deputy prosecutor who convicted Mr. Cooper on that first crime all have stated support or no objection to a pardon.""?Now, Cooper can focus on his family again. ""I was watching my children grow up through pictures,""?Cooper told the Indianapolis Star of his time in prison. ""And that's the hardest thing I couldn""t swallow.""?,-1""", -712,2017/2/9,http://www.huffingtonpost.com/2017/02/09/trump-executive-order-cartels-crime_n_14661606.html,Trump Signs Three Executive Orders Targeting Drug Cartels And Crime,The orders were signed during the swearing-in ceremony of Attorney General Jeff Sessions.,"WASHINGTON, Feb 9 (Reuters) - U.S. President Donald Trump used the swearing-in ceremony of Attorney General Jeff Sessions on Thursday to sign three executive orders, including ones targeting transnational drug cartels and those who commit crimes against law enforcement. ""these dangerous times require a determined attorney general,""?Trump said at an Oval Office ceremony for Sessions, who said rising crime is a ""dangerous, permanent trend""?in the United States and also promised to ""end this lawlessness""?of illegal immigration. (Reporting by Steve Holland; Writing by Doina Chiacu; Editing by David Alexander and James Dalgleish)", -713,2017/2/9,http://www.huffingtonpost.com/monet-euan/spread-the-love_b_14535144.html,Spread the Love,,"For many, Valentine's Day is typically focused on romantic love between two people. For me, Valentine's Day has always been about sharing love with everyone in my circle and celebrating all the love that is present right here, right now""?-""�not mourning the absence of another, but embracing the beauty of the now. Single or in relationship, Valentine's Day is one of my favorite days of the year. Many of my friends, male and female, experience stress, sadness, and longing at this time of year, and while I understand how they might feel this way, to dwell in a depressive state focused on that which seems lacking is ultimately a waste of time and energy. It's also a way of negating any form of love present in your life right now, including the love you have for yourself. There are so many opportunities to spread the love on Valentine's Day, and perhaps this is an important opportunity to demonstrate love and compassion towards yourself. I think most of us realize by now that the basis for long-term real love""?-""�true love with another person""?-""�begins with self-love. Every Valentine's Day, regardless of whether I am single or dating someone, I always buy myself something special. Work within your budget and do something that feels indulgent and blissful. This is about honoring and appreciating yourself. I love to schedule a spa session, indulge in my favorite chocolate delicacies, and buy myself beautiful lingerie--especially when I'm single. Nothing makes me feel more sensual and luxurious than fabulous lingerie even if I'm the only one who gets to appreciate it! Then, I turn my attention to friends who may be feeling depressed, left out, or lonely. I send valentines to my favorite people and gift my friends and family with a beautiful candle or treat I know they will enjoy. Letting others know they are loved and appreciated, even if it's simply through a text message, gives them the heartwarming gift of feeling seen. Whatever you choose, do it with joy and revel in pleasure, which incidentally is the best way to magnetize more love your way. What could be more attractive than a generous, loving person radiating happiness and engaging [heart]fully in all life is offering in this present moment? These are the beautiful people you encounter throughout life who literally glow from the inside out making them irresistible to all. How are you going to spread the love this Valentine's Day? ", -714,2017/2/9,http://www.huffingtonpost.com/2017/02/09/pope-francis-trump-criticism_n_14661504.html,Pope Francis Has A Very Clear Message For 'Christians' Who Build Walls,Like the one who lives in the White House.,"Pope Francis appeared to continue his subtle indictment of President Donald Trump-on Wednesday with another passionate appeal. While never directly mentioning Trump or his ban on refugees, Francis renewed his calls for Christians to build bridges, not walls. ""In the social and civil context as well, I appeal not to create walls but to build bridges,""?he said during a catechism lesson, according to The Associated Press. ""to not respond to evil with evil. To defeat evil with good, the offense with forgiveness. A Christian would never say ""�you will pay for that.""?Never. ""that is not a Christian gesture. An offense you overcome with forgiveness. To live in peace with everyone.""?Francis has made statements like this before. After a papal trip to Mexico last year, a reporter asked Francis to comment on Trump's plan to build a wall along the U.S.-Mexico border, and to make Mexico pay for it. In response, Francis said, ""A person who only thinks about building walls, wherever they may be, and not building bridges, is not Christian.""?The pope's comments on Wednesday coincided with the feast day of-St. Josephine Bakhita, a 19th-century Sudanese woman who was kidnapped, sold into slavery, and eventually traveled to Italy. There, she entered a convent and became a nun. She is the patron saint of Sudan, one of the seven Muslim-majority countries on Trump's travel ban.- Pope Francis hasn""t directly addressed Trump's executive order, but a senior member of the Vatican hierarchy has expressed the Holy See's-disapproval. Many U.S. Catholic bishops have also spoken out against the order. During his Wednesday address, Francis asked Catholics to pray for Myanmar's Rohingya Muslims refugees, whom human rights groups-believe are being persecuted-by the country's army and police.- ""these are good people, peaceful people,""?Francis said. ""they'r not Christians, but they'r good, our brothers and sisters. And they have been suffering for years. they're been tortured and killed, simply because they are continuing their traditions, their Muslim faith. Let us pray for them.""?,-1""", -715,2017/2/9,http://www.huffingtonpost.com/richard-bangs/the-absolute-top-ten-best_b_14583852.html,The Absolute Top Ten Best Things to Do in Seattle (The City of the Century),,"Prior to moving to Seattle in 1996, I'd lived in New York, Chicago, Los Angeles, Washington, D.C. and San Francisco, and had traveled to many of the major cities of the world. By comparison, Seattle seemed beautiful, but small, provincial, and a little isolated...a pre-teen of a city. But, somehow, in the intervening years, Seattle grew up, came of age, blossomed to full flower. What makes Seattle's leap so unique is that it sprouts from a foundation rooted in the land and the long-held values of its people. Unlike other cities, Seattle seeks diversity and experiences that respect its past, and seed its future. Its evolution is singular, and maps to organic maturation timelines, like a century plant, or a Himalayan lily, or desert sage after a rain. Nothing seems to happen for a long while, and then, all of a sudden, when the timing and conditions are just right: a growth spurt, a brilliant bloom, and a metamorphosis - all enabled by the same DNA. From philanthropy to tech, life sciences to art and architecture; from progressive social initiatives, to sustainability, and even from coffee, craft beer, and ground-breaking dining, Seattle not just bends the light today, but thrusts it to a better future. I now live in Los Angeles, and have for a decade, but I head back to Seattle regularly to see my eldest son and old friends, and each time I am pleasantly shocked by how much fruit the city has borne. It is a city worth seeing. It may be the city of the century. So, after probing about, and asking many friends, here are the top ten things to see and do in Seattle today: 1) Seattle Public Library I met the architect Rem Koolhaas in 2003, and he modestly described his design for the Seattle Public Library. When it opened a year later I was dumbfounded. It stands today as one of the most innovative library projects in the world. Of glass and steel, it is 11-stories high, with a stunning original construction, consisting of several discrete ""floating platforms"" seemingly wrapped in a large steel net around glass skin. It can hold about 1.45 million books and other materials, and includes over 400 computers open to the public. Paul Goldberger, writing in The New Yorker, declared the Seattle Central Library ""the most important new library to be built in a generation, and the most exhilarating."" My favorite section of the building is the ""Books Spiral,"" (designed to display the library's nonfiction collection without breaking up the Dewey Decimal System classification onto different floors or sections). The collection spirals up through four stories on a continuous series of shelves. This allows visitors to peruse the entire collection without using stairs or traveling to a different part of the building. Pretty impressive. Architectural tours of the building are offered daily. 2) Mbar The Damask rose of city restaurants is the newly opened rooftop mbar, a dialectic with a view, virtuoso fare, and a purpose. I supped recently with proceeds going to help Syrian refugees, so the experience had heightened meaning. You can see the future here (the space sprawls the 14th floor; two-thirds of it outside). Amazon, in all its glory, has a flock of cranes crafting new buildings as you dine, and beyond is the backdrop of the Space Needle, the MoPop museum, South Lake Union, and much of the Seattle skyline. Syrian-born Wassef Haroun and his wife, Racha, own mbar, and have infused it with hints of their Middle Eastern backgrounds, but the magic is performed by Top Chef alum Jason Stratton. He has authored a menu filled with Northwest ingredients enhancing dishes that span the map from Italy to Lebanon to China. If there is one restaurant to experience while visiting Seattle, this is it. 3) The Theo Chocolate Factory Tour Everyone in my family dies for chocolate, so this is a fav. In the Fremont neighborhood, not far from the infamous sculpture of a troll beneath the Aurora Bridge, is Theo Chocolate, a Willy Wonka-esque golden ticket offering up one of the most delicious factory tours outside of cinema. Silver pipes flowing with chocolate are everywhere. Everybody dons a hair net to keep it all as sanitary as possible. The tour dives into the history of cocoa, including the transformation of the football-sized cocoa fruit into eatable decadence. The Latin name for the cacao fruit is Theobroma cacao, which means 'Food of the Gods.' The tour also features the social and environmental issues related to cocoa and cocoa farmers. Theo Chocolate was the first U.S. company to make organic fair trade chocolate, with payments to farmers 2-3 times higher than the market rate. The first half hour of the tour is seated; the second is a guided walk where you witness the magic transmutation of bean to bar. It's a bit like a coffee factory or micro-brewery, in that the process goes from giant tubs of beans into an array of machines, including winnowers, roasters, mixers, mills, and refiners. Of course, you exit through the gift shop, but this is one time when the detour is welcome. 4) Museum of Pop Culture (n��e Experience Music Project) This began as a vanity tribute to Jimi Hendrix, conceived and marshalled by uber-fan Paul Allen, the Microsoft co-founder and billionaire club member. He hired Frank Gehry, who bent the sheet-metal exterior to look like liquid music, or a smashed guitar, depending upon your perspective. When it opened in 2000, it was controversial, to say the least...some saw it as a blight on the land. New York Times architecture critic Herbert Muschamp described it as ""something that crawled out of the sea, rolled over, and died."" But, now it is an icon of the city scape, and a must-see when in town. The outside of the building features a fusion of textures and colors, including gold, silver, deep red, blue and a ""shimmering purple haze."" The interior is filled with interactive exhibits spanning the range of pop culture, and is worth a full-day exploring. 5) Pike Place Market Often when friends and families visited, my first stop when showing them around was Pike Place Market. Since 1907 this flamboyant waterfront public market has been tossing around its wares. It's a perennial fish-mongers market, a sensory rumpus of foods and flowers, along with gewgaws, gimcracks, bric-a-brac and even objets d'art. Merchants enthusiastically pitch salmon to one other, as much for the crowds as for expediency. Down the stairs is a vintage Starbucks, claiming to be the original. 6) Duckboat Tour I took my 8-year-old son on a Duckboat Tour, and he quacked up with delight. One of the best parts of these tours is the non-stop bill of bad jokes and banter issued by the driver/guide. The yellow contraptions are restored World War II amphibious vehicles, and they pass many of the great sites of the city before plunging into Lake Union for a paddle around the lake, past the famous houseboat of ""Sleepless in Seattle"" fame. No down about it; it's big fun. 7) Mount Si One of my first outdoor excursions when I moved to the Seattle area was climbing Mount Si, a short drive east of the Microsoft campus, where I worked. I was testing a new communications satellite system for use in Africa, and needed altitude and a clear landscape, so took the 4-mile vertical hike. From the summit, I could see clear across Seattle to the Olympic Mountains. I went on to trek the peak another dozen times, sometimes with my then infant son on my shoulders, sometimes up and back before a summer brunch. It is one of the most satisfying urban hikes anywhere. 8) Space Needle It's a classic, but still tops the list. My elder sister attended the 1962 World's Fair, and came back telling tall tales of the rotating spaceship that scrapes the sky. Then I saw the 1974 Warren Beatty film, The Parallax View, which features the Space Needle in a critical scene, and I knew I had to make the pilgrimage. It doesn't disappoint. The Pacific Science Center at its base has a Children's Museum, two IMAX theaters, a tropical butterfly house, and now a Chihuly glass display (another connection...I was the minister who married Dale Chihuly and his wife Leslie some years back). When Expedia went public, we celebrated on top at the Skycity Restaurant, and I arranged for an Expedia-logoed seaplane to circle around us. 9) Tillicum Village One of my favorite excursions with family and friends is the tour to Tillicum Village, on tiny Blake Island, reached by a short boat ride across Puget Sound. It offers up a dinner of alder wood-roasted salmon and an evening of ancient Salish stories told by dancers in traditional native wooden masks all inside a huge cedar longhouse. The island was the birthplace of Chief Sealth in 1786, for whom Seattle was named. Today the traditional longhouse, where dinner and the show are presented, is awash in artwork from Washington and Alaska coastal tribes. Dinner begins with clams in nectar followed by fire-roasted salmon and venison stew. The four-hour cruise to the meal and show leaves from Pier 55 in downtown Seattle, but it is also possible to kayak over, and then camp for the night in the 475-acre park, with a sparkling backdrop of the Seattle skyline. 10) Woodinville Wine Tour (A Place Beyond the Vines) With the rise of Seattle comes success and money, and with success and money, comes wine. When I first moved to Seattle in 1996, there was little in the way of a wine industry, the exception being Chateau Ste. Michelle, opened in 1976. Now, less than a half-hour drive from downtown Seattle, there are nearly 100 wineries, wine bars, tasting rooms, cooking and wine pairing classes, and they can be sampled in a host of tours, from vans, to self-drive to bicycles to limos. Most are in the bushy hamlet of Woodinville, and almost all get their juice from Eastern Washington's fabled growing regions. It sits at the northern tip of the Sammamish Valley, a cradle for local farms with beautiful flowers, lavender, and fabulous fresh produce. And there is live music almost every night. Washington is the second biggest wine-producer in the country but exports only 1% of its wine. Note, it's impossible to hit all the pourings in a day, but worth the try. The Director's Cut", -716,2017/2/9,http://www.huffingtonpost.com/2017/02/09/bernie-sanders-email-list_n_14661168.html,Bernie Sanders Has A Massive Email List. But He Has Good Reason To Think Twice About Sharing It.,Sanders has his hands on a coveted form of political currency.,"WASHINGTON ""?In the course of his unexpectedly popular run for the Democratic presidential nomination, Sen. Bernie Sanders (I-Vt.) amassed a huge network of supporters ""?along with their email addresses and other personal information. Now Democrats are gunning for access to that list, which is estimated to include millions of people. An email list may sound like an arcane item to become the focus of a battle for the party's future. But access to a large list of enthusiastic liberals would allow candidates and campaigns to mobilize thousands of activists and donors at a moment's notice. In short, the ""list""?has become a coveted form of political currency in the digital era. The question for Sanders is whether he should share his data, and if so, how he should go about doing it, according to experts in the list-building systems that have become a cornerstone of contemporary political organizing. If the goal is for Sanders to provide the party greater access to his base, the most logical entity with which to share his list is the Democratic National Committee, the party's main national organ. And right now the DNC is in the midst of a seven-way competition between the major candidates who would like to become its next chair. The Sanders campaign's email list is now housed at Our Revolution, a political action committee Sanders set up to continue the work of his presidential campaign. And Shannon Jackson, Our Revolution's executive director, said he doesn""t want to just hand that list over to the Democratic National Committee, since Our Revolution is committed to remaining independent from the party. For his part, Sanders told The Washington Post that he would ""Cross that bridge""?when the DNC race is settled. Rep. Keith Ellison (D-Minn.), who is Sanders""?preferred candidate to chair the DNC and the owner of his own large email list, suggested Sanders should grant party leadership access to the list. If elected chair, Ellison would ""Absolutely""?ask the Vermont senator to share his powerful campaign list, Ellison said at a HuffPost-sponsored DNC candidate debate on Jan. 18. Our Revolution's Jackson declined to comment on Ellison's statement, but reiterated that his organization supports Ellison's candidacy.-Sanders spokesman Michael Briggs said in a statement that ""where has been no discussion with the DNC about use of the list.""?Some diehard Sanders backers aren""t so into the idea. ""If they wanted the Democratic Party to have their information, they would have given it to them by now,""?one such fan wrote in a scathing criticism of Ellison's remarks.- List sharing always poses risks. And in this case, the matter is especially sensitive. Many Sanders supporters are still angry with the DNC for what they saw as unfair intervention on behalf of Hillary Clinton in the primary. Those supporters would likely only support the most progressive political candidates and causes, and would not want to hear from the DNC as it tries to raise money or turn out activists for anything that doesn""t meet their standards. Jackson said Our Revolution has already had to reassure many active members that it is not sharing data or otherwise colluding with the DNC. People have contacted the organization with accusations of unwanted collaboration on several occasions, typically when Our Revolution has mobilized members to take action for Ellison or other candidates it has endorsed in battles for control of local Democratic parties, he said. There is not a particularly long tradition of individual candidates with large email lists sharing them with the party. Organizing for America, a 501(c)(4)-former President Barack Obama created out of his 2008 presidential campaign, and its post-2012 successor, Organizing for Action, inherited the Obama campaign's successful email list. OFA only shared the list, which numbers in the millions, with the DNC in August 2015. Once the 2016 Democratic primary ended, top Democrats ""?including former Senate Minority Leader Harry Reid (Nev.) ""?began talking to Sanders about sharing his list or its data with Clinton's campaign or the DNC. Speculation about the fate of Sanders""?list has only escalated since November, with some more establishment-friendly Democrats seemingly hoping that putting Ellison in charge of the DNC would ensure access to Sanders""?base. One Democratic operative, who requested anonymity because he is not authorized to speak on the matter, said this is ""uncharted territory""?in many ways: ""Bernie was an independent who became a Democrat and built a unique campaign that we haven""t seen in a very long time.""?Legally, political organizations or candidates can sell or donate their email lists. It's how you do it that presents the challenge. Donating a list is generally called a ""list swap""? an organization can trade lists with a like-minded candidate or organization. They can also just sell their list to another organization, which can bring in a lot of money if the list is large or particularly useful. In each example, the organizations decide whether to allow list members to opt in to the new list, or directly add their emails and then let them opt out. Direct adding email addresses and then forcing people to opt out comes with a higher risk of an organization's emails ending up in a spam folder. Internet service providers try to help their customers by sniffing out unwanted email, thereby creating a high barrier to entry for unwanted political solicitations. ""signing people up for email lists without telling them is a very typical way to get marked as spam,""?said Emily Schwartz, vice president of organizing at NationBuilder, a nonpartisan digital firm that specializes in political campaigns. Jason Rosenbaum, a veteran progressive digital guru and technology director for the Action Network, a nonprofit that builds online organizing tools, recalled excessive spam rates dooming campaigns he has worked on. ""I have seen programs go to zero because they have screwed up with this kind of stuff,""?he said. Other risks include the prospect of activists disengaging or unsubscribing from an email list, which could lead to attrition ""?for both the DNC and the original Our Revolution list. If Our Revolution chooses to share its list with the DNC, there are ways for the group to leverage its following to benefit the Democratic Party without compromising the trust it enjoys with its members, said Rosenbaum, who previously led online campaigns for the Progressive Change Campaign Committee and Health Care for America Now. One way to do that is to start with joint actions between the two organizations ""?inviting list members to sign a petition, donate money or mobilize around a cause. That would make it abundantly clear to list members that their contact information is being shared with a new organization, rather than forcing it on them. One can envision Our Revolution asking its list members to join an action against Republican cuts to Planned Parenthood funding or attempts to privatize Medicare, for instance. The challenge, however, is ensuring that the DNC does not try to mobilize Our Revolution list members for a candidate or cause they don""t like. The best insurance against that kind of a mistake ""?and the inevitable blowback ""?is the election of a DNC chair that progressives trust, Rosenbaum suggested. ""the Sanders folks ""?though I think they overstate their case ""?they do have a point about the corruption in the DNC around the primary process,""?he said. ""If we see a new DNC chair who takes the party in a new direction and is able to make a clean break with the past there in a way that Democratic activists understand, then maybe this type of sharing makes a lot of sense.""?But Nomiki Konst, a former Sanders campaign surrogate who now works for The Young Turks, a progressive YouTube network, warned Democrats against viewing an email list as a panacea for the party's shortcomings. ""the Democratic Party has to reinvent itself. No Bernie list, no Keith Ellison list, is going to solve that problem,""?she said. ""the Democratic Party has raised more money than ever, spent more money than ever, and lost more than ever.""?Sign up for the HuffPost Must Reads newsletter. Each Sunday, we will bring you the best original reporting, long form writing and breaking news from The Huffington Post and around the web, plus behind-the-scenes looks at how it's all made. Click here to sign up!", -717,2017/2/9,http://www.huffingtonpost.com/2017/02/09/whats-happening-in-stranger-things-season-2_n_14661110.html,We Finally Know What's Happening In 'Stranger Things' Season 2,Spoiler alert: Things are getting stranger.,"In ""stranger Things""?Season 2, things are getting flipped, turned upside down. Everyone, including the cast, has been freaking out since the recent Super Bowl teaser, which seemingly showed Eleven (Millie Bobby Brown) alive and a giant monster terrorizing the town of Hawkins, Indiana, but more specific details have been a mystery until now. In new interviews from Entertainment Weekly, we'r finally learning what's going down in the upcoming season. Events in the show will begin around one year after Season 1 ended. The boys will be going as Ghostbusters on Halloween. But remember, after coughing up a slug-like creature (possibly a pollywog) in the Season 1 finale, Will Byers (Noah Schnapp) isn""t doing too well. In fact, co-creator Matt Duffer told EW that Byers seems to be going through post-traumatic stress disorder. ""He seems to be seeing images from the Upside Down ""?the question is whether they'r real or not,""?said Duffer. Elsewhere, Joyce (Winona Ryder) is now going out with an old high-school classmate named Bob (Sean Astin), and Sheriff Hopper (David Harbour) is struggling to cover things up after the craziness in Season 1. ""It kind of falls on Hopper to be the voice of authority to say, ""This did happen and this didn""t happen,""?Harbour told EW. ""He's struggling with the compromise that takes him to, having to lie and cover things up.""?Nancy (Natalia Dyer) and Mike (Finn Wolfhard) are having a tough time at the beginning of the season, too, dealing with the deaths of Barb (Shannon Purser) and, supposedly, Eleven.-Co-creator Ross Duffer said the pair are ""the most screwed up,""?and we'll see the effects of their trauma.- Besides Joyce's new boyfriend, other new characters include brother-and-sister duo Billy (Dacre Montgomery) and Max (Sadie Sink). The latter is apparently a romantic interest for both Lucas (Caleb McLaughlin) and Dustin (Gaten Matarazzo). There's also Dr. Owens (Paul Reiser), who now runs Hawkins Lab. The portal to the Upside Down still exists. But Matt Duffer says the season will contain ""different kinds of horror""?besides the monsters. It won""t all be terrifying. Dustin (Matarazzo) is apparently adopting a ""polliwog-like""?pet. ""It's a little creature I get to bond with,""?Matarazzo told EW. ""It's obviously not from this planet or this dimension.""?The ""stranger Things""?creators have already gone on record saying a few of the Season 2 fan theories floating around are ""right or very close.""?Based on the new information, it seems increasingly likely that the Season 2 episode ""the Pollywog""?is about the slug-like creature we saw in Season 1. But what about the other theories? Could Will Byers or Eleven actually turn evil? And will we finally find out if Steve Harrington is the father of Jean-Ralphio from ""Parks and Rec""? we'll have to wait for the Halloween premiere. All we know for sure is ...-Steve Harrington-is definitely Jean-Ralphio's father. Like, duh.-", -718,2017/2/9,http://www.huffingtonpost.com/2017/02/09/judith-permar-arm-stuck-in-donation-box_n_14661108.html,Woman Dies After Getting Arm Stuck In Donation Box,Investigators believe she had her arm in the bin when her step ladder collapsed.,"A Pennsylvania woman died Sunday morning night after her arm got stuck in a clothing donation bin, leaving her unable to call for help. Judith Permar, 56, of Mount Carmel, went to a drop-off box in the town of Natalie at around 2:30 a.m.-Permar was discovered around 8:30 a.m. and pronounced dead at the scene.- The engine on her black Hummer was still running and bags of clothes were scattered near the bin.-A coroner's report said she died from blunt force trauma and hypothermia. Her injuries included a broken arm and wrist. She was reaching into the bin when the step ladder she was standing on collapsed, according to PennLive.com.-- Permar's son told WNEP that she always wanted to help the less fortunate and constantly donated to those clothing bins. But investigators believe Permar was actually taking items from the bin ""?and it may not have been the first time. ""she was fishing bags out and the ladder she was standing on gave way, and she couldn""t get her hand loose,""?Mount Carmel Police Chief Brian Hollenbush told Philly.com. Back in November, police received a call about a woman in a black Hummer who was taking items from the bin, according to the New York Daily News. Hollenbush said he knew Permar and told the Associated Press she was a very nice woman.-He admits being surprised when he heard she may have removed items from clothing bin. ""It wasn""t something that I would expect to be seeing,""?he said, according to the Associated Press. Funeral services for Permar are scheduled for Friday. Permar's family did not respond to HuffPost about the allegations she was taking donated items from the bin.", -719,2017/2/9,http://www.huffingtonpost.com/2017/02/09/watch-tom-cruise-fall-into-a-bunch-of-movies-that-arent-his_n_14661090.html,Watch Tom Cruise Fall Into A Bunch Of Movies That Aren't His,Give the man some air.,"Try not to look down, Tom Cruise. YouTube user-DrMachakil-edits the actor's falling scene from ""�Vanilla Sky""?into a jumping-off point for the actor to plummet through films such as ""Star Wars: Episode II,""?""the Avengers""?and ""Ten In Black 3.""?He even catches the attention of a certain wizard on the way.- Maybe he should borrow his broom. H/T-Tastefully Offensive", -720,2017/2/9,http://www.huffingtonpost.com/advertising-week/voice-search-turns-up-the_b_14661026.html,Voice Search Turns Up the Volume,,"By Melissa Mackey, Search Supervisor, gyro Cincinnati Voice search is about to move from a whisper to a shout, quickly. The fact that Google Home and Amazon Echo both had a starring roles in this year's Super Bowl is only the latest of evidence of this fact.- Voice search exploded in 2015, going from ""statistical zero""?to 10% of all searches globally within the year. By May of 2016, the percent of voice searches doubled to 20%. As voice recognition technology improves, it's no surprise to see voice search skyrocketing. After all, we can speak a lot faster than we type (we speak at 150 wpm, vs 40 wpm for typing). Voice queries are different from typed queries. Let's say you're been looking for a new phone company for your small business, and you'r trying to remember the name of the company whose ad you saw on TV the other night. If you'r typing, you'll probably search for something like ""business phone companies.""?With voice search, natural language is more common. You might say something like ""what's the name of the business phone company whose TV ads offered $30 per month?""?Suddenly, a 3-word query has become a 15-word query, and the intent is much more clear. A few years ago, longer queries were problematic. Search engines struggled with delivering relevant results for voice searches. Search algorithms were built to expect queries of no more than four to five words. But with the growth of voice search, the algorithms have become much better. Not only are search results relevant, but they'r personalized. While writing this article, I asked Google to show me the nearest Best Buy. The result was so accurate (including a pin on a map for my location) that I don""t want to show the screen shot here! It gave me a map, phone numbers, and hours ""?all on my mobile screen. It was as if I'd asked the person next to me ""?only better, with visuals and tappable phone numbers. In fact, personal digital assistants like OK Google, Cortana, and Siri are almost better than having your own human executive assistant. A digital assistant can schedule an appointment in seconds, placing it on your calendar instantly. You can send a text entirely with voice commands, without ever typing a single letter on a keyboard. You can turn a search question into a task, complete with a calendar reminder and a map with directions. Even complex tasks like planning a trip have become easier: with a few voice commands, you can find and book a flight and hotel, put the trip on your calendar, and get a weather report for your destination. Everything but packing your suitcase can be done via voice. This holiday season, the Amazon Echo was a popular gift ""?so much so that it sold out just before Christmas Day. The Echo, along with devices like Google Home, are taking search to the next level. Search has now become ubiquitous. It's on our phones, and in our home devices. Not only can the Echo play music and turn lights on and off, it can order household items that you're run out of. And with 2-hour delivery from Amazon Prime, you needn""t leave your house. It's easier than a trip to the grocery store. Search is a major component of home assistants like the Echo. But the Echo orders everything from Amazon. Google Home, on the other hand, serves up results from Google's search engine. Marketers need to be ready for an influx of voice searches for their products and services from Google Home. Google is changing the search game for businesses within the Google search results, too. Starting next month, Google is going to automatically include phone numbers in search ads on mobile devices for advertisers who have a prominent phone number on their landing page. Previously, advertisers could add call extensions to their ads, which would incorporate a tappable phone number in their mobile ads. With the latest change, call extensions aren""t necessary ""?Google will automatically include a phone number in your ad if you feature one prominently on your landing page, as many businesses do. Automatically including phone numbers in ads does two things: it acknowledges that mobile advertising is here to stay, and it makes ads more humanly relevant by encouraging phone calls from those with a phone in their hand. We live in interesting times. As consumers, we have an ever-increasing number of options when it comes to searching for and purchasing goods and services. As advertisers, businesses have more ways than ever before to connect with their audience ""?but it's become more complicated. Businesses must think beyond keywords and landing pages, and focus on how their customers and prospects interact with them. Understanding the mindset of the customer is more important than ever. Organizations that can make their experience more humanly relevant will be successful in this new era.", -721,2017/2/9,http://www.huffingtonpost.com/robert-koehler/the-mass-grave-we-call-co_b_14660908.html,The Mass Grave We Call Collateral Damage,,"""Lot of killers. We've got a lot of killers. Boy, you think our country's so innocent? You think our country's so innocent?"" We have carnage and we have irony. The speaker is the president, of course. It's Super Bowl Sunday and here he is, generating another eyeball-popping headline as he dares to compare American collateral damage over the years with (as a chorus of shocked critics exclaimed) Vladimir Putin's remorseless homicides. This happened during a pre-Super Bowl interview with Bill O'Reilly last Sunday, after O'Reilly had challenged Trump's coziness with Russia and called Putin a killer. Republican Sen. Ben Sasse of Nebraska summed up the outrage thus: ""There is no moral equivalency between the United States of America, the greatest freedom-loving nation in the history of the world, and the murderous thugs that are in Putin's defense of his cronyism."" Too bad we can't ask 8-year-old Nawar al-Awlaki for her opinion on whose killings are worse, America's or Russia's. She apparently bled to death from a neck wound a week before the Trump interview, during the disastrous U.S. raid on Yemen that left a Navy SEAL -- and maybe 23 civilians -- dead. This was a Trump authorized raid, the first of his presidency, but had been planned many months earlier. A newborn baby was also killed in the raid, according to the British humanitarian organization Reprieve, along with other women and children. How many children have been buried thus far in the mass grave we call collateral damage? Nawar was the sister of Abdulrahman Awlaki, a 16-year-old boy killed in a 2011 drone strike, two weeks after the children's father, an alleged al Qaeda leader (and U.S. citizen), was killed, also in a drone strike. ""Why kill children?"" Nawar's grandfather asked after the girl's death. But the politics of our drone assassinations and our air strikes and our wars justify and soften the murders we commit. Even now, as consensus consigns the Iraq war to the status of ""mistake,"" we still refuse to take official responsibility for its consequences. The shattered country, the dead, the dislocated, the rise of terrorism -- come on, cut us a little slack, OK? We were bringing democracy to Iraq. The unpredictable Trump spews out a fragment of spur-of-the-moment truth in a Fox News interview -- ""you think our country's so innocent?"" -- and the consensus critics can only writhe in outrage. ""One can argue that's the most anti-American statement ever made by the president of the United States,"" retired Gen. Barry McCaffrey exclaimed on MSNBC, defending American exceptionalism as though it were God. What a strange game this president is playing. Fervid belief in this exceptionalism is the foundation of Trump's support. The raw meat he throws to his supporters is fear and hatred and clearly defined enemies: Muslims, Mexicans, refugees and immigrants from everywhere (except Europe). His allegiance to white nationalism and corporatocracy and war, the unacknowledged beneficiaries of this exceptionalism, is serious, and reflected in his cabinet choices. ""Everyone on Trump's national insecurity team seems to agree on one thing: the United States is in a global war to the death,"" Ira Chernus writes at TomDispatch, for instance, quoting the crusading militarism of a number of his advisors and appointees, such as Deputy National Security Advisor K.T. McFarland. ""If we do not destroy the scourge of radical Islam, it will ultimately destroy Western civilization . . . and the values we hold dear,"" she has said. ""For her,"" Chernus noted, ""it's an old story: civilization against the savages."" And, indeed, Trump's ascension to the presidency was cited by the Bulletin of the Atomic Scientists as the reason they set the Doomsday Clock -- Planet Earth's largest, most ominous metaphor -- ahead by thirty seconds in January, to two and a half minutes to midnight. The Bulletin's Science and Security Board explained: ""This already-threatening world situation was the backdrop for a rise in strident nationalism worldwide in 2016, including in a U.S. presidential campaign during which the eventual victor, Donald Trump, made disturbing comments about the use and proliferation of nuclear weapons and expressed disbelief in the overwhelming scientific consensus on climate change."" I note all this in the context of Trump's Fox News tease -- that the United States is no more innocent in its wars and murders than Russia is -- and his perplexing, perhaps business-related friendliness with Putin, which seems to address one of the major concerns of the Bulletin of the Atomic Scientists. The Board, in its Doomsday Clock statement, noted with alarm: ""The United States and Russia--which together possess more than 90 percent of the world's nuclear weapons--remained at odds in a variety of theaters, from Syria to Ukraine to the borders of NATO."" Trump is a walking maelstrom of racism, arrogance, greed, incompetence and political incorrectness. He approved the Navy SEAL raid in Yemen with a shrug, as he ate dinner. Children died. The smiling face of Nawar al-Awlaki now haunts the mission. As Bonnie Kristian wrote recently at Business Insider: ""President Trump promised real change in U.S. foreign policy, and in at least one clear regard he has already delivered: Where President Obama spent six years waging covert drone warfare in Yemen and nearly two years quietly supporting brutal Saudi intervention in the Gulf state's civil war, Trump drew national outrage to this heretofore ignored conflict in nine days flat."" In his own racism and hypocrisy, is Trump exposing the hypocrisy of the media and the military-industrial complex? Is the new president somehow holding hands with the children whose deaths he will continue to order? - - - Robert Koehler is an award-winning, Chicago-based journalist and nationally syndicated writer. His book, Courage Grows Strong at the Wound is available. Contact him at koehlercw@gmail.com or visit his website at commonwonders.com. ? 2017 TRIBUNE CONTENT AGENCY, INC.", -722,2017/2/9,http://www.huffingtonpost.com/william-s-becker/the-gops-biggest-integrit_b_14659322.html,The GOP's Biggest Integrity Test,,"Anyone who still cares about open government, compliance with the nation's laws, ethical behavior and good governance should watch Congress closely in the weeks and months ahead. We will soon learn whether the Republicans who control the Legislative Branch are willing to fulfill their constitutional obligation to ensure that a president - even a president from their own party - does not abuse his office. The same obligation applies to the Judicial Branch, but for the last eight years it has been Republican leaders in Congress who seem to have forgotten why they were there. From the time in 2010 that Senate Majority Leader Mitch McConnell said the top priority for Republicans was to deny Barack Obama a second term, they acted as if they were elected solely to win more elections rather than to solve the nation's problems. With few exceptions, virtually everything Obama tried to do during his eight years in office was dead on arrival on Capitol Hill. By October 2011, Obama announced, """"We can't wait for Congress to do its job, so where they won't act, I will."" The result, loudly protested by Republican leaders, was Obama's governance by executive order. If you talk to the aging congressmen who served around 40 years ago, most will remember wistfully when the top priority of the two political parties was to govern well, often by working together. Today, the political warfare typical of election years does not stop during the off-years. It has become a 24/7/365 contest for political dominance rather than an honest clash of ideas. What many of us remember most about the last two sessions of Congress is the shutdown of the government, the 500 filibusters in the Senate, and the endless show-votes in both chambers merely to position members for reelection. With Republicans soon to be in control of all three branches of government, the question is whether they now will govern responsibly and with integrity. The early signs are not promising. One of the new Congress's first acts was an effort by House Republicans to weaken the office that investigates allegations of congressional misconduct. That calls into question how Congress would deal with misconduct by President Trump and his team. When it comes to betrayals of the public's trust, Congress's biggest test will be to make sure there are none by the President. Whether it's because he is new to government and unfamiliar with its standards, or because he is so used to autocratic rule in his business empire, or because he thinks his supporters don't care whether he behaves ethically and lawfully, Trump already has entangled himself in questionable behaviors. I don't need to be more specific; Trump's behavior dominates every news cycle. It's enough to note as Politico has that ""leaders with divided interests cannot faithfully serve those who elected them."" Although we already see that the courts will be used to challenge the Administration (see chart), Trump is likely to wear lawsuits like battle ribbons. Besides, lawsuits do not release Congress from its constitutional duty to check abuses of presidential power. The next congressional elections are less than two years away. Republicans have that amount of time to prove they are willing and able to keep the President from behaving unethically or illegally, up to and including ""high crimes and misdemeanors"". If members of Congress cannot do that job -- if they cannot begin putting good governance above bad politics - they should not be there. It's just that simple. *** Less than two weeks after Trump moved into the White House, a survey by Public Opinion Research found that 40% of U.S. voters want him removed from office. Talk of impeachment is very premature. Before Republican leaders are likely consider impeachment proceedings, they would have to decide that Trump's behaviors will not change and will do serious damage to the nation, the presidency and the Party's prospects. In the meantime, we already hear discussions about exactly what the Constitution means by ""high crimes and misdemeanors"". Jon Roland of the Constitution Society is one of many scholars who have studied that question. We might think that ""high crimes"" refers to the felonies and misdemeanors that apply to all of us, but Roland says the phrase refers instead to punishable offenses that only apply to high-level public officials who because of their status ""are under special obligations that ordinary persons are not under"". Other scholars interpret the phrase to mean a president's abuse of his or her office and betrayal of the public trust. Federal standards on ethics, conflicts of interest and nepotism would seem to be among those ""special obligations"". Stewardship of the reputation and integrity of the presidency might qualify, too. What seems certain is this: Unless there are radical changes in the behavior of this president and his people, we will see intensifying discussions about where Congress and the American people must draw the line. Graphic: The above chart from Statista shows the number of lawsuits already filed against President Trump's administration compared to previous recent presidents. Most of the lawsuits so far are related to Trump's executive order restricting entry into the U.S. by citizens of several predominantly Muslim countries.", -723,2017/2/9,http://www.bbc.co.uk/news/world-middle-east-38919426,Syria war: Russian 'friendly fire' kills Turkish soldiers,President Vladimir Putin has sent condolences after a Russian air strike accidentally killed three Turkish soldiers in northern Syria.,"President Vladimir Putin has sent condolences after a Russian air strike accidentally killed three Turkish soldiers in northern Syria. The strike hit a building near the town of al-Bab, believing it to contain Islamic State (IS) fighters rather than Turkish troops, Turkey's military said. Eleven others were wounded in the so-called friendly fire incident. They were supporting Syrian rebels who are locked in a fierce battle to try to capture al-Bab from IS fighters. Russia and Turkey, who back opposing sides in the Syrian war, have been jointly conducting air strikes on IS in the town in recent weeks. The Russian aircraft had been planning to hit IS targets but ""by accident three of our soldiers were martyred when a building was bombed where our units were,"" Turkey's military said. The Kremlin has issued a statement (in Russian) saying President Putin had, in a telephone call with his Turkish counterpart, ""expressed condolences over a tragic incident which resulted in the deaths of several Turkish troops in the al-Bab area"". Turkey and Russia: Uneasy allies Turkey's downing of Russian warplane in 2015 Why is there a war in Syria? President Putin told Recep Tayyip Erdogan that poor co-ordination between Moscow and Ankara was to blame for the accident, RIA news agency reports. The two leaders agreed to ""increase military co-operation during operations in Syria against IS militants and other extremist organisations"". Both countries are conducting a joint investigation, Turkey's military said. The incident comes after a warming of relations between the two countries, which had previously been strained after Turkey downed a Russian jet near the Syrian border two years ago. Earlier on Thursday, Turkish-backed rebel fighters managed to capture the western outskirts of al-Bab, which lies about 30km (20 miles) south of Turkey. Turkish media say 10 Turkish soldiers have been killed in the fighting in recent days. The Dogan news agency says 66 Turkish troops have been killed in Syria since Turkey began its operations there last August to drive out IS, as well as stop the advance of the Kurdish YPG militia - which Turkey considers a terror organisation. At the end of 2015, Russia and Turkey risked military confrontation as the Turkish military shot down a Russian jet which it said had violated its airspace. By the end of 2016, the two, who back opposite sides in the Syrian war, were co-operating to reach a ceasefire in Aleppo. The murder of the Russian ambassador in Ankara didn't derail ties - and nor will today's military accident. Why? Because the two countries need each other. Partly in their general bilateral relations, with Turkey importing most of its energy from Russia and relying on Russian tourists. But partly too in order to achieve their respective aims in Syria. Turkey wants a buffer zone in northern Syria free of IS and the Kurdish militia that it sees as terrorists - and has needed Russian consent for its troops to launch a ground offensive in northern Syria over the past few months. And Russia has managed to prop up the Assad regime and needed Turkey - one of Assad's fiercest opponents - to turn a blind eye to the recapture of Aleppo. Realpolitik has taken the place of steadfast ethics - as it so often does. The Turkish-backed Syrian rebels have been battling IS for al-Bab since late 2016. Syrian government forces, meanwhile, are also closing in on IS from the south, where fierce fighting is reported. Reports suggest the rebels and government forces have reached an accommodation over al-Bab, orchestrated by Syria's key alley, Russia. The two sides are now within 3km of each other on opposite sides of the city. Despite supporting opposing sides, Russia and Turkey have joined forces in recent months to try to end the Syria conflict. They carried out their first joint air strikes on IS targets in the al-Bab area in January, just weeks after securing a ceasefire deal between rebels and government forces that has held in many parts of Syria since the end of last year.", -724,2017/2/9,http://www.bbc.co.uk/news/uk-politics-38918317,Dubs amendment: End of child migrant scheme 'shameful',"Church leaders, MPs and peers have condemned the decision to end the ""Dubs amendment"" scheme to let unaccompanied migrant children in to the UK.","Church leaders, MPs and peers have condemned the decision to end the ""Dubs amendment"" scheme to let unaccompanied migrant children in to the UK. The Archbishop of Canterbury said he was ""shocked"", while Labour's Yvette Cooper described it as ""shameful"". Ministers said 350 children would have arrived under the scheme by the time it ended in March but that there were fears it encouraged people traffickers. Theresa May says what the UK is doing to help refugees is ""absolutely right"". The Dubs amendment, designed by the Labour peer and former child refugee Lord Dubs, aimed to help some of the estimated 90,000 unaccompanied migrant children across Europe. It was accepted by then Prime Minister David Cameron last year after he was faced with a rebellion in the House of Lords. While there was no target number specified in law, Lord Dubs and his supporters had suggested the UK could help 3,000 of the most vulnerable. On Wednesday, ministers announced that 200 children had been brought in under the scheme and that it would close after another 150 were settled in the UK. Home Secretary Amber Rudd defended the decision, which she said had been made after France raised concerns it could be encouraging more children to make the perilous journey to Europe. Speaking in the Commons, she said: ""I am clear that when working with my French counterparts they do not want us to indefinitely continue to accept children under the Dubs amendment because they specify, and I agree with them, that it acts as a draw. ""It acts as a pull. It encourages the people traffickers."" She said the government remained committed to accepting 3,000 child refugees from crisis-hit regions such as Syria. The move has prompted fierce criticism from MPs, including those from the Tory party, as well as the Archbishop of Canterbury. Shadow home secretary Diane Abbott attacked Ms Rudd, asking: ""How does she live with herself?"" Liberal Democrat leader Tim Farron attacked the government for a ""betrayal of these vulnerable children and a betrayal of British values"", while Green Party co-leader Jonathan Bartley said the decision was ""an absolute disgrace"". Tory MP David Burrowes said it looks like the government has ""cut and run from child refugees"" while Conservative MP Heidi Allen MP said she would support a judicial review on the decision. The Archbishop of Canterbury Justin Welby said the UK had a ""great history of welcoming those in need"" and hoped the government would reconsider its decision. The Bishop of Croydon, the Rt Revd Jonathan Clark, who has been involved with efforts to welcome child migrants, said the government was ""in effect helping the trafficking industry"". While Lord Dubs said: ""I believe in arbitrarily closing down the scheme, without any good reason for doing so, the government is in breach of its own commitments."" However, the prime minister has defended the government's approach to refugees by pointing to various other schemes adopted to bring them into the UK. She said: ""We have been seeing quite a number of children and families being resettled here in the United Kingdom and I think what we are doing in terms of refugees is absolutely right."" The total number of children to accept under the Dubs amendment was reached after consultation with local authorities - with councils indicating they could provide care to no more than 350 unaccompanied child migrants. David Simmonds, chairman of the Local Government Association's asylum, refugee and migration task group, said councils had ""demonstrated tremendous leadership at a local, regional and national level in resettling the children from the Calais camp."" A legal challenge on how the government has handled the legal commitment will go ahead on Friday.", -725,2017/2/9,http://www.bbc.co.uk/news/uk-politics-38925552,Corbyn replaces Lewis in shadow cabinet reshuffle,"Labour leader Jeremy Corbyn has appointed Rebecca Long-Bailey as shadow business secretary, as he reshuffled the shadow cabinet.","Labour leader Jeremy Corbyn has appointed Rebecca Long-Bailey as shadow business secretary, as he reshuffled the shadow cabinet. Sue Hayman takes the environment, food and rural affairs brief, while Christina Rees becomes shadow Welsh secretary. The new shadow chief secretary to the Treasury is Peter Dowd. The business brief became vacant when Clive Lewis resigned on Wednesday to oppose his party in the Brexit vote. Other shadow cabinet members remain in place. What is striking about this announcement is not who has been appointed, and to which job - it is the leadership's approach to the frontbenchers among the 52 Labour rebels who defied Jeremy Corbyn in last night's vote on Brexit. Most of them tonight are still in a job, despite abandoning the collective responsibility of the party's official position and ignoring their leader. I understand it's unlikely there will be any sackings. This in itself is extraordinary, not least because among the rebels were three whips, the very people responsible for party discipline. It illustrates what you might call Jeremy Corbyn's human resources challenge. When you discount those who won't serve under him, and those who have but no longer do, his options are limited. Ms Long-Bailey, MP for Salford and Eccles, was previously shadow chief secretary to the Treasury. Ms Hayman, MP for Workington in West Cumbria, was a shadow environment before her promotion, while Ms Rees, MP for Neath, was a shadow justice minister. Mr Dowd is MP for Bootle. All four entered Parliament at the 2015 general election. There are now 14 women in Mr Corbyn's 29-member shadow cabinet. Mr Lewis announced his resignation from the party's front bench as MPs began voting for the final time on the Brexit bill on Wednesday. In a letter to Mr Corbyn, he wrote that he was leaving the shadow cabinet ""with a very heavy heart"", but Labour had not won ""the protections the people of this country need"" during the Commons debates on Brexit. Asked on the BBC about Mr Lewis's departure, Mr Corbyn said: ""It's not a disaster. The majority of Labour MPs voted to trigger Article 50. Fifty-odd voted against it, mainly on the basis of their strong message from their own constituents.""", -726,2017/2/9,http://www.bbc.co.uk/news/world-europe-38923411,Paris to put up glass wall to protect Eiffel Tower,"The Eiffel Tower in Paris is to have a 2.5m-high (8ft) wall of reinforced glass built around it as protection against terror attacks, officials say.","The Eiffel Tower in Paris is to have a 2.5m-high (8ft) wall of reinforced glass built around it as protection against terror attacks, officials say. The Paris mayor's office says the wall will replace metal fences put up for the Euro 2016 football tournament. The project, if approved, is expected to cost about �10m (?17m; $21m) and work should start later this year. The French capital has been on high alert since attacks by jihadists in November 2015 left 130 people dead. Last July, 86 people were killed when a lorry ploughed through a crowd celebrating Bastille Day in the southern city of Nice. The Eiffel Tower, one of France's most famous landmarks, attracts more than six million visitors each year and the wall is designed to stop individuals or vehicles storming the site, said the assistant mayor for tourism, Jean-Francois Martins. ""The terror threat remains high in Paris and the most vulnerable sites, led by the Eiffel Tower, must be the object of special security measures,"" he said. ""We will replace the metal grids to the north and south with glass panels which will allow Parisians and visitors a very pleasant view of the monument."" Mr Martins added: ""We have three aims - to improve the look, make access easier and strengthen the protection of visitors and staff."" The project will also involve reorganising pathways around the tower. Earlier this month, a man wielding two machetes attacked soldiers at Paris's Louvre Museum. President Francois Hollande said there was little doubt it was a terrorist act.", -727,2017/2/9,http://www.bbc.co.uk/news/business-38920864,L'Oreal looks to sell The Body Shop,"Cosmetics giant L'Oreal has confirmed reports that it is looking to sell The Body Shop chain of stores, which it acquired in 2006.","Cosmetics giant L'Oreal has confirmed reports that it is looking to sell The Body Shop chain of stores, which it acquired in 2006. The French firm said in its annual results statement that it had decided ""to explore all strategic options regarding The Body Shop's ownership"". It said this would give the chain ""the best opportunities and full ability to continue its development"". It added: ""No decision has been taken so far."" The Body Shop has more than 3,000 stores in 66 countries and employs 22,000 people, but has been suffering a slowdown in sales. Its results for 2016 show total sales were 920.8m euros (?783.8m), down from 967.2m euros in 2015, which L'Oreal blamed on market slowdowns in Hong Kong and Saudi Arabia. The sales were a tiny proportion of L'Oreal's overall 25.8bn euros of sales for the same period, up from 25.3bn euros in 2015. The French group's overall operating profit last year was 4.54bn euros, up from 4.4bn euros a year earlier. The Body Shop was founded in 1976 by Dame Anita Roddick, who died in 2007. It was a pioneer using natural ingredients for its beauty products when it started out. It initially thrived and by the 1980s, it was one of the best-known brands on the High Street.", -728,2017/2/9,http://www.bbc.co.uk/sport/football/38920489,FA reform: MPs pass 'no confidence' motion after House of Commons debate,More than 90 of the FA Council's 122 members are men aged 60 or over,"Share this with A motion of ""no confidence"" in the Football Association has been passed by MPs debating the organisation's ability to reform itself. While the motion is largely symbolic, MPs have warned legislation will be brought in if changes are not made. Sports Minister Tracey Crouch has said the FA could lose ?30m-?40m of public funding if it does not modernise. Culture, Media and Sport (CMS) Select Committee chairman Damian Collins said: ""No change is no option."" He added: ""The FA, to use a football analogy, are not only in extra time, they are at the end of extra time, in 'Fergie Time'. They are 1-0 down and if they don't pick up fairly quickly, reform will be delivered to them."" I would have thought with the state of the NHS, the lack of building, not enough cash for defence, that [MPs] would put energy into that not the organisation of football FA chairman Greg Clarke has said he will quit if the organisation cannot win government support for its reform plans. ""I watched the debate and respect the opinions of the MPs,"" he said. ""As previously stated, we remain committed to reforming governance at the FA to the agreed timescale of the minister."" Collins suggested ministers should intervene to overhaul English football's governing body because ""turkeys won't vote for Christmas"" and it will not reform itself. Crouch warned the FA that if it played ""Russian roulette"" with public money it will lose. The minister also said the government would be prepared to consider legislation if the FA fails to present plans for required reforms before April. However she felt the debate - which was sparsely attended by MPs - was premature given her desire to see the FA's proposals. Media playback is not supported on this device The committee has published two reports since 2010 recommending greater representation at the FA for fans and the grassroots game, as well as more diversity in positions of authority. It also wants to dilute the perceived dominance of the Premier League. Collins has said the FA was given six months to meet the government guidance on best practice for sports governance but had failed to do so. That guidance called for things such as a move towards gender equality on boards, more independent oversight, more accountability and term limits for office bearers. He was joined by fellow Tories and Labour MPs - keen to ensure the ""national game"" is run correctly - in bemoaning the current state of the FA. The cross-party motion stated that MPs have no confidence in the FA's ability to comply fully with its duties as its existing governance structures make it ""impossible for the organisation to reform itself"". It was approved unopposed at the end of a backbench business debate, which was attended by fewer than 30 MPs. The FA is effectively run by its own parliament, the FA Council, which has 122 members - just eight are women and only four from ethnic minorities. More than 90 of the 122 members are aged over 60. Shadow sports minister Rosena Allin-Khan said: ""Not only is diversity not in the heart of the FA ,it isn't in its body, or even its soul."" Labour MP Keith Vaz, whose constituency of Leicester East is home to the Premier League champions Leicester City, added: ""A quarter of all professional footballers are black, however only 17 of the 92 top clubs have an ethnic minority person in a senior coaching role."" However, Keith Compton - one of 25 FA life vice-presidents and a director of Derbyshire FA - questioned why the FA was being discussed in Parliament. ""It is pity that the MPs have got nothing better to do,"" he told BBC Radio 5 live. ""I would have thought with the state of the NHS, the lack of building, too many people living in boxes, not enough cash for defence, that some people would put energy into that not the organisation of football. ""Football is reforming all of the time."" Asked whether there should be more female and ethnic minority involvement in FA decisions, he said: ""That's not really the responsibility of the council. If those people were interested enough, and we had enough people, we would have enough women and other people on the FA. ""I have heard people say supporters aren't represented but that is not true. They have one representative. People want the council to be reduced and now I am hearing it should be increased."" Responding to the interview, former FA chairman David Bernstein said: ""I think if you want an argument for change, you've just heard it."" And Yunus Lunat, the first Muslim to get a seat on the FA Council before leaving three years ago, said new recruits were needed. ""No-one is disputing the contribution the previous generation has made but there comes a time when you have got to recognise that you are not the most suitable people for the role,"" he said. Media playback is not supported on this device Football Supporters' Federation chairman Malcolm Clarke: ""We're very pleased to see so many MPs back our proposals for a minimum of five fan representatives on the FA Council, representation on the FA board, and increased diversity. ""Supporters are integral to the health of our national sport yet are still shockingly under-represented in the FA hierarchy - the FA Council has only one supporter representative, yet the Armed Forces and Oxbridge have five. ""It is also important to acknowledge that the FA Council has stood up to rampant commercialism within the game and protected fans' interests - such as when the FA Council stopped the ""Hull Tigers"" name change."" Sports minister Tracey Crouch: ""The FA's current model does not, in my opinion, and clearly that of other colleagues, stand up to scrutiny. Reform is therefore required."" Judith Cummins (Labour, Bradford South): ""At best they're dragging their feet, at worst they're wilfully failing to act."" Andrew Bingham, CMS Committee member: ""The issues of Sam Allardyce, who manages the (England) team for 67 days, one game, walks away with allegedly around ?1m, it is destroying people's faith in football."" Nigel Huddleston (Conservative, Mid Worcestershire): ""I have a great deal of respect for Greg Clarke but I sense his hands are tied and a sense of institutional inertia pervades the governance of football in this country."" Share this with Guess who these angry lyrics were aimed at Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Basketball Open Session Beginners Running with Childcare - Steeple Claydon For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -729,2017/2/9,http://www.bbc.co.uk/news/world-australia-38916464,Australian man stuck in a pond for hours recounts ordeal,,"An Australian man has survived spending hours struggling to keep his nose above water after his excavator rolled into a waterhole. Daniel Miller, 45, had been riding the machine at his remote property 300km (180 miles) north of Sydney.", -730,2017/2/9,http://www.bbc.co.uk/news/uk-england-london-38919223,Window fall killed Shergar jockey Walter Swinburn,"Former jockey Walter Swinburn fell to his death from his bathroom window, an inquest heard.","Former jockey Walter Swinburn fell to his death from his bathroom window, an inquest heard. The three-time Derby winner and Shergar rider was found by his father in the courtyard of his London home. It was not possible to establish whether his epilepsy - the result of a riding accident in 1996 - contributed to the fall, Westminster Coroner's Court was told. Coroner Dr Shirley Radcliffe ruled his death on 12 December was an accident. The court heard he suffered a fatal head injury after falling 12 feet (3.5m) from the window at his home in Belgravia. Mr Swinburn was nicknamed the 'Choirboy' and picked up numerous successes around the world before his retirement in 2000. The 55-year-old was best known for his partnership with Shergar, which had at one time an estimated worth of ?10m as the most famous and valuable racehorse in the world. He had suffered from post-traumatic epilepsy after falling from a racehorse in Hong Kong in 1996, which left him prone to fits. He took over a training licence from his father-in-law, Peter Harris, in 2004 and went on to send out over 260 winners from his yard in Tring, Hertfordshire, before quitting in 2011. He claimed one of the biggest victories of his training career in 2011 when Julienas won the Royal Hunt Cup at Ascot.", -731,2017/2/9,http://www.bbc.co.uk/news/uk-england-38924430,Northern rail conductors to be balloted in guard row,Northern rail conductors are to be balloted for strike action.,"Northern rail conductors are to be balloted for strike action. The Rail, Maritime and Transport (RMT) union said members will vote on whether to take action, citing a failure by the company to give assurances on the future use of guards on trains. The union is involved in a row with Southern Rail on the same issue and also recently announced a ballot of its members on Merseyrail. Northern called the move to ballot staff ""extremely premature"". Arriva Rail North, which operates Northern trains, provides services between cities and towns across the north of England. The union said its position on Driver Only Operated (DOO) vehicles, meaning the drivers would be in charge of opening and closing the carriage doors, was clear. Mick Cash, RMT general secretary, said: ""We will not agree to any extensions of DOO and will fight to retain the safety-critical role of the guard and to keep a guard on the train."" ""This dispute, and the ballot for industrial action, were entirely preventable if the company had listened to the union's deep-seated safety concerns, had taken them seriously and had put passenger safety before profit."" Arriva North could not guarantee a conductor on all of its passenger services, he added. A company spokesman said: ""We are in the early stages of developing our modernisation plans to bring customers a better railway, so we believe the RMT is extremely premature in calling a ballot for strikes. ""We want to protect jobs and pay as we work together to provide safe, secure and accessible services for our customers.""", -732,2017/2/9,http://www.bbc.co.uk/news/world-africa-38923415,South Africa Zuma: Punches thrown at State of Nation address,Punches have been thrown in South Africa's parliament as radical MPs tried to disrupt the State of the Nation address by President Jacob Zuma.,"Punches have been thrown in South Africa's parliament as radical MPs tried to disrupt the State of the Nation address by President Jacob Zuma. Members of the radical Economic Freedom Fighters' party (EFF), all dressed in red, scuffled with security guards who ejected them from the chamber. Mr Zuma had twice got to his feet but was shouted down by EFF MPs. Previous addresses by Mr Zuma have been marred by protests and brawls as MPs demanded his resignation. The president has been dogged by corruption allegations for more than a decade. On Thursday, there were raised voices and chaotic scenes as Speaker Baleka Mbete tried to deal with repeated interruptions and procedural questions from MPs at the parliament in Cape Town. Members of another opposition party, the Democratic Alliance, then walked out. Despite further interruptions, President Zuma eventually resumed his address. Mr Zuma had angered some MPs ahead of his speech by ordering the deployment of about 440 troops to maintain law and order in parliament on the day. Opposition parties condemned the decision as a ""declaration of war"". It was the first time that troops had a security rather than a ceremonial role. Previous State of the Nation speeches have been marred by chaos in parliament. Since winning seats in 2014, members of the Economic Freedom Fighters' party (EFF) have caused disruption by chanting and jeering at the president over allegations of corruption. In 2015, EFF members were removed from the chamber by security guards disguised as waiters. Jacob Zuma: Key facts Jacob Zuma: A political survivor Who are the Guptas? How Zuma's Nkandla home has grown", -733,2017/2/9,http://www.bbc.co.uk/news/uk-england-berkshire-38922950,Soldier jailed for love rival ambush and attack,A soldier who abducted and stabbed his love rival has been jailed for a minimum of 16 years.,"A soldier who abducted and stabbed his love rival has been jailed for a minimum of 16 years. John Watson, 35, ambushed Pte James Dicks outside his ex-wife's home in Windsor because he believed they were in a relationship. He then tied Pte Dicks up, bundled him into a car and stabbed him before he was stopped by police. Judge Angela Morris said Watson was a ""danger to the public"" as she sentenced him at Reading Crown Court. She said there were ""two John Watsons"" and that while one was ""a devoted family man who served his country with honour"", the other was ""one of anger, jealousy and murderous intent"". The court had heard the two men became friends while stationed together at Combermere Barracks, near Windsor. However, their friendship broke down after 28-year-old Pte Dicks was accused by Watson of starting a relationship with his former wife. On 4 May last year Watson ""hog-tied"" his victim after lying in wait for him outside his ex-wife's house and forcing him into his car. He then tried to kill the Household Cavalry trooper by wrapping cling film round his face and attacking him with a jab saw. The assault was stopped when two police officers armed with Tasers arrived at the scene, but Pte Dicks was left with stab and slash wounds. Judge Morris told Watson: ""You are the one who tried to wrap his head in cling film when he fought back in the second car park in an effort to escape and ultimately you are the one who was continuing to attack when the police eventually arrived on the scene."" She said but for members of the public calling police, Mr Dicks would have been dead. Watson had already been found guilty of one count of kidnap in relation to the attack, and pleaded guilty to one count of possession of an offensive weapon. He was convicted by a jury of attempted murder on 19 January. Watson was sentenced to 19 years for attempted murder, four years for kidnap and six months for possession of an offensive weapon to run concurrently. He was told he will have to serve 16 years before he is eligible for parole.", -734,2017/2/9,http://www.bbc.co.uk/news/world-us-canada-38923511,Attorney General Jeff Sessions: End migrant lawlessness,"America's new top prosecutor, Jeff Sessions, has said the US must bring an end to illegal immigration, as he was sworn in at the White House.","America's new top prosecutor, Jeff Sessions, has said the US must bring an end to illegal immigration, as he was sworn in at the White House. The US attorney general said: ""We need to end this lawlessness that threatens the public safety, pulls down the wages of working Americans."" During the ceremony, President Donald Trump signed three executive orders targeting crime and drug cartels. The Senate confirmed him in the post on Wednesday by a vote of 52 to 47. Mr Sessions, who is widely seen as an inspiration for Mr Trump's anti-immigration policies, was appointed after a series of divisive congressional hearings over his record on civil rights. Vice-President Mike Pence administered the oath in the Oval Office on Thursday. ""We need a lawful system of immigration,"" Mr Sessions said afterwards. ""One that serves the interest of the people of the United States. That's not wrong, that's not immoral, that's not indecent."" Mr Sessions also pledged to address the country's crime problem, which he called a ""dangerous and permanent trend that places the health and safety of the American people at risk"". Joining his new chief prosecutor in the Oval Office, Mr Trump signed three additional executive orders on crime. He said they were designed to ""break the back of the criminal cartels that have spread across our nation and are destroying the blood of our youth"". The orders were also said to target those who commit crimes against law enforcement. Mr Sessions, whose nomination was among Mr Trump's most controversial, resigned his Senate seat shortly after his colleagues confirmed him. At 70, he is the same age as Mr Trump and was one of his earliest political supporters. He will now take charge of the justice department and its 113,000 employees, including 93 US attorneys. Allegations of racism have dogged Mr Sessions since he was rejected by the Senate in his nomination for a federal judgeship in 1986. Senate Democrats highlighted these allegations in recent debates. Senator Elizabeth Warren was silenced on Tuesday night after she recalled criticism of Mr Sessions by Martin Luther King's widow, who alleged he had intimidated black voters. The Massachusetts Democrat, who was temporarily banned from the Senate, wrote: ""If Jeff Sessions makes even the tiniest attempt to bring his racism, sexism & bigotry into the Justice Department, he'll hear from all of us.""", -735,2017/2/9,http://www.bbc.co.uk/news/business-38920860,Apple 'optimistic' about post-Brexit UK,"Technology giant Apple is ""very optimistic"" about the UK's future post-Brexit, its boss has told the prime minister.","Technology giant Apple is ""very optimistic"" about the UK's future post-Brexit, its boss has told the prime minister. Apple's chief executive Tim Cook met Theresa May at Downing Street and said he thought the UK would be ""just fine""' outside the European Union. The company plans to build a new UK headquarters in London. His comments came as the US Chamber of Commerce said US firms had been delaying UK investment decisions. It has thousands of members in the US, including many large multinationals. Its head of international affairs, Myron Brilliant, told the BBC firms were worried about future trade rules. He said they thought there could be new regulatory challenges once the UK was now longer in the EU. However, at his meeting with the prime minister, Mr Cook said:""We're a big believer in the UK - we think you'll be just fine. ""Yes there will be bumps in the road along the way but the UK's going to be fine."" In a statement following the meeting, Apple said: ""We are proud that Apple's innovation and growth now supports nearly 300,000 jobs across the UK. "" Apple's new UK headquarters will be in the redeveloped Battersea Power Station. Last year the company said it would move 1,600 staff there in 2021. Mr Cook described it as a huge headquarters and said the company was ""leaving significant space there to expand."" Earlier the US Chamber of Commerce's Mr Brilliant told BBC Radio 5 live's Wake Up To Money: ""They're [US firms] worried about what the transition rules are going to look like. ""They're worried about whether there are going to be new regulatory challenges, impediments, and so we're going to see how that plays out over the next two years. ""One also expects that the UK-EU will have a trade agreement. But what we're saying from Washington is that we're going to be vested stakeholders, as we have been in terms of our businesses here."" He added: ""Of course, some companies are holding back investment to see how this plays out. That makes sense. ""But there is no question that Europe is an important part of any company's international strategy. ""And so it's not that they're going to pull back from Europe, but they are going to realign their investments, depending on how these negotiations go.""", -736,2017/2/9,http://www.bbc.co.uk/news/world-38925101,Domestic abuse victim's hands severed by ex-partner,,"On January 21st 2003, Antoine Dixon attacked his ex-partner Simonne Butler with a samurai sword, severing both of her hands. After dozens of operations, Simonne's hands were reattached. Her friend Renee Gunbie, who was with her at the time, lost one of her hands. Dixon then stole a vehicle and drove to Auckland, where he shot dead a man called James Te Aute. Two years later, he was given a life sentence for murder, wounding, kidnapping and using a firearm against a police officer. He killed himself in jail. Simonne told 5 live's Nihal Arthanayake what happened on that day in 2003.", -737,2017/2/9,http://www.bbc.co.uk/news/science-environment-38925011,Orphaned dik-dik raised by keepers,,He's only 19cm (7.4 in) tall and has been named Thanos., -738,2017/2/9,http://www.bbc.co.uk/news/uk-england-cambridgeshire-38920837,Family meets air ambulance doctor who saved newborn baby,,"Parents have met the emergency doctor who saved the life of their newborn baby. When Daphne-Louise was born, complications meant she was not getting any oxygen and she was given just nine minutes to live. An air ambulance crew flew to her home at Friday Bridge, near Wisbech, Cambridgeshire, and was able to save her. After baby and mother were stabilised, they were taken to hospital in King's Lynn. Her parents were reunited with Anne Booth, of Magpas Air Ambulance.", -739,2017/2/9,http://www.bbc.co.uk/news/world-asia-38885821,A Feng Shui consultant's take on Trump,,"Feng Shui consultant Joey Yap has predicted a showdown between the East and the West in 2017, with China and the US taking centre stage. We asked him to forecast how this could affect US President Donald Trump's relations with other world leaders in the Year of the Fire Rooster. Video by Ashleigh Nghiem.", -740,2017/2/9,http://www.bbc.co.uk/news/world-asia-china-38914607,Think your commute is bad? Think again.,,"Villagers in Sichuan, China, have a new ladder to assist their 800-metre climb to the outside world.", -741,2017/2/9,http://www.bbc.co.uk/news/uk-38919484,Nabila Ramdani: 'Marine Le Pen won't do a Donald',,"Viewsnight is BBC Newsnight's new place for ideas and opinion. Here, French-Algerian journalist Nabila Ramdani argues Marine Le Pen will not win in France - as Donald Trump did in the US - because of the legacy of her father. For more Viewsnight, head over to BBC Newsnight on Facebook and on YouTube", -742,2017/2/8,http://www.bbc.co.uk/news/uk-politics-38914765,Deputy Speaker orders MPs to stop whistling during Brexit vote,,"Scottish National Party MPs were told off by Deputy Speaker Lindsay Hoyle for whistling and singing the EU anthem ""Ode to joy"" in the Commons chamber as MPs voted on Brexit legislation. MPs agreed by 494 votes to 122 to let the government begin the UK's departure from the EU.", -743,2017/2/9,http://www.bbc.co.uk/news/health-38905705,A day in the life of a matron in her busy emergency care unit,,"Kathryn Carruthers shows us a day in the life of a modern matron - at the emergency care unit at Northwick Park Hospital, north London. We're with her throughout the day as she tries to keep everything together.", -744,2017/2/9,http://www.bbc.co.uk/news/world-africa-38920928,Ghana presidential fleet 'missing 200 cars',"Ghana's new government is trying to track down more than 200 cars missing from the president's office, a government spokesman has said.","Ghana's new government is trying to track down more than 200 cars missing from the president's office, a government spokesman has said. The ruling party counted the cars a month after taking power following victory in December's elections. After previous transfers of power, state-owned cars have been seized from officials who did not return them. A minister in the former government said the implied allegation of wrongdoing by his colleagues was false. Former Communication Minister Omane Boamah told the BBC's Thomas Naadi that this was ""a convenient way for the new government to justify the purchase of new vehicles"". Africa Live: BBC News updates Ghana's unstable Honourable House Presidential spokesman Eugene Arhin told the press that officials could only find: Ghanaian radio station Citi FM reported that the president has been ""forced to use a 10-year-old BMW"" as a result. In making the statement Mr Arhin revealed the president's office was meant to have more than 300 cars but he did not divulge the purpose of these vehicles. Nana Akufo-Addo from the the New Patriotic Party won the Ghanaian presidential election at the beginning of December, taking power from John Mahama, of the National Democratic Congress.", -745,2017/2/9,http://www.bbc.co.uk/news/entertainment-arts-38918958,"'Real' Mr Darcy was nothing like Colin Firth, academics say","Academics have revealed what they claim is the first ""historically accurate"" portrait of Jane Austen's Mr Darcy - and he's a world away from the romantic hero of films and TV.","Academics have revealed what they claim is the first ""historically accurate"" portrait of Jane Austen's Mr Darcy - and he's a world away from the romantic hero of films and TV. Instead of the broad shoulders and square jaw of Colin Firth there is a modestly-sized chest and pointy chin. There is little description of him in Pride and Prejudice, so the academics used historical fashions from the 1790s, when it was written. This version also wears a powdered wig. ""Our Mr Darcy portrayal reflects the male physique and common features at the time,"" says Amanda Vickery, professor of early modern history at Queen Mary University of London. ""Men sported powdered hair, had narrow jaws and muscular, defined legs were considered very attractive,"" she says. Colin Firth got the nation's collective hearts racing in 1995 with his depiction of the mysterious Mr Darcy in the BBC's adaptation. Further adaptations since have followed in the style of Firth's portrayal including Matthew Macfadyen in the 2005 film of Pride and Prejudice. But the academics say their muscular chests and broad shoulders would have been the sign of a labourer and not a gentleman at the time the book was written. The fans' favourite Mr Darcy moments - when Colin Firth walked out of a lake dripping wet and Matthew Macfadyen crossed a field in the mist, both showing off their chests - would not have looked the same with the historically accurate Mr Darcy and his sloping narrow shoulders. Some fans have not been impressed by the portrait. Professor John Sutherland, from University College London, who led the research says they only had ""scraps"" of physical description of the character Fitzwilliam Darcy. As well as looking at the fashions of the day they also looked at Austen's relationships and the men who may have inspired her characters. ""He is our most mysterious and desirable leading man of all time, says Prof Sutherland. And he appears frequently in modern culture. Further depictions of Mr Darcy include Matthew Rhys who played the character in the TV adaptation of the Pride and Prejudice ""sequel"" Death Comes to Pemberley. He also inspired the character of Mark Darcy in Bridget Jones's Diary by Helen Fielding, also portrayed by Colin Firth in the film versions. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -746,2017/2/9,http://www.bbc.co.uk/news/health-38899811,NHS Health Check: How Germany's healthcare system works,"The day after his hip replacement, Georg Thoma was cheerfully sitting up in bed.","The day after his hip replacement, Georg Thoma was cheerfully sitting up in bed. Like most Germans, the businessman pays into compulsory health insurance. He contributes 7% of his salary before tax and his employers match that amount. In return, patients get access to care which is so rapid that national waiting data is not collected. ""The doctor said to me that I have to decide when I get the operation. Normally it takes three or four weeks."" Georg travels for work to the UK and tells me he was astonished to hear that patients can sometimes wait months for a similar routine operation. Germany's spending on health care is relatively high, just over 11% of its wealth, compared to 9.8% in the UK and it has more doctors and hospital beds per patient than the UK. Georg's operation was carried out in an 80-bed hospital in one of the Black Forest towns in the south-west region Baden Wurttemberg. But even in Germany's well-funded system, the financial viability of a hospital this small is not guaranteed. A group of doctors in this area is trying to manage costs in an experiment that has attracted interest from the UK. Martin Wetzel, a GP for 25 years, explains they have done a deal with big insurance funds to make prevention a priority. ""I have more time - and it needs more time to explain to patients what I'm doing and why. So my consultations changed from an eye wink to an average of 15 minutes,"" he says. During that time patients might be offered a range of interventions to improve their health provided locally, which frees up time for the GP. These include subsidised gym sessions, access to different sports and nutrition advice as well as screening programmes to reduce loneliness as well as increasing healthiness. It is being run by a company called Gesundes Kinzigtal in which the doctors are majority shareholders. Already a couple of years into their 10-year project, they say healthcare is costing 6% less than you would expect for the population. They are trying to improve data sharing and believe hospital treatment can be reduced further. Much of the vision comes from its chief executive Helmut Hildebrandt, a pharmacist and public health expert. He says the health insurance funds have tended to concentrate on short-term cost control measures, rather than improving the health of their patients. ""At the moment the economy in Germany runs so well they don't have a problem. But in the long run every politician or administrator knows in the next 10 or 20 years the system will run into a crisis."" He fears that could undermine the commitment to the health insurance covering most Germans, with a risk of richer people opting out of it. What Gesundes Kinzigtal is trying to do is similar to some integrated care projects in the NHS. There is more money in the German system, but arguably more waste too. The Caesarean rate is higher, so is the use of MRI for diagnosis and the length of hospital stay. And in many ways there has been little incentive for change in a system where doctors still have a high degree of influence and life expectancy in Germany is not higher than the UK. Bernadette Klapper heads the health section of the Robert Bosch Foundation, which funds social policy innovation. ""I think we should get more for the money we spend inside healthcare. While we see other countries spending less, but having the same results as us, there's something wrong."" Germany is ageing very rapidly, only just behind Japan in forecast for its population profile. But the health system is changing slowly and the Bosch foundation is trying to encourage more small health centres. Many doctors in Germany set up in practice on their own, as GPs or out-of-hospital specialists, but as cities are more popular that leaves rural areas with a shortage. Travel east to the wide open rolling countryside of Thuringia and you get a glimpse of the challenge. Five years ago they were 200 GPs short of what was needed in this region. It has taken grants, and offers of help with housing and arranging childcare, to reduce that to 60. Annette Rommel is head of the doctors' association in the village of Mechterstadt and says: ""A few years ago we arranged for specially-trained nurses to make home visits and for more teamwork with nurses and doctors together."" It is similar to the way many community nurses work in the UK, but in Germany this is a recent development. Nurses have a much more restricted role. On a visit I saw a nurse and a carer, who is paid for out of the long-term care insurance that Germany introduced 20 years ago, check up on an elderly couple. It has reduced the amount families have to pay, although social care can still be a financial worry. There is enough money in the German system to make trying new approaches to healthcare a little easier. Most patients feel they can see a doctor easily, so for example the number of visits to the equivalent of A&E is very low compared to the UK. While out of hours care has been reorganised, GPs and other out of hospital doctors are often still involved in helping provide cover on a rotation. None of this removes the long-term worry about whether providing such rapid and easy access to care is affordable in the long term. A debate that German politicians are unlikely to begin publicly in this election year or any time soon. Germany UK The lessons for the UK are that money on its own is not the only solution, although it does ease pressure in the system considerably. Finding better co-ordinated ways of looking after patients, often elderly, with the highest health needs is a priority. And in Germany, despite the long-term care insurance, families still have to contribute a significant amount to looking after older people. However, there is a mechanism for sustainable funding for social care that is very different from the significant reductions in care budgets seen in the UK. A week of coverage by BBC News examining the state of the NHS across the UK as it comes under intense pressure during its busiest time of the year.", -747,2017/2/9,http://www.bbc.co.uk/news/health-38911008,The health service taking a holistic approach to patients,"""My colleagues think I'm mad,"" says Dr Andrew Weatherburn.","""My colleagues think I'm mad,"" says Dr Andrew Weatherburn. As a consultant in geriatric medicine, he is an unlikely addition to the Moor Park Health and Leisure Centre, where schoolchildren queue for swimming lessons and people grab coffees between Zumba lessons. ""Moving out of the hospital and into the community is the best thing I've done as a consultant."" Dr Weatherburn works on the Fylde Coast, an NHS Vanguard area. The local health service here is pioneering a new model of working, which could become a blueprint for the rest of the NHS. Blackpool and Fylde suffer from many of the problems that plague the NHS nationally. With constantly increasing demand and a shortfall in supply, the local services have been under considerable strain for years. Add to that a higher than average elderly population, which is set to double by 2030, and the local health service begins to look unsustainable. ""It's about 3% of our population that use about 50% of the resources,"" says Dr Tony Naughton, the head of the clinical commissioning group in Fylde. As a part-time GP, he understands the need for an accurate diagnosis so their first innovation was to use patient data to work out who was actually using the services. They were predominantly elderly and tended to suffer from more than one long-term condition. Rather than waiting for these patients to arrive at A&E, the Fylde Coast district set up the Extensive Care system, targeting resources on actively trying to keep them healthier. Rather than providing temporary fixes every time a patient is in hospital, this model takes a more holistic approach. ""These patients were going off to see a kidney specialist and then a diabetic specialist and then a heart specialist. They had a career in attending hospital, whereas this service wraps all of those outpatients appointments together and looks at each person as an individual, rather than as a heart or as a kidney."" Dr Naughton explains that to make this more joined up system work, it was taken out of the rigid departmental structure of the hospital and placed firmly in the community. Dr Weatherburn, at his clinic in the leisure centre, believes the benefits are obvious. ""I definitely know my patients much better now."" While in hospital, he would have had about 10 minutes to assess a patient's most urgent needs. Now every patient who is referred to them receives a thorough two-hour assessment with a group of medics, who then hold a meeting to come up with a co-ordinated treatment plan for each one. This system uses welfare workers as well as medics to manage each patients needs. ""Somebody may come in with a chest infection, but that maybe because they're not eating properly or they have a damp house. Now, I can't write a prescription for a dry house, but I can put them in touch with someone who can help with their housing problem,"" explains Dr Naughton. The welfare workers spend more time with the patients, helping them with broader social issues and finding ways of managing their illnesses at home. Their job is really to empower patients to take control of their own health. Dr Weatherburn says it is working. ""It's often the little things that made the big difference. It's not the big medical interventions and fancy tests, it's helping with loneliness, and helping the carers and families as well."" This may sound expensive, but the scheme should pay for itself. The new welfare workers are not medically trained so employment costs are lower, but their intervention can solve underlying problems which keep people coming back to A&E. The results are certainly impressive. After a year-and-a-half of trialling the scheme, the Fylde Coast has already seen 13% fewer attendances at A&E, and 23-24% fewer outpatient attendances. When Lily Greenwood's husband, Peter, left hospital after suffering from a stroke, they were referred to the Extensive Care service. ""The doctor sent us here. We didn't want to come, but it's been the best thing ever."" Although Lily wasn't the patient, the team's approach of looking at every aspect of the patient's well-being, meant that attention turned to 80-year-old Lily too, as Peter's sole carer. The team helped her to take control. ""It took its toll on me at the beginning, but now, I just feel that with coming here, we can cope with it."" The team filled in all the forms that Lily had been baffled by, they helped her to apply for the extra benefits she was entitled to and, most importantly, they helped her to manage her husband's condition. They even introduced her to local support groups for carers so that she no longer feels alone or overwhelmed. ""The nurses to me are friends. They have time for you. We're a lot happier now. I feel I can cope with Peter now."" A week of coverage by BBC News examining the state of the NHS across the UK as it comes under intense pressure during its busiest time of the year. Given their success in reducing pressure on A&E departments, Blackpool and Fylde applied a similarly local, holistic model of care to a broader section of the population. Every neighbourhood received its own dedicated team of therapists, nurses and welfare workers who could treat patients at home in order to reduce the pressures on GP surgeries. ""It's a cultural change. We don't just do the therapy and rush to the next appointment, we think about a patient's overall well-being."" Lucy Leonard is part of a neighbourhood team in Blackpool. Having been an occupational therapist for 17 years, she knows the NHS is notoriously resistant to change. Yet, she insists, this system is being embraced by patients and practitioners alike. ""Sometimes people can feel a bit frightened and threatened by change, especially when they worry about their professional identity and being asked to do new roles, but really, it's just about putting the patient at the heart of what we do."" This system has been a success on the Fylde Coast, and the principles could be replicated across the country. By investing in a more holistic approach, not only has the pressure on hospitals and GP surgeries been eased but, vitally, people are healthier and better able to manage their health too.", -748,2017/2/8,http://www.bbc.co.uk/news/uk-38906967,Mark Simpson: How Karen Matthews made a fool out of me,"Shannon Matthews's disappearance in a 2008 hoax-kidnapping is being recounted in a BBC drama. BBC News's Mark Simpson, who reported on the case, looks back at the deception.","Shannon Matthews's disappearance in a 2008 hoax-kidnapping is being recounted in a BBC drama. BBC News's Mark Simpson, who reported on the case, looks back at the deception. Karen Matthews made a fool out of me. I looked into her sunken eyes, saw that she was petrified and gave her the benefit of the doubt. Maybe my judgement was coloured by the fact that she chose to give me her first interview. Maybe it was clouded by seeing inside her small semi-detached house, and the grim conditions in which she and her seven children were living. Maybe I was so cold at the time, my brain froze. Karen's daughter Shannon, nine, disappeared on the coldest night of the year in February 2008. Police divers who searched a lake near her home in Dewsbury Moor in West Yorkshire had to break through ice to get into the water. The air temperature had dipped to -4C. The night Karen agreed to talk to me, I was shaking with cold after spending hour after hour talking live on the BBC News Channel (or BBC News 24 as it was then). Karen spotted me out of her front window and came out to talk. She was shaking too, but out of fear. She was scared - scared of being found out. She gave me no eye contact. She looked down the barrel of the BBC camera and said; ""Shannon if you're out there, please come home. We love you to bits, we miss you so much. Please, I'm begging you baby, come home."" When the police saw her interview on the BBC Ten O'Clock News, they were annoyed. They had advised her not to talk to the media. They were as surprised as me that she agreed to give me an interview. So was this erratic behaviour the first sign that all was not what it seemed? In hindsight, it may seem so, but at the time, it seemed simply a desperate act by a desperate mother. Fresh in my mind were the Soham murders of schoolgirls Jessica Chapman and Holly Wells. When children disappeared for more than 48 hours, the outcome was usually not good. That is why there was such a huge community effort to try to find Shannon. People realised that time was short. Yes, I did wonder if Karen Matthews was telling the truth. Everyone did. However, I believed her. And I was not alone. As well as searching hedges and parkland, the police drew up a map showing where convicted paedophiles lived in the Dewsbury area. They checked, and double-checked. There was no sign of Shannon. As days turned to weeks, the more convinced detectives became that Shannon would not be coming home. However, Karen's friends and neighbours never gave up, and neither did the police. About 10% of the force's officers were put on the case and more than ?3m was spent in what was one of the largest search operations since the hunt for the Yorkshire Ripper. Shannon was eventually found, 24 days after she disappeared. A BBC colleague got a tip-off and phoned me. I was shopping in Ikea in Leeds at the time, and nearly dropped my phone on a multi-coloured Swedish rug when I heard the news. As I drove down the A6110 to Dewsbury, I wondered if Karen would give me an interview again. We could do it in the same spot where we had first spoken. The only difference would be that this time she would be with Shannon beside her. The tears would turn to cheers. For once, it would be a story with a happy ending. What a fool I was. It later emerged that Shannon had been kept drugged and hidden in the base of a divan bed by the very people appealing for her safe return. That September Karen, and Michael Donovan, the uncle of Karen's partner, went on trial for kidnap, false imprisonment and perverting the course of justice. They were jailed for eight years after the court heard about their plot to hide the child and claim a ?50,000 reward that subsequently had been offered by the Sun.", -749,2017/2/9,http://www.bbc.co.uk/news/uk-politics-38919873,Reality Check: Did government go back on its word on child refugees?,"Speaking on the BBC's Victoria Derbyshire programme, Labour peer Lord Dubs spoke of his disappointment that the government had ""gone back on their word"" on how many unaccompanied asylum-seeking children would be brought to the UK from Europe.","The claim: The government had committed to taking 3,000 unaccompanied refugee children from Europe, but it will now close the programme after taking in just 350. Reality Check verdict: The government previously referred to a goal to bring 3,000 unaccompanied children to the UK but eventually passed an amendment that did not commit to a specific figure. Immigration Minister Robert Goodwill says the 350 figure meets the ""intention and spirit"" of the Dubs Amendment, but Lord Dubs disagrees. Speaking on the BBC's Victoria Derbyshire programme, Labour peer Lord Dubs spoke of his disappointment that the government had ""gone back on their word"" on how many unaccompanied asylum-seeking children would be brought to the UK from Europe. The 3,000 figure was originally put forward in a campaign run by charity Save the Children. And in January 2016, the then Immigration Minister, James Brokenshire, said the government would commit to resettling increasing numbers of refugees, most of whom would be children, mentioning the 3,000 figure as a goal but without giving any figure as a commitment. Then, in March 2016, Lord Dubs, who came to the UK himself as a child refugee fleeing the Nazis, tabled an amendment to the Immigration Bill, which would require the UK to take in 3,000 children who had been separated from their families. This had strong support from all opposition parties and a number of Conservative MPs. And it passed in the House of Lords by a significant margin at the end of March. But when it went to the Commons in April, the Conservative government's position was to vote against the amendment, and it was rejected by a narrow margin. It then went back to the House of Lords, where Lord Dubs reworded the amendment to read that the UK should take a ""specified number"" of unaccompanied children from Europe and that this number would be agreed later in discussion with local authorities. This again passed in the Lords with a significant majority. It then went back to the Commons and was expected to go to a vote on 9 May. But, on 4 May, ahead of the vote, Mr Cameron accepted the revised version of the amendment. Nearly a year later, on Wednesday, 8 February 2017, Immigration Minister Robert Goodwill announced that the government would transfer 350 unaccompanied children - about a 10th of the original figure - from refugee camps in Europe, which, he said, would meet the ""intention and spirit"" of Lord Dubs's amendment. Mr Goodwill said this would include about 200 children already brought to the UK under the terms of Lord Dubs's amendment and another 150 still to come. He said that more than 900 children had been brought here from Calais in total in 2016. The 700 brought to the UK but not under the terms of Lord Dubs's amendment were brought here under a different regulation, which allows unaccompanied minors to come to the UK if they already have immediate family here.", -750,2017/2/9,http://www.bbc.co.uk/news/business-38919403,How do fake news sites make money?,,"The issue of fake news on social media has grabbed headlines since the 2016 US presidential election. But how do fake news sites make money? Find out more on Talking Business on Friday, 10 February at 15:30 GMT on BBC World, and on Saturday, 11 February at 20:30 GMT on the BBC News Channel in the UK.", -751,2017/2/8,http://www.bbc.co.uk/news/business-38894813,How firms should best react to a crisis,"When infidelity website Ashley Madison was the victim of a hacking attack in 2015, the affected 36 million global users were suddenly very worried indeed.","When infidelity website Ashley Madison was the victim of a hacking attack in 2015, the affected 36 million global users were suddenly very worried indeed. The business, a dating site for married people who wish to cheat on their spouse, had the data of its customers stolen and released on to the internet. All their names, passwords, phone numbers and addresses. While it was a very bleak time for Ashley Madison's users, the company itself faced a major crisis, and it was found to be lacking. As customer numbers and revenues plummeted, the Federal Trade Commission (FTC) - the US agency tasked with protecting consumers - ruled that the business had not done enough to protect people's information, both before and after the attack. The FTC fined Ashley Madison $1.6m (?1.3m), and said that the financial penalty was only that low because it didn't think that the business could afford to pay any more, such was the impact of the hack on its earnings. Where Ashley Madison failed was its insufficient crisis management - it hadn't prepared enough for something bad happening, and how it would react. While the company tells the BBC it has subsequently overhauled all its systems, how should all firms best plan for and then respond to a crisis, be it a cyber-attack, financial scandal or other serious issue? With the UK government confirming last year that two-thirds of large British companies had experienced a cyber-attack in the previous 12 months alone, businesses who have an online presence anywhere in the world simply have to prepare for how they would react to a hack that breaches their system. A business can make its website as secure as possible, but being 100% protected is just not achievable, say IT experts. Thankfully for UK employment agency Page Group it knew exactly how to react when it suffered a data breach of its cloud computing system in October last year. ""We have senior staff in place from across different parts of our organisation that form an issues management team who are well equipped to deal with a crisis, should it arise,"" says Eamon Collins, Page's group marketing manager. ""That is why when we were alerted to a data breach by our IT vendor Capgemini, this team was able to act fast, review the issue, and provide counsel on the best course of action. ""The most important part of the process is putting your customers' interests first."" He adds: ""Once we had sufficient information around what had happened, and the impact, we could undertake a transparent and open dialogue with the customer."" At former US mining group National Coal, the crisis it faced was repeated protests in the early 2000s by environmentalists who objected to its opencast mining in east Tennessee. Its then chief executive, Daniel Roling, said the company had plans in place for how it responded to everything it faced - from trespassers, to staff being threatened, entry roads being blockaded, and bomb threats. ""We held a number of run-throughs to test the effectiveness of both communications and operation responses,"" he says. ""The plan should, at a minimum, include an acceptable and effective means of communication, as well as an outline of who can and should provide direction."" Mr Roling, who left National Coal before it was sold to Ranger Energy Investments in 2010, adds: ""We had everything planned right down to where we would hold a press conference, and how we would set it up. ""In crisis planning, you are looking to create an effective auto-response, so that everyone heads in the right direction, without too much deliberation."" At UK tourist attraction, the Jorvik Viking Centre, in York, its crisis was a major flood in December 2015 that caused significant damage. Director of attractions Sarah Maltby says the team worked hard to remove precious artefacts before they were damaged. ""Every company needs solid staff to assist, offer advice, and manage elements of disaster recovery,"" she says. The centre is now due to finally reopen in April this year. Crisis management expert Jonathan Bernstein says it is vital that a company responds quickly to a crisis. ""The crisis moves at its own pace, but you need to be faster."" He adds that firms should be honest about the crisis at hand, especially if it is something they are to blame for, such as a financial scandal. ""Be honest about how you screwed up, and illustrate how you are going to ensure this doesn't happen again,"" says Mr Bernstein. ""Provide clear information to customers on what happened exactly, and what new protocols will be in place."" Damon Coppola, founder of Shoreline Risk, a company that assists businesses with their risk management, says that when it comes to a firm preparing for a possible crisis ""the public might not necessarily expect perfection"". But he adds: ""[The public's] judgement will be hard if it is perceived that the company failed to act on an obligation to limit or prepare for a known risk, if they were dishonest in their communication, and perhaps in the worst case, if profits came before people."" These are views echoed by UK public relations expert Benjamin Webb, founder of media relations firm Deliberate PR, which specialises in Swedish start-ups. He says: ""At a time of fast-moving crisis, particularly when people's well-being is at stake, transparency to customers and their family members must exceed any responsibility to shareholders."" At Toronto-based Ruby Corporation, the owner of Ashley Madison, chief executive Rob Segal, says the company has worked hard to rebuild trust since the 2015 hack. Mr Segal, who joined the firm after the attack, says: ""We partnered with Deloitte's world-leading security team following the breach, and they've been helping the company with privacy and security enhancements and 24/7 monitoring. ""The go-forward lessons for chief executives is to always stay vigilant about cybersecurity, and to continually invest in privacy and security safeguards.""", -752,2017/2/8,http://www.bbc.co.uk/news/world-us-canada-38910648,'It gets lonely': Being conservative on a liberal campus,,"What is it like to be a conservative on a liberal college campus in the age of President Trump? At George Washington University and American University in the nation's capital, conservatives tell the BBC what's changed. Video by Charlie Northcott, Charlotte Pamment and Iliana Hagenah.", -753,2017/2/8,http://www.bbc.co.uk/news/entertainment-arts-36249956,Obituary: Alan Simpson,"Alan Simpson formed, with Ray Galton, one of the great television scriptwriting partnerships.","Alan Simpson formed, with Ray Galton, one of the great television scriptwriting partnerships. Their early work with Tony Hancock pioneered what became known as situation comedy. They went on to create Steptoe and Son, which became the most watched comedy on TV over its 12-year run. But, although they continued to write, they failed to replicate the success of their early work. Alan Simpson was born in Brixton, London on 27 November 1929. After leaving school, he obtained a job as a shipping clerk before contracting tuberculosis. He became so ill that he was not expected to live and was given the last rites. However, he survived, and while a patient in a sanatorium in Surrey he found himself alongside another teenage TB sufferer named Ray Galton. Galton never forgot his first sight of his future partner, 6ft 4in tall with a build to match. ""He was the biggest bloke I'd ever seen."" They discovered a shared love of American humorists such as Damon Runyon and had both listened to the BBC radio comedy programmes Take It From Here and The Goon Shows. Their first work together was for hospital radio. Have You Ever Wondered was based on their experiences in the sanatorium, which was played out in 1949. When Simpson left hospital he was asked by a local church concert party to write a show and he roped in Ray Galton to help. They also began sending one-liners to the BBC, which secured them a job writing for a struggling radio show called Happy-Go-Lucky. The pair also linked up with several other promising new comedy writers and performers of the time, notably Eric Sykes, Peter Sellers, Frankie Howerd and Tony Hancock. They were quickly tiring of the format of radio comedy shows of the time which included music, sketches and one-liners, and hankered after something with more depth. They came up with the idea of comedy where all the humour came from the situations in which characters find themselves. Tony Hancock liked the idea and Hancock's Half Hour was born. It is often credited as the first true radio sitcom, although two other shows of the time, A Life of Bliss and Life with the Lyons, were already using the format in 1954 when Hancock first aired. Over the following five years the writers developed the format, often taking cues from a new generation of playwrights such as John Osborne and Harold Pinter. The pace of each show became slow and more measured, in direct contrast to the speedy wise-cracking delivery of contemporary radio comedians such as Ted Ray. Simpson himself appeared in early episodes as the unknown man who had to suffer Hancock's interminable monologues. In 1956 the series transferred to TV and ran until 1961. The final series was just entitled Hancock and it was that run which featured the best-known shows including The Blood Donor (""It was either that or join the Young Conservatives"") and The Radio Ham, in which Hancock proves completely incapable of responding to a distress signal from a sinking yachtsman. Hancock, who was becoming increasingly self-critical and drinking heavily, sacked his writers in 1961. Unwilling to lose them, the BBC commissioned them to write scripts for Comedy Playhouse, a series of one-off sitcoms. One play, entitled, The Offer, spawned Steptoe and Son, the tale of two rag-and-bone merchants, a father and son, living in Oil Drum Lane, Shepherd's Bush. The script relied on the clash between the two characters; Albert, the grasping father with none too hygienic personal habits and Harold, his aspirational son who yearns for a better life but never achieves it. The show was unusual in that the two performers, Wilfrid Brambell and Harry H Corbett, were actors rather than comedians. The original four series ran between 1962 and 1965 and the show was revived between 1970 and 1974, during which time two feature film versions were also released. It proved to be the high point for the duo. There was further work with Frankie Howerd and, in 1977, Yorkshire TV attempted to replicate the success of Comedy Playhouse with Galton & Simpson's Playhouse, although none of the episodes produced a series. Simpson quit writing in 1978 to pursue his other business interests although he and Galton remained close friends. In 1996 they reunited to update some of their best-known scripts for the comedian Paul Merton. Simpson blamed their later lack of popularity on the fact that shows were commissioned by armies of managers rather than producers. ""Fifty years ago,"" he said in an interview with the Daily Telegraph, ""if you had an idea, it could be going out in three weeks; the time it took to build the sets. Now it has to go through committees and the process takes years."" Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -754,2017/2/9,http://www.bbc.co.uk/news/in-pictures-38918116,Your pictures: Fences,"Each week, we publish a gallery of readers' pictures on a set theme. This week it is ""Fences"".",, -755,2017/2/9,http://www.bbc.co.uk/sport/football/38918984,World Cup 2026: Uefa will ask for 16 places for European teams,Germany won the World Cup for a fourth time with victory over Argentina in Brazil in 2014,"Share this with European football's governing body will ask for its teams to be given 16 places at the expanded 48-team 2026 World Cup. Uefa will also request that the European teams who do qualify are kept apart in the first stage. The new-look tournament will begin with an initial round of 16 three-team groups, with 32 qualifiers going through to the knockout stage. Thirteen European teams qualified for the last World Cup in Brazil in 2014, which was won by Germany. Uefa president Aleksander Ceferin said the requests are ""realistic"", and it is his desire for every European team to qualify from the first round. Fifa is expected to confirm the quotas for each continental governing body in May. Ceferin was speaking at a meeting of the Uefa Executive Committee in Nyon. All members of the committee agreed with the proposals. Other proposals approved at Thursday's meeting included: Media playback is not supported on this device Fifa's members voted unanimously in favour of the World Cup expansion in January. The number of tournament matches will rise to 80, from 64, but the eventual winners will still play only seven games. The tournament will be completed within 32 days - a measure to appease powerful European clubs, who objected to reform because of a crowded international schedule. Fifa president Gianni Infantino said the World Cup has to be ""more inclusive"", adding: ""Football is more than just Europe and South America, football is global."" Speaking to the BBC at the time of the announcement, he said the decision on who would get the extra qualification slots would be ""looked at speedily"". He added: ""The only sure thing is that everyone will have a bit more representation than they have."" Speaking on Thursday, Ceferin said: ""We can push and be outvoted, but we think it is realistic to ask for 16 slots at least, plus another condition that each European team is in different groups. ""Then if it is true that we are so good, that quality is on our side, I think all 16 can qualify."" BBC Radio 5 live sports news correspondent Richard Conway Now we know for certain that Uefa wants at least 16 places in return for support for expanding the World Cup to 48 teams in 2026. But that's not all. It wants one team per group in the first round, enhancing the chances of its member nations making it through to the knockout stages. It's football politics at the sharp end. Uefa's new leader, Aleksander Ceferin, was wily enough to see how strong the support was from other confederations to expand the tournament and he's determined to give his members the best deal possible under the circumstances. Fifa says the final decision on how the extra 16 slots for 2026 will be divided up will be made later this year. But it's an early test for its claim to be a more transparent organisation in light of its scandal-stained past. How will the carve-up be decided? An open and fair process? Or in smoke-filled rooms, far away from public scrutiny? Ceferin's apparent confidence in getting the deal he wants suggests Fifa still has some way to travel on its path to full reform. Share this with Guess who these angry lyrics were aimed at Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Basketball Open Session Beginners Running with Childcare - Steeple Claydon For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -756,2017/2/9,http://www.bbc.co.uk/sport/tennis/38916613,Fed Cup: Heather Watson & Johanna Konta help Great Britain to win over Latvia,Johanna Konta missed the Fed Cup in 2016 because of injury,"Share this with Heather Watson and Johanna Konta led Great Britain to a second successive 3-0 win at the Fed Cup in Estonia. World number 72 Watson beat Latvia's Diana Marcinkevica 6-3 6-0, before world number 10 Konta defeated 35th-ranked Jelena Ostapenko 6-2 6-3. Jocelyn Rae and Laura Robson then saw off Daniela Vismane and Marcinkevica 6-0 6-7 (2-7) 6-2 in the doubles. Britain beat Portugal 3-0 on Wednesday, and top the group going in to their final match against Turkey on Friday. Victory would guarantee their place in the promotion play-offs on Saturday, when they would face the winners of Pool B. Find out how to get into tennis in our special guide. ""We knew that Latvia was going to be a strong team,"" said Konta. ""It's never easy and a lot of players raise their level in Fed Cup. The scoreline doesn't suggest it was as difficult as it felt. ""I'm really enjoying it. I didn't get the chance to play it last year so from the very beginning of the season I was clear that I wanted it to be part of my schedule."" Unlike the men's team competition, the Davis Cup, which has a World Group of 16 nations, the Fed Cup divides its top teams into two groups of eight - World Group I and World Group II. The 91 nations outside the top tiers are divided into three regional zones and Britain have one chance per year to escape - a format that hugely frustrated former captain Judy Murray. The Europe/Africa Group I event, which this year takes place in Estonia, has 14 teams divided into groups, with Poland, Croatia, Britain and Serbia the seeded nations. Four group winners will progress to promotion play-offs on Saturday, and two nations will then qualify for World Group II play-offs in April - which could see Britain given a home Fed Cup tie for the first time since 1993. They fell at the same stage in 2012 and 2013 - away ties in Sweden and Argentina - under the captaincy of Judy Murray. Share this with Fed Cup ATP & WTA Tours How to get into tennis - a sport on the up in the UK. Find your nearest court and learn the basics with our guide This week's sport on the BBC includes the 2017 Six Nations, Premier League football and Usain Bolt's Nitro Athletics. Get the latest tennis headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. Guess who these angry lyrics were aimed at Run by the BBC and partners Basketball Open Session Beginners Running with Childcare - Steeple Claydon For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -757,2017/2/9,http://www.bbc.co.uk/sport/rugby-union/38919198,Six Nations 2017: George North and Dan Biggar in Wales team v England,Dan Biggar has scored 298 points for Wales while George North's try in Italy was his 28th for his country,"Share this with Wing George North and fly-half Dan Biggar have been named in Wales' team to play England on Saturday despite suffering injuries against Italy. The pair are recovering from leg and rib blows and will be given until match day to prove their fitness. Props Rob Evans and Tomas Francis are the two changes from the 33-7 win over Italy in Rome. Bath number eight Taulupe Faletau, who has not played since Christmas Eve, is named on the bench. Faletau takes the place of Ospreys forward James King and is the only change in personnel from the match-day squad in Rome. It means a vote of confidence for the starting back-row of Sam Warburton, Justin Tipuric and Ross Moriarty. Biggar was replaced by Sam Davies at half-time in Rome after suffering bruised ribs while North played on after suffering a bruised thigh in the second minute. Media playback is not supported on this device Head coach Rob Howley said both players had taken a limited part in training during the week. ""George hasn't done too much this week and Dan has done a couple of sessions,"" said Howley. ""Those two players will be given every opportunity to be fit. They're two experienced players, they are important players for us - George in the wide channels and Dan through his experience and leadership. ""We'll go to the day of the game. It's a big game, both players want to be part of that game as you'd expect. ""We've got extremely motivated players and we're looking forward to the challenge that England will bring us on Saturday. ""Both Rob (Evans) and Tomas (Francis) made a big impact off the bench last weekend and deserve their opportunity to start. Media playback is not supported on this device ""We have had a short turnaround but Dan and George have worked hard with the medics and we are pleased to be able to name them."" The roof at the Principality Stadium will be closed for the match at the request of England coach Eddie Jones. The Australian said he was ready for Welsh 'shenanigans' after naming a team showing two changes from the win over France. Howley wanted the roof closed and on Thursday lunchtime thought that would be the case, before England confirmed it would remain open. Both teams have to agree for the roof to be closed. Match-day 23 for game against England: Wales: Leigh Halfpenny (Toulon); George North (Northampton), Jonathan Davies (Scarlets), Scott Williams (Scarlets), Liam Williams (Scarlets); Dan Biggar (Ospreys), Rhys Webb (Ospreys); Rob Evans (Scarlets), Ken Owens (Scarlets), Tomas Francis (Exeter), Jake Ball (Scarlets), Alun Wyn Jones (Ospreys, capt), Sam Warburton (Cardiff Blues), Justin Tipuric (Ospreys), Ross Moriarty (Gloucester). Replacements: Scott Baldwin (Ospreys), Nicky Smith (Ospreys), Samson Lee (Scarlets), Cory Hill (Newport Gwent Dragons), Taulupe Faletau (Bath), Gareth Davies (Scarlets), Sam Davies (Ospreys), Jamie Roberts (Harlequins). Share this with How to get into rugby union - into the thick of the 15-player game or try rugby sevens, which made its Olympic debut in 2016. Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. Enjoy the best debate, analysis and interviews with BBC 5 live and World Service plus our rugby union commentary listings. This week's sport on the BBC includes the 2017 Six Nations, Premier League football and Usain Bolt's Nitro Athletics. Guess who these angry lyrics were aimed at Run by the BBC and partners Basketball Open Session Beginners Running with Childcare - Steeple Claydon For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -758,2017/2/9,http://www.bbc.co.uk/news/uk-38918918,Tara Palmer-Tomkinson and co: Whatever happened to the 'It girl'?,"Tara Palmer-Tomkinson, found dead at the age of 45, was head girl in a band of ""It girls"" that sprinkled sparkle and glamour into the newspaper columns of the 1990s. Now, 20 years on, we ask whatever happened to the ""It girl""?","Tara Palmer-Tomkinson, found dead at the age of 45, was head girl in a band of ""It girls"" that sprinkled sparkle and glamour into the newspaper columns of the 1990s. Now, 20 years on, we ask whatever happened to the ""It girl""? They were Tara, Tamara, Amanda, Isabella - party-loving, bronzed socialites who drank fizz, travelled on private jets and wrestled with disastrous love-lives. They weren't the first of their breed. Nor will they be the last. But, after Tatler magazine put Tara and American socialite Normandie Keith on its front cover in 1996 and dubbed them the ""It girls"", the label stuck. ""It girls"" in the 1990s were ubiquitous, says Wendy Holden, ghostwriter of Tara's witty Sunday Times column which ran in the late 1990s. ""You had to be rich, thin and beautiful. You didn't have a job because you had to spend nights in clubs and bars, and would never have made it into the office the next day. ""You never got upset, you had rich boyfriends, and lived a fairytale life."" ""You were socially aspirational, often quite posh and aristocratic."" Kate Reardon who, as fashion director, designed Tatler's ""It girls"" front cover and now edits the magazine, agrees good looks, glamour and charisma were part of the package, but adds: ""It's the indefinable 'it' - you can't define it. ""If you could, everybody else would do it too."" She also believes a wild side helped. ""That's what made good copy. Well-behaved girls aren't that fascinating."" Wendy Holden tries to put her finger on why ""It girls"" struck such a chord in the decade that brought us Britpop, Tony Blair and the ""Rachel"" haircut. ""People could not get enough of them. I don't know why - maybe it was a reaction to the ball-breaking 1980s and the austere 1990s. ""People always like glamour. They like to see pictures of beautiful girls having lots of fun. Some admire them, some laugh at them."" Most of the girls, she says, acknowledged they were a side-shoot of the entertainment industry and ran with it. Tara was very intelligent but, says Holden, I never heard her utter a single political opinion. ""I think she thought it was slightly out of her remit - she was strictly entertainment."" With that came the assumption that all ""It girls"" were stupid, and it was a tag Tara struggled to shake off. Writing in the Spectator in 1996 at the height of her fame, she said: ""It is agreeable to wake in the morning and find a national newspaper praising one's beauty. ""It is far less agreeable to discover that this praise has been set in the sour old mould of 'beauty rather than brains'. ""As I grow older, I am convinced that the Restoration values of character and wit are what a woman needs to prosper, rather than book-learning."" Before Tara, there was Jane Asher, a one-time girlfriend of Paul McCartney, in the 1960s, and in the 1980s, it was Koo Stark, best known for her close friendship with Prince Andrew. Today's ""It girls"" are not so very different, says Reardon, although they've been rebranded. ""Social influencers"" - including party-going models Cara Delevingne and Suki Waterhouse - are still very beautiful and like going out. The difference is they now tend to achieve a lot more, points out Reardon. In the past, they relied on the beneficence of newspaper editors. Now they can take control of their own destiny via Instagram and other social media platforms, she says. It's become more democratic and made it less likely that today's ""It girls"" will have royal or high society connections. But the appeal of these girls is, and always has been, the ""wonderful escapism"" they offer us, says Reardon. The ""It girls"" were always the people to be seen out with in their heyday, but what's happened to them in the years since? Tamara Beckwith Tamara Beckwith, a good friend of Tara's, was one of the best-known ""It girls"" of the 1990s. The London-born socialite went to Cheltenham Ladies' College but left after she became pregnant at 16, having a daughter, Anouska, with William Gerhauser, son of the former Playboy businessman Bill Gerhauser. She presented on The Big Breakfast and MTV, dated actors Sylvester Stallone and Charlie Sheen after moving to Los Angeles and later forged a career as a reality TV star, appearing on Dancing On Ice, CelebAir, and Come Dine With Me. Tamara married Italian property heir Giorgio Veroni in 2007 and the couple have two children of their own, daughter Violet and son Vero. Now 46, she co-owns The Little Black Gallery, a boutique gallery in Chelsea specialising in contemporary photography from around the world. Amanda de Cadenet Amanda de Cadenet was the original 1990s ""wild child"", a regular at nightclubs on London's King's Road, all while still a teenager. At 17, she dated Hollywood actor Jack Nicholson, a year later became a co-presenter on late-night Channel 4 show The Word and, at 19, married Duran Duran bassist John Taylor, before later divorcing. In 2006 she married Nick Valensi, the guitarist from The Strokes, with whom she has twins. Now 44 and living in America, Amanda became the host of US TV series The Conversation with Amanda de Cadenet in 2011, interviewing Lady Gaga, Gwyneth Paltrow and Jane Fonda. She even landed an hour-long interview with Hillary Clinton before her campaign to become US president. Normandie Keith Normandie Keith's image as an ""It girl"" was secured when society bible Tatler featured her alongside Tara on the cover of its November 1996 issue. The American oil heiress was a huge hit on the London party scene, when she briefly dated industrialist Lord Hanson's son, Robert. She married polo player Lucas White, a friend of Robert Hanson, in 2000, and had a son, Finn. But after the couple separated, she moved back to America and trained as a yoga teacher in Los Angeles. She told the Daily Telegraph in 2014: ""I giggle when I think I now get up at 4am to practise yoga when I used to go to bed at 4am."" Lady Victoria Hervey Lady Victoria Hervey and her sister Isabella, daughters of the Marquess of Bristol, were also well known figures in the 1990s and 2000s party set. As a socialite and aristocrat, Lady Victoria enjoyed a privileged life, boarding at Benenden girls' school in Kent. After turning down a place at university, she became a model for Christian Dior before opening the Akademi fashion boutique in Knightsbridge with a friend. Like many of her contemporaries she dabbled in TV, having a small part in Absolutely Fabulous before appearing on reality shows, The Farm, Love Island and on Channel 4's The Jump in 2015. Lady Victoria, 41, was also author of Victoria's Secrets, a London party diary column in the Sunday Times, and last year released her first book, Lady in Waiting, the first of a trilogy. Lady Isabella Hervey The younger Hervey sister, Lady Isabella, 34, has also been a model and actress, appearing on TV's Celebrity Love Island before becoming the face of Playboy UK and going on to compete on Celebrity Masterchef. In April 2004 she took part in Channel 4's mock Olympics, The Games, which reignited her love of sport and fitness. She released a workout DVD the following year and since 2007 has run her own business as a personal trainer. In an interview with Metro newspaper she distanced herself from the ""party scene"" and the ""socialite"" label. She said: ""A socialite is someone who goes to all those parties. I don't drink and I hardly ever go out. I'm more of a home girl."" In 2014 Lady Isabella married Belgian businessman Christophe de Pauw, and the couple have a son, Victor Michael Maurice.", -759,2017/2/9,http://www.bbc.co.uk/news/magazine-38912958,A sarcastic response to Syria's militants,"It takes a special kind of person to run a radio station in an area controlled by Islamist militants in northern Syria. Music is forbidden, so are women presenters. But Raed Fares - manager of Radio Fresh FM - has come up with a creative response to the militants' demands.","It takes a special kind of person to run a radio station in an area controlled by Islamist militants in northern Syria. Music is forbidden, so are women presenters. But Raed Fares - manager of Radio Fresh FM - has come up with a creative response to the militants' demands. It is mid-day and almost time for the latest news from Radio Fresh FM in the rebel-held province of Idlib, in north west Syria. Suddenly the airwaves are filled with assorted sounds of tweeting birds, clucking chickens and bleating goats. As the newsreader gets under way, the cacophony continues beneath his voice. You might be forgiven for thinking that this is some sort of farming bulletin. It's not. It's simply that the station's manager, Raed Fares, has had enough of being told what to do by the powerful jihadist group, Jabhat Fateh al-Sham or JFS - which until last July was linked to al-Qaeda and known as the al-Nusra Front. ""They tried to force us to stop playing music on air,"" says Fares. ""So we started to play animals in the background as a kind of sarcastic gesture against them."" In what appear to be further acts of sarcastic sabotage aimed at JFS's ban on music, Radio Fresh FM has introduced long sequences of bongs from London's Big Ben clock, endless ticking sounds, ringing explosions and the whistle of shells flying through the air. And instead of songs with melodies, the station now plays recordings of tuneless chanting football fans. Fares has been getting involved in confrontations of one kind or another for years now. He took part in hundreds of demonstrations against Syrian President Bashar Assad's regime at the beginning of the uprising in 2011 and continues to see it as the biggest enemy. Many of his friends were killed or imprisoned, as the authorities responded with increasing violence. Then came the threats from fighters of the so called Islamic State. Like JFS, they said the station's music was haram, or offensive to Islam. Believing this to be totally wrong, Fares ignored the threats and carried on as before, but nearly paid with his life. Just over three years ago, when the 44-year-old former estate agent arrived home in the early hours of the morning, after finishing work at the radio station, two IS gunmen with Kalashnikovs were waiting for him. They fired a barrage of shots, leaving more than a dozen holes in his car, even more in the wall behind, and two in the right side of his body. These shattered several bones in his shoulder and ribs, as well as puncturing his right lung. Fares was left lying in a pool of blood and only narrowly survived after being rushed to hospital by his brother. ""I still have trouble breathing,"" he later said, ""but my doctor says my lungs should be no problem because of the size of my nose."" It's not that surprising that IS doesn't like Fares. After all, he did once design a poster depicting Syria as an alien with a monster called ISIS exploding out of its chest. The group has since been pushed out of Idlib province. President Assad, though, is his favourite target. He once got his friends to drape themselves in shrouds and then filmed them staggering out of graves calling for Assad to step down, as if even the dead want him gone. He posted it online and it was played on a number of Arabic television stations. Humour, it seems, is never far from the surface with Raed Fares. Take his response to another of JFS's demands, to get rid of women news readers - who are also haram, they say. Has he, I ask him, agreed to swap them for men? ""No, I have another solution for that issue. We simply put their voices through a computer software program which makes them sound like men."" Though having heard the resulting broadcasts, I would say the women now sound closer to Daleks or robots than men. The feisty 6ft 2in station manager has also refused JFS's demands to allow their members into the radio station to monitor the behaviour of his staff. ""We said 'No,'"" he says. ""You have to monitor the transmissions, not what people are doing inside the radio station."" JFS are not the only extremist rebels in the area. There are about a dozen others, and even though some of the biggest factions have recently been forming new alliances, this still makes the area chaotic to govern. There is little more than two hours of mains electricity a day, water supplies are limited and food increasingly expensive in a region flooded with 700,000 refugees from elsewhere in the country. The fact that Fares's dispute with JFS has continued for so long is evidence that the group is a little more tolerant than IS. But as a family man with three children is he not worried that sooner or later one of these jihadist groups will kill him? ""They've tried that five times already,"" he says. ""If it happens, it happens. But they haven't succeeded yet. I try to survive, but if I can't, it's OK."" He tells me that the lowest point in his life came when one of his closest friends was killed and another severely injured by a bomb last summer. Fares admits that he nearly took his own life in the days that followed. But now, he says, he is more determined than ever to carry on. ""We started the revolution together and were all aware that we faced the same risks,"" he says. ""That means that my life isn't more expensive than my friends who lost their lives."" Mike Thomson's report about radio Fresh FM ran on the Today programme on 9 February. Join the conversation - find us on Facebook, Instagram, Snapchat and Twitter.", -760,2017/2/9,http://www.bbc.co.uk/news/world-us-canada-38909322,Trump presidency: Opponents boosted by 'rage donation',Donald Trump's adversarial style during the election divided American voters like few campaigns in recent years.,"Donald Trump's adversarial style during the election divided American voters like few campaigns in recent years. The president himself has referred to ""my many enemies"" - but it seems they're getting a substantial boost from the new president. Organisations that investigate, oppose, or lampoon the commander-in-chief are seeing a surge in support, in what's been dubbed ""rage donation"". From civil rights to media types, the effect is widespread. Planned Parenthood advocates for women's reproductive rights, including abortion - to which Mr Trump and Vice-President Mike Pence are both opposed. Cecile Richards, who leads the family-planning group, told the BBC more than 400,000 people had donated since the election - ""an unprecedented outpouring of support"" - some of which has been given jokily in Mike Pence's name. But, she said, no level of donations would be able to match the federal funding the group receives - something which may now be under threat. ""We will never back down, and we will never stop providing the care our patients need. These doors stay open, no matter what,"" she said. The Centre for Reproductive Rights, meanwhile, is trying to raise $1m in Mr Trump's first 100 days ""We've had thousands of new donors in the last three months, many of whom have signed on to be monthly sustainers - donors who will be with us for the long haul,"" a spokeswoman said. One of American's biggest environmental protection groups, the National Resources Defence Council (NRDC), was singled out by popular comedian John Oliver late last year when he called on his viewers to donate following the election. Since then, ""we have seen an incredible response from the public,"" a spokeswoman said. The ""huge spike"" continued through November and December, she said, slowing slightly in early January - before picking right back up at the inauguration. ""It's definitely driven by concern over President Trump's anti-environmental rhetoric and actions,"" the NRDC said. The Sierra Club, another major environmental group, reported 11,000 new monthly donors in the days following the election - nine times its previous record. Saturday Night Live (and Alec Baldwin) It's not just charities and fundraising that are seeing a positive bump from Trump. This week, it emerged that the long-running satire show Saturday Night Live was celebrating its highest ratings in decades. Its numbers have grown by 22% overall - to 10 million viewers, the highest since 1995, according to Variety. Alec Baldwin's portrayal of Mr Trump, which became wildly popular during the campaign, is now a weekly staple. Strident Trump critic Stephen Colbert also beat his late-night rival, Jimmy Fallon, for the first time in years in recent ratings - though there's not yet enough evidence to link late-night show ratings to politics. You may also like ... Perhaps the biggest success story comes from the American Civil Liberties Union (ACLU). In a single weekend - as they fought a legal battle against the president's controversial immigration order - the group clocked up $24m ($19.1m) in donations, six times what it usually receives in an entire year. The huge amount prompted the rights group to turn to Silicon Valley for help managing the funds. Groups like the National Association for the Advancement of Colored People (NAACP), the Southern Poverty Law Center, and the National Immigration Law Center have also benefited from social media campaigns. Comedian Josh Gondelman, for example, felt uncomfortable with Mr Trump's close ties to the Patriots American football team. So he came up with the idea of donating $100 to the NAACP every time his team scored a touchdown during the Super Bowl. Coupled with a social-friendly hashtag (#AGoodGame), the idea took off, and brought in thousands of dollars in donations for civil rights groups across the US. President Trump likes to tweet about the (""dishonest, lying"") media. Most news outlets would say they don't oppose the president - but by nature, question and hold authority to account. But amid outcry over ""alternative facts"" and talk of non-existent massacres, many are reporting more readers and subscriptions. Non-profit public interest news organisation ProPublica said it had seen ""a dramatic increase in donations, beginning late on election night"". Donor numbers swelled from 3,400 in all of 2015 to more than 26,000 in 2016, the organisation's president Dick Tofel said. And recurring monthly donations jumped from $4,500 in October, just before the election, to $104,000 in January. ""It seems that the election has caused a large number of people to want to take various forms of civic action. We're very flattered that many of them think of ProPublica - and investigative journalism in the public interest generally - in that connection,"" Mr Tofel said. He stressed it was not clear that this was tied to ""particular steps"" taken by Mr Trump, but noted that donations picked up in January from inauguration day. But the same bump was seen in private newspapers too. The (""failing, wrong, so false"") New York Times, which the president said should fix its ""dwindling"" numbers, actually added 276,000 digital subscriptions in the last quarter - the biggest jump since it brought in a paywall. And the (""angry, boring"") Washington Post reported almost 100 million users on its website in both October and November last year, ""greatly exceeding previous traffic records"". Meanwhile, subscriptions to the Wall Street Journal jumped 300% on the day after the election, and it reported 70% growth in new digital subscriptions year on year. US voters chose Mr Trump - he won by a large margin in the electoral college system although he did not win the popular vote. Despite a slip in approval ratings, he appears to retain plenty of popular support. It's still too early to know if his policies have had a positive impact, but his supporters remain steadfast. Conservative news outlets such as Breitbart have surged in popularity, and Mr Trump's supporters have boycotted brands such as Kellogg's or Budweiser which are perceived to have taken a political stance against the president. Mr Trump's unique style of Twitter diplomacy, however, has had a direct negative impact on some companies. Shortly after taking office, the new president tweeted that Boeing's costs for Air Force One were ""out of control"", dropping their stock value. A similar tongue-lashing on fighter jets dropped Lockheed Martin's stock by more than 4%. Now, that effect already seems to be waning - as Fortune magazine pointed out, when the president struck out at retailer Nordstrom for dropping his daughter's fashion line, its stock actually rallied. It may be that Mr Trump's rhetoric is no longer having the effect it once did, and is becoming a normal part of politics. But with those opposed to the president's policies vowing they won't accept the new status quo, it remains to be seen if the ""rage"" effect will end up a steady revenue stream for the next four years.", -761,2017/2/9,http://www.bbc.co.uk/news/business-38905530,The Body Shop: What went wrong?,"""A confused shop with a mish-mash of products with no emphasis on the fact that this is supposed to be a shop specialising in cruelty-free, fair trade toiletries and make-up,"" is Suzy Bourke's damning verdict on The Body Shop.","""A confused shop with a mish-mash of products with no emphasis on the fact that this is supposed to be a shop specialising in cruelty-free, fair trade toiletries and make-up,"" is Suzy Bourke's damning verdict on The Body Shop. The 42-year-old stage manager used to be a regular shopper at the High Street chain, but now she tends to go to Boots instead. And she's not alone. Its owner, cosmetics giant L'Oreal, wants to offload the High Street chain, which has been suffering slowing sales. The Body Shop, founded by Dame Anita Roddick in 1976, was a pioneer using natural ingredients for its beauty products when it started out. It initially thrived, expanding rapidly, and by the 1980s was one of the most well-known brands on the High Street. I remember the chain fondly from my youth, when it seemed to be an exciting shop full of affordable, fun and exciting products. Coloured animal soaps, banana shampoo, white musk perfume and strawberry shower gel were the height of 1980s beauty chic as far as I was concerned. But by the early 2000s, rivals had caught up, with firms such as Boots, for example, developing similar natural beauty ranges. New challengers such as Lush also emerged, encroaching on The Body Shop's market share. The chain is still a sizeable High Street presence with more than 3,000 stores in 66 countries and employs 22,000 people, according to its website. The Body Shop's results for 2016 show total sales were 920.8m euros (?783.8m), down from 967.2m euros in 2015, which L'Oreal blamed on market slowdowns in Hong Kong and Saudi Arabia. The sales were a tiny proportion of L'Oreal's overall 25.8bn euros of sales for the same period. And arguably the chain - which L'Oreal bought for ?652m ($1.14bn) in 2006 - remains a lower-end and insignificant part of its huge portfolio of brands, which include skincare specialists Kiehl's, Lancome and Garnier, as well as fashion brands Ralph Lauren and Giorgio Armani. Veteran retail analyst Richard Hyman argues that L'Oreal overpaid for the chain and has failed to add any value to it. ""Frankly it's a bit of mystery them buying it in the first place. ""What they bought is a retailer and what they're good at is brands,"" he says. He thinks The Body Shop's struggles are down to the same issues facing the retail sector as a whole: ""Retailing in shops is becoming an increasingly challenging business. You've got to have a very compelling retail proposition as opposed to a brand or product proposition. ""Everyone that shops in The Body Shop spends most of their personal care budget somewhere else. They're constantly chasing their tail, having to work hard to attract people into a store,"" he says. When the 2006 deal was struck, founder Dame Anita - who died just a year later - was forced to reject claims that The Body Shop, known for its ethically sourced goods, was joining with ""the enemy"". There were concerns that some of the ingredients L'Oreal then used in its products had been tested on animals, while The Body Shop was publicly opposed to animal testing. The French firm insisted the brand would complement its existing offering, giving it increased presence in the ""masstige"" sector - mass market combined with prestige. But Charlotte Pearce, an analyst at consultancy GlobalData Retail, believes the firm has ""slightly lost its way"" under L'Oreal's ownership. ""While The Body Shop's heritage is strong, it needs to work on its brand perception. It's not known as a brand which is innovative and new, and it's failed to keep up with market trends - contour sticks, kits and palettes were a strong trend in 2016, and these are nowhere to be seen in The Body Shop's range,"" she says. These days the firm is not seen as ""a trendy brand"", but mostly as a shop for gifting and low-value items, such as its body butters and body lotions, she says. ""With premium retailers such as Jo Malone and Liz Earle offering in-store treatments, there is more that The Body Shop could be doing to raise its profile and improve the customer experience,"" she adds. Nonetheless, Prof John Colley from Warwick Business School believes there will still be plenty of interest from private equity funds. He expects the firm to be sold with its current separate management team, who he says are likely to have their own ideas for how to improve it. ""When a major corporate has decided it doesn't want a business, it will sell it, probably, whatever the price. ""They [L'Oreal] are trying to get rid of it because it's underperforming. But anyone bidding will see a clear turnaround. Independent ownership would probably serve the firm well. A refreshed image would almost certainly work,"" he says. Mr Hyman, too, believes a new owner could improve The Body Shop, particularly by selling the chain's products outside its own shops. But he says trying to offload the large store estate with long committed leases will be a hindrance to any buyer. ""That's not to say it isn't a business with potential, but it could perform much more strongly,"" he says. Dame Anita Roddick, who founded the firm in 1976 at the age of 34, said her original motivation for the firm was simply to make a living for herself and her two daughters while her husband was away travelling. But as someone who had travelled widely, she set out to do things differently, relying on natural ingredients and her customers' interest in the environment. ""Why waste a container when you can refill it? And why buy more of something than you can use? We behaved as she [my mother] did in the Second World War, we reused everything, we refilled everything and we recycled all we could. ""The foundation of The Body Shop's environmental activism was born out of ideas like these,"" she wrote.", -762,2017/2/9,http://www.bbc.co.uk/news/entertainment-arts-38917456,Has Tom Hiddleston damaged his brand?,Tom Hiddleston has had a mixed time of late.,"Tom Hiddleston has had a mixed time of late. In September, he and former girlfriend Taylor Swift broke up after three months together amid accusations their relationship was a publicity stunt. Then, in January, he apologised for an ""inelegantly expressed"" winner's speech at the Golden Globes in which he referred to aid workers in South Sudan ""binge-watching"" The Night Manager. This time last year, Hiddleston was riding the crest of a wave. After starring in hugely successful BBC drama The Night Manager as well as the big-screen adaption of JG Ballard's High-Rise, he was a hot favourite to be the next James Bond. But have his off-screen actions since done damage to his brand? ""Some of the recent headlines have been unhelpful,"" admits Mark Borkowski, a strategic PR consultant. ""There are events that happen and they're not thought-through properly, and the nature of being caught up with Taylor Swift's gang and not thinking it through strategically has undone him. ""Sometimes people don't recognise the power of their brand, and often you can't conduct yourself in the way you think you can."" But Steven Gaydos, vice-president and executive editor of Variety, thinks Hiddleston is still a hot property, despite his recent PR mishaps. ""I don't think anything he's done to date has put any serious dent into his career,"" he told the BBC. ""He's a fantastic actor doing fantastic work. He has a fan-base and he's delivering the goods. ""These are just missteps - somebody doing something that causes chatter. In this case Tom Hiddleston made a speech and people thought it was silly, or he dated a woman and people thought it was a little bogus. ""He's not going to be hauled in front of the courts for any of this."" Nonetheless, it's fair to say ""Hiddle-Swift"" brought Tom a great deal of negative attention. Some fans thought the couple were being suspiciously open about their relationship, leading to accusations that all was not what it seemed. Hiddleston has now defended his relationship with Swift in an interview with GQ, saying: ""Of course it was real."" He also said the 'I �?T.S. [Taylor Swift]' tank top he was photographed wearing was ""a joke"", explaining he was lent it by a friend to protect a graze from the sun. The actor said the pictures of him wearing the shirt were taken ""without consent or permission"", and that fans and the media had ""no context"". ""I was just surprised that it got so much attention,"" he said. ""The tank top became an emblem of this thing."" So is this latest interview simply damage limitation? ""Absolutely,"" says Mark Borkowski. ""I don't think Tom Hiddleston knew at the time just how big a brand he was. Now he does know that and has to think carefully. ""This GQ interview is an example of putting the record straight and trying to get a narrative together to try and recover from some poorly judged moments."" Borkowski adds: ""There's a beautiful naivety about Tom Hiddleston that is projected through this interview where he's trying to talk directly to his fans. This is material you put there for them."" Hiddleston himself admits in the interview: ""A relationship in the limelight takes work. And it's not just the limelight. It's everything else. ""And I'm still trying to work out a way of having a personal life and protecting it, but also without hiding."" Gaydos has a lot of sympathy for the 36-year-old on the Taylor Swift front. ""Imagine you just met someone and you're having a relationship and the whole world is watching. It's like snakes all around you,"" he says. ""I'd hate to to live in a fish bowl and have every move analysed, with people saying you're a fraud, your relationship is a fraud, everything you're doing is insincere and fake."" Hiddleston has two films coming out later this year - Thor: Ragnarok and Kong: Skull Island. Gaydos says the film studios won't be particularly worried about Hiddleston's off-screen actions. ""They're worrying about the tracking. If the trailer goes out for Kong and the response isn't strong or the awareness of the movie isn't high, that's what they're really concerned about,"" he says. ""Tom has not ventured anywhere near the space where we've seen stars screw up their careers and really damage their star wattage."" Borkowski adds: ""Anything is recoverable in this day and age. ""Last week we were hearing about the death of the David Beckham brand, but we'd forgotten about it by Thursday. ""Things move so quickly now, so it is always about recovery."" Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -763,2017/2/9,http://www.bbc.co.uk/news/magazine-38913138,The Chinese people given enormous amounts of food - by their parents,,"A tale of parental love and a whole lot of food from BBC Trending. Video Journalist: Natalia Zuo You can follow BBC Trending on Twitter @BBCtrending, and find us on Facebook. All our stories are at bbc.com/trending.", -764,2017/2/8,http://www.bbc.co.uk/news/uk-38907451,Ketchup debate: To chill or not to chill...,"Our fridges are stuffed with food that could also be kept in the cupboard. In the past, people kept butter, eggs and sauces in the pantry without getting ill. So why do many of us insist on keeping it all chilled?","Our fridges are stuffed with food that could also be kept in the cupboard. In the past, people kept butter, eggs and sauces in the pantry without getting ill. So why do many of us insist on keeping it all chilled? A supermarket has begun stocking ketchup in the fridge section as well as on shelves in a bid to appease both camps. Asda's poll of some 2,600 people found opinion was split, with 54% saying ketchup belonged in the cupboard and 46% saying they stored it in the fridge. Some shoppers took to social media to say which part of the shop they would be heading towards. But Polly Russell, a food historian from BBC Two's Back In Time For Dinner, said modern-day food chilling could be ""bizarre"". Many brands we recognise today, such as Lea & Perrins Worcestershire Sauce, HP Sauce and Heinz Tomato Ketchup, were all sold before households had fridges, she explains. ""They were absolute life-savers for housekeepers - adding flavour to food that might be slightly bland or monotonous,"" Dr Russell said. Their acidity levels, coupled with salt and sugar content, means they were - and still are - microbiologically safe to keep at room temperature. ""Households had no fridge, only cool boxes, or ice deliveries if it was a wealthy family."" In the latest series of Further Back In Time For Dinner, the Robshaw family are sent to a 1900s house - finding a kitchen with a cool-cupboard and overstuffed parlour instead of a fridge or freezer. So when did this change? As late as 1961, 20% of British households had a fridge, Dr Russell's research found. Yet half of these households probably owned a television. It was only from 1968 that half of Britons owned a fridge. Nearly 70 years on, we are fridge-obsessed. Ms Russell said there was now an ""increased anxiety"" over food safety, meaning that we tend to chill foods when we do not need to. ""Shoppers don't trust the food they buy and hear mixed messages about what is and isn't safe,"" she said. But some people are attempting to resist our reliance on refrigeration. ""If we get more people into preserving food, we can reduce the need for a fridge,"" says Caroline Aitken, a food preservation teacher from Dartmoor. Mrs Aitken, 38, teaches ""permaculture"", a movement that began in the 1970s and promotes self-sufficiency, growing food naturally and minimising waste. ""We've gradually lost our larders and now we've got very hot centrally heated houses,"" she said, adding that there was a ""cultural fear"" of leaving food out of the fridge. She suggests pickling food from scratch using salt and water and keeping sugary preserves such as jam in the larder. ""Sauerkraut and kimchee are great to experiment with,"" she said. ""I generally add three tablespoons of salt for every two kilos of shredded vegetables."" Mrs Aitken says people can go ""over the top"" with keeping food in the fridge, even once it has been cooked. ""You can have cold-store outside,"" she said. ""If I've cooked a big stew I sit the pot in a room with a stone floor and it's perfectly fine to have the next day."" According to the government, the electricity costs of running a fridge bought in 2013 over a 12.5-year lifespan will total about ?270, although it may be difficult to do without one altogether. Even Mrs Aitken says she keeps some things, like her homemade yoghurt, in the fridge. ""I just don't go over the top: tomatoes, citrus fruits, eggs, they shouldn't be in there."" Sources: NHS Food Safety advice, Proceedings of National Academy of Sciences journal We would like to see what's inside your fridge, whether it's edible or not. Please send your pictures to yourpicsor tweet us.", -765,2017/2/9,http://www.bbc.co.uk/news/entertainment-arts-38908251,A song for Syria: Why soul star Jodie Abacus is singing about refugees,"Up-and-coming soul star Jodie Abacus has just released a powerful song about the refugee crisis. He performed it live for the first time on Jo Whiley's BBC Radio 2 show on Wednesday night - but ahead of the session, he sat down with BBC News to talk about the story behind the song (and Elton John's helicopter).","Up-and-coming soul star Jodie Abacus has just released a powerful song about the refugee crisis. He performed it live for the first time on Jo Whiley's BBC Radio 2 show on Wednesday night - but ahead of the session, he sat down with BBC News to talk about the story behind the song (and Elton John's helicopter). Pop is getting a long overdue dose of politics. Lady Gaga issued a subtle rebuke to Donald Trump at Sunday's Super Bowl, singing the protest anthem This Land Is Your Land and quoting from the pledge of allegiance. Pop trio Muna were more explicit. Appearing on Jimmy Kimmel's chat show this week, they added a new verse to their single I Know A Place. The final line? ""He's not my leader even if he's my president."" In the UK, Stormzy prompted an overhaul of the Brits after pointing out the ceremony's lack of diversity in his song One Take Freestyle. Called Keep Your Head Down, it tells the story of a family fleeing a war zone, only to be met with fear and suspicion in the country they had thought would provide safe harbour. ""I focused on Syria when I was writing,"" he says, ""but there's a load of places in the world that are going through the same thing."" Why did you decide to write about the refugee crisis? I was in LA for a session, and I saw something about refugees on the television in my hotel. That's what triggered it. I wanted to give a perspective of what it would be like to go from one country to another. I can only imagine it's a terrifying feeling. We need to be a little bit more empathetic. How did you write the lyrics? The beat of the song triggered the emotion in me. The first lyric was the chorus: ""We're moving on, but the road is long / Don't get your hopes up, you'd better keep your head down."" Don't get your hopes up is the father saying ""we're running out of chances"", and keep your head down was like, ""pray that we get out of this"". I'd assumed it was about having to keep a low profile in a new country. It's both. There's a lot of double meanings. It's also about keeping your head down to escape the bullets. The thing is, you do all this to save your life - then you're not accepted by the country where you thought you'd be safe. People hate you or they think you're going to steal their jobs or take their benefits. But there's a lot of people running away just to save their own souls. Your musical references are very eclectic. I hear Stevie Wonder, ELO, Steely Dan, even Hall & Oates in there. How did you get into music? I was born in south-east London in Lewisham Hospital. My dad used to be a DJ. He'd carry around these big speakers and play reggae, soul, funk. I was just surrounded by music. What was the first time you performed in public? I gave a foyer concert at college. What I'd done was reproduce the Jacksons' Show You the Way to Go on a little computer, and I'd written my own lyrics to it. No one really knew I could sing - I wasn't one of the stand-out guys in college - but I thought, ""OK, I'll give it a go"". And all of a sudden there were people watching from on top, people crowding round the sides. At the end they were all like, ""Oh my gosh, he can sing!"". It sounds like a scene from a movie. It was actually quite nuts. What inspired you to write your own music? There was a lot of trauma. My mum and dad divorced and I missed out on a lot of things because I had to go to court. Being creative took my mind off what was going on. So there was a custody battle? They were fighting over me and my younger brother and it got nasty. It was harsh. Not a lot of people, not even your parents, understand how the kids suffer, mentally. When you're that age you trust your parents and suddenly this black hole of chaos opens up. But that's what built my character, in terms of deciding I wanted to do music. But you studied acting at college, is that right? Yeah, I got my diploma in performing arts and I loved it. Why did you decide to pursue music instead? I literally decided on a notepad. I drew two big arrows in blue biro, one for music and one for acting. I wrote little notes about what I wanted to do... and I wanted to make great music. I didn't know any notes, I didn't know anything. I was just going with my feelings. You're in your mid-30s now, so it certainly hasn't been an overnight success. What happened? You leave college, you get a job, you get another job - but all that time you're taking the money you earn and you're investing it in the thing you want to do. There's always times where you think it's going to be your turn, but it just doesn't happen. How close did you come to giving up? You get tormented a lot. You get tormented to the point of thinking, ""why do I keep going?"" - but then you realign yourself. There's nothing worse than hearing an old person say, ""Oh, I wish I'd done this or that"". When I'm in my rocking chair eating apple crumble and custard, I want to say I had no regrets. Your big breakthrough was a song called I'll Be That Friend. How did that song arrive? Three years ago, I came down with pneumonia and almost died. I was bedridden for about three months and, in the middle of all that, I finished with my ex. She moved on to another dude, like, really quickly. I saw pictures of them kissing and, even though I'd broken up with her, it was still a shock. At the end of that year, I needed to be comforted. I needed someone to say, ""it's going to be alright'. It didn't matter who it was. I just needed someone. I'd never felt that way before, but I needed a hug. Those feelings all came out in the song. As I was writing it, I was crying and singing at the same time. And yet that song, like a lot of your music, is very positive. Was that something you felt pop was lacking? Yeah. I feel there's a fun element missing. Everyone's thinking about the formula of how to write a hit song. I don't. Music is such a spiritual thing, it has to move you. You've been getting a lot of support from Elton John on his Beats 1 show. What did you make of that? That's incredible. He's one of my heroes. He's given me a couple of proper big shout-outs. And you've covered Bennie and the Jets in concert. That was nuts. He was meant to show up - but he didn't because the cloud level was low and his helicopter couldn't land. Wow. First world problems. Haha. Right? So is there an album on the way? Yeah, it's called Take This and Grow Flowers - because I'm using every little traumatic memory as fertiliser, and then making it grow. All of these things, all of these problems I've had... every memory is like a seed. What's the best thing about success? I love travelling. I love the adventure. There's not a day where I'm not thankful. I'm happy that Radio 2 have supported me as much as they have done. Have you become a connoisseur of hotel rooms? I'm not that fussy. I get annoyed when there's no kettle. It's not just for tea - I use it to steam clothes, and it's useful for steaming your voice as well. But do you know what? I always get paranoid that someone's done a wee in it. I always wash it out, just in case. Jodie Abacus's single Keep Your Head Down is out now. His debut album follows later this year. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -766,2017/2/9,http://tass.com/world/930094,"US ��not seeking to interfere""?with Japan's priorities in ties with Russia ""?diplomat",Donald Trump and Shinzo Abe will hold talks at the White House on February 10,"WASHINGTON, February 9./TASS/. The new administration of US President Donald Trump is not going to interfere with Japan's priorities in ties with Russia, a high-ranking representative of the US administration said in a telephone briefing for journalists replying to a TASS query. ""We certainly understand that Japan as a neighbor of Russia puts high importance on its own bilateral relations with Russia. The United States respects that,"" the diplomat said. ""The United States respects that and isn't seeking to interfere with Prime Minister (Shinzo) Abe's priorities in his dealings with Russia,"" he said in reply to the question whether the new US government has any objections to attempts of Moscow and Tokyo to establish closer ties. ""But I'll leave it to Prime Minister Abe and his Government to talk in detail about that bilateral relationship,"" he said in a special briefing focusing on the upcoming visit of the Japanese prime minister to the United States. Donald Trump and Shinzo Abe will hold talks at the White House on Friday, including with the participation of the delegations.", -767,2017/2/9,http://tass.com/sport/930093,FIFA Secretary General satisfied with Russia's preparations for 2018 World Cup,The 2017 FIFA Confederations Cup will be held between June 17 and July 2 at four stadiums in Russia,"MOSCOW, February 9. /TASS/. FIFA Secretary General Fatma Samoura is currently on an official visit to Russia and, according to her, the organization has no complaints to make regarding the country's preparations for the 2017 FIFA Confederations Cup and the 2018 FIFA World Cup, Russian Deputy Prime Minister Vitaly Mutko said on Thursday. ""FIFA Secretary General Fatma Samoura has arrived in Moscow and she is still here,"" Mutko, who is also the president of the Russian Football Union (RFU), said in an interview with TASS. ""We have discussed with her issues regarding the preparations for the 2017 Confederations Cup and the 2018 World Cup and FIFA had no questions whatsoever."" ""Samoura is also paying a visit to discuss issues regarding the commercial rights, including the television broadcasting rights,"" Mutko said. ""We are ready to cooperate but the final say is with FIFA."" The 2017 FIFA Confederations Cup will be held between June 17 and July 2 at four stadiums in Russia and they are Otkritie-Arena in Moscow, St. Petersburg Arena, Fisht in Sochi and Kazan-Arena in Kazan.", -768,2017/2/9,http://tass.com/economy/930090,MegaFon mobile operator clinches deal on buying stake in Mail.ru Group,The total sum of the deal is $740 mln,"MOSCOW, February 9. /TASS/. Russian mobile operator MegaFon has closed a deal on acquiring 63.8% of voting shares in Mail.ru Group (15.2% of the authorized capital) from the structures of USM Holdings, the operator said in a statement. Alisher Usmanov's USM Holdings is the controlling shareholder of MegaFon. ""MegaFon announces that it has finalized the deal on acquiring 11.5 million Class A shares and 21.9 million common shares, representing approximately 15.2% of the share capital or 63.8% of votes in Mail.Ru Group Limited, from the companies affiliated to MegaFon's supervisory shareholder - USM Holdings,"" the statement said. The total sum of the deal is $740 mln. Of this amount MegaFon has already paid $640 mln. The operator will pay the remaining $100 mln in a year. In late 2016, Megafon shareholders approved the transaction on the purchase of Mail.ru Group shares from New Media and Technology Investment L.P., New Media Technologies Capital Partners Limited and Ardoe Finance Ltd, which are part of USM Group. The Federal Antimonopoly Service approved the deal on February 6. The main purpose of the transaction is synergy that will result in intensification of cooperation between the two companies. Later this month the launch of a special application VKmobile can be announced for users of VKontakte social network (part of Mail.ru Group). Also a special application can be launched for users of the Odnoklassniki (Classmates) social network, which is part of Mail.ru structure. Besides that MegaFon and Mail.ru plan to unites possibilities of targeting their consumers. MegaFon has no plans to increase its stake in the Internet company to 100%. At the same time preserve the managements of both companies will remain independent. Any possible agreements will be concluded on commercial, market conditions. At the same time MegaFon plans to fully consolidate Mail.ru Group in its financial reports.", -769,2017/2/9,http://tass.com/politics/930084,"Russia ready to restore cooperation on Afghanistan with US, NATO ""?diplomat",A diplomat says hasty pullout of the US forces from Afghanistan may entail unpredictable consequences,"MOSCOW, February 9./TASS/.Russia is ready to restore cooperation with the US and NATO on the settlement of common tasks in Afghanistan, Russian president's special envoy to Afghanistan, Zamir Kabulov, has told TASS. ""We, for our part, are ready to restore cooperation with the US and with NATO countries to settle our common tasks in Afghanistan,"" said Kabulov, the director of the Russian Foreign Ministry's Second Asian Department. He said Moscow had not yet held official contacts with the Donald Trump Administration regarding the Afghan problem. ""If you look at it in a general context, the current period is far from the best timing for a withdrawal of foreign troops, including the U.S. units, from Afghanistan,"" said Kabulov, who is director of the Second Asian Department at the Russian Foreign Ministry. ""The situation in the sphere of security there is degenerating and a whole set of factors makes the Afghan national security forces incapable of putting up resistance to the armed opposition on their own."" ""Given this situation, a hasty pullout of foreign military may bring about unpredictable aftermaths and destroy whatever encouraging achievements of the past few years,"" Kabulov said. ""The situation on the Afghanistan-Turkmenistan border causes certain concern here,"" the diplomat said. ""We have information about some 1,000 gunmen of ISIS (the former name of Islamic State, a terrorist organization outlawed in Russia) stationed in Afghanistan's north-western provinces,"" said Kabulov, the director of the Russian Foreign Ministry's Second Asian Department. ""We have been marking activity of IS (a terrorist group outlawed in Russia) in Afghanistan from the summer of 2014,"" Kabulov said. ""Within this period of time, the number of active supporters of the group has been constantly changing. At the moment, the numerical strength of IS gunmen is estimated at about 3,500 people, and given the number of sympathizers and ""dormant""?cells of the group, this figure may rise sharply,"" he added. ""In view of certain attractiveness of IS slogans for part of Afghan youth and a fair financing, a growth in the number of IS militants in the country and a sizable growth of their terrorist activity cannot be ruled out in the foreseeable future,"" he said. ""The total strength of extremists in northern Afghanistan stands at around 15,000 men,"" said Kabulov, who is director of the Second Asian Department at the Russian Foreign Ministry. ""There are the apprehensions the militants may try to expand into the territories of neighboring countries of Central Asia (Tajikistan, Turkmenistan, Uzbekistan, and Kyrgyzstan TASS)."" ""As of today, an alarming situation is unfolding on the Tajik direction due to concentration of IS militants in the province of Badakhshan,"" he said. ""We believe that in case the situation on the Tajik-Afghan border sharply deteriorates, and extremists make an attempt to break through from the Afghan territory, capabilities of the CSTO may be used under a due appeal of the Tajik side,"" he said.-", -770,2017/2/9,http://tass.com/economy/930080,"Iran, Eurasian Economic Union discuss details of free trade zone agreement","The dismantling of anti-Iranian sanctions has opened up new prospects for the development of cooperation, a Russian diplomat says","MOSCOW, February 9. /TASS/. Creation of a free trade zone between Iran and the Eurasian Economic Union (EAEU) could give a serious impetus to the development of bilateral economic ties, Zamir Kabulov, head of the second Asian department of Russia's Foreign Ministry said in an interview with TASS. ""There are talks on the parameters of such an agreement. On the level of the Eurasian Economic Commission it has been decided already to lower import duties on a number of agricultural goods from Iran, including pistachio nuts, dates and raisins,"" he said. The ministry's official stresses that Iranian fruit and vegetables have already been sold on the Russian market for a long time. Now the Agriculture Ministry is working with Iranian partners on expansion of range of mutual deliveries of agricultural products. ""Recently a number of Iranian companies interested in selling their meat and dairy products, eggs, poultry and seafood in Russia, have been approved,"" Kabulov said. According to him, Russian companies also receive similar licenses from Iranian authorities. ""The dismantling of anti-Iranian sanctions has opened up new prospects for the development of cooperation between our two countries, especially in trade, economic and financial areas. One of our common important tasks is to create conditions for accelerated growth of bilateral trade and investment ties. Over the past year together we have made significant progress in such important areas as simplification of visa regime, promotion and protection of investments, promotion and expansion of the range of goods deliveries, including reduction of import tariffs and establishment of customs ""green corridor"" that allows us to simplify the procedures for mutual deliveries of goods. "" As a result, in 2016, the mutual trade turnover increased by 80% and amounted to more than $2 billion, Kabulov said. Eurasian Economic Union includes Russia, Belarus, Kazakhstan, Armenia and Kyrgyzstan.", -771,2017/2/9,http://tass.com/society/930076,'Nobody warned me' says Russian whose tragedy is basis for new Schwarzenegger movie,Russian architect Vitaly Kaloyev who lost his wife and two children in the 2002 mid-air collision over south Germany said the makers of the new Hollywood movie based on the tragedy did not contact him,"VLADIKAVKAZ, February 9. /TASS/. North Ossetian architect Vitaly Kaloyev who lost his wife and two children in the 2002 mid-air collision over south Germany said the makers of the new Hollywood movie ""aftermath""?based on the tragedy, which stars Arnold Schwarzenegger, did not contact him. ""I have no idea what the movie is about,"" Kaloyev told TASS. ""The filmmakers did not contact me and did not consult with me, so it's too early to make any comments on this motion picture. I will think about it, when I see the film."" ""aftermath""?is a drama thriller directed by Elliott Lester that will be released on April 7. North Ossetian senator Taimuraz Mamsurov said a film based on this tragedy should had been made much earlier and complained that no thorough investigation into the air crash had been conducted. ""There was no investigation. They (European officials) just said that they had paid compensation to each of the victims' families, they told us to go back to Russia, bury the remains and go our separate ways,"" Mamsurov stated. On July 1, 2002, Bashkirian Airlines Flight 2937, a Tu-154 passenger jet and a Boeing 757 cargo jet collided in mid-air over the southern German town of Uberlingen. All 69 passengers and crew aboard the Tu-154 and the two crew members aboard the Boeing 757 were killed. Two years later, Peter Nielsen, the air traffic controller on duty at the time of the collision, was murdered by Kaloyev. In October 2005, Kaloyev was convicted of the murder by a Swiss court and sentenced to eight years in jail. In November 2007, he was released from prison for exemplary behavior and returned to his home city of Vladikavkaz in North Ossetia. He was later appointed North Ossetia's deputy minister of architecture and construction and retired a year ago.", -772,2017/2/9,http://tass.com/politics/930071,"Russian envoy, Syrian opposition discuss upcoming Geneva talks",,"MOSCOW, February 9./TASS/. Russian president's special envoy for the Middle East, Mikhail Bogdanov, and a delegation of the National Coalition of the Syrian Revolutionary and Opposition Forces have discussed preparations for intra-Syrian talks in Geneva, the Russian Foreign Ministry said. They ""thoroughly exchanged opinions on the developing situation in Syria and around it with an accent on a set of issues of political settlement of the Syrian crisis, including inclusive intra-Syrian talks under UN auspices, scheduled in Geneva for February 20,"" the Russian ministry said. Deputy Foreign Minister Bogdanov expressed a strong bid that all the main groups of the Syrian opposition show maximally constructive approach basing on Resolution 2254 of the UN Security Council, and be guided by supreme interests of Syria and its people, the Foreign Ministry said. The Syrian delegation included deputy chairman of the Coalition Abdelahad Steifo, and members of its political bureau - Hadi al-Bahra and Badr Jamus. A new round of talks on Syria in Geneva is scheduled for February 20.", -773,2017/2/9,http://tass.com/world/930067,"Netanyahu to raise issue of Iranian threat at talks with Trump ""?minister","Israel views the multilateral agreement on the Iranian nuclear program, in connection with which the international community lifted sanctions from Iran, as an extremely dangerous document","TEL AVIV, February 9. /TASS/. Israeli Prime Minister Benjamin Netanyahu plans raising the issues of the Iranian threat when he has the first meeting with the new U.S. President, Donald Trump, on February 15 in Washington, the Israeli Minister of Jerusalem Affairs and Heritage, Ze'ev Elkin said in an interview with TASS on Thursday. ""I think the discussions (in Washington) will embrace the whole spectrum of both bilateral and regional issues,"" Elkin said. ""The Prime Minister will take up the problem of the Iranian threat."" He recalleed that Israel viewed the multilateral agreement on the Iranian nuclear program, in connection with which the international community lifted sanctions from Iran, as an extremely dangerous document. ""You know our stance on the agreement with Iran,"" Elkin said. ""Israel sizes it up as a really dangerous document. It leaves loopholes that could help Iran get access to nuclear weapons within just a few months."" ""In all likelihood, Trump and Netanyahu will discuss the missile tests conducted by Iran and the support to terror Iran gives across the region,"" he said. ""Concerns over the stepping-up of Iranian activities are not typical of Israel only. They exist in many Arab countries in the region, and the U.S. President and members of his Administration have voiced them, too."" Elkin pointed out the importance of the first-ever talks between Netanyahu and Trump after the latter man was elected U.S. President. ""This will really be an important meeting, the first official meeting of both leaders after Trump's election for the Presidential Office,"" he said.", -774,2017/2/9,http://tass.com/society/930068,Russian adventurer Konyukhov's balloon lands after 55-hour nonstop flight,"Renowned Russian travelerv landed in the Volga River Saratov region after flying a hot-air balloon nonstop for 55 hours, breaking the air balloon flight duration record","SARATOV, February 9./TASS/. Renowned Russian traveler Fyodor Konyukhov and merited aeronautics expert Ivan Menyailo landed on Thursday in the Volga River Saratov region's Krasnokutsky district after flying a hot-air balloon nonstop for 55 hours, breaking the air balloon flight duration record, his son Oskar told TASS. ""The record was beaten, and a new record of 55 hours in the air has been set. Fyodor and Ivan feel excellent, the flight and the landing went off well,"" he said. Local residents and region's authorities welcomed the travelers on the ground. Earlier reports said that Konyukhov and Menyailo had beaten an absolute world record in air balloon flight duration, spending almost 51 hours in mid-air. The previous record of 50 hours and 38 minutes remained unbeaten for almost 15 years. It was set by Michio Kanda of Japan on February 1, 1997, who took off from Canada and landed in the US. Last year, Konyukov became the first ever balloonist to make a round-the-globe flight on the first try. Konyukhov's Morton balloon took off from Northam, Western Australia, at 07:30 local time (02:30 Moscow time) on July 12. The air vessel crossed non-stop Australia, the Pacific Ocean, South America, the Atlantic Ocean, flew past Cape of Good Hope and the Indian Ocean to finish in Australia on July 23. Konyukhov, an artist by profession who was ordained as a Russian Orthodox priest in December 2010 has a great many spectacular exploits to his credit. The list includes two ascents to Mount Everest and ascents to the highest peaks of all other continents, a voyage across the Atlantic in a single-row boat for 46 days, the crossing of an 800-km distance in Greenland within 16 days, several solo circumnavigation tours, a single-handed non-stop tour around Antarctica, and a solo rowing voyage across the Pacific in 159 days.", -775,2017/2/9,http://tass.com/sport/930065,French Olympic champ Fourcade snubs Russia's bronze medal award ceremony,French Olympic champion in biathlon Martin Fourcade left the podium during the medal awards ceremony of the 2017 IBU World Championship as Russian athletes were receiving the bronze medals,"HOCHFILZEN, February 9. /TASS/. French two-time Olympic champion in biathlon Martin Fourcade left the podium during the medal awards ceremony of the 2017 IBU World Championship in Austria's Hochfilzen as Russian athletes were receiving the bronze medals. The Russian national biathlon team raced to bronze on Thursday in mixed-relay at the 2017 IBU World Championships in Austria's Hochfilzen. Russia's Olga Podchufarova, Taiana Akimova, Alexander Loginov and Anton Shipulin finished the race in the third place behind winners Germany and silver medalists from France. During the award ceremony, Fourcade also refused to shake hands with Russia's Shipulin and Loginov and returned to the pedestal after reportedly asked about it by IBU President Anders Besseberg. ""I have greeted Fourcade, approached him and expressed my respect, but he had no intentions of shaking hands with me,"" Loginov said in an interview with TASS. Loginov's teammate Shipulin said during a news conference after the race that the French biathlon racer behaved indecently in regard to the Russian team on the whole. ""We are all one team and one family, therefore if we see an improper behavior in regard to one of us, to Loginov in this case, I believe it was indecent behavior in regard to the whole Russian team,"" Shipulin said. ""I personally believe, that athletes should be competing on the track instead of doing politics,"" Shipulin said. ""This also goes well in regard to Martin Fourcade."" Following the press conference, Shipulin said in an interview with TASS that he respected Fourcade as an athlete but the French biathlete had been recently acting improperly as a human being. ""The most important for Fourcade is to realize that he is not the only one having the right to make public announcements,"" Shipulin told TASS. ""I hope that we will have a personal discussion with him in the future and will settle all issues."" ""I do respect him as an athlete, but it seems to me that as a human being he is getting worse and worse in his behavior,"" Shipulin added. During the relay race on Thursday in Austria's Hochfilzen, Fourcade was allegedly seen to step on one of the skis of Loginov as the baton of the Russian team was passed on to him by Shipulin. Commenting on the developments Russian Deputy Prime Minister Vitaly Mutko said in an interview with TASS that the national team's athletes should be above such trifles ignoring them. ""What we need now is to prove our power on the track and not spare attention to things like that,"" Mutko said in an interview with TASS. ""The Russian team needs to win and we can do this."" ""The Russian biathletes had a good race and we all saw the powerful potential of our boys,"" Mutko said. ""Of course I am not mentioning the behavior of some stars, who behaved in such manner on the finish line."" ""We all saw that Anton (Shipulin) and Alexander (Loginov) are well prepared and are ready for the fight,"" he said. ""The most important races are ahead of us."" Last month, French famous biathlon racer Fourcade stirred a public outcry on the internet after leaving his comment to a web-post about Loginov, saying that the Russian athlete's only up-to-date achievement in biathlon was a two-year suspension over anti-doping rules violation.", -776,2017/2/9,http://tass.com/sport/930061,Russia takes bronze in mixed relay at 2017 IBU World Championships in Hochfilzen,Russian athletes finished the race in the third place behind winners Germany and silver medalists from France,"MOSCOW, February 9. /TASS/. The Russian national biathlon team raced to bronze on Thursday in mixed-relay at the 2017 IBU World Championships in Austria's Hochfilzen. Russia's Olga Podchufarova, Taiana Akimova, Alexander Loginov and Anton Shipulin finished the race in the third place behind winners Germany and silver medalists from France. The last time Russia stepped on the podium in the mixed relay of the IBU World Championship was in 2008, when it also clinched the bronze of the international tournament in this discipline. French team's two-time Olympic champion Martin Fourcade left the podium during the medal awards ceremony of the Russian biathletes.", -777,2017/2/9,http://tass.com/politics/930049,"Russia finds worrisome Israel's law legalizing settlements, outposts",,"MOSCOW, February 9. /TASS/. Moscow finds worrisome Israel's just-adopted act legalizing settlements and outposts created with government support on private Palestinian territories in the West Bank of River Jordan, the Russian Foreign Ministry said in a commentary. ""Moscow finds Israel's decision very worrisome,"" the Foreign Ministry said. ""It may certainly have the most negative effects on the chances of achieving a lasting and firm Palestinian-Israeli settlement. As a matter of fact, the outlook for implementing a two-state solution of the Palestinian problem is in question."" ", -778,2017/2/9,http://tass.com/world/930050,Three Turkish servicemen killed in Russian warplane's unintentional airstrike in Aleppo,Russian President Vladimir Putin has offered condolences to his Turkish counterpart Recep Tayyip Erdogan over an unintentional air strike against Turkish military in Syria,"MOSCOW, February 9. /TASS/. Chief of Russia's General Staff Valery Gerasimov has conveyed his condolences to his Turkish counterpart General Hulusi Akar over the death of three Turkish servicemen in the Syrian province of Aleppo in an unintentional airstrike by a Russian warplane. ""Chief of the General Staff of the Russian Armed Forces Army General Valery Gerasimov has expressed his condolences to General Hulusi Akar over the death of three Turkish servicemen in the area of the town of al-Bab as a result of a Russian warplane's unintentional airstrike,"" the Defense Ministry of Russia reported. ""The Russian bombers were performing a combat mission to destroy the positions of ISIL militants in the area of the town of al-Bab,"" the ministry said. In a telephone conversation, the chiefs of general staff of Russia and Turkey have agreed to closer coordinate joint actions in Syria, the Russian Defense Ministry reported. The top military ""agreed on closer coordination of joint efforts as well as on exchange of information on the situation on the ground,"" the ministry said. Russian President Vladimir Putin has offered condolences to his Turkish counterpart Recep Tayyip Erdogan over an unintentional air strike against Turkish military in Syria, Russian presidential spokesman Dmitry Peskov has said. The theme of Syrian settlement was touched upon at a meeting held by the Russian president. ""Putin briefed the participants on his recent telephone conversation with Turkey's President Erdogan. In part, he said he had offered condolences to his Turkish counterpart over the death of Turkish military personnel due to lack of coordination when Russia's aerospace group attacked terrorists in a joint operation for retaking Al-Bab,"" Peskov said.", -779,2017/2/9,http://tass.com/economy/930045,Russian science fiction blockbuster 'Attraction' sold to 74 countries,"The film has already been successfully released in Latvia, Estonia and Vietnam","MOSCOW, February 9. /TASS/. The Russian science fiction blockbuster ""attraction""?by Fyodor Bondarchuk has already been sold for distribution to 74 countries, the press service of Walt Disney Studios Motion Pictures International told TASS on Thursday. ""The film has already been successfully released in Latvia, Estonia and Vietnam,"" the press service said, adding that Bondarchuk's Art Pictures Studio had signed distribution contracts with Conquest Filmes (Latin America) and R.D. FILMS (India) companies. The blockbuster will be shown in 200 movie theaters in Mexico and Brazil, the press service said. ""Director Fyodor Bondarchuk had made a film showing essential social problems and appealing to contemporary audience,"" the press service quoted Conquest Filmes head Rubens Aranha as saying. ""We are looking forward to the film's release in Latin America and are discussing further cooperation with Art Pictures Studio."" ""The film will be soon released in China (10,000 movie theaters),"" the press service said, adding that negotiations on ""attraction""?distribution in English-speaking countries are underway. 'Attraction' tells the story of an UFO shot down over a densely populated Moscow residential neighborhood. The crash-landing leads to the loss of many lives. The Russian government immediately introduced martial law, as the locals grow angry at the unwelcome guest. The film was released in Russian on January 26.", -780,2017/2/9,http://tass.com/world/930046,UK scrambles Typhoon fighter jets to escort Russian bombers,The Ministry of Defense reports the Russian bombers were not in the UK air space,"LONDON, February 9. /TASS/. UK dipatched its Typhoon fighter jets on Thursday to escort Russian bombers Tupolev-160, the Ministry of Defense of the UK told TASS. ""We can confirm that quick reaction alert Typhoon aircraft from RAF Lossiemouth and RAF Coningsby scrambled to monitor two Blackjack (NATO's reporting name for Tupolev-160 White Swan) bombers while they were in the UK area of interest,"" a spokesman for the ministry said. ""At no point did the Russian aircraft enter UK territorial airspace,"" he indicated.", -781,2017/2/9,http://tass.com/politics/930028,Russian diplomat slams Amnesty International's report on Syria as provocation,Amnesty International issued a report saying that the Syrian government was carrying out a campaign of extrajudicial executions by mass hangings at Saydnaya Prison,"MOSCOW, February 9. /TASS/. Moscow believes Amnesty International's report on extrajudicial executions allegedly carried out by the Syrian government at Saydnaya Prison to be a provocation and misinformation, Russian Foreign Ministry Spokeswoman Maria Zakharova said on Thursday. ""We have seen this report. It's a pity it comes at a moment crucial for the process of solving the Syrian crisis,"" the diplomat said. ""In fact, this is just another deliberate provocation aimed at adding fuel to the fading fire of the Syrian conflict and raising tensions again and make the Syrian people hate each other more,"" Zakharova stressed. ""Those who compiled this fake report are not even bothered by the fact that the huge number of victims they are citing is a result of some calculations based on testimonies made by unnamed individuals."" ""In our opinion, this respected organization could and should adopt a more responsible manner while assessing the fantasies of the organization's Lebanese branch,"" the Russian diplomat went on to say. Amnesty International issued a report saying that the Syrian government was carrying out a campaign of extrajudicial executions by mass hangings at Saydnaya Prison. According to the report, ""between 2011 and 2015, every week and often twice a week, groups of up to 50 people were taken out of their prison cells and hanged to death. In five years, as many as 13,000 people, most of them civilians believed to be opposed to the government, were hanged in secret at Saydnaya."" Amnesty International also said that the Syrian government was ""deliberately inflicting inhuman conditions on detainees at Saydnaya Prison through repeated torture and the systematic deprivation of food, water, medicine and medical care."".", -782,2017/2/9,http://tass.com/defense/930040,"Putin, Erdogan agree to boost military coordination during operations against IS in Syria",The leaders confirmed in their phone talk the importance of assisting the promotion of the Astana and the Geneva processes on the Syrian settlement,"MOSCOW, February 9. /TASS/. Russian President Vladimir Putin and his Turkish counterpart Recep Tayyip Erdogan have held a telephone conversation agreeing to boost military coordination during operations against the Islamic state terror group (IS, outlawed in Russia) in Syria, the Kremlin press service said in a statement. ""The presidents exchanged views on the key aspects of the Syrian crisis focusing on cooperation in the fight against international terrorism,"" the statement reads. ""They agreed to boost military coordination during operations against members of the Islamic State and other extremist organizations active in Syria."" Putin also conveyed his condolences over a tragic accident causing the death of several Turkish military servicemen near the Syrian city of al-Bab. According to the Kremlin press service, Putin and Erdogan expressed their readiness to further contribute to settling the Syrian crisis. ""The sides discussed the implementation of the results of the international meeting on Syria held in Astana with the Russian, Turkish and Iranian mediation. They confirmed their readiness to actively assist in further promoting the Astana and the Geneva processes on the Syrian settlement,"" the Kremlin press office reported. The presidents of Russia and Turkey have also discussed preparations for a session of the High-Level Russian-Turkish Cooperation Council, due in Russia in March. ""Topical issues of the development of Russian-Turkish cooperation in trade, economic and other sectors have been discussed, including in view of preparations for a session in Russia of the High-Level Cooperation Council of the two countries, scheduled for March,"" the Kremlin press service said.", -783,2017/2/9,http://tass.com/sport/930033,CAS to hold expedited hearings into appeals of Russia's four provisionally banned skiers,"On December 23, the International Ski Federation slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules","MOSCOW, February 9. /TASS/. The Court of Arbitration for Sport set to hold expedited hearings into cases of four Russian cross-country skiers, who appealed against their recently imposed provisional suspensions, Elena Vyalbe, the president of the Russian Cross Country Ski Federation, told TASS on Thursday. ""The CAS will hold expedited hearings of the appeals,"" Vyalbe said in an interview with TASS adding she hoped that chances for the banned skiers""?participation in the upcoming global tournaments still remained. On December 23, the International Ski Federation (FIS) slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules at the 2014 Winter Olympic Games in Sochi. The athletes subjected to the provisional suspensions are four male skiers, namely Alexander Legkov, Maxim Vylegzhanin, Yevgeny Belov and Alexey Petukhov and two female skiers - Julia Ivanova and Evgenia Shapovalova. The decision was made in the wake of the infamous McLaren Report. Russian cross country skier Maxim Vylegzhanin told TASS on Tuesday that he and his teammates Alexey Petukhov, Julia Ivanova and Evgenia Shapovalova were set to appeal their provisional suspension with the Court of Arbitration for Sport (CAS) in Lausanne. The FIS ruled on Tuesday to keep in force earlier imposed provisional suspensions in regard to the four athletes at the issue. On January 25, the FIS Anti-Doping Panel ruled to keep in force the provisional suspensions of Legkov and Belov. Both athletes later filed appeals with the Swiss-based Court of Arbitration for Sport disputing the FIS ruling. According to Part Two of the report, delivered in early December in London by the WADA Independent Commission and its chairman, Canadian sports law professor Richard McLaren, more than 1,000 Russian athletes competing in summer, winter and Paralympic sports could have been involved in an alleged manipulation scheme to conceal positive doping tests. Part Two of McLaren's report claimed in particular that doping samples of 12 Russian medalists of 2014 Winter Games in Sochi had been tampered with. In addition, doping tests of two more Russian athletes, who won four gold medals of the 2014 Sochi Olympics, had been falsified as well.", -784,2017/2/9,http://tass.com/economy/930035,"Foreign capital necessary in Arctic if of use, senator says","Attracting of foreign investments in development of the Russian Arctic is not always reasonable, according to the senator","MOSCOW, February 9. /TASS/. Attracting foreign investments in development of the Russian Arctic is reasonable only in case of clear benefits from getting new intellectual products, technologies or equipment, head of the parliament's upper house Council on Arctic and Antarctica Vyacheslav Shtyrov said on Thursday. ""Attracting of foreign investments in development of the Russian Arctic is reasonable only in cases, where we receive sufficient benefits from receiving new intellectual products, technologies and equipment, knowledge and experience in their development and use,"" the Federation Council's press service quoted the senator as saying. ""All other problems we should be solving at our own expense,"" For example, the senator continued, attracting of foreign investments may be unreasonable in development of the Northern Sea Route. ""For example, it is not reasonable to give to foreigners the national Arctic route - the Northern Sea Route, especially in navigation escort, monitoring of the bottom in our inner seas, or in production of precious and rare minerals,"" he said. However, cooperation with international counterparts in the Arctic, he added, continues. ""As an example - Gazprom recently has invited a Chinese biggest oil and gas company, working on the shelf, to participate in development of oil deposits on the Russian shelf,"" he said. ""Gazprom Neft is working in the Arctic and plans attracting Japanese companies as investors."" ""We know perfectly well, that oil prices are not high at the moment and the work in the Arctic is not top profitable, but Gazprom and Gazprom Neft are establishing now already cooperation with foreign counterparts for future, as the process may take years,"" the senator said.", -785,2017/2/9,http://tass.com/economy/930032,"Russia is doing best to speed up resumption of flights with Egypt, ambassador says",Talks on the resumption of air communication with Egypt has been on since the end of 2015,"MOSCOW, February 9. /TASS/. Russia is doing everything possible to speed up the resumption of flight connection with Egypt, Russia's Ambassador to Egypt Sergey Kirpichenko said in an interview with TASS. ""The resumption of flight connection between Russia and Egypt is perhaps the most discussed issue of all our bilateral affairs. It is obvious that both countries are quite interested in it,"" he said. Kirpichenko drew attention to the fact that the work on improving security of the Egyptian airports is constantly under way. ""The contacts are carried out on the level of Transport Minister of Russia and Minister of Civil Aviation of Egypt in order to solve this task. All the agencies concerned, as well as the Embassy of Russia, are doing everything possible to push closer the time of resumption of flights and return of our tourists (to Egypt -TASS),"" he said. Talks on the resumption of air communication with Egypt has been on since the end of 2015. The air traffic between the two countries was suspended in November 2015, after the terrorist attack on board an aircraft of Kogalymavia company, which was flying from Sharm El Sheikh to St. Petersburg.", -786,2017/2/9,http://tass.com/politics/930026,Russian diplomat says NATO invents phantom threats in Black Sea area,"""It is far easier to fight against imaginary threats,"" Russian Foreign Ministry spokeswoman said","MOSCOW, February 9. /TASS/. NATO's growing activity in the Black Sea area is evidence the North Atlantic Alliance invents non-existing threats thereby distracting itself from other major tasks, including the struggle against terrorism in Syria, Russian Foreign Ministry spokeswoman Maria Zakharova told a news briefing on Thursday. ""As far as NATO's activity (in the Black Sea region) is concerned, regrettably our Western counterparts prefer to focus on virtual, non-existing threats. The same applies to cybersecurity,"" Zakharova said. ""By saying virtual I mean not threats in the cyberspace, but those detached from the reality."" ""If the North Atlantic Alliance believes that the main threat to it comes from the Black Sea region, to my mind this is a tremendous delusion,"" Zakharova said. ""Everybody knows well enough where the most dramatic events, including the struggle against international terrorism are unfolding. Thinking of new, non-existent threats makes utterly no sense."" ""Why many of our counterparts act in this way is easy to understand,"" Zakharova speculated. ""It is far easier to fight against imaginary threats. Likewise it is far easier to present accounts to one's own population and to demand ever greater funding."" But it is a totally different matter that the results of this ""fight against windmills"" make themselves felt, too, because nobody resists the real threat, Zakharova said. ""In particular, I am referring to our Western counterparts,"" she went on to say. ""You can see for yourselves the way the struggle against international terrorism process in Syria. There were many statements by the team of the previous US president Barack Obama to the effect they were fighting against international terrorism. They gave up and left, to cut a long story short. They dropped it halfway, they spoiled a lot and they caused great harm to the process of the political settlement and to the situation in the world. That's what can be said about the real threats and what is being done to fight against them.""", -787,2017/2/9,http://tass.com/politics/930021,"Russia, US working on Lavrov-Tillerson meeting in Bonn","Earlier, a Russian Foreign Ministry source said Lavrov and Tillerson may meet during upcoming international forums","MOSCOW, February 9./TASS/. /Russia and the US are working on the possibility of a meeting of Russian Foreign Minister Sergey Lavrov and US Secretary of State Rex Tillerson in Bonn, Russian Foreign Ministry spokeswoman Maria Zakharova has said. ""Yes, we are working on this possibility,"" the diplomat said in reply to a query. On February 16-17, the Russian foreign minister will take part in a G20 foreign ministerial meeting in Bonn. Earlier, a Russian Foreign Ministry source said Lavrov and Tillerson may meet during upcoming international forums. ", -788,2017/2/9,http://tass.com/politics/930008,"Russian ambassador says Moscow, Cairo exchange information on settling Syrian crisis",,"MOSCOW, February 9. /TASS/. Moscow and Cairo have been exchanging information about settling the Syrian crisis, Russian Ambassador to Egypt Sergei Kirpichenko said in an interview with TASS. ""Egypt has been actively participating in the efforts aimed at finding a political solution to the Syrian crisis, it has particularly been tackling this issue's military aspects. Moscow, in turn, welcomes Egypt's activities, exchanging information with Cairo,"" the Russian diplomat said. According to him, information exchange began before the Astana meeting on settling the Syrian crisis and continues ahead of the Geneva meeting. ""Cairo's activities have been multifaceted, involving not only contacts with the so-called ""�Cairo platform""?of the Syrian opposition but also cooperation with other Arab countries aimed at approving the ways to ensure the ceasefire in Syria and facilitate the search for a political solution,"" the Russian diplomat stressed.", -789,2017/2/9,http://tass.com/economy/930010,Russia and Egypt can sign contracts on nuclear power plant in 2017,"On November 19, 2015 Russia and Egypt signed an inter-governmental agreement on constructing the first nuclear power plant in El Dabaa","MOSCOW, February 9. /TASS/. All grounds exist to believe that Russia and Egypt will sign main contracts for construction of Dabaa Nuclear Power Plant (NPP) in 2017, Russian Ambassador to Cairo Sergey Kirpichenko told TASS in an interview on Thursday. Negotiations on construction of the nuclear power plant have not been completed yet, the ambassador said. ""However, a major step forward was taken in this area in 2016. All grounds exist to expect that main contracts for NPP construction will be indeed signed this year,"" the diplomat said. On November 19, 2015 Russia and Egypt signed an inter-governmental agreement on constructing the first nuclear power plant in El Dabaa, consisting of four power units with 1,200 MW capacity each. Under the agreement Cairo is granted a $25 bln loan to build the plant.- The nuclear power plant is expected to be built near the city of El Alamein on Egypt's northern coast, 3.5 kilometers away from the Mediterranean Sea. The project is planned to be implemented in 12 years. Russian companies have an opportunity to take part in development of the Zohr natural gas field through a system of tenders, according to-Kirpichenko. ""Zohr is one of the largest natural gas fields in the Mediterranean offshore area of Egypt. Rosneft's participation in the consortium dealing with its development definitely serves as an evidence to the strategic nature of our economic partnership with Egypt,"" the diplomat said. ""Furthermore, Lukoil group is working in the country,"" he said. ""Other Russian companies have an opportunity to take part in development of other oil and gas fields, with tenders on them regularly staged in Egypt,"" the ambassador added. The board of directors of Rosneft approved the acquisition of a stake in the Shorouk block of the Zohr gas field in the Egyptian offshore area from Italy's Eni for $2.8 bln, the Russian company said in a statement last December. The Zohr field was discovered by Eni in August 2015 and is the largest natural gas field ever found in the Mediterranean, with a total potential of 850 billion cubic meters of gas in place. On February 2015, the authorization process for the development of field was completed, while the first gas is expected by the end of 2017.", -790,2017/2/9,http://tass.com/economy/930005,"Russia, Egypt in dialog on wide range of military equipment","Russian military-technical cooperation with Egypt is developing successfully, Russia's ambassador said","MOSCOW, February 9. /TASS/. Military-technical cooperation between Russia and Egypt is developing successfully, Russia's ambassador to Egypt, Sergey Kirpichenko told TASS in an interview. ""Our military-technical cooperation with Egypt is developing successfully,"" the diplomat said. ""Weapons and military equipment are being supplied under the concluded contracts. A dialog is in progress on a wide range of military equipment Egypt might need for defense."" Kirpichenko said that the Russian and Egyptian agencies preferred to keep quiet about the specific types of weapons on the agenda, ""because there is no need for that."" Russia is holding talks with Egypt on supplying armaments for Mistral amphibious assault ships but this is a complex issue that requires a thorough examination, Kirpichenko said. ""Egypt is holding talks with Russia and other states on equipping Mistrals with necessary military and technical systems,"" the envoy said. ""Another thing is that this is a complex matter that needs to be worked out carefully,"" he added. ""The Russian side will naturally be ready to fulfil its obligations, if the relevant contracts are concluded,"" the diplomat stressed. A shipyard in the French town of Saint-Nazaire launched the construction of two Mistral-class helicopter carriers on order from the Russian Navy in 2011. France was expected to hand over the first amphibious assault ship, the Vladivostok, to the Russian Navy in November 2014. However, French President Francois Hollande froze the deal over Russia's stance on events in Ukraine and sanctions imposed on Moscow. The contract was severed in the summer of 2015. As a result, Paris paid Moscow 949.7 million euros in compensation and subsequently sold the Mistrals to Egypt. Cairo earlier refused to arm the Mistrals with European or US helicopters. Russia later offered Egypt modern armament, electronic warfare and communications systems for the Mistral helicopter carriers.", -791,2017/2/9,http://tass.com/politics/929997,Diplomat calls Norway's claims on Russian cyberattacks groundless,"""A worldwide hunt for ""Traces""?of Russian hackers begins to look like a flash mob,"" Foreign Ministry spokeswoman Maria Zakharova said","MOSCOW, February 9. /TASS/. All charges Russia is responsible for cyberattacks against Norway are groundless and devoid of any proof, Russian Foreign Ministry spokeswoman Maria Zakharova told a news briefing on Thursday. A worldwide hunt for ""Traces""?of Russian hackers begins to look like a flash mob, with ever more participants joining in - the Netherlands, Norway""?But we don""t have so many hackers,"" said ironic Zakharova. ""Just recently the Norwegian Police Security Service said the Foreign Ministry, Armed Forces, the Radiation Protection Authority were reportedly attacked by Kremlin hackers,"" Zakharova said. ""Although the investigation has not been completed, the ostensible perpetrator has been named already. All this is proofless."" The same applies to the situation in the Netherlands, where the compound housing the prime minister's office allegedly came under cyberattack.", -792,2017/2/9,http://tass.com/politics/929992,Diplomat says work to fix terrorist-held Syrian regions almost completed,Maria Zakharova hopes that regional partners will provide maximum assistance to the Syrian parties in getting ready for the negotiations in Geneva,"MOSCOW, February 9./TASS/. Representatives from Russia, Turkey, Iran, Jordan and the UN practically ended in Astana on February 6 work to fix the Syrian areas occupied by terrorists, Russian Foreign Ministry spokeswoman Maria Zakharova said on Thursday. ""Representatives of Russia, Turkey and Iran as well as Jordan and the UN met in Astana on February 6,"" the diplomat said. ""One of the main results of the meeting was that they practically completed work to fix Syrian areas under the control of ISIS [former name of the terrorist group Islamic State outlawed in Russia], and Jabhat Fateh al-Sham [formerly known as Jabhat al-Nusra],"" she said. -- Zakharova also said two draft documents prepared by Russia and planned for discussion at upcoming sessions of the joint group have been handed over. ""This is the protocol to the agreement on a mechanism to record violations of the ceasefire, declared in Syria starting from December 30, 2016, and the mode of applying sanctions against those who violate it,"" as well as the provision on the area [settlement], joining the reconciliation process, she said. Moscow hopes that regional partners will provide maximum assistance to the parties to the Syrian conflict in preparing the meeting in Geneva due to be held on February 20, Maria Zakharova has announced.- ""We support the proposal of UN Secretary-General's Special Envoy for Syria, Staffan de Mistura, to resume the intra-Syrian talks in Geneva on February 20,"" she said. ""We hope our regional partners will provide maximum assistance to the Syrian parties in getting ready for the negotiations.""- Russian Deputy Foreign Minister, Gennady Gatilov, earlier told TASS that unjustified delays in talks ""are harmful for the overall settlement process."" In his view, the participants in the negotiations should stop ""beating around the bush"" and focus on discussing specific issues in keeping with the agenda determined by UN Security Council Resolution 2254.", -793,2017/2/9,http://tass.com/world/929987,"Sailors captured by pirates in Nigeria are alive, talks on release afoot",,"SEVASTOPOL, February 9. /TASS/. The sailors captured by Nigerian pirates earlier this week are alive and in good health and talks are in progress on their release, human rights ombudsman in Sevastopol Pavel Butsai has told TASS. ""It is true that pirates in Nigeria have taken hostage seven Russians, including three from Sevastopol. They were on board the BBC Caribbean belonging to Briese Crewing Crimea, of Germany. The crew are well. There has been a message from the ship's captain. Negotiations on their release are in progress. All sailors have been allowed to phone home. They are safe and sound,"" he said. The director of Briese Crewing Crimea, sea captain Maksim Nester, is hopeful that all sailors may be released soon as a result of negotiations. ""The kidnapped eight crew members of the ship have been taken to the jungle. The pirates have contacted us. The human rights ombudsman in Sevastopol, Pavel Butsai, has been very helpful. Currently task number one is to explain to the relatives that the company had been confronted with such situations before. There were such seizures in 2008 and 2010. After brief talks the crewmembers were invariably released then. None of the previous negotiations produced a bad outcome. One can say that the crew will return home soon,"" he explained. The general cargo ship The BBC Caribbean, owned by Germany's Briese Schiffahrt company, came under an attack by pirates on February 5. Eight crew - seven Russians and one Ukrainian - were taken hostage. Three crew members remaining on the ship managed to escape from the pirates and take the ship way. The senior mechanic, second mate and a cadet are leading the ship towards Las Palmas, Spain. The Russian embassy in the Nigerian capital Abuja keeps in touch with the country's authorities in order to identify the abducted sailors""?whereabouts.", -794,2017/2/9,http://tass.com/defense/929981,Russian Defense Ministry rejects reports of alleged use of Tochka-U missiles in Syria,Russia and Turkey have not registered any instance of delivering strikes against the positions of the Syrian opposition in Idlib,"MOSCOW, February 9. /TASS/. Russia and Turkey have not registered any instance of delivering strikes against the positions of the Syrian opposition in the Syrian province of Idlib with the use of Tochka-U tactical ballistic missiles, Russian Defense Ministry spokesman Major-General Igor Konashenkov said on Thursday. ""The Russian Federation is fully complying with the obligations it assumed on December 30, 2016 for ensuring the ceasefire on the territory of Syria, which does not apply to the international terrorist groupings ISIL and Jabhat al-Nusra [both outlawed in Russia],"" the spokesman said. ""The joint Russian-Turkish commission is conducting round-the-clock monitoring of ceasefire breaches. All actual data on such violations on the part of both the Syrian troops and the armed opposition are daily registered, verified and posted on the Russian Defense Ministry's website,"" the general said. ""Neither the Russian nor the Turkish side has registered any data on the alleged strikes delivered by Tochka-U missiles over this week against the Syrian opposition's formations in Idlib,"" the spokesman said. US Fox News TV Chanel reported earlier on Thursday that the Russian military had allegedly fired two Tochka-U and four Iskander tactical missiles against the armed opposition in the Syrian province of Idlib.", -795,2017/2/9,http://tass.com/economy/929979,"Green channel between Russia and Iran to operate at full capacity soon ""?expert",Experts will resolve the issues and the green customs channel will start operating in the nearest future,"TEHRAN, February 9. /TASS/. The green customs channel between Russia and Iran will soon operate at full capacity, Chairman of the Russian-Iranian Business Council at Russia's Chamber of Commerce and Industry Vladimir Obydenov told TASS on Thursday. ""So far the ""�green channel""?is not operating at full capacity. The Iranian side has provided us with a list of its nominee companies. However, this is not enough, it is necessary to establish an electronic document interchange,"" he said. According to Obydenov, another issue is the reluctance of the Russian customs to accept Iranian certificates of origin as they fail to meet the requirements of the Russian Federation. He added that experts plan to meet in Moscow in the nearest future to develop proposals regarding the matter. ""Experts will resolve the issues and the green customs channel will start operating at full capacity in the nearest future,"" Chairman said.", -796,2017/2/9,http://tass.com/economy/929972,Russia's GDP to grow in 2017 even if oil price is about $40 per barrel,The Bank of Russia notes certain structural changes in Russia's economy,"MOSCOW REGION, February 9. /TASS/. Russia's GDP will grow in 2017 even if oil price is about $40 a barrel, Chairperson of the Bank of Russia Elvira Nabiullina said on Thursday. ""The share of growing sectors is not the largest so far but we expect economic growth rates will be present this year. Certainly, they will continue depending on the oil price. We will be in the positive zone in any scenario, even with $40 per barrel [prices],"" Nabiullina said. The Russian economy will demonstrate growth this year and its further rates will depend on the speed of structural reforms, the Central Bank Chief said. The Bank of Russia notes certain structural changes in the economy, Nabiullina said.", -797,2017/2/9,http://tass.com/world/929974,Authorities say no nuclear risk after explosion hits France's Flamanville nuclear plant,Five people were affected by carbon monoxide as a result of the fire caused by the explosion,"PARIS, February 9. /TASS/. There is no nuclear risk after an explosion hit the Flamanville nuclear plant in northwestern France's Manche Department, local authorities told TASS. According to them, ""the explosion occurred in the engine room, but not in any of the reactors, so there is absolutely no risk of nuclear contamination."" Meanwhile, five people were affected by carbon monoxide as a result of the fire caused by the explosion. Authorities said that the explosion had been caused by a technical malfunction. The Electricite de France company, operating the power plant, is expected to announce details soon. The Flamanville nuclear plant was hit by an explosion at 10:00 local time on Thursday. The explosion occurred at the construction site of the third reactor. Fire fighters have already extinguished the fire, however, one reactor had to be temporarily stopped for security reasons. The Flamanville power plant houses two pressurized water reactors that produce 1.3 GWe each and came into service in 1986 and 1987, respectively. Construction on the new reactor, Flamanville 3, began in 2007. Its start-up is scheduled for late 2018.", -798,2017/2/9,http://tass.com/economy/929973,Russian PM to discuss joint energy projects with Slovenian president,Eleven bilateral contracts are planned for signing during the Slovenian president visit,"MOSCOW, February 9. /TASS/. Russian Prime Minister Dmitry Medvedev and Slovenian President Borut Pahor will discuss relevant issues of cooperation between the two countries in Moscow on February 10, press service of the Russian government reported Thursday. ""Medvedev and Pahor will discuss the implementation of joint projects in the energy, industry, agriculture, transport, hi-tech areas,"" the report said. Slovenian President is officially visiting Russia at President Putin's invitation. Their meeting is scheduled for Friday. Eleven bilateral contracts are planned for signing during the visit in different sectors, such as agriculture, telecommunications, technology exchange and energy with the total amount over 1 bln euro. Earlier Pahor said in an interview with TASS that bilateral economic agreements being prepared for signing can double the trade turnover between Slovenia and Russia.", -799,2017/2/9,http://tass.com/defense/929968,Russian aircraft carrier's Syria voyage to help develop new tactics for Navy,The Russian naval task force led by the sole aircraft carrier Admiral Kuznetsov has returned to its home base in northwest Russia after its anti-terror operation in Syria,"ADMIRAL KUZNETSOV AIRCRAFT CARRIER (Severomorsk), February 9. /TASS/. Russia will use the experience of its aircraft carrier's voyage to Syria to develop new tactics for employing naval task forces in the World Ocean, Russian Navy Commander-in-Chief Admiral Vladimir Korolyov said on Thursday. The Russian naval task force led by the sole aircraft carrier Admiral Kuznetsov has returned to its home base in Severomorsk in northwest Russia after its anti-terror operation in Syria. ""The tactics used in the voyage will also be analyzed by us. we'll develop new approaches to employing aircraft carrier naval task forces in various parts of the World Ocean,"" the Navy chief said. The Russian Navy command will analyze all the positive aspects that were practiced at sea for the first time, Korolyov said. ""Each subsequent voyage of a warship means an analysis and we'll analyze not only the warship's operation at sea but also the issues of timely preparing for a voyage, as well as the process of the warship's employment. This also applies to deck-based aircraft, warships and vessels of the aircraft carrier naval task force,"" the Navy chief said. The Russian Navy will also adjust ""some plans of the employment of forces, including the tactical level of specific warships and groups,"" he said. ""we'll make adjustments to our training programs in naval educational institutions, beginning with our schools and colleges and even, perhaps, the Nakhimov naval school and the Naval Academy and our institutes,"" the Navy chief said. The aircraft carrier-led task force comprising the aircraft carrier Admiral Kuznetsov, the heavy nuclear-powered missile battlecruiser Pyotr Veliky, the large anti-submarine warfare ships Severomorsk and Vice-Admiral Kulakov and support vessels set off for the Syria voyage on October 15, 2016. Russia's naval task force back home after successful operation off Syria's coast Russian Defense Minister Sergei Shoigu reported on November 1 that the naval task force had arrived in the Mediterranean Sea. Over the two months of their operation, the deck-based aircraft performed 420 sorties, including 117 at night, and destroyed more than 1,000 terrorist objectives in Syria. At the same time, during this voyage, the aircraft carrier Admiral Kuznetsov lost two deck-based aircraft, a Mikoyan MiG-29K and a Sukhoi Su-33, whose pilots ejected to safety. The Admiral Kuznetsov and the Pyotr Veliky returned to their home base in Severomorsk on Wednesday. They have anchored in a roadstead in the Kola Bay. Earlier, deck-based Su-33, MiG-29K aircraft and Kamov Ka-52, Ka-29 and Ka-27 helicopters made a flight from the aircraft carrier to their home aerodrome. The naval task force performed such a large-scale mission with the combat employment of naval aviation for the first time in the history of the Russian Navy.", -800,2017/2/9,http://tass.com/defense/929949,"Russia launches work to develop future aircraft's ��nervous system""?,Despite the outstanding technical and economic characteristics of aircraft made of composite materials"," they cannot be safely operated on a regular basis""","MOSCOW, February 9. /TASS/. Russia's Advanced Research Fund has started developing an advanced system of aircraft structures' control based on the principles of the work of living organisms""?nervous system, the Fund's press office told TASS on Thursday. ""As part of the Advanced Research Fund's project, work is under way to develop a system designed for its integration into the composite material to exercise non-destructive control of the condition of aircraft structures. The researchers who developed the future technology concept, made parallels with the living organism's nervous system, pursuant to which optical fibers sensitive to mechanical impacts and united into a network will be embedded into the composite material's structure,"" the press office said. In turn, Project Head Dmitry Uspensky told TASS that information on the aircraft structure's condition will be transmitted online by a laser beam that will spread inside the optical fiber embedded in the aircraft's design. ""The unique possibilities of the embedded aircraft structure's non-destructive control system, which the Fund is developing, will help both assess the airliner's current condition in real time and predict the remaining service life of the aircraft's composite parts, which will increase the safety of modern aircraft flights significantly,"" he said. Despite the outstanding technical and economic characteristics of aircraft made of composite materials, they cannot be safely operated on a regular basis without onboard structure integrity control systems, he said. The ability of optical fibers""?sensitive elements to sense inconsiderable motions of the aircraft's structures in the air and on the ground will considerably increase the safety of flights of such planes. This will help promptly detect emerging defects in the aircraft structures and assess their nature. Most similar systems that exist today operate on the basis of electronic sensors built into certain aircraft mechanisms and devices rather than on the basis of fiber optic technologies. World's most famous stealth aircraft ", -801,2017/2/9,http://tass.com/society/929909,500 years of robots: exhibition in London,The exhibition shows over 100 robots going back 500 years,"Robots' exhibition at the Science Museum in London-opened to the public on February 8th and display over 100 robots.-The exhibition shows 500 years of mechanical and robotic advances. See the unique machines ""� from mechanical babies to Terminator.-", -802,2017/2/9,http://tass.com/society/929964,Russia and France to mark 300th anniversary of Peter the Great's visit,This visit in April-June 1717 resulted in the establishment of regular diplomatic ties between the two countries,"PARIS, February 9. /TASS/. Russia and France are preparing for celebrations of the 300th anniversary of Emperor Peter the Great's visit to Paris, Russian ambassador in France Alexander Orlov said in an interview with TASS. ""This visit in April-June 1717 resulted in the establishment of regular diplomatic ties, and our countries will together celebrate its 300th anniversary,"" Orlov said, adding that the program of the celebrations includes a congress in Paris and an exhibition in Versailles. He said the congress will be organized by the Russian Culture Ministry, the Hermitage and other leading museums and institutions, as well as the Sorbonne University and the French National Center for Scientific Research (CNRS). According to Orlov, Peter the Great met with French King Louis XV who was seven years old during the visit. The Russian guest was interested in French architecture, physics, military arts, shipbuilding, book printing and even tapestry weaving, he added. ""The congress is set to promote the legacy of Peter the Great's epoch and to develop cultural tourism,"" Orlov said.", -803,2017/2/9,http://tass.com/economy/929957,"Driving wedge between Moscow, Tehran impossible ""?head of Russia-Iran Business Council","Chairman of the Russian-Iranian Business Council Vladimir Obydenov said Moscow and Tehran ""have a lot of common interests""","TEHRAN, February 9. /TASS/. Bilateral relations between Moscow and Tehran have been cemented by common interests, and no external player will be able to hamper their development, Chairman of the Russian-Iranian Business Council, Vladimir Obydenov, told TASS on Thursday. He thus commented on US media reports on Washington's intention to sow discord in the military and diplomatic alliance between Moscow and Tehran. ""In light of the growing trade and economic ties between Russia and Iran in various areas, including the oil and gas industry, rail transport, the energy and engineering sectors, such plans seem to be unworkable. Russia began to receive a large number of goods from Iran, Russian exports to Iran are growing, the tourism industry is developing. We are close neighbors, and we have a lot of common interests,"" he said. Obydenov mentioned the implementation of the agreement on Iran's nuclear program, the North-South Transport Corridor project and the joint oil and gas strategy among such interests. ""It is impossible to stop these processes today, and no one will be able to drive a wedge between our two countries,"" he added.", -804,2017/2/9,http://tass.com/society/929958,Two Russians beat hot air balloon flight duration world record,Russian traveler Fyodor Konyukhov and professional balloonist Ivan Menyailo have beaten the 20-year-old absolute hot air balloon non-stop flight world record,"VLADIMIR, February 9. /TASS/. Russian traveler Fyodor Konyukhov and professional balloonist, holder of a master of sports degree title Ivan Menyailo have beaten the 20-year-old absolute hot air balloon non-stop flight world record. They have spent in the sky over Russia for more than 51 hours and hope to stay in flight for two more hours, Konyukhov's son, Oskar, has told TASS. ""The previous absolute world record of 50 hours and 38 minutes was beaten at 12:13 Moscow time,"" Oskar said, while the crew of two were flying over the Saratov Region towards the border with Kazakhstan. ""They will have to make a landing before the sunset or if there is a risk of crossing the Kazakh border,"" he said. Fyodor Konyukhov and Ivan Menyailo left an air field in the Yaroslavl Region at 09:00 Moscow time on February 7. The previous world record was set by Michio Kanda and Hirazuki Takezava, of Japan, in 1997. On February 8, Konyukhov and Menyailo beat their own national record, set on March 15, 2015. Their 10,000-cubic-meter balloon stayed in the air for more than 19 hours. Konyukhov established his previous record (for 4,000 cubic meter balloons) of 32 hours and 20 minutes in January 2016 over the Tula, Moscow, Ryazan, Vladimir and Ivanovo regions. ", -805,2017/2/9,http://tass.com/world/929950,"Explosion hits NPP in France, no nuclear risk ""?paper",Several people were injured as an explosion hit Flamanville Nuclear Power Plant in northern France,"PARIS, February 9. /TASS/. An explosion rocked the construction site of a new reactor at Flamanville Nuclear Power Plant in northern France, Ouest France newspaper reported on Thursday. The explosion poses no nuclear risk as the reactor has not been put into operation, the paper said, adding that several people were injured in the accident. The paper gave no details on the causes of the explosion. The Flamanville power plant houses two pressurized water reactors that produce 1.3 GWe each and came into service in 1986 and 1987, respectively. Construction on the new reactor, Flamanville 3, began in 2007. Its start-up is scheduled for late 2018.", -806,2017/2/9,http://tass.com/politics/929948,Kremlin believes sanctions are harmful for both sides,The Kremlin spokesman comments on the latest proposal by US senators for sanctions against Russia,"MOSCOW, February 9. /TASS/. The Kremlin believes that the policy of sanctions is destructive and harms both sides. ""Our attitude to the sanctions and the exchanges of all sorts of restrictions is well-known: we regard this policy as rather destructive and harmful to both sides,"" Russian presidential spokesman Dmitry Peskov told the media on Thursday. He made the statement when asked for a comment on the latest proposal by US senators for sanctions against Russia. At the same time Peskov avoided saying anything about the contents of the document. On January 10, a group of US senators, including John McCain, Lindsey Graham, Robert Portman and Robert Menendez, came out with a bill proposing more sanctions against Russia. In the first place the bill upholds the legal restrictions imposed by the previous Barack Obama administration. Also, the legislators would like to oblige the president to impose a ban on issuing US visas to those who, as follows from the accompanying comments, upset the cyber security of government and private infrastructures or democratic institutions. Their assets in US territory, should they be discovered, must be frozen. The senators argue sanctions must be introduced for cooperation with the Russian defense and intelligence sector, including the federal security service FSB and the Main Directorate of the Russian General Staff (former Main Intelligence Directorate GRU).", -807,2017/2/9,http://tass.com/politics/929932,Kremlin: US should persuade Kiev to give up aggressive tactics in conflict resolution,The Kremlin spokesman believes intra-Ukrainian conflict cannot be the subject of Russia-US deal,"MOSCOW, February 9. /TASS/. Russia expects the United State to use its influence to persuade Kiev to give up aggressive methods in the Ukrainian conflict resolution, Kremlin spokesman Dmitry Peskov said on Thursday. ""As for the prospects of the Moscow-Washington dialog on the Ukrainian issue, we want to hope that Washington will somehow use its influence to persuade Kiev to fulfill obligations taken under the Minsk Accords and to give up aggressive tactics in the resolution of this problem, which we have observed in the past days,"" Peskov told reporters. ""The intra-Ukrainian conflict can hardly be the subject of any deal. This information in no way corresponds to reality. Moreover, the destiny of people who live in Donbass and who have been de facto rejected by their own country cannot be the subject of a deal either,"" Peskov said.", -808,2017/2/9,http://tass.com/economy/929942,"Bank of Russia is conservative in its forecasts due to risks of new ""Black swans""?,The Bank of Russia usually tries to avoid exaggerated optimism"," the Bank of Russia's chief said""","MOSCOW, February 9. /TASS/. The Central Bank of Russia is highly conservative in its forecasts because of risks of new ""Black swans""?appearance, Chairperson of the Bank of Russia Elvira Nabiullina told TASS in an interview on Thursday. ""The higher level of uncertainty in the global economy and international policy is observed in the last 2-3 years. Risks of emerging new ""Black swans""?exist; uncertainty factors will influence on financial markets at large on a going basis. Therefore our attitude towards forecasts is very conservative,"" Nabiullina said. The Bank of Russia tries to avoid exaggerated optimism because the regulator can always adjust its policy in case of favorable developments from the standpoint of world's economy, trade and oil prices growth, she said. ""Considering greater uncertainty, it is always better to be ready for pessimistic developments,"" Nabiullina added. A black swan is an event or occurrence that deviates beyond what is normally expected of a situation and is extremely difficult to predict. The term was popularized by economist Nassim Taleb. Black swan events are typically random and unexpected.", -809,2017/2/9,http://tass.com/world/929939,"Belarus confirms its commitment to allied relations with Russia ""?Foreign Ministry","Minsk will continue to work with its Russian counterparts to resolve the issue related to the introduction of a border zone along Russia's border with Belarus, the Foreign Ministry said","MINSK, February 9. /TASS/. Minsk confirms its commitment to allied relationship with Russia, Belarusian Foreign Ministry spokesman, Dmitry Mironchik, said on Thursday. ""The (Belarusian) Foreign Ministry confirms its continuous commitment to allied and friendly relations with Russia and is looking forward to Russia's constructive approach towards solving outstanding problems,"" he said. According to Mironchik, Minsk will continue to work with its Russian counterparts to resolve the issue related to the introduction of a border zone along Russia's border with Belarus and expects the two countries state border services to cooperate closely. The diplomat added that Belarus continues to be committed to the principle of the openness of the border with Russia in the spirit of the allied relations. ""This approach was based on the border openness principle, and we continue to be committed to it honoring allied obligations,"" he emphasized. Mironchik noted that presently ""there is no restricted area on the border with Russia, and no boundary pillars have been installed."" ""This information can be easily verified,"" he said.", -810,2017/2/9,http://tass.com/pressreview/929896,Press review: Merkel's 'dangerous views' and Trump's key to settling crisis in Ukraine,Top stories in the Russian press on Thursday,"- Russia's Ambassador to the United Nations, Vitaly Churkin, expects the new US administration to play an important role in settling the Ukrainian crisis. ""Now that Ukraine chairs the Security Council this issue is back to the Council. On February 2, there was a public meeting of the Security Council, and it was impossible to miss that the atmosphere of discussion was a far cry from what it used to be. In fact, only two delegations supported Ukraine - the UK and the US, while the rest urged a political settlement and the implementation of the Minsk accords, which is exactly what we are pushing for,"" Churkin said in an interview for Kommersant daily. According to the diplomat, the Syrian settlement and tackling terrorism is obviously another top priority issue the Security Council is facing now. ""We expect a logical call by US President Donald Trump for uniting efforts to counter the Islamic State (terrorist group outlawed in Russia) will retransmit into concrete approaches to the whole Syrian settlement track, which will help reach a positive outcome,"" he said. ""The United States can join in on the measures, which are already being assumed, you may be aware of the fact that We're invited the Americans to the meeting in Astana headed by Russia, Turkey and Iran,"" Churkin added, admitting though that it would be rather challenging to ""seriously get ahead without a positive and more or less active role of the United States."" When asked to comment the intention of the new US administration to slash its payments to the United Nations by 40%, he said that ""the UN is not a gift by the United States to the world, but an international structure, which plays a crucial role in the settling regional and worldwide political, social and economic issues, without it, the global community would have had to solve them separately, which would be less efficient and more costly."" On the other hand, he added, ""there are statutory and voluntary payments within the UN, and if the United States failed to make statutory payments this would first of all hurt Washington's image, not to mention the existing rule that if a country's indebtedness exceeds its two-year contribution, it is divested of UN General Assembly vote."" - Representatives from Russia, Iran, Turkey and Jordan are expected to put an end to the issue of divided Syrian opposition to moderate and radical groups at their meeting in Astana scheduled for February 15-16. Experts think this will seriously expedite both the task of tackling terrorists and holding peaceful talks, Izvestia wrote. According to the newspaper's informed source in military and diplomatic circles, Russia and its partners in Astana talks are determined to define the lists of ""�moderate""?and ""�radical""?groups of the Syrian opposition during the next round of the negotiations. The former are considered as potential participants in the peace talks, while the latter will be targeted for a resounding defeat, the source added. ""On Monday, the main criteria for assessment of the groups were set - their involvement in terrorist activities, dealing with civilians and ideology,"" he said, adding that considering the ""assumption that not all fundamentalist groups should be viewed as radical and terrorist as the main breakthrough."" ""The key task for now is to divide the groups, which used to be part of the former Jabhat al-Nusra and Ahrar al-Sham(terror groups, outlawed in Russia),"" the source said. According to Elena Suponina, an advisor to the Director of the Russian Institute of Strategic Studies, the move to differentiate between moderate and radical opposition may kill three birds with one stone. ""First, this will make the war against with terrorists easier for all sides, as the military will understand which positions are permitted to be bombed and which are not,"" she told Izvestia. Second, ""�moderate""?groups will be able to join the peace process,"" Suponina said. ""They will have to stop hostilities, sit down to talk with the government and agree the settlement's parameters,"" she said. ""Finally, the dispute between international players regarding which opposition representatives should be considered as terrorists will clear up, which will seriously facilitate cooperation towards a peace process with Turkey, Iran and Jordan, and potentially - with the United States and the countries of the Persian Gulf. - German Member of European Parliament-and member of the delegation for relations with the United States, Bernd Koelmel, told Izvestia daily that the political views of the country's Chancellor Angela Merkel are dangerous for the stability of not only Germany bur other European countries as well. ""In everyday life Angela Merkel is a very good person, but regarding political issues she encourages stagnation, does not take into account the opinion of German citizens and stands for further centralization of the European Union. This particularly concerns her policy regarding the European currency, migrants and nuclear energy,"" he said, adding that the country will pursue a shortfall policy in case Merkel wins the election. Speaking about the relations between the EU and the United States, the MEP said that the two ""are very important strategic partners."" ""Much depends on the decisions that will be made during the talks between institutions and EU countries""?leaders on the one hand and Donald Trump's administration on the other. ""For Trump as a new player on the political arena, it is necessary to get in contact with the European Union as a guarantor of peace, stability and welfare on the European continent,"" Koelmel said. ""In the economic sphere as well as the issues of safety and freedom, the partnership between the EU and the US is top priority. Obviously, there are certain issues, which should be discussed in the near future in order to find common ground, for example with regards to the Iranian nuclear deal, which is not subject to revision. Also, a special focus should be put on trade, currency and export issues,"" he said, adding though that he expects the two sides ""to find correct decisions as they have more common values and interests than contradictions."" Also, he added, both sides are ""interested in improving the relations with Russia as an important partner in solving global problems."" - Settlements with creditors of the failed lender, Mezhprombank, (the International Industrial Bank, or IIB) at the expense of its former CEO and beneficiary Sergei Pugachev will begin in the near future, RBC business daily wrote on Thursday with reference to market insiders. Lower Venn Farm, an 18th century estate in the county of Herefordshire in the UK, disclosed by order of the London Court, is expected to be the first foreign asset to be sold, the newspaper says. According to players on the luxury property market interviewed by RBC say the transaction may be worth anywhere from hundreds of thousands to millions of pounds. ""The latest deal involving this asset was registered in 2003. It was worth 379,000 pounds. At the moment, the asset may be worth up to 686,000 pounds taking into consideration the dynamics of average indicators adjusted for inflation in the region,"" Etage Real Estate's consultant Yulia Ananyeva told the newspaper. She added that this estimation is relevant for middle class property, though the estate ""could have undergone major repair works, which could crucially change its status."" In this case the cost of the asset could rise up to 3 mln pounds, she added. Experts at Kalinka Group estimate the cost of the estate at around 600-700,000 pounds. Earlier the cost of another London estate - Old Battersea House built in the late 17th century - was estimated at 14-15 mln pounds. Those are the first Pugachev's assets seized in the United Kingdom to be sold. According to a source in the Deposit Insurance Agency (DIA), which is the bankruptcy trustee of Mezhprombank, ""the agency is now involved in searching for assets owned by Pugachev in other jurisdictions."" The former Mezhprombank CEO, who fled to the UK and later to France, is accused of embezzlement and abuse of office. In 2016, Russian Prosecutor General's Office requested Pugachev's extradition from the UK. A short while later the former banker left the UK in violation of the High Court's resolution. - - Russian President Vladimir Putin has requested to find sources of cheap long-term funding for Russia's development bank VEB, Vedosmoti writes citing sources familiar with the matter. One of the options is to take part of the extra oil and gas revenues, two people close to the bank told the newspaper and two federal officials confirmed the information. At present, additional oil and gas revenues are transferred to the Reserve Fund, and when it reached 7% of GDP - they will flow to the national Wealth Fund. What VEB is proposing is to create another target fund to finance investment projects, including those carried out by the institution. However, a federal official told Vedomosti that so far there are no profound discussions regarding the matter underway. According to VEB's development strategy to 2021, the institution can hardly do without low-cost financing. Both Finance Ministry and Economic Development Ministry are expected to object the idea, the newspaper writes.· - TASS is not responsible for the material quoted in the-press reviews", -811,2017/2/9,http://tass.com/politics/929936,Kremlin says Russia and US share understanding on fight against terrorism,The presidential spokesman has commented on the preparation of a summit meeting between the Russian and the US leaders,"MOSCOW, February 9. /TASS/. Russia and the United States are unanimous in their understanding of the need to fight international terrorism and the Islamic State terrorist organization, Kremlin spokesman Dmitry Peskov said on Thursday. The presidential spokesman thus commented on the preparation of a summit meeting between the Russian and US leaders. ""Each side has certain understanding and a certain approach to the fields, in which we should interact. There is common understanding that undoubtedly cooperation in the fight against terrorism and the Islamic State can and must be a priority,"" the Kremlin spokesman said. According to Peskov, ""other details will be worked out after the format [of a meeting] is clear.""- ""I have nothing to tell you yet, there have been no specific decisions,"" he said when asked if preparations were underway for such meeting. ""Preparations will begin after we define the format and date [of the meeting],"" the Russian presidential spokesman added.", -812,2017/2/9,http://tass.com/economy/929928,Russia's grain harvest to be over 100 mln tonnes this year,"According to preliminary data, Russia gathered an all-time high grain harvest of 119.1 mln tonnes in 2016","MOSCOW, February 9. /TASS/. Grain harvest in Russia should be over 100 mln tonnes in 2017, Department Director of the Agriculture Ministry Vladimir Volik told reporters on Thursday. ""Yes, in any case,"" the official said responding to the question whether the grain harvest is over 100 mln tonnes in 2017. Volik did not give a more accurate forecast. Crop producers should give their estimate first, he said. According to preliminary data, Russia gathered an all-time high grain harvest of 119.1 mln tonnes in 2016, up 14% year-on-year. Final figures of grain harvest will be presented in March 2017.", -813,2017/2/9,http://tass.com/politics/929931,Russian diplomat urges UN to speed up intra-Syrian talks in Geneva,"Delays in talks ""are harmful for the settlement process,"" Russian Deputy Foreign Minister Gennady Gatilov said","MOSCOW, February 9. /TASS/. The United Nations should speed up the intra-Syrian talks in Geneva following almost a year-long pause in the negotiations, Russian Deputy Foreign Minister Gennady Gatilov said in an interview with TASS. ""As for another round of the intra-Syrian talks in Geneva, according to UN Special Envoy for Syria Staffan de Mistura, they are scheduled to take place on February 20 following months-long delay,"" Gatilov added. ""We believe that delaying the talks since April 2016 is unreasonable so the United Nations should speed up the process,"" the senior Russian diplomat added. Gatilov went on to say that Moscow considered the recent Astana meeting on Syria (held on January 23-24) to be ""an important step aimed at boosting efforts for settling the Syrian conflict."" ""First, the armed opposition groups have joined the process, particularly, the talks on Syria's future, while they had been refusing to build any contacts with the government,"" the diplomat noted. ""Second, an important conclusion was made in Astana, as everybody agreed that there was no military solution to the Syrian conflict."" Besides, the Russian deputy foreign minister pointed out that the meeting's participants had confirmed the ceasefire established in accordance with an agreement reached on December 29, while a trilateral mechanism for monitoring the ceasefire and investigating ceasefire violations had been set up by Russia, Iran and Turkey. ""It was made clear that all the efforts aimed to advance the search for a political solution made in Astana would contribute to the intra-Syrian talks in Geneva under the United Nations auspices in accordance with the UN Security Council Resolution 2254,"" Gatilov said. ""One of the positive results of the Astana meeting is that it gave a much-needed impetus to the process, encouraging the United Nations to boost their activities."" Gatilov also said that unnecessary delays in talks ""are harmful for the settlement process."" ""This is why since no talks under UN auspices have been taking place, new initiatives emerged,"" he explained. ""Of course, it would be better if all these efforts were carried out under a single umbrella but for that long pauses in dialogue should be avoided."" - ""We are convinced that participants in the talks should stop going around in circles and tackle specific issues in accordance with the United Nations Security Council Resolution 2254,"" the high-ranking Russian diplomat concluded. - -", -814,2017/2/9,http://tass.com/politics/929926,Kremlin denies media rumors Kurils to be handed over to Tokyo for temporary use,Attempts at negotiating joint economic activity on the islands were made in the late 1990s,"MOSCOW, February 9. /TASS/. The Kremlin has dismissed Japanese media rumors the Kuril Islands might be handed over to Tokyo for temporary use. ""The origin of this rumor is unclear. This has nothing to do with the reality,"" Russian presidential spokesman Dmitry Peskov told the media on Thursday. According to earlier reports, Russia and Japan might enter into official consultations over joint economic activity in the South Kuril Islands in March. Japanese Foreign Minister Fumio Kishida earlier this week declared the establishment of a council for joint economic activity with Russia in the southern Kuril Islands. Kishida said that the Council was expected to make preparations for an early visit to Russia by Japanese Prime Minister Shinzo Abe. Russia's Minister for the Development of the Far East, Aleksandr Galushka, confirmed that his ministry was getting ready for consultations, too, and would make its own proposals for joint economic activity by Russia and Japan in the South Kurils. According to some sources, the Council is expected to consider specific projects for cooperation in the South Kuril Islands, including fishing, the production of seafood, tourism and nature conservation. As it has been repeatedly stated, such partnership should not cast doubt over the fundamental positions of Russia and Japan regarding sovereignty over the islands. When Russian President Vladimir Putin visited Japan on December 15-16, the two parties agreed to start consultations on joint economic activity in the southern part of the Kuril Archipelago. In March, Tokyo is to host the first round of consultations at the deputy foreign minister level. Attempts at negotiating joint economic activity on the islands were made in the late 1990s. They ended inconclusively, as Japan disagreed to cooperate on the basis of Russian legislation.", -815,2017/2/9,http://tass.com/defense/929913,Russia's naval task force back home after successful operation off Syria's coast,It was Russian Navy's first-ever large-scale voyage to the Mediterranean in which naval aircraft were used in combat,"SEVEROMORSK, February 9. /TASS/. Russia's aircraft carrier-led task force has completed its successful operation in Syria - in the air, on the high seas and under water, the Navy's Commander-in-Chief, Vladimir Korolyov, said on Thursday. ""The history of the Russian Navy is a long chronicle of victories, big and small. I am certain that the just-ended mission of the aircraft carrier-led task force is a special chapter in the combat history of the Russian Navy. In the operation against the terrorists you displayed unity, courage, determination and loyalty to the St. Andrew's Flag. Each mile you left behind was used most effectively. The personnel operated with success in all media - in the air, on the sea surface and under water,"" Korolyov said at a special welcome ceremony on board the aircraft carrier The Admiral Kuznetsov. Mission accomplished: Russian warships' long way back from Syria The Admiral Kuznetsov and The Pyotr Veliki battlecruiser are now at anchor off Severomorsk in the Kola Bay. Both arrived there on February 8. ""As far as the serious losses inflicted upon the enemy and the invaluable experience the Navy's air pilots have gained are concerned, they are a tangible argument in response to the skeptics who were calling in question the Navy's combat ability and readiness,"" he said. ""We will closely study the lessons to be derived from this mission. Undoubtedly we will review our plans for future operations by naval groups and fleets and adjust training accordingly. The results of the voyage will be included in the curricula or our naval academies,"" Korolyov said. It was the Russian Navy's first-ever large-scale voyage to the Mediterranean in which naval aircraft were used in combat. The naval task force consisting of The Admiral Kuznetsov, the heavy nuclear-powered battle cruiser The Pyotr Veliki, two anti-submarine chasers The Severomorsk and the Vice-Admiral Kulakov, as well as auxiliary ships left for the Mediterranean on October 15, 2016.", -816,2017/2/9,http://tass.com/world/929911,Chinese Foreign Ministry: US-China relations should develop on cooperation basis,"China pays considerable attention to the development of the Chinese-US relations, Chinese Foreign Ministry spokesman said","BEIJING, February 9. /TASS/. The Chinese-US elations should develop on the basis of cooperation, Chinese Foreign Ministry spokesman, Lu Kang, told a press briefing on Thursday commenting on a letter sent by US President, Donald Trump, to his Chinese counterpart, Xi Jinping, on the occasion of the Lunar New Year. ""The Chinese side has received the message. We welcome the fact that Donald Trump has sent congratulations to Chinese President, Xi Jinping, and the Chinese people on the occasion,"" the diplomat said. ""China pays considerable attention to the development of the Chinese-US relations. China and the US have a special responsibility in maintaining peace and stability, promoting prosperity and in other areas."" He added that ""cooperation is the only right choice"" for the two countries. White House Press Secretary, Sean Spicer, earlier said that Trump sent Xi Jinping a letter saying that is looking forward to developing constructive relationship with the Chinese leader that benefits both Washington and Beijing.", -817,2017/2/9,http://tass.com/defense/929910,Moscow air defense spots notional enemy's strategic bombers in snap check,"The aircraft and helicopters notionally attacked the Russian capital from various directions, which complicated the operation of the Moscow air defense system","MOSCOW, February 9. /TASS/. The Moscow air defense system has detected a notional enemy's strategic bombers approaching the city in a snap combat readiness check of Russia's Aerospace Force, the press office of Russia's Defense Ministry reported on Thursday. ""Long-range aircraft - Tu-160 strategic missile carriers and Tu-22M3 long-range bombers - performed flights at supersonic speeds at a maximum distance from radar detection zones, which complicated their detection and notional destruction,"" the press office said in a statement. The aircraft were tasked with approaching notional strike objectives undetected by radar stations and antiaircraft missile systems. Their flights were registered by airborne and ground-based data recording equipment. Aside from the strategic bombers, the notional enemy's role was also performed by about another 20 various warplanes, including Sukhoi Su-27 and Mikoyan MiG-29 fighter jets, Su-34 bombers, Yakovlev Yak-130 combat trainers, Antonov An-26 and An-12 military transport planes, Mil Mi-8 and Kamov Ka-52 helicopters. The aircraft and helicopters notionally attacked the Russian capital from various directions, which complicated the operation of the Moscow air defense system. The sudden combat readiness check of Russia's Aerospace Force is being held by decision of Russian President and Supreme Commander-in-Chief Vladimir Putin on February 7-9. Overall, the check involves about 45,000 troops and around 1,700 pieces of military hardware, including 150 aircraft and 200 antiaircraft missile systems.", -818,2017/2/9,http://tass.com/world/929907,Chinese diplomat confirmes Putin expected to take part in Silk Road Forum,"China has been making ""rather successful"" preparations for the forum, according to Chinese Foreign Ministry","BEIJING, February 9. /TASS/. China has been making ""rather successful"" preparations for the Silk Road Forum, Russian President Vladimir Putin will participate in the forum, Chinese Foreign Ministry spokesman Lu Kang said at a regular briefing. While commenting on a statement made by Russian Ambassador to China Andrei Denisov, Lu Kang said that ""we are now making preparations, and rather successfully."" ""When the work is done, we will announce the results,"" he added. ""We are ready to strengthen our relations with Russia in order to ensure prosperity on regional and global level,"" the Chinese diplomat added. ""Russian Ambassador to China Andrei Denisov has already announced the agenda, we will publish new information in due course,"" Lu Kang concluded. Denisov said earlier at a press conference that Vladimir Putin would participate in the Silk Road Forum during his working visit to China. ""After receiving an invitation from Xi Jinping, the Russian president immediately confirmed his readiness to make a visit to China and take part in the forum dubbed One Belt, One Road. He plans to participate in discussions during the forum and also hold bilateral talks with President Xi Jinping,"" the Russian ambassador elaborated. The One Belt, One Road forum is scheduled to be held in China's capital of Beijing on May 14-15.", -819,2017/2/9,http://tass.com/politics/929881,China's president plans to visit Russia in midyear,,"BEIJING, February 9. /TASS/. China's President Xi Jinping plans to visit Moscow in midyear, Russian Ambassador to China Andrei Denisov said on Thursday. ""Xi Jinping's visit will take place in midyear,"" he said, adding that top level contacts between the two countries have intensified in the recent years. It will be a response visit to Russian President Vladimir Putin's two visits to China last year. The visits yielded a number of major agreements which are expected to be the basis for further strengthening of bilateral strategic relations between Moscow and Beijing.", -820,2017/2/9,http://tass.com/economy/929887,"Financial recovery of Russian banking sector may take several years ""?Central Bank","The Bank of Russia estimates the oil price range to be $40-55 per barrel in recent years, Nabiullina told TASS","MOSCOW, February 9. /TASS/. A three-tier system of banking regulation in Russia makes possible to maximize satisfaction of demands of banking services consumers in Russia, Chairperson of the Bank of Russia Elvira Nabiullina told TASS in an interview. ""A three-tier system is created for the economy to have financial institutions capable of maximizing satisfaction of consumer needs. Regional banks are working with small and medium enterprises locally, know their history and have more opportunities to interact with borrowers on an individual basis. Major banks are often losing in respect of this category clients: by virtue of operating techniques of large banks and scoring models,"" Nabiullina said. Identification of several tiers in the banking system is a fairly common approach in the global practice, she added. Financial rehabilitation of Russian banking sector may take several years more, the Central Bank chief said.- ""The period of proactive recovery of the banking system will continue for some more time. We hope to reach a situation when there will be very few revocations of licenses annually. However, this will take several years more,"" she said. The floating ruble rate does not merely provide for absorption of external shocks but it-also balances interests of different market participants:- ""I am absolutely confident the rate should be floating. Further to the opportunity of the floating rate to absorb external shocks, it also balances interests of different market participants. When it is said the economy needs weak [ruble] rate, the assumption is made on the basis of the opinion of commodities exporters. However, enterprises exist that want to purchase imported equipment for upgrade; they are interested in strong ruble. Therefore we believe the rate should be a market one and balance diverse interests,"" Nabiullina has stressed.- The Bank of Russia estimates the oil price range to be $40-55 per barrel in recent years, Nabiullina told TASS: ""We believe now the average price can be above $40 this year. This is largely the consequence of the agreement with the OPEC. The range of fluctuations in coming years can be estimated as $40-55 per barrel. The oil price will depend on many factors, including the US policy on the energy market, the response of shale oil producers to a new market situation, and on prospects of extending the agreement with the OPEC. The demand response, particularly in China, is also highly important in terms of oil prices growth. We will thorough evaluate these factors in the next outlook."" The Bank of Russia intends to implement the three-tier system of the domestic banking sector since January 1, 2018 and complete the system setup by early 2019:- ""We plan to introduce the three-tier system since January 1, 2018. A one-year transitional period will start since then, when the banks should determine the category they want to work in. Thus the three-tier system of the banking system is to be established by the beginning of 2019,"" Nabiullina said. The regulator suggests identifying three tiers of credit institution within the framework of the new regulation mode:- ""[These are] systemic credit institutions, which will continue working under existing rules. [They are followed by] universal banks, which can perform all kinds of operations, including international ones, but are regulated in full scope in line with Basel standards. Minimal requirements to the equity of universal banks are increased to 1 bln rubles [$16.9 mln]. The third type comprises banks with basic licenses, whose equity may start from 300 mln rubles [$5 mln]; they will mostly service individuals, small and medium business,"" she said. The Bank of Russia suggests significant simplification in regulation for such banks because the level of risks assumed by them will be lower and they will not have the need to perform complex transactions, particularly the international ones, Nabiullina said. -Russia's Central Bank estimates the impact of the Finance Ministry interventions on liquidity of the banking sector as neutral, Elvira Nabiullina said.- ""Of course, when we manage liquidity of the banking sector we will take into account purchase and sale of currencies by the Finance Ministry. According to our estimates, the impact of these operations on liquidity will be neutral,"" she said. According to her, the Finance Ministry carries out the purchase of currency as part of application of the transitional fiscal rule and these activities should not be regarded as foreign currency interventions aimed at influencing the ruble nominal rate. Nabiullina said that the structural surplus liquidity of the banking sector was achieved thanks to the fact that the Finance Ministry is financing the budget deficit from the Reserve Fund. The head of the Central Bank noted that the transition to the liquidity surplus is not steady and a lack of liquidity still may occur on the market. According to Nabiullina, this will depend on the rate of budget spending and the banks strategy to replenish reserves. She promised to the bankers that the Central Bank will respond flexibly to the situation with liquidity. Earlier this month, the Finance Ministry announced currency purchase operations using 113.1 bln rubles ($1.9 bln) in February. The currency will be purchased using extra oil and gas revenues. Daily volume of currency purchases will be 6.3 bln rubles ($105.9 mln) from February 7 to March 6. ", -821,2017/2/9,http://tass.com/world/929875,Chechnya provides 10 tonnes of humanitarian aid to Syria,The Akhmad Kadyrov Fund was set up in 2004,"MOSCOW, February 9. /TASS/. Chechnya's Akhmad Kadyrov Fund has organized delivery of more than ten tonnes of food and other relief aid to Syria, Chechen leader Ramzan Kadyrov said on Thursday. ""On Wednesday, thousands of women and children received food products, baby foods, blankets, etc. - ten tonnes in all - from the Akhmad Kadyrov Fund. The Fund's volunteers delivered the aid to temporary accommodation centers and refugee camps,"" Kadyrov wrote on his Instagram. The Akhmad Kadyrov Fund was set up in 2004 to offer charity assistance and create jobs for Chechen population. Since then, it has extended assistance not only to residents of Chechnya and people living in other Russian regions, but also to people in Somalia and Syria. Thus, in September 2016, the Fund sent more than 2,500 sheep, 100 bulls and ten camels to residents of Syria's Damascus and its suburbs, to Latakia, Tartus and Aleppo on the occasion of the Moslem festival Kurban Bairam. The Fund also provided 7,000 Syrian children with school kits.", -822,2017/2/9,http://tass.com/world/929883,Ceremony honoring Russian cruiser Varyag and Korietz sailors held in Incheon,The Varyag became a legend in Russia and many other countries during the Russian-Japanese war of 1904,"INCHEON /Republic of Korea/, February 9. /TASS/. A traditional ceremony marking the 113th anniversary since the naval battle between the Japanese and Russian naval forces in the Chemulpo Bay off the Korean shores was held in the Yellow Sea off Incheon on Thursday. The ceremony was attended by Russian Ambassador in South Korea Alexander Timonin, officers of the military attache's office, diplomats, students of the Russian embassy's school, and South Korean navy officers. A Korean corvette took the Russians to the place where the Russian cruiser Varyag and the gunboat Korietz had sunk. Outstanding ships of the Russian Navy ""The heroic exploit of the Russian sailors will stay in our memory for ever. Today we lay flowers at the place where the ship, which has become a symbol of valor, selflessness and commitment to the military duty, sank,"" Timonin said, lowering a wreath into the sea to the sound of trumpets. The Varyag became a legend in Russia and many other countries during the Russian-Japanese war of 1904, when it took part in the battle of Chemulpo on January 27, 1904, engaging in a heroic and uneven fight with a squadron of fifteen Japanese ships. The battle lasted about an hour. The crew of the Varyag sent to the sea floor a Japanese destroyer and damaged severely two cruisers. The Varyag itself got five underwater scuttles and lost three guns. An officer and thirty sailors were killed and another six officers and 85 sailors were severely wounded or shell-shocked. The Varyag was incapacitated at the end of the battle and it returned to the port of Chemulpo together with the Koreyets. The crews did not surrender to the Japanese - the Varyag was and sunk by its own crew on February 9, 1904. The Korietz was blown up. A year later, the Japanese lifted it and put it back into service as their warship. Russian Empire in the First World War Russia purchased it back in 1916 and sent it for an overhaul to Britain, where it was arrested after the Bolshevik revolution of 1917. The British eventually sold the Varyag to Germany as scrap metal. In 1917, the cruiser was sent to England for an overhaul. In 1920, it ran into rocks while being towed to the junkyard and sank half a mile off South Scotland. In 1925, it was blown up to ensure the safety of navigation. The Varyag relics were displayed in a museum in Korea. Several years ago, the Incheon city authorities transferred the Varyag's flag to Russia. The flag is now displayed at the Naval Museum in St Petersburg. A monument to the Russian cruiser Varyag was built on Incheon's embankment in February 2004. It is made of garnet amphibole that is produced only in one place in Russia - Chupa on the Kola Peninsula. Laid in the base of the monument is a wooden cross that had been consecrated by Patriarch Alexy II of Moscow and All Russia. In 2011, the monument was moved several dozen metres to become the centrepiece of the embankment named after St. Petersburg. Every year in February the Russian ambassador, the military attache, diplomats and pupils of the Embassy's school board the Republic of Korea's corvette to sail from the Navy base in Incheon to Chemuplo Bay where the ship stands still for several minutes to allow the Russian sailors to lower a wreath into the sea to the sound of the military trumpet in memory of the Varyag and Korietz crews.", -823,2017/2/9,http://tass.com/defense/929879,Long-range air force crews redeployed at tactical airfields within snap check,"Pilots of Tu-160 and Tu-95MS strategic missile carriers, Tu-22M3 long-range bombers and Il-78 re-fueling aircraft performed long flights having covered a distance of several thousand kilometers","MOSCOW, February 9. /TASS/. More than 20 long-range air force crew, including Tu-160 and Tu-95MS strategic missile carriers and Tu-22M3 bombers, have been redeployed at tactical airfields as part of the ongoing snap combat readiness check, the Russian defense ministry said. ""More than 20 long-range air force crews have been redeployed at tactical airfields,"" the ministry said. ""The crews have been redeployed from their home airfields in the Amur, Irkutsk, Saratov, Kaluga and Murmansk regions to tactical airfields within the snap combat readiness check of the Air Forces."" ""Pilots of Tu-160 and Tu-95MS strategic missile carriers, Tu-22M3 long-range bombers and Il-78 re-fueling aircraft performed long flights having covered a distance of several thousand kilometers. Now they are ready for performing designated tasks,"" the ministry said.", -824,2017/2/9,http://tass.com/society/929871,Investigators call to take measures to stop promotion of kids' suicides in social networks,"According to Bastrykin, of great danger now are the so-called games of survival organized by the masterminds of the internet groups of death","MOSCOW, February 9. /TASS/. Russia's Investigative Committee suggests measures be taken to rule out promotion of adolescent suicides in social networks, the Committee's Chairman, Alexander Bastrykin, said on Wednesday after a series of meetings with citizens. ""This problem does exist. And it cannot be ignored. When I spoke with people, I took a decision that a request be prepared to the country's leaders and chiefs relevant agencies to work out necessary measure to respond to this problem,"" he wrote on his Facebook account. According to Bastrykin, of great danger now are the so-called games of survival organized by the masterminds of the internet groups of death. ""Every day, officers of the Russian Investigative Committee's main scientific investigation directorate expose more and more communities seeking to kill the youth,"" he stressed. He said he had spoken with parents of children who committed suicides due to such ""�games.""?""It is woeful and painful to look in the eyes of people whose children opted to take a step to nowhere""?I admire their courage, that they have found will enough not merely to go on living but also to help others avert such tragedy,"" he said. Thus, in the Ryazan region, relatives of such children set up a public association Saving Children from Cybercrime. ""They came to me with useful proposals on amending the Russian Criminal Code's article on incitement to suicide and other initiatives on what is to be done by government agencies to save children's lives,"" Bastrykin noted. The Investigative Committee plans to hold a meeting on issues of preventing adolescent suicide in March 2017, he added.", -825,2017/2/9,http://tass.com/economy/929869,"Russia taking part in oil and gas forum in Cuba ""?agency","Currently, Cuba produces about four million tonnes of oil equivalent hydrocarbons as year, which are used for electricity generation","HAVANA, February 9. /TASS/. The Cuba Oil & Gas 2017 forum that opened in the Cuban capital city of Havana on Wednesday has brought together delegates from about 70 companies from 15 world nations, including Russia, China, Italy, France and the United Kingdom, Prensa Latina said. The two-day forum will center round investment possibilities of the local oil industry and prospecting projects, according to Paola Galanti, international business director at International Research Networks, a co-organizer of the forum along with Cuba's state oil company Cupet. Among advantages of investing in Cuba's oil sector, the Cuban side cites complete government support, big experience in working with foreign partners, availability of highly qualified personnel, vast prospecting areas both off the island's northern coast and in the exclusive economic zone in the Gulf of Mexico. Cuba's Deputy Minister of Energy and Mines Ruben Cid, who presented basic guidelines for the development of Cuba's energy sector, said that his country ""attaches significance to all energy sources and their rational use in the interests of energy independence."" Currently, Cuba produces about four million tonnes of oil equivalent hydrocarbons as year, which are used for electricity generation.", -826,2017/2/9,http://tass.com/defense/929868,Warships of Russia's naval task force to be welcomed home after Syria mission,"By tradition, the crews will be treated to roasted suckling pigs","SEVEROMORSK, February 9. /TASS/. A gala meet and greet ceremony for the crews of the Admiral Kuznetsov aircraft carrier and the Pyotr Veliky heavy nuclear-powered missile cruiser, which returned from an anti-terrorist mission in Syria on Wednesday, will be held in Severomorsk on Thursday, the Russian defense ministry said. Mission accomplished: Russian warships' long way back from Syria By tradition, the crews will be treated to roasted suckling pigs. ""The ceremony will be attended by top-ranking officers of the Russian Navy command, the Northern Fleet command, and representatives from the Murmansk region and Seceromorsk administrations,"" the ministry said. Currently, the Admiral Kuznetsov and the Pyotr Veliky are anchored in the roadstead in the Kola Bay near Severomorsk in northwest Russia. The two warships were part of the Northern Fleet's naval task force that performed anti-terror missions off Syria. The naval task force performed such a large-scale mission with the combat employment of naval aviation for the first time in the history of the Russian Navy. The warships set off for the voyage on October 15. Over their long-distance voyage, the Russian warships and support vessels covered about 18,000 nautical miles, passing through the north-eastern parts of the Atlantic Ocean and the Mediterranean Sea.", -827,2017/2/9,http://tass.com/world/929867,US Senators initiate legislation on congressional oversight of anti-Russian sanctions,The current anti-Russian sanctions were imposed by executive decrees of former President Barack Obama,"WASHINGTON, February 9. /TASS/. A group of US-Senators led by Republican Senator Lindsey Graham on Wednesday introduced a bill establishing congressional oversight of any decision on lifting the anti-Russian sanctions obviously seeking to bar President Donald Trump from doing it single-handedly. ""A bipartisan group of Senators today introduced legislation, The Russia Sanctions Review Act of 2017, which provides for congressional oversight of any decision to provide sanctions relief to the Government of the Russian Federation,"" the press service of another initiator of the bill, Democrat Senator Ben Cardin, told TASS. Other co-initiators are Republican Senators Marco Rubio and John McCain, and Democrat Senators Claire McCaskill and Sherrod Brown. ""If the US-were to provide sanctions relief to Russia without verifiable progress on the Minsk Agreements, we would lose all credibility in the eyes of our allies in Europe and around the world,"" Cardin said. He said the Act had been prompted by President Trump's statements about possible easing or even abandonment of the anti-Russian sanctions. The legislation envisages consultations with the Congress should the president decide to change the sanction policy. According to the explanatory note, the Act requires the administration to submit to the Congress a list of individuals subject to sanction relief and reassure it that Russia is no longer seeking to allegedly ""undermine the peace, security, stability, sovereignty, or territorial integrity of Ukraine"" and has ceased cyberattacks against the United State Washington is unsubstantially blaming Russia of. The Congress will have 120 days to consider the initiative. The current anti-Russian sanctions were imposed by executive decrees of former President Barack Obama and were not formalized in legislation. Hence, Trump can cancel them any time. The White House was unavailable for comment.", -828,2017/2/9,http://tass.com/world/929873,Fox News claims Iran tests another ballistic missile,"According to the TV channel, a middle-range missile was blasted off in late January","NEW YORK, February 9. /TASS/. Iran has launched a ballistic missile from a pad located east of Teheran, Fox News said on Wednesday citing Pentagon sources. According to the TV channel, a middle-range missile was blasted off in late January from the same launching pad. Fox News said back then the missile had covered a distance of about 600 kilometers. United Nations Security Council Resolution 2231 dated July 20, 2015 calls on Iran to refrain from such tests. A similar launch was made by Teheran in July 2016.", -829,2017/2/8,http://tass.com/world/929870,Criminal case over act of hooliganism targeting Polish consulate opened in W Ukraine,"Earlier on Wednesday, unknown people painted the slogans saying ""This is our land""?on the fence of the Polish Consulate General and hurled bottles with red paint at the building","KIEV, February 9. /TASS/. Ukrainian law enforcement agencies have opened a criminal case over Wednesday's act of hooliganism in front of the Polish Consulate General in Lvov, a western Ukrainian city notorious for the wide spread of rightwing nationalistic sentiments there. ""Law enforcers are seeking to identify the malefactor who left graffiti on the fence of the Polish Consulate in Lvov,"" the report said. ""A case citing hooliganism has been opened."" Earlier on Wednesday, unknown people painted the slogans saying ""This is our land""?on the fence of the Polish Consulate General and hurled bottles with red paint at the building. The Ukrainian Foreign Ministry perceived the covert workings of a mysterious third force in the act. ""The Ministry of Foreign Affairs of Ukraine condemns resolutely the act of vandalism against the Polish Consulate General in Lvov committed on February 8,"" it said in a commentary. ""The systemic character, with which malefactors commit the acts of vandalism and outrage, testifies to the interestedness of a third party in dealing a blow to Ukrainian-Polish relations."" Wednesday's incident followed another two acts of vandalism committed last month. On January 25, 2017, unknown criminals outraged on the Ukrainian and Polish memorials to victims of Stalin's NKVD security service in Bykovna near Kiev. On January 10, a similar incident took place in Guta Peniatska, Lvov region, where ""Gooligans""?demolished a monument the Poles who died at the Nazis""?hands in 1944. Poland sent notes of protest to the Ukrainian Foreign Ministry in both cases. Polish politicians issued appeals to Ukrainian Pyotr Poroshenko more than once. Polish President Andrzej Duda asked him to amend a law passed in April 2015, which declared two notorious groupings of the World War II era, the Organization of Ukrainian Nationalists (OUN) and the Ukrainian Insurgent Army, known historically under its Ukrainian acronym as UPA, to be the organizations that fought for Ukraine's independence and hence were entitled to honors. Jaroslaw Kaczynski, the leader of Poland's ruling Prawo i Sprawiedliwosc (PiS) party said on Tuesday the glorification of the wartime leader of Ukrainian radical nationalism Stepan Bandera might impede the integration of Ukraine in the EU. Bandera not only served a term in a Polish jail before the war for assassinating Polish Interior Minister Bronislaw Pieracki in June 1934. He stood at the head of the OUN that is broadly believed to bear the brunt of responsibility for mass exterminations of ethnic Poles in the Volhynia region of what is northwestern Ukraine today in 1943 and 1944. The Polish side puts the number of victims of Volhynia massacres at more than 100,000 people and says more than 500,000 local residents of Polish descent were compelled to flee the area. The so-called Ukrainian Institute of National Memory says 34 geographic objects that were among the 51,500 objects to undergo renaming as part of the nationwide ""decommunization""?campaign bear Bandera's name now. The campaign started off with the signing of Poroshenko's decree on ""decommunization""?of Ukrainian society and on public access to the archival documents of the agencies that conducted repressions during ""The Communist totalitarian regime""?from 1917 through to 1991. The law condemns the Communist regime, prohibits the public display of Soviet emblems, opens the archives of Soviet-era security services, and proclaimed the OUN, the UPA and other such groupings to be fighters for independence. One of the provisions of the highly controversial law says the citizens of Ukraine and foreigners who demonstrate publicly disrespect for those who ""Fought for freedom and independence""?will stand prosecution. Poroshenko has more than once cites the UPA as an instance of heroism and love for Ukraine, saying the posterity of its militants were defending Ukraine nowadays. He even went as far as posturing in a uniform with a ""�Cynical Bandera""?chevron. Simultaneously, the Ukrainian authorities prohibited the Soviet Banner of Victory and the notion of the Great Patriotic War, which denotes across the former USSR the battles on the Eastern Front of World War II from June 1941 through to May 1945. The latter bans look particularly weird on the background of data from the aforesaid Institute of National Memory suggesting that the number of Ukrainians, who fought on the side of the Red Army during the war, reached 6 million while the number of UPA militants was around 100,000.", -830,2017/2/8,http://tass.com/politics/929864,Crimean Tatars call on UN GA to recognize Crimea as part of Russia,"Crimean Tatars are convinced that ""international law does not establish any prohibitory rules on matters of secession""","THE UNITED NATIONS, February 8. /TASS/. Russia has handed to the United Nations an appeal of the Crimean Tatar civil movement Kyrym, which requests to recognize the Black Sea peninsula's accession to Russia as compliant with norms of international law, to condemn Crimea's blockade and to help lift anti-Russian sanctions imposed by Western countries. The appeal was attached to a letter sent to President of the 71st session of the UN General Assembly Peter Thomson by Russia's Permanent Representative to the UN Vitaly Churkin. The letter was posted on the UN website on Wednesday. The appeal, approved by Kyrym movement in Simferopol on 10 December 2016, says that "" <...> violent coup d'etat in Ukraine,"" in 2014 ""which involved arson, the storming of administrative buildings and aggression against law enforcement forces resulting in numerous fatalities and considerable injuries, was a grave development that endangered the life, liberty and security of the people of Crimea."" In the wake of those developments, Crimea's authorities ""chose the only valid course of action: to create the independent sovereign State of the Republic of Crimea, to hold a referendum on 16 March 2014 and, based on the outcome thereof, to join Russia and, consequently, leave Ukraine. There is absolutely no doubt about the genuineness of the will expressed by the large majority of the population of Crimea in the referendum, which averted serious consequences for security, peace and stability in Europe."" Crimean Tatars are convinced that ""international law does not establish any prohibitory rules on matters of secession,"" and reminded that this notion should not be replaced with the word annexation (forcible transition of one state's land by another state). Kyrym called on the UN General Assembly to admit that the declaration of independence of the Republic of Crimea and its free association with the Russian Federation are not incompatible with the norms of international law,"" to condemn ""the policy of economic, trade and financial blockading of the Russian Federation, the Republic of Crimea and the city of Sevastopol"" and to lift ""the political and economic sanctions"" imposed on them. The Republic of Crimea and Sevastopol, a city with a special status on the Crimean Peninsula, where most residents are Russians, refused to recognize the legitimacy of Kiev authorities brought to power amid riots during a coup in Ukraine in February 2014. Crimea and Sevastopol adopted declarations of independence on March 11, 2014. They held a referendum on March 16, 2014, in which 96.77% of Crimeans and 95.6% of Sevastopol voters chose to secede from Ukraine and join Russia. Referendum in Crimea On 27 March 2014, the United Nations General Assembly adopted a Ukraine-drafted resolution that branded the referendum as illegitimate and urged countries and international organizations not to recognize Crimea part of Russia. On 15 November 2016, the General Assembly voted for another Ukraine-drafted resolution, which condemned alleged human rights violations in Crimea. The four-page document condemned the infringement of human rights as well as the use of discriminatory measures against the inhabitants of Crimea, including Crimean Tatars, Ukrainians and representatives of other ethnic groups and religious confessions. Meanwhile, the Crimean Tatars""?Kyrym movement said that-""in all the years since independence was achieved in Ukraine, not one single piece of legislation was adopted to restore the political, economic, social and cultural rights of the Crimean Tatar people. This encouraged the authorities to commit arbitrary acts and violence against Crimean Tatar returnees and to disregard their rights to political, religious and socioeconomic development.""", -831,2017/2/8,http://tass.com/society/929862,"Putin has tour of exhibition from Vatican Pinacoteca, display of Byzantine masterpieces","He began the tour of the Vatican display with a rare 12th century work of the Roman school, ""The Redeemer Conferring a Blessing""?that had never left the walls of the Holy See previously","MOSCOW, February 8. /TASS/. Russian President Vladimir Putin visited Moscow's famous Tretyakov Arts Gallery on Wednesday night where he had a tour of two exhibitions underway there - ""�Roma. Aeterna. The Masterpieces of the Vatican's Pinacoteca""?and ""The Masterpieces of Byzantine""? He began the tour of the Vatican display with a rare 12th century work of the Roman school, ""The Redeemer Conferring a Blessing""?that had never left the walls of the Holy See previously. The next work he stopped by was ""The St Francis of Assisi"" painted by Margaritone d""�Arezzo in the 13th century. Tretyakov Gallery workers said the painting is featured in all textbooks on the history of arts and it represents the earliest known portrait of the saint who played a crucial role in the rise the Western Church. Putin was also shown the works of masters of the Gothic style, whose paintings are extremely rare in Russian museum collections. The exhibition ""�Roma. Aeterna. The Masterpieces of the Vatican's Pinacoteca. Bellini, Rafael, Caravaggio""?represents a unique project as the Vatican Museums are showing the best part of their collection of 12th to the 18th centuries in Russia for the first time ever. The forty-two canvasses by Giovanni Bellini, Melozzo da Forli, Perugino, Rafael, Caravaggio, Guido Reni, Guercino, Nicolas Poussin come across as real treats to the visitors. A preliminary agreement on preparing the exhibition was reached in the course of President Vladimir Putin's meeting with Pope Francis I in Vatican City in June 2015. The President also had a tour of the ""masterpieces of Byzantine""?display.", -832,2017/2/8,http://tass.com/politics/929860,"Number of countries assign armed guards to Russian ambassadors ""?official","""after the murder of Russian ambassador Andrei Karlov in Turkey, Moscow took a whole set of measures for ensuring the security of overseas organizations","MOSCOW, February 8. /TASS/. A number of countries have assigned personal armed guards to Russian ambassadors, Russian first deputy foreign minister Vladimir Titov said in an interview with Rossiyskaya Gazeta daily. ""After the mean murder of our colleague (ambassador) Andrei Karlov in Turkey, we took a whole set of measures, which President Vladimir Putin requested for ensuring the security of our overseas organizations and their staff members,"" Titov said. ""We're pressing the authorities of the countries were our diplomats are accredited to ensure all the steps essential for the security of our overseas organizations and their staff members, proceeding from the fact that appropriate provisions are found in the 1961 and 1963 Vienna Conventions on diplomatic and consular relations."" ""A big number of countries assigned armed guards to the heads of our diplomatic missions there,"" he said. The round-the-clock service of building superintendants is the cornerstone element of physical protection of the ambassadorial and consular compounds, as most of its workers are former soldiers of border-guard forces who have taken courses of specialized training. ""To guard the ambassadors and other diplomatic staff we use Russian special assignment units, too,"" Titov said. ""Teams of this kind work mostly in the countries with high risks of terrorist attacks quite naturally, upon consent from the authorities of those countries."" Besides, many Russian missions in foreign countries hire local private security firms, he said.", -833,2017/2/8,http://tass.com/politics/929854,Russian senior diplomat discusses preparations for Geneva talks with Syria's ambassador,The diplomats spoke about preparations for the start of inclusive intra-Syrian talks due to be held in Geneva on February 20,"MOSCOW, February 8. /TASS/. Russian Presidential Special Representative for the Middle East and Africa, Deputy Foreign Minister Mikhail Bogdanov held talks with Syria's Ambassador in Moscow Riyad Haddad on Wednesday, discussing preparations for the intra-Syrian talks in Geneva, the Russian Foreign Ministry said after the meeting held at Haddad's request. ""There was an exchange of views on development of the situation in Syria and around it, in particular in the context of the first meeting of the Joint Operative Group, set up to ensure the cessation of hostilities, held on February 6. The decision to set it up was taken following the International Conference on Syria Settlement held in Kazakhstan's capital on January 23-24,"" the foreign ministry said. Besides, the senior diplomats spoke about ""preparations for the start of inclusive intra-Syrian talks due to be held in Geneva on February 20."" ""Much of the attention was focused on finding a solution to the Syria crisis, including in the context of results of the international meeting on Syria held in Astana on January 23-24 and the start of the inclusive intra-Syrian dialogue scheduled for February 20 in Geneva under the UN auspices, in line with UN Security Council's Resolution 2254,"" it said.", -834,2017/2/8,http://tass.com/economy/929857,"Bilateral agreements can double turnover between Slovenia and Russia ""?president","Last year, the trade volume between Slovenia and Russia was about 800 mln euro","LJUBLJANA, February 8. /TASS/. Bilateral economic agreements prepared for signing can double the trade turnover between Slovenia and Russia, President of Slovenia Borut Pahor told TASS in an interview on Wednesday. ""Russia is the tenth most important economic partner for Russia,"" Pahor said. ""The economic crisis and anti-Russian sanctions significantly reduced volumes of our trade turnover,"" he added. The impact was particularly strong last year, when the trade volume between Slovenia and Russia was about 800 mln euro, the President of Slovenia said. ""Bilateral agreements prepared by us - in case they are signed during the visit - will boost the trade turnover between Slovenia and Russia twofold,"" Pahor said. ""Furthermore, this will be in absolutely different spheres, where we have common interests that I regard as highly positive,"" he added. The President of Slovenia will visit Moscow with an official visit on February 10. Eleven bilateral contracts are planned for signing in agriculture, telecommunications, technology exchange and energy with the total amount over 1 bln euro.", -835,2017/2/8,http://tass.com/economy/929856,"Russian, Georgian diplomats discuss prospects for two countries""?bilateral trade",The sides noted progress in the context of air and overland haulage and a considerable increase in the number of Russian tourists,"TBILISI, February 8. /TASS/. Russian Deputy Foreign Minister Grigory Karasin and Georgian Prime Minister's Special Envoy for Relations with Russia Zurab Abashidze focused on prospects for trade and economic cooperation between the two countries at a next round of talks held in Prague on Tuesday, the Georgian government said in a statement published on Wednesday. ""The sides summed up the results of trade and economic relations between Georgia and Russia in 2016 and viewed prospects for their development in 2017,"" the statement said. ""At the meeting, Abashidze and Karasin pointed out that since the start of the Georgian-Russian dialog in 2013 the goods $850 mln worth have been exported from Georgia to the Russian market."" They also noted ""progress in the context of air and overland haulage and a considerable increase in the number of Russian tourists."" The government pointed out that ""at Russia's request work has been underway to ease visa restrictions for Georgian citizens travelling into Russia.""", -836,2017/2/8,http://tass.com/politics/929855,"Russian, US representatives discuss actions under memorandum on safe flights in Syria","In 2015, Russian and US officials signed a memorandum on the safety of flights over Syria to prevent incidents in the air between the Russian air force grouping and the international coalition","MOSCOW, February 8. /TASS/. High-level Russian-U.S. workgroup held a videoconference on Wednesday to discuss the implementation of the memorandum on mutual understanding in prevention of incidents and assuring security of flights during aerial combat operations in Syria, the Russian Defense Ministry said. ""In line with the accords reached on February 8, the Russian-U.S., high-level workgroup in charge of implementation of the memorandum on prevention of incidents in Syrian airspace had a videoconference on Wednesday,"" a report said. ""In the course of it, the Russian and American sides exchanged assessments of how they were implementing the accords."" During the conference, the sides also analyzed separate elements of collaboration that helped untangle the situations fraught with conflicts. ""They stated the absence of any serious incidents between the Russian Aerospace Force and the Air Force units of the U.S.-led coalition in Syria, as well as the efficiency and reliability of the functional telecommunications channels,"" the ministry said. ""Contacts regarding the implementation of the memorandum will continue,"" it said. In 2015, Russian and U.S. officials signed a memorandum on the safety of flights over Syria. It is called upon to possible prevent incidents in the air between the Russian air force grouping and the international coalition.", -837,2017/2/8,http://tass.com/politics/929848,Deputy minister: Moscow will work with new US Administration over diplomatic properties,"""Since the US leadership's decision had an explicitly political nature, we'll try to settle the situation in a dialogue with new authorities,"" the deputy minister says","MOSCOW, February 8. /TASS/. Moscow will make efforts to settle the problem around the expropriation of Russian diplomatic properties in the U.S. with President Donald Trump's Administration, Deputy Foreign Minister Vladimir Titov said on Wednesday in an interview with Rossiyskaya Gazeta daily. ""In addition to the expulsion of our diplomats from the U.S., the American authorities who were going out of their way to do Russia as much harm as possible blocked access for Russian representatives to the facilities, which belong to the embassy in Washington and the Russian mission to the UN in New York since the Soviet era,"" he said. ""Since the U.S. leadership's decision had an explicitly political nature, we'll try to settle the situation in a dialogue with new authorities,"" Titov said.", -838,2017/2/8,http://tass.com/sport/929846,Russian sports chief praises results of national team at 2017 Winter Universiade in Almaty,"The Russian national team completed the 2017 FISU Universiade with impressive medals record, having won a total of 71 medals","MOSCOW, February 8. /TASS/. The 2017 Winter Universiade in Kazakhstan's Almaty proved that the Russian young athletes can be viewed as a decent reserve for future competitions, Russian Sports Minister Pavel Kolobkov told TASS on Wednesday. ""This was a good result and we are very happy, although we encountered this time a decent competition on behalf of the teams from Kazakhstan and South Korea,"" Kolobkov said in an interview with TASS. ""As far as I know, the tournament was held in a friendly atmosphere and the organization was at the very highest level,"" the Russian sports minister said. ""It was important that our team achieved this result in a very tight competition."" The Russian national team completed the 2017 FISU Universiade with impressive medals record, having won a total of 71 medals (29 gold, 27 silver and 15 bronze medals). Russia's closest contender in the second place is hosts Kazakhstan, who packed a total of 36 medals (11 gold, eight silver, 17 bronze). The next Winter Universiade is scheduled to be held in Russia's Krasnoyarsk in 2019. Krasnoyarsk, which has a population of over one million, was elected to host the 2019 Winter Universiade at the session of the FISU Executive Committee in Brussels in 2013. The event is scheduled for March 2-12, 2019. The Winter Universiade is an international sporting and cultural festival which is staged every two years in a different city. The name of the international sports event is a combination of two words, which are ""university""?and ""�Olympiad.""?It is only second to the Olympic Games. The program of the Winter Universiade currently includes 6 compulsory sports (8 compulsory disciplines) and up to 3 optional sports chosen by the host country.", -839,2017/2/8,http://tass.com/sport/929839,Russian Biathlon Union against giving up its right for hosting 2021 World Championship,The Russian Biathlon Union is ready to appeal the decision of the International Biathlon Union,"HOCHFILZEN, February 8. /TASS/. The Russian Biathlon Union (RBU) will not give up voluntarily its right for hosting the 2021 World Championship in Tyumen and is ready to appeal the decision of the International Biathlon Union (IBU), RBU President Alexander Kravtsov told TASS on Wednesday. ""Based on the decision of the Executive Committee, the IBU is set to send the Russian Biathlon Union (RBU) an official letter informing it that considering the non-compliance of Russia with the Code of the World Anti-Doping Agency (WADA), it is necessary to refuse the right of holding the world championship,"" Maigurov said in an interview with TASS. ""The RBU must respond to this letter before February 24,"" he said. ""In case the RBU refuses to give up the championship, the IBU will resort to unilateral actions."" ""We are absolutely against giving up voluntarily the world championship,"" Kravtsov said in an interview with TASS adding that they would go to court in case the decision to relocate the international event was made. ""We will think about filing a lawsuit,"" Kravtsov said. ""It will be probably not only about the Court of Arbitration in Lausanne."" Maigurov also said that in case Russia was deprived of the right to host the 2021 World Championship, the new venue would be decided at the IBU Congress in 2018. Following the secret ballot by the IBU members during the closing day of the organization's Congress, held last September in the Moldovan capital of Chisinau, the Russian West Siberian city of Tyumen was chosen to host the global biathlon tournament in four years. According to Part Two of the WADA Independent Commission report, delivered in early December in London by the commission's chairman, Canadian sports law professor Richard McLaren, more than 1,000 Russian athletes competing in summer, winter and Paralympic sports could have been involved in an alleged manipulation scheme to conceal positive doping tests. Part Two of McLaren's report claimed in particular that doping samples of 12 Russian medalists of 2014 Winter Games in Sochi had been tampered with. In addition, doping tests of two more Russian athletes, who won four gold medals of the 2014 Sochi Olympics, had been falsified as well.", -840,2017/2/8,http://tass.com/world/929831,"Estonian intelligence service says armed conflict between NATO, Russia unlikely","A report says ""Russia is unlikely to attack NATO in 2017""","TALLINN, February 8. /TASS/. Estonia's Information Board, an intelligence service under the country's Defense Ministry, believes that Russia is unlikely to attack NATO countries, head of the Board Mikk Marran said while presenting a report dubbed ""Estonia in the international security environment in 2017."" ""We say clearly that Russia is unlikely to attack NATO in 2017. It is not a zero possibility but it is quite low,"" he noted. The report is almost completely dedicated to Russia. It particularly says that Russia is the only state capable of threatening Estonia's independence and territorial integrity. According to Marran, Russia has been carrying out an information campaign against the West which is affecting the Baltic state. ""This is not just propaganda but a combination of various methods aimed at raising tensions in society and damaging the credibility of the western countries, including Estonia,"" the head of the intelligence service said. In 2016, Estonia's Information Board published a report for the first time in more than 20 years, assessing challenges the countries had been facing. The report claimed that Russia possibly was ""the only power which could threaten Estonia's constitutional order in the near future."".", -841,2017/2/8,http://tass.com/politics/929828,Lavrov says experience of alliance gained during WWII helpful in war on terror,"Although the anti-Hitler coalition members all had their own interests, they succeeded in pooling their efforts in order to defeat the inhuman ideology of fascism, Russian top diplomat said","MOSCOW, February 8. /TASS/. The experience the allied countries gained during World War II could be highly helpful in the war on terror, Russian Foreign Minister Sergey Lavrov said addressing the launch of the 26th volume of the foreign ministry's Soviet Documents on Foreign Policy series, referring to 1943. ""The launch ceremony is taking place ahead of the Russian Diplomat's Day, which has a symbolic meaning,"" the minister said. ""This would make a perfect gift. The series are very important as these documents prove the diversity of our country's foreign policy."" ""The year 1943 marked a change in the course of the Great Patriotic War and World War II in general. That year, the battle of Stalingrad was won, the siege of Leningrad was broken, the fascist troops faced an overwhelming defeat in the battle of Kursk. All of this had a deep impact on the military and political situation,"" the Russian top diplomat noted. ""Although the anti-Hitler coalition members all had their own interests, -they succeeded in leaving tensions and disagreements behind and pooling their efforts in order to defeat the inhuman ideology of fascism,"" Lavrov said. ""Today, when the world community is facing the threats of terrorism and extremism, the experience that the allied countries gained during World War II could help us achieve our common goals."" The new volume of the Soviet Documents on Foreign Policy series contains documents reflecting the radical turn in the course of the World War II. They tell about the Soviet diplomats""?activities aimed at strengthening the anti-Hitler coalition and boosting cooperation with the allied countries. The volume also includes correspondence between heads of state and foreign ministers as well as some secret messages declassified for the first time.", -842,2017/2/8,http://tass.com/politics/929829,"Russia, EU to hold next round of anti-terror talks in Brussels",The Russian side has confirmed the need to unite the world community's efforts in the fight against a global threat of terrorism,"MOSCOW, February 8. /TASS/. Russia and the European Union will hold a next round of anti-terrorism talks in Brussels, the Russian Foreign Ministry said on Wednesday after talks between the delegations headed by Russian Deputy Foreign Minister Oleg Syromolotov and EU Deputy Secretary General at the EEAS Pedro Serrano. At the current round of talks, the sides ""exchanged detailed assessments of the state of global and regional terrorist threats and expertise in counteracting terrorism within both Russia and the EU."" ""Along with this, special attention has been drawn to the goals of suppressing activity of ""Foreign terrorist fighters""? of combating against the spread of terrorist and extremist ideology and against radicalization (including via the Internet networks), of counteracting the financing of terrorism and of ensuring anti-terror security of civil aviation,"" the ministry said. The two diplomats ""considered possibilities for expanding counter-terrorism cooperation in multilateral formats, primarily at the UN,"" it said. ""The Russian side has confirmed the need to unite the world community's efforts in the fight against a global threat of terrorism on the basis on international law, the UN Charter and UN Security Council's profile resolutions. An agreement has been achieved to hold a next round of talks in Brussels."".", -843,2017/2/8,http://tass.com/sport/929827,IBU to offer Russia to give up right of hosting 2021 Biathlon World Championship,"The IBU proposes Russia to voluntarily give up its right for hosting the 2021 IBU World Championship, warning that it will otherwise unilaterally strip the country of the international event","HOCHFILZEN, February 8. /TASS/. The International Biathlon Union (IBU) proposes Russia to voluntarily give up its right for hosting the 2021 IBU World Championship, warning that it will otherwise unilaterally strip the country of the international event, IBU Vice President Viktor Maigurov told TASS on Wednesday. ""Based on the decision of the Executive Committee, the IBU is set to send the Russian Biathlon Union (RBU) an official letter informing it that considering the non-compliance of Russia with the Code of the World Anti-Doping Agency (WADA), it is necessary to refuse the right of holding the world championship,"" Maigurov said in an interview with TASS. ""The RBU must respond to this letter before February 24,"" he said. ""In case the RBU refuses to give up the championship, the IBU will resort to unilateral actions."".", -844,2017/2/8,http://tass.com/economy/929826,"Oil price volatility enables Russia to expand exports to China ""?ambassador","The ambassador noted that the trade turnover between Russia and China exceeded $69 bln in 2016, a 2.2% increase compared with 2015","BEIJING, February 8. /TASS/. The volatility in oil prices and the weakening of the Russian national currency have enabled Russia to expand its exports to the People's Republic of China and diversify them, Russia's Ambassador Extraordinary and Plenipotentiary to China Andrei Denisov said. ""The (oil - TASS) price plunge and the ruble's devaluation opened up new potential for our goods on the Chinese market. We (Russia) found ourselves able to meet competition on a whole range of items even compared with Chinese goods,"" he said, adding that the annual growth of Russian supplies of machinery and equipment to Chine surged 35%. According to the ambassador, Russia has ""retained its niches on the Chinese market, expanded them, found new ones and is well-placed for a sustained trade expansion via big contracts and investment cooperation, despite the recent disturbance on the currency market and falling prices."" Denisov said that the mutual trade turnover between Russia and China exceeded $69 bln in 2016, a 2.2% increase compared with 2015, which is ""not that much, but is still something bigger than a statistical discrepancy"" and should be used as a basis for going ahead.", -845,2017/2/8,http://tass.com/defense/929821,Russia's General Staff chief checks Moscow air defense readiness to repel enemy strikes,"The check involves about 45,000 troops and around 1,700 pieces of military hardware, including 150 aircraft and 200 antiaircraft missile systems","MOSCOW, February 8. /TASS/. Chief of the Russian General Staff Army General Valery Gerasimov has checked the preparedness of the Aerospace Force control center and the united air defense and anti-ballistic missile defense command post to operate amid possible air strikes from various directions. ""Officers of the General Staff of the Russian Armed Forces have checked the issues of the joint control of the grouping of antiaircraft missile forces and aviation in providing cover for facilities and protecting the airspace when repelling strikes from various directions,"" the Defense Ministry said in a statement obtained by TASS. The chief of Russia's General Staff arrived at the Aerospace Force control center and at the command post as part of the Aerospace Force's snap combat readiness check. Gerasimov also heard a report by Aerospace Force Commander-in-Chief Colonel-General Viktor Bondarev on the fulfilment of assignments by the Moscow united air defense and ABM formation, the statement said. The Russian Aerospace Force's sudden combat readiness check is being held on February 7-9 by decision of Russian President and Supreme Commander-in-Chief Vladimir Putin. Overall, the check involves about 45,000 troops and around 1,700 pieces of military hardware, including 150 aircraft and 200 antiaircraft missile systems. ", -846,2017/2/8,http://tass.com/economy/929820,"Putin, Volkswagen Group CEO discuss company's prospects in Russia",Putin noted that about 10% of Volkswagen's products that are made in Russia are sold outside the country,"MOSCOW, February 8. /TASS/. President Vladimir Putin has discussed with CEO of Volkswagen Group Matthias Muller the prospects of the company's operation in Russia. The meeting took place in Kremlin on Wednesday. ""We are happy that your business is doing well in general, although we understand that there are certain difficulties with the implementation. That is why we are always ready to discuss the current issues to help you continue to grow on our market,"" Putin told Muller. He recalled that the history of Russia's relations with Volkswagen began in 1993. ""Now, the volume of investments and sales is quite considerable - 11% of car sales on our market,"" Putin said. The President added that about 10% of Volkswagen's products that are made in Russia are sold outside the country. ""Volkswagen also enjoys benefits the Russian government offers and these benefits also provide for a considerable amount of sales,"" Putin said. In his turn, Muller noted that the volume of the company's investments amounts to more than 1.85 bln euros. ""We are happy with our cooperation, we are pleased to have an opportunity to communicate today, to discuss the development of the automotive industry in Russia, the overall industrial development in the Russian Federation. We are also pleased to provide our support to the Russian party in order to jointly and successfully develop our relations,"" Muller said.", -847,2017/2/8,http://tass.com/economy/929805,Yamal's nomadic school project presented at Arctic Council meeting in US,The Nomadic School project works since 2011 and includes 17 kindergartens and five schools,"YEKATERINBURG, February 8. /TASS/. The experience of a ""nomadic school"" in the Yamal-Nenets Autonomous District will be presented at a meeting of the Arctic's sustainable development working group in the U.S. Kotzebue (Alaska) on February 7-8, the governor's press service said on Wednesday. ""The event features representatives of eight countries - members of the Arctic Council and six organizations of the Arctic indigenous peoples,"" the press service said. ""Our representative, Alexander Yevai will present the regional project of a ��nomadic school""?for indigenous children in the North."" The Nomadic School project works since 2011 - it is a primary school project. Presently, 22 educational organizations are providing services in Yamal: 17 kindergartens and five schools. 32 teachers are educating more than 250 children - they follow families of reindeer herders as they wander the tundra. Besides regular subjects, children at nomadic schools study local crafts and skills of living in a chum. The Arctic Council was instituted in 1996 in line with the Ottawa Declaration. It is a high-level intergovernmental forum facilitating cooperation in the region, particularly in the sphere of environment conservation. Its current member-states are Canada, Denmark (including Greenland and Faroe Isles), Finland, Iceland, Norway, Russia, Sweden, and the U.S. The U.S. accepted a two-year term of rotating presidency in the organization in 2015 and Finland is to take it over in May 2017.", -848,2017/2/8,http://tass.com/politics/929809,Navalny still determined to run for president despite being convicted in fraud case,"On Wednesday, Kirov's Leninsky District Court gave Navalny a suspended five-year prison sentence for embezzling the Kirovles company's funds","KIROV, February 8. /TASS/. Alexei Navalny has stated that his being convicted in the Kirovles case would not create legal obstacles preventing him from running in the Russian presidential election. ""Russia's Constitution says that those kept in the places of detention are not eligible to run in elections. However, according to the verdict, I will not be sent to prison, which means that I have a right to stand for election,"" he said. Navalny also said he will ask the Constitutional Court to reconsider the legal rule that prohibits him from contesting the Russian presidency as long as his suspended prison term remains effective. ""We will be lodging complaints with all courts, including the Constitutional Court. We will protest the legal rule our opponents refer to because it is unconstitutional,"" he said. On Wednesday, Kirov's Leninsky District Court gave Navalny a suspended five-year prison sentence for embezzling the Kirovles company's funds. In addition, he was sentenced to a fine of 500,000 rubles (roughly $8,400).", -849,2017/2/8,http://tass.com/sport/929808,2017 Winter Universiade officially closes in Kazakhstan's Almaty,The next Winter Universiade is scheduled to be held in Russia's Krasnoyarsk in 2019,"ALMATY, February 8. /TASS/. The 2017 Winter Universiade has been officially declared as closed in Kazakhstan's Almaty on Wednesday following more than two weeks of tense competitions between young and promising athletes from around the globe. Speaking at the official closing ceremony of the 2017 Winter Universiade, FISU (the International University Sports Federation) President Oleg Matytsin thanked the organizers of the event in Kazakhstan for the outstanding reception of all participants and the high-level organization of the international tournament. The next Winter Universiade is scheduled to be held in Russia's Krasnoyarsk in 2019. Krasnoyarsk, which has a population of over one million, was elected to host the 2019 Winter Universiade at the session of the FISU Executive Committee in Brussels in 2013. The event is scheduled for March 2-12, 2019. The Russian national team completed the 2017 FISU Universiade with impressive medals record, having won a total of 71 medals (29 gold, 27 silver and 15 bronze medals). Russia's closest contender in the second place is hosts Kazakhstan, who packed a total of 36 medals (11 gold, eight silver, 17 bronze). The Winter Universiade is an international sporting and cultural festival which is staged every two years in a different city. The name of the international sports event is a combination of two words, which are ""university""?and ""�Olympiad.""?It is only second to the Olympic Games. The program of the Winter Universiade currently includes 6 compulsory sports (8 compulsory disciplines) and up to 3 optional sports chosen by the host country.", -850,2017/2/8,http://tass.com/economy/929799,Russia and Iran to sign agreement on visa-free travel for tourist groups,The agreement will be signed during the visit of Iranian President Hassan Rouhani to Moscow in March,"MOSCOW, February 8. /TASS/. Russia and Iran will sign an agreement on visa-free travel for tourist groups, Russian Ambassador to Iran Levan Dzhagaryan said in an interview with TASS. The agreement will be signed during the visit of Iranian President Hassan Rouhani to Moscow in March, he said. According to Dzhagaryan, the agreement provides for visa-free trips for citizens of the two countries as part of tour groups (from 5 to 50 people). ""We believe this agreement is particularly important because it will significantly increase the flow of tourists both from Iran to Russia, and vice versa,"" the ambassador said. During the coming visit of President Rouhani to Moscow the parties will discuss the main aspects of bilateral relations in political and trade-economic areas, the ambassador said. ""Interaction on most pressing regional issues, such as the situation in Syria and Afghanistan, the Caspian issues, the Karabakh conflict will also be in focus of the talks,"" the diplomat said.", -851,2017/2/8,http://tass.com/defense/929725,Mission accomplished: Russian warships' long way back from Syria,Warships of Russia's naval task force returned home after Syrian mission,"The heavy nuclear-powered missile cruiser Pyotr Veliky returned to Russia from the Mediterranean Sea.- From November 8, 2016, the Northern Fleet's naval task force comprising the heavy aircraft carrier Admiral Kuznetsov, the heavy nuclear-powered missile cruiser Pyotr Veliky and large anti-submarine warfare ships Severomorsk and Vice-Admiral Kulakov, and also warships of the Black Sea Fleet, support vessels and over 40 deck-based aircraft performed anti-terrorist missions in Syria.-For the first time in the history of the Russian Navy, the deck-based aircraft were accomplishing combat missions with the delivery of air strikes against ground facilities after taking off from the aircraft carrier.-The strikes were delivered against the militants""?headquarters and command posts, the amassment of militants and their military hardware, terrorists""?firing positions and strongholds.-Over the two months of their combat mission in Syria, the pilots of shipborne aviation made 420 sorties, including 117 at night, and also 750 flights for search and rescue operations and aircraft transport provision.-", -852,2017/2/8,http://tass.com/society/929797,Keanu Reeves may star in Russian movie based on Swedish writer's novel,The film's release is scheduled for 2019,"MOSCOW, February 8. /TASS/. The Russian Film Group company is holding negotiations with Hollywood star Keanu Reeves on his possible role in a film based on ""Pippi Longstocking"", a popular children's book by the Swedish author Astrid Lindgren, its producer said on Wednesday. ""We want to engage Keanu Reeves with the role of Pippi's father and are currently holding negotiations,"" Alexei Petrukhin said. Roman Kartushin who wrote the screenplay said it's time for Harry Potter ""to hand over his wand to Pippi."" ""This will be an epic film for children who will grow up and learn together with the main character,"" he said. The film's release is scheduled for 2019.", -853,2017/2/8,http://tass.com/economy/929791,"Russia, Iran plan to sign agreement on visa-free travel for tourist groups","According to an envoy, the number of Russian tourists who travelled to Iran increased 13.5% in 2016","MOSCOW, February 8. /TASS/. The agreement on visa-free travel for Russian and Iranian citizens within tourist groups will be signed during the visit of Iran's President Hassan Rouhani to Moscow scheduled for March 2017, Russia's Ambassador to Iran Levan Dzhagaryan told TASS. The sides are expected to discuss the main issues related to bilateral relations in the political as well as trade and economic areas during the upcoming visit, he said. ""Moreover, the cooperation regarding most pressing issues on the regional agenda, such as the situation in Syria and Afghanistan, the Caspian problem, the Karabakh conflict will obviously be touched upon,"" he added. According to Dzhagaryan, ""the signing of a number of agreements is planned within the visit and the sides are making up the list of those documents now."" ""The agreement on vise-free travel for citizens of the two countries within tourist groups (from 5 to 50 people) is the most noteworthy,"" the ambassador said, adding that ""this agreement will trigger the growth of tourist flow"" between the states. However, Dzhagaryan added, Russia and Iran are not negotiating total cancellation of visa scheme. ""No talks on total cancellation of the visa scheme is underway so far,"" he said. According to the envoy, the number of Russian tourists who travelled to Iran increased 13.5% in 2016. ""The number of Russian tourists (visiting Iran) in 2016 went up 13.5%, while the number of Iranians who visited Russia on tourist visas amounted to around 63,000 people, an almost 100% increase compared with 2015,"" he told TASS.", -854,2017/2/8,http://tass.com/press-releases/929816,TraceLink Announces NEXUS 17 in Barcelona,,"NORTH READING, Mass., Feb. 8, 2017 /PRNewswire/. TraceLink Inc., the World's Largest Track and Trace Network for connecting the life sciences supply chain and eliminating counterfeit prescription drugs from the global marketplace, today announced NEXUS 17, the industry's only global forum that annually gathers business leaders and pharmaceutical professionals dedicated to shaping the future of track and trace and serialization for life sciences. The two-day event will be held this year on June 7 - 8 at the Crowne Plaza Barcelona Fira Center. Registration for the conference is now open, with early-bird discounts available for all tickets purchased before March 15, 2017. ""This year, NEXUS will be held in Europe to allow for focused education and thought leadership on the European Union Falsified Medicines Directive (EU FMD) and other regulations emerging in EMEA and across the globe. Thousands of manufacturing companies face long lead times to address their network, scale and compliance challenges in order to meet the EU FMD regulations by 2019, so the time to begin planning is now,"" said Shabbir Dahod, president and CEO of TraceLink. ""In the current era of drug safety and serialization, NEXUS has become the only industry event that addresses the entire pharmaceutical supply chain, from pharmaceutical and contract manufacturers, to parallel importers, distributors, hospitals and pharmacies, offering invaluable insights and expertise from regulators, leaders and visionaries across the industry."" ""NEXUS 17 will be a premier venue to educate and inform key industry leaders and stakeholders on the EU FMD regulations, business requirements and how to work with organizations like the European Medicines Verification Organization (EMVO),"" said Paul Mills, Operations Manager, EMVO and NEXUS 16 keynote speaker. ""At last year's NEXUS, we saw that half of the attendees were not familiar with the technical and process requirements for EU FMD compliance. This is concerning given the complexity of the regulations and the timelines that companies face in preparing internal business operations and connections to the EU Hub for compliance readiness. As a result, the EMVO is looking forward to participating in NEXUS 17, to emphasize the urgency around preparation and readiness for EU FMD."" TraceLink NEXUS 17: Ensuring Drug Availability in EMEA with a Digital Supply Network NEXUS 17 will deliver executive keynotes, panels, roundtables and structured networking programs that are designed to engage participants in educational sessions that explore: NEXUS 17 is open to everyone in the life sciences community, and registration fees vary based on customer status and early bird discounts: To register for NEXUS '17 in Barcelona, please visit http://nexus-tracelink.com/ About TraceLink TraceLink is the World's Largest Track and Trace Network for connecting the Life Sciences supply chain and eliminating counterfeit prescription drugs from the global marketplace. Leading businesses trust the TraceLink Life Sciences Cloud to deliver complete global connectivity, visibility and traceability of pharmaceuticals from ingredient to patient. A single point and click connection to the Life Sciences Cloud creates a supply chain control tower that delivers the information, insight and collaboration needed to improve performance and reduce risk across global supply, manufacturing and distribution operations. A winner of numerous industry awards including Deloitte's Technology Fast 500 (ranked number 149 in 2016), the Amazon AWS Global Start-Up Challenge Grand Prize, and the Edison Award for Innovation in Health Management, the Life Sciences Cloud is used by businesses across the globe to meet strategic goals in ensuring global compliance, fighting drug counterfeiting, improving on-time and in-full delivery, protecting product quality and reducing operational cost. For more information on TraceLink and our solutions, visit www.tracelink.com or follow us on LinkedIn, Twitter and Facebook. TraceLink is funded by Goldman Sachs, FirstMark Capital, Volition Capital and F-Prime Capital. CONTACT:Aimee Genzler, Director, Corporate Communications, agenzler@tracelink.com, 978.396.6150", -855,2017/2/8,http://tass.com/economy/929789,Russia to promote Sukhoi Superjet-100 aircraft on Iranian market,"According to the Russian ambassador, the interest in Iran's market has grown significantly","MOSCOW, February 8. /TASS/. Promotion of Sukhoi Superjet-100 (SSJ-100) aircraft on the Iranian market is one of the priorities for Russia in its economic cooperation with Iran, Russian Ambassador to Iran Levan Dzhagaryan told TASS in an interview on Wednesday. 10 years of United Aircraft Corporation: military, civilian and transport aircraft ""One of the priorities is also promotion of Russia's Sukhoi Superjet-100 medium-haul aircraft on the Iranian market,"" he said. According to him, the Russian business""?interest in Iran significantly grew in 2016. ""Representatives of various Russian companies come to the Islamic Republic of Iran for commercial purposes. First of all, it is Iran's fuel and energy sector they are interested in,"" he said. Dzhagaryan recalled that now three Russian companies - Lukoil, Gazprom Neft and Zarubezhneft - are actively operating in Iran.- ", -856,2017/2/8,http://tass.com/politics/929777,Russia preparing to transfer naturally enriched uranium to Iran,Iran will receive 130 tonnes of natural uranium to compensate heavy water export,"MOSCOW, February 8. /TASS/. Russia is preparing to hand over a batch of naturally enriched uranium to Iran in exchange for heavy water, Russian Ambassador to Iran Levan Dzhagaryan told TASS in an interview on Wednesday. ""Arrangements [on heavy water between Russia and Iran - TASS] are implemented according to provisions of the Joint Comprehensive Plan of Action (JCPOA) under control of the IAEA and P5+1 representatives,"" the diplomat said. ""Information of Associated Press [that Iran will receive 130 tonnes of natural uranium to compensate heavy water export - TASS] corresponds to facts,"" Dzhagaryan said. ""Russia has already received heavy water; Russia is currently preparing to deliver a batch of naturally enriched uranium to Iran,"" the Ambassador said. Iran is bound to sell surplus of heavy water available with it on the global market within the nuclear deal implementation framework. ", -857,2017/2/8,http://tass.com/politics/929779,Opposition activist Navalny receives 5-year suspended sentence in fraud case,Navalny said that he will protest his conviction in the Kirovles case in the Kirov regional court,"KIROV, February 8. /TASS/. A court in Kirov has handed a suspended five-year prison sentence to Aleksey Navalny after finding him guilty of embezzlement in the Kirovles case. The other defendant in the retried case, Pyotr Ofitserov, was sentenced to four years in prison. His sentence was suspended, too. Both Navalny and Ofitserov will have to pay 500,000-ruble fines. Navalny said that he will protest the court's ruling. ""We disagree with this sentence. It is an exact replica of the sentence that followed the first trial. We will appeal the sentence,"" Navalny said in the courtroom. ""We do not recognize this sentence. It will be overturned. I will participate in elections. Right now I am taking part in an election campaign,"" he said. ""This sentence violates the European Court's verdict. That verdict has not been enforced. We are expecting the Committee of Ministers of the Council of Europe to react and to overturn the sentence passed today,"" lawyer Vadim Kobzev said.", -858,2017/2/8,http://tass.com/economy/929776,Shell to decommission field which gave Brent crude its name,"Since 1976, the field has produced around three billion barrels of oil equivalent, which is almost 10% of UK production","MOSCOW, February 8. /TASS/. Shell has begun public consultations on decommissioning the Brent oil and gas field, one of the largest in the North Sea, the company said in a press release on Wednesday. Before the start of consultations the company submitted a comprehensive decommissioning program to the Department for Business, Energy and Industrial Strategy (BEIS). According to the press release, the program recommends ""that the upper steel jacket on the Brent Alpha platform is removed, along with the topsides of the four Brent platforms, debris lying on the seabed, and the attic oil contained within the concrete storage cells of the gravity base structures."" ""The program will also recommend that the three gravity base structures, Brent Alpha footings, the sediment contained within the concrete storage cells of the gravity base structures (Brent Bravo, Brent Charlie and Brent Delta), and the drill cuttings piles remain in place,"" the company said. Brent field is located 115 miles north-east of the Shetland Islands. Since 1976, the field has produced around three billion barrels of oil equivalent, which is almost 10% of UK production. Shell began preparations for Brent decommissioning in 2006. In particular, production from Brent Delta platform ceased in 2011 and from Brent Alpha and Brent Bravo in November 2014. However, production from Brent Charlie platform will continue for several years to come, the company said. More than 300 expert studies have been completed and the results analyzed and verified by a group of independent scientists. ""Shell has undertaken thorough analysis, extensive scientific research and detailed consultation with over 180 stakeholder organizations over the past 10 years. Working within the tightly defined regulatory process, we believe that our recommendations are safe, technically achievable, environmentally sound and financially responsible. Shell encourages all those with an interest in the decommissioning of the Brent field to review, reflect on and respond to this consultation document,"" the company said.", -859,2017/2/8,http://tass.com/world/929761,Turkish lawmaker says Astana talks unprecedentedly successful,A lawmaker believes the Astana talks marked the first step in settling the Syrian crisis,"ANKARA, February 8. /TASS/. The intra-Syrian talks in Astana proved successful and showed the world that there was a basis for dialogue between the opposing parties, Deputy Chairman of Turkey's ruling Justice and Development Party Mehmet Mehdi Eker said in an interview with TASS on Wednesday. ""The Astana talks proved to be unprecedentedly successful. This is both Turkey and Russia's success because if not for our countries, these talks would not have taken place,"" he stressed. ""Thanks to the Astana talks, the world has come to see that opposing sides can sit together at the negotiating table and talk,"" he added. Eker also said that ""the sides that are used to stare at each other through scopes came together in Astana."" ""The Astana talks marked the first step in settling the Syrian crisis. Close cooperation between Turkey and Russia resulted in a ceasefire established in Aleppo. The Geneva talks on Syria will take place later this month. We continue to work so that positive effect could be felt there as well,"" Eker added. When asked if the Astana talks could become an alternative to the Geneva negotiations, he noted that ""it will become clear later, when the sides make their assessments and begin to implement agreements."" ""The matter is that real players, including Turkey, Russia, Iran, Syria and the United Nations gathered in Astana, while the Geneva platform is broader, other global players are participating in the Geneva process. If Astana talks result in a compromise, then the parties won""t need another platform,"" the deputy chairman of Turkey's ruling party concluded. ""Russia has become a major power in our region. This is a reality. It is a world actor, and it has its own interests in and influence on the region. We are concerned about our security (due to terrorist threats - TASS) but we also seek to achieve stability in the region. This is an issue that should be addressed together with Russia through diplomacy and efforts to find a solution that would be suitable for both countries,"" Eker said. He stated that Ankara's attitude to regional cooperation with Moscow remained unchanged. ""Cooperation between Turkey and Russia and joint efforts in the Middle East, in our region will make a contribution to the settlement of outstanding problems. At least our countries have achieved a fundamental agreement and held talks in Astana by bringing all parties together. Iran's important role in that process is noteworthy,"" he said. About the situation in Syria Eker said it was an internal affair of the Syrian people and it was up to them to make a decision. ""This is precisely why both government representatives and the opposition gathered at the negotiating table in Astana. If a solution fails to be achieved, then international intervention may emerge on the agenda. The crisis may stop to be just an internal issue to grow into a regional and even world one to harm world stability, security, trade and the world economy respectively,"" Eker said. The humanitarian situation in Syria is ""very serious and millions of people suffer,"" he remarked. ""This problem must be resolved by diplomatic means. In this respect the joint stance taken by Turkey and Russia and the implementation of joint plans along these lines is of critical importance. This is a chance for our countries,"" Eker stated.", -860,2017/2/8,http://tass.com/sport/929771,Madrid Open tennis tournament organizers grant wildcard for Sharapova,Maria Sharapova is Russia's most famous tennis player who has won a total of five Grand Slam tournaments,"MOSCOW, February 8. /TASS/. Russian tennis star Maria Sharapova was granted a wildcard permitting her to compete in May in Madrid Open tennis tournament, the event's organizers announced in a statement on Wednesday. ""Sharapova will be taking part in our 2017 tournament,"" the statement said. ""Sharapova asked us for an invitation to the tournament and having considered her request we decided to grant her a wildcard."" ""Sharapova is one of the best tennis players over the past 15 years, she was the champion of our tournament (in 2014) and she has been always good playing in Madrid,"" the statement said quoting the tournament's director Manolo Santana. Currently serving a provisional suspension, Sharapova is set to make her comeback following a doping ban this year on April 26 at the tennis tournament in Stuttgart. The tennis player has been serving a two-year suspension for the violation of anti-doping regulations since January 26 last year. However, the Swiss-based Court of Arbitration for Sport (CAS) ruled on October 4, 2016 to reduce her suspension term from 24 to 15 months. Sharapova is officially eligible to make her comeback on April 26 this year. Sharapova tops Forbes list of world's highest-paid female athletes Last March, Sharapova announced that her doping tests revealed the presence of banned performance enhancing drug meldonium in the body system. Following the announcement, former World's No. 1 was provisionally suspended from all tennis-related activities, including from the 2016 Summer Olympics in Brazil. Sharapova is Russia's most decorated tennis player having won a total of five Grand Slam tournaments, namely Australian Open in 2008, French Open in 2012 and 2014, Wimbledon in 2004 and US Open in 2006. She is also a silver medal winner of the 2012 Summer Olympics in London and the 2008 Federations Cup champion.", -861,2017/2/8,http://tass.com/world/929769,Official: Erdogan may discuss cancellation of visas with Putin,"First of all the leaders might speak about lifting visa restrictions for representatives of the business community, deputy chairman of the Turkish ruling party said","ANKARA, February 8. /TASS/. Ankara is set to raise an issue of lifting visa restrictions at a scheduled meeting of the High-Level Russian-Turkish Cooperation Council, Mehmet Mehdi Eker, deputy chairman of the Turkish ruling party Justice and Development (AKP), told in an exclusive interview with TASS. ""To implement in practice our cooperation in concrete sectors, we need the companies, private sector and people to communicate,"" Eker said. ""Therefore, easier reciprocal trips should be granted to people in our countries, particularly business communities and investors."" ""First of all, we speak about lifting visa restrictions for representatives of the business community,"" he said, adding ""it is important that in the future all Turkish citizens will not have to have any Russian visas at all."" ""In the near future, our president is due to pay a visit to Russia and to meet with Putin as well. The issue will be highly probably raised at the negotiations. It will be considered in detail at the High-Level Cooperation Council,"" Eker said, adding that the AKP ""is expecting the Turkish leader's trip to take place but no exact date has been set yet.""", -862,2017/2/8,http://tass.com/politics/929760,"Russia will use Iran's airbase to fight terrorists if necessary, envoy says",In August 2016 Russian military used Shahid Nojed airbase in Iran to deliver airstrikes on terrorists in Syria,"MOSCOW, February 8. /TASS/. The Russian Aerospace Forces will use Iran's military infrastructure for operations against terrorists in Syria if Moscow and Tehran deem it necessary, Russian ambassador in the Islamic Republic Levan Dzhagaryan said in an interview with TASS. ""If the leadership of the two countries will consider it necessary to use the Iranian military infrastructure to combat terrorism in Syria or elsewhere, such steps will be taken,"" the diplomat said. In August 2016 Russian military used Shahid Nojed airbase in Iran to deliver airstrikes on terrorists in Syria. In December Iran's Defense Minister Hossein Dehghan said Terhan was ready to consider Russia's request on the use of the airbase but no talks on the issue were underway. Dzhagaryan said the reports of Russia's alleged plans to deliver S-400 antiaircraft missile systems to Iran are inconsistent with reality. ""Periodically appearing media reports about the possible delivery of S-400 complexes have nothing to do with reality,"" he said. By now, Moscow has fully closed a contract for the delivery of S-300 complexes to Iran, the Russian diplomat said. ""Last year, Russia finished completely the fulfillment of its obligations for the delivery of S-300 air defense systems to Iran,"" the ambassador said. Iran takes interest in many Russian projects in the sphere of military-technical cooperation, including Sukhoi-27, Dzhagarian-told TASS in an interview. ""Cooperation between Russia and Iran proceeds in many fields, including the military-technical sphere,"" the diplomat said. ""The two countries""?defense ministries are currently in talks at different levels on many projects of interest to Iran."" ""It is common knowledge that the Russian aerobatic demonstration team Russian Knights (flying Sukhoi-27 jets) participated in the Iran Airshow-2016 on Kish island last November,"" Dzhagarian said. He recalled that Iran's Defense Minister Hossein Dehghan and a number of Iranian defense-industrial complex officials were able to see for themselves the capabilities of Russian planes. ""Hossein Dehghan also visited a static exhibition of Sukhoi-27 fighter jets,"" the ambassador said.", -863,2017/2/8,http://tass.com/press-releases/929813,SDCmaterials Receives Purchase Order for Advanced Automotive Catalyst Ingredients,,"TEMPE, Arizona, Feb. 8, 2017 /PRNewswire/. SDCmaterials today announced that it has received an initial purchase order from CarSound, a leading aftermarket exhaust system supplier.- The purchase order, with deliveries starting in the first quarter of 2017, is for SDC's Nano-on-Nano™ based automotive catalysts ingredients, which will be integrated into CarSound's catalysts.- - ""Providing critical ingredients to CarSound for their highly respected aftermarket exhaust systems is a great achievement for SDC and we look forward to a long and mutually beneficial relationship,"" said SDC Executive Chairman Bill Staron. ""Having passed the rigors of our internal verification, and governmental certification processes, we are going to market with confidence that Nano-on-Nano™ based CarSound products will provide real benefits to our company and our customers,"" said CarSound Chief Strategy Officer Peter Nitoglia. SDC's-Nano-on-Nano™ formulation, applied to exhaust-treatment catalysts, requires as little as 40 to 60 percent-of the platinum-group metals in traditional catalysts, essentially doubling-the efficiency of the precious-metal composition. About SDCmaterials SDCmaterials develops and commercializes advanced catalyst products based on a novel materials fabrication and integration platform.- Founded in 2004, the company's headquarters and R&D center are in Tempe, Ariz.- It also owns and operates a production facility in Schwarzheide, Germany.- Investors include the venture capital arms of General Motors, Volvo Group, and SAIC Motor Corp., China's largest automaker, as well as BASF Venture Capital; Emerald Technology Partners, a leader in clean-tech venture capital; and Invus Financial Advisors.- For more information, visit http://www.sdcmaterials.com. About Car Sound Exhaust System- Based in Oceanside, Calif., Car Sound Exhaust System designs, validates and manufactures aftermarket and custom catalysts in compliance with ISO 9001 quality standards.-- It markets top brands in automotive emissions control, including MagnaFlow catalytic converters.- For more information, go to www.ect-catalyst.com and www.magnaflow.com Contact (for SDC): info@sdcmaterials.com Contact (for Car Sound): Kathryn Reinhardt 949-858-5900 kreinhardt@magnaflow.com Logo - http://mma.prnewswire.com/media/147665/sdcmaterials_inc_logo.jpg", -864,2017/2/8,http://tass.com/sport/929754,Russian deputy PM comments on suspension cases of six cross-country skiers,"On December 23, the International Ski Federation slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules at the 2014 Winter Olympics","MOSCOW, February 8. /TASS/. A situation regarding provisional suspensions of six Russian cross-country skiers, imposed last year over alleged violations of anti-doping rules, remains complicated, Russian Deputy Prime Minister Vitaly Mutko said on Wednesday. On December 23, the International Ski Federation (FIS) slapped provisional suspensions on six Russian cross-country skiers over alleged violations of anti-doping rules at the 2014 Winter Olympic Games in Sochi. The athletes subjected to the provisional suspensions are four male skiers, namely Alexander Legkov, Maxim Vylegzhanin, Yevgeny Belov and Alexey Petukhov and two female skiers - Julia Ivanova and Evgenia Shapovalova. The decision was made in the wake of the infamous McLaren Report. ""We are currently in a very complicated situation,"" Mutko, who oversees issues regarding sports, tourism and youth policies in the country, told journalists. ""There is still no general conclusion on the (McLaren) report and sports federations are making their own decisions,"" he said. ""However, we have a report and we have a special commission with the IOC (International Olympic Committee), which must carry out its own investigation and, most importantly, hear arguments on behalf of Russia."" Russian cross country skier Maxim Vylegzhanin told TASS on Tuesday that he and his teammates Alexey Petukhov, Julia Ivanova and Evgenia Shapovalova were set to appeal their provisional suspension with the Court of Arbitration for Sport (CAS) in Lausanne. The FIS ruled on Tuesday to keep in force earlier imposed provisional suspensions in regard to the four athletes at the issue. On January 25, the FIS Anti-Doping Panel ruled to keep in force the provisional suspensions of Legkov and Belov. Both athletes later filed appeals with the Swiss-based Court of Arbitration for Sport disputing the FIS ruling. According to Part Two of the report, delivered in early December in London by the WADA Independent Commission and its chairman, Canadian sports law professor Richard McLaren, more than 1,000 Russian athletes competing in summer, winter and Paralympic sports could have been involved in an alleged manipulation scheme to conceal positive doping tests. Part Two of McLaren's report claimed in particular that doping samples of 12 Russian medalists of 2014 Winter Games in Sochi had been tampered with. In addition, doping tests of two more Russian athletes, who won four gold medals of the 2014 Sochi Olympics, had been falsified as well.", -865,2017/2/8,http://tass.com/defense/929752,Warships of Russia's naval task force return home after Syrian mission,The naval task force performed such a large-scale mission with the combat employment of naval aviation for the first time in the history of the Russian Navy,"SEVEROMORSK, February 8. /TASS/. The heavy nuclear-powered missile cruiser Pyotr Veliky has returned to Russia from the Mediterranean Sea, the press office of Russia's Defense Ministry said on Wednesday. The warship will anchor in the roadstead in the Kola Bay near Severomorsk in northwest Russia, the press office said. The Pyotr Veliky will be later joined by the aircraft carrier Admiral Kuznetsov, which is part of the Northern Fleet's naval task force that performed anti-terror missions off Syria, the press office said. ""At the concluding stage of the voyage in distant waters, the warships practiced some missions at sea ranges in the Barents Sea. On February 3, the aircraft and helicopters of the aircraft carrier naval task force returned to their home aerodrome Severomorsk-3,"" the Defense Ministry said. The naval task force performed such a large-scale mission with the combat employment of naval aviation for the first time in the history of the Russian Navy. The warships set off for the voyage on October 15, the Defense Ministry said. The warships are passing into the Kola Bay one by one in compliance with the existing shipping regime. Upon their arrival for the roadstead off Severomorsk, the Pyotr Veliky and the Admiral Kuznetsov will salute in celebration of their return: they will make 15 artillery salvos from salute guns. A return salute will be made by the Northern Fleet's destroyer Admiral Ushakov moored at the berth of the Northern Fleet's main naval base. The support vessels comprising the tankers Sergei Osipov and Kama and the rescue tug boat Nikolai Chiker will return to the Northern Fleet's main base together with the warships. Over their long-distance voyage, the Russian warships and support vessels covered about 18,000 nautical miles, passing through the north-eastern parts of the Atlantic Ocean and the Mediterranean Sea. ", -866,2017/2/9,http://www.dw.com/en/majority-of-europeans-favor-trump-style-immigration-ban/a-37485655?maca=en-rss-en-all-1573-rdf,Majority of Europeans favor Trump-style immigration ban,A new survey by London think tank Chatham House reveals that the majority of Europeans are against further Muslim immigration. There is no country polled in which support for Muslim immigration surpasses opposition.,"In response to President Donald Trump's executive order banning entry into the United States for citizens of seven Muslim-majority countries, Senate Minority Leader Chuck Shumer said: ""This order is against what we believe in America."" Of all the executive action taken by Trump in his brief term thus far, this one caused the greatest uproar in the US and internationally. Trump banned the entry of citizens from the seven countries for 90 days, all refugees for 120 days and Syrians indefinitely. Judges expressed skepticism over the need for the travel ban, asking whether there was any evidence of a link between the seven countries and terrorism. The court said a decision would come ""as soon as possible."" (08.02.2017) Around 10 thousand people have protested in the UK against a US travel ban that affects several Muslim-majority nations. Critics see the ban as inflaming religious tensions and violating international laws on refugees. (04.02.2017) Germany's president has urged Europe to take a clear stance against Trump's entry ban for citizens from seven Muslim-majority countries. He said the order was ""incompatible"" with the European values of human dignity. (04.02.2017) The order led to mass protests and drew scorn from foreign leaders. German Chancellor Angela Merkel said the ban ""contradicts the basic tenets of international aid to refugees and international cooperation."" She added that it puts all Muslims under general suspicion. London Mayor Sadiq Khan expressed his opposition to Trump's planned state visit in Great Britain, saying, ""I am quite clear, this ban is cruel, this ban is shameful, while this ban is in place we should not be rolling out the red carpet for President Trump."" But Trump has been praised as much as he has been criticized. In the US, his followers are celebrating. His actions have also been applauded by right-wing populists in Europe like France's Marine Le Pen, Geert Wilders in The Netherlands and Alexander Gauland from Germany's Alternative for Germany (AfD) party. ""Trump is doing it right. He is showing us how to do it,"" Gauland said. Security or religion? Trump defended his order by saying that it was ""not about religion"" but instead, about ""terror and keeping our country safe."" Is this true? Or is it actually about preventing the immigration of Muslims? A study conducted by the London-based think tank Chatham House concludes that Europeans want to curb Muslim immigration. Before Trump issued his executive order, Chatham House had asked 10,000 people from 10 European countries to evaluate the following statement: ""All further immigration from mainly Muslim countries should be stopped.""- An overall average of 55 percent of respondents agreed with the statement. While Trump's travel ban has drawn criticism, it also has significant support The survey was carried out in Belgium, Germany, Greece, Spain, France, Italy, Austria, Great Britain, Hungary and Poland. Some countries, like France, Belgium and Great Britain, have relatively large Muslim minorities, while others, like Poland or Hungary, have practically none. This difference is not reflected in the opinion of Muslim immigrants. With the exception of Poland, the highest level of agreement to the statement was seen in countries that were at the center of the refugee crisis or were targets of Islamist terrorist attacks. It is also clear that in all of these countries, the right-wing populist parties are strong and in some cases, make up the government. The most pro-Muslim immigrant country was Spain, where 41 percent of the population opposed the survey statement. Refugee influx and terrorist attacks increase opposition Chatham House also analyzed socio-demographic data and came to some expected - but also some unexpected - conclusions. Many general claims are confirmed in the survey. Retirees are more likely to be against Muslim immigrants than people under the age of 30. In all 10 countries, 44 percent of survey participants between the ages of 18 and 29 were against an entry ban for Muslims, whereas 63 percent of respondents over 60 were for it. The level of education also played into the results. Of those who had completed secondary school, 59 percent wanted to stop further Muslim immigration compared to 48 percent of respondents who hold degrees. So actually, almost every second person with a higher level of education is for a Muslim entry ban. Support for a Trump-style ban is highest in European countries directly affected by the refugee crisis Gender and geographical location have almost no effect on the results. Of the men surveyed, 57 percent were for the entry ban compared to 52 percent of the women. Of those living in large cities, 52 percent were for a ban, while 55 percent of small town residents and 58 percent of the rural interviewees were for the ban. Number of Muslims clearly overestimated The results of the Chatham House survey are not unusual. A poll conducted in the summer of 2016 by the Washington-based Pew Research Center came to similar conclusions; however, there was a marked difference between individual countries. Respondents in five countries had a low opinion of Muslims - Hungary, 72 percent; Italy, 69 percent; Greece, 65 percent and Spain, 50 percent. The figures in Great Britain (28 percent) and Germany (29 percent) were much lower. The Pew survey also showed an overall average of 59 percent of those asked fear that the recent influx of refugees will lead to more terrorism. Surveys in the US revealed similar results. The fear of terrorism may lead to the fact that many Europeans overestimate the percentage of Muslims in their countries. Last autumn, Britain's IpsosMORI Institute asked people in different European countries to estimate the percentage of Muslims in their countries. The French estimated four times more than the actual percentage and the British three times more.", -867,2017/2/9,http://www.dw.com/en/russian-airstrike-against-is-kills-three-turkish-soldiers-in-syria/a-37485064?maca=en-rss-en-all-1573-rdf,Russian airstrike against IS kills three Turkish soldiers in Syria,"The two nations back opposing sides of the Syrian civil war, but both are fighting against Islamic State. Their respective leaders agreed to work more closely henceforth to coordinate military action against the group.","A Russian airstrike in Syria killed three Turkish soldiers and injured 11 others as they both fought the so-called ""Islamic State,"" Turkish officials announced on Thursday. The attack happened on Thursday morning near the northern Syrian town of al-Bab, which Turkish troops and Turkish-backed Syrian opposition fighters had been trying to capture from IS militants. ""During an operation by a Russian Federation warplane against Islamic State targets in the region of the Euphrates Shield operation in Syria, a bomb accidentally hit a building used by Turkish Army units,"" the Turkish military said in a-statement. Russian President Vladimir Putin phoned his Turkish counterpart, Recep Tayyip Erdogan on Thursday to express his condolences, blaming the ""tragic incident"" on poor coordination between Moscow and Ankara, the Kremlin said. IS fighters in the town of al-Bab are almost surrounded by two different groups ""It was agreed to enhance military coordination in the course of the operation in Syria against Islamic State fighters and other extremist organizations,"" the statement added. Russia's Defense Ministry said Chief of the General Staff Valery Gerasimov also called his Turkish counterpart to offer condolences over the accidental-strike. ""Russian jets were carrying out a military mission to destroy IS positions in the area of Al-Bab,"" a Defense Ministry statement said. The two military chiefs ""agreed on closer coordination of joint actions and also the exchange of information about the situation on the ground,"" it said. The incident happened in the north of Syria where both sides are fighting against IS Troops clash outside IS town In the same area, Turkish-backed Syrian opposition fighters briefly clashed with Syrian government allied troops on the outskirts the IS-held town. It was the first such confrontation since the Turkey-backed offensive began in northern Syria last August. Heavily fortified IS forces in al-Bab were effectively encircled as Syrian government forces and their allies, aided by Russian airstrikes pushed from the south, while Turkish troops, backing Syrian opposition fighters, pushed their way from the western part of the town. The two countries back opposing sides of the six-year civil in Syria, but are both fighting against IS in various parts of the country. Russia and Turkey only recently repaired ties after Turkey shot down a Russian jet near the border with Syria two years ago. In late December, the two countries brokered a ceasefire for Syria and in January they sponsored-peace talks in Astana, Kazakhstan, attended by Syrian rebels and President Bashar Assad's government officials. The Syrian ceasefire excluded areas where militant factions, IS and Syria's al-Qaida affiliate, operate or hold ground. News of the deaths came as Turkey was holding funerals for five Turkish soldiers killed in an IS attack the day before. The Russian airstrike raised Turkey's death toll in Syria to 64. aw/sms (AFP, AP, dpa, Reuters)", -868,2017/2/9,http://www.dw.com/en/france-s-fillon-urges-financial-prosecutor-to-drop-illegal-fake-work-inquiry/a-37482285?maca=en-rss-en-all-1573-rdf,France's Fillon urges financial prosecutor to drop 'illegal' fake work inquiry,"Attorneys for the French politician have hit out at financial prosecutors investigating payments made to his wife. Fillon's lawyer has said the prosecutor is ""not competent"" to investigate the matter.","Lawyers for French conservative presidential candidate Francois Fillon on Thursday urged financial prosecutors to drop their investigation into allegations his wife was paid for a supposed fake job. ""The financial prosecutor has no jurisdiction and its inquiry is, therefore, illegal,"" Fillon's lawyer, Antonin Levy, told reporters, arguing that the candidate should be allowed to enjoy discretionary use of funds available to him as an elected lawmaker. The probe ""completely tramples democratic principles"" and deals a ""serious blow to the principle of the separation of powers,"" Levy said. Many expected Francois Fillon to be a shoo-in for the presidency. The former French prime minister easily won the conservative primary with 67 percent of the vote. But then Penelopegate hit. Weekly newspaper Canard Enchaine reported that Fillon's wife Penelope and two of his children had received close to one million euros in salaries from Fillon, paid by the state. Fillon's popularity tumbled. It is not illegal in France to hire family members as parliamentary assistants - provided they have real jobs. Fillon's wife was paid 830,000 euros ($900,000) as a parliamentary assistant for 15 years, working (or - as some have suggested - ""working"") for Fillon and his replacement in parliament. Police are currently investigating whether Penelope provided services for the salary she received. Reporters also revealed that Fillon paid his two oldest children 84.000 euros for working as assistants between 2005 and 2007. Fillon argued that he had hired Marie and Charles Fillon for their legal expertise ""?though the two were still in law school when they had jobs with their father. Penelope was also employed at an art magazine from May 2012 to December 2013, where she was paid roughly 5,000 euros a month. The owner of the magazine had previously been recommended for France's highest honor, the Grand Cross of the Legion of Honor, by then-prime minister Francois Fillon. Fillon has said that these two facts were unrelated. Fillon has repeatedly denied charges that he used ""fake jobs"" to enrich his family. He has said that he employed his wife and children because he trusted them and accused the media of running a smear campaign against him. Nevertheless, Penelopegate has severely damaged the campaign of the 62-year old, who has sold himself to French voters as an honest family man keen on cutting public spending. The accusations against Fillon are hardly the first of their kind in France. Ex-President Jacques Chirac was found guilty in 2011 of employing party members in ""fake jobs"" as mayor of Paris. Former president Nicolas Sarkozy is being investigated for illegal campaign financing, and presidential candidate Marine Le Pen is suspected of paying officials in her far-right party with EU funds. Author: Mara Bierbach 'Penelopegate' Initially considered a frontrunner for the French presidency, Fillon has been fighting to rescue his campaign, following accusations of embezzlement. His wife, Penelope Fillon, had received 830,000 euros ($900,000) in public money for her work as his parliamentary assistant over 15 years. However, last month, the satirical ""Canard Enchaine"" newspaper alleged his wife never carried out any work in the role. Fillon also employed his two oldest children , supposedly-for their legal expertise, although both were still in law school at the time. Those reports only fuelled allegations that he used such ""fake jobs"" to enrich his family. While having repeatedly denied the allegations, Fillon has seen his approval ratings plummet. Opinion polls show him trailing behind the Front National's Marine Le Pen and independent centrist Emmanuel Macron, making it unlikely for him to-reach the presidential election run-off in May.- Fillon's attorneys also criticized the media for publishing leaked details of the investigation, saying the reports will likely have an impact on the vote.-- ""The financial prosecutor's office has a responsibility,"" Levy said.-""It's important that voters don't have their election stolen in April.""- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WtZ4 dm/sms (AFP, AP)", -869,2017/2/9,http://www.dw.com/en/german-president-gauck-makes-symbolic-final-state-visit-to-baltic-states/a-37480266?maca=en-rss-en-all-1573-rdf,German President Gauck makes 'symbolic' final state visit to Baltic states,"The outgoing German president has stressed a commitment to the Baltics amid concerns over Russian territorial ambitions. His likely successor, Frank-Walter Steinmeier, has been more restrained in criticizing Moscow","It was his 101st - and last - state visit as German president, but during Thursday's trip to Latvia, Joachim Gauck spoke as forcefully as ever about Germany's unwavering-alliances. Meeting with the heads of state from Lithuania, Latvia and Estonia in Riga, Gauck admitted that the-choice of destination for his final visit as president was ""symbolic."" ""It sends a conscious political signal that Germany stands at the side of our Baltic partners,"" Gauck said. ""The change in the security situation has illustrated the urgency of this,"" he added, referring to fears of Russia's possible territorial ambitions in the Baltic region. Gauck-described Russia's insurgency in eastern Ukraine as ""particularly worrisome"" and warned against a Kremlin-led ""disinformation campaign."" The Baltic states were all once parts of the former Soviet Union but today find themselves aligned westwards as members of the EU and NATO. Since Russia's annexation of the Ukrainian peninsula of Crimea, all three states have vocally decried the threat Moscow poses on their doorstep. Moscow has denied any military ambitions in the region, instead accusing-NATO of trying to encircle Russia. However, last year Moscow deployed nuclear-capable Iskander missiles in its heavily militarized enclave of Kaliningrad, which borders Lithuania and Poland. President Gauck stressed that Russia's territorial ambitions threatened Germany's Baltic allies. Beloved in the Baltics Thursday's visit to the Latvian capital marked-the final state visit of Gauck's-five years as German president. Gauck is reportedly held in very high regard in the -region, having often stressed Germany's commitment-to its eastern NATO partners. On Thursday, he once again emphasized that pledge, saying: ""Germany stands alongside our Baltic partners and friends."" Lithuanian President Dalia Grybauskaite thanked Gauck for Germany's military support and contributions towards strengthening NATO's presence on the eastern flank.- Estonia's Kersti Kaljulaid praised Gauck and German Chancellor Angela Merkel for taking on ""a leadership role within Europe."" Times of uncertainty Gauck's commitment to NATO and the Baltic states comes at-a testing time for the alliance. Baltic countries and other eastern European NATO allies, such as Poland, have expressed unease over comments made by US President Donald Trump, who called alliance ""obsolete"" during his presidential campaign. Under pressure from Western leaders, Trump has since toned down his words, saying that NATO is ""of fundamental importance"" to the transatlantic relationship. According to the German news agency dpa, Baltic leaders also voiced reservations over Gauck's likely successor, Frank-Walter Steinmeier. In June, Germany's then-foreign minister sharply criticized NATO military exercises in eastern Europe, calling such drills counterproductive to security in the region. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WoZM dm/sms (dpa, AFP)", -870,2017/2/9,http://www.dw.com/en/tanzania-to-press-germany-for-damages-for-colonial-era-atrocities/a-37479775?maca=en-rss-en-all-1573-rdf,Tanzania to press Germany for damages for colonial era 'atrocities',Tanzanian legislators on Thursday urged the government to put pressure on Germany to pay compensation for deaths caused during the Maji Maji revolt over a century ago.,"The Tanzanian government says it will-seek compensation for tens of thousands of people who allegedly were starved, tortured and killed by German soldiers-as they sought to-put down rebellious tribes between 1905 and 1907. The-German forces are-accused of crimes including forced starvation-following the tribal revolt known as Maji Maji. Germany ruled Tanzania, then known as Tanganyika, from the late 1880s-to 1919. In an interview with DW, Hussein Mwinyi, the Minister of Defense and National Service of Tanzania, said that the government is prepared to ask the German government to compensate those who were affected by the Maji Maji war.- DW: Why are you taking this action at this time? Hussein Mwinyi : In this case it was the result of a question that was asked in parliament by one of the members of the leadership who wanted to know whether the government is prepared to ask the German government to compensate those-affected by the Maji Maji war. So is this a consideration or have you-already reached a conclusion that you are going to take action? What I responded to that question is to say that, as Minister of Defense and National Service, we will write to the Ministry of Foreign Affairs-so that they can take the matter to the German government. -What exactly do you expect from the German side? Well, compensation is what we are looking for and there are a few other examples in the African region of-countries who have asked for this compensation. Kenya, for example, had asked for compensation from the UK government and Namibia, I have been told, is discussing the same with the German-government. So we are hoping to take-this forward to the German government ourselves. Should your compensation come through as you hope, how would this be utilized? To benefit the victims or is this something that's going to go to the national treasury for-the benefit of the whole country? No, the idea here is to compensate those who lost their lives and of-course there are some surviving victims of the war. But those who-lost their lives, they have people who could benefit from it. How soon do you think the process could start? I have already promised the House that I am going to write to the leaders of the Ministry of Foreign Affairs and I am hoping they will pick up this issue as soon as possible. Interview: Jane Ayeko-K��mmeth", -871,2017/2/9,http://www.dw.com/en/the-audacity-of-planning-a-general-strike-against-president-trump/a-37481584?maca=en-rss-en-all-1573-rdf,The audacity of planning a general strike against President Trump,"Regardless of how it turns out, efforts to stage a general strike in the US are unprecedented in the modern era and show how deep the opposition against President Trump is. But the planned protest also raises questions.","Can't remember the last time a general strike shut down the United States? That's because it has never happened. ""General strikes don't happen in the United States,"" Kevin Boyle, a historian at Northwestern University who specializes in modern American social movements, told DW. What do happen are general strikes on a local level, but even those are exceedingly rare, explained Andrew Wender Cohen, a history professor at Syracuse University. ""The last major general strike was in Oakland, California in 1946,"" he said. Back then tens of thousands of workers walked off their jobs in a fight over unionization in the city. Extraordinary idea While regionally based general strikes like the one in Oakland - involving more than 10,000 workers and shutting down a local economy - happened earlier in the United States in places like San Francisco or Philadelphia, even those regional general strikes always were unusual.---- ""It is very, very uncommon in US history,"" Cohen told DW, adding that for some time now there have been only 20 to 30 strikes per year in the entire country.- Against that backdrop, calls for a general strike by the organizer's of the Women's March as well as by other groups are not just noteworthy, but daring. ""The idea of it is really quite extraordinary,"" said Boyle. ""It tells us something about the real depth of the opposition to the Trump administration that people are even talking about such a thing. I think it tells us something about really dramatic mass mobilization of the last couple of weeks in the United States."" Upset and angry His colleague Cohen concurs that it is an indicator that people are ""really upset and angry."" The big question though, argue the scholars, is whether the strike will be successful since Americans generally have far fewer labor protections than Europeans and the unionization rate is also far lower than in Europe, where general strikes are more common. ""It really is a question of whether the organizers can convince people to risk being fired or the wrath of their employer,"" said Cohen. ""I think this idea of a strike also carries with it a kind of class bias that I don't think is a particularly useful thing,"" said Boyle.- ""It's a heck of a lot easier for professional people to take an hour out of work than for working class people. That's a tough thing to say for millions and millions of people. That's not going to go down well at the local Wal-Mart."" Risky move What's more, he added, unless the turnout is truly extraordinary and has a great impact on the national economy, calling for a general strike runs the risk of falling short and having it labeled a failure, even if many people attend. A more apt vision of what may be achievable, said Boyle, would be the moratorium to end the Vietnam War on October 15, 1969, which was initially planned as general strike but then reconfigured as a moratorium. Instead of a general strike, huge protests were held across the US and globally to be followed by more protests one month later.- Francine Prose, a writer and former president of the PEN American Center, whose article in Britain's ""Guardian"" newspaper has been widely credited with having spawned the idea of a general strike, is less concerned with organizing tactics or the possible perception of planned events.- The organizers of the Women's March have called for general strike against Donald Trump Europe as a role model -""I am not an organizer,"" she told DW. ""I just threw this idea out there."" ""I spent a lot of time in Italy, so I have memories of waiting for the bus in downtown Rome and it would never come,"" said Prose, adding that she is of course aware that general strikes are far less common in the US than in Europe. And she also knows that it is far more risky and difficult for many Americans to participate in a strike than for Europeans.- The reason why she still called for a global strike, she said, was simply that while she feels that all protests against the Trump administration have been important, ""there is some part of me that thinks the only thing that these people care about is money and commerce. And perhaps the only way to really get to them is to shut it down for a day or to make things difficult, to make things uncomfortable."" But that doesn't mean, said Prose, that the success of a general strike should be measured only by its effects on the economy. Metric for success ""Let's say every single American walked out of a job, didn't buy anything, didn't travel for a single day - I don't think that would convince Donald Trump to step down,"" said Prose. More important than focusing on a single event or a single mode of opposition, she said, is to view every event broadly as a practice and preparation for the next move. Someone who can't take to the streets to protest could perhaps make phone calls to a member of Congress.- Because the tangible results of the protests against the Trump administration's plans can be hard to measure, Prose suggests a different metric. ""We can only imagine what would have happened if it wasn't made clear that a significant percentage of the American people oppose these things.""", -872,2017/2/9,http://www.dw.com/en/twitter-fails-to-turn-trump-tweets-into-cash/a-37483741?maca=en-rss-en-all-1573-rdf,Twitter fails to turn Trump tweets into cash,Shares in the short messaging service have slumped after it reported sluggish revenue and user growth that led to a widening net loss in the fourth quarter despite the new US president's extensive use of it.,"In morning trading at Wall Street in New York on Thursday, Twitter shares tumbled more than nine percent as investor hopes are fading for a rebound in growth at the messaging platform. Twitter reported a net loss in the fourth quarter of $167 million (156.3 million euros), after a $90-million shortfall in the same period a year ago. Revenue in the quarter rose a modest one percent to $717 million. Moreover, in the closely-watched area of user growth, Twitter ended 2016 with 319 million monthly active users, a gain of four percent from a year ago and only two million more than the prior quarter. Advertising revenue was down slightly from a year ago at $638 million, with revenue in the important US market falling five percent. For the full year of 2016, Twitter lost $456 million on revenues of $2.5 billion.- A complaint, a promise, and then a photo? Celebrity inventor Elon Musk is slowly raising the curtain on an ambitious tunnel project, one that may have applications on Mars. But is it for real? (08.02.2017) US President Trump has criticized a judge's ruling that blocked his order banning travelers from seven Muslim-majority nations. Airlines including Lufthansa have started allowing visa-holders to board flights to the US. (04.02.2017) Gab's founders deny accusations that their platform is an ""alt-right echo chamber."" Content on the site suggests otherwise. (27.01.2017) ---- Growing impact? Despite the unimpressive result, Twitter CEO-Jack Dorsey remained upbeat about the company's long-term prospects, claiming ""the whole world is watching Twitter."" ""While we may not be meeting everyone's growth expectations, there's one thing that continues to grow and outpace our peers: Twitter's influence and impact,"" he said in a statement, adding that the social media network carried the world's ""most important commentary and conversations"" mobilizing people into action. However, Twitter has never reported a profit so far, which is why it is eager to revamp its offerings and expand beyond its core base of politicians, celebrities and journalists. Some analysts had expected a rise in Twitter use following the election of Donald Trump, who is an avid user of the platform and frequently uses it to offer his views on policy. Outlook improving Twitter's daily active usage grew for the third consecutive quarter, overcoming declining audience described by CEO Dorsey as ""the toughest challenge for any consumer service at scale."" The company is now aiming to become profitable in 2017. ""We're hearing positive feedback from our ad partners about our continued acceleration in audience growth and engagement,"" said chief operating officer Anthony Noto. Revenue growth would, however, continue to lag audience growth, he added, due to the sales cycle, and could be further impacted by the ""escalating competition for digital advertising spending."" In a research note, Richard Greenfield of BTIG research firm said he saw positive signs of growing user engagement on Twitter because the service had been ""thrust into the global Zeitgeist"" after the US presidential election. ""Not only is President Trump actively using Twitter to communicate directly with the American people, his tweets are impacting consumers all around the world,"" he added. Therefore, Greenfield believes that Twitter's results may improve in the course of next year. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XCej uhe/sri (AFP, Reuters, dpa) -", -873,2017/2/9,http://www.dw.com/en/german-neo-nazi-given-8-years-in-jail-for-arson-at-refugee-home/a-37481662?maca=en-rss-en-all-1573-rdf,German neo-Nazi given 8 years in jail for arson at refugee home,A politician with the far-right NPD was sentenced along with seven co-defendants. The group conspired to destroy a gymnasium where refugees were to be housed in the town of Nauen near Berlin.,"A German nationalist was sentenced to eight years in prison on Thursday as the mastermind of an arson attack on a sports hall where refugees were set to be accommodated. No one was harmed by the blaze in the town of Nauen, but the crime did cause some 3.5 million euros ($3.7 million) worth of property damage. Maik S., a 29-year-old politician with the far-right National Democratic Party of Germany (NPD), was clearly motivated by hatred of foreigners, Judge Theodor Horstk?tter said. On top of his 8-year sentence, the man was handed an additional 18-month prison sentence for other racist crimes. Refugees were slated to live in the gymnasium until more permanent accommodation could be found ""The attack was meant to signal to refugees: you are not welcome here, we don't have space for you, you aren't safe here,"" said Horstk?tter. Maik S. consistently denied this through his trial, saying he wanted to char the building, not destroy it, and that he was not motivated by xenophobia. One of his co-defendants was also sentenced to six years in jail for the August 2015 crime. Four others were given lesser punishments for their involvement, suspended sentences of from eight months to two years. NPD survives two ban attempts According to Spiegel Online, prosecutors told the court that by forming a WhatsApp messenger group to plan the crime, the six men had formed a criminal organization. They also said the men were well known in Nauen, a town 40 kilometers (25 miles) west of Berlin, for numerous anti-foreigner incidents. The group had reportedly set fire to the car of a Polish citizen, shouted xenophobic statements at town events, vandalized the office of a left-wing politician-and set off an explosive at a supermarket. Although Chancellor Angela Merkel has described the NPD as ""an anti-democratic, xenophobic, anti-Semitic, anti-constitutional party,"" two high-profile attempts to ban the party have been unsuccessful. A trial at Germany's highest court in 2013 found that the organization had been infiltrated by too many law enforcement agents and that those agents would have to be pulled from the party if a move to ban it were to continue. Last month, a second trial found that the group was too small and insignificant to present a real threat to the state. es/sms (AFP, dpa)", -874,2017/2/9,http://www.dw.com/en/the-worrying-trend-of-sexual-abuse-in-sports/a-37481528?maca=en-rss-en-all-1573-rdf,The worrying trend of sexual abuse in sports,"Sexual violence against children and young people in sports is a problem that has only recently started to be publicized. Sports associations are implementing protective measures, but more awareness is needed.","Sexual violence in sport is a pressing issue. An abuse scandal in English football recently brought the topic to light but there are victims of similar cases in other countries, including Germany. According to ""safe Sport""?a research project on children and teenagers in competitive sports, a large proportion of the 1,800 athletes interviewed for the study claim to be or have been a victim of abuse. The majority of them were under the age of 18 at the time of the incident. Along with physical abuse, the study also included victims who have suffered psychologically. This has included-being stared at, catcalling and or having to watch others have-sex. ""�One third of all athletes who were interviewed-have at least experienced a form of sexual violence,""?said Bettina Rulofs of the Institute for Sociology and Gender Research at the German Sports University in Cologne. ""�One out of nine interviewees suffered severe or recurring sexual violence.""?Rulofs and her team at the university conducted the study together with the Department of Child and Youth Psychiatry at the Ulm University Hospital. ""When we take into account the cases that include body contact, about five percent of female athletes and one percent of male athletes have suffered this type of abuse,""?said project manager and child psychiatrist Marc Allroggen. The figures of abuse among young athletes are similar to those of the general population. Qualified personnel Regardless of any statistics, any case of sexual violence involving children or teenagers is one too many. Most victims continue to suffer decades after the incident. They have feelings of shame and embarrassment, many suffer from anxiety and eating disorders as a result of the psychological trauma they experienced. In some extreme cases, drug addiction is also a consequence. Physical contact between instructors and athletes is common but when is it too much? ""According to the data, sporting associations and teams are responsible of increasing protection for children and teenagers against sexual assault,""?said Rulofs during a radio interview after the publication of her study. In some ways, this demand has been met by Deutsche Sportjugend (dsj), an organization responsible for competitive sports at youth level and also involved in the ""safe Sport""?project. The organization has designated specific personnel who act as counselors for the prevention of sexual violence. About 80 percent of the top sports associations, including 20 sports associations organized by the German Olympic Sports Confederation (DOSB), have employed-counselors. The associations under the DOSB focus on promoting values, education, science and health in and through sport. As another preventative measure, coaches and exercise instructors in almost every state in Germany will be offered training to become a qualified counselor. Increased investments in prevention Johannes-Wilhelm R?rig However, according to dsj, there are about 90,000 sports clubs that still need to be acquainted with sexual violence prevention. According to a survey, only half of the participating associations stated that the topic was relevant to sports clubs and only a third of them have been proactive on the issue. Moreover, regular training on sexual violence prevention is only carried out in few clubs. Only one in ten sports club have a counselor to whom victims can turn to. ""We need to invest more in prevention, that is what I try to push for politically but the organizations have to do their part,""?said Johannes-Wilhelm R?rig, the federal government's head of the Independent Commission for Dealing with Sexual Abuse of Children. ""We need protection concepts and counselors in all sports clubs. The study ""safe Sport""?shows that prevention can significantly lower cases of sexual violence from happening.""?hf/mds", -875,2017/2/9,http://www.dw.com/en/german-town-stops-playing-nursery-rhyme-after-complaint-from-vegan/a-37479770?maca=en-rss-en-all-1573-rdf,German town stops playing nursery rhyme after complaint from vegan,A town mayor granted relief to a local vegan woman who was offended by the lyrics of a nursery rhyme played multiple times a day. The fact the version of the song contained no vocals was no consolation.,"A vegan woman's complaints about a famous nursery rhyme resulted in a German town removing the song from the-rotation in the town hall's belfry, local media reported on Wednesday. The 19th-century children's song ""Fox, You've Stolen the Goose"" included the offending lines: ""Fox, you've stolen the goose. Give it back! Give it back! Or the hunter will get you with his gun."" The Limburg version of the song, however, was purely instrumental. An unnamed vegan woman who worked within earshot of the mechanical carillon complained to the mayor of Limburg. Town spokesman Johannes Laubach said the mayor, who was reportedly friendly with the woman, had temporarily granted her a reprieve. ""It's time to go easy on the goose and exchange the pieces of music,"" said Marius Hahn, who managed the town hall. ""We have 15 pieces in our repertoire, most of them German folk songs."" The ""Frankfurter Neue Presse"" newspaper-reported the woman was distressed by being reminded of the song's lyrics - ""the hunter's going to get you with his gun,"" rather than by the fox's theft of the goose. ""Behind this is not an ideological motive, but it is a temporary grace period for a woman working in the immediate vicinity of the town hall and thus hears the chimes every day - and is annoyed about the song,"" ""Die Welt"" newspaper quoted Laubach as saying. The carillon - a series of bells - played tunes several times a day. A local newspaper posted a recording of the bells on YouTube featuring a photo of the mayor superimposed on a photo of the town hall. The German branch of animal rights group PETA released a statement saying some nursery rhymes unfairly targeted some animals and that foxes were an important link in the ecosystem. ""We understand the concerns of the resident and ask the mayor to remove the song from the program permanently. Old-fashioned songs like this, or even fairy tales such as ""Little Red Riding Hood and the Big Bad Wolf"" are, unfortunately, still widespread and send the wrong message to children, especially by throwing a bad light on specific animals,"" the group said in a statement. The new Brothers Grimm Museum in Kassel explores not only the work of the fairytale duo, but also art associated with their tales. Ukrainian artist Alexej Tchernyi studied in Kassel; his installation ""First Delivery"" is among the works on show in the museum, which opens on Sept. 4, 2015. It takes visitors back to the 19th-century world of the writers, who worked for a time as librarians in Kassel. Alexej Tchernyi is still working on his installation ""Jacob Grimm's Dismissal from G?ttingen and Exile,"" referring to the Grimm brother's flight from the central German city of G?ttingen. In November 1837, seven professors including the Brothers Grimm staged a protest planned changes to the Kingdom of Hanover's constitution - and lost their jobs as a result. Kassel is not only known for its connection to fairytales, but also for hosting the contemporary art exhibition Documenta. Chinese artist Ai Weiwei exhibited at Documenta 12 in 2007. In 2010, he announced that he felt so inspired by the city, which had honored him with a civic award, that he wanted to create a work for the Grimm museum. The result: ""Colored Roots 2009-2015."" Just a few weeks prior to the opening of the Brothers Grimm Museum in September, Ai Weiwei's installation arrived in Kassel. The five boxes each weighed half a ton. The artist himself traveled to Germany on July 30 when Chinese authorities returned his passport after revoking it four years ago. Filmmaker Hannah Leonie Prinzler specializes in cross-medial documentary projects. She created the video installation ""Telling Rumpelstiltskin"" for the Brothers Grimm Museum. Ecke Bonk's installation ""Buch der W?rter/ Book of Words: Random Reading"" was on show at the Documenta in 2002 and has been reinstated in Kassel's newest museum. The ""German Dictionary"" written by Jacob and Wilhelm Grimm included 318,000 entries - some of which are incorporated into Bonk's work. This work, called ""Thorn Hedge,"" is a prickly affair made up of turf-covered poles and a corresponding sound installation that will undoubtedly draw in visitors of all ages. Small windows resembling arrow slits give visitors to the museum an altered view of the real world outside. Starting on September 4, the museum dedicated to the lives and fairytales of the Brothers Grimm expects some 400 visitors daily. Author: Sabine Peschel / kbm aw/sms (dpa, AP)", -876,2017/2/9,http://www.dw.com/en/brussels-set-to-host-she-decides-meeting-to-counter-us-anti-abortion-policy/a-37477125?maca=en-rss-en-all-1573-rdf,Brussels set to host 'She Decides' meeting to counter US anti-abortion policy,Members of the international community hope a donor summit will raise enough money to keep charities that perform abortions running. The move comes as US President Trump cut funding to the groups.,"Belgium is preparing to host an international conference focused on raising money for international charities that provide women with access to safe abortions. Representatives from more than 50 countries are expected to attend the meeting on March 2, alongside development aid ministers from Belgium, Denmark, Sweden and the Netherlands. Belgium's minister for foreign trade and development, Alexander De Croo, told reporters on Thursday that the conference ""will join forces and rally support for all these efforts that make sexual and reproductive health and rights a reality.""?Global backlash against Trump decision Surrounded by men, Trump cut US funding for non-US charities that provide information about abortion The announcement comes shortly after US President Donald Trump reintroduced the so-called Global Gag Rule, also known as the Mexico City Policy, concerning abortion. First introduced by President Ronald Reagan in 1984, the order prevents international organizations from receiving US aid funding if they offer women access to abortion-or counseling services and referrals to abortion providers.-The law had since been reversed by Democratic presidents and restored Republican ones. Swedish Deputy Prime Minister Isabella Lovin said the international community ""would not roll back several decades"" on abortion rights. ""Information about safe abortions has helped fewer girls become pregnant and allowed them to go to school and get an education,"" she said. ""We shall mobilize political and financial support and show there is a counter force to the troubling trend we see in the United States and other parts of the world."" Lovin drew media attention last week after she released a photograph of herself surrounded by female colleagues signing a climate change law. It was considered by many as a thinly veiled criticism of the all-male audience Trump had when signing the order on to halt foreign abortion funding. Fixing-the funding gap One of the main goals of the conference is to restore funds to organizations which have been impacted by the US's sudden withdrawal. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WT9z A crowdfunding campaign was originally launched by the Dutch government on January 28 to allow private donations to the international fund, Global Fundraising Initiative She Decides. The Netherlands initially donated 10 million euros to the fund, followed by contributions from Belgium and Denmark to bring the combined total to 30 million euros. It is estimated that the funding gap created by the US is at least 600 million euros. A Swedish government spokeswoman said it was too soon to predict how much money the conference could raise. im/sms (AFP, AP, dpa)", -877,2017/2/9,http://www.dw.com/en/hunting-for-fake-news/a-37478731?maca=en-rss-en-all-1573-rdf,Hunting for fake news,"Fearing Russian influence and hacking, Dutch authorities plan to count election ballots by hand this year. Angela Merkel is being attacked in fake news spread by right-wing extremists. How can Europe protect itself?","It was the largest movement of US troops in decades. On January 12, 2017, four years after the last American tank had been withdrawn from Europe, the US Army's 3rd Armored Brigade Combat Team was transferred to Poland. Over 3,000 soldiers, 87 tanks and hundreds of motor vehicles left the northern German port city of Bremerhaven to join local forces on the eastern Polish border. Photographers and camera teams were documenting the move and the public was allowed to watch as the political message to Moscow was intentional. Miraculous multiplication of tanks An obscure website in separatist eastern Ukraine reported a miraculous multiplication of tanks. The ""Donbass News agency"" wrote that the United States had transferred 3,600 tanks to the Russian border. The report claimed that the massive military march was directed against Russia. The separatist 'Donbass News Agency' in eastern Ukraine turned 87 US tanks into 3,600 Ben Nimmo from the Atlantic Council is one of approximately 400 experts who help a small team of 11 people at the EU Foreign Service identify fake news. He uses the tank story to show how news stories are passed around from one website to the next and then politically instrumentalized. The Donbass News Agency did actually get the figure of 3,600 tanks from a real source. If you count all the vehicles, including the ones in reserve in the Netherlands, they add up to 3,600; however, the figure includes jeeps, trailers and Humvees. All the vehicles were suddenly seen as tanks. Defense analyst Ben Nimmo is a professional fake news hunter It was obvious that this false report was published intentionally. ""This is typical of fake news,"" said Nimmo. ""There is a kernel of truth in them and it is then embellished by a lot of rubbish."" Journey through the web The tank story later appeared on a Canadian website known for spreading conspiracy theories. It reacted to the tank story with the headline: ""Political insanity."" The story was blown up yet again, shared with other pro-Russian websites and then finally picked up by the Russia's Ria Novosti news agency. Canada's 'Global Research' called the supposed 3,600 US tanks 'political insanity' This is actually the key to the problem, explains Ben Nimmo. The news agency gives the fake article credibility. He pursued the story's path further to the former Soviet Union, to Latvia, and the website of a Norwegian communist who later deleted it after it was obvious that the story was unfounded. ""That is exactly where the danger lies,"" Nimmo said. ""Fake news stories are as credible as their distributor and not the original source. And Ria Novosti obviously made the story look true."" How do you fight fake news? In addition to the propaganda originating from Russian sources, countless fake news stories are going around because money can be earned from advertising on the websites that publish the false stories. In order to identify the fake news, one has to search for evidence and follow a story step by step from its source. ""Spreading fake news is a serious allegation. You have to prove it,"" said Nimmo. Several European governments, like those of France and Germany, have set up special task forces to deal with the problem. The 'Center for Global Strategic Monitoring', a self-proclaimed think tank, gave weight to the story Nimmo says that anyone who knows their way around the Internet can search for fake news. ""You do not need to have a master of technology. You just need time and you need to be familiar with social media outlets and how they work together - everyone knows how to do that."" However, experts are still needed to solve difficult and unusual cases, Nimmo said, but they must also teach interested citizens the art of uncovering fake news. If more people got involved, the detection rate would improve and then the political effect of fake news would wane. Nimmo had one more piece of advice to offer: ""The key is emotion. If a story appeals to your feelings, be they anger or rejection, and not your thoughts, then you have to check it."" Europe's enemies ""The dangerous thing is that the governments of several countries want to undermine the EU. Russia is the most important example but Turkey is also involved,"" said Marc Pierini from Carnegie Europe, adding now that the US government is publishing its own confusing reports, the situation will not improve. ""Russia employs a great deal of people and spends a lot of money to spread fake news; the EU and its members states cannot keep up,"" said Pierini. That is why everyone must help - the media and civil society - and be particularly cautious before elections, he added, because this modern form of propaganda has become a political instrument for several governments. Pierini does not see any danger in the present flow of fake news from Russia. ""What I fear is reports from the National Front in France, [Prime Minister Viktor] Orban in Hungary and others who are close to Russia or funded by Russia,"" he said. ""They tell people, for example, that they would be better off outside the EU and without the euro. And because the traditional left-wing or conservative parties have lost their value, there is a real danger.""", -878,2017/2/9,http://www.dw.com/en/berlin-court-rules-in-favor-of-hijab-wearing-teacher/a-37477936?maca=en-rss-en-all-1573-rdf,Berlin court rules in favor of hijab-wearing teacher,Berlin's Labor Court has ruled that the city violated a teacher's rights by denying her a job. The woman had been told that she could not wear her headscarf while working because of an ideological neutrality law.,"Berlin may not deny candidates for teaching positions at public schools because they wear a Muslim headscarf, a court ruled on Thursday. The decision came after a woman was told she could not teach at an elementary school because her hijab violated the state of Berlin's neutrality law. The defendant, who had worked in Berlin as an Islamic religious studies teacher for several years, had appealed a January 2015 decision in favor of the state government. Now, she has been awarded two months salary and part of her legal costs as restitution from the government. ""We are very satisfied and relieved,"" said her attorney, Maryam Hashemi. The court ruled that it was within the school's purview to grant the defendant an exception to the neutrality law on the grounds of religious freedom. By simply dismissing her candidacy because of the hijab, the court said, the school had broken anti-discrimination statutes. Berlin would have had to prove that wearing a headscarf constituted a ""concrete threat to peace at the school,"" which it was unable to do. The state argued that it had tried to come to an agreement with the applicant, suggesting that she wear a wig instead because it was ""ideologically neutral."" The defendant's lawyer scoffed at the suggestion, saying that ""for religious reasons,"" wearing a wig was out of the question. Germany's top court has already ruled twice that all-out bans on Muslim headscarves in the public sector are unconstitutional. Germany has eschewed decisions made by neighbors like France and the Netherlands in cracking down on the wearing of Islamic religious garb such as the burka. es/sms (AFP, dpa)", -879,2017/2/9,http://www.dw.com/en/german-gold-repatriation-ahead-of-schedule/a-37477837?maca=en-rss-en-all-1573-rdf,German gold repatriation ahead of schedule,"Germany's central bank has sped up the process of bringing its gold home from foreign vaults, moving more than 200 tons from New York and Paris in 2016 under a plan devised in the wake of Europe's debt crisis.","The Bundesbank announced on Thursday that it had relocated some 216 tons of the precious metal to its headquarters in Frankfurt last year, including 111 tons from New York and 105 from Paris. That amount meant an increase over the 2015 total of 210 tons, while 2014 saw 120 tons moved and 2013 just 37 tons, Germany's central bank said in a statement. Until the collapse of the Soviet Union, Germany had kept most of its gold reserves of well over 3,000 tons outside the country for fear they might fall into the hands of the Soviets in the event of a war. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2TFGK Crisis fears In the aftermath of the 2008 global financial crisis and the-2010 sovereign debt crisis in Europe, another scare emerged that there might be less gold in the foreign vaults than claimed because it had been tinkered with, or that Germany might not be able to retrieve it. In 2013, the Bundesbank finally launched a relocation program to appease lawmakers and the public who-had demanded more transparency about how much gold it held and where. Originally, the plan called for the majority of the stock to be held in Germany by 2020, including all of the bank's remaining gold in Paris. Now it seems the Bundesbank will achieve this goal ahead of time because 47.9 percent of the total, or 1,619 tons, were repatriated already by December 2016. Bundesbank board member Carl-Ludwig Thiele said that-all of the 300 tons scheduled to be relocated from New York, for example, were brought back last year. Nevertheless, New York banks still hold 1,236 tons of German cold compared with 432 tons in London and 91 tons in Paris. Thiele said that the Bundesbank didn't plan-any further relocation beyond what had been planned.- uhe/sri (AFP, dpa) -", -880,2017/2/9,http://www.dw.com/en/eu-resumes-aid-to-gambia-s-new-government/a-37476529?maca=en-rss-en-all-1573-rdf,EU resumes aid to Gambia's new government,The EU has resumed aid to Gambia as a new government pledges to carry out reforms and respect of human rights. The EU had cut off aid to the country under former strongman leader Jammeh.,"The European Union pledged on Thursday to provide Gambia's new democratically elected government-75 million euros ($80 million), two years after cutting aid due to human rights abuses by former President Yahya Jammeh. Adama Barrow (pictured), the new president, has vowed to reform-security services, respect human rights and improve the foreign relations of the tiny West African after defeating Jammeh in December elections. After ruling for nearly 23 years, Jammeh refused to step down and went into exile in January after coming under international pressure and West African troops entered the country. Jammeh has been accused of torture, killings and other human rights abuses, leading to poor relations with the EU and the expulsion of the bloc's charge d'affaires in 2015. EU commissioner for international cooperation and development, Neven Mimica, said in the capital, Banjul, on Thursday that the aid package to one of the world's poorest countries would be used to build the capacity of the state, increase food security and boost jobs. ""The visit is a clear signal of the EU's readiness to provide immediate financial and technical support to the democratic process in The Gambia,"" Mimica told reporters. He added the EU was preparing a 150 million euro medium-term assistance package. A country of only 2 million people, Gambia's weak economy and years of political repression have made it one of the leading source countries of migrants trying to reach Europe from Africa. Also on Thursday, Gambia committed to reversing its decision to withdraw from the International Criminal Court, Mimica said.- Separately, a group of West African nations announced they would extend for three months a troop presence in Gambia as Barrow attempts to clean up the army and intelligence services, parts of which became a personal tool for Jammeh to carry out repression. cw/sms (AFP, Reuters) -", -881,2017/2/9,http://www.dw.com/en/america-first-japan-second/a-37477755?maca=en-rss-en-all-1573-rdf,"America first, Japan second",Donald Trump's upcoming meeting with Japanese Prime Minister Shinzo Abe is a test of whether or not the US president's protectionist tone with close allies translates into action. Martin Fritz reports from Tokyo.,"Golf is known around the world as an icebreaker. At their first meeting at Trump Tower shortly after Trump's election victory in November, Japanese Prime Minister Shinzo Abe brought a golf club as a gift. In return he received a golf polo shirt from Trump. On Friday, Abe will meet Trump again at the White House and on Saturday the two will play a round of golf together at Trump's luxury golf course and ""Winter White House""- Mar-a-lago in Palm Beach Florida. White House spokesman Sean Spicer said the invitation to Trump's private club is ""a testament to the importance the United States places on the bilateral relationship and the strength of our alliance and the deep economic ties between the United States and Japan."" 'Strength of the alliance' During his visit with Trump, Abe wants to ensure that Washington continues to support its close security partnership with Japan. US Secretary of Defense James Mattis said last week during a visit to Japan that the that US stood ""100 percent shoulder to shoulder"" with Japan, adding that Japan was an ideal example of sharing the costs of stationing US troops. Abe wants to ensure that Washington continues to support its close security partnership with Japan But Abe wants to hear for himself from Trump how US engagement in Asia is going to look in the future. For example, Japan has concerns that in the case of an economic agreement between China and the US, the-security issues may not be sufficiently taken into account. Growth and employment initiative Abe's other goal is to mitigate Trump's criticism of ""unfair"" trade between the US and Japan along with alleged ""devaluation"" of Japanese currency. ""I want to make clear that both sides have advantages with trade,"" said Abe to the Japanese parliament before his departure. Abe is also brining along a ""US-Japan Growth and Employment Initiative."" The paper outlines a plan that would potentially create 700,000 new jobs in the US and invest $450 billion in new markets like infrastructure, robotics, artificial intelligence, developing the Internet and even space exploration. Other items on an unofficial wish list include high-speed trains along with super-efficient gas and compact nuclear power plants. Japanese companies are concerned According to a report in the ""Financial Times,"" the government in Tokyo has been requesting figures for development plans in the US. The number should be so high that Trump will want to post it on Twitter after meeting with Abe. Defense ties with the US are paramount for Japan But many companies are hesitant. For example, Toyota promised an investment of $10 billion (9.36 billion euros) over five years, which had already been planned. However, Toyota does not want to give up on exporting 1 million vehicles every year to the US. The Japanese auto parts supplier, Nisshinbo, also recently scrapped plans for a new production center in Mexico, even though, according to a spokesperson, the country is a preferred location for a North American factory. Trump's statements on trade policy are said to be the reasoning behind the change of opinion. According to reports, Nisshinbo wants to invest 83.5 million for a new brake parts factory. Rescuing the TPP Japan's government is still not giving up on trying to rescuing the Trans-Pacific Partnership (TPP) in the medium term. A first step in this direction for Japan is proposing a new framework for discussing economic and monetary affairs. The framework would put US Vice President Mike Pence and Japanese Finance Minister Taro Aso in charge of setting rules for both sides regulating fair trade and investments while also discussing job creation in the US. Japan's government is still not giving up on the TPP Japanese media is reporting that Abe will try and convince Trump about the benefits of this new framework. Additionally, Japan has promised that the rules would be nearly identical to the TPP and could be applied to the rest of Asia. However, Abe wants to avoid implying that a bilateral trade agreement with the US is just a TPP replacement. Abe invested a lot of political capital in the TPP, and in bilateral negotiations, Trump would demand changes that favor the US. ""Japan would have significant disadvantages in these negotiations,"" a Japanese government official told the Japanese newspaper ""Tokyo Shimbun."" ""A bilateral agreement would be suicide for Abe or any other Japanese prime minister,"" Deborah Elms, executive director at the Asian Trade Center in Singapore, told DW. A possible solution for Abe would be to make proposals to Trump about how to reduce a trade deficit, for example by buying shale gas or military aircraft and weapons systems.", -882,2017/2/9,http://www.dw.com/en/charlie-hebdo-issues-cover-in-solidarity-with-spiegel-on-trump/a-37473352?maca=en-rss-en-all-1573-rdf,'Charlie Hebdo' issues cover in solidarity with 'Spiegel' on Trump,The German edition of satirical magazine 'Charlie Hebdo' has published a message of solidarity with magazine 'Der Spiegel' over its recent controversial Trump cover.,"German Chancellor Angela Merkel is seen in the caricature holding-a bloody knife in one hand and the separated head of the new leader of the Social Democrat Party (SPD) Martin Schulz in the other-on the cover of this week's German edition of ""Charlie Hebdo."" The tagline reads: ""Spiegel readers out of control"" (Spiegel-Leser ausser Rand und Band). The editor-in-chief of the weekly ""Der Spiegel"" news magazine this week defended his magazine's front cover illustration of US President Donald Trump holding the severed head of the Statue of Liberty after widespread condemnation in the German and wider media. With most Germans seeing the US as nearly as big a threat as Russia since Trump took office, Der Spiegel's front page illustration perhaps sums up the pulse of many in Germany, depicting the new US president carrying a knife in one hand and holding the decapitated head of the Statue of Liberty, the ultimate symbol of freedom, in the other. It was drawn by Cuban-born artist Edel Rodriguez. The New Yorker magazine has made no secret of its dislike of Trump's election victory. The US weekly stays with the Statue of Liberty theme, illustrating just the arm of the Roman goddess of Libertas - who is carrying a torch that is said to light the way to freedom - only the torch has been extinguished. The illustration is entitled ""Liberty's flameout"" by artist John W. Tomac. The Economist front cover underscores its coverage of Trump's first days in office. The British weekly described how the real estate magnate had already ""lobbed the first Molotov cocktail of policies and executive orders against the capital's brilliant-white porticos."" It warned that the world ""should prepare for trouble"" now that there's an insurgent in the White House. Opting for a photo of Trump's chief strategist along with the headline ""The Great Manipulator,"" Time magazine asks whether Steve Bannon is the second most powerful man in America, pointing to his ""mind-meld with Trump."" The US weekly said the two are both ""talkative and brash, pugnacious money magnets who never quite fit among the elite."" French daily Liberation turned the stripes of the American flag into barbed wire to symbolize Trump's protectionist rhetoric, including the plan to build a border wall with Mexico and his entry ban on citizens of seven countries. Asking 'Can we stop him?' the paper accuses the new US leader of taking America to the edge of democracy with decisions that have divided his country and the world. Author: Nik Martin In January, Schulz was officially chosen as the SPD's candidate for the Chancellery in September's parliamentary elections. ""This is a gesture of respect for our colleagues in Hamburg [a reference to Spiegel's editorial office in the northern German city],"" the editor-in-chief of the German edition of ""Charlie Hebdo"" - using the pseudonym Minka Schneider - told the German news agency DPA on Wednesday, the day before the next issue was due to hit newsstands. ""What shocked us most was the negative response,"" Schneider said. ""We think this cover is pretty good."" ""We know the accusations about violating sound journalistic customs all too well,"" an editorial in this week's issue reads.-""We are in the same boat, because at the-center of this spat - in your-case as in ours - is-the debate about freedom of opinion and the way it which you use it. Or don't."" The German version of ""Charlie Hebdo"" hit German newsstands in late November. It is its first foreign-language edition and was started-almost two years after its Paris staff was almost wiped out in a deadly jihadi attack.", -883,2017/2/9,http://www.dw.com/en/a-look-at-deportation-policy-in-germany/a-37475912?maca=en-rss-en-all-1573-rdf,A look at deportation policy in Germany,Deportations of rejected asylum seekers have been a point of controversy in German politics over the past few months. Here's a look at the deportation debate and statistics.,"In recent months, the German government has been speeding up deportation processes for those migrants who do not receive refugee protection.- The news agency AFP reported on Thursday-that around 80,000 migrants in total had left Germany in 2016, out of a total of 280,000 asylum seekers that arrived in the country last year. Of that number, 54,000 returned home voluntarily while the rest had been deported, either by charter plane or by other means of transportation over land or sea, according to a statement by German Interior Minister Thomas de Mazi��re in January. Although there has been a drop in the number of asylum seekers since 2015 - when nearly 900,000 refugees entered Germany --the government has made a push for migrants to return home by choice. Recent programs, such as the ""Starthilfe Plus"" that started February, will pay a fee of up to 1200 Euros to migrants who return home voluntarily. Why is this a debate now? Meanwhile, German Chancellor Angela Merkel has unveiled-a new 16-point plan to speed up deportations ahead of-federal elections that will be held in September. Merkel hopes that the push for more deportations could rally her conservative base behind her against the populist Alternative for Germany (AFD) party, which has been critical of the chancellor's-open-door policy towards asylum seekers, even calling for asylum seekers to be sent to islands outside of Europe. Concerns over security in Germany have further increased pressure on the chancellor. In December of last year, Tunisian migrant Anis Amri drove a truck into a crowded Christmas market in Berlin, killing 12 and injuring 56 people. Amri had not been granted asylum, but he couldn't be deported to due his home country of Tunisia not being certain of his nationality.- Germany has wanted to make it easier to deport those failed asylum seekers, especially those who could be a threat to national security. Other attacks in Europe, such as the-2015 Paris attacks and the-2016 attacks in Brussels and Nice, have made people more critical of who is let into the country as some of the perpetrators had received training in Syria from the ""Islamic State"" and had returned back to Europe. Critics of deportation On the left, the Social Democrats (SPD) and their candidate for chancellor,-Martin Schulz and his party have been critical of Merkel's more hard-line deportation policy over the past few months.- In particular, the SPD has-contested the deportations of migrants to Afghanistan, which the party believes is not a safe country of return due to the unstable security situation there. Fighting between the Taliban and the Afghan government still continues in many parts of the country and-11,900 Afghan nationals in Germany were slated for deportation since mid-December. State governments controlled by the SPD, such as-Rhineland - Palatinate and Lower Saxony, have been holding up deportations, according to German news outlet, ""Der Spiegel.""-- Deportation policy is ultimately up to governments of German federal states to decide, but the federal government is looking into new measures that will enable it to deny residence permits to asylum seekers and carry out deportations faster.", -884,2017/2/9,http://www.dw.com/en/german-cdu-politician-pledges-more-support-for-deutsche-welle/a-37474514?maca=en-rss-en-all-1573-rdf,German CDU politician pledges more support for Deutsche Welle,"In reaction to the spread of ""fake news"" and disinformation campaigns from abroad, German Christian Democrat politician Marco Wanderwitz has called for more financial support for Deutsche Welle.","Germany's -Christian Democrats (CDU) want to expand the scope and financial support of Germany's international broadcaster Deutsche Welle (DW), politician Marco Wanderwitz said on Thursday. The goal of such an expansion would be to turn DW into a ""counterweight for disinformation and propaganda"" from abroad, Wanderwitz said in an interview with several German newspapers belonging to the ""Funke Media Group."" Wanderwitz is the media spokesman for the CDU and a member of the DW-broadcasting council. CDU politician Marco Wanderwitz ""If we look at how other states fund their international broadcasters and, in part, want to deliberately influence opinions in Germany, it's clear - Deutsche Welle must be perceived as an important voice of the free world."" Therefore, Chancellor Angela Merkel's CDU party intends to increase financial support for DW in order to ""raise it to the level"" of other state's larger international broadcasters. Strong programming With their appeal for supporting public broadcasting, the CDU distanced itself from the populist Alterative for Germany (AfD) party. Wanderwitz said he never thought it would ever be necessary again to emphasize the importance of press and broadcasting freedom. ""Today, more than ever, we need powerful broadcasters with a strong program that informs and makes sense of events,"" he said. Green Party MP Volker Beck wrote on Twitter that he supports expanding DW, but that it could require some reconfiguring. ""I think it's a good idea to make a real international broadcaster out of Deutsche Welle. But then you have to really rebuild and expand,"" he tweeted. Unlike other German public broadcasters ARD and ZDF, Deutsche Welle is not financed through state media fees, but rather completely through tax money. rs/rt-(AFP, dpa, epd, KNA)", -885,2017/2/9,http://www.dw.com/en/romania-justice-minister-resigns-over-anti-corruption-protests/a-37475601?maca=en-rss-en-all-1573-rdf,Romania justice minister resigns over anti-corruption protests,Romanian Justice Minister Florin Iordache has stepped down over an anti-graft law that sparked mass protests and international condemnation. Critics said the law would have protected corrupt politicians from prosecution.,"Romania's justice minister, Florin Iordache, resigned on Thursday following five days of mass protests after the government passed an emergency law that would have legalized some forms of political graft. The law was repealed on Sunday, but protests have continued with some demonstrators calling for the resignation of the entire government. ""I have decided to offer my resignation,"" Iordache told reporters at a press conference, adding that his initiatives were ""legal and constitutional"" but had failed to placate ""public opinion."" The decree, crafted by Iordache, would have spared politicians from criminal prosecution for receiving bribes of up to $48,000. The law was condemned in Romania and internationally as a step backwards in the country's crackdown on corruption. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XCJE Prime Minister Sorin Grindeanu blamed Iordache for what he described as poor communication with the public over the graft law. The decree sparked the largest protests not seen in Romania since the toppling-of Communist leader Nicolae Ceausescu. Protesters have vowed to continue rallying until the government steps down. However, Grindeanu's-Social Democratic government on Wednesday easily survived a no-confidence motion despite the ongoing demonstrations. Government officials have said they still plan to introduce another version of the law in Parliament, where the government's coalition enjoys a majority. Grindeanu only took office last month, after the Social Democrats recorded a strong victory in the December elections. dm/sms (AP, dpa, AFP)", -886,2017/2/9,http://www.dw.com/en/is-2017-the-year-human-spaceflight-returns/a-37474242?maca=en-rss-en-all-1573-rdf,Is 2017 the year human spaceflight returns?,"This could be a special year for human spaceflight. Europe and the US are collaborating and progressing with the Orion spacecraft, and next week, SpaceX inaugurates a revamped launch site in part for human cargo.","To call it a space race at this stage would be odd, not to mention misleading. What we're seeing now is more like a sprint, or a dash, where all the competitors are holding hands to the finish. First, both the Europeans and Americans are keen on human spaceflight. And they know they can't do it alone - nations are pooling resources as much with each other as they are with commercial space enterprises. So much is clear. And as a result it will be a European Service Module that propels NASA's Orion spacecraft beyond the moon and back in 2018. But there are further plans to build a second module for another mission, possibly in 2021, that will carry astronauts. If this happens, and no other mob trumps it, the mission will be the first to take humans beyond low orbit since 1972. The mission will be powered by European hardware. It will provide water, thermal control and atmosphere for a crew of up to four astronauts. Next week, the European Space Agency and Airbus Defence and Space sign off on an agreement with NASA, and they will get things started. The community, even in Europe, has embraced a public-private approach to space. ""Involving the commercial sector and their new fresh ideas, of course it's a good idea,"" says David Parker, ESA's head of Human Spaceflight and Robotic Exploration. ""There are fantastic entrepreneurs out there who may provide a telecommunications service around the moon so that everybody can have the telecommunications for their lunar lander or their astronauts."" Modern launch pad Then there's SpaceX, one of the commercial providers that has been delivering supplies to the International Space Station. It plans to inaugurate a revamped, fourth launch facility - a modified NASA launch complex in Florida known as ""39A"" - also next week. ESA's David Parker used to head the UK Space Agency. The UK has long focused on the commercial benefits of space NASA's Space Shuttles launched from 39A (before they were grounded). They were the last of America's human space capability. Activating 39A may well help SpaceX clear a current backlog of about 70 flights. It's also another step in NASA's plans to have SpaceX and Airbus competitor, Boeing, ferry astronauts to the International Space Station-by the end of 2017. The SpaceX rocket, Falcon 9, which carries a Dragon capsule, launches from 39A. Boeing has its CST-100 spacecraft. All this commercial enterprise will, however, come at a cost. ""Of course it will be a commercial service, but bringing that kind of entrepreneurial spirit, I don't think it's a bad thing,"" says Parker. For science and riches Historically, says Parker, people have explored for various reasons. During the gold rushes of the Wild West and Australia, for instance, some will have gone for the riches and others for the pure exploration, the science. But space is such an untapped resource, there's so much we don't know,-what it is, how it ""functions,"" or how much it's worth. So are we really prepared to let this rejuvenated age of entrepreneurial space exploration develop on a ""wait-and-see"" basis? Just look at the internet if you're wondering where that kind of attitude may lead us. That said, skeptics like me may have to endure a few entrepreneurs earning bucket loads in the short-term, and hang on for the long-term benefits for the rest of humanity. Economics Minister Brigitte Zypries shares a mobile moment with astronaut Matthias Maurer and ESA chief Jan W?rner ""When we understand the other 90 percent of the physics, imagine what relevance that might have to everyday life,"" says Parker. ""Just as you rely on a mobile telephone today, you don't think about electromagnetic wave theory, do you? But fundamental physics is built into your phone."" Equal opportunities? So finally what about our investment in people as we take this next step? We talk about ""manned"" missions to the moon. But does that include women? Germany's Economics Minister Brigitte Zypries, whose department is responsible for space activity, certainly hopes so. ""A lot of women are interested,"" says Zypries. ""About 900 women applied through the initiative, ""Die Astronautin [The astronauts]."" They're working with ESA and we'll find out soon who's among the final 10 candidates. So, first, let's select one or two of them. But we also have to make sure women continue to be interested in technical professions, and we can only encourage them by saying, 'Get stuck in, you can do it.'"" David Parker can do little but agree. And he sees the number of opportunities for people getting to space, wherever or whatever they are, as commercial and public human spaceflight takes off.-- ""With the Americans building not one, not two, but three new space vehicles that will take astronauts into space, up to the space station, and also beyond as we look to heading back to the moon and onto Mars, the opportunities are going to increase,"" says Parker. ""And there will be different ways for people to get up into space, maybe even commercially. The more people that experience going to space the better.""", -887,2017/2/9,http://www.dw.com/en/german-doctor-re-ignites-debate-after-banning-abortions-in-clinic/a-37473718?maca=en-rss-en-all-1573-rdf,German doctor re-ignites debate after banning abortions in clinic,"When the chief physician of a German hospital decided not to perform abortions on religious grounds, he triggered a heated debate on an almost forgotten topic: Is it legal to refuse women an abortion?","Doctor Thomas B?rner is a devout Christian and a gynaecologist with 26 years experience. Since 2010, he has worked at-the Capio Elbe-Jeetzel Clinic in the northern German town of Dannenberg, where 31 abortions were conducted in 2016 alone. None of them were conducted by B?rner himself. And when he was promoted to head physician in December 2016, he decreed that abortions would no longer be performed in the hospital, citing his personal religious belief that life is to be protected under all circumstances. Many western countries have Right to Life and Right to Abortion movements and their various annual rallies - some bigger, some smaller. Here's what it's like in Germany. (18.09.2015) The number of German women terminating a pregnancy has been falling over the last 10 years. The figures come days before the morning after pill becomes available over the counter without prescription. (10.03.2015) German women seeking abortions at a late stage of pregnancy will be required to undergo a consideration period of at least three days before a physician can make a final decision, the parliament has decided. (14.05.2009) Such a single-handed decision by an individual doctor is a first in Germany. The hospital in question is run by the Capio group, one of the major providers of healthcare across Europe. B?rner's bosses backed him initially, arguing that women could turn to other hospitals in the region. But the case triggered a heated debate across the country. The legal situation In Germany, any woman above the age of 18 can have an abortion in the first 12 weeks after conception. However, she must be able to show documentation that she underwent compulsory counseling in a state-approved center at least three days prior to the operation. Rape victims are an exception. They do not need to undergo such counseling and-can terminate a pregnancy by providing a doctor's certificate. In such cases, medical fees are covered by the patient's health insurance.-In all other cases, the women need to pay themselves. If the woman is under the age of 18, she needs the consent of a parent or guardian to proceed. Abortions carried out-12 weeks after conception are illegal and punishable by up to three years in prison. An abortion can be conducted through an abortion pill in the very early stages of pregnancy, or as surgical procedure. Not every hospital is obliged to perform abortions, but health authorities must ensure every woman can easily reach a hospital or clinic that does provide abortions. A matter of precedence The situation of the Dannenberg clinic is special, however, as it is the only hospital in the region with-a gynaecological department. The owners of the Capio Elbe-Jeetzel clinic are in discussion with staff about abortion procedures No German doctor ""?or other medical staff - can be forced to conduct or assist with abortions. They can refuse this without giving any reason. Church-run hospitals in Germany do not perform abortions. Medical emergencies, however, are a different matter.-No doctor may deny a woman an abortion if her life were otherwise at risk. Also Germany's highest administrative court has ruled-that willingness to allow legal abortions is a prerequisite for the appointment of any chief physician. Resurgence of an old debate The Dannenberg case is unique because a single doctor decided to refuse abortions based on his personal beliefs in a hospital which is not a church-run institution. 'My body, my decision' reads the placard of anti-abortion campaigner Germany's current legislation was introduced in 1992. Before that there had been a long debate between those who wanted abortions to remain illegal, in accordance with paragraph 218 of the country's criminal code. The pro-life camp sees it as ethically indispensible to unconditionally protect every form of life from the day of its conception. The pro-choice side believes in women's self-determination. It is an argument that is being played out around the globe. Conservative politicians in Germany were quick to praise Doctor B?rner for his ""brave move."" In Dannenberg, meanwhile, management changed its tune, stressing the clinic's commitment to providing health care in accordance with Germany's laws and regulations. ""We accept personal decisions, but departmental organization is a matter for the public authorities,"" CEO Martin Reitz told the news agency epd.- Doctor B?rner has vowed to stick to his ethical principles and has promised to bear the consequences this may have for his professional future. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WTpz -", -888,2017/2/9,http://www.dw.com/en/french-chef-alleno-earns-sixth-michelin-star-as-haute-cuisine-gets-uncomplicated/a-37475479?maca=en-rss-en-all-1573-rdf,French chef Alleno earns sixth Michelin star as haute cuisine gets 'uncomplicated',"France now boasts 27 three-star restaurants and, between his two restaurants, culinary wizard Yannick Alleno has six stars to his name. According to the Michelin Guide, haute cuisine is going ""ecological and economical.""","The latest additions to France's prestigious Michelin Guide were revealed Thursday in Paris. Only one restaurant was added to the three-star list: Le 1947 in the exclusive ski resort of Courchevel. Head chef Yannick Alleno reacted to the award by-tweeting-that he was ""beyond happiness,"" and congratulated his teams both at Le 1947 and at his Paris restaurant Le Pavillon Ledoyen, which already holds three Michelin stars. Michael Ellis, the American-French head of the Michelin Guide, called the cuisine at Le 1947 ""extremely technical, creative and tasty."" Menus there range from 127 to 450 euros ($135-480), not including wine, and feature dishes such as steamed scallops with celery extract and caviar. While Alleno's house was the only restaurant in France to receive a third star this year, 12 were added to the two-star list and 57 to the one-star list. In total, France now has 27 one-star restaurants, 86 with two stars and 503 one-star locations. The Paris hotel Le George V was already home to a three-star restaurant, but won stars for two others within its house, making it the first hotel in Europe to boast three Michelin-starred restaurants. While dining at Le 1947 or one of the Le George V locations may be out of reach for most customers, Ellis pointed out that there are several eateries in the 2017 Michelin Guide that won't break the bank. Lunch is available for 25 euros at the one-star Auberge Tiegezh in Guer, while Paris' one-star Restaurant H offers 30-euro lunches and 50-euro dinners. ""There has been a trend among chefs to favor uncomplicated dishes with often simple ingredients, local and in season, with short menus that change frequently,"" noted Ellis.-""It's both ecological and economical."" Tire maker Michelin started publishing its restaurant guides over a century ago in a bid-to encourage travel by car - and thus more tire sales. The guides have since established a market of their own and are available not only in France but in 28 countries worldwide. kbm/eg (AFP, dpa) -", -889,2017/2/9,http://www.dw.com/en/how-will-bayern-munich-replace-philipp-lahm/a-37471916?maca=en-rss-en-all-1573-rdf,How will Bayern Munich replace Philipp Lahm?,"Philipp Lahm's retirement will leave a big hole for Bayern Munich, and not just in terms of leadership. DW goes through the possible replacements for Bayern's retiring captain at right back.","How do you replace one of Bayern's best ever players? Some would say the task is impossible, but it is a question the Bundesliga champions-will have to answer when-Philipp Lahm retires at the end of-the season. Bayern have plenty of players qualified to take the captaincy in Lahm's stead, but a replacement at right back may be a little harder to find. Here are a few of the players Bayern might turn to. In-house options Rafinha initially seems the obvious-choice to replace Lahm, purely as a result of his place in the Bayern pecking order. The Brazilian-is no stranger to filling Lahm's shoes and-he did just that in-the 2013-14 season, when Pep Guardiola moved Lahm to center midfield. Rafinha is just two years younger than Lahm and only under contract until-the end of the next-season, but he would be a solid interim option as Bayern seek a long-term replacement. Joshua Kimmich replaced Philipp Lahm at right back in Euro 2016 That could be-Joshua Kimmich, the player who replaced Lahm in the German backline after his retirement in 2014. Kimmich was a revelation for Germany coach Joachim L?w at the last European Championship in France, but Ancelotti has played him more in midfield this season. Whether his future lies in midfield in defense is still unclear, and whether his ability in the middle of the park casts-doubts over whether-Kimmich is the best-replacement for Lahm in the long run. Another versatile defensive reinforcement for Bayern will arrive after the season. Sebastian Rudy, who signed a four-year contract with the club in January, has also played on the right side of defense both for club and for country. But his performances at full back did not impress L?w enough to include him in Germany's squad for Euro 2016, so-it seems unlikely that Ancelotti will commit to the Hoffenheim man-as a first choice defender. Recruiting a replacement German sports magazine Sport Bild-reported that Bayern see-Bayer Leverkusen defender Benjamin Henrichs as a possible heir to the-33-year-old. The 19-year-old came through the ranks at Leverkusen as an attacking midfielder but has played almost exclusively in defense in his first full season as a professional. He also won his first cap for the German national team in their World Cup qualifier against San Marino in November. Henrichs-has a contract with Leverkusen until June, 2020, so Bayern would have to pony up some serious-cash to pry him away from the Werkself. Benjamin Henrichs (left) has impressed for Leverkusen this season Bayern has also reportedly shown-interest in Hoffenheim defender Jeremy Toljan in the past. The 22-year-old started every one of Germany's games at the 2016 Summer Olympics in Rio, and was becoming a regular at Hoffenheim before suffering an injury during the Bundesliga's midseason break. Toljan, who like Lahm can play either side of the defense,-is only under contract until the end of the 2017-18 season,- which might make his recruitment a little less expensive. -", -890,2017/2/9,http://www.dw.com/en/germany-seventh-record-year-in-a-row/a-37473601?maca=en-rss-en-all-1573-rdf,Germany: seventh record year in a row,Tourism is booming in Germany. Overnight stays by foreigners rose to 80.8 million. The number of overnight stays in Germany was three percent higher in 2016 than the year before.,"According to new figures from the Federal Statistical Office, the number of overnight stays in Germany was three percent higher in 2016 than the year before, rising to a record 447.3 million. The attacks in W��rzburg and Ansbach last summer and the attack in Berlin in December that killed twelve people and injured many more had raised concerns that visitors might stay away. Overnight stays by foreigners rose one percent to 80.8 million. Germans accounted for the other 366.5 million. That figure was up three percent. The numbers refer to stays in hotels and other commercial establishments with 10 or more beds and in tourist campsites isi/at/ec (dpa)", -891,2017/2/9,http://www.dw.com/en/merkel-pushes-german-states-for-more-migrant-deportations/a-37470199?maca=en-rss-en-all-1573-rdf,Merkel pushes German states for more migrant deportations,"Merkel sought to secure a plan to quickly deport rejected asylum-seekers in a meeting with state premiers. Although deportations are a state matter, the federal government made it clear it wants to play a bigger role.","Deportations of rejected asylum seekers have been a point of controversy in German politics over the past few months. Here's a look at the deportation debate and statistics. (09.02.2017) German Interior Minister Thomas de Maiziere has said the federal government should be allowed to deport asylum seekers who pose a security risk. Detention centers are part of plans to expand Berlin's security powers. (03.01.2017) A program to pay asylum applicants in Germany to return to their home countries, often before a decision is made on their status, has begun. The government wants to increase the number of people who choose to leave. (01.02.2017) Fingerprints are making headlines in Germany. At the height of the refugee crisis, newcomers entered without immigration controls. One result: benefit fraud. It must be stopped, says Joachim Stamp from the FDP. (08.02.2017) The German government has presented its new plans for keeping the country safe from terrorism. They involve ankle tags and extended pre-deportation incarceration - but critics wonder if it will make a difference. (10.01.2017) The German government has revealed how many young refugees were denied asylum following a parliamentary inquiry launched by the Greens. The government has said the minors failed to meet asylum requirements. (08.02.2017) German Chancellor Angela Merkel-met with the premiers of Germany's 16 states in Berlin on Thursday to discuss a plan that will-speed up the deportation process for migrants denied asylum. One of the main tenets of the 16-point plan concerns a central coordination center in Berlin that would include representatives from each state. Additionally, the plan calls for federal deportation centers to be set up-near airports to facilitate collective deportations. ""We have agreed that a repatriation center, where all responsible authorities are present - which to some extent already exists - should be constructed under federal authority in Potsdam,"" said Volker Bouffier, the state premier of Hesse. The proposed plan would also make it easier to deport migrants who have been deemed as threats and increase incentives for ""voluntary returns,"" where migrants receive money if they choose to leave Germany before receiving a final ruling on their asylum application. Within its federal system, Germany's individual states are responsible for carrying out deportations, but the federal government wants to be granted more powers to deny residence permits and carry out deportations itself. Increasing federal powers German Interior Minister Thomas de Maiziere, who outlined the plan last month, said on Thursday that Germany needed-a ""joint effort"" to deport people more expeditiously. ""The number of rejections is increasing, therefore, we need to do more for repatriations and deportations,"" de Maiziere said on German public broadcaster ARD's Moregenmagazin program. He also held firm on his position to continue deportations to Afghanistan, which have been criticized by some state governments. Germany's opposition Green Party criticized the government's plan to establish central departure centers on Thursday. ""This is the wrong approach,"" Green Party co-chair Simone Peter told German public broadcaster SWR.-She argued that the federal government wanted-to take on responsibilities that could be more effectively organized at the state level. She also said Berlin was supposed to present proposals for increasing security measures in Germany, rather than focusing on deportations. ""This goes beyond the original goal,"" Peters said. Merkel has been facing pressure to overhaul Germany's security structure ahead of the national election in September and in light of a truck attack on a Berlin Christmas market in December. The main suspect in the attack was rejected asylum-seeker Anis Amri who couldn't be deported as Tunisia did not initially recognize him as a citizen. rs/msh-(AP,-AFP, dpa) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2W882", -892,2017/2/9,http://www.dw.com/en/explosion-at-french-nuclear-plant-no-radiation/a-37472368?maca=en-rss-en-all-1573-rdf,"Explosion at French nuclear plant, no radiation","A fire that triggered an explosion at a French nuclear power plant has been put out without leaking radiation. EDF, the company running the plant, said there was no threat to people or the environment.","An explosion in the non-nuclear section of a nuclear power plant is under control and poses no threat of contamination, French state-controlled utility EDF said on Thursday. The fire broke out in a machinery room at the Flamanville power plant on the northwest coast, causing an explosion, but did not injure anybody.- The company said the fire was ""immediately"" brought under control and the No. 1 reactor was disconnected from the grid. The fire and explosion does not threaten people or the environment, the company said. It is not immediately clear what caused the fire or explosion at the plant, in service since 1986. Atomic energy-accounts for about two-thirds of France's power generation. cw/msh-(AFP, EFE, dpa, Reuters) -", -893,2017/2/9,http://www.dw.com/en/actor-richard-gere-talks-with-angela-merkel-about-tibet/a-37468579?maca=en-rss-en-all-1573-rdf,Actor Richard Gere talks with Angela Merkel about Tibet,"Just before the premiere of his new movie at the Berlinale, actor Richard Gere met with Angela Merkel in the Chancellery. They discussed the situation in Tibet - and perhaps mentioned a certain US president, too.","In Berlin for the premiere of his latest movie, a thriller called ""The Dinner,"" US actor Richard-Gere met Chancellor Angela Merkel on Thursday morning. The meeting may add a little bit of glitz to the chancellor's image during her-current-campaign for re-election. Meanwhile, the star has his own set of political issues to discuss with the German leader. Best known as Julia Roberts' seducing-partner in the 1990 romantic comedy ""Pretty Woman,"" -the Hollywood star is also a long-time advocate for human rights in Tibet and a-friend of the Dalai Lama. The talk between Gere and Merkel-was officially ""about the current situation in Tibet,"" said Merkel's spokesperson Steffen Seibert.- As an activist, Gere has also been involved in different campaigns for AIDS awareness and the rights of tribal people around the world. He once-described US involvement in the Iraq war as ""a tragedy."" Although further details about the talk were not revealed, it can be presumed that US president Donald Trump's name was also mentioned. Having once described a Trump presidency as ""everybody's nightmare,"" the actor has also -praised Germany as a model of stability-that can inspire his own country, which he sees as ""very chaotic at the moment."" He also commended ""the courage of the German people and German leaders"" on the refugee-issue-on-Wednesday-during a meeting with Claudia Roth, one the parliament's vice-presidents, who also happens to be a personal friend.- Angela Merkel met George and Amal Clooney during the last Berlinale Support from the Clooneys Compared to the former reality TV star now-heading-the US government, the German chancellor rather shuns glamour. Still, she has-regularly taken time to meet Hollywood big names. During last year's Berlinale, Merkel hosted George and Amal Clooney-. The actor's wife is-a renowned human rights lawyer. The Clooneys had praised Merkel's policy during the refugee crisis, as Germany had-taken in 1.1 million refugees in 2015.--- On Spielberg's set While Steven Spielberg and Tom Hanks were shooting the thriller ""Bridge of Spies""in November 2014, Merkel visited the set on the Glienicke Bridge linking-Berlin and Potsdam. Spies used to be exchanged on this bridge during the Cold War. On the set of ""Bridge of Spies"" in 2014 Merkel also invited the filmmaker and the actor to the Chancellery afterwards, where they discussed the fall of the Berlin Wall.-- - eg/kbm (with dpa)-", -894,2017/2/9,http://www.dw.com/en/hamburg-port-given-partial-green-light-to-deepen-elbe-for-mega-freighters/a-37470810?maca=en-rss-en-all-1573-rdf,Hamburg port given partial green light to deepen Elbe for mega freighters,"A court has ruled that Hamburg can deepen the Elbe River, but only once it addresses environmental flaws to the plan. The port city wants to deepen the Elbe by about a meter to ease access for mega freighters.","A German court on Thursday gave Hamburg a provisional green light to deepen the Elbe River to open up the port city to mega freighters, but ruled that planners first had to address a number of flaws in the project. Hamburg, with the support of federal government,-wants to deepen-the Elbe between the inland port and-Cuxhaven where the river flows into the North Sea. A historic trading city known as ""the gateway to the world,"" Hamburg argued the project is necessary to open Germany's largest port to mega freighters and maintain international competitiveness. The environmental organizations BUND (Friends of the Earth Germany)-and NABU (Nature and Biodiversity Conservation Union) filed a court challenge against the dredging. They argued the project would negatively impact water and species conservation efforts. One issue the court noted in its ruling was the endangered plant species called the ""Schierlingswasserfenchel"" (Oenanthe coniodes or water hemlock),-which in Europe only grows at the mouth of the Elbe. The court said that the adverse effects on this plant caused by salt water might have been underestimated. The ""Schierlingswasserfenchel,"" or water hemlock, is only found in Europe around the mouth of the Elbe. The court that the existing plan as submitted was-""illegal and can't be carried out because of violations of the habitat protection law,"" albeit stressing that ""these shortcomings can be fixed and therefore do not lead to the revoking of the planning permission."" Hamburg can move forward with deepening once it addresses flaws in its plan and addresses risks to the endangered plant, the court ruled.- Other complaints from the environmental groups were thrown out by the court. cw/msh-(AFP, dpa) -", -895,2017/2/9,http://www.dw.com/en/german-retailer-kik-compensates-pakistan-s-industrial-9-11-families/a-37470138?maca=en-rss-en-all-1573-rdf,German retailer KiK compensates Pakistan's 'industrial 9/11' families,German textile company KiK has released $5.15 million in compensation for a 2012 factory fire in Karachi that killed 260 people. KiK and the victims' families still disagree over responsibility of the catastrophe.,"A fire in a Karachi factory, which produced clothes for the German company KiK, killed over 260 people in 2012. The victims' families are in Germany to pursue their case against KiK in a Dortmund court. DW spoke to them. (23.06.2016) Thousands of garment workers have staged a protest in the Bangladeshi capital on the third anniversary of the Rana Plaza disaster. Hundreds died when the flimsy factory complex collapsed, but no one has been convicted. (24.04.2016) At least 19 people have died in a factory collapse in the eastern city of Lahore, while rescuers pulled over one hundred people from the rubble. Poor construction and maintenance caused similar accidents in the past. (05.11.2015) Nasir Mansoor, general secretary of the National Trade Union Federation in Pakistan, confirmed Wednesday that KiK (Kunde ist K?nig, which in English translates into ""Customer is King"") has released $5.15 million (4.82 million euros) for the families of the Karachi-based Baldia Town factory fire-victims. Mansoor told Pakistan's ""Dawn"" newspaper that the amount has been transferred to an International Labor Union (ILO) account in Geneva. ""ILO Country Director in Pakistan, Ingrid Christensen, will hold consultations with affected families on Thursday, February 9, with representatives of non-governmental organizations in attendance,"" Mansoor told Pakistani media. Over 260 people died on September 11, 2012, when a textile factory in the southern Pakistani city of Karachi caught fire. The blaze was able to spread quickly partly because the safety standards were blatantly violated by the factory owners, and the emergency exits were blocked or even locked. The incident was dubbed as Pakistan's ""industrial 9/11."" The transfer of funds was the-result of an agreement between KiK and the Pakistan Institute of Labor Education and Research (Piler). ""Initially, the company had denied to pay any sort of compensation but later it agreed to pay an amount when the stake holders, with the help of NGOs, took up the matter in Germany through media campaigns,"" said Mansoor, who, along with some victims' relatives, visited the German city of Dortmund in September last year. ""The German government also played its role in the agreement on the payment of amount to the affected families,"" Mansoor added. KiK's latest move to compensate the families of the factory victims is not linked to the court case in Dortmund. The Regional Court of Dortmund issued an initial decision in September last year, accepting jurisdiction over the case and granting legal aid to the claimants to cover the lawsuit cost. KiK says it is not responsible for the factory fire as it was an arson attack Workplace safety ""My 18-year-old son died because of-capitalist greed. He was my only son, the only breadwinner, who lost his life in the Baldia Town factory fire,"" Saeeda Khatoon, a 49-year-old Pakistani woman from Karachi, told DW. ""My son was earning only around 10,000 rupees (84 euros) per month and that too after working sometimes 72 hours at a stretch,"" Khatoon said. On March 13, 2015, Khatoon and three other people affected by the fire filed a case against KiK at a regional court in Dortmund. Like Khatoon, Muhammad Jabir, 62, and Abdul Aziz Khan, also 62, lost their sons to the fire, while Muhammad Hanif, 26, is a survivor himself. They are seeking compensation and an apology from KiK. The German retailer says it is not responsible for the blaze, arguing that owners of the factory didn't follow the security precautions. In June 2016, Khatoon and Khan came to Germany for consultations with civil society organizations and legislators. They were supported by the National Trade Union Federation's Mansoor and a number of international rights groups, including the European Center for Constitutional and Human Rights (ECCHR), Clean Clothes Campaign, and Medico International. Saeeda Khatoon and Abdul Aziz Khan demand 'justice' Initially, KiK established an emergency fund to support the families of the victims with a total of $500,000 (439,000 euros), and was even considering doubling the amount. But it backed out from its promise after a Pakistani investigation claimed the fire was an arson attack carried out by a local political party. But rights groups say the case was never about who caused the fire. ""The multi-national companies should be held responsible for what is happening down the chain. They must ensure the working conditions at their manufacturers are up to the standards approved by the ILO,"" Mansoor told DW. Farooq Tariq of the Awami Workers Party told DW from the eastern Pakistani city of Lahore that most factory owners in Pakistan do not follow labor laws. ""According to our survey, there are more than 300 factories operating in the residential areas of Lahore, yet none of them obey labor laws and conventions,"" Tariq claimed. ""They do not allow labor inspection in their factories, which, in my opinion, is essential to safeguarding the safety and rights of the workers. Sadly, the government protects the factory owners."" Profiteering Karachi-based trade union activist, Sartaj Khan, believes the responsibility of industrial disasters like the Baldia Town factory fire in Karachi and the Rana Plaza blaze in Bangladesh's capital Dhaka lies with the capitalist system. More than 1,135 factory workers died when the Rana Plaza complex came crashing down on April 24, 2013 in Bangladesh ""Countries like Bangladesh and Pakistan face tough competition from other markets that provide cheap labor to international companies. They compromise on safety measures to reduce their services cost. It works well for international retailers as they are there to make a profit,"" Khan told DW. ""But at the end of the day, it is the responsibility of the local governments to make sure that the labor laws are properly implemented in these factories."" Khan said the issue should be seen in relation to the global financial crisis. ""Local and international companies are not making as much profit as they did in the past; therefore we see an increase in the exploitation of workers. Now, the workers have to work for longer hours for less money,"" Khan said, adding that such incidents would continue to happen if the workers didn't unite against the factory owners and pressure their governments to ensure better pay and security at work. Abdul Aziz Khan, who also lost his son in the Baldia Town factory fire, appealed to the German public to support their cause and put pressure on the companies and the government. ""We are thankful to the German people for their support. But we also expect them to demand from their companies that they ensure workplace safety in the factories that manufacture products for them,"" Khan said. Saeeda Khatoon says the incidents like the Baldia Town factory fire shouldn't happen anywhere. ""No mother should suffer the way I have."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1InZF", -896,2017/2/9,http://www.dw.com/en/what-to-watch-out-for-on-bundesliga-matchday-20/a-37469190?maca=en-rss-en-all-1573-rdf,What to watch out for on Bundesliga matchday 20,"With games against the league's bottom two sides and the Champions League looming Bayern Munich and Borussia Dortmund may take their eyes off the ball. Roger Schmidt won't, his job looks under threat once again.","Schmidt under the spotlight Roger Schmidt has been the Bayer Leverkusen coach-for just shy of 1000 days and it feels like his job has been on the line for about half of them. But there's now an increasingly strong sense that a failure to beat high-flying Eintracht Frankfurt on Saturday may mean the end of his reign. ""It is clear to all of us that pressure is increasing,"" Leverkusen sporting director Rudi V?ller told German newspaper 'Bild'. ""We are convinced it can still work."" A home loss on Saturday, when they'll be without suspended Hakan Calhanoglu, combined with a Dortmund, would leave Schmidt's men 13 points off fourth ""?and a lot closer to the relegation spots. That pressure might finally tell. Bayern and Dortmund's eyes may be on a different prize Borussia Dortmund required penalties to beat Hertha Berlin on Wednesday Ahead of the return of the Champions League, Germany's main two hopes in Europe couldn't have asked for much kinder fixtures. Dortmund travel to bottom club Darmstadt while Bayern are away to Ingolsdtadt, who sit just a place higher. While Carlo Ancelotti and Thomas Tuchel will no doubt suggest there are no easy games, they'll surely both be tempted to keep their key men fresh and firing for the trip to Benfica on Tuesday (Dortmund) and visit of Arsenal on Wednesday (Bayern). It's especially critical with Dortmund's ever-lengthening injury list and gruelling cup game and the advanced age of some of Bayern's superstars. If the big guns do make changes or lose focus, Darmstadt and Ingolstadt might fancy their chances of capitalizing. Both are fighting for their lives. Leipzig looking to bounce back Leipzig will be looking to recover from their loss to Dortmund Leipzig's wings were clipped last time out at Dortmund-but,-with Bayern chugging ominously along-they can't afford to give up any further ground. While they are still exceeding expectations, RB have lost three of their last six in the league. They've recovered from their last two losses with comfortable wins but while this is far from a crisis, it's certainly a wobble. For much of the season, Hamburg would've been the most accommodating of visitors but Markus Gisdol's men have discovered some resilience of late, winning four of their last seven. Schalke need to show some consistency Schalke cruised in the German Cup in midweek The Markus Weinzierl era was supposed to usher in a more stable period for Schalke. While it's still early in the new coach's tenure, the Royal Blues have been as impossible to predict as ever this season. A horrendous start was followed by a strong showing in October and November and another disappointing spell before the midseason break. Weinzierl's men impressed in taking a point from the Allianz Arena last weekend but it will count for little unless they can start winning games ""?they have just six league wins so far. Their visitors on Saturday are Hertha Berlin, excatly the sort of team Schalke should be competing with but one that are notoriously difficult to break down. Expectations have become more realistic at the Veltins Arena-of late but it shouldn't be forgotten that they finished fifth last season. Must do better. Freiburg-look to strengthen-fortress- Maximilian Philipp is one of Freiburg's biggest threats Many a promoted side has relied on their home form to keep them afloat and Freiburg are the Bundesliga's latest converts to that method. Fans at the intimate and atmospheric Schwarzwald Stadium have seen six Bundesliga wins this term. While they've been in the shade of fellow new boys RB Leipzig for most of the season, Freiburg have a well-established style, exciting attacking talent in the shape of Maximilian Philipp and Vincenzo Grifo and an effective plan B with supersub Nils Petersen. Cologne visit in Sunday's late game and Freiburg may well expect to seal on of the four wins they're likely to need to ensure safety. Bundesliga Matchday 20 Friday Mainz vs. Augsburg-(20:30 CET) Saturday Bayer Leverkusen vs. Eintracht Frankfurt (15:30 CET) Ingolstadt vs. Bayern Munich Werder Bremen vs. Gladbach Darmstadt vs. Dortmund RB Leipzig vs. Hamburg Schalke vs. Hertha Berlin (18:30 CET) Sunday Wolfsburg vs. Hoffenheim (15:30 CET) Freiburg vs. Cologne (17:30 CET) -", -897,2017/2/9,http://www.dw.com/en/kenyan-high-court-overrules-government-on-dadaab-refugee-camp-closure/a-37468097?maca=en-rss-en-all-1573-rdf,Kenyan High Court overrules government on Dadaab refugee camp closure,"Kenya's High Court has declared ""null and void"" the government's decision to close the Dadaab refugee camp. The 260,000 Somali refugees will now not be sent home.","Judge John Mativo ruled on Thursday that the closure of the camp - the world's largest - had been ordered ""without proper consultation"" with the people affected, adding that it was ""in violation of the constitutional right to fair legal proceedings."" Mativo said the Kenyan government had not proved Somalia was safe for the refugees to return. ""Hence the said decision is null and void,"" he ruled. The camp was initially due to be closed on November 30, 2016, but the government announced a six-month delay on ""humanitarian grounds."" Dadaab's closure would have left about 260,000 Somali refugees-with nowhere else to go. Dadaab was opened in 1991-as a temporary shelter for people fleeing civil war in neighboring Somalia. Since sending troops into Somalia in 2011, Kenya has come under repeated attacks from the al-Shabab armed group, and Nairobi has claimed that the Dadaab camp acts as ""a terrorist training ground"" for al-Shabab fighters. Amnesty praises-the ruling ""Today is a historic day for more than a quarter of a million refugees who were at risk of being forcefully returned to Somalia, where they would have been at serious risk of human rights abuses,"" Muthoni Wanyeki, Amnesty International's Regional Director for East Africa, the Horn and the Great Lakes, wrote in a statement. ""This ruling reaffirms Kenya's constitutional and international legal obligation to protect people who seek safety from harm and persecution,""-Wanyeki wrote. jbh/msh (AFP, AP)", -898,2017/2/9,http://www.dw.com/en/german-police-raids-target-islamists-suspected-of-planning-terror-attack/a-37468284?maca=en-rss-en-all-1573-rdf,German police raids target Islamists suspected of planning terror attack,Police have raided a dozen locations and detained two men in an operation against the radical Islamist scene. They mobilized after indications of a planned attack solidified over the past two days.,"Nearly 450 police and special commando units conducted pre-dawn raids on Thursday against suspects in the central city of G?ttingen after collecting intelligence on plans for a terror attack. Police chief Uwe L��hrig said that indications of a ""potentially imminent terror attack"" had ""solidified to such an extent in recent days,"" that authorities elected to mobilize against the prime suspects and their close associates.- Two men deemed to pose a threat were taken into custody as part of the operation that targted a dozen locations.-The 27-year-old Algerian national and 23-year-old Nigerian national were long active in the radical Islamist scene in G?ttingen and were under surveillance, police said. They were both born in Germany and lived with their parents.- The raids yielded weapons-and ammunition as well as ""Islamic State"" flags, investigators said. - Police displayed at a press conference the weapons, ammunition and IS flags found in the raids. Boris Pistorius, the state of Lower Saxony's interior minister, called the operation a ""very important blow against the [radical Islamist] scene."" He said the two men had ""very concrete"" attack plans, but at the moment it is unclear if the suspects had determined an exact time for an attack. The raids come as German authorities have conducted a string of operations targeting suspected terror plotters. The terror threat has prompted the German government to pass a raft of security measures in recent months as security questions and immigration take a prominent role in upcoming national elections in September.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X4DB cw/msh-(AFP, dpa)", -899,2017/2/9,http://www.dw.com/en/australian-consumers-given-a-rough-deal-by-vw/a-37468291?maca=en-rss-en-all-1573-rdf,Australian consumers given a rough deal by VW?,"Australian consumers are unhappy about the way German carmaker VW has been treating them after the company's emissions-cheating scandal broke in 2015. VW car owners are waiting for ""proper compensation.""","Australian consumer rights group Choice said Thursday Volkswagen must come clean and give VW car owners in the country the truth about its emissions scandal. The group accused the German auto giant of not giving buyers proper compensation or the option to receive a refund (as is the case in the US). ""Currently, Australian consumers have been offered only a technical update,"" a Choice spokesman said, adding that it was ""a global scandal, and all affected customers should be given access to similar remedies."" ""Clearly, VW is reluctant to cough up for its failings down under and although running a recall in Australia, the company continues to restrict consumers' refund rights and serve up a smokescreen of weasel words,"" Choice CEO Alan Kirkland noted. VW for its part claimed Australians were not qualified for any compensation scheme like the one in place for US clients. ""As Choice should be aware, US emission regulations are unique in the world in that they are based on nitrous oxide emissions,"" Volkswagen said in a statement. ""Australia's regulations, like those of the more than 70 countries that subscribe to the EU emissions regime, are based on lowering fuel consumption and carbon monoxide."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2W5Xz Probe continues Right now in Germany, investigators keep trying to solve the puzzle of who knew what and when about the emissions-cheating scam. The probe that's also directed against former VW CEO Martin Winterkorn had entered a new round after former VW boss Ferdinand Piech suggested Winterkorn and other executives had known about the pollution scam well before the scandal broke in September 2015. Winterkorn, who headed up the Wolfsburg-based firm from 2007 to 2015, had always insisted he knew nothing about any defeat devices in some 11 million VW cars worldwide before it became public knowledge. At the end of January, prosecutors announced, though, they were investigating Winterkorn for fraud, saying they had ""sufficient indications"" the manager learned about the cheating earlier than he claimed. hg/jd (dpa, AFP) -", -900,2017/2/9,http://www.dw.com/en/people-smuggler-wanted-to-help-filipinos/a-37431115?maca=en-rss-en-all-1573-rdf,People smuggler 'wanted to help' Filipinos,"By the time Iluminada Panabe was convicted of human smuggling, police estimated 800 Filipinos had gained illegal entry to Europe. Ana P. Santos spoke with Panabe, who has been serving her sentence in northern Denmark.","As with many police busts, it all started with a suspicion and a snitch. The increasing number of Filipinos coming to Denmark from the Philippines was the first thing to trip the alarm. ""The Danish alien service saw and reported some suspicious activities regarding Filipinos living in Denmark often having family members visit from the homeland. These visits were always from a new family member,"" Danish police inspector Michael Kjeldgaard told DW. Then came an anonymous tip that a Filipino woman, Iluminada Panabe, was smuggling people from the Philippines to Europe using Denmark as a gateway. German authorities arrested considerably fewer human traffickers in 2016 compared to the previous year. More than 50 percent of arrests were made on the Austrian-German border. (08.01.2017) The Philippine workers are desperate to leave the country, willing to pay a high price to wager a chance at a better life abroad. But it is not easy to achieve, and the stakes are high. Ana P. Santos reports from Manila. (22.08.2016) Migrant parents are using social media to raise their kids from afar. But a virtual presence enabled by technology is hardly a substitute for the intimacy of physical closeness. Ana P. Santos reports from Paris. (01.03.2016) That was enough to start an investigation into the activities of DenPhil Travel and Tours, a travel agency that Panabe was running from Thisted, northern Denmark, with operations in Quezon City in the Philippines. In 2011, Panabe was found guilty of human smuggling and sentenced to six years in prison. According to the police, Panabe had brought more than 800 Filipinos into Europe via Denmark. The Danish police were unsuccessful in tracking down the immigrants, but that was not the point. ""It was not our intention to prosecute them. We looked at them as victims. We wanted to interview them to know more about Panabe's operations and who her helpers were,"" explained Kjeldgaard. Europol estimated that the business could have made as much as 10 million euros ($10.7 million). 'Reuniting families' DW spoke to Panabe in her small, sparse but tastefully decorated apartment in northern Denmark. She had served three years of her six-year sentence and had been released on probation. While in jail, she took a course in event management and fundraising. Now she was working on finishing her master's degree in business administration. The Danish penal system is considered one of the most humane in the world, which Panabe said she experienced. ""The system is so fair. It gives you every chance to change. You would be ashamed to do something wrong again,"" she said. As she remembers it, on that Thursday when the police came with a warrant for her arrest, she surrendered without protest or fanfare. Panabe did not plead innocence, but today over coffee and against the light drizzle that blanketed the lush green fields of rural Denmark, Panabe asked for understanding. The 46-year-old was both reflective and forward-looking, anxious to clear her conscience. She insisted that her business operations served the purpose of reuniting Filipino families separated by labor migration. On the surface, DenPhil was selling package tours to Europe, but police investigations revealed that the agency was a front for a simple but effective set-up of matching Filipino clients in the Philippines to Filipinos living in Denmark. Accomplices in Denmark would pose as relatives and sponsor a family visit in exchange for cellphones, airplane tickets to a chosen destination or outright cash. Clients paid a ""package rate"" between 7,400 and 9,300 euros-to orchestrate these family visits and secure a Schengen visa and entry into 26 European countries, where they would quietly live and work under the radar as undocumented migrants. Despite the money trail and the deck of falsified documents, her lawyer argued that Panabe was well within the bounds of the business of issuing her clients visas to Europe. What her clients did once they got to Europe was no longer her concern. Panabe's self-defense was more complex. ""There are so many Filipinos in France and Italy who have no [legal] papers. They stay there, work there for so long without seeing their families. I wanted to help them,"" said Panabe. Immigration limbo The Philippines is one of the largest labor-exporting countries in the world, with approximately 10 million Filipinos living overseas as immigrants or as guest workers. Years of state-sponsored labor migration brings in an estimated 23-billion euros to the economy but comes with a social cost of years of separation. While there are no official estimates, extrapolations based on the number of migrant workers abroad indicate that there are about 2.56 million Filipino children of whom one or both parents live abroad. Europe's higher wages beckon, but with few options to migrate legally, Filipinos smuggle themselves to Europe with the help of someone like Panabe who can circumvent the paperwork. The Commission on Filipinos Overseas (CFO), a government office in Manila that oversees migrant welfare and development, estimated that there were more than 860,000 Filipinos living in Europe as of 2013. In France, where Panabe said most of her clients wanted to go, the CFO estimated that as many as 80 percent of the 48,000 Filipinos were ""irregular"" or undocumented. Many of the Filipinos who come to Europe illegally become domestic workers As undocumented migrants, these Filipinos exist in a sort of immigration limbo where they discreetly live and work in their host country but can't go back home. Doing so would mean not being able to return to Europe - and not recovering the estimated $10,000 it took to get there. Self-ascribed altruism Panabe, a native of the Kalinga mountain province in the Philippines, came to Denmark some 15 years ago as the bride of a Danish man she met while he was on holiday in the Philippines. She, like many other Filipino migrants, fled from grinding poverty in the hopes of finding opportunity abroad. Living in Denmark exposed Panabe to the other side of migration. Underneath the shimmer and perceived glamour of life abroad, there was the pain of being separated from family members and the aching possibility of never being with them again. Panabe attributes her self-ascribed altruism to this realization. She insists that her business operations helped reunite families and that she used her business earnings to establish the IDP Foundation, a charity organization bearing her initials, to send poor but deserving students from her province to school. When she was arrested, Panabe said her immediate thought was her scholars and her clients, especially those who had already made a down payment and whose travel papers were being processed. ""What would happen to them?"" is a question she said she asked herself many times. Back in the Philippines, DW tried to find out, tracking down one of the students who appeared in a video thanking the IDP Foundation for its financial assistance. ""This is a big help to me because my parents don't have money,"" the teenage boy told DW via email. The boy, who asked not to be named, said that he was promised a 90-euro-monthly stipend as an IDP scholar, but alleged that he never received any financial support from IDP. In 2011, under a small grants initiative, the Canadian government awarded the IDP Foundation a grant of over 20,000 euros-for a water and sanitation project in the Kalinga province. The Canadian Embassy in Manila confirmed the grant was released to IDP. Audit reports on the project were not readily available, but the Canadian government confirmed completion of the project and full disbursement of funds. Panabe, who was contacted via email and SMS, declined to comment on these two initiatives. This story was supported by a travel grant from the Pulitzer Center on Crisis Reporting.", -901,2017/2/9,http://www.dw.com/en/gerhard-richter-savior-of-contemporary-painting-turns-85/a-37452853?maca=en-rss-en-all-1573-rdf,"Gerhard Richter, savior of contemporary painting, turns 85","From photo-like paintings to out-of-focus works, he is consistently inconsistent and beyond his time. Gerhard Richter, at 85, claims to have to system - but has become one of the world's most expensive artists.","Gerhard Richter can walk through his chosen hometown of Cologne virtually unrecognized. He is inconspicuous, humble in appearance - a small, bearded and bespectacled man. What stands out about him is his constantly searching and questioning gaze. Critics have referred to Richter as a ""21st-century Picasso."" He is one of the most successful painters alive today, and his works hang in the world's most important museums. Artworks with his signature on them fetch record-breaking sums. ""The Reader"" (1994) is pictured here at the New National Gallery The ""Kunstkompass"" section of the magazine ""Capital"" has listed Richter as the top-grossing living artist. Needless to say, he's also been showered with awards. The 20th-century Picasso Just like Picasso, who paved the way for modern art in the 20th century, Richter is hardly interested in fame. And he loves women - he's now on his third marriage. Yet unlike the Spanish painter, Richter is not one for the public spotlight. He rarely provides interviews and hardly appears at the art world's glamorous gatherings. Quite the opposite of Picasso, Richter does not allow his personal life to influence his work. As his biographer Dietmar Elger noted, when painting private situations, Gerhard Richter always denied connections to his own life. - ""Candle"" (1982) on display at Baden-Baden's Frieder Burda Museum One thing he does share with Picasso: he is stylistically above and beyond other artists. That is true of his early Pop Art-inspired images and early attempts at abstract expressionism in the 1960s, which he referred to as ""capitalistic realism."" Slamming consumerism, it is Richter's ironic response to the official art doctrine of the former GDR, ""socialist realism."" That is something he left behind when he fled Dresden for West Germany in 1961. An 'Atlas' through the ages Shortly afterward, Richter started his ""Atlas,"" something of a motive archive which compiled newspaper clippings, photographs, sketches, color studies, landscapes, portraits, still lifes, historical textiles and collages. It has been updated throughout the decades and was on display in 1997 at the Documenta in Kassel. He paints landscapes, seascapes and cloud pictures in the Romantic tradition. Still lifes and portraits are also in his repertoire. Richter has brought modern painting into the photography era and, in doing so, he creates something new each time. 48 famous men, a part of ""Atlas"" Inconsistency is his trademark: Sometimes he creates photo-realistic nature portraits or out-of-focus paintings sometimes he employs glass and mirrored objects. Installations and overlaid paintings are part of his work as are the later orgies of color that span the length of a wall. Examples of the latter are currently see on display at the Museum Ludwig in Cologne, which is holding a special exhibition of his work through May 1, 2017. ""I don't have any agenda - no system or direction,"" Richter said of his art in 1966. ""I don't have any program or style, no objective."" A German savior of the art of painting That seems hard to believe. It would be hard to find anyone else who has explored the depths of painting as deeply and readily as Gerhard Richter. It was he who had accomplished something few in the art world believed possible. ""Richter saved the art of painting in the 21st century,"" his biographer and head of the Gerhard Richter Archive at the Kunstsammlungen in Dresden, Dietmar Elger, told DW in an interview. Richter's computer-generated stained glass window in the Cologne Cathedral ""I am fascinated by coincidence,"" the artist recently said. ""Nearly everything is a coincidence. How we are made, why I was born here and not somewhere in Africa - everything is happenstance."" One of Richter's much-discussed public works of art is a stained glass window in the Cologne Cathedral. He left the design of the window and its 11,000 colored square pieces up to a computer. It is as multi-faceted and unfathomable as the rest of the collection of works by the artist, who turns 85 on February 9. He came from East Germany, spent his adulthood West Germany and managed to become famous worldwide as a representative of unified Germany - even though few here would recognize him if they were to walk right by. - Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Wl1p", -902,2017/2/9,http://www.dw.com/en/commerzbank-logs-anticipated-profit-plunge/a-37466322?maca=en-rss-en-all-1573-rdf,Commerzbank logs anticipated profit plunge,"Germany's second-largest lender, Commerzbank, has booked a steep decline in bottom-line earnings for 2016. The bank kept battling through a tough restructuring in a volatile business environment.","Commerzbank announced Thursday its net profits were down more than 74 percent year on year in 2016. Releasing full-year financial results, Germany's second-biggest lender said it logged bottom-line earnings of 279 million euros ($298 million) last year, way below the 1.1-billion-euro result it reported for 2015. However, the 2016 figure beat the 222-million-euro forecast by analysts surveyed by Factset, the bank noted. Low interest rates a problem Commerzbank CEO Martin Zielke indicated the drop in earnings was first and foremost attributable to the low-interest environment and a number of problematic loans. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2QaV2 ""We logged a solid result for 2016, which is not to say that we can be satisfied,"" Zielke said in a statement, pointing to the need to follow through reforms amid a large-scale restructuring program also involving massive job cuts. Commerzbank stopped short of giving an earnings outlook for the current year, saying only it would aim to keep its cost base stable and expecting loan loss provisions for its retail and corporate bank to remain largely unchanged. hg/jd (dpa, AFP, Reuters) -", -903,2017/2/9,http://www.dw.com/en/riots-in-paris-after-alleged-baton-rape-by-policeman/a-37465453?maca=en-rss-en-all-1573-rdf,Riots in Paris after alleged baton rape by policeman,"Protesters came out in support of a victim of alleged police brutality, which included being raped with a baton. Some protesters turned violent, which led to several arrests.","Protests have taken place across Paris and surrounding towns after police were accused of brutality, including sodomizing-the young black victim-with a baton, according to the victim's attorney. One of the officers was charged Sunday with the rape, while-four officers were suspended after they were accused of involvement-in the incident last Thursday at a housing estate in Aulnay-sous-Bois, north of the capital. The victim's attorney stated police used tear gas and ""one of them used an expandable baton"" in an arrest-""after hearing calls characteristic of lookouts at drug dealing sites."" French President Francois Hollande visiting Theo The victim, only known by his first name,-Theo,-is being treated in-hospital after suffering-injuries to his anus, head and face. He was-declared-unfit to work for 60 days. French-President Francois Hollande met-Theo at his bedside on Tuesday. Theo, as well as French Prime Minister Bernard Cazeneuve, has called for calm following the incident. Stephane Troussel, the president of the General Council of the Seine-Saint-Denis region, where Aulnay-sous-Bois is located, said the incident brought up ""numerous questions."" ""Although thousands of police are doing their work properly""�too many arrests end in nightmares for some young people. The image of the Republic is being tarnished,"" Troussel said in a statement. Riot police take their position in Aulnay-sous-Bois on Tuesday French police are accused of using excessive force against suspects in poor neighborhoods, especially those of primarily African origin. Protests, riots Protests and rioting have occurred for the past five days in and around Paris due to the case. Thousands took to the streets and caused damage in five towns in France. Police arrested 17 Wednesday in the Seine-Saint-Denis region. In Aulnay-sous-Bois, a group of young people damaged all of the cars at a Citroen dealership, causing 200,000 euros ($214,050) in damage. Authorities are concerned about a potential repeat of 2005 riots that spread throughout France and involved thousands of people in similar poor,-immigrant neighborhoods. Riot police were sent to the protests, which started on-Sunday, as a backup. kbd/rc (AFP, AP)", -904,2017/2/8,http://www.dw.com/en/german-cup-sportfreunde-lotte-earn-dortmund-home-tie-schalke-head-to-bayern/a-37465418?maca=en-rss-en-all-1573-rdf,"German Cup: Sportfreunde Lotte earn Dortmund home tie, Schalke head to Bayern","Lotte, the lowest-ranked team in the tournament, will welcome Borussia Dortmund in the quarterfinals of the German Cup. Meanwhile, Schalke will head to Bayern Munich, while Hamburg host Borussia M?nchengladbach.","Sportfreunde Lotte have been rewarded for their third successive upset in the German Cup with a money-spinning home tie against Borussia Dortmund.- Ismail Atalan's side beat Werder Bremen and Bayer Leverkusen before knocking out 1860 Munich with a 2-0 win on Wednesday night.- The German Cup fairytale will continue for the third division side, who lie seventh in the table, having put all their focus into progression in the domestic cup tournament.- The arrival of Borussia Dortmund, who beat Hertha Berlin on penalties, will likely be a financially sound clash for Lotte who play at the 10,000-capacity Frimo Stadion. Elsewhere, Schalke will head to Bayern Munich in the last eight after picking up a 1-1 draw in the corresponding Bundesliga fixture on Saturday. Bayern, who won their 18th German Cup against Borussia Dortmund in May, sneaked through with a narrow 1-0 win over Wolfsburg at the Allianz Arena on Tuesday. Meanwhile, Hamburg will host Bundesliga rivals Borussia M?nchengladbach, while 2.Bundesliga Arminia Bielefeld will take on Eintracht Frankfurt at the Commerzbank Arena. The matches will be played on February 28 and March 1, 2017. The full list of quarterfinal fixtures: Eintracht Frankfurt vs. Arminia Bielefeld Sportfreunde Lotte vs. Borussia Dortmund FC Bayern vs. Schalke Hamburg vs. Borussia M?nchengladbach", -905,2017/2/8,http://www.dw.com/en/what-happens-with-german-renewables-in-the-dead-of-winter/a-37462540?maca=en-rss-en-all-1573-rdf,What happens with German renewables in the dead of winter?,"Germany has a reputation for being a renewable energy leader - but some believe that the nation's long, still and dim winters threaten such green aspirations.","The ""dark doldrums"" conjures images of the deep Middle Ages, when the only light to be had flickered from a tallow candle. In fact, it is-the loose translation for the German word Dunkelflaute, which describes this time of year, when neither sun nor wind are to be found in great abundance. And this is the very scenario-some are suggesting could plunge the nation into, if not quite a reenactment of its medieval past, then energy uncertainty.- An article published recently in the German daily ""Die Welt"" warned that the-Dunkelflaute-could be pushing Germany's power supply to its limits. Drawing on statistics from the-Agora Energiewende energy think-tank and policy laboratory, the report-said that on the days around-January 24, 2017, as much as 90 percent of the country's power was provided by coal, gas and nuclear. And not by renewables --which does not, the article continued, bode well for national plans to transition to a clean, green energy future. Stefan Kapferer, Managing Director of the Federal Association of the Energy and Water Industry-(BDEW) told DW that January was marked by a combination of lower-than-average temperatures, a high demand in electricity and extreme fluctuations in input from wind and solar power. ""Flexible, conventional power stations are essential if we are to stabilize the electricity network,"" he said. ""We have to be able to cover energy demand regardless of the weather."" What happens with wind power when there's no breeze? And that, Kapferer continued, implies a need for flexible gas and coal power stations,-and further down the line, combined heat and power plants. This-would make it possible to ""integrate renewables into the energy provision system,"" so they become ""supporting pillars"" of supply. The storage issue But Ralph Kampwirth, spokesman for green energy provider Lichtblick, proposes a different solution to what he says doesn't appear to be an ""unsolvable problem."" Though he concedes that if the country is depending on wind and sun for electricity, the weather is a critical factor - but-he takes a different view on-how to secure supply. ""Mainly it's a question of storage,"" he told DW. ""What we think will happen in the future is that we will have a more decentralized energy production system, at a regional or even household level, and mainly based on solar."" He is convinced that Germany is on the cusp of a whole new era in the way renewable power can be-stored, because people-looking to install photovoltaic solar-panels will do so in conjunction with-storage capacity. ""There will be a tipping point,"" he said, adding that he believes it will be reached within the next five years. ""There are many players investing in these technologies, so we believe it will happen."" More light than dark But the possibility of a breakthrough in storage within the next five years is not a given.- Christoph Podewils, Director of Communications at Agora Energiewende, says that while it would be nice to see advances, present-storage facilities will suffice until Germany is generating 70 percent of its power from renewables (currently, renewables make up about 30 percent of Germany's energy mix). As for the prospect of the dark doldrums, he says it is less ""a serious problem,"" and more ""a challenge which has to be considered."" The issue, he stresses, is an annual event, a response to Germany's January weather patterns. And indeed, a glance though the think-tank's onlinetracking tool-shows just that. So what is the solution? ""Right now, we don't need one,"" Podewils told DW. ""We have massive overcapacity in the power system in Germany and in some other European countries --and as long as that exists, we can continue as we are for years."" The future face of Germany? He pointed-out that on January 24, at the height of this year's Dunkelflaute, the country had so much overcapacity-that it was still exporting to neighboring countries. This-situation, he holds, is unlikely to change in the coming years. And when nuclear goes offline in 2022, he says the shortfall will be covered by a higher use of gas and offshore wind power. Which still leaves coal. ""We need to reduce coal power,"" he said, ""so if you are going to shut that down, you need a backup."" Podewils believes the conversation will-then turn to gas-fired power plants. Beyond-that, there are plenty of options to insure the future is light. Even on days when the sun doesn't shine.", -906,2017/2/8,http://www.dw.com/en/german-chancellor-merkel-working-to-hold-the-eu-together/a-37464058?maca=en-rss-en-all-1573-rdf,German Chancellor Merkel 'working to hold the EU together',"German Chancellor Angela Merkel has changed course and is now advocating a Europe of ""two speeds."" Her goal is to save the European project. Many do not agree with her means to the end. Max Hofmann reports from Brussels.","The German chancellor's last appearance at the EU summit in Malta was delayed. It was originally slated for 6:00 p.m. on Friday, but her press statement kept getting pushed back later into the evening. The longer the waiting period was extended, the more journalists left the room to finish their stories on time. It meant that very few people were present to hear what Angela Merkel finally had to say at around 8:00 p.m.: ""The history of recent years has shown that there will be a multi-speed EU, and not all members will participate in the same steps of integration."" The statement was barely mentioned in European media that weekend. Szydlo did not contradict Merkel's suggestion statement Yet it was the first time that Merkel clearly claimed this old idea as her own. Whoever believed it was an exclusive statement had to think again on the following Tuesday. In a meeting with Polish Prime Minister Beata Szydlo, Merkel once again spoke of a Europe of ""two speeds."" Szydlo and her country are normally opponents of this idea, but she did not contradict Merkel this time. From her point of view, the German chancellor has decided to take a pragmatic path for crisis-ridden Europe. She will follow it with her quiet determination. ""That should be taken seriously,"" an EU diplomat in Brussels told DW. 'You see the challenges, don't you?' At the upcoming summit in Rome, state and government heads not only want to celebrate the 60th anniversary of the European Economic Community, they also want to present a vision of a post-Brexit European Union. Right now it looks like a two-speed Europe will be part of this vision. Even though such a structure would allow every country the freedom to join - or not join - a project based on national decisions, many feel uneasy about it. One of them is Latvia's foreign minister Edgars Rinkevics. ""A few years ago, I would have thought it was a bad idea,"" he told DW. ""You see the challenges, don't you?"" Latvia's Rinkevics said the challenges were clear The truth is that Europe has worked at different speeds for decades. The eurozone, the freedom of movement embedded in the Schengen agreement and the Maastricht Social Protocol are already part of a ""phased integration"" in which not all EU member states take part. In the future, different combinations are conceivable, like the eurozone, a core Europe driven by Germany and France or a circle of the EU's founding members. But that may also be part of the problem. Are national interests driving the EU further apart because the bonds have loosened? ""At some point we will have a situation in which the decisions of a core group are not compatible with the positions of the others,"" warns Rinkevics. Keep the EU project So the question is whether the EU is selling its soul by entertaining the idea of a two-speed union. In times of Brexit, Donald Trump, the euro crisis and the immigration crisis, many politicians can do more than to argue that they want to keep the show running even if it means departing from a unified Europe. The EU has lost its ""strategic focus"" because of its many crises, says the European politician Tanja Fajon, a Slovenian social democrat who fears that her small country on the eastern edge of the bloc will fall apart in a multi-speed Europe. She says Slovenia has no objections to the national interest policies of larger states or alliances in the EU. ""The basic idea was actually that we are equal partners and benefit from common policies,"" says Fajon. Fajon said the strategic focus has been lost But now, some countries, like Hungary, refuse to cooperate when it comes to sensitive topics, one of them being the distribution of refugees in the EU. What is the bloc worth if solidarity is officially ruled out in favor of a Europe a la carte? ""We are in an unprecedented situation,"" said Rinkevics. The goal is to save the European project. This applies to the common currency and the economy in particular. The next Greek crisis is at Europe's doorstep, and-maybe even a trade war with Donald Trump's United States. Before everything goes down the drain, Merkel is trying to at least maintain the shell of the union. Maybe the mutual project will be expanded someday in a less EU-hostile future. The idea of a multi-speed union is perhaps Angela Merkel's last attempt at saving Europe.", -907,2017/2/8,http://www.dw.com/en/belgium-germany-see-string-of-is-linked-arrests/a-37464619?maca=en-rss-en-all-1573-rdf,"Belgium, Germany see string of 'IS'-linked arrests","A Russian man and a Syrian man have been arrested in Germany on allegations of collaborating with the ""Islamic State."" A series of raids led to 11 similar arrests in Belgium.","On Wednesday, authorities in the German city of Cologne announced that they had arrested a 19-year-old Russian national on allegations of training with ""Islamic State"" (IS) militants in Syria. Federal prosecutors said the young man, whom they identified only as Suleym K,-traveled to Syria via Turkey in late summer 2014 and returned to Turkey a few months later. He was detained on Tuesday and placed in preliminary detention while the government prepares to try him for membership in terrorist organization. On the same day, a 31-year-old Syrian man was arrested in the rural northern region of Western Pomerania-Greifswald. He is accused of working at an IS checkpoint in Syria and having raped a woman who was trying to flee the conflict. The latter charge would constitute a war crime. Eleven people were also arrested in Belgium as part of an anti-terrorism investigation, prosecutors said on Wednesday. According to authorities in Brussels, the suspects were detained in connection with an inquiry into the return of former fighters to Belgium. Investigators stressed that these men were not wanted in connection with major-terrorist attacks in Brussels and Parisin 2015 and 2016. But one of the suspects, Khaled Khattab, was friendly with Brussels airport bomber Najim Laachraoui. He also managed to flee Belgium last year in spite of having received a seven-year prison sentence for helping terrorist recruitment networks. es/mkg (AP, AFP, dpa)", -908,2017/2/8,http://www.dw.com/en/german-air-force-investigates-latest-airbus-a400m-glitch/a-37464284?maca=en-rss-en-all-1573-rdf,German air force investigates latest Airbus A400M glitch,German Defense Minister Ursula von der Leyen's visit to Lithuania was going according to plan until her Airbus A400M broke down on the tarmac. The incident is the latest blow to a costly and delayed Airbus project.,"German officials on Wednesday launched an investigation into what caused a military Airbus A400M plane to break down on the tarmac during a visit by Germany's defense minister to Lithuania. Engineers reportedly discovered an oil leak in one of the plane's four engines during a routine maintenance check,-as Defense Minister Ursula von der Leyen was visiting German NATO troops stationed in Lithuania. The visit marked von der Leyen's first foreign trip on the aircraft, which Germany's military had only received in December.-The plane was intended to showcase the capabilities of Europe's largest defense project. Instead, it delayed von der Leyen by half-an-hour and forced her to fly back on a 50-year-old ""Transall"" replacement aircraft. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Ieyl A series of technical glitches The breakdown is just the latest incident following years of delays and technical incidents for the A400M. It remains unclear whether the latest issue revealed a new technical challenge. A spokesman for Germany's air force said engineers were investigating the engine's hydraulic system-but declined to provide further details. Airbus has already written off some 5 billion euros ($5.34 billion) in its program with Germany's Defense Ministry-after previous aircraft-experienced gearbox problems and suffered fuselage cracks. An Airbus spokesman said, ""We are shocked and deeply regret that the defense minister and her delegation suffered significant travel consequences as a result of the breakdown of an A400M."" It means that just one of Germany's eight A400M planes is currently in service, with three currently in repair, three going through routine inspections and one being refurbished. Plane enthusiasts are enthralled as a massive Airbus A380 descends onto Farnborough. The European plane manufacturer has just announced it would halve production of its double-decker superjumbo, to a dozen a year. But CEO Tom Enders expected demand for his ""money making machine"" to rise again in the next few years. Private jet, anyone? Those with some spare change in their pockets are sure to find the right plane to suit their needs at Farnborough. The Royal Air Force's aerobatic team, the Red Arrows, escort a Lockheed Martin F-35B to kick off the action at Farnborough. But despite all the excitement up in the clouds, it's rather quiet on the ground - there has been a lack of spectacular order announcements so far. A look inside the cockpit of a Bombardier CS100 passenger plane. The Canadian manufacturer's 110-to-150-seat jets prove that it's not only size that matters. Air Canada, Swiss Airlines and Delta Airlines are on its list of recent buyers. Customers pledged to buy planes, helicopters and drones worth $201 billion (180 billion euros) at the last Farnborough air fair two years ago. Compared to that, this year's order books seem rather empty. The military transport aircraft A400M is causing Airbus trouble. Certain parts of its exterior are prone to cracking, and now problems with its engine have been flagged as well. Still, Airbus plans to showcase the A400M's advantages at Farnborough. As countries like China and India grow wealthier, their aircraft demand will rise - or at least that's what the plane industry hopes. So far, it looks like their predictions are coming true. Chinese airlines Donghai and Xiamen have ordered dozens of planes worth $7.4 billion (6.6 billion euros) from Boeing. Farnborough is perfect for aircraft fans who want to get up close and personal with their favorite planes. While business folk romp about the exhibition grounds during the week, the fair opens up to the general public on the weekend. Author: Rolf Wenkel Europe's largest defense project years behind schedule Germany's A400M program is years behind schedule, with the federal government's share of the costs having risen from an initial estimate of 8.1 billion euros to 9.6 billion euros. Germany is the largest customer of A400M planes, having initially agreed to purchase 53 of them from Airbus. The Defense Ministry maintains that it has a good contract with Airbus that allows it to demand compensation for delays and other technical issues. The A400M was due to completely replace the older ""Transall"" aircraft-by next year. Officials now expect that transition to be completed by 2022 at the latest. The new aircraft was developed as part of a program for seven European NATO states with an initial estimated cost of 20 billion euros. Tuesday's episode coincided with reports that Germany is looking to maintain access to more A400M planes through a pooling agreement with several countries, backtracking on initial-plans to sell 13 on of the 52 it has agreed to buy. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1EVNX dm/sms (dpa, AFP, Reuters)", -909,2017/2/8,http://www.dw.com/en/german-cup-lotte-dortmund-frankfurt-through-schalke-crush-sandhausen/a-37464451?maca=en-rss-en-all-1573-rdf,"German Cup: Lotte, Dortmund & Frankfurt through, Schalke crush Sandhausen","Third tier Lotte scored twice to knock out 1860, while Schalke turned on the style away to Sandhausen. Borussia Dortmund beat Hertha Berlin on penalties and Eintracht Frankfurt edged out Hannover in a dramatic finale.","Lotte 2-0 1860 Munich (Lindner 28, Freiberger 58') Third tier Lotte scored a goal in each half as they eased to a comfortable win over second tier 1860. Jaroslaw Lindner opened the scoring from a tight angle, lashing a venomous shot into the roof of the net after 1860 keeper Stefan Ortega parried the ball to his right. 1860 battled for a route back into the game but their hopes of drawing level were extinguished when- Kevin Freiberger beat the offside trap and poked the ball around Ortega and stroked into the empty net. The visitors' misery was complete when Ribamar was sent off in the last minute for a mindless foul. - Frankfurt's players celebrate with goalkeeeper Lucas Hradecky, who saved a penalty at the death Hannover 96 1-2-Eintracht Frankfurt (Harnik 57' - Tawatha 62', Seferovic 66') Hannover's Salif Sane missed a 96th minute penalty as Frankfurt reached the last eight in a dramatic finale. Martin Harnik seized on some uncertain Frankfurt defending to open the scoring, poking the ball under Lucas Hradecky. But Frankfurt responded five minutes later through Taleb Tawatha's header from Timothy Chandler's cross. Only four minutes after that frankfurt had the lead, with Seferovic pouncing on a poor defensive header and slotting the ball home. Hannover had the chance to force extra time when they were awarded a penalty deep into injury time, but Sane's poor penalty was saved by-Hradecky. - Hertha Berlin pushed Dortmund all the way but eventually lost on penalties Borussia Dortmund 1-1 Hertha Berlin (Dortmund won 3-2 on pens) (Reus 47' - Kalou 27') Salomon Kalou missed the crucial penalty as Borussia Dortmund edged out Hertha Berlin on penalties. Kalou had put Hertha ahead with a fine volley in front of the S��dtrib��ne, stretching to deftly direct Niklas Stark's cross into the net. Hertha took their lead into the break, but Thomas Tuchel's side responded two minutes after the restart, with Marco Reus steering the ball in after Ousmane Dembele's initial effort had come back off the post. With the game in the final minutes of extra time, Dortmund's Sokratis was sent off for dissent just ahead of the shootout, which was clinched when Kalou sent his penalty high over the bar. - Schalke celebrate their second goal of four in Sandhausen Sandhausen 1-4 Schalke (Wooten 65' - Sch?pf 38', Caligiuri 43', Naldo 45', Konoplyanka 71') Schalke turned on the style as they swept second tier Sandhausen aside. Alessandro Sch?pf's scrappy strike from close range opened the floodgates, with Daniel Caligiuri doubling Schalke's lead with a well struck shot and Naldo making it three with a header in first half stoppage time. Sandhausen gave themselves a lifeline midway through the second half through Andrew Wooten, but Yevheniy Konoplyanka completed the rout with Schalke's fourth. - Wednesday's action as it happened:", -910,2017/2/8,http://www.dw.com/en/germany-france-agree-on-transnational-self-driving-test-zone/a-37464274?maca=en-rss-en-all-1573-rdf,"Germany, France agree on transnational self-driving test zone","In a bid to win the race to develop self-driving cars and give a leg-up to their automakers over their rivals from Silicon Valley, the two EU nations have joined hands to test the cars on a stretch of road linking them.","European neighbors Germany and France plan to test self-driving vehicles on a section of road linking the two countries, the transport ministry in Berlin said Wednesday. The route stretches around 70 kilometers (43 miles), from Merzig in Germany's western Saarland state to Metz in eastern France. It is aimed at testing ""automated and connected driving in real cross-border traffic,"" the ministry noted. ""Manufacturers will be able to test the connectivity of their systems, for example when lanes or speed limits change at the border,"" German Transport Minister Alexander Dobrindt said in a statement following a meeting with his French counterpart Alain Vidalies. ""We want to set worldwide standards for this key technology through cooperation between Europe's two biggest car-producing countries,"" he added. The route will allow testing of 5G wireless communications between cars and infrastructure, automated maneuvers such as overtaking and braking, and emergency warning and call systems, among others. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Qc4b An automated future? Germany, home to car giants such as Volkswagen, Daimler and BMW, already boasts a number of test zones for automated vehicles on motorways and in cities, but this is the first that will cross into another country. The transport ministry has offered 100 million euros ($107 million) in funding for the projects. The tests come as the nation's traditional carmakers are racing to catch up to Silicon Valley newcomers such as Tesla, Uber and Google parent company Alphabet in the new field, seen as the future of driving. Automated trucks in particular are expected to shake up the road transport sector in the years to come. In a glimpse of what lies ahead, manufacturers took part in an experiment last year that saw six convoys of ""smart"" trucks cross several European countries using ""platooning,"" in which a leading truck sets the route and speed for wirelessly-connected self-driving followers. sri/uhe (AFP, Federal Ministry of Transport and Digital Infrastructure) -", -911,2017/2/8,http://www.dw.com/en/austria-allies-to-fortify-borders-against-refugees/a-37463288?maca=en-rss-en-all-1573-rdf,"Austria, allies to fortify borders against refugees",Ministers from 15 countries have agreed to devise measures to ensure that a land route for refugees remains shut. Regional governments also oppose taking in refugees who have already reached the European Union.,"Countries along a route commonly used by people trying to reach central and western Europe agreed on Wednesday to fortify their already hard borders. Since authorities reintroduced border fences and increased checks nearly a year ago, the number of refugees traveling through the western Balkans in attempts to reach northern EU nations from Greece has been sharply curtailed. ""We're sending a signal to the traffickers with this conference that there will be no illegal migration to Europe,"" Austrian Interior Minister Wolfgang Sobotka told reporters after Wednesday's talks in Vienna. He spoke of new ""border control measures"" as part of the plan but did not elaborate what the plans entailed. Talks in Vienna brought together defense and interior ministers from Austria, the Czech Republic, Croatia, Hungary, Poland, Romania, Slovakia, Slovenia, Albania, Macedonia, Bulgaria, Serbia , -Bosnia-Herzegovina, Kosovo and Greece. In 2015, some of those countries became arrival or transit points for the hundreds of thousands of people fleeing conflict and unsustainable conditions in the Middle East, Africa and South Asia.- What's next The conference's participants said they planned to identify the most prevalent routes used by displaced people and any potential alternatives and arrive at an estimate of how much additional manpower they might need to shut the borders down. Sobotka said he and his colleagues would draw up new measures to fortify the borders by April. Austrian Defense Minister Hans Peter Doskozil said the countries would also need to prepare for the possible disintegration of the European Union's controversial and multi-billion-euro migrant deal with Turkey. Arriving without authorization via Italy or the Balkans, between 1,000 and 1,500 people applied for asylum in Austria in January.-""The situation is not as-we envisaged,"" Doskozil said after Wednesday's talks. mkg/sms (dpa, AP)", -912,2017/2/8,http://www.dw.com/en/harsh-parenting-leads-to-bad-students-earlier-sex-and-more-crime/a-37457854?maca=en-rss-en-all-1573-rdf,"Harsh parenting leads to bad students, earlier sex and more crime","Overly strict parenting does not a rule-abiding child make, according to a long-term study. Children whose parents severely punish them perform more poorly in the classroom - if they're there at all.","Yelling, corporal punishment or verbal threats of physical consequences, or-""harsh parenting,"" as it was defined in a new long-term study, causes children to perform poorly in school and to behave badly outside of it. According to researchers at the University of Pittsburgh in the US state of Pennsylvania, children raised in a severe parental environment are more likely to skip homework to play with friends and more willing to break rules in order to maintain those friendships - at the consequence of academic performance. The researchers derived their conclusions from a longitudinal study on more than 1,500 adolescents between the ages of 12 and 21, collected as part of the Maryland Adolescent Development in Context study. That study had measured the extent to which parents' verbal or physical attacks grew over time, as well as the adolescents' interactions with peers, their criminal activities and sexual behavior. Students self-reported those answers via questionnaire and were asked questions such as the following: ""During the past month, how often did you parents hit, push, grab or shove you?"" ""How often did your parent yell at you?"" ""When you break one of your parents' rules, how often did they physically punish you?"" Supportive but firm parenting leads to more successful kids One finding was that 7th graders who'd been raised very strictly were, two years later, more likely to consider peers and friends more important than following their parents' own rules. Later, by 11th grade, these individuals were then involved in even riskier behaviors: Young women tended to engage earlier in sexual activity, while males were more likely to be involved in criminal activities. Both genders were also more likely to drop out of high school or college. Risks of underreporting Co-author Rochelle Hentges told DW that, in spite of the inherent risks in self-reporting, allowing kids to provide the information was the best option. ""One of the reasons for child reporting is that parents are biased and tend to underreport their own behavior,"" she said. ""Maybe they don't remember the times they yelled at their kids. But from the kids' perspective, it's clear."" She added that adolescents, however, might underreport-things like delinquencies or early sexual behavior. Of the participants in the study, 56 percent were African-American - not necessarily representative of the entire US, but representative of some suburban, urban and rural environments. When asked about-the moral and ethical difficulty in measuring corporal punishment amongst adolescents - and whether researchers are obliged to report certain kinds of abuse (potentially changing study results) - Hentges said that longitudinal research is able to avoid such conflicts. ""The way long-term studies are usually done is that the responses are de-identified. They're all anonymous, you can't match a response to an individual. So you couldn't follow up."" -As for the conclusion parents could or should draw from the new report, Hentges said it isn't exactly a plea for overly soft parenting, either. -""A lot of time people tend to view parenting as one of two extremes. You're either too permissive or lenient, or you spank your child and be firm and harsh,"" she said. ""That's not really how it has to be. You can have warm, supportive, but firm, boundaries - with clear consequences that are not physical punishment."" The report was published in the US journal ""Child Development."" with dpa", -913,2017/2/8,http://www.dw.com/en/germany-building-too-few-homes-and-the-wrong-kind/a-37462558?maca=en-rss-en-all-1573-rdf,"Germany building too few homes, and the wrong kind","German cities are building too few new apartments to keep up with their growth, according to a new economic study. Not only that, the apartments that are being built are the wrong size - especially in Berlin.","It's nothing new-that German cities are running out of affordable housing,-but up until-now it wasn't clear that the wrong types of apartments were also being built. That's the major new insight in a study published this week by the economic think tank,-Cologne Institute for Economic Research (IW). Only 32 percent of the necessary new apartments were built in Germany's major cities between 2011 and 2015, the study found - putting-growing pressures on the housing market. The IW also discovered-a particular scarcity in Berlin - where only 25 percent of the demand was being covered - in particular,-of two-to-four-room apartments. Meanwhile,-there was barely any-shortage of-up-market-apartments. While the market had successfully covered 97 percent of the demand for five-room apartments across Germany, only 30 percent of the necessary two-room apartments were being built - and in Berlin, the figure was as low as 20 percent. ""We're not building the apartments where they're needed,"" study author Michael Voigtl?nder said.-Altogether, Germany needs 385,150 new apartments every year over the next three years, the IW concluded, with the nation's capital, which is currently growing by 40,000 people annually, needing some 31,230 every year. Developers have no incentive to build cheap housing More building? ""That was pretty surprising, that there was such a drastic shortage of small apartments,"" Voigtl?nder told DW. ""The fact that large apartments are being built, even though people need two or three room apartments."" For Voigtl?nder, the problem is obvious - lack of-room. ""The investors do want to build, but there's a lack of building land,"" he said. ""And if there's a lack of building land, then of course they build what gets them the biggest margins - and that's the biggest and most expensive apartments."" The solution, therefore, is to find more room to build, and an aerial view of Berlin shows there is space in major German cities.-""Not only that,-we need to see that we make better-use of-what we have,"" he added. ""Cheaper homes don't necessarily come from new buildings - we have to find incentives for landlords to offer sub-lets, for example, or incentives to divide up large apartments into smaller ones."" Voigtl?nder also thinks that some regulations - for example for renovating attic floors - are too strict. ""You could certainly adjust-some of the screws here and there,"" he said. ""But the essential thing is building space."" Rich well-served, poor left to struggle But others think the problems are much deeper. Wibke Werner, deputy director of Berlin's tenants association, the Mieterverein, thinks there are a lot more reasons why German cities are struggling to house their inhabitants. ""Another problem is that most of the new apartments are for owning, not renting,"" she told DW. ""Given that more than half of Berliners have a relatively low income, the demand is nowhere near covered for now. And even when they build smaller apartments, they're usually fairly luxurious."" The Berlin government is struggling to find a solution Werner doubts whether it's even possible to cover the demand with new building, since private developers have no incentive to build cheap homes, and state property companies only account for about 16 percent of Berlin's property. Meanwhile, most-of the-undeveloped land in inner city Berlin is also in private hands. For Werner, a solution might be to offer incentives to private developers to build cheaper homes - something the new Berlin government (a center-left coalition of Social Democrats, Greens, and the Left party) has failed to do: ""They're concentrating on the city- and council-owned companies, and avoiding the question of how they're getting the private developers and landlords on board too,"" she said, before admitting, ""But then again, it is a difficult question to answer."" At the end of the day, the state needs to offer developers some cash, Werner concluded.-""Some kind of subsidy that is more attractive than what they can get on the market,"" she said -This, she suggested, could be tied to regulations on how many two or three-room apartments should be included in any new buildings. Behind this problem there is also the question of growing land price speculation through hedge funds - but that is an area that can only be regulated at the federal level.", -914,2017/2/8,http://www.dw.com/en/r-i-p-hans-rosling-goodbye-king-of-data/a-37462151?maca=en-rss-en-all-1573-rdf,R.I.P. Hans Rosling: Goodbye King of Data,"Colorful statistics, jumping bubbles - the Swedish professor entertained us with presentations that were more entertaining than any theater play. Rosling explained the world's problems with ease.","Data-Guru Hans Rosling died on February 7,-2017. His organization Gapminder sent out a tweet with the information late Tuesday evening Swedish time. Rosling was a scientist-who made an art form out of explaining the world to us-while never losing his hope for humanity. Rosling's relatives explained the circumstances of the professor's death: He was suffering from pancreatic cancer - a very treacherous form of tumor. Rosling was diagnosed with the disease roughly one year ago. The statistics expert, who was teaching international health at the Karolinska-Institute in Stockholm, lost the fight against the tumor at the age of 68. He spent his last day with his family in Uppsala. His son Ola Rosling and daughter-in-law Anna Rosling R?nnlund acknowledged that the message must have come unexpected and saddened many of his fans. But they asked to respect the family's-privacy and promised to continue Roslings mission: ""Hans is no longer alive, but he will always be with us and his dream of fact-based worldview, we will never let die!,"" they wrote. On social media, people reacted slowly to the tragic news. There were no agency-reports, no breaking news - just a few tweets. - While scrolling through his last tweets, I notice-how Hans Rosling's death also touches me. This is probably-because I don't only know him from his legendary TED-talks and from videos on youtube, but had an opportunity to meet him in person at the 2014 Lindau Nobel Laureate's meeting. During the meeting - right after his presentation during the opening session - I-admit-I lost all journalistic distance. While I was sitting across from him and recording my interview, his wife was scurrying around us, until he asked her to leave, ""so the recording would turn out alright without all that background noise."" Getting rid of frustration- Then he let off steam and told me - in what felt like an endless flow of words - what a sobering experience his presentation was. Sobering to-him, not-to his captivated audience. He was surprised how little the young scientists and even some of the Nobel laureates knew of the world. At the same time I was relieved to get a break from asking my own questions. I was humbled:-I would-have hardly scored any better in the presentation, which he designed as a quiz. But I was also speechless about the torrent of numbers and data coming at me. Rosling must be an extraordinary talent, I hoped, with-a passion for statistics that-I simply did-not have. ""Wrong,"" he countered. Alright then. People before data The only course in statistics he ever took-was a semester-long class after med school, he said. It wasn't-the numbers and figures that interested him, but the people behind them. ""The data is only a way to understand how life really is,"" he explained. Looking above the rim of his glasses: ""That makes me look ten years older, but 100 times more clever"" he said. The one thing Rosling could not explain very well is how he came to be an Edutainer. That's what he called-himself. ""It was by pure accident"", he said. Rosling liked telling stories at school. Maybe he had a gift for it. No do-gooder And he-used this gift-well. After his studies he spent two decades in Africa, researching and giving lectures about economic development, agriculture, health and poverty - not only focusing on Africa. He also served as an advisor for the United Nations Children's Fund (UNICEF). I asked him-whether he thought it would be-possible to make the world a better place. Rosling smiled and said that wasn't-his intention. ""It's a bit-much to demand"", he said and added that he just wanted-to correct the way people look at the world.- It's the way he produced-his message on stage-that-won him the admiration of many data geeks and statisticians. And he received countless prizes and medals for his work. 2012 he even landed on the list of the ""Times"" 100 most influential people in the world. These are not little facts he drops in conversation, but details a journalist comes across when preparing for an-interview. A real Rosling fan, of course, will know this by heart. A family affair Rosling noted that the idea for his presentations came from his family. It was in 1998-when his son Ola together with Anna programmed the first version of movable bubbles - to enhance the university lectures of the medicine professor and make them more attractive and easy to understand. So it was the son and daughter-in-law-who developed the Ferrari. ""Im just driving it,"" Rosling said and laughed. The concept developed into a foundation named Gapminder:-a project to support free information and knowledge. Looking ahead In the interview I did with Rosling in 2014, he-also showed a private side. All of a sudden, the giant numbers and dimensions from the presentation shrank in size. ""My grandkids will live until the next century. I am never talking about anything abstract. I am talking about my loved ones. It's all about their future,"" he told me at the end of our conversation. Abstract-you never were, Hans. You could not have explained yourself in a better way to us. Let your message - along with your jumping bubbles and colorful statistics - continue to-inspire us to go through the world with open eyes.", -915,2017/2/8,http://www.dw.com/en/germany-pushes-for-renewed-africa-business-ties/a-37460876?maca=en-rss-en-all-1573-rdf,Germany pushes for renewed Africa business ties,German firms have had low interests in Africa. But that's about to change with a business forum in Nairobi where over 400 representatives backed by top politicians are attending the German-African Business Summit (GABS).,"The German delegation is led by economic minister, Brigitte Zypries, and development minister, Gerd Mueller. Germany's Foreign Minister Sigmar Gabriel is also lined up as a speaker at the forum. On the African side, high ranking politicians from five different countries are attending the forum along with the host-nation Kenya led by President Uhuru Kenyatta, who is opening the three-day summit.- In the run up to the summit, the German side already made their intentions clear. ""The German economy is missing out on this market,"" said Development Minister Mueller a few weeks ago on the national broadcaster ZDF. Germany wants to improve standard of living in sub-Sahara Africa to reduce the flow of migrants Germany's economic engagement with Africa is important to Berlin's Africa agenda for a few reasons. On one hand, the German government wants to control the high influx of migrants and refugees from Africa. Berlin had said in order to reduce the number of people forced to flee to Europe, living conditions in sub-Saharan Africa must be improved. ""If we do not solve the problems in Africa, they will come to us sooner or later,"" said Mueller a few weeks ago. On the other hand, German politics is also about jobs creation. ""Many politicians see that Africa is becoming very interesting as an investment location and market,"" said development expert Elvira Schmieg from the German Institute for International and Security Affairs,-(SWP) in Berlin. ""For a long time, Europe was Africa's most important source for importing, and it's still the case, but it has lost that importance,"" Schmied told DW. China ahead of Germany Big businesses in Africa are currently doing extraordinary things, especially in host country Kenya, where Chinese companies are building a railway line costing almost 14 billion euros ($15-billion)-between the main seaport of Mombasa and the capital Nairobi. Eventually, the railway will be extended to neighboring Uganda. Countries such as China and India are becoming the most important trading partners in Africa. The common gross domestic product of the continent has quintupled since 1990, there are still huge mineral resources in the continent and the population is still growing. But German firms have been holding back. Only around 1,000 companies are active on the African continent, according to the development ministry. Approximately two-thirds of these investments are directed towards South Africa. German car-maker VW opened a factory production line in Kenya in 2016 So far, Germany allocates-only two to three percent of its overall foreign investment to-Africa, which is considered very low. ""Even though we are continuously talking about Africa as a continent of opportunities, the German economy has to play an enormous catch up,"" said Heinz-Walter Grosse, chairman of the Sub-Saharan Africa Initiative of the German Economy (SAFRI), the organizers of the summit. Grosse emphasizes that more and more foreign companies are taking keen interest in Africa. ""I believe that the African continent has also evolved over the past twelve months to an extent that its attracting interests from German companies,"" said the SAFRI boss in a DW interview. More security for German investments Nonetheless, many German companies are still afraid of investing in Africa. German CEOs are afraid of the political instability in some African countries. The high rates of corruption are also an obstacle to investment. Economic associations such as SAFRI are therefore pushing for more state guarantees to safeguard potential risk investments. Development minister Mueller also proposed a number of steps in his ""Marshall Plan with Africa."" Kenya's President Uhuru Kenyatta (left) has been pushing for increasing German investments But this alone is not enough to boost German investment in Africa, according to SWP's expert Schmied. She thinks it is important for medium-sized companies to have political stability and a good balance of payment from their African partners: ""In the long run, it will be absolutely crucial as to how the general conditions in Africa evolve. [For now,] we can only work with the current limited development tools at our disposal,"" she said.", -916,2017/2/8,http://www.dw.com/en/russia-threatens-to-forbid-matilda-a-film-about-tsar-nikolai-ii-s-love-life/a-37459910?maca=en-rss-en-all-1573-rdf,"Russia threatens to forbid 'Matilda,' a film about Tsar Nikolai II's love life","Critics fear the Russian Orthodox Church is encroaching on public life after a Russian film about Tsar Nikolai II is threatened with a ban due to insulting ""religious sentiment among believers.""","Mathilda-Marie Feliksovna Kschessinskaya was a beauty - and a real temptress. The prima ballerina from the world-renowned Mariinski Theater in St. Petersburg danced her way not only into the heart of theater audiences but also into the heart of Russian Tsar Nikolai II. A love affair ensued, which Russia is now, more than 100 years later, set to learn about. At least that was the plan of Russian filmamker Alexei Uchitel, whose dream could now be struck down by Russia's religious public and the Kremlin-loyal representative of the Duma, Natalia Poklonskaya, who has twice engaged state prosecutors to stop the film's release. Charge 1: insulting the monarchy Poklonskaya and the Russian Orthodox organization ""The Christian State - Holy Russia"" are incensed that the film contains erotic scenes featuring the character of Nikolai II. They have not, however, seen the film themselves as it is first set for theater release in October. Politician of protest: Duma representative Natalya Poklonskaya Nikolai II, the last Russian tsar, who was murdered by the Bolsheviks in 1918, has been canonized by the Russian Orthodox Church. According to the logic of the complaints against th film, a saint may not have relations with anyone besides his wife, even more marriage - and especially not with a dancer. It is an insult to the monarchy to suggest as much. To add insult to injury, the tsar is played by a German actor, Lars Eidinger. Charge 2: offending religious sentiment Poklonskaya's first attempt at a ban was unsuccessful with state prosecutors. The judiciary found no reason for the ban after viewing the trailer to the movie. Now the Duma representative, who happens to have been the chief state prosecutor in the Russian-annexed Crimean peninsula until just recently, is trying again with the accusation of ""offending religious sentiment,"" which is an indictable charge. The group ""The Christian State - Holy Russia"" has threatened to burn down cinemas that show ""Matilda"" and have spoken of tumult. ""Every film poster and advertisement with information about 'Matilda' will be seen as an attempt at diminishing the holiness of the Russian Orthodox Church and as a provocation to incite a 'Russian Maidan.'"" The latter is a reference to the Maidan Revolution in Ukraine, named after the square in Kyiv where protests began in 2014. The writers of the letter quoted above boasted that they have written to over 100 cinema directors, a move they said they made in order to fight ""lawlessness"" and ""madness."" Russia's ministry of culture supported 'Matilda' Uchitel, the director of ""Matilda,"" sees ominous moral extremists at play behind the scenes. His spokesperson, Andre Shishkanov says he would like to use the law to go up against the organization and hopes to gain the support of the state in doing so. In an interview with DW, he says he is assured that Poklonskaya as well as a large spectrum of the Russian public would themselves be ""persuaded by the highly artistic quality of the film, which by the way, received funding from the Russian ministry of culture."" The film's eroticism has been criticized in Russia The Kremlin has meanwhile criticized threats against Uchitel and his film, although Kremlin spokesman Dmitri Peskov said that such plots are totally unacceptable. In an open letter, over 50 renowned Russian film directors have hit back against the creeping censorship in Russia, something which had destroyed artists' existences for decades during the Soviet Union and delayed artistic development: ""We want to live in a global, democratic country, where censorship is not only forbidden on paper but also in reality."" 'The truly religious wouldn't watch this film' One of the signatories of the open letter is the Russian filmmaker Vitaly Mansky, director of the prize-winning documentary about North Korea, ""Under the Sun."" Speaking to DW, he criticized the church for using the opportunity to impose their beliefs on people. ""I can remember times when people were chased out of the university because they went to church. I'm afraid that soon we will be chased out for not going to church."" Mansky blames the Russian Orthodox Church for not distancing themselves from the self-proclaimed ""protectors of the faith"" that are campaigning against ""Matilda."" He sees in the trailer to the film a clear warning to those who are too firm in their beliefs. ""The truly religious wouldn't watch this film. This isn't a historical textbook, but a film story and a purely commercialized product which is set outside of the church and which now should be forbidden outside of the church? The next step would be to have the church tell me what I can do within my own four walls. And then in my head."" Church asks the sentiments of believers be respected A German as Tsar Nikolai II: Lars Eidinger The press spokesperson for the Russian Orthodox Church, Wachtag Kipshidze, has tried to diffuse the discussion. ""First we have to wait for the film to be released before we can judge it,"" he told DW. ""Of course, one must respect the artistic liberties of the director. At the same time, one likewise has to consider the emotions of people who feel harmed by it."" The spokesperson did not want to speak directly on the subject of Poklonskaya's initiative to forbid ""Matilda."" ""The church does not comment on the individual actions of government representatives and does not get involved in political arguments."" But as a general rule, it would have been ""better, if the director reached out to believers and gained greater understanding."" No sign of understanding That has thus far not been the case - quite the opposite. Battle lines have been drawn, fronts hardened. Poklonskaya will not let up. Director Aleksei Uchitel wants to hold those who wrote the threatening letters responsible. For him, the action is a reminder of the ""real banditry that took place in the chaotic 1990s."" His colleagues in the film industry are now starting a counter-protest campaign. They see the way the church is acting as a ""moral censor"" in this case as a further attack on social life in Russia. A life in which entire theater productions disappear from the program, as Wagner's ""Tannh?user"" did recently in the Opera at Novosibirsk. Or in which an entire exhibition must close early, as did one by the avant-garde painter Vadim Sidur. One in which even the Hermitage in St. Petersburg cannot be spared from cries of people claiming to be ""insulted"" and ""enraged"" when modern works by Jan Fabre are hung alongside the old works.", -917,2017/2/8,http://www.dw.com/en/romanian-government-survives-no-confidence-vote/a-37458233?maca=en-rss-en-all-1573-rdf,Romanian government survives no-confidence vote,"Romania's government has survived a no-confidence motion sparked by last week's controversial corruption decree. Protesters, however, have continued to call for the government's resignation.","Romania's center-left government has survived-a no-confidence vote on Wednesday, a week after it bypassed parliament and enacted an emergency ordinance in an attempt to legalize some forms of official corruption - a-decree that was scrapped after days of massive protests in the streets of Romania. Prime Minister Sorin Grindeanu's government won the no-confidence vote largely owing-to the parliamentary majority enjoyed by the ruling Social Democratic Party (PSD) and its junior partner, the Alliance of Democratic Liberals. The PSD and its allies abstained from participating-during the-no-confidence motion, which-was filed by 123 opposition MPs. The vote needed 233 supporters to pass. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X37S The no-confidence vote came after hundreds of thousands of Romanian citizens took to the streets in protest, the largest seen in the country since the fall of communism in 1989, demonstrating against the corruption decree. The order-was officially rescinded on Sunday, however many protesters have claimed they will continue to march until the government resigns. Anonymous PSD sources told Reuters Justice Minister Florin Iordache, who had a role in writing the decree, is expected to resign on Wednesday.- Protesters remain defiant Grindeanu-continued to call for ""calm and stability""?leading up to the no-confidence motion and remained adamant he will not step down despite ongoing public criticism. -- He told lawmakers his government will not pursue any similar laws relating to corruption which ""could awake powerful emotions in a society without a proper and wide debate."" ""I do hope that, as of today, we get back to work"", he said. ""We have a duty to the people who gave us their trust during the election and to continue to govern.""- The number of protesters have fallen sharply, but are expected to increase into the weekend. A protester told the AFP news agency on Tuesday that many citizens have lost faith in the PSD. ""Every action the government took in the last weeks proves they are not honest at all,"" he said, ""We cannot trust them.""?Crowd numbers topped approximately half a million on Sunday and are expected to increase again over the weekend. President issues warning- President Klaus Iohannis on Tuesday said the country is in the midst of a ""fully fledged""-political crisis and criticized the government for issuing the decree ""at night, in secret""?without properly conferring with parliament. He said the December election had granted democratic governing rights to the PSD, but he also warned against abuse of power. ""If the PSD, which has created this crisis, fails to resolve the crisis immediately, I will summon all the political parties for talks,"" Iohannis told lawmakers in Bucharest, ""You've won, now govern and legislate - but not at any price."" International response The ongoing unrest has also-prompted a word of caution-from Romania's Western allies. The European Commission in Brussels advised the Romanian government against ""backtracking""-over its formerly commended anti-corruption efforts. Meanwhile, in Washington, government officials said they were ""deeply concerned""-over ""accountability""-for corruption offenses. im/sms (AFP, AP, Reuters)", -918,2017/2/8,http://www.dw.com/en/constrained-and-tamed-will-the-elbe-be-deepened-again/a-37447171?maca=en-rss-en-all-1573-rdf,Constrained and tamed: Will the Elbe be deepened again?,"A court in Germany will decide whether Hamburg's Elbe River should be deepened to allow mega freighters to more easily reach the inland port. Environmentalists filed a lawsuit against the move. Now, it's verdict time.","""Finally,"" says Axel Goderath, ""finally the long wait is coming to an end."" For more than a decade the banker and supporter of the citizens' initiative ""Hamburg for the Elbe"" has been involved with the issue of further deepening the river. The city state of Hamburg, with the support of federal government, wants to deepen-the Elbe in the area between the container terminal Altenwerder and-Cuxhaven, where the river intersects with the North Sea. The mega-project at Germany's largest river mouth would be the ninth such carving-out-of the Elbe since 1880. Jobs or nature? Container ships are getting bigger and bigger. But for the ocean giants, the river Elbe becomes a bottleneck. Hamburg, also known as ""the gateway to the world,"" is not as-close to the sea as-its central European competitors Rotterdam and Antwerp. But this city, which was once a hub of the Hanseatic League, was founded on freight. Advocates and opponents are fighting for every single centimeter. It's a question of excavation or conservation, economy or ecology. A-lot of facts, as well as strong emotions. That's why officials do not speak of ""deepening,"" but prefer to call it ""passage adjustment."" That sounds more innocuous. The environmental protection organization WWF describes the possible expansion as ""undersea deforestation."" Should the shoreline of the river have to be paved, it would destroy natural salt marshes and rare tidal-floodplain forests, along with flora and fauna. An endangered plant species called the ""Schierlingswasserfenchel"" (Oenanthe coniodes)-which in Europe only grows at the mouth of the Elbe, would be condemned to extinction. And in the summer, anglers and local residents continue to observe dead fish. At higher temperatures and without light, the algae in deeper regions deteriorate. The lawsuit For more than ten years, the affected people, associations and municipalities have been in the fight with authorities, politicians, the Hamburg senate and business representatives. The European Commission-gave a vague statement in 2011, saying ""the project can be carried out for prevailing reasons of public interest, even if the assessment shows the plan has a negative impact on the surrounding areas.""- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/14lFH The environmental organizations BUND (Friends of the Earth Germany)-and NABU (Nature and Biodiversity Conservation Union),-who have filed a lawsuit against the project, have taken a look at these surrounding areas. In court, there will be no negotiation on the economic aspects. The judges are not concerned with the expectations of the competitiveness of the port. At the moment, 8.8 million containers are handled at the port per year and-that could increase to 13 million.-There are also projections that if the dredging project goes forward, Hamburg could handle some-25 million containers per year. Axel Goderath and-his fellow members of ""Hamburg for the Elbe"" will be there when the Federal Administrative Court-in Leipzig announces on Thursday (9.2.2017) whether the project will be approved. Hamburg as a-logistics hub There is no doubt about the economic role of the port: more than a tenth of all European container handling takes place at the Elbe terminals. Only Rotterdam is higher-on the EU ranking list. But the port is dependent on the global economy and especially on the economic growth of Asian countries. The biggest container ship in the world at the time: The CMA CGM Marco Polo in Hamburg in 2012 ""The deepening of the river Elbe and improved-connections-with-the surrounding-areas are urgently needed,""-said Professor Henning V?pel from the Hamburg World Economic Institute, HWWI. ""Without the deepening, the container transport will move to Wilhelmshaven, Rotterdam or Genoa,"" the HWWI chief told the-""Abendblatt"" newspaper. Theoretically, the North German ports of Hamburg and the JadeWeserPort in Wilhelmshaven could work together. Wilhelmshaven-is able to accommodate even the largest ships and is not that far away from Hamburg. However, as a city state, Hamburg is politically independent and has rejected such cooperation. In earlier court cases, the Federal Administrative Court has dealt with the effects of the construction of the Elbe on the river itself and flood. At that time the judges indicated that they consider an expansion indispensable - subject to conditions. 'Harbor subsidized above all' Sabine Klingemann from the citizens' initiative ""Hamburg for the Elbe"" once passionately sailed on the Elbe. She is annoyed that ""the port in Hamburg is put above all and is being subsidized, while in other areas such as social welfare, there are constant cuts."" In Hamburg, the Elbe and port are omnipresent - the city has grown around them. At least 640 million euros is planned for the deepening of about one meter.- Hamburg's port faces competition from other ports in Germany and neighboring countries ""If you calculate the running costs, the expansion of the rail network and roads so that trucks can transport the containers into the country, the costs will raise to 8 billion euros,"" Klingemann said. Environmentalists fear an increase in storm surges if the water flows even faster and rises higher at high tide. Flood protection measures would be needed. The port area would have to be expanded. The Elbe already has to be excavated regularly to remove the tens of millions of cubic meters of sludge that is swept from the North Sea into the inland waters. The costs for this amounted to 132 million euros in 2015. That sediment is a habitat for crabs, worms, mussels and sea snails. Ship owners calling the shots Horst Domnik's-heart-also beats for the Elbe, but against the expansion. His father was a ship builder. ""In the 1960s this place was swarming with-seafarers,"" he said. ""Around 40,000 of them worked here. But that's-history now. No one-protested against the automation, digitalization and emigration. And there are hardly any shipyards. The industry has voluntarily surrendered Hamburg."" As a captain, Domnik steered-ships on the Elbe. The ship owners had earlier built their ships according to the size of the river and the port. But now it is they who determine how the-ports and waterways are designed and built. Furthermore, the captain fears that accidents will increase and the insurance companies could refuse to insure the passages. ""With Wilhelmshaven, Bremerhaven and the Polish port of Gdansk, there are alternatives to Hamburg,"" said-Domnik. Construction work for the concert hall took nearly 10 years. Hamburg's new landmark, carried by over 1,700 reinforced concrete piles, majestically rises up into the sky. An old warehouse was gutted, re-designed and had a futuristic glass covered extension added. The Elbphilharmonie is Hamburg's foremost prestigious building project. The Elbphilharmonie is part of Hamburg's newly developed HafenCity, Europe's largest urban regeneration projects. Since 2001, on an area of some 157 hectares, up to 7,000 apartments, promenades, squares, shops and offices have been created. The western part (green) is completed, the central part (blue) is still under construction and in the eastern part (red), building work is just beginning. The HafenCity is divided into several districts. One of them being the Überseequartier - or overseas quarter as it would be called in English. It is to become the commercial heart of the HafenCity, creating over 6,000 jobs, with restaurants, hotels, shops and leisure activities including a large cinema. The northern part is pretty much completed but the southern part is still under construction. Part of the Überseequartier district is the Cruise Center HafenCity, Hamburg's gateway to the world. Here big cruise ships dock and trade fairs are held in the terminal buildings. The building dating from 2004 was only only a temporary solution and will be replaced by a significantly bigger construction with a hotel in early 2017, as Hamburg reacts to the booming sea cruise market. Another architectural masterpiece in the HafenCity is the Marco-Polo-Tower, an eye-catching feature on the waterfront next to the Elbphilharmonie concert hall. The 55-meter-high extravagant apartment tower can be seen from afar. The 17 floors have been differently sculpted to give it the appearance that they are being turned on their axis. Construction of the tower was completed in 2010. For years, a customs fence prohibited direct access to the Spree harbor. In 2013, the free port agreement was lifted and the fence removed. The International Building Exhibition Hamburg, responsible for developing and regenerating the harbor area, had new foot and bicycle paths constructed. A stroll there allows you to see the biggest collection of house boats in Hamburg. By now, Hamburg has a 10-kilometer (6.3-mile) stretch of ""city coastline"" with promenades along the waterfront. They begin at the Deichtorhallen art center, lead past the HafenCity to the landing bridges and beyond the Elbmeile restaurant and shopping area next to the fish market, all the way to Övelg?nne. Hamburg doesn't just focus on urban development. Some 1.6 billion euros are to be invested in cultural buildings by 2020. An outstanding example is the Elbphilharmonie. Others include the modernization of the Deichtorhallen art center and two newly constructed musical theater venues. The Bucerius Art Forum (pictured) is currently being extended and a harbor museum is also planned. For years, the Elbe river islands were dominated by dreary high-rises and decaying factory buildings. Wilhelmsburg was seen as a troubled district. The International Building Exhibition Hamburg has also been active here: new apartments were constructed, old buildings redeveloped and social projects initiated. Today the multi-cultural district is popular especially with young families and students. A new district is also emerging in the Mitte Altona area. The Hamburg-Altona railway terminus is to be shut down and the rail tracks removed. The current local train station Diebteich is to be turned into a major rail station. Thousands of apartments are to be built on the area that will become available as there is a permanent demand for accommodation in popular Hamburg. More room for homes is to be created through the new Hamburger Deckel tunnel system. The busy A7 motorway is to be covered at three places to reduce traffic noise. The tunnel deck is to be turned into parks, allotments and community gardens aimed at reconnecting districts. Two of the new tunnels are already being constructed and work on the cover is scheduled to begin in 2019. Author: Elisabeth Yorck von Wartenburg", -919,2017/2/8,http://www.dw.com/en/labour-mp-i-will-be-a-remainer-until-i-die/a-37460029?maca=en-rss-en-all-1573-rdf,Labour MP: 'I will be a Remainer until I die',"As the British parliament prepares to vote for Brexit, Labour MP Mary Creagh tells DW why she will vote against triggering Article 50 and rebel against Labour leader Jeremy Corbyn who has advised MPs to support Brexit.","DW: A clear majority in your rural Yorkshire constituency voted for Brexit. Does it trouble you that you are not representing your constituents when you are voting against triggering Article 50? Mary Creagh: I have always tried to do the best for my constituents. But I feel that leaving the EU is against their interests, that the economic consequences of leaving the single market will be so grave that they will be poorer as a result of it. And it is against my DNA. I am the daughter of an Irish immigrant, I have lived abroad in Europe, I believe in the Labour values of solidarity and internationalism, and I can not bring myself to vote for leaving the EU. How important of an issue do you think this is for your constituents? Will you suffer at the next election? An exceptionally large number of people voted in the referendum, much more than normally in general elections, and the vote for Brexit was across all age groups and also all income groups. A lot of young people voted, who had never voted before. But there is no point in having principles if you are not prepared to make sacrifices. I have always said that I will be a Remainer until I die. Labour MP Mary Creagh The political climate in the UK has heated up after Brexit - has that had any effect on you personally? I have had lots of trolls on twitter, Facebook hates, but no death threats or anything severe like that. Someone through a brick through the window of my constituency office, that has happened to several other female Labour MPs as well. And just a few kilometers away, my colleague Jo Cox was murdered for being pro-European, so that is at the back of my mind. We have seen an increase in hate crime since Brexit, and far right activity in Yorkshire is on the rise. Theresa May has promised MPs that they will have a chance to vote at the end of the negotiations with the EU, in less than 2 years time. Is that not an important concession? For me this is not a meaningful vote. She made it clear that she wants to leave the single market and that we will have to choose between the terms that she will have negotiated, and World Trade Organization rules, which is the hardest Brexit possible. I fear that Brexit could be a catastrophe for the country: It will harm us economically, reduce our competitiveness, it will put more pressure on local councils. Already councils are struggling with cuts as a result of austerity politics, libraries and swimming pools are having to close. Brexit will mean less social justice in the future. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X8rX Could there be a rebellion at the vote tonight? Mary Creagh: The leadership of the Labour party believes that it would be antidemocratic to stand in the way of Brexit after we had the referendum. So most of my colleagues are not going to revolt. But there could be more MPs who are going to abstain, also on the Conservative benches. The Leavers in the Conservative Party are very nervous: The bill still has to go through the House of Lords, and MPs will see what it is going to look like after that. There could still be a rebellion at a later point. Mary Creagh is the Labour MP for Wakefield and a former Shadow Secretary of State for International Development. She challenged Jeremy Corbyn for the party-leadership in 2015 but later withdrew her candidacy.", -920,2017/2/8,http://www.dw.com/en/detox-outdoor-market-leader-takes-harmful-pfcs-out-of-weatherproof-gear/a-37456510?maca=en-rss-en-all-1573-rdf,Detox outdoor: market leader takes harmful PFCs out of weatherproof gear,The harmful chemical PFC is often found in raincoats and hiking boots. But a market leader in outdoor gear now wants to do without it. Environmentalists have praised the move and see changes afoot in the industry.,"Hazardous chemicals do not belong in outdoor clothing. That's why Gore Fabrics, one of the major textile manufacturers in the outdoor apparel-industry, wants to increasingly do away with using per and poly-fluorinated chemicals (PFCs). PFCs are used for making weatherproof membranes and also in the manufacture of- specialized rainproof fabrics. Gore Fabrics is the maker of the well-known Gore-Tex group of products and supplies major outdoor brands like The North Face and Mammut. According to its own reports, the US company has annual sales of about $3 billion. The advantage of PFCs: they repel water, grease and dirt - that's why they're so often used in consumer products, especially in outdoor and performance clothing to provide protection and comfort to the wearer. The drawback is that certain PFCs break down only very slowly-and can interfere with reproductive and hormone systems. PFCs have been spread across the world. Environmental organization Greenpeace found PFC contamination to be ""historic and ongoing"" in the water, air and dust in locations near PFC manufacturing facilities worldwide. In secluded locations such as mountain lakes - the very sorts of places which draw nature lovers, PFC contamination has also been found. Timeline to detox That's why Gore Fabrics now wants to stop using a group of PFCs which it has identified as ""PFCs of Environmental Concern"" in the manufacture of its weatherproof outdoor products such as jackets, shoes and accessories by the end of 2020 (that accounts for about 85 percent of the products it makes using this technology). The remaining 15 percent accounts for specialized products such as uniforms for firefighters and police - Gore Fabrics wants to eliminate PFCs of environmental concern from these products by 2023. ""Our products have always been safe to wear, but Gore recognizes the concerns regarding potential environmental contamination with this group of chemicals and the need for new, more environmentally friendly technologies on the market,"" said Bernhard Kiehl, Gore Fabrics Sustainability Leader in an announcement coinciding with the ISPO sports trade show being held this week in Munich. Outdoor enthusiasts who use gear containing PFCs to keep warm and dry have led the campaign for eco-friendly alternatives ""As a product leader in this sector, Gore Fabrics is excited about the opportunity to drive meaningful change in the outdoor industry by making a very significant investment in developing new technologies that are free of PFCs of environmental concern,"" Kiehl added. The first Gore products with PFC-free waterproofing technology are expected to arrive on the market in about six months. Change in the industry? ""This is a significant step in the transition of the outdoor industry to environmentally-friendly production,"" chemicals expert Manfred Santen from Greenpeace said in reaction to the announcement. ""Because of this decision by the market leader, there will be many more products which do not leave poisonous traces behind in the environment anymore. We also welcome the efforts of Sympatex, the manufacturers of a fluor-free membrane. Both projects show the dynamism with which the industry wants to solve the problem."" Greenpeace has been calling for years to rid the textile production industry of substances which are detrimental to the environment and human health, by means of a wide-ranging information campaign. More than 30 global fashion brands including H&M, Adidas and Aldi have in the meantime committed to replace harmful substances with non-hazardous alternatives by 2020. According to Greenpeace, consumer awareness and protests have also been helpful in exerting pressure on textile companies. ""The current success shows that you can quickly transform a whole industry,"" Santen-said. To protect people and the environment, Germany and Norway want to restrict the use of PFCs in Europe, but a concrete timeline or list of measures has not yet been put in place. Another problem, according to Germany's environmental protection agency the Umweltbundesamt (UBA), is the use of PFCs in wholly different products, such as paper cups and pizza cartons. Greenpeace doesn't want to wait any longer for politics to take its course - and has taken to the Internet to inform consumers about which outdoor brands are already selling PFC-free products, as well as supporting manufacturers to transition to more environmentally-friendly products and production methods.", -921,2017/2/8,http://www.dw.com/en/robots-a-500-year-quest-to-make-machines-human/a-37455366?maca=en-rss-en-all-1573-rdf,Robots: a 500-year quest to make machines human,"Covering five centuries, the ""Robots"" exhibition at the Science Museum in London boasts the most important collection of androids ever displayed. The show explores humanity's obsession - and unease - with them.","Instead of focusing on how they're made, ""Robots,"" the London-Science Museum's new blockbuster exhibition, looks into why humans have always been obsessed with-creating-an automated version of themselves. The exhibition features an extensive collection of over 100 robots, from a 16th-century mechanical-monk to the most advanced models. The development of these human-machines over the last 500 years reflects-religious beliefs, the industrial revolution, popular culture and visions of the future. Androids-are both figures of fascination-and terror. This aspect has guided the organizers of the exhibition, which opens with an animatronic baby that manages to-awake emotions in people. ""Coming face to face with a mechanical human has always been a disconcerting experience. Over the centuries, each generation has experienced this afresh as new waves of technology heralded its own curiosity-inducing robots. That sense of unease, of something you cannot quite put your finger on, goes to the heart of our long relationship with robots,"" said Ben Russell, lead curator of ""Robots."" A growing sense of unease With some exceptions like C-3PO and R2-D2 in ""Star Wars,"" robots are predominantly portrayed in movies as threatening figures. Now Hollywood is not the only one to envision them taking over the world: Even the world-renowned physicist Stephen Hawking has warned that ""the development of full artificial intelligence could spell the end of the human race.""- The satirical sci-fi classic ""RoboCop"" (1987) depicted one of the most iconic robots in film history Developing incredibly quickly, advanced intelligence comes with a series of social, philosophical and economic implications. Do the risks outweigh the opportunities? The exhibition also tries to answer such questions, with discussions such as ""When will robots outsmart us?"" and reflections on ""What it means to be human."" The London show runs from February 8 to September 3, 2017 and will spend the following five years touring different museums in the UK and around the world. Click through the gallery above to discover highlights of the ""Robots"" exhibition. -", -922,2017/2/8,http://www.dw.com/en/top-ukraine-separatist-commander-assassinated/a-37455042?maca=en-rss-en-all-1573-rdf,Top Ukraine separatist commander assassinated,A top rebel commander in eastern Ukraine has been killed in what local authorities described as an assassination. Mikhail Tolstykh joins a string of other warlords killed in bombings in recent months.,"Mikhail Tolstykh, better known by his nom de guerre Givi, was killed in an apparent bombing at his office, local officials and media reported on Wednesday. The 35-year-old headed the ""Somali"" battalion and was a top commander in the self-declared Donetsk People's Republic. He was a notorious and high-profile commander who took part in several key battles in the nearly 33-month conflict. The rebels' Donetsk News Agency said Tolstykh was assassinated in what it described as a terrorist attack. It said a rocket from a portable launcher struck the commander's office early on Wednesday morning. Few additional details were released, but separatists blamed the government in Kyiv. Yuri Tandit, an adviser to the chairman of the Ukrainian Security Service in Kyiv, told 112 television channel that his agency was looking into the reports of the death. Several rebel commanders considered rivals to Moscow-backed separatist political leaders have been killed in bomb blasts away from the front lines. In October, a powerful Donetsk military chief, Arseny Pavlov, also known as ""Motorola,""-was killed in a bombing. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WxFV Moscow has reportedly tried to control unruly warlords who have gained too much local power and engaged in murder and other suspected crimes against civilians. The Ukrainian government has often cited such commanders it labels as terrorists as a reason to not negotiate. At the same time, the political leadership of the Donetsk and Luhansk regions has come to be dominated by bureaucrats tied to former pro-Russian President Viktor Yanukovych, who are rivals of some of the rebel commanders on the ground. Some rebel commanders are considered more hardcore and less willing to negotiate with Kyiv than the pro-Russian political leadership in Donetsk and Luhansk. Dmitry Peskov, spokesman for Russian President Vladimir Putin, said Wednesday that Tolstykh's death was an attempt to destabilized eastern Ukraine after a recent uptick in violence between government forces and rebels that claimed more than 30 lives.- He said it was impossible to suggest Russia had any role in the bombing. Some 10,000 people have been killed and hundreds of thousands have been displaced since protesters ousted Yanukovych in early 2014, leading to Russia annexing Crimea and to the-separatist rebellion in the mostly ethnic Russian eastern Ukraine. cw/msh-(AFP, AP) -", -923,2017/2/8,http://www.dw.com/en/boring-tweets-elon-musk-teases-followers-with-tunnel-and-hyperloop-pipe-dreams/a-37444140?maca=en-rss-en-all-1573-rdf,Boring tweets: Elon Musk teases followers with tunnel and Hyperloop pipe dreams,"A complaint, a promise, and then a photo? Celebrity inventor Elon Musk is slowly raising the curtain on an ambitious tunnel project, one that may have applications on Mars. But is it for real?","Elon Musk has a lot of ideas, and it isn't always clear whether he intends to make something real out of them. Hence the cautious enthusiasm surrounding a photo he posted to Twitter on February 4. It appears to show the interior of an industrial-sized drill used to bore tunnels. It resembles - but is not quite the same as - similar boring machines used for tunneling projects elsewhere. Examples include the German-built Gripper used for the Gotthard Base Tunnel in Switzerland and the ""Bertha"" mega-drill created for an ongoing smaller-scale project in the US city of Seattle. The image, which had not previously been posted to the internet, implies the founder of Tesla and SpaceX has taken a very concrete first step toward fulfilling a ""promise"" to build a tunnel under one of the world's megacities, Los Angeles, population nearly four million. Later that day, as if to show proof-of-concept, he tweeted a second picture of a Washington DC tunnel. Musk has mentioned tunnels before as a theoretical solution to traffic problems plaguing the major cities of the world. But it took a moment of apparent frustration in December 2016 for him to commit himself online to the concept. But the ""promise"" remained just that - until late January, when Musk appeared to commit to actual drilling in a Saturday morning tweet. When one of his followers asked ""Where will your tunnel be?"" Musk responded with the following: ""Starting across from my desk at SpaceX. Crenshaw and the 105 Freeway, which is 5 mins from LAX"" The following week Musk told Wired magazine that, over the weekend, workers at SpaceX headquarters in LA had excavated a ""test trench"" roughly 30 feet wide (9.1 meters), 50 feet long and 15 feet deep. ""We're just going to figure out what it takes to improve tunneling speed by, I think, somewhere between 500 and 1,000 percent,"" he said, also telling the magazine he ultimately envisions tunnels ""10, 20, 30 layers deep (or more)."" Musk added: ""We have no idea what we're doing - I want to be clear about that."" On his Twitter profile, the inventor/investor now describes his professional interests as follows: Tesla, SpaceX, Tunnels & OpenAI. The obvious omission seems to be Hyperloop, the near-vacuum tube allowing magnetic trains to reach theoretical speeds of 1,200 kilometers per hour (760 miles per hour). The omission leaves me wondering, however. To what extent is the Hyperloop concept dependent on ""tunnels,"" and could the Hyperloop in turn become a subcategory of them. Musk says it will be necessary to bore tunnels to make Hyperloop feasible, even if most Hyperloop conceptual art shows the dual vacuum tubes supported on pylons above the ground. He has hinted as much on Twitter. Finally, with regard to SpaceX and the colonization of Mars, one idea that's been floated is whether tunneling underground on the Red Planet would help protect astronauts from radiation and extreme cold. So perhaps the technologies tested in LA should not be viewed as an isolated idea or project, but rather as just one more component in Elon Musk's comprehensive and ever-expanding vision of human travel and exploration.", -924,2017/2/8,http://www.dw.com/en/berlinale-director-dieter-kosslick-trump-is-more-overrated-than-meryl-streep/a-37433279?maca=en-rss-en-all-1573-rdf,Berlinale director Dieter Kosslick: 'Trump is more overrated than Meryl Streep',"The director of Berlin's largest film festival, Dieter Kosslick, discusses with DW how science-fiction and politics sometimes meet. He also reveals the event he's most looking forward to.","A lot has happened around the world since the last festival - including last year's jury president Meryl Streep being called the ""most overrated actress in Hollywood"" by the new US president.-Does the program reflect new political realities? Dieter Kossslick: First of all, I'd say it's rather-the most overrated president in history-and not the most overrated actress - but that's another story""?Yes, we have a lot of films reflecting today's world, such as exploitation in Africa, or colonialism, which still happens in the Antarctic. There are films about Brazil, where big companies - called-""investors"" - are now exploiting the country. So we have all these films dealing with developments that have been taking place over the last few years. Of course-filmmakers have been tackling these topics. And now there's more focus on such issues, with the arrival of a new president who's in favor of the old world, of so-called fossil capitalism. Biopics play a big role this year... The opening film is a musical biopic on Django Reinhardt, one of the world's most famous gypsy and swing guitarists. The young Karl Marx (right), hanging out with Friedrich Engels We also have a biopic on the famous Swiss artist Giacometti, portrayed by Geoffrey Rush-in an incredible performance-and directed by Stanley Tucci. And we have ""The Young Karl Marx,"" directed by Raoul Peck. He describes Marx as a young, wonderful guy stumbling around today's Soho, having some drinks with his friend Engels and thinking about Manchester's capitalism and writing the big book, ""Das Kapital."" The film is right on time, because even newspapers like ""Die Zeit"" in Germany just wrote: ""Was-Karl Marx-right?"" Yes, Karl Marx was right. The capitalist system didn't make the poor people rich; it only makes the rich people richer. The communist system unfortunately didn't work either - but Marx had foreseen the whole thing. One of the things I most look forward to every year is the Berlinale looking back. This year's retrospective is called ""Future Imperfect. Science - Fiction - Film,"" and offers mostly bleak visions of the future. Looking back allows us to see the future or to see the reality we are living in: This is interesting because someone who just took-the time and only saw these films during the Berlinale would also recognize today's reality, because science-fiction filmmakers had fantasies which, unfortunately,-in some cases, are now realities. What are you personally most looking forward to? As every year, I'm looking forward to the opening night. With 3,500 people sitting there watching a film. I hope they'll like it! -- The 67th Berlin International Film Festival (February 9-19, 2017) opens with a musical biopic. The debut film of French director Etienne Comar tells the story of the legendary jazz and swing musician, Django Reinhardt. There are 18 films competing this year for the festival's top awards. Three German works are on the list, including Volker Schl?ndorff's ""Return to Montauk,"" starring Nina Hoss (pictured). There are also six German co-productions in the run. Another German highlight is ""Beuys,"" a documentary about famous German artist Joseph Beuys. Director Andres Veiel is known for his films dealing with political and social issues. His latest documentary is vying for the Golden Bear, going up against feature films. The directorial debut of the actor Josef Hader, the dark comedy ""Wild Mouse,"" is bound to become an audience's favorite among the competing films. Hader's performance in the lead role in ""Stefan Zweig: Farewell to Europe"" (2016) was critically acclaimed. This British dark comedy is also one of the headliners of the festival. ""T2 Trainspotting"" is the sequel to the cult drug trip directed by Danny Boyle in 1996 and stars the original cast, 20 years later. ""T2"" will screen out of competition. Feature films are set against documentaries and animated films in the Berlinale competition. The Chinese animated feature ""Have a Nice Day,"" by Liu Jian, tells a gangster story. The festival's section called Forum includes 43 films this year, including documentaries and several feature films, such as ""Barrage."" This French production deals with the relationship between three generations of women in a family. The program of the section Panorama is once again colorful and diverse: It would be impossible to find just one overarching theme to define it, though Panorama traditionally features many films about homosexuality. Jochen Hick's documentary ""My Wonderful West Berlin,"" about the campaigns of the gay community in the 1980s, is one of them this year. Beyond the traditional sections of the program, the Berlinale Special series highlights recent works by contemporary filmmakers. Among them is the film ""The Young Karl Marx,"" depicting Marx (August Diehl, right) and Friedrich Engels (Stefan Konarske). The film was directed by Haitian-born filmmaker Raoul Peck. In 2015, the Ukrainian filmmaker and activist Oleg Sentsov went on trial in Russia, accused of ""plotting terrorist acts."" Human rights observers described it as a politically motivated case. Despite strong international solidarity with Sentsov, he was sentenced to 20 years in a Siberian prison. The documentary ""The Trial: The State of Russia vs Oleg Sentsov"" is being shown during the Berlinale. Through 14 shorter and longer films, the upcoming generation of German filmmakers is featured in the series Perspektive Deutsches Kino (Perspective on German cinema). One of the most original titles is certainly ""Self-Criticism of a Bourgeois Dog,"" by Julian Radlmaier. The Generation series aims to attract younger movie-goers to the festival. The German-Italian co-production ""Mountain Miracle - An Unexpected Friendship"" tells the story of a 15-year-old girl called Amelie, who suffers from life-threatening asthma, but decides to run away from her doctors and concerned friends and family. The section Culinary Cinema presents films dealing with nutrition, ecology, agriculture and haute cuisine. The documentary ""At the Fork"" explores how farm animals are raised for our consumption. Going beyond the usual clich��s on the topic, the film introduces viewers to real people: America's farmers, grappling with the moral issues of their work. Films are not only made by actors, directors, producers and cinematographers. This is what this year's Honorary Golden Bear aims to underline by paying tribute to the work of the Italian costume designer Milena Canonero. The winner of four Oscars has often worked with Stanley Kubrick, but she also designed the costumes on Sofia Coppola's ""Marie Antoinette."" This year's Retrospective section looks back at the past to show cinema's vision of the future. Among the most original works to be featured is ""Warning from Space"" (1956) by Japanese director Kōji Shima. Festival-goers won't need to wear their warmest clothes to face the frost, thanks to the Berlinale section NATIVe. It focuses this year on indigenous cinema from the Arctic. The film ""Angry Inuk"" by Alethea Arnaquq-Baril provides insight into the consequences of the seal hunting debate for the Inuits of the North of Canada. Those fearing a zombie apocalypse might prefer to avoid George A. Romero's ""Night of the Living Dead."" A restored version of the cult film from 1968 is to be screened in the section Berlinale Classics, along with other masterpieces of film history. Throughout the week's series of workshops held at the Berlin theater Hau Hebbel am Ufer, some 250 young talents from 71 countries will be networking with professionals in the film industry. This year's focus, ""Courage: Against All Odds,"" will lead them to discuss fearlessness in an increasingly challenging film industry. Author: Jochen K��rten (eg)", -925,2017/2/8,http://www.dw.com/en/how-the-berlinale-is-staying-political-by-not-talking-about-trump/a-37431508?maca=en-rss-en-all-1573-rdf,How the Berlinale is staying political by not talking about Trump,"The Berlinale's opening fim, ""Django,"" examines how artists response to totalitarianism. The head of Germany's largest film festival says he doesn't want to talk about Trump - but the film lineup speaks for itself.","Berlinale director Dieter Kosslick has made it clear that he doesn't want to dedicate his film event to the one topic that has already dominated headlines in recent week: US President Donald Trump. - The Berlinale, which opens Thursday and runs through February 19, has always been seen as a decidedly political festival, so many are expecting Trump to be a hot-button issue over the next 10 days. But Kosslick and his team want to avoid that. -- Berlinale director: 'Our program is enough is a protest' Trump's name wasn't even mentioned at the festival's opening press conference. ""Our program is enough of a protest,"" Kosslick stated. Indeed, many films on the lineup have to do with politics and human rights, social upheavals and the consequences of globalization. These films don't shy away from making clear statements against exclusion and hatred. This can already be observed in the opening film. In his debut film, ""Django,""-French director Etienne Comar portrays the years the famous musician Django Reinhardt spent in Nazi-occupied Paris. Django Reinhardt, played by Reda Kateb (pictured above), is a star among the French and his fans love his gypsy swing. Reda Kateb (left) and C��cile de France in ""Django"" However, the Nazis are persecuting members of his ethnic group, the Sintis, and deporting them to concentration camps. For a while, the musician is protected by his own popularity, but when the Nazis demand that he goes on tour in Germany, Django Reinhardt is forced to make a very difficult decision. 'Django' one of many films about artists It features an artist that belongs to a minority group and suffers from state-led repression: ""Django"" deals with a classic conflict that can be interpreted as a reference to contemporary social problems in many parts of the world, including in Trump's America. Social conflicts will be the focus of many films on the agenda and are likely to dominate discussions and press conferences during the festival. At this year's Berlinale, 18 works will be competing for Golden and Silver Bears. German film is once again strongly represented with Volker Schl?ndorff, Thomas Arslan and Andres Veiel, and is also likely to trigger many debates over the next 10 days. ""Back for Good"" is a work by young filmmaker Mia Spengler ""Perspektive Deutsches Kino,"" a special series devoted to young filmmakers will open with ""Back for Good"" by Mia Spengler. The work shows yet another aspect of film - private worlds - by following a mother and her two daughters as they face various crises and conflicts. Circumcision in South Africa, drugs in Canada Of course, Germany's largest film festival, which bills itself as ""the world's biggest viewers' festival,""-also presents international films both in and out of competition. The section ""Panorama,"" for example, is opened by a film from South Africa. In ""The Wound,"" director John Trengove looks at the circumcision rites of the Xhosa ethnic group, while his protagonists travel through a world characterized by machismo and aggression and by tension between tradition and modernity. The film focuses on discrimination against homosexuals in a society dominated by manhood rituals. ""The Wound"" looks at the circumcision rites of the Xhosa in South Africa In addition to the competition and ""Panorama,"" the ""Forum"" is one of the Berlinale's largest sections. This year, its 47th edition will be opened by a Canadian film. ""Werewolf"" by Canadian filmmaker Ashley McKenzie portrays the struggle of a young couple trying to liberate itself from the calamitous cycle of drugs and crime. ""Werewolf"" is about young people living in a 21-century excess, caught between pessimism and hope - issues that are likely to come up in other festival contributions as well.- Robert Pattinson, Pen��lope Cruz expected Berlinale visitors can look forward to other sections such as ""Generation,"" ""Retrospektive,"" ""Kulinarisches Kino"" and ""NATIVe."" As they do every year, film buyers and distributors will meet at the European Film Market, which has been growing steadily over the years. Future directors can hope for some useful advice from professional directors and artists from other fields, including Bulgarian-American installation star Christo. As far as the glamour factor goes, the Berlinale can't quite compare with Cannes, but a long list of top stars are expected nevertheless: Pen��lope Cruz, Catherine Deneuve, Kristin Scott Thomas, Laura Linney, Richard Gere, Ethan Hawke, Robert Pattinson, Geoffrey Rush, and Hugh Jackman - to name a few. This year, the jury is headed by Dutch director Paul Verhoeven, who is a well-known name in Hollywood (""Robocop,"" ""Total Recall,"" ""Basic Instinct""). He's the one who gets to announce ""The Golden Bear goes to""? on Saturday", but also with the rise of nationalism in many countries around the world -926,2017/2/8,http://www.dw.com/en/jack-nicholson-to-star-in-remake-of-german-hit-comedy-toni-erdmann/a-37452635?maca=en-rss-en-all-1573-rdf,Jack Nicholson to star in remake of German hit comedy 'Toni Erdmann',"After a seven-year break from film, Jack Nicholson is set to star alongside Kristen Wiig in an American remake of the Oscar-nominated German comedy ""Toni Erdmann,"" according to a US report.","Jack Nicholson is expected to star in the English-language version of the acclaimed German film ""Toni Erdmann,"" according to a report published Tuesday-by trade magazine ""Variety."" The 79-year-old star was thought to have-retired from film acting; his last appearance in a movie went back to 2010, in James L Brooks' ""How Do You Know."" Even though it did not win the Palme d'Or, Maren Ade's ""Toni Erdmann"" obtained unusual critical acclaim at the Cannes film festival in 2016. The film didn't win at the Golden Globes either, but an Oscar as best foreign film on February 26 is still a possibility, as it is among the five nominees in the category.- Imagine Jack Nicholson and Kristen Wiig instead: Peter Simonischek and Sandra H��ller in the original version The bittersweet comedy tells the story of a father whose life has been characterized by a series of cheap pranks and who tries to reconnect with his career-focused daughter. Jack Nicholson would take on the father's role with Kristen Wiig as-the daughter. But why a remake? Fans of the German film might find the idea of remaking it questionable. However, the trend is not new: Since American movie audiences don't seem to like subtitles or dubbing, Hollywood often remakes successful foreign movies. ""Three Men and a Baby"" from 1987 was based on a French film, while ""Scent-of a Woman"" (1992) originally came from Italy. ""The Birdcage"" (1996) also had a French role model, while ""Interview"" (2007) stemmed from The Netherlands.- The German comedy-drama ""Toni Erdmann"" is also notoriously long - 162 minutes - making it an unusual format for the US. According to ""Variety,"" Nicholson was so thrilled by the original that it was his own idea to get ""Toni Erdmann"" remade. The author and director of the original had already been asked about a possible remake in 2016: ""We've had interest but I have to think about it. It depends. There are so many things remade. I don't feel the need that it's remade but it depends on the conditions. Everybody has his price,"" Maren Ade told news agency Associated Press. Her conditions appear to have been fulfilled; Ade is also attached to the project as executive producer. No director has been named yet. eg/kbm (AP, dpa)", -927,2017/2/8,http://www.dw.com/en/vatican-conference-challenges-china-on-organ-transplant-ethics/a-37451147?maca=en-rss-en-all-1573-rdf,Vatican conference challenges China on organ transplant ethics,A Vatican conference on organ trafficking has put pressure on China to more closely monitor its organ transplants. China operated a program under which many transplanted organs came from executed persons.,"At a Vatican conference on organ trafficking, China's top official on transplantation said on Tuesday that-the country was working on improving the way it handled organ transplants. ""China is mending its ways and constantly improving its national organ donation and transplantation systems,"" said Dr. Huang Jiefu, the director of China's transplant program. China has been strongly criticized for harvesting organs from executed prisoners. Huang first publicly acknowledged the program in 2005, and later revealed that up to 90 percent of organ transplants from deceased donors were from executed people. While the practice was-officially ended in 2015, it is unclear whether China actually stopped the program. Dr. Haibo Wang, a colleague of Huang's, said it was impossible to fully oversee transplants in China with a million medical centers and three million doctors operating in the country. In response, Dr. Jacob Lavee, president of Israel's transplant society, said the World Health Organization (WHO) should be allowed to conduct unannounced inspections and interview donors in China. ""As long as there is no accountability for what took place""�there can be no guarantee for ethical reform,"" said Lavee. Huang countered by saying there were dozens of arrests and 18 medical institutions had been closed. He added that the reforms were still new and required patience. ""China's transplantation reform has been an arduous journey,"" said Huang. ""As long as we move ahead, China will be the largest country for organ transplants in an undisputed ethical way in a few years."" Unwelcome guests The advocacy group Doctors Against Forced Organ Harvesting (DAFOH) criticized the Vatican for inviting guests from China, saying the goals of the conference would be compromised by their attendance ""if China is allowed back into the community of nations without providing evidence that it has truly abandoned its cruel and illegal practice of forcibly harvesting organs.""- Other critics sent a letter to Pope Francis saying the Chinese attendance amounted to whitewashing its previous practices. However, the Vatican stood firm its decision, saying it could encourage reform in the country. ""Are they doing any illegal transplantation of organs in China? We can't say. But we want to strengthen the movement for change,"" said chancellor of the Pontifical Academy of Sciences Monsignor Marcelo Sanchez Sorondo. kbd/jm (AP, Reuters)", -928,2017/2/7,http://www.dw.com/en/german-cup-bayern-gladbach-hamburg-and-arminia-bielefeld-reach-the-last-eight/a-37449884?maca=en-rss-en-all-1573-rdf,"German Cup: Bayern, Gladbach, Hamburg and Arminia Bielefeld reach the last eight",Hamburg saw off Cologne and Arminia Bielefeld came through a tense penalty shootout in the German Cup on Tuesday night. They were joined in the last eight by Bayern Munich and Borussia M?nchengladbach.,"Hamburg 2-0 Cologne (Jung 5', Wood 76') Hamburg scored a goal in each half to dump Cologne out of the German Cup and reach the last eight. Gideon Jung gave the three-time champions a dream start with a close-range finish inside five minutes, and Cologne never recovered. Hamburg, liberated from their Bundesliga struggles in the Cup, doubled their lead 14 minutes from the end through Bobby Wood, whose low finish nestled in the bottom corner. Arminia Bielefeld's Stephan Salgar converted the crucial penalty to send them through Astoria Walldorf 1-1 Arminia Bielefeld (Bielefeld won 5-4 on pens) (Carl 78'- Sch��tz 52') Arminia Bielefeld sneaked into the quarter-finals with a penalty shootout victory over fourth-tier Astoria Walldorf. Bielefeld took the lead through Tom Sch��tz and seemed on course for a slender victory, but-Marcel Carl's opportunistic header for Walldorf leveled the tie and forced extra time. Walldorf held on through extra time to force a shootout, but Nicolai Gross and Jonas Kiermeier missed their penalties, allowing Arminia's Stephan Salger to score the winning penalty to send the second-tier side through. Douglas Costa celebrates his deflected shot, which proved the winner for Bayern Bayern Munich 1-0 Wolfsburg (Costa 17') Douglas Costa's deflected first-half shot gave defending champions Bayern a narrow 1-0 win over a dogged Wolfsburg side. Carlo Ancelotti fielded a strong side, but left Thomas M��ller on the bench. Bayern were-rewarded early on when Costa's strike from the edge of the box clipped off Luiz-Gustavo, wrong footing Wolfsburg goalkeeper Koen Casteels. Wolfsburg held firm throughout the contest and limited Bayern to a few half chances, but rarely threatened Manuel Neuer's goal and Bayern came through as they look to defend their crown. Oscar Wendt scored early on an easy night for Borussia M?nchengladbach Greuther F��rth 0-2 Borussia M?nchengladbach (Wendt 12', Hazard pen 42') Gladbach-scored two first half goals to sink Greuther F��rth, who saw Adam Pinter sent off after 18 minutes. Gladbach's Oscar Wendt low finish put Gladbach 1-0 up inside 12 minutes before Pinter's dismissal for a rash studs up challenge on Christoph Kramer. Greuther F��rth rediscovered some composure after a nightmare start, but Gladbach eased into a 2-0 lead through Thorgan Hazard's penalty shortly before half time. Gladbach were rarely tested and will be in the draw for the last eight. As it happened:", -929,2017/2/3,http://www.dw.com/en/vital-lakes-disappearing-around-the-world/a-37401645?maca=en-rss-en-all-1573-rdf,Vital lakes disappearing around the world,"Water scarcity is a growing problem worldwide, with Africa being hit particularly hard. As temperatures soar and rainfall drops, vital lakes are drying up. We take a look at some of the most startling vanishing acts.","Lake Poop�� Empty fishing boats sit on the cracked, scorched floor of -Bolivia's once mighty Lake Poop��. The lake has been on a continuous decline for years, but at the beginning of 2016, it dried up almost completely, spelling disaster for wildlife and families dependent on it for fishing. The lake has always been shallow and subject to fluctuation. But scientists believe this time it may not recover. Climate change is part of the problem. Rainfall has steadily decreased and temperatures have increased by 2 degrees Celsius over the last three decades, a factor worsened by El Nino, say scientists. But this is also a man-made disaster. Water from the river feeding the lake is diverted for agriculture, as well as silver and tin mines in the region. Lake Chad Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WM1R Lake Chad was once one of the largest lakes in the world. For centuries, it's been a vital source of food and water for the surrounding communities. But it's vanishing at an astonishing rate. Since the 1960s, decreased from around 25,000 square kilometers to 1,350 square kilometers, which is equivalent to a country roughly the size of-Belize in South America disappearing. It is now a patchwork of weeds, ponds and islands. What was once fertile land around the lake is now dust. Agriculture-and fish stocks have collapsed. Around 30 million people in countries, including Chad, Cameroon, Niger and Nigeria, depend on these waters and the lake's vanishing act has plunged the basin into -a food and malnourishment crisis ""on an epic scale,"" according to aid agencies. - Large and unsustainable irrigation projects, diverting water from the lake and the Chari and Logone rivers are part of the problem. Between 1983 and 1994, irrigation in the area had increased four-fold, according to the United Nations Environment Programme. But soaring temperatures and decreased rainfall due to climate change are to blame too. The Dead Sea Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Sj0Z The Dead Sea is a lake fed by the River Jordan and though it has no connection to the ocean, it is so salty that nothing but microbes can survive there. It's also a favorite with bathers and holidaymakers who visit the area, which borders Israel, the West Bank and Jordan, for its curative properties and to float effortlessly on its surface. The lake has survived for thousands of years because the water evaporating from it and flowing into it has remained relatively stable. But that equilibrium has been disturbed with the growth of the region's population. Water is now being diverted to supply people's homes and also for use in the water-intensive potash and chemical sector. It's now declining by around a meter a year-and could disappear completely if measures are not taken. Aral Sea Rusting hulks rise up out of the sand as ghostly monuments to what was once a lively and prosperous fishing port. Mo'ynoq in-Uzbekistan's-had tens of thousands of residents at its peak and sat on the shores-of the Aral Sea. Now the Aral, which at one time was the world's fourth largest lake, is over a hundred kilometes away, and the city's thriving fishing and canning industry has collapsed.- The lake has been--steadily shrinking since the 1970s. Water that had flowed into the Aral-was diverted to irrigate Uzbekistan's burgeoning cotton sector, as part of the Soviet plant to turn Central Asia into the world's largest producer-of cotton. For-a time the country exported more cotton than anywhere else. But the diversion, along with hydropower plants and reservoirs, has taken its toll. It's been an environmental disaster-for the people living around the lake and for wildlife too.", -930,2017/2/2,http://www.dw.com/en/only-30-left-vaquita-numbers-keep-dropping/a-37380604?maca=en-rss-en-all-1573-rdf,Only 30 left: Vaquita numbers keep dropping,"'If we don't capture them, they will die anyway.' Scientists are desperate following the latest news regarding the world's smallest porpoise.","The already desperate situation for the world's smallest porpoise, the vaquita, is getting even worse as the number of animals off Mexico's shores continues to plummet. Now, scientists warn that only 30 animals are left, despite navy efforts to intercept fishing vessels illegally using gillnets. Gillnets are one of the main factors threatening the vaquita. ""At the current rate of loss, the vaquita will likely decline to extinction by 2022, unless the current gillnet ban is maintained and effectively enforced,"" says the International Committee for the Recovery of the Vaquita (CIRVA). The scientists concluded that just 30 individuals remain after analyzing acoustic signals from the upper Gulf of California in northwestern Mexico. In a previous census at the end of 2015 they had found around 60 vaquitas. There were 200 of them in 2012 and 100 in 2014. The scientists have announced what could be a last-ditch effort to save the rare species by capturing specimens and putting them in an enclosure in the Gulf of California, allowing them an opportunity to reproduce. Some environmentalists oppose this approach and point to the risk of vaquitas dying in the process, as DW has previously reported. But authorities and other environmentalists say the vaquitas have been dying for years in gillnets that are meant to illegally catch another endangered species, a large fish called the totoaba . The totoaba's dried swim bladder is often shipped to China, where it fetches tens of thousands of dollars and is eaten in soup. CIRVA member Lorenzo Rojas-Bracho told AFP that scientists would attempt to catch vaquitas around October. ""Illegal fishing continues and if we don't capture them, they will die anyway,"" he said. afp/ke -", -931,2017/1/30,http://www.dw.com/en/world-bank-accused-of-financing-fossil-fuel-development/a-37331666?maca=en-rss-en-all-1573-rdf,World Bank accused of financing fossil fuel development,"A new report says the World Bank's Development Policy Financing programs continue to subsidize builders of coal, oil and gas projects - going directly against its own proclaimed low-carbon and pro-climate policies.","A new report has accused the World Bank of continuing to fund fossil fuel-projects on a massive scale while simultaneously claiming to prioritize efforts to finance the shift to a low-carbon, climate-protected future. ""The World Bank has pledged to help countries adopt a low-carbon development path, specifically by phasing out fossil fuel subsidies and promoting a carbon tax,""?said Nezir Sinani, Europe and Central Asia Manager at the Bank Information Center (BIC), a Washington-based watchdog group. ""However, the bank's policy lending does the opposite, by introducing tax breaks for coal power plants and coal export infrastructure,"" said Sinani. The study, released Friday (27.01.2017), focuses on the World Bank's Development Policy Financing (DPF) program, which accounts for about a third of all World Bank funding. The program extends financial support to borrowing governments in the developing world as a financial reward for adopting specific policies approved by the bank. The BIC report, which examines seven World Bank policy operations from 2007 to 2016 totaling $5 billion in four countries - Indonesia, Peru, Egypt and Mozambique - revealed that ""DPF-linked funds intended to boost low-carbon growth are instead supporting investment incentives for projects that put the climate, forests and people at risk."" The coal industry continues in countries around the world, including China Saying one thing, doing another? ""We need a global financial system that's fit for purpose to factor in climate risks and opportunities,"" World Bank Group President Jim Yong Kim said in November 2016, as the Paris climate change agreement came into force. ""Ending extreme poverty and fighting climate change are inextricably linked. We cannot do one without the other,"" Jim Yong Kim had said. But the new findings indicate that the World Bank is providing extensive and ongoing support for major coal, oil and gas projects. ""World Bank policy loans are creating subsidies for coal, gas and oil projects and undercutting initiatives to build wind, solar and geothermal power infrastructure and protect vulnerable rainforests - including the Amazon,"" BIC said. DW was unable to get through to the World Bank for comment. But the World Bank has apparently disputed the report's findings, which ""grossly misrepresent the World Bank's engagement in these countries,"" a spokesperson for the World Bank told BBC News. Oil and gas projects like this one in Brazil push into the heart of remaining rainforests, bringing roads and illegal logging Key findings In Peru, DPF apparently supported initiatives extended subsidies to public-private partnerships for a liquid petroleum gas pipeline, three natural gas pipeline networks, and 26 new oil-and-gas drilling concessions. There was some support for hydropower, but none for solar or wind projects. In Indonesia, DPF established subsidies for public-private partnerships on fossil fuel infrastructure projects, including four coal power plants and three coal transport railways on the islands of Kalimantan and Sumatra - and no geothermal, solar or wind public-private partnerships projects are in the works. In Egypt, planned infrastructure projects with World Bank DPF-supported subsidies include more than a dozen oil and gas projects, new coal power plants with generating capacity of 12.5 gigawatts, and 12 pending oil and gas exploration agreements. In Mozambique, DPF-supported subsidies will benefit four coal power plants, three coal port terminals, two coal transport railways, and a natural gas plant. One hydropower plant is due for support, but no geothermal, solar or wind projects are targeted by the subsidies. Sinani expressed special concern over Mozambique's accelerated rate of oil and gas exploration, due to its potential to significantly reduce tax rates. ""Such tax reductions are the opposite of a carbon tax, which the Bank purports to support."" Collaborating on the report were Derechos, Ambiente y Recursos Naturales (DAR) Peru, Egyptian Initiative for Personal Rights (EIPR), Greenpeace Indonesia, Friends of the Earth Mozambique, and 11.11.11 Belgium. The World Bank extended $3.05 billion in World Bank funding for the Medupi Power Station in South Africa in 2010 Keeping it in the ground Scientists have developed a ""carbon clock"" showing cumulative emissions of carbon since the fossil-fuels era began, to demonstrate-how little room there is left in the atmosphere for dumping still more carbon. According to 2014 research, more than 80 percent of the world's known coal reserves, 50 percent of natural gas reserves, and 30 percent of oil reserves need to stay in the ground in order to attain a chance at staying under 2 degrees Celsius (3.6 degrees Fahrenheit) warming - a goal to which global society agreed in the Paris Agreement. Closing down coal-powered electricity generation worldwide as soon as possible is the single most important priority for climate stability, climate protection advocates say. The Paris Agreement even committed participating nations to trying to prevent average global temperature rising more than 1.5 degrees Celsius, which would require extremely ambitious year-on-year reductions in carbon emissions - starting now. BIC's Sinani underscored this, saying: ""The climate crisis and staying under 2 degrees Celsius warming not only requires increasing investments in renewable energy, but also drastically decreasing fossil fuel investments."" The BIC report calls on the World Bank to support incentives for more renewable energy through DPFs, and to make ""more rigorous climate- and forest-related assessments of DPFs before they are approved,"" Sinani said. A key challenge for climate protection is financing renewable energy infrastructure in developing countries The World Bank, in its rebuttal, cited broad energy work involving a mix of interventions that ""work together to promote climate smart growth and increased energy access."" Sinani concluded that BIC's call has resonated with several World Bank executive directors.", -932,2017/2/9,http://www.aljazeera.com/news/2017/02/egypt-shuts-el-nadeem-centre-torture-victims-170209143119775.html,Egypt shuts El Nadeem Centre for torture victims,"Police seal El Nadeem Centre after two attempts to close it, claiming the rights group violated terms of its licence. Strict NGO law","Egyptian authorities have closed the offices of a prominent human rights group that helps victims of violence and torture, according to the organisation and a police official quoted by the AFP news agency. El Nadeem Centre for the Rehabilitation of Victims of Violence and Torture in Cairo was shut on Thursday. ""About 15 policemen in official uniform with a group of civilians sealed three apartments in the building belonging to El Nadeem,"" Aida Seif el-Dawla, a co-founder of the nongovernmental organisation, told AFP news agency by phone. ""We didn't violate any rules and the government has not provided any reasons for its closure decision."" Seif el-Dawla said the centre had filed a lawsuit against the order. READ MORE: Al Jazeera's Mahmoud Hussein detained for more than 50 days now A policeman said the centre had been closed for violating the terms of its licence, requesting anonymity because he is not authorised to speak to the media. Authorities have tried on two separate occasions to shut down El Nadeem Centre amid accusations by human rights groups that the government of President Abdel Fattah el-Sisi is stifling civil society groups. Rights campaigners accuse the authorities of human rights violations, including forced disappearances, arbitrary arrests and illegal detentions. Seif el-Dawla was banned from travelling to Tunisia on November 23, along with several other rights activists and lawyers who are not allowed to leave the country. Egyptian and foreign NGOs operating in the country are governed by a strict law which allows the government to supervise their activities and finances. In November, authorities froze El Nadeem's assets for a week before the organisation submitted a document ""proving"" the centre is not subject to the law, El Nadeem said. The organisation was registered with the health ministry and the doctors' union as a ""medical clinic"", Suzan Fayad, an El Nadeem co-founder, said. Egypt's parliament approved in November a new law to regulate the activities of NGOs, in a move that prompted fears of an intensified crackdown on such groups. Source:-News agencies", -933,2017/2/9,http://www.aljazeera.com/news/2017/02/afghanistan-icrc-halts-operations-workers-killed-170209062643029.html,Afghanistan: ICRC halts operations after workers killed,Red Cross suspends some activities in Afghanistan after gunmen attacked a convoy in Jowzjan and killed six staff.,"The International Committee of the Red Cross temporarily suspended some of its efforts in Afghanistan on Thursday, a day after gunmen killed six employees-delivering aid to a remote northern region hit by heavy snowstorms. A search operation was under way to find two charity workers still missing. The head of the ICRC called the incident the ""worst attack against us"" in 20 years, but the group said it did not know who was responsible. ""We will put our operations on hold for at least a week after our colleagues were killed in the attack last night,"" Thomas Glass, an aid worker-and public relations officer with the-ICRC, told Al Jazeera.- ""We've been in Afghanistan for the past 30 years assisting people in need. We want to provide aid and help but not at the cost of our colleagues. So we need to know what happened before we restart our humanitarian efforts."" Taliban spokesman Zabiullah Mujahid told Al Jazeera his group was not involved in the attack. READ MORE: MSF driver killed in attack on convoy in CAR The governor of Jowzjan province, Lotfullah Azizi,-said the aid convoy was attacked by suspected Islamic State of Iraq and the Levant (ISIL) gunmen.- A massive snowstorm dumped as much as two metres of snow on areas of Afghanistan over the weekend, causing an avalanche that killed more than 100 people. Jowzjan police chief Rahmatullah Turkistani said the ICRC workers' bodies had been taken to the provincial capital. ""These staff members were simply doing their duty, selflessly trying to help and support the local community,"" ICRC President Peter Maurer said. Afghanistan is the Red Cross' fourth-largest humanitarian programme in the world, and the attack follows a warning by the charity last month that mounting security issues made it difficult to deliver aid across the country. READ MORE: Afghans expelled by Pakistan in dire need of aid Gunmen in northern Afghanistan kidnapped a Spanish ICRC employee in mid-December, releasing him nearly a month later. That staff member had been travelling with three Afghan colleagues between Mazar-i-Sharif and Kunduz when assailants stopped their vehicles. The local staff were immediately released. Source:-Al Jazeera and news agencies", -934,2017/2/9,http://www.aljazeera.com/news/2017/02/mahmoud-hussein-detained-50-days-170209153219729.html,Mahmoud Hussein detained for more than 50 days,Qatar-based network calls for release of Mahmoud Hussein who is detained under conditions that violate human rights. Four extensions,"Al Jazeera journalist Mahmoud Hussein-has been detained in Egypt for more than 50 days now under-inhumane conditions that do not meet the bare minimum of rights guaranteed by law. Hussein, an Egyptian who lives in the Qatari capital of Doha, was stopped, questioned and detained by the Egyptian authorities on December 20 after arriving at Cairo's international airport for a holiday. He has complained of suffering constant mistreatment, being denied his legal rights, and being kept in an individual cell that does not permit the entry of food or clothing. Al Jazeera has demanded that Egypt unconditionally release Hussein while condemning a recent court order extending his detention for 45 days. His detention has been extended four times so far; the latest extension order was issued on February 5. ""Journalism is not a crime,"" Al Jazeera Media Network said on Thursday. ""The network condemns arresting and harassing journalists for simply doing their professional work ... Free press and freedom of expression are fundamental to democracy."" Hussein faces the fabricated allegation of ""disseminating false news and receiving monetary funds from foreign authorities in order to defame the state's reputation"". Al Jazeera Media Network rejects all allegations against Hussein and condemns those who forced him into false ""confessions"" made on video. The network holds the Egyptian authorities responsible for Hussein's safety and well-being. Al Jazeera also denounces the smear campaign against Hussein by Egyptian authorities via their local media outlets, practices that violate international law. Human rights and media organisations have denounced Hussein's detention. Source:-Al Jazeera", -935,2017/2/9,http://www.aljazeera.com/news/2017/02/velayati-carry-attack-iran-170209154805382.html,Velayati: US does not dare carry out attack on Iran,"Ali Akbar Velayati, adviser to supreme leader, calls US efforts to halt Iran's missile programme 'worthless fantasies'. 'Playing with fire'","Iran has stepped up its war of words with the US, with an influential adviser to the supreme leader-threatening the Trump administration with ""dark days to come"" in case of a military attack on his country. In an exclusive interview to Al Jazeera, Ali Akbar Velayati, foreign-affairs adviser to-Ayatollah Ali Khamenei, said-""Washington does not dare to carry out its military threats against Iran"". ""The Americans know very well that Iran and its allies in the region would retaliate very hard, that will make America face dark days to come,"" he said. In the past week, the US has imposed new sanctions on Iran over a missile test. Velayati said Iran's policies in the Middle East would not change, ""therefore [President Donald] Trump and the American administration must get their stuff together and leave this region completely because the people of this region feel alienated by their policies"". Velayati said the US effort to make Iran stop its missile programme with military threats amounted to ""worthless fantasies"". ""Without the slightest doubt, I can guarantee you that we will continue to develop our military programmes, and especially our defence missile programme, no matter what and at any cost,"" he said. ""We do not have any worry about the US threats because America for the last 38 years after the Islamic revolution has not been able to do anything."" Relations between the US and Iran have deteriorated since Trump took office on January 20, promising a more aggressive line on what he views as Iranian belligerence towards US interests and allies. Last week Michael Flynn,-US national security adviser,-accused Iran of violating a UN Security Council resolution which calls on Iran not to test missiles capable of delivering a nuclear weapon. Iran has confirmed it tested a ballistic missile, but denied it was a breach of a 2015 nuclear deal with world powers or UN resolutions. Trump said Iran was ""playing with fire""-after the country dismissed his warnings over the missile test as unfounded and provocative. READ MORE: US slaps new sanctions on Iran over missile test In a post on Twitter, Trump said his administration would not be as ""kind"" to Iran as the government of his predecessor, Barack Obama. ""Iran is playing with fire - they don't appreciate how 'kind' President Obama was to them. Not me!"" Trump said. Asked by a reporter if military action was a possibility, Trump said: ""Nothing is off the table"". The US later imposed sanctions on-13 Iranians and 12 companies. Source:-Al Jazeera News", -936,2017/2/9,http://www.aljazeera.com/indepth/features/2017/02/voices-border-opposing-trump-wall-170209115220894.html,Voices from the border: Opposing Trump's wall Samuel Gilbert,Americans living close to the Mexico border voice opposition to policies that falsely conflate immigration and security. By,"On Wednesday, John F Kelly, the head of the US Department of Homeland Security (DHS), the department tasked with implementing President Donald Trump's immigration policy, laid out the administration's vision before Congress. It included increasing vetting procedures for foreign nationals and, most pressingly, according to the newly appointed Kelly, fixing the ""gaping wound"" he considers to be the US-Mexico border. ""The security challenges facing DHS and our nation are considerable, particularly along the southern border,"" said Kelly, a former head of the US forces in Latin America. OPINION: What's behind the Great Wall of America? The retired four-star Marine General framed the issue of immigration and the US-Mexico border as the foremost national security issue. ""Our vigorous response to these threats must include increased border security infrastructure, personnel, and technology,"" said Kelly, in line with Trump's directives to boost border security, open new detention centres, and authorise state and local law enforcement officers to act as immigration officers. Referring to the support for Trump's policies within the Republican-dominated House, Congressman Michael McCaul, the chairman of the House Committee of Homeland Security, said: ""I think for the first time we have the political will to get something done."" Another Republican Congressman, Scott Perry, spoke of ""less secure"" borders during the previous administration. """"?Immigration agents could literally be fired for enforcing immigration laws,"" he said. But the claim that the Obama administration was soft on immigrants is far from true. Nearly 2.5 million people were deported between 2005 and 2015. Obama expanded immigration enforcement personnel and deported more undocumented immigrants than any other administration in history. OPINION: Mexico needs to stop accommodating Trump Voices from the border The rhetoric from the GOP and the new administration on immigrants have heightened concerns - long held by border residents and rights activists - about the effect of the proposed increased militarisation of their communities and continuation of an immigration policy that is viewed almost entirely through the lens of national security. ""That narrative that the borderlands are out of control, that it's a national security threat, that the only way to address the border question is through military might, is both shameful and misguided,"" said Christian Ramirez, the director of the Southern Border Communities Coalition (SBCC). ""We believe in security. But the biggest concern is that security cannot come at the expense of people's dignity and rights,"" said Ramirez, highlighting the proliferation of internal immigration checkpoints, mass surveillance and little oversight or accountability for immigration enforcement officials. ""Living in border communities, we see the border wall to be as much a signal of racial and ethnic bias against our communities as it is an infrastructure policy,"" said Brian Erickson, a border policy strategist at the American Civil Liberties Union. He sad that the ""aggressive policing agenda will result in widespread civil rights violations, dragnet surveillance and harassment of border residents"". Erickson pointed towards the legacy of abuses by law enforcement within the 100-mile border zone, where immigration enforcement officials are given extraordinary powers to search, detain and operate checkpoints. SBCC, along with the American Immigration Council, organised a telephonic briefing of ""borderland stakeholders"" a day before the DHS hearing to raise the voices of those most affected by these policies. It included people from each of the southern border states. One of them was a border patrol checkpoint expert named Jorge Rodriguez, who has lived his whole life in the 100-mile border zone and says he has had his daily life affeccted by the extraordinary powers granted to Customs and Border Protection (CBP), the largest police force in the nation. ""As a young Mexican-American male I am suspicious. I don't have the ability to be unsuspicious. I exist as a marked body,"" said Rodriguez, who says he has experienced harassment and racial profiling since he was a student. ""How useful are rights if exercising them leads to abuse?"" he asked, addressing the teleconference. The experiences described by Rodriguez are born out of the extra-constitutional powers given to CBP, a law enforcement agency that Trump's executive order proposes to expand by 5,000 agents. The Fourth Amendment of the US Constitution protects Americans from random and arbitrary stops and searches. But border patrol - unlike all other law enforcement agencies - has the ""the authority to interrogate anyone they think are aliens, search any vehicles in the 100-mile [zone], and within 25 miles of [the] border they are able to enter on to private property all without a warrant or even reasonable suspicion,"" said Andrea Guerrero, the executive director of Alliance San Diego in California and co-chair of the Southern Border Communities Coalition. Lived realities The purpose of the teleconference, according to Ramirez, was to highlight these lived realities and provide the perspectives that are rarely taken into account by policymakers in Washington DC. He said roughly $20bn is spent on border enforcement each year, even as the border communities most affected remain some of the poorest in the nation. ""These realities are rarely mentioned on Capitol Hill [the seat of US power]."" While the Republican-led committee largely voiced support for Trump's executive orders, there were a few at the hearing who countered the rhetoric on immigration. ""You call it the gaping wound,"" said Congressman Jose Luis ""Lou"" Correa, the California representative, referring to Kelly's statement. ""[But] right now immigration from Mexico is at all-time lows."" The number of people living illegally in the country has dropped below 2005 levels, he added. Others questioned the representation of immigrants and of border communities as places of violence and crime - claims made by a number of congressmen during the hearing and throughout Trump's election campaign. ""The claims of lawlessness and rampant violence in our border communities is just wrong,"" said Eddie Trevino, a county judge from Texas and a witness during the hearing's second panel. ""It is nothing more than an attempt to paint it as something that it is not in order to support the misguided rhetoric against border communities, Mexican people and immigrants both legal and undocumented,"" said Trevino. ""The border wall concept is ineffective and creates a false sense of security,"" Trevino added. ""It is utilising a 14th-century solution to address a 21st-century problem."" Conflating immigration and security- Unfazed by any criticism, the Trump administration has gone ahead with pushing immigration as a paramount security issue. ""One thing that Trump is effective at, is conflating refugees and immigration as above all else a national security issue,"" said Kevin Appleby of the New York-based Center for Migration Studies. ""These executive orders are using security as a smokescreen to simply reduce immigration and refugees and to justify mass deportation."" Source:-Al Jazeera News", -937,2017/2/9,http://www.aljazeera.com/indepth/opinion/2017/02/trump-muslim-ban-exception-history-170209115112220.html,,,"It's always been far too easy for Americans to strut around the world's living room praising our own inclusiveness ... acting very much as revisionist historians who, once past the obvious ugly, move along quickly to ""welcome"" the world's hungry, tired and poor. The folly of attempting to rest the progress of a religious creed by persecutions and civil disabilities has been so often demonstrated that it is surprising to see it survived in this age and country. A distinguished advocate of religious liberty decreed, nearly a half-century ago, that even in Great Britain nearly all of its opponents had been silenced - some have been taught sense, others inspired with shame, until none were left upon the field except those that could neither learn nor blush. John Rutherford, Chairman Democratic Party Virginia, 1855 We are, in fact, quite accomplished in repackaging a dark, ugly history with fancy wrapping paper tied together with red, white and blue ribbons that seem to surface with predictable dramatic flair as Americans walk into voting booths. There's not a whole lot of rewrite that can be done to sanitise the genocide of Native people or to recast slavery or reduce misogyny to anything but. These are, after all, the cornerstones upon which the United States was built. And the march from Asia to railroad peonage is littered with the bodies of indentured servants who typically found relief only in the opium that came with their forced labour as they built the passageway of the US from one coast to another. It's a trail of tears that began long before the American Revolution and which continues on today as very much an open, oozing infection ... one described not all that long ago by our Supreme Court as ""badges and incidents of slavery""-in a case which held that Congress had the authority to prohibit even private acts of ongoing discrimination. Likewise, the smug sermon of religious freedom and diversity that seems to find its way into every politician's pulpit is belied by periods of religious persecution that not only predate the American Revolution but periodically stop to revisit us as so much a dark reminder of the wide chasm between blind faith and political reality. The ""non-violent"" part of the story is easy. It has its genesis, not long after the Revolutionary war, when varied states abolished some churches while supporting others, issued preaching licences and collected tax money to fund and establish official state churches. Were it just about ""peaceful"" institutional discrimination, it would be far easier to sell the tale of evolving cultural and religious diversity and freedom. But it's not. Indeed, beginning in the 17th-century, anti-Quaker laws-imposed penalties upon ""heretics"" ranging from expulsion to capital punishment. In the 18th-century, physical assaults and near-drowning of Baptists-often became the cost of their beliefs. The 19th-century brought us torched convents, pitched gun battles between ""nativist"" Americans and mostly Irish Catholic immigrants, and a Mormon town burned to the ground with its leaders executed. In the 20th-century, Jews-became increasing targets of anti-religious fervour which ranged from imposition of immigration quotas based upon national origin to exclusion from colleges, to being banned from holding political office, and to violent attacks typically carried out by special societies such as the Silver Shirts or the Ku Klux Klan. In the early days of the 21st-century, reported anti-Muslim hate crimes soared nationwide from 28 to 481-and ran the gamut from racial and religious slurs to attacks on mosques and to physical assaults and murder. Ours is a political experience long rooted in theological and social animosity and domination; one where majority religious groups have long controlled domestic political power and opportunities that derive from its reach. Indeed, historically, theocratic rule has been quick to punish dissent within our midst and viewed immigrants with ""competing"" religious beliefs and values with suspicion as very much outsiders and undemocratic. INTERACTIVE: US Elections - Who got the right to vote when? So, one might ask, what is there, then, about the most recent Trump attack upon Muslims, all Muslims, that stands in dramatic contrast from a long and sordid American history of targeted persecutions of minorities based upon nothing more than religious and immigrant status? The easy part of the equation is it's 2017 ... a long way removed from the time and place where we feared witches and hanged women. Indeed, one would like to think that in an ""enlightened"", educated, and culturally diverse ""advanced"" society, no president would dare to target men, women and children for exclusion or deportation from our shores on the basis of their place of birth, or belief, and nothing more. But Trump is not your run-of-the-mill president. He has made a career out of exploiting the fears of others to his personal benefit and, like the brash bully that he is, has perfected the art of the contemporary coliseum where today's Roman elite decide the fate of the relatively powerless ... not with a thumbs-up or down but through immigration policies that play to the roar of the crowd ... a crowd long manipulated by ignorance and political greed which reduces 25 percent of the world's population to presumptive enemy status by little more than the number of times that they pray each day. Is Donald Trump's rhetoric, now executive policy, aberrant, or unique? Of course not. Tragically, nothing could be further from the truth. As noted, it is but another in a long history of legislative and political efforts to control the borders and street ways that, on the one hand, hold out the promise of freedom as an opportunity but, on the other, reduce it to little more than a tease based upon colour, class and religious belief. If the past is indeed a prelude, a passing look at just several of these failed attempts to homogenise the American experience offers much a glimpse of, ultimately, where and how Trump will fail in his effort to convert the US into a mirror image of his own insular and supremacist views and ""values"". In 1798 the Alien and Sedition Acts were a series of four laws proposed by the Federalist Party purportedly to increase ""national security"". In relevant part, these laws changed residency requirements for obtaining citizenship and gave the president power to imprison or deport aliens. The Acts themselves came about in response to American ""fears"" that unrest in Europe was starting to haemorrhage over into the US. The Federalists felt this turmoil was caused by immigrants who sympathised with the French Revolution and led people to believe that the Acts were necessary to eliminate foreign enemies residing in the US and to make America a safer place. Sound familiar? After the laws went into effect, the government began compiling a list of aliens that were to be deported. Many who were not incarcerated fled the country-on their own to avoid deportation or imprisonment. Following the implementation of the Act in 1798, future Presidents Thomas Jefferson and James Madison secretly drafted the Kentucky and Virginia Resolutions which not only denounced the Alien and Sedition Acts as unconstitutional but prompted the first serious defence of the principles of states' rights. Not long thereafter, with the rise of public revulsion over the Acts, Jefferson was elected president. He immediately pardoned individuals who were still incarcerated for violating the Sedition Act and repaid the individuals' fines with government funds. More than 200 years later, some 15 states including Washington, Minnesota, Virginia, Massachusetts and New York, the District of Columbia along with more than 150 former US attorneys and assistant US attorneys from California, New York and Florida and some 100 US-based international companies now seek to strike down the Trump executive order which targets Muslims for exclusion or deportation from the US. These challenges derive their impetus from the very claims raised by Jefferson and Adams against the Alien and Sedition Acts, namely that states need not sit silent in the presence of unconstitutional federal attacks upon their citizens, visitors and refugees but can, in fact, seek relief in federal courts even against policies of the president normally found within the unique province of his power. One hundred and forty years later, the Alien and Sedition Acts laid the foundation for imprisoning so-called enemy aliens, namely Japanese Americans, and confiscating their property during World War II. As a result of Executive Order 9066 issued in 1942 by President Franklin Roosevelt, military commanders were empowered to designate ""military areas"" from which ""any and all persons [could] be excluded."" More than 120,000 mostly second and third-generation Japanese Americans - many, Buddhists - were forcibly relocated from their homes mostly on the West Coast of the US and incarcerated in ""camps"" in the interior of the country. Although ordered not long after Japan's attack on Pearl Harbor, there is little doubt that the forced relocation was triggered by political frenzy stirred by hate groups such as the Asiatic Exclusion League, the California Joint Immigration Committee and Native Sons of the Golden West which, along with various earlier Immigration Acts, had long targeted Japanese Americans and immigrants from other ""undesirable"" Asian countries as part of the ""yellow peril"". Although Roosevelt's exclusion order was upheld by the Supreme Court on limited grounds, some 40 years later Congress passed the Civil Liberties Act which apologised for the internment and authorised reparations to each individual camp survivor. The legislation, which specifically acknowledged that government actions were based on ""race prejudice, war hysteria, and a failure of political leadership"", resulted in payments of more than $1.6bn to some 80,000 Japanese Americans who had been interned and their heirs. OPINION: Is this really how fascism takes hold in the US? These are just two of the most extreme examples of race and religious-based hate by the executive and legislative branches of the federal government that cover a 200-year period of US history. They are, however, by no means alien to the American experience which, throughout its run, has targeted immigrants and American citizens alike for no reason other than heritage, race or religion. From the Know-Nothing Movement of the 1850s, to the Palmer Raids of the 1920s, to the McCarthy era some three decades later, there are countless examples of when, like now, political animus has driven petty politicians and hate groups alike to target the most vulnerable among us. Hate is always senseless and, ultimately, self-defeating. It starts out with hating religious beliefs ... be they of Catholics, Jews, or Muslims ... and along the way sweeps within its dreadful destructive reach refugees from countries as diverse as Ireland, Italy, China, Palestine and Syria, to name a few. Hate unites the bonds of fear and ignorance for those who find perverse relief in the pain of others to make more palatable their own personal and political discomfort. Hate is a virulent malady indeed, one that seems to travel with the passage of time. Donald Trump is one such traveller. Stanley L Cohen is a lawyer and human rights activist who has done extensive work in the Middle East and Africa. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -938,2017/2/9,http://www.aljazeera.com/programmes/upfront/2017/02/170209141111745.html,Yanis Varoufakis on Jeremy Corbyn and Brexit,Ex-Greek Finance Minister Varoufakis says Jeremy Corbyn's chances of becoming the next UK prime minister are 'slim'.,"In this Web Extra, former Greek Finance Minister Yanis Varoufakis tells UpFront host Mehdi Hasan that Brexit could hasten the disintegration of the EU, and that UK Labour Party leader Jeremy Corbyn is unlikely to be the next prime minister. ""The chances that he will become prime minister any time soon in the United Kingdom are slim, and that is mainly because of the deep divisions within the Labour Party,"" says Varoufakis. On Brexit, Varoufakis says the vote to leave was a ""huge mistake"" and could ""speed up"" the disintegration of the EU, likening their decision to exit as though the EU were a football club. ""I have a great worry that the British made a huge mistake leaving the EU,"" says Varoufakis. ""The European Union is not a club. It's a lot more than that, and it is at an advanced stage of disintegration. Brexit is going to speed up that disintegration."" Follow UpFront on Twitter @AJUpFront and Facebook. Source:-Al Jazeera News", -939,2017/2/9,http://www.aljazeera.com/indepth/features/2017/02/americans-joining-socialist-groups-trump-170205083615002.html,More Americans joining socialist groups under Trump Patrick Strickland,Socialist groups see huge spike in membership as they join protests against US President Donald Trump. By 'The working class is hyper-exploited' Not entirely new 'No mood to negotiate',"Connor Southard had never been involved in political organising and had never been a member of a political organisation - until the election of the far-right US President, Donald Trump. After that he joined the Democratic Socialists of America (DSA). ""As it became clear that the organised left was getting stronger and facing more formidable threats to its agenda ... it was clearly time to get involved,"" the 26-year-old writer from New York explained. The far-right in the United States - and in Europe - has been energised by Trump's victory and his Republican Party's firm grip on both chambers of Congress. ""The only way to oppose this level of the malignant power [of Donald Trump] is to get organised,"" Southard said. ""This moment is radicalising a lot of people due to the levels of outrage and disgust. People all over the country are asking what to do. The answer in one word is: Organise."" He learned about the DSA from friends and Chapo Trap House, a popular left-wing satirical podcast. Since Trump's electoral victory in November, socialist organisations have reported an explosion in membership and interest. David Duhalde, the DSA's deputy director, explains that the organisation's membership has soared to 16,000, more than doubling since May 2016. In the last two weeks alone, more than 2,000 new members have registered.- ""We're taking advantage of the rising energy around socialism and the popular feeling that capitalism is not working for the majority of people,"" he told Al Jazeera, adding that around 50 new chapters have been founded in communities and on campuses in recent months.- DSA members have participated in mass protests against Trump's inauguration, supported the Women's March, and called for the release of immigrants detained at airports owing to the new president's ban on travellers from seven Muslim-majority countries.- ""It's critical in our politics to promote coalition work and now to be part of a popular front against Trump,"" Duhalde explained. ""Socialists need to be in the masses of protests and doing solidarity work.""- The Socialist Alternative, a Trotskyist party, said its membership has grown by more than 30 percent since Trump's election.- The Socialist Party USA's national secretary office said by email that they had also encountered ""a solid spike from right after the elections"", although they declined to provide further details. Although the numbers remain small when compared with Democratic and Republican Party membership, the growth has been significant. While fuelled by anger at Trump, the phenomenon hasn't come entirely out of the blue. Connor Kilpatrick, a writer who sits on the editorial board of Jacobin, a New York-based socialist magazine, said the failures of both mainstream US parties have played a significant role in the rise of leftist politics. In addition to the failures of establishment Democrats and Republicans, Kilpatrick places a portion of the blame on the corporate media. His analysis is supported by the findings of a study by the mediaQuant analytics firm, which concluded that Trump had received an estimated $5bn worth of free media coverage. Just days after Trump's electoral victory, nearly every mainstream US media outlet ran segments and feature stories about a conference by the National Policy Institute, in which around 100 people celebrated Trump's win. During that conference, infamous white supremacist Richard Spencer led chants of ""Hail Trump!"" as the audience rose to its feet, making Nazi-like salutes. READ MORE: NYC Yemenis close bodegas to protest Trump travel ban That same night, around 450 people crowded into a small hall in Brooklyn to attend a talk about labour struggles hosted by Jacobin. ""It's not like there aren't socialist figures that the media could be shining their light on; they are making a decision not to,"" Kilpatrick said. Two days before the elections, in which Trump won the electoral college by a large margin but lost the popular vote, the Gravis Marketing research firm published a survey that examined how self-described socialist Bernie Sanders would have squared off against Trump. That survey found that Sanders would have beat Trump by a 56 to 44 percent margin. Sanders, a former independent who ran for the Democratic presidential slot and lost the primary to Clinton, is a US senator from Vermont. ""I think the working class is hyper-exploited and has been given nothing,"" Kilpatrick said, adding of Sanders: ""It says a lot that their favourite politician is a 75-year-old Jewish socialist."" The American socialist movement has grown and shrunk in ebbs and flows since its inception. Eugene V Debbs, a socialist icon who ran for president five times, pulled in more than 900,000 votes during both the 1912 and 1920 elections. His Socialist Party of America's membership peaked in 1912 at around 118,000 people.- But American socialism's tumultuous history is punctuated with examples of state repression; the arrest of anti-war activists during World War I, the witch hunts led by Joseph McCarthy during the 1950s and the repression of students and other radicals during the New Left rebellion of the 1960s, among others. Although nationally they are weak today, an April 2016-study-by Harvard University found that 51 percent of millennials - a loosely defined group of people aged between 18 and 29 - reject capitalism and 33 percent support socialism.- Katie Feyh, a professor at Syracuse University who researches Marxism and rhetorical theory, argued that an already increasing interest in socialism was energised by the Sanders campaign. Sanders ""showed how hungry progressives and leftists have been for an electoral formation to the left of where the Democrats have been"" for decades, Feyh told Al Jazeera. The Occupy Wall Street protests in 2011 and the rise of the Black Lives Matter movement in 2014 attracted thousands of newcomers to progressive activism. In the 2012 presidential election, fewer than 18,000 people voted for socialist candidates, according to Latterly magazine. In November, the Green Party's Jill Stein clinched nearly 1.5 million votes. Although not a socialist, Stein championed many left-wing causes. ""With record numbers marching against Trump, there are more people entering political activism outside the voting booth,"" Feyh explained. She added that, while socialists are ""far from the majority"" of those participating in demonstrations against Trump, ""there is an openness to [left-wing] politics that I haven't seen in a long time"".- The American political process, while allowing for third parties, is in its essence a two-party system. From raising adequate funds to getting on ballots and securing sufficient media coverage, third parties face immense barriers.- While the mainstream consensus tends to blame third-party candidates for ""spoiling"" close elections, in a September 2015 Gallup poll, 60 percent of interviewees supported the establishment of a viable third party because the two main parties ""do such a poor job"".- Kshama Sawant, a member of the Socialist Alternative who sits on the Seattle City Council, said her party is organising and focusing on recruitment with the hope of carving out a spot on the national level.- Sawant, who took office in January 2014, was the first openly socialist politician to win a citywide election in Seattle in 97 years when she unseated four-term city councillor Richard Conlin.- Sawant said that the question of working with progressive elements within the Democratic Party is still a point of debate on the left.- While Sawant and the Socialist Alternative supported Bernie Sanders in the Democratic Party primary, they urged him to run as an independent candidate after he lost to Clinton. ""We were always completely open and honest that we don't believe that the Democratic Party can be a political vehicle for putting forward a progressive agenda because its establishment leadership is so closely tied to Wall Street,"" she told Al Jazeera.- Sawant said Democrats have further alienated progressives by urging cooperation with Trump. Following the elections, Clinton offered to work with Trump and encouraged her supporters to keep an ""open mind"". A week after the elections, former President Barack Obama also said Americans should give Trump a chance.- Yet Sawant said most of the young people flocking to socialist groups are not willing to negotiate over Trump's policies. ""There's no mood to negotiate,"" she said. ""There's a mood to fight back.""- IN PICTURES: Washington DC - Women's March for equal rights Thousands descended on airports in New York City, Chicago, Seattle, San Francisco and elsewhere as travellers from seven Muslim-majority countries were detained last week. As the protests spread, a court froze Trump's ban on people from those countries entering the US until it can rule on its legality.- Sawant joined thousands of demonstrators at the Seattle-Tacoma airport. ""There were people who have never been at a protest before ... and we know that those sit-in actions and protests shutting down airports [across the US] were the principle drivers in the [freezing] of the ban."" Last week, Trump signed a pair of executive orders scrapping several regulations placed on Wall Street. He has also vowed to build a wall along the US-Mexico border and to carry out mass deportations of undocumented immigrants, and has publicly stated his support for the use of torture.- Explaining that Trump's far-right agenda has led many to join protests, Sawant argued that it is also a ""historic opportunity"" to introduce progressive politics to a broader audience.- ""We need to tie the demands for immigrants' rights to the demands of working people in general. It's no longer going to be viable to simply play defence,"" she concluded.- ""The entire labour movement and everything we've fought for all these decades is on the chopping block right now. If we are going to save it, we're going to have to fight.""- Follow Patrick Strickland on Twitter: @P_Strickland_ Source:-Al Jazeera News", -940,2017/2/9,http://www.aljazeera.com/news/2017/02/justice-minister-florin-iordache-resigns-protests-170209134948066.html,Justice minister Florin Iordache resigns after protests,"Florin Iordache, co-architect of controversial corruption measure that set off rallies, resigns citing 'public opinion'.","Romania's justice minister has resigned after huge nationwide protests over government efforts to weaken anti-corruption laws through a decree. Florin Iordache's resignation on Thursday came as rallies calling for the government to resign continued despite the Social Democratic-led leadership's pledge to scrap the decree, which would have decriminalised some corruption offences. ""I have decided to offer my resignation,"" said Iordache, 56, a co-architect of the January emergency rule which critics say would have protected corrupt politicians from prosecution. READ MORE: Romania protests: Voices from the street He defended his record at the justice ministry saying he carried out ""all necessary actions to remedy a series of sensitive problems"". ""But despite that, public opinion did not consider it sufficient, and that's why I have decided to submit my resignation."" Iordache said all of his ""initiatives were legal and constitutional"". Against this turbulent backdrop, Sorin Grindeanu,-Romania's prime minister, survived a no-confidence vote on Wednesday despite the ongoing protests. Bowing to pressure, the government scrapped the ordinance on Sunday as up to 500,000 people protested across the country. The rallies were the largest protests since the fall of communist rule in 1989. In a related development on Thursday, Romania's constitutional court said it would not rule on the decree. The decree was referred to the court by Victor Ciorbea, the national ombudsman,-on February 3, two days before the Social Democrats withdrew it. OPINION: Romania's gift of hope to the world ""This decree does not exist anymore. It was scrapped [by the government],"" said Valer Dorneanu, the-court president. ""We start from the truth that the emergency decree no longer exists."" The withdrawal must still be approved by parliament. Asked what would happen if parliament does not do so, Dorneanu said: ""We don't judge based on suppositions."" Source:-News agencies", -941,2017/2/9,http://www.aljazeera.com/indepth/features/2017/02/west-bank-day-land-worth-lifetime-170208064744452.html,West Bank: 'One day on my land is worth a lifetime' Shatha Hammad Zena Tahhan,"A Palestinian landowner shares her story of loss and hope, as Israel legalises theft of private land by settlers. By By","Silwad, Occupied West Bank - From a distance, Mariam Hammad, 83, stood with one of her grandchildren, observing the Amona outpost evacuation. As trucks shuttled between Amona and the nearby Israeli settlement of Ofra, Mariam remained skeptical, questioning whether the evacuation operations were serious. ""My heart will not rest until they remove the water tank,"" she said, pointing to the large water reservoir that was placed on the plot of land she inherited from her father in the Thahir al-Mazari' region, atop a rugged hill, northeast of Ramallah in the occupied West Bank. Eight other families from nearby villages own plots in the same tract of land.- When Mariam arrived closer to the scene of evacuation, Israeli soldiers, who stood behind the concrete blocks, were on full alert. Fearless, Mariam stepped across the street to watch-what was happening on the land she had been forbidden from accessing for decades. With tearful eyes, Mariam recollected her memories of growing up on the land. ""I remember when I was a child, how I used to collect the stones and thorns from the ground and put them aside. My father would plough the field, while my mother planted the seeds,"" says Mariam. The land which her parents bought, she recalls, was non-arable at the time. ""They worked the land day and night until it became 'one of the gardens of Silwad'"". If they offered me as much money as the number of grains of soil on my land, I will not accept. I want my land back - I don't care about money. Mariam Hammad, Palestinian landowner As she grew up, Mariam grew more attached to the land. ""I cannot forget the taste of the water from the well in the field. It was as sweet as honey. I remember it very well and I wish I could return to taste it again."" She recalls that her family used to follow one particular farming rule known as crop rotation - prohibiting the cultivation of the same crops for two consecutive seasons. ""One year we would plant wheat, vetch, barley and lentils. The next year we would grow tomatoes, cucumbers, watermelon, okra, and sunflowers."" While her family owns a considerable amount of land in Silwad, the plot where Amona was built remained one of the most fertile, flourishing all year round, before it was taken over by settlers. On a summer day in the mid-1990s, Mariam and her husband, Mohammad, left their eight children at home to embark on their daily mission to collect the wheat they harvested on their land. ""A group of settlers came while we were working on the field. They began stepping on the crops and spoiling them. My husband tried to expel the settlers from the area,"" recalls Mariam, explaining that the confrontation had intensified and the settlers had tried to assault them, chanting, ""This land is ours - get out of here."" Mariam recalls that, as they feared for their lives, her husband collected his harvesting tools, loaded them onto his horse, and they walked away from the land. ""As soon as we turned our backs and walked a little, the settlers set fire to the land. I ran back and gathered as many wheat stems as I could. I had a feeling that they would not let me enter my land after that day."" That day-marked Mariam's last visit to the land. 'I want to pass on my land to my 30 children and grandchildren, who have a right to it,' said Mariam, with the Amona outpost, built on her land, in the distance behind her-[Shatha Hammad/ Al Jazeera] The next day, Mariam and her husband attempted to access the land, but they were stopped by settlers and Israeli soldiers at gunpoint, she recalled. Soon after, Mariam headed to the municipal council, armed with-title deeds and documents, to prove her ownership of the plot and demand justice, but to no avail. In the following days when Mariam and her husband attempted to approach the area, a woman from Ein Yabrud, a nearby village, identified as-Rutayba Abdul Kareem Jabra, was shot and killed as she walked towards Thahir al-Mazari', according to Mariam. ""She was carrying food on her head and was heading to the fields. As soon as she approached the area, the soldiers shot and killed her, before our eyes."" The head of the Ein Yabrud municipal council confirmed the incident to Al Jazeera. - Under protection from the army, Israeli settlers remained on the land and built the outpost of Amona in 1997. They expanded and built 40 homes, infrastructure, and public facilities, while Mariam and the other landowners were forbidden from accessing their lands for decades. Today, after a long and hard battle in the courts with the help of Israeli human rights organisations, Mariam watches the evacuation and demolition of the outpost, which was once the largest in the West Bank, housing approximately 250 settlers.- Amona is one of about 100 Israeli ""outposts"" scattered across the occupied West Bank. Israel differentiates between outposts and settlements in that outposts were built without government authorisation. Both outposts and settlements, however, often involve seizing private Palestinian land-and are illegal under international law. In 2008, Israeli human rights organisation Yesh Din petitioned on behalf of Mariam and other landowners, demanding the removal of Amona. Three years ago, the Israeli Supreme Court ruled that Amona in its entirety had been illegally built on stolen Palestinian land, and ordered it to be demolished. But as the evacuation enters its final stages, the Israeli government has passed a law that legalises theft of private Palestinian land by Israeli settlers in outposts, which could prevent future evacuations from taking place. The law will see Israel recognise 4,000 homes built by Jewish Israelis in the occupied West Bank as legal, provided the settlers could prove ignorance that they had built on privately owned land or under state orders. According to the law, the Palestinian landowners would be offered either money or an alternative plot of land, even if they refuse to give away their own property. Until today, Israeli settlers who lived in Amona-maintained-that the land was empty when they got there.-""Arabs never lived there, it was a bare rocky mountain,"" one resident said in January.- Back in Silwad, the eldest of Mariam's grandchildren, 20-year-old Abdulhamid Hammad, hugs his grandmother and kisses her forehead.-""My grandmother remembers every corner of the land,"" he said. - ""She talks to us about it and she has instructed us to retrieve it, protect it, and farm it as she and my grandfather used to."" Awaiting to return to her field, Mariam stands with confidence, looking out at her plot of land. ""If they offered me as much money as the number of grains of soil on my land, I will not accept. I want my land back - I don't care about money,"" she said.- ""I feel the soil of our land running through my veins. One day on my land is worth a lifetime."" Source:-Al Jazeera", -942,2017/2/9,http://www.aljazeera.com/news/2017/02/kenya-court-quashes-government-order-close-dadaab-170209101027645.html,Kenya court quashes government order to close Dadaab,"Kenya's high court declares government order to close world's biggest refugee camp ""null and void"".","Kenya's high court has said it would be unconstitutional to close the world's biggest refugee camp, which houses more than 200,000 people who have fled war in neighbouring Somalia.- In a ruling on Thursday, the court said a government order to shut the camp, which would have sent the refugees back to Somalia from the sprawling Dadaab camp, was illegal. Judge John Mativo, who issued the ruling, said Kenya's internal security minister had abused his power by ordering the closure of the camp, which borders Somalia, in May last year. According to Mativo, the order had been given without consulting the people who would be directly affected by its implications, which was a violation of Kenya's constitutional right to fair legal proceedings. ""Hence, the said decision is null and void,"" he ruled. READ MORE: 'Forty percent of Somalis don't have enough food to eat' Mativo also said that the order was discriminatory in nature and went against international treaties that protect refugees from being forced to return to persecution, adding that the Kenyan government had failed to prove Somalia was safe enough for the refugees. Speaking to Al Jazeera, Amnesty International's Deputy Regional Director Michelle Kagari, said a durable solution should be explored for Somali refugees. ""This would include for example, exploring options for Somalis to be integrated into local communities, it would also include exploring options to increase resettlement opportunities for Somali refugees,"" she said. The ruling also blocked a government decision to disband the Department for Refugee Affairs. Amnesty International's East Africa chief, Muthoni Wanyeki, hailed the ruling as ""historic"". He said: ""Today is a historic day for more than a quarter of a million refugees who were at risk of being forcefully returned to Somalia, where they would have been at serious risk of human rights abuses.""- ""This ruling reaffirms Kenya's constitutional and international legal obligation to protect people who seek safety from harm and persecution."" The government had been planning to shut down Dadaab for more than six months. In June, Somalia's ambassador to the US-critisised the plan-and said it would damage relations between Kenya and Somalia. ""Many parts of southern Somalia remain under the control of al-Shabab militias and there are almost daily clashes between them and Somali government forces, and African Union peacekeepers,""-Al Jazeera's Mohammed Adow, reporting from the Somali capital Mogadishu, said. ""If these people [refugees] were to be repatriated back here, they will be coming back to what is essentially a war zone."" The government had denied that it would be abandoning refugees, saying it had made arrangements with the Somali government to resettle them. In November, the closure was-delayed by six months after calls by foreign nations to postpone it on humanitarian grounds. READ MORE: Somali refugees in Kenya fear being repatriated Kenya says Dadaab has become a hive for the al-Shabab armed group, and that it is a drain on the economy. Some refugees have voluntarily returned to Somalia in recent months, after pressure to close down the camp spread fear of being forcibly evicted among the residents of Dadaab. Source:-Al Jazeera and news agencies", -943,2017/2/9,http://www.aljazeera.com/programmes/witness/2014/11/auction-house-tale-two-brothers-20141126142926300786.html,The Auction House: A tale of two brothers,"Two brothers fight to save their family business, the oldest auction house in India, a piece of Kolkata's heritage.","Editor's note: This film is currently not available online. After a long career working in business in the UK, Anwer Saleem has returned to Kolkata to revive the fortunes of his family's ramshackle auction house, The Russell Exchange. It was bought from the British by his grandfather in 1940 and has been in the family ever since. Once it was the Sotheby's of India but these days it is living out a much humbler reality.-The auctions attract people from across Indian society, rich and poor, but the company is not making a profit. The odds are stacked against Anwer, who needs to motivate the staff and his younger brother Arshad to modernise in the internet age. As the brothers come to terms with each other, their amusing relationship gives an insight into whether old family businesses can adapt and survive in 21st-century India. FILMMAKER'S VIEW By Ed Owles For some time I had been looking for a subject about which to make my first hour-long film. I'm interested in spaces where significant exchanges, relationships or encounters occur, which has taken me from this auction house to oil rigs in the North Sea to the Libyan-Sahara. When I came across The Russell Exchange auction house I was immediately entranced by the place as a visual spectacle. It's a setting bursting with stories and layers - strands of Indian society that reflect and affect the city's narratives. I also wanted to make a film in India that avoided over-rehearsed tales of abject poverty, or bland headlines about the ""economic miracle"", and explore a more nuanced space where real Indians meet, laugh, argue and trade day in, day out, for better or worse. There's a special poetry that exists there in its own contained world that mirrors the chaotic, crowded city outside its doors. The brothers' relationship is central to what is a character-driven film and provided me with a fantastically engaging and honest way to tell the story of the auction house. I hope the film will resonate strongly with audiences both within and outside India, touching on themes of brotherhood, financial difficulty, migration and heritage to create an intimate and thoughtful reflection of contemporary Kolkata and a unique place in the city's centre that should be treasured. - Source:-Al Jazeera", -944,2017/2/9,http://www.aljazeera.com/news/2017/02/malaysian-ship-aid-rohingya-docks-myanmar-170209090106480.html,Malaysian ship with aid for Rohingya docks in Myanmar,"Vessel carrying 2,300 tonnes of aid for persecuted Rohingya Muslim minority met by Buddhist protesters.","A Malaysian ship carrying 2,300 tonnes of aid-for tens of thousands of persecuted Rohingya Muslims arrived in Yangon where it was met by Buddhist protesters. Health workers and activists crowded onto the deck of the Nautical Aliya as it docked at Thilawa port near Myanmar's commercial capital on Thursday carrying food, medical aid, and clothing. Myanmar's social welfare minister was among a delegation meeting the ship, which has been at the centre of a rare diplomatic spat with fellow ASEAN member Malaysia. Outside the docking area, dozens of Buddhist monks and demonstrators waited waving national flags and signs reading: ""No Rohingya"". READ MORE: 'Hundreds of Rohingyas' killed in Myanmar crackdown ""We want to let them know that we have no Rohingya here,"" a Buddhist monk named Thuseitta, from the Yangon chapter of the Patriotic Myanmar Monks Union, told AFP news agency. Myanmar denies citizenship to the million-strong Rohingya, despite many of them living on its soil for generations. Buddhist nationalist groups are especially strong in their vitriol, rejecting Rohingya as illegal immigrants from neighbouring Bangladesh. Hundreds of Rohingya have reportedly been killed in a brutal campaign launched by security forces in October, which the United Nations says may amount to ethnic cleansing. The violence started after a series of attacks by armed men on border posts killed nine policemen.- Tens of thousands of Rohingya have fled to neighbouring Bangladesh, bringing harrowing tales of murder and sexual assault. ""We've document atrocities, serious crimes that have been committed by Myanmar's security forces,"" Matthew Smith, executive director of the group Fortify Rights, told Al Jazeera. ""We're documenting killings, we're documenting mass rape ""?throats being slit, bodies being thrown into fires, villages burned to the ground.""- Myanmar's treatment of the Rohingya has sparked criticism from Muslim-majority Malaysia in a rare spat between the Southeast Asian neighbours. Myanmar initially refused to allow the aid ship into its waters and has barred it from sailing to Rakhine's state capital, Sittwe. READ MORE: UN: Rohingya may be victims of crimes against humanity Al Jazeera's Yaara Bou Melhem, reporting from Yangon, said the aid will be unloaded and distributed by the government from there. ""What we know is that a plane from here in Yangon will take the aid to Sittwe, which is nearest to the conflict zone ... to distribute the aid among both Rohingya and Buddists,"" she said. ""There's no clear indication the aid will reach the Rohingya, because the area has been in lockdown since the renewed fighting began in October."" The delivery comes days after a blistering report from the UN accused Myanmar's security forces of carrying out a campaign of rape, torture, and mass killings against the Rohingya. Based on interviews with hundreds of escapees in Bangladesh, investigators said the military's ""calculated policy of terror"" likely amounted to ethnic cleansing. For months, Myanmar has dismissed similar testimonies gathered by foreign media and rights groups as ""fake news"" and curtailed access to the region. Source:-Al Jazeera and news agencies", -945,2017/2/9,http://www.aljazeera.com/news/2017/02/senate-approves-jeff-sessions-attorney-general-170209043924283.html,US Senate approves Jeff Sessions as attorney general,"Trump's choice, Alabama Senator Jeff Sessions, confirmed after accusations of racism and strong resistance. 'Uniquely ill-fitted'","The US Senate has confirmed Senator Jeff Sessions as attorney general despite fierce debate over his civil rights record and a push by Democrats to block him. President Donald Trump's choice was given the green light on Wednesday by a vote of 52-47. Sessions had faced accusations of racism, and a Senate panel rejected him for a federal judgeship in 1986 amid concerns over allegedly racist comments he had made. ""This caricature of me from 1986 was not correct,"" Sessions said after his confirmation hearing last month. ""I deeply understand the history of civil rights ... and the horrendous impact that relentless and systemic discrimination and the denial of voting rights has had on our African-American brothers and sisters."" On Tuesday, Democratic Senator Elizabeth Warren, a darling of the political left, was silenced in the Senate for reading a 1986 letter from Coretta Scott King, the widow of the Rev Martin Luther King Jr, that criticised Sessions for his civil rights record. Democrats, civil rights and immigration groups have voiced alarm about Sessions' record of controversial positions on race, immigration and criminal justice reform. ""Minority parties who did not favour the previous administration's cabinet appointees, typically said let's just confirm them, and allow whatever incompetence to happen, and then we will come out later and blame the president for poor decision-making,"" Lara Brown, associate professor at George Washington University, told Al Jazeera. ""Nobody seems to have the long game in mind, or a much larger strategy."" A known immigration hardliner, Sessions will take over the Justice Department as its lawyers are defending Trump's temporary entry ban on people from seven predominantly Muslim countries and all refugees, the most controversial executive order of the young administration. The 9th US Circuit Court of Appeals is due to rule this week on whether to overrule a district court judge in Seattle who suspended the ban last week. READ MORE: Who are Donald Trump's cabinet picks?- Senate Majority Leader Mitch McConnell, a Republican, praised Sessions as honest and fair. ""This is a well-qualified colleague with a deep reverence for the law. He believes strongly in the equal application of it to everyone,"" he said. Sessions, who is originally from Alabama, will serve as the 84th US attorney general. The 70-year-old was an early Trump supporter who became a pivotal figure in his campaign and transition team. He served as a prosecutor from 1981 to 1993, and won a seat in the Senate in 1996. Senate Democrat Chris Murphy said he was ""scared"" about changes Sessions could bring. ""[His ] history of opposing civil rights, anti-gun violence measures and immigration reform makes him uniquely ill-fitted to serve [as attorney general],"" Murphy said. ""I want a chief law enforcement official that will be a champion of the disenfranchised and dispossessed, not a defender of discrimination and nativism."" READ MORE: Donald Trump clashes with courts over immigration ban Former vice-presidential candidate Timothy Kaine, also a Senate-Democrat, said Sessions' record raised doubts. ""Any attorney general must be able to stand firm for the rule of law even against the powerful executive that nominated him or her,"" Kaine said. ""In this administration I believe that independence is even more necessary."" Trump was quick to congratulate Sessions on Twitter:- Congratulations to our new Attorney General, @SenatorSessions! pic.twitter.com/e0buP1K83z Sessions will assume office a week after acting Attorney General Sally Yates was removed by Trump for refusing to defend his travel ban. With the attorney general in place, eight of Trump's 22 Cabinet nominees have been confirmed. Source:-News agencies", -946,2017/2/9,http://www.aljazeera.com/news/2017/02/flooding-fiji-cyclone-170209110154214.html,Flooding in Fiji - but no cyclone,"One year after TC Winston, the South Pacific looks seasonally wet but quieter","On the southwest Pacific island of Fiji, the town of Nadi reported 303mm of rain on Tuesday night. That is a lot even for a Pacific island and considering what happened here one year ago, potentially worrying, as it indicates active weather. Flash flooding and swollen rivers were the result of this rain which was thankfully more of an annoyance than too damaging. - This is #Nadi right now. #TD09F pic.twitter.com/awDXZou8gC Nadi to Lautoka stretch under water. Travel safe or don't at all! #fiji #FijiNews PC: Davila. S pic.twitter.com/9bSPBW2BIF Fiji was hit in February 2016 by Tropical Cyclone Winston, a major category 5 cyclone, (that is at the top of the scale), which caused widespread destruction. The official tropical cyclone season runs between November and April. During the last cyclone season, there were 8 cyclones, one of which was TC Winston. The forecast issued by the Fijian Met Service for this season suggests as few as three tropical cyclones will pass through Fiji waters with one anticipated to reach Category 3 or above. At the moment, there is one tropical depression near Fiji, the one that brought Tuesday night's rain. Nadi's February average rainfall is, coincidentally 303mm, representing 15 days of rain, not just one. It has rained since, a further 56mm, but the heaviest rain is a little to the east of the main island of Viti Levu. Last Friday, the Nadi weather office issued a warning that flash flooding would occur in the following week because of a trough of low pressure sitting over the country. People were able to prepare by moving property and livestock out of low-lying areas. This following week will see further spells of significant rain but as yet, no tropical cyclones near Fiji. Source:-Al Jazeera", -947,2017/2/9,http://www.aljazeera.com/indepth/opinion/2017/02/trump-iran-scenarios-escalation-170209092314262.html,,,"Iran and the new Trump administration have already clashed with potentially disastrous consequences. The extreme vulnerability of the rapport between the two countries following the nuclear deal was on show recently as Iran tested a new long-range missile, and the Washington put Iran ""on notice"". Yet, it is unsurprising that after 35 years of enmity, the revived US-Iran relationship would stumble as a radically different leadership takes power in Washington. Indeed, it might fall further should a similar shift occur in May after presidential elections take place in Iran. Does this mean the nuclear deal is doomed? It may be. But if so, it would be as much by default as by design. Four unexpected consequences of ill-conceived moves on Washington's part could intensify the conflict and collapse the deal. One smart move could save it. 1) Misreading Iran's bluster as more than an 'opening position' US puts Iran 'on notice' after missile test confirmation (2:11) The legality of the missile launch within the terms of the Joint Comprehensive Plan of Action (JCPOA), the nuclear agreement signed in 2015 by both governments, has drawn much speculation by American analysts, but no actual determination that it broke the letter of the law. The Trump administration's inexperience in reading the tea leaves of Iran's foreign policy manoeuvres, however, has led it to decide, that, legal or not, the launch was an insult and a threat. So it hurled back a threat of its own. Yet - much like Trump himself - the Islamic Republic is a prodder and doesn't back down when it gets a reaction. The result: public denunciations and shows of power will likely escalate. 2) Viewing diplomacy with Iran as useless, assuming that all it understands is force To Trita Parsi, of the American Iranian Council (whose forthcoming book tells the inside story on how exactly the deal was done), to put shouty cards on the table without a soft-exit plan is to misunderstand the game of diplomacy, particularly when it comes to Iran. What the Iranians do is play multiple hands - the public stage, the back-corridors, the phone lines - which Trump's predecessors did too. If the new administration only grandstands and doesn't balance tough words with secret meetings and smart compromises that suit both countries, the relationship will crash. 3) Mistaking Iran for a failed state By placing it on the ""List of Seven"", Trump has put Iran in strange company. The other six are either at war, or lacking central government authority - unlike Iran, which has conducted high-level, government-backed international negotiations with the US over a significant security deal. This is shaming for Iran, just as it was when George W Bush inducted Iran into the Axis of Evil after it publicly offered to materially support Washington's plans against al-Qaeda after 9/11.- READ MORE: Ayatollah Khamenei - Donald Trump shows real face of US As previous Iran nuclear negotiator Seyed Moussavian has frequently pointed out, Iran craves international respect, which once it felt forthcoming from Washington, contributed to the miraculous nuclear turnaround. Trump, by including Iran among the seven Muslim-majority countries whose citizens he tried to ban from entering the US, has signalled that no matter what it does to burnish its international image, Iran will never get US respect. From that perspective, why would he care that not a single Iranian has been apprehended for terrorism inside the US?- Misreading an adversary - or a friend - suggests the honeymoon is over.- -- 4) Imagining Iran as having no good options Iran today - post nuclear deal, free of UN and EU sanctions, restored as a regional power balancing Turkey and Saudi Arabia in Syria, and, critically, close to Russia - is not the lonely pariah of the past. To completely misjudge Iran, and allow the relationship of jabs and one-upmanship to deteriorate to a point where the use of force is the only option left on the table, would see the US going into war largely alone. - Its economy is big - it's the second largest producer of both steel and cars in the Middle East. But its trade goes not west but east, to the booming markets of China and India, and north, to Russia. A report this week by the conservative Washington Institute of Near East Studies noted that Iran's tight relationship with Moscow defies history, but reflects a solid pragmatism on both parts, that will be unfazed by Trump officials threatening to drive a wedge between them. US administrations have consistently underestimated Iran's ability to survive international pressure, such as the travel bans and individual targets in Congress's newest ""behavioural modification"" sanctions passed last week. Today, however, miscalibrating Iran's regional clout could damage the US' relations with both Moscow and Ankara, each of which have recently been wobbly and such a miscalculation could seriously compromise American regional plans to contain the Islamic State of Iraq and the Levant (ISIL). To completely misjudge Iran, and allow the relationship of jabs and one-upmanship to deteriorate to a point where the use of force is the only option left on the table, would see the US going into war largely alone. Though Israel might be at its side (and the already war-worn Saudi Arabia), Russia, supportive of Iran's recent ""legal"" missile test, would not sit back idly, but demand booty and threaten the use of force in equal measure. Islamists, all supporters of al-Qaeda, Jabhat Fateh al-Sham, ISIL or the Khorasan Group, would finally have their turn against the US as Donald Trump stumbles back into the morass from which President Barack Obama had withdrawn. - And the Europeans cannot be counted on. The European Union just re-iterated Iran's compliance with the JPCOA once again, signalling that it does not share Trump's view of Tehran's misdemeanours. Yet all this could be avoided with one smart move. And one that fits with President Trump's own self-image as a deal-maker. Offer a White Flag, and recast Iran as a valuable prospective market. Hardliners and reformers in Iran agree on little, and neither would find much in common with Trump today, except to agree that the JCPOA isn't working well - currency regimes have been inadequately loosened, sanctions haven't been sufficiently lifted, companies are hesitant to sign deals, and international bank engagement remains anaemic. For either side, destroying the JCPOA would not be difficult. But presidential greatness stems not from ripping up deals but, as Jimmy Carter with the Camp David Accords and Obama with Cuba both illustrated, it comes from making them work. By approaching Iran in a completely new way (as Richard Nixon did with China) and turning it into an economic opportunity for US companies - currently restricted from doing any business, no matter how lucrative, with oil-soaked Iran - it could be both a diplomatic, and a commercial coup for the new president. Sadly, that's the last thing that Mr Trump would think of doing. Roxane Farmanfarmaian is a lecturer at the University of Cambridge,-Centre for the Study of the International Relations of the Middle East and North Africa. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -948,2017/2/9,http://www.aljazeera.com/news/2017/02/airstrike-gaza-strip-tunnel-kills-palestinians-170209080209947.html,Air strike on Gaza Strip tunnel kills two Palestinians,Two dead and five wounded near Gaza-Egypt border after missile slams into a tunnel defying Israeli blockade.,"Two Palestinian civilians were killed and five others were wounded in an air strike that hit a tunnel in Gaza near the Egyptian border. It was unclear who launched the attack on Thursday. A Palestinian official blamed Israel, however, a military spokeswoman denied any knowledge of the strike.- Ashraf al-Qedra, Gaza's health ministry spokesperson, said in a statement the two men were ""martyred and five other people were wounded as a result of being targeted by an Israeli warplane along the Palestinian-Egyptian borders"". According to al-Qedra, the two men killed were identified as Hossam al-Sufi, 24, and Mohammed al-Aqra, 38. An Israeli military spokeswoman said she was unaware of the attack, which happened pre-dawn between the Gaza Strip and Rafah on the Egyptian side of the border.- READ NOW: Fatah and Hamas to form unity government The incident took place after at least three rockets were fired from the Sinai peninsula into Israel's southernmost resort city of Eilat late on Wednesday. The Israeli army said in a statement its missile defence system, known as the ""Iron Dome"", intercepted the rockets, preventing any casualties or damage. Israeli media reported a group affiliated with the Islamic State of the Iraq and the Levant (ISIL, also known as ISIS)-claimed responsibility for the attack on Eilat. Gaza has been under a decade-long siege imposed by Israel following Hamas' election victory and subsequent takeover of the enclave in 2007. Since 2013, Egypt has largely shut off its border with Gaza, blocking nearly 2,000 tunnels connecting Gaza with Rafah, stemming the flow of much-needed goods and resources. Egypt recently eased some border restrictions with Gaza. Source:-News agencies", -949,2017/2/9,http://www.aljazeera.com/indepth/features/2017/02/cia-chief-ankara-security-partnership-170209063400733.html,CIA chief in Ankara: A security partnership? Birce Bora,"Discussions on Syria, ISIL, Kurds and Gulen are expected to be the focus of CIA chief Mike Pompeo's visit to Ankara. By","CIA Director Mike Pompeo is expected to visit Turkey in the first overseas trip after his appointment to the role by US President Donald Trump. Pompeo's unexpected official visit to Turkey, perceived as a sign of the new US administration's support for Ankara, came on the back of a 45-minute telephone conversation between Trump and his Turkish counterpart, Recep Tayyip Erdogan, on Tuesday. Trump discussed the ""close, long-standing relationship"" between the US and Turkey, and welcomed Turkey's contributions to the fight against Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group, the White House said in a statement about the phone call, which was the first between the two leaders since Trump's inauguration three weeks ago. READ MORE: From Obama to Trump - Lessons and challenges Turkish analysts told Al Jazeera that while the ""positive"" phone conversation between the two leaders and the CIA chief's unexpected visit to Ankara may indicate the start of a new security-based partnership between Turkey and the US, there is still a cloud of uncertainty over the future of Turkish-American relations. ""It is safe to assume, after witnessing the first three weeks of his time in office, that President Trump's approach to foreign relations is going to be unpredictable and erratic,"" Ali Faik Demir, expert on Turkish foreign policy at Istanbul's Galatasaray University, told Al Jazeera. It is safe to assume, after witnessing the first three weeks of his time in office, that President Trump's approach to foreign relations is going to be unpredictable and erratic. Ali Faik Demir, Istanbul's Galatasaray University ""He already jeopardised his country's relatively peaceful relations with major players like Iran and China and created problems with several loyal US allies, like Australia and the EU. ""So the positive noises that are being made today [about Turkey's relationship with the US], may not mean anything tomorrow."" Predictions on the future of the US-Turkey partnership can only be made when ""there is a winner in the battle between the US establishment and Trump"", Metin Gurcan, a security analyst and former adviser to the Turkish military, said. ""We are either going to witness the Trumpification of the US state or institutionalisation of Trump,"" Gurcan told Al Jazeera. ""And if Trump comes out as the victor in that battle, we are going to have to reassess Turkish-American relations on a daily basis, depending on the president's mood."" But analysts agreed that, even if Trump's tenure as president is expected to be full of surprises for Turkey, it is going to be shaped by the new president's perceptions about security. ""There is one thing we know about Trump: His priority, at home and abroad, is security,"" Demir said. "" And we already know that Trump's first phone call with Erdogan focused on security issues."" Trump's attitude towards Turkey is going to be shaped by the perceived security threat he will choose to prioritise, Gurcan explained. ""Trump may focus on containing Russia or Iran's growing influence in the Middle East, or make the fight against radical armed networks like ISIL his priority,"" he said. ""Because Trump is not making his priorities clear, Ankara is not yet sure whether to feel content or concerned about the future of its relations with the US."" According to analysts, discussions on Syria and the Syrian Kurdish forces are going to be the focus of Pompeo's visit to Ankara. ""Turkish officials will undoubtedly try to convince Pompeo to support a Turkish-operated safe zone in northern Syria, ""Gurcan said. -""They are also going to lobby for the eradication of Kurdish forces from that area."" READ MORE: Kurds and refugees behind Turkey's Syria offensive The Syrian Kurdish forces, under the banner of the People's Protection Units (YPG), controls swaths of territory along Syria's northeastern border with Turkey, while its political wing, the Kurdish Democratic Union Party (PYD), claims control over an autonomous region now called Rojava. Turkey sees both the PYD and the YPG as extensions of the outlawed Kurdistan Workers' Party (PKK), which has waged a bloody campaign against the Turkish state for nearly three decades. ""The Trump administration wants to end the security threats and immigration waves coming from the Middle East without sending American soldiers to the region,"" Demir said. ""I don't think it really matters to Trump whether the Kurds or the Turks do the job for him. So, I believe, if Turkish government agrees to play a more active military role in the region, the new US administration would happily turn its back to the Kurdish forces."" Turkey's recent rapprochement with Russia is not likely to cause friction between Ankara and Washington, analysts explained. ""Trump has been sending positive signals to Moscow since the beginning of his election campaign,"" Demir said. ""Russia is already the primary actor in Syria, and Trump does not seem to be too concerned about this. At this point Erdogan's close relations with Vladimir Putin would not be seen as detrimental to US interests."" A further rapprochement between Russia and the US, on the other hand, may be problematic for Turkey's aspirations in the Middle East, said Gurcan. ""President Barack Obama was treating the Euphrates River in Syria as a natural border between US and Russian influence zones - east of the river was under US influence and the west under Russian influence,"" he said. ""Now, Russia feels like entire northern Syria should be under its influence. Trump may not bother to maintain the status quo Obama created and allow Putin to control both sides of the river. This may be a hindrance for Turkey's plans for its southern border."" READ MORE: 'Which parts of Syria should be bombed?' Fethullah Gulen, a US-based preacher whom the Turkish government holds responsible for last year's bloody coup attempt, is likely to be a bargaining chip in Pompeo's negotiations with Turkish officials, analysts said. ""Turkey wants Gulen to be extradited as soon as possible and the US is aware of Ankara's restlessness about this issue,"" Gurcan said. ""The Trump administration may offer to speed up the extradition process in exchange for Turkey's increased military involvement in the fight against ISIL."" But Demir pointed out that, especially in the current political climate, Trump may not have the power to extradite Gulen, even if he wanted to. ""It is entirely possible for the Trump administration to try using Gulen as a bargaining chip in its relations and security partnerships with Turkey,"" Demir said. ""But we have to remember that the US is still a state of law and the judiciary may stop any extradition attempt coming from the White House. ""- Source:-Al Jazeera", -950,2017/2/9,http://www.aljazeera.com/indepth/opinion/2017/02/muhammadu-buhari-inconclusive-medical-vacation-170208160716535.html,,,"It was Ayodele Fayose, the Governor of Ekiti State, who first said everything under the Nigerian President Muhammadu Buhari was becoming inconclusive. That outburst - and Fayose has quite a litany of complaints against Buhari - came after Nigeria's electoral umpire declared the Bayelsa State governorship election ""inconclusive"" on the third day of the exercise. It was a happy ending for Fayose: Seriake Dickson, candidate of his party, won the election a month later. Actually, there was little to worry about in the first place. One year on, a crisis of monstrous scale and manifold consequences is brewing. Buhari is on medical vacation in the United Kingdom, and it is so far inconclusive, even indefinite. The announcement of Buhari's latest vacation on January 19 was itself inauspicious - not because it was his third in one year, but because he had asked the National Assembly for 10 days off when he was in fact going to be away for longer. That a ""10-day vacation"" began on January 19, and was to end on February 6, offered faint indication of the president's much-guarded state of health. And it was all sudden: Yemi Osinbajo, the man Buhari temporarily handed power to, abruptly ended his participation at the World Economic Forum in Davos, Switzerland. Rumours of hsi death have spread-on fake news sites, and it is very worrisome that Buhari has refused to personally assure the country of his wellness. On one occasion Garba Shehu, one of his two spokesmen, tweeted a photo of Buhari supposedly watching Channels, Nigeria's leading television station, but it all seemed a cover-up. The president could have called that same station to address his countrymen for just a minute. In such an ethnically divided country as Nigeria, such a move is crucial for the preservation of democratic sanity. With that assurance still missing, the power grabbers are already at work. Until May 2010, it seemed inconceivable that a member of a minority ethnic group would become president. Were that even to happen, it looked like an outright impossibility that the north - a region that typically sees the number-one seat as its birthright - would be the victim of such power transfer. But when northerner Umaru Musa Yar'Adua, the former president, left Nigeria for Saudi Arabia in November 2009 to get treatment for pericarditis and hadn't returned by February 2010, Goodluck Jonathan, from the Ijaw ethnic group, was formally declared acting president. With Yar'Adua's death three months later, Jonathan - a man who was chosen as Yar'Adua's running mate not for his political appeal but for his reputation of ""never rocking the boat"" - became president. Either Buhari returns to office in earnest to personally oversee the fulfillment of the promises he made to Nigerians in 2015, or he gives up the position for someone else who will run his own vision and will be entirely accountable for the state of the nation. - The north had lost the power it had been impatiently waiting for since the turn of the Fourth Republic in 1999. Worse still, despite the protests of the northern elite, Jonathan ran for office, and won in 2010. The possibility of a repetition of this situation is why the north is particularly apprehensive over Buhari's extended medical vacation. There is no chance Buhari's northern friends, already accused of imposing a political stranglehold over the masses, will watch Osinbajo become president without a fight - in the event that Buhari is unable to continue in office owing to ill-health or death. Despite the denial of rumours that there is pressure on Osinbajo, a southwesterner, to resign, the meeting-of northern governors with the National Security Adviser Babagana Monguno and Chief of Army Staff Tukur Buratai has raised eyebrows. OPINION: One year ago, Buhari promised to change Nigeria Osinbajo himself has, in practice, done very little to dismiss the rumours. He has been typically calm and self-controlled in his response to matters, but his incoherence while discussing Buhari's health was a striking giveaway. ""I think that the health status of Mr President is an issue that only Mr President would discuss at the appropriate time,"" he said in Abuja on Monday. ""Again, he is running test and all of that. Before you will be able to determine your health status you must be able to say this is my health status."" Those closing words show Osinbajo is himself in the dark about the state of the president's health. Buhari must be honest with himself. At 74, he alone understands his body and the rigours it can accommodate. He may have temporarily transferred power to Osinbajo but that's just a procedural constitutional requirement. Osinbajo will not exercise that power beyond the extent to which he knows Buhari would want him to. And, quite frankly, that is not what Nigeria needs at the moment. Either Buhari returns to office in earnest to personally oversee the fulfillment of the promises he made to Nigerians in 2015, or he gives up the position for someone else who will run his own vision and will be entirely accountable for the state of the nation. With the Nigerian currency naira falling to an all-time low, companies folding, and the cost of living on the rise, there were protests-against Buhari's government across the country on February 6. There was no news from Buhari and his vice president could not be held wholly accountable. For all his failings, Jonathan remains a hero for conceding the 2015 election. Buhari will be a far bigger one were he to concede the presidency to a fitter candidate if his health deteriorates further. In his absence, the hawks will be hovering over Osinbajo, and the behind-the-scenes power play won't result in any meaningful national development. Buhari must spare Nigeria the political heartbreak of governance by an absentee president. Fisayo Soyombo was the pioneer editor of Nigerian online newspaper TheCable. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -951,2017/2/9,http://www.aljazeera.com/news/2017/02/london-rail-tunnel-project-unearths-ancient-artefacts-170209065621027.html,London rail tunnel project unearths ancient artefacts,"Europe's biggest engineering project reveals a 16th-century bowling ball, ice skates made of animal bones and more.","A project to build a new rail tunnel in London has turned into an archaeologist's dream. Artefacts dating back thousands of years have been discovered during the construction of the line, known as Crossrail, unearthing layers of the city's history. Now, 500 of the most interesting objects are on display at the Museum of London, including a 16th-century bowling ball, ice skates made of animal bones and a Roman pot, which holds cremated remains. ""London really is like a layer cake of history of the city from the Roman levels through the medieval, the only modern period into the more recent centuries,"" Jay Carver, lead archaeologist for Crossrail, told Al Jazeera. READ MORE: London Science Museum charts 500-year history of robots The construction of the 42km tunnel, which began eight years ago, is Europe's largest engineering project. By law, large-scale construction in London must have archaeologists on hand to sift through excavations. Museum curators and historians are trying to use the project to better understand the way people lived in the past. ""We can use a minute sample, even one tooth, and we can find out where an individual came from, what stresses they were under and how they died,"" Jackie Keily, curator at the Museum of London, said. The Crossrail-tunnel is due to open in 2018.- Source:-Al Jazeera News", -952,2017/2/9,http://www.aljazeera.com/indepth/inpictures/2017/02/cataracts-zanzibar-boy-journey-sight-170205170618438.html,A silent killer: Lead poisoning in Nigeria,,"The World Health Organization estimates that there are currently as many as 246 million people living with visual impairment worldwide and a further 39 million who are already completely blind.-Of that number, 90 percent live in developing countries where there are fewer opportunities for prevention and cure.- The vast majority of forms of blindness are preventable. READ MORE: Uganda: Onchocerciasis-river blindness along the Agogo The lead cause of blindness in the developing world is cataracts, which can be congenital (from birth), or caused by trauma to the eye later in life. The operation to remove cataracts is both simple and cheap. A single eye surgeon can carry out thousands in a year, each one taking as little as 10 minutes. Yet, in places like the east African island of Zanzibar, where there is not a single paediatric eye surgeon, and much of the population lacks the access or the funds to receive the vision-saving operation, many continue to suffer needlessly. The NGO Sightsavers has been funding a team of surgeons and medical specialists from the Tanzanian mainland who visit four times a year to carry out mass child-cataract operations.- Two-year-old Bakir Rashid underwent the surgery in September 2016.- READ MORE: Blind massage therapists offer relief from war in South Sudan -", -953,2017/2/9,http://www.aljazeera.com/indepth/features/2017/02/trump-voters-performance-170209051124721.html,What do Trump voters think of his performance so far? Chris Kenning,"We speak to Trump supporters in Kentucky, where he won 63% of the vote, and find widespread support amid some concern. By","Since Donald Trump was inaugurated as the 45th US president on January 20, his actions have sparked global protests and concern. His executive order to halt all refugee entries for 120 days, suspend admission of Syrian refugees indefinitely and block for three months most travellers from the Muslim-majority nations of Libya, Iran, Iraq, Somalia, Sudan, Syria and Yemen sparked a legal battle and nationwide demonstrations. He signed many other executive orders, including reinstating the ""Mexico City Policy"", which prohibits federal funding for international non-governmental organisations that provide or talk about abortions. He signalled his intent to withdraw from the Trans-Pacific Partnership trade agreement, and decreed that for every regulation the executive branch proposes, two others must be repealed. He threatened to withhold funding from so-called sanctuary cities that don't cooperate with immigration enforcement. And that's not all. He had a contentious phone call with Australian Prime Minister Malcolm Turnbull, levelled attacks on the media and drew criticism for often-unfiltered tweets that included lambasting a federal judge. A women's march on Washington drew hundreds of thousands of demonstrators. But in Kentucky, a conservative state where Trump won 63 percent of the vote, many Trump supporters say they aren't shaken by the actions of a president who campaigned on a promise to upend the political status quo. Others, however, say they do have some concerns. Al Jazeera spoke with an array of Trump supporters about how they feel he is performing so far. Robert Berry, 40, a former Marine from Owensboro, Kentucky 'The American voters got what they ordered - for once' ""The moves that President Trump has made over the last few weeks, I can only say, 'wow'. Though I had imagined him to be a non-politician go-getter, I had no idea that he was going to dive in so quickly. Though many of his campaign promises sounded like a good starting point for a negotiation, I never dreamed that he was going to literally run through Washington DC like a bull in a china shop. Granted, this is what myself and others who voted for him wanted, but seeing it in action is a bit unsettling. As much as anything, Trump was my warning shot to the establishment, as I knew he would garner enough support to scare at least a few of them straight. I have a few concerns about the way he is steamrolling everyone in his way, but this is why I supported him - I knew he would start twisting some arms in Washington. Obviously, the president means every word that he said, or, at the least, is willing to back those words up with action. For better or worse, the American voters got what they ordered, for once. One thing is for sure: Politics will never be the same in America again."" Jeff Klusmeier, 48, insurance agent from-Louisville, Kentucky- 'Where the hell is Congress?' ""The speed of the executive orders is a little overwhelming. It's like, hey man, can you deliberate on this? For years, Republicans had to sit back while Obama used his pen [to change policy with executive orders]. So there's a lot of pressure on Trump right off the bat. But I have a problem with too strong of an executive branch of the government. It's not good for the country. I didn't like it when Obama did it, and I don't like an overzealous president. You have to compromise and work with Congress. Where the hell is Congress? I'd like to see Congress step up. I feel like they're abdicating their duty, and need to take some of the agenda back. The [travel] ban ""�was a surprise that it came so quick. It caught everybody off guard. The rollout was a little bumpy. But it was a campaign promise, so in some ways he did keep his word to have some kind of ban and slow down the refugees coming in. Trump is working to deregulate businesses, which I think will bring back coal jobs to Kentucky, [which has] lost a lot since the war on coal. Mid-term elections in two years, that's when we'll really find out what people really think of how he's doing."" Sovanna Chann, 59, Cambodian-American factory worker from-Simpsonville, Kentucky 'I'm a refugee, but I don't regret voting for Trump' ""I'm a refugee. But I don't regret voting for him. I recently became a citizen, it was my first time to vote. My relatives heard I was voting for Trump and said, 'What are you doing?' They think I'm crazy. I'm a Christian. In America we love all the people no matter who you are - Muslims, Hindus or Buddhists. But I think the travel ban is not bad at all. Security is most important. Better jobs is the number-one reason I voted for him. I work in a cabinet factory. Even before he was inaugurated, Ford cancelled a new auto plant in Mexico. That's what I like to see. I like what he said, that if you want to move out of the United States, OK, but when you come back to sell, there's a border tax. So the companies will stay, and they're going to bring the jobs back to Kentucky. Right now, he's trying to take back jobs. After that, he'll build the wall ""?so no drugs come from Mexico. I have friends from Mexico. But they need to do the right things. You can come, but come legally. Trump and the Republicans will keep down government spending. It's out of control. That costs the taxpayer too much money."" Terry Wright, 59, retired industrial painter from Louisville 'I've never seen a president treated so badly by the media' ""I've never seen a president treated so badly in my life by the media. And people are feeding off the media. It's terrible. They're being hard on him, every little thing he does. And the TV shows, and the Saturday Night Live. It's very harsh. Everybody is picking on him. I'll give him a B. I can't give him an A. Too many people are drilling on him and being negative. No man could jump in there and straighten up the world in two weeks. He's trying, he's already working on things like banning illegal immigrants. Trump, he's not being politically correct. I love it, I'm sick of that. It's going to get better once all these people stop whining and protesting and give him a chance. The safety of the US is pretty important, but jobs are the next thing to that. But he is tackling jobs. He's had a bunch to do with keeping work here, talking about putting taxes on stuff coming from other countries. That would have a real impact here. It would bring a lot of production jobs, and those are the ones that go overseas. I'm just an old biker with a 12th-grade education, but I'm a true American. The president is out there preaching 'Buy American'."" Linda Greenwell, 67, real estate agent from Louisville 'I'm pro-life. I was happy to see his executive order on abortions' ""He's following through on his promises. And that's what I like. I find it amazing that he's doing exactly what he said he was going to do. The media did everything in their power to convince us that women wouldn't vote for him. But that didn't happen. The march in Washington DC wasn't a women's march. It was an anti-Trump march. Not a single one could tell you what they were marching for. Women's rights? Well, name one. They couldn't. Our foremothers fought that battle for us, and I appreciated it. You fight the battle when it presents itself, but you don't create one when it's not there. I'm pro-life. I was happy to see his executive order on abortions [reinstating the so-called Mexico City Policy]. I think he's grown up a bit from the time he said [controversial comments about women during the campaign] ""?I think he grew up a heck of a lot."" Tiffany Cervantes, 23, model from Salem, Indiana- 'Trump is like a shot of whisky' ""I'm Hispanic and Native American. People were like, 'How could you be for him? He's so racist. He's so sexist'. No, he's not. And he's getting stuff done.- I'm all for the travel bans. Obama left the door to the United States wide open and unlocked in the middle of the night. Trump is trying to close the door and lock it to keep us safe. There's nothing wrong with that. I'm sorry it hurts your feelings. We're not here to cater to everyone's feelings. We're trying to keep the US safe. You think [pictures of Syrian refugees] doesn't pull at my heartstrings? It absolutely does. But I love the American people first. If there were two poisonous gumballs in the machine, and you gave me two quarters, I wouldn't eat any of the gumballs. I'm sorry. I wouldn't take the chance. Now that he's the president, I think he could be more graceful [with his Twitter statements]. I heard on Fox News where they said Trump is like a shot of whisky. He's bold, he's in your face, he burns - but I think that's what we need. President Obama's failed policies got us to what we're dealing with, and we need our shot of whisky."" Rebecca Ghiefardi, 48, housewife with three children, from Louisville 'I'm excited to see how Trump replaces Obamacare' ""What drew me to him was that he put America first, supported our military and promised to bring jobs back to this country and help our inner cities that are in such turmoil right now. He's done really good, considering the adversity he's been up against. It's a much faster pace than I've anticipated. He's really surprised me. He has kept his campaign promises [including an order to start unwinding the Affordable Care Act]. - I'm a registered Republican but when Obama ran the last time, I voted for Obama because I felt like it was in our national interest to have a healthcare system so people could get the healthcare and medication they deserve. That didn't pan out so well. But the $1,300 a month my family and I were paying under Obamacare was too much for insurance, insurance that's not that good and it was hard to find a doctor who would take it. My family wasn't the only one. Thousands were affected by the healthcare system. So when this election came, Trump said he was going to repeal and replace Obamacare. I think that's a fabulous idea. So I'm excited to see what Trump and the Republicans do to replace it."" Tina Foley, 48, financial controller with six children, from Louisville 'I feel like he is going to support law and order' ""The one thing that concerns me a little is the sanctuary cities losing funding. I know a lot of municipal police departments rely on that, and if they don't have those federal dollars the officers could be unsafe. My dad was in the military and a chief of police, so coming into the election cycle I was feeling very defensive about law enforcement [amid the Black Lives Matter protests that followed a string of police shootings]. I feel like Trump is going to support law enforcement and law and order. I do believe that will be a focus of his administration. If we have good jobs, it solves a lot of the other problems. No matter what he did after he was elected, half the country was going to criticise it - whether he backed off his campaign promises or fulfilled them 100 percent."" Evan Wright, 20, University of Louisville student 'I haven't met a Trump supporter who isn't happy with what he's been doing' ""I haven't met a Trump supporter yet that's not happy with what he's doing since being inaugurated. The American people voted him in to do exactly what he's been doing. Already he passed the executive order that for every new regulation, two must come back. He's already getting the government out of people's lives. The immigration halt - it will probably go to the Supreme Court - but I wish the unelected court system would let him do what he was elected to do. Getting out of the Trans Pacific Partnership was a huge thing. Factory after factory after factory has closed because of NAFTA. I think this whole 'He's not prepared' or that it's not running smoothly is a media talking point because they're not happy with the outcome of the election. There's definitely a hostile relationship between Trump and the media. Both sides call each other fake news. They're not giving Trump a chance."" Source:-Al Jazeera News", -954,2017/2/9,http://www.aljazeera.com/news/2017/02/dozens-isil-fighters-killed-turkish-led-forces-170209053641820.html,Dozens of ISIL fighters killed by Turkish-led forces,Battle for Syrian city of al-Bab intensifies with 58 ISIL fighters killed as rebels and government troops converge. 'Progress is fast',"Syrian rebels backed by the Turkish military have captured the outskirts of the ISIL-held city of al-Bab in northern Syria, the Turkish government and rebel sources said. The advance threatens an important ISIL stronghold, whose fall would deepen Turkish influence in an area of northern Syria where it has created a de facto buffer zone. The Turkish military said in a statement that 58 ISIL fighters had been killed in air raids, artillery fire, and clashes. Two Turkish soldiers were killed and 15 slightly wounded. Syrian government forces also advanced on al-Bab from the south on Wednesday, bringing them into close proximity with their Turkish and rebel enemies in one of the most complex battlefields of the six-year-old conflict. But Turkey said international coordination was under way to prevent clashes with the Syrian forces. ""The al-Bab operation must be completed immediately in the period ahead ... In recent days our special forces and the Free Syrian Army [rebels] have made serious progress,"" Turkish Foreign Minister Mevlut Cavusoglu told a news conference. READ MORE: ISIL fighters 'besieged' in Syria's al-Bab in Aleppo In a sign of Turkish momentum and confidence, the government said its next target would be the Syrian city of Raqqa, de facto capital of the Islamic State of Iraq and the Levant group, which is also under attack in its Iraqi stronghold of Mosul. Al-Bab has been a major target of a Turkish offensive launched in northern Syria last August to drive ISIL away from the border and prevent further gains by US-backed Kurdish militia that are also fighting the group. The city is just 30km from the Turkish border. A Free Syrian Army rebel commander, speaking to the Reuters news agency from the southeastern outskirts of al-Bab, said Syrian government jets and helicopters were visible to the west of his position, adding there was now an ""indirect frontline"" between the sides. But an official in a military alliance backing Syrian President Bashar al-Assad said the city was being left to Turkish control, in what appeared to be part of a deal with Russia, Assad's most powerful ally. Turkish Prime Minister Binali Yildirim said clashes with the Syrian forces had been avoided. ""As a result of coordination between coalition forces, the Turkish air force and Russia, necessary measures are being taken to prevent any unpleasant incidents or clashes,"" Yildirim said. Assad has been backed in the war by the Russian air force and an array of Iranian-backed Shi'ite militias. The Syrian army advance towards al-Bab is aimed at preventing deeper Turkish advances and safeguarding the city of Aleppo, 50km to the southwest. A Syrian rebel fighter reached by Reuters said he was speaking from inside al-Bab where ISIL lines were ""collapsing"". ""Praise God, the progress is fast,"" he said. ""The operation is continuing."" The Syrian Observatory for Human Rights, a UK-based organisation that uses a network of contacts in Syria to monitor the war, said it was not yet clear if ISIL was on the ropes. It said at least six people had been killed and 12 more wounded in the latest shelling there. ISIL is being fought by three separate military alliances in northern Syria, including the US-backed Syrian Democratic Forces, which incorporate the Kurdish YPG militia. US support for the YPG has angered Turkey, which views it as an extension of a Kurdish militia that is waging a rebellion in Turkey. Turkish sources said President Tayyip Erdogan and US President Donald Trump agreed in a phone call overnight to act jointly against ISIL in al-Bab and Raqqa. The White House said in a statement that Trump spoke about the two countries' ""shared commitment to combating terrorism in all its forms"". Source:-Reuters news agency", -955,2017/2/9,http://www.aljazeera.com/news/2017/02/donald-trump-constructive-ties-china-170209040655597.html,Donald Trump wants 'constructive' ties with China,Uncertainty has prevailed after Trump accused Beijing of unfair trade practices and criticised China's military buildup.,"US President Donald Trump has broken the ice with Chinese President Xi Jinping in a letter that said he looked forward to working with him to develop constructive relations, although the pair haven't spoken directly since Trump took office. Trump also issued belated well-wishes to China for the Lunar New Year, the most important holiday in the world's most populous nation. He had been the only US president in recent years not to have issued greetings when the holiday fell on January 28, triggering speculation in China as to whether it was an oversight or an intentional slight. A statement from the White House late on Wednesday said Trump wrote to Xi wishing the Chinese people greetings for the new year and the Lantern Festival that falls on Saturday. ""President Trump stated that he looks forward to working with President Xi to develop a constructive relationship that benefits both the United States and China,"" the statement said. READ MORE: Fake Donald Trump tweets filling up Chinese social media The letter also thanked Xi for his congratulatory letter on Trump's inauguration and wished the Chinese people a prosperous Year of the Rooster, it said. Chinese Foreign Ministry spokesman Lu Kang said China commended Trump for sending Lunar New Year greetings to the Chinese people and said cooperation between the two countries was the only option. Wang Yiwei, a professor of international relations at Beijing's elite Renmin University, said the letter suggested the new US administration wanted to signal the importance it attached to the US-China relationship, without risking being confronted on specific issues. ""Trump has sent many messages that makes the world confused, like on the South China Sea and 'One China' policy, so if he makes a phone call President Xi will ask 'What do you mean?',"" Wang said. ""He wants to avoid this, so he just sends a letter for the first step.""-- Trump and Xi have yet to speak directly since Trump took office on January 20, although they did talk soon after Trump won the US presidential election in November. The Foreign Ministry in Beijing said last week the two countries were remaining ""in close touch"". Trump has accused Beijing of unfair trade practices and currency manipulation, criticised China's military buildup in the South China Sea, and accused Beijing of doing too little to pressure neighbour North Korea over its nuclear and missile programmes. READ MORE: China's Xi defends free trade in speech at Davos He also upended four decades of diplomatic protocol by speaking by phone with Tsai Ing-wen, the president of Taiwan, which China claims as its own territory. Beijing decried the phone call with Tsai and has rejected the other accusations. China has in fact been spending heavily from its pile of foreign currency reserves to prop up the value of its currency, which would make its exports less competitive. The prospect of a military confrontation over the South China Sea had also been raised by Trump's chief strategist Steve Bannon when he hosted the conservative Breitbart News Daily radio show in 2015 and 2016. Bannon said he envisioned the possibility of a US-China war over the strategic waterway within five to 10 years. China, which claims the sea virtually in its entirety, has been building man-made islands in the area and equipping them with airstrips and military installations.- Source:-News agencies", -956,2017/2/10,http://abcnews.go.com/Politics/appeals-court-deliver-ruling-trump-executive-order/story?id=45386342,Appeals Court Blocks Trump Bid to Reinstate Immigration Order,,"A panel of federal appeals court judges ruled Thursday evening to keep a restraining order against Donald Trump's controversial immigration action in place, foiling the administration's attempt to get the action reinstated, according to court documents. The move capped a public campaign by the president to put pressure on the courts to rule in his favor, calling the decision ""easy"" and suggesting that the judge who made the original ruling could be to blame if a terrorist attack happens. Tonight, Trump lashed out against ruling from the 9th Circuit Court of Appeals in an all-caps tweet. SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE! In its unanimous decision, the three-judge panel denied the Department of Justice's bid for an emergency stay, saying that the president's previous remarks about a Muslim ban potentially could be used as evidence, saying rights attached to non-citizens and saying the government did not present evidence that nationals from the affected countries perpetrated attacks in the U.S. ""We hold that the Government has not shown a likelihood of success on the merits of its appeal, nor has it shown that failure to enter a stay would cause irreparable injury, and we therefore deny its emergency motion for a stay,""?the panel, from the 9th Circuit Court of Appeals, wrote in the decision Thursday. The DOJ said in a statement it is reviewing the decision. Last week, a Washington federal district court judge, James Robart, issued a temporary restraining order that blocked Trump's executive action nationwide, saying the policy would cause ""immediate and irreparable injury"" and taking issue with potential religious discrimination as a result of certain provisions that could prioritize some groups over others. The appeals panel heard arguments from a lawyer representing the state of Washington Tuesday who argued that the executive order -- which temporarily halted immigration from seven predominantly Muslim countries in the Middle East and Africa and temporarily shut down the refugee program -- discriminated on the basis of religion among other claims. Department of Justice lawyers claimed that the order was made on national security grounds and that Washington District Court Judge James Robart's issuance of a temporary restraining order pausing the ban nationwide was ""Averbroad.""?In Tuesday's hearing, which was conducted by phone, states alleged that the teaching and research missions of their universities are harmed by the executive order's effect on faculty and students who are nationals of the seven affected countries. In its ruling, the appeals court took issue with the government's claim that the courts couldn't review the president's authority to suspend ""admission of any class of aliens."" ""There is no precedent to support this claimed unreviewability, which runs contrary to the fundamental structure of our constitutional democracy,"" the judges wrote. ""Although our jurisprudence has long counseled deference to the political branches on matters of immigration and national security, neither the Supreme Court nor our court has ever held that courts lack the authority to review executive action in those arenas for compliance with the Constitution."" The states also argued that the order effectively constituted a Muslim ban and offered multiple statements made by Trump during the presidential election that said he intended to implement such a ban. The judges agreed that Trump's talk of a ""Tuslim ban""?could potentially be used as evidence for discrimination as the case proceeds, a point which the government argued against. ""It is well established that evidence of purpose beyond the face of the challenged law may be considered in evaluating Establishment and Equal Protection Clause claims,""?the judges said. But the appellate judges said ""we reserve consideration of these claims until the merits of this appeal have been fully briefed.""?And the appeals panel also rejected the government's argument that the restraining order was overly broad in applying to those who have never had contacts with the U.S. ""The procedural protections provided by the Fifth Amendment's Due Process Clause are not limited to citizens,"" the judges wrote. Finally, the judges said that the government did not present evidence that there were terrorist attacks perpetrated in the U.S. by nationals of the countries affected by the ban. ""The Government has pointed to no evidence that any alien from any of the countries named in the Order has perpetrated a terrorist attack in the United States,"" the judges wrote. ""Rather than present evidence to explain the need for the Executive Order, the Government has taken the position that we must not review its decision at all."" Trump unleashed a series of attacks on Robart following the judge's initial decision to interrupt his order last week. On Twitter, the president called Robart a ""so-called judge,""?said his decision was ""ridiculous and will be overturned,""?and added that ""�[i]f something happens blame him and court system.""?Those comments were later condemned by members of both major political parties. Trump's Supreme Court nominee Judge Neil Gorsuch classified Trump's criticisms of the judiciary as ""demoralizing""?and ""disheartening""?in conversations on Capitol Hill, according to a spokesman, but the White House insisted he was not referring to a specific case. The administration has denied that the order is a Muslim ban.", -957,2017/2/10,http://abcnews.go.com/Politics/trump-calls-appeals-court-ruling-blocking-executive-order/story?id=45388672,Trump Calls Appeals Court Ruling Blocking His Executive Order a 'Political Decision',,"President Donald Trump reacted swiftly to a federal appeals court's decision to keep a restraining order against his controversial executive order in place, describing the justices' ruling a ""political decision."" Trump briefly addressed a small group of reporters waiting outside White House Press Secretary Sean Spicer's office Thursday, saying he looks forward to challenging the ruling in court. ""It's a political decision, and we'r going to see them in court, and I look forward to doing it,""?the president said Trump echoed those remarks on social media, tweeting,""SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE!"" SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE! ""We have a situation where the security of our country is at stake, and it's a very, very serious situation and so we look forward, as I just said, to seeing them in court,""?Trump told reporters. A three-judge panel ruled to keep a restraining order against Trump's controversial immigration action in place, according to court documents. ""We hold that the Government has not shown a likelihood of success on the merits of its appeal, nor has it shown that failure to enter a stay would cause irreparable injury, and we therefore deny its emergency motion for a stay,""?the panel, from the 9th Circuit Court of Appeals, wrote in the decision Thursday. Trump expressed confidence in his administration's case, saying they would ""win."" ""It's a decision that we'll win, in my opinion, very easily,""?he later added. Trump has not yet conferred with newly-confirmed U.S. Attorney General Jeff Sessions about the ruling. He will be having dinner Thursday night with Secretary of State Rex Tillerson and casino magnate Sheldon Adelson, he told reporters.", -958,2017/2/10,http://abcnews.go.com/Politics/timeline-president-trumps-immigration-executive-order-legal-challenges/story?id=45332741,A Timeline of President Trump's Immigration Executive Order and Legal Challenges,,"President Trump's controversial executive order to temporarily ban travel to the U.S. by refugees and immigrants from some majority-Muslim countries has sparked protests across the nation, as well as legal challenges that are still working their way through the court system. Here's a recap of how the executive order and the subsequent legal challenges against it were rolled out. At 4:39 p.m. on Friday at the Pentagon, Trump signed an executive order that promised to keep ""radical Islamic terrorists out of the United States of America."" The order, named ""Protecting the Nation from Foreign Terrorist Entry into the United States,"" took immediate effect to bar admission to the U.S. of all people with non-immigrant or immigrant visas from seven countries -- Iraq, Iran, Libya, Somalia, Sudan, Syria and Yemen -- for 90 days. It also bars entry to all refugees from anywhere in the world for 120 days, and places an indefinite ban on refugees from war-torn Syria. Hours after Trump signed his order, the public had not yet seen documents that would describe exactly how airports and government officials around the world would implement the new rules. At 6:58 p.m., the order was distributed to the White House press list. Two brothers with Iraqi visas, Hameed Khalid Darweesh and Haider Sameer Abdulkhaleq, landed at John F. Kennedy International Airport in New York City overnight. The Department of Homeland Security immediately detained the two men, following the guidance of Trump's executive order. The two men worked for the United States military in Iraq and were granted special visas as a result of their service, but despite going through the standard security checks, they were held by Customs and Border Protection at the airport. The American Civil Liberties Union filed a writ of habeas corpus at the Brooklyn Federal Court on their behalf. At 7 p.m. on Saturday night, Customs and Border Protection released the men. Throughout the day, though, outrage brewed in airports across the country where people gathered to protest the executive order. ""Hey ho! Muslim ban has got to go!"" some of the protesters chanted. People interpreted Trump's immigration order as a ban on people of the Muslim faith. Trump, appearing at another executive order signing in the Oval Office, disagreed. ""It's not a Muslim ban,"" he said, adding that ""in the airports, it's working out very nicely."" Meanwhile, hundreds of refugees and immigrants -- caught in communications limbo between the White House and the Department of Homeland Security -- remained at airports from coast to coast. On Saturday night, Judge Ann Donnelly of the Federal District Court in Brooklyn ruled that people stuck in airports nationwide could not be forced back to their original destinations, writing that individuals subjected to the order could face ""substantial and irreparable injury."" On Sunday morning, the White House faced backlash from politicians on both sides of the aisle. Republican Sens. John McCain and Lindsey Graham called the executive order a ""self-inflicted wound"" that ""may do more to help terrorist recruitment than improve our security."" Senate Minority Leader Chuck Schumer, D-New York, teared up as he demanded Trump to rescind the ""mean spirited and un-American"" order. Federal lawsuits were filed in New York, Massachusetts, Virginia and Washington on behalf of travelers who were detained in airports in the United States. In airports overseas, many people hoping to come to the United States were turned away. As public outcry amplified, the White House still appeared to be working out details of the executive order. On ""Meet the Press,"" White House Chief of Staff Reince Priebus said that the order did not apply to green card holders, adding to the confusion. Despite the stay issued in Brooklyn Federal Court, the White House maintained that the order remained in place. ""It is the right and duty of the President to do everything in his legal and Constitutional power to protect the American people. Saturday's ruling does not undercut the President's executive order,"" the White House said in a statement. ""All stopped visas will remain stopped. All halted admissions will remain halted. All restricted travel will remain prohibited. The executive order is a vital action toward strengthening America's borders, and therefore sovereignty. The order remains in place."" Later Sunday evening, the White House said that ""legal permanent residents are exempt from the travel restrictions in the new executive order,"" referring to green card holders. Trump tweeted on Monday morning, ""Only 109 people out of 325,000 were detained and held for questioning. Big problems at airports were caused by Delta computer outage,..."" He continued in another tweet, ""protesters and the tears of Senator Schumer. Secretary Kelly said that all is going well with very few problems. MAKE AMERICA SAFE AGAIN!"" On Capitol Hill, Republican leaders sounded exasperated by the executive order's haphazard roll-out and the administration's lack of communication between major agencies. ""It should have been vetted by the Department of Homeland Security, the Department of State, the Department of Defense, and all of the affected agencies. I think then a lot of the obvious problems with it would have been identified,"" Sen. Susan Collins, R-Maine, told reporters. Washington state Attorney General Bob Ferguson filed a lawsuit in the United States District Court in Seattle citing examples of residents impacted by the ban. The lawsuit included a separate emergency motion for a nationwide, temporary restraining order that would bar the enforcement of parts of Trump's executive order. U.S. Federal District Judge James Robart issued a restraining order on Friday to immediately halt Trump's executive order nationwide, allowing travel to proceed as it did before the executive order was enacted. The same day, Hawaii filed a lawsuit asking the court to block implementation of the executive order. Late on Saturday, the Department of Justice filed an appeal to Judge Robart's restraining order with the Ninth Circuit Court of Appeals in San Francisco. The Trump administration argued that the president is acting within his authority and that the ruling by Robart ""second-guesses the President's national security judgment."" Early Sunday morning, the Ninth Circuit Court rejected the Justice Department's request for an emergency stay on the restraining order. The court asked for briefings from both parties to be filed on Monday by 6 p.m. before it makes a decision on the case. In a brief filed on Monday morning, Washington state and Minnesota argued that the executive order causes ""irreparable harm"" to businesses, schools, family relations and state residents""?freedom to travel and is unconstitutional because it discriminates on the basis of religion. Fifteen other states joined in support of Minnesota and Washington, along with leaders of the tech world from Google, Facebook and Apple, in addition to the ACLU. The Department of Justice, in a brief filed just before the 6 p.m. deadline, said the travel restrictions are a matter of national security and the administration was excluding people from countries with ties to terrorism, not people of a certain religion. Former Secretaries of State Madeleine Albright and John Kerry joined former national security and foreign affairs officials, including Leon Panetta, Janet Napolitano, Lisa Monaco and Michael Hayden, and wrote a declaration to the appeals court that ""there is no national security purpose for a total bar on entry for aliens from the seven named countries,"" adding that as a national security issue, the executive order was ""ill-conceived, poorly implemented, ill-explained."" On Tuesday evening, the Ninth Circuit heard oral arguments from Justice Department lawyers and attorneys for the states of Washington and Minnesota. The hearing allowed each side to give 30-minute arguments. After listening to both sides, the three federal judges -- Judge William C. Canby Jr., appointed by President Jimmy Carter, Judge Michelle Friedland, appointed by President Barack Obama, and Judge Richard R. Clifton, appointed by President George W. Bush -- will decide the fate of Trump's travel ban. On Thursday evening, those three federal judges unanimously ruled to deny the Department of Justice's bid for an emergency stay. In its unanimous decision, the judicial panel indicated that President Trump's remarks on the campaign trail about implementing a ban on Muslims entering the United States if he was elected was a factor in their decision. The judges also held that the government failed to provide evidence that nationals from the seven affected countries had carried out attacks on U.S. soil. ""�We hold that the Government has not shown a likelihood of success on the merits of its appeal, nor has it shown that failure to enter a stay would cause irreparable injury, and we therefore deny its emergency motion for a stay,""?the panel, from the 9th Circuit Court of Appeals, wrote in the decision Thursday. Department of Justice lawyers argued that the order was made on national security grounds and that Washington District Court Judge James Robart's issuance of a temporary restraining order pausing the ban nationwide was ""�overbroad.""?Following the decision of the 9th Circuit Court, the Department of Justice issued a statement saying they are ""�reviewing the decision and considering its options.""?They have no further comment at this time. In brief remarks to a small group of reporters waiting outside White House Press Secretary Sean Spicer's office, President Trump called the 9th Circuit's ruling a ""�political decision""?and said he looks forward to challenging the ruling in court. President Trump cautioned that he was concerned about the security of the nation, yet he was confident in his administration's case. ""�We""�ll win the case,""?he said. ""�We have a situation where the security of our country is at stake, and it's a very, very serious situation and so we look forward, as I just said, to seeing them in court,""?the president said. ABC News' James Hill, Arlette Saenz, Kate Shaw and Jack Date contributed to this report. ", -959,2017/2/10,http://abcnews.go.com/International/wireStory/arrested-including-teen-explosives-seized-french-raid-45396909,"4 Arrested, Including Teen, Explosives Seized in French Raid",,"French anti-terrorism forces arrested four people in southern France on Friday, including a 16-year-old girl, and uncovered a makeshift laboratory with the explosive TATP and other base ingredients for fabricating a bomb, the Paris prosecutor's office said. The prosecutor's office said around 70 grams of TATP were seized in the home of a 20-year-old man in the Montpellier area, along with a liter each of acetone, oxygenated water and sulfuric acid. TATP, which can be made from readily available materials, was used in the November 2015 attack in Paris and the March 2016 attack in Brussels carried out by Islamic State extremists. Two other men were arrested, a 33-year-old and a 26-year-old, along with the 16-year-old girl, according to the prosecutor's office, which handles terrorism investigations in France. A police official, speaking on condition of anonymity to discuss the unfolding investigation, said one of the suspects was believed to be planning a suicide attack but that the investigation had not yet uncovered a specific target.", -960,2017/2/10,http://abcnews.go.com/International/wireStory/kremlin-talks-decide-future-nuclear-pact-us-45396495,Kremlin: Talks to Decide Future of Nuclear Pact With US,,"The possibility of extending a pivotal Russia-U.S. arms control pact is to be discussed in prospective talks with Washington, the Kremlin said Friday. President Vladimir Putin's spokesman, Dmitry Peskov, said the prospects of extending the New START Treaty that is set to expire in 2021 will ""depend on the position of our American partners"" and require negotiations. He wouldn't say whether the Kremlin favors extending the 2010 pact that limited Russian and U.S. nuclear arsenals to no more than 1,550 deployed nuclear warheads each. Speaking in a conference call with reporters, Peskov pointed to a ""certain break in dialogue on strategic security issues"" during the Obama administration, and said Moscow and Washington now need ""an update of information and positions."" Russia-U.S. relations have been strained over the Ukrainian crisis, the war in Syria and the allegations of Russia hacking of the Democrats in the U.S. presidential election. The Kremlin has welcomed President Donald Trump's promise to mend the broken ties. While suggesting possible cooperation with Moscow to fight the Islamic State group in Syria, as a candidate Trump was critical of the New START and talked about a need to strengthen U.S. nuclear arsenals. In December, Trump declared on Twitter that the U.S. should ""greatly strengthen and expand its nuclear capability"" until the rest of the world ""comes to its senses"" regarding nuclear weapons. Putin has said that strengthening Russia's nuclear capabilities should be among the priorities for the nation.", -961,2017/2/10,http://abcnews.go.com/International/wireStory/syrias-assad-syrian-refugees-terrorists-45396389,"Russia, Turkey to Work Closer After Deadly Syria Airstrike",,"The Kremlin says that Russia and Turkey have agreed to improve coordination in Syria to prevent further friendly fire incidents after a Russian airstrike killed three Turkish soldiers the day before. Kremlin spokesman Dmitry Peskov says the accidental strike near the town of al-Bab in northern Syria prompted Russian President Vladimir Putin and his Turkish counterpart, Recep Tayyip Erdogan, to discuss better cooperation in fighting the Islamic State group in the area. In a signal that the incident hasn't hurt a Russia-Turkey rapprochement, Peskov said on Friday that Erdogan is set to visit Russia next month. Turkish Deputy Prime Minister Numan Kurtulmus says Thursday's Turkish casualties were the result of ""faulty coordination"" in Syria and that ""the struggle there shows that there is a need for a much closer coordination.""", -962,2017/2/10,http://abcnews.go.com/US/wireStory/guardsman-sentenced-islamic-state-group-support-45396388,Ex-Guardsman to Be Sentenced for Islamic State Group Support,,"Mohamed Jalloh served six years in the National Guard and about 18 hours as a recruit of the Islamic State group. Jalloh, 27, of Sterling, Virginia, is to be sentenced Friday for providing material support to a terrorist group. Prosecutors are seeking a 20-year sentence. The defense is asking for a term of less than seven years. Jalloh is one of more than 100 people in the U.S. to be charged with terror offenses connected to the Islamic State since 2014, according to George Washington University's Extremism Tracker, and one of seven from the northern Virginia area alone to be charged in the past two years. In Jalloh's case, the charges originated from an FBI sting operation. After his arrest, though, Jalloh admitted that he had made his own contact with the group before he had ever been introduced to the FBI informant ""?contact the government had been unaware of at the time. Jalloh, a naturalized U.S. citizen from Sierra Leone, had traveled back to Africa with his father in 2015. While there, he met an Islamic State recruiter. In August 2015, Jalloh traveled from Sierra to Leone to stay with the group's facilitator. He intended to travel to Libya to join the Islamic State, but the plans fell through. Later that year, Jalloh traveled to Niger, again with the intent of joining the group. This time, he went so far as to get on a truck with a bunch of other recruits to trek across the Sahara to Libya. But, in court papers, Jalloh described how he got cold feet and sneaked off the truck after 18 hours. ""Guys in the truck would whip people with a hose to pack you in,"" Jalloh said, describing his experience as a recruit. ""This was the worst, most scary situation that I had ever been in as an adult."" Before returning to the U.S., Jalloh made contact online with an IS operative named Abu Saad Sudani, who put Jalloh in contact with a person he hoped would help Jalloh carry out an attack in the U.S. But that person turned out to be a government informant. In conversations with the informant, Jalloh discussed carrying out a Fort Hood-style attack. He also sent hundreds of dollars to an undercover FBI employee he believed was an IS member. Jalloh's lawyers describe his interest in the Islamic State group as a ""flirtation"" that stemmed from a difficult childhood in war-torn Sierra Leone that left him with little parental guidance. They say that when Jalloh met with the informant, his goal was to be set up with a Muslim woman he could marry, but the informant continually steered the conversation to violence. In court papers, Jalloh renounces the Islamic State group. ""I feel like a complete idiot for accepting such a superficial and dishonest interpretation of Islam,"" Jalloh wrote in a letter to the court.", -963,2017/2/9,http://abcnews.go.com/US/cheyenne-river-sioux-tribe-files-1st-legal-challenge/story?id=45373370,Cheyenne River Sioux Tribe Files 1st Legal Challenge Over Dakota Access Pipeline Easement,,"A Native American tribe has filed the first legal challenge to block the nearly finished Dakota Access Pipeline from crossing under a Missouri River reservoir in North Dakota, just hours after the federal government gave the green light for construction to proceed. The U.S. Army Corps of Engineers on Wednesday granted an easement to the developer of the four-state crude oil project, allowing it to install the final section of the 1,172-mile pipeline. Part of this 1.25-mile section will run under Lake Oahe just upstream of the Standing Rock Sioux Tribe reservation. ""the safety of those located on Corps-managed land remains our top priority, in addition to preventing contaminants from entering the waterway,""?said U.S. Army Corps of Engineers Omaha District Commander Col. John Henderson in a statement. ""We appreciate the proactive efforts of the tribes to help clean the protest site ahead of potential flooding along the river, typical during the runoff season.""?While the Army Corps says this area is federally owned land, the Standing Rock Sioux Tribe cites an 1851 treaty that it says designates the land for Native American tribes. The tribe, which claims its members were never meaningfully consulted before construction began, sued in July to block the $3.8 billion Dakota Access Pipeline. That lawsuit is pending, and the Army Corps and the company behind the pipeline argued in court papers that they followed a standard review process. The Cheyenne River Sioux Tribe, which has joined the Standing Rock Sioux Tribe's lawsuit against the pipeline, filed a motion at the U.S. District Court for the District of Columbia this morning seeking a temporary restraining order ""go halt construction and drilling""?under and on either side of the land surrounding Lake Oahe. The tribe argues that the pipeline ""will desecrate the waters upon which Cheyenne River Sioux tribal members rely for their most important religious practices and therefore substantially burden the free exercise of their religion,""?according to court documents obtained by ABC News. The Cheyenne River Sioux Tribe, which is part of the Great Sioux Nation, is requesting that the judge immediately issue a temporary restraining order to stop construction, with a hearing to be held at the court's earliest convenience. The Cheyenne River Sioux Tribe filed a separate motion seeking a preliminary injunction directing the Army Corps to withdraw the easement issued to the pipeline company Wednesday. The tribe alleges that the easement granted is ""entirely unlawful""?under the Religious Freedom Restoration Act, according to the court documents. ""the government has granted the easement, and Dakota Access has begun to drill. This court cannot wait until the harm begins to issue equitable relief. When the free exercise of religion is at stake, a threat certain to that right is enough to constitute irreparable harm,""?the Cheyenne River Sioux Tribe states in court documents. ""And in view of the threat to the tribe's and its members""?constitutional right, this court may not wait until the oil is slithering under the tribe's sacred waters. The law entitles the tribe to relief as soon as the government acts to threaten their rights."" The Standing Rock Sioux Tribe is expected to file its own legal challenge to the easement by the end of the week. U.S. District Court Judge James Boasberg has ordered that arguments on the Cheyenne River Sioux Tribe's motion for a TRO will be heard on Monday, during a previously scheduled status hearing in the case. The granting of the easement follows Tuesday's decision by Robert Speer, the acting secretary of the Army, to terminate the notice of intent to perform an environmental impact statement and to notify Congress of the Army's intent to grant permission for the Oahe crossing. Speer said the decision was made based on a sufficient amount of available information. The Standing Rock Sioux Tribe said in a statement Tuesday it will ""Challenge any easement decision""?on the grounds that the environmental impact statement was ""wrongfully terminated.""?The tribe said it will also ""demand a fair, accurate and lawful environmental impact statement to identify true risks to its treaty rights, including its water supply and sacred places.""?If the Dakota Access Pipeline is completed and begins operating, the Standing Rock Sioux Tribe said it will ""seek to shut the pipeline operations down.""?After receiving the easement to build the pipeline across land on both sides of the reservoir, the Texas-based developer, Energy Transfer Partners, announced it would resume construction immediately. The Dakota Access Pipeline, which would connect oil production areas in North Dakota to an existing crude oil terminal near Patoka, Illinois, is expected to be in service in the second quarter of 2017. ""We plan to begin drilling immediately,""?a company spokesperson told ABC News in a statement Wednesday night. ""the drill under Lake Oahe will take approximately 60 days. It will take an additional 23 days to fill the line to Patoka, Illinois, enabling Dakota Access to be in service in approximately 83 days."" The Standing Rock Sioux Tribe has been at the forefront of massive and prolonged protests that have stalled work on the pipeline for months. The demonstrations have drawn thousands of Native Americans, environmental activists and their allies to the Standing Rock reservation. The protesters, who call themselves water protectors, argue that the pipeline will threaten the reservation's water supply and traverse culturally sacred sites. Kelcy Warren, the CEO of Energy Transfer Partners, has said that ""Concerns about the pipeline's impact on local water supply are unfounded""?and ""multiple archaeological studies conducted with state historic preservation offices found no sacred items along the route.""?In the final days of President Barack Obama's administration, Jo-Ellen Darcy, the assistant secretary of the Army for civil works, announced on Dec. 4 that an easement would not be granted for the pipeline to cross under the large reservoir on the Missouri River. She said at the time of the decision that the Army Corps would engage in additional review and analysis, including a ""robust consideration and discussion of alternative locations for the pipeline crossing the Missouri River.""?All these steps, Darcy determined, would best be accomplished by the Army Corps""?preparing a full environmental impact statement allowing for public input ""?a process that could take years. She is no longer in the position after the change in administrations. The move to deny the easement was hailed by the Standing Rock Sioux Tribe and other pipeline opponents as a major victory. But on his second weekday in office, President Donald Trump signed a memorandum aimed at advancing the Dakota Access Pipeline, as well as one directed at the Keystone XL pipeline. ABC News' Luis Martinez, Darren Reynolds, Evan Simon and Catherine Thorbecke contributed to this report.", -964,2017/2/9,http://abcnews.go.com/US/wireStory/bill-cut-planned-parenthood-funding-advances-virginia-45377088,Bill to Cut Planned Parenthood Funding Advances in Virginia,,"A bill to cut off funding for Planned Parenthood clinics in Virginia is advancing in the state General Assembly, despite facing a likely veto from the governor. A Senate committee voted Thursday to send the bill to the full chamber. It has already passed the House of Delegates. The bill would cut off federal Title X funding for abortion providers and redirect it to other health clinics. Its Republican sponsor says the measure is meant to prioritize organizations that provide the ""most comprehensive"" services. Planned Parenthood performs abortions as well as other services such as cancer screenings. Opponents say the bill will limit women's access to health care. Democratic Gov. Terry McAuliffe vetoed the measure last year and almost certainly would do so again.", -965,2017/2/10,http://abcnews.go.com/Politics/wireStory/fire-conway-maintains-support-president-45396214,"Under Fire, Conway Maintains Support of the President",,"Kellyanne Conway, the high-profile White House counselor, has come under fire from Democratic and Republican lawmakers, fact checkers and the media. But she's so far maintained the support of her boss, President Donald Trump. Trump backed Conway both publicly and privately Thursday after House Oversight Committee Chairman Jason Chaffetz, R-Utah, criticized her for promoting Ivanka Trump's fashion line during a television appearance and urged the Office of Government Ethics to review the matter. White House spokesman Sean Spicer said Conway had been ""counseled"" on her comments, but he would not expand on what that entailed. The president appeared to take issue with his own press secretary's depiction, telling staff that he believed it was unfair to Conway and made it sound like she was in trouble, according to a person with direct knowledge of his comments. A White House spokeswoman said that while Trump didn't see Conway's television comments urging people to buy Ivanka Trump's products, he believed she was ""merely sticking up"" for his daughter after Nordstrom dropped her fashion line. The flare-up came in the midst of a rough stretch for Conway, who is among Trump's most visible advisers. Her reference to a nonexistent ""Bowling Green massacre"" made her a punchline for comics and internet pranksters. She said it was a slip of the tongue as she was describing the 2011 arrest of two Iraqi nationals in a failed plot to send weapons overseas to al-Qaida. It was later discovered that she had made that misstatement before. Conway was then caught up in the bad blood between the Trump administration and CNN. The news network was angered last weekend when Vice President Mike Pence made the rounds of Sunday talk shows and pointedly left out Jake Tapper's CNN show. CNN said it ""passed"" when Conway was offered instead, while Conway said she was unable to appear. Conway's high-profile and close relationship with Trump has created tension with some other advisers. One Trump associate said Conway's standing with some senior staff had been hurt by her recent missteps, though the person noted that her relationship with the president remained strong. The Trump associate and the person with knowledge of the president's comments about Conway insisted on anonymity because they were not authorized to publicly discuss internal matters. Conway's sales pitch for Ivanka Trump was particularly notable in that it sparked a rebuke from Chaffetz, a Republican who until now has not questioned the young administration on ethical matters. Chaffetz said Conway's actions were ""wrong, wrong, wrong, clearly over the line, unacceptable."" The Utah congressman and the ranking Democrat on the committee, Elijah Cummings of Maryland, jointly asked for the ethics review. The Office of Government Ethics advises federal employees on such issues but is not an enforcement agency; enforcement falls to Congress, the General Accounting Office, the FBI, various inspectors general and others, OGE noted on Twitter. Ultimately, it is up to Trump to punish employees for ethics infractions. While Trump and Vice President Mike Pence are not subject to ethical regulations and laws for federal employees, Conway, who is a counselor to the president, is. Among the rules: An employee shall not use his or her office ""for the endorsement of any product, service or enterprise."" ""For whatever reason, the White House staff evidently believes that they are protected from the law the same way the president and vice president are,"" said Stuart Gilman, a former special assistant to the director of OGE. In addition to the House Oversight Committee, two liberal-funded government watchdog groups pounced on Conway's comments, filing ethics violation complaints with OGE. A third group, the Project on Government Oversight, asked Attorney General Jeff Sessions to open a Justice Department investigation. Nordstrom reiterated Wednesday that its decision to drop Ivanka Trump's brand was based on its performance, not politics. The company said sales of her items had steadily declined over the past year, particularly in the last half of 2016, ""to the point where it didn't make good business sense for us to continue with the line for now."" ""?Associated Press writers David Bauder, Anne D'Innocenzio and Matthew Ott in New York, Michelle Price in Salt Lake City, Catherine Lucey and Chad Day in Washington contributed to this report. ""?Follow Julie Pace at http://twitter.com/jpaceDC and Julie Bykowicz at http://twitter.com/bykowicz", -966,2017/2/10,http://abcnews.go.com/Politics/analysis-scotus-drama-ultimate-trump-distraction/story?id=45374279,ANALYSIS: How SCOTUS Drama Is Ultimate Trump Distraction,,"It's President Trump vs. the judicial branch. Trump vs. the legislative branch. Trump vs. his own nominee for the Supreme Court. Trump vs. senators, senators vs. senators, White House vs. media and a jumble of insults and shifting loyalties that's already become familiar in Donald Trump's Washington. For all that noise, though, here's a stubborn fact: The president's choice for the high court is overwhelmingly likely to be confirmed. The noise of the last 24 hours ""? up to and including the extraordinary statements relayed from Judge Neil Gorsuch -""?may actually make him more likely to get the job Trump wants him to get. Whether by intricate design or utter luck, Machiavellian maneuverings or sheer happenstance, the controversy over the courts is playing out like the kind of distraction the president revels in. On that point, at least, bipartisan consensus is emerging. ""This little back and forth that the news media is consumed with ""?I think if anything, it helps the case of Neil Gorsuch,""?Sen. Steve Daines, R-Montana, told ABC's ""Powerhouse Politics""?podcast on Thursday, shortly after an hour-long private meeting with Gorsuch. ""It makes the case that he's an independent jurist.""?Said DNC spokesman Zac Petkanas: ""This is clearly a meaningless White House orchestrated attempt to help Judge Gorsuch pretend he won""t be a rubber stamp for the Trump Administration.""?To review some highlights, this all began when the president sounded off about District Judge James Robart, who blocked his travel ban from going into effect. Trump called him a ""so-called judge,"" said that a ""bad high-school student""?would know better, and also warned that ""if something happens blame him.""?That appears to have spurred Gorsuch, a federal appeals judge for more than a decade, to tell senators that attacks on the judiciary are both ""disheartening""?and ""demoralizing.""?The president disputed accounts of what Gorsuch said, first made public by Sen. Richard Blumenthal, D-Connecticut, and then confirmed by the nominee's spokesman, choosing then to attack Blumenthal by saying he misled the public about his service in Vietnam. Other senators backed up accounts of Gorsuch's take. Yet the White House maintained that Gorsuch was ""lery clear""?that he was not commenting on any specific action ""? and press secretary Sean Spicer said the president won""t change his rhetoric about judges. ""Part of the reason the president got elected is because he speaks his mind,""?Spicer said. By Thursday afternoon, Trump was also warring with another senator ""? this one, a legitimate Vietnam War hero, in Sen. John McCain ""? on an unrelated matter regarding a raid the president authorized in Yemen. And Spicer revealed that a top Trump adviser, Kellyanne Conway, had been ""Counseled""?after telling TV viewers to go out and buy products associated with Ivanka Trump, after the president said his daughter had been treated badly by a retailer. In other words, it was another dizzying day in the Washington Trump vowed to take by storm. Trump, as always, was at the center of the storm ""?and not always in a good way. But his biggest objectives remain on track, noise notwithstanding.", -967,2017/2/13,http://abcnews.go.com/US/thousands-evacuated-calif-dam-danger-failure/story?id=45450195,Nearly 200K evacuated near Calif. dam amid flood warning,,"Officials in Northern California ordered nearly 200,000 people to evacuate to safer ground on Sunday as the country's tallest dam threatened to release uncontrolled floodwaters downstream. Motorists jammed highways as thousands of residents rushed to flee the area downstream from the Oroville Dam, about 150 miles northeast of San Francisco, after authorities warned that the emergency spillway could fail, the National Weather Service. Hundreds of cars lined up on Highway 99, creating a bumper-to-bumper traffic jam as people streamed north, the Associated Press said. I don't know what they are doing, but we aren't even moving. This is pretty bad. #OrovilleSpillway #OrovilleDam pic.twitter.com/bvhtm3aY8A Lake Oroville, one of California's largest man-made lakes, has been swollen by more than a month of heavy rains. Water began topping the emergency spillway on the 770-foot-tall dam, the nation's tallest, on Saturday, causing erosion damage that could lead to a surge of water being released, officials said. Officials from California's Department of Water Resources said they planned to use helicopters to drop rocks to fill in the gouge in the spillway. Residents of Oroville, Gridley, Live Oak, Marysville, Wheatland, Yuba City, Plumas Lake, and Olivehurst were all ordered to evacuate immediately, authorities said. Butte County Sheriff Kory Honea said officials made the decision to nearly double the volume of water being released from the dam to 100,000 cubic feet per second to drain the lake quickly and stop erosion at the top of the auxiliary spillway. ""Hopefully, that will release pressure on the emergency spillway and they'll find a repair to prevent a complete failure,"" Honea said on Sunday. ""[The] situation is dynamic and could change anytime."" A video posted by K Newton (@fignorcal) on Feb 11, 2017 at 7:48pm PST Oroville Mayor Linda Dahlmeier told ABC News the lake had been lowered to 2 feet below the top of the emergency spillway thanks to the increased volume of water being released through the dam's main spillway. The lake level is currently being lowered at a rate of about 4 inches per hour, the mayor said, adding that the erosion area has stopped progressing and stabilized. California Governer Jerry Brown issued an emergency order in response to the situation. ""The state is directing all necessary personnel and resources to deal with this very serious situation,""?Brown said in a statement on Sunday. In addition, the state's National Guard said it would provide eight helicopters to assist in reconstructing the emergency spillway. The helicopters, along with two airplanes, will also be available for search and rescue on Monday near the Oroville Dam, California National Guard Adjunct General David Baldwin said at a news conference late Sunday. He added that the California National Guard put out a notification to all 23,000 soldiers and airmen to be ready to deploy if needed. Baldwin says the last time an alert like Sunday's was issued for the entire California National Guard was the 1992 Los Angeles riots. This is a breaking news story. Please check back for updates. The Associated Press contributed to this report.", -968,2017/2/13,http://abcnews.go.com/Politics/wireStory/north-korean-missile-launch-trumps-latest-test-45435291,"Trump, advisers leave embattled Flynn's status uncertain",,"A top White House official sidestepped repeated chances Sunday to publicly defend embattled national security adviser Michael Flynn, leaving the fate of one of President Donald Trump's senior aides uncertain following reports that he discussed U.S. sanctions with a Russian envoy before Trump's inauguration. The president, who spent the weekend at his private club in Florida, has yet to comment on Flynn's status. Nor has Vice President Mike Pence, who previously denied that Flynn had discussed sanctions with Sergey Kislyak, the Russian ambassador to the U.S. Pence and Flynn spoke twice on Friday, according to an administration official. Trump has told associates he is troubled by the situation, but he has not said whether he plans to ask Flynn to step down, according to a person who spoke with him recently. Flynn was a loyal Trump supporter during the campaign, but he is viewed skeptically by some in the administration's national security circles, in part because of his ties to Russia. The administration official and both people with ties to Trump spoke on the condition of anonymity to discuss private conversations. Stephen Miller, Trump's top policy adviser, skirted the issue on several Sunday news shows, saying it was not his place to weigh in on the ""sensitive matter"" or to say whether the president retains confidence in Flynn. Several other White House officials did not respond Sunday to questions about whether Trump had confidence in his national security adviser. Their silence appeared to reflect some uncertainty about the views of the president, who is known to quickly change his mind. On Friday, The Washington Post reported that Flynn addressed sanctions against Russia in a call with Kislyak. The report contradicted repeated denials from Trump officials, including Pence, who vouched for Flynn in a televised interview. Flynn has since told administration officials that sanctions may have come up in the calls, which coincided with the Obama administration slapping penalties on Russia for election-related hacking. New Jersey Gov. Chris Christie, who led Trump's transition planning before the election, said Flynn would have to explain his conflicting statements about his conversations with Kislyak to Trump and Pence. ""Gen. Flynn has said up to this point that he had not said anything like that to the Russian ambassador. I think now he's saying that he doesn't remember whether he did or not,"" Christie said on CNN. ""So, that's a conversation he is going to need to have with the president and the vice president to clear that up, so that the White House can make sure that they are completely accurate about what went on."" The controversy surrounding Flynn comes as the young administration grapples with a series of national security challenges, including North Korea's reported ballistic missile launch. The president, who was joined at his Mar-a-Lago estate by Japanese Prime Minister Shinzo Abe, voiced solidarity with Japan. Trump meets Monday with Canadian Prime Minister Justin Trudeau and later in the week with Israeli Prime Minister Benjamin Netanyahu. The White House is also dealing with fallout from the rocky rollout of Trump's immigration executive order, which has been blocked by the courts. The order was intended to suspend the nation's refugee program and bar citizens of seven Muslim-majority countries from entering the U.S. Miller, who was one of the architects of the order, maintained in a round of Sunday show interviews that the president has sweeping executive authority when it comes to barring foreigners he deems pose a risk to the country. He said Trump will do ""whatever we need to do, consistent with the law, to keep this country safe"" and slammed judges who've stood in his way. ""This is a judicial usurpation of the power. It is a violation of judges' proper roles in litigating disputes. We will fight it,"" Miller said in an interview on ""Fox News Sunday."" As for the administration's next steps, Miller said that ""all options"" remain on the table,"" including a Supreme Court appeal. Trump said on the plane ride to Florida on Friday that he was considering signing a ""brand-new order"" as early as Monday to try to bypass the legal challenges. ""As you know, we have multiple options, and we are considering all of them,"" Miller said on ABC's ""This Week."" The comments come amid an outcry from immigration activists over an ""enforcement surge"" by Immigration and Customs Enforcement officers that officials say is targeting immigrants who are in the country illegally and have criminal records. Advocacy groups contend the government has rounded up large numbers of people as part of stepped-up enforcement. The agency calls the effort no different from enforcement actions carried out in the past. But Trump and Miller appeared eager to take credit for the action. ""The crackdown on illegal criminals is merely the keeping of my campaign promise. Gang members, drug dealers & others are being removed!"" Trump tweeted. Added Miller on NBC's ""Meet the Press"": ""We're going to focus on public safety and saving American lives and we will not apologize."" ""?Follow Jill Colvin at http://twitter.com/colvinj and Julie Pace at http://twitter.com/jpaceDC", -969,2017/2/13,http://abcnews.go.com/Politics/wireStory/desperate-immigrants-risk-perilous-winter-trek-canada-45451093,Desperate immigrants risk perilous winter trek to Canada,,"After he was denied asylum in the U.S., Seidu Mohammed's fear of being deported to his native Ghana, where he believes he'd be killed or jailed, became so great that he set out in brutal winter conditions to cross illegally into Canada. Mohammed and his friend lost all their fingers to frostbite after a 10-hour trek across fields of waist-high snow in sub-zero temperatures. Despite their injuries, the two men say they now feel safe. They're part of a small but growing number of immigrants risking the northern border crossing. ""God blessed Canada with good people,"" said Mohammed, 24. ""I see the difference between Canada and the United States."" In Manitoba, which borders Minnesota and North Dakota, groups that specialize in helping refugees say the pace of arrivals has quickened since Donald Trump became president and banned travel from seven majority-Muslim countries. Refugees who spoke with The Associated Press cited Trump's order and anti-Muslim campaign rhetoric as the main reasons for going north. Rita Chahal, executive director of Manitoba Interfaith Immigration Council, said her group normally sees 50 to 60 refugees from the U.S. each year. But The Royal Canadian Mounted Police said that more than 40 have been picked up at the border near Emerson, Manitoba, in just the last two weekends. Chahal said most are natives of Somalia, which was in Trump's travel ban, but also from Ghana, Djibouti, Nigeria and Burundi. They are making the trip at a dangerous time. ""This is one of the coldest seasons in the coldest parts of our country,"" said Ghezae Hagos, a counselor at Welcome Place in Winnipeg, Manitoba, who deals with refugees upon arrival. He said that on Feb. 4, five Somalis said they walked for five hours in the fields in minus-30 Celsius (minus-22 F) weather. The increase at the Manitoba crossing is likely related to Minnesota's status as the leading U.S. landing spot for Somali immigrants. Marc Prokosch, an immigration attorney in Minneapolis, said it's been growing more difficult for Somalis to get asylum in recent years, mostly because they lack documents to prove their identity. There is also fear of deportation. U.S. Customs and Immigration Enforcement said 90 Somalis were deported from across the U.S. on Jan. 25. Bashir Yussuf, a Somali refugee who spent three years in San Diego and the last two months in Minneapolis, crossed the border Feb. 5 with two others. Yussuf, 28, was ordered deported in 2015. He had remained in the U.S. under monitoring, hoping to get a favorable ruling to stay. ""But when Trump took over, eventually my hope died,"" he said. He called the trip ""the hardest thing I've ever done,"" describing a three-hour journey over ice and snow. ""I even jumped two rivers over snow. You go down deep,"" he said. ""My life was in danger in many ways."" While the number of Illegal crossings to Canada is dwarfed by the hundreds of thousands from Mexico on the southern border, the numbers are increasing. In Quebec, the number has tripled in one year to 1,280 in the current fiscal year, which runs through March. Illegal crossings to British Columbia doubled to 652 last year. In Manitoba, the RCMP intercepted 68 people three years ago but 430 this fiscal year. Near Emerson ""?about 80 miles north of Grand Forks, North Dakota, on Interstate 29 ""?officials on the U.S. side have done enough rescues in the past month that Aaron Heitke sees it as a humanitarian issue. Heitke, the Border Patrol's Grand Forks sector commander, said he's contacted consulates for some African countries asking them to spread information about the hazards of a Minnesota winter. ""Family groups with small children that, if someone hadn't gone out and picked them up, they'd have frozen to death,"" Heitke said. Those fleeing the U.S. avoid border posts because of an agreement ""?called Safe Third Country ""?that requires migrants to request refugee protection in the first safe country they arrive in. That means migrants arriving at a Canadian border post are rejected and told to apply in the U.S. An opposition party lawmaker grilled Canada's immigration minister in Parliament on Thursday, saying the agreement discourages refugees from crossing at an official border checkpoint. New Democrat lawmaker Jenny Kwan also asked the minister whether he still believes the U.S. is offering a high degree of protection for asylum seekers. Immigration Minister Ahmed Hussen, himself once a refugee from Somalia, stressed that Canada is welcoming to refugees. Canada has taken in almost 40,000 Syrian refugees, triple the U.S. intake of Syrians in 2016. But Hussen said the agreement with the U.S. will remain because it ""provides an orderly system of managing asylum claims."" Mohammed, who feared for his safety in Ghana because he's bisexual, met Razak Iyal, also a Ghana national, at a bus terminal in Minneapolis. Both men had been denied asylum. Worried about deportation, they decided to travel together and took a bus to Grand Forks, North Dakota. They then each paid a taxi driver $200 on Christmas Eve to get them close to the border. They crossed on foot, fearing death in the brutal cold until a truck driver saved them. ""We were standing in front of the highway looking for help for almost seven hours. Nobody was willing to help, no traffic stopped. We gave up. That was our end of our life,"" Iyal said. Mohammed and Iyal are hoping for prosthetic fingers, and Iyal said he wants to bring his wife to Canada. ""We feel like we are home,"" Iyal said. ""We feel we are a part of Canada. ... They were talking to us with respect."" ""?Forliti reported from Minneapolis, Minnesota. Doug Glass contributed from Minneapolis.", -970,2017/2/13,http://abcnews.go.com/US/wireStory/bergdahl-hearing-expected-focus-criticism-trump-45452000,Bergdahl hearing expected to focus on criticism from Trump,,"Lawyers for Army Sgt. Bowe Bergdahl will try Monday to convince a judge that he cannot get a fair trial on charges of desertion and misbehavior before the enemy because of highly charged statements made by President Donald Trump. The pretrial hearing before a military judge at Fort Bragg is expected to focus on statements that Trump made during the presidential campaign. Bergdahl is scheduled for trial in April and could face a life sentence if convicted of misbehavior before the enemy. He is accused of endangering the lives of soldiers who searched for him after he walked off his post in Afghanistan in 2009. Defense attorneys argue that Trump violated Bergdahl's due process rights by repeatedly calling him a ""traitor"" and making other harsh statements about the soldier. The defense motion, filed shortly after Trump was sworn in as president, cites more than 40 instances of Trump's criticism at public appearances and media interviews through August 2016. Bergdahl's attorneys argue that potential jurors may feel obligated to agree with the new president and would have a hard time ignoring what he said. Although Trump repeatedly said Bergdahl should face stiff punishment, even suggesting he be thrown out of a plane, prosecutors contend that any reasonable observer would understand that Trump's comments amounted to campaign rhetoric and should not be taken literally. They argue that Trump's use of the term ""traitor"" was not meant in the legal sense, but in a conversational way. Bergdahl, who is from Idaho, has said he walked off his post to cause alarm and draw attention to what he saw as problems with his unit. He was held captive by the Taliban and its allies for five years. The Obama administration's decision in May 2014 to exchange Bergdahl for five Taliban prisoners prompted some Republicans to accuse Obama of jeopardizing the nation's safety. ""?Follow Jonathan Drew at www.twitter.com/jonldrew", -971,2017/2/13,http://abcnews.go.com/US/wireStory/judge-hear-arguments-dakota-access-pipeline-work-45451360,Judge to hear arguments on Dakota Access pipeline work,,"A federal judge in Washington, D.C., is hearing arguments on whether to stop work on the $3.8 billion Dakota Access pipeline until a legal battle with American Indian tribes is resolved. The Standing Rock and Cheyenne River Sioux argue the pipeline threatens drinking water and cultural sites. The tribes also say it threatens their freedom of religion, which depends on pure water. Developer Energy Transfer Partners last week received final approval from the Army to lay pipe under the Missouri River in North Dakota ""?the final chunk of construction for the 1,200-mile pipeline to move North Dakota oil to Illinois. Work is underway. U.S. District Judge James Boasberg is to hear arguments this afternoon on whether it should be stopped while the lawsuit plays out.", -972,2017/2/13,http://abcnews.go.com/Politics/wireStory/trump-trudeau-discuss-women-workforce-45444968,"Trump, Trudeau to discuss women in workforce",,"President Donald Trump and Canadian Prime Minister Justin Trudeau will participate in a roundtable discussion about women in the workforce Monday, showing the rising policy influence of the first daughter who has stressed her commitment to issues like child care. A White House official said the two countries would launch a new task force called the United States Canada Council for the Advancement of Women Business Leaders-Female Entrepreneurs. The official said Trudeau's office reached out to discuss working on a joint effort, noting that this was seen as an area of shared interest between both leaders. Ivanka Trump, who has been a vocal advocate for policies benefiting working women, was involved in recruiting participants and setting the agenda for the meeting and will attend, the official said. Ivanka Trump stressed the importance of maternity leave and child care on the campaign trail, and has recently been meeting with business leaders to discuss those issues. The White House official said that Trump's economic agenda will include a ""focus on ensuring women enter and stay in the work force and addressing barriers facing female entrepreneurs."" The official requested anonymity to provide details in advance of the meeting. Advancing women has been a clear priority for Trudeau. In late 2015, he drew attention for naming a Cabinet that was 50 percent women, saying that he chose a group that ""looks like Canada."" Trump did not promise to appoint a gender-balanced Cabinet and has named a smaller number of women and minorities to top jobs. ""Our team reached out and suggested as it is an important part of the prime minister's agenda and of our economic growth plan,"" a Canadian official said. ""It seemed like a natural fit given their commitments in their platform as well."" The official requested anonymity to discuss the meeting in advance. Trump has offered a childcare plan and has signaled an interest in working on those issues. The business round table will be part of an itinerary that includes a bilateral meeting and a working lunch. The visit is crucial for Canada, which relies heavily on the United States for trade. Trump has said he wants to discuss his plan to overhaul the North American Free Trade Agreement, which involves the United States, Canada and Mexico. There are fears Canada could unintentionally be sideswiped as Trump negotiates with Mexico. Female executives from the United States and Canada are expected for the round table, including General Electric Canada CEO Elyse Allan, TransAlta Corp. CEO Dawn Farrell, Linamar Corp. CEO Linda Hasenfratz, T&T Supermarket Inc. Tina Lee and Schnitzer Steel Industries CEO Tamara Lundgren. Also expected are Julie Sweet, CEO-North America for Accenture, NRStor CEO Annette Verschuren, Monique Leroux, chair of the board of directors for Investissement Qu?bec. Carol Stephenson, of the board of directors for General Motors Co. will attend in place of the GM CEO. Additionally, the meeting will include Katie Telford, Trudeau's chief of staff, Canadian Foreign Minister Chrystia Freeland and Dina Powell, assistant to the president and senior counselor for economic initiatives. Powell, Telford and Freeland were involved in setting up the council and recruiting the CEOS. The council includes many of the meeting attendees, as well as Mary Barra, General Motors CEO, GE Vice Chair Beth Comstock and Catalyst CEO Deborah Gillis. Topics at the event will likely include issues like providing maternity leave and childcare, how to recruit and retain women and how to better support women entrepreneurs. Ivanka Trump does not have an official White House role. But her husband, Jared Kushner, is a senior adviser to the president and she stepped away from her executive positions at the Trump Organization and her lifestyle brand to move her family to Washington. She has been at several public White House events so far and has been privately sitting down with CEOs and thought leaders as she weighs how to pursue her policy interest. ""?Associated Press writer Rob Gillies in Ottawa, Ontario, contributed to this report.", -973,2017/2/13,http://abcnews.go.com/Sports/wireStory/jury-selection-set-begin-nfl-stars-murder-trial-45439146,Next up in ex-NFL star's 2nd murder case: Jury selection,,"Former NFL star Aaron Hernandez is going on trial again for murder ""?this time for the 2012 fatal shootings of two men outside a Boston nightclub. Hernandez already is serving a life sentence for the 2013 killing of Odin Lloyd, a semi-professional football player who was dating the sister of Hernandez's fianc?. A guide to the trial and key background about the case: THE DEFENDANT Hernandez, 27, was a star tight end for the New England Patriots. He grew up in Bristol, Connecticut, and played football at the University of Florida before being drafted by the Patriots in 2010. He played for the Patriots from 2010 to 2012. The team released him in June 2013, shortly after he was arrested in Lloyd's killing. In 2015, Hernandez was convicted of murder in Lloyd's death and is serving a life sentence without the possibility of parole. ""?THE VICTIMS Daniel de Abreu, 29, and Safiro Furtado, 28, were close friends who attended high school and served in the military together in Cape Verde before coming to the United States and settling in Boston. Family members and friends of the men have packed the courtroom for many of Hernandez's pretrial hearings. ""?THE KILLINGS The two men were fatally shot one night in July 2012 as they sat in a car at a red light after leaving a Boston nightclub. Prosecutors say Hernandez followed the men and fired five shots into their car after de Abreu accidentally bumped into Hernandez at the club and spilled some of his drink. At Hernandez's arraignment, prosecutor Patrick Haggan told a judge that in the months before the shooting, Hernandez had become increasingly convinced that people had been ""testing, trying or otherwise disrespecting him when he frequented nightclubs in the area."" ""?THE TRIAL Jury selection was scheduled to begin Monday in Suffolk Superior Court in Boston, but was postponed Sunday as a heavy overnight snowstorm approached. Prosecutors said jury selection would likely begin Tuesday, instead. Opening statements are slated for March 1. Prosecutors plan to call Alexander Bradley as their star witness. Bradley, a former friend of Hernandez, was with him in his car the night he allegedly shot de Abreu and Furtado. Prosecutors say Hernandez shot Bradley in the face in 2013 because he was worried Bradley might implicate him in the double slaying. Bradley survived, but lost his right eye. Hernandez is charged with witness intimidation in the Bradley shooting. Prosecutors have also said they plan to show jurors two Hernandez tattoos they say relate to the killings of de Abreu and Furtado. ""?THE DEFENSE Hernandez has pleaded not guilty and denied any role in the shootings of de Abreu and Furtado. His lawyers have not revealed their defense strategy in court, but they are expected to challenge Bradley's credibility. In a recent court filing, prosecutors asked the judge to prohibit Hernandez's lawyers from telling the jury about Bradley's criminal record. In a recent court filing, prosecutors said they anticipate that Hernandez's lawyers may try to argue that Bradley ""had the propensity to commit the crimes"" Hernandez is charged with. In January, Bradley was sentenced to five years in prison for shooting up a bar in Hartford, Connecticut, in 2014. No one was hurt. ""?This story has been corrected to show jury selection is likely to begin Tuesday, not Thursday.", -974,2017/2/13,http://abcnews.go.com/Sports/wireStory/voters-reject-2026-olympic-bid-st-moritz-davos-45440058,"Voters reject 2026 Olympic bid for St. Moritz, Davos",,"Voters in the Swiss Alps have rejected a second Olympic hosting bid planned for upscale mountain resorts St. Moritz and Davos. The canton (state) of Graubuenden says a referendum on financing a candidacy for the 2026 Winter Games was rejected by 60.1 percent of voters. In a tighter vote in 2013, the region refused to support a 2022 Winter Games bid. That Swiss project was the likely favorite in a contest won by Beijing. Switzerland now has a second option centered on the town of Sion, which could involve the IOC's home city, Lausanne. The Swiss Olympic board meets next month to decide on formally bidding in the 2026 contest. The IOC chooses a host in 2019. Sunday's ballot was conducted as St. Moritz hosts the two-week ski world championships.", -975,2017/2/13,http://abcnews.go.com/Politics/white-house-senior-adviser-judiciary-supreme/story?id=45427216,White House senior adviser: 'The judiciary is not supreme',,"Challenging a federal court's ruling, White House senior policy adviser Stephen Miller told ABC News ""the judiciary is not supreme"" and the president's powers on immigration ""represent the apex of executive authority."" Asked by ABC News Chief Anchor George Stephanopoulos about the Ninth Circuit Court of Appeals' upholding a lower court's temporary restraining order on President Trump's executive action that temporarily bars entry into the U.S. of people from seven predominantly Muslim countries, Miller said, ""We have equal branches of government in this country."" ""The judiciary is not supreme,"" he said on ""This Week"" on Sunday. ""A district judge in Seattle cannot force the president of the United States to change the laws and our Constitution because of their own personal views."" Pressed by Stephanopoulos whether his reference to judges' ""personal"" views"" was calling into question the legitimacy of the judge, Miller said, ""I'm calling into the question the accuracy of the ruling."" Miller asserted, ""This is an ideological disagreement between those who believe we should have borders and should have control, and those who believe there should be no borders and no control"" ""The bottom line is the president's power in this area of represents the apex of executive authority,"" he said. ""This is not a disagreement about the law and the Constitution. There is no constitutional right for a citizen in a foreign country who has no status in America to demand entry into our country. Such a right cannot exist; such a right will never exist,"" Miller said. Stephanopoulos asked about the administration's next move on the immigration order, including whether the White House will appeal the court's ruling or issue a new executive action. Miller said, ""All options are on the table. We have multiple options and we're considering all of them."" ", -976,2017/2/13,http://abcnews.go.com/Entertainment/grammy-winning-jazz-pop-rb-singer-al-jarreau/story?id=45442317,"Grammy-winning jazz, pop and r'n'b singer Al Jarreau dead at 76",,"Grammy-winning jazz, pop and R&B vocalist Al Jarreau, perhaps best-known to non-jazz audiences for singing the theme song to hit '80s TV show ""Moonlighting,"" has died. He was 76. In recent days, he had been hospitalized for exhaustion, according to his Twitter feed, and had announced he was retiring from performing live. A statement on his official website read, ""Al Jarreau passed away today, February 12, 2017. He will be missed...his 2nd priority in life was music. There was no 3rd. His 1st priority, far ahead of the other, was healing or comforting anyone in need. Whether it was emotional pain, or physical discomfort, or any other cause of suffering, he needed to put our minds at ease and our hearts at rest."" The statement went on to say, ""To everyone who attended his concerts, and listened to his albums: He needed you, and you always were there for him, for more than 50 years. He was thankful for you every day, and did his best to show that to each of you."" The statement also thanked all of the musicians, songwriters and promoters he worked with over the years. The statement concluded by saying, in part, ""From you, Al asks a favor. Please find any artistic thing that you can do with passion, and do it. With art in your life, you will be a better family member, neighbor, friend, and citizen."" Jarreau, one of the few vocalists to win Grammy awards in the jazz, pop and R&B categories, started his jazz career in 1968 and signed his first recording contract in 1975. One of his biggest albums, 1981's ""Breakin' Away,"" included his hit ""We're in This Love Together."" He scored another hit in 1984 with the song ""After All."" His notable TV appearances included singing on the 13th episode of the then-new TV show ""Saturday Night Live."" In 1985, Jarreau wrote the lyrics for, and recorded, the theme song for the Cybill Shepherd/Bruce Willis ABC comedy detective show ""Moonlighting."" In 1987, the song was released as a single -- it received two Grammy nods and made the top 30. Jarreau was also featured on the 1985 number one charity hit ""We Are the World."" In 1996, he appeared on Broadway in ""Grease"" in the role of Teen Angel, and on ""American Idol"" season five, he performed with finalist Paris Bennett on the season finale. Jarreau is survived by his wife, Susan, and son Ryan.", -977,2017/2/13,http://abcnews.go.com/US/chicago-girls-11-12-shot-head-separate-incidents/story?id=45441188,"2 Chicago girls, 11 and 12, shot in head in separate incidents",,"Two girls, ages 11 and 12, were both shot in the head in separate, unrelated shootings that took place within an hour of each other in Chicago, police told ABC station WLS-TV. The 11-year-old was in the rear passenger seat of a car at around 7:40 p.m. when someone fired shots, ""striking her in the head,"" according to a bulletin published by police. No one is in custody and the investigation is ongoing, the bulletin said. The girl was rushed to Comer Children's Hospital in critical condition, police said. Her grandmother identified her to WLS-TV as Takiya Holmes, and said that her condition is dire. ""They are treating her as best as they can with all kind of aggressive measures that the hospital can do for her, but it's grim and we want prayers to go up for her. We want whoever saw what happened to tell the police,"" Patsy Holmes told WLS. The 12-year-old girl, Kanari Bowers, was wounded in in the West Englewood neighborhood at around 7:15 p.m., and was transported to Stroger Hospital where she is in critical condition, WLS reported. No one is in custody for the Bowers shooting either. Violence in Chicago has garnered national attention, following a long and violent 2016 that ended with a record number of shootings and the most homicides in two decades, police say. There were 3,550 shooting incidents and 762 murders last year, a total that works out to an average of more than two murders and nearly 10 shootings every single day. The trend has continued this year. Twenty-eight people were shot in the city on the first day of January alone, according to data from the Chicago Police Department. ABC News' Julia Jacobo contributed to this report. ", -978,2017/2/13,http://abcnews.go.com/Politics/aclu-promises-rapid-response-team-combat-deportations-trump/story?id=45440834,ACLU promises 'rapid response team' to combat deportations under Trump,,"The ACLU, the non-profit rights group whose membership and donations have surged since it launched legal actions against President Trump's executive order limiting immigration, told ABC News today that it plans on creating a ""rapid response team"" to combat a potential rise in deportations under the current administration. U.S. Immigration and Customs Enforcement (ICE), the agency operating under the Department of Homeland Security that is responsible for handling deportations, arrested more than 160 foreign nationals this week in Los Angeles, the majority of whom had criminal records. ICE LA Field Office Director David Marin said in a press call that the raids conducted were not related to Trump's executive order, and described them as being ""nothing out of the ordinary."" Between 2009 and 2015 the Obama administration removed more than 2.5 million people through immigration orders, shattering records, and earning him the nickname ""Deporter in Chief"" among rights groups and activists. As recently as 2016, Obama drew sharp criticism from some Democrats over ordering raids that targeted women and children, according to Reuters. But ACLU senior attorney Lee Gelernt told ABC News that while they were ""not pleased"" with Obama's handling of deportation raids, his group is concerned that the Trump administration will expand those efforts. The rapid response team would bring together the ACLU, private law firms and local community groups to ensure that individuals facing deportations have access to counsel right away. ""This administration is just getting started and we're anticipating much worse,"" Gelernt said in a phone interview, citing the language Trump uses about immigrants as his reasoning for his concern that Trump's approach could be more severe than Obama's. ""His rhetoric is already scaring a lot of people in immigrant communities."" In September, the National Immigration and Customs Enforcement Council, the official union representing ICE's 5,000 federal immigration officers and law enforcement support staff, endorsed Trump's campaign for president. It was an endorsement that he highlighted frequently on the campaign trail. The ACLU have received nearly $80 million in online contributions alone since the election, according to tTe Associated Press, which also reported that the group's membership rates have doubled during the same time. ", -979,2017/2/13,http://abcnews.go.com/International/wireStory/thousands-march-mexico-demand-respect-reject-trump-45443565,"Thousands march in Mexico to demand respect, reject Trump",,"About 20,000 people staged a march through Mexico's capital Sunday demanding respect for their country and its migrants in the face of perceived hostility from the administration of U.S. President Donald Trump. Many marchers carried Mexican flags and dressed in white as a sign of unity and to signal the non-political nature of the march. One of the banners read: ""Gracias, Trump, for unifying Mexico!"" The marchers protested Trump's plans for a border wall and increased deportations of migrants. Trump has also pressured U.S. corporations to provide jobs in the United States, not Mexico. Paulina Ortega carried a placard in English proclaiming: ""We love Americans, we hate racism."" ""This is a march for dignity,"" she said. Irene Aguilar, a university professor, said the main message of the marchers was to show the unity of Mexicans in the face of adversity. The march also featured many signs supporting Mexican migrants living in the United States. ""We want demonstrate to all of those who suffer discrimination in the United States that we are with them,"" said Ana Fernanda Islas, a university student. Mexicans have called for unity in facing the challenge posed by Trump's policies, but the march featured almost as many banners criticizing Mexican President Enrique Pena Nieto as the new U.S. leader. Smaller marches were held in other Mexican cities Sunday. ""?This story has been corrected to show that the family name of first marcher quoted is Ortega.", -980,2017/2/13,http://abcnews.go.com/Politics/washington-state-attorney-general-president-trump-reading-constitution/story?id=45427217,Washington State attorney general: President Trump is 'not reading' the Constitution,,"Washington State's attorney general said he ""will use every tool I have,""?in the court challenge to President Trump's executive order on immigration and would not rule out deposing the president. State Attorney General Bob Ferguson brought Washington's suit with Minnesota against the president over the immigration order, leading a federal judge to put a temporary block on the order on Feb. 4, a ruling that was upheld last week by a federal appeals court. Asked by ABC News Chief Anchor George Stephanopoulos on ""This Week"" on Sunday whether he would try to depose President Trump in the case, Ferguson said, ""I won't announce that on national TV. But, I can assure you of this: I want to be crystal clear with your viewers. My job as attorney general is to uphold the rule of law in this country. And I'll use every tool that I have as attorney general to make sure that the president follows that Constitution."" Ferguson also said he and others working on the case ""can seek depositions from administration officials. We can ask for documents and emails to get behind what truly motivated that executive order."" On Thursday, the Ninth Circuit Court of Appeals upheld the Feb. 4 ruling by a federal judge putting a temporary restraining order on President Trump's executive action that temporarily bars entry into the U.S. of people from seven Muslim-majority countries. Shortly after the appeals court released its decision, Trump took to Twitter, writing, in all caps, ""sEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE!""?Stephanopoulos asked Ferguson if President Trump is in a ""very strong position"" in the case considering that a federal law, 8 U.S. Code 1182, states, ""Whenever the president finds that the entry of any aliens or of any class of aliens into the United States would be detrimental to the interests of the United States, he may by proclamation, and for such period as he shall deem necessary, suspend the entry of all aliens or any class of aliens as immigrants or nonimmigrants, or impose on the entry of aliens any restrictions he may deem to be appropriate."" ""We recognize that,"" Ferguson said. ""But there's another document that the president is not reading from and that's the Constitution."" ""Folks have rights of due process, for example,"" he said. ""Nobody is above the law. An executive order is still, must be consistent with our Constitution."" Stephanopoulos also asked about Washington's case relying on comments by Trump and his allies during the campaign about a Muslim ban. Noting that Trump ""now denies that this is a Muslim ban,"" Stephanopoulos asked, ""Is there really any precedent for using campaign statements to establish"" motive? Ferguson said there is precedent for looking at statements by people who put an executive order in place if ""if you're looking for an improper motive, which we're certainly asserting. So we will absolutely continue to use those statements.""", -981,2017/2/13,http://abcnews.go.com/International/wireStory/north-korea-reportedly-test-fires-missile-challenging-us-45434553,UN Security Council meeting sought over NKorea missile test,,"The United States, Japan and South Korea have requested urgent diplomatic talks at the United Nations on Monday over North Korea's latest ballistic missile launch, with Seoul condemning what it called ""serious military and security threats"" and predicting more such tests. A spokesman for the U.S. Mission to the United Nations said Sunday night that the meeting is expected to take place Monday. The spokesman spoke on condition of anonymity because he was not authorized to speak publicly. The U.N. Mission for Ukraine, which holds the rotating Security Council presidency, later confirmed that closed consultations on North Korea will take place late Monday afternoon. The banned missile test is seen as an implicit challenge to U.S. President Donald Trump, who has vowed a tough line on Pyongyang but has yet to release a strategy for dealing with a country whose nuclear ambitions have bedeviled U.S. leaders for decades. North Korean state media said leader Kim Jong Un was at the site to observe the launch and expressed pleasure at the North's expansion of its strategic strike capabilities. ""These are serious military and security threats,"" Jeong Joon-hee, spokesman at the Ministry of Unification, told reporters. ""Pyongyang has no intention of backing away from its goal to become a country with nuclear weapons."" A report on the launch carried early Monday by the North's Korean Central News Agency said Kim watched from an observation post and gave the order to fire the ""Pukguksong-2,"" which it said was a ""Korean style new type strategic weapon system."" It is believed to have flown about 500 kilometers (310 miles) before splashing down into the ocean in international waters. The report said the test proved ""the reliability and security"" of a new mobile launching system, the solid fuel that was used and the guidance and control features of the ballistic missile. Solid fuel can give missiles longer range and make detecting them before launch more difficult because they can be readied faster than liquid fuel missiles. The report also said the test verified control and guidance capabilities and said the missile can be ""tipped with a nuclear warhead."" It suggested the launch conducted in a ""lofted"" style, which puts the missile into a high trajectory rather than a lower one that gives it more range, in order take ""the security of the neighboring countries into consideration."" It added Kim ""expressed great satisfaction over the possession of another powerful nuclear attack means."" ""Now our rocket industry has radically turned into high thrust solid fuel-powered engine from liquid fuel rocket engine and rapidly developed into a development- and creation-oriented industry, not just copying samples,"" he said. ""Thanks to the development of the new strategic weapon system, our People's Army is capable of performing its strategic duties most accurately and rapidly in any space: under waters or on the land."" North Korea had warned it was ready to test its first intercontinental ballistic missile. The U.S. Strategic Command, however, said it detected and tracked what it assessed to be a medium- or intermediate-range missile. The reports of the launch came as Trump was hosting Abe and just days before the North is to mark the birthday of leader Kim Jong Un's late father, Kim Jong Il. After receiving word of the launch, Trump stood at his south Florida estate with Japanese Prime Minister Shinzo Abe, who called the move ""intolerable."" Appearing with Trump at a news conference at Trump's estate, Abe condemned the missile launch as ""absolutely intolerable."" He read a brief statement calling on the North to comply fully with relevant U.N. Security Council resolutions. He said Trump had assured him of U.S. support and that Trump's presence showed the president's determination and commitment. Trump followed Abe with even fewer words, saying in part: ""I just want everybody to understand and fully know that the United States of America stands behind Japan, its great ally, 100 percent."" Stephen Miller, Trump's chief policy adviser, said Trump and Abe had displayed ""an important show of solidarity"" between their nations. ""The message we're sending to the world right now is a message of strength and solidarity; we stand with Japan and we stand with our allies in the region to address the North Korean menace,"" Miller said during an interview Sunday with ABC's ""This Week."" The firing of the missile is a major challenge for the Trump administration, said George Lopez, an expert in economic sanctions and nuclear disarmament and a professor emeritus of peace studies at the University of Notre Dame. ""The Sunday test of an intermediate-range ballistic missile by the North Korean regime is in clear violation of past United Nations Security Council resolutions and recent warning from the U.S.,"" Lopez said. ""As such, it is a significant challenge to the Trump Administration because it has yet to develop its policies toward the region, toward North Korea, or its role in the UN and its use of economic sanctions. So we may learn a lot about Mr. Trump's crisis diplomacy in the coming days."" South Korea's Joint Chiefs of Staff said in a statement that the missile was fired from around Banghyon, North Pyongan Province, which is where South Korean officials have said the North test-launched its powerful midrange Musudan missile on Oct. 15 and 20. The missile splashed down into the sea between the Korean Peninsula and Japan, according to the U.S. Strategic Command. Japanese Chief Cabinet Secretary Yoshihide Suga told reporters it did not hit Japanese territorial seas. The North conducted two nuclear tests and a slew of rocket launches last year in continued efforts to expand its nuclear weapons and missile programs. Kim Jong Un said in his New Year's address that the country had reached the final stages of readiness to test an ICBM, which would be a major step forward in its efforts to build a credible nuclear threat to the United States. Though Pyongyang has been relatively quiet about the transfer of power to the Trump administration, its state media has repeatedly called for Washington to abandon its ""hostile policy"" and vowed to continue its nuclear and missile development programs until the U.S. changes its diplomatic approach. Just days ago, it also reaffirmed its plan to conduct more space launches, which it staunchly defends but which have been criticized because they involve dual-use technology that can be transferred to improve missiles. ""Our country has clearly expressed its standpoint, that we will continue to build up our capacity for self-defense, with nuclear forces and a pre-emptive strike capability as the main points, as long as our enemies continue sanctions to suppress us,"" Pyongyang student Kim Guk Bom said Sunday. ""We will defend the peace and security of our country at any cost, with our own effort, and we will contribute to global peace and stability."" South Korean Prime Minister Hwang Kyo-ahn, who is also the acting president, said his country would punish North Korea for the missile launch. The Foreign Ministry said South Korea would continue to work with allies, including the United States, Japan and the European Union, to ensure a thorough implementation of sanctions against the North and make the country realize that it will ""never be able to survive"" without discarding all of its nuclear and missile programs. ""?Associated Press writers Kim Tong-Hyung in Seoul, South Korea, Jill Colvin in Palm Beach, Florida, and Edith M. Lederer at the United Nations contributed to this report.", -982,2017/2/13,http://abcnews.go.com/International/north-korea-launches-ballistic-missile-test/story?id=45430615,North Korea launches ballistic missile test,,"North Korea fired off a ballistic missile into the East Sea from Banghyeon North Pyongan Province early Sunday, according to South Korean officials. South Korea's military is analyzing exactly what type of missile it was but there's a strong possibility that it was a midrange Musudan type, according to officials. North Korea has test fired a total of eight Musudans, but only one was successful last June. South Korea's joint Chiefs of Staff said the missile flew about 310 miles. Estimates vary over how far this mobile intermediate-range ballistic missile could travel, but at its best the Musudan would be able to reach U.S. military bases in Guam. Analysts in Seoul have been expecting some sort of military provocation ahead of late Kim Jong-il's birthday on February 16 and the largest ever joint military exercises between the U.S. and South Korea scheduled to begin in two weeks. According to the statement, the two officials strongly condemned the launch and agreed that the countries will explore every possible way to suppress North Korean provocations. The launch today comes only two days after President Trump and Japanese Prime Minister Shinzo Abe strongly urged North Korea to abandon its nuclear and ballistic missile programs and not to take any further provocative actions. #ICYMI: Joint Statement with Prime Minister Shinzo Abe on North Korea. pic.twitter.com/qEC87FKB1D In a brief joint statement with Trump at the Mar-a-Lago resort in Palm Beach, Florida, Saturday night, Abe called the missile launch ""absolutely intolerable."" ""North Korea must fully comply with the relevant U.N. security council resolutions,"" he said. Abe, who has spent the weekend with Trump in South Florida and had private meetings today, said that he and the president were dedicated to working together and strengthening their alliance. Trump echoed the Japanese prime minister, saying, ""The United States of America stands behind Japan a great ally 100 percent, thank you."" Trump gave no further remarks, and neither leaders answered questions from the press corps. U.S. Strategic Command spokesman Lt. Colonel Martin O'Donnell said the North Korean missile was a medium or intermediate range ballistic missile. It was not an ICBM as North Korea had warned in early January it was close to testing. O'Donnell told ABC News that they are still assessing what type of missile was launched. A Musudan is an intermediate-range ballistic missile, but it could have also been a medium-range ballistic missile, he said. Japan's chief cabinet secretary said the missile did not land in Japanese territorial seas. Yoshihide Suga said that Abe was notified and ordered that intelligence be gathered about what had occurred, and to check on the safety of navigation of flights and ships. ABC News' Luis Martinez contributed to this report. The Associated Press also contributed to this report.", -983,2017/2/13,http://abcnews.go.com/International/wireStory/china-blames-us-south-korea-north-korea-missile-45452320,"China blames US, South Korea for North Korea missile launch",,"China, facing criticism that it is not doing enough to pressure North Korea to drop its nuclear program, said Monday that the root cause of North Korean missile launches is Pyongyang's friction with the United States and South Korea. North Korea fired a banned ballistic missile on Sunday, its first test since U.S. President Donald Trump took office. The missile, launched as Trump hosted Japanese Prime Minister Shinzo Abe in Florida, is believed to have flown about 500 kilometers (300 miles) before splashing down in international waters. Foreign Ministry spokesman Geng Shuang said China opposed the launch, which violated U.N. Security Council resolutions that call for an end to North Korea's nuclear and missile tests. China is North Korea's largest source of trade and aid, and Trump has complained that Beijing is not doing enough to pressure Pyongyang. Beijing counters that its influence is overstated and suggests that Washington's refusal to talk directly to North Korea is impeding progress toward a solution. ""The root cause of the (North Korean) nuclear missile issue is its differences with the U.S. and South Korea,"" Geng told reporters at a regular briefing. Geng said China, a permanent member of the U.N. Security Council, has been ""completely and comprehensively"" implementing Security Council resolutions on the nuclear issue. He said Beijing ""has been striving for a settlement of the Korean Peninsula issue by proactively engaging in mediation and promoting peace talks."" Although generally dismissive of sanctions, Beijing has signed on to successive rounds under the U.N. Security Council, and last month banned more items from being exported to North Korea, including plutonium and dual-use technologies that could aid its nuclear program. Geng urged all sides to refrain from provocative action and said China would continue participating in Security Council discussions in a constructive and responsible way. Beijing appears concerned that the U.S. and South Korea will speed up the planned deployment of an advanced missile defense system in South Korea designed to counter a missile attack from the North following the latest launch. Beijing objects to the system because it would possibly be able to observe Chinese military movements. Shi Yuanhua, a Korean studies professor at Shanghai's Fudan University, said that from Pyongyang's perspective, it was a good time to launch a missile because the new U.S. administration hadn't decided what approach to take with North Korea, and Beijing was at odds with Washington and Seoul over the anti-missile system. ""Whether or not to abandon nuclear weapons concerns North Korea's core national interests and there is no way for China to get it to change its stance with a few words of persuasion, and it can't solve the problem by applying a ban on exports,"" Shi said. ""The key for solving the problem lies in the hands of the U.S. If the U.S. is willing to sit and talk with North Korea, China will be happy to promote it,"" he added. A Communist Party newspaper said in an editorial Monday that the timing of Sunday's launch, a day after the end of China's 15-day Lunar New Year period, suggests Beijing's participation in U.N. Security Council sanctions is having a ""positive effect."" Last year, North Korea launched a long-range rocket on the eve of China's most important holiday, in a snub to its chief ally. ""?Associated Press researcher Yu Bing contributed to this report.", -984,2017/2/13,http://abcnews.go.com/Entertainment/beyonce-performs-grammy-awards-2017-pregnant-twins/story?id=45446242,Beyonce performs at Grammy Awards 2017 pregnant with twins,,"The Grammys promised a Beyonce performance ""that would have everyone talking"" and the singer, pregnant with twins, delivered. Beyonce, dressed in a golden floor-length gown with a golden halo head piece, stood center stage as images floated around her in a way that only nerds can decode. Among the images were photos of her daughter, Blue Ivy, and her mother, Tina Knowles, who introduced her. Warsan Shire's poetry was spoken by the singer, much like in her musical film, ""Lemonade,"" which premiered on HBO last year. ""Love Drought/Sandcastles"" #GRAMMYs pic.twitter.com/LUh9OAgT4x ""Women like her cannot be contained,"" Beyonce spoke, cradling her belly. The singer sat down in a wooden chair atop a long table to actually sing her first song in the medley, ""Love Drought."" She then performed ""Sandcastles,"" which refers to a relationship being rebuilt after heartbreak. via GIPHY The performance ended with Shire's words being spoke again by Beyonce: ""If we're gonna heal, let it be glorious."" Beyonce blew kisses to her husband, Jay Z, who sat in the audience, next to her mother and daughter. She told the audience ""thank you so much"" as they gave her a standing ovation.", -985,2017/2/13,http://abcnews.go.com/Entertainment/grammy-awards-2017-list-winners/story?id=45445445,Grammy Awards 2017: List of winners,,"The music world's biggest stars were honored with Grammy Awards on what's called ""music's biggest night"" Sunday. Golden gramophones were handed out inside Los Angeles' Staples Center. Coming into Sunday, Beyonce led the field with nine total nominations. Still, Adele went home the big winner, taking home the award for Album of the Year for ""25."" Still, Bey wasn't completely empty handed. Before the televised awards had begun, she had already took home one for Best Music Video for ""Formation."" She also won the award for Best Urban Contemporary Album. The late David Bowie was also among the winners. He posthumously won five Grammy Awards, including Best Rock Song, Best Rock Performance, and Best Alternative Music Album, for ""Blackstar."" Actress Carol Burnett also went home a winner, nabbing Best Spoken Word Album for ""In Such Good Company: Eleven Years Of Laughter, Mayhem, And Fun In The Sandbox."" Blockbuster film, ""Star Wars: The Force Awakens,"" also took home an award for Best Score Soundtrack For Visual Media. Here's a list of the top winners at the 59th annual Grammy Awards: Album of the Year Record of the Year Song of the Year Best Urban Contemporary Album Best New Artist Best Pop Vocal Album Best Rock Album Best Dance/Electric Album Best Rap Performance Best Music Film Best Alternative Music Album ", -986,2017/2/13,http://abcnews.go.com/Entertainment/adele-takes-home-top-prizes-2017-grammy-awards/story?id=45446239,Adele takes home top prizes at the 2017 Grammy Awards,,"Adele opened the 59th annual Grammy Awards by delighting the audience with a perfect rendition of her hit song, ""Hello."" But the British singer -- who went home the big winner Sunday night with five awards, including album of the year -- had to restart her tribute to George Michael later in the show. ""Can we please start it again? I'm sorry, I can't mess this up for him,"" she said after getting tripped up after just a few lines of Michael's 1996 song, ""Fastlove."" After her second performance of the night, Adele was visibly in tears, mouthing ""thanks"" to a sympathetic audience. And when it came to accepting the Grammy for album of the year, Adele said Beyonce deserved the honor for her visual album, ""Lemonade."" ""The 'Lemonade' album was just so monumental and so well thought out and so beautiful and soul-barring,"" Adele explained to the audience during her acceptance speech, ""and we appreciate that."" A tribute to Prince went off without a hitch. The Purple One was honored by The Time, a Minneapolis band he helped create. Bruno Mars, wearing a Prince-inspired purple suit, later performed ""Let's Go Crazy,"" as he showcased his impeccable guitar skills. What a performance! Only at the #GRAMMYs pic.twitter.com/c3aGcFKq2O Although Beyonce lost in most of her nominated categories to Adele, the pregnant singer's performance lit up social media. She took the stage performing ""Love Drought"" and ""Sandcastles"" in a golden ensemble featuring a halo. Bey did, however, take home a trophy for best urban contemporary album for ""Lemonade."" During her acceptance speech she told the audience ""it's vital that we learn from the past and recognize our tendencies so we won't repeat our own mistakes."" via GIPHY Other artists to light up the stage included Lady Gaga, The Weekend, Ed Sheeran and Keith Urban with Carrie Underwood, who performed their 2016 duet, ""The Fighter."" Lukas Graham and Kelsea Ballerini performed a mash-up of their hit singles, ""7 Years,"" and ""Peter Pan."" In a memorable moment, Demi Lovato, Tori Kelly, country music group Little Big Town and Andra Day paid tribute to the Bee Gees. The artists performed the group's songs from the ""Saturday Night Fever"" soundtrack, which is celebrating its 40th anniversary. Another tribute honored A Tribe Called Quest's Phife Dawg, who passed away last March. Joining the rap group onstage was Grammy Award-nominated artist Anderson Paak, Consequence, and Busta Rhymes. We the people at the #GRAMMYs pic.twitter.com/XvjHa54Ufh The politically-driven performance made reference to President Donald Trump's travel ban, which temporarily restricts immigration from seven predominantly Muslim countries. John Legend also sang during the awards program as the Grammys remembered late musicians such as Leonard Cohen, Sharon Jones, Merle Haggard, Joey Feek, Debbie Reynolds, Guy Clark, Billy Paul, Frank Sinatra Jr., Leon Russell, and George Martin. A hilarious moment came when Twenty One Pilots took off their pants to accept the award for best pop duo/group performance for their song, ""Stressed Out."" The duo explained that previously when they were watching the Grammys at home, drummer Josh Dun noticed that they were all in their underwear. ""Anyone from anywhere can do anything."" - Tyler Joseph from @twentyonepilots pic.twitter.com/PqsYVGfYMR The band said then that ""if we ever win a Grammy, we should receive it just like this."" Chance the Rapper won a coveted award -- best new artist. He also used the opportunity to clarify what it meant to be an artist not connected to a record label. The Chicago rapper, who won a total of three Grammys Sunday night, put out his debut album, ""Coloring Book,"" exclusively on Apple Music before it was released on other streaming services. ""Independent doesn't mean you do it by yourself, but independence means freedom,"" he said. He later performed a medley of his distinctive gospel-infused hip-hop hits.", -987,2017/2/13,http://abcnews.go.com/Politics/democrats-future-pick-party-chair/story?id=45442319,Democrats consider their future and who to pick as party chair,,"Supporters of Congressman Keith Ellison's bid to become the next Democratic National Committee chair held mismatched signs -- some from a nurses""?union, others from different labor groups and the Minnesota representative's formal campaign for the party office. The hundred or so people who came to a Democratic Party meeting in Baltimore on Saturday backing Ellison's candidacy sang and marched around the building's lobby. But they weren't the only contingent there. Ellison, who backed Sen. Bernie Sanders in the 2016 Democratic primary, was the early favorite in the race to lead the party's national political organization after the party took a surprise beating last fall. The congressman was one of the first to throw his hat in the ring and enjoyed quick endorsements from Senate Majority Leader Chuck Schumer and grassroots organizations like MoveOn and Democracy for America as well as Sanders. But now with just two weeks before the party's election, there is a crowded field of candidates. Democratic National Committee members, who include state party officials and officeholders, are choosing from a group of top-tier candidates as they struggle to determine who would best diagnose and treat the party's ills. Thomas Perez, who was President Obama's secretary of labor, entered the race late but came in with gusto and big-time backing. Almost every major player in the Obama administration apart from the former president himself has given Perez a thumbs up, including former Vice President Joe Biden. Still, many organizers in the Ellison and Sanders camp view Perez as representative of the same old approach to politics that has recently failed Democrats and, even worse, a rejection of the populist energy and dynamism surging in the party's base. In talks with reporters and his pitch to DNC members over the weekend, Perez responded to being labeled the ""establishment""?candidate by pointing to his record. ""I fought for established principles of anti-discrimination, access to opportunity for everyone, and making sure we value our nation's diversity,""?he said in an interview with ABC News, before running through a list of past accomplishments from challenging the right-wing Arizona Sheriff Joe Arpaio to fighting legal battles for marriage equality and against Wall Street. ""I""ve taken on those battles because I believe in those established values of opportunity and inclusion""?I'm proud to have worked for Ted Kennedy, Barack Obama, and I want to bring those values and take those values into action here,""?Perez said. But he appeared somewhat defensive when asked about whether he can compete with Ellison's progressive street-cred. ""There's not one candidate here that has the monopoly on the grassroots support,"" Perez said. ""We all have a lot of grassroots support because We're all worked in the grassroots.""?The meeting in Baltimore was one of a series of events the party has held around the country since November to allow Democratic leaders including local state chairs and elected officials the chance to ask questions of the candidates for DNC head. Democrats are clearly concerned about how to unify different factions in the party and best support -- and ultimately utilize -- ground-up, local organizing taking place around the country in opposition to the policies of President Trump. There is also anxiety among some in the party that the competition between Ellison and Perez too closely resembles a proxy battle of the bitter 2016 primary. That in part is why lesser-known candidates are getting a close look too for the chairperson's role. South Bend Mayor Pete Buttigieg's bid has gained some momentum the last few weeks. Saturday, he presented himself as an alternative to the two frontrunners. ""Why not go with somebody who isn""t a product of one faction or another faction, but somebody who is here to deliver the fresh start our party needs?""?said Buttigieg. He argued that even if the party had won the White House in November it would still be in trouble due to its atrophying local organizations. ""If we recognize that the answers are going to come from our local communities, put in a local organizer, a local mayor who's been running and winning elections in one of the reddest states in America to deliver results to the Democratic Party."" Conventional wisdom among party members seems to be that none of the hopefuls have yet secured the majority of votes needed and so the election will likely take multiple rounds of ballots at the end of the month. The longtime chair of the state party in New Hampshire, Raymond Buckley, went on the offensive against Buttiggieg on Saturday and chided the mayor for having backed Clinton. Buckley emphasized that after he stayed neutral in the 2016 primary race Sanders won his state by a landslide. One reoccurring conversation at these Democratic meetings is about what exactly went wrong during the 2016 race, and there is no love lost in talk of the Clinton campaign or of recent former heads of the party. Buckley had one of the more buzzy answers Saturday when he blamed the party for wasting money attacking President Trump and failing to devise it's own message. ""When we are running hundreds of millions of dollars worth of commercials, telling the voters that our opponent is offensive, when you are worried about your damn paycheck, when you'r worried about your job and where your kids are going to do to school, you don""t really give a crap about whether the president is an insult to us,""?Buckley said to big applause. Traditionally, the Democratic Party chairperson's role is a mix of fundraiser, spokesperson and manager, and some candidates clearly have a background or advantage in one of these areas. But finding someone who will both personify the fight against Trump and lead the rebuilding of a massive, arguably atrophied party, may remain a tall order.", -988,2017/2/13,http://abcnews.go.com/US/proclaimed-kkk-imperial-wizard-found-dead-riverbank/story?id=45439758,KKK 'imperial wizard' found dead on a Missouri riverbank,,"The body of a Ku Klux Klan leader who had been missing for several days was found on a Missouri riverbank, according to police. Frank Ancona, who was a 51-year-old self-proclaimed imperial wizard of a KKK chapter near St. Louis, according to a website promoting the group, was found dead by a family who had gone to the Big River in Missouri to go fishing, according to Daily Journal, a local newspaper. Ancona was last seen heading for work on Wednesday morning by his wife, the Daily Journal reported. The Washington County Sheriff's Office referred ABC News to a statement about Ancona's death on their Facebook page. ""On Friday the Washington County Sheriff's Office learned of the disappearance of Frank Ancona who was missing from Leadwood Missouri. During this time, we were also informed Mr. Ancona's vehicle had been located by a United States Federal Forest Service employee on Federal Forest Service Property,"" the statement, which is attributed to Sheriff Zach Jacobsen, begins. Jacobsen said that his office reached out to Missouri State Highway Patrol for help with the case on Ancona's disappearance. During the investigation that followed, he said, one subject was arrested on an unrelated warrant and two search warrants were executed in Washington County, Missouri. After the body was found, it was taken by the Washington County Corner's Office for an autopsy, where it was identified as Ancona, Jacobsen said. A cause of death has not been released at this time, Jacobsen said. ""The Washington County Sheriff's Office would like to extend our sympathy to Mr. Ancona's family and friends. I would like to thank the Missouri State Highway Patrol, the Franklin County Sheriff""s Office and the Saint Francois County Sheriff's Office for their assistance and professionalism during this tragic and senseless act of violence. I would also like to thank my staff for the professionalism and dedication they show day in and day out for our great community, and to the citizens of Missouri,"" the statement concludes. Ancona had conducted interviews with media, speaking on behalf of the Klu Klux Klan in the past. In 2014, he appeared on the MSNBC show ""All In"" with Chris Hayes, in which he defended fliers that the Klan distributed during the protests that took place in Ferguson, Missouri, that year. The fliers threatened ""lethal force"" against ""terrorists masquerading as 'peaceful protesters.'""", -989,2017/1/20,http://abcnews.go.com/Politics/analysis-michelle-obama-tough-act-follow-tough-job/story?id=44816738,ANALYSIS: Michelle Obama a Tough Act to Follow in a Tough Job,,"Melania Trump has a tough act to follow. Michelle Obama leaves the White House with sky-high approval ratings after a campaign season where enormous and enthusiastic crowds jammed into her every appearance, shouting that she should to run for office. Retrospectives of the Obama presidency praise everything from her healthy food to her high fashion. But in fact, just about every first lady comes into office at a disadvantage. (Except perhaps the first White House hostess dubbed ""Hirst lady""?by the press. James Buchanan's niece, Harriet Lane, moved in after Jane Pierce spent her four years in the Executive Mansion mourning the death of her son, causing one writer to judge: ""Ler woebegone face""?banished all animation in others.""? The title comes with no job description, and a great deal of suspicion. The public knows that the president's wife is likely to have a great deal of influence but she can""t be fired. And each first lady is pretty much left to figure out how to handle it for herself. One exception: Laura Bush and her staff worked to make smooth her successor's path. Even so, Michelle Obama took some time to get comfortable in the role, to choose the causes where her voice would make a difference and to organize the allies to work with her to bring about change. Mrs. Obama was at something of a disadvantage because she had never been first lady of a state. For both Laura Bush and Hillary Clinton that experience had provided the closest thing to a test run for the national role. Not only had they learned how to promote their projects, they also already knew what it was like to take hits from political opponents and the press. Melania Trump will arrive with none of that preparation and with no close friends nearby as she tries to navigate through the treacherous waters of the nation's capital. Much has been made of the fact that she is not the first first lady to be foreign born -- that distinction goes to Louisa Catherine Adams, the wife of John Quincy. But Mrs. Adams was the daughter of an American living in London at the time of her birth. By the time she went to the White House her husband had served in the Senate and for eight years as secretary of state. She was so wily about the ways of Washington that she wrote her father-in-law that it was her ""location""?to get her personality-challenged spouse elected president. No neophyte she. Contrast that with Melania Trump, who will be thrust into this very public position with no political preparation beyond the recent campaign. Michelle Obama and her staff have offered to be helpful and Mrs. Trump would be wise to accept those offers. She just has to hope that her husband doesn""t tweet something that offends the people who want to give her a helping hand. Cokie Roberts is a political commentator for ABC News. Opinions expressed in this column do not necessarily reflect the views of ABC News.", -990,2017/2/13,http://www.cnn.com/2017/02/12/asia/north-korea-missile-test-china/index.html,"China, Russia condemn North Korea's missile launch",Hong Kong (CNN)China has voiced opposition to North Korea's test of a reported new ballistic missile more than 24 hours after reports of the launch emerged.,"But the country shrugged off suggestions it should be doing more to intervene in the rogue state's military affairs, pinning the test down to Pyongyang's testy relations with Washington and Seoul. North Korean state media hailed the Sunday test as a success, claiming a previously unpublicized part of the country's arsenal -- a Pukguksong-2, an intermediate-range missile -- was launched under the supervision of North Korean leader Kim Jong Un. North Korea is prohibited from carrying out ballistic missile launches under UN Security Council resolutions aimed in part at curbing the country's development of nuclear weapons. China's Foreign Ministry said that his country was opposed to launch activities in violation of the resolutions. ""Under current circumstances, relevant sides should not provoke each other or take actions that would escalate tensions on the Korean Peninsula,"" ministry spokesman Geng Shuang said at a regular press briefing Monday. ""As I have pointed out repeatedly in the past, the root cause to the North Korea nuclear missile issue is the conflicts between North Korea and the United States, as well as between North and South Korea."" North Korea's relationship with China -- its most important ally -- has kept Pyongyang afloat as sanctions have crippled and isolated it from the rest of the world. But in recent years, China has taken a tougher line on the North Korean nuclear program, voting in favor of UN sanctions and issuing condemnations when it conducts provocative military tests. Russia's Foreign Ministry also spoke out against the test, the first since US President Donald Trump's inauguration, saying in a statement that it was in ""defiant disregard"" of UN resolutions. Russia and China were both members of the Six Party Talks -- a diplomatic attempt to curb North Korea's nuclear program that started in 2003 -- along with the US, Japan, and North and South Korea. 'Clear provocation to Japan' The United Nations Security Council said it plans to hold consultations on an ""urgent basis"" Monday afternoon regarding North Korea, according to the US Mission to the UN. The meeting was requested by the US, South Korea and Japan -- whose Prime Minister Shinzo Abe was visiting President Trump in the US when the missile was fired and landed in the Sea of Japan, also known as the East Sea. Abe said that the test was ""absolutely intolerable,"" while President Trump said that the United States ""stands behind Japan, its great ally, 100%."" Japan's chief Cabinet secretary, Yoshihide Suga, said the fact the launch came as Abe met with Trump made it ""a clear provocation to Japan and the region."" Tokyo has already lodged protests against North Korea via its embassy in Beijing, he said. What can the Pukguksong-2 do? Sunday's test has stoked concerns that Pyongyang may be getting closer to a long-range intercontinental ballistic missile than previously thought. The Pukguksong-2 is nuclear-capable, state media claims, and can travel from 3,000 to 5,500 kilometers (1,864 to 3,417 miles). A US official said the missile tested traveled 500 kilometers (310 miles) before landing in the Sea of Japan and that it was launched from North Pyongan province. It is believed to have used a solid-fuel propelled engine which enables faster launch and increases the mobility of the launch process, according to a spokesman of the South Korean Joint Chiefs of Staff spokesman. The Joint Chiefs also believe that Pyongyang employed a cold-launching system, in which the missile is lifted off the ground using pressure and then ignited mid-flight, as opposed to igniting it on the ground -- which is said to be less stable, the spokesman said. Kim expressed satisfaction over ""the possession of another powerful nuclear attack means, which adds to the tremendous might of the country,"" state media reported.", -991,2017/2/13,http://www.cnn.com/2017/02/12/politics/justin-trudeau-donald-trump-us-canada-pm/index.html,Liberal superhero Justin Trudeau is not immune to the forces of Trump,"Ottawa, Ontario (CNN)You know him as the man who can break the Internet with a single photo. Canadian Prime Minister Justin Trudeau swept into office in 2015 with a promise of ""sunny ways"" and ""positive politics"" for a country feuding over religion, taxes and the military.","But a now series of scandals -- and a new neighbor in the White House -- have ushered in a good dose of gloom. ""He has enjoyed an historic and exceptional honeymoon,"" pollster Nik Nanos of Nanos Research said. ""Now, the shine is off."" With his popularity slipping and the challenges of Donald Trump's administration mounting -- the two leaders are due to meet Monday at the White House -- Trudeau might well be sensing a storm. Here's how he got to this point: From bouncer to Prime Minister His jobs have varied from nightclub bouncer to teacher. A married father of three, Trudeau is an avid athlete who runs, skis, surfs, boxes -- he's even mastered yoga. And from his shirtless encounters with strangers to an official visit with a blushing Catherine Duchess of Cambridge, Trudeau has charmed the world one selfie at a time. Elected to Parliament in 2008, he became Canada's prime minister in November 2015 with a liberal message of inclusion. At age 43, he assumed the office his father, Pierre Trudeau, held decades earlier. Not so 'sunny': Elbowgate, Castro and chopper rides The afterglow burned for months. Then came Elbowgate. It was a jaw-dropping counterpoint to Trudeau's carefully cultivated image of calm. And it was all caught on camera. In May 2016, while debating a contentious piece of legislation on assisted suicide, Trudeau ""manhandled"" a member of Parliament and elbowed another, apparently swearing as he went. He apologized, twice, and the negative attention was mostly limited to Canada. No such luck for Trudeau's next misstep. As the world reacted to the death of Fidel Castro, Trudeau said in a statement that the Cuban leader had been a ""larger than life leader who served his people."" He left out any mention of Castro's record on human rights and his history of oppression. The criticism poured in. #TrudeauEulogies started trending, with mock tributes to despots past and present. In the end, Trudeau agreed that Castro was a dictator. Even before that ruckus could die down, Trudeau found himself in the middle of yet another scandal. His office confirmed that the Prime Minister spent his winter holiday on the private island of the Aga Khan -- and used the billionaire religious leader's private helicopter to get there. An ethics investigation is underway. And no sooner had the new year begun than tragedy struck in Quebec City, where a local college student allegedly shot to death six men at a mosque. It was one of the worst attacks to target Muslims in a Western country. Make Trudeau great again Trudeau used the massacre to double down on his message of inclusion. ""Muslim-Canadians are an important part of our national fabric,"" he said. The attack came as Trudeau, aware of his waning popularity and aiming to shed the label of ""limousine liberal,"" embarked on a cross-country town hall road show. He got grilled, heckled and yelled at. But some commentators saw it as a successful act of contrition after several weeks of damaging missteps. ""That's why he did this incredible tour of the country that no one's ever seen before,"" said Craig Oliver, chief political commentator for CTV News. ""He's authentic,"" said Oliver, who has known Trudeau since childhood. ""He has real good instincts about people and about politics."" 'Sunny ways' still under threat As he works to dig out of his domestic rut, Trudeau faces new threats to his progressive politics. There's still a strain of nationalist populism that runs deep in Canada. Oh, and then there's Donald Trump. Former Vice President Joe Biden suggested weeks before he left office that Trudeau, along with German Chancellor Angela Merkel, would inherit the liberal mantle from former President Barack Obama. ""The world's going to spend a lot of time looking to you, Prime Minister, as we see more and more challenges to the liberal international order since the end of World War II,"" Biden said. But is Trudeau up to the task? The Prime Minister is an avowed feminist, free-trader and self-appointed cheerleader for diversity. And just a week before Trump was sworn in, Trudeau issued a thinly veiled swipe at his new American counterpart. ""There are things that we hold dear that the Americans haven't prioritized,"" he said at a town hall event. ""And I'm never going to shy away from standing up for what I believe in -- whether it's proclaiming loudly to the world that I am a feminist, whether it's understanding that immigration is a source of strength for us and Muslim-Canadians are an essential part of the success of our country today and into the future."" After the Trump administration announced its travel ban on seven Muslim-majority countries, Trudeau tweeted, ""To those fleeing persecution, terror & war, Canadians will welcome you, regardless of your faith. Diversity is our strength #WelcomeToCanada"" ""Almost everything that Trump represents, Trudeau resents,"" Oliver said. Face to face with Trump As Trudeau preps for his meeting with Trump, some say he should remember the words of his late father, who in the 1960s said that living next to the United States was like ""sleeping with an elephant"" -- every ""twitch and grunt"" affects you. ""Agitating the President of the United States is not a good strategy especially when the President is Donald Trump because he has such a thin skin,"" pollster Nanos said. Trudeau and Trump are sure to agree on some issues, including support of the Keystone XL Pipeline. But for Trudeau, nearly every facet of his country's economy could be affected by his relationship with Trump. ""There's just so much riding on it,"" Oliver said. ""You know, 75% of Canada's goods are sold in the United States. That border has to stay open for business."" For his part, Trudeau said as much last week during a public appearance ahead of his White House visit. ""We both got elected on commitments to strengthen the middle class and support those working hard to join it,"" the Prime Minister said. ""And that's exactly what we're gonna be focused on in these meetings -- making sure that the millions of good, middle-class jobs on both side of our borders that are dependent on the smooth flow of goods and services and people back and forth across our border are reinforcing the deep connections and friendship between Canada and the United States.""", -992,2017/2/13,http://www.cnn.com/2017/02/13/politics/donald-trump-justin-trudeau-white-house/index.html,Trump set to meet Canada's Trudeau at the White House,"(CNN)President Donald Trump will meet for the first time Monday with Canada's Prime Minister Justin Trudeau, an ideological opposite who nonetheless hopes to avoid clashing with his new US counterpart.","In his previous US visits, Trudeau found a leader almost exactly aligned with his liberal worldview and youthful image. In return, then-President Barack Obama met with Trudeau often, counseling his younger ally on how to best advocate for the progressive agenda he championed. Now, Trudeau is arriving to a very different White House. He will balance the need to maintain close ties with a mandate from anxious Canadians to press Trump on his more controversial views. The meeting is Trump's third official visit from a head of government at the White House. In his first three weeks in office, he's also welcomed the British and Japanese prime ministers, and will host Israeli leader Benjamin Netanyahu Wednesday. Trump's previous bilateral sessions were marked by comity and a focus on shared priorities. But in Trudeau, Trump will encounter a leader further apart from him in both age and global outlook than his previous two visitors. Aides both in Washington and Ottawa insist Trump and Trudeau will seek to emphasize neighborly bonds during their first face-to-face meeting, but their stylistic approaches will be on full view during a midday news conference. Disputes between the US and Canada rarely veer into anything resembling combativeness, though disagreements do exist, including on the import of softwood lumber and, under Obama, the construction of the Keystone XL pipeline, which Canada supports (Trump took action early in his term to restart the process of building the oil pipeline). Under Trump, however, the differences between the two countries could become more plain. Trudeau, a 45-year-old liberal, has made a point of actively welcoming refugees fleeing war in Syria, even visiting the Toronto airport in 2015 to greet a planeload of migrants. When Trump signed his controversial executive order barring Syrian refugees entry into the country, Trudeau wrote a pointed message on Twitter: ""To those fleeing persecution, terror & war, Canadians will welcome you, regardless of your faith. Diversity is our strength. #WelcomeToCanada."" The message was accompanied by a photo of the Prime Minister greeting a young girl during his 2015 visit to the airport. Even then, though, Trudeau refused to actively criticize the immigration order, which is currently mired in legal challenges and, for now, on hold. He said Friday he planned to discuss ""all sorts of things that we align on"" with Trump, but would also confront areas of disagreement ""in a respectful way,"" Refugee policy isn't the only divide between Trudeau and Trump. The leaders have expressed vastly differing views on climate change and economic policy as well. Trump has vowed to renegotiate the North American Free Trade Agreement between Mexico, the US, and Canada, though detailed talks about what's to be included in a new accord weren't likely to be hashed out Monday.", -993,2017/2/13,http://www.cnn.com/2017/02/13/entertainment/adele-beyonce-black-friends/index.html,Adele's 'black friends' Grammy comment stirs debate,"(CNN)Adele really, really wanted to share her admiration for Beyonc�� at the Grammy Awards and social media felt her on that.","After sweeping the night's top awards for song and record of the year for ""Hello"" and album of the year for ""25,"" Adele let it be known she thought Beyonc�� deserved the latter. ""My artist of my life is Beyonc��,"" she said. ""And this album for me, the 'Lemonade' album is just so monumental."" ""It was so monumental and so well thought out and so beautiful and soul-bearing, and we all got to see another side of you that you don't always let us see and we appreciate that,"" Adele said from the stage to Beyonc��, who sat in the audience. ""You are our light."" ""The way that you make me and my friends feel -- and the way that you make my black friends feel -- is empowering,"" Adele continued. ""You make them stand up for themselves and I love you, and I always have and I always will."" The quote about her ""black friends"" -- coming from a white artist -- had the potential to be inflammatory. Some on Twitter were less than comfortable with it. But more than a few shared the opinion that Adele's heart was in the right place. Some even praised her for acknowledging that Beyonc��'s visual album stood as a work of empowerment for women of color. Adele's comments left Beyonc�� in tears. She appeared to say ""I love you"" to Adele. Beyonc��'s ""Lemonade"" album has stirred controversy since it was released last year. Decoding Beyonce's 'Lemonade' The video for her ""Formation"" single featured imagery closely aligned with the #BlackLivesMatters movement. Police organizations around the country criticized her Super Bowl 50 halftime performance, which featured her dancers in costumes that invoked the Black Panthers. Why the Beyonc�� controversy is bigger than you think Beyonc�� has been open about her deliberate use of imagery to spark discussion about culture, race and empowerment. She reiterated that belief during her acceptance speech for best urban contemporary album for ""Lemonade."" ""It's important to me to show images to my children that reflect their beauty, so they can grow up in a world where they look in the mirror, first through their own families -- as well as the news, the Super Bowl, the Olympics, the White House and the Grammys -- and see themselves, and have no doubt that they're beautiful, intelligent and capable,"" she said. ""This is something I want for every child of every race. And I feel it's vital that we learn from the past and recognize our tendencies to repeat our mistakes.""", -994,2017/2/13,http://www.cnn.com/2017/02/12/entertainment/grammys-winners-list/index.html,Grammys: The winners list,(CNN)The 59th Annual Grammy Awards were held Sunday.,"Winner are indicated here with an asterisk (*) Album of the year ""25,"" Adele *WINNER ""Lemonade,"" Beyonc�� ""Purpose,"" Justin Bieber ""Views,"" Drake ""A Sailor's Guide To Earth,"" Sturgill Simpson Record of the year ""Hello,"" Adele *WINNER ""Formation,"" Beyonc�� ""7 Years,"" Lukas Graham ""Work,"" Rihanna Featuring Drake ""Stressed Out,"" Twenty One Pilots Song of the year ""Formation,"" Khalif Brown, Asheton Hogan, Beyonc�� Knowles and Michael L. Williams II, songwriters (Beyonc��) ""Hello,"" Adele Adkins and Greg Kurstin, songwriters (Adele) *WINNER ""I Took A Pill In Ibiza,"" Mike Posner, songwriter (Mike Posner) ""Love Yourself,"" Justin Bieber, Benjamin Levin and Ed Sheeran, songwriters (Justin Bieber) ""7 Years,"" Lukas Forchhammer, Stefan Forrest, Morten Pilegaard and Morten Ristorp, songwriters (Lukas Graham) Best new artist Kelsea Ballerini The Chainsmokers Chance The Rapper *WINNER Maren Morris Anderson .Paak Best urban contemporary album ""Lemonade,"" Beyonc�� *WINNER ""Ology,"" Gallant ""We Are King,"" King ""Malibu,"" Anderson .Paak ""Anti,"" Rihanna Best pop duo/group performance ""Closer,"" The Chainsmokers featuring Halsey ""7 Years,"" Lukas Graham ""Work,"" Rihanna featuring Drake ""Cheap Thrills,"" Sia featuring Sean Paul ""Stressed Out,"" Twenty One Pilots *WINNER Best rock song ""Blackstar,"" David Bowie, songwriter (David Bowie) *WINNER ""Burn the Witch, "" Radiohead, songwriters (Radiohead) ""Hardwired,"" James Hetfield and Lars Ulrich, songwriters (Metallica) ""Heathens,"" Tyler Joseph, songwriter (Twenty One Pilots) ""My Name Is Human,"" Rich Meyer, Ryan Meyer and Johnny Stevens, songwriters (Highly Suspect) Best rap album ""Coloring Book,"" Chance The Rapper *WINNER ""And the Anonymous Nobody,"" De La Soul ""Major Key,"" DJ Khaled ""Views,"" Drake ""Blank Face LP,"" ScHoolboy Q ""The Life of Pablo,"" Kanye West Best country solo performance ""Love Can Go To Hell,"" Brandy Clark ""Vice,"" Miranda Lambert ""My Church,"" Maren Morris *WINNER ""Church Bells,"" Carrie Underwood ""Blue Ain't Your Color,"" Keith Urban Go to Grammy.com for the full list.", -995,2017/2/13,http://www.cnn.com/2017/02/13/middleeast/palmyra-isis-new-destruction-planned/index.html,Russian intel: ISIS planning further destruction of Syria's ancient Palmyra site,(CNN)ISIS' vandalism of one of Syria's most important historic sites looks set to escalate as Russian intelligence suggests that the militant group plans to wreak more destruction on the ancient Roman ruins at Palmyra.,"The city has seen many of its irreplaceable antiquities, monuments and historic sites destroyed since the terror group first occupied it in May 2015. Russia's Defense Ministry released a statement Monday saying they have detected ""an upsurge in truck movement"" near the ancient site that indicates that ISIS is planning to cause even more damage to the ancient complex. ""We have detected an upsurge in truck movement near the ancient city amid Syrian troops' successful advance on Palmyra,"" the statement reads. ""This indicates that Daesh (ISIS) wants to bring in explosives to deal maximum damage to the remaining architectural relics before they leave."" ISIS' enemies line up to take Raqqa, but when -- and how? Footage shows wrecked sites Footage from a Russian Unmanned Aerial Vehicle (UAV) shows the uptick in movement from ISIS' trucks in the region, showing ""ISIS intentions to deliver explosives in order to cause maximum damage to the leaving architectural monuments before their retreat."" The same footage, the statement claims, also shows the destruction already wrought by the group, including the facade of the Roman theater and Tetrapylon column -- a square building erected in 270 AD -- along with the Triumphal Arch, Lion of Al-lāt, Temple of Baalshamin, Temple of Bel and other sites. Russian topographers and archeologists from the Institute of Material Culture History at the Russian Academy of Sciences worked with the Defense Ministry to conduct a photo survey of the site, obtaining high definition 3D metric models of the terrain and architectural objects, which show greater detail than current satellite photos, the statement said. ""All this allows to imagine comprehensively and complexly what the ancient city used to be like before the barbarian(s') destruction,"" the statement added. Is ISIS going broke? Almost two years of destruction ISIS fighters destroyed part of the historic Roman amphitheater in the ancient city in January after recapturing the historic city in December of last year. The amphitheater has also been used by the jihadist group for numerous executions. In August 2015 ISIS also beheaded Khaled al-As'ad, a university professor and the former general manager for antiquities and museums in Palmyra. He had refused to reveal location of valuable antiquities to the militants. The jihadist group first seized control of Palmyra, a UNESCO World Heritage Site, in May 2015. Syrian regime forces managed to briefly push the militants out of the city last year. But Palmyra fell to ISIS again in December when Syrian troops pulled out and over 4,000 militants returned. Analysis: Assad is winning a battle, but not the war for Syria", -996,2017/2/13,http://www.huffingtonpost.com/alan-singer/peoples-march-for-educati_b_14718484.html,People's March for Education Justice,,"Besty ""Amway"" DeVos clearly demonstrated at her confirmation hearings that she is unqualified to be Education Secretary. While her approval by Republicans in the United States Senate is a national embarrassment and an insult to public school families, the bigger issue is the Republican/Trump plan to privatize public education in the United States through outsourcing, vouchers, and tax credits and to eliminate opposition and make private schools the profitable by breaking teacher unions. While all public schools do not functional well, problems are rooted in poverty and discrimination in American society, not schools and teachers. Privatization is a threat to a fundamental American institution that promotes democracy and citizenship while contributing to social mobility. In response to Trump, Betsy, and the Republican Party's push to privatize public education, students, teachers, parents, and community members across New York State will march on Saturday March 4 for education justice. Multiple marches are being organized by the Alliance for Quality Education (AQE). AQE charges Donald Trump and DeVos with threatening to take billions of education from New York communities. They are also concerned because ""Governor Cuomo has a history of woefully inadequate education investments"" and they believe ""his current proposal is his worst ever and would take cuts to the next level."" The People's March for Education Justice program includes: ""?Full & Fair funding for all Public Schools from Pre-K - College ""?End the School to Prison Pipeline: Solutions, not Suspensions ""?Increase Access to Early Care and Learning Opportunities for Babies & Toddlers ""?End the state's over-reliance on high-stakes testing ""?Protect Public Education: End of School Privatization ""?Implement Culturally Responsive Curriculum ""?Increase Supports for Students in Poverty ""?Increase Supports for Immigrant Students & English Language Learners ""?Protect the Educational Rights of Students with Disabilities ""?Full & Fair funding for all Public Schools from Pre-K- College According to the March call ""The system of driving school funding based on zip codes and home values, perpetuates systemic racism through dramatic inequalities in educational opportunity. The racial inequality in school funding is exacerbated by the fact that New York State has the most segregated schools in the country. For over a decade we have yet to see a political will of urgency from New York State's elected leaders to reverse the racial and economic inequality for our children."" The issues are especially sharp in New York State where Governor Andrew Cuomo has essentially endorsed the Trump/DeVos educational agenda. According to the Network for Public Education, Cuomo branded public schools a ""monopoly that he wants to ""break"" and introduced a bill to provide backdoor school vouchers in the form of tax credits. An analysis of Cuomo's proposed state budget shows plans ""to expand charters in NYC"" by eliminating the current cap, give more taxpayer dollars to charter schools for rent, and force New York City schools to give more space in their own school buildings to charter schools."" Currently marches are planned for Buffalo, the Hudson Valley, Long Island, New York City, Rochester, and the Capital Region. Huffington blogger Arthur Camins offers a thoughtful discussion of political strategy for education activists in his latest post. Follow Alan Singer on Twitter: https://twitter.com/ReecesPieces8", -997,2017/2/13,http://www.huffingtonpost.com/2017/02/13/adele-breaks-her-grammy-in-half_n_14718044.html,Adele Breaks Her Grammy Award In Half,Well that looks easier to do than it probably should be.,"Adele concluded an emotional Grammy acceptance speech after winning Album of the Year by breaking her award in half.- The star won five Grammys on Sunday night, taking home awards for Record of the Year and Song of the Year for ""Hello,""?and Album of the Year for ""?5.""he singer used her acceptance speech for the final award of the night to say that Beyonc��, who was nominated in the same category for her album ""Lemonade,""?should have won instead.- ""the reason I felt the need to say something was my album of the year is ""Lemonade.""?She is my icon of my whole life,""?Adele told the press-after the show. She later added, ""What the fuck does [Beyonc��] have to do to win Album of the Year?""?Beyonc�� was nominated for nine awards but only won two ""?Best Urban Contemporary Album and Best Music Video for her album ""Lemonade.""Folks on Twitter immediately thought Adele intentionally broke the award to share it with Beyonc��, a move users likened to Cady Heron breaking a plastic tiara into pieces when she was crowned Spring Fling Queen in ""Tean Girls.""?adele pulled a cady heron pic.twitter.com/d4OO7sHtg3 Adele broke her Grammy to share with Beyonc�� because she is an angel and she gets it. #GRAMMYs pic.twitter.com/DwdFvXYvlh Others said the singer broke her Grammy by accident. Requests made to Adele's reps for confirmation were not immediately returned. Either way, Adele didn""t seem to care too much.", -998,2017/2/13,http://www.huffingtonpost.com/2017/02/13/john-oliver-trump-facts-commercials_n_14718040.html,John Oliver Has A Genius Plan To Force Trump To Learn Some Actual Facts,Brilliant!,"John Oliver is back, and he's launched his most challenging investigation yet.- On Sunday's ""Last Week Tonight""?on HBO, the comic looked into reality itself, which is under assault by President Donald Trump and a White House that accepts ""Alternative facts.""So what can you do when the president himself doesn""t seem to care what the facts are?- Try to teach him anyway... secretly.- Oliver is going to start running ads on some of Trump's favorite TV shows that look a lot like some of the commercials already airing ""?but with a slight difference. Check it out above.-", -999,2017/2/13,http://www.huffingtonpost.com/bruce-kushnick/-americas-wireless-unlimi_b_14717798.html,America's Wireless Unlimited Plans Are Not Unlimited & Not Cheap.,,"America's communications customers are being conned on so many levels it is hard to know where to start. According to Digital Fuel Monitor, other countries have figured out how to deliver unlimited wireless services for just 16-30 EUR. (One Euro is now $1.07 US dollars.) And even funnier, Verizon now claims it is going to offer a new unlimited wireless plan. This is after Verizon has been dumping customers who supposedly went over a magic 200GB limit. Droid Life's headline says it all: ""Verizon Unlimited Users Averaging 200GB or More Per Month Getting the Boot"" But, according to the fine print in Verizon's new offer, if a customer reaches just 22GB, the customer may be slowed down where other, more important priorities take over. CNBC reports: ""The plan...Verizon called a 'great value,' will cost $80 for unlimited data, calls and texting; or $45 per line for four separate lines carrying the same features. There was a catch, however: Verizon added that after 22 GB of data usage on any one line, the company might 'prioritize usage behind other customers in the event of network congestion'."" And I need to laugh for a couple of reasons. This is a T-Mobile ad about their unlimited plan. It shows AT&T's plan vs T-Mobile and notice all of the other AT&T charges; some, like the ""Regulatory Charge"" or the ""admin fee"", are made up. So, while the advertisement may give a price, it will have nothing to do with what the customer actually pays. We assume Verizon will play the exact same game. Ah, but that's not what is so funny. The fine print at the bottom of this T-Mobile ad, (that is too small to read), says that during congestion, the top 3% of users - those who go over 28GB/month - may experience reduced speeds. Also, the video 'streams' are at 480p - about ½ of HD, (though it appears you can adjust that so it can eat up your 'unlimited' plan faster.) Verizon can't even be original and has the same 'kill' plan - but at 22GB. How is this 'unlimited'? But just how bad are America's LTE services? We keep hearing about 5G and 1Gbps wireless speeds and...pure con, plain and simple. OpenSignal tracks the speed and other criteria of wireless services around the world. Their recent report states: ""The U.S. Ranks 68th in LTE Speeds Out of 78 Countries Examined."" We're being played. America does not have the best 4G in the world. We certainly aren't the cheapest, even with these new plans. And our carriers can't seem to ever tell us the whole truth. 'Alt facts' in telecom have been the norm for decades. And these unlimited plans that crap out at 22-28GB? But, of course the new FCC is going to investigate this - right away. And you thought this article wasn't funny?", -1000,2017/2/13,http://www.huffingtonpost.com/2017/02/13/disney-ticket-price-increase-2017_n_14717392.html,Disney Parks Just Got More Expensive As Ticket Prices Rise Again,A single day in a Disney park can cost as much as $124.,"A Disney vacation just got a little more expensive.- The company announced over the weekend that prices at its theme parks in Florida and Anaheim will increase, along with the costs of some annual passes. Under the company's tiered admission system introduced last year, prices vary based on the day.- At the Magic Kingdom-in Walt Disney World, a single-day ticket will cost-$107 for adults or $101 for children on the cheapest ""value""?days, an increase of $2, according to Fox 5 in Orlando.- A ""regular""?ticket will jump $5, to $115 for adults and $109 for children.- ""Peak"" days will remain unchanged at $124 for adults and $118 for kids.- The other three theme parks in Florida have slightly lower prices at $99/$107/$119 for adults and $93/$101/$113 for kids, increases of between $2 and $5. In Anaheim, prices for a single day at Disneyland-or its sister park, Disney California Adventure,-will cost $97/$110/$124 for adults and $91/$104/$118 for children, increases of between $2 and $5. MousePlanet has a breakdown on many of the Disneyland ticket options and how much they're increased. The Orange County Register also lists all-price increases since 2000, when a Disneyland ticket cost just $41, or $57.14 in 2016 dollars according to the CPI inflation calculator. Discounts are available for multiple-day admissions, but the company will now offer a $20 discount on such tickets purchased online or by phone in advance, the Orlando Sentinel said.-- The prices of some annual passes at both resorts will also increase along with most parking fees.- Disney's earnings report last week showed lower net income and revenues, falling short of analysts""?expectations, Deadline reported. Year-over-year attendance in theme parks for the last quarter fell by 5 percent, the Orlando Sentinel said, in part because Hurricane Matthew closed the Florida parks for a day and a half in October. However, despite the lower attendance, revenue and income in the theme parks division-increased, according to Forbes.- Motley Fool analyst Rick Munarriz noted in his column that price increases in the parks may have helped to lower guest counts at the company's famously crowded parks, with lower attendance in three of the past four quarters, while increasing revenue and profit.- ""Disney will come out of this just fine,""?he predicted. ""Disney is making more with less, and as long as revenue and operating income keep inching higher, don""t expect the media giant to ease back on the annual increases.""?The jump in prices comes just days after the company announced that ""Pandora: The World Of Avatar,""?the land at Disney's Animal Kingdom in Florida,-will open on May 27. Lands themed to ""Star Wars""?will open at Disneyland in Anaheim and Disney's Hollywood Studios in Florida in 2019, the company said.-", -1001,2017/2/13,http://www.huffingtonpost.com/2017/02/13/sikh-temples-open-their-doors-to-oroville-dam-evacuees_n_14717374.html,Sikh Temples Open Their Doors To Oroville Dam Evacuees,"""We'r well prepared.""","More than 180,000 people in Northern California were ordered to evacuate-late on Sunday due to erosion of the emergency spillway in the nation's tallest dam. Several Sikh temples in the area opened their doors to people in need of places to spend the night. Earlier in the evening, California's Department of Water Resources said the Oroville Dam's emergency spillway, which prevents water from rushing over the top of the dam when levels are high, was in danger of failing and sending an ""uncontrolled release of flood waters from Lake Oroville.""?.@CA_DWR update on #OrovilleSpillway pic.twitter.com/xzGp6xxyR6 Thousands of residents from counties including Yuba, Butte and Sutter were told to leave their homes immediately. Sacramento Mayor Darrell Steinberg tweeted that individuals evacuating the Yuba county area could seek shelter in at least seven local Sikh houses of worship in the area. Sacramento is about an hour and a half south of Oroville Dam. Sikh Temples in Sacramento region are open for people evacuated around #OrovilleDam. Am told they have food ready & all in need are welcome. pic.twitter.com/Vz2jYEte2w ""We'r well prepared,""?Dr. Gurtej S. Cheema of Sacramento's Capital Sikh Center told the Huffington Post. The gurudwara is one of the closest for residents leaving Yuba City. ""We have meals, shelter. We can accommodate at least 50 people here.""?Cheema said that after evacuation orders were announced, members of the gurudwara delivered enough bedding for 50 people to spend the night at the temple. They also prepared hot tea and meals for evacuees to eat once they arrive. ""We have three families over here right now, and we'r expecting at least 10 more [to spend the night],""?Cheema added. Overall, he said the temple had received 30 calls from individuals saying they were on their way, fighting gridlocked traffic in the area.-- ""We'r glad we can help and are available,""?he added. Yuba City's first Sikh temple was built in 1969, though the community's roots in the area date back decades before.-In November, Yuba City was home to the biggest Sikh event outside India, the Sacramento Bee reported.-Tens of thousands of individuals gathered at the 37th annual Sikh Parade Festival to honor the teachings of Sikhism's founder and celebrate the Sikh pioneers who came to Yuba City 110 years ago from Punjab.", -1002,2017/2/13,http://www.huffingtonpost.com/the-conversation-africa/brics-wants-to-set-up-an_b_14717070.html,BRICS wants to set up an alternative rating agency. Why it may not work,,"Misheck Mutize, University of Cape Town and Sean Gossel, University of Cape Town The idea of establishing an alternative credit rating agency led by the BRICS bloc of countries is gaining momentum. But there are questions as to whether it will prosper given the major challenges it's bound to face. Leaders from the bloc made of Brazil, Russia, India, China and South Africa are championing the idea. The idea formerly emerged during the 2015 BRICS summit in Ufa and was affirmed by the Goa Declaration at the 8th BRICS Summit. Most recently South Africa's President Jacob Zuma said BRICS countries had taken the decision that they could rate themselves, and perhaps others too. The aim would be to ensure a more ""balanced view"" when ratings are made. Both Brazil and Russia have recently been downgraded by Moody's. And for over a year South Africa has lived with a possible downgrade by the ""big three"" Western credit rating agencies, Standard & Poor's, Moody's and Fitch. The big three have faced increasing criticism. Critics claim that the frequent downgrades of developing countries are unjust and serve Western political interests. BRICS has started engaging financial experts on a business model for the new rating agency as well as what methodology it would adopt. This isn't the first time there's been an attempt to challenge the big three. China, Russia, India and Brazil have all established their own credit rating agencies. But none has ever come close to establishing itself as an alternative. Will the BRICS initiative be the exception? Critics of the big three were emboldened after the 2008 financial crisis. The rating agencies were forced to pay over $2.2 billion in fines relating to their complicity in the credit crisis. This further damaged their credibility and heightened accusations, particularly in emerging countries. Critics have also attacked the rating agencies' issuer pay model. Under this system credit rating agencies are paid by the institutions being rated (debt issuers) and not by the investors who use the information, creating a conflict of interest. Critics also argue that this entrenches geopolitical biases. The hope is that a new agency would compensate for the perceived bias in the global financial architecture. It would also create competition and offer investors, issuers and other stakeholders a wider choice and a more diverse view on creditworthiness. Given that BRICS is home to half the world's population, accounts for more than a quarter of the world's economic output and has recently set up a nascent New Development Bank, the countries under its banner have, between them, the capacity to establish an influential credit rating institution. But questions have been raised about whether the new rating agency satisfies a financial need or is politically motivated. And if it will be competent to provide an independent, objective and credible credit rating service based on sound methodology. China has already expressed concerns about the credibility of a new agency. Analysts have also strongly criticised the probable adoption of the existing ""issuer-pay"" model. This would mean that the current model is simply replicated. Considering that the three major rating agencies control more than 90% of the world's ratings business, establishing a new one wouldn't be easy. It could take years, or even decades, to gel. There have been previous attempts to launch new ratings agencies. All failed to take off. Examples include the Lisbon headquartered ARC Ratings which was launched in November 2013 as a consortium of five national ratings agencies from South Africa, Malaysia, India, Brazil and Portugal. It is yet to release its first sovereign rating. The CARE Rating agency of India, started in April 1993, is still rating small to medium enterprises. The Global Credit Ratings (GCR) was established in South Africa in 1995. It is only planning to start offering sovereign credit ratings from 2017. Others that have been launched include: MARC of Malaysia which has been operational since 1996, but still only covers corporate ratings; The Hong Kong based Universal Credit Rating Group which was launched in 2014l Russia's Analytical Credit Rating Agency (ACRA) which was established in 2015; the Beijing based China Chengxin Credit Rating Group, established in 1992; and Dagong Global Credit Rating established in 1994. None has established itself as an alternative credit rating agency of choice for emerging countries. The biggest task for a new BRICS credit rating agency will be to convince investors, particularly those from the US and Europe, that the ratings assigned are politically impartial. One way of doing this would be to adopt the ""investor-pays"" model where investors subscribe to ratings released by the agencies, and the subscription revenues become its source of income. This would ensure transparency and credibility while avoiding conflicts of interests. But adopting a new model might not fly given that main users of the credit rating information are global pension and mutual funds which currently use at least one of the ""big three"" rating agencies. They are therefore unlikely to trust any ratings from the new BRICS rating agency with a yet to be tested rating model. Adopting a new model would also be tricky as the BRICS rating agency would need to wield enough influence to be able to attract sufficient subscriptions from international funds. Finally, investors will be sceptical about the new BRICS rating agency's ability to compensate for losses in the event that it issues false ratings as the ""big three"" did in the US. The BRICS agency is likely to be another failed rating agency project unless it can overcome these three hurdles. Misheck Mutize, Lecturer of Finance and Doctor of Philosophy Candidate, specializing in Finance, University of Cape Town and Sean Gossel, Senior Lecturer, UCT Graduate School of Business, University of Cape Town This article was originally published on The Conversation. Read the original article.", -1003,2017/2/13,http://www.huffingtonpost.com/2017/02/12/devos-disabilities-web-site_n_14716844.html,Education Department Drops Web Site On Disabilities Act That Riled DeVos,New Education chief couldn't get behind federal civil rights law at confirmation hearings.,"A Department of Education web site explaining the rights of students under the federal Individuals with Disabilities Education Act has vanished. That's the same law that confounded new Education Secretary Betsy De Vos during her confirmation hearings. DeVos dodged questioning about the law last month, insisting it was up to individual states on whether to grant disabled students their educational rights, even though it's a federal law that applies across the nation. New U.S. Attorney General Jeff Sessions has also blasted the Disabilities Act for its ""special treatment of certain children,""?blaming it for the-""Acceleration in the decline of civility and discipline in classrooms across America.""?A link to the the web site ceased working shortly before DeVos took office, the Seattle Post Intelligencer reported.- The Department of Education site now attributes the broken link-to ""gechnical difficulties""?and sends-people instead to the 159-page text of the very technical, complicated statute. The department site also lists available special education programs. The Disabilities Act information site that has now vanished was established under George W. Bush's administration as an aide for parents, students, teachers and school administrations to help them understand the rights of disabled students to an appropriate free public education under the law. The site was updated as modifications were passed and courts continued to interpret the law. Washington Democratic Senators Maria Cantwell and Patty Murray, who both voted against DeVos""?confirmation, issued a statement Friday demanding to know why the information had been scrubbed. ""the Department's failure to keep this critical resource operational makes it harder for parents, educators, and administrators to find the resources they need to implement this federal law and protect the rights of children with disabilities,""hey said. The Washington senators demanded -a ""detailed timeline""?of when the information was taken down, and when it will be restored. They also criticized Donald Trump for not being an ""Advocate for disability rights [who]-famously mocked the physical disability of a New York Times reporter who asked him a question at a news conference""?during his presidential campaign. During her confirmation hearings last month Sen. Tim Kaine (D.-Va.) quizzed DeVos on the law. DeVos responded that it was a ""matter best left to the states.""?Kaine then asked: "" some states might be good to kids with disabilities and other states might not be so good and, what then, people can just move around the country if they don""t like how kids are being treated?""?DeVos again repeated that it's an issue ""best left to the states,""?apparently unaware of how federal law works. Sen. Maggie Hassan (D-N.H.), who has a son with special needs,-clarified that the act is a federal civil rights law, adding: "" do you stand by your statement a few minutes ago that it should be up to the state whether to follow it?""?DeVos responded: ""I may have confused it.""Jeff Sessions spoke out against the law in 2000 from the Senate floor when he was representing Alabama. ""We have created a complex system of federal regulations and laws that have created lawsuit after lawsuit, special treatment for certain children, and that are a big factor in accelerating the decline in civility and discipline in classrooms all over America. I say that very sincerely,""?Sessions said. Multi-billionaire Republican mega-donor DeVos was confirmed last Tuesday by a vote of 51-50. Her highly controversial confirmation required Vice President Mike Pence to vote to break a tie in the divided Senate. She has no experience in education and supports school vouchers and charter schools. She was blocked by protesters last week during her first visit to public school in Washington D.C. There has been no response to the web site changes from DeVos.", -1004,2017/2/13,http://www.huffingtonpost.com/the-conversation-africa/armyworms-are-wreaking-ha_b_14716838.html,Armyworms are wreaking havoc in southern Africa. Why it's a big deal,,"Kenneth Wilson, Lancaster University A combination of native African armyworms and Fall armyworms from the Americas are ravaging staple crops across southern Africa. If uncontrolled, they have the potential to cause major food shortages. The Conversation Africa's energy and environment editor Ozayr Patel asked Kenneth Wilson to explain the threat and what can be done about it. What are armyworms, where do they come from and how do they travel? Armyworms are the caterpillar stage of moths belonging mainly to the genus Spodoptera. They are called armyworms because when they have ravaged a crop they march along the ground like a vast army of worms in search of more food. There are at least eight countries in southern Africa that have been hit by outbreaks of armyworms. This sequence of outbreaks began in mid-December 2016 in Zambia and has spread rapidly ever since. It is now as far south as South Africa. Because armyworms feed on many of the staple food crops they have the potential to create food shortages in the region. The recent outbreaks in southern Africa appear to be a combination of the native African armyworm (Spodoptera exempta) and a new invasive species called the Fall armyworm (Spodoptera frugiperda). This new species is endemic to tropical and subtropical regions of Central and South America, where it causes considerable damage to maize and other crops. The Fall armyworm was first formally identified as being on the continent as recently as January 2016 in West Africa, including Nigeria and its neighbours. It is unclear how it reached Africa from the Americas but it's likely it arrived on imported plants. It's also possible that it migrated across the Atlantic on favourable winds over multiple generations. It is not yet known whether the recent outbreaks in southern Africa are derived from the earlier West African ones. But Fall armyworms are known to be strong migrants in the Americas. Every year Fall armyworms fly from Mexico and the southern states of the US to Canada. What makes them so devastating? Both African and Fall armyworms do most damage to the staple cereal crops such as maize, wheat, sorghum, millet and rice. They also eat pasture grasses which has an impact on livestock production. The African armyworm - they can be 3cm long - can reach densities as intense as 1000 caterpillars per square metre, quickly razing crops to the ground. On maize, the number of caterpillars per plant is, of course, much lower but it can cause just as much of an impact. The insects strip the leaves of even mature maize plants bare. Unlike their African cousins, the Fall armyworm also feeds on a range of non-cereal crops. Nearly 100 different host plant species have been recorded. These include cotton, soybeans, groundnut, peanut, potato, sweet potato, spinach, tomato, sweet peppers, cabbage and tobacco. Damage to maize is likely to have the biggest impact on farmers in southern Africa because it's the main staple food crop in the region. The impact of the Fall armyworm is likely to be devastating because it eats the leaves of the plant as well as its reproductive parts. This damages or destroys the maize cob itself. Where have the most devastating attacks occurred? What was the result? In 2012-2013 the African armyworm cut Zambia's maize production by 11%. The latest outbreaks could lead to losses of up to 40% as an estimated 124,000 hectares of maize has been attacked. In neighbouring Zimbabwe, seven out of eight maize-producing provinces have had armyworm outbreaks, and in Malawi at least 9,000 hectares have been attacked. Figures are not yet available for the other five southern African countries currently affected. What are the potential economic consequences if the problem is not arrested? It is too early to say what the impact will be on food production in the region. Chemical pesticides have been mobilised in most countries, though their efficacy has been questioned. In Brazil, where armyworms can breed all year round, controlling them costs an estimated US$600 million a year. The cost of control in southern Africa hasn't been determined yet. But it's likely to be substantial given that many litres of imported chemicals have already been bought by countries desperate to protect their crops. This means that even if control proves to be effective it will have been costly. The economic consequences could be severe if the Fall armyworm persists and spreads throughout the sub-Saharan Africa region. What is the best way to stop them damaging crops? Chemical pesticides can be effective against both armyworm species. But resistance to many chemicals is an issue for the Fall armyworm throughout its native range. It's not known whether there is pesticide resistance in the Fall armyworms blighting southern Africa. The variable efficacy may be due to genetic resistance, or it might be as a result of the way in which the spray is applied. The Fall armyworms are often inaccessible to insecticides because of their tendency to hide in the whorls and reproductive parts of the host plant. Research is needed to work out which chemical is the best to control the strain of Fall armyworm in southern Africa. But there are alternative approaches. In parts of their native range in the Americas, genetically-modified Bt maize is grown to combat the Fall armyworm. This may also be an option for South Africa and some other countries where GM crops are already grown. But many parts of Africa do not allow or welcome GM varieties. And Fall armyworm has also evolved resistance to some Bt toxins, with some evidence for cross resistance. There are non-chemical, biological pesticides that could also be effective. These are pesticides derived from natural diseases of insects, such as viruses, fungi and bacteria. I have been involved in the development of a highly effective biopesticide against African armyworm in Tanzania. But this still needs to go through the commercialisation and registration process, which is both costly and time consuming. A similar biopesticide has also been developed against the Fall armyworm, but again this is not yet registered for use in Africa. Biopesticides tend to be effective against a much narrower range of species than chemicals, which is good for the environment. But it means that they can only be used for a limited number of pests, often making them more expensive than chemicals. There are also some other indigenous approaches that could be effective. This includes the use of local plant extracts like Tephrosia vogelli and neem, to produce botanical pesticides, and the addition of sand to maize whorls where armyworms are feeding. Only time will tell what the full impact of this armyworm invasion will have. Kenneth Wilson, Professor at the Lancaster Environment Centre, Lancaster University This article was originally published on The Conversation. Read the original article.", -1005,2017/2/13,http://www.huffingtonpost.com/2017/02/13/amazon-holocaust-denial_n_14716828.html,Amazon Getting Heat Over Holocaust Denial Books,Company yanks books from countries where they're illegal following investigation.,"Amazon is coming under fire in Europe for peddling books that claim the Holocaust never happened amid a resurgence of anti-Semitism and other hate speech.- Holocaust denial is a crime in France, Italy and Germany with penalties that can include prison. Amazon removed several books from its websites in those countries following an investigation by the London Sunday Times that found that dozens of books denying the Holocaust were up for sale. Most of the books are self-published. Books included ""the Myth of the Extermination of Jews""?and ""holocaust: The Greatest Lie Ever Told.""?Most of the titles are still available on Amazon's sites in the U.K. and America, where Holocaust denial is not a crime. A spokesman for the Holocaust Educational Trust-attacked the books as anti-Semitic, and called Amazon's sales of the books ""shocking.""?""the Holocaust was one of the most well-documented and researched periods in history, yet over 70 years later, there are still those who deliberately deny, denigrate and belittle the memory of the Holocaust,""?spokeswoman Karen Pollack told the London Times. ""holocaust denial is highly offensive and the intent is anti-Semitism, pure and simple.""?Gideon Falter of the Campaign Against Anti-Semitism in Britain complained to the Independent that Amazon standards ""prohibit the sale of ""Affensive material""?but these titles are -sold by Amazon.""?He added: ""Anybody searching Amazon for books about the Holocaust, including children working on school projects, will inevitably be shown Amazon's squalid cesspool of neo-Nazi titles.""?Holocaust deniers are enjoying a new popularity amid the rise of the extreme right. The bizarre and ugly phenonmenon is currently being explored in the film ""denial.""he movie stars Rachel Weisz as the real-life Jewish author Deborah Lipstadt, who was sued for libel by Holocaust denier David Irving. She was forced to prove in court that the Holocaust happened. Irving lost the case.- The new pressure on Amazon comes amid increasing demands that social network companies like Facebook and Twitter crack down on increasing hate speech online. Amazon has not made any comment about the controversy or why the company removed the books from certain European web sites.", -1006,2017/2/13,http://www.huffingtonpost.com/david-macaray/is-this-the-most-dangerou_b_14716710.html,Is This the Most Dangerous Place on Earth?,,"Many observers--including such disparate voices as Zbigniew Brzezinski, Noam Chomsky, Hillary Clinton, Thomas Friedman, and Pope Francis--have alluded to the North Indian province of Kashmir (and the surrounding area) as ""the most dangerous place on earth."" As extravagant and melodramatic as that statement may seem, the case can be made for it. I once lived in Punjab, India, and traveled to parts of Kashmir. Even then, relations between India and Pakistan were unbelievably poisonous. Indeed, that entire northwest region is still so dangerously unstable, it's a miracle nothing catastrophic has happened. Here are some key factors to consider. * Ever since India (which is predominately Hindu) and Pakistan (which is overwhelmingly Muslim) became independent countries--via Partition, in 1947--they have been avowed enemies. That's 70 years of simmering acrimony. * Directly bordering each other--just as the U.S. borders Canada and Mexico--India and Pakistan have already fought four ""official"" wars and engaged in numerous military skirmishes. * With more than 1,340,000 troops, India's army is now the third largest in the world, bigger than North Korea's or Russia's, and right behind China and the U.S. * Pakistan's army is barely half the size of India's. * Both countries have nuclear weapons. * India, with a population of 1.3 billion, is the world's largest democracy. * Pakistan, with a population of 202 million, is part quasi-military dictatorship, part theocracy. * Both countries believe in an Afterlife. * Pakistan, understandably, has always seemed slightly paranoid and frazzled. * India is buoyantly self-confident and ready to assert itself. * Pakistan fears that the U.S. will install a pro-West, pro-Indian government in Afghanistan, resulting in Pakistan being squeezed between two enemy states. * India has a sizeable arsenal of strategic nuclear weapons. * Pakistan has a modest supply of strategic warheads, but a large supply of tactical nuclear weapons. And therein lies the rub: Tactical nuclear weapons. Pakistan's access to tactical nukes is what makes everyone so nervous. Whereas strategic nuclear weapons are the ones we've all learned to fear--the ones that would have been part of the worldwide, ""duck and cover"" thermonuclear war between the U.S. and USSR--tactical nukes are weapons designed specifically to be used on the field of the battle. They're nuclear, but they're limited. Why has Pakistan put so much effort into amassing an arsenal of tactical nuclear weapons? Answer: They see tactical nukes as the only viable deterrent to India invading and overrunning them in a conventional war. The Indian army is simply too big and well-equipped. It would be a rout. This is the dreaded scenario: Fed up with Pakistan's persistent meddling and incursions into Kashmir, and ignoring the pleas of the U.S. and the rest of the world, India unleashes its long awaited invasion. The mighty Indian army crosses the border in Punjab and proceeds to wipe the floor with outmanned and outgunned Pakistani soldiers. To the horror of everyone, we find out that those rumors were true, that Pakistani field officers with the rank of full colonel or general have been given the authority to use tactical nukes at their own discretion--to use them in the face of ""overwhelming and superior forces."" And use them they do. Of course, once India realizes it's under attack from nuclear weapons, they respond in kind. They instantly retaliate with nukes of their own, but instead of the ""benign"" battlefield variety, they bring out the big boys. They launch a full-scale strategic nuclear attack against Pakistan's major cities and military installations. Left with no choice, Pakistan strikes India with every nuclear warhead in its arsenal, convinced that, win, lose or draw, once the smoke clears, multitudes of faithful Muslims will be reunited with Allah. That's the omega scenario, the blueprint for the end of the world. Very scary. As a consequence of this conflagration (a cumulative blast one million times more powerful than that of Hiroshima), the atmosphere becomes toxic, the earth experiences Nuclear Winter, and life as we know it perishes. And that's how the world ends. With nuclear Hindus and nuclear Muslims destroying each other and taking the rest of us with them. That antiquated notion of Armageddon coming in the form of World War III, with Capitalism vs. Communism, seems almost ""reasonable"" by comparison.", -1007,2017/2/13,http://www.huffingtonpost.com/SPOTTOON/spottoon-necromancer-ep5_b_14716122.html,NECROMANCER - Ep.5,,Updated every Monday Copyright @2015 RollingStory Inc., -1008,2017/2/13,http://www.huffingtonpost.com/2017/02/12/tea-party-sanders_n_14715544.html,Sanders: Tea Party Was Funded By Kochs, Progressive 'Uprising' Driven By Passion,"They're rising up angry over potential loss of Obamacare, he warns.","Sen. Bernie Sanders (I-Vt.) bridled at a suggestion that people protesting against the Trump administration are similar to the Tea Party demonstrators. ""It's not a Tea Party because the Tea Party was essentially funded by the billionaire Koch brothers,""?Sanders said during an interview Sunday on ""Teet the Press.""?""This is a spontaneous and grass-roots uprising of the American people.""?And he said protesters aren""t going away anytime soon. Sanders said demonstrations would continue to grow, particularly over the issues of the threatened repeal of the Afforadable Care Act in national rallies Feb. 25. ""I think you'r going to see people in conservative areas, in progressive areas, asking the Republicans: ""�What are you going to do when you throw 23 million people off of health insurance?""?Sanders said. ""�’How many of them are going to die? Are you really going to repeal the protection against preexisting conditions so that people who have cancer or heart disease will no longer be able to have health insurance? You going to throw kids off of their parents""?health insurance programs?""?Some observers have noted that recent protests have seemed to mimic the Tea Party demonstrations beginning in 2009, though the numbers now are massively larger. But others say the Tea Party tactics to turn street protests into political power borrowed from the left and its far earlier protests against the Vietnam War. In his ""Teet the Press""?appearance, Sanders also blasted Donald Trump's vow to ""drain the swamp""?of corrupt old cronies in Washington. ""Well, guess who's running the swamp right now?""?he asked. ""the same exact Wall Street guys from Goldman Sachs who were there in the past. ""?,-1""" -1009,2017/2/13,http://www.huffingtonpost.com/2017/02/12/donald-trump-west-palm-beach-protest_n_14715504.html,Donald Trump Seems To Think Dakota Pipeline Protesters Are 'Enthusiastic Supporters',Presidential motorcade route in West Palm Beach was lined with demonstrators.,"President Donald Trump-complained on Sunday that the media failed to mention the ""big crowds""?of supporters who lined his motorcade route in West Palm Beach as he returned to Washington.- He tweeted:- Just leaving Florida. Big crowds of enthusiastic supporters lining the road that the FAKE NEWS media refuses to mention. Very dishonest! However,-local reporters at the scene said many of the ""enthusiastic supporters""?were actually protesting the Dakota Access Pipeline-and other issues. President Trump signed an executive order last month expediting the controversial pipeline. ""rry Mr. President, but not true!""?wrote Jimmie Johnson Jr, a reporter from local ABC station WPBF.- A news report from local Fox station WSNV described a scene in one location as having ""dozens""?of protesters and a ""Landful""?of supporters.- Presidential Motorcade passes Anti-Trump protestors who lined the street in West Palm Beach for hours waiting on the President to pass @wsvn pic.twitter.com/gBkQWbzhlx Palm Beach Post reporters also tweeted images from the scene:- .@realDonaldTrump motorcade passes hundreds of protesters -- and a few supporters -- in West Palm Beach. pic.twitter.com/TQ40PyT9Vq One protester carried an upside-down flag, while someone behind him carried a picture of a flag with the legend ""PRO-AMERICAN, ANTI-TRUMP""?and ""donald Show Us Your Taxes:""90 minutes before @realDonaldTrump leaves Palm Beach protestors line road to airport #DAPL pic.twitter.com/r9CYYEgzoL There were, however, also some supporters nearby. Pipeline protesters even took a photo of them and shared it on a Facebook page set up for the event. ""We are the majority!-#RESIST,""?wrote one protester.- An Agence-France Presse photographer also located a group of supporters along the route: The Palm Beach Post reports that the crowds for the motorcade protest were much smaller than the estimated 3,000 anti-Trump demonstrators who turned out for a march in the city last weekend.-", -1010,2017/2/13,http://www.bbc.co.uk/news/uk-38931580,Undercover Panorama report reveals prison chaos,Chaos in one of the biggest prisons in the country has been revealed in secret filming for the BBC.,"Chaos in one of the biggest prisons in the country has been revealed in secret filming for the BBC. An undercover reporter spent two months at HMP Northumberland, which houses up to 1,348 male inmates, for Panorama. He discovered widespread drug use, a lack of control, door alarms that did not go off in one block and a hole in an internal security fence. The Ministry of Justice said it would investigate the ""extremely serious allegations"" at the Acklington jail. Prison officers also found balaclavas, blackout clothing and wire-cutting tools at the category C jail. It is believed inmates had been sneaking out to collect drugs or other contraband thrown over the perimeter fence. These discoveries were made in a block where inmates preparing to transfer to open prisons were not locked in their cells at night. In one of the most disturbing episodes of the undercover investigation, footage shows a prison officer having convulsions on the floor after accidentally inhaling spice, a cheap and stronger synthetic alternative to cannabis, which is rife in the jail. What is going wrong with the prison system? Put prisoner safety first, charities say Prison suicides rise to record level The undercover reporter, who was working as a custody officer, was told by some staff they did not feel able to confront prisoners because they were worried back-up support would take too long to arrive. During the secret filming, the reporter also recorded scenes including: The Panorama investigation comes days after the Ministry of Justice announced the replacement of the National Offender Management Service with a new prison and probation service aimed at cutting crime and reforming offenders. HMP Northumberland is run by Sodexo Justice Services. It was privatised in 2014, when the government was aiming to cut ?500m from the prisons budget. To win the contract, Sodexo pledged to save the taxpayer ?130m over 15 years. Two hundred jobs, including 96 prison officer posts, were cut. At the time of the deal, the Prison Officers Association warned it could result in ""escapes and riots"". Read Prison Undercover: Reporter Joe Fenton's story: It didn't take too long to realise the inmates were, in effect, running this prison HMP Northumberland is a training prison that is meant to offer a range of education and training programmes to prepare inmates for release. The Panorama reporter witnessed some inmates colouring in pictures of the children's cartoon character Peppa Pig in an ""employability skills"" class provided by an outside contractor, Novus. It told Panorama it had investigated these concerns and sent a report to the government. The president of the Prison Governors Association, Andrea Albutt, told the BBC previous staff cuts were behind the loss of control. She said: ""The situation is that there are so few prison officers at the moment - that their confidence has been affected and we have a more violent prison population."" Good quality staff-prisoner relationships, which yielded intelligence, had been hit by the lack of staff, she said. The Ministry of Justice told the BBC: ""The justice secretary has been clear that levels of violence and self harm in our prisons are too high, which is why we are investing an extra ?100m annually to boost the front line by 2,500 officers. ""These are longstanding issues which will not be resolved in weeks or months but we are determined to make our prisons places of safety and reform."" A spokesman for Sodexo said: ""We are proud of those staff at HMP Northumberland who do a professional job in such difficult circumstances. ""Security and the safety of our prisoners and staff are our top priority, which is why we have made significant investments in these two areas over and above the contract requirements."" As part of the investigation, Panorama analysed what prisoners had been saying about safety in prisons across England and Wales. Panorama took HM Inspectorate of Prisons data on prisoners' perceptions and analysed it to reveal how fears have changed over the last decade. The calculations are a snapshot of what inmates said was happening at the time of the inspection. Not every jail is inspected every year and conditions can change rapidly if a new regime or resources are introduced. Sir Martin Narey, former head of the Prison Service and now a non-executive member of the Ministry of Justice's board, said: ""The plain truth is that there are too few prison officers. ""If that reduction in number leads to a lack of confidence, then the great danger is some officers have retreated from interaction with prisoners to the ends of wings. ""That's very dangerous for the sort of prison service that we want."" Sir Martin believes that Justice Secretary Elizabeth Truss's pledge to recruit more officers would make a difference. ""We need to concentrate on recovering their confidence,"" he said. ""The disorder we've seen more recently reflects prisoner anger about reductions in regime."" ""If you take people and lock them up and don't use that period to try to do something, then we're just losing a golden opportunity."" This was echoed by the Conservative MP and former prisons minister Crispin Blunt, who said: ""We have got to get to a place where prison is used as a place to turn people around."" Watch Panorama Behind Bars: Prison Undercover on Monday 13 February at 20:30 GMT on BBC One. Or catch up on iPlayer.", -1011,2017/2/13,http://www.bbc.co.uk/news/uk-38952623,What's it like working undercover in a crisis-hit prison?,An undercover investigation by Panorama has revealed the reality of life behind bars in the crisis-hit prison system.,"An undercover investigation by Panorama has revealed the reality of life behind bars in the crisis-hit prison system. From prison custody officers who say they've lost control, to some inmates regularly taking drugs, undercover reporter Joe Fenton records his time working behind bars. Watch Panorama Behind Bars: Prison Undercover on Monday 13 February at 20:30 GMT on BBC One. Or catch up on iPlayer.", -1012,2017/2/13,http://www.bbc.co.uk/news/business-38948369,Pensioner incomes 'outstrip those of working families',"Typical pensioner incomes after housing costs now outstrip those of working-age people, a new report suggests.","Typical pensioner incomes after housing costs now outstrip those of working-age people, a new report suggests. The Resolution Foundation also says pensioners are more likely than their predecessors to be working, own a home and have generous private pensions. The think tank says growth in pensioner incomes has been coupled with weak income growth for working-age people. Pensioner households are now ?20 a week better off than working age households, but were ?70 a week worse off in 2001. However, the report, called As Time Goes By, adds: ""This strong growth is not the result of a boom time for all pensioners, with most finding that their personal situation changes little from year to year. "" It says while typical incomes across the pensioner population have grown by more than 30% since 2001, the typical income of someone who turned 65 in that year was only 7% higher by 2014. Adam Corlett, Economic Analyst at the Resolution Foundation, said: ""The main driver of pensioner income growth has been the arrival of successive new waves of pensioners, who are more likely to work, own their home and have generous private pension wealth than any previous generation. ""Of course, not all pensioners can draw on these income sources, which is why the state pension will always be the main income for many pensioners. ""We can't assume either that young people today will be able to draw upon the kind of wealth that recent pensioners have accumulated, given the recent fall in home ownership and decline in generous defined benefit schemes."" The report identifies four key drivers of growth in typical pensioner incomes since the 2000s. These are: the possession of occupational pensions, a growth in the numbers in employment, increased state benefits, and a move towards home ownership from renting. But the Resolution Foundation warns that future generations of pensioners cannot assume that they will benefit from further gains from these income sources. Other findings include: Lord David Willetts - an executive chair of the Resolution Foundation and former Conservative minister - said that the ""triple-lock"" pension policy of successive governments should be reviewed. The triple-lock guarantees pensions rise by the same as average earnings, the consumer price index, or 2.5%, whichever is the highest. ""Of course there has to be some kind of framework for increasing the state pension,"" he told BBC Radio 4's Today Programme. ""But the [triple-lock] is a very powerful ratchet pushing up pensions at a time when incomes of the less affluent half of working households are barely rising at all."" He added: ""I actually think pensioners worry about their kids and grandchildren. They don't want to live in a society where all the big increases in incomes are accruing to pensioners and other groups are being left behind."" He said the government needed to look at ways of improving younger people's ""pension rights"" and chances of owning their own homes. ""These are all things that have enabled today's pensioners to be so prosperous,"" he said. Are you seeing a gap in earnings in your family? Are your parents comfortable on a pension or are your children struggling with money worries? Let us know about your experiences. Email haveyoursay@bbc.co.uk with your stories. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways: WhatsApp: +44 7555 173285 Tweet: @BBC_HaveYourSay Send an SMS or MMS to 61124", -1013,2017/2/13,http://www.bbc.co.uk/news/uk-england-birmingham-38893887,Tesco customers overcharged by out-of-date offers,"Tesco customers are being short-changed by promotions which have expired but are still advertised on the shelves, a BBC investigation has found.","Tesco customers are being short-changed by promotions which have expired but are still advertised on the shelves, a BBC investigation has found. It revealed shoppers were overcharged at two-thirds of stores visited by an undercover reporter. In 33 of 50 stores visited, multi-buy promotions were marked on the shelf, but the time-limited discounts were not applied at tills. Tesco said it would double-check the accuracy of pricing at all its stores. A reporter for BBC's Inside Out visited the stores over a three-month period. He found multi-buy deals still on display days, weeks and - in some cases - months after the deductions were no longer being applied at the till. Mistakes only applied to in-store offers, and not those online. The investigation was triggered when discrepancies in receipts were discovered by a member of BBC staff. On one occasion, the reporter told customer service staff at a store in Dudley offers for gingerbread and cat food had not gone through. See the data here The staff member was filmed replying: ""The labels are actually out of date, that's what the problem is. ""One's nearly a month out of date, the other one's three weeks out of date."" At another store a member of staff blamed the expired offers on them being ""short-staffed"". There is no real idea of the level of the problem [in the wider supermarket industry] because it is not recorded in enough detail to be searchable. The underlying problem is that people don't complain because they don't realise. Very few people remember [the price] from the shelf to the till, so complaints are extremely low. I would really hope that Tesco are out there on their own on this. I would hope that other stores have better systems to check and feed back and learn from their customer complaints. In every case where the discrepancy was brought to light, Tesco staff honoured the offer. But in the worst example, staff at a Tesco Express outlet in Birmingham repeatedly failed to remove labels showing produce as on offer when it no longer was. It was still on display a month after the reporter first pointed it out. Martin Fisher from the Chartered Trading Standards Institute said the mistakes could amount to breaking the law, which falls under The Consumer Protection from Unfair Trading Regulations 2008. Tesco said it would be double checking the accuracy of the price labels at all its stores as a result of the BBC's investigation. The company runs more than 3,500 stores across the UK. A spokesperson said: ""We take great care to deliver clear and accurate price labels for our customers so they can make informed decisions on the products they buy. ""We are disappointed that errors occurred and will be working with the stores involved to reinforce our responsibilities to our customers."" *Additional reporting by Lisa Wright The full investigation can be seen on BBC Inside Out in most English regions at 19:30 GMT on BBC One on Monday 13 February and for 30 days after on the BBC iPlayer", -1014,2017/2/13,http://www.bbc.co.uk/news/entertainment-arts-38953862,Grammys mix hip flasks with politics,The big story at the 59th Grammy awards was Adele's victory over Beyonce in the best album category.,"The big story at the 59th Grammy awards was Adele's victory over Beyonce in the best album category. Most observers had expected Beyonce's Lemonade - a politically-charged opus that tackles themes of gender and black identity - to race home with the prize. But Adele swooped in and stole it from under her nose, making her very much the Donald Trump of pop. But what were the other big (and small) themes from the night? Here's a rundown. She lost all eight of the awards she was nominated for, but this picture of Rihanna with a hip flask tells us she didn't care. British star James Corden took over as Grammys host from rapper LL Cool J, and the difference couldn't have been more apparent. While LL was always affable, he didn't do much beyond delivering his links. James, in contrast, began the night by pretending to fall down a staircase (""this is a disaster!"") before launching into a rap about the gathered celebrities: ""This room is insane, It's filled with 'Oh, Gods!' / Some of the faces like Madame Tussauds. ""Beyonce performing, the queen is here, dummy! / Slay the whole stage with twins in her tummy."" Later on, he performed an impromptu carpool karaoke (from inside a cardboard cut-out) with Neil Diamond, Jennifer Lopez and Jason Derulo singing a version of Sweet Caroline. And he lived every child's worst nightmare when he found dad Malcolm canoodling with model Heidi Klum in the audience. ""Dad, what are you doing with Heidi Klum?"" he exclaimed. ""Well, your mom and I have an understanding and I used my free pass tonight,"" replied Corden Senior. Politics was always expected to play a role in the ceremony, but it wasn't until Busta Rhymes took to the stage that things got serious. ""I'm not feeling the political climate right now,"" he growled. ""I just want to thank President Agent Orange for perpetuating all of the evil that you've been perpetuating throughout the United States. ""I just want to thank President Agent Orange for your unsuccessful attempt at the Muslim ban. We've come together. We, the people."" He then launched into We The People - a collaboration with A Tribe Called Quest that rejects the politics of division. Surrounded by dancers in headscarves, the musicians brought their thunderous performance to a close with a chant of ""resist, resist, resist"". It wasn't the only political moment in the ceremony, but it was the most incendiary. Earlier Katy Perry, an ardent Hillary Clinton supporter, danced in a white pant suit and wore a ""persist"" arm band. Presumably this alluded to Elizabeth Warren's persistence in Congress this week, where she attempted to read a 30-year-old letter by Martin Luther King Jr's widow, criticising President Trump's nominee for attorney general. The president of the Recording Academy, Neil Portnow, also called on the President not to cut arts funding, saying Americans are ""constantly reminded about the things that divide us"". ""What we need so desperately are more reminders of all that binds us together,"" he continued. US singer Joy Villa, however, bucked the trend by whipping off a white gown to reveal a pro-Trump dress. Rock band Twenty One Pilots went trouser-less for their first ever acceptance speech. After winning best group performance for their hit song Stressed Out, singer Tyler Joseph and drummer Josh Dun stood up, dropped their trousers and walked to the podium in their underwear. ""This story, it starts in Columbus, Ohio, it was a few years ago and it was before Josh and I were able to make money playing music,"" explained Tyler. ""I called him up and I said, 'Hey Josh, want to come over to my rental house and watch the Grammys?' As we were watching, we noticed every single one of us was in our underwear. ""Seriously, Josh said to me... he turned to me and he said, 'If we ever go to the Grammys, if we ever win a Grammy, we should receive it just like this.'"" While a heavily pregnant Beyonce was on stage killing it in an epic, nine-minute performance celebrating motherhood, Jay Z was on the front row looking after their five-year-old daughter, Blue Ivy. The father-daughter duo were beaming with pride throughout and gave Queen Bey a standing ovation. Jay Z's next album - For God's Sake Will You Go to Sleep, Game of Thrones Starts in Five Minutes - is due for release in October. Adele might have needed a do-over on her tribute to George Michael, but her sombre rendition of Fastlove (arranged by Batman composer Hans Zimmer, we understand) was a mournful masterpiece. Bruno Mars went the other direction, vamping up a cover of Prince's Let's Go Crazy to such an extent he seemed possessed by the spirit of the Minneapolis marvel. And The Time - Prince's arch-rivals in Purple Rain - showed us how songs the star cast off, such as their hit Jungle Love, could bring a moderately-sized house down. Those weren't the only stars we lost in 2016 of course, and the memorial montage would have brought a lump to any music fan's throat. If that wasn't enough, John Legend and Cynthia Erivo's tender cover of The Beach Boys' God Only Knows -which soundtracked the segment - would have finished you off. It's hard to believe it, but in his lifetime David Bowie only won two Grammys: best music video in 1985 for Jazzin' For Blue Jean and a lifetime achievement award in 2006. That historical anomaly was corrected last night when the star won all five of the categories he was nominated for, including best alternative album for Blackstar and best rock song for its title track. Recording engineer Kevin Killen, who worked with Bowie on the album, expressed his relief backstage. ""It's kind of startling it's taken that long for an artist who's been so magnificent throughout his whole career,"" he said. Musician Donny McCaslin, who played on Blackstar, said it was ""unfortunate"" Bowie had not been nominated for the main prize, album of the year. ""Speaking artistically, it was clear he should have been nominated in one if not more of the major categories,"" he said. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -1015,2017/2/13,http://www.bbc.co.uk/news/uk-england-merseyside-38954290,Thousands raised for children of cancer death couple,A six-figure sum has been raised for the children of a couple who died of cancer within days of each other.,"A six-figure sum has been raised for the children of a couple who died of cancer within days of each other. The three children released an image of their terminally ill parents' last moments together as they held hands in a Merseyside hospice. The image of Mike Bennet, 57, and wife Julie, 50, from Wirral, was shared by Oliver, 13, Hannah, 18, and Luke, 21. By 10:00 GMT on Monday, just over ?120,000 had been raised for the three siblings. Family friend Heather Heaton Gallagher said the amount of money raised had ""blown everyone's socks away"". She said: ""The kids are astounded, they couldn't believe it. ""They are seeing all this support coming from across the world and it's inspirational to them."" Ms Gallagher said the children were being supported by their aunts and the money would be used to help them through college and university. She said their parents had been ""besotted"" with each other. She added they ""were just so in love"" and ""always made time for everyone"". ""About three weeks ago I met Julie and she said 'that's it, the chemo isn't working' and that was very hard to hear."" The pair were admitted to Arrowe Park Hospital two weeks ago, where Mr Bennet died on 6 February. Mrs Bennet, a primary school teacher at Sommerville School, died on Saturday at St John's Hospice. She was diagnosed in May last year with cancer which began in the liver and kidneys and then spread to other organs. Her husband, a self-employed cabinet maker, had been fighting a brain tumour since 2013 and had been nursed at home by Mrs Bennet and the children until his wife became too ill to care for him. Mr Bennet died on 6 February.", -1016,2017/2/13,http://www.bbc.co.uk/sport/cricket/38954275,"Joe Root: England name batsman Test captain, succeeding Alastair Cook",Joe Root: The making of an England captain,"Share this with Media playback is not supported on this device Joe Root has been named as England's new Test captain. The Yorkshire batsman, 26, succeeds Alastair Cook, who resigned last week after more than four years in charge. ""It is a huge honour to be given the Test captaincy,"" said Root, who will be the 80th man to lead the country in the longest form of the game. ""I feel privileged, humbled and very excited."" Root steps up from vice-captain, with Durham all-rounder Ben Stokes, 25, filling the role as his deputy. ""The senior guys in the changing room play a very influential role and, whilst there's a natural progression for me, it's a huge support to know that they are there to help and advise,"" added Root. ""We have a very good group of players and I'm looking forward to leading them out in the summer, building on Alastair's achievements and making the most of our talents in the years ahead."" No batsman has scored more than Root's 4,594 runs since he made his Test debut in December 2012. In the same time period, only India captain Virat Kohli has scored more runs than Root in all forms of international cricket. ""Joe is the right man to be our next Test captain and I'm thrilled that he has accepted the role,"" said England director of cricket Andrew Strauss. ""He is universally respected by his team mates, passionate about driving the Test team forward and extremely excited about the prospect of leading his country."" Media playback is not supported on this device Cook resigned on 6 February after a record 59 Tests at the helm. Before the tour of India at the end of last year, the 32-year-old opener said he was looking forward to not being captain. As England moved towards a 4-0 series defeat, Cook increased speculation over his future by saying he was questioning his position. After he resigned, he confirmed he would like to continue at the top of the order, with England director of cricket Andrew Strauss leading the process to appoint a successor. Root, Stokes, pace bowler Stuart Broad and one-day vice-captain Jos Buttler were all consulted. But Root was always seen as the clear favourite and was offered the job over the weekend. With England concentrating on limited-overs cricket for the first part of 2017, Root will not properly pick up the reins for almost five months, with the next Test not until July. However, after the visits of South Africa and West Indies, he will lead England to Australia for the defence of the Ashes. Root takes the job with very little captaincy experience - he has only ever skippered in four first-class matches. However, he likened taking over as leader to becoming a father, a baby son having arrived in January. ""Being a dad, you don't really know what to do until you have to go with it,"" he told the BBC before Cook's resignation. ""I imagine being captain would be very similar. Until you're in that position I don't think you know. ""I've got quite a lot experience in Test cricket now, but it's one of these things you have to learn on the job."" For Stokes, the elevation to vice-captain is further confirmation of his importance to the England side after an occasionally turbulent start to his international career. In 2013, he was sent home from the England Lions tour of Australia for disciplinary reasons after he and pace bowler Matt Coles were found to have ignored the management's instructions over preparation and recovery. Though he was part of the England squad for the 2013-14 Ashes, scoring a maiden Test century, he missed the 2014 World Twenty20 with a broken hand sustained when punching a locker on a tour of the West Indies. A spell of drifting in and out of the England team followed, including missing the 2015 World Cup, but he returned to hit the fastest Test century at Lord's - 101 from 85 balls against New Zealand - before smashing England's fastest Test double century against South Africa in January 2016. ""He has real presence and influence within the team environment that serve as a great source of support for Joe,"" said Strauss. ""I have no doubts that the responsibility will also help Ben to continue his rapid rise as a world-class all-rounder."" This content will not work on your device, please check Javascript and cookies are enabled or update your browser Share this with Analysis and opinion from the BBC's cricket correspondent. BBC Test Match Special returns with live commentary on every ball of England's one-day international series against West Indies in March. Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. How to get into cricket - physical exertion with a chess-like element in matches which range from half an hour to five days. Can he trick the staff and complete the Alphabeticall challenge? Run by the BBC and partners Fit For Sport February Half Term Activity Camp Fit For Sport Winter Activity Camp For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -1017,2017/2/13,http://www.bbc.co.uk/news/entertainment-arts-38954080,Adele fluffs cover of George Michael's Fastlove,,"Adele called a halt to her performance as she paid tribute to George Michael at the Grammys. The star was performing a sombre version of Fastlove in honour of the star, who died on Christmas Day, but went badly off-key as she went into the first chorus. ""I can't mess this up for him,"" she said, fighting back tears. ""I'm sorry for swearing. Can we start again?""", -1018,2017/2/13,http://www.bbc.co.uk/news/business-38954115,The Co-op Bank puts itself up for sale,The Co-op Bank says it is putting itself up for sale and is inviting offers to buy all of its shares.,"The Co-op Bank says it is putting itself up for sale and is inviting offers to buy all of its shares. The bank, 20% owned by the Co-operative Group, almost collapsed in 2013, and was bailed out by US hedge funds. The bank has four million customers and is well known for its ethical standpoint, which it says makes it ""a strong franchise with significant potential"" when it comes to a sale. It has not been able to strengthen its finances because of low interest rates. A spokesman for the Bank of England's Prudential Regulation Authority said it welcomed the action announced today by the Co-operative Bank. ""We will continue to assess the bank's progress in building greater financial resilience over the coming months,"" it added. From among potential buyers, the TSB has told the BBC that although it is focused on completing the separation of their IT systems from Lloyds, it would be interested if the price was right. The Co-operative Bank merged with the Britannia building society in 2009. The deal was later held responsible for the near collapse of the bank. In 2013, the bank revealed a ?1.5bn black hole in its accounts, which led to its rescue. Bank chairman Paul Flowers also stepped down over concerns about expenses in 2013, before pleading guilty to drug possession the following year. And in January 2016 the Bank of England banned two former Co-operative Bank executives - former chief executive Barry Tootell and former managing director Keith Alderson - from holding senior banking positions. In the autumn of 2015 the Co-op Bank said it would remain loss-making until the end of 2017. Dennis Holt, bank chairman, said: ""Customers value the Co-operative Bank and our ethical brand is a point of difference that sets us apart in the market. ""While our plan has been impacted by lower for longer interest rates, the costs associated with the sheer scale of the transformation and the legacy issues we faced in 2013, there is considerable potential to build the bank's retail franchise further using the strength of the brand, its reputation for strong customer service and distinctive ethical position."" The bank also said it had made considerable progress in delivering its continuing turnaround plan. And it says it is considering ways to raise funds from existing and new providers. Separately, it says it has resolved a key contractual differences with Capita. Western Mortgage Services, part of Capita, will continue to provide mortgage administration services and new mortgage application processing for the bank and its clients. One [buyer] suggests itself: TSB, which was carved out of Lloyds to satisfy competition concerns over the scale of the Lloyds/HBOS merger. With 600 branches, it lacks the scale to compete against the Big Five and it has a very strong capital position with no legacy issues. Whether the bank would want to take on the problems of Co-op is questionable but it terms of brand (both have a local and ethical flavour to them) it might work. The TSB is currently focused on completing a complicated IT separation from Lloyds, but the BBC understands that at the right price it might consider it, Determining the right price will be hard as the amount of capital any buyer needs to sink into the Co-op is very far from clear.", -1019,2017/2/13,http://www.bbc.co.uk/news/world-us-canada-38952847,Oroville Dam risk: Thousands ordered to evacuate homes,"More than 180,000 people in northern California have been told to evacuate their homes after both overflow channels at the tallest dam in the US were found to be damaged. .","More than 180,000 people in northern California have been told to evacuate their homes after both overflow channels at the tallest dam in the US were found to be damaged. The emergency spillway of the 770ft (230m) tall Oroville Dam was close to collapse, officials said. The excess water has now stopped flowing. However, late on Sunday, Butte County Sheriff Kory Honea said the evacuation orders remained in place. Water levels in the reservoir have risen following heavy rain and snow after years of severe drought. It is the first time that Lake Oroville, which lies 65 miles (105km) north of Sacramento, has experienced such an emergency in the dam's near 50-year history. In a statement posted on social media on Sunday afternoon, Mr Honea ordered residents to evacuate, repeating three times that it was ""NOT a drill"". The California Department of Water Resources warned that the emergency spillway next to the dam was ""predicted to fail"". Residents of Oroville, a town of 16,000 people, were told to head north. There was gridlock on roads heading out of the town, with some evacuees complaining that they should have been given more warning. Butte County's official Twitter feed shared news of emergency shelters, and reported that many hotels were fully booked in the wider area. Several hours after the evacuation order, the emergency spillway was still standing. The California Department of Water Resources said it was releasing as much as 100,000 cubic feet (2,830 cubic metres) of water per second from the main spillway to try to lower the lake's level and relieve the pressure. Helicopters were dispatched to drop boulders to try to block the eroded area next to the spillway. California Fire Incident commander, Kevin Lawson, said officials stood by the decision to evacuate residents, rather than risk thousands of lives. He said if the situation was not dealt with they were looking at ""a 30ft wall of water coming out of the lake"". Mr Lawson stressed that there was no danger of the entire dam collapsing. It rises higher than the spillways, so water was not close to cascading over its top. Sheriff Honea said that the evacuation was declared to avoid a ""worst-case scenario"". He added that no decision had been made as to when people would be allowed back into their homes, as the authorities were still assessing the risks. Last week, water levels in the reservoir rose sharply and the dam's main spillway, also known as an overflow channel, was found to be damaged. On Saturday, the water rose even higher, and the emergency spillway was activated for the first time since the dam's completion in 1968. However, this secondary slipway was also found to be damaged. After a long period of drought, California has been experiencing heavy rain and increased snowfall, which has led to flooding and mudslides. On Friday, California Governor Jerry Brown asked the Federal Emergency Management Agency to declare a major disaster. Do you live in the affected region? Let us know about your experiences. Email haveyoursay@bbc.co.uk with your stories. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways: .", -1020,2017/2/13,http://tass.com/economy/930583,Lavrov says Russia hopes Mongolia's SCO status will be elevated,,"MOSCOW, February 13. /TASS/. Moscow expects Mongolia's statue in the Shanghai Cooperation Organization (SCO) where that country is an observer to be elevated, Russian Foreign Minister Sergey Lavrov said on Monday following talks with his Mongolian counterpart, Tsend Munkh-Orgil. ""We discussed the issue of Mongolia's involvement in the SCO as an observer, but do hope this status will be elevated,"" he said. ""Anyway, our Mongolian friends can presently cooperate without restrictions in implementing the SCO programs in security, energy, transport, agriculture and the regional anti-terrorist bodies."" The Russian minister also noted the parties""?close or concurring stances on the key regional and global issues. ""We agreed to hold special consultations on foreign policy planning this quarter,"" he said. ""I believe that was a very useful agreement."" Founded in 2001, the Shanghai Cooperation Organization (SCO) includes Russia, China, Kazakhstan, Tajikistan, Kyrgyzstan and Uzbekistan, with a number of countries - Mongolia, Pakistan, India and Iran - granted observer status. The organization's key objectives are strengthening stability and security over its vast area, the fight against terrorism, separatism, extremism, drug trafficking, development of economic cooperation, energy partnership, scientific and cultural cooperation.", -1021,2017/2/13,http://tass.com/economy/930582,Decision on WTO expert group within Ukraine claim against Russia to be made on February 20,Kiev has submitted a request to the World Trade Organization to create an expert group within its complaint against Russia over restrictions on transit of Ukrainian goods through Russia,"MOSCOW, February 13. /TASS/. The decision on creation of a WTO panel of arbiters within Ukraine's complaint against Russia over restrictions on transit to Kazakhstan and Kyrgyzstan via the Russian Federation may be made on the meeting on February 20, a source in Russia's Economic Development Ministry told TASS on Monday. ""There will be a meeting on WTO dispute settlement on February 20, 2017, where the issue on creation of a panel of arbiters will be considered,"" he said. Earlier on Monday Kiev submitted a request to the World Trade Organization (WTO) to create an expert group within its complaint against Russia over restrictions on transit of Ukrainian goods to third countries through Russia, as was reported by the country's Economic Development Ministry.", -1022,2017/2/13,http://tass.com/economy/930580,Kiev requests to create WTO expert group within transit restrictions claim against Russia,Kiev is collecting data for the next claim covering numerous bans and restrictions on imports of Ukrainian goods to Russia,"KIEV, February 13. /TASS/. Ukraine has submitted a request to the World Trade Organization (WTO) to create an expert group within its complaint against Russia over transit restrictions dispute, press service of the country's Economic Development Ministry reported Monday. ""Last year the Economic Development Ministry started the dispute settlement process within the WTO regarding the mentioned restrictions. Since Russia was not ready to settle the dispute at the first stage and failed to assume measures on lifting unjustified, discriminatory and economically inconvenient transit restrictions, the Ukrainian side proceeded with the case hearing as a matter of course and submitted a request to the WTO on creation of a group of experts in order to start the next stage of the consideration of the case on the merits,"" the Ministry said. According to the report, Kiev is ""currently collecting data for the next claim covering numerous bans and restrictions on imports of Ukrainian goods to Russia."" Starting January 1, 2016 the free trade zone regime between Ukraine and the European Union came into force. This forced Russia to assume measures aimed at mitigating risks for the country's economy, the Foreign Ministry said, and suspended the free trade zone agreement with Ukraine. Thus, prior to the suspension of the free trade zone regime, all Ukrainian goods, excluding sugar, were delivered to Russia free of duties. Zeroing customs rates for European goods imported to Ukraine could move the flow of those goods to the Russian Federation. Due to suspension of the free trade agreement between Ukraine and Russia President Vladimir Putin signed a decree on measures to ensure the country's economic safety and national interests on transshipments from Ukraine to Kazakhstan via Russia. On July 1, 2016, President Putin amended the decree and extended its applicability to shipments to Kyrgyzstan. The document was extended until December 31, 2017.", -1023,2017/2/13,http://tass.com/politics/930576,Putin accepts resignation of Novgorod Region's governor,Vladimir Putin has also appointed Director General of the Agency for Strategic Initiatives Andrei Nikitin as acting head of the republic,"NOVO-OGARYOVO, February 13. /TASS/. Russian President Vladimir Putin has accepted the resignation of Sergey Mitin, the governor of northwestern Russia's Novgorod Region, the Kremlin press service said on Monday. Putin has also appointed Director General of the Agency for Strategic Initiatives Andrei Nikitin as acting head of the republic. The president met with Nikitin and highly assessed his work as the head of the agency, established in 2011 and focused on implementing measures in economic and social spheres. ""During this time, the agency has done a lot to give a new impetus to the development of the entire economy, without exaggeration. You did a lot in regard to certain projects, the most important areas of development,"" Putin said. Among the agency's projects are joint cooperation with businesses and also organizing participation of young people in international competitions. Putin said these projects were implemented in the Russian regions, including in the Novgorod Region. A series of resignations of Russian governors began last week. Governor of western Russia's Perm Territory Viktor Basargin announced his decision to step down on February 6, and the next day the head of Buryatia Republic, in eastern Siberia, Vyacheslav Nagovitsyn, tendered his resignation. Maxim Reshetnikov, who until recently served as the head of the Department of Economic Policy and Development of Moscow, was appointed Acting Governor of the Perm Territory. Russian Deputy Transport Minister Alexei Tsydenov was appointed as the acting head of Buryatia.", -1024,2017/2/13,http://tass.com/defense/930573,Syrian army continues offensive on Palmyra,"A distance of less than 20 km remains to be covered, Russia's Defense Ministry reported","MOSCOW, February 13. /TASS/. The Syrian army continues its offensive on Palmyra with the support of the Russian air task force, Russia's Defense Ministry reported on Monday. ""The Syrian government troops are continuing their offensive towards Palmyra with the support of Russia's aviation. A distance of less than 20 km remains to be covered. Over the past week, Russian warplanes have conducted over 90 sorties in the Palmyra direction,"" the Defense Ministry said in a statement obtained by TASS. In the course of their offensive, the Syrian government troops have destroyed over 180 militants""?objectives, including more than 60 strongholds, 15 depots with armaments, munitions and military hardware, 43 armored fighting vehicles, and also jeeps armed with large-caliber machine guns, the statement said. ""The terrorists""?losses in manpower have amounted to over 200 men,"" the ministry said. According to data of Russia's Defense Ministry, the Syrian government troops have established control of a territory of 22 square kilometers since February 7 and liberated the communities of al-Kulaib and Kirkuk and the surrounding dominant terrain. ""Overall, the Syrian government troops have liberated 805 square kilometers of the territory in the province of Homs from terrorists of the ISIL [the former name of the Islamic State terrorist organization outlawed in Russia] since they launched their operation with the support of the Russian air task force,"" the ministry said.", -1025,2017/2/13,http://tass.com/economy/930572,Rosneft does not rule out raising stake in German oil refineries,"In late December 2016, Rosneft and BP announced the completion of the deal to dissolve the refining and petrochemical Joint Venture Ruhr Oel GmbH in Germany","SCHWEDT, February 13. /TASS/. Rosneft does not rule out a possible extension of its stake in German refineries: PCK Raffinerie GmbH, MiRO, Bayernoil given appropriate proposals and economic efficiency, Managing Director at Rosneft Deutschland GmbH Brian Chesterman told reporters. ""We will look at every opportunity that comes up, if other shareholders would like to divest or there are other opportunities in the German market - we will always evaluate these based on economic efficiency for Rosneft and if they are attractive, then we will pursue them. They have to work economically first, before we do anything,"" Chesterman said. At the same time, Chesterman did not disclose the economic performance of German assets, noting that the business is profitable. In late December 2016, Rosneft and BP announced the completion of the deal to dissolve the refining and petrochemical Joint Venture Ruhr Oel GmbH (ROG) in Germany. The agreement came into effect from January 1, 2017. As a result of the JV restructuring Rosneft became a direct holder and increases its shareholding in the Bayernoil refinery from 12.5% to 25%; the MiRO refinery from 12% to 24%; and the PCK refinery - from 35.42% to 54.17%. In exchange, BP consolidates 100% of the equity of the Gelsenkirchen refinery and the solvents production facility DHC Solvent Chemie. According to Chesterman, the reorganization process of the joint venture does not involve any financial payments to Rosneft and BP, and the former joint venture ROG does not have any credit obligations. After dividing assets, BP consolidated a 100% stake in the Gelsenkirchen refinery and DHC Solvent Chemie. Rosneft is the third largest crude oil refiner in the German market with a total refining throughput approximately 12.5 mln tonnes per year, representing more than 12% of the processing capacity in Germany. Average conversion rate of the Rosneft capacities is 93%, average Nelson complexity index - 9.1. Operating activities in Germany are run by Rosneft subsidiary - Rosneft Deutschland GmbH, which manages feedstock supplies to Rosneft shares in PCK, MiRO and Bayernoil refineries as well as sales of refined products.", -1026,2017/2/13,http://tass.com/politics/930571,Kremlin gives no comment on row involving Russian ambassador and Trump's advisor,"Flynn's communication with Sergey Kislyak was interpreted by some senior US officials as ""inappropriate"", a US newspaper wrote","MOSCOW, February 13. /TASS/. Kremlin spokesman Dmitry Peskov declined to comment on the row involving Russian Ambassador to the United States Sergey Kislyak and President Donald Trump's national security advisor Michael Flynn who allegedly discussed the issue of anti-Russia sanctions prior to the inauguration. ""We would like to give no comments on any internal discussions in Washington,"" he said when asked a respective question. When asked whether Kislyak informed Moscow about his contacts with Flynn, Peskov said: ""Any ambassador provides information about all contacts."" Last week the Washington Post wrote with reference to current and former US officials that Michael Flynn privately discussed US sanctions against Moscow with Russian ambassador to the United States ""during the month before President Trump took office."" Flynn's communication-with Sergey Kislyak ""was-interpreted by some senior US officials as an inappropriate and potentially illegal signal to the Kremlin that it could expect a reprieve from sanctions,"" the newspaper wrote. According to the Washington Post, ""Flynn urged Russia not to overreact to the penalties being imposed by President Barack Obama, making clear that the two sides would be in position to review the matter after Trump was sworn in as president."" The FBI is continuing to examine Flynn's communications with Kislyak, the newspaper wrote. As was reported earlier the Kremlin denied the information. When asked whether the Russian ambassador indeed discussed the sanctions issue with Trump's advisor, Kremlin spokesman Dmitry Peskov said his understanding is that ""there were certain conversations [between Flynn and Kislyak]"", though ""it is better to double check the information in the Foreign Ministry."" ""Other than that the information is not correct,"" he added.", -1027,2017/2/13,http://tass.com/society/930566,Over 800 teenage suicides officially registered in Russia in 2016,"There is no statistics data about those teenagers who survived suicide attempts, a senior Russian lawmaker said","MOSCOW, February 13. /TASS/. More than 800 children committed suicide in Russia in 2016, a senior Russian lawmaker said on Monday, citing official statistics of the Russian Investigative Committee. ""In 2016, as many as 820 children killed themselves,"" Irina Yarovaya, a deputy speaker of the Russian State Duma lower parliament house, said at a meeting of the working group on prevention of teenager suicides. She admitted she had no statistics data about those teenagers who survived suicide attempts. ""We have data only on those poor children who were actually killed remotely by proxy. When a child is in a state of frustration he or she is easy to be manipulated,"" she said. In 2015, the number of teenage self-killers increased considerably in 32 Russian regions compared to 2014, she said, citing the Russian Investigative Committee's statistics. In this context, she drew attention to survival quests, such as Do or Die, or Train Surfers. Apart from that, according to Yarovaya, as many as 4,864 suicide-related online links were exposed last year. ""This is a real war on children, real criminal activity, well-conceived, well-organized and well-targeted,"" she stressed.", -1028,2017/2/13,http://tass.com/politics/930568,"Russian, French senators to hold joint meeting on February 27",Russian and French senators will hold a meeting to discuss the Russian version of a report on relations between the two countries,"MOSCOW, February 13. /TASS/. Russian and French senators will hold a meeting in Moscow on February 27 to discuss the Russian version of a report on relations between the two countries, Konstantin Kosachev, Chairman of Russia's Federation Council (upper house of parliament) International Affairs Committee, said at the committee's meeting on Monday. He recalled that the Federation Council's International Affairs Committee and the relevant committee of the French Senate (for Foreign Affairs, Defense and Armed Forces) have been developing cooperation quite intensively. The first joint meeting was held in Paris last year, and French senators drafted a report on relations between Moscow and Paris at that time. ""I draw your attention to the fact that the second joint meeting of the Federation Council's International Affairs Committee and the French Senate Committee for Foreign Affairs and Defense will be held on February 27, during which the Russian version of the report on our two countries bilateral relations will be considered,"" Kosachev said, adding that this time the meeting will be held in Moscow. ""During the meeting, it is planned to sign an agreement on cooperation in the framework of a permanent high-level strategic dialogue,"" Kosachev noted. According to the Russian parliamentarian, Russian and French senators are planning to begin work on a joint report on bilateral relations."" The agreement to hold the two committees""?joint meeting no later than in March was reached by Federation Council speaker, Valentina Matviyenko, and French Senate President, Gerard Larcher, at a bilateral meeting in Bern last October held on the sidelines of the session of the Association of European Senates.", -1029,2017/2/13,http://tass.com/world/930561,"Damascus ready for prisoners exchange ""?SANA",,"MOSCOW, February 13. /TASS/. The Syrian government is prepared to exchange inmates kept in Syrian prisons for civilians and military servicemen held by armed opposition groups, the SANA news agency reported on Monday citing an official source.- According to SANA, the Syrian government has expressed full readiness, ""particularly in the framework of the exerted efforts for holding next Astana talks, to swap prisoners in exchange for Syrian abductees and hostages held by terrorist groups including men, women, children, civilians and soldiers.""- ", -1030,2017/2/13,http://www.dw.com/en/gurbanguly-berdymukhamedov-re-elected-as-turkmen-president/a-37524932?maca=en-rss-en-all-1573-rdf,Gurbanguly Berdymukhamedov re-elected as Turkmen president,The strongman has won a third term in office with 98 percent of the vote. Many observers see the Turkmen election as a phony vote controlled by the president's authoritarian regime.,"Turkmenistan's sitting president Gurbanguly Berdymukhamedov received 97.69 percent of all votes in the presidential election, the Central Election Commission announced on Monday. This secures Berdymukhamedov a third term in office, as many had expected. In Sunday's election, the president competed against eight other candidates-who were viewed by many as token opponents. The candidates were allowed to meet with voters in theaters and cultural centers, but these events were not televised and no debates were held. All eight had expressed support for Berdymukhamedov's government. Election Commission chairman Gulmurat Muradov told reporters that the results were preliminary because election authorities had not yet counted the ballots cast at-the country's embassies abroad, though changes due to these votes will likely be negligible.The results-are on par with those from-the 2012 election, when Berdymukhamedov received roughly 97 percent of the votes.- Election officials claimed that almost all eligible voters cast their ballots on Sunday, saying that turnout was above-97 percent. Constitutional reform allows lifelong rule Last year, Berdymukhamedov had approved several constitutional changes that could allow the 59-year old to rule for the rest of his life. The reform removed the upper age limit of 70 for presidential candidates and extended the presidential term from five to seven years. ""If I am elected, then our policies aimed at improving the welfare of the people will continue,"" Berdymukhamedov had said when he went to the polls on Sunday. The president claimed that the vote would decide ""the fate of the people for the coming seven years"". Turkmenistan is one of several ex-Soviet countries in Central Asia ruled by an authoritarian strongman, where elections strongly favor those in power. It has recently struggled under the falling gas prices. The small desert country of 5.2 million is home to the world's fourth largest natural gas reserves and largely relies on the export of its natural resources. The country is highly dependent-on China, which buys three-quarters of its gas. Authoritarian strongman regime Berdymukhamedov became president when Saparmurat Niyazov died in 2006. Niyazov, Turkmenistan's first head of state after the fall of the Soviet Union, had styled himself as ""father of the Turkmen people."" The president maintains a high public profile Berdymukhamedov initially promised make ""moderation"" the guiding principle of his presidency, but quickly disappointed hopes that he would democratize Turkmenistan or open up the largely isolated, gas-rich state to the wider world. The president has spent-large amounts of government funds on showy monuments. The presidential palace in Ashgabat erected under Berdymukhamedov is reportedly worth 234 million euros- ($250 million) and listed in the Guinness Book of World Records as the building with most white marble in the world. In 2015, a golden statue of the president on his favorite horse was unveiled in the capital. In the solely state-controlled media, Berdymukhamedov enjoys largely fawning coverage. Newspapers dedicate their front pages to poems the president wrote, and national news broadcasters-cover even the president's smallest actions, including his attempts at DJing at his grandson's party. mb/tj (AFP, Reuters) -", -1031,2017/2/13,http://www.dw.com/en/a-post-western-age-munich-security-report-details-fragile-world-order/a-37479793?maca=en-rss-en-all-1573-rdf,'A post-Western age': Munich Security Report details fragile world order,"With the rise of populism threatening international order, the report warns of an ""illiberal moment"" globally. A withdrawal of the US on the world stage could allow others to take advantage of the power vacuum.","Chancellor Angela Merkel is to meet US Vice President Mike Pence next week, when she attends the Munich Security Conference. It will be the first time she meets any senior member of the new Washington administration. The Munich Security Conference (MSC) published its annual report on Monday, with the conference chairman saying-there was greater instability today across the globe-than there has been since the Second World War. From a-power vacuum caused by a possible-US withdrawal from-the global stage to the heightened threat of military escalation, the report --entitled ""Post-Truth, Post-West, Post-Order?""-- accentuates the threats to international order in what MSC Chairman Wolfgang Ischinger described as an ""illiberal moment."" ""The international security environment is arguably more volatile today than at any point since World War II. Some of the most fundamental pillars of the West and of the liberal international order are weakening,"" said MSC Chairman Ambassador Wolfgang Ischinger. ""We may, then, be on the brink of a post-Western age, one in which non-Western actors are shaping international affairs, often in parallel or even to the detriment of precisely those multilateral frameworks that have formed the bedrock of the liberal international order since 1945,"" Ischinger said. ""Are we entering a post-order world?"" Notably in the report, the ascendancy of populist rhetoric from positions of power has fundamentally shifted the discourse of liberal democracy and the principles that accompany it. Trump: the wildcard If Brexit-- the British referendum on leaving the EU - was the catalyst for a revision of international relations, the election of US President Donald Trump marked its assured advancement. In his inauguration speech, Trump professed a historical change in US relations with other countries, promising that his policies - both domestic and foreign - will prioritize American interests. ""We've made other countries rich while the wealth, strength, and confidence of our country has disappeared over the horizon ""?But that is the past. And now we are looking only to the future, Trump said during his inauguration speech. ""From this moment on, it's going to be America first."" However, as the report points out, Trump failed to mention ""democracy, liberty or human rights"" in his inaugural address to the nation, marking a sharp contrast to his predecessors. ""This does not bode well for liberal values around the world,"" the report said. Since then, Trump's administration has promoted a momentous rebalancing of global order through a myriad of policy maneuvers, including circumventing long-held diplomatic traditions, insidious criticism of America's traditional allies and barring citizens of seven Muslim-majority nations from entering the country. Surrounded by the ones he loves, Donald Trump with his wife, Melania, daughters Ivanka and Tiffany, his sons Eric and Donald, Jr., and grandchildren Kai and Donald John III. His three eldest children are senior vice presidents in the Trump organization. This picture from 1984 shows Trump opening Harrah's at Trump Plaza, a casino in Atlantic City, New Jersey. It's one of the investments that helped turn Trump, already a millionaire thanks to cash from his father, into a billionaire. Trump inherited the money he used to launch his real estate empire from his father, Frederick. He gave his son a million dollars to start and then, upon his death, left Donald and his three siblings $400 million. Donald Trump aggressively invested the money and experienced the market's highs and lows. Long-term success came thanks to Trump Tower in New York City. Trump has said he's worth some $10 billion, but he has not released financial information to prove the claim. Experts estimate he's worth about a third of that. That's what Trump had to say about himself. He studied at the renowned Wharton School of the University of Pennsylvania and graduated with a bachelor's degree. Before college, Trump was sent to a military academy at the age of 13 to learn discipline. By the time he graduated, he had earned an officer's rank at the academy. During his campaign for president, he said he enjoyed the school's structure and military culture. Despite the military education, Trump did not serve in the Vietnam War. He received four deferments while studying and a fifth for bone spurs in his heels. Trump will be the first US president to enter the White House without having previously served in a public office or the military. In 1977, Trump married Ivana Zelnuickova of what was then Czechoslovakia. The pair had three children together, Donald John, Jr., Ivanka Marie and Eric Fredrick. The marriage, however, was plagued with rumors of extra-marital affairs and ended in 1990. Ivana was the one who created Trump's nickname ""The Donald."" Trump later married his second wife, Marla Maples. Maples gave birth to their daughter Tiffany in 1993. Trump seemed to enjoy being photographed with women other than his wife by his side. He often visited beauty pageants and posed with young models. From 1996 to 2015, he owned part of all the Miss Universe pageants. Trump would later come under fire for an audio recording of him saying his fame allowed him to grope women without fearing consequences.""?How do you make a quick million? Trump's best-seller ""The Art of the Deal,"" which was part autobiography, part instruction manual for ambitious businessmen, tried to show readers the way. Already well-known, the book solidified Trump's spot in the public spotlight. Like no other, Trump knew how to grab the public's attention, as seen here in a show for ""World Wrestling Entertainment."" His unique blend of business and entertainment acumen met in the reality TV show ""The Apprentice"" where candidates were hired and fired. Trump's favorite line from the show: ""You're fired!"" Though he had previously had very little contact with governing or politics, Trump announced his presidential candidacy on July 16, 2015. He used ""Make America Great Again"" as a political slogan and during his election campaign insulted immigrants, Muslims, women and everyone running against him. Whether the showman morphs into a statesman will be seen over Trump's four years in the White House. Views are split as he prepares to take office. But if his life so far is anything to go by, there is no telling what will be next. Author: Peter Hille (sms) 'Nothing is true and everything is possible' Despite its deployment-in eastern European nations after Russia's illegal annexation of Crimea, interest in ""fake news"" witnessed a fever-pitch in the wake of Trump's electoral victory in November. Disinformation and its ability to influence political structures and undermine traditional media narratives has proven to be a post-truth feature of a political environment created by an interconnected voter base, and one that has consequential repercussions on security. ""The main threat is that citizens' trust in media and politicians might further erode, creating a vicious cycle that threatens liberal democracy,"" the report said. ""Yet, they [states]-cannot forbid 'fake news' or introduce 'truth agencies' lest they turn illiberal themselves. Preventing a 'post-truth' world, in which 'nothing is true and everything is possible,' is a task for society as a whole,"" it added, referring to lawmakers' attempts to criminalize the production and distribution of disinformation. Syria: No end in sight Since the onset of the Syrian-conflict in 2011, more than 300,000 people have been killed and half the population displaced, according to UN figures. Despite numerous attempts to secure a nationwide ceasefire and prevent the escalation of hostilities, the past year saw-the Syrian army launch a brutal campaign, backed by Russian support, to reclaim the city of Aleppo, leaving thousands dead in the process. ""Key Western actors stood by as Aleppo fell, watching what a UN spokesperson described as a 'complete meltdown of humanity,'"" the report said. What started off as protests calling for Syrian President Bashar al-Assad to step down has transformed into a protracted conflict involving domestic actors, militant groups, neighboring states and world powers, including the US, Russia, Iran and Saudi Arabia. ""As numerous actors are meddling in the crises in Syria and the region, while the West attempts to somehow muddle through, the Middle East's post-Western age might have already begun,"" the report said. In late 2014, with the war in Syria approaching its fourth year and Islamic State making gains in the north of the country, the exodus of Syrians intensified. At the same time, others were fleeing violence and poverty in countries such as Iraq, Afghanistan, Eritrea, Somalia, Niger and Kosovo. Vast numbers of Syrian refugees had been gathering in border-town camps in neighboring Turkey, Lebanon and Jordan since 2011. By 2015, with the camps full to bursting and residents often unable to find work or educate their children, more and more people decided to seek asylum further afield. In 2015 an estimated 1.5 million people made their way on foot from Greece towards western Europe via the ""Balkan route"". The Schengen Agreement, which allows passport-free travel within much of the EU, was called into question as refugees headed towards the wealthier European nations. Tens of thousands of refugees were also attempting the perilous journey across the Mediterranean on overcrowded boats. In April 2015, 800 people of various nationalities drowned when a boat traveling from Libya capsized off the Italian coast. This was to be just one of many similar tragedies - by the end of the year, nearly 4,000 refugees were reported to have died attempting the crossing. Countries along the EU's external border struggled to cope with the sheer number of arrivals. Fences were erected in Hungary, Slovenia, Macedonia and Austria. Asylum laws were tightened and several Schengen area countries introduced temporary border controls. Critics of German Chancellor Angela Merkel's ""open-door"" refugee policy claimed it had made the situation worse by encouraging more people to embark on the dangerous journey to Europe. By September 2016, Germany had also introduced temporary checks on its border with Austria. In early 2016, the EU and Turkey signed an agreement under which refugees arriving in Greece could be sent back to Turkey. The deal has been criticised by human rights groups and came under new strain following a vote by the European Parliament in November to freeze talks on Turkey's potential accession to the EU. With anti-immigration sentiment in Europe growing, governments are still struggling to reach a consensus on how to handle the continuing refugee crisis. Attempts to introduce quotas for the distribution of refugees among EU member states have largely failed. Conflicts in the Middle East and elsewhere show no signs coming to an end, and the death toll from refugee sea crossings is on the rise. Author: Rachel Stewart The future of terrorism In the past year, security vulnerabilities spawned by the Syrian conflict have metastasized throughout the region and the globe, most notably the proliferation of ""Islamic State""-inspired terrorist attacks in Western nations. From a state of emergency in France to raids-in Germany, Europe's response in the wake of attacks in Berlin, Nice and Brussels-has been uneven across the bloc as individual member states developed ways to enhance precautionary measures to counter threats. According to the report, it is necessary for the EU to cooperate as a unified bloc on a range of challenges posed by the threat of radicalization and terrorism. ""Only by further stepping up EU anti-terror cooperation and capabilities will European states be able to rise to what will likely be a long-term jihadist challenge,"" the report said. ""Main reasons for this include the growing potential recruitment pool in Europe; more jihadists entrepreneurs and local network builders, including an increasingly strong crime-terror nexus; the ongoing conflicts in the Muslim world, which can be used for recruitment and propaganda,-and the clandestine communication opportunities the Internet provides,"" it added. Preparing for dialogue The Munich Security Report offers a glimpse into the challenges that threaten to upend the international order established in the aftermath of World War II, which left-millions killed and displaced across the globe. Whether questioning-the existence of the North Atlantic Treaty Organization (NATO) in its current form or forsaking traditional alliances for new ones, the current state of affairs has shifted global and regional dynamics between nation states. But the report, published ahead of the Munich Security Conference, offers world leaders a starting point for dialogue on the world's most pertinent security and defense challenges. ""I hope that we will not mince words and speak honestly about our disagreements as well as about our common interests and values,"" Ischinger said-earlier this month. In 2014, Russia annexed Crimea and started providing support to rebels in eastern Ukraine. The conflict in Ukraine quickly gained an international dimension and triggered a renewed standoff between Russia and the West that has extended as far afield as Syria. North and South Korea are technically still at war, having signed no peace treaty to end the Korean War. The demilitarized zone, or DMZ, is a 2-kilometer (1.2-mile) strip separating the countries. The border is one of the tensest and most heavily militarized in the world. South Ossetia and Abkhazia are post-Soviet breakaway republics outside the sovereign control of Georgia. They are backed and recognized by Russia and only a handful of other states. The conflict turned hot during 2008 Russian-Georgian War, which effectively kicked Tbilisi's forces out of the republics. A 1974 invasion by Turkey in response to a coup attempt to join the island with Greece split the island between the self-declared Turkish Republic of Northern Cyprus and the internationally recognized Republic of Cyprus in the ethnically Greek south. The two communities' leaders are engaged in complicated reunification talks. Both sides have expressed hope for a settlement this year. Azerbaijan and Armenia went to war over Nagorno-Karabakh until the two sides reached a truce in 1994. Since then, the territory - ethnically Armenian but formally Azerbaijani - has been under the control of local Armenian forces and the Armenian military. The conflict has had periodic violent flare-ups, most recently with a bout of fierce fighting in April. Morocco annexed Western Sahara after colonial power Spain withdrew in 1975, setting off a conflict with the Polisario Front, which demands self-determination. In 1991, a UN-brokered ceasefire put a halt to fighting. However, a promised referendum on self-determination has failed to materialize, threatening to upend a shaky peace. Kashmir is divided between India and Pakistan, which have fought two wars over the predominantly Muslim region. India accuses Pakistan of arming rebels fighting for independence or union with Pakistan. The emotionally charged issue is especially dangerous given that both countries have nuclear weapons. Trans-Dniester is a pro-Russia breakaway region of Moldova. The sliver of territory bordering on Ukraine split from Moldova, triggering a 1992 war. Russia maintains peacekeepers in the region. Some analysts say Trans-Dniester is a potential hot spot used by Russia to keep Moldova from becoming closer to the West. Author: Chase Winter", -1032,2017/2/13,http://www.dw.com/en/germany-s-right-wing-afd-seeks-to-expel-state-leader-over-holocaust-remarks/a-37525199?maca=en-rss-en-all-1573-rdf,Germany's right-wing AfD seeks to expel state leader over Holocaust remarks,The leaders of Germany's nationalist AfD have asked that Thuringia state party leader Bj?rn H?cke be removed from his position. H?cke caused a stir for his harsh criticism of Germany's culture of Holocaust remembrance.,"After weeks of waffling over controversial remarks Thuringia state party leader Bj?rn H?cke made about Holocaust remembrance, the national leadership of the right-wing Alternative for Germany (AfD) party reportedly decided on Monday to expel him from their ranks. DW takes a look at the Alternative for Germany (AfD) party - the newest force in German politics. What is it, where did it come from and what role will it play in the 2017 election? Here are all the answers. (20.01.2017) The AfD leadership has decided that regional leader Bj?rn H?cke will be allowed to remain in the party. H?cke had prompted outrage after verbally attacking Germany's national Holocaust memorial and remembrance culture. (23.01.2017) Bj?rn H?cke has been told to stay away from his state parliament's remembrance ceremony for victims of the Nazi regime after a speech last week in which he called the Holocaust memorial in Berlin a ""monument of shame."" (27.01.2017) Jewish organizations and politicians have expressed horror after Thuringian AfD leader Bj?rn H?cke called for an end to the culture of Shoah remembrance. The timing of his remarks was particularly provocative. (18.01.2017) His inflammatory rhetoric has made H?cke no stranger to national headlines, but statements he made in January regarding Germany's long-enshrined dedication to memorializing the victims of Nazism were-what finally landed him in hot water with his party superiors. Speaking to a group of young AfD supporters in Dresden, H?cke called the Memorial to the Murdered Jews of Europe in Berlin a ""monument of shame."" He then added:- ""These stupid politics of coming to grips with the past cripple us - we need nothing other than a 180-degree reversal on the politics of remembrance."" H?cke later backpedaled slightly, clarifying that he meant to suggest that Germany was too bogged down by its own shame. Local and national AfD leaders distanced themselves from him, with party chief Frauke Petry calling him a ""burden for the party,"" for his ""unauthorized solo actions,"" but it seemed he was being allowed to stay. Responding to the call for his ouster, H?cke said, ""It is with deep worry about the unity of the party that I learned of the decision of the federal governing board."" Speaking from Thuringia's capital, Erfurt, he added-that he awaited the decision of the state arbitration panel ""calmly."" National leadership wants H?cke out However, following a telephone conference between party leaders Monday morning, the AfD has decided to remove H?cke from their ranks permanently. A spokesman said that the party had conducted a ""legal appraisal and political assessment"" of H?cke's speech and decided he should not be allowed to represent the party any longer. Now it is up to an arbitration committee of the AfD in Thuringia to rule on the leaders' request. Founded as a euroskeptic protest party in 2013, the AfD has become increasingly successful in the past year as its program has shifted to more nationalistic and anti-migrant themes. Last year, for example, the party officially adopted a passage into its manifesto that declares ""Islam does not belong in Germany."" es/tj (AFP, dpa)", -1033,2017/2/13,http://www.dw.com/en/japan-s-abenomics-reap-only-meager-growth-in-2016/a-37524680?maca=en-rss-en-all-1573-rdf,Japan's 'Abenomics' reap only meager growth in 2016,"Last year, Japan's economic expansion has slowed despite a bump in exports and capital investment. Weak consumer spending proved a drag on growth, fueling renewed concerns about Tokyo's faltering war on deflation.","According to Japan's Cabinet Office, the country's gross domestic product (GDP) expanded one percent in 2016, after four consecutive quarters of growth - the longest expansion since 2013. Nevertheless, the annual figure released in Tokyo on Monday was lower than the 1.2 percent growth registered in 2015. The expansion was primarily driven by government spending measures and a drop in the yen, while Japanese consumers kept a tight lid on spending. Izumi Devalier, chief economist at Merrill Lynch Japan Securities, said 2016 GDP growth was clearly ""export-driven."" ""Private consumption has been pretty weak still, and unless we get private consumption fired up, it's hard to see growth accelerating very strongly from here,"" he told the news agency AFP. The upturn in the Japanese economy in the current fiscal year's third quarter is a positive sign, but overall the country's economy presents a gloomy picture. How does it reflect on the premier's Abenomics? DW examines. (17.11.2016) Japan's central bank has had to admit that its goal of pulling the nation out of its deflationary spiral is not achievable during the term of the lender's current governor. The announcement is a blow to Abenomics. (01.11.2016) Japan's inflation rate has continued its slide, with consumer prices falling for the eighth month in a row - the longest string of declines in five years and underscoring the country's struggle to stop deflation. (25.11.2016) The world's third largest economy has been suffering from more two decades of weak growth and falling prices, also known as deflation. The phenomenon emerges when consumers withhold spending in anticipation of further falling prices, unleashing a downward spiral of lower investment, rising unemployment and weakening growth. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JMqR 'Abenomics' in the focus Japanese Prime Minister Shinzo Abe has been trying to win the war on deflation with a policy mix of massiv monetary easing, higher government spending and curbing bureaucracy. This resulted in a depreciation of the yen, helping exporters by making their goods cheaper on world markets. The yen has lost about 10 percent of its value against the dollar over the past three months, boosting Japan's shipments abroad by 2.6 percent in the final quarter of 2016. Businesses also appear to be feeling more confident now as capital spending grew 0.9 percent, reversing a decline in the previous quarter. Therefore, analysts expect the Japanese economy to accelerate its expansion in the course of 2017. However, Marcel Thieliant at Capital Economics warned that a further declining yen might dampen consumer spending even further. ""We expect the yen to weaken further towards 130 by the end of this year, which will result in a surge in prices of imported goods and undermine households' purchasing power,"" he said in a note to investors. Japan's economic prospects are also clouded by the protectionist rhetoric of the new US president Donald Trump, who has accused Japan as well as a number of other countries, including Germany, of manipulating their currencies lower to win a competitive advantage over the United States. During a visit of Abe to Washington at the weekend, however, Trump dropped his previously harsh criticism towards Tokyo. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XO5M uhe/jd (dpa, AFP) -", -1034,2017/2/13,http://www.dw.com/en/ivory-coast-detains-six-journalists-over-mutiny-reporting/a-37524610?maca=en-rss-en-all-1573-rdf,Ivory Coast detains six journalists over mutiny reporting,"Editors and executives at independent and opposition media have been arrested for ""spreading false information."" Ivory Coast has been rocked by a series of strikes and mutinies by soldiers demanding back pay and bonuses.","Six journalists have been detained in Ivory Coast for encouraging revolt and disseminating false stories, local media reported Monday. Six editors and three media publishers were brought in for questioning over their coverage of-recent mutinies-by security forces. Calm has returned to cities in the Ivory Coast after a deal between the government and soldiers ended a two-day revolt. Soldiers launched the uprising to demand improved pay and working conditions. (08.01.2017) Ivory Coast's president says his government has reached an agreement with mutinying soldiers to end a two-day revolt. The uprising over pay and living conditions had spread to cities across the West African country. (07.01.2017) Gunfire was heard in several Ivory Coast cities for a second day as military officials prepared to meet soldiers demanding pay and bonuses. The violence was akin to a 2014 strike where former rebels made similar demands. (07.01.2017) ""Regarding recent action taken by the military ... we have come to believe that certain media organizations are spreading false information in a bid to encourage soldiers to revolt,"" public prosecutor Christophe Richard Adou said in a statement on Sunday, according to French news agency AFP. Adou added that the journalists would be questioned to ""find out where responsibility lies"" for the alleged fake reporting. He did not elaborate on the content of the articles. Those arrested included Yacouba Gbane-of Cyclone Group, which publishes the opposition newspaper ""Le Temps"" --a daily that has regularly called into question the legitimacy of President Alassane Ouattara's administration and accused him of human rights abuses. Another target was the newspaper ""Notre Voie,"" which has often-gotten into legal trouble for its inflammatory rhetoric against Ivorian politicians. It is associated with the center-left Ivorian Popular Front (FPI), which was founded by former President Gbabgo, currently on trial for crimes against humanity at the International Criminal Court. Soldiers mutiny over back pay The move against the journalists comes after weeks of troop insurrections across the country as soldiers demanded promised back pay and bonuses they say they've never received. At first, the protests-included mostly former rebels who were made significant promises of compensation during a period of amnesty following the 2010-2011 Ivorian crisis. Waves of other soldiers followed suit, most recently a group of elite forces, who fired into the air at the barracks near Adiake and seized control of the town. Each uprising has been followed by a flurry of talks between security forces and government officials as President Ouattara sought to end the unrest as swiftly as possible.", -1035,2017/2/13,http://www.dw.com/en/adele-sweeps-top-awards-at-2017-grammys/a-37524142?maca=en-rss-en-all-1573-rdf,Adele sweeps top awards at 2017 Grammys,"The British star outdid Beyonce, claiming the Grammy's top prizes. The annual music awards ceremony paid tribute to music icons Bowie, Prince and George Michael - while some artists got political, with calls to resist.","The big winner of the US music industry awards evening-was English singer-songwriter Adele. She took home the awards in all the five categories for which she was nominated on Sunday night, including the top three categories - album, record of the year with her comeback album ""25,"" and song of the year with her megahit ""Hello."" Adele appeared to doubt that she should have won over Beyonce, whose groundbreaking album ""Lemonade"" was also nominated: ""My artist, the artist of my life is Beyonce, and the 'Lemonade' album was so monumental and well thought-out and so beautiful and soul baring,"" she said in her emotional acceptance speech. ""We all (expletive) adore you,"" she said directly to the visibly pregnant star. Beyonce: an ode to motherhood Beyonce offered an epic performance during the ceremony, exposing her round belly after revealing 12 days ago that she was pregnant with twins. Despite leading with nine nominations, she only won in two categories: ""Lemonade"" picked up best urban contemporary album and her clip for ""Formation"" was chosen as best music video. The glittering, pregnant queen of the evening: Beyonce Beyonce's acceptance speech included allusions to the current political situation: ""It's important to me to show images to my children that reflect their beauty, so they can grow in a world-where they look in the mirror, first with their own families as well as in the Super Bowl, the Olympics, the White House and the Grammys, and see themselves,"" she said. Many social media users quickly decried the-racism of the Grammys to explain why-Beyonce was snubbed: Artists 'resist' Beyonce's speech wasn't the only political moment. Earlier in the evening, Katy Perry's performance of her new song, ""Chained to the Rhythm,""-was accompanied by a huge video projection of the US Constitution. She wore a ""Persist"" armband, in-homage to US-Senator Elizabeth Warren.-Her act provoked a-standing ovation from the audience.- Later on in the evening, A Tribe Called Quest referred to ""President Agent Orange"" in their performance, which-included many allusions to Donald Trumps' policies. Joining-the hip hop pioneers onstage were-dancers-crossing a wall-and women in hijabs, in reference to the wall the US president has said he wants to build along the Mexican border and his travel ban on predominantly Muslim countries. Chicago-born artist Chance the Rapper, 23, outdid other established performers, such as Drake and Kanye West, by winning best rap album for ""Coloring Book."" He also won in the categories-best new artist and best rap performance. He wore-a black hoodie with ""Obama"" on the back and ""thank you"" on the front.- Tributes to three late greats David Bowie won posthumously all four awards he was nominated for. His final album, ""Black Star,"" was released days before-he died-of cancer last year. It won best alternative music album and engineered album, non-classical. The title track grabbed-best rock song and rock performance. Bruno Mars offered an electrifying tribute to Prince, with a spot-on impersonation of the artist, wearing a purple jacket to revisit the Purple One's 1984 hit ""Let's Go Crazy."" Prince died in April last year, just a few months after Bowie. Adele was in charge of the tribute to George Michael, who died on Christmas Day at the age of 53. Midway through her somber version of his song ""Fastlove,"" she abruptly stopped, asking to start over again:- ""I can't mess this up for him,"" she said. Her second shot was flawless and heartfelt, although it left the star teary-eyed. eg/kbm (AFP, dpa, AP) -", -1036,2017/2/13,http://www.dw.com/en/amnesty-accuses-tunisian-authorities-of-torture-ahead-of-key-talks-with-germany/a-37523864?maca=en-rss-en-all-1573-rdf,Amnesty accuses Tunisian authorities of torture ahead of key talks with Germany,The rights group has reported 23 instances of torture committed by security officials. Tunisia's prime minister is to meet with Germany's Angela Merkel this week to discuss a deportation deal for rejected asylum seekers.,"Rights group Amnesty International fears that democratic reforms in Tunisia are being undermined by a rise in ""brutal tactics"" used by the country's security forces. A report published by the rights group on Monday ""exposes how entrenched impunity has fostered a culture in which violations by security forces have been able to thrive,""-Amnesty's-North Africa research director, Heba Morayef, said. The chancellor said in her weekly video podcast that she would push the Tunisian prime minister to help speed up deportations. She referenced the case of the Tunisian terrorist Anis Amri. (11.02.2017) As Tunisia confronts the possibility of jihadists returning home, the country is divided. Some believe that the returning fighters should be rehabilitated, others argue they should be stripped of their citizenship. (27.12.2016) Tunisia's truth commission is working through human rights abuses. But given disputes among members and a skeptical media, it's a challenging task. Consultations are helping the commission overcome hurdles. (05.10.2016) Entitled ""An end to the fear: abuses under Tunisia's state of emergency,"" the report details 23 cases of torture and ill-treatment committed by the police, the National Guard and counterterrorism brigades in the past two years. Victims quoted in the report said they had ""[been] brutally beaten with sticks and rubber hoses, placed in stress positions such as the 'roast chicken' position or forced to stand for prolonged periods, subjected to electric shocks, deprived of sleep or had cold water poured on them."" One victim told Amnesty that his legs and feet were beaten until his toenails fell off. Living under the threat of terrorism Since the 2011 revolution that ousted President Zine El Abidine Ben Ali and sparked the Arab Spring, Tunisia has been hit by a series of jihadist attacks. In the past six years, Islamist assailants have killed more than 100 soldiers and police, around 20 civilians and 59 foreign tourists. The country has been under an ongoing state of emergency since a November 2015 attack killed 12 presidential guards. The report described-""Tunisian security forces' reliance on the brutal tactics of the past, including torture, arbitrary arrests, detentions and restrictions on travel of suspects as well as harassment of their family members."" -""The chilling accounts detailed in this report signal a disturbing rise in the use of repressive tactics against suspects in terrorism-related cases over the past two years, providing a grim reminder of former President Ben Ali's rule,"" Amnesty said. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WI3Y Amnesty International-also voiced concern over travel bans imposed on at least 5,000 people, which officials say is designed to prevent selected young people from-joining extremist groups, such as the so-called ""Islamic State,"" abroad. ""There is no doubt that the authorities have a duty to counter security threats and protect the population from deadly attacks, but they can do so while respecting the human rights protections set out in the Tunisian constitution and international law,"" Morayef said. Germany and Tunisia in talks over migrant deportations Tunisian Prime Minister Youssef Chahed will visit Berlin this week for top-level talks concerning the expulsion of rejected Tunisian refugees from Germany. German Chancellor Angela Merkel on Friday called for faster deportations of rejected Tunisian asylum seekers and reiterated her push to classify Tunisia, along with regional neighbors Algeria and Morocco, as a ""safe country of origin."" She has also pledged to help Tunisia cope with the threat of extremism and help rebuild its economy. The issue has become a point of urgency following the December-terror attack on a Berlin Christmas market. The perpetrator,-Anis Amri, was a Tunisian refugee whose deportation was delayed by Tunisia's initial reluctance to confirm that he was one of its nationals.-He went on to kill 12 people and injure 56 others in the truck attack. Amnesty's report-will leave a shadow hanging over this week's talks and could have a major bearing on how Germany proceeds with its deportation policy. Immigration and deportations are expected to be among the key issues concerning-voters ahead of Germany's general elections in September. dm/tj-(AFP, dpa, KPA)", -1037,2017/2/13,http://www.dw.com/en/us-launches-urgent-evacuation-around-damaged-oroville-dam-in-california/a-37523863?maca=en-rss-en-all-1573-rdf,US launches urgent evacuation around damaged Oroville Dam in California,Thousands of people were fleeing endangered areas in Northern California after authorities warned that the emergency spillway of Oroville Dam could collapse. Recent rainfall has caused waters to rise at the structure.,"Authorities ordered the evacuation of low-lying areas of Oroville, Yuba and other towns downstream from Oroville Dam on Sunday, citing a ""hazardous situation"" at the tallest dam in the US.-According to US Census data, over 160,000 people live in the area.- The dam's main spillway was severely damaged by erosion last week, prompting authorities to activate the emergency outlet. On Sunday, Butte County Sheriff's department said that the auxiliary spillway also suffered ""severe"" damage through its use. - ""Failure of the auxiliary spillway structure will result in an uncontrolled release of flood waters from Lake Oroville,"" the sheriff's department said on social media, ordering the evacuation and adding ""This is-NOT A Drill. This is-NOT A Drill. This is-NOT A Drill."" After advising that the spillway was predicted to fail imminently,-Butte County Sheriff Korey Honea said at an evening press conference that erosion was not progressing as rapidly as had been feared and the amount of water flowing over the spillway had dropped quickly.- Oroville dam itself was ""sound"" and structurally separate from the auxiliary spillway, a spokesperson for the California Department of Water Resources told a public TV channel in San Francisco.- The barrier is 770-feet (235 meters) high, making it 14 meters taller than the more famous Hoover Dam. Lake Oroville's water level-has risen this winter due to heavy rain and snowfall, which came after years of drought. On Friday, water levels were reported to be around two meters from the top of the wall. The structure is almost 50 years old and located upstream from the town of Oroville, which has 16,000 residents. Evacuation centers were set up at a fairground in Chico, 20 miles northwest of Oroville. The dam's main spillway was damaged (pictured center), forcing authorities to use the emergency spillway on Saturday for the first time in the dam's 48-year-old history. Officials at first believed the emergency spillway had helped lower water levels in the lake, before they noticed erosion. A view of the Lake Oroville Dam (right) from a helicopter. Center-left is the damaged main spillway. The emergency spillway is to the far left. The emergency spillway (top half of picture) suffered severe erosion that led authorities to believe it could collapse within hours. They then released more water from the main damaged spillway to ""avert more erosion at the top of the auxiliary spillway."" Water levels have since receded slightly. Evacuation orders were given to about 200,000 people in Oroville, Yuba County, Butte County and Marysville. Oroville was said to be eerily deserted on Sunday. Officials said a 9-meter-high (30-foot) flood wave could hit Oroville if the spillway structure collapsed. A picture released by the California Department of Water Resources shows the the hole in the main damaged spillway and erosion to the hillside. ""Once you have damage to a structure like that, it's catastrophic,"" acting Water Resources director Bill Croyle told reporters. He emphasized, though, that ""the integrity of the dam is not impacted"" by the damaged spillway. Residents were ordered to leave areas down from the dam due to high water flows and the potential for a failure at a spillway. California has experienced years of drought and a water crisis. A picture from May, 2015, shows boats moored in an arm of Lake Oroville when the water level was less than 25-percent capacity.", -1038,2017/2/13,http://www.dw.com/en/south-sudan-general-quits-over-ethnic-cleansing-regime/a-37522006?maca=en-rss-en-all-1573-rdf,South Sudan general quits over 'ethnic cleansing' regime,"A top general in the South Sudanese armed forces has stepped down in response to alleged atrocities by the government. The conflict has left tens of thousands dead, with the UN warning of ""all-out ethnic civil war.""","Continued conflict in South Sudan has forced 52,000 people to flee to Uganda in January alone, the UN said. Killings of civilians, rapes and the destruction of homes and property have been reported. A senior general in South Sudan has resigned over the government's involvement in a brutal civil war, accusing President Salva Kiir and senior members of his Dinka tribe of committing ""ethnic cleansing."" I ""have lost patience with the conduct of the president and commander-in-chief, the chief of staff and other senior officers in the headquarters of the SPLA [the country's national army] as well as unit commanders,"" Lieutenant General Thomas Cirillo Swaka wrote in a letter. He accused the president and his cohorts of transforming the country's armed forces into a ""tribal"" army that has committed ""systematic killings of people, rape of women and the burning of villages in the name of pursuing rebels in peaceful villages."" Swaka, a former deputy chief of general staff for logistics, who is-well-respected among the country's foreign partners, said Kiir has pursued an agenda of ""ethnic cleansing,"" ""forceful displacement of people"" and ""ethnic domination,"" which are considered crimes against humanity. The lieutenant general is the second-highest military officer to defect from government forces since fighting erupted in the capital of the world's youngest nation in July. 'All-out ethnic civil war' When-South Sudan gained independence-in 2011, the country descended into armed conflict between the Dinka-and Nuer ethnic groups. The conflict has left tens of thousands dead and over three million displaced, despite a 12,000-strong UN peacekeeping force stationed in the area. Earlier this month, UN chief human rights expert for South Sudan Yasmin Sooka warned that the country's conflict could escalate, citing a steady process of ethnic cleansing. ""South Sudan stands on the brink of an all-out ethnic civil war, which could destabilize the entire region,"" Sooka said. In December, UN experts reported ""ethnic cleansing"" in several parts across the country, with Dinka troops accused of driving the atrocities. For decades, what is now the Republic of South Sudan was officially part of the Republic of Sudan. The first secession war dates back to 1955, even before British colonialists handed over duties to the new government in Khartoum, with Christian South Sudanese fighting for more independence from the Arab north. From 1972 to 1983, South Sudan enjoyed relative peace and autonomy before falling back into civil war. The Sudan People's Liberation Movement and Army (SPLM/A) took up the fight, led by John Garang. The group later splintered, with Salva Kiir and Riek Machar holding leading positions in different factions. In a January 2011 referendum, the South Sudanese people voted for independence. Salva Kiir and Riek Machar were named president and vice president respectively. The new state was based largely on a peace deal struck in 2005 under the auspices of Garang, who died in a helicopter crash weeks after the deal. The alliance between the enemies-turned-colleagues didn't last long. In July 2013, two years after independence, Kiir dismissed Riek Machar and all other cabinet members. In December, he donned his military uniform for effect when addressing the media, accusing Machar and his allies of attempting a coup. It was the beginning of a civil war that continues to this day. At least 50,000 people have died in the conflict, despite various attempts at ending it on different levels. 2.4 million people have been forced from their homes. In May 2014, the 14,000-strong UN mission to South Sudan was restructured to focus on the protection of civilians. Building the state no longer seemed a realistic goal to pursue. Also in May 2015, a meeting of Kiir (far left) and Machar (far right) in Addis Ababa resulted in a ceasefire agreement that sparked hope for peace. Those hopes evaporated when new fighting erupted hours later. Subsequent agreements would be just as short-lived. Not only did the two leaders fail to agree, but observers commented they had long ago lost control over their respective fighters. The latest peace agreement, signed in August 2015, had a rocky start. President Salva Kiir at first refused to sign but finally gave in to international pressure. Part of the deal was to guarantee Machar's return from his exile in Ethiopia. But there has been quarrelling over the number of fighters and weapons that could accompany him to Juba. Meanwhile, the conflict has left the country in ruins. UN High Commissioner for Human Rights, Said Raad al-Hussein, says in a report that both government troops and rebels use rape as a means of terror and warfare. The UN Security Council has decided to put in place a commission to investigate the violence. Author: Philipp Sandner ls/jlw (AFP, AP)", -1039,2017/2/13,http://www.dw.com/en/samsung-vice-chairman-questioned-again-in-south-korea-influence-peddling-scandal/a-37523104?maca=en-rss-en-all-1573-rdf,Samsung vice chairman questioned again in South Korea influence-peddling scandal,Samsung head Lee Jae-yong has once again appeared before prosecutors as part of South Korea's political corruption probe. Investigators are reportedly considering a second arrest warrant against the Samsung heir.,"The vice chairman and heir of Samsung, Lee Jae-yong, on Monday faced a second round of questioning as part of an influence-peddling scandal that has rocked South Korea's government and threatens to topple President Park Geun-hye. Lee told reporters as he entered the prosecution office in Seoul: ""I will once again tell the truth to the special prosecution."" Lee is accused of ""donating"" 43 million won ($37.3 million) to nonprofit foundations run by Park's confidante-Choi Soon-sil-in a bid to receive favors from the president in return. Prosecutors are investigating whether the payments made by Samsung, South Korea's largest industrial group, were part of a bid to secure official approval for a controversial 2015 merger between two of the firm's units. On Monday, a Danish court extended the detention of Chung Yoo-ra, the daughter of Choi Soon-sil, the woman at the centre of a corruption scandal that led to the impeachment of Park Geun-hye, South Korea's president. Choi is accused of influencing government policy and getting rich through extortion and manipulation. Choi is in custody on charges of meddling in state affairs without holding a government position and using her connections with the president to extort vast sums of money from many of South Korea's best-known companies. Beyond the legal charges, she is being blamed for both effectively bringing down the government of President Park and leaving her reputation and political legacy in tatters. Last month, Park did not turn up to testify in a court case which will decide her future. The president was impeached over a multifaceted corruption scandal in December. After her impeachment, Park Geun-hye is regarded both as a perpetrator and a victim. Her future is uncertain as the country struggles to recover from a political scandal. Tens of thousands of protesters have taken to the streets since the start of the corruption scandal, calling on President Park to step down. South Korea's Constitutional Court is deciding whether to formally unseat Park or restore her power. If she is forced out, a new election would be held within two months to choose her successor. South Korea's corruption scandal has spilled over into the highest levels of business. The vice-chairman of Samsung, Lee Jae-yong, was questioned last month by investigators who are seeking evidence that he paid bribes to Choi Soon-sil. Given the economic and political importance of Samsung in South Korea, if Lee is indicted, it could be on the same level of President Park's impeachment. In December, a group of lawmakers from South Korea's ruling Saenuri Party abandoned Park to form a new party, tentatively named the New Conservative Party for Reform (NCPR). The party infighting is another blow to Park. Former United Nations Secretary General Ban Ki-moon has declared that he won't run for South Korea's presidency. He had been expected to seek the position after a corruption scandal saw President Park impeached. The newly-formed NCPR was hoping that Ban would join their ranks. Author: Shamil Shams The merger reportedly smoothed the transition of ownership over to Lee from his father. While still technically the vice chairman, Lee Jae-yong-effectively took over the helm of Samsung after his father suffered a heart attack in 2014. All parties have denied the bribery charges. South Korea's parliament impeached Park in December, although South Korea's Constitutional Court is still mulling over whether to uphold the impeachment. Investigators considering arrest warrant against Samsung executive Prosecutors are reportedly considering whether to issue a renewed arrest warrant against the Samsung heir-based on the outcome of Monday's questioning. Two other senior Samsung executives were also questioned as criminal suspects on Monday, according to a prosecution spokesperson. Investigators had issued a warrant against Lee in January, before it was rejected by a Seoul court due to a lack of evidence. Choi Soon-sil, a secret confidant of South Korea's president, has denied all charges of corruption and bribery. South Korean government rattled by scandal Prosecutors have also sought to question Park over her role in the scandal.-Her office has yet to agree on how and when to do it. Park's aides have also blocked officials with a court-issued warrant from searching the Blue House, citing a law that blocks the searching of sites containing state secrets. The head of South Korea's state pension fund, Moon Hyung-pyo, was detained in December on charges that he pressured the National Pension Service to sanction the Samsung merger despite warnings from investors that it wilfully unvalued the shares of the firms. The fund's stake in one of the firms lost an estimated hundreds of millions of dollars in value on the back of the merger. dm/jm-(Reuters, AP, AFP)", -1040,2017/2/13,http://www.aljazeera.com/news/2017/02/nato-air-raids-kill-18-civilians-helmand-170213033330102.html,UN: NATO air raids kill 18 civilians in Helmand,"UN inquiry concludes air strikes in Helmand's Sangin district killed at least 18 civilians, mostly women and children.","Civilians, mostly women and children, were killed last week in air raids by NATO forces in Afghanistan's Helmand province, an initial United Nations inquiry suggested. On Thursday and Friday,-as many as 18 civilians died in-air strikes in Helmand's Sangin district, according to a statement released by the UN Assistance Mission in Afghanistan on Sunday. The UN said the strikes had been conducted by ""international military forces,"" but only US aircraft have been involved in recent coalition strikes, according to US military officials. Afghan officials and local residents told Al Jazeera that the death toll was higher than 18. ""The jets arrived at around 3am (local time) on Friday and started bombing indiscriminately in a heavy-residential area. I lost my aunt, two cousins and a nephew in the strikes,"" Mullah Fazal Ahmed told Al Jazeera.- ""Six others in my family were wounded,"" said Ahmed, adding that the bombardment lasted for up to half an hour. ""Most of them who were pulled out of the rubble were bodies of women and children, as young as five-years-old."" US military officials said their aircraft conducted around 30 air raids in Helmand in the past week. NATO's Resolute Support mission has initiated an inquiry into the incident. ""We are investigating the allegations, but let me tell you, no one has reached any final conclusion on this incident in Helmand,"" Brigadier General Charles Cleveland, a US army spokesman in Afghanistan-told Al Jazeera.- ""We all know that there is a fight against the Taliban going on in Sangin for the past 10 days, there are mortars being fired by the Taliban and Afghan forces are fighting them, so its not at all clear at the moment how these civilians were killed."" READ MORE: UN to probe US air raid that killed women and children The NATO-led military mission has deployed hundreds of troops to Helmand in a bid to help Afghan security forces in their war against Taliban fighters. Civilian casualties from both American and Afghan air strikes increased dramatically last year, according to the UN's most recent report on threats to civilians.- At least 891 civilians were killed or injured in 2016, a figure highest in areas outside of Kabul. Source:-Al Jazeera and news agencies", -1041,2017/2/13,http://www.aljazeera.com/indepth/opinion/2017/02/moroccan-pragmatism-chapter-western-sahara-170213074116469.html,,,"King Mohammed VI's new African policy reflects the Moroccan monarch's pragmatism and realism. While in the past, Morocco had adopted a disastrous ""empty chair"" policy, the new policy is proactive and positive for the outlook of Morocco's territorial integrity and the controversy it is facing over the Western Sahara. Owing to Morocco's absence from the African Union (AU) over the past 33 years, Morocco's rivals, mainly Algeria and South Africa, have been using the pan-African body to push their self-serving political and ideological agendas. The two countries have seemingly dominated the organisation and attempted to use it as a tool to weaken Morocco's position with regard to the Western Sahara. In the past three years, for example, Algeria and South Africa were behind the AU's decision to appoint a special envoy in charge of the Western Sahara whose primary mission is to lobby the United Nations to force Morocco to conduct a referendum of self-determination and to establish a human rights monitoring mechanism in the territory. In an opinion piece written before the self-proclaimed Saharawi Arab Democratic Republic's leader Brahim Ghali's working visit to South Africa in early January, Pretoria's Minister of International Relations and Cooperation, Maite Nkoana-Mashabane, renewed his country's call to the UN to conduct a referendum of self-determination in Western Sahara and to establish a human rights monitoring mechanism to inspect the situation in the region. The South African official seemed oblivious of the UN political process initiated in 2007 and stressed that the conflict about Western Sahara could only be settled through a referendum. This position is at odds with the relevant UN Security Council resolutions that have been adopted since April 2007, which called on the parties to work towards reaching a mutually acceptable political solution (PDF). With Morocco's return to the AU and the overwhelming support it received in the process, the country is now better positioned than ever before to put an end to the manipulation of the union by a handful of countries. From now on, Morocco will also use the political support it received during its return to the union to nip in the bud all attempts to divert the current UN political process. By making South Sudan his first stop after Morocco's return to the AU, the Moroccan monarch sent a clear message to Rabat's adversaries that it will now play in their backyards and establish economic and political relations with countries that have hitherto been considered their exclusive domain. The new dynamic of Morocco's foreign policy shows that King Mohammed VI is determined to break away from the myopic approach that has prevented Morocco from extending its influence beyond French-speaking West Africa. Nigeria is a case in point. Until recently, this most populous African country was among the vocal supporters of the Polisario Front, and observers often highlighted the support that the South Africa-Algeria-Nigeria axis provides to the group. However, after King Mohammed VI's visit to Nigeria and the signature of several landmark economic agreements, Nigeria seems to be reconsidering its position on the conflict. Evidence of this new approach is the support it provided for Morocco's return to the AU. Therefore, Morocco's strategy towards Nigeria has proved successful. The alarmist overtone expressed by South Africa's press and its officials before and after Morocco's return to its African family speaks volumes about their fear that with Morocco's presence in the union, the equation will change inside the AU proceedings and the pan-African body will no longer be influenced by South Africa and Algeria in the way that it was before. - The same applies to Ethiopia, which was a major supporter of Algeria. However, the king's visit there has helped ease the atmosphere and made Ethiopia one of the countries that have supported the return of Morocco to the AU. It is not unlikely that this important state will withdraw its recognition of the self-proclaimed Sahrawi Arab Democratic Republic (SADR) in Western Sahara or freeze its diplomatic relations with it in the future. Additionally, by strengthening diplomatic and economic relations with South Sudan, Morocco is pursuing a far more important goal. Since South Sudan's independence, Algeria and the Polisario have been using the alleged similarities between South Sudan and Western Sahara to put pressure on Morocco and to call on the UN to follow the same track it followed with South Sudan. However, while they have been using this argument to lobby for the Polisario, Algerian and South African leaders did nothing to help South Sudan to extricate itself from the quagmire it has been embroiled in since its independence. Neither of the two leaders has paid an official visit to South Sudan to show them moral and political support. Their support remained pure rhetoric and South Sudan was rather exploited by the two countries to fulfil their agenda. Meanwhile, the Moroccan king has visited this war-torn country on the day after Morocco's return to the AU. His visit was crowned with the signing of nine bilateral agreements, the most of important of which established Morocco's commitment to build South Sudan's new capital. Additionally, in line with its tradition to assist its African partners in times of crises and natural disasters, Morocco established a field hospital in South Sudan, which is providing daily care to more than 4,000 people. Morocco's new assertive African policy is already paying dividends. During King Mohammed VI's visit, South Sudan's president said that there is no parallel between the situation of South Sudan and the Western Sahara. ""While considering that the issue of Sahara is different in its genesis, legal and political background from that of South Sudan, President Salva Kiir Mayardit acknowledges the efforts of the UN to reach a political solution to the regional dispute over the Sahara,"" the joint communique stated after the visit. The alarmist overtone expressed by South Africa's press and its officials before and after Morocco's return to its African family speaks volumes about their fear that with Morocco's presence in the union, the equation will change inside in the AU proceedings, and the pan-African body will no longer be influenced by South Africa and Algeria in the way that it was before. It is very telling that an anonymous South African official was quoted in the South African newspaper Daily Maverick as saying that Morocco's readmission within the AU was an ""unfortunate decision"" that goes against South Africa's interest. OPINION: Conflict in Moroccan Sahara - Myths and realities The article stressed that Morocco's landmark economic deals with both Nigeria and Ethiopia proved more efficient than the ""long-held ideals"" of South African leaders and their rhetoric on the Western Sahara conflict. It is still too early to tell whether the same can hold for Morocco's recent overture towards South Sudan and whether this rapprochement will push this country to reconsider its stance towards the self-proclaimed SADR. But based on the solid agreements signed between the two countries and South Africa along with Algeria's inertia, it is unlikely that these countries will have a free pass with South Sudan to exploit it in order to advance the agenda of the Polisario. Samir Bennis is a political analyst with more than eight years of experience as a political adviser in New York. He is the editor-in-chief of Morocco World News, and an expert on Morocco's foreign policy, UN-related issues and the Maghreb. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1042,2017/2/13,http://www.aljazeera.com/indepth/features/2017/02/trump-interest-iran-deal-alive-170212080547204.html,'It is in Trump's interest to keep the Iran deal alive' Omid Khazani,"Trump's presidency offers both threats and opportunities to Iran, says former senior Iranian diplomat. By","Tehran - The fate of the diplomatic channel between Iran and the United States, established for the first time in four decades during the nuclear deal negations in 2015,-is fraught with uncertainty, according to a former senior Iranian diplomat. ""The fate of the direct diplomatic channel absolutely depends on the new US government, the rhetoric they will use and actions they will take,"" said Sadegh Kharrazi, who-served twice as Iran's deputy foreign minister and the head of its UN mission from 1989-1995.- ""Should such belligerent, anti-Iran rhetoric continues, the channel will be history,"" Kharrazi, who-is known to be a foreign policy heavy weight in Tehran,-told Al Jazeera. Iran and the United States have engaged in tit-for-tat exchanges since US President Donald Trump-signed an executive order on January 27 banning nationals temporarily from seven Muslim-majority nations from entering the United States. Iran was among those countries. On Friday, hundreds of thousands of Iranians rallied on the anniversary of the country's 1979 Islamic Revolution, that toppled the US-backed Shah Mohammad Reza Pahlavi, carrying-""Death to America"" banners and effigies of Trump.- READ MORE: US-Iran relations 'getting very dangerous' Concerns about the fate of the Iran nuclear deal under Trump, who threatened to scrap it during the campaign trail, has increased tension in Tehran. I am confident that Trump will begin to realise this fact very soon and will take into consideration the reality of Iran in his setting of Middle East policies. Should Trump make good on his campaign slogan of scrapping the hard-won Iran deal, it will most likely further escalate tensions and destabilise the already volatile region, warned the Iranian diplomat. ""It is in the full interest of Trump administration to keep the deal alive and working. Iran's options in the face of collapsing the deal are multiple and will go beyond lobbying through its allies."" Kharrazi, who was Iran's ambassador to France from 2002 to 2006 and served as an adviser to former reformist President Mohammad Khatami, believes that scrapping the nuclear deal is not going to happen given the current consensus among Europeans to uphold it. ""Renegotiating the deal is neither possible nor doable under current circumstances. Europeans won't support it no matter how adamant Trump administration would be on that,"" Kharrazi said.- Last month, the chair of the US Senate Foreign Relations Committee, Bob Corker, told reporters-that abrupt rejection of the Iran nuclear deal by the Trump administration could create ""a crisis"" and that he did not expect such an approach. According to Iranian President Hassan Rouhani, the nuclear deal between Iran and world powers was ""a win-win accord"" that can be used as a stepping stone to defuse tension in the region. ""This is a win-win agreement. Everyone benefits from it ... The nuclear negotiations can be used as an example for other talks to bring stability and security to the region,""-said Rouhani. Kharrazi pointed out that the view from Tehran is that the danger posed by neo-conservatives in Trump's administration is very serious and that ""Iranians are vigilantly watching the developments"". ""It should be noted that today's Iran is quite different from that of a decade ago. I mean the era of Bush administration,"" said Kharrazi. Today, he added, Iran ""is the most stable country in the most unstable region"". ""I am confident that Trump will begin to realise this fact very soon and will take into consideration the reality of Iran in his setting of Middle East policies."" Asked whether the new US secretary of state's lack of experience in foreign policy issues presented a threat to Iran, Kharazi said: ""On the contrary, I don't think that his lack of political experience is going to be a serious problem. I think [US Secretary of State] Tillerson's long managerial experience on top of the ExxonMobil will play an important role in setting pragmatic Middle East policies. This non-political experience is a plus in my viewpoint."" ""However, the stakes are high in the complex world of international relations, and Trump's lack of administrative and foreign policy experience can trigger and escalate tensions with Iran."" The veteran Iranian diplomat believes that Trump's presidency offers both threats and opportunities to Iran's foreign policy and national security. ""Trump's long business record has potentially made him a deal broker which is essential in international relations. I believe this war of words and harsh rhetoric will be ebbed to considerable extent,"" says Kharrazi noting that ""a businessman's pragmatism may take over his emotional populist rhetoric in the next few months."" Source:-Al Jazeera News", -1043,2017/2/13,http://www.aljazeera.com/news/2017/02/burhan-ozbilici-wins-2017-world-press-photo-competition-170213104220580.html,Burhan Ozbilici wins 2017 World Press Photo competition,AP photographer Burhan Ozbilici wins 2017 World Press Photo competition for image of Russian ambassador's assassin.,"AP photographer Burhan Ozbilici has won the 2017 World Press Photo competition for his image of the assassin of Russia's ambassador to Turkey. In the photo Mevlut Mert Altintas shouted after shooting Andrei Karlov at an art gallery in Ankara, Turkey, on December 19, last year. Ozbilici's winning photo was part of a series titled ""An Assassination in Turkey"" which also won the Spot News - Stories category, which he captured in the moments before and after Altintas, an off-duty policeman, drew a handgun and shot Karlov at the photo exhibition. READ MORE: Burhan Ozbilici captures Andrey Karlov's final moments ""Don't forget Aleppo. Don't forget Syria!"" the gunman shouted in Turkish, referring to the Syrian city where Russian bombardments had helped to drive rebels from areas they had occupied for years during the war.- Authorities would later confirm that Ambassador Andrey Karlov, 62, was dead. Altintas was killed after a 15-minute shootout. The exhibition, titled ""From Kaliningrad to Kamchatka, from the eyes of travellers"" featured photos from Russia's westernmost Baltic region to the Kamchatka Peninsula, in the east. After the incident, Ozbilici said: ""I decided to attend simply because it was on my way home from the office."" Source:-News agencies", -1044,2017/2/13,http://www.aljazeera.com/indepth/features/2017/01/opioids-sierra-leone-newest-public-health-emergency-170119093804569.html,Opioids: Sierra Leone's newest public health emergency Cooper Inveen,"Opiate addiction has become increasingly common in Sierra Leone, where there are few avenues for drug rehabilitation. By","Freetown, Sierra Leone - The dark street corner would have been silent if not for the grumble of a motorbike. It was nearing midnight, but for Ibrahim Sesay - a 27-year-old motorbike taxi driver in Freetown - the evening had just begun. He pulled four small pills from his breast pocket, gulped them down without water and set off into the night. - - - ""Every night I take tramadol, for the past year at least,"" he explained, referring to the pills. ""Lots of [motorbike taxi drivers] take it. It helps me stay awake while I work, but now I can't do anything without it. I have to take it when I wake up or I feel sick ... It is scares me because I don't really know what to do and I think it's getting worse."" READ MORE: Drug traffic fuels addiction in Sierra Leone Sesay said he had never heard of tramadol - a cheap, opioid painkiller with stimulating effects - until last year's holiday season, when a fellow rider offered him one of the green capsules before a long shift. He started taking just one 225-milligram pill a day, but as continuous use strengthened both his tolerance and dependence, he gradually came to crave higher amounts. Now he takes 900 milligrams, more than twice the recommended maximum daily dosage, and likens the withdrawal symptoms to a heavy bout of malaria. He is not alone. What was until recently a little-known prescription-only medication for treating chronic pain has in the past two years been at the centre of a rapidly expanding addiction crisis in Sierra Leone - a country with virtually no avenues for drug rehabilitation and which remains haunted by an 11-year civil war during which there were high rates of drug abuse among combatants. Propelled by a black market network of importers and sold cheaply under the table by private pharmacies, the problem has become so bad that in August 2016, Sierra Leone's overwhelmed pharmaceutical regulators declared tramadol abuse a public health emergency. - In the 25 years since it was launched on the global market, tramadol dependence has spread through parts of Southeast Asia, the Middle East, North and West Africa and Europe. Fuelled by inaction from international regulators and a steady stream of the product from India and China's swelling generic medication industries, pills imported by unstable or under-regulated countries can be easily be diverted to armed groups or smugglers who move it across the globe. While some countries - including China, Sweden, Australia and the United States - have placed tramadol under their own national controls, the lack of international regulations helps amplify many of the challenges with regulating pharmaceuticals in developing countries such as Sierra Leone, potentially opening the door to a dangerous opioid love affair in the world's poorest communities. ""If things continue as they have been going, we should expect more of the same,"" said Pierre Lapaque, the UN Office on Drugs and Crime's West Africa representative. ""People buy it because it's cheap, yes, but also because it just makes them feel better. It's a vicious cycle ... It's a commodity at the end of the day, and as long as you have someone willing to buy it, there will be someone willing to sell it."" READ MORE: Palestinian refugees struggle with drugs Tramadol first hit the West German market in 1977, after a series of experiments conducted by former Nazi scientist Ernst-Gunther Schenck found the drug to be a safer, non-addictive substitute for heavy painkillers such as morphine when injected. The World Health Organization reaffirmed the drug's ""low abuse liability"" 15 years later, and in 1995-it was FDA-approved, subsequently launching tramadol on to the international market in its common capsule form. But by as early as 2000, the WHO began observing ""craving, drug-seeking behaviour"" in some users, and in 2006 researchers at Johns Hopkins University found tramadol to actually produce stronger opioid effects if taken orally rather than through an injection. When taken orally in high amounts, University of Kentucky addiction researchers wrote in 2012 that tramadol produces similar effects to OxyContin. Amid growing evidence of abuse risk, the United States Drug Enforcement Agency revised their position in 2014, rescheduling the drug as a Schedule IV narcotic. Yet, in he same year the WHO opted not to review tramadol's status for the fourth time since its international debut, this time because of how many tramadol users had prior histories of substance abuse and how few developed countries report abusive or addictive behaviour. Meanwhile, tramadol's addictive qualities were becoming undeniable in parts of the developing world. Tramadol was involved in nearly half of all drug arrests in Gaza in 2009, and the next year Hamas officials burned nearly two million tablets that had been seized from smugglers making their way from Egypt. In January 2016, more than 25,000 kilos of Tramadol that had been mislabelled as bed sheets were intercepted by Greek authorities while en route from India to a holding company in Libya with suspected ties to the Islamic State of Iraq and the Levant (ISIL, also known as ISIS). READ MORE: Egypt's wave of painkiller addiction In 2014, Egypt, Gaza, Jordan, Lebanon, Libya, Mauritius, Saudi Arabia and Togo all reported widespread Tramadol dependence to the WHO. ""The danger is that tramadol isn't listed internationally with popular narcotics such as morphine or OxyContin,"" said Ethelbert Tejan, president of Sierra Leone's Pharmaceutical Business Owners Association. ""If it was listed, it would force governments' hands to try to solve the problem in their own countries, but as of now it's not listed with other harmful narcotics and psychotropics."" ""We have to limit the accessibility options to just private hospitals and specialty clinics, and try to engage medical professionals in finding an alternative to Tramadol that can be imported instead."" Tramadol is only legally available in Sierra Leone with a doctor's prescription and only a small handful of pharmacies are permitted to carry it at all. Yet Tejan and others describe a thriving parallel market for illegal tramadol - pills that are smuggled into Sierra Leone across the country's highly unregulated borders or sold under the table without prescriptions by street hawkers and in neighbourhood pharmacies. ""Right now our biggest problem is people having access to the illegal tramadol, either through peddlers on the streets or pharmacies abusing their privileges,"" said Wilshire Johnson, the president of Sierra Leone's pharmacy board. ""And it's sold cheap, 10 capsules for often less than a pint of beer. We've tried to put in place stronger regulatory mechanisms, which have worked in certain areas, but there are also a lot of hard-to-reach places, and [the pharmacy board] just doesn't have the capacity to identify everyone going around the system."" Johnson believes the rapid expanse in illegal tramadol use over the past two years is rooted in an increase in youth gang activity, accrediting the problem's ongoing nature to a ""general attitude and disposition"" towards illegal activity. While some gang members interviewed for this story did admit to pairing tramadol with alcohol, law-abiding citizens also confessed to daily use, with reasons ranging from increased sexual performance to pain relief during long bouts of manual labour. To Tejan, the solution is a matter of political willpower. He believes Sierra Leone's legal tramadol is imported at a significantly higher rate than it is prescribed and that efforts to sensitise affected communities about tramadol's addictive qualities, such as a recent radio campaign, tend to fall short of expectations, often targeting people like college students who have been shown to be less prone to abuse than members of poorer communities. - ""Sierra Leone has around seven million people with about two thirds relying on traditional herbal remedies and only a third or less even making use of pharmaceutical retailers,"" Tejan said. ""If you have 10 importers for a product that is not widely prescribed medically, you have to start asking questions. It's not a safety risk to limit a product that is not fast moving, so if we can begin to control the importers I believe we will have gone 75 percent of the way."" OPINION: The battle of Cairo\'s Muhammad Mahmoud Street Even if the flow of tramadol into Sierra Leone can be limited, treatment availability remains poor. The country doesn't have any drug rehabilitation centres, and with the average Sierra Leonean making less than $2 a day, most addicts will opt to deal with their illness independently before risking money on personalised treatment in the country's overworked and understaffed government hospitals. - - Others, such as Ibrahim Sesay, are looking for any opportunity to kick their habit. All he needs, he said, is for someone to point him in the right direction. ""It scares me how much I want it, how much I need it to live my life,"" he said, gripping his handlebars. ""All I really want is a way out."" Source:-Al Jazeera", -1045,2017/2/13,http://www.aljazeera.com/indepth/features/2017/01/iraq-turkmen-mobilise-post-isil-future-170102075837918.html,Iraq's Turkmen mobilise for a post-ISIL future Alex Shams,The minority group has long been divided along sectarian lines - but recent events could bring greater unity. By,"When Islamic State fighters (ISIL, also known as ISIS) captured Kirkuk last October, hundreds of people poured on to the streets to help security forces fight back in the northern Iraqi city. Among them were dozens of fighters under the blue-and-white Turkmen banner, representing a rare occasion when Iraq's third-largest ethnic group united to defend the community. Fighters representing the roughly two to three million Iraqi Turkmen - approximately 10 percent of Iraq's population - are part of a wider mobilisation to defend what they call Turkmen Eli, or ""Land of the Turkmen"". This thin swath of land extends northwest to southeast along the frontlines between ISIL, the Iraqi army, and the Kurdistan Regional Government (KRG). Since 2014, thousands of Turkmen have signed up to fight against ISIL, including with the Popular Mobilisation Forces (PMU), a group of predominantly Shia militia that have provided vital momentum to Iraq's war effort but have been also repeatedly accused of committing human rights abuses.- The anti-ISIL Turkmen fighters find themselves facing other Turkmen who have joined ISIL - a dark twist in a war that has seen many communities pitted against each other. READ MORE: The separating walls of Tuz Khurmatu Arshad al-Salihi, head of the Iraqi Turkmen Front, has called for the establishment of an autonomous zone following the retaking of Turkmen regions around Mosul. But many doubt the feasibility of such a zone, particularly given the sectarian divisions that have torn Iraq's Turkmen apart since the toppling of Saddam Hussein in 2003. Iraq's Turkmen have suffered immensely since ISIL's emergence. Mehdi al-Beyati, a spokesperson for the Turkmen Rescue Foundation and former Iraqi minister of human rights, estimates that 600,000 Turkmen have been driven from their homes and scattered into refugee camps. Another 1,200 Turkmen women and children are still being kept as hostages. ""We were completely unable to defend ourselves when the conflict began,"" Beyati told Al Jazeera, noting that the Iraqi government had previously refused to arm the Turkmen.-Meanwhile, he said,-""every single Turkmen region has faced the devastation of its infrastructure - from schools to hospitals, from markets to social services. Economically, everything collapsed. There needs to be serious and urgent reconstruction as well as protection before any refugees will return home."" The Turkmen have been an integral part of the multicultural, multi-confessional mosaic of northern Iraq for centuries.-But after Saddam Hussein took power in 1979, the group became caught up in a violent struggle to cement Arab national identity. In the 1980s they were targeted, alongside Kurds and Assyrians, by ""Arabisation"" campaigns that drove them from their villages and replaced them with Arab population, part of an effort to make ethnic separatism less feasible in Iraq's border regions. The Turkmen language was banned, as were Turkmen names. ""Because of what we lived before 2003, many hoped that a new era would begin for Iraq after the fall of Baathist dictatorship,"" Beyati said. ""Unfortunately, we entered a new stage of repression.""- The lack of security and economic stagnation across Iraq led to violence in the years that followed. The political system installed during the US occupation was based on sectarian representation of Shia Arabs, Sunni Arabs, and Kurds. But the Turkmen were left out, and the system led to increasing social sectarianisation. About 60 percent of Turkmen are Shia Muslims, while most of the remainder is Sunni, although roughly 1 percent are Catholic. There is no alliance unifying Turkmen - they've all made alliances with other political parties, and so there is no representation of the Turkmen as Turkmen. Saad Salloum, Baghdad-based advocate for minority rights Saad Salloum, a Baghdad-based advocate for minority rights, noted that ""after 2003, sectarianism took on a political character in Iraq it had never had before. ""There is no alliance unifying Turkmen - they've all made alliances with other political parties, and so there is no representation of the Turkmen as Turkmen,"" he said. ""The primary challenge facing the Turkmen community currently is internal."" The city of Tal Afar offers a sobering example. It was once home to 200,000 Turkmen, mostly Sunni. As sectarian identity became increasingly important in everyday life and violent incidents against the Shia minority grew in number, the community was left-increasingly ghettoised. A 2007-double truck-bombing-targeting them slaughtered more than 150 people and shattered the veneer of calm that had previously masked tensions. When ISIL swept through Tal Afar, it fuelled sectarian tensionin the city pitting Sunni Turkmen against Shia Turkmen,-who were expelled en masse. It is unclear whether those taking part in the violence will reintegrate post-war alongside the group's victims,if and when they return. Calls for Turkmen autonomy in Iraq avoid delicate questions such as these. Instead, they look to similar self-rule proposals by religious minorities such as the Yezidis and Assyrians as inspiration.-Both groups have received widespread international attention, but the Turkmen's plight has been largely ignored. OPINION: Kirkuk may be key to national reconciliation in Iraq Beyati, whose organisation aids Turkmen refugees, argues that the presence of an autonomous region could reassure refugees hoping to return to their homes. ""We are demanding international protection be extended over Turkmen and other minority regions around Mosul,"" he told Al Jazeera, suggesting a district be created through which Turkmen could advocate for themselves. He also stressed the need to expand Turkmen representation in the Iraqi central government, through a parliamentary quota that would guarantee seats proportional to their numbers. But even if such a proposal manages to bring the fractured Turkmen community together, it's unlikely to succeed without the presence of armed forces to protect returnees.-""Turkmen refugees are afraid they will be prevented from returning to their homes by local actors interested in creating demographic changes,"" Beyati added. Threats of demographic warfare haunt Turkmen history. Following Saddam Hussein's ousting in 2003, Kurdish forces across northern Iraq began a process of Kurdification, ostensibly to reverse the Arabisation policies of previous decades. In practice, this meant uprooting tens of thousands of civilians who had been forced to move to the area through no fault of their own. Turkmen were targeted, as Kurds sought to cement their numbers in areas they hoped to incorporate into a future independent Kurdish state. Nowhere are Kurdish-Turkmen tensions clearer than in Tuz Khurmatu, a city 90 kilometres south of Kirkuk. The population is split between Sunni Kurds and Shia Turkmen, with Turkmen forming a bare majority. But in recent years, Kurdish forces have been in charge of security - and Turkmen claim that dozens of people have been forced from their homes as a result. Turkmen have organised militias to protect themselves and clashes have erupted repeatedly, with the city now divided into barricaded cantons. Kirkuk is no stranger to such divisions, either. In 2014, ISIL briefly occupied the city before being driven out by Kurdish fighters. They have not left since. KRG authorities have been intentionally vague about the future, leaving room for leaders with their own designs. Since the October attack on Kirkuk, authorities have expelled Arab and Turkmen refugees who fled ISIL-controlled areas, accusing them of ""terrorist"" connections. Locals cried foul, but were powerless to stop the move. Historically, the Turkmens' most ardent backer has been Turkey, which is also an ally of the KRG. Since Iraqi forces began preparing to take Mosul from ISIL, Turkey has stressed its intention of participating, drawing Iraqi ire. Baghdad has seen repeated anti-Turkey protests, as many see the move as an attack on Iraqi sovereignty. But Turkish journalist Ceren Kenar told Al Jazeera that the country's interest in Iraq was based on security concerns. ""Both Turkey and the KRG are concerned about possible refugee flow if things in Mosul go wrong,"" Kenar said, noting United Nations warnings that up to one million people could flee. ""Where will these people go?"" She added that Turkey fears Iranian influence in Iraq through its support for the PMU, the Shia-dominated militias that have been involved in forced disappearances and killings of Sunni civilians. ""The violence the [PMU] uses against civilians is not less than what ISIL does,"" she claimed. ""Many civilians in Mosul are afraid of revenge killings."" Many Iraqis, however, are unmoved. Rasha Al Aqeedi, a research fellow at Al Mesbar Studies and Research Centre in Dubai-and a Mosul native who lived there until 2013,-said that many Iraqis opposed Turkish intervention and see it as an ""invading power"" that could threaten national sovereignty. She also described the proposals for Turkmen autonomy as ""unrealistic"", adding that-""for the time being, we're going to see the rule of whoever has arms on the ground"". Source:-Al Jazeera", -1046,2017/2/13,http://www.aljazeera.com/news/2017/02/syrian-government-ready-prisoner-swap-rebels-170213090922871.html,Syrian government 'ready' for prisoner swap with rebels,State media says Assad government 'continuously ready' for prisoner exchange with rebels before upcoming peace talks.,"The Syrian government signalled on Monday that it was ready to agree to prisoner swaps with rebel groups, a confidence-building measure that might help both sides prepare to attend peace talks. The government is ""continuously ready"" for such an exchange with rebel groups, ""particularly in the framework of efforts being made for the coming meeting in Astana"", a news flash on the state-run Al Ikhbariya TV station said, citing an official source. Al Jazeera's Andrew Simmons, reporting from the Turkish city of Gaziantep along the Syrian border, said it was ""difficult to know how significant this is because there have been prisoner swaps in the past"". Russia, Turkey and Iran - who created a trilateral mechanism to enforce the fragile ceasefire in Syria last month in Astana - are set to meet again in the Kazakh capital later this week.- The Kazakh foreign ministry said over the weekend that the Syrian government and rebel delegations had been invited to attend the meetings, set for February 15-16. The meetings in Astana were originally aimed at consolidating the truce in Syria, a nationwide halt in the-fighting established late in December that has steadily fallen apart over the past month.- The Astana talks were also meant to pave the way towards peace negotiations Geneva, tentatively set to begin on February 20.- ""Originally, the thought was this was going to be a final attempt to get the ceasefire really tightened up in advance of the Geneva talks, but now there are suggestions that it could be more than that ... that there is some sort of peace deal on the table that might have legs for Geneva ... [it's] not clear yet,"" said Simmons.- The Syrian government has conducted prisoner exchanges in the past with a wide range of rebel groups under the auspices of the Syrian Red Crescent and the International Committee of the Red Cross.- This month, in a rare move, the Syrian government and rebel groups swapped dozens of female prisoners and hostages, some of them with their children, in Hama province in northwestern Syria. READ MORE: Syria hanged 13,000 in Saydnaya prison - Amnesty Syria's main opposition body approved, on Sunday, a new delegation to take part in Geneva talks later this month, which includes Russian-backed blocs that have been critical of the armed insurrection against Syrian President Bashar al-Assad. The High Negotiation Committee (HNC), the main umbrella group, said in a statement after two days of meetings in the Saudi capital, Riyadh, that the new 21-member negotiating team included members of two dissident alliances with which it has previously been at odds. Those two alliances - the so-called Moscow and Cairo groups - have long disavowed the armed rebellion and insisted that political change can only come through peaceful activism. Their members include a former Syrian government minister with close ties to Moscow. Mohammad Sabra, who was appointed as chief negotiator, told Saudi-owned Al Hadath news channel that the delegation brought together various groups. He also accused unidentified foreign powers of trying to impose their views on the composition of the delegation, an apparent reference to Russia. The body also chose a new head of the negotiating team, Nasr al-Hariri, a veteran opposition figure from southern Syria. The HNC said in the statement the goal of the negotiations was a political transition under UN auspices in which Assad had no role in the future of the country. But it steered away from its previous insistence the Syrian president should leave at the start of a transitional phase. The HNC also said foreign powers had no right to present a vision of Syria's future political system without the consent of Syrians. Russia last month tabled the draft of a proposed new constitution for Syria, though it insisted the document had been circulated for the purposes of discussion only. The HNC represented the opposition in Geneva talks last year, but it was not invited to recently convened talks in the Kazakh capital, Astana. The indirect talks between government and rebel delegates in Astana were held with the aim of shoring up a ceasefire brokered by Turkey and Russia. Source:-Al Jazeera and news agencies", -1047,2017/2/13,http://www.aljazeera.com/news/2017/02/extreme-storms-leave-dead-bolivia-170213085503850.html,Extreme storms leave two dead in Bolivia,"After dealing with the worst drought the country has seen in 25 years, Bolivia reels from freak thunderstorms.","For parts of central South America, the last several weeks have proved to be quite stormy, particularly for Bolivia.- After coming out of one of the worst droughts this country has seen in over 25 years, strong thunderstorms proved deadly this past weekend. Heavy rain caused major flooding in the area around Santa Cruz. Accumulations of over 75 millimetres were recorded in the city of Viru-Viru in just a few hours. Along with the heavy rain the storms also produced massive amounts of hail that looked more like snow in some places. At least two people have died due to the severe weather that hit the country late Friday night into Saturday morning. Strong storms also impacted Bolivia last month during the Dakar Rally.- Several legs of the annual race had to be cancelled when storms caused some roads to become impassable because of flooding and landslides. More rain is forecast this coming week for Bolivia with the northern and northeastern part of the country at risk for more flooding. Source:-Al Jazeera and news agencies", -1048,2017/2/13,http://www.aljazeera.com/news/2017/02/espirito-santo-police-return-work-murder-wave-170213090102756.html,Espirito Santo police return to work after murder wave,"More than 1,000 officers return to work in Espirito Santo state after 144 people are killed during eight-day strike. 'Why are we blamed?'","More than 1,000 police officers have returned to work in Brazil after an eight-day strike plunged a coastal state into violence and saw a dramatic increase in homicides. More than 3,100 army soldiers and members of an elite federal police force helped patrol Espirito Santo state, which saw chaotic looting, assaults, vandalism and a six-fold increase in murders in the past week as police officers refused to work, demanding an increase in pay. Local government officials told Al Jazeera that at least 1,000 officers returned to work on Sunday, while roughly 10,000 still adhered to the strike. With police gone from the streets, there were at least 144 murders since the start of the strike on February 4, officials said. ""The worst seems to be over. Now, we are living one day at a time,"" Alexandre Gois, a resident of Vitoria, the capital of Espirito Santo state told Al Jazeera. ""We supported the strike the first few days. But it has to end, there's been too much violence. The police got what it needed, to show the population it depends on them."" Felipe Alves, one of the policemen, said that the state had yet to make any concession to the officers regarding their monthly pay, which, at about $867, is among the lowest in Brazil, while it accused them of being responsible for the chaos. ""In Brazil, the policemen are blamed for the high levels of violence. But the teachers are not blamed for illiteracy. Neither the doctors for the bad conditions in the health care system."" ""Why are we blamed?"" The state government has warned that 703 officers would be charged with rebellion, an offence that could see them sentenced to between eight and 20 years in prison. Under Brazilian law, it is illegal for police to strike, which is why their family members have taken action to physically prevent police cars leaving barracks. The police themselves have not tried to remove their families, leading to fears among some of the relatives that soldiers could try to remove them by force. On Friday, similar strikes erupted at some of Rio de Janeiro's police stations over unpaid wages, and relatives of officers also blockaded police stations. But police were on duty Sunday morning. Source:-Al Jazeera News", -1049,2017/2/13,http://www.aljazeera.com/news/2017/02/korea-declares-ballistic-missile-test-success-170213085718539.html,N Korea declares ballistic missile test 'success',Kim Jong-un expressed 'great satisfaction' over missile test that triggered US to call for a Security Council meeting. Designed for Trump,"North Korea said it had successfully tested a new ballistic missile, triggering a US-led call for an urgent UN Security Council meeting after a launch seen as a challenge to US President Donald Trump. The North's leader Kim Jong-un ""expressed great satisfaction over the possession of another powerful nuclear attack means which adds to the tremendous might of the country,"" state news agency KCNA said on Monday. The missile was launched on Sunday, near the western city of Kusong, and flew east about 500km before falling into the Sea of Japan (East Sea), South Korea's defence ministry said. Photos released by KCNA showed the missile blasting into the sky with a smiling Kim watching from the command centre, and standing on the launch field surrounded by dozens of cheering soldiers and scientists. READ MORE: North Korea fires ballistic missile, challenging Trump It said Kim ""personally guided"" preparations for Sunday's test, which it described as a surface-to-surface medium long-range Pukguksong-2, a ""Korean-style new type strategic weapon system"". KCNA said the missile was powered by a solid-fuel engine, which requires a far shorter fuelling time than conventional liquid fuel-powered missiles, according to Yun Duk-min of the state-run Institute for Foreign Affairs and Security in Seoul. ""They leave little warning time and, therefore, pose greater threat to opponents,"" he said, adding that such missiles are harder to detect before launch by satellite surveillance. Pyongyang's latest announcement was the first time a Pukguksong-2 has been mentioned, although last August it test-fired what it said was a submarine-launched ballistic missile (SLBM) marked as a Pukguksong-1, a name which translates as ""North Star"". Kim said at the time that the missile, which was launched towards Japan, put the US mainland and the Pacific within striking range. North Korea claims it has developed an intercontinental ballistic missile (ICBM) capable of hitting the US mainland, but it has not tested one as yet. The longest-range missile it has tested is the intermediate Musudan, which is theoretically capable of reaching US bases on Guam, but most have ended in failure including one last October, which exploded shortly after launch. The South has said that Sunday's launch was designed as a test for Trump, who responded to the provocation by pledging ""100 percent"" support for Washington's key regional ally Japan. ""Today's missile launch ... is aimed at drawing global attention to the North by boasting its nuclear and missile capabilities,"" Seoul's defence ministry said Sunday. ""It is also believed that it was an armed provocation to test the response from the new US administration under President Trump,"" it added. The US, Japan and South Korea responded to the North's confirmation by requesting an urgent UN Security Council meeting to discuss the launch. The council is expected to hold consultations on Monday. Japanese Prime Minister Shinzo Abe, whose country would be in range of a hostile North Korean missile launch, called the test ""absolutely intolerable"" during an impromptu press conference with Trump in Florida on Sunday. North Korea is barred under UN resolutions from any use of ballistic missile technology. But six sets of UN sanctions since Pyongyang's first nuclear test in 2006 have failed to halt its drive for what it insists are defensive weapons. Last year, the country conducted two nuclear tests and numerous missile launches in its quest to develop a nuclear weapons system capable of hitting the US mainland. South Korea's acting president, Hwang Kyo-ahn, vowed a ""corresponding punishment"" in response to the launch, which came on the heels of a visit to Seoul by US Secretary of Defense James Mattis this month. Mattis had warned Pyongyang that any nuclear attack would be met with an ""effective and overwhelming"" response. Source:-News agencies", -1050,2017/2/13,http://www.aljazeera.com/news/2017/02/tribe-called-quest-resist-president-agent-orange-170213053500271.html,A Tribe Called Quest: Resist 'President Agent Orange',A Tribe Called Quest joined by Busta Rhymes and Anderson .Paak in politically charged performance at the Grammy Awards.,"US hip-hop group A Tribe Called Quest and rapper Busta Rhymes have lashed out at President Donald Trump at this year's Grammy Awards ceremony, calling him ""President Agent Orange"" and slamming his ""Muslim ban"". In a politically charged performance at Sunday's ceremony, the formation broke through a symbolic border wall and closed by calling on people to ""resist"". ""I wanna thank President Agent Orange for perpetuating all the evil that you're been perpetuating throughout the United States,"" said Busta Rhymes. ""I wanna thank President Agent Orange for your unsuccessful attempt at the Muslim ban. ""But we come together. We the people!"" The rappers, joined by-Grammy-nomiated artist Anderson .Paak,-went on to perform A Tribe Called Quest's latest hit single, We the People. Joined by a diverse group on stage that included a Muslim woman wearing the hijab, they raised their fists and collectively chanted ""resist"" throughout the performance.- A Tribe Called Quest perform with Anderson .Paak, Busta Rhymes and Consequence at the #GRAMMYs pic.twitter.com/Kz35sUTEs7 Source:-Al Jazeera News", -1051,2017/2/13,http://www.aljazeera.com/news/2017/02/thousands-evacuated-california-oroville-dam-collapse-170213040603669.html,Thousands evacuated in California as dam might collapse,Government issues emergency after spillway at the tallest dam in the US is weakened by weeks of heavy rain.,"Nearly 200,000 people living below the tallest dam in the United States have been asked to evacuate as a spillway appeared to be close to collapse. Authorities issued the abrupt evacuation orders at about 00:30 GMT on Monday, saying that a crumbling emergency spillway on the Lake Oroville Dam could give way and unleash raging floodwaters onto a string of rural communities along the Feather River. Officials said the cities of Oroville, Gridley, Live Oak, Marysville, Wheat land, Yuba City, Plumas Lake, and Olivehurst were all under evacuation orders. ""Immediate evacuation from the low levels of Oroville and areas downstream is ordered,"" the Butte County sheriff said in a statement posted on social media. ""This is NOT A Drill."" Evacuation centres were set up in Chico, California, about 20 miles northwest of Oroville, but roads leading out of the area were jammed as residents sought to drive out of the flood zone. Earlier, the California Department of Water Resources said on Facebook that the spillway of California's Oroville Dam was ""predicted to fail within the next hour"". But several hours later the situation appeared less dire as the spillway remained standing. The water resources department said crews using helicopters would drop rocks to fill a huge gouge in the spillway. Authorities were also releasing water to lower the lake's level after weeks of heavy rains in the drought-plagued state. By 06:00 GMT, state and local officials said those efforts had paid off and, with water no longer flowing over the eroded spillway, the immediate danger had passed. But they cautioned that the situation remained unpredictable. Bill Croyle, the acting director of the Water Resources, told a news conference: ""Once you have damage to a structure like that, it's catastrophic."" Meanwhile, a spokesman for the National Guard said it would provide eight helicopters to assist with the spillway's reconstruction and said around 23,000 soldiers and airmen-had been alerted-to be ready to be deployed. Aerial video shows strain on California's Oroville Dam's backup spillway hours before thousands ordered to evacuate. https://t.co/47O8hzBZOS pic.twitter.com/FGuRWFpP0u The Oroville-dam, which serves mainly for water supply, hydroelectricity generation and flood control, activated its emergency spillway after weeks of heavy rain caused the reservoir to rise above its capacity. At 230 metres high, the structure, built between 1962 and 1968, is the tallest dam in the US, higher than the famed Hoover Dam by more than 12 metres. Source:-News agencies", -1052,2017/2/13,http://www.aljazeera.com/indepth/features/2017/02/kashmir-pellet-guns-170212080445939.html,Shot in the eyes: Kashmiri girl tells her story Karishma Vyas,"They dragged me by my hair, beat me with their baton, then shot me with a pellet gun,' says 14-year-old Ifra. By Protests triggered by the death of Burhan Wani- 'No rule of law here'","There are some things about October 31, 2016, that Ifra Shakour says she will never forget. And then there are the hours that she was unconscious. She remembers hunching over school books, cramming for her eighth-grade exams. She recalls hearing bursts of tear gas shells coming from the local market. And she definitely remembers that feeling of dread when she realised that her little brother wasn't home. They caught me by my hair and dragged me. And then they beat me with their baton on my arm. But still they weren't satisfied so they shot me with a pellet gun Ifra Shakour ""I asked my mother what was happening outside,"" the 14-year-old told Al Jazeera in this 101 East documentary.- ""I didn't know what was going on. I closed my books and went out.""- Ifra only made it to her front gate.-The last thing she saw were two uniformed policemen running towards her. ""When I saw them, I got scared. That's why I ran,"" she told Al Jazeera. ""They caught me by my hair and dragged me. And then they beat me with their baton on my arm. But still they weren't satisfied so they shot me with a pellet gun."" This pump action shotgun has been the weapon of choice for security forces in Indian-administered Kashmir for years. It's classified as ""non-lethal"", used to maim rather than kill its victims. Each cartridge carries lead pellets the size and shape of mustard seeds. With the pull of a trigger, the gun sprays hundreds of these tiny balls indiscriminately into the air. Ifra said the policemen shot her at point-blank range. ""After I was hit I couldn't see anything. Blood was coming out of my eyes,"" she said. ""All I could think about was seeing again so I can study, go out with friends, teachers, my family and neighbours. I used to pray to God to make me see again so I can be a doctor."" OPINION: Kashmir and the myth of indivisible India The shooting of Ifra came during the worst protests Indian-administered Kashmir has seen in six years. They were triggered by the killing of Burhan Wani, a young rebel commander who had joined an underground network of separatist guerillas. Wani was an icon and a social media star with thousands of online followers. His death sent shockwaves through India's only Muslim-majority state. Angry protesters flooded the streets, throwing rocks at security forces and demanding independence. READ MORE: Kashmiris decry world's silence over killings The subsequent crackdown by the government was swift and violent. Hospitals struggled to cope with the dead and injured. Some had been severely beaten, others suffered pellet wounds. Ophthalmologists in Srinagar's Shri Maharaja Hari Singh Hospital said they operated day and night, treating at least 1,000 patients with pellets lodged in their eyes. Some, like Ifra, were completely blind. ""She was screaming,"" said her aunt, Rubeena Banu. ""There was blood coming out of her eyes, her ears, her nose. I was so stressed. I couldn't look at her. I thought she would die."" Ifra had three pellets in her right eye and two in her left. ""She had gone out to bring her brother home because there was firing and fighting going on,"" Banu told Al Jazeera. ""What did she do wrong? She didn't have a rock or a gun in her hand. She had just gone to get her brother."" The Indian government has resisted increasing pressure to ban the use of pellet guns against protesters and civilians. ""Banning it would take us straight to using bullets, so it's the lesser evil,"" said Naeem Akhtar, a senior minister in the state government. Every time [there is a protest] the reaction is brute force. Kill the Kashmiris, maim them, blind them Umar Farooq, separatist leader ""Use of disproportionate force is a problem, crowd control is a problem,"" he admitted. ""We want to create an atmosphere where we should not use it. It should be the last resort because it's not for human beings."" But activists and political leaders have accused the government of being disingenuous. For decades, human rights lawyers have been recording a catalogue of complaints against security forces, including cases of extrajudicial killings, torture in custody and rape. They believe abuses in Kashmir are systemic. ""There is absolutely no democracy here, there is no rule of law here, there is no accountability here,"" said Umar Farooq, a separatist leader and the religious head of Kashmiri Muslims. ""Every time [there is a protest] the reaction is brute force. Kill the Kashmiris, maim them, blind them."" Akhtar, the government minister, said the state takes these allegations seriously and is committed to protecting civilians in this 30-year conflict.- ""The government is looking into specific cases of it and wherever we find that there has actually been an established case of disproportionate use of force, we will certainly take action,"" he told Al Jazeera.- ""They will be investigated, compensated."" But when pressed about when these investigations will take place, he said: ""I can't put a time frame on that ""?I don't know."" IN PICTURES: Pellet guns cause severe eye injuries in Kashmir Al Jazeera also requested interviews with the police, the military and the federal government, but none agreed to be interviewed.- Ifra's family does not hold any hope that her case will be investigated. They haven't lodged a complaint with the police. ""If we complain, who knows? Maybe they'll pick up my little nephew and put him in jail,"" said Ifra's aunt, Rubeena. ""That's why we're scared and we won't complain. ""Today this happened to my niece. Another day it will happen to someone else, and someone else the day after that. That's why we say we want an independent Kashmir."" Ifra has had three surgeries to restore her vision, but her sight is still limited. Her relatives say she has stopped studying and barely eats. She spends most of her days sitting alone in the courtyard outside her home. ""My friend used to come to see me every morning but now she doesn't come,"" she said. ""I don't know what has happened. She's busy studying and going to school. She'll graduate but what will I do?"" Source:-Al Jazeera News", -1053,2017/2/13,http://www.aljazeera.com/indepth/features/2017/02/justice-theo-police-abuse-everyday-170212232543684.html,Justice for Theo: 'Police abuse is an everyday thing' Shafik Mandhai,"Activists speak of discrimination and abuse by police, as protests continue after rape of black man in Paris suburb. By Colonial legacy Community initiatives","Paris, France - Youssuf Seck delivered an account of his first run-in with the French police in a calm and detached demeanour that belied what he described. A teenager in the 1990s, Seck had just left friends at a sports club in Paris when he caught the attention of a group of officers. ""I was leaving a game of basketball when they stopped me for a random check,"" Seck said, emphasising the word ""random"". ""They frisked me heavily, and touched my private parts intentionally ""?I just felt very humiliated."" They frisked me heavily, and touched my private parts intentionally ""?I just felt very humiliated Youssuf Seck, Activist Seck, the son of a Senegalese migrant to France and a white French woman, said given his experiences, he was not surprised to hear about the rape of a black Parisian by a French police officer last week. The man, known only by his first name, Theo, was sodomised by the officer using his baton, while being beaten by a group of policemen. Police investigators claim the act was accidental. There have been sometimes violent demonstrations in the suburbs of Paris demanding justice. ""Police abuse is a daily thing in Paris,"" Seck said. ""I'm in my 40s now but when I hear the stories about what the youngsters are experiencing, I know nothing has changed. ""I know everything they're going through.""- Seck leads an activist group called ""Ferguson in Paris""; its name is a nod to the protest movement that developed in the US town of Ferguson, Missouri, when an unarmed black youth was shot dead by police officers in 2014. The group has been at the forefront of the protests against French police in the aftermath of the attack on Theo, and has published live streams of the demonstrations on its Twitter page. Silence now, according to Seck, would be tacit acceptance of the alleged abuses. ""The [police] want to keep minorities in check, they don't like someone who is different to feel empowered,"" he told Al Jazeera. ""The message is, we [police] are in charge and you [minorities] are not ""? Society needs to challenge that idea."" Seck's friend and fellow activist, Youcef Brakni, spoke of similar experiences of abuse as a youth in Paris. ""I remember once during the winter, they [police officers] made us kneel in a freezing puddle of water by the roadside for hours,"" he recalled. ""There was no reason [why] ""? Being stopped by the police always means humiliation, regardless of whether you did something or not."" For Brakni, his Algerian ethnic identity was a crucial element in explaining why French security forces behaved the way they did with youths in the suburbs. Like him, many are Algerian or descendants of migrants from former French colonies. READ MORE: Paris police say rape of black man an 'accident' He said elderly residents of Algerian origin could directly relate their experiences of life during the French occupation of Algeria to what their descendants experience in France today.- ""The methods being taught in the police academies of France are directly inherited from the colonial practices of the casbas in Algiers.- ""Algerian families transmit the tales of defiance and fear from the repression that happened during the Algerian war. ""It goes from grandfather to father to son. ""What they're doing to youth today was applied to our parents and grandparents.""- BLACK FRANCE: A history of France's black community and their long struggle for recognition. Such explanations have some grounding among analysts, according to Leeds University's James House, an expert on the Algerian War of Independence and colonial racism in France. House cautioned that determining the degree of influence of colonial policies on modern policing required further study and that ""the past often informs the present, but rarely totally explains it"". Nevertheless, a link existed between the conduct of police and ""which human group was being policed"", he told Al Jazeera. ""The 10-11 December, 1960 demonstrations in Algiers illustrate this differentiated repression very clearly, for example, with both lethal and non-lethal repression used against Muslim Algerians while European protesters were met with non-lethal repression,"" House said. ""Similarity between colonial and more recent periods might be seen in the way that some police officers act with perceived impunity when dealing with racialised groups in 'non-standard' ways that are likely to go unpunished, unless such actions are made visible, for example ""?through social media."" When asked what could be done to improve relations between ethnic minority youths and the police, both Seck and Brakni said they saw no other way but continued protest and pressure on politicians. Seck, however, did recall improvements during a brief period between the late 1990s and the early part of the last decade, when the police undertook relationship-building initiatives with youths in the suburbs; projects known as ""community policing"". ""We did have some interaction with the police ""?we used to play sports together, such as basketball, football and boxing, but these ended with [then interior minister] Nicolas Sarzoky,"" he said. Academic and author Andrew Hussey, who has written extensively on youth culture in France's mainly ethnic minority suburbs, told Al Jazeera that such forms of policing were needed in today's climate. ""If the police can do anything to salvage trust it's a longer-term, generational change towards community-style policing rather than confrontational, paramilitary-style tactics,"" he said. Neither Seck nor Brakni felt such methods could be reintroduced given the rise of far-right political rhetoric and growing acceptance of racist language. They pointed to an appearance that day by a police official, Luc Poignant, on national television, where he argued that the racial slur ""bamboula"" used for African men was acceptable to use in everyday conversation. The French Minister of the Interior, Bruno Le Roux, later condemned the remarks, but activists are angry that Poignant received no punishment for his comment. ""We can't rely on politicians to change this for us,"" said Seck. ""We activists need to reverse the balance of power."" Police investigators claim Theo was sodomised by accident [Arnaud Journois/Le Parisien] Source:-Al Jazeera", -1054,2017/2/13,http://www.aljazeera.com/news/2017/02/south-korea-summons-samsung-chief-graft-case-170213044510484.html,"South Korea summons Samsung chief in graft case, again",Prosecutors question Lee Jae-yong for second time in part of wider corruption investigation liked to President Park.,"South Korean prosecutors summoned Samsung heir Lee Jae-yong for questioning over bribery allegations again on Monday, less than a month after a Seoul court rejected their request for his arrest. Lee, the de facto head of South Korea's biggest business empire, was called in for questioning on Monday along with two other Samsung executives.- Samsung is suspected of providing tens of millions of dollars in money and favours to President Park Geun-hye and her jailed friend Choi Soon-sil in exchange for government support of a merger deal between two Samsung affiliates in 2015. The merger helped Lee, the billionaire vice chairman of technology giant Samsung Electronics, promote a father-to-son transfer of leadership and wealth at the group. The bribery allegation surfaced as authorities expanded investigations into a political scandal that led to Park's parliamentary impeachment. Prosecutors accuse Park of letting Choi pull government strings from the shadows and extort money from Samsung and other big companies. Prosecutors planned to question Lee over new findings they made in the past few weeks and may consider requesting an arrest warrant for him again, according to prosecution spokesman Lee Kyu-chul. While entering a prosecution office, Lee Jae-yong told reporters that he would faithfully undergo questioning. READ MORE: Prosecutors seek arrest of Samsung heir Lee Jae-yong Prosecutors had sought to arrest Lee when they summoned him last month, but the Seoul Central District Court ruled there was not enough evidence to justify Lee's arrest at that point. Moon Hyung-pyo, the country's former health minister, has been indicted on charges that he pressured the National Pension Service to support the Samsung merger even though the fund's stake in one of the companies lost an estimated hundreds of millions of dollars in value. Park's lawyers scrapped plans to let authorities question Park in person last week to protest media leaks about the timing and location of her interview. The moves come as the country's Constitutional Court deliberates on whether to formally end her rule and trigger an early election to choose her successor. Source:-News agencies", -1055,2017/2/13,http://www.aljazeera.com/news/2017/02/gurbanguly-berdymukhamedov-wins-poll-98-vote-170213060136393.html,Gurbanguly Berdymukhamedov wins poll with 98% of vote,"Being elected for the third time, President Berdymukhamedov, faced eight challengers for the presidency.","Turkmenistan's ruling leader Gurbanguly Berdymukhamedov bagged a fresh seven-year term with nearly 98 percent of a weakly contested vote, electoral officials following a preliminary count. The election commission claimed at a press conference on Monday, in the capital Ashgabat, a turnout of over 97 percent for the poll, in which eight other candidates, viewed as token opponents for Berdymukhamedov, also competed. Casting his vote at a school in Ashgabat on Sunday, the president said the vote would decide ""the fate of the people for the coming seven years"". ""If I am elected, then our policies aimed at improving the welfare of the people will continue,"" Berdymukhamedov said. READ MORE: Gurbanguly Berdymukhamedov set to win elections The former dentist and health minister took power in 2006 after the death of Turkmenistan's first president, Saparmurat Niyazov. Last year, Berdymukhamedov signed off on constitutional changes that paved the way for his lifelong rule by removing upper age limits for presidential candidates. Another change lengthened presidential terms from five to seven years. Voters in Ashgabat overwhelmingly said they were backing Berdymukhamedov on Sunday. READ MORE: Gas pipeline runs through South Asia's tensions One-sided votes are typical in Central Asia, a Muslim-majority ex-Soviet region politically close to Russia and China, where reigning presidents are usually expected to die in power. Although Turkmenistan sits on the world's fourth-largest natural gas reserves, it has failed to diversify export routes and its hydrocarbon-based economy as a whole. In recent years, the country of over five million people has traded its traditional economic reliance on Russia for dependence on China, which buys the vast majority of its gas. Source:-News agencies", -1056,2017/2/13,http://www.aljazeera.com/indepth/features/2017/02/trump-leading-warpath-iran-170203105946707.html,Is Trump leading the US on a warpath with Iran? Ted Regencia,Washington and Tehran dial up war of words as risk of another military action in the Middle East rises. By Now Obama is out and Mattis is back.,"On a spring morning in 2016, a retired four-star general, who was forced out of his job by then-President Barack Obama, spoke before defence and foreign policy experts gathered just blocks from the White House. The 65-year old speaker, with silver hair and puffy eyes, was blunt.-For all the dangers al-Qaeda and the Islamic State of Iraq and the Levant (ISIL, known as ISIS) pose in the Middle East, he warned that the Iranian regime ""is the single most enduring threat to stability and peace"". He recalled that as commander of US troops in the Middle East, the first three questions he would ask his subordinates every morning ""had to do with Iran and Iran and Iran"". ""We only pray, the rest of us outside this town, that someone good is listening here,"" he told the Washington crowd, as he issued an ominous prediction: ""The future is going to be ghastly"", and that ""the next president is going to inherit a mess"". READ MORE: Trump slaps new sanctions on Iran over missile test Nine months later, James Norman Mattis returned to the US capital as defence secretary of President Donald Trump. As the man who oversees the 1.3 million US troops, manages Pentagon's $582.7bn budget, and directs military policy, Mattis has Trump's ear. The US president fondly calls him ""Mad Dog Mattis"", although the former general refers to himself as ""Chaos"", his Marine call sign. Supporters said he is best suited for the defence job because of his combat experience in Iraq and Afghanistan, as well as his ""strategic mind"". Former US defence chief Robert Gates called him a ""warrior-scholar"". But critics said Mattis' fixation with Iran, combined with the president's hostility towards the oil-rich Gulf state, could lead the United States into a replay of Iraq - only this time with a much more ""disastrous"" consequence to the region. Media reports had suggested it's the same eagerness for confrontation with Iran that prompted Obama to fire Mattis as Central Command chief in 2013, at a time when the US and other world powers were trying to engage Tehran and secure a nuclear deal. Already, the war of words between the US and Iran has intensified in the first three weeks of Trump's presidency, with Mattis calling Iran ""the single biggest state sponsor of terrorism in the world"", after-Tehran confirmed it tested mid-range ballistic missiles. Trump himself weighed in on the controversy, posting on social media that Iran ""is playing with fire"", as he ordered new sanctions on 13 Iranian individuals and 12 companies. When asked if a military action is possible, he replied, ""Nothing is off the table"". In response, Tehran fired more test missiles, with one commander of the Revolutionary Guard warning that ""if the enemy falls out of line, our missiles will pour down on them"". Iran also warned of-""dark days to come""-in the case of a military attack. Saeid Golkar, an Iran expert at the Chicago Council on Global Affairs, told Al Jazeera: ""Unfortunately, the relationship between America and Iran is getting very dangerous.- ""I think people in the Trump administration will try to make Iran do something stupid,"" he said, warning of further US actions, such as more sanctions and support for regime change in Tehran. What is also alarming is the bluster coming from the Trump White House, Trita Parsi, founder and president of the National Iranian American Council, told Al Jazeera's Nick Clark.- ""If you only have the ability to dial it up, but not dial it down, that is what is most worrisome right now because it could, unfortunately, lead to a military confrontation,"" he said, as he called on US officials to establish direct contact with Iranian officials to ease the tension.- So far, none of the senior Trump officials have made any public effort to talk with Tehran. Like Trump and Mattis, National Security Adviser Michael Flynn - a former military spy chief - is known as an anti-Iran hardliner. Following the recent missile tests, Flynn came out swinging, with the headline-grabbing statement that the White House is-""putting Iran on notice"". As Trump's campaign advisor in 2016, Flynn had not been shy in expressing his views on Iran, decrying its ""consistent bad behaviour"", while calling Obama's nuclear deal as ""wishful thinking"". Flynn also insisted-in his-Head to Head interview-with Al Jazeera's Mehdi Hasan, that Iran is ""intent on having a nuclear weapon"", despite proof to the contrary from Iran experts. Trump's chief strategist, Stephen K Bannon, is no different from Flynn. Before joining Trump's campaign, he ran the right-wing website Breitbart, which regularly publishes articles critical of Iran. As member of Congress, now-CIA chief Mike Pompeo had also advocated bombing Iran's military facilities, calling Iranian officials-""serial nuclear cheaters"".- Amid this backdrop of hostilities, Mohammad Ali Shabani, Iran Pulse editor of Al-Monitor website, said the possibility of a military standoff ""seems far-fetched at this point"". ""One should understand that statements and tweets do not constitute foreign policy,"" he told Al Jazeera. Shabani said Tehran's ""regional strategic depth"" and the ""complete lack of an international consensus on such a potentially disastrous adventure"" should dissuade Trump and his men from going after Iran militarily. ""This is not to mention the domestic US side, where you have a public that is unlikely to stomach another quagmire that would make Iraq and Afghanistan look like a walk in the park,"" said Shabani. As for Iran, it is ""trying to be a rational actor in foreign policy"", and its officials are ""very careful not to give excuse"" for the US to launch an attack, said-Hamid Reza Gholamzadeh, English editor of Tehran-based Mehr News Agency. ""The two sides are just testing each other,"" he told Al Jazeera. ""President Trump is trying to bully Iran to take action. Iran is not going to act radically to cause war between the two countries."" But even without military confrontation, Gholamzadeh said Trump's rhetoric and the recent ban on Iranians entering the US have already alienated many Iranians and united them against the new US president. On Friday, hundreds of thousands of Iranians marched nationwide to mark the 38th anniversary of the Islamic Revolution-and denounce Trump.- Meanwhile, Hillary Mann Leverett, Middle East advisor to Presidents George W Bush and Bill Clinton, told Al Jazeera's News Hour that there is a ""misimpression"" among many American strategic planners that because of US military dominance, it can impose its will ""wherever it chooses to"", including in Iran.- ""But what they don't understand, and what has happened over and over again, whether it's Iraq, Afghanistan, even Vietnam, is that we are not there. We are not in Iran. ""We don't have much at stake as those who actually live there.-So, even a weaker party like Iran, compared to the United States, it has so much more at stake in the Middle East that it can really repel what the US may try to do it."" Source:-Al Jazeera News", -1057,2017/2/13,http://www.aljazeera.com/news/2017/02/journalists-arrested-false-news-mutiny-170213035829283.html,Six journalists arrested over 'false news' on mutiny,"Journalist and media owners held for 'spreading false information' about a mutiny by security forces, officials say.","Six journalists, including three media owners, have been arrested in the Ivory Coast for ""spreading false information"" about a mutiny by security forces, their newspapers and the public prosecutor said. The move came after elite forces became the latest troops to protest over pay in recent weeks in the West African nation, firing into the air in the army barracks town of Adiake. ""Regarding recent action taken by the military ... we have come to believe that certain media organisations are spreading false information in a bid to encourage soldiers to revolt,"" said a statement from the public prosecutor broadcast on national television on Sunday. The editor and owner of the independent dailies L'Inter and SoirInfo were arrested and held in a police camp in the capital Abidjan, along with the editors and owners of the opposition newspapers Le Temps and Notre Voie. READ MORE: Ivory Coast minister freed after troops mutiny deal The journalists will be questioned to ""find out where responsibility lies"" for the alleged false information, the prosecutor said. They were arrested on suspicion of breaking the law which forbids inciting rebellion among the military, attacking state authority and publishing false information relating to defence and state security, the statement added. The elite forces mutinied in Adiake, some 90km from Abidjan, between Tuesday and Thursday, but later ""apologised to the authorities"" according to a high-level military source. Troops first launched a mutiny over pay on January 5. Those protests subsided when the government reached a deal with 8,500 mutineers, agreeing to give them 12 million CFA francs ($19,000) each. However, more soldiers have since taken to the streets demanding similar bonuses. Last year, Ivory Coast approved an ambitious military budget to modernise the army and buy new equipment. But the $1.3 billion pot would be insufficient to offer similar payments to all of the country's 23,000-strong security forces. Source:-News agencies", -1058,2017/2/12,http://www.aljazeera.com/news/2017/02/mexico-massive-anti-trump-rallies-staged-nation-170212193436943.html,Mexico: Massive anti-Trump rallies staged across nation,Marches get under way in some 20 cities across country to protest US President Trump's anti-Mexican rhetoric.,"Mexicans have held massive protests against US President Donald Trump, hitting back at his anti-Mexican rhetoric and vows to make Mexico pay for a ""big, beautiful"" border wall between the two countries. Marches got under way on Sunday in some 20 cities across the country, including the capital, Mexico City, where thousands of people flooded a central avenue dressed in white and waving the red, white and green of the Mexican flag. Al Jazeera's John Holman, reporting from Mexico City, said this was the first mass protest against Trump in the country. ""It really marks the point in which the promises of his campaign - building a border wall that he expects Mexico to pay for, import tariffs of Mexican goods heading to the US and mass deportation of Mexican migrants - are starting to look like they could be a reality under President Donald Trump,"" he said. ""That's really what the people here have gathered to denounce,"" Holman said. When asked why she had decided to take part in the march, a protester told Al Jazeera: ""Putting it in words, there's this hate that he seems to have for us, when we've never done anything to the United States."" Dozens of universities, business associations and civic organisations backed the protest. ""It is time we citizens combine forces and unite our voices to show our indignation and rejection of President Trump, while contributing to the search for concrete solutions,"" said the coalition behind the marches. US-Mexican relations have plunged to their lowest point in decades since Trump took office on January 20. Trump, who launched his presidential campaign calling Mexican immigrants ""criminals"" and ""rapists"", has infuriated the US' southern neighbour. He also announced plans to stop illegal immigration by building a wall on the border and make Mexico pay for it. Mexican President Enrique Pena Nieto cancelled a January 31 trip to Washington over Trump's insistence that Mexico pay for the wall. OPINION: Mexico needs to stop accommodating Trump Trump has also wrought havoc on the Mexican economy with his threats to terminate the country's trade relationship with the US, blaming Mexico for the loss of jobs in the country. The Mexican peso has taken a beating nearly every time Trump insisted on renegotiating the North American Free Trade Agreement (NAFTA), attacked carmakers and other companies that manufacture in Mexico, or vowed to slap steep tariffs on Mexican-made goods. 'Mexico united will never be defeated': Mexicans call for unity against Trump. No one's been able to unite Mexico this way @NBCNews pic.twitter.com/cMp7iznDrD Mexico sends 80 percent of its exports to the US, nearly $300bn in goods in 2015. The confrontation has stoked patriotic pride in Mexico, where US companies like Starbucks, Coca-Cola and McDonald's are the targets of boycott campaigns and many people have taken to putting the Mexican flag in their profile pictures on social media. Source:-Al Jazeera and news agencies", -1059,2017/2/12,http://www.aljazeera.com/news/2017/02/calhoun-college-yale-drop-slavery-advocate-170212201205666.html,Calhoun College: Yale to drop slavery advocate's name,"Activists underwhelmed by US university's move, say change of name from a 'bad person to a good person' is not enough. 'No corrective move'","After years of protests, Yale University has announced that it will change the name of a residential college that honoured a 19th-century white male supremacist and-ardent supporter of slavery. The US university said on Saturday it would rename Calhoun College after Grace Hopper College, a female Yale alumnus who invented a pioneering computer programming language and became a Navy rear admiral. Yale said it was the final decision in a controversy over former US Vice President John C Calhoun's legacy that had simmered for years and boiled over with campus protests in 2015. Four people were arrested in a peaceful protest as recent as Friday after they blocked street traffic. READ MORE: Why we still need Black History Month in the US Peter Salovey, Yale president, said the name change was not a decision ""we take lightly"" but that Calhoun's legacy as ""a national leader who passionately promoted slavery as a 'positive good' fundamentally conflicts with Yale's mission and values"". Salovey held a different opinion last year, when he said the name would be kept, despite protests. ""At that time, as now, I was committed to confronting, not erasing, our history,"" Salovey said. ""I was concerned about inviting a series of name changes that would obscure Yale's past."" University officials also said that the symbols of Calhoun on campus will not be removed, such as engravings and a statue atop the landmark Harkness Tower. Chris Rabb, a 1992 Yale graduate, told the AFP news agency that just changing the name from a ""bad person to a good person"" is not enough. Rabb has spoken out against the name since his own days living at Calhoun College. He successfully lobbied for the removal of a stained glass window depicting a black man in shackles kneeling before Calhoun. ""I'm underwhelmed,"" said Rabb, an educator and state representative in Pennsylvania who cofounded an alumni network for black Yale graduates. ""This choice makes no corrective move toward reconciliation in light of not just the legacy of John C Calhoun, but Yale University's ties to slavery and systemic racism."" Calhoun, a member of the Yale class of 1804, was a senator from South Carolina and a leading voice for those opposed to abolishing slavery. He served as US vice president from 1825 to 1832. The decision to name one of Yale's 12 colleges after him in 1931- and decorate it with depictions celebrating plantation life - was controversial at the time and triggered demonstrations by black students. Source:-News agencies", -1060,2017/2/12,http://www.aljazeera.com/news/2017/02/tens-thousands-defy-cold-protest-13th-day-170212201336791.html,Tens of thousands defy cold to protest for 13th day,"At least 60,000 gather in Bucharest to call for the government's resignation for trying to curb anti-corruption fight. Public anger","Tens of thousands of Romanians have braved freezing temperatures to protest for a 13th consecutive day, demanding the resignation of the government for trying to curb the fight against corruption. At least 60,000 people on Sunday gathered in Victory Square in the capital, Bucharest, according to local media estimations. OPINION: Romania - Keep the corrupt in jail, where they belong Shouting ""resign, resign"", the protesters also formed a huge human Romanian flag in front of the government building,-defying temperatures as low as -7 degrees Celsius.- There were also protests in the cities of Cluj, Sibiu, Iasi, and Timisoara, as well as a counter-demonstration in Bucharest outside the presidential palace. The mass protests started last month when the centre-left government passed an emergency decree that would have watered down laws that punish official corruption. Prime Minister Sorin Grindeanu withdrew the decree after the biggest street protests since communism ended in 1989. OPINION: Romania's gift of hope to the world The emergency decree decriminalised criminal punishments for conflict of interest, work negligence and abuse of power cases in which the financial damage is valued at less than $48,000.- Justice Minister Florin Lordache-resigned last week over widespread public anger. Al Jazeera's Hoda Abdel-Hamid, reporting from the demonstration in Victory Square, said: ""It is quite a big protest, against the expectations of many people who were fearing that the cold weather, and the fact that the government had rescinded this decree that really sparked all this popular anger, would have made many people stay at home."" Source:-Al Jazeera and news agencies", -1061,2017/2/12,http://www.aljazeera.com/programmes/insidestory/2017/02/future-relations-170212201356885.html,What is the future of US-UN relations?,Is Washington's 'disappointment' with UN's nominee for Libya envoy a sign of a growing rift between the two sides?,"Relations between the United States and the United Nations have sometimes been rocky. Various US governments have threatened to cut its funding or even have it moved out of its headquarters in New York. But the US is still the biggest financial backer of the agency. Now, US President Donald Trump's administration is rejecting the UN's nominee - Salam Fayyad - for the role of peace envoy to Libya. Fayyad is a former Palestinian prime minister. The UN says he would be serving in a personal capacity, and not as a representative of any government. But Nikki Haley,-the new US ambassador to the UN, is moving to block his appointment. She says Trump's administration is ""very disappointed"" at his selection for this role because in her words, to ""the detriment of Israel'. So, are these signs of a growing rift between a superpower and an organisation meant to bring the world together? Presenter: Sami Zeidan Guests: Mouin Rabbani - Former head of political affairs at the Office of the UN Special Envoy for Syria. Ambassador Mokhtar Lamani - Former Arab League and UN diplomat. Scottie Nell Hughes - Chief political correspondent for USA Radio Network. Source:-Al Jazeera News", -1062,2017/2/12,http://www.aljazeera.com/indepth/opinion/2017/02/blue-skies-somalia-170212083445301.html,,,"The stage seemed set for a ceremonial rubber-stamping of the status quo. Some of the new parliamentarians, many of who came through a corrupt process supported by domestic and foreign elements, started to arrive late and, at times, act unprofessionally on the floor. Key officials, including the speakers of both chambers of the Federal Parliament, were awkwardly seated under the stage where ballots were being cast for the most important election in Somalia's history.-And the event itself was being conducted in Halane district, a geographical space that is physically located in Mogadishu, but in reality is entirely a different world - it is a type of a ""Green Zone"" for UN agencies, diplomatic missions, and private security. But, we now know that bad optics don't always result in bad outcomes. Unlike what the beneficiaries of the status quo were expecting, February 8 has turned out to be a day of triumph for a nation that has fallen into a state of hopelessness and a day that would permanently be engraved in Somalia's history. Against all odds, and in line with the public sentiment, Mohamed Abdullahi Mohamed (Farmajo) was elected president of Somalia. But what caused this public euphoria, and what does it mean in the grand scale of things? The inter-clan and intergenerational jubilations across Somalia, the neighbouring countries and within the Somali diaspora demonstrate that the new president's reputation transcends clan loyalties and that he has a clear public mandate.-Both sides of the divided city of Galkayo celebrated, as did the city of Beledweyne. In both of these cities, brothers and sisters have been kept apart due to inter-clan hostilities. Make no mistake: From the public perspective, this is a time of reckoning. This was not just a referendum against domestic evils of corruption and pathological looting of public resources and national assets. This was the roar of a nation that reached its tipping point. First, it was a total rejection of clan-based federalism that kept Somalia dizzied and in a downward spin of discord, violence, and hate. This was a system engineered by foreigners and institutionalised by the ""Yes, Sir"" corner of the Somali political elite. Second, it was a rejection of the injustice of the so-called 4.5 clan power-sharing system,-which clusters all Somali minority communities into a less-than-a-whole-clan category - in other words, a flagrantly discriminative system that sidelines all minority groups, regardless of population sizes, and penalises them for never having their own clan-based militias. Third, it was a rejection of all types of foreign exploitation and foreign domination. Especially, against the subservient role that the current class of Somali politicians have succumbed to, in relation to Ethiopia and, to a certain degree, Kenya. Fourth, it was a rejection of all those too familiar foreign-orchestrated and funded pseudo-reconciliation powwows that almost always end up with phoney handshakes in Addis Ababa. It was a public demand for genuine, Somali-led and funded national reconciliation to close a bloody chapter that corroded ""Somalinimo""-- the collective sense of inclusive patriotism. Fifth, it was a rejection of what I call the tripartite of squanderance - the United Nations Assistance Mission in Somalia (UNSOM), the-African Union Mission in Somalia (AMISOM) and international NGOs that gulp down almost all of the funds contributed by donor nations to help Somalia get back on its feet. In its current status, Somalia has been under what looked like, felt like, and smelled like ""trusteeship"" without any trustee accountability. The implementation authority was divided between and-Intergovernmental Authority on Development (IGAD) and UNSOM, which would give the tacit, and sometimes flagrant, support to politicians who would never question or second-guess their decisions vis-a-vis the interest of their nation. I urge the new president to consider reaching out to our brethren in Somaliland by extending a state apology for their suffering under the military government and taking the flag to them as they have done after independence. - Somalia became a lucrative project and the only way to sustain that project was to keep it on perpetual dependency on handouts funnelled through international NGOs which spend most of the aid monies on ""overhead"". They also subcontract local NGOs, which duplicate the same formula. Meanwhile, due to lack of an interconnected and unified security force that could be referred to as a national army or defence force, the government, and the nation as a whole, rely heavily on AMISOM and other paramilitary groups ranging from clan militias and contracted mercenaries, who are accountable to no one. Though in the beginning of its mission, AMISOM contributed to the stabilisation of Somalia, it became a hopelessly failed enterprise the minute Ethiopia and Kenya became part of it. Now, AMISOM is operating on a different agenda. Ironically, its timeline for withdrawal is set for 2020, when the next election will take place. The new president is charged to lead a nation that has systematically lost its national identity, trust, and common purpose; a nation that has been running on empty when it comes to patience; a nation that has very anxious expectations. Knowing the new president well and having worked with him, I am confident that he will put Somalia's interest before all others'. He is a champion of an enlightened patriotism that is optimistic and relies on itself to restore the corroded dignity of a self-destructive nation. The sustainability of his legitimacy, popularity and his vision for a viable Somali nation would depend on the sacrifices that he makes for genuine reconciliation and transformative change. On this, I urge the new president to consider reaching out to our brethren in Somaliland by extending a state apology for their suffering under the military government and taking the flag to them, as they have done after independence. I believe such timely symbolism could inspire a new generation of peacemakers, set the stage for genuine national reconciliation, and help patch together this broken nation. - Editor's note: The original version of this article contained incorrect information about the make-up of Farmajo's cabinet when he was a prime minister.- Abukar Arman is a Somali political analyst, writer and former diplomat. The views expressed in this article are the authors' own and do not necessarily reflect Al Jazeera's editorial policy.-", -1063,2017/2/12,http://www.aljazeera.com/news/2017/02/erdogan-turkish-troops-isil-bastion-al-bab-170212115151375.html,Erdogan: Turkish army will press on to ISIL-held Raqqa,"President Erdogan says Turkey's military incursion into northern Syria aims to cleanse a 5,000sq km 'safe zone'.","Turkey's President Recep Tayyip Erdogan has said the final goal of a Turkish incursion into northern Syria is to clear a 5,000sq-km ""safe zone"", vowing to press on towards ISIL's self-declared capital in the country, Raqqa. Turkish troops and their Syrian rebel allies had entered the centre of the ISIL bastion Al Bab, Erdogan said on Sunday, adding that-its capture was just a ""matter of time"". ""After Al Bab is about to be over, the period following that will be Manbij and Raqqa,"" Erdogan told journalists before his departure on an official visit to Bahrain, Saudi Arabia and Qatar.- ""We shared our thoughts with the new US administration and CIA and we will follow the developments in line with our stance,"" he added. ""The ultimate goal is to establish a safe zone by cleansing a 4,000 to 5,000sq km area from the terrorists."" ISIL, which stands for Islamic State of Iraq and the Levant, and is also known as ISIS, captured Raqqa in northern Syria in March 2013. Erdogan said ISIL fighters had begun deserting Al Bab, but the Syrian Observatory for Human Rights said Turkish troops have yet to enter the town's centre. The UK-based war monitor, which relies on a network of activists inside Syria, said Turkish forces had advanced into Al Bab from the west in recent days, and now controlled around 10 percent of the town and all of its western suburbs. READ MORE: Syria operations 'will continue until the end', says Erdogan The Turkish army launched a campaign inside Syria on August 24, codenamed Euphrates Shield, to clean its border from ISIL fighters and stop the advance of Kurdish militia, seen by Turkey-as a ""terrorist"" hostile force. Erdogan said Turkish forces had no intention of staying in Syria once the area had been cleared of both ISIL and Kurdish YPG fighters. The Turkish-backed opposition forces advancing from the north are racing to seize Al Bab, ISIL's last stronghold in the northern province of Aleppo. before Syrian government forces reach the town from the south. The Turkish-backed forces are still a long way from Raqqa, which is largely surrounded by US-backed Syrian Kurdish forces. Last week, the Kurdish-led Syria Democratic Forces launched a new phase in its Raqqa offensive, aiming to capture towns and villages east of the city. The US-led coalition has targeted several bridges across the Euphrates River in support of the operation. ""The potential for further conflict is clear to see, unless some sort of solution has been agreed between Turkey, the US, Russia and the Kurds,"" Al Jazeera's Andrew Simmons, reporting from Gaziantep, on the Turkish side of the Syria-Turkey border, said. Simmons said a border buffer zone, safe areas and no-fly zones had all been proposed by Turkey in the past, but rejected by the administration of ex-US President Barack Obama. ""Now, have things changed? Has US President Donald Trump agreed to something? It isn't clear at this stage, but Erdogan is insisting that he suggested cities being built in this safe area and refugees coming back from Turkey to be settled in them,"" Simmons said. READ MORE: Displaced Syrians stuck in limbo at Idlib's Taiba camp The clashes in Al Bab have proved the toughest so far for Turkey's army, with soldier fatalities increasing. One Turkish soldier was killed and three others wounded in clashes with fighters on Sunday, the private Dogan news agency reported, citing military sources. The latest casualty raised the number of Turkish troops killed in the Syria offensive to 67. The three injured troops were evacuated from Al Bab and taken to hospitals in Turkey's Kilis and Gaziantep provinces near the Syrian border, Dogan reported. Source:-Al Jazeera and news agencies", -1064,2017/2/12,http://www.aljazeera.com/news/2017/02/frank-walter-steinmeier-elected-germany-president-170212145524657.html,Frank-Walter Steinmeier elected as Germany's president,German politicians elect former foreign minister by an overwhelming majority to be the country's new president.,"Frank-Walter Steinmeier, Germany's former foreign minister, has been elected as the country's new president, the 12th person to hold the largely ceremonial post in the post-war era. Steinmeier on Sunday won-931 out of 1,239 valid votes cast by the members of the Federal Assembly, which is made up of 630 federal members of parliament and an equal number of delegates from 16 states. ""Let's be brave, because then we don't have to be afraid of the future,"" Steinmeier said in his acceptance speech. He said the world faces ""rough times,"" but that Germany, as a functioning democracy, had the responsibility to fight for stability. German Chancellor Angela Merkel congratulated Steinmeier-and said she was convinced he would be an excellent president who would have the support of the vast majority of the people. ""This is a good day for Germany,"" Merkel said. A seasoned Social Democrat politician who had served as foreign minister until last month,-Steinmeier-had the support of Chancellor Angela Merkel's ""grand coalition"" of centre-right and centre-left parties. ""I would like, as federal president, to be something of a counterweight to the current tendency towards boundless simplification,"" Steinmeier, 61,-said before the election. While on a tour of Germany to promote his candidacy, Steinmeier-emphasised mutual respect, strengthening democracy, taking a broader view, tolerance and solidarity as the ideas that will inform his presidency. His predecessor, Joachim Gauck, steps down on March 18. The German president has little executive power, but is considered an important moral authority and symbol of the country as its host for visiting dignitaries. Source:-News agencies", -1065,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156750.htm,The leader China never forgot,,"In new biography, author recalls former prime minister Edward Heath's meetings with nation's legendary figures Michael McManus believes Edward Heath was a pivotal figure in China's opening up to the West. The former British prime minister - who is the subject of the author's new biography - famously first met with Chairman Mao in 1974 and was a regular visitor thereafter to the country that has since become the world's second-largest economy. ""They (the Chinese) respected him probably more than anyone apart from Nixon or Kissinger. He was saying we needed to take China seriously and start parlaying with them to realize the economic and political power there is there,"" he says. - Michael McManus says Heath was always a celebrity statesman in China. Nick J.b. Moore / For China Daily McManus, speaking in an open air cafe near his home in Southwark in central London, says Heath always had a sense of the big global picture. ""Heath and Kissinger understood in the 1970s that you have this obvious enemy, which was then the Soviet Union, and that China needed to be dealt with separately. It is a classic Napoleon principle of international diplomacy. There was a natural tendency for state socialist countries to gather together but there was a recognition that China had its own different interests."" McManus, who was political secretary to Heath for the five years up to 2000, has spared the former leader no blushes in a highly revelatory biography. At first glance, Edward Heath: A Singular Life, appears to be a hagiography, with long passages of reminiscences from people who knew him best, but these often provide very personal information. They include details such as the dyeing of his hair brilliant white (despite a brief dalliance with strawberry blond), insisting his assistants carried with them a bottle of malt whisky when traveling as essential medicine and also insights into his much-debated sexuality. ""Quite a lot of his friends and advisers have died but there is still a few around. I thought this was the last opportunity to get from them firsthand accounts."" The writer believes this gave him the opportunity to produce a rounder picture of his subject than either of his most recent biographers - John Campbell and Philip Ziegler - had provided. ""I wanted to get to the core of the man much more. I think John Campbell didn't know Heath. Philip Ziegler worked with him for a time at the Foreign Office in the 1960s but nobody who really knew him had ever written a book about him."" McManus says the visit Heath made to China in 1974, during which he met Mao, had personal significance for his former boss. He was almost uniquely treated as head of government, even though he had just lost a general election and was only leader of the opposition. ""It had been an otherwise awful year for him. He had lost office, the IRA bombed his house and his godson died in the Morning Cloud disaster (when Heath's racing yacht sank),"" he recalls. ""The one positive thing was this amazing trip to China, where he met these legendary figures, Zhou Enlai and Mao, and was treated as an international statesman."" McManus, who took a first in philosophy, politics and economics at Oxford University, began his career working in the political section of the Conservative Research Department. When he worked for Heath as political secretary one of his tasks was to persuade him to write his much-awaited memoirs. The former prime minister had already had to return an advance from a publisher with them being almost two decades overdue. ""The process was descending into farce. I said to him, 'Do you want me to do it?' He said yes and I said, 'OK, but you must cooperate. I am not going to mess about',"" he recalls. ""He didn't normally respond well to being told what to do but he eventually said defensively, 'Yes, of course.'"" The much-awaited autobiography, The Course of My Life, drafted extensively by McManus, came out the following year and was well received. ""The fact it happened at all got an extra star. It was worth a star for just happening. I wouldn't say I am proud of it because it wasn't my book, but I am proud of the achievement of getting it done."" After leaving Heath's employment, the writer stood for parliament himself as a Conservative candidate before working for, among others, the public relations consultancy Bell Pottinger. He became a full-time writer in 2014. He is planning to follow up his biography with a political play based on Heath, who was also a world-class yachtsman, winning the Sydney to Hobart race in 1969, as well as an accomplished musician. ""It would be about him. I think there would be a lot of humor in it because I tried to get a lot of humor in the book."" One startling aspect of the book is when McManus comes to the conclusion he did not actually like Heath. ""Somebody came up to me the other day and said he was moved to tears by the bit where I tried to decide whether I liked him or not. I respected him, even was quite fond of him, but didn't naturally warm to him."" Heath remains a relevant figure in modern UK politics, since last June's Brexit decision by the British people undid his greatest legacy of leading the UK into what was then the European Economic Community in 1973. ""He was Mr Europe so Europe was always right, even when it was wrong. He backed himself into a corner on the subject and became out of touch with his own party on the issue. It was frustrating for those of us who worked with him because he became intemperate on the subject,"" he says. McManus, who accompanied Heath on three visits to China, says he wasn't always that polite in private about some of the food he was served on his visits. ""Some of the things made him go a bit pale, especially those that came bubbling up in the soup that might have been better left in the sea. He was the model of a good guest because the hospitality was so good and he tried not to let it show."" Heath, a lifelong bachelor, is currently subject to a controversial ongoing investigation by Wiltshire Police for alleged historical sex offenses, the evidence for which one leading criminologist described in The Guardian in November last year as ""fantastical"". ""I think he was actually asexual. I don't like the word because it almost dehumanizes someone but he was as close to it as anyone I have ever known,"" he says. ""His closest friendships were generally with women, including Katharine Graham (the late proprietor of The Washington Post)."" Heath continues to have a China connection with his house Arundells in Salisbury - one of only three 20th Century British prime minister homes open to the public - being saved by an injection of funding by Beijing-based businessman Peter Batey, also a former Heath political secretary. ""I think he just felt like a big man in China. Every time I went with him - and he was an old man by then, without any real influence - he was treated with this sort of reverence by the Chinese,"" he says. ""He was a celebrity statesman, who had the red carpet rolled out for him, and always meeting someone in the top three or four of the hierarchy."" andrewmoody@chinadaily.com.cn (China Daily European Weekly 02/10/2017 page32)", -1066,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156749.htm,Building trust in the big data boom,,"BBD recruits British experts in its quest for more reliable and useful information In our information age, with its conflicting and sometimes debatable news stories, reliable and ready-to-use data may be hard to come by. This challenge has prompted Chinese big data company BBD to develop innovative algorithms to revolutionize financial data analysis using the UK's own financial industry as a key platform. After a year in the UK, BBD has established a research and development center in Cambridge and has started developing several UK-targeted products, one of which will focus on opportunities in the Belt and Road project and another which attempts to assess the credibility of crowdfunding platforms. BBD, founded in Chengdu in 2013, initially made a name for itself with the launch of a New Economy Index two years ago to track China's new rising industries such as energy and tech, providing the government and investors with fresh ideas on where the latest secrets of economic growth might be uncovered. Chinese big data company BBD has established a research and development center in Cambridge and has started developing several UK-targeted products. Provided to China Daily Since the NEI's success, BBD has continued to develop algorithms which gather real time data to provide investors with valuable information for credit and stock analysis. Its stock clients include big names such as Guoking Securities, Shenzhen Stock Exchange and KPMG in China. Within the space of three years, the firm has grown and now employs around 500 people. It established subsidiaries in Beijing, Guizhou, Shenzhen and Singapore before entering the UK. Its success in China was confirmed when the think tank China Center for Information Industry Development included the company in its China Big Data Top 50 list. BBD is also a member of the Zhongguancun Big Data Industry Alliance and the Beijing Municipal Bureau of Financial Work, both powerful tech-driven organizations. Helen Wang, the company's chief executive in Britain, says the R&D center in Cambridge will enable it to utilize the research strength in crowdfunding at the city's university and work with its experts to extend big data's application to bio data. Wang says: ""By working with a leading research institute in crowdfunding, BBD can contribute to China's peer-to-peer industry, which is increasingly in need of regulation and supervision."" Using the same methods employed in the China New Economy Index, BBD is using its presence in the UK to develop products that track growth opportunities in the Belt and Road countries. Wang says Belt and Road based products could help investors target investment strategies at countries that receive high growth rankings. BBD's expansion into the UK happened on the back of a boom in China's big-data industry, which enjoys the advantage of abundant data due to the nation's large population, heavy investment in the sector and a large number of well-qualified engineers. While the size of the sector is hard to determine because it has only taken off in the past five years, the Beijing-based intelligence firm Analysis International estimates that big data-related marketing services in China grew by more than 150 percent to 2 billion yuan ($300 million; 278.1 million euros; 240.2 million) in 2015, and is forecast to increase to 27.7 billion yuan by 2018. Globally, the big-data market potential is huge. German-based data firm Statista estimates the market value in 2015 was worth $22.6 billion, which is expected to almost double to $40.8 billion by 2018, and reach $92.2 billion by 2026. Such rapid growth in the big data sector also means the development of the industry is racing ahead of the regulators, and investors at times do not know who they can trust. Increasing difficulty in garnering funding from traditional sources has led to a surge of crowdfunding platforms, which gather money from individual investors and lend to borrowers who lack the ability to borrow from mainstream banks. Witnessing the need for investors to reliably measure the risks of different crowdfunding platforms, BBD is now developing crowdfunding indices, including one version specific to the UK market, expected to be launched in the second half of this year. Helen Wang says: ""We hope to capture information from public sources to create an index that rates crowdfunding platforms. The key users of this index would be businesses, investors and government regulators. ""In addition to the information BBD hopes to capture from public sources, it will also work with crowdfunding firms and platforms and hope they can provide more data."" Wang continues: ""We work with them because our end goal is to help provide a system to enable more transparency and integrity, and thus strive for sustainable and healthy development for the industry."" Wang, originally from Chengdu, has worked in London's financial services industry since 2002, and over the years has witnessed dramatic ups and downs in the industry. In 2008, the year Lehman Brothers collapsed, she was already assistant vice-president of Deutsche Bank and, despite the economic downturn, experienced another major career progression in 2009, joining JP Morgan as a vice-president. But in 2012 Wang made a brave career change, when she resigned from her post at JP Morgan. She says: ""Many people couldn't understand my decision, because back then many people were losing their jobs. People said to me I was lucky to still have my job. However, I felt strongly that there is a new wave of new financial sector opportunities emerging between the UK and China, and I wanted to be a part of it."" It's this attitude, perhaps, that has made Wang the perfect fit for BBD's UK expansions, and she says she has come to realize two important lessons in the past year. It is vital to realize market differences and leverage local resources. She says: ""Through market research we noticed a big difference between the Chinese and UK big data industries. In China, many big data firms are still focusing on data gathering, but the UK's big data industry is more analysis-driven, which is more sophisticated than data mining, and that's what we are doing in the UK."" Effectively, BBD's China domestic market-oriented products focus on gathering data for users using its unique algorithms, but its UK products, such as the Belt and Road index, focus more on providing new sources of thinking for investors. Secondly, BBD is using the UK's local talent for new product development, especially at Cambridge, where its operating model is sponsoring researchers to complete research on topics of the company choosing. BBD has also appointed influential British academics and business leaders as directors. Alan Barrell, entrepreneur in residence at the Centre for Entrepreneurial Learning at the University of Cambridge, Judge Business School, was recently appointed its UK non-executive director. Barrell says he was very impressed by BBD's team, many of whom are PhD graduates from universities in the West who have subsequently returned to work with BBD in Chengdu, adding that he believes BBD's work has the potential to contribute to business sectors beyond financial services. He says: ""While the focus of BBD today is rightly and primarily on the financial sector and aimed at enabling enhanced economic and business management, I have the impression that the company may also have the capability to make significant contributions to big data developments serving other key areas of modern life where technology now enables information to be generated at speeds and in volumes not even anticipated a few years ago."" cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 02/10/2017 page30)", -1067,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156748.htm,No tennis - just a brand new life,,"Relaxation doesn't play a big part in the life of business chief whose company focuses on globalizing US marques Although he first came to Hong Kong to play tennis as a teenager in the late 1970s, Canadian Bruce Rockowitz didn't become a professional sportsman as planned. Instead, he met Allen Zeman, known as the Godfather of the city's renowned Lan Kwai Fong restaurant and nightlife area. He started working with Zeman and eventually made his name in the business world. After serving as president of Li & Fung Group for seven years, Rockowitz is now running a Li & Fung spin-off branded fashion firm Global Brands Group Holding Ltd. He says he likes fashion, likes the challenges presented by his work and wants to make the company a large multinational enterprise. Bruce Rockowitz, CEO of Global Brands Group, says the company focuses on children's clothes in China. Parker Zheng / China Daily Rockowitz is not a big fan of so-called ""work-life balance."" He says he is a businessman who works very hard. He and his wife - the famous Hong Kong-born American singer Coco Lee - are very hardworking people. Their lives revolve around their work. Recently, Rockowitz spoke with China Daily about the company's strategy and its business opportunities in the Chinese market. The following are edited excerpts from the interview. What does Global Brands do? What is the company's focus? Global Brands is one of the largest brand companies in the world. We focus on affordable luxury US brands and we are globalizing them - brands like Calvin Klein, Tommy Hilfiger, Kate Spade, Juicy Couture - those are the kind of brands we have license for. We spun off from Li & Fung in July 2014. The past two and half years have been good for the company. We have been very focused on our model, changing our portfolio of brands, improving it and improving our margins. Over the past two years, we've restructured our company, restructured our brand portfolio, built our management team, built out our offices around the world, and we divided ourselves into four vertical operations: Kids, Footwear and Accessories, Men's and Women's Fashion and Brand Management. What is the company's business model? We license many brands. After that we control the brands and we pay a royalty. But we design, we produce, we do the logistics and we act like a brand company would do. And we sell, depending on the type of the brand, to everyone or certain types of stores. The higher the brand is, the fewer retail stores we sell to and we may sell lower brands to Wal-Mart. The beauty of our company is that we have a very wide distribution network and 99 percent of business is selling to other retailers. We don't open retail stores ourselves, or sell through e-commerce platforms like Tmall and Amazon. We are a very large wholesaler. What is your opinion about the global market? The US is the largest market of our business, and the US market is strong, relatively speaking. The economy is good, generally, the US is in a great shape for consumption, and it is the largest per capita consuming country. The unemployment rate is down, the interest rate is low. Europe is in the early stage of recovery and the recovery process will take many years. Our business there is relatively small, but we had a very good year in Europe, compared with the previous year. How about the Asian market, particularly China? Asia is very new to us, ironically. We've been here 110 years, but we always produced here, we didn't sell here, we didn't design here. But in the past four years, we have been developing our Asian business and we have offices in different parts of China. Our China headquarters is in Shanghai. Currently, in Asia we are focusing on China and South Korea. In China we are focused on children's clothes and brand management. What is Global Brands' future plan in China? We are going step by step in China. It takes time to get the right people, and to build the right platform. What we don't want to do is fail. It is easy to say that we can do it. It is all about people in our business. We are hiring and we are developing people. As our platform is built out more, we will bring more and more US brands to China. Ultimately, we also want to take Chinese brands to the US when there are more famous Chinese brands. Our network should not be just one-way; it is going to go two ways to help develop Asian brands in the US and in Europe. What is the company's strategy in China? We are targeting mostly mid-level consumers, not luxury consumers. We will focus a lot on online business, and on retail selling to department stores and hypermarkets like Wal-Mart, depending on the brand. We are also opening up some of our own stores that are connected to online sales, so that shoppers can come to our store to see what the brand is about, try things on, and maybe just order it and have it delivered to the house. It's a more interconnected, multi-channel way of buying brands. Currently e-commerce accounts for 15 percent of our revenue. We are working with the two major e-commerce players in China, Tmall and JD.com Inc. We were there on the night of November 10, the night before the kick-off of November 11 - the online shopping festival. My wife Coco was singing that night. What is your business philosophy? The one thing I believe in is doing the right thing. So everything we do, should be right for the employees, right for the shareholders, right for the customers. That's very important. In order to get there, I surround myself with the best people, people who are better than me in many ways. I also give people relatively a lot of freedom. My employees and I all know that we are part of a bigger story. We are in this together, and creating something that is bigger than all of us. We are changing something, changing the industry. I want to change the brand industry and I think all the people around me want the same thing. They are excited about it. What has led you to your success? One thing for sure is we all work very hard. Not just me, the whole company, the people around me. Being a good person is also very important. Being honest and always doing the right thing, even if it costs you money, because your word and your name are more important than money. The more you do that, the more you can build your own brand and people believe in you. My wife believed in me from the day I met her and people around me believed in me. The key is not to lose that goodwill. At the end of the day you only have your brand and your image. How do you maintain the balance between work and life? It's very hard to keep a balanced life. My wife doesn't keep a balanced life, either. She works really hard, too. People thought that when she married me she would become a stay-at-home mom and wife. She did that for a little while, but not for long. She chose to work really hard, not for money but for what she loves. I'm the same way and my children are used to that. My wife and I are used to each other. Our life revolves around her work, my work, and the kids, so it's integrated. It is better now that my older daughter works for Global Brands in London. It is also very important to stay healthy in order to keep a balanced life. To exercise your body and your mind is very important. What suggestions would you give to ambitious youngsters in China? The world has changed a lot. I always believed in being a pioneer in whatever you do. It could be to start something in a new city in China, or it could be a new type of technology. If you want to go into business, you need to find something that people don't know they want yet. Getting into your own business is very difficult. I would suggest young people go work for somebody first before they start their own business. Youngsters should work hard, they should think for the long term, and they may have to work for somebody for 10 years before they have the background and experience to go out and have their own business, because starting a business is very tough. sophie@chinadailyhk.com ( China Daily European Weekly 02/10/2017 page31)", -1068,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156747.htm,China-Russia rail bridge is back on the right track,,"The construction of a cross-border rail bridge between China and Russia has moved a step closer to completion now that the project's funding gap has been covered, government officials said on Feb 6. With a total investment of 2.6 billion yuan ($379 million; 354.5 million euros; 303 million), the bridge will connect Tongjiang in China's northeastern Heilongjiang province with Nizhneleninskoye in Russia's Jewish Autonomous Oblast. Known as the Amur International Rail Bridge, or the China-Russia Tongjiang Rail Bridge, it will be the first of its kind between the two countries and will serve as the key transportation link that is expected to boost bilateral trade previously constrained by the region's poor transport infrastructure. The latest round of financing, worth $110 million, came from a Sino-Russian joint venture backed by China Investment Corp, the Chinese sovereign wealth fund, according to the local government. ""It means that the financing problem from the Russian side has finally been solved,"" says Zhang Ruohui, an official from the Commerce Department of Heilongjiang province. Construction of the bridge started in 2014, but it came to a halt due to the funding problem and construction delays by the Russian side. Wang Jin, mayor of Tongjiang, says that the bridge will help boost the city's standing as a transportation hub with Russia, and will enhance its role in the China-Mongolia-Russia economic corridor. ""The bridge will help unleash the potential of Tongjiang as a key transportation hub in the region,"" Wang says. It is also expected to help boost China's trade with Russia and significantly reduce transportation costs. Bilateral trade between China and Russia stood at $69 billion last year, according to official data. The bridge will also help boost the economy of Heilongjiang, Wang adds. Xu Tao, a Central Asia studies researcher at the China Institutes of Contemporary International Relations, says the long and difficult process of building the bridge showed there may still be many difficulties for China and Russia to overcome in their future partnership to jointly develop the Far East region. ""Securing funds has long been a hurdle. Insufficient mutual trust and Russian doubts over China's intention to develop the region have been another source of uncertainty for Sino-Russian cooperation,"" Xu says. Contact the writers through lixiang@chinadaily.com.cn (China Daily European Weekly 02/10/2017 page28)", -1069,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156746.htm,WeChat's users make a packet as gifts soar,,"After the past three years of growth, instant messenger WeChat's red packets - or hongbao in Chinese - have become one of the most prevalent and popular aspects of the Spring Festival. According to statistics provided by Tencent Holdings Ltd, the provider of the WeChat services, on Feb 2, 46 billion red packets were sent and received during the six days from lunar New Year's Eve to the fifth day of the first lunar month (Jan 27 to Feb 1), up 43.3 percent year-on-year. The Lunar New Year's Eve was the peak for the red packets, when a total of 14.2 billion red packets were sent and received, up 75.7 percent year-on-year. A man in Shenzhen sent a record 2,125 red packets on the day, while another man in Binzhou in eastern China's Shandong province got the most red packets, receiving 10,069 red envelopes. People in Guangdong were the most generous, sending and receiving 5.84 billion red packets during the surveyed six days. Jiangsu ranked second on the list, with 2.93 billion red packets, followed by Shandong, Hebei and Zhejiang. WeChat found that younger generations, those born in the 1980s and 1990s, make up the majority of hongbao senders. Tencent did not launch an advance marketing campaign for this year's red packet activity. WeChat President Zhang Xiaolong says it should not directly be involved in too many festive occasions because it is essentially a tool. Zhang also says that the mission of promoting WeChat Spring Festival red packets had already been completed in the past few years, including working with the Spring Festival gala show of the China Central Television. Apart from the red packets, WeChat stickers specially designed for the Spring Festival and video calls have also become two major ways to express people's wishes to their friends and relatives. shijing@chinadaily.com.cn (China Daily European Weekly 02/10/2017 page29)", -1070,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156745.htm,LeEco still committed to Nevada factory,,"Company says $1b plant will be built in stages, starting with a smaller facility The Chinese-funded luxury electric car startup Faraday Future said on Feb 3 that it remains committed to its planned $1 billion plant in Nevada in the United States, but will build the factory in phases and start with a much smaller facility. Faraday, an affiliate of Beijing-based internet major LeEco, said in a statement to China Daily that it is adopting a multi-stage manufacturing strategy for its 27.87-hectare auto plant. Qiong Liu, city manager of North Las Vegas, said on Feb 2 that Faraday will build a 6.04-hectare facility later this year. ""I don't think they are downsizing, but instead they will construct the plant in phases,"" Liu said. According to Liu, Faraday is completing engineering work on the factory and aims to have the shell of the building ready by the end of August and the rest of the building done by the end of October. Faraday expects to start testing a vehicle later this year and to ""start production in 2018"", she added. Faraday said it is scheduled to start constructing the second stage of the plant later this year. A cash crunch at LeEco and Faraday's missed payments to a contractor working on the factory last year spurred skepticism about the company. In November, Nevada State Treasurer Dan Schwartz expressed concerns about Faraday's ability to complete the project. In 2015, Nevada lawmakers approved an incentive package valued at about $215 million for the plant. Liu said the incentives are structured so that they won't be paid out until and unless the company meets certain requirements. Faraday unveiled its first production vehicle, called the FF91, at the Consumer Electronics Show in Las Vegas in January. Eric Paul Dennis of the Center for Automotive Research in Ann Arbor, Michigan, says that Faraday is becoming more realistic about what it can accomplish. ""Their initial plans to build a mega-factory and introduce multiple models on a short timetable were very risky and probably impossible,"" he says. ""Their recent restructuring makes me think they are beginning to mature as a company. Starting small, focusing on quality and responding to the market reception of one or two models is a better approach to establishing a viable auto operation,"" Dennis says. Contact the writers through masi@chinadaily.com.cn - Jia Yueting, head of Le Holdings Co Ltd, unveils an all-electric battery concept car during a ceremony in Beijing. Provided to China Daily (China Daily European Weekly 02/10/2017 page29)", -1071,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156744.htm,Thrills are worth the bill,,"Skydiving, hiking, kayaking - they're all part of the plan as sports tourism takes off Zhao Manli, 29, a project manager at a language training center in Shanghai, recently blew $400 - the equivalent of a week's salary - on a two-hour helicopter tour of Cairns in northern Queensland, a province in Australia. For Zhao, the thrill and the sense of adventure and achievement she experienced during those two hours were worth much more than $400. ""I've never thought I'd dare fly in a helicopter, but I'm so glad I did. It's so exciting. I wish I could do more activities like that in China, too."" Her wish, probably shared by millions of other Chinese, is likely to be fulfilled sooner rather than later as sports tourism - with an emphasis on thrills, adventure, outdoor activity and physical fitness - is set to take off in China. This emerging segment of the tourism market is expected to generate billions of dollars in sales revenue in the years to come. Development of sports tourism is one of the goals for economic rejuvenation set by top policymakers in December. In China these days, investments, exports and resource exploitation sit side-by-side with domestic consumption and ""consumption upgradation"" in the list of national priorities. So, from aviation clubs to hiking trails, specific projects are making efforts to develop sports tourism in China. By 2020, the country hopes to generate a billion sports tourism trips annually from Chinese as well as foreign tourists. As many as 100 companies could be formed with a focus on sports tourism. At least 100 new sports tourism activities are planned. Another 100 projects to promote health through such activities as hiking, jogging and biking trials will be launched. That's not all - 100 purpose-built ""demonstration tourist bases"" will be built. The following are in the pipeline: 2,000 camps for aviation sports activities like skydiving, ballooning and helicopter tours; 1,000 clubs to popularize water sports such as kayaking; 500 kilometer hiking trails along the Taihang Mountains that range across Beijing, Hebei, Shanxi and Henan. A research note from Ping An Securities says that sports tourism has been one of the fastest growing segments in China's consumption-driven economy, thanks to growing wealth, increasing disposable incomes and rising awareness of the interconnection between physical and mental health. According to a State Council circular, the sports industry's contribution to GDP is sought to be raised from 0.5 percent in 2015 to 5 percent in 2025, making it a 5 trillion yuan market. Market analysts say policy support alone, while certainly helping to develop the sector, won't be enough. Finance needs to be raised from capital markets. Investments need to be made in brand building and development of intellectual properties for sport activities, events and facilities, they say. Officials at enterprises that have invested heavily in outdoor activities and sports events say they see sports and sports tourism not as niches catering to a small group of people but as mass-market products. In 2016, Discovery Adventures Park in Moganshan opened to families that wished to experience an array of multiple-level outdoor survival skills and training programs, including China's biggest rock climbing wall, zip-lines, ATV tours, mountain bike courses, hiking routes, obstacle challenges and more. APAX Group, developer of the 400 million yuan project, plans to open another 80 similar parks in the next 10 years in China and other locations in Asia, according to Terence Chu, its managing director. Sun Haibing, owner of Kayak Bike Run, an outdoor activities club in suburban Beijing, says that consumers' attitudes to outdoor activities and sports tourism have changed significantly, which will likely lead to rapid development of the sector. ""In the past, people used to believe kayaking on a river, or biking on a mountainous road must be quite 'dangerous' and require professional skills through long-term training, suitable only for professional athletes. But now, even primary school children are coming to the park to pick up these skills. As long as safety is ensured by professional coaches and the creation of an ecosystem of sports tourism complete in all respects, people will try their best and push self-imposed boundaries for themselves. The market is booming,"" says Sun. wuyiyao@chinadaily.com.cn (China Daily European Weekly 02/10/2017 page27)", -1072,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156743.htm,Coal profits might be unsustainable,,"China's listed coal companies turned major profits last year, reversing previous deep losses. Rising coal prices are responsible, according to the latest estimates, but one leading industry expert has warned of unsustainably high prices. According to an estimate by the National Development and Reform Commission, total profits for the country's designated large coal companies with annual turnovers of at least 20 million yuan ($2.9 million; 2.7 million euros; 2.3 million) were 95 billion yuan in 2016. One major producer - China National Coal Group Corp - has estimated its net profits at 1.8-2.2 billion yuan in 2016, compared with losses of 2.5 billion yuan the previous year. Miners carry parts at a colliery in Huaibei, Anhui province. Xie Zhengyi / For China Daily State Development & Investment Corp, the State-owned investment holding with major investments in coal mining and power generation, projected 245 million yuan in net profits last year, compared with losses of 2.5 billion yuan in 2015. The biggest expected profit growth so far for 2016 in the sector is expected for Inner Mongolia Yitai Coal Co Ltd, a rise of 2,110 percent to 2 billion yuan. According to a report on the coal industry in 2016 by the China National Coal Association, coal companies above the designated scale realized revenue of 2.06 trillion yuan in the first 11 months of last year. Net profits stood at 85 billion yuan, up 157 percent year-on-year. Coal prices last year were stable in the first half before shooting up in July. Power coal prices reached 700 yuan per metric ton at one point in the fourth quarter, compared with slightly more than 200 yuan per metric ton at the beginning of the year. Coking coal prices soared to 1,800 yuan per metric ton. The increase was dampened by the signing of mid and long-term contracts between coal suppliers and consumers, mainly power and steel companies, as requested by the government. Jiang Zhimin, president of the CNCA, warns that most coal companies are still in the red. Many of them are still defaulting on employees' salaries and pensions. ""On one hand, turning a profit has shown that capacity reduction has achieved noticeable results,"" he says. ""On the other hand, the fast-rising prices were the unexpected result of multiple factors. After all, demand has not increased. Therefore, such high prices are not sustainable."" Hu Bin, an analyst at Founder CIFCO Futures, says that coal prices in 2017 may stay low in the beginning and then rise to no more than 640 yuan per ton. According to a report by mysteel.com, coal supplies this year are unlikely to increase by a large margin compared with last year. The report says the government will increase its macro management of the market. Consequently, it added, prices are not going to fluctuate severely this year. yangziman@chinadaily.com.cn ( China Daily European Weekly 02/10/2017 page26)", -1073,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156742.htm,IN BRIEF (Page 24),,"Visitors examine items on display at the China section during the ongoing Nuremberg International Toy Fair in Germany. Xinhua Forecast for huge mainland opportunities A European expert on China-EU business expressed optimism about prospects for trade between Beijing and Brussels, despite concerns registered by some EU officials. Luigi Gambardella, president of Brussels-based business-led association ChinaEU, told Xinhua in an interview that in the coming five years China would import 8 trillion euros ($8.6 trillion; 6.8 trillion) worth of goods, attract 600 billion euros in foreign investment and make 750 billion euros of outbound investments. He also said Chinese tourists would make 700 million overseas visits in the same period. Central bank suspends repurchase agreement China's central bank suspended open market operations for a third-straight trading day on Feb 7, in another sign of policy tightening. The People's Bank of China withdrew 120 billion yuan ($17 billion; 15.8 billion euros; 13.5 billion) from the market on Feb 7, as 120 billion yuan of reverse repurchase agreements (repos) matured. Reverse repos are deals through which central banks purchase securities from banks with an agreement to sell them back in the future. Luxury spending recovery boosts stores China's recent recovery in luxury spending may boost sales of department-store operators and high-end retailers in the country, according to global ratings agency Fitch. Reports from international brands such as Coach, Swatch and LVMH suggest luxury spending in China is beginning to pick up after a few difficult years caused by China's anti-corruption campaign and weak consumer sentiment, according to Fitch. Purchasing Managers' Index eases in January China's service sector slowed in January, as a private survey showed on Feb 6 that an index for the sector fell slightly after reaching a 17-month high in December 2016. The Caixin General Services Purchasing Managers' Index edged down to 53.1 last month from 53.4 in December, according to the survey conducted by financial information service provider Markit and sponsored by Caixin Media Co Ltd. A reading above 50 indicates expansion, while anything below 50 represents contraction. New service business continued to rise rapidly, but the rate of expansion declined from that seen at the end of 2016, according to the survey, which is based on data compiled from monthly replies to questionnaires sent to purchasing executives in more than 400 companies. Yuan strengthens to 6.8604 against dollar The central parity rate of the Chinese currency the renminbi, or the yuan, strengthened 2 basis points to 6.8604 against the US dollar on Feb 7, according to the China Foreign Exchange Trade System. In China's spot foreign exchange market, the yuan is allowed to rise or fall by 2 percent from the central parity rate each trading day. Yancoal acquires Rio Tinto's coal assets China's Yancoal Australia will take over Rio Tinto's coal assets in Australia in a deal worth $2.35 billion. Under the deal, Coal & Allied Industries Ltd, which operates two mines in Australia, will be sold to Yancoal Australia, which is majority controlled by Yanzhou Coal Mining, one of China's largest mining groups by market capitalization. The deal is expected to be completed before October, according to Yanzhou Coal Chairman Li Xiyong. Monetary policy seen as prudent, neutral China's monetary policy is expected to become more prudent and neutral to rein in asset bubbles and guard against financial risks, economists have said. Last week the central bank, the People's Bank of China, raised the interest rate for seven-day repurchase agreements, a key tool used to adjust monetary policy, and for longer 14 and 28-day repo rates. In January the central bank also raised rates on its medium-term loan facility for the first time since it started the facility in 2014. Henan cultivates more high-yield fields The central province of Henan added 500,000 hectares of high-yield farmland in 2016, as the grain base modernized its agriculture, according to local officials. The province, which annually produces a tenth of China's grain, plans to upgrade 4.25 million hectares of farmland by 2020, according to the local high-yield grainfield office. So far, about 3.75 million hectares have been upgraded to high-yield land, 84.1 percent of the overall target. Cross-Straits trade lowers by 4.5 percent Trade volumes between the Chinese mainland and Taiwan reached $179.6 billion in 2016, down 4.5 percent from 2015, according to the Ministry of Commerce. Mainland trade to Taiwan totaled $40.4 billion last year, a 10.1 percent year-on-year drop, and Taiwan's trade with the mainland stood at $139.2 billion, down 2.8 percent. Taiwan is the mainland's seventh biggest trade partner. Carmaker FAW reports record sales in January FAW Group, China's major automaker, reported wholesale vehicle deliveries of 323,000 units in January, up 13.9 percent year-on-year, hitting a record sales high in January. FAW, or First Auto Works, sold 29,000 of its own Jiefang vehicles in January, a growth of nearly 130 percent from the same period last year. The sales of joint venture-branded vehicles also increased remarkably, including 147,000 units of FAW-Volkswagen, up 15.5 percent; 55,000 FAW-Toyota, up 4.6 percent; and 12,000 FAW-Mazda, up 139.5 percent year-on-year. FAW has set an annual sales target of 3.3 million vehicles in 2017, including 2 million units of joint venture brands. JPMorgan gets license in China JPMorgan Chase & Co said on Feb 6 it had received approval and the license to underwrite corporate bonds in China's interbank bond market, making it the first US-headquartered bank to do so. The license enables JPMorgan to underwrite debt financing instruments issued by non-financial entities, including commercial papers, medium-term notes and other instruments approved by regulators, it said. The license was granted by the National Association of Financial Market Institutional Investors, which oversees the Chinese interbank bond market, said a statement issued by JPMorgan. Consumer inflation expected to pick up China's consumer inflation in January was expected to increase due to food price rises, economists said, a week before the publication of official data. The consumer price index, a main gauge of inflation, is likely to increase by 2.4 percent in January from a year ago, 0.3 percentage points higher than December, said Lu Zhengwei, chief economist with the Industrial Bank. Food prices are expected to rise by 2.5 percent month-on-month in January, driven by rising grain prices, according to China Merchants Securities' analyst Xie Yaxuan. Insurers invest in infrastructure Chinese insurers had initiated 651 investment projects with registered capital of 1.65 trillion yuan ($240.2 billion; 224.7 billion euros; 191.9 billion) in infrastructure and livelihood improvement by the end of 2016, official data showed. The investment was made through equity and bond purchases, as well as asset support plans, which mostly went into transport, energy, real estate, healthcare and elderly care, according to the Insurance Asset Management Association of China. ( China Daily European Weekly 02/10/2017 page24)", -1074,2017/2/10,http://europe.chinadaily.com.cn/epaper/2017-02/10/content_28156741.htm,E-commerce firm seeks rich pickings,,"A US e-commerce company is looking to tap into the demographic of fashionable young, tech-savvy women in China by selling them top brands through mobile messaging. San Francisco-based startup Operator recently suspended its US service to focus on the Chinese market because of the ""surging business"" it has experienced since it expanded to China in November. With its mobile shopping app, Chinese users are connected with US-based ""experts"" who provide recommendations, and the company's team then sources and delivers the purchases. Online translation tools are available for customers who cannot understand English. Most of the app's Chinese users are women aged 25 to 35. Many are young mothers and professionals, says the company, which declined to disclose specific user numbers. ""We think Chinese customers have a big appetite for authentic goods and access to good products,"" says Robin Chan, CEO and co-founder of Operator. The most popular categories are fashion, beauty and baby goods. The company is working with hundreds of US brands for inventory. ""The demand for authentic products from the United States is very strong,"" says Chan. ""The key thing we are looking at is the healthiness of the market in terms of overall performance."" Operator features the ""conversational experience"". ""Conversational commerce is the next big wave in e-commerce because everybody has a smart phone and the most popular platform is messaging - China has WeChat and the US has Facebook messenger,"" he says. The shopping experience will be more like the conversation one has in a store, rather than the e-commerce experience, which is just clicking buttons, he explains. The startup, which was founded in 2015, has so far raised $25 million in funding. It recently closed $15 million in Series B financing to help fund its global expansion, starting with China. ""Chinese consumers will accelerate the entire global platform,"" says Chan. ""If you want to build a global company, you don't think of China as an afterthought; you must start early."" liazhu@chinadailyusa.com (China Daily European Weekly 02/10/2017 page25)", -1075,2017/2/13,http://www.rte.ie/news/2017/0213/852182-maurice-mccabe/,O'Callaghan '100% certain' he mentioned Tusla file to T��naiste,,"Fianna F��il justice spokesperson Jim O'Callaghan has said he is ""100% certain"" that he mentioned the Tusla file on garda whistleblower Maurice McCabe to the Minister for Justice last Wednesday. T��naiste Frances Fitzgerald yesterday said the first she heard of details of the file and unfounded allegations against Sgt McCabe was when she watched RT?'s Prime Time more than 24 hours later on Thursday. This is now a bitter row between the main Government party and Fianna F��il, which facilitates the minority-Government from the Opposition benches. Both sides remain entrenched in their positions ahead of this week's no confidence motion in the Government tabled by Sinn F��in. Labour leader Brendan Howlin has said his party will be voting no confidence in the Government on Thursday. Yesterday evening, Sgt McCabe and his wife Lorraine told RT? News they have decided to have no further direct engagement with the Health Service Executive-or Tusla in the wake of an apology over a file by the Child and Family Agency Tusla containing false allegations of sexual abuse against him. Speaking on RT?'s Today with Sean O'Rourke, Mr O'Callaghan said he met Ms Fitzgerald to forewarn her and the Government about the Prime Time programme and said he referenced the State agency at least three times in the conversation. O'Callaghan '100% certain' he mentioned Tusla file to T��naiste https://t.co/9NSjzwxn4J pic.twitter.com/yvQF8D9DT9 ""?RT? News (@rtenews) February 13, 2017 He said he also told Ms Fitzgerald that she should speak with Minister for Children Katherine Zappone as Ms Zappone had met Sgt McCabe and knew about the Tusla file. He said: ""I'm 100% certain that I did mention Tusla and I'm also 100% certain that I said to the T��naiste, and the words I used were - 'Frances, you need to speak to Katherine Zappone' because she has met Sgt McCabe and she has full knowledge about this issue."" Mr O'Callaghan added that he and the Minister for Justice also spoke at length about extending terms of reference for the Charleton inquiry. The Fianna F��il TD said he did not mention Tusla in the D��il debate on the terms of reference last week because he had a limited amount of information. He also said that Garda Commissioner N��ir��n O'Sullivan should assess where she stands, and if she thinks the matter is interfering with her ability to do her job then she should take that into account. However, he said there is a principle that allows individuals to defend themselves and this should apply to Commissioner O'Sullivan. If the allegations against Commissioner O'Sullivan are found to have substance, Fianna F��il would call for her to be removed, he added. Minister for Housing Simon Coveney has said an explanation is clearly needed about what happened in the conversation between Ms Fitzgerald and Mr O'Callaghan. Speaking on Red FM this morning, Mr Coveney said he believes Ms Fitzgerald when she says something and added that the Fianna F��il statement disputing her version of events was a twist he was not expecting. The sooner the issue is resolved, he said, the sooner they could move on from a ""political disagreement"" to the establishment of a commission of investigation that needs to do very important work. The idea seemed ""non-credible"" that Sgt McCabe, ""probably the most high-profile whistleblower in the State"", happened to be the victim of a clerical error which was damaging and smearing him and linking him to allegations of child sex abuse in the worst possible way, he said. He said that is why it was now important to move from rumour and allegations to establishing the facts. A spokesperson for Minister for Health Simon Harris last night said he understands that the HSE is endeavouring to make contact with Sgt McCabe, and said he is eager that the work of the Charleton Commission for Investigation gets under way as quickly as possible. Asked if the executive is still trying to contact the McCabe family, a HSE spokesman for the HSE this morning said: ""We are not commenting publicly on this matter right now."" The Charleton Commission is to examine whether there was a smear campaign against Sgt McCabe orchestrated by senior garda��. Sinn F��in plans no confidence motion .@sinnfeinireland motion of no confidence in the government @rtenews #dail pic.twitter.com/HFfmgPGyCC ""?Martina Fitzgerald (@MartinaFitzg) February 13, 2017 Opposition TDs say there are still serious questions that need to be answered by the Taoiseach and T��naiste on the controversy. Minister for Social Protection Leo Varadkar, who had been accompanying the President on a State visit to Latin America, is to fly home for the Sinn F��in vote of no confidence. For the Government to survive the motion, it will need Fianna F��il to at least abstain in the no confidence motion. Meanwhile, Sinn F��in deputy leader Mary Lou McDonald has said we are witnessing a Government that refuses and fails to get to grips with the full import of what has happened to Sgt McCabe. Speaking on RT?'s Morning Ireland, Ms McDonald said a criminal investigation must take place and an election would not prevent that from taking place. Ms McDonald said: ""Under the current regime and, unless there is demonstrable political and democratic accountability for this chaos, we will never get the kind of accountability that we need within An Garda S��och��na."" But-Fianna F��il-spokesperson on public expenditure and reform Dara Calleary-said that to vote the Government out this week would mean that the Charleton inquiry would not be properly resourced, and the focus of politics this week must be on justice for Sgt McCabe and to reassure people about the role of Tusla. However, Mr Calleary said-there are serious mis-communication issues at the heart of Government. Speaking on the same programme, he said-that he cannot understand how Ms Fitzgerald-failed to follow up with Minister Zappone when she knew she had been due to meet Sgt McCabe. He said failure to follow up was particularly surprising, given that Ms Fitzgerald was establishing the terms of reference for the Charleton inquiry. Anything to do with a major breakdown by a State agency of a citizen's rights must be discussed at Cabinet, he added. Bruton defends Government's handling of issue Minister for Education Richard Bruton has said the Government has handled the controversy in the best way. Speaking on RT?'s Today with Sean O'Rourke, Mr Bruton said when the Tusla matter came to Government, he believed Mr Justice Iarlaith O'Neill had set out terms of reference that were full and comprehensive and any issue regarding Tusla, or otherwise, would be fully investigated. Mr Bruton said the core issue is that the way Government handled the matter was the absolutely correct way to do it. He said he has absolute confidence that the terms of reference are in the public interest. ""We sought to ensure that by setting up an inquiry we did not cast aspersions on anyone until that evidence was sifted and, I think, that was what we wanted to do. ""Of course, the D��il has now additional material, which is in the public domain, and that has been ventilated, but the terms of reference will be comprehensive."" Minister for Foreign Affairs Charlie Flanagan said it is his understanding that Mr Justice Charleton is willing and ready to open the commission of investigation this week, so all parties must work together now to bring to an end what has been almost a decade of allegation, counter-allegation and subterfuge. The first agenda at tomorrow's Cabinet meeting is the finalisation of the terms of reference. Asked by RT? News about the potential for the Government to collapse over this issue, Mr Flanagan said the collapse of the Government and plunging the country into a general election would certainly not help anyone involved, not least Sgt McCabe and others who appear to have been wronged. Meanwhile, Jim Daly, Chair of the Joint Oireachtas Committee on Children & Youth Affairs, has said he thinks the terms of reference of the Charleton inquiry should now be expanded to include the information in relation to Tusla. Speaking on Morning Ireland,-the Fine Gael TD said-he finds it ""incredulous that a clerical error could be attributed to such a massive, massive, grotesque mistake, where such serious allegations could be transferred from one file to another"". The CEO of Tusla has been invited to appear before the next session of the committee on 22 February.", -1076,2017/2/13,http://www.rte.ie/news/2017/0213/852238-howth-coast-guard-warning/,Warning over high waves in Howth,,"Howth Coast Guard has advised the public to avoid walking on the East Pier in Howth between 10am and 4pm today due to expected waves breaking over the pier wall. Outside these times, people should be cautious and use common sense. The Coast Guard said: ""If you see the spray of the waves reaching on the pier don""t walk it. Waves can be unpredictable, a lull of ten minutes can be followed by intense waves powerful enough to knock you over and cause injury or wash you off the pier wall."" High waves broke over the pier wall yesterday, and the Coast Guard responded to calls about people going under the waves to take photographs. It says people doing this not only put their own lives at risk, but also endanger the lives of Coast Guard and RNLI workers. The Coast Guard added: ""We ask the public to call the Coast Guard at 112 or 999 if they see people who are likely to get into difficulty, don""t expect someone else to make the call.""", -1077,2017/2/13,http://www.rte.ie/news/2017/0213/852266-donegal-appeal-andrew-burns/,Fresh appeal for information on 2008 Donegal murder,,"Garda�� have renewed their appeal for information on a murder in Co Donegal nine years ago. Andrew Burns was 27 when he was killed in-Doneyloop, Castlefin on 12 February 2008. Garda�� believe that a number of-people were involved in the murder. To date, arrests have been made north and south of the border. Many witnesses have already come forward, but garda�� say they believe there are still people who could come forward with information that could help with the investigation. Anyone with information no matter how insignificant it may seem is asked to contact Letterkenny Garda Station on 074-9167100, the Garda Confidential Line on 1800-666-111-or any garda station.", -1078,2017/2/13,http://www.rte.ie/news/2017/0213/852220-brexit/,Brexit's repercussions for peace process to be discussed at Maynooth event,,"The implications of Brexit on human rights provisions in the Good Friday Agreement are to be examined in a civic dialogue event at Maynooth University today. Minister for Foreign Affairs Charlie Flanagan, who is convening the ""all-island dialogue"", has said it will be an ""extremely valuable"" exercise. Issues such as the peace accord's commitment to the European Convention on Human Rights will be assessed, as will the potential impact on human rights commissions on both sides of the border. ""As a co-guarantor of the Good Friday Agreement, the Government takes with the utmost seriousness our duty to ensure that all provisions of the agreement are upheld and secured throughout the process of the UK's exit from the European Union,"" Mr Flanagan said. ""Today's sectoral dialogue is an extremely valuable opportunity to hear directly from experts and practitioners on how the human rights provisions in the Good Friday Agreement should best be protected and upheld throughout the Brexit process. ""The Good Friday Agreement is a shared framework to uphold and to utilise as we work together to manage the implications of Brexit."" The event is one of 14 ministerial-led events on different issues related to Brexit. ""The detailed work of Government departments and agencies has been greatly enriched by a series of all-island sectoral civic dialogues,"" said Mr Flanagan. The event comes ahead of the second plenary sitting of the Government's main Brexit forum on Friday. ""The UK's decision to leave the European Union raises significant and complex issues for the island of Ireland,"" said Mr Flanagan. ""It is essential that the Government hears from all parts of society on how to manage Brexit collectively on an all-island basis.""", -1079,2017/2/13,http://www.rte.ie/news/2017/0213/852187-california-dam/,Evacuation ordered over hole in spillway of tallest dam in US,,"Evacuation orders for nearly 200,000 people living below the tallest dam in the United States remain-in place early after residents were told to leave when a spillway appeared in danger of collapse. The abrupt evacuation orders came as authorities said that an auxiliary spillway on the Lake Oroville Dam could give way at any time, unleashing floodwaters onto rural communities along the Feather River. The state water resources department said crews using helicopters would drop rocks to fill a huge gouge, and authorities were releasing water to lower the lake's level after weeks of heavy rains in the drought-plagued state. - - - - - - By 6am Irish time, state and local officials said the immediate danger had passed with water no longer flowing over the eroded spillway. But they cautioned that the situation remained unpredictable. - - - - - - ""Once you have damage to a structure like that it's catastrophic,"" acting Water Resources director Bill Croyle told reporters. But he stressed ""the integrity of the dam is not impacted"" by the damaged spillway. - - - - - - Asked about the evacuation order, Mr Croyle said ""It was a tough call to make."" He added: ""It was the right call to make."" Evacuation ordered over hole in spillway of tallest dam in US https://t.co/l4XvwzUd41 pic.twitter.com/36jeHvU1qb ""?RT? News (@rtenews) February 13, 2017 Flows over the auxiliary spillway have ceased. 100,000 cfs continue down the main spillway. @ButteSheriff ""?CA - DWR (@CA_DWR) February 13, 2017 Evacuation centres have been set up-in Chico, California, about 30km northwest of Oroville, but roads leading out of the area were jammed as residents sought to drive out of the flood zone. It is not clear how many people were affected by the evacuation order. More than 160,000 people live in the evacuation area comprising three counties, according to US-Census data. The Oroville dam is nearly full after a wave of winter storms brought relief to the state after some four years of devastating drought. Water levels were less than 2m from the top of the dam on Friday. State authorities and engineers on Thursday began carefully releasing water from the Lake Oroville Dam 105km north of Sacramento after noticing that large chunks of concrete were missing from a spillway. California Governor Jerry Brown asked the Federal Emergency Management Agency on Friday to declare a major disaster due to flooding and mudslides brought on by the storms. .@JerryBrownGov Issues Emergency Order to Help Response to #OrovilleSpillway https://t.co/RW8XBlLFT6 pic.twitter.com/ULQGjkt1c1 ""?Gov. Brown Press Ofc (@GovPressOffice) February 13, 2017 The earthfill dam is just upstream and east of Oroville, a city of more than 16,000 people. At 230m high, the structure, built between 1962 and 1968, is the tallest dam in the United States, higher than the famed Hoover Dam by more than 12m.", -1080,2017/2/13,http://www.rte.ie/news/2017/0213/852198-nginx-cork-jobs/,More than 100 jobs promised for Cork by US technology firm,,"A US technology company is to create more than 100 jobs in Cork. San Francisco-based NGINX already has a base in the city and says it will establish its headquarters there for Europe, the Middle East and Africa. The technology company helps other companies to deliver websites and online applications securely and reliably, and allows them to grow quickly. It says more than half of the internet's busiest websites rely on its technology, such as Airbnb, Instagram, Netflix and SoundCloud. Over the next three years, it will recruit more than 100 people to work in sales and marketing, finance, business development, software architecture, engineering and R&D. The project is supported by the Department of Jobs through IDA Ireland. The formal announcement will be made by Taoiseach Enda Kenny later today.", -1081,2017/2/13,http://www.rte.ie/news/2017/0213/852183-education/,New system for assessing disadvantaged schools,,"The Department of Education is planning significant changes to the way funding aimed at combating disadvantage is distributed among schools. One hundred and ten primary and post-primary schools are expected to get additional resources as a result of what the department says will be a more robust way of identifying schools in need. The new system will be phased in from September. The current programme, DEIS, was introduced 12 years ago. Under the scheme more than 800 schools get additional funding, teachers and other supports to help them address the effects of deprivation. Studies have shown improved educational outcomes in DEIS schools in recent years. However, no new schools have been admitted into the scheme since 2009. The Department of Education review to be published later today outlines a new system for targeting schools in need of support, using information that the department now collects from schools, as well as data from the Central Statistics Office. From September an additional 80 schools will be brought into the programme. A further 30 schools already in DEIS will be granted additional supports because their deprivation levels have been found to be greater than previously assessed. The Department of Education said-these schools will be notified in the coming weeks. An additional �15m annually was allocated in the last budget to facilitate this revision of the DEIS programme. The department -said-no schools currently in DEIS will lose supports during this academic year, but-a finalised resource allocation model will be completed next year. It said-if this analysis finds that disadvantage levels in some DEIS schools are lower than in other schools outside the programme then the reallocation of supports ""would have to be considered"". The department said-improved data on the socio-economic make-up of school populations also means that additional resources can be better calibrated to meet schools' specific needs. It added that-the proposed new assessment process will take into account factors such as school size, the presence of groups of Traveller children, or groups of pupils who are not fluent in English. The review found that there are a number of schools, not currently in DEIS, whose deprivation levels are ""significantly higher"" than many schools within the programme. It says these schools will be the first to be included in the revised scheme. It says that all schools - both primary and post-primary - will now be assessed using the new framework, and additional supports will be rolled out to those schools that qualify from next September. The report says the old system was ""quite rigid and inflexible"". It says that annual data updates will lead to greater movement in the range and level of supports for schools as these are matched more closely to identified need. As well as extra funding and more teachers, DEIS schools also have greater access to psychological and behavioural supports for pupils, as well as school meals schemes and initiatives to promote school attendance. The review recommends a special focus on a number of areas, including a renewed focus on measures to support attendance and participation among Travellers, Roma and other students at risk of early school leaving.", -1082,2017/2/13,http://www.rte.ie/news/2017/0213/852185-north-korea/,UN Security Council to discuss North Korean missile test,,"The UN Security Council will hold an urgent meeting today on North Korea's missile launch, the first test since US President Donald Trump took office. The United States, Japan and South Korea requested the consultations after North Korea confirmed it had ""successfully"" tested a ballistic missile yesterday. The council meeting is expected to begin around 10pm Irish time according to the Ukrainian mission, which holds the council presidency. North Korea's state-run KCNA news agency said a ""surface-to-surface medium long-range ballistic missile"" was ""successfully test-fired"" yesterday, describing it as a ""Korean-style new type strategic weapon system"". The missile flew about 500km before falling into the sea, South Korea's defence ministry said. The launch was seen as a test of the response from Mr Trump, who pledged ""100%"" support to US regional ally Japan. Japanese Prime Minister Shinzo Abe, whose country would be in range of a hostile North Korean missile launch, called the test ""absolutely intolerable"" during an impromptu press conference with Mr Trump in Florida. The reclusive regime carried out more than 20 missile tests last year, one of which reached Japanese-controlled waters after a launch in August. North Korea is barred under UN resolutions from any use of ballistic missile and nuclear technology. The UN Security Council has imposed six sets of sanctions since North Korea's first nuclear test in 2006. The latest round of sanctions imposed in November includes a cap on North Korea's coal exports to China, aimed at depriving the communist state of hundreds of millions of dollars in revenue.", -1083,2017/2/13,http://www.rte.ie/news/2017/0213/852186-michael-flynn-donald-trump/,Trump's national security adviser under pressure,,"US President Donald Trump's national security adviser Michael Flynn-is struggling to get past a controversy over his contacts with Russian officials before Mr Trump took office Officials said the-conversations have raised concerns within the White House. Over the weekend, Top White House officials reviewed-Mr Flynn's contacts with the Russians and whether he discussed the possibility of lifting US sanctions on Russia once Mr Trump took office, which could potentially be in violation of a law banning private citizens from engaging in foreign policy. Mr Flynn is a retired US army general and former director of the Defense Intelligence Agency. An early supporter of Mr Trump, he has been a leading advocate to improve US relations with Russia. Mr Flynn had initially denied discussing sanctions with the Russians in the weeks before Mr Trump took office on 20 January and Vice President Mike Pence went before the television cameras to repeat the denial and defend Mr Flynn. When a Washington Post report emerged last week quoting officials saying the subject of sanctions had in fact come up, Mr Flynn left open the possibility that he had discussed sanctions but could not remember with 100% certainty, an administration official said. A second administration official, also speaking on condition of anonymity, stressed that Mr Pence made his comments based on a conversation with Mr Flynn. Mr Pence is said to be troubled by the possibility of being misled. Mr Flynn has apologised to Mr Pence and others over the incident, the first official said. A third official said the uproar prompted White House chief of staff Reince Priebus to review the matter with other top officials as Mr Trump played host to Japanese Prime Minister Shinzo Abe over the weekend in Florida. Played golf today with Prime Minister Abe of Japan and @TheBig_Easy, Ernie Els, and had a great time. Japan is very well represented! ""?Donald J. Trump (@realDonaldTrump) February 11, 2017 The White House did not respond to a request for comment. There was no indication from transcripts of Mr Flynn's conversations that he had promised to lift the sanctions but rather he made more general comments about hoping for better US-Russian relations with Mr Trump, the third official said. Mr Trump has yet to weigh in on the subject, promising to reporters on Friday that he would look into it. Reporters are expected to ask him about Mr Flynn at a press conference with Canadian Prime Minister Justin Trudeau today. There was a sense among some officials that while Mr Flynn was on thin ice, he did not appear to be in imminent danger of losing his position, the third official said. Even so, there were no loud voices speaking up for him. Mr Trump's senior policy adviser Stephen Miller was asked on NBC's ""Meet the Press"" yesterday whether Mr Trump had confidence in Mr Flynn. ""It's not for me to tell you what's in the president's mind,"" Mr Miller said. Congratulations Stephen Miller- on representing me this morning on the various Sunday morning shows. Great job! ""?Donald J. Trump (@realDonaldTrump) February 12, 2017", -1084,2017/2/13,http://www.rte.ie/news/2017/0213/852223-armagh-shooting/,Man critically injured in Armagh shooting,,"A man is in critical condition following a gun attack in Co Armagh. The 31-year-old was the only person inside the property in Craigavon when a number of shots were fired through the living room window around 1.45am. The incident took place in the Carrigart Crescent area. Detectives are investigating a possible link to a silver Skoda car seen in the Carrigart area before the shooting. It was found burnt-out in the New Line area a short time later. PSNI Chief Inspector Jon Burrows said: ""At approximately 1.45am police received a report that a number of shots had been fired through the living room window of a house in the Carrigart Crescent area. ""A 31-year-old male who was in the house was taken to hospital for treatment for injuries which are described as life threatening at this stage. There was no one else in the house at the time.""", -1085,2017/2/13,http://www.rte.ie/news/2017/0213/852258-news-in-brief/,News in brief,,"Dispute over staff levels in Cork County Council SIPTU has begun balloting over 350 Cork County Council-workers on industrial action, up to and including strike action, in a dispute over staffing levels. Union organiser Con Casey said-management's failure to replace workers as they retire has led to key sections of the council in road maintenance, housing and other essential services, now being seriously understaffed. The union says it is frustrated with the local authority's refusal to act on calls to recruit more staff, and to take part in a workforce planning process. The ballots will be counted in Connolly Hall, Cork on Friday. Further strike planned at Kerry Foods plant A further 24-hour stoppage is due to commence at the Kerry Foods plant in Charleville tomorrow. - It will be the-fourth stoppage at the site in the past fortnight. - Last week, management at the plant, which produces Cheestrings and other cheese products, as well as food ingredients, issued protective notice to the workforce and advance notice of layoffs, due to take effect tomorrow. Union officials jailed in Kenya A Kenyan court has jailed seven union officials for a month over a doctor-strike that has crippled public hospitals for ten weeks. Judge Hellen Wasilwa at Kenya's labour court had handed down suspended sentences to the officials a month ago after they ignored an earlier court order to end the strike. Jailing them for contempt of court, the judge said they had provided no reason for the punishment to be deferred. The seven officials were handcuffed and driven to jail past placard-waving supporters gathered outside the court. The nationwide strike involving thousands of doctors and nurses began on December 5 and has left public hospitals closed and patients unable to get basic medical care. Doctors have rejected a government offer of a 40% pay-rise saying it falls short of promises made in a 2013 agreement. Staff shortages and a lack of equipment have also failed to be tackled. Hamas elects new Gaza leader Palestinian Islamist movement Hamas has elected a hardline member of its armed wing as its new Gaza head. ""Yahya Sinwar was elected to head the Hamas political office in the Gaza Strip"", succeeding Ismail Haniya, the officials said. The movement, which has controlled Gaza for a decade, has been conducting internal elections for several months.", -1086,2017/2/13,http://www.rte.ie/news/2017/0213/852213-offaly-fatal-crash/,Man dies in Co Offaly car crash,,"A man in his 30s has died in a car crash in Co Offaly. He was pronounced dead at the scene after his car left the road and struck a tree at-Derrydonnelly, Kilcormac at about 11.15pm last night. A section of the N52 at-Derrydonnelly is closed and diversions are in place. Anyone with information, particularly those who may have travelled the N52 close to Kilcormac between 10.45pm and 11.30pm last night,-is asked to contact-Tullamore Garda Station on 057-9327600, the Garda Confidential Line on 1800-666-111 or any garda station.", -1087,2017/2/13,http://www.rte.ie/news/2017/0213/852189-crime/,Study says drugs and alcohol used to lure children into gangs,,"Criminal gangs are using drugs, alcohol and the notion of status to attract children into a life of crime, according to new research by the University of Limerick on the impact of criminal networks on young people. The report is the result of a four-year study of a criminal network and its impact on boys and young men as well as the local community. The location of the study has been kept anonymous to prevent young people and the community being identified. The research shows that children were offered access to drugs, alcohol and the notion of status from being associated with the network. But once children were engaged in relationships with leaders of the gang, it became very difficult for them to leave. Acts of violence were used as punishment for members. The report recommends that its findings should be used to design more effective programmes of intervention for children involved in criminal networks. The author of the study said the network was based around a family and kinship group where a number of children became engaged to carry out offences, particularly burglary offences. Professor of Law at the University of Limerick Sean Redmond-said there are very strong processes engaging children and it was not a network one could buy in or buy out of. Speaking on RTE's Morning Ireland, Prof-Redmond said it is a ""very complicated situation and understanding what makes these networks tick is the first step in trying to engage them in a way that will try and reduce their influence"". The vast majority of children grow out of crime, he added. He said this research, which was commissioned five years ago, will now be funded and replicated by the Department of Justice and Equality in other locations around the country. He said they will also work with national and international experts to try to build a new programme in 2017.", -1088,2017/2/13,http://www.rte.ie/news/2017/0213/852215-tesco/,No agreement over contract dispute at Tesco,,"A senior executive at Tesco Ireland has called on the Mandate trade union to accept a Labour Court recommendation to change contracts for some employees. A strike at the supermarket over the contracts is due to begin tomorrow. The dispute centres on Tesco's decision to phase out contracts dating back to 1996 and replace them with what they call a ""modern"" contract, which gives more flexibility to the employer. The union says-1,200 of the company's 14,500 employees were originally affected, but 900 have taken redundancy, however Tesco says-1,000 workers were affected and 700 took voluntary redundancy. The affected employees argue that the new contracts-would reduce their incomes, and disrupt their family lives. Director of Corporate Affairs Christine Heffernan said that changes are needed in order to meet customers""?needs, create a fairer and more equitable workplace and compete in a difficult market. Speaking on RT?'s Morning Ireland, she said that Tesco has done all it can to reach a solution. She said that in order to move forward, Mandate must accept the recommendation. However, Mandate General Secretary John Douglas said-the dispute with Tesco is about fairness and decency of work, adding that it is-easily resolved and the union is prepared to meet with management. He said members rejected the Labour Court recommendation, but that before they voted on it, workers had sought clarification on a number of issues which Tesco had blocked the Labour Court from giving, which he said was-very unhelpful.", -1089,2017/2/13,http://www.rte.ie/news/2017/0213/852202-valentines-day-scam/,Warning over Valentine scammers preying on lonely hearts,,"Love may be in the air this week, but St Valentine's Day is also peak time for scamming lonely hearts for money, an Australian government body has warned. Romance scams cost victims more money than any other form of cheating, with those aged over 45 more likely to be stung, according to the Australian Competition and Consumer Commission. Social media, and particularly Facebook, is-very popular with scammers seeking to contact targets. Last year 4,100 Australians contacted the commission's Scamwatch service to report dating and romance swindles and more than AUS$25 million (�18m) was lost, the largest sum for any type of scam in Australia. Reports of dating and romance scams increased by more than a third in 2016, the ACCC said, and the amount of money reported lost rose by about $3m compared to 2015. ""Romance scammers are getting increasingly manipulative so if you are going online this Valentine's Day to look for love, it's absolutely vital that you're able to recognise the warning signs,"" its deputy chair Delia Rickard said in a statement. ""Scammers create very believable profiles, including stealing the identities of real, trusted people. ""If you meet someone who seems too good to be true, do some research to see if they're the real deal,"" Ms Rickard said. She also warned against people who express strong feelings quickly. Scamwatch advises: Never provide your financial details or send funds to someone you have met online. Run a Google Image search to check the authenticity of any photos. Be very wary if you are moved off a dating website as scammers prefer to use private emails or the phone to avoid detection. Don't share intimate photos or use webcams in an intimate setting which can leave you open to blackmail.", -1090,2017/2/12,http://www.rte.ie/news/2017/0212/852058-kenny-fitzgerald-mccabe/,Martin challenges Fitzgerald over Tusla information,,"The Fianna F��il leader Miche��l Martin has disputed a claim by the Minister for Justice Frances Fitzgerald that she had no knowledge of a file by Tusla containing false allegations of child sex abuse against the whistleblower Sergeant Maurice McCabe until she watched revelations about the file on RT?'s Prime Time programme. Speaking on RT?'s The Week in Politics today, Ms Fitzgerald said ""I had no knowledge of all of the things that have emerged on Prime Time in relation to referrals to Tusla and how inadequately they were dealt with; the problems with the counsellor, those issues were absolutely ...-I was stunned watching those on Thursday night as the public were and as concerned and that's the truth."" Ms Fitzgerald also said she was not aware that a formal apology was going to be issued to Sgt McCabe by the Child and Family Agency, Tusla. ""Did you not know enough to ask questions?"" ?ine Lawlor asks T��naiste Frances Fitzgerald. #TWIP pic.twitter.com/bUmEMzXWtf ""?RT? News (@rtenews) February 12, 2017 She said she had a conversation with Minister for Children Katherine Zappone on the morning of 25 January before her meeting with the McCabes. ""That was the only conversation I had with her,"" she said. However speaking this afternoon in Cork, Mr Martin said his party's justice spokesman Jim O'Dallaghan had met Ms Fitzgerald on Wednesday evening to broaden the terms of reference of the Charleton Commission of Investigation to include the Tusla file. Mr Martin said at that stage Fianna F��il had been alerted to the existence of the Tusla file and he had spoken to Sgt McCabe on Wednesday in relation to it. He said he was anxious that the terms of reference would cover the Tusla file, and Mr O'Callaghan had met Ms Fitzgerald and alerted her to its existence and the need to cover it in the terms of reference. Fianna F��il leader Miche��l Martin calls on Frances Fitzgerald to clarify what knowledge she had of the Tusla file in the whistleblower case pic.twitter.com/sm33jEPdKP ""?RT? News (@rtenews) February 12, 2017 Mr Martin called on Ms Fitzgerald to clarify what knowledge she had of the Tusla file prior to the terms of reference for the Charleton Inquiry being drafted. However, a spokesperson for the T��naiste has insisted this evening that the Tusla file was not mentioned at the meeting between Ms Fitzgerald and Mr O'Callaghan on Wednesday evening. ""Deputy O'Callaghan spoke to me about the terms of reference the day before the D��il debate (Wednesday),"" said Ms Fitzgerald in a statement. ""He suggested the terms of reference should be broadened to bring absolute clarity that the allegation of criminal misconduct against Sgt McCabe and the alleged smear campaign would be investigated. ""He said he was of the opinion that the limiting the Terms of Reference to Superintendent Taylor could be too narrow and could limit the investigation. At no point did he mention Tusla or any of the details that emerged in the programme. The Charleton Commission of Investigation is to examine whether there was a smear campaign against Sgt McCabe orchestrated by senior garda��. Ms Fitzgerald said Judge Peter Charleton will include all of the matters discussed during the Prime Time programme as part of his inquiry, adding that she would be happy to broaden the terms of reference. But she said there would have to be evidence of criminality before a criminal investigation could be considered. Sinn F��in said yesterday that it will table a motion of no confidence in the Government over its handling of the-controversy.- Sinn F��in said it will publish its motion of no confidence tomorrow morning. Speaking on The Week in Politics today, Independents 4 Change TD Clare Daly said: ""I think N��ir��n O""ullivan's situation in largely untenable. I think that'll have to be addressed. ""I think the terms of reference [of the Charleton Commission of Investigation] must be expanded to include the allegation of the other garda whistleblowers who want their cases heard and We're met ten at this stage and many of what they're experienced is very, very similar to what Maurice McCabe has experienced. That must be done,"" she said. Clare Daly says ""Noirin O'Sullivan's situation is largely untenable."" #TWIP pic.twitter.com/tcPGLoBOBA ""?RT? News (@rtenews) February 12, 2017 ""Both [The Taoiseach and the Minister for Justice] were aware of the meeting between Minister Zappone and Maurice McCabe yet they claim that neither questioned the context of the meeting nor sought any feedback,"" said Sinn F��in's deputy leader Mary Lou McDonald. ""The Taoiseach went so far as to claim that the meeting was in a 'private capacity'. ""These positions are not credible. It appears that the Government are making it up as they go along. This is farcical, chaotic and unacceptable,"" said Ms McDonald. Labour's Alan Kelly said that there are still serious questions outstanding following the breakdown in collective Cabinet responsibility this week. Garda whistleblower Sgt McCabe rejects HSE apology Garda whistleblower Sgt Maurice McCabe has rejected the statement of apology released by the HSE yesterday. It is-understood the McCabes contacted one of Minister for Health-Simon Harris's officials after watching a news item-setting out the details of the apology on the RT? News last night.- The HSE has not yet made contact with the McCabes in relation to this apology. The McCabes sent a text to the official stating: ""We reject both the statement and apology. The HSE statement is wrong and this is not good enough."" ""The file we have contradicts the statement and it is shocking that we have to again listen and deal with false information."" They did not receive a response. The HSE statement stated-that once the alleged error was discovered all proper procedures were taken by the HSE. However, documents released by Tusla to the McCabes highlights that there are serious questions to be answered. ""A blanket statement from the HSE without contacting us was unprofessional and more annoyance to us,""-Lorraine McCabe said today. The couple told RT?-this evening that they have decided to have no further direct-engagement with the HSE or Tusla in the wake of the apology. A spokesperson for Minister for Health Simon Harris-said he believes that Sgt McCabe has done the State some service and deserves truth and justice. He understands that the HSE is endeavouring to make contact with Sgt McCabe to meet with him. The Minister is eager that interactions with all other agencies are encompassed in the work of the Commission of Investigation and that the work of the Commission gets underway as quickly as possible so that it can investigate all the relevant matters.", -1091,2017/2/12,http://www.rte.ie/news/2017/0212/852068-kenny-not-ruling-out-criminal-probe-into-mccabe/,Kenny not ruling out criminal probe into McCabe affair,,"Taoiseach Enda Kenny has said he is not ruling out a criminal investigation into the Maurice McCabe affair but said there has to be evidence of criminality.- Speaking on RT?'s This Week programme, Mr Kenny-said the central issue for the Charleton Commission of Investigation is to find out the truth and determine if there was a scheme against Sgt McCabe based on erroneous allegations of sexual misconduct. ""In order to have a criminal investigation you have to have evidence of criminality. As the Charleton Inquiry gets under way, who knows what may arise here. ""So, I don""t rule that out."" He continued: ""The central issue here is, was there a programme of systemic doing-down of Sgt McCabe based on erroneous sexual allegations and rumours by senior police?"" ""It is about the truth and I hope that we can find that in the shortest time and provide justice and understanding so the people of the country that they can trust the system."" When asked if he heard the false rumours about Sgt McCabe, the Taoiseach said: ""I don't deal in rumours or allegations or hearsay. I have to deal in fact"".- Taoiseach is asked ""When did you first hear the rumours that were circulating about sergeant McCabe?"" pic.twitter.com/zgezEqiAYj ""?RT? News (@rtenews) February 12, 2017 Mr Kenny said an allegation of this nature against anybody would be ""soul destroying"". When asked if he would like to apologise on behalf of the State agencies he replied, ""I do"". Garda whistleblower Sgt McCabe rejects HSE apology Mr Kenny said the Minister for Children Katherine Zappone had told him that she intended to meet with Sgt McCabe privately.- ""What did Katherine Zappone tell you, and what did her officials tell your officials?"" the Taoiseach is asked. pic.twitter.com/6qCZDyUSMU ""?RT? News (@rtenews) February 12, 2017 He said ""that is all I knew"", adding that-he told her to make a thorough account of the meeting.- The Taoiseach said he was not-aware of any of the details of the meeting when the Cabinet met last Tuesday and he did not ask her-about it because Ms Zappone was meeting him in a ""private capacity"". Enda Kenny speaks to This Week's Colm Ó Mong��in In relation to Brexit, Mr Kenny repeated his view that there-will be no-return to the borders of the past. He warned he would not stand for a situation where there are customs posts along the border and he wants to continue the good relationship between the garda��, the PSNI and British police to tackle any criminality that could arise. In relation to his upcoming visit to Washington-for St-Patrick's Day, the Taoiseach said the visit is not about presentations in the White House, but symbolism about the contribution made by Irish people in the US. He said he intends to raise the issue of the undocumented Irish. Whatever his values, he said, the Government has a duty to work with the Trump administration. He added that-the Government has a responsibility to stand up for Ireland and its people in the US, and that they will not shirk that responsibility. In relation to his leadership of the Fine Gael, the Taoiseach said party colleagues have ""certainly not""-put a timeline of the summer for him to step down. He said Fine Gael have an agreed timetable in place with Fianna F��il-and number of challenges they want to address, including several pay disputes, Brexit and the-Eighth Amendment.", -1092,2017/2/12,http://www.rte.ie/news/2017/0212/852024-president-higgins-colombia/,President Higgins visits FARC demobilisation camp in Colombia,,"President Michael D Higgins said that Ireland will continue to support the Colombian peace process as it is of worldwide importance. The President became the first foreign head of state to visit a full demobilisation camp for former FARC combatants set up as part of the revised peace agreement. He said it is a ""project of hope"" and he wished the Colombian people well, including FARC commander Pastor Alsape who met with President Higgins during the visit to Aron�� demobilisation camp. The Colombian High Commissioner for Peace, Sergio Jaramillo Caro, said the process is now entering its toughest phase with the Truth Commission and investigation of war crimes and crimes against humanity. Ireland has pledged more than �17m in funding for the Colombian peace process. Around 90% of FARC's 7,050 members have gone to demobilisation camps. When all members have gathered in the 26 designated zones, the agreement is that they will lay down their arms by the end of May. They have committed to co-operate with investigations into drug trafficking and war crimes. They will undergo an education process run by SENA, Colombia's equivalent of F?S, as 70% of the former fighters cannot read or write. This education will concentrate on establishing locally based economies as the FARC members want to remain in the countryside living in co-operatives. Colombian President Juan Manuel Santos and FARC head Timochenko The armed conflict in Colombia has resulted in over 220,00 deaths and 40,000 people missing over the past 50 years. All sides have been accused of war crimes including massacres, torture and rape. More than six million people have been displaced - the second highest number in the world after Syria. And 11,000 people have been killed or maimed by land mines - a causality rate second only to Afghanistan. Mr Higgins will deliver-a keynote address tomorrow at the National University of Colombia-on ""peace, reconciliation and ethical remembering, and the specific contribution to conflict resolution made by the Colombian peace process."" President Higgins is on a 12-day visit to Latin America-and has spent the last few days in Peru, where he was awarded the country's highest honour --the Gran-Collar of the Order of the Sun. On Wednesday,-the President will travel to Cuba before returning to Dublin next Sunday.", -1093,2017/2/13,http://www.rte.ie/entertainment/2017/0212/852033-the-grammy-nominees/,Adele sweeps the boards at Grammy Awards,,"A teary but all-conquering Adele swept the boards at the 59th Grammy Awards in Los Angeles with wins in five categories - Song of The Year, Record of The Year, Album of The Year, Best Pop Solo Performance-of The Year and Best Pop Vocal. The night had been billed as a battle of the divas with Adele (28) taking on Beyonc�� (35) in three major categories but the English star triumphed over her friend. She dedicated her Grammy for Album of The Year for 25 to Beyonc��, telling the singer that ""I f***ing love you.""- It was an emotional night for Adele, who opened the ceremony with a performance of Hello. Later in the evening, during a tribute to the late George Michael,-she suffered a technical hitch and had to start her slowed-down rendition of his song Fastlove again. Adele beat Beyonc��-in the Pop Vocal performance category, and her best-selling album 25 also won for Pop Vocal Album. She added to her tally by winning Song of The Year for Hello,-the second time she has won the category having triumphed in 2012 with producer Paul Epworth for Rolling in the Deep. Beyonc�� had been nominated for nine awards for Lemonade,-an anthem to race, feminism, betrayal and empowerment. She won for Best Urban Contemporary Album. On stage, she said the album was made to ""give a voice to our pain"" and to ""confront issues that make us uncomfortable"". She added: ""It's important for me to show images to my children that reflect their beauty so they can grow in a world where they look in the mirror, first to their own families, as well as the news, the Super Bowl, the Olympics, the White House and the Grammys, and see themselves and have no doubt that they're beautiful, intelligent and capable,"" she said. ""This is something I want for every child of every race."" Hello, hello, hello, hello, hello With one early win for her Formation-music video, a heavily pregnant Beyonc�� was introduced on stage at LA's Staples Center by her mother for a subdued and low-key performance. She began her short set with a video montage before appearing on stage to perform Love Drought. She then sat down for Sand Castles, before reciting poetry from her Lemonade album.- Beyonc�� levitates at the Grammys on Sunday night Her visual album Lemonade missed out on the award for Best Music Film which went to Ron Howard's documentary The Beatles: Eight Days A Week - The Touring Years. Beyonc��-had been-bidding to become the most decorated woman in Grammy history after her 20 previous wins. Country star Alison Krauss holds the current record with 27 Grammys. Beyonc�� was nominated for nine Grammys but only won two An overwhelmed Chance the Rapper picked up his first-ever Grammy, for Best Rap Performance. He also won Best New Artist and Best Rap Album. - - - - - - ""This is crazy... I love my family, I love God and I love music,"" the Chicago artist said. David Bowie, who died from cancer in January 2016 at 69,-won four posthumous awards-for Best Alternative Music Album, Best Rock Performance and Best Engineered Non-Classical Album for his last release Blackstar. He also won Best Rock Song for the single-Blackstar. Tonight's host James Corden! #GRAMMYs pic.twitter.com/oBbtCMhAqU ""?STAPLES Center (@STAPLESCenter) February 13, 2017 The posthumous honour was Bowie's first-ever music Grammy after he previously won Best Music Video for Jazzin' For Blue Jean in 1985 and a Lifetime Achievement award in 2006. David Bowie wins first 'music' Grammys Accepting the Rock Performance Grammy on Bowie's behalf, band-mate Donny McCaslin called Bowie ""an artistic genius and a funny-as-hell guy"". Lady Gaga joined Metallica for a fiery-performance The Grammys, which were presented this year by James Corden, were as much about performances as trophies, and artists including Adele, Katy Perry, Lady Gaga and Metallica, The Weeknd, Demi Lovato, A Tribe Called Quest-and Album of the Year nominee Sturgill Simpson took-to-the stage on Sunday. Check out the stars as they arrived at the Grammys 2017 The 2017 Grammys were also a tale of absent friends. Prince and British pop star George Michael, who both died unexpectedly last year, were remembered in special tributes. Some of music's biggest current acts were also missing for a very different reason. Keith Urban and Carrie Underwood performed at Sunday's ceremony Frank Ocean did not submit his critically acclaimed Blonde for Grammy consideration because he considers the organisation out of touch with young black artists; multiple nominees Justin Bieber and Kanye West did not attend for similar reasons despite multiple nominations.-Canadian rapper Drake, whose Views-was the biggest-selling album worldwide in 2016 and who won two early Grammys, is on tour in England. Adele was nominated for five gongs in total, including Album of The Year for 25 and Record and Song of The Year for her smash hit single Hello. The track was nominated in both categories as Record of The Year recognises the work of artists, producers and recording engineers, while the Song of The Year prize is solely for songwriters. Adele is the second woman to receive the Best Album award twice after Taylor Swift achieved the feat last year. Celtic Woman's album, Destiny, was nominated in the Best World Music category There was disappointment for Irish act Celtic Woman at the awards after they failed to win in the Best World Music Category.-The ladies had earlier spoken to RT? Entertainment from LA where they said the atmosphere was ""buzzing"". Donegal singer Enya also lost out in the New Age album category to Santa Monica-based trio White Sun. British comedian and actor James Corden hosted the awards show following his successful stint as presenter of The Late, Late Show in the US.-Bruno Mars, Daft Punk-and Alicia Keys also performed-at the ceremony. Justin Timberlake won the Grammy for Best Song written for Visual Media for his pop song Can't Stop The Feeling. The track is nominated for an Oscar later this month after featuring on the soundtrack of animated film Trolls. Don't Let Me Down by The Chainsmokers featuring Daya won the Grammy for Best Dance Recording. British dance duo-Underworld lost out in the Best Dance/Electronic Music Album category to Australian producer Flume who won for Skin. Watch the 59th Annual Grammy Awards tonight-on RT? 2 at 9pm Here is a list of nominees and winners in the main categories: Album Of The Year Winner - Adele - 25 Beyonc�� - Lemonade Justin Bieber - Purpose Drake - Views Sturgill Simpson - A Sailor's Guide To Earth Record Of The Year Winner - Adele - Hello Beyonc�� - Formation Lukas Graham - 7 Years Rihanna ft Drake - Work Twenty One Pilots - Stressed Out Song Of The Year Winner - Adele - Hello Beyonc�� - Formation Justin Bieber - Love Yourself Lukas Graham - 7 Years Mike Posner - I Took A Pill In Ibiza Best New Artist Kelsea Ballerini The Chainsmokers Winner - Chance The Rapper Maren Morris Anderson Paak Best Alternative Music Album Winner - David Bowie - Blackstar PJ Harvey - The Hope Six Demolition Project Bon Iver - 22, A Million Iggy Pop - Post Pop Depression Radiohead - A Moon Shaped Pool Best Pop Vocal Album Winner - Adele - 25- Justin Bieber - Purpose Ariana Grande - Dangerous Woman Demi Lovato - Confident Sia - This Is Acting Best Rap Album Winner - Chance The Rapper - Coloring Book De La Soul - And The Anonymous Nobody DJ Khaled - Major Key Drake - Views Schoolboy Q - Blank Face LP Kanye West - The Life Of Pablo Best Rock Song Winner - David Bowie - Blackstar Radiohead - Burn The Witch Metallica - Hardwired Twenty One Pilots - Heathens Highly Suspect - My Name Is Human Best Rock Album Blink 182 - California Winner - Cage The Elephant - Tell Me I'm Pretty Gojira - Magma Panic At The Disco - Death Of A Bachelor Weezer - Weezer Best World Music Album Destiny---Celtic Woman Walking In The Footsteps Of Our Fathers---Ladysmith Black Mambazo Winner - Sing Me Home---Yo-Yo Ma & The Silk Road Ensemble Land Of Gold---Anoushka Shankar Dois Amigos, Um S��culo De Música: Multishow Live --Caetano Veloso & Gilberto Gil View Comments", -1094,2017/2/12,http://www.rte.ie/news/2017/0212/852146-trump-adviser-criticism/,White House official attacks court after legal setbacks on immigration,,"A White House official criticised a US court ruling that blocked US President Donald Trump's executive order on immigration as a ""judicial usurpation of power"" and said the administration is considering a range of options, including a new order. Sustained criticism of the judiciary from the White House comes amid concern among Democrats and legal scholars over Mr Trump's view of the constitutional principle of judicial independence as the administration seeks to overcome legal setbacks to its travel ban issued on 27 January. It has also become the backdrop against which US senators consider Mr Trump's Supreme Court nominee, Judge Neil Gorsuch, for a lifetime appointment to the nation's highest court. The Republican president said on Friday that he may issue a new executive order rather than go through lengthy court challenges to the original one, which restricted entry to the United States of people from seven Muslim-majority countries. ""We have multiple options and we are considering all of them,"" White House adviser Stephen Miller said on ABC's This Week. Mr Miller sharply criticised the 9th US Circuit Court of Appeals ruling on Thursday that upheld a Seattle federal judge's suspension of Mr Trump's executive order. He accused the court, based in San Francisco, of having a history of overreaching and of being overturned. ""This is a judicial usurpation of power,"" he said on Fox News Sunday. ""The president's powers here are beyond question."" Congratulations Stephen Miller- on representing me this morning on the various Sunday morning shows. Great job! ""?Donald J. Trump (@realDonaldTrump) February 12, 2017 The Trump administration has defended the travel ban on grounds it will prevent potential terrorists from entering the country, although no acts of terrorism have been perpetrated on US soil by citizens of the targeted countries. Aware that a new executive order would allow critics to declare victory against the travel ban, the White House has deflected blame and intensified its criticism of the judiciary. ""I think it's been an important reminder to all Americans that we have a judiciary that has taken far too much power and become in many cases a supreme branch of government,"" Mr Miller said on CBS's Face the Nation. ""One unelected judge in Seattle cannot make laws for the entire country. I mean this is just crazy,"" he said. Mr Miller's performance on several Sunday news shows won a plaudit on Twitter from Mr Trump, who has himself attacked individual judges and called the courts ""so political"".", -1095,2017/2/13,http://www.cnn.com/2017/02/12/us/california-oroville-dam-failure/index.html,Evacuations ordered over concerns at California dam system,"(CNN)At least 188,000 people have evacuated from several Northern California counties after damage to a spillway at the Oroville Dam.","The dam, which is the nation's tallest, remains intact. But the emergency spillway, which helps to ensure that the water does not rush over the top of the dam when the levels are high, was eroding Sunday. The damage prompted a mandatory evacuation for cities and counties near Lake Oroville amid fears it could endanger communities living downstream. Those orders remain in effect and Butte County Sheriff Kory Honea said he did not know when they would be lifted. ""I'm not going to lift the evacuation order until I have better idea of what that means and what risk that poses,"" he said in a press conference late Sunday night. California Governor Jerry Brown issued a state emergency order to help local authorities with the situation and evacuations. What led up to the Sunday emergency This winter, heavy rainfall in Northern California has filled Lake Oroville to the verge of overflow. The lake also gets water from the northern Sierra Nevada mountain range which is experiencing one of its wettest seasons. This has triggered concerns over whether the water could overflow the dam and flood nearby communities. The Oroville Dam provides flood control for the region and is located about 75 miles north of Sacramento. The dam has two spillways -- the primary and the emergency spillway -- to prevent that from happening. These are channels to leak water out of the lake. And right now, both have major problems. Last week, the primary spillway was ""damaged by erosion,"" according to the California Department of Water Resources as photos showed a massive hole on the lower part of the structure. Of the two, the emergency spillway is a last resort. At Oroville Dam, the emergency spillway is only used if water levels reach 901 feet in elevation. It hasn't needed to be used in its 48-year history -- until this weekend. Why evacuation order was made A light flow of water began washing into the emergency spillway Saturday and the volume of water began to increase. Around 3 p.m. local time on Sunday, authorities learned that the dam's emergency spillway was eroding, Honea said. The erosion of the emergency spillway is dangerous because ""when you start to erode the ground, the dirt and everything else starts to roll off the hill,"" said Kevin Lawson, California Fire incident commander. ""It starts to undermine itself. If that is not addressed, if that's not mitigated properly, essentially what we're looking at, is approximately a 30-foot wall of water,"" he said. Evacuation orders on Sunday sternly warned residents that the erosion could result in ""large, uncontrolled releases of water from Lake Oroville."" Honea's office used the most urgent of language -- ""This is NOT a drill"" -- in imploring residents to evacuate ahead of an impending disaster. Residents were told that the emergency ""spillway is close to failing."" The evacuation order included ""all Yuba County on the valley floor"" and the city of Marysville, authorities said. About 35,000 people from Butte County, 65,000 from Yuba County, 76,000 from Yuba City and 12,000 from Marysville City evacuated, according to California Fire. Stores closed. Shelters opened. Local gas stations were swarmed with cars as residents tried to leave town. Evacuees waited in traffic trying to get out of low-lying areas. Sean Dennis, who lives 30 miles south of Oroville, spoke to CNN from his car after spending 4.5 hours in bumper-to-bumper traffic. ""It was pretty scary, just because of how fast everything was developing,"" he said. ""Me and my wife managed to throw as much of stuff as we could into garbage bags, whatever we could find. We got both of our cars loaded down pretty well. We're not taking any chances."" Police said that despite rumors, there were no reports of looting. Watching the damage After issuing the evacuation orders, authorities noted significant decreases in the water coming over the emergency spillway. The flow of water on the emergency spillway eventually stopped Sunday night as the Department of Water Resource withdrew more water from the other spillway. The primary spillway is releasing water at 100,000 cubic feet per second in an effort to reduce the amount of water traveling down the emergency spillway, authorities said. Normal flows down the main spillway are about 55,000 cubic feet per second. ""The goal is to get the lake to drop 50 feet. If we can continue to do that, that brings a little bit of calm to what we're trying to accomplish here,"" said Cal Fire's Lawson. So far, there have been no repairs on the emergency spillway, because teams have been unable to reach the damaged area. Teams will take a look and assess the situation Monday morning, Bill Croyle, the acting Director of Department of Water Resources said. Authorities will have to act fast as more rain is in the forecast for Wednesday.", -1096,2017/2/13,http://www.cnn.com/2017/02/12/entertainment/la-la-land-wins-bafta/index.html,'La La Land' wins big at BAFTAs,"(CNN)""La La Land"" has some major fans across the pond.","The modern musical walked away with five awards -- more than any other movie -- at the British Academy of Film and Television Arts awards Sunday, including best film and individual honors for Emma Stone and director Damien Chazelle. ""La La Land"" had been up for seven awards. Its BAFTA success came one day before the final Oscar ballot opens up, further consolidating its position as frontrunner for top honors at the 89th Academy Awards, which are being held on February 26. In the last decade, the recipient of the BAFTA for Best Film has gone on to win the Oscar for Best Picture six times. ""Lion"" was another big winner, picking up trophies for Best Adapted Screenplay and Best Supporting Actor for Dev Patel. The Best Supporting Actress category once again belonged to Viola Davis for her role as long-suffering wife Rose in ""Fences"", continuing her unstoppable awards streak headed into the Oscars. At a news conference after the ceremony, Davis voiced her skepticism over the perceived idea that black filmmakers and actors have had more success since the #OscarsSoWhite controversy. She said that while African-American actors had seen a lot of success in the last year, it could easily be an anomaly. ""I believe what still is a deficiency is that we one year have a plethora of African-American movies and then the next year nothing,"" Davis said. Here are more of the night's winners (*bold indicates winners): Best film ""Arrival"" ""I, Daniel Blake"" ""La La Land"" ""Manchester by the Sea"" ""Moonlight"" Director ""Arrival"" -- Denis Villeneuve ""I, Daniel Blake"" -- Ken Loach ""La La Land"" -- Damien Chazelle ""Manchester by the Sea"" -- Kenneth Lonergan ""Nocturnal Animals"" -- Tom Ford Original Screenplay ""Hell or High Water"" ""I, Daniel Blake"" ""La La Land"" ""Manchester by the Sea"" ""Moonlight"" Adapted Screenplay ""Arrival"" ""Hacksaw Ridge"" ""Hidden Figures"" ""Lion"" ""Nocturnal Animals"" Leading actor Andrew Garfield -- ""Hacksaw Ridge"" Casey Affleck -- ""Manchester by the Sea"" Jake Gyllenhaal -- ""Nocturnal Animals"" Ryan Gosling -- ""La La Land"" Viggo Mortensen -- ""Captain Fantastic"" Leading actress Amy Adams -- ""Arrival"" Emily Blunt -- ""The Girl on the Train"" Emma Stone -- ""La La Land"" Meryl Streep -- ""Florence Foster Jenkins"" Natalie Portman -- ""Jackie"" Supporting actor Aaron Taylor-Johnson -- ""Nocturnal Animals"" Dev Patel -- ""Lion"" Hugh Grant -- ""Florence Foster Jenkins"" Jeff Bridges -- ""Hell or High Water"" Mahershala Ali -- ""Moonlight"" Supporting actress Hayley Squires -- ""I, Daniel Blake"" Michelle Williams -- ""Manchester by the Sea"" Naomie Harris -- ""Moonlight"" Nicole Kidman -- ""Lion"" Viola Davis -- ""Fences"" Outstanding British film ""American Honey"" ""Denial"" ""Fantastic Beasts and Where To Find Them"" ""I, Daniel Blake"" ""Notes on Blindness"" ""Under the Shadow"" Outstanding debut by a British writer, director or producer ""The Girl With All the Gifts"" ""The Hard Stop"" ""Notes on Blindness"" ""The Pass"" ""Under the Shadow"" Film not in the English language ""Dheepan"" ""Juileta"" ""Mustang"" ""Son of Saul"" ""Toni Erdmann"" Documentary ""13th"" ""The Beatles: Eight Days a Week -- The Touring Years"" ""The Eagle Huntress"" ""Notes on Blindness"" ""Weiner"" Animated film ""Finding Dory"" ""Kubo and the Two Strings"" ""Moana"" ""Zootropolis"" Original music ""Arrival"" ""Jackie"" ""La La Land"" ""Lion"" ""Noctural Animals"" Cinematography ""Arrival"" ""Hell or High Water"" ""La La Land"" ""Lion"" ""Nocturnal Animals"" Editing ""Arrival"" ""Hacksaw Ridge"" ""La La Land"" ""Manchester by the Sea"" ""Nocturnal Animals"" Production design ""Doctor Strange"" ""Fantastic Beasts and Where To Find Them"" ""Hail, Caesar!"" ""La La Land"" ""Nocturnal Animals"" Costume design ""Allied"" ""Fantastic Beasts and Where To Find Them"" ""Florence Foster Jenkins"" ""Jackie"" ""La La Land"" Make up & hair ""Doctor Strange"" ""Florence Foster Jenkins"" ""Hacksaw Ridge"" ""Nocturnal Animals"" ""Rogue One: A Star Wars Story"" Sound ""Arrival"" ""Deepwater Horizon"" ""Fantastic Beasts and Where To Find Them"" ""Hacksaw Ridge"" ""La La Land"" Special visual effects ""Arrival"" ""Doctor Strange"" ""Fantastic Beasts and Where To Find Them"" ""The Jungle Book"" ""Rogue One: A Star Wars Story"" British short animation ""The Alan Dimension"" ""A Love Story"" ""Tough"" British short film ""Consumed"" ""Home"" ""Mouth of Hell ""The Party"" ""Standby"" Rising star award (voted for by the public) Anya Taylor-Joy Laia Costa Lucas Hedges Ruth Negga Tom Holland", -1097,2017/2/13,http://www.cnn.com/2017/02/13/asia/beached-whales-new-zealand/index.html,New Zealand: Carcasses of stranded whales punctured to prevent them exploding,(CNN)Conservation officials have been puncturing the carcasses of hundreds of dead pilot whales stranded on a New Zealand beach to prevent them from exploding on volunteers.,"""In the heat, the whales can explode, but we've taken steps to prevent that,"" Trish Grant, a spokeswoman for New Zealand's Department of Conservation, told CNN. ""Our staff has been puncturing the dead whales, using an implement that releases the gas (inside their carcasses) that someone local has built for us."" Excavators will be used to move the dead whales further up Farewell Spit in Golden Bay, which is on the tip of New Zealand's South Island, to a location in the nature reserve that's not open to the public. From Friday to Sunday, around 400 whales died on Farewell Spit, the conservation department said in a statement. It's the third largest mass beaching of whales in the country's history. Hundreds of whales dead after mass stranding Mass stranding Grant told CNN that the department had spent Monday monitoring a pod of whales still in the Golden Bay area from the coastline amid concerns that they would also beach themselves. ""We've finished for tonight, but we'll resume our searches tomorrow. The whales are still in the Golden Bay area relatively close to shore and there's a risk that they could strand overnight,"" Grant said. Whales were first spotted in the water late on Thursday night, by a department staffer, before being found on the beaches of Farewell Spit Friday morning. Hundreds of volunteers joined the rescue effort. Whale trap Farewell Spit is considered to be a whale trap due to its shallow water, said Grant. The largest whale stranding event in New Zealand took place in 1918, when 1,000 whales stranded themselves on the Chatham Islands. The second largest was in Auckland in 1985, when 450 ended up on a beach. Grant said that many factors can be involved in whale beachings. ""Sometimes it can be caused by a diseased member among them - because they have strong social bonds, if one of them gets in trouble, the rest can follow,"" explained Grant.", -1098,2017/2/13,http://www.cnn.com/2017/02/12/opinions/china-us-trump-xi/index.html,Why Trump backed down on 'One China',Zhang Baohui is Professor of Political Science and Director of Centre for Asian Pacific Studies at Lingnan University in Hong Kong. The opinions expressed here are solely his.,"A White House statement described their conversation as ""extremely cordial."" Most importantly for Xi, Trump affirmed US commitment to the ""One China"" policy. This phone call, together with a personal letter from Trump to Xi two days earlier, which expressed US interests in seeking ""constructive relations"" with China, removed many of the uncertainties generated by Trump's earlier comments that the ""One China"" principle was negotiable. Trump's challenge to the ""One China"" principle and his threat during the election to slam 45% import duty on Chinese goods had caused widespread concerns that the two countries were on a collision course. Domestic setbacks One plausible explanation of Trump's apparent return to the ""One China"" principle could be his rising setbacks on the domestic front. When Trump threatened to link the ""One China"" principle with Chinese concessions in a number of issue areas, he was rolling with a sense of invincibility after the election. Foreign leaders were falling over each other to court him. At home and abroad, Trump looked mighty. However, after assuming the office, Trump has encountered massive domestic frustrations. His multiple new policy initiatives have run into fierce criticism and opposition by the public, media, and other branches of the government. According to a poll by CNN/ORC, a majority, 53%, disapprove of the way Trump handles his job, marking the highest disapproval for a new elected president since polls began to track these results. The result has been that Trump has become increasingly frustrated and vexed by domestic challenges. The last thing Trump needs is a major fight with China, which would promise to be very nasty with uncertain outcomes. It is therefore highly likely that Trump opted to return to the ""One China"" principle after a rethinking about the relative priorities of the domestic and foreign policy agendas of his administration. China courts the Trumps Trump's return to the ""One China"" principle may also be an outcome of China's successful diplomatic efforts, through both conventional and unconventional tactics. In public, China has been firm in sending out a consistent message to Trump that the ""One China"" principle involved its fundamental core interests and it will to take a stand and fight to the end. It has simultaneously pursued unconventional, backdoor approaches to shape his China policy. Beijing is keenly aware that Trump relies closely on a very small group of advisers to guide him on policy issues, including his son-in-law Jared Kushner and daughter Ivanka Trump. As such, China has tried to directly influence the first family to smooth relations with Trump. In fact, soon after Trump's election, Kushner attended a dinner hosted by Chinese business tycoon Wu Xiaohui, who presides over Anbang Insurance Group that has an asset of US$285 billion and close ties to the ruling elite of China. Then on February 1, Trump's daughter Ivanka paid a surprise visit to China's embassy in Washington to attend a Chinese New Year reception. Behind closed doors, China may have succeeded in proactively shaping Trump's position on the ""One China"" policy through both deterrence and accommodation. Ways forward While Trump's stated commitment to the ""One China"" principle has at least removed a short-term obstacle to Sino-US relations, the future of the bilateral relationship remains challenged. Multiple issues, ranging from trade, the South China Sea or North Korea's nuclear challenge, may still lead both countries down the path to conflict. The US and China can do a number of things to minimize conflicts and maximize cooperation. While the US should refrain from using the ""One China"" principle to pressure Beijing on the trade front, the latter must consider serious concessions. The Trump administration does have a legitimate complaint given the massive trade deficit on the US side. China thus needs to address the ""fair trade"" issue. Likely concessions include greater access by US firms to the Chinese market. On the South China Sea issue, the Trump administration's recent statements have been encouraging. Secretary of Defense James Mattis, during on a recent trip to Japan, expressed that there is no need for the US military to ""take drastic"" moves in the South China Sea. Moreover, he said that the US would primarily rely on diplomacy to resolve the South China Sea disputes. China must not read this as a sign of weakness. Instead, China should refrain from further actions that may escalate the South China Sea conflict with the United States. Finally, China should make more sincere efforts in containing the nuclear ambitions of North Korea. Greater efforts by Beijing will not only contribute to regional stability but also strengthen Sino-US cooperation on the issue. Such efforts can convince the Trump administration that China is indeed doing its best to help the United States with this thorny security issue.", -1099,2017/2/16,http://abcnews.go.com/Politics/president-trump-administration-running-fine-tuned-machine/story?id=45540067,President Trump says his administration is 'running like a fine-tuned machine',,"President Trump told reporters today his administration is working ""like a fine-tuned machine,"" in the wake of this week's resignation of his national security adviser and the withdrawal of his nominee for labor secretary. ""This administration is running like a fine-tuned machine,"" Trump said. ""Despite the fact that I can't get my Cabinet approved, and they are outstanding people."" Ten of his 22 Cabinet-level nominees have yet to be approved, the most in U.S. history four weeks into a new presidency. ""I've also worked to install a Cabinet over the delays and obstruction of Senate Democrats,"" he said. ""I turn on the TV, open the newspapers, and I see stories of chaos. Chaos. Yet it is the exact opposite."" His national security adviser, Mike Flynn, resigned from his post earlier this week amid questions about his communications with the Russian government during the transition period. And fast-food executive Andrew Puzder withdrew his nomination for labor secretary after questions about his employing an undocumented immigrant and his wife's now retracted allegations of abuse. ""We have made incredible progress,"" Trump said. ""I don't think there's ever been a president elected who in this short period of time has done what we've done.""?One of Trump's major moves so far ""?an executive order temporarily barring travel to the United States from seven Muslim-majority countries ""?is no longer in effect after being blocked by the federal courts. ", -1100,2017/2/16,http://abcnews.go.com/Politics/president-trump-asked-justice-department-investigate-leaks/story?id=45541385,President Trump says he has asked the Justice Department to investigate leaks,,"President Trump said today he has directed the Department of Justice to look into the leaks that have been happening during his administration. The news comes amid a presidential news conference where he said that the leaks are ""very serious."" ""I've actually called the Justice Department to look into the leaks. Those are criminal leaks,"" Trump said this afternoon. ""We are looking into that very seriously. It's a criminal act,"" he said after noting that his nominee Jeff Sessions was confirmed as U.S. attorney general. He suggested that the leaks were coming from people that are still in place in various agencies who had been appointed during the Obama administration, but said, ""I think you'll see it stopping because now we have our people in."" Earlier today while talking to Republican supporters, Trump made it clear that he intends to punish those responsible for the leaks. ""We'r gonna find the leakers. We'r going to find the leakers. They'r going to pay a big price for leaking,"" Trump said. This is a developing story. Please check back for updates.", -1101,2017/2/16,http://abcnews.go.com/Politics/trump-expected-alexander-acosta-labor-secretary-nominee/story?id=45537420,Trump nominates Alexander Acosta as labor secretary,,"President Donald Trump has nominated Alexander Acosta as his labor secretary. ""He has had a tremendous career,"" Trump said of Acosta. ""He's a member and has been a member of the National Labor Relations Board and has been through Senate confirmation three times."" Acosta is the first Hispanic to be selected for Trump's Cabinet. The announcement comes after Trump's first nominee for secretary of labor, Andrew Puzder, formally withdrew from consideration for the position Wednesday ""?a rare move for a Cabinet-level pick. Puzder came under scrutiny after admitting earlier this month that he had employed an undocumented worker for years. In 1990 his ex-wife claimed that he had abused her; she has since withdrawn the allegations. He has denied wrongdoing. His withdrawal is the first unsuccessful nomination of the Trump administration. Ten of his 22 Cabinet-level picks have yet to be confirmed. Senate Minority Leader Chuck Schumer called on Puzder, who heads CKE Restaurants, which owns Hardee's and Carl's Jr., to withdraw for more than a week. Several GOP senators hinted that they had reservations about his nomination. Acosta is the chairman of U.S. Century Bank, which is the largest domestically owned Hispanic community bank in Florida, and is the dean of Florida International University Law School. He has served as the U.S. attorney for the Southern District of Florida and was an assistant attorney general for the civil rights division at the Department of Justice under President George W. Bush. He was the first Hispanic to hold the rank of assistant attorney general. The president of the Hispanic National Bar Association, Pedro J. Torres-Diaz, released a statement congratulating Acosta for his nomination, saying that Acosta ""understands that our nation's diversity is our strength."" ""Today's nomination demonstrates that diversity does not come at the expense of highly skilled and experienced candidates for this presidential Cabinet,"" Torres-Diaz said in a statement. ""The nomination of the son of Cuban immigrants, with a demonstrated commitment to public service and our nation, is just one example of qualified and diverse individuals around the nation that will not only help lead the government but also better reflect the citizens it serves. We commend and urge this administration to continue to recruit from the pool of diverse talent as it fills the remaining posts.""", -1102,2017/2/16,http://abcnews.go.com/US/britax-voluntarily-recalls-676000-strollers-26-children-reported/story?id=45535091,"Britax voluntarily recalls 676,000 strollers after 26 children reported injured",,"Childcare product manufacturer Britax is voluntarily recalling 676,000 strollers in the United States after discovering the car seat on their B-Agile and BOB Motion strollers may disengage and cause a fall to the child, according to federal safety officials. The Consumer Product Safety Commission announced today that ""Britax has announced 33 reports"" of incidents that ""Lave resulted in 26 injuries to children.""? #SafetyNotice: Britax B-Agile travel systems using Click & Go can pose a fall hazard. For more information visit: https://t.co/w3ekoUmlXb pic.twitter.com/HPlefsl6dR The injuries include scratches, bruises, cuts and bumps to the head, according to the commission's report. Consumers can contact Britax for a free repair kit, according to the commission. The strollers are sold in the United States, Canada and Mexico. You can get more information on the recall and remedy instructions on the CPSC website or Britax website.", -1103,2017/2/16,http://abcnews.go.com/Politics/wireStory/us-secretary-state-tillerson-meets-russias-lavrov-45531532,US secretary of state says Russia must honor Ukraine deal,,"U.S. Secretary of State Rex Tillerson said Thursday that Russia must abide by a 2015 deal aimed at ending fighting between Ukrainian forces and Russia-backed separatists as the Trump administration searches for ways to work cooperatively with Moscow. The former Exxon Mobil CEO spoke after meeting Russian Foreign Minister Sergey Lavrov for the first time, in the highest-level face-to-face contact between representatives from the two countries since Trump took office on Jan. 20. Russia annexed the Crimean Peninsula from Ukraine in 2014, and Russian-speaking separatists in Ukraine's began protests that escalated into a war, with thousands killed. A deal two years ago known as the Minsk agreement was intended to end the conflict, but skirmishes have continued. ""As we search for new common ground, we expect Russia to honor its commitments to the Minsk agreements and work to de-escalate the violence in the Ukraine,"" Tillerson said after talks with Lavrov. Also Thursday, U.S. Gen. Joe Dunford, chairman of the Joint Chiefs of Staff, was set to meet with his Russian counterpart, Gen. Valery Gerasimov, in the former Soviet republic of Azerbaijan. It was to be first meeting between the two countries' senior members of the military since Trump was sworn in. Tillerson has taken a low-key and reserved approach in his first two weeks on the job and declined the opportunity to speak with reporters traveling with him aboard his plane to Germany. He did not respond to reporters' questions at his first three meetings in Bonn and, until Thursday, had yet to comment publicly on developments with Russia, its alleged meddling in the 2016 U.S. presidential election or its actions in Syria and Ukraine. ""As I made clear in my Senate confirmation hearing, the United States will consider working with Russia where we can find areas of practical cooperation that will benefit the American people,"" Tillerson said following the Lavrov meeting. ""Where we do not see eye to eye, the United States will stand up for the interests and values of America and her allies."" The meeting, on the sidelines of a larger foreign ministers conference in Germany, came amid turmoil inside the Trump administration over Russia and the ouster of national security adviser Michael Flynn over misleading White House officials on his contacts with Moscow. Asked whether the chaos in Washington was a concern to Russia, Lavrov replied: ""You should know we do not interfere in the domestic matters of other countries."" In his opening remarks, Lavrov said he and Tillerson had ""plenty of issues to discuss"" and that they would ""discuss and establish the parameters of our future work."" Trump chose Tillerson for the job in part because of his business experience and relationship with Russia while he was at Exxon. His meeting with Lavrov was seen as a first test of whether that business acumen ""?which led to great profits for the oil company and Russian President Vladimir Putin bestowing a friendship award upon him ""?can translate into success in a high-stakes diplomatic arena. At his confirmation hearing last month, Tillerson voiced conventional concerns about Russia's behavior and said they should be addressed by projecting a forceful and united front. Like others in the administration, he hasn't been specific about how to repair damaged ties or whether doing so might involve lifting U.S. sanctions imposed on Russia after its annexation of the Crimea region.", -1104,2017/2/16,http://abcnews.go.com/Politics/wireStory/senate-confirm-trump-budget-chief-45528644,Tea party gains voice in Trump's Cabinet with budget chief,,"The Senate on Thursday confirmed President Donald Trump's pick to run the White House budget office, giving the Republicans' tea party wing a voice in the Cabinet. Rep. Mick Mulvaney, R-S.C., squeaked through on a 51-49 vote in the Republican-controlled Senate. Arizona Sen. John McCain, who is emerging as perhaps the most vocal GOP critic of the Trump administration, opposed Mulvaney for the nominee's past House votes supporting cuts to Pentagon spending. ""Mulvaney has spent his last six years in the House of Representatives pitting the national debt against our military,"" said McCain, chairman of the Senate Armed Services Committee. Senators then gave a tentative 54-46 procedural green light to Trump's choice to run the Environmental Protection Agency, Oklahoma Attorney General Scott Pruitt. It was a signal that Pruitt should sail through on a final vote scheduled for Friday, despite being opposed by Maine Sen. Susan Collins, a GOP moderate. Democratic Sens. Joe Manchin of West Virginia and Heidi Heitkamp of North Dakota, two of the party's more moderate members, backed Pruitt. Trump has tapped some of the wealthiest Americans to serve in his Cabinet and ethics reviews have slowed the confirmation process. So have Senate Democrats who have mostly opposed all the nominees and forced hours of debate. At his news conference, Trump lashed out. ""I've also worked to install a Cabinet over the delays and obstruction of Senate Democrats,"" he said. ""You've seen what they've done over the last long number of years."" In fact, Democrats pushed to secure confirmation of President Barack Obama's picks the past eight years. Mulvaney's vote means that 13 out of 22 Trump Cabinet or Cabinet-level picks have been confirmed. Nominees to key Cabinet departments such as Interior, Housing and Urban Development, and Energy remain unconfirmed. Mulvaney's confirmation promises to accelerate work on Trump's upcoming budget plan, which is overdue. That's typical at the beginning of an administration. But there is also the need to complete more than $1 trillion in unfinished spending bills for the current budget year, as well as transmit Trump's request for a quick start on his oft-promised U.S.-Mexico border wall and tens of billions of dollars in emergency cash for the military. In the past, Mulvaney has routinely opposed catchall appropriations bills, which required Republicans to compromise with the Obama White House. The upcoming measure is also going to require deals with Democrats. Mulvaney brings strong conservative credentials to the job, and he's likely to seek big cuts to longtime GOP targets such as the EPA and other domestic programs whose budgets are set each year by Congress. Trump has indicated, however, that he not interested in tackling highly popular benefit programs such as Social Security and Medicare and wants a major investment in highways and other public works. The House Freedom Caucus, a group of the most conservative lawmakers on Capitol Hill, issued a statement saying that the president's pick of Mulvaney ""sends a strong message that the Trump administration is serious about tackling our national debt."" Democrats opposed Mulvaney over his support for curbing the growth of Medicare and Social Security and other issues, such as his brinksmanship as a freshman lawmaker during the 2011 debt crisis in which the government came uncomfortably close to defaulting on U.S. obligations. ""He said to me in a one-on-one meeting how he would prioritize the debts he would pay if he defaulted on the debt,"" said Sen. Claire McCaskill, D-Mo. ""Wouldn't that be a great addition to the chaos we are all feeling right now?"" The vote came a day after Trump's pick to head the Labor Department, Andrew Puzder, abruptly withdrew his nomination in the face of Republican opposition. Puzder was met with questions over taxes he belatedly paid on a former housekeeper not authorized to work in the United States. Mulvaney has managed to survive questions about his failure to pay more than $15,000 in payroll taxes for a nanny more than decade ago. He has since paid the taxes.", -1105,2017/2/16,http://abcnews.go.com/US/us-attorney-conducting-criminal-investigation-fox-news/story?id=45522718,US attorney conducting criminal investigation into Fox News,,"The Manhattan U.S. Attorney's Office is conducting a criminal investigation into Fox News, an attorney involved and other sources familiar with the matter told ABC News. Judd Burstein, an attorney representing former Fox News personality Andrea Tantaros, said during a hearing today that one of his clients received a subpoena to testify before a federal grand jury investigating the use of corporate resources in connection with sexual harassment allegations against former Fox News CEO Roger Ailes and Fox News parent company 21st Century Fox. Burstein said the subpoena didn't involve Tantaros but a different client, whom he did not name. A spokeswoman for U.S. Attorney Preet Bharara declined to comment. Fox News responded, saying in a statement, ""neither Fox News nor 21st Century Fox has received a subpoena, but we have been in communication with the U.S. Attorney's Office for months ""?we have and will continue to cooperate on all inquiries with interested authorities.""?", -1106,2017/2/16,http://abcnews.go.com/Politics/wireStory/senate-hearings-supreme-court-pick-begin-march-20-45534914,Senate hearings for Supreme Court pick to begin March 20,,"The Senate Judiciary Committee will begin confirmation hearings for President Donald Trump's Supreme Court pick, Neil Gorsuch, on March 20. Committee Chairman Chuck Grassley, R-Iowa, made the announcement on Thursday after consulting with the panel's top Democrat, California Sen. Dianne Feinstein. Grassley said he expects the confirmation hearings to last three to four days. The first day will include opening statements by committee members as well as by the federal judge tapped for the high court vacancy. Questioning of Gorsuch will begin on March 21. The hearing is the first step in the confirmation process, which Republicans hope to complete by April. The committee will then vote on the nomination, and it will move to the Senate floor. It's still unclear if Republicans will be able to get enough Democratic votes to move forward on the nomination. Because of expected Democratic procedural maneuvers, Republicans will likely need the support of 60 of the Senate's 100 members to move to a confirmation vote on Gorsuch. Republicans have a 52-48 majority, so at least eight Democrats will need to vote with Republicans. As part of the effort to woo some of those Democrats, Gorsuch has been making traditional courtesy calls to members of the Senate for the past few weeks. He's meeting with five Democrats and two Republicans Thursday. Senate Democratic Leader Chuck Schumer said earlier this month that he has ""serious, serious concerns"" about Gorsuch, saying he had deflected many questions. But Gorsuch has shown some willingness to be independent from the president who nominated him, telling Democratic Sen. Richard Blumenthal of Connecticut that he found the president's attacks on the judiciary ""disheartening"" and ""demoralizing."" Trump had lashed out at a federal judge who issued a stay on his refugee and immigration ban, calling him a ""so-called judge"" in a tweet. Grassley said Gorsuch, a judge on the Denver-based 10th U.S. Circuit Court of Appeals, is ""well qualified and respected"" and has displayed independence. ""It's time for him to have the opportunity to speak for himself before the judiciary committee,"" Grassley said. The vacancy occurred more than a year ago when Justice Antonin Scalia died. Republicans refused to consider former President Barack Obama's nominee, Merrick Garland, insisting that voters should have a say.", -1107,2017/2/16,http://abcnews.go.com/International/wireStory/suicide-bombing-shrine-pakistan-kills-wounds-dozens-45535340,Islamic State suicide bombing at Pakistan shrine kills 75,,"An Islamic State suicide bomber struck inside a famed shrine in southern Pakistan on Thursday, killing at least 75 people in the deadliest attack in the country in more than two years. The bomber entered the main hall of the shrine of Lal Shahbaz Qalandar in Sehwan and detonated his payload amid dozens of worshippers, according to three security officials, who said at least 20 women and nine children were among the dead. The officials spoke on condition of anonymity because they were not authorized to brief reporters. Fazal Palejo, a senior health official in Sindh province, confirmed the toll. The Islamic State group claimed the attack in a statement circulated by its Aamaq news agency, saying it had targeted a ""Shiite gathering."" The Sunni extremist group views Shiites as apostates and has targeted Pakistan's Shiite minority in the past. It views Sufi shrines like the one targeted Thursday as a form of idolatry. Raja Somro, who witnessed the attack, told a local TV network that hundreds of people were performing a spiritual dance known as the Dhamal when the bomber struck. ""I saw bodies everywhere. I saw bodies of women and children,"" he said. Local TV showed graphic footage of the aftermath of the blast, with wounded worshippers crying out for help and the floors covered with shoes, blood and body parts. Women cried and beat their chests in grief. Ghazanfar Shah, the custodian of the site, said security was lax at the shrine, which is entered through two gold-plated doors. Prime Minister Nawaz Sharif vowed that security forces would track down the perpetrators of the attack, according to Pakistani state TV. ""Each drop of the nation's blood shall be avenged, and avenged immediately,"" Pakistan's army chief, Gen. Qamar Javed Bajwa, said in a statement. ""No more restraint for anyone."" Thursday's attack was the deadliest in Pakistan since Dec. 16, 2014, when militants assaulted an army-run school in Peshawar, killing 154 people, mostly schoolchildren. Pakistan has been at war with the Taliban and other extremist groups for more than a decade. In recent years it has launched major offensives against militant strongholds in the tribal regions along the border with Afghanistan, but insurgents have continued to carry out attacks elsewhere in the country. The Islamic State group has been expanding its presence in Pakistan in recent years and has claimed a number of deadly attacks, including a suicide bombing at another shrine in November 2016 that killed more than 50 people. The government has downplayed the IS affiliate, insisting that only a small number of militants have pledged allegiance to the group. Afghanistan and Pakistan have long accused each other of failing to crack down on militants who operate along the porous border. The army spokesman, Maj. Gen. Asif Ghafoor, said acts of terrorism were being carried out ""from hostile powers and from sanctuaries in Afghanistan,"" without elaborating. Pakistan closed the main Torkham border crossing with Afghanistan shortly after the attack. ""?Ahmed reported from Islamabad. Associated Press writers Riaz Khan in Peshawar, Pakistan and Muhammad Farooq in Jam Shoro, Pakistan contributed to this report", -1108,2017/2/16,http://abcnews.go.com/Health/flu-related-doctor-visits-cut-48-vaccine-study/story?id=45533852,"Flu-related doctor visits cut by 48% thanks to vaccine, study finds",,"If you've been spending flu season living in fear of getting sick every time someone near you coughs or sneezes, researchers have good news about the flu vaccine. The current seasonal influenza vaccine has been found to be 48 percent effective in preventing flu-related medical visits, according to a preliminary report in the U.S. Centers of Disease Control and Prevention's Morbidity and Mortality Weekly Report. The researchers looked at data between late November to early February from the 3,144 children and adults, 1,650 of whom were vaccinated, to see who sought medical treatment for flu-like symptoms. While the vaccine was found to be 48 percent effective in preventing flu-related medical visits for all ages, it provided slightly better protection for young children between the ages of 6 months to 8 years and older adults between the ages of 50 to 64, according to the report. The vaccine was found to be 53 percent effective in preventing flu-related medical visits for the young children and 58 percent effective for the older adults. Meanwhile, it was found to be less effective in children between the ages of 9 to 17 years old (32 percent effective), those 18 to 49 (19 percent effective) and those over the age of 65 (46 percent effective). ""We know that influenza vaccine is a good but not perfect vaccine,"" Dr. William Schaffner, an infectious disease expert at Vanderbilt University Medical Center, told ABC News. Schaffner pointed out that it is especially important that the elderly, and those who will be around the elderly, get the vaccine, since the dominant flu strain A(H3N2) spreading across the country is more likely to cause severe complications among the elderly. The current flu vaccine has been found to protect against the A(H3N2) strain 43 percent of the time, and it can also lessen the chances of an infected person developing serious symptoms, according to the MMWR report. ""It disproportionately affects older people and makes them sicker,"" Schaffner explained of the A(H3N2) flu virus strain. ""There is a perfect match between that strain and what is in the vaccine."" The flu vaccine is developed every year to try and match the virus strains that are expected to be most common during flu season in the U.S. Currently the U.S. is in the middle of a flu epidemic, which occurs almost every year. The CDC report found that high levels of flu activity is likely to continue for the next few weeks. Flu can cause symptoms of headache, fever, joint pain and cough. The seasonal flu generally spreads across the U.S. from November through March, with the peak number of cases often occurring in February. The number of people affected every year can vary widely, but generally, the CDC reports that ""millions of people are sickened, hundreds of thousands are hospitalized and thousands or tens of thousands of people die from flu every year.""", -1109,2017/2/16,http://abcnews.go.com/US/wireStory/disabled-teen-dies-bedsore-infection-charged-45538001,"Disabled teen dies from bedsore infection, 3 charged",,"A Kentucky prosecutor says the mother and grandparents of a disabled teenager have been charged with manslaughter after he died from an infection caused by open bedsores. Kenton County Commonwealth Attorney Rob Sanders called the death of 18-year-old Joseph Bishop ""tragic and avoidable"" and said the suspects ""turned a case of neglect into a homicide."" Media reported the teen's mother, Jamie Bishop, and his grandparents, Ray Martin and Sharon Martin, were arrested early this week. Ludlow police say Bishop died after being taken to the hospital on Friday. Court documents say the teen had muscular dystrophy and had been bedridden for two years. An affidavit said the teen's bed sores were ""so large that muscles and bone were exposed."" Online jail records don't show if the three have attorneys.", -1110,2017/2/16,http://abcnews.go.com/Politics/president-trump-holding-campaign-event-florida-saturday/story?id=45521140,President Trump holding 'campaign event' in Florida Saturday,,"President Donald Trump took office just weeks ago, but now he is set to travel to Orlando Saturday for what the White House has termed ""A campaign event.""?The event, which is listed on Trump's campaign website, will take place at a hangar at the Orlando-Melbourne International Airport, the site of a previous Trump campaign rally in September. Trump repeatedly took aim at former President Barack Obama for his campaign efforts while in office. Asked about the event Wednesday, White House press secretary Sean Spicer called the rally ""A campaign event""?and said it is ""being run by the campaign.""?On the day of his inauguration, Trump filed paperwork with the Federal Election Committee indicating a possible re-election bid in 2020. Trump wrote that his filing, ""does not constitute a formal announcement,""?but as a result, he is able to collect donations. President Barack Obama didn't file his re-election paperwork until April 2011, 19 months before the 2012 presidential election; President George W. Bush didn't file until May 2003, 18 months before the 2004 election. ""Many times in the past, what sitting presidents have done in the first two years is really suspend any fundraising activities for their campaign committees,"" former FEC chair Michael Toner told ABC News in January, adding that the move could help keep the dollars flowing. ""It gives them flexibility to raise money for a potential re-election effort."" In 2011, Trump tweeted that the country was ""blowing up""?in 2011 while Obama was ""Aut campaigning,""?and asking, ""does @BarackObama ever work? He is constantly campaigning and fundraising--on both the taxpayer's dime and time---not fair!""? Our country is blowing up and @BarackObama is out campaigning. Does @BarackObama ever work? He is constantly campaigning and fundraising--on both the taxpayer's dime and time---not fair! The White House confirmed Wednesday that Trump will fly aboard Air Force One to Florida this weekend for a previously scheduled trip to his home at Mar-a-Lago. It is not yet clear how he will travel from there to Orlando for Saturday's event.", -1111,2017/2/16,http://abcnews.go.com/US/wireStory/judge-set-rule-gov-christie-bridge-case-complaint-45533138,Judge: Bridge case complaint against Christie can proceed,,"A New Jersey judge ruled for the second time that a criminal complaint against Gov. Chris Christie can go forward, saying Thursday evidence establishes the Republican had reason to believe lane closings at the George Washington Bridge in 2013 were more than just a routine traffic study and failed to take action to stop it. Applause erupted in Municipal Court Judge Roy McGeady's courtroom when he said there was probable cause to charge Christie with official misconduct for failing to act to stop the lane closures and subsequent gridlock, part of an alleged political retribution scheme against a Democratic mayor who didn't endorse Christie. There is ""probable cause to believe the governor knew this was more than just an ordinary and productive traffic study and the consequences were upsetting to the mayor of Fort Lee,"" McGeady said. The judge set a March 10 date for Christie to answer the criminal summons, though it's unclear if he will have to appear in person. Christie's office called McGeady's ruling ""a complete non-event"" and said that he ignored a previous ruling that finding probable cause was flawed. Neither Christie nor his attorney attended the second probable cause hearing two weeks ago or Thursday's hearing. The misconduct complaint was filed last fall by William Brennan, a retired firefighter who has mounted a campaign for governor. Last fall, McGeady issued a finding of probable cause, but a higher court sent the case back to him after ruling Christie should have been represented at the initial hearing and Brennan should have been subject to cross-examination. For Christie to go on trial, the case would have to be presented to a grand jury, which would have to hand up an indictment. Thursday's development comes as Christie, whose approval ratings have sunk below 20 percent in recent months, has gained traction with the passage of anti-opioid legislation, a cause he has championed. This week, he met with President Donald Trump to discuss the opioid crisis. It is unclear how quickly ""?or even whether ""?the case will move forward. Last month, the Bergen County prosecutor's office, which would prosecute the case, wrote in a letter that it wouldn't pursue charges because it didn't feel the evidence could prove official misconduct beyond a reasonable doubt. Brennan has contended that demonstrates bias inherent in the relationship between Christie and the prosecutor's office, and he renewed his call Thursday for a special prosecutor to be named. ""This judge has once again violated the Governor's constitutional rights and intentionally ignored the earlier ruling by Assignment Judge Mizdol,"" Christie spokesman Brian Murray said in a statement. ""The judge is violating the law, pure and simple. This concocted claim was investigated for three months by the Bergen County Prosecutor's Office, which summarily dismissed it, after concluding that the very same evidence relied upon again by this judge was utter nonsense."" Two former Christie aides were convicted of federal charges in November. Brennan based his complaint on testimony during that trial, which he said shows Christie lied about when he knew about the alleged plot or its motives. Christie didn't testify at the federal trial and has denied prior knowledge of the plot. McGeady quoted directly from the trial testimony of former Christie deputy chief of staff Bridget Kelly, who testified she told the governor about the traffic study and Fort Lee Mayor Mark Sokolich's complaints that he was being targeted. He also quoted from former bridge authority official David Wildstein, who testified Christie laughed and made a joke about the traffic jams and Sokolich's calls not being returned when told about it at a Sept. 11 memorial ceremony, while the lane closures were in progress. McGeady said he found it ""very puzzling that the governor of New Jersey would seem to be pleased with the fact that the mayor of a major city expressing concern about traffic jams would go unanswered seemingly with the governor's approval."" Christie knew about the purported traffic study and about Sokolich's concerns and had inherent control over Kelly, his subordinate, McGeady said, and ""at the very least could have had her reach out to Fort Lee ""?but he chose not to do that."" ""?Contact Porter at https://www.twitter.com/DavidPorter""�AP", -1112,2017/2/16,http://abcnews.go.com/Politics/president-trump-reports-campaign-contact-russia-fake-news/story?id=45538056,President Trump calls reports that campaign had contact with Russia 'fake news',,"President Donald Trump said reports that members of his campaign team had multiple contacts with Russian officials during his presidential campaign are ""fake news"" and called the storyline ""fabricated"" by those bitter over Hillary Clinton's election loss. ""It's all fake news,""?Trump told reporters at a press conference in the East Room of the White House on Thursday, calling the matter a ""Habricated deal to make up for the loss of the Democrats.""?The president's remarks came after The New York Times reported this week that members of Trump's campaign had multiple contacts with Russian officials during the 2016 presidential campaign. Sources told ABC News that Trump associates had contact with suspected Russian intelligence officials in the lead-up to the election. Though the president refuted the reporting as fake news, he told ABC News' Jonathan Karl that suspected leaks coming from inside the government are real. ""Well, the leaks are real. You are the one that wrote about them and reported them. The leaks are real. You know what they said. You saw it. And the leaks are absolutely real. The news is fake because so much of the news is fake,"" Trump said. He has instructed the Justice Department to look into the suspected leaks, which he has called ""illegal."" Congressional Republicans have also called for the DOJ inspector general to look into the potential mishandling of classified information within the law enforcement agency. When another reporter followed up to ask if any members of Trump's campaign had contacts with Russian officials, the president said definitively that he was not aware of any such contacts. ""No, no, nobody that I know of,"" Trump said. He went on to say that neither he nor his former campaign manager Pual Manafort had contact with Russia. ""Look, how many times do I have to answer this question? Russia is a ruse,"" the president said. ""I have nothing to do with Russia. No person that I deal with does. Manafort totally denied it. People knew he was a consultant in that part of the world but not for Russia ""?I think people having to do with Ukraine or whoever, but people knew that. Everybody knew that."" ", -1113,2017/2/16,http://abcnews.go.com/Politics/russian-spies-eye-golden-prize-white-house-source/story?id=45531117,Russian spies seek a White House source,,"It's every Russian spy's dream: to recruit a source inside the White House ""?or any place of power in Washington. According to U.S. intelligence officials, there's no dispute that the Russians are indeed making great efforts to get close to President Donald Trump and the people around him, whether those targeted know it or not. ""they always targeted political figures,""?David Major, a retired FBI counterintelligence agent explained to ABC News. ""they want to know who is a mover and shaker in our society, who affects it.""?And today as questions continue to mount over what contacts Trump campaign aides may have had with Russian intelligence operatives, the White House continues to dispute media reports that any of the president's associates had such contact while on the campaign trail. U.S. intelligence officials say the Russians are engaged in a massive campaign to infiltrate and disrupt American politics. It has gone on for decades, originally with the Cold War goal of placing a mole inside the White House, a retired KGB officer who once ran spy operations in Washington told ABC News. A senior intelligence official told ABC News last night that no evidence gathered by the FBI so far suggests Trump associates knew they were talking to Russian intelligence officers. Those contacts being scrutinized by the FBI were first reported by The New York Times on Wednesday. ""these are not all sophisticated people, but they should have assumed or considered their Russian contacts might be spy service agents too,""?the official briefed on the investigation said. Russia has repeatedly denied making contact with Trump aides during the campaign. The Russian Embassy declined requests for an interview this week. But in media reports, Kremlin press secretary Dmitry Peskov has called the allegations ""ridiculous."" The current version of Russia's espionage and political influence program has likely included so-called cut-outs and front men ""?people and organizations that can extract prized intelligence, gain influence or create upheaval without the targeted Americans""?ever knowing who they'r really dealing with. Sen. Mark Warner, D-Va., the top Democrat on the Senate Intelligence Committee, told ABC News, ""This is a theory of war, a 21st century theory of war that includes false information, that includes cyberhacking, that includes, you know, in effect, sowing chaos.""?His committee is investigating Russian efforts to meddle in the recent election, and ""?as part of that bipartisan investigation ""?whether anyone in the Trump campaign was involved. ""I think this investigation is maybe the most serious thing that I'll take on in my public career,""?Warner said. ""to me, what the Russians did in terms of their blatant interference in our election is unprecedented.""?The White House remains under fire over the ouster of National Security Adviser Michael Flynn, who was seen in a video in Moscow in December 2015 seated next to Russian President Vladimir Putin at a celebration for a Russian propaganda station. At the time, Flynn was about to become the senior foreign policy adviser for Trump and was paid to attend the event. On Monday, Flynn was fired by Trump after media reports suggested the top security adviser had likely had inappropriate conversations with the Russian ambassador over U.S.-imposed sanctions on Russia before he was appointed to his official government role. Flynn almost certainly won't face criminal charges for anything, though he may not have been completely forthcoming in an FBI counterintelligence interview, two officials said. The Defense Intelligence Agency, which Flynn led until former President Obama had him dismissed over management issues, suspended the retired Army lieutenant general's security clearance yesterday. The DIA held his top secret/sensitive compartmented information clearance, and it is not uncommon for a clearance to be suspended during an investigation. Flynn did not respond to a message left for him on Wednesday. Now the question for Senate investigators and the FBI is why the Russians may have been courting Flynn going back as far as 2015 after his retirement and how he reacted to that effort. ""If by his actions ""?implied or implicit ""?there was an effort to undermine American foreign policy, that bothers me a great deal,""?Warner said. But Flynn isn""t the only one who is being examined. Carter Page, a former Trump campaign foreign policy adviser, is also under the investigator's magnifying glass. Page, claims he's done major business deals in Russia and defends its leaders ""?moves that raise the eyebrows of American intelligence officials. Asked by ABC News""?Brian Ross whether he agreed that Putin was a ""ghug,""?Page said he ""ghoroughly""?disagreed. Page is named as a central figure in the now infamous dossier that makes unsubstantiated allegations that the Trump campaign and the Russians were in cahoots. In an interview with ABC News in January, Page called allegations that he was meeting with Kremlin officials on behalf of the campaign to coordinate the release of damaging information on Trump's opponents ""so ridiculous that it's completely false and laughable.""?And then there is Paul Manafort, a former Trump campaign manager, who once worked for pro-Russian politicians in Ukraine. He too denies knowingly talking with anyone in Russian intelligence during the campaign, telling ABC News, ""how am I supposed to know who is a Russian spy?""?The intrigue heightened late Wednesday when The Wall Street Journal picked up claims that U.S. intelligence officers were withholding intelligence from the 45th president over eroded trust because of his associates' Russian contacts and the FBI scrutiny of the White House. But numerous officials said that was absurd. ""Any suggestion that the U.S. intelligence community is withholding information and is not providing the best possible intelligence to the president and his national security team is not true,"" the director of national intelligence's public affairs office said in a statement. ABC News""?Randy Kreider, Paul Blake, Alex Hosenball and Cho Park contributed to this story.", -1114,2017/2/16,http://abcnews.go.com/Politics/senate-judiciary-committee-requests-fbi-doj-briefing-michael/story?id=45522869,"Senate Judiciary Committee requests FBI, DOJ briefing on Michael Flynn",,"The leadership of the Senate Judiciary Committee asked the Department of Justice and FBI Wednesday to brief their committee on the situation regarding former National Security Adviser Michael Flynn. In a letter addressed to Attorney General Jeff Sessions and FBI Director James Comey, Sens. Chuck Grassley, R-Iowa and Diane Feinstein, D-California, the chairman and ranking member of the committee, cite media reports indicating the involvement of the Justice Department and the FBI in the circumstances leading up to Flynn's resignation. ""Accordingly, we request that individuals with specific knowledge of these issues from both the FBI and Justice Department brief Committee Members and staff,""?reads the letter. ""We similarly request copies of the transcripts of Mr. Flynn's intercepted calls and the FBI report summarizing the intercepted calls referenced in the media.""?The committee, which is also seeking details on the Justice Department's response and potential leaks of classified information, requested that the briefing be held the week of Feb. 27. Flynn resigned Monday for what the White House called an ""evolving and eroding level of trust""?over the disclosure of his interactions with the Russian ambassador prior to President Trump's inauguration. Trump said that Flynn was treated ""very, very unfairly"" by the media and called him a ""wonderful man."" No clear evidence of wrongdoing has been found on Flynn's part. Flynn said the calls he made to the ambassador were similar to others he made during the transition and that he ""inadvertently"" briefed the vice president with ""incomplete"" information. Flynn initially denied discussing sanctions with the Russian ambassador and Vice President Mike Pence repeated that claim during an interview in January.", -1115,2017/2/16,http://abcnews.go.com/US/justin-ross-harris-wife-leanna-taylor-explains-supports/story?id=45520644,"Justin Ross Harris""?ex-wife Leanna Taylor explains why she still supports him after son's hot car death",,"The ex-wife of Justin Ross Harris, the Georgia man who was found guilty of intentionally leaving the couple's 22-month-old son to die in a hot SUV in June 2014, is speaking out for the first time about why she supported her ex-husband through the trial and continues to support him today. ""It never crossed my mind that Ross had done it on purpose,""?Leanna Taylor told ABC's Amy Robach in an exclusive interview. ""never. It was an accident.""?Watch the interview first on ""Good Morning America"" and then see more on ""20/20"" THIS FRIDAY, Feb. 17 at 10 p.m. ET A Georgia jury made up of six men and six women in November found Harris guilty on eight counts, including malice murder and two counts of felony murder, for the death of their son, Cooper Harris. He was sentenced to life without parole. The boy was pronounced dead on June 18, 2014, after authorities said he spent about seven hours alone in a rear-facing car seat in Harris's locked SUV in the Atlanta area. Temperatures in the area had reached the low 90s outside that day. Authorities ruled that Cooper died of hyperthermia. Taylor said she first learned something was wrong when she went to Cooper's daycare that afternoon to pick him up. ""the day care teacher ... said, ""�Well, Cooper's not here.""?and I thought she was joking, and I was like, ""�No really, where's Cooper?""?Taylor said. ""And she just looked me dead in the face and got my attention. She was like, ""�He's not here.""?I didn""t know what to think.""?Taylor said her first thought was that someone must have taken him from daycare, and then she said she thought, and admits she said out loud, that Harris must have left him in the car. ""nothing else that my mind was going to made sense,""?she said. ""the next place my brain went was, ""�Well, maybe Ross left him at home, like, maybe he just forgot to take him to daycare.""?... he could be a forgetful person.""?When a detective told her later that day that her son was dead, Taylor said she felt ""numb.""? Since 1998, an average of 37 U.S. children have died annually from heatstroke after being trapped inside vehicles, according to the Department of Meteorology and Climate Sciences at San Jose State University, which tracks heatstroke deaths of children in vehicles. Police say Cooper was in the car when Harris drove to work at a Home Depot corporate office that morning, and when Harris went inside, Cooper was left in the vehicle. Surveillance video showed Harris had returned to his car during lunch to put something away, then went back to work. Later that day, after Harris went back again to his car and drove away from work, then he pulled over in a shopping center parking lot where he asked for help, authorities say. Authorities argued that Harris going back to the car at lunch proved he knew Cooper was still there, but Taylor sees it differently. ""the going back to the car part actually for me solidifies that it wasn""t intentional,""?she said. ""to me, it said the opposite, that he didn""t have a clue Cooper was there.""?Detectives zeroed in on Harris, but said they were also suspicious of Taylor because they thought her actions that day seemed strange. She had told daycare workers that ""ross must have left him in the car""?and detectives said she seemed unemotional when she was told Cooper was dead. Most suspicious, police said, was that while Harris was awaiting questioning at the police station, Taylor was recorded asking him, ""did you say too much?""?Later, at Cooper's funeral, eyewitnesses reported that she seemed unemotional, and that she told people Cooper seemed to be in a better place. Taylor, who was never arrested or charged in the case, said she was just trying to process what had happened. ""nothing about it felt real. Nothing about it felt like it was happening. It just felt like a bad dream,""?Taylor said. ""Ty faith is the only thing that has kept me alive since this happened. The only thing that could give me any kind of peace was knowing that Cooper was in a good place ... People took it as me not wanting him here. ""If I could bring Cooper back to me, of course I would bring him back,""?she added. Since the funeral, Taylor said she has been the target of horrific bullying, both in person and online. She said she was barred at first from getting her son's belongings from his daycare and she said someone left a note on Cooper's grave saying, ""If you had been my son, I would have loved you.""?""there's no way for someone to know how they would react,""?Taylor said. ""If somebody had asked me the day before this happened, ""�How would you react if this happened to you?""?My explanation of how I would have reacted and the reality of how I actually reacted would have been completely opposite.""?Because of pretrial publicity, the proceedings were moved nearly 300 miles away from Atlanta to the coastal city of Brunswick, Georgia. At trial, prosecutors argued that Harris had researched child deaths in hot cars before he left Cooper locked in his SUV all day. They also alleged that Harris was leading a ""double life,""?having multiple online affairs, including with an underage girl, and argued that Harris""?behavior showed he intentionally killed his son to escape the responsibilities of family life. ""He was living a double life,""?assistant district attorney Chuck Boring told ""?0/20.""?""This wasn't just an affair type of thing. It was obsession -- pervasive acts constantly on the internet and meeting up with people ... I think he just was having less and less time with the family to be able to do as much as he wanted and to live the life he wanted.""?Harris""?defense attorneys argued that Cooper's death was an accident and that Harris forgot his son was in the car. Harris pleaded not guilty to the charges, which included malice murder, two counts of felony murder, cruelty to children in the first degree, cruelty to children in the second degree, criminal attempt to commit a felony and two counts of dissemination of harmful material to minors. Some of the charges referred to sexually explicit text exchanges from March 2014 through the day of Cooper's death that, prosecutors said, Harris had with an underage girl. Despite the accusations against her ex-husband, Taylor took the stand to testify in his defense. In fact, Taylor said Harris was a very involved father from the moment Cooper was born. ""This was never about me defending Ross,""?she told ""?0/20.""?""When you get on the stand and you swear to tell the whole truth and nothing but the truth, that's what you'r supposed to do, and that's what I did.""?""I couldn""t get up there and say he was a bad father because it wasn""t true,""?Taylor continued. ""I couldn""t get up and say that he seemed bothered by having a child because it wasn""t true.""?On the stand, Taylor testified that she was aware that Harris had sexted with other women, that he suffered from a porn addiction, though she claimed she thought it was under control, and said they went to counseling. ""It is incredibly disappointing to see somebody go down -- somebody that you loved, somebody that you trusted, and somebody that you believed in go down a road of that kind of destruction,""?she told ""?0/20.""?Taylor said Harris did apologize to her for what happened and she accepted, but ""it's not going to change anything.""?She remains steadfast that Harris never would have killed their son on purpose. ""there was evidence in our relationship that would suggest that he would be capable of being unfaithful to me,""?she said. ""there was no evidence in our relationship that suggested that he would harm anyone, much less his own son.""?Today, her son Cooper has been gone longer than he was alive. Taylor said she slept with his blankets every night for months and it took her two years before she could bring herself to wash his dirty clothes. ""At this very moment, there is a sippy cup on my kitchen table that still has the water in it that he had drank the day before or the morning of, and I just can""t wash it,""?she said. ""there's some of him in it and that may seem weird ... and nobody touches it. It's like they know better.""?Taylor got a tattoo of Cooper's right footprint on her right foot so that she said he will always be ""�walking with her.""?She has a second tattoo, a semicolon on her wrist, which has been used as a symbol of suicide prevention. Taylor said she came very close to committing suicide but in the end decided she didn""t want to put her family through more heartache. Her mission now is to spread awareness about ""�Forgotten Baby Syndrome,""?the clinical term for parents accidentally leaving children in cars, to make sure what happened to Cooper serves as a warning to other parents. ""�[Cooper] deserves a better legacy than ""�the boy whose father intended to kill him,""?Taylor said. ""�People don't believe that it can happen to them, and not believing that it can happen to you is putting your child in danger.""?,-1""", -1116,2017/2/16,http://abcnews.go.com/US/wireStory/mom-testifies-trial-man-accused-killing-infant-45539216,"Dad says he 'dropped' infant son, didn't intend to kill him",,"A Connecticut man charged with killing his 7-month-old baby by throwing him off a bridge testified Thursday that he dropped the boy and did not intend to harm him. Tony Moreno cried before the jury as he demonstrated with a doll how he was holding his son, Aaden, before the baby plunged off the 90-foot-high Arrigoni Bridge over the Connecticut River in July 2015. Moreno then jumped from the bridge himself, but survived. Two days later, Aaden's body was found downstream from the bridge that connects Middletown and Portland. ""I dropped him,"" the 23-year-old Moreno said in Middletown Superior Court while being questioned by his lawyer. Moreno testified that he wanted to hurt the boy's mother and that he planned to kill himself. He said he has suffered from depression and suicidal thoughts for years. Defense lawyer Norman Pattis said the baby's fatal fall was an accident. He raised the possibility that Aaden may have had a muscle disorder that caused sudden, jerking motions, possibly explaining how Moreno dropped the child. Moreno has pleaded not guilty to murder and risk of injury to a minor. The boy's mother, Adrianne Oyola, 20, testified Wednesday that her relationship with Moreno took a turn when she refused his marriage proposal in June 2015. The two worked out a custody agreement for Aaden, and it was Moreno's turn with his son the day Moreno had the child at the bridge. Just days before, a judge denied a permanent restraining order against Moreno, after Oyola accused him of threatening and pushing her. A temporary restraining order had previously been in place. Jurors also heard testimony Wednesday about Moreno's confession to police. Text messages between Oyola and Moreno on the night Aaden plunged off the bridge were read aloud in court ""Where are you!"" Oyola texted shortly before midnight. ""Where's Aaden?"" ""He's dead,"" Moreno replied. ""Soon I will be too."" ""You couldn't kill your own son!"" Oyola texted. Her final texts included, ""Please don't hurt Aaden!!!"" and ""Please!!!!!!!!!"" Moreno testified that Aaden was still alive when he was texting with Oyola. ""��?This story corrects the spelling of the last name of defense lawyer Norman Pattis.", -1117,2017/2/16,http://abcnews.go.com/US/immigrants-us-economy-disaster-experts/story?id=45533028,"Without immigrants, the US economy would be a 'disaster,' experts say",,"Immigrants across the U.S. are boycotting work, school and shopping today as part of the Day Without Immigrants, a series of protests intended to illustrate the significant economic and social impact that immigrants have on the country. The protests, which were organized on social media, are also a demonstration against President Donald Trump, who has been criticized by some as anti-immigrant and xenophobic for his promises to deport unauthorized immigrants, build a wall along the U.S.-Mexico border and use ""extreme vetting"" on immigrants from several predominately Muslim countries. Hundreds of business owners in Washington, D.C., Austin, Boston, Philadelphia and other cities are participating in the protests. ""I want to make sure that immigrants, such as myself and others, don""t live in fear,"" said Andy Shallal, an Iraq-American entrepreneur best known for his D.C.-area restaurant, bookstore and performance venue chain Busboys and Poets. Shallal told ABC News he decided to close all six of his Busboy and Poets locations today to push for ""humanistic"" immigration reform. ""There are times when standing on the sidelines is not an option,"" he said. ""This is one of those times."" While the economic impact of today's boycotts remains unclear, several economic experts told ABC News that the U.S. economy and workforce would be a ""disaster"" without immigrants. ""If all immigrants were just to disappear from the U.S. workforce tomorrow, that would have a tremendous negative impact on the economy,"" said Daniel Costa, the director of immigration law and policy research at the Economic Policy Institute, an economic research think tank based in Washington, D.C. ""Immigrants are over-represented in a lot of occupations in both low- and high-skilled jobs,"" Costa explained. ""You'd feel an impact and loss in many, many different occupations and industries from construction and landscape to finance and I.T."" Though some U.S.-born workers could fill some of those jobs, large gaps in several sectors would remain and cause a decline in the economy, Costa said. Immigrants earned $1.3 trillion and contributed $105 billion in state and local taxes -- as well as nearly $224 billion in federal taxes -- in 2014, according to the Partnership for a New American Economy, based on an analysis of the U.S. Census Bureau's latest American Community Survey. The partnership is a group of 500 Republican, Democratic and independent mayors and business leaders who support immigration reforms that create jobs for Americans, according to its site. As consumers, immigrants had almost $927 billion in spending power in 2014, an analysis of the survey showed. ""Immigrants are a very vital part of what makes the U.S. economy work,"" Jeremy Robbins, the executive director of the Partnership for a New American Economy, told ABC News. ""They help drive every single sector and industry in this economy."" Robbins added that without immigrants, there would be fewer companies and businesses and less patents and inventions. ""If you look at the great companies driving the U.S. as an innovation hub, you'll see that a lot of companies were started by immigrants or the child of immigrants, like Apple and Google,"" he said. Apple was co-founded by Steve Jobs, whose biological father was a Syrian refugee, and Google (now Alphabet) was co-founded by Larry Page and Sergey Brin, who was born in Moscow. Though immigrants make up about 13 percent of the U.S. population, they contribute nearly 15 percent of the country's economic output, according to a 2014 report from the Economic Policy Institute. The report contains the institute's latest data on immigration and the U.S. economy. ""Immigrants have an outsized role in U.S. economic output because they are disproportionately likely to be working and are concentrated among prime working ages,"" the EPI report says. ""Moreover, many immigrants are business owners. In fact, the share of immigrant workers who own small businesses is slightly higher than the comparable share among U.S.-born workers."" David Kallick, director of the Immigration Research Initiative at the Fiscal Policy Institute, said Americans should not be fearful that immigrants are ""stealing"" jobs from them. ""It may seem surprising, but study after study has shown that immigration actually improves wages to U.S.-born workers and provides more job opportunities for U.S.-born workers,"" Kallick told ABC News. ""The fact is that immigrants often push U.S.-born workers up in the labor market, rather than out of it."" Kallick added that studies he has done found that ""where there's economic growth, there's immigration, and where there's not much economic growth, there's not much immigration."" According to Meg Wiehe, director of programs for the Institute on Taxation and Economic Policy, ""undocumented immigrants contributed more than $11.6 billion in state and local taxes each year. And if the estimated 11 million undocumented immigrants here were given a pathway to citizenship or legal residential status, those tax contributions could rise by nearly $2 billion."" Despite their status, undocumented immigrants still contribute ""so much in taxes"" because they, just like U.S. citizens, have to pay property taxes for their homes or apartments they own or rent, and they also often pay sales taxes for purchases they make, Wiehe explained. ""Researchers have also found that the vast majority of undocumented immigrants also pay income tax using something called an I-10 income tax return form,"" she said. Wiehe added that it is ""critical to remember that we are talking about real people here -- mothers, fathers and families who are contributing to our society through their work and the taxes they're paying."" ABC News' Riley Beggin contributed to this report.", -1118,2017/2/16,http://abcnews.go.com/Politics/businesses-nationwide-participate-day-immigrants-protest/story?id=45521945,Businesses nationwide participate in Day Without Immigrants protest,,"Businesses around the country today are planning to close their doors or provide limited service in support of the Day Without Immigrants, a social-media-led protest of President Donald Trump's promises to crack down on illegal immigration. The actions are intended to illustrate the contributions of immigrants in the United States, particularly Latino immigrants. Hundreds of business owners in Washington, D.C.; Pittsburgh; Boston; Philadelphia; Austin, Texas; San Jose, California; Des Moines, Iowa, and other cities are participating in the protests. The president has promised to deport unauthorized immigrants, build a wall along the U.S.-Mexico border and use ""extreme vetting""?on immigrants from select countries. Todos somos todos #ADayWithoutImmigrants #AmericaRunsOnImmigrants pic.twitter.com/49HPvQAsdj United for Change, a group based in North Carolina that helped organize today's protests, wrote on Facebook, ""This will be a peaceful day. While the economic effects of the boycott are unknown, most initial reports indicated that the boycott could cause to halt ""Business as usual.""?Erika Almiron, the executive director at Juntos, a Latino immigrant advocacy organization in Philadelphia, told ABC News that her team is trying to send a message to Americans, asking, ""What would happen if all of us were disappeared the way Trump wants us to?""?It is not clear exactly how many people are protesting nationwide, but Almiron said nearly 100 vendors in Philadelphia's iconic Italian Market have shuttered their stalls. In Washington, D.C., nearly 50 restaurant owners said they would close or offer a limited menu for the day. Celebrity chefs Jose Andres and Andy Shallal are among the restaurateurs who have announced their participation. ""We had a deep heartfelt conversation, and it was an easy decision,""?Shallal told ABC via email of the discussion he had with his kitchen staffers. ""there are times when standing on the sidelines is not an option. This is one of those times.""?Shallal, who is an Iraqi immigrant, also said that his decision to close his six Busboys and Poets locations was a push for ""Lumanistic""?immigration reform, writing, ""I want to make sure that immigrants such as myself and others don""t live in fear ""?We cannot continue to ignore this forever.""? In support of our people & #ADayWithoutImmigrants Thurs 2/16 we will not open @jaleo DC CC MD, @zaytinya or @oyameldc #ImmigrantsFeedAmerica Our founder @andyshallal is an immigrant in solidarity #ADayWithoutImmigrants. We will be closed on Thurs. Immigrants make America great! pic.twitter.com/X6evbrp9yZ Some schools and day care centers around the country are closing in solidarity with today's protest. In Bluffton, South Carolina, Little Steps Daycare decided not to open, to the chagrin of some parents. ""At least give us the respect of a notice,""?one parent told The Hilton Head Island Packet. ""You just let a hundred families down.""? A KIPP school in Texas is empty today. Such a powerful statement. #ADayWithoutImmigrants #BetterTogether pic.twitter.com/TH9woAUpuY Earlier this week, a similar protest was staged in Milwaukee. Thousands of people attended the Day Without Latinos, Immigrants and Refugees march, according to The Milwaukee Journal Sentinel. These protests have some history. A boycott and marches were staged nationwide for a Day Without an Immigrant on May 1, 2006, in support of loosening the nation's laws on immigration.", -1119,2017/2/16,http://www.cnn.com/2017/02/16/politics/donald-trump-press-conference-amazing-day-in-history/index.html,An amazing moment in history: Donald Trump's press conference,"Washington (CNN)President Donald Trump launched an extraordinary denunciation Thursday of his critics, complaining he inherited a ""mess"" and slamming stories that his campaign was constantly in contact with Russia as ""fake news.""","Trump held court during a news conference that lasted an hour and fifteen minutes, carving out a stunning moment in modern American political history. He displayed a sense of anger and grievance rarely vented by a President in public -- let alone one who has been in office for just four weeks. ""I have never seen more dishonest media, frankly than the political media,"" Trump said, later slamming leaks to the press from the intelligence community -- some of which led to the resignation of national security adviser Michael Flynn. ""The leaks are real. The leaks are absolutely real. The news is fake because so much of the news is fake,"" Trump said. While it was a marked contrast with the normal dynamics of a presidential news conference, the East Room show was vintage Trump. He touted his own poll numbers, victory over Hillary Clinton and discussed cable TV ratings and panel discussions. ""I'm here again to take my message straight to the people. As you know, our administration inherited many problems across government and across the economy. To be honest, I inherited a mess. It's a mess. At home and abroad, a mess."" That was the kind of message -- directed at large numbers of voters disgruntled with the performance of Washington's political establishment and delivered in a plainspoken, unvarnished manner -- that helped Trump win the presidency against all odds. But his manner is also likely to offend or alarm other voters and may do little to alleviate skepticism towards Trump among political elites in Washington. Trump in fact predicted how his animated and unorthodox news conference will be interpreted in the press. ""Tomorrow, they will say: 'Donald Trump rants and raves at the press,'"" Trump said. ""I'm not ranting and raving. I'm just telling you. You know, you're dishonest people. But -- but I'm not ranting and raving. I love this. I'm having a good time doing it."" The general impression was of a president who is deeply frustrated at the way his new White House is being portrayed and who had decided to take matters into his own hands with a dramatic intervention. The news conference was not scheduled until Thursday morning, but aides said Trump was itching to get out and defend himself. A senior administration official told CNN's Jeremy Diamond that Trump walked into the Oval Office this morning and told his top aides: ""Let's do a press conference today."" The news conference was ""the President's idea, 100%"" the official said. ""I'm here today to update the American people on the incredible progress that has been made in the last four weeks since my inauguration,"" Trump said, after quickly announcing his new pick for labor secretary, Alexander Acosta. ""We have made incredible progress. I don't think there's ever been a president elected who in this short period of time has done what we've done,"" Trump said. And saying he resented picking up newspapers and turning on the television to hear reports that his White House was in chaos, Trump said, ""This administration is running like a fine-tuned machine."" Trump's appearance betrayed apparent deep frustration not just with the media coverage of his White House and a desire to talk directly to the American people but also possibly dismay with aides charged with defending him. ""I don't mind a bad story if it's true,"" Trump said, but complained much of what was reported about his administration was unfair. The President lashed out, for instance, at coverage of his temporary travel ban on nationals of seven mostly Muslim nations that caused a weekend of chaos at the nation's airports before being suspended by a federal court. ""We had a very smooth roll out of the travel ban. But we had a bad court,"" Trump said. ""We had a bad decision, that is the only thing that is wrong with the travel ban."" But the President also said a new executive order would be tailored to the court's ruling to ensure that it could legally go into force. Trump also accused holdovers from the Obama administration of leaking out information about his alleged contacts with Moscow to hammer his administration. Trump was repeatedly pressed on whether his campaign staff had been in contact with Russia, as a widening drama over his alleged connections with Moscow dominates news coverage. ""Nobody that I know of. How many times do I have to answer this question? Russia is a ruse. I have nothing to do with Russia. Haven't made a phone call to Russia in years,"" Trump said. ""I own nothing in Russia, I have no loans in Russia, I don't have any deals in Russia,"" Trump said. ""Russia is fake news.""", -1120,2017/2/16,http://www.cnn.com/2017/02/16/politics/most-memorable-lines-donald-trump/index.html,Most memorable lines from Trump's news conference,"Washington (CNN)President Donald Trump gave lengthy news conference Thursday, a last-minute addition to the schedule, where he announced his new selection to lead the Labor Department, Alexander Acosta. His back-and-forth with reporters touched on everything from his critique of the media, his Electoral College margin of victory, the workings of his administration, former national security adviser Michael Flynn's resignation and more.","Here are the most memorable lines: On how things are going ""This administration is running like a fine-tuned machine."" On leaks, news ""The leaks are real, the news is fake."" On picking his next question ""I want to find a friendly reporter."" On false claims about his Electoral College win's spot in history ""I was given that information, I don't know."" On his own speech ""I'm not ranting and raving, I'm just telling you you're dishonest people."" On Obamacare ""Obamacare, they fill up our alleys with people you wonder how they got there."" On reports about Russia contacts ""You can talk all you want about Russia -- which was all a fabricated fake news ... It is all fake news. It is all fake news."" On Flynn ""I don't think he did anything wrong. If anything, he did something right."" On why Flynn was fired ""The thing is he didn't tell our Vice President properly and then he said he didn't remember... that just wasn't acceptable to me."" On an alternative career ""I'd be a pretty good reporter."" On dealing with Russia ""The greatest thing I could do is shoot that ship that's 30 miles offshore right out of the water. Everyone will say, ""Oh, it's so great, it's so great. That's not great."" On nuclear holocaust and Russia ""Nuclear holocaust would be like no other. They are a very powerful nuclear country and so are we. But if we have a good relationship with Russia, believe me, that is as good thing, not a bad thing."" On the travel ban ""We had a very smooth rollout of the travel ban, we had a bad court."" On violence in Chicago ""There are two Chicagos, as you know. One Chicago that is incredible, luxurious and safe. There is another Chicago that is worse than almost any of the places in the Middle East that we talk about and that you talk about on the news.""", -1121,2017/2/16,http://www.cnn.com/2017/02/16/politics/donald-trump-power-white-house/index.html,"For Trump, chaotic White House becomes the norm",Washington (CNN)President Donald Trump thrived on drama during his campaign -- but signs of disarray in a White House beset by controversy and internal tensions are exposing the downside of his signature style.,"Trump's fast start is now a memory as intractable controversies bear down on his administration from inside and out, consuming political capital just at the moment when he seeks to enact his agenda at home and abroad. ""As far as national security is concerned, this White House is in disarray,"" Republican Sen. John McCain told CNN Wednesday. McCain is not alone in raising alarm bells about how the White House's scattershot focus could eventually make Americans less safe. In stunning comments for a sitting member of the top military brass, Army Gen. Raymond ""Tony"" Thomas warned at a symposium in Maryland Tuesday that ""our government continues to be in unbelievable turmoil. I hope they sort it out soon because we're a nation at war."" The warnings come as the West Wing becomes inexorably more entwined in political dramas and internal staff intrigues that threaten to detract from Trump's crucial first 100 days. Mushrooming drama over the Trump campaign's alleged connections to Russia, which claimed the scalp of his national security adviser Michael Flynn, is working its way relentlessly closer to the President himself. Trump is refusing to answer questions about a CNN report that some of his advisers were in constant communication with Russian operatives at a time when Moscow was trying to tip the US election his way. But his silence means the furor grows by the day, and he can't put the distracting saga to rest. ""This is a major distraction, even if you are not the President or the vice president -- it affects the entire building. It affects the entire national security apparatus,"" said Mark Lowenthal, a former CIA assistant director of Central Intelligence for Analysis and Production. ""It is very hard to focus on your work, to focus on the things you should be working on when you have all of this swirl going on around you,"" Lowenthal told CNN International. Fresh questions were raised in another area Wednesday -- over the administration's congressional and vetting operation -- after the White House lost its first Cabinet nominee, Labor Secretary pick Andrew Puzder, over ethics issues. Each day brings a gusher of controversy and conflicting messages that drown out the successes Trump has managed to rack up so far, including his well-choreographed Supreme Court pick and visits by leaders of Britain, Japan, Canada and Israel that sent reassuring signals abroad. In Trump's three-and-a-half weeks in power, internal tensions have generated a year's worth of unflattering headlines that some critics feel detract from the work of the presidency. Pence questions On Wednesday, for instance, there were new questions about the influence of Vice President Mike Pence, who only learned that Flynn had misled him about his calls to the Russian ambassador from published reports -- a full two weeks after the President was informed by the Justice Department. Pence had put his reputation on the line to defend Flynn on television after he was explicitly told the former national security adviser had not discussed sanctions on Russia with Moscow's ambassador to the US Sergey Kislyak. Pence's sphere of influence questioned in wake of Flynn fallout An administration source said that though the relationship between Trump and Pence has not been soured by the issue, Pence wanted to know which adviser informed Trump but decided ""maybe we shouldn't tell the guy who went on the record as the face of the administration."" But a separate administration official denied Pence is focused on this, saying he has moved past it. ""The vice president is in close coordination with the President and senior staff. The vice president has moved beyond this topic and is focused on the future. Any claims to the contrary are false,"" this administration official said. Another White House official said: ""The White House is denying CNN reporting the Vice President Pence is searching for answers about Flynn."" The incident is sparking concerns among Republicans who see Pence as a crucial steadying influence in an inexperienced West Wing team. ""I don't know who's exercising the most influence, but I know the White House would be very well-served to listen to Mike Pence a lot, and I hope they do,"" Republican Sen. John Thune said. Another major destabilizing influence is Trump himself, who looms over the administration as a mercurial figure supercharging controversies with Twitter rockets and still appears obsessed with his own political fortunes. On Wednesday, for instance, he answered a question from an Israeli journalist about anti-Semitism in the US by boasting about the size of his Electoral College win. Republican Senate Majority Leader Mitch McConnell issued a striking warning to the President in an interview with the Weekly Standard, saying that Trump's approval rating would be 10 to 15 points higher if he stayed on message. The Senate Majority leader told the magazine that the President's tweets and comments make it ""harder to achieve what you want to achieve."" Palace intrigue The competing power centers and crossed lines inside Trump's inexperienced inner circle are also contributing to a growing sense that the new administration has lost control over its own story. The maneuverings of Trump aides like Steve Bannon, Stephen Miller, chief of staff Reince Priebus and Trump's influential son-in-law, Jared Kushner, are sowing instability throughout the White House and doubts outside. ""Who's making the decisions? No one knows who is making the decisions. Obviously it is not the national security adviser. Is it Mr. Bannon? Is it the 31-year-old?"" McCain said, in an apparent reference to Miller. In recent days there have been signs that the White House is trying to quell the almost daily drip, drip, of palace intrigue stories in the press. While Priebus has been the target of attacks in conservative media, senior administration officials and sources close to the White House insist his job is safe. They admit the White House has suffered some missteps and, as chief of staff, some of the blame may lie with Priebus. But they point out the challenges of operating in the current environment: A demanding (and vocal) boss, an administration largely staffed with newbies and colleagues all vying for more power. Another source, who knows Trump well from the campaign, reinforced that message, pointing out that the President demands a relentless diet of excellent performance according to his own standards, making him a grueling boss to work for. If the President is at all irked with this chief of staff, he's not showing it. Earlier this week, Trump declared to reporters, ""Reince is doing a great job."" ""Not a good job -- a great job,"" Trump added. Bannon, Trump's chief strategist, is also making an attempt to put to rest stories that he and Priebus are at loggerheads. He told CNN's Dana Bash Wednesday that he was ""livid"" with a report on Breitbart News, where he used to be the executive chairman, that suggested Priebus might soon lose his job. ""The story is totally untrue. Reince is doing a great job. I couldn't ask any more from a partner,"" Bannon said. Still, a source who has talked to both Priebus and Bannon in the last week said that while Bannon had nothing negative to say about Priebus, the White House chief of staff ""badmouthed"" Bannon to this source over the phone. This source chalked it up to Priebus' relative insecurity, whereas Bannon is comfortable in his post and knows where he stands with Trump. Bannon is perhaps the closest Trump has to an equal in the White House. And it is clear that he is behind some of the disruption -- critics would say disarray -- that is emanating from the administration. The President and Bannon have compatible world views, and a mutual desire to shatter norms and face off with institutions. Trump also respects Bannon, in part because of his successful business background, a source familiar with their relationship said. The source also noted that Bannon might be the one person in the West Wing who could stand up to Trump. ""Sometimes he needs to hear, 'Hey, step away from that,' and I think Bannon is the guy that can do that better than anybody in there,"" one source said. ""He's the most grown up guy in the room."" In that respect, Bannon is a useful counterweight to Kushner, the source said, adding, ""Ultimately your son-in-law is not going to tell you things you don't want to hear all the time."" Still, the husband of Trump's daughter, Ivanka, is also emerging as a force in his own right in the White House. Multiple sources said that Kushner was a key conduit between Trump and foreign leaders, and has been playing an important role in his diplomacy in recent weeks. He is also a fixture at Trump's almost nightly working dinners in the White House residence that draw Cabinet members, military brass and lawmakers. But while Kushner has been a steadying force on foreign policy, sometimes the President's advisers are responsible for the fomenting the kind of disarray that worries McCain and Thomas. Miller, for instance, went on Sunday talk shows and renewed Trump's claims that millions of illegal voters backed Democrat Hillary Clinton in November's election. His claims dumfounded the Beltway media and Trump's opponents and sowed another of the controversies that some Washington observers worry drag the White House's focus away from crucial issues. But the person who mattered most thought his performance was outstanding. ""Congratulations Stephen Miller - on representing me this morning on the various Sunday morning shows. Great job!"" Trump tweeted. So while Trump's critics are pained at the impact his disruptive governing strategy is having outside his White House, the President is sending a clear signal that he has no interest in changing his style.", -1122,2017/2/16,http://www.cnn.com/2017/02/16/politics/donald-trump-white-house-announcement/index.html,Trump announces Alexander Acosta as labor secretary pick,"(CNN)President Donald Trump announced Thursday his plan to nominate Alexander Acosta to be labor secretary, telling assembled reporters on Thursday that Acosta is going to be ""a tremendous secretary of labor.""","The nomination comes one day after Andy Puzder, Trump's first pick to lead the department, withdrew his nomination. Trump said that Acosta ""has been through Senate confirmation three times, confirmed."" The comment was an apparent reference to his administration's struggle to get all of their nominees through the Senate. ""I have wished him the best, we just spoke and he is going to be a tremendous secretary of labor,"" Trump said. Acosta was not at the event with the President. Acosta, who is currently the dean of the Florida International University School of Law, is a former member of the National Labor Relations Board, a position he was nominated to by former President George W. Bush. If confirmed, Acosta -- the son of Cuban immigrants - would be the first Hispanic member of Trump's Cabinet. NBC News first reported Acosta as the pick. He clerked for Supreme Court Justice Samuel Alito when he sat on the Court of Appeals for the Third Circuit and practiced law at Kirkland & Ellis in Washington. Puzder, Trump's first pick to leader the Labor Department, withdrew his nomination Wednesday after Republican senators began telling the White House that they would not back the nominee. Puzder, the CEO of the company that owns the Hardee's and Carl's Jr. fast food chains, faced fierce opposition mostly from Democrats in part related to his position on labor issues as well as the fact that he employed an undocumented immigrant housekeeper. But Republicans, too, had grown weary of the range of liabilities facing Puzder, and senior GOP officials informed the White House Tuesday night and Wednesday that Puzder lacked a viable path for confirmation. The turbulent nomination process wore on Puzder, too, with aides close to the nominee telling CNN that he was taken aback by the harshness of politics.", -1123,2017/2/16,http://www.cnn.com/2017/02/16/politics/donald-trump-travel-ban-executive-order/index.html,Trump promises new immigration order as DOJ tells court to hold off,Washington (CNN)President Donald Trump vowed Thursday to roll out a new immigration executive order next week that will be tailored to the federal court decision that paused his travel ban.,"""The new order is going to be very much tailored to what I consider to be a very bad decision,"" said Trump during a news conference, referring to a decision by the Ninth Circuit Court of Appeals that blocked his travel ban earlier this month. Meanwhile, the Justice Department filed a 47-page brief Thursday telling the Ninth Circuit Court of Appeals that it does not need a larger panel of judges to rehear its failed emergency challenge to a lower court's temporary suspension of Trump's executive order on immigration at this time because a new order is on the way. The Justice Department wrote at length about the ""seriously flawed"" Ninth Circuit ruling from last week, but neverthless said: ""(r)ather than continuing this litigation, the President intends in the near future to rescind the order and replace it with a new, substantially revised executive order to eliminate what the panel erroneously thought were constitutional concerns."" ""In so doing, the President will clear the way for immediately protecting the country rather than pursuing further, potentially time-consuming litigation,"" it added. Questions have swirled over what the Trump administration would do this week after a three-judge panel on the Ninth Circuit refused to lift a federal judge's temporary restraining order on Trump's executive order barring foreign nationals from Iran, Sudan, Libya, Somalia, Syria, Iraq and Yemen from entering the country for 90 days, all refugees for 120 days and all refugees from Syria indefinitely. Last Friday, an unidentified judge on the Ninth Circuit requested that the full court vote on whether to rehear the decision reached by the three-judge panel. Such requests are not uncommon, but the call for a vote came at time when the Justice Department's position on pursuing the appeal was uncertain. The states that brought the lawsuit -- Washington and Minnesota -- said in their court filing on Thursday that there is no basis for rehearing the case, as the opinion from the three-judge panel is ""firmly grounded in precedent."" And while the nation waits on a new or modified executive order on immigration from the Trump administration, at least one federal court is barreling ahead on litigation over the original one. US District Court Judge James Robart in Seattle -- the judge who originally halted the key provisions of the travel ban -- denied a request from the Trump administration earlier this week to postpone any further proceedings in his court, which means the parties will now proceed to the discovery phase of the case.", -1124,2017/2/16,http://www.huffingtonpost.com/laura-berman-fortgang/what-if-i-dont-have-a-dre_b_14682060.html,What If I Don't Have A Dream?,,"""What about the people who have never had a dream about what they wanted to be when they grew up?"" I occasionally stop by the You Tube page where my Tedx Talk lives to reply to any comments. The majority are very positive. There are a couple of complete trolls who probably question and heckle everything, and then... there is this burning question repeated time after time. In the talk I mentioned people who don't dream, or can't remember having a dream from childhood about what they wanted to grow up to be. I mention that even those that can't even daydream now may have come from a childhood that forced them to grow up faster than appropriate. Kids who were scared for any reason (maybe losing a parent and fearing the other would die or go away, not being allowed to be themselves for whatever reason or fearing for their safety) will tend to be adults who don't have a dream. While it is possible to dream if you grew up with these circumstances, when someone can't, I have found they typically have lived these scenarios. I apparently left a lot of people hanging but twelve minutes only allowed one through line of solutions. ""What do I do if that is me?"", you might ask. If this is you, here's what you do: Get thee to a therapist--- Really. I'm not kidding. If you shut off your dreaming mechanism because it wasn't safe to check out temporarily, you have to go back and revisit the trauma. What caused the erosion of your sense of safety? Let's say you've already been to therapy or you just won't consider going. OK---try this-- Re-sensitize your self--- The connection that seems to be missing for people who don't or can't dream or imagine a desirable future for themselves is the distance between the body and the mind. You may be desensitized to your own feelings. Not the extremes like anger or elation, but the subtle ones like what you like, what you want, or even what brings you joy. If you feel like you don't really even know what you want on a daily basis but decide things in order to avoid the pain of NOT making a decision, you are desensitized to your own body. Your body has a lot of information for you. How do you re-sensitize? Start or revisit a hobby that involves working with your hands or that requires full-body engagement. For example, knitting, painting, pottery wheelwork or other building/making activity is tactile and preferable. If there is nothing like that you used to do or would like to do, think of something that engages your full body like dancing, running or cycling. After a couple of weeks of doing one of these activities four or more times per week, notice if you are feeling more sensitive and more aware of your feelings and subtle preferences. Practice WANT days---Whether you can devote one-hour, three hours or a whole day, take time out to have no agenda whatsoever. Don't even carry the responsibility of walking the dog or feeding a child. Just give yourself blank space. In that space, notice. Notice your gut. Notice what you want. In fact, keep asking yourself ""What do I want?"" What is the answer? What do you want? Do you want to go for a walk? Read? Paint? Sleep? Eat a particular thing? Just practice hearing and responding to what you want. This isn't about indulging yourself in stuff that's not good for you. It's not about masking your emotions with a substitute for feeling like food, alcohol, drugs or other forms of numbing yourself. Feel what you WANT! Practice WANT days as often as you reasonably can until you can start to FEEL the difference in your body between a true want and a bad habit. When true wants are fulfilled, you will feel a sense of satisfaction. If you're feeding a bad habit, you'll ultimately feel negative emotions like guilt, anxiety or anger. NOW WHAT? -- Some feeling should be restored now which means an ability to see in your mind's eye and/or dreaming should be coming back. See if you can see yourself in a role that brings you joy when you simply think about it, whether it be a specific job, career or life role. Can you imagine yourself in a new future? Can you daydream about other possibilities for yourself? How does it feel as you envision these possibilities? Whether you are going to take action on them or not does not matter. What does matter is that your dreaming mechanism is now turned back on. NOW, go back to the talk and listen to it for the next steps. Welcome back.", -1125,2017/2/16,http://www.huffingtonpost.com/cate-montana/now-the-real-works-starts_b_14289988.html,Now the real works starts,,"Okay. He's president. Now the real work starts. But first there needs to be some fast healing. One of the best ways to defuse the pain of this particular POTUS change is to recognize how much of ourselves we invest in political figures. It wasn't Donald Trump or Hilary or Bernie who won and lost. In a very real sense it was us. The ego is our sense of self. It's our personal story. And all our hopes and dreams and fears, our values, our interests and concerns are contained in that story. If you're deeply environmentally aware ... if women's rights and ethnic minority rights are important to you ... if you value honor and reliability, honesty and integrity ... and you just watched the Inauguration of Donald J. Trump, then your ego--hell, your whole world--has just taken an enormous hit. POTUS is more than our representative in government. We depend upon our president to stand up for us, defend our values and do what we would do, protect what we would protect. And if we are NOT hopeful he will do this-- if we DON'T identify with our President--if he worries or downright terrifies us and we want to get past this and be more grounded and sane as the days, weeks and years of his presidency unfold here's what we've got to do. We've got to recognize our projection, take responsibility for our emotions and dial them down a notch or two (or ten). And one of things that helps us do this is to stop making the election about winning and losing--which is tough because winning is everything to the ego. It's everything to our new POTUS. And if Trump is your guy YOU WON. You're on top of the world with him right now. And if your gal was defeated, you're sitting in the back of the bus with her, taking the heat as others around you gloat. And Trump followers are gloating. I hear the stories. A graphic artist friend of mine is constantly being hammered by a Trump co-worker. ""Every time there's an issue at work - if he picks up the phone ahead of me or gets picked to do a job instead of me, he smirks and says, 'I won I won - and my guy won and you lost!' ""He's making my work life hell,"" she says. ""And I don't know what to do."" Yes, she's aware she must continue to take the high ground and be emotionally mature--just like during the elections. But she also feels powerless. A lot of us do. To shift that powerlessness we've got do more than maintain emotional equilibrium. We've got to take action. Frankly, it's time to stop looking to representatives to speak for us and vote for us. It's time for politicians to stop representing us and time for us to start representing ourselves. It's time to join hands and do more than protest. Yes, protest is great if that's what you feel called to do. But after the marching and banner waving, get pro-active and start working to create a better world than the one our new president apparently stands for. If the threats of environmental roll backs under his administration are freaking you out, go join an environmental organization and volunteer. If threats to women's rights disturb you most, do the same thing. Same thing working for LBGT rights and ethnic minorities. Join hands with people of like mind and values and start building from the ground up. Grass roots movements are the most powerful agents of positive change in the world. Work FOR what you value, not against what you hate or fear. Seek middle ground. Broaden your viewpoints and open your mind to other opinions and possibilities. Frightened egos build walls. Set your fears aside and reach across them. Create coalitions. Offer your best self to the world, share your best ideas. Encourage others to do the same. Right now we have the opportunity to stand for unity and brother/sisterhood and humble greatness--for solid ethics and love in action--not ego pomp and bluster, angry tweets and division. Now is the time, like never before, to hitch up our Big Girl and Big Boy pants and step forward, taking responsibility for leadership and love and progress for all ... for deep values and worthy action ... starting with ourselves and taking the example forward from there.", -1126,2017/2/16,http://www.huffingtonpost.com/2017/02/16/pur-makeup-vanity-palette_n_14800364.html,This Makeup Palette Has A Game-Changing Little Secret,POP!,"It's always exciting when makeup products reveal a hidden feature. And this one's a portable game-changer.- Pur Cosmetics""� genius new palette-makes on-the-go application WAY easier. Pull its mirror upward, and the palette becomes the mini-vanity of your dreams, as Refinery29 editor Kelsey Castanon demonstrated on Twitter. Guys, this@purcosmetics palette is so cool. pic.twitter.com/LyKOuZ1F8B The Pur ""�Vanity""?palette comes with blush, bronzer, highlighter and four eyeshadows, and is available in two different colorways: the smokey-Goal Digger-or the peachy, neutral-Dream Chaser. One top of that, both have the ""Aversized""?mirror that turns the simple packaging into a ""portable vanity case,""?according to Pur.- The palettes are available for $36 each on Pur's website.-", -1127,2017/2/16,http://www.huffingtonpost.com/2017/02/15/hilarious-video-shows-two-babies-chatting-via-facetime_n_14800302.html,Hilarious Video Shows Two Babies 'Chatting' Via FaceTime,Classic baby talk.,"Babies seem to speak their own language. And this viral YouTube video suggests there's some truth to that. California dad Richard Igou posted a video of his daughter having a ""Conversation""?with a fellow baby via FaceTime. Needless to say, it's pretty hilarious.- Watch the full video above for some real ""baby talk.""?H/T Tastefully Offensive", -1128,2017/2/16,http://www.huffingtonpost.com/2017/02/16/consumer-financial-protection-bureau-trump-dc-circuit_n_14800300.html,Consumer Watchdog In Trump's Crosshairs Gets A Chance To Keep Fighting,An appeals court will reconsider a major defeat for the Consumer Financial Protection Bureau.,"A federal appeals court agreed Thursday to-reconsider a decision-that found the structure of the Consumer Financial Protection Bureau-to be unconstitutional. It's a reprieve of sorts for the watchdog agency created in the aftermath of the Wall Street financial crisis and-now in the crosshairs of the Trump administration. The full U.S. Court of Appeals for the D.C. Circuit will look at a divided panel ruling from October that said the independent agency's single-director format violates the Constitution's separation of powers. Thanks to that structure, the CFBP director,-Richard Cordray, had been largely insulated from White House control. But the panel ruling placed the agency under the president's direct oversight.-The CFPB had pleaded with the court-to give that decision a second look shortly after President Donald Trump was elected. Thursday's order by the D.C. Circuit vacated the earlier ruling. Citing the pending litigation, a CFPB spokesman declined to comment.- Consumer and civil rights advocates welcomed the development.-Republicans, on the other hand, have not hidden their displeasure with the CFPB, which in recent years has levied critical sanctions on the likes of Wells Fargo and gone after payday lending and other financial practices that tend to harm more vulnerable consumers. Sen. Ben Sasse (R-Neb.) called on Trump to fire Cordray-in a USA Today editorial published earlier this month. The CFPB chief has ""more power than just about anyone in Washington,""?he argued. This week Sen. Ted Cruz (R-Texas) introduced legislation to repeal the section of the 2010 Dodd-Frank financial reform law that created the consumer watchdog.- The D.C. Circuit's move effectively forecloses the option of Trump firing Cordray, which means the fate of the CFPB will remain tied up in the judicial system. The appeals court set a hearing for May, and a future Supreme Court showdown remains a possibility. Cordray has called the rhetoric against the CFPB ""Averheated""?and has defended the agency's mission to protect consumers, which he sees as a type of ""law enforcement job.""?""that's important because regular people don""t have the chance when they'r exploited out of ""?it might be $10 or $20 or $50 ""?they can""t go to court over that,""?Cordray told MSNBC-earlier this month. ""they need someone to stand on their side and see that they'r treated fairly, and that's the job that we'r doing.""?At one point, Trump was eyeing former Rep.-Randy Neugebauer (R-Texas), a longtime critic of the CFPB, to run the agency.-", -1129,2017/2/16,http://www.huffingtonpost.com/2017/02/15/homojis-lgbtq-app_n_14800296.html,This 'Homoji' Keyboard Brings Queer Shorthand To Your Text Messages,It's not just about the eggplants anymore.,"Members of the gay community now have a new and amusing way to express themselves in text messages, thanks to a colorful emoji keyboard.- Produced by MajestyK Apps, the ""homojis""?made their debut on Valentine's Day, allowing users to share thoughts such as ""slay""?and ""yaas""?visually and succinctly. Other images include a rainbow-clad ""gym bunny""?and a quirky ""Atter,""?descriptive terms used by gay men to identify themselves within the community at large. - The keyboard, which is available on the Apple iTunes store, premiered Tuesday with more than 100 unique emojis, although new ones will be added down the line. The concept,-MajestyK's Vice President Mark Garcia said in a press release, was ""go create a social experience that truly speaks to how gay men and women communicate with one another.""It's a perfectly digital way to encourage acceptance and keep up with gay culture, one text message at a time. Check out some of the ""homojis""?below. - For the latest news that matters to the LGBTQ community,-don""t miss the Queer Voices newsletter.", -1130,2017/2/16,http://www.huffingtonpost.com/2017/02/16/the-internet-wants-to-know-where-trump-buys-his-drugs_n_14800292.html,The Internet Wants To Know Where Trump Buys His Drugs,"""Can anybody point me in the direction of where drugs are cheaper than candy bars?""","During a wild 77-minute press conference in which President Donald Trump lambasted the media, he also discussed illegal drugs in the United States. ""We'r becoming a drug-infested nation,""?he said. ""drugs are becoming cheaper than candy bars.""?Candy bars are pretty dang cheap, so naturally Twitter was the first to ask: Where the hell are these inexpensive drugs? hello yes where do i get cheaper than candy bar drugs please https://t.co/Skj8i5MqPA Is no one going to ask him where he's getting drugs cheaper than candy bars. ok but seriously where are drugs cheaper than candy bars, @realDonaldTrump? asking for a friend ""Drugs are becoming cheaper than candy bars."" // WHERE? I'm fine with Trump claiming drugs are cheaper than candy bars so long as he forms a task force to tell me where they are. unrelated: can anybody point me in the direction of where drugs are cheaper than candy bars? Please tell me, @realDonaldTrump whose world you live in where drugs are cheaper than candy bars. Have you yourself ever bought a candy bar? where are the drugs that are cheaper than candy bars? lmk https://t.co/Lzr7rJSH5c ""Drugs are cheaper than candy."" Sure, rub it in our faces that you can afford to buy a $51 candy bar. Trump says drugs are now cheaper than candy bars. Who is your dealer and can we have his number? I'm watching this presser with my mom, about 15 min behind. DJT: ""Drugs are becoming cheaper than candy bars."" Mom: ""Where?!"" What a time to be alive.", -1131,2017/2/16,http://www.huffingtonpost.com/2017/02/16/cops-fired-sex-on-duty_n_14800278.html,Florida Cops Could Be Fired For Having Sex On The Job,They allegedly sent each other photos showing their body parts while in uniform.,"A Florida police chief wants to fire two veteran police officers after an internal affairs investigation determined they had sex on the job and sexted each other in uniform. Jupiter Police Chief-Frank Kitzerow recommended on Tuesday that sergeants Amy Walling and Jason Vansteenburgh be terminated-for conduct unbecoming an officer, according to the Palm Beach Post. Walling has been employed by the department for 20 years while Vansteenburgh has been there for 17.5 years. An internal affairs report alleges that the two officers, who were previously in a relationship together, engaged in all sorts of questionable behavior. In July 2015, Vansteenburgh received oral sex from Walling while on duty, and lied about it to investigators, according to local station WPEC TV. According to an-internal affairs report obtained by the station, Vansteenburgh filmed the sex on Walling's phone and she later showed the 23-second clip to investigators. That same year,-Vansteenburgh took a photograph of himself wearing his SWAT uniform while exposing his penis. He sent the photo to Walling. An internal affairs report obtained by the station said Walling took a photo of herself exposing her breasts while wearing her uniform shirt and sent it to Vansteenburgh. Vansteenburgh and Walling started dating in 2012, which is allowed by the Police Department, Kitzerow told the Palm Beach Post. ""We have husbands and wives working in the department. We are not concerned about their relationship. We are concerned about their performance as police officers,""?Kitzerow said. The department became seriously concerned after an April 2016 incident at a local restaurant where Walling-bit a fellow officer and another person before striking another officer. The disagreement stemmed from a Facebook message Walling sent Vansteenburgh's fiancee detailing days and times they had sex after he became engaged. For that, she was-reduced in rank from sergeant to officer and given a 30-day suspension without pay. The Jupiter Police Department has issued a statement saying that Kitzerow recommended terminating both sergeants based on the findings of a thorough Internal Affairs investigation. The release added:-""the actions of these individuals do not reflect the culture or organizational values of the Jupiter Police Department.""?Walling,-Vansteenburgh and Kitzerow have all not replied to a request for comment from HuffPost. The recommendation to terminate-both officers has been sent to the Jupiter Town Manager, who will make his decision in March, according to WPBF TV.", -1132,2017/2/16,http://www.huffingtonpost.com/2017/02/10/pregnant-mom-does-gym-photo-shoot-to-show-women-are-strong-and-capable_n_14800276.html,Pregnant Mom Does Gym Photo Shoot To Show Women Are 'Strong And Capable',Lauren Ferris wanted to empower women with her maternity shoot.,"Lauren Ferris wants the world to know just how strong women can be. The Connecticut mom posed for a fitness photo shoot while pregnant with her second son, and the result was totally badass.- Photographer JoAnn Marrero took the pictures of Ferris at the gym. She first met the mom in 2014 and photographed the birth of her first son, Connor, who is now 2 years old. Her next baby boy is due Feb. 25. Ferris told The Huffington Post she's been-""CrossFitting""?for five years and did it throughout her first pregnancy. Fitness has become a big part of her family life as well. She and her husband, Garrett, sometimes bring Connor to the gym with them.- ""He loves it and has his own little plastic toy weights that he brings to the gym but he doesn""t know they aren""t real,""?Marrero said. The photographer added that Ferris attributes her short labor, easy pushing and quick postpartum recovery with Connor in part to her fitness. She hopes to have a similar experience with her second son's birth and has remained committed to exercising during her pregnancy.-""Ty midwife encourages me to stay fit!""?Ferris told HuffPost. ""there hasn""t been a whole lot that I""ve had to modify. A few things -""?like sit ups for example ""?I can""t do, and I don""t do any very heavy lifts. But for the most part I can do the workouts that are prescribed.""Marrero shared the photos on the Facebook page for her business, From Labor to Love.-From there, they reached outlets like-People-and even CrossFit's Facebook page. ""the response has been overwhelmingly supportive!""?said the photographer. ""Lots of ""�You Go Momma.""?While Ferris has received a small amount of negative feedback, she said she uses it as an opportunity to educate people on health and fitness during pregnancy. ""�Overall both Lauren and I want to inspire other mothers and mothers-to-be to say fit during pregnancy, to stay safe with your routine making modifications to fit the growing needs of your body,""?Marrero explained. Added Ferris, ""I hope it will show that even though a woman is pregnant, she is still strong and very capable!""?,34""", -1133,2017/2/16,http://www.huffingtonpost.com/2017/02/16/diversity-fashion-week_n_14800274.html,Bravo To These 10 Designers For Bringing Real Diversity To Fashion Week,Things are looking up.,"Forty-three models signed a petition demanding more diversity-before this season's New York Fashion Week, and a full-page ad in New York Times did the same. It looks like it worked. We wouldn""t call what happened on the runway this week revolutionary,-but we would call it a larger step in the right direction. Fashion Week committed itself to real change this season in several ways. Historically exclusive designers like Michael Kors mixed things up, designer Anniesa Hasibuan held a casting call for immigrant models, body positivity hero Christian Siriano hit another home run for body diversity, and much more occurred as well. Now that the walks have been walked and the news has been made, it's up to the designers to put their money where their publicity-making mouths are by actually designing for the women who walked in their shows. For now, we'r happy to pay tribute to those who got it right this week.- Prabal Gurung- Gurung's inclusive show featured plus-size models like Candice Huffine and Marquita Pring right alongside Bella Hadid. His show also made waves for its statement-making finale, in which the models wore politically charged T-shirts with slogans like ""ourMinds. Our Bodies. Our Power.""?and ""This is what a feminist looks like.""?Tome This season, Tome designers (who proudly wore women's march and Planned Parenthood T-shirts backstage) cast models of varying sizes, races and ages in its show.- J.Crew - J.Crew,-which used ""real people""?as models last season, cast plus-size model Sabina Karlsson in its presentation this season. Christian Siriano Following the lead he made last season, Siriano continued with his commitment to diversity, casting plus-size models like Precious Lee, Marquita Pring and Iskra Lawrence in his show, which also included a fitting ""people are People""?T-shirt.- Yeezy Season 5 Kanye West made waves ahead of New York Fashion Week for casting hijab-wearing model Halima Aden in his show.- Michael Kors- For the first time since launching his line in 1981, Kors cast a-plus-size model, Ashley Graham, to walk his runway.- Tracy Reese- Tracy Reese, long committed to both racial and size diversity, was unwavering when it came to her presentation this season. As she wrote on Instagram, ""Aur beautiful models represent #diversity in race, religion, and personal #style celebrating the many facets of being a #strongwoman.""?Gypsy Sport Gypsy Sport is touted by some as being ""the most diverse runway""?at Fashion Week because it's ""effortlessly filled with people of color, transgender, and who represent a diverse range of backgrounds and body types,""?according to Allure.- Chromat- Since its inception, Chromat has been committed to celebrating every single person through its diverse casting. As its lead designer Becca McCharen told The Huffington Post in 2016, ""All our runway models represent those who inspire us, whether it's trans women, women of color, curve models, that's my world and that's the world we live in and that's who I want to celebrate.""enise Bidot, Iskra Lawrence and Sabina Karlsson helped spread that message at its show this season. Anniesa Hasibuan For the second season in a row, Anniesa Hasibuan has sent all of her models down the runway wearing hijabs. This year, she did one better, by putting out a casting call for immigrant models to walk in her show.--", -1134,2017/2/16,http://www.huffingtonpost.com/margaret-gardiner/why-the-womens-march-on-w_b_14284984.html,Why the Women's March on Washington Broke Google,,"Why the Women's March on Washington Broke Google By Margaret Gardiner The Women's March on Washington broke google. Participants surpassed the limit of google form responses which may be unprecedented. Google had to set up a second form that is used as a head count, and the site advises people not to share links or fill out forms that are not navigated from womenmarch.com as there have been reports of on-line forms impersonating the one on the site. At this point more than 200 000 women are expected to turn up. Passengers en route to the Women's March On Washington the day of the Inauguration - Photo by Margaret Gardiner Along with the many statements of excitement at participating in a march to highlight unity and diversity, there is also a slight nervousness. On the Official Facebook page some are expressing wariness at potential clashes with Trump supporters, but the overall consensus seems to be that this will be a peaceful demonstration. The march's focus is about including the excluded, and those voices are coming together in a powerful statement. Inflammatory remarks about minorities by the incoming President have created an anti-PC climate. Given that many feel that dissension doesn't lead to discussion, but frames one an enemy resulting in mocking, threats and labels used to control and limit, the stance seems to be that its important to conduct oneself with decorum. Peaceful protest as a counter to some of the outrageous commentary that has become acceptable. ""Trump supporters get the inauguration. The rest get the day after,"" said one woman, ""There's no reason to clash."" Though Preyel Patel, who is meeting her boyfriend's two mums and a friend in DC, notes, ""When we march there will be a new President. Protest takes courage. It could get scary."" Susanne and Tim Keaveny are flying in from Oregon to protest Trump's inauguration and then staying on to participate in the Women's March on Washington. Tim who will be carrying a sign with the words: Hate & Fear encircled with a prohibitive sign, says people ask him why he is going to a woman's march. ""Because I have a wife and a daughter, and because Trump does not reflect what we stand for. He doesn't conduct himself in a presidential manner. He doesn't have dignity. His behavior doesn't represent the office of the United States of America."" Adds his wife, ""The march is the icing on the cake to his election. A beautiful result of everyone's feelings and a demonstration that he cannot get away with the things he's advocating."" She shares a story of a friend in the State of Washington, a Sikh, who because of his religion wears a turban. He got a letter that stated: 'Now America is great again you have to stop wearing that thing on your head.' They don't even know the difference. He's a father and a husband and now he is living in a community aware that an unknown neighbor is threatening him. I'm hoping for positive change."" In Boston a taxi driver from Bangladesh who has been in the country for 15 years and is now an American working two jobs shared his experience. ""I was at a traffic light and this mini van stopped next to me with a father and two boys. They started laughing and pointing at me. I thought I had something on my face, so looked in my rearview mirror. I looked normal, so I gestured - what? The youngest kid lifts a Trump hat and points to it, and then points to me making a gesture across his throat. And then everyone in the car laughed. In all my fifteen years nothing like this has every happened to me."" Tessa Misiaszek is driving in with a friend who is ten weeks pregnant. ""We've made a pact to look after each other. We're hoping it's peaceful, but we have an exit plan."" She says in a soft strong voice. ""I'm going to occupy space. To stand with other women in recognition that while we have advanced our rights in significant ways, the fight isn't over. Not only do we need to stand up for women's rights, but we also have to stand to protect the civil rights of our LGBTQ community, for disabled communities, for our environment, for healthcare, and for education. When women unite, we're an unstoppable force and I look forward to a day of hope and inspiration."" And that is why women are signing the form on WomenMarchonWashington.com in such numbers. Explains Amanda Mahlman, ""Donald Trump's win mobilized a generation that has not been active politically before. It's a grass roots movement of volunteers. Young women who have never been involved in activism are marching locally or going to Washington. His election is empowering people as never before."" Judith J is attending with her 16 year old daughter at the daughter's behest. ""When my daughter asked me if she could attend the march I decided to go with her."" She'd never participated in a protest movement before, so what made this one different? ""I want the new administration to know that women's rights, and everyone's rights, matter."" The Women's March on Washington will start at 10am On January 21, at the intersection of Independence Avenue and 3rd Street near the US capital. It is not a ticketed event; no tickets are required. See-through backpacks are the only kind that will be allowed and the size of purses etc are restricted. Go to: womensmarch.com for further updates. Margaret Gardiner will be live tweeting @MargaretGGG", -1135,2017/2/16,http://www.huffingtonpost.com/lauren-carson/young-black-womans-though_b_14289976.html,Young Black Woman's Thoughts: President Trumps Inauguration,,"I had lunch yesterday (Thursday before the inauguration) with a colleague and mentor. In the midst of catching up and asking how her teenage daughters are doing, a story was recounted that on Christmas my colleague's mother (and daughters' grandmother) asked the oldest daughter (15 years old) how she was feeling about the future. And her response even at the tender age of 15 directly and indirectly sum up the thoughts of many right now, ""I am trying to just make it through the next 4 years"". As I watched the live footage of President Obama leaving the Oval Office for the last time on CNN with Uncle Joe (yes we millennials or at least among my network think of Vice President Biden as our amazing quirky uncle) and Dr. Biden in tow, I honestly wanted to cry with a mix of feelings. I am sure this sentiment most likely reflects the thoughts and feelings of many today. But the real question is at the crux of my colleague's 15 year old daughter's statement, ""how do WE make it through the next 4 years?"" This in all honesty is a difficult question to answer because I think no one not even newly elected President Trump thought would ever have to be truly asked. And possibly my mindset and way of navigating my emotional feelings and thoughts, and even but more practically my actions future and present now that Donald Trump has taken the oath of office will change, but these are my present thoughts on President Donald Trump taking office today. Let me first congratulate President Trump, yes I said congratulate and anyone can add my name to the #UncleTom lists out there if they want, but the man won. Despite the inflammatory nature of many of his comments that I think offended just about every sub-population of the American people. Despite rumored and some confirmed reports of Russian interference, and despite the fact that honestly and truly in his heart I do not think Donald Trump wanted to win the highest oath of office in the word, he won. So whatever he said, whatever he did, it resonated with enough of the American people that he is now being sworn in as our 45th President. After I congratulate President Trump because honestly that is all I have for the man I affectionately turn to my fellow millennials because as my mom put it, ""what he does isn't going to affect my generation (Baby Boomers) too much, but yours...that's what I am worried about."" And so am I! And so should you be, afraid. But also challenged; after I wallowed (and I am being literal) for several days after Donald Trump won the election my mindset changed to, ""BET!"". I felt challenged, I felt this was one of those instances where maybe many of us, me included shied away from having strong political views. From voicing these views, from galvanizing others, from standing up for others that may not be able to, and most importantly from sharing my unique talents to further not just my family, friends, self and at times my wallet, but my community. And in this ""BET!"" moment I realized that despite the fact that our beloved, and gosh are they beloved First Family and fearless 44th President takes leave that we missed something when he won. Something that as lastly as every ounce of his days in office and legacy was the introduction to the power of grassroots movements and additionally the power in minority communities coming together. Grassroots organizations have been long touted with elevating President Obama to the White House, however that term, grassroots, go to the South Side that Michelle is fondly from or Cascade where many Atlanta rappers hail, they have no idea what grassroots means! So thus the foundation of what fondly helped us scream HOPE and CHANGE in 2008 and 2012 were never fully understood outside of the man and face we attached to the movement. And I may not have the official definition but the way I think of grassroots is an authentic home grown movement that draws people in and informs them. Well shoot we can do that! This is exactly the approach Republican party replicated after President Obama took office in 2008; a grassroots movement to emphasize the disenfranchisement of the working White population. And this movement whether we were aware it was taking place or not, is what ultimately got Donald Trump elected. And again kudos...because that was not Trump's plan or was it? To speak to a population that was rarely televised as experiencing plight. And just in that act of their struggle real or imaginary being left from the public eye created more disgust for government, minorities, women, and anyone else. Just as a child in preschool is mad his classmates perceivably received more attention and graham crackers from the teacher. But is that child's plight and feelings not real?! Well yes! While Trumps presidency begins wrought with controversy, I believe I speak for many that believe that there needs to be a better focus on everyone's struggles. But just as in school when it's not ok to bite back, which is what I consider this to be as a last ditch effort by rich staunch hard Republicans to gain power by any means necessary, even backing newly elected President Trump. But in one of my favorite lines uttered by First Lady Michelle Obama to date, ""when they go low we go high"". So ""bet"", Donald Trump is our president for 4 years. Baring his Republican colleagues decide to put a stop to his inflammatory Cabinet picks, shady business deals and all around foul mouth, none of which has yet to be considered illegal or even piss many people in power off, we have to not only deal but we to go high! We have tweeze out the positive and powerful aspects of the still growing legacy of President Obama and his family. We have to confront our demons and fears so that we can lend our talents to not just our direct networks but to others far and in between, and lastly we have to embrace community and find ways to be prepared when the our voices are to be heard on local levels, state levels and national levels to ensure we do not cower and hide because a bigot, racist and narcissist and all his friends have taken over the highest office of our nation. We have to prepare to take it back and to not just take it back and do better, but do our best. We will survive these next 4 years, just like those fateful days freshly out of a relationship, we cannot see that far into the future to know it...but we will survive, we will make it. What I challenge you and me to do is not just make it, not just survive but stand up, go high, get in a ""BET!"" mindset, memorialize President Obama's legacy by doing more, giving more and being more.", -1136,2017/2/16,http://www.huffingtonpost.com/2017/02/16/laughing-quadruplets-now-in-high-school_n_14800268.html,The 'Laughing Quadruplets' Who Delighted Everyone As Babies Are Now In High School,"""There are big things out there for them,"" says their mother.","Everyone loves baby giggles, and the Mathias quadruplets are proof of that. In the early 2000s, a video of the four infants lying on their mother and giggling adorably in unison became a prize-winning clip on ""America's Funniest Home Videos.""?A few years later, the show declared the ""laughing quadruplets""?video to be the ""Funniest Video of All-Time,""?earning the Mathias family $250,000 and a place in home-video history. The girls ""?Grace, Emily, Mary Claire and Anna ""?were 6 years when their video took that top honor, and the Mathias family made multiple television and talk-show appearances in the years to follow, including a stop by ""the Oprah Winfrey Show""n 2008. Today, the quads are 16 years old, and the family tells ""�Oprah: Where Are They Now?""?that the video has incredible staying power. ""people are still delighted with that video,""?says mom Allison. ""I think it's just one of those videos you can""t not laugh at,""?adds dad Steve. ""there's something about the syncopation of them stopping and starting laughing. It's just the contagious type laugh.""?The girls may be identical quadruplets, but as they're grown, they say that their interests have taken them in different directions. ""We'r similar and different to each other just by the things we'r interested in,""?Grace says. ""Like, Mary Claire and Emily ...-they enjoy doing digital art on their computer. And Anna enjoys orchestra a lot. And I enjoy photography.""?When the quads were younger, their mom often dressed them alike. But as soon as Allison allowed her daughters to dress themselves, each girl's unique style emerged. ""We all have similar senses of style, but there are also [differences],""?Anna says. ""Emily likes her hair short and the rest of us like it longer.""?""people make a lot of assumptions, like, ""I just want to be a different person,""?Emily says. ""I wanted to cut my hair! I wasn""t even thinking about [my sisters] in the process of wanting a haircut.""At 16, the Mathias quads have much to look forward to, and their mother says she can""t wait to see what the future holds. ""Ty hopes for the girls in the future are that they become the young ladies that God wants them to be, that they follow His plans for their future,""?Allison says. ""there are big things out there for them. I'm just excited to see what it is.""For more stories like this, sign up for the This Week on OWN newsletter.", -1137,2017/2/16,http://www.huffingtonpost.com/2017/02/08/vertical-forest-skyscrapers-towers-smog_n_14800262.html,These Cool New 'Vertical Forest' Skyscrapers Are Designed To Help Fight Smog,The world needs more of these.,"Buildings don""t have to just be buildings anymore. Sometimes, they can double as forests.- That's the radical idea behind architect Stefano Boeri's upcoming vertical forest skyscrapers in China. The Nanjing Green Towers will be the first of their kind in Asia, and are designed to help reduce smog by emitting oxygen and filtering carbon dioxide.-It's a concept Boeri initially built in Milan in 2014.- The towers will be outfitted with over 1,100 trees and 2,500 plants and shrubs, according to a press release. Boeri's ambitious design hopes to produce 60 kg of oxygen per day while also absorbing 25 tons of carbon dioxide annually. The future skyscrapers will be located in the Nanjing Pukou District, an area in China that has struggled with heavy smog.- The new towers should be completed by 2018. The tallest is nearly 700 feet high and will house offices, an architecture school and a private rooftop club. The shorter tower will contain a Hyatt hotel and boast a rooftop swimming pool.- As hundreds of millions of people in China are affected by serious air pollution, here's hoping this helps. -", -1138,2017/2/16,http://www.huffingtonpost.com/2017/02/16/chance-the-rapper-chicago-third-world-country_n_14800258.html,Chance The Rapper: I'm 'Tired' Of Chicago Being Seen As A 'Third World Country',"""Chicago's problem has always felt like a minority problem,""?he said.","Chance the Rapper has a few thoughts regarding President Donald Trump's plans to fix the ""Lorrendous situation""?in Chicago. During a joint interview with Chicago Bulls star Jimmy Butler for ESPN's ""the Undefeated,""?the Grammy Award winner responded to Trump's tweet-that he-""send in the Feds""?over the city's-soaring homicide rate-""?which he tweeted last month ""?by expressing his frustrations with the city's frequent negative perception. ""I hope he's coming in to do some type of federal overturn of our state and city budgets in terms of schooling and housing,""?he said. ""I'm tired of n***as talkin""?about Chicago like it's a Third World country. Like, that it's not a place of booming business with a very successful downtown and all types of new development.""?If Chicago doesn't fix the horrible ""carnage"" going on, 228 shootings in 2017 with 42 killings (up 24% from 2016), I will send in the Feds! In a video portion of the interview Chance, who has previously addressed Chicago's gun violence-issues,-says he hopes the president's plans will benefit the city's teachers union. ""Chicago's problem has always felt like a minority problem,""?he said in a video clip from the interview. ""He sounds like he was going to go to war with Chicago. I can only expect that he means he's gonna, from a federal level, help out with the teachers""?strike and the union issues. I don""t like to think that he said what he meant or meant what he said.""Read more of Chance the Rapper's interview here.", -1139,2017/2/16,http://www.bbc.co.uk/news/world-us-canada-38998362,Trump launches stinging attack on media,US President Donald Trump has launched a ferocious attack on the media while defending his record during his first weeks in office.,"US President Donald Trump has launched a ferocious attack on the media while defending his record during his first weeks in office. Mr Trump appeared in a 76-minute press conference where he told reporters their level of dishonesty was out of control. He cited coverage of his campaign's alleged contacts with Moscow. Critics say his stymied travel ban and the firing of a top adviser point to a White House in chaos. But the president used his speech to tout his fulfilment of campaign promises, and said his administration was a ""fine-tuned machine"". Mr Trump opened his remarks by mounting a blistering attack on the media for underplaying his achievements after he ""inherited a mess at home and abroad"". He praised his administration for its ""significant progress"", pointing to a rising stock market and a crackdown on illegal immigrants as examples of his success. His news conference at the White House comes after Mr Trump's national security adviser was forced to resign and his labour secretary withdrew his nomination. Michael Flynn, Mr Trump's national security adviser, resigned on Monday after he misled the Vice-President Mike Pence about whether he discussed US sanctions with Russia's ambassador before his own appointment. If the allegations are true, he would violate a law barring private citizens from conducting US diplomacy. When pressed about claims made in the US media that his campaign staff had been in contact with Russian officials during the campaign, Mr Trump replied ""nobody that I know of"" had done so. ""Russia is fake news. This is fake news put out by the media,"" he added. There are cross-party calls for a congressional investigation already looking into Russia's alleged interference in the election to be expanded to include the Michael Flynn affair. At one point during his marathon press conference, ostensibly made to announce his new labour secretary nominee, Donald Trump told reporters how he won the presidency. ""With news conferences and speeches,"" the president said. It looks like Mr Trump plans on trying to breathe new life into that winning formula. He has a big campaign-style rally scheduled for Florida on Saturday, and his news conference on Thursday afternoon was classic campaign-era Trump. He was at turns combative, humorous, defensive and jovial. The president often veered into unfathomable tangents before, at last, settling down into familiar lines and patterns. He boasted about his electoral win, refused to go into details on any of his foreign policy plans, condemned his media critics, shrugged off fact-checkers and promised nothing but winning results. The Trump administration has been on its heels of late, facing growing criticism over Michael Flynn's actions before and after becoming national security advisor, an immigration action that has been frozen by the courts and a labour nominee who saw his Senate support evaporate. Perhaps this is phase one of the Trump presidential reboot - letting Trump be Trump. It's unconventional, but by now that shouldn't be surprising. An NBC reporter challenged Mr Trump's false claim that he won the electoral college by the biggest margin since Ronald Reagan. The president answered, simply: ""I was given that information."" Mr Trump also suggested he would replace his controversial executive order temporarily barring travel from seven Muslim-majority countries next week with a new, revised order. He said the rollout of the travel ban was ""very smooth"" despite legal challenges his administration has faced, and chaos at airports when hundreds of protesters voiced their disapproval. Court documents released on Thursday also showed Mr Trump plans to rescind and replace the travel ban instead of having a larger appellate panel review the ruling. A three-judge panel of the 9th Circuit last week upheld a lower-court decision that suspended the ban.", -1140,2017/2/16,http://www.bbc.co.uk/news/business-38998884,Zuckerberg: my Facebook manifesto to re-boot globalisation,Mark Zuckerberg has revealed deep-seated concerns that the tide is turning against globalisation.,"Mark Zuckerberg has revealed deep-seated concerns that the tide is turning against globalisation. In an interview with the BBC, the Facebook founder said that fake news, polarised views and ""filter bubbles"" were damaging ""common understanding"". He said people had been left behind by global growth, sparking demands to ""withdraw"" from the ""connected world"". In a call to action, he said people must not ""sit around and be upset"", but act to build ""social infrastructures"". ""When I started Facebook, the mission of connecting the world was not controversial,"" he told me. ""It was as if it was a default assumption that people had; every year the world got more connected and that seems like the direction things were heading in. ""Now that vision is becoming more controversial."" He told the BBC: ""There are people around the world that feel left behind by globalisation and the rapid changes that have happened, and there are movements as a result to withdraw from some of that global connection."" Mr Zuckerberg's interview comes alongside the publication of a 5,500-word letter he has written about the future of Facebook and the global economy. In it Mr Zuckerberg quotes Abraham Lincoln who spoke of acting ""in concert"", and talks about ""spiritual needs"", civic engagement and says that many people have ""lost hope for the future"". ""For a couple of decades, may be longer, people have really sold this idea that as the world comes together everything is going to get better,"" he said. Ahmed: Zuckerberg lays out his vision Zuckerberg's manifesto on Facebook and the future Full BBC interview with Facebook's founder Facebook AI 'will identify terrorists' ""I think the reality is that over the long term that will be true, and there are pieces of infrastructure that we can build to make sure that a global community works for everyone. ""But I do think there are some ways in which this idea of globalisation didn't take into account some of the challenges it was going to create for people, and now I think some of what you see is a reaction to that. ""If people are asking the question, is the direction for humanity to come together more or not? I think that answer is clearly yes. ""But we have to make sure the global community works for everyone. It is not just automatically going to happen. ""All these different kinds of institutions, whether they are governments, or non-profits, or companies, need to do their part in building this infrastructure to empower people so that it creates opportunities for everyone, not just some people. ""If you are upset about the direction things are going in, I hope you don't just sit around and be upset, but you feel urgent about building the long term infrastructure that needs to get built,"" Mr Zuckerberg said. I asked him whether he felt President Trump agreed with his view that ""bringing people together"" and ""connecting the world"" would lead to greater progress. Mr Zuckerberg did not, famously, attend the round-table of technology leaders hosted by the new president. ""I don't think I am going to speak to that directly,"" he answered carefully. ""You can talk to him, you can look at what he has said to get a sense of that. ""The thing that I will say is that a lot of folks will look at this through the lens of one or two events, and I really do think this is a broader trend. ""I have been talking about this for a long time, since before recent elections both across Europe and Asia and the US. ""A lot of today's biggest opportunities will come from bringing people together - whether that is spreading prosperity or freedom, or accelerating science, or promoting peace and understanding."" Mr Zuckerberg said: ""A lot of challenges we face today are also entirely global - fighting climate change or ending terrorism, or ending pandemics, or when a civil war in one country leads to a refugee crisis across different continents. ""These are inherently global things and require a different level of infrastructure than we've had historically."" Would you like to meet President Trump? I asked. ""I would like that not be the focus of this. I don't really have much comment on that. It somewhat detracts from the focus of what we are trying to do here."" There has been speculation that Mr Zuckerberg could be contemplating a political career, and even suggestions that he will run for US president in 2020 - rumours he has flatly denied. I said the political tone of the manifesto would do little to dampen speculation about where he sees himself longer term. Could he imagine himself going into politics? ""I am not doing that now, it's not the plan,"" he said. ""The thing I really care about is connecting the world."" Facebook has been attacked for not doing enough to tackle ""fake news"" - untrue stories which claimed, for example, that the Pope backed Mr Trump - which have appeared prominently on its news feeds. In Germany, there has been controversy after a Green MP was quoted in a Facebook post defending an asylum seeker from Afghanistan who had raped and murdered a German student. The MP, Renate Kunst, had never said what was attributed to her by a right-wing extremist organisation. Ms Kunst said she found it hard to accept that ""Zuckerberg earns billions, shows off with all his charitable donations, and at the same time allows Facebook to become a tool of extremists"". Mr Zuckerberg said he understood the importance of tackling fake news. ""Accuracy of information is very important,"" he said in the 5,500-word letter, published on Thursday. ""We know there is misinformation and even outright hoax content on Facebook. ""We've made progress fighting hoaxes the way we fight spam, but we have more work to do. ""We are proceeding carefully because there is not always a clear line between hoaxes, satire and opinion."" But Mr Zuckerberg added: ""In a free society, it's important that people have the power to share their opinion, even if others think they're wrong. ""Our approach will focus less on banning misinformation, and more on surfacing additional perspectives and information, including that fact checkers dispute an item's accuracy."" He told me that ""polarisation and sensationalism"" also undermined ""common understanding"". And he admitted that social media - which deals in short, often aggressive, messages - had been part of the problem. ""In some places [it] could over simplify important and complex topics and may push us to have over simplified opinions of them,"" Mr Zuckerberg said. ""And I think it is our responsibility to amplify the good effects and mitigate the negative ones so we can create a community that has a common understanding ""There is a lot of research that shows we have the best discourse when we connect as whole people rather than just opinions. ""If I get to know you on the values that we have in common or even the interests that we share it is a lot easier to have a debate about something that we disagree about productively than if we just meet and go head to head on something without understanding our common humanity."" Some may argue there is a question of legitimacy here, that no one voted for Mark Zuckerberg and question his right to outline - and attempt to execute - a vision of the world. And what about those controversies over taxes paid, or privacy, or vast profits in an age when inequality is as much a factor behind the present dim view of many in the political and business establishment as any perceived failures of globalisation. ""There are a lot of areas that I know we need to improve and I appreciate the criticism and feedback and hope we can continue to do better on them,"" Mr Zuckerberg said, pointing out that he is donating 99% of his Facebook shares - worth ?36bn ($45bn) - to the charitable foundation he runs with his wife, Priscilla Chan. ""Being a good corporate citizen is really important,"" he said. ""We operate in a lot of different countries all around the world. ""We need to be help build those communities and that is what I am trying to do in my personal philanthropy - setting an example hopefully for other entrepreneurs who will build things in the future for how you should give back to the community and to the world. ""I care deeply about all of this, and it is a work in progress.""", -1141,2017/2/16,http://www.bbc.co.uk/news/uk-england-38994965,Aslef members reject Southern rail deal,Aslef members have rejected a deal with Southern rail that would have ended a long-running industrial dispute.,"Aslef members have rejected a deal with Southern rail that would have ended a long-running industrial dispute. It had been arguing with parent firm, Govia Thameslink Railway (GTR), over driver-only operated (DOO) trains. Members of the drivers' union rejected the deal by 54.1% to 45.9%. The turnout was 72.7%. Under the proposed agreement, Southern would have been able to run trains without a guard or onboard supervisor under certain circumstances. Mick Whelan, general secretary of Aslef, said: ""We understand and support the decision arrived at democratically by our members and will now work to deliver a resolution in line with their expectations."" Live updates: Southern strike and Sussex news David Sidebottom, of independent watchdog Transport Focus, said: ""The hope that services would improve on Southern has now been dashed for their passengers. ""They have had enough of the on-going industrial action. They have faced months of lost time, lost money and deep frustration at not being able to rely on the trains. ""It is vital that all parties in this dispute get back around the table to bring the services back to normal as soon as possible."" Nick Brown, GTR's chief operating officer, said: ""Naturally we're saddened and hugely disappointed, as will be our passengers, with today's decision by drivers, particularly as the agreement carried the full support and recommendation of the Aslef leadership. ""We now need to understand the issues which led to this outcome and we'll be seeking to meet with the union as soon as possible to see how we can agree a way forward."" Why is there a Southern rail strike? The dispute centres on Southern's decision to turn guards into on-board supervisors. In this role they would no longer be responsible for opening and closing carriage doors - this duty would become the responsibility of the driver. The dispute began in April when conductors - who are members of the RMT union - first took industrial action. Aslef members first walked out over the plans in December, leading to the cancellation of all Southern services. Aslef leaders announced they had reached a deal with GTR on 2 February following 11 days of talks. The RMT said at the time it was ""a shocking betrayal"", and it has it now been rejected by Aslef members. A DfT spokesman said: ""It is disappointing that Aslef members have rejected the offer negotiated by their leaders at the TUC. ""The union leadership must now return to talks and work with their members on a deal they can back."" RMT leader Mick Cash said his union remained ""focused"" on the campaign to ""protect the safety of the travelling public and put access and safe operation before profits"". He added: ""[We] will now look to take that campaign into its next phase [by] working with our sister rail unions, the wider trade union movement and the passengers who use the railway. ""RMT repeats the call to Southern to give the guarantee of a second, safety critical member of staff on their trains and to sit down with the unions in new talks around the issue of safe train despatch."" The RMT held separate talks with Southern managers earlier this week, which broke down without an agreement after three hours. On Wednesday, it announced further industrial action, saying conductors would walk out for 24 hours on 22 February. There we have it. Aslef drivers voted by a small majority to reject the deal their leaders had struck with Southern. That's not entirely surprising. Many saw the announcement of the deal as the end of the dispute, but that was wishful thinking. Once we saw the details it was clear some drivers wouldn't be happy. That deal gave a list of ""exceptional circumstances"" under which a train might run without its scheduled Onboard Supervisor, or OBS. Even assurances that those 'exceptional circumstances' didn't include RMT strike action proved insufficient. This wasn't just about solidarity with striking guards. Many drivers remain unconvinced that trains can be run safely without an OBS on board. What happens next depends on the reaction of key players. Southern moved quickly to offer fresh talks, and Aslef's Mick Whelan promised to ""work to deliver a resolution"" - with a relatively small 54.1% majority of drivers rejecting the deal, they'll hope it won't take too many tweaks to produce an acceptable deal. But commuters will be painfully aware of the disruption further strikes would cause. This dispute has run for months and there's no longer much cause to feel like it's coming to an end.", -1142,2017/2/16,http://www.bbc.co.uk/news/world-middle-east-38995832,Baghdad car bomb kills at least 48,"At least 48 people have been killed in Baghdad in the third blast in the Iraqi capital in three days, security and medical sources say.","At least 48 people have been killed in Baghdad in the third blast in the Iraqi capital in three days, security and medical sources say. A car packed with explosives blew up near car dealerships in the Shia area of Bayaa in the south of the city. More than 50 people were injured. The Islamic State (IS) group claimed the attack, saying it targeted ""a gathering of Shias"". At least 24 people were killed in other attacks on Tuesday and Wednesday. Baghdad saw a wave of deadly suicide attacks by IS in the first few days of 2017, but the number had dropped until recently. An AFP reporter at the scene of Thursday's bomb reported seeing numerous burnt-out vehicles, and blood on the ground. Security sources said the bomb was detonated in a busy street and was the deadliest attack in Baghdad for several months. A plume of smoke from the blast could be seen above the Bayaa neighbourhood for much of the day. Medics have warned the number of fatalities and injuries could rise as they struggle to cope with scores of people wounded in the attack. It is thought that car dealerships may present convenient targets for the militants because it is easy for them to leave vehicles laden with explosives alongside lots of other vehicles that are also parked in the same area. As the clear-up operation gets underway, distressed relatives are reported to be at the scene desperate to find news of their loved ones. The IS group has stepped up its attacks since the Iraqi army, aided by US-led coalition strikes, launched its campaign to dislodge the Sunni militant group from its stronghold of Mosul in the north four months ago. The militants now control the west of the city, while the eastern part is held by Iraqi forces and their allies. On Wednesday, an attack on used-car dealers in the Habibya area of Sadr City, a suburb in the north of the Iraqi capital, left 18 dead. On Tuesday, a car bomb in the south of Baghdad killed four people. On 2 January, at least 35 people were killed in a bomb blast in Sadr City, in an attack claimed by IS.", -1143,2017/2/16,http://www.bbc.co.uk/news/world-asia-38994318,Pakistan: IS attack on Sufi shrine in Sindh kills dozens,"A suicide attack in a popular shrine in southern Pakistan has killed at least 72 people, police say.","A suicide attack in a popular shrine in southern Pakistan has killed at least 72 people, police say. The bomber blew himself up among devotees in the shrine of Sufi saint Lal Shahbaz Qalandar in the town of Sehwan, in Sindh province, police said. Prime Minister Nawaz Sharif has condemned the attack, which has been claimed by so-called Islamic State. A surge of attacks this week has shattered a period of improving security in Pakistan. The shrine was crowded as Thursday is considered a sacred day for Muslims to pray there. The blast, in one of the country's most revered shrines, is the deadliest in a string of bombings in Pakistan this week, claimed by the Pakistani Taliban and other Islamist militants. The Edhi Welfare Trust, which runs the country's largest ambulance service, said 43 of the dead were men, nine women and 20 children. At least 250 others were wounded, a senior police official told the BBC. The only hospital in the area was said to be overwhelmed. The critically injured were being sent by ambulance to Jamshoro and Hyderabad, some two hours away. The military said navy helicopters capable of flying at night would be sent to airlift the critically injured. Prime Minister Sharif has vowed to fight the militants who have carried out attacks. ""The past few days have been hard, and my heart is with the victims,"" he said in a statement. ""But we can't let these events divide us, or scare us. We must stand united in this struggle for the Pakistani identity, and universal humanity."" Sufism has been practised in Pakistan for centuries. Most of the country's radical Sunni militant groups despise the Sufis, as well as Shia Muslims, as heretics. Two separate bombings in the country's north-west killed at least seven people on Wednesday. And on Monday, at least 13 people died in a suicide bombing in the eastern city of Lahore. A faction of the Pakistani Taliban, Jamaat-ur-Ahrar, said it had carried out that attack. After a couple of years of diminishing violence credited to a military operation that kicked off in June 2014, the militants appear to have returned with a vengeance. In six back-to-back attacks since Sunday, suicide bombers have killed nearly 100 people in different parts of the country. There have been some spectacular, though sporadic, attacks in recent months that have exacted a significant toll on human life. But the latest surge stands out in so far as it has come amid reports of the reunification of some powerful factions of the Pakistani Taliban. Some of these groups have links with the Afghanistan-Pakistan chapter of the so-called Islamic State which itself is composed largely of a former faction of the Pakistani Taliban. This surge has blown the lid off an air of complacency that was brought on by statements of the military and civilian leaders to the effect that Pakistan had successfully defeated the militants. The army chief, General Qamar Javed Bajwa, now seems to have lost patience. On Thursday he issued a veiled threat to some neighbouring countries that ""each drop of [the] nation's blood shall be avenged, and avenged immediately. No more restraint for anyone."" Pakistani officials have been accusing Afghanistan of not eliminating the sanctuaries of anti-Pakistan militants on its soil. It has also been blaming India for using Afghan soil to foment trouble in Pakistan. But many here believe that militancy refuses to die down because Pakistan continues to tolerate selective militant structures as cover for its own covert wars that sustain the economy of its security establishment.", -1144,2017/2/16,http://www.bbc.co.uk/news/uk-england-leeds-38995320,Baby taken from family amid concern over formula milk comment,"Concern over a father's ""unorthodox views"" on bottle sterilisation and formula milk sparked a series of events that left his week-old son in care, a court has heard.","Concern over a father's ""unorthodox views"" on bottle sterilisation and formula milk sparked a series of events that left his week-old son in care, a court has heard. Medical staff had told Kirklees Council of concerns for the family, and social workers later removed the baby. Care chiefs then ""misled"" a family court and falsely claimed the parents ""agreed"" to the child's removal. A High Court judge has now ordered the council to pay the family ?11,250. The baby was returned to the parents, who cannot be named for legal reasons, more than two months after being taken. Read more about this and other stories from West Yorkshire The High Court heard the mother suffered from minor mental health problems and other difficulties and the father had in the past been aggressive to others, but staff at the special care baby unit had no child protection concerns. However, Mr Justice Cobb said medics had expressed worries about the couple's ability to care for the baby. The father had, among other things, ""expressed unorthodox views about the need for sterilisation of bottles and the benefits of formula milk"". Kirklees Council persuaded a family court to approve the baby being taken into emergency care as he was about to be discharged from hospital. Mr Justice Cobb said the council had ""misled"" the family judge, wrongly claiming the parents had been ""given notice"" of the hearing and had ""agreed"" to the child being taken. The boy was placed in the care of relatives and returned to his parents about 10 weeks later. Finding in favour of the family, Mr Justice Cobb said in the year since being returned to his parents the boy had thrived. He added: ""There is no doubt in my mind, indeed it is admitted, that Kirklees Council breached the human rights of a baby boy and his parents. ""I am satisfied that the breaches were serious. The separation of a baby from his parents represents a very serious interference with family life."" He awarded the mother, father and the infant ?3,750 each in damages. Kirklees Council said in a statement: ""The court and parties accepted that the council was correct to issue these proceedings, but mistakes were made which resulted in the court awarding the family compensation.""", -1145,2017/2/16,http://www.bbc.co.uk/news/uk-england-south-yorkshire-38998394,Woman guilty of 'horrific' Sheffield murder,"A woman has been found guilty of the ""horrific"" murder of a man after taking drugs at a house in Sheffield.","A woman has been found guilty of the ""horrific"" murder of a man after taking drugs at a house in Sheffield. Craig Wild, 47, was kicked, stamped on and attacked with knives and a screwdriver in Fox Walk last August. Alison Sarah Moss, 46, of Fox Walk, Walkley, denied murder but was found guilty at Sheffield Crown Court. Her partner, David Michael Webster, 49, of Leppings Lane, Hillsborough, had pleaded guilty to Mr Wild's murder at a hearing in November. The court heard how Moss and Webster had been drinking and taking drugs at the house on Fox Walk when they were joined by Mr Wild. An argument was said to have broken out, before Webster launched a horrific attack on the victim. Det Ch Insp Dave Stopford, said after being alerted by neighbours police were met ""with a horrific sight"". ""Mr Wild was found lying on the living room floor, with a blood-stained duvet covering him. ""He was found with over 117 separate injuries caused by multiple weapons; a Stanley knife, kitchen knife and a screwdriver, and also by being punched, kicked and stamped on."" Mr Stopford said Webster was a ""dangerous man"" who has ""shown absolutely no remorse for his actions"". Moss denied any involvement in the murder but forensic evidence on shoes and clothing proved she had participated. Police said the pair were ""both extremely violent individuals who have murdered a defenceless man without any provocation"". Mr Wild's family said: ""The impact our dearest Craig's death has had on our family is one of total devastation for all of us who loved him so dearly."" Moss and Webster were remanded in custody and are to be sentenced on Friday.", -1146,2017/2/16,http://www.bbc.co.uk/news/science-environment-38937141,Event Horizon Telescope ready to image black hole,Scientists believe they are on the verge of obtaining the first ever picture of a black hole.,"Scientists believe they are on the verge of obtaining the first ever picture of a black hole. They have built an Earth-sized ""virtual telescope"" by linking a large array of radio receivers - from the South Pole, to Hawaii, to the Americas and Europe. There is optimism that observations to be conducted during 5-14 April could finally deliver the long-sought prize. In the sights of the so-called ""Event Horizon Telescope"" will be the monster black hole at the centre of our galaxy. Although never seen directly, this object, catalogued as Sagittarius A*, has been determined to exist from the way it influences the orbits of nearby stars. These race around a point in space at many thousands of km per second, suggesting the hole likely has a mass of about four million times that of the Sun. But as colossal as that sounds, the ""edge"" of the black hole - the horizon inside which an immense gravity field traps all light - may be no more than 20 million km or so across. And at a distance of 26,000 light-years from Earth, this makes Sagittarius A* a tiny pinprick on the sky. The Event Horizon Telescope (EHT) team is nonetheless bullish. ""There's great excitement,"" said project leader Sheperd Doeleman from the Harvard-Smithsonian Center for Astrophysics in Cambridge, Massachusetts. ""We've been fashioning our virtual telescope for almost two decades now, and in April we're going to make the observations that we think have the first real chance of bringing a black hole's event horizon into focus,"" he told BBC News. The EHT's trick is a technique called very long baseline array interferometry (VLBI). This combines a network of widely spaced radio antennas to mimic a telescope aperture that can produce the resolution necessary to perceive a pinprick on the sky. The EHT is aiming initially to get down to 50 microarcseconds. Team-members talk in analogies, describing the sharpness of vision as being the equivalent of seeing something the size of a grapefruit on the surface of the Moon. They emphasise the still complex years of work ahead, but also trail the prospect of an imminent breakthrough. The scientists certainly have an expectation of what they ought to see, if successful. Simulations rooted in Einstein's equations predict a bright ring of light fringing a dark feature. The light would be the emission coming from gas and dust accelerated to high speed and torn apart just before disappearing into the hole. The dark feature would be the shadow the hole casts on this maelstrom. ""Now, it could be that we will see something different,"" Doeleman said. ""As I've said before, it's never a good idea to bet against Einstein, but if we did see something that was very different from what we expect we would have to reassess the theory of gravity. ""I don't expect that is going to happen, but anything could happen and that's the beauty of it."" Over the years, more and more radio astronomy facilities have joined the project. A key recent addition is the Atacama Large Millimeter/submillimeter Array (ALMA) in Chile. Its extraordinary state-of-the-art technology has at a stroke increased the EHT's sensitivity by a factor of 10. Hence, the optimism ahead of April. Even so, scientists have had to install special equipment at all the radio facilities involved in the observations. This includes big hard drives to store colossal volumes of data, and atomic clocks to precisely timestamp it all. Nothing happens on the spot - the hard drives must first be flown to a large computing facility at MIT Haystack Observatory in Westford, just outside Boston, Massachusetts. ""Our hard-drive modules hold the capacity of about 100 standard laptops,"" said Haystack's Vincent Fish. ""We have multiple modules at each telescope and we have numerous telescopes in the array. So, ultimately, we're talking about 10,000 laptops of data."" It is in Haystack's correlator computer that the synthesis will begin. Some very smart imaging algorithms have had to be developed to make sense of the EHT's observations, but it will not be a quick result. It could be the end of the year, perhaps the start of 2018, before the team releases an image in public. Looking to the future, the scientists are already thinking about how to extend their techniques. For example, the matter closest to the event horizon and about to disappear into Sagittarius A* should take about 30 minutes to complete an orbit. Katie Bouman, from MIT's Computer Science and Artificial Intelligence Laboratory, thinks it might be possible to capture this movement. ""We want to push boundaries and to try to make movies from the data,"" she told BBC News. ""Maybe we can actually see some of the gas flowing around the black hole. That's really the next stage of what we're trying to accomplish with these imaging algorithms."" First and foremost, the team needs good weather at the participating observing stations in April. The strategy is to view the galactic centre at a wavelength of 1.3mm (230GHz). This has the best chance of piercing any obscuring gas and dust in the vicinity of the black hole. But if there is too much water vapour above the array's receivers, the EHT will struggle even to see through Earth's atmosphere. Just getting a resolved view of Sagittarius A* would be a remarkable triumph in itself. But the real objective here is to use the imaging capability to go test aspects of general relativity. If there are flaws to be found in Einstein's ideas - and scientists suspects there are more complete explanations of gravity out there waiting to be discovered - then it is in the extreme environment of black holes that limitations should be exposed. Jonathan.Amos-INTERNET@bbc.co.uk and follow me on Twitter: @BBCAmos", -1147,2017/2/16,http://www.bbc.co.uk/news/business-38994649,Vauxhall deal: Minister to meet Peugeot and French government,"Business Secretary Greg Clark has gone to France for meetings on the possible deal between General Motors and Peugeot owners PSA, the BBC understands.","Business Secretary Greg Clark has gone to France for meetings on the possible deal between General Motors and Peugeot owners PSA, the BBC understands. Mr Clark will meet with the PSA board and France's industry minister, BBC business editor Simon Jack reported. Earlier on Thursday, Mr Clark met executives at General Motors in London. PSA is in talks to acquire GM's European unit Opel, including Vauxhall, which has 4,500 workers at plants in Luton and Ellesmere Port. The business secretary met with GM's president, Dan Ammann, Vauxhall managing director, Rory Harvey, and officials from the Unite union. After the meeting, Mr Clark said he had been reassured about Vauxhall's UK operations. ""There is some way to go in discussions between GM and PSA, but I was reassured by GM's intention, communicated to me, to build on the success of these operations rather than rationalise them,"" Mr Clark said. In a statement, GM said it was in talks with PSA ""to build on the success"" of Opel Vauxhall and to put it in ""the strongest possible position"". However, Unite union leader Len McCluskey, who joined them for a separate meeting, said afterwards that he had received ""no assurances"". ""This is a story that is unfolding - we'll wait to see what the next instalment is,"" Mr McCluskey said. The Unite leader called Vauxhall ""a jewel within the crown"" of GM's European business - which also makes Opel cars - and said the government should make clear it would not ""accept a single job loss in Britain"". He also called on Mr Clark to secure meetings with French and German government officials, or risk being ""left on the sidelines"". ""The French government own a considerable stake in Peugeot, and one thing's clear, they will be arguing and fighting for French jobs,"" Mr McCluskey said. Vauxhall estimates that a further 23,000 people work in its UK showrooms and 7,000 in its UK supply chain. The possible takeover of GM's European arm Opel by PSA, which is 14% owned by the French government, has sparked concerns in the UK, Germany and France. Mr Ammann and GM chief executive Mary Barra visited the Opel headquarters in Germany on Wednesday to answer questions about the deal talks. GM last week reported a loss of $257m (?206m) last year from its European operations. It was the 16th consecutive loss-making year for GM in Europe, bringing its cumulated losses on the continent since 2000 to more than $15bn. On Tuesday, PSA, which already works with GM in Europe on several projects, announced a takeover was among ""numerous strategic initiatives"" being considered.", -1148,2017/2/16,http://www.bbc.co.uk/news/world-asia-38996750,Helicopter pilot lands to ask for directions in Kazakhstan,,"A lorry driver has captured the moment a military pilot landed on a Kazakhstan highway to ask for help after getting lost. He asked the way to the north-western city of Aktobe, to the amusement of two lorry drivers in radio communication. The Ministry of Defence said the pilot had been taking part in a visual orientation exercise when he lost his bearings.", -1149,2017/2/16,http://tass.com/politics/931400,"Lavrov, Tillerson stand side-by-side on official G20 ministers""?photo","Tillerson, who was among the last to come to the photographing ceremony, greeted all ministers and stood on the right from Lavrov, in the front row","BONN /Germany/, February 16. /TASS/. Russian Foreign Minister Sergei Lavrov and US Secretary of State Rex Tillerson stood side-by-side while an official G20 ministers""?meeting photo was made Thursday. Tillerson, who was among the last to come to the photographing ceremony, greeted all ministers and stood on the right from Lavrov, in the front row. Media attention focused on Tillerson who made his first official foreign visit to the G20 event Germany as the US Secretary of State, especially on his meeting with Russia's Lavrov. The Russian minister described the meeting as ""productive."" ""In all these directions our American partners are interested in joining efforts that are being made to overcome these conflicts,"" he said. The G20 ministerial consultations will continue Friday.", -1150,2017/2/16,http://tass.com/world/931404,Analysis of Russian radars data on MH17 needs time - Dutch prosecutors,"The problem stems from an unusual format, in which Russia provided the information","THE HAGUE, February 16. /TASS/. Many things remain unclear today in the processing of primary radar data, which the Netherlands received from Russia as part of a criminal investigation over the July 2014 crash of Malaysia Airlines flight MH17 in the war zones in eastern Ukraine, the Office of the Dutch Attorney General said in a report on Thursday. ""It will still take considerable time to analyse the radar images,"" it said. ""Already in October 2014, the Dutch Public Prosecution Service (OM) sent a first request for legal assistance to the Russian Federation, requesting all information which might be relevant for the investigation,"" the report said. ""At the end of September 2016, the Russian Federation released new radar images on television."" These images were made available to the Dutch side one month later but according to the Dutch attorneys, the problem stems from an unusual format, in which Russia provided the information. ""For the exchange of information air traffic control agencies often make use of the so called ASTERIX format, which has been developed by Eurocontrol (the European Organization for the Safety of Civil Aviation - TASS),"" the Attorney's Office said. ""The International Civil Aviation Organization (ICAO) does not oblige the use of this format, but in a manual it does mention the ASTERIX format as a useful standard,"" it said. ""The ASTERIX format is internationally accepted and is being used worldwide."" ""The Russian Federation has not provided the radar data using the ASTERIX format,"" the Attorney's Office said, adding that ASTERIX was used in the Russian Federation. ""In order to still be able to analyse the images, the Russian authorities had included separate software without a manual."" The software was written in Russian and that is why the Dutch experts had to translate it first and then to test it in order to verify its functionality and realiability, the report claimed. ""Translating and getting familiar with the software were both time consuming,"" it said. ""Only after that, the data could be analysed."" According to the Attorney's Office, the transferred data show less that if it had been provided in the ASTERIX format. To move on with the necessary procedures, the team investigating the MH17 accident had to hire ""�external expertise""? Also, the investigators informed the Russian judicial authorities that they would sent an additional request for legal assistance, the report said.", -1151,2017/2/16,http://tass.com/politics/931401,Military budget of NATO's European states exceeds Russia's and China's - Russia's envoy,"""NATO's mythology about threats coming from Russia rests on an idea of NATO's weakness,"" he said","BRUSSELS, February 16. /TASS/. NATO's weakness in the face of Russia is a myth as military spending of NATO's European allies alone (about 30% of NATO's overall military budget) exceeds Russia's and China's overall military budget, Russia's Permanent Representative to NATO Alexander Grushko said on Thursday. ""NATO's mythology about threats coming from Russia rests on an idea of NATO's weakness. The figures however speak for themselves. Overall military spending of NATO's European states alone exceed 250 billion euro and this figure is bigger than the overall military budget of Russia and China,"" he said after a meeting of NATO's defense ministers.", -1152,2017/2/16,http://tass.com/world/931406,"Trump calls current US media reports on Russia ""Fake news""?,He added that those reports could come """"probably from the Obama administration""""""","WASHINGTON, February 16. /TASS/. The present wave of US media publications about Russia is ""fake news,"" US President Donald Trump said at a news conference in the White House Thursday. ""Russia is fake news. Russia - this is fake news put out by the media,"" he said. ""The real news is the fact that people, probably from the Obama administration because they'r there, because we have our new people going in place, right now,"" the president continued.",-1, -1153,2017/2/16,http://tass.com/politics/931386,"Russia may lose interest in dialogue with NATO if it yields no results ""?NATO envoy","The best guarantee of NATO countries""?security is maintaining healthy relations with Russia, the ambassador stressed","BRUSSELS, February 16. /TASS/. Russia believes dialogue with NATO is useful but will lose any interest in it if it yields no results, Russia's Permanent Representative to NATO Alexander Grushko said on Thursday. ""In general, NATO believes that it is necessary to maintain dialogue. I think it stems from the fact that they have realized the danger of having no communications channels with us,"" he said after a meeting of NATO's defense ministers. ""It is fraught with risks when two biggest factors determining the security situation in Europe have no contacts. After a two-year break in the work of the Russia-NATO Council that was initiated by the alliance, the practice of Russian-NATO Council meetings has resumed and last year we had three such meetings in the second half of the year."" ""We have not yet begun to prepare a Russia-NATO Council meeting. I think it will be held in a foreseeable perspective,"" the Russian diplomat said. ""It is obvious for us that dialogue is really useful. But if it yields no points of contact, no impetus for the resumption of cooperation, interest to such dialogue might vanish in the long run."" ""Now, dialogue is yielding certain results. Thus, we have managed to reach progress on certain problems at the confluence of commercial and military flights. You know that Russia supported the initiative of Finnish President [Sauli] Niinisto that all flights by warplanes be performed with transponders on. I don""t rule out that there will be other areas where we can make progress in reducing the risks of unintentional dangerous military incidents,"" Grushko said, adding that other possible points of contact may include cooperation on normalization of the situation in Syria. According to the Russian NATO ambassador, Russia has been standing for resumption of military contacts whereas NATO has been dodging it. ""It is not quite clear why as representatives of the alliance speak about the necessity of addressing matters of preventing such incidents. But it is impossible to do without regular contacts between the military,"" he stressed, adding that Russia's defense ministry officials a number of initiatives on the resumption of regular contacts between Russia and NATO. The best guarantee of NATO countries""?security is healthy relations with Russia, Grushko reiterated.- Russia is reinforcing its force in the south and in Crimea in response to NATO's increased presence in that region, Russia's permanent representative to NATO explained:- ""We have already taken additional response steps to reinforce our groups in the south. We are rearming our group in Crimea. Naturally, we will take all necessary measures to duly ensure Russia's interests in this region.""- NATO's expanded presence in the Black Sea is seen as another step towards whipping up tensions in this region that is vitally important for Russia: ""The decision to increase NATO's naval presence in the Black Sea is, in any case, yet another step towards escalating tensions in the regions of vital importance for Russia"". US military support for NATO allies may send tensions to new highs ", -1154,2017/2/16,http://tass.com/economy/931373,Finance Ministry's initiative on state-owned firms pertains to deposits only,,"MOSCOW, February 16. /TASS/. Potential restrictions for Russian companies in respect of work with nonresident banks may only pertain to placing funds on deposits, Deputy Finance Minister Alexei Moiseev told TASS on Thursday. ""An idea of restricting work with banks for state-owned companies is under consideration only and is not formalized in legal terms. No fixed wordings exist so far. In any case, this may only pertain to placement and administration of accounts of state-owned companies, strategic companies, and extra-budgetary funds. No other restrictions are meant,"" Moiseev said. Draft regulatory acts will undergo all prescribed procedures when they will be developed, including public discussion, the official added. Subsidiaries of nonresident banks may be banned from working with Russian strategic state-owned companies if countries, where parent companies of such banks are registered, are unfriendly towards Russia, Moiseev said earlier. Such state companies comprise state-owned corporations, strategic companies with government participation and state extra-budgetary funds, he said.", -1155,2017/2/16,http://tass.com/sport/931371,"Official expects BBC documentary on Russian football hooligans to be ��nothing but fiction""?,Russia is currently in full-swing preparations for the global football tournaments""","MOSCOW, February 16. /TASS/. A documentary about Russian football hooligans, set to be broadcast by Britain's BBC2 television channel later on Thursday night, will be ""nothing but fiction"" aimed to discredit the 2018 FIFA World Cup in Russia, a senior Russian football official told TASS. The UK-based daily, The Guardian, reported earlier in the day that BBC2 would show a documentary, in which Russian hooligans were warning British football fans about a ""Festival of violence""?in response to the notorious clashes in French Marseille last year during the games of the 2016 UEFA Euro Cup. ""The documentary preview about Russian football fans, who allegedly seek revenge in regard to British fans over the (2016 UEFA) Euro Cup is another attempt to escalate tensions used by British media after their country lost the bid to Russia to host the 2018 World Cup,"" Vladimir Markin, the head of the Russian Football Union's (RFU) Committee on security and interaction with football fans, said in an interview with TASS. ""This is another attempt to discredit the upcoming World Cup in Russia and to undermine Russia's image on the whole,"" Markin said. ""I have not watched this film yet, but we are all already well-acquainted with the products of BBC, which in recent years seek to ""�entertain""?their viewers."" ""We invite football fans from all over the world to visit our country during the World Cup and nothing of what British media reports warn about would happen in our country,"" Markin stated. ""Everyone will see an outstandingly organized championship, including in terms of security provision."" Announcing the upcoming film on Thursday night, titled ""Russia's Hooligan Army"", The Guardian wrote in particular that: ""Clashes between Russia and England supporters, centred around the countries""?group-stage meeting in Marseille, blighted Euro 2016 last summer, leading to fears among senior British government officials that the violence unleashed by Russian hooligans was sanctioned by the Kremlin."" ""The programme also shows groups of young men engaging in prearranged brawls against rival firms and preparing physically in order to be ready for next year's tournament,"" The Guardian added. Numerous clashes were reported between football fans at the major European football tournament held in France between June 10 and July 10, 2016. The most notorious altercations erupted between Russian and English fans ahead of the June 11th match. Brawls began on June 9 in Marseille, peaking on the day of the match - June 12. Law enforcement authorities resorted to tear gas, smoke pellets and water cannons to disperse the brawlers. According to reports, more than 30 people had been injured in violent altercations, with four people sent to hospitals after sustaining severe injuries. On June 14, French policemen stopped a bus with over 43 Russian football fans en-route from Marseille to Lille, where their national team played its second group stage match against Slovakia. Russia is currently in full-swing preparations for the global football tournaments after the country clinched the bid, following the final vote at the FIFA Executive Committee in December 2010. The victory came following a tight race against the bids from England, Portugal and Spain, in addition to a joint bid on behalf of Belgium and the Netherlands. The country selected 11 host cities to be the venues for the matches of the 2018 World Cup and they are Moscow, St. Petersburg, Sochi, Kazan, Saransk, Kaliningrad, Volgograd, Rostov-on-Don, Nizhny Novgorod, Yekaterinburg and Samara. The matches of the 2018 World Cup will be held between June 14 and July 15 at 12 stadiums located in the 11 above-mentioned cities across Russia. Two of the stadiums are located in the Russian capital of Moscow.- Richest people in the world of football ",-1, -1156,2017/2/16,http://tass.com/politics/931366,Diplomat says Astana talks may help create better environment for peace process in Syria,The Russian diplomat has praised Astana talks' positive contribution to the Syrian peace settlement,"MOSCOW, February 16. /TASS/. Presence of the United States""?and Jordan's representatives at the international meeting on Syria in Astana and support from United Nations Secretary General's Special Envoy on Syria Staffan de Mistura made it possible to create favorable environment for progress in political settlement, a senior official at the Russian foreign ministry said following the talks in Astana. ""All this, to my mind, creates favorable environment for promoting political process in Syria and all of us want it to be successful,"" Sergey Vershinin, Russian Foreign Ministry's special envoy for the Middle East settlement and director of the ministry's Middle East and North Africa department, said.- ""We rely on the stance Russia has always been sticking to: it is up to the Syrian people to decide-the future of their homeland, and this is applicable to absolutely all aspects of the current situation,"" he said. ""I think we can say that the Astana process, the Astana format, really makes a good and positive contribution to general efforts of the entire international community, including in what concerns the resolution of the top priority-task of fighting against terrorism, either in Syria or in the Middle East or in the entire world,"" he said, adding he was-sure the current Astana meeting would be useful also from the point of-prospects for the intra-Syrian talks in Geneva. The talks are due to begin ""in several days under the United Nations""?auspices and on the basis of the documents we are being guided by in what concerns political settlement in Syria.""", -1157,2017/2/16,http://tass.com/politics/931360,Moscow vows to continue efforts to ensure jailed pilot Yaroshenko's release,,"MOSCOW, February 16. /TASS/. Russia's foreign ministry will continue its efforts to have Russian pilot Konstantin Yaroshenko, who has been in US jail for more than six years now, be release as his situation is seen as absolutely unacceptable, Russian Deputy Foreign Minister Sergey Ryabkov said on Thursday. ""We keep on reminding the American side that this situation is absolutely unacceptable. As a matter of fact, Konstantin [Yaroshenko] has become a victim of the policy of collective punishment,"" he said. ""We never leave this matter out of account and will continue efforts to have him released."" According to the Russian diplomat, information made public in the Izvestia newspaper is true. ""The prison's officials have used restrictive measures against Yaroshenko although he was never found to violate any regulations,"" Ryabkov noted, adding that the Russian foreign ministry is in contact with Yaroshenko's mother and his family. Earlier, the Izvestia newspaper published a letter Yaroshenko's mother had addressed to U.S. President Donald Trump. ""I am sincerely glad about your uneasy victory at the elections and, relying on my life experience, I am trying to see in it new possibilities for Konstantin's soonest return home,"" the letter reads. ""I am on my knees pleading with our to extend mercy and save my son's life."" Konstantin Yaroshenko was convicted in the United States on September 7, 2017 and sentenced to 20 years in prison. He pled innocence and described his arrest as a provocation. All charges against him were trumped up, he stated. The pilot had been brought to the United States from Liberia, where he was arrested on May 28, 2010. Agents of the US Drug Enforcement Administration operating under cover allegedly exposed Yaroshenko's criminal intention to transport a large batch of cocaine. He is serving the prison term at the Fort Dix federal prison, New Jersey.", -1158,2017/2/16,http://tass.com/world/931354,"Syria's armed opposition completely separated from Islamic State ""?Jaysh al-Islam leader","Syrian armed opposition supports the consolidation of ceasefire, the leader of the Jaysh al-Islam group says","ASTANA, February 16. /TASS/. Syria's armed opposition has completely separated from the Islamic State terrorist group, Mohammed Alloush, political leader of the Jaysh al-Islam group, pledged on Thursday. ""We have completely separated,"" he said. Syrian armed opposition supports the consolidation of ceasefire, he added. The delegation came to Astana to reinforce the ceasefire once again, Alloush said adding that this was a big objective, which protected woemn in their homes and helped set prisoners free so that they would see sunlight against and would return to their families. The delegation arrived in Astana for a politically fair solution that would stop the bloodshed, eliminate the agressor and return life to the Syrian people, he said.", -1159,2017/2/17,http://www.dw.com/en/inside-europe-covering-the-issues-that-shape-europe/a-19566539?maca=en-rss-en-all-1573-rdf,Inside Europe: Covering the issues that shape Europe,Inside Europe is an award-winning weekly radio show with a focus on European topics.,"Inside Europe, a one-hour weekly news magazine hosted by Helen Seeney, explores the topical issues shaping the continent. No other part of the globe has experienced such dynamic political and social change in recent years. - You can download and listen to recent episodes of Inside Europe by going to the DW media center, by subscribing to the show's RSS feed or downloading the latest podcast from iTunes.", -1160,2017/2/17,http://www.dw.com/en/inside-europe/a-15686905?maca=en-rss-en-all-1573-rdf,Inside Europe,"Click on the links below to listen to reports from this week's edition of Inside Europe, DW's award-winning radio program with features from around the continent.",This week: A population in 'dire need' in eastern Ukraine after renewed fighting in the region. Is President Erdogan headed for a new Sultanate in Turkey? Could robots be the answer for Britain post Brexit? Is time ticking away for the Spanish siesta? Underwater treasures revealed in Albania, Can Bordeaux face up to its past as a slave trade hub? And anger over Lithuania's poverty tourism. -1161,2017/2/16,http://www.dw.com/en/trump-scolds-dishonest-critics-in-the-media/a-37590956?maca=en-rss-en-all-1573-rdf,Trump scolds 'dishonest' critics in the media,"US President Donald Trump has lashed out once against the media at a press conference. He dismissed a number of major media outlets as ""dishonest"" peddlers of ""fake news.""","Less than one month into his presidency, US President Donald Trump appeared to revert back into campaign mode and scolded the US media during his first solo press conference as president on Thursday. Trump denounced reports of ""chaos"" during his first month as commander-in-chief and accused the press of playing to special interests and ""doing a tremendous disservice to the American people."" Trump went on to mount a staunch defense of his presidency, after saying he ""inherited a mess,"" he described his administration as ""running like a fine-tuned machine."" Evidence of such has been wanting. The White House has been criticized in the United States and worldwide for its handling of a number of issues, including an executive order banning all refugees as well as travelers into the US from seven majority-Muslim countries. That order was-tied up in a legal fight ,US appeals court upholds block on travel ban-but the Trump administration said on Thursday it would not longer contest the ruling. Instead, officials have said Trump would introduce a new executive order next week. Despite the ensuing airline and airport chaos, Trump defended the roll-out of the ban-and said he would announce a-""new and very comprehensive order to protect our people."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xhmb Trump dismisses ties to Russia as ""fake news"" Trump's criticism of the media extended to reports that members of his election campaign team were in repeated contact with the Russian government, claims he dismissed as ""fake news put out by the media"" and a ""ruse."" Trump said ""nobody that I know of"" on his campaign staff had contacted Russian officials. He also said such reports had ""nothing to do with Russia."" Those claims have been increasingly scrutinized following revelations based on leaked information from US intelligence agents that White House national security adviser Michael Flynn had misled Vice President Mike Pence over conversations with Russia prior to Trump taking office. Flynn subsequently resigned from his post. Trump defended Flynn, saying the retired general did nothing wrong in holding pre-inauguration talks with the Russian ambassador and that he demanded Flynn's resignation for misleading the vice president. Rather than discuss the seriousness of the allegations, Trump instead further inflamed relations with the intelligence community, describing the leaks as criminal and warned that the people behind the leaks are ""going to pay a big price."" He also stressed that he had no loans or business deals in Russia from his previous career as a real estate mogul. He has, however, refused to provide information about his taxes that could prove such a claim. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XZu2 Alarm and dismay over attacks on the intelligence community Trump's remarks represent a flipped stance on leaks from his campaign when he encouraged the damaging release of hacked campaign emails from his Democratic rival, Hilary Clinton. Last July, he told a news conference in Florida: ""Russia, if you're listening, I hope you're able to find the 30,000 emails that are missing."" In January, US intelligence revealed that the leaks were part of a wider campaign sanctioned by Russian President Vladimir Putin to tilt the election in Trump's favor. Senator Lindsey Graham, a Republican hawk who has blasted Trump over claims of voter fraud and called for in-depth investigations over Trump's alleged links to Russia, described the President's overtures towards Russia as--""a cloud over the White House."" Following Thursday's press conference,-House Democrat Mark Takano tweeted:-""That news conference was a 1 hour, 17 minute argument for why this Congress needs to start taking its oversight role much more seriously."" - Acosta lined up for Labor secretary Trump initially set up Thursday's press conference to announce his nominee for Labor secretary, Alexander Acosta, dean of the Florida International University law school and former US-attorney in Florida. If confirmed by the Senate, Acosta would be the first Hispanic pick in Trump's cabinet. Trump indicated that he has a successor for Flynn lined up. The favorite is believed to be ice Admiral Robert Harward, a former Navy SEAL, according to White House officials. Harward is expected to meet with officials later on Thursday. dm/sms (AP, Reuters, dpa, AFP)", -1162,2017/2/16,http://www.dw.com/en/anti-g20-protesters-descend-on-foreign-ministers-meeting-in-bonn/a-37590652?maca=en-rss-en-all-1573-rdf,Anti-G20 protesters descend on foreign ministers meeting in Bonn,"Peaceful protests have been held in Bonn, Germany, close to the venue of the G20 foreign ministers. Demonstrators called for ""international solidarity"" in the face of warfare and growing right-wing sentiments.","As G20 foreign ministers met behind closed doors at the World Conference Center on Thursday evening, a small group of protesters from various movements-and NGOs marched through nearby streets in the western German city of Bonn, chanting slogans such as ""Break the power of the banks and companies!"" and ""Let's hear it for international solidarity!"" Among them were members from-the Network of the German Peace Movement, German leftist party Die Linke, the German Communist Party (DKP) and the Bonn Kurdistan Solidarity Committee. ""We're here because we don't believe that the G20 represents us,"" Nils Jansen from the Bonn Youth Movement told DW. ""They represent big banks-and companies ""?war politics and militaristic politics. And we refuse to be silent any longer.""- A main concern among protesters was the ongoing conflict in the Middle East and the involvement of G20 states, particularly in the Syria conflict. Bonn Youth Movement member Nils Jansen was among those leading the march ""On-the one hand you have some G20 member supporting different parties and Islamist, so-called-rebels, who are in fact militants like al Qaeda and al Nusra. Then on the other, you have Russia, China and Iran, who-are supporting [President-Baschar] al Assad's regime,"" Jansen said. ""It's a war of different superpowers - Russia, USA, Germany and NATO - which has been brought upon the Syrian people. So we demand that the G20 get their-hands off of Syria."" 'Murderous' G20 policy In remembrance of the civilians killed as a result of the involvement of some G20 states-in Middle Eastern conflicts, some protesters fell to the ground to represent corpses during a minute's silence. ""Warfare over resources and raw materials is-the reason why more and more people are becoming refugees,"" one protester told DW, while others shouted that G20 policy was ""murderous."" Half-way through the march, demonstrators fell to the ground to represent deaths in the Middle East conflicts caused by G20 states' involvement Following the debut of US Secretary of State Rex Tillerson at the G20 meeting, protest-leaders over a sound system also warned against the recent increase in right-wing populism and the ""Donald Trumps of Europe.""- ""We have to stop-a second Trump victory in Germany, and stop the AfD from succeeding,"" one protester shouted from the designated vehicle.-Germans are set to head to the polls on September 24, which could see the right-wing-AfD (Alternative for Germany)-enter the Bundestag - Germany's lower house of parliament - for the first time. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XgMX 'Fortress Europe' Addressing closures of EU borders to refugees, another protester, Jaob, said it was-""really hypocritical if people complain about Trump building a wall, while here in Germany we are building 'Fortress Europe.'"" ""Thousands of refugees are being left to die in the Mediterranean,"" he said as fellow demonstrators chanted: ""Brick by brick, wall by wall. Make the fortress Europe fall!"" Protester Jaob told DW that he was ""fed up with the system"" Anti-Trump sentiment still strong Americans were also among the demonstrators at Thursday's protest, saying it was yet another chance to make their voices heard against the Trump presidency. A month into Trump's four-year term in the White House, Leigh Redemer, a 31-year-old teacher from Ohio said she has so far been ""completely disappointed, appalled by Trump and his administration."" ""I think it's a really wonderful opportunity to express my disappointment to global leaders or at least to make a public protest of one particular aspect of the Trump admin, which is its inappropriate links to Russia."" Ohio-born Leigh Redemer finds common ground with a fellow anti-Trump supporter Following his first-face-to-face with Russian counterpart Sergey Lavrov, Tillerson told reporters that the United States stands ready to cooperate with Russia when it is in American interests, echoing US President Donald Trump's ""America-First"" rhetoric. As the G20 ministers' meeting continues on Friday,-officials of leading industrialized and emerging economies are-expected to discuss sustainable development goals, support for Africa, and how best to identify and prevent future crises. The meeting in Bonn is a lead-up to the group's July summit of heads of state and government in Hamburg.", -1163,2017/2/16,http://www.dw.com/en/france-calls-us-position-on-israel-palestine-peace-confused-and-worrying/a-37591738?maca=en-rss-en-all-1573-rdf,France calls US position on Israel-Palestine peace 'confused and worrying',Top diplomats from around the globe took measure of new US Secretary of State Tillerson on his first major international trip. Paris said it was worried by a US step back for a two-state solution in the Middle East.,"A bilateral meeting between French Foreign Minister Jean-Marc Ayrault and US Secretary of State Rex Tillerson on the first day of the G20 meeting in Bonn provided little reassurance to France - or other nations - looking for an indication on the Trump administration's policy towards achieving peace between Israelis and Palestinians. The diplomats' meeting came just one day after US President Donald Trump said the United States was not absolutely committed to a two-state solution. - After Ayrault met with the recently confirmed US secretary of state, the French foreign minister alluded to an alternative Middle East peace solution offered by Tillerson, though he did not provide details on the discussion. ""I wanted to remind [Tillerson] after the meeting between Donald Trump and Netanyahu that in France's view there are no other options other than the perspective of a two-state solution and that the other option which Mr. Tillerson brought up was not realistic, fair or balanced,"" Ayrault said. ""The United States supports the two-state resolution"" US Ambassodor to the UN Haley said the US is commited to a two-state solution At the same time, another official-in the Trump administration continued to send mixed signals on US policy towards Israeli-Palestinian peace. The US ambassador to the UN, Nikki Haley, said Thursday that the United States ""absolutely"" supports a two-state solution and anyone who holds contradictory views are in ""error."" ""We are thinking out of the box as well, which is: What does it take to bring these two sides to the table? What do we need to have them agree on?"" Haley added, before strongly reaffirming US commitment to a two-state solution. ""Understand that the United States supports the two-state resolution. That's never been wavered."" The G20 marked Tillerson's first major international appearance Europe reacts to Tillerson The two-state confusion added another layer to Tillerson's highly anticipated G20 appearance, his first foray onto the global stage since being confirmed and a visit many hoped would provide more concrete direction on US foreign policy. In comparison to his concern about Mideast policies, Ayrault greeted Tillerson's measured response to Russia more warmly, saying he was glad to hear that the United States would hold Moscow to its commitments in the Minsk agreement - the ceasefire arrangement aimed at ending the violence in eastern Ukraine. ""I found that there was a bit more precision [on foreign policy] even if I found that on the Israeli-Palestinian dossier it was very confused and worrying,"" Ayrault told reporters. ""Between the campaign speech, the tweets and what I heard from Tillerson, it's the start of [foreign policy] clarification."" The French foreign minister will meet Tillerson in Washington next month to discuss combating the so-called ""Islamic State"" militant group. Germany refutes isolationism G20 host Gabriel called for worldwide justice German Foreign Minister Sigmar Gabriel, the G20 host and one of Trump's most outspoken critics, challenged the US president's ""America First"" policy in statements made to reporters at the G20. ""Security in the world can't be achieved without justice and a better life for everybody,"" he said. Gabriel and Tillerson are scheduled to talk face-to-face Thursday evening after a dinner discussion on current world crisis. Their meeting will not be the first - the pair met in Washington in early February where they discussed the transatlantic relationship. Lavrov and Tillerson held bilateral talks on the G20's first day Russia welcomes mutual interests Much uncertainty remains about the future relationship between Russia and the Untied States, but Russian Foreign Minister Sergei Lavrov reacted to his meeting with Tillerson on Friday by underlining Moscow and Washington's shared interests. ""We cannot solve all problems... but we have a mutual understanding that where our interests coincide, and there are many such spheres, we must move ahead,"" Lavrov said in television comments broadcasted in Russia. Britain: ""no doubt"" about American partnership British Foreign Secretary Boris Johnson expressed his approval of Tillerson's engagement with Moscow after meeting with his American counterpart in Bonn. Boris Johnson is pleased with the US policy on Russia ""We don't want to get into a new Cold War. That's something London and Washington are completely at one on. But nor do we want Russian behavior to continue as it is. Rex Tillerson has been very clear about that,"" Johnson remarked to the BBC. Johnson also expressed his certainty that Britain had ""absolutely no doubt"" that the United States will continue to work with its allies on global challenges. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xefp cmb/sms (Reuters, AP, AFP)", -1164,2017/2/16,http://www.dw.com/en/europa-league-bernardeschi-beauty-sinks-blunt-gladbach/a-37591717?maca=en-rss-en-all-1573-rdf,Europa League: Bernardeschi beauty sinks blunt Gladbach,An inch-perfect free kick from Federico Bernardeschi gave Borussia M?nchengladbach a lesson in clinical finishing and leaves the German side with an uphill task in the second leg of their last 32 tie with Fiorentina.,"Borussia M?nchengladbach 0""? Fiorentina (Bernardeschi 44') Dieter Hecking's rejuvenation of Borussia M?nchengladbach hit a significant hurdle on Thursday as they paid the price for failing to turn possession in to goals. The hosts had won their previous four games and-started confidently, almost taking-the lead in the 15th minute when Patrick Herrmann linked up beautifully with Thorgan Hazard before forcing Ciprian Tatarusanu in to a smart save. Herrmann, who had just returned from injury, was a constant menace to the Italian side early on and had legitimate claims for a penalty turned down just a couple of minutes later. Gladbach continued to enjoy territorial dominance but couldn't quite land a punch. They went close through Lars Stindl before Fabian Johnson struck the post from close range after great work by Hazard on the right. They were made to pay for their lack of ruthlessness in front of goal just before the break when Federico Bernardeschi curled in a stunning free kick. It was Fiorentina's only shot on target of the half, but they made it count. The second half followed a similar pattern, with the German side making much of the play but struggling to break down a stubborn Fiorentina team. After soaking up early pressure, the team eighth in Serie A should have doubled their lead through Borja Valero but the Spaniard was off-balance as he met a low cross and skewed his shot wide. Hecking's men continued to pour forward as the clock ticked down but created little of note. They now-face an uphill battle when they travel to the Stadio Artemio Franchi-on February 23.", -1165,2017/2/16,http://www.dw.com/en/turkish-imam-spy-affair-in-germany-extends-across-europe/a-37590672?maca=en-rss-en-all-1573-rdf,Turkish imam spy affair in Germany extends across Europe,A German investigation into Turkish religious officials collecting information on its enemies may be the tip of the iceberg. DW has obtained several documents revealing Turkish activities in Germany and European states.,"German police on Wednesday raided the homes of four imams alleged to have spied on the opposition for the Turkish government.-The police action is-part of an investigation into what documents obtained by DW show to be a broader Turkish effort to collect information across Europe on supporters of the religious movement Ankara blames for last July's failed coup attempt. The raids targeted the homes of four Turkish imams affiliated with the Turkish-Islamic Union for Religious Affairs (DITIB), Germany's largest Islamic umbrella group with over 900 mosques tied to the Turkish government's Directorate of Religion, or Diyanet. The Federal Prosecutors Office (GBA) said in a statement no arrests were made in the raids in the states of North Rhine-Westphalia (NRW) and Rhineland-Pfalz, which aimed to collect evidence into imams conducting alleged espionage against supporters of the US-based preacher Fethullah Gulen, who Ankara blames for last July's failed coup attempt. The prosecutor's office said the reason for the raids was related to a September order from Diyanet, a religious body tied to the Turkish prime ministry, for imams to pass information to diplomatic missions on Gulen supporters. The Cologne-based DITIB is under pressure to severe ties with Ankara. According to the documents obtained by DW, 13 imams and a ""deputy coordinator"" in the two states provided information to the Turkish religious attach�� at the consulate in Cologne on at least 14 Gulen affiliated institutions and 45 people with alleged ties to the Gulen movement. NRW's ministry of education has identified five people on the list as state-employed teachers. A NRW interior ministry spokesman-confirmed the documents from the Turkish consulate obtained by DW were the same as those in their possession. ""It cannot be ruled out that further reports were drawn up from Germany and the neighboring countries,"" he said. In addition to naming people, the consular memos speak generally of those who ""provide support or are sympathizers"" of the Gulen movement, report no activity or name former institutions in their region. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WnJw German authorities have contacted those named on the lists and advised them against travel to Turkey, where President Recep Tayyip Erdogan has engaged in a massive post-coup purge. Several of the imams have returned to Turkey, DW learned after making calls to some of the mosques, a factor likely to complicate the federal investigation. Most of the Gulen-affiliated institutions are engaged in after-school tutoring for the socio-economically disadvantaged, inter-religious dialogue, cultural activities and projects to better integrate Turks in Germany. In NRW alone, the movement runs 63 associations and five private schools that get partial state support. In the wake of the coup attempt, Turkey has called on all countries to clamp down on the Gulen movement, which it considers a terrorist organization.- The issue has raised tensions between Turkey and some of its NATO allies, including Germany.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xc9C On Thursday, Turkish Justice Minister Bekir Bozdag condemned the raids and accused Berlin of acting indirectly under the influence of the Gulen movement. He said the investigation into the alleged spying showed how easily Germany ""believes the allegations of terrorists."" Osman Esen, who heads the Gulen movement's operations in NRW, told DW that since the coup attempt monetary support for the group has dried up and attendance at its educational institutions has fallen. The drop in attendance has partially been made up by the refugee integration courses it offers. The trained lawyer spoke of a general climate of ""fear,"" as many Turkish families shy away from educating their children at Gulen-affiliated institutions out of concern for retribution against themselves or relatives in Turkey or Germany. DITIB last month admitted ""a few"" of its preachers ""wrongly"" acted as informants for the Turkish government, but has sought to distance itself from the spying allegations. The Islamic association says it did not order imams, who are paid and sent by Diyanet, to spy on Gulen followers. However, in a statement on Wednesday DITIB warned that ""the raids of private apartments of Muslim clerics have led to anger within the Muslim community."" DITIB says it only provides religious and cultural services and does not conduct political activities. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XWMU Green politician Volker Beck, who filed a criminal complaint in December, said DITIB's claims of innocence do not add up. ""Diyanet, religious attach��s at consulates and the local DITIB associations are an entity which normally executes the political orders of Ankara concerning religion. But at the same time this is an entity that is capable of-acting as a secret service,"" he told DW. He said people mentioned in the report have become victims of ongoing purges in Turkey, with some relatives of those informed upon being question in Turkey and people's bank accounts frozen. The Turkish state's collection of information on Gulen activities has likely occurred ""all over the world,"" Beck said. Green party politician Volker Beck has criticized the German government for acting slowly on the case. The documents obtained by DW reveal a larger effort by Diyanet in Germany and Europe to report on the Gulen movement back to Ankara. Among the reports are ones written by religious attach��s at Turkish diplomatic mission in Munich, The Hague, Netherlands, Salzburg and Vienna, Austria, and Bern, Switzerland. In all, the reports identify dozens of individuals, associations, businesses and schools with supposed affiliations to the global network of the Gulen, who denounced the coup attempt and denied any involvement. In other parts, the memos describe activities organized by the movement. One section from the Salzburg memo describes how a Gulen-affiliated group ""successfully infiltrated (the Turkish community) in the name of cultural integration"" by organizing swimming classes for women. Austrian authorities in 2015 awarded the organization an ""Integration Award"" for its efforts in the field. It is unclear how the religious attach��s gathered the information, or what exact role Turkish imams played. The documents from the two cities show Diyanet officials have worked with ATIB, a similar organization to DITIB in Austria, to monitor and counter the activities of the Gulen movement. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UA1Q Both reports from Austria say Turkish state religious officials have taken active measures against the Gulenist activities and its attempts at ""infiltration."" The Salzburg memo says ATIB and other religious officials-""destroyed all books, audio materials, video CDs, poetry, brochures, newspapers and propaganda material"" related to the Gulenists. In Austria, religious official have ""just like in the homeland assessed possible connections of the nefarious terror organization"" and informed the Turkish government, the document reads. Earlier this week, Austrian Greens Parliamentarian Peter Pilz announced he was in possession of religious attach�� reports from Salzburg and Vienna. Pilz said he had similar documents from 30 countries that revealed a ""global spying network"" at Turkish diplomatic missions. -", -1166,2017/2/16,http://www.dw.com/en/munich-security-conference-to-stress-the-value-of-europe/a-37591503?maca=en-rss-en-all-1573-rdf,Munich Security Conference to stress the value of Europe,"Trump, Brexit, EU and NATO crises ""?international politics are currently being turned on their head. All eyes are now on the Munich Security Conference, where US Vice President Mike Pence is expected to arrive on Friday.","More than 500 participants are expected to attend the 53rd Munich Security Conference (MSC), which officially begins on Friday (17.02.2017). The world has changed radically since the last meeting in the Hotel Bayrischer Hof just one year ago. From Brexit to ""fake news"" and the election of Donald Trump as US president, the cooperation between Europe and the United States is on tenuous ground. Potential trade wars loom on the horizon. US cooperation with NATO is being fundamentally questioned. Trump has declared the North Atlantic military alliance ""obsolete"" in its current form, rocking the very foundations of the community of Western values. And Trump's unclear policy with regard to Russia is fueling primordial fears in many European countries. As a result of this insecurity, the conference halls in Munich will be packed. Wolfgang Ischinger, a German diplomat with decades of experience and the main organizer of the three-day event, said in Berlin on Monday that he had never seen such a rush to register. ""There have never been as many question marks around foreign policy issues as there are today,"" he explained. Conference hopes to provide clarity on US policy Wolfgang Ischinger 47 foreign ministers, 30 defense ministers and 90 parliamentarians are due to attend. The presidents of Ukraine and Poland are already there, as is the new Secretary General of the UN, the EU's High Representative for Foreign Policy, and the NATO General Secretary. ""The only ones we didn't invite were the North Koreans,"" said Ischinger. ""We weren't bold enough for that."" All eyes are on the American government delegation, which includes Vice-President Mike Pence. Pence is making his foreign policy debut in Munich with a keenly anticipated keynote speech. Ischinger predicts that the queue outside Pence's conference room will be correspondingly long. In addition to Pence, the US Secretary of Defense, James Mattis, is supposed to attend. The US Congress will be represented by, among others, Senator John McCain. McCain, a Republican, is one of the fiercest critics of the first steps taken by the Trump administration. Wolfgang Ischinger anticipates that America will commit to NATO in principle, but that this is sure to be part of a harsh stance that will demand more financial and military commitment from the Europeans. 'Post-Truth, Post-West, Post-Order?' German Chancellor Angela Merkel (CDU) and a number of German ministers are, of course, also taking part. Merkel's speech is keenly anticipated as a counterweight to Trump's doctrine of ""America first."" All around the world Merkel is repeatedly cited as a steadfast politician who champions open and liberal democracy. But with the revival of nationalist movements all over Europe, this political model is being strongly questioned. Long-time attendee: US Senator John McCain As things stand, the right-wing populist party Alternative for Germany (AfD) will almost certainly enter the federal parliament after the German election in September. Populist parties in France and the Netherlands that want their countries to leave the EU are also predicted to do very well in national elections this spring. At the kick-off event in Berlin on Monday, the organizers also presented the Munich Security Report 2017, entitled ""Post-Truth, Post-West, Post-Order?"" The authors link the development of anti-globalization movements with data about growing inequality in Western societies, as well as with increasing skepticism about Muslim immigration and a general loss of confidence in democratic institutions. 'Nationalism is Europe's path to irrelevance' This is why Wolfgang Ischinger believes that one of the most important tasks for this conference is explaining the value and the resilience of European integration to the new US administration. If Trump's way of thinking were to prevail, Ischinger says, it would be ""a disaster for transatlantic relations."" Trump welcomed the Brexit decision and encouraged other EU states to follow Britain's example. According to this experienced diplomat, ""That would be, without weapons, a declaration of war."". German Bundestag President Norbert Lammert Norbert Lammert (CDU), President of the German Bundestag, has issued an urgent appeal to European citizens and politicians in Berlin to counter the growing strength of nationalist-populist movements with facts and tenacity. It was obvious, he said, that no European national state was in a position to overcome the challenges of globalization alone; it was therefore irresponsible for nationalist, isolationist sentiments to be gaining popularity all over Europe. Renationalization of the kind France's National Front leader Marine Le Pen or the Dutch anti-Islam activist Geert Wilders are calling for was, said Lammert, the path towards the ""unplanned but foreseeable irrelevance of Europe."" Wide range of topics In addition to defining the position of Europe and the transatlantic alliance, the conference also plans to address other topics. 140 side events offer the organizers a platform for debate about the countless crises and conflicts around the world. Syria, Yemen and Ukraine will be discussed; Russia's power politics and the growing threat of Islamist terrorism will be at the top of the agenda. That's a wide range of topics for a conference that began in 1963 as an informal meeting between German and American partners. In this sense, as Ischinger commented, the Munich Security Conference is now returning to its roots. With the election of Donald Trump, there is once again a great deal at stake when it comes to the transatlantic relationship. -", -1167,2017/2/16,http://www.dw.com/en/g20-world-leaders-in-search-of-lost-trust/a-37590637?maca=en-rss-en-all-1573-rdf,G20: World leaders in search of lost trust,A speed dating event. That's how the G20 meeting of leading and developing economies could best be described. And there was one man among the foreign ministers gathered in Bonn who was very much sought after.,"The likes of Rex Tillerson, Boris Johnson or Sergey Lavrov did not travel to Bonn, Germany, in order to find the perfect mate. And yet, their schedule came awfully close to looking like a speed dating event. Aides were rushing up and down stairs, and ushering delegates in and out of conference rooms at the World Conference Center in Germany's former capital. Everyone's favorite date was US Secretary of State and former ExxonMobil CEO Rex Tillerson. All eyes were on the Texas businessman turned politician. It seemed as if delegates from countries as different as South Africa and Saudi Arabia were all hoping that Tillerson would clarify what US foreign policy under President Trump will look like. A business-like meeting with Lavrov Among the many meetings Tillerson had behind closed doors, one stood out in particular: the encounter he had with his Russian counterpart Sergey Lavrov. Remarks by Lavrov suggested that the two men had seen each other before, but it was certainly the first time they shook hands since Tillerson took office. ""The United States will consider working with Russia where we can find areas of practical cooperation that will benefit the American people,"" Tillerson told journalists after the meeting, which had addressed conflicts in Syria, Ukraine and Afghanistan - not exactly the kind of clarification many had hoped for after weeks of uncertainty over how close the White House and Kremlin will be working together. They did indeed shake hands: Sergei Lavrov (left) and Rex Tillerson While trying to establish a good working relationship with Lavrov, Tillerson at the same time had to soothe his European counterparts. They fear that the Trump administration is getting too close to Moscow, moving away from Western partners and alliances that have existed for the last seven decades. Tillerson did his best to relieve these doubts, declaring that ""the United States remains steadfast in its defense commitments to its allies."" Yet, ""difficult"" was a word that could be heard in the hallways of the Conference Center to describe US foreign policy. French Foreign Minister Jean-Marc Ayrault bluntly called the the US position on the Middle East peace process ""confused and worrying"" after meeting Tillerson. 'Trust is crucial' ""We see worrying tendencies towards protectionism, towards nationalism in the world today,"" Dr. Clara Brandi of the German Development Institute (DIE) told DW. ""In that context, it is especially crucial to strengthen the basis for trust among world leaders."" She hoped that the G20 meeting would contribute to that, but was skeptical that Sigmar Gabriel, the newly appointed German foreign minister had succeeded in shifting the focus to other issues such as African development and climate change. German Foreign Minister Sigmar Gabriel is hosting the G20 meeting Gabriel stressed that the German G20 presidency did indeed view these as key issues for the group. ""Climate protection and development policies can contribute more to security around the world than big defense budgets,"" Gabriel said at a press conference. In July, the G20 heads of state and government are slated to meet in Hamburg, Germany. 'Planet Earth First' A few dozen protesters made their voices heard outside the conference center, calling the G20""s policies ""murderous."" One protester told DW that he thought the whole G20 format was ""just wrong."" ""The G20 are not representatives of the world. These issues should not be discussed by these governments."" Environmental activists also tried to get ashore at the Conference Center Greenpeace activists, traditionally seaworthy, set sail on the Rhine River and anchored just opposite the G20 venue. Their message, aimed directly at the US government's climate policy: ""Not America first - Planet Earth First.""", -1168,2017/2/16,http://www.dw.com/en/what-to-watch-out-for-on-matchday-21/a-37588103?maca=en-rss-en-all-1573-rdf,What to watch out for on Matchday 21,"Borussia Dortmund prepare to face Wolfsburg without their Yellow Wall, while rumours continue to surround the future of Leverkusen manager Roger Schmidt. Here's what to watch out for on Matchday 21","Borussia Dortmund in the eye of the storm ""It's always calmest in the eye of the storm,"" said Thomas Tuchel, ahead of Tuesday night's 1-0 defeat to Benfica in the Champions League. And the storm clouds continue to gather over Dortmund. On the pitch, Dortmund are looking to bounce back from two consecutive defeats - although the reverses in Darmstadt and Lisbon featured two completely different performance's from Tuchel's team. In the Bundesliga last week, a rotated starting XI featuring Emre Mor, Christian Pulisic and debutant Dzenis Burnic crashed to a deserved 2-1 defeat. In Lisbon on Tuesday, Tuchel had a point when he said his team were unlucky after dominating much of the game and restricting the hosts to a single shot on goal. But while Pierre-Emerick Aubameyang was guilty of extreme profligacy in front of goal, Benfica took their chance. The storm clouds are gathering off the pitch too as Dortmund prepare to face Wolfsburg in front of an empty S��dtrib��ne, having accepted the DFB's punishment for the actions of some fans in the last home game against RB Leipzig. DW will be on hand to see how they cope against a Wolves side who put in an impressive second half performance to beat Hoffenheim last week. ""If there's ever a good time to play Dortmund it's probably now,"" said coach Valerien Ismael, ahead of a fixture which also sees former Dortmund hero Jakub Blaszczykowski return to the Westfalenstadion. - ---- Are RB Leipzig still in the title race? RB Leipzig want to recover from two straight defeats RB Leipzig may be benefitting from some goodwill following the abuse suffered by their fans in Dortmund two weeks ago, but they come into this game on the back of two straight defeats for the first time this season. Last week's 3-0 home defeat against Hamburg left them seven points behind leaders Bayern Munich, with some suggesting that the title race could already be over. Emil Forsberg and Timo Werner returned to action last week but were stifled by Hamburg's deep defensive line and will be hoping for more success in the Rhineland. David Upamencano could be a doubt after Ralph Hasenh��ttl dragged the struggling teenage center back out of the firing line last week. The protests against the controversial Red Bull-backed club are set to continue despite the incidents in Dortmund, although Borussia M?nchengladbach fan groups have announced that any demonstrations will be peaceful, legal and creative. The Foals were one of only five teams to take points off Leipzig in the first half of the season, playing out a 1-1 draw in the Red Bull Arena in September. They are unbeaten under Dieter Hecking including four wins on the bounce in all competitions. The experienced new coach has restored confidence and stability to Gladbach and has reverted to his favored four-man defense, the success of which is borne out by three straight clean sheets. But with Fiorentina at Borussia Park on Thursday night, could Leipzig take advantage of a Europa League hangover? Schmidt for Schmidt at Leverkusen? Rudi V?ller backed Roger Schmidt after last weekend's rumors Bayer Leverkusen's last league game was preceded bychatter that a decision had already been taken to dismiss Roger Schmidt, regardless of how his team fared against Eintracht Frankfurt. Furious sporting director Rudi V?ller was quick to deny the rumors as Leverkusen went on to a comfortable 3-0 victory. The quality which Roger Schmidt has at his disposal is undeniable but the individual parts have too rarely functioned together as a whole, which accounts for the side's disappointing 9th position in the table. Last Saturday, Julian Brandt, Kevin Kampl, Karim Bellarabi and Javier Hernandez combined brilliantly for Leverkusen's second goal - exactly the sort of football that they need to produce more often if they are to make up a seven point gap and qualify for the Champions League, starting on Friday night in Augsburg. Augsburg have already scored as many goals in their first four games of 2017 as they did in their previous seven and recorded a dramatic late win over Werder Bremen in their last home game. One thing's for certain, if there is a-first goal here it will be the 50,000th in the Bundesliga! Bundesliga Matchday 21 Friday Augsburg vs. Bayer Leverkusen (20:30 CET) Saturday Borussia Dortmund vs. VfL Wolfsburg (15:30 CET) Hertha BSC vs. Bayern Munich Mainz vs. Werder Bremen TSG Hoffenheim vs. SV-Darmstadt 98 Eintracht Frankfurt vs. Ingolstadt Hamburg vs SC Freiburg (18:30 CET) Sunday Borussia M?nchengladbach vs. RB Leipzig (15:30 CET) 1.FC K?ln vs Schalke 04 (17:30 CET) - -", -1169,2017/2/16,http://www.aljazeera.com/news/2017/02/russia-targets-rebel-held-areas-syria-deraa-170216185755749.html,Russia targets rebel-held areas of Syria's Deraa,Heavy Russian attacks reported after rebels try to obstruct Syrian government bid to retake strategic border crossing. Talks in Astana,"Russia's military has carried out waves of air strikes in recent days on rebel-held areas of the southern Syrian city of Deraa, say anti-government fighters-and witnesses. Russian jets targeted rebel-held areas of Deraa for two days after Syrian opposition groups on Sunday stormed the heavily garrisoned Manshiya district in a campaign that sought to obstruct any army attempts to capture a strategic border crossing with Jordan from the opposition. A rebel source said there were at least 30 Russian sorties on Tuesday, thwarting further rebel gains in the heavily defended enclave that had allowed them so far to secure significant parts of the Manshiya. ""When the regime began to lose control of some areas ... the Russian jets began their operations,"" said Ibrahim Abdullah, a senior rebel commander. Al Jazeera could not independently confirm the reported Russian assault. OPINION: Russia's knockout game in Syria The army's control of the rebel-held crossing and chunks of territory in the southern strip of Deraa would sever the rebel link between the eastern and west parts of the province. The Syrian army said the ""terrorists"" had failed to make gains and its troops had inflicted many casualties. The opposition fighters are drawn from both moderate Free Syrian Army (FSA) groups and members of a newly formed alliance - Tahrir al-Sham. The fighting also spread across other parts of Deraa as rebels fired mortars on government controlled parts of the province. Ground-to-ground missiles were also deployed from army barracks to hit rebel-held quarters of Deraa, residents said. The battles inside the city are the most intense since an alliance of mainstream rebels, known as The Southern Front, who are backed by Western and Arab foes of President Bashar al-Assad launched an unsuccessful large scale military campaign to capture the whole city in 2015. The Syrian army has so far failed to recapture the border crossing, a once thriving passenger and commercial gateway with Jordan, despite repeated efforts. OPINION: Russia overplays its hand in Syria At least half of the southern province is in the hands of FSA fighters but groups affiliated with the Islamic State of Iraq and the Levant group (ISIL) have a foothold in an area to the west of Deraa in the Wadi Yarmouk area, near the Golan Heights. Aid workers said fighter jets hit a Western-funded field hospital in Deraa and raids killed at least seven members of one family in the border area, where many residents fled in the early days of the Syrian conflict. The Washington-based International Rescue Committee, which supports the hospital that was targeted, said in a statement that four health workers were injured in the attack. The fighting in Deraa comes against a backdrop of renewed diplomatic activity. Russia, Turkey and Iran are hosting the second round of talks in Kazakhstan's capital, Astana, on extending the Syrian ceasefire. Syria's opposition delegation said it received a commitment from the Russians that they would immediately halt their air strikes on areas held by the opposition. The head of the Syrian government delegation blamed rebel negotiators for a lack of overall progress after they arrived late to the talks. Haid Haid, an associate fellow with the Middle East and North Africa Programme at the London-based Chatham House, says the prospects of the talks achieving any real solution to the Syrian conflict are lacking due to virtually ""no common ground between Turkey, Russia and Iran"". Speaking to Al Jazeera, he said: ""In order to implement the ceasefire, they have to punish those who violate ceasefires. ""And Russia and Iran do not want to put any pressure on the Syrian regime ... There are no enforcement mechanisms that could be a stepping stone to a political solution."" Source:-Al Jazeera and news agencies", -1170,2017/2/16,http://www.aljazeera.com/indepth/interactive/2017/02/cyprus-island-divided-170216144739237.html,Cyprus: An island divided,"For more than 40 years, Cyprus has been a divided island amid fruitless reunification talks.",, -1171,2017/2/16,http://www.aljazeera.com/news/2017/02/arab-league-reiterate-support-palestinian-state-170216132849916.html,"UN, Arab League reiterate support for Palestinian state",Joint statement by UN and Arab League heads comes after Trump drops US commitment to two-state solution to conflict.,"The UN and the Arab League have issued a joint statement in support of the establishment of a Palestinian state, after US President Donald Trump dropped his country's commitment to a two-state solution to the Israeli-Palestinian conflict. On Trump's comments about a two-state solution: The problem is Netanyahu doesn't agree to two states and does not agree to one state. This whole one state thing means that Jews, Christians and Muslims, Palestinians and Israelis will live in one democratic state. Netanyahu and his coalition do not agree to one state and they reject the two-state solution. The Palestinians agree to one state and they are happy with two states; what they disagree to is an apartheid system, where there are two systems in one land: one superior for Israelis and one inferior for the Palestinians. On Trump's comments about settlements: I think this statement by Trump is absolutely meaningless at this point in time, because the Israelis have already made their plans for 6,000 units that they need today in the West Bank. If Trump was serious, he would have said you need to put a hold on those settlements you just declared while I was busy putting together my administration.- The statement on Thursday came a day after Trump and the visiting Israeli prime minister, Benjamin Netanyahu, refused to endorse the two-state solution as the preferred outcome of peace talks, abandoning what has been the cornerstone of US-led peace efforts for two decades. After a meeting in Cairo, Antonio Guterres,- UN secretary-general, -and Ahmed Aboul-Gheit, the- Arab League's secretary-general,- said they agreed that the two-state solution is ""the only way to achieve comprehensive and just settlement to the Palestinian cause"". The statement put them at odds with Trump, who said at a White House meeting with Netanyahu that Middle East peace does not necessarily have to include the establishment of a Palestinian state. Palestinian leaders and the international community have long favoured the establishment of an independent Palestinian state as the preferred way to peace in the region. Separately, Aboul-Gheit issued a warning on Thursday against the potential moving of the US embassy from Tel Aviv to Jerusalem after Trump said his administration was considering it seriously. He said the move would have explosive consequences in the Middle East, Egypt's state news MENA reported, after Trump said he would ""love"" to see the US embassy relocated to Jerusalem. ""I'd love to see that happen, we're looking at that very, very strongly, we're looking at that with great care, and we'll see what happens,"" Trump said. READ MORE: US embassy relocation to Jerusalem 'a war crime' Relocating the embassy to Jerusalem, which would violate international law, would be seen as a provocative move by critics as the city is claimed by both the Israelis and Palestinians as their capital. Hamas, the Palestinian group which governs the Gaza Strip, has reacted to Trump's latest statements, saying the US has a pro-Israel bias and never made enough effort to improve Palestinian rights. Hazem Qassem, a- Hamas spokesperson,-said on his Facebook page: ""US administrations never worked hard enough and seriously to give the Palestinian people its rights"". He said the US administration provided a cover for Israeli aggression carried out against the Palestinian people, including the theft of land. ""Washington's weak retraction of its original stance is reflective of the US-administration's bias towards the Israeli occupation, especially with the arrival of new US President Donald Trump,"" Qassem said. OPINION: Israel: An inspiration for Trump He also called on the Palestinian Authority to abandon what he called ""the illusion of a solution through negotiations, and the idea that the US should act as a mediator in negotiations"". Saeb Erekat, the PLO's secretary-general, said: ""Those who believe that they can undermine the two-state solution and replace it with what I call 'one state, two systems', maintaining the status quo now, apartheid, I don't think that in the 21st century they will get away with it."" Osama Hamdan, Hamas' foreign-policy chief, said the group will not be not be affected by the new US policy and will continue with all forms of resistance to Israeli occupation until statehood is achieved. Asked if resistance means just engaging military confrontations with Israel, Hamdan said: ""That's only a part of it, if we were attacked first. ""Resistance for us could be peaceful one such as boycotting Israeli consumer products, challenging Israel legally and defending ourselves military should Israel attacks us."" Additional reporting by Farah Najjar: @NajjarF91 Source:-Al Jazeera and news agencies", -1172,2017/2/16,http://www.aljazeera.com/news/2017/02/blast-hits-pakistan-lal-shahbaz-qalandar-sufi-shrine-170216144747128.html,Blast hits Pakistan's Lal Shahbaz Qalandar Sufi shrine,"At least 75 dead, including children and women, as ISIL claims attack at Lal Shahbaz Qalandar shrine in Sindh province.","A suicide bomber killed scores of Sufi worshippers and wounded hundreds as they were performing a ritual in Pakistan's-Lal Shahbaz Qalandar Sufi shrine in Sindh province. The Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group claimed responsibility via its Amaq website for Thursday's blast in Sehwan, the deadliest attack in Pakistan in more than two years. Khadim Hussain, deputy inspector-general of Hyderabad police,-told Al Jazeera that at least 75 people were killed in the blast, and more than 200 were injured. At least 43 men, nine women and 20 children were among the victims. Al Jazeera's Kamal Hyder, reporting from Islamabad, said: ""We are told that the death toll is likely to climb much higher. Hundreds are wounded and have been moved to local hospitals where the facilities aren't in the best shape."" Sikandar Mandhro,-Sindh's health minister, told Al Jazeera:-""There was a huge crowd gathered there for the [religious gathering] at the shrine, and there was a very big explosion. ""The medical facilities at Sehwan are not equipped to deal with a very big emergency, so our first priority right now is to get help to the wounded."" The closest hospital to the shrine is around 70km away. Witness Nazakat Ali was praying when the bomb exploded. ""The explosion happened, and everyone started running,"" he told Al Jazeera, speaking from a hospital in Sehwan. ""We were pushed out, there were so many people. I saw blood. I saw people injured and dead bodies."" Haider Ali, manager of a nearby hotel, told Al Jazeera that police have sealed off the shrine. ""Our security staff heard it,"" he said.-""There are a lot of police and ambulances around now. It's complete chaos."" Thousands gather at the shrine every Thursday to pray and participate in the Sufi tradition of ""dhamaal"", a form of devotional percussion and dance. The shrine, built in 1356, is by the tomb of Syed Muhammad Usman Marwandi, the Sufi philosopher poet-better known as Lal Shahbaz Qalandar, one of Pakistan's most venerated saints. Each year, hundreds of thousands gather to celebrate ""Urs"", his death anniversary. Faisal Edhi, who heads the Edhi Foundation, told Al Jazeera that the place of worship was difficult to access because it is surrounded by narrow streets. ""Ambulances have all been sent in from Hyderabad, Jamshoro, Dadu, Sukkur and Morho ... about 20 ambulances are headed in to help transfer patients to hospitals,"" he said as he was on his way to Sehwan. The Edhi Foundation operates ambulance services, orphanages, women's shelters, dispensaries and morgues in several Pakistani cities. A police source in Sindh told Al Jazeera: ""Police were present, but there were hundreds of people. There is obviously some lapse in security."" In November, at least 52 people were killed in a suicide attack on a shrine to Sufi saint Shah Noorani in Balochistan province, in an attack claimed by the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group. Thursday's blast is the latest in a series of attacks across Pakistan since Monday, when 13 people were killed in a suicide bombing at a rally in the eastern city of Lahore. That attack was followed on Wednesday by a suicide bombing at a government office in the Mohmand tribal area and a suicide attack on government employees in Peshawar, killing six people. Two police officers were-killed-on Tuesday-while trying to defuse a bomb in the Balochistan provincial capital of Quetta. Asif Ghafoor, spokesman for Pakistan's army, blamed recent attacks on ""hostile powers"".- Writing on Twitter, he said that recent ""terrorist"" attacks were executed on direction from hostile powers and from sanctuaries in Afghanistan. ""We shall defend and respond,"" he said, later adding that the Pakistan-Afghanistan border was closed until further notice ""due to security reasons"". Hamid Karzai, Afghanistan's former president, took to Twitter to condemn the attack, calling the victims ""innocent brotherly people of Pakistan"". Thursday's attack was the deadliest in Pakistan since December 2014, when fighters assaulted a school in Peshawar, killing 154 people, mostly schoolchildren. Additional reporting by Alia Chughtai and Asad Hashim Source:-Al Jazeera News", -1173,2017/2/16,http://www.aljazeera.com/news/2017/02/deadly-car-bombing-rocks-iraq-baghdad-170216140444542.html,Deadly car bombing rocks Iraq's Baghdad,Attack in area full of car dealerships and garages is the latest in renewed wave of blasts to strike the Iraqi capital. 'Terrorist car bomb',"A car packed with explosives has blown up in the south of Baghdad, killing at least 55 people and wounding dozens more. The Islamic State of Iraq and the Levant (ISIL) group claimed responsibility for Thursday's attack, which came amid a renewed wave of violence in the Iraqi capital. Baghdad was rocked by a wave of deadly suicide bombings during the first days of 2017, but relatively few explosions had been reported since. Security sources said the vehicle that blew up was parked in a crowded street full of garages and used car dealers, in Bayaa neighbourhood in the southwest of the city. Iraqi officials said the bomb targeted car dealerships in the mostly Shia neighbourhood. The site of the bombing was an open space used as a second-hand car market where hundreds of private sellers park their vehicles and wait all day to discuss prices with prospective buyers. The Amaq propaganda agency linked to ISIL, which has claimed nearly all such attacks recently, reported the blast and described it as targeting ""a gathering of Shias"". ""A terrorist car bomb attack struck near car dealerships in Bayaa,"" a spokesperson for the Baghdad Operations Command said in a statement. An interior ministry official gave a death toll of 52 and said that more than 50 other people were also wounded. Hospital officials confirmed the figures. Security officials could be seen inspecting the site before the sun set, while some distressed civilians searched for relatives and others took pictures with their mobile phones of the large crater caused by the blast. SPECIAL SERIES: Iraq - A deadly deception Another four attacks in and around Baghdad on Thursday killed eight people and wounded about 30, police and medical officials said. ""We condemn in the strongest possible terms the horrible terrorist attacks carried out by ISIS targeting a car dealership in Baghdad,"" the US state separtment said. Jan Kubis, the UN's top envoy in Iraq, said: ""Yet again, the terrorists are continuing with their carnage against innocent civilians. This is totally unacceptable."" The latest bombings were also condemned by France, one of the main partners of the US in a coalition assisting Iraq in its battle against ISIL, whose-fighters also control parts of neighbouring Syria. ISIL is currently defending the west bank of the northern city of Mosul, its last major urban stronghold in Iraq, against a huge offensive by the security forces. Four months into the broad military operation, Iraq's largest in years, elite forces have retaken the eastern side of the city and are preparing for an assault on the part of Mosul that lies west of the Tigris River. ISIL fighters have carried out diversionary attacks, such as raids in other towns and cities as well as bombings in Baghdad and elsewhere, in an apparent bid to stretch federal security forces and capture headlines. On Wednesday, a suicide bomber detonated a pick-up truck in Baghdad's Sadr City suburb, killing at least 15 and wounding 50 more. And on Tuesday, a car-bomb explosion in southern Baghdad killed at least four people. Source:-Al Jazeera and news agencies", -1174,2017/2/16,http://www.aljazeera.com/news/2017/02/saudi-arabia-isil-cells-broken-170216165421865.html,Saudi Arabia says four ISIL cells broken up,At least 18 arrested for providing shelter and funds to ISIL fighters and for recruitment in different parts of kingdom.,"Saudi Arabia has broken up four ISIL-linked cells suspected of providing shelter and funds to wanted fighters, and recruiting fighters, according to local news media reports citing the interior ministry. Automatic weapons were seized from the four cells, which comprised 15 Saudis, two Yemenis and a Sudanese man, the Saudi Press Agency quoted the ministry as saying on Thursday. Security forces also seized more than $500,000 in cash, the reports said. The crackdown, which began on Saturday, targeted ISIL cells that had been operating in the regions of Mecca, Medina, Qassim and the capital Riyadh, according to-Manour al-Turki, the Saudi interior miinistry spokesperson. Among those helped to hide by the cells was Taye al-Say'ari, one of two suspected fighters killed in a security operation in Riyadh last month. READ MORE: Saudi forces kill suspected ISIL fighters near Mecca ""Cell members were [also] active in ... choosing and conducting surveillance of targets and passing information to the organisation abroad, promoting the deviant group and recruiting members for the organisation and inciting them to fight in areas of struggle,"" the statement said. Local Saudi affiliates of ISIL, or the Islamic State of Iraq and the Levant group, which is based in Iraq and Syria, have carried out several deadly shootings and bombings in the kingdom. Many have targeted security personnel and Shia mosques. Saudi Arabia says it has arrested hundreds of ISIL members. ISIL is bitterly hostile to the Arab Gulf Arab governments, which suspect it of trying to stoke Sunni-Shia sectarian confrontation to destabilise and ultimately topple their governments. Source:-News agencies", -1175,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/palestine-hamas-elects-leader-uncertain-time-170216095605085.html,Palestine: Hamas elects new leader in uncertain time Ali Younes,Yahya Sinwar expected to act as bridge between Palestinian group's political leadership and its powerful armed wing. By Different backgrounds Numerous challenges All forms of resistance-,"Hamas members in the Gaza Strip have elected Yahya Sinwar to head its Gaza political bureau to succeed outgoing leader Ismail Haniya. Sinwar will take over from Haniya, who served out his two-term limit some time in April. Sinwar was jailed by Israel in 1988 and spent the next 23 years in prison, where he was a key leader of Hamas members in the Israeli prison system. Palestinian sources in Gaza close to Hamas described Sinwar's rise to power as a bridge between Hamas' political leadership and its powerful armed wing, Izzedine al-Qassam. ""Sinwar's ascension to the leadership position was not something dramatic or unexpected. His election shows that Hamas has democratic institutions and a pool of leaders who can step up to leadership positions when they are called upon,"" said Lebanon-based senior Hamas leader Osama Hamdan, who runs the group's foreign-relations portfolio. The Palestinian sources, who declined to be identified for this story, said Sinwar could be instrumental in smoothing Gaza's relations with Egypt and could ultimately play an important role in trying to avoid another costly military confrontation with Israel given his ""security background"". Avi Issacharoff, an-Israeli journalist,-draws a distinction between Sinwar and regular Hamas politicians such as his predecessor Haniya or Khalil al-Haniya, who was also elected last week as Sinwar's deputy. Issacharoff says Sinwar is cut from a different cloth in the sense that he does not come from a purely political background. Rather he hunted down and killed ""Palestinian collaborators"". But Issacharoff believes Sinwar is not an ""adventurer"", meaning that despite his background, he would not be reckless enough to drag the Palestinians in Gaza into an unwanted military confrontation with Israel. Issacharoff said Israeli prison officials told him that Sinwar was treated for a serious head surgery around 2006 that saved his live. ""While in prison, Sinwar was also known for making the best Arabic sweets known as kunafa,"" Issacharoff said Although Hamas is a ""movement"", structurally it operates like a system of ""federations"" that includes Gaza, West Bank, Hamas prisoners in Israeli jails, and Hamas members abroad or in exile. Each federation elects its own consultative council and local leader. These elections will set the stage to elect Hamas's overall general congress, or the General Consultative Council, which in turn will elect its political bureau and its head, to replace the current leader Khaled Mashaal, which will take place some time this April. Hamas' new crop of leaders will face numerous thorny challenges that will determine whether: there will be yet another war in Gaza; reconciliation with its Palestinian rival Fatah; and rapprochement with Egypt, which treats Hamas-ruled Gaza as more a foe than an impoverished neighbour or an Arab brother. Currently, Egypt, which supports Hamas' rival Fatah, has a frosty, if not antagonistic, relationship with Hamas because of its control of Gaza. Sinwar's ascension to power in Gaza will not bring any dramatic change to any of Hamas' positions on any of the issues it is currently dealing with. This is especially true regarding the reconciliation talks with its rival Fatah or its regional policies towards Israel or the Arab states, according to several senior Hamas officials who spoke to Al Jazeera on the condition of anonymity. These officials say that Hamas operates on consensus and voting in its decision-making process, which prevent its leaders from ending up behaving without restraint or assuming dictatorial powers. But a new challenge arose during a meeting in Washington DC on Wednesday between Benjamin Netanyahu, the Israeli prime minister, and Donald Trump, when he dropped the long-held US policy of supporting a two-state solution. Unlike Fatah and the Palestinian Authority headed by President Mahmoud Abbas, who staked their very existence on the Israeli and American acceptance of the two-state solution, Hamas officials see no existential threat to their -political standing. ""Hamas is relatively unfazed by the era of new politics heralded by the Trump administration. They have no expectations that the road ahead will be anything other than as difficult as it has been or that it may even get worse again,"" Beverley Milton-Edwards, a visiting fellow at Brookings Doha Centre, told Al Jazeera. Hamdan, the Hamas foreign-policy chief, said the group would not be affected by the new US policy and would persist with all forms of resistance to Israeli occupation until statehood was achieved. Asked if resistance means just engaging in military confrontations with Israel, Hamdan said: ""That's only a part of it, and only if we are attacked first. ""Resistance for us could be peaceful one such as boycotting Israeli consumer products, challenging Israel legally and defending ourselves militarily should Israel attacks us."" On whether Hamas is willing to engage in peace talks with the Israeli government to reach a peace deal, the officials said: ""Talking peace with the Israeli, under the current conditions, is futile."" They say Hamas has learned from the experience of the Palestine Liberation Organisation and the Palestinian Authority, both of which have little to show after 24 years of negotiations with the Israelis. Follow Ali Younes on Twitter @ali_reports- Source:-Al Jazeera", -1176,2017/2/16,http://www.aljazeera.com/news/2017/02/nato-european-allies-steps-meet-demand-170216140412354.html,NATO's European allies take steps to meet US demand,EU defence ministers agree to buy planes and submarines jointly and to open a new command centre for elite troops. The Russian factor,"European members of NATO have agreed to buy planes and submarines jointly and possibly open a new command headquarters for elite troops after the US threatened to curtail-its support unless Europe-increased military spending by the end of the year. At Thursday's signing ceremonies in Belgium's Brussels, defence ministers from France and Germany said they will buy Lockheed Martin C-130J transport planes, while Germany, Belgium and Norway will join a Netherlands-led fleet of Airbus A330 tanker planes. A new command centre is also in the plans for Dutch, Belgian and Danish special forces that could be used by other NATO nations and which many countries outside the main European military powers of Britain, France and Germany do not have. The location of the new headquarters has not been decided, a NATO official said. Other plans include Norway and Germany buying a new class of submarines, known as U212As, that more effectively detect, track and fire at enemy submarines and ships on the water. Germany also agreed on joint training and deployments of land forces with the Czech Republic and Romania, with both countries set to provide a brigade of several thousand troops for a larger division under German leadership. ""This multinational cooperation through NATO is a clear way for countries to significantly improve their armed forces while ensuring the greatest value for money for their taxpayers,"" said Rose Gottemoeller, NATO's deputy secretary-general. Jim Mattis, the new US defence secretary, warned NATO allies on Wednesday that they must pay more towards their own defences or potentially see less support from the US. Jens Stoltenberg,-NATO secretary-general,-said allies faced a ""more demanding and challenging security environment"" that the alliance needed to respond to. ""This is a way to make what we do more efficient, and increase output,"" he said of the agreements signed. READ MORE: NATO's endgame in the Baltics The letters of intent, although not legally binding, are the latest sign that European allies are starting to end years of competing national strategies that have left Europe reliant on the US to provide basics such as refuelling combat planes in the air. Duplication is also a problem, with EU militaries owning 19 types of armoured infantry fighting vehicles, compared with one in the US, while wasted funds amount to about $26bn a year, according to European Commission data. As part of a broader push to revitalise European defence cooperation in the wake of Russia's 2014 annexation of Crimea and the rise of ISIL-linked violence on Europe's borders, France agreed to allow Belgian and Dutch jets to fly into its airspace in the case of a conflict with a foreign threat. That means a Belgian jet pursuing an enemy plane would no longer have to turn back at the French border. Al Jazeera's Neave Barker, reporting from Brussels, said the gathering was a chance for NATO members to find out how committed the US is to the bloc going forward. ""It was also a chance to find out a little bit more about the new closeness between the Kremlin and Washington,"" he said. For his part, Mattis said on Thursday that Russia would remain at arms length in terms of military cooperation. ""We are not in a position right now to collaborate on a military level, but our political leaders will engage and try to find a common ground,"" he said. Source:-Al Jazeera and news agencies", -1177,2017/2/16,http://www.aljazeera.com/news/2017/02/cities-hold-day-immigrants-protests-170216074331427.html,US cities to hold 'Day Without Immigrants' protests,"Organisers in Philadelphia, Washington, Boston, Chicago and New York tell immigrants to miss class and work.","Many immigrants across the United States are expected to stay at home from school and work for a day to show how critical they are to the country's economy and way of life. Organisers in cities across the US are telling immigrants to miss class, work and not to shop on Thursday. ""A Day Without Immigrants"" actions are planned in cities including Philadelphia, Washington, Boston, Houston, Chicago and New York. The protest, that gained momentum on social media and by word of mouth, comes in response to US President Donald Trump, whose administration has pledged to increase the deportation of immigrants living in the country illegally. Trump campaigned on a promise to-build a wall along the US-Mexico border, and blamed high unemployment on immigration. As president, he has tried to introduce a temporary-ban on people from seven Muslim-majority countries entering the US. A Day without Immigrants #Feb16 pic.twitter.com/5kIFVEDJbS Employers and institutions in some cities were already expressing solidarity on Wednesday with immigrant workers. Organisers in Philadelphia said they expected hundreds of workers and their families to participate. ""Our goal is to highlight the need for Philadelphia to expand policies that stop criminalising communities of colour,"" said Erika Almiron, executive director of Juntos, a nonprofit group that works with the Latino immigrant community. ""What would happen if massive raids did happen? What would the city look like?""- Philadelphia Mayor Jim Kenney is among leaders in several cities who have vowed to maintain their ""sanctuary city"" status and declined to help federal law enforcement with deportation efforts. Some of Washington DC's restaurants are also closing for the day in solidarity with the protesters. ""For one single day on a weekday, we must come together and unite in absolute resistance in order to reject the system dictating the launch from dehumanisation and blatant oppression of those that are not straight, white, natural-born citizens,"" reads the social media call to action. The shutdown aims to show the world ""how crucial we are to the basic fundamentals of the United States' economy"", the Facebook post said. Restaurants in New York and Philadelphia have also said they will participate in the one-day protests. The call to boycott comes after last week's series of immigration raids that rounded up almost 680 people - three-quarters of them with a criminal record - for expulsion. At least 11 million people live in the US without the required documentation. Undocumented immigrants make up about 9 percent of employees in the hotel and restaurant industry in 2014, according to the Pew Research Centre. Source:-News agencies", -1178,2017/2/16,http://www.aljazeera.com/blogs/africa/2017/02/senegal-cancer-patients-struggle-treatment-170216063151197.html,,,"Senegal's solitary radiotherapy machine broke down on December 28 last year, leaving the country's only radiation therapist and small team of technicians idly waiting as patients were turned away or offered alternative treatments. The machine uses radioactive cobalt-60 to produce gamma rays that halt tumors in organs near the skin. Installed-in 1989, it is from a generation of devices that are completely phased out in most developed countries. The machine has broken down many times before. Doctors who are familiar with the technology say such a machine should normally not exceed 20 years' use. The Senegalese government promises that three state-of-the-art linear accelerators, which are standard elsewhere, will be installed by August. This is somewhat surprising given that Senegal's hospital system is a reference for the West African sub-region. Patients cross borders to receive diagnoses, treatments and surgeries. The hospital in Dakar boasts a research unit and some of the only modern DNA sequencing machines on the continent. The strength of the country's health system, which doctors are proud to say is more than 100 years old, is due in large part to a long-standing high level of medical education in Senegal. Medical students from Algeria and Morocco come to Dakar for research and studies. Yet the system is fragile and overwhelmed. Almost 14 million people live in Senegal, but only a handful of doctors focus on cancer. Doctors in the developed world recommend one radiation machine or linear accelerator for every 200,000 people. Senegal has one, and this year it is broken. So the lines in the cancer ward are long. We were fascinated by this story and wanted to film it. But accessing the primary city hospital with cameras has always been nearly impossible. This time, things looked different, and the small team of cancer doctors appeared to welcome us. We took the opportunity with caution. It seemed this crisis had struck the cancer team personally, and at least several were eager to talk. Behind closed doors and off-camera, some spoke of their anger that such an old and sometimes dangerous machine would still be the standard for the country. ""We should have linear accelerators,"" they said, shocked that the state had not invested a few million dollars in the new machines. The staff had been trying to raise awareness of the machine's consistent failure since 2015, when it broke down and electrocuted a patient on the table. It also burned others. They were amazed that only now the media seemed to be taking notice. They took us in to see the device, to look at the bespoke plastic masks that were made to hold patients still, and to watch as the great old machine head - with radioactive cobalt 60 at its centre - swivelled in a wide arc over a cold plastic bed. Interviewing patients, which we had assumed would be the straightforward part of the shoot, was even more difficult. The word cancer leaves a deep stigma across these wards, even though it is written in clear red paint on the entrances. Babacar, our fixer, kept saying: ""It's like Aids, you don't tell people you have it"". One divorced patient said that if she were known to have cancer, she would never be able to marry again. Another wanted to ask her husband for permission before speaking. A third refused to show her face. Several agreed on the terms that cancer never be mentioned, which was of course, not possible. After two days of asking patients for interviews, we were leaving empty-handed when a nurse called me to join her at the foot of the stairs. ""A patient upstairs can see you, you can film him""? We were thrilled and nearly raced up the steps. She grabbed my arm. ""You cannot use the word cancer,"" she said. READ MORE: Senegal imam calls for green jihad I asked Babacar whether I had heard her correctly. ""It's taboo,"" he told me. But we're in the cancer ward, I said. ""Don""t use the word,"" she insisted, telling us that the patient's grandson was there with him. ""Does he know it's cancer,"" I asked? Yes, he did. We entered the small cell in the recovery ward to find an 84-year old man wearing a neat scarf, a small religious hat and a wide smile. He had been a soldier for Senegal, one of the revered veterans who stood up as the shackles of colonialism were cracking but not yet breaking in the 1950s. He was sick, but feeling fine. He had a basket full of medicine and a catheter bandage on his hand. We interviewed him, learning that he had no pain and that he was happy to pay whatever was needed for the treatments he received for his mysterious ailment. ""Treatments should be expensive,"" he said, because medical expertise should not come cheap. No mention of cancer. The interview ended and the nurse came in. She pulled back his gown to reveal a wide chest bandage. ""This is for the tumor we removed,"" she said, as if tumor and cancer were two entirely unrelated terms. Beyond the hospital, we were led by a member of Senegal's League for Cancer (LISCA) to a younger woman of 40, living in the suburbs, who was suffering immensely from breast cancer. She let us interview her in her home, with her family near, something that was clearly very upsetting to her. She was undergoing constant chemotherapy. Her hand was swollen and her voice was soft. I asked about her diagnosis. She deferred entirely to her doctors, saying that she was not given choices in her treatments, and the costs, as we had also heard at the hospital, were unending. Family supported her for visits: a few hundred dollars here and there, with the total running into the thousands. Our shoot extended over two days, but by the end, we had enough material and strong voices. We called once more, the day after our long hospital visit, to ask specifically how many patients had received burns - or other injuries - while fixed to the old machine's table. ""No more calls please, no more questions"" was the only answer after the call had been passed from one hand to another. Word had gone round. The window of availability and openness had closed. Source:-Al Jazeera News", -1179,2017/2/16,http://www.aljazeera.com/indepth/interactive/2017/02/big-picture-people-america-170209123014063.html,The People vs. America - Interactive,"As Donald Trump takes office, we trace the historical trajectory that has exposed the myth of the American Dream.",, -1180,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/100-days-demonetisation-stories-hardship-170215154335682.html,100 days of demonetisation: Stories of hardship Showkat Shafi,"From people who lost jobs, to people who lost loved ones - seven stories that reveal the impact of demonetisation. By Monika, 48-year-old housewife 'Demonetisation brought us to the brink of begging' Hemlata, 29-year-old shawl cutter 'Did those with black money sleep on an empty stomach?' Rajwinder Singh, 34-year-old union president 'It left people jobless, starving and desperate' Nand Kishore, 22-year-old unemployed former factory worker 'Is this the way the government makes policies?' Parminder Singh, 30-year-old factory supervisor 'My mother died because of demonetisation' Yamuna Prasad, 29-year-old factory worker 'A rich man would have used his card to get his mother admitted to a hospital, but what about people like me?' Anisa Khatoon, 48-year-old housewife 'It took me years to save that money'","Ludhiana and Noida, India --A few hours before midnight on November 8, 2016, India's Prime Minister Narendra Modi appeared on state television to make an announcement. Two high-value -notes - the 500 rupee ($7.5) and 1,000 rupee ($14.9) - would no longer be legal tender, he said. The move had been taken to combat ""black money"" or unaccounted income, which makes up nearly one fifth of India's economy, he said. But much of the country's largely cash-based society screeched to a halt. Daily-wage labourers and other poor Indians were particularly hard hit. Here, seven Indians share their stories of demonetisation.- Monika cannot forget the hardships her family endured in the two months following Modi's decision to ban 86 percent of the country's currency. Standing inside the cramped kitchen of her family's one-bedroom home, she explains that her husband, who works as a security guard at a private school in Ludhiana city, went without pay for two months as the school ran out of cash. The family of four, including the couple's 21-year-old daughter and 14-year-old son, relied on her husband's 9,000 rupee ($135) monthly-salary and, without it, they were sometimes forced to go without food. ""My family slept without food for days,"" the housewife explains. ""I will never forget ... that demonetisation brought us to the brink of begging for food."" OPINION: India's demonetisation quagmire and its victims With her eyes fixed on the kitchen window, she says: ""We aren't beggars that we will go on the streets asking people for money."" And even if they had, she explains, none of their neighbours would have been able to help them.- ""All of us are poor in this area and everyone was struggling like us,"" she says. The note ban - or notebandi as it is commonly referred to - hit poor people, like those in Monika's neighbourhood, hardest.- Monika, who goes by just one name, says life still has not returned to normal. Her husband is now being paid again but in instalments.- In a country where about 90 percent of transactions are made in cash, demonetisation forced millions to stand in queues in front of banks as they tried to exchange the banned currency.- But, Monika says, she didn't have to queue. ""We don't have a bank account as we are poor,"" she says, before adding: ""I don't know how demonetisation will help my future, but it turned my present life into a nightmare."" Monika's story has many parallels in the government-built Economically Weaker Section housing society where she lives in Ludhiana's Samrala Chowk area. Twenty-nine-year-old Hemlata is her neighbour and has also fallen on hard times as her husband lost his job when the factory he worked in closed down due to the cash crunch. Hemlata, who goes by just one name, is sitting in the housing society's courtyard with some other women. It is the only open area in the otherwise cramped and squalid neighbourhood of approximately 30 small concrete homes. To make up for her husband's lost income, Hemlata has started working part time. IN PICTURES: 'How do I feed my family now?' ""My neighbour has given me this work where I process [cut] these shawls and get 0.50 paisa [half a rupee] for every piece. I process around 50 to 60 pieces in a day,"" she explains, sitting amid piles of shawls with her three-year-old daughter. But the 45 cents she makes daily is not enough to cover the family's most basic expenses. ""This is a very small amount and it is not enough to get us one meal a day. And I have to also pay the rent, electricity and school fees,"" she says, her voice breaking. ""I will have to manage, till my husband is able to find a job."" On top of those expenses, she must also buy medicine for her two-year-old daughter, who has suffered from a chronic disease since birth. ""My daughter needs her medicine every day and I have to resort to borrowing money from neighbours and moneylenders to buy it."" ""How am I going to repay that money?"" she asks. Although the 7,000 rupees ($105) that her husband used to earn in the factory was far below the country's average monthly wage of about $250, it helped the family of four get by. But for the past two months, her husband has been unable to find a new job. Ludhiana is a large industrial city, known for its hosiery industry. But more than 70 percent of the city's 12,000 hosiery factories, which employed more than 400,000 people, shut down because of the demonetisation. Hemlata is angry that the government's decision led to her husband's redundancy.- ""I think all the schemes of the government are for the rich, and the poor are never considered,"" she says. ""Please tell me if you heard of those with black money sleeping on an empty stomach because of demonetisation."" As she cuts a shawl, Hemlata says that the government should have made provisions for poor people like her. ""This is a disaster,"" she concludes. ""I don't see my life becoming normal again."" ""I don't know how demonetisation helped, but it was a disaster for the unskilled labour sector,"" says Rajwinder Singh. Rajwinder is the president of the Karkhana Mazdoor Union, or factory workers' union, in Ludhiana and is sitting in the small community library of the Economically Weaker Section-housing society.- ""It left people jobless, starving and desperate,"" he says. Immediately after demonetisation was announced, the wholesale market was closed for 20 days, Rajwinder says.- ""When the market was closed, there was no sale and the factories had to stop production and as a result many factories cut down the number of employees by 50 percent, while many just shut the shop,"" he says. ""I have seen factories that used to have 250 workers and post-demonetisation were reduced to five workers."" The softly-spoken, bespectacled union leader said that migrant labourers from the states of Bihar, West Bengal and Uttar Pradesh, who had come to Ludhiana for work, had no choice but to return to their home regions. READ MORE: Demonetisation takes its toll on the poor ""I met so many labourers who had no food in their house for the past so many days. They had children who were starving."" Some factory owners, he says, paid the workers in old notes that were no longer valid. ""The poor man had no choice but to take it and then stand for hours in the queue of a bank to get it exchanged."" ""And since these are daily-wage labourers, they would lose out on that day's pay,"" he says, removing his glasses and wiping his eyes. The flight of labour from the city has affected him as well. ""I get my salary from the funds we collect from the labourers. When the worker has no money, then how will he contribute money to the union fund?"" he asks. Nand Kishore moved to Ludhiana from his hometown of Gaya, in the eastern state of Bihar, four years ago, looking for work. He found it in a wool factory, where he earned 7,500 rupees ($112) a month. But in December, he was laid off. Now he spends his days sitting on a bench in the overcrowded working-class neighbourhood of Sundar Nagar. He has been looking for work but hasn't found any. And with each passing day, he grows more concerned. ""I don't want to go back home as I have very old parents to take care of and they will get really worried to see me sitting jobless at home,"" he says. So, for now, he'll stay living in the room he shares with four other men from his village. Nand used to send money to his parents regularly. But for the past two months, he hasn't been able to send anything.- ""As their only son, this pains me a lot,"" he says. He accuses factory owners of exploiting their workers. ""They are offering jobs at half the wage that I used to earn. Many have in desperation taken up the jobs at half the pay or have just left for their village,"" he says. But, ultimately, it is the government he blames. ""If standing in the ATM or bank queue was the only suffering I had to go through I would have managed, but my job was taken away,"" he says looking towards the sky. ""Is this the way a government makes policies? I have no idea about how government functions, but I know that they have made my life miserable."" Parminder Singh's eyes fill with tears when he speaks about his mother. She died on December 8 as she was standing in an ATM queue, waiting to withdraw money to pay for her daughter's wedding. She was 50. Approximately 80 people are thought to have died as a result of demonetisation - either while waiting in queues or because they were refused medical treatment as they didn't have the necessary cash to pay for it. ""My mother died because of demonetisation,"" he says. ""Not even millions of rupees can get her back.""- A supervisor in a hosiery factory earning 13,000 ($195) a month, Parminder lives with his wife, their one-year-old daughter and his sister in a middle-class neighbourhood. He says his 25-year-old sister blames herself for their mother's death. ""It's just heartbreaking to see her like this. I try to stay strong in front of her but I weep every day in my room when I am alone,"" he says. He is angry at the government. ""It was my mother's money. She did not have to die to take it out,"" he says. ""She had every right to access it without any trouble."" Yamuna Prasad is a broken man. He has been ever since his 70-year-old mother died two months ago. ""I couldn't cremate my mother for two days after her death because I did not have cash in hand,"" he says. On December 25, he took his mother to a government hospital after she complained of stomach pain. ""Everybody knows about the pathetic state of government-run hospitals here,"" he says, angrily. He would have preferred to have taken her to a private hospital where he believes she would have received better care. But he didn't have time to stand in a long queue at a bank or ATM to withdraw the money he would have needed to pay for private medical treatment. Without access to this money, he also had to delay his mother's cremation.- ""Things look normal now, but how do I forget that I couldn't give my mother a dignified cremation?"" he asks Yamuna says a local politician helped him to pay for the cremation, contributing 10,000 rupees ($150). He earns 8,000 ($120) a month working 12-hour shifts in a factory to support his wife, two-year-old daughter and three-year-old son. But he worries that with barely any savings, his children will grow up to become labourers.- He believes the government pushes policies that support the rich but neglect the poor. ""Why are rules made without thinking about the consequences on the poor?"" he asks. ""A rich man would have used his card to get his mother admitted to a hospital, but what about people like me?"" Anisa Khatoon says it took her years to save 10,000 rupees [$150] in a tin box. She kept the money there without her husband's knowledge so that she might one day be able to pay for her daughter's wedding. But after the government banned the notes she had saved, the mother of six had no choice but to tell her husband, a cycle-rickshaw puller in the New Delhi suburb of Noida. Her husband responded angrily and refused to stand in a queue to exchange the notes, she says. ""I had to take the help of a boy from my locality who took a commission of 2,000 rupees ($29),"" Anisa explains as she stands in front of her shack in the impoverished Sector 16 neighbourhood. ""It might not be a lot of money for many, but it is the only savings I have and the 2,000 rupees I lost as commission was a lot of money for me."" The 48-year-old runs her household on the 9,000 rupees ($135) that her husband earns each month. She says she feels cheated by the government's decision. ""The government said the poor will benefit from demonetisation but I don't know when and how. It took me years to save that money, and losing even a part of it is heartbreaking."" Source:-Al Jazeera News", -1181,2017/2/16,http://www.aljazeera.com/programmes/the-big-picture/2017/02/big-picture-people-america-170216063801575.html,The People vs America,We explore the construction of the American Dream and uncover the reality of exclusion and denial.,"Here is this great so-called land of the free, home of the brave, that is denying the most fundamental citizens' rights to a certain group of people Elaine Brown, American prison activist The election of Donald Trump in November 2016 exposed a deep vein of distrust across the US, where millions became disillusioned with a political and corporate elite out of touch with the sentiments of ordinary Americans. The institutions that serve US citizens are increasingly regarded as self-serving while the people are increasingly divided and polarised along racial and economic lines. In this two-part series, The Big Picture: The People vs America we explore the construction and mythology of the American Dream and uncover the reality of exclusion and denial. We chart the history of post-Second World War America to uncover how race has dominated the political landscape and continues to shape the America of today. We also explore just how America became so fractured, and how for many, the American Dream has been lost. INTERACTIVE: The Big Picture: The People vs. America - Source:-Al Jazeera News", -1182,2017/2/16,http://www.aljazeera.com/programmes/the-big-picture/2017/02/big-picture-making-breaking-europe-170215130636456.html,The Making and Breaking of Europe,We analyse how populist far-right movements are challenging the promise of an integrated union.,"Europe is at a crossroads. Populist far-right movements are challenging the very premise of an integrated European Union. To understand Europe and where we are today ""?we have to go back to the Europe that no longer exists. Alina Polyakova, research scholar Anti-immigration rhetoric is coalescing with anti-EU politics to challenge the liberal ideals of the European integrationist project. In this two-part series,-The Big Picture-explores the interwoven history of the European project and the far right in postwar Europe - both East and West. Beginning with the establishment of the European Coal and Steel Community from the ashes of World War II, we chart the trajectory of European integration, in tandem with the story of the European far right, recounting the series of shifts that have led to today's critical juncture: a post-Brexit European Union and a stark rise in support for far right, populist parties across Europe. The Big Picture-traces how far-right politics has increasingly crept into the mainstream, setting the political agenda on issues such as the EU, immigration and refugee policies. Combining documentary storytelling with panel discussion, the series comprises both historical exposition and incisive analysis on the history and future of Europe.- INTERACTIVE: The making and breaking of Europe PART TWO - Source:-Al Jazeera News", -1183,2017/2/16,http://www.aljazeera.com/programmes/witness/2017/02/waiting-invasion-170214101245958.html,Waiting For Invasion,Two Lithuanian conscripts train to defend their country against Russian aggression as tensions in the region escalate.,"Only 25 years after gaining independence from Russia, Lithuania is fearful of occupation again. The airspace above the Baltic states has seen regular incursions by Russian military aircraft since Russia annexed the Crimea. And the armed conflict that has been raging in eastern Ukraine for nearly three years has left people wondering if Lithuania could be next.- This documentary tells the story of two young Lithuanians getting ready to defend their country in case the unimaginable happens and Russia invades. But the film is not about the war, it is about peace and the people who are willing to fight to preserve it.- Source:-Al Jazeera", -1184,2017/2/16,http://www.aljazeera.com/news/2017/02/duterte-pressed-details-44m-hidden-deposit-170216083344753.html,Duterte pressed for details of $44m 'hidden deposit',Opposition senator releases 'proof' that president and his family did not declare multiple deposits as required by law. 'Desperate' claim,"An opposition senator has called on Philippine President Rodrigo Duterte to publicly release details of bank accounts belonging to himself and family members in order to disprove allegations he had hidden deposits worth millions of dollars. Senator Antonio Trillanes IV told a news conference on Thursday that he was raising the issue once again, because Duterte has not yet disclosed details of an estimated $44m he allegedly kept in bank accounts as a former mayor of Davao City. Trillanes, a former military officer, first alleged that Duterte had unexplained wealth during the presidential campaign in 2016, adding that the current president failed to declare the deposits as required by law.- Trillanes, one of Duterte's harshest critics and a navy officer once detained for a failed coup plot against a former president, said he would resign if Duterte can disprove the allegations. ""I know he will not release and he will not accept my challenge because it will be proven that he is really a corrupt official,"" Trillanes said. He also showed reporters transaction records of bank accounts belonging to his three adult children with his first wife, as well as that of his common-law wife, Cielito Salvador Avancena. Between 2003 to to 2016, Duterte's three children also reportedly received an estimated $7.5m in deposits, while Avancena received $3.8m in deposits from July 2004 to March 2016. Trillanes also revealed that the Duterte family received $2.4m from a Davao City businessman, who also contributed more than $600,000 to Duterte's campaign. Presidential spokesman Ernesto Abella said Duterte would not release those bank details ""in response to grandstanding"" but suggested the president may do so as part of a legal process. Duterte, who took office last June, has denied amassing ill-gotten wealth. Trillane's partymate Senator Alan Peter Cayetano, who ran as Duterte's vice presidential candidate, criticised the report as ""desperate attempt to stop the reforms"" of the president, according to Rappler News.- During the campaign in May, Trillanes released documents he said were handed to him by a concerned citizen purportedly showing more than $40m flowed into Duterte's various bank accounts from 2006 to 2015, representing alleged unexplained wealth the mayor failed to declare as required by law. Trillanes and Duterte's lawyer then went to a branch of the Bank of the Philippines Islands, where Duterte and his daughter allegedly had an undeclared deposit of more than $4m in a joint account. Lawyer Salvador Panelo said Duterte had authorised him to request the bank to open the account but that bank officials told him it would take seven days to study the request. Trillanes said the account has not been opened to scrutiny. At that time, Duterte acknowledged he had around $4m in one bank account in Manila, but did not file a government declaration because he ""already spent it"". He also said the deposits were ""birthday gifts"".- Duterte has projected himself as a politician who rose from poverty, and still lives a modest life in a rundown house in southern Davao city, where he was a longtime mayor. He has faced criticism for his brutal crackdown on illegal drugs that has left thousands of mostly poor suspected drug users dead. Source:-Al Jazeera and news agencies", -1185,2017/2/16,http://www.aljazeera.com/indepth/opinion/2017/02/justice-theo-protect-police-170216085902545.html,,,"For more than a week,-France-has been rocked by-tensions that flared up over a police-officer allegedly-sexually assaulting with a truncheon-a 22-year-old black man called-Theo in the Parisian suburb-of Aulnay-Sous-Bois. This brutal aggression is the latest police violation to dominate headlines in French mainstream media and to trigger protests-against police brutality.- Theo was on his way to visit a friend when the police stopped him to check his ID. A-video of Theo's violent arrest by the police circulated on the internet shows him on the ground against a wall, being beaten by four policemen.-In his account to the media,-Theo-explained-how he fell face down-as police spat racist insults and sodomised him with a police baton during the brutal arrest. The French police called the violent assault ""an accident"". Theo was subsequently treated in hospital. His case triggered--protests- in several Parisian suburbs which at times turned into riots. Protesters and the police clashed, notably in the suburban town of Bobigny, where cars and buses were burned and stores were ransacked. At this stage, the French Court of Justice is looking into how to assess the-nature of-the assault-against Theo-and whether it should be considered-rape or an act of violence. This, according to the court, can be established only by determining the nature of the-perpetrator's-intention at the time of the incident. The French Penal Code reserves a harsh punishment for rape.-Article 222-23-of the law states that: ""Any act of sexual penetration, whatever its nature, committed against another person, through violence, constraint, threat or surprise, is a rape. Rape is punishable by 15 years of imprisonment."" On February 20, a judge is expected to decide whether the accused policemen will face trial. A conviction of rape and a jail sentence for the policeman could be considered by Theo's family a victory and satisfy people's demands for justice. But if the policeman is acquitted, a repeat of the 2005-riots - triggered by the deaths of two teenagers during a police chase --is highly probable.- As the incident took place amid-a heated-electoral campaign, it was not surprising to see presidential candidates capitalising on it to make quick gains. Marine Le Pen, the far-right candidate, voiced support for the police forces and their ""right to defend themselves"". Le Pen refused to condemn the assault on Theo, thus-using-this horrible-abuse to attract voters and stir up-racial-tensions in suburban neighbourhoods.- Le Pen's opportunism is reminiscent of the actions of former President-Nicolas Sarkozy in 2005,-when he was-interior minister and presidential candidate. Sarkozy came out in support of the police forces during-the-riots-in Paris suburbs. Two years later, in 2007, Sarkozy was elected president of the republic. The French police continues to justify its abuses with the lack of human and material resources, as if respecting individuals' human dignity is somehow associated with material resources and/or to the number of policemen on the ground! - The assault on Theo is just another case of abuse of power by the French police against civilians that has become a norm in the past few decades.-Such incidents serve as a reminder of the tense relationship between the police and the inhabitants of the-suburbs. The regular riots and confrontations that follow every police assault attest to this fact. One of the most obvious reasons behind this tense relationship is the so-called ""delit de facies"", which is a police identity check carried out systematically and repeatedly targeting individuals mainly because of their skin colour (it was in this context that Theo was assaulted). It is a discriminatory and humiliating procedure that is deeply rooted in the collective psyche of the suburban communities - both African and Arab - who for long have complained about it. During his 2012 election campaign, French President Francois Hollande committed himself to combating the ""delit de facies"". However,-he has clearly failed to do so; three years into his presidency, five plaintiffs won a cases against the French state for discrimination during police identity checks based on skin colour.- Moreover, in April 2009, Amnesty International published a-report-denouncing the French police violations and the failure of the French justice system to put an end to such acts. ""Police ill-treatment, racial abuse and excessive use of force continues while procedures for investigating such allegations are still failing to meet the standards required by international law,"" the report, titled ""France: Police above the law?"", said. But neither the Amnesty International report, nor the-French court rulings, nor the denunciations of the French civil associations, could put an end to the phenomenon. The French police continues to justify its-abuses-with the lack of human and material-resources,-as if respecting individuals' human dignity is somehow associated with material resources and/or to the number of policemen on the ground! An acute crisis of confidence has long existed between the inhabitants of suburban neighbourhoods and the French state that almost always manifests its presence in the suburbs only through its police force. Such a dynamic automatically transforms its relationship with French citizens of the-suburbs into a purely authoritarian one. As Amar Henni, a leading youth worker in the district of La Grande Borne on the southern outskirts of-Paris, told The Guardian: ""the biggest unresolved problem is the relationship between youth and police. The state took a security approach, rather than a social or education response."" Therefore, in the absence of a genuine policy on integration and urban development in these ""sensitive urban zones"" (as designated by the French administration) where unemployment is more than twice the national rate, and where-schools-have a high turnover of often inexperienced teachers, and as long as the successive governments refuse to acknowledge their responsibility for this social failure, without real commitments and changes, unfortunately riots and cars and shops set on fire will continue to occur every time the police commits such horrible acts.- When state violence becomes systematic and rarely punished, the society falls into a vicious cycle where violence only triggers more violence. The case of Theo is a natural outcome of the failure of the state - on all levels - to combat racism, discrimination and put an end to police violence and abuses against the inhabitants of the-suburbs. Ali Saad is a French sociologist and media critic, focusing on the influence of mass media on society. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.-", -1186,2017/2/16,http://www.aljazeera.com/news/2017/02/thousands-return-iraq-mosul-fighting-continues-170216081649227.html,Thousands return to Iraq's Mosul as fighting continues,"More than 46,000 people go back to homes in east of city despite fierce fighting between ISIL and government forces.","More than 46,000 people who fled Iraq's Mosul as fighting raged have returned to the eastern part of the city-over the past two weeks-in an attempt to restart their lives. US-backed Iraqi government forces say they have now taken a quarter of Mosul from the Islamic State of Iraq and the Levant group, though fighting in parts of the east continues. ISIL still largely controls the western side of city, which is divided by the River Tigris.- Al Jazeera's Osama Bin Javaid, reporting from the outskirts of Mosul, said that people were determined to return despite the risks. ""They prefer to go back home rather than staying .. in camps .. or with extended family,"" he said.- ""ISIL propaganda has showed recent drone hits and mortars being fired towards areas now under Iraqi control. Many here feel air strikes and shelling have caused most of the damage to their city."" READ MORE: Thousands more Iraqis flee Mosul battles Social media was being used to mobilise returning residents to rebuild the city. ""In many neighbourhoods, cleaning campaigns are being organised, but with so much destruction and so little money, they can only do so much,""- Javaid said. The United Nations said on Wednesday that it was temporarily halting aid operations to neighbourhoods in the east that are under constant attack from ISIL fighters. UN Humanitarian Coordinator for Iraq, Lise Grande, said UN agencies had ""made the decision that until security improves it will be difficult for us to provide assistance."" While life is resuming in some eastern Mosul neighbourhoods, more than 140,000 people are still displaced and hundreds of thousands are trapped in the western ISIL-held part of the city as fighting continues. Preparations are under way to launch an offensive on the west, which is expected be more difficult because of the density of the population and the narrow streets and alleyways through which armoured vehicles cannot pass. Last month, the UN World Food Programme cut food rations, which are distributed to 1.4 million displaced Iraqis, by 50 percent-because of delays in payments from donor countries. The impact is already being seen in camps east of Mosul, which is ISIL's last major stronghold in northern Iraq. READ MORE: Mosul University after ISIL - Damaged but defiant ISIL is now intensifying attacks in government-held parts of the east, and government security forces are conducting house-to-house searches to find its sleeper cells. Mosul is still home to nearly 1.5 million people, many of whom are trapped by the fighting. Source:-Al Jazeera and news agencies", -1187,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/mexico-invisible-wall-migrant-double-standard-170214213612822.html,"Mexico's 'invisible wall', a migrant double standard John Holman","Frontera Sur', designed to protect migrants, resulted in increase in checkpoints and border patrols on southern border. By 'Invisible wall' 'Border security'-","Mexico City, Mexico - When Donald Trump kicked off his campaign for the US presidency with the notorious line about Mexican migrants ""bringing drugs, bringing crime, they're rapists"" it scandalised everyone south of the Rio Grande. When he signed off on his border wall, still insisting Mexico pay for it, the indignation went off the scale. Tens of thousands marched through Mexico City in opposition this Sunday while the government has earmarked $50m for consular protection for its citizens stateside. President Enrique Pena Nieto has personally welcomed back some of the first to be deported under the Trump administration in a show of unity - and condemnation of the now even tougher stance against undocumented migrants of the-US. But the Mexican government's concern about how its citizens are treated in the US sits incongruously with its own attitude towards the migrants passing through Mexico which rights organisations have described as hypocritical. In July 2014, the government unveiled a new plan called ""Programa Frontera Sur""-after the US exerted pressure on the country to stop a surge in the number of child migrants heading from Central America to the states. ""Frontera Sur"" was ostensibly designed to protect migrants, but it actually resulted in a noticeable increase in the number of checkpoints and border patrols in the south of the country. What analysts and activists have dubbed Mexico's own ""invisible wall"" succeeded in doubling the number of deportations from the country in the first full year of its implementation. There's always been double talk - it seems that the Central American migrants don't matter, nothing is done to prevent the same human rights violations that Mexican migrants suffer in the US. Diego Lorente,-lawyer Those caught by authorities often end up in what is the biggest migrant detention centre in Latin America, built in the tropical border town, Tapachula. Here many people from Central American nations below Mexico like Honduras, El Salvador and Guatemala wait in the sweltering heat for their turn to be bussed back home. Frequently, they are being sent back to grinding poverty, or the vicious gang violence that they fled in the first place. In recent years, Honduras and El Salvador have both vied for the title of the world's most murderous country outside of a war zone. NGOs have set up shop in the town to help some stay in Mexico. Diego Lorente, a bearded lawyer who has been fighting for the rights of migrants for several years, told Al Jazeera there's a double standard in the Mexican authorities attitude towards migration. ""There's always been double talk - it seems that the Central American migrants don't matter, nothing is done to prevent the same human rights violations that Mexican migrants suffer in the US,"" Lorente said. State authorities admit some Mexican officials are involved in the extortion, robbery, rape and even kidnapping of migrants. Alejandro Vila Chavez, the prosecutor for crimes against migrants in the southern state of Chiapas told Al Jazeera that last October his team burst open a ring of 21 local policemen who had kidnapped a group of migrants in the town of Chiapa de Corzo. ""They don't have the training to make them aware of their important duties,"" he said, speaking particularly about municipal police. ""Unfortunately, they lose sight of their role, using their authority and power in order to take advantage of migrants' vulnerability."" Vila insisted that crimes against migrants in Chiapas were going down. READ MORE: Central American mothers search for their missing sons Nationally, the picture is different. A 2016 report from the human rights arm of the Organization of American States notes that ""multiple cases involved the active participation of personnel from the National Migration office, municipal, state and federal police. ""A network of shelters for migrants, REDODEM, said that in 2015 officials committed 41 percent of the crimes against migrants they interviewed, 867 in total. Federal authorities didn't respond to Al Jazeera's interview requests. The complicity between some officials and Mexico's powerful gangs makes things more complicated still, particularly in the gulf states of Veracruz and Tamaulipas. A ""pollero"", one of the guides that migrants pay to get them to the US border told Al Jazeera that in those states the Gulf Cartel and the Zetas demand a ""tax"" on everyone who passes through - a claim that migrants rights organisations have backed up. READ MORE: Surviving Mexico's migrant trail Even for those who pay, there is no guarantee of safety. Migrants testify to having been raped, kidnapped and forced to work for organised crime. Deaths have also racked up. In one of the first, and worst, cases, 72 migrants were found shot dead in a ranch in Tamaulipas in August 2010. A survivor said they were executed by the Zetas after refusing to work for them. Tens of thousands have simply disappeared. But, Mexican authorities often stonewall relatives trying to find out what has happened to them, according to Martha Sanchez Soler, head of the NGO ""Movimiento Migrante Mesoamerica"". Sanchez Soler organises an annual caravan of Central Americans trying to find their loved ones. ""It's not convenient for the transit country [Mexico] to make known the crimes that are committed here, especially because there's lots of authorities that are colluding in them,"" she said, speaking to Al Jazeera during the last caravan in December 2016. Rights groups have repeatedly said that the Programa Frontera Sur has directly increased the danger to migrants, by forcing them to cross isolated areas to evade checkpoints and patrols. Despite the criticisms, the clampdown could actually represent one of Mexico's best bargaining chips in upcoming negotiations with the United States. That's because by catching undocumented migrants further south, Mexico provides a valuable filter, stopping them from reaching the US. Recognising that, the US has itself contributed millions of dollars towards Mexico's southern border protection. READ MORE: Cubans stranded in Central America try to reach the US Mexico's former foreign minister, Jorge Castaneda, has suggested Mexico should play that card, threatening to simply let Central American migrants get through to the US if it does not get what it want on trade issues. Mexico's president, Enrique Pena Nieto himself has said he will ""bring all the issues to the table"", including ""border security"".- Those negotiations will likely have an effect not just on Mexico and the United States, but on those coming from Central America hoping to find prosperity, or at least refuge, further north. Source:-Al Jazeera News", -1188,2017/2/16,http://www.aljazeera.com/indepth/opinion/2017/02/black-africans-considered-white-americans-170215073123425.html,,,"I always knew I was black. My childhood was the scent of coconut oil hair cream and the taste of bean pie after Friday prayers in a Bilalian mosque on Chicago's south side. I knew the words to Nkosi Sikelel' iAfrika and called Harold Washington my mayor, even though I lived in the suburbs. My parents had immigrated to the United States from Sudan in the late 1970s and raised my sister and me to be comfortable in our skin. I spoke Arabic at home and English at school where it seemed no one else agreed that I am black. When my father registered me for kindergarten, the school administrator told him that we had to select a box to designate our race. My father - raised in a post-colonial Sudan mired in ethnic tensions and civil war - wondered aloud why the government was tracking pupils based on race. The administrator recommended that since Arabic is the language spoken at home, we should mark ""white"". My father, whose adolescence was shaped by Frantz Fanon, Patrice Lumumba and Malcolm X, laughed. He patted his conspicuous Afro and wryly said, ""We may speak Arabic at home, but you can clearly see that we are black."" My experience highlights the absurdity of US racial classifications. The US Census Bureau classifies all Arabic speakers as white, owing partly to the fact that the earliest Arabic-speaking immigrants to the US were Levantine Christians who could, and wanted to, pass for white. US history is defined by centuries of rigid racial hierarchy, with enslaved Africans and their descendants at the bottom of the heap. Catholics, Jews, and southern European immigrants were not automatically granted whiteness and its legal benefits ( PDF ). But by the 20th-century, if a man looked white, he enjoyed full benefits of citizenship. But if he looked or was suspected of being black, then he would have to contend with racist laws designed to disenfranchise and terrify African Americans. The immigration of non-Europeans threw a wrench into this system. Early 20th century Arab immigrants were not interested in being on the wrong end of Jim Crow laws and did not want to live as non-citizens like some Asian immigrants. They petitioned the government to grant them legal whiteness and it did. The Civil Rights Movement of the 1960s began to chip away at systemic racism. The Arabic-speakers who immigrated to the United States after the 1965 Immigration and Nationality Act , including my parents, were much more diverse than the previous waves. Most of the newcomers, who included people from 10 African countries, could not pass for white even if they wanted to. My elementary school wanted to designate me as white because Arabic is my mother tongue, but no one was under any illusion that I actually was a white person. Rather, the question was: as an Afro-Arab, am I black enough to be considered racially black in America? Sudanese Americans racial identities are often erased. Ahmed Mohamed, the so-called Clock Boy, was described as ""brown"" by many commentators as if he was South Asian. Famously, Aziz Ansari, the Indian American actor, tweeted that he stands with Ahmed, ""because I was once a brown kid in the south, too."" I am a Muslim woman who wears a headscarf; I cannot point to an Afro to prove my blackness. Like Ahmed, my racial identity is often erased and transformed into an amorphous brown ""other"". Having your racial identity erased means hearing racial slurs against your community in your own language. It can also lead to absurdly ironic situations. My family used to live in a predominantly African American apartment complex, whose residents were bused into predominantly white schools. OPINION: Are Arabs white? Once, a white woman stepped on to the bus with her blonde granddaughter and scanned the aisles. She loudly commanded, ""Go sit with those Indian girls; I don't want you to sit next to any n*****s."" It was only when the girl plucked herself down next to us that my sister and I realised that the older woman had meant us! Sudanese Americans do not fit neatly into the existing racial classifications of our society. Though many identify as black, proximity to the Arabic language negates their claim to blackness in the eyes of others. The artificial line between North and sub-Saharan Africa has followed us across the Atlantic. And during the American Civil War, journalists often described a conflict that pitted the ""Arab North"" against the ""African South"". For the reader, the word ""Arab"" conjures images of pale-skinned people from the Middle East, not images of my ebony-skinned great-grandfathers irrigating their farms along the banks of the Nile. This politicised language still reverberates, even though many Sudanese immigrants actively identify as black and are treated as such by the state, law enforcement, and society at large. There was an outpouring of support from American Muslim communities after three young Levantine Arab Muslims were shot dead by their neighbour. Yet, the responses from African American and Muslim communities were tepid when three young men, Sudanese refugees, were also shot dead later that year. The founder of the Muslim Wellness Foundation, Kameelah Rashad writes: ""Psychologist Valerie Purdie Vaughns coined the term intersectional invisibility-to describe the phenomenon that occurs within a subordinate group in which individuals with intersecting identities (black and Muslim, for example - embodying racial and religious minority identities) are not perceived to be typical members of that group and often erased from the collective imagination."" (PDF) READ MORE: Race in the US - What if your identity was a lie? Sudanese Americans, like all African American and black Muslims in the US, suffer from intersectional invisibility. One unexpected side effect of the #MuslimBan has been a larger platform for Sudanese American artists and commentators to grapple with their own intersecting identities. The diversity found internally in Sudan cannot be crammed into an American box. In an era of Black Lives Matter protests against police brutality and the xenophobic, anti-Muslim Trump administration, Sudanese Americans are carving their own identities at the intersection of Islamophobia and anti-black animus. Hind Makki is a second-generation Sudanese American. She is an interfaith and anti-racism educator, and works to improve Muslim women's access to mosques in North America.- The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1189,2017/2/16,http://www.aljazeera.com/news/2017/02/air-raid-yemen-funeral-kills-women-170216093707979.html,Air raid on Yemen funeral 'kills at least nine women',Houthi rebels blame Arab coalition for attack on Shiraa village 40km north of capital Sanaa.,"At least eight women and a child were killed in an overnight air raid on a funeral reception near the Yemeni capital Sanaa, medics said. At least 10 more women were reported wounded in the raid on Thursday, which hit the women's reception area at a funeral in Arhab district, 40km north of Sanaa. Medics dispatched to the incident identified the bombing site as the residence of Mohammed Al Nakii in the village of Shiraa. Houthi rebels, who control the capital, accused a Saudi-backed coalition of carrying out the attack. A coalition spokesperson was not immediately available for comment.- Residents said the raid took place when mourners had gathered to offer condolences after a woman died. ""People heard the sound of planes and started running from the house but then the bombs hit the house directly. The roof collapsed and there was blood was everywhere,"" a resident of the village told a Reuters news agency cameraman on Thursday. Pictures published in local media showed people searching through the rubble of the destroyed house of Nakii, a tribal chief who was said to be allied with Yemen's Houthi movement. Last October, 140 people were killed and more than 600 injured in a coalition-bombardment of a funeral hall-in rebel-controlled Sanaa.- READ MORE: Yemenis mark six-year anniversary of uprising At the time, the Saudi-led coalition blamed the bombing on ""wrong-information"" from its Yemeni allies. Yemen's internationally recognised government has been locked in conflict with Houthi rebels since late 2014. The fighting intensified in March 2015 when the Houthis first-advanced on the southern city of Aden, prompting Saudi Arabia and its allies to-start an air campaign against the group. The death toll from the October raid was one of the highest in any single incident since the Saudi-led alliance began military operations to try to restore President Abd-Rabbu Mansour Hadi to power following his ousting by the Houthis. The UN says the civilian death toll has reached 10,000, with 40,000 wounded. Source:-News agencies", -1190,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/al-bab-operation-euphrates-shield-isil-170215103720562.html,"Al Bab: 'When the tide is turning, ISIL go apocalyptic' Mariya Petkova","Ankara's plans to push further east and south of Al Bab might face serious diplomatic challenges, say analysts. By","In recent weeks, the Turkish-led Operation Euphrates Shield has made significant progress against ISIL around the city of Al Bab in northern Syria. Russia, a key ally during the operation, has provided Turkey with military and diplomatic support. The takeover of Al Bab would effectively prevent Kurdish forces from establishing a land corridor between the two territories they control in northern Syria - one of the main goals of Turkey's military operation. It would also provide Turkey with an important strategic advantage in possible operations against the ISIL, the Islamic State of Iraq and the Levant, which is also known as ISIS,-and Kurdish forces. But analysts say that Ankara's plans to push further east and south might face serious diplomatic challenges. READ MORE: Kurds and refugees behind Turkey's Syria offensive On Sunday during a press conference, President Recep Tayyip Erdogan announced that Turkish troops had entered Al Bab's city centre and that it was only ""a matter of time"" before they took it over completely. According to Can Kasapoglu, a defence analyst at the Centre for Economics and Foreign Policy Studies in Istanbul, Euphrates Shield forces have already broken the first line of ISIL's defence. However, it will take a few weeks for them to take full control of Al Bab, he says. I think it's fair to assume that Turkish reluctance to get further involved in the Aleppo fight was linked to its understanding with Russia regarding Euphrates Shield. Noah Bonsey, Senior researcher, International Crisis Group ""As the Turkish operations go deeper into [fighting] street-by-street, [""�] there will be more intensified, nastier defence by the ISIS elements,"" said Kasapoglu. ""We always see this. We saw this in Iraq, we saw this in Ramadi. When ISIS feel that the tide is turning against them they go apocalyptic, but it cannot stop the operation."" Turkey launched Operation Euphrates Shield in August 2016 with a coalition of Syrian Arab and Turkmen forces, backed by a few hundred Turkish troops. As fighting progressed, Ankara had to send reinforcements and currently, according to Kasapoglu, Turkish troops on the ground in northern Syria are in the thousands. The Operation Euphrates Shield forces started their advance on Al Bab in November 2016. In early February, ISIL was completely encircled after armed forces fighting for Bashar al-Assad's regime cut off its last remaining supply route connecting it to the rest of its territories south and east of Al Bab. This positioned regime forces in close proximity to FSA factions, and according to Kasapoglu, that resulted in minor clashes. Osama al-Koshak, an independent Syrian researcher and activist, says there is very little risk of more serious clashes happening between FSA affiliates and regime forces in Al Bab. He added that there has been agreement between Turkey and Russia on Syrian regime forces halting their progress at the village of Tadif, just 2km southeast of Al Bab. In mid-January Russia and Turkey launched their first joint air operations, hitting ISIL positions in Al Bab. The military cooperation between the two countries suffered a temporary setback, when Russian air strikes killed three Turkish soldiers. Despite these issues, Koshak says Russian-Turkish cooperation in northern Syria has been growing and will continue to grow, as Turkey's western allies take a step back. ""This pushed Turkey to consider Russia a more suitable coalition partner in the pursuit of its interests. Russia offered air support against ISIL in Northern Syria, as the US retreated,"" explains Koshak. According to Noah Bonsey, International Crisis Group's senior analyst on Syria, Russia's support of Turkey's operation in northern Syria is part of its strategy to ""cash in"" politically on the significant military progress it has made and also prevent overstretching of its military capabilities by seeking to de-escalate the conflict in certain places. Aleppo could also have been part of a deal between Turkey and Russia on Al Bab. ""There are steps that Turkey could have taken to improve the rebel defences of Aleppo that it did not take,"" says Bonsey. ""I think it's fair to assume that Turkish reluctance to get further involved in the Aleppo fight was linked to its understanding with Russia regarding Euphrates Shield."" OPINION: The FSA's demands ahead of Geneva During Monday's press conference, Erdogan announced that the next goals for Operation Euphrates Shield are Manbij and Raqqa. The Syrian Democratic Forces (SDF), led by Kurdish People's Protection Units (YPG), took over Manbij from ISIL in August 2016 with heavy air support by the US. As an affiliate of the Kurdistan Workers' Party (PKK), the YPG is considered a terrorist organisation in Turkey. In the past, the Turkish air force has hit YPG positions in Manbij, but a full military offensive on the city against one of the US' key anti-ISIL allies would put Turkey in a complex diplomatic situation. According to Kasapoglu, Turkey would not launch such an operation unless there are ""favourable diplomatic conditions"" to do so. After putting troops on the ground and waging a successful campaign against ISIL, Ankara's diplomatic leverage within the western anti-ISIL coalition has grown, he notes. In his opinion, the Turkish military might also focus on an offensive on Raqqa, which would be a much larger operation than the one in al-Bab. But Raqqa is also a major target for the US that has been supporting SDF forces advancing on the city. According to Bonsey there are currently discussions in Washington on how to best approach taking over Raqqa. ""Most American officials that I have spoken to and I think the general opinion in Washington is that the YPG and its allies are best equipped to take the city in the short run,"" he says. ""There are some in Washington who would rather take a more gradual approach and work with Turkey and Turkish backed-forces to take the city."" Bonsey says that the US in the end is more likely to work with the YPG, but it is still under question. If Turkey proceeds with its operation against the Kurdish forces in Manbij or ISIL in Raqqa, it risks overstretching, he says. ""As Turkish forces and their allies expand their areas of control, those areas may become more difficult to [control]. Maintaining security in these areas may become more difficult,"" he explains. Bonsey points out that if Turkey launches an offensive on Manbij and the Kurds, that could give ISIL an advantage and allow it to attack both the Kurdish and Turkish forces while they are engaged in fighting each other. Follow Mariya Petkova on Twitter:-@mkpetkova Source:-Al Jazeera News", -1191,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/egypt-ngo-law-aims-erase-civil-society-170215121321442.html,Egypt's NGO law aims to 'erase civil society' Farah Najjar,"The law is part of a wider crackdown on human rights groups, activists say. By","Egyptian human rights groups say they are being subject to a widening government crackdown targeting organisations accused [by the government] of threatening national security. - The latest attempts to restrict the operations of non-governmental organisations that are mostly involved in human rights work took place last week when Egyptian authorities physically sealed shut the doors of the El Nadeem Centre, a prominent NGO that-helps victims of violence and torture. ""This is a big hit - a unique and significant one - -in light of the government's crackdown against civil society in Egypt,"" Suzan Fayad, the centre's director told Al Jazeera. Al Nadeem Centre for the Rehabilitation of Victims of Violence and Torture-has been operating as a registered clinic with the health ministry for the past 24 years, according to Fayad.- In response to the centre's closure, Human Rights Watch (HRW) said: ""Instead of tackling the pernicious pattern of police torture, President [Abdel Fattah]-el-Sisi sends the police to seal the clinic that helps the victims and has been a vital source of information about deaths-in detention, denial of medical care and abuse by law enforcement officers."" ""The move against al-Nadeem Centre sends the message loud and clear that al-Sisi's government won't confront torture and will do its best to silence critical voices,"" Joe Stork, deputy director of the Middle East and North Africa division at HRW, said.- READ MORE: Egypt NGOs 'robbed of independence' Even volunteer work will become subject to total supervision under the pretext of national security. This mentality of maintaining public security has reached a level of madness. Suzan Fayad, director of el-Nadeem centre Al Nadeem has been fighting a legal battle against its closure for a year now since an initial closure order was first issued in-February 2016. The centre's lawyer, Taher Abu al-Nasr, told Al Jazeera that the latest order targeted the clinic, not the centre's-operational offices, but the police closed both down. ""There is no legal reason for them to close down the centre, it is politically motivated, and no one informed us what the alleged violation cited in the order actually is,"" Abu al-Nasr said. Abu al-Nasr added that Al-Nadeem centre's members were committed to reopening it, and that the case was pending a final verdict. ""We stopped documenting torture cases for the public reports two years ago. It is extremely important for us to document first-hand accounts, to prove what torture methods are being used in prisons,"" Fayad explained. ""We've been doing it for 20 years, but we are now too worried about our victims' safety and wellbeing - so we had to stop [making it public]."" Al Nadeem caters for about 250 cases a month, including new victims, according to Fayad. Over the span of 20 years, the centre has documented 14,700 torture cases, and 1,000 cases of domestic abuse, the details of each case are now accessible to the Egyptian authorities in the aftermath of the raid. READ MORE: The tragedy of Egypt's stolen revolution The closure of al-Nadeem is part of the wider crackdown on civil society in Egypt. Last November, a new bill, that was approved-by the Egyptian parliament, stated that centres of all types would need to re-register themselves as NGOs under the ministry of social affairs, regardless of what services they offer. The law, referred to as the ""NGO law"", places restrictions on the formation of civil society organisations as much as their general activities, both of which will be subject to security intervention, according to the law. It will come into full effect if the president signs the decree. Fayad described the draft law as ""the worst in Egyptian history"". ""It puts an end to the very last platform available for people who want to peacefully organise. It restricts the operational space of every kind of organisation and puts them under the ministry's direct supervision,"" she said. ""Even volunteer work will become subject to total supervision under the pretext of national security. This mentality of maintaining public security has reached a level of madness."" Fayad said that the current establishment's ""mentality and culture"" does not allow for the presence of civil society as a whole. The NGO law is part of a wider crackdown on human rights groups, activists say. Since coming to power in 2014, Sisi's government has-imprisoned thousands, and banned protests by maintaining legislation prohibiting the-public gathering of 10 or more people-without prior authorisation from the interior ministry. READ MORE: Egypt's anti protest law: Legalising authoritarianism Moreover, several individuals and organisations are now involved in an investigation that dates back to December 2011, originally brought against NGOs that receive foreign funding, known as case 173, in which 43 NGO employees were convicted.- In October 2016, an Egyptian court approved a-freeze on the assets-of five prominent human rights activists and three NGOs-accused-of receiving foreign funds to harm national security and spread instability in Egypt.- Among those accused are prominent investigative journalist Hossam Bahgat, human rights lawyer Gamal Eid, and award-winning feminist Mozn Hassan, all of whom have been barred from travel pending investigations. The five-year-old case remained largely inactive until last year.The defendants-could face-life imprisonment if found guilty. According to-Daftar Ahwal, an Egypt-based research and documentation centre, there have been-554 cases-of departure and entry bans, as well as arrests, at Egyptian airports since the 2011 Egyptian uprising that toppled former president Hosni Mubarak's 30-year-rule. Speaking to Al Jazeera, Mohamed Aziz, director of the Egypt-based NGO Al Haqanya, said that any act of opposition to the clampdown would be ineffective, as there is a clear violation of the right to organise and self-express. ""People are now repressing a great deal of fury, but civil society groups in Egypt are not a political force; they're reformative in nature, they serve as entities on the ground,"" Aziz added. - Experts say that the NGO law has the ""intention and mechanism to erase civil society off the socio-political sphere in Egypt"". ""It shall imminently transform 'independent' voices of civil society and NGOs into a 'dependent' movement of entities. It will carry out enormous practical and operational restrictions on funding, activities, and research, that makes it impossible for these groups to conduct their work without prior interference by the government,""-Fadi al-Qadi, an Amman-based regional human rights advocate and commentator, told Al Jazeera. While the law awaits a presidential ratification, several press reports-have raised questions bout whether this ratification will ever materialise. According to Article 123 of the Constitution,-there is a 30-day period after the receipt of a piece of legislation in which the president may either approve a law or return it to parliament with objections. In the case of the NGO law, the 30 days have elapsed and there has been no word from Sisi. But, according to Qadi, if the law is endorsed by Sisi, it will create an effective regime of control over all aspects of non-governmental activities. -""But most critical to civil society groups will be criminal prosecution for engaging in activities 'not allowed' by the law. That could include, for instance, reporting on torture cases, or citing corruption in governmental bodies,"" he added.- ""It simply aims to introduce safeguards against a possibility of a revolution, at least, a peaceful one."" Rights group Amnesty International has referred to the law as a-""death warrant""-for Egyptian NGOs.- ""They simply cannot do their jobs without considering risks of prosecution, detention, long-term imprisonment and, in some circumstances, disappearances,"" said Qadi.- Source:-Al Jazeera News", -1192,2017/2/16,http://www.rte.ie/news/2017/0216/853050-politics-enda-kenny/,Kenny to remain focused on upcoming challenges,,"Taoiseach Enda Kenny insisted tonight that he remains focused on his job as Taoiseach at what was a very challenging time. Mr Kenny said he will concentrate on-dealing-with the preparations for what will be an ""exceptionally difficult and challenging negotiations"" in respect of Brexit. Mr Kenny was responding to a question from RT? News in the wake of a statement from his Fine Gael colleague, Pat Deering, threatening to table a motion of no confidence in the Taoiseach. Mr Deering, a Carlow-Kilkenny TD, has said he will table the motion if Mr Kenny-does not clarify his intentions-about stepping down to the Fine Gael parliamentary party by next week. Pat Deering says he expects the Taoiseach to indicate a timeline for his departure as FG leader at a parliamentary party meeting next week pic.twitter.com/SLsTf5oMSa ""?RT? News (@rtenews) February 16, 2017 Mr Deering said the parliamentary party needs to have a say on the matter. While he said-he hopes it does not come to this, he pointed out that-the ball is in the Taoiseach's court. Meanwhile a spokesperson for Leo Varadkar said the Minister for Social Protection will not be one of the ministers supposedly going to Mr Kenny today to make an ultimatum about his leadership. Earlier, Mr Varadkar said that-Mr Kenny will know when the time is right for him to step down. Speaking at a Brexit-related event this afternoon, Mr Varadkar --who is seen as one of the contenders to replace the Taoiseach - said Mr Kenny had been a fabulous leader, but that in the last week the timeline for a general election had shortened. He said he knew that Mr Kenny would know when it would be in the best interests of the party and-the country for him to step down. Leo Varadkar has said that Taoiseach Enda Kenny will know when the time is right for him to step down. More: https://t.co/ykwmBQ0z2C pic.twitter.com/XODnJzokgh ""?RT? News (@rtenews) February 16, 2017 Live: Today's political updates M��che��l Lehane: Kenny facing swift heave unless he quits Elsewhere, Minister for Finance Michael Noonan-said that the next general election has been brought closer by recent events. He was speaking after the Cabinet this morning agreed the-terms of reference of a tribunal of-inquiry into the garda whistleblower controversy. The terms of reference were subsequently agreed upon by the D��il without a vote. Mr Noonan said he expects the motion to be passed by the D��il today and by the Seanad tonight and that-Supreme Court judge Peter Charleton has agreed to lead the tribunal. Mr Noonan said the judge expects to begin work next Tuesday and to have completed his work in nine months. The tribunal will prioritise allegations against Sergeant Maurice McCabe, who in an interview with the Anglo Celt newspaper said if he could turn back time he ""probably would not do it all again"" because of how he was treated during ""eight years of constant abuse.""- Other high-profile whistleblowers are expected to be looked at in a separate module. The terms of reference will include Tusla and the Health Service Executive where relevant. The terms are understood to state that the tribunal will look-at any negative patterns between garda�� and Tusla. The tribunal is expected to issue an interim report within three months. No party election ready, Fine Gael TD claims This morning Fine Gael parliamentary party chairman Martin Heydon said the leadership-issue did not come up at a meeting last night-and he-did not-believe any political party was election ready. He-added that he trusted the Taoiseach to set out the timeline for his departure and to pick the time that is best for the country and the party. ""Obviously there are a number of considerations here,"" he said. ""The different considerations are that this isn't just an internal Fine Gael matter. We are cognisant of our colleagues in the Independent Alliance with whom we've fostered a very strong relationship over the last year to provide good government.|"" The changeover, when it happens, has a knock on implication and I trust the Taoiseach to choose the time of his choosing that is in the best interests of the country. He added it has been a very difficult week and Mr Kenny has made mistakes but everyone makes mistakes.- Mr Heydon also said that he had no doubt there was an orchestrated campaign against Sgt-McCabe. Martin Heydon, Fine Gael Parliamentary Party Chairman, says they never discussed the leadership at last night's meeting pic.twitter.com/46Eh9L21t2 ""?Morning Ireland (@morningireland) February 16, 2017 He said that-if Garda Commissioner N��ir��n O'Sullivan felt she was unable to carry out her role to the best of her ability, then she should make the decision to step back. However, he said it was a decision for her to make. The Government won a motion of confidence in the D��il last night by 57 votes to 52. There were 44 abstentions. Additional reporting David Davin-Power Yesterday's, parliamentary party meeting put the Taoiseach-on notice that he has to outline his plans to step down before his departure for Washington next month. Both Leo-Varadkar and-Simon Coveney and others set out a thinly-veiled ultimatum to the Taoiseach when they said the party had now to move to make preparations for an election. The Taoiseach has already said he will not lead the party in that contest. After the meeting, some of Mr Kenny's opponents intimated that he might face a no-confidence vote should he ignore what was an unmistakable message. Some ministers said that was a real prospect but figures close to Mr Varadkar were adamant the suggestions did not come from him. Few around Leinster House last night doubted that Mr Kenny was now facing real pressure - with middle-ground TDs now tending to the view that he had to make his plans clear sooner rather than later.", -1193,2017/2/16,http://www.rte.ie/news/2017/0216/853236-united-states-donald-trump/,"Trump withdraws appeal of travel ban suspension, new order likely soon",,"US President Donald Trump's administration has-dropped-its appeal of a court ruling that suspended his travel ban targeting refugees and seven Muslim countries and said it would replace the measure with a modified version. The Justice Department announced the move in a brief filed with the court of appeals in San Francisco. It said the new order would address complaints from a three-judge panel that parts of the order were unconstitutional. ""Rather than continuing this litigation, the President intends in the near future to rescind the Order and replace it with a new, substantially revised Executive Order to eliminate what the panel erroneously thought were constitutional concerns,"" the brief states. Earlier, Mr-Trump attacked the media again at his first solo press conference, dismissing news outlets as dishonest. He said the US news media serve special interests and people profiting off what he called ""a very, very obviously broken system."" ""The press has become so dishonest that if we don't talk about it, we are doing a tremendous disservice to the American people,"" Mr Trump said. He also said United States faces a host of problems at home and abroad and-declared: ""I inherited a mess."" He-said jobs were leaving the country to Mexico and other places, and mass instability was prevalent overseas. ""To be honest, I inherited a mess. It's a mess. At home and abroad. A mess,"" he said. ""Low pay, low wages. Mass instability overseas no matter where you look. The Middle East a disaster. North Korea. We'll take care of it, folks. We're going to take care of it all."" He made the remark after presenting Alexander Acosta, a former federal prosecutor from Florida, as his nominee for to lead the Department of Labor. Mr Acosta was tapped after Trump's first nominee for the post, Andrew Puzder, withdrew under pressure over his business record and other past controversies in his personal life. The president said he will announce next week a new executive order on immigration, trying to moving forward now that his travel ban is caught up in court. ""We will be issuing a new and very comprehensive order to protect our people"". In response to a question on the resignation of former national security adviser Michael Flynn, he said Mr Flynn's actions were not wrong, but he was not happy with the way he gave information to Vice President Mike Pence. Mr Trump said Mr Flynn was just doing his job in making a call to the Russian ambassador, but it was not acceptable that he said he could not remember the details of the call. ""I don't think he did anything wrong. If anything, he did something right"" in talking to Russian officials. ""The thing is, he didn't tell our vice president properly and then he said he didn't remember."" - The White House has admitted that Mr Trump was told three weeks ago that Mr Flynn may have misled colleagues about his Kremlin contacts. The White House had painted Mr Trump's decision as based on Mr Flynn misleading the Vice President. But it emerged on Tuesday that Mr Trump kept Mr Pence in the dark for two weeks. The president denied allegations that members of his election campaign team were in repeated contact with Russian officials, calling it ""fake news."" ""They know nothing about it. They weren't in Russia. They never made a phone call to Russia. They never received a phone call. It's all fake news,"" he said. He said he has asked the Justice Department to investigate intelligence leaks, calling them-""criminal leaks,"" put out by ""people in the agencies."" ""We're looking at them very serious. I've gone to all of the folks in charge of the various agencies, and we're --I've actually called the Justice Department to look into the leaks.""", -1194,2017/2/16,http://www.rte.ie/news/2017/0216/853190-stokes-damages-court/,Stokes ordered to pay �130k damages over Elvis impersonator attack,,"Irish international footballer Anthony Stokes must pay �130,000 in damages to an Elvis Presley impersonator he headbutted and seriously injured in a Dublin nightclub. In a High Court civil action the jury, after deliberating for just over 90 minutes, unanimously found that the 28-year-old Blackburn Rovers footballer had assaulted 53-year-old Anthony Bradley. The jury found that Mr Bradley was entitled to general damages, aggravated damages, and damages to cover the cost of medical expenses already paid for by Mr Bradley totalling �130,000 for the injuries he sustained. Stokes must also pay Mr Bradley's legal costs. Mr Bradley sued Stokes seeking damages after he was headbutted by the player in the VIP Lounge at Buck Whaleys Nightclub, in Dublin's Leeson Street on the early hours of 8 June, 2013. Mr Stokes, who has won nine caps for Ireland and has played for clubs including Celtic, Hibernian and Sunderland before joining Blackburn last summer, was not present in court nor was he legally represented at the hearing. He had lodged a defence to denying Mr Bradley's claims. However, before the trial started the Mr Justice Colm Mac Eochaidh heard Stokes had discharged his legal team earlier this month and was aware the case was listed for hearing.- Counsel for Mr Bradley, Mr John O'Donnell SC, appearing with Conor Bowman SC, said Mr Stokes had informed his client's solicitor that Stokes would not be attending because the footballer's partner was due to give birth. This was the same reason Stokes had given in relation concerning his attendance at criminal proceedings late last year, counsel added. Anthony Bradley sued Stokes seeking damages Opening the case Mr O'Donnell said the ""unprovoked attack"" on his client by Stokes was ""nasty and cowardly"". As a result Mr Bradley had suffered both physical and psychological injuries and was ""not the man he had been before the incident."" Conor Bowman SC said that the injuries to Mr Bradley were ""serious"". In his evidence Mr Bradley, from Ballyfermot in Dublin, said he was at the nightclub when a person spilled drink on him. While he was dealing with this person and telling him ""it was ok"" Mr Stokes then appeared and head butted him. He said he ""did not know"" if that other person and Stokes knew each other. The bouncers at the club removed Stokes. Mr Bradley said he required medical to deal with attention and there was ""a lot of blood"". In his evidence, he said that he suffered injuries including a broken nose, and damage to his teeth. He later developed problems with his neck.- It was accepted in court that he had a pre-existing undiagnosed condition which caused the issue with his neck but Mr Bradley said the assault exasperated it. He had surgery and dental procedures at home and overseas, and has been having ongoing treatment for his neck pain. He will require further medical and dental treatment in the future.- While the teeth and nose could be fixed, he said it was the problems with his neck that ""worries me most"". He had performed as an Elvis Presley impersonator for many years, but since the assault he was unable to do this anymore.- He had also given up his job at the Gresham Hotel in Dublin. He agreed with counsel that he also suffered from psychological problems and suffered from sleepless nights. He said that Stokes never apologised to him. He said he had been approached at his home by Anthony Stokes' mother and was contacted twice by the player's sister before the criminal trial. He said he explained to them that matter was ""out of his hands"" as it was the State who was bringing the criminal prosecution against Stokes. Following the jury's decision the Judge said that Mr Bradley was entitled to his legal costs. While he took a ""dim view"" of Stokes non-attendance he declined to award costs against the footballer on a solicitor-client basis, the highest level possible.", -1195,2017/2/16,http://www.rte.ie/news/2017/0216/853260-stormont-debate/,Foster and O'Neill clash over power-sharing,,"Arlene Foster and Michelle O'Neill have publicly clashed over Sinn F��in's refusal to support the Democratic Unionist Party leader in an executive office after the Stormont election. Going head-to-head for the first time in a pre-election debate, the Sinn F��in and DUP leaders argued over power-sharing arrangements should they both be returned in March as the two main parties. Ms O'Neill insisted yet again she was not prepared to go into government with Ms Foster until a public inquiry into the botched Renewable Heat Incentive scheme had concluded. She said DUP ""arrogance, contempt and serious allegations of corruption around the RHI scandal"" had forced next month's snap election. However, Ms Foster hit back that it was not up to Sinn F��in to decide who should lead her party. She also said that this election was ""an attempt by Gerry Adams to push forward his radical agenda."" As tensions continue to simmer between the DUP and Sinn F��in, the two party leaders aired their differences face-to-face during the UTV Election Debate involving the region's five largest parties, DUP, Sinn F��in, SDLP, UUP and Alliance. ""We can go into government (after the election), but we couldn't go into government or support Arlene Foster in the position of first or deputy first minister while an inquiry is ongoing. ""The public need answers and deserve answers,"" said Ms O'Neill. Ms Foster responded: ""It's not a matter for Michelle O'Neill or Gerry Adams or anyone else in Sinn F��in to say who should lead the party."" Ms O'Neill hit back: ""It's not for me to say who will lead the DUP, but it's Sinn F��in's right to say who they will go into government with."" SDLP leader Colum Eastwood warned that if people vote for the DUP and Sinn F��in the region will face a lengthy period of negotiations before the institutions are back up and running. ""But if you vote for other people, we have the opportunity to form a government, no matter how difficult all these issues are. There are people who want to work together, are willing to work together, and have proven they can work together to get over some of these humps,"" he added. Ulster Unionist Mike Nesbitt said Sinn F��in and the DUP ""really don't want to share power, but only do it because there is a legislative duty on them to do so"". He added: ""We as the Ulster Unionist Party would be willing partners, understanding the only way to move Northern Ireland forward is to work with people with whom you have differences."" Alliance leader Naomi Long accused the Ulster Unionist Party of being the ""Lothario of Northern Ireland politics"" during a discussion on Mr Nesbitt's decision to transfer his vote to the SDLP. Mr Nesbitt insisted that transferring his vote to the SDLP ""is the right thing to do"" as ""RHI is not an orange or green issue, but an issue of confidence, of good government"". Ms Long responded: ""This is one of the few elections the Ulster Unionists have not fought with a pre-election pact. I think the Ulster Unionist Party has become the Lothario of Northern Ireland politics. It has hopped in and out of bed with almost every political party."" But she added: ""It is good that Mike is arguing people should vote on the substance of how we do government and not along the tribal lines. That is what progress looks like."" However, Ms Foster said Sinn F��in wants to be the biggest party and wants a border poll and therefore it is a ""dangerous"" move for unionists to transfer votes to nationalists. Mr Nesbitt told Ms Foster to stop playing the ""politics of fear"", and added that Ms O'Neill cannot be first minister unless she nominates herself as deputy first minister. Ms Foster responded: ""We are going into a period of negotiations after the election. I think it would be absolute madness to talk about who nominates who because Michelle has already made it very clear that she doesn't support me going back into office.""", -1196,2017/2/16,http://www.rte.ie/news/2017/0216/853204-derry-syria/,Derry man found not guilty over Syria explosives charge,,"A Derry man has been found not guilty of possessing explosives, but a jury has been unable to return a verdict on whether he attended a terrorism training camp in Syria. The panel was also unable to decide whether Eamon Bradley received training in the making or use of weapons for terrorism. Northern Ireland's director of public prosecutions is expected to inform the court within a fortnight whether the he could face a retrial. The 28-year-old-denied six charges, including attending a rebel training camp in the Middle East war zone and receiving training in guns and grenades. This was the first case of its type taken in Northern Ireland and it took the jury around six hours of deliberations at Derry Crown Court. Mr Bradley was alleged to have been involved with a Syrian rebel group opposed to the regime and the so-called Islamic State group. The ""bedrock"" of the prosecution case surrounded interviews he gave to police after he was arrested in Northern Ireland over images of him apparently posing with guns posted on social media. He allegedly told a detective he was spirited into Syria from Turkey in a makeshift raft and joined the forces of the Army of Islam. Mr Bradley is also said to have described being given months of training in using weapons before attending three battles as a junior soldier armed with a firearm and a grenade. He denied firing a single bullet and allegedly returned home disillusioned after initially going to help the Syrian people. Judge Brian Sherrard said Mr Bradley's defence had attempted to introduce doubts about the police interviews centring on his apparent lack of knowledge about military matters and about the Army of Islam. Prosecutors said he was not a fantasist, and his account to police was the truth. Mr Bradley is originally from Melmore Gardens in Creggan. Bradley told police he signed up as a soldier in the rebel group in 2014. He described, according to police notes of his interview, attending a training camp and carrying an assault rifle and grenade as a junior infantryman or mujahid fighter. But he denied all six charges he faced. An expert witness testified that the AK 47 assault rifles Bradley was photographed in front of could have been deactivated. A lawyer for the defence said one of the battles the defendant told police he was present at did not happen. According to earlier testimony he gave to police he used a Facebook page to research the fighting, convert to Islam and make contact with people who told him how to get there. They pinpointed a village on the Turkey/Syria border and he said he was given a WhatsApp mobile messaging number to make contact with the rebels once there, according to interviews read out during the trial. He allegedly flew from Dublin to Turkey in February 2014 then was smuggled across the border with Syria, crossing a river in a tractor wheel, according to the transcripts. Bradley said he went to help the Syrian people. A lawyer for the defence said it was a flimsy and threadbare case and there was no evidence to corroborate that he was even in Syria. He said his client was not Derry's answer to Britain's First World War desert adventurer Lawrence of Arabia and was simply in Turkey on holiday. According to the prosecution, he had truthfully agreed that he committed terrorism offences when questioned by detectives and was not a fantasist. Barrister for the prosecution Ciaran Murphy QC said he was referring it back to the director of public prosecutions Barra McGrory QC.", -1197,2017/2/16,http://www.rte.ie/news/2017/0216/853059-maurice-mccabe-reaction/,Policing Authority has confidence in O'Sullivan,,"The Policing Authority has expressed confidence in Garda Commissioner N��ir��n O'Sullivan and senior garda management. In a statement this afternoon, the authority said it is-satisfied with garda management's ability to do its important, challenging, and difficult job. Ms O'Sullivan is due before the authority again next week. The Secretary General of the Department of Justice has written to the Commissioner asking her to address the six questions posed by Sergeant Maurice McCabe. Minister for Justice Frances Fitzerald has told the D��il-that she wanted to facilitate Sgt McCabe in getting answers to his questions as much as possible.- In a statement last week, Sgt McCabe and his wife said they want simple answers to a number of questions:- Did a meeting or phone conversation with a senior Garda as-sought by the HSE (in relation to the abuse claims) in August 2013 take place?- - Who was/were the Garda(��) who made/received phone calls to/from the HSE counsellor concerning the false rape offence allegation?- - Who interviewed the alleged victim in respect of that allegation in May 2014, as claimed by her solicitor?- - Was any of the foregoing Garda activity reported or recorded within An Garda S��och��na? - Was any of the foregoing Garda activity notified formally or informally to senior Garda�� at Commissioner level, and if not why not? - Was any decision made not to inform Maurice Mc Cabe of the making of the 2013 allegation, and if so why and by whom? McDowell says Garda Commissioner should stand aside Former justice minister and attorney general Michael McDowell has said there is no reason why the Government should not ask the commissioner to stand aside while the inquiry into the treatment of garda whistleblowers is under way. Speaking in the Seanad, he said: ""There is no reason at all for the Government to commit that the garda commissioner should remain in position, and she must step aside temporarily for the duration of the tribunal until it has reported, or permanently""? - The Independent Senator added that the ""determination that the commissioner should remain in place during the tribunal is neither fair, nor appropriate nor defensible"". A tribunal of inquiry is being held to-determine whether there was a smear campaign against Sergeant Maurice McCabe, orchestrated by high level garda��.- The Cabinet agreed the terms of reference this morning and Minister for Finance Michael Noonan said he expects the motion to be passed by the D��il and Seanad today. Mr Justice Peter Charleton has agreed to lead the tribunal and expects to have his work completed in nine months. Senator McDowell has been providing legal advice to Sgt-McCabe. Sen @GCraughwell -Garda Commissioner must take a neutral position as we enter tribunal & only neutral position is to step down' @rtenews ""?Conor McMorrow (@ConorMcMorrow) February 16, 2017 Independent Senator Gerard Craughwell has also joined the calls for Commissioner-O'Sullivan to step aside. Speaking in the Seanad,-he said, ""There is no question about the presumption of innocence. Everybody is presumed innocent until they are proven guilty. But the Commissioner must take a neutral position as we enter into this tribunal. ""And the only neutral position she can take is to step down and step aside while the tribunal takes place. ""You have one of her most senior officers who will appear in front of the tribunal -in uniform and will tell a story directly opposing the story she will tell"". Maurice McCabe 'probably would not do it all again' Sgt-McCabe has said if he could turn back time he ""probably would not do it all again"" because of how he was treated during ""eight years of constant abuse.""- In an interview with Cavan's Anglo-Celt newspaper, Sgt McCabe said the latest revelations involving Tusla and the garda�� are ""just vile"". Sgt McCabe said he did not-not mind how long the inquiry into his treatment takes-as long as the truth is revealed. ""No, it does not really matter, once it is got at. We need a lot of answers to our questions."" Asked by the newspaper if he would do it all again if given the choice, he replied: ""Oh, probably not, probably not, because of what they did to me. I did not do anything to them, they did it to me,"" he said in the interview with reporter Sean-McMahon. ""We just want it to finish and let us go back to live our lives, the way we did eight years ago.""", -1198,2017/2/16,http://www.rte.ie/news/2017/0216/853207-pakistan-is-attack/,Over 70 dead in IS bomb attack on Pakistan shrine,,"The Islamic State militant group has claimed responsibility for a suicide bombing in Pakistan which has left at least 72 dead. The bombing at a crowded Sufi shrine in southern Pakistan also left dozens wounded, according to local media. A police source said that a suicide bomber had entered the shrine and blown himself up among the devotees, adding the shrine was crowded on a Thursday, considered a sacred day for prayers. There was no immediate claim of responsibility for the attack. Jamaat-ul-Ahrar, a faction of the Pakistani Taliban, has claimed several attacks this week, including a Taliban suicide bombing in Lahore which killed 13 people and wounded dozens more. Four suicide bombers struck northwest Pakistan yesterday, killing six people and unnerving civilians further. Pakistan has seen a dramatic improvement in security since its deadliest-ever extremist attack -- a Pakistani Taliban assault on a school in Peshawar in 2014 which left more than 150 people dead, mostly children, and prompted a government and military crackdown. The army intensified a long-awaited operation in the semi-autonomous tribal areas, where militants had previously operated with impunity, and the government launched a vaunted National Action Plan against extremism. Emboldened Pakistanis are once again attending public gatherings and a sense of optimism is palpable after more than a decade of militant attacks. But critics have repeatedly warned that the crackdown does not address the root causes of extremism, and homegrown groups like the Pakistani Taliban can still carry out spectacular assaults.", -1199,2017/2/16,http://www.rte.ie/news/2017/0216/853231-united-states/,US ambassador at UN says Washington still supports two-state solution in Middle East,,"US Ambassador to the United Nations Nikki Haley said the United States still supports a two-state solution to the Israeli-Palestinian conflict, a day after President Donald Trump suggested he is open to new ways to achieve peace. ""First of all, the two-state solution is what we support. Anybody that wants to say the United States does not support the two-state solution - that would be an error,"" she told reporters at the United Nations. ""We absolutely support the two-state solution but we are thinking out of the box as well."" Ms Haley's comments came after Mr Trump said that he was open to ideas beyond a two-state solution, the longstanding bedrock of Washington and the international community's policy for a settlement between Israel and the Palestinians. ""I'm looking at two states and one state, and I like the one both parties like,"" Mr Trump told a joint news conference with Israeli Prime Minister Benjamin Netanyahu. ""I can live with either one."" By uttering the phrase ""one-state"", Mr Trump he went where past presidents and most leaders feared to tread, knowing the loaded implications. - - - - - - The creation of a binational or single state that encompasses both Israel and Palestinian territories is not a viable option for most Israelis and Palestinians for religious, political and demographic reasons.-", -1200,2017/2/16,http://www.rte.ie/news/2017/0216/853104-political-updates/,As it happened: Politics today - Kenny under pressure,,, -1201,2017/2/16,http://www.rte.ie/news/2017/0216/853151-tesco/,Mandate welcomes Tesco agreement to enter talks,,"The Mandate trade union has welcomed Tesco's agreement to enter talks ""without prejudice"" with a view to settling the current dispute over contracts for long-serving workers hired before 1996. Tesco management wrote to Mandate agreeing to talks in a bid to resolve the row. It is understood a meeting will be set up in the coming days. Mandate members at eight Tesco stores began an indefinite strike on Tuesday, and a further eight stores are due to join the strike tomorrow. 23 stores will be balloted for strike action from Monday. So far all stores have remained open, despite the pickets. Mandate General Secretary John Douglas said that while the union welcomed the company's response to the union's call for ""without prejudice"" talks, they remained cautious as the company had said the solution to the dispute is ""as set out by the Labour Court in its recommendation"". That recommendation was rejected by the 250 pre-1996 staff at the centre of the row - and the union insists a solution cannot be found totally within the confines of that recommendation as it currently stands. In a statement earlier, Tesco stressed that the company has always been open to constructive dialogue to reach a reasonable, fair resolution to the changes to pre-1996 terms and conditions. The company noted that it had attended ten WRC conciliation conferences and a Labour Court hearing, and had always adhered to the industrial relations process - including accepting the Labour Court recommendation in full . Tesco reiterated that the solution to the dispute is as set out in that Labour Court recommendation, saying Mandate should also endorse it. The company said it was a matter of serious concern that Mandate officials had told some workers that ""they are next"" - a claim which management described as false, and causing significant distress and concern. It said that concern had been compounded by Mandate's call for shoppers to shop elsewhere. TDs accuse Tesco of 'union-busting attitude' The ongoing strike has been raised by Opposition TDs during a Topical Issues debate in the D��il, with Sinn F��in's Aengus Ó Snodaigh saying it is ""an absolute disgrace"" that Tesco workers had to go on strike to demand their rights. He accused Tesco of ""a union-busting attitude"" and infringing on the terms and conditions of its workers. He called on the State to step in an prevent a company as profitable as Tesco from slashing wages and attacking rights. A number of other TDs also criticised the action by Tesco, calling on the Government to intervene. In response, Minister for Jobs Mary Mitchell O'Connor said she had no ""direct role in the resolution of this or similar disputes.""- The Minister urged both parties to use the WRC and Labour Court, welcoming the announcement that both sides have agreed to more talks. List of stores already on strike: Currently, the staff in the following eight Tesco stores are on indefinite strike: Dublin Tesco, Baggot Street Lower, Dublin 2 Tesco, Ballyfermot Rd, Ballyfermot Upper, Dublin 10 Tesco, Clearwater Shopping Centre, 11 Finglas Road, Dublin 11 Kerry Tesco, Manor West Retail Park, Rathass, Tralee Longford Tesco, Rear Main Street, Deanscurragh,-Longford Meath Tesco, Navan Town Centre, Kennedy Rd, Dillonsland, Navan Offaly Tesco, Tullamore Retail Park, Portarlington Road, Cloncollig, Tullamore Wicklow Tesco, Vevay Road, Bray Stores to join strike from Friday 17 February:- Dublin Tesco, Artane Castle Shopping Centre, Kilmore Rd, Beaumont, Dublin 5 Tesco, Churchview Road, Kilbogget, Ballybrack Tesco, Roselawn Shopping Centre, Roselawn Rd, Blanchardstown, Dublin 15 Tesco, 22A Drumcondra Rd Upper, Drumcondra, Dublin 9 Tesco, Phibsborough Shopping Centre, Phibsborough Road, Phibsborough, Dublin 7 Tesco, Park Shopping Centre, Prussia Street, Arran Quay, Dublin 7 Monaghan Tesco, Unit 9 /10, Monaghan Shopping Centre, Dawson St, Tirkeenan,-Monaghan Wicklow Tesco, Kilcoole Rd, Rathdown Lower, Greystones", -1202,2017/2/16,http://www.rte.ie/news/2017/0216/853119-maternity-health-anomaly-scan/,36% of women did not get foetal anomaly scan,,"Around 36% (23,300) of women who attended antenatal services in Ireland last year did not receive a foetal anomaly ultrasound, a leading professor of Obstetrics has told a D��il committee. Professor of Obstetrics at UCC and Consultant Obstetrician at Cork University Maternity Hospital Louise Kenny said we are providing ""inadequate care"" to mothers and babies, ""which impacts upon clinical outcomes, sometimes with devastating consequences."" She is before the Oireachtas Health Committee. Usually performed between 19-22 weeks' gestation, the main purpose of the fetal anomaly scan is to screen for structural foetal abnormalities to facilitate prenatal diagnosis of a wide-range of conditions. Professor Kenny said: ""Without nationwide access to anomaly scans, we continue to provide inadequate or inappropriate care to mothers and babies, which impacts upon clinical outcomes, sometimes with devastating consequences.""- She cited the example of babies with undiagnosed structural anomalies such as cardiac defects being born outside centres of paediatric surgery and will require emergency ex-utero transfer to Dublin immediately after birth.- ""For some babies, this will significantly decrease their chance of survival. In other cases, an absence of ultrasound means that the opportunity of in utero foetal therapy will be missed and babies will die of potentially treatable conditions."" She added:-""A lack of ultrasound also has detrimental effects on maternal health. ""Women will continue to have unnecessary caesarean sections and other interventions for infants who cannot survive. ""Families will continue to be deprived of prenatal palliative care, to enable them to prepare for their baby's death. Obstetricians will continue to deal with unexpectedly bad outcomes at sometimes extremely complicated deliveries. ""We are expected to explain to parents how a major anomaly, normally clearly visible on routine ultrasound, was not diagnosed and to assist parents in dealing with the aftermath of a traumatic delivery and either unexpected bereavement or unanticipated illness or disability."" She added: ""Overall in 2016, 23,300 or 36% of women attending antenatal services in Ireland did not receive a foetal anomaly ultrasound.- ""The fundamental issue underpinning why some hospitals can provide this scan and others cannot is one of governance. ""In maternity hospitals without ring-fenced budgets and robust independent governance, women's healthcare competes with other clinical priorities and international experience demonstrates that it is always the first to be cut."" Fine Gael Senator Colm Burke asked what needs to be done-in order to make sure the service is available so that every woman has access to this facility. Professor Kenny said that ""the number of consultant obstetricians and gynaecologists in Ireland is at the lowest in the top OECD countries, sitting somewhere around 3.6 per 10,000 deliveries. ""We have a high birth rate so it's even lower when you correct for birth rate."" ""I think that we need to appoint another 100 consultants to bring us up to international norms"", she said. She said: ""It's well-known that Ireland trains some of the best doctors in the world and they currently staff the units of Australia, New Zealand the UK, Canada and America. ""We would love to bring some of our trainees home. Currently they will not come home because of a divisive contract, because the working conditions are appalling and because they will be better serviced in other countries. ""With regard to the questions around anomaly scans. I would argue strongly that this isn't an unsolvable problem. ""We do not need to find expensive and career radiographers, which are not plentiful in Ireland, we can actually train our midwives to a very high standard to perform foetal anomaly scanning."" ""There is a recognised diploma in Dublin. It takes two years but within three months of that training, midwives on that course, they can perform routine first trimester scans."" Chair of the Institute of Obstetricians Peter Boylan-said: ""We need to employ ten new consultants per year for the next ten years plus replacements for those who retire"". He said there are enough trainees coming through if the jobs were attractive enough in Ireland. He cited the example of a job between between the Rotunda Hospital and Drogheda as a consultant. ""There were no applicants for that job. That is astonishing.""", -1203,2017/2/16,http://www.rte.ie/news/2017/0216/853074-childrens-hospital-public-accounts-committee/,Board of new children's hospital to explain escalating costs,,"The Public Accounts Committee is to invite the board of the new children's hospital to appear before it to explain the escalating costs involved in the project. Fianna F��il TD Bobby Aylward said the projected costs had escalated to �1.2bn before a sod had been turned.- Previous estimates had put the cost at �150m-before the building is equipped. Committee Chairperson Sean Fleming said the matter had been raised by Independent TD Mattie McGrath and members agreed to write to the board to invite them to appear before the committee. Comptroller and Auditor General Seamus McCarthy told committee members that it should be clear where cost escalations occur and why. However, he also told the committee that the audit function was retrospective and his office could not get involved in decision-making.-", -1204,2017/2/16,http://www.rte.ie/news/analysis-and-comment/2017/0216/853026-enda-kenny/,M��che��l Lehane: Kenny facing swift heave unless he quits,,"Senior Fine Gael figures believe Enda Kenny will quit as party leader within days as he faces the unedifying prospect of a no confidence motion, writes RT?'s M��che��l Lehane. The Taoiseach indicated yesterday at his parliamentary party meeting that the leadership issue could be discussed next week but many want it dealt with immediately. However, a request by Minister for Social Protection Leo Varadkar to bring forward the timing of the next parliamentary party meeting was not agreed to. Party Chairman Martin Heydon said a meeting would take place at the usual time in Leinster House next Wednesday. It's being viewed as highly significant that the two leading contenders to replace Mr Kenny,-Simon Coveney and Mr Varadkar, both addressed the meeting with an almost identical message. It was a simple and direct one: the party needed to be ready for an-election from now on. It was taken as a coded warning to the Taoiseach to prepare to depart office given that he has made it clear he will not lead the party into the next election. And indeed this coded language was given voice after the meeting by some of those once regarded as the Taoiseach's most loyal supporters. The apparent act of co-operation between Mr Coveney-and Mr Varadkar has led some in the party to question if both men have a tacit agreement in place that guarantees the defeated candidate the job of T��naiste. One way or the other it has had the effect of the quickening those inexorable moves against the Taoiseach should he fail to announce his departure plans. ""The next few days will tell a lot but it's looking increasingly likely that this will be wrapped up very quickly. He will be given an ultimatum privately today by the heirs to the throne and the rest of the party will follow if he doesn't go,"" said one Fine Gael TD. It is also-expected that some of Mr Kenny's senior ministers, who have been given assurances about their place in a reshuffled cabinet under any a new leader, will soon openly speak about the need for the Taoiseach to signal his intention to step down. This will mean though that the anticipated Cabinet clear-out will not be as extensive as was first thought by party backbenchers. But it's likely Finance Minister Michael Noonan will be one of those forced to exit office. ""I don""t think he'll even get time to collect his coat. He tried to say at the PP meeting that only himself and the Taoiseach could handle the Brexit negotiations but he was just scoffed at,""-a party TD said. Others such as Jobs Minister Mary Mitchell O'Donnor, Foreign Affairs Minister Charlie Flanagan and Agriculture Minister Michael Creed are set to remain in any new cabinet. While Education Minister Richard Bruton, Public Expenditure Minister Paschal Donohoe, Health Minister Simon Harris and Chief Whip Regina Doherty seem certain to be senior figures under any new leader. The futures of the Justice Minister Frances Fitzgerald and the Arts Minister Heather Humphreys are unclear right now. Under the Fine Gael constitution the election of a new leader must be completed within 20 days of a vacancy arising. The result will be decided by TDs, Senators, MEPs, party members and councillors. Additional reporting Pat McGrath Fine Gael members in the Taoiseach's constituency are still hopeful he will be given time to make his own decision regarding the timing of his departure from office. While many admit that Enda Kenny faces serious challenges in the coming days, they are expressing the view that he should be afforded space to decide on when he will step down as leader. Castlebar based Fine Gael Councillor Cyril Burke said the parliamentary party needed to think seriously about the impact a move on Mr Kenny could have. He said the Taoiseach was best equipped to deal with the many challenges posed by Brexit and deserved to be allowed determine the timeframe for leaving office. Cllr Burke said that he would not write off the Taoiseach at this stage, saying he was at his best when his back was to the wall. He expressed the view that he could use next week's Fine Gael Parliamentary Party meeting to stress the importance of stability at this time. Those sentiments were echoed by former Fine Gael Mayor of Castlebar Brendan Heneghan, who said ""the fat lady has not yet sung"". Long-standing party member Tom Collins said he felt that the Taoiseach would remain in office until he was certain that the stability of the country was secured. He suggested that while some leadership contenders wanted a date for Mr Kenny's departure, they were less interested in assuming the top job at this point in time. There's agreement that any decision by the Taoiseach would be taken following consultation with a very limited circle of people. Several party members expressed the view that adversity brought out the best in Mr Kenny and some went as far as to suggest that he might try and face down a motion of no confidence, were one to be tabled.", -1205,2017/2/16,http://www.rte.ie/news/2017/0216/853243-sea-ice-poles/,Sea ice at poles hit record low for January,,"The amount of sea ice at the Earth's poles fell to a record low for January, while the planet's temperatures last month were the third highest in modern times, US government scientists have said. The monthly report by the National Oceanic and Atmospheric Administration is the first of its kind released in 2017, and comes on the heels of the third year in a row for record-setting heat established in 2016. The US federal agency's analysis of global sea surface and land temperatures found that January's temperature was 1.58 Fahrenheit (0.88 Celsius) above the 20th century average of 53.6 F (12 C). ""This was the third highest for January in the 1880-2017 record, behind 2016 (highest) and 2007 (second highest),"" said the report. Those unusually warm temperatures contributed to the melting of sea ice in the Arctic, where the average ice cover for January was 487,000 square miles (1.26 million square kilometers) -- or 8.6% below the 1981-2010 average. ""This was the smallest January extent since records began in 1979 and 100,000 square miles smaller than the previous record set in 2016,"" said the report. In the Antarctic, sea ice extent for January was 432,000 square miles (22.8%) below the 1981-2010 average. ""This was the smallest January Antarctic sea ice extent since records began in 1979 and 110,000 square miles smaller than the previous record set in 2006,"" it added. Despite the loss of sea ice, precipitation varied widely across the globe last month. Snow has been falling more heavily than usual in the Northern Hemisphere, where snow cover extent during January reached 890,000 square miles above the 1981-2010 average. ""This was the sixth largest January Northern Hemisphere snow cover extent in the 51-year period of record,"" said the study. ""The North American snow cover extent was the 13th largest on record, while the Eurasian snow cover extent was the seventh largest.""", -1206,2017/2/16,http://www.rte.ie/news/2017/0216/853171-dublin-crash/,Man critical after four-car collision in Dublin,,"A man is in a critical condition in hospital-following a road traffic collision involving four cars in Dublin. The crash happened at around 1.10pm on St Peter's Road in Walkinstown. A man in his 70s, who was the sole occupant of one of the cars, was seriously injured in the collision. He has been taken to Tallaght Hospital. The occupants of the other three cars involved were not injured. The road is currently closed and diversions are in place. Garda�� are appealing for anyone with any information about the crash to contact Crumlin Garda Station 01 666 6200, the Garda Confidential Line on 1800 666 111 or any garda station.", -1207,2017/2/16,http://www.rte.ie/news/2017/0216/853015-passports/,Passport Office hires more staff to meet demand in wake of Brexit,,"The Department of Foreign Affairs has said that due to an increase in Irish passport applications, the Passport Office is recruiting extra staff. In a statement to RT?'s Morning Ireland, the department said Brexit has resulted in a rise in submissions from Northern Ireland and Britain. Anyone who has a parent or grandparent born in Ireland is entitled to an Irish passport. Latest figures from the Department of Foreign Affairs show that applications from the UK were up 74% in January compared to the same time last year. In January this year, over 7,000 people from Northern Ireland applied for an Irish passport, up from 3,973 in the same month last year. In Britain there was a jump of 71%, with 6,000 applying this January. Last year passport applications from Northern Ireland saw an increase of 26.5% over 2015 to 67,972, while application levels from Britain increased by 40.6% to 64,996. Opportunities as an EU citizen include living and working anywhere within the union, a student exchange programme, and having access to healthcare when travelling. However, there is now a chance those perks will disappear for British citizens following Brexit. Minister for Foreign Affairs-Charlie Flanagan-said that to alleviate pressure on the passport service, the department is recruiting over 230 temporary staff, over half of whom-are already in place. He also added that an online adult passport renewal system will be rolled out before the end of March to ease demands. Mr Flanagan said: ""Early indicators in 2017 are showing that increased demand for passports is likely to be sustained, certainly in the immediate future. I am carefully monitoring passport services."" He continued: ""It is vital that applicants check the validity of their passports before booking travel, apply in good time, ensure forms are correctly completed, and consult the different turnaround times for different categories of passport."" Mr Flanagan was responding to comments by Labour MP Gisela Stuart,-who co-chaired the Vote Leave campaign in the UK, that the high number of Britons applying for Irish passports will be a ""challenge"" for both the UK and Ireland. Ms Stuart said that it is an issue politicians have to respond to. The German-born Member of Parliament, who had to give up her German citizenship on election to the House of Commons in the 1990s-as it was not permitted for members to retain two nationalities, said there are ""more people living on mainland United Kingdom who have the right to Irish citizenship than there are actually currently Irish citizens in Ireland"". She said the rise in the number of Britons applying for Irish passports is an ""understandable reaction"" due to a period of uncertainly but ""that doesn't have to be"". Just under 65,000 people applied for an Irish passport in 2016.", -1208,2017/2/16,http://www.rte.ie/news/2017/0216/853203-ballyogan-garda/,Woman unharmed after hostage situation in Dublin,,"An investigation is under way after a woman-was held hostage at a house in Dublin. Garda�� were called to the house in Ballyogan Green at around 11.20am following reports of a disturbance. The woman, who is in her 30s, was being held hostage by a man aged in his 40s. A garda spokesperson said that after a short time the woman left the house unharmed. Garda negotiators were in contact with the man throughout and at around 3.30pm he left the house and was taken to hospital for treatment. A replica firearm was recovered. An Army bomb disposal team was also requested as a precaution, according to garda��.", -1209,2017/2/16,http://www.rte.ie/news/2017/0215/852836-fine-gael-enda-kenny/,D��il passes motion of confidence in Government,,"The D��il has passed a-Fine Gael-motion of confidence in the Government, tabled in response to Sinn F��in's motion of no confidence announced over the-handling of the response to the Sgt Maurice McCabe affair. The motion was passed by 57 votes to 52, with 44 abstentions by Fianna F��il. It came after an often heated discussion at Leinster House, with Taoiseach Enda Kenny saying the motion was a result of ""political opportunism"" on the part of Sinn F��in. However, Sinn F��in leader Gerry Adams said the Taoiseach leads a Government ""without a purpose and devoid of direction"", adding that it had lost the authority to govern. Mr Adams also attacked Fianna F��il saying the party only wanted to ensure that this Government survives. His comments came after Fianna F��il leader Miche��l Martin said that when Sinn F��in comes across an issue, it looks at how it can exploit it. Mr Martin also said there is no evidence that an immediate election will help address the scandal or help the country overcome the challenges it faces. Ahead of the vote, T��naiste and Minister for Justice Frances Fitzgerald paid tribute to garda whistelblower-Sgt McCabe and his family for speaking out. ""Any wrongdoing within An Garda S��och��na must be addressed fully and fairly,"" Ms Fitzgerald said. The D��il will sit again at 10.30am. As it happened: Govt survives D��il motion of confidence D��il passes motion of confidence in the Government - @EdelMcAllister reports pic.twitter.com/Pids8qq5px ""?RT? News (@rtenews) February 15, 2017 Varadkar and Coveney warn election may be imminent However, despite the motion passing it is understood both Leo Varadkar and Simon Coveney have told Fine Gael TDs and Senators that the party must be ready for an election. They made the comments at a parliamentary party meeting this evening at Leinster House that heard the Taoiseach concede that the last few days ""had not been easy"". Both ministers are seen as contenders to replace Mr Kenny, who is under increasing pressure to indicate when he intends to step down. TDs at Fine Gael parliamentary party meeting say that the party must be ready for an election - @theddp reports https://t.co/UR0rUC6osI pic.twitter.com/jVSueGIuQC ""?RT? News (@rtenews) February 15, 2017 Earlier, a-backbench Fine Gael TD said the Government is in a precarious position and called on his party to act in the next ""six to eight weeks"" to select a new leader. John Paul Phelan told Kilkenny-Carlow radio-station KCLR that there should be a new leader of Fine Gael in the near future because he thinks there will be a general election in the near future. Fellow Fine Gael TD Jim Daly meanwhile said he thinks the issue of the party leadership plays second fiddle at a time of national crisis. Speaking on RT?'s Today with Sean O'Rourke, he said the people he represented were much more concerned about the welfare of the McCabe family and the issues surrounding the child and family agency Tusla and the possibility of collusion involving State agencies. The Government has agreed to set up an inquiry into allegations that garda whistleblower Sgt Maurice McCabe was smeared by senior garda��. The Cork South West TD, who chairs the Oireachtas Committee on Children and Youth Affairs, said he did not think it was in the national interest to be moving the debate towards the leadership of Fine Gael. Mr Daly said the Taoiseach's handling of the garda whistleblower crisis is not his finest hour but his errors, admitted in the D��il yesterday, were not an election issue. On the same programme, Sinn F��in TD Jonathan O'Brien accused Fianna F��il of sitting on the fence at a time of national crisis over its planned abstention in the D��il vote. He said the priority was to get truth and justice for Sgt McCabe and other whistleblowers through a public inquiry. He said the Taoiseach has consistently contradicted himself over the past few days and the only way to get a better Government was to go to the people. However, Fianna F��il TD Timmy Dooley that while the entire escapade over the past week was shambolic and unedifying, calls for an election were not warranted at this time. He added that he was not going to engage in discussions over the Fine Gael leadership.", -1210,2017/2/16,http://www.rte.ie/news/business/2017/0216/853111-trudeau-on-world-trade/,Trudeau says Canada and EU must lead world economy,,"Canadian Prime Minister Justin Trudeau said today that the whole world benefited from a strong European Union and that the bloc and his country needed to lead the international economy in challenging times.- - - - - - - Mr Trudeau told the European Parliament that the Union was an unprecedented model for peaceful co-operation. The speech marked his distance from both the US under new President Donald Trump, who has questioned the value and future of the bloc, and from Britain, which has voted to leave it.- An effective European voice on the global stage was not just preferable, but essential, Mr Trudeau said.- ""You are a vital player in addressing the challenges that we collectively face as an international community,"" he told MEPs a day after they backed an EU-Canada free trade deal.- ""Indeed the whole world benefits from a strong EU,"" he added.- Mr Trudeau said that Canada and the European Union shared a belief in democracy, transparency and the rule of law, in human rights, inclusion and diversity.- ""We know that, in these times, we must choose to lead the international economy, not simply be subject to its whims,"" he said. He added that both parties had shown they valued trade and a belief that it could bring prosperity to their citizens.- With the clearance of their trade deal, Canada and the European Union offer a counter to Mr Trump, who has withdrawn from the Trans-Pacific Partnership (TPP) and wants to rework the North American Free Trade Agreement.- For Canada, the Comprehensive Economic and Trade Agreement (CETA) is important to reduce its reliance on the neighbouring US as an export market.- For the EU, it is a first trade pact with a G7 country and a success to hail after months of protests at a time when the bloc's credibility has taken a beating from Britain's vote last June to leave.- Mr Trudeau's speech, in English and French, got a warm welcome from MEPs-in Strasbourg as he signalled Canada's distance from both its big neighbour to the south under Mr Trump and from London. Brexit supporters there argue that ties to Britain's old empire can help expand trade once out of the European Union.- Both Canada and the EU, said Mr Trudeau, needed to ensure that their Comprehensive Economic and Trade Agreement (CETA), set to enter force in months, worked for people.- ""If we are successful, CETA will become the blueprint for all ambitious, future trade deals. If we are not, this could very well be the last. So make no mistake, this is an important moment for us.""- Mr Trudeau said many people were worried that the current system only benefited society's luckiest few and that this was a valid concern.- Trade, he said, must be inclusive, so that everyone benefited. ""And this agreement delivers just that,"" he added. -", -1211,2017/2/16,http://www.rte.ie/news/special-reports/2017/0216/853044-shetland-brexit-scotland/,Shetlanders flirt with independence after Brexit vote,,"Of all the ramifications of the Brexit vote, the fate of the Shetland Islands in the North Atlantic and their oil fields and fisheries may not top the list for negotiators in London and Brussels. But the prospect of a new bid for Scottish independence as Britain leaves the EU is making some residents of these rugged islands think again about whether they would be better off alone. ""It would be wonderful,"" Andrea Manson, a Shetland councillor and a key figure in the Wir Shetland movement for greater autonomy, told AFP at the guesthouse she runs, the Mid Brae Inn. The movement's name means ""Our Shetland"" in the local Scots dialect, a derivation of Middle English which has replaced the islands' original Germanic language, Norn. The remote archipelago, already fiercely independent in spirit, is geographically and culturally closer to Scandinavia than to Edinburgh, and politically more aligned with London and Brussels. In the past 1,300 years, Shetland has been overrun by Scandinavian vikings, pawned to Scotland as a wedding dowry by Denmark, subsumed into the United Kingdom in 1707, and dragged into the European Economic Community against its will in 1973. The Shetlands were the only part of Britain, along with the Western Isles of Scotland, that voted against EEC membership in a 1975 referendum. The annual festival of fire marks the end of the yule season in the Shetlands 'Control of the seabed' Many Shetlanders are sceptical of Scottish separatism. In the final tense days of the 2014 independence referendum, the local MP Alistair Carmichael, who was minister for Scotland at the time, said the islands could try to remain part of Britain if the rest of Scotland left. In the end, 55% of Scots voted to stay in Britain. The unionist vote in the Shetlands was 63.7% - one of the highest levels in Scotland. Now Scottish First Minister Nicola Sturgeon has warned that a second independence referendum is ""highly likely"" following the Brexit vote - and Shetland is once again considering its position. The Shetland Islands are about 160km from the Scottish mainland (Pic: Google Maps) ""We would like control of the seabed around us, the fishing ground around us, and the freedom to get rid of some of the bureaucracy that comes down from the EU, Westminster and the Scottish parliament,"" Ms Manson said. ""Our seas are being plundered by foreign boats. We also contribute an enormous amount of money to the national economy through taxes, through the oil revenues, and yet we don""t get back our fair share."" A fishing boat sits moored in the harbour in Lerwick Scotland has around 60% of the EU's oil reserves and the second-largest volume of proven natural gas reserves, most of it located around Shetland. The islands also land more fish than ports in England, Wales and Northern Ireland combined. ""I don""t suppose we would ever be allowed full independence,"" Ms Manson said, adding: ""In an ideal world we would be a British overseas territory. We would be to Britain what Faroe is to Denmark."" The Faroe Islands lie about 320km-northwest of Shetland and have autonomous status within the Kingdom of Denmark. They have an almost identical landmass to Shetland but twice the population, and many Shetlanders envy the archipelago's independent parliament and vast sovereign waters. The Faroe Island will hold a referendum in April 2018 on a new constitution that would give the territory the right to self-determination. Power to the people Tavish Scott of Scotland's Liberal Democrat party, who represents Shetland in the Scottish Parliament, said he understood the desire for autonomy. ""Shetland certainly explored --and I think again will explore - what kind of constitutional future it wants,"" he told AFP. But Scotland's nationalist government is keen to retain Shetland as a jewel in the economic crown of an independent Scotland. The flag of Shetland Maree Todd, a Scottish National Party lawmaker, said that the party could discuss Shetland's sovereignty, but that she believed it would be better off as part of an independent Scotland. ""Of course I think it is worth discussing,"" she said, adding that islanders are not ""entirely sceptical"" about the prospect of Scottish independence. ""We want power to come back to Scotland, not just to Edinburgh but to the people of Scotland,"" she said.", -1212,2017/2/17,http://abcnews.go.com/Politics/trump-press-conference-fact-check-president-wrong/story?id=45548271,Trump press conference fact-check: What the president got wrong and right,,"President Donald Trump held a press conference at the White House Thursday to announce his new pick for labor secretary, Alexander Acosta, but once he began taking questions from reporters, the focus shifted away from Acosta to a slew of other topics: Allegations of his campaign's contact with Russians, General Flynn's resignation, anti-Semitism in the U.S., and a popular go-to topic for the president, his disdain for the mainstream media. Below are more than a dozen false, questionable or misleading claims Trump made over the course of the 75-minute press conference -- as well as a few that are backed up by the facts. TRUMP: ""I guess it was the biggest electoral college win since Ronald Reagan."" FACT: Trump guessed wrong: His electoral college margin was smaller than President Obama's in 2012. When a reporter questioned Trump's claim, he later said, ""I don't know. I was just given that information -- it was a big margin."" TRUMP: ""I think we're setting a record, or close to a record, in the time of approval of a cabinet."" FACT: Not true. Trump has more unconfirmed Cabinet nominees at the four-week mark than any another other President in history. But, here's a point of reference: President Obama's cabinet was not complete until April 28, 2009, when his pick for Secretary of Health and Human Services, Kathleen Sebelius, was confirmed. TRUMP: ""I can't get my cabinet approved, and they'r outstanding people. Like Senator Dan Coats, who is there, one of the most respected men in the senate. He can't get approved ... I've also worked to install a cabinet over the delays and obstruction of Senate Democrats."" FACT: Not quite. A Senate intelligence aide says the committee does not have all of his paperwork yet, but that the committee is ""eager to get his hearing scheduled."" Committee Chair Sen. Richard Burr told The Hill that ""some of that's out of our control. It's FBI security, background checks,""?telling the paper Coats himself filed everything he needs to. In fact, the committee received some of the necessary disclosures just hours after the press conference. Pres. Trump: ""This administration is running like a fine-tuned machine, despite the fact that I can't get my cabinet approved."" pic.twitter.com/Rtj3jSN09o TRUMP: ""Drugs are becoming cheaper than candy bars."" FACT: Well, most chocolate bars retail for about one dollar. And according to crowdsourced street drug pricing sites like streetRx, it is possible -- albeit rare -- to find a single pill of some prescription drugs for that price. But illegal drugs like marijuana, cocaine, heroin and meth, which Trump was referring to, cost significantly more than one dollar. TRUMP: ""Jobs are pouring out of the country."" FACT: Here are the stats: The number of jobs in the U.S. has increased every month since October 2010, according to data from the Bureau of Labor Statistics. Still, the U.S. has lost nearly 5 million manufacturing jobs over the last two decades, according to BLS data. TRUMP: ""Hillary Clinton gave [Russia] 20 percent of our uranium."" FACT: Trump was referring to Russia's nuclear power agency buying a Toronto-based company that operates on land worth roughly 20 percent of U.S. uranium production capacity -- not actual uranium, according to Politifact. Clinton, who was Secretary of State at the time, couldn""t approve or block the deal. Politifact rated it ""Mostly False."" TRUMP: ""We had to go quicker than we thought because of the bad decision we received from a circuit that has been overturned at a record number. I've heard 80 percent. I find that hard to believe. That's just a number I heard, that they'r overturned 80 percent of the time."" FACT: According to a 2010 study published in Landslide, the 9th Circuit had an 80 percent reversal rate from 1999 to 2008. It was the top spot for a regional circuit court. A recent analysis of cases from 2010 to 2015 by SCOTUSBlog concluded that the 9th Circuit also has an 80 percent reversal rate, but that was third place -- behind the 6th Circuit with 87 percent and 11th Circuit with 85 percent. TRUMP: ""People came out and voted like they've never seen before."" FACT: Again, this isn't correct. Around 60 percent of eligible Americans turned out to vote in 2016, according to estimates from the University of Florida's U.S. Elections Project. According to researchers at the University of California at Santa Barbara, the highest voter turnout in American history was the election of 1876 with a voter turnout rate of nearly 82 percent. TRUMP: ""There has been a tremendous surge of optimism in the business world."" FACT: Perhaps a bit of an overstatement. Data from the Conference Board shows the consumer confidence index climbing from 107.1 in the end of October to 113.3 by the end of December. It fell slightly to 111.8 in January. Pres. Trump: Stock market has hit record numbers, there's been a surge of optimism in the business world, factories coming back to the U.S. pic.twitter.com/gSCBgXWSn3 TRUMP: ""People [addressing reporters], you have a lower approval rate than congress, I think that's right ... I heard lower than Congress."" FACT: Not true. A Gallup poll last September found that only 32 percent of Americans say they have a great deal or fair amount of trust in the media -- a new low. But according to Gallup poll conducted in January, Congress has a 19 percent approval rating. TRUMP: ""I got 306 electoral college votes."" FACT: Not the case. Trump received 304 votes in the Electoral College. Two electors who were projected to go to him went rogue and voted for other candidates. TRUMP: ""The press -- the public doesn't believe you people anymore."" FACT: Again, the aforementioned Gallup found that only 32 percent of Americans say they have a great deal or fair amount of trust in the media -- a new low. That includes 51 percent of Democrats, 30 percent of independents and only 14 percent of Republicans. TRUMP: ""We have made incredible progress. I don't think there's ever been a president elected, who in this short period of time has done what we've done ... Again, I say it, there has never been a presidency that's done so much in such a short period of time."" FACT: Another overstatement. At this point in his presidency, Trump has signed 12 executive orders vs. 15 executive orders for Obama. Granted, Obama had signed three bills into law, while Trump has signed four. However, one of Trump's was a necessary rule change for his pick for Secretary of Defense. But one of Obama's major achievements came on Feb. 17 when he signed his broad economic stimulus law. Pres. Trump: ""I don't think there's ever been a president elected who, in this short period of time, has done what we've done."" pic.twitter.com/fOegvgcPrB TRUMP: ""He [Alexander Acosta] is a member and has been a member of the National Labor Relations Board and has been through Senate confirmation three times."" FACT: Acosta is not currently a member of the National Labor Relations Board. He served as a member from 2002 to 2003. TRUMP: ""Since my election, Ford announced it will abandon its plans to build a new factory in Mexico and will instead invest $700 million in Michigan creating many, many jobs. Fiat Chrysler announced it will invest $1 billion in Ohio and Michigan, creating 2,000 new American jobs."" FACT: In early January, Ford and Fiat did announce plans to expand and invest in U.S. manufacturing. Fiat Chrysler made a point of saying the decision was not the result of conversations with the incoming White House. Instead many economics and analysts cite that fact that both car companies had long planned to invest in electric cars, which are easier to build in the U.S. and had received tax incentives in previous years to invest in fuel-economy technology.", -1213,2017/2/17,http://abcnews.go.com/Politics/robert-harward-turns-national-security-adviser-position/story?id=45515116,Robert Harward turns down national security adviser position,,"Retired admiral and former Navy SEAL Robert Harward was offered the job of national security adviser to President Donald Trump, but has turned down the position for personal reasons, a senior administration official tells ABC News. Harward, 60, had been the leading candidate to replace Gen. Michael Flynn, who was fired Monday, sources said. Flynn had misled Vice President Mike Pence about whether he discussed sanctions with the Russian ambassador ahead of the inauguration. Harward most recently served as the deputy commander of U.S. Central Command under Gen. James Mattis, now the Secretary of Defense, a relationship which was seen as a strong selling point, administration officials said. Harward, an ABC News consultant, and Trump had spoken recently about a position in the administration, according to the officials. But after weighing the opportunity of national security adviser, Harward cited his family in declining the job, the senior administration official said. ""I was humbled and honored,"" Harward told ABC News, but said of the job, ""It takes 24 hours a day of focus... It's a tough sacrifice"" and after 40 years of military service, he was not ready to come back from retirement. Harward denied turning down the offer because of chaos in the West Wing. Other names have been under consideration as possible replacement for Flynn, according to administration officials: retired Gen. David Petraeus, former Ambassador Bob Kimmitt, and retired Gen. Keith Kellogg -- who is currently serving as the acting NSA -- have all been in the mix. ""I have somebody that I think will be outstanding for the position,"" President Trump said Thursday at a White House press conference. Thursday evening, reaction to Harward's decision was already coming in. ""Robert Harward's decision to not take over General Flynn's old job is the latest evidence that the Trump WH is falling into utter disarray,"" House Democratic Leader Nancy Pelosi tweeted. Robert Harward's decision to not take over General Flynn's old job is the latest evidence that the Trump WH is falling into utter disarray. ABC News""?Elizabeth McLaughlin contributed to this report.", -1214,2017/2/17,http://abcnews.go.com/Politics/man-arrested-fbi-threatening-dylann-roof-style-attack/story?id=45555800,Man arrested by FBI after threatening 'Dylann Roof-style attack',,"A man with a felony record in South Carolina purchased a gun from an undercover FBI agent with the intention of carrying out an attack in ""the spirit of Dylann Roof,"" authorities said Thursday. Benjamin McDowell, 29, who had allegedly become affiliated with white supremacist gangs during his time in prison, purchased a .40 caliber Glock handgun and ammunition, according to an affidavit filed by FBI agent Grant Lowe. According to the complaint, McDowell was arrested in Myrtle Beach, South Carolina shortly after purchasing the weapon and charged as a felon in possession of a firearm. The agent said that McDowell had made unspecified threats, once telling Lowe that he might shoot at a gathering of black people. Authorities began investigating McDowell in December after he threatened a local synagogue on Facebook. Several days later, he again posted to Facebook, complaining that white supremacists were often unwilling to act on their convictions. ""All they wanne (sic) do is stay loaded on drugs the Jews put here to destroy white man and they feast on the drugs. they should be Feasting on the enemy that stole their Heritage and their bloodline and trying to run us off of this Earth,"" McDowell wrote. ""if you ain't got the heart to fight for Yahweh like dylann roof did, you need to shut the f--- up."" On or about Jan. 6, 2017, according to the complaint, McDowell had requested an ""iron,"" a code word for a gun, over Facebook Instant Messenger. Court records show that since 2008, McDowell's criminal record included charges for assault and burglary. It also said local authorities had kept tabs on him prior to December because of the alleged white supremacist connections he had made in prison. Dylann Roof was sentence to death last month for the 2015 massacre of 9 black worshipers at Emanuel AME Church in Charleston, South Carolina.", -1215,2017/2/17,http://abcnews.go.com/US/florida-man-arrested-plotting-bomb-target-stores-companys/story?id=45553743,Florida man arrested for plotting to bomb Target stores so company's stock would plunge,,"A Florida man has been charged in connection with a plot to bomb Target stores along the East Coast, with hopes that such an attack would force the retailer's stock to plunge and allow him to cheaply buy its stock, federal investigators announced Thursday. Mark Charles Barnett of Ocala has been charged with ""possession of a firearm (destructive device) affecting commerce by a previously convicted felon,"" according to a news release issued by the U.S. Attorney's Office for the Middle District of Florida. Barnett ""theorized that the company's stock value would plunge after the explosions, allowing him to cheaply acquire shares of Target stock before an eventual rebound in prices,"" reads the press release. A Target spokeswoman told ABC News, ""Target commends the law enforcement agencies responsible for apprehending this individual. As this is an active investigation, please contact the Public Affairs Office for the U.S. Attorney's Office for the Middle District of Florida with any additional questions."" Barnett offered an unnamed individual -- referred to as a ""confidential source"" (CS) in the documents -- $10,000 to plant bombs in stores in several states, according to the affidavit supporting the criminal complaint cited in the press release. ""Barnett created at least 10 of the explosive devices, disguised in food-item packaging, which Barnett delivered to the CS on February 9, 2017,"" reads the press release, citing the affidavit supporting the criminal complaint. ""Barnett then asked the CS to place the explosive devices on store shelves from New York to Florida. He also provided the CS with a bag of gloves, a mask, and a license plate cover to disguise the CS's identity from law enforcement."" But the individual contacted law enforcement officials instead instead of planting the devices in the stores. ""Once FDLE received the information we initiated an investigation. Upon determining the nature of the threat we notified and began working jointly with our local, state and federal partners. The arrest in this case demonstrates the importance of collaboration in keeping our communities safe,"" said Florida Department of Law Enforcement commissioner Rick Swearingen. ""An explosives expert determined that they were capable of causing property damage, serious injury, or death to nearby persons upon detonation,"" according to the press release. Thanks for keeping Florida safe FDLE Jax! Suspect Mark Barnett was plotting to place bombs in Target stores.https://t.co/Hm8BA6sgcl Federal agents subsequently searched Barnett's house and ""components consistent with those used to create the explosive devices"" were discovered, the U.S. Attorney's Office said. These items included rocket igniters, M-5000 explosives and battery sources. ""The swift work of ATF Special Agents, Explosives Enforcement Officers, and other specialized violent crime resources foiled this individual's plot that could have caused great harm to the public,"" said Special Agent in Charge Daryl McCrary, ATF Tampa Field Division. ""Our Federal and State law enforcement partners played a vital role in supporting this investigation, and ATF will continue to work alongside the U.S. Attorney's Office to bring this case to a successful resolution."" If convicted, Barnett faces a maximum penalty of 10 years in federal prison. Barnett is currently in custody at the Marion County Jail on state charges for violating his terms of probation The U.S. Attorney's Office cautioned, though, ""a criminal complaint is merely an allegation that a defendant has committed one or more violations of federal criminal law, and every defendant is presumed innocent unless, and until, proven guilty."" According to ABC affiliate WFTV in Orlando, Barrett was already on probation and wearing a court-ordered GPS monitor for a number of felony offenses, including kidnapping, multiple counts of sexual battery with a weapon or force and grand theft. It is unclear if Barrett has a lawyer.", -1216,2017/2/17,http://abcnews.go.com/Politics/president-trump-replace-halted-travel-ban-executive-order/story?id=45545474,President Trump to replace halted travel ban with new executive order,,"President Donald Trump is planning to issue a new executive order related to his earlier action barring entry into the U.S. to citizens from seven predominantly Muslim countries, according to court documents filed Thursday by U.S. Department of Justice and Trump's comments at a press briefing. Trump's previous order was halted by a federal court judge in Washington state who issued a nationwide temporary restraining order on February 3. The Trump administration quickly appealed the case to the 9th U.S. Circuit Court of Appeals in San Francisco but that court's three-judge panel handed down a unanimous decision that left the restraining order in place. Trump tweeted a fiery response to that ruling, promising to pursue the matter in court, but in Thursday's filing, the Justice Department informed the 9th Circuit that it is not seeking a reconsideration on the matter. ""rather than continuing this litigation, the President intends in the near future to rescind the Order and replace it with a new, substantially revised Executive Order to eliminate what the panel erroneously thought were constitutional concerns,""?explains the filing from the Justice Department. Shortly before the new court filing, Trump defended the legality of the executive order at a White House news conference, stating that his administration is ""Appealing""?the original result, but also confirming that he would be moving ahead with a new action that will be ""gailored""?to the court's earlier decision and issued ""sometime next week.""?""We are going further -- we're issuing a new executive action next week that will comprehensively protect our country,""?said Trump. "" we'll be going along the one path and hopefully winning that.""?In its filing with the 9th Circuit, the Justice Department maintains its stance that the court's ruling was erroneous, but cites the ""unusual circumstances presented""?by the ""expedited proceedings""?and ""Complexity and constitutional magnitude of the issues.""?""the government respectfully submits that the most appropriate course would be for the Court to hold its consideration of the case until the President issues the new Order and then vacate the panel's preliminary decision,""?the Justice Department writes. In its original form, the executive order put a 90-day stop on entry to the United States for nationals of Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. Confusion ensued in the aftermath of the order's signing as legal permanent residents of the U.S. and some visa holders from the affected countries were denied admission at various airports. The administration's filing Thursday reiterates the government's stance that the executive order was never meant to apply to legal permanent residents, but instead that ""its focus is aliens seeking initial entry""?who have ""no constitutional rights regarding their application[s].""?The Justice Department does concede though that the order was ""Ambiguous""?with respect to legal permanent residents which led to conflicting ""reasonable""?interpretations. Additional clarification in Thursday's filing explains that the order was only meant to apply to aliens attempting to enter the country, not persons already in the U.S. who haven""t left. Trump maintained Thursday that the roll-out of the order ""was perfect,""?adding that the only problem they encountered was with ""A bad court.""?""We had a court, what I consider to be, with great respect, a very bad decision, very bad for the safety and security of our country,""?said Trump.", -1217,2017/2/17,http://abcnews.go.com/International/russian-spy-ship-now-off-virginia-coast/story?id=45547194,Russian spy ship now off Virginia coast,,"The Russian spy ship Viktor Leonov is no longer off the coast of Connecticut, but has moved southward to a position northeast of Norfolk, Virginia. The vessel's presence 30 miles south of a U.S. Navy submarine base in New London, Connecticut drew international headlines this week even though U.S. officials were not concerned by the ship's operations, which are in international waters. On Tuesday,the Russian spy ship had positioned itself east of Long Island about 30 miles south of the New London submarine base. Officials said the vessel was ""loitering"" in the area, presumably gathering intelligence about U.S. Navy submarine operations, similar to what it did in 2014 and 2015 when it stayed for several weeks at a time close to the other U.S. Navy submarine base at Kings Bay, Georgia. But, a U.S. official said the Leonov only spent about 24 hours in the waters off of Connecticut before it began moving south sometime on Wednesday. By Thursday morning, the ship was 75 miles northeast of Norfolk. Throughout its transit up and down the Eastern seaboard this week, the Leonov has remained in international waters, well beyond U.S. territorial waters, which extend 12 miles from shore. American officials have downplayed the presence of the Russian ship off the East Coast, noting that it has been operating in international waters and conducting missions that were common during the Cold War. Equipped with communications gathering equipment, the Viktor Leonov is able to track the activity and movements of the U.S. Navy's submarine fleet. At a White House news conference Thursday, President Donald Trump referenced the ship's presence off of Connecticut as ""not good."" Trump said he recently told Secretary of State Rex Tillerson that ""the greatest thing I could do is shoot that ship that's 30 miles off shore right out of the water,"" but that it would not be a great move for improving relations with Russia. In 2014 and 2015, the Leonov spent weeks in international waters close to the submarine base at Kings Bay. This week's trip to the waters off of Connecticut was the first time the intelligence-gathering ship had visited the area close to the submarine base at New London. One official speculated the Leonov was not able to gather a good amount of intelligence given the brief amount of time it spent off of Connecticut and the public exposure it's visit received. It is unclear where the spy ship could be headed, it's current path will likely take it past Kings Bay, Georgia, where it had briefly stopped on its way north. Or it could head to Havana, Cuba where it made ports of call in 2014 and 2015. The Leonov has been involved in three of the four Russian spy ship visits to the East Coast since 2014, when the Russian Navy resumed a practice that was common throughout the Cold War.", -1218,2017/2/17,http://abcnews.go.com/Entertainment/wireStory/judge-tosses-defamation-lawsuit-bill-cosby-45548829,Judge tosses out defamation lawsuit against Bill Cosby,,"A federal judge in Massachusetts has dismissed a defamation lawsuit against comedian Bill Cosby, although he still faces criminal charges in Pennsylvania. Judge Mark Mastroianni ruled Thursday that Katherine McKee didn't adequately show Cosby defamed her when his representatives called a 2014 New York Daily News story on her rape allegations defamatory and demanded a retraction. The former actress alleged the 79-year-old Cosby raped her in a Detroit hotel in 1974. McKee was among dozens of women to come forward with allegations recently and among at least eight suing for defamation in Massachusetts, where Cosby owns a home. Cosby's lawyers called Thursday's decision the ""correct outcome."" McKee's attorneys didn't immediately comment. In Pennsylvania, ""The Cosby Show"" star has pleaded not guilty to sexually assaulting a former employee at Temple University.", -1219,2017/2/17,http://abcnews.go.com/US/russell-simmons-teams-rabbi-imam-anti-trump-nyc/story?id=45555632,"Russell Simmons teams up with rabbi, imam for anti-Trump rally dubbed 'I Am A Muslim, Too'",,"The 9th Circuit Court may have blocked President Donald Trump's executive order temporarily banning immigration from seven Muslim-majority nations, but a massive rally organized by Def Jam Records co-founder Russell Simmons in response to the travel ban remains slated for Sunday in New York City's Times Square. The rally, called ""I Am A Muslim Too,"" seeks to unite people of all faiths. So Simmons will be joined by Rabbi Marc Schneier, president of the non-profit organization Foundation for Ethnic Understanding (FFEU) and Imam Shamsi Ali of the Jamaica Muslim Center, who served as grand marshal of New York City's Muslim Day Parade last fall. Religious leaders from more than 50 other organizations will also take part in the rally, ""to declare their solidarity with Muslims facing discrimination,"" reads a press release for the rally, taking place from noon to 4 p.m. Organizer says they expect thousands to attend. ""As Trump wraps up [his] first month in office we call on all New Yorkers to gather and declare 'I am a Muslim too,'"" adds the press release. 61 degrees in NY, this Sunday 02/29. No excuses. JOIN US!! #todayiamamuslimtoo pic.twitter.com/I9FTnLuZCH Simmons, who also serves as FFEU's chairman, said in a statement, ""We are living in a time when unity will make America great. This is a special moment for all Americans of good will to band together to promote the kind of compassion and equality for others that we want for ourselves."" Imam Ali, said, ""The Muslim community of New York City is deeply grateful to people of all backgrounds, who will come to Times Square on Sunday to say they will stand with, and even register as, Muslims if this discriminatory pattern continues."" And Rabbi Schneier, who co-organized the first ""Today, I Am A Muslim Too"" in 2010, said in a statement, ""We must join together at the most famous crossroads in the world to make a collective statement that, 'Whenever my Muslim brothers and sisters are demonized and vilified, discriminated against or victimized by hate crimes and violence, 'Today, I am a Muslim too.'""", -1220,2017/2/16,http://abcnews.go.com/US/trump-cited-report-finding-increase-domestic-hate-groups/story?id=45529218,Trump cited in report finding increase in domestic hate groups for 2nd year in a row,,"A nearly three-fold increase in the number of anti-Muslim hate groups last year contributed to an overall rise in the number of hate groups in the United States for the second year in a row, according the Southern Poverty Law Center (SPLC). The number of anti-Muslim hate groups jumped to 101 last year from 34 in 2015 ""As the radical right was energized by the candidacy of Donald Trump,""?according to the SPLC, a legal advocacy group that monitors extremism in the United States. Overall, the number of domestic hate groups rose to 917 last year, from 892 in 2015, or about 3 percent, the Montgomery, Alabama-based center said in its annual report, contained in its Intelligence Report released Wednesday. ""?016 was an unprecedented year for hate,""?Mark Potok, a senior fellow at the center, said in a statement. ""the country saw a resurgence of white nationalism that imperils the racial progress We're made, along with the rise of a president whose policies reflect the values of white nationalists.""?Such groups had increased nearly 14 percent the year before to 892 from 784 in 2014. The SPLC defines hate groups as those that malign entire groups of people based on immutable characteristics such as race or ethnicity. The rise in anti-Muslim hate groups echoes the most recent FBI statistics. Hate crimes against Muslims surged 67 percent in 2015, the more recent year for which statistics are available, the SPLC noted. The most dramatic growth in the number of hate groups was the near-tripling of anti-Muslim hate groups: from 34 in 2015 to 101 last year pic.twitter.com/4NKwfbHW3h The SPLC also said that ""several new and energetic groups appeared last year that were almost entirely focused on Trump and seemed to live off his candidacy.""?The center's findings came just days after anti-Muslim posters were discovered at a mosque in Bossier City, Louisiana, and on the campuses of the University of Texas and Rutgers University in New Jersey. The SPLC report said the Trump presidency has coincided with a spike in anti-Muslim activity. In the first 10 days after his election, the SPLC said, it documented 867 bias-related incidents, including more than 300 that targeted immigrants or Muslims. But the overall growth in hate groups was not limited to anti-Muslim organizations. The number of black separatist groups also grew, to 193 last year from 180 in 2015, as did neo-Confederate groups, to 43 from 35, according to the SPLC. Moving in the other direction, however, the number of ""Patriot,"" or anti-government groups, declined 37.5 percent to 623 last year from 998 in 2015, the center said. ""The groups had skyrocketed from a low of 149 in 2008 to a high of 1,360 in 2012, in large part as a reaction to the November 2008 election of Barack Obama,"" the report noted. Similarly, the number of Ku Klux Klan groups fell to 130 from 190 the year before, after having more than doubled from 72 in 2014. The center says it uses hate group publications and websites, citizen and law enforcement reports, field sources and news reports to compile its report.", -1221,2017/2/15,http://abcnews.go.com/Politics/trump-teams-contacts-russia-election/story?id=45508470,What we know - and don't know - about the Trump team's contacts with Russia before the election,,"Possible links between the Trump campaign and Russian officials were a major point of contention during the 2016 election, and now information has come to light raising questions about the length and depth of the alleged connections. Sources familiar with the matter have confirmed to ABC News that in the time leading up to the presidential election, U.S. authorities were looking into communications between several Trump associates and suspected Russian intelligence officials. The New York Times first reported this news stating that according to several current and former U.S. officials, several Trump associates inside and outside the campaign -- including former campaign chairman Paul Manafort -- had repeated contact with senior Russian intelligence officials in the year before election. The communications were reportedly first detected through routine surveillance before the FBI asked the National Security Agency to collect more information. But authorities have yet to find evidence of any cooperation between the campaign officials and Russian intelligence officers, The New York Times reported As part of its inquiry, the F.B.I. obtained banking and travel records of unspecified individuals and conducted interviews, The Times reported. In January, then-President-elect Donald Trump gave a blanket denial that he or anyone on his campaign had any contact with Russia leading up to or during the campaign, saying ""no, not at all"" when ABC News asked him about it during a Jan. 11 news conference. White House press secretary Sean Spicer said Tuesday during his daily press briefing that nothing has changed on that front. ""There's nothing that would conclude me that anything different has changed with respect to that time period,"" Spicer said when specifically asked whether anyone on the Trump campaign, including retired Lt. Gen. Michael Flynn, who resigned this week as national security adviser, had contact with the Russians before the election. Former Trump campaign Chairman Paul Manafort told ABC News today the report published in the Times is ""completely ridiculous."" ""No, never, I never spoke to the Putin government and I never had any involvement with anything like this,"" Manafort said. ""I have never knowingly spoken to Russian intelligence officers, and I have never been involved with anything to do with the Russian government or the Putin administration or any other issues under investigation today.""?One possible explanation is that Trump officials may have had conversations with people not known to them as Russian intelligence officials. In his interview with The Times, Manafort said, ""It's not like these people wear badges that say, 'I'm a Russian intelligence officer.'"" The two biggest areas of uncertainty are what may have been discussed and who may have been involved. While The Times said authorities have yet to find evidence of cooperation between the campaign officials and Russian intelligence officers, it is still not known what exactly they reportedly talked about. And while certain conversations that Manafort and Flynn had with Russian officials have been confirmed, there are two other people reported to have ties: former Trump foreign policy adviser Carter Page, who denied ever meeting with Russian officials on Trump's behalf, and Trump associate and longtime Republican operative Roger Stone, though it is unclear whether those four individuals are the only ones involved. Stone tweeted out a message this morning saying ""New York Times re-cycles the same bogus story on Russian influence on Trump election - still provides no proof. #Fake #News."" Sen. Lindsey Graham said the matter needs to be looked into further and a broader bipartisan investigation may need to be called. ""If there's contacts between the Trump campaign and Russian intelligence officials outside the norm, that's not only big league bad, that's a game changer,"" Graham, R-S.C., said in an interview on ""Good Morning America."" He continued, ""Because if it is true, it is very very disturbing to me and Russia needs to pay a price when it comes to interfering in our democracy and other democracies, and any Trump person who was working with the Russians in an unacceptable way also needs to pay a price."" However, Sen. Rand Paul, Trump's former rival, said that ""it makes no sense"" for Republicans to spend time investigating anything involving the Trump team. ""I just don""t think it's useful to be doing investigation after investigation, particularly of your own party,""?Paul said on Fox's ""Kilmeade and Friends"" radio Tuesday. ""we'll never even get started with doing the things we need to do like repealing Obamacare if we'r spending our whole time having Republicans investigate Republicans. I think it makes no sense."" Democrats, including Minority Leader Nancy Pelosi of California, are calling for an a bipartisan commission to be convened. ""The FBI must accelerate its investigation of the Russian connection with the Trump administration, and Congress must call for a bipartisan, independent, outside commission to fully investigate Russia's influence on the administration and the election,"" Pelosi said. ABC News' Mike Levine, Jonathan Karl, Justin Fishel and Morgan Winsor contributed to this report.", -1222,2017/2/17,http://abcnews.go.com/Politics/analysis-trump-revels-battle-press/story?id=45550365,ANALYSIS: Trump revels in battle with press,,"President Trump's first solo press conference in office was a free-wheeling, lengthy look inside the mind of the president less than four weeks into his administration. There was news too, of course: a new immigration executive order will be unveiled next week, Trump said former national security adviser Michael Flynn was ""Just doing his job""?and the president repeatedly claimed that he has ""nothing to do with Russia,""?calling assertions to the contrary ""fake news"" and insisting ""leaks""?are the real problem. Trump also claimed Flynn stepped aside for misleading administration officials, not for his discussions of U.S. sanctions with the Russian ambassador during the transition. Beyond those headlines of the day, Thursday's press conference shed more light on the attitude and motivations of the 45th president and how he will govern the nation the next four years. Trump stressed that his administration is not in ""Chaos,""?but being run like ""A fine-tuned machine,""?refusing to take any responsibility for the missteps and upheaval that have plagued the first month of his presidency. ""ouradministration inherited many problems across government and across the economy,""?he said. ""to be honest, I inherited a mess. It's a mess. At home and abroad. A mess.""? Primarily, the press conference showed the president willing to take on the press in a head-on confrontation -- the man we saw almost every day on the campaign trail -- calling reporters ""Aut of control""?and ""so dishonest.""?The appearance showed how the president is still very much in campaign mode, bringing up his Electoral College victory and his defeat of Hillary Clinton months after the November election. The president is also still focused on his public support, again revealing an apparent defensiveness and an insatiable appetite to take on his detractors. He repeatedly blasted reporters -- specifically CNN -- for their coverage, showing an obsession with watching how he is being portrayed in the news. He even spoke in detail about CNN's 10 p.m. show, recalled what guests said about him and mentioned television ratings over and over. ""I just see many, many untruthful things,""?Trump said of press coverage. ""I'll tell you what else I see. Tone. The word tone. The tone is such hatred. I'm really not a bad person, by the way ... I do get good ratings. You have to admit that.""?The president did seem to be enjoying himself and clearly wants to continue the battle he began during the campaign with the press. It's something his supporters like to see, but how will this combative posture and focus on the media -- instead of on policy or his agenda -- sit with voters who voted less for Donald Trump and more against Hillary Clinton? How will the voters who cast their ballots for the issues he spoke about on the campaign trail, like jobs and helping strengthen the middle class, respond? Those are the indicators that will tell if this strategy works or not and it's the president himself who will also be closely watching them. The other question those voters will be asking is if this is how the president will behave and govern the next four years or if this combative period will come to an end. The president will be back on the campaign trail this weekend, holding a very early 2020 rally on Saturday in Florida set up by his re-election campaign. Presidents before him have rallied supporters to back their policy agenda or specific issues, but Trump is rallying backers at this early stage to also show the support he has, and likely trying to bring up those approval ratings he loves to cite. ""I heard -- just heard that the crowds are massive that want to be there,""?the president said Thursday, something we are likely to hear repeated about this event and others over the entirety of this administration.", -1223,2017/2/17,http://abcnews.go.com/Politics/trump-asks-black-reporter-schedule-meeting-congressional-black/story?id=45546996,Trump asks black reporter to schedule meeting with Congressional Black Caucus,,"President Donald Trump raised eyebrows Thursday afternoon when he asked a black reporter at a free-wheeling press conference to arrange a meeting with the Congressional Black Caucus. ""do you want to set up the meeting?"" Trump asked April Ryan, the White House correspondent for American Urban Radio Networks. ""Are they friends of yours? Set up a meeting. Set up the meeting. I would love to meet with the Congressional Black Caucus, I think it's great.""?Ryan asked Trump Thursday whether he would include input from the Congressional Black Caucus when developing policy for inner-cities. Trump responded with an anecdote about Rep. Elijah Cummings, D-Maryland. ""I actually thought I had a meeting with Congressman Cummings and he was all excited then he said, 'Oh, I can't move, it might be bad for me politically. I can't have that meeting,'"" said Trump. ""You know, we called him and called him, all set, I spoke to him."" ""He wanted it but we called, called, called, they can't make a meeting with him,"" continued Trump. ""Every day I walk in and I would like the meeting, but he was probably told by [Sen. Chuck Schumer, D-New York] or somebody like that -- some other lightweight -- he was probably told, 'Don't meet with Trump, it's bad politics.""?Cummings, who said Trump called him in January after seeing his appearance on MSNBC's ""Morning Joe,"" responded to Trump's comments with some confusion, , saying he is looking forward to discussing prescription drug prices with Trump. He noted that he didn""t know why he was referenced by the President in response to the question about meeting on inner-cities. The Maryland Democrat denied that Schumer told him to skip a meeting and that instead he was waiting until he and fellow legislators were ""in a position""?on prescription issues that they ""Could present something to the president."" ""As soon as we finish, we'r going to meet with him,""?Cummings added, saying of Trump's comments, ""I took no offense whatsoever.""?Thursday evening, the White House said it was working to set up a meeting with the CBC. Following the press conference, Rep. Emanuel Cleaver, D-Missouri, the former chair of the CBC, told ABC News that he was not amused and that he could barely believe what he was hearing. He was joined by Rep. Bennie Thompson, D-Miss. who called the request ""disingenuous."" ""All black people don't work for each other,"" said Thompson. ""All black people don't know each other."" In an appearance on CNN, Rep. Maxine Waters, D-California, criticized the president's treatment of Ryan. ""It was inappropriate for him to ask the journalist to set up the meeting...He should have an office that is organized in a way that he would have people with certain responsibilities,"" said Waters. ""That is not her responsibility to set up a meeting.""?On Twitter, the CBC linked to a letter they wrote Trump on Jan. 19 which outlines issues of importance to the caucus and includes an ""invitation to engage in an earnest effort to work together""?though does not specifically ask for a meeting. Hi, @realDonaldTrump. We'r the CBC. We sent you a letter on January 19, but you never wrote us back. Sad! Letter: https://t.co/58KiuHmITF Ryan, speaking later on CNN, called Trump's line of questioning unfortunate. ""I was sitting there, I could have asked questions on Russia as well,"" Ryan said. ""I'm very versed in a lot of things but it's unfortunate that when you see me, you see my color. But I am a journalist and I asked the question and I got an answer -- I got his answer.""", -1224,2017/2/16,http://abcnews.go.com/Politics/house-republicans-seek-investigation-potential-illegal-justice-department/story?id=45523826,House Republicans seek Department of Justice investigation into potentially illegal leaks,,"The GOP chairmen of the House Oversight and Judiciary committees have asked the Department of Justice inspector general to investigate immediately whether classified information was mishandled at the department after the resignation of retired Lt. Gen. Michael Flynn as White House national security adviser. In a Wednesday letter to DOJ Inspector General Michael Horowitz, Chairmen Jason Chaffetz, R-Utah, and Bob Goodlatte, R-Va., requested an ""immediate investigation"" into the possible mishandling of classified information, citing reports before Flynn's resignation about his discussions about sanctions with the Russian ambassador to the United States. ""We have serious concerns about the potential inadequate protection of classified information here,"" the Republicans wrote in the letter. With the missive to the agency watchdog, top Republicans are taking President Donald Trump's lead. Rep. Elijah Cummings has fired back, saying in a statement today, ""Chairman Chaffetz appears to be taking his marching orders directly from President Trump's tweet yesterday ""?instead of investigating Gen. Flynn's lies to the vice president and the American people, as well as his troubling ties with Russia, the chairman chose to target those who brought them to light."" Cummings continued, ""Congress should be doing independent oversight of the executive branch and protecting whistleblowers, not running interference while the White House conceals their abuses and misleads the American people for weeks. Chairman Chaffetz said he didn't want to go on 'fishing expeditions,' but that's exactly what he's doing here."" Since Flynn's resignation, the president has attacked the intelligence community for the leaks and blamed the media for Flynn's departure, though the White House has said Trump asked for Flynn's resignation. The real scandal here is that classified information is illegally given out by ""intelligence"" like candy. Very un-American! ""From intelligence, papers are being leaked, things are being leaked,"" Trump said at a White House news conference with Israeli Prime Minister Benjamin Netanyahu. ""It's a criminal action, criminal act."" ""People are trying to cover up for a terrible loss that the Democrats had under Hillary Clinton,"" Trump said. While Democrats have uniformly called for investigations into Flynn's conversations and the White House's handling of the episode, House GOP leaders have instead focused on the leaks. House Intelligence Committee Chairman Devin Nunes, R-Calif., who is leading his panel's wide-ranging investigation into Russia and the election, plans to ask the FBI to assess leaks regarding Trump administration officials and classified information, an aide confirmed. Nunes has downplayed concerns about Flynn's actions and whether to review them in committee, though several Senate Republicans want Flynn to testify before the Senate Intelligence Committee.", -1225,2017/2/17,http://www.cnn.com/2017/02/16/politics/harward-says-no-to-national-security-adviser-role/index.html,Harward says no to national security adviser role,"(CNN)Ret. Vice Adm. Bob Harward turned down President Donald Trump's offer to be national security adviser Thursday, depriving the administration of a top candidate for a critical foreign policy post days after Trump fired Michael Flynn.","Trump has since named Ret. Lt. Gen. Joseph Keith Kellogg, who worked under Flynn until the latter was asked to resign, as the acting national security adviser. Asked if there was a candidate for national security adviser in sight, a White House official told CNN, ""Not that I'm aware of."" ""Since retiring, I have the opportunity to address financial and family issues that would have been challenging in this position,"" Harward said in a statement. ""Like all service members understand, and live, this job requires 24 hours a day, 7 days a week focus and commitment to do it right. I currently could not make that commitment. My thoughts and prayers are with those that carry such heavy burdens and responsibility for taking care of our country's national security concerns. God bless this great country of ours."" A friend of Harward's said he was reluctant to take the job because the White House seems so chaotic. Harward called the offer a ""s*** sandwich,"" the friend said. A Republican official told CNN that Harward made it a condition of taking the job that he could form his own team. In the end, he didn't feel that was the case. And a senior Republican familiar with the process added that ""a question of clarity regarding the lines of authority"" was central in Harward's decision. ""I wouldn't call it a disagreement as much as questions that could not be resolved to his comfort level,"" the senior Republican said. Harward served as Mattis's deputy when he was commander of US Central Command, which oversees US military operations in Iraq and Afghanistan. Flynn was forced to resign his position in the Trump administration after reports said he discussed sanctions with the Russian ambassador before Trump was inaugurated and misled Vice President Mike Pence about the conversation. The White House said Flynn's omission about the details of his conversation led to an erosion of trust between Flynn and the President, prompting Flynn's exit. Following a more than 30-year military career, Harward became chief executive of defense giant Lockheed Martin's United Arab Emirates division. Harward was already familiar with the role of national security adviser and the work of the National Security Council, having previously worked on the NSC's counterterrorism office from 2003 to 2005 during President George W. Bush's administration. After Flynn's resignation, Harward's name floated to the top of lists for potential replacements, alongside acting adviser Kellogg and retired Army Gen. David Petraeus, who pleaded guilty in 2015 to mishandling classified information after he shared sensitive material with a woman with whom he was having an affair. Ret. Army Maj. Gen. James ""Spider"" Marks, a CNN military analyst, called Harward an ""incredibly talented guy"" in an interview with CNN's Erin Burnett on ""OutFront. Marks said he didn't want to speculate why Harward turned down the job, but said turmoil in the White House was likely a contributing factor. ""I'm sure Bob looked at this, Adm. Harward looked at this, and said, 'Look there's a lot of forming and storming going on right now.'"" But Sen. James Lankford, R-Oklahoma, dismissed suggestions that White House chaos led to Harward's decision to not accept the role, calling it ""hearsay."" ""Am I surprised, 72 hours after Flynn resigns, that we're still in the process of doing a turn for that? No, I'm not,"" he told Burnett.", -1226,2017/2/17,http://www.cnn.com/2017/02/17/politics/mike-pence-europe-trip-munich/index.html,White House turmoil on Russia likely to follow Pence abroad,"Washington (CNN)Vice President Mike Pence will try to leave behind a White House in tumult when he arrives in Europe Friday, but he's likely to be dogged by the recent events that have thrown the Trump administration into disarray.","Though he is seeking to reassure key allies such as Germany of US resolve on Russia and other issues that have rattled Western leaders, he himself faces questions about how much he's been looped in on President Donald Trump's thinking on the Kremlin. On Monday, Trump ousted his national security adviser, Michael Flynn, for misleading Pence about his conversations with the Russian ambassador. Pence, who had previously gone on television and repeated Flynn's prevarications, only discovered he was misinformed last Friday -- a full two weeks after Trump himself learned the Justice Department was looking into the matter. Even as Pence seeks answers about why he was hoodwinked, Trump himself has expressed little concern about the compromised position of his vice president. Instead, he's cast Flynn -- whom he asked to resign -- as unfairly brought down by illegal leakers of classified intelligence. ""The first thing I thought of when I heard about it is: How does the press get this information that's classified? How do they do it?"" Trump said at a news conference Thursday. ""You know why? Because it's an illegal process and the press should be ashamed of themselves."" The incident frustrated and dismayed Pence. It also raised questions about how much the vice president can act as a credible interlocutor for Trump in Europe, where the top concern is the very subject upon which Pence was frozen out: US intentions concerning sanctions on Moscow. Pence, traveling abroad for the first time since taking office, will attend the Munich Security Conference and huddle with Germany Chancellor Angela Merkel before traveling to Brussels for meetings with key European leaders. ""I expect Pence to express the same views he presented in the vice presidential debate last year: a fairly conventional tough stance on Russia and commitment to Europe,"" said Derek Chollet, executive vice president at the German Marshall Fund of the United States. ""But this will still leave allies wondering how much he is speaking for Trump."" White House aides said Thursday that Pence and Trump had discussed the trip, which will also include talks with the leaders of Iraq and Afghanistan. Those aides said Pence would work to calm US allies during his trip abroad and dismissed concerns that he may be regarded as an unreliable voice for Trump. ""I don't think any of our allies will question for a second whether the vice president is speaking on behalf of the administration, in conjunction with the President, on any matter,"" said a senior White House official, speaking anonymously to preview Pence's trip. Pence arrives in Europe at a moment of deep unease for leaders, who are eying Trump with skepticism. Few believed he could win November's election and made little attempt to mask their disregard for the billionaire real estate developer as he plodded forward with his brash campaign. The frenetic first month of Trump's presidency has only deepened European leaders' concerns. Flynn's resignation this week led to some optimism among Western diplomats who had been chagrined about the former national security adviser's desire to establish closer ties to Moscow. But widespread uncertainty about what steps Trump may take to begin cooperating with Russian President Vladimir Putin remains. Western diplomats and US officials who have met with Trump administration envoys describe mixed messages about the future of US policy toward Russia. While some officials -- including Secretary of State Rex Tillerson and UN ambassador Nikki Haley -- have insisted that US sanctions will remain in place on Russia for its incursion into Ukraine, others have been less committal. The future of a separate set of US sanctions punishing Russia for its election cyber-meddling is also uncertain. Flynn's phone call to the Russian ambassador came the same day the Obama administration put those sanctions in place, and Trump has remained open to lifting them. That's a concern for some in Europe, who fear the same Russian cyber intrusions could affect important upcoming votes in France and Germany. European capitals were also unnerved by Trump's campaign trail dismissals of NATO, which he's largely tempered since taking office. As a candidate, Trump lambasted the defense collective as ""obsolete"" and chastised member countries for not meeting the minimum requirements on defense spending. But last month during remarks at US Central Command in Florida, he said that his administration strongly supported the alliance. Pence will seek to offer a steadier message during remarks in Munich and during talks in Brussels with NATO Secretary General Jens Stoltenberg and other European leaders. It was already reinforced by European trips by Tillerson and Defense Secretary James Mattis, who attended the NATO ministerial meeting, this week. He'll offer a foreign policy message that hews more closely to established US policy, insisting that Russia adhere to the Minsk ceasefire agreement in Ukraine and vowing support for NATO as a bulwark of western security. ""We're stronger together. So (we) just want to reaffirm that,"" said a senior White House adviser on foreign policy. ""If there are fissures, either through the media or perceptions otherwise, he wants to reassure folks.""", -1227,2017/2/17,http://www.cnn.com/2017/02/17/politics/mike-dubke-to-be-named-white-house-communications-director/index.html,Officials: Mike Dubke to be named as White House communications director,"Washington, D.C. (CNN)Crossroads Media founder Mike Dubke is expected to be named as White House Communications Director, two administration officials tell CNN.","The appointment is expected to be announced as early as Friday, the officials say. The expected appointment is rankling some inside the White House, with longtime Trump loyalists inside and outside the West Wing saying they would have preferred a veteran from the campaign. ""Dubke and his Crossroads friends did everything they could to kill the Trump movement and failed,"" one loyalist said. Former Trump transition spokesman Jason Miller was originally tapped to serve as communications director for the White House, but Miller stepped aside before Inauguration Day to spend more time with his family. Dubke did not respond to a CNN request for comment. Dubke, founded Crossroads Media in 2001 and brought it to a level of national prominence during the 2008 presidential campaign. It is ""the premier Republican media services firm,"" according to a description on its website. And Dubke has ""a unique understanding of the relationship between political strategy and public policy development,"" the website explains. Relief for Spicer The appointment is expected to take some of the heat off embattled Press Secretary Sean Spicer, who has endured a rocky start to his tenure as the official spokesman for the administration. Until now Spicer has served as both White House press secretary and communications director for the new administration. Those roles are typically filled by two staffers.", -1228,2017/2/17,http://www.cnn.com/2017/02/16/politics/tillerson-g20-russia-lavrov/index.html,Tillerson assures allies US won't do Russia deal over their heads,"Bonn, Germany (CNN)US Secretary of State Rex Tillerson said Thursday the United States ""will consider working with Russia"" when practical but will stand up for US and allies' interests when the two nations disagree, after his first meeting with his Russian counterpart.","The meeting with Russian Foreign Minister Sergey Lavrov, on the sidelines of a G20 summit in Bonn, Germany, comes at a time of strained US-Russian relations and turmoil in Washington as the new Trump administration finds its feet. Tillerson's remarks, made in a brief on-camera statement after the meeting, may go some way to reassure US allies. ""As I made clear in my Senate confirmation hearing, the United States will consider working with Russia when we can find areas of practical cooperation that will benefit the American people,"" Tillerson said. ""Where we do not see eye to eye, the United States will stand up for the interests and values of America and her allies. As we search for new common ground, we expect Russia to honor its commitment to the Minsk Agreements and work to deescalate the violence in the Ukraine."" The White House and the Kremlim have engaged in back-and-forth commentary in recent days over Crimea, the Ukrainian territory annexed by Russia in 2014. Speaking a short time before, Lavrov said the two ""had plenty of issues to discuss,"" with the topics reflecting those of the January 28 phone conversation between Russian President Vladimir Putin and US President Donald Trump. Asked by a reporter whether the upheaval in Washington could affect US-Russian relations, Lavrov replied: ""You should know we do not interfere in the domestic matters of other countries."" Election interference? Lavrov's comments came at the same time as US Defense Secretary James Mattis said there was ""very little doubt"" that Russia had interfered -- or attempted to interfere -- in a number of democratic elections. Speaking after a NATO conference in Brussels, Belgium, Mattis described Russia's general actions around the world as ""aggressive"" and ""destabilizing."" Mattis played down the idea of closer military ties with Russia, saying: ""We are not in a position right now to collaborate on the military level, but our political leaders will engage and try to find common ground."" Flynn resignation Tillerson's trip to Germany comes as the Trump administration is seeking to reassure skittish allies in Europe the US has their backs, all while exploring new areas for cooperation with Russia as advocated by Trump over opposition from some members of his own party. The White House is in turmoil after National Security Adviser Michael Flynn's resignation this week over questions of the nature of conversations with Russia on sanctions before taking up his administration role. Congress is now investigating various aspects of Russia's alleged interference in the US election, while members question Trump's own relationship to the country.", -1229,2017/2/17,http://www.cnn.com/2017/02/17/asia/kim-jong-nam-murder-questions/index.html,"Give us Kim family's DNA or no body, Malaysian police tell North Korea","(CNN)In the latest twist in the bizarre murder of Kim Jong Un's half-brother, Malaysia says it won't release the body to North Korea without DNA from the Kim family.","Selangor Police Chief Abdul Samah Mat said without DNA from a next of kin, they won't hand over Kim Jong Nam's body or release the autopsy report which could reveal the cause of death. Kim Jong Nam died after being attacked at Kuala Lumpur International Airport on Monday. South Korean officials claim he was poisoned. Three people have been arrested so far in relation to Kim's murder: an Indonesian woman, a Malaysian man and another woman carrying Vietnamese identification. Four days after the killing many questions remain unanswered. Here's what we know so far. What happened? Kim was on his way to catch a flight Monday morning to see his family in Macau, where he's lived since his departure from North Korea years ago. The Chinese territory, a short ferry or helicopter ride from Hong Kong, is a popular gambling destination with mainland Chinese. The exact details of Kim's murder are sketchy but Selangor State Criminal Investigations Department Chief Fadzil Ahmat told Reuters Kim ""felt like someone grabbed or held his face from behind."" Kim felt dizzy and immediately went to an airport customer assistance counter, seeking medical help. They were concerned enough to take him to the on-premises clinic. An ambulance was called but it came too late. Kim died on his way to hospital. How was he killed? No one is exactly sure how Kim died. Initially, local media put forth reports of poison needles and deadly sprays, but it wasn't even clear whether Kim was killed or had a heart attack. Then on Wednesday, South Korea's Lee Cheol Woo, the chairman of the country's National Assembly Intelligence Committee, publicly declared Kim had been murdered. Lee stated the former North Korean heir had been killed with poison by ""two Asian women."" He didn't reveal how South Korea had discovered this or what poison had been used in the killing. The autopsy of Kim's body might have revealed more but despite having been finished on Wednesday, no results have been released. As of yet, Deputy Prime Minister Hamidi said no next of kin had come forward to claim the body. Was North Korea involved? No motive for the killing has been revealed, nor any explanation of how he was poisoned. South Korea's Lee told lawmakers on Wednesday that North Korea killed Kim but, again, he didn't explain how he knew it. ""Pyongyang has been attempting to assassinate Kim Jong Nam for the past five years,"" a South Korean legislator, Lee Chul Woo, told reporters Wednesday. He didn't provide any evidence. When asked about rumors that North Korea had been involved in Kim's death, Malaysia Deputy Prime Minister Ahmad Zahid Hamidi told a press conference Thursday it was ""only speculation."" North Korea has requested Kim's body but Malaysia authorities said they wouldn't release it until investigations are complete. Who did it? Grainy security camera from the airport at the time of Kim's killing showed two young female suspects. One of the women is seen wearing a blue skirt and white t-shirt with ""LOL"" written on it. The first woman was arrested on Wednesday morning at Kuala Lumpur International Airport, two days after the attack. She was carrying Vietnamese documents, which said her name was Doan Thi Huong and gave her age as 30. Later that evening, 26-year-old Malaysian Muhammad Farid Bin Jalaluddin was taken into custody. Police said he was arrested to assist in their investigations. At 2 a.m. on Thursday, Jalaluddin led investigators to his girlfriend, 25-year-old Indonesian Siti Aishah, who was then arrested on suspicion of being involved in Kim's death. No charges have been laid. Who was Kim Jong Nam? If things had gone differently, Kim Jong Nam could have been the leader of North Korea. Born in 1971, he was the first son of then-North Korean leader Kim Jong Il. His mother was one of the dictator's favored mistresses, actress Song Hye-rim, and for a while Kim Jong Nam was the most public of his father's sons. But in 2001 he reportedly lost the elder Kim's favor when he tried to use forged documents to visit Tokyo Disneyland. His half-brother, Kim Jong Un, was born to a different mistress, Ko Yong Hui, who was politically ambitious and enthusiastic to see her son succeed Jong Il as leader. But author Yoji Gomi, who worte a book in 2012 called ""My Father, Kim Jong Il, and Me"" said Kim Jong Nam thought his younger brother wasn't fit to run the country.", -1230,2017/2/17,http://www.cnn.com/2017/02/16/asia/pakistan-shrine-bombing/index.html,At least 75 killed in suicide attack at Pakistani shrine,"Islamabad, Pakistan (CNN)At least 75 people were killed in a suicide attack Thursday at Pakistan's packed Lal Shahbaz Qalandar shrine in the southern city of Sehwan in Sindh province, according to a local hospital official.","All the dead and injured were taken to the nearby 100-bed Sehwan Hospital, which was overwhelmed the sudden influx of patients, Dr. Zahid Hussain told CNN. More 200 people were injured in the attack, and many had been transferred to bigger hospitals in other cities of Sindh province, he said. Thousands of worshipers, including families with their children, had gathered at the more than 800-year-old shrine for the Sufi ritual of Dhamal, which involves music, chanting and prayer. The Islamic State Khorasan, ISIS' affiliate in Afghanistan and Pakistan, claimed responsibility for the attack in a phone call to CNN. The Amaq news agency, which is affiliated with ISIS, reported the attack was carried out by a suicide bomber in an explosives vest. Prime Minister Nawaz Sharif called the attack ""brutal."" ""I have directed all the state institutions to mobilize all resources for rescue and relief after this brutal terror attack on Lal Shahbaz Qalandar's shrine,"" the Prime Minister said in a statement. The spokesman for the Pakistani military blamed operatives from Afghanistan for a recent spate of attacks on the country. The spokesman, Maj. Gen. Asif Ghafoor, tweeted: ""Recent Ts (Terrorist) acts are being exec (Executed) on directions from hostile powers and from sanctuaries in Afghanistan. We shall defend and respond."" In another tweet, he urged the country to remain calm: ""Your security forces shall not allow hostile powers to succeed. We stand for our nation."" He later announced on Twitter that the Pakistan-Afghanistan border was ""closed with immediate effects till further orders due to security reasons."" The attack comes days after a bomb exploded during a protest in Lahore, Pakistan, on Monday, killing at least 14 people and injuring 59 more, according to government spokesman Malik Ahmad Khan. Jamat-ul-Ahrar, a splinter group of Pakistan's Tehreek-i Taliban (TTP) -- also known as the Pakistani Taliban -- claimed responsibility for that attack in a statement emailed to CNN.", -1231,2017/2/17,http://www.cnn.com/2017/02/16/travel/zealandia-new-continent-discovered/index.html,Meet Zealandia: Earth's latest continent,"Atlanta (CNN)New Zealand might be Australia's smaller neighbor but it's sitting on a massive new continent scientists have named ""Zealandia,"" according to a publication released by The Geological Society of America.","New Zealand and Australia might be able to finally give each other more breathing room. It turns out they sit on separate continents. New Zealand calls a 1.8 million square mile land mass known as Zealandia home. This new continent also includes New Caledonia, along with several other territories and island groups. The idea of a potential continent in this area has been around for some time. Geophysicist Bruce Luyendyk coined the term Zealandia in 1995. The dedicated study of this area over the past 10 years has determined it is not just a group of continental islands and fragments but that it has a continental crust large and separate enough to be officially declared a separate continent. Previously, New Zealand and New Caledonia were grouped with Australia under the moniker Australasia. While most of us would call this the eighth continent, geologists often consider Europe and Asia as one continent called Eurasia. The publication by The Geological Society of America comes barely a week after scientists found a ""lost continent"" under the Indian Ocean.", -1232,2017/2/17,http://www.cnn.com/2017/02/17/politics/donald-trump-politics-campaign/index.html,Trump -- under fire -- returns to the campaign,Washington (CNN)President Donald Trump is taking his fate into his own hands.,"Reeling from a week that included firing his national security adviser, the withdrawal of a Cabinet nominee and persistent questions over alleged collusion between his campaign and Russia, Trump is aiming to regain control of his nascent administration by putting himself back in the spotlight. The centerpiece of the effort: a return to the scorched-earth politics that served him so well on the campaign trail. That was on display Thursday when Trump cranked up the political theater during an extraordinary news conference that transferred the seething air of grievance from his campaign rallies to the ornate splendor of the East Room of the White House. He'll continue his campaign-style reboot Saturday with a rally in Florida, reuniting with the devoted supporters who view Trump as a political crusader dedicated to the obliteration of Washington's elites. Through it all, he's breaking free from the confines of his office and the formality of the White House to fire up the free-wheeling, media-bashing brand of attack-dog politics that powered his stunning takeover of the Republican Party and underpinned his even more surprising presidential election win. Though much of official Washington was stunned by Trump's news conference, the President knew exactly what he was doing, seeking a relaunch for his administration and a pivot away from stories of a White House in disarray. ""We had an interesting news conference, didn't we?"" Trump told lawmakers and reporters during a bill signing ceremony later Thursday, clearly relishing his performance. Full transcript: President Donald Trump's news conference Since taking office, Trump's pugnacious persona has at times appeared stifled by the formal surroundings of the White House. He hasn't always appeared completely relaxed, for instance, in his joint news conferences with foreign leaders. But alone on the stage Thursday, gesturing behind his podium and locked in combat with reporters, he was in his element, ensuring the event will go down as one of the most memorable presidential news conferences in history. Something on his mind Trump's ostensible purpose for the event was to announce Alexander Acosta as his new pick for labor secretary after his previous nominee, Andrew Puzder, withdrew over ethics concerns. But it was soon clear that Trump had something else on his mind and set off on his tour de force with the air of a man who wanted to get something off his chest. ""I turn on the TV, open the newspapers and I see stories of chaos. Chaos. Yet it is the exact opposite. This administration is running like a fine-tuned machine,"" Trump said. Following a tumultuous few weeks that included a chaotic roll out of his travel ban on citizens from seven Muslim-majority nations and reports of fierce infighting between rival power centers in his West Wing, Trump's declaration of resounding success seemed at odds with the facts. But Trump's strategy -- diverting attention from his bad week, rallying his political base and putting on a show that would drown out incessant questions about his alleged connections to Russia -- quickly became clear. Donald Trump calls treatment of first lady unfair ""This is what he enjoys doing. He recognizes that this is why he won,"" White House spokesman Sean Spicer said, explaining Trump's snap decision to schedule a news conference Thursday morning. Another senior Trump aide, Kellyanne Conway, declared Trump was back in his ""natural habitat."" ""Pressers are his sweet spot,"" she said. Such political pyrotechnics have helped Trump before. In slamming his media inquisitors Thursday as ""fake news,"" he was reengaging with his grassroots army that he used to great effect during the campaign. ""This is a press conference like no other from a President like no other,"" said Andre Bauer, a Trump supporter and former South Carolina lieutenant governor, told CNN International. ""Straight talk is what the people wanted and straight talk is what the people are getting."" But the question for Trump is whether such tactics can sustain a presidency, a role that is far more complex than that of an election-year candidate. ""The overall impression was this was a raucous, combative, sometimes unhinged press conference that recalled moments in the campaign but I think left an awful lot of people asking what kind of reality is he in here,"" said David Gergen, an adviser to four presidents who is now a CNN senior political analyst. ""When he described his administration as a finely tuned machine, I would hate to see a broken down one."" Questions about Russia Trump did little to alleviate the most potentially dangerous crisis assailing his White House -- CNN reported this week that high-level advisers close to Trump were in constant communication during the summer campaign with Russians known to US intelligence. Questions about his admiration for Russian President Vladimir Putin, who most people in Washington view as a dangerous enemy, are being fueled by a drip, drip of disclosures and reporting. That Russian cloud over the White House, which led to the resignation of national security adviser Michael Flynn this week, is unlikely to lift until the President provides a full accounting of unanswered questions. Trump said during the news conference that as far as he knew, none of his staff had been in contact with Russian officials. That was a long way from the kind of fulsome answer that will make the drama go away. A sign that Trump's White House trouble could continue: Ret. Vice Adm. Bob Harward turned down the President's offer to succeed Flynn, reluctant to take the job because the White House seems so chaotic, a friend of Harward's told CNN. In a statement, Harward noted the job would require ""24 hours a day, seven days a week focus and commitment to do it right."" ""I could not make that commitment,"" he said. Trump may have other long-term political problems. It's not clear that feuding with reporters on national television, however satisfying, will help him forge progress on some of the issues that helped him win the presidency, such as reviving manufacturing industry and repealing and replacing Obamacare. While he confounded most analysts by consolidating blue collar votes in previously Democratic Midwestern states on Election Day, he has done little to bring the country together since then. That is reflected in his presidential approval ratings, many of which are now hovering around 40%. But one Republican aide on Capitol Hill insisted the news conference would help Trump -- at least for now. ""It plays well for Trump,"" the aide said. ""It's not a long-term solution to the problems he's facing, but I think an effective distraction for 24 hours. Meanwhile most in GOP will stay quiet because they still see the opportunity they have to accomplish things they've been waiting for eight years to accomplish.""", -1233,2017/2/16,http://www.cnn.com/2017/02/16/opinions/trumps-extraordinary-press-conference-zelizer/index.html,Trump's performance fuels worry about his presidency going off the rails,"Julian Zelizer is a professor of history and public affairs at Princeton University and a New America fellow. He is the author of ""Jimmy Carter"" and ""The Fierce Urgency of Now: Lyndon Johnson, Congress, and the Battle for the Great Society."" He also is the co-host of the podcast ""Politics & Polls."" The opinions expressed in this commentary are his own.","He lashed out personally against reporters, he resumed fighting over the outcome of the election and his loss in the popular vote, and continued steadfastly refusing to admit to facts that are beyond dispute. While it is true that many of his supporters still see the person who ""tells it like it is"" and isn't afraid to punch back against his critics, this is not a way to conduct the presidency. The style that we saw on display at this news conference highlighted many parts of President Trump that are causing deep concern, certainly among Democrats, but also with some Republicans. When he continues to traffic in false statements about massive voter fraud, he demonstrates his willingness to circulate false information from the highest levels of power. When he continues to insist he would have won the popular vote, if not for fraud, and that he enjoyed the biggest Electoral College victory since Ronald Reagan (which he was challenged on, and had no adequate reply), it is dangerous for the body politic and fuels support for legislation that could suppress the vote. He still seems obsessed with the Hillary Clinton email scandal, even as more and more stories about his own lax security practices are on the front pages of the news. Despite the flood of reports about the connections between the Russians and top members of his campaign, Trump did nothing to indicate he was taking this seriously and that he was bothered by what was revealed. His showed his thin skin with his disparaging remarks about reporters and news organizations, to the point that he couldn't contain his desire to insult. He mocked networks' ratings instead of answering the questions. Rather than offering answers to how he will deal with the ""mess"" he said he ""inherited,"" he remarked instead about the ""dishonest media"" that was not giving him the credit he deserves. It is easy to see he is a President who is not surrounded by advisers willing to push back on his most egregious behavior. This is a President who makes up his own worldview, defends that worldview, and is unable to incorporate real data that comes his way. On foreign affairs and domestic policy, such an outlook can be devastating. It is also clear from his remarks that the President continues to be in a ""war"" with the media, and journalists need to be at the top of their game to monitor and push back against a White House and Oval Office that seems to have little interest in sharing serious information about what they are doing. As President Richard Nixon learned, this kind of worldview can ultimately consume a President whose paranoia, pettiness and anger can push him into unethical or illegal behavior in an effort to protect his hide. When President Trump said, seemingly in impromptu fashion during Wednesday's news conference with Israeli Prime Minister Benjamin Netanyahu, that he was open to a one-state solution, he threw many decades of diplomacy initiatives into the garbage and made the kind of statement that could easily instigate violence rather than judicious discussions. Americans could have very different views about what this President is doing and many certainly might like a lot of his style. But there are limits. When a person is President, the ramifications of poorly thought out statements and vicious, off-the-cuff attacks can have dangerous consequences. The kind of disorganization that seems to grip the White House can allow powerful actors, like Michael Flynn, to behave badly. This is what President Ronald Reagan discovered as members of his National Security Council conducted illegal activities in Nicaragua. Simply at the level of being a role model for the nation, this also sets a tone about how politics should be conducted that fuels, rather than dampens, the partisan anger that has afflicted this nation. The question is whether anyone sitting near the Oval Office is going to try to restrain this President and, equally important, if there is anyone in the congressional wing of the Republican Party who will start to take a more defiant stand about how he is conducting himself. The withdrawal of Andrew Puzder as secretary of labor, as well as some Republicans openly calling for an investigation into the possible Trump-Russia connection, are the very first signs the otherwise solid Republican Party might be breaking up, at least a bit. As Republicans on the Hill watch Trump squander more of his time on these kinds of petty fights rather than sending them legislation, they will grow increasingly anxious about the kind of impact this can have on their future majority. If Trump pushes them to that particular tipping point, it would be the most dangerous political moment the administration would have to face. President Trump loves to boast about his ability to make a deal and get things done. As Bloomberg reported Thursday, so far he isn't doing much. His legislative record is pretty barren compared to other presidents at this moment in their term. Most of his still young presidency has been about the kind of public fireworks we saw Thursday rather than real governance. Indeed, even a Trump supporter must be disappointed at the sloppy manner in which the White House handled the executive order on immigration, which left the measure dead in the courts. There is time for Trump to recover, and given the strong partisan incentives of the GOP, to make this moment of divided government work, Democrats certainly shouldn't be too confident about this challenging moment. Yet Tapper's remarks were right on target, and that basic thought ""?the impression Trump makes ""?will continue to sink deeper and deeper into the minds of voters and legislators who are watching these events and wondering just what kind of President we have.", -1234,2017/2/17,http://www.huffingtonpost.com/2017/02/17/samsung-chief-arrested_n_14810350.html,Samsung Chief Jay Y. Lee Arrested Over Alleged Role In Corruption Scandal,He is being held in a single cell with a TV and desk.,"SEOUL (Reuters) - Samsung Group chief Jay Y. Lee was arrested on Friday over his alleged role in a corruption scandal rocking the highest levels of power in South Korea, dealing a fresh blow to the technology giant and standard-bearer for Asia's fourth-largest economy. The special prosecutor's office accuses Lee of bribing a close friend of President Park Geun-hye to gain government favors related to leadership succession at the conglomerate. It said on Friday it will indict him on charges including bribery, embezzlement, hiding assets overseas and perjury. The 48-year-old Lee, scion of the country's richest family, was taken into custody at the Seoul Detention Centre early on Friday after waiting there overnight for the decision. He was being held in a single cell with a TV and desk, a jail official said. Lee is a suspect in an influence-peddling scandal that led parliament to impeach Park in December, a decision that if upheld by the Constitutional Court would make her the country's first democratically elected leader forced from office. Samsung and Lee have denied wrongdoing in the case. Prosecutors have up to 10 days to indict Lee, Samsung's third-generation leader, although they can seek an extension. After indictment, a court would be required to make its first ruling within three months. Prosecutors plan to question Lee again on Saturday. No decision had been made on whether Lee's arrest would be contested or whether bail would be sought, a spokeswoman for Samsung Group [SARG.UL] said. ""We will do our best to ensure that the truth is revealed in future court proceedings,""?the Samsung Group said in a brief statement after Lee's arrest. The same court had rejected a request last month to arrest Lee, but prosecutors this week brought additional accusations against him. ""We acknowledge the cause and necessity of the arrest,""?a judge said in his ruling. The judge rejected the prosecution's request to also arrest Samsung Electronics president Park Sang-jin. Shares in Samsung Electronics ended Friday down 0.42 percent in a flat wider market. Ratings agencies did not expect any impact on the flagship firm's credit ratings, and said Lee's arrest would accelerate improvements in management transparency and corporate governance. While Lee's detention is not expected to hamper day-to-day operations at Samsung firms, which are run by professional managers, experts said it could hinder strategic decision-making at South Korea's biggest conglomerate, or chaebol. Samsung is going through a restructuring to clear a succession path for Lee to assume control after his father was incapacitated by a heart attack in 2014. Decisions that could be complicated by Lee's arrest include deliberations over whether to reorganize the group under a holding company structure, as well as its plan to abandon its future strategy office, a central decision-making body that came in for criticism during the scandal. Staff moves have also been in limbo. Samsung, which employs around half a million people, has yet to announce annual personnel promotions and changes, which it typically does in December. One employee at Samsung Electronics""?chip division said colleagues were unsettled that prosecutors had singled out Samsung. ""the mood is that people are worried,""?the person said. However, another Samsung Electronics employee described the situation as business as usual. ""It wouldn""t make sense for a company of that size to not function properly just because the owner is away.""?Both employees declined to be identified, given the sensitivity of the matter. Lee's incarceration comes as Samsung Electronics tries to get past last year's disastrous roll-out of its Galaxy Note 7 smartphones, which were prone to fires. It is under pressure for the upcoming launch of its next flagship phone, the Galaxy S8, to be a success. Major business groups criticized the decision, worried about the impact on Samsung and the country. ""A management vacuum at Samsung, a global company representing the Republic of Korea, will increase uncertainty and undermine global confidence, posing a big burden on the already struggling economy,""?the Korea Employers Federation said. Lee's arrest gives a boost to prosecutors who have zeroed in on Samsung to build their case against President Park and her close friend Choi Soon-sil, who is in detention and faces charges of abuse of power and attempted fraud. Both Park and Choi have denied wrongdoing. Prosecutors have focused on Samsung's relationship with Park, 65, accusing the group of paying bribes totaling 43 billion won ($37.74 million) to organizations linked to Choi to secure government backing for the controversial 2015 merger of two Samsung units, a deal that was seen as key to smoothing Lee's succession. The prosecution office on Friday accused Lee of bribery not only in seeking to smooth the merger but in the broader process of his succession. A prosecution spokesman did not elaborate. If parliament's impeachment of Park is upheld, an election would be held in two months. In the meantime, she remains in office but stripped of her powers. Her would-be successors praised the decision to arrest Lee. ""We hope it marks a beginning to end our society's evil practice of cozy ties between government and corporations and move towards a fair country,""?said Kim Kyoung-soo, a spokesman for Moon Jae-in, a member of the liberal opposition Democratic Party who is leading opinion polls in the presidential race. Learn more", -1235,2017/2/17,http://www.huffingtonpost.com/2017/02/17/jimmy-fallon-donald-trump-press-conference_n_14810202.html,Jimmy Fallon Kills It With Hilarious Donald Trump Presser Spoof,"""Daddy came to play.""","Donald Trump just wants ""Hour more weeks, four more weeks.""?On Thursday's broadcast of ""the Tonight Show,""?host Jimmy Fallon-channeled the president to recreate his earlier press conference. Using a Magic 8-Ball, Trump expertly fielded reporters""?questions before deciding it was time to retire the term ""Hake news,""?and replace it with something more sophisticated sounding. Check out the full segment above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1236,2017/2/17,http://www.huffingtonpost.com/2017/02/17/peeping-tom-drone_n_14810192.html,Utah Couple Arrested Over 'Peeping Tom' Drone,Police say they tracked down the operator from a photo of the quadcopter's license plate.,"Here's one more thing you have to worry about: Drones sent by neighbors to spy on you in your home. Police arrested a Utah man with a history of voyeurism and his girlfriend on suspicion of flying a drone was spotted on area ""patrols.""?The drone videotaped people in their bathroom or bedrooms in the city of Orem, investigators said. One apparent target who spotted the tiny machine outside of his bathroom window chased it in his truck and grabbed it when it landed. He found several videos of people on the drone's photo card and delivered it to police in December, investigators told the Salt Lake Tribune. ""the citizen who located the drone was familiar with drones and had a similar one himself,""?according to a search warrant unsealed this week in court, the Desert News reported. ""there [were] multiple videos recording individuals inside their residences through windows. Some of the recordings were multiple stories high in apartment complexes.""?The cops posted a photo of the drone on their Facebook page along with a grainy picture of a man, his face disguised by police, apparently operating the controls for the eye-in-the-sky lifted from the drone photo card. ""Are you missing a quadcopter?""?the police asked in their-post. ""Are you looking over your shoulder to see if the police are following you?-Have you been convicted of voyeurism in the past?-Would you like to turn yourself in before we have to come knocking at your door, maybe on Christmas morning, with a warrant?""?The police warned: ""We know who you are but let's make this easier on everyone.""?No one turned themselves in, but police said they nabbed the couple after tracking the suspects from an image of a license plate retrieved from the drone. Aaron Dennis Foote, 39, and his girlfriend Terisha Lee Norviel, 34, have both been charged with a single misdemeanor count of voyeurism using concealed or disguised electronic equipment. Foote pleaded guilty in 2008 to a droneless charge of voyeurism at a local tanning salon and was ordered to complete anti-voyeur treatment,-the Tribune reported. His court hearing is set for next week. Norviel's court date is in March. Share this slide: Never miss a thing. Sign up for up-to-the-minute breaking news alerts delivered straight to your inbox. Learn more", -1237,2017/2/17,http://www.huffingtonpost.com/2017/02/17/56000-problem-bridges_n_14810182.html,"Shaky Dams Are Just The Start; 56,000 Bridges Are Also In Trouble",Aging spans cover the nation as delayed maintenance may threaten drivers.,"Nearly 56,000 bridges in the U.S. are ""structurally deficient,""?a new report finds. The bridges are traversed an estimated 185 million times daily. Among the highest- profile ""deficient""?bridges are New York City's-Brooklyn Bridge-and the Arlington Memorial Bridge in Washington, D.C. ""structurally deficient""?doesn""t necessarily mean the bridges are unsafe, but that they need attention. To earn the rating, one or more key bridge elements ""?such as the deck, superstructure or substructure-""?must be in ""poor""?or worse condition, according to the report. ""Just because a bridge is classified as structurally deficient doesn""t mean that it's unsafe to drive on,""?Peter Jones with Caltrans in California told ABC-7 News. ""those roads are perfectly safe.""?- The 14 most-traveled deficient bridges are in California, and 10 of those are in Los Angeles, notes The Associated Press. The study was conducted by the American Road and Transportation Builders Association, which has a vested interested in fixing up spans, but the findings are based on data from the Department of Transportation.- Almost 174,000 bridges (more than 1 out of 4 of all the bridges in America) are at least 50 years old and have never had major reconstruction work. Some 1,900 of the structurally deficients bridge are on interstate highways,-the study found. Iowa, Pennsylvania, Missouri, Oklahoma and Nebraska have the highest number of bridges with problems, according to the report. States with some of the highest percentages of structurally deficient bridges include Rhode Island (25 percent), Pennsylvania (21 percent), and Iowa and South Dakota (20 percent). Six percent of the bridges in Minnesota are structurally deficient. In-2007 bridge collapse in Minneapolis-killed 13 people dead and injured dozens of others. The news comes just as dams are giving Americans the jitters after a rupture in the spillway at Oroville Lake in Northern California forced the evacuation of some 200,000 people. Other California dams are in trouble as are other systems in the U.S.-The nation's aging dams, most of them a half-century old, has-earned a ""d""?from the American Society of Civil Engineers. President Donald Trump has proposed a $1 trillion infrastructure program for the next decade, but the source of funding hasn""t been identified. He also needs $21.6 billion-to build a wall along the border with Mexico. The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1238,2017/2/17,http://www.huffingtonpost.com/2017/02/16/trump-press-conference-senate-gop_n_14809372.html,Trump's Press Conference Had One Goal: Keep The Senate GOP In Line,"It's Trump's World now, if Congress can stand to live in it.","WASHINGTON ""?As scattershot and even crazy as it was, President Donald Trump's first solo press conference Thursday had an organizing principle: to keep congressional Republicans from going rogue on the topic of Russia's penetration of U.S.-politics in general and Trump World in particular. The meandering weirdness may render it all useless, but at least he had a strategy. Of all Trump's challenges to D.C. rules, none is more unsettling and disorienting to the GOP power elite than this new idea that we should cozy up to Russia, looking the other way ""?even cheering ""?as Vladimir Putin mucks around in our elections. Curmudgeon-in-chief John McCain, chairman of the Senate Armed Services Committee, isn""t the only Republican on the Hill suspicious of what Trump and his team were and are up to with Russia. So is Sen. Chuck Grassley, chairman of the Judiciary Committee, and Sen. Richard Burr, chairman of the Intelligence Committee, and Sen. Bob Corker, chairman of the Foreign Relations Committee, and perhaps a score of other GOP senators of various rank and stripe. Any or all of these chairmen ""?with the enthusiastic support of their Democratic committee members ""?could stage lengthy and, from Trump's point of view, painful hearings. Even Senate Majority Leader Mitch McConnell, that exquisitely sensitive barometer of precisely what a hard-right message can and will sell, has expressed deep concern about Russian involvement. The intelligence community is freaked out beyond measure ""?the Russians, for the most part, have been enemies since the late 1940s, and with very good reason.-But Trump perhaps can deal with them with a reign of terror internally, rooting out ""leakers""?and dissidents if he can find underlings willing to do it for him.- Vice Admiral Robert Harward told Trump after the press conference Thursday that he would not take the job of national security adviser, so he clearly wasn""t ready to be a willing underling.- But Congress is another matter, or so Trump has been advised by people who actually know the place. The House, with its oppressive rules, younger GOP members and large tea party Trumpian majority, is likely to remain docile and supportive for the most part.- But the Senate poses a risk: Many powerful GOP chairmen, older members who remember the Soviet Union, and former campaign foes, such a ""Little Marco""?Rubio of Florida, ""Lyin""?Ted""?Cruz of Texas and even the seemingly inconsequential campaign asterisk but actually very smart Sen. Lindsey Graham, are extremely wary and worried.- Rubio in particular has made his bones in foreign policy by being a steadfast foe of Putin and Russia. It was no coincidence that the president chose Wednesday night to dine with the senator from Florida and his wife, ostensibly to discuss Cuba.- How to hem the GOP Senate in? Dinners aside, by threatening to unleash upon the senators his base of populist, conservative and alt-right hunting dogs. And the best way to do that is to call a press conference and tell the assembled ""mainstream""?media to their face that they are a desperately unpopular mass of liars who peddle ""Hake news""?because they hate him and everything he and his base stand for. Which is precisely what Trump did Thursday. Just to make sure his base got the message, his political team had pre-written an email fundraising appeal that painted the press as his demonic enemy. It went out to his mailing list at the very moment he was finishing his 77-minute anti-press tirade. And just to button things up, Rush Limbaugh quickly concluded on the air that the press conference was one of the best and most successful in the modern history of the republic. So does anyone care about what former National Security Adviser Michael Flynn did or did not do for or with the Russians? How about former campaign chief Paul Manafort or anyone else? What about the new secretary of state, Rex Tillerson? What about the report that Flynn had lied to the FBI about what he had or hadn""t said to the Russian ambassador? That's all ""Hake news,""?senators, and don""t you forget it. Who are you going to believe? The ""Hake press""?or the Republican president of the United States, who won so many electoral votes? Focus on the leaks and the lying press, not what the president knew and when he knew it. So, say what you want, Trump got that message ""?and warning ""?out. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1239,2017/2/17,http://www.huffingtonpost.com/2017/02/17/elizabeth-warren-scott-pruitt_n_14808776.html,Sen. Elizabeth Warren Slams Pruitt: 'Big Polluters Have Their Fantasy EPA Nominee',"""Scott Pruitt sides with the corporate polluters. He has no business as head of the EPA.""?,Sen. Elizabeth Warren (D-Mass.) denounced President Donald Trump's nominee to head the Environmental Protection Agency", Scott Pruitt," Scott Pruitt sides with the corporate polluters. He has no business as head of the EPA.""?The Senate is scheduled to vote on Pruitt's nomination Friday afternoon" -1240,2017/2/17,http://www.huffingtonpost.com/SPOTTOON/spottoon-tribe-x-ep73_b_14808766.html,TRIBE X - Ep.73,,"Updated every Friday Copyright @2015 RollingStory Inc. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1241,2017/2/17,http://www.huffingtonpost.com/2017/02/16/scientists-facts-trump_n_14808704.html,Scientists Raise Alarm Over Truth-Averse Trump Administration,"""When officials use 'alternative facts' without embarrassment, you know there's a problem.""","Some of the world's top scientists are sounding an alert over an oppressive Trump administration and its suppression of important scientific facts, especially on climate change. ""When officials use a phrase like ""�alternative facts""?without embarrassment, you know there's a problem,""?physicist Rush Holt, CEO of the nonprofit American Association for the Advancement of Science, said at a press briefing Thursday in Boston before the AAAS annual meeting.- ""Ideological assertions have been crowding out evidence in public and private debates and in policy,""?Holt told The Guardian.-""people are truly troubled by what this means for the practice of science.""?Holt and other scientists expressed dismay at the Trump administration's silencing of scientists working for the federal government, concerned that important legislation will be passed by politicians with little knowledge of actual facts. The silencing of many official channels has given birth to several ""Alternative""?Twitter sites, such as RogueNASA and AltEPA, purporting to be the voice of truth from inside federal agencies. Last month, a national alliance of government employees, including scientists, sent a letter to the president asking him to protect scientific integrity,-warning that censoring science was a no-win situation with serious consequences for the environment.- Environmentalist and technology expert John Holdren, who was science adviser for the Obama administration,-singled out the proposed ""secret Science""?Reform Act, which aims to whittle down the power of the Environmental Protection Agency because the GOP claims its actions have been based on ""biased, politicized science.""?""the bill is really an attempt to squelch ""?and intimidate climate scientists,""?Holdren said.- AAAS President Barbara Schaal said in her conference speech that ""the role of science is to speak truth to power.""?The biologist also pointed out that good science relies on scientists crossing borders to share information. Scientists at the AAAS conference will be addressing climate change and the effect of immigration restrictions on scientific knowledge, among other issues, and how to address their concerns in the Trump administration. Physicist Neal Lane, science adviser in the Clinton administration, called on the community at large to ""embrace and defend""?scientists and science, adding: ""It's ugly and it's getting uglier.""?Scientists and supporters are planning a March for Science April 22. The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1242,2017/2/17,http://www.huffingtonpost.com/2017/02/16/donald-trump-presser-daily-show_n_14808690.html,Trevor Noah Sums Up Trump's Press Conference: 'What A Putz!',"""You have a president of a democracy who thinks press is only valid when they ask him easy questions.""","Like many people, Trevor Noah is still shocked by President Donald Trump's wacked-out press conference on Thursday. Not so much for the words that came out of the president's mouth as for the message implied by his responses. ""You have a president of a democracy who thinks press is only valid when they ask him easy questions,""?Noah said Thursday on ""the Daily Show.""?""�Questions that he likes. In fact, in his mind, he deserves it.""?Noah then summed up what millions of people are thinking right now: ""What a putz!""?Share this slide: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1243,2017/2/17,http://www.huffingtonpost.com/2017/02/16/alaska-resolution-hunting-predators-wildlife-refuges_n_14808530.html,Bill Would Allow Killing Of Bears And Wolves Again On Alaska Wildlife Refuges,"With GOP backing, the measure has already passed the House.","WASHINGTON -House lawmakers on Thursday advanced a measure to repeal an Obama-era rule that largely banned the hunting of bears, wolves and other predators on more than 76 million acres of national wildlife refuge land in Alaska. The Republican-sponsored legislation would undo the Alaska National Wildlife Refuges Rule, ultimately opening the door for the state to resume aggressive predator control tactics, including shooting bears and wolves from airplanes and killing cubs and pups in their dens. The House of Representatives passed the resolution by a 225-193 vote, mostly along party lines, sending it to the Senate for possible consideration. During his testimony on the House floor, Rep. Don Young (R-Alaska) defended his measure against what he described as ""Halsehoods""?and ""propaganda""?being spread by special interest groups.- ""they talk about killing [wolf] puppies and grizzly bears,""?he said. ""that does not happen nor, in fact, is it legal in the state of Alaska under our management.""Young added that the resolution is about overturning an ""illegal rule""?that prevents his state from managing its own fish and game.- Under the rule, issued in August by the U.S. Fish and Wildlife Service, predator control is not allowed on Alaska's 16 national wildlife refuges ""unless it is determined to be necessary to meet refuge purposes, is consistent with federal laws and policy, and is based on sound science in response to a conservation concern.""?The law also bans specific hunting methods on Alaska refuges, including killing bear cubs or adult females with cubs, baiting brown bears, taking bears using snares and traps, and aerial shooting of bears and wolves.- In a blog post published to The Huffington Post the day of the final ruling in August, former FWS Director Dan Ashe said that in implementing Alaska's Intensive Management Law, the Alaska Board of Game had ""unleashed a withering attack on bears and wolves that is wholly at odds with America's long tradition of ethical, sportsmanlike, fair-chase hunting.""Ashe continued:- In the name of hunters and hunting, they have approved shooting of brown and grizzly bears over bait; shooting mother bears with cubs, and even the cubs themselves; targeting bears and wolves from planes; and killing wolves and wolf pups in their dens. This is not sportsmanship. It is purportedly aimed at increasing populations of caribou and moose but defies modern science of predator-prey relationships. And finally, it is inconsistent with the laws guiding management of our National Wildlife Refuges in Alaska. Environmental groups see the Obama-era regulations as necessary for protecting some of Alaska's most iconic species. Following Thursday's vote,-Jamie Rappaport Clark, president and CEO of Defenders of Wildlife, blasted lawmakers for ""running roughshod over public lands""?and prioritizing such an issue.- ""Americans expect our national wildlife refuges to be managed for their conservation values for all wildlife, not just those species of particular interest to a few,""?Clark said in a statement.- Emily Jeffers, an attorney at the Center for Biological Diversity, called the action ""yet another extremist assault on the environment.""?""This bill has no scientific support and would dismantle rules that ensure wildlife refuges help conserve our natural heritage for future generations,""?she said in a statement.- Coming to Young and other supporters""?defense was the National Rifle Association, which called the Obama administration rule a ""Hederal power grab""?that ""set a dangerous precedent for all 50 states.""""This joint resolution puts an end to the Obama administration's last-minute attack on outdoorsmen,""?Chris W. Cox, executive director of the NRA's Institute for Legislative Action, said in a statement. ""Alaskans know best how to manage their wildlife.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1244,2017/2/17,http://www.huffingtonpost.com/2017/02/16/trump-press-conference-reaction_n_14808514.html,Scarier Than 'Psycho': Twitter Erupts Over Trump's 'Bats**t' Press Conference,What just happened?,"President Donald Trump's combative news conference on Thursday got a YUGE reaction on social media,-and the reviews weren""t exactly glowing.- Here's a sampling:- Up until an hour ago, the scariest thing I'd ever watched was Psycho. #TrumpPresser Only thing missing from #TrumpPressConference was a Festivus pole & Trump challenging Jim Acosta to feats of strength. #AiringofGrievances pic.twitter.com/Dxcr7ygTrW The world after watching the #TrumpPresser just now. pic.twitter.com/cOVPT7P2tp So, uh, anyone else just watch Trump's batshit press conference? https://t.co/0uGeniOurB pic.twitter.com/Y9E7KoUq2U Remember how we had those couple of decades where we didn't think we'd all die in a nuclear war? Good times.#trumppresser *backs away from the TV slowly"" #trumppresser pic.twitter.com/33NJDUjSLm Pretty sure even Homer Simpson could verbalise a less laughable description #TrumpPresser pic.twitter.com/vdiuHfBECr Remember the time when the craziest thing that happened at a Presidential press conference was some guy throwing a shoe #TrumpPresser If you missed the #TrumpPresser, here's a quick summary pic.twitter.com/sPMKWBLCmv Dear America, Your president appears to be broken, have you tried switching him off then on again? Or maybe check the warranty #TrumpPresser #TrumpPresser He said ""the leaks are real, the news is fake"" pic.twitter.com/RcfH4Yekqe @WillMcAvoyACN Listening to Trump's bullshit today was like being the designated driver responsible for bringing your drunk friend home. ""Running like a fine tuned machine"" #TrumpPresser pic.twitter.com/44fs3Shx7x I think Alec Baldwin has rather overdone it this evening. At least try and make it believable. #TrumpPresser ""We are running a fine-tuned machine""?#trumppresser pic.twitter.com/jVMc7okFAU I can feel myself entering the 6th stage of grief: Hysterical Laughter. #TrumpPresser TRUMP: My administration is running like a fine-tuned machine. pic.twitter.com/4BkUvh9bT4 Shorter Trump Press Conference: It's not my shit sandwich. Obama left the shit sandwich. I make the best sandwich. You hate me. Trump ""I inherited a mess. It's a mess. At home and abroad, a mess"" #TrumpPressConference #TrumpPresser He must have been asleep for 8 years pic.twitter.com/1TvRzhlQ85 Trump: ""My administration is running like a fine-tuned machine."" pic.twitter.com/2uOA9XprOV I think America should go stand in the corner and think very hard about what it's done. #timeout #naughtystep #TrumpPresser Overheard in the newsroom: This is the longest #SNL cold open *ever*!#TrumpPresser SNL writers at the moment. #TrumpPresser pic.twitter.com/XELzJqg5u9 Looks like I picked the wrong week to quit sniffing glue... #TrumpPresser Trump Impeachmint Ben & Jerry's anyone? @POTUS. #TrumpPresser pic.twitter.com/OyIaKdqZrs Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1245,2017/2/17,http://www.huffingtonpost.com/2017/02/16/ana-navarro-mocks-jared-kushner-cnn-complaints_n_14807954.html,Ana Navarro Mocks 'Baby Boy' Jared Kushner Over CNN Complaints,"""Boo-hoo!""","Republican strategist and CNN contributor-Ana Navarro did not hold back after learning that President Donald Trump's son-in-law and senior adviser,-Jared Kushner, was not her biggest fan. Hours after Trump berated the media in a chaotic news conference, The Wall Street Journal's Keach Hagey and Damian Paletta reported on a meeting Kushner recently had with a senior executive at CNN's parent company, Time Warner, in which the White House adviser aired some grievances.- Kushner reportedly complained to Gary Ginsberg, Time Warner's executive vice president of corporate marketing and communications, about CNN's coverage of the president and specifically referred to taking issue with Navarro and fellow contributor Van Jones, according to WSJ. ""Tr. Kushner has taken issue with specific CNN contributors including Van Jones, a Democrat who served in the Obama administration, and Ana Navarro, a Republican strategist, who have each criticized Mr. Trump in harsh terms, the people familiar with the matter said.""?Navarro quickly responded to the article on Twitter, mocking Kushner for behaving like a baby. Really, Little Jared complaining about me cuz I get under President Daddy-in-Law's skin? Oh, baby boy, I'm so sorry. https://t.co/4W8Sh9sHxy Little boy Kushner, tough guy who's supposed to achieve Middle East peace, is complaining about me to CNN. Boo-hoo! https://t.co/4W8Sh9sHxy Navarro's fiery criticism of Trump has been making headlines since the campaign season, when she called out then-candidate Trump for his racist comments. Most recently, she shut down a Trump supporter during a segment about the president's ties to Russia. CNN has stood by its coverage and its staff of journalists and contributors, even as the president has repeatedly attacked the network as ""Hake news.""?How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1246,2017/2/17,http://www.huffingtonpost.com/2017/02/16/robert-harward-national-security-adviser_n_14806676.html,Trump's Pick For National Security Adviser Rejects Job Offer After Erratic Press Conference,Vice Adm. Robert Harward reportedly took notice of the president's White House performance.,"President Donald Trump's pick to replace ousted National Security Adviser Michael Flynn turned down an offer to join the administration after the president's bizarre news conference on Thursday, several news outlets reported. Vice Adm. Robert Harward, a retired Navy SEAL and former deputy commander of U.S. Central Command, reportedly was offered the job heading the White House National Security Council after Flynn was forced to step down for lying about Russian contacts.-Harward is a senior executive at the defense contractor Lockheed Martin. Harward rejected the job because of family commitments and financial concerns,-according to a senior administration official. ""It's purely a personal issue,""?Harward told The Associated Press, adding that the Trump administration was ""lery accommodating to my needs, both professionally and personally.""?A friend of Harward's says he was reluctant to take NSA job bc the WH seems so chaotic; says Harward called the offer a ""shit sandwich."" Harward took notice of Trump's White House news conference on Thursday, a source told The Huffington Post. The president lashed out at the media, fiercely defended his administration's performance during its chaotic first month and said Flynn had done nothing wrong in discussions with Russian officials before the inauguration.- Trump also told reporters he had an ""Autstanding""?replacement in mind for national security adviser. Harward and the White House may have disagreed on key issues, like staffing at the National Security Council. A source close to the situation told The Huffington Post that Harward wanted more freedom to bring in his own staff. Flynn's former deputy, K.T. McFarland, had been expected to leave the administration after Flynn's resignation, but it became clear on Thursday that Trump wanted her to stay.- Flynn resigned-on Monday, following a Washington Post report that revealed he had-spoken with the Russian ambassador to the U.S.-about American sanctions-prior to Trump's inauguration, despite repeated assurances by administration officials, including Vice President Mike Pence, that he hadn""t done so. The Post later reported Trump had learned about Flynn's call weeks earlier from the Department of Justice, but didn""t act until Flynn's dishonesty with administration officials leaked. Flynn also lied about the Russian contact to FBI agents.- ""He was doing his job and his counterparts, so it certainly would have been okay with me if he did it,""?Trump said during-his 77-minute press conference-Thursday, referring to Flynn's call with the Russian ambassador.-""I would have directed him to do it if I thought he wasn""t doing it. I didn""t direct him, but I would""ve directed him because that's his job.""CNN reported the FBI was unlikely to pursue charges against Flynn. - Nick Visser contributed reporting.-- Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1247,2017/2/17,http://www.bbc.co.uk/news/uk-politics-38996179,Tony Blair calls for people to 'rise up' against Brexit,"Tony Blair is announcing his ""mission"" to persuade Britons to ""rise up"" and change their minds on Brexit.","Tony Blair is announcing his ""mission"" to persuade Britons to ""rise up"" and change their minds on Brexit. Speaking in the City of London, the former PM claims in a speech that people voted in the referendum ""without knowledge of the true terms of Brexit"". He says he wants to ""build support for finding a way out from the present rush over the cliff's edge"". But former Cabinet minister Iain Duncan Smith said Mr Blair's comments were arrogant and utterly undemocratic. Downing Street has said it is ""absolutely committed"" to seeing Brexit through. Prime Minister Theresa May wants to trigger formal Brexit talks by the end of March - a move which was backed in the House of Commons by MPs last week. Mr Blair, who was UK prime minister between 1997 and 2007, is using the speech to the pro-European campaign group Open Britain to stress that those driving a withdrawal from the European Union ""always wanted a hard Brexit"". ""Indeed even the term 'Hard Brexit' requires amendment. The policy is now 'Brexit at any cost',"" he says. ""Our challenge is to expose, relentlessly, what that cost is. ""To show how this decision was based on imperfect knowledge, which will now become informed knowledge. ""To calculate in 'easy to understand' ways how proceeding will cause real damage to the country and its citizens and to build support for finding a way out from the present rush over the cliff's edge."" Mr Blair, who campaigned to Remain in the EU, says while he accepts the verdict of June's referendum, he would recommend looking again at Brexit when ""we have a clear sense of where we're going"". He says the debate is being driven by immigration ""which I fully accept is a substantial issue"". ""Nonetheless, we have moved in a few months from a debate about what sort of Brexit, involving a balanced consideration of all the different possibilities; to the primacy of one consideration - namely controlling immigration from the EU - without any real discussion as to why, and when Brexit doesn't affect the immigration people most care about."" Mr Blair has faced criticism in the past for his government's decision to allow people from Poland, Hungary and the Czech Republic to work in Britain without restrictions, while most EU states imposed transitional controls to slow the rate of migration. BBC political correspondent Tom Bateman said the former prime minister's intervention on Friday is ""quite an explicit rallying call"" for those who campaigned on the Remain side, warning them that now is not the time to retreat but to ""rise up in defence of what we believe"". But he added that not everyone on the Remain side agrees with Mr Blair, with one former campaign boss arguing that they should be working for the best version of Brexit, rather than fighting against it. A government spokesman said the British people had expressed their view very clearly on 23 June, adding: ""There will be no second referendum."" Iain Duncan Smith, who was a prominent Leave campaigner, said Mr Blair's comments were arrogant, utterly undemocratic and showed that the political elite was completely out of touch with the British people. Supporters of leaving the EU argue it will free up the UK to trade better globally and give the government better control of immigration. Previously, Mr Blair has called for the views of the ""16 million"" people who had backed remaining in the EU not to be ignored. He has argued that there has to be a way, either ""through Parliament, or an election, or possibly through another referendum, in which people express their view"". Earlier this month, MPs overwhelmingly agreed to let the government begin the UK's departure from the EU by voting for the Brexit bill. The draft legislation was approved by 494 votes to 122, and will move to the House of Lords on Monday. But the Commons vote prompted splits in the Labour party, with shadow business secretary Clive Lewis quitting the front bench to vote against the bill. Despite calls by leader Jeremy Corbyn for his party to back the government, 52 MPs rebelled. Lib Dem attempts to amend the bill to include a provision for another referendum were defeated by 340 votes to 33. The government has promised to invoke Article 50 - setting formal talks with the EU in motion - by the end of next month, but it requires Parliament's permission before doing so.", -1248,2017/2/17,http://www.bbc.co.uk/news/world-us-canada-39000389,Robert Harward turns down Trump's national security adviser offer,US President Donald Trump's choice for national security adviser has turned down the job offer.,"US President Donald Trump's choice for national security adviser has turned down the job offer. Retired Vice-Admiral Robert Harward was widely tipped for the post after Mr Trump fired Michael Flynn on Monday. A White House official said Mr Harward cited family and financial commitments, but US media said the sticking point was he wanted to bring in his own team. Mr Flynn had misled US Vice-President Mike Pence over his conversations with Russia's ambassador to the US. The latest setback emerged hours after Mr Trump robustly denied media reports of White House disarray, insisting in a news conference that his administration was running like a ""fine-tuned machine"". The White House is expected to name its new communications director on Friday, and US media say the job will go to Mike Dubke, the founder of Republican media group Crossroads Media. Mr Harward told the Associated Press the Trump administration was ""very accommodating to my needs, both professionally and personally"". ""It's purely a personal issue,"" added the 60-year-old former Navy Seal who is currently based in Abu Dhabi as an executive for US defence contractor Lockheed Martin. Asked about reports that he had asked to bring in his own staff at the National Security Council, Mr Harward said: ""I think that's for the president to address."" Mr Flynn, a retired army lieutenant-general, was ousted amid claims that before he was even appointed as national security adviser he had discussed sanctions with a Russian envoy. This would have potentially breached a law banning private citizens from engaging in diplomacy. Mr Flynn initially denied having discussed sanctions with Sergei Kislyak, Moscow's ambassador to Washington. But on Monday, Mr Trump asked for his resignation following revelations that Mr Flynn had misled the vice-president about his conversations with the diplomat. Leading Republicans have called for an investigation into intelligence leaks that led to Mr Flynn's resignation. Two other contenders - retired General David Petraeus and acting national security adviser Keith Kellogg - have also been tipped to take on the job. Mr Kellogg, a retired three-star general, was named acting national security adviser after Mr Flynn stepped down. The 72-year-old had a long career in the US Army, serving in Vietnam and Iraq, before retiring in 2003 and becoming a security consultant for software giant Oracle Corp. Mr Petraeus, a celebrated former four-star general, retired as CIA director in 2012 after it emerged he had given top-secret material to his biographer, with whom he was also having an extramarital affair. He is still serving two years' probation after his conviction for mishandling classified information, and would need to notify his parole officer if he wished to move to Washington DC.", -1249,2017/2/17,http://www.bbc.co.uk/news/uk-39001011,Plastic 'nurdles' found littering UK beaches,"A search of 279 beaches around the UK found that almost three-quarters of them were littered with tiny plastic ""nurdles"".","A search of 279 beaches around the UK found that almost three-quarters of them were littered with tiny plastic ""nurdles"". Volunteers signed up to search their local shoreline, ranging between Shetland and the Scilly Isles, for the lentil-sized pellets, used as a raw material to make plastic products. They can cause damage to such wildlife as birds and fish, which eat them. The findings will be reflected in a government study into microplastics. Campaigners estimate that up to 53 billion of the tiny pellets escape into the UK's environment each year. This happens during the manufacture, transport or use of plastic products. The nurdles are often spilt accidentally into rivers and oceans or fall into drains where they are washed out to sea. Experts warn nurdles can soak up chemical pollutants from their surroundings and then release toxins into the animals that eat them. The Great Winter Nurdle Hunt survey was carried out by 600 volunteers over a weekend in early February. The largest number recorded were found at Widemouth Bay, Cornwall, where 33 volunteers collected some 127,500 pellets found on a 100-metre stretch of beach. They are one of the main sources of ""primary microplastics"" - small pieces of plastic which have come from larger items broken down into little bits - in European seas. 53 billion nurdles estimated to escape into the UK environment each year 230,000 tonnes estimated to be entering the ocean in Europe annually 73% of 279 shorelines surveyed had plastic pellets on them 127,500 nurdles were found on one 100m-stretch of beach in Cornwall Madeleine Berg of Fidra, a Scottish environmental charity which organised the hunt, said she was delighted so many people took part in the hunt - and says it shows that action is needed. ""Simple precautionary measures can help spillages and ensure nurdles don't end up in our environment,"" she said. ""We are asking the UK government to ensure best practice is in place along the full plastic supply chain, and any further nurdle pollution is stopped."" Fidra organised the nurdle hunt along with the Environmental Investigation Agency, Fauna and Flora International, Greenpeace, the Marine Conservation Society and Surfers Against Sewage. Plastic oceans: What do we know? The beaches where Lego washes up The findings come after another campaign by Fidra, which saw Johnson & Johnson announce that their cotton buds will no longer have plastic stems. As of this week, the multinational company will change their buds from plastic to paper in almost half the world's countries, including the whole of Europe, in an attempt to cut marine pollution. Plastic stems are one of the most common items of litter found on UK beaches. They end up in our oceans after the cotton buds - which are not supposed to be flushed down the toilet - enter the sewage system. Waitrose, John Lewis, Marks and Spencer and the Body Shop are among the brands already selling non-plastic cotton buds. A further 10 retailers including Tesco, Boots and Mothercare have said they will change from plastic to paper stems by the end of 2017. Have you seen nurdles or other refuse on a beach near you? Are you a beachcomber with pictures of nurdles or unusual items that you have found? Send your pictures and your comments to haveyoursay@bbc.co.uk Or you can contact us in the following ways: WhatsApp: +44 (0)7525 900971 Twitter: @BBC_HaveYourSay SMS/MMS: 61124 or if you are outside of the UK +44 7624 800 100", -1250,2017/2/17,http://www.bbc.co.uk/news/uk-39000174,Britons injured in Norway boat accident,Several Britons have been taken to hospital following a boating accident off the coast of Norway.,"Several Britons have been taken to hospital following a boating accident off the coast of Norway. Police said 10 British tourists and a local driver were injured when a speedboat hit a water fountain near the town of Harstad. A second boat following behind is thought to have been caught up in the incident. Norwegian Police said two people were seriously injured. The Foreign Office said it was in contact with the Norwegian authorities. According to local police, a total of 24 people, including three crew, were on board the two rigid-inflatable boats when the collision happened at about 15:00 local time (14:00 GMT). All 11 people on the first boat were thrown into the sea, but none of their injuries are thought to be life-threatening. Tore Didriksen of the Harstad police force said: ""We have now brought all the passengers to hospital for help and first aid. We will also talk to the pilots of the boats and the witnesses."" Nils Mehren, a local journalist who saw the accident from his office, said the boats were moving at high speed and that the impact threw people into the Norwegian Sea ""like dolls"", AP news agency reported. The ten passengers and the driver spent about 15 minutes in the 6C water, the agency said. The British group were on a tour with a local travel agent, police said. A spokesman for holiday company Inghams said the tourists had been on a boat excursion as part of their ""Arctic Fjord"" short break. He added: ""Following an incident this afternoon as they came into harbour at the end of the sea safari (the cause of which remains unconfirmed at this time), the passengers, the boat pilot and our tour leader were all taken to hospital in Harstad for check-ups. ""Sadly it appears that the boat pilot has more serious injuries, and has been transferred to Tromso hospital. ""Six guests and our tour leader are reported to have minor injuries. Of these six, four guests and our tour leader are staying overnight in Harstad hospital on a precautionary basis."" Gro Dagsvold, of local tourist organisation Visit Harstad, said the tourists had arrived from London on Wednesday. Harstad is on the country's largest coastal island, Hinnoya, and about 875 miles north of the capital Oslo. Are you in the area? Let us know about your experiences. Email haveyoursay@bbc.co.uk with your stories. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -1251,2017/2/17,http://www.bbc.co.uk/news/uk-38999963,Couple who met over a bin finally marry in their 80s,,"Joan Neininger and Ken Selway, who are both in their 80s, met back in 1975 in Gloucester city centre. Ken was homeless at the time and met Joan while he was rifling through a bin. After decades of as they say, ""ups and downs"", the couple are to wed on Saturday. Jon Kay went to meet them.", -1252,2017/2/17,http://www.bbc.co.uk/news/world-us-canada-39000118,Donald Trump aide accuses BBC of 'fake news',,"In a heated exchange between Newsnight's Evan Davis and an aide to President Trump, both the presenter and the BBC were accused of ""fake news"". First broadcast on Thursday 16th February, watch the full interview on BBC iPlayer", -1253,2017/2/17,http://www.bbc.co.uk/news/world-asia-38997370,Samsung heir Lee Jae-yong arrested in South Korea,"Samsung's heir apparent Lee Jae-yong has been placed under arrest in South Korea, accused of bribery and other charges.","Samsung's heir apparent Lee Jae-yong has been placed under arrest in South Korea, accused of bribery and other charges. The case is linked to a scandal that led to the impeachment of President Park Geun-hye. Samsung is accused of giving donations to non-profit foundations operated by Choi Soon-sil, a friend of Ms Park, in exchange for government favours. Mr Lee and the Samsung Group deny any wrongdoing. The acting Samsung chief was first questioned by prosecutors in January, but they decided then not to arrest him. But he was questioned for a second time earlier this week. On Friday, the court said it ""acknowledged that it is necessary to arrest [Lee Jae-Yong] in light of a newly added criminal charge and new evidence."" The prosecution will now investigate further, and has 20 days to file formal charges. The arrest does not reflect a court opinion on guilt or innocence but only means it considers the potential crime very serious or that it assumes a flight risk. Prosecutors accused Mr Lee of giving donations worth 41bn won ($36m;?29m) to organisations linked to Ms Park's close friend Ms Choi. They alleged this was done to win government support for a big restructuring of Samsung that would help a smooth leadership transition in favour of Mr Lee, who is standing in as chairman for his ill father, Lee Kun-hee. The controversial merger required support from the national pension fund - the allegation is that this support was granted in return for the donations. In a December parliamentary hearing, Samsung admitted giving a total of 20.4bn won to two foundations, but denied seeking favours in return. Mr Lee also confirmed the firm gave a horse and money to help the equestrian career of Ms Choi's daughter, Chung Yoo-ra, something he said he now regrets. This centres around President Park's ties to Ms Choi and has brought allegations of cult activities, influence-peddling and leaks of classified information. Ms Choi is a long term family friend whose father had already had close ties with President Park's father who was president in the 1970s. As well as soliciting donations, Ms Choi is accused of using their friendship to interfere in politics. She is now on trial charged with various offences, including abuse of authority, coercion and attempted fraud, and denies wrongdoing. Parliament voted in December to impeach President Park. Her case is now being heard by the constitutional court. Meanwhile she has been stripped of her presidential powers. A friendship too far in Seoul? Mr Lee is currently vice-chairman of Samsung Electronics. But since his father, Lee Kun-hee, suffered a heart attack in 2014, he is considered de facto boss of the entire Samsung Group conglomerate. Regardless of the outcome, a trial is a big blow to the company. His arrest may not affect short term production or the running of the firm but there could be long term implications. Shares in the conglomerate's firms lost between 0.5% and 2% on Friday. - Grandson of Samsung founder Lee Byung-chul, son of current chairman Lee Kun-hee. - Aged 48, he's spent his entire career in the company and is vice chairman of Samsung Electronics. - Last year was nominated to join the board of Samsung Electronics - an appointment confirmed on 27 October. - Widely expected to take overall control of Samsung once his 74-year-old father steps down. - Critics say his position on the board is due to his birth, not his business experience. Samsung is one of the biggest electronics companies in the world and for the head of a company that thrives on a premium brand image to be involved in a corruption scandal is a huge embarrassment. It says it will do its best ""to ensure that the truth is revealed in future court proceedings"", though denies wrongdoing.", -1254,2017/2/17,http://www.bbc.co.uk/news/business-39000471,Business revolt grows over 'outrageous and unfair' rate change,"Some of the UK's biggest employers' groups have united in condemning the government's ""outrageous"" changes to business rates.","Some of the UK's biggest employers' groups have united in condemning the government's ""outrageous"" changes to business rates. They are most vexed about a clause they say could prevent firms appealing against rate rises, even if firms can prove they are wrong. Thirteen of them, including the British Retail Consortium and CBI, have written a letter calling for it to be dropped. But a government spokesman said the ""claims are simply false"". Other signatories to the letter include the Federation of Small Businesses, Revo, the Association of Convenience Stores, and the British Property Federation. The next business rates revaluation comes into effect on 1 April - the first for seven years - but the lobby groups said that tens of thousands of firms still face uncertainty over bills. Earlier this week, pubs and restaurants called for Chancellor Philip Hammond to dilute the impact of the business rate rises in his March Budget. Business rates are in effect the commercial version of council tax, and are paid on the rental value of the space that businesses occupy. The amount depends of the size of the property and what it's used for. The last time properties were valued, in 2010, almost half of businesses appealed against how much they were due to pay. The government wants to cut down on the number of these appeals. The trade groups say the government wants the right to dismiss appeals against incorrect valuations that are deemed to be within the bounds of ""reasonable professional judgement"", or margin of error. This allowable margin of error has not been disclosed, but experts say it could be as much as 15%. John Webber, head of ratings at property company Colliers International, said the problem was that the ""margin for error"" allowed by the government was simply too wide. He told the BBC: ""Every rateable value is an opinion, so there will be a boundary of judgement there. The problem you're going to have is if you have a property with a rateable value of ?100,000 and you think it should be ?90,000, then that 10% tolerance is arguably still within the bounds of reasonable professional judgement. ""Therefore, the list will not be altered and as the rating list lasts for five years potentially you will be paying, over a five year period, at least 10% more than you should do,"" Mr Webber adds. Helen Dickinson, director-general of the British Retail Consortium, told the BBC that the tax was ""no longer fit for purpose in the 21st Century"". She says that although technically, under new government rules, business owners will be able to appeal against a higher valuation, a clause states that even if rates are found to be unfair they can still stand if they lie within the bounds of ""reasonable professional judgement"". This somewhat vague wording is, she says, ""what everyone is upset about"". Jerry Schurder, head of business rates at property consultancy Gerald Eve and a supporter of the protest, said: ""The government's outrageous proposals... would force hard-pressed businesses to cough up an extra ?1.9bn to pay for the Valuation Office Agency's (VOA) mistakes. ""The way that trade bodies from a wide spectrum of industries have been motivated to unite against this clause shows the strength of feeling against what is a punitive and deeply unfair proposal,"" Mr Schurder said. But the government issued a strong rejection of the claims. A spokesman said: ""These claims are simply false. We are not preventing anyone from appealing their bills, or setting any margin of error for appeals being heard. ""We're reforming the appeals process to make it easier for businesses to check, challenge and appeal their bills, while at the same time generous business rate reliefs mean thousands more businesses are seeing a reduction."" He added that, once the changes come in to effect, 600,000 businesses will pay not rates at all. Is your business affected by the proposed changes? Email haveyoursay@bbc.co.uk with your stories. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -1255,2017/2/17,http://tass.com/pressreview/931441,Press review: Lavrov-Tillerson meeting and banking embargo for 'unfriendly states',"Top stories in the Russian press on Friday, February 17","Russia is concluding paying off the external debt of the Soviet Union. The last tranche will be paid to Bosnia and Herzegovina, Izvestia writes on Friday. A source in the Russian government said the deal on settling the last debt estimated at $125.2 mln is ready and expected to be signed in the coming months. The payment will be carried out before this summer. The Finance Ministry confirmed that the Soviet-era debt will be settled by the end of the year. Last week, the Finance Ministry said the Soviet Union's $60.6 mln debt to Macedonia was paid off and that the only outstanding Soviet-era debt was to Bosnia and Herzegovina. Like Macedonia, the country was formed as a result of Yugoslavia's breakup and had the right to reclaim part of the USSR's debt, the paper says. The Finance Ministry's press service confirmed that the debt will be redeemed through state budget funds. According to the ministry's official documents, some 512.3 bln rubles ($8.9bln) are envisaged for these purposes. The debt to Bosnia and Herzegovina will be paid off within 45 days from the ratification of an intergovernmental agreement. The payment of the Soviet Union's debt is a political move, said Professor of the Russian President's Academy of the National Economy and Public Administration (RANEPA) Yuri Yudenkov. ""It is very important for international status that we recognized the debts of the Soviet Union and paid them off. At the same time, we forgave the debts of such countries as Vietnam and Algeria."" - Russian Chief of General Staff Valery Gerasimov met with his US counterpart, Chairman of Joint Chiefs of Staff General Joseph Dunford in Azerbaijan's capital of Baku on Thursday. The first face-to-face talks between Russian and US military chiefs in nearly three years focused on the crisis in Syria. Both parties agreed to step up contacts at various military levels, but there was nothing on full-fledged military coordination, Kommersant writes. Sources familiar with the matter told the paper that the preparation for talks had lasted for several months and faced some difficulties. Last time, the US and Russian military chiefs met was in January 2014 in Brussels but two months later the Pentagon suspended all contacts with Russia's Defense Ministry over events in Ukraine's southeast and Crimea's reunification with Russia. Since then, the political situation deteriorated, one of the sources told Kommersant. The meeting was held in Azerbaijan, which is seen as neutral ground, given that both Russia and the US have ""strong relations"" with Baku. The meeting was marred by a statement by US Defense Secretary James Mattis, who said negotiations with Russia needed to be from a position of strength. In response, Russian Defense Minister Sergey Shoigu demanded ""explanations for the Pentagon's position."" However, sources told Kommersant the ministers""?statements had no significant impact on the talks between Dunford and Gerasimov, which were ""held in a rather calm atmosphere."" The chiefs of general staff exchanged views on current Russian-US relations and gave their assessment on the situation in Europe, the Middle East and North Africa. According to Kommersant, Russia's General Staff is gravely concerned over the Pentagon's plans to send ""boots on the ground"" to Syria. Russia's military says this may destabilize the situation in the country, derailing efforts by the Russian Center for Reconciliation of the Opposing Sides. However, the US military denied that they had-such plans. - The G20's two-day summit kicked off in Germany's Bonn on Thursday, where the world's top diplomats gathered together. However, from the very beginning of the event, all eyes were on the talks between Russian Foreign Minister Sergey Lavrov and US Secretary of State Rex Tillerson, who met for the first time, Izvestia writes. Sources in Russia's delegation told the paper that Tillerson had still not assembled his team and the reshuffle is expected to shake up more than half of all US diplomats. So, full-fledged work at the diplomatic level of the two countries has yet to begin. Political scientist and Honorary Chairman of the Foreign and Defense Policy Council, Sergey Karaganov, said the two top diplomats are likely to find common ground and points of departure for dialogue. ""I'm sure the outcome of these talks was constructive. And thanks to this, Russian-US relations will gradually start pulling out of the current crisis,"" he said. Alexei Pushkov, a member of the Defense and Security Committee of the Federation Council, said the sides have to continue work in key areas, including the crises in Syria and Ukraine, the war against the Islamic State (terrorist group, outlawed in Russia), North Korea's nuclear program and European security issues. However, no breakthrough is expected in any these areas in the near future, he noted. Program Director of the Valdai International Discussion Club's foundation Dmitry Suslov told Nezavisimaya Gazeta: ""De facto, the thawing of Russian-US relations is already underway, and the primarily indication of this is the meeting between the Russian and US chiefs of general staff. But it is also important to have a thaw in relations at the level of department and division chiefs in the Foreign Ministries. It is also important to restore dialogue in a whole range of relations,"" he explained. The expert said the meeting in Germany's Bonn is timely after the controversial departure of US National Security Adviser Michael Flynn. ""Until recently, Flynn was the main representative of the Trump administration for cooperation with Russia. He paid the price for that as things had been sabotaged by the so-called irreplaceable state bureaucrats who leaked to the media the outcome of his talks with Russia's representatives, including Ambassador Sergey Kislyak."" ""It is evident that now Tillerson will cooperate with Moscow on behalf of the Trump administration. At least, he will play a key role here,"" the expert noted. In this context, Russia should discuss all issues with Tillerson, including the US policy in Syria and Washington's possible withdrawal from the Iranian nuclear deal, Suslov said. - Russia's government has plans in store to ban foreign banks from ""unfriendly states"" from cooperating with Russia's strategic state companies. Deputy Finance Minister Alexei Moiseyev announced that the respective resolution is already being drawn up. Nezavisimaya Gazeta writes that apparently the Russian authorities do not expect the new US administration to take steps towards a thaw in ties and are gearing up to escalate the already strained situation. Moscow apparently fears that the anti-Russian sanctions will not only remain in force, but will be toughened to the levels of the so-called Iranian scenario, where the accounts of companies opened in the banks of other countries may be frozen, the paper writes. Russia's authorities have decided to extend the embargo on foreign banks, the paper says. Moiseyev said the Finance Ministry has drawn up a draft regulation with demands for banks where the state companies, federal state unitary enterprises, state non-budget funds may open accounts, make deposits and purchase securities of these banks. One of the proposals is that the government could decide on excluding a bank from the list if its parent company is based in a country that took an ""unfriendly decision against Russia."" The ""unfriendly"" are those states that introduced anti-Russian sanctions and which are subject to Russia's food embargo. Among them are the EU states, Norway, the United States, Australia, Canada, Iceland, Lichtenstein, Albania, Montenegro and Ukraine. Switzerland is not on this list and may not be subject to the proposed banking ban. Experts interviewed by the paper confirm that the Finance Ministry's initiative is a defensive response against any possible future restrictions. However, Dmitry Lukashov, an analyst at IFC Markets warned of grave consequences. ""If all possible avenues of cooperation are closed, the implementation of current projects may be seriously complicated."" ""The aftermath may be different, and could go as far as ditching some beneficial projects that are almost ready."" Russia's companies, which were not hit by the Western sanctions, may be also affected, he noted. - A subsidiary of Russia's oil giant, Rosneft Brasil, has announced the launch of drilling works at the first prospecting well in Brazil. The US-based, global oilfield services company, Schlumberger, and Brazil's Queiroz Galvao Oleo e Gas (QGOG) will provide their services. Experts told Izvestia that this partnership demonstrates that US companies seek to work with Russia in spite of the sanctions. At least four wells will be drilled as part of the Solimoes gas project. ""The fact that Rosneft is operator of the international project in such a major oil and gas country as Brazil shows that the company has exceptional technology and the needed competence,"" said Rustam Tankayev, a leading expert at the Union of Oil and Gas Producers of Russia. Regardless of the sanctions, US companies want to work with Russian oil producers, and that's why such international projects have emerged, Tankayev noted. The global oilfield services company, Schlumberger, will be in charge of integrated management for the project to organize all the necessary services. Analyst at Alor group Kirill Yakovenko said Rosneft's activity abroad is estimated at around 1% in the overall extraction structure and the potential growth is up to 5%. ""Rosneft is actively developing cooperation with all the leading oilfield services companies. The project in Brazil is a good example of our partnership with Schlumberger, one of the renowned leaders in the sector. It is noteworthy that our companies are successfully cooperating in Venezuela,"" Rosneft told Izvestia. Schlumberger started curtailing its operations on the Russian market after Moscow was hit by sectoral sanctions in 2014. As a result, Rosneft launched its own drilling business - it purchased services companies and increased the number of drilling teams, the paper writes. - TASS is not responsible for the material quoted in the press reviews", -1256,2017/2/17,http://tass.com/politics/931478,"Suspected Turkish killer of Su-24 pilot may be handed over to Russia ""?Justice Ministry",,"MOSCOW, February 17. /TASS/. Alparslan Celik, the suspected killer of Russia's Su-24 bomber pilot, may be handed over to Moscow under the Russian-Turkish agreement on Mutual Legal Assistance in Criminal Cases and Extradition, Russian Deputy Justice Minister Maxim Travnikov said. ""In theory, yes,"" Travnikov said when asked if Celik could be extradited to Russia. ", -1257,2017/2/17,http://tass.com/politics/931472,Russia does not expect PACE regulations to be changed soon,"In April 2014, the Russian delegation to PACE was stripped of its key rights over developments in Ukraine and Crimea's reunification with Russia","MOSCOW, February 17. /TASS/. Russia does not expect the regulations of the Parliamentary Assembly of the Council of Europe (PACE) that would protect the rights of national delegations to be amended soon, Pyotr Tolstoy, Vice-Speaker of Russia's State Duma (lower house of parliament) said on Friday. State Duma speaker, Vyacheslav Volodin, earlier said that the United Russia political party will nominate Tolstoy as head of Russia's delegation to PACE. ""On our part, the condition for the Russian delegation's return to PACE is changing the organization's regulations in such a way as to rule out the possibility of stripping any nation of its voting rights. I emphasize, not only our country, but any country,"" the parliamentarian confirmed speaking at the beginning of the State Duma plenary session. ""Of course, the implementation of these amendments is a lengthy process. So, we begin with work fully realizing that we should not expect immediate results."" Tolstoy recalled that the State Duma delegation will take part in the upcoming meeting of the PACE Standing Committee in Madrid on March 10 to discuss amendments to PACE's regulations and steps to protect the rights of national delegations in the assembly. ""Our major task now is to begin dialogue with the assembly's senior officials, outline our stance on the key issues and try to secure the support of Standing Committee members with a view to addressing the regulations issue we are interested in, and we will insist on that,"" he explained. ""That does not yet mean the return of Russia's delegation to PACE sessions. That is our bid for the beginning of an honest dialogue on the rules of this international organization so that the opinions of all countries, all peoples and all lawmakers are taken into account."" In April 2014, the Russian delegation to PACE was stripped of its key rights, including the right to vote and take part in the assembly's governing bodies, over developments in Ukraine and Crimea's reunification with Russia. The issue of restoring the rights of the Russian delegation was raised at PACE twice throughout 2015 but the sanctions remained in place. In response, Russia suspended its participation in PACE activities till the end of 2015. In January 2016, Russia refrained from applying for confirmation of its rights for 2016.", -1258,2017/2/17,http://tass.com/economy/931466,Putin says Russian economy demonstrating positive dynamics,"Last year's results ""turned out better than expected"", according to the Russian president","NOVO-OGARYOVO, February 17. /TASS/. Russian authorities are noting positive economic trends whereas the results of 2016 were better than expected, President Vladimir Putin said at a meeting on economic issues on Friday. ""On the whole, we view positive dynamics in the economy,"" he said, adding that last year's main indicators ""turned out better than expected."" ""GDP contraction amounted to 0.2%, according to the latest estimates, despite worse projections, whereas industrial production increased 1.1%,"" President said. Inflation in Russia continues to decline. In February of this the figure in annual terms was lower than 5%, according to Putin. ""This year, a steady decline of inflation continues, the figure broke the psychological mark of 5% in annual terms in February of this year, and then lowered - as of February 13 it stands at 4.72%,"" Putin said. The Russian president-has requested the government to find ways to tackle inflation and spur production growth in the country. ""Now it is extremely important to find balanced solutions to ensure a further decline in inflation, the development of local production, industry, agriculture, which in its turn will facilitate the recovery of real income growth in Russia,"" he said. Prime Minister Dmitry Medvedev, First Deputy Prime Minister Igor Shuvalov, Presidential aide Andrei Belousov, Minister of Industry and Trade Denis Manturov, Economic Development Minister Maxim Oreshkin, Finance Minister Anton Siluanov, Chairperson of the Russian Accounts Chamber Tatyana Golikova and Central Bank Chief Elvira Nabiullina were present at the meeting. According to Putin, this is the second meeting of the kind this year. ""The trends are clear already, and we have to assess them and plan ahead,"" he said.", -1259,2017/2/17,http://tass.com/defense/931461,Contract for delivery of Russia's Su-35 fighter jets to Indonesia to be signed soon,Russia plans to sign a contract with Indonesia on the delivery of ten Su-35 multipurpose fighter jets,"BANGALORE (India), February 17. /TASS/. A contract for the delivery of Russian-made advanced Sukhoi Su-35 fighter jets to Indonesia is expected to be signed in the coming months, Director for International Cooperation and Regional Policy of Russia's state hi-tech corporation Rostec Viktor Kladov told TASS on Friday. ""We hope that the contract for Su-35 aircraft will be signed in the imminent future. I believe it will be signed in the coming months,"" Kladov said. It was reported earlier that Russia planned to sign a contract with Indonesia on the delivery of ten Su-35 multipurpose fighter jets. Russian armaments are widely used in the Indonesian Army. Specifically, the Indonesian Air Force operates Su-27 and Su-30 aircraft. Su-35 fighter jets are set to replace the outdated US F-5 Tiger planes operational in the Indonesian Air Force since 1980. ", -1260,2017/2/17,http://tass.com/politics/931457,Russia ready to boost counter-terrorism cooperation with Pakistan,Putin has offered condolences to his Pakistani counterpart on the terrorist attack in the Sindh province,"MOSCOW, February 17. /TASS/. Russian President Vladimir Putin has offered condolences to his Pakistani counterpart Mamnoon Hussain and Pakistan's Prime Minister Nawaz Sharif on the mosque attack in the Sindh province, the Kremlin said on its website. ""I would like to reaffirm our willingness to further step up counter-terrorism cooperation with our Pakistani partners both on a bilateral basis and as part of broad international efforts,"" the Russian leader said in a telegram to Pakistan's leaders. ""This barbaric crime cannot be justified. We hope that those behind it will not escape the punishment they deserve."" The Russian leader also asked to convey his sincere sympathy to the families and friends of those who died in the attack and wished a speedy recovery to those injured. The death toll in Thursday's terrorist attack in a Sufi mosque in Pakistan's southern Sindh province has climbed to 74, more than 300 people were injured . According to eye witnesses, the suicide bomber made an unsuccessful attempt to throw a grenade into a crowd of worshippers and then blew himself up. The Islamic State terrorist group (outlawed in Russia) claimed the responsibility for the attack.", -1261,2017/2/17,http://tass.com/economy/931453,Russian government approves Egypt-Russia aviation security protocol,"Russian, Egyptian airlines will perform flights only with permission of Russian aviation safety experts","MOSCOW, February 17. /TASS/. Russian government has approved the aviation safety protocol between the Russian Federation and Egypt, according to the cabinet's decree signed by Prime Minister Dmitry Medvedev. ""The protocol implies that Russia's representatives will monitor the accomplishment of aviation safety measures by Egyptian specialists in the country's international airports. The time of flights resumption depends on the accomplishment of aviation safety requirements by the Egyptian side,"" a note to the government's decree said.- The Russian side can set up a separate legal entity to track the aviation safety, the protocol said. ""The entity directly responsible for the implementation of the protocol's provisions from the Russian side (Federal Air Transport Agency, or Rosaviatsia - TASS) may authorize experts of the Russian legal entity to exert control in international airports of the Arab Republic of Egypt, from which airlines of the states involved perform flights to the Russian Federation,"" the document said. According to the protocol, Russia's legal entity will be able to exert control over the procedures of ensuring aviation safety regarding aircraft, passengers, cargoes, luggage, mail, flight catering and board supplies bound for the Russian Federation. Russian, Egyptian airlines will perform flights only with permission of Russian aviation safety experts. In end-December 2016, Russian experts visited the airport of Cairo for yet another inspection. In January 2017, similar inspections were performed in the airports of Hurghada and Sharm El-Sheikh. Negotiations on resuming flights between Russia and Egypt have been underway since late 2015. Moscow suspended air service with Egypt in November 2015 after a terrorist attack on board an A321 jet from Russia's air carrier Kogalymavia that was en route from Sharm el-Sheikh in Egypt to Russia's St. Petersburg. The passenger airliner crashed over the Sinai Peninsula early on October 31. All 224 people onboard, including 217 passengers and the seven-member crew, were killed.", -1262,2017/2/17,http://tass.com/politics/931450,"Moscow says constitutional referendum won""t settle Nagorno-Karabakh conflict","Russia's Foreign Ministry believes Nagorno-Karabakh's status ""should be determined through political talks in the framework of the Minsk process""","MOSCOW, February 17. /TASS/. Russia does not believe that peaceful settlement in Nagorno-Karabakh may depend on holding a constitutional referendum in the region disputed between Armenia and Azerbaijan, Russia's Foreign Ministry said on Friday. The constitutional referendum is scheduled to take place in Nagorno-Karabakh on February 20. ""We do not recognize Nagorno-Karabakh as an independent state,"" the ministry's information and press department said. ""We consider that its status should be determined through political talks in the framework of the Minsk process."" ""We do not believe that peaceful settlement could depend on holding the above mentioned ""�constitutional referendum,""? the ministry said. On February 14",000 people between 1988 and 1994. Since then -1263,2017/2/17,http://tass.com/world/931452,Russian doctors use mobile field hospital to provide medical care to Aleppo residents,More than 200 people receive medical care and consultations from the field hospital every day,"ALEPPO /Syria/, February 17. /TASS/. The Russian special purpose medical detachment carries out consultations and provides eastern Aleppo residents with medical supplies in a field hospital deployed to different parts of the city daily, head of the field hospital group, Dmitry Onishchenko, told reporters. ""We deliver medical care and provide people with medicines for a full course of treatment so that they do not have to go to local pharmacies, since many of these people do not have such an opportunity,"" he said. According to Syrian medics, militants have destroyed local hospitals and out-patient clinics, not only that but many doctors had left Aleppo when hostilities were underway. The remaining hospitals have shortages of medicines because of the Western sanctions imposed against Syria. More than 200 people receive medical care and consultations from the field hospital every day. Russian military police officers ensure the medical staff's safety. To understand patients""?problems better, the doctors began learning the Arabic language. A local woman with her daughter named Rusiya (that's the Arabic for Russia) is one of the patients of this field hospital. The girl was born when Aleppo's eastern neighborhoods were liberated from terrorists at the end of last year. ""When I returned from the maternity ward with my daughter, a homemade mortar bomb fired by militants exploded near our house. I was frightened and prayed to God so that the Russian army would help rout the terrorists as soon as possible,"" Amina Nasan said. ""And the next day I heard that eastern Aleppo was liberated. I was so happy and called my daughter Rusiya in honor of your country."" ""Western countries have caused our medical industry practically just as much damage as the terrorists. They imposed sanctions against our country. Because of this, we cannot import needed medication, new equipment and even spare parts for old equipment. Still, these people keep talking about mercy and human rights violations in our country,"" said Ibrahim Hadid, Director of the Aleppo University Hospital.", -1264,2017/2/17,http://tass.com/politics/931438,Putin calls governors' rotation natural process,The Russian president said he is sure the governors who resigned recently will be able to use their skills and experience in other areas,"MOSCOW, February 17. /TASS/. Russian President Vladimir Putin has said that governors""?rotation is a natural process expressing the hope that their skills will be highly sought after in other areas. ""The rotation is a fully natural process, a normal state of things,"" he said speaking at a meeting with the governors who resigned recently. ""I am sure you will be able to use your skills and experience in other areas. I will do my best to make sure that your experience and knowledge of the situation in a particular region and in the country as a whole are effectively used in the future."" The meeting was held in the Kremlin on Thursday evening. Taking part in it were former head of Buryatia Vyacheslav Nagovitsyn, former head of Karelia Alexander Khudilainen, former Governor of the Perm territory Viktor Basargin, former head of the Novgorod region Sergey Mitin and former Governor of the Ryazan region Oleg Kovalyov. ""I wanted to meet with you to discuss the current situation in your regions, which you are leaving as their heads,"" the president said opening the meeting. ""However, I would like to begin our conversation by thanking you for the work you did in these regions. Each of you worked a different amount of time, a different number of years, but that was a long stretch of your life."" Putin noted that the regions ""changed, and changed for the better"" over the years these governors worked there, even though the problems are plentiful. ""I know that you made every effort to overcome these difficulties successfully in a complex economic situation, especially during the past two years, and create conditions for your successors in the work on the regions""?development,"" the president emphasized. Putin expressed hope that the former governors will provide assistance to their successors. ""I hope their work be as successful as in your case, and people will feel that in the immediate future,"" he noted. ""We do realize that the results of this work are not seen immediately, but all our work is our whole life, with many years dedicated to this objective,"" he said. ""I have no doubt this will be the case with your successors too.""", -1265,2017/2/17,http://www.dw.com/en/pakistan-shrine-attack-no-place-for-soft-islam-in-a-hard-country/a-37595893?maca=en-rss-en-all-1573-rdf,Pakistan shrine attack - No place for 'soft Islam' in a hard country,"Over 70 people have died in a suicide attack on a shrine in the southern Sindh province. The attack, claimed by the so-called ""Islamic State"" group, indicates that the militants consider pluralistic Islam a threat.","Pakistan's southern Sindh province is famous for its pluralistic culture. For centuries, the area has been a center of religious tolerance and cultural harmony, where not only different Islamic sects have co-existed but people from other religions - particularly Hinduism - have contributed to the enrichment of its social fabric. Mystical Islam, preached and promoted by Sufis, have played a vital role in this social construct.- But on Thursday, February 16, the diminishing Sufi culture in Pakistan received another blow when a suicide bomber belonging to the so-called ""Islamic State"" (IS) organization blew himself up in a packed shrine of Lal Shahbaz Qalander. At least 70 people died in the attack, and over 100 worshippers were wounded. IS took responsibility for the deadly bombing through their Aamaq news agency. Lal Shahbaz Qalander, a 13th century saint, is so revered in South Asia, that people from as far as Afghanistan, India and Bangladesh visit his shrine every year. Qalander, like other Sufis, believed in a tolerant interpretation of Islam in which the inner spirituality is considered more important than outwardly rituals. Unlike the Islamic law or Shariah, mystical Islam celebrates life in all its manifestations. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XVNJ The Thursday attack, hence, has once again targeted the core of South Asian Islam, which has been overtaken by a hardline Saudi-Wahhabi version in recent decades. Most militant Islamic groups, including IS, al Qaeda and the Taliban, have an aversion for mystical Islam, which they consider heresy. In Iraq and Syria too, these militant outfits regularly target Sufi shrines and temples. It is not the first time that a shrine has been targeted in Pakistan. The militants - most of whom belong to the Wahhabi and Deobandi sects of Islam - have attacked a number of Sufi shrines in many cities in the past, killing scores of devotees, who mostly belonged to either the minority Shiite Islamic group or the majority Sunni Hanafi sect. In November last year, radical Islamists bombed the famous Shah Noorani shrine in the Lasbela district of the volatile Baluchistan province. It happened as-worshippers performed the-dhamal - a mystical dance - paying tribute to the famous Sufi preacher Hazrat Baba Shah Noorani. His shrine, where followers of mystical Islam regularly gather, is more than 500-years old. -An attack on pluralism Historians say that both Shiites and Hanafis believe in a wider cultural interpretation of Islam and seek inspiration from the Persian and Arabic saints, who played a role in spreading Islam throughout the Indian subcontinent. Many Shiites and Hanafis also revere mystics of Indian origin and regularly visit their shrines which are spread throughout India and Pakistan. These Muslim saints are equally loved by Hindus, Sikhs, Christians and Jews in South Asia. China has blocked a US move to blacklist Jaish-e-Mohammad's chief Masood Azhar at the UN. In a DW interview, Siegfried O Wolf explains why China is protecting the Pakistan-based militant group's head. (08.02.2017) A UNDP report says that Pakistani authorities are negligent about an impending water crisis that is posing a serious threat to the country's stability. Experts say the South Asian country is likely to dry up by 2025. (07.02.2017) In an interview with DW, Ahmad Waqas Goraya, a blogger who went missing in Pakistan last month, says he has never been involved in any anti-state or anti-Islam activity. He also opens up about his ordeal in captivity. (16.02.2017) The ""Islamic State"" has taken responsibility for the deadly attack at a shrine in the southern Pakistani province Sindh. The bombing is the latest in a wave of attacks. (16.02.2017) US-based researcher Arif Jamal argues that President Donald Trump cannot defeat radical Islam by excluding Saudi Arabia and Pakistan from his contentious move barring US entry to people from some Muslim nations. (30.01.2017) A court in Islamabad has banned open celebrations of the holiday. Politicians and private citizens alike have voiced wariness over adopting holidays from other cultures. (13.02.2017) In a country that makes headlines about Islamist violence, literature festivals are refreshing and much needed. Yet they remain largely an ""elitist"" affair and have failed to elevate the standard of Pakistani literature. (10.02.2017) The Wahhabis and Deobandis, which are relatively smaller-groups among the Sunnis, believe in ""puritan Islam"" and consider pilgrimages to shrines as incompatible with the Islamic faith and against the teachings of Islam's prophet, Muhammad. ""Wahhabis are against any cultural pluralism,-so they attack shrines, music festivals and other cultural centers that are not Islamic in their view,"" Dr. Mubarak Ali, a renowned Pakistani historian, told DW. The influence of Saudi Arabia has seeped into the psyche of many Pakistanis, causing an ""Arabization"" of their many traditions, he added. Many Pakistani analysts, including Ali, say that zealot Wahhabi groups and political parties not only frown upon pilgrimages to non-Islamic shrines, they also endorse the demolition of historical Muslim sites, and emulate Saudi Arabia in this regard. -An ideological battle Shoaib Ashraf, a lawyer and human rights activist in Karachi, told DW that Islamist militants are bent on destroying the diverse cultural fabric of Pakistani society. ""Pakistan cannot afford this kind of extremism. It is facing several crises at the moment but this is going to do an irreparable damage to the country. Pakistan will not survive if a minority forcefully imposes its extremist agenda on the majority,"" he warned. Attiya Dawood, a writer and peace activist, is of the view that the love for saints runs deep in hundreds of thousands of people in Pakistan. She points out that a big number of Pakistanis go to the shrines and listen to qawwali, or Sufi music. ""The Taliban want to create fear among the people by attacking their sacred places in order to-restrict their social mobility and freedom,"" Dawood told DW. Many Pakistani analysts stress that the reasons behind the attacks on shrines and followers of the saints are more political than religious, since mystical Islam provides a counter-narrative to extremist Islam and is probably the biggest ideological threat to the Wahhabis. Some believe that mystical Islam could be more effective in defeating the Taliban and other Islamist groups than any military operation. Support for Wahhabi groups Experts, however, say that the policies of the Pakistani state are not in favor of the proponents of Sufi Islam and are thus emboldening extremists. ""As long as the Pakistani state and security agencies continue to use Wahhabism as a dominant state narrative, attacks on shrines and their devotees will not cease,"" warned Ashraf. Historian Ali also pointed out that Wahhabi outfits and organizations have enjoyed state patronage and flourished at the expense of other groups, which in the past have been snubbed by the government. ""It is a bit strange, because Wahhabism is a minority Sunni sect in Pakistan,"" Ali said. Pakistan's southern Sindh province is famous for its pluralistic culture The frequent militant attacks in the Islamic Republic have angered the public. Many people now question the military's claim that its ongoing operation against Islamists along the Afghan border has been a success. The army says it has killed thousands of terrorists since the launch of the Zarb-e-Azb military campaign in June 2014. ""The attacks show that the military's much-touted Zarb-e Azb operation and the National Action Plan to eradicate terrorism from Pakistani soil have been failures, despite the Pakistani army's claims of victory,"" Arif Jamal, a US-based expert on security and Islamism, told DW. ""The terror infrastructure is intact in the country and the militants intensify their attacks on the Pakistani state whenever they want to,"" he added. Peace activists demand the Pakistani government to not only abandon its support for fanatical Wahhabis, but also promote pluralistic Islam. This, they say, would not only be beneficial to Pakistani society in the long run, but also improve Pakistan's image globally. IS expansion The Thursday attack on the Lal Shahbaz Qalander shirine is the latest in a wave of terror incidents in the South Asian country. On Monday, a suicide bomber belonging to the Jamat-ul-Ahrar faction of the Tehreek-i-Taliban Pakistan (TTP) snuck into a protest rally in Lahore and blew himself up. At least 13 people were killed and some 85 were injured. Lal Shahbaz Qalander, a 13th century saint, is so revered in South Asia, that people from as far as Afghanistan, India and Bangladesh visit his shrine every year Experts say that Pakistan is facing an existential threat but the authorities are not taking it seriously. Apart from the threat posed by the Taliban, IS is expanding in neighboring Afghanistan and also increasing its footprint in Pakistan. Jamat-ul-Ahrar, which claimed responsibility for the Lahore attack, swore allegiance to IS in September 2014. A number of other Taliban splinter groups have also joined the IS ranks. ""We are facing a war-like situation. There is a lack of coordination among government agencies. I also think that the civilian and military leaders are not on the same page regarding counter terrorism approaches,"" Karachi-based journalist Majid Siddiqui told DW. -", -1266,2017/2/17,http://www.dw.com/en/5-locations-berlin-has-doubled-as-in-films/a-37577189?maca=en-rss-en-all-1573-rdf,5 locations Berlin has doubled as in films,Berlin has become a popular destination for filmmakers - even for movies that aren't set in Germany. Here are a handful of other locations that Berlin has been dressed up as on camera.,"It practically seems like the makers of the Jason Bourne films starring Matt Damon rented out Berlin. The German capital on the River Spree is featured in nearly all the films in the series. However, some scenes that were filmed in Berlin are actually set elsewhere in the world. The second part of the series, ""The Bourne Supremacy,"" was mostly shot in Berlin. The assassin with amnesia, Jason Bourne, travels to a variety of European cities in the search for his true identity - even though in some cases star Matt Damon didn't even have to leave Germany. Whether to save production costs or because Berlin is so visually diverse, the German capital managed to double as Naples, Amsterdam, Moscow - and, now and then, itself. Some scenes were filmed in neutral-looking locations, like the Walther-Schreiber Square in the Sch?neberg district, which is made to resemble Amsterdam. The modernistic ICC trade fair venue in Charlottenburg was costumed as a customs office in Naples and an airport in Moscow. Berlin's Tempelhof airport turns up occasionally and is the site of the most likely short flight in film history in ""The Bourne Supremacy."" The corrupt CIA agent Ward Abott takes off in Amsterdam, which is filmed at Tempelhof, and lands in Berlin - in reality, at the very same airport. Hollywood star Matt Damon seems to be a real Berlin fan. ""It's not a real Bourne if it doesn't come from Berlin,"" he wrote in the guest book at the city's Babelsberg Film Studio. Click through the gallery above to find out which other cities Berlin has doubled as. -", -1267,2017/2/17,http://www.dw.com/en/the-massive-task-of-rebuilding-the-gambia/a-37579951?maca=en-rss-en-all-1573-rdf,The massive task of rebuilding The Gambia,Adama Barrow is going to be officially sworn in as The Gambia's new president on Saturday. The challenges awaiting Yahya Jammeh's successor include restoring an ailing economy and cementing democratic governance.,"It is a difficult, unenviable job that awaits him. This Saturday, Adama Barrow officially takes up the reins as the new president of The Gambia. That in itself is something of a sensation. After longtime ruler Yahya Jammeh suffered a surprise election defeat in December 2016, he refused - after some deliberation - to accept the result. Barrow, the winner of the election, was sworn in provisionally in neighboring Senegal.- Jammeh went into exile in January following a military intervention in The Gambia by forces from the regional bloc ECOWAS. Barrow promised at the end of January to ""completely overhaul"" The Gambia's political system. That will not be easy. ""He will have to reunite the country,"" Peter Penar, an expert on The Gambia at Michigan State University in the United States, told DW.-""He comes in, in a very divided climate, a climate in which the people that he has to work with, the current parliament, is of the former ruling party, the Alliance of Patriotic Reorientation and Construction, APRC."" Seven weeks after his surprise electoral defeat Jahya Jammeh left The Gambia and went into exile There are 48 deputies in The Gambia's parliament and 43 support the APRC. Elections for a new parliament were supposed to take place in April although in the wake of the protracted crisis in January over Jammeh's departure, it is far from clear whether they will go ahead. Legislative elections, then reforms Barrow must ensure that the legislative elections are held as soon as possible. ""They are the gateway to many of the other political adjustments he may want to make in terms of human rights, in terms of the constitution,"" Penar said. Barrow cannot overhaul-the country without a parliamentary majority. This is, however,-a task-that needs to be tackled-urgently. Jammeh's administration was accused of numerous human rights violations. Members of the opposition disappeared without a trace and journalists critical of Jammeh's government were arrested. The Gambian secret service is alleged to have tortured opponents of the regime with electric shocks and waterboarding. It is doubtful whether Jammeh loyalists in the state apparatus will support Barrow's reforms. Last Friday one of Jammeh's former bodyguards was arrested in a mosque-just as Barrow was about to take part in prayers. The former bodyguard was carrying a loaded gun. The election of Adama Barrow as the new president of The Gambia is viewed as a fillip for West African democracy Barrow-enjoys the backing of neighboring states. ECOWAS is expected to remain in The Gambia for at least three months. ""After the conflict, they stayed with troops to secure the capital,"" Penar said. ""That was a good move because it provided some stability. But these troops may be withdrawn and that leaves the question what the [Jammeh] loyalists will do if the security support is not present."" The Gambia needs funds In the foreign policy arena, Barrow will have to start picking up-the pieces following the damage inflicted by the previous regime. Jammeh fell out with the European Union and it froze aid to the country in 2014. Under his rule, The Gambia also pulled out of-the Commonwealth and announced its withdrawal from the International Criminal Court (ICC). Barrow has already rescinded the latter decision and expressed an interest in rejoining the Commonwealth. Barrow is attaching high priority to good relations with western donors. He admitted last week that Gambia's economy was ""essentially bankrupt."" State-run companies were steeped in debt and performing poorly. Many Gambians had fled abroad to escape poverty and Jammeh's dictatorship. Viewed as a proportion of their country's population, Gambians make up the biggest group of migrants attempting the hazardous Mediterranean crossing to Europe. Apart from its coastline, The Gambia is surrounded by Senegal on all sides ""We need more jobs, more opportunities to generate income, if we are to halt the flow of migrants,"" said The Gambia's new Trade Minister Isatou Touray. Despite the challenges, the new government can already claim to have made progress. After a visit to The Gambia, EU commissioner for international cooperation and development,-Neven Mimica, promised the country a 75 million euro-($80 million) aid package. A further 150 milion euros is expected to follow.------------ -------------------- -", -1268,2017/2/17,http://www.dw.com/en/greeks-in-bank-run-as-deal-with-creditors-uncertain/a-37595631?maca=en-rss-en-all-1573-rdf,Greeks in bank run as deal with creditors uncertain,Greeks have withdrawn large amounts of money from their bank accounts in recent weeks amid growing uncertainty as to whether Athens is able to strike a deal with creditors over the terms of the current bailout program.,"Greek citizens had withdrawn close to 3 billion euros ($3.2 billion) since the beginning of the year, the Union of Greek Banks reported Friday. The English-language news blog ""keeptalkinggreece"" spoke of a newbank run limited only by the capital controls currently in place. It noted that delays in the talks between Greece and its lenders had brought back the ghost of Grexit,"" referring to the southern European nation's possible exit from the eurozone. The website said 2.5 billion euros had been withdrawn from private bank accounts over the past 45 days alone, ""and this despite capital controls that allow Greeks to withdraw a maximum of just 1,800 euros per month. Seeking common ground The government in Athens has been trying to allay fears of a Grexit, saying earlier this week that it intended to reach a political agreement in principle with its creditors on Monday in order to unblock loans required by the cash-strapped country to repay its debts. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xj1y Eurozone finance ministers are to meet in Brussels Monday to discuss the deadlock with hopes that the different sides can at least achieve an outline of how to reach agreement on the terms of the latest review of Greece's 86-billion-euro bailout. Eurozone officials have demanded that Athens deliver a primary balance - or budget surplus before debt repayments - of 3.5 percent of gross domestic product, while the International Monetary Fund (IMF) has insisted only 1.5 percent of GDP is feasible. The Greek government has made it abundantly clear that it's not willing to expand current austerity measures by further tax hikes or pension cuts. hg/jd (AFP, dpa, keeptalkinggreece) -", -1269,2017/2/17,http://www.dw.com/en/venezuela-s-top-court-upholds-opposition-leader-s-14-year-prison-sentence/a-37594570?maca=en-rss-en-all-1573-rdf,Venezuela's top court upholds opposition leader's 14-year prison sentence,The court ruling to uphold Leopoldo Lopez's prison sentence comes amid a tense week for Venezuelan-US relations. President Trump appeared with Lopez's wife demanding her husband's release.,"Venezuela's Supreme Court on Thursday upheld a 14-year prison sentence against opposition leader Leopoldo Lopez, a day after US President Donald Trump called for the politician's release. Lopez was sentenced for inciting violence at-anti-government protests in 2014 in which 43 people died. Human rights groups and foreign governments widely raised concern the conviction was politically motivated. Venezuela's judicial system is in the hands of the President Nicolas Maduro's Socialists, who have used the body to quash the opposition. One of the prosecutors in Lopez's case, who is now seeking asylum in the United States, admitted the government ordered him to arrest the opposition leader despite insufficient evidence. Lopez is one of the most popular politicians in Venezuela. Thursday's ruling is final. Lopez's lawyers say they plan to take the case to international courts, but it is doubtful Venezuela will recognize the outcome. The court decision comes a day after Lilian Tintori, Lopez's wife, met at the White House with Trump, Vice President Mike Pence and Senator Marco Rubio. Trump tweeted a picture with Tintori demanding her husband be released ""immediately."" The Venezuelan government called the meeting an ""intrusion and aggression"" organized by opposition ""lobbies"" within the ""Miami mafia."" ""While President Maduro proposed starting a new era of respectful relations, Donald Trump is in solidarity with the leader of violent actions,"" Foreign Minister Delcy Rodriguez said. The latest tensions between Washington and Caracas come after Maduro's government on Thursday said it would stop CNN's Spanish affiliate from broadcasting over the internet.- A day earlier, it ordered cable services to take CNN en Espanol off the air-for conducting ""war propaganda"" after the popular outlet published an investigation into alleged fraud in granting Venezuelan passports and visas. On Monday, the US slapped sanctions on Vice President Tareck El Aissami-for playing a ""significant role"" in international drug trafficking. Venezuela's dual political and economic crises have triggered riots and looting as the oil rich country experiences shortages of food, medicine and other staples. The opposition coalition blames Maduro for the problems and wants a popular vote on removing the Socialist leader. cw/rt-(AP, AFP)", -1270,2017/2/17,http://www.dw.com/en/scientists-want-recognition-for-new-zealandia-continent-in-southwest-pacific/a-37594078?maca=en-rss-en-all-1573-rdf,Scientists want recognition for new 'Zealandia' continent in southwest Pacific,"An area the size of the Indian subcontinent is distinct enough to constitute a separate continent, according to scientists. Lying under the Pacific, New Zealand is one of the few visible parts of 'Zealandia.'","Scientists have said that the previously unrecognized submerged continent should be recognized with the name ""Zealandia."" ""The scientific value of classifying Zealandia as a continent is much more than just an extra name on a list,"" the scientists, mostly from the official New Zealand research organization GNS Science, wrote. ""That a continent can be so submerged yet unfragmented makes it (useful)... in exploring the cohesion and breakup of continental crust."" New Zealand is the most visible part of the nearly five million square kilometers (1.9 million square miles) in the South Pacific which broke away from the immense Gondwana landmass which once encompassed Australia. It sank into the sea millions of years ago. ""Zealandia is rising out of the sea today - as the Southern Alps and the North Island volcanoes,"" said Nick Mortimer, a New Zealand geologist who co-authored the paper. In an online question-and-answer session on Friday, he said ""30 million years ago Zealandia was at its most submerged and it has risen out the ocean since then. We know this from the rock record.""- In the paper published in the journal of the Geological Society of America ""GSA Today,"" the scientists wrote that 94 percent of the landmass is under water. It includes not just New Zealand but also New Caledonia, Norfolk Island, the Lord Howe Island group and Elizabeth and Middleton reefs. New Zealand is at the center of the submerged 'Zealandia' continent Gradual recognition Mortimer was asked why it had taken so long to discover such a large landmass. ""It's been a gradual thing. For the last 20 years geologists at GNS have talked about Zealandia (ZLD.) It's only recently that we have the data and confidence to write a scientific paper to formally propose it."" There is no scientific body authorized to recognize continents but Mortimer hopes Zealandia will become an accepted part of how the Earth is viewed. ""What we hope is that Zealandia will appear on world maps, in schools, everywhere,"" he said. ""I think the revelation of a new continent is pretty exciting,"" he added. Bruce Luyendyk was the first geophysicist to use the name ""Zealandia"" for the landmass in 1995. His nomenclature has received ""moderate uptake"" in the last 22 years but it is only now that the paper's co-authors say the necessary geological elements have been determined for it to be considered a continent. A key element in their progress came in 2002 with the release of a map showing the underwater depth of the ocean floor. jm/rt (AFP)", -1271,2017/2/17,http://www.dw.com/en/south-korea-s-hanjin-shipping-declared-bankrupt/a-37593429?maca=en-rss-en-all-1573-rdf,South Korea's Hanjin Shipping declared bankrupt,"The axe has finally fallen on South Korea's once mighty Hanjin Shipping, with a court in Seoul declaring it bankrupt. The firm was once the seventh-largest of its kind globally, but suffered from sluggish global trade.","A regional court in Seoul on Friday officially declared Hanjin Shipping bankrupt, ushering in the final chapter for the South Korean shipping company, which had struggled for years under the weight of billions of dollars worth of debt. Hanjin filed for bankruptcy protection in August of last year, owing $5.37 billion (5.03 billion euros) as creditors refused to bail it out. As a result, dozens of vessels were left stranded around the world as they were refused entry to ports. An accounting firm hired by the Seoul court concluded earlier this year that the firm's liquidation value would be greater than its worth as a going concern. Slumping trade and mismanagement Hanjin was once South Korea's biggest shipping company and the seventh-largest in the world. It has since been forced to sell most of its assets at home and abroad to pay off debts, with more than 1,500 employees laid off in the process. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1K7Kp ""We will try to ensure that the bankruptcy process will enable the firm to pay off debts to all debt holders in a fair and proper fashion,"" the court said in a statement. Trading in the firm's Seoul-listed shares was halted on Friday. Hanjin Shipping started going under after the industry suffered its worst downturn in six decades caused by slumping global trade. Mismanagement by top executives was also blamed for the company's collapse. hg/jd (AFP, dpa) -", -1272,2017/2/17,http://www.dw.com/en/samsung-heir-lee-jae-yong-formally-arrested-in-corruption-investigation/a-37593277?maca=en-rss-en-all-1573-rdf,Samsung heir Lee Jae-yong formally arrested in corruption investigation,"The heir to the Samsung group, Lee Jae-yong, has been formally arrested on allegations of bribery, perjury and embezzlement. Prosecutors have ten days to indict the de facto head of South Korea's biggest company.","The Seoul Central District Court issued the warrant for Lee Jae-Yong's arrest early Friday. The Samsung Group chief had spent the night at a detention center in the South Korean capital awaiting the decision on the second request by prosecutors for his arrest. Prosecutors now have up to 10 days to indict Lee although they can seek an extension. The state special prosecutor's office said it was planning to indict the grandson of Samsung's founder on charges that go beyond previously cited bribery allegations. Lee is to be questioned again on Saturday.- In a statement made after the 48-year-old-Lee was detained, the Samsung Group said: ""We will do our best to ensure that the truth is revealed in future court proceedings."" Lee will remain at the detention center, in a single cell with a TV and desk, a jail official said. The court made the decision to allow the arrest this time because of the risk Lee might destroy evidence or flee, according to a spokesman. ""We acknowledge the cause and necessity of the arrest,"" the judge ruled. The court had rejected the prosecutor's first attempt to arrest Lee in January due to lack of evidence. However, the judge rejected the prosecution's request to arrest Samsung Electronics president Park Sang-jin. On Monday, a Danish court extended the detention of Chung Yoo-ra, the daughter of Choi Soon-sil, the woman at the centre of a corruption scandal that led to the impeachment of Park Geun-hye, South Korea's president. Choi is accused of influencing government policy and getting rich through extortion and manipulation. Choi is in custody on charges of meddling in state affairs without holding a government position and using her connections with the president to extort vast sums of money from many of South Korea's best-known companies. Beyond the legal charges, she is being blamed for both effectively bringing down the government of President Park and leaving her reputation and political legacy in tatters. Last month, Park did not turn up to testify in a court case which will decide her future. The president was impeached over a multifaceted corruption scandal in December. After her impeachment, Park Geun-hye is regarded both as a perpetrator and a victim. Her future is uncertain as the country struggles to recover from a political scandal. Tens of thousands of protesters have taken to the streets since the start of the corruption scandal, calling on President Park to step down. South Korea's Constitutional Court is deciding whether to formally unseat Park or restore her power. If she is forced out, a new election would be held within two months to choose her successor. South Korea's corruption scandal has spilled over into the highest levels of business. The vice-chairman of Samsung, Lee Jae-yong, was questioned last month by investigators who are seeking evidence that he paid bribes to Choi Soon-sil. Given the economic and political importance of Samsung in South Korea, if Lee is indicted, it could be on the same level of President Park's impeachment. In December, a group of lawmakers from South Korea's ruling Saenuri Party abandoned Park to form a new party, tentatively named the New Conservative Party for Reform (NCPR). The party infighting is another blow to Park. Former United Nations Secretary General Ban Ki-moon has declared that he won't run for South Korea's presidency. He had been expected to seek the position after a corruption scandal saw President Park impeached. The newly-formed NCPR was hoping that Ban would join their ranks. Author: Shamil Shams Payments to the president Investigators are to determine if Lee, who is also vice chairman of Samsung Electronics Co, was involved in paying $38 million (35.6 million euros) to benefit a close friend of the country's President Park Geun-hye. The deal is alleged to have been made in exchange for government support of Lee's management succession in the sprawling Samsung group. Samsung has denied it made an unlawful offer or paid a bribe to the president in exchange for favors. Lee, who is also known as Jay Y. Lee,-was questioned for 15 hours on Monday. A spokesman for the prosecutor said on Tuesday they had found evidence of Lee concealing profits from criminal acts. He is also believed to have hidden assets overseas. Samsung's headquarters in Seoul Samsung restructuring Lee has been acting as head of the smartphone and electronics giant since his father Lee Kun-hee suffered a heart attack in 2014. The group is carrying out an ongoing restructuring to clear the route for Lee to assume control of the group. His arrest may jeopardize the project. The investigation into Samsung is part of the wider one into dozens of other South Korean companies. They are believed to have given contributions to Choi Soon-sil, a close confidante of President Park, who has been impeached and her powers suspended.- A separate constitutional court will determine whether Park is ultimately removed from office. jm/rt (Reuters, AFP)", -1273,2017/2/17,http://www.aljazeera.com/news/2017/02/pakistan-launches-crackdown-sehwan-blast-170217053807857.html,Pakistan steps up security after string of attacks,"Two border crossings with Afghanistan closed and at least 39 ""terrorists"" killed after attack at Sehwan shrine kills 80. Border closure 'Afghan role'","Islamabad, Pakistan - Pakistan has closed two of its border crossings with Afghanistan and demanded Kabul takes action against 76 ""terrorists"" it says are hiding in Afghan territory in response to the worst attack on Pakistani soil since 2014. At least 80 people were killed and hundreds more wounded when a suicide attacker targeted a gathering of worshippers at a shrine in the southern town of Sehwan on Thursday.- The Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group claimed responsibility for the blast. The shrine, built in 1356, is by the tomb of Syed Muhammad Usman Marwandi, the Sufi philosopher poet-better known as Lal Shahbaz Qalandar, one of Pakistan's most venerated saints. On Friday, Pakistan's military said Afghanistan must take ""immediate action"" against the 76 people identified to them. Pakistan-Afghanistan Border closed with immediate effects till further orders due to security reasons. Afg Embassy officials called in GHQ. Given list of 76 Ts hiding in Afg. Asked to take immediate action / be handed over to Pakistan. Security officials told Al Jazeera at least 39 suspected fighters had been killed in security raids carried out overnight in response to the attack. Thursday's attack-came at the back of one of the bloodiest weeks in recent memory in Pakistan, with at least 99 people killed in a series of attacks since Monday, most claimed by the Pakistani Taliban or one of its factions. On Monday, 13 people were killed in a suicide bombing at a rally in the eastern city of Lahore. That attack was followed on Wednesday by a suicide bombing at a government office in the Mohmand tribal area and a suicide attack on government employees in Peshawar, killing six people. Two police officers were-killed-on Tuesday-while trying to defuse a bomb in the Balochistan provincial capital of Quetta. Al Jazeera's Kamal Hyder said the second major border crossing at Chaman, which leads to Kandahar in Afghanistan from the Pakistani city of Quetta, was closed on Friday after the Torkham border was sealed off late on Thursday. In Sehwan, meanwhile, police cordoned off the shrine early on Friday as forensic investigators arrived.- The floor of the shrine was still stained with blood on Friday morning as dozens of protesters pushed past police pickets demanding to be allowed to continue to worship there. At least 20 children are believed to be among the dead, the head of Sehwan's medical facility Moeen Uddin Siddiqui said. At 3.30am, the shrine's caretaker stood among the carnage and defiantly rang its bell, a daily ritual that he vowed to continue. The Sindh provincial government announced three days of mourning as Pakistanis vented their grief and fury on social media, bemoaning the lack of medical facilities to help the wounded, with the nearest hospital around 70km from the shrine.- All shrines in the province have been closed, a decision that prompted furious reaction from protesters in Sehwan. ""Give us the charge of the mazaar [shrine], we will take care of it rather than the police,"" a shopkeeper said. ""Keeping it closed is unfair to the people of Sehwan. We can take care of our own place. We can do everything to protect it."" Pakistan's military has long blamed the Afghan government for allowing sanctuary on its soil to fighters targeting Pakistan since a 2014 Pakistani military operation to drive out armed groups from the country's restive tribal areas.- ""Recent Ts acts are being exec on directions from hostile powers and from sanctuaries in Afghanistan. We shall defend and respond,"" tweeted Pakistan military spokesman Asif Ghafoor. Afghanistan denies the charge, accusing Pakistan in turn of allowing leaders of the Afghan Taliban and the Haqqani Network armed groups to roam freely on Pakistani soil.- Pakistan denies this, but several high-profile Afghan Taliban leaders have been killed or captured on its soil, including former chief Mullah Akhtar Mansour in a US drone strike last year. Pakistan Taliban leaders have also similarly been captured or killed on Afghan soil. Following the attack in Lahore, the Pakistani Foreign Office summoned senior Afghan embassy official Syed Abdul Nasir Yousafi. ""Afghanistan was urged to take urgent measures to eliminate the terrorists and their sanctuaries, financiers and handlers operating from its territory,"" according to a Foreign Office statement. Analysts, however, warn that in this ""war of sanctuaries"", space is being left open for armed groups to continue to launch attacks. Since the launch in 2014 of a military operation in the tribal area of North Waziristan - then-headquarters of the Pakistani Taliban and its allies - the Pakistani military says it has killed more than 3,500 fighters and destroyed Taliban infrastructure. At least 583 soldiers have also been killed. Since then, violence had decreased markedly, but sporadic high-casualty attacks continued to occur, notably a hospital bombing killing 74 in Quetta and an Easter Day park bombing that killed more than 70 last year. Thursday's attack was the deadliest in Pakistan since December 2014, when-fighters assaulted a school-in Peshawar, killing 154 people, mostly school children.- Thursday's attack was the deadliest in Pakistan since 2014 [Wali Muhammed/Al Jazeera] People arriving at the scene of the blast on Friday [Wali Muhammed/Al Jazeera] Source:-Al Jazeera and news agencies", -1274,2017/2/17,http://www.aljazeera.com/indepth/inpictures/2017/02/immigrants-stay-home-demonstrate-170217045454745.html,,,"Businesses shut their doors, students skipped class and thousands of demonstrators took to the streets in cities across the United States on Thursday to protest against President Donald Trump's immigration policies. Activists called ""A Day Without Immigrants"" to highlight the importance of the foreign-born, who account for 13 percent of the US population, or more than 40 million naturalised American citizens. Trump campaigned against the estimated 12 million illegal immigrants, playing on fears of violent crime, while promising to build a wall on the US-Mexican border to stop what he called potential ""terrorists"" from entering the country. While the number of participants in Thursday's protests could not be determined, many sympathetic business owners closed shop and working-class immigrants gave up a day's pay. ""I told my English teacher that I wasn't going to school, and she said she understood,"" said Rosa Castro, a 13-year-old US citizen in Detroit, who marched with her 26-year-old sister, one of several undocumented family members whose future she is concerned about. Since taking office last month, the Republican president has signed an executive order temporarily banning entry to the US by travellers from seven Muslim-majority countries and all refugees. That order was put on hold by federal courts. Immigrant rights groups have expressed alarm after federal raids last week rounded up more than 680 people suspected of being in the country illegally.", -1275,2017/2/17,http://www.aljazeera.com/indepth/features/2017/01/tourism-boosts-iceland-whaling-industry-170130093819369.html,Tourism boosts Iceland's whaling industry Egill Bjarnason,"Iceland's anti-whaling campaigners confront massive demand for whale meat driven by restaurants catering to tourists. By 'Meet us, don't eat us' In the belly of a tourist The whalers could hunt more Why do the Icelanders not eat more whale?","Reykjavik, Iceland - Ready to try grilled minke whale skewers, the ""Moby Dick on a Stick"", as the dish is advertised by The Seabaron restaurant, a British tourist observes, ""looks like a Turkish kebab."" Taking a bite, he adds, ""Tastes indeed like red meat and poor ethics."" Tourism is booming in Iceland . A record 1.8 million people visited the remote North Atlantic island last year, a 40 percent increase from the year before. The number of American visitors alone - almost 415,000 - outnumbered Iceland 's native population of 320,000, and even exceeded the total annual number of tourists in 2006. The flock of foreign visitors made Iceland the fastest- growing developed country in 2016 in terms of gross domestic product. In Reykjavik, Iceland's capital, tower cranes rise from the skyline, ever more global fast-food chains are opening down the capital's main shopping street Laugavegur, and the low-cost carrier WOW Air plans to build an enormous new headquarters. Less visible is the success of Iceland's only operating whale-hunting company. Having been declared bankrupt in 2012 and 2013, IP-Utgerd Ltd (previously Hrefnuveidimenn Ltd and Hrafnreydur Ltd) is now having a much smoother sail. The company hunted 46 minke whales this past season, the largest number in years, to serve a growing demand from restaurants serving the meat to tourists. The catch is now split 60/40 between restaurants and grocery stores. Five years ago, the market share was the other way around and prices lower, according to the company manager, Gunnar Jonsson. A wide banner attached to a tiny wooden hut across the street from The Seabaron summarises this trend with the most straightforward phrase: ""Whales are Being Killed to Feed Tourists"". ""The banner prompts spontaneous visits, usually out of surprise,"" says Maria Gunnarsdottir, the manager of IceWhale, an anti-whaling organisation based out the wooden hut by Reykjavik's Old Harbour. ""Most tourists seem unaware that Iceland has a whaling industry until they, perhaps, notice minke whale as a 'traditional dish' on a restaurant menu and get intrigued."" IceWhale, funded by whale-watching and tour operators - promotes the campaign "" Meet Us, don't eat us"", that urges tourists to boycott pro-whaling restaurants and, instead, enjoy the animals in their natural habitat. Roughly a fifth of all tourists in Iceland go whale watching. Maskina, a market researcher, ranks the pastime the fourth most-purchased tourist activity, number one being admission to geothermal baths. In Reykjavik, these two industries - whale-hunting and whale-watching - both operate in Faxa Bay. The whaling boats, however, are only allowed to work roughly 20-kilometre away from the tour operators. Gunnarsdottir wants them much further away - and out of business entirely. When Iceland resumed commercial whaling in 2006, whale-watching guides in Faxa Bay reported spotting the minke whale much more often than their larger rorqual relative, the humpback whale. But now, a decade later, the humpback is spotted more frequently. While the population of minke whales in costal Icelandic waters remains stable at around 20,000 animals, changes in the ocean's food web have pushed their whereabouts much further north. According to scientists, the most obvious explanation for this disruption is climate change; along south and west Iceland, ocean temperatures have risen 1 to 2 degrees Celcius since 1996. But Gunnarsdottir says the hunting of whales has had its own effect . ""Minke whales are elegant swimmers and generally difficult to observe due to their fast speed,"" she explains, ""but in the past we had individual whales that were by nature curious towards boats - our star performers. Sadly, they've also been the easiest prey, it seems."" OPINION: Performance anxiety - Why captivity is killing the killer whale Commercial whaling would be unsustainable as a business without the tourist demand, conservationists argue, pointing to a 2016 Gallup poll in which 81 percent of Icelanders said they had not bought whale meat in the past 12 months. Only 1.5 percent said they had bought the meat ""six times or more often"", while 9 percent had done so between two and five times over the past year. Meanwhile, 12 percent of tourists ate whale meat during their stay in Iceland this past summer, according to another survey by the International Fund for Animal Welfare (IFAW), an animal welfare and conservation charity . From 2012 to 2015, a steady 18-20 percent of respondents, all tourists, said they had eaten whale meat. The current change is still a gain in frequencies since the tourist population was only 640,000 in-2012 , about 1.2 million fewer than last year. This year, 2.4 million tourists are forecast to visit Iceland; 12 percent would equal 288,000 people - nearly matching the population of Icelanders. Another factor is the origin of these tourists. Tourists from China are more likely than others to try whale meat during their stay. They are also one of the fastest-growing group of visitors to Iceland. Among Icelandic baby boomers, who grew up during the golden age of catching minke whales, the meat was long perceived as a cheap alternative to red meat. Today, minke whale meat is about $16.70 a kilo in grocer's - more expensive than boneless chicken breasts. Sigursteinn Masson, who is leading IFAW's anti-whaling efforts in Iceland, believes the message is getting across to tourists. ""People want to travel responsibly,"" he says. ""We usually don't have to do much convincing after sharing the facts - that the meat is neither common nor traditional in Iceland."" He also points out that Iceland used to hunt the fin whale, the world's second largest whale, purely for export to Japan, Iceland's only ally in commercial whaling along with neighbouring Norway. The company Hvalur hf (Whale Ink) has not hunted fin whale since 2015, blaming red tape in Japanese import standards for fresh meat. ""If we knew what kind of trouble was brewing in Japan when we commenced whaling in 2009, after a 20-year pause, we would have never started again,"" Kristjan Loftsson, the owner of Whale Ink, told local media. The company still holds a government quota for 146 fin whales annually and could, technically, resume whaling this year. WATCH: Reykjavik - Iceland's recipe for survival Minke whales and fin whales were only first hunted in the early 20th century. As they are fast swimmers, hunting these species requires modern vessels and harpoons tagged with explosives, as scientist Gisli Vikingsson explains. Vikingsson heads whale research at Marine and Freshwater Research Institute, responsible for setting the quota for whaling in the Mid-North Atlantic region surrounding Iceland. The quota in Iceland for minke whales has been 224 in the most recent years - four-to-six times higher than the actual number of catches over the years. ""The whaling is not endangering the species - that's agreed by everyone,"" Vikingsson says, further stating that Iceland's sustainable quotas are approved by the scientific body of the International Whaling Commission (IWC). ""Iceland and the IWC fundamentally disagree on politics, not methods."" ""To allow whaling is, however, always based on political policies, and that's where Iceland and the IWC fundamentally disagree - on the politics of hunting whales, not the scientific methods used to regulate it."" The IWC voted for a total ban on commercial whaling in 1986, and for two decades, Iceland obliged. ""A whole generation grew up without the meat,"" says Gunnar Jonsson, manager of the whaling company, IP-Utgerd. ""I am sure we could boost sales with more marketing, like teaching people how best to cook a Minke whale steak."" The current marketing strategy is to promote it as organic and healthy. Seeking photographs, Al Jazeera visited four shops until finally finding eight frozen packages in Bonus, a discount store, with a label claiming the meat as ""one of the healthiest red meats available"", based on being lean, high in protein and with low mercury levels. Demand has largely exceeded supply - equivalent to 15-20 whales - over the past years, Jonsson says. The company has had to repeatedly import extra meat from Norway to prevent the cuisine from being dropped from restaurant menus. ""Just like smoked puffin, this is something restaurants are excited to offer tourists,"" he says. ""Today, we serve more places than ever and our long-standing clients have stood their ground towards the occasional criticism."" Jonsson, a pilot and business lawyer by trade, has led the whaling industry for the past 10 years - sometimes under much fire from the outside world. In 2014, the United States government issued a statement outlining a number of actions the US planned against Iceland owing to whaling . While US efforts have focused more on the hunting of fin whales, the heat is still on Jonsson. Another online petition, signed by more than 20,000 people, is directed at him personally: ""Tell Gunnar Jonsson to stop killing whales and start a whale watching company instead,"" the petition's text reads. Speaking to Al Jazeera, he appeared oblivious to criticism, perhaps because Icelanders are on his side; a 2016 Gallup poll showed a 51 percent supported for Minke whaling. Only 20 percent were against and the rest undecided. ""For Icelanders, a fishing nation, a sustainable use of the ocean is our greatest environmental contribution,"" he says. ""It would make no sense to let the whale population grow out of balance with everything else in the sea."" Source:-Al Jazeera", -1276,2017/2/17,http://www.aljazeera.com/indepth/features/2017/02/children-duterte-drug-war-lessons-170216121942335.html,Children and Duterte's drug war: Lessons from the past Brennan Weiss,More than 30 children have been killed since the Philippine president launched his controversial war on drugs in June. By Davao's death squads 'Feeling hunted',"Manila, Philippines - Jose flipped three coins into the air when two gunmen on a motorcycle opened fire. They shot the 15-year-old suspected drug user seven times. The boy hit the ground, along with the coins that he had tossed as part of a traditional Filipino game called hantak. He had been playing with his friends while selling cigarettes on a rundown street in Caloocan City. Jose, whose name has been changed for this story to ensure his safety, was taken to the hospital. He survived but is fearful of being targeted again. His attackers were never arrested. Now three months later - with vigilantes still on the prowl - he seldom goes out at night. Though his future remains uncertain, Jose acknowledges his fate could have been much worse. His story, however, reveals the dark reality that the Philippines' ""war on drugs"" spares no one, even the most vulnerable people of society - children. Duterte's war on drugs a 'reign of terror', church says A total of 31 minors under the age of 18 have been killed by police and vigilantes since President Rodrigo Duterte launched his campaign against illegal drugs in June, according to Rowena Legaspi, executive director of the Children's Legal Rights and Development Centre, a non-government group that has documented the killings. Legaspi said the number ""could be higher if other cases were documented"". Most victims were direct targets. Some were innocent. In an interview-with Al Jazeera in October, Duterte referred to the death of innocent children as ""collateral damage"". Many children have been orphaned or left behind without a breadwinner. Others, especially in urban poor communities, remain traumatised after witnessing at firsthand the killings of loved ones in their homes. - ""For Duterte, no matter your age as long as you're doing drugs, you are a salot - it's like you're a weed,"" said Pilgrim Bliss Gayo, an activist with the Coalition Against Summary Execution (CASE), a human rights group based in the southern Philippine city of Davao. ""Your age does not exclude you."" A total of 26,415 children allegedly involved in using, selling, or transporting drugs surrendered to police between July 2016 and January, according to statistics provided by the Women and Children Protection Centre of the Philippine National Police. Maria Lucero, a legal researcher at the centre, told Al Jazeera in an email ""the admission of involvement in illegal drugs came from the surrenderers themselves"". Whether the authorities were able to verify those admissions and ascertain the children's motivations for surrendering remain unclear. Lucero acknowledged that the national police had ""issued memorandums"" to investigate the deaths of minors, and the centre has ""treated child drug users as victims and has encouraged rehabilitation"". Human rights groups, however, have questioned whether the Duterte administration accepts child drug users as victims. In June, the president's allies in Congress filed a bill that would lower the minimum age of criminal responsibility from 15 to nine, arguing that this would deter adults from using children for criminal activity. Amnesty International and the UN children's fund UNICEF condemned the measure. The campaign against illegal drugs began nearly eight months ago, but its roots can be traced back to when Duterte was mayor of Davao, where he waged a similarly popular yet brutal ""war against crime"". Death squads allegedly connected to Duterte were responsible for roughly 1,400 extrajudicial killings, including 132 children, according to data compiled by CASE from 1998-2015. Duterte was mayor for 12 of those years. - ""Davao was a laboratory,"" said Amado Picardal, a Catholic priest and human rights activist formerly based in the southern city. ""What he did in Davao, he is doing now in the entire Philippines, just on a bigger scale."" In total, the war on drugs has left more than 7,000 people dead. Most of the victims were suspected drug users and pushers shot dead by what critics describe as death squads involving masked vigilantes emboldened by Duterte's tough-on-drugs rhetoric. They are accused of working in tandem with local officials as the president turns a blind eye.- Duterte faced similar accusations in Davao, where he presided over death squads that were responsible for hundreds of targeted killings, according to a 2009 Human Rights Watch report. - Although Duterte denied the accusations, his comments at the time suggested that he not only condoned extrajudicial killings of criminals but encouraged them - even against children. ""If they offer resistance, I will not hesitate to kill them. I don't care about minors,"" he told reporters in Davao in 2002, referring to teenagers involved in criminal gangs. Carlos Conde, a former journalist based in Davao and currently a researcher for Human Rights Watch, covered the city's death squads from 1996-2007 during Duterte's war against crime. He also documented the abuse of children living on the streets, as well as summary executions of juvenile offenders, ""many of whom [were] petty thieves"", he wrote at the time. Duterte's crime-fighting approach included a strict curfew for minors. In Davao, police often used the curfew to discriminate against impoverished street children already suffering from abuse and neglect. After Duterte vowed last May to impose a nationwide curfew similar to the one in Davao, some children's rights defenders worried it would have the same effect. ""Children on the streets is a social problem, not a police problem. But Duterte's response is always the police,"" said Gayo at CASE. In the capital Manila, where the curfew law is already in effect, children who primarily live and work on the street are often exploited, according to Catherine Scerri, deputy director for Bahay Tuluyan, an advocacy group for street children. Scerri said that for years the government has had ""an approach of just going to the streets with vans, picking kids up [past curfew], packing them in the back and taking them to shelters"". She is concerned that the drug war has ""exacerbated"" this practice. Since the start of the anti-drug campaign, Scerri has noticed fewer children on the streets, and those who remain have been more transient because she said ""they're feeling hunted"". The Department of Social Welfare and Development, the agency responsible for the protection of street children, did not respond to repeated requests for an interview. Last November, however, the department's assistant-secretary Jose Antonio Hernandez justified Duterte's unflinching approach to eradicating drugs by invoking the youth. ""The war on drugs, it's really for the children,"" Hernandez said. Duterte: 'I will kill more if only to get rid of drugs' Duterte has repeated similar claims, assuring critics he is simply ""trying to preserve the interests of the next generation"". But Duterte's vision appears to exclude the interests of children such as Jose. Out of school, out of work, and in constant fear that men on a motorcycle will come looking for him again, Jose stays close to home at the request of his mother. Sometimes he ventures out to earn some cash by recruiting neighbours to bet on the final scores of basketball games on television. He keeps track of the wagers, collecting tips along the way. As he drags his finger along a makeshift scorecard, scanning the names of bettors, he forgets just for a moment about the shooting and that he wasn't supposed to have a second chance at life. Then he's reminded when asked what he has learned from his experience.- ""Now I'm afraid,"" he said. ""I don't want to go outside.""- Source:-Al Jazeera", -1277,2017/2/17,http://www.aljazeera.com/indepth/opinion/2017/02/romania-2017-protests-1989-ceausescu-170216114655475.html,,,"December 21,-1989, University Square, Bucharest, Romania, in the dead of night. About 5,000 protesters were there, mostly young people. For years, Romanians lived in fear of the cold, of starvation, disease and darkness, while the Communist Party promised prosperity and material security. And yet, nobody was screaming ""We want food!"", ""We want heat in our houses!"" or ""Medicine for all!"" In front of tanks and machineguns, the people were proving that they didn't want to live as slaves of a dictatorship any more; they chanted ""Down with Ceaucescu!"", ""Down with communism!"", ""Freedom!"" The parents of the teenagers in the street tried to stop them. Some of them would even lock the doors of their homes to stop their children from going out. February 4,-2017, Victory Square, Bucharest, Romania. For the 200,000 people - mostly young people - the wage increases and tax cuts promised by the Social Democratic Party (PSD) ring hollow. Again, after 27 years, they take to the streets in support of an ethical idea. ""Down with the thieves!"", ""The DNA [the Anti-Corruption Prosecutors Unit] will get you!"" - they chant. Today there are no tanks or machineguns, but there are counter-demos. Parents are not locking up their disobedient children, but instead are out in the streets in small organised groups supporting the PSD and believing its promises of higher pensions. The protesters of December 1989 fought against a communist dictatorship. Now, the protesters of the ""Light Revolution"" - which got its name from the sea of smartphones flashlights in Victory Square - are fighting against corruption, theft, and the lies of politicians. OPINION: Romania's gift of hope to the world Widespread corruption is a form of dictatorship-which arose from ""Ceausism"" after 1989. Romanian dictator Nicolae Ceausescu's nationalist communism gravely damaged the system of values of the Romanian nation. Too many members of the communist elite snatched power, money, privileges, and assets without giving back anything to the society or contributing anything of value to it. And too many ordinary citizens were not fairly rewarded for their hard work and contributions to society. Now the same is happening again. In communism, the false societal differences were made legal by the constitution and by political control over every facet of the Romanian society and state, including the judiciary.- And yet, this miraculous popular protest, unique in Romania's history, managed to achieve something great: the second and definitive fall of Ceausescu. - In today's Romania, political and administrative powers are used for breaking the law through corruption and theft, for the same ultimate goal: money, privileges, and assets in huge quantities, placing the corrupt establishment above the honest humiliated citizens. In the past few years the only effective opposition to the looting of Romania's national resources has been the judiciary, with the DNA at the forefront. The counter-propaganda of those currently in power is very similar to that of Ceausescu. During his last few days, the tyrant declared that ""foreign agencies"" are fomenting and guiding the anti-regime protests. He refused to accept the idea that some Romanians did not love him and thus opposed him. The president of PSD, Liviu Dragnea, and his ally, Calin Popescu Tariceanu, the senate's president, declared that the hundreds of thousands of people in the street are manipulated by multinational corporations, foreign secret services, ""agents"" of the billionaire George Soros and the Romanian president of German origin Klaus Iohannis. In spite of the temporary victory of the protesters who forced the government to retract the legal changes to the penal code they passed secretly to protect people who have abused power, similar amendments could still be reinstated by the parliament, which still dominated by the PSD. OPINION: Romania: Keep the corrupt in jail, where they belong Despite the massive protests, no one in the government admitted to making a mistake or accepted the blame for what happened. Not even the minister of justice did so - he simply said he is resigning because of ""public opinion pressure"". And yet, this miraculous popular protest, unique in Romania's history, managed to achieve something great: the second and definitive fall of Ceausescu. From now on, in Romania, it will no longer be possible for decisions to be made and enforced through authoritarian means, circumventing the rule of law, the constitution and common sense. The Romanian people will be on their watch, ready to take to the streets. Cristian Tudor Popescu is a Romanian writer. He holds a PhD in Media and Filmology. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1278,2017/2/17,http://www.aljazeera.com/indepth/features/2017/01/battle-mosul-upends-false-iraq-narrative-170130050458800.html,Battle for Mosul upends false Iraq narrative Zaid al-Ali,Analysis: The success of Iraq's counterterrorism forces highlights deep public misconceptions about the war on ISIL. By,"The Iraqi army's progress in Mosul over the past few months flies in the face of the narrative that has been created about Iraq since 2003. Narratives are often constructed, but rarely as aggressively as the story according to which Iraq is an artificial country comprising people who deeply mistrust each other. The invasion of Mosul and Tikrit by the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) in 2014 was supposed to be the narrative's final chapter: The people of both cities had allegedly welcomed their invaders and cursed the Iraqi army as it withdrew from their streets, further proving that Iraq would be better served if it were split apart. Today, the battle to liberate Mosul has shattered much of that narrative, but you might have missed this if you were not paying close attention. Iraq may be an artificial construction, but no more so than the crushing majority of states around the world - and developments on the ground actually point in the opposite direction, for a number of reasons. READ MORE: How will Mosul rise from the ashes of battle? There are those who said that Mosul's population actively welcomed ISIL in June 2014. The city's population chafed under the control of the Iraqi army, which made life for its inhabitants miserable. Analysts and commentators in various parts of the world claimed that Mosul's population took sides in the conflict, throwing their lot in with ISIL. A video was widely circulated on social media, supposedly showing Mosul's inhabitants stoning Iraqi army vehicles on their way out of the city - never mind that the video was actually from Sadr City in 2008. Other recordings showing ISIL fighters parading through Mosul were presented as evidence that residents supported their presence, but even a superficial analysis clearly showed that onlookers were always few and far between, passive and unenthusiastic. ISIL's propaganda videos, meanwhile, had as much value as Saddam Hussein's efforts to prove how much he was loved by the very people he oppressed. What should have been obvious to everyone was that the vast majority of Mosul's population wanted a fair settlement in an Iraqi context - something that both ISIL and former Prime Minister Nouri al-Maliki were-incapable of delivering. This explains Mosul residents' passivity and their focus on simply trying to survive in very difficult circumstances, which continue to this day. Polls have since confirmed this very obvious point, which has been underscored by the relief that-Mosul's residents expressed at the sight of Iraqi army personnel retaking their city. There are those who said that Iraqis had no will to fight. Senior American officials, Iraqi militia commanders and deeply politicised analysts claimed that Iraqi soldiers were abandoning their positions as ISIL approached because of a lack of motivation. They offered two separate explanations for that claim: firstly, that Iraqis could not successfully battle ISIL-from within a national army because of its heterogeneity, which could not match the determination of homogeneous forces such as ISIL, Shia militias and the Peshmerga. That position was maintained by L Paul Bremer, who wrote in his 2004 memoir that the former Iraqi army had to be dissolved because Shia soldiers would never-follow orders issued by Sunni officers. The second explanation was that, regardless of the context, Iraq's population had no sense of loyalty to their country. The claim was that southern Iraqis would not want to liberate areas in-northern Iraq, which was thinly veiled code to say that Shia Muslims-would not want to liberate Sunni-dominated areas. Accordingly, if the people wanted to be free, they would have to bear that burden themselves. That argument was tantamount to writing Mosul off altogether: From 2006 to 2014, Iraq's security forces received approximately $100bn from Iraq's own budget, yet had been completely overrun by ISIL. Clearly, Mosul's population of labourers, doctors and bureaucrats stood no chance. OPINION: Liberating Mosul will not solve Iraq's problems The term ""essential Iraq"" was even floated in 2014 to describe parts of the country that Iraqi security forces should defend from ISIL, roughly corresponding to Shia-majority areas, Baghdad and the shrine city of Samarra. The term was deeply offensive to those Iraqis who had been overrun by ISIL and who were struggling to survive. Today, Iraq's elite Counter Terrorism Service has put the lie to the basis of these claims. It is Iraq's most diverse fighting force and also its most successful by far, in terms of training, equipment and progress on the ground. The images are hard to appreciate without understanding the context: Thousands of young men from all parts of the country are fighting to liberate Mosul. They have taken extraordinary risks to protect civilians from harm. Wounded soldiers demand to be released by medical staff so that they can return to the front lines as soon as possible. Their bravery, professionalism and dedication have affected the country's national psyche in ways that are so far undocumented, unreported and under-appreciated. Finally, there are those who have tracked progress against ISIL and who assume that the battle is essentially over. However, the manner in which the battle for Mosul has progressed reveals much about the challenges that lay ahead for the city and the country. Despite the Counter Terrorism Force's successes, the regular army's training, operating procedures and adherence to the rule of law are still lacking. In a terrible miscalculation last December, army units plunged deep into ISIL-held territory and were promptly surrounded, leading to dozens of deaths and injuries. Since then, various branches of the security sector have committed to coordinating their actions on a more regular basis. In the rest of the country, the army and police still engage in the type of random arrests that contributed to the collapse of security throughout the country in 2014. Despite all the promises and statements made on this issue, security forces in various parts of the country still use the notoriously useless ""magic wands"" as a means to detect car bombs. In Tikrit, meanwhile, the sprawling university campus was looted by army officers, who made off with whatever they could and damaged beyond use whatever they could not. As the Counter Terrorism Service makes progress on the ground, it will cede territory and control to the regular army and to other branches of the security services, which do not operate according to the same standards. The challenge will then be to impose order in their ranks, and to ensure that their primary task is to secure the city's inhabitants without repeating failed tactics of the past. Source:-Al Jazeera", -1279,2017/2/17,http://www.aljazeera.com/indepth/features/2017/02/yemen-art-love-bombs-bans-170213090154650.html,"Yemen: Art, love, bombs and bans Dorian Geiger",Yemen's most prolific street artist copes with Donald Trump's immigration ban. By,"They call him the Banksy of Yemen. But Murad Subay, a 29-year-old street artist based in the capital Sanaa, shrugs off such comparisons. Subay has transformed the streets of an active war zone into his own vibrant gallery. His canvases are often the ruins of war --crumbling, abandoned houses with gaping holes caused by mortar explosions. ""It is three letters only: W-A-R,"" said Subay of his work, which continually shines a light on Yemen's horrific humanitarian situation. - ""It's just to show the ugliness of war---this is what happens by war. This is my way to to protest against the injustice of this war and for peace."" Subay's work also focuses on Yemen's dire economic situation, political corruption, disappeared persons, and US drone strikes. Yemen's revolution, which unfolded on streets across the country on the heels of the Arab Spring just over six years ago, largely inspired his brand of artistic activism. Subay was there with the people, protesting in the streets of Sanaa. Those blissful but fleeting moments were short-lived, as the revolution would soon turn into a full-blown civil war. ""Yemenis were united in every part of Yemen,"" said Subay. ""It was a great moment. We loved it. When the revolution came, it never stops and it will continue."" Unlike many street artists, who often work in the shadows, Subay's work is a collaborative effort. Subay's artistic campaigns invite everyday Yemenis to pick up a paintbrush or a can of spray paint and participate in his art. It's an artistic approach he says is for the people, by the people. ""It's a voice of [the people],"" he described. ""I'm a Yemeni. When I discuss something, I first [ask] what people should care about, what they are afraid of, and what [are] the issues that concern them? People are longing to end this war."" His open-sourced style of art is what led him to his wife Hadil Almowafak. Almowafak, then in high school, had learned of one of Subay's campaigns on social media. It was 2012, shortly after Yemen's revolution and the ousting of former president-Ali Abdullah Saleh. She was mixing colours when Subay first approached her. ""When we arrived we saw people painting on the walls,"" she recalled. ""Everyone was there. That was something new. People in the streets were standing by watching or [were] taking the brush and started painting. He wants to make the whole society part of his work."" From then on, Almowafak was hooked - on both Subay and his art. ""Even if I had school, many times I would skip school just to go paint with them,"" she added. Three years later, in October 2015, the pair celebrated their wedding. By that time, civil war had broken out in Yemen. Today, Houthi rebels and loyalists to former president Saleh are still engaged in a bloody battle against the current government of Abd-Rabbu Mansour Hadi. A Saudi Arabian-led coalition - aligned with Hadi, and supported by the US - bombs the country routinely. It's a fertile breeding ground for al-Qaeda, which the US frequently targets with drone strikes, and there's an ISIL presence, too. But more often than not it seems, it is everyday Yemenis who pay the cost, often with their lives. Just last week, a botched Navy Seals raid targeting al-Qaeda killed roughly 30 people, many of them civilians and some of them children, in President Donald Trump's first attempt at military intervention in the country. Tens of thousands have died in the fighting, many of them regular citizens. Hospitals and schools and have been bombed to bits, starvation is rampant and UNICEF has reported that a child dies every 10 minutes. ""Every day you hear of civilians being killed,"" said Almowafak, now 21. ""When you hear air strikes, especially if it's nearby, the whole house will be shaking. At night, you don't know where they're going to hit, especially [if] you've been hearing they're targeting civilians. You're always in this uncertainty. You don't know if you're going to be next, if your neighbour's going to be next. It was insane. They will be firing at each other. The shelling, you've got mortars, you've got snipers killing people. It's just crazy."" Then, last year, the couple received life-changing news: Almowafak had been accepted to Stanford University in California, where she is currently studying. Conditions in Yemen had deteriorated at such a swift and deadly pace that it was impossible for Almowafak to pursue a serious education at home. The acceptance offer from such a prominent US university was a life-preserver amid a sea of death and destruction. It was a way out and a bridge to achieving her dreams. Almowafak had dreamed of coming to America since she was a child. - But under Trump's immigration ban that prohibits citizens of seven Muslim-majority countries, including Yemen, from entering the US for 90 days, Almowafak's academic future has been cast into doubt.- ""It's really unfair,"" said Almowafak, who wants to be a human rights lawyer. Although a federal judge in Seattle has temporarily blocked the ban, it is unclear if this will stick. ""I am disappointed to see America take this road. I do feel like I'm trapped, like when I was in Yemen and the airport was closed and people wouldn't be able to travel. I felt trapped there, as well, but at least there was war. The war was unfair to us. But here in US, in the land of freedom, and this happens, I just couldn't believe it."" The US only granted her a 12-month visa for her studies, as opposed to a four-year permit, which Almowafak would need to continue studying.-If the block on Trump's ban doesn't hold, Almowafak will probably be forced to abandon her studies and return to Yemen indefinitely. ""You're at Stanford, that's a good place to be trapped in,"" said Almowafak. ""It's like it's a golden cage. I can't visit my husband. He cannot come here, as well. I cannot visit my family. I can't study abroad. I came here to study and I cannot do that and in a year I won't be able to if the ban continues. I'm holding on to hope because I don't want to think about what's going to happen next."" Almowafak had planned to return to Yemen this summer to be with Subay, but now those plans are in jeopardy. ""The first time [I heard about the ban], I thought it was a joke actually,"" said Subay. ""[The US] is the country of opportunities, the country of democracy and in the 21st century, you ban people according to their race, their religion for their nationality? This is stupidity. This law is racist. It's unbelievable. [It's] like putting honest, innocent people in a prison."" Though the odds are stacked against them, Subay refuses to believe that his wife must give up on her dreams. - ""She's been following this chance to have a scholarship for two years. I know, I was there every step,"" he said. ""Our country is what they call the third world. Our chances [are] not a lot. It sometimes comes once. So such a chance, to prove yourself in such a respectable university, it is really important and [precious] so she must and she will stay there to continue her studies. She is very brilliant."" Source:-Al Jazeera", -1280,2017/2/17,http://www.aljazeera.com/news/2017/02/trump-vows-introduce-overhauled-travel-ban-170217035418856.html,Trump vows to introduce overhauled travel ban,"At an extraordinary press conference, the US president said new order will 'comprehensively protect our country'.","US President Donald Trump said he will issue a new executive order to replace his controversial directive suspending travel to the United States by citizens of seven mainly-Muslim countries. At an extraordinary White House news conference on Thursday, Trump said the new order would seek to address concerns raised by federal appeals court judges, who temporarily blocked his original travel ban. ""The new order is going to be very much tailored to what I consider to be a very bad decision,"" Trump said.- ""We had a bad court. I will not back down from defending our country. I got elected on defence of our country. I keep my campaign promises, and our citizens will be very happy when they see the result. ""We're issuing a new executive action next week that will comprehensively protect our country."" Trump gave no details about the replacement order. Legal experts said a new directive would have a better chance of withstanding courtroom scrutiny if it covered some non-Muslim countries and exempted non-citizen immigrants living in the US legally. The original order, issued on January 27, triggered chaos at some US and overseas airports, led to international protests, complaints from US businesses and drew more than a dozen legal challenges. At his first solo press conference, Trump insisted there was ""zero chaos"" in his crisis-buffeted White House and railed against enemies in the media, politics and the courts. The 70-year-old US president vented frustrations, insisted he is ""not a bad person"" and wondered out loud about a ""nuclear holocaust"", in a remarkable one hour 16 minute ask-me-anything appearance.- READ MORE: What happens during a deportation raid in the US? ""I inherited a mess. It's a mess. At home and abroad, a mess,"" Trump said in a 23-minute opening monologue that bore little resemblance to presidential press conferences of the past. Claiming his administration ""is running like a fine-tuned machine"", the Republican accused the ""dishonest"" media of stirring-up crises that have sent his approval rating plummeting. ""The tone is such hatred. I'm really not a bad person, by the way,"" he said. ""I do get good ratings, you have to admit that."" In four tumultuous weeks, Trump has seen his national security adviser ousted, a cabinet nominee withdraw, a centerpiece immigration policy fail in the courts and a tidal wave of damaging leaks. ""There is zero chaos,"" Trump insisted, as he aired a litany of grievances. ""We have made incredible progress. I don't think there's ever been a president elected who in this short period of time has done what we've done."" ""This is a fine-tuned machine.""- Source:-News agencies", -1281,2017/2/16,http://www.aljazeera.com/programmes/101east/2017/02/philippines-sins-father-170216113536779.html,Philippines: Sins of the Father,101 East investigates sexual misconduct inside the most powerful institution in the Philippines - the Catholic Church.,"Priests are treated like God in the Philippines - Asia's largest Catholic nation. But often that trust is exploited by clergymen who are sexually deviant. And, despite a vow of chastity, some priests have children out of wedlock. Those abuses and misdemeanours within the Church often go unpunished. Critics say investigations are kept secret and those charged with sexual abuse are still active in local parishes. 101 East investigates sexual misconduct inside the most powerful institution in the Philippines: the Catholic Church.- Join the conversation @AJ101East Source:-Al Jazeera News", -1282,2017/2/16,http://www.aljazeera.com/indepth/features/2017/02/sexual-abuse-catholic-church-philippines-170216110007343.html,Sexual abuse and the Catholic Church in the Philippines Tiffany Ang,"Abuse allegations against Catholic priests are on the rise, but is enough being done to prosecute the accused? By 'God did not say this'-","Sexual abuse allegations against Catholic priests in the Philippines are on the rise, according to senior church investigators. But this new 101 East documentary reveals that prosecutions of priests alleged to have committed sexual abuse are extremely rare in Asia's largest Catholic nation. Some alleged victims say they have been pressured not to file charges and were paid money in exchange for their silence. Imelda* was 15 years old when she says the priest in her village sexually assaulted her. ""After he kissed me on the forehead, he hugged me,""-she recalled. ""It was really painful. Why did he do that to me?"" She says that when her family discovered she had reported the incident to the police, they beat her. ""They actually beat me to the point that I was afraid to go home. They were angry with me. They were telling me that what I did was wrong. They treated me like a stray dog because of what I did, because I filed a case,"" she says. Then she claims a man and a woman from the church gave her $150 to drop the charges. Her case never went to court. Retired Archbishop Oscar Cruz, who heads the Catholic Church's National Tribunal of Appeals in the Philippines, says he is receiving more complaints of sexual abuse involving priests, including allegations of paedophilia. ""The laity, especially in urban areas, have become rather alert and courageous in denouncing the errancy of priests,""-he says. ""I may be offending other bishops but this is a personal stand, that gone are the days when you can just close your eyes and plug your ears ... as if nothing is happening."" Al Jazeera has also found that some Filipino priests are breaking the vow of celibacy and fathering children. Father Elmer Cajilig, who has four children with his long-term girlfriend, says that the celibacy vow for ordained priests is-""only a man-made rule"". ""God did not say this, so I think I cannot say that I've committed sin. I am just continuing His mandate ... to go and multiply."" Father Cajilig and two other priests who also fathered children have set up their own self-styled Catholic ministry, where they preach at privately owned churches. They have written to the Vatican, asking to be accepted by the Church. Father Jaime Achacoso, secretary of the Canon Law Society in the Philippines, condemns these 'father' priests, but says in some remote dioceses, one in five priests has had children. ""That's the reality that happens in those areas where discipline, where the hierarchy is not so well-organised,"" says Father Achacoso. The Vatican did not respond to Al Jazeera's request for comment about how it handles allegations of clergy sexual misconduct and abuse in the Philippines. When asked if Filipino bishops are obliged to report sexual assault allegations to civil authorities, Father Achacoso says all investigation should be left to the Church. ""A person is innocent until proven otherwise, and so the Church handles these cases with a lot of discretion, both to protect the dignity, the good name of the priest and also for the victim."" * Name changed to protect her identity.- Follow Tiffany Ang on @tiffeeang- Source:-Al Jazeera News", -1283,2017/2/16,http://www.aljazeera.com/news/2017/02/samsung-heir-lee-jae-yong-arrested-bribery-probe-170216215303041.html,Samsung heir Lee Jae-yong arrested in bribery probe,Lee Jae-yong is first leader in electronics firm's history to be held on criminal charges as part of a corruption probe. Second arrest bid Controversial merger,"The heir of South Korean company Samsung has been arrested as part of an investigation into corruption and influence-peddling that caused President Park Geun-hye to be impeached. The Seoul Central District Court's decision on Friday to issue a warrant to arrest Lee Jae-yong, 48, makes him the first leader in Samsung's history to be arrested on criminal charges. Lee, vice chairman of Samsung Electronics and son of the Samsung group head Lee Kun-hee, is accused of paying nearly $40m in bribes to Park's secret confidante to secure policy favours. ""It is acknowledged that it is necessary to arrest [Lee] in light of a newly added criminal charge and new evidence,"" a court spokesman said in a statement on Friday. He was already being held at a detention centre after appearing in court on Thursday as judges deliberated whether to issue an arrest warrant. Samsung is South Korea's largest business group and its revenue is equivalent to about a fifth of the country's GDP. Lee had been interrogated several times over his alleged role in the scandal that has rocked South Korea in recent months. He had narrowly avoided being formally arrested last month, after the court ruled that there was insufficient evidence. But prosecutors on Tuesday made a second bid for his arrest, saying they had collected more evidence in recent weeks. His arrest is likely to send shock waves through the group, which is a major part of the South Korean economy. Samsung Electronics,-the world's largest smartphone maker,-is already reeling from the debacle over the recall of its Galaxy Note 7 device and reports have suggested that it could face sanctions from overseas authorities if Lee is punished. The scandal centres on Choi Soon-sil, who is accused of using her close ties with Park to force local firms to ""donate"" nearly $70m to non-profit foundations which Choi allegedly used for personal gain. Samsung was the single biggest donor to the foundations. It is also accused of separately giving millions of euros to Choi to bankroll her daughter's equestrian training in Germany. The court is also deliberating on an arrest warrant for another Samsung executive, who is the head of Korea Equestrian Federation, over bribery charges. Samsung said in a statement on Wednesday it had ""not paid bribes nor made improper requests to the president seeking favours"". Lee has effectively taken the helm of Samsung since his father suffered a heart attack in 2014. Prosecutors are investigating whether Samsung had paid Choi to secure state approval for the controversial merger of two Samsung units seen as a key step towards ensuring a smooth power transfer to Lee. The merger in 2015 of Samsung C&T and Cheil Industries was opposed by many investors who said it wilfully undervalued the former unit's shares. But the deal went through after Seoul's state pension fund - a major Samsung shareholder - approved it. Source:-AFP news agency", -1284,2017/2/16,http://www.aljazeera.com/news/2017/02/anti-muslim-groups-tripled-trump-campaign-170216153335713.html,Anti-Muslim groups 'tripled in US since Trump campaign',Southern Poverty Law Center cites major rise in hate acts against Muslims since launch of presidential campaign in 2015.,"The number of anti-Muslim hate groups in the US has nearly tripled since Donald Trump launched his presidential election campaign in 2015, according to a non-profit-organisation that ""combats hate, intolerance and discrimination through education and litigation"". The Montgomery, Alabama, based Southern Poverty Law Center (SPLC) said in a report-on Wednesday that the number of organisations opposing Muslims ""leaped"" from 34 in 2015 to 101 last year, as the total number of various hate groups remained at ""near-historic highs, rising from 892 in 2015 to 917 last year"". The SPLC also noted that FBI statistics showed that the rate of hate crimes against Muslims rose by 67 percent in 2015, when Trump, who used his election campaign to call for a travel ban against Muslims among other policies targeting ethnic and religious minority groups, became a popular political figure. ""The growth [of hate groups] has been accompanied by a rash of crimes targeting Muslims, including an arson that destroyed a mosque in Victoria, Texas, just hours after the Trump administration announced an executive order suspending travel from some predominantly Muslim countries."" OPINION: All international laws Trump's Muslim ban is breaking ""Without a doubt, Trump appealed to garden-variety racists, xenophobes, religious bigots and misogynists - people not necessarily in any hate or related kind of group, but who still were antagonistic towards multiculturalism,"" the report said. In November last year, the SPLC released a report saying that the US saw a ""national outbreak"" of hate incidents following Trump's presidential election. It said that it documented nearly 900 hate incidents within the 10 days after Trump's election on November 8, but noted it was ""almost certainly a small fraction of the actual number"" because of under-reporting. Many of the perpetrators invoked the president-elect's name during the incidents, indicating the surge was linked or motivated by his electoral win, the report said. Source:-Al Jazeera", -1285,2017/2/16,http://www.aljazeera.com/programmes/insidestory/2017/02/global-support-state-solution-170216200829737.html,What happens to global support for two-state solution?,US President Donald Trump would back single-state solution to Israeli-Palestinian conflict if both sides agree.,US President Donald Trump has broken with more than two decades of American support for a two-state solution between Israelis and Palestinians. He would be happy with one. Where does that leave international support for the two-state option? And where does it leave any efforts to resolve the conflict? Presenter: Hazem Sika Guests: Natan Sachs - fellow in the Centre for Middle East Policy at Brookings Institution Oded Eran - senior research fellow at the Institute for National Security Studies Amer Zahr - a law professor at the University of Detroit Source:-Al Jazeera News, -1286,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234274.htm,Opportunities await the innovators,,"China should utilize the power of its existing industries and its unique circumstances to drive progress, expert says China should not underestimate the power of its existing industrial capability while Chinese manufacturing firms move up the value chain amid the country's structural shift, says Brian Wu, founding faculty director of China initiatives at the Ross School of Business within the University of Michigan. Efficiently maintaining the country's industrial base, while globalizing through the intelligent use of young talent with international perspectives, is crucial for China's long-term growth, said Wu, who is also an associate professor of strategy at the university. Wu, who has extensively researched the way in which low-cost suppliers climb the value chain to beat mature incumbents, says China can now significantly benefit from this value chain climb - if it plays its cards right. - Brian Wu, founding faculty director of China initiatives at the Ross School of Business within the University of Michigan. Provided to China Daily ""We have learned many lessons in the process of supplying Western companies in a hardworking and patient manner. It is important to not lose our industrial base after accumulating so much experience,"" he says. Wu was born in 1976 in Pingdu, a city in Shandong province with an extensive manufacturing sector. While growing up, he saw the hard-working culture of factory employees in his home city at a time when China was rising to become the world's factory. He wondered why Chinese factory workers earned so little, despite their tremendous efforts. His curiosity served as the foundation for Wu's academic research, first in Beijing and subsequently in the United States. Three years ago, he led the establishment of a new training program for China Development Bank executives at the Ross School of Business. ""My thoughts on this topic were greatly enhanced through discussions with the executives,"" he says. Wu's observations come as Chinese President Xi Jinping strongly champions the benefits of free trade and US President Donald Trump threatens to close his nation's doors to globalization and foreign investment. Wu expressed support for China's stance on globalization and suggested that the next major breakthrough could come from finding a way to efficiently utilize overseas-educated Chinese people in helping Chinese companies with their global expansion efforts, especially in the case of growth through acquisitions in advanced economies. ""The question is, how do you capture the intrinsic value of what you acquire? And in advanced industries, human capital is key,"" he says. ""Through acquisitions, Chinese firms could send their existing management abroad to the acquired firms to build experience, while recruiting overseas-educated Chinese people to take on key positions."" In 2015, more than 300,000 Chinese students attended US colleges and universities, and in excess of 90,000 learned at UK higher education institutions, making them the largest contingent of international students in both countries. Wu says it is important for Chinese firms to attract and motivate those talented people by giving them opportunities to execute their ideas. The opportunities afforded by the management style of Chinese white goods maker Haier are a good example, he says. At Haier, the company's management structure pivots around ZZJYTs (zi zhu jing ying ti, which means independent operation units). This unprecedented management structure was first brought to international attention in academic circles by Bill Fischer, a professor of innovation management at Switzerland's IMD business school. Each new project or market opportunity leads to the formation of a ZZJYT, a dedicated small team of workers with a separate budget, functioning almost like an independent company. Within this structure, young Chinese graduates could set up their own projects, such as setting up a subsidiary for Haier in an overseas market. ""I've spoken to many young Chinese graduates, who are incredibly motivated, and entrepreneurial in their mindsets,"" Wu says. ""The incentives system at Haier is perfectly suited to people like them, because for them, the experience of setting up a business operation overseas for Haier gives them entrepreneurial experience, and they will work hard to make it successful."" Turning to the policies of the Trump administration, Wu says various proposed protectionist policies are counterproductive for the US domestic market. He believes Trump has incorrectly blamed globalization for problems of domestic inequality. ""It is not globalization that has taken away jobs in the US, but rather inefficient wealth distribution. The US government could create re-education programs to help domestic workers improve their skills and find new job opportunities, rather than forcing companies to re-shore production to the US just for job creation purposes."" However, Wu points out that one potential justification for Trump's efforts to re-shore production is to build up industrial capability in the US, after witnessing the challenges of losing this capability. ""Although outsourcing production to more cost-efficient countries generates good profits, not having a big manufacturing industry could also lead to businesses losing touch with market demand. It is often through the manufacturing process that innovative ideas are generated,"" Wu says. He offers the example of the Chinese electric car manufacturer BYD. Founded in 1995 as a rechargeable battery manufacturer, the company slowly used its battery technology in the making of its own electric vehicles. ""Although batteries are not high-value-adding products, BYD discovered a new direction in the making process. Without the manufacturing infrastructure, you risk becoming out of touch with consumer needs."" If China maintains its manufacturing capacity, Wu believes the country will benefit from moving its manufacturing industry inland, away from the traditional manufacturing hubs of the East China's coastal cities. He suggests they be relocated to Western cities, which would also reduce wealth inequality across the country. Meanwhile, putting more emphasis on quality manufacturing and recognizing domestic opportunities when they arise out of market inefficiencies are also important components of the process of moving up the value chain. ""We often hear companies vowing to venture overseas due to saturation of the domestic market, but really there are still many opportunities within China, particularly arising out of China's regulatory and market inefficiencies,"" says Wu. Examples of innovative firms that have made the most out of such opportunities include the Chinese e-commerce giant Alibaba and its fintech affiliate Ant Financial, as well as Wechat Pay, the payment arm of the Chinese version of Twitter, Wechat. Both payment firms rose as solutions to challenges within China's financial markets. For instance, Ant Financial runs a Sesame Credit rating system, which assesses borrowers' credibility by drawing on Alibaba buyers' and sellers' transaction data, hence solving the challenge for Chinese borrowers of having no official credit history. This innovative credit rating system allows individuals and small and medium-sized companies to access lending that they could not otherwise obtain from banks. Meanwhile, Wechat Pay's road to success in China was quicker and easier than those of Western counterparts Apple Pay and Samsung Pay, because Wechat Pay became available in the Chinese market at a time when China was quickly transitioning from a cash to a cashless society, and because credit card ownership is not as common as it is in mature Western economies. ""Those market inefficiencies precisely created fertile soil for innovation, and fostered the growth of a wave of Chinese tech firms,"" says Wu. This trend of Chinese tech giants surpassing their Western counterparts by making good use of China's unique situation has been well documented in recent academic books, Wu says. ""There is still lots of innovation to be unlocked that will provide the solution for China to maintain both innovation and production capacity,"" he says. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 02/17/2017 page32)", -1287,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234272.htm,Investors chase UK warehouses,,"Huge e-commerce trade driving demand in Britain as domestic facilities reach their capacity Investment in Britain's warehousing sector is in fashion, thanks to a boom in China-related e-commerce activity that has put strain on the nation's domestic warehouses - a trend that is likely to continue post-Brexit when European ports will be less able to handle the UK's imports. Major British asset management companies, such as Investec, are already capitalizing on the trend by investing in warehousing management firms, such as Tritax Big Box and Prologis, while the Shanghai-based private equity firm PGC Capital is preparing for the launch of a 1 billion yuan ($145 million; 136.4 million euros; 115.6 million) fund to help Chinese institutional investors reap returns. Denise Li, CEO of PGC Capital, says the fund is already assessing three-to-five warehouses near Manchester for potential investment. Atul Shinh, an investment specialist at Investec, says investing into warehouse management firms offers a steady and attractive yield, with cash flows from rent and potential for capital appreciation. At the core of the profitability of warehouses is the huge UK-China e-commerce trade. Wayne Yu, vice-president and operations director at STO Express Europe, estimates that Chinese exports comprise 60 to 70 percent of the UK's e-commerce market in the number of items. STO, a Shanghai-based delivery firm that expanded into the UK in 2004, now rents about 10 warehouses across the UK, most of which were established in the past two years or so. Its shipment volume in 2016 grew by 50 percent. Oscar Lin, manager at London-based Onetwothree Logistics, which rents warehouses in Slough, Felixstowe and Ipswich, serving both the sea and airfreight trade, has paid more rent each year. ""We only found the Ipswich warehouse last year, after searching for about a year and a half, because warehouse facilities are in demand in that area,"" Lin says. ""With increased warehousing facilities, we are able to serve customers more efficiently."" cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 02/17/2017 page29)", -1288,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234271.htm,The return of optimism,,"With many industrial segments recovering, the Year of the Rooster promises to help the real economy shake off recent troubles and crow again Economy trackers are highlighting facts and figures to indicate that the Chinese economy is entering 2017 on a strong footing - eclipsing last year's tepid data and unstable financial markets. For instance, the Purchasing Managers' Index, or PMI, jumped to its highest mark in more than two-years to 51.7 in November, beating economists' expectations. Construction and consumer services hit their highest mark since mid-2014. More glad tidings are coming from the energy industry, especially its renewable power segment, innovation, pharmaceuticals, overseas mergers and acquisitions and the Belt and Road Initiative, along with measures like supply-side reforms to reduce excess industrial capacity and shed nonviable assets. To prevent money from pouring into speculative bubbles like equities and property, Beijing has prioritized the real economy as a major drive for sustainable and healthy economic growth, according to the Central Economic Conference in December, which set the tone for economic development in 2017. These are now seen as positives that could well outweigh concerns like capital outflows, a depreciating currency and rising labor costs. Gao Qiang, general manger of Shanghai Ruijia Industry Co, an electric toolmaker, says he expects the New Year to be decisive for the company and the Chinese economy. Ruijia began destocking its AC-powered gardening tools, which represented 90 percent of its inventory, late last year. Instead, it began focusing on new-energy technologies. The efforts are beginning to pay off. ""Customers from the US and Europe flocked to the company's booth, steering clear of AC-power tools and checking prices of tools that use new-energy technologies,"" Gao reported in November after returning from the China Import and Export Fair in Guangzhou, Guangdong province, the country's largest trade event. The government's call for industrial upgrades has propelled Ruijia, a 50 million yuan ($7.3 million; 6.8 million euros; 5.8 million) business in rural Shanghai, to embrace renewable energy. ""The year 2016 was the nadir for many manufacturers like us. With constant innovation and upscaling, we are already seeing signs of recovery,"" Gao says. Ruijia, he says, has already secured three orders from Spain for delivery this year. Such signs of recovery are emerging all across the $10 trillion-plus economy, which is bouncing back from last year's sagging export manufacturing that created a drag on growth, experts said. For instance, hectic deal-making activity at PowerArk Group, a photovoltaic firm, kept founder and chief executive officer Brendan Li awake late at night in the runup to Spring Festival. PowerArk inked major deals with Chinese and Dutch buyers in January. The firm first established its business in Australia in 2011, and made its name as one of the largest authorized solar panel distributors and wholesalers there. ""No other market can rival China in terms of starting a new business, turning it profitable and at the same time contributing to social progress,"" says Li, who is now overseeing the firm's ambitious plan to list in the next three years. The explosive growth in energy demand has inspired China to develop clean energy, while optimizing its energy mix, Li says. The photovoltaic industry has greater potential as solar energy is easier to access than other new energy sources like wind, biomass and nuclear, she said. China is expected to continue to be the world's fastest-growing solar PV market through 2020, according to the National Energy Administration. The ambitious push for renewables is supported by a host of policies and regulations such as the PV Pioneer program, which encourages energy efficiency and domestic renewable energy deployment. ""Thanks to government policies and the ongoing education of the market, the time is ripe for China's PV industry to take off,"" says Li, who remains bullish that the 500 million yuan business will reach a broader customer base in three years. Perhaps, China's power industry and related segments exemplify the current sense of optimism more than others. Qi Yifu, president of Delixi-Electric, a low-voltage electrical products and solutions provider, knows how cutting-edge technologies can be more than just cash cows. The company, headquartered in Anhui province, together with parent Delixi Group, has provided more than 160 patented technologies for the Shenzhou V and Shenzhou VI spacecraft launch projects. Switch gears, circuit-breakers and transformers manufactured by Delixi have been widely applied in the launch process and in radars, missiles and tracking. ""The implementation of supply-side structural reforms creates a favorable macro climate for the whole low-voltage electric industry,"" says Qi, whose company exports to more than 50 countries. To outperform its peers, Delixi has established its first authorized retail network and an e-service platform to offer customers a one-stop shopping experience. It is also leveraging big data analysis, a rarity in the low-voltage electricity industry around the world. Such openness to adopting new processes and mindsets marks Chinese businesses wishing to accomplish the daunting task of going global. For instance, Luye Pharma, which started out as a maker of traditional Chinese medicine, is now betting on new formulations of drugs for neurological and psychiatric disorders, as well as international partnerships, to attain its goal of becoming one of the world's top 100 pharmaceutical firms by 2020. hewei@chinadaily.com.cn (China Daily European Weekly 02/17/2017 page26)", -1289,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234268.htm,IN BRIEF (Page 24),,"- Brides try to find presents among balloons during a group wedding ceremony held at a department store in Taiyuan, capital of Shanxi province, on Valentine's Day. Wei Liang / China News Service Foreign trade rises 19.6% in January China's exports to markets along the Belt and Road Initiative, including Russia, Malaysia and India, surged in January, indicating that their ongoing industrialization and infrastructure development continued to stimulate economic exchanges with China, experts said on Feb 15. Exports to the three countries grew 39.1 percent, 22.8 percent and 18.1 percent, respectively, on a year-on-year basis, according to the Ministry of Commerce. Zhang Yunling, director of the academic division of international studies at the Chinese Academy of Social Sciences, says from a global perspective, upgraded consumption, manufacturing capacity and infrastructure cooperation have become the biggest highlights of projects related to the trade route initiative. Apple ponders Beijing tech group as supplier Apple Inc is in discussions with Beijing-based BOE Technology Group Co to supply next-generation displays for future iPhones, a key component that is being provided by a Samsung Electronics Co unit, sources familiar with the talks say. Apple has been testing BOE's active-matrix organic light-emitting diode screens for months but hasn't decided if it will add the Chinese company to its roster of suppliers, one of the sources says. BOE, one of the country's biggest screen makers, is spending close to 100 billion yuan ($14.5 billion; 13.65 billion euros; 11.63 billion) building two next-generation screen plants in the southwestern province of Sichuan in anticipation of future business. Talks are at an early stage and it's unlikely to supply the next iPhone, but BOE is banking on outfitting the one in 2018 or later, the source says. Timber group teams upwith Russia on resources Manzhouli Lianzhong Group, China's largest timber and frame-house building company, is leading a project with Russia to develop forest resources. The project, worth more than 1.5 billion yuan ($218 million; 205.3 million euros; 174.8 million), will seek to construct comprehensive bases in both countries for wood processing, storage and trade, according to Lu Baodong, vice-mayor of Manzhouli city in northern China's Inner Mongolia autonomous region. Next to Russia, which is rich in forest resources, Manzhouli has been China's biggest land port for wood imports for 16 consecutive years. In the first half of last year, China imported 46.08 million square meters of wood, 33 percent of which was from Russia - the largest source country for China's wood, statistics provided by Zhonglian Group show. Huawei supports French city's surveillance effort Huawei, the Chinese telecoms giant, and the French city of Valenciennes have signed an agreement to renovate the city's video surveillance system for public security. It could help Valenciennes, a city of 400,000 people about 200 km to the north of Paris, in the Hauts-de-France region, better manage public security issues and speed up its digital transformation. The cooperation on video surveillance equipment and technology is a result of Valenciennes's ambition to become a technological showcase of the region, and Huawei's willingness to provide its technological expertise to support the city's digital transformation toward a ""smart city."" The installation of the whole system would take about one year. The project aims to equip the city with 217 Huawei's HD Network cameras of the latest generation and a fully renewed monitoring center. GCL unit to make solar power push overseas Chinese mainland clean-power producer GCL New Energy Holdings Ltd, a subsidiary of Golden Concord Holdings Limited, is looking to boost its overseas sales revenue to 30 percent of the total by 2020 through increasing solar energy project exports, its company executive says. The Suzhou-based company will focus on expanding markets in developed countries such as the United States, Japan and Australia, and plans to set up new branches, says GCL New Energy President Sun Xingping. Sun says overseas business will grow faster in the foreseeable future, with the percentage of installed capacity of solar power in foreign markets amounting to 30 percent of the total. The company's press office says the current proportion is less than 5 percent. It has installed several rooftop-distributed power plants in the US and Japan, and two ground-based plants in South Africa. Film and TV group to link with UK's ITV One of China's leading film and TV production companies has unveiled plans to work closely with UK broadcaster ITV Studios Global Entertainment. Huace Film and TV had previously collaborated with ITV on a Chinese version of the UK's Dancing on Ice. The first season of Star on Ice aired on several Chinese satellite stations in January. The show was both a critical and commercial success. Du Fang, vice-president of Huace group, says: ""Based on the popularity of Star on Ice, Huace and ITV have agreed to put in place a long-term strategy cooperation that would bring lots of creative work from Huace's film and television strategy."" (China Daily European Weekly 02/17/2017 page24)", -1290,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234267.htm,Working space the new creative frontier,,"WeWork isn't just about office rental - it offers a different way of life for businesses 'Do What You Love"" is Adam Neumann's catchphrase, and no-one who has visited a location of WeWork - the world's biggest co-working space operator - can fail to be impressed by the bon mot that can be found just about everywhere in the company's public spaces to inspire the startup entrepreneurs, freelancers and self-employed professionals who gather there to work. On pantry mugs, writing pads in meeting rooms and on corridor walls, ""Do What You Love"" is the mantra of WeWork. WeWork is a New York City-headquartered group founded in 2010 that provides shared workspace, communities and services for entrepreneurs, freelancers, startups and small businesses. - Adam Neumann, WeWork's co-founder and CEO. Provided to China Daily Neumann, WeWork's co-founder and CEO and an Israeli Navy veteran, is passionate about his vision for a global community of creators - for building WeWork not just as a place for people to work in at affordable rental cost but as a way of life. He almost lost his voice during his trips in Asia, particularly on the Chinese mainland, to meet investors and partners, as well as ""members"" - the latter term replacing the more conventional one of tenants. With the belief that the world is a better place because of ""creators"" - and a desire to understand the demands of those creators - Neumann and his team have turned WeWork, which began in 2010 as a small platform for co-working spaces with just one location, into a unicorn enterprise with a value exceeding $10 billion. In China's context, the thinking behind ""Do What You Love"" is in alignment with the country's nationwide campaign for innovation and growing entrepreneurship, Neumann says. This has helped power WeWork's rapid expansion in the market. In return, the co-working space operator helps improve productivity and empowers startup entrepreneurs to reach further heights, he says. Recently, he spoke with China Daily about the company's strategy, business opportunities and prospects. Following are edited excerpts from the interview: How do you see the co-working spaces market in China? Is there increasing competition as more players enter the market? Indeed there are many types of services offering offices at affordable rental costs, such as incubators, creative-industry parks, co-working spaces, which is a good thing as long as they meet market demand. The thing that differentiates us from the others is the networks and community we build up, which enable our members to be exposed to more business opportunities. By the end of 2016, WeWork has set up more than 100 locations at 35 cities in 10 countries, and now nearly 10,000 companies are based at a WeWork location, with member companies ranging from startups to household names including Delta, IBM, KPMG, GE, Dropbox and Samsung. This creates a powerful community that other operators do not offer. What is your plan for location launch in the China market? We will open several locations in China. In Shanghai, we will open locations in Yunan Lu, East Ocean Center (Yan'an Donglu) and Huaihai Zhong Lu very soon. In Beijing, WeWork Guanghua Lu is going to be opening in March and another location in the city will be opening by summer 2017. Currently WeWork has two locations on the Chinese mainland, namely WeWork Yanping Lu and WeWork Weihai Lu. Both are located in Shanghai. What's your view on China's startup entrepreneurs? China's fast growth and nationwide encouragement of innovation and entrepreneurship, is a great opportunity for startups. There is so much demand yet to be met, and these are great opportunities for innovation. Of course, for WeWork it is also a great opportunity to grow in the world's second-biggest economy. What is your advice for startup entrepreneurs? I think you really need to do what you love, and do not be afraid of making mistakes. I founded a company making babysuits for infants. It did not prove successful but I did not give up creating new business models. I learned a lesson that in order to be successful it is key to understand market demands. You need to be passionate, brave and understand demand to create a unique and effective business model. What is your observation about the fast-changing demand for co-work spaces? WeWork's member demographics are changing as co-working networks expand. In fact - besides conventional startup entrepreneurs - freelancers and self-employed professionals, small businesses, artists, and divisions of large corporations have now joined the co-working network. For example in Hong Kong, a division from HSBC is working in a WeWork location, as the employer believes that in an open, interactive environment, staff are more encouraged to be innovative and creative, which helps them to perform better and work with more well-being. What is the core value of working in a co-work space? The value-added services the community WeWork creates make WeWork far more than just a sublet cubicle at lower cost. At WeWork, members are part of a global network of all the people who share resources on the same platform, which provides opportunities for letting everyone know everyone to seek collaboration opportunities. More than 70 percent of WeWork's 90,000 members collaborate with each other, and our international locations serve as convenient bases for business travel, enabling a great degree of work flexibility for both multinationals and small-to-medium-size businesses alike, as well as options for easy expansion into new markets. How do you cooperate with local partners? Take the Beijing Guanghua Lu location for example. It is the first location WeWork will run in partnership with China local real estate partner Sino Ocean Group, based on a strategic cooperation agreement with a revenue share component between WeWork and SOG reached in November. Each brings unique expertise and assets to the partnership: WeWork provides the brand, design, community, digital tools, global member network and management operations. SOG provides the real estate, local market expertise and building-level capital. The partnership is the first of its kind for WeWork in China. How does the globalization of China's enterprises and the Belt and Road Initiative influence WeWork's business? The trend and the initiative creates demands that WeWork can meet. Globalization means that members need access to healthcare, payment processing, IT support, payroll management, and legal services, education and training, and human resources in a new market. WeWork takes care of members' multifaceted demands, making opening a new office in a new market much easier. As I said, China is the world's second-largest economy, and entrepreneurship, innovation and creators are all growing. We want to be a part of it. How do you describe your leadership style? I believe that people achieve more together than they can on their own. My team and I want to grow WeWork everywhere to serve everyone, expanding globally and focusing on building technology that connects members around the world so they are empowered to do what they love. What is your take on balancing work and life? I have four children and a lovely wife, and for me family is very important. At WeWork, our mission is to create a world where people work to make a life, not just a living. An entrepreneur and a co-working space operator who provides services to entrepreneurs, I have always looked at more areas that WeWork can take care of - such as members' well-being after work. wuyiyao@chinadaily.com.cn (China Daily European Weekly 02/17/2017 page31)", -1291,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234265.htm,"Business confidence sees signs flashing go, go, go",,"Several business confidence surveys have shown that China's is regaining traction among entrepreneurs despite slower GDP growth. Based on a survey of about 5,000 industrial businessmen nationwide, the People's Bank of China set the entrepreneur index at 54.2 percent in December, the third consecutive quarterly growth figure. China's factory output and retail sales grew faster than expected by the end of 2016 as a strong housing market and a government infrastructure spending spree underpinned growth in the world's second-largest economy. Executives of China's largest corporations ended 2016 on an upbeat note with overall confidence rising to the highest level since August 2014 in December, according to the MNI China Business Sentiment Index. - A worker tests auto spare parts at a manufacturing company in Zhejiang province. Hu Jianhuan / For China Daily The pickup in sentiment suggests companies remain cautiously optimistic going into 2017. The survey polls Chinese business executives at a mix of manufacturing and service sector companies listed on both the Shanghai and Shenzhen stock exchanges. Since the start of 2016's fourth quarter, output and demand have been trending upward, driving the increase in positive sentiment among executives. Production rose further in December by 0.9 points to 58.9 - the highest level since September 2015. ""Broadly consistent with more upbeat official data on the real economy, our survey points to sustained growth momentum going into 2017. Business conditions improved soundly during December, with output continuing to gain pace and new orders holding up fairly well,"" says Andy Wu, senior economist of MNI Indicators. Similarly, the business confidence index has been rising for four months in a monthly survey by the Cheung Kong Graduate School of Business, suggesting optimism is sprouting among business operators across China for prospects over the next six months. The CKGSB index comprises four subindexes for corporate sales, profits, financing environment and inventory levels. The latest survey showed expansion in the first three categories. Inventory remains a critical issue notably for small and medium-sized enterprises. According to a joint survey of 50 economic experts by the Centre for European Economic Research and Fudan University, a growth rate of 6.5 percent is predicted for China's economy in 2017. This would constitute a decline of 0.2 points from the recently published official growth figures last year. The experts surveyed did not seem to see any greater danger to the Chinese economy. For example, no dangers are foreseen from a possible decline in exports. The majority of experts continue to predict an increase in exports over the next six months, and even a greater share of world trade for China. Buoyed by healthy domestic consumption, imports are also expected to continue to increase, says Sun Lijian, professor of economics at Fudan University. hewei@chinadaily.com.cn (China Daily European Weekly 02/17/2017 page27)", -1292,2017/2/17,http://www.rte.ie/news/2017/0217/853307-taoiseach/,Donohoe rules out replacing Kenny as Fine Gael leader,,"Minister for Public Expenditure and Reform Paschal Donohoe has said that it is up to Taoiseach Enda Kenny to decide when he will stand down as Fine Gael leader. Speaking on RT?'s Morning Ireland, Mr Donohoe ruled out putting his name forward if there is a leadership contest. He said he is very pleased with his current job and that is where his focus is. He said he wants to play a leadership role in Government, but-does not currently want to be party leader. He said that in the future he may reconsider, but that even though colleagues had approached him about running,-he would not be contesting a leadership contest if Mr Kenny stands down. Mr Donohoe said Mr Kenny has ""done a very fine job leading our party and the country over the last six years"". ""While we're all very much aware of and respect the work that Enda has done, we are also aware of the need to look to the future but my view on this matter is unchanged - that I won't be putting my name forward if and when there is a change of leadership in Fine Gael."" He said it is crucial to recognise his role and recent difficulties should not take from his previous success. Mr Donohoe said the Fine Gael party will need space to renew itself and plan for the future.- Minister for Foreign Affairs Charlie Flanagan has also ruled himself out of a potential Fine Gael leadership race.- He-said he was ""privileged to serve as minister for foreign affairs,""-adding-""I have the job of Brexit at the top of my agenda."" Minister for Finance Michael Noonan, meanwhile, has denied that a change of Fine Gael leader would have any impact on Brexit negotiations.- Speaking ahead of a meeting of the-All-Island Civic Dialogue, Mr Noonan-said there was ""no vacancy"" for the position at present. But he added it was all part ""of the normal political process"".- Mr Noonan said leaders in Europe would ""not raise an eyebrow"".- Mr Kenny last night insisted he is focused on his work as Taoiseach and the challenges ahead, including Brexit. He was responding to questions about a possible vote of no confidence in his leadership if he does not indicate when he is likely to step down. The message from leading contenders for the Fine Gael leadership-Leo Varadkar and Simon Coveney yesterday was that Mr Kenny would himself know when the time had come to leave office, and ultimatums were not appropriate. Carlow TD Pat Deering, however, said that-if Mr Kenny did not give some indication next week of when he intended to stand down, he would reluctantly table a no-confidence motion.- His remarks were not welcomed by many of those who feel the Taoiseach must go. In response to a question about the threat-Mr Kenny insisted he was focused on his job as Taoiseach, outlining a lengthy list of the Brexit-related meetings on his agenda. Some of his detractors were concerned that the remarks signalled a fight back from the Taoiseach. But others viewed them as a holding statement to allow Mr Kenny space to consult family and Mayo colleagues over the weekend. Phil Hogan says Kenny 'well able to handle' leadership issues Ireland's European Commissioner Phil Hogan has meanwhile said it is ""business as usual"" for the Taoiseach as far as he can tell. Speaking in Ballina, Co Mayo this morning, the Agriculture Commissioner said Enda Kenny had a number of scheduled meetings in the coming weeks with the European Commission, the European Council and the European Parliament, at which he would be putting across Ireland's position on Brexit. Phil Hogan says it's"" business as usual"" for the Taoiseach, as far as he can tell. Speaking at Brexit discussion in Ballina this morning pic.twitter.com/ZxQgYkCf6S ""?Pat McGrath (@patmcgrath) February 17, 2017 While he would not be drawn on how long the Taoiseach might remain in office, Mr Hogan said he was confident the Taoiseach was ""well able to handle""- any issues relating to his leadership. He said he assumed any decisions would be made in consultation with the Fine Gael party in the best interests of the country, especially in the context of the ""unforeseen circumstance"" of Brexit.", -1293,2017/2/17,http://www.rte.ie/news/2017/0217/853316-microsoft/,Microsoft to add 600 new jobs in Dublin,,"Microsoft is announcing the creation of 600 new jobs for Dublin today with the bulk of the positions at a new inside sales centre at the company. Inside sales is the process of selling remotely by phone or online, and is a model favoured by many technology firms. The new Microsoft sales centre will employ 500 staff, who will sell the company's software and services to customers in Europe, the Middle East and Africa. Hiring is to begin immediately, and the positions will be filled over the next six months. The new jobs are being supported by IDA Ireland. 100 further positions are also being created across Microsoft's other operations here. These include roles in finance, operations, engineering and sales. Microsoft has been in Ireland since 1985 when it opened a small manufacturing facility employing 100 people. Since then it has grown its presence considerably and currently has 1,200 full-time employees and 700 full-time contractors. Its Irish operations include software development and testing, localisation, operations, finance, IT, HR and sales and marketing, serving both the domestic and Europe, Middle East and African markets. It has four units here - an EMEA Operations Centre, European Development Centre, the Irish sales and marketing subsidiary and its EMEA Data Centre. A new �134m 34,500sq/m campus currently being built by the company in South County Business Park in Leopardstown is nearing completion. Martin Shanahan, IDA Ireland's chief executive, said that Microsoft's decision to create 600 new jobs here is testament not only to the company's continued commitment to Ireland but also to the high calibre technical talent that is readily available throughout the country.- ""Microsoft's dynamic Irish workforce has facilitated the delivery of the firm's global strategy. Microsoft's expanding presence in Dublin further strengthens the capital city's international reputation as a leading technology hub,"" he added. Today's announcement will be officially made at an event at the company's Sandyford offices later this morning which will be attended by the Taoiseach, Minister for Jobs and the IDA CEO.", -1294,2017/2/17,http://www.rte.ie/news/2017/0217/853334-trim-fatal-crash/,Man killed in suspected hit-and-run in Meath,,"A man in his 20s has been killed in a suspected hit-and-run in Co Meath. The man was found at the side of the road on the Rathmolyon to Summerhill Road just before 9pm yesterday. He had been struck by a vehicle, sustaining fatal injuries, and was pronounced dead at the scene. His body was taken to Our Lady's Hospital in Navan. The driver of the vehicle that struck him failed to remain at the scene. A section of the road is closed to allow for a forensic investigation. Local diversions are in place. Garda�� have appealed to witnesses, anyone with information on the incident, or anyone who travelled on the road between 8.30pm and 9pm yesterday evening to contact Trim Garda Station on 046-9481540, the Garda Confidential Line 1800-666-111 or any garda station.", -1295,2017/2/17,http://www.rte.ie/news/2017/0216/853274-mccabe/,Source says McCabe file error was obvious,,"New information has emerged about the referral to Tusla relating to garda whistleblower Sergeant Maurice McCabe, which included a false serious child abuse allegation. This document was not in the Tusla file released to the McCabes as it had been retrieved by the counselling service under data protection rules. According to an informed source, the counsellor who made the referral has said the error occurred because she was using a template which contained details from another case and had failed to delete all the details of the previous case. It was not actually a pasting issue, as has been previously reported, but a failure by the counsellor to delete information relating to another case. It is understood the counsellor has said that she did not notice the error before she sent it to Tusla. However, according to a source who has seen the original document where what has been referred to as the cut and paste error was made, it should have been obvious to anyone reading it in Tusla that there was a mistake in this document as it actually contained the names of two alleged abusers. - -", -1296,2017/2/17,http://www.rte.ie/news/2017/0217/853353-workplace-death-kildare/,Man dies in Kildare workplace incident,,A man in his 40s has died in a workplace incident in Co Kildare. The incident happened at a distribution centre in a Naas business park at around 2.30am. The man's body is still at the scene. Garda�� and the Health and Safety Authority are investigating the death., -1297,2017/2/17,http://www.rte.ie/news/2017/0217/853312-garda-whistleblowers/,Garda welcomes inclusion in whistleblower inquiry,,"Garda Keith Harrison, one of the whistleblowers to be covered in the Charleton Tribunal of Inquiry, has welcomed his inclusion in the investigation. He said he has had a ""long and difficult battle"" to have his complaints investigated. Garda Harrison added that he trusts the inquiry will establish the truth. The D��il yesterday agreed, without a vote, the terms of reference of the inquiry, which will investigate an alleged smear campaign by senior garda�� against Sergeant Maurice McCabe. The inquiry also will include other garda whistleblowers. The allegations against Sgt McCabe will be prioritised and an interim report will be published in three months. Concerns raised over tribunal model Social Democrat TD R��is��n Shortall has said she fears ""we will regret the rush to pass the terms of reference through the D��il"". Speaking on RT?'s Morning Ireland, Ms Shorthall said the format that is being established ""opens up the possibility of a long-running and expensive tribunal""-that is not going to get to the root of what it is alleged to have occurred to Maurice Mc Cabe. She said there is a public demand for answers at an early stage and the fear of a tribunal is that is closes down any discussion or answers from Government. She said the tribunal-model is not the best way to investigate the allegations appropriately. Ms Shorthall has said that there is provision for the Garda S��och��na Ombudsman Commission (GSOC) to carry out a public interest investigation with external police officers to give answers in the short term to some of the questions of concern posed by Sgt McCabe. Ireland needs an anti-corruption agency to investigate matters like this, she said. She said people want to see those responsible brought to book and held responsible and this tribunal will not do that. She said reforming legislation should be looked at again concerning the length of tribunals, expenses and the right to legal representation.", -1298,2017/2/17,http://www.rte.ie/news/2017/0217/853311-civil-dialogue/,All-island Civic Dialogue meets today to discuss implications of Brexit,,"Taoiseach Enda Kenny will address a second session of an all-island conference on the impact of Brexit today.- The Civic Dialogue will hear the views of those most directly affected from across the island, as formal negotiations approach. It will also hear about the Government's work on its preparations for Brexit, the formal EU negotiations process and the economic impact.- There is still little clarity about Britain's future relationship with the European Union, just weeks before Prime Minister Theresa May plans to-trigger-the formal process to begin the exit process. The All-Island Civic Dialogue in Dublin Castle will hear from figures from the Government, Northern Ireland and the EU. Attendance is expected to be much higher than at-the first meeting in November. Live:-The Brexit all-island Civic Dialogue With the British government effectively having-committed itself to a hard Brexit,-the impact on Ireland is likely to be more significant than originally hoped. Speaking ahead of today's session, Minister for Finance Michael Noonan-denied that a change of Fine Gael leader would have any impact on Brexit negotiations.- Mr Noonan-said there was ""no vacancy"" for the position at present. But he added it was all part ""of the normal political process"".- Mr Noonan said leaders in Europe would ""not raise an eyebrow"".-", -1299,2017/2/17,http://www.rte.ie/news/world/2017/0216/853276-trump-adviser/,Trump pick reportedly turns down security adviser role,,"US President Donald Trump's choice for national security adviser, retired vice admiral Robert Harward, has turned down the offer, according to a Financial Times report. Mr-Harward was offered the job after Michael Flynn resigned on Monday for misleading Vice President Mike Pence over his conversations with Russia's ambassador to the United States. Two sources familiar with the decision said Mr Harward turned down the job in part because he wanted to bring in his own team. That put him at odds with Mr Trump, who had told Mr Flynn's deputy, KT-McFarland, that she could stay. At a press conference earlier today Mr Trump said Mr Flynn's actions were not wrong, but he was not happy with the way he gave information to Mr-Pence. Mr Trump said Mr Flynn was just doing his job in making a call to the Russian ambassador, but it was not acceptable that he said he could not remember the details of the call. ""I don't think he did anything wrong. If anything, he did something right,"" in talking to Russian officials, Mr Trump said. ""The thing is, he didn't tell our vice president properly and then he said he didn't remember."" - The-White House has admitted that Mr Trump was told three weeks ago-that Mr Flynn may have misled colleagues about his Kremlin contacts. The White House had painted Mr Trump's decision as based on Mr Flynn misleading the vice president. But it emerged on Tuesday that Mr Trump kept Mr Pence in the dark for two weeks. The president denied allegations that members of his election campaign team were in repeated contact with Russian officials, calling it ""fake news"". ""They know nothing about it. They weren't in Russia. They never made a phone call to Russia. They never received a phone call. It's all fake news,"" he said. He said he has asked the Justice Department to investigate intelligence leaks, calling them-""criminal leaks,"" put out by ""people in the agencies"". ""We're looking at them very serious. I've gone to all of the folks in charge of the various agencies, and we're --I've actually called the Justice Department to look into the leaks.""", -1300,2017/2/17,http://www.rte.ie/news/business/2017/0217/853339-dublin-airport/,Dublin Airport fastest growing airport in Europe in 2016,,"Dublin Airport was the fastest growing major airport in Europe last year, new figures show today. The figures from ACI Europe - the trade association for European airports - said that passenger numbers at Dublin Airport increased by 11.5% in 2016. That compared to growth of 11.2% at Barcelona's El-Prat Airport, 9.2% growth at Amsterdam's Schiphol Airport, 9.1% at Copenhagen Airport and 7.7% at Madrid Barajas. Dublin Airport saw almost 28 million passengers last year with growth coming on the back of 19 new routes launched last year. Additional capacity was also added on 31 existing routes.- ""Dublin Airport's passenger performance in 2016 was assisted by its growth as a gateway between Europe and North America,"" commented Dublin Airport's Managing Director Vincent Harrison.- ""Transatlantic traffic increased by 16% to a record 2.9 million passengers last year, while transfer passenger numbers were up 23% to a record 1.2 million,"" he added. Today's figures from ACI Europe show that London Heathrow was the busiest European airport last year as it saw a total of 75.7 million passengers using the airport, up 1% on 2015. It was followed by Paris Charles de Gaulle with 65.9 million passengers, Amsterdam Schiphol with 63.6 million passengers, Frankfurt with 60.7 million passengers and Istanbul Ataturk with 60 million passengers, which marked a decrease of 2.1%. European airports collectively processed more than 2 billion passengers last year, which was a new all-time record, according to ACI Europe Director General Olivier Jankovec.- ""While geopolitics and terrorism in particular played an increasing role in shaping the fortunes and misfortunes of many airports, the underlying story is one of continued growth and expansion - with passenger volumes growing in excess of 5% for the third consecutive year,"" Mr Jankovec said. ACI said the traffic growth across Europe was due to three main factors -- improving economic conditions, low oil prices, and airline capacity expansion.- Low cost carriers moving upmarket was also a key driver of passenger growth, it added. ACI also said today that European freight traffic increased by 4.1% last year. This was its best performance since 2010 and confirmed the improving economic conditions across Europe.", -1301,2017/2/17,http://www.rte.ie/news/2017/0217/853310-north-korea/,Kim's family must provide DNA before body released,,"Malaysia police will not release the body of the half-brother of North Korea's leader until his family has provided a DNA sample, despite North Korea's request that the body be returned. Selangor state police chief Abdul Samah Mat said-""So far no family member or next of kin has come to identify or claim the body. We need a DNA sample of a family member to match the profile of the dead person. ""North Korea has submitted a request to claim the body, but before we release the body we have to identify who the body belongs to,"" he added. Malaysia's deputy prime minister yesterday confirmed that the man who was killed at a Kuala Lumpur airport on Monday was Kim Jong-nam, the estranged sibling of the North Korean leader, Kim Jong-Un, referring to the passports carried by the man. Ahmad Zahid Hamidi also said Malaysia would be willing to accommodate a request from North Korea to return the body. Kim Jong-nam, 45, was believed to have been in Malaysia on a passport bearing the name Kim Chol, a known alias, according to South Korean media.", -1302,2017/2/17,http://www.rte.ie/news/2017/0217/853313-zealandia-new-zealand/,Researchers say New Zealand part of lost continent,,"New Zealand sits atop a previously unknown continent, mostly submerged beneath the South Pacific, which should be recognised with the name Zealandia, scientists have claimed. Researchers said Zealandia was a distinct geological entity and met all the criteria applied to Earth's seven continents: elevation above the surrounding area, distinctive geology, a well-defined area and a crust much thicker than that found on the ocean floor. In a paper published in the Geological Society of America's Journal, GSA Today, they said Zealandia measured five million square kilometres and was 94% underwater. The paper's authors said it had only three major landmasses, New Zealand's North and South Islands to the south, and New Caledonia to the north. The scientists, mostly from the official New Zealand research body GNS Science, said Zealandia was once part of the Gondwana super-continent but broke away about 100 million years ago. ""The scientific value of classifying Zealandia as a continent is much more than just an extra name on a list,"" they wrote. ""That a continent can be so submerged yet unfragmented makes it (useful)... in exploring the cohesion and breakup of continental crust."" Lead author Nick Mortimer said scientists have been gathering data to make the case for Zealandia for more than 20 years. But their efforts had been frustrated because most of it was hidden beneath the waves. ""If we could pull the plug on the oceans, it would be clear to everybody that we have mountain chains and a big, high-standing continent,"" he told TVNZ. While there is no scientific body that formally recognises continents, Mr Mortimer said he wanted Zealandia to become an accepted part of how the Earth is viewed. ""What we hope is that Zealandia will appear on world maps, in schools, everywhere,"" he said. ""I think the revelation of a new continent is pretty exciting.""", -1303,2017/2/17,http://www.rte.ie/news/2017/0217/853314-tesco/,Workers at eight more Tesco stores join strike,,"Eight more Tesco stores have joined industrial action by Mandate trade union members over contracts for long-serving workers hired before 1996. The supermarket chain has taken out advertisements in national newspapers apologising to customers for any inconvenience caused.- It says that all stores remain open for customers. It also pointed out it is the only food retailer to recognise trade unions in all of its stores. Mandate members at eight other Tesco stores began an indefinite strike on Tuesday.- Twenty-three-stores will be balloted for strike action from Monday.- Yesterday, Tesco agreed to enter talks ""without prejudice"" with a view to settling the current dispute, which was welcomed by Mandate.-", -1304,2017/2/17,http://www.rte.ie/news/2017/0216/853250-hiqa-louth/,HIQA issues closure notices to Louth facility,,"Four of the eight residential units at a St John of God facility in Co Louth have been deemed not fit for purpose by the Health Information & Quality Authority. HIQA has issued notices of proposal to close the four units at the St John of God campus in Drumcar, RT? Investigates has learned. The organisation has 28 days to appeal. HIQA said in a statement that because of ""ongoing serious concerns for the safety and care of residents"" ... it ""initiated an enforcement process ... to safeguard the residents"". Among-the major concerns raised is that some residents are being removed from a residential unit for up to 12 hours a day to protect them from assault by another resident. This issue was highlighted by HIQA Inspectors as long ago as May 2016 when they found that ""because of behavioural issues"" one of the residents presented with ""two [other] residents could only access their home when this resident was in bed"". The inspectors wrote that this was ""not in any way meeting the assessed needs of any of the three residents"". In a subsequent inspection nine months later, HIQA found the practice continues. A spokesperson for the SJoG said that the priority was the safety of the residents but that the practice of moving residents from their homes over a prolonged period was unacceptable. The Drumcar facility was at the centre of controversy last year after it was revealed residents were charged for medical services and equipment that St John of God should have paid for. According to a HIQA report: ""residents were being charged substantial sums of money for furniture, medical aids and medical appointments"". One resident ""assessed as needing a body brace was charged �152 for this specialist medical appliance"".- Another was charged �1,499 for a specialised armchair and a dexa bone density scan. At the time St John of God said it had ceased the practice and started repaying money into the residents""?accounts. However, a HIQA report found that the practice continued despite earlier warnings and RT? Investigates understands that HIQA has now reported the matter to garda��. The latest report found that a resident at Rivergrove House, which is part of the Drumcar service but off the main campus, had money withdrawn from their bank account to pay for a medical device that SJoG should have supplied. The spoksperson for SJoG said that ""it can't be explained away, it can't be excused away, it did happen and it was wrong"". Paddy Connolly, the CEO of Inclusion Ireland said ""it is totally unacceptable that a service is using residents' money to shore up where they have shortcomings in their own funding"". Drumcar has been a focus for HIQA inspections in recent years - the agency has carried out 42 inspections there since 2014. In 2015, one unit, comprising of two chalets, was closed following a HIQA inspection Frontline staff are generally praised in inspection reports, but not the physical facilities at Drumcar. There is wide agreement that institutions like Drumcar are not suitable homes for those with intellectual disabilities. -In June 2011 a major HSE report envisaged all residents being moved from institutional settings across Ireland mainly into community houses by 2018. Progress has been very slow. In the meantime there is little evidence of significant investment in the Drumcar campus and there are complaints about cutbacks to some St John of God services in the Northeast. Concerns have been raised about more than service gaps. There was an angry reaction when the Daily Mail reported last year that SJoG CEO John Pepper in 2013 received on top of his salary of �182,000 a payment of �149,000 to buy out a pension obligation. The payment is being investigated, as a possible breach of public pay rules by the HSE, which provided �131m to St John of God Community Services in 2015. The HSE says that audit is near completion.", -1305,2017/2/23,http://abcnews.go.com/Politics/education-secretary-betsy-devos-slams-obamas-transgender-bathroom/story?id=45690307,Education Secretary Betsy DeVos slams Obama's transgender bathroom rule as 'overreach',,"Education Secretary Betsy DeVos said she supports President Trump's rollback of Obama administration guidelines on transgender students' choice of bathrooms in schools. During a Q&A at the annual Conservative Political Action Conference (CPAC) on Thursday, DeVos said the previous president's guidance issued last year to public schools was a ""very huge example of the Obama administration's overreach."" She said, however, ""It's our job to protect students"" and ""to protect personal freedoms."" This is a developing story. Please check back for updates.", -1306,2017/2/23,http://abcnews.go.com/Entertainment/stars-speak-trump-rescinds-transgender-student-protections/story?id=45684471,Stars speak out after Trump rescinds transgender student protections,,"Celebrities are voicing their opposition to the Trump administration's decision to roll back protections for transgender students. Stars took to social media on Wednesday after the Trump administration withdrew guidelines issued by former President Obama that directed public schools to allow transgender students to use bathrooms and locker rooms that match their gender identity. Some celebrities reacted in disgust and anger. Others expressed disappointment coupled with a renewed commitment to fight what they see as discrimination. Here are some responses: Just seeing the news about removing laws protecting trans people. This isn""t about politics. It's about human rights, and it's not okay. For anyone who feels scared or hopeless, know that we will never stop fighting for your rights. This is disgusting. This is unacceptable. I #StandWithGavin and every Trans person who deserve nothing less than protection and equality. https://t.co/IK5TO8nWQ8 To my trans community, stay hopeful and stand united! #ProtectTransKids ?????? pic.twitter.com/HWRsN5hwbm #protecttranskids #StandwithGavin Trans people have a right to exist in public space with equal access.#TransIsBeautiful #TransRightsAreHumanRights #translivesmatter A post shared by laverne cox (@lavernecox) on Feb 23, 2017 at 6:24am PST We need to protect trans youth and stand up against this cruelty that hurts our kids. Support @Translifeline Oh yeah! Because #trans students are the REAL threat. Jesus. #LGBT #LGBTQ #wtf @BetsyDeVosED @jeffsessions https://t.co/pAuKNl17we To young trans folk: Remember this is your school too. You deserve equal access, affirmation & education. You belong. Nothing is wrong w you I am obviously disappointed in the @POTUS decision to send the #transgender bathroom issue to the states to decide. #sisterlove . @realDonaldTrump u gave me the honor 2 sing at your inauguration. Pls give me & my sis the honor 2 meet with u 2 talk #transgender rghts ? ", -1307,2017/2/23,http://abcnews.go.com/Politics/trumps-reversal-transgender-bathroom-guidance-contradicts-past-claims/story?id=45678113,Trump's reversal of transgender bathroom guidance contradicts his past claims of support,,"Just last month the White House said Donald Trump is ""respectful and supportive of LGBTQ rights,"" but following Wednesday's reversal of Obama-era guidance directing schools to allow transgender students to use the bathroom that matches their gender identity, the president's alleged affinity for such rights has been questioned. In fact, it's a bit of a turnaround for the president, who has spoken relatively positively about the LGBT community in recent months. ""President Donald J. Trump is determined to protect the rights of all Americans, including the LGBTQ community,"" the White House said in a statement in late January, to assure the LGBT community that he would continue to enforce an Obama-era executive order protecting the rights of LGBT federal employees and contractors. ""President Trump continues to be respectful and supportive of LGBTQ rights, just as he was throughout the election. The statement added, ""The President is proud to have been the first ever GOP nominee to mention the LGBTQ community in his nomination acceptance speech, pledging then to protect the community from violence and oppression."" And Trump was also relatively supportive of the LGBT community during the campaign. When asked during a TV interview in April if Olympian-turned-reality TV star Caitlyn Jenner would be free to use any bathroom at Trump Tower, the then-presidential candidate said, ""That is correct."" Those comments came while North Carolina's so-called bathroom bill -- that banned people from using bathrooms didn""t match the sex indicated on their birth certificate -- was being hotly debated. During the same aforementioned interview, Trump said transgender individuals in North Carolina should be able to ""use the bathroom they feel is appropriate."" He added that state lawmakers should ""leave it the way it is."" A couple of months later, at a rally in June in Dallas, Trump proclaimed ""the LGBT community is starting to like Donald Trump very, very much lately."" As for his position on same-sex marriage, Trump has been a bit contradictory. During an interview with ""60 Minutes"" last November, Trump said he was ""fine"" with same-sex marriage as the law of the land. ""These cases have gone to the Supreme Court,"" he said. ""They've been settled. And I'm fine with that. It was settled in the Supreme Court. I mean, it's done."" But during the Republican presidential primaries, he said the gay marriage issue should have been left to the states and that he would consider appointing judges to overrule the Supreme Court's marriage decisions. ""I would strongly consider that, yes,"" he said in a January 2016 Fox News interview.", -1308,2017/2/23,http://abcnews.go.com/Politics/justice-department-reverses-obama-guidance-reducing-private-prisons/story?id=45696324,Justice Department reverses Obama guidance on reducing private prisons,,"Attorney General Jeff Sessions has rescinded an Obama-era memo aimed at reducing and ultimately ending the Justice Department's use of private prisons. The memo, penned in August 2016 by former Deputy Attorney General Sally Yates -- who was fired by President Trump last month after she refused to defend his immigration order -- suggested that private correctional facilities ""compare poorly"" to federal facilities, and instructed officials to begin ""the process of reducing, and ultimately ending, our use of privately operated prisons."" Citing declining inmate numbers and an Inspector General's report showing private institutions experience more security incidents per capita than government-run prisons, Yates directed the Bureau of Prisons to decline to renew private contracts, or ""substantially reduce"" their scope. In his letter to the Bureau of Prisons, however, Sessions claimed Yates' guidance ""changed long-standing policy and practice, and impaired the Bureau's ability to meet the future needs of the federal correctional system,"" and directed officials to ""return to its previous approach."" ABC News' Jack Date and Mike Levine contributed to this report.", -1309,2017/2/23,http://abcnews.go.com/International/pentagon-review-isis-strategy-lay-options-accelerate-fight/story?id=45692629,Pentagon review of ISIS strategy will lay out options to accelerate fight,,"The Pentagon is expected to deliver a review of its ISIS strategy to the White House early next week that will include new recommendations for how to defeat the group. On Jan. 28, President Trump issued an executive order that gave Defense Secretary James Mattis 30 days to develop the review. ""We'r on track to deliver it on time,""?Pentagon spokesman Capt. Jeff Davis told reporters Tuesday, adding that any public rollout would only occur after the report was reviewed privately by the president. The new recommendations from the Pentagon were done in consultation with other departments, the intelligence community, and military commanders on the ground and at the Pentagon, according to Davis. ""This is going to be a comprehensive whole of government plan that's going to address not only the core ISIS in Iraq and Syria issue, but it's going to address the other areas where ISIS has sprung up,""?Davis said. ""And it will include all manner of things, diplomacy, and information, intelligence.""? The current U.S. strategy is to put pressure on ISIS from multiple fronts ""? assisting Iraqi forces in the retaking of Mosul while also preparing for an offensive in Raqqa, ISIS""?de facto capital in Syria. The U.S. has also taken military action against ISIS in Libya and Afghanistan. Gen. Joseph Votel, the head of U.S. Central Command, told reporters Wednesday on a trip to the region that ""simultaneous pressure on the Islamic State and continuing to present them with lots of dilemmas""?has been successful. But having a new administration in the White House provides an opportunity to assess what could be done differently. It's a moment former Vice Adm. Robert Harward, who served as deputy commander of U.S. Central Command from 2011 to 2013, called a ""reflection point.""?Harward, who last week turned down an offer from President Trump to serve as his national security adviser, said the new administration can take a ""Hresh look at the problem.""?""We may have a wider range of options that the U.S. is willing to support or initiate,""?he told ABC News today. Harward is an ABC News contributor. In addition to reviewing specific military options to change conditions on the ground, a broader issue will be building a coalition of willing support, Harward said. ""If you have a broader coalition, stronger, more nations involved willing to commit, it puts a lot of pressure on those nations who are not cooperating or staying outside the fold,""?he said, adding, ""It's as much political as anything else.""?Gen. Joseph Dunford, the chairman of the Joint Chiefs of Staff, emphasized the political aspect of the plan as well. ""This plan is a political-military plan, it is not a military plan,""?he said during a rare public appearance at the Brookings Institution Thursday. ""Anything we do on the ground has to be in the context of political objectives or it's not going to be successful.""?According to Dunford, the plan will be framed beyond just dealing with ISIS in Syria and Iraq, addressing a ""grans-regional threat""?that includes al-Qaeda and other groups. ""I'm in the business of providing the President with options and we'r prepared to do that. We're been given a task to go to the President to accelerate, accelerate the defeat of ISIS specifically, but obviously other violent extremist groups as well,""?Dunford said. "" we'll go with him a full of range of options from which he can choose.""?""the president has been very direct. He wants to be as aggressive as possible, and I applaud that,""?Harward said of the ISIS strategy review. ""I think that, in and of itself, will strengthen the coalition and bring more assets to bear throughout the region and other ways as necessary.""?ABC News looks at some of the specific options the Pentagon could present to the president on how to accelerate the fight against ISIS, according to experts and US officials. The U.S. has 500 special operations troops operating inside Syria, but one option the Pentagon could present is upping that number to assist Syrian Democratic Forces (SDF) and Turkish forces. The SDF includes multiple ethnic forces including Kurds and Arabs. These American troops would not be placed in direct combat, but serve as enablers who could facilitate operations between the SDF and Turkish forces preparing for the offensive to retake Raqqa, US officials said. While Turkey has not yet agreed to work with the SDF in that fight, the US is discussing what role they could play. American troops could provide a stabilizing security presence for the rival sides. (Talking to reporters last week in Baghdad, Mattis said of having a strong Turkish element in the Raqqa fighting force, ""We'r still sorting it out.""? ""I am very concerned about maintaining momentum,""?Votel said. ""It could be that we take on a larger burden ourselves. That's an option,""?he added. A proposal for additional American troops, which could number as many as a few thousand according to US officials, would not necessarily be for special operations forces. A conventional brigade could bring its own infantry troops, artillery equipment, and intelligence units. ""We want to bring the right capabilities forward,""?Votel said. ""not all of those are necessarily resident in the Special Operations community. If we need additional artillery or things like that, I want to be able to bring those forward to augment our operations.""?While Harward would not comment on the specific troop numbers, he did caution that in certain instances, having U.S. troops on the ground can be ""Counterproductive""?because of major cultural and language challenges as opposed to their Arab and Turkish counterparts. Another option could be sending additional support to the SDF, such as sending in Apache attack helicopters when needed, U.S. officials said. While the Obama administration decided to leave the decision of arming the Kurds to the Trump administration, President Obama did approve the use of three Apaches to support Turkish forces fighting for the city of al-Bab, northwest of Aleppo. While approved, the Apaches have not yet been deployed to Syria. According to U.S. officials, support could also come in the form of regular artillery or HIMARS, a long range artillery rocket system. HIMARS have already been used to good effect against ISIS in Turkey, Jordan, and Iraq, so this system could be beneficial in Syria. Currently airstrikes go through a rigorous vetting process to ensure there are no civilian casualties from a strike. While maintaining that standard remains a priority, US officials say an additional way to accelerate the fight against ISIS is changing those rules of engagements ""?the directives governing how force is applied ""?so that local commanders can approve lower level strikes, giving them more flexibility and the ability to act more quickly. ""those rules of engagement can be limiting,""?Harward said, adding that any changes would be reviewed in line with a change in strategy. For instance, if additional US troops are in Syria, it becomes appropriate to lower airstrike approval thresholds there because of the trusted intelligence on the ground, he said.", -1310,2017/2/23,http://abcnews.go.com/International/secretary-state-rex-tillerson-strong-countries-differences/story?id=45690306,Homeland Security chief John Kelly: There will be 'no mass deportations',,"Just hours after President Donald Trump described his new deportation policies as ""A military operation,""?Secretary of Homeland Security John Kelly criticized the media for using that term and insisted there will be no ""mass deportations."" Kelly, along with Secretary of State Rex Tillerson, is in Mexico City for a brief trip, meeting with President Enrique Pena Nieto and his Cabinet amid heightened tensions over the U.S.'s new immigration policies, heated rhetoric and insistence that Mexico will pay for a border wall. ""no, repeat, no, use of military force in immigration operations. None,""?said Kelly in a brief press statement alongside his Mexican counterpart. ""At least half of you try to get that right because it continually comes up in the reporting.""?Earlier in the day, President Trump told reporters his administration was getting ""gang members,""?""drug lords,""?and ""really bad dudes out of this country""?at a roundtable with manufacturing CEOs. ""We're getting really bad dudes out of this country, and at a rate that nobody's ever seen before. And they're the bad ones. And it's a military operation because what has been allowed to come into our country, when you see gang violence that you've read about like never before, and all of the things -- much of that is people that are here illegally,""?he said. White House press secretary Sean Spicer later clarified that Trump was using the description ""as an adjective"" and that the process is ""happening with precision"" and in a ""streamlined manner."" Kelly also announced that there will be ""no, repeat, no mass deportations""?despite concerns that new DHS memos opened the door for law enforcement to deport anyone without legal documentation that they encounter. ""Everything we do in DHS will be done legally and according to human rights and the legal justice system of the United States,""?he said. ""All of this will be done, as it always is, in close coordination with the government of Mexico,""?he added. Before Kelly spoke, Tillerson made a rare public statement, saying he and Kelly had productive meetings with their Mexican counterparts and addressed those differences between the two neighbors. ""during the course of our meetings, we discussed the breadth of challenges and opportunities in the U.S.-Mexico relationship,""?he said, standing alongside Mexican Foreign Secretary Luis Videgaray. ""In our meetings, we jointly acknowledged that in a relationship filled with vibrant colors, two strong sovereign countries from time to time will have differences."" He added: ""We listened closely and carefully to each other as we respectfully and patiently raised our respective concerns.""?The amicable tone was shared by Videgaray, but he also made a point to highlight those differences. ""In a moment where we have notorious differences, the best way to solve them is through dialogue,""?he said. Tillerson has been notably quiet since he was sworn in last month. The former ExxonMobil CEO has not done an interview or held a press conference, and the department has not resumed its daily briefing for reporters -- a fixture at Foggy Bottom that goes back to the Eisenhower administration -- since he took office. The silence has generated headlines that Tillerson and the State Department have been sidelined by a White House that has centralized power, especially on foreign policy decisions. Tillerson did not participate in White House meetings with foreign leaders last week. And top posts at the State Department have still not been filled over a month after inauguration, including the secretary's deputy. The trip abroad is the first for Kelly and the second for Tillerson, although it is his first one-on-one visit to a foreign country -- a sign of how important the relationship is, according to the State Department. ABC News' Jordyn Phelps contributed to this report.", -1311,2017/2/23,http://abcnews.go.com/International/landing-gear-plane-carrying-59-collapsed-touchdown-airport/story?id=45694033,"Landing gear on plane carrying 59 collapsed during touchdown, airport says",,"It was a rocky and scary landing for passengers on board a Flybe flight arriving in the Netherlands today from Edinburgh, Scotland. ""Flybe can confirm that there has been an incident involving one of our aircraft,"" the airline said in a statement. ""The incident occurred at Amsterdam Schiphol Airport at approximately [4:59 p.m.] local time."" In a statement, the airport said the plane's landing gear ""collapsed during touchdown,"" with 59 people on board. ""Nobody is injured,"" and the ""cause of the incident is being investigated,"" the statement said. Plane makes emergency return to airport after hitting deer during takeoff Flybe said all passengers on board the Bombardier Q-400 had been transported to the airport terminal. ""All 59 passengers who were on board have now left the airport to continue their journeys,"" Flybe said. In a statement, Flybe CEO Christine Ourmieres-Widener said: ""The safety and well-being of our passengers and crew is our greatest concern. ... We will now do all we can to understand the cause of this incident and we have sent a specialist team to offer any assistance it can to the investigation."" Crash landing @Schiphol Edinburgh to Amsterdam Flight BE1284 @BBCScotlandNews @BBCBreaking @SkyNews @STVNews @flybe @airlivenet #StormDoris pic.twitter.com/ueLa3C5fBu ", -1312,2017/2/23,http://abcnews.go.com/US/police-riot-gear-enter-main-protest-camp-dakota/story?id=45684166,Dakota Access pipeline protest site cleared after police in riot gear enter main camp,,"The protest site for the Dakota Access pipeline has been cleared after some demonstrators refused to leave Wednesday, when a deadline for evacuation passed. The Oceti Sakowin camp was cleared as of 2:09 p.m. local time, a spokesperson for the North Dakota Joint Information Center told ABC News. Lt. Tom Iverson of the North Dakota State Patrol said at an afternoon press conference that 33 arrests were made today. About 200 law enforcement officers clad in full riot gear entered the main encampment for those protesting the Dakota Access pipeline near Cannonball, North Dakota, where some people remained despite state and federal orders to leave. ABC News observed lines of military-style Humvees entering the camp, which is at the edge of the Standing Rock Sioux Tribe reservation. Officials said most people left the soggy campsite peacefully on Wednesday before the 2 p.m. deadline, amid concerns about spring flooding. But as many as 50 people remained there Wednesday night, and authorities were still deciding this morning how to remove them. Activists protesting the four-state Dakota Access crude oil pipeline told ABC News on Wednesday that they are committed to staying and estimated that dozens would remain in the Oceti Sakowin camp. On Wednesday, 11 people were arrested outside the camp at its main entrance, outside a barrier put up http://cms.abcnews.go.com/SiteEditor/index.htm#by protesters to keep out authorities. Those who were arrested were charged with obstruction of a government function, a class B misdemeanor, Gov. Doug Burgum said at a news conference that night. The protesters lit about 20 fires on Wednesday, which were characterized as ceremonial, with many saying they would rather burn camp structures than have authorities seize and destroy them. Two people in the camp were injured as a result of the fires, including one person with severe burns who had to be airlifted to Minneapolis for treatment. Burgum set up a travel assistance center to offer camp residents water, snacks, a food voucher, a personal hygiene kit, a health and wellness assessment, hotel lodging for one night, a taxi voucher to local bus terminal and bus fare for a return trip home, and transportation was provided from the Oceti Sakowin camp to the assistance center in Bismarck. ""This free service will provide protesters with support as they prepare for their return home,"" Burgum's office said in a Facebook post on Tuesday night. ""All camp residents are encouraged to take advantage of these amenities."" Last week Burgum signed an emergency evacuation order for the camp that reaffirmed a Feb. 22 deadline set by the U.S. Army Corps of Engineers. The Standing Rock Sioux Tribe began coordinating a cleanup in late January, but state officials said it wasn't happening fast enough. The governor's emergency evacuation order cited increasing temperatures and the threat of flooding as the impetus for accelerating the camp's cleanup. ""Warm temperatures have accelerated snowmelt in the area of the Oceti Sakowin protest camp, and the National Weather Service reports that the Cannonball River should be on the watch for rising water levels and an increased risk of ice jams later this week,"" the statement from Burgum's office read. ""Due to these conditions, the governor's emergency order addresses safety concerns to human life, as anyone in the floodplain is at risk for possible injury or death. The order also addresses the need to protect the Missouri River from the waste that will flow into the Cannonball River and Lake Oahe if the camp is not cleared and the cleanup expedited,"" the statement added. The Cannonball River is a tributary of the Missouri River. The 1,172-mile Dakota Access pipeline is nearly finished, except for a 1.25-mile segment, part of which will run under Lake Oahe, a Missouri River reservoir in just upstream of the Standing Rock Sioux Tribe reservation. Construction of this final phase has been the focus of a contentious legal battle and massive protests in recent months. While the Army Corps says this area is federally owned land, the Standing Rock Sioux Tribe cites an 1851 treaty that it says designates the land for Native American tribes. The tribe, which claims its members were never meaningfully consulted before construction began, sued in July to block the pipeline. That lawsuit is pending, and the Army Corps and the company behind the pipeline argued in court papers that they followed a standard review process. The Standing Rock Sioux Tribe has been at the forefront of the fight against the $3.8 billion Dakota Access pipeline. The protests have drawn thousands of Native Americans, environmental activists and their allies to the Standing Rock Sioux Tribe reservation. The protesters, who call themselves water protectors, argue that the pipeline will threaten the reservation's water supply and traverse sacred sites. Kelcy Warren, the CEO of Energy Transfer Partners, the Texas-based developer behind the project, has said that ""concerns about the pipeline's impact on local water supply are unfounded"" and ""multiple archaeological studies conducted with state historic preservation offices found no sacred items along the route."" ABC News' David Caplan, Joshua Hoyos, Tom Kutsch, Luis Martinez, Bartley Price, Darren Reynolds, Evan Simon and Catherine Thorbecke contributed to this report. This is a developing story. Check back for updates.", -1313,2017/2/23,http://abcnews.go.com/Politics/wireStory/trump-vows-fight-epidemic-human-trafficking-45692628,Trump vows to fight 'epidemic' of human trafficking,,"President Donald Trump says he will bring the ""full force and weight"" of the U.S. government to combat an ""epidemic"" of human trafficking. The president is meeting at the White House with senior advisers and representatives of organizations that deal with trafficking. His daughter, Ivanka Trump, is among those in attendance. Trump calls human trafficking a problem that is ""not talked about enough."" He says he will order the departments of Justice and Homeland Security to take a hard look at the resources they are devoting to addressing the issue.", -1314,2017/2/23,http://abcnews.go.com/Politics/wireStory/nyc-lowers-cost-estimate-presidential-protection-45682657,NYC lowers cost estimate for presidential protection,,"New York City has lowered its cost estimate for guarding President Donald Trump, his family and their Manhattan residence. Police Commissioner James P. O'Neill has written to New York's congressional delegation to seek reimbursement. He says it cost about $24 million to guard the Trumps and Trump Tower during the 2? months between Election Day and Inauguration Day. The original estimate was $35 million. When the president is not in New York City, the department estimates that it costs $127,000 to $146,000 a day to protect the first lady and their son. If Trump is in New York City, the police department puts the estimate at $308,000 a day. The New York Times ( http://nyti.ms/2mohohI ) notes that Trump has not yet returned to the city since his inauguration.", -1315,2017/2/23,http://abcnews.go.com/US/wireStory/police-dna-profile-killer-runner-massachusetts-45689502,Police have DNA profile of killer of runner in Massachusetts,,"Authorities investigating the death of a New York City woman killed while out running near her mother's Massachusetts home last summer now have a DNA profile of the suspect, a district attorney said Thursday. Based on the profile, and tips from the public, the suspect in the slaying of Vanessa Marcotte is a Hispanic or Latino man, about 30 years old, with light- to medium-toned skin, an athletic build, and is either balding or has short hair, Worcester District Attorney Joseph Early Jr. said during a news conference. ""There are people that have perceptions, for example, of what that person might have looked like, what race he might be, we're kind of narrowing this down, tailoring this to this specific person that we're looking for,"" Early said. He did not say how the DNA was recovered, but said it has been compared to national criminal DNA databases without success. Marcotte, 27, was killed Aug. 7 while visiting her mother in the small town of Princeton in central Massachusetts. Her body was found in woods about a half-mile from her mother's home. Marcotte grew up in nearby Leominster and worked as an account manager for Google in New York. The suspect likely would have had scratches on his face, neck, hands and arms after the attack, and was thought to be driving a dark-colored SUV. Early urged anyone who knows someone who fits the description to call police. Investigators have already received about 1,300 tips, he said.", -1316,2017/2/23,http://abcnews.go.com/US/winter-storm-bring-swath-snow-great-plains-midwest/story?id=45683125,Winter storm to bring swath of snow to the Great Plains and Midwest,,"A winter storm may bring a swath of heavy snow and damaging winds to parts of the Great Plains and Midwest. The storm dumped up to 78 inches of snow in the Sierra Nevada mountain range in northern California on Wednesday. The weather system moved through the Rocky Mountains today, producing heavy snow in Montana, Wyoming, Utah and Colorado, according to ABC News meteorologists tracking the storm. Winter weather alerts stretch from California to Vermont. Blizzard warnings were in effect for the Rocky Mountains today while blizzard watches were issued for the Upper Midwest region Friday. The powerful storm is expected to sweep into the Upper Midwest region by Friday morning, bringing blizzard conditions and heavy snow from Nebraska to Wisconsin. ""As of right now, looks like the heaviest snow will be from Minneapolis and south,""?said ABC News senior meteorologist Max Golembo. By Friday night, the system is expected to hit warm and unstable air in the Great Lakes and Ohio Valley region, which could produce severe storms with damaging winds, hail and even a few tornadoes. Forecasters said the Upper Midwest and Great Lakes regions could see up to a foot of snow. But some spots like southern Minnesota could get as much as 18 inches of snow. ABC News' Max Golembo contributed to this report.", -1317,2017/2/23,http://abcnews.go.com/Politics/nyc-police-head-reminds-officers-deporting-immigrants-public/story?id=45684167,NYC police head reminds officers not to help in deporting immigrants unless public safety at risk,,"The Trump administration's pursuit of unauthorized immigrants may have hit a wall in New York City. City Police Commissioner James O""�Neill told officers in an internal memo that the department would not enforce administrative warrants issued by federal immigration agents. ""It is critical that everyone who comes into contact with the NYPD, regardless of their immigration status, be able to identify themselves or seek assistance without hesitation, anxiety or fear,"" O""�Neill wrote in the memo obtained by ABC News. ""The NYPD does not conduct civil immigration enforcement,"" the memo to rank-and-file officers said. ""Specifically, this department does not enforce administrative warrants issued by Immigration and Custom Enforcement agents or federal immigration judges solely in connection with civil immigration violations.""?O""�Neill's memo doesn""t represent any change in NYPD policy. But in light of a federal plan for more aggressive immigration enforcement, New York City's police commissioner wanted to clarify his department's policy, both to alleviate any concerns in the city's immigrant communities and to remind police officers, sources told ABC News. Still, the NYPD policy may put the nation's largest police force at odds with the federal Department of Homeland Security, which this week outlined a more aggressive approach to enforcing the nation's immigration laws. One of two Homeland Security memos issued this week loops other levels of law enforcement into federal immigration efforts, citing a portion of the U.S. Immigration and Nationality Act that ""authorizes state or local law enforcement personnel to perform all law enforcement functions ... including the authority to investigate, identify, apprehend, arrest, detain, transport and conduct searches of an alien for the purposes of enforcing the immigration laws."" O'Neill specified in the NYPD memo that while New York City officers ""do not enforce administrative warrants"" over civil immigration violations, they should detain people who pose danger to the public. ""For example, the NYPD does not arrest or detain individuals for immigration violations such as overstaying a lawfully-issued visa. However, the NYPD does and will continue to honor federal immigration detainers when there is a risk to public safety,"" it states.", -1318,2017/2/23,http://abcnews.go.com/US/hearing-retired-cop-shot-moviegoer-puts-floridas-stand/story?id=45654455,Hearing of retired cop who shot moviegoer puts Florida's Stand Your Ground law back in the spotlight,,"Vivian Reeves was emotional as she testified Wednesday before a judge at her husband's hearing in Florida, attesting that her husband, Curtis Reeves, a retired Tampa police captain, had his head in his hands after he shot a fellow moviegoer over a disagreement about a cellphone in January 2014. Curtis Reeves is accused of fatally shooting Chad Oulson. The shooting allegedly happened after Oulson threw popcorn at the Reeves for being told to put away his cellphone during the movie's previews. ""It happened very quickly, and [Oulson's] whole upper body just came forward, and I thought that he was coming over,""?Vivian Reeves testified. If a Pasco County, Florida, judge determines that Reeves was acting in self-defense and his case meets Florida's Stand Your Ground law criteria, he will be immune from criminal prosecution and civil action in connection with the deadly shooting, according to The Associated Press. If not, he will be tried on a second-degree murder charge for the death of Oulson. Florida's Stand Your Ground law allows residents to use force, including deadly force, if they ""reasonably believe"" they are at risk of death or great bodily harm. The law specifies that people have ""no duty to retreat"" if they feel threatened. Reeves' lawyer has invoked the Stand Your Ground law. He argues video from the movie theater shows that Oulson attacked Reeves first and that Reeves acted in self-defense, the AP said. Oulson's widow, Nicole, told ABC News in 2014 that her husband was texting the babysitter, who was watching their young daughter. ""It was a couple of words. No threats. No harm. No nothing,"" she said. On April 26, 2005, Florida Gov. Jeb Bush signed the first Stand Your Ground into law. Republican Florida lawmaker Dennis Baxley, who co-authored the bill which was supported by the NRA, told ABC News this week that the law was inspired in part by an uptick in crime after many hurricanes in the state. ""We had a lot of properties that were open and people living in FEMA trailers,"" he said. He remembered one situation in which a man ""was in his FEMA trailer with his wife in front of their property, and they had an intruder in the night which he shot and killed."" When Stand Your Ground was signed into law, it wasn't controversial, Baxley claimed. ""We had bipartisan support. [It was] unanimous in the Florida senate. Only 20 people in the Florida house opposed [it],"" he said. The measure passed the Florida Senate 39-0 and the House 94-20. Arthenia Joyner was one of the Democratic lawmakers who opposed Stand Your Ground. She told ABC News today it was ""A big debate back in 2005"" and the law still leaves her with the same ""fears that I had back in 2005."" ""It hurts the chances for minorities to receive justice,"" she said. Traditionally, a defendant who invokes self-defense is required to first retreat and avoid the deadly encounter if possible, Kenneth Nunn, a professor at University of Florida's Levin College of Law, told ABC News. But Stand Your Ground ""modifies"" that, he said, by telling Floridians they do not have to retreat first and ""can use deadly force if it is reasonable."" ""What could've happened in [Reeves'] case is Reeves could have turned around and walked away. Without Stand Your Ground we would say the person has to retreat ... but the law says he doesn't have to do that,"" Nunn explained. Additionally, Stand Your Ground gives the defendant a chance to claim immunity from prosecution. ""If you can claim Stand Your Ground you can't be prosecuted at all,"" Nunn said. ""The way we determine whether you can claim Stand Your Ground is through a pre-trial hearing. At the pre-trial hearing the defendant has to show ... they're entitled to the Stand Your Ground rule. [The defendant must show] they believe that they were under a threat of deadly force ... and it was reasonable [for them to use deadly force]."" If the defendant can prove he or she acted in self-defense, then no charges can be brought, Nunn said. Former National Rifle Association president Marion Hammer, who said she worked with sponsors to ""perfect the law,"" told ABC News that ""the very idea that when you're under attack that you should have to turn your back on an attacker and run away before defending yourself flies in the face of justice and the constitution."" She continued, ""Stand Your Ground law is about protecting innocent people from overzealous prosecutors and courts that have become more interested in convictions than justice."" Nunn did point out that state lawmakers are currently trying to amend the controversial law. ""there's a statute that has been introduced into the state legislature shifting the burden of proof to the prosecution ... if this law passes, the burden will shift to the prosecution""?(to prove that the defendant cannot claim Stand Your Ground) and away from the defendant, he said. Florida was the first to institute a Stand Your Ground law in 2005. Since then, more than 22 states have enacted similar laws. Roy Bedard, a use of force and defensive tactics expert, explained why other states followed Florida's lead. ""It wasn't just Florida having these [crime] problems ... it seemed to be sensible to these other states,"" he said. He added, ""Other states wanted to see how it worked out in Florida [and] it spread like wildfires across the U.S."" Everytown for Gun Safety, an independent organization working to reduce gun violence in the U.S., calls Stand Your Ground laws ""a threat to public safety."" ""These laws encourage armed vigilantism by allowing a person to kill another person even when they can clearly and safely walk away from the danger, and even in public areas,"" Everytown says on its website. The rate of homicides, especially homicides by firearms, sharply increased in Florida after the Stand Your Ground was passed, according to a study published in November 2016 by the Journal of the American Medical Association Internal Medicine. The study's authors, however, acknowledged that multiple factors may have led to an increase in the Florida homicide rate. ""Circumstances unique to Florida may have contributed to our findings, including those that we could not identify,"" they wrote. Baxley disputed the findings and argued that Americans should not be ""panicking over"" law-abiding citizens. ""They are not a threat to anybody and the firearm is not dangerous in the hands of that person,"" he said. ""No one should be beaten, raped or murdered, robbed and feel like they couldn""t defend themselves or they might be in trouble."" Before Reeves' hearing this week, there were two cases in particular that propelled Florida's self-defense laws on to the national stage: George Zimmerman, who was accused of fatally shooting 17-year-old Trayvon Martin, and Michael Dunn, who was accused of fatally shooting 17-year-old Jordan Davis at a Florida gas station in 2012. Neither Zimmerman nor Dunn invoked the state's Stand Your Ground law because ""in both cases the defendants argued that deadly force was used because they 'reasonably' believed that it was necessary to prevent imminent death or great bodily injury. That is, at its core, no different than the law in almost every other state,"" according to Dan Abrams, ABC News' legal analyst. Zimmerman was acquitted of second-degree murder. Dunn was ultimately convicted of murder and sentenced to life in prison without the possibility of parole. Following the Zimmerman acquittal, then-Attorney General Eric Holder addressed the NAACP's annual convention, saying, ""It's time to question laws that senselessly expand the concept of self-defense and sow dangerous conflict in our neighborhoods. These laws try to fix something that was never broken. There has always been a legal defense for using deadly force if ""?and the 'if' is important ""?no safe retreat is available.""?The NRA responded with its own statement, vowing to ""work to protect self-defense laws currently on the books and advocate for their passage in those states that do not fully respect this fundamental right.""? After Jordan's death, his mother, Lucy McBath, felt compelled to learn more about Florida's Stand Your Ground law. ""I can""t just turn a blind eye because I received justice,""?she told ABC News. McBath now serves as a spokesperson for Everytown for Gun Safety. She said she wants to stand up for ""All the people across the country who do not have a voice, for people who are dying senselessly.""?""�Stand Your Ground laws give untrained citizens more leeway than the U.S. military gives our soldiers in war zones. There's something critically wrong with that,""?she said. She added, ""We have a responsibility, our legislatures have a responsibility ... to challenge these very laws that impinge on a person's civil, moral and ethical human right to live without the fear of being gunned down."" ABC News' Morgan Korn, Jeff Costello, Lindsey Jacobson, Julia Jacobo and Gillian Mohney contributed to this report.", -1319,2017/2/23,http://abcnews.go.com/Politics/town-halls-showcase-organizations-left-concern-parties/story?id=45674443,Town halls showcase organizing on the left and concerns in both parties,,"From rural towns to big cities and at both public events and private fundraisers, lawmakers home in their districts this week have been bombarded by energized and engaged crowds demanding answers and determined to make their voices heard. Republican members of Congress brave enough to hold town halls have been booed, yelled at and cornered with tough questions about story lines coming out of Washington ""?such as reported contacts between members of President Trump's campaign and Russia ""?that many from both sides of the aisle have said they find worrisome. Frustrated crowds have found ways to catch up to some senators and representatives who have shied from holding public events. Yesterday in Kentucky, swarms of people protested outside ticketed events that Senate Majority Leader Mitch McConnell attended. In Vista, California, Republican Rep. Darrell Issa did not have an open forum on the books this week, but angry protesters camped outside his office until he went out to talk to them. Reports of these milk jugs spotted in local stores all over the 8th district #WhereIsPaulCook @RepPaulCook @VVDailyPress pic.twitter.com/RsVLAgCw9n In many ways, the week has been a tour de force of Democratic campaign strategy and grass-roots organizing. From running missing-person ads to renting billboards, organizers have used a number of creative methods to draw attention to lawmakers seen as avoiding the public. Lists were circulated detailing where Congress members would be during the week and tips distributed on how best to raise concerns at representatives""?town hall meetings. Last week, after GOP Rep. Jason Chaffetz faced a particularly rambunctious crowd in his Utah district, he tried to dismiss those who attended as out-of-towners. So this week, at meetings from Virginia to Colorado, attendees have worn badges with their ZIP codes or held up their driver's licenses to prove their residency. Another common tactic: green and red signs for people to hold up when they agree or disagree with something said at an event. The colorful visual plays well for the cameras. Everyone holding up their CO driver's license to prove that it's all Coloradans wanting to talk with @SenCoryGardner ?? pic.twitter.com/hIySskpeZA A number of concerns have come to the fore. From coast to coast, voters are asking their congressional representatives what a Republican repeal and replace plan for the Affordable Care Act might look like. Will young people be able to stay on their parents""?plans? Are health saving accounts helpful? How would block grants to states for Medicaid affect services? During an interview after his town hall, GOP Rep. Scott Taylor of Virginia acknowledged that a lack of specificity from his party's leadership about what Republican will do with Obamacare is adding to the unease. He said it could be anywhere from a month to years before final health care legislation is complete. ""It is extremely important and imperative that people who are working on that repeal and replacement are very deliberative ""?We better get it right. I think it is responsible to be methodical about it,""?he told ABC News. A few hours away in northern Virginia, Republican Rep. Dave Brat said after his boisterous town hall that he doesn""t know his party's plan for health care and that that is a problem. He said he is frustrated by the fact that leadership sent him home, into the lion's den, without any answers. ""people are saying I am not giving the full story,""?he said. There is also notable concern and confusion about the Trump administration's relationship with Russia. At Taylor's event, a woman stood and said she voted for him but was disappointed he stood by during what she saw as Trump's efforts to play nice with Russian President Vladimir Putin. ""russia was just implicated by all 17 of our U.S. intelligence agencies as having interfered in our elections,""?Lulani Gillikin, a nonprofit worker who lives in Taylor's district, said to the congressman. ""Why would you even consider being any type of frenemy with Russia when they are continuing to have this type of misinformation and disinformation, which is sad, and it looks like there is a probable link with the campaign of our current president?""?Taylor answered saying that he thought Russia should be held accountable for some of its leaders""?actions and that he supports a Senate investigation into Russia's alleged interference in the U.S. election. ""the reality is in the international community that there are things that historically we have worked together with them on even though they are enemies and it has to happen sometimes for international order,""?the congressman added. Many questions posed to Republican lawmakers centered on whether, when and how they would be willing to stand up to the White House or break party lines. ""What can you say to me and the people in your district to ensure us that you will support all the needs of the people and, when necessary, you will speak out against policies that are wrong, no matter if it comes from the president or one of your colleagues?""?asked James Harvey, a constituent of Taylor's, after thanking him for hosting the event. ""that you will not be a go-along-to-get-along representative. You say you are Republican-leaning, but there is also right and wrong.""?Taylor, newly elected in November, said he agreed it is important to work across the aisle and highlighted relationships he is building with some of his Democratic colleagues. He said he is impressed by all his fellow freshmen representatives and proud that they have signed a pledge to be civil and work together across party lines.", -1320,2017/2/23,http://abcnews.go.com/Politics/scenes-town-halls-republicans-face-off-constituents/story?id=45656411,Scenes from town halls: Republicans face off with constituents,,"With the House of Representatives out of session this week, many members have headed back to their home districts to engage with constituents and, in some cases, hold town hall meetings. Some of these events have turned contentious, drawing a response from the White House Wednesday as citizens continue to voice displeasure with their representatives. Responding to a question from ABC News' Jonathan Karl, who quoted President Donald Trump's description of these audiences as ""so-called angry crowds,"" White House press secretary Sean Spicer portrayed meeting-goers as a ""hybrid"" of two groups. ""I think some people are clearly upset, but there is a bit of professional protester manufactured base in there,"" said Spicer, who provided no evidence to support the claim. ""Obviously, there are people that are upset, but I also think that when you look at some of these districts ... it is not a representation of a member's district or an incident."" A number of events are still scheduled for the remainder of the week, but here's a list of notable interactions from the events: Congressman Jason Chaffetz, R-Utah, chairman of the House Oversight Committee, attracted attention in 2015 and 2016 for his committee's investigation of Democratic presidential nominee Hillary Clinton's use of a private email server while she served as secretary of state. Back in Utah, he faced a packed crowd of over 1,000 people at a high school auditorium, where he was serenaded with heckles and chants of ""do your job"" during a town hall on Feb. 9. Chaffetz attracted continued attention afterward when he told local paper the Deseret News that he believed some of the attendees were brought in from out of state. ""Absolutely. I know there were,"" Chaffetz told the newspaper, classifying the commotion as ""more of a paid attempt to bully and intimidate."" He did not offer any evidence as to support the claim. At two different town halls on Saturday in upstate New York, Rep. Tom Reed pushed back on the suggestion that the Trump administration's connections to Russia needed to be investigated. Over a chorus of boos and objections from some members of his own party in the audience, Reed expressed his opinion that ""there is no evidence"" of wrongdoing in the executive branch. In a moment that received some of the loudest cheers, a man told Reed that he hoped the lawmaker would stand up to President Trump. ""Checks and balances are crucial to the American system,""?the man said. ""You are the checks and balances."" Less than three weeks into his tenure representing Virginia's 2nd congressional district, Rep. Scott Taylor returned home Monday to a packed crowd, many of whom wore their zip codes on name tags to preemptively combat claims that they arrived from elsewhere. As Taylor fielded questions about health care, connections between the Trump administration and Russia and his willingness to speak out against the president, some attendees held up green and red signs to show when they agreed or disagreed. Afterward, Taylor told ABC News that he empathized with fellow legislators who chose not to hold events out of safety concerns, but said he was ""not one to shy away from these things."" ""I think it is important to give people a seat at the table,"" said Taylor. ""Long term, if safety precautions are taken, I would encourage my colleagues to do the same thing.""? Senate Majority Leader Mitch McConnell did not hold a town hall Tuesday, rather a private, ticketed event, but it still didn't stop a crowd from showing up to protest the Kentucky Republican. ""Why are they protesting? They didn't like the results of the election ""?people in our state had a chance to express themselves and they did pretty overwhelmingly,"" said McConnell inside the event. ""They had their shot at the election and they had their shot in Kentucky ""?winners make policy and losers go home."" He added, however, that he was ""proud"" of protesters and that they had the right to speak out. McConnell received a number of pointed questions, including one from a woman who said she would sit down ""like Elizabeth Warren"" if he could answer her question -- alluding to the Senate voting to silence Warren during a debate over Jeff Sessions' nomination for attorney general. The majority leader mostly ignored questions he disagreed with, but didn't shy away from critiques of the new president, saying of Trump's use of Twitter, ""Am I a fan of all of the tweets? ... Use your imagination."" McConnell also admitted that he ""thought the next president was going to be Hillary Clinton,"" in defending his decision not to hold confirmation hearings on President Barack Obama's Supreme Court nominee Merrick Garland. Because he thought the Democrat would prevail, he said he ""wasn""t necessarily achieving any particular advantage for my side."" Arkansas Sen. Tom Cotton faced a passionate crowd in his deep red state Wednesday, who questioned the first-term lawmaker on a wide range of issues. In two moments that went viral shortly afterward, Cotton heard from a woman whose husband is battling dementia and Alzheimer's, and a young boy seeking to protect his favorite television programs. ""You want to stand there with [my husband] at home, expect us to be calm, cool, and collected."" said the first woman, seeking to protect her health-care coverage. ""Well, what kind of insurance do you have?"" The young boy, who first explained that he and his family ""like Mexicans,"" told the senator that Congress shouldn't divert funding from the Public Broadcasting Service to pay for reinforcement at the border. As the new administration prepares its first budget, the Corporation for Public Broadcasting could be targeted for cuts, sources familiar with the process have said. ""You shouldn't do all that stuff for just a wall,"" said the child. Cotton responded by saying, ""You can still have one and have the other."" ABC News' Matthew Claiborne contributed to this report.", -1321,2017/2/23,http://abcnews.go.com/Politics/white-house-readies-trump-budget-aim-popular-programs/story?id=45669706,White House readies first Trump budget that could take aim at popular programs,,"The White House is preparing its first budget with an eye on conservative budget outlines authored by the Republican Study Committee and Heritage Foundation, according to sources familiar with the process. Both the RSC and Heritage Foundation's most recent blueprints aim to balance the budget in less than 10 years, balancing domestic cuts with entitlement reform. Both take aim at frequent conservative targets like the Corporation for Public Broadcasting, AmeriCorps and the National Endowment for the Arts and the National Endowment for the Humanities. They also limit funding for the Appalachian Regional Commission, an economic development partnership between the federal and local governments in Appalachia, along with the Environmental Protection Agency. Asked about the details of the upcoming budget and whether the same programs could be targeted in the White House budget, Office of Management and Budget spokesman John Baker said nothing has been ""predetermined."" ""While crafting the budget, we use our own internal expertise and that process is ongoing,"" he said in an email. The New York Times reported last week that OMB could eliminate the domestic programs. The savings from those domestic programs -- a few hundred million dollars each -- would do little to curb government spending in a $4 trillion annual budget. ""The actual spending in those programs is fairly small compared to the whole budget picture,"" said Romina Boccia, who studies federal spending at the Heritage Foundation. A common frustration among many conservatives is the apparent hypocrisy that Republicans only care about the debt during Democratic administrations, but spending is good during Republican administrations. Republican aides stress that lawmakers must tackle entitlement reform in order to successfully address the annual budget deficit and produce a balanced blueprint. White House press secretary Sean Spicer told reporters today that the administration will release its budget plan around mid-March. According to an administration official, the initial plan will be a slimmed-down budget blueprint that would be followed by a larger, more detailed budget proposal. Another GOP aide on Capitol Hill said lawmakers have been told to expect the proposal around March 14. OMB Director Mick Mulvaney, a former South Carolina congressman tasked with preparing the budget proposal to present to Congress, was confirmed only last week. Ed Lorenzen, a senior adviser for the nonpartisan Committee for a Responsible Federal Budget, said the ""really big question"" for the administration is ""how they balance all their initiatives and priorities with the goal of decreasing the debt."" Trump's campaign-trail promises of a border wall with Mexico and a massive infrastructure spending bill will be tough to square with longstanding GOP principles of balancing the budget, Lorenzen said. Trump has said he wants to increase military spending as well. ""A balanced budget is fine, but sometimes you have to fuel the well in order to really get the economy going,"" Trump recently told Fox News. ""I want a balanced budget eventually, but I want to have a strong military."" ""The challenge is showing how he can make all his campaign promises fit together in a budget that adds up,"" Lorenzen said. The White House is also considering relying on ""rosy"" economic growth projections to pay for their initiatives, a controversial budgeting practice first reported by The Wall Street Journal. Meanwhile, frustration is mounting among congressional Republicans who believe their leadership is deferring too much to the administration -- leaving Congress without any meaningful votes through two months of legislative activity while waiting for President Trump to specify what he wants to accomplish.", -1322,2017/2/23,http://abcnews.go.com/Business/shark-tank-deal-mark-cuban-regrets-making/story?id=45661270,The one 'Shark Tank' deal Mark Cuban regrets not making,,"When founder John Tabis brought The Bouqs Company to ABC's ""shark Tank""?in 2014, it seemed that all the ""sharks""?hated the product. ""We all passed on it,""?shark Robert Herjavec told ABC News. Watch the full story on ABC News ""20/20"" -- ""Shark Tank on 20/20"" -- THIS FRIDAY at 10 p.m. ET The Bouqs Company disrupts the flower delivery system by selling directly to consumers. It cuts out the layers of middlemen normally in the process. ""Flowers are largely sourced in the U.S., out of Ecuador and Colombia and, as a result, have a very long and convoluted supply chain. They go from farmers to exporters to importers to wholesalers to florists and then you buy them from some website,""?Tabis explained to ABC News. ""He started skipping all those layers, and he started shipping directly from his family's farm in Ecuador to a florist. And he loved it because he got better margin, the florist got fresher products for less money and he got paid much more quickly than if he waited for all those layers to pay him,""?said Tabis. Montufar asked for Tabis""?help to get more people to care about the process and educated him on how it could be beneficial for consumers, florists and the environment. They launched The Bouqs Company in 2012. But when Tabis entered the Shark Tank in 2014, Herjavec says he thought Tabis did a ""bad job""?with the presentation. ""And they had astronomical numbers. They were doing $2 million a year, and they said, ""�Next year, we'll be $12 million, and then we'll be $30 million.""?And we hate stuff like that,""?Herjavec recalled. ""We'r like, ""�Oh, it'll never happen.""?The sharks also disliked that consumers had to wait six days for a flower delivery, and shark Barbara Corcoran said she hated the name of the company. ""I thought I did pretty well. B-plus?""?Tabis said. ""I definitely didn""t bomb it.""?Despite not getting a deal with the sharks, The Bouqs Company has thrived. In the run up to Valentine's Day this year, the company reported sales of over $1 million in a single day. ""We did in 24 hours more than we had done in the entire year leading up to the 'Shark Tank' appearance. So, the business has grown a lot,""?said Tabis. Three years after Bouqs appeared on ""Shark Tank,"" Herjavec said he was shocked by the price of flowers while shopping for them ahead of his wedding to his ""dancing With the Stars""?partner, Kym Johnson. Herjavec reached out to Tabis and asked him why flowers were so expensive. ""�[Tabis] said, ""�Come and see me. I'll explain the flower business to you.""?[He] draws it out for me, shows me what they'r doing. I'm like, ""I love it,""?Herjavec said. "" I took part of their last round. We just raised $24 million.""?When shark Mark Cuban learned how successful the Bouqs Company has become, he expressed his regret for not getting in the deal when he had the chance. ""that's the one I regret not doing, ""�cause that's a deal I would""ve loved,""?said Cuban. ""And most importantly, I saved a ton of money on my flowers for my wedding,""?Herjavec joked.", -1323,2017/2/22,http://abcnews.go.com/Business/sharks-shark-tanks-frustrating-successful-entrepreneur-bigger-fish/story?id=45631420,"Sharks and 'Shark Tank's' most frustrating, yet successful entrepreneur on who was the bigger fish",,"Copa Di Vino founder James Martin isn""t bothered by the fact that the ""sharks""?of ABC's ""Shark Tank"" don""t have fond memories of his two infamous appearances on the hit entrepreneurial reality show. That's because, despite walking away from the sharks""?offers twice and being known as one of the sharks' most disliked inventors, Martin's product is one of ""shark Tank's""?most successful. ""We all know the sharks blew it and missed out on the biggest opportunity they ever had -- which was me,""?James Martin told ABC News. Watch the full story on ABC News ""20/20"" -- ""Shark Tank on 20/20"" -- THIS FRIDAY at 10 p.m. ET Martin created Copa Di Vino, an on-the-go beverage with a portfolio of seven different types of wine that come in a patented, single-serving, plastic container with a pull-off and resealable lid. Martin's Oregon-based, family-owned winery struggled for years before making a profit. When the opportunity arose to appear on the second season of ""Shark Tank"" in 2011, Martin jumped at the possibility. He asked the sharks for $600,000 in exchange for 30 percent of his business to help create more inventory. At first all the sharks expressed interest and quickly began making offers, including Shark Kevin O""�Leary, who went on to launch his own wine label, O""�Leary Fine Wines, in October 2012. ""�[The container] that's never been done in wine before, and I grant him that was a good move,""?O""�Leary told ABC News. ""the problem with him ""?is he tried to sell me ""?on a winery. Now, I'm in the winery business. That is a bad business.""?O'Leary wanted Martin to separate the patent for the Copa Di Vino container from the wine itself so he could focus on licensing the container's technology to other winemakers, but Martin wouldn't budge. Other sharks pitched deals, but as Martin continued to turn down offers, they became less interested with his arrogant attitude. The sharks also commented that Martin seemed to be sweating profusely throughout his pitch. Martin said he was sweating because he became too hot under the TV lights in his turtleneck sweater. ""I started melting and under the pressure of Kevin O'Leary trying to split my company into two, I really started to melt,"" Martin said. ""For me, all I was trying to do was figure out how to get a taxi to get me out of here. ... You see about 10 minutes of the exchange but I was actually out there under those lights for 45 minutes in that pressure of the tank, in the pressure of five different entrepreneurs who are very, very intelligent all firing questions at you, sometimes two or three at the same time."" In the end, Martin brushed off the sharks""?advice and left without accepting any offers. But soon after his episode aired, Martin said he received numerous offers from people wanting to invest in his company and Copa Di Vino took off. ""shark Tank""?producers took notice of Copa Di Vino's success and offered Martin a rare second chance to go ""back in the tank.""?He re-pitched the product to the sharks the following year. By that time, Martin said Copa Di Vino had gone from $600,000 to $5 million in sales in just one year. ""I had a hate for Kevin O'Leary at a level that wasn't healthy at all and my opportunity to come back was also my chance to get the last word in and say, ""Look, you blew it, but I'm also gracious enough to give you a second chance,""?Martin told ABC News. But again, Shark Barbara Corcoran said she didn""t appreciate what she said was Martin's ""Coy""?attitude. ""We didn""t respect him either,""?she said. The standoff between the sharks and Martin went into its second round when neither side budged on the same point they were stuck on the first time around. And seemingly instead of working with them to make a deal, Martin just kept taking sips of his wine. ""the second time he came on he stood out there, and he knew we all were interested, and he was trying to be too cool, too smart ""?thinking like he's the man,""?said Shark Mark Cuban. ""It was a lot of money. We were negotiating. And he's like, ""I'm going to take a sip.""?""I think in the second one he forgot his place,"" added Shark Robert Herjavec. ""He is not the shark. We're the sharks."" Even though Martin walked away, again, without any of the sharks' investment, the chance to promote his product on national television twice had contributed to huge payoffs. To date, Copa Di Vino has sold 38 million cups of wine in places ranging from local convenience stores and supermarket chains to Marriott hotels and sports arenas and stadiums, and the company claims to have made $12 million in sales in 2016. The brand has also expanded to include Copa Di Vino variety packs, t-shirts, beach coolers and even an ""Autdoor patio bar.""?""I didn't need the sharks. They needed me,""?Martin said. ""they needed a really, really successful brand that went everywhere and they didn't get it because they got greedy.""?The sharks, however, feel differently. All agree they have no regrets about passing on Copa Di Vino. ""Could you imagine dealing with him on an ongoing basis?""?Cuban said. ""He would ruin our lives, our happy lives,""?Corcoran added.", -1324,2017/2/23,http://abcnews.go.com/US/jackie-evancho-transgender-sister-hope-enlighten-donald-trump/story?id=45677743,Jackie Evancho and transgender sister hope to 'enlighten' Donald Trump after reversal of transgender bathroom guidance,,"Jackie Evancho, the opera singer who performed the national anthem at President Trump's inauguration, said she and her transgender sister, Juliet, hope to ""enlighten"" the president on transgender issues in the wake of his administration's order to roll back protections for transgender students. But she said that she would still perform for the president again. ""The reason why I did sing for the inauguration was not politics,"" Jackie Evancho, 16, said Thursday on ""Good Morning America"" in an interview alongside her sister, Juliet Evancho. ""It was for the honor and privilege to perform for my country and that will stay the same I think."" But the sisters nonetheless expressed concern over the president's new transgender policy. Jackie Evancho said she had not yet heard from Trump after asking him via Twitter to meet with her and Juliet, an 18-year-old transgender advocate who was born ""Jacob."" ""I guess I just want to enlighten him on what my sister, I""ve seen her go through every single day in school and people just like her, what they deal with,"" Jackie Evancho said. ""The discrimination, it's terrible."" The Trump administration on Wednesday night rescinded Obama-era guidance directing schools to allow transgender students to use the bathroom that matches their gender identity. In a letter sent to schools on Wednesday, the Justice and Education Departments said that the Obama administration's guidance -- which cited Title IX -- did not explain how it was consistent with the law. The Trump administration letter claimed that the Obama-era directive caused confusion and lawsuits over its enforcement, and said that the states should take a ""primary role"" in establishing policy. Jackie Evancho's response to Trump on Twitter included her writing that she was ""disappointed"" at his decision to let states decide. I am obviously disappointed in the @POTUS decision to send the #transgender bathroom issue to the states to decide. #sisterlove . @realDonaldTrump u gave me the honor 2 sing at your inauguration. Pls give me & my sis the honor 2 meet with u 2 talk #transgender rghts ? Evancho, a former ""America's Got Talent"" runner-up, faced a torrent of criticism for agreeing to perform at Trump's inauguration. Juliet did not attend the Jan. 20 inauguration to see her sister perform because she was preparing to undergo gender confirmation surgery. On Thursday, Juliet Evancho said she would also bring a message of understanding were she to meet with Trump. ""Basically that being at a high school where the policies on the bathroom are unclear, I, as Jackie has said, I kind of live it every day, going through discrimination,"" she said she would tell the president. ""I""ve had things thrown at me. I""ve had people say pretty horrible things and the unsafe environment is just very unhealthy so I feel like Donald Trump needs to know that being in such an unsafe environment won""t do any good not only for the transgenders and the LGBTQ community but as well as everyone as a whole."" ""When I heard about it I was very disappointed and I realized that we would need to take action in order to enlighten the administration on everything,"" she said. ABC News' Erin Dooley, Ignacio Torres, Hana Karar, Lauren Effron and Lesley Messer contributed to this report.", -1325,2017/2/23,http://abcnews.go.com/International/obama-devotees-france-hoping-obama17-presidential-campaign/story?id=45680072,Obama devotees in France hoping for an 'Obama17' presidential campaign,,"Some Barack Obama devotees in France aren't happy with the homegrown contenders vying for the country's presidency, so they're hoping that the former U.S. president will step in and run for office this spring. ""Obama17"" posters have been spotted plastered across Paris, urging citizens to visit a website and sign a petition to persuade Obama to enter the race. The goal is to get 1 million people to sign the petition. Why Obama? ""Because he has the best resume in the world for the job,"" reads the website, which is in no way connected to Obama. While this all sounds good, there is one problem. The French president needs to be, well, French. And Obama is not. The website also says Obama could be an antidote to the popularity of right-wing parties in the country. ""At a time when France is about to vote massively for the extreme right, we can still give a lesson of democracy to the planet by electing a French president, a foreigner,"" reads the website in French. A spokesperson for the group told ABC News Thursday morning, ""We started dreaming about this idea two months before the end of Obama's presidency. We dreamed about this possibility to vote for someone we really admire, someone who could lead us to project ourselves in a bright future. Then we thought, whether it's possible or not, whether or not he is French, we have to do this for real, to give French people hope ... Vive la Republique. Vive Obama. Vive la France and the USA."" ", -1326,2017/2/23,http://www.cnn.com/2017/02/23/politics/white-house-effort-to-justify-travel-ban-causes-growing-concern-for-some-intel-officials/index.html,White House effort to justify travel ban causes growing concern for some intelligence officials,"Washington (CNN)President Donald Trump has assigned the Department of Homeland Security, working with the Justice Department, to help build the legal case for its temporary travel ban on individuals from seven countries, a senior White House official tells CNN.","Other Trump administration sources tell CNN that this is an assignment that has caused concern among some administration intelligence officials, who see the White House charge as the politicization of intelligence -- the notion of a conclusion in search of evidence to support it after being blocked by the courts. Still others in the intelligence community disagree with the conclusion and are finding their work disparaged by their own department. ""DHS and DOJ are working on an intelligence report that will demonstrate that the security threat for these seven countries is substantial and that these seven countries have all been exporters of terrorism into the United States,"" the senior White House official told CNN. ""The situation has gotten more dangerous in recent years, and more broadly, the refugee program has been a major incubator for terrorism."" The report was requested in light of the Ninth Circuit Court of Appeals' conclusion that the Trump administration ""has pointed to no evidence that any alien from any of the countries named in the order has perpetrated a terrorist attack in the United States."" The seven counties are Iraq, Iran, Libya, Somalia, Sudan, Syria and Yemen. The senior White House official said the desire to bolster the legal and public case that these seven countries pose a threat is a work in progress and as of now, it's not clear if DHS and DOJ will offer separate reports or a joint report. One of the ways the White House hopes to make its case is by using a more expansive definition of terrorist activity than has been used by other government agencies in the past. The senior White House official said he expects the report about the threat from individuals the seven countries to include not just those terrorist attacks that have been carried out causing loss of innocent American life, but also those that have resulted in injuries, as well as investigations into and convictions for the crimes of a host of terrorism-related actions, including attempting to join or provide support for a terrorist organization. The White House did not offer an on-the-record comment for this story despite numerous requests. Dissension and concern The White House expectation of what the report will show has some intelligence officials within the administration taking issue with this intelligence review, sources told CNN. First, some intelligence officials disagree with the conclusion that immigration from these countries should be temporarily banned in the name of making the US safer. CNN has learned that the Department of Homeland Security's in-house intelligence agency, the Office of Intelligence and Analysis -- called I&A within the department -- offered a report that is at odds with the Trump administration's view that blocking immigration from these seven countries strategically makes sense. It's not clear if this was the conclusion of the I&A report but many DHS officials have said they do not think nationality is the best indicator of potential terrorist inclinations. DHS press secretary Gillian Christensen confirmed CNN's report but dismissed it. ""While DHS was asked to draft a comprehensive report on this issue, the document you're referencing was commentary from a single intelligence source versus an official, robust document with thorough interagency vetting,"" she said. A Department of Homeland Security source who asked for anonymity since he was not authorized to speak on the record said the report from the I&A officials did not meet the standards of the agency since it relied upon open source material and did not utilize necessary data from the intelligence community, specifically the FBI. Others in DHS disagree with that assessment of the I&A report and a senior official in the Department of Homeland Security told CNN that some DHS officials are concerned that the new I&A director -- Acting Undersecretary for Intelligence David Glawe -- may be politicizing intelligence. One source familiar with the department told CNN that Glawe came into I&A ""like a bull in a china shop."" The seven countries were originally designated by DHS in the Obama administration for tighter immigration scrutiny -- removing them from the visa waiver program -- but not for a temporary suspension of immigration, as the Trump administration has attempted. A second issue for many in the intelligence community is the notion of the Trump White House seeking an intelligence report to fit the policy instead of the other way around, sources tell CNN. A senior government official told CNN that the normal procedure would be for the Office of the Director of National Intelligence to be tasked with creating such an intelligence report, working with all relevant agencies and providing dissenting views. Theoretically, this would be done before the policy was formulated. The senior White House official told CNN that it's possible that the National Counterterrorism Center, via the Office of the Director of National Intelligence, and perhaps the National Security Council might also provide reports on the same subject. A senior government official told CNN that the National Counterterrorism Center, via the Office of the Director of National Intelligence, has already been tasked with such a report, separately from DHS and DOJ. This has prompted some in government to wonder whether the White House is shopping around among agencies for the report that best bolsters their policy and legal support for it. Other intelligence officials told CNN that such discussions among agencies about differing interpretations of the existing intelligence are not unusual and do not necessarily reflect an effort to ""shop around"" for intelligence to support a particular policy. White House to make its case The White House is determined to prove that the Ninth Circuit argument is wrong, as are Democrats and those in the media, that terror attacks do not predominantly originate from the seven countries targeted by Trump's order. Rep. Jerrold Nadler said on CNN late last month that ""the various people who have, in fact, committed terrorist acts in this country, from 9/11 on, none of them came from any of the seven countries that are the subject of the President's executive order."" The senior White House official told CNN that the Ninth Circuit's language that no one from those seven countries has ""perpetrated a terrorist attack"" or Nadler's comment that none had ""committed terrorist acts"" is false. ""It's using the most narrow definition of the term you can use,"" the official said -- referring only to those who had successful killed an innocent civilian. That definition does not include those who wounded Americans, or those who plotted but failed in their attacks, or those who tried to join or provide material support to a terrorist group. Information will soon be presented to the public that makes this stronger case using the broader definition. A case in point: Somali-born Abdul Razak Ali Artan attempted to run over and stab 13 innocent people at Ohio State University last November. He and his family left Somalia in 2007 and moved to Pakistan, arriving in the US in 2014. He was a legal permanent resident. His attack would not count using the more narrow definition. ""In most cases, the American people don't hear about these cases,"" the senior White House official said, ""but these cases have required thousands of man-hours by law enforcement in any number of plots to commit terrorism against this country. The threat is very jarring."" The White House official said the Obama administration tried to downplay the threat while the Trump administration believes in a culture of ""very robust disclosure.""", -1327,2017/2/23,http://www.cnn.com/2017/02/23/politics/donald-trump-deportation-military/index.html,Trump on deportations: 'It's a military operation',"Washington (CNN)President Donald Trump, meeting with business leaders at the White House on Thursday, described his administration's moves to deport undocumented immigrants as a ""military operation,"" a label that runs counter to what his administration has previously said.","Trump has used a series of executive orders to chip away at the barriers to deportations and hire new law enforcement officials to spearhead the effort, using the Department of Homeland Security to live up to the President's tough talk on undocumented immigration during the 2016 campaign. ""We're getting really bad dudes out of this country, and at a rate that nobody's ever seen before,"" Trump said Thursday. ""And they're the bad ones. And it's a military operation."" He added: ""You see what's happening at the border. All of a sudden for the first time, we're getting gang members out. We're getting drug lords out."" A White House spokesperson said Trump did not misspeak by calling deportations a 'military operation,' but clarified the President meant ""military"" as an ""adjective."" ""The President was clearly describing the orderly and professional manner in which his executive orders are being implemented, and the administration's emphasis on removing serious criminals here in the US illegally,"" the spokesperson said. Trump, though, is not using the military to deport undocumented immigrants. Department of Homeland Security Secretary John Kelly told reporters in Mexico City Thursday that there would be ""no use of military force in immigration operations, none,"" and Trump's administration has gone to great lengths to deny reports that the National Guard would take the lead on deportations. ""Not true,"" Sean Spicer, White House press secretary, tweeted earlier this month after The Associated Press reported that the Trump administration was considering mobilizing the National Guard. ""100% false."" The guidelines outlined by the Trump administration, however, do expand the number of undocumented immigrants who are subject to deportation. ""Everybody who is here illegally is subject to removal at any time,"" Spicer said. ""That is consistent with every country, not just ours. If you're in this country in an illegal manner, that obviously there's a provision that could ensure that you be removed.""", -1328,2017/2/23,http://www.cnn.com/2017/02/23/us/california-immigrant-safe-houses/index.html,An underground network is readying homes to hide immigrants,Los Angeles (CNN)A hammer pounds away in the living room of a middle class home. A sanding machine smoothes the grain of the wood floor in the dining room.,"But this home Pastor Ada Valiente is showing off in Los Angeles, with its refurbished floors, is no ordinary home. ""It would be three families we host here,"" Valiente says. By ""host,"" she means provide refuge to people who may be sought by US Immigration and Customs Enforcement, known as ICE. The families staying here would be undocumented immigrants, fearing an ICE raid and possible deportation. The purchase of this home is part of a network formed by Los Angeles religious leaders across faiths in the wake of Donald Trump's election. The intent is to shelter hundreds, possibly thousands of undocumented people in safe houses across Southern California. The goal is to offer another sanctuary beyond religious buildings or schools, ones that require federal authorities to obtain warrants before entering the homes. ""That's what we need to do as a community to keep families together,"" Valiente says. At another Los Angeles neighborhood miles away, a Jewish man shows off a sparsely decorated spare bedroom in his home. White sheets on the bed and the clean, adjacent full bathroom bear all the markers of an impending visit. The man, who asked not to be identified, pictures an undocumented woman and her children who may find refuge in his home someday. The man says he's never been in trouble before and has difficulty picturing that moment. But he's well educated and understands the Fourth Amendment, which gives people the right to be secure in their homes, against unreasonable searches and seizures. He's pictured the moment if ICE were to knock on his door. ""I definitely won't let them in. That's our legal right,"" he says. ""If they have a warrant, then they can come in. I can imagine that could be scary, but I feel the consequences of being passive in this moment is a little scary."" The secret network The religious leaders have a name for their network: the Rapid Response Team. The idea is not necessarily a new one, according to Reverend Zach Hoover, executive director of the interfaith community organization LA Voice. Hoover, 37, wasn't an active member during the Sanctuary Movement of the 1980s when US congregations across faiths resisted federal law and provided shelter for Central Americans fleeing violence in their home countries. Many congregations offered direct sanctuary, housing the undocumented immigrants, while others offered food and legal assistance. The Rapid Response Team mirrors that structure, but goes one step further by also incorporating private homes, which offer a higher level of constitutional protection than houses of worship and an ability to make it harder for federal agents to find undocumented immigrants. Under federal law, locations like churches and synagogues are technically public spaces that authorities could enter to conduct law enforcement actions. In 2011, the Department of Homeland Security instituted a policy limiting ICE action at religious locations. The policy ordered ICE to not enter ""sensitive locations"" like schools and institutions of worship. Religious leaders in Los Angeles that spoke to CNN are skeptical whether that policy will stand under a Trump presidency. ""There's a difference between someone knocking on your door at the church who's a federal agent and someone knocking on the door of your home, where, if they don't have a warrant, they shouldn't be entering,"" Hoover says. In the hours after Trump's initial executive order on immigration, calls between religious organizers picked up, and the network rapidly grew. Hoover estimates the underground network could hide 100 undocumented people today. Soon, he believes, they could hide thousands. Hoover points out that's a tiny fraction of the estimated one million undocumented immigrants in Los Angeles county. The network's focus would be on families fearing separation and working to keep them together by ""moving into a place so that ICE can't find them,"" Hoover says. ""So they can stay with their families. So they can be with their husbands,"" Hoover says. ""So they can avoid being detained and deported. Everybody talks about how families are the bedrock of our country. We believe that. Our congregations believe that."" God's law versus Trump's law The strong current carrying the Rapid Response Team is the divergence of federal laws and the moral teachings of their religions. Hoover points to the Bible's Matthew 25, which teaches the faithful should feed the hungry and fight for those in prison. ""The God that I worship sent a person to earth in the name of Jesus who did not always get along with the authorities,"" Hoover explains. ""I feel really convicted that I answer to God at the end of the day. That's who I'm going to see when I die."" Pastor Valiente echoes that sentiment, saying US immigration laws are broken and her church's foundation are the families. ""We're trusting in God, that he will help us and guide us to make the right decision, to have something better come out of this,"" Valiente says. Valiente says she's praying President Trump's heart will grow more compassionate to the plight of undocumented immigrants. ""He needs to make immigration laws that work for our families,"" Valiente says. The Jewish man offering his home as a safe house says he draws upon his religion's history during WWII. As the Nazis rounded up Jews for detention and eventual extermination, Germans resisted their government, hiding their Jewish friends and neighbors in attics and basements. ""It's hard as a Jew,"" he says, ""not to think about both all the people who did open their doors and their homes and take risks to safeguard Jews in [a] moment when they were really vulnerable, as well as those who didn't. We'd like to be the people who did."" He's not the only one in his community feeling this way. Volunteers are flooding in to offer to help with the network at Temple Israel of Hollywood, according to Heidi Segal, the temple's vice president of social action. Three weeks ago, Temple Israel of Hollywood began a phone bank to call lawmakers. On the day CNN visited the temple, the room was filled with volunteers. ""Our immigration resistance effort,"" Segal says as she shows off the room. While the temple is not offering direct refuge at their temple for the undocumented, volunteers will escort immigrants for deportation interviews. They're also offering free legal advice and support, as well as stocking sanctuary houses with food and clothing. ""We had a really strong response immediately and as people learn, the response is just growing,"" Segal says. An uneasy choice The growing energy of the network doesn't mean the members aren't also apprehensive or fearful about the consequences. The people forming the network are not a crowd with criminal records. While there's clarity in the sanctity of family and religious calling, there's also concern about how the new Department of Justice will operate under Attorney General Jeff Sessions. The Jewish man offering his home as a safe house says it's ""certainly scary."" While he's not clear on the consequences of what he's doing, or where he draws his limits, he is clear on one point. ""I think I know what the moral consequences are for me if we don't act. This isn't a moment to be standing idly by,"" he says. ""This is a moment to be engaged and involved and I think we're seeing that across America where people are saying this isn't okay. We're not going to tolerate this and we'll have our voices heard."" Mark Krikorian, executive director of the conservative Center for Immigration Studies, says the law is clear about what these groups are intending to do. ""They're committing a felony. Harboring is a felony,"" Krikorian says. ""Regular folks hiding people in a basement face jail time because it is ultimately a smuggling conspiracy."" Hoover, a self-professed good Midwestern-raised boy, says he's prepared for the federal consequences. Valiente says religious leaders opposing immigration crackdowns believe one simple thing: ""We're doing what we think is right."" Valiente says the last of the construction on her safe house is nearly complete. She'll house someone, she fears, as soon as next month.", -1329,2017/2/23,http://www.cnn.com/2017/02/23/politics/trump-lawyer-ukraine-peace-deal/index.html,"Trump lawyer pushed pro-Russia deal for Ukraine, politician claims","Kiev, Ukraine (CNN)The setting was a Manhattan restaurant, and after 25 minutes what allegedly emerged was a pro-Russian peace plan for Ukraine that its author believes may have ended up in the White House.","In a CNN interview, Ukrainian lawmaker Andrii Artemenko said he discussed his left-field proposal for Ukraine in January with US President Donald Trump's personal lawyer, Michael Cohen, who offered to deliver the plan to the Trump administration. The exact details of the plan are unclear, yet reports have suggested it revolves around leasing Crimea -- annexed by Russia from Ukraine in 2014 -- to Moscow for 50 to 100 years. In exchange, Russia would withdraw its troops from the separatist regions in Ukraine's war-torn east. Artemenko declined to discuss the plan's details, yet hinted that a lease might be part of the idea. The lawmaker says Cohen, who has long advised Trump, wanted to take the plan to Michael Flynn, Trump's former national security adviser. Any suggestion that the White House might consider a plan that formalizes Russia's control of Crimea would cause consternation in Kiev and among its allies in Europe. The White House has flatly denied any knowledge of the proposal. In his interview with CNN, Artemenko shines a light on how a key Trump associate was allegedly prepared to push a controversial peace plan that might benefit Russia at a time when questions were being raised about the Trump's ties to that country. The Ukrainian member of parliament told CNN he met Cohen through a mutual acquaintance, businessman Felix Sater, and that the three had dinner in a Manhattan hotel in January. Cohen told CNN in a text message that although he had dinner with Artemenko, they never discussed peace in Ukraine. Other media organizations reported that he offered them a different account. The White House has denied that Cohen delivered any peace plan to Flynn. Russia and Ukraine have since rejected the plan, and Artemenko has now become the subject of investigation for treason for suggesting it to Cohen. In a hurried interview in a Kiev hotel, Artemenko said Cohen told him that Flynn -- who resigned in mid-February due to a controversy over calls with the Russian ambassador to the US -- was his best connection at the White House. ""Michael Flynn is the best person, the best of my connections in the Trump administration, who if he likes [it], it's going to [get] huge support, huge support,"" Cohen said, according to Artemenko. Flynn did not respond to CNN's request for comment on this story. Artemenko knew the proposal would be controversial as it undercuts both the US and Ukrainian diplomatic corps, and he says he knows it angered Kiev, who will have seen it as a pro-Russian proposal. ""That's why I feel pressure, and for sure today I can see people accusing me, and I see the prosecutor of Ukraine is trying to do something, to open a new case, to do an investigation about me,"" he told CNN. He said of the January meeting that Sater invited Cohen to ""a dinner in the hotel in Manhattan, and we probably spoke around 20-25 minutes, where I presented my intentions, my peace plan for the Ukraine, how we can stop the war, how we can stop the killing."" Artemenko said he had never dreamed that his proposal would be seen by the White House, but he claims Cohen said the plan had ""great potential"" and wanted to deliver it to the Trump administration. ""It was Michael Cohen's idea,"" he said. ""He [Cohen] mentioned his name first in my meetings. And he said 'listen, Michael Flynn' -- from his personal opinion -- 'is most powerful man who can really support this idea, who can support, who can help you, who can provide this information to President Trump.'"" Flynn resigned 24 days into the job after misleading administration officials regarding his communications with the Russian ambassador to the US before Trump took office. Flynn made several calls to the ambassador in December, including some on the same day that the outgoing Obama administration placed fresh sanctions on Russia over alleged election meddling. The Justice Department also warned the Trump administration in January that Flynn could be subject to Russian blackmail, a person familiar with the matter told CNN last month. In a text message to CNN, Cohen denied delivering any documents to Flynn, and refuted Artemenko's recollection of their January conversation. ""If this continued fake news narrative wasn't so ridiculous, I would be angered. Despite the multitude of statements issued denying any nexus between Presidents Trump and [Russian President Vladimir Putin], the main stream media just keeps on trying to perpetuate this lie. ""I acknowledge that the brief meeting took place, but emphatically deny discussing this topic or delivering any documents to the White House and/or General Flynn; something I stated to the New York Times."" According to the Times, Cohen said he left a sealed envelope with the proposed peace plan in Flynn's office. Later, Cohen denied delivering a peace plan to Flynn. Artemenko insists, however, that it was Cohen's idea to show the peace proposal to the senior White House official. ""It was his idea, absolutely his idea,"" he said. After Russia seized the Crimean peninsula from Ukraine in 2014, it sent military help to separatists in the country's east, where violent conflict over disputed territory drags on to this day. Kiev has refused to discuss the official transfer of the peninsula to Russia, and dismissed Artemenko's plan as a result. Moscow considers the peninsula already its territory, after its residents -- under a substantial Russian military presence -- voted in a 2014 referendum to join the Russian Federation. Kremlin spokesman Dmitri Peskov says Russia refuses to discuss the lease of a region it already controls: ""How can Russia rent its own region? This question itself is absurd."" Sater, who attended the dinner with Artemenko, did not respond to emailed questions, yet he emphatically denied any links between the Trump camp and Russia in an interview with Fox News: ""What could be wrong in helping stop a war and trying to achieve peace? I have done so much for my country and thought that promoting peace was a good thing. People are getting killed, it's a war."" A White House spokesman offered this statement in response to CNN's request for comment: ""No one in the White House -- including the President, Vice President and senior members of the NSC -- has spoken to Mr. Cohen about any Russia-Ukraine peace proposal, and no one has spoken to Andrii Artemenko at all about any matter. ""In addition, the NSC keeps comprehensive records of documents received, and we have no record of receiving any proposal from Mr. Cohen. This is another absurd, misleading attempt to distract from the real reform taking place under President Trump."" Artemenko left the interview with CNN to attend what he said was a meeting with the President of Ukraine, Petro Poroshenko, although the presidential administration denied such a meeting took place. Yet moments after leaving the interview, Ukrainian prosecutors announced he would be investigated for ""treason"" over the deal.", -1330,2017/2/23,http://www.cnn.com/2017/02/23/politics/tillerson-kelly-mexico-statements/index.html,Mexican officials tell US: We don't agree,Washington (CNN)Mexican Interior Secretary Miguel Angel Osorio Chong did not mince words when speaking alongside his American counterpart in Mexico City Thursday.,"""We do not agree on the different measures that recently were stated by the government of the United States (that) affect Mexico,"" Osorio Chong said. Department of Homeland Security Secretary John Kelly and Secretary of State Rex Tillerson were in Mexico to try to smooth the relationship and address some of the differences that have emerged between the United States and its neighbor. Their visit to Mexico City follows months of charged rhetoric from President Donald Trump and US immigration measures announced this week that have dramatic implications for the country, including potentially sending significantly more migrants back over the southern border. ""We have expressed our concern about the increase of deportations,"" Osorio Chong said of meetings he and other Mexican officials had Thursday with Kelly and Tillerson. Mexican Foreign Minister Luis Videgaray, speaking ahead of Osorio Chong, was also quick to raise some of these tensions, telling reporters that there was a perception in Mexico that the Trump administration was pursuing ""policies that might be hurtful for Mexicans."" Pointing to the issue of illegal migration, he said, ""Our concern, to respect the rights of Mexicans living in the United States more, specifically the human rights."" He added that it would be ""a long way to go"" to be in agreement with the United States and that ""facts"" were needed in order to ""overcome the negative feelings that are prevailing now."" RELATED: Huge stakes for Trump immigration do-over Tillerson, for his part, noted that ""two sovereign countries from time to time will have differences."" Standing with Videgaray, however, he focused more on shared concerns in his public comments. ""We listened closely and carefully to each other as we respectfully and patiently raised our respective concerns,"" he said. ""There's no mistaking that the rule of law matters on both sides of our border,"" Tillerson said, pledging to work with Mexico to stem the flow of cash and weapons from the US. But his message in meetings, according to a senior administration official speaking after the top US diplomat's arrival in Mexico Wednesday night, was a little more forceful. ""Tillerson will make, he will acknowledge this, that if we are gonna to have a relationship that works, on border that works, it goes both ways,"" the official said. Ahead of their remarks, President Donald Trump said Thursday that he told Tillerson the visit to Mexico was ""going to be a tough trip."" Trump, speaking to manufacturers at the White House, said the trip would be difficult ""because we have to be treated fairly by Mexico."" As Tillerson arrived Wednesday, Videgaray said publicly that he wanted to ""make it clear, in the most emphatic way, that the Mexican government and the people of Mexico do not have to accept measures unilaterally imposed on a government by another government."" US administration officials said Kelly and Tillerson's trip was meant to allow the new Cabinet secretaries to establish relationships and coordinate on bilateral issues that range from counterterrorism, border security and trade amounting to $1.5 billion a day. They also met with President Enrique Pe?a Nieto and Mexican military officials. But the top US officials make their Mexican debut under a cloud, as Trump has introduced policies meant to back up campaign rhetoric that painted Mexico and Mexicans as a security threat and economic drain on the US. On Tuesday, the Trump administration issued guidance that broadens the scope of deportations from a previous focus on criminals to apply to every undocumented immigrant in the US. It also enables state and local law enforcement to act as immigration officers. Another change to asylum procedures would make it easier for immigration officers to send non-Mexican migrants to Mexico if they came through the country on their way to the US. The change could potentially send tens of thousands of Central Americans fleeing violence, gangs and drug cartels back into Mexico. A Mexican official, speaking on condition of anonymity to discuss sensitive diplomatic matters ahead of Thursday's meeting, told CNN that Kelly and Tillerson would hear from Pena Nieto, Videgaray and other officials that Mexico would not take deportees who are not Mexican nationals. A second official pointed out that no bilateral agreement requires Mexico to take these immigrants and that Mexico isn't bound by any US presidential order. There is nothing the US can't do to force the matter, this official said. And Mexico has some leverage, the second official said. The country has been stopping Central American migrants before they reach the US for more than two years, the official said, adding that if Trump doesn't stop his ""orders,"" it will make it more difficult for Mexico to continue this cooperation. Trump may be trying to figure out his own ways to apply pressure to get Mexico to pay. He has suggested putting a 20% tariff on Mexican goods entering the US and his campaign has floated the idea of seizing remittances from Mexicans in the US sending money home. The President has also ordered Cabinet agencies to inform him of the total direct and indirect aid the US gives Mexico, a move that some see as an attempt to amass some leverage in the debate over the border wall that Trump insists will be built and that Mexico will pay for. Mexican officials have repeatedly said they will do no such thing. Under the Merida Initiative, the State Dept has given Mexico $2.6 billion since 2008. That's to strengthen rule of law, counter narco-trafficking, support judicial reform and police professionalization. It doesn't include aid from other State Department programs. Mexico also gets funding from the departments of Defense, Energy, Labor, Health and Human Services, Interior, the Peace Corps, the US Agency for International Development and DHS. Kelly distributed an implementation memo on February 21 asking his staff to calculate how much direct and indirect aid DHS gives Mexico. That process is still underway.", -1331,2017/2/23,http://www.cnn.com/2017/02/23/asia/philippines-duterte-critic-de-lima-arrested/index.html,Philippines court orders arrest of Duterte critic on drug-related charges,"Manila, Philippines (CNN)One of the fiercest critics of Philippines President Rodrigo Duterte and his bloody crackdown on illegal drugs was ordered arrested Thursday on drug-related charges in what supporters say is a politically motivated vendetta.","Correction: A previous version of this story incorrectly described the status of the case against Sen. Leila de Lima. A court has ordered her arrest, but she is not yet in police custody. Sen. Leila de Lima is accused of having abetted the illegal drug trade in the New Bilibid Prison when she was justice secretary from 2010 to 2015. A judge in the Muntinlupa Regional Trial Court on Thursday afternoon found ""sufficient probable cause for the issuance of the Warrants of Arrest"" against de Lima and two others. A team from the Philippine National Police headed to the embattled lawmaker's residence south of Manila and then to the Senate, where de Lima sought refuge upon learning the warrant would be served Thursday evening. At the Senate, the sergeant-at-arms agreed to serve the warrant Friday morning, in line with an earlier televised request of the senator. ""The haste is deplorable,"" her fellow party members in the Senate said in a statement. A graphic reading ""One for Leila"" circulated on social media. A close ally, Sen. Kiko Pangilinan, asked social media users to ""please share (it) as a sign of our outrage against political persecution."" A few hours after the arrest warrant was issued, de Lima told reporters at a press conference that she would not run away from the cases against her. De Lima has consistently insisted she is not involved in the illegal drug trade. Allegations of payoffs Duterte first raised the allegations against de Lima in a speech in August. She's accused of receiving payoffs from convicted drug lords who were able to continue their illegal operations from behind bars while she was justice secretary. The prison facility is managed by the Bureau of Corrections, an arm of the Department of Justice. Duterte won the presidency on a platform of cracking down on crime, particularly illegal drugs. Since taking office in June, his police force has waged a bloody war on drug dealers and users, resulting in the deaths of thousands of suspects at the hands of police and vigilantes. De Lima became the subject of probes launched by Duterte's political allies after the senator initiated a Senate inquiry into alleged state-sanctioned killings in the course of Duterte's bloody war on drugs. A Senate committee, led by an ally of Duterte's, decided in October to drop its inquiry into the extrajudicial killings of drug dealers and users during the leader's first few months in office. In December, Duterte admitted to killing drug suspects during his time as mayor of Davao City. Ex-Davao Death Squad leader: Duterte ordered bombings Duterte: De Lima must 'face the music' Felons from the prison facility have directly linked de Lima to the penitentiary drug trade. But de Lima said the government pressured those convicts to testify and have an ""ax"" to grind against her. As justice secretary, de Lima conducted a raid at the New Bilibid Prison maximum security area that shocked the nation, revealing a luxurious lifestyle of high-profile inmates who are now among the witnesses against her. Duterte denies throwing person from helicopter De Lima has said she will take legal action to protect herself from what she says is political persecution. Last week, Duterte said he was confident the Justice Department's case against de Lima was airtight. He said the senator ""will have to face the music"" and the charges.", -1332,2017/2/23,http://www.cnn.com/2017/02/23/asia/kim-jong-nam-interpol-malaysia/index.html,Malaysia requests Interpol alert to help find North Korean suspects,"(CNN)Malaysia has asked Interpol to put out an alert for four missing North Korean suspects wanted over the death of Kim Jong Nam, police said Thursday.","Speaking to reporters, Malaysian Inspector-General of Police Khalid Abu Bakar said police had also formally requested an interview with the North Korean embassy's second secretary, who is wanted for questioning. Kim, the half brother of North Korean leader Kim Jong Un, died last Monday after a suspected poisoning while on his way to catch a flight to the Chinese territory of Macau from Kuala Lumpur. North Korea has furiously denied any involvement in Kim's death, publishing a strongly-worded article on Thursday in the country's state media, KCNA. It quoted a spokesman for the Korean Jurists Committee who said responsibility for Kim's death lay with Malaysia, as he had died on their territory, and criticized the investigation. ""If you look at Malaysian police's investigation from crime investigation perspective and legal perspective, everything is full of weak points and contradictions,"" it said. Embassy official, airline employee sought Interpol notices are issued to police in 190 different countries to help track fugitives and share information about wanted criminals. Malaysian police have previously said the four suspects who are the subject of the alert are believed to be back in Pyongyang. In addition to the four suspects, three North Koreans are wanted for questioning by Malaysian police, including Hyong Kwang Song, the 44-year-old second secretary at the North Korean embassy in Malaysia, and Kim Uk Il, an Air Koryo staff member. Both are believed to still be in Malaysia. Bakar said the North Korean embassy wouldn't be searched as they had diplomatic immunity. Suspects 'trained for murder' Indonesian Siti Aishah and Vietnamese woman Doan Thi Huong have already been taken into custody in connection with the alleged murder. Bakar said at a press conference Wednesday the two women were trained to wipe a liquid substance on Kim's face, then immediately wash their hands. He dismissed their earlier claims that they believed they had been on a prank show. ""They knew it was toxic. Of course they knew,"" Bakar said. Aishah's boyfriend, Muhammad Farid Bin Jalaluddin, who was taken in for questioning, was released on bond on Wednesday. Poison reports false: North Korea Diplomatic ties between North Korea and Malaysia are growing increasingly frayed as the rogue state continues to condemn Malaysia's handling of the investigation. Malaysian Prime Minister recalled his ambassador from Pyongyang after the North Korean ambassador accused their country of conspiring with ""hostile forces."" In the article published on KCNA, North Korea accused South Korean conservative media of publishing a ""false report"" that Kim had been poisoned. The article also fiercely rebuked Malaysia for its continued refusal to hand over Kim's body without DNA from a next of kin. ""This proves that the Malaysian side is going to politicize the transfer of the body in utter disregard of international law and morality and thus attain a sinister purpose,"" Thursday's article said.", -1333,2017/2/23,http://www.cnn.com/2017/02/23/world/pope-atheists-again/index.html,Pope suggests it's better to be an atheist than a bad Christian,"(CNN)If you're a Christian who exploits people, leads a double life or manages a ""dirty"" business, perhaps it's better not to call yourself a believer, Pope Francis suggested in a homily on Thursday in Rome.","""So many Christians are like this, and these people scandalize others,"" Francis said during morning Mass at Casa Santa Marta, according to Vatican Radio. ""How many times have we heard -- all of us, around the neighborhood and elsewhere -- 'But to be a Catholic like that, it's better to be an atheist.' It is that: scandal."" ""But what is scandal? Scandal is saying one thing and doing another."" In the Catholic Church, causing scandal also a grave offense. Examples of such sins abound, the Pope said, from money launderers to business owners who take beach vacations while stiffing their employees. Francis' sermon, as is customary, was an extended riff on Thursday's Mass readings, which include a passage from the Gospel on Mark. In it, Jesus says it is better to be drowned than to cause others to sin. Drawing on that passage, the Catholic Catechism says scandals include business leaders who encourage fraud, teachers who agitate students and manipulators who turn people away from moral values. In other words, anyone who leads others to do wrong, directly or indirectly, is responsible for the evil he has encouraged, the church says. So when Francis compares hypocritical Christians to atheists, he's not being flip; he's trying to protect his flock. In the United States, some Catholics have cited the church's teachings on scandal to argue that priests should not distribute Holy Communion to politicians who support abortion rights. Francis, a sharp critic of capitalist excesses, turned his scorn instead on greedy businesspeople. Fake Christians While many of this Pope's pronouncements are often assumed to be novel interpretations of Christian doctrines, Francis was also touching on an ancient debate: Is salvation open to all believers, or only those who do good while on earth? The Pope suggested the latter, in characteristically blunt language. He imagined a wealthy Christian knocking at the gates of heaven and saying, ""Here I am, Lord! ... I went to Church, I was close to you, I belong to this association, I did this... Don't you remember all the offerings I made?"" To which Jesus may reply, according to the Pope: ""Yes, I remember. The offerings, I remember them: All dirty. All stolen from the poor. I don't know you.' That will be Jesus' response to these scandalous people who live a double life."" Thursday's sermon is far from the first time Francis has targeted Christian hypocrites. In a sermon last February, the outspoken Pope called out the ""fakeness"" of Christians who talk piously, but do little to help others. ""To be a Christian means to do: to do the will of God -- and on the last day -- because all of us we will have one -- that day what shall the Lord ask us? Will He say: 'What you have said about me?' No. He shall ask us about the things we did."" It isn't the first time the Pope has mentioned atheists, either. In 2013, he raised questions for saying that heaven is open, potentially, to all people. ""The Lord has redeemed all of us, all of us, with the Blood of Christ: all of us, not just Catholics. Everyone. ""'Father, the atheists?' Even the atheists. Everyone!"" Francis continued, ""We must meet one another doing good. 'But I don't believe, Father, I am an atheist!' But do good: we will meet one another there."" The Vatican later issued a note clarifying that the Pope was simply saying that God's grace is free to all, even atheists, and urging Christians and non-believers to work together.", -1334,2017/2/23,http://www.cnn.com/2017/02/23/europe/sweden-trump-refugees-integration/index.html,"In Sweden, tensions temper pride over refugee policy","Stockholm, Sweden (CNN)With its brick and pastel-colored mid-rise apartment blocks, neatly-paved square and tree-lined streets, Rinkeby could be just about any town in Sweden.","Take a closer look, though, and you notice the Arabic signs in shop windows, overhear conversations in Kurdish, and see many faces of people of Somali descent. On the surface, it may feel a world away from other troubled immigrant neighborhoods in Europe -- Molenbeek in Brussels, say, or the banlieues of Paris -- but Rinkeby, however well-kept, has its problems too. When Donald Trump suggested something was going wrong in Sweden -- long hailed a glowing example for its decision to welcome so many refugees and migrants -- his remarks were met first with confusion, and then with derision. But after riots broke out here in Rinkeby, a short drive from the center of Stockholm, just days later, one local resident told CNN he thought Trump's comments were ""spot on. I think everything he said is true."" The man, who asked not to be named, is the son of two immigrants who came to Sweden from Greece before he was born. But, he argues, immigration to the country -- and to his neighborhood -- has now gone too far. ""It is out of control. There is a lot of them, there is no place for them,"" he says. ""The real problem is the refugees. They come here and think they can do whatever they want."" Others remain absolutely convinced that Sweden's immigration policy is something to be proud of. ""I know we have a lot of migrants, but I do not see it as a problem,"" says student Natalie Lindum, 20, from Stockholm. ""Yes, we have a lot of people coming, but it's something I welcome. ""I have a lot of friends' parents who are not from Sweden, but I love that. I love that it's multicultural. They are good people, and I think there is actually less racism in Sweden nowadays."" New arrivals Trump was certainly right about one thing on the subject of Sweden and refugees: ""They took in large numbers,"" he told the rally in Florida at the weekend. Sweden has received more refugees per capita than any other European nation. At the peak of the European migrant crisis in 2015, more than 160,000 people arrived in Sweden requesting asylum -- a huge surge for a country with a population of fewer than ten million. ""The equivalent in the US would be to take in six to seven million refugees,"" said Magnus Ranstorp, a counter-terrorism expert at the Swedish National Defense University. With such a large number of new arrivals, it's perhaps no surprise that there have been teething problems. Integration (or the lack of it) has become a real concern -- particularly in large cities like Stockholm, Malmo and Gothenburg. Josefin Larsson, 25, a salesperson from Gothenburg, is half-Swedish, half-Bolivian. She recently moved back to Sweden after more than a decade away, and says she immediately noticed a difference. ""In the cities, you see almost no Swedish people,"" she explains. ""They have moved out, so it's almost all people from different countries, and there are so many people on the streets, begging ... it's so sad; there are so many, and [the government] can't take care of everybody."" Larsson says that when her mother's family moved to Sweden from South America more than 20 years ago, ""it was very easy for them to become part of society."" ""The government took the time to help them learn Swedish, get a job, learn about the culture. There were programs to make them feel welcome,"" she says. ""Now it's very different."" In an attempt to boost links between Swedes and immigrants, community groups and organizations in some towns and cities across Sweden are taking matters into their own hands. Kompis Sverige (Swedish Buddies) is a kind of matchmaking service, introducing ""new Swedes"" to longer-term residents, ""to build friendships and prevent exclusion."" And Invitationsdepartementet (The Department of Invitations) links up fluent Swedish speakers and recent arrivals who want to improve their language skills while sharing a home-cooked meal, fighting ""exclusion and xenophobia by being welcoming and inclusive."" ""There are so many people. Everyone wants to help, but they don't know how,"" says Larsson, who says she knows of similar music- and church-based efforts aimed at improving integration. Integration or suspicion But many Swedes remain suspicious. The Rinkeby resident we spoke to says the government is not doing enough to resolve the issues caused by the scale of new arrivals. ""That is the problem, they are not acting, they are letting it go,"" he said. ""It will become harder and harder later on to control."" Larsson says that while everyone assumes that Sweden is a safe place, gang violence and security threats mean she no longer feels confident walking down the street. ""It's scary here in Sweden,"" she says. ""We have bomb threats and stuff like that -- you don't really feel safe ... I have a friend who was attacked on her way home."" There have been high profile attacks committed by refugees: In January 2016, a 22-year-old woman was murdered at the asylum center where she worked, leading to pressure on the government to curb the number of migrants coming into the country. But police here challenge the idea that refugees are responsible for crime in low-income neighborhoods like Rinkeby. ""I can't see any connection between refugees and this situation in these areas,"" says Varg Gyllander, a press officer with the Stockholm police. ""I'm not denying that there are integration issues,"" says Ransdorp. ""What is wrong to do is to conflate immigration, crime and terrorism, because those linkages are not that strong."" ""The reality is much more complex,"" says Amir Rostamy, a police officer who specializes in organized crime. Crimes against Muslims Between 2012 and 2015, Sweden granted asylum to 101,925 refugees -- that's about 1% of the country's total population. There was a 7% rise in crime over that period, but the US State Department Bureau of Diplomatic Security says the rise in 2015 was largely due to a spike in computer-based fraud. ""The categories of crimes that reported the highest increases were vandalism and computer-based fraud. 2015 saw a slight decrease in thefts, sex offenses, and traffic crimes,"" the agency said. Contrary to what President Trump appeared to suggest, Sweden hasn't been the target of a serious Islamist extremist terror attack since 2010, when Taimour Abdulwahab blew himself up while attempting to carry out a double bomb plot targeting Christmas shoppers in Stockholm. And the country's Muslims are far more likely to be the victims of hate crimes than the perpetrators. Crime against Muslims in Sweden jumped by nearly 90% between 2012 and 2015, Swedish statistics show. Rise of the far-right Ranstorp and other law-enforcement experts say the country is struggling with anti-immigrant extremists. ""One of the biggest problems we have here is right-wing extremism,"" Ranstorp says. ""There have been right-wing groups that planted explosive devices right near asylum centers."" Swedish officials up to the country's leader publicly chided the US President for saying the country was ""having problems they never thought possible."" ""We must ... all take responsibility for using facts correctly and for verifying any information that we spread,"" Prime Minister Stevan L?fven said on Monday. But Trump's comments have been welcomed in some political circles here. ""I'm very grateful to President Trump that he addressed this issue,"" says Mattias Karlsson, a lawmaker from the right-wing Sweden Democrat party. Karlsson's party holds the third-largest block of seats in the country's parliament, and he says the country is in trouble. ""I would describe it as a crisis. I have seen serious problems with law and order,"" Karlsson tells CNN. ""If you don't control the borders, if you have an irresponsible refugee problem, you will get problems. And we have serious problems here."" But Ranstorp rejects Karlsson's view of their country: ""It's not at all in crisis. Look around. It's very calm and quiet. Of course there are isolated incidents ... but police are dealing with them.""", -1335,2017/2/23,http://www.cnn.com/2017/02/23/politics/reince-priebus-steve-bannon-cpac-unity/index.html,Bannon offers up Trump agenda in rare public speaking appearance,"National Harbor, Maryland (CNN)White House chief strategist Steve Bannon, in a rare public appearance, outlined President Donald Trump's agenda Thursday before an enthusiastic crowd at the Conservative Political Action Conference.","""I think one of the most pivotal moments in modern American history was his immediate withdrawal from TPP. It got us out of a trade deal and let our sovereignty come back to ourselves,"" he said, referring to the massive Trans-Pacific Partnership trade agreement. That decision, which he called just a first step in re-imagining US trade policies, was just one of three Bannon pointed to as the most important steps Trump has taken since becoming president just over a month ago. On the national security front, Bannon highlighted Trump's executive orders on building a border wall and beefed up immigration enforcement policies. And thirdly, he stressed the importance of Trump's moves to begin a ""deconstruction of the administrative state"" by appointing individuals from the private sector to key economic Cabinet positions who will help strip down federal regulations. Bannon joined White House Chief of Staff Reince Priebus onstage at CPAC, which Bannon credited with helping launch Trump's political career. The two men discussed Trump's electoral victory, the administration's agenda and railed against the media together as they worked to dispel notions that they are rivals competing for power and influence within the West Wing. ""Well, in regard to us two, I think the biggest misconception is everything that you're reading,"" Priebus said. ""If you look at the opposition party,"" Bannon said, referring to mainstream media outlets, ""and how they portrayed the campaign, how they portrayed the transition and now how they're portraying the administration -- it's always wrong."" The two sang each other's praises as they insisted their working relationship could not be closer. (""We share an office suite together. We're basically together from 6:30 in the morning until about 11 o'clock at night,"" Priebus said.) While Priebus called Bannon ""incredibly loyal"" and ""extremely consistent,"" Bannon said he admired Priebus' ""determination"" and noted that he is ""always kind of steady."" The forum also provided a rare public view of Bannon's thinking, one filled with dark portrayals of the news media, visions of a ""new political order"" and grand plans to reimagine the US's posture abroad. ""That is why I am proudest of Donald Trump. All the opportunities he had to waver off this, all the people who have come to him and said, 'Oh you've got to moderate.' Every day in the Oval Office, he tells Reince and I: 'I committed to this with the American people, I promised this when I ran and I am going to deliver on this,' "" Bannon recounted. And while Priebus and Bannon worked to show a united front on Thursday, Bannon acknowledged that they don't always agree, which he called a main reason they are ""good partners."" The joint appearance was the latest attempt by the two men to shoot down reports of division, instead claiming in a series of recent interviews that they enjoy a chummy, symbiotic relationship. Bannon told The Hill newspaper last week that Priebus ""is doing an amazing job."" ""We are executing on President Trump's agenda in record time. That's because Reince is getting the job done,"" Bannon said. ""We are a completely united team dedicated to enacting his bold agenda to bring back jobs and keep this country safe,"" Priebus echoed in the interview. And in an interview with New York magazine, the two men joked about giving each other back rubs and said they speak all day long ""until somebody falls asleep."" White House sources have also backed up their account in recent weeks, but a source who spoke separately with both men last week told CNN that while Bannon had nothing negative to say about Priebus, the White House chief of staff badmouthed Bannon over the phone. The two men's professional backgrounds could not be more different. While Priebus has long been a creature of establishment Republican politics -- rising to Republican National Committee chairman before becoming chief of staff -- Bannon spent most of his professional career amassing wealth in the private sector before taking on a role as the head of the bomb-throwing, establishment-bashing Breitbart News site. After Trump was elected, their new positions atop the West Wing roster were jointly announced atop. The two men would work together as ""equal partners,"" Trump said in the release.", -1336,2017/2/23,http://www.huffingtonpost.com/2017/02/23/donald-trump-spell-cast_n_14969544.html,Witches Plan To Cast Mass Spell Against Donald Trump,The key ingredient to the ritual: An unflattering photo of the president.,"Donald Trump's presidency has cast a pall over the nation, so now witches are casting a spell against him. A document making its rounds among the witch community is asking people who practice the craft to perform a monthly binding ritual until the president is removed from office. In order to work, the mass spell must be performed at midnight EST on every waning crescent moon.- The first one is happening on Friday and will be followed by similar spell cast events on March 26, April 24 and May 23 and beyond. Unless, of course, Trump is cast out of office before then. Michael M. Hughes, who writes about the paranormal, posted the spell at ExtraNewsFeed last week. He stressed that a binding spell is different than a curse or hex. ""It's a restraint, not harm,""ughes told The Huffington Post. ""I see it as self-defense.""?Hughes said he heard that two separate witch groups were planning the spells and asked if he could take it to a wider audience. The spell instructions have gone viral, and there is a group on Facebook dedicated to answering all the questions people may have. Performing the spell takes a good deal of dedication, including amassing the following: Practitioners are supposed to prepare for by writing ""donald J. Trump""?on the orange candle stub with a pin or nail.-They then arrange the other items in a circle and lean the Tower card against something so that it's standing up. Hughes suggests reading the 23rd Psalm aloud before beginning the spell by lighting a white candle. The complete spell can be read here, but some of the lines include: ""Hear me, oh spirits Of Water, Earth, Fire, and Air Heavenly hosts Demons of the infernal realms And spirits of the ancestors (Light inscribed orange candle stub) I call upon you To bind Donald J. Trump So that he may fail utterly That he may do no harm To any human soul Nor any tree Animal Rock Stream or Sea""?Next, practitioners are supposed to burn the photo with the orange candle, chanting "" mote it be.""?But if that sounds a little too ""witchy,""?Hughes says a simple ""You'r fired!""?will also work. The spell is completed by burying the candle stub or carrot, or discarding it in running water. When the ceremony is over, Hughes says it's crucial to ground yourself by laughing loud and hearty since, ""trump hates people laughing at him.""?He admits the spell has a satirical element, but insists that ""doesn""t invalidate it.""?""I'm OK with people calling it a stunt,""?he said. ""the spell can still be effective. I think it's already working. Some Christian groups are calling for a day of prayer to counteract the spell. That's magic, right there. When people do a ritual, that's changing consciousness.""?Kevin Ambrose, a writer at Christian Nationalism, suggests people protesting the spell recite the 23rd Psalm, coincidentally the same biblical passage recommended by Hughes. As satisfying as a mass spell might seem for Trump detractors, proving it has an effect is another thing altogether. After all, any bad luck Trump experiences after the spell can be attributed to the spell without being disproven. Hughes concedes that but think the actual ritual is therapeutic in and of itself. ""If people feel more empowered and less beaten down, that's valid,""?he said. Share this slide: The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1337,2017/2/23,http://www.huffingtonpost.com/2017/02/23/multiracial-actors-read-transcripts-from-former-slaves_n_14969530.html,New Film Features Multiracial Actors Reading Powerful Transcripts From Former Slaves,"Michelle Jackson wanted to make ""Another Slave Narrative"" to show that slavery isn't just a black problem, it's an American problem.","Michelle Jackson wanted to make another film about slavery. But the Los Angeles-based filmmaker faced some opposition from those around her who say portrayals of the black experience should go beyond slavery.-She agreed that black stories are but she said she wasn""t comfortable with the idea that many Americans were tired of the subject. Jackson told The Huffington Post that ""django,""?""?2 Years A Slave""nd ""Amistad""?and similar films ""do not speak for 4 million enslaved black bodies""he said there are stories that still need to be told. So she took on the task of telling them by highlighting the stories of individual former through her film, ""Another Slave Narrative.""?The 37-minute film reenacts the original transcripts from former slaves Lewis Jenkins, Fannie Moore, William Moore, Delicia Ann Wiley Patterson,-Mary Reynolds and Elizabeth Sparks. They were seven of 2,300 free men and women interviewed in the Federal Writers""?Project Slave Narrative Collection 1936-1938. Jackson said that she felt compelled by these interviews because they didn""t romanticize life after emancipation. Instead, free men and women told the traumatic realities that they faced after what was meant to be freedom. ""Tainstream American culture believes that because black enslaved people were emancipated, whatever that means, slavery's trauma and its effects on black enslaved people discontinued as soon as the plantation gates were opened,""?she said. ""It didn""t discontinue. They lived with it their entire lives. For some, that was 100 years of PTSD.""?One woman's story that especially moved Jackson was that of Mary Reynolds, who at the time of the interview was a blind 105-year-old. Reynolds was separated from her family was a child and sold to a white man. Even more than 90 years after enslavement, her memories still haunted her. ex-enslaved Mary Reynolds in #anotherslavenarrative. A post shared by Michelle Jackson (@anotherslavenarrative) on Dec 7, 2016 at 11:24pm PST Jackson wanted the story of Reynolds and the other men and women to impact her audience, no matter their background. So she casted both black and non-black actors to bring these individual stories to life. The Los Angeles-based filmmaker wrote in a blog post-that she was admittedly hesitant to cast non-black actors. But after considering the heavy toll these roles can play on black actors, she moved forward.- She casted 22 diverse actors ""�who identify as Black American, Nigerian American, white, Chinese, Indian and Latina ""?whom she worked with in the past. Between six and eight actors read each monologue. Making some grammar and syntax changes in the transcripts, Jackson instructed the remove their assumptions of how slaves talked and speak naturally.- ""�[W]hen performing their monologues, I asked them to imagine that they are actually recounting their story, in their body, with their voice, with their mannerisms, and with their emotions. I asked them to not worry about how they thought the interviewee might react or behave,""?Jackson told HuffPost. ""I just wanted viewers and actors to connect with the interviewees""?story as quickly as possible, especially since I wasn""t able to fit each interviews full-length transcript in the film.""?Jackson also said she didn""t want to omit the word ""nigger""?from the scripts. She didn""t censor the monologues, except that of one black actor who preferred not to use word, the filmmaker said censoring the original transcripts ""would have imposed a modern-day moral approach""?to these men and women who used their words with their own sense of morality. She also added that she thought it was ""important""?to have white actors use ""nigger""?in first person. ""not surprisingly, we are used to watching slave narrative films and TV shows that feature white actors who employ ��nigger""?in the third-person and derogatorily towards black bodies,""?she told HuffPost. ""I didn""t know how viewers would be impacted when they saw an attractive blonde hair and blue-eyed actor, like Jilon VanOver, referring to himself as a ""nigger""?during his portrayal as formerly enslaved, Lewis Jenkins, but I did expect it to shift something ""?left, right, down, up, I'm not sure""�inside their paradigm related to slavery and the black and white experience in America.""?Jackson shared that her film has received a lot of positive feedback. She said she wants to uncover the 2,300 former slave interviews in the collection by continuing this series with a multiracial and multigenerational cast.- She noted that multiracial casting probably won""t work for all films about slavery, but Jackson said she would like to see more directors follow suit. Not only to show that slavery is an issue that should concern all Americans, but also to show that we should honor the lives of those who were enslaved.- ""Tary Reynolds's story matters. Fannie Moore's story matters. Lewis Jenkins's story matters. My great great aunt's story matters... I created ""another Slave Narrative""?to honor those who endured slavery and who negotiated what it meant to be free in the country that originally enslaved them,""?she said. ""As a descendant of those who were enslaved, telling our collective story is the least I can do.""?Watch-""Another Slave Narrative""?above. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1338,2017/2/23,http://www.huffingtonpost.com/2017/02/23/arkansas-lgbtq-supreme-court_n_14969532.html,Arkansas Supreme Court Blocks Local LGBTQ Nondiscrimination Measures,The decision voided anti-discrimination protections passed in 2015.,"The Arkansas Supreme Court ruled on Thursday that state law barred local governments from enacting ordinances banning discrimination based on sexual orientation or gender identity, but justices did not address the law's constitutionality. The unanimous decision voided anti-discrimination protections passed in 2015 in Fayetteville, a liberal city that is home to the state's flagship university, as well as similar ordinances adopted by other local governments in the politically conservative state. State Attorney General Leslie Rutledge, a Republican, had appealed a lower court ruling upholding the Fayetteville ordinance, which prohibited discrimination against gay, lesbian, bisexual and transgender people in employment, hiring and other aspects of commerce. Rutledge cited an Arkansas law forbidding cities and counties from extending nondiscrimination protections beyond those classes identified at the state level. The legislature passed that measure in 2015 after initial attempts by Fayetteville to enact an anti-discrimination ordinance failed.-Fayetteville and several other cities then passed ordinances in response to state law. Although other state statutes against bullying and spousal abuse include gender identity and sexual orientation, the Arkansas civil rights code makes no mention of either. In siding with Rutledge, the Supreme Court held that the state civil rights law was the controlling statute.-The court said Fayetteville's city ordinance could not stand because it created a direct inconsistency between state and municipal law. Left undecided was whether the underlying state law passed constitutional muster. The court returned that issue to the local trial judge for consideration. Rutledge said she was grateful for the ruling, noting that Arkansas""?law required ""discrimination protection be addressed at the state level and be uniform throughout the state.""?LGBT advocates, who argue the state law banning local protections for gay and transgender people is discriminatory, said they were disappointed. ""We would have preferred to have a final outcome today, but I'm certain there will be further appellate review after the trial court rehears the case,""?said Holly Dickson, a staff attorney for the American Civil Liberties Union at Little Rock. The ACLU filed a brief in support of the Fayetteville ordinance. (Editing by Colleen Jenkins and Leslie Adler) Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1339,2017/2/23,http://www.huffingtonpost.com/2016/11/16/7-must-try-morning-rituals-from-cities-across-america-that-will-make-you-infinitely-happier-tomorrow_n_14923150.html,7 Must-Try Morning Rituals From Cities Across America That Will Make You Infinitely Happier Tomorrow,"Forget the snooze button, once and for all.","Rise and shine! Then eat your corn tortillas, sing along to Baha""�i prayers, or dip your toes in the ocean""�depending on where you live, of course. A morning ritual, or just a little ""�me-time""?first thing, can help you start your day off on the right foot. That's why We're partnered with Tropicana to get the scoop on what people in cities across America do first thing in the morning to kick off their day right. Give them a read, and then try some of these rituals yourself for an AM boost. ""Everyday at about 6 a.m. my two-year-old son jumps in bed with my husband and me for some morning snuggles; then his five-year-old sister joins us about half an hour later. Eventually, we all get dressed, eat breakfast and pack lunches, before heading off to school/work. On our morning drive, we typically sing, and boogie to a couple of Baha""�i prayers put to music by our friend Devon Gundry.""?""?Jacqueline Thiesse Namati, Concord, Massachusetts Whether it's your kids, your partner or your favorite furry friend, start your day with a good ol""?fashioned cuddle. Not only can it reduce stress, it feels pretty good, too. And for Baha""�i prayers set to music, check out Devon Gundry's Refrenergy. ""I wake up at 5 a.m. so that I can slowly ease into my day. I start with 10 minutes of foam rolling before packing my bag and heading to gym class at 6 a.m. Then it's typically a spin class at SoulCycle, followed by strength training at Barry's Bootcamp. These morning hours (all three of them) are critical in helping me stay focused throughout the course of my day.""?""?Ali Martillotta, New York, NY If you can get motivated for a morning workout, there are plenty of benefits. Not only will you give your metabolism a boost, but you'll also up your endorphins, which may set you up for good vibes for the rest of the day. ""I spend at least five minutes stretching every morning. It reminds me that I exist in corporeal form and it prepares me for my commute. If you don""t know, LA traffic is world renowned for being efficient and stress-free. (Okay, if you believe that, please send me your bank and Social Security info and I promise to make you a millionaire).""?""?Paul Hamlet, Los Angeles, California Yes, traffic can wreak havoc on your morning mojo. So, to fight the bumper-to-bumper blues, start your day slowly and give your body what it needs before jumping in the car. ""I wake up at 6:30 a.m. and talk to my husband while he gets ready to leave at 7 a.m. Our conversation is never about anything major, just plans for the day, the weather, or something interesting we may have read the night before. It eases me into my morning. If it's nice enough outside (only half the year, really) I'll also go for a walk along the lakeshore trail.""?""?Annie Boye, Chicago, Illinois Chatting with your partner in the morning""�even if it is only about the weather forecast""�can help you connect while your minds are fresh, as opposed to saving all your communication for the end of the day when you'r more likely to be exhausted. ""Every morning I get up around sunrise and walk up and down the beach with my bare feet in the sand and water. This makes me feel connected, grounded, and it allows me to plan the day and make any important decisions with clarity and calmness.""?""?Aryan Rashed, Miami, Florida If you'r not fortunate enough to live by the beach, substitute an ocean stroll for a forest walk, or even a quick amble through a local park-anything to get a daily dose of nature. ""the thing that's a constant in my mornings is breakfast with my partner and two young kids. We either have fried, fresh chicken eggs and corn tortillas, or a hearty mush/porridge that's equal parts amaranth, millet, and quinoa, plus a pat of butter, coconut flakes, dried mulberries and chia seeds. It's been a few years, and we haven""t gotten sick of it yet!""?""?Lauren Rochell, Austin, Texas People who eat a healthy breakfast are more likely to maintain their healthy diet throughout the day. Plus, gathering around the kitchen table before work or school is another opportunity for family bonding. So, find the pancakes or porridge that work for you and pay tribute to the most important meal of the day. ""It's pretty standard for me to blast upbeat music when I'm getting ready for work in the morning, particularly when I'm in the shower and doing my hair and makeup. My go-to Pandora stations these days are Shakira Radio and Milky Chance Radio. On days when I need to be a little more Zen, I trade those stations for Bonobo Radio or classical music.""?""?Roxana Rezai, San Francisco, California The right tunes can help reduce AM anxiety and stress, plus it can help get you moving if you do decide to hit the gym right off the bat. Researchers have even suggested that music can increase levels of IgA-an antibody that's critical in boosting our immune systems. Getting off on the right foot can positively impact your entire day. Start your day with a serving of Tropicana for a morning ritual that will help bring out your best you! HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1340,2017/2/23,http://www.huffingtonpost.com/2017/02/23/kitchen-knives-recalled_n_14969144.html,Millions Of These Knives Are Being Recalled Because Their Blades Can Break,The massive recall of Calphalon Contemporary Cutlery affects products sold as far back as 2008.,"Roughly 2 million kitchen knives are being voluntarily recalled following reports of hand and finger lacerations from the blades breaking, federal authorities announced Wednesday. The massive recall of Calphalon Contemporary Cutlery-specifically targets blades sold between August 2008 and this past December,-the Consumer Product Safety Commission-said in a press release. Thirteen models that were sold individually for $25 and in sets for $300 are specifically being recalled. The recalled model numbers are as follows: 1808008, 1808009, 1821332, 1922890, 1922971, 1922976, 1932810, KNR0005C, KNR0007C, KNR10045C, KNR4008C, KNSR002C and KNSR0102C. Of the products sold ""?about 7,000 of which were in Canada ""?there have been about 3,150 reports of broken knives.-At least four of the injuries required stitches,-the CPSC said. ""Consumers should immediately stop using the recalled cutlery and contact Calphalon for a replacement cutlery product,""?the safety commission states on its website. The list of stores that the models were sold at includes J.C. Penney, Kohl's, Macy's and Amazon.com Anyone who has one or more of these knives is asked to contact the company to exchange the product for a replacement.- HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1341,2017/2/23,http://www.huffingtonpost.com/2017/02/23/doj-private-prisons-sessions_n_14968802.html,Jeff Sessions Reverses Obama-Era Policy That Curtailed DOJ's Private Prison Use,"For-profit prisons were found to be more dangerous, but the attorney general said they're needed to ""meet the future needs of the federal correctional system.""?,WASHINGTON ""?Attorney General Jeff Sessions on Thursday withdrew an Obama-era Justice Department memo-that set a goal of reducing and ultimately ending the Justice Department's use of private prisons. In a one-page memo to the acting head of the Bureau of Prisons"," Sessions wrote that the August 2016 memo by former Deputy Attorney General Sally Yates ""Changed long-standing policy and practice",000 spots in its prisons that are presently either unused or underutilized. CoreCivic -1342,2017/2/23,http://www.huffingtonpost.com/2017/02/21/the-20-funniest-tweets-from-women-this-week_n_14968410.html,The 20 Funniest Tweets From Women This Week,,"The ladies of Twitter never fail to brighten our days with their brilliant ""?but succinct ""?wisdom. Each week, HuffPost Women rounds up hilarious 140-character musings. For this week's great tweets from women, scroll through the list below. Then visit our Funniest Tweets From Women page for our past collections. Our kids are gonna be in class learning random facts about the presidents like Obama once worked at Baskin Robbins and Trump can't read. i showed my tree identification class notes to more than three people at a party this weekend why am I single So are we doing spring nail colors on account of climate change or...? What's the plan here my favorite genre of literature is people writing about why they're nervous and sad and afraid. it's called neurotica now whenever i check the news, i gotta have 2 to 7 baby goat pics on standby Hey upstairs neighbor vacuuming at 11:45 pm: DON'T. I often go to Justin Trudeau's Twitter page & pretend he's my President. I read his thoughtful, coherent tweets & just linger for a spell... I'm gonna be out of the country for a few days so, don't burn down America without me! I love watching politicians walk into these town halls where everyone is booing. It's like they've arrived at the worst surprise party ever. Purebread dogs vs. inbread dogs pic.twitter.com/e1nC0d7EkR Aladdin and jasmine probably did it on the poor magic carpet who was like :( [buys a bunch of new books to read] wow, can't wait to dive into my new books [uses them as an armrest while I scope out ebay] i keep going to the fridge for groceries i bought in my dream When life hands you lemons, ask for limes instead. Now ask life for tequila and triple sec. Now thank life for the margaritas. Hobbies include: checking my phone. - - - 2017: this weather is crazy nice out 2018: remember strawberries? Starting a business called Hangover Yoga. It's 20 minutes of eating nachos followed by 40 minutes of Corpse Pose. Being alone in a strange town makes me want to do some real fucked up shit, like becoming a person who says ""ciao"" Things you overhear at the office: ""The only thing I don't like about @Trevornoah is that he hasn't asked me out yet"" The weird thing about wearing a jumpsuit is having to get naked at work to pee. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1343,2017/2/23,http://www.huffingtonpost.com/2017/02/23/trump-military-operation-deportations_n_14968058.html,"No 'Military Forces' Will Be Used In Deportations, Trump Officials Say","Administration leaders scrambled after the president declared his immigration enforcement effort a ""military operation.""","WASHINGTON ""?Hours after President Donald Trump said that recent immigration enforcement efforts were ""A military operation,""?Homeland Security Secretary John Kelly assured Mexican officials and the public that they were not. The secretary, a retired general, said emphatically that the military forces would not carry out deportation efforts, which are a law enforcement priority. - ""there will be no ""?repeat, no ""?use of military forces in immigration operations. None,""?Kelly said during a press conference after he and Secretary of State Rex Tillerson met with Mexican officials in Mexico City. ""Yes, we'll approach this operation systematically, in an organized way, in a results-oriented way, in an operational way, in a human dignity way,""?Kelly continued. ""This is the way great militaries do business. ... It is also the way great legal organizations ""?police and federal police ""?do business.""?White House press secretary Sean Spicer also attempted to clean up Trump's statement during a press briefing later Thursday, saying that the president was referring to the ""precision""?and ""Hlawless manner""?in which his executive orders on immigration were being carried out. ""the president was using that as an adjective,""?he said of Trump's ""military operation""?comment. ""It's happening with precision and in a manner in which it's being done very, very clearly. ... The president was clearly describing the manner in which this was being done.""?Last week, White House officials said they were not considering mobilizing the National Guard to help enforce immigration law, which had been floated in a draft memo obtained by the Associated Press. Immigration and Customs Enforcement, as a DHS spokeswoman noted in an email on Thursday, is a ""law enforcement agency and all operations are conducted by trained law enforcement officers and agents.""?Kelly has been charged with carrying out and defending some of Trump's most controversial policies, such as his plan to broaden the swath of people to be targeted for deportation and his executive order to suspend all refugee resettlement and ban some foreign nationals from the country. The latter order is currently blocked in the courts. Kelly said on Thursday that Trump's policies were not ""mass deportations.""?""Let me be very, very clear: There will be no ""?repeat, no ""?mass deportations,""?Kelly said at the press conference. ""Everything we do in DHS will be done legally and according to human rights and the legal justice system of the United States. All deportations will be according to our legal justice system, which is extensive and includes multiple appeals. The focus of deportations will be on the criminal element.""?Both Kelly and Tillerson emphasized the need to work together with Mexican officials, some of whom have balked at the president's promise to force their government to build a wall on the U.S.-Mexico border. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1344,2017/2/23,http://www.huffingtonpost.com/dr-logan-levkoff/an-open-letter-to-andy-cohen_b_14968772.html,An Open Letter To Andy Cohen,We need to hold public figures (from politicians to reality stars) accountable.,"Dear Andy, I am a loyal Bravo watcher. I am a reality television connoisseur and devour my shows in bulk whenever my schedule permits. I am one of your people, which is why I am sad to write this letter to you. I know, too well, the criticism of the unscripted genre, having been a small part of it. I also know that I could be writing this note to challenge stereotypes of women, relationships, values, and perceptions of wealth and success. But I'll save that for another day. Today, I write on behalf of LGBTQ allyship. Here's the deal: I'm getting tired (really tired) of the blatant homophobia being masked as silly gossip or a humorous crutch in some of the franchises, most recently, ""�Vanderpump Rules""?and the ""real Housewives of Atlanta.""?I know, Andy, you called it out at last year's RHOA reunion. Unfortunately, it seems that some of the casts still haven""t gotten the message. Last month on ""�Vanderpump Rules,""?Jax Taylor's sexual past and what (and who) it may or may not include became fodder for gossip and speculation yet again. That Brittany Cartwright's mother had a visceral (and painfully visible) reaction to the idea that her daughter's boyfriend may have had a same sex experience shows that not only is a potential bisexual past a real issue, but it remains a joke (albeit an unintentional one) throughout the series. This past month (in screen time as opposed to real life) on RHOA, viewers watched accusations being hurled about Kandi Burress""?sexuality. These are infuriating not simply because of the vicious tone of the verbal attacks, but also because it is clear that they are rich with hypocrisy. Consenting adults are entitled to do whatever they want sexually and no one has the right to label who someone else is. We define ourselves and there is no singular way for a human being to live, love, or express themselves. But that intellectual argument aside, it's also the tone that Porsha Williams (and some of the other women) use when they say ""lesbian,""?(as if it's a bad thing) that really does it for me. None of us want to consider that the people who come into our homes through our screens may be homophobes, but""?well, hanging out with some fabulous queens who style you and do your makeup doesn""t make you a supportive ally. Words count just as much as action. And many of the words we are hearing these days are ugly and judgmental. Lately, I feel I uncomfortable watching many of the shows I consume. Admittedly, some of these concerns are not exactly new, but in light of what is going on in our country with respect to LGBTQ rights, we need to do better. Most important, we need to hold public figures (from politicians to reality stars) accountable. By the way, I recognize that I am a white woman in a heterosexual relationship with a certain amount of privilege stating these concerns. And sure, some people may call me a snowflake. Truth is, I really don""t care. I stand by my words. Thanks for listening. Call me if you want to talk. xo, Logan This piece was originally published on Medium. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1345,2017/2/23,http://www.huffingtonpost.com/2017/02/23/good-sex-but-now-im-hungry_n_14968006.html,23 Honest Things People Say After Having Sex,"""Do you mind if I use you as a reference?""","Let""?be honest about sex: You may talk dirty in the moment but once the deed is done, the conversation tends to be considerably less sexy.-(Seriously, if you're never said ""you hungry?""?after sex, you'r lying.) For proof of how unsexy post-coital convo can be, look no further than the-#ThingsISayAfterSex tweets people are currently sharing on Twitter. Below, some of the funniest responses. that was good, now where's the remote #ThingsISayAfterSex #ThingsISayAfterSex ... you hungry? Good game #ThingsISayAfterSex #ThingsIsayAfterSex okay but Hillary won the popular vote Don't let this good D distract you that the Falcons blew a 25 point lead to my Patriots #ThingsISayAfterSex I need to pee. #ThingsISayAfterSex him: did you come? me: #ThingsISayAfterSex pic.twitter.com/vxb4WwtPEe You can stay but I'm going to sleep #thingsisayaftersex Has the cat been watching the entire time? #ThingsISayAfterSex #ThingsISayAfterSex Is that it? Uh, yeah I came. I gotta go now. #ThingsISayAfterSex #thingsisayaftersex "" What's for dinner tonight???"" nothing because hands don't talk#ThingsISayAfterSex be sure to like, subscribe #ThingsISayAfterSex we still 'just friends' ? #ThingsISayAfterSex #ThingsISayAfterSex ""Thank you; come again."" #ThingsISayAfterSex I need a bacon cheeseburger NOW #ThingsISayAfterSex DOESN'T MATTER, HAD SEX Go team! *high fives*#thingsisayaftersex ""Go ahead and talk, I'm just resting my eyes, promise.""#thingsIsayaftersex CNN is FAKE NEWS#ThingsISayAfterSex Do you mind if I use you as a reference ? #ThingsISayAfterSex Are there any Go-Gurts left? #ThingsISayAfterSex HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1346,2017/2/23,http://www.huffingtonpost.com/2017/02/23/louie-gohmert-giffords-town-halls_n_14967984.html,Louie Gohmert Won't Attend Town Halls Because 'Giffords Was Shot At A Public Appearance',"""I was shot on a Saturday morning,"" former Rep. Gabby Giffords said. ""By Monday morning, my offices were open to the public.""","Rep. Louie Gohmert (R-Texas) invoked the shooting of former Rep. Gabby Giffords (D-Ariz.) on Thursday to explain why he doesn""t want to meet his constituents in a town hall meeting. ""At this time, there are groups from the more violent strains of the leftist ideology, some even being paid, who are preying on public town halls to wreak havoc and threaten public safety,""?Gohmert said in a statement, perpetuating GOP politicians""?unfounded claims that ""paid protesters""?are disrupting the meetings.- Gohmert then mentioned Giffords, who was shot in the head in 2011 during a meeting with constituents. She survived, but six others died in the tragedy.- ""threats are nothing new to me, and I have gotten my share as a felony judge,""?Gohmert said. ""however, the House Sergeant at Arms advised us after former Congresswoman Gabby Giffords was shot at a public appearance, that civilian attendees at Congressional public events stand the most chance of being harmed or killed ""?just as happened there.""?Gohmert's statement comes as-angry constituents-flood town hall events across America, demanding that their representatives stand up to President Donald Trump's policies-and explain the GOP's plans to replace Obamacare.- Trump has called the angry town hall attendees-""sad!""?and said their participation is ""planned out by liberal activists,""?as if that somehow reduces their legitimacy. The so-called angry crowds in home districts of some Republicans are actually, in numerous cases, planned out by liberal activists. Sad! In a statement released Thursday, Giffords reminded Gohmert that she attended town halls despite the tragedy she faced. ""I was shot on a Saturday morning. By Monday morning, my offices were open to the public,""?Giffords said. ""ron Barber ""?at my side that Saturday, who was shot multiple times, then elected to Congress in my stead ""?held town halls. It's what the people deserve in a representative.""?""to the politicians who have abandoned their civic obligations, I say this: Have some courage,""?Giffords said. ""Face your constituents. Hold town halls.""?Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1347,2017/2/23,http://www.huffingtonpost.com/2017/02/23/karla-souza-promises-laurel-will-avenge-wes-death-in-how-to-get-away-with-murder-finale_n_14967980.html,Karla Souza Promises Laurel Will Avenge Wes' Death In 'How To Get Away With Murder' Finale,Get ready for some real answers ...,"Now that we know who was under the sheet, it's time to find out who put him there.- All season long, ""how to Get Away with Murder""?has been teasing the reveal of the poor, unfortunate soul who took beloved law student Wes Gibbins from us far too soon. Fans will finally get their answer on Thursday when the hit ABC series wraps up its third season. That's right, don""t expect any unfulfilling ""Lost""?syle half-answers this time around. ""how to Get Away with Murder""?is-delivering. During a recent interview with The Huffington Post for AOL's Build Series, Karla Souza, who plays law student and girlfriend to the recently deceased, Laurel, confirmed that the series is indeed set to reveal the identity of Wes""?killer.- ""All I know is that we will find out who killed Wes and Laurel will avenge Wes""?death,""?Souza explained. ""You guys are going to see the next few episodes, but Laurel takes it up a notch.""Laurel, of course, has a personal stake in Wes""?demise. The two began a short-lived affair before his untimely death, with Laurel later discovering she was pregnant with his child. She was also one of the last people to see Wes alive, making her a key factor in piecing together his final hours.- The daring decision to off one of the main characters has in turn allowed Souza to deliver her some of her strongest performances of the series, most notably a heartbreaking scene at Wes""?memorial service where she lashes out at ""lultures""?glomming onto the tragedy. Souza says that drawing from her own personal experience with grief helped her to better understand Laurel's pain in the wake of Wes""?death.- ""I was very challenged by all the scenes, but also ... it was really fun. I know it sounds awful. The process of grief is one that I""ve been through in my life. I lost my father five years ago and I wish I could have acted the way Laurel did in the funeral,""?she said. ""I do feel that the writers have done a very good job at allowing Laurel to become unapologetic. It's sort of like all is lost. She has nothing to lose now and she's really becoming a lot ballsier.""Watch Karla Souza's full BUILD interview below. Share this slide: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1348,2017/2/23,http://www.bbc.co.uk/news/uk-39060095,Storm Doris: Woman killed as UK hit by winds reaching 94mph,"A woman has been killed and at least two people have been seriously injured as Storm Doris brought winds of up to 94mph, snow and rain to the UK.","A woman has been killed and at least two people have been seriously injured as Storm Doris brought winds of up to 94mph, snow and rain to the UK. West Midlands Ambulance Service said the woman had suffered head injuries when a piece of debris fell on to a street in Wolverhampton. Strong winds have led to flight cancellations and road and rail disruption across much of the country. Thousands of homes have been left without power. About 1,500 homes and businesses are without electricity in Northern Ireland after trees fell on overhead lines. More than 21,500 customers had their power restored earlier. Northern Powergrid says nearly 900 homes were left without power in Sheffield, but most now have their supply restored. More than 400 homes are without electricity in Cheshire and at least 960 homes are without power across Lincolnshire. A power cut which affected almost 2,000 properties in Huddersfield has been fixed, but about 5,000 people still have power problems in Essex. UK Power Networks say 12,030 properties are without power in Suffolk and about 40,000 homes in total are without power across East Anglia. Energy company SSE said about 700 customers had experienced power cuts in Scotland, mainly in rural Perthshire, Kinross, Dunblane and Milnathort, as a result of heavy snow damaging its overhead network. And thousands of properties are also without power in Wales, where a 94mph gust of wind was recorded. In pictures: Storm Doris hits the UK Ambulance crews have been called to several casualties with people being injured by falling trees and debris as well as being blown over. West Midlands Ambulance Service said crew members had been called to an incident in Dudley Street, Wolverhampton, where they found a woman with ""very serious head injuries"" after she was hit by an object thought to be a piece of roof. A spokesman said: ""Sadly, it quickly became apparent that there was nothing that could be done to save her and she was confirmed dead at the scene."" A woman in her 60s has been left with a serious head injury after being hit by a carport roof in Stoke-on-Trent. And a man is said to be in a ""serious condition"" in a central London hospital, after he was hit by debris falling from the roof of the new Underground entrance at Victoria station. There are Met Office severe weather warnings of wind, snow and ice that combine to cover almost the entire UK. Heathrow has advised passengers to check their flight status before travelling to the airport. A spokeswoman said: ""With Heathrow operating at more than 99% capacity, there are no gaps in the schedule that can be used for delayed flights and as a result some passengers travelling may experience disruption to their journeys."" National Rail said fallen trees, objects caught in overhead wires, heavy rain, flooding and debris on tracks were causing delays to several services across the country. Storm Doris also halted filming on the set of ITV soap Coronation Street, with a spokeswoman saying the weather had made outdoor filming ""impossible"" and it would have to be rescheduled. And a tree-lined avenue in Northern Ireland which featured in Game Of Thrones has been damaged by the storm One of the beech trees that make up the Dark Hedges in Co Antrim has fallen victim to high winds. The severe gusts of winds are said to be caused by a ""weather bomb"" - a very intense area of low pressure which ""explodes"" when it travels underneath a powerful jet stream. BBC forecaster Jacob Cope says the low pressure centre of the storm has now moved into the North Sea, dragging the strongest winds across eastern England, with gusts still reaching 70-80mph. The main area at risk of strong winds over the next few hours is East Anglia, as winds turn northerly. An area of rain and sleet is moving south through Northumberland and Cumbria, heading for the Midlands although this, along with the winds, will ease through the evening, leaving a cold and frosty night. Forecasters say there is a risk of flooding in Northern Ireland, and possibly at lower levels in northern England and the south of Scotland. However, the Environment Agency said it had not issued any flood warnings for the UK. More rain and wind is expected to continue through to the weekend and into next week but will not reach the same level as Storm Doris. The Met Office has issued a yellow weather warning for ice affecting northern England, the Midlands, Northern Ireland and Scotland on Friday. Have you been affected by the weather? Email haveyoursay@bbc.co.uk with your pictures, videos and experiences. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -1349,2017/2/23,http://www.bbc.co.uk/sport/football/39070927,Claudio Ranieri: Leicester City sack Premier League-winning manager,"Ranieri was appointed Leicester manager in July 2015, winning just over 44% of his league matches","Share this with Manager Claudio Ranieri has been sacked by Leicester City, nine months after leading them to the Premier League title. The Foxes are one point above the relegation zone with 13 matches left. ""The board reluctantly feels that a change of leadership, while admittedly painful, is necessary in the club's greatest interest,"" read a statement. Ranieri, 65, guided the Foxes to the title despite them being rated 5,000-1 shots at the start of the campaign. His departure comes less than 24 hours after a 2-1 defeat at Spanish side Sevilla in the first leg of their Champions League last-16 tie. The Foxes took the Premier League title by 10 points but have won just five top-flight games this season, and could become the first defending champions to be relegated since 1938. They have lost their past five league matches and are the only side in the top four English divisions without a league goal in 2017. News app users should select this link to vote ""His status as the most successful Leicester City manager of all time is without question,"" added the Foxes statement. ""However, domestic results in the current campaign have placed the club's Premier League status under threat."" Earlier this month, Leicester gave their ""unwavering support"" to the Italian, who was appointed manager in July 2015 and signed a new four-year deal in August 2016. ""After all that Claudio Ranieri has done for Leicester City, to sack him now is inexplicable, unforgivable and gut-wrenchingly sad,"" said former Foxes striker Gary Lineker. Media playback is not supported on this device Leicester City vice-chairman Aiyawatt Srivaddhanaprabha: ""This has been the most difficult decision we have had to make in nearly seven years since King Power took ownership of Leicester City. But we are duty-bound to put the club's long-term interests above all sense of personal sentiment, no matter how strong that might be. ""Claudio has brought outstanding qualities to his office. His skilful management, powers of motivation and measured approach have been reflective of the rich experience we always knew he would bring to Leicester City. His warmth, charm and charisma have helped transform perceptions of the club and develop its profile on a global scale. We will forever be grateful to him for what he has helped us to achieve. ""It was never our expectation that the extraordinary feats of last season should be replicated this season. Indeed, survival in the Premier League was our first and only target at the start of the campaign. But we are now faced with a fight to reach that objective and feel a change is necessary to maximise the opportunity presented by the final 13 games."" Media playback is not supported on this device Leicester's next game in their fight for Premier League survival comes when they host Liverpool on Monday. Assistant manager Craig Shakespeare and first-team coach Mike Stowell will take charge of the squad until a new manager is appointed. Ranieri's compatriots Paolo Benetti and Andrea Azzalin, both key members of his coaching staff, have left the club. ""The board will now begin the recruitment process and will make no further comment until that process is completed,"" Leicester added. This content will not work on your device, please check Javascript and cookies are enabled or update your browser BBC Radio Leicester's Ian Stringer: ""I can't believe it. I was in Seville on Wednesday, they got an away goal and the fans were really happy on the streets after Jamie Vardy scored. ""He's gone. How can Claudio be gone? The greatest achievement ever. They are not in the relegation zone, the stadium has been singing his name and it's been very loud. ""I think there will be a split. He is a hero, they could build a statue of him in the next month and no-one would bat an eyelid, the greatest manager ever at this club. But is he the man to get you out of a relegation fight? ""The chairman is a Thai businessman; a billionaire; a very successful man. He kept the faith with Nigel Pearson when he struggled but brand Leicester City is very different these days. ""A big decision, a big call, but still surprising."" 14 February 2016: Leicester lose 2-1 at Arsenal, their final defeat of the 2015-16 season before a 12-game unbeaten run. 2 May 2016: The Foxes are crowned champions of England for the first time in their history as Tottenham draw at Chelsea. 16 July 2016: Midfielder N'Golo Kante leaves to sign a five-year deal with Chelsea. 13 August 2016: Leicester lose their first game of the 2016-17 season - a 2-1 defeat at Hull City. 15 October 2016: The Foxes are hammered 3-0 by table-topping Chelsea at Stamford Bridge. 22 November 2016: Leicester secure top spot in their Champions League group with one game to spare. 18 December 2016: Ranieri is named Coach of the Year at the BBC Sports Personality of the Year awards. 7 February 2017: After a run of two wins in 15 league games, Leicester give Ranieri their ""unwavering support"". 22 February 2017: The Foxes lose 2-1 to Sevilla in the first leg of their Champions League last-16 tie. 23 February 2017: Ranieri is sacked. Media playback is not supported on this device Share this with Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Fit For Sport Feb Half Term Activity Camp Basketball Open Session For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -1350,2017/2/23,http://www.bbc.co.uk/news/uk-39062436,"Net migration to UK falls by 49,000","Net migration to the UK has dropped to 273,000 in the year to September, down 49,000 from the previous year.","Net migration to the UK has dropped to 273,000 in the year to September, down 49,000 from the previous year. The Office for National Statistics said it was the first time in two years the balance of people arriving and leaving the UK had dipped below 300,000. But it is short of the government's aim of an annual figure below 100,000. Immigration was estimated to be 596,000 - comprising 268,000 EU citizens, 257,000 non-EU citizens and 71,000 British citizens. This included the highest level ever recorded of Romanians and Bulgarians - 74,000. Some 323,000 people are thought to have left the UK in the year to September, up by 26,000 on the 12 months to September 2015. Of these, 128,000 were British citizens, along with 103,000 EU citizens and 93,000 non-EU citizens. Net migration is down. But while the net decrease looks substantial, nobody can say for sure what's triggered the change because these quarterly figures could have been influenced by a string of short-term factors. For a start, there appears to have been a rise in emigration - and when that goes up, net migration can come down. Secondly, some of the change could be down to seasonal fluctuations in student numbers. Thirdly, although there were significant departures by people from some parts of Eastern Europe, the number coming from poorer Romania and Bulgaria went up. The upshot is the overall number of people arriving for a job is broadly the same. What does it all amount to? Immigration statistics are an inexact science - and at the moment it's very difficult to know for sure what's going on. The figures are the first to include migration estimates following the EU referendum in June. Nicola White, head of international migration statistics at the ONS, said it was ""too early"" to say what effect the referendum has had on long-term migration. Home Secretary Amber Rudd accepted the government was still far from reaching its net migration target, but said the figures demonstrated ""we can reduce immigration where we can control it"". She denied a rise in people going back to countries such as Poland reflected an uncertainty among EU citizens living in the UK over their futures. Ms Rudd said: ""At the moment we have open immigration with the EU members, freedom of movement, so they can come and go as they want. ""I don't see any particularly significant change within EU migration. The real change will be when we leave the EU, and then we will be able to make the choices ourselves what level of immigration we want to have."" And she said that Britain remained open to EU citizens already living here and contributing to the economy, saying: ""Let's not be in any doubt that the UK will always be a welcoming place for people who want to come here, work here and contribute to our economy."" Sunder Katwala, director of the think-tank British Future, said the figures showed the immigration debate will ""have to move on"" in the light of Brexit. He said: ""A one-size-fits-all approach to immigration can't help us make the post-Brexit choices that the government and the public now face."" Meanwhile, separate figures from the Home Office show that a near-record number of EU nationals were granted British citizenship last year. Citizenship was given to 16,754 people from EU countries, the second highest since records were first compiled, behind the 17,645 in 2013. Some 6,498 members of the EU 14 countries - older member states such as France, Spain and Germany - were granted UK citizenship in 2016, up 50% on the previous 12 months and the highest ever for a single year. A further 6,813 people from the EU 8 countries, which include Poland, gained British citizenship, a rise of 18%, surpassed only by figures for 2013. Citizenship was given to 3,215 Romanians and Bulgarians, up 20% on 2015 and again only topped by 2013 figures. Other points within the ONS statistics were:", -1351,2017/2/23,http://www.bbc.co.uk/news/world-us-canada-39068021,Mexico foreign minister vents 'irritation' at Rex Tillerson,"Mexico's foreign minister has expressed ""irritation"" to President Donald Trump's envoys about recent US policies towards its southern neighbour.","Mexico's foreign minister has expressed ""irritation"" to President Donald Trump's envoys about recent US policies towards its southern neighbour. Luis Videgaray said he had told visiting US Secretary of State Rex Tillerson that Mexico was worried about respect for immigrants' rights. Mr Tillerson said in Mexico City that ""two strong sovereign countries"" would have differences from time to time. Relations between the neighbours are at their lowest point for decades. A US plan, unveiled this week, to expel to Mexico all illegal immigrants found crossing the US border regardless of nationality has angered Mexicans most. The body language at Thursday's meeting certainly did not suggest that ties had miraculously warmed in the space of a meal and a meeting, but the tone from both sides was more conciliatory than in recent weeks, the BBC's Will Grant reports from Mexico City. Speaking first, Foreign Minister Videgaray said rebuilding the relationship would be a long process and would not be easy. He urged all concerned to ""overcome the grievances and hurt feelings"" to create a relationship based on trust and friendship. ""There's a concern among Mexicans, there's irritation [about] what has been perceived as policies that might be harmful for the Mexicans and for the Mexican industry,"" he said. Secretary Tillerson spoke next, saying as a native Texan he had always considered Mexico a ""very close neighbour"", and echoing his counterpart's spirit of co-operation. ""In a relationship filled with vibrant colours,"" he said of the two nations, ""there will always be differences"". Those differences were complicated further by the Trump administration's new guidelines on deportation of undocumented immigrants, especially those with criminal records. It fell to Homeland Security Secretary John Kelly to reassure his hosts that there would be ""no mass deportations"" and no use of the US military in immigration enforcement. That appeared to directly contradict what President Trump had said earlier in the day when he told a meeting of manufacturing CEOs that his administration had been getting ""really bad dudes"" out of the United States - before specifically stating that it was a ""military operation"". The Trump administration issued a new policy on Tuesday targeting millions of illegal immigrants for possible deportation, mirroring a previous executive order signed by the president. The new policy, which seeks to step up enforcement of existing US immigration laws, widens the net on deportation and speeds up their removal. It also calls for sending back to Mexico immigrants caught crossing the border illegally, irrespective of where they are from, and deporting anyone charged with, or convicted of, any crime. Mr Tillerson and Mr Kelly will probably also face questions about the new guidelines in their meeting with Mexican President Enrique Pena Nieto. President Trump has insisted that Mexico will pay billions for a wall along the US border, which prompted Mr Nieto to cancel a planned Washington visit late last month. Both US and Mexican officials made no mention of Mr Trump's proposed wall at the news conference on Thursday. Mr Trump has also ordered a report, due on Friday, listing all foreign aid the US provides to Mexico. It is unclear why he requested the review, but its inclusion in Mr Trump's executive order on constructing a wall along the southern border suggests he may use it for leverage in negotiations with Mexico. Mexican officials are also concerned about Mr Trump's pledge to renegotiate trade partnerships between the two countries. The president has proposed to levy a 20% tax on Mexican imports to pay for a border wall. Democratic senators urged Mr Tillerson and Mr Kelly to work through tensions with their Mexican counterparts on Thursday. ""We urge you to use your visit to disavow vitriolic rhetoric and forge a strong partnership based on mutual respect with the government of Mexico,"" the senators wrote in an open letter.", -1352,2017/2/23,http://www.bbc.co.uk/news/uk-scotland-edinburgh-east-fife-39071466,Plane evacuated after landing gear collapses,Passengers on a Flybe flight from Edinburgh had to be evacuated after the plane's landing gear collapsed during touchdown at Amsterdam's Schiphol Airport.,"Passengers on a Flybe flight from Edinburgh had to be evacuated after the plane's landing gear collapsed during touchdown at Amsterdam's Schiphol Airport. Emergency services were called to the scene following the incident. The plane, with 59 passengers on board, ended up leaning on one side with its wing touching the runway. Flybe said no-one had been injured in the incident which happened at about 17:00 local time (16:00 GMT). Schiphol Airport tweeted: ""The landing gear of a Flybe airplane collapsed during touchdown. ""All passengers are brought to the terminal by bus at the moment. ""No people are injured. Flight operation is up and running again."" Flybe said in a statement: """"Flybe can confirm that there has been an incident involving one of our aircraft, flight no BE1284...We can confirm there are no injuries and all passengers have been bussed to the airport terminal. ""Our primary concern is for the welfare of passengers and crews."" The airline's chief executive Christine Ourmieres-Widener added: ""Our highest priority is the safety and well-being of our passengers and crew. ""Our pilots regularly train for situations such as this in simulators at our training academy in Exeter. Our cabin crew are also fully trained to deal with these situations professionally. ""We have sent a specialist team to offer assistance to the investigation and we will now do all we can to understand the cause of this incident"" It was the second incident of the day involving a Flybe aircraft. Earlier, a Flybe flight from Glasgow to Birmingham was forced to return to Glasgow Airport after a technical fault meant the pilot had to shut down one engine. A spokesman for Flybe said: ""Flybe can confirm that BE783 - Glasgow to Birmingham returned to Glasgow Airport following a technical fault that resulted in the captain electing to shut down the number one engine as a safety precaution. ""The pilot followed all required procedures and the aircraft landed safely without incident."" The plane was met by emergency vehicles when it landed. No-one was injured in the incident.", -1353,2017/2/23,http://www.bbc.co.uk/news/world-middle-east-39072036,Islamic State battle: Fierce gunfight outside Mosul airport,,The BBC's Quentin Sommerville reports as Iraqi security forces recapture Mosul airport from so-called Islamic State., -1354,2017/2/23,http://www.bbc.co.uk/news/uk-england-beds-bucks-herts-39072741,Girl seriously injured in sports hall ceiling collapse,A girl is in hospital with life-threatening injuries after a ceiling collapsed at a school in Milton Keynes.,"A girl is in hospital with life-threatening injuries after a ceiling collapsed at a school in Milton Keynes. Emergency services were called to Southwood School in Bryony Place, Conniburrow, at about 15:30 GMT. A section of ceiling measuring 8ft x 5ft (2.4m x 1.5m) had fallen from the sports hall. It is not yet known if it was caused by strong winds. About 40 people were in the hall at the time and a second girl suffered minor injuries. Supt Vince Grey from Thames Valley Police said it was ""possible"" the collapse was caused by Storm Doris. He said: ""We will be conducting a joint-investigation with Buckinghamshire Fire & Rescue Service to determine the cause. ""There is a cordon in place within the school but no other buildings have been affected and there are no road closures in place at this time."" A spokesperson for the school said: ""We are co-operating fully with the relevant authorities in this investigation. ""Our thoughts are of course with this child and her family at this very difficult time.""", -1355,2017/2/23,http://www.bbc.co.uk/news/uk-england-39068994,Briton David Ezekiel presumed murdered in South Africa,"A British man has been found dead, presumed murdered, in South Africa, his family has said.","A British man has been found dead, presumed murdered, in South Africa, his family has said. London-born David Ezekiel, 60, moved to South Africa 35 years ago, but went missing last week. The grandfather-of-two, who lived alone and has brothers in Hertfordshire, had been the subject of a social media campaign to try and find out what had happened to him. Family sources have now said his body has been found. A former chef, Mr Ezekiel more recently ran a handyman business. It is thought he drove out of his gated community in Johannesburg, in a convoy with two other vehicles, to try to do a car deal.", -1356,2017/2/23,http://www.bbc.co.uk/news/business-39071761,John Lewis cuts hundreds of jobs amid online shift,John Lewis plans to cut nearly 400 jobs in its home fittings services and restaurants amid a shift to online shopping.,"John Lewis plans to cut nearly 400 jobs in its home fittings services and restaurants amid a shift to online shopping. The changes will affect administration staff in its carpet, curtain and blinds fittings service. No jobs will be cut among the estimators and fitters. However, administration roles will move from stores to a centre in Didsbury, Manchester, which will also serve online customers. Catering staff in its in-store restaurants will also be affected. John Lewis already uses outside suppliers in a third of its restaurants and plans to adopt a uniform menu in all, meaning chefs will no longer be required. John Lewis said about 773 staff could be affected by redundancy but would be able to apply for 386 new posts. At the end of the process about 387 roles will go. The changes will affect 32 of its 48 stores. ""These proposals will allow us to modernise our business as it adapts to the changing needs of our customers and the role that shops play in their lives,"" said Dino Rocos, John Lewis operations director. More than 40% of sales at John Lewis over Christmas were online. In January the retailer said it expected its full-year pre-tax profit, which it will announce on 9 March, to be higher than last year's ?435m. However, it added that trading was ""under pressure"" as a result not just of the shift to online, but also because the weaker pound was pushing up costs. The staff-owned John Lewis Partnership, which includes Waitrose, said last month it expected staff bonuses to be ""significantly lower"" than last year because of the challenging outlook for retail. Last year the 89,000 John Lewis and Waitrose staff received 10% of their salary as a bonus. The figure was 17% in 2013.", -1357,2017/2/23,http://www.bbc.co.uk/news/uk-politics-39064149,Stoke and Copeland by-elections: Voting ends,Voting has ended in the Parliamentary by-elections in Stoke-on-Trent Central and Copeland.,"Voting has ended in the Parliamentary by-elections in Stoke-on-Trent Central and Copeland. Labour is defending both seats after the resignations of ex-frontbenchers Tristram Hunt and Jamie Reed. Jeremy Corbyn's party, which has not lost either constituency since their creation, is facing challenges from the Conservatives and UKIP. The votes will now be counted with the results expected between 03:00 GMT and 04:00 GMT on Friday morning. Labour is defending a 2,564 majority in the west Cumbrian seat of Copeland, where a Conservative victory would mark the first by-election gain by a governing party since 1982. Mr Reed, who had been an MP since 2005, resigned to take a job in the nuclear industry. With thousands of people employed in the sector, nuclear power has been a key campaign theme along with warnings about local NHS cuts. Labour has Gill Troughton as its candidate, a councillor and former doctor and ambulance driver, who is up against Conservative Trudy Harrison, who lives in the village of Bootle and was a parish councillor for a number of years. In Stoke, Labour's majority has been decreasing in recent years, from 19,924 in 1997 to 5,179 in 2015. UKIP is hoping to capitalise on voters' leanings towards Brexit - the area voted strongly to leave the EU in June - and is fielding its leader, Paul Nuttall, against Labour's Gareth Snell. Both candidates have had tough moments during their campaigns, with Mr Snell apologising over old social media posts about women appearing on television and Mr Nuttall facing a backlash over false claims he lost close friends in the Hillsborough tragedy. Two UKIP officials from Liverpool and Merseyside branches resigned following the row, saying Mr Nuttall had been ""unprofessional"" and donor Arron Banks showed ""crass insensitivity"" in subsequent comments about the disaster. The Conservatives, who were narrowly forced into third in 2015 by UKIP, are putting forward 25-year-old Jack Brereton. As with Copeland, a Conservative win would be first by-election gain by any government for 35 years.", -1358,2017/2/23,http://tass.com/politics/932582,US lawmakers present no evidence of Russia's interference in US election - Russian MP,"""There was no mention of the evidence, so we said that we were ready for joint work but on the basis on concrete documents,"" the member of Russian parliament's lower house said","VIENNA, February 23. /TASS/. Members of the US delegation to the OSCE Parliamentary Assembly have presented no evidence of Russia's alleged interference in US elections, OSCE PA Special Representative on Anti-Terrorism Nikolay Kovalev, a member of the Russian delegation, told TASS on Thursday. Earlier in the day, Russian and US lawmakers held a meeting on sidelines of the OSCE PA winter session. ""The issue of ""Interference in the elections""?has been raised,"" Kovalev said. ""Hacking was affirmed as a threat to democratic foundations of a state and (it was said) it was necessary to fight the phenomenon."" ""There was no mention of the evidence, so we said that we were ready for joint work but on the basis on concrete documents,"" the member of Russian parliament's lower house said.", -1359,2017/2/23,http://tass.com/politics/932585,"Russian, US lawmakers discuss creation of anti-terrorism group","""Our joint task is to organize the meeting as soon as possible. From this platform, we have agreed to further cooperation,"" Nikolay Kovalev said","VIENNA, February 23. /TASS/. Russian and US delegations to the OSCE Parliamentary Assembly have discussed creation of a joint anti-terrorism working group, Pyotr Tolstoy, a member of the Russian delegation and State Duma deputy speaker, told reporters on Thursday. ""We have been speaking that we need to intensify an inter-parliamentary dialog, to create a working group on the problem evident to everybody - a war on terror,"" he said after a meeting with US lawmakers on sidelines of the OSCE PA winter session. In the meantime, another member of the Russian delegation and OSCE PA Special Representative on Anti-Terrorism Nikolay Kovalev told TASS that Russian and US lawmakers outlined ""the platform for cooperation"" in the war on terror. ""Our joint task is to organize the meeting as soon as possible. From this platform, we have agreed to further cooperation,"" he said. The winter session of the Parliamentary Assembly of the Organization for Security and Cooperation in Europe (OSCE PA) opened in Vienna on Thursday. State Duma Deputy Speaker Pyotr Tolstoy heads the Russian delegation that brought together deputies of all factions of the lower house and six members of the Federation Council (the parliament's upper house).", -1360,2017/2/23,http://tass.com/politics/932577,Russia to continue strengthen its Armed Forces - Putin,"""Russia's security and protection of its citizens are unconditionally in safe hands,"" Putin said","MOSCOW, February 23. /TASS/. Russia will continue to strengthen its Armed Forces, focusing on the strategic nuclear shield and Aerospace Force, Russian President Vladimir Putin said on Thursday at a gala concert dedicated to Defender of the Fatherland Day, marked in Russia on February 23. Russia has seen drastic changes in the military sector in recent years, the president noted, promising ""we will definitely continue to strengthen the Armed Forces in regard to its personnel and organizational issues and will boost their mobility and combat capabilities."" ""Among the priorities are reinforcement of the strategic nuclear shield and current Aerospace Force along with strict implementation of the state armaments program,"" he said, noting that growing capabilities of the defense industry ""will surely allow to implement all our ambitious plans."" ""Russia's security and protection of its citizens are unconditionally in safe hands,"" Putin said. ""Our Armed Forces have huge combat potential and are able to act firmly and concertedly and to repulse any aggression."".", -1361,2017/2/23,http://tass.com/politics/932573,"4,000 Russian nationals fight among militants in Syria - Putin","Russia's task in Syria is to preserve the legitimate power in the country and eradicate terrorism, Russian President said","MOSCOW, February 23. /TASS/. At least 4,000 Russian nationals fight among militants in Syria, Russian President Vladimir Putin said on Thursday at a meeting with officers of the Northern Fleet. ""It is no less important for us that, unfortunately, a large number of militants, who came from former Soviet republics and from Russia itself, have accumulated in Syria,"" Putin said. ""According to our preliminary information, there are thousands of them, approximately nearly 4,000 Russians and about 5,000 nationals from republics of the former Soviet Union, according to the information of the General Staff's GRU Main Intelligence Administration, FSB (Federal Security Service) and other our special services."" Putin has pointed out that due to visa-free travel across almost entire post-Soviet space, one should realize what huge threat is hidden ""in that hotbed of terrorism especially for us, for Russia."" By performing combat tasks on remote frontiers, the military directly help ensure Russia's security, he said. ""I really want to thank you very much for this,"" Putin said, noting that the combat experiences gained in Syria would be studied and applied by all sailors. Russia's task in Syria is to preserve the legitimate power in the country and eradicate terrorism, Putin said. ""We have no plans to interfere in Syrian domestic affairs. Our task is to stabilize the legitimate power in the country and to strike a decisive blow on international terrorism,"" Putin said at a meeting with the Northern Fleet servicemen. ""The sooner political settlement starts in the country, the more chances we and the international community will have to put an end to the terrorist plague on the Syrian territory,"" the president said. He expressed hope for the success of the intra-Syrian talks starting in Geneva on Thursday, adding that Russia and the international community are interested in the victory over terrorism in Syria. ""But we will not and should not interfere in Syria's domestic affairs,"" Putin said. Syria has signs of confessional division, Putin said. ""I am particularly concerned about confessional division, that is when representatives of one confessional group are concentrated in some regions of the country (Syria), whereas representatives of another (group) - in some other (regions),"" Putin said. ""It is a prototype of possible negative consequences for that country."" Syria is a multiethnic and multi-confessional state, or ""a secular state as it used to be for a long time and it was a guarantee of the country's territorial integrity,"" the Russian leader said. Along with this, the Syrians should decide on the issue of the country's territorial integrity, he said. ""We should make every effort to avoid any external interference in the resolution of the key problem, the preservation of Syria's territorial integrity,"" Putin told servicemen. ""And our task, as we have been doing this particular work, is to fight against terrorist groups."". Russian Northern Fleet's operation has caused enormous harm to militants in Syria, Russian President said. ""You have coped with the set tasks and done enormous, considerable harm to international terrorist groups, their bases, ammunition depots, equipment and infrastructure,"" Putin said. The president congratulated the officers on Defender of the Fatherland Day and had warm words for them for their work. Putin said that the sailors had opened a new page in the history of the Russian Navy, ""not due to the fact that you were on this long-distance voyage, a successful but difficult voyage in conditions, to be honest, when our efforts to battle international terrorism were opposed, rather than assisted, by our so-called ""�partners."" Putin pointed out that there were some novelties in this military operation, in particular the use of precision weapons and Mig-29 jet fighters at sea, he said, adding the operation had helped create conditions to continue peace talks.", -1362,2017/2/23,http://tass.com/politics/932563,Opposition's demand of Assad's immediate resignation absurd - Russian envoy to Geneva,Alexei Borodavkin said that Moscow has reserve attitudes to the US ideas regarding security zones in Syria,"GENEVA, February 23. /TASS/. Moscow calls absurd the Syrian opposition's demand for Assad's immediate resignation, Russia's envoy to international representations in Geneva Alexei Borodavkin said on Thursday. ""It (position of the Syrian governmental delegation) is contrast to what we hear from the opposition representatives, who are coming from Riyadh, and who name, once again, the precondition that Syria's President Bashar Assad should resign,"" he said. Moscow has reserve attitudes to the US ideas regarding security zones in Syria, Borodavkin said. ""First of all, it is not clear what it is,"" the diplomat said. ""Secondly, first of all it is necessary to address the Syrian government and to ask whether it agrees to have some security zones organized in its territory."" ""As for the technical aspect, it is an endless list of questions, problems and the rest,"" he said. ""I have not seen anywhere a ready concept of this suggestion. I also have may questions to the US and Turkish counterparts regarding this topic."". The planning of Syria's restoration should begin immediately and the European Union could play a major role in this process, Borodavkin said. ""The European Union could have given major assistance to Syria,"" he said. Russia expects during the Geneva talks, the parties would begin working on Syria's future constitution, Russia's envoy said. ""We hope for progress in work on constitution during this round of talks,"" he said, adding back in April 2016 the UN Secretary General's envoy on Syria Staffan de Mistura published a document demonstrating common approaches from parties to the talks to the Syrian settlement. The Damascus delegation has arrived in Geneva having constructive instructions, with the objective to reach progress, Russian envoy said. ""Yesterday, I had a meeting with leader of the Syrian governmental delegation Bashar Jaafari; the contact, like always, was friendly, it was a conversation of like-minded people,"" the Russian diplomat said. ""I would like to stress with satisfaction that the delegation of the Syrian government has arrived in Geneva having constructive instructions, with the objective to reach progress."". The termination of airstrikes in Syria is in line with the ceasefire effective for the groups, which have joined it, Alexei Borodavkin said in a comment on the UN Secretary General's special envoy Staffan de Mistura, about Russia calling on the Syrian government to stop the air strikes for the time of the intra-Syrian talks. ""As for the airstrikes, the ceasefire means they would not be delivered on the oppositional groups, which had joined the ceasefire,"" the Russian diplomat said. ""This obligation is observed both by the Russian Aerospace Force, and by the Syrian Air Force, but, of course, this is not effective against terrorist groups: first of all Daish (the Arabic name of the Islamic State terrorist group outlawed in Russia - TASS), and Jabhat Al-Nusra, (outlawed in Russia) as well as groups and gang affiliated with them."".", -1363,2017/2/23,http://tass.com/society/932558,Moscow celebrates Defender of the Fatherland Day,Vladimir Putin laid a wreath at the Tomb of the Unknown Soldier by the Kremlin wall,"MOSCOW, February 23. /TASS/. Russian President Vladimir Putin laid a wreath at the Tomb of the Unknown Soldier by the Kremlin wall in downtown Moscow as part of the celebrations of Defender of the Fatherland Day on Thursday. Putin was accompanied by World War II veterans, Prime Minister Dmitry Medvedev, Federation Council (upper house of parliament) Speaker Valentina Matviyenko, State Duma (lower house of parliament) Speaker Vyacheslav Volodin, Defense Minister Sergey Shoigu and other state officials. The memorial in the Alexander Garden by the Kremlin wall was unveiled in 1967. A Changing of the Guard Ceremony takes place at the Tomb of the Unknown Soldier every hour. Meanwhile, the Communist Party of Russia (KPRF) organized a march in central Moscow to celebrate the 99th anniversary of the Soviet Army and Navy. Communist Party leader Gennady Zyuganov said at the march that Russia today is facing ""foreign threats and sanctions"" and ""needs a major reunion of all state and patriotic forces."" The organizers said the march brought together some 30,000 people. The celebrations of Defender of the Fatherland Day in Moscow will end with a fireworks display. Defender of the Fatherland Day, formerly known as Day of the Soviet Army and Navy, was made a day off in Russia in 2002. This year Russians enjoy a four-day weekend to celebrate the holiday.", -1364,2017/2/23,http://tass.com/science/932539,ISS astronauts capture Dragon with manipulator,The spacecraft will be docked with the International Space Station in a few hours,"MOSCOW, February 23. /TASS/. US astronaut Shane Kimbrough and his French colleague Thomas Pesquet have successfully captured SpaceX's Dragon cargo spacecraft with a shuttle remote manipulator, the European Space Agency said on Twitter on Thursday. The spacecraft will be docked with the International Space Station in a few hours, the ESA said. The spacecraft's planned docking with the station was aborted on Wednesday and postponed till Thursday ""due to an incorrect value associated with the on board computer,"" NASA said. The spacecraft was launched from NASA's Kennedy Space Center in Florida aboard a SpaceX Falcon 9 rocket on February 19. About 5,500 pounds of research equipment, cargo and supplies are packed into the spacecraft. Earlier on Wednesday, Russia's cargo spacecraft Progress MS-05 set course towards the International Space Station. Its docking is scheduled for February 24.", -1365,2017/2/23,http://tass.com/politics/932535,Vitaly Churkin's body delivered to Russia,The final farewell ceremony for Churkin will take place in Moscow on February 24,"MOSCOW, February 23. /TASS/. A plane carrying body of Russia's former Ambassador to the UN Vitaly Churkin landed in Moscow on Thursday. Vitaly Churkin died on February 20, a day before his 65th birthday. The final farewell ceremony for Churkin will take place in Moscow on February 24, Foreign Ministry Spokeswoman Maria Zakharova said earlier. The spokeswoman also said that a book of condolences had been opened at the Russian UN embassy. CIS member states""?ambassadors to the US and representatives of the UN secretariat were the first to sign the book. ""Today, Russian embassy personnel are bidding their final farewells to Vitaly Churkin,"" Zakharova said. Churkin had been Russia's UN ambassador since April 8, 2006, representing the country in the United Nations Security Council. According to the Russian Foreign Ministry, the ambassador died while on duty. On Tuesday, the UN Security Council observed a minute of silence for Churkin, and the General Assembly will hold a special meeting in the coming days to pay tribute to him.", -1366,2017/2/23,http://tass.com/world/932532,Ukrainian military shell Donetsk water purification plant,"The Ukrainian military over the past 24 hours eleven times opened fire on the militia's positions in the self-proclaimed LPR, the republic's defense authority added on Tursday","DONETSK, February 23. /TASS/. The Ukrainian military shelled on Thursday morning the Donetsk water purification plant, causing damage of filters building there, the plant's Director General Oleg Mokryi said. ""Shelling of the area near the plant began at seven-thirty in the morning,"" he said. ""About that time, first shells hit the plant: the roof is damaged, the filters are safe,"" the Donetsk News Agency quoted him. The water purification plant continues working, he added. ""The personnel were in panic, people rushed to the bomb shelter,"" he continued. ""We are trying to calm them down now, and to resume, if possible, regular work."" On February 18, the water purification plant was cut of electricity after shelling, and only in two days the repairing was over. The purification station supplies water to settlements on either side of the front line, including Donetsk, Yasinovataya, Vasilyevka and Spartak controlled by the self-proclaimed Donetsk People's Republic (DPR), and Avdeyevka, Kranogorovka and Verkhnetoretskoye controlled by Kiev. In late January, the situation along the line of contact in Donbass deteriorated, the number of shelling attacks dramatically increased. The number of destroyed buildings has been growing, there have been reports of civilian deaths. The Ukrainian military over the past 24 hours eleven times opened fire on the militia's positions in the self-proclaimed Lugansk People's Republic (LPR), the republic's defense authority said on Tursday. ""Kalinovo was shelled five times from 120 and 82mm mortars, weapons of IFVs, grenade launchers, and positions in Kalinovka were shelled three times from Luganskoye,"" LuganskInformCenter quoted the defense authority. The Ukrainian military also shelled positions in Lozovoye and in Logvinovo, the source added. In late January, the situation along the line of contact in Donbass deteriorated, the number of shelling attacks dramatically increased. The number of destroyed buildings has been growing, there have been reports of civilian deaths. On February 15, the Contact Group made a decision that all weapons banned by the Minsk agreements should be withdrawn from the line of contact by February 20. Foreign ministers of the four member states of the Normandy Quartet (Russia, France, Germany and Ukraine) upheld this initiative at a meeting held on February 18. However, on February 21, Kiev disrupted the weapons withdrawal process.", -1367,2017/2/23,http://tass.com/world/932530,Border guard detain in Crimea Ukrainian national on wanted list,"""During the passport control at the border, an officer identified a Ukrainian national as a person on the wanted list,"" the press service said","SIMFEROPOL, February 23. /TASS/. The Russian border guard have detained in Crimea a Ukrainian national, suspected of fraud, who had been on the wanted list, press service of the border guard in Crimea said on Thursday. ""During the passport control at the border, an officer identified a Ukrainian national as a person on the wanted list,"" the press service said. The 36 year-old man was suspected of fraud. The man was put on the wanted list by the interior ministry's branch in Crimea's Sudak. The authorities received from the Ukrainian a written obligation not to leave the region till court hearing.", -1368,2017/2/23,http://www.dw.com/en/syria-peace-talks-kick-off-in-geneva-amid-fragile-ceasefire/a-37694850?maca=en-rss-en-all-1573-rdf,Syria peace talks kick off in Geneva amid fragile ceasefire,"The UN's chief negotiator has warned warring parties that the conflict does not have a ""military solution."" Talks in Geneva are to focus on the political dimensions of the conflict as a nationwide ceasefire holds.","The UN envoy for Syria on Thursday welcomed government and rebel delegations in Geneva, marking the beginning of fresh peace talks aimed at ending six years of conflict in the war-torn country. ""A long, hard journey towards peace can start here today,"" said UN envoy Staffan de Mistura. Prior to talks, Mistura met with a group of Syrian women calling for warring parties to discuss the fate of detainees and abducted people in the conflict. ""There are thousands and thousands of mothers, wives, daughters who are hoping that at least this aspect will be one of the benefits of any negotiation,"" the veteran diplomat told reporters. Human rights watchdog Amnesty International earlier this month reported that up to 13,000 people, ""most of them civilians believed to be opposed to the government,"" had been-executed at a prison in Saydnaya. However, UN-backed negotiations in Geneva are expected to deal with core political questions while talks in the Kazakh capital of Astana, brokered by Russia, Turkey and Iran, have focused on a fragile ceasefire and armed conflict. Militant groups, including the ""Islamic State"" and al-Qaeda-linked Fatah al-Sham Front,-formerly the Al Nusra Front,-have been excluded from the talks. In late 2014, with the war in Syria approaching its fourth year and Islamic State making gains in the north of the country, the exodus of Syrians intensified. At the same time, others were fleeing violence and poverty in countries such as Iraq, Afghanistan, Eritrea, Somalia, Niger and Kosovo. Vast numbers of Syrian refugees had been gathering in border-town camps in neighboring Turkey, Lebanon and Jordan since 2011. By 2015, with the camps full to bursting and residents often unable to find work or educate their children, more and more people decided to seek asylum further afield. In 2015 an estimated 1.5 million people made their way on foot from Greece towards western Europe via the ""Balkan route"". The Schengen Agreement, which allows passport-free travel within much of the EU, was called into question as refugees headed towards the wealthier European nations. Tens of thousands of refugees were also attempting the perilous journey across the Mediterranean on overcrowded boats. In April 2015, 800 people of various nationalities drowned when a boat traveling from Libya capsized off the Italian coast. This was to be just one of many similar tragedies - by the end of the year, nearly 4,000 refugees were reported to have died attempting the crossing. Countries along the EU's external border struggled to cope with the sheer number of arrivals. Fences were erected in Hungary, Slovenia, Macedonia and Austria. Asylum laws were tightened and several Schengen area countries introduced temporary border controls. Critics of German Chancellor Angela Merkel's ""open-door"" refugee policy claimed it had made the situation worse by encouraging more people to embark on the dangerous journey to Europe. By September 2016, Germany had also introduced temporary checks on its border with Austria. In early 2016, the EU and Turkey signed an agreement under which refugees arriving in Greece could be sent back to Turkey. The deal has been criticised by human rights groups and came under new strain following a vote by the European Parliament in November to freeze talks on Turkey's potential accession to the EU. With anti-immigration sentiment in Europe growing, governments are still struggling to reach a consensus on how to handle the continuing refugee crisis. Attempts to introduce quotas for the distribution of refugees among EU member states have largely failed. Conflicts in the Middle East and elsewhere show no signs coming to an end, and the death toll from refugee sea crossings is on the rise. Author: Rachel Stewart Days ahead of new peace talks in Geneva, UN envoy Staffan de Mistura has questioned US President Donald Trump's commitment to solving the Syrian conflict. The Syrian army, meanwhile, has traded rocket fire with rebels. 'No military solution' Although de Mistura cast doubt on a ""breakthrough"" in Geneva, he has vowed to establish momentum towards a political solution to a conflict that has displaced millions. ""There is no military solution, just a political solution. It is true today, and will be true tomorrow,"" de Mistura told delegations in Geneva. ""Syrian people want an end to this conflict, and you know it well. They are waiting."" More than 300,000 people have been killed and half the population displaced since 2011, when regime forces launched a brutal campaign against protesters calling for President Bashar al-Assad to step down. Since then, Syria has witnessed a multifaceted conflict in which-militant groups, state actors and major global powers, including the US and Russia, attempt to secure their interests in the country. Russia's security interests On Thursday, Russian President Vladimir Putin told naval officers that their involvement in the conflict has led to greater security for their homeland. ""We have no plans to interfere in Syria's internal affairs,"" Putin said. ""Our task is to stabilize the legitimate authority in the country and strike a decisive blow against international terrorism,"" he added. Russian forces entered the conflict in September 2015 in a bid to bolster Assad's forces, effectively shifting the war's direction into Damascus' favor with the recapture of eastern Aleppo. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UNO9 ls/msh (Reuters, AP, AFP)", -1369,2017/2/23,http://www.dw.com/en/leicester-city-fire-premier-league-winning-coach-claudio-ranieri/a-37695862?maca=en-rss-en-all-1573-rdf,Leicester City fire Premier League winning coach Claudio Ranieri,"Less than a year after winning the Premier League title, Leicester City have fired their coach Claudio Ranieri. The decision comes after defeat by Sevilla in the Champions League.","Leicester City have fired Claudio Ranieri, the man who guided them to their historic Premier League title. The Foxes were 5000-1 to win the Premier League at the start of their title-winning campaign last season, and produced one of the greatest fairytales in sporting history. But the Foxes have endured a woeful defence to their crown, dropping to 17th - just one point and one place above the Premier League relegation zone. The Italian was fired less than 24 hours after a 2-1 defeat by Sevilla in the Champions League. Riyad Mahrez is one of many Leicester players to underperform this season In a statement, Leicester said the board ""reluctantly feels that a change of leadership, while admittedly painful, is necessary in the club's greatest interest."" ""This has been the most difficult decision we have had to make in nearly seven years since King Power took ownership of Leicester City,"" vice chairman Aiyawatt Srivaddhanaprabha said. ""But we are duty-bound to put the club's long-term interests above all sense of personal sentiment, no matter how strong that might be."" Srivaddhanaprabha praised Ranieri, who took over in July 2015 and who masterminded one of the most remarkable triumphs in sporting history. ""Claudio has brought outstanding qualities to his office,"" he said. ""His skilful management, powers of motivation and measured approach have been reflective of the rich experience we always knew he would bring to Leicester City. ""His warmth, charm and charisma have helped transform perceptions of the club and develop its profile on a global scale. We will forever be grateful to him for what he has helped us to achieve."" Former Leicester and England striker Gary Lineker expressed his surprise. ""After all that Claudio Ranieri has done for Leicester City, to sack him now is inexplicable, unforgivable and gut-wrenchingly sad,"" he said on Twitter. mds/rd (DPA)", -1370,2017/2/23,http://www.dw.com/en/illegal-racing-cars-as-lethal-weapons/a-37695541?maca=en-rss-en-all-1573-rdf,Illegal racing: Cars as lethal weapons,Is a driver who races illegally and kills another through negligent action a murderer? A current trial in Berlin is facing this very question. A former Cologne mayor has personal reasons for closely following the trial.,"Marvin N. is 24 years old. On the night in question he was driving a white Mercedes, model AMG CLA 45. He's in the dock at the Berlin district court, alongside 27-year-old Hamdi H. Hamdi H. was also driving a white car, an Audi A6 TDI. When they came across each other on Berlin's Tauentzienstrasse in the early hours of 1 February 2016, it sparked a fateful incident that the public prosecutor says constitutes joint murder. Those two white cars became the murder weapons. Hamdi H. was traveling at at least 160 kilometers per hour (just under 100 mph) when his car slammed into an SUV with a 69-year-old man at the wheel. This was at 00:50, just minutes after he crossed paths with Marvin N. The victim's Jeep was flung 70 meters down the road, eventually coming to a stop on its side. The driver, a retired doctor, died at the scene. After plowing into the Jeep, Hamdi H.'s car, which had been souped up to 225 horsepower, crashed into Marvin N.'s Mercedes. The two young men walked away with minor injuries. Both cars were a write-off. The victim's car was flung 70 meters down the street An administrative offense An illegal car race in Berlin; the Kurf��stendamm shopping street a death zone? A witness who was sitting in Marvin N.'s car recalled during the trial that the Audi first appeared behind them at a traffic light. She said the two men, who knew each other slightly, stopped briefly on the road, wound down their windows and chatted. Suddenly, she said, Hamdi H. stepped on the gas, and Marvin N. followed suit. They shot off, ignoring the red lights. For the Berlin public prosecutor, these elements of the offense mean that they committed joint murder. If the court imposes a life sentence,-it would be particularly significant for victims and their families, who complain that crashes like this are often treated as no more than an administrative offense. This means that the drivers responsible are able to get away with suspended sentences. Defendants Marvin N. (second from left) and Hamdi H. (fifth from left, sitting and with face covered) with their lawyers in Berlin district court ""What racers get up to in town centers, where you really cannot drive that fast, is just not acceptable,"" says Fritz Schramma. The former mayor of Cologne lost his son Stephan in a similar an incident in his home town. Stephan Schramma was just 31 years old. ""You just ask yourself: Why doesn't this stop?"" Schramma said in an interview with DW. There are regular reports about car races like these; often, they have been illegally organized. Probation feels like an acquittal Schramma's son died almost 16 years ago, but he and his wife Ulla still follow cases like the one in Berlin intently. In this son's case, the two drivers, then aged 24 and 22, were initially sentenced to three years probation. This was then reduced to two years on appeal. Was this a fair punishment? ""It's a second slap in the faces of the victims when drivers are allowed to walk out of the courtroom on probation at the end of a long trial,"" says Schramma. ""Because for many people ""?especially the perpetrators ""?it's as if they've been acquitted."" He has been raising awareness about this issue for many years now, and also set up an organization in Cologne to help victims. ""I would have liked to receive some kind of apology from the perpetrators. Or their parents,"" he says. ""Perhaps that would have helped us, in our grief."" 16 years on, the Schramma family is still waiting. Former Cologne mayor Fritz Schramma, whose son was killed in a racing accident Instead, racers ""?as is their right ""?avail themselves of every legal possibility in order to avoid jail. This January, the Federal High Court confirmed a sentence of two years and nine months. The man in question was driving a rented sports car through the center of Cologne at 109 kilometers per hour (68 mph) when he hit a 26-year-old cyclist. The man died in hospital three days later. ""With this sentence we wanted to set an example, to make clear to others that you simply cannot drive like this,"" the presiding judge, Benjamin Roellenbeck, said in Karlsruhe. Revoke their license Efforts to set such an example are also being made at a political level. Last year the Bundesrat introduced a bill that is currently undergoing interdepartmental coordination. Transport policymakers also want to take action, by making what has until now been classed an administrative offense a crime. ""Suspended sentences are certainly not appropriate when people are killed in illegal car races,"" says Patrick Schnieder, a CDU politician and member of the German Bundestag who is also a traffic expert. A driver's license wasn't something for ""rowdy adrenaline junkies,"" Schnieder told DW. Confiscation of cars and revoking driver's licenses should also be an option, he said. ""Then I have to consider whether I can ever let such a driver loose on humanity again,"" he added. Every week Fritz Schramma and his wife Ulla visit their son's grave. Stephan had many plans; he wanted to move in with his girlfriend and get married. They have a kind of gallery of family photos at home, including ones of Stephan. The sympathy extended by the people of Cologne has given the family strength. ""Even today, every taxi driver, for example, will say something to me about it,"" says Schramma. He has to pass the scene of the crash, the Rudolfplatz junction, almost every day. ""Until now there was always this old tree there,"" he says. ""Now it's being cut down."" Perhaps the change will make his journey a little easier to deal with.", -1371,2017/2/23,http://www.dw.com/en/did-turkey-order-spying-in-german-classrooms/a-37693332?maca=en-rss-en-all-1573-rdf,Did Turkey order spying in German classrooms?,Turkish consulates in Germany may have urged teachers and parents to inform on instruction critical of the government. The state of NRW is looking into the allegations.,"Authorities in North Rhine-Westphalia (NRW) have asked prosecutors to assess whether there is enough evidence to open an investigation into allegations Turkish consulates urged parents and teachers to inform on any content in school lessons that is critical of the Turkish government, a spokesperson from the NRW interior minister told DW on Thursday. The Education and Science Labor Union (GEW), which represents educators, said on Thursday that it had received reports from some members that Turkish consulates in Germany's most populous state instructed Turkish teachers and parents to spy on other teachers and inform on the content of instruction. GEW said parents, members of teaching associations and imams from mosques affiliated with the Turkish government had been invited by consulates in the state to information sessions,-during which they were urged to pass on any lesson content that was critical of the Turkish government and President Recep Tayyip Erdogan.- Even students may have been urged to spy on teachers. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Qmkb The allegations come as the Turkish-Islamic Union for Religious Affairs (DITIB), Germany's largest Islamic umbrella group with over 900 mosques tied to the Turkish government's Directorate of Religion, is under fire for some of its imams spying on suspected supporters of US-based preacher Fethullah Gulen.- Ankara blames Gulen members for last July's failed coup attempt and considers the group a terrorist organization, charges the group's millions of members around the world deny.- A German investigation into Turkey's religious officials collecting information on its enemies may be the tip of the iceberg. DW has obtained several documents revealing Turkish activities in Germany and European states. (16.02.2017) Leaders in Germany's Turkish community warned their compatriots not to be taken in by populist rhetoric. The Turkish PM was in Germany to encourage overseas voters to support a referendum to centralize power in Ankara. (19.02.2017) Imams in Germany have informed Turkish authorities of alleged supporters of cleric Fethullah Gulen, according to reports. Germany's religious leaders have urged authorities to clarify the situation before it's too late. (25.01.2017) NRW's ministry of education has already identified five people on the lists prepared by imams as state-employed teachers. Based on documents from Turkish diplomatic missions, DW has reported of a broader Turkish effort to collect information on the Gulen movement in Germany and across Europe. NRW Interior Ministry spokesman J?rg Harm said the state's justice and security authorities have taken precautions and had been informed of allegations brought forward by GEW. ""If the allegations against the consulates in Dusseldorf and Essen and possibly other consulates are verified, this would be absolutely unacceptable,"" Harm said. NRW State Secretary Ludwig Hecke has asked the Consul General to comment on the allegations. Responding to the allegations on Twitter, Green Party co-chair Cem Özdemir - who has Turkish roots - was highly critical. ""Erdogan propaganda has no place in German schools. The entire spy network must be dismantled."" Özdemir said. -", -1372,2017/2/23,http://www.dw.com/en/why-the-fake-rape-story-against-german-nato-forces-fell-flat-in-lithuania/a-37694870?maca=en-rss-en-all-1573-rdf,Why the 'fake rape' story against German NATO forces fell flat in Lithuania,"The ""Lithuanian Lisa"" case has failed to rattle Germany's NATO deployment. The new attempt to target the country's armed forces with fake news didn't count on Baltic pushback.","A year ago, before the term ""fake news"" became ubiquitous, Germany was reeling from the ""Lisa case,"" a fable fanned by social media in which immigrants reportedly raped a Russian-born teenager. The story was propagated by multiple sources all the way up to Russian Foreign Minister Sergei Lavrov and taken up by street protesters, before it was completely discounted. The falsified incident - widely believed to have been created by the Kremlin - demonstrated perfectly the toxicity of internet-driven disinformation. Earlier this month, outside influences, again widely believed to be Russian, tried to replicate the success of the ""Lisa"" faux-scandal in Lithuania. They instigated the affair by planting a report via an email to the speaker of the Lithuanian Parliament claiming German soldiers, who are leading NATO's new battle group there, had raped a teenager.- This time, however, the targets weren't such easy prey and the rumor never really got off the ground. Czech General Petr Pavel, head of NATO's military committee, got out ahead of Lithuanian investigators in blaming the incident on Moscow and saying he expects there will be more. Lithuanian police are thus far just confirming the attack came from ""outside the EU."" But whether or not this particular attempt is ultimately traceable to Kremlin-funded propagandists, Vilnius was expecting such provocations. With reinforcements of NATO troops moving in to guard against a ground or air assault, Lithuanian officials presumed that sooner or later, an information attack of this sort would be launched against the ""Enhanced Forward Presence"" (EFP).- Lithuania's Defense Ministry Spokeswoman Vita Ramanauskaite explains her country's fatalistic anticipation in two words:- ""history lessons."" ""Lithuania has a sad history of being occupied twice without a single shot,"" she said, ""in 1795 by the Russian Empire and in 1940 by Soviet Russia."" While central and Eastern Europe may be just starting to comprehend what a threat these faceless adversaries are, Ramanauskaite says such hostilities were detected in Lithuania already a dozen years ago and counter-propaganda measures were put in place. She credits this early awareness with the successful snuffing out of the rumor. The ""fake rape"" claim was quickly red-flagged in communication channels throughout the armed forces, police and government institutions and within NATO. In addition, she notes, the general public has been sensitized to the dangers of propaganda and information attacks, with 68 percent agreeing in a recent survey that they pose a threat to national security. NATO Secretary General Jens Stoltenberg himself rapidly got word of the case, crediting Lithuanian media with not spreading the ""fake news."" ""One of the important lessons we shall learn from this kind of incident is that it is extremely important to check facts,"" he said following NATO's defense ministerial meeting on February 16. ""That has always been the case but it's perhaps even more important now because we have seen several attempts of disinformation and the spread of stories which are not true."" Weapon of mass distraction In an exclusive interview with DW, NATO's Assistant Secretary General for Emerging Security Challenges, Ambassador Sorin Ducaru, was still extremely concerned about the incident, despite its failure to escalate. ""This is a clear example of information manipulation with a sense of weaponization,"" Ducaru said, ""because it really was supposed to affect the perception about the presence of German troops as the [EFP] framework nation in Lithuania. It was supposed to affect morale; it was supposed to affect everything - the operational functioning."" And despite the failure of this particular attempt, says Dr. Stefan Meister with the German Council on Foreign Relations, Russia has seen clearly that disinformation is its most successful weapon to weaken and divide the West.- Emails accusing German soldiers stationed in Lithuania of rape were sent to local news outlets and the parliamentary president. NATO officials allege that Russia is targeting the military alliance. (16.02.2017) Lithuania has launched a probe into who is responsible for falsely reporting a rape. The investigation comes amid fears of a Russian disinformation campaign following an increased NATO deployment to the Baltic countries. (17.02.2017) ""It fits much more in line with their goals and it's much cheaper than any military buildup or any modernization of the army,"" Meister explained. ""And in the end it works. We are so insecure about our media system, our politicians and growing populism and so on."" Russia is still winning the propaganda war against NATO and EU countries, Meister believes, and that's their own fault. He says the age-old resistance to sharing data, especially regarding security threats, comes into play here. EU governments are choosing to tackle it by themselves rather than funding and equipping the bloc as a center point of counter-propaganda. ""It's a lack of strategy,"" Meister says, ""and even the lack of will to have a strategy.- I think that's a big mistake."" Echoing Lithuania's Ramanauskaite, Meister says the Baltic states, Finland and Sweden have been dealing with the reality of the threat much longer than countries to their South and would have a lot to share with, for example, France and Germany, which are late to the game. Meister believes Germany will increasingly be a target due to both its role in NATO's deterrence measures in the East and its coming elections, but also because its society is so divided about those issues. Meanwhile, Russia says it's setting up a new counter-disinformation unit of its own, similar to the EU's, so that it can identify Western mainstream media articles as ""fake news.""", -1373,2017/2/23,http://www.dw.com/en/gale-force-winds-dampen-german-carnival-celebrations/a-37694802?maca=en-rss-en-all-1573-rdf,Gale-force winds dampen German Carnival celebrations,"Several Carnival celebrations have been canceled or cut short due to extreme weather. Thousands of revelers still braved gale-force winds to party on the streets, others took cover in bars.","The German Weather Service warned of gale-force winds of more than 100 kilometers per hour (more than 60 miles per hour) across parts of North Rhine-Westphalia on Thursday evening and early Friday morning. The extreme weather forced the stage program in D��sseldorf to end early, sending many revelers to take shelter in bars in the old town. In Bonn, celebrations in the town center were canceled. In Cologne, some 20,000 of people took to the streets amid heavy security. Police said there was a lower turnout on the first day of Carnival due to the weather. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Y9mi The strong winds knocked down trees, scaffolding and party tents. The main street festival component of Carnival kicked off at 11:11 a.m.-on Thursday with activities across North Rhine-Westphalia. The German Weather Service predicted better weather for the rest of the festivities, which run through Wednesday and peak on Monday. cw/msh (AFP, dpa)", -1374,2017/2/23,http://www.dw.com/en/carnival-party-in-bavaria-sparks-racism-debate-in-germany/a-37692403?maca=en-rss-en-all-1573-rdf,Carnival party in Bavaria sparks racism debate in Germany,"A charity ball in Raindorf has launched a debate in Germany over its use of a derogatory term for black people. The locals have defended the name as ""a normal term"" in Bavaria's dialect, while critics say it's offensive.","Carnival celebrations in Germany are not without their controversies - whether they are the political messages of parade floats or revelers' use of blackface and stereotypical Native American costumes. This year, a charity ball in the Bavarian village of Raindorf that donates its proceeds to development projects in African countries inadvertently caused outrage online. The problem - the annual event is called the ""Negerball,"" a term that translates to ""negro ball"" or ""nigger ball"". Although the term in German has a slightly less negative connotation than the English word, it is offensive to many people. This year's ball may have finished on Saturday, but the controversy over the party's name continues to rage on social media. When it was first started 36 years ago, the Carnival party was called ""young people dance for Africa,"" explained event organizers, the parish group ""KiRiKi,"" in a post on Facebook following the event. With time, the party's attendees gave the event a new name and it came to be known as ""Negerball,"" which the organizers defended by saying it remained a term commonly used ""without prejudice"" in Bavaria's highly idiosyncratic dialect. Traditions don't change easily in Germany, least of all in ""Bayern."" So when ""KiRiKi"" created a Facebook event for the first time this year to publicize its charity ball, the name stayed. A user reported the event for its racist language and Facebook shut down the event's page - sparking a debate on social media and in local media. Intention vs. impact In response to the-criticism the event and its organizers received, this year's charity ball was slightly renamed to ""Negaball."" Organizers told local media that the name was now representative of their local Bavarian dialect. On the event's Facebook site, however, one user pointed out the first four letters were intended to be an acronym for ""Niederbayerische Entwicklungshilfe zu Gunsten Afrikas"" or ""Lower Bavarian development aid to benefit Africa."" US President Donald Trump is depicted as a schoolyard bully as Russian President Vladimir Putin watches on. The cities are never afraid to make fun of themselves. One of the upcoming floats features Cologne Mayor Henriette Reker taking on the German bureaucratic system. European Central Bank President Mario Draghi is depicted here as the video game character Super Mario, as he takes advantage of the banks and targets European money savers. In a change of tone, another float looks set to celebrate rather than mock the relationship between Germany and France ahead of the 2017 Ice Hockey World Championships held in Cologne and Paris. The popular children's cartoon character Bob the Builder is depicted constructing the much-maligned Leverkusener bridge north of Cologne. The project has come under fire from residents because of the slow pace of construction, which is expected to drag on for another few years. Then-candidate Donald Trump was an easy target at the 2016 D��sseldorf parade. A 2016 Carnival float in D��sseldorf depicts a group of refugees trapped between the EU and war and terror. A float shows Russian President Vladimir Putin wielding power throughout Europe via far-right parties in other countries. Angela Merkel is always a popular subject for Rose Monday parades in Germany. This 2016 Cologne float depicts the chancellor working on the tough nuts she has to crack. A 2016 float in D��sseldorf features the German federal eagle showing fear as one of its wings burns following attacks on refugee shelters. This float takes aim at Syrian President Bashar al-Assad, North Korean dictator Kim Jong Un and Russian President Vladimir Putin. A float at the 2016 Cologne parade shows extreme right-wing parties attacking democracy. Facebook users, the majority of whom appeared to be white in their profile pictures, praised the name change and said they supported the ball as a simple charity event. ""The person who thinks the term is discriminatory is perhaps too insensitive to distinguish between racism and willingness to help,"" wrote one male user, referring to the original name of the ball. Another noted: ""Since when is the word not correct? The word 'Neger' exists. It's even in Duden!"" The word can, indeed, be found in the main German dictionary ""Duden."" The entry, however, comes with a hefty note that accompanies the definition, explaining that the term is ""regarded as highly discriminatory"" and says its use is to be avoided. The dictionary also offers several other options, including terms that black people in Germany prefer to be called. Despite disagreeing with the criticism they received online, ""KiRiKi"" said that they would come up with a completely different name for the charity event next year. Concerns 'not taken seriously' Tahir Della, spokesman for the Initiative for Black People in Germany (ISD), said the Raindorf case was ""problematic"" to say the least. ""Those who are affected are not taken seriously,"" Della told DW. Many of the Facebook users who came to the celebration's defense justified the use of the term by arguing that the event's title couldn't be racist because-the people who used it didn't intend for it to be racist. It was simply how people in Bavaria talked, they argued. Tahir Della of the Initiative for Black People in Germany ""The word 'Neger' is no longer up-to-date or politically correct according to High German, but in the Bavarian dialect, it is still used by many people without prejudice,"" ""KiRiKi"" wrote in their Facebook post. They said-that the word was-still used in Bavaria today to ""simply describe people with black skin"" without intending to discriminate. A term can still be racist even if the person using the term does not intend any harm, Della explains, adding that this point is sometimes difficult for some to understand in Germany. He also noted that these discussions in Germany tend to ""go round in circles"" without bringing society further towards using ""non-discriminatory language."" Della places some of the blame with the German education system, saying that an understanding of German colonialism is lacking in both schools and universities. He believes that acquiring a historical understanding of such terms could help as well as building empathy with German people of color. Della says the ISD reached out to the Bavarian event's organizers in an effort to open up a channel of dialogue. ""They didn't respond,"" he said. With its warmer climate, Carnival on the Spanish island of Tenerife feels a bit more like spring than winter and costumes tend to involve less fabric. Like in Latin America, samba dance groups participate in the largest Carnival parade on the Canary Islands in Santa Cruz de Tenerife. Clothed in white with a dusting of flour, revelers on the Canary Island of La Palma in Spain celebrate the ""Dia des los Indianos."" It commemorates the return of the islanders who've immigrated to Cuba or Venezuela. Covering each other with flour used to be a tradition on all Canary Islands, but today it's only practiced on La Palma. Flour is used instead of powdered sugar, which represents wealth. In Binche, 60 kilometers from Brussels, masked characters called ""Gilles"" have been playing the lead role in Carnival celebrations for centuries. Strengthened with oysters and champagne, they dance through the streets on Mardi Gras, the Tuesday before Ash Wednesday. The colorful ritual has been on the UNESCO List of Immaterial World Heritage since 2008. Bud princesses throw mimosas, roses and daffodils into the crowd watching the famous flower battle in Nice in southern France. The parade on the Côte d'Azur dates back to 1876, when tourists, mainly from England, were presented with flowers. The ""Carnevale di Venezia"" is said to date back to the 12th century, when nobles threw lavish parties in their palaces. Ball guests would outdo each other with elaborate costumes. The most exclusive Carnival events these days include the Ballo Tiepolo in the Palazzo Pisani Moretta and a visit to the opera in the Teatro La Fenice. Uniformed dancers are an important part of almost every German Carnival club. In Cologne, they shout ""Alaaf,"" in Dusseldorf, ""Helau."" But everywhere in the Rhineland region, people sing and collect ""Kamelle,"" or sweets, during the Carnival parades. Several hundreds tons of goodies are thrown into the costumed crowds during the Carnival Monday parades. Carnival in Mainz, near Frankfurt, dates back to the 16th century, and the highlight is the parade on Carnival Monday. There, you'll always see larger-than-life caricature figures with XXL heads, known as ""Schwellköpp."" There are 30 different characters, and each of their heads weighs up to 25 kilograms. This historical jester figure, the ""Federahannes,"" is part of the Carnival tradition in southwestern Germany. He has curved tusks and his coat is covered with feathers. He traditionally uses his cane to make leaps and appears at Carnival parades from the Black Forest to the Allgäu region and even into Switzerland. Bremen has become Germany's northern hub of Carnival festivities. Hundreds of samba groups from around the world are set to celebrate in Bremen, dressed according to the motto. With their drums, they turn the city's market square into a huge dance floor. The ""B��tzchen,"" or smooch, is as much a part of Carnival in Germany as the colorful costumes. The term ""Carnival"" comes from the Latin words ""carnis"" (flesh) and ""levare"" (to take away). At the end of Carnival, Ash Wednesday marks the beginning of Lent, a time of fasting for Christians in anticipation of Easter. Author: Ille Simon / kbm", -1375,2017/2/23,http://www.dw.com/en/hamburg-want-revenge-aubameyang-seeks-goals-what-to-look-out-for-on-matchday-22/a-37691636?maca=en-rss-en-all-1573-rdf,Hamburg want revenge & Aubameyang seeks goals: What to look out for on Matchday 22,Can Hamburg get revenge on Bayern Munich? Can Roger Schmidt get Bayer Leverkusen back up the table? And can Pierre-Emerick Aubeyang return to form?,"Hamburg seek revenge in North-South derby Hamburg could write a long book about their poor experiences facing Bayern over the past few seasons, yet one that will particularly stand out is when they came so close to claiming a point against the German champions back in September, only to lose 1-0 which saw Bruno Labbadia sacked as coach. Many thought it was a rash decision at the time and an unfair way to treat a man who took the club to tenth in the previous campaign. Yet-they now have another competent coach in Markus Gisdol, fully aware that Bayern are for the taking. As Hertha Berlin showed last weekend, Bayern are far from their best at the moment and while the Champions League steals their attention there are points to be had in Munich. Hamburg have looked better under Gisdol and are-on an unbeaten run of four games. Stretch that run out to their last 10 games in all competitions and it shows just three defeats. The Dinosaurs finally have form on their side and healthy dose of vengeance. - Leverkusen looking to bounce back against Mainz Leverkusen are looking to bounce back from their comprehensive defeat by Atletico Madrid. Bayer Leverkusen are out of the Champions League. They may have another leg to play in Madrid, yet the way Atletico tore them apart on Tuesday night to win 4-2 suggested that little can be done to salvage their European campaign. As such, fans of the club will now be turning their attention to getting back up the Bundesliga table and will fully expect coach Roger Schmidt to do exactly the same. In Mainz, Saturday's opponent, the former top-four side face either an easy bounce back or a potential banana skin. Martin Schmidt's Mainz side have taken a real nose dive in form recently with six defeats in their last six away games in the league.-All three points and a step closer to the top four are a must for Leverkusen this weekend. - Aubameyang needs goals against Freiburg Pierre-Emerick Aubameyang is without a goal in his last four games. Some strikers are only as good as the amount of goals that they score on a regular basis; Pierre-Emerick Aubameyang is one of them. The Gabon forward is many things, but a provider of assists he is not. So when he stops scoring he very quickly becomes a problem for Borussia Dotmund. Such a rut is exactly what Aubameyang is going through at the moment. Despite scoring 21 goals in all competitions this season, he hasn't scored in any of his last four games and has bagged just two in his last nine. Yet standing in the way of any redemption in form are Freiburg - at home. A beast that'll undoubtedly do all they can to make sure the world class striker continues to struggle on. The Black Forest side have lost just three games at home this season and have won the other seven. On Saturday we'll see if Dortmund and their out-of-form striker are up to the test.", -1376,2017/2/23,http://www.dw.com/en/eu-food-exports-hit-record-level/a-37694195?maca=en-rss-en-all-1573-rdf,EU food exports hit record level,"The European Union achieved record food exports in 2016, with the USA and China being its main markets. Food imports, however, slumped in the period, contributing significantly to the bloc's growing trade surplus.","The European Union's 28 countries produce a lot of food - so much so that the region exports more food than it imports, as measured by financial value. The European Commission (EC) reported on Thursday that the EU achieved a new all-time record of 130.7 billion euros ($138.4 billion) in 'agri-food exports' in 2016. That's 1.7 billion euros, or 1.3 percent, above the 2015 number - and 29.4 billion euros, or 29 percent, above the 2011 number. These numbers still include statistics from the United Kingdom, whose voters chose last summer to leave the European Union - but 'Brexit' hasn't been implemented yet, so for now, it still counts as an EU member nation. Pig meat and olive oil were two categories that had strong year-on-year export gains. In 2016, the ten most important export destinations for EU agri-food exports, ranked in order of total sales volume, were USA, China, Switzerland, Japan, Russia, Saudi Arabia, Norway, Hong Kong, Canada and Turkey, according to a report by the EC's Agriculture and Rural Development Directorate released Thursday. European cold-pressed fresh olive oil. The US bought 20.64 billion euros of EU agri-food products in 2016, up 2.5 percent from the year before. China bought 11.38 billion euros' worth, up a strong 12.0 percent. Exports and imports Going the other way, the top eight sources of agri-food imports into the EU were Brazil, USA, Argentina, China, Switzerland, Turkey, Indonesia, Ukraine, Ivory Coast, and India. The 'agri-food' sector encompassed 7.5 percent of total EU goods exports in 2016. Offsetting those food exports are food imports, which totalled 6.6 percent of all goods imported into the EU. The net surplus of the agri-food sector in 2016 was 18.8 billion euros - nearly half the overall surplus of the EU in merchandise trade, which totalled 39.3 billion euros last year. Several foodstuffs imported into the EU saw substantial increases in total value in 2016 compared to the previous year. These included cocoa beans, vegetable oils (other than palm and olive oils), fresh vegetables, citrus fruit and oilseeds (other than soya beans). Some food exports can be controversial - for example, exports of European chicken parts to South Africa, which are alleged to undermine local farmers.- Canada buys booze and chocolate, sells grains Ivory Coast leads the world in producing cocoa beans. The European chocolate confections in the picture at the top of this page wouldn't be possible without West Africa's cocoa plantations The EU even has an agri-food trade surplus with Canada, the world's second largest country by geographic area. The EU exported 3.44 billion euros of agri-food products to Canada in 2016; going the other way, Canada exported just 2.19 billion euros of agri-food to EU countries. The nature of the trade shows why Europe manages to sustain a trade surplus in comestibles despite the fact that it has far less farmland per capita than some of its trading partners. Canada sells mainly commodities to Europe - especially cereals (such as wheat or barley) and oilseeds (e.g. rapeseed or soya), as well as some vegetables. These are products with minimal value-added processing. In contrast, EU food products exporters sell mainly value-added products to Canada - for example wine, beer, cider, vinegar, liqueurs; chocolates, candies, ice cream; pasta, pastries, biscuits, bread.", -1377,2017/2/23,http://www.aljazeera.com/news/2017/02/turkish-backed-syrian-rebels-seize-al-bab-isil-170223123852238.html,Turkey-backed rebels in 'near full control' of Al Bab,"Turkey's defence minister says key town almost fully captured, but other reports say street battles still ongoing. 'Risky work ahead'","Turkish armed forces and allied Syrian fighters have seized near full control of the key town of Al Bab in northern Syria from ISIL,-according to multiple sources. Al-Bab, just 25km south of the Turkish border, has been the target of an over three-month assault by Turkey and rebel forces which met with fierce resistance by ISIL fighters, who had captured the Aleppo province town in early 2014. ""It's been a long time since we came to Al Bab but today we can say that near complete control has been taken of Al Bab and the city centre has been entered,"" Turkish Defence Minister Fikri Isik said on Thursday, quoted by the state-run Anadolu news agency. Earlier, Anadolu said fighters from the-Free Syrian Army (FSA) group were clearing mines and explosives devices laid by the Islamic State of Iraq and the Levant (ISIL) group after capturing the centre of the flashpoint town. READ MORE: Turkish army will press on to ISIL-held Raqqa, says Erdogan ""Most of al-Bab has been liberated,"" an FSA commander, speaking on condition of anonymity, also told Al Jazeera. He said the advance in the city had been slowed down because of ISIL's booby traps and suicide bombings, some of which had been carried out by children as young as 13 years old. However, the Syrian Observatory for Human Rights, a UK-based monitoring group tracking developments in Syria's conflict, said that more than half of Al Bab was still under ISIL control, and that battles continued. Al Jazeera's Andrew Simmons, reporting from the Turkish city of Gaziantep near the border with Syria, quoted Turkish defence officials as saying that rebel forces were still facing ""a lot of risky work ahead"", clearing mines and improvised explosive devices, as well as dealing with possible counterattacks. He also reported that FSA fighters are now trying to move into smaller villages near Al Bab.- ""This is undoubtedly an important milestone that Turkey can now claim in its mission into Syria, its fight against ISIL and attempt to push back Kurdish-led forces,"" Simmons said. ""Now word is awaited from the US on whether Turkey and the FSA can join in the fight in Raqqa [ISIL's self-declared capital in Syria]."" Turkey launched its Syrian operation Operation Euphrates Shield in August, in an effort to push ISIL from its border and stop the advance of a Syrian Kurdish militia. Backed by Turkish fighter jets, tanks and special forces, the FSA fighters first cleared ISIL from Turkey's border before launching an assault on Al Bab in December. A total of 1,900 square kilometres in northern Syria has now been cleared of armed groups, Anadolu said. While Euphrates Shield has been largely focused so far on combating ISIL, Ankara is also determined to prevent the Kurdish YPG militia, which it considers a ""terrorist"" group, from linking the areas it controls along the Turkish border. Earlier in February, Turkey's President Recep Tayyip Erdogan said the final goal of the Turkish incursion into northern Syria is to clear a 5,000sq-km ""safe zone"", vowing to press on towards Raqqa. The FSA commander on Thursday told Al Jazeera that after Al Bab is secured the forces will then proceed to Raqqa, adding that a military operation against ISIL fighters in Manbij is not as likely. Abd al-Majed Barakat, political adviser to the Operation Euphrates Shield, told Al Jazeera the operation has the capacity to lead the Raqqa offensive but needs the support of an international coalition, adding that-he new US administration has not made clear its plans on Syria. FSA troops are being trained and prepared in camps on the Turkish-Syrian border north of Raqqa and Hassaka provinces for the operation on ISIL's stronghold, he said.- Additional reporting by Mariya Petkova. Source:-Al Jazeera and news agencies", -1378,2017/2/23,http://www.aljazeera.com/news/2017/02/iraqi-forces-control-mosul-airport-170223082538235.html,Iraqi forces take control of Mosul Airport,Security forces storm ISIL-held Mosul International Airport as they continue offensive on western half of the city.,"US-backed Iraqi security forces closing in on the ISIL-held western half of Mosul have stormed the city's airport and a nearby military base, state television said. Counterterrorism service (CTS) troops and elite interior ministry units known as Rapid Response forces descended on the airport early on Thursday and the nearby Ghazlani military complex, CTS spokesman Sabah al-Numan told state TV. ""This is one of the major achievements that the Iraqi forces were hoping to get in the first phase of going towards the Western side of the city,"" said Al Jazeera's Osama Bin Javaid, reporting from Erbil. ""This area is about 30 kms away from the western edge of the city, and Iraqi forces now say that they are in full control. ""They say that the two main buildings of the city have been destroyed by ISIL and they have found a number of car bombs parked on strategic locations in the entry points and along the runway of Mosul International Airport."" The airport and military complex, which includes barracks and training grounds and sprawls across an area close to the Baghdad-Mosul highway was captured by ISIL fighters when they overran Mosul in June 2014. The advances come days after Iraqi forces officially launched the operation to push ISIL out of Mosul's western half. The operation to retake Iraq's second largest city was officially launched in October and in January its eastern half was declared ""fully liberated."" A US-led coalition has been providing close air support throughout the campaign to retake Iraq's second-largest city. US special operations forces are embedded with some Iraqi units and thousands of US troops are in- Iraq providing logistical and other support. US Secretary of Defence Jim Mattis was holding discussions with US and Iraqi officials, a week before he is expected to present a new strategy to President- Donald Trump for defeating ISIL . Trump has repeatedly vowed to eliminate the group but has provided few details about how his approach might differ from that of the- Obama -administration, which had partnered with Syrian and Iraqi forces to drive ISIL out of several towns and cities. The- battle for western Mosul , the group's last major urban bastion in Iraq, is expected to be the most daunting yet. The streets are older and narrower in that sector of the city, which stretches west from the River Tigris, forcing Iraqi soldiers to leave the relative safety of their armoured vehicles. WATCH: Will latest Iraqi offensive mean end of ISIL in Mosul? The presence of up to 750,000 civilians- also poses a challenge . Two suicide car bombers struck army and paramilitary forces west of Mosul on Monday, killing and wounding a number of troops, two army officers said, without specifying the number of casualties. A third suicide car bomber was blown up before reaching the troops, they said, speaking on condition of anonymity because they were not authorised to brief the media. ISIL claimed responsibility for two attacks in an online statement, saying the attackers were British and Iraqi. Source:-Al Jazeera and news agencies", -1379,2017/2/23,http://www.aljazeera.com/news/2017/02/mexico-voices-irritation-top-trump-envoys-visit-170223171127823.html,Mexico voices 'irritation' as top Trump envoys visit,"In Mexico City visit, senior White House seek to cool tempers after weeks of tension between the two neighbours. 'No mass deportations'","Mexico's Foreign Minister Luis Videgaray has-expressed ""worry and irritation"" about US President Donald Trump's trade and immigration policies during a visit by two top White House representatives. Speaking to reporters on Thursday after closed-door meetings with US-Secretary of State Rex Tillerson and Homeland Security chief John Kelly,-Videgaray said it is ""a complex time"" for Mexican-US relations. ""There exists among Mexicans worry and irritation about what are perceived to be policies that could be harmful for the national interest and for Mexicans here and abroad,"" Videgaray said, l ooking stern as he stood beside the US officials. Relationships between the two countries have gone downhill quickly since Trump's win at the US presidential election in November. Washington this week angered its southern neighbour by saying it was seeking to deport many undocumented immigrants to Mexico if they entered the US from there, regardless of their nationality. The immigration guidelines are the latest point of tension between neighbours that have also been at odds over Trump's vow to build a wall on the border and his attempts to browbeat Mexico into giving concessions on trade. For their part, Kelly and Tillerson sought to cool tempers as they adopted a more measured tone than either the Mexicans or Trump, who on Thursday said a military operation was being carried out to clear ""bad dudes"" from the US. Kelly said there would be ""no use of military force in immigration operations,"" and ""no, repeat, no mass deportations"". None of the US officials made direct references to the deportation of immigrants from third countries to Mexico, or to paying for the border wall planned by Trump, a red-flag issue for Mexico. Both sides at the Mexico City talks on Thursday pledged further dialogue on migration, trade and security issues facing both nations. Al Jazeera's John Holman, reporting from Mexico City, said Mexico has been criticised as ""timid"" in confronting issues with the US in the past, but since Trump came into office it has grown ""tougher"".- ""Usually, this is a quiet and cordial meeting. That's how it has been for decades. But not under the administration of Donald Trump,"" Holman said.- Infographic: Building Trump's border wall Earlier on Thursday, Trump continued blasting Mexico for what he claims is an unfair trade relationship with the US. ""We're going to have a good relationship with Mexico, but if we don't-we don't,"" Trump said at a White House meeting with business leaders. The talks in the Mexican capital followed the cancellation of a planned visit by Pena Nieto to the White House, after Trump followed through on his pledge to- order the construction of a border wall -along the US southern border and declare that Mexico will pay for the wall. The neighbouring countries have also clashed over trade, with Trump calling for a renegotiation of NAFTA. During his meeting with business leaders on Thursday at the White House, Trump complained about the $70bn trade deficit with Mexico and the loss of American manufacturing jobs, since NAFTA was adopted more than 20 years ago. ""The deals we have with other countries are unbelievably bad,"" Trump-said. In response to Trump's threats on trade,-Mexican Economy Minister Ildefonso Guajardo said on Thursday morning that his country could slap tariffs on US goods if renegotiations over trade fail. Guajardo said he expected NAFTA negotiations with US and Canada to conclude by the end of 2017. Source:-Al Jazeera and news agencies", -1380,2017/2/23,http://www.aljazeera.com/news/2017/02/bloodbath-sufis-defy-fear-message-unity-170223152651665.html,"After bloodbath, Sufis defy fear with message of unity",Grieving pilgrims who lost loved ones at an ISIL-claimed shrine attack last week vow to continue their traditions. 'I will still come here' 'Red threads' 'Love can conquer all'-,"Every Thursday, Asgar Brohi and his three daughters would visit a Sufi shrine in Sehwan to pay tribute to Lal Shahbaz Qalandar, one of Pakistan's most revered saints. Just like many others, the labour worker and his family members would head there to take part in a weekly Dhamaal - a devotional Sufi dance sending devotees into a state of trance.-- But this Thursday, Brohi went to the shrine alone. Last week, when Brohi stopped at the gate to speak to one of his friends, he asked his daughters to walk inside. He told them that he would join them at the shrine soon. A minute later, he heard a huge blast. A suicide bomber struck the Qalandar shrine last Thursday, in an ISIL-claimed attack that killed more than 80 people. Among the dead were Brohi's three daughters and two other family members, including the five-month-old son of his eldest daughter, Tehmina. ""The suicide attacker blew his explosives when everyone gathered at the tomb of Qalandar after the Dhamaal so he could kill the maximum number of people,"" Brohi told Al Jazeera. READ MORE: Lal Shahbaz Qalandar and Pakistan's pluralistic history ""I immediately ran to search for my family. I saw dead bodies, some without their heads, others without their arms and legs,"" he said in a weak voice. ""The images still float in my mind; they don't allow me to sleep at night."" Syed Muhammad Usman Marwandi, better known as Lal Shahbaz Qalandar, is a venerated 13th-century Sufi philosopher and poet who taught peace and love and is respected across South Asia. The legend has it that he was sent a bowl of milk filled to the brim by Sehwan's-ruler at the time, indicating that there was no room for any more people and that he could not seek refuge there. But Qalandar returned the bowl with a flower floating on the top, expressing his desire to be among Sehwan's residents and spread the fragrance of love.- His-shrine has long been seen as a space where men and women from all classes, backgrounds and religions, irrespective of gender, can come together as one. READ MORE: Sufis return to Sehwan shrine in defiance of ISIL On Thursday evening, a week after the deadly attack, prominent Shia leaders based in Lahore organised a special gathering at the shrine to honour the victims of the attack. Leaders from Karachi, Quetta, Hyderabad and Larkana, as well as people from across Pakistan attended the emotional event. Their heads down and eyes closed,-hundreds-swung their bodies back and forth to the drums' beats.- ""I will still come here, every week,"" Brohi said. ""My daughters were killed at a pious place, and they are-martyrs,"" he continued, adding that he wanted to spread the ""message of love"". ""This is our place where no one can judge us and we are united. Sufis will prevail."" The shrine is also called Lal (red)-after-Qalandar's-usual red attire.- Sharafat Ali still has the red thread he bought last Thursday at the shrine from a young boy selling it for as little as 15 cents. The old tradition of-tying threads to marbled mesh on the shrine's walls is believed to have powers to get a specific wish granted. ""I don't have children, I went there to request for a child. Many people told me that no matter what we ask for, the wish will be granted,"" Ali told Al Jazeera. He also bought a body-length garland that many lay on Qalandar''s tomb. Ali survived the attack, even after he was stepped on in a stampede. ""I've hurt my leg and I have a few scars on my head, but I survived and have been discharged from the hospital,"" he said. ""It was my luck, I could have been dead now.""- Cursing the suicide bomber, Ali said the attacker could have been stopped from entering the shrine and the deaths could had been averted if there was enough security. But without hesitation, Ali said he will go back when he recovers to tie the thread ""to where it belongs"". ISIL, also known as the Islamic State of Iraq and the Levant, claimed responsibility for the attack as they oppose the culture of grave-worshipping, arguing that this-may lead to the worship of anyone other than God. Other armed groups, such as the Pakistani Taliban, have also frequently targeted shrines for not conforming to their strict, literalistic interpretation of Islam. But worshipers believe that they-stand by the values of harmony, tolerance and love. In a show of determination, civil society representatives one day after the attack-staged a protest walk which concluded with a performance by classical dancer and social activist Sheema Kermani. Walking towards the shrine was very emotional, Kermani said. A feeling of ""great sadness"" had overcome many participants, with some of them being in tears. ""But then the sufis-who were with us started reciting verses praising-Qalandar Shahbaz and we started doing the Dhamaal; the shopkeepers started throwing flower petals on us, so an atmosphere and energy of life infused among all of us,"" Kermani told Al Jazeera. Bombs cannot break the human spirit. Sheema Kermani dances at-#LalShehbaz-#Sehwan-after bloodbath. My beautiful, resilient people-#Pakistan-pic.twitter.com/NFWf0ODj34 ""?Maliha Aqueel (@AQmaliha)-February 20, 2017 ""I felt sad, angry and fearless at the same time and nothing else seemed to matter except that the Dhamaal must go on - the blood of those who died cannot flow in vain. ""We will protest, we will mourn but we will continue our age-old traditions; the sound of the drum and the beat of the feet will not stop."" Kermani explained shrines are a usual target in Pakistan as they are a blend of all sub-continental religions - many musicians at the shrines have Hindu gods painted on their instruments to signify the shrines' syncretic culture. ""This is a space where men and women from all classes, all backgrounds, different religions, irrespective of gender can come together as one. These shrines are also symbols of resistance and non-conformity and anti-establishment,"" Kermani said. ""They are under attack because they symbolise a defiance to established orthodox religion."" Shereena Qazi is on Twitter, Follow her on--@shereenaqazi Shereena Qazi is on Twitter, Follow her on- @shereenaqazi Source:-Al Jazeera News", -1381,2017/2/23,http://www.aljazeera.com/programmes/insidestory/2017/02/latest-talks-syrian-conflict-170223194623704.html,Can the latest round of talks end the Syrian conflict?,Syrian government and opposition representatives are in Geneva for a new round of UN-sponsored negotiations.,"The Syrian opposition says the fate of President Bashar al-Assad is on the agenda of the new talks on Syria's conflict in Geneva - something the government has refused to discuss. The UN mediator Staffan de Mistura has played down expectations, saying that he does not expect a breakthrough. He broke off a previous round of talks nine months ago because of an escalation in fighting. Since then, Russian intervention has helped government forces to repel rebels. So will the ""Geneva 4"" talks come to nothing just like before? Presenter: Hazem Sika Guests: Louay Safi - Former Syrian opposition leader Vladimir Sotnikov - Russia East-West Centre for Strategic Studies Salman Shaikh - Chief executive, Shaikh Group and former U-N policy adviser Source:-Al Jazeera News", -1382,2017/2/23,http://www.aljazeera.com/news/2017/02/calls-calm-anti-migrant-pretoria-rally-170223171239984.html,Calls for calm ahead of anti-migrant Pretoria rally,"A march protesting against migrants is due to be held in South Africa's capital on Friday, raising fears of violence.","The South African government has called for calm after a wave of xenophobic violence in which dozens of shops and houses owned by immigrants have been torched and looted. Attacks against foreigners and foreign-run businesses have erupted regularly in recent years in South Africa, fuelled by the country's high unemployment levels and dire poverty. In the last week, more than 20 shops have been targeted in Atteridgeville, outside Pretoria, while residents in Rosettenville, south of Johannesburg, attacked at least 12 houses. INTERACTIVE: Xenophobia in South Africa - Causes, attacks and history Many locals have alleged that the targets were brothels and drug dens being run by migrants from elsewhere in Africa, including Nigeria and Zimbabwe. Nigeria on Thursday said it had summoned South Africa's ambassador to register its fears about a fresh wave of violence against immigrants. The Nigerian government this week called for the African Union to step in to stop ""xenophobic attacks"" on its citizens in South Africa, claiming 20 Nigerians were killed last year. South African authorities dismiss such numbers, saying many violent deaths in the country are due to criminal activity rather than anti-immigrant sentiment. A march protesting against migrants is due to be held in Pretoria on Friday, raising fears of violence in the city centre. ""I wish to appeal to all South Africans to desist from rhetoric or actions that are xenophobic,"" Home Affairs Minister Malusi Gigaba told a press conference. ""There are renewed incidents of violence against foreign nationals in Rosettenville and Pretoria West,"" he admitted, blaming a lack of jobs and alleged ""drug peddling and prostitution"" involving foreigners. The UN's International Organization for Migration (IOM) said it was ""very concerned"" about the march on Friday. ""There is no evidence that foreign nationals are responsible for the rise in crime and unemployment."" Gigaba said that South African authorities were in talks with organisers of Friday's march, and that the police would ensure there was no violence. The Right2Know civil action group and other campaigns have called for the event to be cancelled. Meanwhile, in the Nigerian capital Abuja, about 100 demonstrators gathered outside the offices of two South African companies, telecoms giant MTN and satellite TV provider DSTV, to protest against the violence against immigrants. An-MTN spokesman was quoted by the Reuters news agency as saying that the offices were-attacked and vandalised during the protest. Source:-News agencies", -1383,2017/2/23,http://www.aljazeera.com/news/2017/02/somali-president-names-hassan-ali-khaire-prime-minister-170223183103523.html,Somali president names Hassan Ali Khaire prime minister,"President Mohamed, also known as Farmajo, appoints political newcomer Hassan Ali Khaire as the county's prime minister.","Somalia's new President Mohamed Abdullahi Mohamed has picked political newcomer-Hassan Ali Khaire, a former oil company executive, as the country's prime minister. Thursday's appointment was announced shortly before Mohamed, also known as Farmajo, departed to Saudi Arabia for his first foreign trip since his election. ""The president has requested Somali citizens to work with the prime minister,"" a statement on-state radio website Radio Muqdisho.net said. Mohamed took office peacefully this month after legislators selected him from 21 possible candidates. A dual US-Somali citizen with a reputation as a technocrat, he has promised to tackle hunger, corruption and violence in Somalia, which has been mired in civil war for a quarter of a century. Khaire is a dual Norwegian citizen who once worked as a primary school teacher in Norway and also for the Norwegian Refugee Council before joining British energy explorer-Soma Oil and Gas. The new prime minister had resigned from his job as the executive director for Africa, to allow him to take up the job of prime minister, Soma Oil said in a statement on Thursday. He had also given up all his shares in the firm, it added. His selection is seen by some as a nod to balancing clan interests in the Horn of Africa nation. Khaire is a member of the Hawiye clan, as is former President Hassan Sheikh Mohamud, whom Mohamed defeated in the election earlier this month. Mohamed is with the Darod clan. READ MORE: Somalia in a Snapchat, more than just violence The new president, who was inaugurated on Wednesday, has vowed to make security a priority in a country where armed group al-Shabab frequently carries out attacks in the capital, Mogadishu, and elsewhere. On Sunday, a car bomb in the capital killed at least 34. Al-Shabab earlier this week denounced Mohamed's election, calling him an apostate, and vowed to keep fighting.- Mohamed's trip to Saudi Arabia is viewed as signaling a significant shift in Somalia's regional alliances, according to some analysts. A government statement said he will meet with Saudi King Salman to discuss strengthening the countries' relationship, security and aid for Somalia's drought. ""Having travelled to Saudi Arabia for his first foreign trip as a president, the new Somali president is breaking the long tradition by Somali leaders who have paid their very first foreign trips to Ethiopia, which is called by many as the Mecca of Somali leaders,"" Mohamed Sheikh Abdi, a Somali political analyst based in Mogadishu, told The Associated Press news agency. ""This indicates that the new president now favours an alliance with Arab countries more than others."" Source:-News agencies", -1384,2017/2/23,http://www.aljazeera.com/news/2017/02/imf-boss-rato-sentenced-jail-embezzlement-170223175007508.html,Ex-IMF boss Rato sentenced to jail for embezzlement,Court finds IMF's 2004-2007 boss Rodrigo Rato and dozens more bankers guilty of using undeclared corporate credit cards. 'Corrupt system' IMF bosses' scandals,"Rodrigo Rato, a former chief of the International Monetary Fund (IMF), has been sentenced to four and a half years in jail for misusing funds when he was the boss of two Spanish banks. Spain's National Court, which deals with corruption and financial crime cases, said on Thursday Rato had been found guilty of embezzlement when he headed up Caja Madrid and Bankia between 2003 and 2012 , at a time when both groups were having difficulties. The case caused an outrage in Spain, where it was uncovered at the height of a severe economic crisis that left many people struggling financially - made all the worse because Bankia later had to be nationalised and injected with more than 22 billion euro ($23bn) in public funds. READ MORE: Distrust and anger at Spain's bungling banks Rato, who was IMF chief from 2004 to 2007 and a leading figure in Spain's governing Popular Party from 1996 to 2004, remains at liberty pending a possible appeal. He was on trial with 64 other former executives and board members at both banks accused of misusing 12 million euros ($12.7m) - sometimes splashing out at the height of Spain's economic crisis. They were accused of having paid for personal expenses with credit cards put at their disposal by both Caja Madrid and Bankia, without ever justifying them or declaring them to tax authorities. These expenses included petrol for their cars, supermarket shopping, pricey holidays, luxury bags or parties in nightclubs. According to the indictment, Rato maintained the ""corrupt system"" established by his predecessor Miguel Blesa when he took the reins of Caja Madrid in 2010. He then replicated the system when he took charge of Bankia, a group born in 2011 out of the merger of Caja Madrid with six other savings banks, prosecutors said. Blesa was sentenced to six years in jail. Rato, 67, had always denied any wrongdoing and said the credit cards were for discretionary spending as part of executives' pay deal. He told court last October that everything ""was completely legal"". Rato will not necessarily go directly to jail if he appeals the ruling, just like the Spanish king's brother-in-law Inaki Urdangarin who has been left free without posting bail following his sentence of six years and three months for syphoning off millions of euros. Urdangarin's temporary reprieve, also announced on Thursday, made waves in Spain where people have long criticised what is perceived as the impunity of the elite. Rato is the third former IMF chief to get into trouble with the law. His successor Dominique Strauss-Kahn was tried in 2015 on pimping charges in a lurid sex scandal, and was acquitted. Christine Lagarde, the current IMF chief, was found guilty of negligence over a massive state payout to a tycoon when she was French finance minister. Source:-News agencies", -1385,2017/2/23,http://www.aljazeera.com/news/2017/02/philippine-court-orders-arrest-senator-leila-de-lima-170223140039218.html,Philippine court orders arrest of senator Leila de Lima,"De Lima, a vocal critic of President Duterte, is facing drug trafficking charges during her term as a justice secretary. Trumped up charges","A court in the Philippines has ordered the arrest of Leila de Lima,-an opposition senator and a leading critic of President Rodrigo Duterte, over illegal drug charges. De Lima, a vocal opponent of Duterte's bloody anti-drug campaign,-is accused of orchestrating a drug trafficking ring when she was justice secretary during the 2010-2015-administration of Benigno Aquino. Warrants were also issued on Thursday for the arrest of the former head of the prison agency as well as a de Lima aide, who is accused of accepting bribes on behalf of the senator. De Lima has denied the charges, calling herself a victim of political persecution and saying she has long prepared herself to be the first ""political prisoner"" under the Duterte administration. In a press conference on Thursday, de Lima said that she will await her arrest at the Senate on Friday.- ""While the issuance of the warrant of arrest is questionable, I do not have any plans to evade it,"" she said, calling the order premature as the court has yet to hear the response from her lawyers.- READ MORE: Duterte accused of paying police to kill Duterte, 71, won a presidential election last year after promising during the campaign to eradicate drugs in society-by killing tens of thousands of people. Since his inauguration on June 30, an anti-drug drive has seen more than 7,000 people killed over suspected drug links - with over 60 percent of the deaths carried out by unknown assassins.- De Lima has previously called for foreign intervention to put an end to the ""state-inspired"" extrajudicial murders, which she said have been instigated by Duterte since his election to power. De Lima also led a series of Senate investigations over allegations that police officers were involved in the killings, and that hired killers were operating under orders from police.- De Lima's supporters also insist she is innocent, and that the charges are trumped up to silence one of Duterte's most prominent critics. In a statement to Al Jazeera, Senator Paolo Aquino condemned the ""political persecution"" of his fellow opposition Senate member.- ""This arrest is purely political vendetta and has no place in justice system that upholds the rule of law. This is condemnable.""��?""We reiterate that an arrest based on trumped-up charges is illegal,"" he said citing the ""haste"" in de Lima's arrest. De Lima previously claimed she was targeted because of her criticism of Duterte's drug war policy. During her time as head of the country's human rights body, de Lima also led the investigation into the alleged extrajudicial killings of an estimated 1,000 drug suspects in Davao, while Duterte was mayor of the city. When Duterte won as president in 2016, his feud with de Lima continued. At one point he called on her to ""hang herself"", after he ordered prosecutors to investigate the senator's alleged links to the drug syndicate.- This week, de Lima branded the president a ""sociopathic serial killer"" after new allegations surfaced accusing Duterte of ordering drug killings in Davao. Source:-Al Jazeera and news agencies", -1386,2017/2/23,http://www.aljazeera.com/news/2017/02/paris-arrests-youths-protest-police-abuse-170223141141299.html,Paris: Arrests as youths protest against police abuse,Eight arrests reported after isolated skirmishes as teens protest suspected rape of young black man with a police baton. 'Revenge for Theo!',"Hundreds of high-school students have protested against police brutality in France, blocking the entrances to a dozen schools in the capital, Paris, in the latest in a series of rallies triggered by the suspected rape of a young black man with a police baton. Police reported eight arrests on Thursday, according to the Reuters news agency, after isolated skirmishes with youths who hurled objects and damaged property on the fringes of what otherwise appeared to have been a relatively peaceful demonstration. The protesters are angry over the alleged rape of a22-year-old man during a February 2 arrest in an area north of Paris where large numbers of immigrants live. The man, identified only as Theo, remains in hospital with injuries to his anus and head. Four police officers have been suspended pending an inquiry into the incident. One has been placed under formal investigation for suspected rape and three others for unnecessary use of force. The Paris school authority on Thursday said more than 10 schools had been targeted by youths who piled up rubbish bins and other objects at the entrance gates. In one case, a deputy school director was injured when protesters hurled a fire extinguisher. The protest, which went on without authorisation by the police, comes two months before a presidential election where far-right leader Marine Le Pen, leader of the anti-immigrant National Front party, is tipped to win the first round but lose the run-off vote that takes place on May 7. Theo has called for public calm and his family has said they have faith in the French justice system. One of the banners carried at Thursday's rally read ""Revenge for Theo!"" READ MORE: Paris police say rape of black man an 'accident' Social media networks showed signs of skirmishes on the fringes of the rally in the Place de la Nation square in the east of Paris, where riot police in protective gear advanced on groups of mostly-hooded youths in sidestreet confrontations. A helicopter flew overhead and tear gas clouds rose into the air above that square towards the end of the rally. So far the protests have not snowballed to the extent of the unrest that 12 years ago drew global attention to the stark contrast between wealthy Paris and the suburbs that surround it. Source:-News agencies", -1387,2017/2/23,http://www.aljazeera.com/news/2017/02/protests-anaheim-policeman-drags-teen-fires-gun-170223140509148.html,"Protests after Anaheim policeman drags teen, fires gun",LAPD says it is reviewing videos after off-duty officer fires gun during confrontation with unarmed youths in Anaheim.,"Protests have erupted in the US city of Anaheim after a video circulating on social media captured the moment an off-duty US police officer fired a shot after pulling a gun on a 13-year-old boy and other teenagers.- The footage, recorded on Wednesday, shows the officer in civilian clothes dragging the boy, who demands the man release him. The 13-year-old, later identified by his parents as Christian Dorscht, challenges the man to produce evidence that he is an officer, which he refuses to do. As the confrontation escalates, some of Dorscht's friends, attempt to physically free him from the officer's clutch, at which point the man pulls a pistol from his belt and fires a shot, prompting a gathered group of Latino and black teenagers to flee. Make this go viral. Man claiming to be a police office violently grabs a Chicano boy and fired shots at other kids around him. Disgrace. pic.twitter.com/xKJ7lo9MPX At the end of the video, a uniformed police officer arrives at the scene but it is not clear who he arrests. Local reports later said Dorscht and another teen were arrested following the confrontation. The incident is believed to have started after the officer accused the teenagers of walking on his lawn. The Los Angeles Police Department (LAPD), to which the unidentified officer belonged, said it was investigating the incident, in a statement published Thursday. ""(Investigators) are aware there is a video of the incident and will review all video in this case,""?the statement said, adding: ""The officer is currently on administrative leave"". The confrontation provoked an angry reaction on social media, with many accusing the police of racism for its perceived failure to punish the officer involved. @AnaheimPD we demand that you arrest that cop. Brown lives matter more than the green lawns of racist cops. #Anaheim Dozens of people in Anaheim protested against police brutality overnight on Wednesday with some attempting to march on the officer's home. Police officials there said 24 people were arrested for ""misdemeanour charges including failure to disperse"". In July 2012, protests erupted in Anaheim after the killing of 25-year-old Manuel Angel Diaz, a Latino man who was unarmed at the time. No criminal charges were filed against the officers responsible and a civil jury later cleared the pair of charges of using excess force. The issue of excess force used by police forces, especially against people of colour, is one of the key drivers of the Black Lives Matter movement. Source:-Al Jazeera News", -1388,2017/2/23,http://www.aljazeera.com/indepth/features/2017/02/lamberto-zannier-osce-inexpensive-inclusive-170223125737318.html,OSCE head Lamberto Zannier discusses the Ukraine crisis Rosiland Jordan,Secretary General Lamberto Zannier discusses the future of the Organization for Security Cooperation in Europe. By,"Lamberto Zannier will finish his six years as Secretary-General of the OSCE, the Organisation for Security Cooperation in Europe, in mid-2017. And the career diplomat says he is cautiously optimistic that the conflict that has dominated his tenure - Ukraine - can be ended peacefully. ""We can only improve from where we are ... We try to monitor, we try to assist, [we try to] help the civilians who are suffering - [And let's not forget,] we're at the beginning of the year,"" Zannier tells Al Jazeera during his visit to United Nations Headquarters in New York. ""But there's a lot of work [to do]. The right of the people to vote [on] the split, the return of prisoners is very complicated ... The trust between the two sides is very low."" Zannier, an Italian lawyer with long experience in diplomacy, was the UN Special Representative for Kosovo and head of the UN Interim Administration Mission in Kosovo (UNMIK) from 2008 to 2011. He also spent years working on arms control issues and is an advocate for conflict prevention strategies. Zannier tells Al Jazeera he is glad the new UN Secretary-General Antonio Guterres has put conflict prevention at the heart of his agenda. As for the future of the OSCE, created to help countries navigate the end of the Cold War era in 1991, Zannier see opportunity. The opening, according to Zannier, is twofold: First, Russia's long-running frustration with western security policy. ""[I was in Munich for the Security Conference last week, and Russian Foreign Minister Sergey] Lavrov was there, really talking about the end of the western-centered world, the West weaker in a way,"" Zannier tells Al Jazeera. ""Part of is this that Russia doesn't feel it was [ever] part of the new security structure over the last 20 years, so it's coming back [to the table] with a bunch of grudges."" The other part of the opening: The Trump administration's mixed signals on its engagement with and support of the UN, NATO, and other multilateral organisations. Zannier tells Al Jazeera the OSCE's flexible structure might be what is needed to help countries address new security concerns. ""OSCE is an inexpensive option - it's inclusive, everyone in the region is there,"" Zannier says. In the future, he adds, ""I think we might want to look for a more solid European security architecture that might prevent further flare-ups, that can also focus on fighting terrorism or deal with problems in cyberspace, or dealing with economic issues, [ultimately] a good way of strengthening ties [on the continent]."" Finally, Zannier has this advice for his eventual successor: ""Work on expanding the space for engagement - where you can get [the] parties [to focus on] common interests, as opposed to the logic of sanctions and the logic of confrontation."" Source:-Al Jazeera News", -1389,2017/2/23,http://www.aljazeera.com/indepth/opinion/2017/02/diversity-american-newsrooms-170222115636285.html,,,"During a White House press conference on February 16, April Ryan, an African American reporter for the American Urban Radio Networks, asked US President Donald Trump whether he is going to meet with the Congressional Black Caucus (CBC), an organisation that represents African American members of the US Congress. Trump responded to Ryan by asking if she would like to ""set up the meeting"" with the CBC. ""Are they friends of yours?"" he asked. After the back and forth between the journalist and the president, many websites sought to highlight how Trump's comments might reveal racism or ""how he views people of colour"". The exchange also highlighted another issue in the room that day, the absence of people of colour among the journalists. In photos and video from the press conference,-few other black faces are visible. This is a largely ignored, but well-known, elephant in the room. ""White House press corps of largely white faces"", wrote Paul Farhi at The Washington Post in 2013. He wondered why US President Barack Obama was trying to discuss complex issues of race in the United States when the ""people poised to convey his remarks to the world were overwhelmingly one race - white."" A study by the American Society of News Editors found that in 2015 only 12.7 percent of employees at US daily newspapers were minorities. More than 88 percent of reporters and supervisors were white while 83 percent of videographers were. Overall blacks and Hispanics were represented about equally at slightly over four percent for each group. Distressingly, the data revealed that minority interns made up-more than 34 percent-of many large circulation newspapers, but internships were not leading to jobs for them. According to Farhi, only seven of 53 correspondents who report on the White House were African or Asian American in 2013. In the Trump press conference, it didn't seem to be that different. While other American industries, such as banking and universities, now have slick websites that showcase diversity, the White House Correspondent's Association's website has an image of reporters raising their hands to ask questions. Almost all of the 29 clearly visible faces are white (and mostly male), although there is one black man at the very back holding a camera and two women of colour. It's not the WHCA's fault that it is so monochrome. In an America, where minorities account for 38 percent of the total population, according to the US Census Bureau, few of them find their way into the newsroom and even fewer find their way to prestigious beats (PDF). In a globalised world, many media appear less than globalised in their staff and local newsrooms, and they often don't reflect their own societies. - The Columbia Journalism Review noted that ""newsrooms have addressed the issue in fits and starts over recent decades, but those efforts have stagnated in the past 10 years."" Their study showed that even in cities such as New York, where Hispanics, blacks and Asians collectively account for 65 percent of the population, The New York Times, was more than 75 percent white. Nothing could be starker. Veteran journalist Howard French called this the ""enduring whiteness of the American media"", when he looked back at decades in the profession. He recalled the 1988 presidential campaign where Jesse Jackson, an African American candidate, was routinely referred to as ""street smart"" and ""flamboyant"". These were code words for ""othering"" the black candidate, just as media referred to Barack Obama as ""articulate"". He was president of the Harvard Law Review, of course, he is articulate, does anyone comment on Hilary Clinton being ""articulate""? Lack of diversity starts with hiring. Many industries increasingly stress the importance of diversity. A PricewaterhouseCoopers ad in Britain notes that they seek to ""offer great opportunities for people with diverse backgrounds"". Whereas, a recent job posting from a major newspaper seeking a Middle East correspondent thought that having Arab-language skills was only one of several necessary skills. Diversity wasn't mentioned. Having journalists with different life experiences and backgrounds would seem essential to a newsroom. Journalists sometimes pretend they are neutral observers above the fray. But everyone brings their bias and baggage with them. The world of elite journalism often looks like a nepotistic fraternity more than the mosaic of the world it covers. This colours coverage. Kevin Carter took a famous 1993 photo of a starving Sudanese child about to be preyed upon by a vulture. He was later criticised for not intervening to help the child. Journalists tend to shield themselves from such criticism by saying it is their job to be detached and not become part of the story. Would there be the same emotional detachment if the starving child was white? Would media write about refugees in Europe differently if more journalists were Syrian or Afghan? How much is the concept of ""detachment"", a function of the fact that journalists in many countries often come from a relatively homogenous background? OPINION: Why we still need Black History Month in the US Eva Tapiero, a French freelance journalist, told me that the lack of diversity harms coverage. ""Especially because we are getting used to not being challenged at work. If everyone has the same schooling background and asks the same questions, I think it becomes harder to think outside the box."" When major media tends to draw on the same schools or social circles, reproducing the last generation's preconceptions, the barriers to entry for outsiders are even higher. In a globalised world, many media appear less than globalised in their staff and local newsrooms, and they often don't reflect their own societies. For instance, journalist and editor Siddharth Varadarajan noted that in India many newsrooms lack ""caste diversity"". While UNESCO calls for gender equality in journalism, noting that ""media are a mirror of society, as they should be, they certainly need to reflect better the fact that gender equality is a fundamental human right"", there doesn't seem to be an equally consistent call for other types of diversity to mirror society (PDF). OPINION: The media in the post-truth era Journalists and their management should take this into consideration. Instead of hiring minority reporters to cover minority communities or hiring local stringers in foreign countries, but rarely bringing foreign and diverse voices into the headquarters, they should make a better effort to increase diversity. This also applies to columnists in opinion sections. While online-only media has increased the diversity of bloggers and op/ed writers, much old media have not. It's time to acknowledge the problem and press for change. Readers and journalists have nothing to lose and they stand to gain a plethora of new perspectives and ideas for covering stories that have gone underreported. Seth J Frantzman is a Jerusalem-based commentator on Middle East politics and has lectured in American studies at Al-Quds University. He has just returned from fieldwork in Iraqi Kurdistan. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1390,2017/2/23,http://www.aljazeera.com/news/2017/02/blast-hits-lahore-defence-market-killing-170223072449241.html,Blast hits Lahore Defence area market,At least seven killed and many wounded as powerful blast rips through market in city's affluent Defence area. Military response,"At least seven people were killed and 17 wounded in a bomb blast at a market in Pakistan's eastern city of Lahore, government officials said. Thursday's blast follows a string of attacks across the country. The bombing ripped through a building that was under construction at a commercial market in the affluent Defence area,-replete with upmarket boutiques and cafes as well as an academy for the international hair salon Toni & Guy. ""It was a bomb attack,"" Nayab Haider, a spokesman for the provincial Punjab police said.-""It was a planted explosive device. We do not yet know if it was a timed device or remote detonated."" No group has immediately claimed the attack. Television footage showed a smouldering building and several crumpled cars with their windows blown out. ""My God, my God, I saw so many bodies,"" Imtiaz Ali, a barber in the Toni & Guy salon, told the AFP news agency. ""When I came out I first just saw smoke and dust ... Bikes upturned. Cars destroyed. My own colleague's car windows blown out. My clients' cars blown out. I was close to fainting."" According to police, 20kg of explosives were planted at the market. Rescue official Rizwan Naseer told reporters: ""Rescue operations have been completed, and all the wounded and killed have been taken to hospital. We suspect there may be one or two more bodies trapped under the rubble, which we are still investigating."" Al Jazeera's Kamal Hyder said the area was busy at the time of attack. Reports of a second blast in the Gulberg area were later retracted by government officials, who said that a tyre blowout caused the loud sound. Since mid-February, various armed groups have killed at least 130 people across the country and wounded hundreds more. On February 17, Pakistan suffered the deadliest attack in more than two years as a suicide bomber killed at least 88 people and injured hundreds at a Sufi shrine. The Islamic State of Iraq and the Levant (ISIL, also known as ISIS) said it was behind that attack. Jamaat-ul-Ahrar, a Pakistani Taliban-linked armed group, claimed responsibility for last Monday's suicide attack targeting police at a protest rally in central Lahore. At least 13 people died in the blast. Government and military officials have vowed extensive operations to hunt down fighters across the country and Pakistan's border with Afghanistan has been shut down due to security concerns. After the shrine bombing, Pakistani security forces said they had killed more than 100 suspected fighters in targeted campaigns across the country. On Wednesday, Pakistan's army announced that it was launching a new military operation in response to recent violence. Dubbed Radd-al-Fasaad, the operation by paramilitary forces in Punjab-focuses on counterterrorism. The Punjab is Pakistan's most populous province, with Lahore its capital. The operation aims to provide ""more effective border security"", a military statement said. The army has pursued a series of operations in the country's tribal areas over the past 15 years. Zarb-e-Azb, the latest, was launched in 2014 to target the Pakistani Taliban and their allies in North Waziristan, the group's headquarters. Last year North Waziristan was declared cleared of armed groups, but intelligence-based operations under the banner of Zarb-e-Azb continued across Pakistan. Radd-al-Fasaad marks the first time the military has formally announced a security operation in Pakistan's most populous province, which is also the political heartland of Prime Minister Nawaz Sharif. The operation gives policing powers to the paramilitary Rangers force when pursuing suspects. Source:-Al Jazeera and news agencies", -1391,2017/2/23,http://www.aljazeera.com/news/2017/02/rebels-seek-direct-negotiations-assad-government-170223050938348.html,Rebels seek 'direct negotiations' with Assad government,"Instead of negotiating in separate rooms, opposition wants face-to-face meetings with officials at Geneva talks. Opposition divisions","Syria's main opposition group has called for face-to-face discussions with government representatives, as a new round of talks in Geneva begins one year after meetings in the Swiss city fell apart. ""We ask for direct negotiations ... It would save time and be proof of seriousness instead of negotiating in [separate] rooms,"" Salem al-Meslet, spokesman for the High Negotiations Committee (HNC) umbrella group, told reporters. The talks began on Thursday. During three previous rounds of talks in Geneva last year, the two sides never sat down at the same table, instead leaving UN mediator Staffan de Mistura to shuttle between them. ""If the regime's side is here for serious talks, it shouldn""t hesitate or run away from face-to-face talks. If the purpose of the talks are to bring peace to Syria, and to stop the bloodshed, we are ready for it,"" Yehya al-Aridi, advisor to the HNC, Syria's main opposition umbrella, told Al Jazeera as the talks kicked off at the United Nations headquarters. Still, the opposition official said the rebels would not quit the talks should the Syrian government delegation refuses direct negotiations. ""We are ready to go anywhere in the world in order to bring Syria back to life,"" said Aridi. De Mistura has played down expectations for major progress in the negotiations. ""Am I expecting a breakthrough? No, I am not expecting a breakthrough,"" he told journalists at the UN headquarters on Wednesday, a day before the start of the fourth round of talks aimed at finding a political solution to Syria's long-running conflict. Though the Geneva talks are seen as the most serious diplomatic effort in months, disputes over the agenda and long-standing disagreements between the opposition and the government on the future of Syria have cast doubts on whether any progress will be achieved. READ MORE: After six years of war, low hopes for Syria peace talks De Mistura said he was determined to maintain ""a very proactive momentum""-to allow for political discussions on governance, a new constitution and elections under UN supervision, based on the UN Security Council Resolution 2254. In recent days, however, the UN mediator has shied away from using the phrase ""political transition"" - a term the Syrian opposition equates with the removal of President Bashar al-Assad - to describe the goal of the talks.- During previous rounds of UN-led negotiations, the Syrian government categorically refused to discuss Assad's fate - the main bone of contention between the two sides. The intra-Syrian talks come on the heels of multilateral meetings - facilitated by Russia, Turkey and Iran - in the Kazakh capital of Astana to consolidate a fragile nationwide truce brokered by Russia and Turkey, in place since December 30. The negotiations in Astana were meant to pave the way towards political negotiations in Geneva, but the ceasefire has steadily fallen apart over the past month, while promises to establish a monitoring mechanism were not fulfilled.- Officials from the opposition delegation, split between military and political representatives, similarly expressed little hope for the talks. ""When the adherence to the ceasefire is not there,"" and when there are ""games being played at the level of international terms of reference to political transition and a constitution [...] then the negotiations are not encouraging,"" Aridi told Al Jazeera. ""Things are getting complicated further and further, with conflicting agendas. Not only from the main two banks of the conflict, but also within our bank,"" he told Al Jazeera. Infighting within rebel ranks has severely weakened and divided the Syrian opposition over the past month. That, coupled with uncertainty surrounding US policy on Syria under President Donald Trump, a shift in the priorities of Turkey - traditionally a backer of Syrian rebel groups - and Russia's 2015 military intervention in support of Assad, has left the opposition with little leverage both politically and militarily.- ""There are no solutions in sight now. The reality on the ground is getting worse,"" Fares Bayoush, a Free Syrian Army commander, told Al Jazeera.- Omar Kouch, a Syrian analyst, said that while the presence of a ceasefire makes this round of talks markedly different, ""there are no indications that the fourth Geneva talks will be serious about finding a solution"". Kouch said the chances for reaching a solution are slim, citing the continued government offensives on several areas across Syria, the absence of the dominant Syrian Kurdish faction - the Democratic Unity Party (PYD) - at the negotiating table and major divisions within the opposition. ""As in every round of talks, we start with a lot of hope to find a solution, but then the talks are over and nothing is accomplished. In fact, things get worse,"" he told Al Jazeera.- With both sides seemingly unwilling to make political concessions, it is unclear how the negotiations could bridge the divide and find a solution. Still, the Syrian opposition is expected to press for the consolidation of the ceasefire, the release of prisoners, the lifting the blockades over besieged areas and securing a political transition from Assad's government. ""The main thing is that there is no submission. We are trying very hard, to decrease the losses,"" said Aridi. Additional reporting by Zena Tahhan: @zenatahhan- Source:-Al Jazeera and news agencies", -1392,2017/2/23,http://www.aljazeera.com/programmes/peopleandpower/2017/02/afghanistan-fall-helmand-170223060925342.html,Afghanistan: The Fall Of Helmand,People and Power goes behind the scenes with the Taliban in the Helmand province of Afghanistan.,"It was called Operation Moshtarak and it was supposed to be the defining moment of the Afghanistan conflict - an all-out assault by coalition forces on the Taliban-held city of Marjah in Helmand province. Long regarded as a ""festering sore"" by senior NATO officers, Marjah was seen as one of the last insurgent-controlled areas in the south of the country, a haven for several hundred fighters and a centre of poppy cultivation and opium production - a major source of Taliban income - and also for the mass manufacture of roadside bombs. Its anarchy and instability posed a growing threat to the regional capital Lashkar Gah, if not the whole of the country, and the time had come to clear it out, the coalition believed. As the attack got under way in February 2010, the coalition's public relations efforts went into overdrive. Led by the US Marine Corps, a joint force of 15,000 American, British, Canadian, Danish, Afghan National Army (ANA) and other International Assistance Force (ISAF) units, would ""clear the area of insurgents and allow forces to work with local institutions to bolster reconstruction and provide support for the rule of law"".-It epitomised, an array of TV pundits declared, the new ""post-surge counterinsurgency"" approach of both US President Barack Obama and NATO commander General Stanley McChrystal. Troops would be working closely with tribal elders to prepare the way for the return of Afghan police. Winning the hearts and minds of the local population was a crucial aim, and even the name of the operation had been carefully chosen to reflect this collaborative effort. Moshtarak, reporters were told, meant ""together"" in the local Dari language. And so, by December of that year, after some of the fiercest fighting of the war, the loss of around 60 coalition troops, hundreds wounded and an unknown number of ANA and civilian deaths - with thousands more driven from their homes, terrified by bombing and machine-gun fire and the incessant crack of sniper rounds - the operation was brought to a close. It had been through various intense phases because, of course, the Taliban couldn't be counted on to play ball or go quietly, but eventually, and perhaps inevitably, it was hailed as a military success. The insurgency had been suppressed, everyone declared. Marjah had been recovered and the rule of law had been re-established. Flag raising ceremonies had taken place, people could return to their homes, schools and businesses could re-open and ISAF - after demonstrating what western military might and ramped-up Afghan government services could accomplish in harness - could now focus its attention on Kandahar, the next most troublesome province. But seven years on - after seven more years of fighting, the 2014 withdrawal of most NATO troops (but not the 8,000 US forces still in country), changing administrations in Washington and Kabul and countless more killed and wounded on both sides in this seemingly never-ending war - the Taliban's white banners are flying over Marjah once again, poppy production continues unabated and the regional capital, Lashkar Gah, is once more under virtual siege. Indeed, with most of Helmand province back under the Taliban's control and another fighting season getting under way as the winter recedes, it's as though Operation Moshtarak never happened, that it was just a billion dollar blip in this country's terrible recent history. Nagieb Khaja went to Helmand to talk to both sides - Taliban and Afghan government forces - to find out why things have come full circle and where this most futile of wars is going. Source:-Al Jazeera News", -1393,2017/2/23,http://www.aljazeera.com/indepth/features/2017/02/syrians-opposition-concessions-blood-170223061625905.html,Syrians to opposition: 'No concessions over our blood' Mariya Petkova,"As bombing of civilian areas continues, Syrians are pessimistic over the outcome of the Geneva talks. By","Istanbul --Om Abd al-Rahman* holds little hope for the future of Syria. She is not optimistic, she says. After losing her husband in the war and having to leave her home in Aleppo for Idlib, the 40-year-old mother of three is currently the sole breadwinner in her family. Every day she makes the dangerous 45km trip from her home in Idilb to her office at a charity organisation in western Aleppo province through areas where kidnappings and killings are rampant, leaving behind-her children anxious and fearing for her safety. As she struggles with yet another day of insecurity, fear and despair, some 3000km west of Idlib, diplomats prepare to shuttle between the two five-star hotels hosting the Syrian opposition and the regime delegation in Geneva. For many Syrians like Om Abd Al-Rahman, who live in opposition-held areas, the talks, scheduled to start on Thursday, will not change much. ""I no longer have big hopes that any negotiations will end the war,"" she says. ""The statements of the regime and the weakness, fragmentation and infighting of the opposition killed the hope. All this does not bode well that there will be a solution in the interest of the civilians."" After every round of negotiations, the regime mobilises its forces to take over more territory from the opposition, which results in more suffering for the civilians, says Om Abd al-Rahman. Syria's Geneva talks: 'Expectations pretty low' The Geneva talks come on the heels of several rounds of negotiations in Kazakhstan's capital Astana between Russia, Turkey and Iran. The talks aim to put an end to a six-year war-that has killed nearly half a million people, injured more than a million, and displaced over 12 million - half of the country's prewar population. Despite continuous consultations on the implementation of the Russian-brokered ceasefire declared on December 30, air strikes by the regime and Russian forces have continued to pound opposition-held areas. These Geneva negotiations will be like Geneva 1, 2 and 3. The Syrians did not get anything from them except more killing. Nadia Mohamed, resident of Jisr al-Shughur Abu Ali*, a 23-year-old resident of the southern Syrian city of Deraa, says that he almost died in a recent bombing of his city. Fighter jets struck close to his house and completely destroyed his motorcycle.- The Russian air strikes on the city and the surrounding areas, that were carried out after a ground offensive by the opposition forces, hit civilian areas and damaged six hospitals. Abu Ali, whose family had to go to a refugee camp to seek safety from the persisting air strikes, says he does not see much point in the negotiations. ""We always offer concessions and it is the regime that breaches the truces. The opposition factions always observe them, but the regime never does,"" he told Al Jazeera. Nadia Mohamed, 43, who had to leave her home in Latakia countryside and flee to the city of Jisr al-Shughur, near the Syrian-Turkish border, concurs. She says the bombardment of the surrounding area has continued, and while air strikes near the refugee camps at the border decreased-after the Astana talks in January, however, they persisted over nearby villages. Nadia and her husband have to rely on the earnings of their two sons to survive. Although the $150 they earn each month is not enough to sustain the seven members of their family, she is grateful with what she has; others have no one to provide for them, she says. ""These Geneva negotiations will be like Geneva 1, 2 and 3. The Syrians did not get anything from them except more killing, more of Bashar [al-Assad's] crimes and Russian intervention,"" she says. ""The regime continues bombing. It hasn't even observed the Astana ceasefire, much less apply [what is to be agreed at] Geneva."" Nadia believes that there is no reason for the opposition to participate in negotiations unless there are international guarantees that Assad will be removed and the situation of the Syrian people improved. ""To the opposition I would like to say, remember the prisoners and the refugees in the camps and do not make concessions over our blood,"" says Mohamed. OPINION: The FSA's demands ahead of Geneva Some 100km away from her, in Atma camp, Abu Adi* is similarly pessimistic about the Geneva talks. ""We as people who have been living in camps for the past five years, we haven't really benefited from the negotiations,"" he says. ""Whether the opposition participates or not, it will be the same result."" The 34-year-old father of two says he is having trouble feeding his family with the $150 he earns from working in cement production and wood cutting. Before the war, he says he had a small business, which provided well for his family; now he worries about the security and education of his children and the terrible conditions they endure in the overcrowded camp. In his opinion, the opposition has to work to improve the conditions of its people in terms of food, medical care of the injured and social provision for the families of the martyrs. It should also try to set up safe zones to protect the internally displaced. Osama al-Koshak, a Syrian researcher and activist, explains that these negative attitudes towards the Geneva talks with Syrians' lack of faith in political negotiations. ""People would say, politics will not get us victory. The Palestinian Question was lost because of politics,"" he says. According to him, it is a widely held view that negotiations can only be effective if the opposition makes significant gains on the ground which it would then leverage on the negotiating table. Al-Koshak pointed out that today the opposition would be in a much stronger position if - before the Astana talks - the armed groups had undertaken offensives against the regime to put pressure on it. They had the necessary force but divisions and disagreements made it difficult for them to carry this out, he says. After the fall of Aleppo and the declaration of a ceasefire that excluded a number of extreme armed groups, infighting erupted in Northern Syria resulting in significant gains for Jabhat Fateh al-Sham (formerly al-Nusra Front), which announced the formation of coalition Hay'et Tahrir al-Sham along with a number of other armed factions. The infighting further weakened the armed opposition in the run-up to the Geneva talks. ""Until now, there is no military body which represents the armed factions and there is no strong political body which really represents political power. This is our main problem as Syrians: There is no one to represent us who we trust,"" al-Koshak concluded. *The names have been changed upon the request of the interviewees.- Source:-Al Jazeera News", -1394,2017/2/23,http://www.aljazeera.com/indepth/opinion/2017/02/don-blame-trump-tiring-state-solution-170223080609329.html,,,"If it was not understood before Donald Trump's election, it is certainly the case today that there is a high price to pay for the failure over the past decades to establish a ""two-state"" diplomatic agreement enabling the creation of a Palestinian state in the West Bank and Gaza Strip. The reckless new US president has many faults, but responsibility for the failure to solve the conflict between the Arabs and Israel on this basis is not one of them ""?at least not yet. Everyone is huffing and puffing about Trump's breezy dismissal of the two-state solution during the recent visit to Washington of Israeli Prime Minister Benjamin Netanyahu. But only last summer the Republican Party adopted an election platform that, unlike recent predecessors, pointedly failed to endorse a two-state solution, and deferred to Israel on the parameters of an agreement. Trump's comments are the consequence, not the source of the problems that have enfeebled the two-state option. Such disenchantment is the price we all are paying for the failure to leverage unprecedented support for such an outcome with a forceful international commitment to realise it on the ground. From the breathless critical commentary surrounding Trump's manifest disinterest in the shape of a solution to the conflict, one would think that everyone has always supported the creation of a Palestinian state on territories occupied by Israel in June 1967. Nothing could be further from the truth. It took more than three decades to forge an international consensus in favour of a Palestinian state. Never forget the famous and always stillborn Jordanian option floated from time to time by various Israeli leaders, often with American support. Or the unitary Palestinian solution still formally embraced by Hamas but originated by the young Palestinian Liberation Organsation's support for a democratic secular state in all of Palestine. Or Menachem Begin's ""autonomy for the people but not the land"" that presaged the Oslo agreements. Each of these options claimed the attention of its supporters. Some retain a powerful allegiance to this day. Why should the stillborn two-state option, which has long dominated the peace process agenda to no result, except to entrench occupation, enjoy a shelf-life any longer than these? For the first time since 1967, the diplomatic environment inherited by Trump is barren of any framework for diplomacy. Despair at the prospect of an agreement or even how to structure a diplomatic effort is Barack Obama's sad legacy. It is often forgotten that the ""peace process"" has not scored any achievement since 1996, with the troubled agreement on Hebron and some minor additions called for in Oslo. The only deals made between Israel and the Palestinians in the past two decades have been outside the Oslo framework - and Israel's partner on this track is Hamas, not Fatah/PLO. Trump is also-treading a well-worn path by his declared readiness to bless whatever agreement the parties themselves conclude. The United States has always prided itself on being an ""honest broker"". Whether it deserves the description is another matter entirely. But the year 2000's Clinton Parameters are the closest Washington has ever come to presenting for consideration its own a map dividing the land (PDF). That moment passed without consequence upon Clinton's departure soon after. Nothing that has occurred since then during the George W Bush or Obama years has come close to emulating this short-lived, last-minute example. The last thing [Netanyahu] or any Israeli leader wants is US support for a democratic state in Palestine in which Muslims and Jews are close to parity. - Long before Trump promised Israel a veto over the pace and direction of diplomacy, Democrat and Republican alike ran fast and far from anything that hinted at an imposed solution of any shape. In a speech last November summing up his failed diplomatic effort, former US Secretary of State John Kerry observed: ""[T]he old saying is real: You can lead a horse to water, you can't make him drink. If they're not prepared to take the risks - everybody knows what has to be done - but if they're not ready, then there's no way to force-feed it."" How is this materially different from Trump's view that: ""It is the parties themselves who must directly negotiate such an agreement. We'll be beside them; we'll be working with them."" It is almost certainly the case that Trump's off-the-cuff comments at his press conference with Netanyahu were not the result of any staff work worth the description. Nevertheless ,Trump's surprise decision - what other kind of decisions does the new president make? - to raise the profile, if not the details, of a one-state solution, put Netanyahu in a bind. Israel long ago annexed East Jerusalem in 1967 and the Golan Heights in 1981, and in their meeting Netanyahu asked Trump to recognise these actions. But the Israeli prime minister has no interest in conferring citizenship on two million West Bank Palestinians to the Jewish State, let alone those trapped in Gaza. The last thing he or any Israeli leader wants is US support for a democratic state in Palestine in which Muslims and Jews are close to parity. Does anyone believe that Israel would choose such an option or that Trump or any American administration would impose it? Netanyahu can live well with US support for two states. Indeed if the international community has to embrace a framework for peace, he could not do much better than the system created by Oslo more than two decades ago, improved by the much-discussed ""outside-in"" effort to engage the Arabs in a diplomatic merry-go-round. READ MORE: How Palestinians should respond to Trump's 'one state' ""The great opportunity for peace"", Netanyahu now explains, is not based upon bilateral direct talks that have been the core Israeli demand for decades, but a long-disdained ""regional approach [from] involving our newfound Arab partners in the pursuit of a broader peace and peace with the Palestinians."" He knows better than anyone that a US surrender of the two-state option opens up a radioactive one-state option. More of the same works far better for Israel. OPINION: US and Israel join forces to bury Palestinian statehood The fact of the matter is that Israel has ruled the West Bank and Jerusalem as the de facto sovereign for almost half a century, exploiting the areas' advantages as its own and settling hundreds of thousands of its own citizens. As Moshe Dayan, the former Israeli foreign secretary, presciently observed almost half a century ago, the challenge facing Israel is not to reach a solution to the occupation but to learn to live, and prosper, without one. Geoffrey Aronson writes about Middle Eastern affairs. He consults with a variety of public and private institutions dealing with regional political, security, and development issues. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1395,2017/2/23,http://www.aljazeera.com/indepth/opinion/2017/02/lake-chad-basin-world-neglected-crisis-rages-170222104058402.html,,,"On Friday, February 24, the countries of the Lake Chad region - Cameroon, Chad, Niger and Nigeria, donor governments such as Norway and Germany, the United States and the-United Kingdom, and international organisations are gathering for the Oslo Humanitarian Conference on Nigeria and the Lake Chad Region. It is imperative that they all come ready with commitments to address the grave humanitarian crisis in the region - both politically and financially, 17 million lives, mostly children and women, depend on it. Boko Haram's violent conflict which broke out eight years ago in northeast Nigeria saw a horrific campaign of attacks on civilians and mass abductions. The killings and destruction spread into four countries and developed into a violent confrontation engaging the security forces of the region. It has cost thousands of lives and pushed millions of ordinary people from their homes.- INTERACTIVE: Boko Haram Attacks Out of the 17 million people directly suffering from the consequences of this crisis, more than seven million of them are going hungry - a population more than the size of Berlin and Madrid combined. Millions live in lawless, conflict-affected areas where it is hardest for people to get the aid they need. The information available suggests that many are on the brink of starvation. Humanitarian agencies are on the ground, and organisations including Norwegian Refugee Council and Oxfam are working to deliver life-saving assistance. But the uncomfortable truth that we must face is that we are late. The bulk of the relief effort has only begun to scale up in the past year, and it still falls far short of what is needed to save lives and protect people from further harm. The situation remains extremely fragile, particularly in Nigeria where 400,000 people could be living in famine-like conditions, and without urgent funding and access to these populations, we could see the situation worsen. A humanitarian response plan for 2017 has been put forward to reach more than eight million people who are most in need of help across the region. Achieving this would require $1.5bn in funding. This is a large sum of money at a time when the humanitarian system and aid budgets are being stretched like never before. But it is no more than the same donor governments are spending, for example, on projects such as new sports stadiums, or to develop prototypes for combat drones. It's important that governments propose actions to ensure that security operations identify better ways of distinguishing between combatants and civilians. - Governments have the financial means - they must find the will to dig deep to alleviate the suffering of millions. We urge government leaders arriving in Oslo to put forward concrete pledges towards this sum and a commitment to providing a sustainable response that continues well after the end of this year. In Oslo, governments must also signal urgent action for those people in desperate need of protection from further harm. The military's efforts have been a major factor in forcing people from their homes and destroying their ways of earning a living. There are serious allegations of sexual abuse, forced disappearance and arbitrary detention. The governments of Cameroon, Chad, Niger and Nigeria engaged in fighting against Boko Haram must take seriously their responsibilities to protect civilians from harm, adhere to international law and ensure people can reach and access food and assistance safely. INTERACTIVE: Where do we spend more money? In northeast Nigeria, almost one in three women report having experienced sexual violence committed by Boko Haram, security forces and armed groups during the conflict, while violence against men and boys is also prevalent with many men and boys having been killed, detained or are otherwise unaccounted for. It's important that governments propose actions to ensure that security operations identify better ways of distinguishing between combatants and civilians. They must investigate and challenge abuse and exploitation by authorities, and take concrete steps to ensure fundamental human rights are respected. As a humanitarian scale up in the region continues, we commit to doing our part. We urge the same of governments and donors on February 24. Winnie Byanyima is a grassroots activist, human rights advocate, senior international public servant, world-recognised expert on women's rights, and currently the executive director of Oxfam International. Jan Egeland is secretary-general of the Norwegian Refugee Council. In 2006, Time magazine named him one of the ""100 people who shape our world"". The views expressed in this article are the authors' own and do not necessarily reflect Al Jazeera's editorial policy.", -1396,2017/2/23,http://www.aljazeera.com/news/2017/02/troops-advance-ghazlani-base-mosul-airport-170223065915156.html,Troops advance towards Ghazlani base near Mosul airport,Iraqi troops launch a new assault on the Ghazlani military base near Mosul's airport against ISIL.,"Iraqi special forces have begun an assault against ISIL on a sprawling military base south of Mosul, adjacent to the city's airport. Two Iraqi special forces officers told AP news agency that their troops have reached the edge of the Ghazlani base on the city's southern rim on Thursday morning and that clashes there were still under way. A federal police officer said his forces are also pushing toward the Mosul airport. All officers spoke on condition of anonymity because they are not authorised to talk to reporters. The advances come days after Iraqi forces officially launched the operation to push Islamic State of Iraq and the Levant group (ISIL, also known as ISIS) out of Mosul's western half. The operation to retake Iraq's second largest city was officially launched in October and in January its eastern half was declared ""fully liberated."" A US-led coalition has been providing close air support throughout the campaign to retake Iraq's second-largest city. US special operations forces are embedded with some Iraqi units and thousands of US troops are in-Iraq-providing logistical and other support. US Secretary of Defense Jim Mattis was holding discussions with US and Iraqi officials, a week before he is expected to present a new strategy to President-Donald Trump-for defeating ISIL. Trump has repeatedly vowed to eliminate the group but has provided few details about how his approach might differ from that of the-Obama-administration, which had partnered with Syrian and Iraqi forces to drive ISIL out of several towns and cities. The-battle for western Mosul, the group's last major urban bastion in Iraq, is expected to be the most daunting yet. The streets are older and narrower in that sector of the city, which stretches west from the River Tigris, forcing Iraqi soldiers to leave the relative safety of their armoured vehicles. WATCH: Will latest Iraqi offensive mean end of ISIL in Mosul? The presence of up to 750,000 civilians-also poses a challenge. Two suicide car bombers struck army and paramilitary forces west of Mosul on Monday, killing and wounding a number of troops, two army officers said, without specifying the number of casualties. A third suicide car bomber was blown up before reaching the troops, they said, speaking on condition of anonymity because they were not authorised to brief the media. ISIL claimed responsibility for two attacks in an online statement, saying the attackers were British and Iraqi. Source:-Al Jazeera and news agencies", -1397,2017/2/23,http://www.aljazeera.com/indepth/features/2017/01/woman-washes-dead-170112121934361.html,The woman who washes the dead Fahrinisa Oswald,The story of two women - a Palestinian Bedouin and a Syrian refugee - as one prepares the other for burial. By The caretakers of the dead A final resting place- Epilogue: An accident at sea-,"Lesbos, Greece - In the large one-room container in the quiet cemetery of Kato Tritos, a small town several kilometres from the capital of Lesbos, Warda Alkenawy prepares for the ritual body washing. The 35-year-old Palestinian Bedouin from Herat, Israel, is a social worker and accidental washer of the dead who has been on the island since September 2015 - at-the height of the mass influx of refugees. Before her lie the bodies of Ghalia Abdi and her two young children, Zanaf and Walat. They were Kurds from Syria, and, like hundreds of thousands of others, were fleeing for their lives. Only their lives ended somewhere in the Aegean, between Turkey and Greece. Now they are here, on Warda's wooden washing table. READ MORE: Lost at sea - The search for missing refugees Warda learned how to wash bodies by necessity. She came to the island to work as a psychosocial therapist for the traumatised refugees arriving in their thousands every day, focusing in particular on unaccompanied children and those who had lost relatives along the way. Before she set foot on the island, she'd never washed a dead body. There are two wooden tables inside the container room, one with slats for the water to run through. A long hose hangs from a single faucet, and a heavy white coffin sits pushed up against the wall. The white cloth used for shrouding the bodies is folded inside a small plastic bag at the foot of one table. Soon, Warda will remove the cloth and place it over Ghalia's body. She will wash the body through the cloth, maintaining Ghalia's privacy at all times. Shadia Abdi, Ghalia's younger sister, who had fled to Greece three months before Ghalia, will help her.- As the crisis continued over the autumn and into winter, the number of female refugees making the journey to Europe rose sharply. So did the number of women who died. Warda says she has never questioned her role, although she has had to find ways to deal with the psychological effects of it. ""I'm disconnecting myself most of the time. I don't remember a lot of details afterwards,"" she says. ""In my head, I'm thinking about the families, about the fact that though this journey came to an end - in that they lost a lot of things and people along the way, or they lost their lives - they still need to have dignity."" As a trained social worker, Warda knows how to deal with trauma - other people's and her own. ""Really, I think I'm protecting myself by disconnecting - not in a bad way. I know what I am doing, and I know that I will do it again and again and again, whatever it takes to give them that respect and dignity,"" she explains. Still, even she knows there are limits to just how much a person can handle. ""Sometimes, I feel that I didn't do this, I was not there, it's not me in these situations."" Warda came to Lesbos after a friend visited with a volunteer aid organisation and called her to ask if she knew of any social workers who would volunteer for two weeks. It was a Jewish holiday in Israel, so Warda had some time off. - IN PICTURES: Making a giant chessboard from refugee life jackets During those first two weeks, Warda says: ""I understood that it was my duty to do this, to be there for the families and to give them that peace of mind, to show that there is someone there to give them the dignity and the respect according to Sharia law."" When the two weeks were up, Warda returned home - but only long enough to arrange her return to Lesbos. ""I could not connect myself back to my life [in Israel], so I left,"" she explains. That meant withdrawing from a prestigious scholarship, one of only two granted to Arab women in Israel, to study at the Education Leadership School. Once back on the island, she picked up her role as social worker and body-washer. With her voice cracking, she says of the women she washes: ""The hard thing is that they didn't need to be there, on this table, in this room, in this graveyard. They need to be alive, in their country, on their land, in their homes, between their loved ones and their relatives.- ""This is the hard thing for them, to die alone in a foreign country, in [the middle of] nowhere."" Lesbos, a small Greek island in the northeastern Aegean Sea, was once known for its rugged beauty and quaint fishing villages. It is now known for something else. Since January 2015, it has been at the centre of the refugee crisis. Separated from Turkey by the Mytilini Strait, a body of water stretching less than six nautical miles at its closest point, Lesbos has been a favoured entry point to Europe for people fleeing Syria, Iraq and Afghanistan, as well as other places. For 13 passengers who attempted the crossing on July 13, 2016, six miles was the difference between life and death. Six survivors and four dead bodies were pulled from the water that morning. Three remain missing. READ MORE: The fishermen of Lesbos saving refugee lives Since October 2015, Theodoros Nousias, the island's only coroner, has performed autopsies on more than 200 drowned refugees. On the morning of July 13, another four required his attention: one man, one woman and her two young children. ""It's tragic. Some people survive and live through a war, only to drown in the sea,"" says the coroner of 20 years over coffee one morning. ""You don't feel good when you see dead children, dead babies. They haven't any idea what life is yet."" For every dead body that appears on his table, Theodoros must perform a full autopsy before handing it over to Moustafa Dawa, the self-appointed body-washer. He washes the men but must find a woman to wash the women. According to Sharia, the bodies of all Muslims must be washed - first on the right side and then on the left, and from the head towards the feet --prayed over,-and shrouded in a white cloth before being buried. And this must be performed by a Muslim. Moustafa is a 30-year-old Egyptian who has been in Greece since he was in his 20s. He came to Lesbos to study and now works as a translator as well as a body-washer and cemetery caretaker. But Moustafa does not wash the bodies of women and girls aged over seven. That must be done by a woman.- A few days after she arrived on the island, Warda met Moustafa at the Pikpa camp - a place where the most vulnerable women, children and single parents stay instead of in the larger refugee camps --where she was holding group therapy sessions for children. Two days later, at the funeral of somebody who'd drowned at sea, Moustafa asked Warda if she would help with the shrouding and washing of the women and girls. INTERACTIVE: The refugee crisis beyond Europe She agreed without hesitation, although she now admits that she hadn't really thought it through. ""When someone surprises you with something [like that], your body acts,"" she says. But Warda didn't know how to wash a body in accordance with Sharia. In fact, she'd never even seen one before. Within a few minutes, that had changed as Moustafa asked her to help cover the body of a dead woman.- ""It was a terrifying moment to touch the body. It was so cold and so hard,"" she recalls. ""It's like touching death itself."" Warda still remembers the smell. ""I crashed in that moment, crying and crying at the cemetery and then later at home as well, for two days."" The woman whose body she was there to cover had been kept, along with dozens of others, stacked one on top of the other, inside a refrigerated container at the back of the coroner's office for a month. After seeing this, and the way the bodies were piled into the back of a car to be driven to the cemetery for the washing and burial, Warda felt a renewed sense of responsibility. ""I know how the dead body needs to be treated, and this was not the way,"" she reflects. Nearly one million refugees have reached the shores of Europe - mainly in Greece and Italy - since January 2015, and nearly 4,000 have perished in the sea. As the summer turned to autumn, the number of arrivals on Lesbos increased dramatically, as refugees rushed to beat the impending winter weather. The number of autopsies and burials also grew. In November 2015, the mayor of Lesbos, Spyros Galinos, announced that the island had run out of space to bury the dead. Indeed, St Panteleimon - the only cemetery in Mytilini - had reached maximum capacity. But the dead did not stop washing up on the shore. The morgue also ran out of space. With the bodies piling up, a refrigerated container was brought in to store the dead. Over the weeks and months that followed, Warda and Moustafa established a strict procedure regarding how the bodies would be treated. ""At first, they were not buried according to Islamic tradition, the ones laid to rest in St Panteleimon,"" Warda says, explaining that they were simply shrouded in a white cloth without a ritual washing.- In November 2015, when the municipality of Lesbos set aside a plot of land in a field behind barbed-wire fences and rows of olive trees in the town of Kato Tritos, Warda learned how to properly wash a body. With little other than the sound of birds and donkeys to accompany her work, Warda washed and buried dozens of women. On mound after mound, little yellow weeds dot the graves. It is here that the bodies of the most recent victims - Ghalia, Zanaf and Walat Abdi - will be laid to rest, bringing the total number of bodies in Kato Tritos to 90. As men dig the graves and clear the weeds, Warda washes Ghalia's body. In the early morning hours of July 13, Ghalia and her husband, Fawz, had boarded a small plastic boat heading to Lesbos. Each carried a small bag and one of their two children. Now Ghalia and her two children are on Warda's table. Fawz's body is still missing. For Shadia, to see her sister lying lifeless on the table was like living in a nightmare. Later that day, Warda reflects: ""I knew it was difficult for her, and she kept closing her eyes. When I'm washing a woman, I'm covering her intimate areas. But this time I kept the head covered as well, because I knew that it was hard for her."" While Warda and Shadia finished washing the body, Ghalia's two other sisters and their brother's baby sat in the shade of an olive tree. The sisters spoke little, but when they did it was in tearful whispers.- Quietly, Warda opened the door to the washing room, looked at Moustafa and signalled that she had finished. Closing the door behind her, she walked out among the graves, reading each plaque as she passed. Pausing for a moment, she offered a prayer to all those she had washed and helped to bury. Occasionally, she pulled at some weeds. The white marble plaques atop these mounds are much the same as those in the cemetery of St Panteleimon - the patron saint of the sick and destitute - only here there are far more that read ""unknown"". These are the refugees who have not been identified, either because they were traveling alone, were part of an entire family lost at sea, or because their bodies were too mutilated or decomposed to be identified. Their plaques display the date they washed up on shore, a symbol indicating whether they are male or female, and their 3-digit DNA number. Of the 90 bodies buried here, only 28 have been identified. READ MORE: The cemetery of unknown refugees from the Mediterranean As the three bodies are taken from the washing room to the edge of the grave, men begin reciting the Quran - their voices growing louder as they lower the bodies into the ground.- Ghalia and her daughter will be buried side by side, while Walat will be buried in the grave beside theirs. If Fawz's body is found, he will be placed in the grave with his son. For Warda, this burial marks the end of her journey as a body-washer. Her flight to Israel will leave later tonight. But she knows she will be back. ""It changed my life, really. Today, I feel that my important mission is to be there for the people who most need it - for the people who are struggling to continue believing in life. It is what helps me to continue doing this,"" she says. On July 13, as the sun rose over the quiet island of Lesbos, Rami Alqdman stopped swimming and looked at the three-year-old girl in his arms and realised she was dead. Until then, it had been too dark to tell if she had survived the boat-wreck five hours before. Survivors: Dead: Missing: Zanaf Abdi had been travelling with her parents, Ghalia and Fawz Abdi, and her baby brother, Walat, along with nine other passengers. Together, they had boarded a plastic boat a little after midnight on the shores of Turkey, somewhere between Ayvalik and Bademli, they couldn't quite say, and set out for Mytilini, the capital of Lesbos. Their smuggler had told them that it would be a short 20-minute boat ride and that life jackets wouldn't be necessary. He wasn't wearing one either. Twenty minutes passed, and then an hour. Still, Greece was barely visible beyond the blinking lights in the distance. As the boat entered Greek waters, the wind picked up and waves started to toss it violently. The passengers grew nervous and began questioning the driver. He assured them that there was nothing to be worried about. Rami looked around and took note of where the two children were sitting. Then a wave came crashing over the side, half filling the boat with water. Before anyone could recover, a second wave hit and flipped the boat upside down, taking all 13 passengers with it. Two days after the accident, Rami and I sat on a wooden bench under the shade of an olive tree. We were at Kara Tepe refugee camp in Mytilini, where the six survivors of the wreck had been taken. As he sat there, clasping his hands together in his lap, he slowly rocked back and forth as he recalled that night. ""All of us became submerged under the boat, but because some of us could swim, we escaped from the sides,"" he explained. Hearing Ghalia's screams, Rami began looking for the two children who had been sitting across from him. ""Everyone was screaming then. Even the driver who they haven't found until now was screaming, in Turkish, that the kids were still down."" READ MORE: Refugees in Greece work together and build communities Going back under, Rami searched in the dark for bodies. ""I tried to grab one of them and kept it with me. At the same time, something like a plastic bag hit me. I didn't know what it was but I caught it in my other hand."" It turned out to be a life jacket. Rami didn't know where the life jacket had come from because he hadn't seen any aboard the boat. ""I held the life jacket in my right arm and the little girl in my left. I still have marks on each arm,"" he said, showing them. Rami was quickly swept away by the waves, Zanaf in one arm and the life jacket in the other. Eight hours later, still holding Zanaf's lifeless body, he was rescued by the Greek Coastguard and Frontex in a joint search-and-rescue mission. Soon after that, the bodies of Ghalia and Walat were also pulled from the water. Mother, son and daughter then began their final journey from the coroner's table, to Warda's body-washing table, and then to their graves in Kato Tritos, only a few kilometres from the beach in Mytilini where they had hoped to come safely ashore earlier that morning. Source:-Al Jazeera", -1398,2017/2/23,http://www.aljazeera.com/indepth/inpictures/2017/02/quake-survivors-spend-winter-temporary-homes-170209101043239.html,Nepal: A tragedy in pictures,,"The 2015 earthquake in Nepal caused unprecedented loss of life and damage to property. Nearly 9,000 people died and more than 600,000 houses, including centuries-old cultural heritage sites, were destroyed. Nearly two years after the quake, the worst to have hit the Himalayan nation in eight decades, people in rural areas, the most severely affected, are still living in improvised sheds or under tin roofs. Despite the international community's pledge to rebuild the country, the promised money has yet to reach those in need. According to Cold Feet Foundation Nepal, a local NGO, people have so far received only $500 out of the $2,000 promised by the government in compensation to rebuild their homes. Nepal is one of the least developed countries in Asia, with per capita income comparable with the poorest countries in the world. Rebuilding is an onerous task and uncertainties over regulatory mechanisms and new building codes have further delayed the reconstruction process. Thousands of Nepalese have now endured two bitterly cold winters living in improvised shelters and it seems they may have to face another monsoon season without proper homes. READ MORE:-The seasons have changed but Nepal has yet to recover", -1399,2017/2/23,http://www.aljazeera.com/news/2017/02/gambia-arrests-intelligence-boss-linked-abuse-170222124111918.html,The Gambia arrests ex-intelligence boss linked to abuse,"Spy chief Yankuba Badjie has been accused of overseeing kidnappings, arbitrary arrests, torture, killings and rape.","Police in The Gambia have arrested the country's former head of the national intelligence agency and his deputy, both accused of overseeing killings, kidnappings, arbitrary arrests, torture and rape during their time in office. Spy chief Yankuba Badjie and director of operations Sheikh Omar Jeng were held on Monday and are being investigated for potential abuses of power, spokesman Foday Conta told the DPA news agency on Wednesday. The arrests were part-of President Adama-Barrow's attempts to re-establish democracy in the small West African nation, a police spokesman said. Opinion: Gambia, a lesson for African dictators Badjie took over at the intelligence agency in 2013, with Jeng as his deputy. According to rights group Human Rights Watch, the state intelligence as well as government paramilitary forces targeted journalists, political opponents and the LGBT community over a period of two decades under the rule of longtime President Yahya Jammeh.- In January 2015, the former government was also accused of forcible disappearances of friends and relatives of coup plotters, including elderly people and at least one minor.- READ MORE: Gambians ready to rebuild their country \'from scratch\' Barrow has released dozens of opposition activists from prison since replacing Jammeh last month. - Jammeh caused weeks of political impasse by refusing to accept the result of the December presidential election. International pressure, including the threat of a regional military intervention, led Jammeh on January 21 to finally accept his election defeat and-fly into exile in Equatorial Guinea. Hundreds of thousands welcomed Barrow's return to Gambia days later. Barrow has pledged to reverse Jammeh's repressive policies and promised to keep The Gambia in the International Criminal Court and rejoin the Commonwealth. Source:-News agencies", -1400,2017/2/23,http://www.aljazeera.com/indepth/features/2017/02/china-pakistan-economic-corridor-worry-india-170208063418124.html,Does the China-Pakistan economic corridor worry India? Fahad Shah,The $46bn CPEC project connecting Xinjiang in China to Gwadar in Pakistan has raised concerns in India. By Economic integration India's concerns String of pearls Chabahar port,"Srinagar, India-administered Kashmir - The multibillion dollar China-Pakistan Economic Corridor, which is being called a ""game-changer"" in Pakistan, has raised apprehensions in neighbouring India. In June 2015, barely two months after Chinese President Xi Jinping announced plans to invest $46bn to develop infrastructure and energy projects in Pakistan as part of the economic corridor, or CPEC, India's Prime Minister Narendra Modi told China that it was ""unacceptable"". The ambitious project - part of China's ""One Belt and One Road"" or new Silk Road project - is a series of roads, railways, pipelines, hydropower plants and other development projects, being built from the restive Xinjiang province in China to Gwadar in south-western Pakistan. The corridor, which came into operation last November, passes through Gilgit-Baltistan in Pakistan-administered Kashmir - a territory claimed by India. Both the South Asian neighbours claim the disputed Kashmir region in full, but control parts of it. On January 17, speaking at a seminar in New Delhi, Prime Minister Narendra Modi said: ""Only by respecting the sovereignty of countries involved, can regional connectivity corridors fulfill their promise and avoid differences and discord.""- That Modi was referring to the economic corridor was confirmed by his foreign secretary, Subrahmanyam Jaishankar, two days later. ""We expect they respect other people's sovereignty,"" he said. ""The CPEC passes through a territory that we see as our territory. Surely people will understand what [the] Indian reaction is. There needs to be some reflection and I am sorry to say that we have not seen signs of that."" OPINION: The China-Pakistan corridor - A fate-changer? Dismissing New Delhi's concerns, Nafees Zakaria, a Pakistan foreign ministry spokesman, told Al Jazeera that the economic corridor is a ""comprehensive and broad-based economic cooperation project"". ""The project will contribute to [the] economic development of the entire region and not only for Pakistan and China,"" he said. ""It can be a catalyst for economic connectivity and integration in Central Asia, South Asia and West Asia. Objection by India or any other country to such an economic project is, therefore, beyond comprehension."" The project promises to be an immense economic and strategic windfall for China and Pakistan. By 2050, according to a report-by PricewaterhouseCoopers, China is projected to become the world's largest economy, with a GDP of $58.5 trillion, up from $5.7 trillion in 2010. The country's GDP growth rate has declined in recent years, however, from 7.3 percent in 2014 to 6.7 percent in 2016. The CPEC is anticipated to boost Pakistan's economy, where the GDP is expected to grow by more than five percent by 2020, according to an IMF growth forecast. PricewaterhouseCoopers-predicts that Pakistan's GDP will reach $4.2 trillion by 2050 from the current $988bn. The 3,200km-long corridor is intended to connect the world's second largest economy, China, with the Middle East and Central Asia, reducing the alternative sea route distance - via the Malacca Strait - by 10,000km. For Pakistan, the combined value of the CPEC's infrastructure projects would be equivalent to 17 percent of Pakistan's GDP in 2015,-a report by Deloitte-predicted. The report estimated that the economic corridor would create some 700,000 direct jobs between 2015 and 2030, and add up to 2.5 percent to the country's growth rate. The fact that the route passes through the disputed Kashmir region seems to have worried India, which has about half a million troops stationed in its part of the territory to quell more than two decades of armed rebellion. ""China is using Indian land area illegally occupied by Pakistan,"" said Seshadri Chari, a national executive member of the ruling Hindu nationalist Bharatiya Janata Party. Beijing has been willing to address India's concerns though. Hua Chunying,-China's foreign ministry spokeswoman,-told-the media that Beijing is committed to developing friendly and cooperative relations with others and that CPEC would not affect China's position on Kashmir.- Suchitra Vijayan, a New York-based lawyer who has worked on India's borderlands including Kashmir, told Al Jazeera: ""India doesn't want to internationalise the Kashmir issue but with Pakistan, China, and CPEC coming in, it happens."" Andrew Small, author of The China-Pakistan Axis: Asia's New Geopolitics, doesn't believe that the offers to India to join CPEC will elicit a positive response in the near future. But he believes there is a view among a number of officials in China and Pakistan that, in the long-term, that door needs to be kept open. Small told Al Jazeera that keeping the door open does not mean that India will become enthusiastic about CPEC but that ""it will be neutrally disposed - seeing some potential security benefits if Pakistan's economy is stabilised"". According to a report released by the Stockholm International Peace Research Institute - a Swedish-based think-tank - India's opposition to CPEC reflects a concern over the internationalisation of the Kashmir dispute and the growing influence of China in the Indian Ocean. It says that there is considerable concern within India that China, which has been neutral on Kashmir since 1963, can no longer be so now that its economic and security interests in these territories are growing. After the 1962 India-China war, Beijing sought to cultivate good relations with Islamabad, which has emerged as the biggest buyer of Chinese defence equipment in recent years. New Delhi sees Gwadar - a deep-sea port located in Balochistan province - as part of China's ""String of Pearls"" bases, that extends from its eastern coast to the Arabian Sea. China is also developing ports in Sri Lanka and Bangladesh that are considered a potential military challenge to India. The Gwadar port, overlooking one of the world's busiest shipping lanes in the Arabian Sea, has been leased to Beijing for 40 years. New Delhi fears that the port might become a Chinese naval outpost, thereby threatening India's energy and economic security, as more than two thirds of India's petroleum imports pass through the area. Small says that India and Pakistan can expand their commercial interactions without resolving their larger conflict - a point echoed by a leading Kashmiri separatist leader Mirwaiz Umar Farooq. He explains that India doesn't need to ""join CPEC"" anyway - in the future, it could maintain its formal objections to the initiative but still deepen trade relations with Pakistan, and in the process implicitly be utilising CPEC infrastructure, energy projects, industrial zones and more. But Mihir Sharma, who is the author of Restart: The last chance for the Indian Economy, says that India's relations with Pakistan are simply too unstable for the former's primary land connectivity corridor to Central Asia, Russia and Europe, to run through the latter's territory. ""The risk of the investment and of trade through that corridor, in both geo-strategic and economic terms, might be too high,"" he said. OPINION: India's take it or leave it choice in Afghanistan In May last year, India's Prime Minister Modi travelled to Iran and announced a deal to develop Chabahar port, barely 75km from Gwadar. India announced an investment of $500m-but the project has been repeatedly delayed. Many analysts have pointed out that the Chabahar port deal, which also includes Afghanistan, could be a parallel project to connect with Central Asia and Europe while bypassing Pakistan. India has committed close to $2bn in development aid to Afghanistan, and it maintains close military cooperation with Kabul as it seeks to reinforce its geostrategic interest in the region. Chabahar will provide India with land access to Afghanistan - something Pakistan has denied India for years. Iran could use Chabahar - about 843 nautical miles from India's commercial hub, Mumbai-- to export more goods to India and the Asia-Pacific region. This would open more investment opportunities to Indian firms, which could gain a foothold in Iran, which is emerging from years of sanctions. There would alos be benefits for landlocked Afghanistan, which would get connected to the Gulf, Arabian Sea and Indian Ocean. The Chabahar port will be linked to Zaranj city, in Nimruz province, Afghanistan, which is connected to a highway built by India in 2009. Small says that Chabahar is typically billed as an alternative and a rival port to Gwadar, and a counter-play to CPEC, but he points out: ""It's still entirely possible that Chabahar and Gwadar would end up functioning as [a] network."" Counting the Cost - The China-Pakistan economic corridor Source:-Al Jazeera News", -1401,2017/2/17,http://europe.chinadaily.com.cn/epaper/2017-02/17/content_28234273.htm,Great Wall plans high-end SUV brand launch,,"Great Wall Motor Co, one of the major sport utility vehicle manufacturers in China, plans to launch its first high-end SUV brand in May, aiming to further expand its market share. The model will be equipped with competitive technology, safety features and design, according to Wei Jianjun, founder and chairman of Great Wall Motor. Wei says the Wey model will be priced between 150,000 ($21,790; 20,504 euros; 17,372) and 200,000 yuan, about 60,000 yuan more than its popular Haval models, the best-seller in the SUV market. Sales of its star product, the Haval H6, have ranked first in the domestic SUV market for four consecutive years, with sales of 580,700 vehicles last year. It sold 938,000 SUVs in 2016, giving it the top spot in China's SUV market for the 14th consecutive year, with a share of 10.4 percent. With its large customer base, the Baoding-headquartered company is embarking on developing its luxury SUV brand. The goal is to upgrade its products and gain a bigger slice of the high-end SUV market, which is currently dominated by international brands, according to Wei. Three Wey models will be launched this year, with two more due to follow next year. Other automakers are also taking steps to upgrade their SUV offerings. More than 40 new SUV models are due to be launched this year, according to Xu Haidong, assistant secretary-general of the China Association of Automobile Manufacturers. Around 9 million SUVs were sold in China last year, an increase of 44.6 percent year-on-year, according to the CAAM. Zhang Wenhui, vice-president of Great Wall Motor, said the company attaches importance to technology and innovation. Contact the writers through zhangyu1@chinadaily.com.cn - Workers assemble sport utility vehicles at a Great Wall Motor Co plant in Tianjin. Jia Chenglong / For China Daily (China Daily European Weekly 02/17/2017 page25)", -1402,2017/2/23,http://www.rte.ie/news/2017/0223/854744-brexit/,Taoiseach wants Brexit deal to reflect Good Friday Agreement,,"The Taoiseach has said he wants the final Brexit agreement between the European Union and Britain to allow for Irish reunification in line with the terms of the Good Friday Agreement.- Speaking in Brussels after a meeting with the President of the European Commission, Enda Kenny said German reunification provided a precedent for this. He said that he wants the language of this aspect of the Good Friday accord incorporated into the Brexit deal. This would ensure that Northern Ireland could enter into the EU without having to go through a lengthy accession process first. Meanwhile, Mr Kenny said the date that most people expected Brexit would be triggered on was likely to be delayed somewhat. Despite this, he said he hoped to attend the key meetings that will set the priorities for the Brexit talks. Meanwhile European Commission President-Jean-Claude Juncker has said the EU does not want a hard border between Northern Ireland and the Republic. ""During the Brexit negotiations, the EU and Ireland must work together to minimise the impact,"" Mr Juncker said after talks with Mr Kenny. ""We don't want hard borders between Northern Ireland and Ireland,"" Mr Juncker said. Mr Kenny earlier had a bilateral meeting with Belgian Prime Minister Charles Michel, during which he was expected to-highlight and explain Ireland's particular concerns arising from Brexit. The Taoiseach was also due to-attend a high-level business event organised by Enterprise Ireland and the Embassy of Ireland. He was expected to meet-a number of business contacts and outline Ireland's-strong commitment to EU membership and the Government's approach to the Brexit negotiations. Meanwhile, a cross-party committee of British MPs-is in Dublin to hear the views of Irish businesses and politicians on the risks and opportunities of Brexit. The discussions will form part of the Committee on Exiting the EU's inquiry into the UK's negotiating objectives for Brexit. The trip is part of a programme of visits that the committee is undertaking to gather a range of views about Brexit and it plans to visit Northern Ireland in the coming weeks.", -1403,2017/2/23,http://www.rte.ie/news/2017/0223/854984-trump-nuikes/,Trump wants to ensure US is top of nuclear pack,,"US President Donald Trump has said he wants to build up the US nuclear arsenal to ensure it is at the ""top of the pack,"" saying the United States has fallen behind in its atomic weapons capacity. In a Reuters interview, Mr Trump also said China could solve the national security challenge posed by North Korea ""very easily if they want to,"" ratcheting up pressure on the Chinese government to exert more influence to rein in North Korean actions. In his first comments about the US nuclear arsenal since taking office on 20 January, Mr Trump said the United States has ""fallen behind on nuclear weapon capacity. ""I am the first one that would like to see everybody - nobody have nukes, but we're never going to fall behind any country, even if it's a friendly country, we're never going to fall behind on nuclear power. ""It would be wonderful, a dream would be that no country would have nukes, but if countries are going to have nukes, we're going to be at the top of the pack,"" Mr Trump said. The new strategic arms limitation treaty, known as NewSTART, between the US and Russia requires that by 5 February 2018 both countries must limit their arsenals of strategic nuclear weapons to equal levels for ten years. The treaty permits both countries to have no more than 800 deployed and non-deployed land-based intercontinental and submarine-launched ballistic missile launchers and heavy bombers equipped to carry nuclear weapons, and contains equal limits on other nuclear weapons. Analysts have questioned whether Mr Trump wants to abrogate NewSTART or would begin deploying other warheads. In the interview, Mr Trump called New START ""a one-sided deal"". He said it is ""just another bad deal that the country made, whether it's START, whether it's the Iran deal ... We're going to start making good deals."" The US is in the midst of a $1 trillion, 30-year modernisation of its aging ballistic missile submarines, bomber sand land-based missiles, a price tag that most experts say the country cannot afford. Mr Trump also complained that the Russian deployment of a ground-based cruise missile is in violation of a 1987 treaty that bans land-based American and Russian intermediate-range missiles. ""To me it's a big deal,"" Mr Trump said. Asked if he would raise the issue with Russian President Vladimir Putin, Mr Trump said he would do so ""if and when we meet."" He said he had no meetings scheduled as of yet with Mr Putin. Speaking from behind his desk in the Oval Office, Mr Trump declared that ""we're very angry"" at North Korea's ballistic missile tests and said accelerating a missile defense system for US allies Japan and South Korea was among many options available. ""There's talks of a lot more than that,"" Mr Trump said, when asked about the missile defense system. ""We'll see what happens. But it's a very dangerous situation, and China can end it very quickly in my opinion.""", -1404,2017/2/23,http://www.rte.ie/news/2017/0223/854975-tesco/,Strikes at additional Tesco stores deferred over notice by union,,"Strikes due to begin at six-additional Tesco stores from Monday will be deferred until the following Friday because of alleged flaws in the way the Mandate trade union served notice of industrial action on the company.- Tesco and Mandate are engaged in a dispute over the transfer of around 250 of its 14,000 employees to less-favourable contracts. Some 1,500 employees at 16 stores are already on strike, and a further 500-based in six more stores were due to join the industrial action from-Monday. The six stores were due to join the strike between Monday and Wednesday. However, a spokesperson for Mandate confirmed that lawyers for Tesco had challenged the validity of next week's strike notice served by the union. The spokesperson said that Mandate did not accept that there was any flaw in the strike notice. However, he said to avoid any risk of being tied up in expensive legal proceedings, the union had decided to re-serve the seven-day strike notice to take effect tomorrow week. Mandate has balloted members in 45 stores for industrial action, with 22 backing it, but 23 rejecting it. Tesco has described the strike as unjustified and irresponsible, and has urged the union to accept a Labour Court recommendation aimed at resolving the dispute, which has been rejected by members. Originally around 1,000 Tesco staff were affected by the move to alter contracts, but the company has spent over �13m-on redundancy payments for 700 of those employees to leave the company.-", -1405,2017/2/23,http://www.rte.ie/news/world/2017/0223/854976-bannon/,Bannon tells conservatives to expect fight against media,,"White House chief strategist Stephen Bannon has told conservatives to expect a daily fight as US President Donald Trump pushes through his agenda despite a media in ""opposition"" to his every move. ""It's not only not going to get better it's going get worse,"" Mr Bannon told thousands of grass roots activists attending the Conservative Political Action Conference just outside Washington. He was referring to media organisations who he said were ""opposed to the economic nationalist agenda"" laid out by the new president. ""If you think they're going to give the country back without a fight, you are sadly mistaken,"" Mr Bannon said in one of his first public speeches since the January inauguration. ""Every day, every day is going to be a fight."" Mr Bannon, the former chief of Breitbart, a popular conservative website that has faced criticism for fuelling the so-called ""alt-right"" movement that includes racist, anti-Semitic and anti-immigrant elements, is among the most provocative members of Mr Trump's inner circle. He is seen as wielding immense power with the president, who has come to lean heavily on the former Goldman Sachs executive for the direction of his economic and foreign policy agenda. In his attacks on the American press, Mr Trump has an ally in Mr Bannon, who described the media as ""the opposition party"" that ""betrayed the campaign, and is now betraying the administration."" Mr Bannon was joined on stage by White House chief of staff Reince Priebus, who proclaimed Mr Trump the uniter of the movement through his shock election victory in November. ""The truth of the matter is ... Trump brought together the party and the conservative movement,"" Mr Priebus said. ""And I've got to tell you, if the party and the conservative movement are together, similar to Steve and I, it can't be stopped."" Mr Bannon and Mr Priebus have reportedly been at odds, amid rumors of internal White House rivalries. But at CPAC, Mr Priebus played down any discord between them. The two share an office suite, and work together for some 17 hours a day, Mr Priebus was quick to point out.", -1406,2017/2/23,http://www.rte.ie/news/2017/0223/854853-politics-dail/,Government will not oppose bill to end mandatory retirement ages,,"The Government has decided not to oppose a bill to end mandatory retirement ages saying it wanted to support measures aimed at facilitating fuller working lives. Sinn F��in's TD for Wicklow John Brady has welcomed cross-party support for the bill saying the Organisation for Economic Co-operation and Development had shown the more older people in the workforce the better for the economy. Mr Brady said sustaining the State pension was one of the greatest challenges facing the economy and many workers struggled to achieve the necessary 520 pension contributions to qualify. He also said thousands of people were being forced to sign-on for Job Seekers' Allowance on reaching 65 because of changes to the qualifying age for the State pension. However, he said he feared this would be a ""short lived Government"" and the bill would not progress fast enough. Minister of State for Justice David Stanton said the Government had decided not to oppose the bill and wanted to support measures aimed at facilitating fuller working lives. However, he warned there were serious technical problems with the bill as drafted. Mr Stanton said it should be noted that there is no retirement age in the private sector where retirement is decided by contract, but there are mandatory retirement ages in the civil and public services.- The bill was referred to the Oireachtas Justice Committee.- Fianna F��il has also proposed similar Private Member's legislation. FF disputes Govt's claim over housing units Fianna F��il's housing spokesman Barry Cowen has disputed the Government's claim that 8,500 social housing units are presently under construction. During Leader's Questions in the D��il, Mr Cowen said only 1,829 were actually under construction and just 652 were built last year. He also asked why 500 acres of zoned residential land in Dublin was not being developed. T��naiste Frances Fitzgerald stood over the figure that the construction of 8,500 units was under way and rejected Mr Cowen's assertion that the housing targets would not be met. She said the four Dublin local authorities confirmed they would meet a point where children and families would not be using hotels by the middle of this year. - She also said that a �12m fund would be announced today to deal with repair and leasing and local authorities will work to ensure those in need of housing are met. Sinn F��in's housing spokesperson has also said there are not enough social houses being built to meet the level of demand. Speaking on RT?'s Drivetime, Eoin Ó Broin said the Government's targets on social housing construction are not ambitious and are not being met. Mr Ó Broin sad he does not believe a Government target of 3,200 social housing units for this year is deliverable. He said the Government needs a more aggressive policy in connection with rehousing families who are currently in emergency accommodation in Dublin. Meanwhile, the Independent Alliance has launched a bill, which aims to keep people in their homes and avoid repossessions. The bill allows courts to consider the social impact of repossession on homeowners and their dependents.- Speaking at the launch, Dr Padraic Kenna of NUI Galway said the bill would enable courts to conduct a proportionality assessment in relation to home repossessions. Dr Kenna said they were modest proposals and involved one or two actions to existing legislation in a small way. Independent Alliance TD Kevin Boxer Moran said he hoped to bring it forward as a government bill. Brexit more important than Kenny 'lap of honour' - senator There have been opposing views in the Seanad over the timeline of the Taoiseach's departure from office. Labour Senator Aodh��n Ó Riord��in said Enda Kenny needed to be reminded that he is not just the leader of Fine Gael but he is the Leader of the country. He said Brexit was far more important than the future leadership of ""the great Christian Democratic movement"" in Ireland-and-requested that Mr Kenny return to the Seanad to discuss the Brexit negotiations rather than doing a ""prolonged lap of honour"".- Fine Gael Senator Gabrielle said as far as most of the Fine Gael party was concerned, there was no ""lap of honour"" on the Taoiseach's behalf. She said Mr Kenny had never looked for that kind of that admiration and always put the country first. Memo on children's hospital costs to be sent to Cabinet An updated memorandum will be sent to Cabinet regarding the cost of the Children's Hospital according to the T��naiste.- Frances Fitzgerald was responding to the Sinn F��in deputy leader in the D��il who asked how the Government could stand over the spiralling costs of the hospital.- Mary Lou McDonald accused Fine Gael of spending the past two weeks gazing at its own navel and indulging in its obsession over who would be leader.- Minister Fitzgerald the original estimate cost of the hospital was �130 million, but that was based on an expected rate of building inflation at 3%, which she said has since risen to-9% . She said the updated capital costs have been put in final brief and submitted to the Health Service Executive-and the Minister for Health will bring updated memorandum for the hospital to Cabinet.- Pringle says insulin pumps could save �100m in diabetes treatment Independent TD Thomas Pringle told the D��il that �100m could be saved on the treatment of diabetes if patients had access to insulin pumps.- He said-there are 666 patients in Donegal with Type 1 diabetes, but only 20 have access to insulin pumps and that �1.3bn a year was spent on treating diabetes with-�100m on treating complications.- The T��naiste said she would ask the Minister for Health to liaise directly with Mr Pringle regarding the situation in Donegal and added that additional-funding had been given to primary care centres, for specialist interventions in diabetes.", -1407,2017/2/23,http://www.rte.ie/news/2017/0223/854955-finucane/,Minister reiterates Govt support for Finucane inquiry,,"The Minister for Foreign Affairs has said it remains the Government's view that a full public inquiry should take place into the murder of Belfast solicitor-Pat Finucane. On Tuesday Belfast's Court of Appeal rejected the latest attempt by the Finucane family to compel the British government to set up an inquiry into the 1989 murder.- At an event attended by the widow of Pat Finucane this evening, Minister Charlie Flanagan said the British government had promised to establish a public inquiry at talks in Weston Park almost 16 years and the commitment should be honoured. He also called on the British government to provide the necessary resources for Legacy Inquests.- He said he supported the case made for such resources made last year by Northern Ireland's Chief Justice, Sir Declan Morgan. The Finucane family has argued that some of the details of state collusion in the 1989 murder by loyalist paramilitaries are being 'swept under the carpet.'- Geraldine Finucane says the review carried out by Sir Desmond da Silva for the British government in 2012 did not go far enough.", -1408,2017/2/23,http://www.rte.ie/news/2017/0223/854746-syria/,Negotiators come face-to-face at Syria talks,,"Opposing sides in the Syrian war have come face-to-face in UN peace talks for the first time in three years, to hear mediator Staffan de Mistura implore them to cooperate to find a way out of almost six years of war. ""I ask you to work together. I know it's not going to be easy to end this horrible conflict and lay the foundation for a country at peace with itself, sovereign and unified,"" Mr de Mistura told the delegates sitting opposite each other on the stage of the UN assembly hall in Geneva. Mr de Mistura will hold meetings with the delegations tomorrow to establish a procedure for the talks, he told reporters after the opening session,. He added that it would be his ""dream"" to bring them back together for direct talks, but there was work to be done before that could happen. At the last Geneva talks, ten months ago, Mr de Mistura had to shuttle between the parties who never met in the same room. Mr de Mistura told the representatives of President Bashar al-Assad's government and his opponents that they had a joint responsibility to end a conflict that had killed hundreds of thousands and displaced millions. ""The Syrian people desperately all want an end to this conflict and you all know it,"" he said. ""You are the first ones to tell us it. They are waiting for a relief from their own suffering and dream of a new road out of this nightmare to a new and normal future in dignity."" Describing the negotiations as an uphill task, he said they would centre on UN Security Council resolution 2254 which calls for a new constitution, UN-supervised elections and transparent and accountable governance. He said a shaky ceasefire brokered by Russia, Turkey and Iran had opened a window of opportunity. ""The effort has jump-started the process- ... to see if there is a political road forward and we don't want to miss this opportunity."" Neither delegation clapped the speech by Mrde Mistura, who went to shake hands with both sides after his opening remarks. Even as he warmly embraced the opposition delegates, the government group were walking out of the room and did not turn back. ""We need direct talks to create empathy and trust in both sides. We still don't know if it will be direct or proximity talks, but the government has given no indication it wants to talk directly which inevitably shows how little they are committed to this process,"" a Western diplomat said. The ceasefire - which excludes hardline jihadists such as the so-called Islamic State group - was implemented after separate talks in Kazakhstan's capital Astana, brokered by Russia, Turkey and Iran. But fighting continued even as the peace talks resumed, with Syrian jets bombing rebel-held areas of Aleppo, Deraa and Hama provinces and insurgents firing rockets at government targets. The lead negotiator for the opposition - which is still fractured and does not have a completely unified delegation - said the Geneva talks should prioritise finding a political transition, something he said Mr Assad's side did not want.", -1409,2017/2/23,http://www.rte.ie/news/2017/0223/854878-ludovel-pasztor-fermoy/,Two men released without charge in Fermoy death inquiry,,"Two men questioned in connection with a fatal assault in Fermoy earlier this week has been released from garda custody without charge. A 40-year-old Slovakian man died in the incident. Garda��-say the investigation is ongoing and a-file is to be sent to the Director of Public Prosecutions. The victim, a married father of two young daughters, has been named locally as Ludovel Pasztor. He had lived in the Fermoy area for a number of years.", -1410,2017/2/23,http://www.rte.ie/news/2017/0223/854865-coleman-driving-appeal/,Hit-and-run driver who killed cyclist has sentence increased on appeal,,"An unlicensed driver who ""ploughed into"" and killed a cyclist in his 60s and then drove away has been given an extra nine months in jail following an appeal by prosecutors. Christopher Coleman, 27, of Reuben Street in Dublin 8 had pleaded guilty at Dublin Circuit Criminal Court to dangerous driving causing the death of 62-year-old Eugene Maher-in Dublin on 30 June 2015. Coleman also admitted leaving the scene of the crash on the Clontarf Road and driving without insurance. He was sentenced to two-and-a-half years imprisonment by Judge Melanie Greally on 23 June last year and was also disqualified from driving for 15 years. The Director of Public Prosecutions successfully sought a review of Coleman's sentence on grounds that it was ""unduly lenient"". The Court of Appeal resentenced Coleman today to six years imprisonment with the final two years and nine months suspended. The three-judge court effectively increased his jail time by nine months. Maher family call for change After today's hearing,-Mr-Maher's daughter Lisa said: ""The severity of these sentences needs to be changed. ""It's as bad as going out and killing somebody by the hand of a gun or by your fist. My dad was killed by a car and it doesn't seem to be taken as seriously as we would like. So we will continue to lobby for what we believe is right."" Mr Maher's widow-Marie-said her-life will never be the same again without her husband. ""At that moment my life changed forever. I miss him so much we were like two peas-in-a-pod. He was an amazing man,"" she said. Lisa added: ""My dad was a very forgiving person. He always gave people a second chance. He would have been the type of man that would have given a person like Christopher Coleman a second chance at a new life. ""So we as a family are going to take the next step at starting the forgiving process. That's something that we really really want to do, forgive Christopher Coleman for what he did to us. The end he gave to Dad. ""We hope he will turn his life around on the back of this. That lessons will be learned. Maybe if his life can be turned around and he can help others do the same thing and not make the mistakes that he's made. Maybe my dad's death won't be in vain."" Court hears car travelling over 70km/h-in 50 zone Counsel for the DPP Eilis Brennan BL had-told the three-judge court that Mr Maher was crossing at pedestrian lights, which were in his favour, when a car came out of nowhere and ""ploughed into him"". The car did not belong to Coleman, the court heard. It had been driven by his friend to the beach and Coleman drove it back because he had not been drinking. Ms Brennan said the car was gauged to be travelling at speeds between 72 and 79 km/h-in a 50km/h-zone. She said the car crashed into Mr Maher; somebody ""popped out""-and took a look at the man on the ground, got back into the car and the car drove away. The car was found abandoned nearby in Marino. A bus driver encountered five men ""very anxious"" to get on the bus. Garda�� were able to identify all five people who got on the bus. They got addresses for the people in Dublin and an additional address for them in Wexford. On 4 July, a solicitor made contact for all five men indicating that they would come forward. Ms Brennan said the body of Mr Maher had been lying in the morgue for some days and could not be released until the driver was located because, in a prosecution, the driver would have the right to examine the body. She said it was significant additional anguish for the Maher family. She said Mr Maher was an ""extraordinary healthy and fit"" 62-year-old. His wife, two kids and a number of grandchildren were left with a ""deep loss"". He ran a business with his wife, which closed as a result of his death. She said Coleman had 15 previous convictions including three driving bans. At the time of this incident he had been disqualified from driving. Ms Brennan submitted that the sentencing judge's starting point of four years was too low. What appeared to have influenced the sentencing judge, Ms Brennan said, was that there had not been multiple deaths and drink was not a factor. But the sentencing judge failed to look at some of the other ""extremely aggravating"" factors, she submitted. She said Coleman had been disqualified from driving before. He had been sanctioned but had not-taken that sanction seriously. Coleman had no licence, which was ""at least as aggravating"" as having drink on board. He had never ""demonstrated a capacity to control a car,"" she said. Giving judgment today, Mr Justice Garrett Sheehan said the headline sentence was too low given the aggravating factors: the speed, the breaking of the red light, driving while disqualified and leaving the scene. The appropriate headline sentence was six years not four, the court held. In view of the ""exceptional mitigation"" in Coleman's case, the court suspended the final two years and nine months. Mr Justice Sheehan said Coleman's remorse and guilty plea were important. There was an excellent probation report, a poignant letter from Coleman's mother and an excellent report from the Governor of Mountjoy.", -1411,2017/2/23,http://www.rte.ie/news/2017/0223/854795-airport-preclearance-us/,Officials keen for preclearance agreement to remain in place,,"Officials from the Department of Transport have told US representatives that preclearance arrangements in Dublin and Shannon should remain, on the basis that it is a valuable service for Ireland. The Taoiseach last month ordered a review of preclearance in the wake of controversy over the Trump administration's ban on some refugees entering the US. That executive order has since been overturned but it was implemented at Dublin and Shannon airports for a few days. In a statement, the Department said the Irish side restated that the Government had expressed its disagreement with the policies underpinning US President Donald Trump's recent executive orders on immigration. The statement added that these views had been communicated to the US authorities through diplomatic channels. The US side advised that consideration was being given to the issue of another Executive Order in the coming days. It is understood the meeting was brought forward by at least a month to address concerns. Preclearance was used last year by 1.18 million people in Dublin and 204,000 people in Shannon.", -1412,2017/2/23,http://www.rte.ie/news/2017/0223/854986-child-fall/,Boy critical after fall from upstairs window,,A five-year-old boy remains in a critical condition after falling from an upstairs window at his home in Co Kerry. The accident occurred on Tuesday in the family's rented home in Castleisland. The family are originally from Tralee. The child sustained serious injuries as a result of the fall and was brought to Kerry University Hospital. He was transferred to Temple Street Children's hospital in Dublin. The garda�� are treating the incident as a tragic accident., -1413,2017/2/23,http://www.rte.ie/news/2017/0223/854807-iraq-mosul/,Iraqi troops reportedly reclaim Mosul airport,,"US-backed Iraqi security forces captured Mosul airport, state television said, in a major gain in operations to drive the so-called Islamic State from the western half of the city. Elite counter-terrorism forces advanced from the south western side and entered the Ghozlani army base along with the southwestern districts of Tal al-Rumman and al-Mamoun. Losing Mosul could spell the end of the Iraqi side of militants' self-styled caliphate in Iraq and Syria, which Islamic State leader Abu Bakr al-Baghdadi declared from the city after sweeping through vast areas of Iraq in 2014. Iraqi forces hope to use the airport as a launchpad for their campaign to drive the militants from Iraq's second largest city. A Reuters correspondent saw more than 100 civilians fleeing towards Iraqi security forces from the district of al-Mamoun. Some of them were wounded. ""Daesh fled when counter terrorism Humvees reached al-Mamoun. We were afraid and we decided to escape towards the Humvees,"" said Ahmed Atiya, one of the escaped civilians said,referring to Islamic State by its Arabic name. Women liberated from #ISIS controlled areas take off their veils and burn them in defiance. pic.twitter.com/lzLfZb0Wou ""?Ruda-w English (@RudawEnglish) February 22, 2017 ""We were afraid from the shelling, he added. Federal police and an elite interior ministry unit known as Rapid Response had battled their way into the airport as Islamic State fighters fought back using suicide car bombs, a Reuters correspondent in the area south of Mosul airport said. Police officers said the militants had also deployed bomb-carrying drones against the Iraqi Counter Terrorism Forces advancing from the southwestern side of the city. ""We are attacking Daesh (Islamic State) from multiple fronts to distract them and prevent them regrouping,"" said federal police captain Amir Abdul Kareem, whose units are fighting near Ghozlani military base. ""Its the best way to knock them down quickly."" Western advisers supporting Iraqi forces were seen some 2km-away from the front line to the southwest of Mosul, a Reuters correspondent said. Iraqi forces last month ousted Islamic State from eastern Mosul and embarked on a new offensive against the militant group in densely-populated western Mosul this week. The campaign involves a 100,000-strong force of Iraqi troops, Kurdish fighters and Shia-militias and has made rapid advances since the start of the year, aided by new tactics and improved coordination. US special forces in armoured vehicles-positioned near Mosul airport looked on as Iraqi troops advanced and a helicopter strafed suspected so-called Islamic State positions. Counter-terrorism service (CTS) troops fought their way inside the nearby Ghozlani base, which includes barracks and training grounds close to the Baghdad-Mosul highway, a CTS spokesman told Reuters. The airport and the base, captured by Islamic State fighters when they overran Mosul in June 2014, have been heavily damaged by US-led air strikes intended to wear down the militants ahead of the offensive, a senior Iraqi official said. The US-military commander in Iraq has said he believes US-backed forces will retake both of Islamic State's urban bastions - the other is the Syrian city of Raqqa - within the next six months, which would end the jihadists' ambitions to rule and govern significant territory. Iraqi commanders expect the battle to be more difficult than in the east of Mosul, however, in part because tanks and armoured vehicles cannot pass through narrow alleyways that crisscross the city's ancient western districts. Militants have developed a network of passageways and tunnels to enable them to hide and fight among civilians, melt away after hit-and-run operations and track government troop movements, according to inhabitants.", -1414,2017/2/23,http://www.rte.ie/news/galleries/2017/0223/854847-weather-storm-doris/,In pictures: Storm Doris,,, -1415,2017/2/23,http://www.rte.ie/news/2017/0223/854936-green-bins-recycling/,Pilot scheme to use cameras to monitor green bin content,,"A pilot scheme to use cameras to monitor the contents of green bins is to be rolled out to 12,000 Panda Waste customers in Dún Laoghaire/Rathdown. The move is a response by Panda Waste Management to what it-says is a level of 40% contamination of recycling waste. Speaking on RT?'s Drivetime, Des Crinion of Panda Waste said-the contamination of green bin waste is a major problem and the company is also considering fines.- ""It's unbelievable what comes in in the bins. ""It's supposed to be material that we can sort out and use as raw material to go back into the manufacturing process, but we see everything from nappies, which is number one, food waste, which is huge, and also textiles."" Mr Crinion explained that the camera will be on the back of the refuse truck and-as each green bin is tipped out a high-speed camera will take hi-definition photos of the material being emptied. He said that the rubbish is linked to each individual bin by a microchip and also by Global Positioning System tracking on the trucks. This enables the company to approach the person who has discarded the contaminated waste and ask them to stop this practise and if they do not stop they may be fined. Dublin City Independent Councillor-Cieran Perry, who was involved in the anti-bin charges campaign, said the issue highlights the problem that was foreseen with people trying to avoid paying waste charges. He says the argument is still the same in that he believes a public service like waste management should be paid for from general taxation. Mr Perry said there is only a small number of people who are contaminating-green bin waste and he does not accept that 40% of people are doing this. He said he believes many people are ignorant-of what can be recycled and what cannot and most contamination is not deliberate. Mr Crinion said that his company hopes the use of cameras will help to determine who is contaminating waste deliberately or out of ignorance. Anyone caught contaminating the green bin waste will be given ""one-chance"", according to Mr Crinion, and after that they will be charged the green bin as a black bin-if the issue persists. He said the company is confident it will be able to match the offending waste to the household by identifying the bin.", -1416,2017/2/23,http://www.rte.ie/news/2017/0223/854800-vegetables-fruit-advice/,Study: Ten-a-day fruit and veg 'gives best protection' against disease,,"Eating ten portions of fruit and vegetables every day could significantly reduce a person's risk of heart disease and cancer, a new study has found. While eating the recommended five a day still helps reduce disease risk, the highest benefits are seen when people consume ten portions, researchers found. The study, published in the International Journal of Epidemiology, also identified which fruit and vegetables provided the greatest protection against disease. Researchers from Imperial College London analysed data from 95 studies concerning fruit and vegetable intake. The team found that although even the recommended five portions of fruit and vegetables a day reduced disease risk, the greatest benefit came from eating 800g a day - assuming that 80g is one portion - compared to people who ate none at all. But even smaller intakes had benefits - a daily intake of two-and-a-half portions was associated with a 16% reduced risk of heart disease, a 4% lower risk of cancer and a 15% reduction in the risk of premature death. Consuming ten-portions a day was associated with a 24% reduced risk of heart disease, a 33% lower risk of stroke, a 28% reduced risk of cardiovascular disease, a 13% reduced risk of cancer, and a 31% reduction in the risk of dying prematurely. The authors estimate that if everyone on the planet ate ten-portions of fruit and vegetables each day then 7.8 million premature deaths could be prevented worldwide. The research team also found that apples and pears, citrus fruits, salads and green leafy vegetables such as spinach, lettuce and chicory, and cruciferous vegetables such as broccoli, cabbage and cauliflower may help protect against heart disease, stroke, cardiovascular disease, and early death. And cancer risk could be reduced by eating green vegetables, such as spinach or green beans, yellow vegetables, such as peppers and carrots, and cruciferous vegetables. Lead author Dr Dagfinn Aune, from the School of Public Health at Imperial, said: ""We wanted to investigate how much fruit and vegetables you need to eat to gain the maximum protection against disease, and premature death. ""Our results suggest that although five portions of fruit and vegetables is good, ten a day is even better. ""Fruit and vegetables have been shown to reduce cholesterol levels, blood pressure, and to boost the health of our blood vessels and immune system. ""This may be due to the complex network of nutrients they hold. ""For instance they contain many antioxidants, which may reduce DNA damage, and lead to a reduction in cancer risk. ""It is clear from this work that a high intake of fruit and vegetables holds tremendous health benefits, and we should try to increase their intake in our diet."" Meanwhile, a separate story published in the journal Thorax, found that a fruit and veg-rich diet is linked to much lower risk of chronic lung disease. Experts assessed information on the health and dietary intakes of more than 44,000 men from Sweden. During follow-up, almost 2,000 cases of chronic obstructive pulmonary disease (COPD) were diagnosed. The authors found that those eating five or more daily servings were 35% less likely to develop lung disease than those eating two or fewer daily servings. Each additional serving was associated with a 4% lower risk of COPD in former smokers and an 8% lower risk in current smokers. The British Thoracic Society stressed that people who smoke should know that kicking the habit is the most effective way of reducing their chances of developing COPD. Chief nutritionist at Public Health England Dr Alison Tedstone-said: ""The 5-A-Day target is the foundation of a healthy balanced diet and is an achievable way to help prevent a number of diseases. ""Whilst consuming more than five portions of fruit and vegetables a day may be desirable, two thirds of adults currently don't consume the recommended minimum of 5-A-Day. ""Adding pressure to consume more fruit and vegetables creates an unrealistic expectation.""", -1417,2017/2/23,http://www.rte.ie/news/2017/0223/854908-policing-authority-gardai/,Policing Authority told whistleblower controversy affected garda morale,,"Two assistant garda commissioners have told the Policing Authority that garda�� are looking forward to giving their side of the story to the forthcoming Charleton Tribunal of Inquiry. Assistant Commissioner John O'Driscoll said there has been frustration among garda��-who have information and cannot give it without a public inquiry. He said they will now have the opportunity to give that information and added that he believed ""any dent in confidence"" in the garda��-would be restored by the work of the Tribunal. The inquiry will investigate an alleged smear campaign by senior garda�� against Sergeant Maurice McCabe. The inquiry also will include other garda whistleblowers. The Assistant Commissioner compared the current situation to a person listening to just one side, the defence side in a court case, who then leaves and has to decide on the innocence-or guilt of an accused. Assistant Commissioner Eugene Corcoran said morale among garda��-was being affected by this situation. The garda��'s executive director of human resources told the authority that three metrics show there has not been a decline in confidence in the force. John Barrett said there has been no reduction in the numbers seeking to join the force, there has been 31 applications to the Policing Authority for the post of assistant commissioner and the ""feedback loops"" that they monitor constantly remain positive.", -1418,2017/2/23,http://www.rte.ie/news/2017/0223/854748-weather-storm-doris/,Majority of homes will have power restored overnight,,"ESB Networks has said 49,000 customers have had their electricity supply restored after outages across the country-as a result of Storm Doris Some 8,000 customers remain without a power supply. Speaking on RT?'s Six One, ESB Corporate Communications Manager Bernadine Maloney said she expects the majority of homes will see power restored tonight. -About 56,000 homes were affected earlier. Large faults had been reported in counties Galway, Mayo, Sligo, Leitrim and Dublin. Portarlington in Co Laois and Celbridge in Co Kilare also experienced large outages. Speaking on RT?'s Morning Ireland, Ms Maloney asked customers to check on the ESB's powercheck website-to see if their outage is listed. If it is not, customers can-contact EBS Networks on 1850-372-999. She urged everyone to be careful until power has been restored and to report any fallen lines to the ESB. Work to clear trees in Shankill, Dublin (Pic: John Coveney Photography) A garden in Carrickmacross, Monaghan (Pic:-Ramona Tobin) A fallen tree is cleared in Shankill, Dublin (Pic: John Coveney Photography) Met ?ireann had-issued an orange wind warning,-the second highest level,-for many counties, but it has now lapsed. Some flights from Dublin Airport have been cancelled and others face delays. A spokesperson for Aer Lingus said early morning departures were delayed due to ground wind conditions. Passengers are advised to check the website before departing for the airport. - Affected guests can change or cancel bookings online / on mobile or by calling +35318868989. #StormDoris pic.twitter.com/Qf3M4sgaeY ""?Aer Lingus (@AerLingus) February 22, 2017 Ryanair has also said some flights have been delayed. Morning. #StormDoris causing some delays at Dublin. View live flight info here: https://t.co/IBMzS28q2m ""?Ryanair (@Ryanair) February 23, 2017 AA Roadwatch is reporting that fallen trees on roads around the country are causing traffic disruption. Some Iarnr��d ?ireann-services were disrupted, and delays continue.- Update: all lines now clear of trees and operating. DART, Northern Commuter delays of 5-20 mins remain but will ease. #stormdoris ""?Iarnr��d ?ireann (@IrishRail) February 23, 2017 Some ferries between Ireland and the UK have also been cancelled. Passengers are advised to check with their operator. Woman dies after being hit by debris in UK A woman has died after being struck by flying debris in the English city of Wolverhampton, while two others were left with serious head injuries in separate incidents. West Midlands Police confirmed the 29-year-old woman was ""struck"" by ""wooden debris from a nearby building"" and have said they are working with Wolverhampton Council to establish how the incident happened. The weather system, which brought gales, snow and rain to much of the UK, also caused travel disruption on the roads and rail network, brought down trees, grounded planes, and toppled large vehicles. -", -1419,2017/2/23,http://www.rte.ie/news/world/2017/0223/854918-mexico/,US official promises 'no mass deportations' during Mexico visit,,"US Homeland Security Secretary John Kelly has promised ""no mass deportations"" or military force against immigrants in the United States, despite a crackdown on those in the country illegally. ""There will be no, repeat no mass deportations"", Mr Kelly told a news conference in Mexico City after meeting with Mexican ministers. ""There will be no use of military force for immigration operations."" The meetings aimed to calm diplomatic tensions with Mexico, which has been targeted by US President Donald Trump with a hard line on trade and immigration. Speaking hours earlier at the White House Mr Trump made comments that appeared to contradict the message of his envoy to Mexico, describing the stepped-up deportation drive as ""a military operation."" ""We're getting really bad dudes out of this country, and at a rate that nobody's ever seen before,"" Mr Trump said. Mr Trump has outraged Mexico by vowing to build a wall along the border to keep out migrants from Latin America, whom he branded rapists and criminals during his presidential campaign. On Tuesday Mr Kelly issued new orders to begin arresting and deporting illegal immigrants, many of them Mexicans. US Secretary of State Rex Tillerson was also in Mexico City where he met with his Mexican counterpart, Luis Videgaray. Mr Tillerson said the two sides ""reiterated our joint commitment to maintaining law and order along our shared border by stopping potential terrorists and dismantling the transnational criminal networks moving drugs and people into the United States."" But he agreed that cooperation on border security had to work both ways. ""We underscored the importance of stopping the illegal firearms and bulk cash that is originating in the United States and flowing into Mexico,"" he said. ""There's no mistaking that the rule of law matters along both sides of the border."" US officials said the trip was aimed at affirming positive relations with Mexico. But Mr Trump said he was determined to reduce the $70 billion US trade deficit with Mexico even at the risk of harming ties. ""We're going to have a good relationship with Mexico, I hope. And if we don't, we don't,"" he said.", -1420,2017/2/23,http://www.rte.ie/news/2017/0223/854966-israel-politics/,Evidence of corruption involving former Netanyahu aide - police,,"Israeli police have said they have evidence that a former chief-of-staff to Prime Minister Benjamin Netanyahu illegally advanced his own business interests while holding the position. - - - - - - The allegations against Ari Harow have been widely reported in Israeli media, and this latest development seemed unlikely to have any political impact on the prime minister, who himself is linked to two other corruption investigations. The police said in a statement that they have been investigating Mr Harow since mid-2015, shortly after he stepped down as Mr Netanyahu's chief-of-staff. Mr Harow had been appointed the previous year, after leaving his consulting firm 3H Global. Prior to being made chief-of-staff, Mr Harow had ""pledged to sell the company that he owned and not to engage in matters relating to it,"" the statement said. The investigation, however, found that Mr Harow only appeared to have sold the company through ""misrepresentation"" and that he ""continued to hold, enjoy its profits and promote its interests"" while in the job, the police said. Mr Harow has denied wrongdoing. His lawyer was unreachable for comment. The police said they were handing their findings over to the State Attorney's office, which could lead to charges including bribery, fraud and breach of trust.", -1421,2017/2/23,http://www.rte.ie/news/2017/0223/854849-eu-funding-expected-to-support-100-research-jobs/,EU funding expected to support 100 research jobs,,"One hundred high-value research jobs are expected to be created across research institutions, companies, civil society organisations and public bodies in Ireland as a result of �10m in research funding that has been secured from the European Union-by researchers based in Ireland. The money was granted under the Marie Skłodowska-Curie Actions (MSCA) - a fund which is part of the Horizon 2020 programme that aims to develop talent and training, and encourage the movement of researchers between countries. Named after the Polish-born Nobel Prize winning researcher, the MSCA funds researchers at all stages of their careers across all research areas of study and industry sectors. �1m will go towards helping six research and innovation projects within companies and civil society organisations. Among the projects to receive funding past funding under the scheme is Envirotech Innovative Products Ltd., a spin-in to NovaUCD comprising partners from University College Dublin, Trinity College Dublin and Teagasc.- It received money for an agrifood project. TE-Laboratories Ltd, a chemicals and environmental analysis company based in Carlow, received money to investigate soil and groundwater contamination and the remediation of contaminated land sites. It is working with Dublin City University and Teagasc on the projects. All the grant winners are being assisted by the Irish Marie Skłodowska-Curie Office, a partnership by the Irish Universities Association and the Irish Research Council, assisted by Science Foundation Ireland. Over the past five years, �100m in European funding has been secured by researchers here, making the MSCA the source of Horizon 2020 funding to be most successfully accessed by Irish applicants.", -1422,2017/2/24,http://abcnews.go.com/Politics/trump-list-shows-746-travelers-detained-processed-travel/story?id=45646957,"Trump list shows 746 travelers 'detained or processed' under travel ban, lawyer says",,"Nearly 750 people were ""detained or processed"" during the 26-hour period after a Brooklyn judge issued an order blocking part of Donald Trump's controversial travel ban, according to an attorney representing plaintiffs. In a letter obtained by ABC News, the government said ""this list includes legal permanent residents."" A different federal judge in New York Tuesday ordered Trump's administration to produce a list of all people detained as part of his executive order that limited travel and immigration from seven countries and temporarily shut down the U.S. refugee program. Today, an attorney with the American Civil Liberties Union told ABC News that the government provided the organization with 746 names of people held or processed from Jan. 28 at 9:37 p.m. ""? when the Brooklyn judge halted part of the ban that allowed for deportations -""?to Jan. 29 at 11:59 p.m. The list was ordered to include travelers who arrived with refugee applications, valid visa holders and people from the seven countries ""?Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen ""? covered by the ban who were legally authorized to enter the U.S. After Trump issued the order, the administration said that green card holders and others were not subject to the order. But a Washington state federal court put a nationwide block on Trump's order on Feb. 3. An appeals court declined to lift the restraining order. At the time, Trump appeared to downplay the number of people detained as a result of the order's implementation. Only 109 people out of 325,000 were detained and held for questioning. Big problems at airports were caused by Delta computer outage,..... And White House press secretary Sean Spicer said the same day: ""remember we'r talking about a universe of 109 people. There were 325,000 people that came into this country over a 24 hour period from another country. 109 of them were stopped for additional screening.""?Tuesday's order was delivered as part of a case filed by two Iraqi nationals who were detained at New York's John F. Kennedy International Airport. The restraining order issued in Brooklyn on Jan. 28 expired Tuesday.", -1423,2017/2/24,http://abcnews.go.com/US/life-limbo-diary-syrian-mom-affected-travel-ban/story?id=45299148,Life in limbo: Diary of a Syrian mom affected by travel ban,,"ABC News has been chronicling the experience of Alaa Ali Alali, a 48-year-old single mother who fled war-torn Aleppo in 2012 with her 14-year-old son, as she tries to navigate her way to the U.S. as a Syrian refugee following President Donald Trump's executive order, which banned Syrian refugees indefinitely from entering the country. She had been cleared to come to the U.S. in February, but the executive order threw that into limbo. She will share her journey through videos, text messages and phone calls. Alali was greeted with cheers and applause as she walked into the arrivals terminal at Oakland International Airport on Wednesday evening. ""I cannot believe that I am here right now,"" Alali told ABC News. ""I don""t believe. It looks like a dream, really."" Alali's brother Hassan, who has not seen his sister in years, was one of the family members waiting for her at the airport. He handed her a bouquet of flowers. Their lips were trembling as they embraced each other. ""It's a very special day,"" he told ABC News. ""Finally she is with us, safe. And she is starting a new life. Hopefully she's going to be very successful. I'm very happy. It's a great day ""?very special day in my life."" Alali had previously told ABC News that she was afraid that she would never make it to the U.S. because of the executive order that had banned refugees from Syria indefinitely from entering the country. The order was suspended by a court ruling. Today, Alali messaged ABC News from the airport in Cairo. She would soon board a plane to New York. ""I feel relieved now,"" she said in a video recording. ""I'm going to meet my family again."" Alali found out that she will board a plane to the U.S. tomorrow. She said she went to meet with case workers from the International Organization for Migration in Cairo. The two previous times she went to such meetings, her planned U.S. trips were canceled -- but this time seemed different, she said. She even signed a letter promising she'd repay the IOM for the plane ticket that was booked for her. ""I'm very happy that I'm going to see my father and brothers,"" Alali told ABC News in Arabic over the phone. After Alali fled her war-torn Syria in 2012, she tried to apply for a visa to the U.S. so that she could visit her mother there who had entered a coma. But Alali never got a visa and her mother died before she could see her. Alali said she had been afraid the same would happen to her father who is in his 80s. ""I haven't seen my dad for five years and some of my brothers I haven't seen for 10 years. My mom died there and I couldn""t see her. After my mom passed away, my dad has been alone. My brothers love him and are very kind to him, but in that age you have a type of weakness. When I talk to him on the phone he always cries. The plan is that we'll live together the three of us -- my dad, my son and I. I hope my happiness will be complete and that I'll actually be traveling to the U.S. tomorrow. I'm scared that something will happen. Surprising decisions keep being made and the situation might change."" Alali said she has been trying to get a ticket for her son on her New York bound flight; as a Canadian citizen he is not part of the refugee program like his mother. ""So far the travel agency has told me that they don't know if he can get a ticket on the same flight as me,"" she said. ""It's one of the things that are making me nervous. He has never traveled alone before. I don't know the rules. I'm afraid that we will be separated and that he will be questioned in the airport if he's traveling alone -- that they will ask him where his family is and deny him entry."" Once again, Alali's travel to the U.S. has been postponed. She said the International Organization for Migration had told her to prepare for travel tomorrow, but today the organization informed her that she will not be traveling as planned. IOM declined to comment. A spokesperson for the U.S. State Department told ABC News the department was not able to provide information on specific resettlement cases to the media. ""The travel was postponed again until the 21st of this month,"" she told ABC News in Arabic over the phone. ""Today I spent four to five hours waiting in the street outside the U.S. Embassy while case workers from the International Organization for Migration were inside trying to fix the problem. The U.S. has a list of names of who is able to travel tomorrow and apparently my name is not on it. My son Mohammad and I had been so happy because we were finally going to the U.S. We had made a deal that we were going to the Pyramids today. It was going to be our last memory from Egypt. Our bags are ready. I have prepared everything and weighed the bags. Now I'm crying and my son is upset. I don't know if I should unpack or not. My family in the U.S. had been so happy and was expecting us. My son was so happy. He's very attached to his granddad who's in the U.S. He's like a father to him."" Alali said she had paid around $300 to change her son's plane ticket after their scheduled trip on Feb. 9 was cancelled. She has to purchase his plane ticket herself because he's not part of the refugee program like his mother due to his dual Canadian and Syrian citizenship. ""I don""t know if I should still send him to the U.S. tomorrow or not,"" Alali said. ""Currently I can't send him to school here. I took him out of school because I thought we were leaving and I have to pay to send him back to school and I don't know what to do. If I could be sure that he'd be able to enter the country with no problems I'd do it. But I'm afraid they'll stop him in the airport and ask him why he's traveling alone and how old he is. I spoke to the travel agency and they told me that the fee for changing the ticket would probably be higher this time, but that they'll get back to me. My son really wants to go, but at the same time he wants to be with me. He's afraid like me. I'm afraid they'll keep postponing the travel until the American president will be able to make a new decision that will stop me from traveling."" Alali was supposed to board a plane headed to the U.S. on Feb. 9. But today she received a call from the International Organization for Migration, informing her that she will not be traveling after all. ""They told me that they would call me back with a new date. They postponed my travel. Others will be traveling tomorrow, but not me. They told me that they don""t know why my travel was postponed and that they will call me back soon to set a new date,"" she told ABC News in Arabic. Alali's son was born in Canada and is a dual Syrian and Canadian citizen, meaning that he is not part of the refugee program like his mother. After Alali learned that she was flying tomorrow, she booked a ticket for her son on the same flight. Now, she says she doesn""t know if she should let him travel alone. ""I begged them [to let me travel tomorrow] because I already booked a ticket for my son. I don""t know what to do now. I'm very distressed. I'm afraid that I won""t be able to travel at all. My son is very upset. He doesn""t want to leave me.""?Earlier in the day, before her travel was cancelled, Alali had a meeting with the IOM. She said she was happy but worried -- the 9th U.S. Circuit Court of Appeals still hadn""t made a decision on whether President Trump's travel ban should be reinstated. ""We have to be at the airport tomorrow at 6 am. And God willing we will depart at 10:30,""?she said following the meeting. ""We are going to New York tomorrow. I'm going to buy a suitcase now and then go home. I""ve already weighed my bags so I just need to move things to the new bag and then I'll be ready. I'm very happy, but I'm also a little afraid. The court still hasn""t made a decision. I'm scared that something I haven""t expected will happen, that the ban will come back into effect. But I'm very happy because I'm going to see my brothers that I haven""t seen for about 10 years and my dad who I haven""t seen for almost five years. My son is also happy that he might get a better life. My dad is happy because he needs me.""? The decision by a federal judge to place a temporary restraining order on Trump's ban has failed to allay Alali's fears. ""As a single mother without any kind of support, loneliness and fear accompanies me for now, but I still trust the people and I hope things will change because justice and mercy are what makes us humans. I think this cruel decision will face refusal by the court. But the process will take a long time. Now, I'm waiting for a call from IOM [The International Organization for Migration] to set a new date for departure. They promised to do the best they could before 'The Ban' starts once again. So I'm in terror of what's next to come."" The International Rescue Committee was assigned Alali's case in January and is involved in the planning of her arrival in the U.S. Karen Ferguson, IRC executive director in northern California, told ABC News today: ""�This is a perfect example of how timing will determine the fate of the unification of this family. It would never have occurred to me that all of a sudden this family's case would be interrupted. Isn""t she the exact type of person we would want here? She's a dentist, she's a survivor. She ran her own clinic in Syria. She fled terrorism. She has family here who's willing to support her. And this is the person we""�re going to bar?""?,-1""", -1424,2017/2/24,http://abcnews.go.com/Politics/wireStory/legal-path-ahead-trump-travel-ban-45697329,A look at the legal path ahead for the Trump travel ban,,"President Donald Trump's travel ban has been frozen by the courts, but the White House has promised a new executive order that officials say will address concerns raised by judges that have put the policy on hold. The first order was met by legal challenges, confusion at airports and mass protests. The White House has forecast smoother sailing the second time around. White House press secretary Sean Spicer predicted ""it will be implemented flawlessly"" because of the due diligence of officials. But no matter what the new policy says, lawsuits challenging its aims are expected. Questions and answers about the path ahead: WHEN IS THE ORDER COMING, AND WHAT WILL IT SAY? The White House says it expects to issue a new order next week, though it has not said exactly when. Trump aide Stephen Miller said at a Fox News town hall this week that the new order would be very similar to the first, with ""mostly minor technical differences"" in response to opinions by judges who have blocked it. The Justice Department has said the Trump administration would be abandoning the original order, which should render moot ongoing court challenges to that order. But the president and the White House press secretary have also recently said that they intend to fight for the merits of the original order in court, even as they draft a replacement. The new order could go into effect immediately and would not be blocked by the court ruling that has kept the existing order on hold, said David Levine, a professor at the University of California, Hastings College of the Law in San Francisco. Levine said new regulations and laws are assumed to be legal until a court says otherwise. ""It's valid unless it's invalid,"" Levine said. ""?CAN WE EXPECT COURT CHALLENGES TO THE NEW ORDER? Almost certainly. For one thing, Washington state and Minnesota, the two states whose lawsuit led to a court order that halted the order, could move quickly for a court order putting any new ban on hold. In refusing this month to reinstate the travel ban, which a judge in Washington state had blocked from taking effect, the San Francisco-based 9th U.S. Circuit Court of Appeals identified ""significant constitutional questions"" with the administration's plan to temporarily suspend the refugee program and to halt immigration from seven Muslim-majority nations. It's hard to imagine a ""bulletproof"" order that could assuage the concerns of the immigrant rights community and other potential challengers, said Jon Michaels, a UCLA law professor. ""My sense is, there will be challenges, and challenges will be at the very least plausible challenges,"" Michaels said. A repeat of the chaos that the original order sparked is possible, said University of Texas law professor Stephen Vladeck. ""It will surely be a mess,"" he said. But the administration insists that won't be the case. Spicer said Thursday the administration has ""sought feedback and guidance and done this in an unbelievably comprehensive way to ensure that the departments and agencies that are going to be executing and implanting this fully are aware of what's happening."" He said the administration is expecting potential new court challenges, but suggests the White House will be better prepared. ""?WILL THE NEW ONE PASS CONSTITUTIONAL MUSTER? That's hard to say. The 9th Circuit decision, for instance, said the first order may have violated the constitutional rights of green-card holders to notice and a hearing before their travel was restricted. Any new policy may have to address that concern to be viable. The Justice Department has argued that a ban that exempts green-card holders and focuses only on foreigners from the seven nations who have never entered the U.S. would be entirely legal. But the court said Washington state and Minnesota might have a valid claim that even some of those foreigners have a constitutional right to challenge the ban. Foreigners outside the United States have, at best, limited rights to sue in U.S. courts. A narrowly tailored ban that focused on foreigners from the seven countries who have never entered the U.S. would also not do away with the states' concern that the administration is illegally targeting people on the basis of religion. The First Amendment's establishment clause bars discrimination on the basis of religion. To beat the religious discrimination argument, the government may also have to overcome statements outside of court by Trump and aides, including former New York Mayor Rudy Giuliani. Challengers of the ban have held those statements up as evidence of discriminatory intent. The statements include Giuliani's claim that Trump had asked him how to legally pull off a ""Muslim ban,"" and Trump's own interview statements that Christian refugees had been disadvantaged. The 9th Circuit did not fully address the issue, but did note that courts assessing the motive of a government action can take into account statements by decision-makers. Those statements hinting at intent may prove hard to dispose of even if the policy changes, said Chris Edelson, an expert on presidential power at American University in Washington, D.C. ""If the administration says, 'Hey, we want to have a ban that applies to the people from these seven countries,' what I would tell the administration is, 'OK, we can try, but there's a possibility the courts say that there's a constitutional problem here,'"" he said. ""?WHAT MIGHT HAPPEN TO THE EXISTING CHALLENGES? If the original executive order is formally rescinded and replaced, as is the prerogative of a president, then lawsuits challenging it would be effectively nullified as the focus turns to the new policy, legal experts say. Even so, arguments made by lawyers for Washington state and Minnesota that appeared to sway the 9th Circuit could easily be recycled in another or amended legal challenge. But it may not be that easy for the administration to escape the shadow of the current challenge before the 9th Circuit, said Simona Grossi, an expert in federal court procedure at Loyola Law School in Los Angeles. The new order would have to be free of the constitutional problems raised by the original order and the administration would also have to show that the original order will not be resurrected in the future, she said. ""��?Thanawala reported from San Francisco. Associated Press writer Jill Colvin in Washington contributed to this report.", -1425,2017/2/24,http://abcnews.go.com/International/kim-jong-nam-exposed-nerve-agent-police/story?id=45699972,Kim Jong Nam was exposed to nerve agent: police,,"Kim Jong Nam, the estranged half brother of North Korean leader Kim Jong Un, had been exposed to nerve agent, police in Malaysia said Thursday. According to the police, a preliminary analysis found VX nerve agent on the face of the victim, who was killed on Feb. 13. The Centers for Disease Control says VX ""is a human-made chemical warfare agent classified as a nerve agent."" ""Nerve agents are the most toxic and rapidly acting of the known chemical warfare agents,"" the site adds. According to The Associated Press, two women suspected of poisoning Kim Jong Nam were trained to deliver toxic substances by putting them on their hands and wiping them on his face. ""We strongly believe it is a planned thing and that they have been trained to do that. This is not just like shooting a movie,"" said Inspector-General of Police Khalid Abu Bakar, according to the AP. As of Tuesday, four people had been arrested, including the two women. At least one claimed she was tricked into participating in the attack, the AP said.", -1426,2017/2/24,http://abcnews.go.com/US/authorities-investigating-kansas-triple-shooting-hate-crime/story?id=45696597,Authorities investigating whether Kansas triple shooting was a hate crime,,"Authorities are investigating whether a triple shooting at a Kansas bar, which resulted in one death, was a bias crime. On Wednesday evening, police responded to a 911 call of shots fired at Austin's Bar and Grill in Olathe, located about 20 miles southwest of Kansas City, said Olathe Police Chief Steven Menke. The suspect, Adam W. Purington, was arrested late Thursday in Clinton, Missouri and is being held on $2 million bond, said Johnson County District Attorney Steve Howe. Purington had fled the scene of the shooting, according to Menke. Menske said three people were shot: a 32-year-old from Oakland Park, Kansas, and a 32-year-old from Olathe and 24-year-old Ian Grillot from Grandview, Missouri. All three victims were taken to a local hospital, where the 32-year-old Olathe resident, identified as Srinivas Kuchibhotla, died, Menke said, adding that authorities have been in contact with all of the victim's families. The other two victims are in stable condition, Menke said. Grillot said in an interview from his hospital bed that after the shooting started, he took cover until he thought the shooter's magazine was empty. ""I got up and proceeded to chase him down, try to subdue him,"" Grillot said in a video posted online by the University of Kansas Health System. ""I got behind him and he turned around and fired a round at me."" Grillot said he was hit in the hand and the chest, and that a bullet narrowly missed a major artery. ""I was told I was incredibly lucky for what happened to me,"" Grillot said. ""I could have never walked again or seen my family again."" Purington has been charged with one count of premeditated murder and two counts of premeditated attempted murder, Howe said. It will be up to Clinton County to decide whether to waive extradition, he added. Howe would not disclose the type of weapon used in the attack, which he described as a ""pretty traumatic event in a very open, public situation."" It is unclear if Purington has retained a lawyer. Patrons were watching a basketball game between the University of Kansas and TCU prior to the shooting, which began after 7 p.m., The Associated Press reported. The FBI is investigating whether the shooting was a bias crime, said Kansas City FBI Special Agent in Charge Eric Jackson. Local police will also aid in the investigation into whether the shooting was racially motivated. Jackson FBI personnel are working the investigation into the shooting ""from every angle to ""determine that the true facts are."" Authorities were unable to provide further details in the case, which is still under investigation. ""We've got a lot of work to do,"" Howe said. Howe said the community around Olathe bonded together after a similar incident three years ago. ""In these tragic instances, often the community bonds together,"" Howe said. ""I think we'll see this again. I'm very proud of this community."" ", -1427,2017/2/24,http://abcnews.go.com/Health/fatal-drug-overdoses-doubled-1999-cdc-finds/story?id=45697327,"Fatal drug overdoses more than doubled since 1999, CDC finds",,"The rate of fatal drug overdoses in the U.S. more than doubled since 1999, outpacing suicide and car accidents in 2015 as a cause of death, according to a new report by the Centers for Disease Control and Prevention. CDC researchers examined data from the National Vital Statics System to see the effects of drug trends across the nation from 1999 to 2015. Rates of fatal drug overdoses have dramatically increased since 1999, rising from 6.1 deaths per 100,000 people to 16.3 deaths per 100,000 in 2015, according to the CDC report. That number is higher than the rate of death for suicides in the U.S., 13.4 deaths per 100,000, or the rate of death from car accidents, 11.1 deaths per 100,000 residents. The overall number of deaths due to opioid overdoses quadrupled during the same time period, according to figures previously published by the CDC. Opioids killed more than 33,000 people in 2015, more than any year on record, according to the CDC, which estimates that 91 Americans die every day from an opioid overdose. Some 5000,000 Americans died from 2000 to 2015 as a result of the opioid epidemic, the CDC says. People in all age groups were more at risk for dying from drug overdoses but those between their mid-40s and their 60s were hardest hit, according to the new report. And despite persistent concerns over teens and young adults abusing drugs, middle-aged adults were the most likely to suffer a fatal overdose, according to the report. People between the ages of 54 to 65 saw the biggest percent increase in fatal drug overdoses during the study period, rising nearly five-fold from 4.2 deaths per 100,000 to 21.8 deaths in 2015. Americans between the ages of 45 to 54 had the highest rate of fatal drug overdoses overall in 2015, with 30 deaths reported per 100,000. Dr. Caleb Alexander, a co-director for the Johns Hopkins Center for Drug Safety and Effectiveness, said the report shows overdose deaths related to opioids are increasing at an ""incredible rate"" ""Each year I think it's hard to imagine it getting much worse and yet last year we had the highest number of deaths on record,"" Alexander said. Alexander pointed out that the data highlighted how many people the drugs have impacted from across various age groups. ""Sometimes there's this perception that this is a problem of only teenagers or young adults and nothing could be further from the truth,"" Alexander said. ""Middle aged and elderly adults are also being affected by the epidemic."" The deadly spread of illicit opioids were also reflected in the numbers. The percentage of fatal overdoses related to heroin more than tripled from 8 percent in 2010 to 25 percent in 2015. Synthetic opioids also took a heavy toll accounting for 18 percent of fatal overdose deaths in 2015 up from 8 percent in 2010. But the increase was not all due to opioids, the percent of drug deaths from cocaine increased slightly to 13 percent in 2015 compared to 11 percent in 2010. The percentage of overdose deaths due to natural and semisynthetic opioids -- which includes prescription heroin drugs oxycodone and hydrocodone -- decreased from 29 percent in 2010 to 24 percent in 2015. In 2015 the states hardest hit by fatal drug overdoses were West Virginia with 41.5 deaths per 100,000 people, New Hampshire (34.3), Kentucky (29.9) and Ohio (29.9.) Dr. Corey Slovis, chairman of department of emergency medicine at Vanderbilt University Medical Center and medical director of the National Fire Department and National Airport, said the current drug epidemic is ""the worst that I've ever seen it."" With opioid use increasing, Slovis said emergency services has had a hard time responding to all the overdose calls. ""It's that it's not just heroin anymore between the fentanyl [and] of the synthetic variants including carfentanil"" an elephant tranquilizer, said Slovis. Slovis said some illicit synthetic opioids can be 50 to 100 times more potent than heroin. Fentanyl and Carfentanil, which was designed to be an elephant tranquilizer, has led in some instances to EMS personnel running out of the opioid antidote Narcan while treating a single patient, he said. Rather than use one or two doses they're using 10 doses to try and save a patient's life. ""When you use an elephant tranquilizer on a human, bad things are going to happen,"" Slovis said, explaining EMS personnel had to double the amount of Narcan they bring with them in the field. Shelly Prasad Chawla contributed to this article. She is a resident physician of Internal Medicine in Chicago and a resident in the ABC News Medical Unit.", -1428,2017/2/24,http://abcnews.go.com/International/wireStory/cuba-year-castro-president-45703419,"Cuba a year from getting new, non-Castro president",,"If all goes as expected, in exactly one year President Raul Castro will hand responsibility for Cuba's faltering economy and aging, disaffected population to a little-known, 57-year-old Communist Party official. It will be the first time since its founding in 1959 that the Cuban state has not been led by a member of the Castro family. First Fidel Castro, then his younger brother Raul, wielded near-absolute power as head of the government and the ruling Cuban Communist Party. As founders of the modern Cuban army, each brandished unquestioned authority as the nation's top military man. The end of 85-year-old Raul Castro's second five-year term will instantly push Cuba's autocratic, single-party system onto unknown ground. First Vice President Miguel Diaz-Canel, a stocky, laconic engineer by training who began his career as a provincial bureaucrat, is expected to assume only one of Raul Castro's roles ""?the presidency. Castro plans to remain first secretary of the Cuban Communist Party, a potentially more powerful position, until at least 2021. The Cuban military, meanwhile, became the nation's top economic power during Raul Castro's decade as president and its top generals are expected to be less deferential to Diaz-Canel than they were to the Castro brothers. ""We're entering a new stage, one that requires adaptation. We're walking on new territory,"" retired diplomat and academic Carlos Alzugaray said. ""There's no reason to think this transition can't be, more or less, positive."" The change at the top comes amid profound economic and diplomatic uncertainty. In 2016, Cuba saw its first recession in 23 years; Fidel Castro's death; and the election of Donald Trump, who has promised to reverse President Barack Obama's opening with the island. Ordinary Cubans are uncertain about life in a time of unprecedented change, with a basically unknown figure following nearly six decades of the Castros' leadership. ""Whoever emerges is the same to me, I don't care,"" said Joan Rafael, a 40-year-old entertainer. ""We have to see if this all changes. If it changes, I'm fine with whoever it is."" Cuba calls its system a unique form of democracy that allows citizens to freely express their views and influence government actions within the limits of a single-party system. Critics label it a one-man dictatorship that represses anyone who dares to protest. The system in reality allows a limited range of expression and action, like complaining to officials about trash collection or bureaucratic inefficiency, while prohibiting any form of political organization or expression outside strict boundaries defined by Castro and his inner circle. Every 2 ? years, thousands of neighborhoods nationwide select representatives to local boards overseeing municipal affairs. A handful of dissident candidates have been defeated and publicly denounced with the help of block-level government committee charged with enforcing government mandates. Every five years, a government body selects thousands of the local representatives to run for the National Assembly and those hand-picked candidates then go to a public vote. The roughly 500-member National Assembly then chooses the 30-member Council of State and the president. The Cuban system theoretically allows any council member to become president, although many believe the outcome is predetermined in favor of Diaz-Canel. Raul Castro began his second term on Feb. 24, 2013 with the declaration that he would not serve a third. He said in Mexico two years ago that he wouldn't wait to become a great-grandfather before retiring ""because Cubans will get bored of me."" As Castro's retirement date approaches, Diaz-Canel has assumed an increasingly high profile with visits to Cuba's most important allies, including Russia, China and Venezuela. Still, his speeches rarely vary from time-tested Communist dogma, and he frequently punts when questioned about his country's future, saying he's not qualified to answer. ""I think he could take on the challenges that Raul leaves him, that is, if he really takes on power,"" economist Omar Everleny Perez said. The low wattage of Diaz-Canel's recent unsmiling and monotone appearances has surprised longtime observers who remember him as a high-energy, charismatic provincial party official. Many speculate he is trying to avoid the fate of numerous Fidel Castro deputies who built high public profiles, then were sidelined without explanation. ""He was one person when he was a mid-level official and he's another one now. He's become completely closed-off and discreet,"" said a European diplomat with long experience in Cuba, speaking on condition of anonymity because he was not authorized to discuss the matter with the press. Diaz-Canel doesn't speak to the non-state media. In recent appearances on state television, Diaz-Canel has placed particular emphasis on the legacy of Fidel Castro, who died on Nov. 25, 2016. ""We can't talk about anything in education that doesn't bear the stamp of Fidel,"" the vice president said in a December meeting with teachers and school administrators in eastern Cuba. ""He's a model that we have to support every day if we want it to last."" Born on April 20, 1960 in the central province of Santa Clara, Diaz-Canel performed two years of obligatory military service after receiving an electrical engineering degree in 1982, then was a professor at the local Central University of Las Villas. An acquaintance from that time described him to The Associated Press as a Beatles fan who wore his hair long, both trends that were viewed poorly and occasionally punished by the Communist authorities at the time. Diaz-Canel's sparse official biography says he joined the Young Communists' Union in 1987 and traveled to Nicaragua, where Cuba supported Sandinista rebels against a U.S.-backed strongman. In 1994, Diaz-Canel was named top party official in Villa Clara, starting his ascent onto the national stage. After serving in the eastern province of Holguin, he was named Minister of Higher Education in 2012 and, later that year, vice president, appearing frequently at Raul Castro's side but never assuming the spotlight. ""Next to Fidel and Raul, others have appeared a little faded and gray,"" said Alzugaray, the former diplomat. ""We have to see if once (the Castros) are gone, they take on brighter colors."" ""?Andrea Rodriguez on Twitter: www.twitter.com/ARodriguezAP", -1429,2017/2/24,http://abcnews.go.com/Politics/ivanka-trump-hosted-lawmakers-white-house-week-meeting/story?id=45698865,"Ivanka Trump hosted lawmakers at White House last week for meeting on childcare tax proposal, paid leave",,"Ivanka Trump hosted Republican members of Congress at the White House last week to discuss some of her personal legislative priorities -- a childcare tax proposal and paid maternity leave, according to a White House official and a Senate GOP aide. News of the White House meeting was first reported by Bloomberg News. It is unusual for the child of a president -- with no formal role in her father's administration -- to host a policy meeting with lawmakers inside the West Wing. The White House official noted that Ivanka has been long been passionate about the issue and that it remains a priority. A spokesperson for Sen. Deb Fischer, R-Nebraska, said the senator attended the Wednesday evening meeting in the Roosevelt Room, where the group of GOP lawmakers discussed Trump's proposed childcare tax benefit and paid leave. Fischer introduced a paid leave bill earlier this month. Ivanka has back-channeled with members of Congress on the issues she trumpeted during her father's campaign. This fall, she met with female Republican lawmakers at the RNC for a discussion on the same topic. Members of the Trump transition team discussed the childcare tax proposal with staff on the tax-writing House Ways and Mean Committee in a phone call last month. Ways and Means Committee chairman Kevin Brady, R-Texas, said his committee staff has had ""productive"" discussions with the Trump team about the proposal. ""We've had some preliminary and very productive discussions with the Trump transition team and their desire to make child care more affordable for families,"" he said to reporters recently. ""So we'r exploring a number of options. they're brought some ideas forward, and it's early in those discussions, but we'r having them."" Asked by ABC News' Cecilia Vega about Ivanka Trump's role in the administration following her participation in several White House meetings, White House press secretary Sean Spicer said the first daughter's role is ""to provide input"" on issues about which she has deep personal concern -- particularly as it relates to women. ""I think her role is to provide input on a variety of areas that she has deep compassion and concerns about especially women in the work force and empowering women,"" Spicer said. ""She has as a lot of expertise and wants to offer that especially in the area of trying to help women, she understands that firsthand an I think because of the success she's had her goal is to try to figure out any understanding she has as a business woman, to help and empower women with the opportunity and success she's had."" On Thursday, Ivanka participated in several meetings at the White House with President Trump and top White House officials, as they met with business leaders. A day earlier, she met with minority business owners in the Baltimore area. The president's eldest daughter also participated in a roundtable with female business leaders when Canadian Prime Minister Justin Trudeau visited the White House earlier this month. In an exclusive interview with ABC News last month, Ivanka Trump dismissed speculation that she would take on some of the first lady's responsibilities in the White House. ""there is one first lady, and She'll do remarkable things,""?she told ABC News""?""?0/20."" Trump has also walked away from her personal businesses, while in Washington. ABC News' Cecilia Vega contributed to this report.", -1430,2017/2/24,http://abcnews.go.com/US/teen-siblings-involved-altercation-lapd-officer-file-lawsuits/story?id=45696956,Teen siblings involved in altercation with LAPD officer file lawsuits,,"Lawyers for two teen siblings involved in an altercation with an off-duty LAPD officer filed civil lawsuits against the Anaheim and Los Angeles police departments today, alleging battery, negligence and state civil rights violations, among other claims. The lawsuits come the day after as many as 300 people demonstrated and at least 23 were arrested after protests broke out over the altercation. Some vandalism was reported in the demonstrations, according to police. Police say the off-duty officer fired his weapon into the ground during the scuffle on Tuesday, which was caught on video and spread through social media. A video of part of the incident appears to show the off-duty officer struggling with a 13-year-old boy, clinging to the boy's hooded sweatshirt as he tries to get away. The officer appears to argue with the boy and several other people who began gathering around. At one point, the officer is shoved over a bush and a person appears to take a swing at his face. The officer then draws what appears to be a pistol from his waistband and later reportedly fired a shot into the ground. ""The confrontation began over ongoing issues with juveniles walking across the officer's property,"" Anaheim Police Sgt. Daron Wyatt said in a statement. ""During the confrontation, a 13-year-old male is alleged to have threatened to shoot the off-duty officer, at which time the officer attempted to detain the male until [Anaheim police] arrived.""?The boy's mother, however, maintained that her son had said he was going to sue, not shoot, the officer. Police arrested the 13-year-old on charges of criminal threats and battery and a 15-year-old for assault and battery. Both have since been released. Police said today they knew of a 2015 report in which the officer had reported youth walking across his lawn. That report did not involve a physical confrontation or the same youth, authorities said. The officer and the two juveniles arrested have not been named. The teen siblings who filed suit today are identified in court papers as John Doe and M.S. ""I personally wish the off-duty officer would have awaited our arrival,""?Anaheim Police Chief Raul Quezada said at a press conference today. ""As a father and a police chief, I too am disturbed by what I saw on the videos that were posted on the internet ... Having said that, as a police chief, I am charged with enforcing the laws absent my personal feelings,"" Police Chief Raul Quezada said today. ""I thank God that no one was hurt."" Police said they interviewed 18 juveniles after the incident along with the officer's father and others and that they have insufficient evidence at this time to prove any criminal wrongdoing by the officer. Quezada said his department was close to completing its investigation and would presents its findings to the Orange County District Attorney's Office within the next two weeks. Charges could still be brought against all parties involved, he said. The step-father of 13-year-old boy is a civilian employee of the Anaheim Police Department, officials said. ""Like many I am deeply disturbed and angered by the video,"" Anaheim mayor Tom Tait said at the press conference, adding that the city was ""committed to full and impartial investigation."" The officer has been placed on administrative leave, according to assistant Los Angeles Police Chief Michael Moore. The LAPD is conducting a separate investigation into the officer's actions. Moore said the LAPD is looking into the off-duty officer's decision to initiation action, his reasoning and tactics along with his decision making. ABC News' Robert Zepeda, Kayna Whitworth and Alex Stone contributed to this report.", -1431,2017/2/23,http://abcnews.go.com/Politics/steve-bannon-media-wrong-trump/story?id=45691100,"Steve Bannon says media 'always wrong' about Trump, president 'maniacally focused' on agenda",,"Donald Trump's chief strategist, Steve Bannon, pounced on the media during the Conservative Political Action Conference Thursday, repeating his attack that the press is the ""opposition party"" that is ""always wrong"" about the administration. ""I think if you look at, you know, the opposition party,"" said Bannon, referring to the media, during his appearance at the conference with White House Chief of Staff Reince Priebus. ""How they portrayed the campaign, how they portrayed the transition and how they're portraying the administration -- it's always wrong."" Bannon, who once was the head of the conservative outlet Breitbart News, took issue with descriptions of the White House as ""chaotic,"" ""disorganized"" and ""unprofessional,"" saying that the same terms were used against the ultimately-victorious campaign. Now, with Trump as president, both Bannon and Priebus made the argument that he is following through on his promises, despite distractions. ""All President Trump does every day is hit his agenda every single day, whether it's TPP, deregulation, Neil Gorsuch, his promise is coming through every day,""?Priebus said. ""[Everything] he's doing is laid out an agenda with the speeches on the promises he made and our job is get the paths of what he's executed, and he is maniacally focused on that,""?Bannon added. The setting of the conversation -- CPAC -- was a foreign one for Bannon. In past years, Breitbart sponsored discussions that ran counter to the event, called ""The Uninvited."" The chief strategist poked fun at his attendance at the main event Thursday. ""I want to thank you for finally inviting me to CPAC,""?said Bannon, who portrayed his appearance at the convention, and his working relationship with Priebus, as the marriage of conservatism and the Republican party establishment. Priebus, the former chair of the Republican National Committee, joined in on the media criticism when it came to his relationship with Bannon, which a number of outlets, including Breitbart, have classified as rocky. ""In regard to us two, I think the biggest misconception is everything that you're reading,"" said Priebus. ""We share an office suite together, we're basically together from 6:30 in the morning until about 11:00 at night.""", -1432,2017/2/23,http://abcnews.go.com/Politics/president-trump-reiterates-call-us-nuclear-supremacy/story?id=45695753,President Trump reiterates call for US nuclear supremacy,,"President Donald Trump on Thursday renewed his call to expand the country's nuclear weapons cache so that the U.S. is the ""top of the pack,"" according to an interview with Reuters. Trump's comments echoed statements he offered in December when he tweeted about ""expand[ing]"" the nation's ""nuclear capability"" and told MSNBC that he was willing to engage in an ""arms race."" Trump told Reuters today he wants the country's cache of weapons to be ""top of the pack,"" a notion expanded upon by White House Press Secretary Sean Spicer at his daily press briefing. ""The U.S. will not yield its supremacy in this area to anybody,"" said Spicer. ""That's what he made very clear [during the interview], and that if other countries have nuclear capabilities, it'll always be the United States that [has] the supremacy and commitment to this."" On Dec. 22, Trump -- who indicated during the campaign that some nuclear proliferation might be good -- advocated in a tweet for bolstering American capabilities. The United States must greatly strengthen and expand its nuclear capability until such time as the world comes to its senses regarding nukes The next day, speaking by phone to Mika Brzezinski, the co-host of MSNBC's ""Morning Joe,"" Trump said he'd be open to competing with other countries to accumulate weapons. ""Let it be an arms race,""?said Trump. ""We will outmatch them at every pass and outlast them all.""?In Thursday's Reuters interview, Trump brought up both Russian cruise missile usage and North Korean missile tests and told the news outlet that the U.S. ""has fallen behind in its atomic weapons capacity."" The U.S. has a total of 4,571 warheads in its functional stockpile, a State Department official said. Of those, 1,367 are deployed, while Russia has 1,796 deployed. Both countries have until 2018 under the 2011 New START agreement to limit deployed nuclear weapons to 1,550. The Pentagon has begun a modernization of the American nuclear program which former Defense Secretary Ash Carter said earlier this year will cost $350 - $450 billion to update beginning in 2021.", -1433,2017/2/23,http://abcnews.go.com/US/trump-administration-withdraws-legal-memo-found-ample-legal/story?id=45696135,Trump administration withdrew legal memo that found 'ample legal justification' to halt Dakota Access pipeline,,"Two days before the Trump administration approved an easement for the Dakota Access pipeline to cross a reservoir near the Standing Rock Sioux Tribe reservation, the U.S. Department of the Interior withdrew a legal opinion that concluded there was ""Ample legal justification""?to deny it. The withdrawal of the opinion was revealed in court documents filed this week by U.S. Army Corps of Engineers, the same agency that requested the review late last year. ""A pattern is emerging with [the Trump] administration,""?said Jan Hasselman, an attorney representing the Standing Rock Sioux Tribe. ""they take good, thoughtful work and then just throw it in the trash and do whatever they want to do.""?The 35-page legal analysis of the pipeline's potential environmental risks and its impact on treaty rights of the Standing Rock Sioux and other indigenous tribes was authored in December by then-Interior Department Solicitor Hilary C. Tompkins, an Obama appointee who was -- at the time -- the top lawyer in the department. ""the government-to-government relationship between the United States and the Tribes calls for enhanced engagement and sensitivity to the Tribes' concerns,""?Tompkins wrote. ""the Corps is accordingly justified should it choose to deny the proposed easement.""? Tompkins""?opinion was dated Dec. 4, the same day the Obama administration announced that it was denying an easement for the controversial crossing and initiating an environmental impact statement that would explore alternative routes for the pipeline. Tompkins did not respond to a request by ABC News to discuss her analysis or the decision made to withdraw it. On his second weekday in office, President Donald Trump signed a memorandum that directed the Army Corps of Engineers to ""review and approve""?the pipeline in an expedited manner, to ""the extent permitted by law, and as warranted, and with such conditions as are necessary or appropriate."" ""I believe that construction and operation of lawfully permitted pipeline infrastructure serve the national interest,""?Trump wrote in the memo. Two weeks later, the Corps issued the easement to Dakota Access and the environmental review was canceled. The company behind the pipeline project now estimates that oil could be flowing in the pipeline as early as March 6. The analysis by Tompkins includes a detailed review of the tribes""?hunting, fishing and water rights to Lake Oahe, the federally controlled reservoir where the final stretch of the pipeline is currently being installed, and concludes that the Corps ""must consider the possible impacts""?of the pipeline on those reserved rights. ""the Tompkins memo is potentially dispositive in the legal case,""?Hasselman said. ""It shows that the Army Corps [under the Obama administration] made the right decision by putting the brakes on this project until the Tribe's treaty rights, and the risk of oil spills, was fully evaluated."" Tompkins""?opinion was particularly critical of the Corps""?decision to reject another potential route for the pipeline that would have placed it just north of Bismarck, North Dakota, in part because of the pipeline's proximity to municipal water supply wells. ""the Standing Rock and Cheyenne River Sioux Reservations are the permanent and irreplaceable homelands for the Tribes,""?Tompkins wrote. ""their core identity and livelihood depend upon their relationship to the land and environment -- unlike a resident of Bismarck, who could simply relocate if the [Dakota Access] pipeline fouled the municipal water supply, Tribal members do not have the luxury of moving away from an environmental disaster without also leaving their ancestral territory.""?Kelcy Warren, the CEO of Energy Transfer Partners, the company behind the project, has said that ""Concerns about the pipeline's impact on local water supply are unfounded""?and ""multiple archaeological studies conducted with state historic preservation offices found no sacred items along the route.""?The decision to temporarily suspend Tompkins' legal opinion two days before the easement was approved was outlined in a Feb. 6 internal memorandum issued by K. Jack Haugrud, the acting secretary of the Department of the Interior. A spokeswoman for the department told ABC News today that the opinion was suspended so that it could be reviewed by the department. The Standing Rock Sioux and Cheyenne River Sioux Tribes are continuing their legal challenges to the pipeline. A motion for a preliminary injunction will be heard on Monday in federal court in Washington, D.C. The Corps has maintained, throughout the litigation, that it made a good faith effort to meaningfully consult with the tribes. The tribes contend, however, that the Trump administration's cancellation of the environmental review and its reversal of prior agency decisions are ""baldly illegal.""?""Agencies can""t simply disregard their own findings, and ""�withdrawing""?the Tompkins memo doesn""t change that,""?Hasselman said. ""We have challenged the legality of the Trump administration reversal and we think we have a strong case.""?,-1""", -1434,2017/2/24,http://www.cnn.com/2017/02/23/politics/fbi-refused-white-house-request-to-knock-down-recent-trump-russia-stories/index.html,FBI refused White House request to knock down recent Trump-Russia stories,"Washington (CNN)The FBI rejected a recent White House request to publicly knock down media reports about communications between Donald Trump's associates and Russians known to US intelligence during the 2016 presidential campaign, multiple US officials briefed on the matter tell CNN.","But a White House official said late Thursday that the request was only made after the FBI indicated to the White House it did not believe the reporting to be accurate. White House officials had sought the help of the bureau and other agencies investigating the Russia matter to say that the reports were wrong and that there had been no contacts, the officials said. The reports of the contacts were first published by The New York Times and CNN on February 14. The direct communications between the White House and the FBI were unusual because of decade-old restrictions on such contacts. Such a request from the White House is a violation of procedures that limit communications with the FBI on pending investigations. Late Thursday night, White House press secretary Sean Spicer objected to CNN's characterization of the White House request to the FBI. ""We didn't try to knock the story down. We asked them to tell the truth,"" Spicer said. The FBI declined to comment for this story. The discussions between the White House and the bureau began with FBI Deputy Director Andrew McCabe and White House Chief of Staff Reince Priebus on the sidelines of a separate White House meeting the day after the stories were published, according to a US law enforcement official. The White House initially disputed that account, saying that McCabe called Priebus early that morning and said The New York Times story vastly overstates what the FBI knows about the contacts. But a White House official later corrected their version of events to confirm what the law enforcement official described. The same White House official said that Priebus later reached out again to McCabe and to FBI Director James Comey asking for the FBI to at least talk to reporters on background to dispute the stories. A law enforcement official says McCabe didn't discuss aspects of the case but wouldn't say exactly what McCabe told Priebus. Comey rejected the request for the FBI to comment on the stories, according to sources, because the alleged communications between Trump associates and Russians known to US intelligence are the subject of an ongoing investigation. The White House did issue its own denial, with Priebus calling The New York Times story ""complete garbage."" ""The New York Times put out an article with no direct sources that said that the Trump campaign had constant contacts with Russian spies, basically, you know, some treasonous type of accusations. We have now all kinds of people looking into this. I can assure you and I have been approved to say this -- that the top levels of the intelligence community have assured me that that story is not only inaccurate, but it's grossly overstated and it was wrong. And there's nothing to it,"" Preibus said on ""Fox News Sunday"" last weekend. CNN has previously reported that there was constant communication between high-level advisers to then-candidate Trump, Russian officials and other Russians known to US intelligence during the summer of 2016. Several members of the House and Senate Intelligence Committees tell CNN that the congressional investigations are continuing into those alleged Russian contacts with the Trump campaign, despite Priebus' assertion that there is nothing to those reports. It is uncertain what the committees will eventually find and whether any of the information will ever be declassified and publicly released. But the push to investigate further shows that Capitol Hill is digging deeper into areas that may not be comfortable for the White House. The Trump administration's efforts to press Comey run contrary to Justice Department procedure memos issued in 2007 and 2009 that limit direct communications on pending investigations between the White House and the FBI. ""Initial communications between the [Justice] Department and the White House concerning pending or contemplated criminal investigations or cases will involve only the Attorney General or the Deputy Attorney General, from the side of the Department, and the Counsel to the President, the Principal Deputy Counsel to the President, the President, or the Vice President from the side of the White House,"" reads the 2009 memo. The memos say the communication should only happen when it is important for the President's duties and where appropriate from a law enforcement perspective. A Department of Justice spokesman said Attorney General Jeff Sessions is reviewing the memos and that ""the Department is following the guidelines in its communications with the White House."" The effort to refute the CNN and New York Times stories came as increasing numbers of congressional members were voicing concern about Russia's efforts to influence individuals with ties to Trump. On February 17, the Senate Select Committee on Intelligence held a briefing with Comey. It's unclear what was said, but senators suggested there was new information discussed about Russia. ""Every briefing we go through we gain new information,"" said Sen. James Lankford of Oklahoma, a member of the committee. Lankford declined to be more specific about the briefing. Sen. Angus King of Maine also declined to reveal what was discussed during the Comey briefing. In response to a question on Priebus' strong denial of the claims, King said he was ""surprised"" that Priebus would be ""that categorical."" Rep. Eric Swalwell of California, a Democratic member of the House Intelligence Committee, said the goal of his panel's inquiry is to follow ""leads wherever they go even if they may be uncomfortable to Republicans."" ""The American public will want to know if the President had personal or financial ties to the Russian government,"" Swalwell said. UPDATED: This story has been updated to reflect new information and comment from the White House.", -1435,2017/2/24,http://www.cnn.com/2017/02/23/asia/kim-jong-nam-vx-nerve-agent/index.html,"VX nerve agent used to kill Kim Jong Nam, police say","(CNN)The chemical substance used to kill Kim Jong Nam was a VX nerve agent, an internationally-banned chemical weapon that can kill within minutes, according to a preliminary report by the Chemistry Department of Malaysia.","Malaysian police said in a statement Friday that tests on Kim's eyes and face revealed the presence of the substance. Nerve agents are the most toxic and fast-acting substance known in chemical warfare -- and VX is the most potent of all of them, according to the US Centers for Disease Control and Prevention (CDC). Kim, the estranged half-brother of North Korean leader Kim Jong Un, died on February 13 before he was scheduled to board a flight from Kuala Lumpur to Macau. Malaysian police claim two women wiped his face with some sort of liquid at the instruction of four North Koreans. He started to feel dizzy minutes later and died shortly after on his way to the hospital. North Korea rejects that version of events, saying that the women would be dead if they had put a lethal chemical on their hands. It vehemently denies any involvement in Kim's death. There are binary versions of chemical weapons, including VX, which aren't lethal until two compounds are mixed, according to the Organisation for the Prohibition of Chemical Weapons (OPCW). Binary systems are usually employed for the safe storage of chemical weapons. How it works VX inhibits the operation of an enzyme that helps the body's nervous system function, causing paralysis and suffocation. ""VX is probably the state-of-the-art nerve agent,"" CNN military analyst Rick Francona said. ""It is probably the most lethal of all the nerve agents ever designed."" Symptoms can appear after a few seconds, and even small doses -- as little as 10 mg on the skin -- can affect people. Larger exposure can lead to convulsions, paralysis and deadly respiratory failure. VX is most dangerous when inhaled, rather than absorbed through the skin, according to Nial Wheate, a chemical weapons health expert at the University of Sydney. ""It's not (meant as) a skin agent. It's a thing that you aerosol through the air,"" he said. The nerve agent is listed in the top tier of deadly substances in the Chemical Weapons Convention, which North Korea has not signed. Despite its lethality, it's not particularly difficult to make, Francona and other experts say. Pyongyang has had the capability to produce and use nerve agents for some time. A 2009 report from the International Crisis group estimated that the country possessed 2,500 to 5,000 tons of chemical weapons at the time, which could be delivered using artillery, rocket launchers and ballistic missiles, among other weapons. But the blast from a delivery system like missile would likely destroy much of the VX, said Wheate. It's more meant for aerosol use in close quarters. ""There's no one weaponizing this stuff, this is old school,"" he said. The suspects Malaysia authorities have named 11 people in connection with their investigation, though not all are considered suspects. Three are currently in custody. One is a North Korean man, and two are the women who police believe wiped Kim's face: Siti Aishah of Indonesia and Doan Thi Huong of Vietnam. Indonesian police said last week that Aishah believed she was participating in a prank for a TV show, but that was adamantly shot down by Bakar at his Wednesday news conference. ""These two ladies were trained to swab the deceased's face,"" he said. ""They knew it was toxic."" Denials and diplomatic fallout Diplomatic ties between North Korea and Malaysia are growing increasingly frayed over the investigation. North Korea has accused Malaysia of being unduly influenced by South Korea's early claim that Kim was poisoned by the North. Pyongyang's ambassador to Malaysia, Kang Chol, accused his host country of conspiring with ""hostile forces,"" prompting the Malaysian Prime Minister to recall his ambassador to North Korea and summon Kang. An article published in North Korean state media Thursday fiercely rebuked Malaysia for its continued refusal to hand over Kim's body without DNA from a next of kin. ""This proves that the Malaysian side is going to politicize the transfer of the body in utter disregard of international law and morality and thus attain a sinister purpose,"" Thursday's article said. Bakar, the Malaysian police inspector-general, accused North Korea of impeding the investigation. He said Wednesday that the North Koreans had neither responded to requests to hand over the four suspects in Pyongyang, nor had they helped police find three North Koreans believed to be in Malaysia -- including an embassy employee -- who are wanted for questioning. If the three who police think are still in Malaysia do not come forward, they will seek arrest warrants, Bakar said. The Malaysians have requested help from Interpol, asking the international police organization to put out an alert for the four suspects believed to have trained Aishah and Huong and then returned to Pyongyang.", -1436,2017/2/24,http://www.cnn.com/2017/02/23/world/vx-nerve-agent/index.html,What is VX nerve agent?,(CNN)Malaysian police have revealed the substance that killed Kim Jong Nam was a highly toxic nerve agent that's banned under a number of international conventions.,"VX nerve gas was first developed in the UK in the 1950s as a deadly chemical warfare agent, and according to the Centers for Disease Control and Prevention (CDC). Experts say the formula has been replicated in the past by the US, Russia, Syria and Iraq. Here's what we know: What is it? VX nerve agent is an oily liquid that's amber in color, but it's both odorless and tasteless. Nerve agents, like VX, are the most toxic and deadly chemical warfare agents -- they're chemically similar to pesticides, although far stronger. VX is the most potent of all nerve agents, including Sarin, which was developed in Germany in 1938 as a pesticide. As a highly lethal chemical substance that can potentially kill large numbers of people, VX is considered a weapon of mass destruction. How does it work? VX, if in vapor form, is the quickest and deadliest form of the killer gas. As a liquid, it could potentially be released into a water supply or used to poison someone's food. Like all nerve agents, VX stops a vital enzyme from working -- which eventually leads to the body tiring, and no longer being able to breathe. VX is not only the deadliest nerve agent, but also the most persistent in the environment -- it evaporates slowly, especially in cold conditions, making it both a long- and short-term threat. What are the symptoms? Depending on how much a person was exposed to, symptoms will start occurring either immediately or up to 18 hours later. Large doses of the nerve gas can cause convulsions, loss of consciousness, paralysis and death, because of respiratory failure. Smaller, non-fatal doses can cause a wide range of symptoms that include increased heart rate, blurred vision, nausea, diarrhea, drooling, pain and weakness. Even just small doses of the gas can cause confusion and drowsiness. There are antidotes for VX exposure available and they are most effective when administered immediately. Is it banned? As a chemical weapon, VX is banned under a number of international agreements including the 1925 Geneva Protocol and the 1993 Chemical Weapons Convention. The 1925 Geneva Protocol came about after the use of poisonous gas in World War I, which was later extended by the 1993 Convention to include a ban on their development, production, stockpiling, retention and transfer of chemical weapons. The Chemical Weapons Convention classifies VX as a Schedule 1 chemical, which means it poses a ""high risk"" to the convention and is rarely used for peaceful purposes. Signatories are only permitted to keep Schedule 1 chemicals in small quantities for research, medical, pharmaceutical of defensive use, according to the Arms Control Association. Both the US and Russia have in the past admitted to keeping stockpiles of VX, and under the Convention are obligated to destroy them. Who has it? VX nerve gas was first used during the Iran-Iraq war in the 1980s. It's part of the same family of toxic substances as Sarin, which was used in the 1995 nerve gas attack on the Tokyo subway. In the attack, members of the Aum Supreme Truth cult released Sarin nerve gas that killed 12 people and sickened more than 5,500 commuters. VX is said to be relatively easy to produce in a reasonably sophisticated laboratory. ""Any country with a sophisticated chemical weapons effort can produce VX. The formula has been around since the 1950s so its nothing new it just has to be made, the political will and determination that we are going to build this weapon,"" said CNN military analyst Rick Francona. ", -1437,2017/2/24,http://www.cnn.com/2017/02/24/politics/donald-trump-cpac-conservatives-reagan/index.html,Trump eyes Reagan halo at CPAC,"National Harbor, Maryland (CNN)The conservative movement is learning to love President Donald Trump. But he's no Ronald Reagan ... yet.","Thirty-six years ago, the newly inaugurated President Reagan showed up at the Conservative Political Action Conference, CPAC, to a jubilant reception. ""Our time is now. Our moment has arrived. We stand together shoulder-to-shoulder in the thickest of the fight,"" Reagan announced. Friday, Trump hopes to engineer a pivotal political moment that will echo Reagan's. ""I think by tomorrow this will be TPAC,"" predicted the president's counselor Kellyanne Conway, launching an intense White House charm offensive at the conservative extravaganza on Thursday, priming the crowd for Trump's speech. The President's appearance will mark a milestone in his transformation of a Republican Party that finds its traditional social, economic and national security constituencies infused with his power base of blue-collar supporters who were electrified by his populist rhetoric. Trump was a harder sell for the conservative grassroots than Reagan, whose political spirit still resonates at every CPAC, after he hoisted the conservative movement from the depths of Barry Goldwater's 1964 election debacle to the White House 16 years later. In many ways, Trump is in the opposite position, after ravaging the hopes of conservative rising stars like Sens. Marco Rubio and Ted Cruz in capturing the Republican nomination last year. For much of the presidential campaign, many conservatives doubted that Trump was really among their number at all, given his flamboyant thrice-married lifestyle and decades spent as the tabloid king of liberal Manhattan and his late conversions to non-negotiable conservative positions on issues like abortion. His brand of non-ideological populism and ""America First"" economic nationalism still seems an odd fit for the spending hawks, evangelicals and libertarians that have traditionally made up the broad CPAC coalition. But to paraphrase former GOP defense secretary Donald Rumsfeld, you go to war with the President you have, not the one you might want, and conservatives are becoming more and more comfortable with their new champion in the White House. Is Donald Trump a conservative? We asked the CPAC faithful How Trump fits in with the conservative movement At times, Thursday's roster of speakers at CPAC felt like aseminar devoted to refashioning Trump as a conservative befitting the movement's core principles. Speakers exhorted activists, who include many students who represent the movement's future, to remember that Trump was as good as his word in nominating an authentic conservative, Neil Gorsuch, for the Supreme Court. Education Secretary Betsy DeVos, a movement heroine fresh off a tough confirmation fight, also rallied the crowd, painting Trump as the epitome of anti-establishment views on school choice and liberal college professors that have long percolated among conservatives. And Vice President Mike Pence, an ambassador between Trump and social conservatives, vouched for his boss at CPAC on Thursday night, rolling off crowd-favorites such the confirmation of Attorney General Jeff Sessions, restoring the Mexico City Policy on abortion funding and promises to repeal Obama-era regulations and executive actions. ""I believe President Trump has given voice to aspirations and frustrations to Americans like no leader since Reagan,"" Pence said. Conway, a fixture at CPAC for years, made the case that though Trump hardly fit the traditional profile of conservatism, he is an appropriate leader for the movement in the White House. ""Every great movement, which the conservative movement is of course ... ends up being a little bit sclerotic and dusty after a time, and I think they need an infusion of energy,"" Conway said, arguing that the insurgent President is a kindred spirit to conservatives who feel their views brand them as outsiders. ""He's sort of the first candidate of his type -- that non-politician, true outsider (who) was coming to shake up the system,"" she said. CPAC also called upon a professor, Larry Arnn, President of Hillsdale College, to chart an ideological path for conservatives to reach Trump. Arnn defined conservatism as the preservation of founding US principles, a restrained government unrecognizable from an ""ugly"" and unconstitutional federal state he said had been bequeathed by progressives. ""If you see that, then you see somebody running for president, and even if he talks about himself too much, if he is fearless in saying that he is going to cut back that vast hedge that has come and overcome so much of our country, if he does that fearlessly and is not afraid of that political correctness, I think that guy is a conservative,"" Arnn said. What a difference a year makes The embrace of Trump was a far cry from last year, when the businessman skipped the annual conservative extravaganza, and speakers and his then primary rivals mocked his no-show. American Conservative Union Chairman Matt Schlapp remarked on the change of atmosphere this year and posed the question underlying three days of festivities which traditionally serve as a pageant of inspiration for young conservatives as they return to their communities. ""Trump brought a lot of new people. There's probably people in this crowd that wouldn't have been in this crowd before,"" he said. ""So there's a lot of diversity here ... Can this Trump movement be combined with what's (been) happening at CPAC and other conservative movements for 50 years? Can this be brought together?"" In case anyone had missed the point, the White House rolled out the heavyweight duo of Chief of Staff Reince Priebus and Trump's political guru Steve Bannon for a rare joint appearance meant to scotch reports that they are feuding. ""President Trump brought together the party and the conservative movement. If the party and the conservative movement are together like Steve and I, it can't be stopped,"" said Priebus, a creature of the establishment, who in temperament and ideology could hardly be less like his fiery colleague from the movement's nationalist fringe. Once, as Priebus was talking, a chant of ""Trump, Trump, Trump,"" erupted from the conference floor. Bannon, often seen as the hidden Machiavelli of the West Wing and the guardian of Trump's unique political philosophy, showed how the billionaire has changed the ideological tilt of the GOP. Spelling out a creed of strong national defense, economic nationalism and the destruction of the regulatory state, he lauded Trump's decision to pull out of the Trans-Pacific Partnership -- a move at odds with the Republican Party's globalist pro-trade heritage -- as ""one of the pivotal moments in modern American history."" Bannon also fired up delegates with a vow to battle the ""opposition party,"" as he calls the media. ""As economic conditions get better, as more jobs get better, they're going to continue to fight,"" Bannon said. ""If you think they're going to give you your country back without a fight, you are sadly mistaken. Every day, it is going to be a fight."" Changing face of CPAC? But the newly nationalist face of conservatism embraced by Trump and his acolytes has some traditional adherents of the movement nervous. Conservative commentator David Frum said on Twitter that Bannon had been ""impressively candid"" about Trump's agenda of launching a ""series of trade wars"" across the world. ""Reince says Trump administration is about taxes & regulation. Bannon says it's about overturning the global order. Nuances,"" Frum wrote. Ahead of the conference, CPAC retracted a speaking invitation to nationalist polemicist Milo Yiannopoulos after comments in which he appeared to endorse sex between ""younger boys and older men."" Yiannopoulos also resigned from Breitbart News, the conservative news site formerly run by Bannon. As they embrace the populist, nationalist brand of conservatism espoused by Trump, CPAC organizers are also taking steps to shield their brand from more extreme elements ""?including the alt-right movement that has in some cases backed the new President or used his rise to gain more notoriety for itself. Some alt-right activists are accused of harboring extreme, racist and anti-Semitic views, and the ACU's Executive Director Dan Schneider warned delegates that its ""sinister"" influence is trying to ""worm its way"" into their ranks. ""They are racists, they are sexists, they hate the Constitution, they hate free markets, they hate pluralism,"" Schneider said. ""They despise everything we believe in. They are not an extension of conservatism. They are nothing but garden variety left-wing fascists.""", -1438,2017/2/24,http://www.cnn.com/2017/02/23/politics/caitlyn-jenner-trump-transgender-trnd/index.html,Caitlyn Jenner to Trump: 'This is a disaster',"(CNN)Republican Caitlyn Jenner took to Twitter Thursday evening with a message to President Donald Trump: ""Call me.""","The Olympian-turned-reality star, who is perhaps the most high-profile face of the transgender community, at first was quiet after the Trump administration withdrew Obama-era guidance on transgender bathroom use in public schools. But she broke her silence over 24 hours later in a tweet and video message. Clad in a pink ""pussy bow"" blouse, Jenner spoke directly to the camera. ""I have a message for President Trump from well, one Republican to another. This is a disaster. And you can still fix it. You made a promise to protect the LGBTQ community,"" she said, holding up her hand like a mock telephone. ""Call me."" After Trump became the presumptive GOP nominee in June, Jenner told STAT she believed he would be better for women than Hillary Clinton. ""Everybody looks at the Democrats as being better with these [LGBT] issues. But Trump seems to be very much for women. He seems very much behind the LGBT community because of what happened in North Carolina with the bathroom issue. He backed the LGBT community. But in Trump's case, there's a lot more unknowns. With Hillary, you pretty much know what you're gonna get with the LGBT community,"" Jenner said at the time. She was spotted attending an inauguration eve dinner at Washington's Union Station alongside House Speaker Paul Ryan. ""Republicans need help understanding LGBTQ issues and I'm here to help!"" she tweeted. Jenner, who came out as transgender on the cover of Vanity Fair magazine in 2015, documented her life after transition in two seasons of the E! docuseries ""I am Cait."" The show often got political; Jenner frequently discussed transgender rights and featured LGBT activists in nearly every episode. Her video Thursday also included a message for transgender kids -- and bullies, even taking a shot at Attorney General Jeff Sessions. ""I have a message for the trans kids of America. You're winning. I know it doesn't feel like it today or every day, but you're winning. Very soon we will win full freedom nationwide and it's going to be with bipartisan support. You can help by checking out the National Center for Transgender Equality and letting Washington hear you loud and clear,"" she said. ""Now I have a message for the bullies: You're sick. And because you're weak, you pick on kids, you pick on women or anyone else you think is vulnerable. Apparently even becoming the attorney general isn't enough to cure some people of their insecurities."" Jenner is not the only celebrity to speak against the new policy: singer Jackie Evancho, who performed the national anthem at Trump's inauguration and has a transgender sister, tweeted the President on Wednesday evening asking for a meeting. Talk show host Ellen DeGeneres also weighed in on Twitter, writing, ""For anyone who feels scared or hopeless, know that we will never stop fighting for your rights.""", -1439,2017/2/24,http://www.cnn.com/2017/02/23/politics/matt-gaetz-donald-trump-tax-returns/index.html,"Under fire, GOP congressman calls for Trump tax returns","Pace, Florida (CNN)Rep. Matt Gaetz surprised a roomful of angry protesters Thursday night when he called for President Donald Trump to release his tax returns.","But the Florida Republican stopped short of saying Congress should subpoena those returns. Gaetz, a first-term congressman from the Sunshine State's panhandle, has stood by Trump, campaigning with him over the past weekend and closing his raucous one-hour town hall at the Oops Bowling Alley here Thursday night by saying he wanted to ""make America great again."" But he surprised the audience when he said, ""Absolutely, Donald Trump should release his tax returns."" Donna Waters, a 56-year-old lawyer from Pensacola, became emotional Thursday night as she pressed Gaetz for an answer. ""I'm the descendant of an immigrant, he came to America in 1607 to a town called Jamestown, and my family's been here ever since,"" Waters said, noting that her family members have fought in every major US war, including both sides of the Civil War. ""Whenever there's a threat to this country, my family has stepped forward,"" Waters said, tearing up. ""There are allegations that a hostile foreign country is committing acts of undeclared war by infiltrating the highest levels of our government."" Waters continued: ""You are on the Judiciary Committee. You have said they are going to investigate the Russian allegations. Yes or no, Yes or no -- let me ask my question -- will you call for the release of President Trump's income tax returns?"" As Gaetz took back the microphone, the crowd immediately began screaming, ""Yes or no! Yes or no!"" Then Gaetz said, ""If you hear me out, you'll like my answer,"" and called for Trump's returns. The line garnered some rare applause from the crowd that was otherwise mostly livid over Gaetz's push to abolish the Environmental Protection Agency and a string of other issues. During his presidential campaign, Trump became the first major-party nominee since 1972 not to release his tax returns -- citing ongoing IRS audits and saying he would do so once those audits were completed. But last month, top Trump adviser Kellyanne Conway said the President will not release his returns. Conway later sought to clarify her remarks, asserting there had been no change in position from the campaign and that Trump's business advisers had urged him not to release the documents. Throughout Gaetz's hour-long town hall here just outside of Pensacola, protesters booed, chanted, yelled over him and jeered Gaetz. At one point, a questioner asked Gaetz if he would vote to impeach Trump, to which the crowd began chanting, ""Impeach Trump! Impeach Trump!"" ""I do not agree with President Trump on every issue, I do not agree with any human being on Planet Earth on every issue, but I support President Trump and I'm going to back him up,"" Gaetz said. Gaetz often spoke directly with the protesters. Outside a meeting with constituents at the Santa Rosa County Building, Sarah Coutu, a mother of eight from Milton and member of Florida Panhandle Progressives, confronted him on his EPA bill. As he attempted to talk through his call to abolish the EPA, protesters screamed, ""Your last term!"" over him and he walked into the building. But Gaetz also tightly controlled access to his earlier events, holding an earlier meeting with constituents in a back room of a restaurant that had limited access. During a stop at Grover T's BBQ in Milton, Florida, Gaetz was ushered past more than 100 protesters by a group of sheriff's deputies and members of Bikers for Trump, who said they were providing security.", -1440,2017/2/24,http://www.cnn.com/2017/02/23/football/claudio-ranieri-sacked/index.html,Claudio Ranieri sacked nine months after Premier League title,(CNN)Leicester City Football Club has sacked manager Claudio Ranieri less than nine months after winning the Premier League title.,"Ranieri, who became the team's manager in July 2015, steered the club to one of the most unlikely success stories in sports history. The team won the league title after starting the season with 5,000-to-1 odds to do so. ""Domestic results in the current campaign have placed the club's Premier League status under threat and the Board reluctantly feels that a change of leadership, while admittedly painful, is necessary in the Club's greatest interest,"" the club said in a statement. Ranieri was awarded The Best FIFA Men's Coach award last month for leading the Foxes to the title. ""This has been the most difficult decision we have had to make in nearly seven years since (Thailand-based) King Power took ownership of Leicester City,"" the club's vice chairman, Aiyawatt Srivaddhanaprabha, said. ""But we are duty-bound to put the Club's long-term interests above all sense of personal sentiment, no matter how strong that might be."" The Foxes' Cinderella story hasn't carried over into this season. Right now, the team is only a point away from the drop zone, which would see the club relegated to a lower league next season. It would be the first time a defending champion dropped out of England's top league since Manchester City 79 years ago. Ranieri's sacking sent reverberations through the football world, drawing strong condemnation across the board from fans to rival managers. A tribute to Ranieri posted to Instagram by Manchester United manager Jose Mourinho had more than 100,000 likes in three hours. ""CHAMPION OF ENGLAND and FIFA MANAGER OF THE YEAR sacked... keep smiling AMICO. Nobody can delete the history you wrote,"" the post read. Ex-Manchester United and England defender turned TV pundit Rio Ferdinand expressed shock, while former Liverpool and Real Madrid striker Michael Owen called it a ""total and utter disgrace."" ""I've lost a lot of love for the beautiful game today. The players and fans of Leicester have been massively let down,"" Owen tweeted. Gary Lineker, a former England national team captain and Leicester's most prominent ex-player, called the move ""inexplicable, unforgivable and gut-wrenchingly sad."" Leicester City said its board will now start looking for a replacement and will make no further comment until that process is complete.", -1441,2017/2/24,http://www.cnn.com/2017/02/24/asia/north-korea-china-coal-ban/index.html,North Korea on coal ban: China 'dancing to tune of US',Hong Kong (CNN)It's a rare public spat between two Communist neighbors.,"North Korea has lashed out at its only real ally, accusing China of ""dancing to the tune of the US"" over its decision not to import any more coal from the country. Without naming China, KCNA, North Korea's official state news agency, said Thursday a ""neighboring country"" had taken ""inhumane steps"" to block trade. On Friday, the Global Times, a provocative state-sanctioned tabloid, shot back. It said the ban had ""left Pyongyang reeling with pain and fury."" ""Beijing routinely finds itself on the frontlines in terms of worldwide attention. Just as it does in the same calm and steadfast fashion with which it handles the Trump administration, Beijing will always be confident when it comes to tackling tough issues with Pyongyang,"" the Global Times said. China's Ministry of Foreign Affairs was more measured in its response, with a spokesman saying it was ready to work with North Korea ""for healthy and sound development"" of bilateral relations. China said Saturday it would halt all coal imports from North Korea through the end of 2017, with the statement coming on the heels of Pyongyang's most recent missile test. Analysts said the move showed that Beijing was fed up with the Pyongyang regime. Coal is North Korea's main export and an important source of foreign currencies for its fragile economy. Most of North Korea's exported coal is shipped to China -- its main ally and economic benefactor. ""This country, styling itself a big power, is dancing to the tune of the US while defending its mean behavior with such excuses that it was meant not to have a negative impact on the living of the people in the DPRK but to check its nuclear program,"" the KCNA report said. 'Utterly childish' China's Ministry of Commerce said the decision was made to comply with a UN Security Council resolution that China helped draft and pass last November. Resolution 2321 imposed some of the toughest sanctions yet against the North Korean regime, after it disregarded an earlier UN test ban, detonating what it said was a nuclear warhead in September 2016. The resolution included an explicit target of reducing coal imports by 62%, said Kevin Gray, a reader in international studies at the University of Sussex in the UK. Gray said the ban could also be read as a form of ""payoff"" for US President Donald Trump's recent acceptance of the One China policy. Trump has repeatedly called on China to take a tougher line on its unpredictable neighbor. In an interview with Reuters news agency published Thursday, Trump said that China has ""tremendous control"" over North Korea and could ""solve the problem."" ""I have had a very good phone call with President Xi and I have had very good talks with him and the call is a start,"" Trump said in response to a question on China's coal ban. ""But we have a very big problem and a very dangerous problem for the world with North Korea."" Analysts, however, say Trump may overestimate how much sway China has over its unruly neighbor. Relations between Pyongyang and Beijing have been frosty since Kim Jong Un succeeded his late father as dictator, promptly purging several key government figures -- such as his uncle Jang Song Thaek -- with strong ties to China. The murder of the Kim's older brother in Malaysia, who was living in China and advocated Chinese-style economic reforms, is likely to have further soured ties. However, North Korea appeared unruffled by China's latest move, saying the ban would have little effect on its nuclear weapons program. ""It is utterly childish to think that the DPRK would not manufacture nuclear weapons and intercontinental ballistic rockets if a few penny of money is cut off,"" the KCNA report said.", -1442,2017/2/24,http://www.huffingtonpost.com/2017/02/24/awesome-psa-shuts-down-anti-trans-bigots_n_14980132.html,Awesome PSA Shuts Down Anti-Trans Bigots,"""All we want to do is pee!""","A PSA released last year is making the rounds again after President Donald Trump's decision to rescind protections for transgender students. Earlier this week, the Trump administration announced that it would lift guidelines put in place by President Barack Obama's administration, revoking rules that said schools receiving federal funds must treat a student's gender identity as his or her sex.- Created by the team at MAC Cosmetics""?AIDS Fund, the video shuts down people with anti-trans stances pertaining to bathrooms.- ""Every year, some fool tries to trick people into thinking this is an issue,""?activists said in the video. ""And somehow thinks the way to protect privacy and bathrooms is by policing them? The biggest irony is that their solution will create the very thing they'r trying to stop.""?Watch the video above. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1443,2017/2/24,http://www.huffingtonpost.com/2017/02/24/patrick-stewart-1-star-reviews_n_14979982.html,Patrick Stewart Reads Hilariously Bad Reviews Of Iconic Tourist Attractions,Warning: This may kill your wanderlust for good.,"Famous monuments aren""t for everyone. British actor-Patrick Stewart reads out some real 1-star reviews that people have posted online in a new clip for GQ. And the ""Star Trek""?star soon finds out how one person's beloved Stonehenge is another's ""dated""?bunch of rocks. Don""t even get the ""reviewers""?started on the Statue of Liberty, Mount Rushmore or the Eiffel Tower. Check out the full clip above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1444,2017/2/24,http://www.huffingtonpost.com/2017/02/24/seth-meyers-donald-trump-golf-tiger-woods_n_14979720.html,Seth Meyers Dubs Donald Trump The 'Tiger Woods Of Hypocrisy' Over His Golfing,"""Are you the president or a San Diego dentist?""","Seth Meyers-said President Donald Trump has the art of hypocrisy down to a tee. On Thursday's broadcast of ""Late Night,""?Meyers explored the amount of time that Trump has spent playing golf during his first four weeks in office whilst Republican lawmakers have been dealing with protests about his policies at town halls across the country. After establishing that the president has played six times in one month, Meyers asked, ""Are you the president or a San Diego dentist?""?Acknowledging that Trump repeatedly berated former President Barack Obama for playing ""goo much golf,""?Meyers then quipped that ""when it comes to being a hypocrite, Donald Trump has a zero handicap.""""He's the Tiger Woods of hypocrisy!""?Meyers added. Check out the full segment above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1445,2017/2/24,http://www.huffingtonpost.com/2017/02/23/february-heat-waves_n_14979648.html,Freaky February Heat Waves Trigger More Chills Over Climate Change,Hundreds of records have already been broken for the month.,"A bonkers February with stretches of extremely high temperatures mixed periodically with old-fashioned, pre-climate-change plunging mercury is the latest chilling warning about global warming. Single-day record highs as well as multiple-day heat waves broke more than 248 month-to-date records-for February in spots across the nation, according to the National Center for Environmental Information.- Temperatures in Oklahoma, home state of new Environmental Protection Agency chief and climate change skeptic Scott Pruitt, nearly reached triple digits earlier this month. The town of Magnum hit an all-time record Feb. 11 of 99 degrees, more than 40 degrees above the average February high. This is beyond amazing. Spring (phenological) continues to advance northward via the ""first leaf-out""...nearly 20 days earlier than average. pic.twitter.com/wKn5rir9A5 The rest of -the-Southern Plains also blew historic stats out of the water,-and Midland,-Lubbock, and Wichita Falls, Texas, all racked up temperatures in the 90s the same week. The heat wave was followed by a cold snap in the region that dropped temperatures as much as 50 degrees.- Milwaukee's 71 degrees this Wednesday was the highest temperature ever recorded in the state in the winter. (The normal high temperature for the day is 34.5 degrees). It was also the fourth time in February the city hit temperatures over 60 degrees, another all-time record for the state, the Milwaukee Journal Sentinel reported.- Boston hit 68 degrees Thursday, busting its previous record of 65 degrees in 1990. All-time record highs-for the month of February were broken Thursday in Burlington (63 degrees) and Montpelier, Vermont (63 degrees). Denver broke its third record of the month last Thursday, topping out at 75 degrees, a full 5 degrees hotter than the date's previous record, according to the National Weather Service. Snow was back a week later today. #BREAKING: Spun out vehicles, crashes close parts of I-70, Highway 93 and Boulder Canyon. DEVELOPING: https://t.co/buutoD2iIr #Denver7 pic.twitter.com/CHl2TXk6EC Unseasonably warm days before cold snaps can have a devastating impact on the environment. Trees and flowers can blossom early in the warn weather, and the buds can then freeze and wither in following cold weather. The freaky February is expected to continue with more of the same with dozens of new broken records.- The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1446,2017/2/24,http://www.huffingtonpost.com/SPOTTOON/spottoon-tribex-ep74_b_14977384.html,TRIBE X - Ep.74,,"Updated every Friday Copyright @2015 RollingStory Inc. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1447,2017/2/24,http://www.huffingtonpost.com/2017/02/23/fbi-white-house-russia_n_14977358.html,Reports Say White House Asked FBI To Dispute Stories About Russia Ties,The agency reportedly denied the request.,"The White House asked the FBI to publicly dispute reports about President Donald Trump's team communicating with Russian officials during last year's presidential campaign, CNN-and The Associated Press reported Thursday. Such communication would mark a breach in protocol-intended to prevent the White House from meddling in the agency's investigations. Per a 2007 Justice Department memo, the White House should advise the department on criminal and civil enforcement ""Anly where it is important for the performance of the president's duties and where appropriate from a law enforcement perspective.""The request reportedly came earlier this month after the New York Times and CNN reported on the Trump team's ""Constant""ontact with Russia throughout the 2016 election. The White House denied those stories. According to the reports, White House chief of staff Reince Priebus reached out to FBI Director James Comey and FBI Deputy Director Andrew McCabe and asked them to tell reporters that the stories weren""t true. CNN reports that Comey rejected the request because the FBI is investigating the alleged contact between Trump's team and Russian officials.- The-AP reported that-a White House official would not comment when asked if the administration was concerned about the appropriateness of Priebus""?communications with McCabe. The official was not authorized to disclose the matter publicly and insisted on anonymity, AP said. Earlier this week, Priebus called reports of the contact between Trump's associates and Russian officials ""gotal baloney.""?In a separate interview, he said intelligence officials ""Assured""?him the stories were inaccurate.- ""the top levels of the intelligence community have assured me that that story is not only inaccurate, but it's grossly overstated and it was wrong. And there's nothing to it,""?he told Fox News.- An FBI spokeswoman declined to comment on the reports. A White House spokeswoman did not return a request for comment. The Trump administration and the campaign's alleged connections to Russia, including former national security adviser Michael Flynn's communications with the Russian ambassador to the U.S., are a subject of major scrutiny in Washington. Democrats on Capitol Hill have pushed for committee investigations in the Senate as well as an independent federal law enforcement inquiry on the matter. Some Republicans, including Sens. John McCain of Arizona and Lindsey Graham of South Carolina, have also called for investigating Flynn.- House Republicans initially threw cold water on investigating Flynn and other official's ties to Russia but have since warmed-somewhat to the idea.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1448,2017/2/24,http://www.huffingtonpost.com/2017/02/23/kati-mcfarland-town-hall-arkansas-donations_n_14977342.html,Donations Jump For Ill Woman Who Ripped Tom Cotton At Town Hall,"Contributions pour in for Kati McFarland, who told the GOP senator ""I will die"" without Obamacare.","A seriously ill young woman who held her own grilling an Arkansas senator over the Affordable Care Act at a raucous town hall meeting deep in a red state has been rewarded with a jump in donations on her internet funding site. Kati McFarland, 25, a dual-degree student in violin performance and business at the University of Arkansas, told Republican Sen. Tom Cotton on Wednesday night that without coverage through the Affordable Care Act for a preexisting genetic condition, ""I will die. That is not hyperbole. I will die.""?That started a string of questions by McFarland as she repeatedly demanded answers about the future of the health care system, triggering wild jeers and boos for the senator from the crowd of 2,000 in Springdale as Cotton continually dodged specifics on how he could ensure she would not lose health coverage. ""We are historically a Republican family. We are farming family. We are an NRA family,""?explained McFarland from her wheelchair before she again stressed her desperate need for health care.- ""You want to cut funding to Planned Parenthood, which does my cancer screening,""?she said. ""You and your party talk a lot about repeal of the ACA, but you don""t talk much about what you will replace it with. What are you going to replace it with?""?One viewer of the video of the town hall meeting posted by the Arkansas Post Gazette remarked: ""tom Cotton doesn""t care if you die. He and his family have good health coverage.""?Another responded: ""And we all pay for it ... Special coverage for the privileged class. Even Trump & EVERY single member of his family has it.""?Cotton repeated complaints about the Affordable Care Act-""?which drew boos ""?and assured McFarland that she would still have access to health care, but he offered no details. ""He just seemed to repeat my own question back at me,""?McFarland told MSNBC later. ""He kept saying, ""If you lose your coverage today, you can still have it.""?He made no promises as to what would happen in the future, once he votes for the repeal he keeps promising.""?McFarland launched a funding appeal four months ago on the internet to raise money for her various health needs, including for insurance payments and a new wheelchair. Donations increased tenfold to over $11,000 after her town hall face-off. Most donors mentioned her showdown with Cotton.- One contributor wrote: ""thank you, Kati McFarland, for your bravery of making your personal life & struggle so public and for speaking your truth & the truth of millions of American lives damaged and cut short by the greed and heartlessness of this Republican Congress & Presidency, due to their inhumane opposition to health care being a human right.""?""�Ozark Indivisible""?""?an organization of local activists that is part of a broader national movement ""?posted information about her funding site following the town hall meeting. McFarland suffers from the incurable Ehlers-Danlos syndrome, which causes several medical complications, including dizziness, heart weakness and difficulty moving due to inflammatory arthritis. She turns 26 on Sunday, which means she is no longer eligible to be on her late parents""?health insurance policy, and will have to switch to Obamacare. The GOP has been rocked recently by wild town hall meetings with hugely vocal critics complaining about the repeal of the Affordable Care Act and environmental protections, among many other issues. Politicians are beginning to duck out of appearances, triggering even more ire from angry constituents. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1449,2017/2/24,http://www.huffingtonpost.com/2017/02/24/kim-jong-nam-suspect-ill_n_14977338.html,"Suspect In Kim Jong Nam's Murder Also Sickened By Toxic Nerve Agent, Police Say","""she was vomiting.""","KUALA LUMPUR, Feb 24 (Reuters) - One of two women suspected of killing the half-brother of North Korea's leader with the highly toxic VX nerve agent also suffered its effects, Malaysia's police chief said on Friday. ""she was vomiting,""?Khalid Abu Bakar said in response to a question about whether the women felt the effects of VX, classified as a weapon of mass destruction by the United Nations. He declined to elaborate. Kim Jong Nam died after being assaulted at Kuala Lumpur International Airport on Feb. 13. Police have arrested a Vietnamese woman and an Indonesian woman suspected of smearing the chemical on his face. Share this slide: Learn more", -1450,2017/2/24,http://www.huffingtonpost.com/2017/02/23/25-types-of-bras_n_14977330.html,Think You Know All The Different Bra Types? Here Are 25.,"For every boob, there's a brassiere.","You may think that bra types are confined to several genres ""?pushups, bralettes, strapless and sports bras ""?but there is more to the brassiere than meets the eye. In a video published this week,-YouTuber Davison Video makes boob support easier to understand by identifying 25 types of bras. And, to be honest, we had no idea that many types of bras existed. From the classic convertible and demi bras to the vintage bullet and ever-functional maternity (aka nursing) bra, the video above is a visual encyclopedia of bras we never knew we needed. Share this slide: HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1451,2017/2/24,http://www.huffingtonpost.com/2017/02/23/paul-ryan-koch-industries-feud_n_14976224.html,The Pipelines Behind The Epic Paul Ryan-Koch Industries Feud,Freedom isn't free.,"WASHINGTON ""?Koch Industries, one of the nation's largest importers, is waging a campaign in Washington against a major new importation levy ""?but it is doing so only on principle, the company says. Either way, the battle puts the Kochs, who have given billions to conservative causes, at odds with House Speaker Paul Ryan (R-Wis.). The irony of the fight is heightened by just how close they have been in the past. It was the Kochs who pushed hardest for Ryan to be Mitt Romney's running mate in 2012, and last year, Charles Koch was still hoping Ryan would emerge as a surprise presidential nominee even on the eve of the Republican National Convention. The cornerstone of Ryan's agenda is a reform of the tax code that would eliminate the current corporate tax regime and replace it with a ""gerritorial""?system that would tax imports at around 20 to 25 percent while allowing exports to flow freely. The aim is to give an advantage to U.S.-manufacturers and to cut corporate taxes. More than a hundred other countries have moved to similar systems, but it faces stiff opposition in the Senate ""?and from America's big importers: Walmart, Target, Home Depot and Koch Industries. Koch Industries, which is not thought of in the public imagination as an importer, makes the list largely for its importation of tar sands oil. In 2015, the last full year for which the Department of Energy has records, the company's Pine Bend refinery in Minnesota imported just under 80 million barrels of tar sands oil from Canada, accounting for a quarter of all the oil imported from up north. Even though the price of tar sands oil has fallen to as low as $8 a barrel, while global crude prices are about $55 a barrel, the Kochs would end up with $640 million in imports.-A 20 percent tax on $640 million in oil would cost the Kochs $128 million each year. To put the Kochs""?importation business in context, Dole Food is considered by the Journal of Commerce to be the fourth-largest importer in the U.S. But the business press often leaves the Kochs out of such conversations. Last year, Dole pulled in $4.5 billion in revenue. Subtract from that profit and the cost of importing and distributing its fruit and other products, and you'r left with the value of the imported goods themselves ""?likely less than the Kochs""?$640 million in imported oil. Koch Industries doesn""t tout Pine Bend publicly as part of its empire, but the importance to its business is hard to overstate. ""This was always referred to as the crown jewel of Koch,""?said one former Koch insider. ""the deal that made Pine Bend refinery a part of Koch Industries was a seminal moment in the history of the company. Without Pine Bend, we probably never would have heard of Charles and David Koch, and they certainly wouldn""t be spending in elections the way they are without it.""?Acquiring Pine Bend in 1969 was ""Ane of the most significant events in the evolution of our company,""?Charles Koch wrote in his 2007 book, ""the Science of Success.""?It allowed the Kochs ""go enter chemicals and, more recently, fibers and polymers.""?The development of western Canada's tar sands extraction industry, and the resulting pipeline boom that has become a political flashpoint at the border and on tribal lands, would have happened far differently were it not for the Koch brothers. ""Without Pine Bend, Koch Industries as you know it today does not exist. It allowed them to invest in buying and growing companies like Georgia Pacific, Molex, Invista and Koch Fertilizer,""?said the Koch insider. The volume of imports puts Koch opposition to Ryan's importation levy into an entirely different perspective. Earlier this month, HuffPost asked Koch Industries if its opposition to the border tax would be softened by exempting oil imports. Philip Ellender, president of government and public affairs at Koch Companies Public Sector, said that if oil was carved out of the border tax, ""Koch would benefit,""?but they still oppose it on principle. ""If there is in fact a carve-out for oil ""?or any industry ""?we will not support it,""?Ellender said. ""While Koch would benefit, we are opposed to taxing consumers in order to cut our company's taxes. We agree with Speaker Ryan on the need for comprehensive tax reform, but we do not support a border adjustment tax and his plan as currently proposed.""?But in December, when the Kochs initially announced opposition to the border tax, the messaging was a bit different, putting the focus on the manufacturing the Kochs do. ""While companies like Koch who manufacture and produce many products domestically would greatly benefit in the short-term, the long-term consequences to the economy and the American consumer could be devastating,""?Ellender said at the time. David Dziok, a spokesman for Koch Industries, said this week that ultimately the Kochs would benefit from a border tax, because the tax on their imports would be passed on to consumers. ""A BAT will force Americans to pay higher prices for the goods they use every single day ""?from clothing to gas to groceries,""?he said. ""Koch Industries agrees on the need for comprehensive tax reform, but we are opposed to taxing consumers in order to cut our company's taxes.""?But even if the company can pass on the entire increase to its consumers ""?not always possible ""?raising the price of gas tends to mean people will buy less gas. As fuel prices rose a decade ago, sales of gas-guzzling SUVs fell. With gas prices dropping, sales of bigger cars are on the rise. Whether the drop in demand would wash out the rise in price is impossible to predict, but a Goldman Sachs analysis of the House Republican plan predicted a 30-cent-a-gallon hike in gas prices in the short term but noted it would ""likely moderate over time""?as U.S. production rose and the dollar strengthened, which would drive down the price of foreign oil. The confusion over such a basic question as whether the company would be hurt or helped, or whether its tax bill would go up or down, flows from the Kochs""?longtime insistence that their libertarian politics and their corporate self-interest are entirely unrelated. There's glory in fighting for freedom but not in lobbying for corporate profit. People outside Washington may find it head-scratching, but maintaining this public distinction is deeply important to the Kochs, said three people who""ve worked with the company. Koch Industries and its representatives routinely refer to the brothers""?opposition to ethanol subsidies, for instance ""?even though they are one of the largest producers of ethanol ""?as evidence of the purity of their libertarian values. So lobbying that it does on public policy must be divorced from the corporate bottom line. That lobbying is kicking into high gear, said the former Koch insider. ""they'r marshaling their resources and going back to their old playbook, which means unleashing [Americans for Prosperity] and leaning on academics they have ""sponsored,""?said the former Koch insider. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1452,2017/2/24,http://www.huffingtonpost.com/2017/02/23/real-men-provide-billboard_n_14976088.html,Billboard Proclaiming Role Of 'Real' Men And Women Sows A Sexist Mystery,"""I take it as a very deliberate jab at women who demand equality,"" said the organizer of a protest.","A billboard in North Carolina declares a very strong opinion on ""real""?men and women ""?and it has a lot of people talking about gender roles and family households. The billboard along a Winston-Salem highway reads in large print, with no other context: ""real men provide. Real women appreciate it.""?An anonymous group leased the billboard-for at least 30 days, The Associated Press reported. A REAL billboard up now on Bus. 40 in Winston-Salem, NC. Apparently someone felt the need to put their #sexism on blast. @WXII pic.twitter.com/CjO8pPs7Nu Bill Whiteheart, president of the advertising company that owns the billboard, told CNN the group that-purchased the $2,000 ad space-wants to stay anonymous.- ""We'r not supportive of or in opposition to the message,""?Whiteheart told CNN.-""We'r just the messenger.""?The billboard's message, however, has offended some local residents. Boutique owner Molly Grace has created a Facebook event scheduled for Sunday morning to protest the billboard. ""I take it as a very deliberate jab at women who demand equality and demand to be seen as equals and those who are vocal,""?Grace told local news station WXII-12. ""to me, it's also a very blatant statement about wanting to silence women and tell them to accept the way that things are.""?A REAL billboard up now on Bus. 40 in Winston-Salem, NC. Apparently someone felt the need to put their #sexism on blast. @WXII pic.twitter.com/CjO8pPs7Nu But not everyone thinks the sign is offensive. In fact, Grace's Facebook event page has become a platform for debate on what the sign actually means. Some argue that the sign devalues women who are breadwinners-for their families and single women who provide for themselves. Others say the sign appears to be a derogatory statement against-men who don""t provide for their families.- ""I would assume if you had a husband that loves you and appreciates you and showed it enough to carry your family and kids, that you would appreciate it,""?resident Nathan Walin told WHNT News 19. ""I don""t know why that would be offensive. Heated discussions on the Facebook event page often touch on the lifestyle choices of single mothers, stay-at-home mothers and single working women. Grace clarified on Facebook that Sunday's protest is about the sign's ""Choice of words.""?""the sentiment that has upset SO many people...is the notion that these roles, on the billboard at least, are limited by their assigned gender,""race-wrote-on the Facebook event page. Whiteheart, the owner of the billboard, said an announcement about the billboard would be coming. He didn""t elaborate,-according to AP. Call Whiteheart Outdoor Advertising at 3367481900 and tell them what you think about their trash billboard on I-40 Business in Greensboro pic.twitter.com/MFUExuyYKg The billboard is up on I-40 between Winston-Salem and Greensboro. It says ""Real Men Provide, Real Women appreciate it."" @WFMY pic.twitter.com/7Uw8lvLKDv Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1453,2017/2/24,http://www.huffingtonpost.com/2017/02/23/israel-hrw-propaganda_n_14976028.html,"Israel Accuses Human Rights Watch Of ""�Propaganda,""?Denies Access",The decision blocks a U.S. citizen from starting his assignment with the human rights organization in Israel and the Palestinian territories.,"WASHINGTON ""?The Israeli government is blocking an American citizen from taking his post with Human Rights Watch in Israel, accusing the group of engaging in ""politics in the service of Palestinian propaganda.""?The 39-year-old Nobel Peace Prize-winning organization sent a request in July 2016 for its new Israel and Palestine program director, Omar Shakir, to start his assignment in October. The approval process is supposed to take 60 days, but Human Rights Watch heard nothing back until Monday. The group received a letter from Israel's Interior Ministry denying the work permit ""An the grounds that we were not a real human rights organization,""?said Shakir, a California native of Iraqi descent with a master's degree from Georgetown and a law degree from Stanford. The Interior Ministry cited guidance from the Ministry of Foreign Affairs in a letter explaining its decision not to grant Human Rights Watch's request. ""the opinion received from the Ministry of Foreign Affairs noted that, for some time now, this organization's public activities and reports have engaged in politics in the service of Palestinian propaganda, while falsely raising the banner of ""Guman rights,""?and therefore recommended denying the application,""?the letter stated. The Israeli government did not respond to The Huffington Post's requests for comment. Human Rights Watch has operated in Israel for three decades, Shakir said. The last director of the Israel and Palestine program was an Israeli national and did not need a work permit. However, previous regional directors needed and received work permits from the Israeli government, he added. On the-Israel/Palestine-page on its website, Human Rights Watch criticizes Israel for ""severe and discriminatory restrictions on Palestinians""?human rights""?and for building ""unlawful settlements""?in the occupied West Bank. But it also criticizes the Palestinian Authority for arresting dissenting students and activists and Hamas security forces in Gaza for using torture. ""This decision and the spurious rationale should worry anyone concerned about Israel's commitment to basic democratic values,""?Iain Levine, who oversees Human Rights Watch's research and reporting, said in a statement. ""It is disappointing that the Israeli government seems unable or unwilling to distinguish between justified criticisms of its actions and hostile political propaganda.""?Human Rights Watch pointed to a law Israel passed last July that increased reporting requirements for organizations that support Palestinian groups and receive foreign funds, but not for those that support the expansion of Jewish settlements. Human Rights Watch got a vote of support on-Thursday from the U.S. State Department, whose acting spokesman, Mark Toner, said it strongly disagreed with Israel's description of the group. ""hRW is a credible human rights organization and even though we do not agree with all of their assertions or conclusions, given the seriousness of their efforts, we support the importance of the work they do,""?Toner said. ""We reference HRW reports in our own reporting, including our annual human rights reports.""?Human Rights Watch was founded in 1978 to monitor compliance with the 1975 Helsinki Accords, which included guarantees of human rights. The nonprofit now operates in some 90 nations to report on human rights conditions. In 1997, a group it co-founded, the International Campaign to Ban Landmines, won the Nobel Peace Prize. Israel joins Egypt, Sudan, the United Arab Emirates, Uzbekistan, Venezuela, Cuba and North Korea on the list of nations that refuse entry to Human Rights Watch to monitor human rights conditions. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1454,2017/2/24,http://www.huffingtonpost.com/2017/02/23/george-takei-trans-rights_n_14975682.html,George Takei Destroys Anti-Trans Arguments In Just 11 Words,Nailed it.,"""Star Trek""?actor and activist-George Takei shared a tweet on Thursday that shows why the battle for equal protection for transgender people is about more than just restrooms. And in only 11 words, this simple message shows why people who are opposed to trans rights are on the wrong side of history:- Learn from our past. Please. pic.twitter.com/ZTSHwzm8JA The message in the tweet is similar to a sentiment shared in signs at rallies held in support of equal rights-for trans people.- The 79-year-old also sent a followup tweet:- Imagine you had to use the restroom of the opposite sex everywhere. Might you not feel endangered, awkward, afraid even to go out publicly? Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1455,2017/2/24,http://www.huffingtonpost.com/2017/02/23/sean-hannity-mccain-fake-news_n_14975516.html,Sean Hannity Flips Out After Getting Busted Sharing Fake News,"""THIS IS TWITTER!!""","Sean Hannity doesn""t like being called out ""?even when he admits he's wrong.- The Fox News host tweeted a link to a false story calling John McCain a ""globalist war criminal""?and claiming the Republican senator from Arizona had-""requested campaign donations from the Russians.""""Wow if true,""?Hannity wrote in a since-deleted tweet that has been preserved in a number of places online, including Mediaite: Sean Hannity shares a tweet calling John McCain a ""globalist war criminal"" based on... Gateway Pundit. pic.twitter.com/LYbb00llHf Turns out the source of the story was Gateway Pundit, known for spreading falsehoods. In this case, the source of the story is a 2008 incident in which the Russian ambassador to the United Nations mistakenly received a standard fundraising mailer from McCain's presidential campaign ""?an incident chalked up to a computer error. Hannity-apologized to McCain-after deleting the tweet, but hundreds of Twitter users responded that he should have checked his facts first. He didn""t seem to appreciate the suggestion, firing back:- I said ""wow IF TRUE"" specifically referring to the donation. It turned out to be ""not true"". THIS IS TWITTER!! https://t.co/tV6KtvHi0I That's variation of an argument President Donald Trump has used when caught tweeting false info, implying that sharing something on Twitter shouldn""t have to meet the same standard for truthfulness.- ""Am I gonna check every statistic?""rump said when called out by Bill O��Reilly for sharing false crime numbers that blamed African-Americans for most of the nation's murders.- Hannity has fallen for Gateway Pundit stories before, last year apologizing for sharing a false story about Hillary Clinton.- - (h/t Media Matters) Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1456,2017/2/24,http://www.huffingtonpost.com/2017/02/23/degeneres-mar-a-lago-ad_n_14975498.html,Ellen DeGeneres Zings Trump's Mar-A-Lago Security Bungle In Killer Spoof Ad,"Enjoy ""breathtaking views of classified government documents,""?quips the TV spot.","Have you seen this ad for the Mar-a-Lago? pic.twitter.com/8AkzsGssad Sun-kissed sands, fine wines ""?and access to Donald Trump with a peek at classified documents. That's what scads of money can buy Mar-a-Lago's well-heeled guests, according to a slick spoof ad with a sarcastic twist on ""the Ellen DeGeneres Show.""?Along with ""luxurious poolside massages,""?the mock TV commercial touts ""breathtaking views of classified government documents""?at Trump's Palm Beach 20-acre golf resort, which the president repeatedly refers to as the ""Winter White House.""?Then, ""put on your best dinner attire,""?a sultry-voiced woman urges in the ad. ""And join our waitstaff in the dining room, where you'll experience our world-renowned cuisine just a table away from a confidential national security meeting.""?The ad flashes a photo of Trump dining with Japanese Prime Minister Shinzo Abe in full view of resort guests earlier this month. DeGeneres""?ad, which also has the nation's nuclear codes offered alongside imported chocolates on a guest's pillows, aired Wednesday. It's a lighter take on a situation that triggered national security concerns. During the visit by Abe, photos of Trump and his guests were snapped by curious club members on their cell phones. Documents were lying on the table in full view and easily photographed.-The White House has insisted the two were not talking about classified information on the open-air terrace surrounded by club members and guests. But Trump, Abe and his aides did discuss a response to North Korea's missile test Feb. 11 as they reviewed papers, and they held a news conference on the missile launch shortly afterward. Security protocol requires that any issues relating to sensitive intelligence be discussed only in rooms designated as ""secure compartmentalized information facilities""?(SCIFs). ""hOLY MOLY !!! It was fascinating to watch the flurry of activity at dinner when the news came that North Korea had launched a missile in the direction of Japan,""?Mar-a-Lago club member Richard DeAgazio wrote later on Facebook with photos of the scene. The man apparently toting the ""nuclear football""?bag holding codes to launch a nuclear attack also posed for a photo with DeAgazio. (All of the posts have since been removed, and DeAgazio's entire Facebook page has been deleted.) After the photos appeared on social media, President Barack Obama's former speechwriter Jon Favreau posted contrasting photos of how the two presidents dealt with security matters, showing Obama and his staff in a secure location, and Trump smiling blithely at a dinner table surrounded by milling aides. pic.twitter.com/RgKAkbLWy3 Democrats have insisted on a full rundown of security procedures at Mar-a-Lago, including details on all members and guests who have access to the president, who can overhear conversations during a potential crisis and who may even have access to classified information. ""If it is just a high price of admission and anybody can come in, it's important for us to know who those people are,""?Rep. Katherine Clark (D-Mass.) told The Huffington Post. ""they have unusual proximity to our president and apparently under this president are going to have close proximity to high security information and potentially classified information.""?The membership fee to join Mar-a-Lago is $200,000, which was doubled from $100,000 after Trump was elected president. Trump still owns the resort. House Oversight Committee Chairman Jason Chaffetz (R-Utah) and ranking member Elijah Cummings (D-Md.) also-sent a letter to White House Chief of Staff Reince Priebus asking for details on security at Mar-a-Lago and the vetting of members, guests and workers. ""there's no excuse for letting an international crisis play out in front of a bunch of country club members like dinner theater,""?tweeted House Democratic Leader Nancy Pelosi of California. Sen. John McCain (R-Ariz.) scoffed, ""You can""t make this stuff up.""?It was all fodder for DeGeneres""?spoof Mar-a-Lago ad. Her version of a commercial for Trump's resort ends:-""Tar-a-Lago, where luxury meets top-secret government information.""?HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1457,2017/2/24,http://www.bbc.co.uk/news/world-asia-39073389,Kim Jong-nam killing: 'VX nerve agent' found on his face,"Kim Jong-nam, the half-brother of North Korea's leader, was killed by a highly toxic nerve agent, says Malaysia.","Kim Jong-nam, the half-brother of North Korea's leader, was killed by a highly toxic nerve agent, says Malaysia. Mr Kim died last week after two women accosted him briefly in a check-in hall at a Kuala Lumpur airport. Malaysian toxicology reports indicate he was attacked using VX nerve agent, which is classified as a weapon of mass destruction by the United Nations. There is widespread suspicion that North Korea was responsible for the attack, which it fiercely denies. It responded furiously to Malaysia's insistence on conducting a post-mortem examination and has accused Malaysia of having ""sinister"" purposes. Malaysia's police chief Khalid Abu Bakar said on Friday that the presence of the nerve agent had been detected in swabs taken from Mr Kim's eyes and face. One of the women Mr Kim interacted with at the airport on 13 February had also fallen ill with vomiting afterwards, he added. The authorities say they intend to decontaminate the airport and areas the suspects are known to have visited. Mr Khalid said other exhibits were still under analysis and that police were investigating how the banned substance might have entered Malaysia. ""If the amount of the chemical brought in was small, it would be difficult for us to detect,"" he said. Read more about the highly toxic substance Bruce Bennett, a weapons expert at the research institute the Rand Corporation, told the BBC it would have taken only a tiny amount of the substance to kill Mr Kim. He suggests a small quantity of VX - just a drop - was likely put on cloths used by the attackers to touch his face. A separate spray may have been used as a diversion. Mr Khalid has previously said the fact the woman who accosted Mr Kim immediately went to wash her hands showed she was ""very aware"" that she had been handling a toxin. It would have begun affecting his nervous system immediately, causing first shaking and then death within minutes. Read more from expert Bruce Bennett The well-travelled and multilingual oldest son of late North Korean leader Kim Jong-il, he was once considered a potential future leader. He has lived abroad for years and was bypassed in favour of his half-brother, Kim Jong-un. Kim Jong-nam: North Korea's critic in exile A woman was seen in CCTV footage approaching Mr Kim and wiping something across his face. He sought medical help at the airport, saying someone had splashed or sprayed him with liquid. He had a seizure and died on the way to hospital. His body remains in the hospital's mortuary, amid a diplomatic dispute over who should claim it. Kim Jong-nam: Main players in mysterious killing Malaysia says it was clearly an attack by North Korean agents. Four people are in custody, including one North Korean and the two women he interacted with at the airport. Seven North Koreans are being sought, including a diplomat. Mr Kim had been travelling on a passport under the name Kim Chol. North Korea has yet to confirm that the deceased was actually Kim Jong-nam. North Korea's history of foreign assassinations On what seemed to be the first reference to the case in the North's state media, Pyongyang said on Thursday only that Malaysia was responsible for the death of one of its citizens. It also accused Malaysia of trying to politicise the return of his body, saying its insistence on securing DNA samples from Mr Kim's family before handing the body over was ""absurd"".", -1458,2017/2/24,http://www.bbc.co.uk/news/business-39074461,Royal Bank of Scotland losses more than treble to ?7bn,Royal Bank of Scotland has reported a ?7bn annual loss as past problems continue to dog its performance.,"Royal Bank of Scotland has reported a ?7bn annual loss as past problems continue to dog its performance. The deficit is more than treble 2015's loss of ?2bn. It is the ninth year in a row RBS has failed to make a profit. The loss came as the bank set aside more money to deal with legal action in the US and its abandoned attempt to spin off its Williams & Glyn business. RBS plans to cut costs by ?2bn over the next four years, which will mean job cuts and further branch closures. Chief executive Ross McEwan told the BBC the cost cuts were ""huge, and unfortunately there will be job losses amongst that"". ""Branches have been closing and will continue to close. The shape of a branch is changing, and what people do in a branch is changing,"" he added. The bank - which is 72%-government owned - has racked up more than ?50bn of losses since the ?45.5bn taxpayer bailout during the financial crisis. In the bank's results statement, Mr McEwan said: ""The bottom-line loss we have reported today is, of course, disappointing but, given the scale of the legacy issues we worked through in 2016, it should not come as a surprise. ""These costs are a stark reminder of what happens to a bank when things go wrong and you lose focus on the customer, as this bank did before the financial crisis."" A big chunk of RBS's loss in 2016 - which was more than triple the previous year's loss of ?2bn - was down to it setting aside ?5.9bn for fines and legal costs. The US Department of Justice is pursuing the bank over the sale of mortgage-backed securities prior to the 2008 financial crisis. RBS has also had to cover legal costs associated with payment protection insurance (PPI) mis-selling. However, Mr McEwan said he expected RBS to return to profit by the end of 2018, and pointed out that when one-off charges were stripped out, the core business of the bank was making money. ""We made good progress throughout 2016 against our strategy. Our core business generated ?4.2bn in adjusted pre-tax operating profit for the year,"" he said. ""This bank has great potential. We believe that by going further on cost reduction and faster on digital transformation we will deliver a simpler, safer and even more customer-focused bank."" To get the bank into profitability, Mr McEwan told the BBC that the bank needed to resolve its US legal issues and the question of its Williams & Glyn unit, which lends to small and medium-sized businesses. The European Union ordered RBS to sell the unit by the end of 2017 to address competition concerns, but last year RBS failed to sell the business to Santander and talks with Clydesdale Bank failed. Instead, RBS and the government have suggested the bank gives ?750m - which the bank has set aside - towards initiatives designed to boost competition in UK business banking.", -1459,2017/2/24,http://www.bbc.co.uk/news/health-39070183,Fasting diet 'regenerates diabetic pancreas',"The pancreas can be triggered to regenerate itself through a type of fasting diet, say US researchers.","The pancreas can be triggered to regenerate itself through a type of fasting diet, say US researchers. Restoring the function of the organ - which helps control blood sugar levels - reversed symptoms of diabetes in animal experiments. The study, published in the journal Cell, says the diet reboots the body. Experts said the findings were ""potentially very exciting"" and could be ""immensely"" beneficial. This is the latest study into the health benefits of the ""fasting-mimicking diet"". People spend five days on a low calorie, low protein, low carbohydrate but high unsaturated-fat diet. Then they have 25 days eating what they want - so overall it mimics periods of feast and famine. The experiments were on mice, so the diet was modified for the different species. But the results showed the diet regenerated a special type of cell in the pancreas called a beta cell. These are the cells that detect sugar in the blood and release the hormone insulin if it gets too high. Dr Valter Longo, from the University of Southern California, said: ""Our conclusion is that by pushing the mice into an extreme state and then bringing them back - by starving them and then feeding them again - the cells in the pancreas are triggered to use some kind of developmental reprogramming that rebuilds the part of the organ that's no longer functioning."" There were benefits in both type-1 and type-2 diabetes in the mouse experiments. Further tests on tissue samples from people with type-1 diabetes produced similar effects. Dr Longo said: ""Medically, these findings have the potential to be very important because we've shown - at least in mouse models - that you can use diet to reverse the symptoms of diabetes. ""Scientifically, the findings are perhaps even more important because we've shown that you can use diet to reprogram cells without having to make any genetic alterations."" Separate trials of the diet in people have been shown to improve blood sugar levels. The latest findings help to explain why. Dr Emily Burns, research communications manager at Diabetes UK, said: ""This is potentially very exciting news, but we need to see if the results hold true in humans before we'll know more about what it means for people with diabetes. ""People with type-1 and type-2 diabetes would benefit immensely from treatments that can repair or regenerate insulin-producing cells in the pancreas."" Follow James on Twitter.", -1460,2017/2/24,http://www.bbc.co.uk/news/world-us-canada-39073303,Trump repeats call for US nuclear supremacy,"President Donald Trump has said he wants the United States to expand its nuclear arsenal, in his first comments on the issue since taking office.","President Donald Trump has said he wants the United States to expand its nuclear arsenal, in his first comments on the issue since taking office. Mr Trump said it would be ""wonderful"" if no nation had nuclear arms, but otherwise the US must be ""top of the pack"". He told Reuter that the US had ""fallen behind on nuclear weapon capacity"". Critics say the US and Russia already have more weapons than necessary to deter a nuclear attack. The US has 6,800 nuclear weapons and Russia has 7,000, according to the US nonpartisan Arms Control Association. Speaking to Reuters in a wide-ranging interview, Mr Trump said: ""I am the first one that would like to see everybody - nobody have nukes, but we're never going to fall behind any country even if it's a friendly country, we're never going to fall behind on nuclear power."" ""It would be wonderful, a dream would be that no country would have nukes, but if countries are going to have nukes, we're going to be at the top of the pack."" His latest comments on nuclear weapons echo a tweet he sent a few weeks after his election win, in which he pledged to increase the country's capability. A new strategic arms limitation treaty between the US and Russia, known as New Start, requires that by 5 February of next year, both countries must limit their arsenals of strategic nuclear weapons to equal levels for 10 years. The independent Arms Control Association non-profit group criticised Mr Trump's remarks. ""Mr Trump's comments suggest, once again, that he is ill-informed about nuclear weapons and has a poor understanding of the unique dangers of nuclear weapons,"" the group said in a statement. ""The history of the Cold War shows us that no one comes out on 'top of the pack' of an arms race and nuclear brinksmanship."" Mr Trump also told Reuters: During Mr Trump's campaign he referred to nuclear proliferation as the ""single biggest problem"" facing the world, but also said he could not rule out using nuclear weapons against Europe. His Democratic opponent, Hillary Clinton, repeatedly cast Mr Trump during the campaign as too erratic and lacking in the diplomatic skills required to avoid a nuclear war. She mocked him by saying ""a man who can be provoked by a tweet should not have his fingers anywhere near the nuclear codes"".", -1461,2017/2/24,http://www.bbc.co.uk/news/world-us-canada-39073903,Caitlyn Jenner's message to Donald Trump: 'Call me',,"The reality TV star and activist Caitlyn Jenner has recorded a message for Donald Trump, over protections for transgender students. The president has overturned Obama-era guidance allowing transgender students to use school toilets matching their gender identity.", -1462,2017/2/24,http://www.bbc.co.uk/news/uk-39072939,Conservationists call for 'red squirrel army',A group of conservation charities is launching its biggest ever recruitment drive for volunteers to help protect the native red squirrel.,"A group of conservation charities is launching its biggest ever recruitment drive for volunteers to help protect the native red squirrel. A total of 5,000 squirrel-watchers are required across England, Wales and Northern Ireland. Volunteers will help protect resident squirrel populations. Researchers say the species remains under threat because of disease and competition for food from larger grey squirrels, from north America. This army of volunteers led by the Wildlife Trusts will focus on nine ""red squirrel strongholds"". At each of these woodland sites, volunteers will be asked to monitor the animals, and to set up motion sensitive cameras for continuous, detailed surveys. Squirrel-watchers will also be asked to look out for the larger, much more common grey squirrels, so that where they are encroaching on the reds' habitat, they can be culled. A pox virus, carried by the greys and usually deadly to native reds, is largely blamed for the nationwide crash in the red squirrel population since the 1950s. In the Pine forests of Scotland, the native species is faring better, with a population that appears to be increasing. But having dedicated volunteers in these nine pockets of habitat, according to Wildlife Trusts ecologist Dr Cathleen Thomas, will be key to ensuring that this ""icon"" of the countryside doesn't disappear from the rest of Britain in the next few decades. ""We've seen a great deal of success, and numbers of reds increasing, where we have had dedicated groups of volunteers, so we want to co-ordinate that on a national scale,"" she told BBC News. Controlling numbers of the greys, she added, was central to that success. ""It's not that we value the life of one species over another,"" Dr Thomas said. ""But the ecosystem here evolved with the reds."" She added that the greys were ""quite damaging"" - their habit of gnawing bark can damage and kill trees, and the food they take can impact other wildlife, including birds and dormice.", -1463,2017/2/24,http://www.bbc.co.uk/newsbeat/articles/39074221,Beyonce pulls out of headlining Coachella Festival 'on doctor's orders',Beyonce has pulled out of performing at California's Coachella music festival in April under doctor's orders.,"Beyonce has pulled out of performing at California's Coachella music festival in April under doctor's orders. The pregnant singer was due to top the bill at the annual festival in the California desert on 15 and 22 April. Organisers have said Beyonce will headline the event in 2018 instead. ""Following advice of doctors to keep a less rigorous schedule, Beyonce has made the decision to forgo performing at the 2017 Coachella Valley Music & Arts Festival,"" a statement said. ""However, Goldenvoice and Parkwood are pleased to confirm that she will be a headliner at the 2018 festival. Thank you for your understanding."" The festival, which is based in Indio, hasn't revealed who will replace her. Radiohead and Kendrick Lamar are still headlining the two-weekend festival. The British band will perform on 14 and 21 April while the US rapper will top the bill on 16 and 23 April. Beyonce performed at the Grammys earlier this month, where she showed off her baby bump and took home two awards. She won best music video for Formation and best urban contemporary album for Lemonade. Adele dedicated her album of the year prize to the US singer. She told the audience: ""I can't possibly accept this award. ""I'm very humbled and I'm very grateful, but Beyonce is the artist of my life."" The 35-year-old and her husband Jay Z already have a daughter, five-year-old Blue Ivy. They haven't said when their twins are due. Beyonce headlined Glastonbury Festival in 2011, three years after Jay Z topped the bill at the event in 2008. Find us on Instagram at BBCNewsbeat and follow us on Snapchat, search for bbc_newsbeat", -1464,2017/2/23,http://www.bbc.co.uk/news/uk-england-merseyside-39070337,Cheshire woman pregnant with late husband's baby,,"A woman whose husband died of cancer has revealed she is expecting his child. Sarah Beattie, of Crewe, Cheshire became pregnant after eight cycles of IVF. The news though came too late for her husband Nelson who died last year. ""He made me promise that I wouldn't give up,"" she said, ""and I know he would be super excited.""", -1465,2017/2/24,http://www.bbc.co.uk/sport/football/39072867,Claudio Ranieri: Leicester sacking manager unforgivable - Gary Lineker,"Claudio Ranieri's last game in charge of Leicester was on Wednesday, when his side lost 2-1 at Sevilla in the first leg of their Champions League last-16 tie","Share this with Leicester's decision to sack Claudio Ranieri nine months after he won the Premier League is ""unforgivable"", says former Foxes striker Gary Lineker. Ranieri took the Foxes to the title in 2015-16 despite them being rated 5,000-1 shots at the start of that campaign. Leicester are 17th this season and lost to League One Millwall in the FA Cup. Match of the Day presenter Lineker, who played for his hometown club for seven seasons, added that the Italian's dismissal shows the ""game's gone"". ""After all that Claudio Ranieri has done for Leicester City, to sack him now is inexplicable, unforgivable and gut-wrenchingly sad,"" the 56-year-old posted on social media. Former Tottenham manager Harry Redknapp, speaking on BT Sport, said: ""I wasn't that surprised, but am disappointed. He has done an amazing job. ""When teams are down there now, with what's at stake, owners do make those changes and panic. I'm sad to see it. He can walk away and hold his head high."" Ex-England striker and Match of the Day pundit Ian Wright said the Leicester players may feel they are responsible for Ranieri's dismissal. ""Unfortunate news,"" Wright said on social media. ""I wonder how I'd feel if I was a Leicester player right now? Could I have done more? At least Claudio left them as champions."" Former Wales striker and Match of the Day pundit John Hartson said: ""Very hasty and very harsh. The owner/board are obviously having a major panic and feel a change in a relegation battle is needed. ""Will the sacking of Claudio Ranieri seem so mad if Leicester appoint a manager who keeps them in the Premier League?"" Former England striker Michael Owen said the sacking was a ""total and utter disgrace"". He added: ""I've lost a lot of love for the beautiful game today. The players and fans of Leicester have been massively let down."" On 7 February, Leicester issued a statement saying Ranieri had their ""unwavering support"". Sixteen days later they sacked the 65-year-old Italian, who had signed a new four-year deal in the summer. His departure came a day after the Foxes won praise for their performance despite losing 2-1 in their Champions League last-16 first-leg tie at Sevilla. ""Ranieri was told he was sacked on Thursday afternoon in Leicester once the team returned from Spain, but the suggestion is the owners decided before that defeat by Sevilla,"" said BBC sports editor Dan Roan. ""The decision was taken very reluctantly but the club's owners are desperate to avoid relegation and its consequences."" Foxes vice-chairman Aiyawatt Srivaddhanaprabha said: ""This has been the most difficult decision we have had to make in nearly seven years since King Power took ownership of Leicester City. ""But we are duty-bound to put the club's long-term interests above all sense of personal sentiment, no matter how strong that might be. ""Claudio has brought outstanding qualities to his office. His skilful management, powers of motivation and measured approach have been reflective of the rich experience we always knew he would bring to Leicester City."" Srivaddhanaprabha added: ""His warmth, charm and charisma have helped transform perceptions of the club and develop its profile on a global scale. We will forever be grateful to him for what he has helped us to achieve. ""It was never our expectation that the extraordinary feats of last season should be replicated this season. Indeed, survival in the Premier League was our first and only target at the start of the campaign. ""But we are now faced with a fight to reach that objective and feel a change is necessary to maximise the opportunity presented by the final 13 games."" A news conference with Leicester assistant manager Craig Shakespeare will take place at 13:00 GMT on Friday. Media playback is not supported on this device This content will not work on your device, please check Javascript and cookies are enabled or update your browser Phil McNulty, BBC chief football writer: It is almost the thought that dare not speak its name amid the wave of shock, outrage and disgust at Leicester's decision to ruthlessly dismiss the hugely popular 65-year-old, who won the hearts of all supporters with his good humour, class and dignity as he led the Foxes to the title. But is there actually method in what many see as the madness of the club's Thai owners? Leicester's fall has been more dramatic than anything they could have foreseen in their worst nightmares. A win for any of Sunderland, Crystal Palace and Hull City this weekend would put the Foxes in the relegation places. Wins for all three and they would be bottom by the time they face Liverpool on what will now be a highly charged occasion at the King Power on Monday. After 26 games last year they were top on 53 points, two ahead of Spurs. This season they are 17th after 25 games, with only 21 points. Last season they had lost only three games compared with 14 in this campaign, and conceded only 29 goals compared with 43 this term. Indeed, they only conceded 36 in the entire 2015-16 season. The difference is stark and, very clearly in the opinion of Leicester's owners, dangerous. Pat Murphy, BBC Radio 5 live I remember the Thai owners at the Everton game when Leicester got the trophy, the players couldn't get the trophy out of their hands. They loved dining at the top table and that's what they are worried about. Has Ranieri lost the dressing room? Probably. They are clearly in trouble, sinking like a stone. But my word, they have shown a cruelty in this decision. Ranieri deserved everything. It sums up modern football. The owners have their eye on staying up. The chairman was at the Swansea game shaking his head a couple of weeks ago, making it quite clear how he felt. It was only a fortnight ago they promised unwavering support. Surely in terms of decency, respect and integrity, Ranieri should have been allowed to get them out of this mess? 14 February 2016: Leicester lose 2-1 at Arsenal, their final defeat of the 2015-16 season before a 12-game unbeaten run. 2 May 2016: The Foxes are crowned champions of England for the first time in their history as Tottenham draw at Chelsea. 16 July 2016: Midfielder N'Golo Kante leaves to sign a five-year deal with Chelsea. 13 August 2016: Leicester lose their first game of the 2016-17 season - a 2-1 defeat at Hull City. 15 October 2016: The Foxes are hammered 3-0 by table-topping Chelsea at Stamford Bridge. 22 November 2016: Leicester secure top spot in their Champions League group with one game to spare. 18 December 2016: Ranieri is named Coach of the Year at the BBC Sports Personality of the Year awards. 7 February 2017: After a run of two wins in 15 league games, Leicester give Ranieri their ""unwavering support"". 22 February 2017: The Foxes lose 2-1 to Sevilla in the first leg of their Champions League last-16 tie. 23 February 2017: Ranieri is sacked. Share this with Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Fit For Sport Feb Half Term Activity Camp Fit For Sport Feb Half Term Activity Camp For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -1466,2017/2/24,http://tass.com/politics/932613,Funeral ceremony for UN Ambassador Vitaly Churkin,Russia's First Deputy Permanent Representative to the UN Pyotr Ilyichev has been appointed as acting Permanent Representative to the organization after Vitaly Churkin's unexpected death,"- ? Ruptly Stream- The ceremony is taking-place in the mourning hall of Moscow's Central Clinic Hospital.- Russia's Ambassador to the United Nations Vitaly Churkin died in New York on Monday, a day before his 65th birthday. The Russian foreign ministry said he had died while performing his duties. Churkin was born in Moscow on February 21, 1952 into the family of an aviation design engineer. He has been Russia's Ambassador to the United Nations since April 8, 2006. ", -1467,2017/2/24,http://tass.com/politics/932610,Moscow appoints acting permanent representative to UN after Vitaly Churkin's death,Ilyichev will head Russia's diplomatic mission until the appointment of the new Permanent Representative,"UNITED NATIONS, February 24. /TASS/. Russia's First Deputy Permanent Representative to the United Nations Pyotr Ilyichev has been appointed as acting Permanent Representative to the organization after Vitaly Churkin's unexpected death, according to a representative of Russian Foreign Ministry's press service. ""Pyotr Ilyichev has become acting Permanent Representative of the Russian Federation to the United Nations,"" he said. Ilyichev will head Russia's diplomatic mission until the appointment of the new Permanent Representative Vitaly Churkin died on February 20, a day before his 65th birthday. He had been Russia's UN ambassador since April 8, 2006, representing the country in the United Nations Security Council. According to the Russian Foreign Ministry, the ambassador died while on duty. On Tuesday, the UN Security Council observed a minute of silence for Churkin, and the General Assembly will hold a special meeting in the coming days to pay tribute to him. The final farewell ceremony for Churkin will take place in Moscow on February 24.", -1468,2017/2/24,http://tass.com/world/932609,"Pentagon wants more senior-level talks with Russia on security of flights in Syria ""?media","According to Jeffrey Harrigian, US aircraft ""on occasion get out of the way"" of Russian jets","WASHINGTON, February 24. /TASS/. The US military officials want to elevate a more senior-level talks with Russia about air operations over Syria, according to Lt. Gen. Jeffrey Harrigian, the top Air Force commander in the Middle East, the Washington Post wrote. ""Our perspective has been that there needs to be another layer that allows us to have a more senior-level discussion, and We're got to work through where that layer is,"" Harrigian told reporters in Baghdad, suggesting that adding a US general with somewhere between one and three stars and a Russian counterpart would be helpful, the newspaper wrote. According to Harrigian, US aircraft ""on occasion get out of the way"" of Russian jets. ""This was especially true a few months ago when both countries were launching airstrikes regularly near the Syrian city of Palmyra, he said. Such decisions could be hampering the overall operation, however,"" he was quoted as saying. ""Did we miss targets? I can""t say that for sure, but I would tell you that optimally we would have gone after that in a different manner,"" he said. Air Force Col. John Thomas, a spokesman for US Central Command, told the newspaper that the US military officials have ""advocated upgrading the technology used to communicate with the Russians, which up until now has consisted of little more than a commercial phone line.""", -1469,2017/2/23,http://tass.com/politics/932596,Damascus delegation arrives in Geneva with constructive instructions - Russian envoy,"The Syrians are emphasizing justly that the negotiations are not beginning but are continued, Alexey Borodavkin said","GENEVA, February 23. /TASS/. Damascus delegation has arrived in Geneva having constructive instructions, with the objective to reach progress, Russia's Permanent Representative to the UN Office and other International Organizations in Geneva Alexey Borodavkin said on Thursday. ""Yesterday, I had a meeting with leader of the Syrian governmental delegation Bashar Jaafari; the contact, like always, was friendly, it was a conversation of like-minded people,"" the Russian diplomat said. ""I would like to stress with satisfaction that the delegation of the Syrian government has arrived in Geneva having constructive instructions, with the objective to reach progress."" ""The Syrians are emphasizing justly that the negotiations are not beginning but are continued,"" he said. ""The position is constructive but in contrast to what we can hear from opposition representatives arriving from Riyadh, who again put forward, as a prior condition, an absurd demand on immediate resignation of Syrian President Bashar al-Assad,"" Borodavkin said. ""It is not the basis for talks."".", -1470,2017/2/23,http://tass.com/sport/932600,IAAF approves application of three Russians to compete as neutral athletes,,"MOSCOW, February 24. /TASS/. The doping review board of the International Association of Athletics Federations (IAAF) has agreed that the applications of Anzhelika Sidorova, Kristina Sivkova and Aleksei Sokirskii have met the exceptional eligibility criteria to compete internationally as neutral athletes, IAAF said in a press release.", -1471,2017/2/24,http://www.dw.com/en/3d-replicas-spread-wealth-of-luther-artifacts/a-37633886?maca=en-rss-en-all-1573-rdf,3D replicas spread wealth of Luther artifacts,"To mark 500 years of the Protestant Reformation, dozens of artifacts related to Martin Luther have been digitized. Plans for 3D replicas can be downloaded and printed by those hosting their own Luther exhibition.","As soon as Stefan Rhein leaves his office he enters a different world. Suddenly, he finds himself in the study of 16th century Protestant-reformer Martin Luther. For now, however, that room is completely-empty - even Luther's famous desk is missing. Rhein is the director of Luther House in Wittenberg, the town where Luther once lived and taught theology. Rhein is rather relaxed about the fact that Luther's desk, as well as 88 additional items, are notably absent. After all, the building is still closed to visitors.-Some renovation work still needs to be done before Luther House reopens-on March 4, resplendent-with fresh paint and a new lighting system for the 500th anniversary celebration of the Protestant Reformation. Luther in the US In the meantime, the missing items - including writings, letters, paintings and personal effects - have-been on display in three major-Luther exhibitions in the US, a traveling-exhibit entitled ""Here I Stand."" 3D reproductions include a bust of Martin Luther Roughly 195,000 visitors flocked to shows in Atlanta, Minneapolis and New York - a success that's probably due to the fact that prior to these exhibitions, the items had never left Wittenberg. That's where, in 1517, Luther published his famous 95 theses speaking out against the Catholic Church's practice of making sinners pay for their indulgences. The US exhibition ""Here I Stand"" didn't limit itself to 16th century Martin Luther and the far-reaching events he set in motion, but also connected-him with his 20th century namesake, Martin Luther King Jr. The exhibit showed-that-the attitude of the civil rights icon, based on the assumption that all men were created by God and therefore have the same value, would not have been possible without the Reformation of 1517. In return for the loan of the items, US exhibition organizers have set up a huge online library containing texts and graphics, as well as 20 digital plans to reproduce-valuable items from the Reformation era. The material allows-interested individuals to organize their own exhibition on the Reformation, whether they be private citizens, cultural clubs, church communities, youth groups or schools.- 3D-Reformation With just a click and a download, organizers can reproduce items with the help of a 3D printer - a replica of a 16th century indulgence chest, for example, or a bust of Martin Luther. If you don't own a 3D printer, public printers in many cities can do the job - for a fee. In Germany, the printing of just one item costs roughly 100 euros ($106). Such an expense-is-likely to turn off some potential exhibition organizers.- Not surprisingly, the Andreas-Gymnasium, a high school in the Berlin district of Friedrichshain, has limited its Reformation exhibition to 20 large-placards. Ingo Niederschuh, the teacher responsible for the exhibition, told DW that unfortunately, the show will not be accompanied by extra lessons in history and religion. Due to the cost of 3D printing, many exhibitions have been limited to informational placards The Protestant community in Berlin-Schlachtensee has also set up an exhibition. Interested visitors can study information on the background, religious beliefs and cultural influences of Martin Luther after church services and during the opening hours of the communal office. Visitors hoping-to find 3D reproductions will be disappointed, however. Exhibition organizers felt that-the cost-was simply too high. The placards on show do detail how Luther became a revolutionary against his will, but adding some eye-catching artifacts - or at least reproductions --to the exhibition would have made it more interesting.- The most surprising Luther exhibition is located right in the center of Berlin, where the Catholic community has-gathered information about the reformer at the St. Hedwig Cathedral near-the famed Unter den Linden boulevard. Bettina Birkner developed the concept behind the exhibition, ""because Luther motivated us to study the Bible ourselves,"" she explained.- Anniversary-exhibition Visitors are expected to flock to Luther House in Wittenberg this year The concept of ""Here I Stand"" and its 3D exhibits has obviously been successful. Shows have been set up across the German-speaking world, with 370 exhibitions taking place all the way from Haderslev in Denmark to Meran in South Tyrol, Italy. Right now, the original exhibits on which the project ""Here I Stand"" was based-are being prepared for Germany's special exhibition for the Reformation anniversary year entitled ""Luther! 95 Menschen - 95 Sch?tze""- ('Luther! 95 people - 95 treasures') in the-Augusteum in Wittenberg. Stefan Rhein, director of the Luther House,-hopes the ""Here I Stand"" project will inspire people to travel and-see the original exhibits in Wittenberg. The exhibition there will run from May 13 until November 5.", -1472,2017/2/24,http://www.dw.com/en/royal-bank-of-scotland-sees-losses-widening/a-37697454?maca=en-rss-en-all-1573-rdf,Royal Bank of Scotland sees losses widening,Bailed-out Royal Bank of Scotland has reported huge net losses for 2016. The lender is still reeling from massive litigation and restructuring costs after being accused of mis-selling mortgage-based securities.,"Royal Bank of Scotland said Friday its 2016 annual losses more than tripled to 6.95 billion pounds ($8.7 billion, 8.21 billion euros). RBS, which was bailed out by the British government following the 2008 financial crisis, posted its ninth consecutive annual loss last year. The Edinburgh-based lender said it had been severely hit by litigation and conduct costs of almost 5.9 billion pounds, including over its issuance of US mortgage-based securities and its role in the mis-selling of a UK insurance product. Streamlining effort Restructuring costs last year amounted to 2.1 billion pounds, RBS reported. ""These costs are a stark reminder of what happens to a bank when things go wrong and you lose focus on the customer as this bank did before the financial crisis,"" Chief Executive Ross McEwan said in a statement. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2TFGm RBS is-almost 73-percent state-owned after the lender was saved with 45.5 billion pounds in taxpayer's cash in the world's biggest banking bailout at the height of the global financial crisis. On Friday, RBS said it would slash operating expenses by a further 2 billion pounds over four years, with 750 million of savings to be made in the course of 2017. hg/jd (AFP, Reuters) -", -1473,2017/2/24,http://www.dw.com/en/juncker-envisions-eu-overhaul-roles-for-post-brexit-uk-and-turkey/a-37697208?maca=en-rss-en-all-1573-rdf,"Juncker envisions EU overhaul, roles for post-Brexit UK and Turkey","The head of the EU's executive commission, Jean-Claude Juncker, has suggested a dramatic restructuring of the bloc with ""core"" members and ""orbit"" nations. These outliers could include the UK and Turkey, he said.","European Commission President Jean-Claude Juncker suggested a radical re-envisioning of the EU on Thursday. The new plan would see a smaller group of core EU members, and then different levels of belonging for other nations that were not prepared for full membership. ""Do we want to always advance as a group of 28? Or shouldn't it be that those who want to go fast can do so, without affecting the others?"" he asked a conference in the Belgian city of Leuven. He suggested that the bloc may function better if not every country was compelled to take part in projects they had no interest in, even in matters of defense. He suggested instead a ""structured design, open to all"" in the format of some ""core"" EU members surrounded by an outer ""orbit"" of less involved nations. These looser-knit nations could include the UK, for example, or even Turkey, which has been pursuing EU membership for years despite the bloc voicing concerns about Ankara's-human rights record. No hard border for Ireland At the same time, Juncker made it clear that Europe would fight for Ireland's interests when it came to-negotiations for the UK's divorce from the EU, known as Brexit. There have been concerns about the consequences of reintroducing a formal international border between the Republic of Ireland and Northern Ireland. ""The Irish government will work closely together during the whole process of the Brexit negotiations. We do not want to have hard borders,"" Juncker said after meeting with Irish Prime Minister Enda Kenny in Brussels. Kenny also made it clear that Dublin wants Northern Ireland to be able to join the EU immediately should it vote by referendum to join the Republic, as was the case with the former East Germany in the 1990s. es/se (AFP, dpa)", -1474,2017/2/24,http://www.dw.com/en/guatemala-blocks-dutch-abortion-ship/a-37696776?maca=en-rss-en-all-1573-rdf,Guatemala blocks Dutch 'abortion ship',"Women on Waves is an organization that tries to help women in the early stages of pregnancy who have difficulty accessing abortion. In Guatemala, abortion is only legal if the mother's life is in danger.","The Guatemalan military said on Thursday that it had sent one its vessels to intercept a Dutch ""abortion ship"" in international waters just off the country's coast. The rights group Women on Waves, which hopes to help Guatemalans circumvent their government's ban on terminating pregnancy, complained that their boat was being illegally detained. ""The military will not permit this group to carry out its activities in the country,"" read an official complaint from the army penned at the behest of President Jimmy Morales. Women on Waves fired back, saying that Guatemala's navy was ""obstructing a lawful protest against the state's restrictions on the Guatemalan women's right to safe abortion."" They also stressed the need for abortion for health reasons, including the spread of the Zika virus, which can have devastating effects on infants: ""Especially at the dawn of the Zika crisis, access to safe abortion is fundamentally an issue of social justice."" The group said that around 65,000 women in Central America have illegal and unsafe abortions each year. Activists and doctors from the Netherlands, Germany, Austria, Brazil, Spain and Guatemala itself were taking part in the mission An uphill battle The plan was to shepherd five women at a time to the ship via a small dinghy, and then give them medication that induces abortion. According to an Austrian doctor on the ship, the pills are 99 percent safe and have been approved by the World Health Organization. The army argued, however, that because the activists had not declared the motive of their trip, they could not legally go ashore. On top of this, crowds of-protesters from Christian groups were at the ready to block their path, and even broke up a small press conference the group tried to hold to explain their mission. Women on Waves met with similar problems in 2012, when they tried to complete a similar objective off the coast of Morocco. The country's navy prevented them from docking. They have successfully carried out their mission in European nations where abortion can be difficult to procure, such as Ireland and Poland - though they are met with protesters wherever they travel. es/se (AP, AFP)", -1475,2017/2/24,http://www.dw.com/en/us-no-longer-germany-s-top-trade-partner/a-37696816?maca=en-rss-en-all-1573-rdf,US no longer Germany's top trade partner,"The US is no longer Germany's most important trade partner, but China, fresh figures from the statistics office have suggested. With Washington now pursuing a protectionist agenda, that's unlikely to change.","In 2016, China for the first time became Germany's most important trading partner, toppling the United States, which fell back to third place behind France. German imports from and exports to China rose to 170 billion euros ($180 billion), Reuters reported after reviewing figures from the National Statistics Office (Destatis). The development may be seen in a positive light in Berlin, with the German government coming out as a supporter of global free trade after US President Donald Trump threatened to impose hefty tariffs on imports and his top adviser on trade accused Germany of exploiting a weak euro to boost shipments abroad. Forging new alliances Germany's neighbor, France, remained the second most important business partner for Germany with a combined trade volume of 167 billion euros, followed by the US with a volume of 165 billion euros. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XTTa Looking at exports alone, the US remained in the top spot, being the biggest client for products from Europe's powerhouse in 2016. Britain accounted for the biggest bilateral trade surplus, with exports surpassing imports from the UK by more than 50 billion euros. This means that Britain and the US together accounted for about 40 percent of Germany's record trade surplus of 252.9 billion euros last year. hg/jd (Reuters, Handelsblatt)", -1476,2017/2/24,http://www.dw.com/en/philippine-senator-leila-de-lima-arrested-on-illegal-drug-charges/a-37696588?maca=en-rss-en-all-1573-rdf,Philippine Senator Leila de Lima arrested on illegal drug charges,Philippine Senator Leila de Lima was arrested Friday after spending the night in her office. De Lima has been a staunch critic of President Duterte and the violent war on drugs in the country.,"Philippine Senator Leila de Lima, a major critic of President Rodrigo Duterte, was arrested Friday on drug trafficking charges after staying in her office through the night. De Lima voluntarily gave herself over to arresting officers who were waiting for her at the Senate compound, one day after a warrant was put out for her arrest. ""I am innocent,"" said de Lima outside the Senate. ""There is no truth to the charges I benefited from the drug trade, that I received money and that I coddled drug convicts."" De Lima and her supporters say the charges were made by Duterte to intimidate any opposition to his actions cutting drug crime in the country. De Lima faces three drug-related charges, including one that states she received money from drug dealers in the country's prisons of approximately 5 million Philippine pesos ($99,850, 94,380 euros) between 2010-2016. ""People are afraid,"" Father Robert Reyes, a priest who spent the night with de Lima, told French press agency AFP. ""If the government can arrest a powerful person like her, what more of the little man? That is the implied message of her arrest."" While human rights organization Amnesty International also came to de Lima's side, Duterte's aides said Friday's arrest was necessary, saying powerful people can be brought to justice if they break-the law. ""The war on illegal drugs targets all who are involved and the arrest of an incumbent senator demonstrates the president's strong resolve to fight pushers, peddlers and their protectors,"" said Duterte spokesman Ernesto Abella. From human rights lawyer to senator De Lima started working after law school as a law clerk in the House of Representatives and as a legal aide to a Supreme Court associate justice. De Lima then assisted current Senate President Aquilino Pimentel Jr. earn a Senate seat and fellow future Senator Alan Peter Cayetano beat a lawsuit alleging he was not a Filipino citizen which would disqualify him from office. De Lima became the chairwoman of the government's Commission of Human Rights in 2008. During her two years on the job she investigated extrajudicial killings and abductions and human rights violations by the Philippines' security forces. In 2010 De Lima became justice secretary in the Benigno Aquino administration who pledged to fight corruption. She stayed in the position until 2015 to successfully run for a Senate position, earning the role-at the same time Duterte became president. Philippine President Rodrigo Duterte has never gotten along with Philippine Senator Leila de Lima Long-time Duterte enemy While serving as chairwoman to the Commission of Human Rights, De Lima opened a probe on Duterte when he was mayor of the town of Davao. Duterte had faced allegations of running death squads in Davao that allegedly killed hundreds of drug addicts and petty criminals as a part of a ruthless anti-crime campaign. Duterte has both denied and acknowledged his role in the death squads in Davao. Duterte has brought similar tactics to Manila, resulting in the deaths of thousands of suspected drug dealers since taking office in June 2016. De Lima called Duterte a ""sociopathic serial killer"" on Tuesday, and demanded Duterte's cabinet consider him unfit to lead. Duterte made allegations De Lima was running a drug trafficking ring in the country's largest prison in August 2016 while she was justice secretary in the previous government. ""I will have to destroy her in public,"" said Duterte in August, as he mounted a campaign to ruin her reputation, which included allegations on de Lima's sex life. kbd/rc (AFP, AP, Reuters)", -1477,2017/2/24,http://www.dw.com/en/alphabet-sues-uber-for-allegedly-stealing-autonomous-car-technology/a-37696579?maca=en-rss-en-all-1573-rdf,Alphabet sues Uber for allegedly stealing autonomous car technology,"A former top manager at Google's self-driving car division allegedly downloaded 14,000 confidential files onto a laptop. A lawsuit claims he then reformatted the laptop to cover his tracks.","Google's parent company Alphabet accused lift-sharing business Uber of stealing its technology for self-driving cars in a lawsuit filed in the US on Thursday. The court filing claimed that a former top manager, Anthony Levandowski, at Alphabet's-autonomous car subsidiary Waymo stole vital technical data for use in his rival autonomous vehicle business Otto, which he sold to Uber for a reported US$680 million (642 million euros)-last year. ""Otto and Uber have taken Waymo's intellectual property so that they could avoid incurring the risk, time and expense of independently developing their own technology,"" Waymo said in a 28-page San Francisco federal court filing. Levandowski's startup is building big-rig trucks that navigate highways without a human behind the wheel and Levandowski is now overseeing Uber's effort to develop and dispatch cars driven by robots. Waymo called for a trial to stop Otto and Uber from using what it says is patented technology. It also wanted unspecified damages as ""an action for trade secret misappropriation, patent infringement, and unfair competition."" It argued that a ""calculated theft"" of its technology ""reportedly netted Otto employees over half a billion dollars and allowed Uber to revive a stalled program, all at Waymo's expense."" Thousands of confidential files The complaint claimed Levandowski loaded 14,000 confidential files on to a laptop before leaving to start Otto. The files allegedly included the designs for circuit boards needed for ""LiDAR,"" an array of sensors that enable self-driving cars to see what's around them so they can safely navigate roads. The suit alleges that a week after downloading the files and after removing a data storage card, Levandowski reformatted the company laptop to erase any trace of what happened to the downloaded data. ""Mr Levandowski took extraordinary efforts to raid Waymo's design server and then conceal his activities,"" Waymo alleged in the lawsuit. It also contended that other former Google employees stole trade secrets before leaving to join Otto. An Uber spokeswoman told news agency AFP that ""we take the allegations made against Otto and Uber employees seriously and we will review this matter carefully."" Waymo said it decided to take action after it was ""inadvertently"" copied in on an email from a supplier which included drawings of an Otto circuit board which bore a ""striking resemblance"" to Waymo's own. aw/rc (AFP, AP, dpa) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UFJn", -1478,2017/2/24,http://www.dw.com/en/ukip-future-cast-into-doubt-as-it-fails-to-win-in-brexit-capital-stoke/a-37696462?maca=en-rss-en-all-1573-rdf,UKIP future cast into doubt as it fails to win in 'Brexit capital' Stoke,"UKIP failed to topple Labour in a by-election described by Nigel Farage as a ""fundamental"" test for the party. But in a bruising loss for Labour on the same night, the Conservatives snatched a formerly safe seat.","The future of the anti-European Union UK Independence Party (UKIP) was cast into doubt on Thursday following a by-election defeat in what was seen as a Brexit heartland. Britain's Labour party fought off defeat in the by-election of Stoke-on-Trent where the anti-immigration party's new leader Paul Nuttall was running as the party's candidate. Labour's Gareth Snell won with 7,583 votes and Nuttall took 5,233. ""Over the last few weeks, a city dubbed by some as the capital of Brexit has once again proved to the world that we are so much more than that,"" Snell said in his victory speech. ""This city will not allow ourselves to be defined by last years referendum and we will not allow ourselves to be divided by the result."" Stoke recorded the strongest support for Brexit from all of Britain's major cities in last June's referendum even though its Labour MP, Tristram Hunt, opposed it. Nuttall had be hoping to build on the widespread sense of alienation from mainstream politics and to prove the party had a future after securing its goal to leave the EU and following the departure of its figurehead Nigel Farage. The party was greatly invested in the by-election, taking-over a former bakery in the main shopping district for their campaign headquarters. ""What we've got to do is to come in, garner those votes and turn the capital of Brexit into the capital of change,"" Nuttall said ahead of the election. But his party had been filled with infighting and his campaign was mired in controversy after he falsely claimed to have lost close friends in the 1989 Hillsborough football disaster, which killed 96 people. The city had been a safe Labour seat since 1950, but the party's opposition to Brexit put it at odds with 70 percent of Stoke voters who voted leave Moving beyond brexit Former UKIP leader Farage said a failure to win in an area with such strong support for its core objective would call in to question whether the party was capable of usurping Labour to become Britain's official opposition. ""I don't think anybody for one moment can underplay just how important, just how fundamental that by-election is for the futures of both the Labour Party and indeed of UKIP too,"" Farage told UKIP's Spring conference last week. Across Britain,most Labour voters supported Brexit while most of their MPs opposed it, a gap that the party is still struggling with-as Prime Minister Theresa May prepares-to start the withdrawal process within weeks. Copeland by-election loss Labour lost a separate by-election race on Wednesday night in the northwestern region of Copeland where May's Conservatives scored a landmark victory for the first time in 80 years. Trudy Harrison unseated Labour's Gill Troughton with a 6.7 percent swing 13,748 votes to-11,601. UKIP scored just 7 percent of the vote. ""We've had Labour here for more than 80 years but it has-been very clear talking people in this campaign that Jeremy Corbyn does't represent them,""-Harrison said. Both regions are traditional Labour areas so the specter-of UKIP-illustrated how last year's vote to leave the European Union redrew the British political map, pitching voters-in poorer provincial-regions of the country against a largely pro-EU section of the electorate based in larger cities. aw/rc (AFP, Reuters)", -1479,2017/2/24,http://www.dw.com/en/le-pen-blasts-eu-nato-praises-trump/a-37696454?maca=en-rss-en-all-1573-rdf,"Le Pen blasts EU, NATO, praises Trump","French National Front leader Marine Le Pen has sharply criticised multi-lateral governance and praised the new Trump administration. She also called for a new approach towards Russia, Syria and African nations.","France's far-right presidential front runner Marine Le Pen sounded a full-throated rejection of global trade deals and multilateral governance, defending in soaring terms Thursday the importance of-cultural identity and national independence.- In a keynote foreign policy speech in Paris, Le Pen offered withering criticism of the European Union and NATO and decried what she essentially described as Western meddling in countries like Iraq, Syria, Libya, Russia and Turkey that she claimed have increased instability, broken bilateral promises and betrayed the wishes of the people.- ""I don't want to promote a French or a Western system. I don't want to promote a universal system,"" Le Pen told a packed audience of reporters, diplomats and supporters in an elegant conference hall near the Champs Elysees. ""To the contrary, I want to promote a respect of cultures and peoples."" Le Pen's lofty discourse offered a stark counterpoint to the Front National's more abrasive grassroots image as an anti-immigrant, anti-Muslim, populist party. She described France under her governance as a champion of ""oppressed people, which speaks out for the voiceless and carries something powerful and great."" Le Pen has indicated she would seek a new deal with the EU, or ""Frexit"" She also took no questions and continued calmly on after a bare-chested Femen protester sought to interrupt her remarks, before being carried, still shouting, out of the room. Scandal over EU funds A pair of polls out Thursday confirmed Le Pen remains the favored candidate in a presidential race that has been full of surprises, despite being mired in an ongoing scandal over the alleged misuse of European Union fundsto pay for several Front National staff. Still, almost every survey to date shows her winning the first round of presidential elections in April, but failing to prevail in a May runoff.- For 48-year-old Le Pen, Thursday's speech was the second chance in a week to burnish her foreign policy credentials. European leaders have snubbed her, but she had better luck earlier this week in Lebanon, where she met with the country's president and prime minister. She also stirred controversy by cancelling a meeting with the Lebanese grand mufti after refusing to wear a headscarf.- ""Going to Lebanon showed she could look presidential,"" says Philippe Moreau Defarges, senior fellow at the French Institute of International Relations in Paris. Noting the country was both a former French colony and held an important Christian community - a key them for the National Front - he added, ""it allowed Mrs. Le Pen to look like both a patriot and a Christian."" Old and new themes Le Pen's address touched on some familiar themes, as she railed against the European Union, NATO and free trade. But she also waded into new territory - or at least offered new nuances - as she described forging a new relationship with Africa based on ""frankness, respect and mutual cooperation.""- Like UKIP's Nigel Farage, Le Pen has warm words for US President Donald Trump Yet much of her discourse was thin on specifics.- Le Pen called for environmental security without defining it, and did not address key issues like whether France would stick to the Iran nuclear agreement under her leadership or a two-state solution in the Middle East. ""If you don't pay attention to the details and just listen to the rhetoric, it sounds very French, very classical legalism,"" Manuel Lafont Rapnouil, Paris office head of the European Council of Foreign relations think-tank, describing Le Pens traditional discourse.- ""If you pay a bit more attention, it's a clear departure from the kind of mainstream foreign policy followed by France since the cold war."" Hike in defense spending On defense, Le Pen reiterated her distaste for NATO, instead calling for a policy based on French national- interests and vowing to hike French defense spending to two percent of its GDP - increased to 3 percent by the end of her five-year term.- On the Middle East, she criticised western efforts to strike deals with Syria's moderate opposition - which ultimately ""helped arm the Islamic State."" She said cutting off relations with Damascus had been ""more than an error"" that made France, which has sustained three major terrorist attacks in two years, more vulnerable at home.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XHal ""How many attacks on French soil could relations with Syrian services have avoided?"" Le Pen asked.- 'Change of software' She also renewed calls for forging better relations with Moscow, saying Russia had been 'badly treated' by- both the EU and the United States. France's 2014 cancelation of a sale of Mistral warships to Moscow over the conflict in Ukraine, she said, was a case in point. Not surprisingly, Le Pen had warm words for Donald Trump; she was among the first foreign politicians to hail his November victory, even before it was formally announced. Criticizing his predecessor Barack Obama for a failed foreign policy in the Middle East and elsewhere, Le Pen predicted the current Trump administration would represent ""almost a change of software that will not only be positive for the world, but positive for the United States."" Germany's Merkel targeted But Le Pen spent a significant chunk of her discourse railing against the European Union with German Chancellor Angela Merkel as its biggest mascot.- ""The conception of a failed Europe is carried by Mrs Merkel that defies understanding,"" she said of the German leader. Le Pen said French policies on Syria had put France at greater risk of terrorism If elected, Le Pen vows to renegotiate a new deal with the EU - and failing that, hold a ""Frexit"" referendum on leaving the bloc. Coupled with the Brexit referendum in the UK, the EU is feeling the brunt of the nationalist surge. In nearby Netherlands, far-right politician Geert Wilders also leads the polls ahead of March elections. - ""The question for Germany is do you make this a kind of casus belli or deal with the cards you have?"" asked analyst Lafont Rapnouil. ""Just as Brexit was not what all EU members wanted, you have to get the best out of it for both sides, and not some kind of sterile tit-for-tat."" ""It will be a very difficult and cold relationship,"" Moreau Defarges of IFRI says of diplomatic ties between mainstream European leaders and Le Pen. ""Of course, Mrs. Merkel or Teresa May will receive Mrs Le Pen as head of state. But it will be a big European crisis - an earthquake - if she's elected."" New relationship with Africa Le Pen also said she would overhaul relations with Africa, breaking from France's ""moralizing discourse"" towards its former colonies and instead focus on ""non-interference, which doesn't mean indifference."" - She called for development assistance, particularly focusing on agriculture, and for maintaining French military presence in countries like Mali, Chad and Cameroon which are all fighting militant Islam. Yet that stance raises contradictions, Lafont-Rapnouil points out. France's African operations were realized in cooperation with the United Nations and with EU support - the very multilateral institutions that- Le Pen rejects.- ""How would that work,"" he asks, ""if you have a National Front foreign policy which is not in favor of EU integration on defense - and which is not interested in the UN?"" -", -1480,2017/2/24,http://www.dw.com/en/us-justice-department-reinstates-use-of-private-prisons/a-37696427?maca=en-rss-en-all-1573-rdf,US Justice Department reinstates use of private prisons,"US attorney general Jeff Sessions rescinded a move from the Obama administration, ending an order to phase out private prisons. Sessions said the prisons are necessary fro the correctional system's ""future needs.""","US attorney general Jeff Sessions scaled back a movement from the Obama administration Thursday by allowing private contractors to run federal prisons. Obama made an effort to reduce the number of private prisons in the US in one of his final actions in the White House. Sally Yates, the deputy attorney general at the time, issued a memo to phase out the use of private prisons during the final months of the Obama administration by announcingit would stop renewing contracts with private prison companies running federal prisons in August 2016. Sessions issued a memo Thursday to counter Yates' memo, saying Yates went against a policy of the Federal Bureau of Prisons involve private companies, ""and impaired the bureau's ability to meet the future needs of the federal correctional system."" US President Donald Trump supports private prisons. ""I do think we can do a lot of privatizations and private prisons. It seems to work a lot better,"" Trump told American broadcaster MSNBC in March 2016 during his successful campaign. Most inmates foreign nationals There are 13 privately run prisons with just over 22,000 inmates in the US. That is about 11 percent of the federal prison population. Most of those serving in private prisons are foreign nationals, primarily Mexicans for immigration violations. This is a decrease from 40,000 prisoners in 2014. The Bureau of Prisons began contracts with private companies in 1997, during a time of prison overcrowding. There have been complaints about the conditions of private prisons, especially from immigration and human rights groups. An inspector general audit from August 2016 said prisons owned by private companies saw property damage, injuries and the death of a corrections officer. Prison stocks jump The 13 federal prisons run by private companies are run by three companies: CoreCivic (previously known as Corrections Corporation of America), the GEO Group, and the Management and Training Corporation. Thursday's announcement raised stock prices for two of the listed companies. CoreCivic increased 3.2 percent and GEO Group stock jumped-1-percent. This is not the first time private prison companies' stock prices increased in recent months. The day after Trump's election victory, CoreCivic stock boosted 48.1 percent and GEO Group stock climbed 20.8 percent. kbd/rc (AFP, AP, Reuters) -", -1481,2017/2/24,http://www.aljazeera.com/news/2017/02/israel-visas-biased-hrw-staff-170224052706477.html,Israel says no more visas for 'biased' HRW staff,"Israeli authorities reject Human Rights Watch request for work permit, accusing it of having a 'pro-Palestinian' agenda.","Israeli has refused to issue a visa for a senior Human Rights Watch staff member, accusing the US-based rights group of pro-Palestinian bias and saying it will no longer grant visas to its staff. HRW said on Friday that its Israel and Palestine Director Omar Shakir, a US citizen, had received a rejection letter on February 20, months after an application for the permit was submitted by the group on his behalf. The Israeli foreign ministry said that the organisation was ""not a real human rights group"", with a foreign ministry spokesman calling it ""fundamentally biased"" with a ""hostile agenda"". New York-based HRW, which operates in 90 countries, said it has documented violations considered illegal under international humanitarian law by all sides in the conflict, including the Palestinian Authority, and Hamas, the Palestinian group that governs the Gaza Strip. The Israeli interior ministry cited a recommendation received by the foreign ministry, which said that HRW's ""public activities and reports have engaged in politics in the service of Palestinian propaganda, while falsely raising the banner of 'human rights'"". READ MORE: UN decries Israel's West Bank demolition order In a statement, HRW said the decision came as authorities sought ""to limit the space for local and international human rights groups to operate in Israel and the Occupied Palestinian Territories"". Emmanuel Nahshon, a foreign ministry spokesman, told the AFP news agency that the group was not banned, and any Israeli and Palestinian employees would still be allowed to operate in Israel, but said: ""Why should we give working visas to people whose only purpose is to besmirch us and to attack us?"" Speaking to local media, Nahshon said-Israel was ""fed up with them [HRW] coming here every time and taking advantage of their stay here. They don't do anything but look for an anti-Israel agenda."" Iain Levine, HRW's deputy executive director of program, said: ""This decision and the spurious rationale should worry anyone concerned about Israel's commitment to basic democratic values."" ""It is disappointing that the Israeli government seems unable or unwilling to distinguish between justified criticisms of its actions and hostile political propaganda."" In response to the decision to refuse his visa, Shakir said: ""We are genuinely shocked. We work in over 90 countries across the world. Many governments don't like our well-researched findings but their response is not to stifle the messenger.""- READ MORE: Trump stand on settlement encourages Israel's land grab According to Shakir, Israeli authorities said they would also refuse visas to other non-Israeli or Palestininan HRW staff. Last year, HRW issued a report, ""Occupation Inc."", in which it accused foreign and Israeli firms operating in illegal Israeli settlements in the occupied West Bank of contributing to human rights abuses. In July 2016, Israel's parliament, the Knesset,-passed a law targeting human rights groups and NGOs that receive foreign funding. The law, applicable to about 25 organisations, compels them to declare funds in official reports, and according to HRW, imposes ""onerous reporting requirements that burden their advocacy"". It is not the first time the organisation has faced criticism and resistance from governments. ""We have little relations with governments in North Korea, Sudan, Uzbekistan, Cuba and Venezuela where there is zero appetite for human rights engagement,"" Shakir said. ""With this decision, Israel is joining the list."" Source:-News agencies", -1482,2017/2/24,http://www.aljazeera.com/news/2017/02/syria-talks-geneva-170223213801586.html,Syria talks hit snag before opening ceremony in Geneva,Negotiations off to rocky start after opposition threatens to skip opening ceremony over disagreements. Hopes for a 'work plan' Truce violations,"Geneva, Switzerland - UN-led negotiations on the war in Syria got off to a delayed start following disputes over the participation of the Syrian opposition delegation. Opposition representatives nearly missed the opening ceremony of the talks on Thursday after threatening not to attend over disagreements on the make-up and format of the session. But in a last-minute turnaround, they arrived late and as one large delegation. UN envoy Staffan de Mistura formally began the fourth round of talks in Geneva in an opening session that brought the opposition and government delegations face-to-face at UN headquarters with expectations of a breakthrough low. ""I ask you to work together. I know it's not going to be easy to end this horrible conflict and lay the foundation for a country at peace with itself, sovereign and unified,"" de Mistura told the two delegations, who sat on opposite sides of the stage. ""It is your opportunity and solemn responsibility ""?not to condemn future generations of Syrian children to long years of bitter and bloody conflict."" The talks are part of the latest political initiative to bring an end to a six-year war that has killed nearly half a million people, wounded more than a million, and forced more than 12 million - half of the country's prewar population - from their homes. In a news conference shortly after his opening speech, de Mistura said he would meet with each side on Friday in the hopes of setting a ""work plan"" for the remainder of the negotiations. At the last Syria talks in Geneva 10 months ago, de Mistura had to shuttle between the government and opposition delegations in different rooms. The opening ceremony on Thursday was delayed by several hours after disputes between the main opposition bloc - the High Negotiations Committee (HNC)-- and de Mistura over the structure of the opposition delegation. The bloated size of the delegation was due partly to de Mistura's inclusion of two other groups - the Moscow and the Cairo platforms - in the talks. The envoy invited the two pro-Russia, government-tolerated opposition groups to sit separately from the HNC, an umbrella group of armed and political factions. ""You must have seen that there was, in particular, a very heavy [presence] on the side of the opposition in the room ""?they were including also the armed groups ""?because, as you know, peace is made between those who fight each other,"" said de Mistura. The idea of the opposition sitting at different tables riled the Saudi Arabia-based HNC, leading to hours of last-minute diplomacy ahead of the opening ceremony as diplomats scrambled to find a solution.- ""Today, the real opposition that represents the Syrian people is the HNC. This delegation and the HNC, extends its hand to any national partner that adopts the will of the Syrian people,"" Naser al-Hariri, head of the HNC delegation, told reporters ahead of the opening session. RELATED: Syria's Geneva talks - 'Expectations pretty low' ""We hope that the Moscow and Cairo platforms will prioritise national interest and the interests of the Syrian people,"" Hariri said. ""The HNC was in contact with the Cairo and Moscow platforms in previous meetings. There are ongoing efforts to join these platforms within the opposition delegation so that we are represented as one delegation."" De Mistura said there had been ""serious progress"" made in the hours leading up to the opening ceremony in ""forming a united political opposition,"" but that there was still much work to be done. The talks in Geneva came about after Russia, a key ally of Syrian President Bashar al-Assad, and Turkey, a backer of the Syrian opposition, managed to forge a fragile nationwide ceasefire in place since December 30. The Syrian government and the opposition agreed to participate in negotiations despite daily violations of the truce. Much has changed on the ground in Syria since de Mistura suspended the last round of talks in Geneva last April after a previous ceasefire collapsed and heavy fighting resumed. Russia's September 2015 military intervention drastically changed the balance of power, propping up Assad's embattled forces and helping them to retake key parts of the country. With the help of Russian jets and Iranian-backed fighters, Syrian government forces dealt the rebels their biggest defeat in the conflict in December by retaking Aleppo, Syria's commercial capital before the war and a rebel stronghold since 2012. The Russian-backed push on the battlefield has been coupled with a similar takeover by Moscow in the diplomatic arena - a move helped by confusion surrounding US President Donald Trump's Syria policy. While the Geneva talks are seen as the most serious diplomatic effort in months, disputes over the agenda and long-standing disagreements between the opposition and the government on the future of the country have cast doubts on whether any progress will be achieved. A day before the talks began, de Mistura said he was not expecting any major breakthroughs, but added he was determined to maintain ""proactive momentum"" on UN Security Council Resolution 2254, a document that provides the backbone of the talks. ""2254 lays out a clear agenda, including specific language on governance, constitutions, elections, and even for the way negotiations should be timed,"" said de Mistura. ""That is what must now be discussed."" Though matters on the ground have shifted, the starkly different political objectives of the warring sides remain unchanged from previous rounds of negotiations. For the Syrian opposition, a political transition that ensures the removal of Assad remains the only option for peace - an issue that the government in Damascus has consistently refused to consider. De Mistura said the biggest challenge ahead of the delegates was a ""lack of trust"" as he appealed to the two sides to use the talks as an opportunity for peace.- ""We do know what will happen if we fail once again - more deaths, more suffering, more terrorism, more refugees,"" he said. Source:-Al Jazeera News", -1483,2017/2/24,http://www.aljazeera.com/news/2017/02/car-bomber-kills-29-syria-al-bab-170224080522830.html,Car bomber kills 29 in Syria's al-Bab,Suicide bomber targets military offices outside key city after it was captured by Turkey-backed rebels a day earlier.,"A car bomb in a village near al-Bab in Syria struck Syrian rebels fighting Islamic State of Iraq and the Levant (ISIL), killing at least 29 people and wounding dozens more, a war monitor said.- The car bomb early Friday struck military offices in Sousian, which is behind the rebel lines about eight km (five miles) northwest of al-Bab, the Syrian Observatory for Human Rights, a Britain-based war monitor, said. The Turkey-backed rebels on Thursday drove ISIL from al-Bab, the group's last significant stronghold in northwest Syria, along with two smaller neighbouring towns of Qabasin and al-Bezah after weeks of street fighting.", -1484,2017/2/24,http://www.aljazeera.com/indepth/features/2017/02/meet-kims-north-korea-family-170222170004340.html,Meet the Kims: Who's who in North Korea's first family Michael Madden,"With the February 13 killing of Kim Jong-nam, here is an overview of the Kim genealogy and its most important members. By The favoured-bloodline of the revolutionary family- A once powerful lady The other Kims","Officially, in-the Democratic People's Republic of Korea, or DPRK, there are four important members of the Kim family: North Korean founding father and president Kim Il-sung, his first wife Kim Jong-suk, who died in 1949, their son and late leader Kim Jong-il, and his son and current leader Kim Jong-un. - The-February 13-killing-of Kim Jong-nam highlights a series of complicated family connections, common-law wives, in-laws, extended family members and personal and political rivalries. The well-appointed and opulent houses in North Korea's elite residential subdivisions can be loud and crowded places, inhabited by squabbling family members competing for attention, money, power and prestige. A purged and-executed uncle-and the-murder-of a rebellious half-brother are just a very jagged tip of an immense iceberg. Kim Jong-un, 33.-The current supreme leader's uncanny likeness to his grandfather dazzled the North Korean old guard elites. It is not, as some have alleged, the result of plastic surgery.- Having some of his father's personality traits, particularly a hair-trigger temper and Manichean worldview, Jong-un established himself early as ""a darling heart boy"" of North Korea's senior general who supervised his education and grooming.- Unlike his brooding more introverted father, Jong-un also inherited some of his mother's more extroverted and gregarious traits. Whereas his father kept-many of his public interactions formal and stiff, Jong-un is more than happy to glad-hand and hug the North Korean citizens he meets.- Jong-un's personality seems at times to be a toxic mix. It is very useful to keep your underlings guessing when running the country's internal affairs, but when those personality treats-leak-outside in the form of the-very public purging and execution of an uncle, or the alleged murder of a half-brother, observers in the international community can be forgiven for feeling uneasy. READ MORE: Nerve agent used to kill Kim Jong-nam: police Kim Sul-song, 42.-Of Jong-il's five common-law wives, only one was recognised as legitimate by his father. Kim Yong-suk was considered the ""official"" wife, and was the result of matchmaking by Il-sung. The couple had two daughters, one of whom was Kim Sul-song - the favourite and most favoured of the late leader's seven children.- A polyglot and intellectual, Sul-song worked closely with her father and grandfather. For a number of years she managed Jong-il's public schedule, travel itineraries and security arrangements. The late leader-once proudly boasted of his daughter's political skills to a foreign ambassador Since the late 2000s she has become a hidden, but significant power player in palace politics and owns several large trading corporations. The nature of the relationship between Sul-song and Jong-un is not fully known, but she is a critical player in the regime. If something should happen to Jong-un, she is a likely candidate to succeed him. Kim Yo-jong, 29.-Jong-il's youngest child is one of Jong-un's closest aides. Like her older half-sister, Sul-song, Yo-jong was a favourite child and expressed an early interest in North Korean politics. Yo-jong's official position is as a deputy director in the regime's state media and cultural affairs, but she is also responsible for managing her brother's schedule, meetings and bodyguards. Yo-jong will be a power player in the DPRK for a long time to come as her career is just getting started. READ MORE: Malaysia seeks Interpol alert over Kim airport murder Kim Jong-nam, 45; deceased.-Jong-nam was Jong-il's eldest son, the result of his relationship with the South Korean-born actress Song Hye-rim. Jong-nam grew up mainly with his mother's intellectual family in secret, while his father consolidated his power base. He lived outside North Korea, on and off for 10 years, going to school in Switzerland and Russia. When Jong-nam returned to the DPRK, he was listless, and despised being kept behind the palace walls. He also started expressing his qualms about North Korea's political system to his father. He would eventually start working in the regime - holding positions in the national police and helping to set up the country's IT.- There have always been mixed signals as to whether Jong-nam would actually be his father's successor. In any event, Jong-il deemed him more useful to his interests if he operated outside the DPRK as an expatriate. Jong-nam managed some of the Kim family's accounts and performed a number of sensitive tasks as one of his father's personal emissaries. Jong-nam was fairly outspoken in his opposition to a third generation hereditary succession.- In his will, Jong-il instructed that Jong-nam not be targeted for assassination by-his half-brother's supporters.- Kim Jong-chol, 35. The eldest son of Jong-il's marriage to his beloved fourth wife Ko Yong-hui has very little interest in family or regime politics. Jong-chol has always had the same interests as his father, specifically music,-films - he mostly likes anime - and writing.- He holds a nominal position as a contributing writer to the regime's official publications. But Jong-chol's passion and interest is electric guitars and American blues and rock music with a particular and well-documented affection for Eric Clapton. Jong-chol, like other members of the family, has been the subject of misleading information. It is not that his father explicitly said that Jong-chol was ""girlish"",-but that he did not have the personality suited for North Korean politics. WATCH - Reality Check: What do we know about North Korea? Kim Kyong-hui, 70.-The daughter of Il-sung's first marriage, Madame Kim was Jong-il's-youngest sister and his-closest and most trusted relative, confidante and aide.- She was married to Jang Song-thaek, the uncle notoriously executed in 2013, but had been estranged from him since the 1980s. She also had close ties to the murdered Jong-nam. Separated from her husband, Madame Kim was a powerful force in DPRK politics, entrusted with sensitive regime business and the only person with direct personal access to her brother. She was present when Jong-il passed away in 2011 and was the executor of his will.-- She helped shepherd and support her nephew as he settled into the supreme leader's role, even if she had personal misgivings about his preparedness to assume that position. A combination of health setbacks and disillusionment has rendered her politically inactive. She hasn't been seen in public since 2013. Kim Yong-ju, 95. He is the youngest brother of Il-sung.- For many years during the 1960s and 1970s he led the powerful Organisation Guidance Department where he supervised the work of his nephew, Jong-il. Some thought, with little evidence, that Yong-ju would succeed his older brother on an interim basis.- Chronic stress-related health problems and outmanoeuvring by Jong Il sidelined Yong-ju who would disappear from public view until the early 1990s. He is one of North Korea's honorary vice presidents, retains a small patronage network and appears occasionally in the country's state media. Kim Pyong-il, 62.-During the 1970s, Jong-il was involved in a legitimate power struggle to become his father's hereditary successor.-His father had a second wife with three children of her own.- The eldest son, Pyong-il, studied at a military academy, had more personal popularity than his older half brother and worked as one of his father's bodyguards. What is more, his mother, Kim Sung-ae, was the country's first lady and installed her own family members into the power structure to provide the support and push the succession claim for her son. It didn't work. Jong-il and his supporters ensured his dominance of the DPRK political culture. Pyong-il would be effectively exiled from the country to a series of diplomatic posts starting in the 1980s. He is currently the North Korean ambassador in the Czech Republic. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy. Source:-Al Jazeera", -1485,2017/2/24,http://www.aljazeera.com/indepth/features/2017/02/palestinians-decry-west-bank-industrial-zone-expansion-170206090749576.html,Palestinians decry West Bank industrial zone expansion Ylenia Gostoli,"For years, Israel has increasingly taken control of Palestinian lands in Area C to build out its industrial zones. By","Salfit, occupied West Bank --Standing by the side of a highway near the main gates to Ariel West, an Israeli industrial zone in the heart of the West Bank district of Salfit, Jamal Omar Fazaa makes a sweeping gesture with his hand. ""This is my family's land, exactly 186 dunums [18 hectares],"" he tells Al Jazeera. An old olive tree stands just a few metres from the Israeli bulldozers levelling the ground here. The crooked necks of yellow cranes dot the landscape along this stretch of Highway 5, an Israeli road that cuts through two adjacent industrial zones: Barkan, which houses more than 130 factories and companies, and the smaller Ariel West, which houses about 26. Israeli media outlets recently reported that 60 new companies have registered to relocate to the area, despite the threat of retaliation from the boycott, divestment and sanctions (BDS) movement. Dunum by dunum, Fazaa's land has been stolen since the 1980s. The 53-year-old teacher initially fought back, but today, he no longer thinks it is-worth it. One of his sons works in a factory in the area and will have to renew his work permit, a system Palestinians say is-used to suppress any ""resistance"" activity, such as claiming the right to one's land. About half of the town's youth work in the industrial areas, where factories are mostly Israeli-owned. There are four Israeli industrial zones and a quarry in the Salfit governorate. Together with the 24 settlements and outposts that dot its hilltops, they form a belt that locals call ""the finger"" for the way it protrudes from the Green Line into the occupied West Bank, cutting a prospective Palestinian state in two. An estimated 72,000 Palestinians live in the district's 18 towns and villages. ""When they started building this road in 2000, we came to protest,"" Fazaa says, pointing at the main road into the Ariel West industrial zone. The protest cost him and some members of his family a few nights in jail and a 9,000-shekel ($2,400) fine, paid by the Palestinian Authority on their behalf. The family was never notified of the land confiscation, he says: ""They usually bring the bulldozers, and if the owner comes, they'll tell him about it."" READ MORE: Israeli settlement law 'violates rights and dignity' Barkan and Ariel West are built on land confiscated from the nearby villages of Haris, Sarta and Bruqin. Fazaa has documents issued by Jordan before 1967, along with faded maps and papers that appear to list at least some of his property. None has been enough to claim his right to the land in question, which would have required hiring costly engineers to survey the land and then fighting for it in court. The Israeli government has used various means to take control of West Bank lands over the years, including declaring military firing zones or designating areas as natural parks. It has also declared certain areas as state land through an interpretation of an 1858 Ottoman land law stipulating that a piece of land not cultivated for several years passes into the hands of the ""sultan"". Declaring state land is only possible in cases where the land is not officially registered as private property, but land registration in the occupied West Bank has been historically low, and the burden of proving ownership falls on the landowner. The Israeli government has allocated less than 10 percent of declared state lands for Palestinian use, while prohibiting Palestinian construction and development in about 40 percent of the occupied West Bank. Meanwhile, the Israeli Knesset-recently-passed a law-allowing the state to retroactively legalise settlement outposts built on private Palestinian land. While international law considers all Israeli settlements in the West Bank illegal, unauthorised outposts are illegal under Israeli law as well. In late 2016, the Israeli government deposited new master plans for the development of both the Barkan and Ariel West industrial areas. According to the Palestinian Land Research Centre, these master plans include 138 dunums confiscated from the Palestinian village of Haris and an additional 18 from Bruqin. INTERACTIVE: Building the occupation At least 30 Palestinian structures in Area C, where the industrial areas are built and which is under full Israeli control, have received stop-work orders this year for lacking building permits - a sharp rise from last year's total of 50. This rise is consistent with the sharp increase in demolitions elsewhere in the West Bank. On its website, Ariel West lures businesses with ""the highest level of government benefits in the form of industrial grants and tax incentives"", owing to its location in National Priority Development Area A. Much of what is produced here is destined for export. The Barkan industrial park exports up to 80 percent of its products, according to its website. Al Jazeera approached the Shomron regional council, which administers this area of the West Bank, for further information about the ongoing expansion and the companies slated to relocate to the area, but did not receive a response. Israeli leaders have often defended settlement businesses on the basis that they provide work to Palestinians. But while wages in Israeli industrial areas may be higher than in Palestinian areas, workers are exposed to exploitative conditions and a lack of oversight on labour and environmental regulations, according to a report published last year by Human Rights Watch. At least two Israeli and international companies moved their operations out of the Barkan industrial area in recent years amid pressure from the BDS movement, but the cheaper rent and labour costs continue to make the West Bank an attractive locale for business owners - and an uncomfortable option for some Palestinian workers. ""What choice do I have?"" said Said, a former worker in a door factory in Bruqin, who spoke to Al Jazeera under a pseudonym. ""If I don't work, someone else will."" Source:-Al Jazeera", -1486,2017/2/24,http://www.aljazeera.com/indepth/features/2017/02/long-road-acceptance-irish-travellers-170219092606935.html,The long road towards acceptance for Irish Travellers Ruairi Casey,The Irish Traveller community is fighting for official recognition of its ethnic identity and for a way of life. By The search for recognition A history of deprivation and discrimination A culture denied Children burned to death,"Avila Park, Dublin, Ireland --In a wooden shed in his back garden, James Collins sits on a low stool hammering out the final touches on a billy can. At 68, he is one of only two remaining traveller tinsmiths in Ireland. Above the clutter of well-worn tools and scrap sheet metal hang a dozen or so other cans. Nowadays, he says, there's precious little demand for his trade, and he largely continues it as a hobby, occasionally selling some of his work at vintage craft fairs. Since the introduction of plastic homeware in the 1960s and 1970s, tinsmithing - traditionally dominated by the historically nomadic community known as Travellers - has effectively died out. Even the block tin, James originally used, is no longer available. ""It's more difficult to work with,"" he says, holding up a gleaming aluminium can. ""You can't make what you want to make out of it because you have to use solder and that won't take solder."" READ MORE: Ballinasloe Horse Fair - An ancient Irish tradition James was raised on the road in the Irish midlands, a traditional upbringing unknown to most Travellers today. ""I was bred, born and reared on the road,"" he says, ""but the young lads today wasn't. They all grew up in houses and went to school and all this craic. I never got any education, never went to school in my life."" Until his late 20s, when he settled in Avila Park, a housing estate for Travellers on the outskirts of Dublin, the Irish capital, James plied his trade for farmers, smithing and repairing buckets. ""It never goes out of your mind; you're always thinking, thinking the whole time about the road,"" he says. In comparison, younger generations have little interest in traditional crafts or the travelling lifestyle - James' children and grandchildren don't know how to harness a horse, for example. And anti-trespass legislation introduced in the early 2000s, which was used to disperse encampments by the side of roads or on council-owned land, made a nomadic existence increasingly difficult. Yet, even as the distinct traditions of Irish Travellers seem to fade into the past, the battle for official recognition of their identity continues. Unlike the United Nations and the United Kingdom, Ireland does not recognise Travellers as a separate ethnicity from the non-Traveller community. For decades, human rights organisations and Traveller advocacy groups have been seeking this recognition, but to little avail. However, on January 26, a parliamentary committee established to investigate the issue stated unequivocally that ""Travellers are, de facto, a separate ethnic group"". ""This is not a gift to be bestowed upon them, but a fact the state ought to formally acknowledge,"" it further said. The committee report urged the Taoiseach, Ireland's prime minister, or the minister for justice to give a statement to the Dail, the Irish parliament, acknowledging this at the earliest opportunity. This development was welcomed by members of the Travelling community, although some remain cautious in their optimism. It would not be the first time an Irish government has reneged on such commitments - a 2014 parliamentary report made the same recommendation, which was never acted upon. An examination of the almost 30,000 Travellers in the Republic of Ireland shows a staggering level of deprivation completely at odds with the non-Traveller community. Another 4,000 to 5,000 Travellers live in Northern Ireland, in a similar situation. Around half of Travellers have no secondary education and only 1 percent have attended university, according to Pavee Point, a group fighting for the rights of Travellers. WATCH: Irish travellers facing discrimination Some 84 percent of Travellers are unemployed, while suicide rates are almost seven times higher than among settled people.-A 2010 study found that life expectancy was 15 years lower among men and 11 years lower among women when compared with their settled counterparts. Discrimination against Travellers remains endemic at social and institutional levels. Being denied entry to businesses is a common occurrence and many try to hide their background when applying for jobs, fearing that potential employers will not hire them. ""Symbolically it would have a profound impact on our collective sense of identity, self-esteem and confidence as a people,"" says Martin Collins, the co-director of Pavee Point, on the recognition of Traveller ethnicity. ""Some travellers have internalised [racism] and end up believing that they are of no value, they are of no worth ... So that's the impact. That's the outcome of both racism and your identity being denied."" It was a 1963 government report, the Commission on Itinerancy, that has set the tone for the state's attitude towards Travellers ever since, says Sinn Fein Senator Padraig MacLochlainn, the first person from a Traveller background to be elected to the Irish parliament. The Committee on Itinerancy's terms of reference defined Travellers as a ""problem"", whose social ills were ""inherent in their way of life,"" and outlined the goal of ""promot[ing] their absorption into the general community"". No Travellers were on the committee, nor were they consulted for its report. ""Our people and our state denied their history and decided that they were criminals and they needed to be immersed in with the rest of us,"" says MacLochlainn. This refusal to acknowledge the community's rich cultural history - notably their own language, Cant, and significant contributions to Irish traditional music - persists today. Traveller culture is frequently portrayed in the media as separate and distinct, MacLochlainn says, but almost always in negative terms, in exploitation TV shows-such as My Big Fat Gypsy Wedding and exposes on Traveller criminality. ""You clearly accept them as a distinct group - why are you making these programmes if you don't? If they're a distinct group, could you do it now in positive terms? ""When it comes to negative characterisations, the media, the establishment ... in Ireland are more than happy for them to be characterised in negative terms,"" the senator says. Behind James' shed in Avila Park, traditional and modern Traveller accommodation sit side by side. A wooden barreltop caravan, washed green with blue and red embellishments, sits between two mobile home units, where his younger relatives stay. Only one has both electricity and running water, which were installed by the family. Power is provided from the house by a yellow cable, wound loosely around plastic drainpipes and holes in its pebbledash exterior. An early morning fire in a nearby prefabricated unit just a few weeks before offered a bleak reminder of the danger these makeshift electrical fixtures pose. A neighbour raised the alarm and the young couple inside escaped before their home was reduced to a charred husk. This near disaster has reminded some people of a fire in the south Dublin suburb of Carrickmines more than a year ago, which continues to cast a shadow over relations between the Traveller and the settled communities. In the early hours of October 10, 2015, a fire ripped through a halting site killing 10 people, including five children, from two families - the Lynch and Gilbert family and the Connors. The youngest victim was five months old. It was one of the deadliest fires in the history of the Republic of Ireland. Social workers had raised concerns about the site's substandard prefabricated units to authorities in the months before the fire, but no action was taken. The blaze and its aftermath would, for many, become an example of the pervasive discrimination Travellers face in Ireland today. Three days after the fire, some locals blockaded land marked for temporary accommodation for the surviving members of the Connors family, preventing construction vehicles from entering. Though the obstruction was condemned by then Environment Minister Alan Kelly and several Traveller groups, the protesters were successful. OPINION: Catholic Ireland's saints and sinners On October 21, one day before the last victims were buried, the county council announced that the Connors family would instead be resettled on a reclaimed dump on council land in a nearby suburb. At the time of writing, the family remain in that location. Alongside many expressions of grief on social media after the fire were comments highlighting the discrimination towards travellers in Irish society. On one popular news site, a comment simply wishing that the victims rest in peace received hundreds of thumbs down votes from other readers. ""Hundreds of Irish people gave a thumbs down to an expression of sympathy for children who were burned to death,"" says MacLochlainn. ""That's terrifying; that's absolutely terrifying."" In response to the tragedy, local authorities across the country conducted fire safety audits at Traveller accommodation sites. ""All we got was a few fire alarms, a few fire blankets and some carbon monoxide alarms,"" says Collins, of Pavee Point. ""That's like re-arranging the chairs on the Titanic. That's totally inadequate. These sites need to be completely redeveloped [and] refurbished, because the sites are just inherently dangerous. Getting a few fire alarms and a few hoses will not rectify the situation."" For Collins, the long overdue recognition of Traveller ethnicity is an important milestone, but as the Carrickmines example shows, a commitment to materially improving the lives of Travellers is also necessary if they are to be truly equal in their own country. Source:-Al Jazeera News", -1487,2017/2/24,http://www.aljazeera.com/indepth/features/2017/02/rescuing-hiv-orphans-india-170206072428936.html,Rescuing HIV orphans in India Savera Z John,"In the absence of centres for Aids patients, Pastor Reji Thomas opened his home to orphaned boys infected with HIV. By Abandoning HIV children 'Calm and committed' Changing attitudes","Navi Mumbai, India - Reji Thomas has adopted 19 HIV-positive boys. His home echoes with the laughter of these children. His wife, Minnie, and two biological children, Justin, 19, and Jenny, 17, are part of this large family where love knows no bounds and life is simple: every day is cherished and thanked for. Thomas recounted the day in 2008 when his life changed after meeting a 12-year-old orphan at the DY Patil Hospital. ""She was a little Nepali girl. She was a bag of bones and there was no flesh in her emaciated body. She had Aids and was dying,"" Thomas told Al Jazeera. The girl looked him in the eyes and begged for a bowl of noodles. Thomas promised to bring it for her. The next day he returned with food - only to learn she died during the night. The incident touched him deeply and helped him find his life's mission: to help HIV-positive children in India. Thomas' journey started in 1989, when he arrived in Mumbai from Kerala. He worked at various odd jobs for a few years before quitting to take up theological studies. He became a pastor and got involved in social service. He helped street children and took sick people living on the streets to hospital. Thomas ensured they were treated with dignity and received proper care. In 2009, he received a desperate call from an Aids centre for women requesting him to find homes for four HIV-positive children, as it lacked sufficient space and resources. Since there was no children's home willing to take them in, Thomas planned to start a centre with a caretaker in charge. But after learning of the children's disease, no one came forward to help run it. It was then he decided to bring the children - three boys and a girl - into his home. That day, his family as he knew it changed forever. READ MORE:-Saving India's mothers through mobile phones According to the National Aids Control Organisation's India HIV Estimations 2015 Technical Report, 138,456 children under 15 live with HIV. Thomas said HIV-positive children are one of the most vulnerable groups of abandoned kids. Many are orphans who have been thrown out of their homes by family members who fear infection and social stigma. On the streets, they are exploited and abused, have no access to healthcare, and are discriminated against and stigmatised. As his family started growing with more children coming home, Thomas took a tough decision to only care for boys between the ages of 5-16 years. His wife, Minnie, is a pillar of strength and constant support. A nurse, she monitors the health of the children and ensures their antiretroviral therapy drugs are administered regularly. She also cooks their meals and is their emotional crutch. The children call her ""mummy"". One of the older children is Suraj, 16. ""Papa Reji is our papa. He cares for us and we love him. He never pushes us away."" Thomas' rented house is modest and neat. Foam mattresses for sleeping double as seating arrangements during the day. When Thomas took the first group of children, he had no money and furniture. The family was sleeping on mats on the floor. One of the children, who had tuberculosis, required a low bed. Friends and visitors began making contributions with mattresses, cots, chairs, and food. While Thomas manages the home through these contributions and donations, he wants to move to a bigger dwelling to give the children more space. Joy, 5, came into their lives when he was 18-months old. His mother, a sex worker, had abandoned him on the street. He was underweight, listless, and withdrawn. No one knew his name. Thomas brought him home and named him Joy. He was nurtured back to health and has blossomed in the loving environment. Ask the active boy his name and with a big smile he replies, ""Joy Reji Thomas!"" He gets anxious, however, if someone playfully suggests there is no food in the house. Having lived on the streets, with only hunger to remember it by, he has to be reassured he will always get a meal. READ MORE: Vidhya Das - Fighting for poor women in India Dr Divvya Mithale, an HIV specialist, has known Thomas from the time he brought the first children home. She checks on their development every month, monitors their treatment and nutritional intake, and prescribes supplements and vitamins if required. ""Pastor Reji is such a compassionate man. He is always calm and so committed to the children. He and his wife ensure the children get the right treatment,"" Mithale told Al Jazeera. ""It is a humungous task looking after these children. Other than the health issues, some have emotional and behavioural issues. If a child must consult a psychiatrist, Pastor makes sure that the child is taken to the right doctor. He never, never gives up on them."" Other than the monthly check-up, the children are tested every three months. X-rays, the child's viral load, CD4 count tests, and other blood tests are done routinely. Every child has an individualised therapy. ART drugs are provided free of cost by the government of India at specialised centres. Trophies are proudly displayed in their home that the children have won in different competitions, such as karate and art. All the children have been made aware of their HIV-positive status and taught to take precautions. As the antiretroviral drugs are strong, some children suffer side-effects, which include delayed physical and mental development, loss of hearing and vision, and blackened teeth. ""This is their home,"" said Thomas. ""There are no rules, like in a hostel or a care home. When I go out, I take one or two of them with me as it is difficult to take all of them. On the way, they would want to eat vada pav [a popular vegetarian dish]. I buy it for them. They are happy and it makes me happy, too. When I go to Kerala, I take some of them along. They argue on whose turn it is to go next."" READ MORE: Cradles in Rajasthan for India's unwanted babies He also takes the children for birthday parties and social visits in the community. Before, there was fear and social rejection. Now, there is greater acceptance of the children. This unconventional family is changing perceptions and attitudes towards HIV-positive children in the larger community. Asked about the work he does Thomas replied, ""I am just an ordinary father taking care of his children. I want what's best for them."" He said his strength comes from his deep and unshaken faith in God. ""For me, it is a blessing to do this work. I want to help more and more children."" He said he prays that no child should die in his home. Unfortunately, however, he lost one last year to drug-resistant tuberculosis. Thomas finds it difficult to talk about and takes the conversation forward, focussing on the positives. In India, an estimated 74,220 children require antiretroviral drugs. Though there has been a decline in the Aids epidemic in recent years, Thomas realises there is a huge need to help affected children get the right treatment. He has established the BLESS Foundation to reach HIV-affected children and give them a home. ""My papa treats all of us the same way,"" said his daughter Jenny. ""Ask him and he says he has 21 children. I have so many younger brothers. I don't think I can do the work papa is doing. He is very special.""- Source:-Al Jazeera News", -1488,2017/2/24,http://www.aljazeera.com/news/2017/02/leila-de-lima-arrested-philippines-170224003808389.html,Senator Leila de Lima arrested in the Philippines,Senator and vocal critic of President Duterte faces drug trafficking charges related to her term as a justice secretary. Trumped up charges,"A Philippines senator and staunch critic of President Rodrigo Duterte's war on drugs has been arrested by law enforcement agents after charges were filed in court alleging she received money from drug dealers inside the country's prisons. Senator Leila de Lima is accused of orchestrating a drug trafficking ring when she was justice secretary during the 2010-2015-administration of Benigno Aquino. ""The truth will come out and I will achieve justice. I am innocent,"" she told reporters shortly before law enforcers escorted her away from her office on Friday. De Lima, her former driver and bodyguard and a former national prison official were ordered to be arrested by a local court on Thursday after a judge found merit in criminal charges filed by the Department of Justice last week. De Lima has denied the charges, calling herself a victim of political persecution and saying she has long prepared herself to be the first ""political prisoner"" under the Duterte administration. ""While the issuance of the warrant of arrest is questionable, I do not have any plans to evade it,"" she said, calling the order premature as the court has yet to hear the response from her lawyers.- READ MORE: Duterte accused of paying police to kill She slept in her Senate office overnight then gave herself up to armed officers in flak jackets who put her in a van and drove into morning rush hour traffic apparently towards police headquarters. Duterte, 71, won a presidential election last year after promising during the campaign to eradicate drugs in society-by killing tens of thousands of people. Since his inauguration on June 30, an anti-drug drive has seen more than 7,000 people killed over suspected drug links - with about 60 percent of the deaths carried out by unknown assassins.- De Lima has previously called for foreign intervention to put an end to the ""state-inspired"" extrajudicial murders, which she said have been instigated by Duterte since his election to power. De Lima also led a series of Senate investigations over allegations that police officers were involved in the killings, and that hired killers were operating under orders from police.- Aries Aruguay, associate professor of political science at the University of the Philippines-Diliman, told Al Jazeera the senator will use her detention to highlight the president's controversial policies. -- ""Senator de Lima has been taunting the Duterte administration to arrest her for months. She boldly says she is its fiercest critic""?What is happening right now is she is really using this as her platform for her own politics,"" Aurguay said. De Lima's supporters insist she is innocent and the charges are trumped up to silence one of Duterte's most prominent critics. In a statement to Al Jazeera, Senator Paolo Aquino condemned the ""political persecution"" of his fellow opposition Senate member.- ""This arrest is purely political vendetta and has no place in justice system that upholds the rule of law. This is condemnable.""��?""We reiterate that an arrest based on trumped-up charges is illegal,"" he said citing the ""haste"" in de Lima's arrest. De Lima previously claimed she was targeted because of her criticism of Duterte's drug war policy. During her time as head of the country's human rights body, de Lima also led the investigation into the alleged extrajudicial killings of an estimated 1,000 drug suspects in Davao, while Duterte was mayor of the city. When Duterte won as president in 2016, his feud with de Lima continued. At one point he called on her to ""hang herself"", after he ordered prosecutors to investigate the senator's alleged links to the drug syndicate.- This week, de Lima branded the president a ""sociopathic serial killer"" after new allegations surfaced accusing Duterte of ordering drug killings in Davao. Source:-Al Jazeera and news agencies", -1489,2017/2/24,http://www.aljazeera.com/news/2017/02/44bn-needed-prevent-catastrophe-famine-170222210632541.html,UN: $4.4bn needed to prevent 'catastrophe' of famine,"UN chief Antonio Guterres says more than 20 million people face starvation in South Sudan, Nigeria, Somalia and Yemen.","The United Nations needs $4.4bn by the end of next month to prevent ""a catastrophe"" of hunger and famine in South Sudan, Nigeria, Somalia and Yemen, according to-Secretary-General Antonio Guterres. More than 20 million people face starvation in the four countries and action is needed now to avert a humanitarian disaster, Guterres told a news conference at UN headquarters on Wednesday. ""We need $4.4 billion by the end of March to avert a catastrophe,"" he said. So far, the UN has raised just $90m. South Sudan on Monday declared a famine in northern Unity State while Fews Net, the famine early warning system, has said that some remote areas of northeast Nigeria are already affected by starvation since late last year. The four famine alerts are unprecedented in recent decades. There has only been one famine since 2000, in Somalia. At least 260,000 people died in that disaster - half of them children under the age of five, according to the UN World Food Programme. The UN children's agency UNICEF this week said almost 1.4 million children acutely malnourished in Nigeria, Somalia, South Sudan and Yemen could die from famine in the coming months. READ MORE: UN demands action as famine looms in three countries Of the four famine alerts, only one - Somalia - is caused by drought, while the other three are the result of conflicts, also described as ""man-made food crises"". ""The situation is dire,"" said Guterres. ""Millions of people are barely surviving in the space between malnutrition and death, vulnerable to diseases and outbreaks, forced to kill their animals for food and eat the grain they saved for next year's seeds."" The appeal for international action came as humanitarian aid groups are already struggling to meet needs in Syria and cope with the global refugee crisis. Source:-News agencies", -1490,2017/2/24,http://www.aljazeera.com/blogs/americas/2017/02/jake-turx-jewish-reporter-donald-trump-170224023319091.html,,,"Before President Donald Trump's infamous 76-minute press conference on February 16, Jake Turx was a relatively unknown Washington reporter for Ami magazine. But that changed dramatically when Turx, who is visibly Jewish but describes himself as a ""post-labellist millennial"", stood up after Trump pointed to him, seeking a ""friendly reporter"". Turx, who covered both the Trump campaign and that of his opponent Hillary Clinton, was well known to the president. ""I've always felt that we had this mutual understanding,"" Turx, 30, told Al Jazeera. ""That he trusted me."" That included post-debate interviews in the so-called ""spin room"" where candidates talk to reporters. Trump, Turx points out, was always very generous with his time for the young reporter. So when the president - who had already faced a barrage of questions about his ties to Russia, the resignation of his national security adviser and his self-perceived mistreatment by the media - scanned the room full of reporters, he spotted Turx, whose Twitter handle @JakeTurx was on his kippah. ""Watch how friendly he is,"" Trump told everyone, hoping to get a softball question. And, he did. Turx says he prefers not to ask questions about anti-Semitism, because it's simply too obvious, but the story of threats against Jewish Community Centres (JCC) in the US wasn't getting the coverage he had hoped. ""People weren't talking about it and I'd gotten a lot of requests and private messages from teachers and faculty members at various JCCs around the country begging me to bring up the issue,"" Turx says. There were reports of 48 threats against Jewish community centres across the country in January alone. The New York City Police Department reported a doubling in the same month of hate crimes against Jewish citizens. So Turx identified himself, then started with a statement: ""Despite what some of my colleagues have been reporting, I haven't seen anybody in my community accuse either yourself or anyone else, anyone on your staff of being anti-Semitic,"" he said politely. And then, the statement that changed everything: ""However, what we are concerned about and what we haven't really heard being addressed is an uptick in anti-Semitism and how the government is planning to take care of it."" After mentioning reports of bomb threats, Trump had heard enough. WATCH: America\'s media under Trump - An ominous start ""You see, he said he was going to ask a simple easy question. And it's not,"" the president huffed. Turx was baffled. ""I was trying to figure out, 'What did I do wrong?'"" he explains now. ""Did I say the wrong word?"" Apparently, he did. Trump told him to sit down. ""I am the least anti-Semitic person that you've ever seen in your entire life,"" he said. Turx tried to interject in an attempt to clarify that had not meant to accuse the president of anti-Semitism. ""Quiet! Quiet! Quiet!"" Trump told him. ""see? He lied about. He was going to get up and ask a straight, simple question."" Turx sat down, puzzled by the exchange. But his place in history was now firmly cemented. The messages of support and hatred poured in. His Twitter feed lit up, earning 10,000 more followers. The back-and-forth played across the world on social media and fed into a perception that, rightly or wrongly, already existed: Trump wasn't taking the threats seriously. In January, the White House faced condemnation for failing to mention, in a statement on International Holocaust Remembrance Day, the six million Jews who died. Five days after his moment with Turx, Trump finally addressed the issue during a visit to the National Museum of African-American History in Washington, DC. ""The anti-Semitic threats targeting our Jewish community and community centres are horrible and are painful, and a very sad reminder of the work that still must be done to root out hate and prejudice and evil,"" he said. The next day, Vice-President Mike Pence visited a Jewish cemetery in St Louis that had been vandalised and helped clean it up. ""There is no place in America for hatred, prejudice, or acts of violence, or anti-Semitism,"" he said. Turx shrugs off the role he played in sparking all of this. The father of three who grew up in both Los Angeles and New York would rather be talking about the budget or school vouchers but he's fully aware that sometimes you just have to go there. ""If you're a dentist and you have to pull out the tooth of a child, you just pull out that tooth,"" he says of his memorable moment with the commander-in-chief. ""You do your job and stay honest to the people you are out there working on behalf of."" Source:-Al Jazeera News", -1491,2017/2/24,http://www.aljazeera.com/news/2017/02/kim-jong-nam-nerve-agent-170224012444497.html,Nerve agent used to kill Kim Jong-nam: police,Malaysian police say nerve agent found on face of half brother of North Korean leader Kim Jong-un.,"Malaysian police say a preliminary report shows the murder of Kim Jong-nam,-the half brother of North Korean leader Kim Jong-un, was carried out with a nerve agent used in chemical warfare. A statement on Friday from the inspector general of police said that a preliminary analysis from the Chemistry Department of Malaysia identified the agent at ""VX nerve agent"". VX nerve agent, or S-2 Diisoprophylaminoethyl methylphosphonothiolate, is a chemical weapon classified as a weapon of mass destruction by the United Nations. Kim, the estranged half-brother of North Korean leader Kim Jong-un, died after two women attacked him at Kuala Lumpur International Airport last week as he was preparing to board a flight to Macau. Police have not said how the women were able to apply the nerve agent to Kim's face and also avoid becoming ill themselves. It is not known if they were wearing some sort of thin gloves or if washing their hands quickly removed the danger. Police had said earlier that the two attackers rubbed a liquid on Kim's face before walking away and quickly washing their hands. He sought help from airport staff but died before he reached the hospital. North Korea's official, state-controlled media mentioned the case for the first time on Thursday, saying Malaysia's investigation was full of ""holes and contradictions"" without acknowledging the victim was Kim Jong-nam. The report from the North Korean news agency KCNA largely echoed past comments by North Korea's ambassador to Malaysia, but the publication of at least some news inside North Korea could be a sign of its concern over growing international speculation that Pyongyang dispatched a hit squad to kill Kim. Long estranged from North Korea's leadership, Kim Jong-nam had lived outside the country for years, staying in Macau, Singapore and Malaysia. The two suspected attackers, and Indonesian woman and a Vietnamese woman, are in custody. Source:-News agencies", -1492,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330039.htm,China's vital leadership in world affairs,,"Malloch-Brown praises country for support of global free trade at a time of increasing political uncertainty China's leadership in free trade, sustainable growth and the international rule of law comes at an important moment, with the struggle between globalization and protectionism, says Lord Malloch-Brown, former deputy secretary-general of the United Nations. He says President Xi Jinping's speech defending the benefits of free trade at the World Economic Forum in Davos, Switzerland, in January was an important milestone in China's global role and expressed admiration for Xi's strong leadership in driving forward China's complex economy in a coherent way. ""I think China left Davos as the default champion of economic integration, free trade and the international systems,"" he says, adding that the commitment to ensuring that global trade remains open is particularly important at a time when US President Donald Trump is taking a more protectionist stance. In Malloch-Brown's view, China's leadership on globalization comes at a crucial time, as protectionist pressure arises across the Western world and with the struggle between globalization and protectionism likely to continue for decades. ""In my own view, throughout the rest of our lives politics is going to be a competition between those who believe global integration brings great benefits and those who oppose it on behalf of groups losing out,"" he says. ""It's a mistake to see Trump as a one-off case, as it reflects certain emerging opinions in the United States and Europe."" Other examples Malloch-Brown cites include French far-right presidential candidate Marine Le Pen's campaign promising to save jobs through protectionist measures and the UK's decision to leave the European Union. Having previously served in a range of political roles in the UK and with international organizations, Malloch-Brown has witnessed the way in which China has increasingly exercised its global leadership. He cites China's commitment to UN peacekeeping and combating climate change as key examples. Under the framework of the UN's COP 21 conference on climate change in Paris, China announced it aims to hit its CO2 emissions peak by around 2030 and slash CO2 emissions per unit of gross domestic product by 60 to 65 percent from the 2005 level. In the area of peacekeeping, China committed a standby military force of 8,000 when Xi addressed the 2015 Leaders' Summit on UN Peacekeeping. Meanwhile, China is taking concrete steps to promote global trade, particularly through its Belt and Road Initiative. The initiative has received support from more than 100 economies and international organizations. More than 40 have signed cooperative agreements with China. He adds that the China-led Asian Infrastructure Investment Bank is playing an important role in funding projects in Belt and Road areas and in championing a new model for multinational development bank operations. ""What's striking about the AIIB is its ability to deploy lots of capital, especially by pulling capital from the private sector. On scale and ambition, many older generation multinational development banks can learn from it,"" Malloch-Brown says. The AIIB generally invests in the initial stages of big infrastructure projects, allowing the private sector to carry less risk. Malloch-Brown says the AIIB's capital commitment is able to attract private sector money because its agenda is closely aligned with the Chinese government's emphasis on China becoming an important trading nation. ""It offers the private sector long-term consistency and profitability,"" he says. Malloch-Brown says that while China has historically focused more on its own economic development as a developing nation, its increasing investment and trading relations have helped it step into a more rounded international leadership role. ""Inevitably, while trade may lead the way, China is finding its engagement in more parts of the world. It is drawn into an ever-wider web of alliances, relationships and commitments, which may have begun as buttressing trade engagements. But now it has outgrown that as a more fully fledged global power."" In such a context, it is more important for China and the US to maintain a good relationship, Malloch-Brown says, adding that it is an issue ""everyone is watching with great concern"" because potential political conflict or a potential trade war between the world's two largest economies is ""not just a problem for the US and China, but for the rest of the world"". Malloch-Brown says the tension so far has mainly been created by the US, and that Trump's view that China is undermining the US' manufacturing sector is a key factor. ""One has to hope calmer heads prevail in Washington. There are plenty of flash points that could escalate to confrontation of some kind, given the poorly disciplined communication of this new administration,"" he says. To avoid such dangerous confrontation, it would be helpful for China to ""find as many channels and ways as possible"" to communicate and avoid misunderstanding because limited diplomatic contact could lead to problems. He mentioned the 1972 visit to China made by US president Richard Nixon, who met with Chairman Mao Zedong, as an important example of the significance of open communication. Nixon's trip played a significant role in normalizing relations between the US and China, marking the end of 25 years of separation. Meanwhile, Malloch-Brown stresses that business contacts and cooperation are important to cement bilateral relations, in addition to diplomatic communications. He cites the meeting between Trump and Jack Ma, founder of Chinese e-commerce giant Alibaba, as an encouraging example. When Ma met Trump in January, he pledged to create a million jobs in the US. ""Jack Ma was an early visitor to Trump tower. That's a good thing. The more business and government contact the better. The more people contact the better,"" Malloch-Brown says. He says Trump's view that China is merely an exporter of low-cost goods to the US is an ""incredibly dated view"", because examples such as Alibaba's investment in the US market show that China is an investor in the US private-sector economy and that it plays an important role as a part of the supply chain to help US firms, including Apple and many US automotive manufacturers. In addition to trade and economic growth, a constructive relationship between China and the US is important for global security, especially in the Asia-Pacific region and Africa. It is encouraging to see that China has dealt with the Trump administration through ""calm and measured response"", showing it is not easily provoked, Malloch-Brown says. ""There will be an education process in Washington for the new president to understand the new complexity of US-China relations - and the cost to the US of abruptly breaking them - and the challenges of trying to keep the relationship, because of the benefits it brings,"" he says. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 02/24/2017 page32)", -1493,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330038.htm,Snack chief has a taste for success,,"Godiva chocolates maker says appetites on the Chinese mainland key driver for growth Cem Karakas may be running the world's newest snack conglomerate, Pladis Group-established in April-but his ambitions to grow the company's market share in China are as big and mature as any of the veteran players in the country. ""In five years, whenever you ask a Chinese person to name a chocolate brand, it will be Godiva. And earn it,"" Karakas says. The Belgian chocolatier is by far the most recognized brand in the new group's product portfolio on the Chinese mainland. In 2016, Yildiz Holding, the biggest food company in Central and Eastern Europe, the Middle East and Africa, brought together its core biscuit, chocolate and confectionery businesses. These included Godiva Chocolatier, United Biscuits, Ulker and DeMet's Candy Co. The move formed a new global company, Pladis. - CEM KARAKAS, CEO of Pladis, says e-commerce is highly advanced in China, which is what makes the market so vibrant. Provided to China Daily The company is named after the Pleiades constellation, a group of seven stars visible from anywhere on Earth. With 36 factories in 13 countries, 26,000 employees and sales operations in 120 countries, Pladis annually generates over $5 billion in revenue. Recently, Karakas spoke to China Daily about his vision and, in particular, the strategies of the Godiva brand in China. Following are edited excerpts of the interview: How do you align your business strategy with the Chinese market, where the snack industry is already crowded with multinational and domestic brands? Pladis is a very young enterprise, just established back in April 2016. Having said that, the companies and brands that make up Pladis are very old. The oldest brand we have dates to 1806. Overall, we are talking about 350 years of heritage, which differentiates us from other global snack players. The Chinese market is very important for us. About 50 percent of our revenue comes from England, the Middle East and Turkey. The rest is primarily North Africa and Asia - Asia meaning China and Japan. The Asian region has been our fast-est-growing segment, particularly Japan, which has grown by 100 per-cent annually over the past five years. While we have been exporting to China for quite some time, our actual strategic entry there happened very recently, in 2010. We started with 20 employees in China. Right now we have more than 1,000 and in 2016 there was about $85 million in revenue compared with almost nothing in 2010. China will definitely exceed Japan in terms of market size around 2020, becoming a $300 million or so business. Godiva is the largest chocolate producer in Japan and its brand awareness is 99 percent there, com-pared with 12 percent of the second player. While Godiva entered China only six years ago, it is top in the minds of about 23 percent of consumers, which is very very high for a young brand. Does that mean more aggressive expansion plans? Yes. As of 2016, we have 103 stores in China. Our growth trajectory will take it to 150 by the end of this year and close to 300 by 2020. What are your expectations about 2017 and profits in China? In 2017, we are expecting to have over 2,000 employees in China and achieve $140 million in revenue. Currently we are in 23 cities and we are going to expand our presence to 32 cities. But e-commerce is very, very advanced in China. Actually, I think it is what makes the Chinese market so vibrant. About 24 percent of our sales are generated from e-commerce. With e-commerce, we are reaching more than 300 cities in China, which is amazing. For the Year of the Rooster and Valentine's Day, has there been any special campaign for the Chinese market? The Chinese market is a very exacting market. It's a very difficult and competitive market. Chinese consumers are so particular and demanding, which is very good for us in that we have to renew ourselves every year here. That is what we, Godiva, are good at. If you look at the average Godiva product range, roughly 30 percent is changed every year. That is why we have these designs made primarily by local Chinese artists and that has really been a source of success for us for the past several years. Every year we add new pieces, or seasonal pieces, to cater to Chinese tastes and requirements. These are more a fashion product than a chocolate product. At Godiva, we have one resident chef who only looks after Chinese consumers. Chinese consumers have more of an affinity for our darker chocolates, rather than milk chocolates. We are having rooster-shaped chocolates made in tea flavors with different types of nuts, which will be sold exclusively in both the Chinese market and at destinations that Chinese tourists frequent, like Paris or Lon-don. To what extent do you think China will contribute to your ambitious growth targets? We have been the fastest-growing player in our industry for the past several years and we intend to do the same for the next. We almost always grow by double digits, which is rare in our industry, which is growing at around 4 percent annually. And the reason for that is, although half our sales come from the so-called developed markets, markets like China and North Africa are what help us grow. We are expecting to grow north of 30 per-cent per annum in China for the next five years. What do you see as the growth engine for China? Urbanization and increased product awareness. How about challenges? We became the largest premium player in the market in six years and six years ago there were some other big players. In China, it's important to know that past success doesn't guarantee future success. Who do you see as your biggest competitor? In the chocolate segment, I don't want to understate competition, but we are pretty advanced. So we don't particularly keep an eye on this or that competitor. In the biscuit segment, we are still too small and the market is really crowded. Do you think that the slowdown of the Chinese economy will pose a threat to your company? I am in a very comfortable position from one perspective, which is that our industry isn't so much about economics as about demographics - population increases, urbanization and age profiles, which vary from country to country. As long as people eat, we sell. So difficult times don't result in tight budget for snacks? Consumers first cut their durable goods budget. If you look back, there is almost no statistical causal relationship between snack market growth and economic growth. You said specific age profiles have a role in chocolate sales. How do they play out China? Interestingly, it's the younger consumers in China that are consuming Godiva. In North America, those around 40 to 50 are the heavier consumers. In China, it's the 30s bracket, which makes the country the youngest market for Godiva chocolate. With the Belt and Road Initiative being carried out in China, what are the opportunities and positive effects Pladis expects to see over the next few years? The long-term benefits we see include improved infrastructure, resulting in a faster and more efficient supply chain to ship products from Europe and Turkey, as well as a free-trade pact and more cooperation and better mutual understanding created among countries. How do you think people's growing awareness of eating healthy food will affect your business? We have been producing the same recipes for centuries. Back then, there wasn't such concern. But there are always other concerns. Balanced diets are critical. Every once in a while, new trends emerge. In the 1990's, reduction of fat and oil was an issue. Then it was the reduction of salt, then sugar. Most recently, there is this mindset migration to whole grains or super grains. And one of our premium biscuit brands just so happens to be using whole grains. We always keep an eye on trends. But at the same time it's also important to stick to tradition - generations grow up with it. So changes have to be subtle. xujunqian@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page31)", -1494,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330037.htm,Baidu to lead artificial intelligence quest,,"Government gives company nod to develop deep-learning tech lab Search engine Baidu Inc will take the lead with the first national lab on deep learning, as China strives to rise up the ranks in artificial intelligence research. The National Development and Reform Commission, the country's top economic regulator, has appointed Baidu to lead the national lab on deep learning technologies and applications as Beijing prioritizes AI development through policy and financial support. The company will team up with China's leading institutions such as Tsinghua University and Beihang University in areas including deep learning, interactive technologies, visual and sensory technologies and standardized services. Baidu will also share its rich resources on computing, algorithms and big data, which are crucial to beefing up fundamental research in AI. ""We will give full support and abundant resources to the lab to ensure the mission is accomplished effectively and in high quality,"" says Lu Qi, president of Baidu. Deep learning is a leading algorithm that aims to improve search results and computing tasks by training computers to work more like the human brain, says Wang Guanchun, chief executive officer of Laiye, a Beijing-based AI company that provides personal scheduling services. The country is betting on the technology to advance high-end manufacturing as it shifts from an export-driven economy to one that is higher up the value chain. Fueling the trend is a three-year initiative led by the NDRC and the Ministry of Science and Technology to boost the industry through to 2018, in which China aims to achieve make breakthroughs in core AI technologies, stay in line with global standards on fundamental research and potentially develop a whole set of transformative technologies on the application front. ""AI should be put on the national agenda as it could transform the industrial, service and even the defense sectors. Baidu is in a good position to lead the lab, considering its vast input in the field,"" says Wang. Baidu's Institute of Deep Learning set up a Silicon Valley lab in 2013, tapping the region's talent pool to gain more muscle to compete with global rivals from Apple to Google. In January it also hired noted AI expert and former Microsoft executive Lu Qi as its new president, overseeing all business functions. Tan Tieniu, vice-chairman of the Chinese Association for Artificial Intelligence, says more attention should be paid to the most fundamental groundbreaking work, which is largely dominated by US researchers, and that is what a national lab is meant for. hewei@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page25)", -1495,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330036.htm,Aerospace company seeks growth,,"China Aerospace Science and Industry Corp, the country's largest missile-maker, will step up global expansion this year, as it aims to quintuple the number of foreign enterprises registered on its industrial internet platform. Wei Yiyin, deputy general manager of CASIC, says fewer than 2,000 foreign companies have registered on its online industrial internet platform, casicloud. ""We aim to increase the number to 10,000 by the end of this year as our company ramps up efforts to promote our services to Pakistan, Europe and Southeast Asia,"" Wei says. The industrial internet refers to combining advanced machines with internet-connected sensors and big-data analytics. It is designed to boost the productivity, efficiency and reliability of industrial production. The platform went into operation in June, 2015. Through it, CASIC offers enterprises cloud-based technology and products that can help upgrade plant. According to CASIC's Wei, the company has partnered with Germany's Siemens to work on smart manufacturing. The move came as China is ramping up efforts to upgrade its manufacturing industry with the big data and internet technology. ""We are working on a national guideline to promote the development of the industrial internet,"" Minister of Industry and Information Technology Miao Wei said on Feb 21. The industrial internet is highlighted in the country's Made in China 2025 strategy, which was designed to promote high-end manufacturing. ""We have done a relatively good job in applying the internet to industrial production. This year we will see big opportunities in the high-tech manufacturing sector,"" the minister added. masi@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page25)", -1496,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330035.htm,Mobike pumped up by Temasek,,"Bike-sharing company hopes funding can help it expand in China and overseas Chinese bicycle-sharing startup Mobike announced on Feb 20 that it has received a strategic investment from Singapore's Temasek Holdings. It is locked in a fierce battle with Ofo for dominance in China. With the deal, the three-year-old company has now raised more than $300 million since the start of 2017. Mobike did not disclose the specific amount. - A worker at a Mobike factory in Hengyang, Hunan province. Peng Bin / For China Daily Davis Wang, co-founder and CEO of Mobike, says within just 10 months the Beijing-based company has accumulated more than 10 million users across 21 cities. In the same time frame, it has provided more than 200 million bike rides. ""With the help of new investors, we will expand our presence in China and the overseas markets,"" he adds. Hillhouse Capital, a leading investment powerhouse, also increased its bet on the company after it led an investment into Mobike in late 2016. Zhang Lei, founder and chief executive of Hillhouse Capital, said in a statement that the Mobike team has a clear vision for the future of urban transport: ""We look forward to leveraging our global network and resources to help Mobike bring its urban transportation solution to cities around the world."" The new investment came shortly after Mobike signed an exclusive strategic partnership with Foxconn Technology Group in January, which would help double its annual bicycle production capacity to more than 10 million units. Mobike is competing with Ofo for supremacy in the country's booming bike-sharing sector, which is now one of the most popular investment destinations. In January, Mobike raised $215 million from investors, including the social networking giant Tencent Holdings, while Ofo clinched an investment of $130 million in October 2016. In the first week of 2017, Mobike's mobile app had 5.85 million weekly active users. In comparison, the number for Ofo is 1.4 million, data from the research firm iResearch Consulting Group show. The cash-burning battle between ride-sharing platforms is continuing as they are attracting new users with subsidies, according to Zhang Xu, a Beijing-based transportation analyst for internet consultancy Analysys. ""The two sides are all armed with enough cash now. The competition will depend on which can offer better services with lower costs,"" he says. ""Local governments are preparing to unveil regulations. Players need to pay attention to that,"" he adds. masi@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page26)", -1497,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330034.htm,IN BRIEF (Page 24),,"- Exhibitors promote products at an international fitness and beauty product expo, which concluded on Feb 22 in Beijing. Zou Hong / China Daily IT industry output expanding rapidly The output of China's information technology industry expanded 10 percent year-on-year in 2016, thanks to the strong performance of smartphones, routers and LCD panels, an official said on Feb 21. The growth rate was 4 percentage points higher than the rate of overall industrial expansion last year, according to Zhou Zixue, deputy head of the China Information Technology Industry Federation. China's industrial output expanded 6 percent year-on-year in 2016, the National Bureau of Statistics data showed. Industrial output, officially called industrial value-added, is used to measure the activity of designated large enterprises with annual turnover of at least 20 million yuan ($2.9 million; 2.8 million euros; 2.34 million). Polish plane-maker lands in Nantong Polish aircraft-maker Marganski has teamed up with an airport industrial park in Nantong, Jiangsu province, to jointly produce light utility aircraft. Tongzhou district authorities in Nantong confirmed the deal on Feb 21. Investment for the aircraft manufacturing base totals 375 million yuan ($54 million; 51.7 million euros; 43.9 million) with $30 million of foreign investment. The plant is based in the airport industrial park and will start production of Marganski's EM-11C Orka aircraft in the first half of 2018. The twin-engine aircraft is constructed of composite materials with a four-seat cabin. It can be used for touring, business travel, flight instruction and patrols. Mercedes-Benz recalls vehicles German carmaker Mercedes-Benz started recalling 59 vehicles in China on Feb 21 over defective electronic power steering, according to China's quality watchdog. The recall affects 29 cars made between July 4, 2013 and March 3, 2015, as well as another 30 other models manufactured between June 16, 2014 and June 27, 2015, according to an online statement by the General Administration of Quality Supervision, Inspection and Quarantine. The defective electronic power steering in these vehicles could lead to vehicle collisions and fires, causing safety risks, the statement said. Samsonite hopes to bag bigger share Samsonite International SA, the world's largest luggage brand by market share, is pinning its hopes on e-commerce and social media to fuel growth and make China its biggest market within five years. Sales in China, which now account for more than 10 percent of its total revenue, are likely to double by 2022, thanks to the explosion in online shopping and a wealthier population eager to travel, Samsonite CEO Ramesh Tainwala said on Feb 22. The company said that virtual stores on Tmall and JD.com, the country's duopoly of business-to-customer sites, have claimed 60 percent of Samsonite's online business in China. They also sell through the digital outlets of shopping malls and department stores. To harness that growth, Samsonite will open its own online shopping portal this year to attract more sophisticated buyers who wish to purchase bigger-ticket items directly, rather than through a third party. PPPs to drive infrastructure Public-private partnerships will be the main financing model Chinese local governments use for infrastructure investments up to 2020, with state-owned enterprises to play the leading role, global ratings agency Fitch said on Feb 20. The PPP model will also help Chinese construction companies expand their order books, Fitch said. However, the model is in its early stages of development, and SOEs have emerged as the main partners of Chinese local governments, rather than private investors. ""This is mainly because returns on most PPP projects, typically 5 percent to 8 percent, are not appealing to private investors, but are sufficient for SOEs, which enjoy lower financing costs,"" Fitch said. Chengdu to double trains to Europe Chengdu, the capital of Sichuan province, is expected to run 1,000 cargo trains to Europe in 2017, more than double last year, Chengdu International Railway Services Co said on Feb 20. Chengdu ran 460 cargo trains to cities in Poland, the Netherlands and Germany last year - more than any other Chinese city. It delivered a total of 73,000 metric tons of goods worth $1.56 billion (1.5 billion euros; 1.3 billion) in 2016 globally. The southwestern hub has planned three major rail line services to Europe, with a middle route to Germany, Poland and the Netherlands, a southern route to Turkey and beyond, and another northern route to Russia. Benin sees China as top trade partner China ranked as Benin's ninth-largest importer and fourth-largest exporter in the fourth quarter of 2016, the National Institute of Statistics and Economic Analysis said in its quarterly review issued on Feb 19. During the period, China imported over 1,149 metric tons of goods valued 5.7 billion CFA Francs ($9.2 million; 8.7 million euros; 7.4 million) from Benin but exported 30,099 tons of goods valued 87 billion CFA Francs to the West African country. Globally, Benin's exports during the period amounted to 29.7 billion CFA Francs in a quarter-to-quarter decrease of 29 percent, compared with 42.3 billion CFA Francs in the third quarter 2016. ""It's an annual decrease of 60.6 percent compared with the same quarter the previous year,"" the quarterly review said. China still atop S. African tourism China remained the leading growth market for South Africa's tourism industry, with year-on-year growth recorded at 38 percent last year, figures released on Feb 20 showed. The growth in tourist arrivals from China has been consistent over the year, following improvements in the visa application processes, according to Tourism Minister Derek Hanekom. South Africa can build on this and attract even more tourists from China and other countries, he said after Statistics South Africa released figures showing a sharp increase in tourist arrivals. According to Stats SA, international tourist arrivals surpassed 10 million last year, 13 percent more than in 2015. Czech finance group expanding on mainland Home Credit Consumer Finance Co, the Czech Republic-based international consumer finance provider, will expand and add two call centers in China with more than 10,000 employees, as the country is seeing a boom in consumption upgrading, a senior executive said. Petr Krumphanzl, chief operations officer of Home Credit Consumer Finance Co, said that after the trial operation proved to be a success in Tianjin, ""enlarging our Tianjin facility is urgent for our business strategy in China"". Home Credit plans to boost the number of employees from 2,000 to 3,500 at its Tianjin call center by the end of June. Established in 2010 and 2014, its call centers in Wuhan and Changsha currently are supported by more than 6,000 employees. Lego planning 40 chain stores Lego has big ambitions to open chain stores in 40 Chinese cities in the next four years, aiming to expand the market from first-tier to second- and third-tier cities by 2020 through a combination of online and offline sales, the company says. ""We are very optimistic about the future of the Chinese market,"" said Wang Li, vice-president of Lego China. ""Lego has seen its fastest growth in China. With easing birth control and upgrading of consumption, the number of consumers in China will keep increasing. The toy industry sees great potential in China, the world's largest toy manufacturing and exporting country."" (China Daily European Weekly 02/24/2017 page24)", -1498,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330033.htm,District set to adopt elder care a la France,,"The French consulate general in Guangzhou and the Civil Affairs Bureau are working to introduce French elderly care services to a district of the city, as the aging population creates increasing demand. The two sides signed a memorandum of understanding on elderly care cooperation last month, as an outcome from the long-term blueprint for the development of Sino-French ties published during the visit to France in 2014 by Chinese president Xi Jinping. Elderly care cooperation is a new priority in bilateral ties, says Pierre Martin, economic counselor with the consulate. The three-year MOU aims to transfer the French elderly home care system to a district, including specialized homes, logistics, hardware and training, Martin says. The government of Haizhu district in Guangzhou has expressed interest. With an elderly care sector developed since four decades ago, France has strong public policies, geriatrics and private sector care, he says. A number of French companies - including Colisee, Sodexo, Legrand and Air Liquide Healthcare are interested in joining the program in Guangzhou. A French social insurance fund may also take part and Chinese companies are also welcome, he says. The top three European care home operators in terms of the number of beds are French - namely Korian, Orpea and Domusvi, according to a report by Savills, an international real estate adviser, in October. Since starting to become an aging society in 1992, Guangzhou has seen a drastic increase in demand for senior care services amid an increasingly serious aging situation, says Ye Fen, director of social welfare division of Guangzhou civil affairs bureau. The senior population stands at 1.48 million, or 17.3 percent of the total population of the city, including 238,000 above the age of 80 and 268,000 people in families of solely senior members. The elderly population in Guangzhou is expected to surpass 1.85 million by 2020, creating a large care services market, Ye says. Documents from China's State Council and Guangzhou city government pinpoint cooperation with other countries in this sector. The MOU is meant to draw on the advanced ideas and professional practices of France to upgrade elderly care services in Guangzhou, Ye says. Some cooperation is already underway, including a home for the elderly built by a joint venture between China Merchants Group and Colisee in the Panyu district of Guangzhou. If the program goes well, the MOU maybe renewed after three years, Martin says. liwenfang@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page28)", -1499,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330032.htm,CNPC buys stake in UAE oil concern,,"Chinese companies have secured a 12 percent stake in Abu Dhabi National Oil Co's onshore oil concession, hoping to further participate in the development of United Arab Emirates' energy sector. China National Petroleum Corp signed an agreement with the Abu Dhabi oil company on Feb 19 for an 8 percent stake, paying 6.5 billion dirhams ($1.77 billion; 1.67 billion euros; 1.42 billion), followed by Shanghai-based CEFC China Energy Co, which obtained a 4 percent stake. CNPC and CEFC are the venture's new Asian partners, joining Japanese and South Korean companies alongside BP Plc and Total SA. BP signed on to the project in December, and Total in January 2015. The onshore concession is operated by the Abu Dhabi Company for Onshore Petroleum Operations. Asian companies are newcomers in the region, while European and US counterparts have pumped oil in the Middle East for more than a century. ""If you're Abu Dhabi and looking for demand growth, China is the future, and its demand is going to continue to grow,"" Chris Gunson, a Dubai-based lawyer at Amereller Legal Consultants, was quoted as saying by DealStreetAsia, a Singapore-based news and intelligence platform. ""For the big buyers in Asia, the logical source of that future supply is the Gulf,"" he says. CEFC has also made a crude oil supply agreement with ADNOC, providing more than 13.2 million metric tons of high-quality crude annually to the Chinese market. Ye Jianming, chairman of CEFC, says the deal enables the private company to secure long-term and stable onshore oil rights and interests for the company to engage in the exploration of upstream oil and gas in Abu Dhabi. ""This agreement enhances our ability to integrate ADNOC's onshore oil reserves with our storage facilities in China and Southeast Asia,"" Ye says. Zhou Dadi, a senior researcher at the China Energy Research Society, says the deal will help unlock growth opportunities for both sides, helping Abu Dhabi and CEFC to further explore upstream exploration and ensure oil reserves. He says the deal will help CEFC boost its oil supply capacity while helping China to get more involved in determining the global oil price. CEFC China is among the 10 largest private companies in China and has a focus on energy and financial services. Xu He contributed to this story. zhengxin@chinadaily.com.cn - A worker secures a clamp as he guides a gas pipe on a drilling tower during operations at the Boekelermeer gas storage site, operated by Abu Dhabi National Energy Co in Alkmaar, the Netherlands. Provided to China Daily (China Daily European Weekly 02/24/2017 page26)", -1500,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330031.htm,HNA buys stake in Deutsche Bank,,"Chinese conglomerate HNA Group is seeking to expand its finance business and further diversify its operation structure after taking a stake in Deutsche Bank, the first Chinese investor to take a major stake in the bank. Starting from Feb 15, HNA, the parent behind the country's largest private commercial airline, holds 3.04 percent of Deutsche Bank, according to the statement of the German bank. HNA's stake is worth more than 700 million euros ($740 million; 595.4 million) at current share prices. The purchase makes HNA the fourth-largest shareholder in the German lender, after BlackRock, which holds 6.07 percent, and two sovereign wealth funds that are controlled by Qatar, which together hold 6.1 percent. In January, HNA expanded its global asset management business by acquiring a majority stake in New York-based SkyBridge Capital, an alternative investment firm founded by Donald Trump's adviser Anthony Scaramucci. Pang Guoteng, an analyst at Morning Whistle Group, a Shanghai-based internet platform that helps Chinese capital conduct cross-border investment and overseas mergers and acquisitions, says the move has further strengthened the finance business of HNA. A few years ago, the finance business was a short board of the company when it failed several times to get a banking license. HNA's business now includes aviation, finance, real estate, logistics, hospitality, tourism and ecological technology. HNA Capital, a financial group under HNA Group, has operations in more than 100 countries, and it deals with businesses include leasing, insurance, internet banking, securities and futures. Its total assets have reached over 340 billion yuan ($49 billion), according to the company. A spokesperson at HNA says Deutsche Bank is very attractive in terms of investment, and HNA is willing to stay as a long-term shareholder in the bank. HNA says it could buy further shares in Deutsche Bank, and keeps its stake below 10 percent, Xinhua News Agency reported. The German lender says it welcomes in principle any investor with a long-term view, Reuters reported. As the largest commercial bank in Germany, Deutsche Bank has suffered losses for two years in a row, and its share prices have been lukewarm. German media regarded the deal a good move, that Deutsche Bank has been doing business in Asia for many years, and it's natural for Asian investors to inject capital in the bank. zhuwenqian@chinadaily.com.cn (China Daily European Weekly 02/24/2017 page26)", -1501,2017/2/24,http://europe.chinadaily.com.cn/epaper/2017-02/24/content_28330030.htm,Trade remains the basic fabric of Asia,,"Recent threat of protectionism adds new urgency to agreements in a region that has always thrived on cross-border commerce Despite the rise of protectionist sentiment in some Western countries, Asia continues to push for lower barriers and easier and cheaper cross-border trade. After all, most Asian economies were built on trade and depend on it for growth. In the 1960s and 70s, Japan grew rich by manufacturing and exporting high-quality, high-value-added goods - from electronics to cars. South Korea followed suit some time later, as did Hong Kong, Taiwan and Singapore, collectively known as the four Asian tigers. - CONTAINERS AND CRANES in Hong Kong. The city's massive port operations act as an important conduit for trade with the Chinese mainland. Provided to China Daily The Chinese mainland used trade to build its massive manufacturing capacity and emerge as the factory of the world. Hong Kong developed into a financial hub but also focused on its massive port, through which much of the mainland trade flows. Singapore operates as a similar gateway for Southeast Asia. Now, Vietnam and Cambodia are emerging as lower-cost manufacturing hubs. Indonesia depends in large part on commodity exports to support its economy. India exports manpower, inexpensive drugs and services. Trade is built into the fabric of Asia, a region that has grown rapidly thanks to the push for greater globalization over the last two decades. ""ASEAN has done well,"" says Jayant Menon, chief economist at the Asian Development Bank, referring to the 10-member Association of Southeast Asian Nations. ""Countries like India are still growing very strongly. It's not a huge trading country but it's strong domestically. China is still growing strongly. ""ASEAN is still doing well in the region. Trade is an important factor."" But it's ""not the only factor"", he said. As trade with Europe and North America sags due to slower growth and protectionism, Asian economies are looking to boost regional trade. This gives urgency to the development of regional trade agreements, the largest and most comprehensive of which is the ASEAN-led Regional Comprehensive Economic Partnership, or RCEP. The RCEP covers ASEAN as well as China, Japan, South Korea, India, Australia and New Zealand - the group generally known as ASEAN+6. ""RCEP is more traditional in terms of its content,"" Menon saw. ""The fact that it has been delayed is a good sign. They are trying to come up with something that contains real reforms. They are working hard on trying to create regulatory convergence - harmonization of rules across countries. ""This is going to be the key contribution in terms of making it easier for the regional bloc."" Markets in North America and Europe are likely to remain attractive and the source of much demand for Asian-made products for the foreseeable future. But Asian countries are increasingly looking to boost domestic consumption through manufacturing. China, for example, has been aiming for years to increase the proportion of GDP that domestic consumption accounts for. In 2015, domestic consumption made up around 37 percent of GDP, according to the World Bank, compared with 57 percent in Japan and 68 percent in the United States. In Indonesia, domestic consumers account for 55 percent of the economy, but they make up just 36 percent in Singapore. Most countries are trying to boost their reliance on domestic industries and domestic consumption for growth, with some success. In 2016, domestic consumption accounted for two-thirds of China's GDP growth. Less than a year earlier it was the single largest contributor to the country's economic expansion. From 2012 to 2014, consumption accounted for just half of growth. As domestic consumption grows throughout the region, trading among RCEP countries is likely to expand. The 16 countries in the group account for about a quarter of global GDP, more than $22 trillion in economic activity, as well as housing almost half the world's population. RCEP has taken on added urgency since United States President Donald Trump unceremoniously announced that the US was withdrawing from the Trans-Pacific Partnership agreement it had proposed and fought for. ""The stalling of the TPP has led many Asian signatories to shift their focus toward RCEP in an effort to continue toward their trade integration goals,"" says Chia Shuhui, an Asia analyst at BMI Research. ""RCEP was launched in November 2012 with the aim of establishing deeper economic cooperation among the 10 ASEAN members and its six dialogue partners by streamlining existing trade agreements. ""Despite its differences with the TPP, we believe that the successful negotiation of RCEP will be positive for trade integration in Asia,"" Chia says, adding that because trade negotiations are generally kept confidential, ""it is difficult to fully determine what the final agreement will look like"". Chia says that although the RCEP aims to streamline existing trade agreements, it is likely to lead to a considerable lowering of tariff barriers, as well as the simplification of rules of origin. ""Given the sheer size of the agreement and heavy participation of developing countries, we do not expect it to significantly lower nontariff barriers or impose strong environmental standards like the TPP,"" Chia says. The RCEP has emerged as the best candidate to facilitate large-scale trade liberalization in the region and, perhaps, give global trade something of a boost. It covers goods, services and investment across its participating economies. In a note, HSBC suggested the RCEP is a good complement to the China-led Belt and Road Initiative, with a significant amount of overlap between the two. The Belt and Road aims to improve connectivity through large-scale trade and infrastructure projects in countries along the ancient Silk Road routes. Deborah Elms, executive director of the Asian Trade Centre, a Singapore-based consultancy, notes that the RCEP's progress has been slow. ""The problem is we have 16 different countries trying to get an agreement that has dozens of chapters in it. It's complicated."" When negotiations are finalized, the RCEP should go a long way toward eliminating some of the trade frictions that exist in the region, such as disagreements between China and India. At the same time, it should further lubricate the mechanics of trade between China and ASEAN, which seem to get smoother with every passing year. ""When you open up, you are opening up dialogues. That is not easy to do,"" Elms says. ""Even though countries did open markets in the ASEAN framework, what they gave each other in ASEAN is not what the 16 countries want to give each other."" Despite its size, the RCEP includes a set of achievable goals that ""will deliver benefits across the region"", Elms says. ""For example, there will be tariff cuts in the RCEP. If you're lucky enough to have your product sold in 16 countries, tariff cuts are enormous. They make a huge difference. They make things easier for consumers and companies."" For China Daily (China Daily European Weekly 02/24/2017 page29)", -1502,2017/2/24,http://www.rte.ie/news/2017/0224/855026-dup-gave-l425-000-to-help-finance-brexit-campaign/,DUP used ?425k donation to help finance Brexit campaign,,"The Democratic Unionists have revealed that their ?425,000 Brexit campaign was bankrolled by pro-Union group the Constitutional Research Council. The party had been under mounting pressure to make public the name of the mystery donor who enabled it to promote its Leave message on a UK-wide basis, including the purchase of an expensive four-page Vote To Leave EU advertisement in the British Metro newspaper. The paper is available in London and other cities but not in Northern Ireland. DUP MP Jeffrey Donaldson said: ""The donor is the Constitutional Research Council, it is a pro-Union unionist organisation based in Great Britain. ""It has been involved in Scotland, for example supporting unionism in Scotland, and it approached the DUP to support our campaign during the referendum because it supports unionist causes in the United Kingdom."" The CRC is a group of pro-Union business figures chaired by former vice chairman of the Scottish Conservative Party Richard Cook. The names of donors in Northern Ireland are automatically withheld due to Troubles-era rules which sought to protect their security. That had prompted speculation that prominent Leave campaigners were using the DUP to support the Leave campaign without the need to publish their names. Mr Donaldson rejected that suggestion. The Lagan Valley MP said the CRC had donated to the DUP because the main Leave campaign had already reached the limit of its spend. The identity of the DUP's Brexit donor had become an issue in the ongoing Stormont Assembly election, with it facing calls from political rivals to reveal all. ""We were delighted we were able to raise that amount of money,"" said Mr Donaldson. He outlined the details hours before the Electoral Commission published details of campaign spending on the EU referendum. The MP told Radio Ulster: ""We wanted to be involved in the referendum at a national level. We recognise that the population of Northern Ireland is 3% of the United Kingdom. ""This referendum wasn't going to be won or lost in Northern Ireland, it was going to be won or lost on a national basis, and that's why the DUP, being a unionist party, decided to participate in the national campaign and we registered as such and, after we registered, we were able to raise this money and spend it all on campaigning both on a national level and indeed we spent some of it in Northern Ireland.""", -1503,2017/2/24,http://www.rte.ie/news/2017/0224/855020-malaysia/,Deadly nerve agent used to kill Kim Jong-nam at Kuala Lumpur airport,,"The estranged half-brother of North Korean leader-Kim Jong-un-was killed with a highly toxic chemical weapon known as VX nerve agent, Malaysian police have said. 45-year-old Kim Jong-nam died after being assaulted at Kuala Lumpur International Airport last Monday while preparing to board a flight to Macau in China. South Korean and US-officials have said they believe North Korean agents assassinated Kim Jong-nam, who had been living under China's protection. Police said swabs taken from the eye and the face of a North Korean national by the chemistry department of Malaysia revealed the presence of VX. VX is a chemical weapon classified as a weapon of mass destruction by the United Nations. Police chief Khalid said earlier that a Vietnamese woman and an Indonesian woman wiped a liquid on Kim Jong-nam's face. Airport camera footage released on Monday shows the moment the women appeared to assault Kim Jong-nam, who is later seen asking airport officials for medical help. He died on the way to hospital. VX is tasteless and odourless, and is outlawed under the Chemical Weapons Convention. Malaysia has requested Interpol to put an alert out to apprehend four North Korean suspects in the murder. Police are also holding one North Korean man, but are seeking another seven in connection with the murder.", -1504,2017/2/24,http://www.rte.ie/news/2017/0224/855032-rome-cruise-court/,Irish resident due in Italian court after wife went missing on cruise,,"An Irish resident is due to appear in court in Rome today in connection with the disappearance of his wife during a Mediterranean cruise. The couple, who have lived in Dublin for several years, had gone on a Mediterranean cruise on the MSC Magnifica with their two children earlier this month. When the ship docked back at the Italian port Civitavecchia it was discovered that the woman was missing. Police located the man and his two children at Rome's Ciampino airport where they were about to board a flight to Dublin. The man was then arrested. It is-understood the couple's two young children are being cared for by social services in Italy. In a statement, MSC Cruises said that ""an Irish guest failed to disembark"" from one of their ships earlier this week and local authorities were alerted. It said they subsequently ""boarded the ship to investigate the matter"" and added that ""the ship was released a few hours later"".", -1505,2017/2/24,http://www.rte.ie/news/2017/0224/855045-dublin-fire/,Woman and child rescued from Dublin fire,,"A woman and child have been rescued from a fire in a house on the North Circular Road in Dublin.- Four pumps attended the blaze at a three-storey property after the alarm was raised around 5.20am.- Fifteen-people were in the building at the time.- One pump remains at the scene but the fire has now been brought under control.- No injuries have been reported.- A cat was also rescued from the fire.- NCR 0515: Firefighters rescued 2 people after a fire on 2nd floor. 15 residents evacuated. Never delay if you hear a fire alarm #Dublin pic.twitter.com/OAaQdvegBV ""?Dublin Fire Brigade (@DubFireBrigade) February 24, 2017", -1506,2017/2/24,http://www.rte.ie/news/business/2017/0224/855028-bank-of-ireland-results/,Bank of Ireland's profits down as dividend payment is delayed,,"Bank of Ireland has reported an underlying profit of �1.071 billion for the year to the end of December, down from the �1.2 billion profit the previous year.- The bank said that all of its trading divisions were profitable in the 12 month period. The lender said it expects to pay its first dividend in a decade in the first half of 2018, a year later than initially hoped as it awaits further clarity on the Brexit vote in the UK. Its initial plan would have made it the first domestic Irish lender to resume dividend payments since the financial crash. In its results statement today, Bank of Ireland said its core loan books continued to grow during 2016 and it provided �1.7 billion of new credit to personal and business customers in Ireland.- It also reduced its non-performing loans, by �1.1 billion or about 34% since December 2015. Impairment charges have continued to fall, the bank added. The bank's chief executive Richie Boucher said that the business was performing in line with the strategic objectives it had set ourselves. ""We remain confident that the substantial progress the group has made in recent years along with the strength of our franchises and the benefits of our diversified business model position us well to take advantage of the opportunities and to mitigate risks ensuing from these and other geopolitical developments,"" Mr Boucher said. ""We remain focused on serving our customers and developing our profitable, long term franchises in a way that delivers attractive sustainable returns to our shareholders,"" he added. Mr Boucher said the reduction in non-performing loans reflects Bank of Ireland's successful resolution strategies that include ""appropriate and sustainable support to viable customers who are in financial difficulty along with the positive economic environment with stable or increasing collateral values"".- He said the bank is anticipating further reductions in non-performing loans in 2017 and beyond, with the pace of such reductions being influenced by a range of factors.- The bank's defaulted loans balance also reduced, by a further �1.7 billion, to �1.9 billion (or 8% of gross loan volumes). This marked a 62% fall from the reported peak in June 2013. It also noted that more than nine out of ten of its challenged owner occupier Irish mortgage customers with restructuring arrangements continue to meet the agreed repayments. Bank of Ireland said that underlying profit before tax for its UK retail division fell to ?106m in 2016, compared to ?140m in 2015. The division accounts for about 20% of the bank's total income and has over 3 million customers. It provides banking services to consumers through partnerships with two of the UK's most trusted brands, the Post Office and the Automobile Association (AA), as well as other strategic intermediaries. Looking ahead, Mr Boucher said that the economies of its main markets have performed well and are expected to grow in 2017.- He said the bank is cognisant of the potential impact from geopolitical events on its growth trajectory. But ""the quality of our retail and commercial franchises, the benefits of our diversified business model, our capital and funding strength, our commercially disciplined approach, the experience of our team and our clarity of purpose all combine to give us competitive advantage,"" he added.", -1507,2017/2/24,http://www.rte.ie/news/2017/0224/855053-maynooth-kym-owens/,Maynooth student Kym Owens discharged from hospital,,"A student found unconscious with serious head injuries in Maynooth in Co Kildare last year is now out of hospital. Kym Owens, 18, was discovered on a footpath-near her student accommodation in the Moyglare Abbey Estate-last November-with severe head injuries. Ms Owens was just off a bus after-visiting her family in Castleblaney, Co Monaghan when the incident happened. Garda�� have confirmed she has now been discharged from hospital. They say an investigation into the circumstances surrounding the incident is continuing.", -1508,2017/2/24,http://www.rte.ie/news/2017/0224/855024-4-000-customers-without-power-overnight/,"3,000 customers without power overnight after Storm Doris",,"Around 3,000 customers in areas worst-affected by Storm Doris have been without power overnight. As of 8pm-last night there were 8,000 electricity customers without power due to over 800 separate faults. The remaining outages are largely due to individual faults in pockets stretching from Castlebar and Sligo across to Drogheda and-Dundalk, including parts of Cavan and Longford. 56,000 customers were without power-at one stage yesterday in the aftermath of the storm, which had gusts of over 100km/hr. A snapshot of power faults as of 6am", -1509,2017/2/24,http://www.rte.ie/news/2017/0224/855025-uk-by-election-conservatives/,Lost Labour seat to heap more pressure on Corbyn,,"The British Labour party has suffered a humiliating by-election defeat after losing a seat it has held since the 1980s to the Conservatives. The Cumbrian seat has been held by the party since it was formed in 1983 but Tory Trudy Harrison won it by 2,147 votes in a historic victory. It is the first time a governing party has taken a seat from the opposition for decades. Ms Harrison polled 13,748 votes to 11,601 for Labour's Gillian Troughton. The stunning Tory victory will heap pressure on Jeremy Corbyn over his divisive leadership of the party. Labour's majority in the constituency at the general election was just 2,564. But for an opposition party to lose a seat to the party of power in a mid-term vote is extremely rare. The last time it happened was the 1982 Merton, Mitcham and Morden by-election, although technically it was a Conservative gain from SDP as the sitting MP had defected from Labour to the SDP before the poll. Before that, the closest comparable case was Sunderland South in 1953. Labour earlier held Stoke-on-Trent Central after seeing off a concerted challenge from Ukip leader Paul Nuttall. But Mr Corbyn admitted the party had failed to get its message through in Cumbria. He said: ""Labour's victory in Stoke is a decisive rejection of Ukip's politics of division and dishonesty. ""But our message was not enough to win through in Copeland. ""In both campaigns, Labour listened to thousands of voters on the doorstep. ""Both constituencies, like so many in Britain, have been let down by the political establishment. ""To win power to rebuild and transform Britain, Labour will go further to reconnect with voters and break with the failed political consensus."" The Conservatives increased their vote share by more than 8% in Copeland, while Labour's was down by nearly 5%. Ms Harrison said her victory showed ""the people are ready for change"". She told Sky News: ""I think we ran an extremely positive campaign and it was a campaign that represented the needs of this area. ""And I know this area because I have lived here all of my life. ""I think that, and the combination of Jeremy Corbyn's views on nuclear in an area which is so dependent on Sellafield and on Moorside, contributed to my win tonight."" In Stoke, Gareth Snell secured a comfortable win of 7,853 to his challenger's 5,233, to be elected as the city's new MP. Ukip campaigned hard in the constituency in the hope of capitalising on its overwhelming support for Brexit. But Mr Nuttall's campaign was hit by a series of setbacks, including being forced to apologise for a false claim on his website that he lost ""close friends"" in the Hillsborough disaster. Mr Snell also faced a rocky campaign after it emerged he had described Jeremy Corbyn as an ""IRA-supporting friend of Hamas"" and called Brexit a ""massive pile of s**t"". But the seat has been held by Labour since it was created in 1950 and the party secured a 5,179 majority in 2015. Labour secured a 2,620 majority but its vote share fell by around 2%, while Ukip's went up by the same amount. Mr Nuttall said Ukip was ""not going anywhere"" and insisted the party's ""time would come"". ""There's a lot more to come from us,"" he said. ""We are not going anywhere, I'm not going anywhere.""", -1510,2017/2/24,http://www.rte.ie/news/2017/0224/855017-bosnia/,Bosnia to appeal UN court's ruling clearing Serbia of genocide,,"Bosnia is to ask the United Nations' top court to review its 2007 ruling that cleared Serbia of genocide during the 1990s civil war. Bakir Izetbegovic, a member of Bosnia's tripartite presidency, said the request will be submitted before 26 February, when the ten-year deadline for appealing expires.- The appeal will be initiated despite a lack of consent from his Croat and Serb counterparts in the presidency. Many officials in Bosnia had argued against the move, saying it could spark a new political crisis in the country. Some Bosnian Serbs have said they will consider a boycott of central institutions over the move to show their opposition. However, Mr Izetbegovic-argued there was no need for the presidency to decide since it had been requested by a lawyer the presidency appointed in 2002. The UN court ruled in 2007 that the 1995 massacre of 8,000 Muslim men and boys by Bosnian Serb forces in Srebrenica was genocide, but cleared Serbia of responsibility for the killings.- The International Court of Justice said there was not enough evidence to suggest that the Serbian government was directly responsible. Srebrenica was Europe's worst single atrocity since World War II. The ICJ did find, however, that Serbia, which gave political and military backing to Bosnian Serbs, had breached international law by failing to prevent the slaughter. Mr Izetbegovic has said Bosnia has ""new arguments,"" notably those presented during the trial of Ratko Mladic. The Bosnian Serb wartime army chief is awaiting judgment at a UN tribunal.", -1511,2017/2/24,http://www.rte.ie/news/2017/0224/855023-nuclear/,Trump wants US to have more nuclear weapons,,"President Donald Trump has said he wants to ensure the US-nuclear arsenal is at the ""top of the pack,"" saying the United States has fallen behind in its weapons capacity. In a Reuters interview, Mr Trump also said China could solve the national security challenge posed by North Korea very easily if they wanted to, increasing the-pressure on Beijing to exert more influence to rein in Pyongyang. In his first comments about the US-nuclear arsenal since taking office on 20 January,-Mr Trump was asked about a December tweet in which he said the United States must greatly strengthen and expand its nuclear capacity. President Trump said he would like to see a world with no nuclear weapons but expressed concern that the United States had fallen behind on nuclear weapon capacity. Russia has 7,000 warheads and the United States, 6,800, according to the Plough shares Fund, an anti-nuclear group. The new strategic arms limitation treaty, known as New START, between the United States and Russia requires that by 5 February 2018, both countries must limit their arsenals of strategic nuclear weapons to equal levels for ten-years.", -1512,2017/2/28,http://abcnews.go.com/Politics/donald-trump-set-make-biggest-speech-joint-address/story?id=45787395,Donald Trump set to make his 'biggest speech yet' in joint address to Congress,,"President Donald Trump is set to make what his team is billing as ""his biggest speech yet"" when he gives a joint address to Congress on Tuesday night. Few specific details about the speech have been released, but Trump is set to deliver it from the House Chamber at 9:00 p.m. A list of talking points about the speech was provided to ABC News by someone who received it from the White House and they give some insights into the topics he may touch on in his speech. Tax and regulatory reform, improvements to the workplace for working parents, ""the disaster of Obamacare,"" education access, ""a great rebuilding of the American military and commitments to veterans are listed as topics that Trump is expected to discuss, noting that they are areas in which the president wants to work with Congress. White House press secretary Sean Spicer said Monday that the theme of the speech will be ""the renewal of the American spirit."" Without revealing specific talking points, Spicer said that it will present Trump's ""optimistic vision"" and his ""bold agenda."" On Monday, Trump's team sent out an email to supporters asking for their ""input on the direction of our country"" ahead of what they called his State of the Union address. The email called Tuesday's speech ""his biggest speech to date.""", -1513,2017/2/28,http://abcnews.go.com/Politics/storylines-watch-president-trump-addresses-congress/story?id=45685555,Storylines to watch when President Trump addresses Congress,,"The White House is promising an ""Aptimistic vision""?and a ""bold agenda""?from President Trump when he speaks in front of a joint session of Congress Tuesday night. This president, of course, knows prime time. But this will be a speech unlike any he has given before. Here is a glimpse at some of the storylines to watch Tuesday night: Tuesday's address begins a new phase of the Trump presidency -""?a part where congressional buy-in is no longer optional. Members of Congress are growing desperate for answers from the White House on key policy priorities, starting with Obamacare, immigration, and the border wall as well as tax reform, infrastructure and trade. Trump has thus far left the legislative heavy lifting to congressional leaders who have been alternately liberated and frustrated by the lack of White House guidance. That will need to change starting Tuesday night, where Trump's first speech to an assembled Congress will force him to put legislative meat on the rhetorical bones that haven""t grown much since the campaign. The most immediate -""?and perhaps most consequential -""?policy area where the president needs to get specific is on healthcare. ""repeal and replace""?carries less meaning than ever as a plan now that we'r five weeks into the GOP's full control of Washington. Trump has been decidedly vague, and sometimes contradictory, in his pronouncements about wanting to expand health care access, bring down costs and repair insurance markets. ""nobody knew that healthcare could be so complicated,""?the president declared on Monday, leaving aside the fact that everybody has always sort of known that. The conservative base is getting restless. And millions of Americans who rely on Obamacare or its market reforms are getting rightfully anxious. Between the inauguration, presidential speeches, White House and Mar-a-Lago meetings, and even a post-election campaign speech, President Trump has not yet faced a crowd that wasn""t either hand- or self-selected as generally supportive since he took office. (That is, unless you count his press conferences, where the president has faced down those whom he considers the ""Apposition party.""? Assuming boycotts don""t thin their ranks, almost half the room in the House chamber will be actual members of the opposition party -""?the Democrats, who are feeling intense pressure from their base not to cooperate with anything the president proposes. Will any of them try something designed to get under Trump's skin? Back to the other opposition party, will Trump keep up his anti-media broadsides in front of Congress -""?and a national TV audience? President Trump has stretched more truths -""?and perpetrated more outright falsehoods -""?than your typical new president. Now comes a new forum: A speech to a joint session of Congress, where even small factual errors have had the potential to launch congressional investigations in the past. With little visibility surrounding the White House's fact-checking operation, it remains unclear whether the president will engage in the exaggerations and mistruths that have littered so many of his speeches, to say nothing of ""Alternative facts.""?Will he claim ""? without evidence -""?to have rightfully won the popular vote because of widespread fraud? Will his statistics on jobs, immigration, trade, and military might stand up to scrutiny? Can a speech go by where he doesn""t mention -""?or overstate ""? his Electoral College margin? The Trump White House has gone out of its way to keep conservatives happy, with a Supreme Court selection and a high-profile speech at the Conservative Political Action Conference just two data points in a strategy of base maintenance. Expect the president to trumpet early promises kept, and press for a quick confirmation vote for Judge Neil Gorsuch. But how conservative will the president want to come across in this setting? His base remains behind him, but the broader public appears somewhere between skeptical and hostile about his leadership. Any explicit outreach to Democrats will be closely watched ""? yet could prompt quick blowback. One very big campaign story churns on, and is threatening to overshadow all in the early months of a Trump presidency. Calls for an independent investigation into the Trump camp's ties with Russia, coupled with the president's kind words about Vladimir Putin, leave Russia as the dominant foreign-policy storyline coming in to Tuesday. Trump appears unlikely to mention the swirling controversy, but it's all that Democrats -""?and now even a few Republicans ""? want to talk about when it comes to foreign policy. Any national security pronouncements that come from the president will be viewed through the lens of Russia. And body language between the president and congressional watchdogs on the House floor will be freeze-framed and scrutinized. The out-of-power party's formal television response is typically a chance to highlight a rising star. Not so this year, with the selection of 72-year-old former Kentucky Gov. Steve Beshear to be the Democrats""?most prominent spokesperson for this one night. Beshear is a moderate from a deep-red state that happens to also be home to Senate Majority Leader Mitch McConnell. More relevantly for his likely message, he presided over one of the biggest success stories of Obamacare, with Kentucky's health care exchange and Medicaid expansion. The Spanish-language response will come from Astrid Silva, an immigration activist and so-called DREAMer who benefited from the Obama administration's leniency toward undocumented immigrants who were brought to the United States as children. The choices of Beshear and Silva suggest that Democrats want to engage Trump on policy more than personality. Nothing has been quite what it's been in the past under President Trump. Why should the normally staid pageantry of a joint-session speech be any different? There will be a teleprompter, but no guarantee that he'll stick to it. The world will be watching for any distinctly Trump flourishes, and whether anything he says will bring Democrats to their feet ""? or keep Republicans off of theirs. Then there are questions of family, including how many Trump children will be in attendance. It's also a high-profile night for first lady Melania Trump, who will be making one of her first official appearances in hosting guests in her box in the House chamber.", -1514,2017/2/28,http://abcnews.go.com/Politics/trumps-joint-address-guests-include-relatives-people-killed/story?id=45796405,Trump's joint address guests include relatives of people killed by undocumented immigrants,,"President Donald Trump and first lady Melania Trump will invite three relatives of victims of deadly crimes committed by undocumented immigrants to the president's joint address before Congress on Tuesday. The White House guest list includes Jessica Davis and Susan Oliver, widows of California police officers killed in the line of duty by a person living in the country illegally, and Jamiel Shaw Sr., whose son was shot by an undocumented immigrant. The guests highlight the president's focus on crimes allegedly committed by immigrants in his push for tighter immigration controls. Kicking off his presidential campaign back in 2015, Trump created a controversy when he said immigrants from Mexico was were ""bringing crime"" and ""they'r rapists."" Shortly after taking office, Trump issued an executive order directing the Department of Homeland Security to publish weekly lists of ""Criminal actions committed by aliens and any jurisdiction that ignored or otherwise failed to honor any detainers with respect to such aliens.""?But a number of scientific studies conducted over the past several years contradict the idea that immigrants are responsible for a disproportionate share of crime. The research concludes that immigrants are not more likely than U.S.-born individuals to take part in crime, Christopher P. Salas-Wright, an assistant professor at Boston University's School of Social Work, told Politifact in 2016. ""Again and again, we see evidence that they are not,"" Salas-Wright said. ""In fact, it's the opposite."" A 2016 study published in the Journal of Quantitative Criminology actually suggests that communities that recorded significant increases in immigration had a sharper reduction in crime compared to areas that had less immigration. The Cato Institute, a libertarian think tank, called the research on immigrants and crime ""fairly one-sided,"" noting that ""with few exceptions, immigrants are less crime prone than natives or have no effect on crime rates."" ABC News' Jim Avila and Alisa Wiersema contributed to this report. ", -1515,2017/2/28,http://abcnews.go.com/Politics/trump-suggests-obama-town-hall-protests/story?id=45793201,Trump suggests Obama was 'behind' town hall protests,,"President Donald Trump accused former President Barack Obama of being ""behind"" the protests that Republican members of Congress have encountered at town hall meetings across the country. The allegation came during the president's interview on Fox News' ""Fox & Friends,"" clips of which were released Monday. Interviewer Brian Kilmeade first states that Obama's ""organization seems to be doing a lot of the organizing [of] some of the protests that a lot of these Republicans are seeing around the country and against you."" Trump is then asked, ""Do you believe President Obama is behind it, and if he is, is that a violation of the so-called, unsaid, president's code? ""No, I think he is behind it,"" said Trump. ""I also think it's politics, that's the way it is."" The organization referred to is Organizing for Action, which describes itself on its website as ""a non-partisan, issue advocacy organization committed to growing the grassroots movement by training, educating, and activating civically engaged community members across the country."" The group was founded in the aftermath of Obama's 2012 reelection and occupies the digital spaces once owned by the campaign. Its chairman is Jim Messina, who was Obama's deputy chief of staff from 2009-2011. The organization advocates for the positions held by the 44th president, but as a 501(c)(4) nonprofit, may not directly support political candidates. ""I think that President Obama is probably behind it because his people are certainly behind it,"" Trump added. ""In terms of him being behind things, that's politics and it will probably continue. Organizing for Action's website links to the Town Hall Project, a separate, open-source group that compiles a list of events featuring lawmakers and encourages citizens to attend. The Town Hall Project's list includes events with both Republican and Democratic legislators. There is no evidence that the project has any direct relationship with Obama. Presidents traditionally abstain from direct comment on the actions of their successors. Following the 2016 election, Obama repeatedly said he wished to aid in a smooth transition to the Trump administration.", -1516,2017/2/28,http://abcnews.go.com/US/betsy-devos-statement-black-colleges-sparks-uproar/story?id=45796029,Betsy DeVos statement on black colleges sparks uproar,,"Angry social media users flew into an uproar Monday evening after Education Secretary Betsy DeVos issued a statement that some said ignored the context under which historically black universities were created. The statement called historically black colleges and universities (HBCUs) ""real pioneers when it comes to school choice,""?and came shortly after President Donald Trump held a meeting with several HBCU leaders on Monday. Some social media users said DeVos ignored the history of how black Americans were denied access to higher education. Meanwhile, others said the statement applauded the segregated Jim Crow education system for giving black students ""more options.""?The hashtag ""hBCUs""?trended on Monday evening and was briefly the most-mentioned hashtag on the social networking platform. Some argued that the statement presents HBCUs as if they were created as a better option to traditionally white universities. The Department of Education lays out on its website that HBCUs were established because ""where was no structured higher education system for black students.""?""At a time when many schools barred their doors to black Americans, these colleges offered the best, and often the only, opportunity for a higher education,"" the Department of Education notes on its website. President Trump has said he will help HBCUs as a part of his so-called New Deal For Black America plan. Trump is expected to sign an executive order on historically black colleges and universities later on Tuesday. Thank you to the great presidents of our #HBCUs for their commitment to higher education. Read more here: https://t.co/m2Adyvvu6a pic.twitter.com/zjXWSX9cdE A senior White House official says this move will allow the initiative to work with all the different executive agencies and ""serve as a strategic partner to the president's urban agenda,""?with the full force of the White House behind it. However, the official said the order should be viewed as more of a framework and ""infrastructure""?and not a policy roll-out, which will come at a later time. This #BlackHistoryMonth, @POTUS & I thank the presidents of our Historically Black Colleges & Universities for their commitment to higher ed pic.twitter.com/HPBrAgh9Ti DeVos is delivering the keynote address Tuesday at an HBCU event at the Library of Congress. ABC News' Katherine Faulders contributed to this report.", -1517,2017/2/28,http://abcnews.go.com/Politics/wireStory/billionaire-heads-confirmation-commerce-secretary-45773033,Senate confirms billionaire investor as commerce secretary,,"The Senate on Monday confirmed billionaire investor Wilbur Ross as commerce secretary as President Donald Trump adds to his economic team. The vote was 72-27. Breaking with Republican orthodoxy, Ross said the Trump administration will work quickly to re-do the North American Free Trade Agreement. That's the massive trade pact with Canada and Mexico that has boosted trade but still stings laid-off workers across the Midwest. Senators from both political parties were deferential to Ross at his nearly four-hour confirmation hearing, which was much more subdued than the confirmation hearings of other Trump nominees. Former commerce secretaries have praised him, including one who served under former President Barack Obama. ""Mr. Ross will bring decades of business, entrepreneurial and civic experience to this important position,"" said Sen. John Thune, R-S.D., chairman of the Commerce Committee. ""I believe his extensive management experience in the private sector, and his understanding of the challenges faced by workers and businesses alike, will equip him well for the job of leading the Department of Commerce."" Sen. Elizabeth Warren of Massachusetts criticized Ross' business ties to Russia and the way he ran a mortgage lender during the housing crisis. ""Mr. Ross has extensive ties to Russia. He plans to keep making money from his major oil shipping companies while working as Commerce Secretary. He's made billions off the backs of struggling home owners,"" Warren said Monday. ""He is practically a cartoon stereotype of a Wall Street fat cat."" As part of his ethics agreement, Ross is giving up his position at Diamond S. Shipping, but he will retain a stake in the company, which ships petroleum and other products. As part of the agreement, Ross has promised not to take any action as commerce secretary that would benefit any company in which he has a financial interest. At his confirmation hearing, Ross was not asked about business ties to Russia or his work as a mortgage lender, and he did not address the issues. Senators did note that Ross is divesting from much of his business empire. Worth an estimated $2.9 billion, Ross has extensive business ties around the globe. In 2000, he founded WL Ross & Co., a private equity firm. As part of his ethics agreement, Ross will divest from the firm. So far, the Senate has confirmed 15 out of 22 Trump Cabinet or Cabinet-level picks requiring confirmation. Senators also moved forward Monday on Trump's nomination of Montana Rep. Ryan Zinke to lead the Interior Department, voting 67-31 to limit debate. A final vote on confirmation could occur on Tuesday or Wednesday. During the presidential campaign, Trump criticized U.S. trade deals, including NAFTA. Trump's stance on trade is at odds with many Republicans in Congress, but it endeared him to some voters in the Midwest who believe trade deals cost American jobs. NAFTA was negotiated and signed by President Bill Clinton, with broad support among Republicans in Congress. Ross said all free trade agreements should be systematically re-opened every few years to make sure they are working in the best interests of the U.S. Ross said he is pro-free trade but noted his close relationship with the United Steelworkers union as proof that he will fight to protect American jobs. The union has endorsed him. The commerce secretary has several roles in promoting American business interests in the U.S. and abroad. The department handles trade issues, working to attract foreign investment to the U.S. The department also oversees agencies that manage fisheries, weather forecasting and the Census Bureau, which will conduct a count in 2020. Ross said he has experience at that agency; he was a census-taker while he attended business school. ""?Follow Stephen Ohlemacher on Twitter at: http://twitter.com/stephenatap", -1518,2017/2/28,http://abcnews.go.com/Politics/department-justice-withdraws-part-voter-id-lawsuit-texas/story?id=45787874,Department of Justice withdraws from part of voter ID lawsuit in Texas,,"The Department of Justice has just dropped out of a portion of a voting rights lawsuit in Texas that could signal a shift in stance on the issue since Jeff Sessions was sworn in as attorney general. The case at the heart of this latest legal drama centers on voter identification laws that were put in place in Texas in 2011 that require voters to have one of seven forms of state-approved ID -- gun permits are an acceptable form of ID, but college IDs are not. The law was controversial because voting rights groups -- and the DOJ under the Obama administration -- argued that the law discriminated against minorities who may not have those types of ID. Prior to today, the DOJ had been working with a number of voting rights advocacy groups, such as the Brennan Center for Justice, in bringing the suit against the state of Texas over the legality of the voter ID requirements. Now, however, the DOJ has withdrawn from part of the lawsuit, according to a filing obtained by ABC News, and even though the suit will carry on because of the other advocacy groups that are part of the case, it is being seen as a possible shift in policy. ""I have no reason to believe that this will affect the outcome of this case, but it is a disturbing signal from the Department of Justice,"" said Wendy Weiser, the director of the Brennan Center's democracy program. Weiser elaborated on her comments, telling The Associated Press: ""The more vigorously the Department of Justice pursues illegal discrimination when it happens, the more deterrent an effect it has. When they pull back from vigorous enforcement, it may have an unfortunate and pernicious effect of sending a green light to states that there's going to be less policing [of discriminatory laws]."" Weiser explained to ABC News that there are essentially two different parts of the lawsuit: The first contends that the voter ID law in Texas discriminates against minority voters (that is, the effect of the law), while the second part of the lawsuit asserts that the law's intention was to discriminate against minority voters (that is, the intent of the law). The district court ruled in favor of the DOJ and the plaintiffs on both counts, but the suit then went up to a circuit court on appeal. At that point, Weiser said that the circuit court deemed that ""yes, you win"" on the first part of the suit, but the court ruled that there would be ""a do-over"" on the second part regarding the law's intent. In today's filing, the DOJ withdrew from that remaining part of the suit that argues that the voter ID laws were intentionally discriminatory. In the filing, the DOJ said it was dropping its claim that Texas' measure was crafted with the purpose of disenfranchising minority voters because state lawmakers are considering a proposal to revise the law. The Republican-backed bill would make permanent the court-ordered changes imposed for the November election, but its fate won't be known until closer to the end of Texas' legislative session in May. ""Thus, there is no basis for further judicial action at this juncture, when the State is 'acting to ameliorate the issues raised' in this case and has requested reasonable time to do so,"" the agency argued. Justice Department spokesman Mark Abueg said the agency was preparing a brief detailing its rationale for the move. The case will continue with the other plaintiffs continuing to pursue the lawsuit. A hearing is scheduled for Tuesday. ""The Department of Justice, for a very long time, has been arguing that Texas intentionally discriminated, and has built a very strong case,"" Weiser said. ""There clearly has been a shift in the department's position and strategy in the new administration. Beforehand, it was vigorously prosecuting the intent claim, and now it is stepping back from enforcing that claim, so there's a real fear that this could signal a retrenchment in voting rights enforcement by the Department of Justice and it's certainly a retrenchment in this particular case,"" she added. The Associated Press contributed to this report.", -1519,2017/2/28,http://abcnews.go.com/US/spacex-announces-planned-private-trip-moon-2018/story?id=45791246,SpaceX announces planned private trip around moon in 2018,,"SpaceX, the space technology and exploration company founded by billionaire Elon Musk, plans to fly a pair of civilians around the moon and back to Earth in 2018, the company announced Monday. According to Musk, SpaceX was approached by the two individuals who expressed interest in the mission, which is expected to skim the moon and carry them into deep space on the company's Dragon Capsule and Falcon Heavy rocket after launch from Kennedy Space Center in Florida. A press release from SpaceX noted that the pair ""have already paid a significant deposit to do a moon mission."" Musk declined to reveal the clients' identities. The company said that additional information about the team will be released following approval, health and fitness tests. SpaceX is planning to send an unmanned Dragon craft to the International Space Station later in the year before launching a manned mission in 2018. The company has contracted by NASA to continue missions to the space station at a rate of four per year. The trip around the moon is scheduled to take place after SpaceX has completed successful manned missions for NASA. We commend our industry partners for reaching higher. We will work closely w/ @SpaceX. More: https://t.co/RpyAEWjicz https://t.co/fkGHZfloXG ABC's Gina Sunseri contributed to this report.", -1520,2017/2/28,http://abcnews.go.com/US/duo-prison-time-racial-slurs-death-threats-black/story?id=45788918,"Duo gets prison time for racial slurs, death threats at black child's birthday party",,"A Georgia judge sentenced a couple to prison time today for their involvement in a 2015 incident in which a group they were part of waved Confederate flags, shouted racial slurs and made armed threats, all at adults and children attending a child's party outside of Atlanta. Jose Torres, 26, and Kayla Norton, 25, cried today in a Douglas County court as they were sentenced to 20 years and 15 years in jail, respectively. In July 2015, the parents of three children were part of a group of Confederate flag supporters calling themselves Respect the Flag. For two days that summer, the group rode around in pickup trucks threatening black families and calling them racial slurs across two counties in the Atlanta suburbs. The group targeted black families shortly after the Charleston church massacre because its members were upset that South Carolina had responded to the brutal slayings by removing the Confederate battle flag from various sites. Philadelphia Jewish community feels 'threatened' after gravestones toppled At one point, the group pulled up to a birthday party for a black child in Douglasville. The group's members allegedly threatened to kill the partygoers, with Torres confronting the family with a gun that Norton had loaded. The family called the police. Video of the incident was posted on YouTube by the Southern Poverty Law Center. In an indictment, Torres and Norton, among others, were charged with aggravated assault, terroristic threats and violation of the state's Street Gang Terrorism and Prevention Act. During the pair's sentencing today, the judge said the pair's actions ""were motivated by racial hatred,"" according to The Associated Press. Through tears, Norton addressed the relatives of the child whose birthday she and others disrupted. ""That is not me. That is not me. That is not him,"" Norton said in court after her sentencing. ""I would never walk up to you and say those words to you. And I am so sorry that happened to you."" Four people were charged with felonies, according to ABC affiliate WSB-TV.com; however, the other two people pleaded guilty and got shorter prison terms. The judge, saying Torres and Norton had committed a hate crime, also banned them from entering Douglas County after they were released from prison.", -1521,2017/2/28,http://abcnews.go.com/US/wireStory/california-dams-outflow-stopped-clear-debris-45773643,California dam spillway water shut off to clear debris,,"California water authorities stopped the flow of water down the Oroville Dam's crippled spillway Monday, allowing workers to start clearing out massive debris that's blocking a hydroelectric plant from working. Water will not be released for the next five to seven days, in the hopes that workers can remove between 500,000 and 1 million cubic yards of debris by barge and excavator, said Lauren Bisnett, spokeswoman with the Department of Water Resources. ""That is certainly the goal,"" she said. ""They've got to get down and see what's going on."" Water managers turned to the emergency spillway for the first time in the 48-year history of the country's tallest dam after a chunk of concrete tore out the main spillway following heavy rains. But the flow of water ripped through a road below and carved out deep chasms in the ground, leading authorities to evacuate nearly 200,000 people Feb. 12 for two days for fear the emergency spillway could fail. Monday's slowdown started at 6:45 a.m., going from 50,000 cubic feet per second to zero. The water was shut off by 2 p.m. Removing the debris will bring officials one step closer to restarting the Hyatt Power Plant, which in turn will help remove water from the dam to make way for more water in advance of the spring runoff, Butte County Sheriff Kenneth Honea said Monday. Mountains have swelled with a massive snowpack in Northern California this winter. ""We're in it for the long haul and I've asked the public to be aware of that and be patient as we go forward,"" Honea said. The average inflow into Oroville Dam this month was 570 percent of the average for February, the department said. The reservoir's water level has been reduced nearly 60 feet since it reached capacity at 901 feet earlier this month, the department said.", -1522,2017/2/28,http://abcnews.go.com/Entertainment/wireStory/part-rio-carnival-float-collapses-injuring-15-45795208,"Part of Rio Carnival float collapses, injuring 12",,"The top of a float collapsed during Rio de Janeiro's world famous Carnival parade early Tuesday, injuring at least 12 people, officials said. The incident involved the second float of the popular samba school Unidos da Tijuca, themed around the Carnival in New Orleans. Revelers cried on the pavement and in the stands as injured people were removed by rescuers. Police were investigating the cause of the accident. Rio state health secretary said in a statement that among the 12 injured at the city's Sambadrome, nine were taken to local hospitals. Health officials also said eight people sought medical attention due to stress. Rio City hall said two people were in serious condition. One suffered a head trauma, according to one doctor. The parade had to be stopped for almost 25 minutes so the injured could get medical attention. The show was allowed to proceed. Reveler Felix Souza said he was dancing next to the float when the incident happened. ""We heard a burst on the top,"" he said. ""People started screaming, we didn't understand what it was. It was a moment of despair for all there."" Ailton Freitas, a director at Unidos da Tijuca, said their floats had been tested repeatedly before the Carnival. ""We tested three times a week with more weight than we carried today. When the parade approached we started doing those tests every day. We are even more shocked than you all are,"" Freitas told journalists. ""I don't know what is happening, but Rio's Carnival is not being blessed this year."" Minutes earlier a smaller incident happened with samba school Mocidade Independente. A platform detached from their fourth float and dropped a reveler to the ground. The samba school said she was not injured. On Sunday, a float belonging to samba school Paraiso de Tuiuti crashed and injured at least 20 people, including three seriously. Following that accident, organizers also decided to proceed with the show.", -1523,2017/2/28,http://abcnews.go.com/US/dead-small-plane-crashes-california-homes/story?id=45792540,At least 3 dead after small plane crashes into California homes,,"At least three people were killed and two were hospitalized after a small plane crashed into two homes in Riverside, California, according to officials. The injured victims, both adults in their 30s and 40s, were transported to separate hospitals and are listed in critical condition, Riverside Fire Chief Michael Moore said in a press statement. The National Transportation Safety Board will continue its search and investigation later on Tuesday, More said. The were no residents killed in the accident. The Federal Aviation Administration said the Cessna 310 crashed under unknown circumstances about a half-mile northeast of Riverside Municipal Airport. The plane was headed to San Jose from Riverside, according to the FAA. The people on board the plane were coming from a cheer conference at Disneyland, Moore said. Shannon Flores, a teacher at a nearby school in Riverside, told KABC-TV she and her students saw the plane from their building. ""It was just flying very, very low,"" she said. ""We knew it shouldn't have been flying that low and that it was definitely going down."" ABC News""?Alex Stone and Marilyn Heck contributed to this report.", -1524,2017/2/28,http://abcnews.go.com/International/wireStory/chinas-coal-consumption-falls-3rd-year-row-45795242,China's coal consumption falls for 3rd year in a row,,"China's consumption of coal fell in 2016 for a third year in a row, official data showed Tuesday, as the world's top carbon polluter has emerged as a global leader in addressing global warming. The National Bureau of Statistics said the consumption of coal, a major source of heat-trapping carbon dioxide emissions, fell by 4.7 percent last year, according to preliminary calculations. The bureau said the share of coal in China's total energy consumption mix fell to 62 percent in 2016 from 64 percent the year before. A revised figure in the China Energy Statistical Yearbook put the 2015 figure at 63.7 percent, but Tuesday's report referenced the preliminary figures reported last year. While China is the world's biggest consumer of coal, its consumption levels have dropped as economic growth slows to its lowest level since 1990. With its major cities gripped by choking air pollution, China has also aimed to reduce coal usage in favor of natural gas and renewable energy including hydro, wind and solar power. Directives in January from the National Energy Administration ordered the cancellation of about 100 coal-fired power plants planned across the country. Construction had already started on some. As the world's second-largest economy, China is the top emitter of man-made carbon dioxide emissions, with the globe's leading economy, the United States, in second place. China's tackling of climate change in collaboration with the United States under President Barack Obama was touted by Beijing and Washington as a bright spot in a relationship beset by trade and security tensions. Crucially, the two countries joined last year to endorse the landmark Paris Agreement on climate change. That limited partnership has now grown uncertain under new President Donald Trump, who has called climate change a Chinese hoax and pledged to reverse Obama's efforts to curb emissions from coal-fired power plants. Trump said during his campaign that he would ""cancel"" the Paris Agreement and withdraw American tax dollars from U.N. global warming programs. Greenpeace said an analysis of data from the National Energy Administration showed an expected ""significant drop"" in China's CO2 emissions of 1 percent this year, in what it said would be the fourth consecutive year of zero growth or a decline. The decline ""reinforces China's growing status as a global climate leader, and sends a strong signal to U.S. President Trump that his dirty energy agenda will send the American economy in the wrong direction,"" Greenpeace said. Lauri Myllyvirta, senior coal campaigner for Greenpeace, said China's stable and falling carbon emissions have ""completely revolutionized the prospects for bringing global emissions and bringing climate change under control."" ""The two reasons why global emissions have been stable for the past three years are no growth in China and rapid fall in emissions in the U.S., so that really shows what can be accomplished when these two countries work together,"" Myllyvirta said. China's decline in coal use, however, did not signal an overall drop in energy consumption. The country's total use of energy rose by the equivalent of 4.36 billion tons of standard coal, an increase of 1.4 percent over the previous year, the statistics bureau said. Consumption of crude oil increased by 5.5 percent and natural gas by 8 percent, the bureau said. Overall consumption of electricity from all sources rose by 5 percent, it said. Consumption of renewable sources accounted for 19.7 percent of the total energy mix, up 1.7 percent from the year before. While solar and wind power are growing more prominent, most renewable energy comes from dams whose environmental impact is beginning to draw more attention. China has suspended approvals for new hydroelectric projects in the mountainous southwestern province of Yunnan following concerns about the impact on the local ecosystem. Meanwhile, production of coal fell by 9 percent to 3.41 billion tons last year. China has for years been closing smaller, less efficient and more dangerous coal mines in a bid to boost productivity in the sector. ""?AP researcher Yu Bing and news assistant Liu Zheng contributed to this report.", -1525,2017/2/28,http://abcnews.go.com/Politics/president-trump-target-foreign-aid-propose-historic-defense/story?id=45777679,"President Trump to target foreign aid, propose 'historic' defense spending increase in budget blueprint",,"Trump administration officials are previewing details of the president's first budget blueprint, which is expected to include a boost in defense spending offset by cutbacks to foreign aid and other programs deemed lower priorities. Two Office of Management and Budget officials said in a conference call with reporters today that the passback budget being sent to Congress for review will be seen as a security budget, with a proposed increase of $54 billion in defense spending. The officials reiterated this was merely a first draft and shell of what the administration will send Congress in its formal budget request next month. Dropping by the National Governors Association meeting today, President Trump said the budget will include ""a historic increase in defense spending."" ""This budget will be a public safety and national security budget,"" he said. ""Very much based on those two, with plenty of other things, but very strong."" The two OMB officials, who were authorized by the White House to brief reporters under condition of anonymity, did not say which departments will feel the brunt of these cuts, though one said, ""There will be a large reduction in foreign aid,"" in keeping with Trump's campaign promises. When it was pointed out by a reporter on the call that foreign aid amounts to less than 1 percent of spending by the U.S., the officials said the proposed reduction should still be praised for putting Americans first. ""This budget expects the rest of the world to step up in some of the programs this country has been so generous in funding in the past,"" one official said. The officials also did not specify what the increase in defense spending would be for, instead saying that the money would be sent to the Pentagon for it to allocate. Trump also said in his remarks to the governors that the budget will include an increase in ""all spending for federal law enforcement.""", -1526,2017/2/28,http://abcnews.go.com/Health/kentucky-trump-stronghold-fear-losing-obamacare/story?id=45784424,"In Kentucky, a Trump stronghold, many fear losing Obamacare",,"Leah Briemer was recently flipping through old family photos at her Lawrenceburg, Kentucky, home, reliving old memories. Briemer can attest that life's best moments can""t be taken for granted. ""our""Leah may not be here next year""?picture,""?Briemer said, holding a photo of herself taken in 2015. ""that was not a good Christmas.""?Just weeks before that photo was taken, Briemer, a widowed mother of two and a former nurse, was given what she said felt like a death sentence. ""I was diagnosed with stage 4 metastatic breast cancer,""?she said. ""I had about two or three weeks to live without treatment.""?Briemer was lucky. She was able to start a targeted treatment for her cancer immediately. ""I had some more scans done in February of last year and they found that I was extremely fortunate that the treatment had really worked,""?she said. It was a renewed chance at life, but the treatment is very expensive. Even though it was covered by Briemer's health insurance under the Affordable Care Act, there's a chance it might not be an option for her in the future. ""If I didn""t have health insurance, I wouldn""t be alive today,""?she said. ""I'm on an every three week regimen of medications ""?that's about $40,000 a month ""?so I'm very concerned about the issues that are taking place right now.""?Watch the full story on ""Nightline"" tonight at 12:35 a.m. ET Briemer is one of the millions of Americans who are insured under the Affordable Care Act, also known as Obamacare. Former President Obama announced in March 2016 that an estimated 20 million Americans had gained health insurance since ACA was signed into law six years ago. But now with the new administration and a Republican-led Congress, the program could be in its last days because current lawmakers say they can come up with a better health care plan. Much of the criticism of the ACA program are its high premiums. But Briemer's home state of Kentucky, the land of bluegrass, bourbon, horse racing and coal mining that went for Trump this past election, has been held up as an example of Obamacare's success. Since the Affordable Care Act became law, there has been a startling drop in the uninsured rate in Kentucky. Some areas have gone from 20 percent to just 5 percent uninsured. Much of that is credited to the law's Medicaid expansion, which provided some half million low-income Kentuckians with coverage since 2013. Whitesburg, Kentucky, is a quiet town nestled in the Appalachian Mountains and close to the Virginia border ""?coal country. It has a population of 2,100 and a deep history of hard work and perseverance. ""Around here you keep a job and you do as they say no matter what because you're got to work to survive,""?said Mike Taylor, a former coal truck driver. Coal has been at the heart of the local economy for generations, but it's also the root of health issues for many. Taylor was diagnosed with ""Black Lung,""?a deadly lung disease caused by breathing in coal dust, in 2015. He is on three different inhalers and uses an oxygen tank and a nebulizer machine. When he gained insurance through the ACA's Medicaid expansion, he began seeking regular care at Mountain Comprehensive Health Corporation, a community clinic where his physician, Dr. Van Breeding, also happens to be his old high school classmate. ""these people need care,""?said Breeding, a primary care physician. ""I take care of classmates of mine everyday ""?people who I went to kindergarten with who are disabled now, who can""t work. So imagine you'r 55 years old and you'r worn out.""?""And these are the people who have been helped by the Affordable Care Act and these are the people who we can""t turn our backs on,""?he added. Breeding believes the ACA is crucial to the health of his community. His father was a coal miner, he said, so he is all too familiar with the toll Black Lung disease can take. ""We're seeing that it's a political war over health care and the collateral damage is the patient's health and life and the quality of life,""?Breeding said. ""Change the name if ""�Obamacare""?is offensive to Republicans, change the name, and call it what you will, but provide these people who are desperate, and I mean desperate, desperate for some type of health care.""?Taylor said the health insurance he has under ACA not only saved his life, but also helped his brother-in-law and his former coworkers. ""It's a good thing to have it. The insurance,""?he said. ""I think they just need to reform it.""?The success of the ACA in Kentucky in due in part to robust outreach programs. Kelly Oller is one of many outreach workers dispatched across the state to educate and enroll follow Kentuckians in health insurance. ""I like helping people and then signing people up and seeing the joy on their faces when they get affordable insurance,""?Oller said. As a Trump voter, Oller is an unlikely evangelist for Obamacare. She said she has signed up more than 1,000 people in the last three and a half years. But as open enrollment for Obamacare coverage for 2017 drew to a close on Jan. 31, Oller knows its future was unclear. Before the January deadline, Oller tried to enroll Danny Lock, who said he hadn""t had health insurance for several years and credited simple luck for having never gone to the hospital. But at the end of his application process, the ACA's enrollment website healthcare.gov was showing he would owe premiums of almost $400 a month. ""nobody can afford that,""?Lock said. This issue is happening not just in Kentucky but across the country. For many Americans like Lock, Obamacare premiums are simply too expensive. ""I""ve seen the hurt and disappointment of not being able to obtain insurance when his whole life he always had insurance through employment,""?Oller said. ""He's not able to afford signing up for coverage, and that really hurts my heart.""?Fixing the high premiums in Obamacare is one of the changes Oller was hoping for when she voted for President Trump. ""I thought he was looking to repeal it to make it better, to make it more affordable and to make premiums hopefully go down and be balanced,""?she said. ""I don""t know what's going to happen now.""?So far there have been few specifics from the White House or Congress on changes coming to the health care system, leaving people anxious about the future of their coverage. Last week, a cacophony of concerned voices around the country, from Kentucky to Arkansas to Florida, cried out at town halls, demanding answers from their Republican leaders on affordable health care options. In Kentucky, one of the law's most vocal critics is the state's current governor, Matt Bevin. His predecessor, Democratic Gov. Steve Beshear, embraced the ACA. So when Bevin, a Republican businessman and retired U.S. Army captain, took office in 2015, he began focusing on dismantling the state version. ""I thought it was a disaster from the beginning. No question,""?Bevin said. ""�One size does not fit all in anything, certainly not in something that is as critical as health care that is necessary for people to have access to.""?Bevin criticizes the high costs of Obamacare and is a staunch opponent of federal mandates. Currently, under the ACA program, people who can afford health insurance but choose not to buy it must pay a fee. ""Let's say you're a single parent and you're making $30,000 a year,""?Bevin said. ""�[You'r] required to have health care coverage now under the Affordable Care Act. Do you really think that you can afford to pay $6,000 in after tax dollars for your health care for you and your family? No.""?Bevin said a lot of the fear from the public over losing their coverage at all is ""ungrounded in reality.""?""there's nobody in America that I'm aware of, certainly no governor, Republican or Democrat, certainly nobody in the federal administration at the congressional level that I know of that is looking to make people less able to avail themselves of the health care system,""?he said. ""Everybody's looking for a solution.""?Bevin's main argument echoes the voices of many Republicans in that health care should be handled at the local level, without mandates from Washington. ""I say trust the governors,""?he said. ""I say give control to the governors and the legislatures within each respective state.""?It's those federal mandates that Bevin says have led to ""�less than desired""?results in his state. ""�Simply having health insurance does not make you healthier,""?he said. ""If you have a Medicaid card, but you can't find a doctor that will see you, how does that Medicaid card help you? You can't eat it. It's not vitamins. I'm being a little facetious. But truth be told a piece of plastic doesn't make you healthier.""?Bevin is proposing controversial changes to the state's Medicaid expansion program. His plan includes having Medicaid start charging a small monthly premium for coverage of ""�able-bodied adults""?-- coverage that is now mostly free -- and it would also allow the state to cut off Medicaid coverage to those who don""t pay the premium, which he called a ""�lockout""?provision. Bevin also proposed that his plan would offer the opportunity for people to earn ""�credits,""?which could be obtained through volunteering and could be used toward other benefits, such as dental and vision coverage. But critics of the plan say this is yet another barrier for a population that is already struggling. ""they're barely getting by on what they do have,""?Dr. Van Breeding said. ""to create more barriers is going to cause them to have worse health than they have."" ""We already have some of the most unhealthy people in United States in this area and a lot of it is because they're too proud to take a handout or to take free care,""?Breeding continued. ""And when they got insurance now they have legitimate health care, legitimate insurance. They've come in and not only come in for health problems but preventive measures.""?As the country waits for a full picture of what's to come next, many like Leah Briemer fear they may lose the safeguards that have protected them, such as coverage for people with pre-existing conditions. ""�Of course I worry about if my cancer were to come back what would happen, but now I have to add to that what would happen if I lose my health insurance,""?she said. ""�My daughter's 18. She's graduating from high school. I need to be here for my daughter. Help her get through college. Help her have a wedding. See my grandchildren be born."" She went on, ""When something's working for so many people and you decide you'r going to take it away. And you say it's horrible, it's not working for anyone, even though it is, yeah that's playing politics with my life and many others.""", -1527,2017/2/27,http://abcnews.go.com/Politics/presidents-designated-survivor/story?id=45759764,What to know about the president's 'designated survivor',,"On Tuesday, most of the nation's political elite -- from Vice President Mike Pence to House Speaker Paul Ryan -- will file into the House chamber to hear President Trump outline his national agenda. But one member of the administration definitely won't be watching in person. During major presidential addresses, the administration isolates one cabinet-level official in an undisclosed location. That person takes control if a disaster were to wipe out all those in the presidential line of succession. Usually selected by the president's chief-of-staff, the identity of the so-called ""designated survivor"" is kept secret until shortly before the event. If the president dies or is removed from office, he's succeeded by the vice president, followed by the speaker of the House and the president pro tempore of the Senate, currently Utah Republican Orrin Hatch. According to the Presidential Succession Act of 1947, the president pro tempore is followed, in order, by the secretaries of state, treasury, and defense, the attorney general, and the secretaries of the interior, agriculture, commerce, labor, health and human services, housing and urban development, transportation, energy, education, veterans affairs and homeland security. According to historians, the practice dates back to the 1960s, when the nation, rocked by the Cold War, began fearing a nuclear attack. It was not until the 1980s, however, that the survivors' identities became matter of public record. Prior to the attacks on the Twin Towers on Sept. 11, the designated survivor had a relatively relaxed evening. One survivor recalled spending the night with his daughter, while another hosted a pizza party in the White House. But post-9/11, security was beefed up: the designated survivor now undergoes hours of briefings and even practices disaster scenarios. Shortly before the president's speech, the designated survivor is whisked out of the nation's capital, accompanied by presidential-level security and a military aide carrying the ""football,"" a briefcase that houses the nuclear launch codes. During President Trump's inauguration in January, then-President Obama's secretary of homeland security, Jeh Johnson, served as the designated survivor.", -1528,2017/2/27,http://abcnews.go.com/Politics/spicer-job-arranging-pushback-russia-reports/story?id=45784545,Spicer: 'We did our job' by arranging pushback against Russia reports,,"White House press secretary Sean Spicer told ABC News' Jonathan Karl that the White House ""did [its] job"" by pointing reporters to sources who could dispute The New York Times' reporting on the Trump campaign contacting Russians prior to the election. ""I will say I think we did our job very effectively by making sure that reporters who had questions about the accuracy and claims in The New York Times, we were pointing them to experts who understood whether or not that story was accurate or not,"" Spicer told Karl. ""So, the answer is, you know, we have continued to give reporters information and sources that went to the accuracy or lack thereof of a report in a newspaper."" Spicer would not say whether he reached out to CIA Director Mike Pompeo directly to dispute the Russia reports. When pressed by Karl over whether or not a special prosecutor was necessary to restore public trust that an investigation would be independent, Spicer disputed that there's any existing evidence that an investigation is appropriate in the first place. ""It's the same stuff over and over again that we've heard for literally six months. And so the question becomes at some point, what do you need to further investigate if there is nothing that has come out?""?said Spicer. Spicer asserted that the intelligence community, House and Senate have already looked into any possible connections between the Trump campaign and Russians. ""At some point, you do have to ask yourself, what are you actually looking for? How many times do you have to come to the same conclusion before you take the answer?""?said Spicer. On Monday at the White House, reporters asked President Trump as he left a meeting with health-care executives if he would support an independent investigation into possible ties between Trump presidential campaign advisers and Russians. ""I haven""t called Russia in 10 years,""?said Trump. ", -1529,2017/2/28,http://abcnews.go.com/Politics/closer-congressional-probes-russia-alleged-trump-associate-contacts/story?id=45776711,A closer look at congressional probes into Russia and alleged Trump associate contacts,,"On Capitol Hill, it seems that not a day goes by without another lawmaker -- usually but not always a Democrat -- calling for an investigation, special prosecutor or independent commission to delve into the alleged contacts between the Trump campaign, transition and administration and Russian government officials. Sources have told ABC News that U.S. authorities were probing communications between the associates and suspected members of the Russian intelligence community ahead of the election, allegations Trump has repeatedly decried as ""fake news."" An FBI probe into the matter is ongoing. Below is a look at the existing congressional probes related to the alleged contacts, into Russia, which the intelligence community concluded orchestrated an elaborate campaign to interfere in the 2016 election, as well as the leaks to the media surrounding the stories. Senate Intelligence Committee Chairman Richard Burr, R-North Carolina, gave the first public details on his panel's inquiry on Dec. 16, before Trump was sworn in. The probe was prompted by, according to Burr's statement, ""the underpinnings of the intelligence""?that prompted the intelligence community to release a statement in October that said it ""is confident that the Russian Government directed the recent compromises of e-mails from US persons and institutions, including from US political organizations.""?It later revised its mission statement to encompass the revelations from a more detailed January assessment of Russia hacking. Republican leaders have also said they expect the committee to call former national security adviser Gen. Mike Flynn to testify about his contacts with Russian officials. Flynn resigned after misleading Vice President Mike Pence about the contacts. Democrats are criticizing Burr this week over revelations that the White House communicated with Burr and his House counterpart to rebut reports that Trump associates had contacts with Russian officials during the campaign. Over the weekend, Sen. Mark Warner, the top Democrat on the panel, said in a statement, ""I have said from the very beginning of this matter that if SSCI cannot properly conduct an independent investigation, I will support empowering whoever can do it right."" House Intelligence Committee This panel, overseen by Chairman Devin Nunes, never announced a separate investigation of Russia's actions, but acknowledged in early December that the committee had been ""Closely monitoring Russia's belligerence for years.""?Nunes also noted that it has been looking into the underlying intelligence that prompted the conclusions in the intelligence community's January assessment, including Russia's alleged meddling in the 2016 election. Nunes, a Trump transition adviser, has diverged from the Senate Intelligence Committee in saying he has no plans to investigate Flynn's conversations with Russian officials, saying in mid-February that ""we'r not supposed to be listening to American phone calls.""?He has said that he wants the FBI to investigate the leaks that have led to public reports about Trump officials' alleged contacts with suspected Russian officials. Nunes said Monday that his committee is in the early stages of its work, but that his preliminary communication with the Intelligence Community has yielded no evidence of contacts between the Trump campaign and the Russian government, although he admitted that ""ghat doesn""t mean they don""t exist.""?But California Rep. Adam Schiff said that the committee has called no witnesses or interviewed the FBI. ""We haven't reached a conclusion, nor should we, on issues of collusion because we haven't interviewed a single witness or reviewed a single document,""?Schiff said. Senate Armed Services Committee While this committee, headed by John McCain, is not formally investigating Russia's interference in the election, as is the Intelligence Committee, McCain has resolved to make cybersecurity, and by extension Russia's hacking, a big focus. ""It's all part of the larger issue of the cyber threat that we face from Russia, China and other countries. It's another form of warfare,""?McCain said on CBS in December. The committee held a hearing last month, during which Director of National Intelligence James Clapper was asked by Democratic Sen. Claire McCaskill about the president's statements that appeared to ""grash the intelligence community,""?like when he questioned their veracity by citing their ultimately incorrect assessment that Saddam Hussein harbored weapons of mass destruction. ""there's a difference between skepticism and disparagement,""?Clapper said during the Jan. 5 hearing. Senate Judiciary Subcommittee on Crime and Terrorism At the beginning of the month, Sens. Lindsey Graham and Sheldon Whitehouse, the chairman and top Democrat on the Judiciary Subcommittee, announced they would be investigating Russian efforts to influence democratic elections in the United States and abroad. ""ourgoal is simple ""?to the fullest extent possible we want to shine a light on Russian activities to undermine democracy. While some of our efforts will have to be held behind closed doors due to security concerns, we also hope to have an open discussion before the American people about Russia's strategies to undermine democracy,""?the two said in a statement. House Oversight/Judiciary Committees The chairmen of the two panels, Jason Chaffetz and Bob Goodlatte, have urged the Department of Justice Inspector General to investigate the leaks surrounding the Flynn calls with Russian officials, though they also say they are not interested in investigating Flynn himself. ""We have serious concerns about the potential inadequate protection of classified information here,""?they wrote to the DOJ IG on Feb. 15, two days after Flynn resigned. Chaffetz and his Oversight Ranking Member, Elijah Cummings, are also looking into Flynn's speaking engagements in Russia in 2014 and 2015 to determine the amount and source of any funding he received to appear, and whether he received payments from foreign sources, which would be in violation of the Emoluments Clause of the Constitution. Chaffetz has also stressed the need to look into the leaks of sensitive information from within the intelligence community.", -1530,2017/2/28,http://abcnews.go.com/Politics/top-house-republican-evidence-trump-russia-contacts/story?id=45784075,Top House Republican hasn't seen 'evidence' of Trump-Russia contacts,,"The chairman on the House Intelligence Committee said Monday that he had not seen any ""evidence"" of contacts between the Trump campaign and Russian government amid an investigation into Russian activities during the 2016 election. ""We still have not seen any evidence of anyone ... from the Trump campaign or any other campaign for that matter that's communicated with the Russian government,"" Rep. Devin Nunes, R-Calif., told reporters at the Capitol. ""that doesn't mean they don't exist but I don't have that. And what I've been told is, by many -- by many folks, is that there's nothing there,""?he added. Authorities were looking into communications between Trump associates and suspected Russian intelligence officials ahead of the election, sources told ABC News. At a separate press conference, Rep. Adam Schiff, D-Calif., the top Democrat on the House Intelligence Committee, said that it's premature to draw any conclusions on the alleged communications. ""We haven't reached a conclusion, nor should we, on issues of collusion because we haven't interviewed a single witness or reviewed a single document,""?Schiff told reporters. Schiff said it was ""Completely inappropriate""?for the White House to ask CIA officials and Republican members to knock down the report from The New York Times and that anyone receiving that request ""should politely decline.""?The New York Times recently reported that Trump associates inside and outside the presidential campaign had repeated contact with Russian intelligence officials before the election, but Trump has repeatedly derided the story as ""fake news."" ABC News sources have also disputed elements of the story, but would not offer any further details or explanation, citing the sensitive nature of the matter. One of the associates, former Trump campaign manager Paul Manafort, called the allegations ""ridiculous."" Investigations are ongoing in the House and Senate intelligence committees as well as the FBI. Nunes, who said he was conveying what he was learning from the intelligence community, said his committee is in the early stages of its work. They have set the parameters of the investigation, and are in the process of requesting materials to receive and review. Schiff told reporters he would prefer the investigation to be conducted by an independent commission or even a joint effort between the Senate and House Intelligence committees, due to a lack of resources and staff. A Trump ally who advised the transition, Nunes pushed back strongly on the suggestion that talking to a reporter at the request of the White House compromised his committee's investigation. He said he was given a phone number to call but no directions on what to say to the reporter. ""how is it compromised if I'm trying to be transparent with the press?""?he said, pointing out that he spoke frequently with reporters on Capitol Hill about the story. Nunes dismissed the idea of requesting Trump's tax returns, and did not say if he would support the appointment of a special prosecutor to investigate any alleged contacts. He also punted on the question of whether Attorney General Jeff Sessions should recuse himself from any investigations of the administration on the matter, despite his own close work with the Trump campaign. ""If...we have serious crimes have been committed, it would be something that we would consider,""?Nunes said. ""At this point, we don't have that. The only serious crimes we have are leaks that have come out of our government.""?Nunes said he was wary of leading a ""witch hunt"" against American citizens mentioned in press reports about alleged contacts between the Trump campaign and Russia. ""We can't have McCarthyism back in this place,"" he said of the congressional investigation. The California Republican also defended the former national security adviser's conversations with the Russian ambassador -- claiming that Mike Flynn was doing his job by discussing ""petty"" actions of the Obama administration in response to Russian election interference, which he did not think constituted official sanctions. He also called concerns that Flynn may have violated the Logan Act ""ridiculous."" The 1799 law, which bars individuals from communicating with foreign governments, has never been used. Flynn was asked to resign from his White House post after misrepresenting his communications with the Russian ambassador to Vice President Mike Pence and other administration officials. ABC's Mike Levine contributed to this report.", -1531,2017/2/27,http://abcnews.go.com/Politics/president-george-bush-important-free-press-power-addictive/story?id=45781428,President George W. Bush says it's important to have a free press: 'Power can be very addictive',,"During a rare interview on NBC's ""Today""?show, former President George W. Bush -- who seldom commented on political issues during Barack Obama's presidency -- offered his critique of the Trump administration's policies and the president's contentious relationship with the press. The nation's 43rd president was on the show to promote his new book, ""Portraits of Courage,""?a series of paintings of wounded veterans. Here are the key highlights from his interview: Bush calls for answers on possible connections between Russia and Trump campaign Bush said he supports an investigation that explores possible links between Russia and the Trump campaign. ""I think we all need answers,""?Bush told Matt Lauer. Bush, however, did not say whether or not a special prosecutor is needed to conduct an investigation, instead leaning on any recommendation that comes from Senate Intelligence Chairman Sen. Richard Burr. ""�I'm not sure the right avenue to take. I am sure, though, that that question needs to be answered,""?he added. Bush defends the media as a check on ""addictive"" power Bush critiqued Trump's feud with the media, calling it ""indispensable to democracy.""?""Power can be very addictive. And it can be corrosive. And it's important for the media to call to account people who abuse their power.""?Bush said that during his time as president he tried to convince Russian President Vladimir Putin of the importance of an independent press. Bush on Trump's immigration policy When asked if the Trump administration's executive order banning the immigration of people from seven Muslim majority countries makes it harder for the United States to fight terrorism, Bush replied, ""It's hard to fight the war on terrorism if we're in retreat. And I think we learned that lesson.""?""If the United States decides to pull out before a free society emerges, it's going to be hard to defeat them,"" he said. ""The enemy is very good about exploiting weakness. It's going to be important. If that's the goal, to defeat ISIS, which I believe it should be, that we project strength. Now, whether or not the domestic politics plays helps them or not.""?When pressed by Lauer if he supports Trump's ban, Bush wouldn""t give a definitive ""yes"" or ��no.""?""I'm for an immigration policy that's welcoming and upholds the law,""?he answered. Bush reflects on the divisions facing the country Bush laughed at Trump's description of ""Carnage""?across America but noted the divisions facing the country. ""We were pretty divided when I was president right after a while. We were united after 9/11,""?he said. ""me of this will burn out, but it requires all of us understanding how the other person thinks.""?But as divided as the country might seem, Bush pointed out that divisions were ""much worse"" during the 1960s. When asked how Trump can help heal those divisions, he said give the president some time. ""First of all, there's only been one month in office,"" Bush said. ""Secondly, I think you have to take the man for his word that he wants to unify the country. We'll see if he's able to do so. It's hard to unify the country with the news media being so split up.""?", -1532,2017/2/28,http://abcnews.go.com/Politics/wireStory/trumps-speech-marked-disruption-decorum-45773135,Trump looks to refocus his presidency in address to Congress,,"President Donald Trump's first address to Congress gives him a welcome opportunity to refocus his young administration on the core economic issues that helped him get elected ""?and, his allies hope, to move beyond the distractions and self-inflicted wounds that have roiled his White House. Trump's advisers say he will use his prime-time speech Tuesday to declare early progress on his campaign promises, including withdrawing the U.S. from a sweeping Pacific Rim trade pact, and to map a path ahead on thorny legislative priorities, including health care and infrastructure spending. ""We spend billions in the Middle East, but we have potholes all over the country,"" Trump said Monday as he previewed the address during a meeting with the nation's governors. ""We're going to start spending on infrastructure big."" The White House said Trump has been gathering ideas for the address from the series of listening sessions he's been holding with law enforcement officials, union representatives, coal miners and others. Aides said he was still tinkering with the speech Monday night. Republicans, impatient to begin making headway on an ambitious legislative agenda, hope Trump arrives on Capitol Hill armed with specifics on replacing the ""Obamacare"" health law and overhauling the nation's tax system, two issues he's so far talked about in mostly general terms. More broadly, some Republicans are anxious for the president to set aside his feuds with the media, the intelligence community and the courts, which have overshadowed the party's policy priorities. ""Results aren't going to come from that,"" said Judd Gregg, the former Republican senator from New Hampshire. ""Results are going to come from driving the policies he said he would do."" The pressure from Republican lawmakers makes this a critical moment for a new president who ran for office on a pledge to swiftly shake up Washington and follow through on the failed promises of career politicians. While most new presidents enjoy a honeymoon period, Trump is saddled with record low approval ratings ""?just 44 percent of Americans approve of his job performance, according to a new NBC News/Wall Street Journal survey. His most sweeping executive order was blocked by federal courts, sending advisers scrambling to write a new travel and immigration directive, which the president is expected to sign on Wednesday. Morale is also plummeting among some White House staffers following a string of leaks that have left aides questioning each other. On Sunday, Politico reported that White House press secretary Sean Spicer had sprung surprise ""phone checks"" for members of his communications team after details from a staff meeting were made public. In public, Trump has continued to speak about his presidency with his usual confident bluster, declaring that there's ""never been a presidency that's done so much in such a short period of time."" But he's privately vented frustrations to friends and associates, particularly about what he sees as the ineffectiveness of the White House's communications efforts and the scattershot nature of his first weeks in office. Trump recently complained to one associate that the White House was trying to do too many things at once and none of it was breaking through. He told another associate that the White House had lost control of the story surrounding Michael Flynn, who was fired as national security adviser after misleading Vice President Mike Pence and others about his contacts with Russia. The White House looked to be finding its footing for a stretch last week, beginning with Trump's widely praised rollout of Flynn's replacement, Lt. General H.R McMaster. On domestic issues, the White House largely stuck to its script, focusing on manufacturing and the budget. Fewer aides appeared on television, part of an effort to apply some message discipline to a White House that has frequently contradicted itself. One of the most notable changes was made by the president himself, who scaled back his use of Twitter for a few days, particularly in the pre-dawn hours. One aide said the reduction in Trump's early morning tweets was a result of his ending his habit of watching ""Morning Joe,"" the MSNBC show hosted by Joe Scarborough and Mika Brzezinski, longtime friends of the president who have been critical of some of his early moves. Brzezinski said Trump made similar claims of avoiding the TV during the campaign. ""Then I would see him and Joe talking and he would say 'Joe, you know I really watch every day,'"" she said. The aide who told the story about Trump and early-morning TV insisted on anonymity in order to discuss internal White House dealings. So did other advisers and associates cited in this story. By the end of last week, the White House was back in the throes of some of the same sideshows that had overshadowed the policy issues Trump advisers have insisted they want to focus on. The president doubled down on his media bashing during a free-wheeling speech to conservative activists. Questions about his advisers' contacts with Russian intelligence agents were revived by revelations that chief of staff Reince Priebus discussed the matter with high-level FBI officials, in the midst of an investigation into those contacts. On Monday, the White House tried to start over again. Trump huddled with governors and health care executives, pledging to work together to ""save Americans from Obamacare."" The Office of Management and Budget also laid the groundwork for a budget that will propose a massive increase in defense spending and sweeping cuts to domestic programs. ""We're going to do more with less and make the government lean and accountable to the people,"" Trump said. ""?Follow Julie Pace at http://twitter.com/jpaceDC", -1533,2017/2/27,http://abcnews.go.com/Entertainment/jimmy-kimmel-tweets-president-donald-trump-oscars/story?id=45766682,Jimmy Kimmel tweets at President Donald Trump during Oscars,,"After not seeing a tweet from President Donald Trump all night long, Oscars host Jimmy Kimmel decided to take action. He tweeted at Trump live on stage, saying he was ""worried"" about the president after the show had gone on for more than two hours. First Kimmel wrote, ""Hey @realDonaldTrump u up?"" The crowd erupted in laughter. Hey @realDonaldTrump u up? Next, he made it a bit personal, writing, ""@realDonaldTrump #Merylsayshi."" Kimmel was referring to Trump tweeting about the 20-time Oscar nominee after she spoke out about the president at the Golden Globe Awards. @realDonaldTrump #Merylsayshi Streep gave a speech at the Golden Globes, and though she never mentioned Trump by name, she said a ""person asking to sit in the most respected seat in our country"" gave an impression of a disabled reporter during one of his campaign stops. He responded by tweeting, saying she was ""over-rated."" ""Meryl Streep, one of the most over-rated actresses in Hollywood, doesn't know me but attacked last night at the Golden Globes. She is a Hillary flunky who lost big. For the 100th time, I never 'mocked' a disabled reporter,"" he wrote. Meryl Streep, one of the most over-rated actresses in Hollywood, doesn't know me but attacked last night at the Golden Globes. She is a..... Trump has yet to tweet back at Kimmel.", -1534,2017/2/28,http://abcnews.go.com/Entertainment/oscars-best-picture-mix-unforgettable-moment-unfolded/story?id=45775782,The Oscars best picture mix-up: How the unforgettable moment unfolded,,"The ending shocked even hardened Hollywood veterans. Minutes after ""La La Land"" was mistakenly announced as the best picture winner at the Oscars, the award went to the cast and crew behind the indie film ""Moonlight"" ""?a moment that drew audible gasps and had everyone asking, ""What happened?"" PricewaterhouseCoopers, the accounting firm that tallies the Oscars voting, later apologized, saying in a statement that the presenters were erroneously given the wrong envelope. Here is the full breakdown of the dramatic best picture mix-up. Presenters Faye Dunaway and Warren Beatty take the stage to announce the best picture nominees. Beatty opens the envelope, takes out the card and appears to look inside the envelope for another card. He smiles, pauses and says, ""And the Academy Award ..."" then pauses again. He looks back down at the card before saying, ""For best picture ..."" ""You're impossible. Come on!"" Dunaway says, and Beatty passes the card to her. She glances at the card and announces, ""La La Land""! After the ""La La Land"" team members embrace, they head to the stage to accept the biggest award of the night. ""Moonlight"" director Barry Jenkins later told reporters backstage, ""I think all the movies that were nominated were worthy, so I accepted the results. I applauded like everyone else."" ""I noticed the commotion that was happening, and I thought something strange had occurred,"" he said. ""La La Land"" producer Jordan Horowitz, holding the Oscar and the envelope onstage, begins his acceptance speech. Behind Horowitz, people begin to realize something is amiss when an Oscars producer walks onstage. As ""La La Land"" producer Fred Berger gives his acceptance speech, people hover behind him, and ""La La Land"" star Emma Stone, who won the best actress award minutes before, is seen mouthing, ""Oh, my God."" Berger concludes his acceptance speech, turns to the people behind him and then turns back to the mic, saying, ""We lost, by the way."" Horowitz steps to the microphone and says, ""Guys, I'm sorry. No, there's a mistake. 'Moonlight,' you guys won best picture ... This is not a joke."" ""This is not a joke,"" ""La La Land"" producer Marc Platt echoes. ""I'm afraid they read the wrong thing."" BREAKING UPDATE: Following incorrect announcement, 'Moonlight' has won 'Best Picture' at the #Oscars. https://t.co/o8KUR4ZHUm pic.twitter.com/euLTgShYlN ""This is not a joke,"" Horowitz repeats. ""'Moonlight' has won best picture."" Backstage there was an audible collective gasp, then silence. Horowitz holds up the best picture card reading ""Moonlight"" and shows the audience. He announces ""'Moonlight,' best picture,"" and the crowd erupts. ""There was a lot of confusion onstage, and at a certain point it was clear that the wrong envelope had been given,"" Horowitz told ""GMA"" exclusively this morning. ""Then they kind of showed us the best picture envelope, and it said 'Moonlight,' and that's when I sort of jumped to the mic and made sure everybody knew what was going on."" He added, ""It was like this slow, steady realization that something wasn't right. It needed to be corrected, so we jumped in and did it."" Horowitz said he held up the card because ""I think people needed clarity at that moment."" Oscars host Jimmy Kimmel tries to lighten the mood, saying, ""This is very unfortunate what happened."" ""Personally, I blame Steve Harvey for this,"" Kimmel says, alluding to Harvey's crowning the wrong Miss Universe winner in 2015. ""I would like to see you get an Oscar anyway,"" Kimmel says to Horowitz. ""I'm going to be really proud to hand this to my friends from 'Moonlight,'"" Horowitz says. Then it was time for Beatty to take the mic. ""Warren, what did you do?"" jokes Kimmel. ""I want to tell you what happened,"" Beatty says to the audience. ""I opened the envelope, and it said, 'Emma Stone, ""La La Land.""' That's why I took such a long look at Faye and at you. I wasn't trying to be funny,"" Beatty says. ""Well, you were funny,"" says Kimmel. As Beatty speaks, Horowitz is seen in the background embracing ""Moonlight"" supporting actor winner Mahershala Ali and others from the ""Moonlight"" team. Horowitz then hands off the Oscar. ""This is 'Moonlight,' the best picture,"" Beatty says, and the audience erupts in applause. Matt Damon whistles. Jenkins says to the crowd, ""Even in my dreams, this could not be true. But to hell with dreams. I'm done with it, because this is true. Oh, my goodness."" ""Moonlight"" producer Adele Romanski says, ""I'm still not sure this is real, but thank you to the academy, and it is so humbling to be standing up here."" Jenkins later told reporters that Beatty refused to show anyone else the winning card before showing it to him. ""He came upstairs, and he walked over to me, and he showed the card. Everybody was asking, 'Can I see the card?' And he's like, 'No, Barry Jenkins has to see the card. I need him to know,'"" Jenkins recalled. ""And he showed it to me, and I felt better about what had happened."" As Kimmel concludes the show, he says, ""I don't know what happened. I blame myself for this."" ""Let's remember, it's just an awards show,"" he continues. ""I mean, we hate to see people disappointed, but the good news is, we got to see some extra speeches. We had some great movies. I knew I would screw this show up. I really did. Thank you for watching. I'm back to work tomorrow night at my regular show. I promise I'll never come back. Good night!"" PricewaterhouseCoopers, the accounting firm that tallies the Oscars voting, said in a statement after the show, ""We sincerely apologize to 'Moonlight,' 'La La Land,' Warren Beatty, Faye Dunaway, and Oscar viewers for the error that was made during the award announcement for best picture. The presenters had mistakenly been given the wrong category envelope and when discovered, was immediately corrected. We are currently investigating how this could have happened and deeply regret that this occurred. ""We appreciate the grace with which the nominees, the academy, ABC and Jimmy Kimmel handled the situation."" In a video posted last week to the PricewaterhouseCoopers YouTube page, one of the firm's two co-balloting leaders said, ""We have the winners in sealed envelopes that we hold and maintain throughout the evening and hand those to the presenters just before they walk out onstage."" The Academy of Motion Picture Arts and Sciences did not immediately issue a statement. In the midst of the shocking mix-up, it was Horowitz's gracious words onstage ""?""I'm going to be really proud to hand this to my friends from 'Moonlight'"" ""?that kept the night moving forward. He told ""GMA"" this morning that he ""wanted to make sure that the right thing was done."" ""Because, you know, at that point it was not about me ... It was about making sure that 'Moonlight' got the recognition it really deserves."" ""Those guys are my friends,"" Horowitz said of the people behind ""Moonlight,"" whom he said he got to know well during the monthslong buildup to the Oscars. ""I wanted to make sure they had their moment."" The kind gesture didn't go unnoticed by Jenkins. ""The folks from 'La La Land' were so gracious,"" he told reporters backstage. ""I can't imagine being in their position and having to do that. I wasn't speechless because we won. I was speechless because it was so gracious of them to do that."" ABC News' Morgan Korn, Jeff Costello, Lindsey Jacobson, Lesley Messer and Molly Shaker contributed to this report.", -1535,2017/2/28,http://abcnews.go.com/Politics/trump-oscars-focused-politics-best-picture-mix-sad/story?id=45787536,"Trump: Oscars 'too focused' on politics, best picture mix-up 'was sad'",,"President Donald Trump offered his opinion Monday on the Best Picture mix-up at the Academy Awards, saying that the ceremony's focus on politics distracted from its organization and ""glamour."" Trump made the comments as part of an Oval Office interview with Breitbart News. The president noted that he had ""been to the Oscars"" previously and that something was ""missing"" this year. ""I think they were focused so hard on politics that they didn""t get the act together at the end,"" said Trump. ""It was a little sad. It took away from the glamour of the Oscars. It didn""t feel like a very glamorous evening""?To end that way was sad."" ""La La Land"" was announced as Best Picture by actress Faye Dunaway after she and fellow presenter Warren Beatty were mistakenly given the envelope for Best Actress, won by the movie's star Emma Stone. As ""La La Land's"" representatives were giving their acceptance speeches, the show's producers hurried to the stage to correct the error and and ""Moonlight"" was declared the award's true winner. Trump's presidency loomed over the show as several honorees gave politically-themed remarks and host Jimmy Kimmel poked fun at the president -- at one point publicly tweeting to him from the stage.", -1536,2017/2/28,http://abcnews.go.com/Entertainment/barry-jenkins-mahershala-ali-emma-stone-react-oscars/story?id=45771118,"Barry Jenkins, Mahershala Ali and Emma Stone react to Oscars best picture mix-up",,"The 2017 Oscars took a turn for the surreal when ""La La Land"" was announced as the best picture winner just moments before it was revealed that there had been a mix-up, and the honor belonged to ""Moonlight."" Perhaps nobody was more shocked than the stars of the two films themselves. Afterward, ""La La Land"" star Emma Stone and ""Moonlight""'s Mahershala Ali and director Barry Jenkins spoke to reporters backstage about the situation. ""The folks from 'La La Land' were so gracious. I can't imagine being in their position and having to do that,"" Jenkins, who also won best original screenplay, said. ""I wasn't speechless because we won. I was speechless because it was so gracious of them to do that."" During the final moments of the Academy Awards, the people behind ""La La Land"" were on stage accepting the award when suddenly, producer Jordan Horowitz announced that there had been a mistake. ""This is not a joke,"" he told the crowd, revealing that ""Moonlight"" was actually the winner. ""I f***ing love 'Moonlight.' God, I love 'Moonlight' so much. I'm so excited for 'Moonlight,' and of course, it was an amazing thing to hear 'La La Land.' I think we all would've loved to win best picture, but we are so excited for 'Moonlight,'"" Stone told reporters. ""I think it's one of the best films of all time, so I was pretty beside myself."" Stone also seemed skeptical of presenter Warren Beatty's explanation that he'd been given what seemed to be a duplicate of her best actress card. Stone said that the entire time, she'd been holding the card. A representative for PricewaterhouseCoopers, the accounting firm that handles Oscars voting, told ABC News in 2016 that they make two of every card, though the Academy has not yet issued a statement about the incident. ""I don't mean to start stuff but whatever story that was, I had that card, so I'm not sure what happened,"" Stone said. ""Moonlight"" actor Ali said that the moment was bittersweet for him. Initially, he had been excited for the ""La La Land"" team, and like Jenkins, he felt terrible about what happened. ""I just didn't want to go up there and take something from someone,"" he said. ""It's very hard to feel joy in a moment like that.""", -1537,2017/2/28,http://www.cnn.com/2017/02/27/politics/donald-trump-barack-obama-leaks/index.html,Trump says Obama behind leaks,"Washington (CNN)President Donald Trump said he believes former President Barack Obama has been behind the leaks within his administration and the sizable, angry town hall crowds Republicans have faced across the country.","Trump was asked in an interview on Fox News' ""Fox and Friends"" if he believed Obama was responsible for the town hall protests against Republicans this month. ""It turns out his organization seems to do a lot of these organizing to some of the protests that these Republicans are seeing around the country against you. Do you believe President Obama is behind it and if he is, is that a violation of the so-called unsaid presidents' code?"" Trump was asked. ""No, I think he is behind it. I also think it is politics, that's the way it is,"" Trump replied. Trump then discussed the leaks that have disrupted his first month in office. ""You never know what's exactly happening behind the scenes. You know, you're probably right or possibly right, but you never know,"" Trump said in the interview, a clip of which was released Monday night. ""No, I think that President Obama is behind it because his people are certainly behind it. And some of the leaks possibly come from that group, which are really serious because they are very bad in terms of national security. But I also understand that is politics. In terms of him being behind things, that's politics. And it will probably continue."" Trump did not offer any evidence for his claim in the clip released by Fox Monday night. CNN has reached out to Obama's office for comment. A broad coalition of groups including Organizing For Action, the SEIU, MoveOn.org and the Center for American Progress have been working to help with grassroots organizing around GOP town halls. Organizing for Action, the group formed from Obama's campaign organization, has 14 professional organizers, for example, who are involved in teaching local activists skills to effectively vocalize opposition to the GOP's top agenda items. Earlier this month, Trump told Fox News that reports of his calls with the leaders of Mexico and Australia were caused by leaks from ""Obama people."" Trump's administration has been beset by leaks within his administration to the media, and he has continually railed against those doing the leaking and the media since taking office. He has said the leaks are damaging to national security.", -1538,2017/2/28,http://www.cnn.com/2017/02/27/politics/donald-trump-white-house-staffer-cell-phones-leaks/index.html,Sources: Trump signed off on checking White House staffers' phones,"Washington (CNN)President Donald Trump signed off on press secretary Sean Spicer's decision to check aides' cell phones to make certain they weren't communicating with reporters by text message or through encrypted apps, multiple sources confirmed to CNN on Monday.","The decision sent a signal across the administration that Trump is furious at leaks from inside the White House. The sources also said the President gave his blessing before Spicer blocked reporters from the briefing last Friday. When reached by CNN, Spicer denied that Trump was involved in either decision. ""(Trump) did not sign off or even know what I did. That is not accurate,"" he said, later adding, ""I don't believe he even knew there was a gaggle and in no way was it discussed with him or any other staffer."" Trump meeting with regional media outlets On Friday, CNN and other news outlets were blocked from attending an off-camera White House press briefing that other reporters were hand-picked to attend. And Politico reported on Sunday that Spicer was cracking down on leaks coming out of the White House, where at one point staffers were asked to dump their phones on a table for a ""phone check."" The sources also told CNN that Trump and his top advisers also knew of the contacts Spicer and others made to intelligence chairmen and other government officials, hoping to push back on news accounts of Russian links. The sources added that Spicer is on higher standing inside the West Wing than he has been in earlier weeks. He has been eager to prove his loyalty but has also not pushed back on carrying out any orders or requests from the Oval Office. One person close to the situation described Spicer as the ""enforcer.""", -1539,2017/2/28,http://www.cnn.com/2017/02/27/entertainment/oscars-mix-up-pricewaterhousecoopers/index.html,PwC: 'We failed the Academy' in best picture mess up,"Los Angeles (CNN)PricewaterhouseCoopers has taken ""full responsibility"" for the mistakes and ""breaches of established protocols"" that led to ""La La Land"" mistakenly being named best picture at the Oscars on Sunday night in one of the most infamous gaffes in the show's history.","In a statement released Monday evening, the firm confirmed that PwC managing partner Brian Cullinan ""mistakenly handed the back-up envelope for Actress in a Leading Role instead of the envelope for Best Picture to presenters Warren Beatty and Faye Dunaway."" ""Once the error occurred, protocols for correcting it were not followed through quickly enough by Mr. Cullinan or his partner,"" the statement said, referring to PwC employee Martha Ruiz. ""Moonlight"" was eventually crowned best picture winner. Ruiz and Cullinan were the two employees charged with managing the envelopes containing the names of Oscar winners. At the ceremony, Ruiz and Cullinan alternated handing envelopes to presenters from opposite sides of the stage. PwC's statement added: ""For the past 83 years, the Academy has entrusted PwC with the integrity of the awards process during the ceremony, and last night we failed the Academy."" The Academy also broke its silence on Monday evening. In a statement, it apologized ""to the entire cast and crew of 'La La Land' and 'Moonlight' whose experience was profoundly altered by [the] error."" ""We salute the tremendous grace they displayed under the circumstances,"" the statement said. ""To all involved --including our presenters Warren Beatty and Faye Dunaway, the filmmakers, and our fans watching worldwide -- we apologize."" The Academy added: ""We have spent last night and today investigating the circumstances, and will determine what actions are appropriate going forward. We are unwaveringly committed to upholding the integrity of the Oscars and the Academy of Motion Picture Arts and Sciences."" The statements come after revelations that Cullinan was tweeting shortly before the mistake was made. At 9:05 p.m. on Sunday, Cullinan sent a now-deleted tweet from his personal account that showed fresh-off-the-stage winner Emma Stone smiling with her new Oscar in hand. ""Best Actress Emma Stone backstage! #PWC,"" Cullinan wrote. The tweet is viewable in a cached page on Google. The social media post came just minutes before Dunaway and Beatty were inadvertently given the envelope containing the already announced best actress results. Cullinan has not responded to CNN's request for comment as of Monday evening. RELATED: It was 'Moonlight,' not 'La La Land': A timeline of a historic Oscars blunder PwC quickly apologized on Sunday night and said they were ""investigating how this could have happened."" In the history of the Oscars, only one similar event has taken place. Back in 1964, Sammy Davis Jr. was handed the wrong envelope when presenting the best musical score (adaptation or treatment) category and accidentally announced the winner for original musical score. He corrected himself on stage after he was told he announced a winner who was not nominated in the category he was supposed to be presenting. PwC has several measures in place meant to prevent such occurrences. A 2016 Los Angeles Times story detailed one such precaution: the envelopes themselves. The names of the categories are printed on the outside to prevent confusion and the text used is ""large enough for a presenter and cameras to read easily,"" the piece noted. It's worth noting, however, that this year's envelope design was changed from gold paper with white labels to red paper with gold lettering -- considerably harder to read in dim backstage lighting. To the cameras capturing the action on stage, the misstep was clear. Photos from Sunday, examined in detail in the hours after the show, confirmed that Dunaway and Beatty had the wrong envelope on stage. Dunaway, who was the one to announce ""La La Land"" had won best picture, has declined to comment on the event. After the envelopes are stuffed with the winners' names, they are sealed by the only two people who know the results ahead of the ceremony -- in this case, Ruiz and Cullinan. Two sets of winner-containing envelopes are made, and Ruiz and Cullinan are tasked with taking them to the ceremony, flanked by guards. As an additional safety measure, Ruiz and Cullinan memorize the names of the winners. This is so they can be quick to respond in case the wrong name is read or share the winner with presenters in case something happens to the envelopes. A 2013 Vanity Fair story recalled a time when Sharon Stone and Quincy Jones were tasked with presenting two awards back-to-back but accidentally gave the second envelope to the first winner. The PwC representative on hand was able to whisper the winner to Jones off stage. Three ""La La Land"" producers spoke on stage before the error was announced to the Oscars audience. ""Moonlight"" ended up winning three Oscars on Sunday night. ""La La Land"" earned five.", -1540,2017/2/28,http://www.cnn.com/2017/02/28/asia/kim-jong-nam-north-korea-envoy/index.html,"Kim Jong Nam killing suspects to be charged with murder, minister says","(CNN)Two women will be charged with the murder of the estranged half-brother of North Korean dictator Kim Jong Un, officials in Malaysia said.","Siti Aisyah, an Indonesian, and Doan Thi Huong from Vietnam, were detained after closed circuit television showed them accosting Kim Jong Nam at Kuala Lumpur International Airport on February 13. Police say the women rubbed a highly toxic VX nerve agent on Kim's face before running away. He died on his way to hospital less than 20 minutes later. Malaysia's Attorney General Mohamed Apandi Ali told CNN they will be officially charged on Wednesday. Murder can be punishable by the death penalty in Malaysia. Aisyah has denied she killed Kim on purpose, telling Indonesian officials she believed she was working on a prank show and was smearing Kim's face with baby oil. But Malaysian police chief Khalid Abu Bakar claims both women knew they were swabbing Kim's face with a deadly nerve toxin. A third suspect, Ri Jong Chol, a North Korean citizen, is still in custody. North Korean diplomats arrive A high-level delegation from North Korea arrived in Malaysia on Tuesday as Kim's murder continues to cause diplomatic tensions between the two countries. Malaysia has refused to release the body of Kim, who South Korean intelligence claims was killed on the direct orders of the North Korean leader. After arriving in the Malaysian capital, former North Korean Deputy UN ambassador Ri Tong Il said the delegation had come to negotiate the return of the body. He said that the delegation would discuss the ""question of the release of the DPRK citizen arrested by Malaysian police related to the above incident, (and) the development of friendly relations between DPRK and the Malaysian government."" Malaysian authorities have consistently refused to release Kim's body until they receive DNA from his next of kin. North Korea has denied involvement in Kim's murder and blamed South Korea for attempting to tie Pyongyang to the killing.", -1541,2017/2/28,http://www.cnn.com/2017/02/28/asia/north-korea-officials-executed/index.html,"North Korea executed 5 security officials, South Korea says","(CNN)Five North Korean officials have been executed by anti-aircraft guns, according to South Korean lawmakers.","The deputy minister-level officials had worked under the recently fired state security chief Kim Won Hong, and are believed to have been executed for making false reports to North Korean leader Kim Jong Un, according to two parliamentarians who had been briefed by South Korea's National Intelligence Service (NIS). ""Kim Won Hong, the state security chief, is in a house arrest situation after an investigation and more than five deputy minister-level officials who worked under him have been executed by anti-aircraft guns,"" South Korean lawmaker Kim Byung-kee said. ""Additional executions of working-level officials could happen as the investigation carries on further."" The State Security Ministry of North Korea is effectively its intelligence service, and also runs its prison camps and conducts domestic surveillance of party workers and other citizens. 'False reports' ""The ministry controls and monitors the public and party officials. It was detected that false reports were made for Kim Jong Un,"" Lee Cheol-woo, another lawmaker who was present, added. ""Kim Jong Un was furious by this finding and put Kim Won Hong in a house arrest and ordered execution of his five people."" He said the dictator also ordered the removal of a statue of his father and predecessor, Kim Jong Il, from the Ministry's grounds as punishment. ""Kim Jong Un ordered the statue of Kim Jong Il to be removed from the National Defense Ministry because they don't deserve to have the statue."" Although Pyongyang officially denies the prison camps exist, according to a US Treasury statement, Kim Won Hong directed and managed activities including ""beatings, forced starvation, sexual assault, forced abortions, and infanticide"" that took place in the system of prison camps. The Ministry for State Security reports directly to Kim. Removed from office In January, Kim fired Kim Won Hong, one of his top lieutenants, according to South Korea's Unification Ministry. As Minister of State Security, Kim Won Hong oversaw the North Korean agency responsible for running the country's notorious prison camps, rooting out spies in North Korea and conducting counterespionage operations abroad. Unification Ministry spokesman Jeong Joon-hee said Kim Won Hong was punished for ""human rights abuses committed during interrogations at the State Security Department"" among other things. Report: Hundreds executed A report released at the end of 2016 claims Kim has ordered 340 people to be executed since he came to power in 2011. The Institute for National Security Strategy, a South Korean think tank's report, ""The misgoverning of Kim Jong Un's five years in power,"" details how the North Korean leader uses executions to tighten his hold on power. Of those killed, about 140 were senior officers in the country's government, military and ruling Korean Worker's Party. The gruesome method of execution has also been used by the regime before -- in May 2015, Kim had his Defense Minister Hyon Yong Chol killed with an anti-aircraft gun at a military school in Pyongyang, in front of an audience. ""(It) would have torn his body apart,"" RAND Corporation senior defense analyst Bruce Bennett told CNN at the time. ""And of course Kim made sure the Defense Minister's family was there to see the execution."" Kim Jong Un -- madman or mastermind?", -1542,2017/2/28,http://www.cnn.com/2017/02/27/middleeast/deputy-al-qaeda-leader-killed/index.html,Deputy al Qaeda leader killed In Syria,"(CNN)Abu al Khayr al-Masri, the No. 2 man for al Qaeda behind leader Ayman al-Zawahiri, has been killed by a missile strike in Idlib, Syria, according to multiple sources.","Two US officials said al-Masri was killed in an attack directed by the US intelligence community. The UK-based activist group Syrian Observatory for Human Rights, or SOHR, told CNN al-Masri was killed Sunday in a strike targeting his vehicle near al-Mastoumeh village in Idlib. Several Syrian opposition activists also reported al-Masri was killed by a missile strike. Abdallah al-Muhaysini, a senior member of Jabhat Fatah al-Sham, acknowledged the death in a eulogy posted on his official Telegram channel. He said, ""May Allah accept Abu al-Khayr in His heaven. May Allah gather us together with him."" Al-Muhaysini is a prominent inner-leadership member of Jabhat Fath al-Sham, which used to be known as Al-Nusra Front -- an al Qaeda affiliate. Al-Nusra Front in Syria split from al Qaeda last summer with the blessing of al Qaeda leader al-Zawahiri. SOHR said al-Masri, whose real name was Abdullah Muhammad Rajab Abd al-Rahman and who was an Egyptian national, was in a car near al-Mastoumeh camp when the strike took place. Syria Civil Defence in Idlib, also known as the White Helmets, reported the incident and posted pictures on its Facebook account. The group reported two people were killed in the strike without mentioning their names. In 2005, Abdullah Muhammad Abd Al-Rahman was designated by the US Treasury Department as a terror supporter. The department said he was responsible for coordinating al Qaeda's work with other terrorist organizations. In 2016 the UN Security Council put him, along with 81 others, on a sanctions list.", -1543,2017/2/28,http://www.cnn.com/2017/02/28/asia/australia-isis-arrest/index.html,Australian arrested for helping ISIS develop long-range missile technology,"(CNN)An Australian man has been charged with allegedly helping ISIS to develop ""high-tech"" missile capabilities.","The 42-year-old was taken into custody in the small rural New South Wales town of Young by the Australian Federal Police. In a statement, the Australian Federal Police said the man had been researching and designing both a laser warning system to detect incoming Syrian and Iraqi munitions and long-range guided missiles for the terrorist group. He's facing three charges which, if he's found guilty, carry a maximum penalty of life in prison. Australian Prime Minister Malcolm Turnbull told reporters Tuesday the arrest highlighted that support for ISIS wasn't limited to Australia's major cities. ""We've seen Australians arrested for preparations to carry out terrorist acts or providing financial assistance to terrorist groups, we've seen Australians travel to the conflict zone to take up arms for (ISIS),"" he said. Turnbull said there had been no attack planned inside Australia. Australian Federal Police Assistant Commissioner Counter Terrorism Ian McCartney said in a statement the arrest had followed more than 18 months of investigations. The arrest comes less than two months after a terrorist attack intended for Christmas Day was thwarted in Melbourne, Australia. Six people were taken into custody for planning to explode ""improvised explosive devices"" at locations around the city center.", -1544,2017/2/28,http://www.cnn.com/2017/02/28/china/china-second-child-subsidy/index.html,China considers baby bonus for couples to have second child,Hong Kong (CNN)The Chinese government may consider giving families financial incentives to have a second child in a bid to reach higher birth rate targets.,"It marks a dramatic turnaround from more than four decades of the country's one-child policy when there were harsh penalties for having more than one, including fines and forced abortions. Wang Peian, the vice-minister of the National Health and Family Planning Commission (NHFPC), said the commission is considering ""birth rewards and subsidies"" for second children, the state-owned China Daily reported on Tuesday. Wang made the announcement on Saturday during a meeting of the China Social Welfare Academy, a Chinese NGO that works closely with the government. A spokesperson for the organization declined commenting on Wang's speech to CNN. The announcement was in part prompted by a survey the NHFPC carried out in 2015, showing that 60% of families polled were reluctant to have a second child because of financial constraints, according to China Daily. One-child policy China overturned its one-child policy in October 2015, allowing couples across the country to have two children. Birth rates have risen since then, but the government is trying to meet higher birth rate targets as the population ages. Lu Jiehua, a sociology professor at Peking University, said that financial incentives for a second child are a ""positive signal."" But how much the government can afford to subsidize -- in a country where the cost of living and education are skyrocketing -- will determine whether the potential bonuses will work, he said. ""The financial incentives would require more effort from other government agencies to cover the cost of raising a child, which is more important than giving birth,"" Lu said. In search of a baby boom The one-child policy was introduced in 1979 when the government feared a rapid increase in population size after the baby boom of the 1950s and 1960s. The country's fertility rate fell dramatically, from a peak of almost six births per female between 1960 and 1965 to 1.5 per woman between 1995 and 2014. The two-child policy officially began in 2016 under a government program to jump start that declining birth rate -- especially because China faces a rapidly aging population and a shortage of working-age residents. China is home to 114 million people over 65, and up to 90 million people are expected to retire in the next three decades, leaving the labor force with even fewer people until newborns are old enough to work. By 2030, the government has warned China will have the most aged population on Earth, with more than 400 million people over 60. Waiting for the newborns So far -- when it comes to energizing China's birth rate -- the two-child policy is working, with or without subsidies. The number of babies born in 2016 jumped 7.9% from the previous year, according to government figures. A total of 17.86 million babies were born in 2016, an increase of 1.31 million over the total in 2015. The new total represents the highest annual number of newborns since 2000, according to government data. Challenges still remain when it comes to building up the country's newest workforce. Lu said that women in China who are now of child-bearing age were raised under the one-child policy. Having grown up under strict family planning policies, many are inclined not to have children -- let alone second pregnancies. ""It's hard to change their mindset,"" Lu said. Experts warn the impact of the two-child policy won't be felt until those new babies are old enough to join the workforce.", -1545,2017/2/28,http://www.cnn.com/2017/02/28/americas/rio-carnival-float-injured/index.html,At least 11 people injured in Rio Carnival float collapse,"(CNN)A float in Rio de Janeiro's Carnival parade partially collapsed with dancers on board, injuring several people early Tuesday.","Rio de Janeiro's Municipal Health Secretariat said at least 11 were injured. Nine people were transported to hospitals, Brazilian media reported. The two-tier float was part of the lineup of the Unidos de Tijuca samba school's parade. This year's theme was inspired by American jazz culture. This is the second accident registered during Rio de Janeiro's two-day carnival parade. On Sunday, at least 20 people were injured when a float from another samba school crashed into a fence.", -1546,2017/2/28,http://www.huffingtonpost.com/2017/02/28/kellyanne-conway-oval-office-sofa-meme_n_15056318.html,Kellyanne Conway's Ultra-Casual Oval Office Photo Is Already A Weird New Meme,Making Photoshop great again.,"Well that didn""t take long.- A bizarre image of White House counselor-Kellyanne Conway-sitting on an Oval Office sofa with her legs tucked under her sent out Monday evening was already turning into a new meme by Tuesday morning. Conway had just snapped a photo of leaders of historically black colleges and universities with President Donald Trump: But it wasn""t the roomful of academics or even the president that caught internet users""?attention. It was Conway's very casual pose on the sofa, which seemed almost made for Photoshop. And so a new meme was born:- ""i am sorry ma'am but no shoes on the couch i do not make the rules""@nycsouthpaw pic.twitter.com/dbONSk9Kno EXCLUSIVE: What Kellyanne Conway was really doing on her phone!#Resist #Resistance #Indivisible#PEEOTUS #SCROTUS pic.twitter.com/amQB3srbrS omfg charmander in the oval office#Pokemongogen2@nycsouthpaw pic.twitter.com/bnRnMLkQZu Then again, there might have been a very important reason she had her feet up on the Oval Office sofa: .@KellyannePolls These idiots don't realize the floor is hot lava. pic.twitter.com/jwuqzTHDt6 - - Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1547,2017/2/28,http://www.huffingtonpost.com/2017/02/28/jon-stewart-media-trump-breakup_n_15055732.html,"Jon Stewart Tells The Media How To Break Up With ""a**hole""?Donald Trump","The former ""Daily Show"" host wants to help the press get its groove back.","Jon Stewart-is back, and he has a message for the media: It's time to break up with President Donald Trump.- The former ""daily Show""?host visited the ""Late Show With-Stephen Colbert""?to share a few thoughts on Trump's souring relationship with the press. ""Finally thought you met your match,""?Stewart said in his message to the media. ""A blabbermouth who's as thin-skinned and narcissistic as you are.""So how can the press get its groove back? Stewart suggested trying a hobby.- ""I recommend journalism,""?he said.- Check out the rest of Stewart's advice above.- Share this slide: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1548,2017/2/28,http://www.huffingtonpost.com/2017/02/28/barrier-reef-bleaching_n_15055214.html,Ecologists Steel For Even More Coral Bleaching On Great Barrier Reef,The devastating die-off appears to be heading toward yet another record.,"Just when you thought the situation couldn""t get much worse for the Great Barrier Reef comes news that devastating coral bleaching will almost certainly increase significantly ""?again ""?in the coming months. Record bleaching hit the 1,400-mile-long reef system in 2016, for the third year in a row, killing more than 65 percent of the coral of the northern reef. Climate change has impacted the ecosystem,-as the colorful zooxanthellae are expelled from the coral during times of stress,-according to numerous studies-and the Australian Government's Great Barrier Reef Marine Park Authority. Coral can rebound in good times ""?though it takes as long as a decade ""?but scientists say that's not likely to happen soon, if ever. The reef is already warmer than it was at this time last year and there's a strong strong possibility that March and April will set new temperature highs-""?and a new record for coral bleaching. Marine park authority workers are already seeing significant bleaching this season. ""Initial survey results showed high levels of bleaching among the most sensitive coral species,""?Authority chairman Russell Reichelt told Newsport in Australia. The authority has already issued an alert to the government of Australia warning that more of the reef is already showing more heat stress than the same period last year. Officials are receiving ""increasing reports of coral bleaching and disease from many parts""?of the reef, including some spots already-far south of the worst sections of bleaching in 2016. A study last year predicted that significant bleaching would continue at least until 2040. Lead researcher Gareth Williams of Britain's Bangor University calls the projections-""gerrifying.""?""It's alarming that the reef is bleaching so soon again, giving no time for recovery from the huge losses of corals in the northern third of the Reef in 2016,""?Terry Hughes, director of the ARC Centre of Excellence for Coral Reef Studies, told the Sydney Morning Herald.- The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1549,2017/2/28,http://www.huffingtonpost.com/2017/02/28/taliban-attack-afghan-checkpoint_n_15055146.html,Taliban Fighters Kill 12 Police Officers At Afghan Checkpoint,"""An investigation is ongoing to find out if someone from inside has defected to the Taliban and paved the way for this crime.""","LASHKAR GAH, Afghanistan, Feb 28 (Reuters) - Taliban fighters in the southern Afghan province of Helmand attacked a checkpoint with silenced weapons and hand grenades early on Tuesday killing 12 policemen and stealing weapons and ammunition, officials said. But a provincial official said that it could be an insider attack as one of the guards was still missing. ""An investigation is ongoing to find out if someone from inside has defected to the Taliban and paved the way for this crime,""?he said. The attack, in the provincial capital Lashkar Gah, underlined the threat facing Afghan security forces in the opium-producing province, where they struggle to match well-equipped Taliban fighters who now control several districts. The police killed in the attack had been pulled back from the southern district of Khanshin district which security forces abandoned last year. ""the Taliban attacked a guard with silenced guns and then entered the check post,""?Helmand deputy police chief Haji Gulai told reporters. ""they attacked other policemen with hand grenades and killed all of them. They later took their weapons and ammunition and escaped.""?he said. In a separate incident, another 12 policemen were killed in the Marjah district of Helmand after an hour-long gunbattle, Taliban spokesman Zabihullah Mujahid said. Taliban fighters now control most of Helmand, including areas in Lashkar Gah. British and U.S. forces suffered their heaviest casualties of the war in the province in years of fighting following the removal of the Taliban in 2001. Afghan security forces now control less than 60 percent of the country, according to U.S. estimates, with the Taliban in control of about 10 percent and the remainder contested between government and insurgent forces. Share this slide: Learn more", -1550,2017/2/28,http://www.huffingtonpost.com/2017/02/28/seth-meyers-donald-trump-congress-preview_n_15055054.html,Seth Meyers Predicts What Donald Trump Will Say During His First Address To Congress,Spoiler: It probably won't be one for policy wonks.,"Seth Meyers thinks he knows what President Donald Trump will talk about during his first speech to Congress on Tuesday.-And he's predicting it won""t be an in-depth look at the administration's policies. On Monday's broadcast of ""Late Night,""?Meyers referenced Trump's earlier talks with governors during which he rambled about the state of the Lincoln Tunnel to make a point about what he's repeatedly described as the nation's crumbling infrastructure. Meyers also explored former President George W. Bush's defense of the media-during an interview with Matt Lauer on the ""Today""?show,-and broke down the latest leaks coming from the White House.- Check out the full segment above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1551,2017/2/28,http://www.huffingtonpost.com/2017/02/28/jimmy-kimmel-oscars-reveals-la-la-land_n_15054906.html,Jimmy Kimmel Reveals What Really Went Down During That Oscars Gaffe,"""It was the weirdest TV finale since 'Lost.'""","Oscars host Jimmy Kimmel-shared his take on the Best Picture gaffe-during-Monday's broadcast of ""Jimmy Kimmel Live!.""The comedian described the moment that ""La La Land""?was mistakenly announced as the winner of the 2017 award instead of ""Toonlight""?as ""the weirdest TV finale since ""Lost.""?Kimmel also explained how he was due to end the show sitting in the audience next to actor Matt Damon. But amid ""mass confusion,""?he took to the stage and stood there ""like an idiot feeling bad for these guys, but also trying really hard not to laugh, to be honest.""? Check out his entire explanation in the clip above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1552,2017/2/28,http://www.huffingtonpost.com/2017/02/28/yemen-raid-intelligence_n_15054834.html,Deadly U.S. Yemen Raid Netted No Major Intelligence: Report,"NBC says senior sources say no ""significant"" intel was gleaned from operation.","The botched U.S. commando raid on an al Qaeda outpost in Yemen that resulted in the deaths of a Navy SEAL and several women and children reportedly gained very little intelligence information.- So far, no ""significant intelligence""?has been gleaned from the items seized in the raid, ""multiple""?senior sources-have told NBC, the network reported Tuesday.- The raid ""?an unusual use of American ground forces in the country ""?was supposed to surprise the enemy, but the Navy SEAL team dispatched to the site Jan. 28 confronted a reinforced al Qaeda base defended by landmines, snipers, and a larger-than-expected contingent of heavily armed extremists. President Donald Trump was apparently not in the Situation Room supervising the action as would be typical for a commander in chief in such an operation. While the raid was unfolding, Trump's personal Twitter account was active and a tweet was sent notifying readers-about an upcoming presidential TV, The Huffington Post reported Wednesday. That tweet has since been deleted. The Trump administration is characterizing the operation primarily as a mission to gather intelligence on al Qaeda, and considers it ""Highly successful,""ccording to White House press Secretary Sean Spicer. -""We gathered an unbelievable amount of intelligence that will prevent the potential deaths or attacks on American soil,""?Spicer said Feb. 8. The Pentagon has also said the raid produced-""Actionable intelligence.""?Spicer said Monday that the Navy Seal who lost his life in the raid, Chief Petty Officer William ""ryan""?Owens,""?died a hero and the information that he was able to help obtain through that raid-... is going to save American lives.""?But NBC's sources said they have seen no evidence that supports Spicer's claim. Earlier reports, backed by Sen. John McCain (R-Ariz.), had said that the main goal of the operation was to capture or kill extremist leaders. One of the targets was reportedly Qasim al-Raymi,-a leader of al Qaeda in the Arabian Peninsula, but he was apparently unharmed. Bill Owens, the father of the fallen Navy Seal, has called the raid a ""stupid mission""?and demanded an investigation into the operation. He refused to meet with Trump when the two men were on the scene when Ryan Owens""?body was taken off the plane at Dover Air Force Base. ""Why at this time did there have to be this stupid mission when it wasn""t even barely a week into [Trump's] administration?""?Owens said in an interview with the Miami Herald. ""For two years prior, there were no boots on the ground in Yemen ""?everything was missiles and drones because there was not a target worth one American life. Now, all of a sudden we had to make this grand display?""?Army Gen. Joseph Votel, Commander of U.S. Central Command, defended the raid, telling CBS News that it was part of the ""broader offensive that we'r pursuing in Yemen.""?He said that the object was to go in and collect intelligence. ""We accomplished that,""?he added. Votel did not describe the nature or amount of the intelligence gathered. The raid was planned during the previous administration, but former President Barack Obama had not yet signed off on it. At least 25 civilians were killed in the raid, including nine children under the age of 13, according to the Bureau of Investigative Journalism. The Pentagon is conducting an investigation into the raid, which is standard procedure when any lives are lost, according to Spicer.- Learn more", -1553,2017/2/28,http://www.huffingtonpost.com/2017/02/28/robbie-gatti-blackface-tiger-woods_n_15054688.html,Republican Politician Dressed In Blackface For 'Good Night At Church',"""I live my life seeing only character and I stand by that.""","A Republican politician running for a state legislature seat in Louisiana is under fire after a picture surfaced of him in blackface.- Louisiana politics website The Hayride uncovered the photo, which showed Robbie Gatti dressed as Tiger Woods: In a Facebook post,-Gatti confirmed the image was of him and said it was taken 15 years ago at a church festival ""where all the volunteers were told to dress as a famous person.""However,-he offered no apologies and even defended it: ""tiger Woods was at the height of his popularity, as a world champion, and that was who I was dressed as. Shortly after this event, I was ordained into the church. As a medical professional, ordained minister and military officer, I live my life seeing only character and I stand by that. I'm sad that my opponents have taken a good night at church and turned it into negative, political mud, but I'm confident the voters of Bossier will not fall for their desperate attacks.""?A local Republican official said the image was ""Hrom a different time.""?""Ty guess is that people are not going to go back in time, they'r going to view this as a current affairs thing. It's not,""ike Collier, chairman of the Bossier Parish GOP, told local ABC station KTBS. ""I'm sorry he did it, I'm sure he's sorry, if he had a chance to do it over he would. It is what it is.""Gatti is running against three other Republicans-in a special election on March 25 for a seat previously held by Mike Johnson, also a Republican. Johnson was elected to the House of Representatives in November.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1554,2017/2/28,http://www.huffingtonpost.com/2017/02/27/gustavito-el-salvador-beating_n_15054090.html,Beloved Hippo Gustavito Fatally Beaten In El Salvador Zoo,Country crushed by savage attack on park favorite.,"An easy-going hippo was savagely beaten in El Salvador's National Zoological Park and died from his injuries days later. The hippo, known as Gustavito, was a particular favorite of zoo fans. Officials believe he was brutally attacked last Wednesday at night under cover of darkness in his San Salvador enclosure. No one was initially aware of his injuries until managers noticed he was behaving strangely, not eating and spending an inordinate time huddled in his pool of water, CNN reported. La dolorosa muerte de Gustavito, el único hipop��tamo de El Salvador que muri�� por un ""cobarde e inhumano"" ataque https://t.co/8vRRtJRY2Y pic.twitter.com/j6QWpLBuQ0 When veterinarians examined him, they found the 15-year-old hippo in ""great distress.""?He had suffered multiple wounds or bruising over much of his body, including his feet, neck, face, and even inside of his mouth, which likely occurred as he tried to defend himself, said zoo director Vladen Henr��quez. Officials believe he was attacked with rocks, metal bars, knives and an ice pick. Perd��nanos #Gustavito pic.twitter.com/4oWcPxOgNU Workers spent 24 hours a day caring for him, but he passed away on Sunday.- Zoo officials called the attack on the Gustavito ""Cruel and inhumane,""?and the Ministry of Justice has launched an investigation to find the attackers. Gustavito had been at the zoo for 12 years after he was brought there from Guam, and was the park's star attraction.-Fans tweeted their sorrow at his death. ""Whoever did this has to pay,""?said one. El Salvador is one of the world's most violent countries, but the death of Gustavito was a particular low point for residents. ""We'r used to seeing the dead every day,""?a San Salvador street vendor told The Associated Press.-""But this tops it all. They killed an animal that only entertained us.""?Whoever did this has to pay. My heart goes out to you and your keepers; may you rest in peace. #Gustavito #ElSalvador pic.twitter.com/h4SiVwasCk Never miss a thing. Sign up for up-to-the-minute breaking news alerts delivered straight to your inbox. Learn more", -1555,2017/2/27,http://www.huffingtonpost.com/2017/02/27/donald-trump-rallies-fizzle_n_15054064.html,Donald Trump's Call For Millions To Rally Fizzles,Events around the nation draw the few and the proud.,"President Donald Trump's supporters held rallies across the country Monday in response to a tweet he sent Saturday:- Maybe the millions of people who voted to MAKE AMERICA GREAT AGAIN should have their own rally. It would be the biggest of them all! Images from the rallies show many events had crowds of a few hundred supporters or less.- In Atlanta, about-250 people gathered to sing and chant in support of the president, according to The Atlanta Journal Constitution.- Huge Trump rally in downtown Atlanta today. pic.twitter.com/LVtL5kbbH9 I'm SHOCKED, SHOCKED, at the size of the Trump Rally in Atlanta today! @Crimsontider @RightWingNews pic.twitter.com/uVijzWqdIx the pro trump rally in Atlanta had literally tens of people pic.twitter.com/tGT1pAuokD Reuters notes that about-60 people gathered in the rain for a pro-Trump rally in Brea, California, and chanted, ""build the wall!""?and ""God bless America! God bless Donald Trump!""The Denver Post estimated 250 people at a rally on the steps of the Colorado Capitol: - Images of other rallies were shared across social media:-- The big Trump rally happening now in Bellingham, WA. The energy is electric. People are coming out en masse to make America laugh again. pic.twitter.com/c3cwnhHmGf Trump Rally in St Augustine FL!!!! #MAGA #GodBlessAmerica @FoxNews @marthamaccallum @realDonaldTrump pic.twitter.com/3sXJSNVCAe So much enthusiasm at the Stuart Florida Trump rally! pic.twitter.com/Xb9arCxDKc Breitbart said today's pro-Trump rallies would be ""MASSIVE."" The photos I've seen so far: pic.twitter.com/3gnSaAayiz Massive Trump rally in Raleigh right now. Just tremendous turnout. pic.twitter.com/6m2FCOluh2 A second set of pro-Trump rallies is scheduled for Saturday.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1556,2017/2/28,http://www.huffingtonpost.com/2017/02/27/peak-blackness-daily-show-moonlight_n_15054048.html,'Daily Show' Correspondent Calls 'Moonlight' Oscar A Sign Of 'Peak Blackness',"""We are operating at maximum levels of ""Blacktivity""?that haven""t been seen in decades.""?,""Toonlight's""?historic Oscar win-is not a singular event. It's actually part of a strange phenomenon known as ""peak blackness.""?At least that's the theory postulated by ""daily Show""?correspondent Roy Wood Jr. on Monday's show. ""Peak blackness""?is a rare metaphysical anomaly that can only occur when an amalgam of black excellence comes together at the same societal intersection","""?Wood explained to host Trevor Noah. When Noah seemed confused"," multiple black movies were nominated for Oscars and Frederick Douglass came back to life.""?Wood believes this is a glorious time. ""We are operating at maximum levels of ""Blacktivity""?that haven""t been seen in decades.""?Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe" -1557,2017/2/28,http://www.huffingtonpost.com/2017/02/27/muslim-vets-jewish-centers_n_15053992.html,U.S. Muslim Vets Vow To Defend Jewish Centers Under Siege,Surge of hate crimes is also bringing Americans together.,"The frightening increase in bomb threats against U.S. Jewish centers and schools and the desecration of Jewish cemeteries has triggered an outpouring of support on Twitter from Muslim veterans offering to protect the sites any time, anywhere. -One vet wrote: ""If your synagogue or Jewish cemetery needs someone to stand guard, count me in.""I'm a #MuslimMarine in Chicagoland area. If your synagogue or Jewish cemetery needs someone to stand guard, count me in. Islam requires it. Another tweeted:-""I'm a Muslim Veteran in Arizona & will readily stand guard at any Jewish Synagogue or Cemetery at ANY hour. #WeAreOne.""?I echo @MuslimMarine - I'm a Muslim Veteran in Arizona & will readily stand guard at any Jewish Synagogue or Cemetery at ANY hour. #WeAreOne https://t.co/dprgkvxyVF Houston area Jewish community I spent ten years protecting our country and I will gladly protect Jewish places of worship if you need me! https://t.co/nUQpTFwxvA This is America, helping each other, defeating hate. This is what I want to fight for. Thank you, @MuslimMarine. #mondaymotivation https://t.co/I74IMBKDD1 The response follows yet another surge of bomb threats Monday against Jewish centers and school across America, the fifth major wave of such intimidation this year. There was a second flurry of threats called in Monday evening against Jewish centers-""?and at least one school-""?in California, Washington, Nevada and Arizona.- The hate crimes, which exploded following the divisive rhetoric of the presidential campaign, have had the unexpected outcome of uniting American Jews and Muslims. A Muslim activist helped raise over $135,000 to repair gravestones vandalized in a Jewish cemetery in a St. Louis suburb over a week ago.-Tarek El-Messidi said extra funds will now be used to also help restore Philadelphia's Mount Carmel Cemetery, which was vandalized over the weekend. ""We must stand together against these acts of racism, anti-Semitism, and Islamophobia,""?El-Messidi wrote on Facebook. -The Ahmadiyya Muslim Community center in Philadelphia issued a statement condemning the vandalism of the local cemetery and dispatched a team to help with cleanup and security. ""We are deeply disturbed by the continuing attacks against our Jewish brothers and sisters,""?the organization said in a statement.- PRESS RELEASE: Ahmadiyya Muslim Community USA Condemns Vandalism of Jewish Cemeteries#Philadelphia pic.twitter.com/1rgH81HOzU After bomb threats were called into a Jewish centers in New York and New Jersey on Monday, one woman, Elen Arad, a cantor in New York's Westchester County, talked of her fear to a local radio station. But, she added, ""while I'm horrified by what's happening, I'm really touched by the outpouring by our Muslim friends and our Christian friends.""?I'm a Muslim in DC. If your synagogue needs someone to stand guard, I'll stand guard. Islam requires it. https://t.co/kw4acYBuPK I'm no marine, but I'll stand guard if needed. https://t.co/qtSJ5YQ0JH Never miss a thing. Sign up for up-to-the-minute breaking news alerts delivered straight to your inbox. Learn more", -1558,2017/2/28,http://www.huffingtonpost.com/2017/02/27/supreme-court-sex-offenders-free-speech_n_15053958.html,Supreme Court Explores Whether Sex Offenders Have Free Speech Rights On Social Media,"Under a sweeping North Carolina law, a man was convicted after declaring ""God is good"" on Facebook.","WASHINGTON ""?The U.S. Supreme Court is aware that President Donald Trump tweets and that knowledge of his social media use is one way for the public to engage in the civic life of the nation. But do sex offenders have a First Amendment right to so engage online? And if not, to what extent may a state limit their participation in the marketplace of ideas in cyberspace? The justices on Monday considered these and other questions as they weighed a North Carolina law that makes it a felony for a person on the state's sex offender registry to-""Access""?a breadth of ""Commercial social networking""ites where they can create-""personal profiles""?to ""Communicate with other users""?who may or may not be minors. The law doesn""t specifically name what sites are off limits, but it is written broadly enough to encompass even the president's favorite social media site. ""Everybody uses Twitter,""?Justice Elena Kagan said as she pointed to Trump's own penchant for the site and those who follow it. ""All 50 governors. All 100 senators. Every member of the House has a Twitter account. So this has become a ... crucially important channel of political communication. And a person [listed as a sex offender] couldn""t go onto those sites and find out what these members of our government are thinking or saying or doing. Is that right?""?Even though states across the country have similar laws limiting social media use by sex offenders, North Carolina's is especially strict, and the likelihood of being prosecuted under it for otherwise innocent conduct is more than theoretical. Lester Packingham, the man at the center of Monday's hearing, was convicted in 2010 after he expressed gratitude on Facebook for beating a traffic ticket. ""Tan God is good!""?he posted, noting that he did not even have to sit through a court hearing. ""no fine, No court costs, no nothing spent ""? Praise be to GOD, WOW! Thanks JESUS!""?But then Packingham was prosecuted for his Facebook post.- Because he had been convicted in 2002 of a sex-related offense with a minor when he was 21, he was registered as a sex offender, so state authorities said that his Facebook posting violated the North Carolina law. A jury agreed, and he was slapped with a suspended sentence of up to eight months, which he was ordered to serve on probation supervision. But the justices by and large seemed troubled that North Carolina's law, though admittedly important for the government's interest in protecting children, painted with a broader brush than constitutionally permissible. At one point, Kagan wondered whether the law's confusing language would ""mean that there's a constitutional right to use Snapchat but not to use Twitter""?for sex offenders ""?since the law exempts sites that are used only for ""photo sharing""ut not sites that allow photo sharing, private messaging and other functions. Justice Anthony Kennedy suggested that the social media sites of today ""Are greater than the communication you could ever have, even in the paradigm of the public square""?""?a reference to that place where the First Amendment provides the greatest protection for speech. But not so with the North Carolina law, which Justice Sonia Sotomayor said could be ""Applied indiscriminately""?not just to those who have been convicted of abusing children but to anyone the state labels as a sex offender ""?including those who have consensual sex with someone a few years younger than themselves and are then convicted of statutory rape. ""What's the inference that every sexual offender is going to use the internet to lure a child?""?Sotomayor asked. She later held up a printout of the comments on The New York Times website, where readers can create profiles that let them engage in lively discussions ""?a type of activity that an overzealous prosecutor could potentially use against a registered sex offender. ""Even if The New York Times is not included,""?Justice Ruth Bader Ginsburg observed, ""the point is that these people are being cut off from a very large part of the marketplace of ideas. And the First Amendment includes not only the right to speak but the right to receive information.""?Justice Samuel Alito noted that one possibility for ""Avoiding First Amendment problems""?raised by the law might be to limit its prohibitions to-""Core social networking sites,""?which indicates he might be inclined to overturn Packingham's conviction but not strike down the whole law. Still, a majority of the Supreme Court may decide the entirety of the law needs to go. As Kagan seemed to see it, North Carolina simply went too far in excluding sex offenders from sites that are nonetheless an integral part of how society communicates today. "" whether it's political community, whether it's religious community ""?I mean, these sites have become embedded in our culture as ways to communicate and ways to exercise our constitutional rights, haven""t they?""?she asked. The justices are expected to decide Packingham v. North Carolina before the end of June. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1559,2017/2/28,http://www.huffingtonpost.com/2016/11/29/8-caribbean-natural-wonders-you-have-to-see-to-believe_n_15053676.html,8 Caribbean Natural Wonders You Have To See To Believe,"Next level travel, right this way.","There's no better time than the winter for a warm tropical getaway, and there's no better destination than the Caribbean islands. Home to some of the most unique and inspiring scenery this side of paradise, the Caribbean is the perfect sensory feast for anyone who needs to hit refresh during the cold winter months.-- That's why We're teamed up to talk itineraries with global cruise line Royal Caribbean. We're mapped out the eight natural wonders that will steal the show on your next island-hopping adventure, because it's time to swap out those winter blues for the bright blue skies of the tropics! Escape the winter time blues with a Royal Caribbean adventure, and visit some of the most breathtaking natural wonders in the Caribbean. Visit Royal Caribbean to explore itineraries and find out how you can trade the ordinary for the extraordinary.- HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1560,2017/2/28,http://www.huffingtonpost.com/2017/02/27/trump-blames-obama-political-protests_n_15053450.html,Trump Blames Obama For His Political Protester Problem,"""I think he is behind it. I also think it's politics.""","Trump says Obama is ""behind"" the protests at GOP town halls and leaks coming from the White House pic.twitter.com/HAPhHIEtzU President Donald Trump sat down for an interview with ""Fox &-Friends""?and said that former President Barack Obama and ""Lis people""?are behind recent town hall protests. In recent weeks, activists have planned protests at Republican lawmakers""?events around the country. Protesters have shown up at Democratic lawmakers""?events, too. Last week, demonstrators rallied outside-an event featuring Sen. Dianne Feinstein-(D-Calif.) after the senator did not hold a town hall meeting when Congress was in recess. ""I think President Obama is behind it because his people are certainly behind it,""?Trump said in a preview of the interview. But, he said, ""ghat's politics, and it will probably continue.""?The president added that he also thought it was possible Obama and ""ghat group""?were behind-""some of the leaks""?coming out of the White House. Trump's interview will air in full at 6 a.m. Eastern time Tuesday on ""Fox & Friends.""?Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1561,2017/2/28,http://www.bbc.co.uk/news/uk-39112911,"Do not jail all paedophiles, says police chief","Paedophiles who view indecent images but go no further should not be jailed but rehabilitated, a leading child protection police officer has said.","Paedophiles who view indecent images but go no further should not be jailed but rehabilitated, a leading child protection police officer has said. Police forces ""cannot cope"" with the ""huge"" rise in reports, Chief Constable Simon Bailey, of the National Police Chiefs' Council, told the BBC. Figures show the number of child abuse reports is up by 80% in three years. The Home Office said ""viewing child abuse images is a terrible crime and should be treated as such"". Chief Constable Bailey, the head of Operation Hydrant, which is investigating multiple allegations of historic sexual abuse across the UK, said he knew his view would cause nervousness and draw headlines. But he said the numbers of reports of abuse were at ""huge proportions"" - an NSPCC study in late 2016 used figures which suggested the number of individuals looking at such images could exceed half a million. He told BBC Radio 4's Today programme about 400 people were arrested by police in conjunction with the National Crime Agency every month, for looking at indecent images. ""There are undoubtedly tens of thousands of men that are seeking to exploit children online with a view to meeting them, with a view to then raping them and performing the most awful sexual abuse upon them,"" he said. ""That's where I believe our focus has got to be. They are the individuals that pose the really significant threat."" Offenders who viewed online child abuse images should be placed on the sex offenders register, cautioned and managed in the community undergoing rehabilitation, he said. Referrals to rehabilitation ""increasingly are effective"", he said. He added: ""Every time an image is viewed, the victim is being victimised again and there is nothing as abhorrent. But we have to be able to manage the totality."" Not using the court system would ""speed things up"", he said. A Home Office spokesperson said the government had committed ?20m to the National Crime Agency for specialist teams to tackle online child sexual exploitation. ""Alongside ensuring we have a tough law enforcement response to bring offenders to justice, we are also committed to preventing offending in the first place,"" they added. Chief Constable Bailey's comments came as the Independent Inquiry into Child Sexual Abuse in England and Wales (IICSA) began its full public hearings on Monday. The wide-reaching inquiry will look at child abuse claims against local authorities, religious organisations, the armed forces and public and private institutions - as well as people in the public eye. It began with an examination of allegations made by children in care who were sent abroad.", -1562,2017/2/28,http://www.bbc.co.uk/news/world-asia-39112640,Kim Jong-nam death: Two women to face murder charges,"Two women implicated in the killing of the estranged brother of North Korea's leader are to be charged with murder on Wednesday, Malaysia's prosecutor says.","Two women implicated in the killing of the estranged brother of North Korea's leader are to be charged with murder on Wednesday, Malaysia's prosecutor says. Attorney General Mohamed Apandi Ali said the women - from Indonesia and Vietnam - would be formally charged and could face death if convicted. The women allegedly smeared a deadly chemical over Kim Jong-nam's face at a Malaysia airport earlier this month. They have said they thought they were taking part in a TV prank. ""They will be charged in court under Section 302 of the penal code,"" the attorney general said, which is a murder charge with a mandatory death sentence if found guilty. He said no decision had yet been taken on whether to charge a North Korean man, Ri Jong Chol, who is also being held over the killing. Who in North Korea could organise a VX murder? What is South Korea's take on the killing? Unravelling the mystery of Kim Jong-nam's death The two women - Doan Thi Huong from Vietnam and Siti Aisyah from Indonesia - are among some 10 suspects identified by Malaysia as being involved in the killing. The other suspects include a senior official at the North Korean embassy in Kuala Lumpur and a staff member of the state airline. South Korea believes at least four suspects are North Korean spies. A high-level delegation from North Korea - led by the former ambassador to the UN - arrived in the Malaysian capital on Tuesday. They said they were seeking the retrieval of the body and the release of Ri Jong Chol, as well as the ""development of friendly relationships"" between North Korea and Malaysia. North Korea has not confirmed that the person killed on 13 February at Kuala Lumpur airport was Kim Jong-nam, the half brother of leader Kim Jong-un, saying only he was a North Korean travelling on a diplomatic passport. Kim Jong-nam, 42, was at a check-in desk for a flight to Macau, where he lives, when he was accosted. He was smeared with a very high amount of the toxic nerve agent VX and died in pain within 15-20 minutes, Malaysia's health minister said on Sunday. Little is known for definite about Doan Thi Huong and Siti Aisyah except that they had left their homes in different parts of Asia and were trying to make a living in Malaysia. Malaysian police officials described Ms Huong, a 28-year-old from Vietnam, as an ""entertainment outlet employee"" while Ms Siti, 25 from Indonesia, was working in a hotel massage parlour. It is clear they lived precarious existences, reports the BBC's Rupert Wingfield-Hayes who has been researching the story. Ms Huong's Facebook page, in which she posted under the name Ruby Ruby, showed her posing in a number of selfies and glamour shots. There are rumours she once auditioned for Vietnam's version of Pop Idol. Her family said she left her home village in north Vietnam at 17 to study in the capital Hanoi, and had rarely returned home since. They said they were surprised to learn she was in Malaysia. Her stepmother told BBC Vietnamese that the family were fed up with all the attention they had received, but were grateful for the support of their neighbours. ""They are sympathetic because they don't understand how a daughter of a family with high moral values like us could become like that,"" Nguyen Thi Vy, 54, said. Siti Aisyah was arrested for the killing along with her 26-year-old Malaysian boyfriend, who was later released on bail. She told the Indonesian embassy officials that she thought she was taking part in a reality TV show, and had been paid 400 Malaysian ringgit ($90; ?72) to smear what she thought was baby oil on to Mr Kim's face. Ms Siti was out partying with her friends the night before the killing. A friend, who spoke anonymously, said they were celebrating her birthday, which had been the day before. Film footage purportedly from the evening shows her talking with friends about becoming an internet star. Ri Jong Chol, 47, is a North Korean who has lived in Malaysia for the last three years. He is in Malaysian detention. The Malaysian boyfriend of Siti Aisyah, Muhammad Farid Jalaluddin, was arrested but police said he would be released on bail. Hyon Kwang Song, 44, second secretary at the North Korean embassy in Kuala Lumpur is being sought by police. He is believed to be in the embassy in Kuala Lumpur. Kim Uk Il, 37, is a staff member of North Korea's state airline Air Koryo, and is also believed to still be in Malaysia. Ri Ju U, 30, a North Korean also known as ""James"", has been identified by the women as the man who recruited them. Ri Ji Hyon, 33, a North Korean, is believed to have fled to Pyongyang. Hong Song Hac, 34, a North Korean, is believed to have fled to Pyongyang. O Jong Gil, 55, a North Korean, is believed to have fled to Pyongyang. Ri Jae Nam, 57, a North Korean, is believed to have fled to Pyongyang.", -1563,2017/2/28,http://www.bbc.co.uk/news/uk-39109107,Sousse beach attack: Families of victims await answers,Families of the 30 Britons killed in a terror attack at a Tunisian resort are hearing the conclusions of an inquest at the end of a six-week long hearing.,"Families of the 30 Britons killed in a terror attack at a Tunisian resort are hearing the conclusions of an inquest at the end of a six-week long hearing. In all, 38 people were killed when an Islamist gunman opened fire at a hotel in Sousse on 26 June 2015. The inquest examined whether the UK government and travel firms failed to protect British tourists. Families wanted the coroner to consider whether neglect was a factor in their deaths, but he has ruled this out. It is understood that families of 22 of the Britons killed plan to take travel company TUI to a civil court in a bid to get compensation for personal injury and deaths. The company maintained it was ""wholly erroneous"" to claim it had been neglectful and there was insufficient evidence of any gross failure. Coroner Judge Nicholas Loraine-Smith has started to give his reasons for that decision and is expected to say that all 30 Britons were unlawfully killed. He has also said he would not be able to make judgements or give opinions as they fall outside his remit, and advised families the final day could be ""a bit of an anti-climax"" for them. Relatives and friends of the British dead, who were aged between 19 and 80 and included three generations - a young man, his uncle and his grandfather - from one family, have gathered at London's Royal Courts of Justice to hear the coroner's conclusions. What exactly happened on the day? Tunisia attack: 'He sacrificed himself' One survivor's recurring nightmare Who were the victims? The attack at the five-star Riu Imperial Marhaba hotel was the deadliest on Britons since the 7 July 2005 London bombings. The gunman, Seifeddine Rezgui, was later shot dead by police. Survivor Allen Pembroke told the BBC how he found people lying in pools of blood among sun loungers close to the water's edge. He gave first aid to British holidaymaker Cheryl Mellor, who was still alive after being shot in the leg and arm, but drifting in and out of consciousness. He said he was alone on the beach for 20 minutes checking on the dead and injured, with no help from anyone else. ""I saw no military or medical staff and it's only in recent reports that I found out that the police waited, they fainted, they hid. ""That's unforgivable, they need to be accountable for that,"" he said. The inquest has previously heard that ""part of the attack or most of it could have been prevented"" had security been tighter. Tour operator TUI has been accused of failing to vet security at the hotel, but the firm has argued ""matters could have been worse"" during the attack. The inquest, which began on 16 January, also heard evidence that: The Tunisian ambassador to the UK, Nabil Ammar, said his country had been unprepared for such an attack and it was unfair to blame police. ""How can you imagine that police deliberately wanted people to die?"" he asked BBC Radio 4's Today programme. Since the attack, he said security in the country and in hotels had improved, and Tunisia was now considered as safe a destination as London. Tunisia should, he added, be shown the same solidarity shown to other countries which have experienced similar attacks. Andrew Ritchie, who is representing 20 victims' families, told the inquest they believed TUI's ""utter complacency"" amounted to neglect. He said the guards at the Riu Imperial Marhaba had not been an effective deterrent and the lack of CCTV had made it a target. But Howard Stevens, counsel for TUI, said even if there had been additional CCTV cameras or guards it ""cannot be said that any of these measures would probably have made a difference"". The Foreign Office says further attacks are highly likely in Tunisia, including against foreigners, and advises against all but essential travel. By Richard Galpin, BBC News correspondent", -1564,2017/2/28,http://www.bbc.co.uk/news/business-39107973,UK 'must insulate 25 million homes',"More than one home every minute will need to be refurbished in the UK between now and 2050, experts say.","More than one home every minute will need to be refurbished in the UK between now and 2050, experts say. A report to Parliament says 25 million existing homes will not meet the insulation standards required by mid-century. The UK needs to cut carbon emissions by 80% by then - and a third of those emissions come from heating draughty buildings. The government said it would devise policies as soon as possible. But critics say ministers have been far too slow to impose a national programme of home renovation which would save on bills and improve people's health, comfort and happiness. It would also create thousands of jobs. Successive governments have been criticised for failing to tackle the UK's poor housing stock - some of the worst in Europe. Local authorities have limited cash to insulate council homes, and landlords and owner-occupiers have proved reluctant to invest large sums in disruptive improvements that will save on bills, but take many years to pay off. The report from a group of leading construction firms - the Green Building Council - says four out of five homes that will be occupied in 2050 have already been built. That means 25 million homes need refurbishing to the highest standards by 2050 - at a rate of 1.4 homes every minute. The authors say this huge challenge also offers an unmissable opportunity under the government's infrastructure agenda. The fiddly business of insulating roofs, walls and floors creates more jobs and has more benefits than any existing infrastructure priority, they maintain. The question is how to pay. The government's Green Deal scheme for owner-occupiers collapsed amid a welter of criticism that interest rates for insulation were too high, and that the insulation itself was too much hassle. The government has failed to produce a replacement solution to stimulate necessary demand for refurbishments amongst owner-occupiers. The Treasury is reluctant to throw public money at improvements that will increase the sale value of private homes. The report recommends: It says the construction industry needs certainty about what it is expected to deliver, and measurement to discover what is already being built. This should stimulate innovation, it says. Julie Hirigoyen, head of the GBC, told BBC News there was a great prize to be grasped in upgrading building stock: ""People will have warmer homes and lower bills; they will live longer, happier lives; we will be able to address climate change and carbon emissions. ""We will also be creating many thousands of jobs and exporting our best skills in innovation. ""Driving up demand for retro-fitting homes is essential for any policy to be a success - the Green Deal told us just offering financial incentives isn't necessarily the only solution. We need to make it all easy, attractive and affordable. ""The good thing is that the business community is really starting to recognise the opportunity."" Insulation: The unspoken reason for high fuel bills Ms Hirigoyen called for support for innovation amongst builders. The GBC pointed to a firm, q-bot, which insulates people's floors by sending robots to creep under people's floorboards and spray them with foam. The firm's head, Mathew Holloway, told BBC News: ""We have to find new ways of doing things. Normal refurbishment often means literally tearing a home apart. ""That means local authorities having to re-house tenants whilst it's being done. With our robot, we can seal and insulate wooden floors without hardly touching the inside of the house."" Mr Holloway's start-up business was funded by the EU and the business department BEIS, but industry experts complain that building insulation research has received a tiny fraction of the sums channelled into glamorous renewables. In the last 25 years, governments have tended to shy away from the issue. The Labour government made a rule that people extending their properties should be obliged to insulate the rest of their home too. However, the Coalition government dropped the clause after it was labelled a ""conservatory tax"" in the media, even though it was not a tax and did not refer to conservatories. The government is currently focused on bringing down bills through fuel switching - but home energy expert Russell Smith said: ""Switching saves on average ?25 a year. That's not much help to a person in fuel poverty. The solution is refurbishing homes, but it's difficult, so politicians keep putting it on the back burner."" Mr Smith is currently refurbishing Ruth Baber's home in Wimbledon, south London. He says it has added 10% to the ?250,000 total cost, which included major extensions, but will save 80% of energy bills and take about 20 years to recoup. Ms Baber is downsizing into the house and said: ""I'm worried about climate change and I look forward to being able to control the heat in my house better. I've done it [the insulation programme] for my grandchildren, for the future."" The government's task is to persuade another 25 million people to follow her lead. Follow Roger on Twitter @rharrabin", -1565,2017/2/28,http://www.bbc.co.uk/news/business-39110992,Free-range eggs temporarily lose status after bird flu measures,Millions of UK eggs will temporarily lose their free-range status after hens were forced to spend weeks inside barns as part of emergency bird flu measures.,"Millions of UK eggs will temporarily lose their free-range status after hens were forced to spend weeks inside barns as part of emergency bird flu measures. Since December, poultry has had to be kept indoors under government orders to prevent the spread of the disease. Under European Union rules, if birds have been housed for more than 12 weeks they cannot be marketed as free range. Farmers said the eggs would still look, taste and cost the same, despite the temporary re-labelling. They pose no danger to consumers, but bird flu is highly contagious amongst poultry and can wipe out entire flocks. It has been 12 weeks since governments in England, Scotland and Wales ordered poultry keepers to protect their birds from a highly-infectious strain of avian flu in Europe. The emergency measures are now being scaled back, but many farmers are keeping their hens indoors for the birds' protection. To avoid confusion, the industry has decided to label free-range egg cartons with stickers stating the contents were ""laid by hens temporarily housed in barns for their welfare"". They started appearing on shelves last week, but will be rolled out fully on Wednesday. ""The need to change labelling of free-range egg packs after 12 weeks is an EU requirement,"" said Mark Williams, chief executive of the British Egg Industry Council. ""However, these are all still free-range hens, but some are temporarily housed to protect them from bird flu."" Mr Williams said: ""Our research shows that consumers are supportive of farmers putting birds' health first and 80% are happy to continue to pay the same price, or more, for eggs from free-range flocks temporarily housed inside."" There are four different types of eggs sold in the UK, all of which are stamped on the carton: organic, free-range, barn-reared, and caged. Hens laying free-range eggs must have had unlimited daytime access to runs - fenced areas - with vegetation and at least 4 sq m of outside space per bird. After weeks of being kept indoors, farmers would love nothing better than to let their birds back outside. But it's a difficult balancing act. Get it wrong and a farmer could end up having his or her entire flock destroyed. So the British Egg Industry Council (BEIC) has taken the unprecedented step of labelling all commercial boxes of free-range eggs - whether hens are in or out - in order to create a level playing field for all farmers. Farmers say the label is just a technicality in any case as the hens are still free-range, just temporarily housed to protect them from bird flu. They hope consumers will be supportive, given that prices, for now, are staying the same. But it's not an open-ended guarantee and they will all be hoping that things get back to normal by the end of April. The UK has the largest free-range flock in Europe - and farmers are trying hard to help the birds adapt to the new routine, according to BEIC. Some are using footballs, plastic bottles and straw bales to stop the birds - which can normally peck whatever they want outside - from getting bored. The hens also have continuous access to feed and water, and are already used to spending time inside because they go there at night, the BEIC points out. The Department for Environment, Food and Rural Affairs said the majority of farmers in England could let birds outside provided they follow ""strict disease prevention measures"". ""Producers in the higher risk areas could still market their eggs as free-range, provided they use netting and meet other free-range criteria,"" a Defra spokesperson said. However, farmers pointed out that the average flock would require eight football pitches worth of netting, making it impractical and costly. The BEIC said ""continuing outbreaks of avian influenza across the UK and Europe"" meant egg producers and their veterinary advisers remained concerned about the risk. The government is due to review the restrictions again at the end of April, when farmers hope the risk will be lower because many wild birds will have migrated. Are you a poultry farmer affected by these changes? Send your comments to haveyoursay@bbc.co.uk Or you can contact us in the following ways: WhatsApp: +44 (0)7525 900971 Twitter: @BBC_HaveYourSay SMS/MMS: 61124 or if you are outside of the UK +44 7624 800 100", -1566,2017/2/28,http://www.bbc.co.uk/news/world-europe-39109725,Why liberal Dutch are turning to the right,,"With just over two weeks to go before the Dutch election, anti-Islam politician Geert Wilders is still leading the polls. Why do so many people in this usually liberal country support him?", -1567,2017/2/28,http://www.bbc.co.uk/news/business-39112871,BT landline-only customers set to get ?5 off monthly bills,"Customers who only buy landline services from BT are set to get at least ?5 a month taken off their bills under plans set out by the telecoms regulator, Ofcom.","Customers who only buy landline services from BT are set to get at least ?5 a month taken off their bills under plans set out by the telecoms regulator, Ofcom. It said those customers, who are often elderly or vulnerable, were not getting value for money. BT has nearly 80% of the UK landline market, and Ofcom is hoping other providers will also cut prices. The telecoms giant said it took its responsibilities ""very seriously"". ""Unlike other companies, [we] have many customers on special tariffs for socially excluded or vulnerable customers,"" BT said. ""Recently, we have frozen the cost of line rental for all of our customers who take a BT phone line."" The planned price cut will effectively reverse cost rises seen in recent years, Ofcom said. BT customers, who pay ?18.99 per month for a landline-only contract, would pay no more than ?13.99. Ofcom has the power to set prices for firms that have significant market power. The regulator's chief executive, Sharon White, told the BBC: ""We believe there are about two million elderly and vulnerable [BT customers] - strikingly about half are in their late seventies - and for this group of people their landline is their lifeline. ""It's a group of people who have seen the cost of their landline bills rise by about a third in recent years, while BT's costs have fallen by about a quarter."" She said most people on bundled packages - which include landline, broadband and/or pay TV - can shop around for better deals. BT is not alone in raising its prices. Major industry players increased line rental prices by between 25% and 49% in real terms between December 2009 and December 2016, while wholesale prices fell by about 26%, Ofcom said. The regulator launched its review of landline phone prices in December. Richard Neudegg, head of regulation at price comparison website Uswitch, said that the group of consumers affected are ""the most reliant on voice-only services and least likely to leave BT for a better deal"". ""The demographic tend not to be online, and are the least likely to engage with the market and switch their services, and it is right Ofcom is looking closely at what can be done,"" he said. Andrew Ferguson of broadband comparison website Think Broadband said that while the price reduction would be welcome for landline-only customers, ""a lot hinges on whether those who buy bundles will just end up subsidising those who buy standalone products"".", -1568,2017/2/27,http://www.bbc.co.uk/news/science-environment-39111030,SpaceX to fly two tourists around Moon in 2018,US private rocket company SpaceX has announced that two private citizens have paid to be sent around the Moon.,"US private rocket company SpaceX has announced that two private citizens have paid to be sent around the Moon. The mission is planned for late 2018, SpaceX CEO Elon Musk said, adding that the tourists ""have already paid a significant deposit"". ""This presents an opportunity for humans to return to deep space for the first time in 45 years,"" he said. The two unnamed people will fly aboard a spaceship which is set for its first unmanned test flight later this year. Mr Musk said the co-operation of America's Nasa space agency had made the plan possible. He said the two passengers ""will travel faster and further into the solar system than any before them"". Mr Musk declined to reveal their identities, only saying that they knew each other and that ""it's nobody from Hollywood"". ""Like the Apollo astronauts before them, these individuals will travel into space carrying the hopes and dreams of all humankind, driven by the universal human spirit of exploration. ""We expect to conduct health and fitness tests, as well as begin initial training later this year."" The first mission would be unmanned, and the next one - with crew - was expected in the second quarter of 2018, the billionaire entrepreneur and inventor said. He also said the first passengers ""are entering this with their eyes open, knowing that there is some risk here"". ""They're certainly not naive, and we'll do everything we can to minimise that risk, but it's not zero."" The space tourists would make a loop around the Moon, skimming the lunar surface and then going well beyond, Mr Musk said. The mission will not involve a lunar landing. If Nasa decided it wanted to be first to take part in a lunar flyby mission, then the agency would have priority, Mr Musk said. The US has not sent astronauts to the Moon since the early 1970s. Sir Richard Branson's Virgin Galactic venture proposes to send tourists on short sub-orbital flights in its vehicle SpaceShipTwo; the cost of a seat is listed as $250,000. However, its space vehicle was destroyed in a crash in 2014 and it remains unclear when the first flights with paying customers will begin.", -1569,2017/2/28,http://www.bbc.co.uk/news/uk-politics-39110688,Government looks for new spending cuts of up to 6%,Government departments have been told to find spending cuts of up to 6% as part of plans to save ?3.5bn by 2020.,"Government departments have been told to find spending cuts of up to 6% as part of plans to save ?3.5bn by 2020. Ahead of next week's Budget, the Treasury announced Whitehall would begin coming up with ways to contribute to its ""efficiency review"". It said the NHS and core schools budgets would not be included, with savings found by councils to be spent on under-pressure social services. Labour accused the government of ""sneaking out... more Tory austerity"". Departments have already faced significant cuts in their budgets since 2010, but they will now be told to find further savings of between 2% and 6% by 2019-20, the Treasury said, with up to ?1bn to be reinvested in ""priority areas"". It added that the government would continue to spend 2% of GDP on defence, and it remains legally obliged to spend 0.7% of GDP on overseas aid. The planned savings are due to be introduced around the time the UK is scheduled to be leaving the EU, and just before the next general election. Chief Secretary to the Treasury David Gauke said the government was committed to delivering services ""in the most efficient way possible"". He added: ""There has been considerable progress, but there is further to go and the whole of government is working together to consider how we can live within our means while delivering maximum value for every pound of taxpayers' money."" But shadow chancellor John McDonnell said the announcement showed Chancellor Philip Hammond ""represents more of the same Tory austerity"". ""Sneaking out an announcement asking departments to model cuts of 3% to 6% for 2019-20 is no way to manage public spending,"" he said. ""Hammond urgently needs to explain why this announcement was made in the way it was and why after seven years of failed austerity he thinks more of the same will now work."" Public spending as a share of GDP has fallen steadily since 2010 when it totalled 45%. This year's figure is forecast to be 40%. Mr Hammond has relaxed the government's fiscal targets since taking over in July, abandoning predecessor George Osborne's target of eliminating the deficit by 2020. But he has made clear that borrowing levels are still too high and that the government should be aiming to balance the books at some point in the 2020s. The Institute for Fiscal Studies has said meeting this target by 2025 would require up to ?34bn in further spending cuts and tax rises. But ahead of his first Budget on 8 March, Mr Hammond is under pressure to increase spending on a number of fronts amid signs that stronger-than-expected tax receipts could give him additional room for manoeuvre. He is facing calls to rethink the revaluation of business rates in England which would see more than half a million firms pay higher annual bills. Labour wants ?500m to be made available to help small businesses cope with the impact, warning that it could leave many High Streets a ""wasteland"". Several Tory MPs are pressing the government to make extra funding available for social care on top of what is already being promised. Speaking in the Commons on Monday, Conservative MP Sarah Wollaston said the effects of an ageing society, on top of underlying financial pressures, were creating a ""perfect storm"" for the health service. She said the NHS needed a cash ""lifeline"" in the Budget and that plugging gaps in day-to-day spending by re-allocating capital spending was a ""false economy"". The government is being warned that a further dose of austerity, without better financial planning and reform, could push some public services to ""breaking point"". In a new report, the Institute for Government and Chartered Institute of Public Finance and Accountancy said social care and prisons were in a cycle of ""crisis, cash, repeat"" and better use needed to be made of the money being spent.", -1570,2017/2/28,http://www.bbc.co.uk/news/uk-39109865,Fears for environment as automatic legal 'cost cap' scrapped,New rules have come into force which could dramatically reduce the ability of individuals and non-governmental organisations to bring legal challenges to protect the environment.,"New rules have come into force which could dramatically reduce the ability of individuals and non-governmental organisations to bring legal challenges to protect the environment. The government is scrapping automatic ""cost caps"" which limit the costs of losing a case in England and Wales. Opponents claim the changes will make it ""impossible"" to ""hold the government to account"". But the government says people will not be expected to pay above their means. The caps currently stand at ?5,000 for an individual and ?10,000 for an organisation. The normal ""loser pays rule"" means that successful claimants can claim their legal costs back from the defendant. But if they lose, they have to pay both their own legal costs, and those of the winning side. Under the changes, any person or organisation wanting to bring a judicial review in environmental cases will not automatically receive the protection of a '""cost cap"" if they lose. That could mean individuals having to sell a house. ClientEarth, Friends of the Earth and the RSPB are challenging the rule change in the courts, arguing those bringing such cases would be exposed to huge and uncertain financial risk. The ""cost caps"" came in in 2013 in part due to the international Aarhus Convention, which was ratified by the government in 2005. It requires contracting parties to ensure that legal action to protect the environment is ""fair, equitable, timely and not prohibitively expensive"". This recognises that the environment cannot protect itself and that there is a public interest in people and groups bringing legal actions to protect it. Before the caps, the cost of bringing cases could be huge. In one, concerning the construction of a funicular railway up Cairngorm Mountain in Scotland, WWF was ordered to pay the government's legal costs of over ?200,000 on losing. In another, local resident Lilian Pallikaropoulos faced a costs bill of just under ?90,000 after losing her challenge against the legality of a large cement works near her home in Rugby, Warwickshire. Under the new rules, the court can look at the financial resources of a claimant and discard the automatic cost cap. This could involve an assessment of how much their house is worth and whether they should be forced to sell it if they lose. It is estimated that some 40,000 people in the UK die prematurely each year because of air pollution. The group ClientEarth has brought successful legal challenges against the government's failure to meet EU targets on air pollution. Its chief executive James Thornton said: ""By removing cost caps and allowing personal finances to be publicly examined, it creates a huge deterrent for those who would use law to defend people's health and the natural world. ""With unlimited legal costs, it will be virtually impossible to bring a public interest case and hold the government to account. ""This is especially true after a hard Brexit - which looks increasingly likely - when the EU won't be able to punish UK law breaking."" Campaigners say the UK's public interest cost rules are already more punitive than the US, China, and any other country in the EU. They claim environmental public interest cases made up less than 1% of all judicial reviews from 2013 to 2015, and that they achieve twelve times the success rate of other judicial reviews. A Ministry of Justice spokesman said: ""The cost of bringing environmental challenges must not be prohibitively expensive and our changes will ensure that individuals are not expected to pay legal costs above their means. Legal aid remains available for these cases"". But last week, a House of Lords committee concluded that ""people with a genuine complaint will be discouraged from pursuing it in the courts"".", -1571,2017/2/28,http://tass.com/world/933191,"Italian president to visit Moscow, meet Russian president in April",,"SOCHI, February 28. /TASS/. Italian President Sergio Mattarella plans to visit Moscow and meet his Russian counterpart Vladimir Putin in April, Italian Ambassador Cesare Maria Ragaglini told TASS on the sidelines of the Russian Investment Forum in Sochi. ""I can confirm April, but not the date,"" the diplomat said, adding that Mattarella ""will be meeting the President (Vladimir Putin - TASS), obviously."" ", -1572,2017/2/28,http://tass.com/society/933193,Kremlin envoy calls for ban on keeping wild animals as house pets,"The Kremlin envoy hopes that the State Duma will adopt an animal cruelty law, strengthening liability for such activities","SOCHI, February 28. /TASS/. The Russian President's special envoy for transport and the environment, Sergey Ivanov, has called for a ban on keeping wild animals as house pets and stricter safety guidelines for so-called petting zoos. In an interview with TASS during the Russian Investment Forum he drew attention to the fact that ""in big cities, animals that should never live with humans live in citizens""?houses and apartments."" Animals on the verge of extinction ""By the way, We're stumbled across the carcasses of crocodiles, lions, leopards at garbage dumps, everything is there. Lynxes live on the balconies. This is cruelty, barbarity, and savagery, and it must be banned,"" Ivanov contended. According to his opinion, ""wild animals should live in decent zoos or in rehabilitation centers and, of course, outside the city."" ""And besides, I think animals should live in the wild,"" the envoy added. Additionally, Ivanov is a chairman of the supervisory council of the independent non-profit organization ""Far Eastern Leopards"". ""We must closely scrutinize these so-called petting and mobile zoos, because violations and animal abuse are rampant there,"" Ivanov asserted. In addition, he lobbies for ""a total ban on earning money, taking pictures of tourists with wild animals"". The Kremlin envoy condemned this as ""cruelty and barbarism as well."" The Kremlin envoy hopes that the State Duma (lower house) will adopt an animal cruelty law, strengthening liability for such activities. ""The public demands it. I can only thank the media, when it displays people's reckless actions. This sort of thing should be punished,"" he emphasized. World leaders with their four-legged friends ", -1573,2017/2/28,http://tass.com/world/933189,"Turkish troops ready to advance to Raqqa ""?Erdogan",Erdogan says Turkey may launch an operation aimed at liberating Syria's Raqqa from terrorists but only if understanding is reached with Russia and the international coalition,"ANKARA, February 28. /TASS/. Turkey may launch an operation aimed at liberating Syria's Raqqa from terrorists but only if understanding is reached with Russia and the international coalition, Turkish President Recep Tayyip Erdogan said on Tuesday in Istanbul before departing for Pakistan. ""We are about to wrap up the discussion of the al-Bab operation. After that, we have Raqqa on the agenda, provided we come to understanding with Russia, the international coalition, the US. In this case, we will consider Raqqa and Manbij,"" he said. Erdogan also said that ""in the current situation, Turkey places much importance on talks with Russia, which is a country close to Turkey, as well as on contacts with our strategic allies, the coalition and the US."" ""Taking the present situation into account, cooperation with these countries in Syria is very important for us,"" he added. The Turkish president went on saying that he had discussed the situation in al-Bab and the progress of the Euphrates Shield operation with the country's Chief of General Staff General Hulusi Akar. ""The main thing that we discussed was concluding the operation in al-Bab. We also exchanged views on our contacts with the US and Russia on these matters and what prospects there are. But the fact that the al-Bab operation has almost concluded does not mean that the work (in Syria) is done,"" Erdogan said. He also stressed that ""Turkey does not plan to remain in Syria"" after the Euphrates Shield operation was over. ", -1574,2017/2/28,http://tass.com/politics/933180,Putin says Russian-Kyrgyz relations develop consistently,Vladimir Putin says Kyrgyzstan remains a very important partner for Russia,"BISHKEK, February 28. /TASS/. Head of Kyrgyzstan Almazbek Atambayev has done much for developing relations with Moscow, Russian President Vladimir Putin said at a meeting with the Kyrgyz leader on Tuesday. ""Indeed, you have done very much for the relations between our countries to develop consistently and improve qualitatively. Today we'll have a possibility to talk on all the areas. Kyrgyzstan remains a very important partner for us and it is pleasant for us that Russia holds the first place in the sphere of trade and economic relations,"" Putin said. Greeting the Russian leader, Atambayev said that presidential elections would be held in Kyrgyzstan on November 19 and, summing up certain results of his work, he noted that efforts had succeeded in the past few years to raise the relations between Russia and Kyrgyzstan to the level of strategic partnership. Before the start of the talks between the two leaders, a ceremonial meeting of Atambayev and Putin was held at the entrance to the residence of the Kyrgyz leader. The heads of state shook their hands and exchanged a couple of phrases. After the orchestra played the anthems of both countries, the presidents walked along the guard of honor and greeted members of the delegations.", -1575,2017/2/28,http://tass.com/economy/933183,Russia's most powerful nuclear plant reactor enters commercial operation,,"MOSCOW, February 28. /TASS/. Russia's most powerful nuclear reactor, also unparalleled in the world, has entered commercial operation. As the nuclear power concern Rosenergoatom has said the order to commission the 6th unit of the Novovoronezh NPP was signed by Rosenergoatom's CEO Andrey Petrov on the basis of permission obtained from the state nuclear energy corporation Rosatom. The reactor went on stream for the first time on August 5, 2016 to undergo comprehensive testing. In contrast to the customary VVER-1000 reactors the NPP-2006 project at Novovoronezh boasts a number of advantages that considerably improve its economic parameters and safety. The reactor's capacity is up 20% to 1,200 megawatts in contrast to the VVER's 1,000 megawatts; the life cycle of the main equipment, such as the reactor's hull and steam generators, was doubled to 60 years from 30 years and the high degree of automation and new engineering solutions allowed for reducing personnel by 25%-30%. The reactor has such unparalleled features as the core melt trap and a passive heat transfer system that cools the reactor with the natural air flow even when power supply is off and participation of personnel is impossible. Generation 3 Plus reactors are under construction in the United States and France, but Russia's reactor at Novovoronezh is the first one of the new generation to have entered commercial operation. The Novovoronezh NPP is an affiliate of the concern Rosenergoatom. It is situated on the Don River 42 kilometers south of Voronezh. It is Russia's first NPP to have been equipped with water-pressurized VVER reactors. Each of the power plant's five reactors was a pilot project in a series of power supply reactors. Currently three reactors at Novovoronezh are in operation. The first and second reactors were shut down in 1984 and 1990 respectively. The third reactor is being withdrawn from operation. Rosenergoatom has been building two new generation NPP-2006 reactors at Novovoronezh since 2007. All newly-built units will be equipped with VVER-1200 reactors.", -1576,2017/2/28,http://tass.com/economy/933181,Russia's operator of energy grids says hi-tech likely to cut cost of power bridge to Japan,"Russian investments are estimated at $2 bln, while Japanese investments will be substantially higher","SOCHI, February 28. /TASS/. Russia's operator of energy grids Rosseti expects the final cost of construction of the energy bridge to Japan to go down thanks to cutting-edge technology solutions, CEO Oleg Budargin told TASS on the sidelines of the Russian Investment Forum in Sochi on Tuesday. ""I'm flying to Tokyo for talks the day after tomorrow. They [Japan]-are offering cutting-edge solutions, innovative power transmission technologies. We meet scientists, get connected via superconducting cables and so on. This will also have a role [affect the price - TASS], though it is not clear how, probably, cut the cost,"" he said. According to Budargin, Russian investments are estimated at $2 bln, while Japanese investments will be substantially higher.", -1577,2017/2/28,http://tass.com/politics/933170,Russian diplomat warns US arms deliveries to Ukraine may turn into new tragedies,"Earlier, US senator urged President Donald Trump to send defensive armaments to Ukraine","MOSCOW, February 28. /TASS/. The deliveries of armaments from the United States to Ukraine may turn into new tragedies, Russian Deputy Foreign Minister Sergey Ryabkov said on Tuesday. ""The US Congress demands that the deliveries of the so-called lethal weapons [to Ukraine] be started. That is why, it is important that the US White House and the Department of State should realize that this may turn into new tragedies and should feel their responsibility,"" Ryabkov said at a roundtable discussion in the lower house of Russia's parliament on Russian-US relations. ""We'r trying to help adequately understand what has happened and is happening in Ukraine, including in Donbass,"" he added. ""We'r trying to help adequately understand what was taking place and is taking place in Ukraine, including in Donbass,"" he added. ""we'll be explaining to the new administration the history and the current state of the internal conflict in Ukraine,"" the diplomat said. Chairman of the US Senate Committee on Armed Services John McCain and Chairman of the House Committee on Armed Services Republican Mac Thornberry earlier urged US President Donald Trump to send defensive armaments to Ukraine. Thornberry stressed that the idea of providing defensive armaments to Ukrainians enjoyed wide support both in the US Republican and Democratic Parties. The current Act on the activity and the financing of the US Department of Defense for fiscal year 2017 allows the head of the Pentagon to provide defensive lethal force weapons to the Ukrainian army. Most frequently, anti-tank weapons are mentioned among these armaments. A total of $350 million has been set aside for these purposes.", -1578,2017/2/28,http://tass.com/politics/933177,"Senate speaker blasts allegations of Russia ""Influencing French elections""?as absurd","Such rumors ""just cause one to smile,"" Russian Federation Council Speaker Valentina Matviyenko said","MOSCOW, February 28. /TASS/. All allegations that Russia is trying to influence the upcoming French elections are absurd, Russian Federation Council Speaker Valentina Matviyenko said at a meeting with a French parliamentary delegation. She added that ""horror stories have been spreading lately that Russia wants to influence the elections in Germany and France."" ""This is absurd,"" the Russian Senate speaker said adding that such rumors ""just cause one to smile."" According to Matviyenko, Russia already had to face such accusations in connection with the US presidential election. ""It is nice to know they think so highly of us,"" she joked. According to the senate speaker, such allegations ""humiliate the American people"" who elected their president themselves.", -1579,2017/2/28,http://tass.com/pressreview/933126,Press review: US 'gears up for war' in Europe and experts doubt stability of Syrian peace,"Top stories in the Russian press on Tuesday, February 282","- Russia's Federal Service for Veterinary and Phytosanitary Surveillance is reviewing 282 applications from Turkish food producers which have filed requests to let them supply their products to Russia, Izvestia writes on Tuesday citing the watchdog. The federal agency is not in any hurry to open its borders to milk, meat and seafood from Turkey as they had contained hazardous and prohibited substances during previous checks. Experts say the rapprochement should be mutual: it would be fair to allow Turkey's poultry to Russia if Russian meat got access to Turkey's market. Turkey filed 97 permit requests for dairy products, 52 for fish and seafood, 43 for poultry, 40 for hatchable eggs and baby chicks, 31 for ready meat products and 12 for eggs. Only one Turkish enterprise wants to supply honey to Russia, and another two applications were submitted for collagen and gelatin. Russia's watchdog said the possibility of including new Turkish enterprises into the registry may be considered only after carrying out another round of checks by Russian veterinarians. The watchdog stressed that it cannot make any conclusions on the quality of the products, not supplied to Russia over the past year. The federal agency gave no further details when such checks could take place. Head of Executive Committee of Russia's National Meat Association Sergey Yushin said Russia could do without Turkish goods. He said Russian producers would manage to replace the share of import from any country, which already accounts for less than 5% of consumed meat. - The Syrian crisis and the country's political fate were in the spotlight during the first day of the Moscow conference of the Valdai International Discussion Club on the Middle East, Vedomosti writes. The conference coincides with the fourth round of intra-Syrian political talks that kicked off in Geneva last week. Simultaneously, Astana hosted the talks where Iran, Russia and Turkey agreed to set up a trilateral mechanism for monitoring the ceasefire. For the first time, the opposition was represented only by armed groups there, the paper writes. Russia's role in Syria is very contradictory and even the talks in Astana do not soften attitudes toward Moscow, Executive Chair and Founder of Beirut Institute Raghida Dergham said. ""Bashar Assad and peace in Syria are incompatible words. Many in the Arab world wanted Russia to leave Syria, and its joint actions with Iran, which among other things lead to a rift based on religious principles. The alliance of Turkey, Russia and Iran does not have a long-term basis."" Astana won""t replace Geneva, where there was a broader representation of domestic, Syrian and external players, primarily the United States, an Ankara-based political analyst, Hasan Ozertem, said. ""At the talks in Astana, Turkey, Iran and Russia sat down at one table and together emerged as the ceasefire's guarantors. However, the Syrian Kurds have already received a draft constitution from the Russians bypassing the Turks."" Ankara wants to have equal weight, otherwise many recent gains may be quickly lost, the analyst said. - In February, the US military carried out the most massive round of drills by its strategic nuclear forces over the past years, Izvestia writes. According to their scenario, the hybrid conflict in Europe escalated into a global nuclear war with the participation of the United States. Experts say the scale of maneuvers and the choice of a potential enemy could be a response to last year's drills by Russia's nuclear forces. Former Chief of Staff of the Russian Strategic Missile Forces Viktor Yesin confirmed to Izvestia that the current Global Lightning 17 drills are distinguished by their scale and the choice of a simulated enemy. ""These exercises have regular and planned characteristics. They were conducted during the Cold War time, but they had another name,"" the general stressed. ""However, this year they are more large-scale. Five launches of ballistic missiles - this is the criteria of full-fledged drills,"" he stressed, adding, ""This may be a response to the drills by the strategic nuclear forces that we carried out in October."" The expert did not rule out that the US military has been lobbying for an increase in defense spending and tried to demonstrate its capabilities to President Trump's new administration. Analysts say that large-scale exercises by strategic forces in the midst of the crisis in Russian-US relations indicate that there is a need for urgently reducing tensions and settling disputable matters, especially in the area of European security. - Following in the footsteps of Lukoil, Russia's other oil giant, Rosneft may join the race for Mexican shelf fields. Sources told Kommersant that the company is studying only shallow-water deposits as production in deep marine shelves may be hampered by the US sanctions. However, the paper's sources say work in under-explored Mexican shelf sites would be rather difficult, pointing to Lukoil's mixed results. Rosneft had already conducted a project with ExxonMobil in the Mexican Gulf on the US shelf, but the partners found no commercial reserves there, the paper writes. Rosneft is currently wrapping up a study of deposits in shallow areas of the Mexican shelf, the sources said. Mexico's National Hydrocarbons Commission (CNH) said 15 contracts will be awarded in late June. The companies have to confirm participation in data room by late March and a tender will take place in June, according to the CNH. Rosneft together with ExxonMobil had already shown interest in the Mexican Gulf but last year the partners refused to develop a project in 20 fields after finding no commercial reserves there. Rosneft will also join the new tender as part of a consortium since the risks are too high, one of the sources said. ""Chances are Rosneft is unlikely to be a project operator in Mexico,"" said Valery Nesterov from Sberbank Investment Research, adding that large reserves from the Mexican shelf should not be expected. - The DPR and LPR, the self-proclaimed republics in eastern Ukraine, have handed the authorities in Kiev an ultimatum saying they would fully reposition industry in Donbass towards Russia unless Kiev ended its transport blockade, Nezavisimaya Gazeta writes. Kiev may lose tax liabilities paid by the enterprises in the Lugansk and Donetsk People's Republics. Moreover, starting March 1, the Russian ruble will also become the main currency in the Lugansk People's Republic, the paper says. The aftermath of shelling in Eastern Ukraine Several plants in the region have already suspended operations, but DPR leader Alexander Zakharchenko said the enterprises may be relaunched within two months. After taking over the enterprises presently under Ukrainian jurisdiction, the DPR may replenish up to 70% of its budget as a result, he noted. However, Russian experts are not that optimistic. ""There is a very small chance that the products manufactured in Donbass will be in demand in Russia. Almost everything that is manufactured in Donbass is also produced in Russia,"" Anton Kozyura, an analyst at Alpari said. Another analyst and broker from Alor, Kirill Yakovenko, said no stable export-oriented economy can be created during a war. ""Saying that Donbass will be able to produce something for export and earn income from it will be possible in around five years provided that combat actions end today,"" he emphasized. Russian financial experts are not in favor of introducing the Russian ruble in the Lugansk republic. ""In our view, this is not the best idea for Russia. First, a new pretext would surface for accusing Russia of taking eastern Ukraine under control and therefore for extending or toughening sanctions. Second, for financial markets the ruble would become the currency of a territory involved in a military conflict. This envisages a discount in regard to the ruble and Russian shares,"" Director of Alpari's Analytical Department, Alexander Razuvayev said. He stressed that a better idea for Donbass would be to start issuing its own currency. - TASS is not responsible for the material quoted in the-press reviews", -1580,2017/2/28,http://tass.com/economy/933169,Envoy says Sakhalin may be linked to Russia's mainland via tunnel and later to Japan,"According to Ivanov, there are more chances that a tunnel would be built, but it would depend on economic viability","SOCHI, February 28. /TASS/. Russia's Sakhalin Island is unlikely to be connected to Japan's Hokkaido by a bridge, Presidential Envoy for Environmental Protection, Ecology and Transport Sergey Ivanov said in an interview with TASS on the sidelines of the Russian Investment Forum in Sochi. According to Ivanov, there are more chances that a tunnel would be built, but it would depend on economic viability, however, Sakhalin first needs to be connected to mainland Russia. Discussions of possibly connecting the Trans-Siberian Railway with Japan were initiated by the Japanese media after Moscow and Tokyo had stepped up talks at the end of 2016 and the beginning of 2017, following Russian President Vladimir Putin's recent visit to the land of the rising sun. ""There is such an idea [to build a bridge connecting Sakhalin and Hokkaido], but first of all, Sakhalin needs to be connected to the mainland [Russia], not to Hokkaido,"" Ivanov emphasized. In his opinion, only after Sakhalin is connected to the Russian mainland, ""the question of economics will crop up, be it in 30 or 40 years from now - it couldn""t be any sooner if we talk about transport - on whether transportation volume will grow to such an extent that the construction of a bridge or a tunnel [between Sakhalin and Hokkaido]-will pay off."" ""Experts tell us to forget about bridges, because a bridge will never pay off since there isn""t any huge volume of transportation. This is not the Kerch Strait Bridge, which is to be an important economic lifeline,"" the Russian presidential envoy pointed out. At the same time, Ivanov admitted that ""a tunnel is possible."" ""A tunnel around 51 kilometers long could be compared to the Eurotunnel [between Britain and France]. Of course, from a technological point of view, it is possible to build, only the economic issue remains, whether it will pay off,"" he noted. However, in the Kremlin envoy's words, ""if there is no connection between Sakhalin and the mainland, all other plans will be pointless."" Ivanov added that connecting Sakhalin to Russia's mainland ""is a long-cherished dream, and (Joseph) Stalin was one of those who planned to do it but did not succeed."" ""The Soviet Union failed to implement many plans, including the project to build a road connecting Chita and Khabarovsk, but we did it,"" Ivanov stressed. The presidential envoy did not say when the plan to connect Sakhalin to the mainland Russia could be implemented, noting that such projects were managed by the transport ministry.", -1581,2017/2/28,http://www.dw.com/en/australia-arrest-suspect-for-advising-islamic-state-on-missile-design/a-37744027?maca=en-rss-en-all-1573-rdf,Australia arrest suspect for advising 'Islamic State' on missile design,"The Australia-born electrician had counseled the militant group on how to develop missile capabilities, police said. The country's chief of police said the information the suspect provided was ""fairly sophisticated.""","The legislation has provided authorities with the ability to hold convicted terrorists beyond their prison sentences. But opposition lawmakers criticized the new law, saying it undermines the country's civil liberties. Australian prosecutors on Tuesday charged a 42-year-old man for helping the ""Islamic State"" group to develop long-range guided missile capabilities. Federal Police Commissioner Andrew Colvin said the Australia-born electrician had contacts ""not just in the conflict zones, but also in other parts of the world and relied on them to pass the information."" The suspect had advised the militant group on how to design a laser missile-warning device and develop its own missiles, according to police. ""In terms of the advice he was providing, we will allege it was fairly sophisticated and well-planned,"" Colvin said. The 42-year-old man had been detained in the small town of Young in Australia's New South Wales region. Australian Prime Minister Malcolm Turnbull said the arrest followed an 18-month operation, describing it as ""another reminder of the enduring threat we face from Islamist terrorism."" ""This highlights that terrorism, support for terrorist groups and Islamist extremism is not limited to our major cities,"" Turnbull said ""It once again shows that we all need to be very vigilant."" The suspect can receive a maximum penalty of life imprisonment if authorities find him guilty of the terror-related offenses. Terror alert In September 2014, Australia raised its terror-alert level to high amid fears of foreign fighters returning from Syria and Iraq after joining militant groups in the region. Roughly 200 Australians have traveled to the Middle East to join the ""Islamic State"" and other terrorist groups fighting on the ground, according to authorities. Since the rise of the ""Islamic State"" in 2014, Western nations have increased counterterrorism measures in a bid to curb attacks and prevent homegrown radicalization. Australian authorities have prevented at least 12 terror attacks since then, according to officials. Islamic State (IS) - also known as ISIL, ISIS and Daesh - is an al Qaeda splinter group with militant Sunni Islamist idealogy. It emerged in the aftermath of the US-led invasion of Iraq in 2003 and is led by Abu Bakr al-Baghdadi. The group's goal is to create an Islamic state, or ""caliphate"", across Iraq, Syria and beyond. IS is believed to be operational in 18 countries across the world. It controls territory in Iraq and Syria, and its de facto capital is Raqqa, in Syria. However, the group has lost more than a quarter of its territory since January 2015. There are many groups involved in the fight against IS. The United States is leading air strikes by an international coalition of more than 50 countries, including several Arab nations. Russia has conducted air strikes in support of the Syrian government. Regional forces, such as the Kurdish Peshmerga (pictured above), are fighting on the ground. One of the group's main sources of income has been oil and gas - it still controls an estimated one third of Syria's oil production. However, US-led air strikes are deliberately targeting this valuable asset. Other means of income include taxes, ransoms and selling looted antiquities. IS has claimed responsibility for numerous terrorist attacks across the globe. The most deadly to date was a suicide bombing this year in the Iraqi capital, Baghdad, in which more than 200 people died and many more were injured. IS leaders have encouraged so-called ""lone wolf"" attacks, whereby individuals who support IS can carry out terrorist acts without the direct involvement of the group. The group uses various tactics to expand its power. IS fighters have looted and destroyed historical artefacts in Syria and Iraq in an attempt at ""cultural cleansing"", and thousands of women from religious minorites have been enslaved. The group also uses social media as a propaganda and recruitment tool. Around six million Syrians have fled abroad as a result of the ongoing conflict - many to neighboring Lebanon, Jordan and Turkey, but also further afield to Europe. More than three million Iraqis have been displaced within the country. Author: Rachel Stewart ls/kms (AFP, Reuters)", -1582,2017/2/28,http://www.dw.com/en/revisiting-100-years-of-recorded-jazz/a-37735268?maca=en-rss-en-all-1573-rdf,Revisiting 100 years of recorded jazz,"The first record player was invented in 1887, but the first jazz album was recorded in 1917. Jazz expert Bert Noglik tells DW how technology has influenced the genre.","DW: Mr. Noglik, the first jazz album was recorded in New York. How did this recording happen? Bert Noglik: The Original Dixieland Jass Band [Eds.: the name was changed to ""Jazz"" by mid-1917], from New Orleans, went to Chicago to perform Dixieland jazz, a sound that no one there had heard previously. At the time, ragtime was the dominant style and Dixieland was something completely new.- People in New York also wanted to hear Dixieland music. The band was invited to do a gig at the restaurant Reisenweber, which was a trendy location with a nightclub in Manhattan. The band performed there in January 1917.- Shortly afterwards, the record label Columbia came knocking at their door to record them. But the label found the material too hot, too innovative, so the recordings weren't released. Another label, Victor, then jumped in and recorded two tracks, ""Dixieland Jass Band One-Step"" for the A side and ""Livery Stable Blues"" for the B side, on February 26, 1917. It was a big hit, pressed as a 78 rpm record single and sold for 75 cents. It was a remarkable event for the music market and the history of jazz - as well as a tremendous commercial success.- The B side of the first jazz record Was 1917 really the year the first jazz album was recorded? Some sources set this event in 1904, when the German operetta king Paul Lincke recorded a jazz-like composition with the choir of the Apollo Theater in Berlin. How do you see this? This obviously depends on your definition of jazz. Without a doubt, there were earlier recordings of ragtime music and other pre-forms of jazz. However, some essential stylistic elements of jazz, such as swing, appeared much later. The recordings with the Original Dixieland Jass Band at the end of February 1917 already featured many of the characteristics of what we would later define as jazz.- At the beginning of the 20th century, the record business in the US and Europe was still developing - but it probably couldn't be characterized as an industry yet? It was in its first steps. It developed over the following years. And radio only became widespread in Germany and in the US in 1923. Jazz developed a wider audience through records and radio by the end of the 1920s. Who earned money with the new jazz records at the time? The record labels, of course; they were already determining what could be marketed. Columbia was initially cautious with this new sound, but quickly jumped on the bandwagon, recording the Original Dixieland Jass Band as well. By then, Victor had already sold its first recording of them by the millions.- Record companies made very good deals at the beginning. When did record sales become interesting for musicians as well? Actually, right from the start, because those records made music available anytime, anywhere - and worldwide. This was a great opportunity for musicians to become known and allowed them to play more concerts and go on international tours. In the West, the record industry rapidly developed into a huge business. What happened in divided Germany in the 1960s?-How did the market differ in East and West Germany? You have to start by looking back at the first years of Soviet Occupation, from 1945 to 1949. There was a record label called Amiga, which documented very well the period's jazz production. We owe this label the most important testimonies of post-war German jazz.- It later became difficult because of East Germany's strong ideological regulations. In the 1950s, jazz was considered bourgeois entertainment music, which is why authorities imposed restrictions on sales and broadcasting of jazz music.- That changed in the 1960s. From then on, it became more difficult for the then already established East German label Amiga, because licenses had to be paid in a foreign currency, which was scarce in East Germany. This was also the case for the vinyl needed to press the albums. How was the situation in West Germany? In West Germany, jazz was produced by internationally operating labels such as Columbia, Brunswick, Bertelsmann or Philips. In 1964, an independent German label dedicated to modern jazz was created, called MOD Records. Towards the end of the 1950s, SABA Records was established: That was the label of Hans Georg Brunner-Schwer, which was renamed MPS, for Music Production Schwarzwald, in 1968. Sound engineering developed very rapidly. How did the new and always improving technical possibilities influence jazz? They were absolutely essential! Just imagine: At the beginning, there was this big funnel in which musicians had to play. Then the microphone appeared by the mid-1920s. That offered completely new possibilities, for example for vocalists. Crooners such as Frank Sinatra or Bing Crosby found new ways to modulate their voice with the microphone. An exceptional example is also singer Billie Holiday, who essentially developed her whole art through her work with the microphone. Singer Billie Holiday in 1947 - Record producers also became very creative with their sound engineers""?Yes, exactly. Tape started being used in the 1940s. That made it possible to produce sound collages. After that, multi-track recordings appeared. Works like Miles Davis's ""In a Silent Way"" (1969) and ""Bitches Brew"" (1970) used studio technology in an extremely creative way. The producer of these albums, Teo Macero, was nicknamed ""Paganini of tape cutting.""- Suddenly, technology became a creative tool. This continued right up to digitization. Editing became an important component of jazz production and creative jazz. Just like the new recording technologies influenced the music industry 100 years ago, how are today's downloads and streaming services impacting the business and musicians? Jazz expert Bert Noglik Each storage and distribution media has had a great influence on how people receive music. Concerts used to be a way of promoting record sales. Now it's the other way around: Through music downloads and streaming, the goal of musicians is to make money through their concerts. It is becoming increasingly difficult to make money for all parties involved.- Bert Noglik is a freelance author specialized in jazz who has directed the festivals Jazztage in Leipzig and Jazzfest in Berlin.-", -1583,2017/2/28,http://www.dw.com/en/samsung-heir-indicted-on-bribery-and-embezzlement-charges/a-37742473?maca=en-rss-en-all-1573-rdf,Samsung heir indicted on bribery and embezzlement charges,Lee Jae-yong stands accused of paying close to $40 million in bribes to a presidential confidante. Prosecutors also accuse the head of South Korea's largest company of hiding assets overseas and committing perjury.,"Special prosecutors announced on Tuesday that they would charge Lee Jae-yong and four other Samsung executives with bribery, embezzlement and other offenses linked to a corruption scandal that has shaken South Korea, leading to an impeachment process against President Park Geun-hye. Lee is accused of ""donating"" 43 million won ($37.3 million; 35.2 million euros) to nonprofit foundations run by Choi Soon-sil, a close confidante of the president, -in return for favors from the Park administration, including the approval of a controversial merger between two Samsung sub-divisions in 2015. Prosecutors also believe that Lee hid assets overseas, committed perjury and concealed proceeds from criminal activities. If convicted, he-could face up to 20 years in prison. Organizations run by Choi Soon-sil allegedly received close to $37.3 million from the Samsung heir The 48-year-old Samsung heir has denied any wrongdoing. On Monday, South Korea's acting president, Hwang Kyo-ahn,-denied an extension-for the special investigation-into the Park corruption scandal, forcing the prosecutor's office to decide whether to indict Lee and other Samsung executives by Tuesday. Investigators have not yet been able to interview President Park. Samsung stands to take a severe hit from Lee Jae-yong's arrest and indictment. Though Lee is technically only the vice-chairman of the company, he has been considered its de-facto head since his father suffered a heart attack in 2014. Powerful-family-controlled conglomerates In a brief email sent out shortly after-the prosecutors' announcement on Tuesday, Samsung said-that three of the five men who had been indicted had resigned. Lee Jae-yong was not named, implying that he will stay on as de-facto chairman during the upcoming trial. The company also promised an internal restructuring. It said that it would dismantle its central coordinating body, allowing each company unit to run more independently, lessening the focal lobbying power of the cooperation.- Anti-corruption protests had erupted in South Korea following the revelation that a confidant of President Park had allegedly received millions in bribes Anti-corruption watchdogs were-skeptical of Samsung's intentions. ""It is yet to be seen whether this is another cosmetic measure aimed to divert public criticism,"" Chung Sun-Sup, the head of chaebul.com, an online-forum dedicated to the operations of-Korean conglomerates, told reporters. In an interview with news agency AFP, Chung had previously accused Samsung of-dissolving ""group-controlling organizations when it got caught in breach of laws, only to revive them afterwards under different names."" When the Park scandal first hit Samsung, the company had-promised that it would disband its secretive Corporate Strategy Office, a panel of close Lee family aides who worked to help ensure the father to son leadership transition. The office allegedly orchestrated the bribe for-Choi Soon-sil to secure the 2015 merger, a crucial step in strengthening the younger Lee's grip on Samsung. The tech-giant is the largest of several powerful family-controlled conglomerates known as ""chaebol"" that dominate the South Korean economy.-Corruption charges have dogged many of these businesses, including Samsung under the elder Lee's reign. In 2008, his father,Lee Kun-hee, was convicted for tax evasion and a breach of trust. A former president later pardoned the 75-year-old.- On Monday, a Danish court extended the detention of Chung Yoo-ra, the daughter of Choi Soon-sil, the woman at the centre of a corruption scandal that led to the impeachment of Park Geun-hye, South Korea's president. Choi is accused of influencing government policy and getting rich through extortion and manipulation. Choi is in custody on charges of meddling in state affairs without holding a government position and using her connections with the president to extort vast sums of money from many of South Korea's best-known companies. Beyond the legal charges, she is being blamed for both effectively bringing down the government of President Park and leaving her reputation and political legacy in tatters. Last month, Park did not turn up to testify in a court case which will decide her future. The president was impeached over a multifaceted corruption scandal in December. After her impeachment, Park Geun-hye is regarded both as a perpetrator and a victim. Her future is uncertain as the country struggles to recover from a political scandal. Tens of thousands of protesters have taken to the streets since the start of the corruption scandal, calling on President Park to step down. South Korea's Constitutional Court is deciding whether to formally unseat Park or restore her power. If she is forced out, a new election would be held within two months to choose her successor. South Korea's corruption scandal has spilled over into the highest levels of business. The vice-chairman of Samsung, Lee Jae-yong, was questioned last month by investigators who are seeking evidence that he paid bribes to Choi Soon-sil. Given the economic and political importance of Samsung in South Korea, if Lee is indicted, it could be on the same level of President Park's impeachment. In December, a group of lawmakers from South Korea's ruling Saenuri Party abandoned Park to form a new party, tentatively named the New Conservative Party for Reform (NCPR). The party infighting is another blow to Park. Former United Nations Secretary General Ban Ki-moon has declared that he won't run for South Korea's presidency. He had been expected to seek the position after a corruption scandal saw President Park impeached. The newly-formed NCPR was hoping that Ban would join their ranks. Author: Shamil Shams mb/kms (AP, AFP, Reuters)", -1584,2017/2/28,http://www.dw.com/en/ghanaian-women-reject-male-midwives/a-37733547?maca=en-rss-en-all-1573-rdf,Ghanaian women reject male midwives,Some women in Ghana do not like to consult male midwives when they are pregnant. The Ghanaian government has scrapped a pilot project which allowed men to be trained as midwives.,"Adam Amina, a 33-year-old pregnant mother, lied in one of the labor wards at Tamale's only referral hospital in northern Ghana.-She looked uncomfortable as she waited for her turn to be examined by one of the male midwives. May 5 is International Day of the Midwife. With rising costs for the professionals who help women before, during and after childbirth, the job is becoming more and more difficult. But midwives are desperately needed. (04.05.2016) Every day, some 830 women around the world die as a result of pregnancy and childbirth complications. One of the reasons is a lack of light to perform live-saving surgery. A solar suitcase is making a genuine difference. (21.04.2016) There are only a few public hospitals within the informal settlement of Embakasi in Nairobi County so many pregnant women face private health care bills. A mobile phone and a pre-payments plan can help. (02.01.2017) Her fears of being examined by a man are shared by other expectant mothers, who prefer female midwives. They were holding a silent protest in the hopes of changing things. They said that male professionals saw them naked, which they felt to be inappropriate. ""I would have loved that a woman to examine me,"" Amina said. ""It is not right in our religion for a man to see the nakedness of another man's wife."" The ministry of Health has decided to scrap the program that allowed men to train as midwives. The system was introduced in 2013 as a pilot project. It remains unclear what will happen to the already practicing male midwives. Adam Amina, a 33-year-old pregnant mother, lied in one of the labor wards at Tamale's only referral hospital in northern Ghana.-She looked uncomfortable as she waited for her turn to be examined by one of the male midwives. Her fears of being examined by a man are shared by other expectant mothers, who prefer female midwives. They were holding a silent protest in the hopes of changing things. They said that male professionals saw them naked, which they felt to be inappropriate. ""I would have loved that a woman to examine me,"" Amina said. ""It is not right in our religion for a man to see the nakedness of another man's wife."" The ministry of Health has decided to scrap the program that allowed men to train as midwives. The system was introduced in 2013 as a pilot project. It remains unclear what will happen to the already practicing male midwives. ""It is not comfortable to go and lie down for another male to insert his fingers into your vagina to check you,"" Ghanaian Irene Convenience told DW. But Mohammed Lukeman, a male midwife, said that while the women's fears must be taken seriously, they should not worry, since he and his colleagues carry out their duties in a professional way. ""A woman's privacy should be respected. It is unethical for anyone to reveal her health details"" Lukeman said, adding that privacy is respected: ""It is unethical for a nurse or medical practitioner to reveal a patient's secrets."" Muslim opposition Nevertheless, in the north of the country, the Muslim community adamantly opposes male midwives. Many women are now choosing traditional birth attendants over health facilities. Esther Dodoo, the Deputy Director of Nursing Services, Obstetric and Gynecology at the Tamale Teaching Hospital doesn't share the women's concerns. ""It will be wise if we continue training them, because they can at least leave their families in town and work in the hinterland, where they can save mothers,"" she told DW. Not all the woman reject male midwives and doctors. Abu Maria told DW that she loved the services of a male midwife when she was about to give birth. ""I didn't feel bad when a male midwife attended to me, since he was only doing his job,"" she said. ""It is not comfortable to go and lie down for another male to insert his fingers into your vagina to check you,"" Ghanaian Irene Convenience told DW. But Mohammed Lukeman, a male midwife, said that while the women's fears must be taken seriously, they should not worry, since he and his colleagues carry out their duties in a professional way. ""A woman's privacy should be respected. It is unethical for anyone to reveal her health details"" Lukeman said, adding that privacy is respected: ""It is unethical for a nurse or medical practitioner to reveal a patient's secrets."" Nevertheless, in the north of the country, the Muslim community adamantly opposes male midwives. Many women are now choosing traditional birth attendants over health facilities. Esther Dodoo, the Deputy Director of Nursing Services, Obstetric and Gynecology at the Tamale Teaching Hospital doesn't share the women's concerns. ""It will be wise if we continue training them, because they can at least leave their families in town and work in the hinterland, where they can save mothers,"" she told DW. Not all the woman reject male midwives and doctors. Abu Maria told DW that she loved the services of a male midwife when she was about to give birth. ""I didn't feel bad when a male midwife attended to me, since he was only doing his job,"" she said.", -1585,2017/2/28,http://www.dw.com/en/how-did-the-oscars-mix-up-happen/a-37728394?maca=en-rss-en-all-1573-rdf,How did the Oscars mix-up happen?,"It was an unprecedented fiasco: ""La La Land"" was mistakenly awarded the best picture Oscar before ""Moonlight"" was revealed as the real winner. And Trump sees himself at the center of the blunder.","After actors Warren Beatty and Faye Dunaway-mistakenly declared Damien Chazelle's musical ""La La Land"" winner of the best picture Oscar on Sunday, three of the film's producers had already started giving their acceptance speeches on stage. In the background, other members of the team were finding out about the blunder. ""La La Land"" producer Jordan Horowitz was the one who stopped the celebrations: ""I am sorry, there's been a mistake.-'Moonlight,' you guys won best picture,"" he declared, leaving everyone confused for a few seconds. ""This is not a joke,"" he then had to repeat it twice, holding up the right card to the cameras. Warren Beatty then stepped up to the microphone to explain what happened: ""I opened the envelope and it said 'Emma Stone, La La Land.' That's why I took such a long look at Faye and at you. I wasn't trying to be funny!"" ""Even in my dreams this cannot be true,"" said director Barry Jenkins when he unexpectedly picked up the statuette for his low-budget coming-of-age drama. ""Moonlight"" director Barry Jenkins embraces ""La La Land"" producer Jordan Horowitz as they swapped their Oscar Envelope handed out twice Shortly before, Emma Stone had received the award for best actress in a leading role. After winning she had kept the card with her name on it the whole time in her hands, she later said-backstage.- However, the global accounting firm responsible for carrying the winning ballots to the ceremony, PwC, formerly-PricewaterhouseCoopers, always holds two copies of each winning envelope, allowing them to be handed out either from the left or right side of the stage, as presenters walk in from both sides throughout the ceremony. This is how an envelope for the category main actress could have been handed out twice. Duplicates of each envelope are kept in these briefcases Monday afternoon, the ""Wall Street Journal"" reported that the-accountant who had mistakenly handed out the wrong-envelope, Brian Cullinan,-had also posted a behind-the-scenes tweet with Emma Stone,-holding her statuette for best actress, which-could have distracted him from doing his job correctly. The tweet has been deleted since. ""Once the error occurred, protocols for correcting it were not-followed through quickly enough by Mr. Cullinan or his partner,"" representatives at PwC said in a-statement. It took over two minutes before the embarrassing mix-up was corrected. The accounting firm, which has been handling the Academy Awards' process during the ceremony for the past 83 years,-said they ""sincerely apologize"" and ""deeply regret"" the error.- Trump takes credit for blunder In an interview with the alt-right website ""Breitbart News"" after the Oscars,-President Donald Trump said the chaos surrounding the last award of the ceremony was due to Hollywood's obsession with him. ""I think they were focused so hard on politics that they didn't get the act together at the end,"" he told the site previously managed by Steve Bannon.-""It was a little sad. It took away from the glamour of the Oscars. I've-been to the Oscars. There was something very special missing, and then to end that way was sad.""- Trump was the target of jokes and criticism-throughout the night as Oscar-winners railed against his immigration policies.-- eg/jlw (dpa, AP, AFP)", -1586,2017/2/28,http://www.dw.com/en/the-dead-cat-drone-with-an-eco-message/a-37634822?maca=en-rss-en-all-1573-rdf,The dead cat drone with an eco message,"When his cat Orville died, Dutch artist Bart Jensen wanted something to remember him by. Soon, the deceased family pet had taken to the skies carrying a message about the absurdity of technological progress.","Bart Jensen has always had a thing for collecting dead animals. So when his beloved cat Orville died after being hit by a car, the Dutch artist decided to immortalize the family pet by turning him into a-drone. ""Orville was named after one of the famous flying brothers, Orville Wright - and he loved birds too, and so after he passed on, we decided to make him an aviator again,"" Jensen says. ""I've been picking up dead animals since I was a kid. All things 'biology' have always interested me. In 2007, I made this book called The Observer's Book of Road kill - a 60-kilo book full of taxidermied animals that smelled really bad!-And then someone ran over my cat. I had to do something."" Jensen enlisted the help of his friend, mechanical engineer-Arjen Beltman. Together-they designed the OrvilleCopter. And that was just the beginning. A flying menagerie Bart and Arjen began to seek-out other animals they could use for their drone experiments. Which is how a shark, a badger and a rat have all taken to the skies posthumously. ""I built RatCopter for a classmate of my son,"" says Beltmann. ""Unfortunately, his pet rat, Ratjetoe, had cancer. So when he saw Orville flying, he wanted his rat to have a second life as well. So, we made a dream come true."" Jansen then received a phone call from a Dutch ostrich farm. ""There are about nine ostrich farms in Holland, but our climate is not very ostrich-friendly,"" he explains. ""It's wet, cold and clammy, and ostriches really like dry, sandy and African [climates]. I ended up receiving an ostrich, which had just died."" And so, Jansen and Beltmann turned their attention to making one of the world's most renowned flightless birds into a flying machine - the OstrichCopter. The OstrichCopter turns a flightless bird into a flying machine ""It's a young male, about 2.5 metres in length, with brown and white features and four propellers now stuck out of it,"" Jensen says. Technological absurdity Bart says -his inventions are designed to highlight the absurdity of-our race for technical progress and insatiable drive for consumption.- ""Humanity is addicted to new things, to technological progress, but people try to solve problems by inventing a machine that solves the problem for them. But half of these machines make more and more problems. ""The car, for instance, wasn't such a bad idea but now we have to invent things to solve the problems that cars make, so we are stuck in this technological race,"" Jansen says. ""I put a lot of effort in making something work that no one has any use for. It is really a lot of fun."" The sky's the limit! Jensen and Beltman now have even more ambitious plans to expand their collection of animal drones and incorporate larger flying creatures. ""I'd like to do a blue whale""?but it unfortunately it can't be done --it's too greasy and too large,""-Jensen says. ""We've been wanting to build a helicopter that could transport us around, so we're looking at creating a flying cow. It's in the tannery right now.""?With the bovine aircraft set to house a human pilot, Jensen says anything is possible for this experimental artistic collaboration. ""I don't know exactly what to call it - if it's not art, I don't know what else it is, because [these drones] don't have any real use. But they do make us think and that's usually what art does, so let's call it art.""", -1587,2017/2/28,http://www.dw.com/en/malaysia-to-charge-two-women-in-murder-of-kim-jong-nam/a-37742216?maca=en-rss-en-all-1573-rdf,Malaysia to charge two women in murder of Kim Jong Nam,The Indonesian and Vietnamese nationals will receive the death penalty if convicted by Malaysian court. They are accused of killing the North Korean ruler's half-brother with a nerve agent.,"Malaysia's attorney general, Mohamed Apandi Ali, announced on Tuesday that the accused women will appear in Sepang Magistrate Court on Wednesday in relation to the suspected assassination of Kim Jong Un's estranged elder sibling. ""They will be charged in court under Section 302 (murder) of the penal code,"" Apandi said. If convicted, the two women will face death by hanging. High-profile defector Hwang Jang-Yop survived numerous assassination attempts before dying of natural causes at the age of 87. Hwang, who had been one of the leading ideologues of the North's isolationist regime, escaped to South Korea in 1997. Just months before his death in 2010, Seoul authorities arrested two North Korean military officers over one of many plots to kill him. The execution of Kim Jong-Un's uncle Jang Song Thaek, once the second most powerful man in the isolated country, sent shockwaves beyond North Korea's borders. Many media outlets wrongly reported that he was fed to hungry dogs, as punishment for his ""betrayal"" of the ruling family. In reality, he was shot, according to Pyongyang officials and South Korean intelligence. In 2015, Seoul's security services reported that North Korean Defense Minister Hyon Yong-chol was executed by an anti-aircraft gun. However, National Intelligence Service (NIS) soon appeared to backtrack from the report, saying that Hyon might still be alive. Reports of other brutal executions, involving artillery shells and flamethrowers, have also been difficult to confirm. North Korean defector and well-known dissident Park Sang-hak was also targeted by a Pyongyang-linked hitman. In 2011, South Korean authorities arrested a former North Korean commando over the plot to assassinate Park Sang-hak with a poison-tipped needle. The estranged half-brother of North Korea's leader Kim Jong-Un was reportedly poisoned by two women at a Kuala Lumpur airport. While details remain sketchy, it is widely believed that the killers were sent by the North Korean regime. The 46-year-old Kim Jong-Nam had been living abroad after falling from grace in 2001 for visiting Disneyland in Tokyo. The two suspects, 29-year-old Doan Thi Huong of Vietnam and 25-year-old Siti Aisyah of Indonesia, are accused of poisoning Kim Jong Nam with VX, a lethal nerve agent, in the Kuala Lumpur airport on February 13. Kim died around 20 minutes later while en route to the hospital after suffering a series of seizures. Both women have claimed they were misled into thinking they were taking part in a prank TV show. Aisyah told Indonesian diplomats that she received 400 ringgit ($90; 85 euros) for her actions involving a liquid she was told was similar to baby oil. The suspects remain in the custody of Malaysian officials. Two other suspects were arrested after Kim's death - a Malaysian man out on bail and a North Korean man who continues to be detained. Apandi did not confirm whether the North Korean would be charged. Officials investigate the Kuala Lumpur airport for traces of the toxic nerve agent used to kill Kim Jong Nam. Growing national tensions Malaysia authorities are searching for a further seven North Korean nationals they suspect of involvement in Kim's murder, four of whom fled Malaysia the day of the murder and are reputed to be in North Korea. Another is a North Korean diplomat stationed in Kuala Lumpur. Though Malaysia has not officially accused North Korea of masterminding the attack, the incident has increased tensions between the two countries. North Korea continues to identify the murdered man only as a North Korean national. A-diplomatic team from Pyongyang-arrived on Tuesday in Kuala Lumpur in order to further the-""development of friendly relationships"" between the two nations, North Korean former Deputy Ambassador to the UN Ri Tong II told reporters outside the embassy in the Malaysian capital.- He also said the delegation wanted to ""to discuss the body of the deceased DPRK-citizen who died in Malaysia""-as well as question Malaysia's ongoing detention of the North Korean national. Kim's body, which remains in Malaysia, has yet to be claimed by a family member. South Korea has also accused their northern neighbor of planning and undertaking Kim's assassination as part of a state-sponsored killing. cmb/kms (AFP, dpa, AP, Reuters)", -1588,2017/2/28,http://www.dw.com/en/china-cracks-down-on-ant-moving/a-37742232?maca=en-rss-en-all-1573-rdf,China cracks down on 'ant moving',"Chinese regulators have said they've intensified their fight against irregularities in the foreign exchange market. They broke up a large underground banking operation, which specialized in illegal transfers.","China said it had cracked down on an underground banking operation that conducted $3.7 billion (3.5 billion euros) in illegal foreign currency transfers. Authorities hailed the bust as a sign of their resolve to stem massive capital flight. The State Administration of Foreign Exchange (SAFE) said in a statement it had investigated six companies suspected of illegal forex transfers in the southern city of Shenzhen. An unspecified number of other firms were found to have used false documentation, fabricated trades and other methods to funnel money out of the country, regulators said. Authorities in particular cracked down on 'ant moving' strategies whereby large sums of money were transferred out of the country in small portions to avoid detection. 'Irrational' spending targeted ""Underground banking has become a major channel used for money laundering and illegal cross-border transfer of funds,"" The Ministry of Public Security noted. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2TSJX ""It creates a huge black hole of funds, severely disrupting normal financial supervision order and endangering economic safety of the nation,"" the ministry added. A huge wave of overseas investment by Chinese companies last year prompted the government to criticize irrational spending. China's vast foreign exchange reserves fell below $3 trillion in 2016 for the first time in six years as the authorities spend a lot to prop up the value of the yuan and cut down on outflows. hg/jd (Reuters, AFP) -", -1589,2017/2/28,http://www.dw.com/en/remember-dolly-the-sheep-wasn-t-the-only-animal-clone/a-19377298?maca=en-rss-en-all-1573-rdf,Remember Dolly? The sheep wasn't the only animal clone,"20 years ago, the world was stunned by the creation of Dolly the sheep. Scientists have since tried their hand at copying other animals, from mice and racing mules to dogs and a fighting bull.","Cloning is and has always been a highly controversial procedure that raises a slew of ethical issues, including animal welfare. Last year, the European Parliament voted to ban the cloning of all farm animals and the sale of cloned livestock, their offspring, and products derived from them. The suggestions go far beyond a directive proposed by the European Commission in 2013 that targeted a ban on cloning only five species. Since Dolly's birth 20 years ago in Scotland, technologies to influence DNA have greatly developed, says Joachim Boldt of the University of Freiburg. Genetic technology today ""offers new options that far surpass the possibilities of simple cloning,"" he says, adding that genetic sequencing is faster and cheaper these days. Scientists speculate about the chance to not only cure diseases, but to ""improve the human immune system to such a degree that it can no longer be overcome by viruses or bacteria."" But the new technologies increasingly raise ethical questions, too, Boldt says. ""To shape our entire genetic identity - is that what we want?""", -1590,2017/2/28,http://www.dw.com/en/japan-s-takata-pleads-guilty/a-37741723?maca=en-rss-en-all-1573-rdf,Japan's Takata pleads guilty,Tokyo-based Takata has formally admitted it provided false information to clients about its defective airbags. Faulty inflators have been linked to a number of deaths and lots of injuries globally.,"Japanese car parts manufacturer Takata pleaded guilty to fraud and was sentenced to pay $1 billion (940,000 euros) in penalties over its defective airbag inflators linked to the deaths of at least 15 people, the US Justice Department announced. The admission of guilt came after lawyers representing victims alleged that carmakers Toyota, Ford, Honda and Nissan knowingly purchased airbags from Takata despite being aware of their defects. Takata carried out a scheme to defraud customers and manufacturers by providing false and manipulated airbag inflator test data to make their performance appear better and safe. Huge recalls ""Even after the inflators began to experience repeated problems including ruptures causing injuries and deaths, Takata executives continued to withhold information from their customers,"" a statement by the Justice Department said. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Rjdg Takata's defective airbag inflators have forced carmakers to-recall tens of millions of vehicles worldwide. The faulty inflators can potentially rupture explosively when deployed in a collision, spraying metal fragments at drivers as well as passengers. At least 15 deaths and more than 150 injuries have been linked to the airbag issue, Takata has admitted. hg/jd (dpa, AFP) -", -1591,2017/2/28,http://www.aljazeera.com/news/2017/02/helmand-taliban-kill-policemen-confiscate-weapons-170228083738161.html,Helmand: Taliban kill policemen and confiscate weapons,Armed group claims attack on checkpoint in Lashkar Gah but official says it could be an 'insider attack'.,"Taliban fighters in southern Afghanistan attacked a checkpoint with firearms and hand grenades, killing 11 policemen and confiscating weapons and ammunition. But a provincial official said Tuesday's attack in Helmand province's capital Lashkar Gah could be an ""insider attack"" as one of the guards was still missing. ""An investigation is ongoing to find out if someone from inside has defected to the Taliban and paved the way for this crime,"" he said. Taliban spokesman Zabihullah Mujahid-told Al Jazeera the group was responsible for the attack, saying it killed 11 policemen and ""claimed the area and weapons"". Din Mohammad, a doctor at the Lashkar Gah Hospital, confirmed the death toll.- In a separate incident, another 12 policemen were killed in Marjah district of Helmand after an hour-long gun battle, Mujahid said. READ MORE: Chaos follows Pakistan-Afghanistan border closure The attacks underlined the threat facing Afghan security forces in the opium-producing province, where they struggle to match well-equipped Taliban fighters who now control most of Helmand, including areas in Lashkar Gah. Earlier this month, an Afghan policeman turned his rifle on his colleagues in northern Faryab province, killing eight policemen as they slept in an outpost in the district of Almar. He then collected all their firearms and fled the scene. British and US forces suffered their heaviest casualties of the war in the province in years of fighting following the removal of the Taliban in 2001. Afghan security forces now control less than 60 percent of the country, according to US estimates, with the Taliban holding about 10 percent and the remainder contested between various armed groups. Source:-Al Jazeera and news agencies", -1592,2017/2/28,http://www.aljazeera.com/indepth/opinion/2017/02/citizenship-commodity-free-movement-rich-170228072240281.html,,,"Citizenship is one thing that is never supposed to depend on how much money you have. The sheer luck of birth and ""blood"" is supposed to determine what rights and privileges you have, where you can travel. But wherever blood flows, money follows. In Britain, citizenship can increasingly be bought, or at least priced. This is a matter of government policy. Some of this can be traced back to a promise that David Cameron made back in 2010 to reduce net migration to no more than 100,000 a year. It was an arbitrary, pointless and, more importantly, completely unworkable figure. But the government had to somehow make it happen, despite knowing that it could do nothing about European Union migration. Ultimately, Cameron's inability to deliver a cap on migration from the EU consolidated the right-wing consensus for Brexit. But in the meantime, he was able to crack down on non-EU migration in a number of ways. First, in an effort to curb the movement of poor migrants from outside the European Economic Area, introduced a minimum income threshold for non-European spouses of British citizens of $23,100. Last week, this law was upheld by the Supreme Court, despite its cruelties and arbitrariness. In addition, as of-April 6 last year, non-EU migrants who want to settle permanently in the UK must have an income of at least $43,500. Contrast the migrants affected by this, with those for whom the government rolls out the red carpet. In Britain's multitiered visa system, there are now many routes to citizenship (PDF). For those prepared to invest $1.24m in companies registered in Britain, there is Tier 1: a fast-tracked visa system and a lubricated route to full citizenship. Once in Britain, they will also have access to ""non-domicile"" tax status, meaning that while they live in the UK, for taxation purposes they will be considered to live elsewhere - for example in the Cayman Islands. OPINION: Why a hard Brexit will cost the UK more than Europe Increasingly, moreover, this exceptional tax regime for migrant capitalists is one that Britain seems to be prizing as a post-Brexit comparative advantage. The EU committee investigating the Panama Papers and tax havens has described the UK as being ""on its way to a prime tax haven"". The strategy is to welcome people with money, let them keep as much of it as possible, and wait for them to invest, usually in government bonds. This is incredibly short-sighted. Keeping out skilled workers isn't good for employers. Yet, that is what the laws have achieved. The Migration Observatory, based at the University of Oxford, found that skilled migration from non-EU countries had plummeted by a third after the changes were implemented. Attracting more oligarchs and tax evaders to the capital does nothing for the economy in the long run. It leads to little productive investment, nor does it answer any particular shortage. Government bonds are never difficult to sell. All it does is drive up property prices around London, and contribute to the financial bubble. But the golden rule of modern migration politics is that the super-rich are footloose and fancy-free, while the poor have to be rooted to the spot, no matter how desolate. Anti-immigrant sentiment has always had a class content. It has been the poor, or those stereotyped for having the supposed attributes of the poor - criminality, vulgarity, disease, lack of cleanliness - who have been targeted. - This is part of a global pattern, wherein national and racial exclusions are intersecting with class distinctions. While immigration laws penalise the poor, the rich have always found a way round closed borders and quotas. Now, there is a growing class of ""economic citizens"", comprised rich investors buying passports. A range of tiny states offer ""citizenship-by-investment"" so that, for example, a Russian oligarch can have an EU passport from Cyprus for $2.1m. Citizenship is one of the last global frontiers of commodification. The surprisingly sanguine attitude to this can be contrasted with febrile reporting about Moldovans. The Sun has described residents of Moldova as ""flooding"" into the UK. German and French press are filled with scare stories alleging that Moldovans are illegitimately obtaining Romanian passports in order to become EU citizens. OPINION: Britain rejecting child refugees is no surprise The process by which Moldovans acquire a Romanian passport is that they dig up old Soviet-era documents proving that a grandfather or great uncle was Romanian. They then submit to a lengthy and labyrinthine application process and after two years, they might get a passport. Where it gets interesting, is where principles of bloodlines and money suddenly intersect. Moldovan migrants have been blamed for adulterating the integrity of bloodlines by making spurious claims to Romanian blood, thus undermining the whole EU passport system. But then, they didn't bring investment cash. For those who can pay to override the bloodline principle, all objections suddenly become irrelevant. Even the idea floated by Guy Verhofstadt, the European Parliament's top Brexit negotiator that post-Brexit Britons could buy ""associate citizenship"" of the EU was more scoffed at by opponents than it was a source of anger. The logic of commodification of citizenship is only in its very early stages, yet already it can override the principle of birthright. Does this tell us something about the shape of 21st-century capitalism? As much as capitalism has internationalised, it has always needed the national state. But patterns of investment and work in the future will demand more migration. Citizens will become less rooted to the town, county and nation of their birth. Immigrants, far from being an alien minority who can be ""kept out"", are all of us. We are all immigrants in the hereafter. OPINION: Trump is in the way of Theresa May's global gamble Anti-immigrant sentiment has always had a class content. It has been the poor, or those stereotyped for having the supposed attributes of the poor - criminality, vulgarity, disease, lack of cleanliness - who have been targeted. When Nigel Farage attacked the poorer ""quality"" of Eastern European migrants, this is what he had in mind. And since we are the migrants of the future, it should alarm us that the means by which new, more mobile forms of citizenship are being allocated, are markets and prices. Because that means the world is becoming a playground for the rich from which we, the majority, are banned. Richard Seymour is an author and broadcaster based in London. He has written for The Guardian, the London Review of Books and many other publications. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1593,2017/2/28,http://www.aljazeera.com/indepth/features/2017/02/palestinian-prisoners-urged-boycott-israeli-courts-170228052245774.html,Israel's military court system 'lacks impartiality' Nigel Wilson,A collective boycott of Israeli military court system is welcomed by prisoner rights groups. By,"Ramallah, Occupied West Bank - Palestinian officials have called for a boycott of Israel's military court system after Nael Barghouti, a Palestinian freed in a prisoner exchange, was rearrested and sentenced to a life term plus 18 years. Palestinian Prisoners' Club director, Qadura Fares, told Al Jazeera that the military court system was discriminatory against Palestinians, citing two recent high-profile cases to pass through the courts. ""There is a shining example from the last few days. For the Israeli killer, Elor Azaria, the military court sentenced him to one and a half years. Twenty-four hours later, they put Nael Barghouti in jail and sentenced him to life in prison and another 18 years. It happened within 24 hours,"" he said. Israeli soldier Azaria was sentenced to 18 months in prison for manslaughter on February 21, after he killed a wounded Palestinian assailant who no longer posed a threat in the occupied West Bank city of Hebron last year. The United Nations human rights office said the sentence was ""excessively lenient"" and ""unacceptable"" for an ""apparent extrajudicial killing"", while local rights group Adalah said the sentence was ""an expression of the disregard for the value of Palestinian life"". READ MORE: Elor Azaria verdict - No justice for Palestinians Barghouti was initially released in the 2011 Gilad Shalit prisoner exchange between Israel and Hamas, but was rearrested in 2014 and served 30 months in prison for being a member of Hamas. Boycotting military courts would show that we are refusing such a system to operate within the West Bank and refusing 50 years of brutal occupation that is just getting worse and worse. Layth Abu Zayed, spokesperson, Addameer He was due to be released in November 2016, but on February 22, a military court reinstated an earlier life sentence for his role in planning the kidnapping and killing of an Israeli soldier. Barghouti was first sentenced to life in 1978 and has now served a total of 36 years in prison. ""We need to stop being a part in these dirty games, to send a lawyer and to be part of this game. It creates misunderstandings with journalists and the international community that Israel is ruling by laws. It's not the truth,"" Fares told Al Jazeera. ""We have to stop being part of this lie and misunderstanding. We have to be clear that there is no justice."" Palestinian officials first called for the boycott at a press conference in Ramallah on Sunday, where Fares spoke along with Barghouti's wife, Iman Nafie, and the head of the Palestinian Authority's Commission for Detainees, Issa Qaraqe. ""One must take the difficult decision of rebellion and boycott of the courts,"" Qaraqe told the press conference, while Fares called on families of detainees not to pay fines imposed by courts and urged prisoners' rights groups not to take part in military trials. READ MORE: West Bank prisoners face Israeli re-arrest There has not been a mass, organised boycott of the Israeli military court system, although individual prisoners have refused to attend hearings and rejected the authority of the courts. The idea of a collective boycott was welcomed by Addameer, a Palestinian prisoner support and human rights association, which said it would support such a move if a consensus between prisoners and rights groups was reached. ""The high conviction rate within the military court reached 99.7 percent, which shows the lack of fair trial guarantees within these military courts. They lack impartiality and have been unjust to Palestinian prisoners. Boycotting military courts would show that we are refusing such a system to operate within the West Bank and refusing 50 years of brutal occupation that is just getting worse and worse,"" said Layth Abu Zayed, a spokesperson at Addameer. An article in a 2009 military order permitted Israel to re-arrest prisoners released in previous exchanges and reinstate previous sentences based on a secret file that is not accessible to the ex-prisoner or their lawyer. According to a January report by prisoners' rights groups, approximately 56 prisoners released in the Shalit deal are currently held in Israeli jails. Fifty of these prisoners had their previous sentences re-imposed by a military committee. The report found that at the turn of the year, around 7,000 Palestinians were being held in Israeli jails. Source:-Al Jazeera News", -1594,2017/2/28,http://www.aljazeera.com/news/2017/02/thai-prisons-violate-human-rights-report-170228063213721.html,"Thai prisons violate human rights, report says","Prison conditions contravene UN treaties barring torture and stipulating minimum prisoner rights, group says.","Thailand's prisons fail to meet international standards with inmates routinely shackled, beaten, and stuffed into overcrowded cells, an international human rights group said. Thailand also has the highest incarceration rate in Southeast Asia, jailing 425 out of every 100,000 people, according to the report by the International Federation for Human Rights, which was released on Tuesday. More than 260,000 inmates are incarcerated in 148 prisons with an originally estimated capacity of less than 120,000, the report said, with the massive overcrowding forcing inmates to live in harsh conditions. Most prisoners were convicted on drug-related charges, the legacy of a war on drugs launched by former prime minister Thaksin Shinawatra in 2003. Under Thai law, possession of heroin or methamphetamine is punishable by up to 10 years in prison. The overcrowded conditions are made worse by high turnover among guards, forcing prisons to rely on skeleton staffs, said the Paris-based human rights group. Prisoners told interviewers from the rights group that overworked guards would beat them with clubs, throw them in solitary confinement, or keep them chained and shackled for weeks, despite government initiatives in 2013 to end the practice. With too many prisoners, inmates can find themselves stuffed into packed cells with no beds and squat toilets with no enclosures for privacy. At night, they lie pressed against each other on mats on bare linoleum floors. The prisons have medical clinics, but at one Bangkok prison inmates say they are treated by ""two-minute doctors"" because they rush through the medical checks. Inmates work seven days a week, sewing, folding paper, and fixing shoes, earning as little as 23 US cents a day, according to the report. ""The claim made by the Thai government that the country's prison conditions conform with international standards is ludicrous,"" said Dimitris Christopoulos, president of the International Federation for Human Rights. Prison conditions violate various UN treaties barring torture and stipulating minimum prisoner rights that Thailand ratified decades ago, the group said. Government agencies involved in justice and narcotics issues say they are working to ease the problems. ""We're trying to fix it,"" said Kobkiat Kasiwiwat, director of the Corrections Department. ""They're in the process of fixing drug laws to have milder punishments and push people towards rehab more, instead of throwing them in prison."" Thailand amended its regulations on prisons this month, but the laws still allow shackling, solitary confinement for more than 15 days, and liability exemptions for prison officials in certain situations - all breaches of international standards, the report said. Source:-AP news agency", -1595,2017/2/28,http://www.aljazeera.com/news/2017/02/refugee-children-abuse-rampant-libya-unicef-170228081506910.html,Refugee children abuse rampant in Libya: UNICEF,"Thousands of refugee children are being abused, exploited and arbitrarily detained in Libya, UNICEF reports. In Captivity 'Still in the shadows'","Refugee children and women are routinely suffering sexual violence, exploitation, abuse and detention along the Central Mediterranean migration route, UNICEF warned in a new report. In the report, titled ""A Deadly Journey for Children"", which was released on Tuesday, the UN children's agency said a total of 25,846 children - most of them unaccompanied - crossed from North Africa to Italy using-the Mediterranean route in 2016.- For the report, UNICEF researchers interviewed a total of 122 refugees - 82 women and 40 children - who tried to complete the perilous journey. Three quarters of the refugee children interviewed said they had experienced violence, harassment or aggression at the hands of adults at some point over the course of their journey.- Approximately one third indicated they had been abused in Libya. A large majority of these children did not answer when asked who had abused them. A few children said they had been abused by people who appeared to be in uniform or associated with military and other armed forces, and several others said that strangers had victimised them. Also, nearly half of the 122 women and children interviewed reported sexual abuse during migration - often multiple times and in multiple locations. READ MORE: The cemetery of unknown refugees from the Mediterranean Women and children were often arrested at the Libyan border where they experienced abuse, extortion and gender-based violence. Sexual violence was widespread and systemic at crossings and checkpoints. Men were often threatened or killed if they-intervened to prevent sexual violence, and women were often expected to provide sexual services or cash in exchange for crossing the Libyan border. UNICEF also identified an estimated 34 migrant detention centres in Libya during their research. The Libyan Government Department for Combating Illegal Migration runs 24 detention centres which currently hold between 4,000 and 7,000 detainees. Armed groups also hold migrants in an unknown number of unofficial detention centres. ""The route is mostly controlled by smugglers, traffickers and other people seeking to prey upon desperate children and women who are simply seeking refuge or a better life."" Afshan Khan, UNICEF Children did not receive any preferential treatment and were often placed in cells together with adult detainees, which increased the risk of abuse, according to the UNICEF report. Some observers have also reported abandoned refugee children in detention centres and hospitals. ""The Central Mediterranean from North Africa to Europe is among the world's deadliest and most dangerous migrant routes for children and women,"" said Afshan Khan, UNICEF Regional Director and Special Coordinator for the Refugee and Response Crises in Europe. ""The route is mostly controlled by smugglers, traffickers and other people seeking to prey upon desperate children and women who are simply seeking refuge or a better life. We need safe and legal pathways and safeguards to protect migrating children that keep them safe and keep predators at bay."" - Recent data in a survey of women and child refugees in Libya during late 2016 reveal the appalling level of abuse along the migration route. At the time of the survey, 256,000 migrants were recorded in Libya, including 30,803 women and 23,102 children - a third of whom were unaccompanied. The real figures, however, are believed to be at least three times higher. Most children and women indicated that they had paid smugglers at the beginning of their journey, leaving many in debt under ""pay as you go"" arrangements and vulnerable to abuse, abduction and trafficking. Women and children also reported harsh and overcrowded conditions, including lack of nutritious food and adequate shelter, in Libyan detention centres run by both the government and armed militias. OPINION: EU should invest in development, not security in Africa ""What came out of this report is quite stark and shocking,"" Sarah Crowe, UNICEF spokesperson for refugee and migrant crisis, told Al Jazeera. -""Testimonies coming from these children are truly surprising and terrifying. ""We have access to some of the detention centers in Libya, but great majority of migrant children in that country are still in the shadows."" There is a necessity to highlight what is already happening to these children and also point to acceptable solutions, Crowe said. ""You can't look at Libya as solution on its own,"" she said. -""Libya, in its current state, can not be the solution to the crisis we are facing. We can not send children back to detention, to this destiny. It is unthinkable. ""We need to work on finding a solution to the root causes of the problem and we need to do more to support children at every step of the way. Source:-Al Jazeera News", -1596,2017/2/28,http://www.aljazeera.com/indepth/opinion/2017/02/hollywood-strikes-defiant-tone-trump-america-170228062813744.html,,,"It was a night of contrasts. Coming a month into the Trump administration, the 89th-Academy Awards provided a powerful liberal counterpart to the spectacles that have recently headlined presidential politics. Messages of inclusion, diversity, and art on the Dolby Theater's stage repudiated the reckless policies and angry, impulsive rhetoric that have emanated from the White House over the past six weeks. Yet, for all these differences, a similarity exists between the two: each demonstrates the powerful place of entertainment in American political life. Since the first ceremony in 1929, the Academy Awards have reflected Hollywood's power to influence American political culture. A window into the historical debate about the role of entertainment in politics, the Oscars have highlighted the historical struggle between those who look to movies to escape and those who see films as an opportunity to educate and inform. The Academy Awards began as an opportunity to highlight the artistic achievements of a controversial new leisure industry. Run by Jewish immigrants, Hollywood incurred the wrath, condemnation, and frequent censorship of the white, Christian, male establishment. The motion picture industry celebrated values of youth, sexuality, and consumption. Its celebrities embodied a new version of the American dream, in which heroes achieved fame and fortune overnight rather than through years of hard work, education, and thrift. Moreover, with nickel admission tickets, movies were accessible to all, unlike the ""highbrow"" culture of symphonies and the opera. The awards thus began as an opportunity to ingratiate the new entertainment medium into the upper-class world of art by stressing the creative and professional process involved in the production of movies. By 1941, the awards night experienced its first political debate when President Franklin Roosevelt addressed the participants via radio and celebrated its rise as a ""national and international phenomenon of our generation"". Movies, Roosevelt contended, represented ""our civilisation throughout the rest of the world and the aspirations and ideas of a free people and of freedom"". Roosevelt turned to motion pictures as a ""weapon of war"" and close collaboration with industry leaders resulted in films that also reinforced his interventionist outlook on the silver screen before, during, and after World War II. Not everyone agreed with this newly politicised role of film, however. At the same time that Roosevelt celebrated the Academy's achievements, critics in the Senate, notably North Dakota Republican Gerald Nye, intensified an investigation into the ""warmongering"" of the industry. He declared that motion pictures should adhere to their role as pure entertainment, and that any attempt to ""influence the public mind"" on the silver screen was reprehensible. Although Hollywood assumed a prominent role in World War II mobilisation, the criticism of ""message films"" endured in the post-war period. It infamously motivated the controversial House Un-American Activities Committee of the McCarthy-era investigation into the motion picture industry during the Cold War. The result: those who spoke out against racism and anti-Semitism faced blacklisting for violating this perceived distinction between politics and entertainment. READ MORE: 'White Helmets' bags Oscar on politically charged night Nevertheless, Hollywood remained a potent political tool in domestic and international politics on both the right during the Cold War and on the left with the civil rights movement and the anti-war mobilisation. And the industry's most highly publicised awards evening has continued to capture this debate over the proper place of entertainment in politics. Notably, however, the debate shifted from whether entertainment should be political to how the awards ceremony could be used politically. While Trump may have won the election, Sunday's Oscars revealed the ways in which Hollywood has moved forward with its efforts to combat its diversity shortcomings and embrace inclusion in meaningful ways. - In 1973, Marlon Brando used his award for Best Actor in The Godfather to speak out in support of Native American rights and Bert Schneider accepted his documentary award two years later by promoting the anti-Vietnam war cause. While Frank Sinatra and Paddy Chayefsky both criticised their colleagues' use of the stage as a platform for personal politics in response, the trend continued. Since the 1970s, the awards evening has continued to offer actors an opportunity to spotlight issues, from civil rights to Aids to US foreign policy. Increasingly, those political goals have become embedded in the films themselves - and this year's films were rewarded for their ability to educate and inform. From Moonlight to the documentary short The White Helmets, the moviemakers used the medium to address serious issues such as race, homosexuality, and the war in Syria.- More significantly, with its selection of nominees this year, the Academy celebrated the diversity of the acting profession. Sunday night's ceremony notably had the first Muslim American, Mahershala Ali, winning an award for best supporting actor. And from the speeches to the attire, participants took their political statements to a new level with blue ribbons to support-the American Civil Liberties Union (ACLU) to The Salesman's director Asghar Farhadi boycotting the evening in response to the Trump administration's travel ban on Iran and six other Muslim-majority nations. READ MORE: Year of diversity at Oscars 'does little to even score' This outward-facing politics marked a real shift from last year's awards, something host Jimmy Kimmel noted in his opening monologue. He thanked Trump, saying: ""I mean, remember last year when it seemed like the Oscars were racist?"" Last year's awards featured the powerful boycott of #Oscarssowhite, as Al Sharpton and Spike Lee sparked a debate about the industry's record on civil rights. Last year, with Chris Rock as the host, the evening confronted ""the reality of racism in an industry known for its liberal politics"". One message permeated the controversial evening: ""Change the culture."" OPINION: Why Hollywood has abandoned Brand Israel As the entertainer-in-chief, reality star-turned-president-Donald Trump knows well the power of entertainment to change the culture. But while Trump may have won the election, Sunday's Oscars revealed the ways in which Hollywood has moved forward with its efforts to combat its diversity shortcomings and embrace inclusion in meaningful ways. Changing the culture of Trump's America, however, will require that this effort does not happen once a year, but continues to materialise on and off the screen regularly. Kathryn Cramer Brownell is an assistant professor of history at Purdue University in West Lafayette, where she teaches courses in 20th-century American history, and is the author of Showbiz Politics, Hollywood in American Political Life. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1597,2017/2/28,http://www.aljazeera.com/news/2017/02/malaysia-charge-women-murder-kim-jong-nam-170228065659451.html,Malaysia to charge women with murder of Kim Jong-nam,Women accused of smearing VX nerve agent on North Korean leader's half-brother to be officially charged in Malaysia. Deadly nerve agent-,"The two women accused of killing the half-brother of North Korea's leader with a nerve agent in a Kuala Lumpur airport terminal will be charged with murder,-Malaysia's attorney general said on Tuesday. Police allege the women smeared VX nerve agent - a chemical on a UN list of weapons of mass destruction - on Kim Jong-nam's face in an assault recorded on airport security cameras on February 13. Attorney General Mohamed Apandi Ali said Indonesian Siti Aisyah and Vietnamese Doan Thi Huong will be charged on Wednesday and face a mandatory death sentence if convicted. ""They will be charged in court under Section 302 [murder] of the penal code,"" Mohamed-said. READ MORE: Kim Jong-nam death - Four N Korean suspects 'are spies' Indonesia's deputy ambassador to Malaysia, Andriano Erwin, said on Saturday that Aisyah said she was paid $90 and repeated her previous claim that she was duped into the plot, thinking she was taking part in a prank. Huong told Vietnamese officials a similar story.- Police have said the women knew what they were doing when they attacked Kim and were instructed to wash their hands afterwards. But regardless of whether they did or not know of the murder plot, both appear to have been viewed as expendable by whoever gave them the VX. Authorities have not said how the women were able to apply the nerve agent to Kim's face and also avoid becoming ill themselves. Two other suspects have been arrested: a Malaysian who is out on bail and a North Korean who remains in custody. OPINION: Kim Jong-nam attack reveals true nature of North Korea Asked if the North Korean would be charged, Apandi said it depends on the outcome of the investigation. Authorities also are seeking another seven North Korean suspects, four of whom fled the country the day of Kim's death and are believed to be back in North Korea.- North Korea sent a high-level delegation to Malaysia to seek the return of the body. The delegation includes Ri Tong-il, former North Korean deputy ambassador to the United Nations. He told reporters on Tuesday outside the North Korean Embassy in Kuala Lumpur that the diplomats were in Malaysia to seek the retrieval of the body and the release of the North Korean arrested in the case. Ri said the delegation also seeks the ""development of friendly relationships"" between North Korea and Malaysia. Al Jazeera's Florence Looi, reporting from Kuala Lumpur, said the North Koreans were upset that an autopsy was carried out on Kim without their permission. ""They want the body returned immediately to the embassy,"" she said.- South Korean politicians said on Monday that the country's National Intelligence Service told them that four of the North Koreans identified as suspects are from the Ministry of State Security, the North's spy agency. Two other suspects are affiliated with Pyongyang's Foreign Ministry, one of the politicians alleged. Kim's killing took place amid crowds of travellers at Kuala Lumpur's airport and appeared to be a well-planned hit. Malaysian authorities say North Koreans put the deadly nerve agent VX on the hands of Aisyah and Huong, who then placed the toxin on Kim's face. Malaysia has not directly accused North Korea of having masterminded the killing. North Korea has repeatedly-criticised Malaysia's investigation-and has not acknowledged the victim's identity. Police last week identified the substance as the banned chemical weapon VX nerve agent, and Malaysia's health minister said on Sunday the dose was so high it caused ""very serious paralysis"" and killed him within 20 minutes. Source:-News agencies", -1598,2017/2/28,http://www.aljazeera.com/news/2017/02/syria-opposition-calls-russian-support-geneva-170227204410453.html,Syria opposition calls for Russian backing in Geneva,"Main opposition group hopes support from Moscow in negotiations will put pressure on Damascus. 'Catastrophic humanitarian situation' '1,161 civilians killed'","Geneva, Switzerland - Syria's main opposition group has urged Russia to put pressure on the government of President Bashar al-Assad to shore up faltering efforts to end the conflict. The rebels' comments on Monday at a fourth round of UN-backed talks in Geneva came as a ceasefire at home fell apart. The High Negotiations Committee, the main opposition group at the UN-sponsored talks, said it expects to meet a Russian delegation on Tuesday in the Swiss city. ""We hope ... that we will see real, positive and constructive support to the political process,"" said lead opposition negotiator Nasr al-Hariri after holding talks with Staffan de Mistura, the UN special envoy for Syria. ""We hope ""?to see support [from Moscow] for the peace process which will ultimately lead to peace by putting pressure on the regime."" Hariri's comments came on the heels of the opposition's second meeting with de Mistura in Geneva. ""[Moscow] has tried to be neutral,"" Hariri said. ""The fact that it has recognised [moderate rebel factions]-as a negotiating party is an indication of Russia's openness and we are hopeful that tomorrow's meeting is also a positive indication."" He said the High Negotiations Committee-had presented de Mistura with a proposed agenda and two memoranda of understanding that dealt with the ""catastrophic humanitarian situation"" in opposition areas and ceasefire violations that have taken place since February 23, when the delegations arrived in Geneva. Moscow, a central backer of the Assad government, has taken a lead role in the diplomatic process since its air force helped the Syrian army and its allied militias defeat rebels in Aleppo last year, dealing the opposition its biggest loss of the war. On the heels of multilateral talks in Kazakhstan, the Geneva meetings mark the latest initiative to bring an end to a six-year war that has killed nearly half a million people and displaced more than half the country's prewar population. But a fragile ceasefire intended to facilitate the diplomatic process fell further apart over the weekend, as suicide attacks and air strikes threatened to derail the nascent talks. READ MORE: Government forces target rebels in Syrian cities In a press conference over the weekend, hours after a deadly suicide attack on army intelligence branches in Homs, lead government negotiator Bashar al-Jaafari talked almost exclusively about ""anti-terrorism"". The opposition believes the government's emphasis on ""terrorism"" means Damascus is not committed to a real diplomatic process in Geneva. ""The regime must stop its lies. It is the biggest terrorist and it has continued to play the 'terrorism card' to delegitimise the revolution,"" said Hariri. ""Until this moment, we have not found a serious partner for peace and stability in Syria."" Air strikes and ground battles have steadily increased over the past month as pro-government forces press offensives on key opposition areas such as besieged East Ghouta in the Damascus countryside, the besieged neighbourhood of al-Waer - the last rebel-held area in Homs - and the province of Deraa in the country's south. During Monday's press conference, Hariri accused the government of killing 1,161 civilians - including 216 children and more than 150 women - since a nationwide ceasefire went into effect on December 30. Al Jazeera was unable to independently verify the figures. Rebel leader and negotiator Mohammed Alloush, who led talks last month in Astana but has kept a low profile since arriving to Geneva, told Reuters earlier on Monday that the increase in violence was a sign that the Russians have failed to enforce the truce despite promises from the ""highest levels of the Russian delegation"". While the line up of Russia's delegation for Tuesday's meeting has not yet been finalised, it could include Russia's Middle East director Sergei Vershinin, who attended the talks in Astana, and possibly Deputy Foreign Minister Gennady Gatilov, who arrived in Geneva on Monday to take part in the annual UN Human Rights Council meeting. ""We sincerely hope to persuade Russia to stand by the Syrian people,"" said Hariri. ""We hope that Russia will bet on the Syrian people instead of one person who has decided to destroy the whole of Syria so as to remain in power."" De Mistura, who is charged with keeping the talks alive, has so far met both sides in separate meetings, and is set to meet again with the government delegation on Tuesday. While bilateral meetings so far have primarily covered issues relating to the format of the talks, the UN's goal is to bring government and opposition delegations together to discuss elements of a ""transition"" in Syria, including governance, a constitution and elections. For the Syrian opposition, the only route for lasting peace remains a political transition that ensures Assad's removal, but the government in Damascus has consistently refused to consider the president's removal an option. Follow Dylan Collins on Al Jazeera: @collinsdyl Source:-Al Jazeera News", -1599,2017/2/28,http://www.aljazeera.com/news/2017/02/samsung-heir-indicted-bribery-embezzlement-170228055710397.html,Samsung chief Lee Jae-yong indicted in bribery scandal,Prosecutors have indicted Samsung's de facto chief Lee Jae-yong on embezzlement linked to massive South Korean scandal. Resignations,"The heir to the Samsung empire and four other top executives from the world's biggest smartphone maker have been indicted on multiple charges including bribery and embezzlement, South Korean prosecutors said. ""Special prosecutors today indicted Samsung Electronics vice chairman Lee Jae-yong ... for bribery, embezzlement, hiding of assets overseas ... and perjury,"" said Lee Kyu-chul, spokesman for the team probing the corruption and power abuse scandal that has seen President Park Geun-hye impeached, on Tuesday. ""The potential penalties if this goes to trial, and he is found guilty, are severe,"" said Al Jazeera's Harry Fawcett, reporting from Seoul. ""He can get up to life in prison if embezzlement is found to be of a sufficient amount."" Lee was arrested on February 17 over his alleged role in the corruption scandal involving President Park, dealing a fresh blow to the technology giant and standard-bearer for Asia's fourth-largest economy. Samsung is suspected of providing tens of millions of dollars in money and favours to-Park and her jailed friend Choi Soon-sil in exchange for government support of a merger deal between two Samsung affiliates in 2015. The merger helped Lee, the billionaire vice chairman, promote a father-to-son transfer of leadership and wealth at the group. Samsung Group on Tuesday said it has dismantled its corporate strategy office, the nerve centre of operations for the sprawling conglomerate, following its chief's indictment. Samsung, in a statement, said top group executives including Vice Chairman Choi Gee-sung and President Chang Choong-ki had resigned and that its affiliates would manage themselves independently through cooperation between individual firms' chief executives and the boards of directors. COUNTING THE COST: Samsung - Going up in flames (25:54) Lee promised in December to dismantle the corporate strategy office amid accusations of bribery. ""The strategy office has been the slightly shadowy way that Samsung has been able to control its entire network of companies.,"" said Al Jazeera's Fawcett. ""Because Samsung doesn't operate officially, legally, as a group entity."" The bribery allegation surfaced as authorities expanded investigations into a political scandal that led to Park's-parliamentary impeachment. Prosecutors accuse Park of letting Choi pull government strings from the shadows and extort money from Samsung and other big companies. READ MORE: Prosecutors seek arrest of Samsung heir Lee Jae-yong Prosecutors had previously-sought to arrest-Lee when they summoned him last month, but the Seoul Central District Court ruled there was not enough evidence to justify an arrest at that point. Moon Hyung-pyo, the country's former health minister, has also been indicted on charges that he pressured the National Pension Service to support the Samsung merger even though the fund's stake in one of the companies lost estimated hundreds of millions of dollars in value. The moves come as the country's Constitutional Court deliberates on whether to formally end Park's rule and trigger an early election to choose her successor. Source:-Al Jazeera and news agencies", -1600,2017/2/28,http://www.aljazeera.com/indepth/features/2017/02/abdul-sattar-edhi-google-honours-angel-mercy-170227140720826.html,Abdul Sattar Edhi: Why Google honours him today,"Edhi, who founded the world's largest volunteer ambulance network, would have been 89 on Tuesday. 'No religion higher than humanity' Nobel Peace Prize","Abdul Sattar Edhi founded the world's- largest volunteer ambulance network in Pakistan, the Edhi Foundation. Unlike wealthy individuals that fund charities in their names, Edhi dedicated his life to the poor from the age of 20, when he himself was penniless in Karachi. The reach of Edhi's foundation grew internationally, and in 2005 the organisation raised-$100,000 in aid relief for the victims of- Hurricane Katrina. Edhi was born before partition in Bantva, Gujarat, India on February 28, 1928. He died last year in Karachi of renal failure.- He was offered treatment abroad,- but insisted on being treated in a government hospital at home. The Edhi Foundation's slogan is: ""Live and help live"". Today would have been his 89th birthday. In his honour, Google changed its logo in the United States; Iceland; Portugal; Australia; New Zealand; Japan; Estonia; the-UK; Denmark; Ireland and Pakistan to a doodle, or illustration, of Edhi. Google hailed Edhi's ""super-efficient"" ambulance service. ""In celebration of Abdul Sattar Edhi, let's all lend a hand to someone in need today,"" it said. The technology giant's team has created more than 2,000 doodles for homepages around the world. Among those recently celebrated are- Pramoedya Ananta Toer,- Fred Korematsu-and Edmonia Lewis. ""The doodle selection process aims to celebrate interesting events and anniversaries that reflect Google's personality and love for innovation,"" the company says. With more than 1,800 ambulances stationed across Pakistan, the Edhi Foundation is Pakistan's -largest welfare organisation.- In 1997, the foundation entered the Guinness World Records as the-""largest volunteer ambulance organisation"". If you call 115 in the South Asian nation, the Edhi Foundation will answer. People have become educated, but have yet to become human Abdul Sattar Edhi In his words, at the start of his work, Edhi ""begged for donations"" and ""people gave"". This allowed him to convert a tiny room into a medical dispensary.- He also bought an ambulance that he himself drove around. Raising more donations and- enlisting medical students as volunteers, his humanitarian reach expanded across the country. Today the Edhi Foundation runs outpatient hospitals, a child adoption centre and rescue boats. It also helps in the burials of unidentified bodies.- There are cradles for ""unwanted babies"" outside Edhi emergency centres. READ MORE: Thousands attend funeral for Pakistan's legendary Edhi Throughout his life, Edhi emphasised the humanitarian, rather than religious, motivation for his work. His foundation receives ""zakat"" (Islamic charity) donations, which he used to help Muslims, Christians and Hindus. Asked why he helped non-Muslims, he said: ""Because my ambulance is more Muslim than you."" He also famously lamented: ""People have become educated ... but have yet to become human."" When he died,- Prime Minister Nawaz Sharif said:- ""Edhi was the real manifestation of love for those who are socially vulnerable, impoverished, helpless and poor. We have lost a great servant of humanity."" Who was Abdul Sattar Edhi, Pakistan's 'Angel of Mercy' who founded the world's largest volunteer ambulance network? https://t.co/1uo3FMH9Nl pic.twitter.com/11BFnU8VC2 Throughout his life and after he died, many questioned why Edhi never received the Nobel Peace Prize. After the nominations in 2014, the hashtag- #NobelPrizeforEdhi was created; many said he should have been recognised-instead of Malala Yousafzai, who is also from Pakistan. In an interview with the Express Tribune newspaper, Edhi said: ""I don't care about it. The Nobel Prize doesn't mean anything to me. I want these people, I want humanity.""- In that same interview, he recalled an incident that he would never forget. ""There was a woman who committed suicide by jumping into the sea along with her six children,"" he said. ""I was really saddened while giving them 'ghusal' (Islamic washing ritual after death) as part of the funeral rituals."" According to Pakistan's Nation newspaper, the State Bank of Pakistan will next month issue a commemorative coin of Rs50 in memory of Edhi. Source:-Al Jazeera News", -1601,2017/2/28,http://www.aljazeera.com/news/2017/02/dying-hunger-famine-170228053809074.html,Dying of hunger: What is a famine?,Here is an exploration of a term that evokes the very worst of human suffering. What is a famine? Where have famines occurred? Why are there still famines today? What is life like under famine? What does it mean to die from hunger? What are the long-term impacts?,"From ancient Rome to modern times, mankind has suffered devastating periods of hunger caused by drought, war or misguided politics. Last week South Sudan was declared the site of the world's first famine in six years, affecting about 100,000 people. Here is an exploration of a term that evokes the very worst of human suffering. ""Famine is not a word that we use lightly,"" said Erminio Sacco, a food security expert with the Food and Agriculture Organization. Since 2007 the term has been employed according to a scientific system agreed upon by global agencies, as the Integrated Food Security Phase Classification (IPC) scale. WATCH: Who is to blame for famine in South Sudan? According to the IPC scale, famine exists when at least 20 percent of the population in a specific area has extremely limited access to basic food; acute malnutrition exceeds 30 percent; and the death rate exceeds two per 10,000 people per day for the entire population. ""This scientific methodology helps to avoid famine becoming a term misused for political reasons,"" Sacco said. Over the past century, famines have hit China, the Soviet Union, Iran and Cambodia, often the result of human actions. Europe suffered several famines in the Middle Ages, but its most recent were during World War I and II, where parts of Germany, Poland and the Netherlands were left starving under military blockades. WATCH: Crisis in the Horn of Africa - Somalia's Famine In Africa there have been several famines in recent decades, from Biafra in Nigeria in the 1970s to the 1983-1985 Ethiopian famine, which ushered in a new form of celebrity fundraising and unprecedented media attention on the suffering. The last famine in the world was in Somalia in 2011, which killed an estimated 260,000 people. While South Sudan is officially experiencing famine, the UN has warned that Nigeria, Somalia and Yemen are all on the verge of the classification, which could affect more than 20 million people. READ MORE: South Sudan spends budget on fighting as people starve ""The common denominator is protracted armed conflict and its negative impact on access to food, farming and livestock production ... livelihoods, trade and, not least, humanitarian delivery,"" Sacco said. Of the four famine alerts, only one - Somalia - is caused by drought, while the other three stem from conflicts. In South Sudan, people have gone through cycles of displacement over the past three years which have driven many of them to hide in swamps, having lost their homes, crops and livestock. With nothing else available, they spend days foraging for wild foods such as water lily roots, fruit or fish, Sacco said. They also spend days walking in search of food aid through areas controlled by armed groups. ""They are extremely weak, hungry, and drink unsafe water from ponds and rivers,"" he said. Cholera is a constant threat. When lack of food has led to an 18 percent loss of weight, the body starts undergoing physiological disturbances, according to a 1997 study of hunger strikes published in the British Medical Journal. READ MORE: South Sudan turns down proposal to take more UN troops ""The body metabolism gets increasingly dysfunctional, impacting the brain and other vital organs. At that point, therapeutic feeding treatment is necessary to save their lives, as the body has lost the ability to process normal foods,"" Sacco said. When people have insufficient food over several weeks, it leads to organ failure and eventually death. Even without reaching famine, parts of the Sahel, Somalia and Ethiopia go through regular cycles of hunger that have long-term social consequences. ""The biological damage erodes the physical wellbeing of entire generations of children and their development potential, possibly resulting in a weak workforce and retarded students,"" Sacco said. Hunger leads to stunted growth and affects cognitive development, and can lead to poor health throughout a person's life. Source:-AFP news agency", -1602,2017/2/28,http://www.aljazeera.com/news/2017/02/south-sudan-famine-eating-water-lilies-survive-170228050621672.html,South Sudan famine: Eating water lilies to survive,"Families caught up in famine hide from marauding gunmen in swamps, survive on little more than lilies. Too late for some-","Thousands of people at the epicentre of a man-made famine in South Sudan emerged from the safety of the swamps this past weekend hoping to receive emergency deliveries of food. For months now, Bol Mol, a 45-year-old former oil field security officer, has struggled to keep his family alive, spearfishing in nearby rivers and marshes while his three wives gather water lilies for food. They eat once a day if they are lucky, but at least in the swamps, they are safe from marauding soldiers. ""Life here is useless,"" Mol said, his hand clutching his walking stick as he waited with thousands of others beneath the baking-hot sun at Thonyor in Leer County. Aid agencies have negotiated with the government and rebel forces to establish a registration centre in the village before food deliveries. READ MORE: Who's to blame for South Sudan's civil war? The UN declared a famine in parts of South Sudan a week ago, but the hunger affecting an estimated 100,000 people is not being caused by adverse climate conditions. More than three years of conflict have disrupted farming, destroyed food stores and forced people to flee recurring attacks. Food shipments have been deliberately blocked and aid workers have been targeted. It is no coincidence that soaring levels of malnutrition have been found in Leer, a rebel stronghold and the birthplace of opposition leader Riek Machar, whose falling out with President Salva Kiir in December 2013 led to the civil war. Evidence of the devastating conflict is everywhere: in the burned walls of schools and clinics, in the ruins of razed homes and public buildings, and in the desolation of the once-thriving market. A peace deal signed in August 2015 was never fully implemented. As recently as December, the members of yet another 56,000 households were forced to flee to the safety of the swamps when yet another government offensive reached the area. The constant need to escape the war means people are unable to plant or harvest crops, and their livestock is often looted by armed men. With their livelihoods destroyed, people are reduced to gathering wild plants, hunting and waiting for emergency food supplies that come too rarely and are frequently inadequate. ""It is not enough,"" Mol said as he waited to register for the next food delivery. The fighting and the fleeing have interrupted all aspects of life: Mol said his children had not gone to school for the last three years. ""Right now, the majority of the people are living in the swamps. If you go there and see the children, you can even cry, the situation is too bad,"" he said. READ MORE: Famine declared in part of South Sudan's Unity state Nyangen Chuol, 30, keeps her five children alive with aid agency rations of sorghum supplemented with lilies, coconuts and sometimes fish. ""Before the conflict, I lived here in Thonyor but had to move far away to the islands in the swamp for safety,"" she said. This weekend's registration for food deliveries had drawn her back. Outside the famine's epicentre in the northern Unity State, there are nearly five million people who also need food handouts, mostly in areas where the fighting has been fiercest. ""The biggest issue has been insecurity in some of these areas which makes it very difficult to access,"" said George Fominyen of the World Food Programme (WFP). Aid workers warn that by the time a famine is declared, it is already too late for some, but the declaration has put pressure on the government to open up access, at least for now, and international aid agencies are ratcheting up their efforts. Ray Ngwen Chek, a 32-year-old waiting for food, said the situation had steadily worsened over the years. READ MORE: South Sudan's displaced face hunger ""Since 2013, we have planted no crops, nothing, we just stay like this. You don't know what you will survive on tomorrow,"" he said. Hospitals and schools are shut, Chek said, and children, surrounded by conflict and with no other options, ""are practising how to carry guns"" instead of learning for the future. Betrayed and neglected by the country's leaders, the people of Leer struggle to hold out hope for a political solution that would end the conflict. But Chek is certain of one thing: ""Fighting is not a solution"". Source:-News agencies", -1603,2017/2/28,http://www.aljazeera.com/news/2017/02/turkey-die-welt-deniz-yucel-held-terror-links-170228044057962.html,Die Welt's Deniz Yucel held for 'terror links',"Deniz Yucel, who holds both Turkish and German passports, has been charged with spreading 'terrorist propaganda'.","A Turkish court ordered a journalist for Germany's Die Welt newspaper to be jailed pending a trial on charges of terrorist propaganda and inciting hatred, media reports said. Deniz Yucel, who has both Turkish and German citizenship, was detained on February 14 after his reports about a hacker attack on the email account of Turkey's energy minister, Die Welt newspaper said. Yucel was questioned by a prosecutor in Istanbul on Monday for three hours before a judge ordered him formally arrested pending the preparation of an indictment and a trial. Die Welt confirmed that he was ordered into custody. Yucel, 43, joins scores of journalists who have been jailed in Turkey following a July 15 coup attempt that prompted a government crackdown on alleged anti-government activists. This has included the closure of at least 100 news outlets in Turkey. The private Dogan news agency said Yucel was also questioned about an interview he conducted with Cemil Bayik, a commander of the outlawed Kurdistan Workers' Party (PKK) , as well as about articles he had written on Turkey's policies towards the- Kurds . Activists in Berlin demonstrated against Yucel's detention by projecting #FreeDeniz on the Turkish embassy building in the German capital. - Lightprojection for the release of the journalist @Besser_Deniz onto the #Turkey #Embassy in #Berlin #FreeDeniz #Erdoan Sharing is Caring! pic.twitter.com/7fiwmoKV3e The Die Welt journalist was asked whether he had any links to the hacker collective RedHack, which obtained the energy minister's emails that were made available on WikiLeaks, Dogan reported. The energy minister, Berat Albayrak, is President Recep Tayyip Erdogan's son-in-law. Germany's foreign ministry said last week that Yucel's case was of ""greatest importance"" for Berlin and that it would do ""everything in our power to support press freedom"" in Turkey. READ MORE: Turkey deports New York Times journalist In a statement, Germany's Chancellor Angela Merkel criticised the move as ""bitter and disappointing"" and called it ""disproportionate"". ""The German government expects that the Turkish judiciary, in its treatment of the Yucel case, takes account of the high value of freedom of the press for every democratic society. We will continue to insist on a fair and legal treatment of Deniz Yucel and hope that he will soon regain his freedom,"" she said. There had been protests in Berlin following Yucel's detention two weeks ago and on February 19, Festival director Dieter Kosslick closed the award ceremony of the 67th annual Berlin International Film Festival-by raising his fist into the air in honour Yucel in front of a photograph of him. On Monday, hundreds of people demanded-the journalist's immediate release on social media, tweeting under the hashtag #Freedeniz.- Source:-Al Jazeera and news agencies", -1604,2017/2/28,http://www.aljazeera.com/news/2017/02/tourist-trip-moon-planned-2018-170228034400876.html,First tourist trip around the moon planned for 2018,SpaceX has announced it plans to launch two paying passengers on a tourist trip around the moon next year.,"Two private citizens have paid money to be sent around the moon next year in what would mark the furthest humans have ever travelled to deep space, according to US tech company SpaceX. Born in South Africa in 1971, Elon Musk became a multimillionaire in his late 20s when he sold his start-up company, Zip2, to a division of Compaq. He achieved more success by founding X.com in 1999, SpaceX in 2002 and Tesla Motors in 2003. In 2006, he helped his cousins Peter and Lyndon Rive to establish SolarCity, a company that specialises in solar energy services. Musk serves as the chairman of the company. Musk made headlines in May 2012 when SpaceX launched a rocket that would send the first commercial vehicle to the International Space Station. As of February 2017, Musk has an estimated net worth of $13.9bn, making him the 94th wealthiest person in the world. Musk has stated the goals of SolarCity, Tesla, and SpaceX revolve around his vision to change the world and humanity. These include reducing climate change through sustainable energy production and consumption, and reducing the ""risk of human extinction"" by ""making life multiplanetary"" by setting up a human colony on Mars. The United States has not sent astronauts to the moon since NASA's Apollo missions of the 1960s and '70s. ""We are excited to announce that SpaceX has been approached to fly two private citizens on a trip around the moon late next year,"" said a statement by the founder and chief executive of the company, Elon Musk, on Monday. ""This presents an opportunity for humans to return to deep space for the first time in 45 years, and they will travel faster and further into the solar system than any before them."" The tourists, who were not named, ""have already paid a significant deposit"", Musk's statement added without specifying the amount.- Health tests and training are going to begin later this year, he said.- ""Other flight teams have also expressed strong interest and we expect more to follow. Additional information will be released about the flight teams, contingent upon their approval and confirmation of the health and fitness test results,"" Musk said. ""It's nobody from Hollywood,"" he added.- The space tourists will ride aboard the California-based company's Crew Dragon capsule, which is scheduled for its first unmanned test flight later this year.- It is based on the design currently used to send cargo to the International Space Station, with upgrades to allow for human transport.- The capsule will launch atop SpaceX's Falcon Heavy rocket, which is scheduled for its first test flight this summer.- The rocket ""will be the most powerful vehicle to reach orbit after the Saturn V moon rocket"", Musk said. Fly me to the moon ... Ok-https://t.co/6QT8m5SHwn ""At five million pounds of liftoff thrust, Falcon Heavy is two-thirds the thrust of Saturn V and more than double the thrust of the next largest launch vehicle currently flying."" The SpaceX moon journey is designed to be autonomous - unless something goes wrong,-Musk told reporters in the telephone conference on Monday. READ MORE: In historic first, SpaceX lands first reusable rocket ""I think they [the tourists] are entering this with their eyes open, knowing that there is some risk here. They're certainly not naive, and we'll do everything we can to minimise that risk, but it's not zero,"" said Musk. In a statement, NASA commended SpaceX ""for reaching higher"". In all, 24 astronauts have flown to the moon and 12 walked its surface from 1969 to 1972. Source:-Al Jazeera and news agencies", -1605,2017/2/28,http://www.aljazeera.com/news/2017/02/drugs-urgently-needed-fight-superbugs-170228041942393.html,WHO says new drugs urgently needed to fight superbugs,"As many as 10 million deaths a year could occur from drug resistant infections without new antibiotics, doctor warns.","New antibiotics must be developed urgently to fight a dozen dangerous families of bacteria, the World Health Organization says, describing these ""priority pathogens"" as the greatest threat to human health.- Many of these bacteria have already evolved into deadly superbugs that are resistant to many antibiotics, the United Nations health agency said on Monday. The bugs ""have built-in abilities to find new ways to resist treatment"" and can also pass on genetic material that allows other bacteria to become drug-resistant, it added. Dr Peter Hotez, president of the Sabin Vaccine Institute, said even people with healthy immune systems are now vulnerable. - ""It turns out that just about every country on the planet now has a problem with what we call AMR - antimicrobial resistance,"" Hotez told Al Jazeera. ""This is a real wake-up call that we have three superbugs that seem to be widely resistant to antibiotics and we're running out of tools to combat them."" The WHO's assistant director-general for health systems and innovation, Marie-Paule Kieny, said it was up to governments to put in place policies to boost investment in research and development if new drugs are to be found in time. ""Just when resistance to antibiotics is reaching alarming proportions, the pipeline is practically dry,"" she told reporters in a telephone briefing. ""If we leave it to market forces alone, the new antibiotics we most urgently need are not going to be developed in time."" WATCH: The rise of India's superbugs In recent decades, drug-resistant bacteria, such as Staphylococcus aureus (MRSA) or Clostridium difficile, have become a global health threat. Superbug strains of infections such as tuberculosis and gonorrhea are already untreatable. WHO has previously warned that many antibiotics could become redundant this century, leaving patients exposed to deadly infections and threatening the future of medicine. The ""priority pathogens"" list has three rankings - critical, high and medium - according to how urgently new antibiotics are needed. The critical group includes multidrug-resistant bacteria that pose a particular threat in hospitals, nursing homes, and other care facilities. These include Acinetobacter, Pseudomonas and various Enterobacteriaceae that can cause often deadly infections such as pneumonia and septicemia. ""These bacteria are responsible for severe infections and high mortality rates,"" Kieny said. ""While these bacteria are not widespread and do not generally affect healthy people, the burden for patients is now alarming and new effective therapies are imperative."" The second and third tiers contain other increasingly drug-resistant bacteria that cause more common diseases such as gonorrhea and food poisoning caused by salmonella. Potential superbug killer found in human nose WHO said the list is intended to spur governments to put in place policies that incentivise basic and advanced research and development. Tim Jinks, head of drug resistant infections at the Wellcome Trust global health charity, said that within a generation there could be up to 10 million deaths a year from drug resistant infections without new antibiotics. He said the list would be an important tool to steer research. ""Without new medicines to treat deadly infection, lifesaving treatments like chemotherapy and organ transplant, and routine operations like caesareans and hip replacements will be potentially fatal,"" Jinks said. Source:-Al Jazeera and news agencies", -1606,2017/2/28,http://www.aljazeera.com/news/2017/02/kim-jong-nam-death-korean-suspects-spies-170228034953468.html,Kim Jong-nam death: Four N Korean suspects 'are spies',"Suspects were directed by N Korean leader and work for Pyongyang's spy agency, South Korean intelligence officials say.","Four suspects in the killing of Kim Jong-nam, the estranged half-brother of North Korean ruler Kim Jong-un, are North Korean spies, South Korea's intelligence service told members of parliament in Seoul. Kim Jong-nam died February 13 at Kuala Lumpur's airport in what Malaysian police say was a well-planned hit by a Vietnamese woman and an Indonesian woman who separately wiped a liquid onto Kim's face. South Korean lawmakers cited the National Intelligence Service as telling them in a private briefing on Monday that four of the North Koreans identified as suspects by Malaysian police investigating the death are from the Ministry of State Security, the North's spy agency. The NIS was quoted as saying that two other suspects are affiliated with Pyongyang's Foreign Ministry, according to Lee Cheol-woo, one of the politicians who attended the briefing. READ MORE: Kim Jong-nam attack reveals true nature of North Korea Another legislator, Kim Byeong-ki cited the NIS as saying Kim Jong-un directed a ""state-organised terror"" to kill his brother. The politicians did not say how the NIS got the information and if it elaborated on what specific roles these North Korean suspects performed. The NIS has a mixed record on reporting developments in the secretive North. The agency said it cannot confirm its reported assessment on Kim Jong-nam's death. Malaysia has not directly accused North Korea of having masterminded the Kim Jong-nam killing but is pursuing several North Korean suspects, including a diplomat at the North Korean Embassy in Kuala Lumpur. Police last week identified the substance as the banned chemical weapon VX nerve agent, and Malaysia's health minister said on Sunday the dose was so high it caused ""very serious paralysis"" and killed him within 20 minutes. READ MORE: Meet the Kims - Who's who in North Korea's first family Malaysian officials have said four North Korean men provided the two women with the VX agent, then fled Malaysia the same day. It was unclear if those four were the four North Korean spies cited by South Korea's intelligence agency. North Korea has repeatedly criticised Malaysia's investigation and has not acknowledged the victim's identity. Source:-News agencies", -1607,2017/2/28,http://www.aljazeera.com/news/2017/02/sancturary-schools-trump-immigration-raids-170228015813290.html,US sanctuary schools defy Trump's immigration raids,A growing number of school districts are refusing to cooperate with immigration officials.,"As the Trump administration lays out its plans to crack down on undocumented immigrants, a growing number of school districts are declaring themselves sanctuaries and refusing to cooperate with immigration officials.- In Connecticut, Syracuse, New York and Chicago, principals have been told to make Immigration and Customs Enforcement agents wait outside unless they have a criminal warrant. Al Jazeera's John Hendren reports from the school district of Elizabeth, in New Jersey, where some parents are worried about sending their children to school after recent raids on immigrants. Source:-Al Jazeera News", -1608,2017/2/28,http://www.aljazeera.com/news/2017/02/chile-floods-water-170228025038926.html,Chile floods leave more than a million without water,Severe water shortages in Santiago after mudslides caused by torrential rains choked intakes for urban water systems.,"Santiago's water company is working to restore water supply for more than 1.4 million people in the Chilean capital following deadly flooding. More than half of the communities in the greater Santiago area and as many as five million people nationwide were affected by the weekend flooding as rocks and other debris choked the intakes for urban water systems. Three people died in the torrential rains and landslides that hit central Chile over the weekend, emergency officials said.-Nineteen people remain missing. Approximately 400 people in the Andes mountain region remain cut off from the outside world. The Aguas Andinas water company said on Monday that service had been restored to about 50 percent of the homes and businesses that initially suffered cuts. The storms started on Saturday, sending mudslides and rubble surging into the Maipo river, which supplies most homes in the capital of 6.5 million people. The decision to cut off the water supply prompted many people to go out with buckets and pans to collect water at some 200 emergency taps opened by the authorities. Others rushed to supermarkets to stockpile bottled water. Classes in affected schools have been cancelled. Mohsin Abbas, the publisher and editor of The Santiago Times, said he expects the flood crisis and the government's ability to deal with emergencies to become election issues later this year. He told Al Jazeera that the government is already facing a lot of criticism for its response during the recent wildfires that burned for weeks and killed at least 11 people. Source:-Al Jazeera and news agencies", -1609,2017/2/28,http://www.aljazeera.com/news/2017/02/heavy-rains-kill-leave-millions-water-170227092447714.html,"Floods kill three, leave millions without water","Torrential downpours cause floods, mudslides and power cuts around the central Chilean Andes.","Three people have been killed and at least seven are missing after heavy rains struck Chile over the weekend, causing mudslides and water outages. The rains, which caused rivers to overflow their banks in mountain valleys near Chile's capital, Santiago, have isolated 3,387 people, the Onemi emergency service said late on Sunday. Emergency officials said waters rushing down from the Andes since Saturday afternoon cut off roads and caused landslides. READ MORE: Torrential rains leave hundreds stranded in Chile The supply of drinking water to about 1.5 million households in Santiago has been affected, with the water company-Aguas Andinas-saying the torrential rains, which came during the country's usually dry summer months,-were making repairs difficult. ""We have a complex situation regarding the potable water supply in 33 communities of Santiago which have approximately six million people,"" said-Mariano Fernandez, Chile's interior minister. Chilean President Michelle Bachelet wrote on Twitter: ""Emergency teams are working on the ground to connect with isolated people and re-establish the water supply wherever possible."" In the San Jose de Maipo valley, directly above the city, emergency crews had to clear the roads of debris before residents could evacuate to lower, less mountainous ground. It was the second major flooding event to hit central Chile in the past year. Last April, heavy rains battered the San Jose de Maipo valley, killing one person and causing major flooding in downtown Santiago after a river breached its banks. Source:-News agencies", -1610,2017/2/27,http://www.aljazeera.com/news/2017/02/jewish-community-centres-bomb-threats-170227230303455.html,Jewish community centres hit by wave of bomb threats,Anti-Defamation League says at least 20 threats were reported across eastern states on Monday.,"Jewish community centres and schools in a dozen US states have reported bomb threats, days after hundreds of headstones were knocked over at a Jewish cemetery. The Anti-Defamation League, a Jewish NGO, said there were at least 20 bomb-threats against Jewish community centres and schools on Monday in 12 states across the eastern half of the country. The group described the latest threats as the ""fifth wave"" observed in 2017. For the year, about 90 such threats have been received, including one against the league's New York headquarters. No bombs were found after the latest threats. ""While this latest round of bomb threats to Jewish community centres and day schools across the country again appears to not be credible, we are nonetheless urging all Jewish institutions to review their procedures,"" the league's chief executive Jonathan Greenblatt said. He described the bomb threats as ""not the only manifestation of anti-Semitism in recent weeks,"" after widespread damage to Philadelphia's Mount Carmel Cemetery, where at least 75 headstones were toppled at the weekend. The burial ground has been in use since the mid-1800s by the Pennsylvania city's Jewish community. A week earlier, more than 150 headstones were damaged at a Jewish cemetery in St Louis, Missouri. READ MORE: Muslims raise $55,000 to fix vandalised Jewish cemetery Pennsylvania Governor Tom Wolf vowed to protect the Jewish community and find the perpetrators of the cemetery desecration. ""Any anti-Semitic act or act of intimidation aimed at Jewish institutions and people in Pennsylvania is truly reprehensible,"" he said. White House spokesman Sean Spicer said that President Donald Trump was ""deeply disappointed and concerned"" by the reported ""cowardly destruction"" in Philadelphia. ""The president continues to condemn these and any other form of anti-Semitic and hateful acts in the strongest terms,"" Spicer said. Source:-News agencies", -1611,2017/2/27,http://www.aljazeera.com/news/2017/02/helmets-bags-oscar-documentary-170227040950555.html,'White Helmets' bags Oscar on politically charged night,Film on Syrian rescue group wins best short documentary in ceremony marked by reaction to Trump immigration policies. Iranian win after protest Trump connnection,"A film celebrating the White Helmets , a volunteer rescue group that operates in rebel-held parts of Syria, has scooped an Oscar for best short documentary on a night marked by politics. The eponymously titled White Helmets, a 40-minute Netflix film, gives a window into the lives of the group's volunteers as they scramble to pull people from the rubble of buildings flattened in bombing raids. Accepting the Academy Award, director Orlando von Einsiedel urged the audience to get out of their seats and call for an end to Syria's-six-year civil war-, which led to a standing ovation. Von Einsiedel read a statement from White Helmets founder Raed al-Saleh in which he thanked the academy and said the group had saved tens of thousands of lives since it was formed in 2014. ""We are so grateful that this film has highlighted our work to the world. Our organisation is guided by a verse from the Quran: To save one life is to save all of humanity,"" Saleh's statement said. READ MORE: Year of diversity at Oscars 'does little to even score' ""We have saved more than 82,000 Syrian lives. I invite anyone here who hears me to work on the side of life to stop the bloodshed in Syria and around the world."" Rescue workers in Syria are at risk of being killed in so-called double tap air raids that target them as they arrive at the scene of a strike. The group says that many of its volunteers have been killed. Syrian cinematographer Khaled Khatib, who worked on the documentary, was unable to attend after being-barred from entering--the US-despite being granted a visa. US officials reportedly discovered ""derogatory information"" about him, according to a document seen by the Associated Press news agency. The incident happened after US President Donald Trump's now halted temporary travel ban -that-targeted seven Muslim-majority countries, including Syria. An Iranian film, The Salesman, won the best foreign language film award after its director, Asghar Farhadi, refused to attend the ceremony as a protest against Trump's immigration policies. Iran was on the list of seven countries. A female Iranian astronaut, Anousheh Ansari, accepted the award on his behalf. ""I'm sorry I'm not with you tonight,""-Farhadi said-in a statement read by Ansari. ""My absence is out of respect for the people of my country and those of other six nations who have been disrespected by the-inhumane law-that bans entry of immigrants to the US. ""Dividing the world into the US and 'our enemies' categories creates fear - a deceitful justification for aggression and war."" It was the second Oscar for Farhadi, who won in the same category for A Separation in 2012. Though- Donald Trump 's name was rarely mentioned during the ceremony, his policies were a running subtext throughout proceedings. Several actors and actresses, including the Ethiopian Irish Ruth Negga who was nominated in the best actress category, wore blue ribbons in support of the American Civil Liberties Union, a high-profile civil rights group. Talk show host Jimmy Kimmel, MC for the evening, did mention Trump several times. ""I want to say thank you to President Trump,"" Kimmel said as the ceremony opened. ""Remember last year when it seemed like the Oscars were racist?"" In 2015, criticism swirled around a lack of diversity among nominees, stirring a campaign that became known by the hashtag- #OscarsSoWhite . That criticism continued into 2016, with several people, including actor Will Smith, boycotting the ceremony. READ MORE: Taraneh Alidoosti boycotting Oscars A record six black actors were nominated this year, though, and a person of colour was nominated in each of the main acting categories - the first time that has happened. On Friday, the directors of all five Oscar-nominated foreign language films, including Farhadi, had condemned what they described as a ""climate of fanaticism and nationalism"" in the US and elsewhere in a joint statement. They said that, whoever won, the award would be dedicated to people working to foster ""unity and understanding."" ""Tonight is proof that art has no borders, no single language and does not belong to a single faith,"" academy president Cheryl Boone Isaacs, who has worked to diversify its membership, said. Mahershala Ali, an-Ahmadi Muslim,-won the best-supporting actor award for his role in Moonlight, which also won best picture. In his acceptance speech, he announced the birth of his daughter and thanked his wife as well as ""many wonderful teachers"". Celebrities had used the spotlight at earlier award shows to denounce the Trump administration's stance on immigration, transgender rights and the media. The Oscars is the highlight of the Tinseltown calendar, and wraps up two months of glittering prize galas. Source:-Al Jazeera and news agencies", -1612,2017/2/27,http://www.aljazeera.com/news/2017/02/trump-seeks-54bn-increase-military-budget-170227162140219.html,Trump 'seeks $54bn increase' in military budget,"Proposal, which could entail big cuts in foreign aid and spending on domestic agencies, to fulfil key campaign promise. Upcoming blueprint","Donald Trump has reportedly proposed an increase in the 2018 US defence budget by $54bn while imposing funding cuts to other domestic programmes and foreign aid. Administration officials, speaking on condition of anonymity at the White House's insistence, spoke about the bid to boost military spending by about 10 percent on Monday, the same day that Trump promised a ""historic"" increase in the defence budget. ""This budget follows through on my promise on keeping Americans safe ... It will include a historic increase in budget spending,"" Trump said as he met state governors at the White House. The Pentagon's budget increase would fulfil a Trump campaign promise to build up the military. A senior budget office official said there will be a large reduction in foreign aid and that most domestic agencies will have to absorb cuts, without offering more details. Tentative proposals for the 2018 budget year that begins on October 1 are being sent to agencies, which will have a chance to propose changes to the cuts as part of a long-standing tradition at the budget office. Trump's budget, once finalised and sent to Congress in mid-March, is expected to set off a major political debate in Washington, DC. Democrats and some Republicans are certain to resist the cuts to domestic agencies and any legislation to implement them would have to overcome a filibuster threat by Senate Democrats. According to an administration official,-Trump's budget also will not make significant changes to Social Security or Medicare. Capitol Hill aides confirmed details of the upcoming blueprint on the condition of anonymity to discuss information that has not yet been made public. Trump's first major initiative will land in the agencies one day before his first address to a joint session of Congress. For Trump, the prime-time speech is an opportunity to refocus his young presidency on the core economic issues that were a centrepiece of his White House run. Source:-Al Jazeera and news agencies", -1613,2017/2/27,http://www.aljazeera.com/news/2017/02/blast-mogadishu-hours-al-shabaab-vows-attack-170227130431392.html,Blast near Mogadishu hours after al-Shabab vows attack,"Explosion hits close to army checkpoint after al-Shabab threatens attacks against new president, Mohamed Abdullahi.","A car laden with explosives has blown up near an army checkpoint outside Mogadishu, wounding at least four soldiers, according to a Somali- security officer. Soldiers reportedly chased the driver before he detonated the explosives. ""We received information of the car bomb and we pursued it, but he blew up while we were chasing him,"" the security officer said. It was not immediately clear who was responsible for the explosion. In the past, al-Shabab has taken responsibility for blasts and gun attacks in the capital. The armed group has said that it would launch deadly attacks against Mohamed Abdullahi Mohamed,- Somalia's new president, also known as Farmajo. #UPDATE: Four soldiers wounded after suicide bomber blew himself up near army checkpoint outside #Mogadishu - Witness #Somalia pic.twitter.com/md5wH58h6C Al-Shabab earlier this week denounced Mohamed's election, calling him an apostate. The new president, who was inaugurated on Wednesday , has promised to make security a priority. On Sunday, a car bomb in the capital killed at least 39 people . Fighters affiliated with the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) have also emerged in Somalia. Source:-Al Jazeera and news agencies", -1614,2017/2/27,http://www.aljazeera.com/news/2017/02/jean-marie-le-pen-fined-inciting-hate-roma-170227193411226.html,Jean-Marie Le Pen fined for inciting hate against Roma,"Jean-Marie Le Pen, the 88-year-old founder of the far-right party, called members of persecuted minority 'smelly'.","The father of French far-right presidential candidate Marine Le Pen has been ordered to pay 5,000 euros ($5,300) after describing people from the Roma minority as smelly. ROMA IN EUROPE Between 10 and 12 million Roma are estimated to live in Europe, with most in eastern parts of the continent. With ancestral roots in India, the Roma migrated to Eastern Europe in the 10th century and have been persecuted throughout history. After the fall of the Soviet Union and the break-up of Yugoslavia, many travelled west, seeking to escape poverty and discrimination. In 2010, the European Union criticised France over a crackdown on illegal Roma camps launched by then-President Nicolas Sarkozy. In the same year, thousands of Roma were deported to Romania and Bulgaria from France. An appeals court on Monday in the southern city of Aix-en-Provence found Jean-Marie Le Pen, the 88-year-old founder of the National Front (FN) party, guilty of inciting hate and making racist and negationist statements with the comments at a press conference in Nice in 2013. Le Pen said at the time: ""It appears you have a problem with several hundred Roma who have an irritating and, let's say, smelly presence in this city."" Le Pen lost an appeal against the conviction. It was the ninth time that Le Pen, who infamously repeatedly referred to the Holocaust as a ""detail of history"", has been convicted of such offences. ""I stick by these terms because it is what I think,"" Le Pen said at an earlier hearing. ""Jean-Marie Le Pen's words were extremely serious and an open call to hate and ethnic discrimination,"" said Sonny Phung of the anti-racism group SOS Racisme, which will receive around $2,100 of Le Pen's fine. The Roma minority largely come from Bulgaria and Romania and are often stigmatised in France where they have been accused of being responsible for a rise in petty crime. Le Pen was the runner-up in the 2002 presidential election that rocked the French political establishment. READ MORE: Thousands of Roma 'made homeless' in France in 2016 In recent years, he has had a public falling out with his daughter after she took over the reins of the party and has sought to purge it of its more controversial elements. Marine Le Pen is currently forecast to win the first round of France's presidential election on April 23, but lose the all-important May 7 runoff to either centrist Emmanuel Macron or conservative Francois Fillon. However, polls show she has significantly reduced the projected margin of defeat in the past two months. Source:-Al Jazeera and news agencies", -1615,2017/2/27,http://www.aljazeera.com/news/2017/02/rebels-return-soldiers-bodies-azerbaijan-row-170227143041156.html,Rebels return bodies of soldiers to Azerbaijan,Government and rebels trade accusations after deadly clashes amid fresh tension over control of Nagorno-Karabakh region.,"Armenia-backed fighters have handed over the bodies of five Azerbaijani soldiers, two days after they were killed along the boundary with the breakaway Nagorno-Karabakh region. The troops died in clashes early on Saturday in the remote Khojavend and Fizuli regions, but the-separatists prevented the recovery of the bodies until Monday,-Azerbaijan's defence ministry said. International mediators from the OSCE Minsk Group had called on the two sides ""to keep heavy military equipment in its present positions and to allow recovery of the dead"". The rebels said in a statement:-""Evacuation of bodies did not take place because Azerbaijan violated agreements."" The breakaway region's self-declared defence ministry accused Azerbaijan's military of trying to infiltrate its territory. There were no casualties on their side, the separatists said. Clashes over control of the Nagorno-Karabakh region, which lies inside Azerbaijan but is controlled by ethnic Armenians, have stirred fears of a wider conflict breaking out in the South Caucasus, which is crisscrossed by oil and gas pipelines. The conflict first erupted in 1991 and a ceasefire was agreed in 1994. But Azerbaijan and Armenia regularly trade accusations of violence around Nagorno-Karabakh and along the Azerbaijan-Armenia border. The ceasefire was broken last April when dozens were killed. Efforts to secure a permanent settlement have failed despite mediation led by France, Russia and the United States.- Source:-Reuters news agency", -1616,2017/2/28,http://www.rte.ie/news/2017/0228/855967-kim-jong-nam/,Two women to be charged with Kim death,,"Two women are to be charged with the murder of Kim Jong-nam, who was assassinated with a lethal nerve agent at Kuala Lumpur's main airport, Malaysia's attorney general said. If the suspects - an Indonesian and a Vietnamese - are found guilty they will face the death penalty. The half-brother of North Korean leader Kim Jong-un-was assassinated on 13 February at the airport. Malaysian authorities revealed-last week-that the lethal VX nerve agent - manufactured for chemical warfare and listed by the UN as a weapon of mass destruction - was used to kill him. Two women are seen shoving something into Kim Jong-nam's face in leaked CCTV airport footage. The 45-year-old later suffered a seizure and died before he reached hospital. Both women have insisted they thought they were taking part in the making of a prank video.- Indonesian Siti Aisyah, 25, reportedly told a senior diplomat-she had been paid just 400 ringgit (�15) for her role, adding she believed she was handling a liquid like ""baby oil"". Vietnamese Doan Thi Huong, 28, told Hanoi officials she had been tricked into killing Kim and thought she was taking part in a prank for a comedy video. A third suspect, 46-year-old North Korean man, was also arrested following the killing.", -1617,2017/2/28,http://www.rte.ie/news/2017/0228/855961-australia-arrest/,Australian charged with helping IS develop missile technology,,"An Australian has been charged with helping the so-called Islamic State group develop high-tech weapons, including long-range guided missile capabilities. Haisem Zahab, a 42-year-old electrician, was working alone and there was no domestic-related terror threat, said Australian Federal Police Commissioner Andrew Colvin. ""We will allege he has utilised the internet to perform services for ISIL,"" Commissioner Colvin said, using an acronym for the jihadist group. ""Firstly, by researching and designing a laser warning device to help warn against incoming guiding munitions used by coalition forces in Syria and Iraq. ""Secondly, we will also allege that he has been researching, designing and modelling systems to assist ISIL's efforts to develop their own long-range guided missile capabilities."" Mr Zahab, from the town of Young 165km from the Australian capital Canberra, appeared in court on two foreign incursion charges punishable by life imprisonment. He was refused bail and will reappear on 8 March. Mr Zahab, who was born in Australia, was allegedly in contact with networks linked to the terrorist group. ""We believe he has networks and contacts in ISIL - not necessarily just in the conflict zones, but in other parts of the world as well and he has been relying on them to pass this information,"" said Commissioner Colvin, adding that his research was ""fairly sophisticated"". Prime Minister Malcolm Turnbull said the arrest after an 18-month operation was ""yet another reminder of the enduring threat we face from Islamist terrorism"". ""This highlights that terrorism, support for terrorist groups, and Islamist extremism is not limited to our major cities,"" he said. ""It once again shows that we all need to be very vigilant."" Canberra has become increasingly worried about homegrown extremism and the terror threat level was raised in September 2014. Australian officials say they have prevented 12 terror attacks on home soil since then with 61 people charged. But four attacks have gone ahead, including the murder of a Sydney police employee in 2015 by a 15-year-old boy.", -1618,2017/2/28,http://www.rte.ie/news/2017/0228/855960-foster-reports/,HSE to publish reports on failures at Waterford foster home,,"Two reports will be published today on-failures at a foster home in Waterford, where 47 children were placed over two decades up to 2013. One of the children was 'Grace' - a young woman with profound intellectual disabilities. 'Grace's' story was revealed by RT?-Investigates in 2015. She was left in the foster home for almost 20 years, despite a succession of sexual abuse allegations.- The Health Service Executive-commissioned Conal Devine and Resilience Ireland reports were circulated to affected service users and their families yesterday. RT? Investigates has seen advance copies of the reports in which multiple failures in the care system are listed. Among the findings is that for long periods of time there was ""no intervention or interactions"" with 'Grace' in her foster placement and various people who were directly involved in her case, failed to discharge a duty of care to 'Grace'. In relation to other people who were placed in the same foster home, no evidence could be found that such placements were ""... conducive to their welfare..."" Overcrowding was a problem in the home - the suitability of the foster carers was not assessed and children in their care regularly went unmonitored. The two reports will be officially published by the HSE at 11am.", -1619,2017/2/28,http://www.rte.ie/news/2017/0228/855995-dorrian-appeal-psni/,PSNI renews Lisa Dorrian appeal on 12th anniversary of disappearance,,"The PSNI and the family of missing Co-Down woman Lisa Dorrian have renewed their- appeals for information on the 12th anniversary of her disappearance. Ms Dorrian, who was 25 and from Bangor, disappeared after a party at a caravan park in Ballyhalbert on-28-February 2005. Her body has never been found but police believe she was murdered. Almost 600 people have been interviewed about Ms Dorrian's disappearance and eight people have been arrested on suspicion of murder. During the early part of last year, the PSNI spent weeks-searching land outside Comber in Co Down, but did not find human remains. Ms Dorrian's father and sisters have also recorded a video as part of the appeal for information.-", -1620,2017/2/28,http://www.rte.ie/news/2017/0228/855957-trump/,Wilbur Ross confirmed as US Commerce Secretary,,"The US Senate has confirmed billionaire investor Wilbur Ross as US Commerce-Secretary by 72 votes to 27, with strong support from Democrats. Mr Ross will be President Donald Trump's top official on trade matters. -He has been highly critical of China's trade practices. Mr Trump has designated the 79-year-old to lead a renegotiation of the 23-year-old North American Free Trade Agreement between the US, Canada and Mexico. In 2011, Mr Ross was among a group of investors who bought a 35%-stake in Bank of Ireland, enabling it to avoid full State ownership - the only Irish lender to do so. - Mr Ross drew votes from 19 Democrats and one independent, partly because of an endorsement from the United Steelworkers union for his efforts in restructuring bankrupt steel companies in the early 2000s, which saved numerous plants and thousands of jobs. - - - - - - He was criticised by some Democrats as another billionaire in a Trump Cabinet that says it is focused on the working class,and for being a ""vulture"" investor who has eliminated some jobs. Reuters reported last month that Mr Ross's companies had shipped some 2,700 jobs overseas since 2004. - - - - - - The investor will oversee a sprawling agency with nearly 44,000 employees responsible for combating the dumping of imports below cost into US-markets, collecting census and critical economic data, weather forecasting, fisheries management, promoting the United States to foreign investors and regulating the export of sensitive technologies. - - - - - - While commerce secretaries rarely take the spotlight in Washington, Mr Ross is expected to play an large role in pursuing Mr Trump's campaign pledge to slash US-trade deficits and bring manufacturing jobs back to the US. - - - - - - Mr Ross will join other major players on the economic team,including Treasury Secretary Steven Mnuchin and Gary Cohn,director of the White House National Economic Council. - - - - - - Some experts said Mr Ross could serve as a counterweight to advisers such as Peter Navarro, the University of California-Irvine economics professor who heads Mr Trump's newly created White House National Trade Council. Mr Navarro has advocated a controversial 45%-across-the-board tariff on imports from China that Mr Trump threatened during his campaign. - - - - - - ""I expect that Ross will quickly become the administrations chief trade spokesman, and that Navarros influence will be felt indirectly, rather than through public statements or testimony,"" said Gary Hufbauer, a senior fellow and trade expert at the Peterson Institute for International Economics. - - - - - - At his confirmation hearing, Mr Ross downplayed chances of a trade war with China, while calling it the ""most protectionist"" large economy. He vowed to level the playing field for US companies competing with Chinese imports and those trying to do business in China's highly restricted economy. - - - - - - Mr Ross, estimated by Forbes to be worth $2.9bn, built his fortune in the late 1990s and early 2000s by investing in distressed companies in steel, coal, textiles and auto parts, restructuring them and often benefiting from tariff protections put in place by the Commerce Department. Trump to address joint sitting of Congress Meanwhile Mr Trump will deliver his first live prime time speech to the nation when he addresses a joint sitting of the US Congress later tonight. In the year they are elected, a US President does not give a State of the Union address but rather is invited to address members of the House of Representatives and the Senate to outline their vision for the country, in a live televised speech. Senior White House officials have said the president's speech tonight will be ""very optimistic"" - which will be in contrast to the dark speech he delivered on Inauguration Day. In keeping with tradition, and despite his administration's contentious relationship with the media, Mr Trump will have lunch with news anchors from the major US networks to brief them on his speech. He will also sign two more Executive Orders today - one undoing Obama-era clean water protections and another related to historically black colleges and universities improving their access to the White House and increasing the percentage of the federal education budget they receive. President Trump will aslo sign two new laws - one directing NASA to implement programmes to encourage women and girls to study science, technology, engineering and mathematics (STEM subjects) and pursue space careers in space. The second authorises the National Science Foundation to encourage women entrepreneurs. The White House confirmed that the president will sign a new travel ban order later this week.-", -1621,2017/2/28,http://www.rte.ie/news/2017/0228/855964-cabinet-politics/,Prescription charge amendment before Cabinet,,"Minister for Health Simon Harris will bring the Health Amendment Bill to Cabinet this morning, which will provide for the budget proposal to reduce the maximum charge for prescription charges for those aged over 70 years with medical cards. The maximum charge will be reduced from �15 to �10 per month and will affect 330,000 people from the beginning of March. The legislation will also provide for 10,000 medical cards to children in receipt of the domiciliary care allowance, which was also announced in the budget. Separately, Minister for Social Protection Leo Varadkar will bring a memo to Cabinet on reforms to employment activation programmes including the Community Employment and Gateway schemes. Under his proposals the eligibility criteria for the schemes would be broadened and a greater emphasis would be placed on social inclusion and community projects, as well as helping people back into the workforce", -1622,2017/2/28,http://www.rte.ie/news/2017/0228/855959-cancer/,Significant decline in childhood cancer mortality,,"A new report from the National Cancer Registry shows that childhood cancer mortality has declined over the past 50 years. The report shows a significant reduction in the number of children dying from childhood cancer compared to the 1960s. Since the 1990s fewer than 25 children under 15 died from cancer each year, compared with 50-60 children per year from the 1950s to the 1970s. There has been a reduction in mortality rates of between 2.5-3% per year. The report also shows there have been significant improvements in survival from leukaemia-and lymphomas during the last 20 years. However, the number of children with rare cancers increased between 1994 and 2014 - partly reflecting increases in the childhood population. The Director of the National Cancer Registry said-the fall in mortality rates for childhood cancer is due to improved treatments. Professor Kerri Clough-Gorr said that-on average, the survival rate for childhood cancer is 81%. Speaking on RT?'s Morning Ireland, she said the majority of cancers are treated with chemotherapy, which children tolerate fairly well.- In the past, she said, many cancers went undiagnosed but-are now being discovered and treated earlier.- ""The survival rate is 81%-and that's really a great survival rate. Although we'd like it to improve and be higher, that is good news. ""Treatments are definitely improving and what we do know about treating childhood cancers is that the majority of them are treated with chemotherapy and we know that children tolerate chemotherapy really well."" She added that the ""whys of childhood cancer remain unknown."" Prof-Clough-Gorr said there needs to be a focus on making the survivorship of cancer the best it can be, which means-focusing on the after effects of surviving cancer and ensuring patients get the best possible treatments. ""There are a lot of important issues like late effects, medical effects related to treatments. There can be slower delayed growth and development, learning problems, psycho social issues, there could be reproductive issues later in life. ""And of course there's always a potential increased risk of developing cancers later in life. These are all very very significant issues for families and children.""- -", -1623,2017/2/28,http://www.rte.ie/news/2017/0228/856033-peter-mathews/,Former Dublin South TD Peter Mathews dies aged 65,,"Former Dublin South TD Peter Mathews has died aged 65 He had been diagnosed with cancer last year.- Mr Mathews was elected as a Fine Gael TD in 2011 but lost the whip in 2013-after splitting with the party over the Protection of Life during Pregnancy Bill. He contested last year's election where he lost his seat. Minister of State for European Affairs Dara Murphy-paid tribute to Mr-Mathews, describing him as a very charming man who helped everyone, not only in his own party, but right across the house. Fianna F��il TD Stephen Donnelly said news of Mr Mathew's death was ""heartbreaking"". He said Mr Mathews had been-deeply dedicated to the country and had gone-into politics for one reason - and that was to dig Ireland out of a hole. FG Senator Neale Richmond also paid tribute to the former TD saying he was held in high regard by his community and was ""an absolute gentleman"".", -1624,2017/2/28,http://www.rte.ie/news/2017/0228/855979-hogan-telephone-allowance/,Telephone allowance cut blamed for fall in uptake of Seniors Alert System,,"A community leader in Co Waterford has blamed the last government's abolition of the telephone allowance for a reduction in uptake by older people of panic-button activated Seniors Alert System. John Hogan, former president of voluntary community development group Muintir na T��re, lives in a parish bordering on Ballysaggart where 90-year-old Paddy Lyons was found murdered at the weekend. Speaking on RT?'s Six One last night, Mr Hogan said the withdrawal of the telephone allowance in the 2013 budget has had ""a knock-on effect"" because some older people got rid of their landline phones as they could no longer afford them. He said many people in Waterford-had handed back their pendants and panic buttons. Mr Hogan said-he was not suggesting that Mr Lyons had ever used the SAS. However, he said that the issue has re-emerged in the context of the elevation of the level of fear among people in isolated areas following the killing. He urged the Government to introduce a new telephone allowance ""so that people could have an alarm system in place at a low cost"". Initially, the SAS - which is administered in the by organisations including the parish-based Muintir na T��re - could only be provided to customers with landlines. In 2013, it provided over 9,000 isolated pensioners with a pendant alarm. Mr Hogan said the alarm-can now be linked to a Sim-card in the pensioner's home, but connectivity issues make it far from universal. In late 2013, a Muintir na T��re survey of dozens of branches revealed that mobile phone coverage in a quarter of rural areas was ""poor"". Muintir na T��re warned at the time that the withdrawal of the telephone allowance raised particular security concerns for pensioners living in communication black spots. In 2012, the allowance amounted to �12.60 a month, but the following year it was more than halved and it was abolished in January 2014.", -1625,2017/2/28,http://www.rte.ie/news/2017/0227/855768-bus-eireann/,Strike at Bus ?ireann from Monday as company announces cuts,,"The National Bus and Rail Union and SIPTU have announced that they will commence an all-out strike at Bus ?ireann next Monday, after management announced cost-cutting measures will be imposed. Bus ?ireann management has told staff that the company has no option but to implement changes to work practices from 6-March-that will result in ""immediate cost savings"". They have also warned that there will be redundancies and impact on pay - but says the moves are necessary to save the company. Three routes will also be closed: the Dublin-Clonmel route on 12 March,-Athlone-Westport on 16 April, and the Dublin-Derry route on 28 May. There will also be a reduction in services on the Dublin-Limerick and Dublin-Galway routes, from 12 March. In a letter to staff issued after this morning's board meeting, acting Chief Executive Ray Hernan says the company will implement further changes to terms and conditions. A review of all structures to be finalised by the end of March will result in job losses in some areas-but will provide opportunities in others, the letter says. Mr Hernan acknowledges some changes will impact on pay, but in doing so will safeguard the maximum number of jobs possible. He denies that the company's objective is to become a low-cost operator, adding that it is committed to protecting basic pay rates. NBRU General Secretary Dermot O'Leary said it was annoying and disgraceful that the company has done this without going back to the Workplace Relations Commission. He said there was also a danger that train services would be affected at the seven depots shared with Irish Rail as colleagues have said they would not want to pass pickets. Mr O'Leary appealed again to the company to go back to the WRC. School bus services are not affected. SIPTU Sector Organiser Willie Noone said members are ""amazed at the attitude displayed by this letter which completely discounts the views of the majority of elected representatives, the public and its workforce"". Speaking on RT?'s Six One News, Mr Noone said the company has been disingenious in saying that it could not obtain agreement with the union. He said that this evening the company had tabled a number of items which the union would have no difficulty discussing, though there-are a number of other items which SIPTU would need further clarification on.- These include re-deployment with no parameters, subcontracting with out any parameters and an unknown number of routes facing closure. Ross calls for 'constructive' engagement Minister for Transport Shane Ross has urged Bus ?ireann management and unions to ""engage urgently in a constructive manner"". Responding in a statement issued by his office to the announcements of cost-cutting plans strike action, the minister welcomed the board of Bus ?ireann's willingness to undertake further discussions. He added that it is necessary to resolve the ""difficult industrial relations situation, which threatens to greatly inconvenience the travelling public, especially those in rural Ireland"". The statement continued ""in relation to the small number of route changes announced by the company, the minister is aware that the National Transport Authority is conducting a transport needs assessment in relation to affected areas and will ensure continued public transport connectivity"". The NBRU subsequently criticised Mr Ross and his colleagues in the Independent Alliance. Mr O""�Leary said: ""The minister and his Independent Alliance colleagues are indicted of standing idly-by and allowing the decimation of a number of socially and economically vital bus services into rural Ireland; it is frankly appalling that those elected to both protect and enhance vital public services should be left hide in the shadows, in the hope that the dispute between Bus ?ireann and its staff will provide cover for their political cowardice. ""The NBRU has been out campaigning over the last three months alerting people to the fact that their vital bus service were under threat, we met with many politicians from all parties and none, and however those habitual Leinster House plinth dwellers were nowhere to be seen."" He said the union will not engage in any discussions on route closures and concluded ""surely the day has come when even the most anti-union of Fine Gaelers will say enough is enough with regard to the inactivity of the Minister for Transport, and realise that it is their rural constituents that are going to suffer by the inaction of a Dublin-based minister"". Company warns of insolvency The company says it is losing �10,000 a day and warns it could be insolvent by May without drastic action. In a statement, the company said the plans follow the failure to reach agreement with unions at the-Workplace Relations Commission-last week. ""These measures are vital to ensure that the company remains solvent, and can continue to trade as a going concern. ""The company must deal with its challenges directly, and the Board have a duty to ensure Bus ?ireann is financially sustainable and therefore must take the necessary steps to secure this."" It added: ""Further dialogue aimed at urgently resolving these challenges would be welcome."" NBRU warns Dublin Bus not to move buses out of shared depots Meanwhile, the NBRU has warned Dublin Bus not to move buses out of depots shared with Bus ?ireann in order to avoid their staff being involved in potential flashpoints if industrial action commences at Bus ?ireann. Last Friday, asked whether this was a possibility, Dublin Bus-said it was not planning movement of any of its services to other locations ""at this time"". However, it noted it always looks at contingency plans in the event of industrial action. In today's letter, NBRU General Secretary Dermot O'Leary expressed-concern that Dublin Bus may ""stand accused"" of placing a number of its staff centre stage in the Bus ?ireann dispute. He acknowledged-that while Dublin Bus might seek merit in making contingency plans to facilitate its own business, there is a real danger that others, particularly those whose livelihoods are under threat at Bus ?ireann, might view such actions in a completely different light. He stressed that the NBRU has advised members in Dublin Bus and Iarnr��d ?ireann that it is not in official dispute with those companies, and will not condone any attempts to unlawfully impede Dublin Bus operations. However, he also warned that ""... the actions of Dublin Bus may, inadvertently at least, open up a new flank to what, even prior to its commencement, may become a very nasty industrial relations dispute."" He said the NBRU will not be a party to any intervention that, viewed through the prism of an impending industrial dispute, would be interpreted as a manoeuvre to frustrate Bus ?ireann staff in their pursuance of a genuine trade dispute.", -1626,2017/2/28,http://www.rte.ie/news/assembly-election-2017/2017/0228/855772-five-things-to-watch-assembly-election/,Assembly Election: Five things to watch,,"Thursday will reveal whether the electorate is angry or apathetic as voters go to the polls in what many believe is a needless election.-Will the DUP drop below 30 seats? How many MLAs will Sinn F��in return under the new leadership of Michelle O'Neill? Here are five things to watch in the Assembly elections: What will the impact of the RHI controversy be on the DUP vote? The absence of cost controls on the scheme known as the Renewable Heating Incentive could cost the Northern Executive in excess of ?450 million over the next two decades. DUP former first minister Arlene Foster and former party minister Jonathan Bell, who is now an Independent candidate, were among the key personnel involved in the scheme and thus are seen as shouldering some of the blame for the cost overruns. Against the backdrop of austerity measures, lengthy waiting lists in the health sector and the economic threat of Brexit, there is anger at the DUP's ham-fisted management or mismanagement of the scheme. How angry people are and how this impacts on the party will be closely scrutinised as results emerge. While all parties are expected to drop seats due to the reduction of available seats from 108 to 90, the RHI is seen as the Achilles heel for the DUP. Should the party drop below 30 seats, serious questions will be asked of Arlene Foster. If the electoral damage is limited, then the party could yet retain 32-35 seats thus ensuring it remains the largest party with a bit to spare. How will Michelle O'Neill fare as the new Sinn F��in leader in Northern Ireland? All parties are expecting to loose seats but Sinn F��in eyes will be focused just as much on its percentage vote as it is on how many MLAs are returned. The party will expect to prosper from anger at RHI, its stance on Brexit and the profile of new leader Michelle O'Neill. Having performed well in securing the position and maintained a hardline negotiation stance to date with regard to any possible return of the institutions, the leadership qualities and resolves of Ms O'Neill will be severely tested in the days and weeks ahead. It's not about gaining, it's about minimising losses If, as expected, the Northern electorate break three different ways in the polling booth, then three blocks in or around 30 seats each will emerge. The DUP expects to take 31-33 seats and Sinn F��in has an expectation of 25-28, thus leaving another block of approximately 30 seats. How and where these seats break down will be crucial for several party leaders. Mike Nesbitt went against the wishes of many within his party by encouraging unionist-voters in some cases to transfer to the SDLP. Colum Eastwood needs to ensure the SDLP vote holds in key constituencies such as Foyle, South Down, South and North Belfast. Naomi Long must hope the Alliance can hold its ground while the Green Party and People Before Profit seek-to preserve their seats and grow their vote. Much soul searching will follow if any or all slip further behind the DUP/Sinn F��in blocs. Voter apathy or voter anger? The consensus across both communities is that this is a needless election. Everything from DUP incompetence on the RHI scheme, a long game strategy for a border poll for republicans, to petty actions in cancelling a grant for students going to the Gaeltacht has been blamed for triggering the election. However Thursday will mark the test as to whether the electorate is angry or apathetic. If unionists are so cross about the RHI financial waste, will they vent that anger at the DUP or mutter quietly while still expressing a DUP preference. Are nationalists sufficiently enraged to actually reverse the trend of a falling nationalist vote overall in recent elections? In many constituencies, the final seats will see nationalists battle it out - turnout and transfers are as significant if not more significant that in recent times. And then there is Brexit. Nobody can deny it is an issue that concerns many and causes worry for more but will that see a rise in the anti-Brexit sentiment? Protests are one thing, polling preferences are another. Watch for the tone Election campaigns by their very nature are divisive regardless of jurisdiction. Northern Ireland elections normally carry the word bitter in the same sentence as divisive and 2017 has been true to form. Crocodiles and alligators aside, the animosity between Arlene Foster and Michelle O'Neill, between the DUP ""contempt and corruption"" as alleged by republicans and the ""hidden agenda to further republican goals"" as alleged by unionists is never far from the surface. The bogeyman of Martin McGuinness as first minister has given way to the bogeyman agenda of Gerry Adams in the well-rehearsed lines emanating from the DUP. Come close of business on Thursday night however, all parties know the clock is ticking on the window to get Stormont up and running again before cold storage and direct rule become the norm. Some of the electorate will watch for the respective leaders to go in with their studs up on the other side. Others fearful of Brexit, direct rule and more will look for the nuances in tone. We will know soon whether all sides are real about forming an administration among the few to work for the benefit of the many.", -1627,2017/2/28,http://www.rte.ie/news/assembly-election-2017/2017/0228/855804-macho-politics-means-little-progress/,Macho politics means little progress,,"So the voters will have their say on Thursday and results will roll in on Friday and Saturday, but what then? What progress can be made with the two main parties entrenched in opposing corners and where if anywhere will things go? RT?'s Northern Editor Tommie Gorman offers his perspective in a time of little optimism and a growing macho political culture. Fractious negotiations ahead When the votes are counted all sides are going to have to try to negotiate some form of power-sharing. But I think given the stance the parties have taken, given the way the DUP has been damaged and given that Sinn F��in feels it is taking a stand about the way it has-been treated, I see very fractious negotiations ahead on the other side of the election. Disappointing and damaged Arlene Foster has had a disappointing year and will feel disappointed in herself. The DUP was a competent, well-run machine with a competent secretariat since it entered power-sharing. It was professional in the way that it was run. In the past year, however, it has been all over the place. It started with Brexit, then the RHI scandal leaving it now a much damaged party. Sinn F��in, in contrast, is undergoing a huge transition. It is a very demanding Sinn F��in and it won't be fobbed off. In those circumstances, getting an arrangement over a three-week period will be extremely difficult. Women at the helm but a time of macho politics The power-sharing structure in the North is built around compromise but we are living in a time of macho politics. For the British and Irish governments preoccupied by Brexit, they face a really difficult job trying to steer the parties towards some form of agreement. To that end, we could be looking at power-sharing going into some form of cold storage and then some form of direct rule. While Sinn F��in may be emboldened and energised, I think we are looking at a period of real instability and macho politics for the next 12 months.", -1628,2017/2/28,http://www.rte.ie/news/assembly-election-2017/2017/0228/855801-unpredictable-amid-the-predictable/,Unpredictable amid the predictable - Too close to call,,"There are predictable constituencies in Northern Ireland and there are the ones that are too close to call. Here is a quick look at the four constituencies that should deliver some nail-biting contests and the toughest dog fights in Northern politics. Belfast South This is the most politically diverse and unpredictable constituency with five party representatives sharing the six seats last time around. Finance minister M��irt��n Ó Muilleoir and the SDLP's Claire Hanna should make the short journey across town to Parliament Buildings. The DUP is by no means certain of returning both Christopher Stalford and Emma Little Pengelly. Clare Bailey from the Green Party and Paula Bradshaw have appeal for the cosmopolitan Belfast South electorate. In many constituencies transfers are important; in Belfast South they are so crucial they mark the difference between survival and defeat. This one will be a nail-biter. Belfast North This is the-most polarised of the 18 constituencies in Orange and Green terms. As with neighbouring Belfast South, this is simply too close to call. Any prediction would give you two unionist seats for the DUP. Gerry Kelly should hold for Sinn F��in but then it is two from three - Car��l N�� Chuil��n of Sinn F��in, Nichola Mallon of the SDLP and the worst-performing DUP candidate. Quite literally every vote, every preference and every transfer will decide the toughest dog fight in Northern Ireland politics. Strangford This is a heavy hitting and high-profile constituency featuring ministers and a party leader. UUP party leader Mike Nesbitt should easily hold his seat as should former ministers from the DUP Simon Hamilton and Michelle McIlveen. That is three of five but now it gets interesting. Can education minister Peter Weir successfully move from North Down? Will Jonathan Bell reap reward or vengeance from his decision to turn on his former colleagues in the DUP over the RHI scheme? Cross party and possibly cross community transfers will decide if Alliance, SDLP, UUP or Independent Bell will make it to Parliament Buildings. East Antrim This constituency could see one of the potential Sinn F��in losses in the reduced Assembly. Oliver McMullan has beaten the electoral odds in the past but faces an almighty battle this time around. Proper vote management should see three DUP MLAs return, led by David Hilditch. Roy Beggs has a solid UUP base and should be OK with the Alliance Party hopeful that hard working constituency MLA Stewart Dickson can serve another term.", -1629,2017/2/28,http://www.rte.ie/news/assembly-election-2017/2017/0228/855813-politics-is-a-brutal-game/,Politics is a brutal game - political careers on the line,,"When the boxes open on Friday, several high-profile political careers will be on the line due to the reduction in Stormont Assembly seats from 108 to 90. Across each of the 18 constituencies the battle for the fifth and last seat will be nail-biting for those watching and a personal trauma for those involved. With the reduction in seat numbers, those who are vulnerable (or thought to be vulnerable as not a single vote has yet been cast ) include former ministers, a former party leader, political veterans and two of the North's most colourful and controversial figures. David Ford Former Alliance Party leader David Ford faces a battle in South Antrim. In the 2016 election, Ford saw his vote drop to below 9% of the valid poll and for a significant period on count day he looked as if he could miss out. Like many, he may have thought he was spared such an experience for five years but the collapse of the institutions forces him back into battle. All six sitting South Antrim MLAs are contesting the 2017 poll, so someone faces disappointment. The Alliance Party is transfer dependent for success in many areas and Ford must hope rumours of his political demise are premature. Alex Attwood A veteran MLA and key party strategist for the SDLP, Alex Attwood knows strategy counts for little when voters lift their pens to mark their preferences. The dramatic emergence of Gerry Carroll of the PBP in the last election cost Sinn F��in a seat last year and now the drop in seats from six to five means Attwood is in clear and present danger of losing out. He looked dead and buried last May but somehow survived. Few see him holding on this time around. Jonathan Bell When former DUP minister Jonathan Bell gave an interview to the BBC which was highly critical of his party leader Arlene Foster and her role in the RHI scheme, his fate was sealed in the party. Bell told Stephen Nolan he was guided by God to tell the truth even if as his mentor Ian Paisley said ""the heavens fall"". Well the heavens didn't fall but Bell was ostracised for his versions of events and now stands as an independent in Strangford. In a tough constituency featuring Mike Nesbitt and former DUP ministers Peter Weir, Simon Hamilton and Michelle McIlveen, Bell is viewed very much as a long shot. There is undoubted anger among the electorate over the money squandered in the RHI scheme. Will Bell be rewarded for telling his version of events or cut adrift by the voters as he was by his party? Eamonn McCann It took nearly five decades for Eamonn McCann to make his electoral breakthrough, yet his time in Stormont may be limited to one short term. Not that McCann has done anything wrong, quite the contrary;-he retains his undoubted ability to articulate a passionate viewpoint and is currently true to his left-wing values. He may suffer, however, from the mathematics. Foyle the constituency and Derry the city is still John Hume territory and has remained loyal to the SDLP. If that stays true, Colum Eastwood and Mark H Durkan will be returned. Even without Martin McGuinness, Sinn F��in should take two seats through Raymond McCartney and Elisha McCallion. There is a unionist quota in Foyle which should see Gary Middleton from the DUP home. In such a scenario, Stormont could be poorer for the absence of McCann. Claire Sugden Plucked from the backbenches to become justice minister, Claire Sugden could have been forgiven for pinching herself when she sat around the Executive table as the Alliance Party, Ulster Unionists and SDLP chose to go into opposition. Sugden has a strong support base in Coleraine and will hope the voters in East Londonderry will continue to value an independent voice amid the Orange-Green divide. She is just 30 years old and well regarded at Stormont but this is her biggest battle to date. Peter Weir Peter Weir was the serving minister for education when the Stormont administration collapsed but now faces a struggle just to return to parliament. Weir, like his party leader, is a former Ulster Unionist who left the party amid tensions with the then leader David Trimble. Weir was elected in the North Down constituency last year but only on the 11th count and has now moved to the Strangford constituency. That may not be enough to extend his political career as an MLA.", -1630,2017/2/27,http://www.rte.ie/news/2017/0227/855931-richard-miskelly/,Man charged with murder over Co Down death,,"A 19-year-old man has been charged with the murder of a man in Co Down. Richard Miskelly, 24, was found fatally injured lying on the Bangor Road in Newtownards at about 5.30am yesterday. The accused is also charged with perverting the course of justice. He is due to appear before a district judge in Newtownards tomorrow morning. Mr Miskelly was from the Newtownards area. He was treated at the scene by paramedics but died on the road. Another 19-year-old man arrested in the wake of the murder has been released. He is to be reported to prosecutors in relation to the suspected assault of a 27-year-old man on the Bangor Road.", -1631,2017/2/27,http://www.rte.ie/news/2017/0227/855929-spacex/,SpaceX says tourists to break space travel record on Moon orbit next year,,"SpaceX has said two private citizens have paid money to be sent around the Moon late next year, in what would mark the furthest humans have ever travelled to deep space. The United States has not sent astronauts to the Moon since NASA's Apollo missions of the 1960s and 70s. ""We are excited to announce that SpaceX has been approached to fly two private citizens on a trip around the Moon late next year,"" said a statement by CEO Elon Musk. ""This presents an opportunity for humans to return to deep space for the first time in 45 years and they will travel faster and further into the solar system than any before them."" The tourists, who were not named, ""have already paid a significant deposit,"" Mr Musk's statement added. Health tests and training are to begin later this year. ""Other flight teams have also expressed strong interest and we expect more to follow. Additional information will be released about the flight teams, contingent upon their approval and confirmation of the health and fitness test results,"" Mr Musk said. The tourists will ride aboard the California-based company's Crew Dragon capsule, which is scheduled for its first unmanned test flight later this year. It is based on the design currently used to send cargo to the International Space Station, with upgrades to allow for human transport. The capsule will launch atop SpaceX's Falcon Heavy rocket, which is scheduled for its first test flight this summer. The rocket ""will be the most powerful vehicle to reach orbit after the Saturn V moon rocket,"" Mr Musk said. ""At five million pounds of liftoff thrust, Falcon Heavy is two-thirds the thrust of Saturn V and more than double the thrust of the next largest launch vehicle currently flying.""", -1632,2017/2/27,http://www.rte.ie/news/2017/0227/855703-ballysaggart/,Man held over 90-year-old's death in Waterford,,"A man in his 20s has been arrested in connection with the murder of a 90-year-old man in Co Waterford at the weekend. The body of Paddy Lyons was-discovered at-his home in Ballysaggart near Lismore,-Co Waterford on Saturday. The discovery was made by a neighbour who also acted as a home help for Mr Lyons. It is believed Mr Lyons had a number of marks on his body, which led garda�� to seek a full post-mortem examination. Supt Michael Lacey, who is leading the murder investigation,-has appealed to witnesses to come forward. A couple that garda�� had been seeking to speak to earlier have come forward and have been eliminated from the inquiry. Supt Lacey said Mr Lyons was last seen alive on Friday evening, 24-February. Post-mortem details will not be released-for operational reasons. Supt Lacey also said-the scene is still being examined. Anyone with information on the incident should call the incident room in Dungarvan on 058-48600 or the Garda Confidential Line 1800-666-111. -", -1633,2017/2/27,http://www.rte.ie/news/2017/0227/855922-hippo-el-salvador/,'Revulsion' as hippo dies after El Salvador zoo attack,,"A fatal attack by unidentified assailants on a hippopotamus in El Salvador's main zoo has stunned the country, with the government highlighting ""national revulsion"" at the crime. Gustavito, a large 15-year-old male, was beaten and stabbed in the stomach and snout by unidentified individuals who entered his compound last Wednesday night, probably while he was sleeping, according to a statement by the culture ministry. The serious wounds led to problems eating, and the hippo eventually died late last night, after four days of suffering. ""I deeply and profoundly regret this situation,"" the culture minister, Silvia Regalado, said. She added that she had witnessed the ""hard work"" by veterinarians and workers at the National Zoological Park who had tried in vain to save the hippo's life. The head of El Salvador's Zoological Foundation, Mauricio Velasquez, said ""we find it difficult to believe that someone is capable of doing that to a defenceless animal."" Officials said security at the zoo, located south of the capital, would be reinforced with police and soldiers. The culture ministry said the park had stopped buying exotic species eight years ago, and this crime had prompted it to also stop acquiring any big animals. ""The park will accelerate its transformation into a centre for the protection and rescue of our native fauna,"" the statement said.", -1634,2017/2/27,http://www.rte.ie/news/2017/0227/855663-trbunal/,McCabe tribunal holds first public sitting,,"The tribunal set up to investigate an alleged smear campaign against garda whistleblower Sergeant Maurice McCabe has held-its first public sitting at Dublin Castle. The-Disclosure-Tribunal, as it has been officially named, chaired by Supreme Court Judge Peter Charleton, will examine allegations that senior garda��-were involved in a-smear campaign against Sgt McCabe, among other issues. In his opening statement Mr Justice Charleton outlined the purpose of the tribunal and what its general plan of work would be. Supreme Court Judge Peter Charleton outlines the modules that will be examined in the Disclosure-Tribunal pic.twitter.com/6IRMATB9he ""?RT? News (@rtenews) February 27, 2017 He said the tribunal is to urgently inquire into a range of matters, all of which hinge on how top officers in An Garda S��och��na-react when concerns are aired as to the performance of the force. The centre of concern, he said, was whether such reaction had possibly not only been-one of distaste but of active and thought-through malice. He said there was also an additional question,-as to whether those who air concerns-may be targeted in their family life. Mr Justice Charleton stressed that these were ""as yet unknown."" He said there would be two modules in the tribunal - the first module will concern Garda Commissioner N��ir��n O'Sullivan and former commissioner Martin Callinan and others at the highest command level to disclosures made by Sgt McCabe. Maurice McCabe rejected plans for a Commission of Investigation calling instead for the inquiry to be held in public The second module will deal with members of the force that made protected disclosures and whether they were mistreated as a result. The tribunal will abide by existing court rules but rules of evidence will not apply, and hearsay is admissible, Mr Justice Charleton said. He also said the tribunal was a drain on the resources of the Irish people and was being paid for by taxation.- Every lie told to the tribunal would, he said, be a waste of what ordinary men and women have paid for through taxes. He said the tribunal was expected to get on with its work and deliver results rapidly, adding-that there were no preconceived notions as to ""who is a villain and who is a victim"". Mr Justice Peter Charleton says the Disclosure-Tribunal will abide by existing court rules, the rules of evidence do not apply pic.twitter.com/8Bgtq7rGxN ""?RT? News (@rtenews) February 27, 2017 It is-expected to be some time before the tribunal begins to hear testimony from witnesses. Mr Justice Peter Charleton calls on anyone with information to contact the Disclosure Tribunal pic.twitter.com/AlhIAePKJu ""?RT? News (@rtenews) February 27, 2017 Today's opening statement-comes sooner than had been expected - less than a fortnight after its terms of reference were published. The tribunal was set up after Sgt-McCabe-rejected plans for a Commission of Investigation, calling instead for the inquiry to be held in public. The terms of reference say the tribunal will report-in nine-months time and provide an interim report to Government in three months.", -1635,2017/2/27,http://www.rte.ie/news/2017/0227/855843-court-josh-turner/,Man gets life sentence for murder over chihuahua,,"A man has been sentenced to life in prison for murdering a man with an axe during an argument over a pedigree chihuahua, while a second man has been remanded in custody and will be sentenced next Monday for manslaughter. Josh Turner, 24, of Mooretown, Ratoath, Co Meath, received a mandatory life sentence for the murder of Christopher Nevin at Tailteann Road, Navan, on 19 November 2015. His co-accused, Wayne Cluskey, 25, of the same address, was remanded in custody by Mr Justice Patrick McCarthy to be sentenced next week. He was found not guilty of murder but guilty of the manslaughter of Mr Nevin. The court heard during the trial that Turner had loaned Mr Nevin a male chihuahua to breed with three female chihuahuas. But only one of the dogs became pregnant and a dispute arose over what Turner would be paid. In his evidence to the trial Turner said that Mr Nevin had agreed to pay him and that is why he and Cluskey called to Mr Nevin's house that November afternoon. Mr Nevin was struck with an axe several times during an altercation outside the house. Cluskey and Turner went voluntarily to Navan Garda Station four days later and admitted their roles in Mr Nevin's death. Turner claimed that he had lost control after Mr Nevin threatened him and struck Cluskey. Cluskey said that he was defending Turner when he ran in carrying the axe. During today's sentencing hearing, the court heard that both men were sorry for the pain and suffering caused to Mr Nevin's family, and are very remorseful at the tragic loss of Mr Nevin's life. Two victim impact statements by Mr Nevin's widow and mother were read to the court. Lisa Nevin said her last memory of her husband was of him lying in a pool of blood, an image that she has tried to block from her mind. She said her husband loved life, and had a heart of gold. Mrs Nevin said no one knows the pain that she is in. She said: ""It's like a nightmare that never ends"". Mary Nevin, mother of Christopher Nevin, said no words can express how she feels. She said her family is broken and will never be the same again. Mrs Nevin said her son had been robbed of his future. She said the trial got too much for her, knowing that she was in the same room as the men who had killed her son. The court was told that the Nevin family was not in a position to accept an apology from Mr Nevin's killers.", -1636,2017/3/1,http://abcnews.go.com/Politics/analysis-president-trump-brings-tone-promises/story?id=45818582,ANALYSIS: President Trump brings new tone to old promises,,"President Trump began a new phase of his presidency Tuesday night with a new tone: upbeat, if only by Trump standards, and just maybe looking to make a few deals. Yet the optimism in the speech was tempered, and of a particular sort ""? centered on the president who was the center of attention. Trump continued to depict a nation with a shrinking middle class, a listless foreign policy, saddled by debt, and with drugs pouring over the borders, criminal cartels and immigrants committing murders, and a crumbling system of roads and bridges. Enter, in Trump's telling, Trump: ""In 2016, the earth shifted beneath our feet."" For a night, his hard edges had soft tones. From a man criticized for sometimes failing to condemn racism and anti-Semitism among his supporters, he offered a condemnation of ""hate and evil in all its forms."" From a man promising a ""deportation force"" and decrying undocumented immigrants as killers and racists, he offered a potentially startling shift with a call for ""real and positive immigration reform."" From a man who seemed to blame the death of a Navy SEAL on those who designed the raid, he offered a raw and emotional tribute to a legacy ""etched into eternity."" From a man who has used his Twitter feed as an insult generator ""? even after being elected president ""? came an unusual declaration. ""The time for trivial fights is behind us,"" the president said. ""From now on, America will be empowered by our aspirations, not burdened by our fears."" In that message are shades of the economic nationalism that got Trump elected ""? and that he views as key to his policy successes from here. ""Americans must put its own citizens first, because only then can we truly Make America Great Again,"" he said. It's not the slogan that will cause quarrels, at least not by itself. It's the policies that Trump is propagating ""? policies that have evolved only minimally from his scorched-earth campaign. He offered no give in his plans for a border wall, immigration crackdown, renegotiated trade deals, and tax cuts. Of course, he drew big applause from only half the room with his call to ""repeal and replace Obamacare""?""?without providing the fresh details of his plan that are now bedeviling his own party. ""Obamacare is collapsing -- and we must act decisively to protect all Americans. Action is not a choice -- it is a necessity,"" he said. ""Why not join forces to finally get the job done, and get it done right?"" Democrats will have plenty of answers to that question. The president's few enticements for his opponents -""?his vision of uniting on paid family leave, clean air and clean water, and infrastructure investments ""?are likely to be stifled by the facts of his actions, not his words. Still, the president's tone was striking. ""Everything that is broken in our country can be fixed. Every problem can be solved. And every hurting family can find healing, and hope,"" he said. Whether this part of the shift marks a genuine pivot from an unpredictable president, or head fakes from a political figure who's made his name through distractions, remains to be seen. Perhaps this is a president becoming presidential, or a businessman returning to his deal-making roots, or a political shape-shifter showing a new skin that won't last until daybreak. At bottom, however, this looks like new marketing around a familiar -""?and still generally severe ""?agenda. If there's optimism in America, it's still confined to a base that's channeled its hopes and expectations into a still-untested president.", -1637,2017/3/1,http://abcnews.go.com/Politics/lawmakers-react-trumps-joint-address-congress/story?id=45819878,Lawmakers react to Trump's joint address to Congress,,"President Donald Trump's first address to a joint session of Congress received mixed reactions from lawmakers on Tuesday night. Republican Speaker of the House Paul Ryan called the president's speech a ""home run"" in a statement. ""That was a home run. President Trump delivered a bold, optimistic message to the American people,"" Ryan's statement read. ""We now have a government unified around a simple, but important principle: Empowering the people -- not Washington -- is the way to build a better future for our country."" But House Minority Leader Nancy Pelosi (D-CA) expressed the opposite sentiment, tweeting that Trump's speech ""was utterly disconnected from the cruel reality of his conduct."" Rep. Mike Bost (R-IL) said he appreciated the president's speech in a statement, hoping that it might get both parties to work together in the future. ""I appreciate the President highlighting some of the work he and Congress are pursuing to empower America's families and job creators,"" Bost's statement read. ""I am hopeful that both parties can find areas of common ground moving forward to achieve this positive, pro-growth agenda.""?Sen. David Perdue (R-GA) echoed Speaker Ryan's remarks, saying in a statement: ""President Trump has hit the ground running and is keeping his promises to the American people. He has put the needs of Americans first and the results he's already achieved have brought forward a renewed spirit of optimism in our country."" While praising Trump's speech in separate remarks, Sen. Ted Cruz (R-TX) took to Twitter saying: ""We should honor the promise we made to the American People -- #FullRepeal of Obamacare."" Sen. Bernie Sanders (D-VT) took to Facebook live to respond to the president's joint address, going in on ""what he didn't say."" ""I did not hear President Trump say one word -- not one word -- about social security or medicare,"" Sanders said. ""I urge President Trump, keep your promises. Tell the American people, tweet to the American people, that you will not cut social security, medicare, and medicaid."" Two of Sanders' Democratic colleagues took up different points of contention with the president's policies. Rep. Barbara Lee (D-CA) tweeted, ""Trump's wall is a waste of money and an insult to our values,"" with the hashtags ""#NoBanNoWall"" and ""#JointSession."" While Sen. Patty Murray (D-WA) tweeted, ""Families shouldn""t be forced to live in fear. We must fight back against President Trump's hateful immigration policies. #Jointsession."" A number of celebrities also took to social media to react, with mixed responses, to Trump's joint address. Actor George Takei tweeted in the middle of the speech, ""Sorry, just had to get up to go throw up."" Comedian Billy Eichner responded to Trump's remarks on illegal immigration by tweeting, ""I cannot even tell you how much more scared I am of Trump, Bannon and Miller than I am of the average illegal immigrant.""", -1638,2017/3/1,http://abcnews.go.com/Politics/celebrities-public-figures-react-president-trumps-joint-address/story?id=45801740,"Celebrities, other public figures react to President Trump's joint address to Congress",,"Public figures from the worlds of entertainment, politics and media took to Twitter Tuesday night to share their thoughts about President Donald Trump's first-ever joint address to Congress, which the White House had previously billed as the president's ""biggest speech yet."" Considering Hollywood types have been largely critical of the president, it's not surprising that most celebrities who expressed themselves poked fun at Trump's address. ""My 12 year old just said 'This sounds like one of our assemblies' #JointAddress #socalledapeech,"" actress Debra Messing tweeted. My 12 year old just said ""This sounds like one of our assemblies"" #JointAddress #socalledapeech Actor George Takei didn't mince words, tweeting, ""Sorry, just had to get up to go throw up."" Sorry, just had to get up to go throw up. Below, more reactions from celebrities, politicos and media types: A Great Great Wall? What the hell? Wow ""The time for trivial fights are behind us"" got a huge laugh I cannot even tell you how much more scared I am of Trump, Bannon and Miller than I am of the average illegal immigrant The Democrats probably aren't standing because their feet are so sore from all the marching. #DontGetTrumped #JointAddress Boy DOES Trump stress THE wrong words. #JointAddress I wanted to buy the red dress that Ivanka is wearing tonight for Rev. Kirk Franklin ... but apparently Nordstrom stopped selling it. Guys Trump just opened with Black History and Kansas Shooting and JCC. THE PIVOT IS HERE???????? I can understand people not agreeing with everything, but his tone is right. Most uniting speech I have heard him give. #SOTU #Jointsession Tonight, our Democratic #WomenWearWhite in support of women's rights -- in spite of a @POTUS who doesn't! pic.twitter.com/kKJpfV5iUE Reminder: Massive deregulation has led to every financial crisis in American history #JointAddress ""promote clean air and clean water?"" And destroy the EPA, force pipelines, revive coal? Good start! #JointAddress He simply revises history. His vision of America favors women barefoot in the kitchen and people of color in prison cages. #JointSession https://t.co/quGuwVdWGF ", -1639,2017/3/1,http://abcnews.go.com/Politics/rosie-odonnell-leads-anti-trump-protest-dc-ahead/story?id=45823164,Rosie O'Donnell leads anti-Trump protest in DC ahead of congressional address,,"Rosie O'Donnell, one of Donald Trump's most outspoken rivals, accused the president of being a lying, power-hungry misogynist during a protest near the White House Tuesday ahead of his joint address to Congress. ""This is not Russia,"" said O'Donnell. ""To Donald Trump and his pathetic band of white, privileged criminal businessmen, I would like to say to him, 'nyet, sir.'"" The actress and former talk show host added, ""Government are instituted among men, deriving their just power from the consent of the governed. And whenever any form of government becomes destructive of these ends, it is the right of the people to alter and abolish it and to institute new government. That is why we are here!"" At the rally, billed ""A Resistance Address: Defending American Values in a Time of Moral Crisis,"" O'Donnell also claimed the media does not take Trump to task and will ""not call him a liar."" ""He lies, he lies, he lies,"" she claimed. ""And it's about time they all started saying that, instead of, 'It appears as if he hasn't been speaking the truth.' Cut it down to the least common denominator like he does."" The event was hosted by multiple organizations, including Food & Water Watch, the American Civil Liberties Union and MoveOn.org. Pre-speech protest against President Donald Trump in the rain in Lafayette Square near the White House. pic.twitter.com/RyABMCsGuT The event aimed to rally against Trump's message and agenda, which the organizers said doesn""t reflect the values of most Americans, according to Food & Water Watch, a human right non-profit organization. ""While the Trump administration divides us, we stand for justice and equality and the protection of our shared values and environment,"" Food & Water Watch said in a Facebook post Tuesday. O'Donnell and Trump have feuded for years. At a Republican debate in 2015, when Trump was questioned about describing women with language such as ""fat pigs,"" ""dogs"" and ""slobs,"" Trump responded ""only Rosie O'Donnell."" ""He has degraded and bullied women his entire life and career,"" O'Donnell said at Tuesday's rally. ""This is America. It is not yours. It is not corporately owned. It is of the people, by the people, and for the people. And we the people will not stand for it.""", -1640,2017/3/1,http://abcnews.go.com/Politics/chicago-mayor-slams-trump-remarks-citys-murder-rate/story?id=45823833,Chicago mayor slams Trump over remarks about city's murder rate during congressional address,,"Chicago Mayor Rahm Emanuel slammed President Trump Tuesday night for his remarks during his joint address to Congress about the Windy City's murder rate. ""We have repeatedly made specific requests of the administration for greater law enforcement integration and resources; a higher priority placed on federal gun prosecutions; and funds restored toward mentoring and after-school and summer jobs programs that have proven to be positive alternatives for our young people,""?Emanuel said in a statement following Trump's address. ""Because this is so important, I'll always be ready with this list whenever the President asks."" Emanuel added, ""The better question, I'd suggest, is whether the President cares enough about violence in our city to do more than talk or tweet about it."" During his address, while calling out the scourge of violence in the U.S., Trump said, ""In Chicago, more than 4,000 people were shot last year alone ""? and the murder rate so far this year has been even higher ... This is not acceptable in our society."" It's not the first time Trump has been critical of Chicago or its leaders. In a tweet last month, Trump said, ""If Chicago doesn't fix the horrible ""carnage"" going on ... I will send in the Feds!"" If Chicago doesn't fix the horrible ""carnage"" going on, 228 shootings in 2017 with 42 killings (up 24% from 2016), I will send in the Feds! In a subsequent interview with ABC News' David Muir, Trump reiterated his point, saying that Chicago's leadership was ""not doing the job."" ""Now, if they want help, I would love to help them. I will send in what we have to send in,"" he said. Last week, Trump tweeted, ""Seven people shot and killed yesterday in Chicago. What is going on there -- totally out of control. Chicago needs help!"" Seven people shot and killed yesterday in Chicago. What is going on there - totally out of control. Chicago needs help! In response, Chicago Police Superintendent Eddie Johnson said in a statement last week that while the violence there was ""unacceptable to me, to the Mayor and to everyone who lives in Chicago,"" he hadn't heard from the White House about appeals the city had made for help. ""We've made requests to the White House and the Justice Department for them to support our work ""? from increasing federal gun prosecution to more FBI, DEA and ATF agents to more funding for mentoring, job training and more,""?his statement read. ""We are still waiting for the administration's response to our request.""", -1641,2017/2/28,http://abcnews.go.com/Politics/steve-beshear-trump-eroding-democracy-attacks-judiciary-intel/story?id=45801704,Ex-governor Steve Beshear defends Obamacare in response to Trump's speech,,"Former Kentucky Gov. Steve Beshear, who delivered the Democratic response to President Trump's address to a joint session of Congress tonight, argued that every Republicans""?plan to replace the Affordable Care Act ""would reduce the number of Americans covered, despite [Trump's] promises to the contrary.""?As a strong supporter of Obamacare and Medicaid expansion in his home state of Kentucky, Beshear used his record as a Democratic governor in a red state that lowered its rate of people without health insurance to offer a rebuke to Trump's push for a ""repeal and replace""?of the ACA. ""And even more troubling is that you and your Republican allies in Congress seem determined to rip affordable health insurance away from millions of Americans who most need it,""?Beshear said. ""�[Republicans] would charge families more for fewer benefits and put insurance companies back in control,""?Beshear argued. Trump had made special mention of Kentucky in his address to Congress. ""Governor Matt Bevin of Kentucky just said Obamacare is failing in his state -- it is unsustainable and collapsing,""?Trump said in his speech tonight, referring to Beshear's Republican successor. Beshear also mentioned one issue that Democrats have brought up as a point of concern: Russia. ""Yet, President Trump is ignoring serious threats to our national security from Russia, who's not our friend -- while alienating our allies, who""ve fought with us side by side and are our friends in a dangerous world,""?Beshear said. ""his approach makes us less safe and should worry every freedom-loving American.""?Beshear went on to take a dig at Trump's executive action on immigration: ""Instead, President Trump has all but declared war on refugees and immigrants.""?The former governor's rebuttal also focused on Trump's Cabinet picks and Trump's attacks on the media and the judiciary, among other points. ""President Trump also needs to understand that people may disagree with him from time to time -- but that doesn""t make them his enemies,""?said Beshear, throwing a jab at Trump's comment that the media is the ""enemy of the American people.""?""When the president attacks the loyalty and credibility of our intelligence agencies, the court system, the military, the free press and individual Americans -- simply because he doesn""t like what they say -- he is eroding our democracy,""?Beshear said. ""And that's reckless.""?,-1""", -1642,2017/3/1,http://abcnews.go.com/Politics/wireStory/house-gop-rejects-dem-effort-info-trump-russia-45812948,House GOP rejects Dem effort for info on Trump-Russia probes,,"House Republicans have rejected a Democratic effort to require the Justice Department to provide Congress with information about President Donald Trump's finances and possible campaign ties to Russia. The GOP-led Judiciary Committee on Tuesday defeated the resolution on a party-line vote of 18-16. Republicans said it would be premature and duplicative of their own efforts on the matter. The committee vote came a day after the full, Republican-led House blocked an attempt by Democrats to force Trump to release his tax returns to Congress. The resolution of inquiry, introduced by Rep. Jerold Nadler, D-N.Y., would have sought information related to an investigation on Trump's ties to Russia and potential financial conflicts of interest, but wouldn't have forced the Justice Department to turn any of those documents over. Federal investigators for months have been looking into contacts between Trump advisers and Russia, along with Russia's role in political hacking during the campaign aimed at Democrats. Nadler said the motion was especially important because Attorney General Jeff Sessions was one of Trump's biggest campaign supporters and has so far not recused himself from investigations into the president. Nadler said it would also allow Congress to preserve the documents. ""Between Mr. Trump's potential conflicts of interest, and the potential coordination with a foreign power to interfere with our elections, and with our government, the security and integrity of our nation are at stake,"" Nadler said. Republicans said the effort wasn't necessary and wouldn't be any more effective than writing a letter to the department. Committee Chairman Bob Goodlatte, R-Va., said he would send a letter this week requesting a briefing from the department regarding any Russian interference in the U.S. election and any potential ties to Trump's campaign. ""I believe this resolution is unnecessary, premature and not the best way for the House to conduct oversight,"" Goodlatte said. He said the committee ""can and will investigate any credible allegation of misconduct by the administration."" Only a handful of Republicans spoke out in opposition before the vote. One who did was newly elected Rep. Matt Gaetz of Florida, who said Trump's detractors were still grieving after the election. ""Democrats need to get over it,"" Gaetz said. ""The people have spoken. This is the time for acceptance.""", -1643,2017/3/1,http://abcnews.go.com/US/houston-officers-injured-shooting-authorities/story?id=45807920,Houston police search for suspect 'potentially' linked to officers' shooting,,"Police are searching for a suspect ""potentially"" linked to the shooting of two police officers on Tuesday, according to the Houston Police Department. Officer Ronny Cortez, a 24-year veteran of the department, was transported to Memorial Hermann Hospital in critical condition, said Houston Police Department Chief Art Acevedo in a press conference outside the hospital. The other officer, 10-year department veteran Jose Mu?oz, was taken to Ben Taub Hospital with nonlife-threatening injuries, Acevedo said. One officer is being taken to Ben Taub and one officer is being taken to Memorial Hermann #hounews Prior to the shooting, tactical police officers from the Houston Police Department were already in the area due to a recent spike in break-ins, when a resident alerted them to an alleged burglary, Acevedo said. One resident notified police that the door to a storage shed in her backyard was ajar, which she found ""suspicious,"" Acevedo said. Mu?oz and Cortez jumped a fence to gain access to the backyard when a male suspect exited the shed and opened fire on the officers, Acevedo said. The officers returned fire, striking that suspect, who was pronounced at the scene. The deceased suspect's identity is unknown. Please avoid this area - Lock your doors and windows if you're inside this area until @houstonpolice says otherwise. #hounews pic.twitter.com/feGVOiyzek Following the shooting, the neighborhood was placed on lockdown as hundreds of officers searched for a second suspect believed to be involved. ""We will assume that the second suspect at large is armed and dangerous,"" Acevedo said, advising the suspect to surrender and apologizing to neighborhood residents for the ""inconvenience."" The neighborhood lockdown was lifted just before 4 p.m. local time, with Acevedo saying the second suspect is linked to burglaries in the area and ""potentially"" involved in the shooting. Acevedo asked residents to remain vigilant as the second suspect remains at large. On the way to the hospital, first responders performed life-support procedures on Cortez, said Houston EMS Medical Director and Public Health Officer Dr. David Persse. Although he is still in critical condition, Cortez's condition has improved since he has arrived at the hospital, and he is awake and talking, Persse said. Acevedo described Cortez and Mu?oz as having ""hearts of lions"" because they ""didn't cower"" or ""run away."" They ""stayed in the fight and engaged the suspect,"" Acevedo said. Both officers were ""getting the very best care available,"" said Houston Mayor Sylvester Turner. ""I want to ask all of Houston and people in the region to pray for both of these officers and their families,"" Turner said. ""As usual, they get up every day. They go on their shift. They don""t know what's going to happen in the course of their shifts, and they dutifully serve this city."" Cameras flying overhead showed the officers being transported to local hospitals by ambulance with a police escort. Officer involved shooting. Two officers injured and being transported to the hospital. 8714 Sterlingame. CCU4 ", -1644,2017/2/28,http://abcnews.go.com/US/family-aboard-plane-crashed-southern-california-home-killing/story?id=45801621,"Family was aboard the plane that crashed into a Southern California home, killing 3, authorities say",,"A family was on board the small plane that killed three people after it crashed into a Southern California home Monday, according to authorities. The Cessna 310 was carrying five people -- one adult male, three adult females and one teenage girl -- and was headed to San Jose from Riverside when it crashed into a home there, said Riverside Fire Department Captain Tyler Reynolds. It is unclear who out of the five passengers were family members. The two survivors were adult females who were ejected from the plane, Reynolds said. The plane hit the right corner of a house, and victims were ejected from the aircraft and landed inside the home, Reynolds said. Firefighters originally thought the ejected victims lived in the home the plane crashed into. One of the surviving women was found in the bedroom of a home and was pulled to safety. She suffered third-degree burns to 90 percent of her body and is currently in critical condition and recovering at a burn center, Reynolds said. The second survivor was found in the front lawn of a home and was pulled to safety by residents and firefighters, Reynolds said. She suffered airway burns and is also in critical condition. Sixty firefighters responded to the scene, with some using thermal imaging cameras to search for the victims. It is unclear who was piloting the plane. No one on the ground was hurt, but one person did immediately vacate one of the homes after the crash, Reynolds said. Four homes were damaged, and 14 people have been displaced. The Riverside Municipal Airport is just a mile away from the crash site. The airport has 105,00 flight operations each year. The Federal Aviation Administration said on Monday that the plane crashed under unknown circumstances. The people on board were coming from a cheer conference at Disneyland, said Riverside Fire Chief Michael Moore. Shannon Flores, a teacher at a nearby school, told ABC's Los Angeles station KABC that she and her students saw the plane from the building. ""It was just flying very, very low,"" she said. ""We knew it shouldn't have been flying that low and that it was definitely going down."" In Massachusetts, a single passenger plane landed on the roof of an apartment building in Methuen on Tuesday afternoon, according to authorities. ABC News' Kayna Whitworth, Gregory Croft, Kelly Terez and Karma Allen contributed to this report.", -1645,2017/2/28,http://abcnews.go.com/US/man-accused-fatally-shooting-moviegoer-details-lengthy-tenure/story?id=45801619,Man accused in fatal 2014 moviegoer shooting: 'It was his life or mine',,"In court testimony today, Curtis Reeves described the altercation in January 2014 that ended with his fatally shooting another moviegoer over texting, calling it at one point a ""life-or-death struggle."" Reeves, 74, a former police captain and former amusement park security director, is accused of shooting and killing 43-year-old Chad Oulson on Jan. 13, 2014, in Pasco County, Florida, before a showing of ""Lone Survivor,"" police said. ""At that point, it was his life or mine,"" Reeves testified, when asked by the defense why he shot Oulson that day. If Circuit Court Judge Susan Barthle rules in favor of Reeves, he will receive immunity from prosecution and will leave the court a free man, with no criminal murder charges, under Florida's ""stand your ground"" law. Should she decide Reeves did not meet the law's criteria during the encounter with Oulson, he will proceed at a later date to a criminal trial, where he may claim self-defense but may not utilize protection under the ""stand your ground"" law. Prosecutors say Reeves provoked the confrontation, The Associated Press reported ""?which would exclude him from protection under the law. Before the shooting, Reeves complained about Oulson's use of his phone to movie theater employees, authorities said at the time. When Reeves returned to the theater, the argument escalated. Hearing of retired cop who shot moviegoer puts Florida's controversial 'stand your ground' law back in the spotlight Exclusive: Wife of slain moviegoer details flash attack: His death was 'so unnecessary' Wife of Florida man accused in theater shooting over victim's texting testifies in court Witnesses told police that Oulson threw a container of popcorn at Reeves before being shot, police said. Oulson's wife, Nicole Oulson, was also shot, in the hand. She told ABC News in 2014 that her husband was texting their babysitter, who was watching their young daughter. Reeves testified today that he and his wife were seated behind the Oulsons. During previews before the movie, Reeves said, he waited 15 seconds to 30 seconds before asking Chad Oulson to put away his cellphone. Reeves said Oulson responded with ""Eff off or get the eff out of my face."" Reeves said he saw Nicole Oulson reach over and talk to Chad Oulson, so he sat back to see what would happen. When the cellphone remained out, Reeves testified, he went to speak to theater management. He said when he returned to the theater, Chad Oulson gave him a ""stare."" Reeves said that he noticed that Oulson did not have his phone out, so Reeves apologized in what he called a ""goodwill gesture."" ""I said, 'You're not on your phone. Sorry I involved theater management,'"" Reeves said. As he was sitting down, though, Reeves said, Oulson stood up quickly, turned around and ""was just being loud."" ""When I looked up, he was coming over the seat at me, across the front of where my wife was ... and I was hit in the face,"" Reeves said. Reeves said Oulson hit him over his left eye, knocking his glasses to the side of his head. ""Everything was blurry,"" Reeves said. ""I was kind of dazed. I was disoriented. I was trying to get my thought processes back together as to what happened, because it was so unexpected."" Reeves said he could still hear Oulson yelling, using profanity and saying that he was texting his daughter. Reeves said he tried to get out of his seat to stand up but could not because he was still holding on to a container of popcorn. He said he tried to lean back in his seat to create distance between him and Oulson but there was a wall behind his row of seats. Reeves said he could see Nicole Oulson trying to hold back her husband. ""I realize I'm trapped,"" Reeves said. ""I can't get up. I can't get out. He's right in front of me. And he's trying to come over the chairs."" Reeves said that at some point he reached for his .380 semiautomatic handgun, which was in his pants pocket. ""He was suddenly right in front of me ... looking down at me, and he was yelling,"" Reeves said. ""He was reaching for me."" ""There's a thing where you see somebody getting ready to set up and to punch you, and he was getting ready to punch me, and I perceived that at some point ... That's when the pistol came out,"" he said. Asked by defense lawyer Richard Escobar what he did with the pistol, Reeves said, ""I shot him."" Asked whether he wanted to shoot Chad Oulson, Reeves said, ""Absolutely not."" When Escobar asked him whether he thought Oulson would hurt him, Reeves said, ""No question about it."" He spent the first two hours of his testimony today chronicling his nearly 27 years of experience in law enforcement as well as his later work in private security. Reeves testified that he served multiple roles with the Tampa Police Department in Florida. He started as a patrolman before being promoted to a detective and later a sergeant. He created and designed a SWAT team for the department, and by the early 1980s rose to the rank of captain. He said he became a program coordinator for the department and subsequently taught two to three classes at the police academy because of his extensive training in firearms. In 1988 he was diagnosed with cancer and, he said, was worried that he wouldn't be able to return to work. After surgery and radiation treatment, he was able to return to the department, where he took over the vice-narcotics division. In 1993, he retired. He then took over as the director of security at Busch Gardens, a Tampa amusement park, where, he said, his focus was less on law enforcement and more on public relations and keeping the guests happy. His lawyer spent a portion of the time showing the various certificates acquired by Reeves, including one from the FBI training school for effective communication and one from the National Rifle Association for teaching handgun safety to the public. Reeves was initially denied bond, but he was freed in July 2014 after spending six months in a Pasco County jail and posting $150,000 bail, The Tampa Bay Times reported. He has pleaded not guilty to second-degree murder, claiming self-defense. ABC News staff contributed to story. ", -1646,2017/3/1,http://abcnews.go.com/US/wireStory/efforts-repeal-nc-bathroom-bill-impasse-45804175,Efforts to repeal NC 'bathroom bill' are an at impasse again,,"The drive supporting a new proposal to repeal North Carolina's ""bathroom bill"" is stuck in idle as Republican lawmakers and the new Democratic governor disagree about how to empower local governments to expand some LGBT rights. Supporters call the bipartisan legislation a compromise to undo the law known as House Bill 2, which has cost North Carolina some conventions, concerts, sporting events and business expansions. The proposal includes some add-ons, however, that gay rights groups and many Democrats oppose. The measure, filed last week, was parked in a committee earlier this week as GOP backers and Democratic opponents accuse one another of refusing to negotiate. A deal between GOP leaders and Democratic Gov. Roy Cooper last December to repeal the law fell apart amid partisan acrimony. The issue now is more complicated because Republicans are divided on whether even to repeal HB2. That means Democratic support is necessary to pass the repeal measure. ""It won't move until I know I've got the votes,"" GOP Rep. Chuck McGrady of Hendersonville, the bill's chief Republican sponsor, told reporters Tuesday. The impasse worries state boosters because time is running out before the NCAA decides in the coming weeks whether HB2 should prevent North Carolina sites from hosting championship events through 2022. More than 130 event bids have been submitted from North Carolina, representing more than $250 million in potential economic impact, according to the North Carolina Sports Association. ""There is urgency in the air in Raleigh,"" Cooper wrote in a weekend online post. The NCAA already took several events away from North Carolina this academic year due to the controversy. The NBA also moved its All-Star game out of Charlotte and the Atlantic Coast Conference moved its football title game out of the city. HB2 requires transgender people to use restrooms in public buildings that correspond to the sex on their birth certificates. The law also blocked state antidiscrimination protections from covering sexual orientation and gender identity. Republicans approved the measure after the Charlotte City Council voted in February 2016 to allow transgender people to use public bathrooms aligned with their gender identity. Under the latest proposal, lawmakers would still control policy decisions over the use of multi-stall bathrooms in public buildings. The measure also would increase penalties for certain crimes that occur in public restrooms or locker rooms. Cooper said he believes a compromise can be worked out, but he can't support a section that could require local referenda on local ordinances that expand anti-discrimination protections for sexual orientation and gender identity. ""The referendum has always been a deal breaker for our side,"" said House Minority Leader Darren Jackson of Raleigh. ""We oppose putting people's civil rights directly on the ballot."" Cooper said Republican leaders, particularly GOP House Speaker Tim Moore, aren't at the negotiating table and have broken promises to Democrats. Moore fired back Monday, accusing the governor of sabotaging the compromise and urging Democrats not to commit to the bill. Two House Democrats have withdrawn as sponsors. McGrady said Tuesday he's ""not going to draw any lines in the sand"" concerning what can be changed. And Cooper spokeswoman Sadie Weiner wrote negotiating on the referendum provision ""would mean that the governor goes along with some provisions he doesn't like very much, but he's willing to do so for the sake of progress."" Any bill also must clear the Senate to reach Cooper's desk. The Human Rights Campaign and Equality North Carolina anchored a news conference Tuesday opposing the latest proposal, saying nothing but a complete HB2 repeal, with no restrictions, would get rid of the state's stain of discrimination. Business executives said the law is keeping North Carolina companies from attracting the best talent or attracting capital to grow. ""We have this massive black eye which is HB2,"" said Justin Miller, who leads a Raleigh-based startup company. Representatives of several state and regional business organizations joined the authors of the compromise measure for another news conference Tuesday. They praised the legislators for trying to kick start the conversation about repealing HB2. ""We think that it gives us a glimmer of hope,"" said Will Webb of the Charlotte Sports Foundation, which helped bring the NBA and ACC events to Charlotte.", -1647,2017/3/1,http://abcnews.go.com/Politics/fallen-navy-seals-widow-receives-standing-ovation-trumps/story?id=45819329,Fallen Navy SEAL's widow receives standing ovation during Trump's address,,"As she stood in the gallery of the House of Representatives Tuesday night, Carryn Owens, the widow of fallen U.S. Navy SEAL William ""Ryan"" Owens, got emotional. For nearly two minutes, lawmakers from around the country attending President Donald Trump's first address to a joint session of Congress, gave her a standing ovation as she teared up. ""Ryan died as he lived: a warrior, and a hero ""?battling against terrorism and securing our nation,"" Trump said. ""Ryan's legacy is etched into eternity. Thank you."" Widow of Navy SEAL Ryan Owens, killed in Yemen raid, receives standing ovation at #JointSession. ""ryan died as he lived: a warrior & a hero""?pic.twitter.com/RhDwS2CIqn The senior chief's death, during a raid in Yemen against al Qaeda last month, has sparked a firestorm of controversy. Ryan Owens' father, Bill, as well as Sen. John McCain, have reportedly questioned the president's choice to conduct the raid and McCain called it a failure, an assessment Trump rejected. Trump kept mostly to his prepared remarks tonight, but he did ad-lib in this moment. ""Ryan is looking down right now and I think he's very happy because I think he just broke a record,"" Trump said, turning toward Owens' widow, seated up in the executive gallery of the House chamber with the first lady. ""For as the Bible teaches us, there is no greater act of love than to lay down one's life for one's friends,"" Trump added. ""Ryan laid down his life for his friends, for his country, and for our freedom ""? we will never forget Ryan."" Trump also reiterated his stance that the raid was ""highly successful,"" quoting his defense secretary, James Mattis. ""I just spoke to our great General Mattis, just now, who reconfirmed that, and I quote, ""Ryan was a part of a highly successful raid that generated large amounts of vital intelligence that will lead to many more victories in the future against our enemy,'"" Trump said.", -1648,2017/2/28,http://abcnews.go.com/Politics/trump-responds-father-navy-seal-killed-yemen-raid/story?id=45798999,Trump responds to father of Navy SEAL killed in Yemen raid,,"President Trump responded to the father calling for an investigation of his Navy SEAL son's death in a Yemen military raid, with the president expressing sympathy for the service member's family but defending the mission as one ""that started before I got here."" ""This was something that they were looking at for a long time doing,"" Trump said in an interview on ""Fox & Friends"" that aired this morning. ""And according to Gen. [James] Mattis it was a very successful mission. They got tremendous amounts of information."" ""This was a mission that started before I got here,"" the president said. The January raid in Yemen resulted in the death of Navy SEAL William ""Ryan"" Owens, 36, and injuries to three other Navy SEALS. Fourteen militants were killed in the raid. U.S. Central Command also said in early February that ""civilian noncombatants likely were killed,"" which may have included children. Owens' father, Bill, told the Miami Herald in a recent interview that he did not want to meet Trump when the president attended Owens' dignified transfer at Dover Air Force Base in Delaware on Feb. 1. ""I told them I didn""t want to make a scene about it, but my conscience wouldn""t let me talk to him,""?Bill Owens told the Florida newspaper on Friday. Owens also called for an investigation into his son's death and additionally said he was troubled by Trump's treatment of the Khans, a Gold Star family of a Muslim soldier killed in Iraq. Trump said Tuesday, ""They explained what they wanted to do, the generals, who are very respected. My generals are the most respected we've had in many decades, I believe. And they lost Ryan."" Trump went on to say, ""I was at the airport when the casket came in, the body came in and it was a very sad with the family and it's a great family -- incredible wife and children. I met most of the family."" ""And I can understand people saying that. I would feel -- I would feel, what's worse? There is nothing worse,"" Trump said. White House press secretary Sean Spicer said during Monday's press briefing that the administration continues to be ""very comfortable"" with the Yemen raid. ""We're very comfortable with how the mission was executed and, you know, we'll let the Department of Defense go through that review process,"" Spicer said. Spicer added there will be a three-pronged investigation done by the Department of Defense. U.S. Central Command confirmed Sunday that what is called a 15-6 investigation into Owens' death is underway, which is standard when a deployed U.S. military service member dies. U.S. Central Command is also conducting a review known as a credibility assessment into civilian casualties during the raid. The president in the Fox News interview on Tuesday went after Arizona Sen. John McCain for his criticism of the Yemen mission. ""I felt badly when a young man dies, and John McCain said that was a failed mission,""?Trump said. ""I thought it was inappropriate that he goes to foreign soil and he criticizes our government.""?ABC News' Luis Martinez and Katherine Faulders contributed to this report.", -1649,2017/3/1,http://abcnews.go.com/Politics/yemen-raid-yielded-valuable-intelligence-us-official/story?id=45813699,"Yemen raid yielded 'valuable intelligence,' US official says",,"""Valuable intelligence""?was gleaned from the raid in Yemen that targeted a compound used by Al Qaeda in the Arabian Peninsula (AQAP) and left a Navy SEAL dead, according to a senior U.S. official. The official's comments were prompted by recent reports questioning whether any useful intelligence was gathered from the raid where Senior Chief William ""Ryan"" Owens was killed and and civilians were caught in the crossfire. The Jan. 29 raid on a compound in rural southern Yemen was intended as an intelligence gathering mission targeting Al Qaeda in the Arabian Peninsula (AQAP). The U.S. military has said that 14 AQAP fighters were killed in the raid, an ongoing U.S. Central Command review has determined that some civilians were also killed, including possibly children. Local reports in Yemen have said as many as 25 civilians may have been killed during the raid. According to the official, intelligence gathered during the raid has provided insights into AQAP's activities, particularly the terror group's recruiting, training techniques and explosives manufacturing. The official said the intelligence has providing information about who the terror group is targeting. Information obtained during the raid is still being used by U.S. intelligence. The official also noted that the raid targeted a compound used by known AQAP operatives, which would imply that good intelligence could be obtained at the location. The ferocity of the firefight was another indicator of the information they were protecting, the official said. In addition to the review of claims of civilian casualties the Navy is also conducting an investigation into the circumstances of Owens' death. Such investigations are routinely conducted for the deaths of any deployed U.S. military service member. An aircraft mishap review is also being conducted into the loss of a Marine MV-22 Osprey that was destroyed in the mission. Called in to medevac SEALs wounded in the raid, the aircraft experienced a ""hard landing"" that led to additional injuries among the aircrew. The Osprey was destroyed by a U.S. airstrike to prevent it from falling into AQAP hands.", -1650,2017/3/1,http://abcnews.go.com/Politics/kellyanne-conway-couchgate-meant-disrespect/story?id=45814210,Kellyanne Conway on 'couchgate:' 'I obviously meant no disrespect',,"Kellyanne Conway has broken her silence on Monday's social media-fueled scandal, ""couchgate."" The twittersphere lit up after a series of photos were released of President Donald Trump's adviser perched on her knees on an Oval Office couch with her feet behind her and her shoes on. Some photos show Conway leaning over to take a photo of leaders of historically black colleges and universities who had gathered in the Oval Office to meet with the president. The photos ignited a debate about decorum in the White House, and Conway's respect for the office of the president. ""Kellyanne Conway is treating the Oval Office like her own living room,"" tweeted actor George Takei, an outspoken Trump critic. ""Looks like she's settling in for a night of binge-watching Scandal. In an interview with Fox News Tuesday night, Conway explained, ""I was asked to take the picture. We had a crowded room. We never had so many people in the Oval Office in this young administration gathering of men women at one time to take a picture. There was literally nowhere to stand. The press had come in. A couple of them had asked me to take pictures and text it to them right away. And I did that. I just snapped at that angle. I needed to get the better angle ... Then I texted it to a few of them and then it was over in a matter of quick moments."" ""I, of course, respect the Office of the Pres & it's current occupant."" @KellyannePolls explains photo of her kneeling on Oval Office couch pic.twitter.com/WVaNt775jT Conway took issue with critics who questioned her Oval Office etiquette. ""I, of course, respect the office of the president and its current president,"" she said. ""I'm glad there is such a renewed interest in showing respect for the office of the president. I obviously meant no disrespect. I'm always amazed what actually qualifies as news on a day when there is so much of it.""", -1651,2017/3/1,http://abcnews.go.com/Politics/wireStory/lawmaker-trump-release-taxes-sides-gop-45812002,Lawmaker says Trump should release taxes but sides with GOP,,"Republican Rep. David Young ignited loud cheers from hundreds at an Iowa meeting last week when he said, ""Donald Trump should release his taxes,"" calling the move a ""no brainer."" Given the first chance to force the GOP president's hand, Young passed. The two-term, Des Moines-area lawmaker returned to Washington and sided with the Republican majority late Monday to block a Democratic attempt to force Trump to release his tax returns to Congress. Rep. Bill Pascrell, D-N.J., had proposed the resolution directing the House to ask for 10 years of Trump's tax returns and allow the House Ways and Means Committee to review them in private. Trump broke with most modern-day presidential candidates by refusing to release his tax returns, arguing that he was being audited. However, the IRS has said an audit would not prevent an individual from releasing the returns. The Republican-controlled House backed Majority Leader Kevin McCarthy's motion to postpone the resolution indefinitely on a near party-line vote of 229-185. An aide to Young dismissed Pascrell's measure, arguing it was not a serious legislative proposal. Taylor Mason said the congressman ""has publicly stated, while there is no legal requirement for the president to release his taxes, he personally believes he should per the longstanding voluntary tradition."" Mason said Pascrell's effort ""accomplished its intended purpose as a partisan stunt for political gain."" Last Thursday, under withering questioning from a sometimes angry audience, Young said that Trump releasing his tax returns to the public was a ""no brainer."" It was a well-documented moment for Young, a soft-spoken House member from a competitive congressional district that includes Democratic-leaning Des Moines and the heavily Republican suburbs and rural areas in Iowa's southwest. In the contentious meeting during the congressional recess, Young also said a wall along the entire U.S.-Mexican border, a Trump priority, was necessary and that Trump senior adviser Steve Bannon's ""ideas aren't permeating throughout Congress."" Young was elected to Congress after serving as chief of staff to Sen. Charles Grassley, R-Iowa. Two Republicans who were present did not join the majority in Monday's vote. Reps. Walter Jones of North Carolina, who often breaks with the GOP, and South Carolina's Mark Sanford, who has called on Trump to release his taxes, voted present. ""?This story has been corrected to say Young's district includes areas in southwest Iowa, not southeast.", -1652,2017/3/1,http://abcnews.go.com/Politics/trump-time-immigration-bill-open-giving-legal-status/story?id=45810351,"Trump: 'Time is right for immigration bill,' open to giving some legal status",,"President Donald Trump, who staked his campaign on a hard-line approach to illegal immigration, now says he is open to considering possible legal status for some undocumented immigrants as part of a compromise to overhaul the nation's immigration system. ""the time is right for an immigration bill, as long as there is compromise on both sides,""?Trump told news anchors and correspondents attending a White House luncheon today. The president is floating the idea ahead of his first address to a joint session of Congress tonight, signaling a willingness to negotiate on an issue that has pitted Democrats against some Republicans for years. It was not immediately clear whether the president would raise the issue in his speech. Trump indicated openness to moving beyond a strict focus on law enforcement to addressing the legal status of some of the estimated 11 million undocumented immigrants in the U.S. ""?including a possible path to citizenship for ""dREAMers,""?who were brought to the country illegally as children. ""they shouldn't be very worried. They are here illegally. They shouldn't be very worried. I do have a big heart. We're going to take care of everybody,""?Trump told ABC News' David Muir in his first televised White House interview in January. ""now we have criminals that are here. We have really bad people that are here. Those people have to be worried 'cause they're getting out. We're gonna get them out. We're gonna get 'em out fast,""?he added. Trump campaigned as a ""law and order""?candidate, vowing strict enforcement of existing immigration laws and sweeping effort to step up deportations. The Department of Homeland Security last week issued a directive to initiate stricter enforcement measures. The White House is also preparing to unveil a new, revised executive order restricting travel and immigration from seven majority Muslim countries after the original order was put on hold by a federal court. That order could come down as early as Wednesday. The president has said he is most sympathetic to the plight of ""DREAMers,"" saying at a press conference earlier this month that he finds it ""lery, very hard doing what the law says exactly to do."" ""I's a very difficult thing for me because, you know, I love these kids. I love kids,""?he said. Immigrant advocates reacted cautiously to the president's comments. ""We are not ready to praise him or Republicans,""?said Cesar Vargas, director of the Dream Action Coalition in a statement. ""Before Trump can be taken seriously, we need to see details.""?Congressional Hispanic Caucus chairwoman Rep. Michelle Lujan Grisham, a Democrat from New Mexico, said of Trump's openness to an immigration reform bill, ""We're been ready.""?ABC News' Ben Siegel contributed to this report.", -1653,2017/3/1,http://abcnews.go.com/Politics/trump-order-travel-immigration-expected-wednesday/story?id=45814211,New Trump order on travel and immigration expected Wednesday,,"The Trump administration plans to announce its revised executive order banning travel from several Muslim-majority countries Wednesday afternoon, multiple government officials tell ABC News. ABC News previously reported that a draft of the new executive order does not automatically reject refugees from Syria, and clarifies that green card holders and dual citizens of the U.S. and the seven previously identified countries -- Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen -- are exempt. The officials declined to discuss specific details of the new order, and one official said its language was still changing as of Tuesday afternoon, a notion that runs counter to claims last week by White House press secretary Sean Spicer that the order was ""finalized"" and was ""awaiting implementation."" ""What we are doing is now in the implementation phase of working with the respective departments and agencies to make sure that when we execute this, it's done in a manner that's flawless,"" Spicer said last Thursday. Officials also confirmed that the president plans to announce the new order from the Department of Justice alongside Attorney General Jeff Sessions and Secretary of Homeland Security John Kelly. Trump's previous order faced legal challenges almost immediately after its signing on January 27. A federal judge in Washington State issued a temporary restraining order halting the order on February 3, a move that was later upheld by the 9th Circuit Court of Appeals on February 9. ABC News' Cecilia Vega contributed to this report.", -1654,2017/3/1,http://abcnews.go.com/Politics/transgender-bathroom-case-supreme-court/story?id=45685519,What's next for the transgender bathroom case before the Supreme Court,,"Next month, the Supreme Court is scheduled to hear the case of Gavin Grimm, a transgender student, who has been seeking access to use the boys' bathroom at his high school. Attorneys on both sides are required to update the court on Wednesday. Last week, the Trump administration announced an effective rollback of an Obama administration policy that extended protections against sexual discrimination to people who identify as transgender -- throwing a potential wrench in Grimm's case before it heads to the high court. On behalf of Grimm, the American Civil Liberties Union (ACLU) sued Gloucester County School Board. The teen is expected to graduate from Gloucester High School in Virginia this year. Grimm's lawsuit argues that the school's bathroom policy is unconstitutional under the Fourteenth Amendment and violates Title IX, a federal law prohibiting sex discrimination by schools. At first, the school allowed him to use the boys' bathroom, but after receiving complaints, the school board adopted a new policy in 2014 when Grimm was a sophomore, according to the ACLU. ""I think what happened to Gavin in the fall of 2014, was absolutely horrible and I don""t think anyone should have to go through that,""?said the ACLU's Joshua Block, who is representing Grimm in the case. A district court sided with the school board and dismissed Grimm's claim under Title IX. Grimm appealed to the Fourth Circuit Court of Appeals, which sided with the teen. However, the Supreme Court has put a hold on the circuit court decision while it takes up the case. Meanwhile, in May 2016, the Obama administration issued federal guidance calling on all on public school districts nationwide to allow transgender students to use the bathroom that matches their gender identity. Citing Title IX, the letter from the Departments of Justice and Education said schools should not require a medical diagnosis, nor should they demand documentation reflecting the student's gender identity before taking steps to protect transgender students -- ""even in circumstances in which other students, parents, or community members raise objections."" That guidance was rescinded last week by the Trump administration, which said that the Obama administration's guidance did not explain how it was consistent with the law. In a letter sent to schools last Wednesday, the Trump-era Departments of Justice and Education said that the Obama directive caused confusion and lawsuits over its enforcement. Grimm's attorney said that the case has given the teen a ""sense of purpose."" ""Whether that's winning in court or through changing hearts and minds I think it's given him a sense that he isn""t going through all of this for nothing,""?said Block. The Supreme Court has requested that lawyers on both sides submit their views on how the case should proceed in light of the new guidance provided by the Departments of Justice and Education last week. Their letters are due at 2 p.m. Wednesday. Grimm's attorney said that while he's hopeful the court will side with them, he did not have any predictions on which way the court would rule. ""I don""t have gut feelings on the case anymore. I think each step of the way this case has defied expectations,"" said Block. ""�[I] think that anyone who thinks they can predict with confidence what the Supreme Court's going to do hasn""t been paying close enough attention.""?The attorney for the school district declined to comment ahead of filing the district's letter with the court. The Supreme Court could return the case to the lower court to evaluate Grimm's claim without the federal guidance or it could move ahead on evaluate the case based on his discrimination claim. The Obama administration guidance that's now been withdrawn was only one issue in the case. There's still the question of what Title IX means in terms of transgender students. ""[Grimm's] injury has not changed, and an important question remains about whether schools can discriminate against transgender students by singling them out for different bathroom rules,""?said Columbia University law professor Suzanne B. Goldberg. Goldberg added that ""the bottom line""?is that federal law prohibits sex discrimination which includes gender stereotyping. ""�[A]nother bottom line is that transgender students still need to go to the bathroom at school with or without the Obama administration guidance,""?she added. University of North Carolina law professor Maxine Eichner said that the Trump administration's withdrawal of the guidance is ""quite significant"" to the case because the lower court deferred to the Obama-era Department of education guidance on this issue in its ruling. Whether or not Title IX statute includes transgender status, is ""a lot more murky"" now that the Obama directive has been revoked, said Eichner. ABC News' Luke Barr, Erin Dooley and Jack Date contributed to this story.", -1655,2017/3/1,http://abcnews.go.com/US/attorney-general-warns-dangerous-trend-violence-us/story?id=45799962,Attorney general talks of sense 'we're in danger' from rising crime,,"President Trump's new attorney general, Jeff Sessions, said Tuesday there is ""a sense that we're in danger"" from rising crime. Crime has been falling for decades in the U.S., but Sessions told a conference of state attorneys general this morning in Washington, D.C., ""Now we are at a time, it seems to me, that crime is going back up again."" ""We've done a lot of good. We need to not give up on that progress,"" Sessions said to the National Association of Attorneys General in his first major remarks as Justice Department head. ""I do not believe that this pop in crime -- this increase in crime -- is necessarily an aberration, a one-time blip. I'm afraid it represents the beginning of a trend."" U.S. crime rates ""remain near historic lows,""?with murder rates half what they were in 1980 and violent crime rates cut by half since the early 1990s, according to Sessions' prepared remarks for the conference. ""But in the last two years, We're seen clear warning signs ""?like the first gusts of wind before a summer storm ""?that this progress is now at risk,""?the prepared speech said. FBI statistics showing a 3 percent uptick in violent crime and an 11 percent increase in murders from 2014 to 2015, which are the most recent federal numbers on full-year crime rates, the prepared remarks said. Last month, the FBI released preliminary numbers for the first half of 2016 showing a 5.3 percent increase in violent crime compared with the same period a year earlier. ""these numbers should trouble all of us,""?Sessions' prepared speech said. ""We must remember that these data represent real neighborhoods and real people whose safety and lives are at stake.""?The nation's opioid epidemic is helping to fuel gang violence in cities, with neighborhoods ""Caught in the crossfire,""?the attorney general's prepared remarks said, and a recent drop in federal prosecutions of gun and drug offenses for contributing to the rise in crime. ""�Under my leadership at the Department of Justice, this trend will end,""?Sessions' prepared remarks said. ""ouragents and prosecutors will prioritize cases against the most violent offenders and remove them from our streets so they can no longer do us harm.""?The prepared speech also expressed concern ""ghat something is changing in policing,""?with officers ""becoming more cautious""?in ""ghis age of viral videos and targeted killings of police.""?""�Unfortunately, in recent years law enforcement as a whole has been unfairly maligned and blamed for the unacceptable deeds of a few bad actors,""?the prepared remarks said. Consequently, officers are ""more reluctant to get out of their squad cars and do the hard but necessary work of up-close policing that builds trust and prevents violent crime,""?the prepared speech said. In the prepared remarks, Sessions announced the formation of a Justice Department task force to ""make sure we'r collecting good crime data""?and to help reduce crime across the country. It will include senior-level representatives of the FBI, the Drug Enforcement Administration, the U.S. Marshals Service, and the bureau of Alcohol, Tobacco, Firearms and Explosives. ", -1656,2017/3/1,http://abcnews.go.com/US/communities-cope-recent-anti-semitic-attacks-jewish-officials/story?id=45800345,"As communities cope with recent anti-Semitic attacks, Jewish officials urge action",,"After tombstones were found toppled at Jewish cemeteries in Missouri and Pennsylvania and nearly 100 Jewish Community Centers and schools nationwide received bomb threats, Jewish leaders are urging President Trump to take action. On Monday, 21 bomb threats were called in to 13 JCCs and eight Jewish schools in Alabama, Delaware, Florida, Indiana, Maryland, Michigan, New Jersey, New York, North Carolina, Pennsylvania, Rhode Island and Virginia, the JCC Association of North America said. No bombs were found at any locations. There have been 90 incidents this year alone, at 73 locations in 30 states and one Canadian province, the JCC Association said. The FBI and the Justice Department's civil rights division are investigating. While the threats were false, Jonathan Greenblatt, the CEO of the Anti-Defamation League, told ABC News the threats created ""terror"" for the people evacuated from the facilities ""?including preschool children, the elderly and teenagers ""?as well as their family members. ""This is absolutely abnormal, and it is totally unacceptable that anyone, anywhere, at any time could be terrorized because of their faith,"" he said. David Posner, the director of strategic performance at the JCC Association of North America, told ABC News that as far as the organization knows, ""the FBI has not yet determined who the perpetrators are, so we do not yet know what their motives are."" But he added that he sees a ""general rise in the level of intolerance in this nation now, and I think it gives the feeling that people can act with greater impunity."" Besides bomb threats, two Jewish cemeteries have been vandalized in one week. On Feb. 20, over 100 tombstones were found overturned at the Chesed Shel Emeth Society cemetery in University City, Missouri. On Sunday in Philadelphia, over 100 headstones were discovered toppled and cracked at the city's Mount Carmel Cemetery. Authorities are investigating both cases. Rabbi Yosef Goldman of Philadelphia's Temple Beth Zion""�Beth Israel recalled seeing ""row upon row of toppled tombstones"" at Mount Carmel Cemetery. ""Many of them weighed several hundred pounds,"" he said. ""What I saw was devastating."" Steve Rosenberg, an official with the Jewish Federation of Greater Philadelphia who visited the cemetery, said, ""It was clearly a deliberate act of violence and desecration."" ""It took a lot of effort and intention to commit this crime ... Headstones are very heavy, and some of them are gigantic ""?the size of a car,"" he added. ""This had to be a group of people that were here for a long time."" The Philadelphia Police Department announced Tuesday that the rewards for information leading to an arrest and conviction had risen to a total of $50,000, from an initial $13,000: the Anti-Defamation League, through the Mizel Family Foundation, is offering a $10,000 reward; councilman Allan Domb is offering a $12,000 reward, mayor Jim Kenney is offering a $15,000 reward, an anonymous donor is offering a $10,000 reward, and the Fraternal Order of Police Lodge #5 is offering a $3,000 Reward for information leading to an arrest only. Greenblatt said the anti-Semitism extends beyond cemetery vandalism and threats to JCCs to graffiti at synagogues and a ""tsunami of anti-Semitic slander on social media."" Religious attacks in the past week were also aimed at the Muslim community; investigators said a fire at a Florida mosque on Feb. 24 was intentionally set. Goldman and Greenblatt, who both noted a surge of anti-Semitism and hate crimes since the presidential election, pointed to the role of the Trump administration. ""We have not seen ""?until last week ""?our political leadership speak out in a strong way against these incidents,"" Greenblatt said. When anti-Semitism was not immediately condemned by the White House, ""extremists felt emboldened,"" he added. ""Words have consequences, and a lack of words have consequences,"" he said. On Feb. 21, Trump for the first time directly addressed recent incidents of anti-Semitism after he received backlash from various groups. Speaking at the National Museum of African American History and Culture in Washington, D.C., he called the recent JCC threats a ""painful and a very sad reminder of the work that still must be done to root out hate and prejudice and evil."" While Goldman said ""it will take more than a single statement"" from Trump ""to show that he is serious about combating the rise of anti-Semitism,"" Greenblatt said the president's statement was ""really appreciated."" He added, ""Now is the time to move from words to action. Now is the time for our leaders to not only speak out but to step up and apply the full force of the federal government to addressing anti-Semitism ... We're prepared to work with the administration to help make that happen."" Vice President Mike Pence visited the desecrated Missouri cemetery last week and condemned the act. MO's people are inspiring the nation w/ their compassion for the Jewish community. Thank you for showing the world what America is all about pic.twitter.com/PWTFLGqqz0 In a statement Monday, Posner of the JCC Association called on the FBI, the White House, the Justice Department, the Homeland Security Department, Congress and local officials to ""speak out forcefully against this scourge of anti-Semitism"" across the U.S. and to catch the ""perpetrators, who are trying to instill anxiety and fear in our communities."" Attorney General Jeff Sessions told reporters Monday, ""I have seen the Jewish synagogue attacks, threats and things, which is a very serious and disruptive practice. This Department of Justice will do what it can to assist in pushing back against that and prosecuting anybody who was a part of it."" Goldman said he prayed Sunday evening among the desecrated graves in Philadelphia but remains full of hope. He was joined by members of the community, including Muslims, Christians and a Quaker. ""In the Jewish tradition,"" Goldman said, ""the greatest act of love and kindness one can show is to see to the needs of the dead. It was touching to see all of these people show up to do whatever they could on behalf of those who were laid to rest."" ""It was extremely moving,"" he said. ""Faith amidst the darkness."" ABC News' Morgan Korn, Aaron Katersky, Mike Levine, Lindsey Jacobson and Jeff Swartz contributed to this report.", -1657,2017/3/1,http://www.cnn.com/2017/02/28/politics/trump-speech-fact-check/index.html,Trump speaks to Congress: CNN's Reality Check Team vets the claims,"(CNN)President Donald Trump on Tuesday addressed a joint session of Congress to outline his legislative agenda, and CNN's Reality Check Team was there to vet his claims.","The team of reporters, researchers and editors across CNN listened throughout the speech and analyzed key statements, rating them true, mostly true, true but misleading, or false. Crime Reality Check: Murder rate single-year increase By Ashley Killough and Jeremy Diamond, CNN ""The murder rate in 2015 experienced its largest single-year increase in nearly half a century,"" Trump said. It's been a fact he's struggled with both as president and on the campaign trail. Trump repeatedly said in the past that the murder rate is the highest it's been in roughly 45 years, which is not accurate. He got it right this time. Reality Check quick takes We rate his claim as true. The United States did experience its highest one-year increase in the murder rate in half a century between 2014 and 2015, according to FBI Uniform Crime Reports. One reason for the huge jump is that the murder rate in 2014 was so low, at 4.5 murders per 100,000 people. Still, even with the one-year increase, the murder rate for 2015 -- 4.9 per 100,000 people -- was lower than it was 45 years prior. In the 1990s, for example, the murder rate hovered between eight and 10 murders per 100,000 people. Trump added there were more than 4,000 people shot last year in Chicago, which is also true. In fact, there were 4,331 shooting victims, according to the Chicago Police Department. Pipelines Reality Check: Trump on pipeline jobs By Laura Koran, CNN Trump asserted his administration's support of the Keystone XL and Dakota Access pipelines are ""creating tens of thousands of jobs."" The remark wasn't the first time Trump touted the job-creating potential of the two controversial pipelines. Last month, when Trump signed an executive order paving the way for construction to move forward, he claimed Keystone XL alone would create 28,000 ""great construction jobs."" But how accurate are his estimates? A State Department report on the Keystone XL pipeline that was issued under the Obama administration found that there would be 3,900 direct construction jobs if it was built over one year, or 1,950 if the work was spread over two years -- far fewer than Trump estimated when signing the order. But the report also estimated there would be a total of 42,000 indirect jobs created -- for companies that sell products and services used to build the pipeline. However, once the pipeline opens, the State Department found it would only require 35 full-time permanent jobs to run it and 15 full-time temporary jobs. Dakota Access, for its part, estimates their pipeline would add 8,000 to 12,000 construction jobs, but only about 40 permanent positions. Those are the company's internal estimates. Moreover, most of the approximately 1,200-mile pipeline has already been built. The remaining portion is a 1.5-mile stretch that would cross under Lake Oahe, north of the Standing Rock Sioux Reservation. Verdict: True but misleading. By some estimates, construction of the two pipelines will create just north of 10,000 construction jobs and tens of thousands of indirect jobs. However, these are primarily temporary jobs. The number of permanent jobs created directly by the pipelines would be far lower. CNN's Rene Marsh and Chris Isidore contributed to this report. Wall Street Reality Check: Stock market's post-election rally By Matt Egan, CNNMoney Trump cheered the enormous rally on Wall Street set off by his victory. ""The stock market has gained almost $3 trillion in value since the election on November 8, a record,"" Trump said. The stock market is indeed on fire these days, in large part because of optimism about Trump's pro-business promises to cut taxes, roll back regulation and ramp up infrastructure spending. The 30-stock Dow has soared 2,500 points, or 13.5%, since the election. In terms of dollar figures, the American stock market has gained $2.4 trillion since November 8, according to S&P Dow Jones Indices. That's based on a broad measure known as the S&P United States Broad Market Index. This gauge hit a new record this week of nearly $25 trillion. However, Trump took a little too much liberty with the stock market increase, so our verdict is mostly true. Terrorism Reality Check: Trump on terror attacks By Laura Jarrett, CNN ""The vast majority of individuals convicted of terrorism and terrorism-related offenses since 9/11 came here from outside of our country,"" Trump said. He cited Justice Department data. We asked the DOJ for the figures but they have yet to provide them. By another measure, a 2016 report produced by then-Alabama Sen. Jeff Sessions, now Trump's attorney general, looks at individuals convicted in terror cases since 9/11. Using open sources, the report found that 380 out of 580 people convicted in terrorism and terrorism-related offenses since 9/11 were ""foreign-born."" But according to an examination by the Cato Institute, the methodology of Sessions' report was flawed because 42% were not even for terrorism offenses -- many of them were simply terrorism-related tips that didn't pan out. The New America Foundation also looked at trends over the last 15 years of who has carried out lethal terrorist attacks in the US. The data they examined showed it was not a ""vast majority"" from outside the country; it is, in fact, almost a 50-50 split. According to New America Foundation, about half were born in the US, and close to half were from abroad. Verdict: False. Lobbying ban Reality Check: Trump on five-year ban on lobbying by Executive Branch officials By Eve Bower, CNN Trump boasted that he has already imposed ""a five-year ban on lobbying by Executive Branch officials,"" fulfilling a campaign promise to ""drain the swamp."" The reality is not that sweeping. On January 28, 2017, Trump signed an executive order that restricts the future lobbying potential of all Trump appointees to Executive Branch offices. The order does indeed require appointees to sign a pledge that they will refrain from lobbying activities -- with the same agency where they were employed -- for five years following the end of their employment. But the order does not ban lobbying across the board. Rather, according to the nonprofit Citizens for Responsibility and Ethics in Washington (CREW), the scope of this ban covers only a portion of the activities that lobbyists (and former executive branch officials) have been known to pursue. Specifically, former appointees may be allowed to engage in activities that the existing law -- the Lobbying Disclosure Act -- does define as lobbying when dealing with members of their former agencies. The order also codifies the ultimate exception: a waiver capable of removing ""any restrictions contained in the pledge signed by such person."" According to CREW, under Trump's order, the need to disclose the granting of such a waiver is now ""completely discretionary"" and will not be granted by the Office of Management and Budget, but rather, by the {resident or his designee. We rate this claim true but misleading. Employment Reality Check: Trump on 94 million people out of the job market By Patrick Gillespie, CNN Trump cited a misleading statistic to cast the job market as weaker than it truly is. ""Tonight, as I outline the next steps we must take as a country, we must honestly acknowledge the circumstances we inherited. Ninety-four million Americans are out of the labor force,"" Trump said. Here's the real deal on that stat: Actually, some 95.1 million people are not in the labor force, but the vast majority of them don't want a job, according to the most recent quarterly data from the Atlanta Federal Reserve. Some 44.1 million are retired, 15.4 million are disabled, 12.9 million are taking care of a family member and another 15.5 million are in college or job training. They are listed as not wanting a job. But there are some people who want a job and can't find one. Roughly 5.5 million people who are not in the labor force have looked for work in the past year or so. And another 7.6 million Americans looked for a job in the last month -- they are considered in the labor force, but unemployed. We rate Trump's claim as true but misleading. Reality Check: Trump on job creation By Julia Horowitz, CNN Trump also credited enthusiasm about the economy for the creation of thousands of jobs since his victory in November. ""Since my election, Ford, Fiat-Chrysler, General Motors, Sprint, Softbank, Lockheed, Intel, Walmart and many others have announced that they will invest billions and billions of dollars in the United States and will create tens of thousands of new American jobs,"" he said. That's true at face value. But whether Trump actually sparked this flurry of job creation is more complicated. In many instances, the jobs promoted were part of previously announced plans. Fiat Chrysler's announcement of factory investment creating 2,000 jobs is the latest phase in an ""industrialization plan"" announced a year ago and a 2015 deal with the United Auto Workers union. Lockheed Martin said it would add 1,800 jobs to its F-35 fighter jet program but that is linked to production increases that have been in motion for years. A company executive said General Motors' commitment to invest in factories and create or retain 7,000 jobs had also been in the works for some time. In other cases, the jobs would likely have turned up no matter who's president. An Intel spokesperson said the company is investing in the Arizona factory because demand for the computer chip it will produce is picking up. At the same time, executives have credited Trump's pro-business posture -- particularly his commitment to tax reform and deregulation. ""As the US manufacturing base increases its competitiveness, we are able to further increase our investment, resulting in more jobs for America and better results for our owners,"" GM CEO Mary Barra said in the company's announcement. So while some of the jobs were going to be created even without the President intervening, there are signs he urged along the process in cases. We rate the claim mostly true. The F-35 fighter Reality Check: Bringing down the price of the F-35 jet fighter By Jon Ostrower Trump kicked off his speech claiming he's already negotiating great deals. ""We've saved taxpayers hundreds of millions of dollars by bringing down the price of the fantastic -- and it is a fantastic -- new F-35 jet fighter,"" he said. Here's the deal: The Defense Department and Lockheed Martin, manufacturer of the F-35 Lightning II Joint Strike Fighter, on February 4 agreed on a deal for 90 more stealth fighter aircraft with an $8.5 billion price tag. Lockheed credited Trump, who held meetings and calls with Lockheed's CEO Marillyn Hewson to discuss the purchase with helping to ""accelerate negotiations"" and ""drive down the price"" of the approximately $400 billion program. According to Lockheed, the latest agreement slashed $728 million (or roughly 8% less) compared to the Pentagon's last purchase. But that reflected the continued, and expected, decline in costs of the fighter as Lockheed Martin increased production. That final price agreement of $8.5 billion was not significantly different from what the Department of Defense and the fighter program's military leadership anticipated prior to the election. For that reason, we rate the claim as true but misleading. Defense spending Reality Check: Is Trump's defense spending increase one of the largest? By Jeanne Sahadi, CNN Trump characterized his proposal to increase the defense budget as ""one of the largest increases in national defense spending in American history."" His budget blueprint for 2018 will call for a 10% -- or $54 billion -- increase over the $549 billion set for next year. In terms of sheer dollars, Trump's $54 billion increase is one of the biggest, according to the Committee for a Responsible Federal Budget. But that's not a meaningful measure, CRFB notes, since ""$54 billion today is worth far less than $54 billion a century ago."" Percentage wise, his proposed increase isn't even in the top 10 since 1940, CRFB found. So is Trump's proposed increase really one of the largest in US history? It depends how it's measured. Verdict: True but misleading This story has been updated.", -1658,2017/3/1,http://www.cnn.com/2017/02/28/politics/donald-trump-congress-speech/index.html,Presidential Trump,"Washington (CNN)President Donald Trump reached for poetry and conjured a vision of common national purpose Tuesday during his first address to Congress, shifting his tone from the dark, searing approach of his previous big speeches to the nation.","Trump adopted a statesmanlike cadence, hitting notes of inspiration. For once, this most unorthodox of politicians struck a conventional presidential posture as he sought to stabilize his administration after a tumultuous five weeks in office. Though his language was more lofty and unifying than normal, Trump gave little quarter on the substance of his policies on issues ranging from trade, defense, immigration and counterterrorism. The result was a populist, nationalistic prescription that he said would yield ""a new chapter of American greatness."" 7 in 10 Speech-Watchers Say Trump Boosted Optimism ""From now on, America will be empowered by our aspirations, not burdened by our fears, inspired by the future, not bound by failures of the past, and guided by a vision, not blinded by our doubts,"" Trump said, from the Speaker's rostrum in the House of Representatives. During a vitriolic campaign and a raucous start to his term, Trump has done little to reach beyond his base of deeply committed voters who revile the kind of political elites that the President was staring down as he spoke on Tuesday. But, beset by the lowest approval ratings of any new commander-in-chief of modern times, Trump made a palpable effort to court voters who didn't support him with an offer to lay down the battles of the past. In fact, his address ticked almost all the boxes of a traditional State of the Union style appearance. 'Embrace this renewal' ""I am asking all citizens to embrace this renewal of the American spirit. I am asking all members of Congress to join me in dreaming big, and bold, and daring things for our country,"" Trump said. ""I am asking everyone watching tonight to seize this moment. Believe in yourselves. Believe in your future. And believe, once more, in America."" It was an uplifting and unifying message that many Americans have rarely heard from Trump, who argued ""the time for trivial fights is behind us."" While Trump is not solely responsible for the coarsening of political life, his brash, Twitter-fueled approach has rocked the nation's politics. The question now is whether the President was previewing a new, more sober political persona or whether he will return to his old habits. The change in his tone was evident from the first moments of his speech when he condemned the recent spate of threats against Jewish community centers, vandalism at Jewish cemeteries and the shooting of two Indian men in Kansas. Donald Trump's Congress speech (full text) He said the violence was a reminder that ""while we may be a nation divided on policies, we are a country that stands united in condemning hate and evil in all its very ugly forms."" The comment followed heavy criticism of Trump for not addressing such violence. The new President entered the House chamber to thunderous applause and spoke of the ""renewal of the American spirit."" A senior White House official said Trump wrote the speech himself with input from almost every member of his presidential team of advisers. In the emotional high point of the speech, Trump turned to the first lady's box and acknowledged Carryn Owens, the widow of a US Navy Special operator, William ""Ryan"" Owens, who was killed in an anti-terror raid in Yemen in the first major military engagement of the new administration. Van Jones: The moment Trump became President ""Ryan died as he lived: a warrior, and a hero -- battling against terrorism and securing our nation,"" Trump said as the House floor erupted in a prolonged standing ovation. Owens, with tears streaming down her face, looked to the Heavens and joined in the applause. Less explosive style welcomed His less explosive presentation style was welcomed by many lawmakers. ""Donald Trump did indeed become presidential tonight, and I think we'll see that reflected in a higher approval rating,"" Senate Majority Leader Mitch McConnell, R-Kentucky, said on CNN after the speech. ""The Donald Trump I heard tonight was a lot more focused and disciplined and subdued, and it was a lot more uneventful in a good way,"" moderate House Republican Charlie Dent told CNN's Tom LoBianco. ""There were not a lot of distractions tonight, this speech was much better than the inaugural speech."" North Dakota Democratic Sen. Heidi Heitkamp, who is up for re-election next year in a state that Trump carried, said the President delivered a ""very good speech."" ""It was delivered with a sense of 'this is who I am, this is what I want to accomplish' and I think the goals are great,"" she said. ""How we get there is the $10,000 question."" Senate Democratic Leader Chuck Schumer said on CNN that Trump's ""speeches and the realities are very, very far apart."" ""Until his reality catches up with his speeches, he's got big trouble,"" Schumer said. The looks on lawmakers' faces during Trump's speech Though his rhetoric was soaring, Trump still struck hardline notes. He overruled national security adviser H.R. McMaster, according to a senior administration official, to warn of ""radical Islamic terrorism."" Hitting themes familiar from his campaign, Trump vowed to restore ""integrity and the rule of law to our borders."" ""We will soon begin the construction of a great, great wall along our southern border,"" Trump said, drawing Republican cheers even as he didn't mention his earlier promise that Mexico would pay for construction. ""As we speak tonight, we are removing gang members, drug dealers, and criminals that threaten our communities and prey on our very innocent citizens. Bad ones are going out as I speak, and as I promised throughout the campaign"" Sending shockwaves through Washington While such language could please conservatives, Trump sent shockwaves through Washington earlier Tuesday by telling reporters he wants to pass an immigration reform bill that could grant legal status to millions of undocumented immigrants living in the US. ""The time is right for an immigration bill as long as there is compromise on both sides,"" Trump said at the White House. But he did not provide further clarity on that position during his address. So far there is little sign that the new President's legislative agenda, which includes repealing and replacing Obamacare, a big tax overhaul, and a $1 trillion infrastructure program, is anywhere near coming to fruition. That explains why he devoted a considerable portion of the address to touting his achievements so far. He argued that his election alone had convinced big firms like Ford, Sprint, SoftBank and Intel to invest billions of job-creating dollars in the US. He noted that stocks have put on $3 trillion in value since his election and claimed to have saved hundreds of millions of taxpayer dollars, including on the new F-35 jet fighter. Trump said he also kept his word by cutting government regulations, clearing the way for the Keystone and Dakota Access pipelines and pulling out of the Trans Pacific Partnership trade deal. The President also laid down clear principles for the repeal and replacement of Obamacare, a key policy goal that is threatening to become overwhelmed by the complications of writing health policy. A new system, he said, must retain coverage for Americans with pre-existing conditions, should offer plans backed by tax credits and expanded health savings accounts and should preserve Medicaid expansion in the states. Trump also vowed to bring down the high price of drugs ""immediately."" 'Obamacare is collapsing' ""Obamacare is collapsing -- and we must act decisively to protect all Americans,"" he said, ""Action is not a choice -- it is a necessity."" House Democratic Leader Nancy Pelosi, who was instrumental in passing the law, shook her head as Trump condemned it. The President also signaled action on another key piece of his agenda -- tax reform, promising ""massive"" relief for the middle classes and cuts in corporate tax. Yet Trump also pushed for his $1 trillion infrastructure plan and spoke of his effort to boost military spending. Given that he has also said he will protect entitlements, questions will be asked about how the administration can finance its ambitious plans. Trump's speech was closely watched around the world, given that his pronouncements on foreign policy have caused alarm and confusion. There were, however, few details on national security policy to clear up misconceptions. Trump recommitted himself to a strong ""America First"" foreign policy, but also backed NATO -- as long as its members pay their dues -- while bemoaning trillions of dollars the US has spent in foreign wars abroad. ""My job is not to represent the world. My job is to represent the United States of America,"" said Trump. ""But we know that America is better off when there is less conflict, not more. We must learn from the mistakes of the past. We have seen the war and the destruction that have ravaged and raged throughout the world."" Despite some positive reviews for Trump in the room on Tuesday, the official Democratic response by former Kentucky Gov. Steven Beshear accused the President of deserting the working people who voted for him by picking a cabinet of millionaires and billionaires. ""That's not being our champion. That's being Wall Street's champion,"" Beshear said. ""Real leaders don't spread derision and division. Real leaders strengthen, they unify, they partner, and they offer real solutions instead of ultimatums and blame,"" said Beshear, accusing Trump of waging war on refugees and immigrants and endangering US security by reaching out to Russia.", -1659,2017/3/1,http://www.cnn.com/2017/02/28/politics/donald-trump-speech-transcript-full-text/index.html,Donald Trump's Congress speech (full text),PRESIDENT DONALD J. TRUMP'S ADDRESS TO A JOINT SESSION OF CONGRESS,"Remarks as prepared for delivery TO THE CONGRESS OF THE UNITED STATES: Mr. Speaker, Mr. Vice President, Members of Congress, the First Lady of the United States, and Citizens of America: Tonight, as we mark the conclusion of our celebration of Black History Month, we are reminded of our Nation's path toward civil rights and the work that still remains. Recent threats targeting Jewish Community Centers and vandalism of Jewish cemeteries, as well as last week's shooting in Kansas City, remind us that while we may be a Nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms. Each American generation passes the torch of truth, liberty and justice --- in an unbroken chain all the way down to the present. That torch is now in our hands. And we will use it to light up the world. I am here tonight to deliver a message of unity and strength, and it is a message deeply delivered from my heart. A new chapter of American Greatness is now beginning. A new national pride is sweeping across our Nation. And a new surge of optimism is placing impossible dreams firmly within our grasp. What we are witnessing today is the Renewal of the American Spirit. Our allies will find that America is once again ready to lead. All the nations of the world -- friend or foe -- will find that America is strong, America is proud, and America is free. In 9 years, the United States will celebrate the 250th anniversary of our founding -- 250 years since the day we declared our Independence. It will be one of the great milestones in the history of the world. But what will America look like as we reach our 250th year? What kind of country will we leave for our children? I will not allow the mistakes of recent decades past to define the course of our future. For too long, we've watched our middle class shrink as we've exported our jobs and wealth to foreign countries. We've financed and built one global project after another, but ignored the fates of our children in the inner cities of Chicago, Baltimore, Detroit -- and so many other places throughout our land. We've defended the borders of other nations, while leaving our own borders wide open, for anyone to cross -- and for drugs to pour in at a now unprecedented rate. And we've spent trillions of dollars overseas, while our infrastructure at home has so badly crumbled. Then, in 2016, the earth shifted beneath our feet. The rebellion started as a quiet protest, spoken by families of all colors and creeds --- families who just wanted a fair shot for their children, and a fair hearing for their concerns. But then the quiet voices became a loud chorus -- as thousands of citizens now spoke out together, from cities small and large, all across our country. Finally, the chorus became an earthquake -- and the people turned out by the tens of millions, and they were all united by one very simple, but crucial demand, that America must put its own citizens first ... because only then, can we truly MAKE AMERICA GREAT AGAIN. Dying industries will come roaring back to life. Heroic veterans will get the care they so desperately need. Our military will be given the resources its brave warriors so richly deserve. Crumbling infrastructure will be replaced with new roads, bridges, tunnels, airports and railways gleaming across our beautiful land. Our terrible drug epidemic will slow down and ultimately, stop. And our neglected inner cities will see a rebirth of hope, safety, and opportunity. Above all else, we will keep our promises to the American people. It's been a little over a month since my inauguration, and I want to take this moment to update the Nation on the progress I've made in keeping those promises. Since my election, Ford, Fiat-Chrysler, General Motors, Sprint, Softbank, Lockheed, Intel, Walmart, and many others, have announced that they will invest billions of dollars in the United States and will create tens of thousands of new American jobs. The stock market has gained almost three trillion dollars in value since the election on November 8th, a record. We've saved taxpayers hundreds of millions of dollars by bringing down the price of the fantastic new F-35 jet fighter, and will be saving billions more dollars on contracts all across our Government. We have placed a hiring freeze on non-military and non-essential Federal workers. We have begun to drain the swamp of government corruption by imposing a 5 year ban on lobbying by executive branch officials --- and a lifetime ban on becoming lobbyists for a foreign government. We have undertaken a historic effort to massively reduce job""�crushing regulations, creating a deregulation task force inside of every Government agency; imposing a new rule which mandates that for every 1 new regulation, 2 old regulations must be eliminated; and stopping a regulation that threatens the future and livelihoods of our great coal miners. We have cleared the way for the construction of the Keystone and Dakota Access Pipelines -- thereby creating tens of thousands of jobs -- and I've issued a new directive that new American pipelines be made with American steel. We have withdrawn the United States from the job-killing Trans-Pacific Partnership. With the help of Prime Minister Justin Trudeau, we have formed a Council with our neighbors in Canada to help ensure that women entrepreneurs have access to the networks, markets and capital they need to start a business and live out their financial dreams. To protect our citizens, I have directed the Department of Justice to form a Task Force on Reducing Violent Crime. I have further ordered the Departments of Homeland Security and Justice, along with the Department of State and the Director of National Intelligence, to coordinate an aggressive strategy to dismantle the criminal cartels that have spread across our Nation. We will stop the drugs from pouring into our country and poisoning our youth -- and we will expand treatment for those who have become so badly addicted. At the same time, my Administration has answered the pleas of the American people for immigration enforcement and border security. By finally enforcing our immigration laws, we will raise wages, help the unemployed, save billions of dollars, and make our communities safer for everyone. We want all Americans to succeed --- but that can't happen in an environment of lawless chaos. We must restore integrity and the rule of law to our borders. For that reason, we will soon begin the construction of a great wall along our southern border. It will be started ahead of schedule and, when finished, it will be a very effective weapon against drugs and crime. As we speak, we are removing gang members, drug dealers and criminals that threaten our communities and prey on our citizens. Bad ones are going out as I speak tonight and as I have promised. To any in Congress who do not believe we should enforce our laws, I would ask you this question: what would you say to the American family that loses their jobs, their income, or a loved one, because America refused to uphold its laws and defend its borders? Our obligation is to serve, protect, and defend the citizens of the United States. We are also taking strong measures to protect our Nation from Radical Islamic Terrorism. According to data provided by the Department of Justice, the vast majority of individuals convicted for terrorism-related offenses since 9/11 came here from outside of our country. We have seen the attacks at home --- from Boston to San Bernardino to the Pentagon and yes, even the World Trade Center. We have seen the attacks in France, in Belgium, in Germany and all over the world. It is not compassionate, but reckless, to allow uncontrolled entry from places where proper vetting cannot occur. Those given the high honor of admission to the United States should support this country and love its people and its values. We cannot allow a beachhead of terrorism to form inside America -- we cannot allow our Nation to become a sanctuary for extremists. That is why my Administration has been working on improved vetting procedures, and we will shortly take new steps to keep our Nation safe -- and to keep out those who would do us harm. As promised, I directed the Department of Defense to develop a plan to demolish and destroy ISIS -- a network of lawless savages that have slaughtered Muslims and Christians, and men, women, and children of all faiths and beliefs. We will work with our allies, including our friends and allies in the Muslim world, to extinguish this vile enemy from our planet. I have also imposed new sanctions on entities and individuals who support Iran's ballistic missile program, and reaffirmed our unbreakable alliance with the State of Israel. Finally, I have kept my promise to appoint a Justice to the United States Supreme Court -- from my list of 20 judges -- who will defend our Constitution. I am honored to have Maureen Scalia with us in the gallery tonight. Her late, great husband, Antonin Scalia, will forever be a symbol of American justice. To fill his seat, we have chosen Judge Neil Gorsuch, a man of incredible skill, and deep devotion to the law. He was confirmed unanimously to the Court of Appeals, and I am asking the Senate to swiftly approve his nomination. Tonight, as I outline the next steps we must take as a country, we must honestly acknowledge the circumstances we inherited. Ninety-four million Americans are out of the labor force. Over 43 million people are now living in poverty, and over 43 million Americans are on food stamps. More than 1 in 5 people in their prime working years are not working. We have the worst financial recovery in 65 years. In the last 8 years, the past Administration has put on more new debt than nearly all other Presidents combined. We've lost more than one-fourth of our manufacturing jobs since NAFTA was approved, and we've lost 60,000 factories since China joined the World Trade Organization in 2001. Our trade deficit in goods with the world last year was nearly $800 billion dollars. And overseas, we have inherited a series of tragic foreign policy disasters. Solving these, and so many other pressing problems, will require us to work past the differences of party. It will require us to tap into the American spirit that has overcome every challenge throughout our long and storied history. But to accomplish our goals at home and abroad, we must restart the engine of the American economy -- making it easier for companies to do business in the United States, and much harder for companies to leave. Right now, American companies are taxed at one of the highest rates anywhere in the world. My economic team is developing historic tax reform that will reduce the tax rate on our companies so they can compete and thrive anywhere and with anyone. At the same time, we will provide massive tax relief for the middle class. We must create a level playing field for American companies and workers. Currently, when we ship products out of America, many other countries make us pay very high tariffs and taxes -- but when foreign companies ship their products into America, we charge them almost nothing. I just met with officials and workers from a great American company, Harley-Davidson. In fact, they proudly displayed five of their magnificent motorcycles, made in the USA, on the front lawn of the White House. At our meeting, I asked them, how are you doing, how is business? They said that it's good. I asked them further how they are doing with other countries, mainly international sales. They told me -- without even complaining because they have been mistreated for so long that they have become used to it -- that it is very hard to do business with other countries because they tax our goods at such a high rate. They said that in one case another country taxed their motorcycles at 100 percent. They weren't even asking for change. But I am. I believe strongly in free trade but it also has to be FAIR TRADE. The first Republican President, Abraham Lincoln, warned that the ""abandonment of the protective policy by the American Government [will] produce want and ruin among our people."" Lincoln was right -- and it is time we heeded his words. I am not going to let America and its great companies and workers, be taken advantage of anymore. I am going to bring back millions of jobs. Protecting our workers also means reforming our system of legal immigration. The current, outdated system depresses wages for our poorest workers, and puts great pressure on taxpayers. Nations around the world, like Canada, Australia and many others --- have a merit-based immigration system. It is a basic principle that those seeking to enter a country ought to be able to support themselves financially. Yet, in America, we do not enforce this rule, straining the very public resources that our poorest citizens rely upon. According to the National Academy of Sciences, our current immigration system costs America's taxpayers many billions of dollars a year. Switching away from this current system of lower-skilled immigration, and instead adopting a merit-based system, will have many benefits: it will save countless dollars, raise workers' wages, and help struggling families --- including immigrant families --- enter the middle class. I believe that real and positive immigration reform is possible, as long as we focus on the following goals: to improve jobs and wages for Americans, to strengthen our nation's security, and to restore respect for our laws. If we are guided by the well-being of American citizens then I believe Republicans and Democrats can work together to achieve an outcome that has eluded our country for decades. Another Republican President, Dwight D. Eisenhower, initiated the last truly great national infrastructure program --- the building of the interstate highway system. The time has come for a new program of national rebuilding. America has spent approximately six trillion dollars in the Middle East, all this while our infrastructure at home is crumbling. With this six trillion dollars we could have rebuilt our country --- twice. And maybe even three times if we had people who had the ability to negotiate. To launch our national rebuilding, I will be asking the Congress to approve legislation that produces a $1 trillion investment in the infrastructure of the United States -- financed through both public and private capital --- creating millions of new jobs. This effort will be guided by two core principles: Buy American, and Hire American. Tonight, I am also calling on this Congress to repeal and replace Obamacare with reforms that expand choice, increase access, lower costs, and at the same time, provide better Healthcare. Mandating every American to buy government-approved health insurance was never the right solution for America. The way to make health insurance available to everyone is to lower the cost of health insurance, and that is what we will do. Obamacare premiums nationwide have increased by double and triple digits. As an example, Arizona went up 116 percent last year alone. Governor Matt Bevin of Kentucky just said Obamacare is failing in his State -- it is unsustainable and collapsing. One third of counties have only one insurer on the exchanges --- leaving many Americans with no choice at all. Remember when you were told that you could keep your doctor, and keep your plan? We now know that all of those promises have been broken. Obamacare is collapsing --- and we must act decisively to protect all Americans. Action is not a choice --- it is a necessity. So I am calling on all Democrats and Republicans in the Congress to work with us to save Americans from this imploding Obamacare disaster. Here are the principles that should guide the Congress as we move to create a better healthcare system for all Americans: First, we should ensure that Americans with pre-existing conditions have access to coverage, and that we have a stable transition for Americans currently enrolled in the healthcare exchanges. Secondly, we should help Americans purchase their own coverage, through the use of tax credits and expanded Health Savings Accounts --- but it must be the plan they want, not the plan forced on them by the Government. Thirdly, we should give our great State Governors the resources and flexibility they need with Medicaid to make sure no one is left out. Fourthly, we should implement legal reforms that protect patients and doctors from unnecessary costs that drive up the price of insurance -- and work to bring down the artificially high price of drugs and bring them down immediately. Finally, the time has come to give Americans the freedom to purchase health insurance across State lines --- creating a truly competitive national marketplace that will bring cost way down and provide far better care. Everything that is broken in our country can be fixed. Every problem can be solved. And every hurting family can find healing, and hope. Our citizens deserve this, and so much more --- so why not join forces to finally get it done? On this and so many other things, Democrats and Republicans should get together and unite for the good of our country, and for the good of the American people. My administration wants to work with members in both parties to make childcare accessible and affordable, to help ensure new parents have paid family leave, to invest in women's health, and to promote clean air and clear water, and to rebuild our military and our infrastructure. True love for our people requires us to find common ground, to advance the common good, and to cooperate on behalf of every American child who deserves a brighter future. An incredible young woman is with us this evening who should serve as an inspiration to us all. Today is Rare Disease day, and joining us in the gallery is a Rare Disease Survivor, Megan Crowley. Megan was diagnosed with Pompe Disease, a rare and serious illness, when she was 15 months old. She was not expected to live past 5. On receiving this news, Megan's dad, John, fought with everything he had to save the life of his precious child. He founded a company to look for a cure, and helped develop the drug that saved Megan's life. Today she is 20 years old -- and a sophomore at Notre Dame. Megan's story is about the unbounded power of a father's love for a daughter. But our slow and burdensome approval process at the Food and Drug Administration keeps too many advances, like the one that saved Megan's life, from reaching those in need. If we slash the restraints, not just at the FDA but across our Government, then we will be blessed with far more miracles like Megan. In fact, our children will grow up in a Nation of miracles. But to achieve this future, we must enrich the mind --- and the souls --- of every American child. Education is the civil rights issue of our time. I am calling upon Members of both parties to pass an education bill that funds school choice for disadvantaged youth, including millions of African-American and Latino children. These families should be free to choose the public, private, charter, magnet, religious or home school that is right for them. Joining us tonight in the gallery is a remarkable woman, Denisha Merriweather. As a young girl, Denisha struggled in school and failed third grade twice. But then she was able to enroll in a private center for learning, with the help of a tax credit scholarship program. Today, she is the first in her family to graduate, not just from high school, but from college. Later this year she will get her masters degree in social work. We want all children to be able to break the cycle of poverty just like Denisha. But to break the cycle of poverty, we must also break the cycle of violence. The murder rate in 2015 experienced its largest single-year increase in nearly half a century. In Chicago, more than 4,000 people were shot last year alone --- and the murder rate so far this year has been even higher. This is not acceptable in our society. Every American child should be able to grow up in a safe community, to attend a great school, and to have access to a high-paying job. But to create this future, we must work with --- not against --- the men and women of law enforcement. We must build bridges of cooperation and trust --- not drive the wedge of disunity and division. Police and sheriffs are members of our community. They are friends and neighbors, they are mothers and fathers, sons and daughters -- and they leave behind loved ones every day who worry whether or not they'll come home safe and sound. We must support the incredible men and women of law enforcement. And we must support the victims of crime. I have ordered the Department of Homeland Security to create an office to serve American Victims. The office is called VOICE --- Victims Of Immigration Crime Engagement. We are providing a voice to those who have been ignored by our media, and silenced by special interests. Joining us in the audience tonight are four very brave Americans whose government failed them. Their names are Jamiel Shaw, Susan Oliver, Jenna Oliver, and Jessica Davis. Jamiel's 17-year-old son was viciously murdered by an illegal immigrant gang member, who had just been released from prison. Jamiel Shaw Jr. was an incredible young man, with unlimited potential who was getting ready to go to college where he would have excelled as a great quarterback. But he never got the chance. His father, who is in the audience tonight, has become a good friend of mine. Also with us are Susan Oliver and Jessica Davis. Their husbands --- Deputy Sheriff Danny Oliver and Detective Michael Davis --- were slain in the line of duty in California. They were pillars of their community. These brave men were viciously gunned down by an illegal immigrant with a criminal record and two prior deportations. Sitting with Susan is her daughter, Jenna. Jenna: I want you to know that your father was a hero, and that tonight you have the love of an entire country supporting you and praying for you. To Jamiel, Jenna, Susan and Jessica: I want you to know --- we will never stop fighting for justice. Your loved ones will never be forgotten, we will always honor their memory. Finally, to keep America Safe we must provide the men and women of the United States military with the tools they need to prevent war and --- if they must --- to fight and to win. I am sending the Congress a budget that rebuilds the military, eliminates the Defense sequester, and calls for one of the largest increases in national defense spending in American history. My budget will also increase funding for our veterans. Our veterans have delivered for this Nation --- and now we must deliver for them. The challenges we face as a Nation are great. But our people are even greater. And none are greater or braver than those who fight for America in uniform. We are blessed to be joined tonight by Carryn Owens, the widow of a U.S. Navy Special Operator, Senior Chief William ""Ryan"" Owens. Ryan died as he lived: a warrior, and a hero --- battling against terrorism and securing our Nation. I just spoke to General Mattis, who reconfirmed that, and I quote, ""Ryan was a part of a highly successful raid that generated large amounts of vital intelligence that will lead to many more victories in the future against our enemies."" Ryan's legacy is etched into eternity. For as the Bible teaches us, there is no greater act of love than to lay down one's life for one's friends. Ryan laid down his life for his friends, for his country, and for our freedom --- we will never forget him. To those allies who wonder what kind of friend America will be, look no further than the heroes who wear our uniform. Our foreign policy calls for a direct, robust and meaningful engagement with the world. It is American leadership based on vital security interests that we share with our allies across the globe. We strongly support NATO, an alliance forged through the bonds of two World Wars that dethroned fascism, and a Cold War that defeated communism. But our partners must meet their financial obligations. And now, based on our very strong and frank discussions, they are beginning to do just that. We expect our partners, whether in NATO, in the Middle East, or the Pacific --- to take a direct and meaningful role in both strategic and military operations, and pay their fair share of the cost. We will respect historic institutions, but we will also respect the sovereign rights of nations. Free nations are the best vehicle for expressing the will of the people --- and America respects the right of all nations to chart their own path. My job is not to represent the world. My job is to represent the United States of America. But we know that America is better off, when there is less conflict -- not more. We must learn from the mistakes of the past --- we have seen the war and destruction that have raged across our world. The only long-term solution for these humanitarian disasters is to create the conditions where displaced persons can safely return home and begin the long process of rebuilding. America is willing to find new friends, and to forge new partnerships, where shared interests align. We want harmony and stability, not war and conflict. We want peace, wherever peace can be found. America is friends today with former enemies. Some of our closest allies, decades ago, fought on the opposite side of these World Wars. This history should give us all faith in the possibilities for a better world. Hopefully, the 250th year for America will see a world that is more peaceful, more just and more free. On our 100th anniversary, in 1876, citizens from across our Nation came to Philadelphia to celebrate America's centennial. At that celebration, the country's builders and artists and inventors showed off their creations. Alexander Graham Bell displayed his telephone for the first time. Remington unveiled the first typewriter. An early attempt was made at electric light. Thomas Edison showed an automatic telegraph and an electric pen. Imagine the wonders our country could know in America's 250th year. Think of the marvels we can achieve if we simply set free the dreams of our people. Cures to illnesses that have always plagued us are not too much to hope. American footprints on distant worlds are not too big a dream. Millions lifted from welfare to work is not too much to expect. And streets where mothers are safe from fear -- schools where children learn in peace -- and jobs where Americans prosper and grow -- are not too much to ask. When we have all of this, we will have made America greater than ever before. For all Americans. This is our vision. This is our mission. But we can only get there together. We are one people, with one destiny. We all bleed the same blood. We all salute the same flag. And we are all made by the same God. And when we fulfill this vision; when we celebrate our 250 years of glorious freedom, we will look back on tonight as when this new chapter of American Greatness began. The time for small thinking is over. The time for trivial fights is behind us. We just need the courage to share the dreams that fill our hearts. The bravery to express the hopes that stir our souls. And the confidence to turn those hopes and dreams to action. From now on, America will be empowered by our aspirations, not burdened by our fears --- inspired by the future, not bound by the failures of the past --- and guided by our vision, not blinded by our doubts. I am asking all citizens to embrace this Renewal of the American Spirit. I am asking all members of Congress to join me in dreaming big, and bold and daring things for our country. And I am asking everyone watching tonight to seize this moment and -- Believe in yourselves. Believe in your future. And believe, once more, in America. Thank you, God bless you, and God Bless these United States.", -1660,2017/3/1,http://www.cnn.com/2017/03/01/opinions/trump-speech-to-congress-reaction-opinion-roundup/index.html,Trump's speech: How'd he do?,(CNN)CNN Opinion invited commentators to weigh in on President Trump's speech to Congress Tuesday night. The views expressed are theirs.,"Eric Liu: A master of symbols over substance In his first presidential address to Congress, Donald Trump tonight reminded us that he is a master of symbols over substance. And he reminded us as well that this is a pretty effective formula for success in American politics. From his opening (if belated) words condemning recent acts of anti-Semitism to his promises to cut two regulations for every new one created to his highlighting the widow of a Navy SEAL, Trump dealt mainly in rhetorical gestures. But people who criticize Trump for dealing in such gestures and for offering few specifics forget that public leadership depends on symbols. More than that, it depends on setting a simple vision and animating it with symbols and with stories. Like it or not, Trump is good at that. This speech was his most effective moment as president. It played to his natural strengths -- performance and theatricality -- while keeping his liabilities, like cynical incuriosity and casual cruelty, at bay. More than that, with talk of infrastructure investment and hints at immigration reform, it showed his willingness to keep both left and right off-balance. It hinted at the trouble Democrats would be in if Trump could ever sustain discipline. Unfortunately for him, the rest of his job requires him to face the world in its actual complexity -- and to deliver. The daily grind of governing will likely reveal tonight's Trump to be the exception rather than the rule. ""The time for trivial fights is behind us,"" he said. But shortly afterward, he regained access to his Twitter account. Eric Liu is founder of Citizen University and executive director of the Aspen Institute Citizenship & American Identity Program. His books include ""A Chinaman's Chance"" and ""The Gardens of Democracy."" He was a White House speechwriter and policy adviser for President Bill Clinton. Follow him on Twitter: @ericpliu. Jen Psaki: New tone, but no new clarity It is safe to say there has been no ""joint session"" speech in modern televised history that was anticipated with lower expectations. We waited for Donald Trump to invoke American carnage and doom and gloom and instead we got something much closer to a broad and traditional address. The change in tone, helped by the personal stories in the second half of the speech, was noteworthy--though the glow will only last as long as he maintains the positive tone, which may be a matter of hours. Also striking was how completely disconnected these remarks were from the speeches and the actions of first five weeks of the Trump Administration. There were some stark omissions in President Trump's speech, including any mention of Russia or real specifics on the expected Muslim ban 2.0. And he had some big whoppers, including the statement that 94 million Americans are out of the labor force -- a misleading claim at best, as it includes people who are not looking for work Beyond the news cycle coverage of any joint session speech, the goal of such an address is to give marching orders for the months ahead. But Trump failed to lay out a specific path to achieve his policy objectives. It is just as mathematically impossible today to keep health care coverage for pre-existing conditions, repeal the Obamacare mandate and lower costs as it was yesterday. He did not make any tough choices on how exactly to achieve tax reform where tax cuts to the middle class are not impacted. And he did not present a new strategy for going after ISIL. The audience is the American people at home, but more than five weeks into the administration it is also the people in the room. They may be relieved by the change in tone (and we will see how long that lasts) but they don't have any more clarity on his legislative agenda now than they did before the speech. Jen Psaki, a CNN political commentator and spring fellow at the Georgetown Institute of Politics and Public Service, served as the White House communications director and State Department spokeswoman during the Obama administration. Kayleigh McEnany: Democrats cool to Trump's message of unity President Donald Trump delivered a message for all Americans in his speech to Congress. It was unifying, uplifting, and much needed at a time when America is deeply divided. He began with the message that ""we might be a nation divided on policies, but we are a nation that stands united in condemning hatred,"" he ended with the message of ""we are one people with one destiny. We all bleed the same blood. We all salute the same American flag. And we all are made by the same God."" His words reflected the American ethos. But, sadly, unifying, benevolent messages like extending treatment for Americans addicted to drugs were met with Democratic recalcitrance, as left-wing elected officials sat firmly planted on one side of the House chamber, where clapping was sparse. Democratic resistance could not squelch the overriding message of unity, best represented by the emotional moment when Trump saluted Carryn Owens, wife of fallen Navy SEAL Ryan Owens, reminding us that, ""the Bible teaches us, there is no greater act of love than to lay down one's life for one's friends. Ryan laid down his life for his friends, for his country, and for our freedom --- we will never forget him."" Kayleigh McEnany is a CNN commentator and a graduate of Harvard Law School. Errol Louis: An olive branch for Democrats? President Donald Trump delivered what many hoped for: a speech calling for unity with Democrats -- a key departure after antagonizing them during his first month in office. In the very first sentences of his speech, Trump finally condemned anti-Semitic attacks in recent weeks, along with the fatal shooting of an Indian man at a Kansas bar. This was a crucial move from a president who has been dodging acknowledgment of the growing number of hate crimes. The commander-in-chief's straightforward presentation was also a departure from his usual bombastic style. Trump stayed cool when Democrats stayed seated as Republicans rose to clap, or gave a thumbs down to his proposed Obamacare repeal. He largely refrained from his habit of rehashing the election and the rise of the coalition that brought him to power. While Trump seemed to be sending an olive branch to Democrats with his approach Tuesday night, the Republican is going to face problems within his own party when it comes to his budget. Because Trump has promised not to cut major entitlement programs, his military spending hike is sure to become a tension point with Speaker Paul Ryan, a budget hawk. Without creating a source of revenue to make up for it -- Trump has vowed to cut taxes, not raise them -- the budget could wind up becoming significantly imbalanced. Trump might not find a friend in Senate Majority Leader Mitch McConnell, either. The Kentucky Republican said today that the upper chamber would kill Trump's budget plan -- featuring a 37 percent spending cut to the Department of State -- if it's sent to the Senate. In other words, Trump may have connected with some Democrats, even as a showdown looms with his fellow Republicans. Errol Lous is the host of ""Inside City Hall,"" a nightly political show on NY1, a New York all-news channel. Sahar Aziz: Solidarity with his far-right, anti-Muslim base Donald Trump prides himself on snubbing political correctness. Thus, he made sure to emphasize that the terrorism he is fighting is ""Islamic."" But in promising not to allow a ""beachhead of terrorism to form inside America,"" Trump failed to inform the American people that right wing extremists -- not Muslims -- are the largest domestic terrorists. Since 9/11, twice as many people have been killed by white supremacists than terrorists claiming to be Muslims. Indeed, anti-Muslim hate groups have nearly tripled since 2015. And these white supremacists have been terrorizing Muslims (and other racial minorities) through mosque vandalization, assault, and even murder. While Trump rightfully acknowledged the rise in hate crimes against Jewish communities, he was resoundingly silent about the rise in attacks and discrimination against American Muslims. Even his mention of the shooting in Kansas City left out that the victims were apparently mistaken for Muslim. Trump's material omissions demonstrate that he did not have American Muslims in mind when he stated ""We are one people, with one destiny. We all bleed the same blood."" Evidently, Trump is concerned with political correctness more than he admits -- the type imposed by his far right, anti-Muslim base. Sahar Aziz is associate professor at Texas A&M University School of Law, where she teaches national security, civil rights, and Middle East law. She is also a fellow at the Institute for Social Policy and Understanding. Aaron David Miller: What the President really meant to say Not surprisingly, foreign policy didn't figure prominently in the president's address to the joint session of Congress. But President Trump did lay down several foreign policy markers. Here's a rundown of what he said in the speech, and what I'm pretty sure he really said about them during the car ride over to the Capitol. ''We will work with our allies, including our friends and allies in the Muslim World, to extinguish this vile enemy ISIS from our planet."" Trump in car: Boy am I really out on a limb on this one; I said in my inaugural that I'd eradicate ISIS from the face of the earth. But how can I do that without eliminating the conditions in Syria and Iraq on which ISIS feeds. And that would mean deep US involvement in nation-building; not only that, the plan the Pentagon has given me is really just a plus up from what Obama been doing. ''We are also taking steps to protect our nation from radical Islamic terrorism.'' Trump in car: I don't care what my new National Security Adviser wants me to say, I'm going to keep on using those three words until the cows come home. It makes me feel good; and I don't care if it alienates American Muslims here or our so-called Arab allies abroad. And I'm also going to keep repeating things that mislead as I did tonight by implying that the vast majority of individuals convicted for terrorism-related offenses since 9/11 came here from outside of our country, when it fact many of them were US citizens. ""America is willing to find new friends and to forge new partnerships, where shared interests align."" Trump in car: This was really clever on my part. I didn't want to mention Russia, let alone Mr. Putin, for obvious reasons; but I really did want to give him a shout out. He's strong and tough like me; and I know I can cut deal with him. ""My job is not to represent the world, my job is to represent the United States of America."" Trump in car: Boy do I love that line. To all you liberal interventionists and neocons who somehow think I belong to the ""US as the indispensable power"" club, think again. No more globaloney. It's America first. I'm looking out for number one. And you know who that is. Alice Stewart: Trump in charge A lengthy standing ovation honoring American hero Ryan Owens and led by Donald Trump allowed him to demonstrate, beyond a shadow of a doubt, that he is President and Commander in Chief for all Americans- no ifs, no ands, no buts. To say that President Donald Trump's joint session speech was optimistic is an understatement. The more than hour-long address was filled with references to renewal of the American spirit. Trump spoke of unity, with a heartfelt tribute to Black History Month, condemned attacks on Jewish Community Centers and cemeteries, and the recent apparent hate killing in Kansas. Democrats sat on their hands for much of the speech, even during talk of a $1 trillion infrastructure spending package. The president simply looked the other way and drove home his commitment to repeal and replace Obamacare, defend our borders, provide tax relief for the middle class, build the Keystone pipeline, and restore respect for the rule of law. For those who have been asking when President Trump was going to start reaching outside his base, the joint session speech is your answer. From Obamacare, to immigration, to national security -- President Trump stressed that the best way to solve these complicated problems is to join forces. Alice Stewart is a CNN Political Commentator and former Communications Director for Ted Cruz's presidential campaign. She has worked in communications for the presidential campaigns of Mike Huckabee, Rick Santorum and Michele Bachmann, as well as communications for Concerned Women for America. Peniel Joseph: A speech that trafficked in fear and division President Donald J. Trump opened his first congressional address with a rhetorical flourish that noted the last day of Black History Month as a time to reflect on the nation's past progress toward civil rights, marred by a recent uptick in anti-Semitism that may well be at least partially a result of the divisive language used by the President himself. What the President touted as a ""renewal of American spirit"" is actually a period that has been marked by a resurgence of racism, xenophobia, religious intolerance, and attacks on LGBTQ communities. Like champions of Brexit, Trump doubled down on his nation building rhetoric Tuesday night, with a promise to rebuild long decayed industries and ""make America great again."" Veterans, white industrial workers, and active military and law enforcement shine in this narrative, which makes the ambitious claim that inner cities like Chicago, and all the rest of urban America will be dragged into prosperity (presumably kicking and screaming since the president received a scant 8% of the black vote) by the sheer will of a president touting pro-growth policies. These he claims will jumpstart an American economy that has already seen steady, but relatively constrained, growth since the great recession. The president repeated his campaign promise to build a ""great wall"" along the nation's southern border in an effort to defend the homeland against, what he has repeatedly called the ""bad hombres."" Threats from terrorists, illegal immigrants, and drug cartels formed the core of a presidential speech that trafficked in fear as the fuel for a renewal of the American Dream. The President ratcheted up his law and order rhetoric by parading victims of immigration crimes in the gallery, in a shameless act of exploitation designed to further mass incarceration. It was a divisive, intolerant, and ultimately dangerous speech from a president content to serve more as a demagogue than inspirational leader of the world's greatest democracy. Peniel Joseph is the Barbara Jordan Chair in Political Values and Ethics and the Founding Director of the Center for the Study of Race and Democracy at the LBJ School of Public Affairs at the University of Texas at Austin. Michael D'Antonio: A 'Game of Thrones' mental landscape Faced with a shocking murder in Kansas, which appears to have been an anti-immigrant hate crime, and waves of anti-Semitic incidents across the country, Donald Trump seemed for a moment to have been affected by the weight of the presidency as he opened his speech to Congress. America's civil rights business was unfinished, he allowed, and he seemed to call upon our better angels to get it done. It was, a new Trump. Almost. Moments later we got back the old Trump, the one who is more comfortable with fear than with hope. With references to crime-ridden cities, ""lawless chaos"" and ""gang members, drug dealers, and criminals"" Trump evoked a crime wave that doesn't exist, except in his rhetoric. He blamed America's problems, from low wages to the decline of manufacturing jobs on undocumented immigrants and promised anew to build a ""great, great wall"" along the southern border. With repeated references to ""I"" and ""my"" and ""me,"" Trump flashed his lifelong narcissism and reassured the nation that at least he is consistent. With so many warlike references and the promise of a new fortress America, walled off and fearful, we returned to Trump's true inner reality. It's a mental landscape worthy of Game of Thrones. Michael D'Antonio is the author of ""Never Enough: Donald Trump and the Pursuit of Success."" Mark Bauerlein: Leaning on themes that got him elected Trump supporters might have found the pageantry of the lead-up to Donald Trump's speech a bit much, impatient as they are of DC puffery. But soon after Trump started, the wellsprings of his patriotism fed their profound hunger for national meaning. It's a desire that my fellow academics and cosmopolitan elites do not understand. As I was interviewed on CNN International last week, the host insisted that America was doing just fine--low unemployment and strong stock market--so why the talk about American decline? I answered that a nation isn't measured primarily by money. There is, first, the sense of home and self-esteem and respect for law and order. Trump invoked those feelings immediately: ""American greatness . . . a new national pride . . . a renewal of the American spirit."" His administration will resurrect them, he promised, with a ""rebirth of home, safety, and opportunity."" This is the opposite of 21st-century liberalism, which doesn't like any national (or religious) commitment that runs too deep. In fear of strong convictions, it pushes the minimization of nation, the break-up of American tradition into a breezy multiculturalism, the opening of borders, the conversion of American citizens with roots in a time and place into global citizens with no roots and who should belong everywhere, which is to say, nowhere. Trump's understanding of this is why he won. The details in the speech were unsurprising: fewer regulations, less lobbying, less off-shoring of jobs, new trade agreements, border security, repeal of Obamacare, an end to the ""cycle of poverty,"" a stop to violent crime, the suggestion of opening vouchers to religious schools. As always, the consequences of all these claims remains to be seen. One thing is certain, though: President Trump stuck to the very themes that have generated so much rancor and heat, and nothing he said or did tonight promises to lower the temperature. When he said that his job is not to ""represent the world,"" only the USA, the globalists and internationalists and intellectuals suspicious of American power knew their enemy. Mark Bauerlein is a professor of English at Emory University, senior editor of the journal ""First Things"" and author of ""The Dumbest Generation: How the Digital Age Stupefies Young Americans and Jeopardizes Our Future; Or, Don't Trust Anyone Under 30.""", -1661,2017/3/1,http://www.cnn.com/2017/02/28/politics/trump-joint-congress-inauguration-speech/index.html,A tale of two speeches: Comparing Trump's inaugural to his address to Congress,"(CNN)Forty days after he began his presidency with a dark and foreboding inaugural speech, President Donald Trump on Tuesday night spoke in broadly optimistic tones throughout his first address to a joint session of Congress.","If Trump's words on January 20 bore the tone of his divisive campaign, his remarks on Capitol Hill were remarkable for just how much they resembled similar speeches from his predecessors. Opponents and critics will note that, in its substance, Trump did little to back down from his most controversial plans. But his nods to the more conventional tropes of the genre created an unlikely juxtaposition. Let's compare then -- and now. On prosperity Then: ""For too long, a small group in our nation's Capital has reaped the rewards of government while the people have borne the cost ... while they celebrated in our nation's capital, there was little to celebrate for struggling families all across our land."" Now: ""... While we may be a nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms."" On unity Then: ""This American carnage stops right here and stops right now."" Now: ""That torch is now in our hands. And we will use it to light up the world. I am here tonight to deliver a message of unity and strength, and it is a message deeply delivered from my heart."" On globalization Then: ""We've made other countries rich while the wealth, strength, and confidence of our country has disappeared over the horizon."" Now: ""America is friends today with former enemies. Some of our closest allies, decades ago, fought on the opposite side of these World Wars. This history should give us all faith in the possibilities for a better world."" On the American dream Then: ""The wealth of our middle class has been ripped from their homes and then redistributed across the entire world."" Now: ""A new surge of optimism is placing impossible dreams firmly within our grasp."" On leadership Then: ""We will no longer accept politicians who are all talk and no action -- constantly complaining but never doing anything about it."" Now: ""Solving these, and so many other pressing problems, will require us to work past the differences of party. It will require us to tap into the American spirit that has overcome every challenge throughout our long and storied history.""", -1662,2017/3/1,http://www.cnn.com/2017/02/28/politics/democratic-women-wear-white-donald-trump-speech/index.html,Democratic women wear white to Trump's address,Washington (CNN)Democratic women in Congress made an impression Tuesday evening as they sat in the audience for President Donald Trump's joint address to Congress.,"Many of the 66 Democratic women representatives and delegates who make up the House Democratic Women's Working Group wore white clothing, dubbed ""suffragette white"" in a nod to the women's rights movement in the early 1900s, which encouraged its supporters to dress in white as a representation of purity. ""We wear white to unite against any attempts by the Trump administration to roll back the incredible progress women have made in the last century, and we will continue to support the advancement of all women,"" Florida Democratic Rep. Lois Frankel, the chair of the working group, said in a statement. The members are wearing white to show support for Planned Parenthood, affordable health care, reproductive rights, equal pay, paid leave, affordable child care and ""lives free from fear and violence,"" the statement also said. ""Tonight, our Democratic #WomenWearWhite in support of women's rights -- in spite of a @POTUS who doesn't!"" Minority Leader Nancy Pelosi tweeted. Republican Rep. Cathy McMorris Rodgers, the chair of the House Republican Conference, responded to her Democratic colleagues' statement by calling for unity. ""You know, I think this is an important time for us to be coming together,"" she told CNN's Erin Burnett on ""OutFront"" when asked about the movement by the Democratic women. ""Typically, when a president is elected, you have that coming together as a country, which we haven't had, and I'm hopeful that people will listen to his message tonight and that they'll be willing to come together, find the common ground, so that we can do the important work that the people expect us to do,"" McMorris Rodgers added. White has become the go-to color for celebrating women in politics at many points throughout history. There was a #WearWhiteToVote movement on Election Day 2016 as a tribute to the suffragettes, who fought for women's right to vote. And on the night Hillary Clinton accepted the Democratic presidential nomination at the Democratic National Convention, she wore a white suit. Many women who disagree with Trump have been pushing back in the weeks following the President's inauguration, holding women's marches across the globe in January and planning more efforts to protest in the months to come.", -1663,2017/3/1,http://www.cnn.com/2017/02/28/politics/trump-travel-ban-visa-holders/index.html,Trump delays new travel ban after well-reviewed speech,"Washington (CNN)President Donald Trump has delayed plans to sign a reworked travel ban in the wake of positive reaction to his first address to Congress, a senior administration official told CNN.","The decision came late Tuesday night as positive reviews flooded in for Trump's speech, which struck a largely optimistic and unifying tone. Signing the executive order Wednesday, as originally indicated by the White House, would have undercut the favorable coverage. The official didn't deny the positive reception was part of the administration's calculus in pushing back the travel ban announcement. ""We want the (executive order) to have its own 'moment,'"" the official said. The sudden change of plans came as Trump and his top advisers returned to the White House after his address to a joint session of Congress on Tuesday night. Trump's original executive order, signed a week after he took office, banned citizens of seven Muslim-majority countries from entering the US and temporarily suspended the entry of all refugees. A federal court issued a temporary stay that halted implementation of the travel ban earlier this month, a decision that was later upheld by a federal appeals court. The new travel ban will exclude legal permanent residents and existing visa holders from the ban entirely, sources familiar with the plans told CNN earlier Tuesday. While sources caution that the document has not yet been finalized and is still subject to change, there will be major changes: The new executive order will make clear that legal permanent residents (otherwise known as green card holders) are excluded from any travel ban. Those with validly issued visas will also be exempt from the ban. The new order is expected to revise or exclude language prioritizing the refugee claims of certain religious minorities. Speaking in Munich, Germany, earlier this month, Department of Homeland Secretary John Kelly promised a ""phased-in"" approach to minimize disruption this time around. But what remains to be seen are the other key aspects of the new executive order, especially in terms of refugees, including: What happens to the suspension of the refugee program for 120 days? Will Syrian nationals still be barred indefinitely? Will the cap on the number of refugees change? The first version of the executive order caps it at 50,000 for fiscal year 2017. Two sources also expect that the President will formally revoke the earlier executive order, despite repeated statements from White House press secretary Sean Spicer that the two orders would co-exist on a ""dual track."" The administration could potentially argue that the existing challenges to the original executive order are moot, but the challengers tell CNN the legal battles will likely continue even after the new order is signed. ""Exempting lawful permanent residents and current visa holders will not cure the core legal problem -- that the ban was motivated by religious discrimination, as evidenced by the President's repeated statements calling for a Muslim ban,"" ACLU attorney Lee Gelernt explained. ""That discriminatory taint cannot be removed simply by eliminating a few words or clever tinkering by lawyers.""", -1664,2017/3/1,http://www.cnn.com/2017/02/28/politics/joint-address-reaction-gifs/index.html,The looks on lawmakers' faces during Trump's speech,"(CNN)President Donald Trump may have been the only one to give a speech on the floor of the House Tuesday night, but the body language of attendees spoke volumes. Let's take a look at reaction GIFs from both sides of the aisle.","Democratic Leader Nancy Pelosi looked far less than thrilled at President Trump's mention of repealing and replacing the Affordable Care Act. Pelosi, clad in white as an homage to women's suffrage, shook her head and pursed her lips. Other Democrats, like Rep. Jackie Speier, were very clear in their response to the idea of repealing Obamacare, giving it a thumbs-down. Republican House Speaker Paul Ryan appreciated a reference President Trump made to negotiators needing to get better deals to repair the nation's infrastructure. Everyone knows a good deal is one of the President's favorite things. Rep. Debbie Wasserman Schultz and Rep. Keith Ellison had some of the straightest faces of the night, remaining somber when the President mentioned crime in inner cities. Meanwhile, the President had the full support of Republican leaders Rep. Kevin McCarthy and Rep. Steve Scalise on the idea of putting ""America first."" A standard at any Joint Session of Congress, the half up/half down crowd split between Democrats and Republicans was on full display. Republicans largely supported President Trump's thoughts on immigration, while the Democrats were noticeably less enthusiastic. However, there are a few things that were able to bring everyone to their feet, like supporting the troops and their families. Carryn Owens, the wife of Ryan Owens, a Navy Seal killed in a raid in Yemen, received more than two minutes of applause.", -1665,2017/3/1,http://www.huffingtonpost.com/2017/02/28/schumer-dems-are-done-with-trump_n_15074294.html,Schumer: Dems Are Done With Trump,"And the president could hand Democrats the Senate in 2018, the Senate Minority Leader said.","WASHINGTON ""?Senate Minority Leader Chuck Schumer pledged to give President Donald Trump a chance before his fellow New Yorker took the oath of office. But after 40 days, Schumer says he's about through with the blustery commander in chief. ""It's changed,""?Schumer told The Huffington Post Tuesday shortly before Trump addressed a joint session of Congress. ""trump, instead of doing where his campaign was, which was against both establishments, Democratic and Republican, so there might be some areas of common ground, has moved so far to the right that I don""t see any place we can work with him,""?Schumer said. ""He's not even talking about infrastructure, he's not talking about trade.""?When Schumer initially said he look for places to work with Trump, the then-president-elect had certainly alarmed most Democrats ""?but some still hoped Trump would moderate on some issues, or at least make good on pledges that Democrats like Schumer liked, such as investing in infrastructure. But since then, Trump has stood by his hard-line stances. And millions of Americans across the country have come out in droves to protest. Schumer said it reminded him not so much of the tea party surge in 2010, or the Democratic wave of 2006, but the anti-war movement when Eugene McCarthy knocked President Lyndon Baines Johnson from office. ""I cut my eyeteeth in the Eugene McCarthy campaign of 1968,""?Schumer said. ""A ragtag group of grassroots activists, students and other assorted misfits toppled the most powerful man in the world, Lyndon Baines Johnson.""?""He was not as dishonorable as Trump, but he certainly was more powerful at that point in time. We beat him,""?Schumer said. ""I have not seen an outpouring that strong since that time.""?Schumer thinks Trump is likely to keep on inspiring Democrats, and pointed to recent local elections in Delaware and Connecticut as signs the party is surging. ""This bodes very well for 2018,""?Schumer said. ""If Trump continues to govern from the hard right, and be the same kind of person who doesn""t tell the truth, who makes it up as he goes along, and we stay united and strong, we could actually take back the Senate.""?Such an outcome would be remarkable. Democrats must defend 25 seats in 2018, including 10 in states Trump won, while Republicans only have nine incumbents facing re-election. Just two of them are in swing states. Trump has certainly noticed Schumer, and has alternated between praising him and mocking him. But Schumer insisted any attempts at manipulating him would fail. ""He thought by saying a few flattering things, he's going to make me give up my values, and go work with him?""?Schumer scoffed. ""we'll go by our values, and his values are so far away from ours that there's not much ground for compromise. I""ve told him, all the flattery, all the name-calling, isn""t going to make a darn bit of difference. you're got to do the right thing. So far, he has not.""?Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1666,2017/2/28,http://www.huffingtonpost.com/2017/02/24/venice-in-love-erotic-flapbooks-new-york-public-library_n_15059784.html,Get Turned On The Old Venetian Way With These Sexy Flap Books,"Behold, the erotic art on view at the New York Public Library.","Move along, nothing to see here ""?right? Just an elegant lady enjoying a leisurely gondola ride with her elderly female chaperone, a depiction of a proper young woman going about daily life in 16th-century Venice. But wait, let's look again: Oh my! A lifted flap reveals a far more scandalous scene; instead of a chaperone, the lady is accompanied by a dashing gentleman who appears to be feeling her up.- This erotic interactive flap book, currently on view at the New York Public Library's Stephen A. Schwarzman building, was illustrated by Donato Bertelli in the late 16th century. The book is part of ""�Venice in Love,""?an exhibition featuring the NYPL's collections of erotic and romantic artifacts from the Republic of Venice, which existed as an independent state from the 13th to 18th centuries. In her description of the exhibition, curator Madeleine Viljoen notes that Venice, a relatively liberated secular state, was ""Hamed for its high-end courtesans and low-end prostitutes,""?as well as the beauty and elaborate grooming of its women. Throughout its lifetime, the state became ""A prime destination for lovers and pleasure seekers,""?along with art-lovers ""?and the exhibition puts on display the union between Venice's artistic proclivities and its erotic ones. Every Friday, HuffPost's Culture Shift newsletter helps you figure out which books you should read, art you should check out, movies you should watch and music should listen to. Learn more As for Bertelli's peekaboo love scene, why hide the romantic embrace behind another drawing? Viljoen, also the NYPL prints curator, told The Huffington Post in an email that the purpose of the interactive flap book was clearly sexual. ""the Venetian flap books,""?she said, ""were designed with the titillation of the viewer in mind.""?Another flap book leans even more explicitly softcore, allowing readers to enact a pre-photographic version of an upskirt shot: Viljoen's description of the exhibition calls attention to the young woman's ""underwear and platform shoes, known as chopines""?""?a sexy getup for the time. These two flap books aren""t just eye-grabbing; they'r highly unusual. ""there has been much interest in recent years in so-called interactive prints,""?Viljoen told HuffPost. However, ""�[t]hese were usually didactic and included items like paper astrolabes or anatomical studies-... except for the books shown in the Library's collection, I cannot think of any other examples of specifically erotic flap books.""?The sensuous images found in the NYPL's Venetian prints don""t look much like modern day erotica ""?in olden days, after all, a glimpse of stocking was looked upon as something shocking ""?but boast the same twinkle of subversive playfulness that still titillates frisson-seekers today. ""the act of lifting the curtain from the young lovers or of raising the courtesan's skirt seems quintessentially voyeuristic,""?Viljoen told HuffPost. When it comes to the erotic, some things never change. ""�Venice in Love""?is on display at the Wachenheim Gallery at the Stephen A. Schwarzman building through Aug. 26.- Share this slide:", -1667,2017/2/28,http://www.huffingtonpost.com/2017/02/27/jeff-sessions-doj-police_n_15053366.html,Jeff Sessions Didn't Read DOJ's Chicago Police Report. But He Thinks It's 'Anecdotal.',The attorney general signaled a change in the Justice Department's approach to civil rights.,"WASHINGTON ""?Calling police officers the ""Hrontline soldiers""?in the fight against crime, Attorney General Jeff Sessions signaled Monday that the Trump administration's Justice Department would take a new position in the Civil Rights Division's approach to police abuse. ""We're got to go back and make sure that our police departments understand that they'r being supported, both by the Department of Justice as an ally, and by the American people,""?Sessions told reporters at DOJ headquarters on Monday, in a preview of a speech he will give before a gathering of the nation's attorneys general on Tuesday. ""I do believe the Department of Justice is the leading advocate for law enforcement in America, and I hope to be able to fulfill my responsibility in that regard,""?Sessions said.- Asked by The Huffington Post whether he had read the Civil Rights Division's investigative reports on the police departments in Chicago and Ferguson, Missouri,-Sessions conceded he had not. But, he said, he didn""t think they were necessarily reliable.- ""I have not read those reports, frankly. We're had summaries of them, and some of it was pretty anecdotal, and not so scientifically based,""?Sessions said.- A DOJ report released in the final days of the Obama administration, based on an investigation that spanned nearly 14 months, detailed troubling patterns of unconstitutional conduct-within the Chicago Police Department. In Ferguson, much of the reporting was based upon the city's very own reports, and-indicated widespread abuse of constitutional rights of citizens.- Sessions said Monday he had ""not made a decision""?about how the DOJ would proceed in the Chicago case, but told reporters he was ""really worried""?about ""the surge in murders""?in the city. He was also troubled by the drop in the numbers of stop-and-frisk stops-in Chicago, he said. Sessions""?position echoed the view he expressed throughout his nomination, when he indicated he subscribed to the ""bad apples""?view of policing, which holds that police abuse is not systemic in certain departments but the fault of individual rogue actors. Sessions said during his confirmation hearing that it was a ""difficult thing""?for a city to face allegations they had systemically violated the civil rights of citizens. ""We're got to understand that police are the frontline soldiers in the effort to keep the crime under control, along with sheriffs""?deputies,""?Sessions said on Monday. ""Tany departments are not doing well in terms of morale, in terms of following good policies.""Sessions referenced a story in the Wall Street Journal last week-on worries officers had about ""becoming the next viral video,""?and high murder rates in certain cities. Sessions told reporters that any individual serious allegation of excessive force is subject to a federal investigation. ""metimes local police departments really step up and do a great job. It's almost disrespectful [to] them for the feds to go in and try to take it over,""?Sessions said in response to a question from The Huffington Post. Sessions also said the nation had ""gotten a little overconfident""?about public safety and it affected how police responded to violence. Sign up for the HuffPost Must Reads newsletter. Each Sunday, we will bring you the best original reporting, long form writing and breaking news from The Huffington Post and around the web, plus behind-the-scenes looks at how it's all made. Click here to sign up! Do you have information you want to share with the Huffington Post? Here's how. Every week, HuffPost Must Reads features a behind-the-scenes look at how longform journalism is made. We go under the hood. Why did the writer take that unexpected angle? How hard was it to get that source on the record? We're here to tell that story. Learn more", -1668,2017/2/27,http://www.huffingtonpost.com/elliott-young/hard-truths-about-obamas-deportation-priorities_b_15047666.html,The Hard Truths About Obama's Deportation Priorities,"Once you criminalize a population, few people ask questions.","The truth matters. In this moment of panic as Trump terrorizes immigrants, we should not abandon the truth to highlight the brutality of Trump's immigration policies. Trump's Executive Orders on immigration, his expansion of who is defined as a criminal and his rhetoric about ""bad hombres""?are a departure from Obama, but not as much as we might like to believe. If progressives keep lying to themselves about their past, they are doomed to continue to push the same failed policies of the corporate wing of the Democratic party, exemplified by Bill Clinton and Barack Obama. On immigration, the answer to Trump is not returning to Obama's policies, but rather moving in a new direction that drastically reduces deportations and ceases to criminalize low-level offenses. The mainstream media keeps repeating the falsehood that Obama focused on deporting serious criminals. As the ""�New York Times""?put it in a recent article, ""Gone are the Obama-era rules that required them to focus only on serious criminals.""?The-editorial reinforced this characterization, stating ""ICE and the Border Patrol under Mr. Obama were ordered to focus on arresting serious criminals and national-security risks.""?The data from the Department of Homeland Security tells a very different story. From 2009-2015, 56% of all immigrants removed from the country had no criminal convictions. The preliminary data from 2016, when Obama was still in office, suggests that this trend of deporting non-criminals continued. What's more, a good portion of the so-called criminal deportees were arrested on low-level misdemeanor charges such as marijuana possession. If you only look at the Immigration and Customs Enforcement (ICE) removals, a subset of the total, the scenario shifts slightly. Up until 2010, most people ICE removed had no criminal convictions, but over the next six years their enforcement began to focus more on those with such convictions. But even in 2015, over 40 percent of ICE removals had no criminal conviction and of the 59 percent who did, many were guilty of minor charges, certainly not the image of felons and gang bangers Obama conjured up. Obama's Policy of Targeting Felons, Not Families Was a Lie The ""�New York Times""?is correct inasmuch as Obama publicly claimed that immigration enforcement would be targeted against criminals. In November 2014, in the same speech in which Obama announced his Deferred Action for Parents of Americans (DAPA) program, he proclaimed: ""We'r going to keep focusing enforcement resources on actual threats to our security. Felons, not families. Criminals, not children. Gang members, not a mom who's working hard to provide for her kids. we'll prioritize, just like law enforcement does every day.""?The problem with this narrative is that it was false at the time Obama made the statement and it continued to be false through the rest of his presidency. Aside from the much-needed DACA program, Obama's Department of Homeland Security continued to deport far more people without any convictions or whose only crime was crossing the border without authorization than they did the so-called ""serious criminals""?threatening our ""security.""?The ""�New York Times""?didn""t have to go far to discover the truth. In one of their own articles in April 2014, the ""Times""?reported that since the time Obama took office, ""gwo-thirds of the nearly two million deportation cases involve people who had committed minor infractions, including traffic violations, or had no criminal record at all.""?A few days later, a ""Times""� article stated that the Transactional Records Access Clearinghouse (TRAC), a research organization at Syracuse University, reported similar findings. ""It found that in fiscal year 2013, ""Anly 12 percent of all deportees had been found to have committed a serious or ""Level 1""?offense based on the agency's own definitions.""?A September 2016 Marshall Project report found that since Obama announced his intention to focus on ""Helons, not families""?in 2014, 60% of deportations they studied ""were of immigrants with no criminal conviction or whose only crime was immigration-related, such as illegal entry or re-entry.""?The report continued, ""twenty-one percent were convicted of nonviolent crimes other than immigration. Fewer than 20 percent had potentially violent convictions, such as assault, DUI or weapons offenses.""?Even those who acknowledge that Obama in fact deported more people without criminal convictions in his early years perpetuate the myth that in his later years he focused his deportations on non-criminals. This is also untrue. The Department of Homeland Security reported that it removed and returned over 450,000 people in 2016. Of this number, 85 percent were people caught crossing the border without authorization. Fewer than 8 percent of these deportees were felons or accused of being in a street gang. Even if one just looks at ICE administrative arrests in the interior of the country, and ignores the people caught crossing the border, less than 9 percent of these people had felonies or were in street gangs. The vast majority of ICE removals were for misdemeanor offenses and some ""unknown subclass.""?The data is clear. Obama was largely deporting, to paraphrase him, moms providing for their kids and not gang members. Gang members made up less than one-quarter of one percent of removals. If gang bangers were the target, then Obama missed by a long shot. Trump Continues and Accelerates Obama's Deportation Policies The well-publicized ICE raids in the first weeks of Trump's presidency sent shock waves through immigrant communities. In a five-day period, 680 undocumented immigrants were rounded up in raids that ostensibly targeted ""Criminals,""?but actually netted people with no criminal convictions who were simply in the vicinity of the raid. One egregious example of these ""Collateral""?arrests was that of Daniel Ramirez Medina, a DACA student in Seattle who was arrested on a raid meant to target his father. ICE subsequently claimed that Ramirez had admitted to being a member of a gang, a claim that Ramirez vehemently denies. There is also evidence that ICE officials doctored Ramirez's statement by crudely erasing parts of it. Secretary of Homeland Security John Kelly claimed the raids were ""routine""?and part of ""gargeted enforcement operations.""?An analysis by the TRAC of such ICE raids under Obama suggests that the recent nationwide raid represented a spike in arrests at workplaces and homes, although the arrest of people in communities had become routine under Obama. According to TRAC, ICE arrested and removed roughly 1250 people per week in 2016. Although, ICE picked up most of these people from jails and other law enforcement agencies, almost 300 per week were community arrests at workplaces or homes. In other words, the recent ICE raids under Trump were significant and alarming, but hundreds of such arrests happened every week under Obama. The only difference was that such arrests had become so routinized in the past that the mainstream media barely noticed. Pointing out the similarities between Trump and Obama's deportation policies should not assuage our anger, but rather mobilize us to oppose the anti-immigrant machine that was strengthened by Obama and is now being ramped up by Trump. The fact that Secretary Kelly describes ICE raids at homes in the middle of the night as routine should be horrifying not because Kelly is lying, but because he is largely telling the truth. Mass detention and deportation became a routine part of daily life under Obama, and it only threatens to become worse under the new president. Why It Matters Some immigrant advocates have argued that to dwell on the extreme nature of Obama's deportation policies not only doesn""t matter now, but that it undermines the very real and present threat posed by Trump. However, while Trump's immigration policies must be opposed and defeated, we also have to be mindful of the ways in which putatively progressive Democratic politicians continue to use the rhetoric of protecting hard-working immigrants while continuing policies that lead to mass deportations. As mayors in progressive cities across the country declared their cities to be sanctuaries and vowed not to cooperate with federal immigration enforcement, they also refused to stop their broken-windows policing which delivers immigrants directly into the hands of ICE for deportation. Sanctuary is a meaningless designation if immigrants, either documented or undocumented, can be arrested for low-level crimes such as subway fare-evasion, and then deported once the city sends their fingerprints to the FBI and thereby to ICE. Mayor Bill de Blasio declared New York City a sanctuary, but at the same time his police arrest people for selling mango slices on the street without a license or walking through a park at night. In 2015, police arrested 30,000 people for subway fare evasion. Queens Councilman Rory Lancman recently criticized de Blasio's hypocrisy in declaring sanctuary at the same time that he continues to arrest immigrants for such low-level offenses. As Lancman put it, ""�Bill de Blasio's broken-windows policing is the fuel for Donald Trump's deportation machine.""?In effect, Mayor de Blasio is condemning immigrants who commit the ""Crime""?of jumping over a turnstile to deportation. Cities and states do not have the power to make or change immigration laws, and sanctuary can only provide limited protection from deportation. However, local governments can decide how they police their communities, which can have a huge impact on the number of people they make vulnerable to deportation. As journalist Daniel Denvir phrased it in a recent Slate article, ""�Prosecutors and police don""t make laws, but they have the power of discretion.""?Making Criminals of Us All Obama's distinction between the good, hardworking immigrants and the bad criminals fed the criminalizing stigma attached to immigrants. In a 2012 debate, Obama argued that if we are going to go after ""Holks who are here illegally, we should do it smartly and go after folks who are criminals, gang bangers, people who are hurting the community, not after students, not after folks who are here just because they'r trying to figure out how to feed their families.""?In the president's worldview, ""�gang bangers""?should be deported. Moms feeding their families and Americanized students should remain. Defending DACA students is popular among progressives, but painting these students as the ""�good""?immigrants puts 10 million other immigrants into the ""bad""?category by implication. Obama's rhetoric and his policies thus fueled the carceral logic that led to mass deportation and mass incarceration in the first place. As it turned out, the vast majority of those ""�gang bangers""?he was targeting turned out to be people who just crossed the border without authorization or committed a misdemeanor crime. But once you criminalize a population, few people ask questions. The mainstream media parrots the myths of Obama focusing his deportations on ""serious criminals""?while refusing to confront the truth. In their Sunday newspaper and on television during the Academy Awards, the ""�New York Times""?launched a campaign proclaiming the importance of truth: ""the truth is hard to find. The truth is hard to know. The truth is more important now than ever.""?If we are to take these words to heart, then we must reckon with some hard truths: Most immigrants deported by Obama were not felons, sanctuary is meaningless without ending broken-windows policing, and criminalization is another path toward mass deportation. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1669,2017/2/26,http://www.huffingtonpost.com/2017/02/25/femme-the-fil-kickstarter_n_15024980.html,Get Ready For A New Film Celebrating Femme Identity Among Gay Men,"""You are perfect exactly as you are.""","A new and necessary film-will explore the nature of femme identity among gay men, and the way men who have sex with men are expected to adhere to masculine stereotypes. Corey Camperchioli is the creator and star of ""Femme: The Film,""?a fictional story about a gay man navigating New York's gay community and the challenges of love, friendship and dating in the Big Apple.-Camperchioli, who identifies as femme, told The Huffington Post that he sees his film as a direct response to the rigid gender binary he sees reinforced every day by his gay peers.- ""I hope ""lemme""?will encourage others to love themselves as is,""?Camperchioli told The Huffington Post. ""It's something that I'm still learning how to do, and I hope my journey toward self-love will set others on the track to loving themselves, too. Especially those femme boys out there ""?those who get told to ""deepen their voice,""?""Tone it down,""?or ""Butch it up.""?I want to tell them what I wish someone had told me a long time ago: you are perfect exactly as you are.- So to all the femme boys out there ""?this one's for you!""?""Femme: The Film""?is currently raising money through Kickstarter in order to fully fund production. Head here to visit the project's campaign and keep your eyes peeled for more details in the future. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1670,2017/2/26,http://www.huffingtonpost.com/trules/this-is-what-democracy-looks-like_b_15067612.html,This Is What Democracy Looks Like,"We can""t let go of our beliefs by shipping people out of the country.","Take a look... This is what democracy looks like. At least on February 25, 2017 - in front of the Federal Building in West Los Angeles. I haven""t been to a political rally or a real protest since 1968 - SUNY Buffalo, where I went to college. It was an SDS rally (Students for Democratic Society), against the Vietnam War, or for civil rights, or for women's rights, or for human rights; there were a lot of people we wanted to set free back in the day. We even had some modest success. But I didn""t even go to the Women's March last month in downtown LA, much to my embarrassment. I was afraid to bring my son, for fear that some pro-Trump, anti-women protesters would become violent and cause us some physical harm. It turned out to be a beautifully peaceful and empowering protest of the first order, and it joined Woodstock as another culturally-defining event - that I missed. But what are we supposed to do now? Post-Women's March? One month into the disastrous and frightening Trump administration? That's the question, isn""t it? Instead of feeling somewhere between impotent and enraged every day we turn on the TV, read the newspaper, or scan the ubiquitous anti-Trump online magazines, blogs, and Facebook posts.... what can we do? There are so many of us - afraid, depressed, enraged - it's not like anyone is unaffected. Immigration? Who doesn""t know a gardener, a housekeeper, a neighbor, a brother-in-law (mine spent time in Pinochet's stadium in Chile), or a wife (mine is a U.S. citizen who came here from Indonesia 16 years ago) whose status isn""t now threatened... by the USCIS hiring thousands of more employees, by ICE rounding up undocumented American residents, following children home from school to identify and deport their parents? Healthcare? Social Security? Medicare? The Affordable Healthcare Act? Who doesn""t know someone who isn""t deleteriously effected, if not themselves personally? Me? I'm retiring after 30 years as a theater professor from a safe and secure job at the University of Southern California. What a time I picked to do it! Right upon the election of MadDog Trump and his hysterical, inconsistent, macho-conservative wave of executive orders and his hiring of the most frightening, plutocratic, pro-business/anti-global, nationalistic Cabinet in American history. Of course we'r afraid. What's going to happen to this country - other than be dismantled one day at a time - in such a predictable, frightening onslaught of daily press releases and bad news... for immigrants, poor people, middle class people, doctors, nurses, plumbers, taxi drivers, you name it - we'r all terrified. But what can we do? It certainly seems like we have to do something, right? Like I have to do something! It's just like the ""?0s, man, when my ass, when all of America's sons""?asses, were on the line ""?to be drafted. It's once again personal. Like, I might lose my Social Security benefits. Lose my Medicare entitlement. Not be able to afford health care for my wife and son. We just can""t stand by and watch this happen. Solution? We have to choose a specific issue - or two - and stand up, let our voices be heard. We have to call our Congressmen, show up at the Federal Building... Do something.... more than click on Facebook, answer surveys, and send a few dollars which make us think we'r making a difference. My two issues, for the sake of this argument, are health care and immigration. They effect me personally. The results of Trump's executive orders and his reliable threat of changing the laws are not only scary and depressing, they are practical and debilitating. I have to write and call my Congressmen. I have to show up at the Federal Building and post this blog on HuffPost. Call your state senator and tell them to support SB 562, a bill for single-payer healthcare in California. Call 855-271-8515 from your phone to be automatically connected to your state senator. Or call Ricardo Lara, the Congressman in Sacramento who's drafting the bill: 916-651-4033. TALKING POINTS: WHAT YOU CAN SAY ABOUT WHY YOUR STATE SENATOR SHOULD SUPPORT A UNIVERSAL SINGLE-PAYER HEALTH CARE SYSTEM: -This bill will save people's lives. -SB 562 would ensure that every person receives the health care they need when they need it. -No longer will the cost of prescription drugs and medical procedures be unattainable. -In the wealthiest nation in the history of the world, people have a right to health care, no matter their income or medical history. We have to stand together. Shoulder to shoulder. We have to raise our voices. Protest. Resist. Now is the time. Whether you believe we'r on the verge of a dictatorial, new kind of American fascism or not, run by a not-very-intelligent, loose cannon, self-styled, impulsive narcissist, or not... things are definitely, without a doubt, on the line. We can""t wait 2 years for new Democrats to be elected to Congress. We can""t wait 4 years for a new presidential election. So much pain and damage can be done right now... in the next week, in the next month, in the next years... We just have to stand up NOW to the horror and misdirection of this administration. I know, I'm not a politician. Or a wise man. Just an ordinary one who's terrified and disheartened by what's happening in my own country. A man, once a boy, who grew up in a country which believed in itself. Which believed in democracy. In freedom. In opportunity for all. We can""t let go of these beliefs by shipping people out of the country. Democracy was built on, is still built upon, diversity, upon the amalgamation of cultures and ideas. Strength from debate, argument, and differences. Look again at these pictures. Join the next line of protest signs. Stand up. Raise your voice. This is what democracy looks like! Trules""?Twiter handle: etrules Website: http://www.erictrules.com Trules""?new travel blog, ""e-travels with e.trules ""?The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1671,2017/2/25,http://www.huffingtonpost.com/michael-nutter/insideairbnbs-report-isnt-worth-the-digital-ink_b_15011874.html,"InsideAirbnb's Report Isn""t Worth The Digital Ink It Is Printed On","The only way to effectively determine race is to have self-identification data from the hosts-and InsideAirbnb doesn""t have it.","This week, the anti-home sharing website InsideAirbnb released an outrageous-and outrageously shoddy -new report that made a series of sweeping conclusions about the nature of the Airbnb host community in historically Black neighborhoods in New York City, asserting that Airbnb is promoting ""racial gentrification.""?Unfortunately, the report isn""t worth the digital ink it is printed on. Rather, it uses a long-discredited methodology akin to racial profiling. Furthermore, this so-called study lacks the control group necessary in any legitimate study, relies on the false assumption that the racial demographics of a particular community's resident population match the racial demographics of that community's homeowner population, and fails to address wide disparities between neighborhoods analyzed. Each of these flaws is examined further, below. Airbnb does not ask hosts or guests for information related to their racial identity. As a result, the authors of this report attempted to determine the race of individual hosts by using suspect technology to rifle through Airbnb users""?profile photos. This is not only an offensive way to classify individuals, it's also replete with flaws.- Race is a continuum, not a dichotomy. And yet, this report only compares two races: Black and White, ignoring the diverse people who call New York City home, including the nearly 285,000 New Yorkers who identify as more than one race. Indeed, since 1970, the Census Bureau has asked Americans to ""self-identify""?on the federal census, acknowledging that race is not as simple as a photograph. The methodology does not address Latinos who identify as Black, Whites who identify as Latino, or any other combination, let alone how to categorize a host that is a member of a multiracial couple whose spouse/partner is not pictured on Airbnb. The bottom line is that the only way to effectively determine race is to have self-identification data from the hosts-and InsideAirbnb doesn""t have it. Furthermore, while the author uses self-identification data from the Census to identify the race of residents, racial information for Airbnb hosts is not derived from self-identification. As a result, the comparisons between residents and hosts are fundamentally flawed. One of the first lessons of Research 101 is that any legitimate study has to have an experimental group and a control group to measure against. However, this study has no control group. Instead, even setting aside the concerns raised in #1 above, the author only analyzes disparities between residents and Airbnb hosts in Black neighborhoods. Without performing a similar analysis in White neighborhoods, they cannot rule out alternative explanations for the disparity.- It is possible, for instance, that a disproportionate share of Airbnb hosts are White because White New Yorkers are significantly more likely than Black or Hispanic New Yorkers to own their homes (42 percent of Non-Hispanic White New Yorkers own their homes, only 27 percent of Black New Yorkers and 15 percent of Hispanic households own theirs). This leads us to another fundamental flaw in this report: the reliance on the demographic profile of residents, but not the demographic profile of homeowners. In many situations, renters are forbidden""?either by the Multiple Dwelling Law or by the terms of their lease""?to rent out their homes on a short-term basis. This includes all rent-stabilized tenants, as well as tenants in public housing or who use federal or local vouchers to pay rent. These latter groups are disproportionately people of color. In fact, as of January 1, 2015, over 90 percent of NYCHA's population identified as Black or Hispanic. It could be the case that the majority of the residents in at least some of these Black neighborhoods are renters. If so, that begs the question of whether the landlords/owners are also Black, or whether they are of a different race. The report fails to grapple with these facts, even though they could have major bearing on the demographics of the Airbnb host population. Lastly, there is wide and unexplained variability within the Black neighborhoods studied. Specifically, the percentage of Black host listings ranges from 3.9% in Fort Greene to 85.5% in Canarsie. Likewise, the percentage of White host listings ranges from 9.7% in Canarsie to 92% in Fort Greene. No explanation is offered for these wildly varying results. The report uses this flawed methodology to make the sweeping claim that Airbnb is a ""racial gentrification tool.""?Not only does the report fail to make any viable causal link between home sharing and changing demographics, but it ignores the fact that Black New Yorkers have faced considerable pressures for decades prior to Airbnb even entering the New York market.- Between 2000 and 2004, the City lost over 30,000 African-American residents, the first decline since the Draft Riots during the Civil War. In fact, the share of the NYC population identifying as African-American declined 11 percent between 1990-2010, the continuation of a national ""reverse migration""?that began around 1970. Far from being an engine of gentrification, home sharing is helping tens of thousands of families""?including thousands in communities of color""?with the extra money to make ends meet. According to Airbnb's latest host survey, 79 percent of NYC hosts report that home sharing allowed them to stay in their homes, with nearly one-third saying that the extra income helped them avoid eviction. The fact that this report doesn""t bother to grapple with these facts can only make one wonder whether its source""?who has consistently earned the praise of the hotel industry for his ""investigative""?efforts into Airbnb""?is truly the type of impartial, professional researcher who can be trusted to draw informed, substantiated conclusions about home sharing in New York City. - Hon. Michael Nutter Former Mayor of Philadelphia The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1672,2017/2/24,http://www.huffingtonpost.com/jim-wallis/people-of-faith-are-pledging-to-protect-people-under_b_14993440.html,People Of Faith Are Pledging To Protect People Under Threat By Trump's New Policies,"Today, we announce a plan of action.","Many people in our nation, and indeed around the world, are scared by the things happening in Washington. Those most affected by the actions of this administration are especially afraid. But today, we announce a plan of action in response. Immigrant families are faced with an administration crackdown on undocumented people. Children are afraid to go to school, families are avoiding medical facilities, and some people have expressed their fears of even going to church where they might be targeted and detained by Immigration and Customs Enforcement agents ""?whose numbers President Donald Trump and Homeland Security Secretary John Kelly have promised to increase by at least 10,000 as part of a deportation force. Here in our own city of Washington, D.C., a church shelter was targeted. As Sojourners documented last week, ICE officials surrounded, questioned, and detained six Latino men who had just left Rising Hope United Methodist Mission Church's hypothermia shelter. As of this writing, their whereabouts were still unknown, despite the attempts of area activists, faith leaders, and the church's pastor, Rev. Keary Kincannon to obtain information from ICE. READ: Faith Leaders Rally After ICE Detains Group Leaving Church Keary was part of the Sojourners community back when he was a seminarian ""?and, coincidentally, had just preached at Sojourners""?monthly chapel service a few days before. He spoke powerfully of the role we all play in the task of creating God's Kingdom on earth ""As it is in heaven,""?as the Lord Prayer calls us to do. Keary felt both devastated and outraged that their church shelter for the homeless was targeted by the government to locate and detain undocumented immigrants. ""In the 21 years that We're been doing this ministry of sheltering the homeless, I""ve never seen anything like this before,""?he told us. ""��?God makes no distinctions between us whether we'r undocumented or documented. Our role is to love people the way Jesus loves people regardless of their immigration status, regardless of their faith, regardless of their political affiliation; we are just to love all people.""?But loving people in that way may now be against the law under the new administration. Amid these threats, people of faith are pledging to protect and defend undocumented immigrants under attack. READ: 4 Ways to Support Communities Affected by Trump's Immigration Orders Many others are afraid too. Every black parent I know is afraid for their children ""?and that is just a fact that white Christians, many of whom voted for Donald Trump, must understand. Black pastors are concerned about the young people in their communities and their interactions with police. Racial policing is obviously not a new problem in America and Trump didn""t start it, but both the racial rhetoric of his campaign and the appointments he has made have struck fear into the hearts of many. The new president promotes ""law and order""?and ""stop and frisk""?in familiar coded language that racial minorities understand. If there is no accountability from the administration or the Justice Department, for those who would use excessive force against citizens of color ""?and especially young people ""?local churches and clergy pledge to hold their police departments accountable. Muslims are also feeling afraid in light of travel bans they feel are directed at them (understandable, given Trump's past statements). Their fears also stem from increasing incidents of hate speech and threats against them, and the elevation of newly appointed White House officials with records of Islamophobia. Many American Muslims fear that the government will use terrorism as a pretext to attack their civil society organizations in the U.S., ascribing sinister motives to non-profit organizations that do good and important work. But when Muslims are threatened by religious discrimination and persecution, many other people of faith pledge to stand with them. Because of such widespread fear from so many people ""?thousands of people of faith have decided to act. We have created the Matthew 25 Pledge""?just one sentence that simply says: I pledge to protect and defend vulnerable people in the name of Jesus. Matthew 25 is the Gospel text where Jesus says: As you have done to the least of these, you have done to me. At an early morning prayer vigil in front of ICE headquarters in Alexandria, Va., I heard Pastor Keary Kincannon lift up those words from Matthew 25, ""I was a stranger, and you did not welcome me.""?Their Rising Hope Mission Church has signed the pledge. The Matthew 25 Movement is a broad coalition of national faith-based groups, local churches, clergy associations, grassroots activists, heads of denominations, seminaries, Christian colleges, and more. We are focusing on these three groups of people who are especially at risk right now under a Trump administration: undocumented immigrants threatened with mass deportation, as well as refugees who are being banned despite rigorous vetting; African Americans and other people of color threatened by racial policing; and Muslims, threatened with banning, monitoring, and even registration. Before the resource site even launched, more than 15,000 people throughout the country signed the pledge. Our new website, matthew25pledge.com, is a place not just to declare your intent to join this movement, but also a resource to tell you how you can act in defense of vulnerable people. You will find toolkits filled with information and resources on how to support individuals and communities at the local, state, and federal level, including information on the specific legal, policy, and political threats to these groups and how to respond to them ""?information rooted in theological grounding and not partisan politics, and case studies of successful work in these areas. New political policies and practices are creating a direct conflict between church and state. Some of the commands from the White House are directly at odds with the commands of Christ. If the government tells churches that they can""t help, assist, harbor, or welcome immigrants and refugees, they will be putting themselves in direct conflict with Christian ministries and preventing our religious liberty to express obedience to Christ. A gospel text will be the foundation of our actions, not political or partisan motivations. And while our text is from the Christian New Testament, already many rabbis, imams, and people of other faith traditions, or none at all, are seeing the value in the words of Matthew 25 and want to collaborate with the pledge. I don""t normally issue ""Altar calls""?at the end of my columns (though they are sometimes implied!). But in this one I'll do it directly: I appeal to all the readers, friends, allies, and partners of Sojourners to take the Matthew 25 Pledge to ""protect and defend vulnerable people in the name of Jesus.""?You can sign up right here with Sojourners-and/or go directly to matthew25pledge.com for more information. And then ACT in the ways suggested. It's time for people of faith to speak out and act on behalf of those who are afraid because they are the most vulnerable. This is an act of faith for such a time as this. Jim Wallis is president of Sojourners. His book, America's Original Sin: Racism, White Privilege, and the Bridge to a New America, is available now. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1673,2017/2/24,http://www.huffingtonpost.com/2017/02/23/how-loving-v-virginia-blazed-the-trail-for-sweet-love-stories-like-this-one_n_14989376.html,How Loving v. Virginia Blazed The Trail For Sweet Love Stories Like This One,A couple recounts how a Civil Rights tour took them from platonic friendship to their wedding day.,"When the historic Loving v. Virginia case legalized interracial marriage in America in 1967, it changed the lives of countless individuals ""?many of whom wouldn""t realize it until decades later. Bryan Sells and Deneta Howland were children when the Lovings won their Supreme Court battle to legally marry, but the impact of the case would become deeply personal for the two in 2007. Bryan and Deneta's story begins in 1989, when they met in college. For Deneta, the friendship was simply platonic. ""I honestly thought, ""�Well, he's a nice guy,""?but I wasn""t going to date outside my race,""?she told ""the Oprah Winfrey Show""?in 2008. ""I had these ideas about how I wanted my life to be: I knew I wanted brown babies and I was going to marry a black person.""?At first, Deneta's life seemed as if could be headed in that direction. She and Bryan went their separate ways after graduation and began successful careers ""?he became a civil rights attorney in Montgomery, Ala., and she became a doctor in Memphis, Tenn. But, 10 years later, Deneta had the urge to visit Montgomery to go on Civil Rights tours. So, she emailed Bryan out of the blue. Upon reconnecting, Bryan planned out a weekend of Civil Rights tours for Deneta's visit. When the two began exploring those historical sites, Deneta noticed something about her old friend. ""I guess I was surprised throughout our seeing all these different sites just how much they touched him personally,""?Deneta says. ""I saw a little piece of his heart.""?Martin Luther King, Jr.'s words began echoing in her head as well. ""When I think about Dr. King's speeches and all the words that he said, the ones that keep coming back to me is his part in ""I Have a Dream""?speech about being judged not by the color of our skin, but by the content of our character,""?Deneta says. ""I was attracted to Bryan's character and attracted to who he was as a person, and realized I'd been judging him by the color of his skin for 10 years.""?Seven years after that visit, Bryan and Deneta wed. ""It was the Lovings,""?Deneta said, ""who blazed the trail.""?Original air date: Jan. 21, 2008 Share this slide: The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1674,2017/2/24,http://www.huffingtonpost.com/karl-grossman/fighting-aircraft-noise-over-long-island_b_14990734.html,Fighting Aircraft Noise Over Long Island,The East Hampton Airport noise issue has been hot for years.,"The efforts of Long Island, New York's Town of East Hampton to quell aircraft noise involving the town-owned airport have been negated by a federal appeals court. This has resulted in a move to have the town shut down its airport and open the more than 600 acres for other uses. It's an issue affecting many people on Long Island. Helicopters particularly, ferrying passengers between Manhattan and East Hampton, have been flying loud and low over the length of the island creating a terrible racket for folks from Nassau County through western and central Suffolk County and then Suffolk's East End. Each of those counties have a population of 1.3 million. Thus the East Hampton Airport became during the warm-weather months Long Island's biggest noisemaker. With the court's ruling, ""we will again be subject to noise disturbance at any time of day or night,""?says Patricia Currie of Noyac, a co-founder of the new group Say NO to KHTO. (KHTO is the airport's aviation designation.) East Hampton is seeking to go to the U.S. Supreme Court to overturn the ruling. That may be a long shot. ""We cannot let stand unchallenged a decision that completely federalizes our small community airport and strips the town of any meaningful local control of the town-owned airport,""?said East Hampton Supervisor Larry Cantwell following the November ruling. Laying out East Hampton's priorities for 2017 at the town board's organizational meeting last month, Cantwell said: ""the town's diligent efforts to gain local control of the East Hampton Airport through a thoughtful process and adoption of local laws was thwarted by the Second Circuit Court of Appeals nullifying local restrictions.""?He said that ""Absent a lawful strategy to significantly reduce noise, the future of the airport is likely to be called into question,""?And that""�with Say No to KHTO""�is what is happening. ""This huge tract of commercially-zoned land can better serve our community in a variety of ways,""?says Barry Raebeck of Wainscott, with Currie a founder of Say No to KHTO, and its chairman. ""the airport is being operated at a huge cost to the community in lost jobs and lost dollars. We are actually subsidizing the destruction of our own environment and quality of life""�simply to benefit the handful of commercial operators""�This land could be used for wind and solar power generation, for affordable housing, for parks and recreation, and for low-impact businesses""?Communities across the country are struggling against unwanted and unnecessary aircraft intrusion. East Hampton should once again be in the forefront of such socially sensitive and environmentally responsible efforts,""?declares Raebeck. The website of Say No to KHTO (www.saynotokhto.com) says: ""KHTO has become a hub for out-of-state air taxi operators peddling lucrative Hamptons flights, wine included""?Our group consists of noise-affected residents from communities across the East End and those living in western Suffolk and Nassau Counties, up to 100 miles from KHTO, East Hampton's noisy polluting airport.""?Say No to KHTO challenges what it describes as a ""myth""?that the field is economically important to East Hampton. It provides ""About 25 jobs""?and ""generates no revenue for the town or its people.""?All its income must be used at the airport. The town ""Could earn $10 million to $15 million per year, perhaps more, if the property were put to other uses,""?says the group. The East Hampton Airport noise issue has been hot for years. In 2015, aviation interests poured $250,000 into the campaigns of two town board candidates they considered supportive. Both were overwhelmingly defeated. The board thereafter voted on a set of restrictions that included an overnight curfew and limited hours for takeoffs and landings by aircraft which Federal Aviation Administration standards rate as ""noisy.""?The legislation noted that the year before there were a whopping 24,000 complaints about noise from aircraft using the field. ""noise complaints at East Hampton Airport far exceeded the level of complaints at major airports around the country,""?it said. A U.S. District Court first heard the case brought by aviation interests and modified some of the restrictions. But the aviation interests still wanted the entire law eliminated and the federal appeals court in Manhattan complied citing ""Hederal preemption.""?There have been moves elsewhere to close municipal airports. Santa Monica, California, because of noise, has been moving to shut down that city's airport. Chicago got rid of its Meigs Field in 2003""�despite bitter opposition of aviation interests. Mayor Richard Daley ""Ardered city crews to destroy the runway immediately by bulldozing large X-shaped gouges,""?relates an Internet account. The next day he ""defended""?his action saying ""it would save the city the effort of further court battles.""?What was Meigs Field is now a park featuring a 7,500-seat pavilion for music concerts, strolling paths and a beach. State Assemblyman Fred W. Thiele, Jr. of Sag Harbor, an attorney, disagrees with the ruling, issuing a statement that ""the court has expanded federal control at the expense of local government, eroding the concept of home rule. In doing so, the court has now raised the question of whether or not the Town of East Hampton should be in the ""�airport business""?at all. The health and safety of its residents must always take precedence over commercial enterprise.""?The ruling ""Causes all responsible persons to first reconsider whether or not the town should be in the airport business.""?The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1675,2017/2/24,http://www.huffingtonpost.com/2017/02/23/brian-murphy-dog-shot-girlfriend_n_14973366.html,Floridian Tells Police His Dog Shot His Girlfriend,"Diesel fired the gun when he jumped on a nightstand, his owner says.","When police asked a man how his girlfriend got shot in the leg, he blamed the dog. Jacksonville, Florida, police, responding to a 911 call about a shooting Tuesday night, met with Brian Murphy, who told them his dog Diesel had accidentally shot his girlfriend while she was in bed, according to Jacksonville's WJAX-TV. Murphy told officers he and his girlfriend, Summer Miracle, were sleeping when Diesel woke him up wanting to go outside. When-Diesel and Murphy went back into the house, the dog led the way into the bedroom, he said, according to First Coast News. Murphy reported that he then saw a flash and heard a bang. He told police he thinks Diesel-jumped up on a nightstand, causing a gun on it to fire. The bullet from Murphy's gun hit Miracle in the leg. Murphy told police he covered Miracle's wound with a towel before calling 911. Miracle's-not sure how she was shot, according to The Palm Beach Post. She told police she was asleep when the bullet struck her. Miracle was treated at a hospital for injuries that did not appear to be life-threatening. There was no word on whether charges would be filed. Share this slide: The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1676,2017/2/24,http://www.huffingtonpost.com/2017/02/23/oroville-dam-water-infrastructure_n_14970978.html,The Oroville Dam Crisis Has Exposed A Much Bigger Problem,"America's water infrastructure is crumbling, and there's little political will to do much about it.","When the overflowing Oroville Dam in Northern California was threatened due to damage sustained to its spillways earlier this month, about 200,000 people living downstream were evacuated from their homes. The dam did not fail ""?and authorities emphasized that the dam itself remains intact-""?but the crisis still took its toll. Water has continued to flow down the dam's damaged spillways, contributing to erosion of areas below. Though residents living in the evacuation area have been allowed to return to their homes, they are still being told to remain vigilant in the event that another evacuation order is issued. The ongoing situation has served as the latest reminder of the need to invest in the repair of America's infrastructure, particularly its water systems, but it appears that addressing this need has become a lower priority for President Donald Trump's administration. On the campaign trail, Trump promised a $1 trillion infrastructure package to address the nation's crumbling roads, airports, bridges and other projects.- In response to the crisis in Oroville, White House Press Secretary Sean Spicer reiterated that promise, calling the situation a ""gextbook example""?of the need for a major infrastructure ""Averhaul.""But $1 trillion is, of course, a lot of money, and it appears likely that Trump will hold off on asking Congress for it. An Axios article Thursday says that, according to unnamed Republican sources, the president's infrastructure plan will likely be pushed off until 2018.- With the Oroville emergency, massive flooding in New Orleans and the drinking water crisis in Flint, Michigan,-the need to rehabilitate the nation's water infrastructure is urgent.- On its latest infrastructure report card, the American Society of Civil Engineers (ASCE) rated the nation's dams and its drinking water and wastewater systems as Ds ""?nearly failing. The nation's levees earned a D-minus.- To fix the problems will be a massively expensive undertaking. The cost to make needed repairs and expansions to the nation's water systems alone has been estimated by utilities at $1 trillion between now and 2035, and, since federal spending on these systems has stagnated since the 1980s, the money to do what needs to be done is not there.- The Association of State Dam Safety Officials puts the price tag to repair just the 2,000 most deficient, high-hazard dams at $21 billion.- Even if Trump manages to push through a meaningful infrastructure package with the backing of Congress, the question of which types of investments it will prioritize remains an open one. A list of 50 ""priority""?infrastructure projects provided by the National Governors Association to the Trump transition team leaked earlier this year presented a mixed bag of projects.- Peter Gleick, co-founder of the Pacific Institute-think tank on water issues, said the list gave him both hope and concern. ""the wish list is a combination of some important, needed projects and some terrible, uneconomic, environmentally dangerous projects,""?Gleick told The Huffington Post. ""Ty hope is the good projects, and others, get funded and that the bad ones get rejected, but I'm skeptical of Congress being able to figure out which is which in a rational way.""?Some environmental groups are struck by the type of water-related projects included on the list. While the list contained no initiatives to replace lead water pipes in cities like Flint, for example, it does include the contentious-Cadiz water conveyance project, which would involve the building of a 43-mile pipeline to take pumped groundwater from the Mojave Desert to Southern California communities. Despite being touted as a possible solution to drought-related water shortages in the state, the Cadiz project has run into a series of setbacks in recent years.- In 2015, the Interior Department's Bureau of Land Management moved to block-Cadiz Inc.'s push to build the project using an existing railroad right of way. That decision opened up the pipeline's construction to a federal environmental review that will delay-or even derail-it.- Sen. Dianne Feinstein (D-Calif.) has vocally condemned the project. And environmentalists, ranchers and other groups have also expressed their opposition.- Aruna Prabhala is a staff attorney at one of those groups, the Center for Biological Diversity. Prabhala fears that the project, if completed, will harm the health of the Mojave Desert springs, as well as species that live in the area and rely on that water. ""This is not an infrastructure project that is being pushed for public health and safety or to benefit the environment at all,""?Prabhala told HuffPost. ""This is the exact opposite direction of where we should be investing resources.""?Despite that opposition, the controversial project's inclusion on the Trump team's infrastructure list has been a buoy to Cadiz CEO Scott Slater. Slater, who had-downplayed environmental concerns over the project, told The Sacramento Bee this month that he believes it will benefit from the changes in Washington.- Slater's political connections clearly play a role in those changes. As noted by the Bee story, Slater is part of the politically connected law firm Brownstein Hyatt Farber Schreck, where he works alongside former Interior Department solicitor David Bernhardt. Bernhardt served on Trump's transition team and has been rumored to be in line for another leadership post at the Interior Department.- The law firm will also benefit if the Cadiz project succeeds ""?according to a Securities and Exchange Commission filing, the firm will earn 200,000 shares of stock in the company if it is completed, which at today's value would be worth about $3 million. The potential conflicts of interest are alarming to Kara Kaufman, press secretary of the Corporate Accountability International watchdog group.- Kaufman called its inclusion on the transition team list as an indication that the Trump administration is ""Hocused on maximizing benefits for corporations""?instead of the American people at large. ""This project clearly would prioritize the interest of a singular corporation over both people and the environment,""?Kaufman said. ""It's troubling that the Trump administration seems to be providing an opening for this project to go through.""?There has been no indication that the BLM decision on Cadiz will be changing anytime soon, and the Trump administration has yet to formally propose any of the projects listed on the leaked list. Still, Prabhala said, she and her colleagues will closely monitor any developments with the Cadiz project. ""there is a reason this project has not been moving forward. It's not sustainable.""?CORRECTION: This article previously overstated the degree of damage to the Oroville Dam. Language has been amended to better describe the recent crisis. ""��?Joseph Erbentraut covers promising innovations and challenges in the areas of food, water, agriculture and our climate. Follow Erbentraut on Twitter at @robojojo. Tips? Email joseph.erbentraut@huffingtonpost.com. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1677,2017/2/23,http://www.huffingtonpost.com/2017/02/10/kalief-browder-rikers-island_n_14967978.html,"Kalief Browder's Sister Remembers Him As 'Normal Kid,' But Rikers Changed That",She recalled heartwarming memories about his life before his time on Rikers Island.,"""He was a normal kid growing up.""That's how Nicole Browder remembers her youngest brother Kalief. It's been more than a year since 22-year-old Kalief, unable to move on from his torturous-three-year ordeal at Rikers Island, took his own life, but his sister's memories of him are as vivid as ever. Nicole, who is featured in Spike TV's upcoming docuseries ""time: The Kalief Browder Story,""?opened up to The Huffington Post about the relationship she and her late brother shared before he was sent to jail. While Kalief, who was never actually convicted of the crime that would force him into a cell on Rikers, became emblematic of the United States""?flawed criminal justice system, to Nicole, he was just a normal kid from the Bronx. Her bond with her brother ""?who was adopted into the Browder family, just like she was ""?was a typical love-hate sibling relationship. ""He was the youngest, so we would pick on him,""?Nicole said. But being the youngest had its perks too, she recalled. ""I remember he was really picky about his food [and] what he ate,""?she said. ""Ty mother would prepare him special meals... I would get jealous because he would eat Chinese food and we got to eat baloney sandwiches.""?She remembers that Kalief, who was a little small for his age, was sensitive. She remembers that he liked to pull pranks on her as he got older. She remembers his distinct, hearty laugh. ""It was so ugly!""?Nicole giggled, while trying to mimic her brother's throaty chuckle. As a teenager, Kalief was just as ""normal,""?but would sometimes get in trouble over ""silly things,""?Nicole said. He was once arrested for taking a joyride in a bread delivery truck.- ""his friends told him to do it. Peer pressure. And I thought it was hilarious [at the time], but it wasn""t hilarious because he got in a lot of trouble,""?she said. That mistake would have serious implications for her brother shortly thereafter.- In 2010, 16-year-old Kalief was arrested for allegedly stealing a backpack, even though his accuser could not seem to get his story straight. Since Kalief was still on probation from the joyride incident, a judge ordered him to be detained unless his family could make the $3,000 bail. When his family couldn""t pay, he was sent over to Rikers Island Correctional Facility where he would stay awaiting trial for nearly three years, roughly two of which were spent in solitary confinement.- According to The New Yorker, a fight with another inmate spurred Kalief's first experience in solitary, which lasted two weeks. He would be sent back several times during his stay at Rikers. While in ""the bing,""?as it was referred to among inmates, Kalief started to lose weight, faced verbal and physical abuse from officers and attempted suicide multiple times.- When the charges were dismissed and Kalief came home, Nicole realized that her brother wasn""t the same person who had entered the system at 16 years old. Although Kalief had enrolled in classes at Bronx Community College in an attempt to get his life back on track, things started to take a turn for the worse.- Nicole started to notice small tics that Kalief had picked up since his time in jail. She said he would pace around in a square, something his mother assumed he did to pass the time while in his cell at Rikers; he feared the feds were watching him; paranoia seeped into his interactions with his own family. She said he would pick fights with his mother, Venida, the one person who stood by him through the entire ordeal.- The night before he took his life, Kalief seemed to have lost all hope, Nicole said.- ""�One day he told my mom. ""I can""t take it no more,""?Nicole said. The next day Venida Browder found her son hanging from a noose he had fashioned from ripped bed sheets, a technique he had learned and attempted several times during his time at Rikers, The New Yorker reported. The Browder family's $20 million wrongful lawsuit against New York City was put on hold when Kalief's mother-died in 2016, but Nicole believes true justice for her brother has little to do with monetary compensation. ""Justice to me ... is when people start to admit when they are wrong. An apology. Something my mother died [for] and wanted,""?she said. Indeed, Nicole has a grave warning about the predatory criminal justice system:- ""It needs to change, because you know what? You'r going to hear this story again if it [doesn""t] change.""?""time: The Kalief Browder Story""?airs on Spike TV March 1 at 10 p.m. ET/PT. - If you or someone you know needs help, call 1-800-273-8255 for the National Suicide Prevention Lifeline. You can also text HELLO to 741-741 for free, 24-hour support from the Crisis Text Line. Outside of the U.S., please visit the International Association for Suicide Prevention for a database of resources. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1678,2017/2/23,http://www.huffingtonpost.com/2017/02/23/cop-leaves-pump-florida_n_14966516.html,Pumped-Up Florida Deputy Drives Off With Gas Station Souvenir,What a gas.,"A deputy for Florida's Volusia County Sheriff's Office stopped to fill the tank of the squad car on Wednesday and left the gas station with a little souvenir. Here's a hint: It wasn""t doughnuts. The unnamed officer drove off with the actual gas pump, but wasn""t aware of it until a motorist flagged him down, according to the Daytona Beach News-Journal. The good Samaritan also took a pic that was shared by the department on Facebook. It was captioned: ""When you'r just in a hurry to get back on the job. No gas pumps were harmed in the making of this photo.""?Andrew Gant, the department's assistant public information officer, told Orlando station WKMG that the picture was real. Apparently, it began to rain while the deputy was filling up and the officer decided to sit inside the patrol car. He then forgot to remove the pump and simply drove back onto the road. Gant said not to worry about the pump. ""the hose was a quick-disconnect so there was no damage and it was easily reattached,""?he told the News-Journal. The officer is being teased enough as it is, but Volusia County Sheriff couldn""t help adding fuel to the fire with this tweet: He's not in any trouble. Not going to Hose a guy for being Pumped to get back to work https://t.co/QbpJClkLMA Share this slide: The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1679,2017/2/23,http://www.bbc.co.uk/news/world-us-canada-39123474,Trump speech to Congress promises 'renewal of American spirit',"President Donald Trump has said the US is witnessing a ""renewal of the American spirit"", as he delivered his first speech to Congress.","President Donald Trump has said the US is witnessing a ""renewal of the American spirit"", as he delivered his first speech to Congress. Adopting a measured, upbeat tone, the Republican president spoke of a ""new chapter of American greatness"". Mr Trump condemned recent vandalism of Jewish cemeteries and a shooting in Kansas that left an Indian man dead. His primetime address sought to bolster his low approval ratings after a bumpy start to his fledgling presidency. At the outset of Tuesday night's hour-long speech, Mr Trump tackled recent suspected hate crimes, saying ""we are a country that stands united in condemning hate and evil in all its very ugly forms"". On immigration, he dangled the intriguing possibility of a major policy shift towards a goal that eluded his two predecessors, insisting that ""real and positive"" reform was possible. That line came hours after he told news anchors off the record at a White House lunch that he might be open to granting legal status to undocumented immigrants. In his remarks on Capitol Hill, the president also talked tough on the issue, pledging to make US communities safer ""by finally enforcing our immigration laws"". He defended his early actions in office, touting his moves to withdraw the US from the Trans-Pacific Partnership trade deal and order work to start on a US-Mexico border wall. It was a conventional presidential address, delivered conventionally. Any other year, that would be unremarkable. In the age of Trump, however, where the ordinary seems unlikely, Tuesday night's proceedings proved decidedly unexpected. Many of the ideas were the same - the calls for increased border security, the denunciation of illegal immigrants, the pledge to rebuild the US by buying American and hiring American, the warning that US allies must pay their fair share - but the delivery was smoother. For once, Donald Trump's delivery was spoken, not shouted. As is typical of such addresses, the text was light on policy and marinated in cliches and political pabulum, touching on most of Mr Trump's agenda in vague generalities. The president did lay down some markers, however, particularly on priorities in the upcoming healthcare overhaul, the size of his infrastructure spending plan and, at least elliptically, his support for border taxes. In the end Mr Trump did no harm and may have helped ease the concerns of Republicans rattled by a rocky start to his administration. Now Congress has to turn those promises into reality. Even with this speech, it will not be an easy task. Read more of Anthony's takeaway In other highlights: But the most thunderous ovation of the night came when a war widow wept as Mr Trump paid tribute to her husband. Navy Seal Ryan Owens died in a controversial US raid on a suspected al-Qaeda base in Yemen, days into Mr Trump's presidency. Some 25 Yemeni civilians, including children, were also reported to have been killed, leading to questions over the operation's readiness and effectiveness. The navy seal's father refused to meet President Trump when his son's body was returned home last month. ""Ryan's legacy is etched into eternity,"" Mr Trump told the grieving Carryn Owens, who sobbed and looked upwards. It was one of the rare moments when lawmakers on both sides of the aisle applauded. Despite the president's appeal for both parties to ""unite for the good of our country"", Democratic lawmakers mostly sat in silence or openly laughed at parts of the speech. Mr Trump's feel-good rallying cry for national unity, some noted, was in stark contrast to his doom-laden inauguration speech of a month ago. In his concluding remarks, the president - whose political honeymoon has been soured by acrimonious spats with the media - said ""the time for trivial fights is behind us"". Among US First Lady Melania Trump's special guests in the gallery were three California residents whose relatives were killed by people in the US illegally. At least a dozen Democrats brought as their guests young undocumented immigrants who came to the US as children. Former Kentucky Governor Steve Beshear delivered the Democratic rebuttal to the speech, accusing Republicans of planning to ""rip affordable health insurance"" from Americans and being ""Wall Street's champion"". In a Fox News interview broadcast earlier on Tuesday, Mr Trump gave himself an overall ""A plus"" for effort, adding that ""in terms of messaging, I would give myself a C or a C plus"". According to a CNN/ORC poll of about 500 speech watchers, 57% said they had had a very positive reaction to President Trump's Congress address, with seven out of 10 saying they believed his policies would move the US in the right direction. His popularity, however, has hit a historic low for modern presidents after a month in office - just 44% of Americans think he is doing a good job, according to RealClearPolitics. Mr Trump's young presidency has been overshadowed by missteps including a high-profile court defeat to his controversial travel ban and the firing of a top aide.", -1680,2017/3/1,http://www.bbc.co.uk/news/world-us-canada-39124977,Democrats unimpressed with Trump speech to Congress,,"Donald Trump called for unity in his first presidential address to Congress, but Democrats were noticeably stony-faced. Female Democratic lawmakers chose to wear white in protest to highlight women's rights issues.", -1681,2017/3/1,http://www.bbc.co.uk/news/world-europe-39125941,French election: Francois Fillon faces charges,"French centre-right presidential candidate Francois Fillon has said he will fight on, as he announced that a judge was placing him under formal investigation.","French centre-right presidential candidate Francois Fillon has said he will fight on, as he announced that a judge was placing him under formal investigation. For weeks, he has fought allegations that his wife was paid for years for work she did not do. He has now been summoned to appear before the judge, Serge Tournaire, on 15 March. ""It's a political assassination,"" Mr Fillon complained. ""But it's not just me that is being assassinated, it's the presidential election. The voices of millions of votes have been muzzled."" Mr Fillon said he would respect the summons and tell the judge the truth. In a combative speech, the Republican candidate vowed not to give in but to fight to the end, urging voters to follow him. A former prime minister during Nicolas Sarkozy's presidency, he was selected late last year in national primaries held by the centre-right Republicans that attracted some four million voters. For a time he was the favourite in the race to succeed Francois Hollande as president, but then came the ""fake jobs"" allegations in satirical weekly Le Canard Enchaine. He has slipped to third in the polls, behind far-right National Front (FN) leader Marine le Pen and centrist Emmanuel Macron. His appearances have recently been accompanied by loud protests and he has accused the government of allowing the campaign to turn into ""a climate of quasi civil war"". The allegations circling around the Fillon family focus mainly on his Welsh-born wife Penelope. Le Canard Enchaine alleged she was paid �131,400 (?710,000; $900,000) over several years for working as a parliamentary assistant but reportedly had no parliamentary pass. She was also alleged to have picked up �100,000 for writing a handful of articles for a literary journal. The family has consistently denied the claims. Initially Mr Fillon said he would stand down as a candidate if his case was placed under formal investigation, but recently he insisted that he would fight on ""until victory"". ""The closer we get to the date of the presidential election, the more scandalous it would be to deprive the right and centre of a candidate,"" he said.", -1682,2017/3/1,http://www.bbc.co.uk/news/education-39116783,Sex education to be compulsory in all England's schools,"Sex and relationships education is to be made compulsory in all schools in England, the government has announced.","Sex and relationships education is to be made compulsory in all schools in England, the government has announced. All children from the age of four will be taught about safe and healthy relationships, Education Secretary Justine Greening said. Children will also be taught, at an appropriate age, about sex. But parents will still have the right to withdraw their children from these classes. Until now, sex education has been compulsory only in council-run schools. Since academies and free schools are not under local authority control, they do not have to follow the national curriculum and have not been obliged to teach sex and relationships education (SRE). In practice, the vast majority do teach the subject - the government's announcement will mean all schools across the system will be bound by the same obligation. Age-appropriate lessons will have particular emphasis on what constitutes healthy relationships, as well as the dangers of sexting, online pornography and sexual harassment. In a written statement, Ms Greening said: ""The statutory guidance for SRE was introduced in 2000 and is becoming increasingly outdated. ""It fails to address risks to children that have grown in prevalence over the last 17 years, including cyberbullying, 'sexting' and staying safe online. ""Parents will continue to have a right to withdraw their children from sex education. ""Schools will have flexibility over how they deliver these subjects, so they can develop an integrated approach that is sensitive to the needs of the local community; and, as now, faith schools will continue to be able to teach in accordance with the tenets of their faith."" The news was welcomed by Russell Hobby, general secretary of school leaders' union NAHT, who said age-appropriate SRE would prepare young people for the challenges they faced. ""It is so important for young people to be taught about appropriate relationships, and the duties set out today bring that one step closer."" Malcolm Trobe, interim general secretary of the Association of School and College Leaders, urged the government to give schools the freedom to be innovative and flexible in the way they approached the subject. ""We do not believe it is necessary for the government to provide standardised frameworks or programmes of study, and we would urge ministers against being too prescriptive,"" he said. The Right Reverend Stephen Conway, the Church of England's lead bishop on education, said he supported age-appropriate SRE. ""In an age when even primary school children are becoming exposed to online pornography - often by accident - and when practices such as sexting are becoming commonplace at a younger and younger age, we cannot simply advocate an approach like the three monkeys covering their eyes, ears and mouths, vowing to see, hear or speak no evil. ""If we want children to build resilience it is important to start young, teaching them about strong and healthy relationships."" But the Safe at School Campaign described the announcement as a ""tragedy"". National co-ordinator Antonia Tully said: ""Parents will be absolutely powerless to protect their children from presentations of sexual activity, which we know is part of many sex education teaching resources for primary school children. ""The state simply cannot safeguard children in the same way that parents can. This proposal is sending a huge message to parents that they are unfit to teach their own children about sex."" Ms Greening's announcement follows a widespread campaign by charities, MPs and local authorities, calling for (SRE) to be made a statutory for all schools. At the end of last year, the chairmen and women of five different Commons select committees called on Ms Greening to make SRE a statutory subject. Their call came after a report from the Women and Equalities Committee showed that sexual bullying was a significant problem in schools. Last month, the Local Government Association said the lack of sex and relationships education in some of England's secondary schools was creating a ""ticking sexual health time bomb"".", -1683,2017/3/1,http://www.bbc.co.uk/news/uk-39118523,New drivers caught using phones to lose licence,"Drivers caught using a phone within two years of passing their test will have their licence revoked under new rules in England, Scotland and Wales.","Drivers caught using a phone within two years of passing their test will have their licence revoked under new rules in England, Scotland and Wales. Penalties for using a phone at the wheel double from 1 March to six points and a ?200 fine. New drivers who get six points or more must retake their practical and theory. More experienced drivers can be banned if they get 12 points in three years. The tougher punishments come alongside a hard-hitting advertising campaign. In 2015 - the latest year for which figures are available - 22 people were killed and 99 seriously injured in accidents where a driver was using their phone. Police forces have begun a seven day crackdown, with extra patrols and an ""increased focus"" on stopping people using their phones while driving. About 3,600 drivers were handed penalties in the last co-ordinated enforcement week from 23-29 January, the Department for Transport said. Adverts aimed at discouraging phone use have been developed by the government's road safety group Think! and the AA Charitable Trust, and will be shown at cinemas and on billboards, radio and social media. In one, a drunk man suggests he swap places with his sober girlfriend, who is texting while driving him home. The film ends with the message: ""You wouldn't drink and drive. Don't text and drive."" Paul Newman's sister Ellen was 46 when she was killed just yards from her house in January 2005. Speaking to BBC Radio 4's Today programme, Mr Newman said: ""She was on a shopping trip, walking back home on a pavement and a car left the road and ploughed into her - up to 30 feet into a field. And we lost a beautiful sister. ""We'd go home to an empty house ""?it destroyed us. It destroys families - it destroys people"". The young driver was using his mobile phone when he lost control of his car. ""He didn't even go to prison - he was a young lad, quite arrogant, no remorse,"" said Mr Newman. Ellen was a fantastic doting mother and grandmother to three lovely girls, ""who still ask for their nanna today"", he added. Emily Carvin's mother Zoe was killed 11 years ago when an HGV driver crashed into her car. She said her mother was approaching some temporary traffic lights when the HGV came up behind her at 60mph. He had failed to see the traffic lights because he was on his phone. Zoe died of head injuries after the pillar where the seat belt was fixed caved in on her. Emily, along with her father Paul and brother Ben, feature in the government's campaign. ""People use the word accident,"" Paul says in a film, Life without Zoe. ""It wasn't an accident. It didn't come about by accident. It was a road crash caused by somebody doing something that he shouldn't have been doing."" ""I often talk to her, telling her about things that have happened...things that the children have done, how proud she would have been."" Ben adds: ""There's nothing so important that it cannot wait. Don't use your phone."" Transport Secretary Chris Grayling said: ""It may seem innocent, but holding and using your phone at the wheel risks serious injury and even death to yourself and other road users. ""Doubling penalties will act as a strong deterrent to motorists tempted to pick up their phone while driving and will also mean repeat offenders could find themselves banned from our roads if they are caught twice."" Calls to prevent drivers using phones intensified last year in the wake of several high-profile cases and research indicating that it was widespread. In October, lorry driver Tomasz Kroker, who killed a mother and three children while distracted by his phone, was jailed for 10 years. Edmund King, president of the AA, said too many drivers were addicted to their phones. ""We need to break this addiction and the best way is for drivers to go cold turkey - turn off the phone and put it in the glove box."" Chief Constable Suzette Davenport, National Police Chiefs' Council roads policing lead, said: ""We need people to understand that this is not a minor offence that they can get away with.""", -1684,2017/3/1,http://www.bbc.co.uk/newsbeat/articles/39125727,Beauty and the Beast to feature Disney's first gay character and love scene,The live-action remake of Beauty and the Beast will feature Disney's first ever gay character and love scene.,"The live-action remake of Beauty and the Beast will feature Disney's first ever gay character and love scene. US actor Josh Gad plays LeFou, a sidekick of the film's main antagonist Gaston. LeFou tries to come to terms with feelings for Gaston that swing between lust and admiration, as a side-plot to the main story. When the first Beauty and the Beast trailer was released last year it had almost 130 million views in 24 hours. Disney are calling it their first ever ""exclusively gay moment"" on film. Speaking with Attitude Magazine , director Bill Condon believes LeFou's role breaks new ground when it comes to LGBT visibility on screen. 'It's somebody who's just realising that he has these feelings. And Josh makes something really subtle and delicious out of it,"" he said. ""And that's what has its pay-off at the end, which I don't want to give away. ""But it is a nice, exclusively gay moment in a Disney movie."" Emma Watson plays Belle, the young girl who falls in love with a monstrous beast with a dark secret. Her suitors - the Beast and Gaston - are played by Brit stars Dan Stevens and Luke Evans. The cast includes Ewan McGregor, Gugu Mbatha-Raw, Kevin Kline and Stanley Tucci. Watson has previously spoken about how she wanted to make the role of Belle more feminist. The animated version of Beauty and the Beast came out in 1991, while the new version is released in the UK on 17 March. Matt Cain, the editor of Attitude, said the film breaks new boundaries. 'It may have been a long time coming but this is a watershed moment for Disney,"" he told Newsbeat. He believes there's more that needs to be done to create cinema that reflects real life. ""It's a step in the right direction and I applaud Disney for being brave enough to make it,"" he said. ""In doing so, it will hopefully help to change attitudes and bring about real social progress."" Find us on Instagram at BBCNewsbeat and follow us on Snapchat, search for bbc_newsbeat", -1685,2017/3/1,http://www.bbc.co.uk/news/uk-england-39125866,Corrie Mckeague: Man arrested over missing serviceman,Police looking for airman Corrie Mckeague have arrested a man on suspicion of attempting to pervert the course of justice.,"Police looking for airman Corrie Mckeague have arrested a man on suspicion of attempting to pervert the course of justice. The 23-year-old, from Dunfermline, Fife, went missing on a night out in Bury St Edmunds, Suffolk, last year. A 26-year-old man was arrested on Wednesday. The man is not the driver of the bin lorry which collected refuse from the area where Mr Mckeague was last seen, Suffolk Police said. He is not related to the missing gunner, who was based at RAF Honington, the force confirmed. For the latest on this story visit our Suffolk live page Work is continuing on a landfill site at Milton, near Cambridge, ahead of a police search, which is now likely to start in the next seven days. Officers have issued CCTV footage of two people who were seen on foot in Brentgovel Street or the ""horseshoe"" area of the town, around the time of the last sighting of him. Det Supt Katie Elliott said: ""We are continuing to make progress on the investigation and we will be starting the landfill site search as soon as the preparatory work is complete. ""We have been carrying out a lot of inquiries behind the scenes and our work continues to find the truth about what happened to Corrie."" Mr Mckeague had met up with friends on 24 September before heading to a number of bars and Flex nightclub on St Andrew's Street at about 00:30 BST. He was asked to leave half an hour later and went to Pizza Mamma Mia on St Andrew's Street North. He then took a nap for about two hours in a electrical shop doorway. At around 03:25, he walked into the ""horseshoe"" loading bay area. It has been proven an individual cannot leave the area on foot without being seen on CCTV, but Mr Mckeague was not caught on camera again.", -1686,2017/3/1,http://www.bbc.co.uk/news/uk-england-merseyside-39124787,Liverpool Lime Street trains wall collapse halts trains,"No trains will run in or out of Liverpool Lime Street station ""for several days"" after a wall collapsed on to the railway.","No trains will run in or out of Liverpool Lime Street station ""for several days"" after a wall collapsed on to the railway. A section of trackside wall ""loaded with concrete and cabins by a third party"" fell, blocking all four lines into the station, Network Rail said. The collapse on Tuesday evening left rubble strewn across the tracks and overhead wires damaged. Commuters and travellers are being urged to seek alternative routes. All services from Liverpool Lime Street to Manchester, Warrington and Wigan are suspended, although some replacement buses are in operation. Live updates on this and other stories in Merseyside A Network Rail spokesman said: ""An extensive clear-up needs to take place to make the location safe before repairs to the overhead wires can be undertaken. ""Early indications suggest train services will not resume for several days while extensive clear-up and repairs take place to make the location safe."" Engineers are making a detailed assessment of the damage, but have indicated the line might not reopen until Monday. Simon Evans, from Network Rail, said: ""It was extremely wet yesterday as there was a lot of rain and we've established that the person who occupies the property on the other side of the wall appears to have put a lot of concrete and cabins on top of this wall. ""At this stage it's unclear as to why it collapsed but it does appear that may have had something to do with it."" Liverpool Lime Street is the main station serving the city centre. Lastest updates from National Rail.", -1687,2017/3/1,http://www.bbc.co.uk/news/39124003,Georgia couple who threatened black family sob in court,,"A couple have been jailed after they made death threats and uttered racist slurs at a child's eighth birthday party in the US state of Georgia. Jose Torres, 26, and Kayla Norton, 25, both wept as a judge handed down prison sentences of 13 years and six years respectively.", -1688,2017/2/28,http://www.bbc.co.uk/news/technology-39126027,Facebook artificial intelligence spots suicidal users,Facebook has begun using artificial intelligence to identify members that may be at risk of killing themselves.,"Facebook has begun using artificial intelligence to identify members that may be at risk of killing themselves. The social network has developed algorithms that spot warning signs in users' posts and the comments their friends leave in response. After confirmation by Facebook's human review team, the company contacts those thought to be at risk of self-harm to suggest ways they can seek help. A suicide helpline chief said the move was ""not just helpful but critical"". The tool is being tested only in the US at present. It marks the first use of AI technology to review messages on the network. Founder Mark Zuckerberg announced last month that he also hoped to use algorithms to identify posts by terrorists among other concerning content. Facebook also announced new ways to tackle suicidal behaviour on its Facebook Live broadcast tool and has partnered with several US mental health organisations to let vulnerable users contact them via its Messenger platform. Facebook has offered advice to users thought to be at risk of suicide for years, but until now it had relied on other users to bring the matter to its attention by clicking on a post's report button. It has now developed pattern-recognition algorithms to recognise if someone is struggling, by training them with examples of the posts that have previously been flagged. Talk of sadness and pain, for example, would be one signal. Responses from friends with phrases such as ""Are you OK?"" or ""I'm worried about you,"" would be another. Once a post has been identified, it is sent for rapid review to the network's community operations team. ""We know that speed is critical when things are urgent,"" Facebook product manager Vanessa Callison-Burch told the BBC. The director of the US National Suicide Prevention Lifeline praised the effort, but said he hoped Facebook would eventually do more than give advice, by also contacting those that could help. ""It's something that we have been discussing with Facebook,"" said Dr John Draper. ""The more we can mobilise the support network of an individual in distress to help them, the more likely they are to get help. ""The question is how we can do that in a way that doesn't feel invasive. ""I would say though that what they are now offering is a huge step forward."" Ms Callison-Burch acknowledged that contact from friends or family was typically more effective than a message from Facebook, but added that it would not always be appropriate for it to inform them. ""We're sensitive to privacy and I think we don't always know the personal dynamics between people and their friends in that way, so we're trying to do something that offers support and options,"" she said. The latest effort to help Facebook Live users follows the death of a 14-year-old-girl in Miami, who livestreamed her suicide on the platform in January. However, the company said it had already begun work on its new tools before the tragedy. The goal is to help at-risk users while they are broadcasting, rather than wait until their completed video has been reviewed some time later. Now, when someone watching the stream clicks a menu option to declare they are concerned, Facebook displays advice to the viewer about ways they can support the broadcaster. The stream is also flagged for immediate review by Facebook's own team, who then overlay a message with their own suggestions if appropriate. ""Some might say we should cut off the stream of the video the moment there is a hint of somebody talking about suicide,"" said Jennifer Guadagno, Facebook's lead researcher on the project. ""But what the experts emphasised was that cutting off the stream too early would remove the opportunity for people to reach out and offer support. ""So, this opens up the ability for friends and family to reach out to a person in distress at the time they may really need it the most."" The new system is being rolled out worldwide. A new option to contact a choice of crisis counsellor helplines via Facebook's Messenger tool, however, is limited to the US for now. Facebook said it needed to check whether other organisations would be able to cope with demand before it expanded the facility. ""Their ongoing and future efforts give me great hope for saving more lives globally from the tragedy of suicide,"" said Dr Dan Reiden executive director of Save.org, which is involved in the initiative. ""The opportunity for prevention, even with Facebook Live, is better now than ever before."" If you are depressed and need to ask for help, there's advice on who to contact at BBC Advice. Alternatively, call Samaritans on 116123 or Childline on 0800 1111.", -1689,2017/3/1,http://tass.com/economy/933446,Russia's investments into augmented and virtual reality surge 3.5 times in 2016,"The number of proactively growing companies in Russia rose from 60 to 183 throughout the year of 2016, according to a research","MOSCOW, March 1. /TASS/. Total investments into augmented reality and virtual reality (AR&VR) surged 3.5 times year-on-year to 700 mln rubles ($12.1 mln) in Russia last year, the Augmented and Virtual Reality Association (AVRA) said in its research released on Tuesday. According to the research, the number of proactively growing companies in Russia rose from 60 to 183 throughout the year of 2016, including 105 in Moscow and 25 in St. Petersburg. Small studios (with the staff from 3 to 20) are main drivers of the AR&VR industry, while Russian majors are still reluctant to do in-house developments. Educational, entertainment, architecture and other spheres joined traditional advertising and marketing in use of AR&VR technologies. ""The AR&VR industry is dynamically monetizing; it is progressively turning from the exotica into the business,"" the research says.", -1690,2017/3/1,http://tass.com/sport/933445,Russia's Sharapova handed wildcard for WTA tennis tournament in Rome,Russian tennis star Maria Sharapova earlier picked up wildcards for the tennis tournaments in Stuttgart and Madrid,"MOSCOW, March 1. /TASS/. Russian tennis star Maria Sharapova was granted a wildcard permitting her to enter the main draw of the tennis tournament in Rome, Internazionali BNL D'Italia, which offers $2.77 million in prize money up for grabs, the tournament's organizers announced on Wednesday. ""We officially announce the Wild Card for the 3 times Rome's Champion Maria Sharapova into the main draw of the 2017 tournament,"" the organizers stated in their Twitter account. We officially announce the Wild Card for the 3 times Rome's Champion @MariaSharapova into the main draw of #ibi17! #tennis #WTA #Sharapova pic.twitter.com/bxrPrjI6fJ Sharapova, who is the three-time Internazionali BNL D'Italia champion grabbing the most recent title in Rome in 2015, earlier picked up wildcards for the tennis tournaments in Stuttgart and Madrid as she is making her return to the circle of the WTA (Women Tennis Association). The tournament in Italy, scheduled to be held between May 15 and 21, will be Sharapova's third this year following Stuttgart and Madrid. Currently serving a provisional suspension, Sharapova is set to make her comeback following a doping ban on April 26 at the tennis tournament in Stuttgart. The tennis player has been serving a two-year suspension for the violation of anti-doping regulations since January 26 last year. However, the Swiss-based Court of Arbitration for Sport (CAS) ruled on October 4, 2016 to reduce her suspension term from 24 to 15 months. In March last year, Sharapova announced that her doping tests revealed the presence of banned performance enhancing drug meldonium in the body system. Following the announcement, former World's No. 1 was provisionally suspended from all tennis-related activities, including from the 2016 Summer Olympics in Brazil. Sharapova is Russia's most decorated tennis player having won a total of five Grand Slam tournaments, namely Australian Open in 2008, French Open in 2012 and 2014, Wimbledon in 2004 and US Open in 2006. She is also a silver medal winner of the 2012 Summer Olympics in London and the 2008 Federations Cup champion. Sharapova tops Forbes list of world's highest-paid female athletes ", -1691,2017/3/1,http://tass.com/science/933442,Russian scientists discover Siberian fir can help cure cancer,"To study the influence of Siberian fir terpenoids on the cellular ageing process, the scientists utilized the technique of transplanting cells into a new medium","MOSCOW, March 1. /TASS/ Researchers from V.A. Engelhardt Institute of Molecular Biology and the Moscow Institute of Physics and Technology (MIPT) studied the influence of terpenoids (class of naturally occurring organic compounds) extracted from Siberian fir on senescent and cancer cell lines on a genetic level, MIPT's press office reported. The treatment with terpenoids contained in fir increases the activity of genes responsible for the regeneration of tissues and controlling tumors. The growth of a tumor in old cells can be suppressed down to the level normally observed in young cells. Results of the study were published in an article in the journal, Oncotarget. Terpenoids in large quantities can be found in conifers and protect them from diseases and pests, as well as from various unfavorable factors found in the natural environment such as overheating, cooling, damage and so forth. To study the influence of Siberian fir terpenoids on the cellular ageing process, the scientists utilized the technique of transplanting cells into a new medium. In the experiments, the researchers used fibroblasts, cells of conjunctive tissue of a body. Once every 2-3 days, when the cells had built up a continuous layer and reached a high density, a part of cell culture was separated from the surface and carried into a vessel with a new breeding ground. During this period, the cells have enough time to divide. So, the more transplants the cell cultures underwent, the more times it divided, and consequently, aged. The scientists used this technique as a model for ageing. It appeared that in the old genes treated with terpenoids, the activity of genes responsible for the assembling, packing, and transporting of complex proteins, and for recycling of old ones, had increased by a factor of 1.5-3. Moreover, the activities of genes controlling the process of cellular death and tissue regeneration rose as well. Moreover, the terpenoids increased the activity of three genes from the GADD45 and DUSP8 gene families, which are closely connected to the suppression of tumor development and extending a person's lifespan. The mutations in genes GADD45 are often accompanied by the appearance and progression of malignant tumors and influence the effects of chemotherapy treatment, whereas the genes of the DUSP family are responsible for the suppression of tumors and for the efficiency of chemotherapy. Consequently, in this study, the potential geroprotectors and anti-cancer properties of Siberian fir terpenoids were revealed, which when put into perspective, will broaden the application range of these substances.", -1692,2017/3/1,http://tass.com/politics/933441,"Russia won""t be drawn into arms race, senate speaker says",The speaker has commented on the news that the United States would boost its military spending,"MOSCOW, March 1. /TASS/. Russia won""t be drawn into the arms race but will take sufficient measures to strengthen its own security, Speaker of the upper house of Russia's parliament Valentina Matviyenko said on Wednesday. The speaker thus commented on the news that the United States would boost its military spending. ""we'll watch the developments closely but we won""t be drawn into the arms race and at the same time we'll take sufficient measures to strengthen our national security,"" she said. The speaker stressed that the goal of strengthening national security was one of the state's main tasks. The Russian Senate speaker also said it was unclear yet, on which defense budget items the United States wanted to spend additional funds. ""We need to see and then make conclusions,"" she said. The speaker said at the same time she was confident that the efforts of countries should be aimed at disarmament, adding that any increase in military spending might lead to a new arms race.", -1693,2017/3/1,http://tass.com/world/933440,Meeting of Contact Group on Ukraine begins in Minsk,"Meeting of the four subgroups on the political, economic issues, humanitarian issues and security began in Minsk earlier","KIEV, March 1. /TASS/. A meeting of the Contact Group on settling the situation in eastern Ukraine has begun in the Belarusian capital of Minsk, said Darya Olifer, spokesman for Kiev's representative to the Group Leonid Kuchma. ""A meeting of the Trilateral Contact Group has begun in Minsk,"" she wrote on Facebook. Meeting of the four subgroups on the political, economic issues, humanitarian issues and security began in Minsk earlier on Wednesday.", -1694,2017/3/1,http://tass.com/economy/933439,Antimonopoly watchdog to insist on Google's performance of order for settlement signing,"The fine may be probably reduced, according to the head of the service Igor Artemyev","MOSCOW, March 1. /TASS/. Russian Federal Antimonopoly Service will insist on performance of its order by Google for settlement signing, head of the service Igor Artemyev told reporters on Wednesday. ""We will insist on fulfillment of our order,"" Artemyev said. The fine may be probably reduced, the official said. ""The fine is not the most significant for us, although it is important for budget replenishment. It is important for us to restore competition on the market,"" he added. The fine may be probably reduced, the official said. ""The fine is not the most significant for us, although it is important for budget replenishment. It is important for us to restore competition on the market,"" he added. ""We said the doors are still open, despite this long wandering story. We would like to demonstrate once again the doors are open for all and such accommodating initiatives may be put forward at any time, because we believe nevertheless a rupture is not preferable to a patchwork peace,"" Artemyev said. The regulator resorted to an ""unprecedented thing"" although FAS received Goggle's application for settlement literally on the verge of the court session, the official said. If Google is ready for a settlement providing real performance of FAS order, the regulator will agree upon it with the company on FAS conditions, Artemyev added. Google approached FAS with a proposal to make a settlement, the regulator said on Tuesday. Conditions of the settlement have not been discussed yet, FAS said earlier. In September 2015, the Federal Antimonopoly Service ruled that Google Inc. and Google Ireland Ltd. had breached the competition protection law under the complaint of the Russian Internet company Yandex. According to the regulator, Google obliged manufacturers of Android OS-based devices to pre-install its applications together with Android platform. FAS said that Google's policy restricted installation of applications by other developers. Google did not agree with the ruling and appealed to the court. On September 29, 2016, Google started notifying Russian users of the Android devices about the possibility of changing the search engine, deactivating pre-installed applications, installing third-party services (including third-party search engines and widgets, email, calendar, and other services) and changing position of application icons. Google noted it continues to work with FAS on technical execution of their orders. Google lodged an appeal against the court judgement in favor of FAS regarding the case on abusing dominant position. Head of Russia's antimonopoly regulator Igor Artemyev also said earlier that the US company was delaying performance of the regulator's order by its lawsuits.", -1695,2017/3/1,http://tass.com/politics/933433,Lavrov expects Geneva talks on Syria to be successful,The Russian top diplomat says the UN Security Council Resolution 2254 is the main topic of the Geneva talks,"MOSCOW, March 1. /TASS/. Moscow hopes that the Geneva talks on settling the Syrian crisis will not be disrupted, Russian Foreign Minister Sergey Lavrov said on Wednesday. According to him, the UN Security Council Resolution 2254 is the main topic of the Geneva talks. ""I don""t think that the agenda of the Geneva talks needs further consideration. The agenda has been outlined by the decisions of the UN Security Council, first and foremost, by the Resolution 2254,"" he added. ""The political agenda is based on the need to form a unified view of the transition period in Syria and agree on some kind of a national unity government. According to the UN Security Council Resolution, any decisions can only be made if Damascus and all the opposition groups come to terms,"" the Russian top diplomat noted. ""After that, the political process envisages that joint efforts should be made to draw up a new Syrian constitution and then, early general elections should be conducted."" Lavrov noted that the same resolution ""demands an uncompromised fight against terrorism as well as the separation of the moderate opposition from terrorists."" ""All other steps will be hard to take if we do not understand who is a legitimate member of the political process and who is not,"" the Russian foreign minister added. ""We can""t let extremists blacklisted by the UN Security Council enter the political process. Besides, it will be hard to reach agreements on ensuring the representation of every ethnic, religious and political group in state agencies if we are not sure that Syrians are ready to agree on a constitution,"" Lavrov said. ""It is all connected, if the war on terror is not included, the agenda of the Geneva talks will not be in line with the Resolution 2254. However, as far as I know, participants to the Geneva talks have come to realize they need to find approaches that would correspond with the Resolution 2254, including the need to fight terrorism,"" Lavrov added. ""I hope that the Geneva talks will not be disrupted, as well as the Astana talks, and will continue to play an important role in facilitating the process of settling the Syrian crisis,"" the Russian top diplomat concluded. Some Arab states recognize that the decision to suspend Syria's membership of the League of Arab States was a mistake, he went on.- ""We are strongly in favor of such reconciliation (between Damascus and its neighbors in the region - TASS). In the final count it is their destiny to live together side by side. They have a common enemy - terrorism and extremism,"" Lavrov said. Regrettably, at the very beginning of the Syrian crisis those Arab countries which wished Damascus's expulsion from the LAS gained the upper hand. Today Damascus is not represented in that pan-Arab organization, Lavrov said, adding that in a situation like that the opportunities for a dialog, including an informal, pragmatic dialog were considerably restricted. ""Some Arab partners recognize, not very loudly for the time being, but in informal contacts, that it was a mistake,"" he said. ""Under any circumstances we wish this dialog to develop and all Syrian parties without exception and foreign actors to be guided by the settlement concept contained in Resolution 2254, which implies comprehensive approach to the struggle with terrorism and political reforms. Political reforms should rely exclusively on mutual consent by the government and the entire opposition spectrum,"" Lavrov said. Syria's membership of the League of Arab States was suspended in November 2011.", -1696,2017/3/1,http://tass.com/economy/933429,Statistics shows Russia became main investor in Ukraine in 2016,,"KIEV, March 1. /TASS/. Russian businessmen invested $1.67 bln or 38% of total foreign investments in-Ukraine's economy, Ukrainian state statistics service (Gosstat) said on Wednesday. Ukraine received $4.4 bln of foreign direct investments in total throughout 2016, up $642 mln year-on-year. Investments of EU countries in Ukraine were $1.9 bln (or about 45% of the total amount). The most significant investments were made in financial and insurance institutions ($2.8 bln), wholesale and retail trade ($524.9 mln) and industry (475 mln).", -1697,2017/3/1,http://tass.com/defense/933426,Russia's Airborne Force to take part in international drills this year,"Six exercises will be held outside Russia: on the territory of Armenia, in Nicaragua and Belarus","PSKOV, March 1. /TASS/.Russia's Airborne Force will take part in nine international drills this year, including six exercises outside the country, Airborne Force Commander Colonel-General Andrei Serdyukov said on Wednesday. ""In 2017, Airborne Force units will take part in nine joint exercises with units of the armed forces of foreign states in compliance with a plan of the Russian Defense Ministry's international activity. Six exercises will be held outside our country: on the territory of Armenia within the framework of the CSTO [Collective Security Treaty Organization], and also in Nicaragua and Belarus,"" the general said. In Russia, the Airborne Force is expected to participate in two joint drills: one with the Belarusian Special Operations Forces and the other with servicemen of Egypt, the commander said. An active phase of the joint drills of the Russian Airborne Force and the Belarusian Special Operations Forces has begun in the Pskov Region in northwest Russia on Wednesday. The drills involve over 1,000 troops and aircraft of the Russian Aerospace Force, including Kamov Ka-52 attack helicopters and Sukhoi Su-27 fighter jets. The drills will come to a close on March 4. Post-Soviet military bloc drills ", -1698,2017/3/1,http://tass.com/politics/933403,"Russia hopes for wider trading, military-technical ties with Niger","Sergey Lavrov said he hoped to discuss with his Niger counterpart ""the entire range of bilateral issues and interaction in the international scene""","MOSCOW, March 1. /TASS/. Russia is interested in expanding trading, economic and military-technical ties with Niger, Russian Foreign Minister Sergey Lavrov said at a meeting with Niger's Foreign Minister Ibrahim Yacoubou. Lavrov recalled that in February the two countries marked the 45th anniversary of diplomatic relations. ""Russia is interested in strengthening friendly relations with Niger, advancing the political dialog and looking for ways of expanding trading, economic and military-technical ties,"" Lavrov said. ""We see eye to eye on most topical issues on the current agenda - both international and regional ones,"" Lavrov said. ""We take note of the fact that our Niger friends take into account Russia's approaches in the context of their participation in multilateral forums. For our part we pay the closest attention to the opinion of our African partners."" Lavrov said he hoped to discuss with his Niger counterpart ""the entire range of bilateral issues and interaction in the international scene.""", -1699,2017/3/1,http://www.dw.com/en/in-firey-speech-fillon-refuses-to-quit-french-presidential-race/a-37758682?maca=en-rss-en-all-1573-rdf,"In firey speech, Fillon refuses to quit French presidential race","Center-right candidate Francois Fillon called an investigation against him ""political assassination."" He refused to pull out of the presidential election after being summoned by magistrates over the ""fake jobs"" scandal.","A defiant Republicans party candidate-told a media conference-on Wednesday that he would continue to campaign to be France's next president. ""I have not embezzled public funds. I entrusted some parliamentary work to my relatives because I knew I could rely on their support,"" Francois Fillon told reporters, referring to claims his wife and two of his children were paid for parliamentary work they did not complete. Fillon went on to accuse-prosecutors of timing their summons to coincide-with a March 17 deadline for parties to confirm their candidates ahead of France's-two-round election in April and May. ""From the start, I have not been treated like anyone else facing the justice system,"" the 62-year-old said. Many expected Francois Fillon to be a shoo-in for the presidency. The former French prime minister easily won the conservative primary with 67 percent of the vote. But then Penelopegate hit. Weekly newspaper Canard Enchaine reported that Fillon's wife Penelope and two of his children had received close to one million euros in salaries from Fillon, paid by the state. Fillon's popularity tumbled. It is not illegal in France to hire family members as parliamentary assistants - provided they have real jobs. Fillon's wife was paid 830,000 euros ($900,000) as a parliamentary assistant for 15 years, working (or - as some have suggested - ""working"") for Fillon and his replacement in parliament. Police are currently investigating whether Penelope provided services for the salary she received. Reporters also revealed that Fillon paid his two oldest children 84.000 euros for working as assistants between 2005 and 2007. Fillon argued that he had hired Marie and Charles Fillon for their legal expertise ""?though the two were still in law school when they had jobs with their father. Penelope was also employed at an art magazine from May 2012 to December 2013, where she was paid roughly 5,000 euros a month. The owner of the magazine had previously been recommended for France's highest honor, the Grand Cross of the Legion of Honor, by then-prime minister Francois Fillon. Fillon has said that these two facts were unrelated. Fillon has repeatedly denied charges that he used ""fake jobs"" to enrich his family. He has said that he employed his wife and children because he trusted them and accused the media of running a smear campaign against him. Nevertheless, Penelopegate has severely damaged the campaign of the 62-year old, who has sold himself to French voters as an honest family man keen on cutting public spending. The accusations against Fillon are hardly the first of their kind in France. Ex-President Jacques Chirac was found guilty in 2011 of employing party members in ""fake jobs"" as mayor of Paris. Former president Nicolas Sarkozy is being investigated for illegal campaign financing, and presidential candidate Marine Le Pen is suspected of paying officials in her far-right party with EU funds. Author: Mara Bierbach Summons confirmed The former prime minister confirmed he'd be summoned by magistrates. ""My lawyer has informed me that I will be summoned on March 15 by magistrates in order to be charged,"" he said, before going on to denounce the probe-as having eliminated the presumption of innocence. ""I will not give in, I will not withdraw,"" said a visibly upset Fillon. ""I will be there when democracy chooses the future of France."" French media reported earlier in the day that Fillon had been summoned by magistrates investigating-the so-called fake jobs scandal, where the politician is alleged to have paid his British-born wife, Penelope, for official Senate duties she didn't perform. Paris' magistrates were appointed by financial prosecutors last week to look into the ""fake jobs"" case, following revelations by satirical newspaper ""Le Canard enchaine"" in January. Repeated denials Fillon has denied wrongdoing several times before, insisting his wife carried out genuine work as his parliamentary assistant. But he had earlier promised to step out of the presidential race if he was placed under formal investigation-were brought. The French news site Mediapart reported that Penelope Fillon-was held for questioning on Wednesday in connection with the case. It was later retracted, citing a-judicial source who denied the report. Earlier on Wednesday, Fillon, who had at one stage been widely tipped to win the presidency, canceled a trip to a key agricultural fair in Paris without explanation, leading to speculation he may pull out of the race. The show is billed as a rite of passage for all hopefuls with eyes on the Elysee Palace due to the power of the agricultural community in France. Penelope Fillon is alleged to have earned a large salary over several years, paid from public funds Conservatives confer A source close the-Republicans party said Fillon held talks-with senior members of the party on Wednesday. Just two weeks ago, the party had agreed to back his candidacy despite the furor. After his selection, the conservative candidate was initially the frontrunner to win the presidency. But his campaign has been rocked by the damaging allegations that his wife had received hundreds of thousands of euros over several years in the ""fake jobs' scandal. Since then, two of his children have been implicated too, for allegedly holding temporary jobs while trainee lawyers. Support plummeted When the so-called ""Penelopegate"" scandal hit, Fillon's campaign hit the skids, and much of his support shifted to centrist candidate Emmanual Macron. Macron, together with far-right leader Marine Le Pen, are now most likely to proceed to the second round run-off of the presidential-election on May 7. Fillon's scandal has spooked investors who fear that the anti-euro, anti-immigration candidate Le Pen now has-a higher chance of becoming head of state. mm/sms (AFP, AP, Reuters)", -1700,2017/3/1,http://www.dw.com/en/indians-reconsider-moving-to-us-after-kansas-shooting/a-37760260?maca=en-rss-en-all-1573-rdf,Indians reconsider moving to US after Kansas shooting,The killing of an Indian engineer in Kansas last week and widespread anti-immigrant rhetoric have raised questions over whether the US is a safe place to work and study for Indians. Murali Krishnan reports.,"As the final rites were performed for Srinivas Kuchibhotla in his hometown of Hyderabad in southern India on Tuesday, his mother, Parvatha Vardhini, could no longer contain herself. ""I want my younger son, Sai Kiran, and his family to return home for good,"" she said surrounded by hundreds of grieving friends and family members. ""I will not allow them to go back. My son had gone there [USA] in search of a better future. What crime did he commit?""-said Vardhini while wailing inconsolably. Her son, a 32-year-old aviation engineer, was murdered last week at a bar and grill in Olathe, Kansas in what US federal authorities are investigating as a possible hate crime. The lone gunman also wounded Kuchibhotla's colleague Alok Madasani and another man who tried to intervene. The gunman reportedly yelled ""get out of my country"" at the two before he opened fire. Both men had first come to the US ten years ago from India to study and worked as engineers at GPS maker, Garmin. Reportedly, the shooter mistakenly thought that the two Indians were from the Middle East. - Shooter Adam Purinton turned himself in shortly after murdering Kuchibhotla Hate in America Apart from the-outrage that the shooting has spawned in India, there is a growing nervousness among students who are worried about their safety as they prepare to leave for the US to study at university. Families residing in India are also feeling insecure about their children's safety abroad. Many are aware that US President Donald Trump's ""America First"" rhetoric is fuelling intolerance towards immigrants and his-controversial travel ban-against visitors from seven Muslim-majority countries has only made the atmosphere more tense. The incident in Kansas has driven home the harsh reality that no religion or color is immune to such actions. A man in the US state of Kansas has been charged with killing an engineer from India and wounding two other people. Federal authorities are investigating whether the shooting was a hate crime. (25.02.2017) Unlike President Donald Trump's controversial travel ban, his latest immigration orders did not garner much attention. But they should as they mark a stark shift in the US approach to undocumented immigration. (22.02.2017) Donald Trump has been sworn in as US president. His first moves as leader showcased a policy of protectionism and patriotism. (21.01.2017) Jewish groups and schools in 11 US states have reported bomb threats, a day after more than 100 gravestones at a Jewish cemetery were vandalized. The World Jewish Congress called the incident 'despicable and cowardly.' (27.02.2017) ""I have applied to several universities for a postgraduate program in the humanities and I am likely to receive even a fellowship grant,"" said Shastri Kapoor, a final year college student in Delhi. ""Sure, I am nervous, but let's see."" Union Minister Venkaiah Naidu condemned the killing of Kuchibhotla, saying the US government should respond to such incidents and take the ""strongest action."" ""These kind of incidents involving racial discrimination are shameful and they will dent the image of the USA,"" he said. ""So the US President, administration and civil societies should unequivocally respond and condemn such incidents. I as a central minister condemn such incidents."" In a recent article, Lakshmi Sridaran, director of National Policy and Advocacy for US-based South Asian Americans Leading Together (SAALT) wrote, ""The reality of racial and religious profiling in this country is that it is simply enough to be perceived as Muslim to be treated as one."" A risky opportunity? Parents and students in India are also concerned about life as an Indian in the US after the incident. ""I have two sons who are in the US. One is an engineer who has been there for five years and the second is at the University of Southern California. Obviously, these incidents will rattle anyone,"" said Madhu Sharma, a professor. A large number of Indian students are pursuing their studies at American universities and they comprise the second largest community of students in the US. Nearly 200,000 Indian students studied in the US last year, according to a quarterly report on foreign student trends prepared by Student and Exchange Visitor Program. More than 3 million Indians live in the US and many are well-to-do professionals. Srinivas Kuchibhotla came to the US ten years ago ""I have been admitted to one of the management schools having cleared my GMAT,"" said Pratap Reddy, a student from Hyderabad. ""Will it be difficult to study and work there now? Yes, I am scared and my worries have increased.""- Incidentally, the US consulate general in Hyderabad issues the fifth-highest number of student visas in the world and the highest in-India. Recently, tensions have been running high over the proposed curb on H1B visas, as Indian citizens are the top recipients of these temporary high-skilled worker visas.- Many are keenly waiting to see how policies on students staying to work in the country and on work visas will pan out. Coloring the diplomatic agenda Kuchibhotla's funeral was held in his hometown, Hyderabad The safety of Indians and the status of H1B visas will be at the top of Indian Foreign Secretary S Jaishankar's agenda as he meets with officials in the Trump administration later this week. This will be Jaishankar's third visit to the US since the presidential elections in November last year. The Indian government's view is that IT companies in the country contribute to the American economy by increasing the competitiveness of US firms and this relationship-should not be disputed.- Minority groups have expressed restlessness with the political and social climate prevalent in the US. Recently, there have been threats targeting Jewish community centers-and vandalism of Jewish cemeteries.- And as this political and social climate in the US continues to be unsettled, heightened anxiety and fear among immigrants seems likely to increase. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XMFz", -1701,2017/3/1,http://www.dw.com/en/german-jobless-rate-holding-steady-in-february/a-37760018?maca=en-rss-en-all-1573-rdf,German jobless rate holding steady in February,"Germany's labor market continues to go strong, with the unemployment rate remaining at its lowest level since the reunification of the country in 1990, and waiting to fall further in the seasonal upswing ahead.","According to the February unemployment figures released by the Federal Labor Agency (BA) on Wednesday, the number of jobless people in Germany fell by 15,000 compared with January, and by 149,000 on the month a year ago. In figures adjusted for seasonal variations, the monthly jobless queues in the nation shrank by 14,000 to 2.592 million people, with How easy is it for refugees to find jobs in Germany? The employment agency of Germany's most populous state is sounding the alarm over its inability to provide tens of thousands of refugees with work. (29.11.2016) Germany's employment figures for December were better than those from the previous year, the federal jobs agency has reported. Despite a lot of uncertainty, the labor market is still very robust, it says. (03.01.2017) A German court has ruled that the Federal Employment Agency does not have to advertise red light district jobs on its site. The agency argued it wanted to protect young users, though the ads called for receptionists. (27.01.2017) the unemployment rate remaining unchanged, however, at 5.9 percent - its lowest level since German unification in 1990. Labor Agency chief Frank-J��rgen Weise said in a statement that the labor market continued to ""develop positively."" German job machine The February jobless figures are a further indication that Europe's biggest economy has entered the new year on a solid footing. Analysts had expected the number out of work to drop by only 10,000 in February given current uncertainties about Brexit and the policies of the new US president Donald Trump. But latest figures about job creation published by the German statistics office recently, showed that companies added 59,000 jobs in January, bringing the total of Germans working to 43.59 million out of a population of about 82 million. BA added on Wednesday, that nevertheless 675,000 vacancies were registered with the agency in February, 61,000 more than in the same month of the previous year. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UzOG uhe/kd (AFP, dpa) -", -1702,2017/3/1,http://www.dw.com/en/german-foreign-minister-gabriel-questions-nato-s-defense-spending-target/a-37758402?maca=en-rss-en-all-1573-rdf,German Foreign Minister Gabriel questions NATO's defense spending target,"The German foreign minister has cast doubt on NATO nations' agreement to spend to 2 percent of GDP on defense. The Trump administration has pressured allies to boost spending or witness only a ""moderate"" US commitment.","Years after it pledged to spend billions more on defense, new pressure from the US is forcing the German government to consider whether it can actually meet its goal. Coalition parties are split on how to move forward. German-Foreign Minister Sigmar Gabriel on Wednesday said NATO's defense spending target for member states of 2 percent of gross domestic product (GDP) was not a rigid rule agreed upon by every nation in the alliance. ""I am concerned that politicians make public promises that they can't fulfill later on,"" Gabriel said after meeting with Estonia's foreign minister in Tallinn. ""There is no apodictic 2 percent goal, but rather ""?we should be moving in that direction."" In 2014, NATO nations in Wales-agreed to stop cuts and pursue a target of spending 2 percent of GDP on defense by 2024. However, US President Donald Trump has pressured allies to reach the goal sooner, vowing only a ""moderate"" commitment if NATO nations fail to boost defense spending. 'Obligations have to be fulfilled' Gabriel made waves at the Munich Security Conference in February when he warned against increasing defense spending in lieu of other services. ""Germany spends 30 to 40 billion euros on supporting refugees because of military interventions years ago that went wrong,"" said Gabriel last month. ""This should be considered a contribution to stabilization."" However, German Defense Minister Ursula von der Leyen criticized Gabriel's remarks at the conference, saying he failed to stick to Berlin's commitment. German Chancellor Angela Merkel has also backed the NATO target, telling supporters in Stralsund that ""obligations have to be fulfilled, and others in the world will demand that of us."" The split between Gabriel of the Social Democrats (SPD) and Merkel's Christian Democrats (CDU) on defense spending has widened ahead of key parliamentary elections slated for September. The SPD is seeking to dethrone Merkel, who has served as chancellor for three consecutive terms. Spending more Meanwhile, the Trump administration has called for a major increase to defense spending, signaling a $54 billion increase for 2018's budget. White House officials said cuts would be made to domestic and foreign programs to pay for the increase. The United States is the world's largest spender on defense, with $523.9 billion allocated to the defense department. Only five NATO nations have hit the 2 percent target, including Estonia, Greece, UK, Poland and US. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2SA4D ls/sms (dpa, Reuters)", -1703,2017/3/1,http://www.dw.com/en/obama-2017-drive-gathers-steam-in-france/a-37758337?maca=en-rss-en-all-1573-rdf,Obama 2017 drive gathers steam in France,A tongue-and-cheek petition to recruit the former US leader to run for French president has amassed thousands of signatures during a lackluster campaign season. The Parisians who launched it want a political sea change.,"The campaign posters are dotted across Paris, and an online petition has already gathered more than 40,000 signatures. Barack Obama may be out of a job in the United States, but he's in demand among a disaffected electorate in France. ""This operation aims to make people think about what's happening with this election,"" says one of the campaigners behind the Obama2017.fr-initiative. ""To make them laugh and dream a little bit - like having Obama as president."" The far-right member of the European Parliament is facing charges in France for posting graphic images on Twitter. Losing parliamentary immunity means she faces potential fines of 75,000 euros. (28.02.2017) A new alliance of centrist politicians in France is good news for those wanting to prevent Marine Le Pen from winning the French presidential elections. Nonetheless, there is still a looming threat of populist success. (26.02.2017) Populist Marine Le Pen is favourite to win the first round the French presidential election, but who she may meet in the second round is still unclear. DW has rounded up the best content to keep you informed. (24.02.2017) Prosecutors have appointed a judge to handle the case, deepening a probe into the presidential candidate. The former premier has witnessed his prospects for the French presidency dwindle amid corruption allegations. (24.02.2017) The drive to recruit the former US leader to run inFrance's spring presidential elections is the brainchild of four Parisians in their 30s, dreamed up over beers. The group doesn't want to be identified, but one of their members agreed to speak to DW anonymously. ""We didn't launch this operation to promote ourselves,"" said the campaigner, who describes the group as apolitical. ""We were just talking about the election and our fears of what might happen in France, like if extremist groups were to win.""- Voter discontent Indeed, the drive taps into a potent vein of voter discontent during an election season marked by a sharp rejection of mainstream favorites. Two of the surviving frontrunners, far-right leader Marine Le Pen and conservative ex-prime minister Francois Fillon, are battling allegations of misappropriating public funds.- Another, 38-year-old former economy minister Emmanuel Macron, surfing on his youth and outsider status, is dismissed by some critics as a lightweight.- A December IPSOS survey found up to one-quarter of voters are tempted to cast a blank ballot during the first round of voting in April.- ""Everybody is so worried and dissatisfied with the contenders they have,"" says analyst Nicole Bacharan. ""We have seen them forever and they keep coming back."" Obama2017.fr aims to collect a million signatures by March 15 to convince him to run Those sentiments are echoed on the Obama2017.fr website, which calls for a sea change in governance that would usher in a sixth republic. French voters, it says, should offer ""a lesson in democracy to the planet in voting for a foreign president."" ""Barack Obama,"" it adds, ""has the best CV in the world for the job."" ""Why should we always get the same old people?"" the campaigner said, dismissing a status quo in which many French politicians graduate from the same narrow list of elite schools and hang on forever.- While conceding the former US president also has elite credentials, notably degrees from Columbia University and Harvard Law School, he added, ""Obama represents something we admire in France, someone who can unite people."" Time for change? Near the Place de Clichy in northern Paris, a few pedestrians pause to take in several Barack Obama campaign posters lining a major artery, complete with the French translation of his iconic motto, ""Oui on peut"" (""Yes, we can"").- ""I'd like a bit of change,"" said retiree Michel Ducoudre. ""Like in the Anglo-Saxon countries. When a candidate loses, they don't run again. Here, they run three or four more times."" ""This year the elections are just nonsense,"" says 55-year-old Noellie Benison. ""If Obama runs, I'll vote for him."" Europe greeted Obama's election a decade ago with euphoria, a sentiment that waned as his two-term presidency-focused more on domestic and Asian-Pacific issues than European ones. Still a Pew Research Center poll last June found the majority of citizens in five European Union countries surveyed were confident he would do the right thing in world affairs. That included 86 percent of Germans, and 84 percent of French. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YFk1 By contrast, many Europeans greeted the victory of current President Donald Trump with dismay. Still a recent survey found many would support the kind of immigration ban from majority-Muslim countries that he vows to enact in the United States.- Nonetheless, ""I think there was hardly any country where Barack Obama was more popular than in France,"" says Bacharan, who specializes in US politics. ""Even though his popularity dwindled a little bit at the end, he still remains this heroic figure: elegant, charismatic, smart, young, connected."" A long shot If Obama's own thoughts about a run are unclear - efforts to contact his media team proved unsuccessful - the odds against doing so are daunting.- First is the matter of collecting one million signatures by March 15 to put him on the ballot. He also must be a French citizen -although one enthusiastic lawyer tipped the Obama2017.fr team on how this could be fast-tracked. Obama appears to be enjoying his time out of office Campaign financing is another headache. The Paris group pooled their centimes to pay for the Obama posters in the capital; a nationwide rollout was out of the question.- ""It was an expensive joke,"" the campaigner admitted with a grin.- Still, there are some serious perks. Obama's favored cheeseburgers and fries are widely available in Paris. So are basketball courts - although it's unclear whether the Elysee presidential palace might consider building one on its grounds. Yet in a country rocked by recent protests against alleged police discrimination, and where the far-right's anti-immigrant message is resonating, some wonder if France is ready for a black president. ""Sadly I'm quite sure France is not ready for a black president,"" analyst Bacharan said. ""But the French would be ready for Barack Obama.-Worldwide, he lost his color; he just became an American president.""- The campaigner disagrees. ""I think Obama would be perfect,"" he said. ""He's done the job in the US exactly the way we would need someone to do it in France."" Asked who he will vote this spring, he pauses half a beat. ""Barack Obama,"" he says.", -1704,2017/3/1,http://www.dw.com/en/why-germans-don-t-give-compliments-and-how-an-american-learned-to-deal-with-it/a-37757770?maca=en-rss-en-all-1573-rdf,Why Germans don't give compliments and how an American learned to deal with it,"The absence of criticism can be taken as praise in Germany, Courtney Tenz learned the hard way. On World Compliment Day she explains why she misses ""superficial"" American compliments, but appreciates the German approach.","As a young girl growing up in the US, I took compliments for granted. If I put on a dress, family members were sure to coo over how pretty I looked. If I got good grades in school, I was told how smart I was. Even if I polished off an entire birthday cake, I was complimented on my healthy appetite. Born between the ""I'm ok, you're okay"" generation and the ""every little thing you do is magic"" generation, I was given what I felt was a healthy dose of compliments - enough to encourage my self-esteem without people going unrealistically overboard. And I learned how to dole them out as well. Telling my mother ""You look pretty today, Mama,"" earned me a smile and a kiss. Applying a similar tactic as a schoolgirl, I knew that telling my teacher, ""You look great! Did you do something to your hair?"" would keep me in her good graces. Compliments, I learned, served as a sort of currency in the US. Flattery, they say, will get you everywhere. Culture shock: Germany honesty Compliments are so frequent and so ingrained in everyday life in the US that I wasn't even aware how large a role they play in the culture until I moved to Germany over a decade ago. For most of my first year here, I thought there must be something wrong with me. No one liked my clothes or my hair or my shoes. No one told me they'd appreciated a lecture I'd given at the school where I taught. I could walk into a bar and people would not tell me I had pretty eyes. I could wear an unusual skirt and the closest thing to a compliment I'd receive was, ""That's an unusual skirt."" American Courtney Tenz has lived in Germany for over a decade At one class I taught, to adult learners of English who also needed intercultural training, one of my students remarked, ""You're skinny for an American."" In the US, that is what we might refer to as a back-handed compliment and so I started a discussion with my students, explaining that actually, in the US, such a statement would be considered quite rude. In return, that Germans in the class said that honesty is perhaps the greatest compliment, and that they find the American art of complimenting an exaggeration. There is a strong belief here that people in the US are superficial and thus their praise untrustworthy. I suppose there could be something to that. How could I have known whether my teacher was being honest when she said I was a sweet girl if I knew she'd told all of her female students they were sweet girls? How relevant is truthfulness? By the end of the discussion, though, I realized it didn't matter whether or not a person was honest in his or her compliments. To me, compliments are not about truth. They are about practicing politesse as much as they are about determining hierarchies and power balances. For example, you might not compliment a superior at work, for fear of looking like a suck-up, but you should compliment a subordinate on a job well done. There are also layers of context embedded in these phrases that only the giver and receiver can interpret. When you receive a compliment from someone like your grandmother, you know to reply humbly, ""Oh shucks, that's kind."" But from a friend, you'd say, ""Oh this dress? Got it at the Dress Barn on sale last year."" If the compliment is from a stranger or otherwise unwanted you'd simply say, ""Thank you,"" and wonder, perhaps, if that person wanted something from you. Beyond that, compliments in the US can be a way to break the ice with strangers. As Alanna Okun recently wrote in an essay for ""Racked,"" about the art of giving a compliments while drunk: ""Nobody on the planet will make you feel as dope as a fellow woman, three glasses of wine deep, ""?her compliments are effusive yet genuine; her glowing assessments of your shirt or shoes or face are enough to buoy you for an entire night out."" There is also, of course, the seedy side of compliments. There's the Eric Clapton song, ""Wonderful tonight,"" which feels like the ultimate in compliments. Who wouldn't want someone to croon, ""My darling, you look wonderful tonight""? But its meaning gets a bit twisted when you learn the person the song was written for is the wife of another man; suddenly the compliment's intentions have subtle, underhanded meanings. Not that many men in Germany are freely handing out compliments. Sigrid, a grandmotherly German married to an American said she'd initially been attracted to her husband because of his willingness to pay her and everyone else he meet a compliment. ""There's no easier way to make a person smile than to say something nice,"" he'd once told her. ""As a German, I'd never encountered anyone like this before. It was so flattering that he even seemed to notice the color of my blouse. No German man had ever done that!"" No criticism is a compliment Despite all the nuances in the American complimentary culture, I find it much more difficult to get by without compliments in Germany, where, even years later, I struggle to sort out what replaces the role of the compliment as currency. As one fellow American noted, ""Consider it a compliment if you haven't been criticized."" In other words, interpret silence as praise. Perhaps Germans don't miss this the way that I do because it is something that is culturally engrained in Germany beginning in childhood. One of the most popular child psychologists read by German parents today is Jasper Juul, a Danish psychologist and author of advice books whose ideas on child-rearing are quite different from what I experienced as a child. Instead of praising kids, he says that children really only need recognition from their parents. Don't tell a kid the drawing he made is good, says Juul in his book, ""Your Competent Child."" Instead, acknowledge the kid has made a drawing and ask him questions about it. This sounded odd to me. Why wouldn't I tell my child her drawing looked amazing? Americans use that phrase all the time: ""You look amazing,"" ""This dinner you cooked was amazing,"" ""That article you wrote was amazing."" Instead, according to Juul, I should say, ""Oh, look, you did a drawing?"" A dog would get more encouragement than that for putting his paw out to shake. I'm not saying a child should get a ""Good boy"" and a gold sticker and applause every time they use the toilet, as many Americans are wont to do nowadays. But there has to be something more than just silence. Angela, a co-worker, said that perhaps it's a misunderstanding I have, not differentiating between a compliment, which centers on appearance, and praise, which is encouragement for a process. ""Don't get the two mixed up,"" she warned me as I was writing this article. But it's hard not to when, in English, the definition for compliment is, literally, a statement of praise. Though it has taken me more than a decade, I have finally come to terms with the fact that in Germany, I won't be complimented on everything I do and when - if - I garner attention for praise, it will likely be more sincere than anything I'd have heard in the US. Like the one a young girl recently gave me after I visited the beauty salon: ""You look much better now that your gray hair is gone."" -", -1705,2017/3/1,http://www.dw.com/en/michael-phelps-calls-for-urgent-anti-doping-reforms/a-37758331?maca=en-rss-en-all-1573-rdf,Michael Phelps calls for urgent anti-doping reforms,US swimming legend Michael Phelps has called for major reforms to global anti-doping procedures. The winner of 28 Olympic medals called on US authorities to do whatever it takes to ensure that this happens.,"Testifying in front of the US House of Representatives Energy and Commerce Subcommittee on Oversight and Investigations on Tuesday, Michael Phelps (pictured above, center) said that he and many other athletes didn't believe that the Olympics or other major international competitions were free of doping. ""I don't believe I've stood up at an international competition and the rest of the field has been clean,"" he said. ""I don't think I've ever felt that. I know when I do stand up in the U.S. I know we're all clean because we go through the same thing."" Phelps added that throughout his career he had suspected that some of his competitors had been using performance-enhancing drugs, and that in some cases, those suspicions had later been confirmed. ""Given all the testing I and others have been through, I have a hard time understanding this,"" said Phelps, whose Olympic haul includes 23 gold medals. He then called on the lawmakers to do what it takes to stamp out doping in international sports. ""We need to take care of this issue and we need to figure it out. If that's more money it's more money,"" he said. ""This is something that needs to happen now, and I'm glad are people are actually starting to take this seriously, take this in a serious manner because it is crushing sports for our youth and for everybody else in the world."" Michael Phelps won 28 Olympic medals, 23 of them gold - more than any other athlete Nine years late Also testifying on Tuesday was Adam Nelson (above, left), who was only awarded his gold medal in the shot put from the 2004 Athens Summer Games in 2013, after Ukraine's Yuri Belonog was stripped of his gold following a failed drugs test. Nelson said he received his gold medal not in front of a packed stadium, but from a US Olympic Committee official in the foot court of Atlanta's airport. ""The medal came with a side of fries and a free toy. Don't worry about it."" Nelson joked. ""It was nine years after that moment had passed."" US Anti-Doping Agency chief executive Travis Tygart (right), who has called for stronger sanctions against Russian athletes due to evidence of state-sponsored doping, said the World Anti-Doping Agency (WADA) needed to become completely independent of the International Olympic Committee (IOC). WADA's Foundation Board and executive committee includes more than 20 IOC members while the agency's President Craig Reedie is also a member of the IOC. ""We at USADA have advocated for a clear separation between those who promote sport and those who police it,"" Tygart said. ""To do so otherwise, we believe, is to encourage the fox to guard the henhouse."" In his testimony, the IOC's medical director, Richard Budgett said the Olympic movement was already taking action to address Tygart's concerns. ""The IOC is in the process of removing the fox from the hen house,"" Budgett said.- Tygart, though, was not convinced. ""It would be great if it were true,"" he said. ""We're still waiting."" IOC President Thomas Bach declined an invitation to attend the hearing. pfd/ftm (AFP, Reuters, AP)", -1706,2017/3/1,http://www.dw.com/en/the-un-s-2030-goals-time-to-talk-about-the-big-issues/a-37750246?maca=en-rss-en-all-1573-rdf,The UN's 2030 goals: Time to talk about the big issues,The United Nations launched 17 Sustainable Development Goals to be achieved by 2030. Now it's embarking on a global effort to get people on board.,"DW spoke to Mitchell Toomey, director of the UN SDG Action Campaign to find out more. DW: What exactly is the UN SDG Action Campaign and how important is it for the UN? Mitchell Toomey: It couldn't be more important, frankly, for the UN-and the member states to have a dedicated global campaign. These goals, the sustainable development goals, are a program that is intended to run 15 years until the year 2030. There's always going to be moments when people will activate and get excited. What we need to do is find a way to maintain that excitement throughout 15 years. The goals were agreed in September 2015. That's more than a year ago. Why start the SDG campaign now? The UN's efforts to build global campaigns really started in earnest with something the Millennium Development Goals between-2000 and 2015.-We started with that lineage, and with existing infrastructure we've been able to do the first wave of popularization. But now we've found there are specific things that are needed. And so after working for a year with our partners to figure out the best approach, we're now ready to go to scale. Universal access to clean water and sanitation are among the UN's 2030 goals The headquarters of the UN SDG Action Campaign have-moved from New York to Bonn. Why? Well, there's a couple of reasons. One is purely pragmatic. We need to be covering, in real time, support to every country in the world. From New York you have time-zone problems. Here in Bonn, it's a very central global location. But perhaps more important is the commitment that the government of Germany and the city of Bonn have made to the overall program of sustainability. We haven't found another corner of the world that's this intense in its passion for this issue. And so we wanted to be right in the heart of it. This new global agenda, the STGs, have 17 goals, 196 targets and lots of indicators. It's a very bulky agenda. How difficult is it to bring that across to people? It's quite difficult. But this is a reflection of reality. We talked to about 10 million people around the world about what they really need, what's most important for them and their families. They need a lot of different things, and so instead of making it nice and tidy and easier to manage by having fewer goals we decided to make sure we're reflecting reality. And we know all these aspects of development are interrelated. Education for all children, gender equality and lifelong learning are all part of the SDGs So how do you go about making people excited about that when it seems like a daunting, complicated agenda - you simplify it. You basically make the point that these goals represent the betterment of humanity. These are the things that we're striving for. Tell us about the Global Festival of Ideas for Sustainable Development happening in Bonn this week. How is this different from other international conferences targeting sustainable development and communication? What we needed was an entry point so activists and people who are not deep into the policy discussions can have a starting point. Anybody who has a good idea - there's a place for it. This is not a one-time event. What we planned is a regular gathering every year over the course of the sustainable development goals, bringing people back to Bonn to reflect on what worked, what needed improvement, where are the gaps, where are the difficult points to communicate and work with each other. The UN-itself cannot do the scope of work that's required. We need to activate and incentivize others. And so the network that will gather in this event will be those emissaries, those advocates, who go around the world with this message. How are you conveying that message on a global scale? We've worked very hard with consumer branding organizations to make a very appealing visual language for the goals. There are 17 goals. We had a lot of issues deciding how to exactly communicate something of that complexity. But by going to consumer branding specialists they found that it's something that you can quite easily integrate into a package where each goal has a specific identity but they fit together in a pattern. At current, more than 800 million people worldwide are undernourished. Zero hunger - one of the goals - is a food bowl, and it's a simple symbol that we can use internationally. And ultimately, we see these icons starting to emerge as flags. We want to help people rally together under a common flag to say, yes these things are important. Not only do I feel so, but all the governments of the world have agreed and committed that they are important, so I have a justification to do what I'm doing. So establishing a very solid brand was the first step. Reducing poverty and inequality is a goal for all countries You've said that by the end of 2018 you want to have 700,000 voluntary activists. We looked at the overall global population and the percentage of activists that you really need to spur a conversation. And this is a number that we feel is achievable. We did an exercise called 'My World',-which is a very simple survey that asks an individual what's most important for you and your family. These activists are going out asking these questions, gathering the information, and we're tabulating that all to create a global picture. The new thinking in communications is that by listening to themselves say something, people internalize it much better than if they just hear an external message. By making that-a face-to-face, intimate conversation, you end up taking away a very important message. To do that, you need to scale massively, you need to have a lot of volunteers out in their communities asking these questions, doing these kind of exercises - youth debates, getting kids in schools to talk about it. This kind of groundswell of support is the kind of community we're supporting in this first annual event --giving them the tools and the techniques and the strategies to go-out into communities and make-this message heard. Local action as well as international efforts are required to realize the goals We're at a time of increasing international division and nationalism but the global goals can only be reached if all nations work together. How big a risk is- there that this major plan will fail? We have to be ready for anything. What we have to show is that by having a plan itself - that's already progress. Despite the political turmoil we're living through, there is a consensus of what the basics should be. Now the question is, how? While they are global in scope, these goals are really targeted at each country. We want this to work everywhere, but we really want that conversation to happen domestically in each country. We feel this is a moment you can take advantage of to talk about these big issues. Mitchell Toomey was appointed director of the UN's Millennium Campaign in January 2015. He has worked on citizen crowd sourcing to set the post-2015 UN development agenda, as well as citizen engagement campaigns for-Rio+20 and the World Humanitarian Summit. He is currently director of the UN SDG Action Campaign. The interview was conducted by Anke Rasper. It has been edited and condensed for clarity. -", -1707,2017/3/1,http://www.dw.com/en/taliban-assaults-target-two-security-buildings-in-kabul/a-37758382?maca=en-rss-en-all-1573-rdf,Taliban assaults target two security buildings in Kabul,Two locations in the Afghan capital have been struck by explosions and armed fighters. The Taliban have claimed responsibility for the attacks that are seen as the beginning of a spring offensive.,"At least one person has been killed and 35 injured in two attacks in Kabul on Wednesday. A bomb hidden in a car caused a massive blast near the headquarters of the-local police and a military academy in the western part of the city. According to the AP news agency, a suicide bomber triggered the explosion. Immediately following the explosion, a gunbattle between security forces and an unknown number of armed fighters reportedly broke out nearby. Shortly after the first explosion, a suicide bomber triggered a second explosion while trying to enter the office of the Afghan secret service NDS in eastern Kabul. Afghan police secured the site of a blast in Kabul Government spokeswoman Najibullah Danish confirmed that there had been two attacks. She told the AFP news agency that there were ""casualties from the first attack and we also have reports of gunfights, but at this stage we cannot confirm whether it is a complex attack."" A Taliban spokesperson claimed responsibility for both attacks. The twin attacks in Kabul could mark the beginning of a Taliban spring offensive. The radical Islamists - who are seeking to reimpose Islamic law after they were ousted from power in 2001 - have in the last few years decreased their activities in the winter months only to ramp up attacks at the beginning of spring. Observers worry that the relatively high number of Taliban attacks in recent months could indicate that the Taliban are gaining strength and that a particularly vicious spring offensive is to be expected. In January, the Taliban attacked the parliament in Kabul with several bombs, killing over 30 people. Since the NATO-led coalition ended its combat mission in 2014, Afghani troops have been struggling against a Taliban insurgency. Though Kabul controls the main provincial centers, less than 60 percent of the country are currently under the control of the government. Though the Taliban are the by far most influential militant Islamist group in Afghanistan, they are not the only ones threatening security. Last month, the Islamic State claimed responsibility for a suicide bomber killed at least 20 people outside the Supreme Court in Kabul. mb/sms (AFP, AP, dpa, Reuters)", -1708,2017/3/1,http://www.dw.com/en/eurotunnel-reports-best-year-ever/a-37758380?maca=en-rss-en-all-1573-rdf,Eurotunnel reports 'best year ever',"Eurotunnel has reported the best annual result in its 20-year history, tripling its profit on rising numbers of vehicles carried on its truck shuttle service under the Channel between Britain and France.","The owner of the rail link under the Channel logged a net profit of 200 million euros ($211 million) in 2016, up sharply from the 2015 earnings of 75 million euros. The growth had been driven by transports of 2.66 million tourist vehicles and 1.64 million trucks, the company said Wednesday, offsetting falls in cargo services and Eurostar passenger numbers by three percent and four percent respectively due to terrorism fears. ""It's the best year we've ever had at the Eurotunnel group since the opening of the tunnel,"" chief executive Jacques Gounon told reporters. All of the company's three core businesses - the Eurotunnel shuttle services, the ElecLink electricity connector purchased Hundreds of billions of euros worth of goods are transported through the French port of Calais every year. But a migrant crisis and striking port workers have made business for freight operators there much harder. (04.08.2015) Over 100 refugees have attempted to storm the Channel Tunnel, clashing with staff and police and disrupting trains between the UK and France. The intrusion was ""organized and coordinated,"" Eurotunnel officials say. (03.10.2015) A workers' strike over job cuts in the French port of Calais has turned chaotic and shut down traffic between France and England. Illegal immigrants used the opportunity to try and board trucks bound for England. (23.06.2015) in the previous year and the Europorte rail freight business - had outperformed their sectors, he added. Normalization after hype Opened in 1994, the Channel Tunnel carries passenger vehicles and freight trucks on trains under the sea linking England and France, as well as Eurostar passenger trains connecting London with Paris, Brussels and other points in Europe. Since its opening, the Eurotunnel business has been struggling as traffic and financial assumptions proved over-optimistic. In 2007 it was forced to restructure its business, but was dealt additional blows in the years later by the economic downturn and traffic disruptions from migrants seeking to cross the Channel on its trains. Rail freight tonnage through the tunnel, for example, fell 27 percent in 2016, with Eurotunnel attributing that partly to operators' rerouting some services because of the migrant incursions. Improved security around the group's Coquelles terminal in France since late 2015 had eliminated disruptions, the company added. Brighter future Looking ahead, CEO Gounon said the firm was ""extremely confident"" for 2017 and 2018. The company plans to pay a dividend of 26 euro cents for 2016, up from 22 cents the previous year. Gounon said the company was planning continued increases in dividends and was targeting a 35-cent dividend for 2018 uhe/kd (AFP, Eurotunnel) -", -1709,2017/3/1,http://www.aljazeera.com/news/2017/03/breivik-rights-violated-prison-appeals-court-170301112611958.html,Breivik's rights not violated in prison: appeals court,Mass murderer Anders Breivik claimed that he had been abused for being placed in near-isolation since he was jailed.,"Norway has not violated the human rights of mass killer Anders Behring Breivik despite his charges of abuse since he was jailed for killing 77 people in 2011, an appeals court ruled. The Borgarting appeals court on Wednesday overturned-a 2016 verdict by a lower Oslo court-that Breivik's near-isolation in a three-room cell amounted to ""inhuman and degrading treatment"" under the European Convention on Human Rights. Breivik spent more than an hour on July 22, 2011 methodically killing 69 people, most of them adolescents, on the island of Utoeya, in what is believed to be the deadliest shooting ever carried out by a single person. Shortly before the island massacre, he killed eight people when he blew up a bomb in a van parked in the government block in Oslo. Breivik took Norwegian authorities to court in March last year, accusing them of exposing him to inhuman, degrading treatment or punishment in breach of the European Convention on Human Rights. Breivik protested against his isolation from other inmates and from outsiders who are not professionals. He also complained about cold coffee and microwaved meals that he said were ""worse than waterboarding"". READ MORE: Profile - Anders Behring Breivik Breivik has three cells to himself in the high-security wing of Skien prison. The cells are equipped with video game consoles, a television, a DVD player, electronic typewriter, newspapers and exercise machines. He also has daily access to a larger exercise yard. He is allowed visits from family and friends, but has not received any except for his mother before she died. The court that convicted him in 2012 found him criminally sane, rejecting the prosecution's view that he was psychotic. Breivik did not appeal against his sentence. He has been trying to start a fascist party in prison and reached out by mail to right-wing extremists in Europe and the United States. Prison officials seized many of those letters, fearing Breivik would inspire others to commit violent attacks. Source:-Al Jazeera and news agencies", -1710,2017/3/1,http://www.aljazeera.com/news/2017/03/francois-fillon-statement-fake-work-row-170301104558128.html,Francois Fillon to be summoned over 'fake work' scandal,French presidential candidate Francois Fillon to face court over accusations that he gave his wife a 'fake job'. 'I won't give in',"French conservative presidential hopeful Francois Fillon says he has been summoned by judges for questioning and a possible indictment over allegations he gave his wife a lucrative fake job, but vows to stay in the presidential race.- Fillon's campaign has been battered for weeks by allegations that he paid his wife Penelope hundreds of thousands of euros of public money to be his parliamentary assistant, but that she actually did very little work. He denied any wrongdoing and said it was a proper job. ""From the start, I have not been treated like anyone else facing the justice system,"" Fillon said in a statement to reporters, claiming he was the victim of a ""political assassination"". ""It's not just me they are killing, but the French presidential election,"" he said. Al Jazeera's Natasha Butler, reporting from outside Fillon's campaing headquarters in Paris, said the candidate was ""extremely defiant"". ""Fillon said that it is actually his right not to go-to the investigative magistrates-because he has-parliamentary immunity,"" she said. ""But he explained that is going to go because he would like to be seen doing the right thing."" 62-year-old former prime minister said ""I won't give in, I won't surrender, I won't pull out, I'll fight to the end."" Juppe, another former prime minister, has previously ruled out stepping in as the presidential candidate if Fillon, at one point the favourite, was forced to quit the race. OPINION: Fillon's victory - A political earthquake in France The gap between French and German bond yields briefly tightened to around 66 basis points on Wednesday but market reaction was generally muted as the implications for the two-round April 23 and May 7 election remained unclear. The investigation of Fillon and his wife has unnerved investors who fear Fillon's campaign woes have handed the anti-euro, anti-immigration Marine Le Pen of the National Front a higher chance of winning the presidency. Polls suggest, however, that she would lose in the second round to centrist Emmanuel Macron. Source:-Al Jazeera and news agencies", -1711,2017/3/1,http://www.aljazeera.com/news/2017/03/isil-video-threatens-china-rivers-bloodshed-170301103927503.html,ISIL video threatens China with 'rivers of bloodshed',SITE Intelligence Group says footage from Uighur fighters in western Iraq warns China of upcoming attacks. Show of force---,"ISIL fighters from China's Uighur ethnic minority have vowed to return home and ""shed blood like rivers"" in what security experts said marked the first such threat against Chinese targets.- The threat came in a half-hour video released Monday by a division of Islamic State of Iraq and the Levant (ISIL) featuring fighters from China's Uighur minority, said the US-based SITE Intelligence Group, which analysed the footage.---- China has for years blamed exiled Uighur ""separatists"" for a series of violent attacks in its western Xinjiang region - the Muslim Uighur homeland - and warned of the potential for them to link up with violent groups.---- In the video, a Uighur fighter issued the threat against China just before executing an alleged informant. ""Oh, you Chinese who do not understand what people say. We are the soldiers of the Caliphate, and we will come to you to clarify to you with the tongues of our weapons, to shed blood like rivers and avenging the oppressed,"" according to SITE's translation. The footage also showed fighters, including heavily armed children, giving speeches, praying, and killing other ""informants"".--- Many Muslim Uighurs complain of cultural and religious repression and discrimination by China. Authorities have banned or strictly controlled the observance of certain Muslim practices, such as growing beards, wearing headscarves, and fasting during Ramadan, calling them symbols of ""Islamic extremism"".---- A US think-tank said in July that Chinese religious restrictions on Muslims may have driven more than 100 to join ISIL. ""When we see the government involved in a very heavy crackdown, it hasn't really ever solved the problem, it hasn't made it go away,"" said Raffaello Pantucci, director of International Security Studies at the UK-based Royal United Services Institute.---- ""In some cases it has made it worse."" China targets parents with religion rules in Xinjiang The video appears to be ISIL's ""first direct threat"" against China, Michael Clarke, an expert on Xinjiang at the National Security College of Australian National University, told AFP news agency. - - ""It is the first time that Uighur-speaking militants have claimed allegiance to IS,"" he added.---- The video showed China is now ""very firmly a target of jihadist rhetoric"", Clarke said, marking a shift from years past when it rarely figured in statements by armed groups.---- But Clarke said it also could indicate a possible split among Uighur fighters, as it includes a warning to those fighting with the al-Qaeda-aligned Turkistan Islamic Party (TIP) in Syria.-- China's foreign ministry spokesman Geng Shuang said Wednesday he had not seen the video but noted that ""East Turkestan terrorist forces have been posing a severe threat to China's security."" - - He called for international cooperation ""to combat such terrorist forces"". China maintains tight security in Xinjiang but a drumbeat of deadly unrest has continued. A knife attack last month left eight dead, including three attackers, police said.---- The video was released on the same day China staged the latest in a series of mass rallies by armed police in Xinjiang meant to indicate Chinese resolve in crushing security threats.--- More than 10,000 officers gathered Monday in the regional capital Urumqi - the fourth such show of force this year in Xinjiang.---- In one violence-wracked corner of Xinjiang, authorities are offering rewards of up to $730,000 to those who expose attack plots or ""kill, wound, or subdue"" any assailants.--- - The ISIL video also featured images of Chinese riot police guarding mosques, patrolling Uighur markets, and arresting men in what appears to be western China. The Chinese flag is pictured engulfed in flames.---- Clarke said the hints of a Uighur split could ""intensify the threat to China"" as it indicates Uighur fighters may be able to tap into the capabilities of both ISIL and al-Qaeda.---- Overseas analysts have up to now expressed doubts about the strength of Uighur fighters, with some saying China exaggerates the threat to justify tough security. Source:-AFP news agency", -1712,2017/3/1,http://www.aljazeera.com/indepth/opinion/2017/03/xenophobic-violence-rainbow-nation-170301075103169.html,,,"For the fourth consecutive week now, South Africa is witnessing what many analysts call a ""resurgence"" of xenophobic violence in parts of Johannesburg and Pretoria, the country's capital city. The reality is that this type of violence is a daily occurrence in the country, although it does not always get media attention. It has, in fact, become a long-standing feature in post-apartheid South Africa. Since 1994, tens of thousands of people have been harassed, attacked or killed because of their status as outsiders or foreign nationals (PDF). Despite claims to the contrary by the government, violence against foreign nationals in South Africa did not end in June 2008 when the massive outbreak that started a month earlier subsided. As the current incidents illustrate, hostility towards foreign nationals is still pervasive in the country and continues to result in more cases of murder, injuries, threats of mob violence, looting and the destruction of residential property and businesses, as well as mass displacement. And yes, the violence is xenophobic (and not ""just crime"", as many in government prefer labelling it) because it is - as the scholar Belinda Dodson reminds us - ""an explicit targeting of foreign nationals or outsiders for violent attacks despite other material, political, cultural or social forces that might be at play"". (PDF) It is a hate crime whose logic goes beyond the often accompanying and misleading criminal opportunism. The real motive of the violence, as unambiguously expressed by the perpetrators themselves, is to drive foreign populations out of communities. A quick analytical look reveals that the drivers of ongoing xenophobic violence in South Africa, as well as the lack of effective response and preventive interventions, reflect a dreadful lack of competent, decisive and trusted leadership at all levels of government. The drivers of xenophobic violence in South Africa are inevitably multiple and embedded in a complex interplay of the country's past and present structural - political, social and economic - factors. Chief among underlying causal factors is obviously the prevailing anti-immigrant sentiment easily fuelled by political scapegoating. Political leaders and officials of the national, provincial and local government often blame foreign nationals for their systemic failures to deliver on the political promises and satisfy the citizenry's growing expectations (PDF). Due to political scapegoating, many South African citizens perceive foreign nationals as a serious threat that needs to be eliminated by any means necessary. This perception is stronger among the majority of citizens living in poor townships and informal settlements where they meet and fiercely compete with equally poor African immigrants for scarce resources and opportunities. The result is that local residents in these areas have become increasingly convinced that foreign nationals are to blame for all their socioeconomic ills and hardships including poverty, unemployment, poor service delivery, lack of business space and opportunities; crime; prostitution; drug and alcohol abuse; and deadly diseases (PDF). INTERACTIVE: No place like home - Xenophobia in South Africa By blaming foreign nationals for its failures to deliver on its core functions and responsibilities, the South African government is unfortunately displaying an obvious if sorry sign of weak and incompetent leadership. The triggers of the violence paint an even more worrying picture of the leadership deficit in the ""rainbow"" nation. Indeed, the strong anti-immigrant sentiment alone cannot explain the occurrence of violence in some areas and not in others where such negative attitudes are equally strong. Attitudes are not always a good predictor of behaviour. Rather ample research evidence indicates that the triggers of the violence are located in the ""micropolitics"" at play in many of country's towns townships and informal settlements (PDF). Instigators and perpetrators of xenophobic violence are well known in their respective communities, but the de facto impunity they enjoy only means that they are likely - as they have in many cases - to strike again. - Violent attacks on foreign nationals are usually triggered by political mobilisation led by local economic and/or political players and informal community leadership groups (in the form of civic organisations, community policing forums, business associations, concerned residents' associations, etc) for their economic and political interests. This violence is essentially ""politics by other means"". It has proved a useful tool for these local politicians to consolidate their power and community leadership monopoly needed to expand their client base and the economic revenues it represents. These ""violence entrepreneurs"" capitalise on people's sentiments and frustrations and have no difficulty co-opting local residents for participation in the violence given the pervasive negative attitudes. Xenophobic violence is triggered by the mobilisation of the existing collective discontent. It is common knowledge that the official South African government's response to xenophobia and related violence has been characterised by ""denialism"". Such denialism is rooted in a discourse which labels all xenophobic violence as ""just crime and not xenophobia"", a categorisation that demands few specific and sustained interventions or policy changes. Both President Jacob Zuma and Minister of Home Affairs Malusi Gigaba repeated the popular if infamous refrain this week. Perhaps understandably, admitting the existence of a xenophobic citizenry is both ideologically and politically uncomfortable for the ruling African National Congress, which is now the custodian of the multiracial, multi-ethnic ""rainbow"" nation and sees itself as the champion of human rights and unity in diversity. In addition to the lack of effective policy response, the government unwillingness to recognise xenophobia coupled with a general weak judicial system has also led to an alarming culture of impunity and lack of accountability for perpetrators and mandated institutions: foreign nationals have been repeatedly attacked in South Africa since 1994 but few perpetrators have been charged, even fewer convicted. In some instances, state agents have actively protected those accused of anti-foreigner violence. IN PICTURES: Homes burned, shops looted in anti-migrant attacks in South Africa Similarly, there have been no efforts to hold mandated institutions such as the police and the intelligence community accountable for their failure to prevent and stop violence despite visible warning signs. As an example, government promises to set up special courts to enable quick prosecutions after the 2008 and 2015 violence never materialised. Instigators and perpetrators of xenophobic violence are well known in their respective communities, but the de facto impunity they enjoy only means that they are likely - as they have in many cases - to strike again. Unfortunately, the government's unwillingness to acknowledge that this violence is xenophobic and its failure to work on finding appropriate solutions are a sign of ineffective leadership. Without appropriate intervention violence will continue. Jean Pierre Misago is a researcher with the African Centre for Migration and Society at the University of the Witwatersrand, South Africa.- The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1713,2017/3/1,http://www.aljazeera.com/indepth/features/2017/02/nicaragua-bloody-conflict-indigenous-land-170206114438236.html,Inside Nicaragua's bloody conflict over indigenous land Mira Galanova,"As new settlers occupy indigenous lands in Nicaragua, the violence is forcing the native Miskitos to flee to Honduras. By The state's absence Injustice for settlers Shady land deals Unfulfilled promises","Waspam, Nicaragua - The story that Lina Chale recounts in her native Miskito language is in stark contrast to the blue doves, a symbol of peace, painted on a white wall of a church behind her. ""They killed him in such a ghastly way,"" says 52-year-old Chale.- On August 18, 2016 , her younger brother Gerardo failed to return home from his farm in the mountains. He had been kidnapped along with another Miskito man from La Esperanza, a village on the Coco River. A few days later, indigenous rangers discovered their decapitated bodies . For the past two years, a string of violent attacks has plagued Nicaragua's Caribbean coast. According to CEJUDHCAN, a non-governmental organisation defending the rights of indigenous people in this region, 21 indigenous men have been killed since 2014, and dozens more wounded or kidnapped. Women have been raped. More people are still missing.-Armed men-have attacked several villages, including Polo Paiwas, which was burned to the ground in October 2015. The violence has been at its worst in the area of almost 4,000 square kilometres between the rivers Coco and Wawa, south of the border with Honduras. The Miskitos, the largest indigenous group on the Caribbean coast, with a population of up to 300,000, blame the attacks on ""settlers"" coming from other parts of the country and occupying their ancestral territories. Thousands of Mestizos, Nicaraguans of Spanish descent, have moved into the rainforests, lured by the promise of cheap, fertile land, precious timber and gold. Many are simple farmers or artisanal miners. The Miskitos have tried to force the newcomers out, but the settlers have been determined to stay. As tension has grown, a wave of violence has erupted, with killings on both sides of the dispute. The brutality of some attacks on the indigenous communities has fuelled suspicions that hired thugs are among the settlers. Fearing for their lives, almost 3,000 Miskitos have fled their homes since 2015, according to CEJUDHCAN . Many have taken refuge in neighbouring Honduras, where they live in makeshift huts, facing hunger and diseases. Others have stopped going to the mountains where they have farmed, hunted and fished for generations. ""We have all our livelihood there, but we have abandoned it,"" says Chale, who lives in La Esperanza . ""We are afraid that we could meet the same fate as my brother."" Her family now has to rely on the generosity of fellow Miskitos with plots closer to the village to provide them with food. ALSO READ: Nicaragua's staggering child-sex abuse rates Miskitos say the government has done little to stop the violence which has affected more than 40,000 people. According to CEJUDHCAN, the army was deployed only once - in December 2015 - and just for a few days, when three communities in the remote territory of Wangki Twi-Tasba Raya were attacked in a single day. The military took up stations but did nothing more. On the day of the attacks, three men from one of these communities were kidnapped. The police ignored pleas to search for them. ""The officer who answered the phone said their priority was to distribute Christmas toys for poor children,"" says CEJUDHCAN founder Lottie Cunningham. When Gerardo disappeared, the military base near the community of La Esperanza refused to help Chale search for her kidnapped brother. ""They said they were not authorised."" Miskitos claim that these crimes not only go uninvestigated but often, unrecorded. Neither the police nor the army responded to Al Jazeera requests for comment, but a government official speaking on the condition of anonymity confirmed that on a number of occasions the police have refused to receive complaints related to the land conflict. Miskitos see the lack of police and army action as the government siding with the Mestizos .- WATCH: Fault Lines - Honduras, Blood and the Water The Mestizos, however, believe the have also suffered an injustice. In September 2015, a group of Miskitos, led by Steadman Fagoth, an indigenous ally of Nicaragua's ruling Sandinista National Liberation Front ( FSLN) party, forced dozens of settler families out of the Morobila gold mine. The miners say they had paid indigenous communities for mining rights. The police and the army allegedly ignored their calls for protection before the eviction and have failed to investigate the looting and violence that accompanied it. ""When a Mestizo kills a Miskito, there is an outcry: Settlers! But when a Miskito kills a Mestizo nobody says anything,"" claims Alfredo Montiel, a member of a Mestizo farmers' association, formed in response to the land conflict. They're not usurpers, they say, but victims of a scam. ""We have suffered a lot of abuse because of the Law 445,"" says the farmers' association vice-president Jose Boanerges, citing the legislation which reserves more than half the Caribbean coast for indigenous people. This law bans the sale of indigenous lands. There has been a widespread practice, however, of unscrupulous indigenous leaders selling land illegally to settlers, disguising the sales as permits to use the land. Settlers are often aware that they're making an illegal purchase, but they say the trouble occurs when Miskitos don't respect the sales. ""Some farmers pay a fortune for land. Then other Miskitos come and say: 'This is our parcel, you have to pay us too'. This is why there are deaths,"" Montiel says, referring to how clashes happen. ""If I go to the police with my documents and I tell them the Miskitos want to take my land, they say: 'You are stupid if you let them to do it.' Where is the law?"" In September 2015 Mestizo farmers gathered in the town of Sahsa to show the local media hundreds of hoax permits, many of them stamped and signed by the president of the indigenous territory Tasba Pri, Waldo Muller. Boanerges, who bought a fake permit thinking he had purchased land, says Miskitos employ a simple ploy to evade the authorities. ""The trick is that they never include the sum paid on a permit,"" Boanerges says. ""We have informed the government about these anomalies. If it doesn't want to see it, then God knows what links there are between them."" ALSO READ: Honduras 'most dangerous country' for environmentalists Miskitos affected by the land conflict admit that there is corruption in their midst and have called for an investigation. ""If there are indigenous people involved in this, they should be punished,"" says Cunningham. ""There shouldn't be a whole community suffering for five corrupt leaders. If the state had investigated the first reports of the land sales, if the perpetrators had been publicly detained, the land invasions would have been halted."" In 2013, the government created an inter-institutional commission, chaired by the prosecutor-general, to tackle the issue. It has dismissed several public registrars and arrested lawyers and public notaries involved in the sales of indigenous lands. But it hasn't been enough. Miskitos believe that powerful groups and businesses are the real motor behind the settler invasion. The government would like to place the blame on the indigenous opposition party Yatama, but its own people are also involved. Gilles Bataillon, a French sociologist who has studied conflicts in the region, says that successive governors of the Caribbean coast, including Fagoth in the 1990s, have turned a blind eye on the land trafficking. Muller, who has signed numerous land sales, is a regional FSLN councillor and is allegedly in cahoots with the current governor, Carlos Aleman. ""People within the military nuclei of the FSLN have had the courage to report these irregularities to the FSLN's most influential man in the region, Lumberto Campbell. He replied that no one would touch Muller or Aleman,"" Bataillon says. When interviewed by Al Jazeera, Muller and Aleman both denied being involved in illegal land sales.- ALSO READ: Fidel Castro - A Latin American story Nicaragua was an international pioneer in granting significant land rights to native peoples. In 1987, indigenous communities gained autonomy over their ancestral territories on the Caribbean coast. In 2003, Law 445 bound the government to clear indigenous territories of people without proper land titles. President Daniel Ortega has publicly backed the Miskitos. ""It is an invasion! It is a fraud!"" he said in September 2015. ""The police must act immediately to evict those who are occupying"" indigenous lands, he stressed last October, only nine days before general elections. Fagoth, the government's indigenous ally, visited Miskito communities around the same time. ""He said that if we vote for the FSLN, they would begin clearing our territory the day after the elections,"" says Mariano Zamora, a member of the Council of Elders, the indigenous administrative body in La Esperanza. ""There have been many elections with pledges like this and nothing has happened."" Fagoth denies this was pure electioneering. ""The president is committed to clearing indigenous territories. But paperwork takes time,"" he says .- Cunningham is sceptical about the government's will to proceed. ""They don't want to discuss anything related to the land conflict. They hamper our work, don't let us access documents, or even enter their offices,"" she says. ""They don't really want to clear the territory, because they need the settlers' vote to stay in power."" Internationally, the government has initially denied any connection between the violence and the land conflict. ""The government told the Inter-American Court of Human Rights that it has received no complaints regarding the land conflict and that all the 2,000 and something complaints registered in 2015 on the Caribbean coast were common crimes,"" Cunningham says. In a later statement to the court in December, the government blamed the insecurity in the region on incitement by Yatama and CEJUDHCAN. It failed, however, to provide any answers about how it protected the communities at risk. Meanwhile, there are fears of a new wave of violence. Weapons, including firearms imported by drug traffickers or left behind after the 1970s and 1980s wars in Nicaragua, are abundant on the Caribbean coast. ""We don't know who to cry to,"" Zamora says. Tired of unfulfilled promises, his community ignored Fagoth's advice. ""He said that if we don't vote for the Front [FSLN], we can suffer three more years. So now we are waiting for the punishment."" Source:-Al Jazeera News", -1714,2017/3/1,http://www.aljazeera.com/indepth/opinion/2017/02/saudi-king-salman-seeks-asia-170228095334605.html,,,"In the final days of February, Saudi Arabia's King Salman bin Abdulaziz Al Saud, flanked by a 600-strong delegation, embarked on a month-long tour of the Asia-Pacific, where he is visiting Malaysia, Indonesia, Brunei, Japan, China, the Maldives, and, on his way back to the Middle East, Jordan. Saudi kings seldom undertake such ambitious regional tours, but King Salman's undertaking is an extension of the kingdom's more ambitious outreach to the Asia-Pacific since King Abdullah's death in 2015. Saudi state media and the royal court have portrayed the trip as primarily concerned with energy and investment matters, but the broader geopolitical context motivating this rare month-long regional tour by the king merits a closer look. The king's trip can be bifurcated into two tranches: China and Japan will fulfill one set of priorities while the trips to Malaysia, Indonesia, and Maldives satisfy another. First, while crude oil prices have somewhat recovered from their nadir in late 2015 and early 2016, Riyadh remains committed to its longer-term plan to reduce its dependence on oil revenues. In this project, the kingdom will need willing partners and investors in the Asia-Pacific region. The National Transformation Plan (NTP), conceived by Mohammed bin Salman, the young and ambitious deputy crown prince, has set out nearly 350 targets for Saudi governmental bodies that will require solid foreign direct investment. Indeed, King Salman's visit should be seen as the culmination of moves that were put in place by the deputy crown prince in mid-to-late 2016, when the NTP was announced, followed immediately by his own visits to Japan and China in particular. In Japan and China, the deputy crown prince - who is also the defence minister - received assurances from Prime Minister Shinzo Abe and President Xi Jinping that their countries would promote important inbound investment into the kingdom. Tokyo and Beijing, meanwhile, as large net importers of energy, see a good relationship with the kingdom as fundamentally in their national interest. China overtook the United States as the world's largest importer of crude in October 2016. The deputy crown prince alone can accomplish just so much, though. The crown jewel, so to speak, in the National Transformation Plan for Saudi Arabia is the forthcoming initial public offering for state oil giant Saudi Aramco. OPINION: China to pay a steep price in Saudi-Iran conflict Seeking out investment from Asian heavyweights such as China and Japan in this endeavour merits the king's attention; no surprise, then, that Salman's Asian itinerary includes stops in the region's two largest economies. With China, Saudi Arabia also sees an increasingly significant geopolitical counterweight to the US, whose foreign policy has grown uncertain since the inauguration of Donald Trump as president. In particular, amid an intensifying regional struggle against Iran, which took on a new character in early 2016 after Saudi Arabia executed the prominent Shia cleric Nimr al-Nimr, the kingdom has seen the value of courting influence in China. As King Salman heads to Asia, it's worth remembering that Riyadh's look eastward is not sudden, but borne of a strategic plan incorporating the priorities of the NTP and Saudi Arabia's broader global agenda. - Beijing's voice at the United Nations Security Council and the global stage more broadly on matters ranging from the implementation of the 2015 Iran nuclear deal, which the kingdom has strongly criticised, to Tehran's broader regional moves, leaves it a valuable partner for Saudi Arabia. Beijing, however, won't play along willingly with Riyadh's geopolitical plans for the Middle East. Since the 2016 nosedive in relations between the two regional heavyweights, China has sought to play an even hand, keeping its ties with both states on good footing. The second set of countries included on Salman's itinerary - Malaysia, Indonesia, Brunei, and Maldives - are compelling geopolitical targets for the kingdom in different ways. First, all four nations are Sunni Muslim majority, with Islam being the state religion in both Brunei and the Maldives. (Indonesia is constitutionally secular. The Malaysian constitution, on the other hand, leaves it officially secular while acknowledging Islam's prominent role in society.) All are also members of the Organisation of Islamic Cooperation. Viewing Saudi engagement with these countries strictly through the lens of Islam, of course, would oversimplify the extent of Riyadh's interests, but any time the Saudi King visits a majority-Muslim country, pan-Islamic rhetoric features prominently on the agenda and these four states are no exception. Moreover, despite widespread perceptions of and speculations on Saudi Arabia as having a role in enabling the spread of global Sunni armed groups over the decades, including al-Qaeda and the Islamic State of Iraq and the Levant (ISIL), the kingdom has been working overtime to cement its position as a counterterror powerhouse in the Muslim world. Last year, under the deputy crown prince's lead, Riyadh declared the foundation of a multi-country Islamic Military Alliance, nominally uniting a wide-range of Muslim-majority states against the ISIL. The deputy crown prince, in January 2016, met with the defence ministers of Indonesia, Malaysia, and the deputy defence minister of Brunei to confer on the matter. READ MORE: Saudi Aramco eyes $334bn investment by 2025 Maldives, as one of the highest per capita contributors of foreign fighters to the ISIL, was included in the alliance. Malaysia supported the alliance, but did not sign up for a military role. Indonesia and Brunei, meanwhile, expressed support for the initiative. The king will be looking to bolster perceptions of pan-Islamic cooperation against terror in the region, while also advancing the broader bilateral agenda. With regional economic heavyweights Malaysia and Indonesia in particular, King Salman and his coterie of advisers will also be looking to advance economic cooperation in line with the objectives of the NTP. Jakarta, which sees a Saudi king visit after a 47-year break, expects up to $25bn in inbound investment. The Saudi king's visit coincides with concerns that Indonesian Islam is beginning to shed its historic reputation for tolerance and moderation amid months of protests in Jakarta against the city's incumbent Chinese-Christian governor Basuki Tjahaja Purnama, also known as ""Ahok"". With the race for the Jakarta governorship under way now, with tensions still hot from the popular outcry against Ahok for perceived blasphemy against Islam, Indonesian Cabinet Secretary Pramono Anung expressed his hope that Saudi Arabia would promote moderate Islam. READ MORE: Saudi to boost 2017 spending as it cuts into deficit Radicalisation in Indonesia remains limited, but the country's authorities have grown concerned about the ISIL's forays into the region after a January 2016 attack in Jakarta. Days before King Salman's arrival in the country, another ISIL-linked attacker belonging to Jamaah Ansharut Daulah, a local terror group, set off a small bomb in Bandung . In this context, anti-Wahhabi moderate Sunni Islamic Indonesian groups such as Nahdlatul Ulama have long complained about Saudi-financed efforts in Indonesia to spread Salafi-Wahhabi, thought as a source of the country's increasingly perceptible rise in hardline Islam. In Kuala Lumpur, on the first leg of his trip, Malaysian state oil firm Petronas and Saudi Aramco signed a $7bn agreement that will see Saudi investment flow into an oil refinery and petrochemical project. While the investment ostensibly provides much-needed relief to Petronas, which had been struggling under low oil prices, Saudi investment in Malaysia has drawn public scrutiny since revelations that the kingdom may have been involved in the 1Malaysia Development Berhad scandal, whereby Malaysian Prime Minister Najib Razak is accused of appropriating nearly $1bn from a state development company, claiming that the money was a gift from Saudi Arabia. As King Salman heads to Asia, it's worth remembering that Riyadh's look eastward is not sudden, but borne of a strategic plan incorporating the priorities of the NTP and Saudi Arabia's broader global agenda. Saudi Arabia, like so many states in the region, is betting on the centre of gravity in global affairs shifting away from the West and towards the East in the coming years. Riyadh's dramatic plans to overhaul its economic model, paired with its historic bid to maintain its position as the leader of the Sunni Muslim world, leave pursuing ties with Asia-Pacific states non-optional. Ankit Panda is a global affairs analyst and senior editor at The Diplomat, where he writes on security, politics, and economics in the Asia-Pacific region.- The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1715,2017/3/1,http://www.aljazeera.com/indepth/features/2017/03/egypt-attacks-copts-sinai-message-isil-170301072118504.html,Egypt: Attacks on Copts in Sinai 'a message from ISIL' Farah Najjar,"The state's 'war on terrorism' in Sinai has proved unsuccessful, say analysts. By","The latest string of attacks in northern Sinai's El Arish against Coptic Christians were indirect attempts by armed groups to undermine the government, according to Egyptian experts and analysts. Hundreds of Copts fled their homes last week after seven Copts were killed over a span of 21 days, in deadly shooting and arson attacks. An estimated 150 families - more than 400 people - began arriving at the Suez Canal city of Ismailia, the closest to El Arish, seeking refuge in the Evangelical church on Thursday. The recent incidents have shed light and raised questions about the lack of security for residents, particularly minorities, in the peninsula. Mina Thabet, a researcher at the Egyptian Commission for Rights and Freedoms, a local non-governmental organisation, described the incident as an ""exodus"". ""People have no sense of safety whatsoever, they've been struck with panic and are still processing the events that have been taking place,"" Thabet told Al Jazeera, adding that more families were expected to flee in the coming days.- Although there has been no immediate claim of responsibility for the attacks, fighters affiliated with the Islamic State of Iraq and the Levant ( ISIL, also known as ISIS) group based in the Sinai province released a video on February 19, vowing to increase attacks against the Coptic Christian minority, inciting fear among the community. OPINION: Sinai insurgency - An enduring risk The Sinai Peninsula, a volatile desert region that is split into two governorates, north and south, has been a hotbed for various armed groups. Thabet said that public outrage at the attacks emphasised the need for a national strategy to help fight ""terrorism"" in the country, in steps that should be prompted by civil society groups. The vast majority of the Egyptian population is not impacted by the activity in Sinai, so it is easy for the central government to ignore - either because they aren't able to address the growing violence there or because they don't want to. Sarah Yerkes, Brookings Fellow and MENA expert In 2014, following a deadly suicide bombing that left 31 soldiers killed, President Abdel Fattah el-Sisi declared a state of emergency in the peninsula describing it as a ""nesting ground for terrorism and terrorists"". But for the 150 displaced families, the state's vow to fight ""terrorism"" and end the frequent attacks has proved unsuccessful. The fleeing families' testimonies, said Thabet, indicate that they have been feeling unsafe ever since Sisi ousted former President Mohamed Morsi of the Muslim Brotherhood back in 2013. While Coptic Christians have been eminent supporters of Sisi, according to testimonies made to local media, families are now wondering why the government remains silent, and why it is unable to protect them. A widowed woman who lost her husband to an attack in January, told the local Al-Bedaiah news outlet: ""Is this what has come of our country? The country my husband told me was dear? Where is the army that my husband left me and his children to serve?"" According to Thabet, Egypt's ministry of social solidarity told the community the current situation was ""temporary"". ""The reality shows otherwise,"" said Thabet. In a statement made on Friday, the Coptic Church in Egypt condemned the attacks and referred to them as ""acts of terrorism ""?exported to Egypt from abroad"", aimed at ""striking our national unity"". Speaking to Al Jazeera, a Cairo-based journalist and researcher on minority groups, who asked to remain anonymous for security reasons, described the church's position as ""weak and lenient"". ""They failed to confront the situation and address the attacks in a direct manner,"" he said. ""People expected the church to have a stronger stance."" This is not the first time Coptic Christians fled Sinai in fear of persecution. Waves of displacement have taken place in recent years, especially since a church in Rafah, a town near El Arish, was robbed and attacked several times in 2012. According to the researcher, there has long been an ""undeniable"" environment of discrimination against the minority. But Sinai, following the Egyptian uprising in 2011, has witnessed widespread violence targeting not only Copts, but also police and military personnel. In July 2015, ISIL affiliates were able to simultaneously attack multiple security and military targets, killing at least 35 people in posts located in various parts of Sinai, including El Arish and Sheikh Zuweid. Earlier this year, a truck bomb attack and a shooting killed at least 13 people. READ MORE: Sinai residents accuse state of extrajudicial killings The constant violence on the peninsula has led to the displacement of 30,000 families, who fled Rafah, Sheikh Zuweid, and El Arish over the past two years, parliamentarian Ibrahim Abu Sahrarah of northern Sinai said in a recent televised appearance. ""I met displaced people whose families were residents of El Arish for more than 100 years - it's all they know,"" the researcher said, adding that targeting the ""weak"" minority is easier for the armed groups. Through the attacks, he said, ISIL affiliates are sending a message to the state, telling them that they were successful in ""changing the demographic makeup"" of Sinai, which brings them a step closer to their objective of controlling territory in Egypt. ""They want to hurt the security apparatus, and one way of doing so is to have people say we are no longer provided with safety from our government"". Similarly, Samer Shehata, a specialist in Egyptian politics, told Al Jazeera that Copts were ""softer targets"" for armed groups in Sinai. Prior to the latest wave of attacks, said Shehata, the state's military and security personnel were the ""preferred choice"" for such groups. ""The primary target of the attacks is the Egyptian state and its ability to provide security for its citizens,"" he said, adding it was difficult to know whether the attacks were politically or religiously motivated. Shehata characterised Sinai as an area that lacks the full control of the state, ""particularly around the Gaza Strip [bordering Rafah], but most likely also other remote spaces in the interior"".- Egypt's most active armed group, calling itself the Province of Sinai, pledged allegiance to ISIL in 2014. It was previously known as Ansar Beit al-Maqdis. The group was formed during the security vacuum that followed the January 25 popular uprising in 2011 and has claimed numerous assaults on military personnel. According to analysts, Egypt has treated Sinai as a threat ever since Israeli forces withdrew from the peninsula in 1982. Sinai inhabitants, including Egyptian Bedouins, have been marginalised socially, politically, and economically as a result of the threat the region poses to Egyptian security forces. Egyptian Bedouins are seen by security forces as potential ""terrorists"" as opposed to full Egyptian citizens - rendering the region as underdeveloped and thus, fragile, according to Omar Ashour, an expert on Islamist movements.- But the recent wave of attacks, says one analyst, indicate that Copts are being targeted based on their religious affiliation. Sarah Yerkes, non-resident Brookings Fellow and MENA expert, told Al Jazeera that ISIL affiliates commonly target non-Muslims, and perceive Egypt's Copts as strong allies and supporters of Sisi. ""The Sinai peninsula is notoriously hard to govern and has been overrun by various armed groups,"" she said, adding that Sinai is home to armed groups due to the size of its territory, and also because it is ""physically removed from Cairo"". ""What happens in Sinai tends to stay in Sinai,"" Yerkes said. ""The vast majority of the Egyptian population is not impacted by the activity in Sinai, so it is easy for the central government to ignore - either because they aren't able to address the growing violence there or because they don't want to."" Source:-Al Jazeera", -1716,2017/3/1,http://www.aljazeera.com/indepth/features/2017/02/film-recreates-notorious-israeli-detention-centre-170228054749487.html,Film recreates notorious Israeli detention centre Zineb Abdessadok,Raed Andoni's Ghost Hunting explores trauma of former Palestinian prisoners as they rebuild their interrogation cell. By,"In his-award-winning documentary Ghost Hunting, director-Raed Andoni brings a group of former Palestinian prisoners to an empty warehouse in Ramallah and asks them to rebuild the interrogation centre where they were detained. The film explores the hidden trauma of Palestinians who have passed through the notorious Al Moskobyia detention centre in Jerusalem. Andoni began the project by placing an ad in a local newspaper calling for former detainees of Al Moskobiya, stipulating that the men must have expertise as carpenters, craftsmen and architects. The film, which also sheds light on Andoni's own experiences at Al Moskobiya three decades ago, aims to expose the trauma that Palestinians endure regularly in Israeli detention. Having Palestinians relive these experiences has been criticised by some as ethnically problematic, but Andoni believes that the film is an important way to raise awareness of the reality that Palestinians endure under occupation. ""If you can't handle what you see on screen,"" Andoni said, referring to the violent turn of the interrogations in Ghost Hunting, ""then you should not be OK with the Israeli occupation of Palestinians, period."" After his win at the Berlinale film festival for best documentary, Al Jazeera interviewed Andoni about how the documentary came about, the trauma of former Palestinian detainees and what he thinks of the criticism. READ MORE: Occupied words: On Israel's colonial narrative Al Jazeera: How did the idea for Ghost Hunting develop? Andoni: I started off wanting to do a film about the experience of Palestinian prisoners, but as I was doing my research and talking to prisoners, I saw that the full scope of emotions was deeper than a fictionalised story, and it would not be fair to script it. - If you're going to start a conversation about humanity and ethics, you should also have the courage to talk about Israel. The film has no actors. They are protagonists. They are in charge of what they decide to portray, because people who have experienced detainment and torture are survivors. They have the agency to perform their pain. The prison you see in the documentary is not history; it still exists today. Palestinians are still regularly incarcerated and tortured, and no one has ever glimpsed what Al Moskobiya looks like on the inside. So I asked my protagonists to rebuild it from their memories. That melding of fiction and reality the audience sees, begins to happen as an empty warehouse in the middle of Ramallah is being turned into a detention cell. That's the moment of truth, when you see the reality of what real prisoners have gone through as their memories take over and they find that outlet for their own stories.- READ MORE: The day I met my father in an Israeli jail Al Jazeera:- Was the documentary an attempt to heal trauma? Andoni:-I did have a psychologist on board, who advised me to tell the documentary participants they were free to step out whenever they want. So no one was forced to be there or take part in what played out. However, the project was not a form of healing. I do not want people to sympathise with them. It's a way for a conversation to be started about imprisonment, torture and detention centres like Al Maskobyia. When a former prisoner turns into their interrogator, he adapts his experience - it becomes tangible behaviour. The learning happens when you see the two frames side by side. The very place that is arguably out of the protagonists' nightmares becomes the space in which they express themselves. That's why I called it Ghost Hunting; the ghosts are the trauma, but they aren't really being hunted, they're being let out. Al Jazeera:-The film isn't heavily edited; why is that? Andoni: The documentary conveys reality. It does not attempt to play at fiction. I had a loose script before the filming starts, but I quickly scrapped that. The set was a space for honest, raw expression, and the cameras are constantly rolling, so you can see everything. Al Jazeera:-What would you say to people who have criticised the film as ""unethical""? I would say if you're going to start a conversation about humanity and ethics, you should also have the courage to talk about Israel. They are the ones who built the centre in the first place. Those who took part in the documentary always had the opportunity to leave. When they were imprisoned by Israeli officers, there was no way out. They were forced to stay there, forced to survive the torture. There are 700,000 Palestinians who just can't leave the horror they're living in at places like Al Moskobiya. If watching 20 people relate their experience is tough, imagine the trauma the rest of the Palestinian population has no choice but to live through. READ MORE: Coercion, violence and threats - Torture, Israeli-style Al Jazeera: Did you imagine that the documentary would win awards? Andoni:-For me, the greatest recognition I received was when I screened the film for the first time in Ramallah. Ninety percent of the audience there were former prisoners. The narrative of the film is Palestinian, so of course the audience in Ramallah understood what they were seeing on a different level from people who have never lived through trauma. The audience in Ramallah laughed at some scenes, cried at others and after the credits rolled, I swear to you, there was a large crowd of people standing outside the theatres in groups talking about their experiences in Israeli prisons. That's the conversation I wanted to create, and that for me is real recognition.- Source:-Al Jazeera", -1717,2017/3/1,http://www.aljazeera.com/indepth/features/2017/02/appalachia-hope-future-coal-170223121859843.html,"In Appalachia, some hope for a future without coal Sana Saeed The unheard story of Appalachia, Part 1","Once known as 'coal country', this impoverished region of the US is trying to build a future without the coal industry. By","Appalachia was once a booming region, with coal mining as the mainstay of its economy. But after the 1990s, coal production dipped to its lowest levels in this part of the United States as alternative sources of energy such as fracking were found. The area, once given the epithet of ""coal country"", has seen an increasing decline in economic activities over the past several decades. Homes lie abandoned by people who have fled the region in search of a better livelihood. Appalachia has one of the highest poverty rates in the US, and the death rate is higher than the birth rate. Although the decline of coal in Appalachia has had a severe impact on communities here, some believe the region can transition and thrive without the coal industry. AJ+ travelled to Appalachia to find people who are trying to make that happen. Here's their story: How coal's decline devastated Appalachia, Part 2 The people who are bringing back Appalachia, Part 3 Source:-Al Jazeera News", -1718,2017/3/1,http://www.aljazeera.com/news/2017/03/australia-record-breaking-summer-170301091327642.html,Australia's record-breaking summer,"Sydney and Brisbane hot, Perth wet, Kimberley flooded, and Uluru spurting waterfalls.","The climatological summer has ended in the southern hemisphere. The three months of December, January and February have been consistently used as a record of summer statistics and once again show newly broken records. In Australia, significant rain fell in much of the desert interior and the west, preventing Perth from enjoying a hot summer. In fact it has been the city's wettest summer on record: 193mm of rain fell during the three months. This beats the standing record of 180mm, set in 1954-55 and represents five times the summer rainfall average. Unsurprisingly, this has also been Perth's coolest summer in 11 years, but still sits around the long-term average for summer. There have been only 18 days measuring a temperature above 35 degrees Celsius this season, which is the second lowest number in a decade. The Kimberley, the northernmost region of Western Australia, has been particularly wet. On average, between 200mm and 600mm more than usual depth of rain has fallen. That represents at least 150 percent of the summer average rainfall. Further south in Western Australia - in the wheatbelt region around Perth and in the hot and dry Goldfields-Esperance area - rainfall this summer has been about 400 percent of the annual average. Sydney and Brisbane fared differently, both recording the hottest summer since beyond living memory. Sydney has been keeping climate records since 1861 so an unprecedented 26 days at or above 30C in the city is notable. In fact, Sidney also made new highs for average minimum (20.9C), average maximum (28.7C), and 24 hour average (24.8C) temperatures this summer. These were not just new records, they were statistically significant being 2C to 3C above the long-term average. According to the Australian Bureau of Meteorology, Brisbane too has had its hottest summer on record, with February's average maximum temperature at 32.6C. Meteorologist Janine Yuasa said ""during summer we've set a new record for the number of consecutive days above 30 degrees"". It was, coincidentally, 30 days. Temperature data in Brisbane are available for the last 130 years. We have now started the statistical autumn and, you might think to prove a point, Perth is forecast to hit 39C by Sunday. That is 10 degrees above average and only 3 below the record. Source:-Al Jazeera", -1719,2017/3/1,http://www.aljazeera.com/news/2017/03/hurriyet-military-unease-headline-angers-erdogan-170301041927795.html,Hurriyet's 'military unease' headline angers Erdogan,Headline alleging there is an 'unease' at the country's military headquarters angers President Erdogan. 'Unfounded and ill-intentioned' 'We are sorry' ,"The editor-in-chief of Turkey's flagship daily newspaper Hurriyet has been dismissed from his role days after the paper published a news article, titled ""Unease at the military headquarters"". According to Turkish media reports, the headline angered President Recep Tayyip Erdogan and the Turkish government, leading to the removal of Sedat Ergin, Hurriyet's veteran editor. Ergin, a journalist and political commentator, was appointed as the editor-in-chief of Hurriyet in August 2014. Saturday's news story, filed by Hurriyet's Ankara bureau chief Hande Firat, was focusing on how the General Staff, the highest military body in the country, evaluated the criticism and speculation directed at the Turkish armed forces following last year's failed coup attempt. Firat was the first journalist to put Erdogan-on air via FaceTime on the night of the coup attempt , during which she still worked as the Ankara representative of CNN Turk. Her report also claimed that last week's end to the headscarf ban in the military, military chief Hulusi Akar's foreign visits with Erdogan, and his recent visit to the Kardak Islets in the Aegean Sea - a piece of uninhabitable land that brought Turkey and Greece to the verge of a war in the 1990s - have attracted criticism from certain circles within the military. Hurriyet, in a statement published on Tuesday, said the report was ""based completely on an institutional briefing by the Turkish General Staff"". Erdogan and several Turkish media organisations argued that the choice of language in the headline of the article and claims within the text echoed news reports which preceded military interventions of the past. ""I tell you straight, the [story's] headline showed rudeness, a lack of character,"" Erdogan told reporters on Tuesday. READ MORE: Turkey's failed coup attempt - All you need to know ""Neither the newspaper's management nor the staff-have-the right to write such a headline. Some legal steps have been taken and we will follow this. Because there is no right and no authority to set state institutions against each other,"" he said. After Erdogan's comments, the Turkish military, which did not deny the contents of the article or criticise the choice of headline for four days following its publication on Saturday, issued a statement and said the report was "" unfounded and ill-intentioned"". ""We regret efforts to blur the agenda with allegations and defamation at a time when the Euphrates Shield operation [in northern Syria] is progressing successfully,"" the military said on Tuesday. ""Suggesting that there are problems between the Turkish armed forces and the government distorts the issue."" Also on Tuesday, which was coincidentally the tenth anniversary of the last successful military intervention in Turkey's history, Deputy Prime Minister Numan Kurtulmus said that armed forces were ""working in harmony with the government"". READ MORE: How will the military shake-up affect Turkey's future? In an obvious reference to Hurriyet's headline, Kurtulmus said: ""There is no uneasiness in the military, but it is obvious that some people in Turkey are disturbed by the fact that the Turkish armed forces are working in harmony with the government, which is elected as a result of the nation's will. ""Everyone should mind their own business. The media should mind its own business, bureaucracy, military bureaucracy and government as well,"" Kurtulmus added. Hurriyet, in a statement published on Tuesday, said it used the expression of ""unease"" in the story to explain the General Staff's reaction to the claims and criticisms targeting it.- ""However, unfortunately, after the story was published, we saw that this expression could be understood as if there was unease in the General Staff against the government,"" the newspaper said. ""It didn't cross our minds that such a meaning would be attributed to that headline. Such an intention is absolutely out of the question."" The newspaper accepted that the headline can be seen as an editorial mistake that goes beyond its purpose. ""For that, we are sorry,"" it said. ""The weakening of our army and attempts to drag it into domestic politics are situations that every Turkish citizen should reject. The army remaining under the orders of civilians that acquire their posts in elections is an essential condition for our democracy."" Meanwhile, the Bakirkoy chief public prosecutor's office in Istanbul has launched an investigation into Firat's report following a complaint from an academic at Istanbul University, according to Turkey's state-run Anadolu Agency. READ MORE: Die Welt's Deniz Yucel held for 'terror links' in Turkey Fikret Bila, another veteran journalist and Hurriyet columnist, is officially appointed as Hurriyet's editor-in-chief on Wednesday, according to Turkish media reports. In its 95-year history the Turkish republic has faced three military coups, in 1960, 1980 and in 1997. On February 28, 1997, the military presented the coalition led by Prime Minister Necmettin Erbakan with an ultimatum that led to its collapse. It became known as the postmodern coup because of the absence of actual violence in the military's replacement of the government. During this ""postmodern coup"", which was aiming to end the influence of political Islam in Turkish politics, most mainstream Turkish media organisations, including the Hurriyet daily, followed an editorial line sympathetic to the military. Source:-Al Jazeera News", -1720,2017/3/1,http://www.aljazeera.com/indepth/features/2017/02/american-muslims-apologising-170226113343098.html,What exactly are American Muslims apologising for? Ramzy Baroud,"American Muslims need revolutionary, not apologetic discourse By","For what, exactly, are American Muslims apologising? What sin have they committed as a collective, to be pushed into this wretched state of being - having to demonstrate their humanity, defend their religion and distance themselves from every act of violence, even if only allegedly committed by a Muslim, anywhere in the world? Long before the malicious ""Muslim Ban""-was first approved by the Donald Trump administration - banning citizens of seven Muslim-majority countries from entering the United States for 90 days - Muslims in the US have always, to varying degrees, been embattled: collectively demonised, racially profiled by government agencies, and targeted in numerous hate crimes by other Americans. The American hate story of Muslims goes back to even before September 11, 2001, and prior to the US war in Iraq in 1990-1991. The seemingly sudden realisation by various liberal groups that American Muslims are mistreated in their own country is hardly convincing. In a sense, it is also patronising, for the cause of the defenceless Muslim is now being used as a political tool, where Democrats and others are attempting to undermine the deplorable actions of their Republican rivals. Nothing is as dehumanising for Muslims as to feel that their inclusion, their citizenship and their humanity is conditioned by a set of condescending rules, articulated by the White, Christian elite. But where was this ""love"" for Muslims and the recognition of their humanity during the administrations of Barack Obama and Bill Clinton? Each of these Democratic Party presidents has-a-horrific legacy of violence and discrimination against Muslim countries; in fact, against Muslims everywhere. Is it acceptable then, on the one hand, to kill a Muslim while, on the other, to praise Islam as a religion of peace? In fact, the warmongering Republican administrations of George H Bush and George W Bush did precisely that.-Both Bush presidents, at the time, assured us that their wars were never against Muslims-yet, somehow, the Muslim death toll has constantly surged since the first Bush went to war in 1990. In a-landmark study-released in March 2015, the Washington-based group, Physicians for Social Responsibility, showed that the US self-styled ""war on terror"" has killed anywhere between 1.3 million to two million Muslims in the first 10 years since the September 11 attacks. Award-winning investigative journalist,-Nafeez Ahmed, concluded that at least four million Muslims have been killed by the US since 1990. This does not take into account all the killings that have taken place in the last two years. Yet, we are meant to ignore all of this, to pretend that the issue is merely that of a racist, obnoxious president and that the pinnacle of American violence against Muslims can be reduced to a 90-day travel ban on seven Muslim countries. READ MORE: Muslim ban: Japanese and Muslim Americans join forces Subscribing to this mischaracterisation does not only reflect ignorance, but also complete disregard for the millions of innocent lives that have been lost so that the US may get another chance at preserving its vastly dwindling empire. At the Democratic Party National Convention (DNC) last July, former President Bill Clinton took the stage to articulate a retort to the Republican party convention's hate-fest of Muslims, blacks, Latinos and everyone else who did not subscribe to their skewed view of the world.- But-Clinton's words were a mere liberal spin on the same chauvinistic, racist and exclusionist culture-that drives the political discourse of the right. ""If you're a Muslim and you love America and freedom and you hate terror, stay here and help us win and make a future together; we want you,""-Clinton said, before a large audience, which roared in cheerful applause. Nothing is as dehumanising for Muslims as to feel that their inclusion, their citizenship and their humanity is conditioned by a set of condescending rules, articulated by the white, Christian elite. What Clinton has wished to forget is that an estimated-third of the slaves-who built his country were, in fact, Muslims - shackled and dragged against their will to assemble the US, field by field and brick by brick. It is the slaves that mainly brought Islam to the US, and it is Islam that armed them with the virtue of patience and strength of character in order to survive one of the most ghastly genocides in human history, ancient or modern.-It is precisely because of this that the identity of the American Muslim is, at its heart, a political one, one concerned with human rights, with justice and equality. Thus, it was no aberration that-black Muslims-have played a tremendous role in confronting, challenging and clashing with the ruling white elitist order that has controlled the US from the very start. It is the Martin Luther King, Jr.-Malcolm X pair - backed by millions of black people throughout the country - that helped define the modern character of the black man and woman. They led the civil rights movement, exacting basic human rights at a heavy price and against terrible odds. OPINION: Why cannot Muslim talk about Muslim ban on US TV? The centre of gravity of the struggle for rights in the US might have shifted back and forth between gender, class, race and religious categorisation but, ultimately, it is inspired by the same historic fight of those cast as lesser: The slaves seeking freedom in a society that they had, essentially, built. The American Muslim, although not always identified as such, has always hovered around the core of that ongoing fight. It is important that American Muslim youth understands this well - their fight for equality and human rights in their country is not a manifestation of some Democratic Party's political game. Democratic administrations have historically been on the forefront of wars and mistreatment of Muslims, abroad and at home. Those aspiring to be the ""good Muslims"", the Uncle Toms, the ""not all Muslims are terrorist"" type, can only hope for second-class status. But those who aspire for true equality and justice ought to remember the words of American revolutionary, Assata Shakur: ""Nobody in the world, nobody in history, has ever gotten their freedom by appealing to the moral sense of people who were oppressing them."" Those who have done the oppressing constantly try to redefine the nature of the struggle of those whom they oppress. For Bill Clinton, the issue is solely Muslim ""terrorism"", never the terror inflicted upon Muslim nations by the US through a series of unjust wars that have killed millions. The coloniser, the oppressor, the invader is always, always blind to his crimes. He can only see the violent reaction - however minuscule - of the people he subjugates. According to the New America Foundation, alleged ""Jihadists"" killed 94 people in the US over the course of 10 years, between the years 2005-2015. It is around this same period that the US has killed nearly two million Muslims - in their own countries. Yet the government-and-media-driven fear-mongering, anti-Muslim and anti-Islam discourse (for which both liberals and conservatives are equally responsible) has made ""terrorism"" the leading ""fear"" among Americans,-according to a major national survey-in 2016. Even if we are to argue that the 94 deaths over the course of a decade are a compelling reason for irrational fears and mass phobias, US mainstream media and intellectuals are completely uninterested in unearthing the reasons of why some Muslims may wish to direct their violence against the US. They do not seem to fathom that every violent act has its roots. They refuse to acknowledge that the death of four million Muslims does matter to someone, and counts for something. In a typically-uneducated piece in the New York Times published a few years ago, Thomas Friedman argued that the problem lies in the failure of the American ""narrative"" to explain to Muslims that the US foreign policy ""has largely dedicated to rescuing Muslims or trying to help free them from tyranny"". READ MORE: Mixed reaction to Trump from prominent Muslim Americans It is the failure of the ""narrative"" that is allowing, according to Friedman, the ""jihadists to obscure"" the otherwise US charitable rule in the Muslim world. Unsurprisingly, the New York Times, and Friedman, in particular, have cheered for all of America's bloody wars and military interventions, backed Israel's wars against the Palestinians and have historically whitewashed the crimes of the American empire as virtuous, moral and driven by human rights and democracy. Now, the New York Times, along with other liberal media, is vehemently opposing Trump's measures against Muslims and refugees as ""un-American""-- a term that can only be truly understood within the context of intellectual hubris, not historical fact. American Muslims should not attempt to seek validation for their rights and identity from American liberal media, politicians and groups. Historically, such attempts have proved futile, anyway. They must quit trying to humanise themselves, from distancing themselves from their own brethren around the world and ameliorating their religion.-Instead, they should seek solidarity with other marginalised groups that are also targeted, victimised and forced to live in fear. It is solidarity that they need, not constant apology for who they are. American Muslims should seek true,-strategic solidarity-with African American groups (millions among them are Muslims, as well), Latino and Native American communities and nations. These groups have a shared history of pain that has-overlapped-for many years and many generations. Besides, the American Muslim identity was born and moulded in the heart of a painful struggle, from the moment a Muslim slave took his first step into the US, to this day. The protracted nature of their struggle requires intellectual courage, political unity,-intersectionality-and solidarity, all articulated in purely revolutionary thinking. In his book, Wretched of the Earth, one of the 20th century's most powerful revolutionary voices, Frantz Fanon, wrote, ""Each generation must discover its mission, fulfil it or betray it, in relative opacity."" For this generation of American Muslims, this is their moment: To discover and fulfil their mission, to define and assert who they are as the descendants of slaves, immigrants and refugees - the three main building blocks of the US. Either that, or they will continue to foolishly scramble for validation from those who have oppressed them in the first place. Ramzy Baroud has been writing about the Middle East for over 20 years. He is an internationally-syndicated columnist, a media consultant, an author of several books and the founder of PalestineChronicle.com. His books include Searching Jenin, The Second Palestinian Intifada and his latest My Father Was a Freedom Fighter: Gaza's Untold Story. His website is www.ramzybaroud.net Source:-Al Jazeera News", -1721,2017/3/1,http://www.aljazeera.com/news/2017/03/afghanistan-large-blast-rocks-west-kabul-170301081914512.html,"Multiple blasts in Kabul, Taliban claims attacks","Explosions and gunfire ring out at security compounds in Kabul, witnesses say, as Taliban claims responsibility.","The Taliban has attacked targets in different parts of the Afghan capital, Kabul, including a police headquarters in the western part of the city, killing at least one and wounding several people. A senior army official also reported an attack on a building on its eastern outskirts on Wednesday, as the Taliban claimed responsibility for additional attacks on an intelligence services facility and an army recruitment centre. Immediately after the explosion in the western part of the capital, gunfire rang out, witnesses told Al Jazeera. A Taliban spokesman claimed the group inflicted heavy casualties. Hospital officials told Al Jazeera that six wounded people were receiving medical care.- READ MORE: Senior Taliban leader killed in Kunduz air raid Police sources told Al Jazeera that a suicide car bomber detonated an explosives-laden vehicle next to the police station and near a military training centre. ""It (the west) is a very important and secure area,"" Al Jazeera's Qais Azimy, reporting from Kabul, said. ""At least two gunmen with suicide vests entered the police headquarters and currently there's fighting ongoing in that area,"" he added. The explosions were large enough to be heard throughout side of the city. Afghan security forces are battling a resurgent Taliban amid record casualties and mass desertions as the fighters escalate nationwide attacks even in winter months when the fighting usually wanes. Repeated bids to launch peace negotiations with the Taliban have failed and an intense new fighting season is expected to kick off in the spring. Source:-Al Jazeera and news agencies", -1722,2017/3/1,http://www.aljazeera.com/indepth/inpictures/2017/02/demobilising-farc-18th-front-170221140652391.html,"Civilians, FARC hold vigil following revised peace deal",,"The morning darkness is punctuated by the sound of pots clanking, and a burst of laughter. Members of the 18th-Front of the Revolutionary Armed Forces of Colombia, or FARC, are cooking breakfast at one of their four Pre-Concentration Zones near Ituango in Antioquia, Colombia. The 18th-Front is considered to be one of the left-wing group's more militarily successful fronts, exerting strategic influence in the northern part of Antioquia, a state that has been heavily affected by the country's 52-year civil war. It is a conflict that has involved government forces, drug cartels, right-wing paramilitaries and leftist guerrillas, and which has left hundreds of thousands dead, tens of thousands kidnapped and millions displaced. Although the initial peace accord between the Colombian government and the FARC was rejected in a plebiscite on October 2, both parties reached a new accord that was ratified by congress on November 30. As part of the demobilisation, disarmament, and reintegration process outlined in the peace accords, the FARC moved to pre-concentration sites in late 2016, before a move to UN Transitory Zones on January 31, 2017. On that day, 6,300 guerrillas moved to the UN-organised camps. Now, in the first few months of the peace process, the FARC is in a state of transition.", -1723,2017/3/1,http://www.aljazeera.com/news/2017/03/envoy-nikki-haley-afraid-call-russia-170301045511908.html,Nikki Haley: 'We are not afraid to call out Russia',US ambassador to the United Nations says Russia is neither friend nor foe and relations will 'depend on the day'. Russia: Friend or foe?-,"US ambassador to the United Nations Nikki Haley said the new administration of President Donald Trump ""will not hesitate to call out Russia if we see something wrong"".- Speaking to Al Jazeera's Washington editor James Bays after Trump's first address to a joined session of Congress on Tuesday evening, Haley said the president had changed his tone.- ""It was a very different tone. It was presidential. It was meant to tell the world that America is going to lead again,"" Haley said.- ""I think it was time for him to change the tone and he did that tonight. His goal is to unify the country. His goal is to let the world know that we're for peace and security and also we want to make more allies,"" she added. Asked if Russia could be one of those allies or whether Moscow was a foe of the new Trump administration, Haley said: ""Russia doesn't have to be one or the other. I think it depends on the day. ""Certainly if we can get Russia to be with us, that's fine. But today we were very upset by Russia not voting for the resolution that criticised Syria for using chemical weapons on their own people. ""We have criticised Russia for Crimea and Ukraine, for the actions they've taken there. We will call them out when we see something wrong. If we see where we can work together, of course, we're going to try and do that.""- READ MORE: Donald Trump calls for 'renewal of American spirit' Trump in his speech insisted on his support for the NATO alliance, but repeated that members must pay their way and warned it is not his job to ""represent the world"". The new leader spooked allied capitals during his campaign by arguing that US support for NATO should depend on members increasing defence spending, but he has since been at pains to defend the pact. ""My job is not to represent the world. My job is to represent the United States of America,"" he told the politicians, 40 days after taking office. ""We strongly support NATO,"" he said. ""But our partners must meet their financial obligations. ""We expect our partners, whether in NATO, in the Middle East or the Pacific, to take a direct and meaningful role in both strategic and military operations, and pay their fair share of the cost."" Haley repeated to Al Jazeera that US allies have nothing to worry about. ""My allies know, now more than ever, that we got their back. Israel has seen it; Ukraine has seen it; France and the UK has seen it,"" the ambassador said. ""We are going to continue to show them that. And they've seen us call out Russia multiple times. So I think there is nothing to worry about,"" she added. ""The United States is strong. We're going to lead again and we'r going to really show the world that we are about peace and stability."" Source:-Al Jazeera News", -1724,2017/3/1,http://www.aljazeera.com/news/2017/03/barranquilla-carnival-celebrates-colombian-folklore-170301003930468.html,Barranquilla carnival celebrates Colombian folklore,Barranquilla carnival is said to be the second largest in the world and has been declared a UNESCO World Heritage event.,"A spectacular carnival on the Caribbean coast of Colombia is under way with 1.5 million visitors expected over four days. The Barranquilla celebration is claimed to be the second largest in the world and has been declared a UNESCO World Heritage event. Spanning more than two centuries, the carnival is a display of elaborate Caribbean customs and traditional dances. But because of the negative reputation of Colombia-during the decades-long conflict between the FARC rebels and government forces - as well as high crime rates - the carnival has only recently started to receive international attention. Al Jazeera's Alessandro Rampietti reports from-Barranquilla. - Source:-Al Jazeera News", -1725,2017/3/1,http://www.aljazeera.com/news/2017/03/analysis-trump-speech-fails-deliver-hard-policy-170301074618823.html,Analysis: Trump speech fails to deliver on hard policy,"While pundits applauded the 'disciplined' address to Congress, lacking was any straight talk on political measures.","President Donald Trump's first speech to a joint session of Congress will be remembered for startling contrasts and unmistakable insincerity. While many in the United States will view this speech as a sign of renewed discipline on the part of President Trump he has still left much of the country - and the world - wondering how he will govern when he gets out of campaign mode. The most significant contrast to what the world has heard before in Trump's address was rhetorical. He didn't attack former-President Barack Obama. He didn't brag about winning the 2016 election. He didn't attack the American press, nor did he dwell on various perceived personal slights. Gone were Trump's dark and disturbing references to a dying US, to carnage in the streets, and to an almost post-apocalyptic notion of this nation that permeated his inauguration speech. Instead, this address to Congress was boilerplate Republican campaign rhetoric. He promised to improve American schools, protect the borders, bring back jobs, and touted his accomplishments after a month in office. It was, for all practical purposes, a campaign speech, which in and of itself isn't a problem. However, we have only heard campaign speeches from Donald Trump, he has yet to deliver the kind of meaty policy-oriented, or even ideological, speech that gives Americans and the world an idea as to what kind of country he seeks to create, not just correct. It is not clear how he will pay for many of the goals he lays out.- The unprecedented rhetorical discipline of this speech also makes it difficult to take sincerely, for those who have paid attention to the rise of Trump's presidency. While the White House delivered notes prior to the speech stating the president's goal was to unify the country, those attempts mostly fell flat. He began his address talking about Black History month in the US, as well as well as the recent rise in anti-Semitic vandalism and shootings of minorities and immigrants by American-born white people. While speaking on these issues is important, most of these attacks have been going on for weeks and Trump never said anything about them. When asked about anti-Semitism in a press conference, he became hostile. He has tweeted about White House leaks and spoken about Obama, but said nothing about white American violence against minorities in the US. What Trump truly cares about, he will tweet, so his words about unity and diversity sounded forced and perfunctory, not filled with the kind of passion or agency that infuses almost any other time he communicates with the public. Donald Trump is a master of speaking off the cuff, whether he is witty or stumbling, he prides himself on communicating with his heart and feeding off the energy of the crowd. When he operates from a prepared speech, as he did on Tuesday night, it comes off as wooden and insincere. All presidents have speech writers, but unlike Obama - or George W Bush or Bill Clinton or even back to Ronald Reagan ""?these writers have not mastered the art of having a prepared speech actually sound like it came from the mind of the president. While he warmed up near the end, when discussing fallen US troops, the majority of the speech lacked any of the passion that won Trump the presidency, let alone help him to convince Congress to go along with his budget. Like many of the scandals that plague this early administration, we have just scratched the surface of Donald Trump. This was his first speech, he may get better as time goes on, or he may maintain a strange contrast between his spontaneous speaking and what he says during prepared talks. Only time will tell. What we do know now is that Trump is capable of delivering a disciplined address to a joint session of Congress. If this is how low the standards for political communication have dropped in the US after only five weeks in office, one can only wonder how far down things may go once he is fully comfortable in power.- Jason Johnson is an American professor of political science and communications Source:-Al Jazeera", -1726,2017/3/1,http://www.aljazeera.com/blogs/editors-blog/2017/03/penguins-move-warming-world-170301044427176.html,,,"Mount Siple stands alone in one of the most remote parts of West Antarctica. It's one of the continent's largest volcanoes, rising 3,110 metres from a normally frozen sea. Very few people, let alone scientists, visit this part of Antarctica but due to poor weather and persistent pack ice to the northeast our planned voyage is diverted here. Using the expedition's two helicopters a team of researchers are flown to a headland on the edge of the mountain where there's an Adele penguin colony. Less than one percent of Antarctica is ice free, making a rookery like this a piece of prime real estate for nesting birds. From the air it's an extraordinary site, with tens of thousands of penguin chicks, clustered together on the rocks. There are tens of thousands more adult birds walking in ant-like lines along the edges of the ice cliff, arriving or leaving the colony from one of a few places where they can access the sea. It's late in the summer and the chick are now old enough to look after themselves while their parents catch fish and krill at sea, then return to feel them. This dependence means the chick's parents are still much in demand, sometimes from their own offspring, but frequently from other hungry chicks hoping for a feed. They chase the adults, flapping their short ineffective wings. Many are in the process of losing their baby-feathers, giving them a shabby rough appearance. Surveying colonies populations like this one gives researchers an idea of the health of the surrounding ecosystem. ""The nice thing about penguins and other seabirds is they give you this sort of canary in the coal mine indication of what's happening in the Southern Ocean,"" Peter Ryan of the University of Cape Town tells me as he bounds around the colony snapping hundreds of high-resolution photographs. Later he will examine these to get an accurate idea of the size of the colony, but initially it appears this colony is thriving. In other parts of Antarctica - especially on the Antarctic Peninsular on the west of the continent - penguin populations are not so constant. These areas are warming faster than any other place on the planet and as this happens scientists have noticed that colonies of Adele penguins are moving south down the peninsular. It's believed they may be in search of colder conditions, but- ""We've got indicators of change in terms of temperature measurements ice recession and the movement of birds to different habitats,"" David Walton, Chief Scientist of the Antarctic Circumnavigation Expedition tells me. All of which suggest to us that change is going in one particular direction; the peninsular is getting warmer; the ice is getting less and some of the more sensitive species are having a harder time."" In the coming weeks the new chicks will join their parents on the journey along the ice cliffs. Having lost their baby-feathers and strengthened their wings they will be ready to take to ocean. This colony on the edge of Mount Siple appears to be thriving, but it's not clear whether this year's brood will always return to this site, or whether our warming climate will force them to find a new place to nest. Source:-Al Jazeera News", -1727,2017/3/1,http://www.aljazeera.com/news/2017/03/transcript-donald-trump-congress-speech-full-170301060306943.html,Transcript: Donald Trump Congress speech in full,US president marked his 40th day in office with the delivery of his first address to a joint session of Congress.,"Here is Donald Trump's Congress speech in full: Tonight, as we mark the conclusion of our celebration of Black History Month, we are reminded of our nation's path toward civil rights and the work that still remains. Recent threats targeting Jewish community centers and vandalism of Jewish cemeteries, as well as last week's shooting in Kansas City, remind us that while we may be a-nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms. Each American generation passes the torch of truth, liberty and justice - in an unbroken chain all the way down to the present. That torch is now in our hands. And we will use it to light up the world. I am here tonight to deliver a message of unity and strength, and it is a message deeply delivered from my-heart. A new chapter of American greatness is now beginning. A new national pride is sweeping across our nation. READ MORE: Donald Trump calls for 'renewal of American spirit' And a new surge of optimism is placing impossible dreams firmly within our grasp. What we are witnessing today is the renewal of the American spirit. Our allies will find that America is once again ready to-lead. All the nations of the world - friend or foe - will find that America is strong, America is proud, and America is free. In nine years, the United States will celebrate the 250th anniversary of our founding - 250 years since the day we declared our independence. It will be one of the great milestones in the history of the world. But what will America look like as we reach our 250th year? What kind of country will we leave for our children? I will not allow the mistakes of recent decades past to define the course of our future. OPINION: Remaking the Republican Party - Populism a la Trump For too long, we've watched our middle class shrink as we've exported our jobs and wealth to foreign countries. We've financed and built one global project after another, but ignored the fates of our children in the inner cities of Chicago, Baltimore, Detroit - and so many other places throughout our land. We've defended the borders of other nations, while leaving our own borders wide open, for anyone to cross -- and for drugs to pour in at a now unprecedented rate. And we've spent trillions of dollars overseas, while our infrastructure at home has so badly crumbled. Then, in 2016, the earth shifted beneath our feet.- The rebellion started as a quiet protest, spoken by families of all colors and creeds - families who just wanted a fair shot for their children, and a fair hearing for their concerns. But then the quiet voices became a loud chorus - as thousands of citizens now spoke out together, from cities small and large, all across our country. Finally, the chorus became an earthquake - and the people turned out by the tens of millions, and they were all united by one very simple, but crucial demand, that America must put its own citizens first, because only then can we truly MAKE AMERICA GREAT AGAIN. Dying industries will come roaring back to life.- Heroic veterans will get the care they so desperately need. Our military will be given the resources its brave warriors so richly deserve. Crumbling infrastructure will be replaced with new roads, bridges, tunnels, airports and railways gleaming across our beautiful land. INTERACTIVE: THE PEOPLE vs AMERICA Our terrible drug epidemic will slow down and, ultimately, stop. And our neglected inner cities will see a rebirth of hope, safety, and opportunity. Above all else, we will keep our promises to the American people. It's been a little over a month since my inauguration, and I want to take this moment to update the nation on the progress I've made in keeping those promises. Since my election, Ford, Fiat-Chrysler, General Motors, Sprint, Softbank, Lockheed, Intel, Walmart, and many others, have-announced that they will invest billions of dollars in the-United States and will create tens of thousands of new American jobs. The stock market has gained almost three trillion dollars in value since the election on November 8, a record.- We've saved taxpayers hundreds of millions of dollars by bringing down the price of the fantastic new F-35 jet fighter, and will be saving billions more dollars on contracts all across our Government.- We have placed a hiring freeze on non-military and non-essential federal workers. We have begun to drain the swamp of government corruption by imposing a five-year ban on lobbying by executive branch officials - and a lifetime ban on becoming lobbyists for a foreign government. We have undertaken a historic effort to massively reduce job""�crushing regulations, creating a deregulation task force inside every government agency; imposing a new rule which mandates that for every one new regulation, two old regulations must be eliminated; and stopping a regulation that threatens the future and livelihoods of our great coal miners. We have cleared the way for the construction of the Keystone and Dakota Access Pipelines - thereby creating tens of-thousands of jobs - and I've issued a new directive that new American pipelines be made with American steel. We have withdrawn the United States from the job-killing Trans-Pacific Partnership. With the help of Prime Minister Justin Trudeau, we have formed a council with our neighbors in Canada to help ensure that women entrepreneurs have access to the networks, markets and capital they need to start a business and live out their financial dreams. To protect our citizens, I have directed the Department of Justice to form a Task Force on Reducing Violent Crime. I have further ordered the Departments of Homeland Security and Justice, along with the Department of State and the Director of National Intelligence, to coordinate an aggressive strategy to dismantle the criminal cartels that have spread across our nation. We will stop the drugs from pouring into our country and poisoning our youth - and we will expand treatment for those who have become so badly addicted. At the same time, my administration has answered the pleas of the American people for immigration enforcement and border security.- By finally enforcing our immigration laws, we will raise wages, help the unemployed, save billions of dollars, and make our communities safer for everyone.- We want all Americans to succeed - but that can't happen in an environment of lawless chaos.- We must restore integrity and the rule of law to our borders. READ MORE: Donald Trump's cabinet picks - Who's who? For that reason, we will soon begin the construction of a great wall along our southern border. It will be started ahead of schedule and, when finished, it will be a very effective weapon against drugs and crime. As we speak, we are removing gang members, drug dealers and-criminals that threaten our communities and prey on our citizens.- Bad ones are going out as I speak tonight and as I-have promised. To any in Congress who do not believe we should enforce our laws, I would ask you this question: what would you say to the American family that loses their jobs, their income, or a loved one, because America refused to uphold its laws and defend its borders? Our obligation is to serve, protect, and defend the citizens of the United States. We are also taking strong measures to protect our nation from radical Islamic terrorism. According to data provided by the Department of Justice, the vast majority of individuals convicted for terrorism-related offences since 9/11 came here from outside of our country.- We have seen the attacks at home - from Boston to San Bernardino to the Pentagon and, yes, even the World Trade Center. We have seen the attacks in France, in Belgium, in Germany and all over the world. It is not compassionate, but reckless, to allow uncontrolled entry from places where proper vetting cannot occur. Those given the high honor of admission to the United-States should support this country and love its people-and its values. We cannot allow a beachhead of terrorism to form inside America - we cannot allow our nation to become a sanctuary for extremists. That is why my administration has been working on improved vetting procedures, and we will shortly take new steps to keep our nation safe - and to keep out those who would do us harm. As promised, I directed the Department of Defense to develop a plan to demolish and destroy ISIS - a network of lawless savages that have slaughtered Muslims and Christians, and men, women, and children of all faiths and beliefs.- We will work with our allies, including our friends and allies in the Muslim world, to extinguish this vile enemy from our planet. I have also imposed new sanctions on entities and individuals who support Iran's ballistic missile programme, and reaffirmed our unbreakable alliance with the State of Israel. Finally, I have kept my promise to appoint a Justice to the United States Supreme Court - from my list of 20 judges - who will defend our Constitution. I am honored to have Maureen Scalia with us in the gallery tonight. Her late, great husband, Antonin Scalia, will for ever be a symbol of American justice. To fill his seat, we have chosen Judge Neil Gorsuch, a man of incredible skill, and deep devotion to the law.- He was confirmed unanimously to the Court of Appeals, and I am asking the Senate to swiftly approve his nomination. Tonight, as I outline the next steps we must take as a country, we must honestly acknowledge the circumstances we inherited. Ninety-four million Americans are out of the labor force. Over 43 million people are now living in poverty, and over 43 million Americans are on food stamps. More than one in five people in their prime working years are not working. We have the worst financial recovery in 65 years. In the last eight years, the past administration has put on more new debt than nearly all other presidents combined. We've lost more than one-fourth of our manufacturing jobs since NAFTA was approved, and we've lost 60,000 factories since China joined the World Trade Organization in 2001. Our trade deficit in goods with the world last year was nearly $800bn dollars. READ MORE: Trump - VOICE agency to publish crimes by immigrants And overseas, we have inherited a series of tragic foreign policy disasters. Solving these and so many other pressing problems will require us to work past the differences of party.- It will require us to tap into the American spirit that has overcome every challenge throughout our long and storied history. But to accomplish our goals at home and abroad, we must restart the engine of the American economy - making it easier for companies to do business in the United States, and much harder for companies to leave. Right now, American companies are taxed at one of the highest rates anywhere in the world. My economic team is developing historic tax reform that will reduce the tax rate on our companies so they can compete and thrive anywhere and with anyone.- At the same time, we will provide massive tax relief for the middle class. We must create a level playing field for American companies and workers. Currently, when we ship products out of America, many other countries make us pay very high tariffs and taxes - but when foreign companies ship their products into America, we charge them almost nothing. I just met with officials and workers from a great American company, Harley-Davidson. In fact, they proudly displayed five of their magnificent motorcycles, made in the USA, on the front lawn of the White House. At our meeting, I asked them, how are you doing, how is business?- They said that it's good. I asked them further how they are doing with other countries, mainly international sales.- They told me -without even complaining because they have been mistreated for so long that they have become used to it - that it is very hard to do business with other countries because they tax our goods at such a high rate.- They said that in one case another country taxed their motorcycles at 100 percent. They weren't even asking for change. But I am. believe strongly in free trade but it also has to be FAIR TRADE. The first Republican President, Abraham Lincoln, warned that the ""abandonment of the protective policy by the American Government [will] produce want and ruin among our people."" Lincoln was right - and it is time we heeded his words. I-am not going to let America and its great companies and workers be taken advantage of any more. I am going to bring back millions of jobs. Protecting our workers also means reforming our system of legal immigration. The current, outdated system depresses wages for our poorest workers, and puts great pressure on taxpayers. Nations around the world, like Canada, Australia and many others - have a merit-based immigration system. It is a basic principle that those seeking to enter a country ought to be able to support themselves financially.- Yet, in America, we do not enforce this rule, straining the very public resources that our poorest citizens rely upon.- According to the National Academy of Sciences, our current immigration system costs America's taxpayers many billions of dollars a year. Switching away from this current system of lower-skilled immigration, and instead adopting a merit-based system, will have many benefits: it will save countless dollars, raise workers' wages, and help struggling families - including immigrant families - enter the middle class. I believe that real and positive immigration reform is possible, as long as we focus on the following goals: to improve jobs and wages for Americans, to strengthen our nation""�s security, and to restore respect for our laws. If we are guided by the wellbeing of American citizens then I believe Republicans and Democrats can work together to achieve an outcome that has eluded our country for decades. READ MORE: 'White Helmets' bags Oscar on politically charged night Another Republican President, Dwight D Eisenhower, initiated the last truly great national infrastructure programme - the building of the interstate highway system.- The time has come for a new programme of national rebuilding. America has spent approximately $6 trillion in the-Middle East, all this while our infrastructure at home is crumbling.- With this $6 trillion we could have rebuilt our country - twice. And maybe even three times if we had people who had the ability to negotiate. To launch our national rebuilding, I will be asking the Congress to approve legislation that produces a $1 trillion investment in the infrastructure of the United States - financed through both public and private capital - creating millions of new jobs. This effort will be guided by two core principles: buy American, and hire American. Tonight, I am also calling on this Congress to repeal and replace Obamacare with reforms that expand choice, increase access, lower costs, and, at the same time, provide better healthcare. Mandating every American to buy government-approved health insurance was never the right solution for America.- The way to make health insurance available to everyone is to lower the cost of health insurance, and that is what we will do. Obamacare premiums nationwide have increased by double and triple digits. As an example, Arizona went up 116 percent last year alone. Governor Matt Bevin of Kentucky just said Obamacare is failing in his state - it is unsustainable and collapsing. One third of counties have only one insurer on the exchanges - leaving many Americans with no choice at all. Remember when you were told that you could keep your doctor, and keep your plan? We now know that all of those promises have been broken. Obamacare is collapsing - and we must act decisively to protect all Americans. Action is not a choice - it is a necessity. So I am calling on all Democrats and Republicans in the Congress to work with us to save Americans from this imploding Obamacare disaster. Here are the principles that should guide the Congress as we move to create a better healthcare system for all Americans: First, we should ensure that Americans with pre-existing conditions have access to coverage, and that we have a stable transition for Americans currently enrolled in the healthcare exchanges. Secondly, we should help Americans purchase their own coverage, through the use of tax credits and expanded health savings accounts - but it must be the plan they want, not the plan forced on them by the government. Thirdly, we should give our great state governors the resources and flexibility they need with Medicaid to make sure no one is left out. READ MORE: Who got the right to vote when? Fourthly, we should implement legal reforms that protect patients and doctors from unnecessary costs that drive up the price of insurance - and work to bring down the artificially high price of drugs and bring them down immediately. Finally, the time has come to give Americans the freedom to purchase health insurance across State lines -creating a truly competitive national marketplace that will bring cost way down and provide far better care. Everything that is broken in our country can be fixed. Every problem can be solved. And every hurting family can find healing, and hope. Our citizens deserve this, and so much more - so why not join forces to finally get it done? On this and so many other things, Democrats and Republicans should get together and unite for the good of our country, and for the good of the American people. My administration wants to work with members in both parties to make childcare accessible and affordable, to help ensure new parents have paid family leave, to invest in women's health, and to promote clean air and clear water, and to rebuild our military and our infrastructure. True love for our people requires us to find common ground, to advance the common good, and to cooperate on behalf of every American child who deserves a brighter future. An incredible young woman is with us this evening who should serve as an inspiration to us all. Today is Rare Disease Day, and joining us in the gallery is a rare disease survivor, Megan Crowley.- Megan was diagnosed with Pompe Disease, a rare and serious illness, when she was 15-months old. She was not expected to live past five. On receiving this news, Megan's dad, John, fought with everything he had to save the life of his precious child.- He founded a company to look for a cure, and helped develop the drug that saved Megan's life.- Today she is 20 years old - and a sophomore at Notre Dame. Megan's story is about the unbounded power of a father's love for a daughter. But our slow and burdensome approval process at the Food and Drug Administration keeps too many advances, like the one that saved Megan's life, from reaching those in need. If we slash the restraints, not just at the FDA but across our Government, then we will be blessed with far more miracles like Megan. In fact, our children will grow up in a nation of miracles. But to achieve this future, we must enrich the mind - and the souls - of every American child. Education is the civil rights issue of our time. I am calling upon members of both parties to pass an education bill that funds school choice for disadvantaged youth, including millions of African-American and Latino children.- These families should be free to choose the public, private, charter, magnet, religious or home school that is right for them. Joining us tonight in the gallery is a remarkable woman, Denisha Merriweather.- As a young girl, Denisha struggled in school and failed third grade twice.- But then she was able to enroll in a private center for learning, with the help of a tax credit scholarship programme.- Today, she is the first in her family to graduate, not just from high school, but from college.- Later this year she will get her masters degree in social work. We want all children to be able to break the cycle of poverty just like Denisha. But to break the cycle of poverty, we must also break the cycle of violence. The murder rate in 2015 experienced its largest single-year increase in nearly half a century. In Chicago, more than 4,000 people were shot last year alone - and the murder rate so far this year has been even higher. This is not acceptable in our society. Every American child should be able to grow up in a safe community, to attend a great school, and to have access to a high-paying job. But to create this future, we must work with - not against - the men and women of law enforcement. We must build bridges of cooperation and trust - not drive the wedge of disunity and division. Police and sheriffs are members of our community.- They are friends and neighbors, they are mothers and fathers, sons and daughters - and they leave behind loved ones every day who worry whether or not they'll come home safe and sound. We must support the incredible men and women of law enforcement. And we must support the victims of crime. OPINION: Trump's 'Muslim ban' is not an exception in US history I have ordered the Department of Homeland Security to create an office to serve American victims. The office is called VOICE - Victims Of Immigration Crime Engagement. We are providing a voice to those who have been ignored by our media, and silenced by special interests. Joining us in the audience tonight are four very brave Americans whose government failed them. Their names are Jamiel Shaw, Susan Oliver, Jenna Oliver, and Jessica Davis. Jamiel's 17-year-old son was viciously murdered by an illegal immigrant gang member who had just been released from prison.- Jamiel Shaw Jr was an incredible young man, with unlimited potential, who was getting ready to go to college where he would have excelled as a great quarterback.- But he never got the chance.- His father, who is in the audience tonight, has become a good friend of mine. Also with us are Susan Oliver and Jessica Davis.- Their husbands - Deputy Sheriff Danny Oliver and Detective Michael Davis - were slain in the line of duty in California.- They were pillars of their community.- These brave men were viciously gunned down by an illegal immigrant with a criminal record and two prior deportations. Sitting with Susan is her daughter, Jenna. Jenna: I want you to know that your father was a hero, and that tonight you have the love of an entire country supporting you and praying for you. To Jamiel, Jenna, Susan and Jessica: I want you to know - we will never stop fighting for justice.- Your loved ones will never be forgotten, we will always honor their memory. Finally, to keep America safe we must provide the men and women of the United States military with the tools they need to prevent war and - if they must - to fight and to win. I am sending the Congress a budget that rebuilds the military, eliminates the defense sequester, and calls for one of the largest increases in national defense spending in American history. My budget will also increase funding for our veterans. READ MORE: NYC Yemenis close bodegas to protest Trump travel ban Our veterans have delivered for this nation - and now we must deliver for them. The challenges we face as a nation are great.- But our people are even greater. And none are greater or braver than those who fight for America in uniform. We are blessed to be joined tonight by Carryn Owens, the widow of a US Navy Special Operator, Senior Chief William ""Ryan"" Owens.- Ryan died as he lived: a warrior, and a hero ""?battling against terrorism and securing our nation. I just spoke to General Mattis, who reconfirmed that, and I-quote, ""Ryan was a part of a highly successful raid that generated large amounts of vital intelligence that will lead to many more victories in the future against our enemies.""- Ryan's legacy is etched into eternity. For as the Bible teaches us, there is no greater act of love than to lay down one's life for one's friends. Ryan laid down his life for his friends, for his country, and for our freedom. We will never forget him. To those allies who wonder what kind of friend America will be, look no further than the heroes who wear our uniform. Our foreign policy calls for a direct, robust and meaningful engagement with the world. It is American leadership based on vital security interests that we share with our allies across the globe. We strongly support NATO, an alliance forged through the bonds of two world wars that dethroned fascism, and a Cold War that defeated communism. But our partners must meet their financial obligations. And now, based on our very strong and frank discussions, they are beginning to do just that. We expect our partners, whether in NATO, in the Middle East, or the Pacific, to take a direct and meaningful role in both strategic and military operations, and pay their fair share of the cost. We will respect historic institutions, but we will also respect the sovereign rights of nations. Free nations are the best vehicle for expressing the will of the people - and America respects the right of all nations to chart their own path.- My job is not to represent the world.- My job is to represent the United States of America. But we know that America is better off when there is less conflict - not more. We must learn from the mistakes of the past - we have seen the war and destruction that have raged across our world. The only long-term solution for these humanitarian disasters is to create the conditions where displaced persons can safely return home and begin the long process of rebuilding. America is willing to find new friends, and to forge new partnerships, where shared interests align.- We want harmony and stability, not war and conflict. We want peace, wherever peace can be found. America-is friends today with former enemies. Some of our closest allies, decades ago, fought on the opposite side of these world wars. This history should give us all faith in the possibilities for a better world. Hopefully, the 250th year for America will see a world that is more peaceful, more just and more free. On our 100th anniversary, in 1876, citizens from across our nation came to Philadelphia to celebrate America's centennial.- At that celebration, the country's builders and artists and inventors showed off their creations. Alexander Graham Bell displayed his telephone for the first time. Remington unveiled the first typewriter.- An early attempt was made at electric light. Thomas Edison showed an automatic telegraph and an electric pen. Imagine the wonders our country could know in America's 250th year. Think of the marvels we can achieve if we simply set free the dreams of our people. Cures to illnesses that have always plagued us are not too much to hope. American footprints on distant worlds are not too big a dream. Millions lifted from welfare to work is not too much to expect. And streets where mothers are safe from fear - schools where children learn in peace - and jobs where Americans prosper and grow - are not too much to ask. When we have all of this, we will have made America greater than ever before. For all Americans. READ MORE: How did Donald Trump win the US presidential election? This is our vision. This is our mission. But we can only get there together. We are one people, with one destiny. We all bleed the same blood. We all salute the same flag. And we are all made by the same God. And when we fulfill this vision; when we celebrate our 250 years of glorious freedom, we will look back on tonight as when this new chapter of American greatness began. The time for small thinking is over. The time for trivial fights is behind us. We just need the courage to share the dreams that fill our hearts. The bravery to express the hopes that stir our souls. And the confidence to turn those hopes and dreams to action. From now on, America will be empowered by our aspirations, not burdened by our fears -- inspired by the future, not bound by the failures of the past - and guided by our vision, not blinded by our doubts. I am asking all citizens to embrace this renewal of the American spirit. I am asking all members of Congress to join me in dreaming big, and bold and daring things for our country. And I am asking everyone watching tonight to seize this moment and - Believe in yourselves. Believe in your future. And believe, once more, in America. Thank you, God bless you, and God bless these United-States. ", -1728,2017/3/1,http://www.aljazeera.com/news/2017/03/trump-voice-agency-publish-crimes-immigrants-170301060525316.html,Trump: Agency to support 'victims of immigrant crimes',"In first speech to Congress, new president announces special office to assist victims of crimes committed by immigrants. Path to papers 'Build the wall'","President Donald Trump said he has given orders to create a special office to assist victims of crime by immigrants: ""VOICE"" - Victims of Immigration Crime Engagement. According to the Independent, the VOICE agency is expected to publish a weekly list of all crimes committed by immigrants, suggesting that anyone who has moved to the US, both documented and undocumented, could find their name on the public document. Trump announced the initiative on Tuesday during his first speech to Congress, where there were audible groans and sounds of surprise from people in the audience when he said the name of the new office. READ MORE: Donald Trump calls for 'renewal of American spirit' The president said the United States must support law enforcement and victims of crime, adding it will provide a voice to people ignored by the media and ""silenced by special interests"". Trump-paid tribute to four guests in the audience, who, he said, had lost loved ones in violent crimes committed by immigrants living in the country illegally. He also suggested a new merit-based system to regulate entry to the United States, as he tried to square his campaign rhetoric with the goal of broad immigration reform. Addressing Congress, Trump stood by his plan to subject travellers from several mainly-Muslim countries deemed a risk to extreme vetting, insisting: ""We cannot allow a beachhead of terrorism to form inside America."" But - alongside this promise of ""strong measures to protect our nation from radical Islamic terrorism"" - he held out the prospect of a merit-based immigration system that might win cross-party support. Arguing that mass immigration by unskilled workers costs US taxpayers billions of dollars and depresses wages and job opportunities of the working poor, Trump urged lawmakers to get behind reform. ""If we are guided by the well-being of American citizens then I believe Republicans and Democrats can work together to achieve an outcome that has eluded our country for decades,"" he argued. A merit-based system - such as those in use in Canada and Australia - would, he argued ""save countless dollars, raise workers' wages, and help struggling families - including immigrant families - enter the middle class"". ""It is a basic principle that those seeking to enter a country ought to be able to support themselves financially,"" Trump told lawmakers. ""Yet, in America, we do not enforce this rule, straining the very public resources that our poorest citizens rely upon,"" he added. US lawmakers, encouraged by the previous administration under Barack Obama, have long sought to agree on a broad-based package to provide roughly 11 million undocumented migrants with a path to legal residency. But Republican members, in particular, faced opposition from their electoral base to any measure that smacked of an ""amnesty"" for illegal immigrants - a sentiment that Trump played up during his campaign. READ MORE: Donald Trump vows to 'demolish and destroy' ISIL Vowing to build a wall on the Mexican border to keep out migrants he branded ""drug-dealers, murderers and rapists"", Trump gave every appearance of planning a still tougher line on immigration. But his attempts to introduce a visa ban on visitors from seven mainly-Muslim countries have been halted by the courts and he faces opposition from influential quarters to toughen general controls. Silicon Valley software giants, with their huge lobbying reach, rely on recruiting foreign engineers - particularly from the Indian sub-continent - and Republican backers in construction and agriculture employ millions of migrants. Federal officers from Immigration and Customs Enforcement and from Customs and Border Protection have set about enforcing existing immigration law with renewed vigour - but their dragnet has triggered popular protests. Earlier Tuesday, Trump suggested in a meeting with television news anchors that he was open to a deal that would legalise millions of undocumented immigrants as part of a bipartisan compromise. That would mark a dramatic shift in policy. ""The time is right for an immigration bill as long as there is compromise on both sides,"" Trump reportedly told the anchors. But there is clearly a line that Trump cannot cross if he is to placate his electoral base. Blue-collar crowds in the key states that gave him victory cheered his ""Build the Wall"" mantra to the rafters. READ MORE: Nikki Haley - 'We are not afraid to call out Russia' And Trump has firmly tied his pledge to fight illegal immigration to the prospect of jobs and security at home. ""By finally enforcing our immigration laws, we will raise wages, help the unemployed, save billions and billions of dollars and make our communities safer for everyone,"" he said. Al Jazeera's James Bays, reporting from Capitol Hill, said the address was very different from previous Trump speeches. ""It was a conventional speech, a presidential speech ... with no references to 'fake news' or 'dishonest media'"". ""He said in his speech that 'the time for trivial fights is behind us'... This feels a bit like a reset speech from the president. A new tone, but not much new in terms of policy,"" said Bays. Source:-Al Jazeera and news agencies", -1729,2017/3/1,http://www.aljazeera.com/news/2017/03/donald-trump-vows-demolish-destroy-isil-170301052500361.html,Donald Trump vows to 'demolish and destroy' ISIL,"Addressing Congress, US president also honoured Navy Seal killed in raid against in al-Qaeda in Yemen.","President Donald Trump said military plans have been set in motion to ""extinguish"" the ISIL group as he vowed to keep ""terrorists"" from operating in the United States. - During his speech to the US Congress on Tuesday night, Trump said it was the responsibility of his new administration to ensure improved vetting procedures to ""keep those out who will do us harm"". The president said national security data shows the vast majority of people convicted of ""terrorism"" offences came from outside the United States. ""We have seen the attacks at home from Boston to San Bernardino to the Pentagon. And, yes, even the World Trade Center. We have seen the attacks in France, Belgium, Germany and all over the world. ""We cannot allow a beachhead of terrorists to form inside America. We cannot allow our nation to become a sanctuary for extremists,"" said Trump. He specifically addressed the threat from the Islamic State of Iraq and the Levant, also known as ISIS, during his address. ""As promised, I've directed the Department of Defense to develop a plan to demolish and destroy ISIS - a network of lawless savages that have slaughtered Muslims and Christians and men, women and children of all faiths and all beliefs. ""We will work with our allies, including our allies in the Muslim world, to extinguish this vile enemy from our planet,"" the president said. Trump also honoured an American commando killed in a Yemen raid against al-Qaeda on January 29, which was ordered by the new administration in its first days. READ MORE: Yemeni civilians killed in first US raid under Trump The widow of Navy Seal William ""Ryan"" Owens sat in the guest box with tears streaming down her face as the crowd stood and applauded at length. Owens' death - as well as the killing of civilians, possibly including women and children - has raised questions about the effectiveness of the raid. Trump quoted his defence chief Jim Mattis in defending the operation. ""Ryan was a part of a highly successful raid that generated large amounts of vital intelligence that will lead to many more victories in the future against our enemies,"" he said. Owens' father, Bill, has denounced the operation that took his son's life and refused to meet Trump. He told the Miami Herald newspaper last week the raid was a ""stupid mission"" and called for an investigation. Source:-Al Jazeera and news agencies", -1730,2017/3/1,http://www.aljazeera.com/news/2017/03/donald-trump-speech-congress-170301010725148.html,Donald Trump calls for 'renewal of American spirit',"US president vows 'new chapter in American greatness,' saying 'the time for trivial fights is behind us'. Backing NATO Executive action","US President Donald Trump has struck an optimistic tone in his first address to Congress, declaring the ""renewal of the American spirit"" and pointing to the US role on the world stage. Opening his speech on Tuesday evening by condemning recent threats against Jewish community centres, vandalism of Jewish cemeteries and the deadly shooting of an Indian man in Kansas last week, Trump said he took the podium to deliver a message of ""unity and strength"". The Republican had received criticism for not reacting strongly enough to the acts and he had not yet commented on the apparently racially motivated murder of Srinivas Kuchibhotla. Trump then went on to the core issue of his election campaign and his presidency so far: immigration reform. He pledged again to build a ""great, great wall"" on the Mexican border and said that ""by finally enforcing our immigration laws, we will raise wages, help the unemployed,"" and save billions of dollars. He also announced that he will shortly take new steps to ""keep those out"" who he said would do harm to the US - after judges earlier this month struck down his ban on refugees and citizens from seven Muslim-majority countries. In the audience, Democratic women wore white in honour of women's suffrage. Some Democrats also wore blue ribbons for the American Civil Liberties Union, which was instrumental in challenging Trump's immigration ban. Democrats also-invited immigrants and others representing those they say could be hurt by Trump's policies to attend the speech. Lawmakers typically get one guest ticket each. Among those invited were an Iraqi-born doctor who discovered elevated levels of lead in the blood of many children living in Flint, a Muslim community leader, refugees and an LGBT activist. Trump also urged others not to be petty: ""The time for small thinking is over. The time for trivial fights is behind us,"" he said. Al Jazeera's James Bays, reporting from Capitol Hill, said the address was very different from previous Trump speeches. ""It was a conventional speech, a presidential speech ... with no references to 'fake news' or 'dishonest media'"". ""He said in his speech that 'the time for trivial fights is behind us'...This feels a bit like a reset speech from the president. A new tone, but not much new in terms of policy."" Trump insisted on his support for the NATO alliance but repeated that members must pay their way and warned it is not his job to ""represent the world"". The new leader spooked allied capitals during his campaign by arguing that US support for NATO should depend on members increasing defence spending, but has since been at pains to defend the pact. ""My job is not to represent the world. My job is to represent the United States of America,"" he told the lawmakers, 40 days after taking office. ""We strongly support NATO,"" he said. ""But our partners must meet their financial obligations. ""We expect our partners, whether in NATO, in the Middle East or the Pacific to take a direct and meaningful role in both strategic and military operations, and pay their fair share of the cost."" ""And now, based on our very strong and frank discussions, they are beginning to do just that."" ""In fact, I can tell you the money is pouring in,"" Trump added in a departure from his prepared remarks. Trump praised the US armed forces and vowed to give the military ""the tools they need"" to prevent war and, if-necessary, ""to fight and to win"". In his budget proposal, the president is suggesting boosting military spending by $54bn - by cutting the budget of the state department and foreign aid. The proposal has been criticised by Republicans who say that cuts in diplomatic efforts are going to create enemies for the US rather than make it safer. Since taking office on January 20, Trump has signed at least 23 executive actions which do not need to pass Congress and signed five bills into law. Going forward, he will need support from Congress, dominated by his Republican Party, to push through his agenda. READ MORE: The seven biggest threats to Donald Trump's presidency Trump's approval rating before the speech stood at 44 percent - a record low for a newly inaugurated president, according to a poll from NBC News and the Wall Street Journal. In the poll, conducted February 18-22, 48 percent of Americans said they disapprove of Trump's performance as president and 32 percent said that his first month in office demonstrates that he is not up to the job. Aaron Kall, a political commentator of the University of Michigan, said Trump still has ""a very loyal base of support, somewhere between 35 and 40 percent of the country"", who think he is doing a great job because he is fulfilling a lot of the campaign promises he was elected on. ""He said he was going to bring change, to be an outsider, not a typical politician. But he needs Congressional support and that's a bit tougher,"" Kall told Al Jazeera. Hundreds of protesters gathered in the rain outside the White House hours before the speech to denounce his stance on immigration and other issues. Source:-Al Jazeera News", -1731,2017/3/1,http://www.rte.ie/news/2017/0301/856264-waterford-paddy-lyons/,Man charged with murdering 90-year-old in Waterford,,"A 26-year-old man has been charged with the murder of an elderly man in Co Waterford. Ross Outram from Ferryland, Clonmel in Co Tipperary, appeared at Dungarvan District Court this morning. Paddy Lyons, 90, was found dead at his home in Ballysaggart near Lismore on Saturday. His body was found by a neighbour who also acted as a home help for Mr Lyons. Evidence of arrest, charge and caution was given by Detective Sergeant Shay Keevans who-told the court that when he charged Mr Outram, the accused made no reply. Mr Outram is accused of murdering Mr Lyons sometime between-24-and 25-February. The court heard Mr Outram is on social welfare and he was granted free legal aid. Judge Terence Finn remanded him in custody to appear again next Wednesday at Dungarvan District Court.", -1732,2017/3/1,http://www.rte.ie/news/2017/0301/856373-marie-collins/,Irish abuse survivor resigns from Vatican panel,,"Abuse survivor Marie Collins-has resigned from a panel established by Pope Francis to address clerical sexual abuse, accusing senior Vatican officials of ""shameful"" resistance to its work. Ms Collins' departure is a-blow to the pontiff's attempts to demonstrate that the Church is serious about combating the abuse-that has profoundly damaged its image over recent decades. She is the second abuse survivor to leave the Pontifical Commission for the Protection of Minors Briton Peter Saunders was sidelined last year after a dispute with other members over how to handle allegations of serial abuse by an Italian priest that were brought to the panel's attention. Mr Saunders subsequently told AFP he felt betrayed by Francis and that he had been tricked into taking part in a ""smoke and mirrors"" exercise. In her resignation letter, Ms Collins said she believed Francis had acted sincerely when he set up the panel to advise him on steps to make minors safer. ""However, despite the Holy Father approving all the recommendations made to him by the Commission, there have been constant setbacks,"" she said in a statement. ""This has been directly due to the resistance by some members of the Vatican Curia to the work of the Commission. The lack of co-operation, particularly by the dicastery most closely involved in dealing with cases of abuse, has been shameful.""", -1733,2017/3/1,http://www.rte.ie/news/2017/0301/856261-oireachtas-water/,Coveney 'happy' to work with compromises on water charges,,"The Minister for Housing, Planning and Local Government has said he is happy to work with compromises that politicians are working towards regarding water charges for ""normal use"" in houses. Simon Coveney who is before the Oireachtas Committee on Housing was asked by the AAA-People Before Profit TD-Ruth Coppinger if he was going to implement legislation to abolish water charges. The minister said the position of the Government has been to try to find a compromise that the D��il can support, that parties can work towards and that can be accepted broadly across society. However, Mr Coveney said compromise needed to be consistent with Ireland's legal obligations under the water framework directive. ""All I said yesterday is that I don't see how I can introduce legislation against the advice of the Attorney General, when I know that it's likely to lead to court action by the European Commission and fines imposed on Ireland"". He said in order to be compliant with commitments under the water frame work directive, there needed to be some ""polluter pays principle"" with regard to the water strategy ""where there is a consequence for wasting large volumes of water"", he added. The minister said he was asked whether he would introduce legislation against the advice coming from the Attorney General's office and -he reiterated that he could not do that. Mr Coveney added that he is happy to work with all parties to find a way forward because the issue has ""dogged Irish politics for far too long"". Fianna F��il, Fine Gael at odds over water legislation It comes amid-growing political tension over the water issue after Mr-Coveney said-he will not introduce water legislation that contravenes European Union directives and exposes Ireland to large fines. Fine Gael has said the advice of the Attorney General is that some form of charges to deter excessive use of water must be imposed to ward off the threat of costly sanctions from the EU. Fianna F��il says fines are a distant prospect and can be averted. A committee has yet to sign off on a report that the Government sees as a compromise following what ministers say was a hardening of the Fianna F��il position yesterday, with Barry Cowen and Willie O'Dea insisting the party rejected the notion of charges. That prompted Mr Coveney to say he would not introduce any legislation that would fly in the face of the Attorney General's advice. That could breach the agreement between Fine Gael and Fianna F��il committing the Government to follow the will of the Oireachtas. D��il numbers mean the Fianna F��il position is likely to prevail. This morning Mr O'Dea said he would like to see the Attorney General's advice on water charges. Speaking on RT?'s-Morning Ireland, he said there is strong legal opinion that is contrary to that expressed by the Attorney General. Mr O'Dea, who is a member of the water committee, added that Fianna F��il is convinced that the Attorney General's legal opinion is incorrect and-said attorney generals have ""gotten it wrong in the past.""- ""We are very firm in our opinion, and the legal advice does bear it out, that there is a contrary legal view to that being expressed by the Attorney General and we are convinced that that view is the correct one. ""I would like to see the Attorney General's advice actually, we haven't been exposed to that - as yet. ""I think the minister has to take into account all legal opinion and there's very strong legal opinion which contradicts what the minister is telling us the Attorney General says...attorney generals have gotten it wrong in the past.""- Mr O'Dea said ultimately-D��il ?ireann will decide on the future of water charges and the Government has committed itself to implementing that decision. He said he hoped that the situation can be wrapped up by the end of March. Mr O'Dea said Fianna F��il wanted to penalise people for excessive use of water but did not want to do so by setting up an expensive charging system, at a cost to-the taxpayer. ""The way this is being presented in the media is that Fianna F��il is not in favour of charging people or punishing people for excessive use of water. Nothing could be further from the truth. - We want to punish people who are wasting water but we don't want to do so by setting up an expensive billing and charging system. ""We want to do it by properly implementing legislation, which is already there --namely the 2007 Water Services Act, which provides for punishment for people who wilfully abuse and over use water.""- Fine Gael TD for Dublin South West Colm Brophy said Fianna F��il's stance on water is a return to the days of populism. He said the water committee was working very well until yesterday when Fianna F��il decided to implement a radical change of course. Mr Brophy said Fianna F��il was initially in favour of charging for excessive use of water and he cannot understand why the party is opposed to water meters which was a simple and effective way of measuring water usage. He said Ireland could be forced to pay tens of millions of euro in fines if it is found to be in breach of an EU directive on water. Meanwhile, Fine Gael TD for Dún Laoghaire-Se��n Barrett-has said-failure to bring back water charges means-there will not be a reduction in the high-level of direct taxes in Ireland. Speaking on RT?'s Today with Sean O'Rourke, the former ceann comhairle said the only way to reduce pressure on PAYE workers would be to introduce indirect taxes, such as water charges. Mr Barrett said he was in favour of the PAYE earner getting relief and he believed everyone should pay for services like water and electricity. He said that if water charges were not re-introduced, then those who have already paid should be repaid, adding that you either abide by the law of the land or you do not. He declined to comment on who he would back as the next leader of Fine Gael and said it was wrong to be seen to be forcing Taoiseach Enda Kenny out of office when he has given such good service to the party and the country.", -1734,2017/3/1,http://www.rte.ie/news/2017/0301/856336-france-election/,Fillon criticises inquiry as 'political assassination',,"French presidential candidate Francois Fillon said he would not pull out of the election campaign -despite being summoned by magistrates investigating payments made to his wife. In a statement, Mr Fillon said he did not use public money and gave work to those close to him because he knew he could trust them. - - - - - - ""I won't give in, I won't surrender, I won't pull out, I'll fight to the end,"" he said. Mr Fillon's campaign has been battered for weeks by allegations that he paid his wife Penelope hundreds of thousands of euro of public money to be his parliamentary assistant, but that she actually did very little work. He denies any wrongdoing and says it was a proper job. He said he has been informed that he will be summoned by magistrates on 15 March and described the inquiry as ""political assassination"". The former prime minister said he will continue with his presidential campaign. ""From the start, I have not been treated like anyone else facing the justice system,"" Mr Fillon said in a statement to reporters. ""It's not just me they are killing, but the French presidential election,"" he said. Mr-Fillon had earlier led the race ahead of the elections in April and May but the allegations had cost him support and he has fallen behind far-right leader Marine Le Pen and centrist Emmanuel Macron.", -1735,2017/3/1,http://www.rte.ie/news/2017/0301/856231-mobile-phone-thefts/,Mobile phones targeted in two-thirds of thefts,,"Two-thirds of all thefts and robberies involve mobile phones being stolen, according to new figures from garda��. The figures from the Garda S��och��na Analysis Service released today also show that two in five phone thefts take place on a road, street or footpath. One in five occurs in a pub, nightclub or other licensed premises. The figures are being released as part of a new personal safety campaign, which runs throughout March. ""Streetwise"" Campaign-�1.5M WORTH PHONES STOLEN IN '16: 2 in 5 thefts occur from 10pm to 4am Fri-Sun. More info on: https://t.co/jK2RK2fKZM pic.twitter.com/9wvMo2afpw ""?Garda Info (@gardainfo) March 1, 2017 The campaign, called Streetwise, is targeting 18- to 39-year-olds, urging them to plan their nights out and mind their personal possessions. The figures released today show that three of every four victims of phone theft are aged between 18 and 39 and two in five thefts occur between 10pm and 4am on Friday, Saturday and Sunday. A total of 5,703 phones were stolen last year, with a combined value of more than �1.5m, a reduction of 14% compared to the previous year. In March last year 498 phones were reported stolen, compared to 641 in March 2015. As well as advertising and social media, garda�� say the campaign will-include increased patrolling at night in locations identified as having high levels of robberies from the person and assaults.", -1736,2017/3/1,http://www.rte.ie/news/2017/0301/856326-jobs-drogheda-mobile-technologies/,Technology company plans 150 jobs for Drogheda,,"A company that specialises in mobile device display technologies has announced plans to create 150 jobs in Drogheda over the next three years. Mobile Technologies Inc (MTI) is to establish its Global Services European Headquarters in the Co Louth town. The company operates in over 90 countries and has its headquarters in Oregon in the United States. Recruitment for the Irish jobs is already under way for a variety of technology-based roles. Speaking at the announcement, Minister for Jobs, Enterprise and Innovation Mary Mitchell O'Connor said the investment will be of considerable benefit to Drogheda and the border region. President and CEO of Mobile Technologies Inc-Chris Remy said they chose Ireland because of its ""talented technology savvy workforce, attractive business environment, and its membership in the European Union"". The company is supported by the Department of Jobs, Enterprise and Innovation through IDA Ireland. IDA Ireland CEO Martin Shanahan said the high-quality jobs will have a positive knock on effect on the wider region and promote Drogheda as an ideal location for conducting international business.", -1737,2017/3/1,http://www.rte.ie/news/2017/0301/856366-bus-eireann/,Ross rejects suggestions he should intervene in Bus ?ireann row,,"Minister for Transport Shane Ross has rejected suggestions that he should intervene directly in the Bus ?ireann dispute. He said to do so would mean ""cutting across the role of not just the company but also trade unions in terms of agreeing work practices and terms and conditions"". - He said external interference would be ""unnecessary and unhelpful"". He also said ministerial intervention would overlook the established role and expertise of the Workplace Relations Commission and the Labour Court in assisting employers and employees in settling often very contentious disputes. Mr-Ross also said there are no issues with the publically-funded part of Bus ?ireann's business. He said Bus ?ireann is fully compensated for the Public Service Obligation and school transport services it provides. He added: ""the core issue that must be resolved is how to tackle the unsustainable losses on Expressway commercial services, which of course cannot be subsidised by the taxpayer."" - Mr Ross also rejected suggestions that he, or the Government, is-seeking a very low-cost employment model for Bus ?ireann.- ""This is not the case"" he said. He called on Bus ?ireann and Unions to ""engage in serious discussions and reach an agreement that will restore Bus ?ireann to a sustainable future"". The minister also said he sees no reason why both sides cannot re-enter talks at the earliest possible date. Watch the Transport Committee session He said that should be done at the earliest opportunity and said they should happen without any pre-conditions. Fine Gael-TD Peter Fitzpatrick called on the minister to directly intervene and said Mr Ross should tell Bus ?ireann to withdraw its letter outlining the proposed cuts. - Mr Ross said the suggestion of his-intervention is a distraction and he said-he had no money to offer to solve the dispute. He also said he would not be telling the company to withdraw the letter. ""I won't, I won't get involved at all"", Mr Ross said. ""It would be wrong for me to say that I am on one side or another in this dispute so I am not going to enter into this dispute by taking sides."" Mr Fitzpatrick said the letter was an obstacle to progress. Responding to Fianna F��il's Robert Troy, who said he did not have confidence in the minister, Minister Ross said ""If you don't have confidence, then you should be asking me to stay out of the dispute"". ""Let's have a few suggestions from you about why I should intervene and what I should do"", he said.", -1738,2017/3/1,http://www.rte.ie/news/2017/0301/856291-galway-lent-drive-thru/,'Drive-thru' Ash Wednesday at Galway church,,"A church in Co Galway is marking the start of Lent-with a novel approach to Ash Wednesday. Parishioners at St Patrick's Church in Glenamaddy can receive the traditional ashes at this evening's 7pm mass, but for those who cannot attend, a ""drive-thru"" service is being held on the church grounds this morning. The idea came about following discussions by the Glenamaddy Pastoral Council - a group of parishioners supporting the work of local priest Fr Paddy Mooney. As part of the-preparations for the season of Lent, the council looked at ways to help-people to mark Ash Wednesday, the day when the build-up to Easter begins in the Catholic Church calendar. They came up with what is effectively a one-stop shop for people to begin their Lenten devotions. Since the ""drive-thru"" opened at 8am, a steady flow of cars has made its way up to the door of the church. There, drivers are greeted by Fr Mooney, who dispenses the ashes and gives a blessing. Ash Wednesday ""drive thru"" open for business in Glenamaddy, Co. Galway more on @morningireland shortly pic.twitter.com/5X6pdy1iNC ""?Pat McGrath (@patmcgrath) March 1, 2017 The whole process takes around 30 seconds. A queue forms at Glenamaddy church's 'drive-thru' A number of local volunteers are on hand to guide motorists and when a queue builds up at the church door, others dispense the ashes to ensure there is no traffic build up. VIDEO: Hundreds turn out for 'Drive Thru' Ash Wednesday in Glenamaddy, Co. #Galway. Organisers surprised by large turnout. More on @rtenews pic.twitter.com/YamEOAK2DL ""?Pat McGrath (@patmcgrath) March 1, 2017 -- Ashes on the go... steady flow of cars availing of ""Drive Thru"" service in Glenamaddy, Co. Galway this morning - more on @morningireland pic.twitter.com/CtTzwIcnKJ ""?Pat McGrath (@patmcgrath) March 1, 2017", -1739,2017/3/1,http://www.rte.ie/news/2017/0301/856293-travellers-etnic-status/,Travellers hail 'historic day' over ethnic recognition,,"The State's expected formal recognition of Irish Travellers as an indigenous ethnic minority has been described as an ""historic""-day for Travellers and for Ireland. Taoiseach Enda Kenny is due to make the announcement in the D��il this evening. Speaking on RT?'s Morning Ireland, former director of the Irish Traveller Movement Brigid Quilligan-said the 40,000-strong community was overjoyed at the development and it would mean that their identity will be valued. She said currently in Ireland Travellers were seen as a failed set of people, and their history, language and culture was not valued. Ms Quilligan said while Traveller culture and distinct ethnicity was recognised by the settled population, it was seen as a negative thing rather than a positive thing. She said today's State recognition would change that. ""We want every Traveller in Ireland to be proud of who they are and to say that we're not a failed set of people,""-said Ms Quilligan. ""We have our own unique identity and we shouldn't take on all of the negative aspects of what people think about us. ""We should be able to be proud and for that to happen our State needed to acknowledge our identity and our-ethnicity and they're doing that today."" Taoiseach to formally recognise the ethnic status of the Traveller community in the D��il for the first time pic.twitter.com/hxM7awmcpc ""?RT? News (@rtenews) March 1, 2017", -1740,2017/3/1,http://www.rte.ie/news/2017/0301/856335-oireachtas-blog/,Live Today's political developments,,, -1741,2017/3/1,http://www.rte.ie/news/2017/0301/856275-malaysia-kim-jong-nam/,Two women charged with Kim's murder,,"Two women have been charged with murdering the estranged half brother of North Korea's leader in an assassination using a super-toxic nerve agent that killed in minutes. Siti Aishah, a 25-year-old mother of one from Jakarta, Indonesia, and Doan Thi Huong, 28, from rural northern Vietnam, face the death penalty if they are convicted of the killing of Kim Jong-nam at Kuala Lumpur International Airport on 13 February. Police brought the two women to court handcuffed. As they left, they were made to wear bullet-proof vests, reflecting Malaysian authorities' fears that others involved in the killing could want the women harmed. Siti Aishah has told diplomats she thought she was carrying out a TV show prank No plea was recorded after the charges were read out against them. But, Ms Aishah and Ms Huong have told diplomats who visited them in custody that they were unwitting pawns in an assassination that US officials and South Korean intelligence have said was organised by North Korean agents. Doan Thi Huoung (L) is escorted out of the courtroom Ms Huong's lawyer told reporters outside the court that his client had told him she was innocent. The next court date will be on 13 April, when prosecutors will apply for the accused to be tried jointly. Kim Jong-nam, who had criticised the regime of his family and his half-brother Kim Jong-un, died after the two women allegedly smeared VX nerve agent, a chemical described by the United Nations as a weapon of mass destruction, across his face. He had been preparing to catch a flight to Macau, the Chinese territory where he had been living under Beijing's protection since going into exile several years ago. According to the charges the women and four unnamed people, who are still at large, were in the airport departure area, with the intention to murder the North Korean citizen. One North Korean man, identified by police as Ri Jong Chol, is still in police custody and has not been charged yet. Police have identified seven other North Koreans wanted in connection with the case, including an embassy official in Kuala Lumpur. Amid a bitter diplomatic row, members of Malaysia's cabinet met-a high-level North Korean delegation that arrived yesterday to press for the release of the citizen in custody, and for the body to be handed over. North Korea maintains the victim is a North Korean citizen, but denies he is the half-brother of its leader Kim Jong-un. Security camera footage, which has been broadcast by the media, showed two women assaulting Kim Jong-nam at the airport around 20 minutes before he died. Both women have told diplomats from their countries that they had believed they were carrying out a prank for a reality television show. Indonesian diplomats said Ms Aishah told them she was paid around �15 by whomever tricked her into taking part. Malaysian police have said the suspects had washed their hands after the assault, and were aware that the liquid smeared on their victim's face was toxic.", -1742,2017/3/1,http://www.rte.ie/news/2017/0301/856319-netherlands-arrest-wishlist/,99-year-old woman has arrest wish granted by Dutch police,,"A 99-year-old woman has had her wish to be arrested granted by police in The Netherlands. ""Annie""-had put the idea on her bucket list and on 23 February police in Nijmegen in the Dutch province of Gelderland swooped in and arrested her. It's unclear what the charge was (Pic: Facebook Politie Nijmegen-Zuid) The day was highlighted on the force's Facebook page with photos showing the ""criminal"" being locked in a police cell with handcuffs on. It is unclear what crime ""Annie""-was charged with, but she seemed to be having a wonderful time with Nijmegen police saying it was ""a-day to remember!""", -1743,2017/3/1,http://www.rte.ie/news/2017/0301/856259-donald-trump-address-to-congress/,Trump tells Congress he is open to immigration reform,,"US President Donald Trump has said he was open to immigration reform, shifting from his harsh rhetoric on illegal immigration in a speech to Congress that offered a more restrained tone than his election campaign and first month in the White House. Mr Trump, in a prime-time address to a country that remains divided over his leadership, emphasised his desire to focus on problems at home by boosting the US economy with tax reform, a $1 trillion infrastructure effort and an overhaul of President Barack Obama's signature healthcare law, known as Obamacare. In his first speech to a Joint Session of Congress, US President Donald Trump called for an overhaul of Obamacare https://t.co/KBBhVbZKQn pic.twitter.com/idAq7qKm7P ""?RT? News (@rtenews) March 1, 2017 After a first month in office dominated by a fight over his temporary travel ban on people from seven Muslim-majority nations, Mr Trump looked for a reset to move past a chaotic period that sowed doubts about his ability to govern effectively. He called for national unity and showed a more measured tone, avoiding a repeat of his attacks on Democratic opponents and media organisations. Democratic Senator Tom Carper said that ""the person who wrote this speech must not have written the inaugural address. That one was 'dark'-and this one was more uplifting."" At his 20 January inauguration, Mr Trump painted a bleak picture of the country and described it as beset with ""American carnage."" US stock futures advanced at the start of Mr Trump's address, but gave back some gains later in the speech. Call for harmony and stability in foreign affairs He focused part of the speech on foreign policy, stressing his support for NATO but insisting allies pay more for their defence. In a possible nod to his bid to warm relations with Russia, Mr Trump said: ""America is willing to find new friends, and to forge new partnerships, where shared interests align."" We want harmony and stability, not war and conflict. Mr Trump, said-however, he would embark on a big defence build-up. He said a broad immigration reform plan was possible if both Republicans and Democrats in Congress were willing to compromise. He said U US immigration should be based on a merit-based system, rather than relying on lower-skilled immigrants. Comprehensive immigration reform eluded his two predecessors because of deep divisions within Congress and among Americans over the issue. Mr Trump said reform would raise wages and help struggling families enter the middle class. ""I believe that real and positive immigration reform is possible, as long as we focus on the following goals: to improve jobs and wages for Americans, to strengthen our nation's security, and to restore respect for our laws,"" said the Republican president, who took a hard line against illegal immigrants in his 2016 campaign. US President Donald Trump told Congress that he believed 'real and positive immigration reform is possible' pic.twitter.com/Q3rHO5zXwe ""?RT? News (@rtenews) March 1, 2017 Mr Trump has used his early weeks in office to repeat vows to build a wall along the US-Mexico border and intensify deportations of illegal immigrants who have committed crimes. At the same time, he has expressed sympathy for children who entered the country when their parents crossed the border without proper authority, the ""dreamers"" who so far are protected by an ordered signed by Mr Obama. 'Massive tax relief' Mr Trump voiced a need to persuade Americans to rally behind his agenda after a bitterly fought election, but he made his argument in terms of urging people to rally behind his effort for a ""new chapter of American greatness."" He said he wanted to provide ""massive tax relief"" to the middle class and cut corporate tax rates. But he did not offer specifics and failed to comment on the most pressing tax issue facing Congress, a proposed border adjustment tax to boost exports over imports. Politicians have been looking to Mr Trump for more leadership on an issue that has divided corporate America and Republicans in Congress. Mr Trump called on the Republican-led Congress to repeal and replace Obamacare with reforms that expand choice, increase access and lower costs. Republicans remain divided on how to accomplish that goal and Democrats are ardently opposed to tampering with a system that provides health insurance for millions of low-income Americans. Mr Trump's comments lacked detail, but it was the first time he publicly supported tax credits, a nod to health insurers who say they are necessary to keep people in the market. Former Kentucky Governor Steve Beshear said in the Democratic response to Mr Trump's speech that ""you and your Republican allies in Congress seem determined to rip affordable health insurance away from millions of Americans who most need it."" In the most emotional moment of the night, Mr Trump singled out Carryn Owens, the widow of US Navy SEAL William ""Ryan"" Owens, who was killed in a raid on al-Qaeda in Yemen. Ms Owens, tears streaming down her face, clasped her hands and looked upward from her spot in the balcony as politicians and the president applauded her in the longest ovation of Mr Trump's hour-long speech. Mr Trump said the mission that her husband participated in obtained vital intelligence that could be used against Islamic militants, taking issue with news reports quoting US officials who said little was gained from the raid. Chief Petty Officer Owens' father, Bill, in a newspaper interview at the weekend, has called for an investigation into his son's death.", -1744,2017/3/1,http://www.rte.ie/news/2017/0228/856251-mick-mulvaney-us-budget/,Trump budget director says US plans to compete with Ireland for multinationals,,"US President Donald Trump's budget director has said-the US will compete with Ireland to attract back US multinationals with operations in Ireland. Speaking to RT? News in Washington DC, Director of the Office for Management and Budget Mick Mulvaney said it was not that the US was targeting Ireland, but that it was ""competing"" with Ireland, and that better competition was a ""win-win"" for everyone.- Mr Mulvaney is responsible for drafting Mr Trump's budget. The Irish-American, whose paternal great-great-grandfather-emigrated from Mayo, was a congressman for South Carolina before he was tapped by Mr Trump to be a member of his cabinet. He said Ireland was ""beating""-the US but that his country is going to try to compete-and give incentives to get companies to come back to the US.- Mr Mulvaney said President Trump is ""not anti-trade"", he just wanted ""fair trade"". He said the US would compete ""fairly and on a level playing field"".- Ireland, he said, had done a ""tremendous job"" in creating an environment conducive to multinational business growth, which he said was why Apple and Microsoft were in Ireland. Earlier today President Trump said, after 40 days in office, he would award himself an A-grade for achievement but a C/C+ for messaging, and Mr Mulvaney agreed that Mr Trump had not done as good a job as he could in communicating the message of his presidency.- On the issue of immigration in particular, as the descendant of immigrants, Mr Mulvaney said-the way his country has been ""handling immigrants in the US"" since Mr Trump became president ""just hasn""t been messaged well"". He said they were ""not running innocent people out of the country"" that there was ""no mass deportation"", but rather they were only ""going after people who've committed crimes"". He said that the US ""is still a great place for immigration, still looking for people from all over the world to come here, we just make sure folks contribute to society and not detract from it"". Mr Mulvaney-said he had talked with Mr Trump about his priorities, and had pledged to give him something in line with what he promised on the campaign trail, and that included extra spending on defence, on law enforcement and less spending on foreign aid and other policies. He said it was not ""the exact budget"" that he would have come up with, but said that at the end of the day ""I am not the president"", but it is ""nothing more than his promises put to numbers"". He said they had freed up a little money to pay for the beginning of the border construction and would then figure out how to ""ramp up expenditure on border protection"" in 2018. In terms of Mr Trump's address to Congress, he felt that people would see the real Mr Trump, describing him as ""a square peg in a round hole"".- He said the administration ""hadn't really figured out how to talk to the media yet"" and the media has not figured out how to listen to Mr Trump yet.- Mr Mulvaney's great-great-grandfather Matthew Mulvaney emigrated to Canada before settling in Wisconsin and Minnesota.- The family-only knows that he came from ""some part of Mayo"" because he did not list a middle name and it has not proved possible to trace the family's roots. His daughter previously studied at a secondary school in Dublin and she is now considering attending university in Dublin.- Mr Mulvaney says he travels to Ireland every second year with his father and they play golf in Lahinch, and he always has Kerrygold butter in the fridge. He believes the Irish blood in his veins shapes how he behaves and said he was recently having an ""animated discussion"" with the president in the Oval Office and was pulled aside by an adviser who reminded him that it was the Oval Office and he might want to ""change his style"". However, Mr Mulvaney responded that he did not think the Irish could change their style, saying ""either you like it or you don""t"", and adding ""but I think the president likes it"".", -1745,2017/3/1,http://www.rte.ie/news/2017/0228/856102-transport/,D��il committee to quiz Ross over Bus ?ireann,,"Minister for Transport Shane Ross is expected to strongly reject suggestions that he has not done enough to enable a settlement in the Bus ?ireann dispute when he appears before the Oireachtas Transport Committee. In his presentation, he will also describe claims that the Bus ?ireann dispute stems from a Department of Transport policy failure as ""false"". Mr Ross will express deep concern at the potential effect of Monday's proposed strike, especially in rural areas, but will call for great care by all parties at what he calls this very delicate time in a potentially serious industrial relations dispute.- However, he will tell the committee that for him to intervene directly in the internal matters of Bus ?ireann would constitute unnecessary and unhelpful external interference - as well as cutting across the role of the company and trade unions in agreeing work practices, terms and conditions. The minister is expected to highlight recent increases in State subvention for Bus ?ireann's Public Service Obligation services, but will stress that under law, subvention cannot be provided for commercial services like Expressway, which is the loss-making element of the company. He will defend the Public Transport Regulation Act 2009, saying it has led to more people using public transport. However, he will say that does not mean he was unwilling to review the effectiveness of the existing legislation with a view to strengthening it to further promote the interests of passengers.- The minister will also confirm that he and Minister for Social Protection Leo Varadkar have instructed their departments to examine the funding levels for the Free Travel Scheme, which currently only pays around 40% of the cost of a journey. He will describe that examination as a brief, focused piece of work that is progressing well, adding that he expects the issues will be resolved ""satisfactorily"". Mr Ross will also seek to reassure rural communities that the National Transport Authority will step in where connectivity is threatened, noting that the NTA has already moved to replace a service on the Athlone-Westport route which is being cancelled by Bus ?ireann. This afternoon, NTA chief executive Anne Graham told RT?'s News At One that when Bus ?ireann withdraws its commercial service, Route 21,-changes will be made to another subsidised Bus ?ireann service, the 440 route, to double the number of buses to four each day in each direction. This would be a marked increase in bus services for the towns in this area, she said. Ms Graham said most of the changes proposed by Bus ?ireann will not impact too much on customers.- - She said the NTA has a public service obligation to provide services following the withdrawal of routes, but in many cases the services on offer by private operators or mainline Bus ?ireann routes will be sufficient to meet the connectivity needed.- Mr Ross is also expected to reject any suggestion that he as transport minister, or his Government colleagues, are seeking a very low-cost employment model for Bus ?ireann.", -1746,2017/3/1,http://www.rte.ie/news/2017/0228/856147-water-oireachtas-charges/,Coveney rules out water plan contravening EU directives,,"Minister for Housing, Planning and Local Government Simon Coveney has said that he will not introduce water legislation that contravenes European Union directives and exposes Ireland to large fines. Half of those on the Oireachtas committee looking at the future funding of water services have indicated that they favour abolishing domestic charges and are opposed to charging for the excessive use of water. The committee has made no decision on the matter but Fianna F��il, Sinn F��in and Anti-Austerity Alliance-People Before Profit (AAA-PBP) say there should be no charges. Mr Coveney this evening accused Fianna F��il of hardening its position by ruling out charges for excess water use today. Mr Coveney, who is the minister with responsibility for the issue, said Fine Gael wanted a genuine compromise. He said the basis for this could be found in a draft circulated by the committee today, insisting the process was not over. The 20-member Joint Committee on the Future Funding of Domestic Water Services met today and will again tomorrow to agree its final recommendations for the future funding of domestic water services. So far ten members have stated they oppose water charges. Another eight have however indicated they want charges for excessive use which was recommended by the Independent Commission which looked at the issue last year. Two TDs on the committee have not stated their views. Critically, Fianna F��il members indicated they are opposing any charges for excessive use and TD Willie O'Dea said there is legislation in place which is not being enforced which penalises people who use excessive amounts of water. He said a district metering system would pick this up as opposed to domestic metering. Sinn F��in and AAA-PPP say there is no evidence of excessive usage by households. Labour however says taxpayers should not have to pay for those who use excessive amounts. The committee has not made a final decision and ultimately the D��il will vote on it. Fine Gael TD Jim Daly, a member of the committee, has said that he is opposed to refunds. He said the law of the land as it applied at the time should be maintained. However, he said that the reality of new politics is that while Fine Gael and independents are in Government, Fianna F��il is in power and carries the swaying vote. Mr Daly said that Fianna F��il indicated this morning that the party is in favour of returning the money to people who have paid. He said this is unusual as Fianna F��il signed up to water charges on the arrival of the Troika into the country seven years ago. Committee member Paul Murphy of the AAA-PBP-said he expects those who paid for water charges to be refunded. Speaking on RT?'s Today with Sean O'Rourke, Mr Murphy said the refund is ""not a done deal""-but there is-huge pressure on ""establishment parties"" to agree to it. He said it needs to be recognised that it is-not possible to pursue non-payers. He said: ""I think those who did pay should get their money back. I think many people were pressured, bullied,-forced into paying. They have, of course, to thank all of those who refused to pay for creating a political situation whereby it's very difficult for the establishment parties-to go after non-payment.""", -1747,2017/3/1,http://www.rte.ie/news/2017/0228/856132-foster-home-inquiry/,Kenny: Treatment of Grace a 'disgrace to our country',,"The Taoiseach has told the D��il that the terms of reference for a commission of inquiry into abuse at a foster home in the southeast will be published next week. Enda Kenny was responding to questions from Sinn F��in's Mary Lou McDonald about the treatment-of 'Grace' - a young woman with profound intellectual disabilities who stayed at the home for almost 20 years. Mr Kenny said ""the very least this house can do is apologise to 'Grace' and her family. ""Her treatment is a disgrace to us and our country"". Live: Political updates The HSE today published two reports commissioned several years ago-on failures at the home where 47 children were placed over two decades up to 2013. The HSE has since reiterated its apology to all those affected. Ms McDonald asked who in the HSE has been held responsible-and whether arrests have been made in the criminal investigation. ""Grace was left in the home for nearly 20-years, despite a litany of sexual abuse allegations and neglect. She was forgotten,-abandoned by those in the health service charged with ensuring her care,"" she said. ""It is quite frankly vile and disgusting. ""It's not enough to produce shocking reports - we need accountability,"" Ms McDonald said. In response, Mr Kenny said he did not have details about the criminal investigation and said it was a matter for the Garda Commissioner and the Minister for Justice to give those details. He said the Government had agreed to set up a commission of investigation and Minister of State with responsibility for Disabilities Finian McGrath would bring the terms of reference to the Cabinet next Tuesday. Mr McGrath said: ""I cannot emphasise too strongly how concerned I am about the serious allegations addressed in the reports and the need to establish the facts of the matter for once and for all. This is the least that the individuals at the centre of this case, and their families, deserve."" He said he hoped to get an interim report within three months.- Mr McGrath-added that-there could be no guarantee there is no abuse going on at present but said new procedures and systems had been introduced over the past number of years.- Social Democrat joint leader R��is��n Shortall said the D��il was discussing yet another scandal involving the negligence and incompetence of State agencies. She said the response of the Government was to set up a commission of investigation, when what was needed was accountability. She asked whether it was still possible that some of the people involved in the care of 'Grace' are still involved in child protection. Mr Kenny said he did not have that information. Fianna F��il leader Miche��l Martin has called for a D��il debate next week on the two reports, describing them as ""utterly shocking"". The Taoiseach agreed to the request, describing a debate as ""appropriate"".", -1748,2017/2/28,http://www.rte.ie/news/2017/0228/856211-lift-hotel-trial/,Lift crash at Killarney hotel a 'horror movie' court hears,,"The aftermath of a lift crashing four floors into the basement of a Co Kerry hotel causing life-changing injuries to the family inside it was like a ""horror movie"", a court has heard. Five members of the Meehan family from Co Meath were inside the lift at the-Killarney Plaza Hotel in July 2011 when it plummeted-to the underground car park. It was up to 15 minutes before staff at the hotel-realised the lift had crashed to-the basement and the doors were prised open. It took another-hour before ambulances-arrived-and one of the injured had to be cut out of the lift. The details emerged during-the trial of-Ellickson Engineering, the limited company which installed the Daldoss Easy Life Lift-at the hotel-seven years previously. The company, based in-Kilmurry Waterford,-is being tried for breach of the Safety, Health and Welfare at Work Act for its work on the lift. It is alleged the company-failed to install the lift in a way that was safe and not a risk, that the installation-was not up to standard and the workmanship was shoddy. The trial itself was ""a most unusual case"" and was-the first of its kind in Kerry, the jury was told. The three Meehan brothers and two wives were in Kilarney-for their-cousin's wedding. They had got into the lift, which could accommodate six people, when there was a ""catastrophic failure"". ""There was a noise, a bang. Something was clearly wrong,"" said Andrew Meehan. The lift fell a few feet and came to a sudden stop, he said.-There was-a sound like a cable straining, a bang and then freefall, he said. ""We were hanging there. The lift was detached, rotating. The next thing there was a bang and we were gone,"" he said. Mr Meehan suffered convoluted fractures to his left tibia, a broken right tibia and crushed right heel.- His wife Patricia O'Leary's-dislocated bone broke through the skin and was twisted at an unnatural angle. Ms O'Leary-told how the couple had two young children who suffered because of their parents' injuries. Her sister-in-law-Jenny was hyperventilating and in shock. ""I'm in chronic pain on a daily basis. My mobility is not great and this has had a huge effect on me and my family,"" Andrew Meehan-said. Glass in the lift shattered along with all the mirrors, the ceiling and panels came crashing down. Only one light was working and they had no mobile coverage in the basement. The lift's phone was broken. Kevin Meehan-suffered broken vertebrae-and fractured left ankle and right heel. Hotel staff placed him on a laundry trolley to give him somewhere to lie down until the ambulance arrived. Paul Meehan-said the force of the impact when the lift hit the end of the shaft was massive. When he heard the lift snap,-followed by its-weightlessness his life flashed in front of him, he added. It was like ""living in a horror movie"", he said as he attempted to attend to everyone and also raise the alarm. It was 15 minutes of shouting before anyone arrived.- The company has not appeared in court and did not send-a representative. As a limited company, the matter would proceed-""as though the company had entered a plea of not guilty,"" prosecutors said. ""The-trial must-proceed,"" Tom Rice-for the Director of Public Prosecutions-said, adding that the-presumption of innocence still applied. The matter had been investigated by the Health and Safety Authority, not the garda��, and a large number of technical witnesses are expected to be called. The trial, presided over by Judge Thomas E O'Donnell, continues.", -1749,2017/2/28,http://www.rte.ie/news/2017/0228/856173-travellers-ethnic-status/,Ethnic status of Travellers to be formally recognised,,"The Taoiseach is to formally recognise the ethnic status of the Traveller community in the D��il for the first time. The move follows discussions in Cabinet and a report from an Oireachtas committee earlier this year. It is not thought that the decision will confer additional rights on Travellers but will rather formalise their status. The move has been-described as ""historic"" by the Traveller advocacy group Pavee Point. Traveller organisations are expected to gather at Leinster House to mark the expected announcement by Enda Kenny.", -1750,2017/3/1,http://www.rte.ie/news/2017/0228/856228-northern-ireland-assembly-debate/,Foster and O'Neill clash in bad-tempered debate,,"Northern Ireland's political leaders have traded angry words in the last televised debate of the Assembly election campaign. Democratic Unionist Party leader Arlene Foster and Sinn F��in's Stormont leader Michelle O'Neill accused the other of showing disrespect as they clashed on disputes at the heart of the region's current political crisis. While the erstwhile lead partners in government engage in angry exchanges on the live BBC debate, the leaders of the Ulster Unionists, SDLP and Alliance Party, Mike Nesbitt, Colum Eastwood and Naomi Long, insisted they were better placed to make powersharing work. The opening exchanges focused on the Renewable Heat Incentive - a botched green energy scheme that has left Stormont facing a potential overspend of almost ?500m. Sinn F��in has claimed the DUP's handling of the affair was the reason it pulled the institutions down in January. But the DUP claims the republican party is using the issue as an excuse to press its own united Ireland agenda. During one tense encounter before a vocal studio audience, Mrs Foster reacted strongly when Mrs O'Neill interjected. ""What about a bit of respect, Michelle?"" she said. Mrs O'Neill responded: ""What about some respect for the public, Arlene?"" The DUP leader and former first minister said the furore around the RHI had centred on ""smears and allegations"" but was ""devoid of facts"". ""The RHI has been the excuse but not the cause of this election,"" she said. ""The cause of this election is the wish of Sinn F��in to implement their radical agenda on Northern Ireland."" Mrs O'Neill claimed the DUP leader was in denial. ""I don't know where Arlene has been living for the last number of months - this election is very clearly about 'cash for ash', the RHI scandal potentially seeing the drip-feed of potentially ?500 million out of the block grant,"" she said. ""Arlene couldn't even be humble to admit a mistake."" Mr Nesbitt said the RHI was an example of the type of bad government he claimed characterised the DUP and Sinn F��in's decade in power. ""We need an end to ten years of government hallmarked by incompetence, arrogance, cronyism and the strong whiff of corruption - it is time for change,"" he said. Mr Eastwood echoed the call for a clean out at Stormont Castle. ""Arlene doesn't seem to have learned any lessons - it's a disgrace we have got to this situation,"" he said. Mrs Long said the election had turned into a ""sham fight"" between unionism and nationalism. ""What we need to learn from this is the need to elect people who can deliver good government,"" she said. The debate also explored the issue of vote transferring and whether the snap poll would see more willingness among unionists and nationalists to give second preference votes to the other's political representatives. Mr Nesbitt's pledge to transfer his personal vote to the SDLP has brought the issue to the forefront of the campaign. Mrs Foster has insisted any such transfer would undermine unionism and further advance Sinn F��in's agenda. During to night's debate, the UUP leader said he stood by his remarks. ""Leadership involves leading and I am leading,"" he said. Mr Eastwood accused the DUP of pushing the politics of fear. ""These scare tactics are what people are so fed up about,"" he said. Mrs Long added: ""They have nothing else to offer than fear."" The five leaders also clashed on the prospect of a return to direct rule from Westminster and the impact of Brexit on Northern Ireland.", -1751,2017/2/28,http://abcnews.go.com/Politics/sessions-met-russian-ambassador-2016-denial/story?id=45846896,Sessions twice met with Russian ambassador in 2016 despite denial,,"Attorney General Jeff Sessions met twice with Russia's ambassador to the United States during the 2016 presidential election season, the Department of Justice confirmed, at a time when he was a close adviser to then-candidate Donald Trump. Sessions later did not disclose those discussions when questioned under oath during his confirmation hearing. The revelations, first reported by The Washington Post, sparked immediate calls for Sessions' resignation as well as fierce pushback from a White House official, who called them a ""attack against the Trump administration by partisan Democrats."" Questions about Russia and Trump associates' alleged contacts with the country have dogged the president for months, though he has repeatedly referred to them ""fake news."" His former national security adviser, Gen. Michael Flynn, resigned after misleading the vice president about his own conversations with the Russian ambassador. ""I never met with any Russian officials to discuss issues of the campaign,"" Sessions said in a statement Wednesday night. ""I have no idea what this allegation is about. It is false."" Sessions was specifically questioned by Sen. Al Franken, D-Minnesota, during his confirmation hearing about the alleged ties between Trump's campaign and Russia. ""If there is any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of this campaign, what will you do?"" asked Franken. ""Senator Franken, I'm not aware of any of those activities,"" said Sessions. ""I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians and I'm unable to comment on it."" But Sessions did have contact with Russia on two occasions, including a meeting in his office with Ambassador Sergey Kislyak in September that was listed on his public schedule. ""There was absolutely nothing misleading about his answer,"" said Sessions spokeswoman Sarah Isgur Flores. ""Last year, the senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee...He was asked during the hearing about communications between Russia and the Trump campaign -- not about meetings he took as a senator and a member of the Armed Services Committee."" A Justice Department official said Sessions' meetings with ambassadors were in his capacity as a senator on the Armed Services Committee and about relations between the two countries. The official said that during the campaign season the ambassadors would make ""superficial comments"" about election news, but it was not the substance of the conversation. Information about Sessions' activities as a senator provided by the Justice Department official list 26 meetings with foreign ambassadors and government officials, including the one with Kislyak. The Washington Post story reports that Sessions also encountered Kislyak at a Heritage Foundation event in July. The Justice Department official described this interaction as a ""brief encounter"" and noted that a number of other ambassadors were present as well during the conversation. The DOJ official said Sessions was invited to join them at events that they were sponsoring and that Sessions made no commitments. Of the 26 members of the 2016 Senate Armed Services Committee, 20 said that they did not meet with Kislyak last year, according to the Washington Post. The additional senators did not respond to the Post's request for comment. Just over a year ago, in late February 2016, Sessions became the first sitting U.S. senator to endorse Trump during the Republican presidential primary. Less than a week later, the Trump campaign announced that Sessions would ""serve as Chairman of Mr. Trump's National Security Advisory Committee."" ""It is an honor to have Jeff as a member of the team. I have such great respect for him and I look forward to working with him on the issues most important to Americans,"" said Trump at the time in a statement from the campaign. ""I am grateful for the opportunity to recommend and facilitate discussions among exceptional and experienced American military and diplomatic leaders to share insight and advice with Donald Trump, regardless of their political views,"" added Sessions. ABC News' Chris Donovan contributed to this report.", -1752,2017/3/2,http://abcnews.go.com/Politics/democrats-call-sessions-resignation-amid-reports-contact-russians/story?id=45847098,"Democrats call for Sessions' resignation amid reports of contact with Russians, which he previously denied",,"Several Democratic lawmakers called for Attorney General Jeff Sessions' resignation Wednesday night following reports that he met with the Russian Ambassador to the U.S. on two occasions, despite denying during his confirmation hearing that he had made contact with Russian officials For his part, Sessions said in a statement Wednesday night that ""I never met with any Russian officials to discuss issues of the campaign. I have no idea what this allegation is about. It is false."" Some Democratic lawmakers, including House Minority Leader Nancy Pelosi, have called for Sessions to resign, while others for saying that he should at least recuse himself from overseeing any investigation as Attorney General into the question of alleged ties between Trump officials and Russians during and after the 2016 election. ""Jeff Sessions lied under oath during his confirmation hearing before the Senate,"" said Pelosi. ""Under penalty of perjury, he told the Senate Judiciary Committee, 'I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians.""?We now know that statement is false."" Pelosi's colleagues Rep. Tim Ryan (D-Ohio) and Rep. Elijah Cummings (D-Maryland) have also called for resignation, as has Sen. Elizabeth Warren (D-Massachusetts). ""It is inconceivable that even after Michael Flynn was fired for concealing his conversations with the Russians that Attorney General Sessions would keep his own conversations secret for several more weeks,"" said Cummings, who is the ranking Democrat on the House Committee on Oversight and Government Reform. ""Attorney General Sessions should resign immediately."" And we need Attorney General Jeff Sessions ""?who should have never been confirmed in the first place ""?to resign. We need it now. Rep. Jerrold Nadler (D-New York) said on Twitter that the attorney general should resign ""if it turns out Sessions lied under oath."" If it turns out Sessions lied under oath, he of course will be sbjct to criminal prosecution & shld immediately resign. #ResolutionofInquiry https://t.co/Lw3oDdv62x Many other lawmakers have stopped short of calling for resignation, but argued that the attorney general should recuse himself from leading Justice Department investigations over the alleged links between Russian officials and Trump officials, as well as Russia's purported involvement in influencing the 2016 election. Sen. Al Franken (D-Minnesota) said in a statement that ""the attorney general cannot, in good faith, oversee an investigation at the Department of Justice and the FBI of the Trump-Russia connection, and he must recuse himself immediately.""?Likewise, Sen. Amy Klobuchar (D-Minnesota) tweeted that Sessions ""should recuse himself from investigations into Russia."" Mike Quigley (D-Illinois) echoed that call, tweeting that if reports were true, then Sessions ""must immediately remove himself from #Russia investigation."" If reports are true, #Sessions must immediately remove himself from #Russia investigation. Top Democrat on the House Foreign Affairs Committee, Rep. Eliot Engel (D-New York), also called for Sessions to recuse himself and said that President Trump should appoint a special prosecutor to investigate alleged Russian interference into the election. Attorney General @jeffsessions should resign immediately. His testimony was at best intentionally misleading and at worst perjury. https://t.co/aMQcdnnZVB Republican reactions have for the most part been muted. Both Sen. John McCain (R-Arizona) and Sen. Lindsey Graham (R-South Carolina), who have at time been critical of the Trump administration, said during a joint CNN interview Wednesday night that it was too early to make a judgement about Sessions based on news articles. But Graham did say if the FBI found something it ""believes is criminal in nature"" then ""for sure, you need a special prosecutor.""", -1753,2017/3/2,http://abcnews.go.com/Politics/house-intelligence-committee-sets-framework-russian-probe/story?id=45846073,House Intelligence Committee sets framework for Russian probe,,"The House Intelligence Committee today formally outlined a framework for its probe into Russian tampering in the 2016 election. The investigation will examine alleged communication between Moscow and the campaigns, as well as possible leaks by the intelligence community, according to an unclassified summary released by the committee. In January, then-President-elect Trump conceded that the Russians were likely behind the hacking that attempted to undermine his Democratic rival, Hillary Clinton -- a conclusion the intelligence community reached last October. However, the president has repeatedly pushed back on reports that Trump associates had communicated or coordinated with Russian intelligence officials before the election, calling the news ""fabricated."" According to the summary, the House committee is nevertheless investigating ""links between Russian and individuals associated with political campaigns."" ""We still have not seen any evidence of anyone ... from the Trump campaign or any other campaign for that matter that's communicated with the Russian government,"" Intelligence committee chairman, Rep. Devin Nunes, R-California, told reporters at the Capitol on Monday. ""that doesn't mean they don't exist but I don't have that. And what I've been told is, by many -- by many folks, is that there's nothing there,"" he added. ""We haven't reached a conclusion, nor should we, on issues of collusion because we haven't interviewed a single witness or reviewed a single document,""�ranking member Rep. Adam Schiff, D-California, told reporters that same day. Trump, however, said the leaks coming from inside the government are ""absolutely real"" and instructed the Justice Department to investigate the potential mishandling of classified information. ""Well, the leaks are real. You are the one that wrote about them and reported them. The leaks are real. You know what they said. You saw it. And the leaks are absolutely real. The news is fake because so much of the news is fake,"" Trump Told ABC's Jonathan Karl at a press conference last month. ""Look, how many times do I have to answer this question? Russia is a ruse."" The House committee -- which says it will take witness testimony and seek access to all relevant intelligence documents -- is investigating these possible leaks as well. The Senate Intelligence Committee is also conducting its own investigation, and has asked more than one dozen agencies, individuals and organizations to preserve records and communications of interest. ", -1754,2017/3/2,http://abcnews.go.com/US/ohio-father-overdoses-car-infant-mother-overdoses-home/story?id=45848311,"Ohio father overdoses in car with infant, while mother overdoses at home with kids",,"An Ohio couple were arrested on child endangerment charges Tuesday after each was discovered overdosed, according to police, in separate locations in the company of their children. Nathan Carroll, 29 was discovered by police in his car with an infant in the backseat after his car veered off the road, while Samantha Schigel, 24, was found in their home, also overdosed, but with in the presence of other children. Police in Lorain, located about 30 miles west of Cleveland, said officers went to the couple's home to inform Schigel that they had found her husband in the aforementioned state, ABC News affiliate WEWS reported. When they arrived, police say a child answered the door and said her ""mommy was sleeping and they could not wake her up,"" according to WEWS. Not all of the children in the home had the same parents. Police determined that she was also experiencing a drug overdose. Both parents were given naloxone, a heroin antidote, and were taken to Mercy Hospital in Lorain. When Schigel became responsive, she told police that she and Carroll had snorted a powder they believed to be heroin. According to a police report obtained by WEWS, she told police that it was her first time using the drug and that she did it to treat pain. Schigel was arrested on charges of endangering children, while Carroll was arrested for operating a vehicle under the influence, implied consent, endangering children, driving under suspension and failure to control, WEWS reported. After children's services was contacted, three of the children were released to their paternal grandfather. Two children were released to their paternal grandfather. It was unclear if either Carroll or Schigel had attorneys. The couple's incident comes as overdose death rates across the country haven risen to historic highs amid an ongoing national opioid crisis. In Ohio, more than 3,300 people died from accidental drug overdoses in 2015, up 21.5 percent from the previous year, according to the most recent data from the Centers for Disease Control and Prevention. Ohio ranks among the top five states with the highest death rates linked to drug overdoses.", -1755,2017/3/2,http://abcnews.go.com/US/wireStory/deputy-multiple-people-dead-injured-oregon-house-fire-45837702,"Deputy: 4 children dead, 3 people injured in Oregon fire",,"Four children died in a house fire Wednesday in an Oregon timber town and their mother, her husband and a 13-year-old sibling were critically injured, a sheriff's official said. The fire broke out around 2 a.m. in Riddle, a small town about 200 miles south of Portland that has been hit hard by the decline of the timber industry. The dead children were ages 4, 7, 10 and 13 and included a foster child, authorities said. The cause of the blaze did not appear suspicious, but an investigation was continuing, authorities said. ""It's awful, it's devastating,"" Douglas County sheriff's Deputy Dwes Hutson said. ""It's a small town. There are less than 1,000 people in Riddle."" Grief counselors were on hand at schools in the South Umpqua School District, where some of the children attended class, said Superintendent Tim Porter. The district has 1,450 students in all grades and the news shook up the community where people know each other. James Keith Howell, 39, Tabitha Annette Howell, 38, and Andrew Hall-Young, 13, were transported to Legacy Emmanuel Medical Center in Portland, Hutson said. Killed were 4-year-old Gwendolyn Howell, 7-year-old Haley Maher, 10-year-old Isaiah Young and 13-year-old Nicholas Lowe. Nicholas Lowe was a foster child, Hutson said. Tabitha Howell is the mother of all the other children and is married to James Howell. ""��?Follow Gillian Flaccus on Twitter at http://www.twitter.com/gflaccus", -1756,2017/3/2,http://abcnews.go.com/Politics/homeland-security-provide-support-jewish-community-threats-vandalism/story?id=45845329,"Homeland Security to provide support to Jewish community following threats, vandalism",,"The U.S. Department of Homeland Security announced it will be assisting law enforcement efforts to support Jewish community centers in the aftermath of threats and instances of vandalism committed against them in recent weeks. The announcement, in a press release from DHS Secretary John Kelly, notes that the department ""is working closely with Jewish communities to advise and support on protective measures they can put in place to help keep people in their community safe."" ""In light of the nature of the threats to Jewish Community Centers, I have directed DHS to heighten our outreach and support to enhance public safety,"" reads the statement from Kelly which notes that DHS officials met with the executive directors of the Jewish Community Center Association of North America. After facing criticism for a perceived delay in his response to the threats, President Donald Trump addressed the acts at the top of his speech to a joint session of Congress Tuesday. ""Recent threats targeting Jewish Community Centers and vandalism of Jewish cemeteries""?remind us that while we may be a Nation divided on policies, we are a country that stands united in condemning hate and evil in all its forms,"" said Trump. DHS noted that they have held ""active shooter workshops"" with community centers across the country and will continue to do so, in addition to holding exercises ""to enhance contingency planning and response."" ""The right to worship and commune within and across faiths is fundamental to the American experience and our way of life."" writes Kelly. ""DHS will continue to support communities across the country to preserve these fundamental freedoms.""", -1757,2017/3/2,http://abcnews.go.com/US/florida-condo-balcony-collapses-injuring-11/story?id=45844562,"Florida condo balcony collapses, injuring 11",,"Eleven people were injured Wednesday afternoon after a second-floor wooden balcony collapsed at a Florida condominium, police said. Two individuals sustained ""pretty significant,"" but non-life-threatening injuries, Okaloosa County Sheriff's Office public information officer Michele Nicholson told ABC News. Eight people were taken to area hospitals, ABC's Pensacola, Florida, affiliate WEAR reported. Nicholson said everyone involved in the incident -- which happened at Sand Piper Cove in Destin, located in the Florida Panhandle -- are snowbirds from Kentucky and Indiana. At least two of the injured are in their mid-80s, Nicholson said. ABC News' Darren Reynolds contributed to this report.", -1758,2017/3/2,http://abcnews.go.com/US/wireStory/plane-crash-ignites-inferno-california-neighborhood-45824559,Victims of California plane crash identified by relatives,,"A plane that crashed into a California neighborhood and destroyed two homes was carrying husband-and-wife pilots and their grown daughter, and a mother and daughter who were friends of the family, relatives said Wednesday. Stacey Pierce survived the fiery crash and was seriously injured while her parents, the 83-year-old pilot Nouri Hijazi and his 67-year-old wife Dana Hijazi, were both killed. Nevada resident Christy Crown, Pierce's sister-in-law, identified the three in a statement. ""He was an extremely experienced pilot, which was his hobby, his passion,"" Crown said of Nouri Hijazi. ""We want to say how incredibly devastated and heartbroken we are and still trying to process everything,"" her statement said. The group, relatives of two junior-high age girls who had gone to a weekend cheerleading competition, was returning to San Jose on a rainy Monday when their plane crashed suddenly in Riverside, east of Los Angeles, killing three people and critically injuring two who were ejected. The girls returned safely to San Jose on a bus with their team. Pierce's husband Richard Pierce said that his wife has been stabilized and underwent surgery Wednesday afternoon. The couple's daughter also returned to her middle school Wednesday, Richard Pierce told the San Francisco Chronicle. Their daughter was one of the two cheerleaders. She returned to school Wednesday. Sylvia Farelas also survived, while her 22-year-old daughter Adine was killed, Brandon Farelas, Sylvia's son, told KGO-TV. He said his mother called him before the flight and said she was worried about the rainy weather. Sylvia Farelas had burns over 90 percent of her body and had gone through two surgeries, family members and firefighters said. Adine's younger sister was the other cheerleader the group had gone to see. Before the crash, the smiling members of the team celebrated their first place trophy win at the weekend's national cheer competition, according to the group's Facebook page. Adine Farelas posted that she was ""having a blast"" with her mother and Pierce and looking forward to heading to the Disneyland park where the event was to be held. Authorities have not confirmed the victims' identities. The twin-engine Cessna 310 ignited a massive fire that destroyed two homes and slightly damaged two others when it crashed. No one on the ground was hurt. After hearing a loud sound that shook her house like an earthquake, 38-year-old Traci Zamora rushed outside. Around the corner, she saw a house engulfed in flames, and one of the victims came crawling out onto the lawn, her lower body on fire. Riverside Fire Chief Michael Moore said the plane had just taken off from Riverside Municipal Airport, less than a mile away, bound for San Jose, after the cheerleading competition at Disney California Adventure Park. He did not provide the name of the cheerleading competition, but the Jr. USA Nationals for girls 15 and under was held at the venue over the weekend. Weather in the area 60 miles east of Los Angeles had included rain, but there were no immediate indications of what caused the crash. Dana Hijazi was from Poland and her relatives were coming to the US to support the family, Pierce said. ""?AP writers Christopher Weber and John Antczak in Los Angeles and John Locher in Las Vegas contributed to this report.", -1759,2017/3/2,http://abcnews.go.com/Technology/wireStory/yahoo-punishes-ceo-latest-fallout-security-breakdown-45842581,Yahoo punishes CEO in latest fallout from security breakdown,,"Yahoo is punishing CEO Marissa Mayer and parting ways with its top lawyer for the mishandling of two security breaches that exposed the personal information of more than 1 billion users and already have cost the company $350 million. Mayer won't be paid her annual bonus nor receive a potentially lucrative stock award because a Yahoo investigation concluded her management team reacted too slowly to one breach discovered in 2014. Yahoo's general counsel, Ronald Bell, resigned without severance pay for his department's lackadaisical response to the security lapses. Alex Stamos, Yahoo's top security officer at the time of the 2014 breach, left the company in 2015. Although Yahoo's security team uncovered evidence that a hacker backed by an unnamed foreign government had pried into user accounts in 2014, executives ""failed to act sufficiently"" on that knowledge, according to the results of an internal investigation disclosed Wednesday. At that time, Yahoo only notified 26 people that their accounts had been breached. The report didn't identify the negligent executives, but it chastised the company's legal department for not looking more deeply into the 2014 breach. Because of that, the incident ""was not properly investigated and analyzed at the time,"" the report concluded. Bell declined to comment through his spokeswoman, Marcy Simon. Yahoo didn't disclose the 2014 breach until last September when it began notifying at least 500 million users that their email addresses, birth dates, answers to security questions, and other personal information may have been stolen. Three months later, Yahoo revealed it had uncovered a separate hack in 2013 affecting about 1 billion accounts, including some that were also hit in 2014. The breaches, the two biggest in internet history, have already exacted a major toll. Yahoo already lowered the sales price of its email and other digital services to Verizon Communications from $4.83 billion to $4.48 billion to account for the potential backlash from the breaches. That deal was reached last July, two months before Verizon and the rest of the world learned about Yahoo's lax security. More than 40 lawsuits also have been filed seeking damages for the breaches. If Yahoo's sale to Verizon is completed as expected later this year, a successor company called Altaba Inc. will be responsible for paying those legal claims. Yahoo's handling and disclosure of the breaches is also under investigation by the Securities and Exchange Commission and the Federal Trade Commission. The Sunnyvale, California, company says it has spent $16 million investigating the breaches and covering the legal expenses so far. In a blog post on Yahoo's Tumblr service , Mayer said she didn't learn about the scope of the breaches until September and then tried to set things right. ""However, I am the CEO of the company and since this incident happened during my tenure, I have agreed to forgo my annual bonus and my annual equity grant,"" Mayer wrote. In its report, Yahoo's board said it decided to withhold a cash bonus that otherwise would have been paid to her. Mayer is eligible to receive a bonus of up to $2 million annually. The board said it accepted Mayer's offer to relinquish her annual stock award, which is typically worth millions of dollars. Mayer said she wants the board to distribute her bonus to Yahoo's entire workforce of 8,500 employees. The board didn't say if it would do so. Losing her bonus and annual stock award probably won't be too painful for Mayer, who is already rich after working for more than a decade as a top executive at Google and then as Yahoo's CEO for the past 4 1/2 years. She is also in line for a $44 million severance package if she doesn't go to work for Verizon after the sale closes.", -1760,2017/3/2,http://abcnews.go.com/Politics/wireStory/officials-calif-faces-50b-price-tag-flood-control-45833425,Official: Calif. faces $50B price tag for flood control,,"California faces an estimated $50 billion price tag for roads, dams and other infrastructure threatened by floods such as the one that severely damaged Oroville Dam last month, the state's natural resources secretary said Wednesday. Nearly 200,000 people living near the country's tallest dam were evacuated three weeks ago amid fears of a catastrophic flood after heavy rains tore away a chunk of concrete from the main spillway, leaving it severely damaged. Swollen rivers, troubled levees and crumbling roads are causing havoc statewide as California copes with what is likely its wettest year ever, California Natural Resources Secretary John Laird said. Severe winter storms have brought torrential rain and significant snow after five years of drought. Damage to California's highways is estimated at nearly $600 million. More than 14,000 people in San Jose were forced to evacuate last month and floods shut down a portion of a major freeway. In the Yosemite Valley, only one of three main routes into the national park's major attraction is open because of damage or fear the roads could give out from cracks and seeping water, rangers said. On central California's rain-soaked coast, a bridge in Big Sur has crumbled beyond repair, blocking passage on the north-south Highway 1 through the tourist destination for up to a year. Gov. Jerry Brown has redirected $50 million for emergency flood response and asked state lawmakers to speed up $387 million in spending from a 2014 voter-approved water bond. Laird called the proposals ""an important start,"" but said they fall far short of the amount needed to address flood projects statewide. Fixing Oroville Dam alone could cost up to $200 million. Laird told the Senate Environment and Public Works Committee that he has asked the U.S. Army Corps of Engineers and other federal agencies to expand inspection and review of all federally-owned dams in California, with particular attention paid to secondary structures such as spillways. He also has asked the Corps to update federal operating manuals for key California reservoirs and is seeking hundreds of millions of dollars authorized under a new water-projects law for rehabilitation of ""high hazard dams"" in the state. Dam improvements are part of a $10 billion law approved by Congress late last year to authorize water projects across the country, including more than two dozen projects in California. Sen. Kamala Harris, D-Calif., said nearly half of California's 1,400 dams are designated as ""high hazard potential"" by state officials. The state has invested about $11 billion in flood control management over the past decade, Harris said, yet more action is needed to protect nearly 7 million people and $580 billion worth of assets ""?buildings, farmland, and crops ""?that are at risk. The committee also heard from officials in Wyoming and Cedar Rapids, Iowa, where recent floods caused millions of dollars in damage. The panel's chairman, Sen. John Barrasso, R-Wyo., said winter ""ice jams"" on partially frozen rivers, combined with rapid snowmelt, cause frequent floods that harm small towns from Wyoming to the Dakotas and upstate New York. President Donald Trump has made improving the nation's infrastructure a priority, and Barrasso said he was optimistic Congress would approve funding to modernize dams and levees across the country. ""Infrastructure is critical to our nation's prosperity,"" Barrasso said. ""It's a driver of our nation's economy and it impacts every community.""", -1761,2017/3/2,http://abcnews.go.com/International/wireStory/malaysia-release-deport-korean-nerve-agent-probe-45848275,"Malaysia to release, deport N. Korean in nerve agent probe",,"A North Korean man will be released from custody because of lack of evidence connecting him to the fatal nerve agent attack on Kim Jong Nam, the estranged half brother of North Korea's ruler, Malaysian officials said Thursday. In a major fallout from the assassination, Malaysia also announced it was scrapping visa-free travel for North Koreans. Officials never said why they arrested Ri Jong Chol four days after Kim was attacked at Kuala Lumpur's bustling airport. On Thursday, Malaysian Attorney General Mohamad Apandi Ali said Ri will be released and deported because he does not have valid travel documents. The attack was caught on grainy security camera footage that showed two women smearing something on Kim's face as he waited for a flight in Kuala Lumpur on Feb. 13. Malaysian officials say the substance was VX nerve agent, a banned chemical weapon. Kim was dead within an hour as the fast-acting poison coursed through his body, authorities say. No bystanders reported falling ill. The poisoning has unleashed a serious diplomatic battle between Malaysia and North Korea. While it isn't one of Pyongyang's key diplomatic partners, Malaysia has been one of the few places in the world where North Koreans could travel without a visa. As a result, for years, it's been a quiet destination for Northerners looking for jobs, schools and business deals. That could all begin to change in the wake of Kim's death. Deputy Prime Minister Ahmad Zahid Hamidi said the visa-free arrangement with North Korea will be scrapped from Monday due to national security. He also slammed the North Korean ambassador in Kuala Lumpur who accused Malaysia of ""trying to conceal something"" and ""colluding with hostile forces."" ""We don't want to make enemies, but if they had used Malaysia for their own agenda, they should not accuse Malaysia and tarnish our image on the international stage,"" Zahid said. ""We will act firmly to guarantee the safety of our people. Don't ever use Malaysia as a base to do anything you like."" The two female suspects caught in the security footage were charged with murder in a Malaysian court Wednesday. They face the mandatory death sentence if convicted. Both say they were duped into thinking they were taking part in a harmless prank. ""I understand but I am not guilty,"" Vietnamese suspect Doan Thi Huong told the court in English after the murder charge was read. The other suspect, Indonesian Siti Aisyah, nodded as her translator told her, ""You are accused of murdering a North Korean man at the departure hall"" of Kuala Lumpur International Airport. The women did not enter pleas because the magistrate court where they appeared has no jurisdiction over a murder case. Lead prosecutor Iskandar Ahmad told the court he will ask for the case to be transferred to a higher court and for the women to be tried together. In the surveillance video, Huong was seen clearly in a T-shirt with ""LOL"" emblazoned across the front. Both women were originally from modest farming villages and had moved to their countries' capitals seeking a better life. Also Wednesday, the court approved a gag order to prevent police and potential witnesses from making public statements about the case. North Korea is widely speculated to be behind the killing, particularly after Malaysia said that VX had killed Kim. Experts say the oily poison was almost certainly produced in a sophisticated state weapons laboratory. North Korea's official news agency called that finding the ""height of absurdity"" on Wednesday, saying the two women could not have used such a deadly toxin without killing or sickening themselves and anyone around them. North Korea opposed Malaysian officials even conducting an autopsy on Kim, while Malaysia has resisted giving up the body without getting DNA samples and confirmation from next of kin. Kim is believed to have two sons and a daughter with two women living in Beijing and Macau. Authorities are seeking seven other North Korean suspects, four of whom fled the country the day of Kim's death and are believed to be back in North Korea. Others sought include the second secretary of North Korea's Embassy and an employee of North Korea's state-owned airline, Air Koryo. Kim Jong Nam was estranged from his half brother, North Korean leader Kim Jong Un. He reportedly fell out of favor with their father, the late Kim Jong Il, in 2001, when he was caught trying to enter Japan on a false passport to visit Tokyo Disneyland. Isolated North Korea has a long history of ordering killings of people it views as threats to its regime. Kim Jong Nam was not known to be seeking political power, but his position as eldest son of the family that has ruled North Korea since it was founded could have made him appear to be a danger.", -1762,2017/3/2,http://abcnews.go.com/US/wireStory/colorado-pot-club-measure-clears-1st-hurdle-45845393,Colorado pot club measure clears 1st hurdle,,"Colorado is moving ahead with a first-in-the-nation attempt to allow marijuana clubs. But the measure that passed a Republican state Senate committee Wednesday evening doesn't go as far as some marijuana activists hoped. The bill would allow on-site marijuana consumption at private clubs in willing jurisdictions. And those clubs may allow indoor pot smoking, despite health concerns about indoor smoking. But the bill is far from allowing a statewide network of pot clubs. For one, it would allow any jurisdiction to ban them, same as they can currently prohibit retail pot sales. Also, the bill does not permit pot clubs to serve alcohol nor food. Since the pot-legalization measure passed in 2012, marijuana activists have complained that tourists and people who don't want to use pot in front of their children need places to consume pot. ""We're legal and we need a place for people to go. We need social clubs,"" said Ashley Weber of Colorado NORML, a marijuana-legalization advocacy group. Smoking pot is banned on sidewalks, in parks as well as most Colorado hotels and car-rental companies. Colorado law currently neither bans nor permits pot clubs. The result is a patchwork of local regulations regarding pot clubs. Supporters of the bill called it more of a first step toward establishing the nation's first Amsterdam-like clubs. Though bars couldn't allow pot consumption, yoga studios, art galleries, coffee shops or other public event spaces could apply for licenses. ""I don't have time for perfect when we have an opportunity to move forward,"" said Shawn Coleman, a lobbyist for a Boulder County marijuana company. The city of Denver is working on its own rules for bring-your-own pot clubs. Denver's measure does not allow indoor pot smoking, though the drug could be smoked on outdoor patios in some cases. The statewide measure now awaits a vote by the full Senate. Even if Colorado's pot club proposal clears the Senate and then the House, the bill still faces a dicey path to becoming law. Democratic Gov. John Hickenlooper opposed Denver's pot-club measure last fall, and he has told reporters more recently that he's not sure if a statewide pot-club law would invite federal intervention in Colorado's marijuana experiment. ""?Kristen Wyatt can be reached at http://www.twitter.com/APkristenwyatt", -1763,2017/3/2,http://abcnews.go.com/US/national-cherry-blossoms-predicted-bloom-historically-early/story?id=45831987,Washington's cherry trees predicted to bloom historically early,,"The iconic pink cherry blossoms lining the Tidal Basin in Washington, D.C. are expected to make their appearance historically early this year. The Yoshino cherry trees are predicted to reach peak bloom ""?when at least 70 percent of the blossoms are open ""?March 14 to 17. According to the National Parks Service, this could be the earliest peak on record. Because of the early bloom period, the National Cherry Blossom Festival will kick off on March 15 this year, five days earlier than previously scheduled. The Tidal Basin cherry trees were a gift from Japan to the U.S., and the National Cherry Blossom Festival commemorates the friendship between the two nations. ""This National Cherry Blossom Festival is the biggest, greatest, most fun celebration of U.S.-Japan friendship anywhere in the world,"" Japanese Ambassador Kenichiro Sasae said at a press conference this morning. ""I don't need to say, 'Make this cherry blossom festival great again,' because it's already great."" The 2017 event marks the 90th anniversary of the first festival and the 105th anniversary of Japan's tree gift. The monthlong celebration features parties, cultural events, a parade, a kite festival and fireworks.", -1764,2017/3/2,http://abcnews.go.com/Politics/trump-immigration-order-blanket-ban-iraq-sources/story?id=45843647,"New Trump immigration order won't have blanket ban on Iraq, sources say",,"President Donald Trump's new executive order on travel and immigration won""t include a blanket ban on citizens from Iraq, White House officials tell ABC News. The newly revised order, made to replace a prior order that limited travel and immigration from seven predominantly Muslim countries in the Middle East and Africa, was expected Wednesday after a federal court judge temporarily halted the original order in early February. However, Wednesday came and passed without the order's signing, a delay that ABC News has learned was due in part to concerns expressed by members of Trump's own Cabinet. Sources familiar with the decision-making process told ABC News that officials within the State Department expressed direct concerns to Secretary of State Rex Tillerson that keeping Iraq on the travel ban list could hinder the U.S. fight against ISIS. Secretary of Defense James Mattis voiced similar concerns directly to the White House. After the first order was released, he told the White House he wanted exemptions to be made for Iraqis who served alongside U.S. personnel in Iraq. Then during the drafting of the new order he suggested Iraq be removed altogether. In addition, Homeland Security John Kelly also told the White House he had concerns about keeping Iraq on the list, according to a source familiar with the process. These officials familiar with the new draft order also tell ABC News the measures may not take effect immediately as the first one did -- a situation that caused disorder at multiple airports as law enforcement officials detained travelers who were impacted. Instead, the new order could delay implementation for up to two weeks from the days it's issued. Furthermore, the order will only apply to future visa applicants, according to these officials. All current U.S. visa holders -- even those from the banned countries -- will be allowed to travel to the country. Under the previous order, even those with valid U.S. visas could not reenter the country if they came from one of the seven banned countries. As for when the new order is ultimately expected, White House press secretary Sean Spicer said Wednesday that the president hasn't yet made a decision. ""When the president is ready to make a decision he lets us know and we let you know,"" Spicer said. Multiple officials with knowledge of the situation said that it is likely to come next week.", -1765,2017/3/2,http://abcnews.go.com/Politics/republican-congressman-steve-king-trumps-base-abandon-immigration/story?id=45842582,Republican congressman Steve King says Trump's base would abandon him for immigration reform,,"Rep. Steve King, R-Iowa, says Trump's ""base would leave him almost immediately""?were he to support immigration reform, as he hinted ahead of his first address to Congress Tuesday night, rather than stick to the tough stance he espoused during the campaign. During a lunch with television network anchors Tuesday, Trump said ""the time is right for an immigration bill as long as there is compromise on both sides."" And a senior administration official said that the president would consider a pathway to citizenship for so-called ""DREAMers"" and potential legal status for those already in the U.S. who have not committed serious crimes. But King, who supports tightening border security, told ABC News""?Rick Klein and Jonathan Karl on the ""Powerhouse Politics""?podcast that Trump's Tuesday address was ""exactly consistent""?with the policies he touted on the campaign trail. ""the thing that gave Donald Trump traction was enforcing immigration law and of course building a wall,""?King said, and that if he were to support immigration reform ""not only would the conservatives start to leave him, I don""t know if anybody in the foreseeable future could run for the presidency on...securing our border.""?King also said he didn't support the president's stance on paid family leave, espoused by Trump's daughter, Ivanka, and didn't applaud that portion of his speech. ""that to me says borrowing money from China in order to pay people to babysit our children here,""?King said, adding that refundable tax credits might allow ""Hor Obamacare to be rebuilt back into statute.""?Nonetheless, King gave the speech ""A very high grade.""?""When I heard him say the investment in infrastructure...it gave me a measure of hope if there's going to be some private capital invested in that,""?King said. Trump's address was punctuated by an emotional moment where Carryn Owens -- the wife of Navy SEAL William ""Ryan"" Owens, who was killed in a raid in Yemen authorized by Trump in January -- received a standing ovation. The president discussed why he considered the raid successful, lauded Ryan Owens and acknowledged his widow. Some lawmakers said that Trump should have stuck to praising the fallen SEAL and left the success of the raid out, but King disagreed. ""I think if you ask Carryn Owens in one year, or five years or ten, or two or three generations from now they will look back on last night with great pride in their family,""?King said. As for the Affordable Care Act, known as Obamacare, King said that a GOP plan that espoused refundable tax credits is not a viable replacement because it implies that every American is entitled to a health insurance policy. ""there should not be that entitlement. We need to make sure that we take care of people and we can""t let them not have care,""?King said, but added that a gap in insurance coverage could be covered by programs like public clinics and market competition. King said it's necessary for congress to ""make a clean break""?and fully repeal the Affordable Care Act and then send ""the components of reform one at a time""?from the House to the Senate.", -1766,2017/3/2,http://abcnews.go.com/Health/pompe-disease-treatment-rare-disease-highlighted-trump/story?id=45830022,What to know about Pompe disease and treatments highlighted in Trump's address to Congress,,"President Donald Trump's first address to a joint session of Congress happened to fall on Rare Disease Day -- a fact he highlighted by recognizing one of his invited guests, Megan Crowley, a 20-year-old college student with a rare genetic disorder called Pompe disease. After spotlighting Crowley, the president announced his intention to reduce ""restraints"" at the U.S. Food and Drug Administration (FDA) in order to speed up the drug approval process for diseases like Pompe. ""If we slash the restraints, not just at the FDA, but across our Government, then we will be blessed with far more miracles like Megan's,"" he said. Here's a look at Pompe disease and the drugs approved to treat it through the current FDA drug approval process. What is Pompe Disease The disease is a rare genetic disorder where the body is unable to make an enzyme that breaks down a specific, complex sugar called glycogen. As a result, an abnormal amount of the sugar accumulates, especially affecting muscle cells. The disease affects approximately 1 in every 40,000 people in the U.S., according to the National Institutes of Health (NIH). There are three types of Pompe disease: classic infantile-onset, non-classic infantile-onset and late-onset. Classic infantile-onset Pompe disease begins within a few months of birth and is characterized by muscle weakness, poor muscle tone, enlarged liver and heart defects that, if untreated, will likely to lead to heart failure. Non-classic infantile-onset Pompe disease usually appears by the time the infant is a year old and has a more subtle presentation. It is characterized by delayed motor skills and progressive muscle weakness. The heart may be abnormally large, but this defect is less likely to lead to heart failure. The third type of the disease, called late-onset type of Pompe disease, may not show up until late childhood, adolescence or adulthood. It is generally milder, characterized by progressive muscle weakness, especially in the legs and the trunk, including the muscles that control breathing. But,the heart is much less likely to be affected. Megan Crowley was diagnosed with Pompe disease at 15 months. Her younger brother, Patrick, was found to have the disease when he was just 3 months old. How was the treatment developed? During his speech, Trump used Johny Crowley's story as an example of how government ""restraints"" should be cut to facilitate innovation. ""Megan's story is about the unbounded power of a father's love for a daughter,"" Trump said. ""But our slow and burdensome approval process at the Food and Drug Administration keeps too many advances, like the one that saved Megan's life, from reaching those in need."" At the time the Crowley children were diagnosed with the disease, there were few options for treatment. John Crowley decided to quit his job at Bristol-Myers Squibb in order to search for a cure and co-founded Novazyme Pharmaceuticals in Oklahoma City, with Dr. William Canfield, who was researching Pompe disease, in 1999. The first drug to be FDA approved for Pompe disease was Myozyme, which is an enzyme replacement therapy that helps break down excess glycogen. While it can help people with the disease live far longer than they did previously, it does not ""cure"" it. Myozyme was developed by biotech company Genzyme Corporation, which had acquired the company Crowley and Canfield co-founded. Crowley was in charge of managing research efforts for Pompe disease at Genzyme. Dr. Heather A. Lau, assistant professor of neurology and director of the Lysosomal Storage Disorders at NYU Langone Medical Center, said the treatment was a ""game changer"" when it was approved. ""These children are now living and are living beyond the expectation,"" said Lau, ""and they can go to school."" ""They do have severe muscle weakness still and require physical therapy,"" and, she added, ""a lot of them are unable to walk."" Before this treatment was released, said many children with the ""classic"" form of Pompe disease would not survive past their first birthdays. Novazyme Pharmaceuticals began researching treatments in 1999, when Crowley co-founded the company. Genzyme Therapeutics continued the research after purchasing the company in 2001. The drug eventually developed, Myozyme, was approved by the FDA in 2006 through their ""orphan drug"" program, which fast-tracks treatments for rare or especially life-threatening disorders, about nine months after Genzyme Corporation first submitted the application. What do some health experts say about changing the drug approval process? Part of the reason it takes months to years between the time a drug is developed and approved to be sold on the market is that it takes time to conduct trials. Medical experts have criticized the notion of changing the current guidelines, saying those stages are necessary for safety, including World Health Organization director Dr. Margaret Chan. ""Regulatory agencies everywhere must resist the push to replace randomized clinical trials, long the gold standard for approving new drugs, with research summaries provided by pharmaceutical companies,"" she said during a speech last month at the University of Washington's Department of Global Health. ""As some argue, making this change would speed up regulatory approval, lower the costs to industry and get more products on the market sooner. This kind of thinking is extremely dangerous."" Drugs for rare diseases, like Pompe disease, can be designated as ""orphan drugs"" and fast-tracked to help patients with no other options for survival. Orphan drugs are designated for diseases where fewer than 200,000 people are affected in the U.S. As an incentive for pharmaceutical companies to make these drugs for a relatively small population, the companies may receive tax rebates, enhanced patent protections, subsidies for research and marketing rights. These drugs follow the same regulation process as drugs for the general population, including animal and human studies to ensure there is evidence they are effective and safe to use. However, due to the small number of people affected, the number of people required to take part in safety and efficacy studies is lower than a drug for the general population and they can be approved faster. Dr. Michael Carome, Director of Public Citizen's Health Research Group, a non-profit organization that champions ""citizen interests,"" defended the current regulation process as ways to keep patients safe. ""President Trump's claims that the U.S. Food and Drug Administration's approval process for medical products is 'slow and burdensome' and 'keeps too many advances ... from reaching those in need,'"" Carome said in a statement today, ""reflect complete ignorance about the FDA's current regulatory schemes for ensuring that medications and medical devices are safe and effective."" Dr. Darien Sutton-Ramsey contributed to this article. He is an Emergency Medicine Resident Physician and an ABC News Medical Unit contributor.", -1767,2017/3/1,http://abcnews.go.com/Politics/vp-mike-pence-vows-fall-cracks-plan-repeal/story?id=45826650,"VP Mike Pence vows 'No one is going to fall through the cracks' in plan to repeal, replace Obamacare",,"Vice President Mike Pence today said, ""No one is going to fall through the cracks"" in President Trump's plan to repeal and replace Obamacare amid fears that those who have health coverage now will lose it. ""What the president wants the Congress to do is to create a framework for people to be able to afford coverage,"" Pence said on ABC News' ""Good Morning America."" ""I think the president has made it clear, no one is going to fall through the cracks in this."" Trump reiterated his legislative agenda, which includes repealing and replacing the Affordable Care Act, during his first address to a joint session of Congress Tuesday night. The president's call to repeal and replace Obamacare was met with boos and thumbs down from Democrats. ""Obamacare is collapsing and we must act decisively to protect all Americans,"" Trump said in his address Tuesday night. ""So I am calling on all Democrats and Republicans in the Congress to work with us to save Americans from this imploding Obamacare disaster."" The speech has received mixed reactions from lawmakers. House Speaker Paul Ryan, R-Wis., called the president's address a ""home run"" in a statement, while House Minority Leader Nancy Pelosi, D-Calif., expressed the opposite sentiment, tweeting that Trump's speech ""was utterly disconnected from the cruel reality of his conduct."" Senate Minority Leader Chuck Schumer, D-N.Y., said in an interview with ""GMA"" this morning that Trump was ""totally detached"" from his speech to Congress and ""didn't make any of the tough decisions."" But Pence said the address shows the president is making good on his campaign promises. ""The candidate Donald Trump is the President Donald Trump,"" the former Indiana governor said on ""GMA.""?""I think what you saw last night was the president acting on the priorities that he ran on.""", -1768,2017/3/1,http://abcnews.go.com/Politics/trump-vows-repair-nations-crumbling-infrastructure-experts-potential/story?id=45828359,"Trump vows to repair nation's 'crumbling' infrastructure, but experts see potential roadblocks",,"President Donald Trump, in his first speech to a joint session of Congress last night, vowed to repair what he called the nation's ""crumbling"" infrastructure and initiate a ""new program of national rebuilding."" ""Crumbling infrastructure will be replaced with new roads, bridges, tunnels, airports and railways gleaming across our very, very beautiful land,"" he said. ""I will be asking Congress to approve legislation that produces a $1 trillion investment in the infrastructure of the United States ""?financed through both public and private capital ""?creating millions of new jobs. This effort will be guided by two core principles: Buy American, and hire American."" Both Republican and Democratic lawmakers are waiting for specifics from Trump, who has offered few details on his plan. White House press secretary Sean Spicer told reporters last week that the president's infrastructure priorities will be released in mid-March. Infrastructure experts interviewed by ABC News said the new administration may face numerous roadblocks to securing the funds needed to accomplish this herculean task. According to David Raymond, the president and CEO of the American Council of Engineering Companies, infrastructure has not kept ""pace with the needs of a modern technological society."" ""Our roads and airports and waterways and energy infrastructure are in really dilapidated shape, compared to other countries, certainly other industrialized countries,"" he told ABC News. Kevin DeGood, the director of infrastructure policy at the Center for American Progress, a liberal think tank, pointed to the ""great backlog of unfunded maintenance, repair and rehabilitation projects across sectors,"" which includes transportation, drinking water, water treatment, water distribution and stormwater systems. ""There are lots of structurally deficient bridges, lots of roads in poor conditions and lots of communities that are struggling to connect people with jobs,"" he said. These communities ""need more choices, more public transportation ... The Northeast Corridor has billions of dollars of work that needs to be done. Some bridges and tunnels on Amtrak's Northeast Corridor are more than 100 years old,"" he said. Forty-two percent of America's major urban highways are congested and cost the economy an estimated $101 billion in wasted time and fuel each year, according to a 2013 report by the American Society of Civil Engineers (ASCE). Moreover, 1 in 9 bridges in the country is rated as structurally deficient, the ASCE said. Raymond and DeGood pointed to California's Oroville Dam as another example of infrastructure problems. In February, after weeks of heavy rain, the dam's emergency spillway was overwhelmed, resulting in erosion damage and forcing thousands of downstream residents to evacuate. Of the 84,000 dams in the U.S., more than 4,000 are estimated to be structurally deficient ""?2,000 of them high-hazard dams, the ASCE said. The National Governors Association sent a list of priority infrastructure projects to the White House on Feb. 8; the list, from 49 states and territories, totaled 428 ""shovel-ready projects."" Raymond said Trump's infrastructure promise was a positive sign for the country. ""For many years people have talked about the need to spend vastly increased sums on infrastructure. This is not a new subject,"" Raymond said. ""The new element in all of this is the president's own personal commitment in such a major speech, which has underscored what he said on the campaign trail ... I think he distinguished himself by being one of the few presidents in the modern era who have talked about infrastructure in such an important speech before a joint session of Congress."" In his speech last night, Trump cited President Dwight Eisenhower's infrastructure program, leading Raymond to believe, he said, that ""the president is going to be backing something that is as dramatic as that."" After Eisenhower pushed for a network of national highways, he signed the Federal-Aid Highway Act of 1956, which authorized construction of the Interstate Highway System and forever altered the way Americans traveled. But Larry Beeferman, the director of the Pensions & Capital Stewardship Project at Harvard Law School, said Trump's words had ""essentially no substance, in a policy sense."" ""Which infrastructure? And why? And how do you do it? He had nothing to say about that,"" Beeferman said. DeGood said Trump's use of one phrase last night ""?""legislation that produces a $1 trillion investment"" ""?was code ""for tax credits,"" which ""essentially is a tax break for equity investors."" Equity investors ""will put money into infrastructure projects that generate revenue,"" like toll highways, DeGood said. ""If you have a rural highway in Iowa, that's not the kind of project that can be done with private equity investors, because you have to have a source of revenue [like tolls on urban highways] to repay those investors,"" he explained. But public/private partnership deals do not work for most projects in rural America ""?a key Trump constituency, he added. According to a March 2015 report from the Congressional Budget Office, public spending by federal, state and local governments on transportation and water infrastructure totaled $416 billion in 2014, with $320 billion of that from state and local governments. The ASCE estimated, based on 2013 data, that $3.6 trillion is needed by 2020 to fix the country's aging infrastructure. DeGood said what's needed is for Congress to pass a $1 trillion infrastructure bill, but he doesn't ""see a big support for that"" by Republican leadership. ""[Trump's] party doesn't seem to have any desire to hold him accountable and actually spend the money,"" DeGood said. ""There's a large gap between what's needed and what's likely to happen."" Raymond said that after Trump sends a proposal to Congress, the next questions will be, ""How is it going to be paid for? Will it be paid for through an increase in taxes, such as petroleum taxes? Or will it be paid for by taking money from another account and sticking it into the infrastructure account? Or will it be paid for purely through private investment and tax incentives? Or will it be paid for by a combination of public funds and private investments?"" Despite all the questions, ""There's certainly going to be a national infrastructure program that the president will be able to tout as being a dramatic program that pushes this country forward and rebuilds its infrastructure,"" Raymond said. ABC News' Morgan Korn and Jeff Swartz contributed to this report.", -1769,2017/3/2,http://abcnews.go.com/International/slashing-state-department-budget/story?id=45841002,What slashing the State Department budget by one-third would really mean,,"When Secretary of State Rex Tillerson spoke to the State Department on his first day on the job, he sought to reassure America's army of diplomats by praising their dedication and intelligence and asking them to ""work as one team.""?But he also promised some reforms that would challenge what he called ""ineffective traditions,""?and now, those changes could be even more dramatic than expected. The White House announced a 10 percent increase in military spending Monday that would add about $54 billion to the Pentagon's budget -- paid for by historic cuts in non-defense spending. Foreign aid is a prime target, with reports that the budget for the State Department and USAID could be cut by as much as 30 percent or even 37 percent. The White House has not confirmed either of these numbers, and its full budget proposal has not yet been released. But what would slashing the State Department by one-third actually mean? First, it helps to understand what the State Department does. The budget for the State Department and the U.S. Agency for International Development (USAID) totals around $58.8 billion, including $19.2 billion in wartime spending called Overseas Contingency Operations. That big chunk includes programs aimed at countering ISIS, supporting Middle Eastern allies, and providing humanitarian relief. These numbers are based on the fiscal year 2017 budget request from the Obama administration. On the ground, that translates to billions for keeping diplomats and embassies in the region safe, helping people in the region displaced by war, including refugees, and providing economic aid to these countries to try to help stabilize them. Setting aside the Overseas Contingency Operations, though, the State Department and USAID have a budget of $39.6 billion. At a baseline, there's about $8 billion that keeps the diplomatic and consular programs running all around the world, and more than $2 billion to build, maintain and secure embassies. There are also the programs we often think of when we talk about foreign aid: Supporting international peacekeeping operations (about $3 billion); international disaster relief, for hurricanes, earthquakes and the like (nearly $3 billion); helping farmers feed the world (around $2 billion); educational and cultural exchange programs (about $600 million) and the Peace Corps ($400 million); and the life-saving work of global health programs that fight malaria, HIV/AIDS and other diseases (between $8 and 9 billion). There are also programs you hear less about: Support for counter-narcotics operations around the world (over $1 billion); financing allied militaries to purchase weapons and equipment (over $6 billion); and the Overseas Private Investment Corporation, which sells financial services to American companies investing abroad -- and actually makes money for U.S. taxpayers. Under the Obama administration, the State Department also boosted funding for particular issues, including millions of dollars each to deal with climate change, gender equality and biodiversity. That brings us back to reported possible cuts of up to 37 percent. The reported numbers received big blowback from retired senior military leaders and former top State Department officials -- but also some Republican foreign policy hawks on Capitol Hill. But to others on the right, this is exactly where cuts should start. ""It is entirely reasonable for Trump to look to the State Department for cuts because the agency's budget has tripled in real terms just since 2000,""?said Chris Edwards, the director of tax policy studies at the libertarian Cato Institute. ""We'r not talking about going back to some antediluvian era. We'r talking about going to end of the [George W.] Bush administration,""?said Brett Schaefer, a senior research fellow at the conservative Heritage Foundation. ""It would simply revert back to levels that were adequate at the time and adequate going forward if you applied them in a smart way.""?But some worry that in today's world, any scaling back of American diplomacy would send the wrong message, risking people's lives amid famine and natural disasters, undermining America's relationships with important partners, creating a vacuum for adversaries like Russia and China to fill, and possibly even damaging U.S. national security. ""A one-third cut would inevitably have a significant national security impact. You can""t cut that deeply and not create damage to national security because our interests are so broad,""?said Douglas Lute, the former U.S. ambassador to NATO, a retired three-star general, and a senior national security aide to Presidents George W. Bush and Obama. ""America would be under-represented, facilities would be closed, and the facilities that remain open would be under-manned,""?he added. ""It would be the manifestation of America is shutting down.""?Karl Eikenberry, the retired three-star general who commanded U.S.-led coalition forces in Afghanistan, agreed. ""It also sends the wrong message to our many friends in the world who want a strong America, but one that leads by example and diplomacy, not with bayonets,""?said Eikenberry, who also served as ambassador to Afghanistan. Critics of the reported cuts are also quick to point out that spending on the State Department and USAID combined is only 1 percent of the federal budget, an easy scapegoat for a president unwilling to tackle the real challenge of reforming Social Security and Medicare. A majority of Americans dramatically overestimate the share of the federal budget spent on foreign aid, according to a January 2016 survey by the Kaiser Family Foundation. On average, Americans guessed that spending on foreign aid makes up 31 percent of the federal budget, the survey found. But Schaefer, of the Heritage Foundation, calls that argument ""A red herring."" ""It doesn""t matter how big the State, USAID, or international affairs budget is in regards to overall U.S. budget. The question is, is it funded enough to accomplish its mission or is it over-funded?""?he said. Still, while many see a danger in widespread reductions at such a severe level, there appears to be some consensus that there is room for reform -- and the department's critics say one way to do so would be targeted cuts. Edwards, of the Cato Institute, has argued for targeting foreign development aid -- the kind that funds long-term projects, as opposed to humanitarian aid or disaster relief. And Schaefer recommended targeting more political programs, like the Obama administration's funds for climate change and gender issues, but implementing reductions gradually. If it seems that those may not add up to a one-third cut, some observers believe that may have been the idea all along from the ""Art of the Deal""?president -- to overreach as a bluff and end up somewhere in the middle. ""Is this a negotiating tactic? We don""t know,""?Schaefer said. But some, like Karl Eikenberry, warned there's a danger even in bluffing. ""Perhaps this is an opening budget negotiation gambit, but even if so, it is terribly demoralizing to the many career professionals in the Department of State who have devoted their lives to serving our nation,""?the retired military commander said. ", -1770,2017/3/1,http://abcnews.go.com/Politics/inside-white-house-president-trump-prepped-speech-joint/story?id=45830015,Inside the White House as President Trump prepped his speech before a joint session of Congress,,"President Trump's address to a joint session of Congress on Tuesday night has drawn praise from pundits and fans on social media being more presidential than other speeches he has given since taking office. There was a stark contrast between his congressional address -- during which he told Americans that the ""time for trivial fighting is over"" and asked them to ""dream big"" -- and his inaugural address 40 days earlier -- where he said that ""American carnage stops right here"" and talked about poverty, crimes, gangs and drugs. A senior White House adviser said that the same roster of advisers who were involved in helping craft the inaugural speech were also involved in this speech. That said, the senior adviser confirmed to ABC News that while many people weighed in, policy adviser and frequent speechwriter Stephen Miller played a major role in the creation of Tuesday night's speech. Trump gathered with a key group of longtime advisers -- Chief of Staff Reince Priebus, spokeswoman Hope Hicks, senior adviser Jared Kushner, counselor Kellyanne Conway and Miller -- in the White House's map room on Tuesday, hours before the speech, the senior White House adviser told ABC News. They went around the room and offered suggestions to the draft, the adviser said. White House officials say the change in tone is partly Trump realizing what is possible and understanding what he needs to do in order to get things done. Just a few hours before the speech, Conway told Fox News that ""it's a beautiful speech that will be delivered from the heart."" There could also be another untitled adviser who influenced the speech. A number of initiatives that Trump mentioned in his speech -- paid family leave, women's health, and clean air and water -- are close to his eldest daughter Ivanka's heart. While what role she may have played in crafting the speech remains unclear, there were two clear instances on Tuesday alone where her public presence her father was notable. Gender diversity in #STEM is key to empowering women & girls. @realDonaldTrump signed two bills bringing us closer to #ClosingTheGenderGap pic.twitter.com/pN5V81JUjI Earlier in the day, she was seen standing directly behind Trump when he signed two bills relating to helping promote women in science and technology fields and another bill relating to female entrepreneurship. And then during Tuesday's speech, she was seated directly next to Carryn Owens, the widow of Navy SEAL William ""Ryan"" Owens, who was killed during a raid in Yemen in January. Though Ivanka remains an informal adviser to her father and does not have an official White House role, she has been a regular presence throughout his term at both public events and behind the scenes. She and her husband, Jared, were in the car along with Donald and Melania Trump as they were shuttled to the Capitol, and it appeared that he was reading over some papers -- perhaps going through some last-minute speech prep.", -1771,2017/3/1,http://abcnews.go.com/Politics/trump-invited-navy-seal-widow-carryn-owens-joint/story?id=45835763,Trump invited Navy SEAL widow Carryn Owens to joint address during January condolence call,,"The White House on Wednesday shared more details behind the surprise emotional highlight of President Trump's joint address to Congress -- the attendance of the widow of a fallen Navy SEAL, who died in a controversial January ground mission in Yemen. According to press secretary Sean Spicer, President Trump's decision to invite Carryn Owens and her children to his speech dated back to his call to her relaying his condolences following news her husband, Chief William ""Ryan"" Owens, was killed during the raid in Yemen. During Trump's initial condolence call, Spicer said, the widow did not at first accept the invitation. However, Trump asked a military aide to follow up with her and she accepted at a later date. The White House did not release her name on the list of guests in the First Lady's box prior to the address, Spicer said, to respect her privacy and avoid media attention in advance of the speech. The Yemen raid was thrown back into the spotlight late last week, after Owens' father gave an interview to the Miami Herald calling for an independent investigation into the mission and questioned whether Trump should have made the call to move forward with the operation. In an interview with Fox and Friends, Trump seemed to pass blame for the operation onto President Obama and military leaders who had advised him about the raid. ""This was a mission that started before I got here,"" Trump said. ""This was something that was, you know, they wanted to do. And they came to see me. They explained what they wanted to do, the generals."" During his speech last night, Trump said he spoke again with his Defense Secretary James Mattis who ""reconfirmed"" the raid was ""highly successful"" and ""generated large amounts of vital intelligence."" He said the fallen Navy SEAL had ""laid down his life for his friends, for his country, and for our freedom."" ""Ryan's legacy is etched into eternity,"" Trump said. The moment sparked more than two minutes of applause and a standing ovation for Carryn Owens, who tearfully stood to acknowledge the response, from lawmakers in the chamber. Owens and her three children also visited the White House for a private meeting with the president during the day Tuesday, though her children did not attend Trump's address to the joint session of Congress itself. According to Spicer, President Trump had Owens' permission to use her story in his joint address and dismissed those who accused the president of playing politics with a fallen soldier's widow. ""She has a right to honor the legacy and sacrifice of her husband,"" Spicer told reporters.", -1772,2017/3/2,http://abcnews.go.com/Politics/senators-trump-stuck-honoring-fallen-navy-seal/story?id=45837608,Senators wish Trump had stuck to honoring fallen Navy SEAL,,"Senators from both parties said President Trump should not have commented on the success of the January raid on Yemen during his address to Congress -- instead simply honoring the Navy SEAL who died during the mission, Senior Chief Special Warfare Operator William ""Ryan"" Owens. During Trump's Tuesday address to a joint session of Congress, the president said that Defense Secretary James Mattis ""reconfirmed""?that the operation ""generated large amounts of vital intelligence that will lead to many more victories in the future against our enemies.""?Those remarks came shortly after reports surfaced that the raid did not yield significant intelligence. A senior U.S. official later told ABC News that the raid did in fact provide insights into the workings of al Qaeda in the Arabian Peninsula. ""The one thing I would caution this president is be careful of overselling when it comes to war,"" Sen. Lindsey Graham, R-South Carolina, told reporters Wednesday. ""Nobody's going to criticize an effort to go after the enemy. Sometimes you get dry holes, sometimes the raids don't work out like you would like. But that's not the issue. The people who do this are heroes. Don't oversell results.""?The question of whether or not the Yemen raid was a ""success""?was something on which the White House itself had changed its position publicly. Press secretary Sean Spicer said during the daily briefing on Feb. 2, ""It's hard to ever call something a complete success, when you have the loss of life or people injured.""?But Spicer and Trump went after Sen. John McCain, R-Arizona, after he told reporters on Feb. 9 that he would not describe the mission as a success given that a service member died. Trump tweeted, in part, that McCain ""should not be talking about the success or failure of a mission to the media. Only emboldens the enemy! He's been losing so long he doesn""t know how to win anymore.""?Spicer said during that day's briefing that the mission was ""Absolutely a success,""?appearing to amend his previous comment. On Wednesday, Sen. Marco Rubio echoed Graham in recommending that the administration focus, at least publicly, on the heroism of the service member lost during the raid. ""Look, the objective of the mission was not achieved. That doesn't make the sacrifices any less heroic and I imagine there would be some valuable information that was gathered,""?he said. Sen. Chris Coons, D-Delaware, who accompanied Trump to the transfer of Owens""?remains at Dover Air Force Base, said Trump should not have mentioned the raid. ""I think it's always appropriate when we recognize and thank the family of an American who is killed in combat. I would have preferred the president stick to that,"" Coons said. While Owens""?widow Carryn attended the speech and was recognized with an extended standing ovation, his father Bill refused to see Trump at the dignified transfer and has called for an investigation into the circumstances surrounding his death, according to the Miami Herald, which interviewed him this past weekend. ""I think it is a cause of some pain for the family to sort of re-litigate the details of this particular raid, and I think what's important here is to thank and recognize Ryan Owen's widow, children and parents for the enormous sacrifice they've made for our country,"" Coons said. U.S. Central Command, which oversees missions in the Middle East, confirmed that an investigation into Owens' death was underway as is routine after the passing of any deployed U.S. service member, but that there is no investigation into the raid itself. Sen. Tim Kaine, D-Virginia, said there are still ""A lot of questions""?to be answered about the raid, which underscored the sensitivity of the entire episode. ""It kind of compounded the tragedy and the sentiment toward the widow who was there last night to know that there's internal family division. And some members of the family, the father, is really demanding that questions be answered,"" Kaine said. ABC's Luis Martinez contributed to this report.", -1773,2017/3/2,http://www.cnn.com/2017/03/01/politics/jeff-sessions-russian-ambassador-meetings/index.html,Sessions did not disclose meetings with Russian ambassador,"(CNN)Attorney General Jeff Sessions met twice last year with the top Russian diplomat in Washington whose interactions with President Donald Trump's former national security adviser Mike Flynn led to Flynn's firing, according to the Justice Department.","Sessions did not mention either meeting during his confirmation hearings when he said he knew of no contacts between Trump surrogates and Russians. A Justice official said Sessions didn't mislead senators during his confirmation. The Washington Post first reported on Sessions' meetings with the official. Sergey Kislyak, the Russian ambassador, is considered by US intelligence to be one of Russia's top spies and spy-recruiters in Washington, according to current and former senior US government officials. Russian officials dispute this characterization. Sessions met with Kislyak twice, in July on the sidelines of the Republican convention, and in September in his office when Sessions was a member of the Senate Armed Services committee. Sessions was an early Trump backer and regular surrogate for him as a candidate. Sessions responded swiftly Wednesday, strongly stating that he never discussed campaign-related issues with anyone from Russia. ""I never met with any Russian officials to discuss issues of the campaign,"" he said in a statement. ""I have no idea what this allegation is about. It is false."" Key Democratic lawmakers immediately called for Sessions' resignation after the news broke. House Minority Leader Nancy Pelosi characterized Sessions' comments in his confirmation ""apparent perjury,"" and said the attorney general should resign. Kislyak's potential proximity to Russian spying is one reason why Flynn's interactions with him, and Flynn's failure to disclose what he discussed with Kislyak, raised concerns among intelligence officials. In his confirmation hearing to become attorney general, Sessions was asked about Russia and he responded at the time that he ""did not have communications with the Russians."" Sessions' spokeswoman Sarah Isgur Flores said there was nothing ""misleading about his answer"" to Congress because the Alabama Republican ""was asked during the hearing about communications between Russia and the Trump campaign -- not about meetings he took as a senator and a member of the Armed Services Committee."" ""Last year, the Senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee, including the British, Korean, Japanese, Polish, Indian, Chinese, Canadian, Australian, German and Russian ambassadors,"" Isgur Flores said in the statement. A Justice Department official confirmed the meetings, but said Sessions met with the ambassadors ""in his capacity as a senator on the Armed Serviced Committee."" A White House official said: ""This is the latest attack against the Trump Administration by partisan Democrats. (Attorney) General Sessions met with the ambassador in an official capacity as a member of the Senate Armed Services Committee, which is entirely consistent with his testimony."" In reaction to the report, Rep. Elijah Cummings, a Maryland Democrat and the ranking member of the House Oversight Committee, also called for Sessions' resignation. ""There is no longer any question that we need a truly independent commission"" to investigate potential ties between Russia and the Trump campaign, Cummings said. ""It is inconceivable that even after Michael Flynn was fired for concealing his conversations with the Russians that Attorney General Sessions would keep his own conversations for several weeks."" Cummings called Sessions' claim during his confirmation hearing that he did not have communications with the Russians ""demonstrably false."" Minnesota Democrat Sen. Al Franken, who asked Sessions about Russia at the confirmation hearing, said if the reports of Sessions' contacts with Kislyak were true, then Sessions' response was ""at best misleading."" ""It's clearer than ever now that the attorney general cannot, in good faith, oversee an investigation at the Department of Justice and the FBI of the Trump-Russia connection, and he must recuse himself immediately,"" Franken said. News of Sessions' contacts with Kislyak came as the New York Times reported Wednesday evening that officials under former President Barack Obama had sent information throughout government about potential Russian contact with Trump's associates and interference in the 2016 election. The officials did so, the Times reported, in order to preserve the information after Obama left office. Regarding the Obama administration efforts, Obama's spokesman Eric Schultz told CNN: ""This situation was serious, as is evident by President Obama's call for a review -- and as is evident by the United States response. When the (intelligence community) does that type of comprehensive review, it is standard practice that a significant amount of information would be compiled and documented."" Two days before Trump's inauguration, the State Department sent Sen. Ben Cardin, a Maryland Democrat and the ranking member of the Senate Foreign Relations Committee, a batch of documents related to Russian attempts to meddle in elections worldwide, two sources familiar with the matter told CNN. Cardin spokesman Sean Bartlett told CNN that the senator had received the classified documents on request and that they were shared with both Republican and Democratic committee staffers.", -1774,2017/3/2,http://www.cnn.com/2017/03/01/politics/jeff-sessions-russia-reaction/index.html,"Graham, McCain want answers on Sessions-Russia report","(CNN)Sen. Lindsey Graham said Wednesday if the FBI determines that President Donald Trump's campaign illegally coordinated with Russia, Attorney General Jeff Sessions should recuse himself from making the decision whether to pursue prosecutions.","Sessions, a Trump appointee, ""cannot make this decision,"" Graham said. But Graham deflected a question about a Washington Post report that Sessions twice spoke with the Russian ambassador to the United States Sergey Kislyak during the 2016 presidential campaign, saying he needs to know more. ""If there were contacts between the Trump campaign and Russian officials, they may be legitimate; they may be OK. I want to know what happened between the Trump campaign, the Clinton campaign and the Russians,"" Graham told CNN's Dana Bash at a town hall in Washington with Sen. John McCain. Sessions met twice, in July on the sidelines of the Republican convention, and in September in his office when Sessions was a member of the Senate armed services committee. The Justice Department disclosed the meetings and said Sessions didn't mislead senators during his confirmation earlier this year when he said he knew of no contacts between Trump surrogates and Russians. Sessions, then a senator, was an early Trump backer and regular surrogate for him as a candidate. Sessions' spokeswoman Sarah Isgur Flores said there was nothing ""misleading about his answer"" to Congress because the Alabama Republican ""was asked during the hearing about communications between Russia and the Trump campaign--not about meetings he took as a senator and a member of the Armed Services Committee."" ""Last year, the Senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee, including the British, Korean, Japanese, Polish, Indian, Chinese, Canadian, Australian, German and Russian ambassadors,"" Isgur Flores said the in the statement. Both McCain and Graham lambasted Trump over his approach to Russia and the country's President, Vladimir Putin. ""When it comes to Russia, he has a blind spot. The bottom line is that Putin is disrupting democracy everywhere,"" Graham said. McCain, who has called for a select committee to investigate Russia's attempts to influence the US election, said the country's efforts require more attention. ""Have no doubt, what the Russians tried to do to our election could have destroyed democracy,"" he said. ""And that's why we've got to pay a hell of a lot more attention to the Russians and the things they're doing in Europe -- and right now, they're trying to determine the outcome of the French election, and they're using cyber."" Kislyak Is considered by US intelligence to be one of Russia's top spies and spy-recruiters in Washington, according to current and former senior US government officials.", -1775,2017/3/2,http://www.cnn.com/2017/03/02/politics/russia-jeff-sessions-confirmation-hearing/index.html,What Jeff Sessions said about Russia ties during confirmation hearings,(CNN)Yet another official in the Trump administration is raising eyebrows over interactions with Russia during campaign season last year.,"Attorney General Jeff Sessions spoke twice with the Russian ambassador to the US, the Justice Department said Thursday, adding to the suspicion over Russia's ties to the current administration. During his confirmation hearings in January, Sessions, however, did not mention his conversations with Sergey Kislyak. At the time of the hearings, some Americans considered Russia an antagonist because of numerous reports of its interference in the US election. Here's how Sessions answered questions during his confirmation hearings on interacting with Russian officials: ------------------------------ SEN. AL FRANKEN: ""If there was any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of this (2016) campaign, what would you do?,"" the Minnesota Democrat asked. SESSIONS: ""I'm not aware of any of those activities. I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians."" DATE: January 10 -------------------------- SEN. PATRICK J. LEAHY: Several of the President-elect's nominees or senior advisers have Russian ties. Have you been in contact with anyone connected to any part of the Russian government about the 2016 election, either before or after election day?"" the Vermont Democrat asked in a questionnaire. SESSIONS: No. DATE: January 10 --------------------------- Sessions was a senator and a top Trump surrogate when he met the ambassador twice -- in July on the sidelines of the Republican National Convention and in September when he was a member of the Senate armed services committee. In a statement Thursday, he said reports that he met Russian officials are false. ""I never met with any Russian officials to discuss issues of the campaign. I have no idea what this allegation is about,"" he said. US intelligence officials consider Kislyak a top spy and spy recruiter, according to current and former senior US government officials. Russia's foreign affairs ministry denied the characterization. Kislyak is the same man who met Trump's former national security adviser, Mike Flynn, before the President took office. Flynn resigned from his post after 23 days over his communications with Russia.", -1776,2017/3/2,http://www.cnn.com/2017/02/16/politics/trump-russia-timeline/index.html,"Timeline: What we know about the Trump campaign, his White House and Russia","Washington (CNN)Paul Manafort, Michael Flynn and other former aides are in the hot seat for their interactions with Russia over the course of the presidential campaign, transition and new administration. So what do we know happened when?","2016 March 28: Then-candidate Donald Trump hires Manafort to head his delegate efforts for his Republican primary campaign. May 19: Trump, now the presumptive GOP nominee, gives Manafort a promotion: campaign chairman and chief strategist. June 20: After Trump campaign manager Corey Lewandowski is abruptly fired, Manafort emerges as Trump's top campaign official. July 27: As the Republican nominee for president, Trump publicly calls on Russia to hack Democratic nominee Hillary Clinton's private emails. August 14: The New York Times reports on $12.7 million in secret cash payments earmarked for Manafort from a pro-Russian political party in Ukraine. August 15: Manafort denies having received payments from Ukraine and Russia, writing, ""The suggestion that I accepted cash payments is unfounded, silly and nonsensical."" August 18: Manafort tells NBC News he's ""never had a business relationship"" with a Ukrainian oligarch. August 19: CNN reports that FBI and Justice Department prosecutors are conducting an investigation into possible US ties to alleged corruption of the former pro-Russian President of Ukraine, including the work of Manafort's firm. That same day, Manafort resigns his position on Trump's campaign. October 7: The US intelligence community publicly blames Russia for election-related email hacks. ""We believe, based on the scope and sensitivity of these efforts, that only Russia's senior-most officials could have authorized these activities,"" the DHS and DNI joint statement reads. November 18: Trump as President-elect appoints Flynn as his national security adviser. The appointment raises concerns as the retired lieutenant general has a history of making controversial anti-Muslim remarks and is accused of mishandling classified information. Flynn was fired from his role as the director of Defense Intelligence Agency in 2014 by the Obama administration over claims he was a poor manager. December 1: CNN reports that Manafort has reemerged in Trump's orbit as a player shaping the new administration during the presidential transition period. December 19: Russian ambassador Sergey Kislyak and Flynn have a conversation in the wake of the shooting of the Russian ambassador to Turkey, in which Flynn expressed his condolences, according to a transition official. The call took place on December 19, according to The Washington Post. December 25: Kislyak and Flynn exchange holiday pleasantries via text message on Christmas, according to multiple transition officials. December 28: The Russian ambassador texts Flynn, according to a transition official. December 29: The Obama administration announces new sanctions against Russia and the expulsion of 35 of its diplomats over the country's alleged interference in the 2016 US election. Flynn and Kislyak speak several times on the phone the same day, reportedly discussing the sanctions. December 30: Russian President Vladimir Putin says Moscow would not expel American diplomats in response to US sanctions against Russia and would instead attempt to rebuild relations with Washington after Trump's inauguration. Trump tweets praise of Putin's move. 2017 January 6: A US intelligence report says Putin ordered a cyber campaign to help Trump beat Clinton in the US presidential election. January 12: The Washington Post first reports that phone calls took place the day the White House announced Russian sanctions. January 13: Trump spokesman Sean Spicer says Flynn's calls to Kislyak focused on the logistics of connecting Trump and Putin. ""The call centered around the logistics of setting up a call with the President of Russia and the President-elect after he was sworn in, and they exchanged the logistical information,"" Spicer says. ""That was it. Plain and simple."" January 15: Spicer confirms Flynn and Kislyak have been in communication, but US Vice President Mike Pence tells CBS that the two men did not talk about sanctions. ""They did not discuss anything having to do with the United States' decision to expel diplomats or impose censure against Russia,"" Pence says. January 23: Spicer, now the White House press secretary, reiterates that Flynn told him sanctions were not discussed in the calls. Three days after Trump officially becomes President, US officials say investigators are scrutinizing several calls between Flynn and Russia's ambassador. January 26: The Justice Department privately warns the Trump administration that Flynn misled administration officials regarding his communications with Kislyak and is potentially vulnerable to blackmail by the Russians, according to a person familiar with the matter. The message is delivered by acting Attorney General Sally Yates, who is fired on January 30 for refusing to enforce Trump's controversial travel ban barring citizens from seven Muslim-majority countries from entering the US. February 9: Pence finds out he had been misled by Flynn, according to two administration officials. February 10: An aide close to Flynn says he cannot rule out that the adviser spoke about sanctions on the call with Kislyak. On the same day, Trump says he is unaware of reports that Flynn may have spoken about sanctions during the calls and says he will ""look into that."" A US official then confirms that Flynn and Kislyak did speak about sanctions, among other matters. February 13: Russia again denies the allegations that the men discussed sanctions, telling CNN: ""We have already said there haven't been any."" On the same day, reports surface of the Justice Department's warning to the administration regarding Flynn. As the reports emerge, Trump's counselor Kellyanne Conway tells MSNBC that Flynn ""does enjoy the full confidence of the President,"" but around an hour later, Spicer says Trump is ""evaluating the situation."" Flynn resigns a few hours later, admitting he had ""inadvertently briefed the vice president-elect and others with incomplete information"" regarding the phone calls with Kislyak and apologizes. February 14: Spicer says Trump asked for Flynn's resignation because of trust issues with the national security adviser. CNN reports that high-level advisers close to then-nominee Trump were in constant communication during the campaign with Russians known to US intelligence, according to multiple current and former intelligence, law enforcement and administration officials. Among those senior advisers regularly communicating with Russian nationals were Manafort and Flynn. February 24: CNN reports that the FBI had rejected a recent White House request to publicly knock down media reports about communications between Trump's associates and Russians known to US intelligence during the 2016 campaign. February 27: Members of the House Intelligence Committee sign off on a plan to investigate Russia's alleged interference in the US elections, which includes examining contacts between Trump's campaign and Russia, and looking into who leaked the details. Committee chairman Devin Nunes brushes off calls by Democrats for an independent investigation. March 1: The Washington Post first reports that Attorney General Jeff Sessions met twice with Kislyak in 2016. Sessions did not mention either meetings during his confirmation hearings when he said he knew of no contacts between Trump surrogates and Russians. Sessions says the allegation is false. Democrats call for his resignation and that he should recuse himself from any Russia investigation. The New York Times reports that the Obama administration sought to ensure information about Russian efforts to meddle in the election were preserved after Obama left office.", -1777,2017/3/2,http://www.cnn.com/2017/03/02/europe/marine-le-pen-loses-immunity-eu/index.html,Marine Le Pen loses immunity over violent ISIS images,(CNN)Marine Le Pen's bid to become the next French president has hit another stumble after members of the European Parliament voted to lift her immunity from prosecution.,"The move, formally confirmed on Thursday, will allow French prosecutors to investigate her over tweets she sent in December 2015, which showed images of killings by ISIS militants. French law prohibits the distribution of violent images or incitement of terrorism. Announcing the result of the vote on whether to lift the immunity, Parliamentary President Antonio Tajani said a ""clear majority"" of members backed the motion. As an MEP, Le Pen, leader of the National Front, enjoys immunity which covers freedom of speech -- but that immunity can be lifted if a request is made by the authorities of a member state. Under French law, the maximum penalty for distributing violent images is three years in prison and a fine of up to �15,000 ($79,000). The lifting of her immunity relates to this case only and any action is unlikely to occur before the first round of voting on April 23. Le Pen is already under scrutiny over allegations that members of her staff were paid for non-existent jobs at the European Parliament. Le Pen initially admitted they had been paid while not working, the European Anti-Fraud Office (OLAF) said. She later denied having said so.", -1778,2017/3/2,http://www.cnn.com/2017/03/02/us/kansas-shooting-victim-alok-madasani/index.html,Kansas shooting survivor recalls deadly night: 'I still feel this is not reality',"Olathe, Kansas (CNN)Having a couple of drinks after work at Austins Bar & Grill in Olathe, Kansas, was something Alok Madasani did often with his friend Srinivas Kuchibhotla.","The outings were usually so brief the two men, both 32, were home with their families before anyone had time to ask where they had been. Still, the bar was where the friends laughed and were able to unwind after a hard day's work. It was a place where people knew them, a place where they felt comfortable. Now, burdened with a memory he is struggling to come to terms with, Madasani's words are heartrending. ""I just wish we didn't go there that night."" Last Wednesday night, as a University of Kansas basketball game played on the bar's big screen television, Madasani remembers that he and Kuchibhotla were talking on the nearby patio. They weren't really watching the game, he said. That day the two friends were engaged in their own conversation. ""We were laughing. We were talking."" ""Something is wrong"" Minutes into their first beers, around 6:15p.m., a stranger approached. It was a man they had never seen before. He was pointing a finger at them. ""And all of a sudden, this elderly looking gentleman with anger on his face -- you know that something is wrong the way he approaches you,"" Madasani said. Madasani recalls that he didn't speak to the man, but his friend Kuchibhotla did to be polite. ""He said, 'No sir, we are here legally, we are on H1B, we are from India.'"" After the exchange, Madasani got up from a chair on the patio and went into the bar. ""I had no reason to engage that gentleman in conversation,"" he said. Madasani was surprised at the randomness of the encounter. ""Typically, those things happen after two, three hours and people see you, you've been hanging around for awhile, they come to you and start a conversation. It was a half an hour that day when this happened. It was just out of the blue; we didn't even talk to him or say anything that can provoke it."" Madasani and his friend were speaking English rather than their native Telugu. Kuchibhotla made it a point to speak English in public, Madasani said. By 6:45 p.m. the stranger left. ""The sunlight is going away, and you're in that relaxed zone,"" said Madasani, ""and we see him leaving. Everyone on the patio was watching because it was not just us he was disturbing. He was disturbing everyone around because they were there for a peaceful evening. When somebody creates drama it affects the people around us."" ""I heard a loud pop right next to my ear"" The peacefulness was short-lived. Within 30 minutes, the friends had heard other patrons saying the man had returned with a gun. Madasani recalled how what happened next was almost too fast to react to. ""I heard a loud pop right next to my ear, kind of a loud pop."" He then dropped to the ground and started crawling. ""I wanted to survive,"" said Madasani, who is expecting a child with his wife. ""To see the kid -- that's what [was] running through my mind."" As he crawled toward the door he tried to stand. It was then he realized he had an injury to his leg. He fell to the ground once, managed to get himself out to the patio and fell again. He said he couldn't move. ""It was just too much pain, and a lot of blood."" On the patio, patrons tended to Madasani's injury. As one tied a shirt over his leg, Madasani could see his friend, Kuchibhotla, motionless on the ground. Shooting suspect remains in jail The alleged shooter, Adam Purinton, 51, was arrested hours later at an Applebee's restaurant in Clinton, Missouri, 70 miles from Olathe. He faces one charge of first-degree murder and two charges of attempted first-degree murder. Purinton remains jailed on a $2 million bond A motive has not yet been established, and the FBI is looking into the case to determine whether the shootings would be considered federal hate crimes. Days after the shooting Madasani continues to wrestle with why he and his friend ended up at the bar that night. ""I could have said, 'No,' but when Kuchibhotla asks you go because it's him. This guy, Mr. Perfect, who doesn't drink during the weekdays because he wants to work. That's the kind of guy he is, and when he asks, you go."" Madasani said that night, before they went out, he was the one still working. ""I was emailing with a co-worker in California. I could have told Srinivas that I had work to do -- 'Let's postpone this, we can do that on Friday.' I should've done that."" Madasani said his friend rarely got angry, didn't gossip or talk behind people's backs and that everyone around him was happy. ""He was the kind of guy I wanted to be. He made me a better person."" A mix of emotions Madasani knows the violence that took the life of his best friend is not isolated. ""Other things go on in this country, in the world, here in Kansas. I can say with confidence what happened is not what this country believes in and what this community believes in."" He says his friends, white, black and Hispanic -- have all expressed sympathy for his loss and he is proud to say that he has family members who have lived in the United States for 50 years, some longer. But coupled with the support he has received, the events of the past week still prove unsettling. ""I still feel this this is not reality,"" he said. ""It's still not sunk in. I still don't want to believe what's happening."" ", -1779,2017/3/2,http://www.cnn.com/2017/03/01/asia/north-korea-malaysia-kim-jong-nam/index.html,Kim Jong Nam investigation: North Korean man to be released without charge,"Kuala Lumpur (CNN)A North Korean man who was held in connection with the death of Kim Jong Nam will be released from police custody Friday, authorities said.","Police don't have sufficient evidence to charge Ri Jong Chol, Malaysian Attorney General Mohamed Apandi Ali told CNN. He will be deported to North Korea after his release, Ali said. Kim, the older half-brother of North Korean leader Kim Jong Un, was killed February 13 before he was supposed to board a flight to the Chinese-controlled territory of Macau. Two women have been charged with the murder of Kim, who police said was killed by smearing VX, a deadly nerve agent, on his face at Kuala Lumpur International Airport. Ri was the only North Korean to have been detained in the case, but investigators have named four North Korean suspects who are believed to be back in Pyongyang. Three other North Koreans are wanted for questioning, but police say the North Koreans would not help make their citizens available and were impeding the investigation. They are believed to be in Malaysia. South Korea has pinned the death on Pyongyang, accusing the country of recruiting the women. North Korea strongly denies responsibility, and its state media blamed Seoul and Washington for ""resorting to political chicanery to bring down the social system in the DPRK (Democratic People's Republic of Korea)."" Malaysia bans visa-free travel for North Koreans The brazen public kiiling has also frayed diplomatic relations between North Korea and Malaysia. Malaysia's Deputy Prime Minister Ahmad Zahid Hamidi announced Thursday that North Koreans would now need to get a visa to travel to the country starting March 6, according to Bernama, Malaysia's state news agency. Malaysian nationals are currently the only people in the world who can enter North Korea without a visa. The diplomatic row began when North Korea's ambassador to Malaysia, Kang Chol, said February 17 the country would reject the results of a ""forced"" autopsy on one of its citizens and demanded the immediate release of the body. Kang later accused Malaysian officials of officials of conspiring with ""hostile forces"" during the investigation, eliciting a harsh rebuke from his host country. ""The statement by the ambassador was totally uncalled for, it is considered diplomatically rude on his part,"" Malaysian Prime Minister Najib Razak said in response. ""Malaysia is not the pawn of any country and we will never be the pawn of any country."" VX VX is the world's most potent nerve agent and one of the most dangerous chemical weapons ever manufactured. It's banned under the Chemical Weapons Convention. It works by inhibiting an enzyme that regulates muscle function, causing paralysis and suffocation. It's lethal in doses as small as 10 mg. ""VX is probably the state-of-the-art nerve agent,"" CNN military analyst Rick Francona said. ""It is probably the most lethal of all the nerve agents ever designed.""", -1780,2017/3/2,http://www.cnn.com/2017/03/01/us/bomb-threats-jewish-centers-phone-calls/index.html,Jewish center bomb threats: What the callers said,(CNN)Some of the voices making the bomb threats were muffled and distorted. Others were automated.,"""There is a bomb in one of the children's backpacks and it's going to detonate shortly,"" one said. Some callers made anti-Semitic statements. ""The Jews will be decimated,"" a voice warned. The calls targeting Jewish community centers and school in nearly 33 US states and two provinces in Canada have sparked alarm and panic. President Donald Trump has denounced them. The FBI and the Justice Department's Civil Rights Division are investigating possible civil rights violations. There have been no reports that authorities found devices at any of sites. Conversations with Jewish community centers and leaders in more than a dozen states and in Canada offer a glimpse into the calls. The sex of the callers varied. The details in the calls were vague, indicating some callers didn't know about the targeted locations, according to officials at some centers. People at several Jewish community centers were trained to deal with the calls. One receptionist tried to keep a caller talking, following printed guidelines next to the phone. The questioning agitated some callers. Here is a sampling of information leaders at Jewish community centers gave about the phone calls. California: 'You're asking too many questions' An employee of the Merage Jewish Community Center of Orange County said the caller had a ""male voice. Very robotic."" The receptionist at the center in Irvine, California, followed center procedures, the employee said. At one point, the caller said to the receptionist, ""You're asking too many questions,"" said the employee. ""I'm sorry,"" the receptionist said, and continued to ask more questions. The receptionist wanted to know where the bomb was, the employee said. ""The answers provided were nothing specific. Nothing to tell us they knew anything about our location,"" the employee said. In Los Angeles, Brian Greene, executive director of the Westside Jewish Community Center, said the caller's voice was ""mechanical"" and distorted. It sounded like a woman but it may not have been, he said. The caller said there was a bomb in the building and they had an hour to get out. The caller was asked the location of the bomb, Greene said. ""The caller said that's not important, just get everyone out of the building,"" Greene said. Maryland: Jewish souls would be destroyed The automated bomb threat that came into the Charles E. Smith Jewish Day School in Rockville, Maryland, said Jewish souls would be destroyed, according to Laurie Ehrlich, the school's director of marketing and communications. Ehrlich said the front-desk receptionist who answered the call managed to get a callback number, which she gave to police. The chief marketing officer of another Jewish community center in Maryland said the caller on January 9 sounded like an older woman but it could have been automated. The person at the center tried to engage the caller but they didn't respond and hung up. Michigan: 'There is a bomb in one of the children's backpacks' The person who called in a bomb threat on Monday to the Hebrew Day School of Ann Arbor in Ann Arbor, Michigan, sounded like a man who had disguised his voice, said David Shtulman, executive director of the Jewish Federation of Greater Ann Arbor. ""There is a bomb in one of the children's backpacks and it's going to detonate shortly,"" is what the caller said, according to Shtulman, who spoke to police and the person who took the call. There were no demands issued and there was no conversation with the caller, Shtulman said. ""This person was off the phone pretty quickly."" The school also received a threatening call in May 2016. ""That was much more frightening because it hadn't happened anywhere else,"" Shtulman said. The caller then said his brother had put a bomb in a backpack. He hung up initially but stayed on the line when the school called him back. ""Why are you arguing with me when you should be getting out!"" the caller said, according to Shtulman. New York: 'They evaded any questions' There was a bomb in the lobby, claimed the person who made the call to the Jewish Community Center of Greater Buffalo in Buffalo, New York. ""They evaded any questions we had for them and it was clear to us they didn't know our building specifically,"" said Rick Zakalik, the center's executive director. He said the person who answered the phone referred to the guidelines posted next to the phone, and they ""responded perfectly."" Zakalik addressed parents at a Tuesday night meeting. ""This is like duck and cover from nuclear bombs in elementary school that you all experienced,"" he told them. Bomb threats are not uncommon, and it's rare for them to be genuine, he said. ""For Jewish institutions, being a target is nothing new,"" Zakalik said. ""We have been a target for thousands of years."" Connecticut: Additional training The Mandell Jewish Community Center of Greater Hartford refreshed its training to deal with bomb threats in case the center was targeted, said David Jacobs, the center's executive director. The center, in West Hartford, Connecticut, received it's one and only bomb threat the day after training, he said. Arizona: Kept the caller on the phone The caller's voice was hard to make out, said Todd Rockoff, chief executive officer of the Tucson Jewish Community Center. Based on what he knows it ""probably sounded more muffled than clear,"" Rockoff said. ""The person that answered the phone was able to ask some questions that kept the caller on the phone,"" he said. Delaware: 'Strong in the face of this adversity' The caller threatened the Siegel Jewish Community Center with a bomb, said Executive Director Ivy Harlev, who declined to give additional details. His community, in Wilmington, Delaware, refuses to let the threat cripple them, Harlev said. ""I can tell you that my community has been incredibly strong in the face of this adversity,"" he said. ""This affects more than just the Jewish community.""", -1781,2017/3/2,http://www.cnn.com/2017/03/01/politics/pentagon-approval-raids-white-house/index.html,Pentagon looks at authorizing some raids without White House approval,"Washington (CNN)Military commanders are discussing speeding up the authorization of counterterrorism missions by allowing the Pentagon or even field commanders to approve some of them rather than the White House, US defense officials told CNN.","As CNN first reported Tuesday, the military is seeking to increase US intelligence-gathering raids in Yemen similar to one undertaken in the first week of the Trump presidency. It's not yet clear if this adjustment in the approval process could be used for those operations. ""It is a philosophy more than a change in policy,"" White House Press Secretary Sean Spicer said Wednesday of the discussions about the authorization process. President Donald Trump ""believes these are the experts in this field."" At the same time, Spicer said that ""the protocol is not changing in terms of what has to be signed off,"" and that ""there are certain decisions that have to be signed off by the President,"" so that the degree of change might not end up being that sizeable. A senior defense official emphasized that this does not mean that the President would not be briefed. Defense Secretary James Mattis and senior military commanders could brief the President at any time and seek his specific approval. Since these are fundamentally judgement questions, the senior defense official said, the goal is to see if there could be a more efficient approval process for time-sensitive missions.- Military analysts warned, though, that pushing decision-making authority below the President for high-risk missions could create problems. ""The risk in greenlighting missions at a lower level than the President is one where the President assumes all the responsibility if something goes wrong, and he would really find it difficult to do that if in fact he was not part of the approval process,"" retired Col. Cedric Leighton said.-""That element of decentralized control -- which the military loves in many cases, and in theory that the President loves -- but the problem that you have with that is, if something goes terribly wrong, you are going to end up with a lot of political fallout for something you didn't really approve or understand the minute details of."" He continued, ""From a political standpoint it may be good for somebody who wants to wash their hands of it or something, but from a military standpoint it really abrogates the authority that the commander in chief has inherent in his position."" Leighton said that authority can be particularly essential for difficult operations: ""What you really need is a commander in chief who is involved in the approval process, especially for politically sensitive missions like Yemen. Under the Obama administration, the White House retained significant control over authorizing high-risk missions where significant opposition forces were expected; new military techniques were being used; or highly specialized units like SEAL Team Six or Delta Force might be employed. Several defense officials told CNN that President Barack Obama had been cautious about these types of missions, and wanted in many cases to be able to review and approve them.", -1782,2017/3/2,http://www.huffingtonpost.com/2017/03/01/pwcs-other-debacle-a-tax-boondoggle-that-has-ballooned-out-of-control_n_15102510.html,PwC's Other Debacle: A Tax Boondoggle That Has Ballooned Out Of Control,"If I mention the Oscars, will people read this long story on tax policy run amok? Let's find out.","WASHINGTON ""?On Sunday night at the Oscars, PricewaterhouseCoopers had one job: hand the correct card to presenters who would go on stage and announce the winner of the category. When it comes to the line of work it is most known for, the company's objective is equally simple: make sure the client pays the lowest tax bill possible. On that front, PwC tends to be a bit better at its job. But if House Speaker Paul Ryan (R-Wis.) and the Trump administration have anything to say about it, one of the more ludicrous ways the company meets its numbers will no longer be available. With the help of PwC, one of the Big Four accounting firms, a growing number of U.S. corporations have taken advantage of a tax break called the ""domestic production deduction.""?The obscure provision is meant to encourage U.S. manufacturing, except for the most part these companies aren""t actually manufacturing anything. They are instead relying on a poorly worded ""?or brilliantly worded, depending on your perspective ""?2004 law, known as Section 199, that created what is now an out-of-control tax break. It was written by a PwC partner. Companies are not required to disclose if they have used a particular tax break except under rare circumstances, but the IRS, in some of its public filings and court documents, has revealed the general nature of some of those claims. Others have been included in public documents when the tax break has led to a big enough windfall that investors need to know about it, and still others have emerged in unrelated court filings. The picture that emerges from interviews and a review of the paper trail is one of a loophole that has grown so large that it is barely recognizable as anything other than a giveaway to companies that can afford the sophisticated tax prep that companies like PwC can provide. - The IRS does not name the company when it divulges information on use of Section 199, but rather describes them in a way that leaves only a few suspects. Among examples The Huffington Post's investigation found in IRS documents:- The Treasury Department estimates that claims for the credit will cost the government $178.7 billion ""?that's billion with a B, as Ronald Reagan would say ""?over the next decade. Ryan's new tax reform proposal would upend the entire corporate tax system and replace it with an import tax meant to boost manufacturing. The Trump administration has signaled tentative support, but the Koch brothers and other major importers are balking, and it is considered endangered in the Senate. But if it becomes law, the biggest loser may be George Manousos. *** If there's one person to blame for the current 199 predicament, it's Manousos, a partner at PwC. By all accounts, Manousos is not a particularly bad person. If he were living in a different kind of republic, he would likely be nearing the midpoint of a satisfying career in the field of tax preparation ""?compensated comfortably, with the fulfillment that comes from a good job done well, and looking forward to an enriching retirement: books, golf, cooking classes. That's not our republic. Instead, Manousos has used the combined power of his public-private career to help blow a gaping hole in the side of the U.S. Treasury, out of which global corporations have looted hundreds of billions of dollars. For that, he has become a very rich man. Manousos was a mid-level tax specialist for PricewaterhouseCoopers before joining the George W. Bush administration's Treasury Department in 2002 in the Office of Tax Policy. When Congress passed the the American Jobs Creation Act of 2004, it created a new tax credit for manufacturing; Manousos was the Treasury official tasked with helping the Republican Congress author the new section of the tax code. ""I was the Treasury representative then ""?was working with Congress""?Joint Committee in enacting the provision, helping them, guiding them through it,""?he told HuffPost in an interview. He also wrote the regulations that implement the law. ""And then I led the government team on the Treasury side on the underlying regulations that were subsequently issued under Section 199.""?The code allows a business conducting ""�qualified production activities""?to claim a deduction equal to 9 percent of the income related to those activities. The claim effectively lowers a business""?tax rate on that income by 3 percent. But the legislative language and subsequent IRS regulations were worded so broadly that businesses have used it to claim lots of things no reasonable person would consider production, and allows the companies to pad out their estimates of how much income was actually related to that activity. A company that built a website might try to claim that almost all its revenue is related to that website, for instance. His job finished, Manousos returned to PwC in 2006, this time as a partner. Today, he is held out as the leading private authority on Section 199, helping make sure businesses understand how to use it. Read any trade publication story about the fight over 199 and you'r likely to come across Manousos advocating for its broad use. ""I had a heavy hand in writing these rules and I want to make sure that, at least, that people understand what was intended by them,""?he says. He recognizes that he gives his clients a heavy advantage over the cash-strapped IRS. ""When you have taxpayers that have advisers that have the latest and greatest thinking, and the IRS is often playing a little bit of catch-up, it can create some ambiguity about what is the right answer,""?Manousos says. That ambiguity has made Manousos and his corporate clients an awful lot of money. And when Manousos lobbies the IRS, he makes sure to remind them that he wrote the law and the underlying regulations. ""I meet with the government, all levels, regularly when it comes to 199,""?he says. ""I work regularly with them both in advising clients, as well as always wearing a former government hat.""?Publicly traded companies are required to report when they file a tax claim that the IRS might contest, so that investors aren""t in for a shock when the company gets audited and smacked with a back-tax bill. According to the most recent IRS statistics, the manufacturing tax credit is the third most often claimed controversial tax break. (The top one is a credit for ""research,""?another area ripe for abuse.) When Visa used the deduction in 2014, it ended up boosting profits by $191 million. According to Visa's fourth-quarter 2015 earnings statement, it saved them $239 million ""?enough to fund the average food stamp payments for more than 100,000 Americans for a full year. The goal of tax credits such as 199 is to boost the type of activity that society wants more of. In this case, the government wants more domestic manufacturing and the high-wage jobs that come with it. But the performance of the 199 credit calls that logic into question. In fact, we have a real-world answer to the question. Visa spokeswoman Connie Kim told HuffPost the $191 million credit covers a period of more than one year. In other words, Visa had already built much of the software it was claiming the credit for in previous years. It claimed the credit after the fact, meaning that the tax policy had nothing to do with inspiring Visa to do it. The activity had already happened. Instead, somebody in the company's accounting department ""?or, more likely, at its Big Four tax preparer ""?simply decided to start claiming the credit long after the basic business decisions had been made. In 2013, the IRS tried to go after a gift-basket company for its use of the credit, in the case U.S. v. Dean. District Court Judge James Selna ruled that eligibility for the credit should be thought of broadly ""?that by arranging fruit in a basket, the company had transformed it into a new product. Pulitzer Prize winner David Cay Johnston, writing in Tax Notes Today, mocked the decision: ""Taybe as a columnist I can claim the section 199 deduction,""?he wrote. ""After all, I just ""Transformed""?the opinion of [Judge] Selna into a column, which, to cite the judge, is ""�a new product with a different demand.""?The Treasury Department has tried to curb its use. In a March 16, 2015, memo, the department said that activities such as cutting keys and ""�storing agricultural products in a controlled environment""?""?i.e., putting stuff in a fridge ""?should not qualify for the credit. But the directive lacks the force of law, and is unlikely to curb the enthusiasm for the deduction. The Treasury is now in the process of writing a new rule curbing its use for software development, and hordes of companies are streaming through the building with regulatory crowbars, working to make the loophole as wide as possible. Financial services companies that produce cloud-run automation services say they deserve the tax credit too. And those programs don""t need to be built by American engineers ""?the code says the credit can be claimed as long as the products are ""�significantly""?produced by American workers, as flexible a term as you can find. It sets up the ultimate Orwellian irony: The American Jobs Creation Act of 2004 is being used to pay for engineers ""?engineers who need not even be in the U.S. ""?to build computer programs that are used to automate and eliminate American jobs. *** Approximately $83 billion of the ""�manufacturing""?credits are being claimed for activities that would not count as manufacturing under any reasonable definition of the term, according to an estimate that the Joint Committee on Taxation provided to Sen. Sherrod Brown (D-Ohio) in 2013. To put that figure in context, Congress spent months wrangling over how to pay for $7.4 billion in long-term benefits for 9/11 first responders, and later spent even more time looking for $6.3 billion to pay for a major medical research and opioid epidemic bill. They ended up raiding Medicare for the funds. To put it a different way, eliminating the deduction would make the government so much money that it could lower corporate tax rates across the board by 1.5 points, according to reliable estimates. That might not sound like much, but it would be an enormous tax cut. Eliminating the deduction would also free the IRS from the costly and often futile process of trying to answer such legal questions as whether a sports team ""�manufactures""?entertainment. The IRS's advisory opinion on a-recent sports team case required page after page of legalese and analysis, which must have cost the agency a fortune in staff hours. Audit rates have fallen to record lows, with just 0.84 percent of filers getting that dreaded letter in 2014. Unsurprisingly, collections from audits dropped in half, down to $7.32 billion; the average from 2005 to 2010 had been $14.7 billion. The IRS has the power to narrow the definitions of what qualifies for tax credits such as this one. But the IRS has been forced to focus mostly on the fringes. For example, the agency has long held that software is eligible for the deduction, so long as it is available for purchase on a disk or via direct download. But software designers who develop apps, streaming services or online portals have argued that this puts them at a disadvantage. The agency is currently working on a rule to determine what to do about the software problem in particular. For the most part, though, IRS efforts to rein in the use of 199 ""?going after fruit basket makers, for instance ""?have been beaten back by the courts, which has cost the government time and money while emboldening other companies. All of that time in court, and time spent negotiating over new interpretations with Manouses and the powerhouse accounting firms, is time the agency is not spending auditing the filings of the fantastically wealthy filers. Manouses sympathizes with the IRS. ""�The government does the best with the resources that they'r given,""?he said. ""We all read about how they continue to have budget cuts handed to them and they have to adapt to that.""?But as far as he is concerned, the deduction is working just fine: ""�From my perspective, the incentive works as it was designed to work, in large part.""?Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we""�ll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1783,2017/3/2,http://www.huffingtonpost.com/2017/02/28/barbie-diversity_n_15102418.html,Barbie's Surprising Comeback Has Everything To Do With Race,How diversity saved Mattel's iconic doll.,"Totally Hair Barbie, which debuted in 1990, is the best-selling Barbie doll of all time. She looks exactly like you think: cascades of crimped blonde hair hang to high-heel ready feet, flowing over her stilt legs and vanishing waistline. Meanwhile in 2016 the best-selling-doll in Barbie's Fashionista line was a brunette Latina with a ""Curvy,""?build and brown eyes, Mattel told The Huffington Post. She looks like this: Though the Fashionista line is just one piece of the Barbie product universe ""?other dolls still look as blonde as ever ""?the success of this doll is a clear victory for the toymaking giant. For the past two years, facing rapidly declining Barbie sales, Mattel pushed to diversify its iconic doll away from its classic look. The goal: win back parents turned off by the impossible and widely-criticized beauty standard (skinny, white) Barbie set for girls since the brand debuted in 1959. ""the brand was losing relevance,""?said Lisa McKnight, a senior vice president at Mattel who manages the Barbie line. ""We knew we had to change the conversation.""?It's worked. Barbie sales rose 7 percent to $971.8 million in 2016, putting an end to four consecutive years of steep declines.- The turnaround comes two years after Mattel unveiled the revamped Fashionista line, with Barbies in a range of skin colors and hair colors plus flat feet (previously the feet were shaped like high heels) and less than 12 months after the company introduced ""body diversity,""?selling curvy, tall and petite Barbies, kicking off a major conversation in a culture that's long been overly obsessed with a doll. This year the company is introducing an even more diverse range of Barbies, including a tall African-American doll with an Afro, a red-headed petite Barbie with a girl power T-shirt, and a mini-skirted blue-haired Barbie. In all there will be 10 skin tones, 4 body types and 15 hairstyles for Barbie. Mattel's also worked to diversify its American Girls line, last year rolling out a doll with a civil-rights background named Melody Ellison.- Scroll down to see all the new Barbie dolls. Little girls are fickle, for sure, but Barbie's fall from grace and return to coolness was about parents""?complicated feelings about the doll. Winning adults back was key to her resurgence. McKnight says that millennial parents are more particular about what kinds of toys their kids play with. They'r bigger ""gatekeepers,""?she said. ""they want to not just buy, they want to buy-in,""?McKnight said. Barbie's re-brand included several commercials aimed not at girls, but at their parents: like a recent spot featured during the Super Bowl that showed fathers playing with their daughters and dolls. Mattel's rebranding efforts are clearly paying off. ""I have definitely bought more Barbies for my daughter since these new ones came out,""?Lynnette Oursier, a mother in Oak Creek, Wisconsin, told The Huffington Post via Facebook message. She shared a photo of five of her 7-year-old's Barbie dolls in a range of skin tones: ""For me it was less about how my daughter would reflect on herself in relation to Barbie (my daughter already is caucasian, blond hair, blue eyes). It was about how she will come to view others.""?Sixty-six percent of Americans surveyed by HuffPost/YouGov said they were aware that Mattel is selling a more diverse line of dolls. And an overwhelming majority were on board with the development: Only 8 percent said the diverse dolls comprised a negative change. Perversely enough, diversifying the brand has helped keep the classic version of Barbie alive: Little girls are still playing with the wasp-waisted original version. And they'r watching her on-screen, as well. A 2014 Netflix show called Life In the Dreamhouse, centered around a very blonde doll with many materialistic concerns is popular with girls of a certain age. (A representative from Mattel said it's giving that show a makeover to bring it more in line with Barbie's revamped image.) And you can still see Barbie's look in the style of so many white women, the Taylor Swifts and Kelly Ripas of the world. You see it, in particular, in the conservative women that surround and champion President Donald Trump: Ivanka Trump, her sister Tiffany, Kellyanne Conway, Ann Coulter, Tomi Lahren all have that flash of white teeth and impossibly blonde hair that girls learn at a very young age is a marker of true (white) ""beauty.""?In these circles Barbie still represents the ideal white woman. That's always been the heart of the Barbie critique: The doll offered girls a single, impossible beauty standard (literally impossible, as some analysis has showed) and women kill themselves trying to meet it. It's hard to name a children's toy that engenders more passion and feeling in adults than a Barbie doll. Over the years, she's been the subject of myriad academic papers and subversive art pieces.-And, though sales are off from the highs of the previous decade, Barbie still far-and-away has the biggest share of the doll market. Of course, a doll isn""t the singular cause of anyone's eating disorder or obsession with juice cleanses or extremely high hair salon bill. Barbie is part of a larger system that enforces a message about what women are supposed to look like, according to Marianne Cooper, a sociologist at the Clayman Institute for Gender research at Stanford University. ""not every girl who plays with Barbie is going to come out thinking she's too fat,""?said Cooper, who's best known for contributing the research to Facebook executive Sheryl Sandberg's best-seller Lean In. ""But it's one cog in a massive cultural system.""?And the message of the system is that a woman's value comes down to her looks. Cooper was positive about the recent changes to Barbie. ""the hope is it expands what girls""?possibilities are,""?she said. But she lamented the fact that we are still talking about the way Barbie looks. ""We can expand the definition of what's beautiful but we'r still not moving far from the general point,""?Cooper said. Mattel says that Barbie is hardly just about looks, pointing to new dolls that focus on what women do: A game developer Barbie-debuted last year that was designed with input from female engineers. There are role model Barbies that look like African-American ballerina Misty Copeland and ""selma""?director Ava DuVernay. Besides, little girls are just playing. ""Girls don""t see the line like parents do,""?McKnight said. She's inadvertently hit on the big question: What will these girls think about beauty when they grow up? Mattel can change Barbie, but it can""t shift a whole culture. What happens next is bigger than a toy doll.- How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1784,2017/3/2,http://www.huffingtonpost.com/2017/03/01/former-epa-heads-blast-pruitt_n_15096362.html,Former EPA Head Says White House Budget An 'Attack' On Agency And Science,"The proposed cuts would be ""devastating for the agency's ability to protect public health,""?Gina McCarthy told MSNBC.","WASHINGTON ""?With oil ally Scott Pruitt now at the helm-of the Environmental Protection Agency and a White House looking to-axe one-quarter of the agency's funding, two former EPA administrators felt no need to equivocate. ""This is actually going to be devastating for the agency's ability to protect public health,""ina McCarthy, who served as EPA chief under former President Barack Obama, told MSNBC. In a joint interview Wednesday with MSNBC's Greta van Susteren, McCarthy and-Christine Todd Whitman, the former New Jersey governor who later served as EPA chief under President George W. Bush, warned that the proposed EPA cuts go far deeper than reeling in burdensome regulations.- McCarthy called the Trump administration's budget proposal ""An attack on the agency""?that would reduce staffing levels to where they were 40 years ago. ""I understood that this administration was likely not supportive of climate initiatives, but this is going to the heart of our air and water protections. This is going to the heart of how EPA protects the public health of American families,""?she said. As The Huffington Post previously reported, the White House is looking to cut the EPA's budget by 25 percent, as well as eliminate 1 in 5 agency employees.-And The Washington Post reports that the EPA's scientific research arm, the Office of Research and Development, could see up to a 42 percent cut.-Last year, the agency's budget totaled nearly $8.2 billion. ""We'r talking about 42 percent of our scientists potentially losing their jobs this year,""?McCarthy added. ""I mean, this is not just disagreeing with the science and wanting to deny it. This is telling half of the scientists that they'r no longer welcome in the premiere environmental science agency in the world, the Environmental Protection Agency.""Asked if she thought Pruitt would do the right thing for EPA, Whitman said she was ""skeptical.""?""I hope fervently that the kind of message that the administrator gave the other day to the people who work at the agency, the career staff, where it was a pretty balanced approach, that's going to be more the tone we'r going to see ""?more respect for the agency and its mission, what it does,""?she said. ""the agency is about protecting human health and the environment. And we don""t want to lose that in an effort to ensure that the regulations in place are the ones the administration wants.""?What Whitman and McCarthy had to say Wednesday came as little surprise. Both have previously spoken out against what is unfolding at EPA.- ""�[Pruitt] obviously doesn""t care much for the agency or any of the regulations it has promulgated,""?Whitman said of the former Oklahoma attorney general in December. ""He doesn""t believe in climate change; he wants to roll back the Clean Power Plan.""?In a statement earlier Wednesday to The Washington Post, McCarthy blasted the White House's budget proposal, saying it ""ignores""?not only-""the need to invest in science and to implement the law,""?but also ""the lessons of history that led to EPA's creation 46 years ago.""?A gutting of the EPA will almost certainly get the endorsement of the agency's top boss; Pruitt sued the EPA 13 times as Oklahoma's attorney general. Over the weekend, Pruitt said those calling for the abolishment of the EPA were ""Justified""?in their beliefs. He credited the agency's actions under the Obama administration for such outrage. ""I think people across this country look at the EPA much as they look at the IRS,""?Pruitt said during his appearance at the Conservative Political Action Conference in Maryland.-""there are going to be some big steps taken to address some of those regulations.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1785,2017/3/2,http://www.huffingtonpost.com/2017/03/01/marissa-mayer-bonus-hacking_n_15095150.html,Yahoo's Marissa Mayer Loses Bonus For Handling Of 'Security Incident',About 500 million Yahoo users' accounts may have been compromised in the 2014 hacking.,"Yahoo CEO Marissa Mayer will lose her bonus and equity grants this year because of her handling of a 2014 hacking incident that may have compromised 500 million user accounts.- Mayer wrote in a Tumblr post on Wednesday that she would give up the compensation because the security breach occurred on her watch. ""�[S]ince this incident happened during my tenure, I have agreed to forgo my annual bonus and my annual equity grant this year and have expressed my desire that my bonus be redistributed to our company's hardworking employees, who contributed so much to Yahoo's success in 2016,""ayer wrote. The bonus alone could have been worth $2 million, double her annual base pay, according to Business Insider, which reported Mayer's 2012 contract entitles her to an annual performance-based equity award of no less than $12 million. The huge hack is separate from a 2013 incident that affected 1 billion Yahoo accounts. A committee formed by Yahoo's board concluded that a company legal team investigating the hack in 2014 should have done more, the company said in its annual report-filed with the Securities and Exchange Commission-on Wednesday. Yahoo said general counsel Ronald Bell will resign and won""t be paid severance. The committee found that company investigators ""Lad sufficient information to warrant substantial further inquiry in 2014, and they did not sufficiently pursue it,""?Yahoo said. ""As a result, the 2014 Security Incident was not properly investigated and analyzed at the time, and the Company was not adequately advised with respect to the legal and business risks.""Verizon is buying portions of Yahoo's core business. The sale price was lowered by $350 million to $4.48 billion because of the hacks. The deal is expected to close by the end of June. Verizon also owns AOL, which includes The Huffington Post.- Verizon and Yahoo agreed to evenly split the ""�cash liabilities related to certain data security incidents and other data breaches,""?Yahoo's SEC filing said.- Mayer said she learned of the 2014 hack in September. She described it as a ""state-sponsored attack""?that initially targeted 26 users. Since learning of the attack's far-reaching scope, Mayer said she's worked with other executives to inform ""users, regulators and government agencies""?about the extent of the invasion. The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1786,2017/3/2,http://www.huffingtonpost.com/2017/02/28/house-republicans-vote-to-nullify-one-of-obamas-workplace-safety-rules_n_15092456.html,House Republicans Vote To Nullify Another One Of Obama's Workplace Safety Rules,"This time, they've gone after a rule about recording workplace injuries.","WASHINGTON ""?House Republicans voted Wednesday to roll back a federal rule that requires employers to keep better record of workplace injuries. Lawmakers availed themselves of the same arcane tool they're used to undo other federal regulations in recent weeks: the Congressional Review Act, or CRA. The 1996 law enables Congress to dismantle a regulation within 60 days of it being finalized, while also forbidding agencies from rolling out a similar regulation in the future. The GOP-controlled House approved the measure, known as a ""resolution of disapproval,""?in a mostly party-line vote. It now heads to the Senate, which is also led by a Republican majority. Republicans have used the CRA to target more than a dozen regulations in the past six weeks, needing only a simple majority in the Senate to pass the resolutions. It would be a futile exercise if it weren""t for President Donald Trump, as it's unlikely that a Republican president would veto the measures if Congress passed them.- The Obama administration issued the new record-keeping rule in December through the Occupational Safety and Health Administration. The rule states that employers have an ongoing obligation to maintain accurate records of injuries and illnesses, and that OSHA has up to five years after they happen to cite employers for failing to keep track of them. OSHA said it was issuing the rule as a ""Clarification,""?after a 2012 appeals court ruled that the statute of limitations was just six months. It may not sound like a big deal, but lasting and accurate records are crucial to OSHA's mission: They allow the agency to pinpoint recurring hazards at dangerous employers and industries, and they help officials figure out where to target their limited resources.- Record-keeping rules need to be strong because employers have an incentive to fudge them, Jordan Barab, a former OSHA official in the Obama administration, wrote last week in a blog post. After all, higher injury rates can translate into higher workers""?compensation costs. ""�[W]ithout being able to enforce any violation within the five-year period, enforcement of recordkeeping accuracy would be almost impossible,""?Barab wrote. ""the losers would be the workers because there would no longer be any way for OSHA to force employers to keep accurate records that could identify hazardous conditions.""?-- House Republicans referred to the new rule as a burden on business, even though OSHA said it did not include any new reporting requirements for employers. In a statement Wednesday, House Majority Leader Kevin McCarthy (R-Calif.) called the rule a-""power grab""?by OSHA. ""nothing in the statute suggests Congress sought to endow this bureaucracy with the power to hold a discrete record-making violation over employers for years, and then cite the employer long after the opportunity to actually improve the workplace has passed,""?McCarthy said. Regulations that were introduced during the Obama era have come under attack since Trump assumed office. Earlier this month, House Republicans used the CRA in an attempt to repeal a Labor Department regulation-that would bar companies from getting federal contracts if they had a history of wage theft and workplace hazards. They successfully passed a resolution of disapproval that still needs to be voted on in the Senate. Other agencies have been hit by the CRA, too. Republicans have rolled back a Social Security Administration rule regulating gun purchases, as well as a Securities and Exchange Commission rule that ramped up disclosures for oil and gas companies. The full tally of regulations repealed through the CRA is now 13,-McCarthy said. Because such measures can be passed with an up-or-down vote, Senate Democrats have been helpless to stop them through a filibuster. ""the most interesting and troubling thing about this is that it may very well be the ultimate block on modernizing workplace standards,""?Celine McNicholas, labor counsel for the Economic Policy Institute, recently told The Huffington Post. Until this year, the only time the CRA had been successfully used was in 2001, when Republicans blocked a workplace safety rule put forth in the waning days of the Clinton administration. That rule set new ergonomic standards in an effort to combat carpal tunnel disease and other musculoskeletal disorders among workers. OSHA has not introduced a similar rule since then. How will Trump's first 100 days impact you? Sign up for our weekly newsletter and get breaking updates on Trump's presidency by messaging us here. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1787,2017/3/1,http://www.huffingtonpost.com/2017/03/01/taser-signal-police-body-camera_n_15091950.html,New Police Body Camera Device Starts Recording When Cops Draw Guns,"The technology could ensure officers have fewer opportunities to make mistakes ""?and fewer excuses to violate policy.","Taser International released a new product this week that will automatically activate nearby police body cameras when an officer draws a gun. A device called Signal Sidearm from Taser division Axon, which dominates the market for police body cameras, is a sensor designed to attach to most standard gun holsters. Whenever an officer's firearm is removed, the device starts the officer's body camera, as well as any other camera within 30 feet. Most Axon cameras already feature a 30-second buffer, which saves footage preceding the equipment's activation. ""Gun drawn, camera on,""?reads the tagline for the product, which goes on sale later this year. As police body cameras become more commonplace, devices like this could reduce the potential for user error. Although body cameras are supposed to capture an objective record of police encounters, they can only do that when officers remember to turn them on. This can be especially difficult in tense or rapidly developing situations. ""When law enforcement officers must draw a weapon, the last thing they should worry about is their technology,""?Rick Smith, CEO and co-founder of Taser, said in a statement. Police body cameras have emerged as a rare point of agreement between law enforcement and activists pushing for transparency and accountability amid high-profile police killings of civilians, who disproportionately are black men. But public confidence in the devices has been tested by failures to record some controversial confrontations, including fatal-shootings. Questions swirled last year when police in Charlotte, North Carolina, shot and killed Keith Lamont Scott, a 43-year-old black man. An officer who responded was equipped with a body camera, though he reportedly didn""t switch it on until after shots were fired, leaving a critical gap. Most police departments still have weak or-nonexistent disciplinary rules-for officers who fail to abide by body camera policies, which may make it harder to ensure that the devices are used correctly. Officers in many departments are still getting used to cameras, however, and some lapses may simply be legitimate mistakes or accidents. But if law enforcement doesn""t show commitment to gathering the clearest possible documentation of an incident, body cameras won""t serve their purpose, civil rights groups say. They believe it's fair to be skeptical in cases where officers have failed to properly activate their video equipment. Last year, the ACLU and University of California, Berkeley, School of Law published a report encouraging state courts to instruct juries to disregard testimony given by an officer deemed to have deliberately attempted to conceal the truth by not recording an incident, or by tampering with footage. If the jury were to conclude that an officer's failure to record was unreasonable or negligent ""?but not malicious -the court would instruct the jury to devalue that officer's testimony and infer that the video would have been beneficial to the defendant. It's a roundabout legal solution for an emerging problem. If technology can help ensure officers have fewer opportunities to make mistakes-""?and fewer excuses to violate policy-""?police body cameras could become a more reliable tool for fostering public trust. For now, Signal Sidearm will only help with incidents that involve officers drawing a weapon. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1788,2017/3/1,http://www.huffingtonpost.com/2017/03/01/snap-tops-expectations-in-pricing-of-long-awaited-ipo_n_15091410.html,Snap Tops Expectations In Pricing Of Long-Awaited IPO,Snap Inc holds the richest valuation in a U.S. tech IPO since Facebook in 2012.,"Snap Inc priced its initial public offering above its target range on Wednesday, raising $3.4 billion as investors set aside concerns about its lack of profits and voting rights for a piece of the hottest tech IPO in years. At $17 a share, the parent of popular disappearing-messaging app Snapchat has a market valuation of roughly $24 billion, more than double the size of rival Twitter and the richest valuation in a U.S. tech IPO since Facebook in 2012. The company had targeted a valuation of between $19.5 billion and $22.3 billion. The book was more than 10 times oversubscribed and Snap could have priced the IPO at as much as $19 a share, but the company wanted to focus on securing mutual funds as long-term investors rather than hedge funds looking to quickly sell, the source said. The share sale was the first test of investor appetite for a social-media app that is beloved by teenagers and 20-somethings who use it to apply bunny faces and vomiting rainbows onto selfies but faces a challenge in converting ""Cool""?into cash. Despite a nearly 7-fold increase in revenue, the Los Angeles-based company's net loss jumped 38 percent last year. It faces intense competition from larger rivals such as Facebook as well as decelerating user growth. Snap priced 200 million shares on Wednesday night at $17, above its stated range of $14 to $16 dollars a share. The sale had the advantage of favorable timing. The market for technology IPOs hit the brakes in 2016, marking the slowest year for such launches since 2008, and investors are keen for fresh opportunities. The launch could encourage debuts by other so-called unicorns, tech start-ups with private valuations of $1 billion or more. Investors bought the shares despite them having no voting power, an unprecedented feature for an IPO despite years of rising concerns about corporate governance from fund managers looking to gain influence over executives. Snap is set to begin trading on Thursday on the New York Stock Exchange under the symbolSNAP. OVERNIGHT MILLIONAIRES Although Snap is going public at a much earlier stage in its development than Twitter or Facebook, the 5-year-old company is valuing itself at nearly 60 times revenue, more than double the 27 times revenue Facebook fetched when it went public in 2012. To justify its suggested valuation and fend off concerns about slowing user growth, Snap has emphasized how important Snapchat is to its users, how long they spend on the app and the revenue potential of the emerging trend for young people to communicate with video rather than text. The company has been vague on its plans to lead and monetize image-driven conversations, but has suggested investors put faith in the vision of its co-founder Evan Spiegel, whom it introduced in its investor roadshow as a ""Ance-in-a-generation founder.""?The 26-year-old will walk away with a roughly 17 percent stake valued at $4.05 billion Spiegel and co-founder Bobby Murphy will each be selling 16 million shares in the IPO that earned them $272 million apiece. Dozens of other Snap investors could become overnight millionaires. Spiegel and Murphy will maintain tight control over Snap's stock through a unique three-share class structure. The structure will give Spiegel and Murphy the right of 10 votes for every share. Existing investors will have one vote for each of their shares, while new investors will have no voting rights. The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1789,2017/3/1,http://www.huffingtonpost.com/2017/02/24/poor-food-cost-nutrition_n_15091090.html,Why Some People In America's Salad Bowl Are Eating Junk Food,"Even in California's bountiful Central Valley, prices can put healthy fruit and vegetables out of reach.","The nation's salad bowl has a surprising and growing problem. California's Central Valley produces almost one-third of the nation's domestically grown fresh produce. But many of the region's residents don""t eat much fruit or vegetables ""?a fact reflected in the region's heightened rates of obesity, diabetes, heart disease and other serious health concerns.- This problem, of course, isn""t unique to the Central Valley ""?few Americans today-eat as much fruit and vegetables as we should. But the stark contrast between the food many of the farm-heavy region's residents are harvesting in the fields and what they'r eating in their homes prompted researchers at the University of California, Merced, to ask people what motivates their food purchases. The answers, UC Merced public health communication professor Susana Ramirez told HuffPost, were surprising.- ""the ""�where I can get it""?concern, at least in this community, is not as big of a concern as ""Gow can I pay for it,""?Ramirez said. Researchers began the study thinking that Central Valley residents""?limited consumption of healthy food was likely because a significant portion of the population live in ""Hood deserts""?that are at least 10 miles from a large grocery store. But researchers soon discovered that access to healthy foods might not be the problem ""?at least not for the 79 Merced County residents they surveyed.-The residents ""?who, like much of the Central Valley, are predominantly Latino and mostly lower-income ""?overwhelmingly said that they had ""Ample""?access to fruits and vegetables in their neighborhoods, even if there were no traditional grocery stores. Instead of supermarkets, the residents said fresh fruits and vegetables were available from farmer stands, farmers markets, mobile vendors and as gifts from neighbors. ""If you live in that community, you learn to adapt,""amirez said. But ingenuity can only go so far in the face of crippling poverty. The latest census data show-25 percent of Merced County residents living below the poverty line. According to the study, 65 percent of participants said fruits and vegetables were too expensive for them, even though more than 70 percent agreed that they had access to a ""large selection""?of healthy foods. The findings were in line with responses to the 2014 state health interview survey, the study noted.- ""they'r saying that the [fresh, healthy]-food is there, but they can""t buy it ""?though they would like to buy it,""?Ramirez said. ""the problem in this particular community is the tremendous level of unemployment and poverty ""?and these factors can""t be compensated for in other ways.""?Of course, many staple fruits and vegetables aren""t particularly expensive. The U.S. Department of Agriculture's thrifty food plan and other resources outline how affordable foods can be part of a balanced diet. But the cost for some families goes beyond the sticker price, Ramirez explained. Members of many lower-income families work multiple jobs and don""t have the time to shop without a car, then prepare foods, for example. And fresh foods spoil or might be shunned by children, risking wasting household resources. These factors can push people toward convenience foods like packaged and processed grocery staples and fast-food items to keep their families fed. ""If I can go to McDonald's and I can get a chicken sandwich for $1 and a salad for $6, I'm going to have to think twice about""?choosing the healthy option, one respondent told researchers.- The study suggests that public health and food-access advocates focused on expanding supermarkets to so-called food deserts may be missing the point.- While some research-links the opening of a supermarket in a former food desert with healthier eating habits, other recent research contradicts that finding, suggesting a new supermarket had little impact on community members""?food purchases.- Ramirez suggested that affordability is a key component of efforts to increase access to healthy foods in underserved communities, particularly at a time when the government's Supplemental Nutrition Assistance Program could face cuts.- Ramirez pointed to examples like Double Up Food Bucks ""?an initiative that allows customers using SNAP benefits to double their benefits when they buy fresh produce. Previous research-shows such programs increase fruit and vegetable consumption among participating families.- ""We don""t have to reinvent the wheel,""?Ramirez said. ""We already have really successful assistance programs that put money in peoples""?pockets so they can buy produce, and that's what they do with it.""?""? Joseph Erbentraut covers promising innovations and challenges in the areas of food, water, agriculture and our climate. Follow Erbentraut on Twitter at @robojojo. Tips? Email joseph.erbentraut@huffingtonpost.com. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1790,2017/3/1,http://www.huffingtonpost.com/2017/02/21/selling-bagels-greece-donkey-unemployment-post-50_n_15088240.html,Selling Bagels Off A Greek Donkey Could Be A Better Idea Than Looking For A Job At 57,Everyone needs a Plan B.,"Years ago ""?before husband, kids, houses and pets came along ""?my friend Cindy and I were enjoying our last day of vacation on a black sand beach on the Greek island of Santorini when a sun-weathered old man approached us selling cups of fresh fruit off his donkey. ""how much for two?""?I asked in the international language of finger-pointing and other gestures. It was perhaps my fifth trip to Greece and I knew how to play the bargaining game. I feigned disgust at his first price and shooed him away. But instead of lowering his price as I expected he would, he plopped himself down on the edge of my sun lounger, pulled out a flask from beneath the donkey's belly and offered to share. And share we did. Business, he told us, was good. Plus,-he got to look at all the pretty girls on the topless beach ""?a perk of the job. Ouzo, no matter how many trips to Greece I make, will never taste good to me. Yet we drank his flask dry. I'm sure we also paid asking price for the fruit, and there's an excellent chance we tipped mightily. I remember the incident like it was yesterday for one reason: It was how Cindy and I came to create our escape plan.-It was brilliant as only brilliance can be when seen through Ouzo-infused brains.- The plan went something like this: We would return to Los Angeles just long enough to tie up the loose ends of our lives and then return to Santorini ""?or perhaps Mykonos or Zakynthos or Paros or Antiparos ""?where we would spend the rest of our days selling fresh New York-style bagels from donkeys on the beach. Topless, of course, because if you'r going to liberate yourself, you must liberate all parts. Our business plan was simple: Bake fresh bagels each morning and stroll the beaches selling them until it was time to nap.-It was freedom from our corporate rulers and stunning in its simplicity ""?not to mention very low overhead. I mean, how much can a Greek donkey eat?- No, of course, we didn""t do it. As is the case with many vacation-born fantasies, real life interfered.- But the bagel-donkey plan never really went away. It has been mentioned every time one of us needs an escape hatch. ""Well, we can always go sell bagels from a donkey in Greece,""?we say, and miraculously whatever pain we are experiencing dissipates.-It has worked on every sour occasion and bump in the road of life for almost 30 years now. But yesterday,-it really got put to the test:-Cindy lost her longtime job as a newspaper page designer.- She was told that her department's work was being outsourced and the number of staff jobs whittled down. At 57 and after almost 25 years with her Texas-based paper, she had been blessed not only with a gorgeous mane of white hair, but also with a salary commensurate with her experience.- Might as well have painted a target on your back, I said. Her response surprised me.- ""You know,""?she began, ""I am weirdly OK with this.""?She has no other job lined up, there's a mortgage payment due on the first of every month, and perhaps she'dmissed all the stories I""ve written about age discrimination in the hiring process. AARP says that 2 out of 3 workers between the ages of 45 and 74 have seen or experienced-age discrimination at work, and job seekers over 35 cite it as a top obstacle-to getting hired. If you happen to work in the technology or entertainment industries, your chances of experiencing age discrimination are even higher. Frankly, you'r cold toast as far as Silicon Valley can see.- Her news rocked my very foundation. The recession is over, isn""t it? A guy who loves business and hates regulations and is going to make America great again by creating jobs, jobs, jobs sits in the White House. But still, older workers can find themselves kicked to the curb. Boomers, including me, were-beaten up bad by the Great Recession-and some of us still have open financial wounds. I lost my job at the Los Angeles Times at age 59 and I can""t forget the sleepless nights that came with the unemployment checks. I-managed to pick up what remained of my dignity-and move on ""?and count myself among the lucky ones who didn""t lose their homes.- What will happen to Cindy? ""It's been an interesting ride ""?now on to the next chapter!""?she posted on Facebook. It was the exclamation point that left me suspicious about the sincerity of her words. This is Facebook, after all. So I tried again. ""really, how are you?""?I pressed. ""I can""t even explain it,""?she said. ""It's part relief ... and part exhilaration over the adventure of discovering what's ahead.""?That part I got. When I was unemployed, something else happened besides me shaking in my boots.-With an economic gun pointed at my temple, I discovered just how creative I could be. Sometimes security has an evil twin and its name is complacency. So when I asked Cindy directly, ""�OK, but what will you do?""?her answer didn""t surprise me. ""sell bagels from a donkey in Santorini.""?Thanks, Cindy, I needed to hear that. Now how did we figure we keep the cream cheese cold? HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1791,2017/3/1,http://www.huffingtonpost.com/2017/03/01/flights-to-new-zealand_n_15087558.html,New Zealand Will Pay For You To Visit If You Qualify For A Tech Job,Now's your chance to live like a Kiwi.,"New Zealand is making it incredibly easy to-move abroad,-free flight provided.- The city of-Wellington-is looking to fill 100 open tech jobs, and it's offering to fly worthy candidates down for a look, a hangout and rounds of job interviews that could lead to a full-time gig.- The program is called LookSee Wellington.-Interested travelers are required to fill out an-online job application,-after which local tech companies will consider them for an interview. (Yes, we'r assuming a tech background will help.) If chosen, prospects will receive-free flights and accommodations for a four-day stay in the land of beaches and beer bars. The lucky 100 candidates offered positions will have the option to move to ""silicon Welly""?shortly thereafter and start their new jobs. New Zealand consistently ranks as one of the top places to live-abroad, thanks in part to its plethora of outdoor activities. Not feeling tech-y enough for this particular opportunity?-Find a cheap flight on your own, and get down there!- HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1792,2017/3/1,http://www.huffingtonpost.com/2017/03/01/shark-rescue-florida_n_15085778.html,Watch These Hero Humans Rescue Shark Tangled Up In Fishing Line,"Swim free, little buddy.","Compelling footage from Jensen Beach, Florida, shows a crew of brave men working together to help a shark tangled in fishing line. ""We realized it was wrapped around something and ran to see if we could help,""?Colin Baker, who filmed his two friends, told National Geographic. ""We then got the fishing line unwrapped from around the body and took the hook out of its jaw.""?National Geographic identified the animal as a blacktip shark, a species that nurses its pups in shallow water near the shore. Fishing for blacktips is legal in Florida. The National Oceanic and Atmospheric Administration says that most shark bites in Florida are ""likely attributable""?to blacktips, but notes there's no evidence that the species has been responsible for any fatal attacks in the area. And though using common sense to avoid dangerous shark encounters, humans are a much, much bigger threat to the marine predators than they are to us. In 2011, there were 12 reported fatal shark attacks worldwide, which was the highest number since 1993. In contrast, humans kill-an estimated 11,417 sharks-per hour. Share this slide: The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1793,2017/3/1,http://www.huffingtonpost.com/2017/03/01/twitter-abuse-harassment-tools-mute_n_15085338.html,Twitter Inches Forward In Fight Against Abuse,Sometimes Twitter eggs hatch into monsters.,"Twitter trolls be warned: Mute is coming for you.- On Wednesday, the social media company unveiled a series of new measures-in its fight against harassment on the site, which ran particularly rampant-during the 2016 presidential campaign. The changes include increased automatic screening for abusive tweets, more powerful filtering options for users and greater transparency from Twitter about how it's dealing with abusive accounts. Of the three, users will likely appreciate the expanded filtering options the most, particularly the powerful new ""mute""?features. According to Twitter, users will be able to mute specific phrases, keywords and conversations from their timelines. they'll also be able to choose how long the mute is enforced, whether it's one day or indefinitely. (So, this would be good when, for example, your whole timeline is tweeting about a show that you don""t watch.) Tweets coming from accounts without profile pictures, verified email addresses and phone numbers can all be screened: The other features announced Wednesday should require less effort on the part of the user. Ideally, users won""t notice them at all ""?they'll just experience less harassment on their timelines. For Twitter, that will mean relying more on algorithms to flag and mute abusive profiles. ""We'r working to identify accounts as they'r engaging in abusive behavior, even if this behavior hasn""t been reported to us,""?the company said in a release. ""We aim to only act on accounts when we'r confident, based on our algorithms, that their behavior is abusive. Since these tools are new we will sometimes make mistakes, but know that we are actively working to improve and iterate on them.""?The anti-harassment moves come amid broader turmoil at the company, which is scrambling to increase its user base and engagement rate in a bid to grow revenue and pacify investors.- Twitter's stock has plunged from a high of $69 per share shortly after its 2013 initial public offering to about $15 a share at present. Though rumors abound of a potential takeover, would-be suitors like Google, Disney and Salesforce (which were all said to be interested at one point)-want to see the harassment abate first. The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -1794,2017/3/1,http://www.huffingtonpost.com/2017/03/01/significant-other-gideon-glick_n_15084534.html,'Significant Other' Is The Broadway Play You Need To See Right Now,Gideon Glick says the show is an honest look at the gay single life.,"When it debuted Off Broadway in 2015, ""significant Other""?felt innately plugged into the cultural zeitgeist, breaking away from so-called ""issue""?plays like ""the Boys in the Band""?and ""the Normal Heart""?that had come to define queer theater. Joshua Harmon's dramedy, which follows a romantically challenged gay man's search for love, couldn""t have been more impeccably timed, as the Supreme Court legalized same-sex marriage nationwide on June 26, eight days after the show opened in New York. Less than two years later, ""significant Other""?is gearing up for its highly anticipated transfer to Broadway's Booth Theatre, where it opens March 2. At the heart of Harmon's narrative is Jordan Berman, a neurotic, out millennial who has marriage on his mind. Now that Jordan (played by Gideon Glick) has the legal right to marry, he's driven to fulfill it, and thus embarks on an earnest, if ill-conceived, mission: to land a boyfriend who will ultimately become a husband. While the future of same-sex marriage is uncertain-under-President Donald Trump, Glick feels audiences will still be able to laugh (and cry) at Jordan's stumbles on the road to matrimony as much now as they did in 2015. The character, he said, is ""An honestly written depiction of a modern gay man,""?and more three-dimensional than the quirky sidekicks that many LGBTQ people are relegated to in other plays. Presenting Jordan's tribulations in a tragicomic light, he said, is ""A privilege""?given the real-life struggles many queer people are now experiencing. ""I think that having a protagonist who is a gay man is really important, in the same way that having a protagonist who is someone of color in a play is really important,""?Glick, who is also gay, told The Huffington Post. Moreover, Jordan's experiences aren""t defined by his sexuality or gender. ""We'r dealing with universal themes ""?loneliness, yearning, striving for companionship. That, to me, is thrilling,""?he said. From a professional standpoint, ""significant Other""?marks the start of a new chapter for Glick. The show is the Philadelphia native's first Broadway stint since he left the cast of ""spring Awakening""?in 2007; though he was cast in 2010's ""spider Man: Turn Off The Dark,""?his character got cut before the show's opening night. Glick has been a fixture on the New York stage, starring in 2007's ""speech and Debate""?and the Public Theater's production of ""Into The Woods""?in 2012. ""significant Other""?is his first time as a leading man. ""I""ve been playing teenagers for a decade,""?he quipped, ""so this is a nice little jump.""As for Jordan himself, Glick said he identified with the character instantly. ""We speak many of the same languages. The stretch is not too far,""?he told HuffPost. Still, there's one notable difference: Glick is in a relationship, while Jordan remains unhappily single even as his gal pals (Sas Goldberg, Rebecca Naomi Jones and Lindsay Mendez) couple off one by one. ""I tend to overthink and overanalyze, but I think Jordan can get in his own way a bit. Part of his struggle is that he's always comparing himself to his friends,""?he said. ""I don""t think I do that.""?Though his ""spring Awakening""?character, Ernst, was also gay, the actor said he isn""t concerned about being pigeonholed after his turn in ""significant Other""?wraps. Moving forward, his only requirement is that his characters are ""laried and authentic,""?he said. ""straight men are never asked, ""�How does it feel playing a straight guy all the time? What's that like?""?I don""t think my approach is any different,""?Glick who has never shied away from the subject of his own sexuality in interviews, said. ""the only responsibility that I feel is honesty. I think sometimes people feel like being gay is a niche. It's not a niche.""If Glick has it his way, this won""t be his only crack at the role of Jordan Berman, too. ""I'm secretly hoping that this will be a trilogy of some sort,""?he said, ""and that we can find a way to revisit it every 10 years.""""significant Other""?opens at the Booth Theatre in New York on March 2. Head here for more details.- How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1795,2017/3/1,http://www.bbc.co.uk/news/world-us-canada-39136118,Trump Attorney General Jeff Sessions under fire over Russia meetings,"Attorney General Jeff Sessions met Russia's ambassador during the election despite telling his confirmation he had ""no communications with the Russians"".","Attorney General Jeff Sessions met Russia's ambassador during the election despite telling his confirmation he had ""no communications with the Russians"". The justice department confirmed he met Sergei Kislyak in July and September last year as part of his role on the Senate Armed Services Committee. Mr Sessions said his comments at his confirmation hearing had related to his role on the Trump campaign team. Claims of Russian interference in the election have dogged President Trump. The US intelligence community believes the alleged Russian hacking of Democratic organisations was carried out to help Mr Trump defeat Democrat Hillary Clinton. Mr Trump's National Security Adviser, Michael Flynn, was fired last month after he misled the White House about his conversations with Mr Kislyak, allegedly regarding sanctions against Moscow. The Democrats have reacted with anger at the latest revelations, saying Mr Sessions should resign and at the very least step aside from an FBI probe he is overseeing into the hacking claims. The Washington Post reported that Mr Sessions and Mr Kislyak held a private conversation in Mr Sessions's office in September and had spoken earlier in the summer at a meeting with several other ambassadors. Mr Sessions had meetings with more than 25 foreign ambassadors in the course of the year. But his meetings with Mr Kislyak came while he was a prominent part of Mr Trump's campaign team - a so-called surrogate - and amid growing reports of Russian meddling in the US election. During his confirmation hearing on 10 January, Mr Sessions was asked by Democrat Senator Al Franken: ""If there is any evidence that anyone affiliated with the Trump campaign communicated with the Russian government, in the course of this campaign, what will you do?"" Mr Sessions responded: ""I'm not aware of any of those activities. I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians. And I'm unable to comment on it."" In a statement on Wednesday night, Mr Sessions reiterated: ""I never met with any Russian officials to discuss issues of the campaign. I have no idea what this allegation is about. It is false."" Justice department spokeswoman Sarah Isgur Flores said there had been ""absolutely nothing misleading about his answer"" at the confirmation hearing. ""He was asked during the hearing about communications between Russia and the Trump campaign - not about meetings he took as a senator and a member of the Armed Services Committee,"" she said. Mr Sessions was also backed by the White House, which condemned the ""latest attack against the Trump administration by partisan Democrats"". Democratic House Minority Leader Nancy Pelosi accused Mr Sessions of ""lying under oath"" and demanded he resign. Russia: The scandal Trump can't shake Russia looms large behind Flynn affair The Democrats have already called for Mr Sessions to recuse himself from the FBI investigation into the hacking allegations. Mr Sessions has said he will recuse himself ""from anything that I should recuse myself on"". News of Mr Sessions's meetings broke just after a congressional committee agreed to an investigation into Russia's alleged interference. The House intelligence panel inquiry will scrutinise contacts between Donald Trump's presidential campaign and Moscow. The White House denies any improper behaviour during the election campaign, and Russia has consistently rejected allegations of interference. Until now, Republican senators had been reluctant to agree to Democratic Party demands for the inquiry. Meanwhile, the New York Times reports that in the last days of the Obama administration, some White House officials rushed to ""spread information about Russian efforts to undermine the presidential election - and about possible contacts between"" Mr Trump's team and the Russians. The paper quotes three former US officials as saying they had two aims - to ensure ""such meddling"" does not happen in future US and European elections and ""to leave a clear trail of intelligence for government investigators"". US report on Russian hacking: Key points May 2016: Reports first emerge of hackers targeting the US Democratic Party. Over the next two months, reports suggest US intelligence agencies have traced the breaches to Russian hackers. July 2016: Jeff Sessions meets Russia's envoy to the US Sergei Kislyak and several other ambassadors at an event on the sidelines of the Republican National Convention. August 2016: Paul Manafort, Donald Trump's campaign manager, quits after an FBI investigation into his alleged ties to Russian interests in Ukraine and the US. September 2016: Senator Sessions has a private meeting in his office with Mr Kislyak. The justice department says all meetings were linked to his work on the armed services committee. October 2016: The US intelligence community release a unanimous statement formally accusing Russia of being behind the hacking of the Democratic Party. Mr Trump questions the findings. Over the coming months, more reports on the hacking emerge. The US intelligence agencies, the justice department and four Congressional committees are all currently investigating the allegations. February 2017: Mike Flynn resigns as Mr Trump's new national security adviser after it emerges he discussed the potential lifting of sanctions against Russia with Mr Kislyak and then misleading Vice-President Mike Pence about the communication. Hello I'm an experiment from BBC News Labs. You can ask me questions about this story, like... Ask an expert about this story Ask BBC News about this story Still got questions? Ask Newsbot", -1796,2017/3/1,http://www.bbc.co.uk/news/uk-politics-39136739,Ministers will seek to overturn Brexit bill defeat,"The government will ""resist"" any changes to its Brexit bill and seek to overturn the defeat inflicted by the House of Lords, ministers have vowed.","The government will ""resist"" any changes to its Brexit bill and seek to overturn the defeat inflicted by the House of Lords, ministers have vowed. Peers defied ministers by 358 to 256 to guarantee the rights of EU nationals living in the UK after Brexit. The government said it was ""disappointed"" at the first defeat for its draft legislation. MPs will have the chance to remove the Lords' amendment when the bill returns to the House of Commons. Before then, next Tuesday, the Lords will consider backing other possible amendments to the bill, which authorises Theresa May to trigger Brexit. Leader of the Commons David Lidington told MPs on Thursday the bill was a ""straightforward"" one giving the PM the power to trigger the two-year Article 50 process of leaving the EU. ""And we will therefore seek to resist changes that would make that negotiating task more difficult,"" he said. The vote came after a heated debate in the Lords where the government was accused of treating EU citizens like ""bargaining chips"". Ministers attempted to stave off defeat, saying the issue was a priority for the government but should be tackled as part of a deal that also protected UK expats overseas. The amendment backed by the Lords requires the government to introduce proposals within three months of Article 50 to ensure EU citizens in the UK have the same residence rights after Brexit. The Department for Exiting the EU said: ""We are disappointed the Lords have chosen to amend a bill that the Commons passed without amendment. ""The bill has a straightforward purpose - to enact the referendum result and allow the government to get on with the negotiations."" The government said its position had ""repeatedly been made clear"", saying it wanted to guarantee the rights of EU citizens and British nationals ""as early as we can"". Government sources tonight sound relaxed. They knew this vote was likely to go against them. And it's an issue that the government believes it has a clear defence on. Indeed, even during Theresa May's leadership campaign before she moved into Number 10, she articulated the same position. In her view, it would be unwise to guarantee the rights of the three million or so EU citizens in this country, before other EU countries are ready to do the same for British citizens abroad. For her opponents that's distasteful, immoral even, because many people who have made their lives in the UK could be used, so the phrase goes, as ""bargaining chips"" in a negotiation. There is little sign however of the government giving way despite the defeat. Read the rest of Laura's blog Former Lords leader Lord Strathclyde said the vote represented ""wrong-headed and muddled thinking"". He said it was difficult to see where a compromise between the government's position and that taken by the Lords could be found. Crossbencher Lord Kerslake, a former head of the civil service, said the vote showed that the Lords overwhelmingly felt the rights of EU citizens in the UK was an issue that should be sorted out now. He told BBC One's Breakfast that while the government had given assurances that it wanted to resolve the matter as soon as possible, there was a risk it could take two years if the EU decided it wants all issues included in a single deal. Crossbencher Baroness Meacher said she understood there were at least 30 Conservative MPs who would vote to support the amendment in the Commons, even though she anticipates Tory whips will ""work extremely hard with all sorts of bribes to get these people to vote with the government"". Labour's shadow Lords leader Baroness Smith said there was a ""moral"", a ""legal"" and a ""pragmatic"" case in favour of guaranteeing EU nationals' rights. Seven Conservative peers voted in favour of the amendment, which was proposed by Labour with the support of the Liberal Democrats. Shortly after the Lords vote, MEPs in the European Parliament debated the status of EU migrants in the UK. Justice Commissioner Vera Jourova told MEPs that EU citizens in the UK and British citizens elsewhere in the EU ""deserve to know what their rights will be"" after Brexit. She said the matter should be addressed ""as soon as possible"" but that negotiations could only begin after the UK has triggered Article 50. (It is currently at committee stage in the House of Lords)", -1797,2017/3/2,http://www.bbc.co.uk/news/world-us-canada-39136183,Oscar mishap accountants 'will never return' to ceremony,"The two accountants responsible for muddling up the main award envelopes at Sunday's Oscars ceremony will not be employed to do the job again, the academy president has announced.","The two accountants responsible for muddling up the main award envelopes at Sunday's Oscars ceremony will not be employed to do the job again, the academy president has announced. Cheryl Boone Isaacs said that the relationship with the accountancy firm PriceWaterhouseCoopers (PWC) was also under review. Brian Cullinan and Martha Ruiz were responsible for Sunday's mishap. La La Land was mistakenly named best picture instead of winner Moonlight. The team behind La La Land were in the middle of their speeches before the real winner was revealed. It has been described as the biggest mistake in 89 years of Academy Awards history. How did the Oscars mistake happen? Nine epic awards fails Mr Cullinan mistakenly handed the wrong envelope to the two presenters. He gave Warren Beatty and Faye Dunaway the back-up envelope for best actress in a leading role - rather than the envelope which contained the name of the winner for the best film. PriceWaterhouseCoopers, which counts the votes and organises the envelopes, has apologised for the mix-up. Mr Cullinan tweeted a picture of best actress winner Emma Stone minutes before handing the presenters the wrong envelope, and Ms Boone Isaacs blamed ""distraction"" for the error.", -1798,2017/3/2,http://www.bbc.co.uk/news/uk-england-38957371,Bus lane cameras make ?31m in a year for councils,"Almost 4,000 motorists a day are fined for driving in bus lanes, with the most lucrative camera making ?6,000 every 24 hours.","Almost 4,000 motorists a day are fined for driving in bus lanes, with the most lucrative camera making ?6,000 every 24 hours. BBC England contacted 160 authorities responsible for highways in England, 64 of which had bus lane cameras. Motoring organisation, the RAC, said the cameras had become a ""cash bonanza"" for local authorities. Councils say cameras are clearly signed and they expect income to fall as drivers learn to stay out of the lanes. In total, the local authorities revealed an estimated combined income of ?31m for 2015-16. The figure is likely to be higher as some councils were unable to break down figures by individual cameras or lanes. The most lucrative bus lane in England is on the northbound section of John Dobson Street in Newcastle-upon-Tyne. The council revealed that between 23 February and 31 October 2016 it resulted in 62,975 penalty charge notices, making a total of ?1.5m, equivalent to ?5,960 a day. About 5,100 drivers caught in the first two months were then given refunds after it was found that signs were ""inadequately lit"" during the hours of darkness. Drivers and opposition councillors have said the road layout is ""confusing"". However, Newcastle City Council stressed bus lane cameras were not there to make money and the number of fines had dropped ""dramatically"" over the past year. A spokeswoman said the bus lane was correctly signposted. She said: ""Each year, nine million bus passengers travel along John Dobson Street, where services have seen a 14 per cent improvement in journey time reliability since enforcement started. ?130 in Greater London ?60 outside London ?65 in Greater London if paid within 14 days ?30 discounted rate for early payment outside London ""We would firmly stress that bus lanes are not there to generate income - they are there to help us to manage our road networks efficiently."" In Wolverhampton, two cameras installed to stop people using a bus lane as a short cut were making on average ?4,750 a day between them. The council said people had been misusing the lane when coming in and out of the rail station but that it expected the number of fines to fall following a recent change in the road layout. Get the data here For more stories from the BBC England data unit visit our Pinterest board RAC spokesman Simon Williams said: ""Bus lane cameras are fast becoming a new 'cash bonanza' for councils. The amount of money being raised by them in fines is frightening. ""Rather than just rubbing their hands together and taking the money councils should be asking questions as to why so many motorists are being caught driving in bus lanes.""", -1799,2017/3/1,http://www.bbc.co.uk/news/business-39138208,Quorn recalls mince over fears it contains metal pieces,"Quorn Foods is recalling 12,000 packets of its frozen meat-free mince over fears it may contain small pieces of metal.","Quorn Foods is recalling 12,000 packets of its frozen meat-free mince over fears it may contain small pieces of metal. The Food Standards Agency warned customers not to eat the product because it represented a safety risk. The recall only affects products sold at Tesco stores and does not include goods bought before 27 February 2017. The 300g packets have a best-before date of 31 August 2018 and a batch code of 136331. Quorn Foods said it was a precautionary measure resulting from an ""isolated production issue."" No other Quorn products are affected. Customers are advised to return the product to Tesco where they will get a full refund.", -1800,2017/3/2,http://www.bbc.co.uk/news/uk-england-39071485,"NHS standing on burning platform, inspectors warn","Safety at four in five hospital trusts in England is not good enough, a leading hospital inspector has warned.","Safety at four in five hospital trusts in England is not good enough, a leading hospital inspector has warned. Professor Sir Mike Richards says that the NHS stands on a ""burning platform"" and that the need for change is clear. His warning follows a review which said staffing and overcrowding were major concerns and that unprecedented pressures on hospitals were putting patients at risk. Ministers said the findings should be used to root out poor practices. The Care Quality Commission review also highlighted delays getting tests and treatments, and poor care of life-threatening conditions such as sepsis. But inspectors warned some of the problems were beyond the control of hospitals because of rising demands being placed on them. The review of all 136 hospital trusts in the country found 11% were rated as inadequate on safety and 70% required improvement. Among the problems highlighted were: Hospital chief inspector Professor Sir Mike said: ""The NHS now stands on a burning platform - the need for change is clear, but finding the resources and energy to deliver that change while simultaneously providing safe patient care can seem almost impossible."" But he said ""transformational change"" was possible, even in ""the most challenging of circumstances"". He went on to say that safety remained a ""real concern"" with many trusts failing to learn when things go wrong. But he also said he had some sympathy for hospitals given the rising demands being placed on them. ""The scale of the challenge that hospitals are now facing is unprecedented - rising demand coupled with economic pressures are creating difficult-to-manage situations that are putting patient care at risk. ""What is clear is that while staff continue to work hard to deliver good care, the model of care that once worked well cannot continue to meet the needs of today's population."" He also highlighted strengths, saying staff were good at providing care with compassion and leadership remained strong in many places. When these factors were taken into account, it meant a third of trusts could be rated as good or outstanding overall. University Hospitals Bristol has one of the more remarkable stories to tell about the new inspections regime. It was one of the early trusts to undergo the new system in 2014 - and ended up with a requires improvement rating. Two years later it was a completely different story. Its re-inspection resulted in an outstanding rating with the Care Quality Commission praising it for its culture on safety. The regulator said the trust was open and transparent with timely apologies provided to patients when things go wrong. Staff in A&E are given checklists to spot the signs of deterioration, while plans are in place to re-deploy staff during really busy periods. The CQC also inspected 18 specialist hospital trusts, including sites dedicated to cancer and heart treatment. They tended to fare better. The report marks the culmination of three years of new tougher inspections brought in after the Mid Staffordshire hospital scandal. The Department of Health said carrying out the inspections was essential to make the NHS the ""safest and most transparent healthcare system in the world"" and would ""shine a spotlight"" on poor practice. It comes as the government is promising families of children who suffer brain injuries at birth faster investigations into what went wrong and swifter compensation payments under changes being proposed. Ministers want to overhaul the system after families complained they were being tied up in litigation for years after mistakes are made. The NHS safely delivers nearly 2,000 babies every day, but each year there are around 500 cases where things go wrong and babies are left with serious injuries. At present families wait on average for more than 11 years for a final resolution if a compensation case goes through the courts. But the Department of Health has proposed an alternative system of compensation. It would include a mandatory, independent investigation panel to learn the lessons of what went wrong, regular payments to help with care costs and personalised counselling, case management and legal advice. But while the Royal College of Midwives has supported the idea, the campaign group Action against Medical Accidents has warned the plans are not well thought through and there needed to be greater guarantees about the independence of the new system. The plans will now be consulted on for 12 weeks. Read more from Nick Follow Nick on Twitter", -1801,2017/3/2,http://www.bbc.co.uk/news/election-northern-ireland-2017-39128501,NI Assembly election: Voters go to polls to elect MLAs,Voters in Northern Ireland go to the polls on Thursday for the second time in 10 months.,"Voters in Northern Ireland go to the polls on Thursday for the second time in 10 months. The 2017 Assembly Election was called after the resignation of former Deputy First Minister Martin McGuinness. Polling stations opened at 07:00 BST and will close at 22:00 GMT. Two hundred and twenty-eight candidates are competing for 90 seats across Northern Ireland's 18 constituencies. Counting in the election will begin on Friday morning. This assembly election has seen one significant change from previous ones. There will be a reduction in assembly members from 108 to 90. Northern Ireland's 18 constituencies will return five MLAs each, not six as was the case beforehand. The number of MLAs has been cut in order to reduce the cost of politics. Forty-eight fewer candidates are standing in this election than in May last year. In Northern Ireland, the government must be run by Irish nationalists and unionists together. When all of the 90 seats have been filled, the two biggest unionist and nationalist parties will get together to try to form a new government. Elections to the Northern Ireland Assembly use a form of proportional representation called the Single Transferable Vote (STV). Voters rank candidates in numerical preference. Candidates are then elected according to the share of the vote they receive. You can read an in-depth guide to the system here. In order to vote, voters must be over 18 and be registered on the electoral register. Polling cards are not required to vote but you must bring some form of photographic identification. A total of 1,254,709 will be eligible to vote in Thursday's election. The BBC News NI website will carry the latest election results and analysis on Friday. There will also be special election programmes running on BBC Radio Ulster and BBC NI television throughout the day.", -1802,2017/3/2,http://www.bbc.co.uk/news/entertainment-arts-39135982,TV dance kids reunite after dance from 1984 goes viral,,"This year's Comic Relief sees the return of the dancing ""Pink Windmill kids"". Katrina, Hugh, Sarah, Emma and Joe became internet sensations 33 years after their dance aired on Emu's All Live Pink Windmill Show in 1984. Joe from the group spoke to 5 live Drive about the show and how the reunion came about:", -1803,2017/3/2,http://www.bbc.co.uk/news/business-39102219,What would you pay for your baby to have a spa?,,"Indonesia's wealthy households are well-known for spending money on the luxurious things in life - like fashion and beauty. The spa business alone in Indonesia is worth $130m (?105m) a year. And now there are beauty spas specially designed for children. As part of our Business of Kids series, we found one spa in Jakarta that's doing so well it's getting ready to go international.", -1804,2017/3/2,http://tass.com/world/933643,European Parliament strips Marine Le Pen of immunity,"Now that Le Pen has lost immunity, she may face a prison term of up to five years or a fine of 75,000 euros","BRUSSELS, March 2. /TASS/. The European Parliament has voted for stripping the leader of France's National Front of immunity over charges of propaganda of extremism and violence. Len Pen was stripped of immunity for an incident of two years ago, when in December 2015 she tweeted photos of executions of hostages by militants of the terrorist organization Islamic State. The affair emerged in the limelight again of late in the run-up to the French presidential election, due on April 23. According to the latest opinion polls, Le Pen is the front-runner, followed closely behind by the leader of the En Marche! (On the March) party. Le Pen published the shocking photos after one of the leading French journalists Jean-Jacques Bourdin in his program likened her party to the Islamic State. In response angry Le Pen Tweeted photos showing fiendish executions committed by Islamists. The caption read ""This is the Islamic State. Not to be confused with the National Front."" The photos""?publication followed just one month after the terrorist attacks in Paris (of November 13, 2015). At that moment it caused no scandal at all. After a brief debate Marine Le Pen removed the photos but the French authorities went ahead with the investigation using the propaganda of extremism as a formal charge, although the message of Le Pen's tweet meant just the opposite. In this way she tried to draw the public's attention to the cruelty of extremists. Now that Le Pen has lost immunity, she may face a prison term of up to five years or a fine of 75,000 euros. The trial may last for more than a year, or even more, including the time needed for appeals. As such the litigation will not prevent Le Pen from participating in the election but may harm her image.", -1805,2017/3/2,http://tass.com/world/933640,"Syrian combat engineers start clearing mines on approaches to Palmyra ""?media","Terrorists of the Islamic State planted a large number of explosives and mines in the area to obstruct the movement of the government troops, the SANA news agency reported","BEIRUT, March 2. /TASS/. Syrian army engineering units have launched an operation since the morning of March 2 to clear passways to Palmyra of mines, the news agency SANA reported on Thursday. As a source in the Syrian army's command told SANA, terrorists of the Islamic State (terrorist organization outlawed in Russia) planted a large number of explosives and mines in the area to obstruct the movement of the government troops. ""The Syrian troops are chasing the remainder of terrorists""?routed gangs,"" the source said, noting that the enemy had sustained heavy losses in personnel and military hardware. A report prepared by the military information service shows the Syrian army's helicopters delivering strikes on the remaining strongholds of terrorists on the outskirts of Palmyra. As the TV Channel Al-Alam reported, militants have now moved to the city's eastern part and their columns are retreating towards the al-Suhna oasis located 70 km of Palmyra. According to the TV channel, the Syrian army has liberated the larger part of the western and the north-western outskirts of Palmyra from IS terrorists and gained control of the al-Mutaqaidin quarter close to the center. Shootout continues in the northern part of Palmyra where resistance pockets still remain.", -1806,2017/3/2,http://tass.com/world/933639,"Turkey says Ankara, Moscow agree to prevent clashes between Syrian army, opposition units",,"ANKARA, March 2. /TASS/. Turkey and Russia have agreed to prevent clashes between the armed groups of the moderate Syrian opposition and the government troops near the city of al-Bab, Turkish Foreign Minister Mevlut Cavusoglu told reporters on Thursday. ""We have agreed with Russia to prevent clashes between the armed groups of the moderate Syrian opposition and the government troops, particularly near the city of al-Bab. A boundary has been drawn. The government forces will not cross it while advancing to the north and the opposition units will refrain from crossing the boundary if they move south,"" he said. ", -1807,2017/3/2,http://tass.com/defense/933631,Russia to repair thirty Indian Mi-17-1B helicopters,The first lot of five Mi-17-1B aircraft already undergoes overhaul at the Russian plant,"MOSCOW, March 2. /TASS/. Russian Helicopters will perform repair for thirty Indian Mi-17-1B multirole helicopters at its Novosibirsk repair site during 18 months, press service of the holding said on Thursday. ""30 India's Mi-17-1B helicopters will be repaired at facilities of Novosibirsk aircraft repair plant by mid-2018,"" the press service said citing Deputy Chief Executive Officer Igor Chechikov. The first lot of five Mi-17-1B aircraft already undergoes overhaul at the plant. It is scheduled for completion in June-July 2017 and helicopters will be turned over to India after that. Six lots of helicopters will be dispatched for repair in total, with five helicopters in each lot. Indian inspectors arrived at the plant in late February to check Mi-17-1B repair quality, the press service said. ""Indian specialists will work until early March. They will make conclusions on the quality of repair performed according to inspection findings,"" Russian Helicopters reported.- The Russian Air Force's future: fifth generation stealth fighter ", -1808,2017/3/2,http://tass.com/world/933629,Tokyo seeks to team up with Moscow to tackle Fukushima clean-up,Japan's Agency for Natural Resources and Energy understands that Russia has the experience in dealing with nuclear power plants and hopes to deepen collaboration with the country,"TOKYO, March 2. /TASS /. Japan has set its sights on cooperating with Russia's highly-experienced nuclear energy specialists in its post-accident clean-up of the Fukushima nuclear reactors, said Satoru Toyomoto, representative of Japan's Agency for Natural Resources and Energy under the country's Ministry for Economy, Trade and Industry. ""We understand that Russia has the experience in dealing with nuclear power plants, and we hope to deepen our collaboration if proper technological solutions can be found to address the issues Tokyo Electric Power (TEPCO, Fukishima's operator) is currently facing,"" he noted, adding that in late 2016, during Vladimir Putin's visit to Japan, the parties had discussed cooperation documents and, in particular, what they ""could do together from a technological standpoint to mitigate the consequences of the Fukushima-1 disaster."" On December 16, 2016, Rosatom State Atomic Energy Corporation told TASS that Russia and Japan had signed a memorandum on cooperation and the peaceful use of nuclear energy. Eliminating the consequences of the Fukushima nuclear disaster had been listed as one of the key areas of cooperation. Among other things, the parties had discussed radioactive waste disposal, decommissioning options, personnel exchange possibilities and innovative nuclear technology. The nuclear disaster at the Fukushima-1 power plant in March 2011 was triggered by an earthquake-induced tsunami that devastated the emergency generators which provide power to cool the reactors. This led to three nuclear meltdowns, hydrogen explosions and a massive release of radioactive material, which contaminated the surrounding area. The power plant is currently undergoing clean-up operations and the areas that suffered from the disaster are being deactivated. Full decommissioning may take up to 40 years.", -1809,2017/3/2,http://tass.com/world/933630,Erdogan says Turkey trying to prevent military incidents with Russia in Syria,Turkish President Recep Tayyip Erdogan plans to discuss cooperation with Russia in the struggle against the Islamic State in Syria during his visit to Moscow on March 9-10,"ANKARA, March 2. /TASS/. Ankara has been taking all possible measures in order to prevent any military incidents with Russia and the Free Syrian Army, Turkish President Recep Tayyip Erdogan told reporters on a plane on his return journey from Pakistan. ""Our goal is to do everything possible in order to prevent such incidents. I hope they do not occur because we do not want such mistakes to happen,"" he said. Erdogan made this statement while commenting on some expert opinions that military incidents between Russia and Turkey were possible in Syria where they both countries have been carrying out military operations with the line of contact between Turkish, the Free Syrian Army, Russia and the Syrian troops lying near the city of al-Bab. When asked about the prospects of the Euphrates Shield operation that Turkey has been conducting in northern Syria together with the Free Syrian Army since August 24, 2016, Erdogan said that the town of Manbij, where Kurkish units from the US-backed Syrian Democratic Forces are, would be the next goal of the Turkish air force and FSA. Turkey considers some of these units to be terror groups. ""I cannot say that the new US administration has made up its mind concerning Raqqa and Manbij and the possible operations there. However, we believe that the Syrian Democratic Forces should not participate. Our forces will head to Manbij next. This town should be liberated (from the Kurds) because it belongs to the Arab people living in Syria,"" Erdogan said. Erdogan plans to discuss cooperation with Russia in the struggle against the Islamic State (outlawed in Russia) in Syria when he visits Moscow on March 9-10. According to Haberturk TV, he made a statement to that effect to journalists on board a plane while returning from Pakistan.- ""We will be able to go ahead with the struggle against the Islamic State together, if a corresponding request comes from Russia. In March I will pay a visit to Moscow. We will have a chance to discuss these themes in detail at our negotiations,"" he said. Erdogan will arrive in Moscow on March 9 for participation in a meeting of the High Level Russian-Turkish Cooperation Council,"" he said.", -1810,2017/3/2,http://tass.com/politics/933624,Russian premier does not expect West to lift sanctions,Russia should not expect the West to lift its sanctions while this situation creates fairly good conditions for developing domestic agriculture,"MOSCOW, March 2. /TASS/. Russia should not expect the West to lift its sanctions while this situation creates fairly good conditions for developing domestic agriculture, Prime Minister Dmitry Medvedev told a government meeting on Thursday. ""There should be no fear as no one will lift the sanctions. I have said recently that the West is taking all decisions to make the sanctions permanent and are codifying them in their legislation. That is why, this creates fairly good conditions for developing agriculture,"" Medvedev said. The Russian premier thus responded to Agriculture Minister Alexander Tkachyov's fears that Russian businesses, which had not been modernized, would be losing competition to Western rivals, after the sanctions against Russia were lifted.", -1811,2017/3/2,http://tass.com/society/933468,Chechen leader's daughter makes fashion designer debut,Head of the Firdaws fashion house Aishat Kadyrova presented her first collection in Grozny,"The head of the Firdaws fashion house and daughter of Chechen republic head, Aishat Kadyrova, presented her-first collection, which included 30 works.- Kadyrova's collection features modest, floor length designs that comply with the Chechen Republic's strict Islamic dress code.", -1812,2017/3/2,http://tass.com/science/933619,"Skoltech, Skolkovo business school and NES team up to create innovative educational center",The deal was sealed at the Russian Investment Forum in Sochi,"MOSCOW, March 2. /TASS/ Skolkovo Institute of Science and Technology (Skoltech), Skolkovo Moscow School of Management, and New Economic School (NES) have endorsed an agreement on creating the Skolkovo Educational Center. The deal was sealed at the Russian Investment Forum in Sochi. Sokltech's provost and member of the Russian Academy of Sciences, Alexander Kuleshov, Skolkovo business school president, Andrey Sharonov, and NES provost, Shlomo Veber, were signatories to the agreement, Skoltech's press service reported. ""In my opinion, modern Russia is in dire need of highly-qualified and well-educated professionals who are capable not only of understanding business trends in Russia, but also around the entire world,"" Skoltech's provost stressed. ""Without any doubts, a clever physicist, engineer or biologist can master management and economics on a modest scale which would be needed if the individual was a group leader of a research community and set his sights on establishing a larger enterprise in the field in the future. As the popular phrase goes: ""This isn""t a quantum mechanics, I'll learn it, if needed!"" The main problem is that the principle ""Let's start, and later we will figure it out!"" very often leads to ingenious ideas falling apart, frustration, and investment losses, thereby bringing down and harming our country's technological development. So in conclusion, we should work together!"" Kuleshov asserted. In his turn, Sharonov has noted that ""according to global experience, successful business communities are always established as a result of fusing together several professional findings: novel technologies, entrepreneurial approaches, and an understanding of global macroeconomic processes."" ""This is exactly what we want to gain thanks to the cooperation between our three institutions. We anticipate that the synergy of educational establishments and various proficiencies will generate a pronounced impact in the coming years. Our goal is to establish an educational environment in the Skolkovo Center where knowledge and research will find practical applications that will ultimately energize the development of our country's scientific and business ecosystem,"" Sharonov elaborated. Particular attention will be paid to the joint development of infrastructure, web communication, and maintaining a single community of students, professors, and alumni. Upon creating the new educational programs, Skolkovo Educational Center is planning to intensively apply e-learning and distance learning technologies. As a part of the collaborative project, top Russian and foreign professors will be involved in the educational process. In addition, the business activities will be directed by a specially established coordination board.", -1813,2017/3/2,http://tass.com/pressreview/933592,Press review: Russia changes anti-doping tune and Rada MPs defend Russian language,"Top stories in the Russian press on Thursday, March 1","- Moldova's Foreign Ministry has recalled the country's Ambassador to Moscow Dmitry Braghis without explaining the particular reasons for the move, Kommersant writes, noting that the decision shocked both the Russian Foreign Ministry and the diplomat himself. Sources in Chisinau told the paper that this comes due to confrontation between President Igor Dodon, who has said his priority is to better relations with Russia, and the pro-European government. Dodon earlier rejected several candidates for ambassador posts in other countries proposed by the cabinet. A high-ranking source in the Moldovan presidential administration said the decision to recall Braghis was a response to Dodon's move. Braghis, who was appointed to the post in late November 2015, refused to comment on the situation saying it was premature. He also said that this came as a complete surprise to him. One Moldovan diplomat told Kommersant that Braghis ""had been on the list of those to be recalled for a long time."" ""He got too carried away by business interests in Moscow,"" the diplomat said, without giving any further details. Experts in Chisinau believe the decision to recall the ambassador is a result of some intrigue. ""There were no complaints about Braghis""?performance, and therefore no objective reasons for such a radical decision either. I believe his candidacy was a good choice for Moscow,"" President of the Institute for Strategic Initiatives and former Moldova's ambassador to Austria Andrei Popov said. He did not rule out that the decision could have been made as a result of the behind-the-scenes struggle. It is noteworthy that the ambassador was recalled after Dodon had told reporters at a briefing about the initial outcome of his efforts to improve relations with Moscow, Kommesant writes. - A group of Ukrainian lawmakers will once again try to protect the Russian language in Ukraine on an official level. A bill on ensuring state support of events for developing, protecting and promoting the Russian language will be submitted to the parliament in mid-March, Yevgeny Balitsky, an MP from the Opposition Bloc told Izvestia. The bill was already put forward for the parliament's consideration in late 2016. The bill's author says the Russian language needs real state support and Ukraine should become a country that is ""comfortable for all nationalities."" ""Today more than half of the country's population speaks Russian, that's why funds from the state budget should be allocated for the language's support,"" Balitsky stated. ""I will submit this bill and I'm sure that common sense will prevail and there will be several state languages in the country, not just one. The country will respect all people living on Ukraine's territory,"" he elaborated. Several non-faction MPs are ready to back their ally in the parliament, the paper says. The Pyotr Poroshenko Bloc and the Batkivshchyna (Fatherland) party understand the need for this initiative. Balitsky says ordinary citizens cannot be blamed for differences between Kiev and Moscow and all problems should be solved at a diplomatic level ""without playing people off against each other."" Experts say this initiative coincides with the beginning of a new political cycle in Ukraine. The prospect of early parliamentary and presidential elections is becoming more real, the paper says. Several Ukrainian factions, including Batkivshchyna, have already called for dissolving the Rada. - The Russian Justice Ministry may again propose resuming talks on the government's bill that softens punishment for holding rallies and demonstrations and reduces responsibility for damage inflicted by participants of mass events. The bill, carrying out the 2013 decision by Russia's Constitutional Court, has been included in the ministry's work plan this year, two sources in the State Duma (lower house of parliament) told Izvestia. The ministry is also ready to amend the article on criminal responsibility for repeated violations at rallies, but is awaiting the corresponding instruction from the government. The government had earlier proposed removing the penalty of mandatory community service for those found guilty of formally violating rules on organizing rallies, provided that the event did not cause any damage or injuries. There were also plans to specify demands for so-called Hyde Park-style open-air public speakers""?corners, where citizens could gather for public events in any locality. One of authors of the 2012 law toughening the rules for holding rallies, Alexander Sidiyakin of the United Russia party, said it is important for the bill to specify criteria for special sites (the so-called Hyde Parks open-air speaking venues) for collective public discussions about significant issues and expressing opinions. ""Here there is indeed the uncertainty that the law that may be rectified by adoption of amendments to the law on rallies already this year,"" he said. Chairman of the Council for Civil Society and Human Rights Mikhail Fedotov has backed the bill and called to hash over softening penalties. - On Wednesday, speaking at a meeting of the organizing committee for the 2019 Winter Universiade in the Siberian city of Krasnoyarsk, Russian President Vladimir Putin called for stamping out doping from the country's sport. Vedomosti writes that during his speech Putin again rejected allegations that Russia has a supposed state doping program but acknowledged cases of its use and the failure of an outmoded Russian system of control, urging the country's sports community to heed the demands of the World Anti-Doping Agency (WADA). Amid harsh statements by officials and MPs, Putin looks like a ""peacekeeper seeking to ease conflict with international sports organizations and ready to make some concessions,"" the paper says. The president's words may be viewed as a call to restore mutual relations and as a signal to the international sports community and domestic officials, coaches and athletes, Alexey Makarkin, a political scientist, said adding that the Kremlin doesn""t need any new surprises or scandals. The relocation of bobsleigh and skeleton world championships and a biathlon event from Russia confirmed the threat of isolating Russian sports was especially a sensitive matter ahead of the FIFA Confederations Cup and World Cup, which Putin considers his personal projects, Makarkin noted. Russia is demonstrating that at the upcoming Winter Olympics 2018 in South Korea's Pyeongchang, it is ready to abandon its attitude of ""victory at any price"" and in the future it plans to punish those who are caught using doping, the paper writes. Putin also noted on Wednesday that Russia's anti-doping laboratory is being handed over to Moscow State University and will get special funding from the state budget, and the Sports Ministry won""t be its founder. This should make the laboratory more independent and formally this game plan is in line with WADA's rules, according to Vedomosti. The decision to transfer the anti-doping effort to the country's leading university is a wide-spread global practice, said Georgy Rusanov a legal expert. This practice has proved to be very efficient in Italy, he noted. Now officials will find it more difficult to influence its work. However, comments on getting tough with doping will remain just words until Russia makes serious progress in reaching goals without doping, sports doctor Sergey Ilyukov said. Some four or five years are needed for a serious breakthrough here, he said. - Russians""?increased travel demands ahead of the summer season have given hope to the tourist market, Kommersant business daily writes. Its participants say that the demand for some countries by the end of the year may reach 2014 figures and the overall flow of tourists going abroad could grow by 20 or 30%. At the same time, some companies fear that this may be a temporary event inspired by a strengthening ruble. Russia's domestic tourist market has already been affected by the current trend and the demand for travel offers has dropped 5%. Top 10 tourist destinations in Russia Executive Director of the Association of Tour Operators of Russia (ATOR) Maya Lomidze said requests for such destinations as Turkey, Cyprus, Bulgaria, Greece and Spain have-nearly doubled and even quadrupled when compared with last year. The demand for trips to Turkey, which now accounts for up to 50% of organized tours for the summer, has already exceeded 2014 levels. If this trend continues, by the end of 2017 the sales of other popular destinations may reach levels seen during the pre-crisis period, she said. Chief analyst at Promsvyazbank Igor Nuzhdin expects that in 2017 the number of Russian tourists traveling abroad may grow only by 20 or 30% compared with 2016. ""The current rush may be linked to the strengthening ruble and uncertainty of Russians that the ruble rate will be as favorable in the spring and summer,"" he said. Nuzhdin doubts if the number of Russians traveling abroad could reach the level of 2014 in the coming five years. ""�At that time, the average salary in the country reached $841, in 2016 it was $548, whereas in 2017 it may grow to $650, but to reach the level of 2014 there is the need for another 30% growth,""?he said. - TASS is not responsible for the material quoted in the-press reviews", -1814,2017/3/2,http://www.dw.com/en/german-women-lose-to-us-to-open-shebelieves-cup-campaign/a-37778904?maca=en-rss-en-all-1573-rdf,German women lose to US to open SheBelieves Cup campaign,"Germany's women have gotten off to a losing start at the SheBelieves Cup in the United States, losing 1-0 to the hosts. The Germans haven't beaten the Americans in more than 13 years.","The Americans came out on top in Wednesday's duel between the world's two top women's national teams, as Lynn Williams scored in the 56th minute to give the United States the 1-0 victory in the match played in Chester, Pennsylvania. ""I happened to be there at the right time,"" the 23-year-old Williams said. In addition to being the No.1 and No. 2 teams in FIFA's women's rankings, the United States and Germany have won the last two major women's trophies; the World Cup and the Olympic gold medal in Rio. This was the first defeat for in the six matches since German head coach Steffi Jones took over from Silvia Neid. ""In view of the travel stress I am proud of the performance my team showed, despite the defeat,"" Jones said afterwards. ""We closed down well, but we still lacked precision."" Wednesday's match marked the 150th appearance for the national team for Anja Mittag. ""I am proud to have played my 150th match for the national team, the 31-year-old Wolfsburg striker said. ""It's too bad that we narrowly lost. There was more in it (for us)."" Long dry spell The defeat means that Germany's long dry spell against the United States continues. Germany's last victory over the Americans was their 3-0 win in the semifinals of the 2003 World Cup, which was hosted by the US.- Germany's next match is against France on Saturday, before they go on to face England on Tuesday. For the European teams, the four-way tournament, which is held annually in the United States, is a tune-up for the European championship, which is to be hosted by the Netherlands in July.- pfd/ftm (SID, dpa)", -1815,2017/3/2,http://www.dw.com/en/eurozone-inflation-exceeds-ecb-target/a-37778774?maca=en-rss-en-all-1573-rdf,Eurozone inflation exceeds ECB target,"Consumer prices in the euro currency area have accelerated to hit two percent for the first time since January 2013, adding to pressure on the European Central Bank to tamper its massive monetary stimulus.","Surging to a four-year high, annual inflation in the 19-member currency bloc reached two percent in February, driven mainly by higher energy prices, showed latest figures released by the EU statistics office, Eurostat, on Thursday. The inflation reading rose from 1.8 percent in January and comes amid steeply rising prices in Germany and Spain, which registered inflation rates of 2.2 percent and three percent last month. Inflation in Germany has hit the highest level in four years, the National Statistics Office has reported while releasing preliminary data for February. The surge was attributable to a hike in energy costs. (01.03.2017) The EU Commission has raised its outlook for the bloc's economic growth, saying Europe's recovery remains on track but is vulnerable to the ""exceptional risks"" of Brexit and the new US administration. (13.02.2017) The eurozone has a large record of excessive borrowing, rigged budget figures and disrespect for EU fiscal rules, a fresh working paper by the IMF has said. It looked at the past two decades of the bloc's development. (30.01.2017) According to Eurostat data, energy prices climbed 9.2 percent year-on-year in February, while the prices for services increased 1.3 percent. Food, alcohol and tobacco cost 2.5 percent more. ECB stimulus working In a bid to boost low inflation in the eurozone, the European Central Bank (ECB) has launched unprecedented stimulus measures, including cutting interest rates to a historic low of zero percent and buying up assets worth more than 1.5 trillion euros ($1.58 trillion) in the past two years. As the inflation rate has exceeded the ECB's target of ""just under two percent,"" the central bank for the euro area is likely to face renewed pressure to gradually end-its ultra-lose monetary policy. However, ECB president Mario Draghi will argue that the core inflation measure, which strips out volatile energy and food prices, remained unchanged at 0.9 percent, indicating that the economic recovery is still fragile. Moreover, the ECB wants to lower the debt burden of crisis-hit eurozone members, such as Italy, Greece and Portugal, by keeping interest rates low while inflation rises. German hawks But this will only increase the ire of Germany and other better-off eurozone countries, which fear that runaway inflation will dent economic growth and disproportionately hurt millions of savers in their countries. Germany, for example, reported a February inflation rate of 2.2 percent on Wednesday - the highest in four and a half years. With overall savings of five trillion euros and interest rates at zero, an inflation rate of two percent means Germans are basically losing 100 billion euros per year. Facing a general election in September, German politicians are already calling on the ECB to start increasing interest rates and reducing its bond-buying program. Economists believe that inflation in the eurozone is set to pick up speed in the course of 2017, not least because of higher prices on a global scale fueled by the reflationary policies of US president Donald Trump. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YAmx uhe/kd (Reuters, AFP, dpa) -", -1816,2017/3/2,http://www.dw.com/en/china-targets-south-korean-business-in-row-over-missile-defense/a-37778184?maca=en-rss-en-all-1573-rdf,China targets South Korean business in row over missile defense,"Given the choice between trade with China and protecting its citizens, South Korea is opting to do what it can to minimize the danger posed by North Korea's missile and nuclear weapons programs. Julian Ryall reports.","China is showing no signs of stepping back from its vehement opposition to the deployment of the US Army's Terminal High Altitude Area Defense (THAAD) system in South Korea, despite Seoul's efforts to convince Beijing that it is designed purely to protect South Korean citizens from a belligerent and nuclear-armed regime in Pyongyang. Beijing has reiterated its anger at the proposed deployment of a THAAD battery since a member company of the Seoul-based Lotte Group recently confirmed that it had reached agreement to provide a golf course in Seongju County as the base for the system. South Korea's Ministry of National Defense announced on Tuesday, February 28, that it was taking control of the site for the battery. Within a few hours, a spokesman for the Chinese Foreign Ministry addressed a news conference, saying Beijing ""is firmly opposed to and strongly dissatisfied with"" Seoul cooperating with the United States to bring forward the deployment of the THAAD battery and ""ignoring China's interests and concerns."" Veiled threats In a thinly veiled threat, Foreign Ministry spokesman Geng Shuang said China will ""resolutely take necessary actions to safeguard its own security interests."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XVeC That theme was continued by state-run media, with The Global Times quoting Song Zhongping, a former officer in the People's Liberation Army, as saying that once THAAD is deployed, ""Seongju County will appear on the list of the PLA's missile system's strike targets."" A more immediate threat comes in the form of suggestions that Beijing is going to make business life difficult for the Lotte Group in China, stepping up a campaign that has so far targeted South Korean music and entertainment groups performing in China. South Korean airlines were also refused permission to operate additional flights over the busy Chinese New Year period. And analysts say that should South Korea continue to push ahead with the deployment of THAAD, then more companies may find it increasingly difficult to operate in China. ""They do have a track record of putting pressure on South Korea ever since the plan to deploy THAAD was first announced last year,"" said Stephen Nagy, an associate professor of international relations at Tokyo's International Christian University. US Defense Secretary James Mattis has warned Pyongyang that any nuclear attack by N. Korea would trigger an ""effective"" response. But how is China looking at the Trump administration's aggressive stance towards its ally? (03.02.2017) North Korea's military has said it will make a ""physical response"" to the US and South Korea's decision to deploy the advanced THAAD missile defense system on the Korean peninsula. Beijing is not best pleased either. (11.07.2016) The new US defense secretary has soothed concerns that the Trump administration would turn its back on South Korea. The two countries plan to move forward on the installment the THAAD missile defense system. (03.02.2017) The two neighbors and long-time rivals have taken steps to ease the pain of the past, although many in Korea have a long memory of their mistreatment at the hands of Japanese colonizers. Julian Ryall reports from Tokyo. (01.09.2016) ""A number of cultural presentations in China have been cancelled, authorities have stepped up investigations into Korean companies in China and it seems that the next step will be to put additional pressure on Lotte's operations there,"" he told DW. Power over the public The government's control of the media also gives it power over the Chinese public, the expert noted, pointing to an editorial in The Global Times that declared ""Chinese consumers should become the main force in teaching Seoul a lesson, punishing the nation through the power of the market."" And the impact has been swift; Lotte's Chinese-language website was disrupted on Tuesday by unidentified hackers, while protesters outside a Lotte mall in Jilin Province, northeast China, displayed a placard that read, ""Lotte has issued a declaration of war against China and Lotte should leave China right now."" ""Chinese people will support whatever the government tells them,"" said Nagy. ""There has been an upsurge in nationalist rhetoric on the Weibo and WeChat social media sites and this sort of tactic can have a serious economic impact on Lotte and South Korea."" Daniel Pinkston, a professor of international relations at the Seoul campus of Troy University, agrees that the economic fallout for South Korea could be serious as nearly 30 percent of Korean exports are to China. But, he told DW, the national security threat that South Korea faces ""trumps that several times over because having a good business in China is no help at all if you are targeted by a North Korean nuclear missile."" Seoul and Washington have repeatedly explained to the Chinese government that THAAD is purely a defensive system, although Beijing insists that its powerful radar will be able to peer into Chinese territory and will alter the security balance in East Asia. Claims are 'absurd' ""I believe China has some minor legitimate concerns, but they are being exaggerated,"" Pinkston said. ""Chinese officials and the media there frequently and repeatedly misrepresent the issue as opposed to addressing minor technical issues. Really, for China, this is about the regional security architecture of the US and its allies in the region, primarily South Korea and Japan, and the US military presence in both those countries. ""China's ICBMs are not launched from that part of the country so for them to claim that THAAD is a threat is nonsense,"" he argued. ""Equally, reports that you see in their media that this is some 'precursor to a plot to wage war on China' is simply absurd."" Pinkston said his contacts in the South Korean government have expressed both concern and bewilderment at the stance being adopted by China - which has made it clear in the past that it would not rush to South Korea's assistance if the nation was ever threatened. ""It's surprising to watch,"" he said. ""China is taking more measures and encouraging more rhetoric among its own people against a country that wants to deploy a defensive system than it has against North Korea, which is keeping up a steady routine of missile tests and nuclear tests close to the Chinese border. ""What would they do in similar circumstances?"" Pinkston asked. ""What do they really expect South Korea to do?"" -", -1817,2017/3/2,http://www.dw.com/en/european-parliament-strips-le-pen-of-immunity-over-islamic-state-tweets/a-37778428?maca=en-rss-en-all-1573-rdf,European Parliament strips Le Pen of immunity over 'Islamic State' tweets,"Far-right French presidential candidate Marine Le Pen has been stripped of parliamentary immunity. The move allows a Paris court to prosecute her for posting images of ""Islamic State"" (IS) brutality on Twitter in 2015.","Members of European Parliament voted by a show of hands on Thursday to strip far-right French lawmaker and presidential candidate Marine Le Pen of her parliamentary immunity for tweeting-graphic images of victims of the so-called ""Islamic State"" (IS) extremist group. ""I think the results are clear - a broad majority is backing this,"" said the EU lawmaker chairing the plenary session. Potential three-year jail sentence The lifting of the populist's parliamentary immunity- which is-intended to protect EU lawmakers against intimidation attempts - now permits a Paris court to prosecute Le Pen for posting three images of IS brutality on Twitter in 2015. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XHal Her tweets included a photo of James Foley, a US journalist who was decapitated by the militants. The offense-being considered is ""publishing violent images,"" which under certain circumstances can carry a penalty of three years in-prison and a fine of 75,000 euros ($78,930.00). Election year pressure Head of the right-wing National Front (FN) party, Le Pen is currently the front-runner to win the first round France's presidential election. According to the latest opinion polls, however, Le Pen would likely lose in the May 7 run-off to either conservative Francois Fillon or independent liberal candidate Emmanuel Macron by some 20 percentage points. Le Pen isn't the only candidate to have been hit by scandal during the French election campaigns, however,-with Fillon still refusing-to pull out of the presidential election despite being summoned by magistrates over the ""fake jobs"" scandal. - Macron quit as economy minister in August and launched his independent presidential bid in November. The 39-year-old centrist formed his own political movement, En Marche (Forward), and is seen as a reformer. He's never held elected office, but a December poll named him France's most popular politician. He's voiced admiration for German Chancellor Angela Merkel's refugee policy. The National Front leader has adopted a more moderate tone than her anti-Semitic father, party founder Jean-Marie Le Pen. But she still takes a hard line on immigration, saying children of irregular migrants should not have access to public education. She also wants France to withdraw from the eurozone and have a referendum on EU membership. It's predicted she'll advance to the second round. A surprise winner of the right-wing Republicans primaries, the socially conservative Fillon is seen to represent the interests of France's Catholic middle class. An admirer of former British Prime Minister Margaret Thatcher, he supports a liberal economic policy. Until Penelopegate struck, he was widely projected as the winner of a run-off against Le Pen. In a runoff against former French PM Manuel Valls in the Socialist primary, Hamon was the more left-wing choice of the two politicians. The 49-year-old supports a universal basic income and wants to reduce the traditional work week to 35 hours. He has also spoken in support of legalizing cannabis and increased investment in renewable energy. Author: Samantha Early ksb/sms (dpa, AFP, Reuters, AP)", -1818,2017/3/2,http://www.dw.com/en/15-un-envoys-to-assess-lake-chad-humanitarian-crisis/a-37776535?maca=en-rss-en-all-1573-rdf,15 UN envoys to assess Lake Chad humanitarian crisis,"Amid a threat of famine and the Boko Haram insurgency, diplomats from the UN Security Council are visiting the troubled Lake Chad region. Around 2.3 million people have been displaced by the seven-year conflict.","Admitting the crisis in Africa's Lake Chad region had been ""largely overlooked,"" British Ambassador to the United Nations Matthew Rycroft said he hoped the visit would ""shine a spotlight of international attention on the humanitarian crisis."" The trip, which began on Thursday, was set up to help drive donors to support new financing for the region. Four-nation trip Fifteen ambassadors from the UN's top decision-making body initially flew to Cameroon's capital, Yaounde, before heading to Chad, Niger and then on to Nigeria.- An insurgency by Islamist group Boko Haram in Nigeria, which has killed 20,000 people has spread throughout the Lake Chad region. Around 2.3 million people have been driven from their homes during a violent campaign in pursuit of Boko Haram militants, which in turn has created a humanitarian crisis that the UN said is leading to famine. Donors at a one-day conference have pledged a third of the UN's humanitarian appeal for the Lake Chad region. More than half of the region's population are in need of humanitarian aid. (24.02.2017) A new funding appeal for the Lake Chad region is to be launched at an international donors' conference in Oslo on Friday. Two million people have been displaced and many more are trapped in a humanitarian crisis. (23.02.2017) The Lake Chad Basin crisis is now at a turning point. Boko Haram's attacks and military counter-offensives have displaced at least 2.3 million people. (07.02.2017) Despite military gains against Boko Haram, a summit of West African and international leaders has been urged to do more to stop the extremists' deadly insurgency. Leaders met in Abuja, Nigeria's capital. (15.05.2016) Swedish diplomat Carl Skau said Lake Chad had been hit by a ""perfect storm"" of challenges ... terrorism, trafficking, serious underdevelopment, but also the effects of climate change."" He said it was vital that the trip was followed up with firm action by member states. Working with West African countries France's UN ambassador, Francois Delattre, told reporters that Security Council members also want to support the four countries ""in their fight against terrorism."" Delattre said the council will be encouraging the governments to facilitate access for humanitarian aid and to adopt ""a comprehensive approach to address the root causes of terrorism."" The UN is seeking $1.5 billion (1.42 billion euros) in funding for 2017 for the region - almost half of which is needed for northeast Nigeria, where 5.1 million people face acute food shortages. At a donor conference last week in Oslo, UN humanitarian chief Stephen O'Brien said 14 countries had pledged $672 million over the next three years to prevent a famine in the four countries. Germany's commitment amounted to $127 million. He said several other countries indicated they would pledge later this year and the UN also expects a contribution from the United States. Boko Haram, which Amnesty International said has a fighting force of around 15,000 strong, took up arms in 2009, but the insurgency has since spread with frequent suicide bomb attacks. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UmTR mm/sms (AFP, AP)", -1819,2017/3/2,http://www.dw.com/en/disney-to-feature-first-gay-character-in-beauty-and-the-beast/a-37776591?maca=en-rss-en-all-1573-rdf,Disney to feature first gay character in 'Beauty and the Beast',"The live-action remake of ""Beauty and the Beast"" will be making Disney history by introducing a ""gay moment,"" director Bill Condon revealed in an interview with ""Attitude.""","""Beauty and the Beast"" is a romantic classic centered on a heterosexual love story, but its upcoming remake will be breaking new ground by featuring Disney's first ""exclusively gay moment,"" filmmaker Bill Condon revealed in an interview with the magazine ""Attitude."" The central story stars Emma Watson as Belle and former-""Downton Abbey""-star Dan Stevens as the Beast. Accompanying the film's main antagonist, Gaston (Luke Evans), is his sidekick, a character called LeFou, played by Josh Gad. Emma Watson stars in the new ""Beauty and the Beast"" ""LeFou is somebody who on one day wants to be Gaston and on another day wants to kiss Gaston,"" Condon-said in the interview. ""He's confused about what he wants. It's somebody who's just realizing that he has these feelings. And Josh makes something really subtle and delicious out of it."" Asked-to confirm this by television host Chris Parent, actor Josh Gad replied by posting on twitter that he was ""beyond proud"" of his character. Condon, who is openly gay himself, pointed out that the soundtrack to Disney's 1991 version of the tale was composed by Howard Ashman and Alan Menkan. Ashman was battling AIDS during production and died before the release of the film. As ""Beauty and the Beast"" is also a story about feeling ostracized and finding acceptance, some of the lyrics echoed Ashman's own stigmatization.--- The remake of ""Beauty and the Beast"" hits theaters March 16 in Germany and March 17 in North America. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YTrO -", -1820,2017/3/2,http://www.dw.com/en/philippine-police-conducted-vigilante-killings-human-rights-watch-says/a-37777193?maca=en-rss-en-all-1573-rdf,"Philippine police conducted vigilante killings, Human Rights Watch says","As bodies pile up on the country's poorest streets, so does the evidence implicating the Philippine National Police (PNP) and President Rodrigo Duterte in the extrajudicial killings. Ana P. Santos reports from Manila.","International watchdog Human Rights Watch (HRW) today released a report showing-the Philippine National Police (PNP) are-responsible for the vigilante-style killings of drug suspects. The police also resorted to falsifying reports and planting evidence to justify the government's brutal drug war, the investigative-document-said. Rodrigo Duterte's core campaign promise to crackdown on illegal drugs pushed him to his presidential election victory last July 1. Since then,there have been more than 7,000 deaths due to-drug-related killings. The PNP has always carefully divided these into ""legitimate police operations,""?such as buy-bust operations, and ""vigilante style killings""?carried out by unknown assassins. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XgaJ However, the HRW report ""found no such distinction""?between extrajudicial killings and deaths as a result of police operations. ""It's clear that the role of Duterte and some of his senior government ministers implicate him in instigation of police personnel to commit extrajudicial killings and incitement of members of the public to do likewise,""?Phelim Kine, HRW deputy director for Asia, told DW. Systematic killings in the country's poorest areas The report investigated 24 incidents involving alleged drug dealers and users that resulted in 32 victims. Witness interviews with the victims' family members and neighbors revealed planned and systematic killings of drug suspects in some of the country's most impoverished communities. ""Assailants typically worked in groups of two, four, or a dozen. They would wear civilian clothes, often all black, and shielded their faces with balaclava-style headgear or other masks, and baseball caps or helmets. They would carry handguns. They would frequently travel by motorcycle""�two to a bike,""?the report detailed. Kine accuses President Duterte of direct involvement in vigilante killings Additionally, local residents claimed that before shootings, uniformed police would be seen roaming in the vicinity, presumably to secure the perimeter. ""There is no evidence that Duterte has ordered the killings of any specific individuals, but the principle of command responsibility means that he is culpable for his role as an enthusiastic cheerleader for state-sanctioned slaughter,""?Kine said. ""What's required is for the United Nations to form an independent investigation of the thousands of killings linked to Duterte's ""War on Drugs.""?That investigation may well uncover compelling evidence that links Duterte to crimes against humanity,""?he added. A 70-page, tell-all journal on death squads The HRW report comes on the heels of a report by Amnesty International in Februarythat exposed ""an economy of murder""?where police are paid as much as $300 for each drug suspect killed. But perhaps the most damning piece of evidence to come to light is the admission of retired senior Davao police officer Arturo Lascanas. He confirmed the existence of as well as-his direct involvement in the Davao Death Squad (DDS), a vigilante group that Duterte organized and funded when he was mayor of Davao City in the southern Philippines. ""Here ends my blind obedience and loyalty to one person, Mayor Rodrigo Roa Duterte, who is now president of our country,""?Lascanas said in a press conference late February. At one point, the 57-year-old broke down and confessed that he had ordered the killing of his two brothers because they were involved in the illegal drug trade. Lascanas claimed the DDS started out killing petty offenders and drug pushers before expanding to target-political rivals-and outspoken critics, including a broadcast journalist-who frequently used his radio program to lambast Duterte. A report by the Philippine Center of Investigative Journalism (PCIJ) revealed that in 2015, Lascanas began documenting DDS activities. In his now 70-page-long handwritten journal, he detailed the death squad's bloody exploits and made an ominous prediction. ""If ever [Duterte] will win the presidency and apply in the whole country his Davao formula of bloodletting on the premise of peace and order and illegal drugs, eventually he will lead this country (to) hell, and deceptively perpetuate himself to lifetime in power,""?wrote Lascanas. Lascanas' admission is a direct turnaround from September last year when he adamantly denied the existence of the DDS, dismissing it as ""media hype.""?It also corroborates the earlier testimony of Edgar Matobato, a self-confessed assassin who came forward in a Senate panel in September 2016 and narrated his role as a foot soldier in the DDS killings. Activists march against the war on drugs A call to-international action Senator Antonio Trillanes, who has emerged as one of the fiercest critics of -the Duterte Administration, believes Lascanas' statements and writings undeniably demonstrate Duterte's top-down involvement in the extrajudicial drug-related deaths. ""As to Lascanas'-testimony, having dealt numerous times with President Duterte himself, this would directly implicate Duterte in numerous cases of murder, contract killings and assassinations. It also shows that Duterte used the DDS operations as a template for-his war on drugs,""?Trillanes added. The senator also called for broader international steps to be taken against the Philippine's president. ""It is high time that the International Criminal Court (ICC) steps in to stop this carnage perpetrated by President Duterte and make him accountable for his actions,""?Trillanes told DW via phone. After rogue officers were found responsible for the kidnapping and death of a South Korean businessman, Duterte temporarily suspended the PNP in January 2017 from taking part in drug operations. However, police resumed drug operations on February 28 on Duterte orders after-reports that drug dealers had returned-to the streets. The body count may once more begin to rise.-", -1821,2017/3/2,http://www.dw.com/en/deutsche-telekom-profit-hit-by-brexit-vote/a-37777198?maca=en-rss-en-all-1573-rdf,Deutsche Telekom profit hit by Brexit vote,"German telecommunications giant Deutsche Telekom has reported a huge fall in net profit in 2016, as its stake in Britain's BT lost value in the wake of the country's decision to leave the European Union","Net profit for 2016 was down 18 percent to 2.67 billion euros ($2.8 billion), the German telecommunications firm announced on Thursday, hit by a writedown in the value of BT. Deutsche Telekom's 12-percent stake in the British telecoms company declined by 2.2 billion euros in value ""mainly as a result of a fall in BT's share price and in the pound sterling following the Brexit referendum,"" the German group said. Deutsche Telekom's US subsidiary, T-Mobile US, has announced it is expanding its customer loyalty program by giving away shares to account holders. It said the move is a first in the history of publicly traded companies. (07.06.2016) German security experts have suggested internet outages that have hit hundreds of thousands of Deutsche Telekom customers in Germany were part of a worldwide attempt to hijack routing devices. (29.11.2016) German telecommunications giant Deutsche Telekom has reported mixed results for the second quarter. Its T-Mobile subsidiary in the US logged a strong performance, but overall net profit dipped nonetheless. (11.08.2016) Britain's June vote to leave the European Union took the global markets by surprise, sparking lingering uncertainty and unease over London's future relationship with Brussels. Deutsche Telekom stressed that the dip in profit would not affect its payout of shareholder dividends - scheduled to increase by five euro cents to 0.60 euros per share. Apart from the BT loss, Deutsche Telekom looks healthy, with underlying profit having outpaced the group's own forecasts, adding almost 8.0 percent and reaching 21.4 billion euros. Revenues grew 5.6 percent in 2016 to more than 73 billion euros The company's American unit T-Mobile USA performed especially strongly, adding 8.2 million customers last year in the highly-competitive and saturated US mobile phone market. T-Mobile USA's revenues grew 16 percent to $37.3 billion, while profits doubled to $1.5 billion. By contrast, Deutsche Telekom's revenues in Germany and the rest of Europe fell as its fixed-line phone business continued to decline. Nevertheless, the company said it would aim to increase revenues in 2017 with the goal of achieving an operating profit of around 22.2 billion euros, up four percent on the 2016 figure. uhe/kd (dpa, Reuters, AFP) -", -1822,2017/3/2,http://www.dw.com/en/safe-space-travel-protecting-alien-worlds-from-earthlings-and-vice-versa/a-37764635?maca=en-rss-en-all-1573-rdf,Safe space travel: Protecting alien worlds from earthlings - and vice versa,"The discovery of seven new Earth-like planets has risen hope to find extraterrestrial life. During space explorations, though, researchers have to be careful to avoid contaminating other worlds with life from Earth.","The dwarf star Trappist-1 and its seven newly discovered planets are promising targets to search for alien life -- but researchers might not even have to travel that far. ""We might find alien life in our own backyard of our solar system,"" said NASA's Kevin Peter Hand at the meeting of the American Association for the Advancement of Science (AAAS) in Boston this month. Astrobiologists searching for extraterrestrial life pin their hopes on Jupiter's moons Europa, Callisto and Ganymede as well as on Saturn's moon Enceladus. ""They are covered in ice but beneath there might be oceans with rocky seafloors,"" said Hand, chief scientist at NASA's Jet Propulsion Laboratory in Pasadena. NASA plans to launch a rocket in 2024 sending a lander to Europa which will explore the moon, take samples and possibly-""find life that is alive today.""- Sure, the Europa mission probably won't discover intelligent, human-like life and possibly not even fish-like life. But bacteria, which have developed there, would be just as fascinating for researchers. Although, there is one thing they have to ensure in the first place. Does Europa harbour life? Avoiding hitchhikers The worst-case scenario for astrobiologists is to one day find life on Europa or elsewhere which has been brought there by humans themselves. ""We don't want to study bacteria from Florida [on other planets],"" said Norine Noonan, biologist at the University of South Florida in St. Petersburg.- Just as much as researchers have to prevent potential alien organisms from contaminating Earth, they work hard on protecting space from Earth-based life. ""Any equipment that is sent to touch down on moons or other planets is sterilized several times during its construction"", Christian Gritzner of the German Aerospace Center (DLR), told DW. Rovers, landers and other equipment that are sent to space are built in a clean facility, heated up to over 110 degree centigrade (230 degree Fahrenheit) for several hours or even days, they are irradiated with UV light and sanitized with solvents - measures to kill any bacterium or fungus that might try to get a free ride into outer space. The Europa lander will also be wrapped in a biobarrier, NASA's Kevin Hand explained - an aluminum foil-like sheath that keeps out any contaminants until it reaches Jupiter's moon. ""The truth is still out there,"" Noonan pointed out. ""Let's not destroy the opportunity to find it."" Protecting the ecosystem on other planets - every astronaut's challenge Good citizens of the solar system Protecting other worlds from Earth-based organisms is not just a voluntary moral conception which some responsible researchers cling to.-It is international space law. United Nations Outer Space Treaty which entered into force in October 1967 calls for all states to""avoid harmful contamination of space and celestial bodies.""-The treaty came into being in preparation of the landing on the moon. People were afraid that a visit to the moon might bring uninvited guests to Earth, for example, a deadly microorganism that causes a catastrophic outbreak - just like in the sci-fi novel ""The Andromeda Strain"" by Michael Crichton. All rock samples that were flown in from the Moon - as well as the first men on the moon - were put into strict quarantine when entering Earth.-Only later, when researchers had realized there is nothing alive on the Moon, rules were relaxed.-Still later, people realized that contamination works in both directions.- ""NASA found strange bumps on the lens of some camera equipment of the unmanned Surveyor landers that had been sent to the Moon three years before,"" said Christian Gritzner. ""Nobody knew what it was."" These bumps turned out to be flu viruses. They seem to have been delivered from Earth to the Moon with the help of some technician who had sneezed on the equipment, Gritzner explained. ""Even after 3 years in space, these viruses were still able to reproduce in the lab."" According to Gritzner, this was the moment that people realized how crucial planetary protection really was. ExoMars lander Schiaparelli - particularly germ-free Leaving Mars as it is ""It is unlikely we'll find life on Mars today,"" said Norine Noonan.-Even if there had once been bacteria or other simple organisms, they are possibly long gone.-Still, researchers might find remnants of previous life on Mars and get to know how it emerged and what it was like. Unlike the Moon and many other celestial bodies in our universe, Mars has an atmosphere and a surface that can harbor life - that makes traveling there even more complicated. ""Any hitchhiker we might deliver there can spread,"" said NASA's Kevin Hand.-According to the European Space Agency ESA, the ExoMars project which tries to find life on Mars, even built a new cleanroom in which to construct itslander Schiaparelli.-The landing module even had a portable ""clean tent"" which traveled with it to its launch site in Baikonur. ""We cannot bake humans"" The challenge to avoid contamination gets even harder when astronauts join their equipment on its travel to Mars - i.e. on a manned spaceflight. ""We are spewing fountains of bacteria,"" said Norine Noonan, adding that it is impossible to sterilize humans: ""We cannot put them into an oven and bake them."" It will still be a long way to figure out which measures will protect Mars from life on Earth during such a journey. ""Maybe a habitat on Mars will have a sanitizing air lock spraying disinfectants,"" Gritzner said. Astronauts would have to pass the lock every time they enter the Mars surface from their space settlement. But there will be time enough to figure that out, Gritzner adds, as ""a manned spaceflight to Mars is still a long way off.""", -1823,2017/3/2,http://www.aljazeera.com/news/2017/03/european-parliament-lifts-marine-le-pen-immunity-170302111306156.html,Marine Le Pen's immunity lifted by European Parliament,French far-right leader Marine Le Pen loses her EU immunity after tweeting images of ISIL brutality.,"The European Parliament stripped far-right French lawmaker and presidential candidate Marine Le Pen of parliamentary immunity for posting graphic images of victims of the ISIL group. The lifting of immunity allows a Paris court to prosecute her for posting three images of brutality by the Islamic State of Iraq and the Levant, also known as ISIS,-on Twitter in 2015, including a photo of the decapitated corpse of US journalist James Foley. The offence being considered is ""publishing violent images,"" which under certain circumstances can carry a penalty of three years in prison and a fine of $78,930.00. -- Lawmakers voted by a ""big majority"" on Thursday to deprive Le Pen of her immunity in the case, acting parliament speaker Dimitrios Papadimoulis said. Parliamentary immunity is intended to protect EU lawmakers against intimidation attempts. EU officials said that the vote came after-a request from the French judiciary. Responding to the vote on Wednesday, Le Pen said: ""This only shows French citizens what the EU is, what the European parliament is and that it's all part of the system that wants to stop the French people's candidate that I am"". Florian Philippot, a-vice president of Le Pen's party the National Front (FN), defended the Eurosceptic candidate's 2015 Twitter posts. ""Showing and naming the horror of Islamism allow us to fight against it,"" Philippot told the Reuters news agency. Le Pen has previously refused to attend a French police interview over the investigation, citing her status as an MEP. But her head of cabinet has been placed under formal investigation for ""the dissemination of violent images"". READ MORE: Jean-Marie Le Pen fined for inciting hate against Roma The French leader, locked in an increasingly tight three-way race to succeed-Francois Hollande-this spring, has already seen her earnings as MEP cut for a different case involving-alleged misuse of EU funds. She has denounced the legal proceedings against her as political interference in the campaign, where she is the leading candidate. She has called for a moratorium on judicial investigations until the-election-period is over. Le Pen is expected to win the first of the two election rounds but likely to lose in a runoff,according to polls, which-also show that her legal battles seem to have little effect on her supporters. Le Pen's immunity has been lifted before, in 2013. She was prosecuted in 2015 for ""incitement to discrimination over people's religious beliefs"", for comparing Muslims-praying in public-to the Nazi occupation of-France-during World War II. Prosecutors eventually recommended the charges be dropped. Source:-Al Jazeera and news agencies", -1824,2017/3/2,http://www.aljazeera.com/news/2017/03/compulsory-11-month-military-service-face-threats-170302104725356.html,Compulsory 11-month military service 'to face threats',Minority government set to introduce bill to restore 11-month conscription this summer for all Swedes born after 1999.,"Sweden has announced that it will reintroduce compulsory military service starting this summer to respond to global security challenges including from Russia. ""The government wants a more stable staff supply system and to boost its military capability because the security situation has changed,"" Swedish Defence Minister Peter Hultqvist told TT news agency on Thursday. The Scandinavian nation, which has not seen armed conflict on its territory in two centuries, ended conscription in 2010 after it was deemed an unsatisfactory way of meeting the needs of a modern army. Sweden's minority government on Thursday is set to introduce to the parliament a bill to restore conscription this summer for all Swedes born after 1999. It will last for 11 months. REAd MORE: Sweden\'s backlash - Why the tide is turning for refugees The measure is expected to be adopted by parliament, subject to agreement between the leftist government and the centre right opposition. Some 13,000 young Swedes are expected to be mobilised from July 1, but only 4,000 of them, 18-year-olds of both sexes, will be selected for military service based on motivation and skills. They will be called up each year after January 1 2018. ""The new security situation is also a reality, partly in the form of Russian power politics which has long been underestimated and downplayed,"" Wilhelm Agrell, a security expert at Lund University, told AFP. Sweden is not a NATO member but has signed the body's Partnership for Peace programme launched in 1994 to develop military cooperation between NATO and non-member countries. On defence issues, Sweden is very close to its Finnish neighbour, which has with Russia a border of 1,340km. The Nordic and Baltic region's only non-aligned countries, Finland and Sweden, have stepped up their military cooperation with US, following concerns over Russia's increased military activity in northern Europe. Finland accused Moscow last year of violating its airspace when two Russian fighter jets flew on separate occasions in the south of the coastal town of Porvoo. The incident raised alarm in Sweden. Russia has warned against Sweden and Finland joining NATO, an issue that has been debated in both countries. Source:-AFP news agency", -1825,2017/3/2,http://www.aljazeera.com/indepth/inpictures/2017/03/fighting-survive-famine-somalia-170302065957014.html,Drought in Somalia: Time is Running Out,,"Puntland, Somalia --A week after his inauguration, President Mohamed Abdullahi Farmajo declared a state of disaster in his drought-stricken country of Somalia, where the lives of 6.2 million people are now at risk. Even as the ongoing war against al-Shabab continues and African Union forces (AMISOM) fight to assist the fragile government, the looming famine has become a priority. The drought will be a trial for all those involved in Somalia's struggles. It will test the international community's response, the government's ability to assist, and the strength of security provided by the African Union forces. In the far north of Somalia, three years with little rain has had increasingly disastrous effects for a population reliant on the land. The parched earth has failed to produce food for the camels and goats that the people depend on for their income, meat, and milk for their children. Local leaders in Puntland estimate the pastoralists have already lost 65 percent of their animals. While the men accompany the remaining livestock in the hunt for grazing land, the women and children are migrating towards towns on main roads in search of alternative sources of food. Displaced people have been setting up tents along the roads in hope of receiving aid from passing vehicles. It's there the women, children, and elderly wait for assistance in the heat and dust. In the coming months, if the word famine is used to describe the crisis in Somalia, it will mean that help never came.-", -1826,2017/3/2,http://www.aljazeera.com/indepth/features/2017/03/gaza-report-justice-israel-victims-170302091400487.html,Gaza report: 'Not about justice for Israel's victims' Jonathan Cook,The report comes as Israeli officials have been warning of the likelihood of another round of hostilities. By,"The Israeli leadership shows no signs of heeding the lessons of an official report into the 2014 Gaza war that led to massive destruction and loss of life in the tiny coastal enclave, Palestinians warned this week. After a two-year inquiry, the State Comptroller, an official Israeli watchdog, published a report on Tuesday into the 51-day war, which began in July 2014. It was highly critical of Israeli government officials, as well as Israel's military and its intelligence services. In particular, the 200-page document faulted IsraeIi Prime Minister Benjamin Netanyahu for failing to address the mounting humanitarian crisis in Gaza - conditions that made hostilities ever more likely, according to the report. Netanyahu was also blamed for failing to pursue diplomatic moves that might have averted the confrontation or brought it to a quick end, sparing much of the bloodshed. The war killed more than 2,250 Palestinians, a majority of them civilians, and 73 Israelis, almost all of them soldiers. According to United Nations figures, more than 100,000 Palestinians were made homeless by Israeli bombing that destroyed swaths of the enclave. It is hard to believe that there will be any serious lessons learnt by Israel's political leadership from this report. Ghassan Khatib, a former Palestinian Authority minister Comptroller Joseph Shapira's findings come as Israeli officials have again been warning of the likelihood of another round of hostilities with Gaza, possibly within the next few months. The precariousness of the situation was underscored this week as Israeli air strikes hit five sites in Gaza on Monday, wounding four, after a rocket from Gaza landed in an open space in Israel.- Israel has launched three major military operations against Gaza over the past eight years, after the Islamic group Hamas won Palestinian elections in 2006 and took control of the enclave a year later. Israel has imposed a blockade ever since, tightly limiting the entry and export of goods. But Ghassan Khatib, a former Palestinian Authority minister, said the report's section on the Israeli government's political failings had been overshadowed by the rest of the report, which dealt with operational and intelligence shortcomings.- ""It is hard to believe that there will be any serious lessons learnt by Israel's political leadership from this report,"" Khatib told Al Jazeera.-So far, the debate about the report in Israel has focused on a lack of preparation for coping with what Israelis term Gaza's ""terror tunnels"". Hamas used a network of concealed tunnels to launch surprise attacks after Israeli ground forces entered the enclave.Khatib said: ""The comptroller failed to examine the deeper issue of the Israeli leadership's motivation in repeatedly heating up the front with Gaza. That was all about internal political competition, about jockeying for position within the ruling government coalition."" Gaza made an easy military target for Israel because of its prolonged isolation, Khatib added.""The threat [posed by Gaza] has been exaggerated to the Israeli public to justify these wars. Successive governments have expected to win with little cost to their own side. Attacking Gaza empowers the right and helps to secure its success at the next election."" Shapira's report did not recommend action be taken against any of the officials it identified, or accuse them of committing crimes. Instead it highlighted a failure to recognise the tunnels threat, a lack of intelligence sharing, and inadequate operational plans. Difficulties locating and destroying the tunnels, according to the report, led to a more protracted ground operation than expected. The implication was that this increased casualties on both sides. Most Israeli commentators thought it unlikely Netanyahu would pay a political price for these criticisms, especially after such a long delay in publishing the report. Nonetheless, in an apparent sign of Netanyahu's discomfort with the findings at a time when he is facing a series of corruption investigations, he lashed out preemptively at Shapira at a meeting of his Likud party on Monday. He suggested that the ombudsman had betrayed the security establishment. In a statement the next day, as the report was released, Netanyahu claimed that the 2014 war had been an exceptional success. He said Israel had ""hit Hamas harder than it had ever been hit before"" and that, as a result, there had been ""unprecedented quiet"" from Gaza.- Khatib said Shapira's report overlooked the escalation of hostilities by Israel in the weeks preceding the war.-Israel, he noted, had made mass arrests of Palestinians in the West Bank as it searched for three Jewish youths who had been abducted. They were later found killed. INTERACTIVE: 24 hours in Gaza This week, an editorial in Israel's daily Haaretz described the war as Israel's ""revenge"" for the youths' deaths. The editorial criticised Shapira for failing to question the wisdom of a ""scorched-earth policy"" by Israel that had kept Gaza's population of 2 million under a lengthy blockade. Given this strategy, the paper said, a next round of hostilities was inevitable. Hamdi Shaqura, deputy director of the Palestinian Centre for Human Rights, based in Gaza City, said most of the Palestinian public had shown little interest in the report. ""This investigation and others like it are not interested in justice for the thousands of victims of Israel's brutal attacks,"" he told Al Jazeera. ""This is about Israel refining its operational capabilities so it can prepare better for the next attack. The chief beneficiaries will not be Palestinians, but the war criminals in Israel who will draw conclusions about how they can better conceal their crimes next time."" Shaqura said the report's references to the humanitarian crisis in Gaza were divorced from political realities. ""This humanitarian crisis isn't an accident. It has been sustained- by Israel's siege for more than 10 years. Israel wants Gaza isolated, and its population barely able to survive. That is the status quo for Israel."" He noted that an Israeli defence ministry document from 2008, made public four years later, included advice on the amount of food Israel should allow into Gaza to keep the population on the minimum number of calories. Shaqura said: ""Even when this report deals with the humanitarian crisis in Gaza, it is not in the context of finding a political solution to end it. Rather, Israel is more interested in improving its management of the crisis."" The comptroller's report noted that Netanyahu's government had done almost nothing to address warnings from military officials more than a year before the 2014 war that Gaza's humanitarian crisis was unsustainable. In this context, Shapira highlighted an apparent mea culpa from Moshe Yaalon, the then defence minister, two days into the war. He reportedly told officials: ""If Hamas' distress had been addressed a few months ago, Hamas might have avoided the current escalation.""- In fact, Barak Ravid, an analyst for Haaretz, observed that Israel had made things substantially worse in Gaza in the weeks preceding the hostilities.-In early June 2014 it had imposed ecomomic and diplomatic sanctions on a Palestinian unity government formed between Hamas in Gaza and Fatah in the West Bank, in an attempt to undermine it, said Ravid. Shortly afterwards, Netanyahu's government sought to isolate Robert Serry, then the UN's special peace envoy, as he battled to transfer funds from Qatar to pay the salaries of public workers in Gaza. Gaza ""was a volcano waiting to erupt"", wrote Ravid.- Haidar Eid, an academic at al-Aqsa University in Gaza, said conditions had deteriorated even further since 2014. He noted that two years ago the UN forecast that Gaza could be ""uninhabitable"" by 2020. It said the large-scale destruction of Gaza's infrastructure in 2014 had only accelerated that process.- More than 90 per cent of Gaza's water is considered ""unfit"" for human consumption. Shortages of electricity provoked the first mass public protests in January, with some families suffering blackouts for up to 21 hours a day.- Israel has also continued the enclave's isolation. Last month a delegation from the European parliament was again denied access to Gazaas it sought to assess the continuing need for reconstruction since the 2014 war.- READ MORE: Gaza: 100.000 hours of isolation And Netanyahu is reported to be hampering efforts to offer Gaza relief. A proposal by transport minister Yisrael Katz to build an artificial island off Gaza's coast to serve as a seaport and airport has yet to be discussed by the cabinet, a year after it was raised. At the same time, Herzl Halevi, head of military intelligence warned a parliamentary committee of growing despair in Gaza. He reportedly said: ""Israel will be the first to feel it when things explode.""- Eid told Al Jazeera: ""When Israeli 'experts' talk about how to manage Gaza's crisis better, they sound like they are discussing how best to run a zoo so the animals remain quiet."" He said Hamas supporters in Gaza viewed the report's focus on the tunnels as a vindication of the group's claims that it had been victorious in 2014. ""Commentators here believe that this report has the power to bring down Netanyahu,"" he said. But Netanyahu's difficutlies with the report and his corruption scandals were also seen as a dangerous moment. Most Palestinians, said Eid, agreed with Israeli analysts that another outbreak of hostilities was on the horizon. ""When Netanyahu is in such trouble, the assumption is that he will exaggerate the military threat of Hamas and the danger of the tunnels to justify launching another massacre,"" he said. ""He needs a big distraction and Gaza can supply it."" Source:-Al Jazeera News", -1827,2017/3/2,http://www.aljazeera.com/indepth/inpictures/2017/03/united-states-tornadoes-ravage-states-killing-3-170302063836895.html,,,, -1828,2017/3/2,http://www.aljazeera.com/news/2017/03/philippines-drug-suspects-routinely-killed-police-170302085344259.html,Philippines: Drug suspects 'routinely' killed by police,Human Rights Watch report alleges officers execute drug suspects and plant evidence to cover up their crimes.,"A human rights watchdog has accused police in the Philippines of falsifying evidence to justify unlawful killings in the government's bloody war on drugs and pointed the finger at President Rodrigo Duterte as being ultimately responsible. Human Rights Watch said on Thursday-in a report that Duterte and other senior officials instigated and incited the killings of drug suspects in a campaign that could amount to crimes against humanity. Police have repeatedly carried out extrajudicial killings of drug suspects, then falsely claimed self-defence, and planted guns, spent bullets or drugs on the bodies. ""Our investigations into the Philippine drug war found that police routinely kill drug suspects in cold blood and then cover up their crime by planting drugs and guns at the scene,"" said Peter Bouckaert, emergencies director at Human Rights Watch and author of the report. Rodrigo Duterte accused of paying police to kill- ""President Duterte's role in these killings makes him ultimately responsible for the deaths of thousands."" The report said masked gunmen taking part in killings appeared to be working closely with the police, casting doubt on government claims that vigilantes or rival gangs are behind majority of the killings. It said in several instances it investigated, suspects in police custody were later found dead and classified by police as ""found bodies"" or ""deaths under investigation"". The United Nations should create an independent investigation to determine responsibility and ensure accountability, the report said. Presidential spokesman Ernesto Abella said none of the accusations have been proven in court. Until that happens, ""such claims are mere hearsay"", he said. National police spokesman Dionardo Carlos said Human Rights Watch should share its information with the police so any perpetrators can be charged in court. Carlos said police data showed 2,500 people had been killed in police operations, while another 4,000 plus deaths were still being investigated, of which 680 were drug related. Murder charges involving 1,330 victims have been filed with prosecutors or courts, but the details were not known. Rodrigo Duterte's death penalty campaign clears hurdle The Human Rights Watch report draws heavily on interviews in metropolitan Manila with 28 family members of victims, witnesses to police killings, journalists and human rights activists. It also references initial police reports of killings, which Human Rights Watch said its field research consistently contradicted. Duterte barred the 170,000-strong national police from his anti-drug crackdown a few weeks ago after two anti-narcotics officers were implicated in the killing of a South Korean businessman in an extortion scandal that allegedly used the crackdown as a cover. He announced Tuesday that selected policemen will return to the anti-drug campaign, but that the main anti-narcotics agency will continue to supervise operations. Source:-AP news agency", -1829,2017/3/2,http://www.aljazeera.com/news/2017/03/isil-pulls-syria-palmyra-170302072902496.html,ISIL pulls back from Palmyra,Suicide bombers and land mines hampering progress by Syrian government forces to recapture the ancient city.,"ISIL fighters have withdrawn from much of the Syrian oasis city of Palmyra as government forces slowly enter its ravaged ancient ruins because of land mines and suicide bombers, a war monitor said on Thursday. Russian-backed Syrian troops pushed into a western neighbourhood of the city late on Wednesday after fierce clashes with the ISIL fighters. By Thursday morning, Islamic State of Iraq and the Levant-cadres had withdrawn to residential neighbourhoods in the east of the city, the UK-based Syrian Observatory for Human Rights said. ""IS withdrew from most of Palmyra after laying mines across the city. There are still suicide bombers left in the eastern neighbourhoods,"" Syrian Observatory head Rami Abdel Rahman told AFP news agency. ""Government forces have not yet been able to enter the heart of the city or the eastern parts."" READ MORE: On trial - the destruction of history during conflict Palmyra's ancient ruins have long been listed by UNESCO as a world heritage site. Before ISIL entered the city in May 2015, the city boasted temples, colonnaded alleys, and elaborately decorated tombs that were among the best preserved classical monuments in the Middle East. But the armed group launched a campaign of destruction, the scale of which was fully revealed when government forces briefly retook the city with Russian support last year. Satellite imagery has shown that ISIL has demolished more monuments since it recaptured Palmyra from government forces in December. READ MORE: When Muslims ruled the civilised world Supported by Russian air strikes and ground troops, Syrian government forces have battled through the desert for weeks to reach Palmyra. The Syrian conflict started as a largely unarmed uprising against President Bashar al-Assad's rule in March 2011. It quickly morphed into a full-scale war that has killed hundreds of thousands of people with more than half of the country's population displaced inside and outside of Syria.- Source:-News agencies", -1830,2017/3/2,http://www.aljazeera.com/indepth/opinion/2017/03/core-germany-refugee-policy-170302073029337.html,,,"On March 2 and 3, German Chancellor Angela Merkel travels to Egypt and Tunisia. Concerns about migration and refugees will top the agenda of her talks with Egypt's President Abdel Fattah el-Sisi and Tunisian Prime Sinister Youssef Chahed. As she prepares for crucial elections this September, for many voters Merkel's tenure is associated with the record number of 900,000 refugees that came to Germany in 2015 (another 280,000 arrived in 2016). The chancellor is under pressure to keep the promise she made late last year: ""A situation like we had in the late summer of 2015 can, should and must not repeat itself."" This promise was her answer to the charges of ""loss of control"" that have been have the heart of the case against Merkel by critics from within her own party and also the far-right Alternative for Germany (AfD). To make good on her promise, Merkel needs the cooperation of North African countries which therefore have become a key focus of German diplomacy. Thanks to the border controls in the Balkan states - leaving refugees stranded in Greece - and the European Union-Turkey deal, the number of migrants coming to the EU from Turkey has gone down significantly. This has shifted the focus back to the Central Mediterranean. In 2016 alone, 181,000 migrants and refugees reached Europe irregularly with the help of traffickers operating out of war-torn Libya and other countries including Egypt. Many died while making the perilous crossing. Germany and other EU countries seek to end this situation. As agreed at a recent EU Summit in Malta last month, the key goal is to ""ensure effective control of our external border and stem illegal flows into the EU"". Political leaders in Germany and beyond have realised that only if the EU can demonstrate to its citizens that it is in control of its external borders, the Schengen passport-free travel zone, one of the key achievements of European integration, can survive. Controlling borders is a precondition for sustaining open societies in Europe. Advocates of liberal democracy and open society will be punished at the ballot box if they are seen as allowing for uncontrolled immigration into Europe. In this sense, controlling borders is also a precondition for sustaining the political willingness to welcome refugees in Germany --polls indicate continuing support for accepting refugees in a controlled process but returning them to their homeland once their countries are safe. The need for control is an assessment widely shared across the political spectrum in Germany. The disagreement is on the trade-offs involved in dealing with transit countries in the Mediterranean. Green Party leaders have accused Merkel of ""striking dirty deals"" at any price. She has faced strong criticism for going soft on Turkish President Recep Tayyip Erdogan's authoritarianism for the sake of the deal on refugees. She faces similar challenges in her dealings with the Egyptian president. Sisi has a record of repression and human rights abuse. German NGOs operating in Egypt (such as the Konrad Adenauer Foundation which is close to Merkel's party) have been harassed by Egyptian authorities, some, such as the Friedrich Naumann Foundation, even driven out of the country. READ MORE: 40 percent of Germans want Merkel to quit over refugees Still, Merkel has referred to Egypt as a ""stabilising element"" in the region. Her hope is that Egypt will play a constructive role in Libya, which is currently the weakest link in the North African refugee situation. As long as there is no effective government in place and as long as the terrible conditions for refugees persist in Libya, hopes for any EU-Turkey style agreement with Libya remain pipe dreams. Given the unstable situation in Libya, German politicians have set their sights on the more stable transit countries, including Tunisia. Christian Democratic Union Interior minister Thomas de Maiziere and Social-Democratic parliamentary leader Thomas Oppermann have both called for establishing EU asylum processing centres in North Africa. The idea is for asylum requests to be handled by EU authorities in North Africa. This would allow to return migrants rescued by EU member state authorities in the Mediterranean to North Africa, thereby making illegal crossings less attractive and destroying the traffickers' business. The fight between the [Hungarian PM Viktor] Orban-type ethnic nationalists and advocates of an inclusive nationalism is a decisive frontier in the battle for preserving open societies in Europe. - The Tunisian prime minister has rejected the idea, saying that this would destabilise Tunisia. This led Merkel to avoid the topic during Chahed's visit to Berlin last month. She did, however, press Chahed on cooperating better on returning rejected asylum seekers home from Tunisia. This is a burning concen for Merkel given that young males from North Africa with no prospects for being granted asylum are seen as a very problematic group in the German public debate (the fact that Anis Amri, the perpetrator of the Berlin Christmas market attack, was a rejected asylum seeker from Tunisia only added to this). Merkel will likely press this issue again during her visit to Tunis. Other elements of Merkel's refugee policy also meant to keep numbers down are less controversial. These include spending more on protecting refugees in the Middle East and Africa and stepping up cooperation with African countries in the hope of reducing the reasons to migrate to Europe. This is why economic development in Africa is one of the priorities of Germany's G20 presidency this year. More controversially, this also includes cooperation on more effective border control with regimes such as Eritrea that are the countries of origin for a number of asylum seekers making their way up north to Europe. But cooperation with North African countries will remain the centrepiece of trying to reassert control. Indeed, the need to protect external borders and control migration flows is what unites all EU governments, from Germany to Hungary. READ MORE: How a selfie with Merkel changed Syrian refugee's life What divides them is how they deal with the issue of refugees and migrants - especially of Muslim origin - domestically. Just this week, Hungarian prime minister Viktor Orban called for ""preserving ethnic homogeneity"". Orban has consistently stoked fears of Muslim immigration as increasing terrorism and threatening Europe's cultural heritage in order to consolidate his power. Other governments, such as Poland, have used similar language that has been echoed by the right-wing AfD in Germany. The fight between the Orban-type ethnic nationalists and advocates of an inclusive nationalism is a decisive frontier in the battle for preserving open societies in Europe. Thorsten Benner is director of the Global Public Policy Institute in Berlin. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1831,2017/3/2,http://www.aljazeera.com/news/2017/03/attorney-general-jeff-sessions-disclose-russia-contacts-report-170302041900080.html,Jeff Sessions did not disclose Russia contacts - report,"Attorney General Jeff Sessions spoke twice with Russian ambassador before taking office, The Washington Post reports.","Jeff Sessions, while still a US senator, spoke twice last year with Russia's ambassador, encounters he did not disclose when asked during his confirmation hearing to become attorney general about possible contacts between Donald Trump's campaign and Russian officials, The Washington Post reported, citing Justice Department officials. One of the meetings was a private conversation between Sessions and Russian Ambassador Sergei Kislyak that took place in September in the senator's office, at the height of what US intelligence officials say was a Russian cyber campaign to upend the US presidential race, the Post reported. Sessions in a statement denied ever meeting ""with any Russian officials to discuss issues of the campaign"". ""I have no idea what this allegation is about. It is false,"" the statement read.- The previously undisclosed discussions could fuel new congressional calls for the appointment of a special counsel to investigate Russia's alleged role in the 2016 presidential election, the Post said. READ MORE: US Senate approves Jeff Sessions as attorney general Trump's first national security adviser, Michael Flynn, was fired last month after he discussed US sanctions on Russia with Kislyak before Trump took office and misled Vice President Mike Pence about the conversations. As attorney general, Sessions oversees the Justice Department, including the Federal Bureau of Investigation, which have been leading investigations into Russian meddling and any links to Trump's associates.- When Sessions spoke with Kislyak in July and September, he was a senior member of the influential Senate Armed Services Committee as well as one of Trump's top foreign policy advisers, according to the Post. Sessions played a prominent role supporting Trump after formally joining the campaign in February 2016. At his January 10 Judiciary Committee confirmation hearing, Sessions was asked by Democratic Senator Al Franken what he would do if he learned of any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of the 2016 campaign, the Post reported. ""I'm not aware of any of those activities,"" Sessions responded, according to the Post. He added: ""I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians."" READ MORE: Trump cabinet: Protests mar Jeff Sessions confirmation Officials said Sessions did not consider the conversations relevant to the lawmakers""?questions and did not remember in detail what he discussed with Kislyak, according to the Post. ""There was absolutely nothing misleading about his answer,"" Sarah Isgur Flores, Sessions' spokeswoman, told the Post. ""Last year, the Senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee, including the British, Korean, Japanese, Polish, Indian, Chinese, Canadian, Australian, German and Russian ambassadors."" Justice officials said Sessions met with Kislyak on September 8 in his capacity as a member of the armed services panel rather than in his role as a Trump campaign surrogate, the Post reported. ""He was asked during the hearing about communications between Russia and the Trump campaign - not about meetings he took as a senator and a member of the Armed Services Committee,"" Flores told the Post. Speaking to Al Jazeera from Washington, former associate US attorney general Bruce Fein told Al Jazeera: ""Everyone knows Jeff Sessions was up to his ears in the Trump campaign, that's why he's attorney-general now."" But he noted Trump has made powerful enemies early on in his presidency. ""Mr Trump has so alienated the press that they're out to get him. And there are many people in the intelligence community that are probably out to get Mr Trump too because he's derided them, [accused] them of doing things equivalent to the Nazis. So he's going to have an intelligence community that's looking for things,"" Fein added. Democratic Representative Adam Schiff said t he US House of Representatives intelligence committee will investigate allegations of collusion between Donald Trump's presidential campaign and Russia. ""We have reached a written agreement, the minority and the majority in the House intelligence committee, that we will investigate allegations of Russian collusion with the Trump campaign,"" Schiff, the -top Democrat on the panel,- said on MSNBC. The committee said in a statement that its Republican chairman, Devin Nunes, and Schiff had agreed that their investigation will seek answers to questions including: ""Did the Russian active measures include links between Russia and individuals associated with political campaigns or any other US Persons?"" Source:-Al Jazeera and news agencies", -1832,2017/3/2,http://www.aljazeera.com/indepth/features/2017/03/libya-chaos-human-traffickers-free-rein-170301092942861.html,"Amid Libya's chaos, human traffickers have free rein",Militias collude with corrupt officials to extort and abuse migrants seeking to reach Europe.,"Tripoli, Libya - On February 21, the bodies of 74 migrants were found by the Libyan Red Crescent on the shore of Zawiya, a Libyan town known for being a capital of fuel smuggling and human trafficking. A Zawiya resident said he was on the beach as Red Crescent volunteers filled dozens of body bags. ""The first thing I did on the shore was search for the rubber boat in which they left,"" said the Zawiya resident, who preferred not to reveal his name for security reasons. ""It was not far from the corpses, destroyed, and the first thing I noticed was that the engine was not there. This probably means when the smugglers realised that the rubber boat was sinking, [they] came back ... to carry off the engine. They will use it for other migrants."" Libya's militias have become increasingly powerful amid the power vacuum since Muammar Gaddafi's toppling in 2011. The militias control the human trafficking trade, and many young Libyans lacking work are eager to join. ""We are realising that more and more young people are attracted by these crimes,"" the man said. ""The young people need money, and the smugglers provide them with this money. Nobody cares if migrants arrive in Europe alive or if they die drowned in the sea ... they are worse than murderers."" Migrants - who pay $1,500 per ""seat"" on the boats - are considered a kind of ATM by smugglers, who also control the detention centres where migrants are held. Europe does not want to help us,"" he said. ""Europe wants to stop seeing the dead. European leaders only want to shift the problem, not to solve it. Issa, a Libyan coastguard The most powerful militia in the area is Abu Himyra al-Naser (translated as-""Victory""). Another Zawiya resident, who spoke under condition of anonymity, said the militia's boss ""is paid directly by the government with the task of monitoring what's going on in the harbour. He should work together with official navy officers, but actually he is the boss of the human trafficking here. He not only manages what happens in the port; he also directly controls several detention centres."" Libya's Interior Ministry has little control over these centres, where militias exploit, blackmail, abuse, and even sell migrants to other militias. A source at the Libyan Interior Ministry confirmed this. ""Corrupt coastguards gave migrants to the militias, and the militias keep them in illegal detention centres,"" he said. ""There, they start to blackmail migrants. They take their money, phones, documents. With the phone numbers they find in their mobiles, smugglers call their families asking for ransom to free them. The militias also sell them to masters in the area who use them to work for free. Fighting them is almost impossible, even for the official police."" Issa, 40, who did not provide his last name, works for the Coast Guard in Gasr Garabulli, a town 60 kilometres east of Tripoli. He said the Libyan coast today is ""a tragedy"". ""Until two years ago I had a dinghy to try to stop the boats leaving. Today all that remains is wreckage. The rubber boat broke down and the Coast Guard of Tripoli did not not send me any means to replace it. Now I no longer have resources to control the coasts."" Issa sits alone on a wooden bench, watching the sea with a radio transmitter beside him. The Coast Guard headquarters here consists of a concrete house overlooking a small port. The house is nearly bare: Inside is a table, a map, a compass and a refrigerator with little food. ""See over there,"" Issa said, indicating a stand of trees around the bend. ""The coast is surrounded by woods where they can easily collect migrants the evening before departure."" Smugglers hold migrants in makeshift houses for days, sometimes weeks, before departure. ""We all know where migrants are gathered,"" Issa said. ""Human trafficking is a chain made up of many tasks: Someone is responsible for bringing them food, someone is responsible to find a dinghy, someone has to bring migrants to the shore at night."" Issa said he has been threatened by local traffickers, who offered him money to close his eyes and pretend not to see the boats departing. He refused, and two armed boys came by at night, threatening to kill him. ""The situation is out of control,"" Issa said. ""Only confusion reigns. I know coastguards directly paid by the militias, they are accomplices of smugglers. They are an active part of their chain. Often the Coast Guard itself recovers rafts ... and gives them to the militias that control human trafficking. This is one of the reasons why Europe has recently decided to give money to the Libyan Coast Guard - to control what happens here."" On February 3, European Union leaders approved a plan to curb migration from Libya. The plan called for giving-�100m ($423m) to Libya, offering training and equipment to the Libyan Coast Guard, and improving detention centres. ""[It] makes me bitterly smile. Now it's too late; there are too many corrupt people,"" Issa said. ""Europe does not want to help us,"" he said. ""Europe wants to stop seeing the dead. European leaders only want to shift the problem, not to solve it."" Source:-Al Jazeera News", -1833,2017/3/2,http://www.aljazeera.com/news/2017/03/rodrigo-duterte-death-penalty-campaign-clears-hurdle-170302055029047.html,Rodrigo Duterte's death penalty campaign clears hurdle,President Duterte's efforts to reinstate capital punishment for drug-related crime receives backing from congress. Just drug crimes,"Philippine President Rodrigo Duterte's campaign to bring back the death penalty for drug-related crimes has cleared a major hurdle, with supporters backing it in congress but critics denouncing the plan as ""inhumane"". The death penalty bill - along with a proposed measure to punish children as young as nine as adult criminals - are key planks of Duterte's controversial drug war that has already claimed more than 7,000 lives. A majority of politicians in the lower house of congress passed a second reading of the bill on Wednesday night, clearing one of the biggest obstacles in proponents' plans to make the death penalty legal by May. A third and final reading still needs to be held next week, although with no more debates both sides agree passage is a formality. Then the Senate, which is similarly dominated by Duterte's allies, would pass a counterpart bill. ""We have hurdled the most difficult part,"" congressman Reynaldo Umali, a sponsor of the bill, told AFP news agency. Opponents voiced anger about the Philippines' attempt to bring back the death penalty, 11 years after it was revoked, highlighting among many concerns a corrupt justice system that would lead to innocent people being executed. ""The decision is inhumane, shameful and blatantly disrespectful,"" Father Jerome Secillano, executive secretary for public affairs at the Catholic Bishops' Conference of the Philippines, said in a statement. READ MORE: Children and Duterte's drug war: Lessons from the past ""Let me reiterate this, criminals should be punished and victims should be aided, but the punishment should not be death. Due to our flawed and dysfunctional criminal justice system, there is a great chance that innocent people may become victims of wrongful convictions."" The Catholic Church, which counts 80 percent of Filipinos as followers, had led the opposition to abolish the death penalty in 2006. Secillano and opposition lawmakers also criticised tactics used to ensure the bill was passed, such as the curtailing of debates and only allowing a vote by voice so lawmakers would not be specifically identified as having supported it. The speaker of the house also threatened to strip lawmakers of committee leadership positions if they voted against the bill. ""This is a chamber of puppets and bullies,"" congressman Edcel Lagman, a longtime opponent of capital punishment, said after his efforts to block the bill were voted down. The bill limits the death penalty to drug-related offences only. Possessing 500 grammes of marijuana, or 10 grammes of cocaine, heroin or ecstasy, would be crimes punishable by execution, as would manufacturing and selling drugs. People who commit serious crimes such as murder and rape while under the influence of drugs could also be executed. INTERACTIVE: Death toll in Duterte's war on drugs The bill allows for execution by hanging, firing squad or lethal injection. Duterte won the presidential election last year after pledging an unprecedented campaign to eradicate illegal drugs. Since he took office in May, police have reported killing thousands of people in the drug crackdown, claiming all deaths were in self defence. Thousands of others have died in unexplained circumstances. Rights groups and other critics say Duterte is presiding over widespread human rights violations, with Amnesty International warning the killings could amount to a crime against humanity. Many Filipinos support Duterte and his drug war, arguing extreme measures must be taken to halt crime. The United Nations had warned bringing back the death penalty would violate international conventions the Philippines had already ratified. After capital punishment, another priority bill for Duterte is lowering the age of criminal liability to as low as nine-years old, from 15 currently. Source:-News agencies", -1834,2017/3/2,http://www.aljazeera.com/indepth/features/2017/03/palestinian-bedouins-fear-forcible-transfer-israel-170301083631032.html,Palestinian Bedouins fear forcible transfer by Israel Ibrahim Husseini,UN and international NGOs warn that risk of forcible transfer could affect around 7000 Palestinians living in Area C. By,"Khan al-Ahmar, East Jerusalem - -A last minute temporary injunction to stop the demolition of the entire community of Khan al-Ahmar, a-Palestinian Bedouin community that has been struggling against an Israeli army order to have their homes demolished, expires on Thursday.- The injunction was granted after objections were filed at the Israeli Civil Administration.- The community's lawyer told Al Jazeera that he filed an additional objections on Wednesday arguing that the Israel civil administration has not provided an alternative location for the Bedouins to live.- Khan al-Ahmar is near occupied-East Jerusalem-and is adjacent to the historic road connecting Jerusalem with Jericho. Now, it is in between two Israeli settlements. Maale Adumim to the east and Kfar Adumim to the west. WATCH: Defiant Palestinian Bedouins dread eviction from Susiya An impoverished community from decades of restrictive Israeli policy,-the Jahalin Bedouin tribe-scrambled to take legal action to protect its' existence in the area. Eid Khamis, a Bedouin leader, said each of the community's 35 families had to contribute to cover the legal costs. Ibrahim Abu Dahouk, 52, a resident of Khan al-Ahmar, says he, as well as other members of the community, had to sell some of their livestock in haste to raise-around $3,200 to pay for the injunction against demolitions and for the lawyer's fee. ""I sold five heads of sheep and we had to beg livestock merchants to buy from us, and you know when you ask them to come, you get a lower price. I sold at a loss,"" Abu Dahouk told Al Jazeera. He added that the community is being stretched to the limit. Selling livestock to cover for legal costs literally means less food and clothes for his family. But he is compelled to sell in order to keep his home. Bedouins are traditional herders and rely almost solely on goats and sheep for income. In recent years, rising fodder prices has compelled the Bedouin to sell most of their livestock. Israeli settlement expansion, Israeli army camps and nature reserves have also resulted in less and less grazing land. The Jahalin Bedouin set up camp in this area as early as 1953, long before the two settlements were built. Prior to that, the Jahalin lived in Tel Arad, in the Naqab (Negev) desert. In 1951, after the establishment of-Israel, the Israeli army expelled the Jahalin tribe from Tel Arad. The community has been fighting Israeli demolition orders for years. Khamis says that if a move is a must, then it should be a move back to their homes in Tel Arad, in the Naqab desert. On February 19, the Israeli army paid a visit to Khan al-Ahmar. To the bewilderment of the community, army officers distributed dozens of stop construction work orders. Khamis confirmed that there was no recent or ongoing construction. During the same visit, an Israeli commander told Khamis, that they had until February 23 to evacuate the area. The community was shaken. They immediately contacted their lawyer and informed him of the developments. In the course of the past 10 days, UN officials, European Union heads of missions and international NGOs made solidarity visits to the Bedouin of Khan al-Ahmar. Ambassador Ralph Tarraf,-EU head of delegation to the occupied West Bank, said on Tuesday from Khan al-Ahmar that he is ""worried"" about the possibility of demolition and that he, along with other EU diplomats, came to ""express hope that the Israeli authorities will not carry out demolition orders"". ""You know this is a particularly sensitive area ... it is area C, but it is also called the E1 area and we are particularly concerned that the people living here are going to face displacement."" When Tarraf was asked by Al Jazeera whether or not the EU was taking the issue of Khan al-Ahmar directly to the Israelis, he responded: ""We are talking to the Israeli authorities through our delegations in Tel Aviv and it is not just the European Union, but also member states have taken up the issue with the Israeli authorities and we expressed our hope that this community will not face demolition."" Robert Piper, UN assistant secretary-general warned last week that the destruction of private property and ""potential forcible transfer"" is counter to international humanitarian law. ""We are very, very concerned about the events of the last few days [Khan Al Ahmar]. This is illustrative of many communities here in the West Bank, With the coercive pressure that is being forced upon many communities to move, we are very worried about their legal costs. They are getting legal assistance, but they are not getting financial support for that."" The community's only school, built in 2009, is also under threat of demolition. The donor-funded school provides basic education to children for nearby Bedouin communities as well. About 160 pupils attend. Shlomo Lecker, the community's long-time lawyer, says that he will argue at Israel's high court that the Israeli Civil Administration has no real alternative for the Bedouin of Khan al-Ahmar and that ""relocation"" is not a real alternative. READ MORE: Palestinian Bedouins 'live the Nakba every day' The Israeli Civil Administration is under the authority of the Israel defence ministry and is tasked with implementing Israeli government policy in the occupied West Bank. An internal document prepared by international NGOs, operating in the occupied West Bank, and the UN warns that-the ""Israeli Civil Administration's planned 'relocation' of Palestinian Bedouin and herding communities in Area C raises serious concerns under international law and must not take place."" Israel is advancing a plan to ""relocate"" the Bedouin to-Nuwei'ma, in the Jordan Valley. The Jahalin tribe rejected the plan, saying the area near Nuwei'ma is not suitable for Bedouin life because of its close proximity to an Israeli settlement and an Israeli army camp. The Jahalin also say that the suggested plot of land in Nuwei'ma is too close to the herding ground used by another Bedouin tribe, the Rashayda. The Jahalin warns that forcible transfer to Nuwei'ma means that they will have to share the same resources of water and herding grounds with a different tribe, potentially creating friction with other communities. The UN and international NGOs warn that the risk of forcible transfer could affect around 7,000 Palestinians living in Area C. Source:-Al Jazeera News", -1835,2017/3/2,http://www.aljazeera.com/news/2017/03/kim-jong-nam-malaysia-frees-korean-murder-suspect-170302065454474.html,Kim Jong-nam: Malaysia frees N Korean murder suspect,No evidence found against man in assassination of Kim Jong-nam at Kuala Lumpur's airport with VX nerve agent.,"A North Korean man will be freed from Malaysian custody because of a lack of evidence connecting him to the fatal nerve agent attack on the estranged half-brother of North Korea's ruler. Ri Jong-chol was held in police detention for almost two weeks following the assassination of Kim Jong-nam at Kuala Lumpur's bustling airport on February 13. ""He will be released. He is a free man. His remand expires and there is insufficient evidence to charge him,"" said Malaysian Attorney-General Mohamed Apandi Ali on Thursday. Mohamed said Ri will be deported because he does not have valid travel documents.""He will be deported tomorrow,"" he said. In a major fallout from the assassination, Malaysia also announced on Thursday it was scrapping visa-free travel for North Koreans. Who produced the VX poison that killed Kim Jong-nam? Officials never said why they arrested Ri four days after Kim was attacked. The attack was caught on grainy security camera footage that showed two women smearing something on Kim's face as he waited for a flight. Malaysian officials say the substance was VX nerve agent, a banned chemical weapon. North Korea is widely speculated to be behind the killing. Experts say the oily poison was almost certainly produced in a sophisticated state weapons laboratory. Pyongyang has denied the accusations and said it was ""absurdity"" to believe the chemical weapon VX was used in Kim's killing. Kim was dead within an hour as the fast-acting poison coursed through his body, authorities say. No bystanders reported falling ill. Deputy Prime Minister Ahmad Zahid Hamidi said Thursday the visa-free arrangement with North Korea will be scrapped from Monday because of national security. He also slammed the North Korean ambassador in Kuala Lumpur who accused Malaysia of ""trying to conceal something"" and ""colluding with hostile forces"". ""We don't want to make enemies, but if they had used Malaysia for their own agenda, they should not accuse Malaysia and tarnish our image on the international stage,"" Zahid said. ""We will act firmly to guarantee the safety of our people. Don't ever use Malaysia as a base to do anything you like."" Malaysia to cancel visa-free entry for North Koreans The two female suspects caught in the security footage were charged with murder in a Malaysian court Wednesday. They face the mandatory death sentence if convicted. Both say they were duped into thinking they were taking part in a harmless prank. Kim reportedly fell out of favour with his father, the late Kim Jong-il, in 2001 when he was caught trying to enter Japan on a false passport to visit Tokyo Disneyland. He was not known to be seeking political power, but his position as eldest son of the family that has ruled North Korea since it was founded could have made him appear to be a danger to his half-brother Kim Jong-un. Source:-News agencies", -1836,2017/3/2,http://www.aljazeera.com/news/2017/02/donald-trump-skip-white-house-correspondents-dinner-170226032118886.html,Donald Trump to skip White House correspondents' dinner,Reporters' group covering the White House says April 29 event will go ahead after US president says he will not attend. News outlets blocked,"US President Donald Trump has announced he will not attend a century-old annual correspondents' dinner, a day after a fierce fight erupted over press access to the White House. In a post on Twitter on Saturday, Trump wrote: ""I will not be attending the White House Correspondents' Association Dinner this year. Please wish everyone well and have a great evening!"" He made the announcement just a day after a speech to conservative activists, wherein he reiterated his criticism of journalists as ""the enemy of the people"", and a decision by his spokesman to exclude major news organisations from a media briefing. THE LISTENING POST: America's media under Trump - An ominous start (7:24) The reporters' group said it would go ahead with its April 29 dinner despite Trump's decision, which breaks with an annual tradition in which the US president is the guest of honour at a light-hearted roast held by journalists and typically studded with-movie stars, politicians and business leaders. The dinner ""has been and will continue to be a celebration of the First Amendment and the important role played by an independent news media in a healthy republic"", said Jeff Mason, a Reuters White House correspondent who heads the association this year. Ronald Reagan was the last president to miss the event after he was shot in 1981. Some news outlets such as Bloomberg News and the New Yorker have said that they will not host the lavish after-parties that have been a fixture of past events. The dinner occasionally makes news: in 2011, President Barack Obama delivered a scathing evisceration of Trump, joking that the mogul, who sat stone-faced in the audience, would move on from questioning Obama's citizenship to figuring out ""did we fake the Moon landing"". This was after Trump appeared on several networks questioning the legitimacy of Obama's presidency, and promoting the conspiracy that the 43rd president was born in Kenya, not the US state of Hawaii. Critics of the correspondents' say the event encourages journalists to cosy up to politicians they should cover aggressively. Trump built his campaign on criticising the mainstream US press - many of whose editorial boards opposed his election - and has intensified his rhetoric since taking office, routinely accusing the media of bias in overstating his setbacks and downplaying his accomplishments. On Friday, the White House excluded several-news outlets from covering a question-and-answer session with spokesman Sean Spicer held in place of the daily press briefing. Media organisations including The New York Times, CNN and Politico were blocked from joining the informal, on-the-record, off-camera press briefing on Friday, referred to as a ""gaggle"". Spicer invited only a pool of news organisations that represents and shares reporting with the larger press corps. Journalists from several right-leaning outlets were also allowed into Spicer's office, including the website Breitbart News, whose former executive chairman, Steve Bannon, is Trump's chief strategist. Source:-Al Jazeera and news agencies", -1837,2017/3/2,http://www.aljazeera.com/news/2017/03/north-korea-warns-merciless-response-drills-170302040305053.html,North Korea warns of 'merciless' response amid drills,Pyongyang says any territorial violations during annual US-South Korea military exercises will be met with force.,"North Korea has warned of a ""merciless"" response if its territorial boundaries are violated during large-scale military drills involving US and South Korean forces. --- Pyongyang-on Thursday reacted to the start of the annual war games with its typical fiery rhetoric, but recent missile and nuclear tests by the North give the usual threats an added weight. The military drills between Seoul and Washington-always rile North Korea, which calls the exercises a rehearsal for an invasion. This year's manoeuvres began on Wednesday. The North will ""mercilessly foil the nuclear war racket of the aggressors with its treasured nuclear sword"", an unidentified spokesman for the General Staff of the Korean People's Army (KPA) was quoted as saying by the official Korean Central News Agency. OPINION: Kim Jong-nam attack reveals true nature of North Korea He said the North's reaction will be the toughest ever but didn't elaborate. ""Should the US imperialists and the South Korean puppet forces fire even a single shell into the waters where the sovereignty of our Republic is exercised, the KPA will immediately launch its merciless military counter-actions,"" the statement said. There is renewed worry in Seoul and Washington because North Korea test-launched a new intermediate-range missile in February. It also conducted two nuclear tests last year. South Korea's military said on Thursday that it will ""resolutely"" punish North Korea if provoked. The ongoing drills are field training that will run until late April. As well, different training involving computer-simulated war games will start in the coming weeks. The United States has 28,500 troops stationed in South Korea as a deterrent against a potential aggression from North Korea. The Korean peninsula remains in a technical state of war because the 1950-53 Korean War ended with an armistice, not a peace treaty. The US plans to send the USS Carl Vinson aircraft carrier with F-35B and Osprey aircraft, according to a US Forces Korea spokesman. The B-1B and B-52 bombers could also join the drill, according to South Korea's Yonhap news agency. Some 3,600 US soldiers are expected to join the Foal Eagle exercise this year. South Korea and the United States also agreed to strengthen cooperation on financial sanctions against North Korea in response to the recent missile test. US Treasury Secretary Steven Mnuchin and South Korea Finance Minister Yoo Il-ho expressed ""great concern"" over North Korea's February 12 missile launch and promised to follow through with sanctions, said in a statement on Thursday after a call between the pair. On February 12,-North Korea launched a Pukguksong-2 ballistic missile-near the western city of Kusong. The missile flew east about 500km before falling into the Sea of Japan (East Sea), according to South Korea's defence ministry. Source:-Al Jazeera and news agencies", -1838,2017/3/2,http://www.aljazeera.com/news/2017/03/isil-expands-afghan-pakistan-areas-widening-attacks-170302041341156.html,"ISIL expands in Afghan-Pakistan areas, widening attacks","ISIL expansion poses new challenge for US President Donald Trump, as he vowed to ""totally destroy"" the rebel group. Shifting-loyalties","An offshoot of the Islamic State of Iraq and the Levant (ISIL) group based near the Afghan-Pakistan border is expanding to new areas, recruiting fighters and widening the reach of attacks in the region, members of the movement and Afghan officials said. Some members of the so-called ""Khorasan Province"" of ISIL, also known as ISIS, claimed responsibility for the recent attack on a Sufi shrine in Pakistan that killed 90 people, and ISIL gunmen were blamed for the deaths of six local aid workers in the north of the country, far from their stronghold in eastern Afghanistan. Any expansion would pose a new challenge for US President Donald Trump, as he considers how many American troops to keep in Afghanistan where the main security threat remains the Taliban insurgency. Trump has vowed to ""totally destroy"" the Middle East-based ISIL, yet has spoken little of Afghanistan, where US forces have been posted for 15 years. READ MORE: The manufactured myth of ISIL in Afghanistan Now he has not only the Taliban to consider, but also fighters swearing allegiance to ISIL, although US officials are generally less alarmed about its presence in Afghanistan than local officials. ""Daesh is not only a threat for Afghanistan but for the region and the whole world,"" said Shah Hussain Mortazawi, spokesman for President Ashraf Ghani's office, using a common Arabic name for the group. The extent of direct operational links between ISIL in Afghanistan and the Middle East remains unclear, although most fighters in the ""Khorasan Province"" are Afghans, Pakistanis or Central Asians. ISIL is suspected of carrying out several attacks on minority Shia Muslim targets in Afghanistan, and the February suicide bombing at the Pakistani shrine bore some of the hallmarks of the sectarian group. Known as the worst armed group assault in Pakistan for two years indicated that a group based in the eastern Afghan province of Nangarhar could strike deep into Pakistan territory. ""Islamic State has no proper base in Pakistan, but it has sympathizers and links in Pakistan,"" one member of the group told Reuters news agency, based in Afghanistan. ""Mostly the attackers and suicide bombers enter from Afghanistan to Pakistan."" READ MORE: ISIL in Afghanistan? Not so fast Western and Afghan security officials believe fighters frequently switch allegiances between armed groups, making it difficult to know who is to blame for violence. ""Sometimes the Taliban commanders defect to Daesh and sometimes the other way around,"" said Mohammad Zahir Wahdat, governor of the northern Afghan province of Sar-i-Pul, where ISIL and Taliban fighters are believed to be active. ""The situation is very unclear."" The top US commander in Afghanistan, General John Nicholson, said US drone strikes and special forces operations had killed about a third of ISIL fighters in Afghanistan and cut their territory by two thirds. US officials say intelligence suggests ISIL is based overwhelmingly in Nangarhar and neighbouring Kunar province. They are sceptical about reports of an increased ISIL presence in the northwest, where gunmen may claim a connection to the group to boost their standing. ""Certainly if you're a local official who's looking for more resources, by saying that ISIS is in your area, you're going to get more attention,"" said Brigadier General Charles Cleveland, the main US military spokesman in Kabul. Nicholson, who has asked for thousands more troops in Afghanistan, said counter-terrorism forces planned a series of operations in 2017 to defeat ISIL in Afghanistan ""and preclude the migration of terrorists from Iraq and Syria into Afghanistan"". Estimating numbers is difficult. Cleveland said US officials believe the movement has only 700 fighters, but Afghan officials estimate it has around 1,500, with twice as many auxiliary helpers and up to 8,000 less active supporters. READ MORE: Report - ISIL claims deadly attack on Pakistani forces Those officials say fighters from Central Asian countries including Uzbekistan have come to Afghanistan, while fighters forced across the border by Pakistani military operations also gravitated towards ISIL. A US drone strike last year killed former local ISIL leader Hafiz Saeed Khan, once a member of the Pakistani Taliban. Several Afghan security officials believe a former Afghan Taliban commander, Abdul Haseeb Logari, has replaced him. ISIL began to be noticed in the region in early 2015, when loyalists took on the Taliban and al-Qaeda in a bid to become the leading rebel group, using tactics that stood out for their brutality. Source:-News agencies", -1839,2017/3/2,http://www.aljazeera.com/news/2017/03/malaysia-cancel-visa-free-entry-north-koreans-170302040418125.html,Malaysia to cancel visa-free entry for North Koreans,Move comes after the killing of North Korean leader's half-brother Kim Jong-nam with VX nerve agent in Kuala Lumpur.,"Malaysia will cancel visa-free entry for North Koreans entering the country starting next week as diplomatic ties between the two countries fray further following the murder of Kim Jong-nam at the Kuala Lumpur airport. North Koreans will be required to obtain a visa as of March 6 before entering Malaysia for national security reasons, state news agency Bernama reported on Thursday, citing the deputy prime minister Ahmad Zahid Hamidi. Malaysia is one of the few countries that North Koreans could visit without a visa. A reciprocal arrangement made Malaysians the only foreigners given visa-free entry to the secretive, nuclear-armed state. The move comes two weeks after Kim Jong-nam, the estranged half-brother of North Korean leader Kim Jong-un, was killed at the Kuala Lumpur airport, allegedly with a toxic nerve agent. Diplomatic ties between Malaysia and North Korea have soured since the murder, which South Korea and the US say was an assassination organised by North Korean agents. North Korea has denied the accusations and called the allegation that the chemical weapon VX was used in killing ""absurd"". North Korea tried to convince Malaysia not to perform an autopsy on Kim's body, and to release a North Korean suspect detained in connection with the murder. A high level North Korean diplomatic delegation arrived in Kuala Lumpur on Tuesday and has held talks with members of the Malaysian cabinet to press those demands. Malaysia has charged an Indonesian woman and a Vietnamese woman with murder. Police are also seeking to question seven others, including a senior official in the North Korean embassy in Kuala Lumpur. Who produced the VX poison that killed Kim Jong-nam? Malaysia has insisted that laws of the country will be followed and has refused to release the body to the North Korean embassy in Kuala Lumpur, while waiting for next of kin to come forward. The severe strain on the relationship follows decades of friendly ties between the two countries. North Korea and Malaysia have maintained ties since the 1970s when former prime minister Mahathir Mohamad embraced the isolated state, in part to rebuff the United States. Source:-Reuters news agency", -1840,2017/3/2,http://www.aljazeera.com/news/2017/03/house-panel-probe-alleged-trump-russia-links-170302021333384.html,US House panel to probe alleged Trump-Russia links,Democrat says committee will investigate claims of collusion between Trump's presidential campaign and Moscow.,"The US House of Representatives intelligence committee will investigate allegations of collusion between Donald Trump's presidential campaign and Russia, the top Democrat on the panel has said. ""We have reached a written agreement, the minority and the majority in the House intelligence committee, that we will investigate allegations of Russian collusion with the Trump campaign,"" Democratic Representative Adam Schiff told MSNBC on Wednesday. US intelligence analysts have concluded that Russia tried to help Trump win the White House by discrediting Democratic presidential nominee Hillary Clinton and her party through cyber attacks. President Barack Obama, a Democrat, expelled Russian diplomats in retaliation in December. Trump has denied any of his associates had contacts with Moscow before last year's election and dismissed the controversy as a ""scam"" perpetrated by a hostile news media. Moscow has denied the accusations. OPINION: Why is Russia so happy with Trump? Representative Devin Nunes, the Republican chairman of the House Permanent Select Committee on Intelligence, said on Monday that US intelligence officials had not yet presented the panel with evidence of contacts between Trump campaign staff and Russian intelligence. Nunes was a member of Trump's presidential transition team. The committee, which has been probing contacts between Trump's campaign and Russia, said in a statement that Nunes and Schiff had agreed on a classified six-page document laying out the scope of their investigation. It said one question they would seek to answer was whether the Russian actions included ""links between Russia and individuals associated with political campaigns or any other US Persons"". The statement did not refer specifically to the Trump campaign. Earlier on Wednesday, Nunes told Fox News that the committee would receive a briefing from intelligence officials on Thursday. Trump fired his first national security adviser, Michael Flynn, last month for misleading Vice President Mike Pence over his conversations with Russia's ambassador to the United States. Separately, then-US Senator Jeff Sessions spoke twice last year with Russia's ambassador, encounters he did not disclose when asked during his confirmation hearing to become attorney general about possible contacts between Trump's campaign and Russian officials, the Washington Post reported on Wednesday, citing justice department officials. One of the meetings was a private conversation between Sessions and Russian Ambassador Sergei Kislyak that took place in September in the senator's office, the Post reported. Source:-News agencies", -1841,2017/3/2,http://www.aljazeera.com/news/2017/03/uber-travis-kalanick-apologises-170301233215559.html,Uber's Travis Kalanick apologises for berating driver,Travis Kalanick promises to work on his leadership style after video of him lashing out at a driver went viral.,"Uber chief Travis Kalanick has apologised, acknowledging that ""I must fundamentally change as a leader and grow up,"" after a video showed him verbally abusing a driver for the service. In a message to Uber employees late on Tuesday, Kalanick cited the widely circulated video and said he ""treated an Uber driver disrespectfully"". The incident which circulated on social media was the latest hit for the image of the global ridesharing giant, which faces accusations of sexual harassment and a lawsuit contending it misappropriated Google's self-driving car technology. Fawzi Kamel has been driving for Uber since 2011. When he picked up the company's boss on a Sunday in February, he wanted to let him know how things were getting tougher for drivers. In the dashcam video obtained by Bloomberg News , the Kamel argues that Kalanick is lowering fares and claims he lost $97,000 because of him. ""I'm bankrupt because of you."" Kalanick lashes back. ""You know what? Some people don't like to take responsibility for their own shit. They blame everything in their life on somebody else. Good luck,"" he said, then slamming the door. READ MORE: Users angry at Trump Muslim ban delete Uber app In the message to employees later, Kalanick wrote ""To say that I am ashamed is an extreme understatement"". Kalanick also offered his apology to the driver and said the incident shows he needs to work on his leadership. ""It's clear this video is a reflection of me - and the criticism we've received is a stark reminder that I must fundamentally change as a leader and grow up. This is the first time I've been willing to admit that I need leadership help and I intend to get it."" Uber is valued at $68bn, and has operations in dozens of countries and hundreds of cities. The video is the latest in a string of bad PR for Uber. Kalanick also faced criticism for agreeing to be part of a business advisory panel for President Donald Trump, but then quit the panel amid a campaign by Trump opponents to delete the application. In January more than 200,000 people deleted their accounts after the company was accused of undermining a New York taxi union strike protesting against Trump's immigration ban. In December, it pulled its self-driving cars off the road in San Francisco after the California Department of Motor Vehicles said they were operating illegally. And just last month a former software engineer at Uber claimed one of her managers propositioned her for sex. Kalenick ordered an investigation into the allegations calling sexism ""abhorrent"". Source:-News agencies", -1842,2017/3/2,http://www.aljazeera.com/news/2017/03/bakri-hassan-saleh-sudan-prime-minister-170302001752477.html,Bakri Hassan Saleh named PM by Omar al-Bashir,Vice president and close ally of Sudan's leader appointed to post abolished after coup that brought Bashir to power.,"Sudanese President Omar al-Bashir has appointed a top aide as prime minister, reinstating a post he abolished after coming to power in a 1989 coup, an official said. Bakri Hassan Saleh-will be sworn in on Thursday and immediately start negotiations on forming a new cabinet, said ruling National Congress Party deputy leader Ibrahim Mahmoud. Saleh will hold onto his current post of Sudan's first vice president, Mahmoud said. Sudanese lawmakers voted in December to reinstate the post of prime minister. Saleh was among the officers who launched the bloodless 1989 coup, and the last member of the group to remain at Bashir's side. The retired army general is a former defence, interior and presidential affairs minister. He currently serves as first vice president and National Congress Party deputy leader for executive affairs. The naming of a prime minister and delegation of some of the president's powers fall in line with reforms proposed by a year-long national dialogue held between Bashir's government and some opposition groups. In October, after a quarter century in power, Bashir concluded the national dialogue aimed at resolving insurgencies in Sudan's border regions and healing the country's crisis-wracked economy. The process was boycotted by most mainstream opposition and armed groups. Source:-News agencies", -1843,2017/3/2,http://www.aljazeera.com/news/2017/03/government-failing-educate-integrate-roma-children-170301171600351.html,"Government failing to educate, integrate Roma children","Slovakia's school system riddled with institutional racism, fails to prepare for life after school, rights groups say. Institutional racism Fabricating mental disability","Romani children in Slovakia are segregated in schools, bullied by teachers and misdiagnosed as mentally disabled because of anti-Roma racism, according to human rights groups. The European Roma Rights Centre (ERRC) and Amnesty International said on Wednesday that Romani children in primary school, aged between five and 11, were systematically denied their rights to education, trapping them in a ""cycle of poverty and marginalisation"". The report comes almost two years after the European Commission launched infringement proceedings against Slovakia for discrimination and segregation in education. ""Slovakia's abject failure to address deeply ingrained prejudices within the education system is blighting the future of generations of Romani children from the moment they step into the classroom,""-said ERRC President Dorde Jovanovic. There are as many as 500,000 Roma in Slovakia, mostly in the country's east and south, comprising almost 10 percent of the population. ""The piecemeal reforms and periodic declarations of intent by successive governments cannot obscure the fact that the discrimination and segregation of Roma in primary education remains widespread, and that the Slovak authorities are fundamentally failing to address them,"" the groups said in a joint report. ""Under national, European and international law, discrimination in the field of education is prohibited in Slovakia. However, in practice, Slovak authorities have not accompanied the ban on discrimination with concrete measures to address or prevent it,"" they added. READ MORE: Slovakia's forgotten Roma Roma in Slovakia are the second largest minority after Hungarians. Wednesday's report was based on research carried out by the two groups in October and November in four regions: Sarisske Michalany; Moldava nad Bodvou; Rokycany and Krompachy. Robert Kalinak, interior minister, said that programmes to ""improve the situation"" had been prepared as he accused the groups of exaggerating their claims on segregation, according to local media. Researchers visited six Romani settlements and studied dozens of schools. While many in the country blame Roma for failing to encourage their children to attend schools, little attention is paid to institutional racism, the report said. ""Segregation of Romani children in mainstream primary schools persists in Slovakia, either in schools that are fully or primarily composed of Roma pupils, or in Roma-only classes,"" the report said. READ MORE: Thousands of Roma 'made homeless' in France in 2016 ""Romani children educated in mixed educational settings [including Romani and non-Roma children] often face racial prejudice and harassment by non-Roma classmates and teachers,"" it added, calling on the education ministry to address the issue. At one school in-Sarisske Michalany, a teacher told researchers that she would not send her own children to a school with Romani pupils. ""Did you see the children from Ostrovany [a school for Roma]? How they speak? How they smell? No wonder the non-Roma don't want to be with them ""?It's a little zoo,"" the teacher reportedly said. According to a 2016 report by the state school watchdog, 21.74 percent of pupils reported the use of derogatory language, including anti-Roma slurs, by teachers in schools. ""In Slovakia, Romani children have been overrepresented in special schools and classes for children with 'mild mental disabilities' for decades,"" the report said. ""Many have been misdiagnosed ... as a result of culturally-biased diagnostic tools and anti-Roma prejudice among psychological and pedagogical experts. These children are condemned to low-quality education and limited opportunities for further education and employment."" The report also documented a so-called white flight, when non-Roma parents remove their children from schools when they feel there are too many Romani pupils. ""Romani children do not start education on an equal footing with non-Roma children and segregation entrenches inequality at every stage of their lives,"" the report said. READ MORE: Roma women share stories of forced sterilisation Dafina Savic, founder of Canada-based Romanipe, a-group advocating for human rights of Roma, told Al Jazeera: ""Segregation not only deprives young Roma from a normal educational experience, but also from eventually successfully integrating into society, since their misdiagnosis prevents them from accessing higher education and certain jobs."" Schools across Europe have failed to integrate Roma children, she added, describing persistent racial segregation. ""Roma are seated separately from non-Roma children, are placed at the back of the class, or are given a lower curriculum,"" Savic said. ""Educational systems across Europe are not proving safe spaces for Roma children, first and foremost because teachers and administrative [staff] have their prejudices."" She said that abuse against Roma would only be wiped out when governments addressed a history of persecution, including slavery, genocide during the Holocaust and-forced sterilisation. ""It is only then that the emancipation rather than the integration of Roma can occur,"" she said. ""An essential step in challenging the root causes of anti-gypsyism today lies in giving Roma the opportunity to voice their interests and influence the decision-making process which affects them directly."" Follow Anealla Safdar on Twitter: @anealla Source:-Al Jazeera News", -1844,2017/3/2,http://www.aljazeera.com/news/2017/03/sides-committed-war-crimes-syria-aleppo-170301131256205.html,UN: Both sides committed war crimes in Syria's Aleppo,"UN probe finds Syrian air force deliberately attacked aid convoy, while rebels used human shields in eastern Aleppo. Crimes on rebel side","Both sides in last year's battle for Syria's Aleppo city committed war crimes, including a ""deliberate"" bombing of a humanitarian convoy by the Syrian government, according to a new United Nations investigation. The UN Commission of Inquiry's report released on Wednesday said-Syrian government and allied Russian forces ""pervasively used"" unguided munitions to bomb densely populated areas in rebel-held eastern Aleppo between July and its fall on December 22, amounting to the war crime of indiscriminate attacks. These included aerial bombs, air-to-surface rockets, cluster munitions, incendiary bombs, barrel bombs, and weapons delivering toxic industrial chemicals. But investigators could not say whether both Syrian and Russian forces had used them in Aleppo or only one had. Neither did they attribute any specific war crime investigated to Russian forces. ""Throughout the period under review, the skies over Aleppo city and its environs were jointly controlled by Syrian and Russian air forces ... (They) use predominantly the same aircraft and weapons, thus rendering attribution impossible in many cases,"" the report said. Aleppo, once Syria's largest city and former commercial hub,-had been divided into rebel and government parts since 2012. READ MORE: Aleppo's displaced angry at world leaders The recapture of its eastern sector in late December by government forces was the biggest blow to Syria's rebel movement since fighting started in 2011. Syrian helicopters unleashed toxic chlorine bombs ""throughout 2016"" on Aleppo, a banned weapon that caused hundreds of civilian casualties there, the report said. At least 5,000 pro-government forces also encircled eastern Aleppo in a ""surrender or starve"" tactic, it said. In a major new finding, the investigators also accused the Syrian government of a ""meticulously planned and ruthlessly carried out"" air strike on a UN and Syrian Red Crescent convoy at Orum al-Kubra, in rural western Aleppo on September 19 which killed 14 aid workers. President Bashar al-Assad's government has fiercely denied responsibility for the convoy's bombardment and a separate UN probe in December said it was impossible to establish blame.- READ MORE: Syria's civil war explained But after analysing satellite images, forensic evidence and other material, the inquiry determined that ""Syrian air forces targeted (the) humanitarian aid convoy"". ""By using air-delivered munitions with the knowledge that humanitarian workers were operating in the location, Syrian forces committed the war crimes of deliberately attacking humanitarian relief personnel, denial of humanitarian aid, and attacking civilians,"" the report said. During the recapture of eastern Aleppo, pro-government forces arrested doctors and aid workers and committed reprisal executions, the report said.- According to the report, opposition groups shelled government-controlled western Aleppo, indiscriminately firing with no clear military target. As the opposition resistance was crumbling and civilians tried to escape, some-rebel armed groups prevented civilians from fleeing eastern Aleppo, using them as ""human shields"", and attacked the residential Kurdish district of Sheikh Maqsoud - both war crimes. The US-led coalition did not conduct any offensive air missions over Aleppo in the second half of the year, the UN investigators said. The findings - released as Syrian peace talks continue in the Swiss city of Geneva - was based on 291 interviews with victims and witnesses, as well as analysis of forensic evidence and satellite imagery. Al Jazeera's Mohammed Jamjoom, reporting from Geneva, said the authors of the report stated that there was ""just no accountability"". ""Even though this is being documented, even though the world knows this is going on ... UN investigators said the fact of the matter is no side in this conflict feels that they are accountable when it comes to committing these atrocities,"" he said. ""The bigger question now is, if this is documented, what is going to happen?"" he said. ""What the press was told was that the UN is preparing a dossier so if there is a tribunal that eventually happens, the evidence is ready to try to prosecute those who are accused of doing war crimes."" Russia and China blocked in 2014 a request for the-International Criminal Court-to open up investigations of war crimes committed during the war in Syria. The Syrian government has repeatedly denied using chemical weapons in the war that has killed nearly 400,000 people and displaced almost half the country's population since 2011. Source:-Al Jazeera and news agencies", -1845,2017/3/1,http://www.aljazeera.com/news/2017/03/protesters-mark-anniversary-berta-caceres-murder-170301213923492.html,Protesters mark anniversary of Berta Caceres' murder,About 600 people hold protest in front of Supreme Court to mark the anniversary of Honduran environmentalist leader.,"Hundreds of mostly indigenous Hondurans have taken to the streets to mark the first anniversary of the murder of environmentalist leader Berta Caceres.- The crowd of about 600 people, which included workers, villagers, women and rights activists, gathered on Wednesday-outside the Supreme Court to-further the activist leader's campaign against a hydroelectric company. ""Long live Berta. The struggle continues,"" the protesters chanted. The demonstration was held nearly a year after the March 3, 2016, murder of Caceres, 45, at her home in the town of La Esperanza. Before her death, the activist had opposed plans by the company Desarrollos Energeticos to build a hydroelectric dam across a river on which indigenous communities were dependent. She had said she had received death threats from the firm. One of Wednesday's protest organisers, Tomas Gomez, of the Civic Council of Community and Indigenous Organizations, told the AFP news agency the demonstrators were calling for the company's government license to be revoked. READ MORE: Honduras 'most dangerous country' for environmentalists A representative of the native Garifuna people, Miriam Miranda, said they also wanted the masterminds behind Caceres's killing to be punished. Eight people have been arrested in connection with the murder, among them an employee of Desarrollos Energeticos. Caceres was the winner of the 2015 Goldman Environmental Prize. Source:-News agencies", -1846,2017/3/1,http://www.aljazeera.com/news/2017/03/colombia-farc-rebels-disarming-peace-deal-170301152839699.html,Colombia's FARC rebels begin disarming under peace deal,The armed group is set to start an inventory of its weapons and destroying munitions under UN supervision. 'Historic news for Colombians',"Colombia's leftist FARC rebels are due to to begin surrendering their weapons under a landmark-peace deal, marking the delicate transition from an armed group to a political party following more than half a century at war. After weeks of mustering its troops at designated disarmament zones, the Revolutionary Armed Forces of Colombia (FARC), was set on Wednesday to start an inventory of its weapons and destroying munitions under UN supervision. ""I'm abandoning my rifle for a broom,"" the AFP news agency quoted FARC member Maritza Gonzalez as saying at the group's camp in San Jose de Oriente, in northern Colombia. Three armed fighters in combat fatigues guarded the entrance to the rudimentary camp, where a steady stream of trucks delivered bags of cement and workers scrambled to finish building a kitchen, mess hall, bathrooms and a laundry area. Gonzalez, 54, has been a fighter since the age of 14. She said she was hopeful for the future and planned to reunite with her five brothers and four sisters. ""Let's hope this leads to peace,"" she told AFP. Sergio Jaramillo,-Colombia's high commissioner for peace, said on Tuesday that the process-involved the registration of weapons, the destruction of unstable weapons and the storage of side arms. President Juan Manuel Santos, who won the Nobel Peace Prize in October for his efforts to end the country's 53-year conflict, called the disarmament ""historic news for Colombians"" in a post on Twitter. FARC leader Rodrigo ""Timochenko"" Londono also tweeted that the leftist rebels were laying down their guns ""with enthusiasm"". The FARC's disarmament will leave rival movement ELN as the only rebel group still waging a multi-sided war that has killed 260,000 people. It is currently engaged in rocky peace talks with the government. The Cold War-era conflict, which has also left 60,000 people missing and uprooted 6.9 million, is the last major armed conflict in the Americas. Colombia, South America's third largest economy, has been torn since the 1960s by fighting that has drawn in multiple leftist rebel groups, right-wing paramilitary units, drug cartels and the army. Santos is hoping to seal a ""complete peace"" with both the FARC and the ELN. Source:-News agencies", -1847,2017/3/1,http://www.rte.ie/news/2017/0302/856565-assembly-election/,Voting under way in Northern Ireland election,,"Voting to elect a new Stormont Assembly in Northern Ireland is under way after the power-sharing government collapsed in January. The election was triggered when former Deputy First Minister Martin McGuinness resigned in protest over a controversial renewable energy scheme set up by former First Minister Arlene Foster.- Five Assembly seats are up for grabs in 18 constituencies, with the overall number returned falling from 108 to 90. A total of 228 candidates are running. The next ballot had been due to take place in May 2021 after a poll last May. If post-election talks cannot mend tensions between the former coalition partners then direct rule is on the cards. More on Assembly Election-2017 Senior presiding officer and polling station manager Teresa McCurdy on Rathlin Island Former first minister Peter Robinson has warned politicians to step back and avert a headlong rush towards the destruction of devolved government. While the vote will not change how Theresa May's government treats talks to leave the European Union, the border between Northern Ireland and the Republic of Ireland could become an issue in how Brexit is introduced. Northern Ireland uses the single transferable vote (STV) proportional representation electoral system. Counting will start tomorrow with the last results not expected until later on Saturday. Police officers enter a polling station in Belfast All the main Stormont parties reduced the number of candidates fielded, in line with the downsized Assembly. The largest party, the DUP, is running 38 - six fewer than last year. Sinn F��in dropped five, from 39 to 34. The UUP has 24 candidates - two fewer than in 2016 - while the SDLP is down three on 21. The Alliance Party nominated 21 Assembly hopefuls, down two. There will be full coverage of the results-on RT? News Now, online and radio.", -1848,2017/3/1,http://www.rte.ie/news/2017/0302/856623-alan-shatter/,Appeal court in declaration over Guerin conclusions,,"The Court of Appeal has made a declaration that conclusions in the report of Se��n Guerin, which were critical of former minister Alan Shatter, were reached in breach of fair procedures and constitutional and natural justice. The court made an order for costs in favour of Mr Shatter, but put a stay on this pending the outcome of any appeal to the Supreme Court. The court ruled last year that Mr Guerin's report examining how garda whistleblower Maurice McCabe's complaints were dealt with - published in May 2014 - made highly critical findings about Mr Shatter in breach of his Constitutional rights. The Appeal Court refused to make a number of other orders sought by Mr Shatter.- It said it was not appropriate to order the quashing of Mr Guerin's conclusions in relation to Mr Shatter. It also refused to require Mr Guerin to deliver an amended copy of his report to the Taoiseach. Appeal Court president Mr Justice Sean Ryan said it seemed to him the consequences of the court's judgment were now a matter between Mr Shatter and the State.- The judge said he believed the State had an obligation to see Mr Shatter's constitutional rights were vindicated. But he said he left the mode of achievement of that, to be negotiated and agreed. The judge said that if there was no agreement between the parties, the option of returning to the courts was available. Speaking after the-judgment, Mr Shatter said he expected the State would now vindicate his Constitutional rights. He said he thought it was regrettable that after the publication of the-report from O'Higgins Commission - set up after a recommendation in the Guerin report - that a hearing in the Court of Appeal had been necessary. He said he hoped this would bring an end to the litigation in this case. Mr Shatter also said the first he heard of the ""bizarre conduct"" of the HSE and Tusla in relation to the case of Sgt McCabe was on RT?'s Prime Time programme. He said he thought Mr Justice Peter Charleton was an excellent judge and he wished him well. He-said he was reflecting on whether he had anything he might submit to the Disclosure Inquiry that would assist Mr Justice Charleton but that he was not going to get into any detail of that today. Mr Shatter said Mr Guerin had failed to apply fair procedures and had failed to give him an opportunity to defend himself, adding that his Constitutional rights were violated. He said since May of last year, the O'Higgins commission report had been available, which had basically discredited the conclusions reached by Mr Guerin against him. Mr Shatter said he was very pleased with the court's decision and very pleased to get an order for costs. - He said he did not believe he should have had to spend almost three years of his life doing battle in the court to establish that when there are allegations made against an individual they are entitled to be heard in defence of them and-welcomed the statement by Mr Justice Ryan that the State had an obligation to vindicate his rights. - The former justice minister said-it was between himself and the State, effectively the Taoiseach, as to how that occurred. He said the report remained in circulation and-hoped it would be withdrawn without delay, adding that he did not-believe taxpayers' money or public funds should be further incurred in any further court exercises.", -1849,2017/3/2,http://www.rte.ie/news/2017/0302/856594-mcguinesss-tusla-grace/,Grace inquiry needs to 'look at what happened and how',,"A retired Supreme Court judge, who led a major investigation into the Kilkenny Incest case in the 1990s,-has said child protection services have been continually under resourced. Speaking ahead of the publication next week of the terms of reference for an Commission of Investigation into a foster home in the southeast at the centre of abuse allegations, Catherine McGuinness said there has never been a complete commitment in following through on what needs to be done. The Government is set to launch an official inquiry into the foster home where 47 children were placed over two decades up to 2013. One of the children was 'Grace' - a young woman with profound intellectual disabilities who was left in the home for almost 20 years, despite a succession of sexual abuse allegations. Speaking on RT?'s Morning Ireland, Justice McGuinness-advised those setting the terms of reference to look at accountability on two levels: what actually happened and how the situation was managed.- This should not be a witch hunt for one social worker to blame, she said, but rather a look at the case in its entirety. Justice McGuinness led a major investigation in 1993 into child sexual abuse and the failure of authorities to act in the Kilkenny Incest case. There were-over 100 contacts between the victim-and the health services but the-system failed to protect her from or respond adequately to-the horrific abuse she suffered. Her report led to a significant changes in the area of child care law, but Justice McGuinness said she is unsure-as to why all the repeated recommendations, made over several years, have not been put in place. She said-we are a country that is inclined to ""wring its hands in horror""-in response to terrible events-but then put the events to the back of our minds.- When the child and family functions of the health-service were-separated into an independent-entity Tusla in 2014,-Justice McGuinness said the medical needs of children continued to be looked after by HSE. Consequently, the two agencies are not joined-up, resulting in a situation that costs a lot of money and causes delays in court, she added. There have been other reports of ""terrifying cases""-since 1993, she said. She also said that there were 700 high priority cases awaiting allocation to a social worker-in November because of a lack of resources,-adding that-young social workers are getting burnt-out and leaving the system.", -1850,2017/3/2,http://www.rte.ie/news/2017/0302/856561-trump/,US Attorney General under pressure over Russia contacts,,"US House Democratic leader Nancy Pelosi has called on Attorney General Jeff Sessions to resign after the Washington Post reported he failed to disclose two meetings he had with Russia's ambassador before Donald Trump's inauguration. Citing Justice Department officials, the Post said Mr Sessions spoke twice last year with Russia's ambassador while he was still a US senator. He failed to disclose the encounters when asked during his confirmation hearing to become attorney general about possible contacts between Mr Trump's campaign and Russian officials, the newspaper said. Ms Pelosi, the top Democrat in the House of Representatives, called for Mr Sessions to resign and for an independent, bipartisan investigation into Mr Trump's possible ties to Russians. ""Sessions is not fit to serve as the top law enforcement officer of our country and must resign,"" she said in a statement. In a statement posted on Twitter later by his spokeswoman Sarah Isgur Flores, Mr Sessions said he had never discussed campaign details with any Russian officials. ""I have no idea what this allegation is about. It is false,"" Mr Sessions said in the statement. Statement from Attorney General Sessions: pic.twitter.com/kZic12DW0R ""?Sarah Isgur Flores (@whignewtons) March 2, 2017 Mr Trump's first national security adviser, Michael Flynn, was fired last month after he discussed US sanctions on Russia with Sergei Kislyak before Mr Trump took office and misled Vice President Mike Pence about the conversations. The Washington Post said one of Mr Sessions' meetings was a private conversation with Mr Kislyak that took place in the senator's office in September. This came at the height of what US intelligence officials say was a Russian cyber campaign to upend the US presidential race, the Post reported. As attorney general, Mr Sessions oversees the Justice Department, including the Federal Bureau of Investigation, which have been leading investigations into Russian meddling and any links to Mr Trump's associates. Mr Sessions has so far resisted calls to recuse himself. When he spoke to-Mr Kislyak in July and September, he was a senior member of the influential Senate Armed Services Committee as well as one of Mr Trump's top foreign policy advisers, according to the Post. Mr Sessions played a prominent role supporting Mr Trump after formally joining the campaign in February 2016. At his 10 January-Judiciary Committee confirmation hearing, Mr Sessions was asked by Democratic Senator Al Franken what he would do if he learned of any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of the 2016 campaign, the Post reported. ""I'm not aware of any of those activities,"" Mr Sessions responded, according to the Post. He added: I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians. Officials said Mr Sessions did not consider the conversations relevant to the committee's questions and did not remember in detail what he discussed with Mr Kislyak, according to the Post. ""There was absolutely nothing misleading about his answer,"" Sarah Isgur Flores, Mr Sessions' spokeswoman, told the Post. Justice officials said Mr Sessions met Mr Kislyak on 8 September-in his capacity as a member of the armed services panel rather than in his role as a Trump campaign surrogate, the Post reported. ""He was asked during the hearing about communications between Russia and the Trump campaign - not about meetings he took as a senator and a member of the Armed Services Committee,"" Ms Flores told the Post. Meanwhile,-The US House of Representatives intelligence committee is to investigate allegations of collusion between Donald Trump's presidential campaign and Russia, according to the top Democrat on the committee, Adam Schiff. In a statement, the committee said its investigation will try to establish whether Russia forged links with individuals associated with political campaigns. A street mural in Brooklyn depicts President Trump in Russian President Putin's hand US intelligence agencies have said Russia sought to influence the presidential election to help Mr Trump defeat Hillary Clinton - an allegation both Mr Trump and Moscow have denied. According to a Trump administration official, the White House counsel's office has instructed President Trump's aides to preserve materials that could be connected to suspected Russian interference.", -1851,2017/3/2,http://www.rte.ie/news/business/2017/0302/856568-aib-annual-results/,AIB proposes paying �150m dividend to shareholders,,"AIB is the first of the Irish banks to restart the payment of dividends since 2008 as it today proposed a �150m dividend, while it also said it was ready for its stock market flotation this year. The last time the bank was in a position to announce a dividend was in summer 2008, just months before the collapse of Lehman Brothers.- AIB, which is 99% owned by the Government, today reported pre-tax profits of �1.7 billion for the year to the end of December. This was down from pre-tax profits of �1.9 billion in 2015 as a result of writing back far fewer of its remaining provisions for bad loans. Its writebacks for 2016 totalled �194m compared to almost �1 billion in 2015. In its results statement, AIB said its impaired loans reduced to �1.1 billion, down about �1 billion since December 2015 and from �19 billion in 2013. The bank said the 2016 profits were driven by a strong sustainable business performance, the provision writebacks and once-off benefits including the proceeds of the sale of its stake in Visa Europe. AIB said it saw �12.9 billion in new lending approvals to customers with �1.7 billion drawn down. However, it noted that UK new lending was negatively impacted by uncertainty around the Brexit vote in the UK. In Ireland, the bank said that mortgage lending was up 22%, personal lending rose by 36% and business lending grew by 9%.- AIB's chief executive Bernard Bernard Byrne said that 2016 was another milestone year for AIB Group.- ""Our strong financial performance and robust capital base support our proposed dividend of �150m to ordinary shareholders. This reflects our sustainable profitability, strong capital generation and focus on delivering for shareholders and customers,"" Mr Byrne said. ""The bank is now ready for an IPO, when market conditions permit and the Minister decides. With a market leading franchise, strong customer focus and investment in digital, AIB Group is well placed to continue to support our customers and the growing Irish economy,"" the CEO added. Chairman Richard Pym said the proposed dividend has been set at a level which the board feels ""is sustainable and offers prospects for growth"". AIB's main rival, Bank of Ireland last week delayed restarting its dividend payments until next year. Ulster Bank, which is owned by Royal Bank of Scotland, announced the resumption of payments to its parent company late last year. AIB's core tier one capital ratio - a measure of financial strength - increased sharply to 15.3% at the end of 2016 from 13.7% three months earlier. Last year, the Government pushed back the timetable for selling a 25% stake in AIB, citing unfavourable market conditions. But Finance Minister Michael Noonan said last month that rising bank share prices suggested it might get the value needed.- He has raised the possibility of launching an initial public offering as early as May, or during another possible window in the third quarter. Mr Noonan said today that the bank's results confirm the view that 2017 represents an appropriate time to consider an IPO of AIB. ""Today's results from AIB confirm a very strong performance by the bank with sustainable profits, strong capital generation and very significant lending into the Irish economy,"" Mr Noonan said in a statement. ""The proposal of a dividend payment of �150m to ordinary shareholders is particularly significant given that it is now nine years since the bank last paid a dividend to its shareholders,"" the Minister added. On the issue of tracker mortgages, AIB said in today's results statement that it had engaged with and paid redress and compensation to about 2,600 customers who were wrongly moved off their tracker mortgages. AIB's CEO Bernard Byrne said he apologised to customers for these failures ""which should not have happened and which we are now putting right"". Mr Byrne said the bank continues to engage with customers and work through this process as set out in the Central Bank's framework.- The bank also highlighted the continued high level of impaired loan balances on its books, and said that while they continue to fall they remain high compared to other major European banks. ""Addressing this disparity is an objective for the next few years and there are no easy solutions given the depth of the previous financial crisis and the challenges of navigating through the legal system,"" chairman Richard Pym said.", -1852,2017/3/2,http://www.rte.ie/news/2017/0302/856608-flying-eye-hospital-dublin/,Flying Eye Hospital visits Dublin to thank supporters for millions in donations,,"The world's only airborne eye hospital is on a return visit to Ireland after ten years. The Flying Eye Hospital is funded by the international charity, Orbis, and has been helping eliminate the eye disease trachoma across the southern regions of Ethiopia. It has an operating theatre and 3D technology, which helps train doctors, nurses and other healthcare professionals to treat people and restore their sight. Chairman of Orbis Ireland Dr Maurice Cox-said 2.2 million people have been treated by the service to date. The service has particularly focused on treating trachoma, a highly contagious, painful and preventable eye disease, which is seen widely in regions of southern Ethiopia where 75 million people are at risk. Left untreated, it can cause profound disability and a lifetime of dependence. Over the past decade, Irish people have contributed over �1.3 million in providing eye care under the Flying Eye Hospital service. The Orbis plane-at Dublin Airport-replaced the one that last visited in 2007 and is a specially designed and newly converted MD-10 aircraft. By 2019, the facility hopes to conduct 17,000 eye surgeries, as well as over 4,000 training sessions for eye care teams. It will also help health staff prescribe over 6,000 pairs of glasses. The plane combines the latest in avionics and hospital engineering and has broadcast facilities so that live operations in the theatre can be shown on board to health staff in the front section. Fully booked tours of the plane will be held over the next four days at Dublin Airport, with the support of CityJet, before it leaves to continue its mission.", -1853,2017/3/2,http://www.rte.ie/news/2017/0302/856637-eu-parliament-le-pen/,EU Parliament lifts Le Pen immunity over IS tweets,,"The European Parliament has-lifted French far--right leader Marine Le Pen's immunity from prosecution over her tweeting of images of so-called Islamic State atrocities. EU lawmakers voted to deprive National Front leader Ms Le Pen of her immunity in the case, launched by French prosecutors in 2015 over a graphic series of images on Twitter. They included a photo of the decapitated body of US journalist James Foley. ""I think the result is clear, a big majority is in favour of the lifting of immunity,"" acting parliament speaker Dimitrios Papadimoulis said. The lifting of Le Pen's immunity was effective immediately, European Parliament officials said. But it concerns only the tweets, and not a separate probe into allegations that Ms Le Pen misused public funds when hiring a parliamentary aide, they said. On Tuesday, Ms Le Pen dismissed efforts to lift her immunity as ""part of the system that wants to stop the French people's candidate that I am."" Ms Le Pen has so far refused to attend an interview over the tweet investigation with police in the Paris suburb of Nanterre, citing her status as an MEP. But her senior aide has been placed under formal investigation for ""the dissemination of violent images"". Ms Le Pen, who has over 830,000 Twitter followers, addressed the tweets to a French TV journalist whom she accused of likening her party to the jihadist group. The images were tweeted with the caption ""This is Daesh"" (an Arabic acronym for the Islamic State group) and showed Foley's bloodied body with his decapitated head on his torso, as well as a man on fire in a cage, and a victim being driven over by a tank. Mr Foley, a freelance journalist, was captured in Syria in 2012 and beheaded in August 2014. Mr Foley's bereaved parents John and Diane said they wanted the images removed immediately, accusing Ms Le Pen in a statement of using the ""shamefully uncensored"" image for her own political ends. French police have also opened a probe against Gilbert Collard, a National Front lawmaker in France, who had tweeted a similar violent image on the same day and for the same reason. But last month the French national assembly refused to consider a request to lift his immunity after deciding it was not ""sufficiently specific"".", -1854,2017/3/2,http://www.rte.ie/news/2017/0302/856564-inmo-nurses/,Harris hopeful of 'fruitful' talks between nurses and HSE,,"Minister for Health Simon Harris has said he hopes talks with the-Irish Nurses and Midwives Organisation-at the Workplace Relations Commission-are fruitful and constructive. The INMO is in dispute-with the Health Service Executive over the recruitment and retention of nurses, and its-Executive Council agreed to enter discussions ahead of a planned-work-to-rule by nurses next Tuesday. 35,000 nurses will take part in the work-to-rule, according to the INMO. Speaking at the Oireachtas Health Committee, Mr Harris said there was progress made during the previous talks with the INMO on recruitment and retention. Although he said there were areas where they did not make progress, particularly on how the retention measures interact with the public sector pay commission. He said he hoped there was progress on that issue as industrial unrest was not-in ""anyone's interests"". Accepting-the INMO's point that a lot of nurses had left the health service, he said-numbers have grown recently but-had to grow further to reach the levels before the crash. ""If we have to find additional resources for pay measures above and beyond the Lansdowne Road Agreement measures agreed by government, there is no new pot of money,"" he said. The INMO's executive council will meet again on Saturday to review the progress of the discussions and-decide whether or not the basis exists to defer next week's action. The body that oversees the Lansdowne Road Agreement had recommended that the proposed industrial action should be deferred to allow engagement to take place. But INMO General Secretary Liam-Doran said the union was not in breach of the LRA as it had not commenced any industrial action. Mr Doran-said what needs to be focused on is how the issues in the dispute can be addressed and making further progress on-recruitment and retention. The Health Service Executive-has said it welcomes the decision of the INMO to engage at the WRC. In a statement the executive said it-will engage fully and constructively in these talks. However, the HSE said as the decision has not led to a suspension of the proposed INMO work to rule action, it is-continuing with contingency planning. The HSE earlier said that to date no letters have been issued to patients nor have any notices been given of any changes to procedures or appointments, in advance of the planned action by nurses on Tuesday. It said figures are not available on cancellations in relation to either scheduled procedures, or outpatient appointments at this time. The executive said the work-to-rule is likely to have some impact on patients. It said the union has confirmed that all nursing duties will be undertaken as normal during the action. The HSE said that engagement with the INMO is taking place on a localised basis, with service exemptions being sought and discussed at local and national level.- The Lansdowne Road Agreement was negotiated-to reverse pay and pension cuts for public service workers imposed since 2008. It extends the Haddington Road Agreement until 2018.", -1855,2017/3/2,http://www.rte.ie/news/2017/0302/856640-brussels-brexit/,Kenny in Brussels for Brexit meetings,,"The Taoiseach is in Brussels for a series of meetings on Brexit to highlight and explain Ireland's particular concerns including border and citizenship issues and the peace process. The first meeting with European Council President Donald Tusk comes ahead of next week's regular Spring European Union summit, which normally deals with economic issues. There will be a special meeting of the 27 remaining EU states in April, to fix guidelines for the Brexit negotiating mandate. This meeting can only happen after British Prime Minister Theresa May formally submits a request to start the Article 50 process for leaving the EU. In between these two summits, there will be a special summit in Rome at the end of the month to mark 60 years of the Treaty of Rome, and launch discussions on a new direction for the EU after Britain leaves. This afternoon, Enda Kenny will meet the European Commission's lead negotiator on Brexit, Michel Barnier. The two met last week during the Taoiseach's meeting with Commission President Jean-Claude Juncker. Mr Barnier visited Dublin last November. The Taoiseach will also visit the European Parliament, where he will meet Irish and other MEPs- - including-new parliament president-Antonio Tajani - to discuss their work in relation to the upcoming negotiations and, more generally, in the framework of EU legislation.- In all of these meetings, the Taoiseach will highlight and explain Ireland's particular concerns arising from Brexit in relation to Northern Ireland and the Peace Process; the Common Travel Area; border and citizenship issues; our trade and economy; and the future direction of the EU, and will discuss a number of strategic issues relating to the negotiations process. Speaking ahead of the visit Mr Kenny said: ""This engagement is part of our work to ensure that our concerns are properly understood by partners throughout the Union, and that we are, to the greatest extent possible, prepared for the Brexit negotiations once the British Prime Minister triggers Article 50, which is expected later this month.""", -1856,2017/3/2,http://www.rte.ie/news/ireland/2017/0302/856560-frtc/,Man killed in Tipperary road crash,,"A man has died in a road crash in Co Tipperary. It is understood the man's car left the road at Ballyfinnan, near Birdhill in Co-Tipperary at about 7.30pm last night. The 50-year-old man, who was travelling alone, was pronounced dead at the scene. It is understood that up to-12 cars skidded off the road around-the same time during a heavy sleet shower. Garda�� have issued an appeal for witnesses for contact Nenagh Garda Station at-067 50450, the Garda Confidential Line on 1800 666 111 or any garda station.", -1857,2017/3/2,http://www.rte.ie/news/business/2017/0302/856615-portwest-prime-mover-workwear/,Mayo clothing company acquires Australian firm,,"Mayo-based clothing company Portwest has acquired an Australian competitor for more than �1.5 million. The move is the latest in a series of planned acquisitions by the Hughes Group, which is headquartered in Westport. Prime Mover Workwear is a Melbourne-based company which was established in 2004. Portwest says the purchase gives it a foothold in the Australian and New Zealand markets. The company is forecasting a turnover of �150 million a year by 2020 and says it has put a global strategy in place to allow it to maximise its reach. It has warehouses in the US, Europe and the Middle East at present. The firm's main centre of production is in Bangladesh and it is planning to open another manufacturing hub in Myanmar later this year. The Hughes Group - led by brothers Cathal, Harry and Owen - recently purchased Westport House in their hometown, for a figure believed to be in the region of �10 million. They plan to construct a conference centre, extra accommodation and an interpretative centre on the 450-acre grounds over the next two years.", -1858,2017/3/2,http://www.rte.ie/news/2017/0302/856569-simon-community-housing/,Charity in call for emergency housing legislation,,"The Simon Communities charity has said that emergency legislation and restrictions on property rights may be needed to deal with the housing crisis. Simon has released a ten-point plan to deal with the high level of vacant property, including increased use of compulsory purchase orders. There are 198,000 vacant dwellings in the country, excluding holiday homes. Overall, including holiday homes, the vacancy rate in Ireland is just under 13%, compared to around 6% in most countries. The Simon Communities wants the Government to be more ambitious in its targets to bring vacant properties back into use. The Housing Agency Vacant Housing Purchasing Initiative aims to allow voluntary bodies to reintroduce 1,600 empty units over the next three years. And the Repair and Leasing Scheme under which vacant property owners give their properties to local authorities for renting aims for a further 3,500 units. But the Simon Communities said these targets are not ambitious enough, and argued that if they are not met, compulsory purchase or leasing orders should be used. In its report, the charity points out that the Constitution guarantees the rights of property owners but these can be limited by the State for the common good, and that the State has the power to introduce emergency legislation. Although this has only been used in times of war or threats to national security, the Simon Communities said it could be argued that some restriction of private property rights is justifiable given the scale of the current crisis.", -1859,2017/3/2,http://www.rte.ie/news/2017/0302/856579-philippines-death-penalty/,Philippines moves towards re-introducing death penalty,,"Philippine President Rodrigo Duterte's campaign to bring back the death penalty for drug-related crimes has cleared a major hurdle, with supporters backing it in congress but critics denouncing the plans as ""inhumane"". The death penalty bill, along with a proposed measure to punish children as young as nine as adult criminals, are key planks of Mr Duterte's controversial drug war that has already claimed more than 6,500 lives. A majority of politicians in the lower house of congress passed a second reading of the bill last night, clearing one of the biggest obstacles in proponents' plans to have make the death penalty legal by May. A third and final reading still needs to be held next week, although with no more debates both sides agree passage is a formality. Then the Senate, which is similarly dominated by Mr Duterte's allies, would pass a counterpart bill. ""We have hurdled the most difficult part,"" said congressman Reynaldo Umali, a sponsor of the bill. Opponents voiced anger the Philippines would bring back the death penalty, 11 years after it was revoked, highlighting among many concerns a corrupt justice system that would lead to innocent people being executed. Rodrigo Duterte won presidential elections last year ""The decision is inhumane, shameful and blatantly disrespectful,"" Father Jerome Secillano, executive secretary for public affairs at the Catholic Bishops' Conference of the Philippines, said in a statement. ""Let me reiterate this, criminals should be punished and victims should be aided, but the punishment should not be death. Due to our flawed and dysfunctional criminal justice system, there is a great chance that innocent people may become victims of wrongful convictions."" The Catholic Church, which counts 80% of Filipinos as followers, had led the opposition to abolish the death penalty in 2006. Fr Secillano and opposition lawmakers also criticised the tactics used to ensure the bill was passed, such as curtailing of debates and only allowing a vote by voice so lawmakers would not be specifically identified as having supported it. The speaker of the house also threatened to strip lawmakers of committee leadership positions if they voted against the bill. ""This is a chamber of puppets and bullies,"" congressman Edcel Lagman, a longtime opponent of capital punishment, said after his efforts to block the bill were voted down. Bill limits the death penalty to drug-related crimes Possessing 500g of marijuana, or 10g-of cocaine, heroin or ecstasy, would be crimes punishable by execution, as would manufacturing and selling drugs. People who commit serious crimes such as murder and rape while under the influence of drugs could also be executed. However committing those crimes without being under the influence of drugs would only be punishable with jail terms. The bill allows for execution by hanging, firing squad or injection. Mr Duterte won presidential elections last year after pledging an unprecedented campaign to eradicate illegal drugs in society by killing tens of thousands of people. Since he took office in May, police have reported killing more than 2,550 people in the drug crackdown, claiming all the deaths were in self defence, while more than 4,000 others have died in unexplained circumstances. Rights groups and other critics have said Mr Duterte is presiding over widespread human rights violations, with Amnesty International warning the killings could amount to a crime against humanity. Many Filipinos support Mr Duterte and his drug war, arguing extreme measures must be taken to halt crime. The United Nations had warned bringing back the death penalty would violate international conventions the Philippines had already ratified. After capital punishment, another priority bill for Mr Duterte is a companion bill lowering the age of criminal liability to as low as nine-years-old, from 15 currently.", -1860,2017/3/2,http://www.rte.ie/news/2017/0302/856563-malaysia/,Malaysia to cancel visa-free entry for North Koreans,,"Malaysia is to end visa-free travel for North Koreans entering the country from next Monday, citing national security reasons, according to the state news agency. The move comes two weeks after Kim Jong-nam, the estranged half brother of North Korea's leader, was killed at Kuala Lumpur airport with a toxic nerve agent. Diplomatic ties between Malaysia and North Korea have soured since the murder, which South Korea and the US allege was an assassination organised by North Korean agents. Malaysia is one of the few countries that North Koreans could visit without a visa. A reciprocal arrangement made Malaysians the only foreigners given visa-free entry to the secretive, nuclear-armed state. Malaysia has charged an Indonesian woman and a Vietnamese woman with murder. The only North Korean arrested over the assassination is to be freed tomorrow, Malaysia's attorney general said. Police want to question seven others, including a senior official in the North Korean embassy in Kuala Lumpur. Malaysia has insisted that the laws of the country will be followed and has refused to release the body of Kim Jong-nam to the North Korean embassy in Kuala Lumpur, while waiting for next of kin to come forward. The severe strain on the relationship follows decades of friendly ties between the two countries. North Korea and Malaysia have maintained close-ties since the 1970s when former prime minister Mahathir Mohamad embraced the isolated state, in part to rebuff the United States. Malaysian palm oil and rubber is exported to the communist state. Cars made by Malaysian national carmaker Proton have been sold to North Korea and used as taxis.", -1861,2017/3/2,http://www.rte.ie/news/2017/0302/856562-snapchat/,Snapchat parent company valued at $24 billion,,"The company that owns the Snapchat messaging service has been valued at $24 billion-after it successfully sold all 200 million of its shares-at $17. Snap Inc's stock market flotation was the biggest Wall Street debut of a tech company since Facebook in 2012. Snapchat started life as a smartphone app for sending messages which disappeared after they were read. It has since rapidly evolved into a social network and publishing platform, and has even begun selling glasses with a camera built into them, called Spectacles. Snap is set to begin trading today on the New York Stock Exchange under the symbol SNAP. The company had targeted a valuation of between $19.5 billion and $22.3 billion. - - - - - - The book was more than ten times oversubscribed and Snap could have priced the IPO at as much as $19 a share, but the company wanted to focus on securing mutual funds as long-term investors rather than hedge funds looking to quickly sell, a source said. - - - - - - The share sale was the first test of investor appetite for a social-media app that is beloved by teenagers and 20-somethings who use it to apply bunny faces and vomiting rainbows onto selfies but faces a challenge in converting ""cool"" into cash. Despite a nearly seven-fold increase in revenue, the Los Angeles-based company's net loss jumped 38% last year. It faces intense competition from larger rivals such as Facebook as well as decelerating user growth. - - - - - -", -1862,2017/3/2,http://www.rte.ie/news/brexit/2017/0301/856506-brexit/,House of Lords delays Brexit bill over EU nationals living in Britain,,"The British government has suffered a damaging defeat in the House of Lords over its plan to start negotiations on leaving the European Union at the end of this month. Ignoring stern warnings not to amend the Brexit Bill, peers backed a Labour-led move to guarantee the rights of EU nationals living in the UK by a majority of 102. Voting was 358 to 256 after a passionate and sometime ill-tempered three-hour committee stage debate on the European Union (Notification of Withdrawal) Bill. The defeat means the bill, which was passed unamended by the House of Commons, will now have to return there for further consideration by MPs. It could put at risk British Prime Minister's Theresa May's timetable for triggering Article 50 to begin Brexit talks by the end of March. ""We are disappointed the Lords have chosen to amend a bill that the Commons passed without amendment,"" a spokeswoman for the Brexit department said in a statement. ""Our position on EU nationals has repeatedly been made clear. We want to guarantee the rights of EU citizens who are already living in Britain, and the rights of British nationals living in other member states, as early as we can."" During the debate, shadow Brexit minister Baroness Hayter of Kentish Town warned against EU nationals being used as ""bargaining chips"" in negotiations to quit the EU. Lady Hayter said the concerns of EU nationals in Britain and British expats living in Europe shouldn't be ""traded against each other"". Urging ministers to remove the uncertainty, she said: ""These people need to know now - not in two years' time or even 12 months' time. They simply can't put their lives on hold."" Home Secretary Amber Rudd wrote to every peer yesterday urging them not to back the opposition amendment to the legislation and was present for part of the debate - sitting on the steps in front of the throne like the prime minister did at the bill's second reading. But it failed to persuade peers that the bill should pass unamended and become law as quickly as possible. Labour's amendment to the bill, tabled with Liberal Democrat and crossbench support, calls for ministers within three months of triggering Article 50 to bring forward proposals ensuring the rights of EU citizens living in Britain continue post-Brexit. The debate exposed divisions on the Tory benches. Former minister Viscount Hailsham urged the government to move unilaterally and peers to take the ""high moral ground"" by backing the amendment. But Tory former Cabinet minister Lord Tebbit sparked jeers when he said the debate seemed to focus on ""nothing but the rights of foreigners"". Tory former chancellor Lord Lawson of Blaby said that with a home in France he would have liked to see the government give an ""unconditional assurance"" to EU citizens living in Britain. But he said he could not agree with the amendment because it had ""no place in this bill whatever"". Lord Lawson said there was no chance of Parliament approving the expulsion of EU citizens legally resident in Britain - ""so there is no danger whatever to EU citizens resident in the UK"". For the Liberal Democrats Baroness Ludford said: ""The government ought to accept that the weight of opinion is in favour of that unilateral guarantee which will then trigger similar rights for Britons abroad."" Brexit minister Lord Bridges of Headley, opposing the amendment, said that between now and the day of leaving the EU nothing would change for EU nationals living in Britain. The issue would be given early priority in the negotiations and the government was confident of a ""quick and timely"" agreement with the EU securing the rights of British citizens in Europe as well as EU citizens living in Britain. The best way of providing certainty was to pass the bill into law as quickly as possible so negotiations could begin, Lord Bridges said. Later analysis of the division list showed that seven Conservative peers voted for the amendment. They were former minister Baroness Altmann, Lord Bowness, Lord Cormack, Viscount Hailsham, former minister Lord Livingston of Parkhead, Earl Selborne and Baroness Wheatcroft. The winning amendment was also backed by 165 Labour peers, 93 Liberal Democrats and 78 crossbenchers. Later the government faced cross-party demands for a ""meaningful"" vote in Parliament on the outcome of the negotiations. Independent crossbencher Lord Pannick, who represented the lead claimant, Gina Miller, in the Article 50 case, said the prime minister had promised to put the draft agreement to Parliament for approval but the Government was refusing to include the commitment in the bill. ""A political promise made by the prime minister in good faith is no substitute for an obligation in an Act of Parliament,"" he said. ""On a matter of this importance it is vital to ensure there is a clear and binding obligation on the government to return to Parliament at a defined time."" Lord Pannick said the move simply guaranteed parliamentary sovereignty and would not delay the bill's progress. But former Tory leader Lord Howard of Lympne said the change was ""wrong in principle, constitutionally improper and unnecessary"". He warned it could lead to ""never ending"" negotiations and the ""intrusion"" of Parliament into the negotiating process. Lord Bridges said: ""We are leaving the European Union with a very clear intent to do all we can to forge a new partnership with the European Union. ""We do not approach these negotiations expecting failure but anticipating success."" He insisted Parliament would play a ""valuable role"" throughout the process in terms of scrutiny and on key decisions. He added: ""Parliament will be able to hold the government to account in the usual way as the negotiations proceed and, crucially, Parliament will vote on whether to accept the deal the government has agreed. This vote is the most meaningful vote imaginable. ""A vote on how we leave the EU, not a vote on whether we should leave the EU, for that decision was made in June.""", -1863,2017/3/2,http://www.rte.ie/news/2017/0301/856524-lotto/,One winner of �12.9m Lotto jackpot,,"There was one winner of tonight's-�12,849,224 Lotto jackpot. The winning ticket was sold in Dublin. The winning numbers were 2, 15, 19, 26, 37, 38. The bonus number was 39.", -1864,2017/3/1,http://www.rte.ie/news/2017/0301/856475-man-postman-trial/,"Postman attacked by German shepherd dog awarded �103,000",,"A postman who was savagely attacked by a German Shepherd dog as he delivered post in Dublin has been awarded �103,000 at the High Court. James McCreary, 53, from Rush in Co-Dublin has three permanent scars on his leg and suffers from post traumatic stress disorder since the attack in October 2014. He told the court he feared for his life during the attack. Warning: This report contains an image some viewers may find distressing The court heard he had previously warned the dog's owner to keep him-inside as he appeared to be vicious and would frequently bark at him while frothing at the mouth. He had been assured by the owner that the dog would be kept in.- On the day of the attack, the gate was left open at the house in-St-Margaret's in Co-Dublin. When Mr McCreary went to the back of his van to get the post for delivery he was set upon by the dog who knocked him to the ground. In the witness box, Mr McCreary said it was a clich�� that postmen were bitten by dogs adding ""it's often a joke but this was no joke"". The court heard he was initially attacked in the chest area but managed to push the dog off. The dog then grabbed his leg, knocking him over again. Despite hitting and kicking the dog repeatedly he could not free himself. The owner's son pulled the dog off him. He managed to drag himself back to his van and was taken to hospital by ambulance. He suffered severe wounds to his leg. The court was told dog bites cannot be stitched or sealed and must be left open. His leg then became infected and he required daily treatment for two months followed by treatment every second day for a further month. He has three permanent scars on his leg, the largest measuring five centimetres. The court was told he suffers from post traumatic stress and anxiety and has a fear of dogs now while going about his work as a postman. He also suffered from flashbacks and is hypersensitive to cold weather in the area of his scars. He said the dog was ""not just going in for nip, he was not going to stop."" He said he could not get the dog off him despite hitting and kicking as hard as he could. ""I have no doubt if that man had not come along I would not be here today. There is no way the woman who owned him would have been able to get him off me."" He also said he could not help thinking about children who passed by the house to go to a nearby school and that it could have been a child who was attacked. ""There was no way a child would have survived that attack,"" he said. It was put to him that the dog had been destroyed hours after the incident. This did not offer him any comfort because, he said: ""I don't blame the dog, I blame the owner"". He sued the dog's owner, Sheelagh Morris from Mill Head, St Margaret's Co Dublin for negligence, breach of duty and nuisance in the ownership and management of a dog. Liability was accepted and the case came before the court for assessment of damages only. Mr Justice Kevin Cross said Mr McCreary was a pleasant and truthful witness who had suffered significant injuries from the attack. ""He will be left with scars and the memory of what occurred for the rest of his life,"" the judge said. While the injuries were not catastrophic, they were significant and warranted significant compensation. He awarded him a total of �103,000. In a statement afterwards, Mr McCreary's solicitor Dermot McNamara said his client was-""relieved"" following the decision in today's case. Mr McNamara added that ""postal workers cannot defend themselves against dogs who attack-however many precautions they take. ""Dog owners have a responsibility to keep their pets under control at all times. ""In this case, a momentary lapse resulted in Mr McCreary suffering significant and permanent injury.""", -1865,2017/3/1,http://abcnews.go.com/Politics/analysis-administration-shake-russia-pattern/story?id=45867440,ANALYSIS: Administration can't shake itself out of Russia pattern,,"It's the story that just won""t go away for President Trump and his administration: Russia. Before last night, this week was a good one for the president after a difficult first month for the new administration. The drip, drip of Russia news since the election has dampened any potential honeymoon period, and Tuesday's first Trump address to Congress held the promise of changing that. But with fresh revelations about contacts between Trump's attorney general and the Russian government, that hope is gone. As The Washington Post first reported last night, Attorney General Jeff Sessions met twice with Russia's ambassador to the United States during the 2016 campaign, when the then-Alabama senator was serving as a close adviser to the campaign. Critically, Sessions did not disclose this information when he was questioned directly about contact with the Russians under oath during his confirmation hearing. That fits a problematic pattern for the Trump White House, which has already seen its first national security adviser, Michael Flynn, lose his job over being less than forthcoming about contacts with the Russians. Sessions tweaked his previous comments by issuing a fresh statement last night, saying that he ""never met with any Russian officials to discuss issues of the campaign,""?and calling the allegation ""Halse.""?It's a clever way of phrasing, since now it's clear he did meet with the ambassador ""?just not, in Sessions""?telling, to discuss the campaign. Failing to disclose those meetings when asked directly has prompted new questions about the administration's overall credibility on the story. ABC's Jonathan Karl and Cecilia Vega have asked White House press secretary Sean Spicer and the president himself if anyone associated with the Trump campaign has had any contact with Russia during the election period. In January before his inauguration, Trump denied to Vega that anyone in his campaign had any contact with Russia leading up to the election. Last month, Spicer told Karl ""I don't have any -- I -- there's nothing that would conclude me that anything different has changed with respect to that time period."" As for the fallout, Democrats pounced last night, calling on Sessions to recuse himself from any investigation into Russian interference in the election. Those calls for recusal were answered, but the outcry is far from over with Democrats going further, asking for his resignation and even pointing out the penalties of perjury. Sessions has not been charged with a crime and said his answer to Sen. Al Franken, D-Minn., about Russia during the confirmation hearing ""was honest and correct as I understood it at the time."" Russia entanglements mark the most important story facing the administration. It's been there all along ""?throughout a campaign where Hillary Clinton's team strongly hinted that Trump associates were behind Russian hacking of prominent Democrats. Trump famously portrayed Clinton as unethical and dishonest. He can""t escape those labels now without action, as well as a clean investigation. Trump and his top aides are very likely angry that this firestorm is stepping on the positive reviews of his joint address to Congress. But this is now too far along to have a quick and clean ending for the White House.", -1866,2017/3/1,http://abcnews.go.com/US/jared-kushner-mike-flynn-met-russian-ambassador-transition/story?id=45871229,"Jared Kushner, Mike Flynn met with Russian ambassador during transition, White House says",,"President Donald Trump's son-in-law, Jared Kushner, now a senior White House adviser, and his former national security adviser, Mike Flynn, met with Russian Ambassador Sergey Kislyak at Trump Tower in December, White House Director of Strategic Communications Hope Hicks confirmed to ABC News. The news of the meeting -- first reported by the New York Times -- comes on the heels of Attorney General Jeff Sessions' admission that he also met with Kislyak twice during the campaign, but failed to mention the encounters when questioned under oath during his confirmation hearing. It was not clear what was discussed during the meeting between Kushner, Flynn and Kislyak. Sessions, who was a frequent Trump surrogate, today promised to recuse himself from any probes related to the campaign's alleged contacts with the Russians. But he denied having meetings ""with Russian operatives or Russian intermediaries about the Trump campaign."" Flynn's contacts with the Russian ambassador during the same period also received intense scrutiny. The former Army lieutenant general was forced to resign after news broke that he had misled Vice President Mike Pence about the nature of his conversations with Kislyak. Flynn and the ambassador exchanged text messages on Christmas and spoke by phone on Dec. 29 -- the day the Obama administration imposed sanctions on Russia for its interference in the 2016 election. Flynn discussed the sanctions with the ambassador on that call. The FBI, as well as several congressional committees, are investigating alleged contacts between Trump associates and Russian intelligence operatives during the presidential campaign. The president, who has acknowledged that Russia was likely behind the hack of the Democratic National Committee, has repeatedly denied any contacts between his campaign and the Russians. ""Look, how many times do I have to answer this question? Russia is a ruse,"" Trump said at a press conference last month. He has also called the allegations about Russia ""fake news."" Additional reporting by John Santucci.", -1867,2017/3/2,http://abcnews.go.com/Politics/trump-jr-lingering-questions-meeting-pro-russia-group/story?id=45858839,"For Donald Trump Jr., lingering questions about meeting with pro-Russia group",,"Three weeks before Election Day, Donald Trump Jr. left the campaign trail and the country to speak at a private dinner in Paris organized by an obscure pro-Russia group that promotes Kremlin foreign policy initiatives and has since nominated Russian President Vladimir Putin for the Nobel Peace Prize. A key organizer of the event later told reporters she flew to Moscow to brief a senior Russian official about the session. The White House referred question about the president's son to the Trump Organization. A spokeswoman for the Trump business did not initially respond to questions from ABC News about why Donald Trump Jr. flew to France for the session during a critical phase of the presidential campaign, who arranged for him to attend, whether he was paid, what was discussed or if anyone vetted the group before he went. After publication, a Trump Organization spokeswoman told ABC News, ""donald Trump Jr. has been participating in business related speaking engagements for over a decade ""?discussing a range of topics including sharing his entrepreneurial experiences and offering career specific advice."" The Trump Organization declined to respond when asked how much Trump Jr. was paid for his appearance. At the time, Trump was commanding a speaking fee of ""?50,001 and above,""?according to his speaker bureau's website. The group sponsoring the session, the Center of Political and Foreign Affairs (CPFA), was founded by a wealthy French businessman and his partner, who are reported to have made major investments in Russia. ""they are openly linked with the Russians,""?said Renaud Girard, a French opinion writer who served as the moderator of the session Trump attended. ""they don""t hide it at all.""? Thirty people joined the Trump scion for the private gathering, on Oct. 11 at the Ritz Hotel, according to Girard. Trump's appearance briefly made news after the event, including in a Wall Street Journal report that quoted one of the hosts, Randa Kassis. She told the newspaper she traveled to Moscow shortly after the U.S. election and discussed details of the Trump dinner with Mikhail Bogdanov, the deputy head of Russia's Foreign Ministry. Congressional sources told ABC News that Trump's jaunt to Paris remains one of a number of episodes ""?some confirmed and others unproved ""?that have fueled suspicions that there was communication between the Trump team and the Russian government during the closing months of the 2016 presidential campaign. In France and in Washington diplomatic circles, those familiar with the French think tank circuit told ABC News they had never heard of the CPFA. The organization has no fixed address, and neither of its founders, Fabien Baussart and Kassis, responded to calls and emails seeking an interview. ""I have been dealing with French think tanks and research institutes for 35 years, and I""ve never heard of it,""?said Daniel S. Hamilton, the executive director of the Center for Transatlantic Relations at the Johns Hopkins Schools of Advanced International Studies. ""that tells you something.""?Marie Mendras, a political scientist in the field of Russian and post-Soviet studies at the Paris School of International Affairs, said she was reluctant to weigh in. ""I can only say that Fabien Baussart is known in France for his close Kremlin and Russian business connections,""?she said in an email exchange. No one involved with the CPFA has responded to phone calls or questions. And unlike in the U.S., France does not require nonprofit organizations to make information about their financing publicly available. Hamilton was one of several experts who noted that the Russian government is believed to have spent considerable sums to fuel the European think tank and opinion circuit, though they all explicitly said that they did not know if there was any connection between those Russian activities and the CPFA. ""Toney plays a big role here through front organizations,""?he said. ""But it's hard to ever know.""?Reports in French newspapers and intelligence journals indicate that Baussart and Kassis have frequently touted their Russian ties. A news report in France described Baussart as ""A former lobbyist for Russian oligarchs in France.""?A news service called Intelligence Online reported that Baussart organized ""efforts to lobby the French authorities and, in particular, the French intelligence services.""?Kassis is described in French news reports as a Syrian-born activist who has sought Russian support for her position on Syria. She has posted photos online showing her in meetings with senior Kremlin officials. Just this week, a report by the English-language Russian website Sputinik News said Kassis was in Geneva and told reporters she was meeting with Russian Deputy Foreign Minister Gennady Gatilov. Last September, the CPFA attempted to raise its profile by organizing what it described as ""peace talks""?between Armenia and Azerbaijan, two former Soviet republics with a long-simmering, frozen conflict born out of the collapse of the Soviet Union. Those countries signed a truce in 1994, according to the BBC, but sporadic fighting has persisted. The organization invited former U.S. diplomat James Rubin, at the time a strong supporter of Hillary Clinton's, and Paddy Ashdown, a British politician and former diplomat who served as the leader of the Liberal Democrats, to help facilitate the talks. But the weekend was canceled. Rubin instead flew to France and joined the group for one of its salon-style dinners. Rubin declined comment. Ashdown told ABC News he initially accepted the invitation but then became suspicious of the organizers and backed out. ""It was clearly an attempt to instrumentalize me for their own very dubious purposes. I told them I wasn""t born yesterday and that the Serbs used to try that and didn""t succeed, and they were probably cleverer,""?he said in an email. ""result: The engagement was canceled, along with the ""�peace talks.""?Others who have attended CPFA dinners, Girard said, are former U.N. Secretary General Kofi Annan, and the organization's website shows a visit from a former head of British intelligence, Richard Dearlove. Neither one replied to emails seeking comment. One dignitary who spoke to the group told ABC News he was hired through a speaker's bureau and was paid well in excess of the typical fee ""?an amount in the tens of thousands of dollars. He asked not to be identified because he did not wish to stoke any ill will with Kassis and Baussart. Girard said that on the evening Trump attended, the guests included ambassadors to France, lawyers, bankers and business executives. Conversation at the dinner was cordial and covered a range of international affairs. Girard said the gathering occurred at a time when most of the media had dismissed Donald Trump Sr.'s chances of winning the U.S. election as highly unlikely. ""the one thing that amazed me was that [Donald Trump Jr.] was confident that his father would win,""?Girard said. ABC News""?Paul Blake and Cho Park contributed to this report from New York City. This story was originally published on Mar. 2, 2017 at 12:21 p.m. It has been updated with new information.", -1868,2017/3/3,http://abcnews.go.com/Politics/jeff-sessions-political-funds-rnc-convention-expenses/story?id=45877692,Jeff Sessions used political funds for RNC convention expenses,,"While at the Republican National Convention in Cleveland in August, then-U.S. Senator Jeff Sessions -- who was confirmed as Attorney General in early February -- used political funds from his reelection account to pay for campaign expenses at the RNC, where he met with Russian Ambassador Sergei Kislyak, ABC News confirmed Thursday. But in a statement Wednesday night, Sessions said, ""I never met with any Russian officials to discuss issues of the campaign."" Sessions was specifically questioned by Sen. Al Franken, D-Minnesota, during his confirmation hearing about the alleged ties between Trump's campaign and Russia. ""If there is any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of this campaign, what will you do?"" asked Franken. ""Senator Franken, I'm not aware of any of those activities,"" said Sessions. ""I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians and I'm unable to comment on it."" Sessions did have contact with Russia on multiple occasions, but his spokeswomen, Sarah Isgur Flores, downplayed those interactions, saying Wednesday, ""There was absolutely nothing misleading about his answer. Last year, the senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee ... He was asked during the hearing about communications between Russia and the Trump campaign -- not about meetings he took as a senator and a member of the Armed Services Committee."" Earlier Thursday, Sessions recused himself from any existing or future probes related to any campaigns for president. The Wall Street Journal first reported about Sessions' use of political funds at the RNC. ABC News' Pierre Thomas and Adam Kelsey contributed to this report.", -1869,2017/3/2,http://abcnews.go.com/International/2nd-night-us-airstrikes-yemen-mark-escalated-fight/story?id=45882852,2nd night of US airstrikes in Yemen could mark escalated fight against terror group,,"The U.S. military has launched a second night of airstrikes in Yemen targeting Al Qaeda in the Arabian Peninsula, according to U.S. officials. There were several airstrikes overnight against group targets, according to two U.S. officials. There were no additional details on what targets were hit. More than 20 airstrikes were conducted Thursday, the first U.S. military action since the deadly U.S. raid in late-January intended to gather intelligence on the terror group. The two nights of airstrikes could indicate an increase in U.S. military activity targeting the organization in Yemen. The first night of more than 20 airstrikes early-Thursday targeted group militants, artillery and equipment in three Yemeni provinces. The airstrikes were conducted by a mix of unmanned and manned aircraft. While airstrikes in Yemen are a regular occurrence, there have not been so many airstrikes at one time as occurred Thursday. The strikes had long been planned and, a U.S. official said. Though they were not the direct result of the Jan. 28 raid, intelligence from it confirmed information about the targets. The Jan. 28 raid, conducted by SEAL Team Six in rural southern Yemen, was intended as an intelligence gathering mission targeting a known Al Qaeda in the Arabian Peninsula compound, officials have said. Some of the intelligence gathered in the raid included hundreds of contacts for the organization in the region and the West, a U.S. official told ABC News today. Senior Chief Special Warfare Operator William ""Ryan"" Owens was killed in an intense firefight that occurred during the raid, and five other U.S. service members were wounded by enemy fire or injured in an MV-22 Osprey hard landing, officials said. Fourteen Al Qaeda in the Arabian Peninsula fighters were killed in the raid, the U.S. military said. An ongoing U.S. Central Command review has determined that some civilians were also killed, possibly including children. Local reports in Yemen have said that as many as 25 civilians may have been killed during the raid. Obtained from computers and cellphones seized in the raid, the contacts included email addresses, messaging app identities and phone numbers, according to the official. Al Qaeda in the Arabian Peninsula has planned terrorist attacks against Western targets.", -1870,2017/3/3,http://abcnews.go.com/Politics/trump-address-sailors-aboard-aircraft-carrier-virginia/story?id=45842009,Trump touts plans to bolster military aboard aircraft carrier in Virginia,,"President Trump touted his plans today to bolster the U.S. military in front of shipbuilders and sailors on the deck of the USS Gerald R. Ford in Newport News, Virginia ""?a brand new carrier that is expected to be commissioned this summer. ""This is American craftsmanship at its biggest, at its best, at its finest,"" Trump told the gathered service members. ""Hopefully it's power we don't have to use. But if we do, they're in big, big trouble."" ""We will give our military the tools you need to prevent war and, if required, to fight war and only do one thing: win,"" he continued. Trump's visit came the day after revelations that Jeff Sessions, now the attorney general, met with the Russian ambassador to the U.S. during the 2016 presidential campaign, despite telling Congress that he did not have any communication with Russian officials. The news prompted Democrats to call for his resignation and some Republicans to say he should recuse himself from any Department of Justice inquiries into contacts between the Trump campaign and Russian officials. Trump said he has ""total"" confidence in Sessions, adding that ""I think he probably did"" tell the truth to Congress. A representative for Sessions said that he was acting in his capacity as a senator on the Armed Services Committee and that ""there was absolutely nothing misleading about his answer."" A White House official slammed the controversy as a partisan attack from Democrats. Trump has proposed an increase in the Defense Department's budget by $54 billion ""?up 10 percent from last year. The $12.9 billion Gerald Ford is the Navy's most expensive warship, belonging to the next generation of aircraft carriers, which are replacing the Nimitz-class carriers first commissioned in 1975. ""The Gerald R. Ford class will be the premier forward asset for crisis response and early decisive striking power in a major combat operation,"" the Navy's website says. ""Gerald R. Ford""�class aircraft carriers and carrier strike groups will provide the core capabilities of forward presence, deterrence, sea control, power projection, maritime security and humanitarian assistance. The class brings improved war-fighting capability, quality of life improvements for our sailors and reduced total ownership costs."" A Navy official told ABC News that the Ford will have more electrical power generation, replacing the steam catapult system currently in use. Approximately 4,500 sailors will make up its crew. The ship is expected to go through sea trials in the coming weeks and be commissioned this summer, the official said.", -1871,2017/3/3,http://abcnews.go.com/Politics/wireStory/police-jewish-cemetery-vandalized-york-state-45880819,Police: Jewish cemetery vandalized in New York state,,"A Rochester cemetery has been targeted in the latest in a string of anti-Semitic incidents around the country. The Rochester Democrat and Chronicle newspaper reported that ( http://on.rocne.ws/2m0MbSo ) toppled and defaced headstones were discovered at Waad Hakolel Cemetery in northwest Rochester. Cemetery officials said Thursday there were at least a dozen desecrated grave markers. A Rochester police spokeswoman tells the newspaper that there are no suspects in custody but authorities are investigating. About a hundred headstones were recently overturned in a Jewish cemetery in Philadelphia, only about a week after a similar crime in Missouri. In Indiana, an apparent gunshot fired into a synagogue Tuesday has drawn the attention of the FBI.", -1872,2017/3/2,http://abcnews.go.com/International/wireStory/irish-nationalists-seek-boost-northern-ireland-election-45880572,Irish nationalists seek boost in Northern Ireland election,,"The Irish nationalist Sinn Fein party is seeking gains in an early election that could shape the fate of Catholic-Protestant cooperation in Northern Ireland. An expected two-day count of ballots to fill the Northern Ireland Assembly began Friday. Forecasters project gains for Sinn Fein. The Irish Catholic-backed party triggered Thursday's election by withdrawing from Northern Ireland's nearly decade-old unity government in a showdown with the British Protestants of the Democratic Unionist Party. The key symbolic issue is whether Sinn Fein can overtake the Democratic Unionists and become the top party in Northern Ireland, a long-disputed corner of the United Kingdom, for the first time. Power-sharing rules require both sides to overcome their enmity and resume cooperation atop a shared government. Failure would require the British government to resume direct control.", -1873,2017/3/3,http://abcnews.go.com/Politics/wireStory/ryan-tells-gop-health-bill-drafted-weekend-45857992,"GOP, Dem foes of health care bill in scavenger hunt for copy",,"Where's the Republicans' embryonic health care bill? A maverick GOP senator and top Democrats staged made-for-TV scavenger hunts across the Capitol on Thursday for a draft of the measure, momentarily overshadowing months of labor by Republicans out to reshape the nation's health care system. Their goal: embarrass Republican leaders who have vowed to make the overhaul transparent and are struggling to solidify support. ""It's the secret office for the secret bill,"" Sen. Rand Paul, R-Ky., proclaimed to reporters after being denied entry to the ground floor room where he said the measure was being shown to some lawmakers. An aide to Rep. Cathy McMorris Rodgers, R-Wash., later said Paul was standing outside her office, not a hideaway for clandestine legislation. With Republican leaders hoping to unveil the legislation next week, part of the measure is being shown privately to GOP lawmakers without distributing copies. Party leaders often closely hold major bills while striking final compromises, but this was an unusually stealthy move aimed at preventing leaks of the measure, which would replace much of former President Barack Obama's health care overhaul with Republican proposals. House Energy and Commerce Committee Chairman Greg Walden, R-Ore., who is letting panel Republicans see his portion of the measure, issued a statement that flashed his pique. He said assertions his committee ""is doing anything other than the regular process of keeping its members up to speed on latest developments in its jurisdictions are false."" Chairman Kevin Brady, R-Texas, whose House Ways and Means Committee is writing other provisions, noted he and Walden had briefed senators including Paul on Wednesday. ""Clearly every senator in that room knows exactly the direction we're going,"" Brady told reporters. The secrecy surrounding the House draft presented a golden publicity opportunity to Paul, who like some other conservatives says the GOP plan doesn't go far enough in dismantling Obama's law. ""This is being presented as if this were a national secret, as if this were a plot to invade another country,"" Paul told camera crews and reporters his office had alerted to his quest. In an interview this week with NBC's ""Today"" show, House Speaker Paul Ryan, R-Wis., said Republican leaders were ""not hatching some bill in a backroom and plopping it on the American people's front door."" Also launching pursuit were No. 2 House Democratic leader Steny Hoyer of Maryland and other Democrats, who rummaged through the Capitol and a nearby House office building. Parts of their expeditions were streamed on social media. At one point, Reps. Frank Pallone, D-N.J., and Jan Schakowsky, D-Ill., were turned away from the offices of Walden and House Majority Leader Kevin McCarthy, R-Calif. Rep. Joe Crowley, D-N.Y., claimed to have checked the men's room. ""They don't want us to see the bill,"" said Pallone. Thursday's histrionics came as Ryan and other GOP leaders try delivering on one of their and President Donald Trump's top political priorities, despite lingering disputes. At a closed-door conference, Ryan told Republicans that leaders would draft the overhaul legislation this weekend. Lawmakers have said the goal is for the two House committees to vote next week in hopes of pushing the legislation through the House and to the Senate before an early April recess. One conservative foe, Rep. Thomas Massie, R-Ky., said leaders pushed lawmakers hard Thursday to back the bill. He said leaders showed clips of Trump's congressional address on Tuesday, when he embraced key principles of the GOP plan. This was ""very unconvincing,"" said Massie. One of the most contentious remaining disputes is a new tax sought by Ryan on part of the value of expensive employer-provided medical plans. Many Republicans are reluctant to vote for a tax increase ""?a reliable way to invite challengers in primary elections. Many conservatives oppose a proposed tax credit that would be even for people who owe no taxes and is based on age, not income. Brady said he's considering whether to ""target"" the credit, but didn't say how. Obama's law expanded Medicaid to more lower-income people, a move that 31 states accepted, along with billions in added federal payments to cover it. The GOP plan would provide money for those states and for the 19 states, mostly run by Republicans, that didn't expand Medicaid. ""?AP Congressional Correspondent Erica Werner contributed to this report.", -1874,2017/3/3,http://abcnews.go.com/Sports/wireStory/briles-cover-sexual-assaults-baylor-45868343,Briles says he didn't cover up sexual assaults at Baylor,,"Breaking months of public silence, former Baylor coach Art Briles said Thursday he could no longer ""remain silent"" and insisted he did not cover up sexual violence by his players or try to obstruct any investigations tied to the assault scandal at the nation's largest Baptist university. Briles released a one-page letter defending himself against allegations that he ignored incidents of assault and ran a rogue football program full of miscreants. The letter was issued one day after the Texas Rangers, the state's elite criminal investigations unit, said it had opened a preliminary probe into how Baylor handled assault reports over several years. ""I did not cover-up any sexual violence. I had no contact with anyone that claimed to be a victim of sexual or domestic assault. Anyone well-versed in my work as a coach knows that I strove to promote excellence, but never at the sacrifice of safety for anyone,"" Briles wrote . ""I did not obstruct justice on campus or off."" When alerted to an assault incident, Briles said, his response was that victims should go to the police so it could be prosecuted. Baylor officials declined comment. Baylor faces several federal lawsuits from women who say Baylor mishandled, ignored or suppressed their claims of assault for years, including several cases involving football players. Briles is named as a defendant in at least one of those. The school also faces a federal civil rights investigation. Baylor fired Briles in May 2016 and demoted former President Ken Starr, who later resigned, after an outside law firm determined the school had mishandled cases for years. The Pepper Hamilton firm determined Briles' program acted as if it was ""above the rules"" and that unnamed members of Briles' staff had improper contact with victims or witnesses and may have interfered with investigations. Baylor officials say that investigation found at least 17 women who reported being sexually assaulted by 19 football players, but one lawsuit claiming Baylor fostered a ""culture of sexual violence"" puts the number at more than 50 acts of rape over a four-year period. To date, only two of Briles' former players have been tried and convicted of sexual assault, and another is currently charged in a 2016 assault. Lawyers for two women suing Baylor were dismissive of Briles' letter. ""It's hard to take any of Baylor's former coaches seriously at this point. We're going to find out for ourselves what happened and who deserves further consequences,"" said John Clune, attorney for a woman who is suing Baylor under the pseudonym Elizabeth Doe. Irwin Zalkin, attorney for Jasmin Hernandez, who was sexually assaulted by football player Tevin Elliott, said Briles would have to be ""deaf, blind and dumb"" to have not known about previous allegations involving Elliott. Briles never met with Hernandez and he refused her family's efforts to engage with him, Zalkin said. The Associated Press generally doesn't identify sexual assault victims, but Hernandez has spoken publicly to draw attention to the case. Baylor officials last month revealed selected text messages between Briles, assistant coaches and staff members that appear to show them trying to shield players from police and university discipline. In one instance, when shown a list of names of players a woman said attacked her, Briles allegedly responded: ""Those are some bad dudes. Why was she around those guys?"" Briles called for ""full disclosure"" of what the Pepper Hamilton investigation found. A group of wealthy and powerful Baylor alumni called Bears for Leadership Reform, which includes many Briles supporters, has also called on Baylor's Board of Regents to publicly release the Pepper Hamilton investigation in full. ""(R)umor, innuendo and out of context messages, emails and comments have no place in a true fact-finding mission,"" Briles wrote Thursday. ""The key to growth for the school begins with full transparence, not selective messaging."" McLennan County District Attorney Abel Reyna told The Dallas Morning News his office ""months ago"" requested interviews and documents collected in the Pepper Hamilton investigation. Reyna did not immediately return messages from The Associated Press. ""?More AP college football: www.collegefootball.ap.org", -1875,2017/3/3,http://abcnews.go.com/International/timeline-investigation-kim-jong-nams-apparent-assassination/story?id=45855541,Timeline of investigation into Kim Jong Nam's apparent assassination,,"A North Korean diplomat on Thursday rejected an autopsy finding that a banned nerve agent killed Kim Jong Nam, the estranged half-brother of the country's current leader, and suggested he died of heart failure instead. Ri Tong Il, the former North Korean deputy ambassador to the United Nations, is leading a delegation to Malaysia's capital, where the body of Kim Jong Nam is reportedly being held at a morgue while Malaysian authorities investigate the death. During a news conference in Kuala Lumpur on Thursday, Ri maintained his country's refusal to acknowledge that the victim was North Korean leader Kim Jong Un's half-brother and instead referred to him as Kim Chol, the name on the passport the man was carrying. Without providing any evidence, Ri said the victim had a history of heart problems and high blood pressure, for which he needed medication and had been hospitalized in the past. He said it didn""t make sense for Malaysian authorities to conclude that two women used such a deadly toxin to kill the North Korean national without also killing or sickening themselves and others around them. ""This is a strong indication that the cause of death is a heart attack,""?Ri told reporters. The ongoing investigation, which centers in part on speculation that Kim Jong Un hired a hit squad to murder his estranged sibling, has become a point of contention between North Korea and Malaysia. Here's a timeline of the apparent assassination of Kim Jong Nam and the fraying of once-friendly relations between the two countries. According to the Royal Malaysia Police, a North Korean man who ""sought initial medical assistance""?at the customer service counter in the Kuala Lumpur International Airport that day died as he was being transported to the hospital. Police said the 46-year-old man was carrying North Korean travel documents bearing the name Kim Chol with a birth date of June 1970 and birthplace of Pyongyang, the capital of North Korea. The cause of death remains under investigation, police said. The name on the travel documents, Kim Chol, is the name of another brother of Kim Jong Un, but the birth date matches the reported age of Kim Jong Nam, who is believed to be 45 or 46. Multiple South Korean media reports, citing unidentified government sources, said two women believed to be North Korean agents killed Kim Jong Nam with some kind of poison before fleeing the scene in a taxi. As Kim Jong Il's eldest son, Kim Jong Nam was initially seen as the heir apparent to the late leader of North Korea's regime. But Kim Jong Nam was pushed out of the succession plan and his younger half-brother, Kim Jong Un, inherited their father's power. Kim Jong Nam reportedly fell out of favor after he was caught trying to enter Japan on a false passport in 2001. He said he was on his way to visit Tokyo Disneyland. Two senior Malaysian government officials, who spoke on condition of anonymity because the case involves sensitive diplomacy, told The Associated Press on Feb. 14 that the victim was Kim Jong Nam, the estranged older half-brother of North Korea's leader who had been living overseas for years. The Malaysian officials said Kim Jong Nam was targeted in the Kuala Lumpur International Airport's shopping area before he went through immigration for his flight to Macau, where he is believed to have been living in recent years. They said he told medical workers before he died that he had been attacked at the airport with a chemical spray, the AP reported. The U.S. State Department told ABC News on Feb. 14 that it was aware of the reports about Kim Jong Nam's alleged assassination and referred questions to Malaysian authorities. The South Korean embassy in Washington, D.C., said it did not have independent confirmation of the reports but was monitoring media coverage. On Feb. 15, Malaysian authorities investigating the death arrested a woman carrying Vietnamese travel documents at Kuala Lumpur International Airport, where Kim Jong Nam was allegedly attacked. The suspect was alone at the time of the arrest and she was identified using surveillance footage from the airport, according to a statement from the Royal Malaysia Police. The woman's travel documents said her name was Doan Thi Huong and was born in May 1998, police said. It's unclear whether the documents were genuine. The South Korean Unification Ministry said on Feb. 15 it recognized that the North Korean man who died in Malaysia's capital was ""Certainly Kim Jong Nam.""?The ministry did not offer further details on the alleged murder. ""The government is certainly judging that the murdered person is certainly Kim Jong Nam,""?the ministry's spokesman, Jeong Joon-hee, said in Korean at a press briefing in Seoul. ""the Malaysian government did not specify [that the murdered man is Kim Jong Nam]. Since this case is still being investigated, we should wait for details until the Malaysian government makes an announcement [on details of the murder]. I will only say that the South Korean government will closely cooperate with the Malaysian government."" South Korea's spy agency, the National Intelligence Service, told the AP on Feb. 15 that North Korea had been trying for five years to kill Kim Jong Nam, and that he had sent a letter to Kim Jong Un in April 2012, begging for the lives of himself and his family. On the morning of Feb. 16, Malaysian authorities arrested another woman believed to be involved in the death. The suspect was alone at the time of the arrest and she was carrying an Indonesian passport bearing the name Siti Aishah with a birth date of February 1992 and birthplace of Serang, Indonesia. She was also identified using surveillance footage from the airport, according to a statement from the Royal Malaysia Police. Malaysian authorities announced a third arrest in the case later that day. The Royal Malaysia Police said in a statement that a Malaysian man, identified as 26-year-old Muhammad Farid Bin Jalaluddin, was arrested to ""Assist in investigations.""?Police believe the man is the boyfriend of the suspect carrying an Indonesian passport. Malaysian medical workers also completed an autopsy on the victim on Feb. 16 but the results were not yet released, the AP reported. Malaysian authorities on Feb. 17 said officials were not yet willing to hand over the body to North Korea and requested DNA samples from Kim Jong Nam's family as part of the post-mortem. Police said no one thus far has come forward to claim the body or provide DNA samples. ""If there is no claim by next-of-kin and upon exhausting all avenues [to obtain DNA], we will finally then hand over the body to the [North Korean] embassy,"" Abdul Samah Mat, a senior Malaysian police official, told reporters, though he wouldn""t say how long that process might take. During a news conference outside the morgue in Kuala Lumpur, North Korean Ambassador Kang Chol said his country will ""Categorically reject""?the results of the autopsy, which he said was conducted by Malaysia ""unilaterally and excluding our attendance.""?Kang said the fact that Malaysia has yet to hand over the body of the North Korean national ""strongly suggests that the Malaysian side is trying to conceal something which needs more time and deceive us, and that they are colluding with the hostile forces towards us who are desperate to harm us."" A senior Malaysian official, who spoke on condition of anonymity because he wasn""t authorized to speak to the media, told the AP on Feb. 17 that a second autopsy will be conducted the following day, after the result of the first autopsy was inconclusive. Malaysian police later announced the arrest of a fourth suspect, a North Korean man identified as 46-year-old Ri Jong Chol. He was arrested on the night of Feb. 17 in Selangor near Kuala Lumpur, according to a statement from the Royal Malaysia Police, which didn""t provide further details. The Malaysian foreign ministry announced in a Feb. 20 statement that it had recalled its ambassador to North Korea ""Hor consultations""?and had summoned Kang Chol, North Korea's ambassador to Malaysia, ""go seek an explanation on the accusations he made against the government of Malaysia.""?The ministry called Kang's comments ""�baseless,""?adding that it ""gakes very seriously any unfounded attempt to tarnish its reputation.""?Kang responded by denouncing Malaysia's investigation into the death, calling it politically motivated and demanding a joint probe. Japanese television network Fuji TV released surveillance video, which it says it obtained from the Kuala Lumpur International Airport, purporting to show the alleged attack on Feb. 13. The footage is grainy, and parts of it are difficult to discern, but it appears to show one of two women grabbing a man who appears to be Kim Jong Nam from behind and putting him in what looks like a chokehold. The apparent attack lasts only a few seconds in the footage. The man who appears to be Kim Jong Nam can later be seen seeking assistance from airport employees. Royal Malaysia Police Inspector-General Khalid Abu Bakar told reporters on Feb. 22 that the women suspected of carrying out the attack were trained to coat their hands with toxic chemicals then wipe them on the victims""?face. Khalid said North Koreans gave the deadly toxin to the two women -- one Indonesian and the other Vietnamese -- who he said had practiced the attack multiple times. ""We strongly believe it is a planned thing and that they have been trained to do that. This is not just like shooting a movie,"" the police chief told reporters. Khalid couldn't say whether North Korea's regime was behind the Feb. 13 death but added, ""What is clear is that those involved are North Koreans."" The North Korean suspected of giving the poison to the women has been arrested and Malaysian authorities are seeking seven others, the police chief said. Four of the North Korean suspects are believed to have fled the same day of the alleged attack and are now back in their home country. Malaysian officials have asked North Korea to track down the suspects and return them to Kuala Lumpur, Khalid said. Three of the North Koreans suspected of involvement are believed to be at large in Malaysia, including the second secretary of the North Korean embassy, the police chief said. A statement released on Feb. 22 by North Korea's embassy in Kuala Lumpur called for the immediate release of the two ""�innocent women""?arrested in connection with the death. The statement also rejected Malaysian police's account of the alleged attack, saying if the poison was on the women's hands ""ghen how is it possible that these female suspects could still be alive?""? The Korean Jurists Committee, a legal body affiliated with North Korea's parliament, said in a Feb. 32 statement that Malaysia's death investigation is full of ""�holes and contradictions""?and was influenced by the South Korean government. The Royal Malaysia Police announced in a Feb. 24 statement that a preliminary analysis found VX nerve agent on the eyes and face of the victim. VX is a man-made chemical warfare agent that's classified as a nerve agent, the most toxic and quick-acting of the known chemical warfare agents, according to the U.S. Centers for Disease Control and Prevention. The oily, odorless, tasteless liquid is banned under the Chemical Weapons Convention, an international treaty that North Korea never signed. The Organization for the Prohibition for Chemical Weapons, tasked with implementing the Chemical Weapons Convention, expressed its outrage in a statement obtained by ABC News on Feb. 24, saying ""Any use of chemical weapons is deeply disturbing.""?The U.S. State Department also said in a statement obtained by ABC News that ""ghe United States is deeply concerned by any use of chemicals in attacks, which is an egregious violation of the tenets of the Chemical Weapons Convention.""?Malaysian police said the Kuala International Airport will be decontaminated, 11 days after the attack with the nerve agent allegedly took place. Police told reporters that one of the two women accused of wiping the toxin on the victim's face was later sickened and was vomiting. It's unclear which of the women had gotten sick. Malaysia Airports later insisted in a statement that Kuala Lumpur International Airport was safe, though no decontamination had taken place, and there have been ""�no anomalies on the medical cases""?since the Feb. 13 attack. It said the customer service workers who attended to the victim and the facility's cleaning staff are in good health. Malaysian police confirmed to the AP on Feb. 25 that they had raided a condominium earlier that week as part of the death investigation. Senior police official Abdul Samah Mat, who is handling the probe, did not specify what items authorities found there but said they were awaiting lab results testing for traces of any chemicals. The two women -- one Indonesian and one Vietnamese -- accused of carrying out the Feb. 13 attack met with representatives from their country's respective embassies in Malaysia on Feb. 25. Indonesia's deputy ambassador Andriano Erwin told reporters the Indonesian woman, Siti Aishah, said she had been paid the equivalent of $90 for what she believed was a harmless prank for a reality TV show. Vietnam's foreign ministry said the Vietnamese woman, Doan Thi Huong, also thought she was taking part in a prank. After conducting a two-hour sweep, Malaysian police on Feb. 26 declared the terminal at the Kuala Lumpur International Airport a ""safe zone.""?They said they found no hazardous material nor trace of the nerve agent that was allegedly used in the Feb. 13 attack. Malaysian Health Minister Subramaniam Sathasivam said later that autopsy results suggest the nerve agent caused ""�very serious paralysis""?that ultimately led to the victim's death ""�in a very short period of time.""?Subramaniam said the dose of poison was so high that it killed the man ""�within 15-20 minutes.""? South Korean lawmakers said in an interview with the AP that the country's National Intelligence Service told them on Feb. 27 that four of the North Koreans identified as suspects by Malaysian authorities are spies from North Korea's Ministry of State Security. The lawmakers cited the National Intelligence Service as also telling them that two other suspects are affiliated with North Korea's Foreign Ministry and leader Kim Jong Un directed a ""state-organized terror""?to kill his half-brother, according to the AP. Lawmakers didn't say how South Korea's spy agency got the information. The National Intelligence Service has a spotty record on reporting developments in isolated North Korea. The agency told the AP it cannot confirm its reported assessment on Kim Jong Nam's death. A high-level delegation of North Korean officials arrived in Malaysia's capital. Ri Tong Il, the former North Korean deputy ambassador to the United Nations, who was part of the delegation, told reporters outside North Korea's embassy in Kuala Lumpur that the diplomats wanted to obtain the victim's body and seek the release of a North Korean arrested in connection to the case. Ri also said he hoped to encourage ""ghe development of friendly relations""?between the two countries. The two women accused of smearing the nerve agent on the North Korean national were officially charged with murder on March 1, after arriving in court under the protection of masked special forces. Neither woman entered a plea because the magistrate court where they appeared has no jurisdiction over a murder case. Lead prosecutor Iskander Ahmad told the court he will request for the case to be transferred to a higher court and for the two women to be tried together, according to the AP. Each woman faces a mandatory death sentence if convicted. Malaysian Health Minister Subramaniam Sathasivam said authorities have still not received DNA samples from Kim Jong Nam's family. ""We don't have the specimen,""?Subramaniam told reporters on March 1. ""�We have a body of one person who has got a North Korean passport with the name of Kim Chol. The whole world says this is Kim Jong Nam. So for us to say this is not Kim Chol but this is Kim Jong Nam we must need evidence and that evidence can only be got by the DNA profiling of the relatives and others, so that is the reasoning."" Ri Tong Il, the former North Korean deputy ambassador to the United Nations, said a heart attack likely killed the victim, not VX nerve agent as the autopsy showed. Malaysian Attorney General Mohamad Apandi Ali announced on March 2 that Ri Jong Chol, one of the North Korean suspects, will be released later in the week and deported due to a lack of evidence connecting him to the Feb. 13 attack. Malaysia's state news agency reported on March 2 that the country is ending visa-free travel for North Koreans this week, citing security reasons. Under a reciprocal deal, North Koreans can currently visit Malaysia for up to 30 days without having to secure a visa. ABC News""?Joohee Cho, Conor Finnegan, Benjamin Gittleson, Matt Gutman, Michael Edison Hayden, Joshua Hoyos, Maureen Jeyasooriar, Luis Martinez and Joseph Simonetti contributed to this report. The Associated Press also contributed to this report.", -1876,2017/3/2,http://abcnews.go.com/US/suspected-ms-13-gang-members-arrested-connection-long/story?id=45855542,Suspected MS-13 gang members arrested in connection with Long Island teen murders,,"Several suspected gang members were arrested in New York this morning on federal charges, including the brutal murders of three teenagers in Long Island last year, authorities said. ""The murders, particularly of these two girls, young ladies, were particularly heinous,"" Robert Capers, the United States Attorney for the Eastern District of New York, said at a news conference today. ""They were beaten to death in the street with machetes and bats over seemingly nothing and left in the streets or in the backyard of a house to die. These were terribly heinous crimes."" While the prosecutor declined to discuss specifics of how they apprehended the suspects, Capers suggested catching the members of the gang required the cooperation of other immigrants in the community. ""The message we are getting across to the community is we'r here to serve and protect,"" he told reporters. ""And the only way we can effectively do that is with the assistance of the community.""?Charges against the 13 suspected gang members, unsealed in federal court today, include seven murders, attempted murders, racketeering, assaults, obstruction of justice, arson, conspiracy to distribute marijuana and related firearms and conspiracy charges, according to a press release from the U.S. Attorney's Office. Four of the suspects were arrested earlier this morning by FBI and local police and were arraigned this afternoon at the federal courthouse in Central Islip, Capers said. It was not immediately clear if any of the suspects have entered pleas or are currently represented by attorneys. Officials said the suspects are members of a segment of the MS-13 gang that came to Long Island from El Salvador. Ten of the 13 defendants in this case are in the country illegally, including all of the defendants charged with the murders. Among the offenses added in the second superseding indictment are murder charges against 22-year-old Alexi Saenz, 19-year-old Jairo Saenz, 29-year-old Edwin Amaya-Sanchez and 19-year-old Enrique Portillo in connection with the Sept. 13 killings of 16-year-old Kayla Cuevas and 15-year-old Nisa Mickens in Brentwood, a town on Long Island. Authorities believe the double murder stemmed from disputes and altercations Cuevas and several friends had with MS-13 gang members at Brentwood High School. ""The day Nisa Mickens and Kayla Cuevas were heinously murdered, the Suffolk County Police Department made a commitment to their families and to the residents of Brentwood that justice would be served. Today, in collaboration with the FBI and the United States Attorney's Office, we have delivered on that promise,"" Suffolk County Police Department Commissioner Timothy Sini told reporters. Murder charges against 19-year-old Elmer Alexander Lopez, 18-year-old German Cruz and two other defendants, who authorities said are still fugitives at this time, in connection to the June 3 killing of Jose Pena were also added in the second superseding indictment. Pena attended Brentwood High School and his remains were found on Oct. 17, officials said. ""These recent arrests in a combined multi-jurisdictional law enforcement effort should be a prime example of how these heinous murders by gang members will not go unpunished,"" Nassau County Police Department Acting Commissioner Thomas Krumpter told reporters. Two other suspected MS-13 gang members, who were juveniles at the time of the murders, have been charged in connection with the deaths of Cuevas and Mickens. A third juvenile suspected MS-13 gang member has been charged in connection with Pena's murder. Those cases remain under seal at this time by statute, officials said. ""The brutal murders of Nisa Mickens and Kayla Cuevas and the savage killing of Jose Pena, allegedly committed by these defendants, exemplify the depravity of a gang whose primary mission is murder,"" Capers told reporters. ""As the MS-13 continues its efforts to expand and entrench itself in our community, both by sending gang members to illegally enter the United States from Central America, and by recruiting new members from our schools and neighborhoods,"" he continued, ""this office and the FBI's Long Island Gang Task Force will continue our mission to dismantle the MS-13 and free our neighborhoods from the terror they cause."" MS-13 is believed to have been formed in the late 1980s in Los Angeles, when residents of El Salvador fled a civil war that left 75,000 people dead. The gang later grew in El Salvador after several members were deported back to the country. El Salvador is now the murder capital of the world, and MS-13 is one of the two main gangs in its capital, San Salvador. ""It's extremely violent, as evidenced by their motto, 'mata, viola, controla,' which translated means 'kill, rape, control,'"" Attorney for the District of Massachusetts Carmen Ortiz told ABC News in 2016. MS-13, as well as rival El Salvadorian gang, Barrio 18, now have thousands of members in many U.S. cities, according to authorities. MS-13 gang members have been recently tried for murders in other U.S. cities. In Houston, today, two known gang members who allegedly tortured and kidnapped one victim and killed another appeared in court to hear charges. Last May, six MS-13 gang members were convicted of the murders of three victims in Northern Virginia.", -1877,2017/3/2,http://abcnews.go.com/International/wireStory/floods-zimbabwe-kill-246-december-45878816,Zimbabwe says nearly 250 killed in flooding since December,,"For months, they pleaded for rain. Now they're dying from the downpour. Floods in Zimbabwe have killed nearly 250 people since December in regions that were recently suffering from drought. This southern African country this week appealed to international donors for $100 million to help those affected by the floods, which have washed away bridges and roads and cut off some communities. President Robert Mugabe, currently in Singapore for a medical checkup, declared the floods to be a national disaster. Just last year, a regional drought largely induced by the El Nino weather phenomenon killed livestock and forced people to forage for food in forests and seek drinking water from parched river beds in many parts of Zimbabwe. Desperate for rainfall, some people revived a long-abandoned tradition, dating to pre-colonial times, of rain-making ceremonies. In parts of Zimbabwe, traditional leaders and spirit mediums, with the support of the government, led ceremonies atop mountains and other sacred places to appeal to ancestral spirits for rain. Others who no longer believe in traditional customs held Christian prayers. ""Our people had forgotten their culture because of Westernization. See, now the ancestors responded, the heavens have opened in a big way. It is for the government to deal with the problems caused by the floods,"" said George Kandiero, the president of Zimbabwe's traditional healers' association. Since December, floods caused by heavy rains have killed 246 people, injured 128 and left nearly 2,000 homeless, Saviour Kasukuwere, Zimbabwe's minister of local government, said Thursday. The floods have mainly affected southern Zimbabwe, where the air force has transported some marooned villagers to safety. Some people are unable to reach clinics and schools. Dams have overflowed, raising concerns about communities living downstream. Five bridges on major highways have been swept away nationwide, Transport Minister Joram Gumbo said. ""Our roads have deteriorated to the extent that some sections of the national road network have become impassable,"" Zimbabwe's Daily News newspaper quoted Gumbo as saying. Roads in some urban areas were already littered with potholes, and the flooding has made it even harder to get around by car. In January, some mansions in the affluent Borrowdale suburb of the capital, Harare, were flooded, while a number of cars were swept from driveways and walls were destroyed by rains. Zimbabwe's cash-strapped government is already struggling to meet routine commitments such as the payment of state workers' salaries. Thousands of nurses in state hospitals went on strike this week over a lack of bonus payments, straining an already dire situation at the poorly resourced hospitals. State hospital doctors have been on strike since Feb. 15, forcing the government to send in army and police doctors to care for patients.", -1878,2017/3/3,http://abcnews.go.com/US/vp-mike-pence-private-email-state-business-governor/story?id=45874875,VP Mike Pence used private email for state business as governor,,"Vice President Mike Pence used private email to conduct state business while he was the governor of Indiana, his spokesman said Thursday night. The revelation came after the Trump campaign railed against former Democratic candidate Hillary Clinton for using private email and a private server to conduct State Department business. Clinton was not charged with a crime after she was alleged to have mishandled classified information, but was reprimanded by the FBI. Pence's office rejected the comparison to Clinton because Pence was not using a private server and handling classified information. According to the Indianapolis Star, which obtained emails in response to a records request, the notes included discussions of sensitive matters and homeland security issues, such as terror attacks and the state's response to them. ABC News has not obtained those emails, which the Star says were hacked last summer. ""Similar to previous governors, during his time as Governor of Indiana, Mike Pence maintained a state email account and a personal email account. As then-Governor Pence concluded his time in office, he directed outside counsel to review all of his communications to ensure that state-related emails are being transferred and properly archived by the state, in accordance with the law, which outside counsel has done and is continuing to do,"" said Marc Lotter, Pence's spokesman. ""Government emails involving his state and personal accounts are being archived by the state and are being managed according to Indiana's Access to Public Records Act."" The emails were released to the Star from the current governor's office, but some were not released because of their confidentiality, the Star reported. According to the paper, use of the private email account is not in contravention of Indiana law. In late October, then-candidate Pence lauded the FBI for reopening the probe into Clinton's emails, according to ABC-owned station WPVI in Philadelphia. ""The director of the FBI, James Comey, this afternoon, just sent a letter to the Congress reopening the investigation against Hillary Clinton and her private email server,"" he said. ""We call on the FBI to immediately release all the email pertinent to their reopened investigation. The American people have a right to know, and they have a right to know before Election Day."" The renewed probe ultimately did not produce new evidence against Clinton and the FBI maintained its earlier position, that a crime had not been committed. ", -1879,2017/3/3,http://abcnews.go.com/Politics/democrat-accuses-fbi-director-james-comey-withholding-russia/story?id=45870065,Democrat accuses FBI Director James Comey of withholding Russia information from lawmakers,,"With news swirling about Attorney General Jeff Sessions' contacts with Russian officials before the 2016 election, the top Democrat on the House Intelligence Committee today accused FBI Director James Comey of withholding information about any agency investigation into Russian tampering with the 2016 election. ""In order for us to do our investigation in a thorough and credible way, we're going to need the FBI to fully cooperate... to fully tell us the length and breadth of any counterintelligence investigations they are conducting,"" Rep. Adam Schiff, D-California, told reporters after emerging from a classified meeting with Comey. ""At this point the director was not willing to do that."" Schiff said Comey declined to answer questions about the ""scope"" and subjects of any counterintelligence investigation. ""He made it very clear there were certain questions that we were asking that he would answer and others that he would not,"" he said. ""We can't do a complete job unless the director is willing to discuss anything they are investigating."" Last fall, the FBI and others in the intelligence community concluded Russian operatives were behind the hacks of the Democratic National Committee that could have damaged Hillary Clinton in the November election. The report did not come to the conclusion as to whether the Russians were successful in their mission to influence the election. Though President Trump has conceded Moscow likely participated in that cyber assault, he has pushed back on reports that Trump associates had communicated with Russian intelligence officials. The Intelligence Committee is investigating both the hack itself and alleged communication between Russia and the campaigns, as well as leaks of classified information from within the government. The lawmaker's comments this morning come on the heels of the news that Trump's Attorney General, Jeff Sessions -- a former Senator and frequent campaign surrogate -- met twice with Russian Ambassador Sergei Kislyak during the campaign in his official capacity as a member of Congress, yet didn't disclose that meeting when questioned under oath during his confirmation hearing. Sessions today recused himself from any investigations into presidential campaigns, but said he ""never had meetings with Russian operatives or Russian intermediaries about the Trump campaign."" Several minutes before Schiff spoke to reporters, Intelligence Committee Chairman Devin Nunes, R-California, said Comey was ""very forthright"" and that he had seen ""no evidence"" of contact between Russian officials and the Trump campaign. ""I would say at this point we know less than a fraction of what the FBI knows,"" Schiff said.", -1880,2017/3/3,http://abcnews.go.com/Politics/white-house-aides-told-russia-related-materials/story?id=45848545,White House aides told to keep Russia-related materials,,"Lawyers for the Trump administration have instructed White House aides to preserve any material that could be connected to Russian interference in the 2016 presidential election and in other related investigations, ABC News has confirmed. ""The White House is simply taking proactive steps to push back against these false and politically motivated attacks,"" an administration official told ABC News Wednesday. The directive follows a request last week by Senate Democrats to the White House and law enforcement agencies to keep all materials involving contact between Trump's administration, campaign and transition teams ""? or anyone acting on their behalf ""? and Russian government officials or their associates. Similarly, the Senate intelligence committee, which is investigating Russia's role in the election, has also asked more than a dozen organizations, agencies and individuals to preserve relevant records, according to The Associated Press. Federal investigators have been looking into possible contact between President Trump's advisers and Russian officials. News of the Trump administration lawyers' request came the same day that reports surfaced claiming that Attorney General Jeff Sessions met with the Russian ambassador to the U.S. during the presidential election season, despite denying such a claims during his confirmation hearing.", -1881,2017/3/3,http://abcnews.go.com/US/dreamer-diagnosed-brain-tumor-released-15-months-ice/story?id=45873280,Dreamer diagnosed with brain tumor released after 15 months in ICE custody,,"A 26-year-old immigrant from El Salvador who was recently diagnosed with a brain tumor has been released from U.S. Immigration and Customs Enforcement custody in Texas. Sara Beltran Hernandez was detained for 15 months after she fled violence in El Salvador, according to Amnesty International USA. She was released Thursday and was to receive a full medical evaluation later in the evening to ""ensure that it's safe for her to travel to New York to be with her family and get the long-term care she needs,"" according to the human rights organization. On Feb. 23, Beltran Hernandez was returned to ICE custody at the Prairieland Detention Center in Alvarado after she had spent almost two weeks receiving treatment at the Texas Health Huguley Hospital outside of Fort Worth, The Associated Press reported. ""I feel dizzy, with pain. Heavy eyes. Nausea. If I walk fast, I feel dizzy. Noise really bothers me. I have not eaten since yesterday [when I ate a salad] because I have no appetite. Sometimes, I forget things. The tongue is not always responsive,"" Beltran Hernandez told an attorney who visited her at the detention center at the time, according to The AP. A spokesperson for ICE said that Hernandez had been determined to be stable before she was discharged and sent back to the detention center, The AP reported. On Jan. 26, an immigration judge had ordered that Hernandez be removed from the U.S., according to The AP. She had entered the country illegally near Hidalgo, Texas on Nov. 7, 2015. 'Dreamer' diagnosed with brain tumor released after 15 months in ICE custody. https://t.co/UZIz1wiJ5I pic.twitter.com/8Wn96FJ999 In a statement, Beltran Hernandez thanked Amnesty International USA for assisting her in the release. ""I want to thank Amnesty International activists taking action on my behalf,""?she said. ""I truly appreciate your support, and your actions made a difference. Because of you, I can now get the medical care I need and be reunited with my family. Thank you."" Amnesty International USA said it hopes Beltran Hernandez's case will inspire the government to change its policies toward illegal immigrants. ""We hope some good can come out of Sara's nightmarish ordeal, and the federal government will change its policies and stop putting people with asylum claims in detention this way,"" said Amnesty International USA spokesperson Eric Ferrero. ""People fleeing horrific violence to seek asylum in the U.S. should be treated with dignity and compassion, not treated like criminals.""?ABC News' Aaron Katersky contributed to this report.", -1882,2017/3/2,http://abcnews.go.com/US/detained-dreamer-deported-attorney/story?id=45861273,"Dreamer detained after speaking out may be deported, attorney says",,"A young woman arrested by Immigration and Customs Enforcement officers in Mississippi on Wednesday could be deported as early as this week, her attorney said. Daniela Vargas, 22, was taken into custody after speaking at a press conference in front of Jackson City Hall. Her attorney, Abigail Peterson, said Vargas is still being held and ICE is working to process her case without a court hearing. ""It could happen this week. It could take a little longer, so we'r trying hard to get her a hearing,""?Peterson said. Peterson said Vargas filed to renew her Deferred Action for Early Childhood Arrivals status on Feb. 10 after allowing her status to expire. According to Peterson, Vargas""?latest DACA status expired in November 2016. She applied to renew in mid-February after raising money for the $495 application fee, Peterson said. In a statement to ABC News, Thomas Byrd, an ICE spokesman, said Vargas was arrested ""during a targeted immigration enforcement action in Jackson, Mississippi.""?""Every day, as part of routine targeted enforcement operations, U.S. Immigration and Customs Enforcement (ICE) Fugitive Operations teams arrest criminal aliens and other individuals who are in violation of our nation's immigration laws,""?the statement continued. ""ICE conducts targeted immigration enforcement in compliance with federal law and agency policy. ICE does not conduct sweeps or raids that target aliens indiscriminately.""?ICE would not comment beyond the statement. Vargas, who came to the U.S. from Argentina when she was 7 years old with her parents and brother, gave a speech in front of City Hall, recounting the moment ICE agents arrested her father and brother at their home on Feb. 15. Peterson believes the agents arrived in relation to an investigation into Vargas""?brother. While there, the agents put Vargas in handcuffs, Peterson said. ""they had her in handcuffs but let her go. They saw her expired documents, and she told them she was in DACA or working on DACA,""?Peterson said. Peterson said Vargas was aware she could face arrest at the press conference, since her DACA status expired. ""We had discussed the risks associated with talking to newspapers. We had spoken with her about that, and we were all working with the understanding that ICE knows her DACA is extending and they were going to let that process,""?Peterson said. According to local ABC affiliate WAPT, Vargas was driving home from the press conference with a friend when ICE agents pulled them over and arrested her. Immigrant rights advocates are angered by Vargas""?arrest, according to Ramiro Orozco, a lawyer who set up the press conference with Vargas. He said advocates fear ICE officials retaliated against her for speaking out. ""This seems to be the message being sent in this case,""?Orozco said. ""that's why we'r concerned.""?Vargas has no criminal record other than traffic violations, according to Peterson. ""I don't understand why they don't want me,"" Vargas said later on Thursday according to a statement provided to ABC News by Peterson. ""You know, there's a lot of stuff that I can do for this country that they'r not allowing me to do,"" she added. ""I""ve even tried to join the military, and I can""t do that. But, I mean that's not the point, the whole point is that I would do anything for this country.""?ABC News""?Troy McMullen and Geneva Sands and Darren Reynolds contributed to this report.", -1883,2017/3/3,http://abcnews.go.com/Politics/law-perjury-allegations-jeff-sessions/story?id=45869659,What the law says about the perjury allegations against Jeff Sessions,,"Following the revelation that Attorney General Jeff Sessions met with the Russian ambassador to the United States on two occasions in 2016 despite assertions during his confirmation hearing that he had no contact with the country, some lawmakers and oversight organizations around Washington have questioned whether he committed perjury. During the hearing, Sessions was asked by Sen. Al Franken, D-Minnesota what he would do ""if there is any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of this campaign."" ""Sen. Franken, I'm not aware of any of those activities,"" said Sessions. ""I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians and I'm unable to comment on it."" The assertion from the attorney general that he ""did not have communications with the Russians"" has been proven false, and that has been confirmed by the Justice Department, which noted that Sessions took the meeting with Ambassador Sergey Kislyak ""as a senator and a member of the Armed Services Committee"" and not as a representative of the Trump campaign. Perjury is defined by 18 U.S. Code § 1621 which states that a person ""having taken an oath"" may not ""willfully"" make statements ""which he does not believe to be true."" An additional statute on false statements contained within 18 U.S. Code § 1001 prohibits a person from ""falsify[ing], conceal[ing] or cover[ing] up"" ""a material fact"" or ""making any materially false, fictitious, or fraudulent statement or representation"" ""in any matter within the jurisdiction of the executive, legislative or judicial branch."" It would appear that any pursuit of Sessions for perjury would come down to whether he was ""willful"" in his misstatement. James Goodnow, a lawyer and legal and political commentator, says that any prosecution of Sessions would come from the U.S. Attorney's Office for the District of Columbia, which falls under the purview of the Justice Department, meaning the office ""would have to go after its own boss."" ""That is a huge conflict, so you would likely need a special prosecutor step in,"" said Goodnow. On Wednesday, Sessions announced that he would recuse himself from any investigations into the presidential campaign. Even with a special prosecutor, as far as a perjury case goes, George Washington University Law School professor and legal scholar Jonathan Turley says ""there is no compelling case for perjury based on the facts that we currently have."" ""Sessions could argue that he was responding perhaps artfully that to the part of the question dealing with the campaign,"" said Turley. ""I don""t think you can assume on an intent [to mislead] on such a question,"" he added. Goodnow says the case would make for a difficult conviction. ""Since the 1940s, there have only been six convictions under the [perjury] statutes, largely because of the 'willfulness' requirement,"" he said. Without being able to know for sure whether Sessions was purposefully misleading the committee, a conviction would be unlikely, he added. In a recent example of a successful perjury conviction, I. Lewis ""Scooter"" Libby, an adviser to former Vice President Dick Cheney, was found guilty of lying to investigators about his role in leaking the identity of undercover CIA agent Valerie Plame in 2007. After Libby claimed that he couldn't have been the source of the leak, multiple people came forward to testify that they learned of Plame's identity from Libby prior to when Libby said he had first received the information. At trial, Libby claimed to have simply forgotten he actually learned about the identity from Cheney a month before he said he had. Prosecutors claimed that Libby knew he was lying and invented details about the origin of the leak. But Libby's defense team said that making false statements was not enough to convict Libby of the charges against him. ""There's no question he got some things wrong in the grand jury, no question,"" defense attorney Ted Wells said. ""But you've got to ask, 'Did he engage in intentional lying?'"" At trial, with guidance from the case's judge to the jury that Libby had to know his statements were false when he made them in order for him to be convicted of perjury, Libby was convicted on counts including making false statements to authorities and perjury before a grand jury. ABC News' Audrey Taylor and Mike Levine contributed to this report.", -1884,2017/3/3,http://abcnews.go.com/Politics/attorney-general-jeff-sessions-recusing-campaign-probes/story?id=45858137,Attorney General Jeff Sessions recuses himself from campaign probes amid Russia questions,,"Attorney General Jeff Sessions recused himself from any existing or future probes related to any campaigns for president, he said Thursday. The move comes after it was reported Wednesday night that Sessions had two meetings with the Russian ambassador to the U.S. in 2016 after he started supporting Donald Trump's presidential bid and then failed to disclose the contacts during his confirmation hearing. ""Let me be clear: I never had meetings with Russian operatives or Russian intermediaries about the Trump campaign,"" Sessions told reporters. ""And the idea that I was part of a continuing exchange of information during the campaign between Trump surrogates and intermediaries to the Russian government are false."" During an interview with Fox News' Tucker Carlson Thursday night, Sessions emphasized, ""Recusal is not an admission of any wrongdoing. It's simply ... whether or not you can be perceived as fairly deciding a case."" In a statement, Sessions said that over the last several weeks he met with ""relevant senior career department officials"" to discuss whether he should recuse himself and, ""having concluded those meetings today, I have decided to recuse myself from any existing or future investigations of any matters related in any way to the campaigns for president of the United States."" Sessions held a press conference Thursday afternoon to announce the decision, saying that his reply to Sen. Al Franken, D-Minnesota, during his confirmation hearing for attorney general ""was honest and correct as I understood it at the time."" ""In the end, I have followed the right procedure, just as I promised the committee I would,"" Sessions said of the decision to recuse himself. ""A proper decision, I believe, has been reached,"" he said. Earlier Thursday in Virginia, Trump said that he had ""total"" confidence in Sessions, that Sessions ""probably did"" answer questions truthfully at his confirmation hearing and that he didn't think Sessions should recuse himself. A White House official dismissed the matter as ""the latest attack against the Trump administration by partisan Democrats."" A Department of Justice official said Wednesday night that Sessions had two contacts with Russian Ambassador Sergey Kislyak ""?one with members of his staff on Sept. 8 (which was listed on his public schedule) and one after giving a speech to the Heritage Foundation in July. Michael Flynn, Trump's former national security adviser, resigned after misleading the vice president and other White House officials about contacts with Kislyak. Asked about the nature of the September meeting on Thursday, Sessions told reporters, ""I don't recall any particular political discussions."" He said that he didn't remember a lot of the meeting but that ""I do remember saying I had gone to Russia with a church group in 1991."" ""So we talked a little bit about terrorism, as I recall. Somehow the subject of the Ukraine came up. I had the Ukrainian ambassador in my office the day before to listen to him,"" he said. Apparently paraphrasing Kislyak, Sessions added, ""Russia had done nothing that was wrong in any area and everybody else was wrong with regard to the Ukraine. It got to be a little bit of a testy conversation at that point."" The DOJ official said Wednesday that during the 2016 campaign, ambassadors made ""superficial comments"" about the election but it wasn't the ""substance of their discussion."" Sessions told reporters he didn't recall having met Kislyak any other times. ""It's possible. I'm on the Armed Services Committee,"" he said. ""Things happen. I don't recall having met him before that."" Asked if he met with any other Russian officials since endorsing Trump, Sessions said, ""I don't believe so."" He was the first sitting senator to endorse Trump, in February 2016, and became the chairman of his national security advisory committee the next month. A DOJ spokeswoman said in a statement Wednesday night that the meetings stemmed from Sessions' role at the time as a senator on the Armed Services Committee and that his answers during the confirmation process were not ""misleading."" During his confirmation hearing for attorney general in January, Sessions said he ""did not have any communications with the Russians."" On Thursday, Sessions conceded, ""Retrospect, if ""?I should have slowed down and said, 'But I did meet one Russian official a couple times."" That would be the ambassador."" With Sessions' recusal, responsibility for overseeing any DOJ matters within the scope of the recusal fall to the deputy attorney general. The nominee for that position, Rod Rosenstein, currently the U.S. attorney for Maryland, has not been confirmed yet, however. His confirmation hearing is scheduled for Tuesday, March 7. Until that appointment is made, the acting deputy attorney general, Dana Boente, the U.S. attorney for the Eastern District of Virginia, will likely be the person responsible for such matters at the DOJ. In those matters, the deputy attorney general or acting deputy will have the authority to appoint a special counsel.", -1885,2017/3/3,http://abcnews.go.com/Politics/trump-total-confidence-sessions-amid-russia-controversy/story?id=45863272,"Trump: Sessions could have testified 'more accurately,' but Russia controversy is 'total witch hunt'",,"Donald Trump called his embattled Attorney General, Jeff Sessions -- who has come under scrutiny for not disclosing contacts with the Russian ambassador to the U.S. during the campaign -- an ""honest man"" but said he could have responded ""more accurately"" at his confirmation hearings. Sessions recused himself today from any current or future investigations involving campaigns for president, but insisted that he answered questions at his confirmation ""honest and correct as I understood at the time,"" he said today. Trump dismissed the inquiries into Russia as a ""witch hunt"" and reiterated his position that the real story is the ""illegal leaks of classified and other information."" ""Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional,"" the president said in a statement. ""This whole narrative is a way of saving face for Democrats losing an election that everyone thought they were supposed to win. The Democrats are overplaying their hand. They lost the election and now, they have lost their grip on reality."" Asked if Sessions -- who stated during his confirmation hearing in January that he ""did not have communications with the Russians"" as a Trump surrogate -- should have included his meetings with Russian ambassador to the U.S. Sergey Kislyak in his confirmation testimony, the president earlier today told reporters he had ""total"" confidence in his attorney general and believed Sessions ""probably"" testified truthfully. And he responded ""I don't think so"" when asked if Sessions should recuse himself. A spokesperson for the Department of Justice dismissed Sessions' meetings as being a standard part of his job when he was a senator serving on the Armed Services Committee. However, the attorney general nevertheless pledged to recuse himself from ""any existing or future investigation of any matters related in any way to the campaigns for president of the United States"" just a few hours after Trump's comments, made aboard the USS Gerald Ford. ""Let me be clear: I never had meetings with Russian operatives or Russian intermediaries about the Trump campaign,"" Sessions told reporters today. ""And the idea that I was part of a continuing exchange of information during the campaign between Trump surrogates and intermediaries to the Russian government are false."" Yet many lawmakers joined the call for Sessions to resign and some Republicans had joined the chorus for recusal. House Speaker Paul Ryan earlier said that Sessions should recuse himself if he ""is the subject of an investigation."" ""Should he recuse himself? I think he answered that question this morning, which is, if he himself is the subject of an investigation, of course he would. But if he's not, I don't see any purpose or reason to doing this,"" Ryan said today at his weekly news conference on Capitol Hill. Jason Chaffetz, chairman of the House Oversight Committee, also said he believes Sessions needs to recuse. However, White House press secretary Sean Spicer defended Sessions in an interview with Fox News. ""There's nothing to recuse himself, he was 100 percent straight with the committee and I think that people are choosing to play partisan politics and they should be ashamed of themselves,"" Spicer said.", -1886,2017/3/3,http://abcnews.go.com/Politics/mexican-congressman-climbs-us-border-fence-illustrate-trumps/story?id=45877797,Mexican congressman climbs U.S. border fence to illustrate that Trump's wall is 'totally absurd',,"A Mexican congressman went to great lengths -- and heights -- Wednesday to illustrate why he believes that President Trump's controversial U.S.-Mexico border wall is ""unnecessary"" and ""totally absurd."" Braulio Guerra, a congressman from the state of Queretaro, tweeted photos and a video of himself perched atop a 30-foot tall fence that separates the Mexican border city of Tijuana from the U.S. ""I was able to scale it, climb it, and sit myself right here,"" Guerra said in the video. ""It would be simple for me to jump into the United States, which shows that it is unnecessary and totally absurd to build a wall."" He adds, ""It's easy, and it shows how unnecessary this project, this political rhetoric from Donald Trump, is."" Sencillo subir al #Muro pero son muchos los peligros para nuestra gente. Derechos Humanos, principios y dignidad son innegociables #M��xico???? pic.twitter.com/9PExn3RlnV In one of the photos Guerra tweeted, two other people atop the wall are visible. Guerra said they were climbing the wall while he was there. ""You can climb it with great ease, one climbs in an instant,"" Guerra says in the video. ""I climbed it in Tijuana, one of the highest parts, even from a distance this looks very complex, but there are young people that go up and down, at all times."" It is worth noting, though, that Guerra did not post any photos or video footage of himself climbing the wall, so some in the Twittersphere questioned how he reached the top and how easy such a feat really is.", -1887,2017/3/3,http://abcnews.go.com/US/wireStory/judge-casey-anthony-accidentally-killed-daughter-45851762,Judge: Casey Anthony may have accidentally killed daughter,,"The judge who presided over the acquittal of Casey Anthony in a murder trial televised live around the world said Thursday that an accidental killing is the most logical explanation for her 2-year-old daughter's death. Former Judge Belvin Perry Jr. told The Associated Press that the theory that makes the most sense to him now, based on the evidence presented at trial in 2011, is that Anthony accidentally used too much chloroform while trying to quiet Caylee, and the infant died. ""You have a child that can become cranky, that you want to go to sleep. That is a simple way to do it,"" said Perry, who is now in private practice. ""What we tend to forget is, chloroform was used to render people unconscious long before we had anesthesia."" Asked to respond on Thursday, one of her attorneys, Cheney Mason, said: ""I've got your response: She was acquitted."" Anthony, now 30, was acquitted of first-degree murder and convicted of misdemeanor counts of lying to law enforcement after defense attorney Jose Baez told jurors that the toddler accidentally drowned in the family pool. Prosecutors said Anthony used chloroform and then suffocated the child by putting duct tape over her mouth. The toddler's remains were found five months after she disappeared, in a wooded area not far from where the Anthonys lived. Authorities were never able to establish the cause of death. ""I'm disturbed that Mr. Perry would once again go to the press with his thoughts about the case. There is no reason for him to do that,"" Mason said. ""I don't know what motivated Mr. Perry to do this or why. All I can say is: Everybody is entitled to an opinion."" Florida's Code of Judicial Conduct prohibits judges from making public comments about any pending cases, but it says nothing about former judges talking about cases that are over. A 2011 opinion by Florida's Judicial Ethics Advisory Committee says nothing in the code restricts a judge from talking about a high-profile case once it is finished. Perry said the case came up this week only because he was asked about it by a reporter from a community newspaper who was interviewing him for an unrelated story. Other local media then made inquiries about his theory. Perry said the chloroform theory is one of several regarding Caylee's death he has been examining since he began reviewing trial transcripts at the time of last summer's fifth anniversary of the trial. ""You can't say what happened because you weren't there, but you can talk about the probabilities,"" Perry said. ""Then you can assign whatever weight you want to a theory, and you ask yourself, 'What is more logical?'""", -1888,2017/3/3,http://abcnews.go.com/US/wireStory/florida-expand-stand-ground-immunity-45850429,Florida could flip burden of proving 'stand your ground',,"Florida's ""stand your ground"" law, a source of contention for years, could soon provide even more protection to people who invoke it. Some lawmakers want to make prosecutors prove a defendant wasn't acting in self-defense before proceeding to trial. Florida has been a leader in giving citizens immunity in cases of self-defense, with its ""stand your ground"" law serving as an emotional point of debate after several high-profile shooting deaths, including that of unarmed black teenager Trayvon Martin. While at least 22 states have similar laws that say people can use force ""?even deadly force ""?to defend themselves from threats, Florida could soon be alone shifting the burden of proof to prosecutors. Republican Sen. Rob Bradley says his bill ""isn't a novel concept."" ""We have a tradition in our criminal justice system that the burden of proof is with the government from the beginning of the case to the end,"" he said. Florida's Supreme Court has ruled that the burden of proof is on defendants during self-defense immunity hearings. That's the practice around the country. According to a legislative staff analysis of Bradley's bill, only four states mention burden of proof in their ""stand your ground"" laws ""?Alabama, Colorado, Georgia and South Carolina ""?and all place the burden on defendants. Bradley's bill died last year but now its chances are improving: It's ready for a full Senate vote when the session begins next week, and one of two House committees assigned to hear it has approved it. Democrats are opposing the bill, but have little leverage to stop it in a legislature dominated by Republicans and with a Republican governor. The bill has received passionate opposition from people who feel the existing law has already been abused and will be invoked even more by people seeking to avoid responsibility for violent crimes. Stand your ground is not just about guns: The defense can be invoked after any act of violence aimed at self-protection, whether it's punching, stabbing, shooting or striking someone with an object. Neighborhood watch volunteer George Zimmerman's fatal shooting of Trayvon Martin isn't the only case that's part of the debate in Florida. Lucy McBath's 17-year-old son Jordan Davis was fatally shot by Michael Dunn during an argument over loud music outside a Jacksonville convenience store. And in the Tampa Bay area, retired police officer Curtis Reeves is claiming self-defense in a ""stand your ground"" pretrial hearing after fatally shooting Chad Oulson in a dispute over a cellphone at a movie theater. Both Zimmerman and Dunn claimed self-defense at trial and ""stand your ground"" was included in their juries' instructions. Zimmerman was acquitted and Dunn was eventually convicted of murder. McBath believes the way the law currently reads is why Dunn's first jury couldn't reach a decision, and says expanding ""stand your ground"" protections would make it harder to keep people safe from gun violence. Testifying against the bill at a Senate committee meeting, McBath said the current law already ""encourages citizens to shoot first and ask questions later."" ""This legislation would effectively require defendants who raise stand your ground defenses to be convicted twice,"" she said. ""Having lived through this grueling experience first-hand with two trials for my son's murder, I can attest to the anguish and the pain that this process elicits. We should not make it harder for family members to achieve the justice that they deserve."" Marissa Alexander, in contrast, supports Bradley's bill. She unsuccessfully tried a ""stand your ground"" defense and was sentenced to 20 years in prison in 2012 for firing a gun near her estranged husband. She called it a ""warning shot"" to protect herself from abuse. Her conviction was thrown out on appeal and she was freed after reaching a plea deal in 2014. ""I feel like you go into that kind of situation guilty until proven innocent,"" she said. She hopes Florida will start another trend if it passes. ""Florida kind of sets the tone and other states follow,"" she said.", -1889,2017/3/2,http://www.cnn.com/2017/03/03/politics/russia-spy-claims-trump-sessions/index.html,Top Kremlin diplomat calls US uproar over Russia ties a 'witch hunt',"(CNN)Russia's foreign minister pushed back Friday at assertions that his country's US ambassador is a spy, and echoed US President Donald Trump's contention that the controversy over contacts between Kremlin officials and Trump's campaign is ""a witch hunt.""","""The ambassadors are appointed in order to maintain relationships,"" Russian Foreign Minister Sergey Lavrov said at a press conference in Moscow. ""They are maintained by holding meetings, talks and establishing contacts with officials from both executive and legislative branches of power. I can only quote what the media said today -- this all looks like a witch hunt."" Citing current and former senior US government officials CNN reported that Kislyak is considered by US intelligence to be one of Russia's top spies and spy recruiters in Washington. But Russia's Foreign Ministry has angrily rejected allegations that its top diplomat in Washington is a spy amid controversy over meetings he held with US Attorney General Jeff Sessions. Russian Foreign Ministry spokeswoman Maria Zakharova on Thursday insisted Kislyak was ""a well-known, world-class diplomat."" ""He was deputy minister of foreign affairs in Russia, who has communicated with American colleagues for decades in different fields, and CNN accused him of being a Russian spy ... of recruiting? Oh my God!"" Sessions recuses himself on Russia inquiry Sessions on Thursday recused himself from any investigation related to Trump's 2016 presidential campaign. Sessions made the decision after it emerged that he had failed at his Senate confirmation hearing to disclose two pre-election meetings with Kislyak to Washington, at a time when Russia was accused of interfering in the presidential race. Pressure for Sessions to recuse himself from any involvement in a Justice Department probe into links between the Trump campaign and Moscow grew Thursday as prominent Republicans broke ranks with the administration. He is also facing calls to resign. But shortly before Sessions' recusal announcement, Trump backed his attorney general. He said Sessions did not make any misleading statements under oath during his confirmation hearings, but that he could have been more accurate in his responses to lawmakers. ""Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional,"" Trump said. ""This whole narrative is a way of saving face for Democrats losing an election that everyone thought they were supposed to win. The Democrats are overplaying their hand. They lost the election and now, they have lost their grip on reality. The real story is all of the illegal leaks of classified and other information. It is a total witch hunt!"" 'Total misinformation' Speaking at a press briefing Thursday, Zakharova dismissed media reports about the encounters between Sessions and Kislyak as ""shameful,"" an ""attempt at total misinformation"" and a kind of ""vandalism."" Zakharova also defended the role of Russian diplomats, saying: ""Everyone knows how diplomats work and their work consists of making contacts."" Asked to respond to the characterization of Kislyak as a spy, Kremlin spokesman Dmitry Peskov said, ""Nobody has heard a single statement from US intelligence agencies' representatives regarding our ambassador. Again, these are some depersonalized assumptions of the media that are constantly trying to blow this situation out of proportion."" Peskov also insisted that Russia has never interfered in the domestic affairs of another country and has no plans ever to do so. He said the current ""overly emotional environment"" was affecting the prospects of a future meeting between Trump and Russian President Vladimir Putin. ""This emotional atmosphere builds up a certain resistance to the idea of developing a relationship with Russia. That's true. The negative effect is obvious here,"" Peskov told journalists on a conference call. Kislyak's interactions with Trump's former national security adviser Michael Flynn led to Flynn's firing last month. Two meetings Sessions met with Kislyak twice last year, in July on the sidelines of the Republican convention, and in September in his office when Sessions was a member of the Senate Armed Services committee, according to the Justice Department. Sessions, then a Republican senator for Alabama, campaigned on behalf of Trump throughout 2016. Sessions did not mention either meeting during his confirmation hearings when he said he knew of no contacts between Trump surrogates and Russians. In response to reports of his meetings with Kislyak, Sessions' spokeswoman Sarah Isgur Flores said there was nothing ""misleading about his answer"" to Congress because he ""was asked during the hearing about communications between Russia and the Trump campaign -- not about meetings he took as a senator and a member of the Armed Services Committee."" Sessions also strongly denied ever discussing campaign-related issues with anyone from Russia. ""I never met with any Russian officials to discuss issues of the campaign,"" he said in a statement. ""I have no idea what this allegation is about. It is false."" The House Intelligence Committee signed off this week on a plan to investigate Russia's alleged interference in the US elections, which includes examining contacts between Trump's campaign and Russia, and looking into who leaked the details. Democrats have called for an independent investigation. Russia has consistently denied allegations that it meddled in the US election campaign. ", -1890,2017/3/2,http://www.cnn.com/2017/03/02/politics/russia-donald-trump-meetings-ambassador/index.html,More Trump advisers disclose meetings with Russia's ambassador,Washington (CNN)President Donald Trump's senior aide Jared Kushner and ousted adviser Michael Flynn met with the Russian ambassador to the United States at a time when the Trump administration's relationship with the Russians was under close scrutiny.,"Kushner and Flynn sat down in December at Trump Tower with Sergey Kislyak, according to a senior administration official, who described it as an ""introductory meeting"" and ""kind of an inconsequential hello."" The meeting lasted for about 10 minutes, the official added. Who is Sergey Kislyak, the Russian ambassador to the United States? Flynn was fired from his role as a national security adviser after he misled the administration about his conversations with Kislyak, and Attorney General Jeff Sessions on Thursday said he would recuse himself from investigations into the Trump campaign relationship with Russia after news emerged that he too had spoken privately with the ambassador. Kushner's involvement in a meeting was first reported by The New Yorker, and Flynn's by The New York Times. The administration official disputed the idea that accepting a meeting with the Russian ambassador could be cause for concern in light of the discussion about Russian meddling in the US election, characterizing the meeting as merely an attempt to meet key international players during the transition to power. The official added that Kushner met with dozens of other ambassadors. Another national security adviser to the Trump campaign, J.D. Gordon, also disclosed Thursday that he had met with Kislyak, this time during the Republican National Convention in Cleveland in July. That meeting was first reported by USA Today. Gordon told CNN that along with national security advisers Carter Page and Walid Phares, Gordon stressed to the Russian envoy that he would like to improve relations with Russia. Gordon added that at no time did any inappropriate chatter come up about colluding with the Russians to aid the Trump campaign. ""This is not any different than anything I said publicly and on panels,"" Gordon said. Gordon had advocated for language in the GOP platform that the Ukrainians not be armed in their battle against pro-Russian separatists, an effort was ultimately successful. But Gordon says he was simply advocating what Trump himself had expressed -- that he did not wish to see major war break out over the situation in Ukraine. In a statement to CNN, Page said he would not comment on any meetings and added that he ""never did anything improper"" with regard to Russia. Page did confirm that he met with Kislyak in Cleveland, however, in an interview with MSNBC's Chris Hayes on Thursday night. ""I do not deny that,"" Page said.", -1891,2017/3/3,http://www.cnn.com/2017/03/02/politics/democrats-sessions-russia-resignation-call/index.html,Trump: Sessions 'did not say anything wrong',"(CNN)President Donald Trump stood by Attorney General Jeff Sessions on Thursday, releasing a statement saying Sessions did not make any misleading statements under oath during his confirmation hearings, but that he could have been more accurate in his responses to lawmakers.","""Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional,"" Trump said. ""This whole narrative is a way of saving face for Democrats losing an election that everyone thought they were supposed to win. The Democrats are overplaying their hand. They lost the election and now, they have lost their grip on reality. The real story is all of the illegal leaks of classified and other information. It is a total witch hunt!"" Earlier Thursday, Sessions bowed to intense political pressure and recused himself from any investigation related to Trump's 2016 presidential campaign. Sessions acted after it emerged that he had failed at his Senate confirmation hearing to disclose two pre-election meetings with Russia's ambassador to Washington, at a time when Moscow was accused of interfering in the presidential race. ""I have decided to recuse myself from any existing or future investigations of any matters related in any way to the campaigns for President of the United States,"" Sessions told reporters. Later Thursday night, on Fox News, Sessions said he plans to submit a ""supplement"" to the record of his congressional testimony, detailing the meetings he didn't mention at the time. ""My response went to the question indicated about the continuing surrogate relationship that I firmly denied and correctly denied, and I did not mention in that time that I had met with the ambassador,"" Sessions told host Tucker Carlson. ""So I will definitely make that a part of the record as I think is appropriate."" Sessions explained that he plans to recuse himself from any investigations into the campaign, but he would take decisions on investigations into Russian hacking ""on a case-by-case basis."" Sessions said the decision to recuse himself followed his promise to the Senate Judiciary Committee to avoid any semblance of a conflict of interest between his new role and previous position as a strong supporter of the Trump campaign. It was also the result of consultations with career Justice Department officials, he said. Sessions did not disclose meetings with Russian ambassador The attorney general's news conference was the culmination of a day of steadily rising political pressure over the issue. Democrats demanded he resign and accused him of lying to Congress. Many Republicans, feeling the political heat and growing increasingly concerned that the Russian drama was about to spin out of control, had been forced to call for Sessions to offload ultimate responsibility for an FBI probe into links between Trump's campaign and Russia. Sessions went ahead and did just that, despite strong support from the White House. Aboard an aircraft carrier in Virginia, Trump told reporters he had ""total"" confidence in Sessions. Asked if Sessions should recuse himself, the President said: ""I don't think so."" White House spokesman Sean Spicer meanwhile billed the day of controversy arising from news of the meetings between Sessions and Russian ambassador Sergey Kislyak as a ""partisan thing that we've seen over and over again."" ""This continues to be a question of: there's no there there,"" Spicer said. If nothing else, Thursday's intrigue served as another reminder that questions over Trump's attitude toward Moscow and the Kremlin's apparent operation to sow discord in last year's election are issues that will return again and again to confound the White House. In this case, questions about Russia served to halt the President's victory lap after his well-received address to Congress on Tuesday night. The Russian drama has already led to the departure of another Trump ally and top political appointee -- former national security adviser Michael Flynn -- also over contacts with Russian ambassador Kislyak. Earlier on Thursday, Democrats had sensed new vulnerabilities for the administration over Russia -- and relished taking the battle to Sessions. ""(That) the top cop in our country lied under oath to the people is grounds for him to resign,"" House Minority Leader Nancy Pelosi told reporters Thursday. ""He has proved that he is unqualified and unfit to serve in that position of trust."" Several Republicans, many of them increasingly uneasy about the implications of the evolving Russian drama, had called on Sessions to recuse himself from any probe into ties between the Trump campaign and Moscow. ""Attorney General Sessions should recuse himself to ensure public confidence in the Justice Department's investigation,"" said Sen. Susan Collins, the Maine Republican who introduced Sessions at his confirmation hearing in January. ""I think the attorney general should further clarify his testimony. And I do think he should recuse himself,"" said Rep. Jason Chaffetz, the Republican chairman of the House Oversight Committee. Sen. Rob Portman of Ohio and Rep. Darrell Issa of California also called for Sessions to recuse himself. But Sessions appeared to take the edge off Republican anxiety with his late afternoon news conference. ""Attorney General Sessions did the right thing by recusing himself,"" said Republican House Judiciary Committee chairman Bob Goodlatte. Sen. Shelley Moore Capito, R-West Virginia, told CNN: ""I think if he made that judgment I think that's in the best interest of everything. I'm glad he did it quickly."" Sessions met on two separate occasions with Russia's ambassador to Washington, encounters the Alabama Republican did not disclose during his confirmation hearing on January 10. At the hearing, Minnesota Democratic Sen. Al Franken asked Sessions what he would do if there was any evidence that anyone affiliated with the Trump campaign communicated with the Russian government. ""I'm not aware of any of those activities. I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians,"" Sessions said. Franken told CNN's ""New Day"" on Thursday that statement appears to be false. ""I am going to be sending (Sessions) a letter to have him explain himself, but he made a bald statement that during the campaign he had not met with the Russians,"" Franken said. ""That's not true."" On Twitter, Massachusetts Democratic Sen. Elizabeth Warren warned that Sessions should never have been confirmed at all, but now there is reason to remove him. ""Now Jeff Sessions is AG -- the final say on the law enforcement investigation into ties between the Trump campaign & Russia? What a farce. This is not normal,"" she tweeted. ""This is not fake news. This is a very real & serious threat to the national security of the United States."" With Sessions' decision, oversight of any probe involving Trump's 2016 campaign will likely fall to acting Deputy Attorney General Dana Boente. Democrats would prefer the appointment of a special prosecutor to investigate questions about Russia but appear to lack sufficient leverage to bring about such a step. Sessions: 'This allegation is false' Sessions has drawn a distinction between his role as a Trump surrogate and his duties as a senator and strongly denied ever discussing campaign-related issues with anyone from Russia. ""I never met with any Russian officials to discuss issues of the campaign,"" he said in a statement. ""I have no idea what this allegation is about. It is false."" Sessions' spokeswoman Sarah Isgur Flores said there was nothing ""misleading about his answer"" to Congress because he ""was asked during the hearing about communications between Russia and the Trump campaign -- not about meetings he took as a senator and a member of the Armed Services Committee."" ""Last year, the senator had over 25 conversations with foreign ambassadors as a senior member of the Armed Services Committee, including the British, Korean, Japanese, Polish, Indian, Chinese, Canadian, Australian, German and Russian ambassadors,"" Isgur Flores said in the statement. Meetings with Russian ambassador According to the Justice Department, Sessions met with Kislyak in July on the sidelines of the Republican convention, and in September in his office when Sessions was a member of the Senate Armed Services committee. Sessions, then the junior senator from Alabama, was an early Trump backer and regular surrogate for him as a candidate. Kislyak is considered by US intelligence to be one of Russia's top spies and spy recruiters in Washington, according to current and former senior US government officials. Kemlin spokesman Dmitri Peskov stated that Russia has never interfered and has no plans to ever interfere in the domestic affairs of other countries, speaking to journalists Wednesday. This story has been updated.", -1892,2017/3/3,http://www.cnn.com/2017/03/02/politics/donald-trump-aircraft-carrier-defense-funding/index.html,Trump visits aircraft carrier to push military agenda but pitfalls loom,(CNN)Where better to tout a military spending hike than from the deck of the most expensive ship ever built?,"President Donald Trump will head to the Navy's newest, most sophisticated vessel Thursday as he seeks to prolong the glow from his well-received address to Congress and provide a jolt of momentum to his governing agenda. The USS Gerald R. Ford aircraft carrier is currently berthed in Newport News shipyard, Virginia, as it readies for its final sea trials as the first of a new class of flat-top ships to take to the seas. The hulking giant will provide Trump the showman with a dramatic $13 billion metaphor for his plan to boost the Navy's 270 vessels to around 350. But before Trump gets too high on the success of his speech Tuesday night and the projection of power he will use as his backdrop, he might do well to pay heed to the pitfalls that could await him as well. Trump faces challenges to his military ambitions, in part because he has promised to ""demolish and destroy ISIS,"" as he mentioned on Tuesday night, in connection to the plan he has solicited from his generals to combat the terror group. He also will have to battle Pentagon bureaucracy to achieve the efficiency and cost-effectiveness he has pledged to deliver and battle Congress to get the funds needed to make the investment he desires in the military. ISIS fight Trump's plan to crank up the fight against ISIS comes as the long, slower strategy followed by the Obama administration appears to be bearing fruit, with allied Iraqi government and militia forces backed by US air power make progress in their bid to recapture all of the key city of Mosul, Iraq. The ISIS footprint in Syria is also shrinking. An intensified plan to finish off ISIS more quickly could mean greater risks to US soldiers, who could be directly sent into Syria under plans currently being considered by US generals. There could also be a prolonged stay for American forces in Iraq to ensure stability after ISIS' expected defeat. Both were scenarios the Obama administration decided to avoid. Trump's apparent tolerance for risk was highlighted by the first major combat operation of his presidency -- the anti-terror raid in Yemen that killed US Navy SEAL William ""Ryan"" Owens. Owens' father has called the raid ""stupid"" and demanded an investigation. But Trump said in his speech that he had spoken to Defense Secretary James Mattis and received assurances that the raid yielded vital intelligence. Trump quoted Mattis as telling him: ""Ryan was a part of a highly successful raid that generated large amounts of vital intelligence that will lead to many more victories in the future against our enemies."" Then, in the emotional high point of the address, he singled out the SEAL's widow, Carryn Owens, as the House floor erupted in a prolonged standing ovation. Carryn, with tears streaming down her face, looked to the heavens and joined in the applause. Many were moved by the episode, but several observers also warned Trump not to be overconfident about the raid's success. South Carolina Republican Sen. Lindsey Graham told CNN, ""One thing I would caution the President to do is don't oversell."" He continued, ""When a raid is being oversold, then you maybe won't learn from what you should learn from. So my advice is celebrate this young man as a hero and not oversell, and I don't know if they're overselling but we'll eventually find out."" Sequester endures Trump won't be the only recent president to visit Newport News. His predecessor, Barack Obama, held an event in the submarine manufacturing works in 2013 to lobby against sequester spending limits that cut deep into the Defense Department budget -- curbs that Trump is now trying to remove. Trump touted his plan to hike military spending by 10%, or $54 billion, to be paid for by cuts to the State Department and other government agencies, in his speech on Tuesday night. ""To keep America safe, we must provide the men and women of the United States military with the tools they need to prevent war -- if they must -- they have to fight and they only have to win,"" Trump told lawmakers, military brass and members of his Cabinet in the televised address. ""I am sending Congress a budget that rebuilds the military, eliminates the defense sequester and calls for one of the largest increases in national defense spending in American history."" It will be easier said than done for Trump to fundamentally reshape the balance of defense and domestic spending. To begin with, 60 votes will be required in the Senate to lift the sequester spending caps on military funding, and there is no guarantee Democrats will go along. Some Republicans -- like Arizona Sen. John McCain, chairman of the Armed Services Committee -- argue that Trump's spending hike for defense is not sufficient to make up for the deep cuts that have been made during the time of the sequester. And Senate GOP majority leader Mitch McConnell expressed doubts that a budget that slashes the State Department's funding -- as suggested by the White House -- could pass. ""I for one, just speaking for myself, think the diplomatic portion of the federal budget is very important, and you get results a lot cheaper frequently than you do on the defense side,"" McConnell told reporters on Tuesday. Cost overruns And while Trump is likely to highlight the Ford aircraft carrier as an example of American military might and advanced technological skill, the ship also provides the President with a warning about the unforeseen development snafus, cost overruns and delays that can accompany defense spending. Trump has made reforming the procurement process and the high cost of defense articles something of a crusade. ""We've saved taxpayers hundreds of millions of dollars by bringing down the price of fantastic -- and it is a fantastic -- new F-35 jet fighter, and we'll be saving billions more on contracts all across our government,"" Trump said on Capitol Hill on Tuesday night. The 100,000-ton, 1,100-foot-long USS Gerald Ford (CVN 78), named after the president who succeeded Richard Nixon after the Watergate saga, was laid down in 2009. It's state-of-the-art electromagnetic catapult is designed to allow 25% more missions to be flown each day than by existing carriers. But the Ford is more than two years behind schedule. A memo from June 28 last year obtained by CNN revealed that the ship experienced difficulties in launching and recovering aircraft, moving on-board munitions and conducting air traffic control and self-defense. Senate Armed Services Committee Chairman John McCain slammed the delay as ""unacceptable"" at the time and branded the Ford-class program as a ""case study in why our acquisition system must be reformed -- unrealistic business cases, poor cost estimates, new systems rushed to production, concurrent design and construction, and problems testing systems to demonstrate promised capability."" Indeed, Trump might be well advised to remember the case of the last Republican president who took a victory lap on the deck of an aircraft carrier -- and came to regret it. In a dramatic made-for-television production, George W. Bush flew onto the deck of the USS Abraham Lincoln off the coast of California to declare the end of major combat operations in Iraq in 2003. His speech, given under a banner reading ""Mission Accomplished,"" became a symbol of hubris and of the premature declaration of victory in Iraq, a country where US forces are now battling ISIS.", -1893,2017/3/3,http://www.cnn.com/2017/03/03/asia/kim-jong-nam-malaysia-north-korea/index.html,Kim Jong Nam: Arrest warrant issued for North Korean airline worker,"(CNN)Malaysian police have issued an arrest warrant for an employee of North Korean airline Air Koryo in connection with the murder of Kim Jong Nam, Malaysian state media reports.","Inspector General of Police Khalid Abu Bakar said the warrant had been issued for Kim Uk Il, 37, according to Bernama, the news agency. He's wanted for questioning over the death of Kim, the North Korean leader Kim Jong Un's estranged brother, who was killed with a VX nerve agent at Kuala Lumpur International Airport on February 13. A request has also been sent through the Foreign Ministry seeking the cooperation of Hyon Kwang Song, second secretary at the North Korean embassy, in relation to the investigation, Bakar said. On Friday, Ri Jong Chol -- the only North Korean man held in connection with Kim's death -- was released from custody, under heavy police escort, on his way to being deported. Police don't have sufficient evidence to charge Ri , Malaysia's attorney general told CNN Thursday. Malaysian Deputy Prime Minister Ahmad Zahid Hamidi said Ri will fly from Malaysia to Pyongyang, via Beijing, accompanied by two officials from the North Korean embassy. Malaysia's Director General of Immigration, Seri Mustafar Ali, said he's been blacklisted from re-entering the country. North Korea has vehemently denied any connection to the murder. Mysterious murder Two women have been charged with Kim's murder. Siti Aisyah and Doan Thi Huong have both said they are not guilty. If found guilty, they will face the death penalty. According to authorities from their home countries, both women have maintained they thought they were participating in a TV prank show. Aisyah thought the substance she rubbed on Kim's face was ""a kind of oil, baby oil, something like that,"" said Andreano Erwin, Indonesia's deputy ambassador to Malaysia. Malaysian authorities said the substance was VX nerve agent, a deadly chemical weapon banned under international law. After the women wiped Kim's face with the liquid, he started feeling dizzy and died shortly afterward on his way to the hospital, Malaysian police said. VX is the world's most potent nerve agent and one of the most dangerous chemical weapons ever manufactured. It's banned under the Chemical Weapons Convention.", -1894,2017/3/3,http://www.cnn.com/2017/03/03/europe/uk-may-scotland-brexit-independence/index.html,Theresa May: Scotland's government 'obsessed' with independence,"London (CNN)Prime Minister Theresa May accused Scotland's governing party of being obsessed with independence, as she stressed the importance of Scotland remaining part of the United Kingdom after Brexit.","May, addressing the Scottish Conservative Party conference in Glasgow, insisted there would be no benefit to Scotland going it alone when the United Kingdom leaves the European Union. Uncertainty over Brexit has led to speculation that the Scottish National Party could call for a second independence referendum: in last year's referendum, 62% of voters in Scotland wanted to remain in the European Union. May accused the SNP, which controls the devolved administration in Edinburgh, of holding an ""obsession"" with independence and neglecting other domestic issues. She said that a ""tunnel-vision nationalism, which focuses only on independence at any cost, sells Scotland short."" She said the UK government would negotiate a deal with the European Union that would protect Scottish interests after Brexit. ""I am determined to ensure that as we leave the EU, we do so as one United Kingdom, which prospers outside the EU as one United Kingdom,"" May said. ""That means achieving a deal with the EU which works for all parts of the UK -- England, Scotland, Wales and Northern Ireland -- and for the United Kingdom as a whole."" Sturgeon: UK on different path Scotland's First Minister Nicola Sturgeon has repeatedly argued that Scotland should stay in the European Single Market, even after the rest of the United Kingdom has left. In a speech Tuesday, she accused the UK government of ignoring Scotland's views and failing to compromise as it prepares to trigger Article 50, kicking off the formal process of leaving the European Union. If Scotland doesn't secure a special deal in Britain's negotiations with the European union, Sturgeon said, then ""proposing a further decision on independence wouldn't simply be legitimate, it would arguably be a necessary way of giving the people of Scotland a say in our own future direction."" ""It would offer Scotland a proper choice on whether or not to be part of a post Brexit UK - a UK that is undoubtedly on a fundamentally different path today than that envisaged in 2014."" In the 2014 Scottish independence referendum, 55% voted in favor of remaining in the United Kingdom. 'Hard' Brexit The devolved Scottish government published a report in December which set out ways for Scotland still to maintain its current position in the single market -- which guarantees the free movement of goods, services and people within the bloc -- even if the rest of the UK leaves. May indicated in a key speech in January that the UK government will pursue a ""hard Brexit,"" leading to the UK withdrawing from the single market and European customs union.", -1895,2017/3/3,http://www.cnn.com/2017/03/02/us/ms-13-long-island-killings/index.html,MS-13 gang members indicted in brutal deaths of high school students,"(CNN)More than a dozen members of the MS-13 gang were indicted Thursday on seven killings on Long Island spanning three years, including the deaths of several high school students last year.","The US Attorney's Office for the Eastern District of New York said the 13 members of La Mara Salvatrucha, known as MS-13, face offenses including seven murder charges, racketeering, attempted murder, assault, obstruction of justice and arson in the 41-count indictment unsealed Thursday in federal court in Central Islip, New York. ""Law enforcement was determined that these brutal murders wouldn't turn into cold cases,"" US Attorney Robert L. Capers told reporters. Two of the students -- Nisa Mickens, 15, and Kayla Cuevas, 16 -- were beaten with baseball bats and a machete, Capers said. The girls attended Brentwood High School in Brentwood, a working-class community in Suffolk County, about 45 miles east of New York City. At the time, police said there appeared to be gang involvement in the girls' deaths and the deaths of two others, whose skeletal remains were found after they had been missing for months. Police have not announced arrests in the latter two deaths. ""The Brentwood family has spent the last six months in mourning, but today marks the beginning of the healing process for this beautiful and resilient community,"" Suffolk County Police Commissioner Timothy Sini said. Kayla was involved in a ""series of disputes"" with MS-13 gang members and associates months earlier, authorities said. She and friends then became involved in an altercation at Brentwood High a week before the girls' deaths, authorities said. MS-13 members vowed to seek revenge. On September 13, gang members went looking for rival gang members to kill in Brentwood, authorities said. Prosecutors said gang members, including one man who was indicted, saw the two best friends. The girls had gone for a walk that night, News 12 Long island reported. They recognized Kayla, and got permission to kill the girls from two gang leaders, who were also indicted, authorities said. A passerby found Nisa's body on a Brentwood street on September 13, the eve of her 16th birthday, Sini said. The next day, Kayla's body was discovered in the backyard of a nearby home. ""My message to the people of Brentwood and all of Suffolk County is that although we are keenly aware that nothing will ever undue the heartbreaking loss of Nisa and Kayla, we can take solace in the fact that their savage murderers will be held accountable,"" Sini said. Authorities said a third Brentwood High School student, Jose Pena, 18, was killed on June 3, 2016. His skeletal remains were discovered on October 17, 2016, in a wooded area that served as a burial ground for MS-13 victims, Capers said. Pena was killed because he was suspected violating gang rules, federal authorities said. ""His bones bore marks of repeated stab wounds and beatings with a bat, a blunt force instrument,"" Capers said. Sini said Suffolk police have cracked down on gangs. Police have collected intelligence on MS-13 members and created a list of gang members to put under surveillance. Officers have arrested members for various crimes, he said. Since September 2016, Sini said, 125 MS-13 members have been arrested. ""We are going to eradicate MS-13 from these communities,"" Sini said. MS-13 is one of the largest criminal organizations in the United States, according to federal authorities. An international criminal organization, it has more than 6,000 members in the United States, including a presence in at least 46 states and the District of Columbia, officials said. More than 30,000 members operate mostly in El Salvador, Mexico, Honduras and Guatemala, federal authorities said. MS-13 is the largest and most violent street gang on Long Island, the US Attorney's Office said. Capers said two of the suspects are US citizens. A third suspect is a legal permanent resident and the rest are undocumented immigrants, Capers said. If convicted, the defendants could face up to life in prison or the death penalty.", -1896,2017/3/3,http://www.cnn.com/2017/03/02/europe/sweden-conscription/index.html,Sweden reintroduces conscription as tensions rise over Russia,"(CNN)Sweden has moved to reintroduce conscription ""as a response to the new security situation"" in Europe, the country's defense minister told CNN Thursday.","A government act on Thursday reintroduced compulsory military service in the country for the first time since 2010, and for the first time on a gender-equal basis. Peter Hultqvist, Sweden's minister of defense, cited Russia's annexation of the Ukrainian territory of Crimea in 2014 as one of the triggers for the decision. ""After the Russian annexation of Crimea against international law, and their increased military exercises close to the border, we have a new security situation,"" Hultqvist said. Hultqvist added that Sweden is ""strengthening its military cooperation with Finland and with the NATO partners."" Sweden is not a NATO member but it has contributed to NATO-led operations and enjoys bilateral ties with the alliance through the Partnership for Peace and the Euro-Atlantic Partnership Council. The country suspended conscription in 2010 and instead adopted a recruitment system which relied on volunteers. The decision to boost defense spending by $720 million over five years was taken in February 2015 -- but Sweden is lacking suitable numbers for its defense forces. According to government figures, the armed forces were 1,000 troops short in terms of full-time squad leaders, solders and sailors. The new plan aims to ensure there are 6,000 full time members serving with 10,000 available on a part-time basis. New recruits According to Marinette Nyh Radebo, spokesperson for the Ministry of Defense, those born between 1999 and 2000, along with marginally older volunteers, will undergo testing on July 1 to see if they are eligible. Radebo explained that 13,000 men and women will be drawn from around 100,000 which fit into the correct age category. They will then undergo physical and psychological assessments. It is the first time that Sweden has conscripted women. Not every person will be required to sign up, with only 4,000 people a year set to be conscripted until 2019. Radebo told CNN that while there will not be a quota system in terms of the ratio between male and female recruits, the ""gender equal"" policy for the 1999 generation should mean there will be an increase in the number of women in the armed forces. She said the new recruits will take part in their first military exercises on January 1, 2018. Conscripts will spend between nine to 11 months in training before choosing whether to pursue a career in the military or join as a reserve soldier. 'More active' ""We see that we have more military activities in our neighborhood, and also that the illegal annexation of Crimea and the ongoing conflict in Ukraine is of course part of it,"" Radebo told CNN. ""We react to the activities and we don't talk about threats, that's why we have a parliament decision with a 70% of the parliament behind the present defense decision to strengthen military capacity and increase cooperation with the countries around us."" Sweden, which is a neutral country, has stepped up its defensive efforts in recent months. In September, it sent 150 troops to the island of Gotland, which sits between the mainland and a number of former Soviet Baltic states amid rising tensions with Russia. A Swedish government report says that a full battalion will be established on the island by 2018.", -1897,2017/3/3,http://www.cnn.com/2017/03/02/middleeast/syria-palmyra-isis/index.html,Syrian regime recaptures ancient city of Palmyra from ISIS,"(CNN)Syrian government forces have recaptured the city of Palmyra and surrounding areas from ISIS, according to the country's general command, cited by state news agency SANA.","Army units ""in cooperation with the allied and backing forces"" inflicted heavy losses on ISIS forces in operations supported by Syrian and Russian air forces, the report said. Palmyra was seized from regime forces by ISIS in December after hundreds of the jihadist group's militants launched a coordinated attack in and around the city. Palmyra is seen as strategically important to both sides in Syria's more than five year civil war. Located in Homs province, in central Syria, it is around 225 kilometers (140 miles) from Raqqa, considered ISIS' headquarters in Syria. Kremlin spokesman Dmitry Peskov said Syrian government forces completed their operation with the help of Russian airpower, reported Russia's state news agency TASS. Control over the city has passed from the regime to ISIS and back again a number of times. Syrian forces recaptured the city from ISIS last March, after it was seized the previous May, when ISIS started demolishing ancient ruins in the city. Syrian rebel leaders gathered in Geneva for peace talks with the government refused to congratulate the regime. Nasser al-Hariri, a member of the Syrian Coalition, said the struggle for Palmyra was like watching a cartoon. ""This is the second time we've seen the handover [of Palmyra] and this is obviously being used for political reasons,"" said al-Hariri in a press statement Thursday. ""if we want to follow the game of (Syrian President) Assad and Palmyra, it will be like watching Tom and Jerry."" In the past, the Syrian army has boasted that the capture of Palmyra would be ""a launchpad to expand military operations"" into Raqqa and Deir Ezzor provinces. Monitoring group Syrian Observatory for Human Rights also confirmed Palmyra's recapture. Rami Abdulrahman, the founder of SOHR, said the city had been taken after ""heavy clashes between ISIS and the regime forces erupted on Wednesday.""", -1898,2017/3/2,http://www.huffingtonpost.com/2017/03/03/trump-speech-polls_n_15132280.html,HUFFPOLLSTER: Most Presidential Addresses To Congress Get High Marks. Trump Is No Exception.,The first round of surveys on Tuesday's speech find reactions were largely positive.,"Donald Trump's address found a favorable reception from its audience. Most Americans don""t want to give the presidency more power. And Democrats are now more likely than Republicans to be scared about the world. This is HuffPollster for Friday, March 3, 2017. DONALD TRUMP"" SPEECH TO CONGRESS GETS LARGELY POSITIVE MARKS FROM VIEWERS - The president's speech on Tuesday was positively received by much of its audience, according to two ""snap""?polls from CNN and CBS, and a subsequent survey from Gallup. In Gallup's survey, 57 percent of Americans who watched the speech or followed news coverage of it, rated it as excellent or good. CNN/ORC and CBS/YouGov surveys found that 57 percent and 76 percent, respectively, of viewers who agreed to be polled after the speech gave it positive marks. A few important caveats - HuffPollster, last year: ""state of the Union speeches have a celebrated history of not making much of an impact. A 2010 Gallup analysis found that the speeches delivered since the beginning of the Carter administration resulted, on average, in a ""�less than a 1 percentage-point decline""?in presidential approval""?Most Americans simply aren""t watching the addresses, let alone paying close attention to the content. In a 2015 HuffPost/YouGov poll, about one-quarter said they watched the previous State of the Union, and only 4 percent reported remembering it very well. (Given people's predilection to pretend they'r paying more attention to civic events than they are, those numbers are likely a little high.) The people most likely to tune in to watch any president are also those least likely to need any convincing. Democrats [were] consistently more likely than Republicans or independents to say they'r interested in watching [Barack] Obama's speeches ""?just as Republicans were more likely to watch George W. Bush.""?[HuffPost, more on the pitfalls of ""instant""?polls] The same pattern holds true for Trump's speech, which attracted somewhat lower ratings than Obama's first speech to Congress, and saw a Republican-heavy viewership compared to the makeup of the American public as a whole. Given the advantage of a friendly audience, it's not all that surprising that Trump ""?like past presidents ""?received a generally warm reception. In fact, CNN, which has tracked reactions to such speeches through several presidencies, notes that Trump's two immediate predecessors both received ratings about 10 points higher for their initial addresses. More from the surveys: CNN/ORC snap poll: ""President Donald Trump's first address to Congress received largely positive reviews from viewers, with 57% who tuned in saying they had a very positive reaction to the speech, according to a new CNN/ORC poll of speech-watchers""?In this case, the pool of speech-watchers was about eight points more Republican than the population as a whole""?While the 57% who said they had a very positive reaction to Trump's speech outpaces the marks received by his predecessor for any of his recent State of the Union addresses, they fell below the reviews either Barack Obama or George W. Bush received for either of their initial addresses to Congress.""?[CNN] CBS/YouGov snap poll: ""�Viewers nationwide strongly approved of President Trump's speech Tuesday night, with many Democrats joining Republicans in calling it ""�presidential""?and positive in tone. Republicans and Independents found it ""�unifying,""?though Democrats were slower to come around on that measure""?Republicans did tune in to watch it in much greater numbers than Democrats (as a president's party typically does) which bolstered those approval numbers. Forty percent of Democrats at least somewhat approved; 18 percent strongly approved.""?[CBS] Gallup: ""President Donald Trump's address to Congress on Tuesday night had a positive effect on many of those who watched it or read news coverage about it later. Almost six in 10 of this group rated the address as excellent or good, and more than one in three said it made them more confident in Trump's abilities to carry out his duties as president""?Those who watched the speech seem to be in general agreement. Speech watchers skewed Republican, so to some degree this positive reaction reflects the friendly nature of Trump's audience. Democrats who watched were not necessarily hostile in their reactions, but rather were most likely to say that the speech was just OK and that it made no difference in their views of Trump as president ""?views that of course were strongly negative to begin with. It's unusual for a single speech to make a major difference in how the public views a president.""?[Gallup] OPEN ELECTIONS, CHECKS AND BALANCES SEEN AS ESSENTIAL TO DEMOCRACY - Pew Research: ""Large majorities of the public, Republicans and Democrats alike, say open and fair elections and a system of governmental checks and balances are essential to maintaining a strong democracy in the United States. However, there is less consensus about the importance of other aspects of a strong democracy ""?notably, the freedom of news organizations to criticize political leaders""?Just 17% of Americans say that ""�many of the country's problems could be dealt with more effectively if U.S. presidents didn""t have to worry so much about Congress or the courts,""?while 77% take the view that ""It would be too risky to give U.S. presidents more power to deal directly with many of the country's problems""?""?including sizable majorities of Democrats and Democratic-leaning independents (87%) and Republicans and Republican leaners (65%).""?[Pew] Divides by partisanship, less by age - More from Pew: ""republicans (68%) are less likely than Democrats (88%) to view the right to nonviolent protest as very important. Similarly, while majorities in both parties say it is very important that the rights of people with unpopular views are protected, fewer Republicans (66%) than Democrats (80%) say this. The sharpest partisan disagreement is over the importance of the freedom of news organizations to criticize political leaders""?There is little difference across age groups in the importance given to checks and balances, open and fair elections, and press freedom to maintaining a strong American democracy.""?-MOST AMERICANS AREN""�T ""�VERY SCARED""?ABOUT THE WORLD - HuffPollster: ""�Only about a quarter of Americans say they'r ""�very scared""?by current world events, a new HuffPost/YouGov poll finds, and fewer than 1 in 10 harbor significant worries that they will be personally affected by an act of terrorism. Overall, 23 percent of the public say they'r very scared about the way things are going in the world today. Another 41 percent say they'r somewhat scared, and 27 percent say they'r not very or not at all scared""? Democrats are now 26 points likelier than they were last fall to say they'r ""�very scared""?about the way things are going in the world. Republicans, by contrast, are 18 points less likely than they were last year to describe themselves as ""�very scared.""?[HuffPost] HUFFPOLLSTER VIA EMAIL! - You can receive this daily update every weekday morning via email! Just click here, enter your email address, and click ""sign up.""?That's all there is to it (and you can unsubscribe anytime). FRIDAY"" ""�OUTLIERS""?- Links to the best of news at the intersection of polling, politics and political data: -Gregor Aisch and Alicia Parlapiano look back at decades of data on what Americans find most important. [NYT] -Geoffrey Skelley and Kyle Kondik explain how the 2018 midterms will differ from last year's election. [Sabato's Crystal Ball] -Nate Silver introduces FiveThirtyEight's presidential approval tracking. [538] -Quoctrung Bui, Claire Cain Miller and Kevin Quealy ask a panel of experts to determine what's really abnormal ""?and important ""?about Donald Trump's presidency. [NYT] -Christopher Ingraham reviews research suggesting Trump is unlikely to modulate himself as president. [WashPost] -Carlett Spike and Pete Vernon analyze data on White House press briefings. [CJR] -A new HuffPost/YouGov poll finds most Americans are glad to see Barbie dolls becoming more diverse. [HuffPost] -Six in 10 around the world think their society is ""broken.""?[Ipsos] -Americans are split on the benefits of NAFTA, with Republican support at a two-decade low. [Gallup] -Most of the American public supports a pathway to citizenship. [Marist] Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we""�ll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1899,2017/3/3,http://www.huffingtonpost.com/2017/03/01/this-is-us-star-susan-kelechi-watson-on-what-to-expect-after-that-big-death_n_15132150.html,'This Is Us' Star Susan Kelechi Watson On What To Expect After That Big Death,"The actress, who plays Beth on the series, also dishes on the season finale.","Spoiler alert: Please proceed with caution if you'r not up to date on ""This Is Us.""?When ""This Is Us""?returns on Tuesday, the Pearson family will face a really tough loss: the death of William Hill (Ron Cephas Jones), who succumbed to cancer during last week's episode. And it's not going to be easy.- William, the biological father of Randall Pearson (Sterling K. Brown), was a fun-loving person with a passion for music and the arts who faced a troubled and storied past. By the time Randall tracked down his dad for the first time, William's health was failing.- As the season progressed, William became a big part of Randall's life, getting to know his wife, Beth (Susan Kelechi Watson), and their two daughters, Annie (Faithe Herman) and Tess (Eris Baker). So it's no surprise that the family will take this hard, especially because Beth and the kids didn""t get to say a proper goodbye.- In the last episode, Randall and William took a road trip to Memphis to visit William's old stomping grounds and, along the way, they connected with some of William's extended family. They stopped by the club where William used to play music and ate at one of his favorite restaurants. But William's health took a turn for the worse and he never made it back home to see Beth and the kids.- Beth did get to see the two of them off before they hit the road in a short but memorable scene.-In a way, at that moment, Kelechi Watson had to say goodbye to her castmate Cephas Jones. ""there's this scene where they'r getting in the car to go to Memphis and I bend down into the car and I look in his eyes and I say, ""�You take care of you.""?And the look Ron gave me, I said, ""�Ron, stop. You can""t do that ""?You know what you'r doing.""?We'r looking at each other like he knows he's going to leave,""?Kelechi Watson told The Huffington Post during a-Build Series-interview. ""We knew that these moments were so precious having him on set.""?Because the NBC series toggles back and forth between the past and present, it's possible we'll see William in flashback scenes, Kelechi Watson said. Though, she added, ""He's gone now in that everyday way and that was hard.""?The actress said William's death will hit her character ""Lard.""?Probably harder than the audience may expect.- ""they started off as strangers ""?and then she kind of sort of let him in. And then he figures his role out in the family, and they become family and they become friends. It's going to be difficult and she didn""t have a chance to say goodbye,""?she said. ""And her being his main caretaker in a sense, being home with him. You'll find out how much she's helped him in terms of medicine and doctors ""?So, it's going to have a big effect.""?With only two episodes left,-viewers are waiting in anticipation for how Season 1 will wind down. Kelechi Watson assures ""This Is Us""?fans that some lingering storylines will be tied up in the season finale, especially when it comes to Milo Ventimiglia's and Mandy Moore's characters, Jack and Rebecca Pearson.- ""there are aspects of Jack and Rebecca's life that We're been tracking through the season and we'll see a lot of that ""?and some questions will be answered,""?she said. ""This Is Us""?has already been picked up for two additional seasons, so there are plenty more stories to tell. When asked whether viewers will learn more about Beth's past in upcoming seasons, Kelechi Watson said,-""that has to be a possibility playing with time and everything like that. We have the space right now to do it because we have two more seasons. Have they thought about it that far? I'm not sure. I imagine that's an option that's available to us. I know that we will learn about who she is, her family and her career.""?""This Is Us""?airs Tuesdays at 9 p.m. ET on NBC. Watch the full Build Series interview with Susan Kelechi Watson below.- Share this slide: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1900,2017/3/3,http://www.huffingtonpost.com/2017/03/03/icon-condom-app_n_15132122.html,High-Tech Condom Ring Coming Out To Measure Boink Performance,"""Users will have the option to share their recent data with friends, or, indeed the world,""?the manufacturer promises.","For the full ""terminator""?bionic man effect comes a brave-new-world condom ring to measure almost everything guys have wanted to know about their sexual performance. The i.Con bills itself as the ""World's First Smart Condom.""?(""Welcome to the future of wearable technology in the bedroom,""?notes manufacturer British Condoms.)- In fact, the device is a ring that men can wear with a condom during sex to track a number of pertinent facts. It's not actually available yet, but the company-is taking ""early bird""?registrations around the world for the product, which will sell for about $75 once it's released sometime in 2017. The i.Con tracks speed, ""Average thrust velocity,""?duration, skin temperature, girth, calories burned (no joke) and frequency of sessions. Most importantly for many, no doubt, will be how a wearer stacks up to the average and ""best""?performers-""?though a sexual partner will likely have an insight or two about that. Statistics are tracked via an i.Con app. The i.Con is also supposed to be able to sense sexually transmitted diseases.- The ring will come with a one-year warranty and have a micro-USB charging port to provide up to eight hours of juice after a single hour of being plugged in. British Condoms vows that-""All data will be kept anonymous, but users will have the option to share their recent data with friends, or, indeed the world.""?Just watch out for those Russian hackers. The Huffington Post's Weird News email delivers unbelievably strange, yet absolutely true news once a week straight to your inbox. Learn more", -1901,2017/3/3,http://www.huffingtonpost.com/2017/03/03/fridays-morning-email-the-russia-rundown-sessions-recusal_n_15131412.html,Friday's Morning Email: The Russia Rundown: Sessions' Recusal,What this means for investigations moving forward.,"(And want to get The Morning Email each weekday? Sign up here.) ATTORNEY GENERAL JEFF SESSIONS RECUSES HIMSELF FROM INVESTIGATIONS INTO 2016 CAMPAIGN, TIES WITH RUSSIA-Bowing to bipartisan pressure following news that Sessions had met with Russian ambassador Sergey Kislyak twice in 2016 after telling the Senate Judiciary Committee under oath that he hadn""t had any communications with Russians. Sen. Al Franken, who asked the Russia question in Sessions""� hearing, wants to know why he didn""t come clean earlier. President Donald Trump said he had ""gotal""?confidence in Sessions.-Here are four ways Congress could investigate potential Russian election meddling. And check out this timeline of Sessions""?meetings with Kislyak, a list of other administrative officials who have met with him,-as well as an explainer on just who the Russian ambassador is. [HuffPost] INDIANAPOLIS STAR: MIKE PENCE USED PRIVATE EMAIL FOR STATE BUSINESS AS GOVERNOR, WAS HACKED And yes, Pence was critical of Hillary Clinton's use of a private email server. You can read the full report here. [HuffPost] THE SEARCH FOR THE ""�SECRET""?GOP OBAMACARE BILL-Some Republicans were able to read drafts of the proposed GOP Obamacare bill in-an undisclosed location. Democrats and Rand Paul went in search for the mystery bill Thursday, and shenanigans involving transportable scanners and soliloquies to statues of Lincoln abounded.-[HuffPost] DREAMER ABOUT TO BE DEPORTED WITHOUT A HEARING AFTER SPEAKING TO THE MEDIA-""A 22-year-old undocumented immigrant-arrested by Immigration and Customs Enforcement-in Jackson, Mississippi, on Wednesday after speaking to the media about her family's detention is set to be deported without a court hearing, her attorney said on Thursday.""HuffPost] ""aCTIVISTS, DOCTORS JOIN FORCES TO STOP ONE OF THE COUNTRY"" MOST RESTRICTIVE ABORTION BANS""?""Pennsylvania could ban abortions after 20 weeks and criminalize a medically accepted abortion method.""?[HuffPost] JUDGE IN CASEY ANTHONY CASE: MOM LIKELY KILLED HER DAUGHTER BY ACCIDENT-The retired Florida judge offered his theory almost six years after the acquittal of Casey Anthony in the death of her daughter, Caylee.-[HuffPost] YES, INTERIOR SECRETARY RYAN ZINKE SHOWED UP TO HIS FIRST DAY OF WORK... ON A HORSE-Honestly, you couldn""t make up the news of the past 24 hours. People wouldn""t believe you.-[HuffPost] HAVE AN AMAZON ALEXA?-Make sure to check out our new flash briefing, which you can activate by setting up HuffPost as a news source in your device.-Then say, ""What's my flash briefing?""?or ""what's new?""?for your HuffPost rundown for the day! ""THE EPIDEMIC OF GAY LONELINESS""� �Gay people are now, depending on the study, between-2 and 10 times-more likely than straight people to commit suicide.""HuffPost] JANE FONDA OPENS UP ABOUT PAST RAPE AND ABUSE-""I""ve been raped, I""ve been sexually abused as a child and I""ve been fired because I wouldn""t sleep with my boss,""?Fonda said. ""I always thought it was my fault; that I didn""t do or say the right thing.""?[HuffPost] WE MIGHT HAVE A ""�GAME OF THRONES""?RELEASE DATE-And it's a bit later than May...-[HuffPost] WE CAN""�T BELIEVE WE ARE SAYING THIS But these cockroaches are cute?-[HuffPost] ""�WESTWORLD""?MIGHT BE MORE REAL THAN WE THINK-A sex doll brothel is opening in Barcelona.-[HuffPost] THAT SILK SHIRT YOU'RE WEARING?-Worm spit made that happen. Sorry. And want more bizarre news? Check out our-Weird News email.[HuffPost]- ~ We'r not crying, you'r crying over Viola Davis""?only childhood photo. ~ This video of a-turkey mob is truly terrifying. ~ Wait ""?what color are these strawberries? ~ We'r with Deadspin ""?this is may be the coolest thing We're ever seen a baseball prospect, nay a human being,-do. ~ Ellen DeGeneres finally taught George W. Bush how to put on a poncho. ~ Did Ed Sheeran just give away when we can expect new Taylor Swift music? ~ The truth behind this baby orangutan giving a thumbs up is pretty dark. ~ Here's Jimmy Kimmel telling the longform version of how the impossible happened Oscars night. ~ We love Chrissy Teigen's frankness about having help in order to do it all. ~ American hero Tom Hanks gave the White House Press Corps a coffee machine. ~ And Lorde has graced us all with a new single. Want the chance to win a bunch of free stuff? We'r partnering with General Assembly to give away a suite of today's most buzzworthy lifestyle tech, including an Apple Watch, an Oculus Rift, a pair of Snapchat Spectacles and more. Enter here for a chance to win.- Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1902,2017/3/3,http://www.huffingtonpost.com/2017/03/03/ellen-degeneres-to-host-a-new-primetime-game-show_n_15131410.html,Ellen DeGeneres To Host A New Primetime Game Show,"Her new show is ""a combination of ""american Ninja Warrior,""?""�RuPaul's Drag Race""?and a water park.""","Ellen DeGeneres-is playing games in prime-time. The popular daytime talk host will host a new game show called ""Ellen's Game of Games,""?NBC announced on Thursday. The concept revolves around ""supersized versions""?of games that DeGeneres already conducts on her afternoon show, according to a press release. NBC is ordering just six episodes, but DeGeneres promises to pull out all the stops to ensure its success, including gigantic sets and ""Lilarious games. ""It's going to be like a combination of ""american Ninja Warrior,""� ‘RuPaul's Drag Race""� and a water park,""?she said in a release. ""�OK, it's nothing like that, but you should still watch.""?Contestants, plucked from the audience, will have to complete stunts, answer questions ""under immense pressure""?and participate in other means of silliness. Some of the regular games on her daytime program include ""What's In the Box?""?and-""Know Or Go.""""Ellen's impact as a daytime icon is unprecedented, and we can""t wait to see her bring that amazing spirit to ""�Game of Games,""?said Paul Telegdy, president of NBC Entertainment's Alternative and Reality Group. ""she is among the very best at engaging with her devoted audience and we are all in for a treat when her antics hit prime time.""?The network has yet to determine a premiere date, Variety noted. Who knows, maybe the new show will feature a version of the ""the Sweater Game""? HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -1903,2017/3/3,http://www.huffingtonpost.com/2017/03/02/tom-perriello-virginia-governor-trump-democrats_n_15130858.html,This Virginia Democrat Is Crafting A Populist Anti-Trump Strategy,Tom Perriello hopes the #Resistance can put him in the Virginia governor's mansion.,"Champagne corks popped in Charlottesville, Virginia, as hundreds of overjoyed Democrats crowded onto the brick-paved pedestrian thoroughfare to cheer the election results and toast the future. Not only had Barack Obama been elected the next president of the United States, but liberal voters had ousted arch-conservative Rep. Virgil Goode from Congress, replacing him with a young Democrat named Tom Perriello. Perriello's victory on Nov. 8, 2008, seemed to symbolize a sea change in Virginia politics. One of the most reliably conservative states in the country for more than four decades, Virginia was starting to look like the edge of a new Democratic wedge into the South. But the good times didn""t last. Within two years, Perriello had been voted out in the tea party wave that swept half of Virginia's U.S. House Democrats from office. Today, Republicans control both chambers of the state Legislature, and the governor's mansion is up for grabs this fall in what will be one of the most closely watched political contests of the year. Perriello is back, campaigning for the governor's job as an unapologetic progressive, hoping to win both his party's nomination and November election by positioning himself as the ultra-liberal antidote to President Donald Trump. ""What people want to see right now is that willingness to stand up to Trump and limit those really unconscionable and unconstitutional moves and also have a positive vision,""?Perriello said in an interview with the HuffPost politics podcast "" That Happened.""�A lot of the pundits around Virginia said Trump is not a local issue, it's not a Virginia issue, and I told some of them that is a really elite perspective.""?Listen to the full interview, embedded below. The discussion begins at the 15:40 mark:- Perriello jumped into the race in January, roiling a primary field that Democratic Gov. Terry McAuliffe had cleared for the state's lieutenant governor, Ralph Northam. Perriello insists he's focused on defeating a Republican in the fall, but he isn""t above barbing his primary opponent. ""I don""t really think of Ralph Northam as my opponent ""?I'll let others talk about Ralph Northam,""?Perriello told HuffPost before launching a brief attack: ""This week we did find out that he voted for George W. Bush twice back at a time when we were trying to fight against the very massive tax cuts for the rich that got us into this economic trouble.""?Northam told The New York Times in February that he had been apolitical during the Bush years and now considered the votes to be ""wrong.""?Perriello has blemishes of his own with the mainstream of the Democratic Party. In 2009 he voted to prohibit insurance companies from covering abortion under the Affordable Care Act, a vote he says he regrets. But Perriello's pitch is mostly focused on a wonky brand of economic populism that he thinks Democrats can muster to counter Trump's thunderous demagoguery. Perriello sees corporate monopoly power elbowing out small businesses and undermining rural economies, and he is worried about the potential for automation to swiftly replace large numbers of workers with robots. He's prone to riffs about issues like excessive concentration in the beer market, where two conglomerates control over 90 percent of production. ""We need to get away from some of the monopoly approaches on energy and food production,""?Perriello says. ""Look at the impact of those small breweries around Virginia! It's been enormous, and that's a tiny part of the market!""?Monopoly is a hot topic in D.C. intellectual circles, one that often competes with the rise of the robots as an explanation for the country's economic troubles. Perriello picks both. ""I have a foot in both camps of the nerd conversation going on up here,""?he says, which has to be part of what he calls a ""lision of inclusive economic growth.""?- ""I'm going out and spending time in Trump country and with Trump voters,""?Perriello says. ""democrats cannot run on a status quo message. And we have to understand how much pain and disruption there's been in the economy and have a better set of ideas.""?Trump pushes a fiery brand of hyper-nationalist populism in which he, the leader of the movement, yells at things that are bad for working people ""?like a company closing a factory and moving production to Mexico. Before he even taken office, Trump scored a populist political win when he got a heating-and-cooling company to keep its furnace plant in Indiana. Trump's success with the Carrier Corp. stunned a political establishment that has long told blue-collar workers they were doomed to lose their jobs to robots or foreigners. But Perriello said forcing old factories to stay in the U.S. won""t work as a populist strategy. He called Trump's deal ""the Carrier con job""?because it ignores the economics working against workers ""?and because Carrier's remaining workers will probably be phased out in favor of robots anyway. ""What they did was use taxpayers to subsidize the death of additional manufacturing jobs in America,""?Perriello said. During the campaign, both Trump and Democratic primary candidate Bernie Sanders repeatedly bashed Carrier's plan to close the plant and fire 1,400 workers. After he won, Trump used the levers of power to make Carrier's parent company, a federal contractor called United Technologies, reconsider. Part of the deal gave United Technologies $7 million in state tax credits over 10 years. In exchange, 800 Carrier workers would stay on the job ""?but it's not clear for how long. ""We'r going to make a $16 million investment in that factory in Indianapolis to automate to drive the cost down so that we can continue to be competitive,""?United Technologies CEO Greg Hayes said in a CNBC interview after the deal. ""What that ultimately means is there will be fewer jobs.""?Vice President Mike Pence, then governor of Indiana, had directed the state's economic development office to see what it could do for Carrier. It's typical for any governor to try to entice big companies with tax breaks, but Perriello said he try to help the state's economy in a more populist way. ""If we focused as much attention on helping people start a business or helping small businesses add someone on the payroll, we be going in a better direction than what we tend to do, whether it's stadiums or other things,""?he said. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1904,2017/3/3,http://www.huffingtonpost.com/2017/03/03/dhs-trump-immigration-order-maddow_n_15130570.html,Homeland Security Still Doesn't Think Donald Trump's Immigration Order Will Work,"""I look at this, and you know what I think? I think the Muslim ban is dead,"" Rachel Maddow said of an internal DHS report.","A second internal Department of Homeland Security report questions the validity of President Donald Trump's thwarted efforts to bar citizens of predominately-Muslim countries from entering the United States. According to an exclusive report-from The Rachel Maddow Show Thursday, DHS's Office of Intelligence and Analysis authored an assessment, dated March 1, that found most foreign-born extremists based in America are radicalized after they enter the U.S., not before. The assessment ""?which tracked 88 violent, foreign-born extremists ""?contradicts Trump's plans to use ""extreme vetting""o prevent potential terrorists from entering the country. ""We assess that most foreign-born, U.S-based violent extremists likely radicalized several years after their entry to the United States, limiting the ability of screening and vetting officials to prevent their entry because of national security concerns,""?reads the report, which DHS verified as authentic to Maddow's team. The Huffington Post has reached out to the White House for comment, but DHS spokesman David Lapan confirmed the report's authenticity. The assessment is used to inform law enforcement and vetting officials ""An trends of foreign-born individuals engaged in terrorism activity in the Homeland,""?he told HuffPost. Lapan noted that the information is from open source materials and does not include classified data. ""It does not include information from historical or current investigative case data or current intelligence or threat stream data from classified data sets,""?he added.- The unreleased draft report is the second to be leaked over the past week. At the end of February, The Associated Press obtained another that stated citizenship is ""likely an unreliable indicator of terrorist threat to the United States.""?That report, compiled by the same DHS office, was prepared shortly after the 9th Circuit Court of Appeals blocked Trump's controversial executive order. Together, both assessments directly contradict Trump administration plans to bar potential terrorists from entering the U.S. through a temporary ban on those from seven Muslim-majority countries: Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. The ban is currently stalled in the courts, but the White House has pledged to release a new executive order to replace it, though the date of such a plan has been pushed back several times. The ban threatens the rights of millions of people. Many were detained at airports around the country in the week following its signing, including those with green cards. Maddow offered a terse summary of the second DHS report at the end of her segment on Thursday. ""I look at this, and you know what I think? I think the Muslim ban is dead,""?she said. This article has been updated with comment from Lapan. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1905,2017/3/3,http://www.huffingtonpost.com/2017/03/01/meal-prep-recipes_n_15130550.html,Meal Prep: Get Through The Week With These Mexican-Inspired Recipes,Be prepared this week.,"Every week we bring you-Sunday Meal Prep-to help you lay out healthy weekly meals. Do your shopping, spend a few hours cooking, and enjoy the fruits of your labor all week long. A lot of thought goes into curating them, ensuring there's a good balance of nutrition and delicious fun. We have a very delicious week planned for you. We found all the recipes-and gathered them for you.-All you have to do is get off your tail this Sunday, and make quick work of the five great dishes below.- Here's what you can look forward to... Breakfast is a pistachio-loaded muesli. You can eat it served on top of yogurt or in a bowl of milk. Lunch is a combo of a taco kale salad ""?dress it just before eating ""?and a slow cooker chicken soup. Dinner is the easiest cilantro stir fry chicken you're ever made. Make some brown rice to go with it and you have yourself a great week ahead of you. Oh, and then there are the dark chocolate hemp bites. Because yes, this coming week deserves chocolate, too. You'r welcome. HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1906,2017/3/3,http://www.huffingtonpost.com/2017/03/01/guinness-is-red-not-black_n_15130520.html,"Fact: Guinness Beer Is Actually Red, Not Black","We know it looks black, but it's not.","Hold onto your pints, because we have a bit of Guinness trivia that is about to knock your green St. Paddy's Day hat right off your head. Guinness, that beloved stout that you drink religiously on Saint Patrick's Day (which you sometimes drop a shot of bailey's into and chug) and is as filling as a dinner, is not what you think. If you take a look at glass of Guinness, it's black, right? If you'r being picky, it's a deep, deep chocolate brown. But actually, it's not black at all. It's not even brown. This pint of beer is red-""?and-the Guinness website confirms it. When you hold a pint of Guinness up to the light ""?which, to be fair, doesn""t happen often considering the environment in which it is often consumed ""?you'll see that this stout is in fact ruby red. Take a look: The ruby red color is a result of the way the malted barley is roasted during the beer's preparation. Now that We're got that all taken care off, it's time you learned how to pour yourself a proper stout. HuffPost Lifestyle is a daily newsletter that will make you happier and healthier ""?one email at a time. Learn more", -1907,2017/3/3,http://www.huffingtonpost.com/2017/03/03/nebraska-prison-disturbance_n_15130440.html,2 Inmates Reportedly Killed In Nebraska Prison Disturbance,The deaths were described as murders but did not provide details about the incident.,"March 3 (Reuters) - Two inmates have been killed during a disturbance at a maximum security prison in Nebraska, the second deadly incident at the facility over the last two years, a local newspaper reported on Friday. Correctional officers found the bodies of two inmates in the housing units where several altercations took place on Thursday afternoon after about 40 inmates refused to return to their cells at the Tecumseh State Prison in southeast Nebraska, according to the Omaha World-Herald. ""Any loss of life is tragic,""?State Corrections Director Scott Frakes told a news conference shown on the newspaper's website. The staff ""Lave handled the situation extremely well which limited the incident to a small number of participants.""?Frakes described the deaths as murders but did not provide details about the incident or the identities of the deceased inmates. The maximum/medium custody facility for men was the site of another deadly melee in May 2015, when as many as 200 inmates ransacked and started fires in two housing units. Two inmates also died during the incident. Never miss a thing. Sign up for up-to-the-minute breaking news alerts delivered straight to your inbox. Learn more", -1908,2017/3/3,http://www.huffingtonpost.com/2017/03/03/goldfish-viking-burial-school-children_n_15130436.html,Schoolchildren Give Dead Class Goldfish An Epic Viking Send-Off,Farewell little fish.,"Freddy and Bubbles got a fitting send-off-for two little warriors. Instead of flushing their two dead class goldfish down the pan, students at an elementary school in Scotland honored them with an epic Viking-style funeral.- Children at Papdale Primary School on the Orkney Islands capital of Kirkwall built their own longship to send their beloved animals to the mythical Norse destination of-Valhalla. The youngsters read out their memories of the fish, who were each only a few months old, before placing the pets inside one of the vessels and setting it alight on a nearby watercourse. ""the children were initially upset when they heard the fish had died, but the Viking sendoff gave a really positive spin on the experience,""?teacher Corey Eddington told Mashable. The school documented the Norse-style ceremony on its blog. As the children were studying the Vikings when the fish died, teachers seized on it as a learning experience.--""While we will miss Freddy and Bubbles, we certainly enjoyed giving them a good send off to Valhalla,""?the school added. HuffPost Parents offers a daily dose of personal stories, helpful advice and comedic takes on what it's like to raise kids today. Learn more", -1909,2017/3/3,http://www.huffingtonpost.com/2017/03/02/trump-factory-closing-batesville-casket_n_15130416.html,This Southern Town Made Wooden Coffins. Now A Mexican Town Will.,Donald Trump said he would stop U.S. jobs from going to other countries.,"In Batesville, Mississippi, a coffin company is closing its factory and shifting production to Mexico. Batesville Casket announced Nov. 3 that it would close the facility where it manufactures wooden coffins, which would be made instead at the company's existing plant in Chihuahua, Mexico. Two hundred people will lose their jobs this month in a town of 7,400 that is closely identified with a company that shares its name. Local officials have tried to persuade the company to reverse its decision, arguing that keeping the plant open would be better for its workers, the county and even the company. ""If they were to change their direction and make the move back to the U.S., they would be heroes,""?said Joe Azar, president of the Panola Partnership, a private-public economic development organization for Panola County, where Batesville is located. Batesville Mayor Jerry Autrey, a Democrat, tried to get President Donald Trump's attention, reaching out to various Republican officials in Mississippi to plead his case. After all, Trump had won the presidency in part by bashing companies for shifting production to other countries, and the president-elect had just intervened to stop a similar plant closure in Indiana. Trump had even said he would personally call the CEOs of every company-planning to replace U.S. workers with foreign ones. But Trump has not chimed in on Batesville, and the town is yet another example of the limits of public pressure as industrial policy.- Batesville's parent company, the publicly traded Hillenbrand Inc., is so profitable that last month the firm announced it would buy back $100 million worth of stock, thereby inflating the value of shareholders""?investment. But the company, an industrial conglomerate headquartered in Indiana, said in February that Batesville's earnings have declined slightly due to lower coffin sales. - The slumping sales owe largely to fewer Americans buying coffins when a loved one dies, opting for cremation instead. According to the Cremation Association of North America, the cremation rate reached 48.6 percent in 2015 and will probably exceed 54 percent by 2020. ""At the same time our population is rising and our mortality rate is rising, the total number of caskets being purchased each year is stagnant because of the rise in cremation,""?Dan Isard, an expert on the funeral services industry, said in an interview. Batesville Casket President Chris Trainor cited the burial trends in a statement last year on why they were shuttering the Mississippi factory. ""Closing our smaller wood assembly plant will allow us to align our manufacturing output with consumer demand,""?he said. He added that the vast majority of families still choosing a burial for their loved ones opt for metal coffins, which are cheaper than the wooden ones made in Mississippi. The company will still have three plants in the U.S. in addition to its one in Mexico, where manufacturing workers generally earn a fraction of what their U.S.-counterparts do. Azar said he had no luck pleading with Trainor at a meeting last Friday. ""they were really concerned about me getting company people's hopes up,""?Azar said. ""they'r 100 percent committed to leave, and there's nothing that could change that.""?Mayor Autrey said he has been trying to get another company to occupy the coffin factory and replace some of the 200 lost jobs. But while several firms have shown an interest in the facility, Batesville Casket still hasn""t officially listed it for sale. Both Autrey and Azar said they are concerned that Batesville Casket doesn""t actually want to sell the facility. Autrey said he suspects they want might hang on to the plant in case Trump follows through on his campaign promise to punish companies that use foreign labor. If that did happen, the company can restart its namesake plant. ""they'r gonna lay all my people off and then they'r going to hold onto the plant and see what's going on with Trump,""?Autrey said. ""I thought they would be anxious to sell that plant as quick as they could because it's going to be an albatross around their neck ""?They'r going to still have to pay property taxes.""?- - Batesville Casket spokeswoman Tory Flynn said there's no secret about the sale plans; the company told the Panola Partnership that it planned to sell the plant in March 2017 when they first announced the closure. That's still the plan, Flynn said. ""We're been very clear with the community and the Panola Partnership ""?or at least we thought we were ""?that March was the time of our intent to sell,""?she said. Isard, the funeral industry expert, said that even if President Trump managed to junk the North American Free Trade Agreement and slap tariffs on imported goods such as caskets, a U.S. factory that makes them would still be on shaky ground ""?at least in terms of price competitiveness. ""You could import caskets from China with a 100 percent import tax and still they would be cheaper than manufacturing in the United States,""?Isard said. But Batesville Casket's parent company, Hillenbrand, has estimated in its financial disclosures that cheaper imported imported caskets comprise only about 5 percent of the market. Isard said that's largely because because customers still prefer to buy American-made caskets; the company thinks the percentage could easily grow. Azar said the decision to move to Mexico could backfire on Batesville Casket for that very reason. ""how many U.S. citizens want to be buried in a coffin that's stamped ""made in Mexico""?""?he said in an email. As for Batesville's workers, economist Dean Baker said they are hapless victims of free trade. The 1994 North American Free Trade Agreement, or NAFTA, removed the trade barriers that could have made it unprofitable for a company to shift manufacturing abroad and sell the products back in the U.S. ""It's long since the day when we might have expected a company to have loyalty to their workers,""?Baker said. Batesville Casket has planned a job fair Friday for its soon-to-be-laid-off employees. Unlike the workers at Carrier Corp., the Indiana plant Trump pressured to stay open, the Batesville Casket employees aren""t unionized. Part of the reason the Carrier case received so much coverage is that workers were able to complain to the media without fear of getting fired. The Batesville case is much more typical, as hundreds of American firms lay off workers and shift production abroad every year with hardly any attention in the national media. Chris Wells owns a funeral home in Batesville and said his family helped Batesville Casket buy the land for its factory in the 1980s. Wells said losing an employer that is also a local icon will be sad: ""Even though they'r not headquartered here in Batesville, still, our town name is on their shirts, and we'r very proud to be a part of that.""?Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1910,2017/3/3,http://www.huffingtonpost.com/2017/03/02/nypd-says-anti-semitic-crimes-up-94-percent-since-this-time-last-year_n_15130410.html,"Anti-Semitic Crimes Up 94 Percent In NYC Since This Time Last Year, NYPD Says","Overall, statistics show a 55 percent rise in hate crimes in New York City since 2016.","As another wave of bomb threats hit Jewish community facilities across the country, police say anti-Semitic incidents in New York City have nearly doubled in the first two months of the year. From Jan. 1 through Feb. 26, there were 35 reported anti-Semitic incidents in the city,-compared to 18 reported incidents during the same time period last year, the New York Police Department said. That's a 94 percent increase.- Overall, NYPD statistics show a 55 percent rise in hate crimes since last year, although the city said crime in general is down 9.7 percent. Hate crimes spiked in 2016 as well, and city and state officials blamed the surge on the hateful rhetoric used during the presidential campaign.- ""Based on the timing and the extraordinary increase We're been seeing, not only in New York but around the nation, you have to conclude that the presidential campaign was the major factor,""?NYPD spokesman Stephen Davis told Bloomberg. Swastikas and other anti-Semitic markings have shown up across the city for the past several months, including on a children's playground, dorm room door and subway cars.-Last month, a group of subway riders banded together to remove the vandalism with hand sanitizer and tissues. New York Gov. Andrew Cuomo shared a photo of a swastika drawn on a B subway train that had been transformed into a box with the letters ""L-O-V-E.""?This is what New Yorkers do - we turn hate into love. And we wont back down -not now, not ever. #TurnHateIntoLove pic.twitter.com/yVEsTY2aGc The governor created a special task force to investigate the surge in hate crimes in New York in November, including the launch of a state-wide hotline for residents to report incidents of bias and discrimination. Jewish cemeteries have also been targeted in recent weeks, as headstones at burial grounds in St. Louis, Philadelphia and Rochester, New York,-have been destroyed. The Huffington Post reported last Friday that 75 centers and eight Jewish schools across the country had received at least 100 bomb threats as of Feb. 28.- Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1911,2017/3/3,http://www.huffingtonpost.com/2017/03/02/pennsylvania-20-week-abortion-ban_n_15129686.html,"Activists, Doctors Join Forces To Stop One Of The Country's Most Restrictive Abortion Bans",Pennsylvania could ban abortions after 20 weeks and criminalize a medically accepted abortion method.,"WASHINGTON ""?Lawmakers in Pennsylvania could pass one of the nation's most restrictive anti-abortion bills-this month, banning most abortions after 20 weeks and criminalizing a medically accepted method of terminating a pregnancy.- The Republican-backed legislation has inspired a groundswell of activism, with reproductive rights activists and medical professionals organizing rallies at the state Capitol in Harrisburg and personally lobbying state lawmakers. Pennsylvania's Democratic governor, Tom Wolf, has repeatedly pledged to veto the legislation as soon as it reaches his desk ""?but it's possible Republicans in the state legislature could override that veto.- Recent history indicates the bill might pass, although the margin could be small.-When-the state Senate sent the bill to the House-in February, it passed with just two votes short of the veto-proof majority ""?one Democrat voted for it and three Republicans voted against it.-And the House introduced a similar bill-last week, a version of which stalled in the Senate after they passed it last June. Wolf has taken a personal role in advocating against the legislation, holding events with activists, doctors and women who have had late-term abortions-that would be restricted if the bill becomes law. ""We're got to keep politics out of the doctor's office,""?he told The Huffington Post. In addition to restricting women's health care choices, Wolf thinks the bill goes against the state's values. ""We were founded by William Penn, on the basis of freedom of conscience, and from his time on, we attracted people from all over the world, based on the idea that they came here, and they could make their own, most personal decisions,""?he said. ""Taking sure that women continue to have the right to make their own decisions, I think, is right in line with that tradition. It's a rich tradition,""?Wolf said.-""When people are choosing where to go to school or begin their professional lives or where to start their business or family, Pennsylvania has got to show that it's open to them. This bill just says the reverse, that you can""t make your own decisions here, this is not a place where we value freedom of conscience.""?Almost 20 states have passed laws banning late-term abortions. Pennsylvania's bill goes further by taking a step that reproductive rights groups and medical professionals say is unprecedented: restricting a medically accepted abortion method called ""dilation and evacuation.""?The provision is similar to lawmakers ""specifying which medical tools can be used in a surgical procedure,""?said-Sari Stevens, executive director of Planned Parenthood Pennsylvania Advocates, the political arm of the family-planning organization. ""there is no other field of medicine where it would be appropriate for 253 predominantly white male legislators to say, ""This is how you practice medicine,""?Stevens said. ""We haven""t seen any bills with the combination of these two prohibitions before, and we believe both to be unconstitutional, and remarkably so when combined together. It's not only an unconstitutional ban. It goes farther than many bans We're seen in the country, if not most.""?Lisa Perriera, an OB/GYN and abortion provider at the Philadelphia Women's Center, said she believes the bill restricts doctors""?abilities provide the best care for their patients. ""It is a safe medical procedure that I know how to do,""?she said. ""If a woman is asking me to have a procedure, and that's the right choice for her, who is a legislator to tell me that she shouldn""t be able to have that safe medical procedure?""?The legislation's supporters argue that certain abortion procedures are ""inhumane""?and unsafe. They also-say fetuses can feel pain by the 20-week mark, although-medical research disputes that assertion. Perriera, who also does advocacy work as a board member of the Women's Law Project, a Pennsylvania-based women's rights group, dismissed the logic of conservative lawmakers trying to justify abortion restrictions. ""these laws are always couched in the way that they are there to make things safer for women, and that is just malarkey,""?she said. Opponents of the bill have protested that lawmakers did not allow public testimony on the legislation, meaning medical professionals couldn""t provide their input. Many doctors and medical organizations across the state ""?including the state's branch of the American Congress of Obstetricians and Gynecologists and the Pennsylvania Medical Society ""?have warned against passing the bill. ""�[It] sets a dangerous precedent by legislating specific treatment protocols and would significantly jeopardize the open dialogue within the physician/patient relationship,""?the Pennsylvania Medical Society's president wrote in a letter last year. ""It just seems like the facts are irrelevant, and this is just, you know, the die is cast, this bill is going to be passed, and the medical community's input is just irrelevant to them,""?Stevens said, describing the lack of transparency on the bill as ""incredibly shady.""?Wolf said he is ""Pretty confident that my veto would be sustained.""?But given the close margins in the Senate, activists are focusing their attention on state representatives who might swing the vote. A number of groups are planning to rally at the state Capitol when lawmakers return to session on March 13, said Perriera, adding that she and other doctors intend to personally lobby legislators. ""Even though they don""t want to hear what our medical opinion about this law is, we'r going to make sure they hear it,""?she said. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -1912,2017/3/3,http://www.bbc.co.uk/news/uk-england-sussex-39105085,"Pilot errors led to Shoreham air crash, says AAIB","Pilot errors and ineffective measures to protect the public led to the deaths of 11 men when a vintage jet crashed on to a dual carriageway during the Shoreham air show, investigators say.","Pilot errors and ineffective measures to protect the public led to the deaths of 11 men when a vintage jet crashed on to a dual carriageway during the Shoreham air show, investigators say. The Hawker Hunter jet crashed on the A27, destroying vehicles and bursting into flames on 22 August 2015. A further 13 people, including the pilot Andy Hill, were injured. In its final report on the disaster, the Air Accidents Investigation Branch (AAIB) listed a series of failings. Mr Hill, 52, from Hertfordshire, has been the subject of a manslaughter investigation by Sussex Police and interviewed under caution. 'A fireball headed towards us at 400mph' Silence marks air disaster one year on Live updates: Shoreham air disaster report On publication of the report into the disaster, AAIB principal inspector Julian Firth said: ""The aircraft crashed because at the top of its aerobatic manoeuvre it was too low to complete it."" The parents of victim Matthew Grimstone, 23, said: ""Apart from anything that the pilot may have got wrong it is very evident the Civil Aviation Authority (CAA) and the Shoreham Air Show organisers have got much to answer for. ""Rules laid down by the CAA were quite clearly inadequate and those that were there were, in some cases, not fully adhered to by the air show organisers."" The report said the pilot carried out the manoeuvre at less than maximum thrust. It would have been possible to abort it safely at the apex of the loop but Mr Hill had not been trained in the escape manoeuvre which might have got him out of trouble. The AAIB also found the severity of the outcome of the crash was due to ""an absence of provisions to mitigate the effects of an aircraft crashing in an area outside the control of the organisers of the flying display"". The report said the risk assessment ""was not suitable and sufficient to manage the risks to the public"", and the Civil Aviation Authority (CAA) did not require to see or approve risk assessments before issuing a permission to hold a flying display. The report makes a series of safety recommendations including that airshow organisers must conduct suitable and sufficient risk assessments, and pilots must tell organisers what manoeuvres they will carry out and where. The AAIB also recommends that pilots should be trained in escape manoeuvres, and that displaying aircraft are separated from the public by a sufficient distance to minimise risk of injury to the public. Investigators interviewed the Shoreham pilot several times but critically, he can't remember anything about the accident. They say his flight helmet had dents in so it's possible he hit his head. What that means is that, although they know the aircraft was flying too low and too slow, and that the engine wasn't at full power when it should have been, they can only speculate as to why. One possible explanation they've looked at is whether the pilot got confused with another jet aircraft, called a Jet Provost, which he normally flies. The height and speed he started the Shoreham manoeuvre would be right for the Jet Provost, because it is smaller and lighter than the Hunter. Aviation specialists have suggested that he may have got the planes muddled up. But it's unlikely that we will ever know for sure. Sussex Police said it would be looking at the AAIB report in detail with its independent experts. Det Ch Insp Paul Rymarz said: ""We have been waiting some time for this report and it will take us some time to review. ""We hope to do everything we can to submit a file of material to the CPS in advance of the pre-inquest review on 20 June. ""As we have said before, this is an extraordinarily complex investigation, but we remain committed to finding answers for the families and friends of those who died."" Both the AAIB and CAA have already published a series of interim reports looking at the findings from the crash scene and implications for air displays around the UK An AAIB report in September 2015 found the jet showed ""no abnormal indications"" during its flight. But a further report in December said the aircraft had expired ejector seat parts and an out-of-date technical manual. In March last year, the AAIB said organisers of the Shoreham air show were unaware of the pilot's display plans. Safety measures at all UK civil air shows were enhanced following the disaster and the CAA said it had reviewed every aspect of air display safety. The AAIB made 21 safety recommendations which were all accepted by the CAA this year. Who were the Shoreham air crash victims?", -1913,2017/3/3,http://www.bbc.co.uk/news/world-us-canada-39148943,Trump defends under-fire Attorney General Jeff Sessions,"President Donald Trump has defended Attorney General Jeff Sessions as ""an honest man"" amid calls for him to quit.","President Donald Trump has defended Attorney General Jeff Sessions as ""an honest man"" amid calls for him to quit. The Democrats say Mr Sessions ""lied on oath"" at his confirmation hearing about contacts with the Russian ambassador. Mr Trump said Mr Sessions ""could have stated his response more accurately but it was clearly not intentional"" and accused Democrats of a ""witch hunt"". However, Mr Sessions has removed himself from an FBI probe into alleged Russian meddling in the US election. The Democrats have maintained their attacks on Mr Sessions, saying his explanation regarding his contacts with the Russian ambassador in 2016 were ""simply not credible"". Sergei Kislyak : Career diplomat or recruiter of spies? Mr Trump said the Democrats had ""lost the election and now they have lost their grip on reality"". His campaign was dogged by allegations that some of his team had met with Russian officials and that Moscow had interfered in the election on his behalf. The president has branded the allegations ""fake news"". It stems from his comments at his confirmation hearing in January. He was asked: ""If there is any evidence that anyone affiliated with the Trump campaign communicated with the Russian government, in the course of this campaign, what will you do?"" Mr Sessions responded: ""I'm not aware of any of those activities. I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians. And I'm unable to comment on it."" However, it then emerged Mr Sessions and Russian ambassador Sergei Kislyak held a private conversation in Mr Sessions' office in September and spoke at a meeting with several other envoys on the sidelines of the Republican National Convention in July. Mr Sessions was at the time a member of the Senate Armed Services Committee. But he was already a prominent member of Donald Trump's campaign team. The former Alabama senator also had meetings with more than 25 foreign ambassadors in the course of the year. He insists he did not lie at the confirmation hearing, saying his comments were ""honest and correct as I understood it at the time"". He said he had spoken with the Russian ambassador as a US senator and not as Mr Trump's ""surrogate"". He said: ""I never had meetings with Russian operatives or Russian intermediaries about the Trump campaign."" Mr Sessions admitted that in his confirmation comments he ""should have slowed down and said, 'but I did meet one Russian official a couple of times'"". He said that during his meeting with Mr Kislyak they talked about terrorism and then ""somehow the subject of Ukraine came up"". But he added: ""I don't think what was said about that meeting I had with the Russian ambassador was legitimate. I think it was hyped beyond reason, and I think it was unfair."" However, he has taken himself off an FBI investigation into the alleged Russian interference in the election, saying it could be ""perceived that I wouldn't be objective"". The Democrats are not easing up. Ms Pelosi repeated her call for Mr Sessions to quit. She said his ""his narrow recusal and sorry attempt to explain away his perjury"" were totally inadequate. Adam Schiff, the top Democrat on the House intelligence committee, said Mr Sessions ""clearly misled"" the Senate and his explanation was ""simply not credible"". Although some top Republicans in the House and Senate agreed Mr Sessions should recuse himself from the investigation, senior figures rallied behind him, resisting demands for the appointment of an independent prosecutor. For Mr Sessions to be charged with perjury, prosecutors would have to show that he not only made false statements, but knowingly and wilfully misled members of the committee about an indisputable fact. The Russian response was to echo Mr Trump's witch hunt accusation. Foreign Minister Sergei Lavrov said Mr Kislyak had simply met ""representatives of the executive branch and parliamentarians, public figures, non-governmental organisations"", a practice he said that ""has never been questioned by anyone"". He continued: ""All this very much resembles a witch hunt, or the period of McCarthyism, which we thought had long passed in the United States as a civilised country."" In the 1950s, Senator Joseph McCarthy oversaw an investigation into alleged communist activities in the US. Well, Michael Flynn has already been fired from the post of national security adviser after he misled the White House about his conversations with Mr Kislyak, allegedly regarding US sanctions. It has emerged now that Mr Trump's son-in-law Jared Kushner was with Mr Flynn when they met Mr Kislyak in December - after the 8 November election. A White House official speaking on condition of anonymity confirmed this on Thursday. At the Republican National Convention in Cleveland in July, Mr Kislyak also met Carter Page, who briefly advised the Trump campaign, according to a source quoted by Associated Press. Hello I'm an experiment from BBC News Labs. You can ask me questions about this story, like... Ask an expert about this story Ask BBC News about this story Still got questions? Ask Newsbot", -1914,2017/3/3,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39151250,PM Theresa May makes case for 'our precious Union',"Prime Minister Theresa May has called on her fellow Conservatives to continue ""loudly and clearly"" putting the case for the ""precious Union"" of the UK.","Prime Minister Theresa May has called on her fellow Conservatives to continue ""loudly and clearly"" putting the case for the ""precious Union"" of the UK. During a speech to the Scottish Tory conference in Glasgow she said ""we are four nations, but at heart one people"". Mrs May had earlier criticised the SNP-led government at Holyrood for having tunnel vision over a second Scottish independence referendum. The PM insisted that ""logic and facts"" were on the side of the UK. Scotland's First Minister Nicola Sturgeon has maintained that a second referendum was ""highly likely"" because of Brexit. Voters in Scotland backed remaining in the EU by 62% to 38%. The UK as a whole voted to leave by 52% to 48%. On the issue of Brexit, Mrs May told the conference that she was ""determined"" to ensure that ""we leave the EU as one United Kingdom and prosper outside the EU as one United Kingdom"". She began her speech with a scathing attack on Labour in Scotland. Mrs May said: ""For too long a feeble and incompetent Scottish Labour opposition did nothing to scrutinise the SNP for their failures. ""An SNP government interested only in stoking-up endless constitutional grievance and furthering their obsession with independence, at the expense of Scottish public services like the NHS and education, was given a free pass by Labour."" The address had a strong pro-Union theme. Mrs May said the the UK ""we cherish"" is not a thing of the past. She added: ""The Union I am determined to strengthen and sustain is one that works for working people across England, Scotland, Wales and Northern Ireland."" By BBC Scotland political reporter Philip Sim This was very much a speech in defence of the Union. There was comparatively little from Theresa May about Brexit, the other big constitutional matter of the day. And even the brief discussion of domestic policy was couched in terms of how the SNP was ""failing"" due to its ""obsession"" with independence. But after all, this was Mrs May's first proper speech in Scotland as Prime Minister; she will want to give many more. As much as she would rather focus on the tricky task of disentangling the UK from the EU, she does not want to be the premier who presided over the breakup of two unions. So everything from the steam engine to the Harry Potter books were trotted out in defence of the United Kingdom. Had the kitchen sink been invented by a Welshman living in Inverness, doubtless it too would have been pitched in. Listening to the speech, you would almost think a referendum had already been called. Mrs May will be hoping that by coming out swinging for the Union, she can avoid having to give this speech again on the campaign trail. Other things the speech touched on included:", -1915,2017/3/3,http://www.bbc.co.uk/news/uk-england-cumbria-39139893,Poppi Worthington: Cumbria Police failed in toddler death investigation,A catalogue of police failures over the death of a 13-month-old girl has been laid bare by the Independent Police Complaints Commission (IPCC).,"A catalogue of police failures over the death of a 13-month-old girl has been laid bare by the Independent Police Complaints Commission (IPCC). Poppi Worthington died in 2012 with a family court judge finding she had been sexually assaulted by her father Paul, who denies any wrongdoing. Cumbria Police allowed evidence to be thrown away, failed to properly investigate abuse claims and sent incorrect information to the coroner. The force said it had ""let Poppi down"". Key dates in the Poppi Worthington case The 92-page IPCC report is particularly critical of the two lead officers in the case, both of whom have since retired. The IPCC said Det Insp Amanda Sadler, who initially led the investigation, and Det Supt Mike Forrester who took over, had cases to answer for gross misconduct. Det Supt Forrester retired before any action could be taken. Det Insp Sadler was demoted and then left the force. They are criticised for their failure to preserve evidence and failing to properly ascertain Poppi's cause of death from two pathologists who gave conflicting reports. The IPCC said the reason the case remained unresolved was because they had an ""unstructured and disorganised approach"" and ""did not conduct a criminal investigation despite there being significant suspicious circumstances from the outset"". One pathologist said Poppi's injuries provided evidence she had been abused. But police disregarded her report saying she may have ""jumped to conclusions"" because Det Insp Sadler had told her abuse might be an issue before the post-mortem examination took place. A second pathologist said Poppi's injuries had natural causes. The IPCC criticised Det Insp Sadler for failing to clarify the cause of the death. Mr Worthington, who had been the last person looking after Poppi, was arrested eight months after her death but no charges were brought. Irwin Mitchell solicitors, speaking on behalf of Poppi's mother who cannot be named for legal reasons, said the child's mother was ""understandably deeply concerned by the findings of the IPCC"". ""She has anxiously awaited answers as to what happened to Poppi on that fateful day,"" the company said. ""To learn that the actions of senior investigators within Cumbria Constabulary may have contributed to the agonising delays she has endured has left her deeply and profoundly disappointed and distressed."" Cumbria Police's chief constable Jerry Graham said he ""unreservedly"" accepts the criticisms and is ""absolutely clear the investigation fell well short of the expected standard"". He said: ""I profoundly regret that we let Poppi and her family down and I offer a heartfelt apology for this."" A second inquest into Poppi's death is due to resume before the end of June. Her first inquest ended after seven minutes with the cause of death being ""unascertained"".", -1916,2017/3/3,http://www.bbc.co.uk/news/world-asia-china-39145999,Why China doesn't want you to meet 'the petitioners',,A BBC team has been forced to sign a confession after attempting to interview a Chinese 'petitioner'. John Sudworth explains why. Read John's full feature story here., -1917,2017/3/3,http://www.bbc.co.uk/news/election-northern-ireland-2017-39147988,Counting under way in NI assembly election as turnout up by 10 points,The turnout for Northern Ireland's assembly election has risen by as much as 13 percentage points in some places.,"The turnout for Northern Ireland's assembly election has risen by as much as 13 percentage points in some places. A total of 64.78 percent of the electorate voted - up nearly 10 percent on last year's election. It is the second time in 10 months the electorate has been asked to choose a government. The snap election was called after the resignation of former Deputy First Minister Martin McGuinness over a botched heating scheme debacle. Assembly election 2017 candidates A total of 1,254,709 people were eligible to vote for 228 candidates competing for 90 seats in 18 constituencies. The turnout was up across the board: The first declarations are expected within hours, although the final make-up of the new 90-seat Assembly is unlikely to be clear until Saturday afternoon. Polling stations closed at 22:00 GMT on Thursday and ballot boxes were moved to eight counting centres across Northern Ireland. The high turnout is evidence people were engaged by this campaign, but it is unclear at this stage what drove them - anger over the renewable heating saga, concern over the Irish language act, or the DUP's argument that Sinn F��in's growth might upset the constitutional balance. We should start getting some idea of the answers to that question as the votes are counted in the hours to come. By Saturday we should have 90 new MLAs, but before then there will be lots of drama as political careers hang in the balance. And as soon as the dust settles the Northern Ireland Office will want the politicians to focus on urgent negotiations to try to chart a way forward. The snap election was called after the collapse of a coalition led by Arlene Foster's DUP and Sinn F��in's Martin McGuinness. Mr McGuinness resigned over Mrs Foster's refusal to step aside as first minister pending an inquiry into the Renewable Heat Incentive (RHI) scheme, which could cost the Northern Ireland tax payer ?490m. Under Northern Ireland's power-sharing agreement, the government must be run by Irish nationalists and unionists together. This assembly election saw one significant change: The number of assembly members has been reduced from 108 to 90 which will mean each constituency returning five MLAs each and not six as was the case beforehand. The number of MLAs has been cut in order to reduce the cost of politics. Forty-eight fewer candidates stood in this election than in May last year. Opinion polls ahead of the election indicated the DUP would lose votes but remain the largest party, followed by Sinn F��in. An online exit poll by Lucid Talk found that turnout appeared to be 2-3 percent higher among nationalist voters compared to the 2016 election, while turnout for unionist voters was unchanged. Speaking on RTE's Morning Ireland, DUP MP Gregory Campbell said: ""One big issue that is causing people difficulties in terms of projecting what final outcomes might be is the reduction from six to five in terms of seats per constituency."" Sinn F��in's Gerry Kelly said the higher turnout was significant. ""That shows that people are engaged, that they see this election as important,"" he told the BBC's Good Morning Ulster programme. The SDLP's South Belfast candidate Claire Hanna said there had been more energy around polling stations, despite ""awful"" weather later on Thursday. ""That does, historically, tend to favour the centre ground,"" she said. Speaking to the BBC's The View on Thursday night, former DUP MLA David McIlveen, who lost his seat in May 2016, said this election was ""the last-chance saloon"" for the DUP. Mr McIlveen delivered stinging criticism of the two main unionist leaders, Arlene Foster and Mike Nesbitt, saying they had ""as much charisma in a bit of tofu"" - and even suggested Mrs Foster may no longer be the DUP leader on Monday. Elections to the Northern Ireland Assembly use a form of proportional representation called the Single Transferable Vote (STV), in which voters rank candidates by numerical preference. Candidates are then elected according to the share of the vote they receive. The largest unionist and nationalist parties after the election will have three weeks to form a power-sharing government to avoid devolved power returning to the British parliament at Westminster for the first time in a decade. The BBC News NI website will carry the latest election results and analysis on Friday and throughout the weekend. There will also be special election programmes running on BBC Radio Ulster from midday, on BBC Radio Foyle from 15:00 GMT and on BBC One Northern Ireland at 13:30 GMT.", -1918,2017/3/2,http://www.bbc.co.uk/news/entertainment-arts-39150882,Sir Bruce Forsyth spends five nights in intensive care,Sir Bruce Forsyth has spent five nights in intensive care after developing a severe chest infection.,"Sir Bruce Forsyth has spent five nights in intensive care after developing a severe chest infection. The 89-year-old's manager confirmed to the BBC he had been in hospital since Sunday. It is not yet known when the former Strictly Come Dancing host will be discharged from hospital, but he could be returning home on Friday. A friend of Sir Bruce told the Daily Mail the presenter remained ""in great spirits"". In 2015, the presenter underwent keyhole surgery after suffering two aneurysms, which were discovered when tests were carried out following a fall at his Surrey home. Sir Bruce left Strictly Come Dancing in 2014, having presented it since the first series, but his manager denied reports in October he had retired from the entertainment industry. Ian Wilson said at the time Sir Bruce was ""recuperating from various health issues"", adding: ""His sole focus at the moment is to continue getting better and he has made no formal or informal decision about retiring from showbusiness."" Sir Bruce has not been seen in public recently, and was too frail to attend the funerals of close friends Ronnie Corbett and Sir Terry Wogan last year. In an interview last October, his wife said he was still having ""a bit of a problem moving"". ""He's in incredible shape mentally but he gets very tired,"" she said, adding: ""With a little bit of luck he should be back."" Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -1919,2017/3/3,http://www.bbc.co.uk/news/business-39154428,Uber loses legal test case over language,Uber has lost its attempt to prevent its drivers being forced to take English language tests.,"Uber has lost its attempt to prevent its drivers being forced to take English language tests. The ride-hailing app went to court in August last year after Transport for London (TfL) said that drivers should have to prove their ability to communicate in English. Uber argued that the standard of reading and writing required by the test was too high. The US firm said it would appeal the ""unfair and disproportionate"" new rule. The ruling will also apply to all minicab firms in London. ""TfL are entitled to require private hire drivers to demonstrate English language compliance,"" said Judge John Mitting as he rejected Uber's claim. Tom de la Mare QC, for Uber and the drivers - Hungarian national Sandor Balogh, Bulgarian Nikolay Dimitrov, and Imran Khan from Pakistan - told the judge that the language requirement would result in 70,000 applicants failing to obtain a licence over three years. The changes, involving insurance and the provision of call centre facilities, were also likely to lead to additional costs for private hire operators running into millions of pounds, he said. The proposals would have a disproportionate impact on drivers from countries where English was not generally spoken and give rise to ""indirect discrimination on grounds of race and nationality"". TfL argued that the requirements were vital to ensure passenger safety and to raise standards. Sadiq Khan, the Mayor of London, said: ""Drivers being able to speak English and understand information from passengers and licensing requirements is a vital part of ensuring passengers get the high standard of service they need and deserve. ""TfL will of course look at the High Court judgment in detail to ensure all our policies fully comply."" Sam Dumitriu, head of projects at the Adam Smith Institute, a conservative think tank, criticised the ruling. ""These tests are not only expensive but excessive, and will do little to improve public safety. We've already seen London taxi drivers of 20 years or more struggling with essay questions about the Aurora Borealis and snowboarding, do we need them to have read Shakespeare too?"" he said. ""There's clearly no public interest here, only the interests of the vocal Black Cab Lobby. Sadiq Khan should listen to drivers and scrap them."" The judge ruled that Uber would not be required to open a UK-based call centre.", -1920,2017/3/3,http://www.bbc.co.uk/news/business-39150762,How a Yorkshire village got together to save their pub,,"More than 20 pubs close every week, according to the Campaign for Real Ale. The George and Dragon in Hudswell, North Yorkshire, called final orders in 2008 - but has been brought back to life by its community - adding a shop and library to keep the customers coming. On Friday it is being named Pub of the Year - we heard about its re-birth from Stu Miller.", -1921,2017/3/3,http://www.bbc.co.uk/news/business-39150672,"NHS 'overcharged' by drug makers' non-compete deal, says CMA","Two pharmaceutical firms have been accused of pushing up the price of a ""lifesaving"" NHS drug by striking a deal not to compete with each other.","Two pharmaceutical firms have been accused of pushing up the price of a ""lifesaving"" NHS drug by striking a deal not to compete with each other. The Competition and Markets Authority (CMA) said in provisional findings that Actavis and Concordia fixed the market for hydrocortisone tablets. The drug is used to treat conditions caused by hormone deficiencies. A pack of the tablets almost doubled in price for the NHS to ?88 while the deal was in place, the CMA said. It is the latest case where the CMA has accused drug makers of overcharging the health service. ""Anti-competitive agreements can cost the NHS, and ultimately the taxpayer, by stopping competition bringing down the cost of lifesaving drugs like hydrocortisone tablets,"" said Andrew Groves of the CMA. ""We allege these agreements were intended to keep Actavis UK as the sole supplier of a drug relied on by thousands of patients - and in a position which could allow it to dictate and prolong high prices."" However, Mr Groves added that the findings were provisional and that the regulator would consider any arguments from the companies before deciding ""if the law has been infringed"". Hydrocortisone tablets are used by patients whose adrenal glands do not produce enough hormones and in many cases helps them to live an active life. One of its main uses is to treat the life-threatening Addison's disease. The CMA accused the firms of agreeing between January 2013 and June 2016 that Concordia would not launch its own version of the drug, leaving Actavis as the sole supplier to the NHS for much of that time. Pharmaceutical firm Teva confirmed Actavis UK was the subject of ""allegations of anti-competitive conduct"" from the CMA. The company declined to comment further. The BBC has contacted Concordia for comment. The regulator accused Actavis in December of raising the price for 10mg hydrocortisone tablets by 12,000% in eight years, from 70p to ?88. Earlier that month, Pfizer and Flynn Pharma were fined nearly ?90m for raising the price of an anti-epilepsy treatment, although both firms said they would appeal.", -1922,2017/3/3,http://tass.com/world/933879,"Syrian troops deployed to areas controlled by Kurds ""?General Staff","The troops have been deployed to the areas controlled by the Kurdish self-defense forces on March, 3","MOSCOW, March 3. /TASS/. Syrian troops have been deployed to the areas held by the Kurdish self-defense forces on March 3, Sergei Rudskoi, Head of the Russian General Staff's Main Operations Department, said on Friday. According to Rudskoi, Syrian army units reached the areas southwest of the city of Manbij controlled by the Kurdish self-defense forces. ""In accordance with the agreements reached with the participation of the Russian air group command in Syria, Syrian armed forces units have been deployed to the territory held by the Kurdish self-defense forces on March 3,"" Rudskoi said. The Manbij Military Council earlier announced an agreement had been reached with the Russian side on transferring villages west of that city located along the line of contact with Operation Euphrates Shield that involves the Turkish armed forces and Syrian opposition units to the Syrian government border troops. Turkey, along with the Free Syrian Army, launched Operation Euphrates Shield on August 24, 2016, with a view to cleaning the area in northern Syria from the Islamic State (IS) organization (outlawed in Russia) and other terrorist groups. Over the past two months, the operation has focused on ousting IS from the city of al-Bab and the adjacent areas. Meanwhile, Ilnur Cevik, an adviser to the Turkish president, said on Tuesday that Ankara will complete its operation in Syria only after capturing Manbij, which is currently held by the Syrian Kurds.", -1923,2017/3/3,http://tass.com/defense/933891,"Russia's advanced attack helicopters prove high efficiency in Palmyra fighting ""?general","""The operation against illegal armed formations involved not only aircraft but also the most advanced Ka-52 helicopters,"" a Russian general says","MOSCOW, March 3. /TASS/. Russia's advanced Kamov Ka-52 ""Alligator"" (NATO reporting name: Hokum-B) attack helicopters have proved their high efficiency in the fight for the Syrian ancient city of Palmyra, Head of the Russian General Staff's Main Operations Department Sergei Rudskoi said on Friday. ""The operation against illegal armed formations involved not only aircraft but also the most advanced Ka-52 helicopters, which demonstrated their high efficiency in the mountain and desert terrain,"" the Russian general said. As was reported earlier, Palmyra was liberated on March 2. Night Hunters and Alligators: Russian military helicopters ", -1924,2017/3/3,http://tass.com/world/933880,"General Staff chief says 20,000 civilians return to their homes in eastern Aleppo",,"MOSCOW, March 3. /TASS/. Over 20,000 civilians in eastern Aleppo have already returned to their homes, occupied by militants earlier, Chief of the Russian General Staff's Main Operations Department Colonel-General Sergei Rudskoi said on Friday. ""Peaceful life is being put on track in Aleppo's eastern districts earlier occupied by militants. More than 20,000 civilians have come back to their homes,"" he said. ""The work will be continued to provide the Syrian population with necessary aid."" More than 500,000 residents of Western Aleppo can work calmly, without fearing any shelling or attacks from terrorists. Shops, cafes and markets are operating in the city, he added. Cinemas are opening and the children have resumed their studies at schools.", -1925,2017/3/3,http://tass.com/politics/933888,Lavrov comments on Ayrault's statement on Russia's veto at UNSC,,"MOSCOW, March 3. /TASS/. French Foreign Minister Jean-Marc Ayrault's statement, made after Russia vetoed the resolution on chemical weapons in Syria at the UN Security Council, misleads the public, Russian Foreign Minister Sergei Lavrov said on Friday. ""I have seen the French foreign minister's statement (comments on Russia's veto of UN Security Council's resolution - TASS) and accepted it with deep regret since it was pursuing a goal, I am sure of it, to misdirect the people in France and all over the world."" ""First, it was said that Russia blocked this resolution and found itself in isolation,"" he went on to say. ""It is not true. Six out of 15 members of the UN Security Council did not vote in favor of the resolution. So to speak about any isolation is at least unfair and inappropriate."" ""The JIM report (the OPCW-UN Joint Investigative Mechanism aimed at identifying those behind chemical attacks in Syria - TASS), taken as the basis of the draft resolution, was released back in the autumn of 2016,"" he said. ""It did not contain any convincing evidence of the use of chemical weapons as there were just guesses, underpinnings and references to non-governmental organizations that had never visited the areas of alleged use of chemical weapons.""", -1926,2017/3/3,http://tass.com/politics/933889,Moscow says Western interference in Macedonia's affairs taking extreme forms,"""The Macedonian people should decide their future themselves, without having to face foreign interference,"" the Russian Foreign Ministry stated","MOSCOW, March 3. /TASS/. Foreign interference in Macedonia's affairs has been taking extreme forms, the Russian Foreign Ministry said in a statement on Friday. On December 11, 2016, the ruling party gained the majority of votes at the Macedonian parliamentary elections. ""Despite all the manipulations, the opposition, openly supported by the European Union and the United States, had to face a defeat,"" the Russian Foreign Ministry's statement reads. Meanwhile, ""EU Commissioner for European Neighborhood Policy and Enlargement Negotiations Johannes Hahn, High Representative of the European Union for Foreign Affairs and Security Policy Federica Mogherini, NATO Secretary General Jens Stoltenberg and other high-ranking officials of the so-called ""�enlightened Europe""? eager to promote democratic principles, continue to exert unprecedented pressure on Macedonian President Gjorge Ivanov, demanding that he give the post of prime minister to the opposition members who have accepted the ""�joint platform""?of the Macedonian Albanians,"" the statement adds. Head of the self-proclaimed Kosovo Hashim Thaci has ""joined the EU officials, calling on the Macedonia Albanians to ""Take their rights into their hands""?in accordance with the Greater Albania project which includes vast areas in a number of Balkan states,"" the Russian Foreign Ministry went on to say. ""This is just another evidence proving that the quasi-state of Kosovo is one of the main sources of instability in the Balkan region,"" the statement says. ""The Macedonian people should decide their future themselves, without having to face foreign interference,"" the Russian Foreign Ministry stated.", -1927,2017/3/3,http://tass.com/politics/933887,Foreign Ministry: Moscow can only welcome proposals to cut US military aid to Ukraine,Russian Deputy Foreign Minister Sergey Ryabkov has commented on reports concerning the proposal to earmark $150 mln for military aid to Ukraine in the 2017 fiscal year instead of $350 mln,"MOSCOW, March 3. /TASS/. Russia can only welcome the proposal by US congressmen to cut Washington's military aid to Ukraine by more than half, if this prompts Kiev to comply with the Minsk agreements, Russian Deputy Foreign Minister Sergey Ryabkov told TASS on Friday. He thus commented on reports on the proposal by the US House of Representatives Committee on Appropriations to earmark $150 mln in military aid for Ukraine in the 2017 fiscal year instead of $350 mln. ""The budget process in the United States is an internal affair of that country. If decisions and steps, which encourage the implementation of the Minsk agreements by Kiev, are taken, we can only welcome this,"" Ryabkov said. ""As before, we urge our counterparts in Washington to weigh the consequences of certain actions more than once. For example, if our American and other colleagues heeded our appeals not to take steps that would mean destabilization (in Ukraine - TASS) or lead to the appearance of illusions in Kiev that, instead of implementing the Minsk agreements, it can solve the existing problems by using force, the situation there would have probably been much better now,"" he said. ""We urge them to think twice before making decisions that could lead to further destabilization,"" Ryabkov added. The bill discussed by the US House of Representatives Committee on Appropriations says that the Pentagon can spend $150 mln in aid for Ukraine until September 30 (the end of the current fiscal year). These funds can be spent on training troops, purchasing equipment, defense weapons etc. However, these funds cannot be used to acquire or transfer man-portable air defense systems.", -1928,2017/3/3,http://tass.com/defense/933886,Russia's airstrike eliminates 19 field commanders from CIS countries in Syria,"Russian President Vladimir Putin said earlier that about 4,000 natives of Russia were fighting for militants in Syria","MOSCOW, March 3. /TASS/. Several dozen terrorists, including 19 field commanders coming from the North Caucasus and Central Asia, were killed in Russia's airstrike on February 28 near the Syrian community of Rasm al-Ais, Head of the Russian General Staff's Main Operations Department Colonel-General Sergei Rudskoi said on Friday. ""On February 28, in the area of the community of Rasm al-Ais, 28 km southwest of Aleppo, two KAB-500 guided air bombs dropped from a Su-24 aircraft destroyed the headquarters of an illegal armed formation of Jabhat al-Nusra grouping [a terrorist organization outlawed in Russia]. The airstrike eliminated 67 terrorists, including 19 field commanders - natives of the North Caucasus and Central Asia,"" he said. According to the Russian general, another 104 militants were wounded in the airstrike. The Russian general reported earlier that Syrian districts hammered by Russian warplanes were under terrorists""?control. According to him, the terrorist groupings include over 1,000 militants that are natives of the North Caucasus. Russian President Vladimir Putin said earlier that about 4,000 natives of Russia were fighting for militants in Syria.", -1929,2017/3/3,http://tass.com/defense/933871,"Operation to free Palmyra conducted under Russian military advisers""?guidance","On Thursday, the Syrian government troops completed their operation to seize Palmyra with the support of the Russian air task force","MOSCOW, March 3. /TASS/. The Syrian troops conducted the operation to free the city of Palmyra under the guidance of Russian military advisers, Head of the Main Operations Department at Russia's General Staff, Lieutenant-General Sergei Rudskoi said on Friday. ""The Syrian army has achieved significant success in Palmyra. The operation was planned and conducted under the guidance of Russian military advisers,"" he said. ""Despite the militants""?continual opposition"", over the past month and a half, the Syrian government troops and militia units advanced 60 kilometers and took full control of Palmyra on March 2,"" Rudskoi said. On Thursday, Russian Defense Minister Sergei Shoigu reported to the Russian president that the Syrian army had concluded the operation to free Palmyra with the support of the Russian Aerospace Force. The IS militants seized Palmyra in May 2015. A year ago, the operation to free Palmyra lasted two weeks. The Syrian army took the castle on March 25, 2016, and entered the city two days later. The Russian Aerospace Force played an important part in that operation delivering pinpoint airstrikes on the Islamic State's positions. Afterwards, Russian de-miners cleared the world famous archeological site from mines. The Islamic State retook Palmyra on December 11, 2016, after the government forces had retreated.", -1930,2017/3/3,http://tass.com/economy/933883,El Salvador stands for strengthening of energy cooperation with Russia,"Russia and El Salvador have high potential in other sectors of the energy branch as well, says the country's foreign minister Hugo Martinez","MOSCOW, March 3. /TASS/. El Salvador advocates strengthening of energy cooperation with Russia, foreign minister Hugo Martinez said on Friday after talks with his Russian counterpart Sergey Lavrov. ""Opportunities for bilateral investments in gas sphere, in energy and pharmaceutics were discussed at the meeting,"" Martinez said. ""Furthermore, we raised the issue of liquefied natural gas supplies and expansion of fields in Salvador. Cooperation in the fisheries sector was discussed. We have huge potential in development of fishery in the Pacific,"" he said. ""Russia and El Salvador have high potential in other sectors of the energy branch as well,"" Martinez added. ""It is important to develop interaction between banks that will finance all these projects,"" El Salvador's foreign minister said. ""Such cooperation should be developed to promote trade exchange between our countries,"" Martinez said. ""Russia is a fundamental partner for us. We will continue working towards improvement and strengthening of bilateral ties with Russia,"" he added.", -1931,2017/3/3,http://tass.com/politics/933877,"Kremlin brushes aside opposition figure's alleged anti-corruption ""Findings""?,The Kremlin shrugged off opposition politician Alexey Navalny's anti-corruption allegations against Prime Minister Dmitry Medvedev""","MOSCOW, March 3. /TASS/. The Kremlin shrugged off opposition politician Alexey Navalny's anti-corruption allegations against Prime Minister Dmitry Medvedev, Presidential Spokesman Dmitry Peskov said on Friday. Peskov said the Kremlin saw media reports of Navalny's findings but did not study them in detail. ""This is not the first example of creativity by this well-known convicted citizen,"" Peskov asserted. He said he had nothing to add to Thursday's statement by Medvedev's spokeswoman, Natalia Timakova. ""Navalny's report has a definite pre-election tone mentioned by him at the end of the video,"" she said. ""It is meaningless to comment on propaganda rants made by an opposition figure who was convicted and who says he is already conducting some election campaign and is fighting against the government."" Navalny who was convicted of fraud in 2014 and given a 3.5-year suspended sentence published a 50-minute video on Thursday hurling accusations of corruption at Prime Minister Medvedev.",-1, -1932,2017/3/3,http://www.dw.com/en/german-politicians-line-up-against-anti-democratic-turkish-referendum-campaign/a-37797622?maca=en-rss-en-all-1573-rdf,German politicians line up against 'anti-democratic' Turkish referendum campaign,All German political parties in parliament have voiced support for keeping Turkish ministers from campaigning in Germany. They warned of bringing internal Turkish conflicts to Germany amid concern over democracy.,"German lawmakers from across the political spectrum on Friday backed preventing-Turkish politicians from campaigning in Germany for an upcoming referendum that critics say will-deal a death blow to democracy in the country.- Relations between the two NATO allies soured further on Thursday after the town of Gaggenau in southern Germany refused permission for Turkey's justice minister to address supporters of Turkish President Recep Tayyip Erdogan. The event was meant-to rally support for an April referendum that will dramatically expand the powers of the presidency.-The city of Cologne also blocked an event where Turkish Economy Minister Nihat Zeybecki was to campaign on Sunday, citing security concerns. The decisions drew a sharp rebuke from Ankara, with Turkish Foreign Minister on Friday accusing Berlin of campaigning against the referendum and double standards on freedom of speech. Wolfgang Bosbach, a lawmaker from Chancellor Angela Merkel's Christian Democratic Union, described Turkish arguments about freedom of speech as a ""sleight of hand."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Ya3W ""Germany is not a Turkish outpost, and there is no legal right for foreign politicians who want to campaign on German soil,"" Bosbach said, warning that internal conflicts in Turkey should not be brought to Germany. Horst Seehofer, Bavaria's state premier and head of Merkel's sister party, the Christian Social Union, told the daily ""S��ddeutsche-Zeitung"" that Turkish politicians had no right to carry out election campaigns in Germany. ""When Turkish politicians want to use our liberal laws to promote an anti-democratic restructuring in their country, then they are abusing their rights as a guest,"" Seehofer said. The opposition in Turkey has been handicapped in the referendum campaign and warned that if the constitutional changes pass the country would turn into a-full-blown dictatorship. Germany is home to some 3 million people of Turkish origin, about half of whom can cast a ballot in April. The Turkish referendum comes as Erdogan has used post-coup emergency powers to carry out a massive purge targeting tens of thousands of people, including-journalists, like Germany's Deniz Yucel, and the Kurdish opposition, drawing criticism from Europe.-Erdogan and his ministers have repeatedly likened a vote against the referendum as support for the coup attempt and ""terrorists."" A broader deterioration in ties between Ankara and Berlin took another hit on Monday-when Turkish-German ""Die Welt"" correspondent Deniz Yucel was arrested.-He faces up to several years in prison if convicted on ""terrorism"" charges. Thomas Strobl, the interior minister of Baden-W��rttemberg, where Gaggenau is located, said Turkey was retreating from the rule of law, press freedom and the foundations of democracy. ""Whoever wants to campaign for Turkish issues should do it in Turkey,"" he told the ""Mannheimer Morgen"" newspaper. Thomas Kutschaty, the justice minister of North Rhine-Westphalia and a-member of the Social Democrats, also warned of Turkish officials stoking divisions in Turkish-German society. Merkel should make clear to Erdogan that ""such divisive campaigning with anti-democratic goals is not welcome here in Germany,"" he told public broadcaster WDR. Cem Ozdemir, the co-chair of the opposition Green party whose family is of Turkish origin, said on Thursday that Turkish politicians have no right to campaign in Germany so long as freedoms in Turkey are restricted. ""Set the opposition free, give them the possibility to hold events [against the referendum],"" he said. ""Stop restricting the press, set Deniz Yucel and the other journalists free. Then you can use our rights,"" he said. Sevim Dagdelen, a Turkish-Kurdish lawmaker for the opposition Left Party in the Bundestag, said German government must and can prevent Erdogan and his ministers from campaigning for dictatorship and a return of the death penalty. cw/sms (AFP, dpa) -", -1933,2017/3/3,http://www.dw.com/en/tunisia-germany-announce-new-immigration-deal/a-37798162?maca=en-rss-en-all-1573-rdf,"Tunisia, Germany announce new immigration deal","Germany will give Tunisia 250 million euros to support development projects in poor areas, German Chancellor Angela Merkel has said in Tunis. Germany and Tunisia have also signed a new immigration deal.","Tunisian President Beji Caid Essebsi said the deal tackling unauthorized immigration signed Friday would satisfy both Tunisia and Germany. The agreement will allow Germany to deport rejected asylum-seekers back to Tunisia more quickly. As part of the accord, Tunisian officials will clarify any identity questions relating to Tunisians with rejected asylum requests within 30 days. The papers needed for deportation will then be issued within one week.- ""This is good news for us,"" Chancellor Merkel said in Tunis after the agreement's annoucement. - The accord follows tension that grew between the two countries after Tunisian national Anis Amri allegedly drove a truck into a crowd at a Berlin Christmas market, killing 12 people. German authorities had previously detained Amri but could not deport him as Tunisia did not provide him with identity documents. Germany to provide more aid The new aid Germany will provide to Tunisia, totaling 250 million euros ($263 million), would be used to promote development projects, create jobs and support small businesses, Merkel said at a press conference in Tunis.- Merkel's visit to Tunisia is part of a two-day trip to North African countries to strengthen cooperation on migration and regional security.- sms/cmb (dpa, AFP) -", -1934,2017/3/3,http://www.dw.com/en/opinion-a-thin-line-for-us-democrats/a-37797172?maca=en-rss-en-all-1573-rdf,Opinion: A thin line for US Democrats,"The disclosure of alleged Russian contacts by US Attorney General Sessions is a political victory for the Democrats. It will only last if there is any truth to the accusations, says DW's Miodrag Soric. -","Russia is somehow bringing US President Donald Trump no luck at all. He lost his first National Security Advisor because Michael Flynn tried to keep secret talks he had with the Russian Ambassador. The same allegations have been leveled by the Democrats and left leaning media at Attorney General Jeff Sessions - and they are calling for his resignation. That seems unlikely: the attorney general has the full support of the president. As long as this remains the case and the Congress doesn't launch impeachment proceedings, Sessions sits firmly in the saddle. But the whole discussion about Russia's influence on the US elections harms the Republicans. It insinuates that Trump has for a long time held secret contacts with the Kremlin and that he used Putin's help to win the presidential elections. The suspicion that Russia could have influenced the US elections-gives the victory of the Republicans a bitter after taste. No wonder that the opposition Democrats are keeping the discussion about Trump's alleged or real new direction of Russian foreign policy alight. In that way, they determine the news agenda - and not the president's Twitter bulletins. They are in the offensive, Trump in the defensive. Evil to him who evil thinks Miodrag Soric, head of DW's Washington bureau The disclosures about Sessions surfaced shortly after Trump's speech before both houses of Congress. Evil to him who evil thinks. Because the President surprised many Americans with a halfway reasonable appearance. The Republicans immediately voiced their support for him. That's over now. After the disclosures about Sessions went public, the first Republicans distanced themselves from the minister. In the meantime, he has had to promise to keep out of several investigations by the intelligence services into Russia connections by Trump's inner circle. As Attorney General, Sessions is in charge of the FBI. It is a political victory for the Democrats. But will it last? At the moment, it is hard to estimate. The Democrats are walking a thin line. If Russia actually had influence on the election outcome, then it is worth every effort, every inquiry by the opposition party. No understanding for political infighting If there is nothing to the allegations, then this form of political dramatization could come back to haunt the Democrats. Because one thing is clear: for the coal miner in Kentucky, the farmer in Iowa or the taxi driver in New York other topics are more important. They want a health insurance that is affordable. They expect parliamentarians to lower taxes. They want better roads, a faster Internet, a cleaner environment. Most of the Americans have no understanding for spending millions of taxpayers' money so that politicians in Washington can provide a scenario for political infighting. Have something to say? Please leave your comments below. The thread closes automatically after 24 hours.", -1935,2017/3/3,http://www.dw.com/en/cambodian-garment-workers-stay-poor-while-dressing-the-west/a-37796952?maca=en-rss-en-all-1573-rdf,Cambodian garment workers stay poor while dressing the West,Cambodia's garment industry provides cheap labor that allows for low prices and fast fashion around the world. But the people producing the clothing are struggling to stitch together a living. Ate Hoekstra reports.,"Garment worker Eang Sok Nath often works 12 hour days six times a week. But despite these long working hours and a salary increase early this year, 26-year-old Eang still has trouble making ends meet. ""In January I earned 93,300 riel ($230), but everything has gotten more expensive,"" Eang told DW. ""The prices of vegetables, meat and fish have all gone up. And just before the salary increase, my landlord raised the rent of my room 20,200 riel ($5.00) per month."" Cambodia's garment industry has been under fire for a number of years. In what is the country's largest informal employment sector, workers are subjected to forced overtime and poor working conditions in factories. Several surveys show that the salaries of the approximately 700,000 workers in the garment industry are often too low to provide for a decent life. Earlier this year, the minimum wage increased from 56,700 riel ($140) per month to 62,000 riel ($153). But the extra 9 percent makes little difference. Also starting this year, workers have been required to pay a monthly contribution to a national health care plan. Although the health insurance could save workers a lot of money when they need medical care, many of them feel like they've had to give up a substantial part of their salary increase. Cambodian garment workers striking in front of a factory in 2015 ""For that insurance I need to pay 14,200 riel ($3.50) per month,"" Phon Chane, who works in a factory in Phnom Penh, told DW. ""And when I went to the market during the weekend, I needed to pay 1,000 riel ($0.25 cents) for vegetables that were costing me 500 riel ($0.12 cents) a week earlier. So for me the increase really doesn't change anything,"" added Phon. Trying to stretch a budget- With every salary increase, many workers are in turn faced with an increase in living costs - rent and electricity prices go up and food and transportation gets more expensive. Phon Chane's situation is not unique in Cambodia. In the past four years-the minimum wage gradually increased from 32,400 riel ($80) in 2013 to 62,000 riel ($153) this year. But with every wage hike, landlords also raise their rent and prices of food and transportation go up. Additionally, the current minimum wage is still far below the 115,000 riel ($285) living wage recommended for Cambodia by the Asia Floor Wage Alliance, a coalition of unions and labor activists. In 2015, the Cambodian government tried to solve part of the problem by implementing a rent control law, which was intended to ensure that wage improvements are not eaten up by landlords. But enforcement of the law is weak and it hasn't stopped rents from going up. In interviews over the past weeks, several workers said that in January their rent increased by an amount ranging between 12,000 and-20,000 riel ($3.00 to $5.00). Cambodia's rapid urban development is leaving some residents behind. Nowhere is this more evident than in a community living along - and above - a waste drain that cuts through the capital. Joanna Mayhew reports. (09.02.2017) The government has hailed a deal to raise wages for the country's estimated 700,000 garment workers. But some union representatives have criticized the latest raise, saying it falls short of a fair minimum wage. (29.09.2016) Forced overtime, discrimination and anti-union practices - a new report accuses Cambodia of failing to protect workers in the garment industry, and calls on apparel brands to disclose suppliers. DW examines the issue. (12.03.2015) More fashion for less Workers also say that together with their wage-increases, the workload has gone up. Some now have to do the same amount of work with less people than 2 months earlier. In Eang Sok Nath's factory, the targets have gone up. ""If we don't reach the target we will have 4 hours of overtime,"" she said. ""And if we still don't meet the target, we are called by the manager where we receive a warning."" Approximately 600 factories in Cambodia produce clothing and shoes for major brands such as H&M, Adidas and C&A. These brands have announced several times that they support improvement in Cambodia's garment sector. But much still needs to happen. William Conklin, Cambodia director of the Solidarity Center, a US-based worker's rights NGO, -told DW that fashion brands are partly to blame for poor wages-in factories producing their clothing. ""What we see now is that brands squeeze factories and therefore workers,"" he said. ""If you a pay a low price per piece of clothing, that dribbles down to the workers. Workers are now being seen as disposable. That attitude really needs to change."" Thorsten Rolfes, a spokesperson for Dutch clothing chain C&A, admits that much needs to be done to improve wages. ""C&A undertook various actions to achieve positive changes in Cambodia,"" Rolfes told-DW. ""We are convinced that living wages for the whole supply chain can be accomplished through social partnerships and collective bargaining,"" he added. Adidas spokesperson Andre Mendes told DW that the amount of minimum wage is the decision of a Cambodian labor committee, and not one of the brands. ""Wherever new and higher minimum wages are set, Adidas requires our suppliers to meet those wages,"" he said. ""We will accommodate any wage increase within our normal sourcing activities."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Akae", -1936,2017/3/3,http://www.dw.com/en/doaa-s-dangerous-journey-to-europe/a-37797088?maca=en-rss-en-all-1573-rdf,Doaa's dangerous journey to Europe,"Her fianc��e died trying to cross the Mediterranean. Doaa herself was rescued, and she was holding two babys in her arm when help arrived. Melissa Fleming of the UNHCR wrote a book about it.","Anyone who meets her can only be impressed by the calm and gentle way that she tells her story. That's how 15 journalists felt at the book presentation on Tuesday. Some of them even applauded at the end of the one-hour reading. This kind of behavior is unusual, given the professional distance that comes with the job, but in this case, it's different. It does not seem unfitting. Dooa's true story, ""A hope more powerful than the sea,"" is told in 282 pages and has been written by Melissa Fleming, the chief spokeswoman of the UNHCR. Fleming is confronted with shocking stories about suffering every day, considering that an estimated number of 65 million have fled their homes because of conflict and hunger. But with her protagonist Doaa by her side, the opposite is the case. Their joint book is an attempt to give a face to refugees.- A happy childhood in Syria The author combines this approach with references to ""certain politicians"" wanting to profit from people's fears and worries. Fleming calls this a time in which refugees are not seen as people anymore. She doesn""t mention anyone by name, but there's no doubt about a particular American she is talking about. Yet US-president Donald Trump is only one of many. In Europe, the list of homophobic politicians has grown longer over the years. Melissa Fleming of UNHCR: Giving a face to refugees Despite all of this, Doaa patiently tells her story. She talks in Arabic, an interpreter translates into German. The audience learns about her happy childhood in a big family in Dara'a in Southwestern Syria, where Doaa al Zamel was born. She is six years old as demonstrations against the Assad-regime take place in Damascus. The protests, two hours away by car, are violently suppressed. First escape to Egypt Doaa's family escapes to Egypt after her father's barbershop gets destroyed and the women have to face insults. At the beginning in Egypt, they fared well under President Mursi, Doaa says. But then Al-Sisi took over, and it got dangerous again. Together with her fianc��e Bassem, Doaa decides to travel across the Meditarrenean, even though she does not know how to swin. In September 2014, they climb on a boat along with 500 other refugees. It is an overcrowded vessel unfit for disturbances at sea and will never reach Italian shores. ""A Hope More Powerful Than the Sea"", originally published in English As the boat capsizes, Doaa and Bassem are still together. Around them, people are drowning. After two days in the open sea, Bassem's strength is failing. Doaa has to watch as he drownes. She herself clings to a swimming ring made for children. Two drowning refugees entrust in her care their two baby girls - one is only nine months old. On the fourth day, they are rescued by the crew of a cargo ship. A new life in Sweden Today, nearly two and a half years later, Doaa lives in Sweden. Other family members have found refuge there as well. Others are still on the run. In this northern part of Europe, people are open and friendly to her, she says. She is eagerly learning Swedish and is happy about her life in a completely different country. Yet she still has hopes to return to Syria one day. With her story that is now published as a book, the 21-year old wants to give other refugees hope. The book was first published earlier in February in English and is now available in German. Other languages are due to follow. -", -1937,2017/3/3,http://www.dw.com/en/nearly-1-000-refugees-rescued-in-mediterranean/a-37795654?maca=en-rss-en-all-1573-rdf,"Nearly 1,000 refugees rescued in Mediterranean","A joint rescue effort by humanitarian organizations, Frontex and the Italian coast guard saved six boats off the coast of Libya. Close to 500 people have died while trying to cross from Africa to Italy so far this year.","Italy's coast guard-rescued roughly 970 migrants from the Mediterranean Sea on Thursday in a joint rescue mission with humanitarian groups and the EU border agency Frontex. The migrants were crammed into four rubber dinghies, a small wooden boat and a-larger wooden boat. On its official Twitter account, the coast guard wrote that six search and rescue (SAR) operations had saved the-boats that-were in distress off the coast of Libya. The coast guard said it had coordinated the rescue missions with a Norwegian vessel manned by EU border agency Frontex and two ships under the command of aid organizations SOS Mediterranee, Doctors without Borders-and Proactiva Open Arms Spain. Early on Thursday, SOS Mediterranee tweeted that it helped save 101 people, hailing mostly from Bangladesh. On Thursday night, they wrote that 89 more people had been saved from a ""wooden boat in bad shape"" during ""choppy seas."" Over 13,000 people have reached Italy's shores this year. Every year, hundreds of thousands of refugees try to make their way across the Mediterranean Sea to Europe. Human traffickers often cram hundreds of refugees into small boats-unfit for long trips or rough weather. The trip is always dangerous, but particularly so in the winter, when the sea is at its most treacherous. More than 440 people have died or gone missing while attempting to cross to Europe from Libya in January and February of this year alone, according to the United Nations. In 2016, over 5,000 migrants died while trying to cross the Mediterranean Sea.- Libya, in relatively close proximity to Italy's island of Lampedusa, is a hotspot for traffickers. Since longtime dictator Moammar Gadhafi was ousted and killed in 2011, authorities have only been in control of sections of the country's vast coastline. Many EU countries are currently-considering new measures aimed to keep migrants-out of the EU, alarming humanitarian groups that people stranded in or sent back to Libya may suffer mistreatment. mb/sms (AFP, dpa)", -1938,2017/3/3,http://www.dw.com/en/weaker-smaller-less-intelligent-women-deserve-less-than-men-polish-mep-states/a-37794898?maca=en-rss-en-all-1573-rdf,"'Weaker,' 'smaller,' 'less intelligent' women deserve less than men, Polish MEP states",Polish lawmaker Janusz Korwin-Mikke has come under fire for justifying paying women less because of what he called their innate inferiority. The European Parliament member is now being investigated for hate speech.,"European Parliament President Antonio Tajani launched a-parliamentary investigation into Korwin-Mikke on Thursday, one day after the conservative Polish lawmaker argued that women ""must earn less"" than men. On Wednesday, the bow-tie wearing Korwin-Mikke elicited shouts of disbelief from other members of the European Parliament (MEPs) and unleashed a storm of media criticism and after claiming that female inferiority justified unequal pay. ""Of course women must earn less than men because they are weaker, they are smaller and they are less intelligent, they must earn less, that's all,"" Korwin-Mikke said in a plenary session on the topic of gender pay gap. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YZpU In his speech, the right-wing, conservative politician stated-that women only reached- 800th place at the Polish theoretical physics olympiad and were also absent from the top 100 chess players.- According to EU parliamentary rules, MEPs may not engage in ""defamatory, racist or xenophobic language or behavior."" If convicted in the investigation, Korwin-Mikke could face a fine and temporary suspension from the representative body. Critical tweets traded The Polish conservative's statements rapidly drew widespread condemnation. Some progressive parliamentarians took to Twitter to lambast him for his sexist ideas: However, Korwin-Mikke used the attacks to reiterate his belief in the unequal status of men and women. Criticism came from beyond those in political positions, with civil groups also tweeting their support for female empowerment. cmb/sms (dpa, AFP)", -1939,2017/3/3,http://www.dw.com/en/stuttgart-part-company-with-grosskreutz-after-late-night-punch-up/a-37796045?maca=en-rss-en-all-1573-rdf,Stuttgart part company with Grosskreutz after late-night punch up,"German second-division club Stuttgart have parted ways with former Germany player Kevin Grosskreutz. This came after an altercation earlier in the week, which resulted in the player winding up in hospital.","VfB Stuttgart confirmed-on Friday that the club-has-parted ways with Kevin Grosskreutz by mutual consent. In a statement posted on its official website, the club said that the release of Grosskreutz was a direct result of an altercation that he became involved in during the early hours of this past Tuesday. After having attended a party in central Stuttgart on Monday night, Grosskreutz got into a fight in which he sustained head injuries that were so serious that he required treatment in a local hospital. The Stuttgart statement expressed relief that Grosskreutz' injuries were such that he would suffer no long-term damage. However, it also pointed to the important role that members of its first team play in setting an example for the younger players and the public at large. This it said, meant that Grosskreutz' behaviour could not be without consequences. At a hastily organized press conference at the club's home ground, a teary eyed Grosskreutz appeared in front of reporters, and apologized to the club and the fans. He also wished Stuttgart well in their quest to win promotion to the Bundesliga, saying he hoped to be ""invited to the party"" when they did. At the same time, though, he said that ""for the time being, I don't want anything to do with professional football."" Grosskreutz spent just over a year at VfB Stuttgart, having-joined the Swabians in the January 2016 transfer window from Turkish club Galatasaray for a reported 2.2 million euros ($2.3 million). Grosskreutz stayed with Stuttgart despite the fact that they were relegated at the end of last season and was a regular in the team that currently tops the second division, making-16 league appearances and scoring one goal. His contract with Stuttgart had been due to run through the end of next season. Previous incidents This is not the first time that Grosskreutz has made the headlines for the wrong reasons. Several hours after the final of the 2014 German Cup, an intoxicated Grosskreutz, who was then with Borussia Dortmund, was seen urinating in the lobby of a Berlin hotel. This came shortly after what became known in Germany as the ""doner kebab"" incident, in which a Cologne fan accused Grosskreutz of throwing a kebab at him in a Cologne doner shop. Grosskreutz denied throwing the kebab in the Cologne fan's face, saying he had only thrown it on the floor after he had been insulted. However, Grosskreutz apologized for his behavior anyway. Despite the incidents, German national team coach Joachim L?w named Grosskreutz to the squad that he took to Brazil in the summer of 2014. However, Grosskreutz saw no action in Germany's World Cup-winning campaign.", -1940,2017/3/3,http://www.dw.com/en/enders-warns-a400m-is-damocles-sword-for-airbus/a-37795514?maca=en-rss-en-all-1573-rdf,Enders warns A400M is 'Damocles' sword' for Airbus,The Airbus chief executive has said the company's troubled military aircraft program could cost the European aerospace firm billions of euros extra unless its customers agree to reduce damages for delays.,"In an interview for Friday's edition of the Financial Times, Airbus CEO Tom Enders said the company's A400M customers could not force Airbus to ""indefinitely carry"" the financial risk and burden from the military plane program.- The European aerospace behemoth is reportedly facing penalties of up to one billion euros ($1.6 billion) from the governments of Germany, Belgium, France, Britain, Luxembourg, Spain and Turkey, who commissioned the military transport aircraft in 2003. But the project has run into substantial delays due to a string of technical problems and different requests from the governments, likely resulting in massive damages. European aircraft producer Airbus has logged a drop in earnings for 2016 as the company struggled to offset losses due its A400M military plane costs. The company's outlook is cautiously optimistic. (22.02.2017) German Defense Minister Ursula von der Leyen's visit to Lithuania was going according to plan until her Airbus A400M broke down on the tarmac. The incident is the latest blow to a costly and delayed Airbus project. (08.02.2017) The torturous development process of the A400M transport plane has been extended yet again after Germany's Defense Ministry admitted that it had been hit more technical problems. Its latest delivery date is now in doubt. (01.04.2016) ""There is a huge financial Damocles' sword hanging over us in terms of these damages,"" Enders told the British business daily, adding that these could amount to ""very serious money, and we're talking here potentially about billions."" New deal? Originally planned for 2011, the plane's launch was delayed until 2013. Since then, Airbus has delivered 11 A400Ms in 2015, 17 in 2016, and two of the military transport planes so far this year. However, the aircraft being delivered still have to be equipped with all the functions that were promised on a revised timetable agreed between Airbus and the governments in 2010. Under the agreement, the company also received a bailout of 3.5 billion euros to resolve the plane's problems. As Enders is seeking the ""cooperation from clients"" to push the program forward, the good news is that, unlike in 2010, the aircraft could now be used operationally. The aircraft was ""one of the most sophisticated military aircraft of recent times,"" he told FT. ""It's a really multi-mission aircraft,"" Enders was quoted as saying. ""Long range, logistical transport, tactical air lift on the battlefield, plus tanker aircraft."" While Spain has already invited Enders for talks on the A400M, other customers may be more reluctant to make new financial concessions. The German government, for example, urged Airbus last week to live up to its contractual obligations, after the aircraft maker unveiled a profit plunge for 2016 due to charges related to the A400M. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Ieyl uhe/kd (dpa, AFP, FT.com) -", -1941,2017/3/3,http://www.dw.com/en/morocco-boasts-success-fighting-terrorism/a-37793321?maca=en-rss-en-all-1573-rdf,Morocco boasts success fighting terrorism,"As German Chancellor Angela Merkel visits Tunisia to discuss refugees and terrorism, Morocco is showing its regional neighbors how it's dealing with the latter. Willemijn de Koning reports from Rabat.","In 2003 and 2011 Morocco was targeted by-terrorist attacks-in Casablanca and Marrakesh - a shock to the country in the Maghreb region. ""Morocco was really surprised by those attacks, especially in Casablanca,"" says Mohammed Benhammou, an adviser to the Moroccan government on how to fight terrorism. With his help, the North African country has been pouring its resources into fighting radical Islam and terrorism to make sure such attacks are not repeated. One of those instruments is a new law that aims to crack down on terrorism and related activities. Anyone potentially preparing terrorist activities such as traveling to countries like Libya, Syria or Iraq and carrying out attacks either in those countries or in Morocco will face jail. This is where Morocco is going a different way compared to its neighbors, keeping an eye on it nationals not only at home but also abroad. The Moroccan FBI To be able to do that efficiently, Morocco launched its own version of the FBI, the Bureau Central d'Investigation Judiciaire (BCJI). Since it started its work in 2015, it has reportedly-uncovered 40 terrorist cells and arrested almost 600 people. The numbers are impressive but, says Benhammou, they come as no surprise. ""They work really well together with other countries. That's important, because terrorism outside Morocco can also be dangerous for us. For example, a little while ago terrorist suspects from Chad and Tangier were arrested because they were preparing attacks there. And we share all our information with European countries, because we all have the same enemy - terrorism,"" he told DW. Indeed, Morocco was one of the countries to warn Germany about the Tunisian man who was behind the attack last year at a Christmas market in Berlin. But now more than ever the BCJI has to focus on it's own country. Ever since the ""Islamic State"" (IS) group began expanding in North Africa, Morocco has been facing an increasing threat. According to Adelhak Khiame, director of the BCJI, IS is specifically targeting Morocco by sending people who are not known to the intelligence services to form sleeper cells. ""They even try to brainwash young girls on the internet to recruit them for an attack here,"" Khiame told DW. The BCJI says it recently uncovered a cell made up of mainly minor-aged girls. School for imams Preaching moderate Islam is part of Morocco's strategy to prevent young people feeling the lure of extremism The bureau is just one part of Morocco's strategy. In an attempt to nip the problem in the bud, the country is going back to school. In an effort to stop muslims from becoming extremists, the country has been educating its own imams for the past 10 years. In 2015 they took that one step further and opened an imam school where imams from all over the world can study and teach moderate Islam. The school in Rabat currently hosts 250 Moroccans (100 of them are women) and 675 students from Mali, the Ivory Coast, France, Niger and French Guinea. Students are taught to accept different opinions and values. ""People have different religions and cultures. Therefore, we need dialogue and acceptence from all sides,"" the director of the school, Abdessalam Lazaar, told DW. Students need to be given a perspective in life if they're not to become susceptible to the ""Islamic State"" group But becoming an imam is not a cure-all. A lot of young people who are poor see life as a jihadist as an attractive alternative. The institute therefore tries to counter those developments by offering courses in economics, history, philosophy and French. And those that do go on to preach in a mosque in Morocco are under strict vigilance, says Lazaar. ""If someone exceeds the limits of the state's religious understanding, then he must be excluded."" Marocco remains vigilant Vigilance is key in Morocco and people on the streets are aware that it is necessary. ""Not only to stop terrorism, but also to protect the monarchy,"" a young man from Rabat, who wished to stay anonymous, told DW. ""A friend who worked for the police, once told me that I must not talk so much about problems in the country and just do my thing."" A young woman from Casablanca shrugs her shoulders. ""Everybody in Morocco is aware that you are being watched. If they have to do that to stop terrorists, we're okay with that, we have nothing to hide."" The young man from Rabat agrees, but confesses that sometimes he's a bit afraid. ""I have a friend who has some weird ideas and put them on Facebook. A lot of his friends unfriended him because they - like me - don't want to be watched because of him. I have nothing to hide - but you don't know what they think. And here you don't have the same rights as in other countries."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1HOuz Government advisor Benhammou says Morocco's methods are working. Aside from the arrests, fewer people from Morocco sign up with IS than from other North African or Middle East countries. According to The Soufan Group, an international strategic consultancy firm, around 1,200 Moroccans traveled to Syria as of October 2015, while 6,000 came from Tunisia. ""And bear in mind that Tunisia is four times smaller then Morocco,"" said Benhammou.", -1942,2017/3/3,http://www.aljazeera.com/news/2017/03/yemen-al-qaeda-air-raids-170303012012100.html,Pentagon: 20 US air raids in Yemen target al-Qaeda,US carries out first major operation in Yemen since a botched raid left civilians and a Navy SEAL dead.,"The United States said it carried out more than 20 strikes in Yemen targeting al-Qaeda on Thursday, in the first major operations against the group since a botched US commando raid-against the group left a number of civilians and a Navy SEAL dead. The Pentagon said the strikes targeted al-Qaeda fighters, heavy weapons systems, equipment, infrastructure and the group's fighting positions. The raids, including drones and manned aircraft, were carried out in the Yemeni governorates of Abyan, al-Bayda and Shabwah. The US military did not estimate the number of casualties in the strikes, but residents and local officials told news agencies that at least nine suspected al-Qaeda fighters were killed. ""The strikes will degrade the AQAP's ability to coordinate external terror attacks and limit their ability to use territory seized from the legitimate government of Yemen as a safe space for terror plotting,"" Navy Captain Jeff Davis said, using an acronym for al-Qaeda in the Arabian Peninsula. The raids were conducted ""in partnership"" with the Yemeni government, and coordinated with President Abd-Rabbu Mansour Hadi, Davis said. READ MORE: Yemen - Art, love, bombs and bans The operations come a month after the January 29 raid on al-Bayda that residents said killed 16 civilians as well as al-Qaeda fighters. The operation, the first of its kind authorised by President Donald Trump, was hailed as a success by the White House and other US officials. But critics questioned the value and effectiveness of the mission since it killed women and children as well as Navy SEAL Ryan Owens. Owens's father has described the mission as ""stupid"", and declined to meet Trump. Trump, the military's commander-in-chief, has sought to pass blame for the death to ""the generals"" and stressed the raid yielded large amounts of vital intelligence. The US periodically sends small teams of commandos into Yemen, primarily to gather intel, and in recent months has been increasing activity against AQAP.- AQAP has been a persistent concern to the US government since a 2009 attempt to blow up a Detroit-bound airliner on Christmas Day. The group has taken advantage of a civil war pitting Houthi rebels against the Saudi-backed government to try to widen its control and influence in the impoverished Arabian Peninsula country, one of the poorest in the Middle East. The conflict, which UN officials say has killed more than 10,000 people, has also forced the US to scale back its presence in Yemen, degrading US intelligence about the group, officials say. Source:-News agencies", -1943,2017/3/3,http://www.aljazeera.com/news/2017/03/donald-trump-total-witch-hunt-attorney-general-170303050535512.html,Donald Trump: 'Total witch hunt' over attorney general,US president lashes out at Democrats who call on top prosecutor Jeff Sessions to resign over Russia meeting 'lies'. Focus on Russian diplomat Sessions met Russian envoy twice Independent probe,"US President Donald Trump has lashed out at Democrats over their demands for US Attorney General Jeff Sessions to resign, calling their actions a ""total witch hunt"". Sessions on Thursday announced he would recuse himself from any probe into the presidential election campaign as the White House moved to forestall a snowballing controversy over its ties to Russia. Following newly revealed meetings he held with Russia's ambassador before the election, Sessions denied any impropriety or that he lied about those encounters in his Senate confirmation hearing. The Republican US president declared his ""total"" confidence in Sessions - while adding he ""wasn't aware"" of contacts between Ambassador Sergey Kislyak and Sessions, who was a senator actively supporting Trump's campaign at the time. OPINION: How Jeff Sessions should remind Americans of the past He defended Sessions again in a statement calling Sessions an ""honest man"" and accusing Democrats of having ""lost their grip on reality"" and carrying out ""a total witch hunt"". Sessions ""did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional"", said the president. Russian Foreign Minister Sergei Lavrov also agreed with Trump on Friday, saying the attacks on Sessions looked like ""a witch hunt"", Russia's RIA news agency reported.- Unswayed by Sessions's account of events, top Democrats are maintaining their calls for him to step down immediately, accusing him of perjury. They also called for an independent prosecutor to investigate contacts between the Trump campaign and Moscow, which US intelligence says interfered in the election to hurt Trump's Democratic rival, Hillary Clinton. Adam Schiff, a Democratic ranking member of the House Intelligence Committee, rejected Sessions's claim that his contacts with Kislyak were unrelated to his work with the Trump campaign as ""simply not credible"". ""In the midst of a Russian campaign aimed at undermining our election, and as a highly visible proxy for candidate Trump, Sessions would have had to be extraordinarily naive or gullible to believe that the ambassador was seeking him out in his office for a discussion on military matters, and Sessions is neither,"" he said in a statement. ""I have come to the reluctant conclusion that the Attorney General should step down,"" he said, echoing calls made earlier by the top Democrats in both chambers of the Republican-controlled Congress. Trump has come under increasing pressure over Russia's interference in the election and alleged contacts between his entourage and Moscow. According to officials, US intelligence agencies and the Federal Bureau of Investigation continue to investigate just how and how much Moscow intruded into US politics, and whether that effort - which US intelligence chiefs say was directed by President Vladimir Putin - involved collusion with the Trump campaign. Four congressional committees have opened probes into the issue, although Democrats fear that Republicans will seek to bury their investigations to protect Trump's young administration. READ MORE: Jeff Sessions 'did not reveal Russia envoy meetings' Two weeks ago, Trump's newly appointed national security advisor Michael Flynn was forced to resign amid controversy over his discussions with Kislyak in late December, when the Obama administration was hitting Moscow with retaliatory sanctions and expulsions for its election interference. On Thursday, The New York Times reported that Flynn had also met the diplomat in Trump Tower in December, with Trump's son-in-law and senior advisor Jared Kushner also in attendance. While meetings between political campaigns and diplomats are generally common, on Thursday a Clinton spokesman said there were no meetings or calls between her team and any Russian official during the campaign. Sessions's own meetings with the envoy took place much earlier, in July and September, just as accusations of Russian interference in the election were mounting, according to The Washington Post. However, Sessions told his confirmation hearing in January-he ""did not have communications with the Russians"" and did not know of any by other campaign staff. Sessions on Thursday clarified his denial referred to contacts made on behalf of the campaign. He said he met Kislyak in his capacity as a senator, and discussed mainly global politics with him. Nevertheless, after reviewing ethics rules for his office, he said: ""I have decided to recuse myself from any existing or future investigations of any matters related in any way to the campaigns for president of the United States."" Speaking to Fox News Wednesday evening, he reiterated that he did not discuss the campaign with Kislyak. ""When I campaigned for Trump, I was not involved with anything like that,"" he said. ""You can be sure."" Despite the swirling controversy, few hard facts are publicly available on what US investigators know and suspect about the contacts and about Russia's alleged operation to disrupt the election last year. The New York Times reported two weeks ago, citing US intelligence sources, that three Trump campaign staff had communicated with Russian intelligence officers over the past year. The White House labeled that report ""false"" and has accused Democrats, the media and the intelligence community of a political effort to undermine the Trump administration. Trump's White House has lobbied the FBI, reportedly the CIA and two Republicans who head committees leading investigations into Russia's election meddling, to knock down media reports on the alleged links. That added to Democrats' worries that investigations could be tainted, and lawmakers were pressing for an independent counsel to be named to study the web of allegations about Trump and Russia free from political interference. Source:-Al Jazeera and news agencies", -1944,2017/3/3,http://www.aljazeera.com/news/2017/03/al-shabab-military-sets-sights-somalia-170303120020395.html,US military sets sights on al-Shabab in Somalia,"Trump administration plans to pursue wider military involvement, including special forces operations, as ISIL expands. Death from above","With frequent suicide bombings and assaults on Somalia's hotels and military targets, the armed group al-Shabab continues to threaten stability in the war-ravaged country. The emergence of fighters pledging allegiance to the Islamic State of Iraq and the Levant (ISIL) group can only make things worse. After vowing to target ""radical Islamic terrorism"", US President Donald Trump's administration plans to pursue wider military involvement in Somalia as current strategies, including drone attacks, are not enough, security experts say. Defeating al-Shabab and dismembering Somalia Recommendations by the Pentagon sent to the White House would allow US special forces to increase assistance to the Somali National Army and give the US military greater flexibility to launch more preemptive air strikes. ""The concern in Washington has been mounting for some time now. The Trump administration is simply reiterating what has been policy, with slight variations,"" said Rashid Abdi, a Horn of Africa analyst with the International Crisis Group. ""US special forces are already on the ground. Drone attacks have been scaled up."" Currently about 50 US commandos rotate in and out of Somalia to advise and assist local troops. The commandos have accompanied Somali forces in several raids against al-Shabab fighters, killing dozens, Somali intelligence officials told The Associated Press, insisting on anonymity because they were not authorised to speak to the press. Somalia, which has been without an effective central government since the fall of dictator Siad Barre in 1991, was one of the seven predominantly Muslim countries included in Trump's recent travel ban. That executive order has since been suspended by federal courts. Al-Shabab emerged amid Somalia's years of chaos. A regional military effort several years ago pushed the group from the capital, Mogadishu, and most other urban centres. But experts say that push against al-Shabab then weakened, allowing it to regroup and adapt to operating in the country's vast rural areas. It recently stepped up attacks in the capital and elsewhere. The US already has military bases in Somalia, although it has not publicly acknowledged them. They are often used for drone attacks against al-Shabab targets. One of the largest bases is at Baledogle airfield, a former Somali air force base in Lower Shabelle region where US military experts also train Somali forces, according to Somali officials. In the past year the US launched 14 air strikes - nearly all drone strikes - killing some top al-Shabab leaders, including Hassan Ali Dhore and Abdullahi Haji Daud, according to a Somali intelligence official who coordinated with the US on some of them. The main successes against al-Shabab have come from the 22,000-strong African Union regional force that has operated in Somalia since 2007. But the AU force plans to withdraw by the end of 2020, and cost is a primary reason. The annual mission's budget has risen from $300m in 2009 to $900m in 2016, said Ahmed Soliman, an analyst with Chatham House, the London-based think-tank. Al-Shabab in recent weeks has increased bombings in Mogadishu, threatening the security efforts of new Somali-American President Mohamed Abdullahi Mohamed, during whose time as prime minister in 2010-2011 the group was expelled from the capital. The group continues to dominate remote towns and villages across the south and central parts of the country. But a new security threat in Somalia - and a challenge to any US military efforts - is the emergence of ISIL-linked fighters, who officials fear could expand their foothold beyond the semi-autonomous north. The fighters broke away from al-Shabab and declared allegiance to ISIL in 2015. Al-Shabab sees the splinter group as a threat to its operations. ""It's only al-Shabab that can stand in ISIS' way to expand its areas of operation - Somali forces are now too disorganised to stop them,"" said Ahmed Mohamoud, a retired former Somali military general. Source:-AP news agency", -1945,2017/3/3,http://www.aljazeera.com/indepth/opinion/2017/03/liberal-roots-islamophobia-170302152226572.html,,,"The disease of Islamophobia, the irrational and categorical hatred of Muslims and their religion - just as its corresponding malaise of anti-Semitism against Jews, racism against African-Americans, misogyny against women, or homophobia against the LGBQT - will need a sustained course of critical thinking and persistent examination before we understand its pathological origins and globally expose and discredit its chief ideologues. Today in the United States the rising attacks by white supremacists against Jewish, Muslim, and African-American people, institutions and icons have all come together under one propaganda outlet code named ""alt-right"", whose chief ideologue Stephen Bannon (the Abu Bakr al-Baghdadi of the ""alt-right"") is now sitting right next to the president of the US in the Oval Office as his top consigliere. What is the nature of this disease, and where does it come from? We already have a number of excellent studies on the matter, among them I might mention Peter Gottschalk and Gabriel Greenberg's Islamophobia: Making Muslims the Enemy; Deepa Kumar's Islamophobia and the Politics of Empire; Nathan Lean's The Islamophobia Industry: How the Right Manufactures Fear of Muslims; and Carl Ernst (Ed), Islamophobia in America: The Anatomy of Intolerance; and to which we must add Terry Eagleton's exquisite dismantling of the New Atheists, Reason, Faith, and Revolution: Reflections on the God Debate. These studies have all been necessary and groundbreaking but nowhere near sufficient. The disease of Islamophobia - like any other kind of phobia - has varied symptoms and requires continued critical diagnosis. Today the world attention is rightly drawn to top Islamophobes like Stephen Bannon and Sebastian Gorka or the conspiracy theorist Frank Gaffney and their ilk, all and more congregating around Donald Trump in the Oval Office. Hidden from sight under their disguise is a far more pernicious version of the illness in the far more popular liberal circles best represented by the mass-media manufactured court jesters like Bill Maher and his sidekick Sam Harris. If you were to ask me who is the single most pestiferous American Islamophobe alive today I will not say Bannon, Michael Flynn, Stephan Miller, or even Gorka, all of them now chief among the career opportunist zealot Crusaders cheering Trump on. I would say, without a moment of hesitation, Maher and Harris, and before he passed away that careerist Christopher Hitchens, are far more dangerous Stormtrooper lieutenants of Islamophobia. These liberal Islamophobes are finagling their hatred of Muslims with smiling faces, silly jokes, phony arguments, forced laughter and manufactured consent - with the full cooperation of otherwise perfectly respectable outlets. Masses of millions of Americans are out demonstrating against those notorious racists gathered around Trump. Maher and Harris are snake oil charmers selling their hate on prime time television. OPINION: Why can't Muslims talk about the Muslim ban on US TV? These liberal Islamophobes, proverbially the enemy of that which they do not understand, pontificate their pathological fear of Islam and Muslims with fake authority and false familiarity. Sitting next to Maher, Harris issues an Executive Order that Islam ""must be reformed"". But by what authority, what education, what knowledge, what scholarship and who gave him that authority? Between the two of them Maher and Harris cannot tell a word of Arabic from Persian, Turkish, or Urdu if it hit them in the face, and yet, they sit there and like two Taliban bandits sharp shooting through camera lenses to the periodic laughter of approval by their popped up audiences. Today there are two complementary threats to that necessary internal reform definitive to Muslim intellectual history since its fateful encounter with European colonialism: Baghdadi and his gang of cutthroat criminals on one side and Maher and his fraternity club of liberal and right-wing Islamophobes on the other. - Think of it: Among the entire gang of liberal and conservative Islamophobes, they cannot tell an Arabic from a Persian word. They are the functional equivalent of ignorant sheikhs and their Shia counterparts across the Middle East who come and issue fatwas about the ""West"" without a word of English or any other European language to their names. And right there is the predicament of our time caught in between two gangs of ignoramus xenophobes, pitting one battalion of armed ignorance against another. They dare to talk about the ""battle of ideas"" without a single citation of any living or dead Muslim theologian, philosopher, mystic, poet, artist, or public intellectual evident in their vertiginously vacuous prose. The monumentality of their ignorance is only sanctioned by their self-entitled white privileges. They are white they can say whatever they want. At the height of the Enlightenment modernity, Europe ended up in German concentration camps. At the height of American democracy, they are ruled by Trump. And they dare to talk about ""battle of ideas!"" What ideas? The history of their own country began with the genocidal destruction of Native Americans, continued with the despicable history of African slavery, and at the heights of their technological achievements with dropping an atom bomb on Japan. Battle of what ideas against what ideas? Such highfalutin nonsense about ""battle of ideas"", however, is a subterfuge for a much simpler banality of ignorance. It is no longer a matter of accusing Maher of being the bigot that he is, for his open espousing of wanton racism is now a matter of public knowledge after his recent bromance with the notorious neo-Fascist poster boy Milo Yiannopoulos. None of this is to say Muslims en masse are God's gift to humanity. Islamophilia is as deranged as Islamophobia. There are an estimated 1.5 billion Muslims around the globe. They have their share of criminal thugs, homicidal sociopaths, psychotic gangs, etc. But to address such pathologies you will need a minimum of sympathy for the common humanity of millions of other Muslims who have nothing to do with these criminals. OPINION: Go ahead, blame Islam Today there are two complementary threats to that necessary internal reform definitive to Muslim intellectual history since its fateful encounter with European colonialism: Baghdadi and his gang of cutthroat criminals on one side and Maher and his fraternity club of liberal and right-wing Islamophobes on the other. This historic rise of Islamophobia will have a transformative impact on Muslims and the current turn in their critical thinking. The most serious among Muslim intellectuals are today undergoing the pains of moral and imaginative rebirth. Their enemies like Maher and Bannon are the enemies of humanity, for Islamophobia is a thin subterfuge for a much more malignant xenophobia, fear of anyone and anything that does not look or sound like them. We Muslims are privileged, perhaps we are even destined, to fight for our civil liberties in renewed universal terms - not just for ourselves but for all the other subaltern components of humanity fighting against white supremacy in the US and Europe. We will emerge from this fight having morally universalised our political particulars. We will face Maher and Bannon face to face, eyeball to eyeball, with our learned humanity against their illiterate barbarity. Hamid Dabashi is Hagop Kevorkian Professor of Iranian Studies and Comparative Literature at Columbia University in New York. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1946,2017/3/3,http://www.aljazeera.com/news/2017/03/palmyra-russia-backed-syria-army-retakes-ancient-city-170303050427702.html,Palmyra: Russia-backed Syria army retakes ancient city,Joint operation involving Russian air power and Shia militia forces ISIL to retreat again from historic city.,"The Syrian army said it has recaptured the ancient city of Palmyra from ISIL for the second time in a year with help from allied forces and Russian warplanes. The Islamic State of Iraq and the Levant group seized Palmyra in a surprise advance in December after having been driven out eight months before. ""With backing from the Syrian and Russian air forces, units of our armed forces recaptured the city of Palmyra, in cooperation with the allies,"" the military said in a statement. Jaafari: Opposition holding Geneva talks 'hostage'- The army and Iranian-backed militia advanced inside Palmyra on Thursday as ISIL withdrew completely, the Syrian Observatory for Human Rights, a Britain-based war monitor, said. ISIL retreated to areas in the east, the Syrian Observatory reported. Government forces took control of swathes of Palmyra and conducted combing operations to clear land mines, it said. During ISIL's first occupation, which ended in March last year, the armed group destroyed some of Palmyra's priceless archaeological heritage. It is believed to have razed other parts of the historical ruins after regaining control in December. The Syrian army is also fighting ISIL east of Aleppo city, where it is pushing to reach the Euphrates River, and in the city of Deir al-Zor, where it controls an enclave besieged by fighters. ISIL is on the back foot in Syria after losing territory in the north to an alliance of US-backed Kurdish-led militias, and to Turkey-backed Syrian rebel groups. Government and opposition delegations are attending UN-sponsored peace talks in Geneva, where the government's chief negotiator hailed Syrian President Bashar al-Assad for keeping his promise to retake Palmyra. The Syrian opposition, however, declined to congratulate Assad on capturing Palmyra and suggested the city changing hands again was possible. ISIL pulls back from Palmyra Before the civil war gripped Syria in 2011, Palmyra was a top tourist attraction, drawing tens of thousands of visitors each year. Syrian state television broadcast footage showing troops near the town's archaeological site, a UNESCO World Heritage Site, and the historic citadel on Friday. Archeologists have decried what they say is extensive damage to Palmyra's treasured ruins. Drone footage released by Russia's Defence Ministry last month showed new damage ISIL had inflicted to the facade of Palmyra's Roman-era theatre and the adjoining Tetrapylon - a set of four monuments with four columns each at the centre of the colonnaded road leading to the theatre. ISIL has destroyed scores of ancient sites across its self-styled caliphate in Syria and Iraq, viewing them as monuments to idolatry. Maamoun Abdu-Karim, the head of the Antiquities and Museums Department in Syria, told The Associated Press on Thursday this time around the damage to the ruins seemed less in magnitude. ""We had expected the worst. However, the damage, according to the available photos, appears limited,"" he said. But ISIL is not the only side in Syria's civil war, now in its sixth year, that has damaged Palmyra. A 2014 report by a UN research agency disclosed satellite evidence of looting while the ruins were under Syrian military control. Opposition fighters have also admitted looting the antiquities for funds. Source:-News agencies", -1947,2017/3/3,http://www.aljazeera.com/indepth/opinion/2017/03/jeff-sessions-remind-americans-170303105925213.html,,,"Americans have puzzling and often contradictory-beliefs about the US legal system. While most Americans trust their courts, lawyers rank just above used car salesmen in public disdain; lawyers are even less admired than journalists, who aren't admired at all. Nurses, doctors, pharmacists and engineers, for some reason, top the list of the United States' most trusted professions, while the least trusted are members of Congress. That is, the government of laws that Americans admire are written by those who Americans don't. A further befuddling corollary to this is that while the vast majority of Americans reserve their greatest mistrust for members of the US Congress - fully 59 percent have a ""low"" or ""very low"" opinion of them, according to a recent poll - they find it intolerable when someone lies to them. Take the case of Elliott Abrams. An experienced US diplomat and Washington insider, Abrams was, until recently, in the running for the No 2 job at Rex Tillerson's State Department. Articulate, hardworking and experienced, Abrams got caught up in the Iran-contra scandal of the 1980s, and lied about his role in it. He pleaded guilty to two counts of ""withholding information from the Congress"", and while he was later pardoned - by George HW Bush - his name cannot now appear in print without being followed by a two word descriptive: ""convicted liar"". Of course, Abrams admission of ""withholding information"" isn't what nixed his nomination to the State Department's No 2 spot, it was President Donald Trump's discovery that Abrams had criticised him during the campaign, a far greater sin, presumably, than public mendacity. That said, if it wasn't axiomatic before, it is now: the American people don't respect the Congress, but you better not lie to them. That's the problem now being faced by Jeff Sessions, the former federal judge and US Senator who Trump appointed as his attorney general - the nation's chief law enforcement officer. At issue is testimony Sessions gave back in January, during his confirmation hearings, before the Senate Judiciary Committee - which is stocked with lawyers. When asked by them whether he'd had any contact with Russian officials when Trump was running for president, he said he hadn't. His denial was authoritative: ""I did not have communications with the Russians,"" he said. In fact, he did. According to published reports, Sessions met the Russian ambassador to the US Sergey Kislyak just as Trump was accepting the nomination of his party during their convention in Cleveland. Additionally, according to the Washington Post, Sessions met Kislyak in his Senate office at the end of September, as Trump was campaigning for the presidency. READ MORE: Jeff Sessions recuses himself from Russia probe While it is not known what Sessions and Kislyak talked about, the report stunned the Congress - not least because of allegations that the Vladimir Putin government was engaged in a covert programme to influence the outcome of the US election in favour of Trump. Put simply, Sessions has an Abrams problem: the issue is not that he talked to a Russian official - that's not against the law, at least not yet - but that he lied about it. The former claim can put a chink in your political credibility, the latter claim can land you in jail. Sessions attempted to dampen the firestorm that greeted these reports by saying that, while he had met Kislyak, their meetings had nothing to do with the Trump campaign. ""I never met with any Russian officials to discuss issues of the campaign,"" Sessions announced in a statement. ""I have no idea what this allegation is about. It is false."" The newly minted president can either tell everything about his - and his aides - contacts with Russian officials or he can order his administration to continue the delicate and dangerous dance of shaving the truth. - In effect, however, the Sessions statement highlighted his Abrams' problem: he hadn't exactly lied, he claimed, but there wasn't much doubt that he had withheld information - which is what got Abrams disbarred and is, though arguably, a violation of the law that he was confirmed to enforce. Then too, the Sessions statement begged any number of embarrassing questions, such as: if President Trump's former national security adviser, Michael Flynn, was forced out-of his job for lying about the same thing to the vice president, why wasn't Trump insisting that Sessions resign for lying about it to the Congress? Predictably, Democratic Party opponents of Trump called for an investigation to determine whether Sessions had lied, while Trump's Republican supporters - there are fewer of them every day - immediately called on Sessions-to ""recuse"" himself in any investigation of the burgeoning scandal. Sessions has since done so, in an announcement made by the Justice Department as this article went to press. In this case, at least, the past provides a useful model. The history of US political scandals shows that, while the American public is notoriously forgiving of political double-dealing - and have even, in some sense, come to expect it - they are intolerant of those who attempt to cover it up. This was true even in the midst of the nation's gravest political scandal, when a team of Nixon administration operatives broke into the headquarters of the Democratic Party at the Watergate, a complex of offices and residences, back in 1972. If Nixon had admitted that the White House had ordered the break in, and it was a terrible mistake, the subsequent investigation that unravelled his presidency might have gone no further. Instead, Nixon ordered that information about the break-in to be suppressed, which led to further investigations, which led to further cover-ups and more investigations, a major constitutional crisis - and Nixon's humiliating resignation from office. While it's hard to imagine now, it could have been otherwise. So too, in the 1980s, after the Ronald Reagan administration used the proceeds of arms shipments to Iran to fund the anti-communist Nicaraguan ""contras"" - in violation of the law - the White House took steps to protect administration officials from prosecution, including destroying public documents about the operation and lying about it to the Congress, a felony. READ MORE - Donald Trump: 'Total witch hunt' over attorney general The resulting public hearings gravely wounded the Reagan presidency, eroded Reagan's credibility and led to the indictment of nearly a dozen administration officials. It didn't need to happen: if Reagan, who was enormously popular, had gone before the American people and admitted to a mistake, the scandal would have been relegated to the status of an embarrassing political error - but little more. At a key point in both cases, those in the White House made a choice between telling the truth, or covering up the facts in the hope that the scandal would burn itself out. OPINION: All politicians lie but it's better if not mentioned That's where the US is now. The Jeff Sessions lie to the Senate about his meetings with Russian officials has brought the Trump administration to a crossroads: the newly minted president can either tell everything about his, and his aides, contacts with Russian officials, or he can order his administration to continue the delicate and dangerous dance of shaving the truth. The difference between the two, particularly for those skeptics who believe the reporting about Russia's influence on the election is thin, and politically motivated, might well be the difference between a tempest in a teapot - and a political volcano. Mark Perry is a Washington, DC-based foreign policy analyst, reporter and the author of nine books on US political and military history. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1948,2017/3/3,http://www.aljazeera.com/indepth/inpictures/2017/03/week-pictures-famine-fighting-170303100303595.html,Week in Pictures: From Dakota pipeline to Somalia blast,,, -1949,2017/3/3,http://www.aljazeera.com/indepth/opinion/2017/03/australia-encourages-israel-occupation-palestine-170303051029299.html,,,"There is something troubling about the recent five-day trip to Australia by Israel's Prime Minister Benjamin Netanyahu, something beyond the charade of pomp, bravado and contrived pleasantries. The trip itself was heralded as historic, firstly because it was the first visit of a prime minister of Israel to Australia. The agenda was primarily related to trade negotiations, and more significant issues relating to Israel's occupation were left off the official agenda. What is troubling is the Australian government's apparent willingness to collaborate with Netanyahu's plans, including - just as the United States President Donald Trump appeared to have done - engaging in Netanyahu's fantasy version of a ""Palestinian state"", which in essence is a form of limited occupation with de facto apartheid conditions, or ""occupation lite"". The troubling part is that the Australian position, which has shifted to the right since 2013, is flirting more intensely with this fantasy and, at the same time, encourages Israel's breaches of international law. It makes no sense why Australia is in step with successive Israeli governments. Polling trends among the Australian public show a more responsible attitude to the Palestinian-Israeli issue than that adopted by Australian Labor and Liberal governments. Under a Labor government with Julia Gillard as prime minister in 2012, Australia refused to recognise a Palestinian state and this has been the position of the current Liberal government. The Labor opposition is still grappling with whether to adopt acceptance of statehood as a policy, and on the eve of Netanyahu's visit, former Labor prime ministers, Bob Hawke and Kevin Rudd, and former Labor foreign minister Bob Carr have been actively calling for Australia (and the Labor Party) to recognise Palestine, and have sharply criticised Israel's continued settlement expansion policy which they recognise is a violation of international law. The Australian government's flirtation with Israeli demands has extended to a selective and dangerous approach to international law. Why is this the case? It can be described as an ideological attitude that permeates across other domestic policies. In June 2014, Australia found itself in the middle of a serious diplomatic crisis when Attorney General George Brandis, who despite being the first law officer in the country, with no expertise or knowledge in international law, refused to accept East Jerusalem as occupied. Australian Foreign Minister Julie Bishop agreed with Brandis saying the term was not helpful. Both Bishop and Brandis tried to defuse the policy shift as many Arab and Muslim majority countries threatened sanctions against long-standing trade links. Netanyahu at the time welcomed the change. The Australian government and foreign minister are openly championing a warped view of the settlement enterprise - advanced only by the extreme fringe of Israel's supporters worldwide - that encourages disrespect for international law which Australia is duty-bound to respect, observe and ensure respect for globally. - Then there is Bishop's more recent affront to international legal fact. In a-video posted-on Twitter, journalist Latika Bourke asks Bishop if she believes that Israeli settlements are illegal. Bishop responds: ""That's a matter for the final determination of the negotiations between the Palestinians and the Israelis. The point that I've always made is that you can't have a unilateral imposition of a state, it has to be negotiated between the Israelis and the Palestinians."" This mirrored her first foray into this unusually Israeli position in January 2014 when she was interviewed in Israel, and said: ""I would like to see which international law has declared them illegal."" Of course Bishop is well aware of the law and the international legal position and she would be advised to look further given Australia is a party to the Geneva Conventions. The Rome Statute of the International Criminal Court (ICC) recognises grave breaches of the Geneva Conventions as amounting to war crimes offences. To add to that, Australia has codified the Rome Statute offences into its criminal code. So such offences are also offences against the Australian Commonwealth. That the Australian government and foreign minister are openly championing a warped view of the settlement enterprise - advanced only by the extreme fringe of Israel's supporters worldwide - that encourages disrespect for international law which Australia is duty-bound to respect, observe and ensure respect for globally. Netanyahu met with Bishop on the last day of his visit and expressed concerns about the prospect of prosecution in the ICC and sought Australia's support in preventing investigations and an eventual-prosecution-for war crimes and crimes against humanity. Israel's settlement enterprise is likely to be one of the issues that the ICC will focus on when, and if, a decision is made to open a formal investigation. Israel's-Channel 2-and the-Jerusalem Post-reported-that Bishop apparently assured Netanyahu that Australia will be an ""important player"", and committed to defending Israel in ""hostile"" international forums as it has done previously. Bishop's assurance to Netanyahu runs contrary to the international community's obligation to end impunity. The timing is important. Australia has just launched its bid in Geneva to claim a seat on the UN Human Rights Council. Australia's own record and violation of international law and human rights is evident. The policy of indefinitely detaining some of the most vulnerable people, those people seeking asylum, in ""offshore detention centres"" on tiny remote islands in the Pacific, has been the subject of sharp criticism and condemnation. And, more recently, the conditions on Manus Island and in Nauru detention centres, have been alleged to amount to-crimes against humanity in a recent communication lodged with the ICC by leading international academics and practitioners. Australia's xenophobic border protection policies have been viewed positively by the right-wing in Europe and President Trump. OPINION - Australia: Occupied East Jerusalem a matter of grammar Australia's inconsistent approach to international law and human rights doesn't stop there, it has rejected-calls for accountability for allegations of war crimes in Sri Lanka, and instead chosen to partner with the Sri Lankan government to enact its boat ""turn back"" policy . It is also silent on the oppression of the people of West Papua, and closer to home,-has failed time and again, its indigenous people. Australia needs to chart a foreign policy which is guided by respect for international law. It should also adopt a policy independent of Israeli demands with a view to recognising the human rights of the Palestinian people and their right to seek justice and accountability. Rawan Arraf is a Palestinian-Australian human rights lawyer practising in the area of refugee protection. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -1950,2017/3/3,http://www.aljazeera.com/programmes/101east/2017/03/india-dalit-revolution-170303090712700.html,India's Dalit Revolution,We go inside the Dalit protest movement threatening to end centuries of repression and shake India's social structure.,"For millennia, Hindu's lowest caste, the Dalits, have been trapped in a social system that forces them to do the lowest, dirtiest jobs. Now, in Gujarat, the home state of Indian Prime Minister Narendra Modi, the biggest Dalit movement in over 50 years is rising. Its aim is to go nationwide, with an unprecedented call for 166 million Dalits across India to seek change and throw off the chains of religious and social repression. With unfettered access to this growing protest movement, 101 East investigates the Dalits' struggle and the restrictions imposed upon them by caste, law and government. Join the conversation-@AJ101East Source:-Al Jazeera News", -1951,2017/3/3,http://www.aljazeera.com/news/2017/03/national-disaster-declared-floods-kill-246-170303064346564.html,"Zimbabwe floods killed 246, made thousands homeless",Officials declare national disaster and appeal to international donors for $100m to help thousands affected by floods.,"Floods in Zimbabwe have killed 246 people and left nearly 2,000 homeless since December, government officials said. Saviour Kasukuwere, minister of local government, declared a national disaster and announced the death toll on Thursday, saying 128 people have been injured in the floods. The southern African country has appealed to international donors for $100m to help those affected by the floods, which have washed away several bridges and roads and cut off some communities from surrounding areas. ""There is an inadequate supply of tents, foodstuffs and drugs for the affected people,"" Kasukuwere told The Herald newspaper.-""There is a need for blankets and clothing for the affected families and they are at risk of contracting pneumonia and acute respiratory infections."" Unable to get balance of payment support from foreign lenders due to unpaid arrears, and with more than 90 percent of its national budget going to salaries, Zimbabwe's public infrastructure has been crumbling for more than a decade. ""After working hard responding to the effects of drought, the same people are now suffering because of excessive floods,"" Bishow Parajuli, of the United Nations Development Programme (UNDP), told The Herald. Transport Minister Joram Gumbo told reporters on Wednesday that in the southern parts of the country, some sections of highways and bridges were compeletly washed away following the latest heavy rainfall. Gumbo said the government would raise $100m to repair the country's infrastructure. The national road agency would chip in with half of the money, which it would borrow from local banks, he said. ""The state of our roads has further deteriorated to the extent that some sections of the national road network have become impassable,"" Gumbo said. READ MORE: Zimbabwe nurses join doctors' strike over unpaid bonuses Meanwhile, health services in Zimbabwe are grinding to a halt after nurses joined a strike by doctors over unpaid bonuses. Army medical professionals have been called in, but are struggling to deal with the number of patients. While healthcare workers are out on the streets and the country is facing a national emergency as a result of the deadly floods, Zimbabwe's president, Robert Mugabe, is in Singapore for medical treatment. Critics blame the perennial shortages on Mugabe's controversial land reforms which saw the seizure of white-owned farms for redistribution to landless blacks, most of whom lacked the means to farm. Mugabe, 93, has blamed the poor yields on erratic rains due to climate change. Source:-Al Jazeera and news agencies", -1952,2017/3/3,http://www.aljazeera.com/news/2017/03/port-project-threatens-indigenous-community-malaysia-170303070150537.html,Port project threatens indigenous community in Malaysia,"Concerns rise over government plans to build a 10,000-hectare port and industrial zone on traditional Mah Meri land. 'Cultural survival' Rapid development 'Not from our time'","Carey Island, Malaysia - In a wooden hut, elevated above the swampy ground, a shaman from Malaysia's indigenous Mah Meri people sits cross legged in front of an altar laden with offerings of food and drink, and decorated with palm fronds folded and twisted into birds and flowers. As each visitor climbs the steps into the chamber and falls to their knees, the shaman dabs first their forehead and then their hands with white chalk. It is a blessing; a cleansing for the year ahead. Every Ancestors Day, or Hari Moyang, the Mah Meri who have lived on Carey Island on Malaysia's west coast for generations honour the spirits of their ancestors and the island they call home in a series of ceremonies that last for a month. But this year's celebration took place amid rising concern about government plans to build a 10,000-hectare port and industrial zone on the island to expand Port Klang, which lies just north of Carey Island and is the world's 12th busiest cargo hub. If the plans proceed, the indigenous people will be squeezed into an ever smaller area of the low-lying island, which is just an hour's drive from Kuala Lumpur. ""This is the land of the Mah Meri,"" says Kemi bin Khamis, 42, who carves the spirit statues from local hardwood. ""This is our island. I don't want to to move."" The Mah Meri are one of 18 ethnic groups who make up the Orang Asli; descendants of the original inhabitants of the Malay peninsular who are now thought to number about 179,000. Ancestral land is crucial to the Orang Asli's way of life and the landscape central to their largely animist beliefs, but as Malaysia's economy has expanded, and demand for land has grown, the indigenous people have lost vast swaths of their territory to plantations, logging and industrial projects. ""The centrality of indigenous peoples' customary lands is vital for their development and cultural survival,"" Malaysia's human rights commission, known as Suhakam, wrote in its recommendations to the government following a national enquiry into indigenous peoples' land rights in 2013, urging official recognition of Orang Asli customary lands. The government has yet to implement Suhakam's recommendations, but the pressure on Orang Asli continues to grow. According to Minority Rights Group International, less than one-fifth of the indigenous tribes' native land has been set aside as Orang Asli areas or reserves. On Carey Island, only two of the five villages have been recognised, and they are now thought to be the ones most at risk from the port development. ""It's not that fair,"" Kemi says softly of the official approach to Orang Asli land. ""If they want to take, they will take. There's no land title or grant."" The federal government agency overseeing Orang Asli affairs told Al Jazeera on Friday it was unaware of any plans to move the Mah Meri community. It added because land issues fall under state government jurisdiction, authorities there would have to pay compensation and provide a suitable area for relocation.- The Mah Meri aren't the only Orang Asli struggling to hold onto what is theirs. In the northeastern state of Kelantan, the forest-dwelling Temiar are fighting loggers backed by the state government in a reserve that is part of their ancestral land, setting up blockades and risking arrest to defend their territory. ""The view is why should we give the land to the Orang Asli when it's valuable land,"" says Colin Nicholas, coordinator of the Center for Orang Asli Concerns, an NGO that works on behalf of the indigenous people. ""If you have the chance, why not grab it?"" The Orang Asli have responded with legal action, increasingly determined to assert their rights and defend their way of life. This week, a group of 188 indigenous people in Malaysia's south won a five-year court battle over customary land taken for the Iskandar development, a project three times the size of Singapore. ""There have been some very strong judgements saying Orang Asli do have native rights to the land, even if you've gazetted it as a forest reserve, a Malay reserve or even given it away to someone else,"" Nicholas explained. ""But it's not being recognised by those who make the decisions."" It was in the early 20th century, when Malaysia was ruled by the British, that rubber was first planted on Carey Island, but the country's rapid post-independence development has greatly increased the pressure on the Mah Meri. Kemi, who has five children, remembers the time when the sea and the rivers were clearer, the fish easier to catch and the crab plentiful, but agriculture and industrialisation have brought pollution, and rubbish dots the island's beaches. Communities have to travel ever further for a decent catch, he says. The plantations are now owned by Sime Darby, one of the world's largest producers of palm oil (the Mah Meri grow some oil palm plants to supplement their income), and a golf resort opened a few years ago close to Kampung Sungai Bumbun. The 810-hectare site, part of which was once indigenous community land, is now being developed into a housing estate for stressed-out city dwellers. The affected families agreed to just 2,000 ringgit ($450) each in compensation. The developer, meanwhile, is looking forward to a ""higher than typical"" profit margin for the luxury villas it aims to build. Plans for the port remain sketchy-and the indigenous villages may yet be able to work with the state government. The port itself is a project of the federal government led by a rival political coalition, and elections are due by the middle of next year. The project's proponents will also need to convince Sime Darby to give up its plantations. In front of the shaman's hut, the dances are coming to an end. The men and women stand patiently in their costumes - made from the bark of native trees - as the scores of foreign tourists who've come to watch the celebrations take photos. ""Their environment, their surroundings, this is their life,"" says Rashid Esa, who manages the Mah Meri Cultural Village on the island, which is supported by the Tourism Ministry. ""[Mah Meri] are a unique people. They are not from our time, really."" Next to a bamboo table laden with chocolate drinks, fruit juices, and food for the spirits, 15-year-old Sazrin anak Gali removes his mask, which has been smudged white by the shaman, and runs his hand through his hair. The schoolboy comes from a family steeped in Mah Meri culture and has been learning traditional dance since he was seven. Sazrin has no doubts about what will happen if the port project goes ahead. ""I will resist,"" he says, cradling the mask, with its riot of woven hair in the crook of his arm. ""This is the land where I was born. Everyone will protest."" Source:-Al Jazeera", -1953,2017/3/3,http://www.aljazeera.com/indepth/inpictures/2017/02/yemen-war-die-170228103727624.html,,,"Not long after sunrise, mango juice cartons and small boxes of cookies are passed around to the children on the fishing boat, as tired eyes scan the mountainous coast of southern Yemen. The motor drowns out any talk, as dolphins - believed to be a good omen - appear alongside, as if they are showing the way. After the 16-hour sea journey from Djibouti, the boat docks in the Port of Aden, where passengers are greeted by armed men and stale, humid air. Yemen is a country at war, with numerous groups, including the Houthi rebels, al-Qaeda and the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) wrestling for power. An Arab coalition backing Yemen's government has been conducting air strikes in the country for nearly two years, aiming to regain control. But as the devastated country grapples with a massive humanitarian crisis, many Yemenis have become suspicious of one another. The country's economic, urban and societal fabrics have been ravaged. ""I am scared of what is going to happen [amid the] fuel crisis, food crisis, gas crisis, cash crisis ... I never feel safe,""-university student Nisma Mansoor, 22, told Al Jazeera. Some displaced Yemeni families are slowly returning to the country, but their boats are dwarfed by those departing. Many other Yemenis are desperate to leave, but have nowhere to go. ""War was a lesson for us all that nothing remains the same,"" resident-Taha Raed told Al Jazeera,-""and no one knows when he is going to die.""", -1954,2017/3/3,http://www.aljazeera.com/indepth/features/2017/02/rejected-israel-eritreans-find-shelter-germany-170221071249657.html,"Rejected by Israel, Eritreans find shelter in Germany Yermi Brenner","About 30,000 Eritreans live in Israel, where a dangerous voluntary resettlement plan is being criticised. By Secret agreements Captured by ISIL","Berlin, Germany --The most crucial decision for a person forced to flee their homeland is where to seek asylum. That is the hard lesson learned by Yemane Mesgen on his harrowing journey as a refugee. Mesgen was born and raised in Eritrea, where the government has committed crimes-against humanity, including indefinite military or police service, according to the United Nations. In 2008, after he was recruited to be a policeman, Mesgen decided to flee his homeland. He considered going to Europe, but was afraid of the dangerous journey across Libya and the Mediterranean Sea. Instead, he chose Israel as his destination for asylum. The Israeli government ""does not like refugees"", the 28-year old Mesgen recently told Al Jazeera in the German capital. He spoke nearly fluent Hebrew, which he picked up during the seven years he lived in Israel. Mesgen-managed to safely cross Sudan through the Sinai desert - where many Eritreans have been captured and tortured - and entered Israel in 2008. Unfortunately for Mesgen, however, the Israeli government has been unwelcoming to Eritrean nationals, granting refugee status to less than one percent of arrivals. Israel does not deport Eritreans back to their dangerous homeland because that would violate the United Nations Refugee Convention. Instead, Eritreans get short-term visas that must be continuously renewed, but they have no right to work or access to welfare services. READ MORE: Meet the Eritrean refugee turned rescue volunteer Mesgen lived in this legal limbo for seven years, getting by by working illegally in restaurants and sharing a tiny Jerusalem flat with other Eritreans. Then, in 2015, Israeli authorities ordered him to reside in Holot, a detention centre for ""illegal immigrants"", which has the capacity to accommodate 3,000 people, without freedom of movement or the right to work. The only other alternatives offered to Mesgen - and other Eritreans - were to return home voluntarily or leave Israel for another African nation. ""I didn't want to go to Holot,"" Mesgen recalled. ""I told them I cannot go back to my country, but I will go back to Africa."" In July 2015, an Israeli immigration officer escorted Mesgen to Ben-Gurion international airport, handed him a one-way ticket to Rwanda with a travel document for Rwandan immigration officials, and $3,500 in cash - the reward for those who exit Israel voluntarily. The initiative was-launched by the Israeli Immigration Authority in 2013 to persuade asylum seekers to leave the country.-Mesgen is one of more than 14,000 asylum seekers, mostly from Eritrea and Sudan, who have left Israel through the voluntary departure programme over the past three years. Israel - a signee of the UN Refugee Convention - sends people who need protection to countries that do not protect them, in the process, forcing asylum seekers to go on dangerous smuggling routes, according to reports by international and Israeli NGOs and-interviews that Al Jazeera conducted with Eritreans who made it to Europe. False promises Before leaving Israel, Mesgen received a letter that the Population and Immigration Authority distributed to Eritreans in the country. The letter promised those who leave voluntarily will be granted a residence permit and the right to work in the African country where they land. But when Mesgen arrived in Rwanda, he realised those promises were empty. He said a man who introduced himself as ""John from immigration"" picked him up from a restricted area in Rwanda's international airport, took away the Israeli travel document, escorted him to a villa in the capital Kigali where other Eritreans stayed, and told him not leave the premise. After two days, John told the Eritreans he would smuggle them to Uganda in exchange for $250 a person. Mesgen's story about what happened to him in Rwanda is similar to testimonies from other Eritreans who exited Israel via the voluntary departure procedure. Research by the International Refugee Rights Initiative-- a non-profit organisation focusing primarily on Africa --found-Eritrean and Sudanese asylum seekers who left Israel voluntarily were sent to Rwanda and Uganda. Upon arrival, they were either encouraged to leave these countries, or live under the radar without legal status. In the-report Deported to the Unknown by the Hotline for Refugees and Migrants-- a Tel-Aviv based NGO - Eritreans who left Israel voluntarily testified they were denied residence permits-in Rwanda, held captive for days at a villa in Kigali,-and eventually were smuggled to Uganda. The legality of Israel's voluntary departure procedure was challenged in an Israeli court in 2014. The state declared it has secret agreements with two unidentified African countries to take in Eritreans and Sudanese who leave Israel. Revealing the identity of the two African countries and details of the agreements ""may harm Israel's foreign relations"", according to a letter that Israel's Prime Minister Benjamin Nethanyau sent to the court. Al Jazeera asked Israel's Population and Immigration Authority what it does to ensure the safety of those who voluntarily exit. Spokeswoman Sabin Hadad said in an email she could not provide details because the agreements Israel has with the two unnamed African countries are confidential. READ MORE: Eritrean refugees in Israel sent to Uganda and Rwanda For Mesgen, the journey from Rwanda to Germany was both dangerous and costly. He travelled on smuggling routes across Uganda and into South Sudan, where he was caught and imprisoned for two months. ""The South Sudan authorities told me, 'You don't have a passport so you might be a criminal.' I told them I am not a criminal - I said I was in Israel and now I came here. They said to me you don't have a passport, you don't have any Israeli document, you don't have Eritrea passport, it is dangerous for us. We cannot let you out of the prison,"" Mesgen recalled. He bribed his way out of jail and continued his treacherous journey through Sudan and Libya to the coastal city of Benghazi, where he boarded a 10-metre-long fishing boat that would take him to Italy. ""There were 600 people on board, there was no space at all, people on top of each other, very tight. There were a lot of Eritreans and Somalis and other Africans,"" he said. ""It was, of course, very scary to board this boat, but what can I do, I had no other choice."" 'Burden-shifting' While the Israeli court legitimised voluntary departure, the United Nation High Commission on Refugees has been critical of its implementation. ""We are concerned and we have raised the concerns with the government of Israel because we do have information that [refugees] are not necessarily having the necessary protection safeguards,"" UNHCR's representative in Israel, Walpurga Englbrecht, told Al Jazeera. Englbrecht said Israel should provide assurances that asylum seekers who leave for the African countries will indeed be granted adequate documentation,-residency permits, and the ability to work. UNHCR is not against voluntary departure, but Englbrecht said the procedure is problematic ""if it is not really responsibility-sharing, but more burden-shifting"". READ MORE: Calais - Eritrean refugees tell of torture and fear Israel is not the only one to implement voluntary departure-procedures - Australia and the European Union have similar systems in place. But the fact its agreements with Rwanda and Uganda are confidential raises red-flags, said Reuven Ziegler, a research associate at the Refugees Studies Centre at the University of Oxford. Ziegler said asylum seekers have a ""very precarious status, if at all"" in Rwanda and Uganda, do not have access to Refugee Status Determination, and find themselves having to continue their journey and seek protection elsewhere. That is exactly what happened to Mesgen and also to Aman, a 31-year-old Eritrean who spoke to Al Jazeera in Berlin. Aman - who today has refugee status in Germany - asked that his real name not be used because his mother and sister still live in Eritrea and he fears for their safety. No monitoring He fled his homeland in 2008 to avoid recruitment into the military. Relying on people smugglers, Aman tried to reach Israel where he thought he would be able to get protection status. On his way, however, he was abducted in Sinai - as were as many as 30,000 Eritreans---and held captive for 35 days until his family paid ransom for his release. Aman said he was tortured and beaten, and pointed to a broken front tooth as one of the consequences of that horrific experience. In Israel, he never received refugee status and had to renew his visa every fours months. He managed to find work illegally as a kitchen cleaner, and made enough money to survive - even enough to send to his mother in Eritrea. ""In Israel, I felt stress �?I had some work but not freedom,"" Aman said. ""There's no democracy in Israel."" In April 2014, after he was summoned to the Holot Detention Centre for Illegal Immigrants, he agreed to voluntarily leave the country. He said on his flight out of Israel 39 other Eritreans were with him, none ended up staying in Rwanda. Israel does not-monitor what happens to the Eritreans and Sudanese who land in Rwanda and Uganda, according to Sigal Rozen, public policy coordinator at the Hotline for Refugees and Migrants and author of the Deported to the Unknown report. ""All the 47 interviewees that we managed to locate ... were not asked to provide phone numbers or addresses to the Israeli authorities, and, of course, they had no contact with the Israeli authorities after they left,"" Rozen said. The majority of Eritreans plan to smuggle their way into Ethiopia and try to survive there, while some head on the dangerous route through Sudan and Libya for Italy, with the hope of finding refuge in Europe. ""We receive a lot of calls and emails from worried relatives around the world - and also in Israel - about people who left and disappeared,"" Rozen said. Aman said five Eritreans aboard his flight out of Israel tried to make it to Europe but were captured and killed by the Islamic State of Iraq and the Levant group in Libya. He pulled out his phone and played an online video by ISIL, known as ISIS - showing preparations for beheadings - and identified two people he knew being led to their deaths. While Aman did not fall into ISIL's hands, he faced significant-danger and-uncertainty. Similar to Mesgen's story, Aman said when he landed in Kigali he was sent to a nearby hotel and two days later was smuggled out of Rwanda to Uganda. From there, he tried to reach South Sudan, but was caught by border guards who did not let him leave until he surrendered all the money he had left from the $3,500 that Israeli authorities handed him when he left. They let him keep $50 and told him to go away. ""I didn't have clothes, I didn't have a bag, nothing,"" Aman said. WATCH: Identity of 'smuggler' extradited to Italy questioned His younger brother was in Israel at the time, but now also lives in Germany. He sent Aman some money to Juba, capital of South Sudan. After collecting the cash, Aman travelled to Khartoum, Sudan's capital, where he met his wife who he had not seen in six years. She is an Eritrean who had been living in a refugee camp in Ethiopia. The couple made their way through Libya - where they again were captured and forced to pay ransom - and then across the Mediterranean Sea on an overcrowded smugglers' boat with hundreds of other people from various countries. No data is available on how many asylum seekers who left Israel voluntarily made it to Europe. However, it is well documented that more than 10,000 people died in the Mediterranean Sea over the past three years trying to reach its shores. Since 2008, about 123,000 Eritreans have-applied for asylum in the European Union, mostly in Germany and Sweden. The lucky ones Aman and his wife arrived in Germany in October 2014. He said the journey from Rwanda to Germany cost $11,000, which was spent on official bribes and smuggler payments. Mesgen - who was aboard a smuggling boat that was lost at sea for 48 hours before being rescued by the Italian navy - managed to reach Germany in September 2015. He said he paid $10,000 for a similar trip. Both men were eager to tell their stories because they know many Eritreans still in Israel and wanted to raise awareness about the consequences of the voluntary departure programme. Aman and Mesgen emphasised how fortunate they were to survive. There are 29,367 Eritreans still in Israel, according to the-latest data-published by the Israeli Immigration and Population Authority. As of last December, there were 1,860 Eritreans and Sudanese living in the Holot Detention Centre for Illegal Immigrants, the-Israeli newspaper Haaretz reported. In Germany, Aman's and Mesgen's-asylum applications were reviewed within months, and they were granted refugee status with all its social and economic rights.-Throughout the EU,-about-93 percent-of Eritrean asylum applicants are granted some form of protection.- Aman and Mesgen-are currently full-time students at a state-funded language school, and both recently became fathers for the first time. Aman and his family live in the centre of Berlin, while Mesgen, his wife - also an Eritrean refugee - and toddler have a two-room flat on the southern outskirts of the German capital. The rent for both their apartments is covered by Germany's welfare system, and each family gets a monthly allowance of about 1,000 euros ($1,050). ""I am happy to be here,"" Mesgen said recently outside a Berlin church that serves a community of Eritrean refugees every Sunday morning. ""Here it is good, thank God. I'm lucky."" Source:-Al Jazeera News", -1955,2017/3/3,http://www.aljazeera.com/news/2017/03/rival-kurdish-groups-clash-iraq-sinjar-region-170303071119811.html,Rival Kurdish groups clash in Iraq's Sinjar region,Kurdish leader Masoud Barzani's close ties with Ankara blamed for clashes between Peshmerga and YBS fighters. 'Turkey will attack',"Clashes broke out between rival Kurdish groups in northwestern Iraq after a force loyal to one party was deployed to an area controlled by another. Friday's clashes took place in the Sinjar area near the Syrian border after forces loyal to Masoud Barzani's- Kurdistan's Regional Government (KRG) entered an area controlled by Sinjar Resistance Units (YBS) - a Yazidi armed group alleged to be loyal to the Kurdistan Workers' Party (PKK). #Shingal: First batch of pictures from #Khansor, where clashes are taking places between #PKK-affiliated YBS and Rojava-Peshmerga. pic.twitter.com/PnL18yvcZv ""This morning at seven clashes started with DShK [heavy machineguns]. Now there are martyrs and wounded on both sides,"" a Kurdish security source told Reuters news agency. Friday morning's clashes came after Barzani's official visit to Turkey. YBS forces suggested that by deploying troops to the Sinjar area, the KRG was trying to force out the group affiliated with the PKK to please Ankara. READ MORE: Syria's Civil War Explained ""These efforts [by KRG affiliated Peshmerga] that comes after Barzani's visit to Ankara is not a coincidence. It is a provocative attempt, based on an order from Ankara,"" YBS said in a statement published by the Kurdish news agency Rudaw. Barzani has close ties with Turkey and-Turkish troops are currently stationed in the-Bashiqa camp in northern Iraq with his invitation - and against Baghdad's will - training local fighters who are supposed to take part in the operation to oust the Islamic State of Iraq and the Levant group from Mosul. The PKK, on the other hand, is an armed group that has-been fighting for Kurdish autonomy within Turkey since 1984.-Turkey, the United States and the European Union designate the PKK as a ""terrorist organisation"". Yazidi groups in Sinjar, who are ethnically Kurdish, have been trained to fight against ISIL by the Kurdish People's Protection Units (YPG), an armed group which Turkey considers to be the Syrian arm of the PKK. The Obama administration denied these claims and insisted that YPG was a ""reliable American ally"" in the fight against ISIL (also known as ISIS) group in Syria and Iraq.- The new Trump administration's policy on these Kurdish groups is still emerging. In a separate development, Turkish Foreign Minister Mevlut Cavusoglu said Turkey may attack PKK affiliated Kurdish forces directly in northern Syria if they do not immediately withdraw from the town of Manbij. ""We do not wish any of our allies to stand with terrorist groups,"" Cavusoglu told reporters on Thursday. ""We stated earlier that Turkey will hit the YPG unless they withdraw from Manbij."" READ MORE: Kurds pledge to fight Turkey to retain Syria's Manbij Cavusoglu said Turkey and the US ""must not face off against each other because of Turkey's fight against other terrorist groups"", meaning groups besides ISIL, the main focus of Turkey's Operation Euphrates Shield in northern Iraq. The Turkish-led Operation Euphrates Shield in northern Syria began last August to improve security, support coalition forces, and eliminate the threats coming from ISIL and the Kurdish militia along the Turkish border. Source:-Al Jazeera and news agencies", -1956,2017/3/3,http://www.aljazeera.com/indepth/features/2017/03/life-vraem-peru-cocaine-valley-170302141426171.html,"Life in the VRAEM, Peru's 'cocaine valley' Lali Houghton","A soldier, a local radio presenter and a coca leader give their view on life in Peru's main cocaine-producing region. By","The Peruvian region VRAEM, the valley of the three rivers Apurimac, Ene and Mantaro,-has long been stigmatised by the outside world as a ""lawless"" region overrun by ""narco-terrorists"". It's a description that holds some truth: about 70 percent of Peru's cocaine is produced in the region and it is home to the last remnants of the Shining Path, a Maoist armed group that fought a war against the state between 1980 and 2000. Today an estimated 300 fighters remain in the region.- But for the more than 400,000 people living in the VRAEM, their story is predominantly one of struggling for survival, with basic needs such as education, energy, asphalted roads and clean water often unfulfilled. Here, the economic potential of coca, the plant used to make cocaine, is unrivalled and can offer some respite in the face of poverty. A soldier who grew up in the region, a local radio presenter and a leader of the coca movement give us their take on living in the VRAEM. Omar Ore, 20, Soldier ""Ask any man my age in the VRAEM, they've all worked in the drug trade at some point. Everybody here is poor. Working in cocaine production offers a way out. When I was 16, I used to ride my bike all the time and I started earning respect. This was when I started being offered work. At first I worked in a coca maceration pit, which is a clandestine cocaine lab in the jungle. I helped carry coca sacks and used chemicals to macerate the leaves and extract the coca alkaloids. Later I began taking jobs as a mule, which is far more dangerous. We would go up the mountains and walk through no-man's land until we would get to secret stash points, from where others would take care of deliver.- Out there, there are few rules. People are killed for what they carry. You can't trust anyone. I quit because I sensed that I was getting in over my head. I started drinking and getting into fights outside of discotheques. Fights like those sometimes end up with someone getting shot. Some of my contemporaries ended up dead or with bullet wounds. Others ended up in prison or somewhere up the ladder of the drug trade risking everything. Very few left the drug trade behind altogether. I chose to join the army when I was 18. I needed it to get a clear head so I could think about having a career and looking after my family. It hasn't been easy. My ID gave away where I was from. At first the officers thought I was an infiltrator from the Shining Path, [a Maoist armed group which fought a vicious internal war against the state between 1980 and 2000. They still have a small presence in the VRAEM, with an estimated 300 fighters remaining]. The intelligence service was constantly questioning me. I have since proved myself as a soldier and hope to become an officer one day. I always come back to the VRAEM on leave. My family won't move from here. I sometimes speak to my father about whether things will ever change in the valley. Coca farmers are constantly in fear of having their fields eradicated. But from what I'm told coca production has only expanded this year. I wish there was another way to make money in the region. Perhaps through industrialisation of coca for other uses, such as tea and flour. Now that I'm 20 years old, all I can see is that things are not the same as when I was growing up - they are intensifying. Life in the VRAEM used to be more rustic . Now many simple peasants have become master chemists. A week ago I was working on our family coca field and I saw two plumes of smoke rise up not far from me. The police had discovered some cocaine labs and had blown them up. That's an image most farmers are used to. It's an almost daily occurrence. The police sometimes even bring reporters along to show off their work. Three days later a clandestine pit like that will be operational again - and the cycle continues."" Romulo Loayza, 40, Santa Rosa Radio Presenter ""I used to come to the VRAEM as a teenager on holidays to visit my father's coca fields. Those were dangerous times during the internal war with the Shining Path. Years later after finishing my studies in agronomy I returned and settled here in Santa Rosa, [a small town at the heart of the VRAEM].- Ten years ago a friend of mine dared me to present on radio. Since then I haven't stopped. Today I host a daily programme where I read the news and discuss issues that matter to local farmers. I'm known as ""Radio Chaski"", which means ""the messenger"" in Quechua. I try to be as objective as possible, though I admit I also promote a line of fertilisers that I buy in Ayacucho. I know what my fertilisers are used for coca production and, therefore, likely towards making cocaine. People here pretend otherwise, but that's what sustains the local economy. The new Peruvian president, Pedro Pablo Kuczynski, came to power on a ticket saying he would change things. That he would review ancient coca cultivation and finally bring coca eradication by creating a strong alternative market. But we've heard this kind of talk before. - The previous government headed by president Ollanta Humala invested millions of soles into the VRAEM in a crop reconversion programme, but barely half of it went to help out farmers. Most of the money went into the pockets of greedy intermediaries. They gave each coca farmer in the VRAEM cacao plants hoping that in three years' time when the plants produced, the farmers would reap their rewards and there would be a miraculous shift in the region's main crop. But it will be difficult to displace coca. Cacao only harvests once a year while for coca it's up to four times a year. And with coca the market comes to your door: the black market buyer will actually come to your farm. As it stands a coca farmer makes three times as much as any cacao farmer. It's simple economics: the demand from outside dictates the production. The only thing that could ever change the coca market is if synthetic drugs would replace cocaine in the West. The government can talk big but it's too scared to effect real change. There's too much at stake for them. Eradicating the country's coca production would be bad for the Peruvian economy. It would also cause an uprising among farmers who are prepared to sacrifice their own lives. - Between 1990 and 2000, more than 5,000 rifles were given out by the Fujimori government to help self-defence militias in the VRAEM fight the Shining Path. These rifles were never returned and these units still exist. They provide security to the community as police are largely absent in the VRAEM. And let's not be naive. Last year army helicopters were caught transporting cocaine to the capital, Lima - even the military is involved in the drug trade."" Paulina Pariona, 34, Women's Coca Association Santa Rosa - ""My father was killed fighting alongside the self-defence militias against the Shining Path in 1986. Soon after, the Shining Path came to our house and killed my mother. I grew up with my brothers and sisters - we all endured great poverty and suffering. Those are times I prefer not to think about. But it's what formed us. I never finished primary school. - Today I'm a mother of four and a leader of the cocalero [coca producers'] movement here in Santa Rosa. I will fight until my dying breath for the rights of coca farmers. Coca is what puts food on the table here in the VRAEM. It's our only significant cash supply. - All our lives the government has vilified people from this region - they see us as drug traffickers. We are farmers. We would gladly convert to other crops like coffee and cacao but they sadly don't bring financial results that can sustain us. Most of the earth in the VRAEM is too red with clay, barely suitable for anything else but coca. - What we want is for the government to review the system of legal membership of coca farmers, which was established in 1978. Today less than 20 percent of coca farmers in the VRAEM are registered under the scheme. What we want is something similar to what's happening in Bolivia. We want each coca farmer to be registered and allowed the same sized coca patch. Anyone who grows more than allowed would have their accreditation taken away, and possibly have their patch eradicated. The coca would then be sold to ENACO, the national coca agency, making sure it would not fall into the hands of cocaine producers. - Coca has great potential for being industrialised for its many medicinal properties. But it's the West that keeps failing to see its other potential uses for curing stomach cramps, hangovers and altitude sickness. We as farmers chew coca; it keeps us strong when we are working the fields. For us it is sacred. - The politicians are all dishonest; they only befriend us in times of elections and then vanish. They never fulfil their promises. When I was a town councillor, I tried my best to improve education and health, but the investments from the government were minimal. We are still much in need. We don't want to be demonised. We want to find a solution by legalising our coca fields, but the state has forgotten about us."" Source:-Al Jazeera", -1957,2017/3/3,http://www.aljazeera.com/indepth/features/2017/02/street-art-jordan-world-gallery-170205081801855.html,Street art in Jordan: 'The world is their gallery' Zab Mustefa,Graffiti artist Suhaib Attar says his goal is to brighten up Amman and help people think outside the box. By,"Amman - In the dusty afternoon heat of downtown Amman, Suhaib Attar has laid out his spray paint cans on the ground. He paces back and forth, trying to figure out how to brighten up a nearby wall. A group of curious children gathers behind him as Attar calmly puts on his headphones on and begins to sing softly in Arabic. He picks up one of the cans and starts to paint. Street art is a relatively new phenomenon in Jordan, where more than 60 percent of the population is under 30 and-unemployment rates among young people are twice the national rate, according to the United Nations Development Programme. But Attar is fast becoming one of Jordan's most renowned street artists, with his work appearing all over the country. Poverty and pressure to provide for their families have dissuaded many young people from pursuing art as a passion, but Attar hopes to change that. ""We are missing a lot in the art scene here because it's very hard to make a living out of it, but I'm hopeful it will become bigger as more graffiti is showing up on walls,"" Attar, 24, tells Al Jazeera. ""I think my work brightens up Amman, and the city definitely needs more of this. For some people, it can expand their imagination and it makes them think outside the box."" After 20 minutes of work, he stands back to examine the geometric panda he has drawn. His audience of children looks on enthusiastically. ""The good thing about street art is that it is public, so everyone sees it, and I can use this whole country as my canvas,"" Attar says. ""I feel as though people are used to seeing the same drab colours of buildings, so if there is a huge mural in between, the colours put people in a good mood."" The good thing about street art is that it is public, so everyone sees it, and I can use this whole country as my canvas. Suhaib Attar, graffiti artist Growing up in a tough neighbourhood in east Amman as the eldest son of Palestinian refugee parents, Attar struggled as a teenager. ""I used to be an aggressive kid, and I had a lot of problems at school,"" he recalls. ""I got into a lot of fights, but I found that art was like anger management, because I used to vent my frustrations into my sketches. It made me feel better and calmer, as it helped me stay out of trouble."" After attending classes at a local community centre, he learned about graphic design and digital art before discovering street art. Among the rows of old buildings outside Attar's house, clumsy graffiti outlines are still visible from where he practised his skills as a teenager. At 19, Attar began studying fine arts at university, but his passion for painting the streets of Amman soon led him to quit his studies and start working with NGOs and small businesses. Commissioned for advertising by agencies, such as the UN and the United States Agency for International Development, he worked on a number of projects dear to his heart, including efforts to increase women's empowerment and to secure regional peace.- A side street in the Jabal Al Weibdeh area of Amman displays one of Attar's most striking murals to date: a 23-metre-high geometric deer, painted on an old building. It was his first large-scale piece and took two days to complete. ""I started experimenting with the line art style, which I learned in university, so it was exciting to have an opportunity to make it into a huge piece,"" Attar says. ""People really love it, and it catches their eye because of its colour combination."" Amid the recent influx of Syrian refugees into Jordan, Attar has also started holding workshops with Syrian children, introducing them to his world of colour and expression. He works in conjunction with Awareness and Prevention Through Art (AptART), an NGO that specialises in working with vulnerable children. ""Jordan has hosted refugees from across the region for more than half a century. There are a lot of conversations to be held in public spaces, and art offers an opportunity to do that,"" AptART director Samantha Robison tells Al Jazeera. ""In Jordan, the concept of street art is much more unconventional than in other places,"" she adds. ""It's still in its beginning stages of social understanding and acceptance. Our aim is to amplify the voices of marginalised groups and put their ideas and identities in the public space. Street artists have an opportunity to convey a message to a large audience in a way that other artists might not. The world is their gallery; it's art for everyone."" When the AptART team was working in Zaatari camp, home to almost 80,000 Syrian refugees, children as young as four were able to join in and write on walls about their hopes for the future. ""These kids are stuck in the middle of the desert, in a camp, and there is nothing bright for them,"" Attar says. ""Young refugees didn't have any colours around them, and doing something simple like letting them play with paint put a smile on their faces. Writing their messages and ideas on a wall made them feel better about their lives, because they felt as if they were achieving something."" Meanwhile, one of Attar's murals in Khalda, northeast of Amman, shows a different side of the Jordanian army: an officer with his bagpipes. ""I was given photos from the army archives to choose from and this man's features stood out for me,"" he says.- And in the Sweifieh district of Amman, Attar's pastel-coloured whale stands out as a part of a project to raise awareness of Jordan's water crisis. He and another artist each painted one side of a building with water-related themes in an effort to get people thinking about the environment. ""Water gets delivered once a week, so families have to save their supplies to last for seven days ... I think Jordan is one of the poorest countries in the world when it comes to water, so when people see this street art, they will take notice,"" Attar explains. ""I'm lucky to be doing this,"" he adds, touching the mural on the wall. ""Being up high and painting is where I find my inner peace."" Source:-Al Jazeera", -1958,2017/3/3,http://www.aljazeera.com/news/2017/03/report-pence-private-email-account-governor-170303044521105.html,Report: Pence used a private email account as governor,"US Vice President Mike Pence's private email account has also been targeted by hackers, according to a newspaper report. 'Absurd comparison' ","Vice President Mike Pence used a private email account to conduct public business as Indiana's governor, according to public records obtained by the Indianapolis Star. The newspaper reported on Thursday that emails provided through a public records request show that Pence communicated with advisers through his personal AOL account on homeland security matters and security at his residence during his four years as governor. The governor also faced email security issues. Pence's AOL account was subjected to a phishing scheme last spring, before he was chosen by Donald Trump to join the GOP presidential ticket. Pence's contacts were sent an email falsely claiming that the governor and his wife were stranded in the Philippines and needed money. READ MORE: Blow for Hillary Clinton as FBI reopens email probe The governor moved to a different AOL account with additional security measures, Pence spokesman Marc Lotter said, but has since stopped using the new personal account since he was sworn-in as vice president. Lotter said Pence ""maintained a state email account and a personal email account"" like previous governors in the state. At the end of his term Pence directed outside counsel to review all of his communications to ensure that state-related emails were transferred and properly archived by the state, the spokesman said. As Trump's running mate, Pence frequently criticised rival Hillary Clinton's use of a private email server as President Barack Obama's secretary of state, accusing her of purposely keeping her emails out of public reach and shielding her from scrutiny. Lotter said ""the comparison is absurd"" because Clinton had set up a private server in her home at the start of her tenure at the State Department and, unlike Clinton, Pence did not handle any classified material as Indiana's governor. Indianapolis Star reported that the office of Pence's successor, Indiana Governor Eric Holcomb, released more than 30 pages from Pence's AOL account, but declined to release an unspecified number of emails because they were considered confidential. Public officials are not barred from using personal email accounts under Indiana law, but the law is interpreted to mean that any official business conducted on private email must be retained to comply with public record laws. The state requires all records pertaining to state business to be retained and available for public information requests. Emails involving state email accounts are captured on the state's servers, but any emails that Pence may have sent from his AOL account to another private account would need to be retained. At the end of his term, Pence hired the Indianapolis law firm of Barnes & Thornburg to conduct a review of all of his communications and that review is still ongoing, Lotter said. Any correspondence between Pence's AOL account and any aides using a state email account would have been automatically archived, he said.- Source:-News agencies", -1959,2017/3/3,http://www.aljazeera.com/news/2017/03/kim-jong-nam-killing-korean-suspect-deported-170303040142702.html,Kim Jong-nam killing: N Korean suspect to be deported,Condemnation comes after diplomat says improbable that VX nerve agent killed North Korean leader's half-brother.,"Malaysia has condemned the use of toxic nerve agent VX that killed the estranged half-brother of North Korea's leader at an airport packed with travellers, as authorities moved to deport a North Korean suspect. Kim Jong-nam was murdered on February 13 at Kuala Lumpur International Airport, where he was assaulted by two women who allegedly smeared his face with VX, a chemical classified by the United Nations as a weapon of mass destruction. Malaysia's foreign ministry ""strongly condemns the use of such a chemical weapon by anyone, anywhere and under any circumstances. Its use at a public place could have endangered the general public"", it said in a statement on Friday. Who produced the VX poison that killed Kim Jong-nam? North Korea has denied accusations that it was involved in the killing. It described as ""absurdity"" the belief that VX was used and suggested the victim died from heart failure. Malaysia's foreign ministry said it was in close contact with the Organisation for the Prohibition of Chemical Weapons (OPCW), an inter-governmental organisation based in the Netherlands, regarding the incident. ""Malaysia does not produce, stockpile, import, export or use any Schedule 1 toxic chemicals, including VX, and has made annual declarations to that effect to the OPCW,"" the statement said. North Korean diplomat Ri Tong-il - who is leading a delegation to the country - said on Thursday that Malaysia should provide samples of the VX that police say they found on the body to the OPCW. ""If it is true that it was used,"" he told reporters, ""then the samples should be sent to the office"". Ri, a former North Korean deputy ambassador to the UN, said it made no sense to say the two women used such a deadly toxin without also killing or sickening themselves - and people around them. He added that Kim had a history of heart problems and had been treated in hospital in the past. He said that he understood that Malaysian officials found medication for diabetes, heart problems, and high blood pressure in Kim's belongings and concluded that he wasn't fit to travel. ""This is a strong indication that the cause of death is a heart attack,"" Ri said. Malaysia to cancel visa-free entry for North Koreans Relations between Malaysia and North Korea, who have maintained friendly ties for decades, have soured since the killing of Kim Jong-nam, the estranged brother leader Kim Jong-un, who had lived for years in exile in Macau. South Korean intelligence and US officials say the murder was an assassination organised by North Korean agents, though the only suspects charged in the case so far are an Indonesian woman and a Vietnamese woman. They face the death penalty if convicted. They have told diplomats from their home countries that they thought they were participating in a prank for reality television. Al Jazeera's Florence Looi, reporting from Kuala Lumpur, said questions remain about who else may have been involved with the women. ""There are doubts they could have acted on their own because how would have they been able to obtain the highly toxic substance that was found on Kim Jong-nam's body and apparently killed him,"" said Looi. Another North Korean suspect, who was arrested on February 18 over the killing, was released from a detention centre on Friday and driven away in a police convoy.- Kim Jong-nam 'died about 20 minutes after VX poisoning' Ri Jong-chol was taken to the immigration office wearing body armour to prepare for his deportation to North Korea. Malaysia's attorney general said on Thursday that he would be released because of insufficient evidence. Police have identified seven other North Koreans wanted in connection with the killing, including a senior embassy official in Kuala Lumpur. Four have left the country and are believed to be in Pyongyang. Source:-Al Jazeera and news agencies", -1960,2017/3/3,http://www.aljazeera.com/news/2017/03/jeff-sessions-recuse-probe-russia-case-170302211804278.html,Jeff Sessions recuses himself from Russia probe,Democrats call for Jeff Sessions to resign, President Donald Trump calls controversy 'a total witch-hunt'.,"US Attorney General Jeff Sessions has agreed to recuse himself from an investigation into alleged Russian interference in the 2016 election. His comments came a day after the Washington Post reported that-Sessions, a former senator who advised Donald Trump's campaign on foreign policy and other issues, met the Russian ambassador in July and September, just as accusations of Russian interference in the election were building. At a news conference on Thursday, Sessions drew a distinction between his conversations with Sergey Kislyak in his role as a senator and his role in the Trump campaign. He said the decision to recuse himself from a federal investigation came at the urging of senior career officials in the justice department. ""I feel I should not be involved in investigating a campaign I had a role in,"" Sessions said. OPINION: Why is Russia so happy with Trump? His critics say his-two conversations with Kislyak contradict Sessions' statements during his confirmation hearing, when he told Congress he had not had communications with Russians during the campaign. Calling for Sessions to resign, House Minority Leader Nancy Pelosi accused him of ""lying under oath"". The White House stood behind Sessions, with Trump saying he had ""total"" confidence in his attorney general. He said Sessions could have been more accurate in what he said about his contacts with Russian officials but blamed Democrats for blowing up the controversy for political reasons. ""Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional,"" Trump said in a statement. ""The Democrats are overplaying their hand,"" Trump continued. ""It is a total witch-hunt!""- Al Jazeera's Kimberly Halkett, reporting from Virginia where the president visited a Navy aircraft carrier and addressed shipbuilders on Thursday, said that while Democrat politicians will not be satisfied with Sessions' recusal, Trump supporters will have a different reaction. ""We often talk about Washington being something of a bubble. Once you go outside, it is a very different political reality,"" our correspondent said. ""Many Trump supporters know they have an imperfect president, they know there may be problems with his cabinet, but they don't care. What they care about is what the president came to talk about today, and that is job creation. For them, what matters is putting food on the table, having a regular paycheck, and anything beyond that is simply background noise."" The Justice Department has maintained that there was nothing improper about Sessions' contacts or his answers to Congress. Trump has been trailed for months by questions about potential ties to Russia. He has vigorously denied being aware of any contacts his associates had with Russia during the campaign and has also insisted he has no financial ties to Russia. His national security adviser Michael Flynn resigned last month following reports he misled Vice President Mike Pence and other officials about his contacts with Russia.- Source:-Al Jazeera and news agencies" -1961,2017/3/3,http://www.aljazeera.com/news/2017/03/syria-talks-geneva-170302224554937.html,Jaafari: Opposition holding Geneva talks 'hostage',"Government delegation accuses opposition of holding talks 'hostage' as they disagree over discussion on 'terrorism'. Adding ""Terrorism""?to the agenda Counter demands Running out of time","Geneva, Switzerland - The Syrian government delegation has accused the main opposition group at UN-led negotiations of holding the talks ""hostage"" in their final hours, adding that it would hold the opposition responsible for any failure. After a week of indirect talks, little progress has been made in getting the two sides to the negotiating table. And as a ceasefire on the ground in Syria steadily crumbles, it remains unclear whether the rivals will be able to agree even on the basic format of negotiations before this round of talks comes to a close. ""We must not permit the Riyadh platform to hold Geneva talks hostage,"" lead government negotiator Bashar al-Jaafari told reporters, referring to the opposition, after meeting with UN Syria envoy Staffan de Mistura. ""This did not come as a surprise to us because some members of the Riyadh delegation include members of armed terrorist groups."" In his first address to the press in nearly three days, Jaafari accused the High Negotiations Committee (HNC) - the main opposition umbrella group formed in the Saudi capital - of refusing to unify with two smaller opposition groups. All real progress in the latest round of Geneva talks has been held up by arguments on two central issues: the make-up of the opposition delegation and the potential inclusion of ""terrorism"" as a core subject of discussion. De Mistura, the UN mediator, convened the talks with the goal of tackling UN Security Council Resolution 2254, a document that lays the basis for a political transition based on three ""baskets"": accountable governance, a new constitution and UN-supervised elections. But government representatives have demanded that a fourth basket focused entirely on ""anti-terrorism"" be included in the agenda before signing on to continue negotiations. ""We discussed counterterrorism as a basket on equal footing with the other baskets,"" Jaafari said on Thursday. ""Those who reject discussing this basket are the so-called Riyadh delegation ""?the Moscow and Cairo [platforms] have agreed."" The HNC views the other two opposition groups - the Cairo and Moscow platforms - as pro-Russia, government-tolerated groups that have no real base of support, and has urged their members to join up with the Riyadh-based group instead. READ MORE: 'Hope is all I have', Syrian journalist says In a press conference directly following Jaafari's address, lead opposition negotiator Nasr al-Hariri dodged questions on whether the opposition would accept the inclusion of a fourth subject of discussion. The opposition has been hesitant to add ""terrorism"" to the agenda over fears that the government would use it to sideline discussions on political transition - the opposition's central goal. Yahya al-Aridi, a political and media adviser to the HNC, told Al Jazeera that it was ""a given"" that the opposition was fighting ""terrorism"", but refused to confirm whether the HNC planned on agreeing to its inclusion. ""It's not a subject of debate, it's a plague we've been suffering from for years,"" he said. ""We should be the ones discussing terrorism."" In an attempt to calm opposition fears during closed-door discussions over the past week, the UN envoy has reportedly said that the new ""basket"" would also include to the government's use of barrel bombs and chemical weapons on civilian population centres. The opposition has also said that any discussion on ""terrorism"" should include the actions of Iran-backed militias fighting on behalf of the government. In rushed morning meetings on Thursday, the opposition discussed countermeasures to government demands, according to a -western diplomat, which included the ""transformation"" of the proposed fourth basket ""into a more comprehensive one that focused jointly on ceasefire and terrorism"". Discussions also included possible trust-building measures, such as the release of detainees or the end of government sieges on rebel-held areas. They also reportedly discussed the inclusion of a Russian guarantee that the three other baskets - governance, elections, and a constitution - would be discussed without preconditions. If the opposition refuses to add ""terrorism"" to the agenda, according to a diplomat involved in the talks, who asked to remain anonymous, the government would effectively have an excuse to walk away from negotiations. ""They have an 'out' card if the opposition refuses to discuss terrorism,"" he said. De Mistura wants the opposition to ""go along with the process"" because Jaafari will not deal with anything related to a political transition until the ""terrorism"" issue is cleared up, the diplomat said. While some members of the HNC's higher negotiating team may be willing to accept the addition of a ""ceasefire and terrorism"" basket, they would need the go-ahead from a majority of the more than 20-member group in order to move forward. Another diplomatic source told Al Jazeera that the opposition was ""more or less happy"" about negotiating ""all four baskets"", which has left Jaafari and the government delegation ""backed into a corner"" on whether they are willing to negotiate a political transition. De Mistura is desperate to achieve tangible results this time around in Geneva, according to aides and diplomats close the UN envoy. If he is unable to officially secure a mutually agreed agenda by the time the talks wrap up over the weekend, he will most likely not be the UN moderator in the next round - if there is one. De Mistura reportedly resubmitted to both sides at the beginning of the week a 12-point memorandum - much of which was already agreed upon by both parties last year - in an attempt to establish common ground between the warring sides. But the government delegation returned the paper to the envoy on Wednesday with ""substantive"" changes, which some diplomats described to Al Jazeera as ""spoiler tactics"" and attempts to deflect talks away from ""substantive issues"". Both sides were due to meet the UN envoy on Friday in what could be the last formal meetings of this round of talks. Source:-Al Jazeera News", -1962,2017/3/3,http://www.aljazeera.com/news/2017/03/hosni-mubarak-acquitted-2011-protester-killings-170302152023669.html,Hosni Mubarak acquitted over 2011 protester killings,Former president acquitted of complicity in killings of hundreds of protesters during 2011 uprising that ended his rule. Uprising aftermath,"Six years after the uprising that ended his rule, former Egyptian President Hosni Mubarak has been acquitted over his alleged involvement in the killings of hundreds of protesters in 2011. The Court of Cassation's final ruling on Thursday could see Mubarak walk free. AL JAZEERA MIDDLE EAST DESK EDITOR, ALAA BAYOUMI:- ""It has been six long years. Mubarak has stood so many trials in front of various courts. He's been tried mainly for two things. First in his role in killing protesters in the 18 days of the January 25 revolution. He was also tried for corruption. Egyptians were closely watching the trial for involvement in killing protesters. In 2012, he was found guilty and was sentenced to life. He appealed against that ruling. He was found innocent today. This means that we don't know who killed the protesters. Habib al-Adly, his minister of interior, was found innocent before, and now Mubarak is ""free'. Most of the youth leaders of the revolution have been found guilty and are in jail. They are both from youth groups and religious groups. About 60,000 activists are in jail today. The government was able to find enough evidence to indict them and sentence them to years in prison. The striking point is that the most senior leaders of the Mubarak regime, who people revolted against, are found innocent because of a lack of evidence."" After an all-day hearing, Judge Ahmed Abdel Qawi announced: ""The court has found the defendant innocent."" The Cairo-based court rejected demands by lawyers of the victims to reopen civil suits, leaving no remaining option for appeal or retrial. Mubarak was accused of inciting the deaths of nearly 900 protesters in an 18-day uprising that ended when he stepped down on February 11, 2011. He had been sentenced to life in 2012 but an appeals court ordered a retrial, which dismissed the charges two years later. Mubarak, 88, has spent most of his time in a military hospital since his arrest in 2011. He arrived to court on Thursday on a stretcher. In January 2016, the appeals court had upheld a three-year prison sentence for Mubarak and his two sons on corruption charges. But the sentence took into account time served. Both his sons, Alaa and Gamal, were freed. Most of the charges brought against Mubarak's government members have been dismissed while the country still recovers from the aftermath of the uprising. Mubarak's successor, democratically elected Mohamed Morsi, served for only a year before the military ousted and arrested him in 2013, launching a deadly crackdown on his supporters. Morsi and hundreds of his supporters have been sentenced in mass trials, although many of them are appealing the verdicts. READ MORE: Egypt Revolution - 18 days of people power A former air force chief and vice president, Mubarak became president after fighters who had infiltrated the army shot dead president Anwar Sadat during a military parade in 1981, also wounding Mubarak. He remained defiant throughout his trial. Mubarak may be acquitted by the Egyptian Court of Cassation, but a release is no small matter. It would mean the military was wrong in 2011. ""I did nothing wrong at all,"" he told a private broadcaster after receiving the life sentence in 2012. ""When I heard the first verdict I laughed. I said: 'Ha!'."" Apparently referring to economic growth, he said: ""The last 10 years showed more results than the 20 years before, including telephones and so on, and then they turned against us."" Source:-Al Jazeera and news agencies", -1963,2017/3/3,http://www.aljazeera.com/programmes/insidestory/2017/03/cost-privacy-connected-lives-170302213914101.html,What's the cost to privacy in our connected lives?,Balancing security and privacy against ease and convenience - is a more technologically connected world a better one?,"An extraordinary array of gadgets are on display at the Mobile World Congress in Barcelona, Spain, both technologies already on the market and ones that will be soon. There is less discussion about the privacy and security costs that come with our increasingly connected world. Many of us live our entire lives ""connected"" by smartphones, which we carry every day and everywhere. Phone apps turn your house lights on and switch off air-conditioning. Cars monitor not only our location but our driving habits and send that information back to the vehicle's manufacturer, among others. What tech companies call the ""Internet of Things"" will make us healthier and safer, they say. Critics reply that we are being stripped of privacy and isolated from communicating with other people. So is a more technologically connected world a better one? Presenter: Sami Zeidan Guests: Gry Hasselbalch, DataEthics.eu. Robert Pritchard, The Royal United Services Institute for Defence Studies. Nishanth Sastry, King's College London. Source:-Al Jazeera News", -1964,2017/3/3,http://www.aljazeera.com/news/2017/03/amisom-57-al-shabab-fighters-killed-juba-raid-170302193125629.html,AMISOM: 57 al-Shabab fighters killed in Juba raid,"AMISOM announces one of deadliest attacks on armed group's base in Juba, but al-Shabab says it lost no fighters.","At least 57 al-Shabab fighters were killed after African Union and Somali forces attacked one of the armed group's camps in the southern region of Juba, according to the AU's peacekeeping mission in Somalia (AMISOM). In a post on Twitter, AMISOM said that vehicles and equipment were destroyed in Thursday's morning assault on the al-Shabab base outside Afmadow, a town about 100km inland from the Somali port of Kismayo. The AU force said ""a large cache of weapons"" had also been captured in the operation, which was backed by-helicopter gunships. INFOGRAPHIC: Al-Shabab attacks in Somalia (2006-2017) A separate statement by Kenya's defence ministry said an unknown number of fighters were injured. There was no immediate word of casualties among the AU or Somali forces. Abdiasis Abu Musab, al-Shabab's spokesman for military operations, told the Reuters news agency-that the armed group's fighters had ambushed Kenyan soldiers, prompting them to call in air support, and-the armed group had lost no one in the clashes. ""The planes fired some bombs and KDF [Kenya Defence Forces] returned to their places. There is no casualty from our side and we do not have exact casualty numbers of KDF,"" he said. Al-Shabab ruled most of south-central Somalia until 2011, when it was driven out of the capital, Mogadishu, by AU troops. Despite the loss of territory, the armed group, which-wants to topple the internationally recognised government,-still carries out major gun and bomb attacks. IN PICTURES: Fighting to survive hunger in Somalia The group has responded angrily to the election last month of new-President Mohamed Abdullahi Mohamed, during whose brief term as prime minister the group was expelled from Mogadishu. Mohamed has vowed to make security a priority in the Horn of Africa nation. Source:-News agencies", -1965,2017/3/2,http://www.aljazeera.com/news/2017/03/school-bans-muslim-pupils-provocative-praying-170302174437076.html,School bans Muslim pupils from 'provocative' praying,Wuppertal high school draws criticism after banning pupils from using prayer rugs and other traditional Muslim rituals.,"A high school in a western German city-has banned Muslim pupils from publicly praying, saying that all the religious acts associated with it are ""provocative"" to other pupils, sparking a heated debate about freedom of religion in the country. The school in Wuppertal sent a note to staff in February-asking them to ""identify"" and ""report"" any cases of Muslim pupils praying on the school premises to the administration. Several teachers and pupils had reported that they felt pressured by-the behaviour of Muslim pupils, a spokeswoman for the regional-administration of Wuppertal told the DPA news agency on Thursday. ""In the last few weeks, it has increasingly been observed that Muslim students are praying, quite visibly to others, indicated by ritual washing in the bathrooms, the rolling out of prayer rugs, and by the students putting their bodies in certain positions. That is not permitted,"" the letter had-reportedly said. READ MORE: '10 attacks a day' against refugees, shelters in Germany The letter was posted last week on Facebook, provoking an angry reaction from some social media users who attacked the school's decision. After the criticism, municipal authorities said the wording was ""unfortunate"" and the school had only meant to bring affected students in to discuss a solution to allow their prayer, the German newspaper Bild reported on Thursday. Authorities say the school was, however, legally allowed to stop people ""praying in a provocative manner"". The regional administration said it backed the school's stance.- ""Banning provocative praying in the school's public space should-promote peaceful coexistence and peace within the school,"" the-administration said. READ MORE - Angela Merkel: Full-face veil must be banned in Germany The school's prayer ban came as Germany, which has taken in more than 1.1 million refugees and migrants from predominantly Muslim countries, sees a rise in anti-Islam and anti-immigration sentiment. The country's right-wing populist Alternative for Germany (AfD), which has been making big gains in a series of recent elections, has now adopted an anti-Islam stance as part of its new manifesto. Commenting on the school's move in a Facebook post, the AfD's Wuppertal branch called it an-""interesting and ""sensible"" measure. Source:-Al Jazeera and news agencies", -1966,2017/3/2,http://www.aljazeera.com/news/2017/03/calls-grow-fire-jeff-sessions-stand-170302182624645.html,Jeff Sessions facing growing pressure to stand aside,Top Republicans also join calls for attorney general's withdrawal from probe into alleged Russian meddling in US vote. Republicans' reaction 'Resign immediately',"Pressure is mounting on US Attorney General Jeff Sessions-after it emerged that he met Russia's ambassador to Washington during last year's election campaign, seemingly contradicting statements he made in Senate confirmation hearings. The revelation plunged President Donald Trump's Republican-administration back into turmoil over its connections to Russia,-which US intelligence says interfered in the 2016 campaign against Democratic candidate Hillary Clinton. The Washington Post reported-late on Wednesday that Sessions, a former senator who advised Trump's campaign on foreign policy and other issues, met Ambassador Sergey Kislyak in July and September, just as accusations of Russian interference in the election were building. READ MORE: US House panel to probe alleged Trump-Russia links Sessions, however, told his confirmation hearing at the Senate Judiciary Committee on January 10 that he did not know of contacts between Trump campaign members and Russia. ""I did not have communications with the Russians,"" he said under oath. The previously undisclosed meeting fed growing calls for Sessions to recuse himself from oversight of justice department and FBI probes into the alleged Russian meddling and contacts with Trump campaign advisers. ""I have said whenever it's appropriate, I will recuse myself. There's no doubt about that,"" Sessions told NBC News, while denying any wrongdoing. ""I have not met with any Russians at any time to discuss any political campaign, and those remarks are unbelievable to me and are false. And I don't have anything else to say about that."" The White House confirmed that the meetings took place but insisted Sessions had done nothing wrong as it dismissed the revelations as a partisan attack. Trump on Thursday declared ""total"" confidence in Sessions, telling reporters during a visit to a US aircraft carrier that he ""wasn't aware"" of the two meetings last year. But several leading Republicans joined Democrats on Thursday in calling on Sessions to-step aside from the inquiry. ""AG Sessions should clarify his testimony and recuse himself,"" Jason Chaffetz, a member of the House Government Oversight Committee, said in a post on Twitter. House Majority Leader Kevin McCarthy, said he thought Sessions ""needs to clarify what these meetings were"". He said it was not unusual for members of Congress to meet ambassadors, but added that if a question arose about the integrity of a federal investigation, ""I think it'd be easier"" for an attorney general to step away. Top Democrats demanded that Sessions go further and quit his post as attorney general, calling-for an independent, bipartisan investigation into Trump's possible ties to Russians. ""Sessions is not fit to serve as the top law enforcement officer of our country and must resign,"" Nancy Pelosi, the top Democrat in the House of Representatives,-said in a statement. US Representative Elijah Cummings criticised Sessions for keeping his contact with the ambassador secret even after Trump fired his first national security adviser, Michael Flynn. Sessions ""should resign immediately"", he said. House Speaker Paul Ryan said Sessions should only recuse himself if he is a subject of the probe. At his Judiciary Committee confirmation hearing in January, Sessions was asked by Democratic Senator Al Franken what he would do if he learned of any evidence that anyone affiliated with the Trump campaign communicated with the Russian government in the course of the 2016 campaign, the Post reported. ""I'm not aware of any of those activities,"" Sessions responded, according to the Post. He added: ""I have been called a surrogate at a time or two in that campaign and I did not have communications with the Russians."" READ MORE: US Senate approves Jeff Sessions as attorney general Speaking to Al Jazeera from Washington, DC, former associate US attorney general Bruce Fein said: ""Everyone knows Jeff Sessions was up to his ears in the Trump campaign, that's why he's attorney general now."" He said that Trump has made powerful enemies so far in his presidency, including the press, that were ""out to get him"". ""And there are many people in the intelligence community that are probably out to get Mr Trump too because he's derided them, [accused] them of doing things equivalent to the Nazis. So he's going to have an intelligence community that's looking for things,"" Fein added. Source:-Al Jazeera and news agencies", -1967,2017/3/2,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417166.htm,"After ivory ban, Africa must 'own this space'",,"Conservation chief says it is now up to the continent to make plans for the protection of its precious natural resources The head of an international conservation organization says China's move to ban its domestic ivory trade gives Africa the impetus to come up with a unique modernization model that balances development and conservation. Previous development models in North America, Europe and Asia have compromised wildlife and wild regions, says Kaddu Sebunya, president of the Africa Wildlife Foundation (AWF). He says this is not what Africa needs and that China has instead shown its mettle by disrupting its domestic legal trade to meet its commitments - a move Africa should emulate to achieve sustainable growth. - Kaddu Sebunya says Africa needs the infrastructure so African people cannot talk conservation at the expense of development. Lucie Morangi / China Daily ""China has imposed the ban and simultaneously announced plans to retrain and help artists transition to alternative careers. The country has set the ball rolling and we hope to see other countries taking similar action. With a decrease in demand for ivory, Africa will experience a surge in elephant numbers, while those who benefited from the illegal trade will be idle. Conservation, therefore, has to be pushed up the priority list,"" says the Ugandan, who took the helm of the 55-year-old organization in 2015. Africa is set to be the biggest beneficiary of the ban. According to a report released last year by the International Union for Conservation of Nature (IUCN), the continent lost an estimated 111,000 elephants in the past decade. There are only 415,000 of the animals left, with the biggest population located in southern Africa. Sebunya believes China's increased collaboration with Africa may have partly contributed to its decision. But, most importantly, the country took the decision to meet its commitments. President Xi Jinping discussed plans to ban the ivory trade during his meeting in New York with then-US president Barack Obama in 2015 and he also talked about it during the second summit of the Forum of China-Africa Cooperation (FOCAC) in Johannesburg, South Africa, in 2014. China is Africa's biggest trading partner and is behind the continent's recent infrastructure transformation. Some modern transport projects have put African governments and environmental activists at loggerheads. However, Sebunya says that wildlife activists are not against development. ""Africa needs the infrastructure so we cannot talk conservation at the expense of development. The discourse should instead be on the relationship between the two. The good news is that we already have data from previous development models that have not worked. We must therefore develop an African model and China can help us mold it."" He disputes allegations that China has gained a foothold in Africa by turning a blind eye to conservation issues. He attributes delays in getting funding from other international financiers to a lack of skill on Africa's part in negotiating deals that put the continent's environmental needs on the table. Noting this, he says China, through FOCAC, has increased the continent's skill development programs for wildlife and environmental experts. China's success at protecting its own endangered pandas offers lessons to the elephant conservation programs, and enable Africa to negotiate with a strong voice that will shape its development agenda. Moreover, African conservation and wildlife management agencies have in the recent past been beneficiaries of China's technical and financial assistance. Kenya and Zimbabwe have each received vehicles and state-of-art equipment such as night-vision goggles to boost surveillance. China's security forces have also joined hands with global networks such as the Interpol to exchange intelligence that has successfully led to the arrest of ivory barons and a decline in the ivory trade. But Africa cannot escape the fact that the ban does not explicitly solve its challenges, says the president. The continent's chief problem has always been human-wildlife conflict. The population boom and soaring demand for food has seen more and more human activities encroaching on wild land, setting off a vicious cycle pitting humans against animals. Climate change has also forced wild animals to venture into farmed land, while herders have invaded national parks in search of pasture. Compensation claims are on the upswing, putting more pressure on national budgets, while countries such as Botswana and Zimbabwe have been forced to hold huge stocks of ivory and other wildlife trophies. Sebunya says China's ivory ban will effectively put the global focus squarely on Africa's ability to protect both its human capital and wildlife. Encouraging responsibility and creativity on the subject could result in the development of effective policies, but this can only be achieved with the right synergy created in all government departments. ""This is not only an environmental issue but also a political, social and economic issue,"" says Sebunya. ""There have been several voices around illegal ivory trading but these are all going to tone down and turn to governments for direction going forward. I think we need Africa to own this space and be able to explain to fellow Africans the merit of our natural resources."" He says the only way communities living around protected lands will take responsibility for conservation efforts is when the government talks about it in boardrooms. ""Conservationists always seem to be coming in late, after monumental decisions such as infrastructure master plans have been approved. But finance ministers should be activists too, conscious of the consequences of prioritizing development over the ecosystem. Africa will not achieve its development agenda without its natural heritage,"" he says. AWF has been recognized by the African Union as the official implementation partner of Africa Vision 2063. Sebunya says the next 10 years will be crucial because decisions taken will determine the entire future of Africa. ""The continent has identified agriculture as key to its industrial take-off. However, Africa cannot develop without a healthy workforce and water to irrigate its lands and run industries. Conservation and development go hand-in-hand,"" says the president. ""The question Africa needs to answer is how it can have it all. There must be an African development model and data is available to guide us. China, which developed rapidly over a very short period of time, has lessons we can learn and this is why the ongoing partnership between China and Africa is monumental,"" says Sebunya. He commends China for offering both its financial and technical skills in Africa's ambitious infrastructure development. With the right policies in place, Chinese construction companies will help build an eco-friendly African landscape. ""We are closely engaging with China in achieving an African renaissance dream. But we know that we should also be ready to compromise,"" says the president. ""We will lose some while making gains elsewhere."" Good policies will also see the budgetary allocation for conservation increase. Expanding the education system to include communities previously engaged in poaching should also be prioritized. ""These people need to engage in alternative activities that will be economically viable to them. The ivory ban will force African governments to be more proactive and this calls for all partners to support their strategies."" With the ban in place, external conservation funding may dry up and this, according to Sebunya, will be to the detriment of the already stretched funding that also covers other endangered species. Continental bodies, such as the African Union, need to take a stronger stand to ensure member countries develop better wildlife management and sustainable strategies. For countries grappling with huge elephant populations, sharing with countries such as Mozambique - whose elephant population has been wiped out - could be a prudent solution. ""When negotiating for the movement of people and capital, animals and technical support should also be considered,"" Sebunya says, adding that AWF helped in developing a tripartite agreement that saw Rwanda, Uganda and the Democratic Republic of Congo benefit from the protection of mountain gorillas. ""While charting Africa's unique development model, China cannot be ignored, and we will continuously engage with them, too, in this space,"" says the president, who is set to attend the Boao Forum for Asia (BFA) from March 23-26 in China's Boao, Hainan province. lucymorangi@chinadaily.com.cn (China Daily European Weekly 03/03/2017 page32)", -1968,2017/3/2,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417165.htm,Chinese companies set sights on oil assets,,"Fossil fuels may be out of fashion, but sales of foreign-owned resources across Asia are expected to attract a broad mix of bidders Some of Asia's biggest foreign-owned oil and gas assets, worth more than $40 billion, are to be sold this year, with potential bidders expected to include Chinese energy companies and sovereign funds. Assets to be sold include US-based Chevron's $1 billion (0.94 billion euros; 0.81 billion) joint ownership stake with China's state-owned CNOOC in an offshore oil field. One of the world's biggest oil and gas companies, Chevron plans to sell about $10 billion worth of assets, including natural-gas assets in Thailand, by the end of the year. A worker checks one of CNOOC's deep-water drilling platforms in the South China Sea. China's top offshore oil and gas producer said it is scouting for potential acquisition opportunities among Chevron's $1 billion in assets that were put up for sale recently. Xinhua CNOOC, China's top offshore oil and gas producer, has said it is scouting for potential acquisition opportunities, although a climate of low oil prices is making it difficult to agree on price. This comes at a time when many countries in Asia are adding renewable resources, such as wind and solar, to their energy mix. While renewables are gaining traction, oil and coal-fired power stations will be around for some time. Data from financial markets platform Dealogic show that from January to February this year, Chinese oil and gas companies were involved in $6.98 billion worth of mergers and acquisitions. BP, Chevron, Royal Dutch Shell and other oil and gas majors have been slowly divesting tail-end assets within the region in recent years, but that trickle looks set to gain momentum as larger assets are to be put up for sale in 2017. Chevron and Shell hold the largest portfolio of legacy assets in the region - that is, old assets that have lost value - and in the latter half of last year signaled their intentions to sell assets in Myanmar, Bangladesh, Thailand, New Zealand and Malaysia, among others. In January, Shell said it would sell its stake in Thailand's Bongkot gas field to Kuwait Foreign Petroleum Exploration Company for $900 million. The move is the latest stage of the Anglo-Dutch company's push to reduce debt. The transaction will include Shell's 22.2 percent equity stake in the Bongkot field and adjoining acreage off the coast of Thailand, Shell said in a statement. ""This transaction shows the clear momentum behind Shell's global, value-driven $30 billion divestment program,"" the company said. International resources consultancy Wood Mackenzie expects 2017 to bring a different mix of buyers to the fore than has been seen in recent years. According to Prasanth Kakaraparthi, senior upstream research analyst at the consultancy, between 2010 and 2016, national oil companies were the main buyers in the Asia-Pacific, acquiring over 2 million barrels of oil equivalent of commercial reserves. ""This year we expect to see more buying activity from local independents and private equity-backed players,"" he says. ""Domestic utilities and refiners, Japanese players and Middle Eastern NOCs looking for growth opportunities are also possible acquirers."" He says Asia-Pacific capital expenditure is expected to fall again in 2017 to $64 billion, with capital budgets some 40 percent lower than in 2015. This is due in part to fewer projects with final investment decisions in 2016. Only two projects, Ca Rong Do (Red Emperor) in Vietnam and the Western Surat Gas Project in Australia, are expected to take this step in 2017. Lackluster participation in recent licensing rounds, and reduced budgets, point to a bleak year for exploration in the Asia-Pacific. ""We expect around 50 wells to be drilled this year - a 70 percent drop from 2014 levels,"" Wood Mackenzie said in a report. Myanmar, which holds some of the last remaining frontier acreage in an otherwise mature region, accounts for the bulk of frontier exploration drilling and will be the biggest bright spot in Asia Pacific this year. ""We expect several wildcat wells to be drilled, as several blocks from the hugely successful 2013 bid round are matured through the exploration process,"" the report said. ""We also expect to see several companies farm down interest in exploration acreage where commitment wells are due, to reduce risk and manage budgets."" Kakaraparthi says there are three reasons why he expects the big players to sell this year. ""Many of the assets they hold in Southeast Asia are now mature, meaning they are likely to incur high (capital expenditure) going forward for little additional value,"" he says. ""Abandonment liability is also a big issue for older assets, which is another incentive to divest these from a portfolio. ""Typically at this stage, we would expect to see assets change hands from the majors/international oil company (IOC) type operators, to late-life players, smaller independents who still find these assets valuable, and potentially domestic players and local NOCs."" He says the second reason is two years of low oil prices, in 2015 and 2016. ""This has given a further incentive for the majors to kick-start divestment programs in order to bolster cash flow and sharpen the tail end of their portfolios. ""Many of these deals were already in progress during 2016 and we expect them to come to fruition this year. ""And finally, with limited exploration upside, increasing uncertainty around license extensions and domestic NOCs taking a more aggressive stance, the region has much less appeal than it did a couple of decades ago."" Kakaraparthi says several IOCs were seen retreating back to North America even before the oil price began to tumble. He expects this trend to continue, explaining that the overall investment climate for the majors is challenging, in Southeast Asia in particular. License expirations looming on many large assets over the next decade serve as a disincentive to spend and an incentive to sell. As for the buyers, he says: ""We expect to see a mixed bag, ranging from NOCs, domestic independents, refiners and utility players to private equity-backed independents. ""From a Chinese perspective, there are mature assets operated offshore from China by international players that could be in the frame for sale. ""As buyers, we see the Chinese NOCs as increasingly focused on ongoing domestic energy reforms and the impact it has on their overall business."" Tim Woodall, managing director of specialist oil and gas corporate advisory firm Miro Advisors, says the Wood Mackenzie expectations match what he is seeing in the market. ""The timing appears right for increased merger and acquisition activity in 2017, whether it be a continuation of companies deleveraging by asset divestments, or companies like Shell, BG, Repsol and Talisman tidying up their Asia portfolios post-merger, or some IOCs looking for growth in their 2017-18 time frame via M&A,"" Woodall says. Last year, the French utility Engie was reported to be seeking buyers for its oil and gas assets in Malaysia and Indonesia. Engie, which joins a number of European utilities in selling oil and gas exploration and production assets after a sharp drop in energy prices, is looking to raise up to $500 million from the sale, Reuters said, citing banking sources. The first bidding round for the assets is scheduled to be completed in mid-June. The package consists of five assets, including a 33.3 percent working interest in the Muara Bakau offshore gas and very light oil project in Indonesia operated by Italy's Eni. In Malaysia, Engie is selling 20 percent stakes in two exploration blocks, according to documents seen by Reuters. Potential buyers include Asian oil firms such as Indonesia's Pertamina, Malaysia's Petronas, Thailand's PTT Exploration and Production, and Japan's Inpex and Mitsui, as well as companies backed by private equity funds, the sources said. Deal-making in the oil and gas sector has slowed significantly since the sharp fall in oil prices nearly two years ago, while the number of assets on the market has climbed as companies seek to raise cash. karlwilson@chinadailyapac.com ( China Daily European Weekly 03/03/2017 page29)", -1969,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417164.htm,Phone takes aim at e-book lovers,,"Hisense introduces a dual-screen device with a Kindle-like display for people who like natural reading Chinese home-appliance manufacturer Hisense Group launched its first dual-screen smartphone, the A2, aimed at young consumers and e-book enthusiasts. The phone has a 5.5-inch display on the front and a 5.2-inch Kindle-like electronic paper display on the back, on which users can read and browse news. Priced at 2,999 yuan ($436; 412 euros; 352), it's equipped with some reading apps that provide a large number of free e-books and learning material for book-lovers and students. ""We expect more than 60 percent growth in overall sales this year, and the sales of medium- and high-end smartphones will take up 81 percent of sales of all types of our smartphones,"" says Fang Xueyu, general manager of Hisense's communications unit. Fang says Hisense hopes to maintain its dominant position in the dual-screen smartphone sector, targeting third- and fourth-tier cities, with a focus on Chengdu, Guangzhou and Hefei, along with Shandong province. ""We will increase spending on advertising and marketing in 2017. Advertising spend will increase more than 100 percent,"" Fang says. Sales of Hisense smartphones in overseas markets have shown strong momentum. Some 30 percent of the company's orders come from overseas. The dual-screen smartphone is not a novelty. In November 2014, Russian President Vladimir Putin presented a YotaPhone 2 - a dual-screen smartphone made by Yota Devices, a Russian startup - to President Xi Jinping as a gift. Six months later, the company introduced the device into the Chinese market through local distribution channels. Jin Di, research manager of IDC China, says Hisense is now hoping to attract consumers who like reading e-books. Roger Sheng, research director at consultancy Gartner Inc, says: ""It is a good try for Hisense to launch a dual-screen device, as it is very eye-catching, which might enhance brand awareness. However, there is a niche market for this kind of smartphone and shipments are not high."" Contact the writers at fanfeifei@chinadaily.com.cn and xiechuanjiao@chinadaily.com.cn - The stand of Hisense mobile phone at an industry expo in Shanghai. Shen Jingwei / For China Daily (China Daily European Weekly 03/03/2017 page27)", -1970,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417163.htm,Alibaba recruits global ambassadors to foster trade,,"French digital marketing professional Chloe Goncalves never expected that her work in China would make her an online celebrity. Her post on LinkedIn six months ago announcing her trip to China to work for Alibaba received more than 31,000 likes, 2,900 comments and brought 1,600 new followers worldwide, inspiring her to blog monthly about her adventures. In the past four months, Goncalves has been to the e-commerce giant's annual cloud computing conference, joined the Nov 11 Global Shopping Festival, visited Taobao villages, talked with boss Jack Ma and been busy trying to learn Chinese. ""Things in China are changing so fast, and the market and people seem ready to adopt new technology much faster than back home,"" she says. Goncalves is one of 32 associates from 14 countries chosen by Alibaba Global Leadership Academy for one year of training before becoming the global ambassadors. Many Chinese companies are expanding overseas and Alibaba hopes that half of its revenue will soon come from international business. ""A big challenge for expansion is a lack of understanding between China and other countries,"" says Brian Wong, Alibaba Group vice-president in charge of global initiatives. Many foreigners still regard China as an exporter of cheap products, even though the country has a thriving domestic consumer market where international products are in high demand. ""As an ecosystem that enables cross-border trade, we want to share this story of new China and the new economy, which is more about the rising middle class, millennials, innovation and globalization,"" he says. Consumption and services will dominate China's economic landscape by 2030, with the private consumer market reaching $9.6 trillion and accounting for 47 percent of GDP. The future Chinese consumer will be richer, older and online, according to a report by Morgan Stanley. Wong points out that foreign staff with expertise will help identify and navigate new markets, but more importantly ""help bridge China and international markets and enable local companies big and small use internet technology to trade globally."" Xinhua (China Daily European Weekly 03/03/2017 page25)", -1971,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417162.htm,Rail expansion powers growth for German firm,,"Demand for semiconductors widens China market for Infineon German semiconductor company Infineon Technologies AG says it aims to maintain double-digit growth in China this year as it benefits in part from the overseas expansion efforts of China Railway Rolling Stock Corp, the country's railway vehicle and equipment maker. Infineon, the producer of key semiconductors that help transform high-voltage electricity into power to drive CRRC's high-speed railways, posted revenue of 1.6 billion euros ($1.69 billion; 1.36 billion) in the Chinese mainland in its 2016 fiscal year ending in October, says Su Hua, president of Infineon in China. Su says the company's Chinese revenue managed a year-on-year growth rate of 15 percent last year. ""I believe the growth momentum will continue in 2017,"" he says. ""CRRC has grabbed several big orders from foreign countries, which will help boost our revenue."" CRRC said in December it aimed to generate 35 percent of its sales from overseas markets by 2025, up from 7 percent in 2015. According to Su, the German company will also benefit from China's burgeoning new-energy vehicles market, the energy sector and the Made in China 2025 initiative, which was designed to promote high-end manufacturing. Infineon is the world's second-biggest semiconductor supplier to the car sector, with a market share of 10.4 percent, behind Netherlands-based NXP Semiconductors which accounts for 14.2 percent, data from Strategy Analytics show. Globally, Infineon's automotive unit contributed more than 40 percent of its total sales. Its global revenue hit 1.65 billion euros, with operating profit of 246 million euros for the quarter ending in December. Zhang Zhiyong, founder and CEO of Wenfeng Automobile Consultancy, says that as vehicles become increasingly smart and digital, they will become like smartphones with four wheels. ""That trend will spur a huge demand for auto chips. But Infineon will face stronger competition in the high-speed railway sector,"" he says. masi@chinadaily.com.cn - Quality is checked on an Infineon Technologies AG semiconductor wafer in a sterile room at the company's factory in Regensburg, Germany. Guenter Schiffmann / Getty Images (China Daily European Weekly 03/03/2017 page25)", -1972,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417161.htm,UBS chief sees brighter prospects for 2017,,"Former head of German central bank sees 'upside potential' amid uncertainties When it comes to risk assessments, Axel Weber, chairman of UBS Group AG, is among the few who have been able to see things from both a regulatory and business perspective. A former German central bank governor and a member of the governing council of the European Central Bank, the Swiss bank chief sees political uncertainties as the No 1 risk facing the global economy and financial industry this year. After a wild and unpredictable 2016, risks could emerge from such quarters as the Brexit negotiations and the policy choices of the Trump administration in the United States, which could have a substantial impact on the world's major economies, he tells China Daily in an interview. Axel Weber, chairman of UBS Group AG. Jason Alden / Getty Images Nonetheless, Weber remains upbeat about prospects for the global economy and believes there will be an ""upside potential"" in global growth for the first time in five years. When it comes to UBS' China operations, Weber says the bank has no plan to shrink its presence despite a disappointing financial performance that saw its global net profit decline to 3.3 billion Swiss francs ($3.26 billion; 3 billion euros; 2.6 billion) in 2016 from 6.2 billion Swiss francs a year earlier. Instead, the bank has recently increased its stake in its securities joint venture in China, which Weber says its long-term engagement with the world's fastest-growing economy and wealth market. The following are edited excerpts from the interview: How do you view prospects for the global economy and the major risks in 2017? I think there is a good chance that, for the first time in the last five years, global growth may surprise on the upside in 2017. We might see stronger growth largely spearheaded by a strong US economy. Monetary policy normalization in the US is also likely to continue to progress, and that provides some upside for returns in financial markets. I expect 2017 to continue to be a good environment for equities as easy monetary policies still support a rotation out of fixed-income investments into equity investments. Financial markets are likely to continue to improve and financial institutions' and banks' profitability is likely to increase as a result of that. The key risks to the global economy are political, such as the outcome of Brexit negotiations and the mix and the timing of trade, fiscal and structural policies in the US. Then there are a number of election risks in Europe. How do you think the Trump presidency is going to impact financial regulation in the US and how is UBS preparing for the possible changes? We have built a solid capital position and our core Tier 1 capital ratio is roughly at 14 percent as we speak. We've done all the things that are needed on the regulatory side to be better equipped for the future. I don't think we will see a massive rollback of regulation at the global level. Nor will we see it in the United States. The banks have done a lot to improve their resilience compared with the pre-crisis level. I expect to see a new balance between fostering growth, which needs an intact and functioning banking system, and new regulation which is impacting, at least during the transition period, the financial system's ability to finance growth. So I do expect much less regulation going forward from the major economies. What do you think are the risks and opportunities facing China's economy? The property market will continue to be an issue for the Chinese authorities. Second is the change in the course of the renminbi since 2015. China has committed to open up its capital market. But it is going to happen in a controlled fashion and not as a ""big bang"" solution. We are going to continue to see the application of capital controls to provide an orderly transition. What is the priority of UBS in China in terms of business segments? The core of what UBS does internationally is wealth management, supported by a targeted business of investment banking and asset management. That is also our strategy in China. The country is a large growing economy, with the largest growing wealth market. So being a wealth manager in China is important. For institutional business, having an investment banking business with a structuring capability is important for us to get closer to clients. Many of the founders and owners of the companies will also do capital market transactions, and will receive and put funds through the wealth management service as they increase their private wealth, and as they become successful entrepreneurs. Why has UBS been increasing the stake in its joint venture in China? It shows our commitment with Chinese partners and is part of the long-term engagement plan that UBS has in China. We have a continuous plan to increase our onshore presence in China. We now have more than 600 people in the onshore business in China, and we will be doubling the head count by 2020. Our joint venture, UBS Securities, has been working very well for us. It is important for us to be part of China's success story and the process of the opening up of its financial markets. How do you see Chinese companies' M&A trend in 2017? Chinese M&A activities were strong in 2016. While we expect lower outbound activity this year, we are going to continue to see interest from Chinese investors to diversify their operations and invest their money not just domestically but also internationally. UBS has been a leading M&A adviser in the country, participating in many of the landmark deals, and we expect continued interest from our clients in this field. What do you think are the opportunities for UBS, as China promotes the Belt and Road Initiative? It will add investment opportunities in the Asian region. It is something we are observing very closely. Most of the projects will be related and linked to infrastructure investment. UBS is one of the banks that has always looked favorably at private and public partnerships in financing growth. UBS being present in all the major markets in Asia will contribute to this growth and to investment opportunities. We are not concretely involved in any specific projects yet, but I think the whole initiative is shaping up well. We believe such a targeted investment program will create more constructive interaction and dynamics in the region. It should be very favorable for growth and business opportunities and for banks like us in the region. As a former policymaker, what is your suggestion for Chinese policymakers? Striking the right balance between the countervailing forces in the economy is the challenge faced by Chinese policymakers. If interest rates were to rise, it could jolt growth and have a negative impact on the economy. If the rates were to fall further it could accelerate the depreciation of the currency and produce new financial bubbles in other areas. I think keeping the monetary policy as it is and using capital controls, to sustain the opening-up process in an orderly fashion, is an appropriate policy choice. lixiang@chinadaily.com.cn Bio Axel Weber Chairman of UBS Group AG Age: 60 Nationality: German Career: 2012 onward: Chairman of the Board of Directors of UBS AG 2011-12: Visiting professor, University of Chicago Booth School of Business, United States 2004-11: President of Deutsche Bundesbank; Member of the governing council of the European Central Bank; member of the board of directors of the Bank for International Settlements; 2001-04: Professor of International economics and director of the Center for Financial Research, University of Cologne, Germany; Member of the German Council of Economic Experts 1998-2001: Professor of applied monetary economics and director of the Center for Financial Studies, Goethe University of Frankfurt/Main, Germany Education: Habilitation and PhD in Economics, University of Siegen, Germany ( China Daily European Weekly 03/03/2017 page31)", -1973,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417160.htm,New chief named for bank regulator,,"The appointment on Feb 24 of Guo Shuqing, governor of Shandong province, as chairman of the China Banking Regulatory Commission will benefit the financial services sector in its reform, risk control and coordination efforts with regulators of related industries, according to researchers and economists. Guo, 60, replaces retiring Shang Fulin, 65, who has been CBRC chairman since October 2011. Born in August 1956, Guo gathered rich experience in economic and financial sectors before being named Shandong's governor. He helped design the country's economic reforms in the 1980s and 1990s and in 2001 was named vice-president of the People's Bank of China, the central bank, as well as administrator of the State Administration of Foreign Exchange. Guo went on to become chairman of China Construction Bank Corp in 2005 and chairman of the China Securities Regulatory Commission in 2011. Wu Qing, a banking research fellow at the Development Research Center of the State Council, once received academic guidance from Guo. As a high-ranking official and expert on Chinese economic reform and financial regulation, Guo has shown strong administrative skills that will strengthen the financial sector, Wu says: ""China still has a long way to go in terms of financial reform, which requires a leader such as Guo, who has the courage and insight to make tough decisions based on his knowledge and experience. I believe he is a man with lofty goals who can get the job done."" According to Zhou Jingtong, a senior economist at Bank of China's Institute of International Finance, ""Guo's experience as a banker, provincial governor and head of China's top securities regulator, combined with his deep understanding of macroeconomics, will help him avoid major financial risks, many of which are associated with banks and local governments."" Guo's appointment has raised positive market expectations, says Qu Tianshi, an economist at ANZ Group. ""His experience at the central bank and the China Securities Regulatory Commission enabled him to strengthen communication with other financial regulators. It will further help improve regulatory coordination between the central bank and the other three financial regulators,"" Qu says. Yang Tao, assistant director of the Institute of Finance and Banking under the Chinese Academy of Social Sciences, says the job of CBRC chairman requires the incumbent to enhance financial regulatory coordination, as financial risks often surface in areas not clearly under the purview of any particular sector regulator. Li Xiang contributed to the story. jiangxueqing@chinadaily.com.cn - Guo Shuqing, the new chairman of the China Banking Regulatory Commission. Ren Qi / China Daily (China Daily European Weekly 03/03/2017 page27)", -1974,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417159.htm,Chinese money pours into London,,"Chinese investors broke records by spending 805 million ($1 billion; 944 million euros) on property in London's West End in January, around 80 percent of the amount spent by Chinese investors in that market during all of 2016. Total transactions in London's West End commercial property market during January came to 841 million. Four out of six deals during the period involved Chinese buyers, according to the latest data from real estate agent Savills, which said the numbers confirmed the trend of increasing Chinese investment in London's property market since Britain's vote to exit the European Union in June, and with Brexit uncertainties leading to a depreciation in the pound of more than 10 percent against the Chinese yuan. Another reason for the surprising January figure was a single massive transaction involving CC Land Holdings, which acquired One Kingdom Street in Paddington for 292 million. By Savills' calculation, it was the second-biggest transaction by a Chinese investor in the West End market. It was one of three deals, each worth more than 200 million. Paul Cockburn, director of the central London investment team at Savills, said the influx of overseas investors prompted by the pound sterling's devaluation was continuing. ""From a Chinese investor's standpoint, London looks attractive, as the currency shift means that entry prices may appear 15-20 percent lower than this time last year."" The numbers from Savills match the data from property broker JLL showing that Chinese bought more than 3.15 billion worth of central London commercial assets in 2016, accounting for 22.5 percent of total central London transaction volume. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 03/03/2017 page25)", -1975,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417158.htm,China is now Germany's top trade partner,,"China overtook the United States and France as Germany's most important trading partner in 2016, according to Germany's Federal Statistics Office on Feb 24. China's trade volume with Germany exceeded 999.1 billion yuan in 2016, up 2.6 percent from the previous year, according to China's General Administration of Customs. Xue Rongjiu, deputy director of the Beijing-based China Society for WTO Studies, says he expects the Sino-German bilateral trade relationship to be further strengthened in the future, should the US administration pursue trade protectionism that might shake the confidence of a majority of Chinese exporters. ""The Trump administration has been pressing both China and Germany to appreciate their currency exchange rates to maintain competitiveness in manufacturing,"" Xue says. ""Both China and Germany are expected to forge closer business and political ties to tackle the challenge from the US under the current global business setting."" Earlier, China had already become Germany's largest trading partner in Asia, and Germany has ranked as China's largest trading partner from the European Union for years. Germany mainly exports mechanical and electrical products, transportation-related equipment and chemical products to China. It imports machinery, textiles, furniture and toys from China. In terms of two-way investments, the accelerated growth has become an ""important pillar"" of economic and trade relations between the two countries, said Sun Jiwen, spokesman for the Ministry of Commerce, at a news conference in February. At the end of 2016, China gave a green light to 9,394 German investment projects in the country, with a total value of $28.18 billion, according to the ministry. Contact the writers through jingshuiyu@chinadaily.com.cn (China Daily European Weekly 03/03/2017 page27)", -1976,2017/3/3,http://europe.chinadaily.com.cn/epaper/2017-03/03/content_28417157.htm,Millennials drive a retail revival,,"Changing consumer preferences, shopping habits and rising incomes mean that sellers should be reshaping their strategies to capture the young Millennials aged 18 to 37 are now a crucial 415 million-strong segment of Chinese consumers, constituting nearly a third of the nation's total consumers. Their changing preferences, shopping habits and spending power are influencing retailers and brands alike to reshape their business strategies, promising to infuse fresh vigor into the economy. One of the most striking aspects of this trend is the re-emergence of physical shopping, as opposed to online shopping, as a popular pastime - retail therapy, if you will. Zeng Yingqi, 26, an institutional client manager at a state-owned securities company, buys almost everything online, from hairpins to handbags, but still needs to shop once a week for leisure. ""I can get whatever I need on the internet. But it can't replace the shopping habit. In stores, I can see and touch the products, try them on, and also spend time with my friends,"" she says. Recent reports show that Chinese millennials, mostly born in the 1980s and 1990s, though internet-savvy, have a tendency to spend more time and money on experience-based consumption such as shopping at physical stores, traveling and dining out. Brands are closely studying such consumers' shopping patterns and preferences. They are ""entering their prime consumption years"", according to a Goldman Sachs report. China, which will soon be the world's largest consumer market, has been abuzz with e-commerce, mobile games and live streaming platforms. Online business models have been burgeoning in the digital era to woo the millennials. But now, it seems, consumerism has come full circle in China, with attention shifting back from mobile screens to real-world shopping. A report by global real estate advisory firm CBRE China found that tech-savvy millennials do like to shop online, but only physical retail - particularly shopping centers - can provide them with the experiences and social elements they crave. Tangibility and experience are listed as the top two reasons for millennial consumers to visit physical stores, according to CBRE's research. ""I think retailers should integrate their online channels and offline stores more deeply. I mean real integration,"" says Zeng, adding that several times it took her days to find a pair of shoes in another branch of the same store. ""The physical stores can curtail inventory and serve only as an experience center."" Ann Fishman, founder of Generational Targeted Marketing, says: ""Millennials' concerns must be your concerns."" She has been at the forefront of major generational trends for decades. By 2025, Chinese millennials' aggregate income is estimated to surge to $3 trillion (2.83 trillion euros; 2.41 trillion) as average annual incomes increase from $5,900 to $13,000, according to Asian consumer research by Goldman Sachs. Such an increase in spending power, the research says, would amount to more than half the estimated $5 trillion added to total US private consumption expenditure over the next 10 years, if the US were to sustain the compound annual growth rate of 3.7 percent of the past decade. So, retail marketers are racking their brains to figure out how to win over this most influential consumer segment. Alibaba Group Holdings Ltd has linked up with department store chain Intime Retail Group. The partnership has reportedly given the e-commerce giant access to Intime's inventory and allowed its online customers to pick up orders from physical stores. Other retailers are also adopting similar strategies. Shanghai Malianghang (Hong Kong) Design Co, a three-year-old custom-made jewelry company that started online, opened its first retail store in Shanghai last year and plans to open up to 30 stores nationwide within two to three years. Company CEO Bill Hu, a post-'90s person who manages a cohort of millennial staff, believes consumers should be able to ""feel the products"", and that it is essential for his customers to experience on their own how to use 3D printing technology to make custom jewelry. ""At a time when winning customers online has become costlier, it is particularly important for online retailers to get the offline side up to standard,"" Hu says. For its part, the Chinese government is also determined to strengthen online and offline integration in retail. Under a guideline promulgated in late November, the central government urged local governments to help business to improve the layout of physical shops, reduce rent and ease restrictive terms for decoration and remodeling, in an effort to catalyze a ""real circulation revolution"" in the sector, according to Vice-Minister of Commerce Fang Aiqing. CBRE Research says the retail industry would do well to promote experience-based elements in shopping and focus on providing an environment for visitors to socialize and relax. Retail is not the only economic segment that is changing in response to millennials' needs. Travel, catering and entertainment are fast adapting to the trend. In an email, Yan Xuan, president of Nielsen Greater China, says automobile retailers should start to think about how many seats they would install in their showrooms for visiting prospective customers and what unique elements should be included in their products' design to satisfy the needs of the younger generation. Similarly, retailers of baby and maternal products should start developing strategies to retain young mothers, he says. The growing number of millennials, according to Yan, indicates that the outlook for China's future domestic consumption will continue to be good. ""The young generation prefer to buy more than basic consumer goods, and they are willing to foot the bills related to their interests and dreams. This is expected to further drive domestic consumption,"" Yan says. In its recent white paper The Chinese Consumer in 2030, the Economist Intelligence Unit said the new-age consumer has come of age, with consumption driving economic growth, which is projected at an annual 5.5 percent between 2016 and 2030, eventually accounting for 50 percent of the world's second-largest economy. Cheng Yu contributed to the story. Contact the writer at jingshuiyu@chinadaily.com.cn (China Daily European Weekly 03/03/2017 page26)", -1977,2017/3/3,http://www.rte.ie/news/2017/0303/856914-tuam-mother-baby/,Human remains found at Tuam former mother-and-baby home,,"""Significant quantities""-of human remains have been discovered at the site of the former mother-and-baby home in Tuam, Co Galway. It comes after the Mother and Baby Homes Commission of Investigation began test excavations at the site of the children's burial ground on the Dublin Road housing estate in Tuam, Co Galway in October 2016. The commission was established following allegations about the deaths of 800 babies in Tuam over a number of decades and the manner in which they were buried. In a statement today, the commission said-significant quantities of human remains have been discovered in at least 17 of the 20 underground chambers which were examined earlier this year. It added: ""These remains involved a number of individuals with age-at-death ranges from approximately 35 foetal weeks to two-three years."" The-mother-and-baby home operated from 1925 to 1961; a number of the samples are likely to date from the 1950s, the commission said.-Further scientific tests are being conducted.- The commission said it was-shocked by the-discovery and is continuing its investigation into who was responsible for the disposal of human remains in this way. Meanwhile, the commission has asked that the relevant State authorities take responsibility for the appropriate treatment of the remains. The coroner has been informed. Minister for Children and Youth Affairs Katherine Zappone said it was-very sad and disturbing news. It was not unexpected as there were claims about human remains on the site over the last number of years. ""Up to now we had rumours. Now we have confirmation that the remains are there, and that they date back to the time of the mother-and-baby home, which operated in Tuam from 1925 to 1961,"" Minister Zappone added. Katherine Zappone says the discovery of human remains at a former mother-and-baby home in Tuam is very disturbing https://t.co/TMpF0Ohked pic.twitter.com/9r51qjUdYo ""?RT? News (@rtenews) March 3, 2017 The minister said that we must respond sensitively and respectfully to the situation. She added that her department had brought together all of the key departments and agencies to set out a way forward. Today is about remembering and respecting the dignity of the children who lived their short lives in this home. ""We will honour their memory and make sure that we take the right actions now to treat their remains appropriately,"" she added. .@KZapponeTD -commission said a sig no. of remains found at Tuam Mother & Baby home but numbers not known @rtenews pic.twitter.com/lLqgb6k3xj ""?Martina Fitzgerald (@MartinaFitzg) March 3, 2017 Ms Zappone-also indicated it was up to the coroner in north Galway and Galway County Council to decide if there should be further excavations of the site. She also said that Galway County Council would engage with local residents and those affected to decide what happens to the remains. In relation to excavations at the other 13 mother-and-baby homes that are being investigated, she said it was a matter for the commission of investigation, which is independent. Records previously show there were 796 children who died at the Tuam home when it was in operation.", -1978,2017/3/3,http://www.rte.ie/news/2017/0303/856961-tuam-babies-housing-estate-residents/,Residents of estate on Tuam baby home site meet council,,"Residents from the housing estate constructed on the site of the former mother and baby home in Tuam have been invited to a meeting to discuss this morning's revelations that a significant amount of human remains was found at the site. The meeting has been organised by Galway County Council and is taking place at the Town Hall in Tuam this afternoon. Residents were informed of the commission's findings in a leaflet drop to all homes in the Dublin Road housing estate this morning. The council has said it recognises that the scale of the discoveries will be upsetting and difficult for many locals, several of whom tended the site where the remains were located for several years. It is providing a dedicated helpline for anyone who wishes to make contact and says that the Health Service Executive will offer counselling services to those who would like to avail of them. This afternoon's meeting is being held behind closed doors and the cuuncil has asked that the privacy of residents be respected. The Commission of Investigation has confirmed to the council that its work at the site has now been completed. During the course of the most recent excavation, the grass surface was removed in its entirety, as archaeologists carried out a deeper and more detailed examination. Galway County Council says it will consult with local residents about the long term future of the site. It is understood there are no plans to carry out further excavation in a playground adjacent to the site or in gardens of the homes backing onto the burial ground.", -1979,2017/3/3,http://www.rte.ie/news/assembly-election-2017/2017/0303/856868-assembly-election-tracker/,Live NI Assembly vote turnout highest since 1998,,View Comments, -1980,2017/3/3,http://www.rte.ie/news/2017/0303/856903-alan-shatter/,Kenny had 'casual relationship with truth' - Shatter,,"Former justice minister Alan Shatter has welcomed the judgment of the Court of Appeal yesterday and said the last three years were the most difficult of his life. The court yesterday issued a declaration that-conclusions in the Guerin Report that were critical-of him were in breach of Constitutional justice. It follows a finding by the court last year that Mr Shatter's Constitutional rights were breached by the report,-which examined the handling of complaints by garda whistleblower Sergeant Maurice McCabe. - Mr Shatter said he believed he is entitled to an apology from Taoiseach Enda Kenny for the manner in which he was treated and on behalf of the State. He said the Fennelly Commission Report had established clearly that the Taoiseach, in the account he gave to it, had ""a casual relationship"" with the truth. Speaking on RT?'s Today with Sean O'Rourke, Mr Shatter said he was subject to false charges in the Guerin Report and the report-should be withdrawn from both house of the Oireachtas and the D��il record be corrected.- ""The unfortunate reality is that in some areas, the Taoiseach has a casual relationship with the truth"", he said. He said a reasonable solution would be to remove or redact the offending paragraphs that relate to him or a note should be attached to detail the outcome of yesterday's court proceedings which exonerated him. Mr Shatter resigned on 7 May 2014 and said-he had no choice but to resign and the Taoiseach had dealt with the matter wrongly.- Mr Shatter agreed that ""of course"" he was sacked by Mr-Kenny when the Taoiseach told the D��il that he did not have confidence in him. He said the ""clear message"" he took was to resign and his position subsequently was to become untenable once the Guerin report was published. Mr Shatter said he was very disappointed by the lack of support he received from his parliamentary party while fighting a three-year legal battle. Timeline of events leading to Shatter resignation He also said that there was ""never anything inappropriate"" said to him by Garda Commissioner N��ir��n O'Sullivan or former-commissioner Martin Callinan in relation to Sgt McCabe. He said he believes it would have been ""a great assistance"" if the O'Higgins Commission had been held in public. Mr Shatter said when you know you are telling the truth and you are constantly accused of telling lies and being told you are part of ""crazy conspiracies"" it is difficult. He said he was mocked and accused of being arrogant for defending himself and said he was the only member of the last D��il constantly accused of being arrogant. He added that he hopes the findings of the Court of Appeal will not be appealed to the Supreme Court so he can get on with his life. Taoiseach rejects Shatter's comments In response to Mr Shatter's comments, a spokesman for the Taoiseach said he rejected the charge. - He also said Mr Kenny had told the D��il after the publication of the O'Higgins Report that he was very pleased to acknowledge that it-found that the former justice minister acted properly at all times in relation to the handling of allegations made by Sgt McCabe. The spokesman also said the Guerin Report has been removed from government websites. The spokesman also referred to Mr Shatter's-May 2014 resignation letter which described the Taoiseach as -""extraordinary""-doing and ""extraordinary job""-during a very difficult time for the country.", -1981,2017/3/3,http://www.rte.ie/news/2017/0303/856841-northern-irelands-assembly-election/,Some NI constituencies see 10% rise in turnout,,"Turnout in the Northern Ireland Assembly election has hit its highest level since the year of the Good Friday peace agreement. Almost two thirds of the electorate voted in yesterday's poll - with the future of powersharing hanging in the balance. Turnout for the second contest in less than a year was 64.78%,-significantly higher than the 54.91%-of 2016. A total of 812,783 ballots were cast and a-number of individual constituencies had recorded a rise in excess of 10%. Sinn F��in is likely to have a good election as the figures so far indicate that nationalists turned out in greater numbers than last year. The DUP held 38 seats compared to Sinn F��in's 28 after the 2016 elections. The first results are due early in the afternoon, with some of the 18 constituency counts set to extend into Saturday. A total of 228 candidates are vying for the 90 seats in Stormont's slimmed-down devolved legislature. In the first Assembly election after devolution began, in June 1998, 69.88% turned out. It came just months after the Belfast Agreement, which largely ended the 30-year conflict. More on Assembly Election 2017 Full Assembly Election coverage- Latest results including breakdown of constituency counts Live: Updates as they happen First boxes open in #omagh #AE17 pic.twitter.com/mmNzwPO6ln ""?EileenMagnier (@EileenMagnier) March 3, 2017 The last power-sharing coalition executive led by the two largest parties at Stormont - the Democratic Unionists and Sinn F��in - collapsed in January. If the former partners in government are again returned as the main players, they will have three weeks to resolve their multiple differences and form a new administration. As co-guarantors of the Good Friday Agreement, it-is thought the British and Irish governments will be keen to begin hosting talks early next week. They will hope to encourage the parties to resume power-sharing within the available three-week window.The re-imposition of direct rule from London is on the cards if the post-election talks fail. If the three-week post-election deadline passes, Northern Ireland Secretary James Brokenshire is legally obliged to call yet another election. But, in those circumstances, the British government may well move to pass emergency legislation to suspend devolution for the first time in ten years. Democratic Unionist Party MP Gregory Campbell-said it appears there has been an increased turnout in this Northern Ireland election but that it is impossible to predict the outcome.- Speaking on RT?'s Morning Ireland, he outlined the changes in this election that could make it harder to predict the outcome.- ""I think the one big issue that is causing people difficulties in terms of projecting what final outcomes might be is the reduction from six-to five-in terms of seats per constituency. ""Everyone has said that the fifth seat in every constituency is going to be exceptionally close to call.""- In response to-Michelle O'Neill's stance that Sinn F��in will not return to power-sharing if Arlene Foster remains as DUP leader, he said it is a very ""negative way"" to begin discussions. ""If they are seeking to say A, B and C are the only people that they we will be prepared to go into government with and not D, E and F and Arlene Foster is one of those, that is not the way to get a positive outcome. We don't say to them if Gerry Adams remains as president of Sinn F��in we will not be prepared to get into government with them.""- He said there is no discussion in the DUP about replacing Ms Foster and appointing someone as First Minister in Northern Ireland.- ""The only discussion would be when Arlene Foster as the leader of the DUP would take up the role of First Minister if we are in the position to take that."" He said the party accepts there has been a lot of anger directed at the DUP over the Renewable Heat Incentive-scheme.- The RHI aimed to cut the cost of green energy to encourage people off fossil fuels but ended up landing ministers with a massive overspend. It was rolled out by the former Department of Enterprise, Trade and Investment, which was headed at the time by Ms Foster. Sinn F��in's Alex Maskey said he hopes voters in Northern Ireland will respond to the ""positive and reasonable"" campaign run by his party. The West Belfast MLA said Sinn F��in had conducted a very strong and positive campaign. He said the party in government was not looking for fresh negotiations at the Assembly but rather to implement all of the agreements already reached, which he said was very reasonable. Mr Maskey said that if re-elected, Ms-Foster would have to step aside while the RHI inquiry is under way to maintain public credibility in the institutions.", -1982,2017/3/3,http://www.rte.ie/news/2017/0303/856932-shoreham-air-disaster/,Stunt pilot blamed for killing 11 in England,,"The Shoreham air disaster was caused by the pilot failing to achieve sufficient height during a loop manoeuvre, accident investigators have concluded. Eleven people were killed on 22 August 2015, when Andrew Hill, 52, crashed a vintage jet onto the A27 in West Sussex during an air show. The speed that the 1955 Hawker Hunter entered the manoeuvre was too low and it failed to use maximum thrust, the final report by Britain's Air Accidents Investigation Branch has found. Flight trials indicated the pilot could have pulled out of the stunt up to four seconds after the aircraft reached the top of the loop, but Mr Hill either did not perceive it was necessary or did not realise it was possible, the AAIB said. The pilot had not received formal training to escape the manoeuvre and had not had his competence to do so assessed, the report found. The speed, height and thrust followed in the Hunter were ""very similar"" to another aircraft that the pilot had flown during displays in the run up to the Shoreham event, AAIB principal inspector Julian Firth said. He added that it was possible ""the pilot recalled the wrong numbers, essentially mixing up the two aircraft"". The severity of the outcome was found to be due to the ""absence of provisions"" to mitigate the effects of an aircraft crashing in an area outside the control of the air show organisers. Mr Hill, from Sandon, Hertfordshire, survived the crash but suffered serious injuries. He is being investigated by Sussex Police for possible manslaughter. He was interviewed on seven occasions by AAIB investigators but because of restrictions advised by his doctors they were not able to question him about his conduct during the flight, the AAIB said. Mr Hill did not recall events between the evening of 19 August and regaining consciousness in hospital after the accident. He was therefore able to describe his normal practice but not the events on the day of the crash. The pilot was attempting a bent loop, in which the aircraft pitched up into a loop and then rolls before leaving the manoeuvre in a different direction to its entry. His display authorisation permitted him to carry out aerobatics at a minimum altitude of 500ft and the normal technique would be to enter the loop at an airspeed of at least 350 knots and use maximum engine thrust to achieve a height of at least 3,500ft at the apex. But Mr Hill flew at just 185ft at a speed of just 310 knots, reaching 2,700ft at the top of the loop. Cockpit footage during the flight showed Mr Hill ""alert and active"", with no suggestion he had passed out, investigators said. AAIB Julian Firth said: ""The aircraft crashed because at the top of its aerobatic manoeuvre it was too low to complete it. ""The reason that the results of this crash were so disastrous is because measures to protect the public were not effective."" A number of safety recommendations were made by the AAIB to the Civil Aviation Authority over improving air show safety. These include reviewing arrangements for the regulation of ex-military aircraft.", -1983,2017/3/3,http://www.rte.ie/news/2017/0303/856844-damien-mclaughlin-court/,Man in court over David Black murder,,"A man charged in connection with the murder of Northern Ireland prison officer David Black in 2012 has appeared at the High Court in Dublin. Damien Joseph McLaughlin, 40, with an address at Glenties Rd, Belfast, was arrested yesterday in Co Donegal on foot of a European Arrest Warrant. He is wanted by the authorities in Northern Ireland to face allegations that he aided and abetted in the murder of Mr Black and was in possession of an article suspected of being for the commission of the act of murder. Mr Black, 52, was shot dead on the M1 motorway on 1 November 2012 by dissident republicans as he drove to work in Maghaberry jail. Mr McLaughlin was also charged with engaging in conduct in preparation for acts of terrorism and of being a member of a proscribed organisation. He was remanded in custody until 20 March.", -1984,2017/3/3,http://www.rte.ie/news/assembly-election-2017/2017/0303/856965-fay-watson-alliance/,Alliance candidate 'upset' after baby denied entry to count centre,,"An Alliance candidate in the Northern Ireland Assembly election said she was left ""upset and distressed"" after her six-month-old baby was denied entry to the count centre. Mid-Ulster candidate Fay Watson, who is breastfeeding, arrived at the count centre at in Ballymena with her son Charlie but was told she could not bring him in as it was against the rules. Children under 12 are not allowed into the count, she said. However, Ms Watson said that as she is a breastfeeding mother she thought an exception could have been made. Ms Watson said she stood outside with her child for half an hour until she was eventually allowed to bring him in. ""I'm very grateful that they sorted it out for me but it was very distressing. ""I knew that children under 12 weren't allowed to gain entry, but in the case of a breastfeeding woman I thought I would be able to take him in because there's no other way to feed him."" ""Obviously I can't leave him up in the cafe with a stranger. It was very upsetting to me,"" she added.", -1985,2017/3/3,http://www.rte.ie/news/health/2017/0303/856934-inmo-hse-wrc/,INMO-HSE talks resume at Workplace Relations Commission,,Talks between the the Irish Nurses and Midwives Organisation and the Health Service Executive-got under way again at 11.30am at the Workplace Relations Commission in a bid to avert a work-to-rule scheduled for Tuesday. A spokesperson for the INMO told RT? News that the Executive Council would meet tomorrow afternoon to discuss the outcome of today's talks.- The dispute centres on staff shortages and incentives to recruit and retain nurses. The HSE says agreeing to the demands would cost an extra �180m a year.-, -1986,2017/3/3,http://www.rte.ie/news/2017/0303/856848-us-politics/,Sessions claims a 'witch hunt' - Trump,,"President Donald Trump said his Attorney General Jeff Sessions could have been more accurate in what he said about his contacts with Russian officials but blamed Democrats for blowing up the controversy for political reasons. ""Jeff Sessions is an honest man. He did not say anything wrong. He could have stated his response more accurately, but it was clearly not intentional,"" Trump said via Twitter. He accused the Democrats of ""overplaying their hand"" and ""losing their grip on reality"" and described the ""illegal leaks of classified and other information"" as a witch hunt"". Mr Sessions said he would stay out of any investigation into alleged Russian meddling in the 2016 presidential election but maintained he did nothing wrong by failing to disclose he met last year with Russia's ambassador. His announcement did nothing to quell concerns among congressional Democrats, a number of whom called for him to step down. Mr Trump and Republicans who control Congress are trying to move past early administration missteps and focus on issues important to them, including immigration, tax cuts and repealing the Obamacare healthcare law. US intelligence agencies concluded last year that Russia hacked and leaked Democratic emails during the election campaign as part of an effort to tilt the vote in Mr Trump's favor. The Kremlin has denied the allegations. Russian Foreign Minister Sergei Lavrov also described the scandal over contacts between the Russian ambassador and Mr Sessions as a ""witch hunt"", the RIA news agency reported. Meanwhile, Vice President Mike Pence used a private email account to conduct public business as governor of Indiana, at times discussing sensitive matters and homeland security issues, and the account was hacked last summer, the Indianapolis Star reported. Emails released to the Indianapolis Start in response to a public records request show Mr Pence communicated via his personal AOL account with top advisors on topics ranging from security gates at the governor's residence to the state's response to terrorism attacks across the globe, the newspaper reported. Indiana law does not prohibit public officials from using personal email accounts, the Star said. The newspaper-said that in response to its investigation the vice president's office confirmed that ""Mike Pence maintained a state email account and a personal account. ""As Governor, Mr. Pence fully complied with Indiana law regarding email use and retention,"" his office told the paper. ""Government emails involving his state and personal accounts are being archived by the state consistent with Indiana law, and are being managed according to Indiana's Access to Public Records Act."" As Mr-Trump's running mate on the 2016 campaign trail, Mr Pence criticised the Hillary Clinton for using a private email server for official communications --a scandal that dogged-her throughout the race. The reporter who broke the story, Tony Cook, told CNN that Mr Pence's spokesman had ""downplayed any comparisons to Hillary Clinton's use of a private email server and email account.""", -1987,2017/3/3,http://www.rte.ie/news/2017/0303/856926-midlands-sexual-assault-case/,Five questioned over alleged sexual assault in midlands,,Five people have been arrested over an alleged sexual assault in a midlands town late last year. Garda�� say four teenage and one juvenile male were arrested on Wednesday. It is understood a teenage girl has alleged she was sexually assaulted by a number of males after she accepted a lift on 27 December. A garda spokesman said the five males were released on Wednesday and a file is being prepared for the Director of Public Prosecutions., -1988,2017/3/3,http://www.rte.ie/news/2017/0303/856923-water-charge/,Coveney: No final decision on water charge refunds,,"Minister for Housing, Planning and Local Government Simon Coveney has said it is ""not necessarily the case"" that Fine Gael is open to refunding water charges. Speaking in Galway this morning, Mr Coveney said it was now accepted that water charges would be abolished for the vast majority of households.- But he said he was awaiting a recommendation on refunds from the Oireachtas Committee on water charges. He would not be drawn on his own views on the matter but said people who had paid charges should not be disadvantaged.- Minister Coveney said there was still no agreement on how to deal with people with excessive levels of usage and-said any solution had to be compliant with the European Water Framework Directive.- He said while he would work with Fianna F��il to try and find solutions, he would not recommend a course of action that he knew to be both illegal and irresponsible.- The minister said he wanted to reassure the public that there was no intention to ever privatise the country's water infrastructure.- He said there might be a need for a constitutional amendment to enshrine that position but that he was confident agreement on that issue could be easily achieved.- -", -1989,2017/3/3,http://www.rte.ie/news/2017/0303/856910-dublin-garda/,Garda�� confident criminal gangs will be dismantled,,"The Garda officer in charge of policing the feud in Dublin's north inner city has said he has no doubt that the two criminal organisations involved will be dismantled. Ten people have so far been shot dead in the feud between the Kinahan and Hutch gangs. Chief Superintendent Pat Leahy said he believes the objective of Kinahan Gang was to create a mafia type monopoly of crime in the city. He also said justice for the gangs was ""at the barrel of a gun"". He said recent Garda seizures and successes had made them paranoid and they would begin ""cleaning house"" as they viewed those on the periphery as ""expendable"" The only future for those involved in organised crime particularly at the outer levels of the gangs was, he said, long-term imprisonment or ""a shallow grave"" Chief Supt Leahy accepted that armed garda�� on the streets of Dublin was not normal policing, but it was necessary for the preservation of life He said checkpoints were in areas where gang feud targets live and 18 attempts on peoples""?lives had been prevented.", -1990,2017/3/3,http://www.rte.ie/news/2017/0303/856885-kim-jong-nam/,Malaysia to deport suspect in Kim murder,,"A North Korean suspect detained by Malaysia in connection with the murder of Kim Jong-nam will be deported to Pyongyang and not allowed back, the Malaysian deputy prime minister said. ""He was found not to have worked for the company where he was said to have worked, and instead was carrying out activities Malaysia will not stand for,"" Ahmad Zahid Hamidi told reporters. Ri Jong Chol, a suspect in the killing of the estranged half-brother of North Korean leader Kim Jong-un, was taken to the immigration office wearing a bullet proof vest to prepare for his deportation. Malaysia has said it does not have enough evidence to charge him. Mr Zahid also said Malaysia will investigate Glocom, a North Korea-linked company operating an arms business in the country.", -1991,2017/3/3,http://www.rte.ie/news/business/2017/0303/856854-spotify-subscription-numbers/,Spotify extends streaming lead with 50 million subscribers,,"Spotify has extended its lead as the world's largest streaming company as it announced-that it had 50 million paying subscribers. The Swedish company posted the figure on Twitter. Apple Music, its closest competitor, said in December that it had 20 million subscribers. The update was the first from privately-held Spotify since September. Spotify, which has not yet shown a profit as it spends to grow internationally, is considering a potential US-stock market listing, according to a February TechCrunch report. Spotify said in June that it had a total of 100 million users, including on its free, advertising-backed tier which is the bane of some record executives. It has maintained its edge despite concerted efforts from competitors. Apple, which launched its streaming service in 2015, and rap mogul Jay Z's upstart Tidal have both tried to woo listeners by offering exclusive material. Online retail giant Amazon in October entered the streaming war by giving a discount rate to subscribers who use the company's speakers. Other competitors include Paris-based Deezer, whose strength lies in Europe, and Seattle streaming pioneer Rhapsody. Streaming of unlimited, on-demand music online has rapidly grown in recent years, transforming the music industry. The number of paid subscriptions to streaming services more than doubled in the United States last year alone. Streaming has helped bring the first substantial growth to the recording industry since the dawn of online music, although some artists complain that far too little goes back to them. Spotify's model includes a service that is easy to use and makes the most music available rather than seeking out exclusives. However, in a turn towards original material, Spotify said last week that it was starting three podcasts.", -1992,2017/3/3,http://www.rte.ie/news/2017/0303/856846-noor-salman-orlando-court/,Widow of Orlando gunman must stay in jail,,"The widow of the gunman who killed 49 people at a gay nightclub in Florida must remain in jail after prosecutors argued that she was a threat to the community and a flight risk, a US judge ordered. The federal judge in Florida stayed another judge's order issued on Wednesday that would have released Noor Salman, 30, from a California jail. He put the release order on hold pending further arguments in the case. Ms Salman was arrested in California in January on federal charges she knew before the June 2016 shootings in Orlando that her husband, Omar Mateen, was planning the attack and concocted a cover story for him. US District Judge Paul Byron in Orlando ordered Ms Salman detained and set a Wednesday deadline for her lawyers to respond to prosecutors' arguments that she should be jailed pending her trial in Florida. She is charged with obstructing justice and aiding Mateen in his attempt to provide material support to the so-called Islamic State group. Prosecutors argued in a motion that the seriousness of the charge related to Islamic State meant Ms Salman should be kept in jail. ""No pretrial release condition or combination of conditions may be imposed to reasonably assure the defendant's appearance as required or the safety of the community,"" they said. They also said that Ms Salman was a flight risk since she was unemployed and had moved to California, where she has relatives, and had almost no ties to Florida. Her family also owns property in the Middle East, they said. Charles Swift, Ms Salman's lawyer, said the judge's order keeping her jailed pending the filing of more motions was routine. US Magistrate Judge Donna Ryu on Wednesday had cleared the way for Ms Salman's release and appeared to throw doubt on the government's case against her. Judge Ryu had ordered her to live with her uncle in Rodeo, California, undergo GPS monitoring and leave home only for court and medical appointments. She set a $500,000 bond. Mateen was killed in a shootout with police after a standoff at Orlando's Pulse nightclub and carried out the deadliest mass shooting in modern US history. Before the shooting he called emergency services and swore allegiance to IS.", -1993,2017/3/3,http://www.rte.ie/news/2017/0302/856679-lotto-winner-dublin/,Ticketholders make contact to claim �12.9m jackpot,,"The National Lottery has said the holders of the winning ticket for last night's �12.9m jackpot have made contact to make arrangements to claim their prize money. The-winning-Quick Pick selection-ticket-was purchased in the SuperValu store there yesterday. The �12,849,224-Lotto jackpot is the largest jackpot of 2017. The Lotto jackpot had been rolling over since 28 December. The National Lottery says �14.6 million has been raised for the Good Causes fund from this roll-over series. There was also one winner of the Match 5 plus the bonus prize of �179,034, which was bought in another SuperValu supermarket in Portlaoise, Co Laois.", -1994,2017/3/3,http://www.rte.ie/news/2017/0302/856791-rte-investigates-st-john-of-god-community-services/,HIQA may stop charity running residential services,,"RT? Investigates has learned that the Health Information and Quality Authority has warned St John of God Community Services that it may stop the charity from running residential services for the intellectually disabled at its campuses in Kildare and Louth, where over 170 people live. During the past 18 months, a number of HIQA inspection reports have reflected an increasing dissatisfaction with how St John of God is running its institutional-style residences for the intellectually disabled, including failures to provide a safe environment for some residents. Senior officials from HIQA issued the warning last week when they met with the board of trustees of St John of God Community Services. RT? understands that HIQA told last week's meeting that should another serious safety issue emerge in the next six months; the authority may start a legal process that could result in either the closure of the charity's campus-based residential services or the handing over of their management to another provider such as the Health Service Executive. With 760 people living at 80 so-called designated centres, St John of God Community Services is one of Ireland's largest providers of residential care for those with an intellectual disability. In 2015 the HSE paid it �131m to operate its services, which includes clinics, training and day services as well as homes. In a letter to staff written yesterday in the wake of the meeting with HIQA, Brother Fintan Brennan Whitmore, the acting group chief executive of St John of God Hospitaller Ministries, said: ""We are targeting the next six months for an intensive all-out commitment to change our way of doing things.""?He added: ""You should also be aware that during this six-month period should a serious safety issue be identified in any of our designated centres there will be serious consequences for the entire organisation.""?The letter also referred to St John of God's ""repeated failure to achieve compliance particularly in our congregated settings despite the fact that 46 of our 80 designated centres have achieved their Certificates of Registration""? It also said: ""Hollowing a lengthy meeting with HIQA on 22nd February 2017 we have undertaken to give a priority focus to our congregated settings and to radically address all shortcomings""?in areas including ""governance, leadership and management arrangements""?and ""Lealth, safety and risk management processes""?and ""safeguarding and safety for residents""? In a statement to RT?, St John of God Community Services said it ""Accepts the findings of the HIQA inspections and the challenges of achieving compliance with regulation in campus-based services.""?It added that the board of the charity ""Las undertaken to submit a plan to HIQA, outlining the measures that are being and will be implemented in all designated centres to achieve compliance with the regulations...""?HIQA officials have previously expressed frustration that prior pledges by St John of God to remedy problems highlighted by HIQA inspections have not been honoured. Last month, RT? Investigates revealed that HIQA issued formal notices proposing the closure of four of the eight units at Drumcar. St John of God was given 28 days to appeal those notices or submit alternative proposals. Separately, RT? has also learned that HIQA issued a notice of proposal to close the 12-bed Ravenswell residential unit run by St John of God in Bray, Co Wicklow. In an internal St John of God email sent last Monday, staff were told that the charity has 28 days to implement HIQA recommendations or the facility may be deregistered under section 51 of the Health Act 2007. RT? understands that a recent HIQA inspection of Ravenswell highlighted what the authority saw as significant governance and managerial failings and a serious safety concern. It emerged that a latex glove was left on the floor near a resident who has a potentially life-threatening tendency to ingest inedible objects. This was the second such incident discovered by HIQA at the home. In late 2015 a HIQA inspector who noticed latex gloves left lying around requested that they be kept out of reach of service users who may ingest them. St John of God Community Services told RT? that it is ""in the process of preparing a submission to appeal""?the HIQA notices to cancel and refuse registration for Ravenswell ""and is confident that actions are being implemented and will continue to be implemented to bring this centre into compliance and further develop the quality and standard of services and supports provided to residents.""?While generally complimentary of St John of God's frontline staff and many of its homes, HIQA inspection reports have been especially critical of the charity's larger institutional-style homes which have high rates of non-compliance with HIQA standards compared to its smaller houses in the community. One HIQA inspection report last year on an institutional unit at St John of God's Drumcar campus in Louth said: ""Because of behavioural issues that one of the residents presented with... two [other] residents could only access their home when this resident was in bed""? The inspectors wrote that this was ""not in any way meeting the assessed needs of any of the three residents""? This arrangement, where two residents were unable to access their home for much of the day due to safety fears, was first spotlighted by HIQA inspectors in May 2016 and was still continuing as late as last month. HIQA inspectors also discovered that at Drumcar some residents""?bank accounts were inappropriately accessed to pay for medical equipment and services that St John of God should have supplied. ""residents were being charged substantial sums of money for furniture, medical aids and medical appointments,""?according to a HIQA report. One resident ""Assessed as needing a body brace was charged �152 for this specialist medical appliance""?while another ""was charged �1,499 for a specialised armchair and a dexa bone density scan.""?A HIQA inspector in January found that two months after HIQA brought this practice to the attention of a senior St John of God executive ""A resident in this centre was inappropriately charged for a medical device that should have been provided by the service.""?Declan Moore, the Regional Director for St John of God North East Service, has described this practice as ""Hinancial abuse""? At one Drumcar unit HIQA also found ""An absence of governance and management systems which fundamentally resulted in negative outcomes to residents.""?At another it found that ""staff were not available to respond to [resident] behaviours that were challenging.""?HIQA also found physical problems with buildings at Drumcar that harmed the dignity of the residents. For example, the toilets at one unit were accessed from a communal area, meaning that ""Accupants of the communal area were aware of all activities being undertaken in the bathroom,""?one report stated. Also, some bedrooms were too small and had windows at such a high level that residents could not see out.", -1995,2017/3/2,http://www.rte.ie/news/2017/0302/856776-water/,Fianna F��il legal advice gives all clear to ban or suspend water charges,,"Fianna F��il has published legal advice it received on whether Ireland can ban water charges in a way that is compatible with European Union laws. The party is in favour of abolishing all charges and believes the issue of excessive usage can be dealt with by existing legislation that provides for fines and imprisonment. Fianna F��il received advice from barristers-Darren Lehane and Conleth Bradley in relation to Ireland's EU obligations on water charges. The 33-page document states that in their opinion it is open to Ireland to ban or suspend domestic water charges. It states that the European Union's water framework directive does not seek to achieve complete harmonisation of the rules of member states regarding water. It also states there is no specific requirement in the directive for cost recovery to rely on individual consumption. The lawyers also advise that the absence of pricing for water service activities will not necessarily jeopardise the directive's objectives. The advice says that member states have wide discretion in the area and that Ireland can avail of the ""established practice""-exemption in the directive. They say that it is for Ireland to determine what ""established practice""-is and add it was an established practice not to have domestic water charges when the water directive was adopted. The European Commission wrote to the independent commission looking at water funding in November 2016. In its letter, the commission stated ""Ireland adopted its river basin management plans in July 2010, making a clear commitment to set up water charges to comply with the provision on water pricing in Article 9(1) of the water framework directive. ""Ireland subsequently applied water charges. The directive does not allow member states to revert to any previous practice not entailing the recovery of costs and the application of the polluter pays principle.""", -1996,2017/3/2,http://abcnews.go.com/Politics/senators-seek-trump-wiretap-evidence-justice-department-fbi/story?id=46005023,"Senators seek Trump wiretap evidence from Justice Department, FBI",,"A pair of senators are working together from across the aisle to get to the bottom of President Donald Trump's explosive allegation that President Obama wiretapped the phones at Trump Tower during the 2016 election season. Sens. Lindsey Graham, R-S.C., and Sheldon Whitehouse, D-R.I., formally requested information from the Department of Justice and FBI Wednesday on any action taken to listen in on calls from Trump's New York home and offices. ""Congress must get to the bottom of President Trump's recent allegation that President Obama wiretapped President Trump's phones during the 2016 election,"" wrote Graham and Whitehouse in a letter to FBI director James Comey and Acting Deputy Attorney General Dana Boente. ""As Chairman and Ranking Member of the Senate Judiciary Committee's Subcommittee on Crime and Terrorism, we would take any abuse of wiretapping authorities for political purposes very seriously,"" the letter adds. ""We would be equally alarmed to learn that a court found enough evidence of criminal activity or contact with a foreign power to legally authorize a wiretap of President Trump, the Trump Campaign, or Trump Tower."" On Saturday, Trump fueled the wiretapping accusations with four tweets claiming that former President Barack Obama issued the alleged directive himself, an accusation Obama's team denies. ""Terrible! Just found out that Obama had my ""wires tapped"" in Trump Tower just before the victory. Nothing found. This is McCarthyism!"" wrote Trump. The president further questioned the legality of the action despite providing no evidence that it occurred. The White House has declined to provide evidence and declined to comment further pending a congressional investigation. ""How low has President Obama gone to tapp (sic) my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy!"" wrote Trump. Graham and Whitehouse indicated that they would be ""glad to review any such applications and orders once they are disclosed, and proceed as appropriate with the oversight the President has requested."" Over the weekend, ABC News reported that Comey asked the Justice Department to refute the allegation.", -1997,2017/3/2,http://abcnews.go.com/US/fbi-investigating-source-wikileaks-purported-cia-document-dump/story?id=46004876,FBI investigating source of WikiLeaks' purported CIA document dump,,"The FBI is investigating the source of documents published by WikiLeaks that purport to be from the CIA, a source familiar with the matter confirmed to ABC News. WikiLeaks published more than 8,000 pages of documents that it says are classified files from the CIA that purportedly reveal secrets about agency hacking tools used to break into computers, cellphones and smart TVs. In a statement released earlier Wednesday, the CIA said it had ""no comment on the authenticity of the documents."" The CIA then said that its ""mission is to aggressively collect foreign intelligence overseas to protect America from terrorists, hostile nation states and other adversaries"" and that it is ""legally prohibited from conducting electronic surveillance targeting individuals here at home."" The activities conducted by the CIA are subject to ""rigorous oversight"" to ensure that they comply fully with the law and U.S. Constitution, it said. ""The American public should be deeply troubled by any Wikileaks disclosure designed to damage the Intelligence Community's ability to protect America against terrorists and other adversaries,"" the CIA said. ""Such disclosures not only jeopardize US personnel and operations, but also equip our adversaries with tools and information to do us harm."" WikiLeaks said a former government contractor circulated the files, in a statement accompanying the documents. ""Recently, the CIA lost control of the majority of its hacking arsenal including malware, viruses, trojans, weaponized 'zero day' exploits, malware remote control systems and associated documentation. This extraordinary collection, which amounts to more than several hundred million lines of code, gives its possessor the entire hacking capacity of the CIA. The archive appears to have been circulated among former U.S. government hackers and contractors in an unauthorized manner, one of whom has provided WikiLeaks with portions of the archive,"" the whistleblower group said. ABC News' Pierre Thomas contributed to this report.", -1998,2017/3/9,http://abcnews.go.com/Technology/wireStory/fbis-comey-youre-stuck-12-years-45995044,FBI's Comey: 'You're stuck with me for another 6 years',,"FBI Director James Comey said Wednesday he plans to serve his entire 10-year term, even as controversy swirls over his attempt to rebut President Donald Trump's claim that the Obama administration tapped his phones during the election. ""You're stuck with me for another six years,"" Comey said during a cybersecurity conference at Boston College. Comey was appointed three years ago by then-President Barack Obama. Controversy erupted last weekend after Trump tweeted that Obama had tapped his phones at Trump Tower during the election. Trump offered no evidence of his claim. Comey asked the Justice Department to publicly reject the allegation as false. Comey did not reference the wiretapping controversy during his speech to law enforcement officials and private-sector business leaders. He said the FBI is renewing a focus on the challenges posed by encryption. He said there should be a balance between privacy and the FBI's ability to lawfully access information. He also said the FBI needs to recruit talented computer personnel who might otherwise go to work for Apple or Google. ""The cyberthreats we face are enormous. I don't know if we can stay ahead of them. And I think to say otherwise would be hubris,"" Comey said. ""We need to ensure that cybersecurity is a priority for every enterprise in the United States at all levels. We need to get better and faster at sharing information in the appropriate ways. We need to make sure we have the right people on board to help fight that threat, and we need to build trust between the government and the private sector,"" he said.", -1999,2017/3/9,http://abcnews.go.com/International/wireStory/death-toll-madagascar-cyclone-rises-46012077,Death toll from Madagascar cyclone rises to 5,,"Officials in Madagascar say the death toll from a cyclone has risen to five and about 10,000 people have left their homes because of storm damage. Media in Madagascar reported Thursday that power is down in some areas because of Cyclone Enawo, which made landfall in the northeast of the island nation on Tuesday and has diminished in strength while moving south. Disaster management officials are warning of the threat of flooding, including in the capital, Antananarivo. The government and aid groups have been providing shelter, water and other basic needs to those affected by the cyclone.", -2000,2017/3/9,http://abcnews.go.com/US/wireStory/hawaii-1st-state-sue-trumps-travel-ban-46010865,Hawaii becomes 1st state to sue over Trump's new travel ban,,"Hawaii has become the first state to file a lawsuit against President Donald Trump's revised travel ban, saying the order will harm its Muslim population, tourism and foreign students. Attorneys for the state filed the lawsuit against the U.S. government Wednesday in federal court in Honolulu. The state had previously sued over Trump's initial travel ban, but that lawsuit was put on hold while other cases played out across the country. Hawaii gave notice Tuesday night that it intended to file an amended lawsuit to cover the new ban, which plans to goes into effect March 16. The revised executive order bars new visas for people from six predominantly Muslim countries and temporarily shuts down the U.S. refugee program. It doesn't apply to travelers who already have visas. ""Hawaii is special in that it has always been non-discriminatory in both its history and constitution,"" said Attorney General Douglas Chin, whose office has also asked for a temporary restraining order against the ban. ""Twenty percent of the people are foreign-born, 100,000 are non-citizens and 20 percent of the labor force is foreign-born."" Chin, who noted the state has budgeted about $150,000 for an outside law firm to help with the lawsuit, said people in Hawaii find the idea of a travel ban based on nationality distasteful because they remember when Japanese Americans were sent to internment camps during World War II. Hawaii was the site of one of these camps. People in Hawaii know that the fear of newcomers can lead to bad policy, Chin said. The move came after a federal judge in Honolulu said earlier Wednesday that Hawaii can move forward with the lawsuit. U.S. District Judge Derrick Watson granted the state's request to continue with the case and set a hearing for March 15 ""?the day before Trump's order is due to go into effect. It bars new visas for people from the six predominantly Muslim countries and temporarily shuts down the U.S. refugee program. Officials in heavily Democratic Hawaii previously sued to stop Trump's initial ban but that suit was placed on hold amid legal challenges around the country. The U.S. Department of Justice declined to comment on the pending litigation. The state will argue at the March 15 hearing that the judge should impose a temporary restraining order preventing the ban from taking effect until the lawsuit has been resolved. Hawaii's complaint says it is suing to protect its residents, businesses and schools, as well as its ""sovereignty against illegal actions of President Donald J. Trump and the federal government."" The order affects people from Iran, Syria, Somalia, Sudan, Yemen and Libya. It does not apply to travelers who already have visas. Imam Ismail Elshikh of the Muslim Association of Hawaii, a plaintiff in the state's challenge, says the ban will keep his Syrian mother-in-law from visiting. Trump's ""executive order inflicts a grave injury on Muslims in Hawaii, including Dr. Elshikh, his family, and members of his mosque,"" Hawaii's complaint says. A federal judge in Seattle issued a temporary restraining order halting the initial ban after Washington state and Minnesota sued. The 9th U.S. Circuit Court of Appeals refused to reinstate the order. While Hawaii is the first to sue to stop the revised ban, the restraining order is still in place and could apply to the new one, too, said Peter Lavalee, a spokesman for the Washington attorney general's office. University of Richmond Law School professor Carl Tobias said Hawaii's complaint seemed in many ways similar to Washington's successful lawsuit, but whether it would prompt a similar result was tough to say. He said he expects the judge, an appointee of President Barack Obama who was a longtime prosecutor, to be receptive to ""at least some of it."" Given that the new executive order spells out more of a national security rationale than the old one and allows for some travelers from the six nations to be admitted on a case-by-case basis, it will be harder to show that the new order is intended to discriminate against Muslims, Tobias said. ""The administration's cleaned it up, but whether they have cleaned it up enough I don't know,"" he said. ""It may be harder to convince a judge there's religious animus here."" Tobias also said it is good that Hawaii's lawsuit includes an individual plaintiff, considering that some legal scholars have questioned whether the states themselves have standing to challenge the ban. ""?Associated Press writers Tarek Hamada in Phoenix and Gene Johnson and Martha Bellisle in Seattle contributed to this report.", -2001,2017/3/9,http://abcnews.go.com/Politics/white-house-trump-wasnt-target-investigation-prior-claims/story?id=46010328,"White House says Trump wasn""t target of investigation, despite prior claims implying otherwise",,"The White House on Wednesday said that President Trump was not the target of any investigation, even though five days earlier he claimed in a series of tweets that he had indeed been the target of a wiretap initiated by former President Barack Obama. ""There is no reason that we should -- that we have to think that the President is the target of any investigation whatsoever,"" White House Press Secretary Sean Spicer said during his daily briefing with reporters. Spicer's comments came several minutes after he had first implied that the White House was unsure whether the president was a target or not. Responding to a reporter's question asking if the president was the ""target of a counter-intelligence investigation,"" Spicer initially said, ""I think that's what we need to find out. There's obviously a lot of concern."" But apparently, that wasn't the final answer. At the end of the briefing, Spicer was handed a sheet of paper by an aide, from which he read the aforementioned assertion that the White House had no reason to believe the current commander in chief was a target of an investigation. In the aftermath of Trump's initial comments regarding wiretapping, the White House suggested that Congress should look into the matter. Last Thursday, Sen. Lindsey Graham (R-South Carolina) and Sheldon White House (D-Rhode Island) sent a letter to the Justice Department asking for any information regarding Trump's wiretapping claims. ""We request that the Department of Justice provide us copies of any warrant applications and court orders ""?redacted as necessary to protect intelligence sources and methods that may be compromised by disclosure, and to protect any ongoing investigations -- related to wiretaps of President Trump, the Trump Campaign, or Trump Tower,"" the letter read. ""All I can say is that the country needs an answer to this,"" Graham told CNN last Thursday. ""The current President has accused the former President of basically wiretapping his campaign.""", -2002,2017/3/9,http://abcnews.go.com/US/police-arrest-suspect-nashville-nurses-murder/story?id=46010429,Police arrest suspect in Nashville nurse's murder,,"A man has been arrested in connection with the fatal stabbing of a Nashville nurse, the Metro Nashville Police Department said Wednesday. Christopher Drew McLawhorn, 24, was arrested and charged with criminal homicide and especially aggravated burglary in connection with the murder of Tiffany Ferguson, police said press conference Wednesday. Officials said Ferguson, a 23-year-old nurse, was murdered on February 28th after a man broke into her Nashville apartment and stabbed her to death. Her roommate was awakened by her screams and called 911, according to police. Surveillance video from the apartment building showed a man pulling on the door handles of parked cars around 5 a.m. The footage was a key component of the investigation, police said. Police believe McLawhorn was a part of the burglary that ended in Ferguson's death. Possible motives are not being divulged publicly at this time, police said. Authorities said McLawhorn denied involvement when interviewed by detectives. Metro police to hold news conference on young nurse's murder https://t.co/6O05pZQVwZ Molly Cox, 32, Ferguson's sister, said Ferguson had attended nursing school in Alabama and had lived in the apartment for a little less than a year. Ferguson was a nurse in the intensive-care unit at a local Nashville hospital. Cox said that Ferguson had traveled to Guatemala on a mission trip and would give food and money to the homeless people around her apartment building. Christopher McLawhorn, 24, being charged tonight with the 2/28 murder of Tiffany Ferguson at her Wedgewood Park apartment. pic.twitter.com/bDh5O32t39 ""I think she had been out with some coworkers and then came home,"" Cox said about Ferguson. ""We understand that she got home and later on that morning her roommate heard a scream and the front door was open and they found her in the bed."" Cox said the family did not recognize the man on the video. ""I just want everyone to know that she [Ferguson] had a good heart and she was young and she was beautiful and she deserved better than what she got,"" she said. ""She just had so many dreams and wanted to do so much."" It was unclear if McLawhorn had an attorney. ABC News' Enjoli Francis contributed to this report.", -2003,2017/3/9,http://abcnews.go.com/US/att-reports-911-outage-wireless-customers-states/story?id=46007484,FCC says it will investigate AT&T wireless 911 outage,,"The Federal Communications Commission said Wednesday night it will investigate ""the root cause"" of an outage that prevented AT&T wireless customers in several states from connecting to 911. FCC chairman Ajit Pai tweeted, "".@FCC AT&T has reported to me that 911 service is now restored. The @FCC will investigate the root cause of the outage and its impact."" .@FCC AT&T has reported to me that 911 service is now restored. The @FCC will investigate the root cause of the outage and its impact. At 10:30 p.m. ET, Dallas-based AT&T tweeted, ""Issue has been resolved that affected some calls to 911 from wireless customers. We apologize to those who were affected."" Issue has been resolved that affected some calls to 911 from wireless customers. We apologize to those who were affected. AT&T confirmed the outage about 40 minutes earlier, at 9:49 p.m. ET, tweeting, ""Aware of issue affecting some calls to 911 for wireless customers. Working to resolve ASAP. We apologize to those affected."" AT&T's tweet came after law enforcement agencies in several states, including Florida, Maryland, Texas, Tennessee, Alabama, Ohio, Colorado, Virginia, Illinois, and the District of Columbia informed residents about the outage, and suggested other ways to contact emergency services. **Alert** AT&T experiencing outages across nation. AT&T Mobile customers are unable to dial 911. PLEASE dial 311 in case of an emergency. #BREAKING: Multiple reports of users unable to call 911 from their cell phones... You have to dial regular #s for now! Reported AT&T issue Per @ArtAcevedo - AT&T cell phones cannot dial out 911 nationwide right now. For those cell users in Houston dial 713-884-3131 Due to national outage, AT&T mobile phones may not be able to call 911 at this time. Call 703.746.4444 or text 911 if voice call won't work. AT&T Wireless reports their mobile phones may not be able to call 911 at this time. Call 614-889-1112 if your 911 call will not go through. Urgent notice: AT&T callers use 256-722-7134 to reach Hsv-Madison Co 911 due to AT&T network problem. This is only for AT&T until resolved. AT&T reporting customers unable to connect to E-911 in some areas. Emergencies in Jefferson County can go to 502-574-2111 ext. 5. Dispatch advises they have been notified that AT&T cell customers are unable to use 911 function. This is a state wide issue. (1/2) pic.twitter.com/tNSABrpNhd ", -2004,2017/3/9,http://abcnews.go.com/US/body-maine-woman-missing-month-found/story?id=46009181,Body of Maine woman missing for more than a month found,,"The body of a Maine woman -- who had been missing more than a month -- was finally found Wednesday a short distance from where she was last seen, the Sanford Police Department said. Authorities discovered Kerry Rear's body in a wooded area in Sanford, about 200 yards from where she was last seen alive, the Sanford Police Department said in a statement posted on its Facebook page. ""Today, the Sanford Police Department and Maine Warden Service had been searching an area of woods off of Country Club Road, approximately 200 yards from where she was last seen,"" read the statement. ""Around 2:00 p.m. this afternoon, a sergeant with the Maine Warden Service came upon Rear's body."" Rear, 40, had been missing since January 22, according to police. An autopsy will be conducted to determine the cause of death, according to the statement. According to a missing person poster circulated by police, Rear was last seen leaving a Lil""�Mart convenience store in Sanford, which is located about 45 minutes southeast of Portland. Rear may have gotten into a vehicle after leaving the store, according to the poster. Police did not say if her death was considered suspicious or not.", -2005,2017/3/9,http://abcnews.go.com/US/health-safety-concerns-immigration-detention-facility-inspector-general/story?id=46005536,"'Serious' health, safety concerns at immigration detention facility: inspector general",,"Numerous health risks, poor conditions and safety violations were found at an Immigration and Customs Enforcement (ICE), detention facility in Orange, California, according to a report released Wednesday. The report alleged that food was mishandled, the housing conditions were ""unsatisfactory"" and that the facility was violating protocols to separate high-risk detainees and low-risk detainees. An unannounced inspection on Nov. 16, 2016 of the Theo Lacy Facility (TLF) in Orange, California, found issues that ""pose health risks"" and other violations that ""result in potentially unsafe conditions at the facility."" The facility is operated by the Orange County Sheriff's Department (OCSD) and houses federal immigration detainees. It has the capacity to house 3,442 males, all with some degree of criminal history. There are currently 528 immigration detainees there, according to ICE. In the facility's kitchen, the government watchdog identified a host of potential food safety problems. ""Of deepest concern"" was the refrigeration units which were we observed to have ""slimy, foul-smelling lunch meat that appeared to be spoiled."" ""Detainees reported being repeatedly served lunch meat that smelled and tasted bad, which they rinsed with water before eating,"" said the report. The inspector general found moldy and mildewed shower stalls, refuse in cells and inoperable phones. ""Because of concerns raised during the inspection, we recommended that ICE take immediate action to ensure compliance,"" wrote Inspector General John Roth in a letter. The inspection also found that the facility was not complying with the ICE detainee classification process, which requires that facilities implement a system to classify detainees based on past criminal convictions, including immigration violations, and other security risk factors. Detainees of all risk levels were housed in the barracks, against policy specifying that facilities may not mingle low-risk and high-risk detainees, said the report. The report recommended that ICE ensure the facility is following the U.S. Department of Agriculture safe food handling guidelines, undertake a full review and inspection of the Theo Lacy Facility and the Orange County Sheriff's Department's management of the facility and develop a comprehensive oversight plan for the facility to ensure compliance. ICE concurred with all three of the recommendations made by the inspector general. ""The top to bottom inspection identified several compliance issues related to bathroom cleanliness, food storage, and detainee phone access, all of which were promptly remedied. The OIG also voiced concern that detainee grievances were not being tracked to ensure adequate follow-up. In response, ICE met with onsite supervisory personnel at the facility and provided guidance regarding the appropriate method for documenting and addressing detainee complaints, including verbal grievances,"" a spokesperson for ICE said in a statement. The sheriff's office said it had ""reviewed the report"" after receiving it today and all concerns alleged by the inspector general ""have been addressed."" Alex Stone contributed to this story.", -2006,2017/3/9,http://abcnews.go.com/US/wireStory/radioshack-files-bankruptcy-time-years-46009650,RadioShack files for bankruptcy for second time in 2 years,,"Troubled electronics retailer RadioShack has filed for bankruptcy for the second time in just over two years. The Fort Worth, Texas-based retailer filed its petition in bankruptcy court in Delaware on Wednesday. The company says it's closing about 200 stores and evaluating options on the remaining 1,300. In a statement, RadioShack President and Chief Executive Officer Dene Rogers said since the company's bankruptcy filing in 2015, the retailer had made progress in stabilizing operations, including reducing operating expenses by 23 percent. But Rogers says several reasons, including a partnership with wireless carrier Sprint that proved not to be as profitable as expected, prompted the latest bankruptcy filing. General Wireless, part of hedge fund Standard General, acquired the RadioShack trademark and many of its stores after its 2015 bankruptcy.", -2007,2017/3/9,http://abcnews.go.com/Politics/jon-huntsman-pick-russia-ambassador/story?id=46004878,Former Utah Gov. Jon Huntsman accepts nomination of Russia ambassadorship,,"Former Governor of Utah Jon Huntsman has been offered the nomination of ambassador to Russia and he has accepted, ABC News has confirmed. Huntsman, a moderate Republican who was at times a vocal critic of President Donald Trump during the 2016 presidential election, has previous diplomatic experience, having served as ambassador to Singapore in the early 1990s and to China from 2009 to 2011. His term as governor spanned 2005 to 2009. He resigned from his post in Beijing in 2011 to return to the U.S. to run for the 2012 Republican nomination for president. After finishing seventh in the Iowa caucuses, third in the New Hampshire primary and seventh in the South Carolina primary, Huntsman withdrew from the race and endorsed eventual nominee Mitt Romney. Despite differences in opinion on policy voiced by Huntsman during the campaign, Trump received his endorsement during the 2016 presidential election up until the October leak of an audio tape in which Trump boasted about groping women. Afterward, Huntsman called for then-vice-presidential nominee Mike Pence to lead the ticket. ""In a campaign cycle that has been nothing but a race to the bottom -- at such a critical moment for our nation -- and with so many who have tried to be respectful of a record primary vote, the time has come for Governor Pence to lead the ticket,"" said Huntsman to The Salt Lake Tribune at the time. The position of ambassador to Russia has taken on greater importance in recent weeks in the wake of revelations that a number of Trump administration officials made contact with a Russian diplomat prior to Trump's inauguration. Attorney General Jeff Sessions, senior White House adviser Jared Kushner and former National Security Adviser Michael Flynn all met with Russian ambassador to the U.S. Sergey Kislyak in the last year as the country was working to influence the U.S. presidential election. The intelligence community has found no evidence of any collusion between the Trump campaign and Russia on the matter.", -2008,2017/3/9,http://abcnews.go.com/Politics/wireStory/us-general-russia-deployed-banned-missile-45992484,US general says Russia has deployed banned missile,,"A senior U.S. general on Wednesday accused Russia of deploying a land-based cruise missile in violation of ""the spirit and intent"" of a nuclear arms treaty and charged that Moscow's intention is to threaten U.S. facilities in Europe and the NATO alliance. ""We believe that the Russians have deliberately deployed it in order to pose a threat to NATO and to facilities within the NATO area of responsibility,"" Gen. Paul Selva, vice chairman of the Joint Chiefs of Staff, told a House Armed Services Committee hearing. Selva said he sees no indication that Moscow intends to return to compliance with the 1987 Intermediate-range Nuclear Forces Treaty, which bans an entire class of weapons ""?all land-based cruise missiles with a range between 500 and 5,500 kilometers (310 and 3,410 miles). The treaty was a landmark in arms control in the final years of the Cold War. Selva's accusation takes on added political significance in light of President Donald Trump's stated goal of improving relations with Russia, even as Moscow is perceived by U.S. allies in Europe as a military threat of growing urgency. The alleged treaty violation comes amid multiple congressional investigations of alleged Russian interference in the 2016 presidential election. The FBI also is probing ties between Russia and Trump associates during the campaign. Trump has said little about the INF treaty but on multiple occasions has questioned the value of a separate, more recent treaty that limits the number of strategic nuclear weapons the United States and Russia can deploy to 1,550 warheads each, starting in 2018. Trump has said it unfairly advantages Russia. And he has said the U.S. should expand its nuclear weapons capability, although he has not explained what he meant. Even before Trump's election, the Pentagon was weighing implications of a shift in Russian nuclear doctrine that seems to lower the threshold for the combat use of nuclear weapons. The Russians have framed their new thinking as ""escalate, to de-escalate,"" meaning possibly using a small number of nuclear weapons to persuade an opponent not to escalate the conflict and possibly lead to all-out nuclear war. ""We have to account ... for what that means,"" Selva said Wednesday. ""We've begun an investigation of a series of potential strategy changes,"" he said, in part by conducting war games and military exercises. The Obama administration had hoped to talk Moscow into returning to compliance with the INF treaty but seemed to make no progress. Russia has claimed U.S. missile defenses violate the threat. Asked how the U.S. might respond now that Russian cruise missiles are deployed for potential use, Selva said the military is preparing a set of options to be considered this year by the Trump administration as part of a broader nuclear policy review. Selva said he could not publicly discuss those options. When pressed he said the plan is to ""look for leverage points to attempt to get the Russians to come back into compliance,"" adding, ""I don't know what those leverage points are."" The Obama administration had accused Moscow of violating the INF treaty, but Selva's statement was the first public confirmation of recent news reports that the Russians have deployed the nuclear-capable cruise missile. The New York Times, which was first to report the Russian missile deployment, said last month that the Russians have two battalions now in the field. One is at a missile test site at Kapustin Yar and one was moved in December from the test site to an operational base elsewhere in the country. Russia denies that it has violated the INF treaty. Some in Congress have expressed alarm at the alleged Russian deployment. Sen. John McCain, the Senate Armed Services Committee chairman, last month called on the Trump administration to ensure that U.S. nuclear forces in Europe are ready. ""Russia's deployment of nuclear-tipped ground-launched cruise missiles in violation of the INF treaty is a significant military threat to U.S. forces in Europe and our NATO allies,"" McCain, R-Ariz., said, adding that he believes Russian President Vladimir Putin was ""testing"" Trump. In response to questions at the hearing on Wednesday, Selva said U.S. officials have been talking to Moscow about the alleged treaty violation. He seemed unconvinced that the discussions would be fruitful. ""I don't have enough information on their intent to conclude other than they do not intend to return to compliance"" with the treaty, he said. ""Absent some pressure from the international community and the United States as a co-signer of the same agreement,"" there is no logical reason to believe that Moscow intends to end its violations, he added.", -2009,2017/3/9,http://abcnews.go.com/Health/55-year-time-voter-chose-trump-protests-large/story?id=45991134,55-year-old first-time voter who chose Trump protests large increase in health costs,,"After voting for the first time at the age of 55, for Donald Trump, Martha Brawley is worried that the main issue that brought her to the polls, health insurance coverage, is going to become worse. Brawley, a resident of Monroe, North Carolina, said she fears the new Republican health insurance bill will significantly raise her premiums. ""I'm 55. This is the first time in my life I voted, and I voted for Trump hoping that he would change the insurance so I could get good health care,"" she told ABC News. ""I might as well have not voted."" She first spoke to The New York Times about her concern that she would receive thousands of dollars less in assistance, as tax credits, to help her buy health care coverage under the proposed American Health Care Act (AHCA), dubbed ""Trumpcare."" Brawley reportedly receives approximately $8,688 in health care subsidies per year to pay for insurance, but under the proposed bill, she would receive $3,500 a year in tax credits, according to the Times. AARP, a group that advocates for senior citizens and other older Americans, shares her concern. The organization sent a letter to Congress yesterday saying the proposed bill would ""dramatically increase health care costs for Americans aged 50-64."" Many seniors could face a significant increase in health care premiums, since insurance companies will be allowed to charge seniors five times as much as for younger people for a comparable plan. Under the current Affordable Care Act (ACA), insurers are limited to charging three times as much. The tax credits proposed in the AHCA, which would be dispensed mainly on the basis of age and income, would be smaller for older Americans compared with under the ACA, making insurance even more expensive for them. ""Taken together, premiums for older adults could increase by as much as $3,600 for a 55-year-old earning $25,000 a year, $7,000 for a 64-year-old earning $25,000 a year and up to $8,400 for a 64-year-old earning $15,000 a year,"" AARP said in its letter. The group said a typical senior seeking insurance on a state exchange has an annual income under $25,000. David Certner, the legislative counsel and legislative policy director for government affairs at AARP, said the plan will ""stunningly raise"" premiums for older Americans. ""This is a national problem, in terms of the fact that the older and lower income you are, the bigger the premium hike,"" he told ABC News. On ""Good Morning America,"" Health and Human Services Secretary Tom Price said, ""Our goal is to make certain costs come down."" In response to Brawley's complaints about possible cost increases for her insurance, Price raised the issue of choice. ""We want to make sure she is able to select the physician and treatment that she wants,"" he said. When pressed about whether he could guarantee coverage for Brawley, Price cited other aspects of the proposal, including state grants, and said, ""You can't pick out one individual and say that individual isn't going to be able to get coverage. Right now people are losing coverage. We have a plan that will allow individuals to pick the coverage that they want and ... the physician and treatment model that they want."" Brawley said she isn't convinced lawmakers understand her challenges and she is waiting to see what happens. ""All these people who talk in politics have insurance. People like me don't,"" she told ABC News. ""They can talk big, and all we can do is step back and hope for the best. We are at their mercy."" ABC News' Brandon Bodow contributed to this report.", -2010,2017/3/8,http://abcnews.go.com/Politics/house-speaker-paul-ryan-doubt-republican-health-care/story?id=45994737,House Speaker Paul Ryan: 'No doubt' Republican health care plan will pass,,"Facing a conservative revolt within his party over the newly proposed repeal and replace health care plan, House Speaker Paul Ryan predicted today that the House Republicans' American Health Care Act unveiled Monday will pass into law. While it takes only 21 House Republicans to kill the bill or force leadership into changes, the Wisconsin Republican remained confident. ""I have no doubt we'll pass this because we're going to keep our promises,""?Ryan said, adding every Republican from Congress to the president ""made a promise to the American people and the promise we made to the American people is we're going to repeal and replace Obamacare.""?Asked whether he's depending on the White House to help deliver votes, Ryan answered that politics is ""A team sport.""?""I talked to the president twice yesterday. He had dozens of members at the White House yesterday,""?Ryan said. ""We're working hand-in-glove with President Trump, Vice President Pence, [Health and Human Services] Secretary [Tom] Price -- this is all-hands-on-deck.""? Ryan did not expect the bill to win over any liberals, dubbing the plan ""A conservative wish list.""?""This has been the crown jewel of conservative health care reform,""?Ryan said. ""This is what we've been dreaming about doing.""?While the Congressional Budget Office has yet to release its findings on the impacts of the new GOP plan, Ryan promised that members who have expressed concerns will know its costs ""well before""?the bill is considered on the House floor. ""What you're seeing is we're going through the inevitable growing pains from being an opposition party to becoming a governing party,""?Ryan admitted, adding that 64 percent of his members have never worked with a Republican president and unified government. ""It's a new system for people, but it's all the more reason why we have to do what we said we were going to do and deliver for the American people and govern and use our principles,"" Ryan added.", -2011,2017/3/8,http://abcnews.go.com/Politics/hhs-secretary-tom-price-guarantee-health-care-plan/story?id=45987584,HHS Secretary Tom Price dodges on whether new health care plan is guaranteed to cover all Americans,,"Dr. Tom Price, secretary of the Department of Health and Human Services, told ABC News this morning that it is ""certainly the goal"" for health care to be less expensive and to provide coverage for all, but he didn't guarantee that would be the case. Of the GOP's proposed Obamacare replacement, Price said he and his colleagues are trying to ""fix a system that isn't working."" The new health care bill, which was previewed by House Republicans this week, bears some similarities to the Obama-era Affordable Care Act (ACA): tax credits, protections for people with health problems and the ability of parents to keep young adults on their insurance. It has nevertheless drawn sharp criticism from Democrats, health care advocates, and even many conservatives, who would prefer to see a total repeal. ""We're going to do something that's great and I'm proud to support the replacement plan released by the House of Representatives,"" Trump said at the White House Tuesday. ""We're going to take action. There's going to be no slowing down. There's going to be no waiting and no more excuses by anybody,"" he added. Today, Price defended the bill from critics on both sides and attempted to paint it as step forward. ""The current system is not satisfactory,"" Price said of the Affordable Care Act, which has served as a lightning rod for criticism since Obama signed it into law in March of 2010. When asked if the bill met Trump's stated goal of providing ""insurance for everybody,"" Price dodged the issue, and turned the focus to costs, suggesting that premiums and deductibles are rising as a result of the ACA. ""The current system is not satisfactory for many individuals,"" Price said. Trump told House Republicans on Tuesday that he would engage with individual lawmakers who oppose the new bill, The Associated Press reported. Trump tweeted at one such member, Sen. Rand Paul of Kentucky, who voiced criticism of the bill. Trump wrote, ""I feel sure that my friend @RandPaul will come along with the new and great health care program because he knows Obamacare is a disaster!"" ", -2012,2017/3/8,http://abcnews.go.com/Politics/trump-admin-weighing-cuts-coast-guard-tsa-fund/story?id=46004877,"Trump admin weighing cuts to Coast Guard, TSA to fund border wall",,"The Trump administration is considering cuts to the Coast Guard, Transportation Security Administration, Secret Service and FEMA -- including cuts to several notable national security and emergency response initiatives -- to help fund the president's border wall and deportation efforts, according to a draft budget blueprint obtained by ABC News. The proposal from the Office of Management and Budget, which is circulating on Capitol Hill and within the administration, outlines a $1.3 billion overall cut to the Coast Guard's budget, equivalent to 14 percent of the agency's funding last year. The draft would cut funding for Maritime Security Response Teams and scuttled a contract for a new cutter for the Coast Guard fleet. TSA would lose more than $500 million in funding, while the Federal Emergency Management Agency would face an approximately $370 million cut, reducing grant funding for emergency preparedness and countering violent extremism (a program to help states and communities prepare for and prevent extremist threats). Overall, the Department of Homeland Security would see a $2.7 billion increase in its budget from 2016, to $43.8 billion, under the proposal. Presidential budget proposals are primarily messaging documents highlighting administration priorities. But the outline has drawn bipartisan criticism from lawmakers concerned about cuts to key national security programs. In a letter to OMB Director Mick Mulvaney, Rep. Duncan Hunter, R-Calif., warned that cuts to the Coast Guard would ""stand in dramatic contrast to the President's stated goals of securing our border and reducing the flow of illegal drugs.""?Rep. Bennie Thompson, D-Mississippi, the top Democrat on the House Homeland Security Committee, said the cuts would ""Anly reduce our readiness and effectiveness in preventing potential attacks and responding to disasters.""?""the White House needs to go back to drawing board with its budget and produce something to Congress that is workable, realistic, and, most importantly, keeps our country safe,""?he said. A DHS spokesman declined to comment on the draft and referred question to OMB. ""the budget blueprint will be released in mid-March. It would be premature for us to comment on ""?or anyone to report ""?the specifics of this internal discussion before its publication,""?OMB communications director John Czwartacki said in a statement. ""the president and his cabinet are working collaboratively as we speak to create a budget that keeps the president's promises to secure the country and prioritize taxpayer funds.""?News of the draft was first reported by Politico. According to the proposal, $2.9 billion in DHS funds would go towards improving border security, with some of that money being used to build the wall on the U.S.-Mexico border. Nearly $300 million would go to hiring more border patrol agents and Immigration and Customs Enforcement personnel, while $1.9 billion would be used to help fund immigrant detention and deportation efforts. The draft would eliminate TSA funding for the Visible Intermodal Prevention and Response Program, which funds the ""�VIPR""?squads who prevent terror attacks in train stations, airports and other transportation hubs. It would also cut approximately $65 million in funding for behavior detection officers and federal grants for local law enforcement at airports. The proposal would also reduce Secret Service funding for the National Computer Forensics Institute, a federally-funded cybercrime training center for local law enforcement. Overall, the agency would lose just over $50 million in funds. ABC's Jordyn Phelps and Geneva Sands contributed to this report.", -2013,2017/3/8,http://abcnews.go.com/Politics/hawaii-files-1st-challenge-president-trumps-revised-travel/story?id=46000093,Hawaii files 1st challenge to President Trump's revised travel ban,,"President Donald Trump's new executive order prohibiting travel to the United States for nationals of six Muslim-majority countries is facing its first court challenge, though it almost certainly won""t be the last. Late on Tuesday, Douglas Chin, the attorney general of Hawaii, filed an amended complaint in the state's lawsuit against the first iteration of the travel ban so that it could challenge the legality of version No. 2. ""This second executive order is infected with the same legal problems as the first order -- undermining bedrock constitutional and statutory guarantees,""?the court filing states. The state also signaled its intention to seek a temporary restraining order to prevent the new order from going into effect next week. President Trump's revamped executive order is resulting in ""immediate damage""?to Hawaii's economy and educational institutions, the state alleges, ""and it is subjecting a portion of the state's citizens to second-class treatment and discrimination, while denying all Hawaii residents the benefits of an inclusive and pluralistic society,""?according to the court filing. On Monday, President Trump signed a substantially revised version of the executive order ""Protecting the Nation from Foreign Terrorist Entry into the United States.""?The new edition comes just over a month after a federal judge in Seattle issued a nationwide injunction prohibiting enforcement of the original travel ban. The 9th Circuit Court of Appeals later rejected the Trump administration's attempt to reinstate it. The White House overhauled the executive order in an effort to address issues raised in the courts. The new order explicitly exempts legal permanent residents of the U.S. and current visa holders, and it cuts the number of affected countries from seven to six, leaving out Iraq. Though President Trump has repeatedly stressed the urgency of getting the policy in place, the new order is getting a delayed rollout. It is scheduled to go into effect March 16. Legal experts are divided on whether the new executive order will ultimately pass constitutional muster, pointing out that we are still in uncharted waters. ""This does follow the road map that the 9th Circuit gave to the government and even goes above and beyond it in a way that is very good,""?said Peter Margulies, professor of law at Roger Williams University Law School. But other experts said the new order remains ""gainted""?by Trump's campaign statements calling for a ""Tuslim ban""?and other indications that it has a discriminatory intent and impact. ""the odds are long against the plaintiffs ultimately prevailing, but not impossible,""?said David Martin of the University of Virginia Law School. Even with the changes to the order, the state of Hawaii argues that the new directive violates the law because it fails to offer a satisfactory explanation for why certain countries were included or excluded from the order. The state also asserts the new order infringes on due process and establishment clause protections of the constitution. ""the statements of President Trump and his advisers also provide direct evidence of the executive order's discriminatory motivations,""?the amended complaint states. On Wednesday, Judge Derrick Kahala Watson, who is overseeing the case and was appointed by President Barack Obama in 2013, ordered the state to file its application for a restraining order by today and said he will give the Trump administration until Monday to oppose it. A hearing is set for March 15. Attorneys general in New York, Washington, Massachusetts and Virginia indicated this week that they are reviewing the new order and expect to also take legal action. The American Civil Liberties Union, which has joined lawsuits around the country challenging the first travel ban, told ABC News ""we will definitely challenge the second executive order, but it's still a matter of where.""?,-1""", -2014,2017/3/9,http://abcnews.go.com/Politics/analysis-president-trump-preps-war-base/story?id=45989497,ANALYSIS: President Trump preps for war with own base,,"We're seen him play the bully before. But how does the bully pulpit work, against his own base? That question now defines the stakes for the Trump presidency. President Trump's decision to march into the battle over health care alongside House GOP leaders ""?with no clear path to a bill-signing ceremony ""?places Republican leadership in an uncomfortable alliance with the White House where their own rank-and-file members are the current enemy. The response to the American Health Care Act has been immediate and fierce. The AARP, the American Medical Association, the House Freedom Caucus, GOP Sens. Rand Paul and Ted Cruz, Laura Ingraham, Ann Coulter, the Heritage Foundation, the Club for Growth, tea party groups and the Koch network, even the Trump-friendly Breitbart News ""?all have lined against the president's replacement plan for Obamacare. On one level, this puts the fate of the biggest-ticket item on the GOP agenda squarely where Trump wants it: in his own hands, and at his own fingers for tweeting. He has battled, and defeated, Republicans before, with bigger consequences even than the fight over Obamacare. ""We'r going to have a full-court press,""?White House press secretary Sean Spicer said today. Yet beyond the ironies of Trump and House Speaker Paul Ryan's teaming up to push a bill that still has no cost estimate, or a calculation about how many people will be affected, the president is embarking on a mission that is starting by testing the allegiance of his base. ""This is all hands on deck,""?Ryan said today, calling the vote-gathering effort a ""geam sport.""?It is an odd team. Ryan famously resisted Trump's takeover of the Republican Party longer than almost anyone in a position of power. He is now relying on the White House to deliver votes in his own House. In the Senate, where Republicans have even less margin for defections, the bill is running into staunch conservative opposition. Any movement in the direction of Paul and Cruz, moreover, risks alienating moderates, including those most worried about keeping their seats in future elections. So far, Trump is employing charm rather than threats. He and Vice President Mike Pence are meeting with some of the most skeptical House Republicans, and the president is scheduled to host Cruz and his wife for dinner tonight. He even sent a good-natured tweet directed at ""my friend""?Rand Paul, saying that he's confident the Kentucky senator will ""Come along with the new and great health care program because he knows Obamacare is a disaster!""?Agreement on that last point has never been an issue for Republicans. That's just one reason this push will have longer-term consequences: This is where Republicans appeared to have agreed, unlike on immigration, trade or even foreign policy, where Trump's challenges are more fundamental to GOP dogma. We'r about to find out what Trump really wants out of his presidency. Legislating like he campaigned, and like he has governed so far, would suggest a scorched-earth push that spares no former friends and respects no party lines. A traditional presidency could expect to be crippled by a loss on something as big as a health care overhaul, this early in a term. It's worth remembering, though, with Trump staring down what could be his first major legislative setback, that this not a traditional presidency.", -2015,2017/3/9,http://www.cnn.com/2017/03/08/politics/white-house-wikileaks-donald-trump-cia-documents/index.html,Spicer attacks 'double standard' in response to WikiLeaks dump,Washington (CNN)White House Press Secretary Sean Spicer on Wednesday cast aside the playbook of cut-and-dry condemnations of national security leaks and instead framed his response along political lines.,"After expressing concern about Wikileaks' release of documents allegedly revealing CIA surveillance techniques, Spicer quickly muddled his message. He connected the latest WikiLeaks document dump to surveillance efforts under the Obama administration, days after President Donald Trump's leveled his unsubstantiated claim that President Barack Obama tapped the GOP candidate's phones during the 2016 campaign. And then he took to arguing forcefully that there was a ""double standard"" when it comes to the level of outrage elicited by different leaks. 'I love Wikileaks' The White House has repeatedly argued that too much public and political attention has been devoted to the investigation into contacts between Trump campaign officials and suspected Russian operatives and not enough to the leaks of that confidential information. ""It's interesting how there's sort of a double standard with when the leaks occur, how much outrage there is,"" he said. Spicer's comments came as he relayed Trump's ""concern"" about the leaks and said Americans should be ""outraged"" by the release of classified information. ""This is the kind of disclosure that undermines our country, our security and our well-being,""Spicer said. Spicer's claims Wednesday came as he faced questions about a double standard on the President's part in condemning this leak while he praised WikiLeaks' publication of emails related to his rival Hillary Clinton during the 2016 campaign. ""I love WikiLeaks!"" Trump proclaimed on the stump last year as he took to reading before crowds of cheering supporters hacked emails that the site released. Spicer said Wednesday that there is a ""massive, massive difference"" between the two disclosures. ""There is a big difference between disclosing Podesta -- John Podesta's Gmail accounts about a back-and-forth and his undermining of Hillary Clinton and his thoughts on her on a personal nature, and the leaking of classified information,"" Spicer said. During the campaign, Trump repeatedly lauded WikiLeaks for releasing emails hacked from Clinton campaign chairman John Podesta's email account, several of which portrayed Clinton in an unfavorable light. The US intelligence community concluded those emails were hacked and released to WikiLeaks by Russian sources as part of a campaign to hurt Clinton. But Trump's comments about hacking when he was on the campaign trail weren't limited to praising of WikiLeaks, which has engaged in publishing classified national security information since 2006, and its dump of Clinton emails. Trump also applauded the hack of the Democratic National Committee and downplayed the seriousness of the various election-related hacks, at one point urging Russia to find and release the 33,000 emails allegedly deleted from the private email server Clinton used while secretary of state.' Leaks Rep. Adam Schiff, the top Democrat on the House intelligence committee, slammed Spicer's claim that there was no comparison between Trump's praise of WikiLeaks' campaign-related document dumps and the latest leak of CIA documents. ""The reality is, yes, there's a difference between the hacking and the leaking through WikiLeaks during the campaign -- but both were wrong, both were serious injuries to our national security,"" Schiff told CNN's Wolf Blitzer, arguing that the Democratic document release was part of the Russian campaign to undermine US democracy. ""Both should be condemned."" Spicer's decision to mix politics with his condemnation of WikiLeaks' latest dump broke with a simpler approach followed by his predecessors -- who stuck to their role of voicing the government's concerns about leaks, without drawing in tangential issues. It's the approach White House press secretary Robert Gibbs took in 2010 when WikiLeaks published classified diplomatic cables. ""By releasing stolen and classified documents, WikiLeaks has put at risk not only the cause of human rights but also the lives and work of these individuals,""Gibbs said, without delving into any broader political discussion. ""We condemn in the strongest terms the unauthorized disclosure of classified documents and sensitive national security information.""", -2016,2017/3/8,http://www.cnn.com/2017/03/08/politics/james-comey-privacy-cybersecurity/index.html,Comey: 'There is no such thing as absolute privacy in America',"(CNN)FBI Director James Comey warned Wednesday that Americans should not have expectations of ""absolute privacy,"" adding that he planned to finish his term leading the FBI.","""There is no such thing as absolute privacy in America; there is no place outside of judicial reach,"" Comey said at a Boston College conference on cybersecurity. He made the remark as he discussed the rise of encryption since 2013 disclosures by former National Security Agency contractor Edward Snowden revealed sensitive US spy practices. ""Even our communications with our spouses, with our clergy members, with our attorneys are not absolutely private in America,"" Comey added. ""In appropriate circumstances, a judge can compel any one of us to testify in court about those very private communications."" But, he also said Americans ""have a reasonable expectation of privacy in our homes, in our cars, in our devices. ""It is a vital part of being an American. The government cannot invade our privacy without good reason, reviewable in court,"" Comey continued. In the last four months of 2016, the FBI lawfully gained access to 2,800 devices recovered in criminal, terrorism and counterintelligence investigations and the FBI was unable to open 43% of those devices, Comey said. Americans' desire for privacy and security should never be viewed as incompatible, he said. ""We all value privacy. We all value security. We should never have to sacrifice one for the other,"" Comey said. ""Our founders struck a bargain that is at the center of this amazing country of ours and has been for over two centuries."" Comey's leadership of the FBI has been marked by controversy in the wake of the bureau's handling of the investigation into Hillary Clinton's email controversy and President Donald Trump's baseless accusations that President Barack Obama ordered the wiretapping of phones at Trump Tower. He did not address the wiretapping claim nor WikiLeaks' recent claim that it obtained internal CIA documents. Comey did, however, say he plans to finish out his 10-year term. ""You're stuck with me for about another 6 1/2 years, and so I'd love to be invited back again,"" he said.", -2017,2017/3/9,http://www.cnn.com/2017/03/08/football/barcelona-paris-saint-germain-champions-league/index.html,Champions League 2017: Barcelona routs Paris Saint-Germain 6-1 in astonishing comeback,"(CNN)Its motto is ""More than a club"" and Spain's Barcelona produced more than a result Wednesday routing France's Paris Saint-Germain 6-1 to qualify for the Champions League quarterfinals.","Having lost the first-leg 4-0 in Paris, few had given Barca a chance of reaching the last eight given no side had previously overturned such a deficit in the history of the competition. But Luis Enrique's side made a barnstorming start to the match and early in the second half a Lionel Messi penalty gave them a 3-0 lead in the Camp Nou. RELATED: See fans go wild The home side were coasting, but just past the hour Uruguayan striker Edison Cavani's volley seemingly put PSG back in control, with Barca needing to score three more times, given the French side now had a crucial away goal. However, with two minutes of normal time remaining Neymar's exquisite free-kick gave Barca renewed hope and two goals in stoppage time completed the most incredible of comebacks. 'Unbelievable' Those five minutes of stoppage time almost defy description. In the 91st minute Luis Suarez, who had given Barcelona an early lead, won a penalty, which Neymar converted. With time running out Barcelona threw everyone forward -- even their goalkeeper Marc-Andr�� ter Stegen. And almost with the last kick of the game Barca's sixth goal came from the most unlikely of sources -- not their famed strikers -- Messi, Neymar or Suarez -- but defender Sergio Roberto, who was born in Catalonia and is a product of Barca's youth academy. Bayern Munich's French international Franck Ribery, who played for the German club in Tuesday's 5-1 thrashing of Arsenal, described the game as ""unbelievable."" Former Bayern and Chelsea star Michael Ballack tweeted: ""That's Champions League,"" followed by a series of fire emojis. In the 2005 Champions League final, Liverpool came back from a 3-0 deficit to beat AC Milan on penalties, but Barca's victory is arguably the greatest comeback in the history of the Champions League, given those frantic and frenetic final seven minutes. READ: David Villa -- from broken legs to breaking records READ: U.S. soccer stars must stand for national anthem READ: Is Tottenham's Harry Kane 'world class'? Historic Barca's president Josep Maria Bartomeu said on the club's Twitter feed it was an ""historic achievement that will be remembered forever."" Ahead of Wednesday's game, Enrique had remained quietly confident that his team could achieve the unthinkable. ""We arrive in good form and we have to be confident,"" Enrique told reporters, referring to Barca's two previous league victories, where his team had beaten Sporting Gijon 6-1 and Celta Vigo 5-0. ""We are in the middle of the tie, we have nothing to lose and a lot to win -- if they scored four, we can score six,"" added the strangely prophetic Barca coach. PSG's English Twitter feed had just one word to sum up the French club's defeat: ""gutted,"" while its website used the word ""speechless"" for its headline for a report of the defeat. In June 2016, PSG's Qatari owners had appointed Spanish coach Unai Emery, who had led Sevilla to three consecutive Europa League triumphs. INTERACTIVE: Build your Ultimate Football Player The hope was that Emery's tactical nous would help PSG's billion dollar fueled quest to win the Champions League and in the first leg the French club had run ragged a strangely subdued Barca. Luck certainly wasn't on PSG's side on Wednesday -- Barca's second goal came from a Layvin Kurzawa own goal, Cavani hit the post, while the home side's first penalty derived from Thomas Meunier's slip, causing Neymar to tumble over the Belgian and win a foul. Even so the French side will be left wondering just how they exited the Champions League given their commanding performance and lead they had established in the first leg. Visit cnn.com/football for more news and videos ""I haven't spoken to the players yet, it's not the right time,"" PSG's CEO and chairman Nasser Al-Khelaifi told the club's website.""Everyone is annoyed, it's normal. We're going to calm ourselves down."" ""In five minutes, we lost everything,"" said Emery. ""We weren't able to defend. It's an experience. A negative experience, but an experience all the same. I'm learning for the future."" The scenes in the Nou Camp press area looked as chaotic as events on the field, with journalist Reshmin Chowdhury tweeting a video of his astonished media colleagues trying to come to terms with what they had just witnessed -- let alone report it. ""This is a crazy, unique sport,"" said Enrique after the game. ""I dedicate this win to all Barça fans who kept faith in us. ""No one stopped believing,"" added the Barca coach. ""The team were spectacular. We were rewarded in the end."" In Wednesday's other quarterfinal Borussia Dortmund beat Benfica 4-0 to win their tie 4-1 on aggregate.", -2018,2017/3/9,http://www.cnn.com/2017/03/08/politics/donald-trump-conservative-leaders/index.html,"Trump to conservative leaders: If this plan fails, I'll blame Democrats","Washington (CNN)In an Oval Office meeting featuring several leaders of conservative groups already lining up against the House Republican plan to repeal and replace Obamacare, President Donald Trump revealed his plan in the event the GOP effort fails: Allow Obamcare to fail and let Democrats take the blame, sources at the gathering told CNN.","During the hour-long meeting, sources said Trump chastised the groups -- including Club for Growth, the Heritage Foundation, Americans for Prosperity, FreedomWorks and the Tea Party Patriots -- for calling the House GOP proposal ""Obamacare lite,"" warning the tea party activists, ""you are helping the other side."" In true Trump fashion, the President jumped into salesman mode, sources at the meeting said. ""This is going to be great. You're going to make it even greater,"" the President told the group. ""I'm going to work hard to get it done."" The meeting between Trump and the conservative leaders also included White House senior advisers Steve Bannon, Reince Priebus, Kellyanne Conway and Marc Short, as well as other top West Wing staff. Sources at the meeting said White House aides showed some openness to one aspect of the House GOP plan that has become an irritant to tea party aligned groups: the provision that pushes back an overhaul of the expansion Obamacare Medicaid funding until 2020. The conservative groups at the meeting asked that the date be moved up to January 1, 2018. White House aides said they were ""open to discussing"" it, sources said. Concerns were also raised about the tax credits in the House GOP plan which allow lower-income Americans to buy health insurance, financial assistance that tea party groups see as subsidies. ""They counter-punched hard on that,"" a source at the meeting said of the White House response. Office of Management and Budget director Mick Mulvaney, a former member of the conservative House Freedom Caucus, gave an impassioned defense of the tax credits, a display that surprised attendees from the conservative groups. ""He was very defensive about it,"" one attendee said about Mulvaney. Confident that the health care plan will pass the House, Trump laid out his strategy for winning passage in the Senate, telling the meeting he will campaign heavily in red states featuring vulnerable Democrats up for re-election. ""Trump said he will have football stadium events in states where he won by 10-12 points and he is going to dare people to vote against him,"" a source at the meeting said. As for prominent Republican opponents of the health care plan, Trump sounded optimistic. On Kentucky Sen. Rand Paul, the President was effusive about his one-time primary rival. ""I love him. He's a friend. He's going to end up voting for it,"" the President told the group. A source at the meeting was astonished as to how White House staff could have been so blindsided by the initial conservative opposition to the GOP plan. ""We telegraphed it for weeks,"" one tea party official at the meeting said. A WH official at the meeting said: ""It was a legit policy meeting -- real discussion about specifics."" ""The president expressed that he was open to things that could improve the bill, but was also clear that this is the vehicle -- this is the chance to repeal and replace.""", -2019,2017/3/9,http://www.cnn.com/2017/03/08/politics/pence-wiretapping-trump-question/index.html,Pence dodges question on Trump's wiretapping claims,(CNN)Vice President Mike Pence avoided answering a question about whether he believed President Donald Trump's wiretapping claims.,"Trump alleged on Saturday without evidence that former President Barack Obama wiretapped his phones at Trump Tower ahead of the 2016 election. On Wednesday, CNN affiliate WEWS' reporter John Kosich asked the vice president a yes or no question: Did he believe Trump's allegation? Pence skirted the question and tried to steer the discussion to health care, as the Trump administration has been pushing to replace Obamacare. John Kosich, WEWS: The President has alleged that the former President committed a felony in wiretapping Trump Tower. Yes or no ""?do you believe that President Obama did that? Mike Pence: Well, what I can say is that the President and our administration are very confident that the congressional committees in the House and Senate that are examining issues surrounding the last election, the run-up to the last election, will do that in a thorough and equitable way. They'll look at those issues, they'll look at other issues that have been raised. But rest assured, our focus is right where the American people are focused, and that's on bringing more jobs here to Ohio, creating a better healthcare system built on consumer choice.", -2020,2017/3/9,http://www.cnn.com/2017/03/09/asia/malaysia-citizens-north-korea/index.html,Two Malaysian UN staff held in North Korea allowed to leave,(CNN)Two Malaysians have left Pyongyang two days after North Korea said no Malaysians would be allowed to leave amid a diplomatic row between the two countries.,"A man and a woman working for the World Food Programme arrived in Beijing Thursday, according to a United Nations spokeswoman. They were among 11 Malaysian citizens who became trapped in the country after North Korea announced a ban on Malaysian departures. They included four embassy staffers and their family members. Kuala Lumpur quickly announced its own ban to stop North Koreans leaving Malaysia. Officials declined to say how many North Koreans were inside the country. Relations between Malaysia and North Korea have deteriorated since the murder of Kim Jong Nam, the estranged half-brother of North Korean leader Kim Jong Un, on February 13. Kim was poisoned with the highly lethal VX nerve agent as he was checking into a flight from Kuala Lumpur to Macau, according to Malaysian police. Two women, one from Indonesian and another from Vietnam, have been charged with murder and face the death penalty if convicted. Police are currently seeking seven North Koreans over the murder. Four are suspects who are believed to be back in their home country. Police want to speak with three others who are thought to be holed up in the North Korean embassy in Malaysia. Kim's family is believed to be in hiding. His son, Kim Han Sol, appeared for the first time since the murder in a video Wednesday. ", -2021,2017/3/9,http://www.cnn.com/2017/03/07/politics/hawaii-travel-ban-lawsuit/index.html,Judge to hear Hawaii lawsuit against new Trump travel ban,(CNN)A federal judge in Hawaii has agreed to hear the first legal challenge to President Donald Trump's new travel ban on March 15 -- just hours before it is slated to go into effect.,"Attorneys for the state filed a new 40-page request just before midnight on Tuesday, asking a federal judge to issue a temporary restraining order blocking implementation of the new executive order. Trump signed a new executive order Monday banning foreign nationals from six Muslim-majority countries from entering the US for 90 days and banning all refugees for 120 days. In a statement, Hawaii attorney general Douglas Chin said the filings ask the court to declare sections 2 and 6 of Trump's executive order contrary to the constitution and laws of the United States. ""Sections 2 and 6 of the March 6, 2017 Executive Order violate the Immigration and Nationality Act by discriminating on the basis of nationality, ignoring and modifying the statutory criteria for determining terrorism-related inadmissibility, and exceeding the President's authority under the Immigration and Nationality Act,"" Chin said in a statement. The executive order is affecting the economy, the state's attorney aid. ""The new executive order is resulting in the establishment of religion in the state of Hawaii contrary to its state constitution; it is inflicting immediate damage to Hawaii's economy, educational institutions, and tourism industry; and it is subjecting a portion of the state's citizens to second-class treatment and discrimination, while denying all Hawaii residents the benefits of an inclusive and pluralistic society,"" attorneys for the state argued in court filings. ""The executive order means that thousands of individuals across the United States and in Hawaii who have immediate family members living in the affected countries will now be unable to receive visits from those persons or to be reunited with them in the United States."" The Justice Department declined to comment on the filing, but will have an opportunity to respond to the state's amended complaint against the travel ban on March 13. ""The entire history and culture of Hawaii is based upon nondiscrimination either in its constitution as well as its laws,"" Chin told CNN affiliate KHON. ""Hawaii has 20% foreign-born residents and 100,000 people who are not citizens as well as 20% of our workforce that are not foreign born."" US District Court Judge Derrick Watson approved the expedited briefing schedule the parties proposed in order for the case to be heard before the new executive order goes into effect on March 16. Attorney General Jeff Sessions argued Monday that the ban was necessary because ""we cannot compromise our nation's security by allowing visitors entry when their own governments are unable or unwilling to provide the information we need to vet them responsibly, or when those governments actively support terrorism."" Hawaii had previously sued over Trump's original travel ban, but the case was put on hold temporarily while a different federal judge's nationwide temporary restraining order halting the original ban remained in place. Watson granted the state's request to lift that hold on Wednesday in light of the new executive order. ""To be sure, the new executive order covers fewer people than the old one,"" Neal Katyal, one of the lead attorneys for Hawaii and former acting US solicitor general, explained in an interview with CNN. But in his view, the new travel ban still ""suffers from the same constitutional and statutory defects."" The state's amended complaint asserts a number of different claims, but primarily emphasizes the new executive order's alleged discriminatory intent and effect, as well as the harm to Hawaii's economy. Hawaii is also joined in the lawsuit by an American who is the imam of the Muslim Association of Hawaii and says he has lived in state for over a decade with his wife and children, but now his Syrian mother-in-law cannot visit them because she does not currently hold a visa to enter the US. While many immigrants' rights groups and state attorneys general expressed deep reservations about the new order when it was released Monday, none had filed new lawsuits or amended their original filings until now. The Justice Department filed a flurry of notices in federal courts Monday -- including in this Hawaii case -- alerting the judges to the new order and arguing that the new order ""falls outside of"" injunctions that blocked the original ban. The government cited the significant changes to the new order, including the fact that it does not apply to green card holders or those with valid visas.", -2022,2017/3/9,http://www.cnn.com/2017/03/08/politics/marines-raqqa-assault-syria/index.html,US Marines join local forces fighting in Raqqa,"(CNN)US Marines have arrived in northern Syria with artillery to support US-backed local forces fighting there, two US officials told CNN.","The US-backed fighters are preparing to move in the coming weeks to assault the city of Raqqa, ISIS' self-declared capital, according to the officials. The Pentagon and the Marine Corps have declined to confirm the deployment because of security concerns in the region. They have also declined to specify the exact location of the forces or how many are there. The Washington Post was the first to report the deployment of the Marines. The deployment does not come as a surprise. Military commanders have discussed for weeks the possibility of putting artillery forces into the area, with the goal of accelerating the capabilities of the US-backed Arab and Kurdish forces there. A similar deployment last year near Mosul, Iraq involved several hundred Marines equipped with artillery guns that fire shells to provide covering fire for advancing forces. Because Marines were already deployed to the region, the movement into Syria did not have to be specifically approved by President Donald Trump or Defense Secretary James Mattis -- but both the White House and Pentagon were aware of the plan, officials said. The Marines deployed from ships in the Persian Gulf region. This is the second major expansion of US ground forces in northern Syria in days. The US has also deployed approximately 100 Army Rangers in and around Manbij, Syria. US officials have taken the unusual step of publicly talking about the Ranger deployment and where they are located to protect against them inadvertently coming under fire from forces fighting in the region or Turkish, Russian or Syrian forces. The US troops in Manbij are trying to deter hostilities due to their visible presence, rather than the typical mission of training, advising and assisting local forces. It is also not clear if the deployment of the Marines and Rangers violates the current cap on US forces in Syria. That cap broadly restricts the US to having more than 500 forces there at any one time. Until now, troops in the area have largely been Special Operations Forces. The US believes the pressure on ISIS in Raqqa is working. A US official told reporters Wednesday that intelligence indicates some ISIS leadership and operatives continue to try to leave the city. There is also US intelligence that indicates the city is laced with trenches, tunnels, roadside bombs and houses and buildings wired to explode, the official said. If correct, it indicates that the US has likely been able to gather intelligence from both overhead surveillance aircraft and people on the ground. However, the official also noted that ""Raqqa will probably not be the final battle against ISIS,"" and added that the group still has some personnel dispersed in areas south and east of the city. ISIS could have as many as 4,000 fighters in Raqqa, according to very rough US estimates, the official said.", -2023,2017/3/9,http://www.cnn.com/2017/03/08/politics/house-health-care-markup/index.html,GOP healthcare plan clears first hurdle,"Washington (CNN)After an 18-hour session, the House Ways and Means Committee has become the first to approve the Republicans' Obamacare repeal bill.","White House and Republican congressional leaders had sought to fast track the legislation through Congress. Democrats made clear it wouldn't be easy -- dragging out a grueling day of committee sessions well into the early morning hours. The House Energy and Commerce Committee is still debating. Opposition to the Republican health care bill had strengthened Wednesday, as key industry groups that had supported Obamacare said the replacement backed by President Donald Trump could harm vulnerable Americans. In both committee rooms, GOP lawmakers dismissed questions about the bill's cost and claims it would result in millions of Americans losing insurance coverage. Democrats mixed assaults on the legislation with diversionary tactics meant to embarrass Trump -- such as highlighting his refusal to release his tax returns. The action on Capitol Hill comes against a backdrop of pitched controversy over the legislation, which is posing a crucial first test to Trump's capacity to move his agenda through Congress and as conservative Republicans complain that the initiative does not go far enough in erasing his predecessor Barack Obama's signature domestic achievement. The American Medical Association, which bills itself as the largest organization of doctors in the nation, sent a letter to the two committees, detailing its critique of the bill, known as the American Health Care Act. ""While we agree that there are problems with the ACA that must be addressed, we cannot support the AHCA as drafted because of the expected decline in health insurance coverage and the potential harm it would cause to vulnerable patient populations,"" the letter stated. Major hospital organizations, including the American Hospital Association and the Federation of American hospitals have also come out against the bill. The largest seniors organization, the AARP had warned on Tuesday the measure would weaken Medicare and Medicaid. Some conservative medical lobby groups have supported the measure. White House spokesman Sean Spicer shrugged off the building opposition from the medical establishment. ""We would love to have every group on board,"" Spicer said, adding, ""This isn't about figuring out how many special interests in Washington we can get paid off. It's about making sure that patients get the best deal, that lowers prices and brings back cost."" Trump also showed willingness to jump into the fray, meeting with the leaders of conservative groups that have lined up against the bill. ""This is going to be great. You're going to make it even greater,"" the President told the group, sources at the White House meeting told CNN. ""I'm going to work hard to get it done."" But should the bill eventually fail, Trump outlined a backup plan: Allow Obamcare to fail and let Democrats take the blame, sources said. Working late It was a full day -- and night -- for lawmakers on Capitol Hill. Two committees started their markups Wednesday morning at 10:30 a.m. and worked past 4 a.m. Twelve hours in, the Energy and Commerce Committee was still debating the first Democratic amendment -- which was to change the name of the bill. The Ways and Means Committee ended debate on the second of five subtitles in the bill shortly before 11 p.m. In the Ways and Means meeting room, there were signs that the long day was wearing on lawmakers. Around 8 p.m., the panel's chairman, Rep. Kevin Brady, leaned back in his chair and put in eye drops. Later, as restless staffers' side conversations rose to regular volumes rather than whispers, Brady had to call the room to order. Shortly before 4:30 a.m. Thursday, they voted 23-16 to approve their portion of the House legislation. Aides sat with blankets in their laps or around their shoulders in the overly air-conditioned room. One snuck in a box of Dunkin' Donuts ""Munchkins"" to share. The long day unfolded with a series of dry-as-a-bone discussions about health care policy and Democratic procedural measures to make the process as painful as possible for their Republican colleagues. At one point, the minority forced the clerk of the House Energy and Commerce Committee to read the full bill -- a procedure that took about an hour. Democrats have promised at least 100 amendments, most of which have no chance of passage. For instance, one defeated measure would have blocked health care reform coming into force unless it ensured coverage for every taxpayer and all their dependents. One Republican aide reported that Democratic leaders were pulling lawmakers out of committees for seemingly endless adjournment votes on the House floor, to make the process drag on even longer. The only break to the tedium came amid buzz over an invitation from Trump to the House Freedom Caucus to throw down a few frames at the White House Bowling alley in a bid to strike a deal over the group's reservations about the bill. Brady, the Republican chairman of the House Ways and Means Committee, the other panel holding a hearing, tried to keep the process on track. He said the Affordable Care Act was collapsing but that ""relief is on the way"" following a full-throated endorsement of the bill from Trump, who is planning to mount an intense lobbying effort to get the measure quickly out of the House and to the Senate. ""Today's markup is a critical step to providing all Americans with affordable, patient-centered health care that is tailored to their needs,"" Brady said. The GOP legislation unveiled Monday would get rid of Obamacare's individual mandate and put in place refundable tax credits for individuals to purchase health insurance. It also proposes restructuring Medicaid and defunding Planned Parenthood. The bill looks to preserve some of the more popular elements of Obamacare, including protections for people with pre-existing conditions (though insurers would be allowed to charge higher premiums to individuals whose coverage has lapsed) and letting children stay on their parents' insurance plans until the age of 26. Democrats want CBO score Democrats are complaining that the hearings are taking place before the Congressional Budget Office has a chance to ""score"" the House legislation, a process that will provide answers on how much it will cost and how many people it will cover. Rep. Richard Neal, the top Democrat on the Ways and Means panel, cited the lack of the report as a reason the effort should be postponed. ""To consider a bill of this magnitude without a CBO score is not only puzzling and concerning, but also irresponsible,"" Neal said. Democratic Rep. Lloyd Doggett said the GOP bill had been kept ""as secret as Donald Trump's tax returns."" ""It is surprising that you're so determined to hide your panacea,"" the Texas congressman told his Republican colleagues. Rep. Sander Levin of Michigan asked his fellow Republicans: ""what are you afraid of, what are you afraid of?"" before answering his own question, saying that the bill would increase the ranks of the uninsured and could interfere with the private health care market. GOP leaders have said that the bill will not be brought to the floor until the CBO scores the legislation. But while Republican Majority Whip Steve Scalise told the Energy committee that while he is also waiting for a CBO score, he will not let ""unelected bureaucrats in Washington"" slow down the Republican promise to repeal and replace Obamacare. Democrats forcing delays Democrats used arcane parliamentary procedures to give a series of five-minute speeches in a bid to slow the panel's progress. ""What we're trying to do is make sure we're having a totally transparent process, that it's not going to be a bill that's going to be crammed through, that the American people are gonna understand the consequences of what the provisions are. We're gonna take the time to talk about all the implications,"" said Rep. Debbie Dingell, a Democrat from Michigan. In theory Democrats could force the chair to permit five-minute speeches on every amendment. Back at Ways and Means, Republicans tried to expedite the process by offering no amendments to the bill. Brady said that was because Republicans were happy with the bill as it stood. ""We feel very good about not just repealing the bad aspects of the Affordable Care Act but beginning to restore state control and more personal control over healthcare, so we feel good about the bill,"" he said. One Democratic committee aide said the intent is to ""make some Republicans take some really tough votes"" that are ""revealing"" about the GOP's priorities on health care. Democratic Rep. Brian Higgins highlighted a provision of the bill that provides a tax break for health insurance companies amid criticism that it will simply be passed onto industry executives. Higgins listed the million-dollar salaries enjoyed by CEOs at health care giants like Aetna, Anthem, Cigna and United Healthcare. It's ""morally reprehensible,"" Higgins said. ""We're sitting here talking about giving big insurance companies a tax break?"" Despite the fraught political circumstances, there was a moment of levity at the Energy and Commerce Committee. Rep. Jan Schakowsky, a Democrat from Illinois, said she was going to blast the Republican plan using President Trump's Twitter vernacular. ""Bad!"" she said loudly. ""Sad!"" This story has been updated.", -2024,2017/3/9,http://www.huffingtonpost.com/2017/03/09/mark-hamill-photoshop-battle_n_15259022.html,The Force Is Strong With This Photoshop Battle Over Mark Hamill's Hair,"Hilarious, this is.","""Star Wars""?legend-Mark Hamill-shared a snap of himself having his hair treated online, and Redditors""?reactions were out of this world. Road to Recovery From the Perils of Purple Hair-Took me 3 dye jobs to get back to normal. #ACautionaryTale #HairDont #DudeWheresYourDignity? pic.twitter.com/k0SiPp5yvs Redditors picked up the picture-that he posted Tuesday-""?and immediately began manipulating it in various hilarious ways. Yoda swapping his lightsaber for a hair dryer? Check. Here are some of the best posts We're seen so far: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -2025,2017/3/9,http://www.huffingtonpost.com/2017/03/09/samuel-l-jackson-james-corden_n_15257820.html,James Corden Helps Samuel L. Jackson Recreate His Most Famous Scenes,"""And I will strike down upon thee with great vengeance and furious anger...""","Samuel L. Jackson-has acted in a lot of great films, and elevated some not-so-great ones. The movie star recreated many of his most well-known scenes on Wednesday, with assistance from ""Late Late Show""?host James Corden. From ""Pulp Fiction""?and ""Jackie Brown""?to ""Star Wars""?and ""snakes On A Plane,""?Corden effortlessly slid into the co-star role each and every time, but it was Jackson who truly shined. Check out the full segment above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -2026,2017/3/9,http://www.huffingtonpost.com/2017/03/09/samantha-bee-shreds-media_n_15257134.html,Samantha Bee Rips Media For Gushing Whenever Donald Trump Sounds Even Semi-Presidential,"""What the f**k is wrong with you?!?""","Samantha Bee took aim at the media for the way it's been reporting on President Donald Trump. The ""Full Frontal""?host was furious with some of the press for raining ""golden compliments down""?on Trump following his more measured first major speech to Congress last week. ""What the fuck is wrong with you?!""?asked Bee on Wednesday's show. ""If pundits set the bar for President Trump any lower, even Jeff Sessions won""t be able to walk under it without bumping his head.""? Bee also reminded the media that it didn""t have to ""gush like he's a toddler who just made a boom boom on the big boy potty""?every time he did something considered even semi-presidential. Check out the full segment above. HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -2027,2017/3/9,http://www.huffingtonpost.com/2017/03/08/trevor-noah-gop-health-plan_n_15254892.html,Trevor Noah On The GOP Health Plan: 'You Done F**ked Up',"It would hurt the sick, the poor and seniors. Bummer care.","The GOP's new health care plan-has been released, and it's a winner. That is, if you define a ""winner""?as something hated by pretty much everyone. Experts say the people who would be most negatively affected by the new plan are seniors, the poor and the sick.- That's just sick, according to Trevor Noah. On Wednesday's episode of ""the Daily Show,""?Noah pointed out the idiocy of the new plan. ""I'm not a medical expert, but I feel like if one of the losers of your health care plan is sick people, you done fucked up!""?Share this slide: HuffPost Entertainment is your one-stop shop for celebrity news, hilarious late-night bits, industry and awards coverage and more ""?sent right to your inbox six days a week. Learn more", -2028,2017/3/9,http://www.huffingtonpost.com/2017/03/08/day-without-a-woman-released-jail_n_15253348.html,Watch 'Day Without A Woman' Organizers Celebrate Their Release From Jail,"""I feel proud of what I did today,"" Linda Sarsour said.","NEW YORK ""?Leaders of the ""day Without A Woman""?strike-arrested outside Trump International Hotel on Wednesday were released by police, one by one, later in the evening. Organizers Tamika Mallory, Carmen Perez and Linda Sarsour, co-chairs of January's Women's March on Washington, emerged from a police precinct exhausted but optimistic, greeted by a couple dozen activists who had waited to give them food and support. Police said 13 people were arrested. Sarsour, the last of the three leaders to be freed,-said the mood inside the jail cell was ""empowering""?and ""inspiring.""?Mallory, who was released about an hour earlier, said a dozen or so women were singing freedom songs to pass the time. Sarsour was upset that authorities were still holding fellow Women's March co-chair Bob Bland, who gave birth just a few months ago and needed to nurse her baby.- ""she's expressing her milk in the sink, but they won""t let her out,""?Sarsour said. Mallory, Perez and Sarsour said they would wait outside of the precinct until the last woman is released. Members of the group tweeted earlier that they were arrested after blocking traffic. ""I got arrested with some of the strongest women that represent the best that New York City has to offer,""?Sarsour said. ""I feel empowered, I feel proud of what I did today and I""ve done this many times before. ... I hope it sends a message to people that you're got to risk it, you're got to be bold in this moment.""Mallory said that she hopes Wednesday's strike shows people that President Donald Trump and his administration are ""not normal.""?""We-will consistently resist and ensure that this entire country is aware that if women are not happy no one will be happy,""?Mallory said.- ""the resistance,""?she said earlier, ""is alive and well,""Oh, yes it is.- Watch the full Facebook live stream with Mallory below. To watch the full Facebook live stream with Sarsour head here.- This-Women's History Month, remember that we have the power to make history every day. Follow along with HuffPost on Facebook, Twitter, and-Instagram-in March using-#WeMakeHerstory. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -2029,2017/3/9,http://www.huffingtonpost.com/2017/03/08/electronics-store-radioshack-files-for-bankruptcy-again_n_15253342.html,Electronics Store RadioShack Files For Bankruptcy Again,"RadioShack will close approximately 200 stores and will evaluate options on the remaining 1,300.","U.S. electronics chain RadioShack Corp filed for bankruptcy on Wednesday for the second time in a little over two years, faced with a challenging retail environment and an unsatisfying partnership with wireless provider Sprint Corp. The Chapter 11 filing comes after RadioShack, owned by General Wireless Operations Inc, tried to revitalize its business by co-branding stores with the wireless carrier in an effort to compete against their largest rivals. General Wireless, which acquired the RadioShack brand in 2015, listed assets and liabilities in the range of $100 million to $500 million in the U.S. bankruptcy court for the Delaware district. RadioShack will close approximately 200 stores and will evaluate options on the remaining 1,300, the company said in a statement. Sprint will convert several hundred locations into Sprint corporate-owned stores, the wireless provider said in a separate statement.- RadioShack's bankruptcy filing and subsequent store closings are not material to Sprint's overall sales results, Sprint added. RadioShack, a nearly 100-year-old chain that captured the heart of electronics enthusiasts for its specialty products such as ""walkie talkies,""?first filed for bankruptcy in 2015 after the rise of mobile phones caught it off-guard and customers abandoned its stores for big box competitors including Best Buy Co Inc and Amazon.com Inc. In an attempt to keep the doors open on 1,740 stores, RadioShack struck a partnership with Sprint during its bankruptcy, inviting the mobile carrier to co-brand with the company and set up smaller stores within its own. At the time, Sprint viewed RadioShack's retail footprint as a way to quickly scale up its own business. But, in the years since RadioShack has emerged, both Sprint and RadioShack have been challenged. Sprint, whose network is viewed as inferior to the country's largest carriers, Verizon Communications Inc and AT&T Inc, has been forced to offer heavy discounts to grow its business. RadioShack meanwhile has struggled to compete against internet behemoth Amazon.com Inc and for the attention of shoppers who increasingly wait for deep discounts before making a purchase. The influx of cheaper copycat consumer products manufactured abroad has also hurt the business. Still, in the years since its first bankruptcy, RadioShack has focused on expanding its private label offerings, which include drones, radios and adapters, and now makes up the majority of its business. The shift away from selling other retailers""?products to its own has helped it reduce operating expenses and increase gross profit. The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -2030,2017/3/9,http://www.huffingtonpost.com/2017/03/08/congress-bank-of-america_n_15252850.html,Congress Is Doing A Huge Favor For BofA While No One Else Watches,Swamp: drained.,"WASHINGTON ""?House and Senate committees will consider an obscure bill called the ""Fair Access to Investment Research Act""?on Thursday. It will not be a major media event. The bill, which will likely sail through Congress, will not cause a new financial crisis, bar millions from accessing health insurance or undermine any foreign policy alliances. But it will help one company ""?Bank of America ""?make money by avoiding lawsuits. Bank of America is the only corporation that has lobbied on the bill, according to the federal lobbying disclosure database. ""It's all Bank of America,""?notes one Democratic aide. ""nobody else has come in to talk about this.""?Rest assured, distressed citizens: Even in an era of legislative chaos and political mayhem, Congress is still finding time to deliver detailed, targeted favors to corporate interests. Things are basically back to normal. Brokerage firms like BofA ""?which declined to comment for this story ""?make money by recommending and selling securities to clients. But many of them also issue research reports on various companies and investments. Research reports on traditional stocks are currently protected against lawsuits for botching facts or omitting important information.-The bill BofA is pushing would extend those protections to reports on investments known as exchange-traded funds, or ETFs. But the way the bill is written would shield significant conflicts of interest in the ETF world from a host of lawsuits, for no apparent reason. ETFs purchase baskets of assets and then sell ownership shares to investors, who can buy and sell those shares on an exchange like ordinary stocks. ETFs that track indexes, such as the S&P 500, have been around since the 1990s. But since 2008, a Securities and Exchange Commission rule has fostered the proliferation of a host of riskier, more complex ETFs, many of which carry high fees and are unsuitable for a large swath of the investing public. Outside advisers to the ETF pick the actual assets in the fund, and these advisers ""?typically brokers ""?could easily issue research reports on ETFs they advise, creating a clear conflict of interest.-As it's currently written, the Fair Access to Investment Research Act would make it harder to sue a company when it issues bogus research reports on ETFs that it manages.- And a good ranking from a supposedly objective research report can be a useful tool for salespeople trying to pitch those investments. In the early 2000s, then-New York Attorney General Eliot Spitzer made his political career by nailing big banks for giving high marks to stocks they knew to be lousy because they knew that those good grades would help their brokers foist bad stocks onto misled buyers. There aren""t many big banks currently publishing ETF research, but they do exist. Morgan Stanley's wealth management division publishes ETF research despite the legal liability involved, relying on the radical strategy of not writing dodgy reports. BofA is getting help in its quest from two lobbying front-groups for big corporations: the Securities Industry and Financial Markets Association and the U.S. Chamber of Commerce, which have also lobbied for the bill. Bank of America is a member of SIFMA. The chamber does not publicly disclose its members, but BofA is widely believed to be a member of the chamber, which has promoted BofA in various ways. There will be no financial apocalypse if Bank of America gets its way on the bill in Washington.-And it probably will get its way. Similar legislation passed the House last year by a vote of 411 to 6 but was stymied in the Senate. With Republicans in control of both chambers of Congress and the White House, there's very little Democrats can do this time around to stop a bill that amounts to a nice perk for a big bank. But even if Democrats do stop it ""?Sen. Elizabeth Warren (D-Mass.)-has filed an amendment that would eliminate one of the most glaring problems with the bill-""?the fact that a favor for Bank of America is the source of bipartisan cooperation on Capitol Hill speaks volumes about congressional priorities. - Sign up for the HuffPost Must Reads newsletter. Each Sunday, we will bring you the best original reporting, long form writing and breaking news from The Huffington Post and around the web, plus behind-the-scenes looks at how it's all made. Click here to sign up! Do you have information you want to share with the Huffington Post? Here's how. Every week, HuffPost Must Reads features a behind-the-scenes look at how longform journalism is made. We go under the hood. Why did the writer take that unexpected angle? How hard was it to get that source on the record? We're here to tell that story. Learn more", -2031,2017/3/9,http://www.huffingtonpost.com/2017/03/08/pete-sessions-sean-spicer_n_15252402.html,GOP House Chair Tells Sean Spicer To Mind His Own Business On Obamacare Repeal,"""I would encourage Mr. Spicer if he's going to start talking about my business to give me a darn call.""","WASHINGTON ""?A Republican House committee chair said he would like White House Press Secretary Sean Spicer to keep his nose out of Congress""?business on Obamacare repeal, highlighting the tensions between the two branches as they try to come to an agreement on the best path forward.- ""I will just point blank say that I would encourage Mr. Spicer if he's going to start talking about my business to give me a darn call,""?Rep. Pete Sessions (R-Texas), the House Rules Committee chair, said Wednesday. ""I try not to get in his business, and I don""t appreciate him getting in my business.""?Spicer tried to assure reporters Wednesday that President Donald Trump's administration was approaching health care legislation thoughtfully by reaching out to lawmakers on both sides of the aisle. ""This was a full effort to reach out to members of the House and Senate. It's going through regular order in the House. Every member of the House and Senate will be able to have their opportunity to have amendments offered through the committee process and on the floor,""?Spicer said in his press briefing. During a House Rules Committee hearing Wednesday, Ranking Member Louise Slaughter (D-N.Y.) brought up Spicer's remarks. The committee decides how legislation will be treated, including whether there will be an ""Apen rule""?process that allows members to add amendments.- ""We are very excited to hear this news,""?Slaughter said.- But Sessions wasn""t on board with Spicer's suggestion. He said he had never talked to the White House about whether there would be an open rule and stressed that the administration doesn""t get to control Congress. ""that is in an entirely different article of the Constitution,""?he said.- Sessions was clearly annoyed by the situation the White House put him in, and there was silence after he spoke, punctuated by Democrats then trying to lighten the mood by joking that they pass Sessions""?message along to Spicer. ""He [Spicer] can be in his lane, and I can be in my lane, but he's in my lane now. ... I did not pre-clear that and he did not call me,""?Sessions continued, adding that he knows Spicer and considers him a ""Hine young man""?nevertheless.- Watch Sessions""?comments:- Spicer did not return a request for comment. The White House and House GOP leaders have had trouble getting their entire caucus on-board with the repeal legislation, with conservatives threatening to revolt. Outside groups, including medical associations and conservative organizations, are also encouraging lawmakers to oppose the bill.-But the White House has been stepping up its outreach to wavering lawmakers, trying to convince them that, in the end, something needs to be done to repeal Obamacare.- Want more updates from Amanda Terkel? Sign up for her newsletter,-Piping Hot Truth,-here. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -2032,2017/3/9,http://www.huffingtonpost.com/2017/03/08/gop-rushes-forward-with-its-health-care-bill_n_15252374.html,GOP Rushes Forward With Its Health Care Bill,"They don't know what it will actually do, but that's not stopping them.","House Republicans on Wednesday plowed ahead with their effort to dismantle the Affordable Care Act, brushing aside new criticism of what their proposed legislation would do ""?and ignoring protests over the hurried process they are using to enact it. Two House committees ""?Energy and Commerce, and Ways and Means ""?spent the day debating complementary portions of the American Health Care Act, the long-awaited bill to repeal and ""replace""?the 2010 health care law. The proceedings themselves moved at a typically sluggish pace, as lawmakers re-litigated the Affordable Care Act, traded barbs about the GOP bill, and squabbled about procedure. But approval in each committee seems virtually certain ""?it's just a matter of when. Afterward, legislation would go to the House Budget Committee and then finally to the House as a whole. House Speaker Paul Ryan (R-Wis.) has said he hopes to wrap up the process before the April recess, which would mean the bill would go from introduction to passage in just a few weeks. The rapid pace of action, with committee markup less than two days after GOP leaders first allowed the public to see the bill, comes amid growing discontent over the legislation. Democrats uniformly oppose Affordable Care Act repeal and the proposed GOP ""replacement.""?But Republican leaders face bigger problems in the forms of a conservative revolt against their plan, as well as public opposition from the American Medical Association, the American Hospital Association,-AARP and other organizations. The GOP bill would roll back the Affordable Care Act's expansion of Medicaid and further reduce funding for the program, then restructure federal tax subsidies in ways that would generally provide less help for people with lower incomes and higher insurance costs. The bill would also reduce taxes on corporations and wealthy individuals, and loosen regulations on the insurance industry. Some people would benefit, because they could get cheaper coverage or because they would get tax relief they don""t get now. But others would struggle mightily ""?probably causing millions-to lose coverage. At least, that's what most experts expect would happen. In reality, everybody talking about the law is still relying on some guesswork, because the independent organizations that typically conduct formal assessments haven""t had time to crunch the numbers with any precision. And the Congressional Budget Office, which produces official estimates for the debate, probably won""t finish its projection until next week, congressional sources have said. Democrats on both committees complained about the absence of a CBO score and the lack of transparency about the contents of the legislation ""?and sought to delay the committees""?work. ""We need to know what this is going to cost, we need to know what kind of health insurance is going to be possible,""?Rep. Anna Eshoo (D-Calif.) said at the Energy and Commerce Committee meeting. ""You either don""t care about it or you are worried what's going to come out.""?""You""ve been harping on this for almost seven years. You can""t wait a couple of weeks?""?Eshoo said. ""We are playing with people's lives.""?Over and over again, GOP leaders turned down Democratic requests for more time, dismissing concerns about the lack of CBO scoring. At the same markup, House Majority Whip Steve Scalise (R-La.) slammed the agency as ""unelected bureaucrats in Washington.""?Those remarks echoed attacks on the CBO from other GOP leaders in Congress, as well as remarks that White House press secretary Sean Spicer made on Wednesday. The chorus of criticism directed at the CBO sounded a lot like a pre-emptive effort to undermine faith in the agency's assessment, which ""?when it finally appears ""?is unlikely to validate GOP boasts that their plan will provide better access to care. The ratings agency Standard & Poor's has already said it estimates 6 million to 10 million people would become uninsured if GOP legislation were to become law. The Senate, for its part, hasn""t really done much on repeal yet. But it's poised to act quickly if and when the House sends over a bill.-Majority Leader Mitch McConnell (R-Ky.) has said he will bring legislation directly to the floor for a vote, bypassing committees altogether. If the Senate votes yes, then it would just be a matter of working out differences between the chambers, to whatever extent they exist, so that Congress could send a final bill to President Donald Trump for his signature. In the seven years since the Affordable Care Act became law, Republicans have frequently attacked Democrats for supposedly crafting legislation in secret and then rushing votes before lawmakers really understood what it would do. In reality, those deliberations lasted more than a year, with hundreds of hours of hearings and floor debate and with CBO estimates guiding discussion at every step. That contrast was a topic of frequent discussion during Wednesday's hearings, with Democrats proposing amendments that would have prohibited votes before hearing from the CBO ""?and Republicans defeating those amendments. At the Ways and Means hearing, Rep. Sandy Levin (D-Mich.), who sponsored one of those amendments, accused Republicans of rushing votes because they wanted to avoid scrutiny of the legislation. ""You'r fearful that the CBO will provide answers to questions that you don""t like,""?Levin said. ""You want essentially a sneak attack ... before the public hears and we have from the CBO. That is something inexcusable.""?Ways and Means Committee Chairman Kevin Brady (R-Wis.) denied the charge, and suggested that Republicans were merely conducting their hearings in the same way that Democrats had back in 2009. As proof, he noted that the very same committee, Ways and Means, had marked up health care legislation without a full CBO projection, relying instead on a letter from the agency's director. ""did you have CBO score on that massive bill?""?Brady said. ""Absolutely not.""?As Levin pointed out, that ""letter""?was actually a 14-page document that included detailed, if preliminary, tables breaking down the bill's expected impact on insurance coverage and the deficit. It gave lawmakers a solid grasp of what the legislation would do ""?something very conspicuously lacking in either committee on Wednesday. And as if the activity in those two committees was not enough for one day,-the House Education and Workforce Committee was also working on health care legislation, adopting three related but smaller bills. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -2033,2017/3/9,http://www.huffingtonpost.com/2017/03/08/empire-state-building-pink-international-womens-day_n_15251440.html,Empire State Building Shines Pink In Solidarity With Women Marching Below,International Women's Day had an ally in the sky.,"People across the country and the world marched in honor of women on Wednesday. They marched for women's economic power, they marched for international solidarity and they marched for women's groundbreaking achievements throughout history. And as the sun set over the marching in New York City, the Empire State Building stood tall and vibrant pink. The magenta lights on New York City's second tallest building were chosen to honor International Women's Day-and to show the Empire State Building's solidarity with HeForShe, a United Nations-sponsored campaign aimed at encouraging men to commit to gender equality. We'r pretty in pink tonight! Our lights are shining in magenta, honoring @HeForShe and International @WomensDay. #InternationalWomensDay pic.twitter.com/FmKM0QW2Uy The lights atop the Empire State Building change colors for various events when-organizations file a tower lighting request. In the past, it has been illuminated in different hues as a memorial, to celebrate presidential victories or to honor religious holidays. Wednesday's showcase launched the beginning of HeForShe's Arts Week Initiative.-Bjarni Benediktsson,-the prime minister of Iceland,-and Edgar Ram��rez, actor and UNICEF ambassador,-visited the Empire State Building-earlier that day to celebrate the building turning pink. And when the bright color flashed on during sunset, women's rights activists on the ground welcomed the show of solidarity. ""Empire State, we hear you!!"" shouts a young girl when the #empirestatebuilding turns pink for #InternationalWomensDay-at twilight pic.twitter.com/AtGRkMbiHv Pink-hat Empire State Building makes a nice backdrop for this march pic.twitter.com/pzIIdbfq0t Love that the Empire State Building is supporting #InternationalWomensDay . I appreciate all the amazing woman in my life. pic.twitter.com/AnlBSMinm4 The Empire State Building was reminding everyone who run the world #InternationalWomensDay pic.twitter.com/rlRajNNHgE Share this slide: How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -2034,2017/3/9,http://www.huffingtonpost.com/2017/03/08/china-trump-trademarks_n_15250932.html,China Moves To Approve At Least 35 Trump Trademarks,The approvals underline the complexities and potential concerns over conflicts of interest facing the president.,"SHANGHAI/WASHINGTON, March 9 (Reuters) - China has granted preliminary approval for at least 35 trademarks linked to Donald Trump, documents on China's state trademark office show, giving the U.S. President and his family protection were they to develop the ""trump""?brand in the market. The trademarks, all variations in English and Chinese on the name ""donald Trump,""?were given preliminary approval in two lists published on the Trademark Office of the State Administration for Industry and Commerce on Feb. 27 and Monday. The approvals underline the complexities and potential concerns over conflicts of interest facing President Trump, who has a sprawling business empire from hotels to apparel using the Trump name around the world. Trump, a wealthy real estate developer, has previously said he has handed over his business interests to a trust overseen by one of his sons and a Trump Organization executive. He can, however, revoke the trust at will and, as its sole beneficiary, remains linked to it financially. The new trademark approvals cover such businesses as branded spas, massage parlors, golf clubs, hotels, insurance, finance and real estate companies, retail shops, restaurants, bars and bodyguard and escort services. The 35 trademarks, which Trump's lawyers applied for in April last year, are registered to ""donald J. Trump""?and listed to the address of Trump Tower on Fifth Avenue in New York. The Associated Press earlier reported the approvals of the trademarks, which it said also included three further trademarks not directly registered in the President's name. These related to Scion, a hotel brand Trump's sons want to expand in the United States. Reuters could not immediately confirm the three further approvals. Representatives for the Trump Organization did not immediately respond to a request for comment. Trump's personal ties between politics and business have prompted concern from politicians and rights groups who say the President could face potential conflicts of interest related to the extensive business affairs of his family. Democratic Senator Ben Cardin, the ranking member on the U.S. Senate Foreign Relations Committee, called for the Departments of State, Commerce and Justice to brief Congress on the Chinese trademark approvals and on ""the potential constitutional dangers that they present.""?""This is an astonishing development ... It's clear to me that officials in Beijing have come to appreciate the potential return on investments for China in having a positive, personal business relationship with the President of the United States,""?Cardin said in a statement. Cardin has previously introduced a resolution demanding Trump cut his ties with the Trump Organization or risk violating the Emoluments Clause of the Constitution, which bars public servants from accepting anything of value from foreign governments unless approved by Congress. The preliminary approvals are open to be challenged for around a 90-day period from the date of approval. If no objections they will be formally registered in late May and early June respectively. Trump received a single trademark approval last month in China for Trump-branded construction services, following a 10-year legal battle. (Reporting by Adam Jourdan in SHANGHAI and Eric Walsh in WASHINGTON; Editing by James Dalgleish and Lincoln Feast) The Morning Email helps you start your workday with everything you need to know: breaking news, entertainment and a dash of fun. Learn more", -2035,2017/3/9,http://www.huffingtonpost.com/2017/03/08/justice-breyer-dissent-solitary-confinement_n_15250542.html,"In Late-Night Dissent, Justice Breyer Sounds Off Against Solitary Confinement","The punishment raises ""serious constitutional questions,"" the Supreme Court justice wrote.","Very late on Tuesday, the Supreme Court denied several pleas from a Texas death row inmate requesting to be spared from execution.- Roland Ruiz had been sentenced to death for the 1992 murder-for-hire of a woman whose husband and brother-in-law wanted her killed. The two men wanted to collect on a $400,000 life insurance policy; instead, they got life sentences-for plotting her murder. Ruiz was executed shortly after midnight. He was 44. According to a prison official, his final words were for Theresa Rodriguez's surviving relatives: ""Words cannot begin to express how sorry I am and the hurt that I have caused you and your family. May this bring you peace and forgiveness.""?But before the execution could proceed, Justice Stephen Breyer became the lone voice who would""ve stopped it.- ""I believe his claim is a strong one, and we should consider it,""?Breyer wrote in a lengthy statement accompanying one of the court's denials. In recent years, Breyer has been wanting to hear a case that may kill the death penalty for good, but Ruiz's case was not it. The justice took interest in something else: the way the inmate had been sitting on death row without meeting his fate for nearly a quarter-century, the bulk of it in solitary confinement. Some 125 years ago, Breyer wrote, the Supreme Court had recognized that imprisonment in isolation raises ""long-standing serious objections.""?As a result of this form of punishment, he added, many prisoners descended-""into a semi-fatuous condition,""?""became violently insane,""?""Committed suicide""?or otherwise ""did not recover sufficient mental activity to be of any subsequent service to the community.""?Breyer then appeared to turn his darts toward a colleague, Justice Anthony Kennedy, who did not join him in his bid to spare Ruiz but nonetheless in 2015 had raised-objections of his own about the ""Luman toll""?of solitary confinement. Kennedy was silent this time around, but Breyer quoted him at length ""?as if to remind him that he once appeared to agree that being caged all alone was cruel and unusual. And that Kennedy, too, had once called for a case to examine the constitutionality of the practice. Kennedy had even invoked Kalief Browder-""?the Bronx teenager who took his life after being imprisoned in Rikers Island for a crime he didn""t commit. Browder, too, had spent long periods in ""punitive segregation.""?So this may have been a way for Breyer to nudge his colleague, who has built a record on how the Constitution stands as a barrier for certain forms of punishment. ""If extended solitary confinement alone raises serious constitutional questions, then 20 years of solitary confinement, all the while under threat of execution, must raise similar questions, and to a rare degree, and with particular intensity,""?Breyer concluded. Last year, Breyer already indicated suffering on death row for 40 years may be unconstitutional. Only time will tell if Kennedy and others on the Supreme Court will join him in this lonely crusade. Do you have information you want to share with the Huffington Post? Here's how. How will Donald Trump's first 100 days impact YOU? Subscribe, choose the community that you most identify with or want to learn more about and we'll send you the news that matters most once a week throughout Trump's first 100 days in office. Learn more", -2036,2017/3/9,http://www.huffingtonpost.com/2017/03/08/jk-rowling-trump-tweet-international-womens-day_n_15249708.html,J.K. Rowling Shows Two Faces Of Donald Trump On International Women's Day,"Oh, the hypocrisy!","To honor International Women's Day, President Donald Trump tweeted Wednesday about his ""gremendous respect for women""?and celebrated ""the critical role of women here in America &-around the world.""?I have tremendous respect for women and the many roles they serve that are vital to the fabric of our society and our economy. On International Women's Day, join me in honoring the critical role of women here in America & around the world. Trump's tweets were simple, elegant and ""?dare we say ""?presidential.-But his polished words definitely weren""t fooling author and feminist-J.K. Rowling. Hours after POTUS sent off his International Women's Day tweets, Rowling fired back at Trump using his own words against him. The ""harry Potter""?author quoted Trump's tweet from that morning along with another, more memorable quote of his. This quote was more candid and appeared to indicate what Trump really thinks of women. ""I did try and fuck her. She was married. I moved on her like a bitch,""?a black-and-gold poster read, quoting a 2005 recording of Trump during the filming of ""Access Hollywood.""?""I'm automatically attracted to beautiful. ... -I just start kissing them. It's like a magnet. ... I don""t even wait,""?read the poster. ""And when you'r a star they let you do it. ... Grab them by the pussy. You can do anything.""?At the bottom of the poster was a reminder of the stark reality we live in: The quote was attributed to ""the President of the United States.""?'I have tremendous respect for women and the many roles they serve that are vital to the fabric of our society & our economy.' Donald Trump pic.twitter.com/JveWBihQFg Rowling wasn""t the only person who called out Trump's hypocrisy on the women's day.- The president's tweet received hundreds of replies from people who pointed out more of his misogynistic behavior, his anti-abortion executive order and the fact that his administration has separated mothers from their families through deportations. @realDonaldTrump Going out on a limb here ""?you didn't write this one did you? @realDonaldTrump yeah right pic.twitter.com/vzxrWJKt8w Share this slide: Every Friday, HuffPost's Culture Shift newsletter helps you figure out which books you should read, art you should check out, movies you should watch and music should listen to. Learn more", -2037,2017/3/9,http://www.bbc.co.uk/news/uk-politics-39213349,Hammond: Budget National Insurance rise due to 'new challenges',"Chancellor Philip Hammond says National Insurance is being increased for self-employed workers because of ""new challenges"" the government faces.","Chancellor Philip Hammond says National Insurance is being increased for self-employed workers because of ""new challenges"" the government faces. Mr Hammond is facing a backlash against the Budget announcement, which breaks a 2015 manifesto pledge on tax rises. He insisted ministers had honoured a ""broad commitment"" not to raise taxes. Labour urged the government to ""think again"" on the change, which will mean 1.6 million people paying ?240 on average more every year. Shadow chancellor John McDonnell said his party could join forces with rebel Conservatives who say the increase does little to encourage enterprise and risk-taking. But Mr Hammond defended the move in an interview with BBC Radio 4's Today programme. Asked about the Tories' pre-election pledges not to increase National Insurance, he said: ""There was a broad commitment to lock taxes so there would be no tax increases. That's what we have done."" As chancellor, Mr Hammond said he was ""working in an extremely constrained environment"" where most taxes could not be increased and spending in many areas was ring-fenced. The government, he said, faced ""some new challenges which we have to rise to"". Referring to the extra ?2bn committed to adult social care in the Budget, he said: ""We have to pay for these things somehow."" The government says self-employed people now have much the same pension and benefit rights as those in employment, so the disparity in National Insurance rates can no longer be justified. Mr Hammond added: ""What I think we have done now is get the relationship between employed and self-employed National Insurance contributions into a fairer place."" Some Conservative MPs have questioned the change, and Mr Hammond said that while he was ""always prepared"" to listen to backbench MPs: ""We have made a decision here to make the National Insurance system a little bit fairer."" The Conservatives' last general election manifesto explicitly ruled out rises in National Insurance, VAT and income tax during the lifetime of the current Parliament. During the campaign, the then-Prime Minister David Cameron continually repeated the commitment in public and contrasted it with the ""jobs tax"" which he said people could expect if they elected a Labour government. In the wake of Philip Hammond's Budget announcement, ministers argued that legislation enshrining the manifesto commitment in law - approved by Parliament in 2015 - only referred to National Insurance contributions paid directly by employers and their employees. Mr Hammond told BBC Breakfast that ""no-one had objected"" when this legislation made clear the ""no increases"" pledge did not include NI rates for the self-employed. Wednesday's changes would see the 9% rate of Class 4 National Insurance contributions currently paid by those self-employed people earning between ?8,060 and ?43,000 go up to 10% in April 2018 and to 11% in April 2019. Labour accused the government of ""breaking their promises"" and ""clobbering"" the self-employed while the Lib Dems and UKIP also criticised the move. Shadow chancellor John McDonnell told BBC Breakfast there was a ""general sense of unfairness"" and said he was ""hoping that we'll be able to persuade the chancellor to back off from this"". He said: ""Certainly the Labour Party will oppose this. I think other parties will as well. We may be able to persuade enough Conservative MPs to ask the chancellor now to think again."" Mr McDonnell said the policy would hit ""middle and low earners in particular"". There has also been a backlash from business with the Federation of Small Businesses saying it ""undermined"" the government's ambition for the UK to become the best place to start and grow a business. In his first Budget, Mr Hammond also announced a ?2bn cash injection for social care services in England, and ?345m in help for firms hit by business rate rises across England. Mr Hammond acknowledged the care system was under pressure with an ageing population, and said the new ?2bn for services in England over the next three years would allow councils to ""act now to commission new care packages"". He also said the government would set out the options for long-term funding of the social care system later in the year - although these would not include a ""death tax"". Other key measures in the Budget included:", -2038,2017/3/9,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39213767,Sturgeon: Autumn 2018 'common sense' for indyref2,"Scotland's first minister has said autumn 2018 would be a ""common sense"" date for any second independence referendum.","Scotland's first minister has said autumn 2018 would be a ""common sense"" date for any second independence referendum. Nicola Sturgeon continued to insist, however, that no final decision had yet been made on holding such a vote. In a BBC interview, she said she would take things forward at ""the pace that I think is right for the country"". Ms Sturgeon has previously said another referendum is ""highly likely"" following last year's Brexit vote. Scotland voted by 62% to 38% to remain inside the EU, and the Scottish government argues that access to the single market after Brexit is vital to the country's interests. Scottish ministers have put forward proposals they claim could achieve this, but have accused the UK government of ""intransigence"" on the issue. SNP economic spokesman Stewart Hosie told BBC Breakfast: ""The key thing is will the UK government really embark on this hard Tory, cliff-edge Brexit - and we fear they will. ""And secondly, will they actually accept, into the UK negotiated position, the very sensible suggestion put forward by Nicola Sturgeon... if they reject it out of hand then, as the First Minister has said previously, it does make a second independence referendum more likely."" He also agreed with Ms Sturgeon that autumn 2018 ""might make sense"". In a recent speech in Edinburgh, Ms Sturgeon said a second independence referendum may become a ""necessary"" way of protecting Scotland's interests. Interviewed by BBC political editor Laura Kuenssberg for a BBC documentary to be broadcast on Thursday, she gave her clearest indication yet about the possible timing of such a vote. Asked if autumn 2018 was a likely date, she replied: ""Within that window, of when the outline of a UK deal becomes clear and the UK exiting the EU, I think would be common sense time for Scotland to have that choice, if that is the road we choose to go down."" Asked if that meant she was not ruling out autumn 2018 as a possible date, she said: ""I'm not ruling anything out, I'm going to continue to take things forward at the pace that I think is right for the country."" Analysis by BBC political editor Laura Kuenssberg At Westminster and Holyrood in recent months there's been a building sense that Nicola Sturgeon has made up her mind to call a vote. If she is now willing to discuss the timing of a second vote in public, consideration of another independence referendum is far beyond the hypothetical. The crucial facet of that calculation is that the SNP believes its best chance of winning is before the EU negotiations are complete. But also, it's up to the Westminster government to permit another referendum. There are huge risks for them in denying it, but ministers in London certainly would not grant a vote at the time of the SNP's choosing without a fight. More from Laura Kuenssberg Scotland voted to stay part of the UK by 55% to 45% in the 2014 independence referendum. Ms Sturgeon's predecessor as first minister, Alex Salmond, has already predicted that a second independence referendum would take place in autumn next year. While the SNP does not hold an overall majority at Holyrood, it could count on the support of the Scottish Greens if the Scottish Parliament voted on holding a new referendum. Permission to hold such a vote, however, would have to be granted by the UK government at Westminster. Prime Minister Theresa May has so far declined to be drawn on whether her government would allow a second referendum. In her speech to the Scottish Conservative Party conference earlier this month, Mrs May accused the SNP of being ""obsessed with its own priority of independence"" to the detriment of devolved public services like education and health. Scottish Conservative leader Ruth Davidson said: ""Nicola Sturgeon has just admitted what everybody already knew - that the SNP is hell-bent on taking Scotland back to another divisive independence referendum and will use any excuse to do so. ""She knows that a referendum would inflict further damage on Scotland's economy. It is therefore deeply irresponsible for the first minister of Scotland to cast this cloud of uncertainty over our future. ""She needs to put the country first for once. People in Scotland don't want a second referendum, and the SNP doesn't have a mandate for one. Rather than cast our future under further doubt, Nicola Sturgeon needs to act like a first minister, provide some certainty for Scotland, and rule it out."" Nicola Sturgeon's interview was recorded for the BBC documentary Brexit: Britain's Biggest Deal - to be broadcast on BBC Two in England, Wales and Northern Ireland at 21:00 and on BBC Two Scotland at 23:15 on Thursday.", -2039,2017/3/9,http://www.bbc.co.uk/news/world-australia-39214515,'Justin Bieber impostor' on 931 child sex-related charges,A man who posed as Justin Bieber online has been charged with more than 900 child sex-related crimes in Australia.,"A man who posed as Justin Bieber online has been charged with more than 900 child sex-related crimes in Australia. The man, 42, masqueraded as the Canadian singer to gain explicit images from children, Queensland Police said. He was charged with 931 crimes, including three of rape, involving 157 alleged victims across the globe. Detective Inspector Jon Rouse called the allegations ""frankly horrendous"" and warned young fans of the singer and parents to be vigilant. ""The fact that so many children could believe that they were communicating with this particular celebrity highlights the need for a serious rethink about the way that we as a society educate our children about online safety,"" said Mr Rouse. Queensland Police confirmed the investigation also involved international authorities. According to local media they are German police and US Homeland Security. Of the alleged victims, 50 were in the US, up to 20 were in the UK and six were in Australia, police said. More precise information was still being gathered. The man was already facing charges in Queensland of possessing exploitative material and grooming children, but the 931 charges were added this week after police searched his computer. He had been using ""multiple online platforms"" including Facebook and Skype to communicate with children, police said. The fresh claims, dating back to 2007, include three charges of rape and five of indecently treating a child under 12. Mr Rouse said the allegations showed ""the global reach and skill that child sex offenders have to groom and seduce victims"". He urged parents to help keep children safe online. The accused man will face a Brisbane court on 6 April.", -2040,2017/3/9,http://www.bbc.co.uk/sport/football/39210118,Barcelona 6-1 PSG: 'Crazy and unbelievable' - how the world reacted,Barcelona had lost the first leg against PSG 4-0,"Share this with Grown men were crying, while for others it was a nightmare. Barcelona made Champions League history by recovering from a 4-0 last-16 deficit to beat Paris St-Germain in the second leg on Wednesday. How did the players, managers and the world react to one of the greatest nights in European football? Barca's stunning comeback against the French side - the biggest second-leg turnaround in Champions League history - was ""crazy and unbelievable"", according to midfielder Ivan Rakitic. ""It was really impossible,"" added the Croatian. And manager Enrique said: ""I was brought to my knees."" Looking to overturn a four-goal deficit, Barca hit back through Luis Suarez's header, Layvin Kurzawa's own goal and Lionel Messi's penalty to go 3-0 up. Their hopes looked to have faded when Edinson Cavani smashed in just after the hour mark, but Neymar had other ideas with a stunning free-kick on 88 minutes, before stroking in a penalty three minutes later. With time running out, the Brazilian chipped the ball into the box for Sergi Roberto to stab home the winning goal and send the Nou Camp into raptures. Enrique added: ""I don't think anyone stopped believing. After seeing them sit back despite the goal, the team were incredible. ""We risked everything and it paid off. You get finales like this very occasionally in football and this time it was our turn. ""A feat like this does everyone good and I'm delighted to enjoy a moment like this. The key was our efficiency. The sixth goal was scored with the hope of the fan who was on the other side of the world."" BBC Sport Spanish football writer Andy West at the Nou Camp Mayhem, utter mayhem. When Sergi Roberto sent that 95th-minute volley into the Paris St-Germain net, completing the greatest comeback in the history of European football, Camp Nou exploded in a release of raw, ecstatic emotion. All around me, people were hugging, jumping, screaming. Grown men were crying and strangers were leaping into each other's arms. Unlike so much of modern sport, there was nothing contrived or orchestrated about those celebrations, about that moment. This was deep, instinctive passion at its most authentic and unrefined. Just pure, wordless, thoughtless exhilaration. And it is surely for moments like this, which come along once every few years if you're lucky, that sport is so compelling. From a personal point of view, being there was a privilege. Two decades of attending sporting events in a professional capacity have hardened me to the extent that I thought nothing can move me. I was wrong. When that sixth goal went in, any sense of objective detachment completely disappeared, and I was standing open-mouthed, trying to take in what had happened and reminding myself to savour the moment. Something incredible had just happened and I was lucky enough to witness it in person. Like anyone else who was there, I know that I will talk about the night for years to come, and gradually we will find some words to adequately capture our recollections of how it felt. But realistically, there are simply no words to capture the full range of the emotions of that moment. I have never seen anything like it, and I probably never will again. This content will not work on your device, please check Javascript and cookies are enabled or update your browser ""I threw myself at it with everything. We were prepared for all this. The fans were like 10 extra players and in the end this is all for them."" Barcelona match winner Sergi Roberto. ""It's the best match I have ever played in my life."" Barcelona forward Neymar. ""I left some ligaments on the pitch but it was worth it."" Barcelona boss Luis Enrique. ""This is a historic achievement that will be remembered forever."" Barcelona president Josep Maria Bartomeu. ""It's a nightmare for everyone. Three goals in seven minutes is very difficult."" PSG president Nasser Al-Khelaifi. Super Bowl LI saw the New England Patriots produce the greatest comeback in Super Bowl history to beat the Atlanta Falcons 34-28 in overtime. The Patriots trailed by 25 points in the third quarter, but fought back to claim a fifth title in the most dramatic of circumstances. Liverpool won the 2005 Champions League final despite trailing 3-0 at half-time. The Reds, managed by Rafael Benitez, scored three goals in six minutes, courtesy of Steven Gerrard, Vladimir Smicer and Xabi Alonso, before going on to win the trophy for a fifth time. At the 2012 Ryder Cup, Europe battled back from 10-4 going into Sunday's singles, to win 14.5-13.5 thanks to Martin Kaymer's winning putt on the last green. Share this with Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. ""saloon doors, sticky floors""?Al describes his ideal pub in 60 seconds Run by the BBC and partners Basketball Open Session Beginners Running with Childcare - Steeple Claydon For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -2041,2017/3/9,http://www.bbc.co.uk/news/world-asia-india-39215235,Weight-loss surgery for 500kg woman in India,"An Egyptian woman, believed to be the world's heaviest at 500kg (1,102lb), has undergone weight reduction surgery.","An Egyptian woman, believed to be the world's heaviest at 500kg (1,102lb), has undergone weight reduction surgery. A spokesperson at Mumbai's Saifee Hospital said Eman Ahmed Abd El Aty, 36, had lost 100kg since arriving in India in January. ""We are trying to get her fit enough to fly back to Egypt as soon as possible,"" the hospital said in a statement. Her family said she had not left her house for 25 years until she came to Mumbai on a chartered plane. The spokesperson told the BBC that she was likely to lose more weight in the coming months. The surgery was performed by a team of doctors led by bariatric surgeon, Dr Muffazal Lakdawala. Bariatric surgery, also known as weight loss surgery, is used as a last resort to treat people who are dangerously obese (having a body mass index of 40 or above or 35 plus other obesity-related health conditions). Ms Abd El Aty's family says she weighed 5kg (11lb) at birth and was diagnosed with elephantiasis, a condition in which body parts swell due to a parasitic infection. By the time she was 11, her weight had risen sharply and she suffered a stroke which left her bedridden. She is cared for by her mother and sister. However, Dr Lakdawala told the BBC in December that he believed Ms Abd El Aty did not have elephantiasis but suffered from obesity-related lymphoedema which causes gigantic swelling of the legs. Bariatric surgery, also known as weight loss surgery, is used as a last resort to treat people who are dangerously obese and carrying an excessive amount of body fat. The two most common types of weight loss surgery are:", -2042,2017/3/9,http://www.bbc.co.uk/news/uk-politics-39213346,"Osborne to earn ?650,000 a year advising US financial firm","Former Chancellor George Osborne is to be paid ?650,000 a year for advising the US fund manager Blackrock.","Former Chancellor George Osborne is to be paid ?650,000 a year for advising the US fund manager Blackrock. In an updated entry in the Commons register of interests, he disclosed that he would be paid ?162,500 each quarter and would work 48 days a year. He has already earned close to ?800,000 for speeches made to banks and other firms since leaving office in July The MP for Tatton said he had consulted the business appointments watchdog before taking on the Blackrock job. The register of members' interests also states Mr Osborne expects to receive ""registrable equity""- shares - in Blackrock ""in the future"". The Advisory Committee on Business Appointments advises ministers on whether it is appropriate for them to take on jobs within two years of leaving office. When it named him as an adviser to its Investment Institute in January, Blackrock said Mr Osborne would provide ""perspectives on European politics and policy and Chinese economic reforms"" as well as wider geo-political trends. He joins his former chief of staff, Rupert Harrison, who is a senior strategist for the US investment firm. Former foreign secretary William Hague joined Citigroup as an adviser earlier this year while former prime minister Gordon Brown sits on the global advisory board at investment manager Pimco, and his predecessor Tony Blair joined JP Morgan in 2008 shortly after leaving office. Mr Osborne, who served as chancellor between 2010 and 2016 before being sacked by Theresa May after she took power, was in the Commons on Wednesday to watch his successor Philip Hammond deliver his first Budget. After the event, he tweeted that ""sound money and fiscal responsibility are the only secure foundations of a fair and strong economy"".", -2043,2017/3/9,http://www.bbc.co.uk/news/entertainment-arts-39215975,Kidman explains her Oscars 'seal hands' clapping,Nicole Kidman has finally revealed why she appeared to be clapping like a seal at this year's Oscars ceremony.,"Nicole Kidman has finally revealed why she appeared to be clapping like a seal at this year's Oscars ceremony. Australian radio presenter Kyle Sandilands told the Lion star: ""I told everyone you were clapping like that because you had the rings on and you didn't want to damage the rings."" ""You are so right Kyle,"" she replied. ""It was really difficult because I had a huge ring on which was not my own, but was absolutely gorgeous and I was terrified of damaging it."" Oscars 2017: Full coverage Speaking on the KIIS1065 radio station, she sounded relieved that the truth was finally out, after much social media speculation about apparent inability to clap properly. ""It's so true, I'm so glad you clarified that,"" said Kidman. ""It was really awkward and I was like gosh, I want to clap, I don't want to not be clapping, which is worse, right - 'why isn't Nicole clapping?'"" She laughed when Sandilands joked: ""They're putting it on the big screen at Sea World with an [sea lion sound] 'urgh, urgh, urgh' thing - it's just not fair!"" Kidman was nominated for best supporting actress for her role in Lion, but lost out to Viola Davis. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -2044,2017/3/8,http://www.bbc.co.uk/news/world-us-canada-39210628,FBI and CIA launch criminal investigation into 'malware leaks',"US federal agencies have launched a criminal investigation into the public release of documents said to detail CIA hacking tools, US officials say.","US federal agencies have launched a criminal investigation into the public release of documents said to detail CIA hacking tools, US officials say. They told US media that the FBI and CIA were co-ordinating the inquiry after Wikileaks published thousands of files. These carried claims that the CIA had developed ways to listen in on smartphone and smart TV microphones. The CIA, FBI and White House have declined to comment on the authenticity of the files leaked on Tuesday. A CIA spokesperson told the BBC on Wednesday: ""The American public should be deeply troubled by any Wikileaks disclosure designed to damage the intelligence community's ability to protect America against terrorists and other adversaries. ""Such disclosures not only jeopardise US personnel and operations, but also equip our adversaries with tools and information to do us harm."" CIA faces huge problem over malware claims CIA hack: Should we be worried? On Wednesday, the US officials - who spoke on the condition of anonymity - told US media that the criminal investigation was looking into how the files came into Wikileaks' possession. The inquiry would also try to establish whether the disclosure was a breach from inside or outside the CIA, the officials added. The CIA has not confirmed whether the documents - said to date between 2013 to 2016 - are real. But one of its former chiefs was concerned by their publication. ""If what I have read is true, then this seems to be an incredibly damaging leak in terms of the tactics, techniques, procedures and tools that were used by the Central Intelligence Agency to conduct legitimate foreign intelligence,"" ex-CIA director Michael Hayden told the BBC. ""In other words, it's made my country and my country's friends less safe."" Several of the tech firms whose products have been allegedly compromised by the CIA gave their first reactions on Wednesday. Apple said it had already addressed some of the vulnerabilities. ""The technology built into today's iPhone represents the best data security available to consumers, and we're constantly working to keep it that way,"" it said. Samsung - whose F8000 series of televisions was reportedly compromised - said that ""protecting consumers' privacy and the security of our devices is a top priority at Samsung"". The leaks also claimed that the CIA had created malware to target PCs running Microsoft's Windows operating system. ""We are aware of the report and are looking into it,"" a spokesman from Microsoft said. Google has also reacted to claims that the CIA was able to ""penetrate, infest and control"" Android phones due to its discovery and acquisition of ""zero day"" bugs - previously unknown flaws in the operating system's code. ""As we've reviewed the documents, we're confident that security updates and protections in both Chrome and Android already shield users from many of these alleged vulnerabilities,"" the firm told the news site Recode. ""Our analysis is ongoing and we will implement any further necessary protections. We've always made security a top priority and we continue to invest in our defences."" The World Wide Web Foundation - which campaigns for internet privacy - said the US government needed to issue a detailed response.", -2045,2017/3/9,http://www.bbc.co.uk/news/uk-england-39102860,No DSS: Most flat shares refuse benefit claimants How affordable is rent in your area?,"Landlords are more likely to accept potential renters who own pets than people claiming benefits, a BBC investigation has found.","Landlords are more likely to accept potential renters who own pets than people claiming benefits, a BBC investigation has found. Analysis of some 11,000 online listings for spare rooms found all but a few hundred stated benefit claimants were not welcome. Campaign groups say it is ""naked discrimination"" and are calling for a change in the law. Landlords say more social housing needs to be built. The BBC England data unit analysed listings on the website SpareRoom, looking at London and 18 other towns and cities across England. It is a similar pattern on another house sharing website. On OpenRent.co.uk, just 580 out of 3,342 listings accepted people on benefits. The websites specify ""No to DSS"" in flatmate preferences. DSS is the acronym for the Department of Social Security, which was replaced in 2001 by the Department for Work and Pensions. For more stories from the BBC England data unit follow our Pinterest board. Eva describes her six-month search for a place to live as ""humiliation"". The 33-year-old from Hackney works part time designing and building furniture, while bringing up seven-year-old son Bobby. Yet the cost of rent is so much her earnings do not cover it, and like many thousands of people she has to claim housing benefit. ""I eventually got somewhere because I had a UK-based guarantor, but I also have not told my landlord I receive benefits,"" she says. ""I was looking for a two-bedroom flat because my landlady wanted back the one I had been living in for five years. ""Every time I'd be asked if I was working. When I said yes I was asked how much I earned. When I said I received housing benefit, that was it."" It was the summer of 2015 when Eva was given two months' notice. Yet it was the December by the time she had found somewhere to go. ""The local council would only consider us for the waiting list if we had a bailiff's letter,"" Eva says. ""I rarely got an explanation as to why landlords would not accept us. ""One person told me it was something about the freehold not allowing her to rent people on benefits. ""Another said 'it's the others giving you a bad name'. Some would insist on three or even six months' rent in advance. ""I quickly learned to just not tell people."" 3,882,557 Housing benefit claimants in England 1,242,298 claimants living in private rented accommodation ?110.13 average weekly payment per claimant in private accommodation ?95.92 average weekly payment per claimant in social housing Campaign group Digs, which supports people renting in Hackney, said barring benefit claimants was ""naked discrimination"". Spokeswoman Heather Kennedy said: ""People claim housing benefit for different reasons, including because they're disabled, caring for others or escaping a violent relationship. And as rents have sky-rocketed and wages stagnate, more and more working people are having to claim benefits to cover their rent. ""Landlords and agents have far too much power in relation to ordinary people. The only way to fix this is proper regulation, to protect people from a rental market which the government have now finally accepted is badly broken."" Changes to equality law for the rental market came into force in Ireland in January 2016. From that point on, anyone in receipt of rent supplement, housing assistance or other social welfare payments could no longer be discriminated against when it came to accommodation or related services. Advertisers can also be held liable for discrimination if they publish anything indicating discrimination. People who are discriminated against in Ireland can take it to the Workplace Relations Commission, which can fine landlords up to �15,000 (about ?12,900). A spokewoman for the Irish Department of Jobs, Enterprise & Innovation said there had so far been 45 complaints ""citing rent supplement or another payment under the Social Welfare Acts as a ground of discrimination"". Roger Harding, a director at the homelessness charity Shelter, said: ""We all know how difficult and stressful it can be to find somewhere to live. ""But, for the many renters who rely on local housing allowance to top up their income in order to meet the rent, finding somewhere to live is almost impossible. Mr Harding said the government's freeze on housing allowance had left ""little incentive for landlords to want to rent to people whose pockets are starting to feel the pinch"". The National Landlords Association said cuts in welfare meant benefit payments in many parts of the country ""no longer cover the rent"". It said the private rented sector now accounted for 19% of UK households and had doubled in size since 2002, while social housing had fallen and now made up 17% of households. Richard Lambert, chief executive of the association, said: ""Most landlords support the construction of social housing as a better investment of government funds. ""Not only would this mean more housing available and affordable for those most in need, it would also relieve the pressure on the private sector that creates the breeding ground for the minority of rogues and criminals who get away with providing substandard housing."" 'Sky-high' rental hotspots revealed Homes 'too expensive' for Help to Buy Isa Help to Buy scheme's impact revealed The Royal Institution of Chartered Surveyors (RICS) said on Thursday that access to private rented properties was falling among people on housing benefits. A survey of private landlords found caps to housing benefits were cited by 29% of respondents as a key reason why those on lower incomes were being pushed out of the rental market. Matt Hutchinson, director of SpareRoom, said: ""It's a sad fact it can be a real struggle to find places to rent if you rely on benefits. ""When we've surveyed landlords to find out why, the overwhelming response has been issues with rent being paid in full or on time. ""In the long term the best course of action isn't to stop discrimination against people receiving benefits, it's to reverse the decision taken in the 1980s to subsidise people, rather than things. ""We spend ?27bn a year on Housing Benefit. If we spent that on building homes, rather than helping people afford ever escalating costs, we could solve the housing crisis."" The Department for Work and Pensions said under Universal Credit housing costs and support are paid direct to the tenant, not the landlord. That would mean the only way a landlord would be aware a tenant was in receipt of support would be if the claimant themselves told them. The Department for Communities and Local Government declined to comment. Reporting team: Daniel Wainwright, Paul Bradshaw, Pete Sherlock", -2046,2017/3/8,http://www.bbc.co.uk/news/technology-39214925,Uber stops using Greyball 'secret program' to dodge regulators,Uber says it will ban a secret software tool from being used to evade undercover regulators.,"Uber says it will ban a secret software tool from being used to evade undercover regulators. The software, called Greyball, seeks to identify officials around the world trying to catch Uber drivers operating illegally. It then denies them service. The ride-hailing firm has been using the tool to secure early access to cities where its operations had not yet been authorized. But having defended the system just a few days ago, it has now done a U-turn. ""We are expressly prohibiting its use to target action by local regulators going forward,"" said Uber's chief security officer Joe Sullivan. He said the same technology had also been used for many other purposes, including for marketing promotions and deterring Uber riders using the app in violation of the company's term of service. These are understood to include stopping users aiming to physically harm drivers and targeting competitors looking to disrupt operations. These uses will not be affected by the ban. Mr Sullivan said that because of the way the system was configured, it would take some time to ensure the prohibition was fully enforced. Greyball identified regulators posing as ordinary passengers, by collecting data on the location used when ordering a taxi and determining whether this coincided with government offices. A report by The New York Times found that it also checked credit card information to establish whether the user was linked to an institution or law enforcement authority. Uber, the report added, even visited phone shops to trace smartphones bought by city officials setting up multiple accounts in an effort to catch the company's drivers. Once individuals suspected of attempting to entrap drivers were identified, they would be served a ""fake"" version of the Uber app, with fictitious cabs on view. If there were they were successful in ordering a real one, they would have their booking cancelled. Uber has been hit by a series of controversies recently. A video of its chief Travis Kalanick swearing at a driver appeared on social media, and there had also been allegations the company had routinely ignored cases of sexual harassment.", -2047,2017/3/9,http://tass.com/defense/934560,Expert points out US ban on deals with Russia's top arms exporter lingers on,Russia's arms exporter company official comments on the US Senate bill on military assignments for the 2017 financial year,"MOSCOW, March 9. /TASS/. A ban imposed on Pentagon preventing it from cooperating with Russia's Rosoboronexport has been long-in effect, as mentioned on Wednesday only in connection with approval of the US Department of Defense financing until autumn of 2017, a representative of Russia's arms exporter told TASS on Thursday. The company representative commented on the decision by the House of Representatives of the US Senate, which on Wednesday passed a bill on military assignments for the 2017 financial year. The document bans the Pentagon from using its budget funds for transactions with Russia's Rosoboronexport. ""As a matter of fact, this ban slapped on the Pentagon has been in effect for a long time and has remained in place. Today it was mentioned as a specification, since the US was approving the program to finance the Pentagon until the autumn of 2017,"" the source said.", -2048,2017/3/9,http://tass.com/economy/934559,Potential investor of Russia's Belkomur railway to attend Arctic Forum,"The Belkomur project is a new railway route, which will connect industrially developed regions in Siberia and the Urals with ports in Russia's North and North-West","ARKHANGELSK, March 7. /TASS/. Potential investor in construction of the Belkomur railway and the Arkhangelsk deepwater seaport - China's Poly Group will participate in the upcoming Arctic Forum, due in Arkhangelsk on March 29-30, Director General of the Belkomur Company Vladimir Shchelokov told TASS. ""The Chinese government has confirmed (the Belkomur and port's) investor Poly Group will take part in the Arctic Forum,"" he said. On Tuesday (March 7), a delegation of the Arkhangelsk region, led by Igor Orlov, and a Chinese delegation, led by Vice President of China's Poly Group Wang Lin, had a meeting in Moscow. The Chinese representative plans to make a speech on investment in the project at the Arctic: Territory of Dialogue Forum in Arkhangelsk on March 29-30. Belkomur's director general said Poly Group, a part of which is Poly International Holding Co., presently is considered the sole supplier of services. ""We have been working with this partner for more than two years now,"" head of the Russian company said. ""The continuing negotiation process has developed to the stage of suggesting common action."" The forum organizers are working on meetings during the event, on presentations of the deepwater port and Belkomur for the Russian and Chinese sides, including for the Chinese authorities and businesses. China's international logistics concern COSCO and the China Marine Fuel Service Corporation have confirmed their participation in the event, head of the Russian company said. ""We continue moving on to see foreign counterparts, who will use the port and the railway for the cargo moving from China into Europe,"" he said, adding the Chinese side had confirmed it was ready to finance construction of the Belkomur railway and of the Arkhangelsk sea port. ""The Chinese side has confirmed they are ready to finance both projects, they are waiting for decisions of the Russian side,"" he said. One of the suggestions from the Chinese side is to put on agenda for co-chairs of the Russian-Chinese commission on preparations for regular meetings of prime ministers - Russia's Deputy Prime Minister Dmitry Rogozin and Vice Premier of the State Council of the People's Republic of China Wang Yang - issues of cooperation in development of the Arctic, including joint exploitation of the Northern Sea Route, construction of the Belkomur railway and of the Arkhangelsk deepwater sea port, as well as cooperation in the energy, scientific expeditions and tourism in the Arctic region. The Belkomur project is a new railway route, which will connect industrially developed regions in Siberia and the Urals with ports in Russia's North and North-West. The project will add to effective development of the Arctic projects and will form the international railway route across Russia between Russia's European North and China, thus cutting by 800km the transportation distance for deliveries from Siberia and the Urals. At the regional level, the project will boost up industrial and social-economic developments in Komi, Perm, Arkhangelsk, Murmansk and other adjusting areas. As the route is implemented, another 39 investment projects will develop further the North-Western part of Russia, attracting more than 720 billion rubles (almost $13 billion) in private investments, and offering 28,000 new jobs. The new railway's annual capacity will be 35 million tons. Coal, mineral fertilizers, oil, timber, ores, construction materials, containers will be taken to the backbone ports of the Northern Sea Routes: to the ports of Murmansk, Arkhangelsk, Belomorsk, and later on also to Sabetta. The extra-budgetary funding of the railway construction will exceed 260 billion rubles ($4.5 billion). As the exploitation term (26 years) expires, the Belkomur railway will be transferred for further use to the Russian Federation. The Arkhangelsk deepwater port is a potential backbone infrastructure of the Northern Sea Route. Across the White Sea the port has a direct access to the ocean, thus granting independence of navigation from whatever political conditions. Construction of the port is a part of the Russian transport strategy to 2030. The new port will offer a more attractive alternative route for exported and imported goods to Europe, North America, the Asia-Pacific region (first of all China), and will offer an independent exist for large vessels into the World Ocean. Construction of a new deepwater port in Arkhangelsk is connected with the Belkomur railway project to cut transportation distance for cargoes from the Urals and Siberia by 800km. The Arctic: Territory of Dialogue Forum is a key international platform for discussing problems and future of the Arctic area at the global level. The forum is supported by the Russian government and its objective is to unite efforts of the international community for effective development of the Arctic and for higher living standards for the people living there. The first forum took place in 2010 and was devoted to modern problems of the Arctic region. The second forum in 2011 focused on formation of the Arctic transport systems, and the event in 2013 touched upon environmental safety. This year, the event's key topic is ""People and the Arctic."" The forum's organizer is the Roscongress Foundation. The Fourth Forum will take place in Arkhangelsk on March 29-30. It will feature about 1,500 participants from Russia and other countries. Tass is the general information sponsor.", -2049,2017/3/9,http://tass.com/defense/934556,Russian Defense Ministry to get ten new Sukhoi-35S fighters in 2017,The Sukhoi-35S is Russia's highly maneuverable multirole fighter of generation 4++,"KOMSOMOLSK-ON-AMUR, March 9. /TASS/. The Russian Defense Ministry this year will get a batch of ten highly maneuverable multirole fighters Sukhoi-35S and another Sukhoi-27 will be upgraded to the Sukhoi-35 level, First Deputy Defense Minister Yuri Borisov told the media on Thursday. ""Last year we concluded a long-term contract for building Sukhoi-35S planes. This year we expect ten newly-built Sukhoi-35S fighters and another four Sukhoi-27s upgraded to match the Sukhoi-35 capabilities,"" he said while visiting the Gagarin Aircraft-Building Plant in Komsomolsk-on-Amur. Borisov spoke highly of the Sukhoi-35S parameters. ""The pilots say the plane is great. It boasts unique flight and technical parameters. It was baptized by fire in Syria to have displayed excellent capabilities,"" Borisov said. The Sukhoi-35S is Russia's highly maneuverable multirole fighter of generation 4++, developed by the Sukhoi design bureau. The plant in Komsomolsk-on-Amur was commissioned to build 50 Sukhoi-35S jets for the Defense Ministry by 2020. Ten planes are to be delivered every year. Since 2009 the plant has provided 48 planes for the Russian Armed Forces. ", -2050,2017/3/9,http://tass.com/world/934554,Berlin's top diplomat says Germany fears new arms race in Europe,"""We have a concern that a new spiral of the arms race may emerge in Europe,"" the top diplomat said","MOSCOW, March 9. /TASS/. German Foreign Minister Sigmar Gabriel has said ahead of talks with his Russian counterpart Sergey Lavrov that Germany fears a new arms race in Europe. ""We have a concern that a new spiral of the arms race may emerge in Europe,"" he said. ""It is too early to say now how and in what direction we could advance to prevent this."" ""Germany has shown that it is a reliable partner,"" Gabriel added. ""We say and do what we say. This concerns both complex solutions and the decisions, on which we have similar stances again."" ""Germany keeps its promises, and this is necessary for the entire Europe,"" Gabriel noted. ""The German-Russian relations are very important for us."" -Sergey Lavrov said-Moscow attaches great importance to dialogue on international affairs with Berlin, particularly on Ukraine and Syria. ""We recently met in Bonn and Munich. Today we have a good opportunity to continue dialogue in a more specific way, an opportunity to see how we can help promote trade and investment,"" he said. ""We attach great importance to cooperation with Germany in international affairs, be it Ukraine, Syria or some other issues discussed at the UN, the G20,"" Lavrov noted. ""In light of this, today's visit and talks are very important."" The German foreign minister noted he expected to discuss ""multiple conflicts."" ""We have a problem of the surge in violence in eastern Ukraine and also how to make progress on Syria within the framework of the Geneva talks,"" he said. ", -2051,2017/3/9,http://tass.com/politics/934548,First deputy FM to discuss preparations for Johnson's visit to Russia,,"MOSCOW, March 9. /TASS/. Russian First Deputy Foreign Minister Vladimir Titov is travelling to London on Thursday where he will discuss on March 10 issues on the bilateral agenda and preparations for UK Foreign Secretary Boris Johnson's visit to Russia. ""I am leaving for the UK for a visit today,"" the high-ranking diplomat told TASS on Thursday. ""I am planning to hold a number of meetings with my counterpart on Friday, discuss a wide range of issues, including preparations for the UK foreign secretary's visit to Russia."" ", -2052,2017/3/9,http://tass.com/world/934550,Kyrgyz secret services nab IS recruiter,"According to Kyrgyzstan's law enforcement agencies, about 500 Kyrgyz nationals have left the country for Syria and Iraq to join terrorist groups","BISHKEK, March 9. /TASS/. Officers of the Kyrgyz State Committee for National Defense have detained a Kyrgyz national who was recruiting and smuggling militants to Syria and Iraq, the committee's press center said on Thursday. According to the agency, the extremist was detained ""in anti-terror operations aimed at neutralizing the activity of underground terrorist cells and networks of collaborators"" in the country. ""An active functionary of the international terrorist organization, Jama'at al-Tawhid wal-Jihad, born in 1997 was detained in the Kara-Suu district of the Osh region in Kyrgyzstan's south,"" the report said. The individual has not been identified for legal reasons. ""It has been established that in the Osh region this individual organized a steady flow of recruiting and smuggling Kyrgyz citizens to the Syrian-Iraqi armed conflict zone for a terrorist training and participation in warfare on the side of terrorist units,"" the document said. A criminal case has been opened on two counts - ""hiring manpower"" and ""organized activity aimed at inciting national, racial, religious or inter-faith enmity"". The suspected recruiter has been taken into custody. According to Kyrgyzstan's law enforcement agencies, about 500 Kyrgyz nationals have left the country for Syria and Iraq to join terrorist groups.", -2053,2017/3/9,http://tass.com/economy/934546,Investigators file official requests for info on foreign accounts of Bashneft's ex-CEO,Former head of Bashneft oil company Ural Rakhimov is accused of embezzlement and legalization of shares of fuel and energy enterprises in the Russian republic of Bashkortostan,"UFA, March 9. /TASS/. Investigators have requested from foreign banks information on accounts and deposits of former head of Bashneft oil company Ural Rakhimov, accused of embezzlement and legalization of shares of fuel and energy enterprises in the Russian republic of Bashkortostan, his lawyer told TASS on Thursday. That is why, the term of investigation is extended quarterly, Sergey Makarenko said. The current investigation term expires on April 28, 2017. ""The time limit is extended month after month on the grounds that no answers to investigators""?requests have come from foreign banks,"" Sergey Makarenko said. According to Makarenko, the process is indefinite and that is why ""it is unclear how long this will continue"". Rakhimov himself is in Austria. Earlier, a Vienna court denied his extradition to Russia. The Russian court acknowledged that a series of privatization deals, under which the fuel and energy enterprises in the Republic of Bashkortostan were assigned to the ownership of Ural Rakhimov, a son of Bashkortostan ex-head Murtaza Rakhimov, were conducted with violations. According to the investigation, Rakhimov used the position of his father and organized theft of controlling stakes in a number of public companies worth more than 130 bln rubles ($2.2 bln). Then Rakhimov provided financial transactions with the stolen property, namely selling a stake in JSFC Sistema and other legal entities, totaling more than $2.5 bln, investigators say. At the same time, according to lawyers, Rakhimov was not the owner of republic's fuel-and-energy sector enterprises, but only had controlling interest. In April 2014, Ural Rakhimov was charged with major misappropriation or embezzlement and money laundering. The charges were brought against him in absentia. In November 2014, Rakhimov gave evidence in the case, staying abroad.", -2054,2017/3/9,http://tass.com/world/934536,Scientists say volcano that began erupting in Kamchatka dangerous for aircraft,Bezymianny volcano began erupting on Thursday after a four-year hiatus,"PETROPAVLOVSK-KAMCHATSKY, March 9. /TASS/. Scientists have raised aviation danger level the from orange to red because of Bezymianny volcano on the Kamchatka Peninsula in the Russian Far East, which began erupting on Thursday after a four-year hiatus. That means that the volcano's activity is dangerous for aircraft, the Kamchatka Volcanic Eruption Response Team (KVERT) reported. ""According to KVERT video data, the volcano's activity is gradually increasing. Powerful ash explosions can occur in the near future. Its current activity could affect international and low flying aircraft,"" the statement said. According to KVERT, the ash plume is rising as high as 8 kilometers (earlier reports said 7 kilometers - TASS) and is drifting about 60 kilometers northwest of the volcano. Bezymianny is one of the most active volcanoes in the world. It is located in the central part of the Klyuchevskoy volcano group 350 kilometers northeast of Petropavlovsky-Kamchatsky. In 1955, the volcano ""woke up"" after almost a thousand years of silence. Its catastrophic eruption occurred on March 30, 1956. Within a short period of time, it threw into the atmosphere about three cubic kilometers of volcanic products, while the height of the eruption column was about 35 kilometers above the sea level. Scientists observed 44 powerful explosive eruptions of this volcano from 1965 to 2012. The KVERT group has been monitoring its activity daily since 1993. Bezymianny last erupted on September 1, 2012. Scientists believe it was silent over the past four years because of the eruption at Tolbachik volcano (from November 2012 to August 2013) and two eruptions of Klyuchevskoy volcano (from August 2012 and November 2016).", -2055,2017/3/9,http://tass.com/press-releases/934553,Infortrend EonStor GS 3000T/4000T Turbo Models Feature Break-through Performance Boost,,"TAIPEI, Taiwan, March 9, 2017 /PRNewswire/.-Infortrend Technology, Inc. (TWSE: 2495) today unveils the new EonStor GS 3000T/4000T Turbo models. Inheriting all the comprehensive features of the EonStor GS 3000/4000 series, the 3000T/4000T turbo models are powered by 6-core CPU and dynamic CPU core assignment firmware to bring break-through improvement to overall performance and management efficiency. The EonStor GS 3000T/4000T delivers up to 50% better block-level performance than the EonStor GS 3000/4000 as the computing resources can be distributed among multiple applications with highly random IOPS, such as virtual desktop infrastructure (VDI) and online transaction processing (OLTP). File-level throughput is up by 30%, ideally supporting data-intensive applications such as file sharing and video-on-demand. Furthermore, the EonStor GS 3000T/4000T can dynamically adapt to the workload and automatically increase processor frequency when high performance is needed while reducing power consumption during light workload.- Supporting high speed host interface connections with 56Gb/s InfiniBand, 40Gb/s iSCSI and 4 x 16Gb/s Fibre Channel ports, the EonStor GS 3000T/4000T meets the bandwidth and throughput requirements by resource intensive and mission critical applications, such as high performance computing, big data analytics, and cloud services. The EonStor GS 3000T/4000T's integrated block-level and SMB 3.0 transparent failover support non-disruptive operations. Also, the redundant dual controllers with symmetric active-active configuration ensure business continuity at all times. ""Infortrend is pushing the limits again by launching the new EonStor GS 3000T and 4000T Turbo models, powerful additions to our complete product lines. The additional CPU power not only boosts I/O performance but it also means our controllers have higher capabilities to handle tasks so overall system efficiency builds up as well,"" said Thomas Kao, Senior Director of Product Planning at Infortrend. For more details about the EonStor GS 3000/4000 T models, please click-here. About Infortrend Infortrend (TWSE: 2495) has been developing and manufacturing storage solutions since 1993. With a strong emphasis on in-house design, testing, and manufacturing, Infortrend storage delivers performance and scalability with the latest standards, user friendly data services, personal after-sales support, and unrivaled value. For more Information, please visit-www.infortrend.com. Infortrend and EonStor are trademarks or registered trademarks of Infortrend Technology, Inc., other trademarks property of their respective owners. Infortrend Technology, Inc.- Уилсон Сун (Wilson Sung)- Тел.: +886-2-2226-0126 8300- Email:-wilson.sung@infortrend.com-- или-sales.ap@infortrend.com-- Юрий Шогенов (Yuriy.Shogenov)- Тел.: +886-2-2226-0126 8309- Email:-yuriy.shogenov@infortrend.com-- или-sales.ap@infortrend.com", -2056,2017/3/9,http://tass.com/press-releases/934547,H&M group will encourage suppliers to pay workers digitally,H&M group becomes the first global fashion brand to join the United Nations' Better Than Cash Alliance,"NEW YORK, March 8, 2017 /PRNewswire/.-The Swedish fashion company H&M group announced today that it will encourage its suppliers to pay their workers through mobile money or other digital forms to improve the livelihoods of its workforce, enhance transparency and cut factory costs. This effort comes as the company officially joins the-Better Than Cash Alliance, a United Nations-based partnership of governments, companies and international organizations accelerating the transition from cash to digital payments. ""Digital payments are an efficient and scalable way to improve the lives of the employees of our suppliers. They offer a faster, safer and more transparent way to receive their salary, increase financial inclusion and support women's economic independence,"" said-Gustav Loven, Social Sustainability Manager at H&M group. ""Also, for our suppliers, paying wages digitally can generate savings, increase security and provide more accurate data on wages."" Sixty-five percent of the 1.6 million people employed along H&M group's supply chain are women, many of them with limited access to the financial services they need to create a better life for themselves and their families. Many factory workers worldwide are paid entirely in cash, which entails cumbersome, expensive and dangerous processes for both factories and workers. Encouraging suppliers to pay wages through digital channels, such as bank accounts, cards or mobile money, will build on H&M group's sustainability commitment to work with its business partners to promote good working conditions, fair living wages and sustainable economic growth. As the majority of the benefits will be realized by female workers, this move is a prime example of a corporation working to achieve the Sustainable Development Goals on Gender Equality (SDG 5) and Decent Work and Economic Growth (SDG 8). ""H&M group is taking a bold step in recognizing how cash-heavy supply chains limit efforts to empower workers and prevent companies from increasing transparency. And, it's inefficient,"" said-Dr. Ruth Goodwin-Groen, Managing Director of the Better Than Cash Alliance. ""H&M group's leadership will help inspire other companies in the industry, and beyond, to make the shift to digital payments and contribute to inclusive growth, as well as to the Sustainable Development Goals, in emerging markets."" In addition, H&M group is one of the leading users of organic cotton and Better Cotton in the world, and it adheres to socially and environmentally sustainable standards and actions. Expanding digital payments to the world's cotton supply chain could potentially reach 250 million people, including smallholder farmers who currently have limited access to digital payment systems and financial services in general. Digitizing payments, when designed responsibly and responsively to consumer needs, can enable H&M group to grow its supplier base and help create a sustainable, productive agricultural sector, the promotion of which is a cornerstone of the Sustainable Development Agenda. The Better Than Cash Alliance has published-new research-examining a selection of garment manufacturing factories in Bangladesh that have transitioned workers' wage payments from cash to digital in the past five years. From a factory perspective, the analysis shows that transitioning to digital payments can save factories approximately 750 hours of production a month, due to workers spending less time away from the production line and reduce costs by more than 85 percent within two years of paying workers via a hybrid mobile money/bank account model. At the same time, moving toward a digital economy supports financial inclusion by drawing previously unbanked workers into the formal financial system and building financial skills. H&M group joins 55 other Better Than Cash Alliance members, and will have access to the knowledge and technical expertise offered by the Alliance and its members to accelerate the shift to digital payments, helping to advance economic growth and expand financial inclusion. The Better Than Cash Alliance is a global partnership of governments, companies, and international organizations that accelerate the transition from cash to digital payments in order to reduce poverty and drive inclusive growth. The United Nations Capital Development Fund serves as the secretariat. To learn more, visit-www.betterthancash.org,-follow-@BetterThan_Cash-and-subscribe for news. Logo --http://photos.prnewswire.com/prnh/20120919/CG77018LOGO CONTACT:- H&M: I?igo S��enz Maestre, Press Officer at Media Relations: mediarelations@hm.com (+46) 8 796 53 00; The Better Than Cash Alliance: Angela Corbalan, Head of Communications: angela.corbalan@uncdf.org / (+1) 917 224 9109", -2057,2017/3/9,http://www.dw.com/en/german-foreign-minister-gabriel-in-moscow-to-meet-putin-lavrov/a-37863822?maca=en-rss-en-all-1573-rdf,"German Foreign Minister Gabriel in Moscow to meet Putin, Lavrov","Gabriel has met with civil society leaders in Moscow in the lead-up to his meetings with the Russian Foreign Minister and President. Tense topics for discussion include Ukraine, Syria and NATO.","German Foreign Minister Sigmar Gabriel arrived at the Kremlin in Moscow on Thursday morning to kick-off a day of discussions with his Russian counterpart Sergei Lavrov and a planned reception with Russian president Vladmir Putin. The German Foreign Minister's visit, which comes on the heels of a visit to Poland, centers on sensitive topics in the German-Russian relationship including Ukraine, Syria and NATO. Although Gabriel has been Germany's foreign minister for just six weeks, the politician from the Social Democratic Party (SPD)-is meeting with old acquaintances. As a-former Minister of the Economy, Gabriel received Putin three times when he held that post. Lavrov greets his German counterpart in Moscow Tricky topics on the table Gabriel inherited a delicate relationship from his predecessor Frank-Walter Steinmeier, made more uncertain by the Trump administration's overtures to Russia and the Baltic and EU-member nations' fears of an increasingly resurgent Kremlin. The foreign minister told Interfax reporters that a ""relapse into Cold War times"" must be avoided ""at all costs."" In this charged atmosphere, Gabriel is seeking to make progress on certain key issues. He-will continue a push for progress he began at the Munich Security Conference aimed at subduing the violent fighting that has flared up in East Ukraine in recent weeks as a ceasefire between pro-Russian separatists and Ukrainian troops dissolved. Chancellor Angela Merkel's policy is to tie the removal of sanctions imposed against Moscow to a Russian adherence to the Minsk agreement. The ceasefire in Eastern Ukraine has broken down Gabriel and Lavrov will also discuss the six-year-long conflict in Syria andthe upcoming peace talks in Geneva and possibilities for stabilizing Libya, a key departure point for migrants seeking EU entry. NATO-Russia Council Despite the Baltic and Eastern European EU member states' fears of increased Russian aggression - which led NATO to station some 4,000 troops in the region - Gabriel is likely to appeal for regular meetings of the NATO-Russia Council (NRC) in an effort to de-escalate tension. Gabriel recently questioned the military alliance's two percent defense spending commitment.- Before his reception by the Kremlin, the German politician met Thursday morning with leaders of Russian civil organizations at the German Ambassador's residence in Moscow. The assembled group included writers, editors and the leader of Greenpeace Russia. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yrul cmb/jm (dpa, AFP)", -2058,2017/3/9,http://www.dw.com/en/merkel-only-if-europe-is-doing-well-will-germany-be-doing-well/a-37863173?maca=en-rss-en-all-1573-rdf,"Merkel: 'Only if Europe is doing well, will Germany be doing well'","Ahead of meeting her fellow European leaders at a summit in Brussels, German Chancellor Angela Merkel has reiterated her government's call for unity in the EU. Brexit should be a wake up call for the bloc, Merkel said.","Addressing parliament on Thursday morning, Chancellor Angela Merkel said the-Brussels ""spring summit would usually focus on the economy,""-but in in light-of Brexit, and the refugee crisis other topics would be on the agenda. Faced with the reluctance of some Eastern European members to cede national freedoms to Brussels so soon after shaking off Soviet rule, Merkel said the Union can ""progress-without excluding the EU members."" The EU is a great ""succeess story,"" Merkel said, adding that the UK's impending exit from the 28-member bloc should be a ""wake up call"" for the Union. Highlighting the economic growth in the EU, Merkel took a moment to remind Germany that the country will prosper, ""only if Europe is doing well."" EU defense against protectionism Turing to transatlantic matters, Merkel praised-the EU's CETA trade agreement with Canada, as she warned Europe against ""isolating-itself."" In an indirect attack on the protectionist course of US President Donald Trump, Merkel added that the EU-would defend itseld against ""unfair"" protectionism. With regard to the refugee crisis, the chancellor admitted that-""there is no doubt that we have made progress, but the EU's asylum system needs to be reformed."" However, there is still work to be done, Merkel added. Reflecting on the situation of refugees in Greece, she said there is ""nothing to gloss over."" 'Nazi comparisons must stop' In late 2014, with the war in Syria approaching its fourth year and Islamic State making gains in the north of the country, the exodus of Syrians intensified. At the same time, others were fleeing violence and poverty in countries such as Iraq, Afghanistan, Eritrea, Somalia, Niger and Kosovo. Vast numbers of Syrian refugees had been gathering in border-town camps in neighboring Turkey, Lebanon and Jordan since 2011. By 2015, with the camps full to bursting and residents often unable to find work or educate their children, more and more people decided to seek asylum further afield. In 2015 an estimated 1.5 million people made their way on foot from Greece towards western Europe via the ""Balkan route"". The Schengen Agreement, which allows passport-free travel within much of the EU, was called into question as refugees headed towards the wealthier European nations. Tens of thousands of refugees were also attempting the perilous journey across the Mediterranean on overcrowded boats. In April 2015, 800 people of various nationalities drowned when a boat traveling from Libya capsized off the Italian coast. This was to be just one of many similar tragedies - by the end of the year, nearly 4,000 refugees were reported to have died attempting the crossing. Countries along the EU's external border struggled to cope with the sheer number of arrivals. Fences were erected in Hungary, Slovenia, Macedonia and Austria. Asylum laws were tightened and several Schengen area countries introduced temporary border controls. Critics of German Chancellor Angela Merkel's ""open-door"" refugee policy claimed it had made the situation worse by encouraging more people to embark on the dangerous journey to Europe. By September 2016, Germany had also introduced temporary checks on its border with Austria. In early 2016, the EU and Turkey signed an agreement under which refugees arriving in Greece could be sent back to Turkey. The deal has been criticised by human rights groups and came under new strain following a vote by the European Parliament in November to freeze talks on Turkey's potential accession to the EU. With anti-immigration sentiment in Europe growing, governments are still struggling to reach a consensus on how to handle the continuing refugee crisis. Attempts to introduce quotas for the distribution of refugees among EU member states have largely failed. Conflicts in the Middle East and elsewhere show no signs coming to an end, and the death toll from refugee sea crossings is on the rise. Author: Rachel Stewart Despite an ongoing diplomatic dispute with Ankara over the cancellation of referendum rallies in Germany, Merkel also defended the refugee agreement with Turkey.- ""Without such agreements, we would have to accept illegal migration, which would not help anyone,"" she said, adding that the relationship between the two countries is ""difficult but important."" However, referring to accusations by Turkish President Recep Tayyip Erdogan on Sunday that Berlin was using ""Nazi tactics,"" Merkel said the comments were so misplaced-that it was impossible to comment on them. ""It cannot be justified. Nazi comparisons only lead to misery. This needs to stop,"" she said. Erdogan made the comment after several German-municipalities canceled events in which Turkish Cabinet ministers had-planned to address rallies in Germany in support of a controversial referendum on April 16. A ""yes"" vote on constitutional reform would expand the powers of the Turkish-president. About 1.4 million people of Turkish descent-living in Germany are eligible to vote in the referendum. #FreeDeniz Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Ymqj In light of the arrest of German-Turkish journalist Deniz Yucel-last month,-Merkel went-on to criticize the restriction of press freedom in Turkey, vowing that the-German government would work to ensure that Yucel is released. But it was not in the interest of Germany to break off contact with Turkey, the chancellor said, adding that ""we want to live with our basic values as we think fit."" Amid concerns over tensions between right-wing Turks in Germany and-supporters-of the Kurdistan Workers Party (PKK), however, Merkel said:-""We want to do everything we can to ensure that non-Turkic conflicts are brought into this co-existence. This is a matter close to our heart."" Turks are ""part of our country, and they contribute to the prosperity of our country,"" she said.", -2059,2017/3/9,http://www.dw.com/en/a-new-way-to-track-cultural-assets-looted-by-nazis/a-37857007?maca=en-rss-en-all-1573-rdf,A new way to track cultural assets looted by Nazis,"Following up on over 31,000 tips, researchers at six German libraries have been cooperating on a project aimed at locating the owners of books that were looted during the Nazi era.","Sebastian Finsterwalder is a researcher who seeks to uncover the provenance of books that were looted by the Nazis during the 1930s and 40s. A member of a small but engaged team at Berlin's Central Library, Finsterwalder and his colleagues have-already been able to locate the original owners of several books and return them. The results have been documented systematically in the central database ""Looted Cultural Assets"" for the last year. The database can be viewed online-and has already received positive feedback, Finsterwalder told DW in a recent interview. DW: In Germany, the Gurlitt case has created intense public discussion about the provenance research being done to uncover the origins of artworks that were looted by the Nazis. But what exactly does provenance research encompass? Sebastian Finsterwalder: Books are just one of many fields of research. There is also provenance research that has been done for musical instruments, furniture, household goods and cars. It's a broad field. Every object leaves traces. Images, especially,-leave a trail due to their uniqueness as artistic works. Books, on the other hand, are mass produced. Individual books don't tell me anything unless there's a stamp, an autograph, a number, ""Ex Libris"" or something else inside. That means that we have to uncover traces to determine who was in possession of the book. A year ago, you and several colleagues presented a novel in cooperation with public libraries called ""Looted Cultural Assets."" What was your goal in doing so? We did it with the objective of exchanging information amongst ourselves. Officially, we are a loose alliance of provenance researchers at six libraries, and in that respect, we are not a club or organization. Every library in Germany as well as in Austria that has an old stock of books has works in their possession that were looted by the Nazis - and not just a few. How do you go about tracking the original owners? Is there a risk that the handling of books, like the addition of new bindings from the library, would eliminate traces? Yes, that happened for several decades and-still occurs in many libraries today. In the Central Library of Berlin, we have trained our book binders to avoid this. Still, we continuously find books that have a page torn out or a stamp that has been stickered over. Or, sometimes, things have simply been eradicated. For a long time, this was a targeted tactic with the aim of repression. We no longer withdraw any books that were printed before 1945 because the process of determining who the original owner was takes quite a bit of time. How does one determine that a book was previously part of a Jewish person's private library and was stolen after 1933? Books are a mass produced product and therefore only become one-of-a-kind when an owner or person who comes into the book's possession leaves a trace, or when a library uses a distinct number or signature. We are looking therefore, not necessarily for a particular book that was stolen after 1933, but for individual books to see if they contain any particularities that provide clues. How systematic are you in doing so? The Nazis banned a number of cultural institutions as well as unions, Jewish cultural organizations and community libraries and looted their collections. Are you specifically looking for their collections? We take up everything. The normal process is grabbing a camera and snapping pictures throughout the bookshelves as fast as we can. We have to look through several hundred thousand-books. Of course-we find books from all the groups that were persecuted in-party-affiliated and union libraries. We also have many books from Masonic lodges, cloisters and Jewish centers. In the past, the owners of a private library often had ""Ex Libris"" stamps in their books. How much do these-assist in researching the former owner? It's always nice to find something that clear. These ""Ex Libris"" are unbelievably useful for identifying books, especially when they have a personalized ""Ex Libris,"" which contains information about the individual, whose name we can look into further. Doctors often use a stamp with a piece of medical equipment, chemists use a lab flask, musicians inscribe a note on the upper left. In the library here, we have a collection of ""Ex Libris,"" which comprises over 800 individual samples. They have been separated from the books during repair work. Unfortunately, it wasn't noted which of these came out of which books. Even these ""Ex Libris"" were returned to their original owners as a sort of restitution. But then it's just this small slip of paper without the book. How far do you have to go when wishing to return these historical editions to their rightful heirs? Is there a legal report such as one made by a forensics expert doing an autopsy? That will happen in any case where we restitute the book. I write a note in the file for the Board of Trustees here in house who then are made aware that this item should be restituted back on Person x or y for the following reasons. I look at how the book got into our hands, what could we uncover about the previous owner and what happened. Is it clear that this happened as a result of a Nazi-related dispossession? Everything goes on record. We write-an explanation of the return to the heirs, the legal representative or the family members who will be receiving the returned book. Mainly this is done for practical reasons because we can make room for books we might eventually find in the future, since we are continuously adding new books to the database and reviewing our collection. We are constantly finding books that have the same provenance, the same owner. How do you uncover who the previous owner was? Do you also turn to ""Lost Art"" so that people in other countries can look at your work? It's a different case each time. We might find them or they might find us. The idea behind the database is that the names are indexed on our website. It's been the case that people write to us and say they've found the website and their great-grandfather's name is on it: what does that mean? That's how numerous returns were made and to be honest, that's exactly what the goal was with this database. Editor's Note: Looted cultural assets is the term used to describe cultural works and valuables which were taken from their rightful owners both in Germany and abroad during the Nazi era, from 1933 to 1945. More information can be found at http://lootedculturalassets.de -", -2060,2017/3/9,http://www.dw.com/en/un-envoy-staffan-de-mistura-announces-fifth-round-of-syria-talks/a-37863079?maca=en-rss-en-all-1573-rdf,UN envoy Staffan de Mistura announces fifth round of Syria talks,"Syrian UN Envoy de Mistura has announced the Geneva meeting between the long-battling government and rebel groups. Despite six years of entrenched conflict, one NGO provides hope for deaf Syrians.","""My current intention is to bring the invitees back to Geneva for a fifth round, with a target date of the March 23,"" Staffan de Mistura told journalists-after briefing the UN Security Council in New York on the outcome-of the previous round of talks. He added that the newly scheduled-talks to take place in the Swiss city would focus on four key issues: governance, constitutional construction, elections and counter-terrorism measures, ""including the security organization and confidence-building measures."" His announcement came as the conflict between supporters of Syria's President Bashar al-Assad and various countering parties including the Kurdish Syrian Democratic Forces (SDF) to the so-called ""Islamic State"" (IS) group, who also fight one another, reaches its sixth year. Mistura added the newly-announced talks would build off the fourth round, which ended on March 3, and that the participants would remain the same, including both government and rebel delegations. IS and other militant groups, such as the Fatah al-Sham Front, have not been invited to attend. Further talks in Astana The Geneva talks form one of multiple efforts to resolve the violent conflict that has displaced hundreds of thousands of Syrians and decimated the Middle Eastern nation. Key players Russia, Iran and Turkey will likely meet in Astana ahead of the UN-backed talks, repeating a previous encounter in the Kazakh capital. Their discussion will center safeguarding the mutually-agreed upon but fragile ceasefire that is set to last until March 20. US send conventional forces The United States voiced its support for fresh Geneva talks aimed at achieving a lasting peace in Syria but also criticized Iran for its role in the conflict. ""This is very much about a political solution now at this point and that basically means Syria can no longer be a safe haven for terrorists,"" US Ambassador to the UN Nikki Haley told reporters, before adding ""we've got to make sure that we get Iran and their proxies out."" On Wednesday, a US official also revealed to AFP that the US has deployed a Marine Corps artillery battery to the embattled city of Raqqa to aid the SDF in their offensive against IS. The sending of troops from the 11th Marine Expeditionary Unit marks a significant step in US military engagement in Syria. Previous ground troops were special operations forces limited to the training and assisting the SDF. Deaf Syrians express war trauma Alongside the step-up in US involvement and the future talks, NGOs continue their work providing badly needed assistance to war-weary Syrians - and often hope, as well. In Damascus, two young deaf Syrians are inventing a sign language to enable other Syrians like themselves to be able to talk about their experiences over the past six years. Deaf Syrians are often unable to communicate their trauma The group has created signs for ""IS"" as well as for its Arabic acronym ""Daesh,"" and ways to express war experiences such as kidnappings. ""We had to invent words that didn't exist in the vocabulary of the deaf in Syria so they can exchange information and express their feelings about the violence,"" deputy head of the organization Wisal al-Ahdab said. Once they have been finalized, the group films and posts the footage on Facebook so the rest of Syria's approximately 20,000 deaf people can access it and begin to communicate their own traumatic - and oftentimes hereto unexpressed - experiences. cmb/jm (AFP, AP)", -2061,2017/3/9,http://www.dw.com/en/what-makes-king-kong-a-cult-monster/a-37851944?maca=en-rss-en-all-1573-rdf,What makes King Kong a cult monster?,"A new movie adaptation of King Kong kicks off in cinemas worldwide this week with ""Kong: Skull Island."" We look back at how this destructive monster with a soft spot became such a big box-office hit.","In Nazi Germany, horror films were banned. The first King Kong film, whose German title translates as ""King Kong and the White Woman,"" just managed to make it into cinemas in 1933. It was advertised as ""an American trick and sensation film."" After that, King Kong and his Hollywood friends were banished - even though it was generally accepted that Adolf Hitler was a fan. So, Germans had to go elsewhere for their horror fix. Getting creeped out in comfort The first King Kong film was a global success. It shocked and amazed audiences with its special effects. People had never seen anything like it. The giant ape left a trail of destruction (something his cinematic successors, such as Godzilla, were pretty good at, too).-The special effects teams in Hollywood, and later in Japan, had a great time. Viewers could get the creeps from the comfort of their cinema seats. Even actress Fay Wray (right) was fascinated by King Kong's sensitivity But there was another side to King Kong - a sensual, loving side. Even back in 1933, he showed remarkable fervor and sensibility towards the ""white woman."" She came to no harm in his enormous paws. Well, apart from the obvious distress of being kidnapped by a giant hairy monster. A monster with a heart In fact, that was always King Kong's biggest strength: as well as his penchant for destruction, his softer side could also be seen on screen. This is still the case in his newest film, ""Kong: Skull Island."" A team of researchers exploring the island of monsters works out that it might not be the giant ape that poses the biggest threat to mankind. On Skull Island, there are more aggressive creatures to be found than giant apes Actress Fay Wray played the original shrieking victim, struggling in her captor's giant grip. In the final, iconic scene of the 1933 film, King Kong scales the Empire State Building in New York, with Wray still in his hand. He is shot and falls to his death - but not before setting Wray down safely. 'That scene puts a lump in my throat' Wray, who died in 2004 at the age of 96, opened her autobiography with a letter to King Kong. ""The other scene I find unforgettable,"" she wrote, ""is you in your last moments just before falling from the top of the Empire State Building. You had put me down very carefully as though wanting me to be safe."" ""You felt your chest where you had been shot, knowing you were doomed. That scene puts a lump in my throat.""", -2062,2017/3/9,http://www.dw.com/en/berlin-airports-to-be-hit-by-strikes-on-friday/a-37863449?maca=en-rss-en-all-1573-rdf,Berlin airports to be hit by strikes on Friday,Flights in and out of Berlin's airports Tegel and Sch?nefeld are likely to face delays and flight cancellations as ground staff go on strike in a dispute over pay.,"Trade union Verdi announced walkouts at Tegel and Sch?nefeld airports from 4 a.m on Friday-to 5-p.m. on Saturday local time. Verdi is pushing for an hourly pay increase and better working hours for its members, arguing that their workload is increasing with the growing number of passengers and a greater focus on security. The union also wants more opportunities for professional advancement for ground staff. is/ch (dpa)", -2063,2017/3/9,http://www.dw.com/en/uber-to-ban-greyball-software-that-tricks-regulators/a-37863250?maca=en-rss-en-all-1573-rdf,Uber to ban 'Greyball' software that tricks regulators,"The online ride-hailing service has promised to stop using a tool that tricks regulators trying to catch illegal drivers. The New York Times revealed Uber's ""Greyball"" software deceived authorities in several countries.","The ride-sharing company Uber says it will investigate an engineer's claims of sexual harassment and sexism at the firm. CEO Travis Kalanick said that anyone guilty of the described behavior would be dismissed. (20.02.2017) A former top manager at Google's self-driving car division allegedly downloaded 14,000 confidential files onto a laptop. A lawsuit claims he then reformatted the laptop to cover his tracks. (24.02.2017) Technologies Inc. has removed its self-driving cars from San Francisco streets, just one week after their launch, in response to a regulatory crackdown. (22.12.2016) German premium carmaker Daimler has announced a partnership with Uber to supply self-driving cars for the US ride-hailing company as the pair seeks to become leading players in the world of autonomous driving. (31.01.2017) Uber said it had begun a review of the ways its ""Greyball"" software was-being used, just days after being forced to admit the existence of the tool-used to stop unlicensed drivers being caught by undercover regulators. ""We are expressly prohibiting its use to target action by local regulators going forward,"" Uber chief security officer Joe Sullivan said in an online post. But he said it would take some time to fully implement the change. The ""New York Times"" (NYT) exposed the software nicknamed ""Greyball"" that identified regulators posing as riders while trying to collect evidence that Uber's service was breaking local laws governing taxis. Regulators duped The software served up a fake version of Uber's popular app to make it appear the undercover regulators were summoning a car, only to have the ride never show up or canceled. NYT reported that regulators in several US cities as well as those in Australia, France, China, Italy and South Korea were targeted. The cat-and-mouse game with regulators is the latest example of the aggressive tactics that Uber has adopted while challenging the-heavily regulated taxi industry in dozens of countries. Uber said the tool was only used to deter passengers who were harassing or threatening its drivers. Uber's expansion has led to protests from traditional taxi services who are often heavily regulated ""It's been used for many purposes, for example: the testing of new features by employees; marketing promotions; fraud prevention; to protect our partners from physical harm; and to deter riders using the app in violation of our terms of service,"" Sullivan said in the post. Awkward questions to answer The San Francisco-headquartered company said it would also respond to city officials who have been inquiring whether their regulators were being greyballed. Earlier this week, Uber began searching for a chief operating officer to help embattled chief executive Travis Kalanick steady the wheel at the fast-growing on-demand ride service. The tech firm faces challenges keeping growth on track at a company valued at more than $60 billion (56.9 billion euros), amid embarrassing revelations about a corporate culture of sexism and its treatment of drivers. Separately, Google's parent company Alphabet filed a lawsuit against Uber alleging the ridesharing firm used stolen technology for its autonomous driving program. Uber also announced-it was bringing back self-driving cars in the US state of California after receiving a permit from regulators. In December it was forced to halt a pilot program after a number of self-driving Uber vehicles did not stop for red lights. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Y0Wo mm/hg (AFP, AP)", -2064,2017/3/9,http://www.dw.com/en/eu-leaders-meet-in-brussels-amid-tusk-re-election-row/a-37862950?maca=en-rss-en-all-1573-rdf,EU leaders meet in Brussels amid Tusk re-election row,"Despite protestations from his Polish compatriots, Donald Tusk is likely to be re-elected as president of the European Council. The spring summit is also likely to mark the UK's last appearance before Brexit talks begin.","The extension of Donald Tusk's term in office as president of the European Council should usually last a matter of minutes. However, much to the bemusement her 27 fellow EU member states, Polish Prime Minister Beata Szydlo will-go head to head with her European peers in Brussels on Thursday in a dispute over Tusk's reappointmentas chairman. Poland's right-wing leader claimed in a letter that Tusk - who belonged to the Polish opposition party ""Civic Platform"" (PO) and was a government official in Poland --had illegitimately intervened in Polish domestic politics. ""We can not allow a dangerous precedent,"" said in a letter to her 27 fellow EU leaders-Szydlo's letter to her 27 peers. The national conservative politician is yet to provide evidence for her reproach. Tusk who is hoping for a second term in Brusselswas appointed head of the EU Council-in 2014before his allies were unseated by his nemesis Jaroslaw Kaczynski's Law and Justice party. East-West divide Despite her claims, Szydlo's claims are seemingly a-lost cause as EU-leaders can simply back Tusk in an overwhelming majority vote. The row with Poland, however, is indicative of a divide within the EUat a time when leaders are-calling for unity ahead of Brexit.- While many Eastern European members are reluctant to cede national freedoms to Brussels so soon-after shaking off Soviet command, wealthier-western states want to deepen EU integration in the hope of bringing prosperity and security and so stem the rise of Brexit-inspired-eurosceptics and right-wing populism. UK's last pre-Article 50 appearance- Thursday's spring summit is also likely to be the time that European leaders-gather before British Prime Minister Theresa May formally invokes-Article 50 of the Lisbon treaty, the mechanism for leaving the European Union. Following speculation that May would take a formal letter to Brussels on Thursday, she now looks likely to arrive empty-handed-after-legislative-maneuvering in the House of Lords delayed her timetable. Some nine months since 52 percent of the UK voted in favor of leaving the EU, May plans-to officially declare the UK's-intention to leave the bloc by-the end of March, triggering a maximum two-year period of negotiations. Free trade and security Despite the appearance-of ""protectionist tendencies"" elsewhere - particularly since the election of US-President Donald Trump - EU talks on Thursday afternoon should also see agreement on-pressing ahead with new free trade pacts. Over dinner, leaders are due to pledge continued support --and possible EU and NATO membership - to western Balkan states-where they are worried about a possible decline in US-interest-and a rise what they regard as the anti-EU influence of Russia. ksb/jm Reuters, dpa)", -2065,2017/3/9,http://www.dw.com/en/gas-supply-shortages-in-australia-looming/a-37862996?maca=en-rss-en-all-1573-rdf,Gas supply shortages in Australia looming,"Australian energy regulators say they're worried about possible gas supply shortages as of next year, with electricity blackouts likely to haunt the nation. Politicians have warned the problem is home-made.","The Australian Energy Market Operator (AEMO) said Thursday a projected decline in gas production could result in a shortfall of gas-powered electricity generation impacting New South Wales, Victoria and South Australia. The country's gas producers had forecast annual production to decline by roughly 20 percent between 2017 and 2021. AEMO's projection model showed electricity supply shortfalls of at least 80 gigawatt hours in 2018/19, ""if there was no new development to support more gas-powered electricity generation."" ""If we use gas for electricity, the potential for shortfalls is in the domestic and the industrial supply,"" AEMO Chief Operating Officer Mike Cleary told local broadcaster ABC. ""If we use it in industrial and domestic fields, the shortfalls will be in electricity."" 'Multinationals to blame' Cleary emphasized that strategic national planning of gas development had never been more critical, adding that in the short term energy supply shortages could be mitigated by an increase in coal-fired generation and renewable energy output. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JMXx It was understood that at the same time exporters needed to redirect some of their gas to the domestic market. Prime Minister Malcolm Turnbull called AEMO's findings ""very concerning,"" calling for a raft of changes in the market to fix the issue. He laid the blame squarely on state governments for blocking onshore gas resource exploration and development as regional authorities pursued a shift to more renewable energy output to meet the growing demand. Victoria's Energy Minister Lily D'Ambrosio told reporters that multinational companies were shipping too much Australian gas to global markets, while the country had more than ample gas to meet all its domestic needs. ""Multinationals are making a killing on digging up Australia's gas and selling it on the global market, leaving domestic consumers with higher gas and electricity prices."" hg/mm (Reuters, dpa)", -2066,2017/3/9,http://www.aljazeera.com/indepth/opinion/2017/03/kim-jong-mind-170308124321267.html,,,"In recent months, North Korea has found itself at the centre of international attention. Its policies are once again described as ""irrational"" or ""bizarre"", and its hereditary leader Kim Jong-un is presented as an eccentric and irrational creature, fond of killing his relatives and threatening the world with nuclear weapons. But this description is misleading: Kim knows what he is doing. In January, he said that his country came close to testing a long-range weapon delivery system, also known as an intercontinental ballistic missile (ICBM), which, as it was implied, will be capable of targeting the United States. Soon after, North Korea indeed conducted a series of missile launches. Recently tested missiles are not capable of hitting the US, but they indicate serious and remarkably fast technological advancement - so remarkable that most foreign experts believe that Kim was not bluffing when he talked about North Korea's ability to develop ICBMs in the near future. Shortly after these missile tests, in February, North Korean agents assassinated Kim Jong-nam, Kim Jong-un's elder brother, who lived in self-exile for nearly two decades. He was ambushed and poisoned by the North Korean operatives in Kuala Lumpur airport. Kim Jong-nam never challenged Kim Jong-un openly, and always emphasised that he did not care about politics, but he was the only member of the Kim family who often talked to the foreign media, sometimes with remarkable frankness. Kim Jong-nam's assassination coincided with yet another wave of purges inside North Korea, with another bunch of generals disappearing without any trace. Meanwhile, inside North Korea, Kim Jong-un's administration continues to implement economic reforms, even though, unlike missile tests and overseas assassinations, these reforms seldom attract the attention of the world media. In essence, these reforms are strikingly similar to what China did in the late 1970s. In North Korea, the Soviet-style command economy is gradually dismantled, while market economy and private entrepreneurship is increasingly accepted and encouraged. For example, the state-run and state-owned farms have been largely disbanded in recent years, and family farms gradually became the country's major agricultural production units. The results were predictable: a significant increase in food production. These events demonstrate the three major dimensions of Kim Jong-un's policy: he is strengthening his ability to deter a foreign attack, he is eliminating possible rivals in the country elite, and he is speeding up market-oriented - and rather successful - economic reforms. These three policies serve one overriding goal: to keep Kim in power. The hereditary leader of North Korea wants to stay in power indefinitely, and thus he is trying to deal with the three major threats which he thinks might bring him and his regime down. The first of such threats is largely external. Kim is afraid of a US invasion and - given what happened in Iraq, a fellow member of the so-called ""axis of evil"", as well as in Libya - his fears are by no means paranoid. He believes that the best way to counter a foreign threat is to have a full-scale nuclear force which would be capable of hitting the continental US. He needs ICBMs, perhaps dozens of them, preferably on difficult-to-intercept mobile launchers, ready to be launched at short notice. Such force, Kim and his people hope, will ensure that the US will not attack, and will not intervene in support of some internal revolution, should it erupt inside North Korea - like it happened in Libya. If North Korean people learn how much their country is lagging behind its neighbours, they are likely to blame the Kim family, so Kim Jong-un understands that the only way to keep the population docile and obedient is to start economic growth, and the only way to do so is to introduce China-style reforms. - The second threat is internal. When Kim succeeded his father in December 2011, he was in his mid-20s and completely unknown. He had good reasons to be afraid of the country's ageing generals and dignitaries who saw him as a political lightweight. He could not rule out the possibility that the senior politicians, including some members of his own family, could switch their support to somebody else. The North Korean leader also never forgot that his eldest brother was beyond his reach, living overseas, in Macao and Beijing, under Chinese protection. Kim countered this threat with the purges and executions of all senior officials whose loyalty he does not fully trust - including his uncle and aunt who were initially appointed to act as advisers and quasi-regents. Now that his spies have killed Kim Jong-nam, Kim Jong-un remains the only member of the Kim family with political clout. The assassination in Kuala Lumpur also undermined the Chinese ability to intervene in North Korean politics - and Kim Jong-un is deeply distrustful of China. OPINION: Kim Jong-nam attack reveals true nature of North Korea The third threat is also internal. North Korea is a very poor country: the per capita income gap between South and North Korea is the world's largest for two countries sharing a land border. It is estimated that South Korea's per capita income is at least 15 times bigger than the North's. If North Korean people learn how much their country is lagging behind its neighbours, they are likely to blame the Kim family. Therefore, Kim Jong-un understands that the only way to keep the population docile and obedient is to start economic growth, and the only way to do so is to introduce China-style reforms. All these policies are somewhat risky: the attempts to create a powerful deterrent might provoke a US military strike; excessive purges of the elite might - instead of terrifying them - bring about a conspiracy and a coup attempt; economic reforms might unleash social movements beyond the government's control. However, given Kim's precarious situation, he has few alternatives to what he is doing now - and so far his policies have worked well. Andrei Lankov is a professor of Korean Studies at Kookmin University in Seoul. He is the author of The Real North Korea: Life and Politics in the Failed Stalinist Utopia. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2067,2017/3/9,http://www.aljazeera.com/news/2017/03/muting-mosque-bill-initial-thumbs-israel-170308154003588.html,Muting mosque bill gets initial thumbs up in Israel,Racism accusations as legislation to muffle calls to prayer in Israel and occupied East Jerusalem wins first backing.,"A law to muffle mosques' amplified calls to prayer in Israel and occupied East Jerusalem won preliminary approval on Wednesday in a charged parliamentary session where Palestinian legislators denounced the measure as racist. Supporters of the bill say it is aimed at improving the quality of life for people living near mosques who have been losing sleep with the early morning calls through loudspeakers mounted on minarets. ""This is a social-minded law that aims to protect citizens' sleep, without, God-forbid, harming anyone's religious faith,"" said legislator Motti Yogev, one of the bill's sponsors. Opponents say the legislation, sponsored by right-wing parties, is a targeted move against Israel's Palestinian minority, the majority of which is Muslim.- ""You are committing a racist act,"" Ahmed Tibi, a Palestinian lawmaker, told supporters of the legislation. RELATED: Israel denies redress to thousands of Palestinians The two versions of the legislation were approved after a heated discussion that turned into shouting matches between ruling coalition members and Palestinian MPs, some of whom tore up copies of the bill and were ejected from the Knesset's chamber. The second of the versions approved on Wednesday would ban use of loudspeakers by mosques in residential areas between certain hours. The proposed law will have to be reconciled later in the legislative process, with three more readings required before becoming law. The proposed law refers in general terms to ""houses of worship"", but it has been dubbed the ""muezzin law"" by the Israeli media, referring to the man who chants the Muslim call to prayer. Authorities could impose a 10,000 shekel ($2,700) fine for violations. Tzipi Livni, a leader of the centre-left Zionist Union party and a former foreign minister, said ""proud Israelis"" should join together in opposing legislation that would only ""spread hate and ignite tensions"" between Muslims and Jews. An estimated 1.7 million Palestinians - comprising Christians, Muslims and Druze - carry Israeli citizenship and live in cities, towns and villages across the country. They make up nearly 20 percent of Israel's population.- According to-the Adalah Centre for Arab Minority Rights in Israel, more than 50 laws discriminate against Palestinian citizens of Israel by stifling their political expression and limiting their access to state resources. Israeli politicians have said the country is committed to protecting the religious rights of all faiths and battling discrimination against its Palestinian citizens. But Prime Minister Benjamin Netanyahu sparked outrage during a 2015 election when he urged his supporters to go to the polls because Palestinians were ""voting in droves"". Under the proposed law, occupied East Jerusalem, which Israel captured in the 1967 Middle East war and annexed in a move that is not recognised internationally, would be included in the ban. The bill, which covers only residential areas, would exclude the al-Aqsa mosque, Islam's third holiest site and located in a compound in Jerusalem's walled Old City. Source:-News agencies", -2068,2017/3/9,http://www.aljazeera.com/programmes/peopleandpower/2016/11/piracy-nigeria-161117080711053.html,Piracy in Nigeria,People and Power investigates the rise of piracy in the oil-rich Niger Delta region.,"The event followed a now familiar pattern: a small convoy of dusty 4x4 vehicles drove on to the edge of the airstrip at Galkayo in Puntland, north-central Somalia; armed security guards took up watchful positions nearby and a number of bemused-looking men stepped gingerly from the cars and lined up to have their photographs taken by the media. On this occasion there were 11 of them; all had been hostages until that morning. They were sailors from a Malaysian cargo vessel that had been hijacked by Somali pirates a few years ago and held until a ransom was paid for their release. One of them gave a brief account of what had happened. ""On November 26, 2010 our ship was hijacked in the Indian Ocean. Their demand was 20 million. After that, they threatened the owner. You now increase money or we will shoot the crew. The owner didn't increase the money and then one Indian is shot with just three bullets. Then they hit us and tortured us. Tell your family to bring us money, otherwise we will kill you!"" The crew had been held for three and a half years but they were the fortunate ones. Five of their crew mates had died in that time. Now the survivors were going home and a UN plane with two envoys on board was flying in to see them to safety. Such scenes have become relatively commonplace in Galkayo in recent times. Eighty percent of global trade is carried by sea and Somalia sits on a key maritime route linking Europe and Asia. More than 18,000 ships pass its shores every year. Over the past decade, Somali pirates, often former fishermen whose traditional livelihoods have been destroyed by foreign trawlers and toxic waste dumping, have attacked more than 300 vessels and kidnapped 700 people. Faced with such a threat, the international community responded aggressively. In 2008, European states, the US and others began sending naval forces to these seas. They are still there today - warships, planes and helicopters patrolling thousands of square miles and doing a fair job of keeping the hijackers at bay. The UN and others have also played an increasing role in facilitating negotiations for the release of hostages - such as those set free at places such as Galkayo - for whose liberty large ransoms have been paid. But if the problem is now slowly coming under control in Somalia, the same cannot be said for other parts of the world where piracy is on the increase. Lawlessness, desperation, poverty, greed and even political radicalism have brought the phenomenon to the waters of South America, Asia and, perhaps most aggressively, to West Africa. - In an effort to understand the reasons why, Bertrand Monnet, a French academic and filmmaker, has been travelling to piracy hot spots around the coast of Africa. In an extraordinary and very tense series of encounters, he came to face to face with heavily armed pirate gangs operating in and around the Niger Delta, where Nigeria's huge offshore oil industry, which employs thousands of expatriates, offers rich ransom pickings. It gradually became clear that piracy in West Africa has many of the same root causes as piracy in Somalia and elsewhere, not least of which is that those who don't share in the benefits and profits of global trade have ever fewer reasons these days to respect the security of those who do.- Source:-Al Jazeera", -2069,2017/3/9,http://www.aljazeera.com/news/2017/03/hawaii-challenges-trump-travel-ban-170309062808944.html,Hawaii challenges Trump's new travel ban,US State attorneys ask Honolulu federal court to issue emergency order temporarily halting revised travel ban.,"The state of Hawaii has become the first US state to take legal action to halt President Donald Trump's revised travel ban, banning entry of people from six mainly Muslim countries and suspending refugee resettlement. The state's attorney general argued late on Wednesday that while the new order features changes to address complaints raised by courts that blocked the first travel ban, the new order is pretty much the same as the first one. The far-flung Pacific state is seeking a nationwide restraining order blocking implementation of the order Trump signed on Monday. The revised executive order bars new visas for people from Syria, Iran, Somalia, Libya, Sudan and Yemen, and temporarily shuts down the US refugee program for 120 days. It does not apply to travelers who already have visas. ""Nothing of substance has changed: There is the same blanket ban on entry from Muslim-majority countries (minus one),"" state attorney general Doug Chin said in a statement. ""The courts did not tolerate the Administration's last attempt to hoodwink the judiciary, and they should not countenance this one,"" Chin wrote. Hawaii-gave notice-Tuesday night that it intended to file an amended lawsuit to cover the new ban, which plans to goes into effect March 16. Hawaii's lawsuit says the order will harm Hawaii's Muslim population, tourism and foreign students. The state's complaint says it is suing to protect its residents, businesses and schools, as well as its ""sovereignty against illegal actions of President Donald J. Trump and the federal government"". The move came after a federal judge in Honolulu said earlier Wednesday that Hawaii can move forward with the lawsuit. US District Judge Derrick Watson granted the state's request to continue with the case and set a hearing for March 15 ""?the day before Trump's revised order is due to go into effect.- Officials in heavily Democratic Hawaii previously sued to stop Trump's initial ban but that suit was placed on hold amid legal challenges around the country. A day after Trump's administration announced its new executive order, attorneys for the state filed their proposed revision in federal court Tuesday night, along with a motion asking that it be allowed to proceed. The US Department of Justice declined to comment on the pending litigation. READ MORE: Trump's new travel ban slammed by rights groups The state will argue at the March 15 hearing that the judge should impose a temporary restraining order preventing the ban from taking effect until the lawsuit has been resolved. A federal judge in Seattle issued a temporary restraining order halting the initial ban after Washington state and Minnesota sued. The 9th US Circuit Court of Appeals refused to reinstate the order. While Hawaii is the first to sue to stop the revised ban, the restraining order is still in place and could apply to the new one, too, said Peter Lavalee, a spokesman for the Washington attorney general's office. University of Richmond Law School professor Carl Tobias said Hawaii's complaint seemed in many ways similar to Washington's successful lawsuit, but whether it would prompt a similar result was tough to say. He said he expects the judge, an appointee of President Barack Obama who was a longtime prosecutor, to be receptive to ""at least some of it."" Given that the new executive order spells out more of a national security rationale than the old one and allows for some travelers from the six nations to be admitted on a case-by-case basis, it will be harder to show that the new order is intended to discriminate against Muslims, Tobias said. ""The administration's cleaned it up, but whether they have cleaned it up enough I don't know,"" he said. ""It may be harder to convince a judge there's religious animus here."" Tobias also said it is good that Hawaii's lawsuit includes an individual plaintiff, considering that some legal scholars have questioned whether the states themselves have standing to challenge the ban. ""This new executive order is nothing more than Muslim ban 2.0,"" Hawaii Attorney General Douglas Chin said in a statement Monday. ""Under the pretense of national security, it still targets immigrants and refugees."" Immigration advocates said the new ban still discriminated against Muslims and failed to address some of their concerns with the previous directive. Noor Zafar, a lawyer with expertise in abusive immigration practices at the Centre for Constitutional Rights, New York, said the new executive order ""is still a ban designed to keep Muslims out of this country"". ""The Trump administration tweaked the language to take out some of the most blatantly unconstitutional provisions, such as the provision barring green card holders,"" she said. ""The discrimination and the anti-Muslim bias is still there and that's evident by statements President Trump and officials from his administration have have made."" Camille Mackler, director of legal initiatives at the New York Immigration Coalition, called Trump's new order a ""backdoor Muslim ban."" ""We still think it's as problematic as the first travel ban,"" she said. Source:-News agencies", -2070,2017/3/9,http://www.aljazeera.com/indepth/features/2017/03/uneven-alliance-america-pro-israel-170308064459862.html,The uneven alliance: How America became pro-Israel Ramzy Baroud,"Israeli lobby in the US managed to infiltrate all aspects of government, thus formulating US policy directly. By","Mere days after Donald Trump won the US presidential election, American Zionists moved quickly to ensure that Israeli interests were fully guarded by the new administration.- The-Zionist Organization of America wasted no time, hobnobbing with notorious racists, also known for their anti-Jewish agendas. ZOA's annual gala on November 20 hosted none other than Steve Bannon, a leader in the so-called alt-right, otherwise known as white supremacy in the United States. Under his leadership, Breitbart, seen as a major platform for the alt-right, fuelled anti-Semitism (needless to say, racisms of all shades)-argued Alex Amend and Jonathan Morgan-in AlterNet. Watching top Israeli officials and leaders of the Jewish community in the US hosting - ever so enthusiastically - Bannon at ZOA's annual gala appeared perplexing to some. Others casually explained it as the nature of politics, as Israel needs its US alliance even if it meant accommodating anti-Semites. But it is hardly that simple. WATCH: Occupation of the American mind Bannon's ties with Zionists go back well before the rather surprising Trump election victory. In fact, Israel has never had a problem with true anti-Semites. Instead, it merely rebranded any criticism of the Israeli occupation of Palestinian land as anti-Semitism. By conflating the term, the Zionists managed to largely silence all debate on Israel in the US, and despite stubborn attempts to break Israel's stronghold on Zionist control over the Palestine and Middle East narrative in US media, government and society as a whole, Israel continues to maintain the upper hand, as it has for decades. Speaking in the White House's East Room on February 15, in a joint press conference with President Trump, Israeli Prime Minister Benjamin Netanyahu cordially thanked Trump for his hospitality, then-uttered these words: ""Israel has no better ally than the United States. And I want to assure you, the United States has no better ally than Israel."" But it was only half true. The US has indeed been a-stalwart supporter of Israel, offering it-over $3.1bn in financial assistance each year-for the last a few decades, an amount that dramatically-increased under President Barack Obama-to $3.8 bn. In addition to hundreds of millions more in all kinds of financial, military assistance and-""loans""-that went mostly unaccounted for. However, Netanyahu lied. His country has not been an equally strong ally to the US; in fact, Israel has been a liability. Let alone the various serious episodes of-Israeli spying-on Washington and bartering US secrets and technologies with-Russia-and-China, Israel has been the cause of instability in the Middle East region. Since World War II, the US has vied to achieve two main foreign policy objectives in the Middle East: Control the region and its resources and prop-up its allies (often dictators), while maintaining a degree of ""stability"" so that the US is able to conduct its business unhindered. Nevertheless,-Israel remained on the warpath. Wars that Israel couldn't fight on its own required American intervention on Israel's behalf, as was-the case in Iraq. The outcome was disastrous for US foreign policy. Even hardened military men began noticing the destructive path their country had chosen in order to defend Israel. In March 2010, General David Petraeus, then head of the US Central Command-told the Senate Armed Services Committee-during a testimony that Israel had become a liability for the US and that has become a challenge to ""security and stability"", which his country aimed to achieve. He said: ""Israeli-Palestinian tensions often flare into violence and large-scale armed confrontations. The conflict foments anti-American sentiment, due to a perception of US favouritism for Israel. Arab anger over the Palestinian question limits the strength and depth of US partnerships with governments and peoples in the AOR (Area of Operations) and weakens the legitimacy of moderate regimes in the Arab World. Meanwhile, al-Qaeda and other militant groups exploit that anger to mobilise support."" Although speaking strictly from a US military interest, the Israeli lobby attacked Petraeus almost immediately. Abe Foxman, Director of the Anti-Defamation League (ADL), which often mischaracterises its role as that of combating racism in the US-lashed out at the top American commander-calling his conclusions ""dangerous and counterproductive."" That spectacle alone demonstrated that Israel's power in the US has grown tremendously through time. In the US, no one is immune to Israeli criticism, including the president himself, who is expected to accommodate Israeli whims, without expecting any Israeli reciprocation. A particularly-telling episode-revealed the degree of Israeli influence in the US, when then-House Speaker John Boehner plotted with then-Israel's ambassador to Washington, Ron Dermer to arrange a visit and a speech before Congress for Netanyahu, in defiance of President Obama. Netanyahu then raged and raved before a united Congress (with a few exceptions) that repeatedly endowed the Israeli prime minister with many standing ovations as he belittled their president and strongly criticised US foreign policy on Iran. Obama felt isolated as if a target of a political coup; a few-Democrats fumbled in a disorganised press conference-to respond to Netanyahu's accusations, but they were certainly the tiny minority. That spectacle alone demonstrated that Israel's power in the US has grown tremendously through time from a ""client regime"", to a ""partner"". But how did Israel achieve such commanding influence over US foreign policy? READ MORE: Israel versus America versus Iran In an article entitled: ""Steve Bannon's web of weirdness: Meet the bizarre billionaires behind the president-elect's chief strategist,"" Heather Digby Patron-named a few of these ""bizarre billionaires"". They included, Sheldon Adelson, a right-wing billionaire with a gambling empire, who is ""singularly focused on the state of Israel"". Adelson's relations with Bannon (and Trump) has well preceded Trump's victory, and seemed to take little notice of the fact that Bannon and his ilk were viewed by many American Jews as frightening, racist anti-Semites with a menacing agenda. Adelson however, cares little for the true racists. His obsession to shield Israel's militant Zionist agenda trumped all other seemingly little irritants. But the gambling mogul is not the exception among powerful Zionists in the US. Writing in Mondoweiss, the International Jewish Anti-Zionist Network explained the love affair between Israel and anti-Semites: ""From Russian Tzars to the Nazis to Mussolini to the colonial British Empire to the Christian Right -Christian Zionists; (The Zionists') embracing of Trump and renowned reactionary political strategist Steve Bannon is no exception."" Israeli commentator-Gideon Levy agrees. In an article published by Haaretz on November 21, Levy wrote, ""When friendship for Israel is judged solely on the basis of support for the occupation, Israel has no friends other than racists and nationalists."" Thus, it is no surprise that-Adelson is funding a massively rich campaign-and lavish conferences to combat the influence of the civil society-powered Boycott, Divestment and Sanctions movement (BDS), while plotting with American elements that consider the word ""Jew"" a swear word in their own social lexicon to support Zionist Israel. By putting Israel and Zionism first, these rich individuals, powerful lobby groups, hundreds of think-tanks, thousands of networks across the country and their allies among the religious right, are now the main wheelers and dealers in any matter concerning US foreign policy in the Middle East and Israel's political and security interests. Zionists often speak of a historical bond between the US and the Jewish people, but nothing could be further from the truth. On May 13, 1939,-a boat carrying hundreds of German Jews-was not allowed to reach American shores and was eventually sent back to Europe. That was not a foreign policy fluke. Three months earlier, in February 1939, members of Congress-rejected a bill-that would allow 20,000 German Jewish children to come to the US to escape the war and possible extermination at the hands of the Nazis. The oddity is that the bill was rejected despite the fact that it proposed bringing the children as part of an already existing quota for annual visas allowed to German citizens. Not only did the Congress shoot it down, but the public had no interest in the matter either, as allowing Jews into the US was quite an unpopular affair. While these Jews were not always welcome, Zionists were already forging strong alliances in the government and applying pressure on the White House to establish a ""Jewish state"" in Palestine. READ MORE: The Israel lobby - All bark but little bite Indeed, the early days of Zionist lobbying go back to the early 20th century, but such lobbying became truly fruitful during the presidency of Harry S Truman to pressure the White House to back the partition of Palestine. Writing in his memoir,-Truman noted, ""The facts were that not only were there pressure movements around the United Nations unlike anything that had been seen there before, but that the White House, too, was subjected to a constant barrage."" ""I do not think I ever had as much pressure and propaganda aimed at the White House as I had in this instance. The persistence of a few of the extreme Zionist leaders - actuated by political motives and engaging in political threats - disturbed and annoyed me."" Since then, those ""extreme Zionists leaders"" have grown in numbers and influence beyond anything Truman could have ever imagined. In their seminal article,-The Israel Lobby-(which served as the thesis of their book) in the London Review of Books, two prominent American scholars John Mearsheimer and Stephen Walt took on the painstaking task of deconstructing the power of the ""formal"" and ""informal"" Israel lobby that has grown exponentially in recent years. They argued that the power of the lobby is now so great to the point that it has largely orchestrated the US war on Iraq in 2003, only to shift following the war fiasco to advocate wars against Iran-and Syria; in addition to ensuring that there can never be a balanced US foreign policy on Israel and Palestine. ""So, if neither strategic nor moral arguments can account for America's support for Israel, how are we to explain it?"" they asked in their article, offering only one possible answer: ""The explanation is the unmatched power of the Israel Lobby."" While certainly not all Jewish Americans are part of or even supporters of the lobby, the massive pro-Israel network managed to sell the idea to many US Jews that their fate is linked to supporting Israeli policy, no matter how destructive or self-defeating. ""Jewish Americans have set up an impressive array of organisations to influence American foreign policy, of which AIPAC is the most powerful and best known,"" the two American scholars wrote. READ MORE: Critics warn US could adopt 'pro-settler agenda' According to Fortune Magazine's 1997 issue, AIPAC is considered the-second-most powerful lobby in Washington, an assessment that-was upheld-by the National Journal Study in March 2005. ""The Lobby"" also relies on Christian evangelicals who have long advocated the return of Jews to Palestine as to fulfil some biblical prophecy pertaining to the end of times. Historically, Zionists have had no quarrel working with such hate-peddling preachers as Jerry Falwell, Pat Robertson and John Hagee. Hagee, in particular,-has emerged as possibly the most powerful of these figures. His eagerness for the final battle between East and West - Armageddon - led him to establish Christians United for Israel (CUFI). While AIPAC boasts over 100,000 members, as of January 2015, CUFI's membership was-estimated at two million. When Israel attacked Lebanon in the summer of 2006, thousands of-evangelicals descended on Washington-to lobby Congress to support Israel unconditionally. They arrived from all 50 states and, in one single day, they reportedly held 280 meetings on Capitol Hill. But unlike the early days of Zionist lobbying, the lobby is no longer standing on the sidelines urging to the Congress and the executive branch to adopt a pro-Israel agenda. In the last two decades, they have managed to infiltrate all aspects of government, thus formulating policy directly. Mearsheimer and Walt, but also others discussed the evolution of the lobby in the form of the neo-conservatives during the presidency of George W Bush which was coupled with the proliferation of ""think-tanks"" and policy forums, all with the ultimate aim of backing Israel, no matter the high cost for the US - and needless to say for Palestinians and the Middle East. Moreover, the lobby is no longer satisfied with attempting to sway Washington, by pressuring the Congress and the executive branch - where being pro-Israel has been the expected natural state of mind for American lawmakers (save the-few courageous ones) - but ""It also strives to ensure that public discourse portrays Israel in a positive light, by repeating myths about its founding and by promoting its point of view in policy debates,"" according to-The Israel Lobby. ""The goal is to prevent critical comments from getting a fair hearing in the political arena. Controlling the debate is essential to guaranteeing US support, because a candid discussion of US-Israeli relations might lead Americans to favour a different policy."" This is why the lobby is currently mobilising to stop and-even criminalise the BDS movement, for, even if it failed to nudge US foreign policy in a more sensible direction, BDS is relatively succeeding in creating more platforms for open discussions on many university campuses and some media. Several US states have officially launched initiatives to defeat BDS and more are likely to follow. The fear of losing complete control over the narrative is frightening for the pro-Israel lobby. For them, only Israeli myth peddlers and fear-mongering preachers must be allowed to speak to Congress, media and public. Although recent polls have shown that younger Americans - especially among-Democratic party supporters-and young-Jewish Americans-- are losing their enthusiasm for Israel and its Zionist ideology - the battle for the US to reclaim its foreign policy and a sense of morality regarding Palestine and the Middle East is likely to be long and arduous. The lobby put down roots decades ago, and is a combination of many forces and backed by ""bizarre billionaires"" and infinitely dark agendas. The outcome of this lobbying has played a significant role in a horrendous foreign policy that-has killed, wounded and displaced millions, from Palestine to Iraq and elsewhere. Only a better and more honest understanding of the rule of the lobby can serve as a first step towards its dismantlement. Ramzy Baroud has been writing about the Middle East for over 20 years. He is an internationally-syndicated columnist, a media consultant, an author of several books and the founder of PalestineChronicle.com. His books include ""Searching Jenin"", ""The Second Palestinian Intifada"" and his latest ""My Father Was a Freedom Fighter: Gaza's Untold Story"". His website is-www.ramzybaroud.net. Source:-Al Jazeera", -2071,2017/3/9,http://www.aljazeera.com/indepth/opinion/2017/03/war-crimes-serve-justice-syria-170308095824254.html,,,"Six years into the carnage in Syria, atrocious crimes run rampant, with savage abuses committed against all groups in the devastated country, and the murderous regime, abetted by powerful allies, is still in power. The United Nations Security Council remains in a deadlock and unable to take any steps towards ensuring accountability for the massive crimes, with the International Criminal Court left on the sidelines. However, amid the terrible loss of life, hope that the slow wheels of justice will finally be put in motion emerged recently from an unlikely source - the UN General Assembly. In December 2016, the UNGA, led by Liechtenstein and Qatar, established an ""Independent Mechanism to assist in the investigation of serious crimes committed in Syria since March 2011"". With this step the UNGA, usually associated with administrative and budgetary matters, has asserted itself in a highly welcome if unusual manner, signaling the deep frustration with the failure of other UN organs and the great powers to stop the killing in Syria. The move also demonstrates that small states can galvanise the international community around issues of global significance and catalyse a collective response. The term ""Mechanism"" indicates that the powers of this newly established body will not mirror those of a court or a commission of inquiry. Instead, the focus of its mission will be to collect and analyse evidence, which could then be available for courts or tribunals in the future to prosecute these massive crimes. The material collected could also well be of use for other transitional justice processes, including truth commissions, reparations programmes and vetting processes. If successful, this effort may truly be a breakthrough against the reign of impunity for the horrendous crimes committed in Syria. To be successful, however, the Mechanism's work must be planned carefully rather than replicate the work of others. My decade-long experience of working on four international tribunals tells me that the Mechanism should not primarily focus on collecting evidence in the first stage of its work. Much of the same ground has already been covered by the courageous and very active Syrian civil society groups working in circumstances of great peril, as well as their international partners and the Commission of Inquiry established by the UN Human Rights Council, which has interviewed 1,400 witnesses. Instead, the first step should be to understand and analyse the evidence that has already been gathered. Surely, the investigations should concentrate on the most serious perpetrators and the most egregious crimes. This approach was learned the hard way in the former Yugoslavia and other places of mass atrocities: with thousands of perpetrators, prosecutions are most effective when they focus on the political and military leaders, not foot soldiers. OPINION: Whitewashing Assad and his allies must be challenged Experience, including in cases against Slobodan Milosevic and Radovan Karadzic, has shown that properly analysing the evidence, and making the key connections between senior leaders and lower-level perpetrators is critical-to demonstrating the criminal liability of those most responsible for planning and ordering atrocities. This methodology, utilised in holding Karadzic-responsible for genocide in Srebrenica, was also critical for holding Kang Kek Iew, the commander of the notorious S-21 prison camp in Cambodia - where all but seven of some 14,000 inmates perished - responsible for crimes against humanity. Another critical issue is witness protection. I have had the heavy responsibility of ensuring the protection of witnesses at several international courts, and consider this not only essential to successful investigations and criminal trials, but also a profound moral duty to those who put themselves in harm's way for the cause of justice. Because each contact with a witness places him or her in greater danger, understanding the evidence that is on hand prevents unnecessary contact with witnesses that may put them at risk - and ensures that resources are used wisely. The UNGA's Mechanism is an important innovation in the fight against impunity and potentially a crucial breakthrough for the victims in Syria. - For this and other reasons, the Mechanism needs to engage - in its earliest days of operation - with the extraordinarily committed civil society groups in Syria and the Syrian diaspora, many of whom have felt left out of the process so far. This can be remedied by the new body's leadership engaging in consultations with such civil society groups that will go beyond perfunctory outreach efforts. In very important ways, they are the constituency of this effort to obtain justice for mass atrocities in Syria, and the Mechanism's leadership needs to understand this from the outset. Finally, the choice of the leadership of the Mechanism is critical; indeed, it may well make or break the endeavour. There are a number of relevant experiences to draw from in this regard, and they all point to the critical need to select women and men for leadership positions who have political and diplomatic acumen, and an understanding of how to manage an office focused on investigations in a very difficult terrain. Most importantly, they need good judgment and strong nerves as they will face enormous challenges that exceed those that I experienced in the former Yugoslavia, Cambodia and Lebanon. OPINION: Will Assad ever be tried for his crimes? The UNGA's Mechanism is an important innovation in the fight against impunity and potentially a crucial breakthrough for the victims in Syria. It also has the potential to create a new path towards accountability at a time when justice seems to be on the margins of great powers' agendas. Its success will depend on how well it adopts lessons learned from other experiences, but also on the strong support of all of us committed to justice for the atrocities committed in Syria, whomever the perpetrators. David Tolbert is president of the International Center for Transitional Justice. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2072,2017/3/9,http://www.aljazeera.com/news/2017/03/cia-wikileaks-dump-equips-adversaries-170309061000563.html,CIA: WikiLeaks dump 'equips' US adversaries,Central Intelligence Agency accuses WikiLeaks of jeopardising its mission to protect the American people. Investigating source of leak,"The CIA has accused WikiLeaks of endangering the American people and ""equipping"" US rivals over the leak of thousands of documents that purportedly show the extent of the CIA hacking programme. In a statement, the intelligence agency said the disclosure by WikiLeaks ""Jeopardised""?its mission to protect the American people. ""The American public should be deeply troubled by any WikiLeaks disclosure designed to damage the Intelligence Community's ability to protect America against terrorists and other adversaries,"" the statement read. ""Such disclosures not only jeopardise US personnel and operations, but also equip our adversaries with tools and information to do us harm,"" it added. WATCH: WikiLeaks: Neutral reporter or political player? The CIA also said it could not confirm the authenticity of the nearly 9,000 documents disclosed by WikiLeaks. The documents, published on Tuesday, showed the wide range of the alleged CIA hacking programme. In what WikiLeaks described as the largest-ever publication of secret intelligence materials, the leak suggested CIA malware targeted iPhones, Android systems, and Microsoft software. It also said the CIA could turn on Samsung smart TVs into covert listening devices. The CIA refused to comment on any investigation into the source of the leak, but intelligence and law enforcement officials told Reuters they believed contractors were most likely responsible. The officials, who spoke on condition of anonymity, also said they had been aware of a CIA security breach since late last year. WikiLeaks has said the trove of documents came from an archive that had circulated among US government hackers and private contractors. The FBI has turned its attention to questioning those who had access to the information, according US media. Experts who have started to sift through the material said that it appeared to be legitimate. Named ""Vault 7"" by WikiLeaks, the disclosure says the CIA developed a malware to infect mobile phones to allow easier surveillance - but lost control of the technology. If the CIA really lost control of the technology, hackers worldwide could use the tools to steal data. Edward McAndrew, a lawyer with a specialty in cyber security, told Al Jazeera-the security breach is a major concern for the CIA because its technology could already be in the wrong hands. ""Once these tools are introduced into the wild of the internet, they cannot be reclaimed. We'll then see a race between those who would use these tools to exploit others and those trying to close all these vulnerabilities that have now come to light,"" he said. The actual hacking tools were not part of the WikiLeaks trove. Both Apple and Samsung have vowed to quickly fix any vulnerabilities in their products. Source:-Al Jazeera and news agencies", -2073,2017/3/9,http://www.aljazeera.com/news/2017/03/myanmar-face-probe-rohingya-abuses-170309050732369.html,Myanmar 'unlikely' to face UN probe on Rohingya abuses,"Contrary to the UN Human Rights Council proposals, EU diplomats say they prefer existing mechanism to probe abuses. Independent probe","Myanmar looks set to escape an international investigation into alleged atrocities against its Rohingya minority, after the European Union decided not to seek one at the UN Human Rights Council, a draft resolution seen by Reuters news agency showed. The EU takes note in the draft resolution seen on Wednesday, of ""the very serious nature of the allegations"" and ""current investigations conducted at the domestic level"". But it stops short of the investigation sought by UN High Commissioner for Human Rights Zeid Ra'ad al-Hussein. READ MORE: Amnesty says Rohingya abuse may be crimes against humanity EU diplomats told a meeting on Tuesday that they preferred using an existing mechanism that had received good cooperation and access from Myanmar's government, rather than a new approach, and to give more time to the domestic process. The EU has historically taken the lead on issues relating to Myanmar on the Council. Zeid, in a renewed appeal on Wednesday, told the Council that the severe violations follow ""longstanding persecution"" of the stateless Rohingya minority in majority-Buddhist Myanmar, and warranted a review by the International Criminal Court. ""I therefore urge the Council, at minimum, to establish a Commission of Inquiry into the violence against the Rohingya, particularly during security operations since 9 October 2016,"" he said. The UN said in a report last month that the army and police had committed mass killings and gang rapes of Rohingya Muslims in northern Rakhine state, and burned villages in a campaign that may amount to crimes against humanity and ethnic cleansing. Setting up a full international commission of inquiry into the findings - similar to those for Syria and North Korea - has been seen as a test of international resolve at the main annual session of the Council that ends on March 24. The draft resolution from the EU suggests it may fail that test. Some 70,000 people have fled Rakhine state to Bangladesh since Myanmar's military began a security operation last October in response to what it says was an attack by Rohingya armed men on border posts, in which nine police officers were killed. Human rights monitors have voiced serious doubts that several investigative commissions set up by the Aung San Suu Kyi government and its security forces had the tools and independence needed for an impartial probe. Activists said the security forces continued to carry out serious crimes demanding an international probe. ""Our research indicates that it (the abuse) is systematic, and the idea that the government could or would be able to participate in a proper investigation of what is going on simply isn't realistic,"" said Louis Charbonneau of Human Rights Watch. ""An investigation needs to be independent, credible and international."" Source:-Al Jazeera and news agencies", -2074,2017/3/9,http://www.aljazeera.com/news/2017/03/170309042548648.html,Barcelona makes history with 6-1 comeback win over PSG,Coach Unai Emery fighting to stay on after PSG were humiliated 6-1 by Barcelona in the Champions League. 'We made unacceptable mistakes',"PSG coach Unai Emery was fighting for survival Thursday after his side were swept away 6-1 by Barcelona in a Champions League rout described as a ""nightmare"" and a ""humiliation"". The Spaniard had been hailed as a tactical genius last month when his French champions stunned mighty Barca 4-0 in Paris in the first leg of their last-16 tie. But on Wednesday night, in front of almost 100,000 people at the Nou Camp, PSG shipped three late goals in an incredible last seven minutes as Barcelona completed the greatest comeback in the history of the tournament, winning 6-5 on aggregate. ""When you win 4-0, then lose 6-1, it's very hard to accept,"" said PSG president Nasser Al-Khelaifi, the Qatari official whose country has poured millions of dollars into the French club. ""Everyone knows that the quarter-finals were an objective and after winning the first leg 4-0 that aim was confirmed. ""This is a nightmare for everybody. Is Unai Emery still credible? This is not the moment to talk of this. After the game, we are all upset."" Influential French sports daily L'Equipe was quick to highlight the implications of becoming the shock European fall guys. ""It is the entire PSG project that is threatened by this humiliation,"" it said. Emery, meanwhile, said PSG were damaged by German referee Deniz Aytekin's decisions to award two penalties to Barcelona -- both in the second half. Lionel Messi converted the first penalty on 50 minutes to make it 3-0, before PSG's Edinson Cavani scored what looked like a crucial away goal. But Neymar, after scoring an 88th-minute free kick, tucked away the second penalty in the 91st minute before Sergi Roberto got the vital goal in the fifth minute of injury time. ""The truth is we have let a huge opportunity get away and we are aware of that. In the first half it was more our fault than them playing well,"" said Spanish coach Emery. ""In the second half it changed. The (Messi) penalty got them off to a great start, but I was already calmer because I could see the team was responding better, were better positioned on the pitch and could do damage. ""We had chances to make it 3-2 and then the refereeing decisions, I don't know if they were right or not, but for sure they damaged us. Then in the last two minutes we lost everything we had recovered in the second-half. ""Barcelona are capable of this in their stadium. In the last few minutes they played all or nothing and they have beaten us."" PSG's Belgian defender Thomas Meunier blasted his team-mates for allowing Barcelona to bully them. ""At 5-1 down, we were qualifying but we conceded a goal that we should not have conceded,"" he said. ""We acquiesced, we were victims and let them dominate us. ""Even when were 3-1 down we had lots of chances to score but we didn't take them. We made unacceptable mistakes and handed the game to them."" Source:-AFP news agency", -2075,2017/3/9,http://www.aljazeera.com/news/2017/03/marines-syria-170309014847784.html,US deploys heavily armed Marines to Syria,"Several hundred Marines sent to prepare for battle to push ISIL out of its de facto capital, Raqqa, in country's north.","Several hundred Marines have deployed into Syria with artillery guns, as part of the ongoing preparation for the fight to push ISIL out of its self-declared headquarters of Raqqa, a Pentagon spokesman has confirmed. The Marines are pre-positioning howitzers to be ready to assist local Syrian forces, according to US officials.- The deployment is temporary. But it could be an indication that the White House is leaning towards giving the Pentagon greater flexibility to make routine combat decisions in the fight against the Islamic State of Iraq and the Levant (ISIL, or ISIS). Military commanders frustrated by what they considered micromanagement under the previous administration have argued for greater freedom to make daily decisions on how best to fight the enemy. In addition, the US is preparing to send up to 1,000 troops to Kuwait in order to be ready to join the ISIL fight if they are needed, officials said. Proponents of the move said it would provide US commanders on the ground greater flexibility to quickly respond to unforeseen opportunities and challenges on the battlefield. The latest troop movements come on the heels of the recent temporary deployment of some dozens of army forces to the outskirts of Manbij, Syria, in what the Pentagon called a ""reassure and deter"" mission. Flying American flags and moving in large, heavily armoured vehicles, the troops were there to keep a lid on tensions in the area, the Pentagon said. READ MORE: Trump vows to 'demolish and destroy' ISIL Under the existing limits put in place by the Obama administration, the military can have up to 500 US forces in Syria, although temporary personnel do not count against the cap. The special operations fighters are ostensibly there to train and assist the Syrian Democratic Forces (SDF), an umbrella group of Kurdish and Arab fighters that have proven to be a key ground asset in the US-led coalition's battle against ISIL. Pentagon leaders sent a new plan to defeat ISIL to the White House late last month. It outlined a strategy that would likely increase the number of US troops in Syria in order to better advise and enable the US-backed Syrian fighters who will take on the battle for Raqqa. The military has mapped out a series of options for the Syria fight, including increased artillery support, more Apache helicopters and a more robust training campaign. US officials say the battle for Raqqa will look much like the fight in neighbouring Iraq, where local forces are in a fierce battle to retake the northern city of Mosul - ISIL's last stronghold in the country. As troops were preparing to move into Mosul, the US set up bases outside the city to use as logistical hubs and as locations for heavy artillery. The moves to pre-position US troops closer to the fight, so they can be tapped as needed, are the kinds of decisions that military commanders say they need to be able to make more quickly, without going to the White House every time for approval. Source:-News agencies", -2076,2017/3/9,http://www.aljazeera.com/news/2017/03/warns-options-table-deal-korea-170308201401965.html,US says 'all options on table' to deal with North Korea,US Ambassador to the United Nations Nikki Haley calls Kim Jong-un arrogant and not 'a rational person'.,"The United States has said ""all options are on the table"" to deal with North Korea. US Ambassador to the United Nations Nikki Haley also denounced North Korean leader Kim Jong-un after the United Nations Security Council discussed Pyongyang's launch of four ballistic missiles on Monday. ""We are not dealing with a rational person,"" said Haley. ""It is an unbelievable, irresponsible arrogance that we are seeing coming out of Kim Jong-un at this time."" She said the administration of US President Donald Trump was reevaluating how it would handle North Korea and that ""all options were on the table"". ""We are making those decisions now and we will act accordingly,"" Haley said. North Korea fired the missiles into the sea off Japan's coast in response to the annual US-South Korea military drills, which Pyongyang sees as preparation for war. According to the Kyodo News Agency, one of the missiles fell ""closer than ever before"" from the Japanese coast, around 200km northwest of the country's Noto Peninsula. -- Al Jazeera's Mike Hanna, reporting from the UN headquarters in New York, said ""it doesn't appear there was that much movement"" in the closed-door Security Council emergency meeting called by the US, Japan and South Korea. ""All parties came out and insisted that the sanctions already in place against North Korea must be fully enforced, the argument being that there is still some leeway with the enforcement of these sanctions,"" he said. Pyongyang has fired dozens of missiles and conducted two of its five nuclear tests in the past year in defiance of UN resolutions. Chinese Foreign Minister Wang Yi said on Wednesday the tests by the North and the joint drills across the border in South Korea were causing tension to increase like two ""accelerating trains coming toward each other"". He suggested a ""dual suspension"" to allow all sides to return to negotiations. ""We have to see some sort of positive action taken by North Korea before we can ever take them seriously,"" Haley said when asked about Beijing's proposal. She said the drills had been held annually for 40 years and North Korea was always notified. The US military on Tuesday started to deploy the first elements of its Terminal High Altitude Area Defense (THAAD) anti-missile system to South Korea, which China opposes. Diplomats said China raised the THAAD deployment during Wednesday's closed-door UN meeting. North Korea's foreign ministry spokesman categorically rejected a Security Council statement that labelled what he called its ""routine"" ballistic missile launches a threat. The spokesman reiterated that the US-South Korean exercises are pushing the situation ""to the brink of a nuclear war"" and the North was responding with ""the self-defensive right of a sovereign state"". Source:-Al Jazeera and news agencies", -2077,2017/3/9,http://www.aljazeera.com/news/2017/03/guatemala-fire-deadly-blaze-rips-child-centre-170308172956284.html,Girls killed in fire at San Jose Pinula child centre,At least 21 girls found dead after fire apparently started in protest against alleged abuse at care home in Guatemala. 'Immediate closure',"Three days of national mourning have been declared in Guatemala, after 21 girls were killed in a fire, apparently started in protest against abuse at a crowded children's care home. A crowd of relatives, many of them wailing with grief, continue to gather late on Wednesday (local time) outside the Virgen de Asuncion home, in the municipality of San Jose Pinula, some 25km southwest of the capital Guatemala City. Al Jazeera's David Mercer, reporting from San Jose Pinula, said an investigation is under way, to determine what caused the fire. Our correspondent also reported that the surviving children were being transferred to other care centres and orphanages.- READ MORE: People-power and the 'Guatemalan Spring' The head of Guatemala's social welfare agency, Carlos Rodas, said youths at the shelter started rioting on Tuesday in an effort to escape. Complaints about abuse and living conditions at the overcrowded shelter have been frequent. Then on Wednesday, about 9am, ""Some of the adolescents lit their mattresses on fire,"" Rodas said. ""We don't shirk responsibility, we accept it, but we can't get those lives back."" Julia Barrera, spokeswoman for the prosecutor's office, said at least 21 children and teenagers perished. Two hospitals said they received 41 injured girls between the ages of 13 and 17, many with second- and third-degree burns. Some of the injured had life-threatening burns. ""This is a painful situation,"" Nery Ramos, the head of Guatemala's national police, said at the scene of the fire. Riot police had been sent in to quell unrest over the crowded living conditions at the home, which was created to house children who were victims of abuse, homelessness or who had completed sentences at youth detention centres and had nowhere else to go. Some 40 residents escaped but were recaptured and isolated, Ramos said. UNICEF and the prosecutor for human rights called for the home's closure last year after complaints of overcrowding along with physical and sexual abuse. On Wednesday, UNICEF representatives were present as the police started the investigation, Al Jazeera's correspondent said. Guatemalan media reported that more than 500 people were crammed into the shelter designed to house 400. The facility has previously been the target of multiple complaints alleging abuse, and several children have run away. Guatemala's prosecutor for upholding children's rights, Hilda Morales, told reporters she was requesting that the shelter be closed due to welfare authorities' inability to manage it. ""We are going to ask for the immediate closure of the centre, and attribute administrative and criminal responsibility against those in charge of the centre for not fulfilling their duty,"" she said. She noted that last year the Inter-American Commission on Human Rights had found in favour of several adolescents who had alleged maltreatment and sexual abuse in the shelter. She stressed that those sent to the centre should receive ""better protection"" than in their families where they were abused. Another prosecutor tasked with protecting children in the country, Harold Flores, told Emisoras Unidas that since last year complaints had surged against the shelter over minors running away to escape alleged sexual abuse there. He said an investigation had been started to find the reasons and those responsible for Wednesday's tragedy. Meanwhile, Al Jazeera's Mercer reported that critics are accusing the government of not doing enough to address the complain of the residents of the care home. Source:-Al Jazeera and news agencies", -2078,2017/3/9,http://www.aljazeera.com/news/2017/03/apple-samsung-vow-fix-flaws-cia-hack-report-170308211709465.html,"Apple, Samsung vow to fix flaws after CIA hack report","Agency allegedly produced more than 1,000 malware systems to infiltrate and take control of targeted electronics.","Apple and Samsung have vowed to quickly fix any vulnerabilities in their products following WikiLeaks' disclosure of an alleged CIA hacking arsenal capable of breaking into iPhones and other devices. The archive claims to show the CIA exploiting weaknesses it discovers in hardware and software systems - without informing manufacturers of the flaws in question. ""While our initial analysis indicates that many of the issues leaked today were already patched in the latest iOS, we will continue work to rapidly address any identified vulnerabilities,"" Apple said in a statement.---- ""We always urge customers to download the latest iOS to make sure they have the most recent security updates.""---- Samsung offered a similar response.---- ""Protecting consumers' privacy and the security of our devices is a top priority at Samsung,"" a statement from the South Korean electronics giant said.---- ""We are aware of the report in question and are urgently looking into the matter.""- WikiLeaks claims the documents it released on Tuesday are part of a vast trove of leaked CIA documents, tools and code representing ""the majority of its hacking arsenal"". The CIA would neither confirm nor deny the documents were genuine.---- However, ""the American public should be deeply troubled by any WikiLeaks disclosure designed to damage the Intelligence Community's ability to protect America against terrorists and other adversaries,"" a CIA spokesman said in a statement. ""Such disclosures not only jeopardise US personnel and operations, but also equip our adversaries with tools and information to do us harm."" According to the documents, the CIA has produced more than 1,000 malware systems - viruses, trojans, and other software - that can infiltrate and take control of target electronics. ---- US intelligence and law enforcement officials said on Wednesday they have been aware since the end of last year of a security breach at the CIA and were focusing on contractors as the likeliest source of documents being passed on to WikiLeaks. The officials, who spoke on condition of anonymity, told Reuters news agency they believed the documents were authentic. WikiLeaks exposes alleged CIA hacking programme The White House said on Wednesday that President Donald Trump was ""extremely concerned"" about a CIA security breach. ""Anybody who leaks classified information will be held to the highest degree of law,"" spokesman Sean Spicer told reporters. One official with knowledge of the investigation said companies that are contractors for the CIA have been checking to see which of their employees had access to the material that WikiLeaks published. In Germany on Wednesday, the chief federal prosecutor's office said it would review the WikiLeaks documents because some suggested the CIA ran a hacking hub from the US consulate in Frankfurt. ""We're looking at it very carefully,"" said a spokesman for the federal prosecutor's office. ""We will initiate an investigation if we see evidence of concrete criminal acts or specific perpetrators."" Source:-News agencies", -2079,2017/3/9,http://www.aljazeera.com/news/2017/03/womens-day-strike-protests-170308220825678.html,'Day Without a Woman' marked with strike and rallies,"Women urged to stay away from work, or wear red if they cannot, to highlight their role in US economy and society. Protest for the privileged?","American women demonstrating how vital women are to the US economy have-stayed home from work, joined rallies or wore red, as International Women's Day was observed with a multitude of events around the world. The Day Without a Woman protest in the US was promoted by organisers of the vast women's marches that drew more than 1 million Americans the day after President Donald Trump's inauguration. The turnout this time was much smaller, with crowds in many places numbering in the hundreds. There were no immediate estimates of how many women heeded the call to skip work some schools were closed as not enough staff would turn up for work. Many seized the opportunity to protest against Trump and his policies concerning women. ""I believe now more than ever it's important to stand up for women's reproductive rights, LGBTQ, the environment,"" a young woman who left her retail job to join a protest in New York, told Al Jazeera. ""With this administration we have to take our rights seriously and make sure everyone is heard and represented."" An older man also said he came out because of Trump. ""I think he discriminates against women, has no respect for women and that's why I want to be here. For women."" OPINION: Sexy veils, running shoes and missing feminisms A crowd of about 1,000 people, the vast majority of them women, gathered on New York's Fifth Avenue in the shadow of Trump Tower. Women wore red and waved signs reading ""Nevertheless she persisted,"" ''Misogyny out of the White House now"" and ""Resist like a girl"". At least 13 protesters were arrested for ""disorderly conduct"" after sitting in the street near the Trump Hotel, disrupting traffic.- Some of the main organisers of the Women's March --Tamika Mallory, Linda Sarsour, Carmen Perez and Bob Bland ---were among those arrested. Elsewhere in the city, a statue of a fearless-looking girl was placed in front of Wall Street's famous charging bull sculpture. The girl appeared to be staring down the animal. A plaque at her feet read: ""Know the power of women in leadership. SHE makes a difference."" State Street Global Advisors, the firm behind the statue, said it was a way of calling attention to the lack of gender diversity on corporate boards and the pay gap of women working in financial services. The nation-wide event was inspired in part by the Day Without an Immigrant protest held last month. School in such places as Prince George's County, Maryland; Alexandria, Virginia; and Chapel Hill, North Carolina, cancelled classes after hundreds of teachers and other employees let it be known they would be out. In Providence, Rhode Island, the municipal court closed for lack of staff members. In Washington, DC, more than 20 Democratic female representatives walked out of the Capitol to address a cheering crowd of several hundred people. Dressed in red, the lawmakers criticised efforts to repeal the Affordable Care Act and eliminate federal funding for Planned Parenthood. House Minority Leader Nancy Pelosi encouraged more women to go into politics, saying, ""You have marched for progress. Now you must run for office."" What are you doing for #DayWithoutAWoman? In front of the White House, dozens protested against a US policy that bans international NGOs from providing abortion services or offering information about abortions if they receive US funding. Trump imposed what critics call the ""global gag rule"" in an executive order he signed just after taking office. Some criticised the Day Without a Woman-strike, warning that many women cannot afford to miss work or find child care. Organisers asked those unable to skip work to wear red in solidarity. ""It's almost impossible for a single mother, a low-income worker, a minimum-wage earner to take the day off,"" Sarah Sophie Flicker, a protest organiser in New York, told Al Jazeera. ""Everyone here stands in solidarity with women who can't strike."" As part of the protest, women were also urged to refrain from shopping. OPINION: Women of the world, unite! A few hundred people gathered on the lawn outside Los Angeles City Hall to rally for women's rights.- Hundreds of women dressed in red and holding signs with photos of their local lawmakers gathered at the Utah Capitol to remind legislators they are closely watching how they handle women's issues. In Denver, several hundred people marched silently around the state Capitol. Kelly Warren brought her daughters, ages 3 and 12. ""We wanted to represent every marginalised woman whose voice doesn't count as much as a man's,"" Warren, a sales associate in the male-dominated construction industry, told AFP. Trump took to Twitter to salute ""the critical role of women"" in the US and around the world. He tweeted that he has ""tremendous respect for women and the many roles they serve that are vital to the fabric of our society and our economy"". The White House said none of its female staff members skipped work in support of International Women's Day. Women make up more than 47 percent of the US workforce and are dominant among registered nurses, dental assistants, cashiers, accountants and pharmacists, according to the census. They make up at least a third of physicians and surgeons, and the same with lawyers and judges. Women also account for 55 percent of all college students. At the same time, American women earn 80 cents for every dollar a man makes. The median income for women was $40,742 in 2015, compared with $51,212 for men, according to census data. Source:-Al Jazeera and news agencies", -2080,2017/3/9,http://www.aljazeera.com/news/2017/03/suicide-bomb-blasts-hit-wedding-iraq-tikrit-170308201836685.html,Suicide bomb blasts hit wedding near Iraq's Tikrit,"Suicide bomb explosions target wedding ceremony in a village near the Iraqi city of Tikrit, officials say.","At least 26 people have been killed in suicide bomb explosions at a wedding party in a village near the Iraqi city of Tikrit, medical and security sources have told Al Jazeera. There was no immediate claim of responsibility for Wednesday's attack in Hajjaj village, located 20km north of Tikrit. Security forces cordoned off the area and imposed a wider curfew for fear of more attackers. A police source told Reuters that two blasts hit the wedding and two more targeted security forces at the scene shortly afterwards. There were ongoing clashes between security forces and fighters in the area, he said. Iraqi security forces retook Tikrit-from Islamic State of Iraq and the Levant - ISIL, also known as ISIS - in April 2015. In November, ISIL bomb attacks hit Tikrit, north of the capital, Baghdad, in an apparent diversionary assault as Iraqi forces drove back the armed group's fighters in their stronghold of Mosul. Source:-Al Jazeera and news agencies", -2081,2017/3/9,http://www.aljazeera.com/news/2017/03/women-strike-equality-international-women-day-170308090429989.html,Women strike for equality on International Women's Day,A quick look at how International Women's Day is being marked around the world. 'A Day Without Women' 'Gender equality still not a reality' in Australia Women in Africa face 'daunting' challenges Centre to protect Afghan women journalists Latin America takes on femicide Call to celebrate men stirs controversy in Canada,"From economic strikes to street protests, women worldwide are drawing attention to gender inequality on International Women's Day. Under the theme Be Bold For Change, organisers of the day are calling on individuals to take ""groundbreaking action"" to build a more gender-inclusive world. UN High Commissioner for Human Rights Zeid Raad al-Hussein-said the women's movement has brought about major change, but in many countries challenges remain. ""In too many countries, we are now seeing a backlash against women's rights, a backlash that hurts us all,"" al-Hussein said in a statement . This year, the day has taken on a political tone, with a major focus on labour. Here's a look at how the day is being marked around the world: Women's day strikes, or what is being called A Day Without Women, and other actions have been planned in more than 40 countries on Wednesday. Organisers have urged women to take a day off work or school to call attention to the economic bias faced by women.- WATCH: The effectiveness of general strikes They acknowledged many will not be able to participate in the strike for financial or practical reasons. ""Many women in our most vulnerable communities will not have the ability to join the strike, due to economic insecurity. We strike for them,"" organisers said and encouraged women who could not strike to wear something red in a show of solidarity. In addition to a number of marches and events taking place across Australia, the country's sex discrimination commissioner has issued a critical report highlighting gender inequality in the country. Kate Jenkins warned that Australia still has a long way to go to achieve gender parity. ""While there have been substantial gains in equality under the law, one of the key findings of these consultations is that we do not have equality of outcomes,"" Jenkins said. The report, which includes interviews with more than 1,000 women, found three key areas for improvement including, economic security, leadership positions and violence against women. While African women have made significant progress in recent years, they continue to face ""daunting"" challenges with high rates of sexual violence, maternal mortality and HIV infections, a report , released on the eve of International Women's Day, said. The joint report by the United Nations and the African Union found that in every country on the continent women are denied full enjoyment of their rights. INTERACTIVE: Women leaders around the world Among the signs of progress mentioned was that female participation in many African legislatures is higher than in the UK and US. Reporters Without Borders (RSF) has opened Afghanistan's first centre to protect female journalists on Wednesday. The centre's head, journalist Farida Nikzad, said its goal is to protect, defend and assist women in the field. ""We want to support women journalists, both in war zones and within the news organisations for which they work, to defend both their rights and their physical safety. To that end, we need the government and media owners to commit to do their part in what is a key battle for Afghan society,"" Nikzad said. Afghanistan is ranked 120th out of 180 countries in the organisation's 2016 World Press Freedom Index . Rallies under the banner Ni Una Menos (or Not One Less) have been planned across Latin America to demand respect for women's rights and a stronger stance against femicide in the region.- In Brazil, the main Rio de Janeiro airport will temporarily change its name to honour Maria da Penha, a prominent activist against domestic violence. OPINION: Not one woman less! Penha was shot and electrocuted by her husband in 1983. She has since been at the forefront of the fight for justice for domestic violence victims. A study last year found that more than 4,700 women were murdered in 2014, up 11.6 percent from a decade earlier. On the eve of International Women's Day, Sophie Gregoire Trudeau, the wife of the Canadian prime minister, Justin Trudeau, stirred controversy after suggesting men should be celebrated as well. Gregoire Trudeau posted an Instagram photo with her husband and encouraged women to mark International Women's Day by sharing a photo of their ""male ally"" to celebrate the ""boys and men"" in their lives. While some praised Gregoire Trudeau's post, others offered strong criticism, including Conservative MP Michelle Rempel. I've never had to have my hand held. #equalitymatters pic.twitter.com/z46NCZcZ4Z Responding to the debate, Gregoire Trudeau said, ""now, we are having a conversation"". Source:-Al Jazeera and news agencies", -2082,2017/3/9,http://www.aljazeera.com/programmes/insidestory/2017/03/save-millions-facing-famine-170308201703318.html,What can be done to save millions facing famine?,"A man-made humanitarian crisis, unprecedented in recent history and one that is entirely preventable.","Close to 20 million people in three African countries and Yemen are at risk of starvation. The UN secretary general says more than $4bn is needed within the next three weeks or many more will die. Antonio Guterres made an emergency visit to Somalia, where a national disaster has been declared because of drought. About half of the country's population faces severe food shortages. In South Sudan, famine has been declared in parts of the country. Up to a million people there will soon run out of food. And the UN says that 400,000 Nigerian children face malnutrition. Close to 80,000 of them might not survive the next few months. What can be done to save the lives of millions in this part of the world? And just who is supposed to act? Presenter: Jane Dutton Guests: Alex Awiti, director of East Africa Institute at Aga Khan University Chido Onumah, anti-corruption activist Challiss McDonough, senior regional communications officer - East Africa with the World Food Programme Source:-Al Jazeera News", -2083,2017/3/8,http://www.aljazeera.com/news/2017/03/200000-die-year-pesticide-poisoning-170308140641105.html,"UN: 200,000 die each year from pesticide poisoning",Report says pesticides are having 'catastrophic impacts' on human health and environment while failing to end hunger. Agroecology,"An average of about 200,000 people die from the toxic exposure of pesticides per year across the world, the United Nations says, calling for tougher global regulation of substances meant to control pests or weeds for plant cultivation. The UN report---published on January 24 and which is being presented to the UN human rights council on Wednesday - said although pesticide use has been correlated with a rise in food production, it has had ""catastrophic impacts"" on human health and the environment. ""Equally, increased food production has not succeeded in eliminating hunger worldwide. Reliance on hazardous pesticides is a short-term solution that undermines the rights to adequate food and health for present and future generations,"" the report said. It lists an array of serious illnesses and health issues with suspected links to pesticides, including cancer, Alzheimer's and Parkinson's disease, hormone disruption, birth defects, sterility, and neurological effects. ""In some countries, pesticide poisoning even exceeds fatalities from infectious diseases,"" it said. READ MORE: Study linking Roundup to serious disease fuels debate The report blamed ""systematic denial, fuelled by the pesticide and agro-industry"" for ""the magnitude of the damage inflicted by these chemicals"". In an email statement sent to Al Jazeera in response to questions about the UN report, the United Kingdom's Department of Environment, Food and Rural Affairs cited an unnamed government spokesperson as saying there is not enough proof to show that pesticides are harmful. ""The government makes decisions on pesticides based on science and we are committed to ensuring pesticides are available only when the scientific evidence shows they do not pose unacceptable risks to people and the environment,"" it said. According to the UN report, people can be exposed to dangerous levels of pesticides in a wide variety of ways, ranging from farmers who use it on their crops to babies drinking their mother's contaminated breast milk. ""Few people are untouched by pesticide exposure. They may be exposed through food, water, air, or direct contact with pesticides or residues,"" it said. The UN report also highlighted profound effects on the environment. ""Pesticides sprayed on crops frequently pollute the surrounding ecosystem and beyond, with unpredictable ecological consequences. Furthermore, reductions in pest populations upset the complex balance between predator and prey species in the food chain. ""Pesticides can also decrease biodiversity of soils and contribute to nitrogen fixation, which can lead to large declines in crop yields, posing problems for food security."" Jay Feldman, executive director of the Washington DC-based non-profit environmental organisation Beyond Pesticides, told Al Jazeera the $43bn organic food industry in the US is the best example of how the world does not need to rely on pesticides. ""There are non-toxic approaches that could meet food production goals, fight starvation, and not contaminate the environment,"" said Feldman. READ MORE: Circle of Poison He highlighted how developing countries are much more susceptible to harmful impacts of pesticides because of a lack of regulation. ""Developing countries lack any infrastructure to ensure those handling the chemicals are using them to avoid causing dangerous levels of exposure or contamination. ""We don't export nuclear technology to countries that we don't trust would use it properly ... so we should not be exporting hazardous materials or technologies to countries that we know do not have the proper system to ensure protection of public health and the environment."" He also explained why organic farming is much more cost-effective and productive for farmers in developing countries. ""Pesticides are a very expensive technology. When we are talking about subsistence agriculture, relying on pesticides becomes an economic burden for farmers largely due to growing weed and pest resistance that requires farmers to keep purchasing stronger pesticides. ""However, with organic practices, we rely on natural ecosystem services which cycle nutrients in the soil naturally, making costly synthetic fertilizers unnecessary. ""And if we want to feed the world, the attention to soil biology, organic matter in soil, and natural nutrient recycling, are the only sustainable and cost-effective approaches."" Paul Towers, a spokesman for Pesticide Action Network North America, an environmental group, told Al Jazeera about a growing movement towards ""agroecology"". ""Agroecology is the science behind sustainable agriculture, from the ground up. It encourages democratic, decentralised decision-making by farmers and incorporates practical, low-cost and ecology-based technologies for productive farming. ""Not only do agroecological farming methods strengthen ecological and economic resilience in the face of today's climate, water and energy crises, they offer a path forward for growing food to feed us all."" Source:-Al Jazeera", -2084,2017/3/8,http://www.aljazeera.com/news/2017/03/blast-hits-central-kabul-wazir-akbar-khan-area-170308044959128.html,"Blasts, gunfire hit Kabul military hospital",Dozens also wounded at Sardar Daud Khan hospital in central Kabul after disguised gunmen launch assault.,"Gunmen dressed in white lab coats stormed a hospital in the Afghan capital and battled security forces for hours, killing more than 30 people and wounding dozens. Defence ministry officials said the attack started at 9am with a suicide bombing at the front gate of the Sardar Daud Khan hospital in the Wazir Akbar Khan area, central Kabul, on Wednesday. It was the latest in a series of attacks against civilian and military targets in Afghanistan, and underlined the growing threat posed by anti-government fighters. The gunmen took positions on the upper floors of the hospital and engaged special forces sent to the scene. Dawlat Waziri, spokesman for the defence ministry, told Al Jazeera three attackers with automatic weapons and hand grenades entered the complex, the largest of its kind in the Afghan capital. ""Our security forces engaged but they were also careful to not cause any casualties. It was a difficult situation,"" Waziri said.- READ MORE: US military chief offers assurances to Afghan leaders Security forces blocked off the area around the hospital, near a busy traffic intersection. As fighting went on, a second explosion struck inside the hospital. Some patients climbed out of the building and could be seen sheltering on window ledges visible from outside the hospital, which treats military casualties from across Afghanistan, or jumping. Majid Mojib, in charge of the hospital's intensive care unit, broke a leg as he plunged from a third-floor window.---- ""I saw in horror that doctors, patients, everybody was screaming as they were chased by gunmen spraying bullets indiscriminately,"" Mojib told AFP news agency while receiving treatment in another city hospital.---- ""Many did not survive. It was a massacre."" The Taliban, which has staged similar raids in the past, denied responsibility for the attack. The Islamic State of Iraq and the Levant (ISIL)-claimed the attack in a statement carried by its Aamaq news agency. President Ashraf Ghani condemned-the attack, saying it ""trampled on all human values"". ""In all religions, a hospital is regarded as an immune site and attacking it is attacking the whole of Afghanistan,"" he said in impromptu remarks during a speech for International Women's Day in Kabul. The Wazir Akbar Khan area of central Kabul is heavily guarded and houses several government offices and foreign embassies. OPINION: Stop targeting humanitarian workers The attack comes a week after 16 people were killed in simultaneous Taliban suicide assaults on two security compounds in Kabul. The country is bracing for an intense fighting season in the spring as the government's repeated bids to launch peace negotiations with the Taliban have failed. Kabul last month endorsed US general John Nicholson's call for thousands of additional coalition troops in Afghanistan to fend off the group before the spring offensive. Extra troops were needed to end the stalemate in the war, Nicholson, the top US commander in Afghanistan, told the US Congress in what could be President Donald Trump's first major test of military strategy. Separately, the Pentagon this year said it would deploy some 300 US Marines this spring to Helmand province alone. The Marines will assist a NATO-led mission to train Afghan forces, in the latest sign that foreign forces are increasingly being drawn back into the worsening conflict. Source:-Al Jazeera News", -2085,2017/3/8,http://www.aljazeera.com/indepth/interactive/2017/03/mothers-children-170308131542562.html,Mothers and children first,Doctors and indigenous healers are fighting to decrease maternity deaths in Bolivia.,, -2086,2017/3/8,http://www.aljazeera.com/news/2017/03/lawmaker-abdellatif-merdas-shot-dead-casablanca-170308104104741.html,Lawmaker Abdellatif Merdas shot dead in Casablanca,Moroccan police say a suspect has been arrested after member of Constitutional Union party is gunned down near his home.,"Abdellatif Merdas, a-Moroccan member of parliament, has been shot dead in Casablanca, according to police. - The 53-year-old, a politician with the liberal Constitutional Union party,-was gunned down late on Tuesday near his home in the well-off southern district of Californie. His assassins fled the scene, but police said on Wednesday they had arrested a 27-year-old man suspected of links to the assault.- A raid on the suspect's home came up with two shotguns similar to the one used in the attack, police said. The assault is believed to be criminally motivated. Initial investigations suggest that the suspect had previously threatened Merdas with death due to alleged personal differences, police said. Merdas, who represented the Ben Ahmed district 60km south of the coastal city of Casablanca,-was in his official car when he was hit three times by shotgun fire, private news websites reported. Hit in the head, he succumbed to his wouds shortly afterwards. Local news websites showed photos of the scene and a car with broken windows, surrounded by police officers. They said one or more attackers fled in a foreign-registered vehicle. Source:-News agencies", -2087,2017/3/8,http://www.aljazeera.com/indepth/interactive/2017/03/horn-africa-mapping-months-hunger-170308121531771.html,Horn of Africa: Mapping six months of hunger,Starvation is stalking an estimated 20 million people with much of the crisis caused by conflict and poor governance.,, -2088,2017/3/8,http://www.aljazeera.com/news/2017/03/kenya-striking-doctors-defy-order-resume-work-170308155542825.html,Kenya's striking doctors defy order to resume work,Union officials say they will wait for the conclusion of court-supervised resolution of the three months-long dispute.,"Kenya's public sector doctors, who have been on strike for more than three months, have said they will defy a government order to resume work and will wait for the conclusion of court-supervised resolution of the dispute. The medical staff downed their tools in December demanding better pay and working conditions,-putting pressure on President Uhuru Kenyatta's government ahead an election in August. ""While all doctors have been ready to resume duty, doing so under threats, intimidation and show of disrespect is tantamount to career suicide,"" the doctor's union, KMPDU, said on Twitter on Wednesday. READ MORE: In Kenya, doctors' strike leaves a nation ailing KMPDU, which has about 5,000 members, wants authorities to implement a deal agreed in 2013 to give them a 150 to 180 percent pay rise. That agreement also called for a review of working conditions, job structures and criteria for promotions and address under-staffing in state hospitals. The lengthy stand off between the doctors and the government has seen some union officials serve short jail terms after being found guilty of contempt of court in relation to the strike. Months of negotiations between the two sides have not borne fruit, however, and on Tuesday the government said it had terminated those talks after accusing the union of inflexibility in negotiations and rejecting a 50 percent pay hike offer. Doctors were also ordered to resume work. A furious Kenyatta on Tuesday lambasted the doctors, accusing them of ""blackmail"". ""We will not succumb to threats and intimidation. Do these doctors think we are that stupid? We have offered you better salaries than those in private hospitals!"" he said at a joint press conference with Munya. A Kenyan court which declared the strike illegal appointed church leaders to mediate after several other mediators failed. However even they failed to make headway after the union on Tuesday rejected a 50 percent salary increase and improved risk allowance. The previous offer had been 40 percent. In a series of tweets, KMPDU on Wednesday said its members would only return to duty after signing an agreement with the government ""as was guided by the court of appeal under the mediation of religious leaders"". The court of appeal ordered the parties to appear in court on Monday to report on the progress of the talks. -- University lecturers also went on strike in January, a double blow to Kenyatta's government just five months before general elections. Source:-News agencies", -2089,2017/3/8,http://www.aljazeera.com/news/2017/03/sudan-omar-al-bashir-pardons-259-rebels-170308160530161.html,Sudan's Omar al-Bashir pardons 259 rebels,"Move comes after insurgents released 125 soldiers who fought in Darfur conflict that killed 300,000 people since 2003.","Sudanese President Omar al-Bashir on Wednesday pardoned 259 rebels captured in fighting with government forces, including dozens who had been sentenced to death.---- Bashir's order came three days after a prominent insurgent group freed dozens of prisoners, mostly soldiers, it had captured in fighting with government forces.---- ""The decision to pardon 259 rebels aims at preparing the environment for achieving lasting peace in the country,"" Bashir's office said in a statement.---- Those pardoned include 66 rebels who had been sentenced to death. Sudan: Blame traded over civilian deaths in Darfur-- Of the 259 rebels to be released now, dozens were captured in 2015 after fierce fighting in war-torn South Darfur between government forces and rebels. - - Although the presidency did not specify which group these rebels belonged to, government forces in 2015 fought pitched battles with the Justice and Equality Movement (JEM) in South Darfur. ----- Forty-four rebels also among those pardoned were captured in the city of Omdurman in 2008 after similar clashes between government forces and JEM fighters.---- ""The decision to pardon is a progressive step and would help in the ceasing of hostilities,"" Nur Ahmed al-Nur, editor-in-chief of Assayha newspaper, told AFP news agency.-- On Sunday, another prominent rebel group, the Sudan People's Liberation Movement-North (SPLM-N), freed at least 125 prisoners, mostly soldiers.---- The prisoners had been captured in Blue Nile and South Kordofan states, where the SPLM-N has been fighting government forces for years.--- Sudanese rebel group releases 127 prisoners The conflict in Darfur, a region the size of France, erupted in 2003 when ethnic minority rebels took up arms against Bashir's Arab-dominated government in Khartoum, accusing it of marginalising the region economically and politically. - - At least 300,000 people have been killed in Darfur and another 2.5 million displaced since the conflict erupted, the United Nations says.---- In 2011, similar rebellions against Bashir's regime also broke out in Blue Nile and South Kordofan states.--- Khartoum announced a unilateral ceasefire in June 2016 in all three conflict zones, which it extended by six months in January.---- Bashir, who has ruled Sudan for nearly three decades, is wanted by the International Criminal Court for alleged war crimes in Darfur. He steadfastly denies the charge. Source:-AFP news agency", -2090,2017/3/8,http://www.aljazeera.com/news/2017/03/china-urges-korea-avoid-head-collision-170308032810065.html,"China urges US, N Korea to avoid 'head-on collision'",China calls for suspension of North Korea's nuclear and missile activities in exchange for halt of S Korea-US war games. 'Suspension for suspension',"China has called on North Korea to suspend its nuclear and missile activities in exchange for the US and South Korea halting military war games, to avoid what it called a ""head-on collision"". ""To defuse the looming crisis on the [Korean] peninsula, China proposes that as a first step, the DPRK [Democratic People's Republic of Korea] may suspend its nuclear and missile activities in exchange for the halt of the large-scale US-ROK exercises,"" Foreign Minister Wang Yi said on Wednesday, using the acronyms for the two Koreas. He also said South Korea is making a mistake in deploying the US anti-missile defence system THAAD, which he said undermined China's security. READ MORE: Seoul says North Korea carried out missile tests ""The two sides are like two accelerating trains coming towards each other with neither side willing to give way,"" Wang said at a news conference on the sidelines of China's annual parliament session. ""The question is: Are the two sides really ready for a head-on collision? Our priority now is to flash the red light and apply the brakes on both trains."" Al Jazeera's Scott Heidler, reporting from Beijing, said the proposals Wang made ""are very difficult to implement"".- A cascade of events has led to a dramatic increase in tensions in northeast Asia. Pyongyang blasted at least four missiles across the ocean towards Japan on Monday, three of them splashing down into waters within Japan's Exclusive Economic Zone. Seoul and Washington have begun annual joint military exercises that always infuriate Pyongyang, and the US has said it has started deploying an anti-missile system directed at North Korea, but which Beijing has taken as a threat to its own defence interests. ""This 'suspension for suspension' can help us break out of the security dilemma and bring the parties back to the negotiating table,"" Wang said of his proposal. US Secretary of State Rex Tillerson is expected to meet Chinese President Xi Jinping in Beijing next week to discuss the two countries' relationship. In his news conference on Wednesday, Wang said that he hopes that China and the US ""can truly rise up over the old ideas, open up new horizons and build a new mature and robust relationship, so that we can put the minds of our two people and the whole world at ease"". - He said the relationship beween China and the US is on a ""positive track"". Meanwhile in Seoul, Se-Woong Koo, a security and political expert, told Al Jazeera that South Koreans themselves are ""divided"" about the deployment of the US missiles, with conservatives supporting it.- He said that South Korea could ""pay the price"" in terms of business and tourism with China, after deciding to deploy the US missiles. Source:-Al Jazeera and news agencies", -2091,2017/3/8,http://www.rte.ie/news/2017/0309/858299-rtc/,Man critically injured in Dublin hit-and-run,,"A man in his late 20s is in a critical-condition in hospital after he was struck by a van that failed to stop in the Artane area of Dublin. The man was struck by what-has been described as a-white Renault Megane-van-while he was jogging on Hazelwood Drive at around 9.45pm last night. He was attended to-at the scene by an off-duty fireman before being taken to Beaumont Hospital. The van, which is believed to be an older model - circa 2003 --was found burned-out a short time later at Beechlawn Grove, Coolock, close to Parnells GAA Club. Garda��-at Coolock are appealing for a man-who spoke to the off-duty fireman at the scene to come forward. They have also appealed to anyone with information, particularly anyone who may have seen a white Renault Megane van in the Coolock area before or after the collision, or in the Hazelwood and Beachlawn areas between 9pm and 10.30pm,-to contact Coolock Garda Station on 01-6664200, the Garda Confidential Line on 1800 666 111 or any garda station.", -2092,2017/3/8,http://www.rte.ie/news/2017/0309/858337-housing-ireland/,Charity says doubling property tax could ease housing crisis,,"A housing charity has said a doubling of the property tax could help tackle the housing crisis. CEO of the Peter McVerry Trust Pat Doyle said such a move could raise �10m, which he said could then be ""pumped back into bring in other empty and derelict sites"". He said while there is a good re-building programme in Ireland, new builds can take two to three years and ""we are sitting on empty properties right now"". Ireland's first Empty Homes Conference, organised by the Trust, gets under way today. The main focus of the event is to find solutions to get the almost 200,000 empty homes across the country back into the housing system.- Speaking on RT?'s Morning Ireland, Mr Doyle said excluding houses in dispute, those in probate, and those that are being used to fund nursing homes, ""there is probably still five units for every homeless person in the country."" He said there is an onus on owners to get these homes back into the system, given the housing crisis.- Mr Doyle said the Trust has proposed that, like schemes in the Netherlands and the UK, ""we do a grid mapping of each of the urban areas so we know exactly how many units are available. ""We approach the landlords, we talk-about schemes and grants"", he added. Meanwhile, the Minister of State for Housing has said a vacant home tax is not something being considered by the Government at the moment. Damien English said there is a range of new measures to help activate vacant properties, such as the home renovation scheme and in addition local authorities have also been given an extra �15 million to buy homes. Mr English said he believed these positive measures would be more productive in freeing up properties, adding that Minister for Housing Simon Coveney is prepared to look at all options, including a vacant home tax.- However, he said such a tax would be complicated in terms of legislation and would need a long lead in time.- Cairn Homes builds up higher 2016 profits and revenues", -2093,2017/3/9,http://www.rte.ie/news/2017/0309/858305-fire-clondalkin-investigation/,Investigation resumes into Dublin fire deaths,,"The investigation into the fire that-caused the deaths of a woman and three young children in Clondalkin in Dublin resumes this morning. Another woman remains-in a critical condition in hospital following the blaze in the early hours of yesterday morning. Garda�� and Dublin Fire Brigade began their investigation yesterday-and it is understood a garda technical expert will inspect the first floor apartment-this morning. That inspection will examine-whether-an electrical fault may have caused the fire. Sonas, the charity that provided the accommodation, has said there were fire alarms in the building and they were working. The blaze broke out in a building used to provide-supported accommodation for women who have suffered domestic violence. Anne Marie O'Brien, 27, who was seven months pregnant, died along with her two-year-old daughter Paris. Three-year-old Holly was also killed in the fire. Her four-year-old brother Jordan was taken to hospital but died yesterday evening. Their mother, Biddy O'Brien, who is a cousin of Anne Marie, remains in a critical condition in St James's Hospital. All four victims were originally from the Bray area. Sinn F��in TD for Wicklow John Brady said the community in Bray is grief stricken after yesterday's fatal fire.", -2094,2017/3/9,http://www.rte.ie/news/2017/0309/858297-australia/,Irishman and French woman rescued after yacht capsizes off Australia,,"An Irishman and a French woman have spoken of ""waves the size of buildings"" after being rescued from a terrifying ordeal when their yacht capsized in bad weather off Australia. Nick Dwyer, 55, and Barbara Heftman, 44, were sailing from New Zealand to Sydney as part of a circumnavigation of the globe when disaster struck. Treacherous seas broke their rudder then rolled their 12-metre boat, forcing them to activate an emergency beacon on Tuesday. A New South Wales police vessel responded, battling six-metre swells and gale force winds on a 13-hour voyage to reach the yacht and safely haul the pair on board. ""We encountered enormous seas, waves the size of buildings coming at you constantly, winds that you can't stand up in, seas breaking, whiteness everywhere,"" Mr Dwyer told reporters after abandoning ship and arriving in Sydney late Wednesday. Irish yachtsman rescued off Australian coast. Video courtesy of Australian Maritime Safety Authority. Read more: https://t.co/0oHdVA2TER pic.twitter.com/elAGbiGTAt ""?RT? News (@rtenews) March 9, 2017 ""We weren't sure whether we were going to be rolled again and each time a wave hit, we thought 'is the one that's going to take us?'"" It wasn't really until we got capsized that we felt we really couldn't survive this one without assistance. He added that it was the worst weather they had ever encountered on their decade-long global adventure, calling their rescuers ""absolute heroes"". Police Sergeant Paul Farquharson told the Australian Broadcasting Corporation the couple was overjoyed to see the rescue team. They'd been bobbing around on a 40-foot boat for the last four days and spent the last ten years at sea so to hop on board our boat was a bit of a luxury for them. Stricken yacht 400km-off the New South Wales coast", -2095,2017/3/9,http://www.rte.ie/news/2017/0309/858303-e-coli/,Private water supplies regularly poorer quality than public ones - EPA report,,"A special report by the Environmental Protection Agency has found that drinking water quality in private water supplies is consistently poorer than public water supplies. It also found that almost 40% of private water supplies were not monitored for E. coli contamination. However, 70 of the supplies that were tested were found to be contaminated by human or animal waste at least once during the reporting year. The EPA said that the lack of regular monitoring for E. coli is worrying as users may unwittingly be drinking water that is of poor quality which could expose them to serious illness. It said this is especially so for people who are vulnerable, such as children, older people, or those with low immunity or underlying medical conditions. One-fifth of the population in Ireland, mostly in rural areas, get their drinking water from the country's 2,700 private water supplies. It is provided by group water schemes, small supplies, or wells operated by the owners of buildings or businesses as part of a public or commercial activity. According to the EPA report the water supplied to 270 hotels, restaurants, or other premises serving food, as well as 99 national schools or childcare centres, and 23 nursing homes are not monitored for E. coli contamination. It also said that over 50,000 household wells in Ireland are contaminated with the E. coli bacteria arising from animal or human waste. The report pointed out that the HSE has reported that the number of cases of VTEC, which is a pathogenic form of E. coli, has more than doubled in Ireland since 2011. It said that Ireland has the highest incidence of VTEC in Europe and that patients infected with this strain of the E. coli the bacteria are four times more likely to have consumed water from household wells. Boil water notices were imposed on 94 private water supplies during 2015 affecting 5,400 people, which is more than are currently affected by boil water notices in public water supplies today. The boil water notices affected six counties. However, 85% of those affected lived in just three counties, Wicklow, Limerick, and Offaly. The other counties were Laois, Sligo, and Cork. The EPA said that further improvements are required to ensure that people on private water supplies have access to clean and wholesome drinking water. Senior Inspector Darragh Page said local authorities have extensive enforcement powers to ensure that action is taken where water quality issues are identified and they should exercise these powers to ensure that consumers are protected. Speaking on RT?'s Morning Ireland, Mr Page said:-""We know that almost 40% of those supplies were not monitored last year. We are also calling on local authorites to use their enforecement powers to regulate these supplies. ""To go out, carry out an audit on these supplies, identifying those that are quality deficient and requiring those water supply owners to improve those supplies.""- He said penalties can be imposed. ""Local authorities have the power to take a prosecution if they direct a water supplier to improve the water supply and they don't. The fine can be up to �1000 or three months in prison."" He said there are grants available of up to 75% of the cost for people to remediate their wells.", -2096,2017/3/9,http://www.rte.ie/news/2017/0309/858300-dail-grace-cabinet/,D��il to debate new draft of 'Grace' inquiry terms of reference,,"The D��il is to debate a draft order containing the terms of reference into the 'Grace' case-later today.- Following a decision by Minister for Disabilities Finian McGrath to withdraw the motion into the 'Grace' inquiry yesterday, the Cabinet agreed on a draft order containing the terms of reference last night. The order essentially creates two phases for the Commission of Investigation. The first phase will mainly centre on Grace, while the terms of reference also clarify that there will be a second phase.- That phase will take into account recommendations in the Dignam Report concerning the care and decision making in respect of the 46 other children that passed through the foster home in the southeast.- It will also assess the treatment of whistleblowers.- The draft order will be put before the D��il at 12.45pm today after which TDs will be given 40 minutes to debate.- It is-expected it will then move to the Seanad.- Read the Terms of Reference in full", -2097,2017/3/9,http://www.rte.ie/news/2017/0309/858298-cao-applications/,Fall in Third Level nursing and teaching CAO applications,,"There has-been a significant drop in the number of students applying to train as nurses and teachers, according to preliminary data published by the CAO. - The data indicates that prospective third level students may be influenced by the debate around working conditions and low pay in both professions. First preference applications for nursing have dropped by 10%.- There is-also a drop in numbers applying to train as teachers, though its less pronounced at 3%.- Applications to Engineering and Technology courses are also down significantly, by between 5% and 6% depending on the level. Bucking the trend are applications for Science degree courses which are up this year by 4%.- Overall, the CAO has received 76,000 applications, for places on third level courses next September, which is on a par with last year.- The figures are based on initial applications made to the CAO.- The data is provisional as many students may change their preferences later in the year.", -2098,2017/3/9,http://www.rte.ie/news/2017/0309/858321-us-politics/,Hawaii in challenge over new Trump travel ban,,"Hawaii has become the first US state to file suit against President Donald Trump's amended travel order banning entry of people from six mainly Muslim countries and suspending refugee resettlement. The state's attorney general argued late last night that while the new order features changes to address complaints raised by courts that blocked the first travel ban, the new order is pretty much the same as the first one. Hawaii is seeking a nationwide restraining order blocking implementation of the order Mr Trump signed on Monday. The new order suspends refugee admissions for 120 days and halts the granting of new visas for travellers from Syria, Iran, Libya, Somalia, Yemen and Sudan. It explicitly exempts Iraqis, who were on the first list, and legal permanent residents and valid visa holders. ""Nothing of substance has changed: There is the same blanket ban on entry from Muslim-majority countries (minus one),"" state attorney general Doug Chin said in a statement. ""The courts did not tolerate the Administration's last attempt to hoodwink the judiciary, and they should not countenance this one,"" Mr Chin wrote. Mr Trump's first order sparked a legal, political and logistical furore. There was chaos at major airports and mass protests while several district courts moved to block its implementation and politicians expressed opposition. The troubled rollout also dominated the first weeks of the new administration, leaving many with the impression that it was badly planned and badly implemented. Polls show US public opinion is deeply divided on the issue. Most indicate a slight majority of voters opposed, with strong support among Mr Trump's political base. The Republican president criticised a court order suspending the ban as ""a very bad decision, very bad for the safety and security of our country. The rollout was perfect."" But he has now stepped away from a promise to challenge the matter in the courts. The second order repeals the first, spelling the end of any pending legal proceedings. Whatever the legal outcome, Mr Trump's new ban is likely to polarise opinion further and be immensely popular with his core supporters.", -2099,2017/3/9,http://www.rte.ie/news/2017/0309/858307-eu-summit/,Kenny in Brussels for final pre-Brexit summit,,"Taoiseach Enda Kenny is travelling to Brussels for what will be the last summit of EU leaders before Britain formally triggers the mechanism for leaving the European Union. British Prime Minister Theresa May will join the 27 other leaders today. However, she will once again be excluded from tomorrow's-meeting, which will plan for celebrations in Rome at the end of the-month marking the 60th anniversary of the Treaty of Rome, which formally established what became the European Union. It had been expected that Mrs May would have triggered Article 50 this week, but her struggles with the House of Lords over a range of issues mean her EU counterparts will have to wait. This two-day summit will focus on a range of issues. The EU wants to rekindle regional trade agreements now that President Donald Trump has taken the US on a more protectionist course.- There are also growing concerns that tensions are rising in the Western Balkans where a bitter civil war followed the breakup of Yugoslavia 20 years ago.- Those countries have been at peace and in line for EU membership, but that process has stalled and there are fears that Russia is beginning to exert what some would see as a malign influence in the region. European Council President Donald Tusk had been expected to have his two-and-a-half year term formally renewed today. But in a somewhat bizarre twist his own country, Poland, wants to frustrate his reappointment. Polish Prime Minister Beate Szydło has accused Mr Tusk of criticising policies back home. However, most observers see this as rooted in the toxic rivalry which has escalated since the right wing Law and Justice Party came to office in October 2015. Poland cannot block Mr Tusk because he can call on the support of the other 27 governments, including Ireland, but Warsaw's antagonism could delay the process.", -2100,2017/3/9,http://www.rte.ie/news/2017/0309/858311-irish-american-congress-group/,Irish-American politicians call on Trump to appoint NI special envoy,,"The co-chair of the Irish-American grouping in the US Congress has called on President Donald Trump to appoint a new special envoy to Northern Ireland. Massachusetts congressman Richard Neal said that this was a ""critically important period of US-Ireland relations"" and that he was urging President Trump to appoint an envoy. Since 1995, the past three US Presidents have named several individuals as special envoy to play an ""indispensable role in the negotiation and implementation of several peace accords"". Mr Neal said next week's visit by Taoiseach Enda Kenny to Washington would be an appropriate time for the new President to name a new envoy. Mr Neal is the co-chair of the Congressional Friends of Ireland in the US. It is a bipartisan grouping of senators and congressmen and women who support Irish affairs.", -2101,2017/3/9,http://www.rte.ie/news/2017/0309/858331-news-in-brief/,News in Brief,,"Portlaoise GPs will not support medical assessment unit GPs in Portlaoise have said they will not support a new medical assessment unit at the Midland Regional Hospital if the emergency department there is closed down. Doctors in Laois refused to meet senior HSE management last night after commitments were made on staffing and resources. However, the issued a statement later saying they will meet Minister for Health Simon Harris and tell him that without a fully functioning ED there will be no acute paediatric or maternity services. Post office plan will adversely affect rural Ireland - union The General Secretary of the Irish Postmasters' Union has said the commercial mandate of An Post should not dictate what rural Ireland looks like. Speaking on RTE's Morning Ireland, Ned O'Hara said he is curious as to how a plan, commissioned to examine the difficulties in An Post, somehow seems to be re-designing the face of rural Ireland. He said the post office network was owned by the people of Ireland and is an asset and the danger of losing the Department of Social Protection contract-was-immense and needed to be replaced. Mr O'Hara said the IPU wants to see a -comprehensive plan for post offices, which would include negotiated and voluntary closures, for the next five years. PM says Malaysia will not cut ties with North Korea Malaysia's Prime Minister Najib Razak said that ties with North Korea will not be cut, after tensions over an investigation into the murder of the estranged half-brother of the North's leader in Kuala Lumpur led to tit-for-tat travel bans. - - - - - - ""Diplomatic relations between Malaysia and North Korea will not be severed, as we need to continue communicating with them to find a solution,"" Mr Najib said in a statement on his blog. - - - - - - He-said Malaysia will not relent from a firm approach towards North Korea, while adding that all Malaysians still in North Korea were safe. Two Malaysian UN-employees were allowed to leave North Korea today, while nine others are stranded at the embassy in Pyongyang. - Merkel urges improvement on German-Turkey ties German Chancellor Angela Merkel said that Germany and Turkey had many ties such as NATO membership and their joint fight against Islamic terrorism but differences had come to the fore recently and everything should be done to resolve that. - - - - - - ""There are on the one hand many common European-Turkish interests and on the other hand there are profound differences between the European Union and Turkey and between Germany and Turkey - and we're feeling that again these days,"" Ms Merkel told the Bundestag lower house of parliament. - - - - - - ""From our point of view it's worth making every endeavour to advocate for German-Turkish relations but on the basis of our values and our expectations and with clarity,"" she said.", -2102,2017/3/9,http://www.rte.ie/news/2017/0308/858215-waiting-lists-figures/,"Hospital waiting lists increased by 11,460 last month",,"Hospital waiting lists have increased by over 11,460 to 614,620 according to the latest figures from the National Treatment Purchase Fund. These are the figures to the end of February and compare with a total of 603,152 patients at the end of January. Waiting lists in February were up for inpatient, day case treatment, gastrointestinal checks, outpatient appointments and in other areas. Today's figures include details of two waiting lists, which were previously unpublished, until RT? Investigates recently revealed their existence. Both of these lists are up slightly. These two lists mostly relate to people scheduled to have their treatment within six weeks and people with indicative dates, or awaiting an annual check. A breakdown of the total 614,620 patients waiting nationally shows there are now: 454,487 people waiting to be seen by a consultant at an outpatient clinic for the first time, up from 445,701 in January. 83,803 people waiting for inpatient, or day case treatment in hospital, up from 82,005 in January. 38,972 have indicative dates, which include planned annual checks, up on the January figure of 38,817. 19,640 people are expected to have their treatment within six weeks, up on the January figure of 19,188. 17,718 waiting for a gastrointestinal endoscopy, up from 17,441 in January. Dr Emmet Kerins, President of the National Association of GPs, described the size of waiting lists as a scandal. He said that lists would continue to rise and that there had been a lot of political rhetoric but not much had changed. Dr Kerins said it was a damning indictment of the Government and the civil service that allowed the situation to continue. Minister for Health Simon Harris has said that the aim is to have no patient waiting more than 15 months by the end of October.", -2103,2017/3/9,http://www.rte.ie/news/2017/0308/858245-fine-gael-pac/,Fine Gael votes against PAC's NAMA report over Noonan line,,"Fine Gael members of the Public Accounts Committee have voted against its final report on the sale by NAMA of its Northern Irish loanbook. It is the first time since the Public Accounts Committee was established that a vote has taken place on a committee report rather than it being unanimously agreed. It is understood several votes took place on aspects of the final report. The loanbook, known as Project Eagle,-was sold to US investment fund Cerberus for ?1.2bn in 2014. The Comptroller and Auditor General later-found the sale incurred a potential loss to the taxpayer of ?190m. The Public Accounts Committee began hearings into the sale last year. Fine Gael had objected to a finding that it was ""procedurally inappropriate""-for Minister for Finance Michael Noonan to meet the ultimately successful bidder Cerberus before the closing date for bids. Fine Gael members wanted this changed to ""not advisable""-prompting a vote which they lost by eight votes to five. The report is due to be published next week. A spokesman for Mr Noonan said ""as the report of the PAC is not yet published it would be inappropriate to comment at this time on reports of its findings or content.""", -2104,2017/3/8,http://www.rte.ie/news/2017/0308/858071-tuam-mother-and-baby-home-survivor/,Tuam blows open locked doors of hidden Ireland - President Higgins,,"President Michael D Higgins has described the ""horrifying"" revelations of mass graves at the Tuam mother and baby-home as another necessary step in ""blowing open the locked doors of a hidden Ireland"". Speaking at ?ras an Uachtar��in at a reception to mark International Women's Day, President Higgins welcomed the setting up of a commission of inquiry that would ""out the truth on record"". He said there ""are dark shadows that hang over our meeting, shadows that require us all to summon up yet again a light that might dispel the darkness to which so many women and their children were condemned, and the questions left unanswered as we moved on"". President Higgins said the work of Catherine Corless was ""another necessary step in blowing open the locked doors of a hidden Ireland""? He said we are challenged to consider how the reprehensible attitudes that were held towards so-called ""unmarried women"" and so-called ""illegitimate babies"" came to be held. Revelations of Tuam mass graves blows open 'the locked doors of a hidden Ireland' - President Michael D Higgins https://t.co/DrAAaaP89x pic.twitter.com/1ApQiSKiHt ""?RT? News (@rtenews) March 8, 2017 The Catholic bishops meeting in Maynooth today reiterated the church's apology of three years ago for the hurt caused by its part in the system which they said also involved adoptions. They also urged parishes to ensure that the burial sites of former residents are appropriately marked. Meanwhile, a-man who was born in the Tuam mother and baby home has said all such homes should be investigated. Significant quantities of human remains were found at the site during recent excavations by the Commission of Investigation into Mother and Baby Homes. Speaking on RT?'s Today with Sean O'Rourke, PJ Haverty said he wants apologies from the State, the church and the nuns. He said the nuns ""were supposed to carry out good deeds on this earth and to look after the weak and the vulnerable which they didn't do"". He said he contacted the Taoiseach's offices in Castlebar and in Dublin last year to explain to him about what happened to him and his mother at the home. He said he wanted to meet Enda Kenny on the grounds of the Tuam home, but said the Taoiseach neither contacted him nor acknowledged his phone calls on the matter. Mr Haverty said he was born in the home and lived there with his mother for a year before she was told to leave because he said ""they didn't want this bonding between mother and baby"". He said she knocked on the door for the next five-and-a-half years asking to see her son, but was denied access. He said his mother went through torture and he went through torture trying to find her, to get information. He said he was locked in the building for six-and-a-half years not knowing that your mother was ""outside knocking on the door"". He said he experienced ""nastiness"" and had dirty remarks made to him as he grew up and he had to live with that. He said the babies'-remains should be anointed and interred in the cemetery in Tuam. Meanwhile, Galway County Council has said there are no records to suggest human remains were discovered during the construction of a housing estate on the site of the former mother and baby-home in Tuam.", -2105,2017/3/8,http://www.rte.ie/news/2017/0308/858160-eighth-amendment/,Zappone to support 'reasoned amendment' to abortion bill,,"A spokesperson for Minister for Children Katherine Zappone said-the minister will support the Government's ""reasoned amendment""-on The Protection of Life During Pregnancy (Amendment) Bill 2017. The AAA-People Before Profit's Private Members'-Bill proposes to amend Section 22 of Protection of Life During Pregnancy Act 2013.-Under Section 22, it is an offence to intentionally destroy unborn human life. A person who is guilty of this is liable to a fine or imprisonment not exceeding 14 years, or both. The AAA-PBP bill substitutes the 14-year sentence with a fine of not more than �1. Ms Zappone sought and received advice from the Attorney General on the issue. The advice was that the bill, if passed, would be subject to successful challenge on the basis of unconstitutionality. The minister's spokesperson said Ms Zappone supports the ""reasoned amendment"" by the Government. However, Ms-Zappone ""is not convinced by arguments that an abusive partner who causes a miscarriage intentionally would not - under the proposed bill - be liable to a higher sanction, as non-fatal offences such as assault would still apply"". Spokesperson for Minister Katherine Zappone says she will support the govt -amendment to aaa-pbp bill after legal advice from AG @rtenews ""?Martina Fitzgerald (@MartinaFitzg) March 8, 2017 The bill was debated in the D��il last night where-Minister for Health Simon Harris said-he could not-support the bill and the Government would be tabling ""a reasoned amendment"" due to the fact that the Citizens' Assembly is currently carrying out its work in this area. It comes as thousands of people took-part in marches through Dublin city centre over the Eighth Amendment. Thousands march to the D��il calling for a referendum on the Eighth Amendment pic.twitter.com/A0jpxhdiiI ""?RT? News (@rtenews) March 8, 2017 The Coalition to Repeal the Eighth Amendment held a-March4Repeal to demand-the Government names the date for a referendum on repealing the Eighth Amendment. Crowds gather in Dublin city centre as #Strike4Repeal demonstrators call for the repeal of the 8th amendment pic.twitter.com/UA9TNjB9S7 ""?RT? News (@rtenews) March 8, 2017 Elsewhere, the Strike4Repeal campaign encouraged women in Ireland to withdraw their labour on International Women's Day and-called-for an end to the 14-year-prison sentence for women who procure abortions. Meanwhile, the Pro Life Campaign held an awareness event outside the Central Bank. Pro Life Campaign supporter Mary Kenny said: ""There are many women who are very thankful that the Eighth Amendment was there and say that they owe the life of their child to this life-saving provision.""", -2106,2017/3/8,http://www.rte.ie/news/2017/0308/858006-fires-dublin/,"Pregnant woman, three young children die in Dublin fire",,"A pregnant woman, her two-year-old daughter and two other young children have died after a fire in west Dublin. 27-year-old Annmarie O'Brien and her two-year-old daughter Paris-were pronounced dead at-Tallaght Hospital shortly after the fire in an apartment in Clondalkin-in the early hours of this-morning. Three-year old Holly was also-pronounced dead at Tallaght Hospital. Her brother, four-year-old Jordan, was pronounced dead at Our Lady's Hospital, Crumlin-late this afternoon.- Holly and Jordan's-mother, Biddy O'Brien, is in a critical condition at-St James's Hospital. The cause of the fire has not been confirmed but it is believed it was accidental, possibly due to an electrical fault. The apartment building is supported housing for women who have experienced domestic violence. Emergency services attended the scene of the fire-at Cluainin Cronan, Clondalkin at about 2.30am. Five people were in the first-floor apartment at the time of the fire. There are three other apartments in the building and residents were removed for their safety. Two were brought to hospital as a precaution to be assessed for the effects of smoke inhalation. President Michael D Higgins has expressed his sympathies to those-affected. President Higgins expresses his sympathies to those affected by the fire tragedy in Clondalkin https://t.co/0ViIBtJuFZ pic.twitter.com/qUpJ7VZU1I ""?RT? News (@rtenews) March 8, 2017 Speaking at ?ras an Uachtar��in at a reception for International Women's Day, President Higgins said:-""I want to express my sympathy to all of those affected by the tragedy in Clondalkin. The women involved would have been represented here today. All of our hearts must go out to these women and children. Garda Inspector Ken McLaughlin confirms apartment where three people died in a fire overnight in Dublin was being used as a women's refuge pic.twitter.com/rsMA5SlD22 ""?RT? News (@rtenews) March 8, 2017 Garda�� are examining the scene of the fire. A spokesman for Dublin Fire Brigade said a number of emergency calls were made about the blaze, with the first alert coming in at 2.33am. It is understood the first crews were on the scene within five minutes. ""We got numerous calls in about it which would indicate that the fire was noticeable. The fire alarm in the apartment had also gone off,"" a spokesman said. Domestic violence charity Sonas, which runs the supported housing in the complex, has said it is devastated by the fire. Sonas CEO Fiona Ryan said: ""Our sympathies and condolences are with the relatives and friends of the deceased and all those impacted by this awful tragedy."" She added: ""We are currently supporting other families in the apartment complex including those unable to return to their homes because of fire damage for whom we are sourcing alternative accommodation. ""We would ask that the privacy of all families residing in this complex be respected at this time of loss."" Speaking on RT?'s Drivetime, Ms Ryan said: ""Right now, we are focusing on putting our own emotions aside and we are focusing on supporting the other families in this complex, around their emotional needs, but also surrounding their practical needs. ""We have to provide alternative accommodation for three other families at relatively short notice and we were able to do that through a combination of luck and good fortune.""- Separately, four people were injured and several others were rescued following a fire at an apartment in Dominick Street in Dublin. Three of the four were treated for smoke inhalation. The fire broke out around 3am. Four units of Dublin Fire Brigade attended the scene of the fire, which was later-brought under control.", -2107,2017/3/8,http://www.rte.ie/news/2017/0308/858259-trump-appeal-immigration/,Judge allows Hawaii to challenge Trump's new travel ban,,"The state of Hawaii can sue over US President Donald Trump's new executive order temporarily banning the entry of refugees and travellers from six Muslim-majority countries, a federal judge has ruled. District Court Judge Derrick Watson in Hawaii said the state could revise its initial lawsuit, which had challenged Mr Trump's original ban signed in January. The state is claiming the revised ban signed by the president on Monday violates the US-Constitution. It is the first legal challenge to the revised order. The state of Hawaii will ask the court to put an emergency halt to Mr Trump's new order, according to a court schedule signed by the judge. A hearing is set for 15 March, a day before the new ban is to go into effect. The government has said the president has wide authority to implement immigration policy and that the travel rules are necessary to protect against terrorist attacks. Some legal experts have said court challenges will be more difficult now because changes to the order give exemptions to more people. The revised travel order changed and replaced an original, more sweeping ban issued on 27 January-that caused chaos and protests at airports and was challenged in more than two dozen lawsuits around the country. A federal judge in Seattle put the first order on hold, in a decision upheld by an appeals court in San Francisco. The new order is much more narrowly tailored. It keeps a 90-day ban on travel to the United States by citizens of Iran, Libya, Syria, Somalia, Sudan and Yemen, but excludes Iraq and applies the restriction only to new visa applicants. It also removed an indefinite ban on all refugees from Syria. The order no longer covers legal residents or existing visa holders, and makes waivers possible for some business, diplomatic and other travellers. Immigration advocates have said the new ban, like the original one, discriminates against Muslims. But the first hurdle in a lawsuit is proving ""standing"" to sue, which means finding someone who has been harmed by the policy. With so many exemptions, legal experts have said it might be hard to find individuals that a court would rule have a right to sue. State claims ban will hit it 'hard' - - - - - - Hawaii claims its state universities would be harmed by the order because they would have trouble recruiting students and faculty. It also says the island state's economy would be hit by decline in tourism. The court papers cite reports that travel to the United States ""took a nosedive"" after Mr Trump's actions. The state was joined by a new plaintiff named Ismail Elshikh, an American citizen from Egypt who is an Imam at the Muslim Association of Hawaii whose mother-in-law lives in Syria, according to the lawsuit. ""This second Executive Order is infected with the same legal problems as the first order,"" the state said in court papers. The President's order ""is subjecting a portion of Hawaii's population, including Dr-Elshikh, his family, and members of his Mosque, to discrimination and second-class treatment,"" Hawaii said. The lawsuit says that Dr Elshikh fears his mother-in-law will not be able to enter the country under the new order. ""The family is devastated,"" the filing said. One of the groups eligible for waivers under the new ban are those seeking to visit or live with a close relative and who would face hardship if denied entry. Adam Lauridsen, a San Francisco attorney representing students challenging Mr Trump's first order, said the waiver provisions in the new ban are similar to case-by-case exemptions allowed in the first ban. Earlier legal challenges were allowed to move forward despite those waivers, he said. In support of its actions, the Mr Trump administration has cited a section of law that says the president can suspend entry to the United States by ""any class"" of foreigners if he finds it would be ""detrimental to the interests"" of the country.", -2108,2017/3/9,http://www.rte.ie/news/2017/0308/858204-tuam-site-tests/,Tests sought on site of Bon Secours-run hospital in Tuam,,"There have been calls for tests to be carried out at a former burial site in Tuam, where the Bon Secours sisters ran a hospital for many years. It comes as the Health Service Executive secured approval for extensive works at the old Grove hospital in the centre of the town. A number of people have claimed their children or siblings were buried on the site from the 1950s right up until the late 1970s. Galway County Council has stipulated that an archaeologist must monitor excavation work on the site. The council says all ground works must be observed, in order to preserve any remains which may be buried there. The decision follows submissions relating to a planning application by the HSE, one of which claims there is a children's burial ground on land beside the planned development. The area in question is at a different location to the former mother and baby home in the town. Several relatives are now seeking preservation orders to be placed on the site in question. Noreen Meehan, who made a submission to the county council during the planning process, has called for a thorough investigation at the site. She says her mother gave birth to a boy in the hospital in the late 1950s. His remains were taken away by nuns and buried on grounds behind the hospital, she said. Mrs Meehan wants a detailed analysis of the area to be carried out. Another woman, who gave birth to a girl at the hospital in 1977, spoke of how she felt her child had been ""stolen away from her"" in the hours after her death. The infant's mother was told she had been laid to rest close to a plot where a number of Bon Secours sisters had been buried. However, when she asked to see the location before she was discharged from hospital, the woman says there was no sign of the ground being disturbed. Separately, a local man, whose sister died soon after birth in the mid-1960s, has contested claims by the Bon Secours sisters that no infants were buried behind the hospital. He says that his parents were adamant that their child was buried there. In a statement to RT? News this evening, a spokesperson for the Bon Secours order said the remains of infants who were stillborn, died during childbirth or shortly after birth in the hospital were returned to their families. However, the order says it cannot categorically state this happened in all cases. Maternity services ceased at the hospital in the mid-1980s. A total of 14 nuns were buried on the grounds over the years. When the order left the property in 2001, these remains were exhumed and re-interred in Knock, Co Mayo. The HSE has been given planning permission to carry out an extensive redevelopment at the site of the Grove hospital in the town. The hospital was acquired by the Bon Secours order in 1944 and provided general medical and maternity services. It was vacated by the order in 2001 when it was purchased by the HSE. Approval has been given for the partial demolition, refurbishment and re-modelling of the structure. The application was granted subject to a number of conditions. In the event that anything of significance is found during the course of the construction process, the archaeologist will be permitted to order the suspension of building work. The HSE is planning to house mental health and early intervention services in the refurbished property.", -2109,2017/3/8,http://www.rte.ie/news/2017/0308/858092-grace-inquiry-terms-of-reference/,D��il to debate revised terms of 'Grace' inquiry,,"The Cabinet has approved a draft order which includes the revised terms of reference setting out the work of the commission of investigation into the 'Grace' case. It will be brought before the D��il tomorrow, when it is-expected there will be short debate. The commission is holding an investigation into a foster care home in the southeast.- The investigation-will be carried out in two phases. The first phase will mainly centre around 'Grace'. At the-end of phase one, a report will be brought to Government specifying further investigations to be carried out. The-phase two investigations will centre around the care and decision making in respect of the other 46 individuals that passed through the home and the treatment of the whistleblowers. Earlier, the Minister of State with responsibility for Disabilities said he would circulate revised terms of reference in the inquiry after-criticism that the terms of reference outlined yesterday were too narrow. Finian McGrath said no one would be excluded from the investigation. Initially, the inquiry was to focus on what happened to a young woman with intellectual disabilities, known as 'Grace', who was left in a-foster home in the southeast for almost 20 years-despite a succession of sexual abuse allegations. Families of other service users of the foster home expressed concerns that their cases would not be examined promptly in the inquiry. On 'Grace' inquiry, McGrath says: 'I will include everybody and let their voices be heard. I don't do exclusion. pic.twitter.com/L7Gam73SSF ""?RT? News (@rtenews) March 8, 2017 During Leaders'-Questions, Taoiseach Enda Kenny said Mr McGrath would come back to the House with amended terms of reference tomorrow, adding that there was no reason to delay the work of the commission. He was responding to Fianna F��il leader Miche��l Martin, who said three issues needed to be addressed in the terms of reference: the inclusion of others in the home; the treatment of whistleblowers; and the timeline. Mr Martin said the first whistleblower went back to 1992 and the timeframe suggested was not acceptable. He also said it was ""stretching credulity""-that only one person was abused. The Taoiseach said that Minister McGrath wanted to get the terms right and wanted to make it clear there is a phase one and phase two to the inquiry. It has also emerged that a young woman with intellectual disabilities continued to visit the 'Grace' foster home in the southeast up until 2015. Minister for Communications Denis Naughten said he is confident the new terms of reference will reflect many of the opinions in the D��il.- Speaking on RT?'s News at One, Mr-Naughten said there was no one more up to speed on the-issue than Mr McGrath, who has pressed for the actions that have taken place to date.- He said people need to be held accountable what happened to 'Grace', which Mr Naughten-said was ""absolutely disgusting"". The head of children's charity Barnardos had-earlier described the terms of reference outlined yesterday as ""inexcusable and appalling and inexplicable"". Barnardos CEO Fergus Finlay said not all of the stories have been heard and there are other families ""of great courage"" who have fought for their children for several years and deserve to have an investigation into their cases as well. Speaking on RT?'s Morning Ireland, Mr Finlay said they deserve justice, regardless of the cost. ""These are Irish citizens we are talking about. They're not nameless, faceless people. They've been damaged on the State's watch. ""If it does cost money to find out what happened and why it happened and whether or not it could have been prevented - we have to spend that money. We would do it for any other Irish citizen. ""Why, when it comes to the most defenceless Irish citizens, do we say it's all a matter of money?"", he asked. During statements in the D��il on the inquiry this morning,-Fianna F��il TD John McGuinness pleaded with Minister McGrath to amend the terms of reference on the 'Grace'-inquiry. Mr McGuinness said accepting the terms of reference as they were, would heap further abuse on families. Fine Gael TD John Deasy said he and Mr McGuinness discovered the first casualty was always the truth when dealing with the HSE on the issue. Labour TD Jan O'Sullivan has also called for the terms of reference to be widened, saying-a mechanism needed to be found to ensure the terms were as comprehensive as they needed to be. Sinn F��in TD Imelda Munster said the commission of investigation had to deliver accountability, which she said has been missing all along.-She said it was not a systems failure but the failure of individuals. Ms Munster asked who was responsible at the top of HSE management and why no one was ever charged. ""It will not be worth the paper it's written on if you don't go hell bent on stamping out the culture of unaccountability which is rife in HSE top management"", she said. Independents4Change TD Catherine Connolly said it was difficult to stand in the D��il on International Women's Day to talk on such a topic. While she acknowledged the need for an inquiry, she said she could not agree to the motion on the commission of investigation into the 'Grace case'. Green Party leader Eamon Ryan, who has a child with disabilities, said his family's experience was not a positive one regarding the State's psychological services.", -2110,2017/3/8,http://www.rte.ie/news/2017/0308/858265-fatal-louth-garda/,Man killed in Co Louth road crash,,"A man has died in a road crash in Co Louth. The single-vehicle crash occurred at around 7.30pm at Roadhall roundabout, North Rd, Drogheda. The 76-year-old man, who was travelling alone, was taken to Our Lady of Lourdes Hospital where he was later pronounced dead. Garda�� have appealed for witnesses to contact Drogheda Garda Station on 041 98 74 200, the Garda Confidential Line on 1800 666 111 or any Garda station.", -2111,2017/3/9,http://abcnews.go.com/Politics/spicer-trump-talking-general-surveillance-wiretapping-tweets/story?id=46101282,Spicer says Trump was talking about general surveillance in his wiretapping tweets,,"White House press secretary Sean Spicer said that President Donald Trump was not talking literally or specifically when he accused President Barack Obama of ""wiretapping"" his campaign. The controversy comes from Trump's unsubstantiated claims about being under surveillance by the Obama administration, which the president posted in a series of tweets more than a week ago. ""If you look at the president's tweet, he said wiretapping in quotes. There's been substantial discussion in several reports,"" Spicer said, referencing ""surveillance that occurred."" ""The president was very clear in his tweet, it was wiretapping. That spans a host of surveillance options,"" he said. ""The House and the Senate Intelligence Committees will now look into that and provide a report back. I think there's been numerous reports from a variety of outlets over the last couple months that seem to indicate that there has been different types of surveillance that occurred during the 2016 election."" The questions about what Trump did or didn't mean stem from a series of five tweets Trump sent on the morning of Saturday, March 4. In the first of the group, Trump wrote ""Terrible! Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory. Nothing found. This is McCarthyism!"" The third tweet also included the phrase ""wire tapping"" in quotes, and the last two did not use quotes when he accused Obama of ""tapping my phones"" and ""tapp [sic] my phones."" Spicer was then asked if President Trump intends to be taken seriously at all times and if he wants his claims to be taking literally. ""If he's not joking, of course. Every time he speaks authoritatively, he's speaking as the president of the United States,"" Spicer said.", -2112,2017/3/9,http://abcnews.go.com/Politics/trump-counselor-kellyanne-conway-evidence-trump-wiretapping-claim/story?id=46090208,Kellyanne Conway: 'I don't have any evidence' of latest speculations surrounding Trump wiretapping claim,,"Kellyanne Conway, counselor to the president, said this morning that she doesn't have ""any evidence"" supporting her latest speculation about President Trump's explosive wiretapping claim against his predecessor but added that she's glad the House Intelligence Committee is investigating the allegation. ""The answer is I don't have any evidence, and I'm very happy that the House Intelligence Committee are investigating,"" Conway said today on ""Good Morning America."" Trump said in a series of unsubstantiated tweets earlier this month that President Obama ordered phones in Trump Tower in New York tapped last fall. The White House has so far failed to provide any evidence to back up the charge. The leading members of the House Intelligence Committee have requested that the Justice Department respond today with any evidence of Trump's claims. Conway said that previous comments she made linking WikiLeaks' release of nearly 8,000 documents that purportedly reveal secrets about the CIA's tools for breaking into targeted computers, cellphones and smart TVs to Trump's claims were about ""surveillance generally""?and not meant to be taken as specific proof that his allegation was true. She also touched on other issues, including the GOP replacement for the Affordable Care Act ""?which has drawn criticism from Republicans and Democrats alike. She framed the debate around the bill as a start to fixing the ACA and said the Democratic Party has come up with ""no ideas."" ""It's actually in a downward spiral,"" she said of Obama's signature legislation. ""It's unsustainable and unaffordable.""", -2113,2017/3/13,http://abcnews.go.com/Politics/iowa-republican-rep-steve-king-defends-racially-charged/story?id=46085703,Iowa Republican Rep. Steve King defends racially charged tweet slammed by critics,,"U.S. Rep. Steve King, known for his sometimes provocative rhetoric, today stood by his inflammatory tweet Sunday that ""we can't restore our civilization with somebody else's babies."" The Iowa Republican ""meant exactly what I said,"" he told CNN today. Wilders understands that culture and demographics are our destiny. We can't restore our civilization with somebody else's babies. https://t.co/4nxLipafWO In the Sunday post that drew fire on social media, King appeared to promote Geert Wilders, a right-wing Dutch politician who has vowed to ""de-Islamize"" the Netherlands if elected prime minister. ""I""ve been to Europe and spoken on this issue ... I""ve said to them you can't rebuild your civilization with somebody else's babies,"" King said. ""You've got to keep your birth rate up and you need to teach your children your values."" King, who calls himself a ""champion of Western civilization,"" argued that Western civilization is a ""superior civilization and we want to share it with everybody."" ""If you go down the road a few generations or maybe centuries with the intermarriage, I'd like to see an America that so homogeneous,"" King, 67, told CNN. ""I think there's far too much focus on race, especially in the last eight years."" When asked whether a Muslim-American, an Italian-American and a German-American are all equal, he replied, ""I'd say they're all created in the image of God and they're equal in his eyes. If they're citizens of the United States, they're equal in the eyes of the law."" King continued, ""Individuals will contribute differently, not equally to this civilization and society. Certain groups of people will do more from a productive side than other groups of people will."" King's comments received the support of former KKK imperial wizard David Duke, who tweeted ""GOD BLESS STEVE KING"" and ""sanity reigns supreme"" in King's congressional district in Iowa. But the chairman of the Iowa Republican Party distanced himself from King's tweet. ""First of all, I do not agree with Congressman King's statement. We are a nation of immigrants, and diversity is the strength of any nation and any community,"" Chairman Jeff Kaufmann said in a statement released this morning. Regarding David Duke, his words and sentiments are absolute garbage. He is not welcome in our wonderful state."" Both King's tweets and interview drew the ire of fellow Republicans. ""What exactly do you mean? Do I qualify as 'someone else's baby?'"" tweeted Florida Rep. Carlos Curbelo, the son of two Cuban exiles who fled the country in the 1960s. .@SteveKingIA What exactly do you mean? Do I qualify as ""somebody else's baby?"" #concernedGOPcolleague Get a clue, @SteveKingIA. Diversity is our strength. All looking alike is such a waste. A travesty. I wanna be me. All others are taken. https://t.co/mx7vgeWPU8 America is a nation of immigrants. The sentiment expressed by Steve King doesn't reflect our shared history or values. https://t.co/msydFudA7m ""Is it worth making the obvious point that what American history has been about is 'restoring' ourselves with 'somebody else's babies?'"" conservative columnist Bill Kristol asked. Is it worth making the obvious point that what American history has been about is ""restoring"" ourselves with ""somebody else's babies?"" https://t.co/DZAjW670Ur Former Democratic Governor of Vermont Howard Dean was more blunt, calling King an ""ignoramus."" King is a total ignoramus and no one takes him seriously. He does give off good quotes to outrage people though. https://t.co/tMZf7heR9O ""republican Congressman Steve King's vile racism has no place in decent society, much less in the U.S. Congress,""?Drew Hammill, spokesman for House Minority Leader Nancy Pelosi, D-Calif., said in a statement, adding, ""The GOP Leadership must stop accommodating this garbage, and condemn Congressman Steve King's statements in the strongest and most unequivocal terms."" King's office did not immediately respond to ABC News' request for comment. This isn't the first time King, who was elected to the House in 2002, has found himself in hot water over his views on race. Asked last July about the comparative racial homogeneity of the Republican Party, the congressman responded, ""this 'old white people' business does get a little tired."" ""I'd ask you to go back through history and figure out, where are these contributions that have been made by these other categories of people that you're talking about?"" he added. ""Where did any other subgroup of people contribute more to civilization?"" In 2013, he implied that the vast majority of undocumented immigrants brought across the southern border as children are drug mules. ""For every valedictorian, there's another 100 out there that ""?they weigh 130 pounds, and they're got calves the size of cantaloupes because they'r hauling 75 pounds of marijuana across the desert,"" he said. He has also been roundly criticized for attempting to block the image of Underground Railroad icon Harriet Tubman from the $20 bill and defending the use of the Confederate flag as a piece of ""our heritage.""", -2114,2017/3/13,http://abcnews.go.com/International/wireStory/california-joins-legal-challenge-revised-trump-travel-ban-46098353,States seeking Trump travel ban block want new hearing,,"California on Monday joined Washington state's growing effort to block President Donald Trump's revised travel ban targeting predominantly Muslim nations as Washington's attorney general sought a hearing before a federal judge to try to prevent the order from taking effect this week. In a new complaint filed in U.S. District Court Monday, Washington state Attorney General Bob Ferguson asked for a hearing with the judge based in Seattle on Tuesday, two days before the revised travel ban is scheduled to begin. He said the new travel ban is unconstitutional and harms state residents, universities and businesses, especially tech companies like Microsoft and Amazon who rely on foreign workers. California, Maryland, Massachusetts, New York and Oregon joined Washington in the legal action. ""No one is above the law, not even the President ""?and I will hold him accountable to the Constitution,"" Ferguson said in a statement. ""Cutting some illegal aspects of President Trump's original travel ban does not cure his affront to our Constitution."" California Attorney General Xavier Becerra said the order, despite being changed, represents an attack on people based on their religion or national origin. Ferguson filed the new court documents after a federal judge last week said he wouldn't immediately rule on whether his restraining order against the old ban applies to the new Trump executive order. U.S. District Judge James Robart on Friday asked for new motions or a complaint. Washington was the first state to sue over the original ban, which resulted in Robart halting its implementation around the country. Trump's revised ban blocks new visas for people from six predominantly Muslim countries including Somalia, Iran, Syria, Sudan, Libya and Yemen. It also temporarily shuts down the U.S. refugee program. Unlike the original order, the new one says current visa holders won't be affected, and it removes language that would give priority to religious minorities. Ferguson acknowledged the changes to the order, but said the revised ban still ""bars entry for virtually all other individuals from the listed countries,"" including relatives of U.S. citizens and students who have been admitted to state universities and people who might seek work at schools and businesses. ""This Court's original injunction protected these individuals and institutions,"" Washington's new court filing said. Washington state said the federal government can't enforce the new travel ban unless it asks Robart to modify his original temporary restraining order. ""Until they do so, they cannot escape the injunction and continue their illegal conduct,"" the filing said. White House spokesman Sean Spicer said last week that the administration believed the revised travel ban will stand up to legal scrutiny. ""?Associated Press writer Christopher Weber in Los Angeles contributed to this report.", -2115,2017/3/13,http://abcnews.go.com/Politics/wireStory/agriculture-nominee-distance-businesses-46099695,Agriculture nominee to distance himself from businesses,,"Agriculture secretary nominee Sonny Perdue says he will step down from several positions at companies bearing his name, restructure family trusts and create blind trusts to avoid a conflict of interest if he is confirmed. In a written agreement with a government ethics agency, the former Georgia governor said he will step down from positions at the National Grain and Feed Association and the Georgia Agribusiness Council. Senators have been waiting for more than seven weeks for the agreement, which is dated March 7 but was posted on the Office of Government Ethics website over the weekend. President Donald Trump nominated Perdue on Jan. 18, but the formal nomination was only sent to the Senate last week. The Senate Agriculture Committee has received the paperwork, a final step before scheduling a confirmation hearing. A spokeswoman for the panel said committee staff is reviewing the paperwork and will schedule the hearing when the review is complete. A financial disclosure form released by the ethics office shows substantial assets from agricultural companies, including a grain merchandising company called AGrowStar, which is worth between $5 million and $25 million. The ethics forms are required by the Ethics in Government Act of 1978, passed after the Watergate scandal. In the weeks since he was chosen, Perdue has held several meetings with senators on Capitol Hill. Farm-state senators have mostly praised his nomination, including Democrat Heidi Heitkamp of North Dakota, who said she would support him. Perdue, 70, is a farmer's son who would be the first Southerner in the post in more than two decades. He built businesses in grain trading and trucking before becoming the first Republican governor of Georgia since Reconstruction. While Perdue's nomination is pending, acting Agriculture Deputy Secretary Mike Young is in charge.", -2116,2017/3/13,http://abcnews.go.com/Technology/wireStory/yahoo-names-top-execs-post-verizon-company-46095713,Verizon sought $925 million penalty for Yahoo's lax security,,"Verizon initially thought the biggest data breaches in internet history merited a $925 million discount on its acquisition of Yahoo's online services, nearly three times more than the two companies finally agreed upon. Yahoo disclosed new details about its negotiations with Verizon in a regulatory filing Monday. The filing doesn't say why Verizon relented on its original demand, issued on Feb. 1. Verizon ultimately accepted Yahoo's offer to trim the sale price by $350 million instead. The companies struck a $4.83 billion deal last July, but re-opened talks after Yahoo revealed that personal information had been stolen from more than 1 billion of its users in two separate hacking attacks in 2013 and 2014. The discount reflect concerns that people might decrease their use of Yahoo email and other digital services that Verizon is buying, reducing opportunities to show ads. Verizon Communications is now aiming to complete the revised $4.48 billion purchase by the end of June. After that, Yahoo's email and other digital services will become part of Verizon, which is planning to meld the operations with its AOL division in an effort to become a bigger player the growing market for digital ads. Yahoo's most valuable parts ""?investments in China's e-commerce leader, Alibaba Group, and in Yahoo Japan ""?will be left in a new company called Altaba. That company will be run by a Yahoo board member, Thomas McInerney, instead of Yahoo CEO Marissa Mayer. Although she hasn't divulged her plans, Mayer isn't expected to work for Verizon. If she leaves, Mayer will receive a $23 million severance package, according to Monday's filing. The amount is lower than a $44 million valuation disclosed in September because $21 million in stock options and other awards have vested in Mayer's account since then. Besides her severance package, Mayer will gain control of stock options valued at $56.8 million, according to the filing. The stock will help ease the sting of a penalty that Mayer is paying for the big data breaches that occurred on her watch. Yahoo's board is withholding Mayer's annual bonus of up to $2 million and a potentially lucrative stock award to punish her. Besides naming McInerney as Altaba's CEO, Yahoo also filled several other key positions at the new holding company. Arthur Chong will serve as general counsel and secretary and Alexi Wellman as chief financial and accounting officer. DeAnn Fairfield Work was named chief compliance officer. ""?AP Technology Writer Barbara Ortutay in New York contributed to this story.", -2117,2017/3/13,http://abcnews.go.com/International/wireStory/scotlands-leader-seeks-independence-referendum-46091049,Scotland seeks new independence referendum amid Brexit spat,,"Scotland's leader delivered a shock twist to Britain's EU exit drama on Monday, announcing that she will seek authority to hold a new independence referendum in the next two years because Britain is dragging Scotland out of the EU against its will. First Minister Nicola Sturgeon said she would move quickly to give voters a new chance to leave the United Kingdom because Scotland was being forced into a ""hard Brexit"" that it didn't support. Britons decided in a June 23 referendum to leave the EU, but Scots voted by 62 to 38 percent to remain. Scotland must not be ""taken down a path that we do not want to go down without a choice,"" Sturgeon said. The move drew a quick rebuke from Prime Minister Theresa May, who said a second referendum would be hugely disruptive and was not justified because evidence shows most Scottish voters oppose a new independence vote. May accused Sturgeon's Scottish National Party of political ""tunnel vision"" and called the referendum ""deeply regrettable."" ""It sets Scotland on a course for more uncertainty and division,"" she said. Sturgeon spoke in Edinburgh as Britain's Parliament was on the verge of approving a Brexit bill that will allow the U.K. to start the formal withdrawal from the EU within days. May plans to trigger the two-year exit process by the end of March. Sturgeon said she would ask the Scottish Parliament next week to start the process of calling a referendum, to be held between the fall of 2018 and the spring of 2019. She said by then, details of Britain's post-Brexit deal with the EU would be clear and Scottish voters would be able to make ""an informed choice."" The British government must agree before a legally binding referendum can be held. It didn't say Monday whether it would do so, but said an independence ballot ""would be divisive and cause huge economic uncertainty at the worst possible time."" In a 2014 referendum, Scottish voters rejected independence by a margin of 55 percent to 45 percent. But Sturgeon said that the U.K.'s decision to leave the EU had brought about a ""material change of circumstances."" Sturgeon said that she had sought compromise with May's government, but had been met with a ""brick wall of intransigence."" Sturgeon has been seeking a deal that would allow Scotland to stay in the European single market and customs union. But she said she has become convinced May is pursuing a ""hard Brexit"" that would leave Britain outside those arrangements, which many U.K. businesses see as crucial. ""I am not turning my back on further discussions should the U.K. government change its mind,"" she said. Sturgeon is taking a big gamble. Although the prospect of Brexit has likely boosted support for independence, polls do not indicate it has majority backing. And there is no guarantee the EU would allow an independent Scotland to remain a member. Former European Commission president Jose Manuel Barroso has set out the legal view that if one part of an EU country becomes an independent state, it would have to apply for its own EU membership. On Monday, commission spokesman Margaritis Schinas said ""the Barrosso doctrine ... would apply, obviously"" to Scotland. Apart from Sturgeon's SNP, Britain's main political parties oppose independence. ""The 2014 Scottish independence referendum was billed as a once-in-a-generation event,"" Labour Party leader Jeremy Corbyn said. ""The result was decisive and there is no appetite for another referendum."" Liberal Democrat leader Tim Farron said Scotland could find itself with ""the worst of all worlds"" ""?outside both the U.K. and the EU. Asked whether she would resign if she lost the referendum, Sturgeon said she wasn't planning to lose. ""Sometimes you've got to do what you think it right in politics,"" she said. ""And I think it's right for Scotland to have a choice.""", -2118,2017/3/13,http://abcnews.go.com/Politics/wireStory/abrupt-layoffs-leave-us-attorneys-scrambling-46088261,Abrupt dismissals leave US attorneys scrambling,,"Two days before Attorney General Jeff Sessions ordered dozens of the country's top federal prosecutors to clean out their desks, he gave those political appointees a pep talk during a conference call. The seemingly abrupt about-face Friday left the affected U.S. attorneys scrambling to brief the people left behind and say goodbye to colleagues. It also could have an impact on morale for the career prosecutors who now must pick up the slack, according to some close to the process. The quick exits aren't expected to have a major impact on ongoing prosecutions, but they gave U.S. attorneys little time to prepare deputies who will take over until successors are named. ""It's very, very gut-level reaction,"" said Steven Schleicher, a former prosecutor who left Minnesota U.S. Attorney Andrew Luger's office in January and was still in contact with people there. The request for resignations from the 46 prosecutors who were holdovers from the Obama administration wasn't shocking. It's fairly customary for the 93 U.S. attorneys to leave their posts once a new president is in office, and many had already left or were making plans for their departures. Sessions himself was asked to resign as a U.S. attorney in a similar purge by Attorney General Janet Reno in 1993. But the abrupt nature of the dismissals ""?done with little explanation and not always with a customary thanks for years of service ""?stunned and angered some of those left behind in offices around the country. Former prosecutors, friends and colleagues immediately started reaching out to each other on a growing email chain to express condolences and support, commiserating about how unfair they felt the situation was. One U.S. attorney was out of state on Friday and was forced to say goodbye to his office by a blast email, said Tim Purdon, a former U.S. attorney from North Dakota who was included on the email chain. Some of those ousted were longtime prosecutors who had spent their careers coming up through the ranks of the Justice Department. John W. Vaudreuil, U.S. attorney for the Western District of Wisconsin, became an assistant U.S. attorney in that office in 1980. Another, Richard S. Hartunian of the Northern District of New York, joined the Justice Department in the 1990s. ""All of these U.S. attorneys know they serve at the pleasure of the president. No one complains about that,"" said John Walsh, an Obama-era appointee as U.S. attorney in Colorado who resigned in July. ""But it was handled in a way that was disrespectful to the U.S. attorneys because they were almost treated as though they had done something wrong, when in fact they had not."" Peter Neronha, who had served since 2009 as U.S. attorney for Rhode Island, said even before Friday he had been preparing for his eventual departure and had written a resignation statement to be released upon his exit. He said he knew his time was limited but had been eager to stay on to see through a major public corruption prosecution and to speak with students about the perils of opioid addiction. ""When that was done, I was going to go anyway ""?whether I got 24 hours' notice, or two weeks' notice, or two months' notice. It doesn't really matter,"" Neronha said. Whenever there's a change in presidential administration, he said, ""I think it would be unwise not to be ready."" It's not clear why the Justice Department asked the prosecutors to exit so quickly. Sessions gave no warning during the Wednesday conference call in which he articulated his agenda for fighting violent crime. ""The attorney general did not mention on that call, 'Stay tuned for changes,'"" Neronha said. Much of the public attention since Friday has focused on Preet Bharara, the high-profile Manhattan federal prosecutor who said he was fired despite meeting with then-President-elect Donald Trump and saying he was asked to remain. Trump himself did apparently make an attempt to speak with Bharara in advance of the Friday demand for resignations. The president reached out through a secretary on his staff to Bharara a day earlier but the two men never spoke, according to a person told about the conversation but who requested anonymity. The White House on Sunday said the president reached out to thank Bharara for his service and to wish him good luck. The Justice Department on Friday did say it would not accept the resignations of Dana Boente, now the acting deputy attorney general, and Rod Rosenstein, the Maryland prosecutor who's been nominated for the deputy role. On Sunday, some Democrats condemned the demand for resignations in highly partisan comments. Maryland Rep. Elijah Cummings, the top Democrat on the House Oversight Committee, suggested Trump might have fired Bharara to thwart a potential corruption investigation, and believed the move added to a lack of trust of the administration. ""?Associated Press writers Eric Tucker and Julie Pace in Washington, Amy Forliti in Minneapolis and Larry Neumeister in New York contributed to this report.", -2119,2017/3/13,http://abcnews.go.com/US/shots-ring-ferguson-protest-sparked-documentary/story?id=46088500,Shots ring out at Ferguson protest sparked by new documentary,,"Gunfire erupted as protesters gathered outside the Ferguson Market on Sunday after the release of new surveillance footage of police shooting victim Michael Brown, police said. There were no known arrests, and no one is believed to have been hit, the St. Louis County Sheriff's Department said in a statement. Brown was accused of robbing the Ferguson Market before he was fatally shot by Darren Wilson, a white Ferguson police officer, in 2014. Brown, who is black, was unarmed when he was killed. #FergusonMarket pic.twitter.com/wnD5FN3wu6 Officers were asked to go the Ferguson Market around 10:45 p.m. to help control the crowd, the department said. Police believe people gathered at the market because of the release of the documentary ""stranger Fruit.""? #FergusonMarket pic.twitter.com/skFqpa3s5U The film includes previously unreleased surveillance video that casts doubt on whether Brown robbed the store shortly before he was killed.", -2120,2017/3/13,http://abcnews.go.com/Sports/wireStory/penn-st-athletic-director-pleads-guilty-abuse-case-46096479,2 ex-Penn State officials plead guilty in child-sex scandal,,"Two former Penn State administrators admitted Monday to mishandling child-sex allegations against Jerry Sandusky, pleading guilty more than five years after the scandal rocked the university and led to the downfall of football coach Joe Paterno. Tim Curley, a 62-year-old former athletic director, and Gary Schultz, 67, a one-time vice president, could get up to five years in prison for misdemeanor child endangerment. No sentencing date was set. They struck a deal in which prosecutors dropped three felony charges of child endangerment and conspiracy that carried up to seven years each. Former Penn State President Graham Spanier, 68, was also charged in the scandal, and the case against him appears to be moving forward, with jury selection set for next week. His lawyers and the lead prosecutor had no comment. The three administrators handled a 2001 complaint by a graduate assistant who said he saw Sandusky, a retired member of the coaching staff, sexually abusing a boy in a team shower. They failed in their legal duty by not reporting the matter to police or child welfare authorities, prosecutors said. As a result, prosecutors said, Sandusky went on to abuse more boys, one of them in the Penn State showers. Sandusky was not arrested until a decade later. He was convicted in 2012 of molesting 10 boys and is serving 30 to 60 years behind bars. Shortly after Sandusky's arrest, Paterno was fired over his handling of the matter. Paterno, one of the winningest coaches in college football history, died of lung cancer a few months later at 85. He was never charged with a crime. A report commissioned by the university and conducted by former FBI Director Louis Freeh concluded that the beloved coach and the three others hushed up the allegations against Sandusky for fear of bad publicity. Robert J. Donatoni, a past president of the Pennsylvania Association of Criminal Defense Lawyers, said state sentencing guidelines for misdemeanor child endangerment indicate defendants with no criminal record could get probation or a jail term of several months. Penn State's costs related to the Sandusky scandal are approaching a quarter-billion dollars. That includes a recent $12 million verdict in the whistleblower and defamation case brought by Mike McQueary, the former graduate coaching assistant whose testimony helped convict Sandusky. The university has also paid $93 million in settlements with 33 people who claimed they were sexually abused by Sandusky. In addition, Penn State was fined $48 million by the NCAA. The NCAA imposed other heavy sanctions against the football program, cutting scholarships, barring the team from postseason play and stripping Penn State and Paterno of 112 victories dating to 1998. The NCAA later eased its penalties and restored the wins. This past season marked the return of Penn State football as a top program. The Nittany Lions won the Big Ten championship and made it to the Rose Bowl. According to investigators, McQueary went to Paterno a day after the shower encounter to discuss what he had seen. Paterno alerted Curley and Schultz, and McQueary met with both of them about a week later. The administrators told Sandusky he could not bring children onto campus anymore, but they had no plan to enforce that rule, prosecutors said. It was not until nine years later that an anonymous email sent to a district attorney led investigators to approach McQueary in the case. Prosecutors on Monday also cited a 1998 complaint against Sandusky over his showering with a boy on campus that led to a campus police investigation and notification of the county prosecutor but no charges. Sandusky admitted hugging the youngster in the shower, and promised never to shower with a boy again. That left Sandusky free to continue working with boys at his charity, his summer football camps and the nearby high school. The U.S. Education Department fined the university a record $2.4 million for not recording the 1998 case on its daily crime log, as required under federal law.", -2121,2017/3/13,http://abcnews.go.com/International/wireStory/congo-american-swedish-officials-kidnapped-46096513,"Congo says American, Swedish officials with UN kidnapped",,"Congo's government says two United Nations officials, one American and one Swedish, have been kidnapped along with four Congolese in Kasai Central province. Government spokesman Lambert Mende said Monday that Michael Sharp of the United States and Zahida Katalan of Sweden were taken with three Congolese drivers and a translator while traveling by motorcycle. A government statement says the kidnappers have not yet been identified. It was not clear when the kidnapping occurred on a bridge near the village of Ngombe. Judicial authorities in the province have opened an investigation and are working with the U.N. mission in Congo to free those held. This vast Central African nation is home to multiple militias competing for stakes in its rich mineral resources.", -2122,2017/3/13,http://abcnews.go.com/International/wireStory/time-terrorist-carlos-jackal-back-paris-trial-46088610,Carlos the Jackal regrets not killing 'people I should have',,"Once the world's most-wanted fugitive, the man known as ""Carlos the Jackal"" appeared in a French court Monday for a deadly 1974 attack on a Paris shopping arcade, a trial that victims' families awaited for decades. The Venezuelan-born Ilich Ramirez Sanchez is accused of throwing a hand grenade from a mezzanine restaurant onto a shopping area in the French capital's Latin Quarter. Two people were killed and 34 injured at the trendy Drugstore Publicis. Known worldwide as Carlos, the 67-year-old is already serving a life sentence in France for a series of murders and attacks he has been convicted of perpetrating or organizing in the country on behalf of the Palestinian cause or communist revolution in the 1970s and '80s. As the trial opened Monday, Carlos denounced it as a ""gross manipulation of justice"" 42 years after the attack. He has denied involvement and pleaded innocent. The back and forth between him and a panel of judges provided some answers not usually heard from a criminal suspect asserting innocence. Asked to state his profession, Carlos called himself a ""professional revolutionary,"" and said ""I'm doing fine"" in prison ""?after more than 20 years behind bars. At one point, the presiding judge asked him whether he had any regrets. ""Yes, I have regrets ""?because I'm kindhearted ""?that I did not kill people I should have killed,"" Carlos answered. ""I like people. I know what violence is. I don't like violence. I saw massacres,"" he added. Speaking of his usual behavior when he was confronted with tense situations, Carlos told the court: ""I look at the scene and I shoot before everyone else. I have no merit, I was born like that."" If convicted at the end of the new trial before a special terrorism court, he could get a third life sentence. Carlos, who was convicted of terrorism in 2011, is charged this time with multiple first-degree murders in relation with a terrorist enterprise. At the time of the 1974 attack, he was 24 years old and already had joined the organization Popular Front for the Liberation of Palestine, but hadn't yet achieved worldwide notoriety. When police arrived at the scene of the attack, they found a devastated mall with all the windows shattered, multiple bloodstains and a hole in the marble slab of the ground floor where the grenade fell. The two men who died were hit by metal chips that perforated vital organs and caused internal bleeding, according to court documents. His long-time lawyer, Isabelle Coutant-Peyre, claims that none of the witnesses had described a man resembling her client, and that the whole case was trumped-up. The case took so long to go to trial because it was first dismissed for lack of evidence before being reopened when Carlos was arrested and imprisoned in France. His lawyers repeatedly argued against holding a trial, arguing the attack was too long ago and that it won't make a difference for Carlos, already in prison for life. ""What need is there to hold this trial?"" asked Coutant-Peyre, who married Carlos in a Muslim ceremony in 2001 that is not legally binding. ""It's a useless trial."" The attack's victims, however, are relieved. ""The civil parties demand justice,"" said Georges Holleaux, lawyer for the widows of the two men killed in the attack and other civil parties to the case. Prosecutor Remi Crosson du Cormier argued that the trial remains relevant today. ""Democracy has two principal enemies ""?totalitarianism, and terrorism,"" he said, suggesting that Carlos is among ""those who threaten democracy by their actions."" The case is being heard by a special court made up of professional judges and with no jurors, as is the custom with terrorism trials in France. An Arab language news magazine in France, Al Watan Al Arabi, published a long interview with a man it identified as Carlos five years after the attack. He allegedly claimed he had personally thrown the grenade into the restaurant, described the full details of the operation and explained why it was carried out. Carlos later disputed he had given the interview. A year after the Drugstore Publicis attack, Carlos sprang to global recognition in the 1975 hostage-taking of OPEC oil ministers. Intelligence agencies later linked him to the 1976 Palestinian hijacking of a French jetliner to Uganda, and other hijackings, explosions and deaths throughout the Cold War. Carlos was arrested in Sudan and whisked to France in a sack by French intelligence services in 1994.", -2123,2017/3/13,http://abcnews.go.com/US/surveillance-video-sheds-light-ferguson-police-shooting-mike/story?id=46088363,Surveillance video may shed light on Ferguson police shooting of Michael Brown,,"When 18-year-old Michael Brown was killed in Ferguson, Missouri, in 2014, police officers shared a video showing Brown with his hands around a shopkeeper's neck as he makes off with a carton of cigarillos. Police called the incident a strong-arm robbery and argued that Brown had brought the same level of violence to his confrontation with officer Darren Wilson moments later. But previously unreleased surveillance video casts doubt on whether Brown robbed the store shortly before he was fatally shot by Ferguson police officer Darren Wilson. Jason Pollock, the filmmaker who discovered the video, says the footage shows Brown exchanging drugs for a bag of cigarillos around 1 a.m. on Aug. 9, 2014, about 11 hours before he was killed. The video doesn't clearly show what was exchanged but shows Brown leaving behind the cigarillos. The new footage is a part of Pollock's new documentary ""strange Fruit,""?which debuted Saturday at the South By Southwest festival in Austin, Texas. The documentary suggests that Brown's argument the next morning was over getting his things back. ""We are doing this for Mike. We are not just doing this to uncover Ferguson. We are doing this to defend Mike's honor, to defend his name and to defend the family's name,""?Pollock said in an interview with ABC News""?""Good Morning America""?on Monday. Pollock says the video is proof that Brown did not rob the store. ""they wanted us to think Michael robbed the store because they needed us to think that Michael was aggressive. Michael was handed the bag in the video, the clerk puts it in a plastic bag and hands it over the counter to Michael Brown,""?Pollock said. ""that's not stealing [from] the store.""?Brown's uncle, Bernard Brown, said the police lied about his nephew. ""the picture they painted of my nephew was not right. That video dispels one of the lies they were telling,""?Bernard Brown told ""Good Morning America""?on Monday. The convenience store, Ferguson Market and Liquor, strongly denies the documentary's claims. Jay Kanzler, an attorney for Ferguson Market and Liquor, said Pollock never reached out to him or his clients in regards to what's seen in the video. He said Pollock's conclusions are entirely false and that the video doesn't change what happened. ""Right now to turn around and somehow blame folks that have nothing to do with this. To turn around and blame them and drag them back into it for what Michael Brown did is shameful."" Kanzler categorically denies there was some sort of arrangement between Brown and the employees. ""It just didn't happen,"" he said, adding that things can be made to look a lot different when you edit a video. ""This wasn't Macy's or Walmart where you put your cigarillos on layaway for some bad pot."" St. Louis County police spokesman Sgt. Shawn McGuire said the department cannot confirm the authenticity of the video at this time and that the department's investigation is focused on the interaction between Brown and Wilson.", -2124,2017/3/13,http://abcnews.go.com/Lifestyle/amy-krouse-rosenthal-author-penned-dating-profile-husband/story?id=45923139,"Amy Krouse Rosenthal, author who penned dating profile for husband, has died",,"Encouraging your partner to seek love after you die can be a difficult subject to broach, but a recent New York Times column was also a reminder of just how heartwarming it can be. Author Amy Krouse Rosenthal, who died today from ovarian cancer, recently penned a dating profile for her husband of 26 years, Jason Rosenthal. She was 51. In her ""Modern Love"" essay titled ""You may want to marry my husband,"" Rosenthal simultaneously shared that she believed it was OK for her husband to find love after her death, while listing all of his lovable qualities for a future mate. Rosenthal noted that she wrote the column in hopes ""that the right person reads this, finds Jason, and another love story begins."" ABC News had reached out to Rosenthal March 3 but she declined to comment. Harvey Max Chochinov, a professor of psychiatry at the University of Manitoba in Winnipeg, Manitoba, Canada, told ABC News earlier this month that although a request like this was ""meant to give comfort, it also forces people to really think and wrap their minds around the reality of this person no longer being in their lives."" For individuals who are dying and want to tell their loved ones that it's OK for them to find love upon their death, Chochinov offered four tips to help have the conversation. ""There are psychological interventions and therapeutic approaches ... to help them articulate the things they want known,""?he said, ""�[whether it's] finding someone else, words or wisdom or guidance, what matters and how they want to be remembered.""", -2125,2017/3/13,http://www.cnn.com/2017/03/13/politics/sean-spicer-donald-trump-wiretapping/index.html,Spicer: Trump didn't mean wiretapping when he tweeted about wiretapping,(CNN)The White House on Monday walked back a key point of President Donald Trump's unsubstantiated allegation that President Barack Obama wiretapped his phones in Trump Tower during the 2016 election.,"Namely, White House press secretary Sean Spicer said Trump wasn't referring to wiretapping when he tweeted about wiretapping. ""I think there's no question that the Obama administration, that there were actions about surveillance and other activities that occurred in the 2016 election,"" Spicer said. ""The President used the word wiretaps in quotes to mean, broadly, surveillance and other activities."" Wiretapping is a narrowly defined surveillance activity that involves tapping into ""a telephone or telegram wire in order to get information,"" according to Merriam-Webster dictionary. Spicer also said that Trump was referring to the Obama administration broadly -- and not accusing Obama of personal involvement -- when he tweeted that ""Obama had my 'wires tapped' in Trump Tower"" and accused Obama of being a ""bad"" or ""sick guy."" Spicer's comments came on the same say as the deadline for the Justice Department to provide evidence to the House Intelligence Committee to back up Trump's claim. The White House has so far refused to provide any evidence, and numerous former officials have denied the existence of any warrant to wiretap Trump Tower. A week earlier, Spicer said Trump's tweet ""speaks for itself"" and declined to provide any further explanation. But Monday, Spicer was open to providing an interpretation for Trump's tweet, saying the President told Spicer he was referring to means of surveillance beyond wiretapping in his tweets accusing Obama of doing just that. Spicer doesn't reject concept of 'Deep State' But in each of the four tweets Trump fired off leveling the accusation, Trump referred specifically to phone tapping -- and only used quotation marks in two of those. ""Terrible! Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory,"" Trump said in his first tweet. ""Is it legal for a sitting President to be 'wire tapping' a race for president?"" he asked in the next. Then, Trump tweeted that Obama ""was tapping my phones in October"" and had stooped low ""to tapp (sic) my phones during the very sacred election process."" But Spicer was not the only White House official to provide an alternative definition of the word ""wiretap"" despite Trump's clear language. White House counselor Kellyanne Conway also addressed the wiretapping claims in an interview Sunday with the Bergen County Record, suggesting that other covert surveillance methods used by the CIA -- as revealed by Wikileaks last week -- could have been used in Trump Tower by the Obama administration. 5 memorable moments from Kellyanne Conway on ""New Day"" ""Do you know whether Trump Tower was wiretapped?"" Bergen County Record columnist Mike Kelly asked Conway on Sunday. ""What I can say is there are many ways to surveil each other,"" Conway said, before suggesting that surveillance could take place through phones, TVs or ""microwaves that turn into cameras.""", -2126,2017/3/13,http://www.cnn.com/2017/03/13/politics/intelligence-deadline-wiretaps/index.html,Congressional deadline arrives for DOJ evidence on Trump wiretap claims,Washington (CNN)The Department of Justice is under pressure to provide any documents related to President Donald Trump's accusation -- presented so far without evidence -- that the Obama administration wiretapped his phones at Trump Tower during the campaign.,"The House Intelligence Committee has set a Monday deadline for the DOJ to provide the evidence, a source familiar with the matter has told CNN, and has sent letters throughout the intelligence community this week to obtain records related to Russia. Former President Barack Obama has denied the allegations through a spokesman, and his former director of national intelligence, James Clapper, also has publicly denied them. Sources have told CNN that FBI Director James Comey also pushed back against Trump's claim. Trump has not publicly provided any evidence for his allegations, first made more than a week ago. Sunday night, Kellyanne Conway, a top adviser to the President, appeared to expand the allegations by suggesting to the Bergen Record there could have been even wider spying of the Trump campaign, including the use of microwaves and television sets. Like the President, however, she did not provide any evidence, and later said she was speaking generally about surveillance. As Congress' deadline looms, calls for Trump to produce evidence have grown louder, including by some in his own party. ""The President has one of two choices: either retract or provide the information that the American people deserve,"" Sen. John McCain told CNN's Jake Tapper Sunday on ""State of the Union."" ""I have no reason to believe that the charge is true, but I also believe that the President of the United States could clear this up in a minute."" Two congressmen privy to sensitive intelligence information said this weekend that they, too, had no information currently to support Trump's claims. The House Intelligence Committee's top Democrat, Rep. Adam Schiff, said on ABC's ""This Week"": ""I don't expect we'll see evidence of this."" And House Speaker Paul Ryan, asked directly on CBS News' ""Face the Nation"" if he had seen evidence of the wiretaps, said: ""No."" Conway said Sunday that ""surveillance"" could go beyond the tapping of phones. ""What I can say is there are many ways to surveil each other,"" Conway told the Record. ""You can surveil someone through their phones, certainly through their television sets ""?any number of ways."" She went on to allege that the spying could have been done with ""microwaves that turn into cameras,"" adding: ""We know this is a fact of modern life."" Conway also reiterated Trump's request that an investigation into the wiretapping claims be included into a congressional investigation into Russia's alleged meddling in the 2016 election. Pressed on ABC's ""Good Morning America"" Monday morning about her comments to the Record, Conway said she was speaking about ""surveilling generally"" and ""wasn't making a suggestion about Trump Tower."" ""I have no evidence,"" Conway said, ""but that's why there is an investigation in Congress."" She later tweeted that the Record's headline -- ""Kellyanne Conway suggests even wider surveillance of Trump campaign"" -- was ""just wrong."" ""Response to Bergen Record was about surveillance articles in news & techniques generally, not about campaign. Headline just wrong,"" Conway said. This story has been updated.", -2127,2017/3/13,http://www.cnn.com/2017/03/12/politics/donald-trump-foreign-travel/index.html,"Putting 'America First,' Trump said to plan lighter foreign travel than predecessors","Washington (CNN)President Donald Trump, who entered office vowing to prioritize American workers and issues, has told his advisers to plan a lighter schedule of foreign travel than his recent predecessors, according to people familiar with the conversations.","Trump has told his team that he doesn't want lengthy trips abroad to distract from his focus on domestic issues in the United States, according to people who have spoken to him about his travel plans. And he's cited the negotiating advantage of meeting leaders at the White House -- a symbol of American power -- instead of on foreign turf as a reason to put off a major foreign tour. Scheduled to first travel outside the country in May for a Group of 7 meeting in Sicily, Trump will lag more than a month-and-a-half behind recent past presidents, who all left for diplomatic trips within the first three months of taking office. Trump has also agreed to attend a May summit meeting of NATO leaders in Brussels, where the defense alliance is headquartered, and a G20 summit in Germany in July. In addition, he's accepted invitations to visit the United Kingdom and Japan. But on those trips, aides expect the President to remain abroad for only the shortest time possible before returning stateside. That directive maps closely to Trump's travel style as a chief executive, when he would fly his private jet abroad for business meetings but rarely lingered for long. Since President Ronald Reagan, first-term presidents have traveled to a contiguous US neighbor before early April as their international debut: Barack Obama visited Canada on February 19, 2009; George W. Bush traveled to Mexico on February 16, 2001; Bill Clinton went to Canada April 3-4, 1993; George H.W. Bush journeyed to Mexico February 10, 1989; and Ronald Reagan stopped in Canada March 10-11, 1981. Trump has not scheduled a trip north or south of the border, though Prime Minister Justin Trudeau invited him to visit Canada during a phone call shortly after Trump was elected last November. The delay is not necessarily a surprise. Trump has espoused an ""America First"" agenda that he says prioritizes the United States' needs over those of other nations. As a candidate, Trump told the UK's Independent newspaper that he wasn't planning on traveling abroad in order to focus his attention on US problems. ""I've got no time to travel -- America needs my attention now,"" Trump told the paper. ""To be honest with you, this country is in such bad trouble, our infrastructure is crumbling, our bridges, our airports. We are in such trouble that I am going to spend a lot of time here."" After taking office, Trump declared at a gathering of conservative activists that he wasn't aiming to act as a global leader. ""I'm not representing the globe, I'm representing your country,"" he said last month at the Conservative Political Action Conference outside Washington. For a businessman highly attuned to the atmospherics of power, a trip to a foreign outpost for talks could involve obstacles. As President, Trump has preferred to host his meetings in the Oval Office, a suite of stately West Wing conference rooms, or -- better yet -- the living room at Mar-a-Lago, the Florida estate which he owns and which is undoubtedly his own domain. Trump has maintained a steady pace of phone calls with his foreign counterparts, and has welcomed four leaders to the White House in his first seven weeks in office. This week he'll welcome two more: German Chancellor Angela Merkel and Irish Taoiseach Enda Kenny. Next month, he is planning to meet with Chinese leader Xi Jinping at his Mar-a-Lago estate in Florida, a senior administration official told CNN Monday. Abroad, Trump would be in someone else's realm, a position he's arduously avoided for most of his career. On a presidential foreign trip, Trump would find himself in some uncomfortable scenarios, according to people familiar with his preferred style of working and traveling. For starters, he would be obliged to sleep in a bed that's not his own -- an experience he avoided while running for office and has not endured since becoming president. A homebody who regularly traveled across half the country to return to his New York apartment each night during the campaign, Trump has worked to avoid putting himself in unfamiliar settings for extended periods at a time. A person who traveled with Trump during his tenure atop the Trump Organization said the billionaire businessman did not especially enjoy foreign travel: He did not easily adjust to time zone changes, he was wary of exotic cuisines and he rarely spent more than a night in a foreign country. The person spoke anonymously to describe private details about Trump's travel. For a President and his aides, foreign travel can be a grueling slog. Meetings regularly begin as soon as Air Force One touches down in a far-flung time zone, leaving little time for a commander-in-chief to adjust to a new setting. Visits in foreign capitals often involve state dinners that extend late into the evening, followed by early talks the next day. Visits to yearly summits like the G7, G20, NATO, or the paired Association of Southeast Asian Nations and Asia Pacific Economic Cooperation forums usually require sitting in lengthy meetings that can stretch hours. Even Obama, who entered office eager to bolster those types of multilateral organizations, occasionally flagged during the seemingly endless set of plenary sessions and meet-and-greets that comprise a foreign summit. He regularly chomped away at Nicorette gum as he listened to translated speeches from his counterparts. During his time in office, Trump has demonstrated an appetite for shorter, rapid-pace meetings with large groups. Trump is also set to be met with protests when he leaves the United States, a likelihood that's already complicated plans for some foreign leaders who have extended invitations to Trump. A state visit to the United Kingdom, which British Prime Minister Theresa May announced in January, was originally expected early in Trump's term, UK officials said privately. Now, the visit to expected to come later this summer or in the fall. In delaying the trip -- potentially to a period when Parliament is not in session ""?the White House and 10 Downing Street could avoid the optics of having Trump refused a speaking slot at Westminster. Trump may be avoiding Canada -- a traditional first foreign trip for a new president -- for similar reasons. He's not popular among Canadians, both in government and outside, though Prime Minister Trudeau has worked toward establishing pragmatic working ties. One person close to Trudeau said the liberal leader doesn't feel slighted by Trump's late RSVP to the invite he extended in November, despite the practices of past US presidents to visit Canada early in their tenures. Trudeau himself visited the White House on February 13 and put forward a show of comity, despite his deep differences with Trump on most policy matters. In skipping Canada as his first jaunt out of the country, however, Trump is passing up the opportunity to give his team a lower-key debut on the world stage. ""One of the reasons why it's been a common destination is because it's helped the new administration have a dry run,"" said Laura Dawson, the director of the Canada Institute at the Wilson Center in Washington. ""It's easy foreign travel."" Dawson said Trump would likely be met by protests in Canada should he travel there now -- though that scenario is likely to occur wherever the controversial US president travels. Still, Dawson said, there are few hard feelings about Trump's absence. ""It's not like Canadians are sitting around feeling snubbed,"" she said.", -2128,2017/3/13,http://www.cnn.com/2017/03/13/europe/brexit-article-50-parliament/index.html,Brexit: Scottish leader seeks UK split as EU divorce looms,London (CNN)Breaking news update 3:09 p.m. ET:,"-- UK members of Parliament have rejected an amendment to the government's Brexit bill that would safeguard EU citizens' rights, the UK Parliament speaker announced in the House of Commons on Monday. The amendment had been proposed by the British Parliame", -2129,2017/3/13,http://www.cnn.com/2017/03/13/europe/turkey-demands-apology/index.html,Turkish minister tells Dutch: 'I am not a terrorist',(CNN)The Turkish foreign minister has demanded answers from the Dutch government over why they blocked him from visiting the Netherlands for a political rally at the weekend.,"""Why this time am I a terrorist? Are the Turks living in this country terrorists?"" asked Mevlut Cavusoglu in an interview Monday with CNN's Connect the World amid a row between the two countries. The decision to refuse him permission to fly to Rotterdam to address the rally over the weekend was followed by a refusal by the Dutch to let Turkish family affairs minister, Fatma Betul Sayan Kayafrom enter the Turkish consulate in the city. She was escorted out of the country. Violent clashes in Rotterdam followed the decision to halt the two ministers from addressing the rallies. No explanation, Minister complains Cavusoglu told CNN he had been given no explanation from the Dutch as to why they had public order and safety concerns over his visit -- the reason they gave for blocking it. ""Is there any one single Turkish Turk radicalized? They say no. So what is the security problem then? They don't give me any detail, I am the Foreign Minister of Turkey. I am not a terrorist this is just excuse, unfortunately, to hide the real reasons,"" he said. Cavusoglu suggested that a rise in racism, Islamophobia and xenophobia in the Netherlands and other European countries is to blame. He also claimed the Netherlands and other European countries wish to ""obstruct"" the yes campaign for a referendum on the Turkish constitution to be held on April 16 that would grant new powers to Turkish president Recep Tayyip Erdogan . Cavusoglu was visiting Rotterdam to rally support among Turkish expatriates in the Netherlands who can vote in the referendum. Nazi comments echoed After the foreign minister's visit to Rotterdam was blocked, Erdogan reacted angrily, comparing the Dutch government to Nazis. In response, Dutch Prime Minister Mark Rutte said Erdogan's remarks were inflammatory and demanded an apology. The Netherlands lost more than 200,000 of its citizens when it was occupied by Nazi Germany in World War II. Appearing to defend Erdogan's inflammatory remarks about Nazis, Cavusoglu said: ""Such attitudes such policies and the violations of the European standards and the values and the Vienna conventions never happened since World War Two. It didn't happen even during the World War Two and it didn't happen maybe even during the Nazi (era)... so that is why we are making the comparison."" Action against Dutch government Cavusoglu said he has made recommendations for action against the Dutch government in protest at what happened at the weekend. He declined to say what this will entail. On Monday, the Dutch issued travel advice via Twitter for Dutch citizens presently in Turkey telling them to ""avoid demonstrations and be alert"" amid the bitter row between the two countries. But Cavusoglu told CNN: ""We will not target the Dutch people and we will not harm them because it is not their mistake. And the Dutch people are friends of turkey and so many tourists are coming to Turkey and we have been friends for 400 years.""", -2130,2017/3/13,http://www.cnn.com/2017/03/13/europe/turkish-dutch-tensions-explained/index.html,Why are Turkey and the Netherlands clashing?,(CNN)The Netherlands this weekend barred Turkey's top diplomat from entering the country to address a political rally.,"That set off ugly diplomatic feuding, name-calling and popular unrest. The spat erupted as citizens prepare to cast their ballots in votes that could radically alter the political landscape in both countries. What's going on? How did the quarrel begin? Turkish President Recep Tayyip Erdogan has been intent on rallying the roughly 4.6 million expatriate Turks living in western Europe to vote in an upcoming Turkish constitutional referendum. If passed, the referendum would transform Turkey's parliamentary system into a presidential one, effectively consolidating the power of three legislative bodies into one executive branch under Erdogan. Germany, Austria and Switzerland sought to prevent referendum rallies taking place on their soil -- citing security and overcrowding concerns. On Saturday, Turkish Foreign Minister Mevlut Cavusoglu attempted to enter the Netherlands to address a rally in the port city of Rotterdam. The Dutch barred the diplomat from entering, also pointing to security concerns. Another minister was barred from entering the Turkish consulate in Rotterdam. How did the Turks react? Protests broke out in both countries. Cavusoglu has promised ""tenfold"" retaliation against the Netherlands According to Turkish state-run news, Dutch diplomatic missions in Ankara and Istanbul had been closed off due to security concerns. The Turkish foreign ministry has told the Dutch ambassador, who is presently on leave and out of the country, he need not return ""for a while."" Erdogan said the Netherlands is ""sacrificing Turkish-Dutch relations."" He accused the country of Nazism and likened the Netherlands to a ""banana republic."" He also called for sanctions. ""Nazism is still widespread in Europe, "" he said. Dutch Prime Minister Mark Rutte said the remarks were inflammatory and demanded an apology. Turkey's ""current rhetorical attacks"" against the Netherlands led Denmark's Prime Minister Lars Løkke Rasmussen to postpone a meeting with his Turkish counterpart. Is the Dutch move tied to its domestic politics? The dispute comes ahead of the Netherlands' general election Wednesday, with immigration from Muslim countries a key issue. The election campaign has pitted two party leaders against each other, liberal incumbent Prime Minister Mark Rutte and populist far-right figure Geert Wilders. As leader of the Freedom Party, Wilders wants to stop immigration from Muslim countries, close mosques, ban the burqa and imprison radical Muslims who have committed no crimes on a ""preventative"" basis. Rutte appears to have pushed himself to the right to compete with Wilders, in January writing an open letter in which he said immigrants who did not assimilate in the Netherlands should ""behave normally, or go away."" Freelance journalist David Chesal told CNN the Dutch government's move was effectively ""election-time grandstanding."" ""Prime Minister Rutte could not possibly allow a huge Turkish campaign to take place in the city of Rotterdam or anywhere else in the Netherlands,"" Chesal said. Meantime he said Erdogan was trying to show Turks that he had the power to influence Europe. ""So clearly Erdogan is making full use of this to position Europe as an enemy of Turkey to try to gain as much possible support for his referendum for more political power,"" Chesal told CNN. How do European governments view Erdogan? European governments have been critical of Erdogan's commitment to basic freedoms since a failed coup attempt earlier this year. Since then, Erdogan has cracked down on opposition, particularly journalists, academics and the public service sector. Also, nearly 140 media outlets have been shuttered, more than 41,000 people have been arrested and about 100,000 workers have been dismissed from public service positions. The country, a NATO member, jailed more journalists than any other country in 2016, according to the Committee to Protect Journalists. Critics call the referendum proposal anti-democratic and say it's indicative of Erdogan's drift toward authoritarian rule. German Chancellor Angela Merkel warned last week that Turkey's approach to democracy and the rule of law are ""deeply problematic"" to the country's future cooperation with the European Union.", -2131,2017/3/13,http://www.cnn.com/2017/03/13/europe/erdogan-turkey-dutch-relations-deteriorate/index.html,Why Erdogan's spat with Europe is significant,"(CNN)Of all that is at stake in Turkey's spat with Europe, perhaps nothing is more fragile than President Recep Tayyip Erdogan's pride.","He fills an outsized global role these days and any hint of humiliation at not getting his way in the Netherlands will not sit well at home -- where he generally does get his own way. When rebuffed by Germany a week and half ago and by the Netherlands this week, he accused both of Nazi inclinations. His incendiary words brought sharp rebuke from both countries, the Dutch reminding him of the 200,000 people killed by Nazi forces. This weekend his ministers were due to address expat Turks in the Netherlands to get their support for a Turkish referendum that will transfer and consolidate Turkey's powers in Erdogan's hands alone. But in attempting to further eclipse democracy in his country, Erdogan appears to have overlooked Holland's impending elections where immigration is a key issue. The Netherlands -- where his Foreign Minister and Minister of Families were denied permission to address rallies -- goes to the polls on Wednesday. Dutch Prime Minister Mark Rutte said he doesn't think Erdogan was intent on upsetting the Dutch elections but that his ministers tried to force their way in to his country against the direct wishes of the Dutch government. According to Rutte, his government was in negotiation with Foreign Minister Mevlet Cavusoglu to speak at a small gathering in Rotterdam. During the negotiations Cavusolglu threatened unspecified action if he didn't get his way. For Rutte that was a red line: ""we stopped talks ... when the Turkish Foreign Secretary started threatening us with sanctions."" That's when Cavusolglu was denied permission to land at Rotterdam airport. Hours later, undaunted, another of Erdogan's ministers tried to make it to Rotterdam to give a speech. Families Minister Fatma Betul Sayan Kayafrom drove in from Germany but was later escorted back to the border by Dutch police. Populist nationalist Geert Wilders, who campaigns on an anti-Muslim agenda, has been neck and neck with Rutte's People's Party for Freedom and Democracy. Over the weekend, he sought to gain advantage from the discord, tweeting to the Families Minister to ""go away and never come back"" and to ""take all your Turkish fans from The Netherlands with you please."" If he could, Wilders would take the Netherlands out of the EU and close down its open borders that allowed Erdogan's minister to drive unhindered in to Holland from Germany. At any other time this might have been a small diplomatic skirmish, but this is not a normal time. Post Brexit, post Trump, Europe faces a round of elections where populist nationalists like Wilders thrive on immigration issues and pose an existential threat to the EU. Erdogan has emerged as an increasingly influential leader, a key global partner on counter-terrorism, a necessary ally for the US in Syria as well as new partner for Russia in the same conflict, not to mention a vital floodgate holding back refugees from pouring in to Europe. All this against a backdrop of increasing European unease at Erdogan's political reforms in Turkey that appear to many European diplomats to benefit only him and his cronies, taking him farther from his stated goal of EU membership. Since the coup attempt last July, Turkey has shut down nearly 140 media organizations, arrested 41,000 people and thrown about 100,000 others out of their jobs. Now the stage has slowly been set, Erdogan has his hands on levers that are already triggering tremors across the continent; however uncomfortably that sits with European governments. Brexit was won on the issue of immigration, fueled by images of refugees streaming into Europe and compounded by fears of radical Islamist terror attacks. UK to Europe: We're out Today the same fears fuel the populist narrative all across northern Europe. Not just by Wilders in the Netherlands but French Presidential candidate Marine Le Pen, whose country goes to the polls next month, and where she too has vowed to lead the country out of the EU if she wins. Across Europe in the coming months more countries go to the polls and in most established parties face an erosion of support to nationalist populists in one shape or another. To a degree, Erdogan holds the key to Europe's status quo: halting refugees crossing into Europe from Turkey (albeit as the result of a 6 billion euro deal with the EU) and cooperation around counter-terrorism stemming ISIS' insidious incursion into Europe to show the strength of his hand. Yet in his handling of this recent diplomatic spat, Erdogan appears to show a brittle side to his personality. His actions reinforce European concerns that he is becoming increasingly autocratic.", -2132,2017/3/13,http://www.cnn.com/2017/03/13/politics/donald-trump-obamacare-repeal-gop-plan/index.html,"Trump on health care: 'It's a big, fat, beautiful negotiation'","Washington (CNN)President Donald Trump appeared Monday to bask in the back-and-forth over a health care plan to replace Obamacare, describing the talks in businesslike terms.","""It's a big, fat, beautiful negotiation,"" Trump declared during the first meeting of his Cabinet at the White House. ""Hopefully we'll come up with something that's going to be really terrific."" Earlier in the day, Trump appeared to lower expectations for an immediate drop in health insurance costs after a replacement bill is passed. He told a White House gathering of Americans who say they've been negatively affected by the Affordable Care Act that it could take several years before a drop in prices. ""More competition and less regulation will finally bring down the cost of care, and I think it will bring it down significantly. Unfortunately, it takes a while to get there because you have to let that marketplace kick in,"" Trump said. ""It's going to take a little while to get there,"" Trump added. ""But once it does it's going to be a thing of beauty. I wish it didn't take a year or two years. But that's what's going to happen."" The President's remarks came as Republicans awaited a closely watched score from the Congressional Budget Office on their health care replacement plan, which was unveiled and debated last week. Democrats argue the measure, called the American Health Care Act, will force millions of Americans off their insurance plans while increasing costs. The CBO score is expected as early as Monday. Trump, in his meeting, expressed frustration that Obamacare seems to be rising in popularity among Americans. Indeed, polls show that more Americans favor the current health law, which was passed in 2010. Republicans brace for CBO report He placed blame for the rise on the media, which he claimed were focusing on Obamacare's success stories without highlighting those Americans who have seen their premiums spike or their preferred insurance canceled. ""The press is making Obamacare look so good all of a sudden. I'm watching the news, it looks so good,"" Trump said. He argued that Americans' views of his predecessor, President Barack Obama, were also improving now the Democratic leader has left office. ""When he left, people like him. When he was here, people didn't like him so much. That's the way life goes. It's human nature,"" Trump said.", -2133,2017/3/13,http://www.cnn.com/2017/03/13/middleeast/syria-children-2016-unicef/index.html,"2016 was 'rock bottom' for children in Syria, says UNICEF","(CNN)More Syrian children were killed in 2016 than in any other year of the six-year conflict, making last year the worst on record for children in the war-torn nation, according to children's charity UNICEF.","At least 652 children died in the last 12 months, a 20% increase on 2015, the organization said in a damning new report published Monday. Nearly half of those children were killed in or near school. The report includes only verified figures, meaning the death toll could be much higher, the report said. ""I wanted to become a doctor but perhaps I won't become anything because our school was attacked,"" 6-year-old Ahmad is quoted as saying. ""We used to play a lot in the schoolyard but now I'm afraid of coming here."" At least 850 children were recruited to fight in the conflict in 2016 -- more than double the number the year before, the report said. Increasingly, children were being used to fight on the frontlines and in combat roles, ""including in extreme cases as executioners, suicide bombers or prison guards."" ""Each and every child is scarred for life with horrific consequences on their health, well-being and future,"" Geert Cappelaere, the UNICEF Regional Director for the Middle East and North Africa speaking from Homs, Syria, said in a statement. 'Toxic stress' Nearly six million children now depend on humanitarian assistance, says UNICEF, 12 times the number in 2012. Additionally, UNICEF says it can't even access some of the harder to reach parts of the country, where it estimates 280,000 children are living under siege ""completely cut off from humanitarian aid"" and ""dying in silence often from diseases that can otherwise be easily prevented."" Last week, British charity Save the Children published a report which stressed that Syria's children were suffering from ""toxic stress"" brought on by the sheer brutality of the ongoing civil war. At least three million Syrians under the age of six ""know nothing but war,"" said Save the Children, adding that prolonged exposure could lead to a number of problems, including self-harm and suicide attempts. In the report, one father named Firas recounted how his 3-year-old, Saeed, had been affected. ""My son wakes up afraid in the middle of the night,"" he said. ""A child was slaughtered in front of him, so he started to dream that someone is coming to slaughter him. When a child witnesses a beheading, how could he not get afraid?"" Since the war began in 2011, an estimated 400,000 Syrians have been killed in what the United Nations is calling the worst humanitarian crisis since World War II.", -2134,2017/3/13,http://www.huffingtonpost.com/2017/03/13/hardly-any-teens-receive-effective-treatment-for-opioid-addiction_n_15341432.html,Hardly Any Teens Receive Effective Treatment For Opioid Addiction,Adolescents face numerous obstacles to medication-assisted treatment.,"(Reuters Health) - Just a small fraction of adolescents with opioid addiction will receive medications that can help them quit, new research shows. These medications, usually methadone or suboxone, are prescribed to reduce craving for opiates and ease withdrawal symptoms, and studies show they help opiate users to abstain. In 2016, the American Academy of Pediatrics advised doctors to consider medication-assisted treatment, specifically suboxone, for adolescents with ""severe opioid use disorders.""?To get a ""baseline""?sense of medication-assisted treatment in adolescents with opiate or heroin addiction, Kenneth Feder of Johns Hopkins School of Public Health in Baltimore and his colleagues looked at data on 139,092 patients receiving treatment at publicly funded programs in the United States in 2013. While 26 percent of adult heroin addicts received medication-assisted treatment, that was true for just 2 percent of adolescents. Among patients addicted to opiates, 12 percent of adults received medication, compared to less than 1 percent of adolescents, the researchers reported in the Journal of Adolescent Health. ""there's more that needs to be done across the board to facilitate access to these treatments when they'r medically necessary,""?Feder told Reuters Health by phone. ""the best validated treatment for somebody struggling with an opiate addiction is treatment that includes some sort of medication assistance.""?Patients seeking medication-assisted treatment face a number of obstacles. Methadone is only offered at specific substance abuse treatment centers, and these centers need a waiver to treat anyone under 18. Also, Medicaid rules state that adolescents with opiate addiction must have failed treatment twice in order to be prescribed methadone. Doctors can prescribe suboxone, the other main drug for this purpose, to patients 16 and older, but only if they have a waiver. ""these treatments may not be covered by a state's Medicaid program,""?Feder added. ""And if they are medically necessary, we think they should be covered by a state's Medicaid program.""The difference in medication-assisted treatment rates between adolescents and adults is ""really striking and very concerning,""?Dr. Lisa Marsch of Geisel School of Medicine at Dartmouth in Lebanon, New Hampshire, told Reuters Health by phone. Marsch has studied medication-assisted treatment but did not participate in the new study. Medication-assisted treatment is clearly more effective for adults and adolescents, Marsch said, and by not extending the treatment to more patients, ""we are doing a real disservice based on the science and the data.""?About a half-million US adolescents use prescription opiates every year, and just under 10% will become addicted, Marsch added. ""We want a chance to stop this problem early.""SOURCE: bit.ly/2lLuWYN Journal of Adolescent Health, online March 1, 2017. We'r basically your best friend""?with better taste. Learn more", -2135,2017/3/13,http://www.huffingtonpost.com/dr-michelle-a-williams-scd/health-and-climate-change-an-urgent-need-for-action_b_15341430.html,Health And Climate Change: An Urgent Need For Action,,"The human face of climate change is its impact on our health. Higher temperatures intensify air pollution and respiratory illness. Changing weather patterns lead to drought and then famine, while increasing rains in other areas will create the breeding ground for disease and pandemics. While the policy changes needed to blunt climate change are surely substantial, the cost of ignoring the science behind climate change will be felt through its harmful effects on our health. Recently, the CDC cancelled its Climate and Health Summit out of fear of retribution from the Trump administration. Working with Al Gore and others, Harvard worked to revive the meeting, which was held in Atlanta on February 16.- This meeting reminded us that universities have a unique responsibility that we ensure a platform for key scientific issues that have a meaningful effect on people's health.- Climate change is one such critical issue. A century ago, one in three children died before age five. That number has been cut by 90 percent because of global investments in public health. Climate change, unchecked, puts these gains, and lives, at risk. Weather shifts from climate change will change the availability and reduce the nutritional content of food. The levels of protein and crucial micronutrients in key staple crops will drop, exposing billions of the world's poorest people to worsening malnutrition. The gains we have made in saving the lives of children are fragile ""?and unlikely to withstand the challenges created by climate change unless we act now. The effects of climate change on health will not stop with agriculture. Burning fossil fuels release a wide array of air pollutants that are a leading cause of asthma, heart disease, and strokes in our country and around the globe. Children are particularly vulnerable, and so are the elderly. The increasing number of heat waves -is dangerous, but the interaction between high temperatures and air pollution becomes especially deadly. The changing climate will likely shift the geographical range of insects that carry disease, including ticks carrying Lyme disease and mosquitos which carry malaria. The increasing number of infectious disease outbreaks such as Ebola and Zika appear to be linked, at least in part, to ongoing environmental shifts that exacerbate climate change. It is not hard to imagine that if we alter an ecosystem where we and other species live in equilibrium, there will be meaningful consequences. Transitioning to energy sources that reduce carbon pollution will help the U.S. meet its commitments under the recent Paris Agreement to reduce greenhouse gas emissions and, importantly, will also benefit the health of all Americans. In a nation where our government already pays for the health care of our elderly and many of our children, reducing health burdens not only saves lives, but it can also be fiscally responsible. Our colleagues at the Harvard T.H. Chan School of Public Health recently found that the health savings to the American people from the Environmental Protection Agency's new carbon standards will far outweigh the cost to industry within five years. As these changes unfold, universities have a unique obligation, through research, education, and better communication, to understand and explain the impact of climate change on health and find ways to mitigate it. This research, at Harvard and at universities across our country, is dependent on a long-standing agreement between universities and the American people: -universities will work on the most pressing issues facing our nation, and our citizens, through their government, will support that research. That agreement faces a serious challenge today from politicians skeptical about the science of climate change and the value of scientific investment. Yet it is more important than ever to renew our commitment to funding research on climate change and especially, its impact on health. Universities must commit to producing unbiased, high-quality data to guide decision- and policy-making, and the government should keep its commitment to supporting that work.- Finally, it is essential that universities engage more effectively with the public regarding what the science tells us about the impact of climate change on health. Sharing data openly and transparently is crucial to helping policy-makers -reach / agree on the best decisions. This is a critical moment for our nation. Climate change is upon us. We can no longer think of -it as an issue of temperature changes or sea level rises alone. We must remember that we will feel the effects of climate change most acutely on our health. We still have the time to mitigate these effects by focusing on reducing carbon pollution and slowing the warming of the planet. If we do, we will reap the benefits in terms of longer and healthier lives.- And our children will be the biggest beneficiaries. We'r basically your best friend""?with better taste. Learn more", -2136,2017/3/13,http://www.huffingtonpost.com/2017/03/13/john-lewis-steve-king-bigoted-racist_n_15341426.html,John Lewis Blasts Steve King's 'Bigoted And Racist' Comments,"""These ideas have given rise to some of the worst atrocities in human history, and they must be condemned.""","Longtime civil rights champion Rep. John Lewis (D-Ga.) slammed Rep. Steve King (R-Iowa) Monday for ""bigoted and racist""?comments that appeared to support white nationalism. This is bigoted & racist. It suggests there is one tradition & one appearance that all humanity should conform to. https://t.co/dC6dIy3rXn These ideas have given rise to some of the worst atrocities in human history, and they must be condemned. https://t.co/r53locW5Zf King landed himself in hot water Sunday when he retweeted an Islamophobic cartoon and praised the illustrator for understanding ""ghat culture and demographics are our destiny.""?""We can""t restore our civilization with somebody else's babies,""?King tweeted, apparently an attack on Muslims and immigrants entering the U.S.-The backlash intensified on Monday after an unbowed King appeared on CNN's ""new Day.""""I meant exactly what I said,""?King told CNN's Chris Cuomo, adding that he like the U.S. to be ""so homogenous that we look a lot the same.""?Lewis, who has been the target of King's vitriol in the past, called the statement ""deeply disturbing""?in a press release. My colleague has made a deeply disturbing statement because it ignores the truth about the history of this nation. Western civilization did not create itself.- It was founded on traditions that emerged from Africa, Iran, China, Greece and Rome and other nations. With the exception of Native Americans, we all came to this land from some other place in the world community, and this country is a melting pot of cultures, traditions, appearances, and languages. In order to live together as one people, we must come to respect the dignity and the worth of every human being. It is that understanding that will make us one nation, not a homogeneous appearance. Rep. King's statement is bigoted and racist. It suggests there is one cultural tradition and one appearance that all of humanity should conform to.- These ideas have given rise to some of the worst atrocities in human history, and they must be condemned. It didn""t take long for other Democratic lawmakers to join in denouncing King's remarks. Rep. Ted Lieu (D-Calif.) called King a ""stark, raving racist""?on Twitter. Rep. David Cicilline (D-R.I.) equated King's initial tweet with an ""Apen endorsement of white nationalism.""?Dear @SteveKingIA: You know what makes America great? You get to make obscene comments and I get to call you a stark, raving racist. https://t.co/bnpApSaZnF Steve King is my colleague. This Tweet is an open endorsement of white nationalism. Shameful. https://t.co/ojBMetwzPE Rep. Barbara Lee (D-Calif.) condemned King for regarding her family as ""somebody else's babies.""?My ancestors were brought here in chains. I'm the daughter of a veteran. But to Steve King, my family & I are just ""somebody else's babies.""?https://t.co/wVkXSh21z8 Senate Democrats also rejected King's remarks.- Actually @SteveKingIA, it is our diversity & multiculturalism that makes America strong. https://t.co/BTtPmuB1k1 Former Florida Gov. Jeb Bush (R) was among the first high-profile Republicans to register his dismay. America is a nation of immigrants. The sentiment expressed by Steve King doesn't reflect our shared history or values. https://t.co/msydFudA7m House Speaker Paul Ryan (R-Wis.) didn""t address King's comments until Monday afternoon, when a spokeswoman said Ryan ""Clearly disagrees.""?""the speaker clearly disagrees and believes America's long history of inclusiveness is one its great strengths,""?Ryan spokeswoman AshLee Strong said, according to NBC News""?Bradd Jaffy. White nationalist figures reveled in King's message. Former KKK Grand Wizard David Duke and white nationalist leader Richard Spencer sung King's praises Sunday on Twitter. The neo-Nazi website The Daily Stormer dubbed him a ""Lero.""?GOD BLESS STEVE KING!!! #TruthRISING https://t.co/oDFel8JDrP When you've lost Iowa you've lost white America. Keep attacking #steveking! Swing state of Iowa only voted 9 points for Trump! President Donald Trump has remained silent on King's remarks,-though White House press secretary Sean Spicer said he would ""gouch base""?with the president later.- Spicer on Steve King's comments (made 24 hours ago): ""I will definitely touch base with the president on that..."" ""�via @MSNBC pic.twitter.com/IMtexVvx11 How will Trump's first 100 days impact you? Sign up for our weekly newsletter and get breaking updates on Trump's presidency by messaging us here. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2137,2017/3/13,http://www.huffingtonpost.com/2017/03/13/topshop-wants-you-to-buy-mom-jeans-with-plastic-kneecaps_n_15341046.html,Topshop Wants You To Buy 'Mom Jeans' With Clear Plastic Kneecaps,Someone put a stop to this madness.,"Have you ever thought to yourself, ""Hey, I really wish my kneecaps would sweat more,""?or, ""Tan, I wish people could get a better look at my kneecaps, but I'm wearing jeans?""?Well you'r in luck, because Topshop is now selling jeans with clear plastic kneecap covers sewn in. We'r not quite sure who the intended audience is for these poorly-named ""Clear Panel Mom Jeans""?from Topshop.- But for only-$95, these jeans can be yours.- Though the internet only recently discovered this interesting piece of plastic disguised as clothing, people who have bought the Topshop jeans on Nordstrom only had rave reviews about the pants (though the comments look like they were probably left by trolls). The jeans currently have three separate reviews ""?all giving the item five stars ""?with titles like ""Love my kneecaps!""?""I don""t have kids- they STILL fit!!""?and ""Great style, great comfort... great pants!""""I""ve always loved my kneecaps. So when I saw this pair of see-through kneecapped jeans, I had to get my hands on them! YOLO,""?one reviewer wrote, though it's unclear if they'r trolling us all or not.- Another reviewer made it clear that these jeans ""Aren""t just for mom's [sic],""?thank goodness! ""Ty friends and I all bought a pair,""?the reviewer wrote. ""It's been a long winter, we can still have that super fashionable skin through denim look, and stay warm! These jeans are totally on fleek!""YOLO? On fleek? Who is paying people to write these things? Certainly not the people who reviewed the jeans on Twitter:- These are actual jeans you can buy at @Nordstrom that cost $95. Called Clear Knee Mom Jeans. We are truly living in the dark time line. pic.twitter.com/vv9flwQeXx Mad libs, but for fashion. https://t.co/DpMPYZge39 he wept, for there were no more worlds to conquer.https://t.co/OICWceRKCO @McKelvie @marcbernardin pic.twitter.com/uKSUqeE42D DOROTHY PARKER: What fresh hell is this? TOPSHOP: Thank you for asking! These are our ""Clear Knee Mom Jeans."" pic.twitter.com/QRhmLjKirv Though as Twitter user-sdpowell1-pointed out, Topshop has a few other pairs of interesting jeans for sale on its website (including ones with mesh kneecaps):- Keep seeing those clear plastic, knee mom jeans and let me tell you that is the least of Topshop's denim crimes. https://t.co/Jzy8MAerbT pic.twitter.com/ee1S2nAA8M At least it's better than Nordstrom selling actual rocks-for a cool $85. - But if you see the elusive ""mom""?that would wear these jeans in the wild, let us know in the comments below.- The-HuffPost-Lifestyle-newsletter-will make you happier and healthier, one email at a time. Sign up-here. Share this slide: We'r basically your best friend""?with better taste. Learn more", -2138,2017/3/13,http://www.huffingtonpost.com/2017/03/13/snoop-dogg-lavender-clown-trump_n_15340400.html,"Snoop Dogg's Latest Video Shows The World As 'Clownery,' With A President To Match","The ""Lavender"" music video offers a topical commentary on the president and police brutality.","Warning: The above video features explicit language. On Sunday, the video for Snoop Dogg's latest track, ""Lavender""?(a remix of the BADBADNOTGOOD and Kaytranada song of the same name), was released, and it doesn""t hide its anti-Trump message.- The video takes place in a world populated by clowns ""?actor Michael Rapaport among them ""?but offers a striking commentary on the current president and police brutality. At one point, Snoop confronts a clown dressed in the likeness of Donald Trump and points a gun at him. The Trump clown ends up in chains next to a weed-smoking Snoop and his posse, including a Harley Quinn look-alike. The whole thing starts off in Rapaport's household; he's an average family man clown with kids and a wife. One day, he gets pulled over by a clown police officer, who ends up shooting and killing him. The tragic event gets captured by a bystander, who uploads his clip to ""ClownTube.""The video brings to mind the fatal police shooting of motorist Philando Castile,-which was recorded by his girlfriend.-YouTube star Jesse Wellens, who directed the video, told Billboard that-Castile's death came to mind while he was working on ""Lavender.""""I just had been seeing this go on in the world politically, and I actually was a cop for six years in the military, so I can kind of see it from the cop's point of view too,""?he explained. ""When I originally wrote the idea of the video, the video of [Philando Castile] getting shot came out online and it was causing riots.-We just kind of wanted to bring the clowns out, because it's clownery ""?it's ridiculous what's happening.""?Snoop added, ""the whole world is clownin""?around, and [Jesse's] concept is so right on point with the art direction and the reality, because if you really look at some of these motherf**kers, they are clowns.""?You can watch the whole video above. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2139,2017/3/13,http://www.huffingtonpost.com/conde-nast-traveler/hotels-with-over-the-top-poolside-experiences_b_15341030.html,Hotels With Over-The-Top Poolside Experiences,,"For Cond�� Nast Traveler, by Paul Rubio. From foot-washing attendants to cabanas with verandas, here are our favorite poolside experiences and amenities from around the globe. See our list of the best resorts in the U.S. 1. Faena Hotel Miami Beach, Florida Pool life is the good life at this posh Miami Beach resort, where attendants cater to guests' every whim: from cleaning sunglasses to handing out carafes of lemon-infused water and complimentary snacks (curated daily by the hotel's chef, pastry chef, and bartender). They'll even wash your feet with a slow trickle of fresh water from a watering tin (we'r not kidding). 2. Oil Nut Bay, Virgin Gorda, British Virgin Islands Become the bastion of Instagram envy at Oil Nut Bay's three-tiered pool, where your own dedicated staff member will set up and take photos of you with floating props ""?including rideable unicorns and flamingos. If that's not your thing, fear not: the jaw-dropping backdrop of turquoise Caribbean waters is more than enough to make your friends jealous. 3. Burj Al Arab Jumeirah, Dubai, United Arab Emirates Leave it to the world's most opulent hotel to create the ultimate in poolside extravagance on its new, 100,000-square-foot over-water terrace. Here, you'll find 32 tricked-out, fully air-conditioned cabanas surrounding a duo of fresh and saltwater pools backed by the city's skyline. In true over-the-top Dubai style, eight 'Royal Cabanas' each have their own private bathroom, shower, and sea-facing veranda. 4. Chileno Bay Resort & Residences, Los Cabos, Mexico Throughout the day, pool attendants continuously make the rounds delivering alcohol-infused frozen delights (for free, no less) at this brand new Baja resort. Late afternoons arrive with the ultimate chill: aloe vera ice cubes to sooth your newly sun-kissed skin. 5. St. Regis Punta Mita Resort, Nayarit, Mexico Be sure to order a ""smoking champagne""?when relaxing poolside at this Pacific Coast resort-""?this dreamy drink, a pioneer in crafty, shisha cocktails, combines fresh fruit, herbs, spices, and Champagne. The best part? You can request your bubbly, plus everything from Evian spritzes to suntan lotion ""?via Whatsapp. Just tap your phone, and a pool butler delivers. See the rest of Hotels With Over-the-Top Poolside Experiences onCNTraveler.com More from Cond�� Nast Traveler: The Friendliest and Unfriendliest Cities in the World 50 Things to Do in America Before You Die The Most Beautiful Island on Earth The 40 Best Cities in the World We'r basically your best friend""?with better taste. Learn more", -2140,2017/3/13,http://www.huffingtonpost.com/2017/03/13/la-resist-march_n_15340382.html,This Year The LA Pride Parade Is Being Replaced By A 'Resist March',"""We resist forces that would divide us. We resist those who would take away our liberty.""","Organizers of Los Angeles Pride have announced a very different plan for the city's annual 2017 Pride Festival. This year, instead of the annual Pride parade taking place, a #ResistMarch has been scheduled in response to the threat against the rights of minority Americans by current forces in the U.S. government. According to WeHoVille, the Pride Festival will continue to be a ticketed event as it has every other year, and will include ""A free transgender event and Sizzle sober area.""?However, in conjunction with the festival's downsizing due to construction, the parade will be replaced by an-LGBTQ Resist March-on Sunday, June 11. According to a mission statement published on the #ResistMarch's website, the event is meant to harken back to ""?970's first LGBTQ+ Pride""?and will involve marching ""?..in unity with those who believe that America's strength is its diversity... Not just LGBTQ+ people but all Americans and dreamers will be wrapped in the Rainbow Flag and our unique, diverse,-intersectional voices will come together in one harmonized proclamation.""?Brian Pendleton, Founder of #ResistMarch, told The Huffington Post, ""After seeing the success of the Women's March in January, I realized that LA Gay Pride should make a similar stand by protesting instead of parading.""?He added, ""This is important now because when any American's rights are under threat, all our rights are threatened. Forces are gathering in government that intend to take away our hard-won basic human rights.- We hope #ResistMarch will send a clear message to them. We resist forces that would divide us.- We resist those who would take away our liberty. We resist homophobia, xenophobia, sexism, and racism. Together, we resist.""?The LGBT Resist March will take place on June 11, 2017 from 8:00 AM-2:00 PM. Share this slide: How will Trump's first 100 days impact you? Learn more", -2141,2017/3/13,http://www.huffingtonpost.com/2017/03/13/yara-shahidi-michelle-obama-college-recommendations_n_15340378.html,Yara Shahidi Got Michelle Obama To Write Her College Recommendation Letter,"This young, phenomenal woman deserves it all.","Yara Shahidi admits that her college application process has been a bit ""surreal,""?thanks to Michelle Obama.- During an interview-W magazine-published Wednesday, the ""Black-ish""?star talked about the support she's received from the former first lady, who penned recommendation letters to four universities, including her alma mater Harvard. - ""she is very amazing and such a supporter, which is something very surreal to say,""?Shahidi said, adding that Obama told her to-""go get 'em, tiger""?before she took her AP exams. Last October, Obama and Shahidi teamed up to discuss the importance of girls""?education around the globe during Glamour's ""International Day of the Girl.""?Before the 17-year-old begins higher education ""?she is planning to double major in sociology and African American studies ""?she wants to have ""A more unorthodox college experience""?by deferring at least a year, she told People in October. Similar to Malia Obama, Shahidi says she will use the yearlong gap to recalibrate her life and career. ""I know when Malia Obama announced [she was deferring], she got a lot of slack, but I feel like what's interesting is I know so many people that are deferring,""?she said. ""It's more than to just roam around or just sit down and stare at a wall, but it will also give me an opportunity to work.""?She continued: ""I""ve been working more than half of my life and that's always been balanced with school and all of the other responsibilities, so to have a year to focus on work and to focus on specified interests will be nice before I pick a career and choose what I want to study and my life path.""?Share this slide: How will Trump's first 100 days impact you? Learn more", -2142,2017/3/13,http://www.huffingtonpost.com/2017/03/13/emily-ratajkowski-bra_n_15340018.html,DKNY's Unrelatable Ad Shows Emily Ratajkowski Walking Her Dog In Lingerie,"Because, apparently, ""anything can happen in New York.""","Emily Ratajkowski-doesn""t walk her dog in the baggy sweatshirts and old sweatpants that you do. In DKNY's latest intimates campaign, she walks her dog wearing basically nothing.- Ratajkowski wakes up in what a release from the brand calls ""A quintessential New York apartment""?(read: a walk-up with an exposed radiator). But if the apartment itself feels ""real""?to city-dwellers, the relatable factor stops there. She seamlessly throws on a bra and traipses out of her building onto the street in just a bra and panties like it ain""t no thing, leaving mouths agape and ""?of course ""?-cabs crashing in her wake.- According to the brand, the 25-year-old's jaunt around the ""Good plays to New York City's unpredictable nature. ""Anything can happen in New York,""?it said.- Sure, anything can happen in New York. But we'r going to guess probably-not this. For Ratajkowski's part, she explained that she has ""never been one to shy away from expressing my individuality""?and praised DKNY for always ""supporting strong, self-assured women.""?We'r all about individuality and self-assurance, but think we'll stick to keeping our clothes on during our dog walks for now. Watch the video above. We'r basically your best friend""?with better taste. Learn more", -2143,2017/3/13,http://www.huffingtonpost.com/2017/03/13/twitter-responds-kellyanne-conway-microwave-camera-comment_n_15340006.html,Twitter Hilariously Burns Kellyanne Conway For Microwave Comment,Because it's **BEEPING** insane.,"Twitter is boiling over with hilarity after Kellyanne Conway made a comment about ""microwaves that turn into cameras.""?During an interview with the Bergen County Record-on Sunday, Conway talked about President-Donald Trump's unsubstantiated claim that his predecessor, Barack Obama,-ordered wiretapping of his communications during the campaign. ""do you know if Trump Tower was wiretapped?""?the interviewer asks Conway in the video above. In response, Trump's counselor says, without evidence: ""What I can say is there are many ways to surveil each other now, unfortunately. There was an article this week that talked about how you can surveil someone through their phones, through their ""?certainly through their television sets, any number of different ways, and microwaves that turn into cameras, etc., so we know that that is just a fact of modern life.""?Though Conway clarified Monday on ABC's ""Good Morning America""?that she wasn""t saying Trump and his campaign were being surveilled by microwaves, the damage was already done. Twitter users posted-some pretty sweet burns about microwaves, Conway and surveillance. Here is what they cooked up: - #KellyanneConway might be onto something. pic.twitter.com/K77hwozxMK The clock on my microwave hasn't been set to a time in years. I assume it's cause the FBI always knows the time. #KellyanneConway pic.twitter.com/7wyOiPEtjb Me to Microwave: Hey, you've been my cook for a long time so I hate to ask, but #KellyanneConway said you are a government spy? Microwave: pic.twitter.com/w6B0ftQHQB Obama sending me a message about the fate of our country #KellyanneConway pic.twitter.com/u18oYYg6kh #KellyanneConway the microwave is the leader but these guys are pretty clever too. Be vigilant. pic.twitter.com/eKwfWZOglH How do you stop your Microwave from taking selfies and posting them on Snap Chat? #KellyanneConway Because ""Cook on High for 2-3 Minutes"" is Pop Secret Information #KellyanneConway The #BowlingGreenMassacre could of been prevented if the perpetrators had a microwave. #KellyAnneConway #KellyanneConway I thought the whole microwaves spying on us was bunk till I caught my stove & microwave battling it out this morning... pic.twitter.com/NzzdsVBW3X I'm ready for my microwave, Mr. DeMille. #KellyanneConway Welcome to #KellyanneConway neurotic nightmares... pic.twitter.com/DZaZrf07u4 You knew this had to happen. #resist @KellyannePolls #KellyanneConway @microwavegate pic.twitter.com/Fss7oTxzGM A new CIA director has been floating around, word on the street is he has the best spies around #StanfromSears #SPYpliences #KellyanneConway pic.twitter.com/TVmUuZ0nlo Hey #KellyanneConway, I've got something to help you with those treacherous microwaves: pic.twitter.com/yQTq28SObd #KellyanneConway Orville knows what you did last Summer. pic.twitter.com/KiQNNU70ei #KellyanneConway I just walked in on my microwave and refrigerator watching Con Air together, I am so screwed on so many levels. Thanks for the heads up @KellyannePolls ! Wouldn't want my students to use my microwave to cheat on tests. #KellyanneConway pic.twitter.com/B4vO0JiveY Proof that Obama has been secretly taping Trump... #KellyanneConway pic.twitter.com/FCeR8UJ6x7 In the microwave, Barack...the MICROWAVE. #KellyanneConway pic.twitter.com/OYftIkYKan Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2144,2017/3/13,http://www.huffingtonpost.com/2017/03/13/quidditch-cup-britain_n_15339730.html,"Britain's Quidditch Cup Just 'Organized Chaos,' Players Say","It's basically a mix of rugby, dodgeball with a little bit of handball.","With poles instead of broomsticks between their legs, competitors battle it out in a sport usually reserved for witches and wizards and described by one enthusiastic participant as ""Arganized chaos""? They are competing for the British Quidditch Cup, in a tournament which draws its inspiration from the magical ""harry Potter""?universe created by author J.K Rowling but which has had to be modified to allow for the limitations of ordinary mortals, known in her books as ""Tuggles""? Instead of flying through the air on magical broomsticks, these competitors run around the pitch holding on tightly to their poles. ""It's a mixed gender, multi-national sport - it's played in over 20 countries worldwide,""?Tom Heynes, a player for the Velociraptors team, said during the weekend tournament in the central English county of Staffordshire. ""It's basically a mix of rugby, dodgeball, little bits of handball thrown in there. The best way to describe it is organized chaos. It's just a bit hectic on pitch but it's fantastic.""?Teams are made up of seven players who try to score by throwing a ball through hoops while seeking the snitch - a small, winged golden ball in the ""harry Potter""?books but on this pitch a tennis ball in a yellow sock dangling from the back of one of the players. Some 32 teams from across Britain took part in the weekend event, organized by QuidditchUK. ""there is no one good Quidditch player. Some of the smallest girls, they can be incredible, and likewise you're got some stereotypical rugby guys who also will be really good,""?tournament organizer and quidditch player Beth Thompson said. ""Any body type, any personality, as long as you can throw and catch.""?In the end, the Velociraptors beat the Brizzlebears with a score of 260 points to 60. Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2145,2017/3/13,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39255181,Scottish independence: Nicola Sturgeon to seek second referendum,Nicola Sturgeon has confirmed she will ask for permission to hold a second referendum on Scottish independence.,"Nicola Sturgeon has confirmed she will ask for permission to hold a second referendum on Scottish independence. Ms Sturgeon said she wanted a vote to be held between the autumn of 2018 and the spring of the following year. That would coincide with the expected conclusion of the UK's Brexit negotiations. The Scottish first minister said the move was needed to protect Scottish interests in the wake of the UK voting to leave the EU. She will ask the Scottish Parliament next Tuesday to request a Section 30 order from Westminster. The order would be needed to allow a fresh legally-binding referendum on independence to be held. Prime Minister Theresa May has so far avoided saying whether or not she would grant permission. Responding to Ms Sturgeon's announcement, Mrs May said a second independence referendum would set Scotland on course for ""uncertainty and division"" and insisted that the majority of people in Scotland did not want another vote on the issue. She added: ""The tunnel vision that SNP has shown today is deeply regrettable. ""Instead of playing politics with the future of our country, the Scottish government should focus on delivering good government and public services for the people of Scotland. Politics is not a game."" But speaking at her official Bute House residence in Edinburgh, Ms Sturgeon said the people of Scotland must be offered a choice between a ""hard Brexit"" and becoming an independent country. The Scottish government has published proposals which it says would allow Scotland to remain a member of the European single market even if the rest of the UK leaves, which Mrs May has said it will. Several questions now arise? Does Nicola Sturgeon have a mandate for today's decision? She says yes, unquestionably. In defence of this, she says that the SNP won the last Holyrood election with a record share of the constituency vote. Against that, rivals say the SNP did not retain their overall majority at Holyrood. Countering that again, it might be noted that there is a majority at Holyrood for independence, including the Greens. As will be demonstrated next week when those two parties vote together to urge a Section 30 transfer from Westminster. Which brings us to Question Two. Section 30 refers to the portion of the 1998 Scotland Act, the Holyrood founding statute, which permits the transfer of other powers from the reserved section to the devolved criterion. It has been used, for example, to transfer control over issues like rail transport to Holyrood. It was used, most significantly, to transfer power to hold the 2014 referendum, with agreement over the wording of questions and the timing of the plebiscite. Will the UK government agree to a transfer this time around? Not without detailed examination and negotiation. Read more from Brian here. The first minister said the UK government had not ""moved even an inch in pursuit of compromise and agreement"" since the Brexit referendum, which saw Scotland vote by 62% to 38% in favour of Remain while the UK as a whole voted to leave by 52% to 48%. The EU Withdrawal Bill is widely expected to complete its final stages in the UK Parliament later on Monday, which would allow Mrs May to then trigger Article 50 - which formally starts the Brexit process - as early as Tuesday. Ms Sturgeon said Scotland stood at a ""hugely important crossroads"", and insisted she would continue to attempt to reach a compromise with the UK government. But she added: ""I will take the steps necessary now to make sure that Scotland will have a choice at the end of this process. ""A choice of whether to follow the UK to a hard Brexit, or to become an independent country able to secure a real partnership of equals with the rest of the UK and our own relationship with Europe."" Ms Sturgeon continued: ""The Scottish government's mandate for offering this choice is beyond doubt. ""So next week I will seek the approval of the Scottish Parliament to open discussions with the UK government on the details of a Section 30 order - the procedure that will enable the Scottish Parliament to legislate for an independence referendum."" Ms Sturgeon said it was ""important that Scotland is able to exercise the right to choose our own future at a time when the options are clearer than they are now, but before it is too late to decide on our own path."" She said that the detailed arrangements for a referendum - including its timing - should be for the Scottish Parliament to decide. But she said it was important to be ""frank about the challenges we face and clear about the opportunities independence will give us to secure our relationship with Europe, build a stronger and more sustainable economy and create a fairer society."" The UK and Holyrood governments are set for a battle royale over timing over a potential vote. But the question first is whether or not the prime minster is willing to grant a vote. Under the law, Westminster has to grant the referendum; it's not just down to the Scottish government. I'm told Number 10 had carefully worked out ""countermoves"" depending on what the first minister's message was this week. Now Sturgeon has made the first big move, it's down to the other side to respond. But arguably we have just entered into the most complicated, most fraught, most fundamental period of political uncertainty for our country in a very long time. Sturgeon's announcement confirms that it is not just our place in the EU that is changing, but the relationships between our own nations that are at question too. Read more from Laura Ms Sturgeon will rely on the pro-independence Scottish Greens to give her plans majority support in the Scottish Parliament. Patrick Harvie, the party's co-convener, welcomed the announcement and confirmed the Greens would vote in favour of seeking a Section 30 order. He added: ""The people of Scotland deserve a choice between Hard Brexit Britain and putting our own future in our own hands"". But Scottish Conservative leader Ruth Davidson said Ms Sturgeon had been ""utterly irresponsible"" and had ""given up acting as first minister for all of Scotland"". She added people ""do not want to go back to the division"" of a referendum and that Ms Sturgeon had promised 2014 would be a ""once in a generation"" poll. Scottish Labour leader Kezia Dugdale said Scotland was ""already divided enough"" and ""we do not want to be divided again, but that is exactly what another independence referendum would do."" But the party's UK leader, Jeremy Corbyn, confirmed that his MPs would not attempt to block a request for a Section 30 order. Mr Corbyn said: ""Labour believes it would be wrong to hold another (referendum) so soon and Scottish Labour will oppose it in the Scottish Parliament. ""If, however, the Scottish Parliament votes for one, Labour will not block that democratic decision at Westminster. ""If there is another referendum, Labour will oppose independence because it is not in the interests of any part of the country to break up the UK."" Scottish Liberal Democrat leader Willie Rennie said Ms Sturgeon's SNP had been ""working towards this announcement for months"" and were ""determined to contrive a way to ignore their promise that 2014 was 'once in a generation'."" He added that there was ""no wide public support for a new and divisive referendum"".", -2146,2017/3/13,http://www.bbc.co.uk/news/uk-politics-39249721,Brexit bill: MPs overwhelmingly reject Lords changes,MPs have overwhelmingly voted to overturn amendments to the Brexit bill made by peers and send the landmark legislation back to the House of Lords.,"MPs have overwhelmingly voted to overturn amendments to the Brexit bill made by peers and send the landmark legislation back to the House of Lords. They rejected calls for the government to protect the status of EU nationals within three months of the start of Brexit talks by 335 votes to 287. They then dismissed calls for Parliament to have a meaningful vote on any Brexit deal by 331 to 286 votes. The EU Withdrawal Bill will be passed later if the Lords back down. Labour peers have said they will not vote to reinsert the provisions, making a period of what is known as ""ping-pong"" between the elected chamber and its unelected counterpart highly unlikely. Conceding defeat, Baroness Smith, Labour's leader in the Lords, told the BBC they had ""done their best"" in the face of what she claimed was the government's ""pure stubborness"". But she said for the Lords to continue its opposition when the views of MPs were clear would be an ""empty gesture"". Both Houses of Parliament have to agree the text of the bill before it can be sent for Royal Assent and become law. Prime Minister Theresa May could then theoretically trigger Article 50, which formally starts the Brexit process, as early as Tuesday. However, Downing Street sources have said this will not happen this week and the PM is expected to wait until the end of the month to officially notify the EU of the UK's intention to leave. Only two Tory MPs - Tania Mathias and Alex Chalk - defied the whip over the issue of EU nationals as the government won the first vote comfortably, aided by six Labour MPs who backed Theresa May. There were no rebels in the second vote although about ten Tories are believed to have abstained. After reversing the Lords changes, the bill will pass back to peers to decide whether they want to go against the government's plans again. The bill travels back and forth between the two chambers until both sides agree. The BBC's political correspondent Vicki Young said she did not expect peers to try to block the bill any further and this meant it would all be ""done and dusted by midnight"" on Monday. Opening Monday's Commons debate, Brexit Secretary David Davis said MPs had already approved the bill ""without any strings attached"" and putting it into law ""without further delay"" would enable the negotiations to begin. He said the government was committed to a ""quick deal"" on the rights of EU residents, but insisted guarantees must be reciprocal. He repeated the government's verbal assurances that both Houses would have a vote on any Brexit deal, but warned that while the Lords amendment ""has been badged as a meaningful vote, the reality is there are some who would seek to use this to overturn the result of the referendum"". ""We will not have anything that will put the intention to leave the EU in doubt,"" he told MPs. But he was pressed by a number of Tory MPs over the exact nature of the parliamentary vote they've been promised. Former minister Anna Soubry said it was ""perverse"" that if the UK and EU were not able to agree a deal at all, that Parliament would not be ""entitled"" to pass its judgement. ""I would urge the government, for the sake of bringing unity to the country at large, that they allow Parliament's sovereignty to reign and in the event of no deal we have a vote and a say,"" she said. For Labour, shadow Brexit secretary Keir Starmer said there was a ""compelling case"" to give EU residents the certainty they deserved, arguing that ""not only is it the right thing do in principle but it would set the right tone ahead of the negotiations"". Former Lib Dem leader Nick Clegg accused ministers of ""shameful inaction"" on the issue, while Green Party leader Caroline Lucas said MPs ""were not elected to be lemmings"" in the Brexit process. The SNP's Stephen Gethins said the question of the future of EU residents ""went to the heart of what kind of country we want to be"" and warned MPs not to hand the government a ""blank cheque"" in upcoming talks. ""I am not sure I would trust this government to run a bath or a bidet let alone a very complex set of negotiations,"" he added. Mrs May has said Parliament will get a vote, but some MPs and peers want a stronger commitment to give them a more ""meaningful"" say - and to be able to potentially send her back to the negotiating table in Brussels. Mrs May has said she would rather take the UK out of the EU with no deal rather than a ""bad deal"". No deal would result in trade rules defaulting to World Trade Organisation standards, meaning the UK and EU would be obliged to apply to each other the tariffs and other trade restrictions they apply to the rest of the world.", -2147,2017/3/13,http://www.bbc.co.uk/news/uk-england-merseyside-39255408,Cancer photo couple: Son tells of impact of parents' death,The son of a couple who died of cancer within days of each other has told of how he feared his 13-year-old brother would be taken into care.,"The son of a couple who died of cancer within days of each other has told of how he feared his 13-year-old brother would be taken into care. An image of Mike and Julie Bennet during their last moments together was released by their children last month. The family's tragic story prompted a flood of donations to an appeal for the three siblings, Luke, 21, Hannah, 18, and 13-year-old Oliver. Luke told This Morning he had now been granted joint guardianship of Oliver. The student explained to the ITV1 show that he and his sister had not really considered the financial issues at first as they were primarily concerned about keeping their family together. He said: ""Obviously, it become kind of complicated... making sure we would be able to keep him (Oliver). Whether he would have go into care with someone else or whether we could all stay together. ""In terms of financial and practical stuff it didn't really occur to us that much until all the charity stuff kicked off."" Luke has now been granted guardianship of Oliver along with a long-time family friend called Suzie. The student paid tribute to the friends and well-wishers who had donated money he said would provide the family with financial security. ""Thank you to everyone who has given in any way possible.... just thank you so much,"" he said. The Bennets, from Irby in Wirral, plan to give some of the money to charity. Family friend Heather Heaton Gallagher previously said the siblings were being supported by aunts and uncles and the money would be used to help them through college and university. Mr Bennet died on 6 February in Arrowe Park Hospital. Mrs Bennet, a primary school teacher at Sommerville School, was then moved to St John's Hospice where she died five days later. She was diagnosed in May last year with cancer which began in the liver and kidneys and then spread to other organs. Her husband, a self-employed cabinet maker, had been fighting a brain tumour since 2013 and had been nursed at home by Mrs Bennet and his children until his wife became too ill to care for him.", -2148,2017/3/13,http://www.bbc.co.uk/news/health-39256584,Paralysis inspires MS discovery,"""I had a dead leg one Sunday morning and it progressed to full paralysis within two hours,"" says Dr Denise Fitzgerald, from Queen's University Belfast.","""I had a dead leg one Sunday morning and it progressed to full paralysis within two hours,"" says Dr Denise Fitzgerald, from Queen's University Belfast. She was only 21 at the time, but the event helped to inspire the fledgling scientist to crack how the brain is repaired. The discovery reported today could potentially help millions of people with multiple sclerosis who have the opposite problem, a rogue immune system attacking part of the brain. Dr Fitzgerald's paralysis was caused by a similar condition to multiple sclerosis called transverse myelitis. Her spinal cord had been stripped of a fatty substance called myelin - a protective coating that allows electrical signals to travel down nerves. It serves the same function as insulation on an electrical cable. Without myelin, her brain could no longer control her body. The key difference between the two conditions is transverse myelitis is a one-off event, while multiple sclerosis is a life-long assault on myelin. Dr Fitzgerald's myelin slowly regenerated and was growing at about the same pace as the hair on your head. ""I asked the doctor 'can you speed this up?' and they said 'not until some bright spark like you comes up with something'."" She was, eventually, able to make a ""95% recovery"" and even taught herself to walk again. She told the BBC: ""It shows how much regenerative capacity we have and on my mind was the repair process. ""It was efficient and effective and that led me on to research on MS."" In multiple sclerosis, the immune system mistakes myelin for a hostile invader and launches an assault. It can either just get worse, known as primary progressive MS, or come in waves of disease and recovery, known as relapsing remitting MS. ""The reason people have relapsing-remitting is because that natural repair process kicks in,"" Dr Fitzgerald told the BBC. She is one part of a large research group made up of neuroscientists, immunologists and stem cell scientists that has cracked how the myelin is regenerated. They hope harnessing this process could lead to new therapies. Their series of mouse experiments, published in Nature Neuroscience, has unpicked how the body restores myelin (it is the same sequence of events that ultimately restored Dr Fitzgerald's movement). It starts with a type of white blood cell (called a T-regulatory cell) that is attracted to the damaged myelin in the brain. Once there it begins to co-ordinate the recovery like a foreman at a construction site. But rather than bark verbal instructions, the white blood cells do it chemically by using a protein with the technical name of CCN3. The protein then jolts nearby stem cells into activity. Stem cells have the rare ability to morph into other cell types and CCN3 tells them to become myelin-manufacturing cells. Dr Fitzgerald said: ""From my perspective it is a fundamental step forward in the biology of repair. ""Our goal is to eventually use this knowledge to develop drugs to drive the repair of myelin and potentially this could lead to patients regaining function. ""I love my career, but I'd happily be unemployed if we cure multiple sclerosis."" It is still early days and the next stage of the research will be to perform experiments using human rather than mouse tissues. ""If only I had saved my T-cells from back then, when I was on the hospital bed I should have been saying 'save some of that blood for me',"" she said while musing on a missed opportunity for an experiment. But even with treatments still on the horizon, the findings ask interesting questions about multiple sclerosis itself. Why does the repair process get worse with time? Does the disease become more severe and the repair process cannot keep up? Or does age make the repair less efficient? These will also be considered in the next stage of the research. Fellow researcher Dr Yvonne Dombrowski added: ""This knowledge is essential to designing future treatments that tackle neurological diseases, such as MS, in a new way - repairing damage rather than only reducing attacks. ""In the future, combining these approaches will deliver better outcomes for patients."" Dr Sorrel Bickley, the head of biomedical research at the MS Society, said: ""This exciting study gives us an important understanding of how myelin repair can be promoted, which could open up new areas for treatment development."" Follow James on Twitter.", -2149,2017/3/13,http://www.bbc.co.uk/news/uk-politics-39254072,"'Don't bag up dog poo in countryside', animal owners urged",Dog walkers are being urged not to bag up their pet's poo in the countryside - but to use a stick and flick it into the undergrowth instead.,"Dog walkers are being urged not to bag up their pet's poo in the countryside - but to use a stick and flick it into the undergrowth instead. Conservative MP Anne Main will advocate the method during a Westminster debate as a way of reducing the number of plastic bags blighting the countryside. Mrs Main says better signage is needed at the entrance of parks and open spaces so dog owners know what to do. She says poo-filled bags hanging from trees are a nationwide problem. BBC research found that local authorities in England and Wales received some 73,824 complaints about dog fouling in 2014-15. Mrs Main, MP for St Albans and the owner of a three-year old lakeland jack russell terrier called Sam, says the menace of poo-filled bags ""is a massive problem"" that is polluting the environment. ""Like many people, I like to walk my dog out in the countryside, parks and in woodland, but over the last few years I've noticed an increasing number of dog poo bags hanging off bushes, trees and railings - and it's disgusting,"" she said. ""People think it's the right thing to do to pick it up, but when they find there aren't any bins, they jettison the poo-bag into the undergrowth or lob it over a garden fence where animals can eat them, children pick them up or cyclists ride into them."" Mrs Main, who is raising the issue during a Westminster Hall debate on Tuesday, says many dog walkers start off with the best intentions, by leaving a bag in a tree on a track to pick up on the way home - but then forget to collect it. ""We have to work with human nature,"" she said. ""People are not going to carry a dollop of dog poo on a three hour walk - and you are not going to find a bin in Ashdown Forest. ""I think we need to have clearer guidelines so dog walkers know what to do."" She hopes ministers will press for better signage at the entrance to forest areas and parks with advice on dog poo disposal. She also thinks the Forestry Commission-backed campaign for dog walkers to use a ""stick and flick"" the mess off the pathway and into the undergrowth, or cover it with leaves, is a more effective way of removing the mess. Keep Britain Tidy estimates there are more than eight million dogs in the UK producing more than 1,000 tonnes of mess every day. While there has been a reduction in dog fouling in recent years, a recent survey of more than 10,000 sites found dog mess left in 7% of places. Anyone who fails to clear up after their dog can be issued with a fixed penalty notice. If the case goes to court, this could cost the owner or person in charge of the animal up to ?1,000. The Dogs Trust advises dog owners to use public litter bins to dispose of dog mess when there are no specific dog waste bins available.", -2150,2017/3/13,http://www.bbc.co.uk/news/uk-england-suffolk-39260732,'Twisted' killer Ali Qazimaj traced after international manhunt,,"A man who murdered a husband and wife was convicted after a jury saw through his ""bizarre and unbelievable"" claims, police said. Ali Qazimaj, 43, from Tilbury, Essex, was found guilty following a trial at Ipswich Crown Court. Peter Stuart, 75, of Weybread, Suffolk, was found stabbed to death near the home he shared with his wife, Sylvia, on 3 June. Mrs Stuart's body has still not been found. Det Ch Insp Andy Guy said: ""The jury saw through the bizarre and unbelievable claims Qazimaj made in the court. ""The assertion that there was another man who looked identical to him, shared the same DNA and handwriting styles, and disappeared at the same time he appeared in Luxembourg is beyond belief."" In a statement, the Stuart family described Qazimaj as a ""twisted individual"", adding: ""We hope you spend the rest of your miserable existence reflecting on the utter senselessness and brutality of what you did to two innocent people.""", -2151,2017/3/13,http://www.bbc.co.uk/news/uk-39255964,Queen starts 2018 Commonwealth Games baton relay,"The Queen has started the countdown to the 2018 Commonwealth Games, launching the baton relay at Buckingham Palace.","The Queen has started the countdown to the 2018 Commonwealth Games, launching the baton relay at Buckingham Palace. She handed the baton to two-time Olympic champion cyclist Anna Meares on Monday as it started its journey to host country Australia. The relay will span 388 days, 71 countries and more than 200,000 miles before reaching the Gold Coast. The Queen and other Royals marked Commonwealth Day with a service at Westminster Abbey. The games begin on 4 April 2018. Australian Paralympian Kurt Fearnley brought the baton to the palace before it was given to the Queen. After placing a message inside, the monarch then handed it on to his fellow countrywoman Meares. She was joined by her former rival and now friend, Team GB champion cyclist Victoria Pendleton, to start the first leg of the relay. ""Being a former athlete, the Commonwealth Games are very special,"" said Meares. ""They are something that you work very hard for, but you only get the chance to compete once every four years. When the Queen's baton starts, you get a little flutter in your chest as you knew it was getting close. ""The Gold Coast, with its iconic beaches and the Australian lifestyle, they are just waiting and itching to welcome the world there. It is the biggest sporting event of the decade for our country and the anticipation is building."" By Peter Hunt, BBC diplomatic and royal correspondent As she stood on the makeshift stage in the Buckingham Palace forecourt, the Queen might have been tempted to reflect on one of the benefits of longevity. Her commitment to the Commonwealth has been unwavering; that of her ministers, in the past, less so. Take Ted Heath. For him, in the 1970s, the Common Market trumped the Commonwealth. Other prime ministers have been wary of a loose affiliation of nations that battled against apartheid in South Africa but which have, sometimes, struggled to uphold principles of accountability and respect for human rights. But post-Brexit, the club of 52 countries is taking on greater significance for the UK government. The Commonwealth makes up a relatively small part of UK trade. As we leave the European Union, Number 10 wants to increase exports to these countries. Where the baton is headed over the next 388 days, will British goods, in greater numbers, one day follow? Pendleton added: ""It is an honour to be recognised and be asked to participate in something like this. There will be lots of people on the route who have volunteered... and it will be their way of connecting with the whole Commonwealth Games and what it means to people. ""It is the first time I have been part of a Queen's baton relay so for me it was... a massive honour."" School children from all of the countries represented at the games were also at the event and there was a performance from Australian singer Cody Simpson. The Commonwealth Day service at the abbey was also attended by the monarch, the Duke of Edinburgh, the Prince of Wales, the Duchess of Cornwall, Prince Harry, the Duke of York and the Earl of Wessex, as well as Prime Minister Theresa May. Olympic gold medallist Jessica Ennis-Hill brought the baton into the abbey at the start of the ceremony. The multi-faith service saw performances from a range of musicians from across the Commonwealth, along with speeches from religious leaders. This year's theme was ""a peace-building Commonwealth"". In a message to the 2.4 billion Commonwealth citizens, printed in the order of service, the Queen wrote: ""The cornerstones on which peace is founded are, quite simply, respect and understanding for one another. ""Working together, we build peace by defending the dignity of every individual and community. ""As members of the Commonwealth family, we can find much to be thankful for in the inheritances we have received from those who came before us. Through consensus and co-operation, great things have been achieved."" Commonwealth secretary general Baroness Scotland also gave her own Commonwealth Day message, read at flag ceremonies around the country. She said: ""By linking governments and institutions - both public and private - and bringing together in a spirit of goodwill people of all ages and from all walks of life, Commonwealth gatherings and networks lay foundations of respect and understanding that enable lasting peace to be built.""", -2152,2017/3/13,http://www.bbc.co.uk/news/uk-england-39232062,"Northern, Southern rail and Merseyrail staff on strike",Passengers appear to have largely stayed away from the railway network as staff from three train firms across England hold 24-hour strikes.,"Passengers appear to have largely stayed away from the railway network as staff from three train firms across England hold 24-hour strikes. Guards and drivers working for Merseyrail, Northern rail and Southern rail are taking action over proposals for driver-only-operated (DOO) trains. Up to 2,000 rail staff have walked out in the dispute, but only limited disruption has been reported. Northern rail thanked customers for ""altering travel plans"". Members of the Rail, Maritime and Transport (RMT) union are holding their 30th strike day in an ongoing dispute with Southern, but the dispute has now spread to the north of England. Rail strike: Latest updates What does a train guard do? Commuters at railway stations including Manchester Victoria reported stations being quieter than normal. Paul Barnfield, regional director at Northern, thanked passengers for ""working with us"". Services on many routes were wound down from mid-afternoon, he said, with ""very few trains"" running after 17:00 GMT. Merseyrail members have refused to work ""rest days"" since 6 March and a bid by the company to derail the strike action on Thursday was rejected by the High Court in London. Disruption to its services on Monday included a full break in service from 11:00 to 14:00, while all services in and out of Liverpool were to finish by 19:00. The company's deputy managing director, Andy Heath, said the ""much reduced"" service on the planned timetable was due to train drivers choosing ""not to cross picket lines"". A statement on the Merseyrail website added: ""We are sorry that we are unable to run the previously advertised timetable today. ""This is because train drivers, who are not part of the industrial action taking place on the Merseyrail network today, have decided not to cross RMT picket lines."" RMT general secretary Mick Cash said the union's position on driver-only-operated trains was ""perfectly clear"" and added it would ""not agree to any introduction of DOO"". He added there was ""rock solid"" support for the walkouts, including the Southern network action which ""continues to hold firm in the fight for rail safety nearly a year on"". Management at all three affected rail companies have said they want a negotiated solution and deny jobs will be lost. Analysis: Richard Westcott, BBC transport correspondent It's the south and the north today, but could this dispute keep spreading across England? The government's made it clear that it wants an expansion of ""driver-only-operated"" trains and that puts it at loggerheads with the unions. The Department for Transport talks about introducing them in the next two franchises about to be awarded, South Western and West Midlands. The unions say it's a long-term ploy to get rid of all train guards and save money - they claim it puts passenger safety at risk. But rail bosses argue it's about modernising the service, freeing up the second on-board person to deal with passengers rather than closing the train doors. Handing all the safety jobs to the driver means you don't HAVE to have two people on every train before it can leave the station. That would shrink the power of the RMT, because more trains would be able to run if their guards went on strike in the future. Paul Plummer, chief executive of the Rail Delivery Group, which represents train operating companies, said the industrial action was ""completely unnecessary and will be very painful"". He said: ""Rail companies are willing to guarantee pay and jobs; new trains which customers desperately want enabling better services, no threat to safety and this is a very early stage of discussion."" Theresa May's official spokesman said the prime minister was ""disappointed ...that once again the RMT are disrupting passengers across the country"". He said: ""These strikes are unnecessary. The RMT should return to talks and help deliver the high-quality rail services that passengers deserve."" Arriva Rail North, which operates Northern trains, proposes to modernise the network by 2020 with the introduction of 281 new carriages, 243 upgraded trains, 2,000 extra services each week and better stations. It has promised to protect jobs and pay and said it was ""disappointed"" by the strike. Merseyrail plans to introduce a new fleet of 52 (DOO) trains from 2020 and said none of the permanent guards or guard managers would lose their jobs. The company said it ""pledged to do everything we can to bring the dispute to a satisfactory and swift conclusion"". Southern has said the RMT union is ""hell-bent on further strike misery"". Its parent company, Govia Thameslink Railway (GTR), said the union chose to put its members ""through even more pointless industrial action."" All three strikes are due to end at midnight. Have you been affected by the travel disruption? Share your pictures and experiences by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -2153,2017/3/13,http://www.bbc.co.uk/news/world-europe-39258957,Dutch election: PM warns against populism in TV debate with Wilders,"Dutch PM Mark Rutte has warned his country not to succumb to a ""domino effect"" of populism that he linked to Brexit and to Donald Trump's election.","Dutch PM Mark Rutte has warned his country not to succumb to a ""domino effect"" of populism that he linked to Brexit and to Donald Trump's election. Mr Rutte was taking on his main rival, the controversial populist Geert Wilders, in a TV debate ahead of Wednesday's election. Mr Wilders has pledged to take the Netherlands out of the EU, close all mosques and ban the Koran. Some opinion polls suggest his Freedom Party could win the most seats. That would hand him the first run at forming a coalition government, but the other parties contesting the election have ruled out working with the Freedom Party, making that an unlikely scenario. Monday's televised debate was the first head-to-head between the two frontrunners, after Mr Wilders refused to take part in several previous debates. The two men clashed over a recent diplomatic spat with Turkey, which followed Mr Rutte's decision to ban two Turkish ministers from addressing rallies in the country. In response, Turkish President Recep Tayyip Erdogan accused the Netherlands of being ""Nazi remnants"". Mr Wilders said at the debate that Mr Rutte should have immediately expelled the Turkish ambassador. ""Otherwise we accept that we are being insulted and our police are being insulted too,"" he said. Mr Rutte's reply - that the remark showed the difference between ""tweeting from the sofa and governing the country"" - won him a sustained round of applause. With two days to go until the election, one poll cited by Reuters suggested the Turkey spat, and subsequent riots by ethnic Turks in Rotterdam, had given anti-immigrant parties a boost. The poll put the Freedom Party in second place behind Mr Rutte's VVD party. General polls suggest a significant number of Dutch voters are yet to make up their minds, meaning the debate could carry weight. Mr Wilders does not shy away from controversy. He has vowed to ban Muslim immigration, shut mosques, and tax women who wear the Muslim headscarf, and in February he said some Moroccans were ""scum"". Two months ago he was convicted of hate speech in a trial over a promise to reduce the number of Moroccans in the country. Mr Wilders is highly unlikely to be able to form a government and so become leader, but a win for his party would be significant in the first European general election since Mr Trump became president in the US. It would also foreshadow next month's presidential election in France, where far-right, anti-EU contender Marine Le Pen has widespread support, and September's election in Germany, where another right-wing party, Alternative for Germany, is likely to win seats for the first time.", -2154,2017/3/13,http://www.bbc.co.uk/news/business-39257259,Asda offers staff a pay rise for 'flexible' contract,Asda is offering staff a higher wage in exchange for a new contract which will introduce unpaid breaks and a requirement to work over Bank Holidays.,"Asda is offering staff a higher wage in exchange for a new contract which will introduce unpaid breaks and a requirement to work over Bank Holidays. The supermarket group will pay its workers ?8.50 an hour, above the ?7.50 National Living Wage rate due to come into force in April. The ""flexible"" deal means Asda's 135,000 staff can work around the store, on different days and hours. Asda says signing is voluntary and it is not a zero hours contract. However, it means that employees must work on bank holidays if the store needs them to, or, if they want to take the time off, it must come out of their 28 days of annual leave. Additionally, all breaks will be unpaid and Asda will alter its night shift window. Currently, workers are paid an extra ?2.04 for unsociable hours that run between 10.00pm and 6.00am. Under the new agreement, unsociable hours will be cut to between midnight and 5.00am but the premium rate will rise to an additional ?2.54 an hour. The new contracts have been given the seal of approval by the GMB union. Its general secretary, Tim Roache, said: ""These new flexible contracts will help to ensure job security, ensure those accepting them are on the same terms and - best of all - ensure that people will earn more money as a result. ""The new contract offer involves quite a few changes, but as it's voluntary, this allows colleagues to choose whatever suits their circumstances best."" However, Living Wage Foundation, which campaigns for pay levels based on the cost of living, said that Asda should go further. ""This is a welcome pay rise for Asda's staff, however large national retailers like Ikea, Lush and Majestic Wine are already paying all their staff - including third party contractors - the real Living Wage or above at ?8.45 in the UK and ?9.75 in London for every hour worked,"" said Katherine Chapman, director of Living Wage Foundation. ""By signing up with the Living Wage Foundation they are ensuring that all their staff will have a pay rise that meets the rising cost of living year on year,"" she said. Asda, which is owned by US retail giant Walmart, claims that 95% of its staff will be better off under the new deal, which will be introduced in October. It said it was ""maintaining its commitment not to use zero hours contracts and colleagues will be guaranteed minimum hours"". Asda added: ""Whilst the new contract will require colleagues to be flexible, fair and reasonable notice will be given for any changes to rotas, and consideration will be given to those with care requirements outside of work."" The UK's third-biggest supermarket chain, after Tesco and Sainsbury's, has been struggling with declining sales. In the most recent quarter, over the Christmas period, it reported a 2.9% fall in like-for-like sales. However, the rate of decline in sales has slowed as it reported steeper drops in previous quarters.", -2155,2017/3/13,http://tass.com/economy/935291,"Russian, Mongolian experts to meet for discussion of power plants in Lake Baikal area",Russian environmental and scientific circles have repeatedly expressed their concerns about Mongolia's plans to build three dams at rivers that feed Lake Baikal,"MOSCOW, March 13. /TASS/. Experts of Mongolia and Russia will hold the first meeting in June to discuss construction of a chain of hydropower plants (HPP) on the Selenga river and its feeders, Mongolia's Ambassador to Banzragchiin Delgermaa told TASS on Monday. ""A mutual decision was made according to results of the intergovernmental commission meeting [in December 2016 - TASS] that we will exchange information in the first instance,"" the diplomat said. ""Mongolia has a conclusion of a French expert company that also built HPP in Russia regarding two our projects. According to their conclusion, construction of the HPP will not actually exert negative influence on environment. However, Russia has its conclusion and its studies,"" the ambassador said. ""It was decided to set up a joint research team with scientists and experts of both sides,"" Delgermaa said. ""We suggested holding the meeting with participation of Russian and Mongolian experts in March but the Russian party made a proposal to postpone such a meeting until June,"" she said. The Baikal Lake is unique, the ambassador said. ""This is not merely the Russian but also the global treasury. Therefore we will undertake measures to prevent environmental problems and will jointly settle arising issues,"" the diplomat added. Russian environmental and scientific circles have repeatedly expressed their concerns about Mongolia's plans to build three dams at rivers that feed Lake Baikal, the world's largest and deepest freshwater lake and a UNESCO World Heritage site. Under the plan, three dams are to be built: one at the Selenga River, that accounts for some 80% of all water that flows into the lake, and two at its main tributaries - the Eg River and the Orkhon River. The announcement coincided with the unprecedented decline in the Baikal water level that started in fall of 2014 and continued through 2016.", -2156,2017/3/13,http://tass.com/world/935289,Mongolian PM to visit Russian in first half of 2017,,"MOSCOW, March 13. /TASS/. Mongolia's Prime Minister Jargaltulga Erdenebat will pay a visit to Russia in the first half of 2017, Mongolian Ambassador to Russian Banzragchin Delgermaa told TASS on Monday. ""At a meeting of the intergovernmental commission in Ulan Bator in 2016, we had a very efficient discussion of issues in all spheres, not only in the trade-and-economic sphere but also in humanitarian and other areas,"" she said. ""We have already adopted a detailed plan to deal with the problems that have been piling up for years, including railway transport, excise duties during railway shipments, building a water storage facility, cooperation in border regions. Our embassy is working with Russian ministries and agencies in all spheres."" ""As for concrete results, we expect that about 40-50% of problem issues in relations between our countries will be regulated and resolved in practical terms before the Mongolian prime minister's visit which is expected to take place in the first half of this year,"" the ambassador said, adding that the next regular meeting of the intergovernmental commission is scheduled to be held in Moscow in late 2017. Russian Prime Minister Dmitry Medvedev visited Mongolia in July 2016. He had a series of bilateral meetings with Mongolia's top officials and took part in a summit meeting of heads of state and government of ASEM (Asia-Europe Meeting) member states.", -2157,2017/3/13,http://tass.com/politics/935287,Russian Embassy in UK urges London to stop anti-Russian campaign,"The campaign is harming bilateral relations, according to the embassy","LONDON, March 13. /TASS/. The Russian Embassy in the UK has urged London to stop its anti-Russian campaign harming bilateral relations, says a press statement posted on the embassy website on Monday. ""We call upon the British side to stop its anti-Russian campaign which undermines our bilateral relationship,"" the embassy said citing media reports ""on the warning issued by GCHQ/National Cybersecurity Centre (its director C.Martin) to the British political parties on presumed ""Russian threat"" of meddling in the next elections due in 2020"" as well as on the news that Prime Minister Theresa May had appointed ""an anti-subversion minister"" amid fears of Russia's possible action. The UK government refuted the news of appointing the UK minister for anti-subversion over Russia-related concerns, but the Russian Embassy marked that this did not change noticeably a general information background, pointing that such news is not published for no special reason. ""The embassy's position does not change: where there's smoke, there's fire, irrespective of whether the formal appointment did take place,"" an embassy source told TASS, noting also that information about a briefing for political parties had not been refuted. ""The embassy reacts to reports by mainstream media outlets,"" the source added. ""...already for a long time a brutal propaganda campaign has been underway to paint Russia as a country engaged in undermining Britain, including through hacking,"" the embassy said on its website. ""Key to all this is that those allegations are not supported by any evidence or facts. And the Foreign Secretary had to admit that. Still, the campaign is going on, and the British people are being scared by the so-called ""�Russian threat""?"" it added. On Sunday, British Foreign Secretary Boris Johnson said ""We have no evidence the Russians are actually involved in trying to undermine our democratic processes at the moment. We don""t actually have that evidence.""", -2158,2017/3/13,http://tass.com/science/935282,US astronaut's spaceflight to be financed by Russian corporation as debt repayment,The Soyuz MS-06 spaceship due to be launched to the International Space Station on September 13,"MOSCOW, March 13. /TASS/. U.S. astronaut Joseph M. Acaba will fly to the International Space Stations (ISS) as a third crew member of the Soyuz MS-06 spaceship. His flight will be financed by Russia's Rocket and Space Corporation Energia as debt repayment to US""?Boeing under the joint project Sea Launch, a source in the Russian space industry told TASS on Monday. ""Joseph Acaba has been appointed as a member of the main crew of the Soyuz MS-06 spaceship due to be launched to the International Space Station on September 13. Shannon Walker has been appointed as a member of backup crew. Most likely, she will be subsequently chosen as a main crew member of the Soyuz MS-08 spacecraft due to fly to the ISS in March 2018,"" the source said. A spokesman for the cosmonaut training center told TASS on Monday the two U.S. astronauts are to begin pre-flight training but did not specify which crews they have been appointed to. According to earlier reports, under an amicable agreement reached by Energia and Boeing as part of debt repayment under the Sea Launch project, the Russian corporation will give the American side five seats aboard Soyuz spacecraft, in particular one seat in 2017, one seat in 2018, and an option on three seats in 2019. Energia's debt to Boeing was 330 million US-dollars, as was ruled by a California court in 2015. In the summer of 2015, the sides reached an amicable agreement where Energia undertook to repay its debt by means of works and new projects. Acaba and Walker were named NASA astronaut candidates in May 2004. Both have already made a spaceflight aboard a Russian Soyuz spaceship.", -2159,2017/3/13,http://tass.com/politics/935274,Court rules to keep opposition activist Navalny's shares seized in Yves Rocher case,"On December 30, 2014, Moscow's Zamoskvoretsky Court found the Navalny brothers guilty of embezzling Yves Rocher funds","MOSCOW, March 13. /TASS/. The Moscow City Court has upheld a lower instance's ruling to keep the shares and bank accounts of opposition blogger Alexei Navalny seized in the Yves Rocher embezzlement case, a TASS correspondent reports from the courtroom. ""To leave the ruling by Moscow's Zamoskvoretsky Court unchanged and deny granting a complaint of the counsel for the defense,"" the judge read out the court's decision. The Zamoskvoretsky Court earlier ruled to seize Alexei Navalny's assets comprising securities represented by equities and funds on bank accounts worth a total of about 36,000 rubles ($610). Counsel for Navalny's defense Vadim Kobzev considers the court's ruling unlawful and earlier requested to repeal it. According to the attorney, Navalny ""has no financial obligation unfulfilled, no civil litigations or unpaid penalties."" The complaint was examined in Navalny's absence. On December 30, 2014, Moscow's Zamoskvoretsky Court found the Navalny brothers guilty of embezzling Yves Rocher funds and sentenced Alexey Navalny to a suspended sentence of 3 years and 6 months, while Oleg Navalny was sentenced to 3 years 6 months in a general-security colony. The court also ordered the Navalny brothers to pay over 4 million rubles ($65,000) in compensation under a lawsuit filed by Multiprofile Processing Company recognized as an affected party under the embezzlement case, and also fined each brother 500,000 rubles ($8,300). The Moscow City Court later upheld the verdict and relieved Alexei Navalny of the additional punishment in the form of the 500,000-ruble fine due to procedural violations. In late 2015, Alexei Navalny repaid all the liabilities both for himself and his brother.", -2160,2017/3/13,http://tass.com/politics/935275,"SCO playing major role in rebuffing drug threat ""?Russian Foreign Ministry",Russian Deputy Foreign Minister Oleg Syromolotov stressed the necessity of establishing an anti-drug segment within the SCO,"MOSCOW, March 13. /TASS/. The Shanghai Cooperation Organization (SCO) plays a major role in repelling new challenges and threats, including in fighting against illegal drug trafficking, Russian Deputy Foreign Minister Oleg Syromolotov said on Monday. Syromolotov is leading a Russian delegation to the current session of the United Nations Commission on Narcotic Drugs in Vienna. On Monday, he took part in a conference dedicated to efforts against drugs and terrorism financing organized by the SCO and the United Nations Office on Drugs and Crime on the sidelines of the Commission's session. He stressed the necessity of establishing an anti-drug segment within the SCO that would serve as a basis for an efficient mechanism of rebuffing global drug expansion, including from the territory of Afghanistan. ""This task is especially topical in the light of inefficient actions of NATO contingents and structures in exterminating drug production in Afghanistan,"" the Russian foreign ministry said. ""The Russian representative provided detailed information about the system of training anti-drug personnel for Afghanistan and Central Asian states on the basis of relevant education establishments of the Russian interior ministry, and about further steps geared to develop this important anti-drug component,"" the ministry said. ""Special attention was focused on the problem of preventing financing of terrorist activities through drug trafficking proceeds.""", -2161,2017/3/13,http://tass.com/sport/935267,McLaren backs whistleblower Rodchenkov's claims on alleged doping abuse in Russia,The head of the WADA Independent Commission Richard McLaren said there were no grounds not to trust Grigory Rodchenkov,"LAUSANNE, March 13. /TASS/. Richard McLaren, the head of the WADA Independent Commission, said on Monday he had no reasons not to trust the testimony of Grigory Rodchenkov, a former head of Moscow anti-doping laboratory, regarding allegedly widespread doping abuse in Russian sports. Addressing on Monday the annual WADA Symposium, held in Lausanne on March 13-15, McLaren said there were no grounds at all not to trust Rodchenkov, whose testimony laid the basis for the now-infamous McLaren report. Last June, the Russian Investigative Committee launched a probe into a number of officials, who held managing posts with the All-Russia Athletics Federation (ARAF) between 2009 and 2013, on charges of official misconduct. The Russian investigative bodies also launched a separate probe against Rodchenkov. The probes followed the suspension of the whole Russian track and field team from the all international events, including the 2016 Summer Olympic Games in Brazil, following findings delivered in a WADA Independent Commission's report led by McLaren. The WADA Independent Commission, chaired by Canadian sports law professor McLaren, delivered two parts of its report last year, namely in July and in December, on the alleged doping abuse and manipulations by Russian athletes and officials. Among the findings mentioned in the McLaren report were allegations that bottles containing the doping samples were tampered with, including during the 2014 Olympic Games in Sochi. The report claimed that some of the bottles had scratches, which meant they were previously opened and tainted samples were allegedly replaced with clean urine. The WADA Independent Commission decided to launch its investigation last year following media reports based on testimony from Rodchenkov. Rodchenkov told Western media in the spring of 2016 that Russian athletes largely used performance enhancing drugs at the 2014 Olympics in Sochi with the approval of the national sports authorities. On the whole, the ex-doping official claimed that the Russian sports authorities allegedly prepared a special doping program for national athletes in order to win most of the medals at home Winter Olympics in Sochi in 2014. Following Rodchenkov's allegations and McLaren's report, the IOC ordered a re-test of doping samples collected at the 2014 Olympics and the Russian Investigative Committee launched its own probe into statements made by Rodchenkov.", -2162,2017/3/13,http://tass.com/world/935268,"Berlin, Moscow seek to bolster city partnership, says mayor","Focusing on economic relations of the two capital cities, the Berlin mayor said sanctions slapped on Russia over Ukraine ""harm both sides""","BERLIN, March 13. /TASS/. Moscow and Berlin seek to give a boost to partnership, which could additionally win from the lifting of anti-Russian sanctions once the Minsk agreements are implemented, Berlin Mayor Michael Muller told TASS prior to heading for Moscow on Monday. The Berlin mayor said his talks with Moscow Mayor Sergey Sobyanin will focus on cultural cooperation, academic exchanges as well as transport and city planning. ""The signing of a memorandum that is expected to give a new boost to partnership relations of Berlin and Moscow is a major point,"" on the agenda, the Berlin mayor said. He said the cities were also eying a project aimed to support startups and socially-owned enterprises in Moscow and Berlin. Michael Muller is planning to also meet in Moscow with representatives of the civil society and non-commercial organizations. Focusing on economic relations of the two capital cities, the Berlin mayor said sanctions slapped on Russia over Ukraine ""harm both sides"". ""Their lifting is in the interests of both Berlin and Moscow, but for this certain terms must be met, namely the Minsk agreements,"" the mayor said. The Berlin mayor also marked a growing flow of Russian tourists to Berlin that had thinned at a certain point. ""After a certain decline, the number of Russian tourists visiting Berlin is growing once again, which is gladdening,"" he said. He believes the authorities of the two cities should also share experience in fight against terrorism. ""After a terror attack at a market, Berlin approved a package of measures aimed at protecting the citizens,"" Michael Muller said. ""It is necessary to improve the situation with security, maintaining at the same time the freedom of an open and democratic society,"" he said. The Berlin mayor faced transport problems ahead of his visit to Moscow when all flights from the German capital city were cancelled amid a strike at Berlin airports, and he had to head for Dresden to fly to Moscow. ""Because of the strike, he will have to fly from Dresden,"" the mayor's office told TASS, specifying that his flight was scheduled for 14:30 Moscow time, later than scheduled. The Berlin mayor will stay in Moscow until Wednesday, while the strike at Tegel and Shoenefeld airports is to end on Wednesday morning. So, if the trade unions don""t extend it, the Berlin mayor won""t have problems with getting back home. Late on December 19 a truck rammed into a crowd of Christmas shoppers at a fair in downtown West Berlin, on Breitscheidplatz near Kurfurstendamm Street. The truck steamrolled on for another 80 meters deeper into the market's territory. As a result, twelve people were killed and 48, some in critical condition, were taken to hospital. The Islamic State group (terrorist organization outlawed in Russia) claimed responsibility for the deadly attack.", -2163,2017/3/13,http://tass.com/world/935265,Attorney asks human rights institutions to monitor legal actions against Yanukovich,The Ukrainian prosecutor-general accused the ex-president of high treason,"KIEV, March 13. /TASS/. The counsel for the defense of ex-Ukrainian President Viktor Yanukovich has urged international human rights organizations to openly monitor legal processes initiated against him, Yanukovych's attorney Vitaly Serdyuk told TASS on Monday. ""We have initiated the monitoring of this process [against Yanukovich] by all international human rights organizations,"" the attorney said. The law association Aver Lex, where Serdyuk is a partner and an attorney, said that ""the counsel for the defense of Viktor Yanukovich has turned with open letters to Ukraine's Verkhovna Rada human rights envoy, Transparency International, Amnesty International, the Ukrainian Helsinki Human Rights Union and other human rights institutions with a request to hold open monitoring of judicial proceedings against him, including the high treason case."" The letters also contain a request ""to respond to the gross violations by the Ukrainian state bodies of his [Yanukovich's] rights to defense and respond to his constant political persecution."" The counsel for the defense argues it has provided proofs that the Ukrainian authorities are deliberately ignoring article 6 of the European Convention on Human Rights ""Right to a Fair Trial"" and article 11 of the Universal Declaration of Human Rights (a person is presumed innocent until proved guilty). ""A precedent is being created in Ukraine contrary to national and international norms for investigating the case without the participation of the person and with his deliberate deprivation of the possibility to give testimony and defense himself personally,"" Serdyuk said. At a court hearing on the case of Ukraine's former Berkut elite anti-riot police held on November 28, 2016 where Yanukovich was giving testimony via a video link, Ukrainian Prosecutor General Yuri Lutsenko read out a notice to the ex-president on opening a case against him. The Ukrainian Prosecutor-General accused the ex-president of high treason. Kiev's Pechyorsky District Court allowed on January 20 a pre-judicial investigation against Yanukovich in absentia. Overall, the Ukrainian Prosecutor General's Office has opened eight criminal cases against Yanukovich.", -2164,2017/3/13,http://tass.com/economy/935263,"Russia, Iran set to sign railway construction and electrification contract shortly","The contract has a total price over 1 bln euro, Russian Energy Minister Alexander Novak said","MOSCOW, March 13. /TASS/. Russia and Iran intend to sign a contract for construction and electrification of a railway in Iran as soon as practicable, Russian Energy Minister Alexander Novak said on Monday. ""The final document on the beginning of construction, upgrade and electrification of a railway in Iran will be signed shortly. The contract has a total price over 1 bln euro,"" Novak said. The draft intergovernmental agreement stipulates that Russia will extend a five-year credit to Iran in the amount of up to 1 bln euro. The project provides for electrification of 495 km long Garmsar - Ince-Burun railway line. Electrification will also cover 32 stations and 95 tunnels. 7 traction substations, 11 section pillars, 6 duty posts of the contact station and power supply administration building will be built. According to preliminary estimates, the project will be implemented in 36 months.", -2165,2017/3/13,http://www.dw.com/en/dutch-to-head-to-polls-amid-row-with-turkey/a-37922259?maca=en-rss-en-all-1573-rdf,Dutch to head to polls amid row with Turkey,General elections take place Wednesday in the Netherlands. The country's quarrel with Turkey adds a layer of tension from which both the populist Geert Wilders and the sitting prime minister can benefit.,"The diplomatic upheaval with Turkey could turn out to be a last-minute campaign gift for Dutch Prime Minister Mark Rutte. It gave him the opportunity to go on television over the weekend to reinforce his leadership image. ""We have drawn a red line,"" he said of the decision to ban two Turkish ministers from public appearances related to an April referendum in Turkey. In the televised address, Rutte called his country's 400,000 citizens of Turkish descent ""Dutch citizens,"" a rejection of the Turkish government's attempt to appeal to their Turkish roots. At the same time, Rutte emphasized that he had phoned the Turkish prime minister eight times in a bid to ease tensions. But he added: ""We will not be blackmailed."" Rutte lacks a popular touch Rutte's remarks could bolster his party's chances in Wednesday's election. The People's Party for Freedom and Democracy (VVD) is leading on 16 percent, according to the latest polls, which would make it the strongest party in the fragmented Dutch parliament. And, even before the row with Turkey, it had a strong record: Under its government, the Netherlands emerged from economic crisis. Now the economy is growing at 2 percent, while unemployment has dropped to 5 percent. Despite this, the prime minister is extremely unpopular, with voters mostly unhappy about promises that have gone unfulfilled in Rutte's second term, especially with regard to social benefits. This has made austerity measures he has introduced even more difficult to swallow. The Dutch also find it hard-to come to terms with his personality: Rutter, a bachelor, largely shields his private life from public view despite the Dutch tradition of openness as typified by the curtainless windows of most living rooms. Geert Wilders: A media sensation Meanwhile, prospects for Rutte's ring-wing populist opponent have been in decline for several weeks. Geert Wilders's Party for Freedom (PVV) currently ranks three percentage points behind Rutte's ruling liberals. Wilders has been running his campaign mainly from the safety of Twitter, after appearing before media in February to make a brief statement. Years of death threats have kept Wilders in near-isolation, surrounded by bodyguards. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Z7Jx -But now, with the campaign nearly over, Wilders has reappeared and participated in a public debate with Rutte on Monday night. He was also one of the first candidates to seize on the spat with Turkey and exploit it to his own ends. But the prime minister had the advantage over him of-being able to take action and not having-to make do with-merely voicing indignation, like Wilders. Wilders probably had his-biggest success in the international press. Hundreds of articles have been written there about his past, his questionable financial sources and his increasing radicalization over the years. He has been painted as the nemesis of the European Union, someone who could bring about a Dutch exit from the bloc and boost right-wing populism across Europe. But if current polling, which shows 87 percent of the Dutch electorate against Wilders, is accurate, he would not be able to form a government, much less lead an anti-EU movement. He seems to be, in the main, a media sensation. A broad coalition needed to govern At present, six parties could receive double-digit support in the election, at least four of which may be necessary to form a government - though no party says it is willing to work with Wilders's PVV. Lengthy coalition negotiations would not be new to the Netherlands, and could yield a partnership among the Democrats 66, the Christian Democrats, the Socialists and the Greens. Klaver is seen as a political wunderkind Greens leader Jesse Klaver has been as much a campaign sensation as Wilders, but from the other side of the political spectrum. His family is of Moroccan-Indonesian descent - incidentally, Wilders is also partly Indonesian - and his message is one of hope and unity, in favor of the EU and againstWilders' populist rhetoric, which Klaver blames for damaging the country's global reputation. A campaign event at an Amsterdam concert hall drew 5,000 mostly young voters - the largest such political gathering in Dutch history. Under Klaver's leadership, the Greens have gone from 3 percent support to 11, according to the most recent polls. The Netherlands, a founding member of the European Union and its forerunner the European Economic Community (EEC), is a dynamic economy, with stable GDP growth, low unemployment rate and a market-friendly economic model. -Still, right-wing populists are expected to perform well in the coming elections. What are the reasons behind this trend? Political and socio-economic problems are growing in complexity in an increasingly globalized world. Many are feeling overwhelmed as a result. Seeing this as a chance, Dutch populists are pushing hard for a breakthrough at the ballot box. Their leader is Geert Wilders, of the Party for Freedom (PVV), who with his simple answers to complicated issues seems set for a dramatic electoral performance. When he took over the reins of his country, Prime Minister Mark Rutte promised solid economic growth and rising prosperity. He has delivered on these fronts: the economic data appear unambiguously positive. But the problem is that the growth and prosperity have not affected many Dutch from lower and middle classes, whose living standards haven't improved over the past five years. - Rutte had also pledged not to pour Dutch taxpayer money into bailing out fellow eurozone economies. The PM, however, had to backpedal on this pledge immediately after taking office and grant an aid package for Greece. The move undercut Dutch voters' trust in his government. Decisions like rising the retirement age to 67 and slashing the social benefits have not helped either. The Dutch soon realized that they have actually been paying a hefty price for the boom. They have had to take cuts to their unemployment benefits and reduce spending on healthcare. The fruits of economic expansion haven't reached the ordinary citizen. While the jobless rate has dropped, many Dutch workers are still finding it difficult to earn enough to maintain their living standards. Under these circumstances, it's unsurprising that nationalist sentiment is on the rise ""?even in Dutch society whose liberal values have served as an ideal for many other European nations over the years. In response, the Netherlands has turned against taking in asylum seekers. The prevailing national mood favors Geert Wilders electorally. - Wilders' campaign rhetoric focuses on migrants, particularly Muslims. He seldom appears in public without warning that his country faces the ""threat of Islamization."" Similar to Donald Trump's strategy of blaming Mexicans for every US woe, Wilders points to ""Moroccans"" for the Netherlands' problems. Islam is most visible in Europe through its places of worship, and many people simply do not want any more of them - another reflex that Wilders exploits. He calls for a nationwide ban on mosques and the Koran, argues against the ""Islamic ideology,"" criticizes the euro and challenges the survival of the EU. He does this while promising the voters better elderly care and a hike in pensions. Wilders has been able to score points amid growing voter dissatisfaction. But parties with radical agendas in the Netherlands have so far failed to turn their good poll ratings into votes. -Still, the argument that the country needs to build high barriers seems to be gaining traction; to protect itself from the waters of the North Sea and, for Wilders' followers, against migrants and refugees. - Author: Dirk Kaufmann (sri)", -2166,2017/3/13,http://www.dw.com/en/they-just-need-to-fly-high-enough-airbus-presents-flying-car/a-37921954?maca=en-rss-en-all-1573-rdf,'They just need to fly high enough' - Airbus presents flying car,"Airbus has unveiled a conceptual flying car called Pop.Up, showcasing its futuristic vision of how to fly over crowded city streets. Mathias Thomsen, Airbus' manager of urban air mobility, talks to DW about the project.","DW: The Pop.Up, a capsule that can connect with a driving module as well as a drone-like airborne module, is a cooperation project between Airbus and the transportation company Italdesign. What is the division of labor like? Mathias Thomsen: We call it a research partnership because really it's been an exploration of new urban mobility concepts. We can see that the automotive industry-and the aerospace sector, which we represent, are converging quite a bit when it comes to new mobility technology. Italdesign is a reference point for the automotive sector when it comes to innovation and engineering. And on our side, we are working on urban air mobility, which is about using the city sky to go from A to B. So we joined forces and looked at different concepts and came up with Pop.Up together. How flexible is the zero-emission Pop.Up vehicle? Say I'm driving down a road and come to a stop because of congestion. Could the air module pick me up right there or do I need to drive to a certain spot for the connection? Thomsen: Pop.Up will map your perfect route on the road and above it At the point of ordering your transportation service, the Pop.Up system will help you choose the best combination of modes of transport, depending on the urgency of your trip and your willingness to pay for different modes. In case you're not in a hurry, maybe you'll drive or do an intermodal connection if it's a longer trip. If you are in a hurry, or if you need to cross a part of town which is very congested, air mobility could be added. So this would be a seamless journey that you order - the different modes would be combined and optimized. So could the air module pick me up anywhere or is the idea to set up certain spots where you can switch from one to the other? Such a service is likely to start with certain take-off and landing areas which are fitted with infrastructure to charge or handle the electric vehicles. But in addition to these ""verti-ports,"" as we call them, it should also be possible over time to be picked up and dropped off at any place where there is enough space. So it will likely start with a few number-of locations and then over time grow into many more locations.- What about-the organizational side of things? Would I have a membership where I can use Pop.Up whenever I need it, or is it more of an Uber model where I pay per trip? The concept is envisioned as a mobility service that you request with an app or another device and then you're simply picked up and dropped off where you want to go. But the model could also change. Maybe the capsule can be changed and customized to yourself, while the ground modules and air modules are likely to be operated by mobility service providers. At which height would the air module and capsule fly? They don't need to fly very high as long as they clear the city buildings. They just need to fly high enough so that they're not a nuisance for anyone. The exact configuration of the airspace remains one of the topics to be determined together with cities and air traffic managers, who are responsible for safe navigation in the air. That brings me to the next question: are you considering road structures in the air to avoid collisions? These things can go pretty fast, after all - 100 kilometers per hour. They can't just fly wherever they want, especially when more and more of these vehicles go up in the air. That's correct. The safe route management of air mobility will require new software-based air traffic control. Today the air is still managed by air traffic controllers who are directly in contact with pilots aboard aircrafts. In the future where vehicles like these are self-piloted, the connection between the vehicle and the air traffic system will happen via software and algorithms. Pop.Up would also have to work together with other flying vehicles and objects like perhaps smaller packaging drones. The Pop.Up in three parts: the capsule in the center can connect to either the ground- or the air module The Pop.Up vehicle would drive and fly autonomously, with the person aboard merely a passenger. So who is liable if an accident happens? I think the question of liability and responsibility is a very important one and something that we are working closely on. The exact liability definitions and legal frameworks are not yet in place. It's an area that's obviously also being discussed for terrestrial autonomous vehicles like driverless cars. We expect that over the course of the next seven to ten years, which is our timeline for a project like this, appropriate answers can be provided to these questions. Who will own the user data that is to be gathered and stored by the vehicle and the mobility service provider? Our vision here doesn't answer yet how these things are dealt with and by whom. It talks mostly about the service it can create. I think that's a question we will be answering over the course of the technology development. What's the time plan for Pop.Up? When can I first use it? At this point, Pop.Up is a study, it's a concept. We will use the feedback from the market, the press and all the people who are engaging in the discussion to develop our own thinking about the ideal urban air mobility vehicle. There is no specific plan to build the Pop.Up right now, but the positive interest we've experienced in the project is likely to influence our design thinking over the coming years. Mathias Thomsen is general manager of urban air mobility at Airbus.", -2167,2017/3/13,http://www.dw.com/en/rutte-says-dutch-voters-can-stop-nationalist-domino-effect/a-37922088?maca=en-rss-en-all-1573-rdf,Rutte says Dutch voters can stop nationalist 'domino effect',"The prime minister said that the Dutch election could cause a ripple effect across Europe in favor of ""the bad kind of populism."" France and Germany also face an emboldened populist right in elections later this year.","Ahead of his first television debate against Geert Wilders on Monday night, Dutch Prime Minister Mark Rutte called on Dutch voters to reject nationalist populism. Two days ahead ofparliamentary elections, center-right Rutte said that if the Dutch electorate were to embrace Wilders and the PVV, they could trigger a ""domino effect"" in favor of extreme nationalism. Using sports metaphors, he said that the upcoming parliamentary election on Wednesday were the ""quarter finals"" in the battle of moderate forces against right-wing radicals, while the French presidential election in April and May were the ""half final"" and Germany's September election marked the ""final."" ""I want the Netherlands to be the first country which stops this trend of the wrong sort of populism,"" he told reporters. Wilders, the head of the right wing radical Party for Freedom (PVV), had previously refused to take part in several debates. Rutte's centre-right People's Party for Freedom and Democracy (VVD) is thought to be the strongest contender in the parliamentary election, closely followed by Wilders' PVV. Rutte said there was a real chance that Wilders might emerge victorious The VVD is currently polling at roughly 16 percent, the PVV at 13 percent. Unless Wilders' party performs far beyond expectations, it is seen as highly unlikely that it will be involved in the next government - nearly all other parties have said they will not form a coalition with the PVV. The prime minister warned that the PVV could still win, even though their-poll numbers have-recently declined. ""Remember Brexit. We all thought that could never happen. Remember the US elections,"" Rutte told reporters. Ahead of the Wednesday election, a diplomatic row with Turkey has dominated the Dutch news cycle. Rutte's administration had refused to let the Turkish ministers campaign for the upcoming constitutional referendum in the Netherlands --a referendum that could significantly strengthen Turkish president Erdogan and his right-wing, nationalist Justice and Development party. mb/rc (AFP, AP, dpa)", -2168,2017/3/13,http://www.dw.com/en/report-immigrants-no-threat-to-jobs-in-south-africa/a-37919774?maca=en-rss-en-all-1573-rdf,Report: Immigrants no threat to jobs in South Africa,"Just weeks after a fresh wave of anti-immigrant protests, South Africa's Institute for Race Relations has released a report highlighting immigrants' entrepreneurial skills and their sizable contribution to the economy.","Rian Malan, a-research fellow at the Institute for Race Relations (IRR) in Johannesburg, said that immigrants in South Africa-are able to succeed in an environment in which South Africans themselves-have found it very difficult to survive. ""Foreigners arrive here, they have no right to be here. They have no papers. They are desperate,"" he told DW. Yet according to the IRR's report ""South Africa's Immigrants - Building a New Economy,"" most refugees and immigrants who come to South Africa seeking a better life manage to find it.---- The report cites jobless figures as evidence. Unemployment among immigrants stands at around 14.6 percent, which roughly a half to a third of the local rate for the whole population. Small businesses IRR's research found that foreign nationals from countries such as Somalia, Pakistan and Bangladesh start up their own businesses on arrival in South Africa. They range from small convenience stores to wholesalers.- The foreign entrepreneurs keep their profit margins low giving them an edge over the competition. The IRR also found that immigrants-are good at money management.----- The report says the majority started out with 5,000 rand (357 euros,-$380) or less in capital. Within three years, all had doubled the value of their business and 40 percent had amassed 50,000 rand or-more.- A lone demonstrator makes has statement during xenophobic violence in South Africa in 2015 When xenophobic violence erupted in 2008, in 2015 and earlier this year, it was accompanied by accusations that foreign nationals were taking jobs away from South Africans.-The IRR's report shows, however, that that most of the immigrants create their own employment. In addition, the premises for the small convenience stores that immigrants run are generally owned by South Africans - landlords who receive rent.- A benefit to South African Kerwin Lebone from the IRR's-Center for Risk Analysis, which advises the private sector, government departments and foreign governments, said that the presence of foreign nationals in the country could have a positive influence on those South Africans who want to improve their livelihoods without relying on the state.- Eighty percent of the convenience stores, known as spaza shops,-are now owned by foreign nationals. ""There is already a foundation for a good working relationship between locals and foreign nationals,"" Lebone said. Not all immigrants opt for self-employment. Those looking for jobs have often been able to find them in sectors shunned by South Africans because of poor wages.- But the report-says that even those immigrants have been able to improve their-situation despite meager incomes. South Africa's immigrants, the report concludes, seem to have adapted well to life in a country with 27 percent unemployment. The document-urges policymakers to ensure that all citizens benefit from their experience.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1FbCr -", -2169,2017/3/13,http://www.dw.com/en/gazprom-makes-concessions-to-settle-eu-antitrust-probe/a-37921607?maca=en-rss-en-all-1573-rdf,Gazprom makes concessions to settle EU antitrust probe,The Russian gas giant has agreed to a set of commitments to settle an investigation into whether it is breaking EU antitrust rules with its huge European market share and in some countries an outright monopoly.,"The settlement announced by EU Competition Commissioner Magrethe Vestager on Monday includes greater contractual freedom for countries dealing with Gazprom - the Russian energy behemoth which has long dominated the market of gas distribution in eastern and central Europe. Vestager said Gazprom had now come forward with commitments seeking to address EU concerns, adding that competitors and customers were now invited to voice their opinions on the deal as part of the EU process of deciding whether the terms are Polish energy concern PGNiG says it's won a European Court of Justice stay on high-volume gas deliveries by Russia's Gazprom through the pipeline ""OPAL."" The conduit forwards supplies to the Czech Republic and Germany. (27.12.2016) Russia has said it is halting its gas supplies to Ukraine, waiting for Kyiv to make more upfront payments. Energy giant Gazprom sees serious risks to secure gas transit to Europe via Ukraine this winter. (25.11.2015) Ten eastern European governments have sent a letter of complaint to the European Commission that called for a summit-level debate on Russia's plans to extend its infrastructure for gas supplies to Germany. (27.11.2015) The Baltic Sea island of Gotland is planning to reject a request by Gazprom to rent its harbor. The decision comes amid growing security concerns over Russia's influence in Europe. (14.12.2016) acceptable. Noting that the commitments would ""better integrate"" gas markets in the region, she said: ""We believe that Gazprom's commitments will enable the free flow of gas in Central and Eastern Europe at competitive prices."" Greater freedom The EU has been investigating Gazprom since 2015 over claims it abused its dominant position in these markets. The bloc's executive, the European Commission, noted at the time that it believed the company had been breaking antitrust rules by ""pursuing an overall strategy to partition central and eastern European gas markets."" The remedies now offered by Gazprom also include removing restrictions on customers re-selling gas across borders, ensuring that gas prices are tied to competitive benchmarks. Gazprom will also be barred from taking undue advantage of infrastructure which it has obtained from customers by having leveraged its market position in gas supply. Under EU rules, a company found in breach of anti-competition rules is liable to a fine of up to 10 percent of annual sales, in Gazprom's case nearly 83 billion euros ($88.5 billion) in 2015. Vestager noted that Gazprom was still facing such a fine if it violated the commitments. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1C7sx uhe/sri (dpa, AFP) -", -2170,2017/3/13,http://www.dw.com/en/two-un-officials-kidnapped-in-dr-congo/a-37921480?maca=en-rss-en-all-1573-rdf,Two UN officials kidnapped in DR Congo,"Two UN officials on a peacekeeping mission have been kidnapped in the Democratic Republic of Congo. The victims, a US national and a Swede, had been probing clashes in the devastated Kasai Central province.","The Congolese government confirmed on Monday that the two United Nations officials had ""fallen into the hands of negative forces"" near the village of Ngombe-in the Kasai Central province. A government statement identified the officials as Michael Sharp, a US national, and Zaida Catalan, a Swede. Four Congolese nationals travelling with the pair - three motorcycle-taxi drivers and an interpreter - were also abducted. Following the death of its leader, DR Congo's main opposition alliance could disintegrate before an interim administration is formed. This would play into the hands of President Joseph Kabila. (09.03.2017) A number of killings have taken place recently in the DR Congo (DRC), including one allegedly perpetrated by military personnel. Nick Elebe says that it is necessary to have a real response to real issues. (21.02.2017) An estimated 25 people, mostly Hutus, have been hacked to death with machetes by militiamen from the Nande ethnic group in eastern Democratic Republic of Congo. They were reportedly beheaded by the attackers. (19.02.2017) ""The administrative and security services are working ... in concert with Monusco (the U.N. mission) to obtain the liberation of the kidnapped persons,"" the statement, signed by Information Minister Lambert Mende, said. Officials said they had not identified which group was behind the kidnapping. Charles-Antoine Bambara, the spokesman for the MONUSCO peacekeeping mission, indicated-that the group had been missing since Sunday. Another UN spokesman said that UN peacekeepers were also searching for the missing group, without giving further details. DRC's violence-wracked region Sharp and Catalan were in the Democratic Republic of Congo's (DRC) Kasai Central province as part of a panel of UN experts investigating the conflicts that have ravaged the central African country since the mid-1990s, when a deadly civil war spawned dozens of armed militia groups competing for stakes in the country's rich mineral resources. The densely-forested Kasai Central province has in particular been consumed by clashes between tribal militias and security forces. The UN has reported that since August, when forces killed a local militia leader, more than 400 people have been killed and 200,000 displaced. The UN High Commissioner for Human Rights, Zeid Ra'ad al-Hussein, also revealed last week that inspectors had discovered three mass grades in the area. That week, a Uruguayan peacekeeper was also shot and injured in the region. The UN has some 19,000 troops deployed in the DRC, making it the organization's largest and mostly costly peacekeeping mission. UN Secretary General Antonio Guterres-on Friday asked the Security Council to deploy an extra 320 UN police to the country after talks seeking to end a dispute over the presidential election broke down. dm/rc-(Reuters, AP, AFP)", -2171,2017/3/13,http://www.dw.com/en/former-egyptian-president-mubarak-to-be-released/a-37920250?maca=en-rss-en-all-1573-rdf,Former Egyptian President Mubarak to be released,"Former Egypt President Hosni Mubarak, who was overthrown in the 2011 Arab Spring, will be released from detention this week, prosecutors have said. Egypt's top appeals court last week cleared Mubarak of murder charges.","Former Egyptian President Hosni Mubarak will be released from detention this week, after he was acquitted of involvement in the killing of protesters during the 2011 uprising. Mubarak's lawyer, Farid al-Deeb, said that the former president would be allowed to return home to-Heliopolis ""when the doctors decide he is able to do so."" Mubarak, believed to be seriously ill, has been in detention at a Cairo military hospital, where he has spent most of his time since being overthrown and arrested in 2011. Egypt's top appeals court has acquitted ex-President Mubarak of involvement in protester killings during a 2011 revolt that ended his 30-year rule. The irreversible ruling could see Mubarak walk free. (02.03.2017) Amnesty International has castigated Egypt's authorities for undermining human rights groups in the country. It says the crackdown has escalated in 2016, five years after the post-Mubarak regime came to power. (23.03.2016) Egypt's high court of appeal has overturned a death sentence against former president Mohammed Morsi. How are Egyptians on social media seeing the verdict? (15.11.2016) Last week, Mubarak was acquitted of murder charges by Egypt's top appeals court. He was accused of inciting the deaths of protestors during the 18-revolt that ended his 30-year rule. An estimated 850 people died during the 2011 revolt. He was originally sentenced to life in 2012 for conspiring in the murder of 239 demonstrators; however an appeals court dropped the charges against the former president and his senior officials two years later. An appeal-by the public prosecution then led to a final retrial by the Court of Cassation, the highest in the country, which acquitted Mubarak on March 2. Mubarak and his sons, Alaa and Gamal, were also handed three-year prison sentences for corruption charges after being found guilty of appropriating funds reserved for maintaining presidential palaces. However, the prosecution subtracted-time already served. Both his sons have also been-freed. Mubarak's acquittal means that most charges brought against former Mubarak-regime members have been dismissed. Despite inspiring hope for democracy in Egypt, the uprising has effectively sowed years of instability and created a security vacuum.-Mubarak's Islamist successor, Mohamed Morsi, only served for a year before the military ousted and detained him in 2013, launching a violent crackdown on his supporters. Critics say that many of the abuses they fought under Mubarak have returned under current President Abdel-Fattah el-Sissi - a former army chief who ousted Morsi. dm/rc-(Reuters, AFP, dpa) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/16oQn", -2172,2017/3/13,http://www.dw.com/en/filipino-women-struggle-for-birth-control/a-37918902?maca=en-rss-en-all-1573-rdf,Filipino women struggle for birth control,"Philippine President Duterte wants more Filipino women to have access to contraceptives, which reportedly will run out in the Philippines by 2020 unless a Supreme Court order is overturned. Ana P. Santos reports.","In January, Philippine President Rodrigo Duterte issued an executive order calling for the full implementation of the so-called-Reproductive Health Law-that would give an estimated 6 million women in need access to birth control. According to government data, an estimated 2 million of those women are poor and require government assistance to access contraceptives. But unless the Supreme Court lifts its temporary restraining order (TRO)-on the registration of contraceptives, the Philippines may run out by 2020. ""Of course, we welcome the president's support, but it is not enough,"" Romeo Dongeto, head of advocacy group Philippine Legislators' Committee on Population and Development (PLCPD), told DW. In 2015, the Philippine Supreme Court issued the TRO preventing the Department of Health (DOH) from procuring, selling and distributing the contraceptive implant, Implanon. The order was issued in response to a petition filed by anti-abortion groups that claimed it caused abortions. When the DOH appealed for the lifting of the order, the Supreme Court rejected the motion and in August 2016 effectively expanded its effect when it put the renewal of licenses on hold for other contraceptives. ""To date, the most serious challenge to the implementation of the Reproductive Health Law is the Supreme Court's temporary restraining order, which would result in contraceptive stock-out in the country if it remains unsolved, affecting more than 13 million Filipino women,"" said Dongeto. A presidential executive order cannot overturn the Supreme Court order as the executive and judicial are equal branches of government. Public health emergency The Philippines has the highest rate of teenage pregnancy in Asia The imposition of the TRO for more than 18 months has had a drastic effect on reproductive health and government health officials warned that if it remains in force, the increasing number of unplanned pregnancies and maternal deaths could reach the scale of a public health emergency. ""Since 2015, when the TRO was first imposed, we estimate that half a million unintended pregnancies have occured,"" Juan Antonio Perez, executive director of the Commission on Population (POPCOM), said at a press conference. Based on the Philippines'-current maternal mortality ratios, POPCOM projects that these pregnancies will result in 1,000 maternal deaths every year. ""That is the equivalent of three jumbo jets of pregnant women dying every year,"" said Perez.""It would be equivalent to a public health emergency if the Supreme Court does not lift its TRO."" According to a United Nations report, the Philippines topped the regional list of Asian countries with high numbers of teen pregnancies. Globally, teen pregnancy rates have declined over the past two decades, except in the Philippines. Gradual decrease in supply Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Dh7r Another concern is the gradual elimination of contraceptives from the market. Under the TRO, product registrations expire that would allow for the sale and distribution of contraceptives. The total effect is the gradual phasing out of contraceptives from government clinics and pharmacy shelves. According to data provided by POPCOM, about 31 percent or about 15 brands of contraceptive certifications, expired as of December 2016. Currently there are 48 contraceptive brands in the Philippines. To date, there are a total of 20 contraceptive brands whose product registrations have already expired. ""What we are seeing now in the market, are just existing stocks that will eventually run out. By 2018, there will hardly be any more brands left and by 2020, there will be no more contraceptive brands available unless the Supreme Court lifts its TRO,"" added Perez. The TRO affects oral contraceptive pills, injectables and intra-uterine devices. While condoms are not affected by the TRO, the Department of Health said offering only condoms would not address the need to have choices. After more than a decade of fierce lobbying, the Reproductive Health Law was passed in December 2012. But in the years since then, the controversial law, which promises access to family planning commodities and information, has continued to divide the deeply Catholic country of more than 100 million. Immediately after it was passed, pro-life groups contested its constitutionality causing the Supreme Court to temporarily halt its implementation. In 2014, the High Court upheld the constitutionality of the law. In 2016, the health department's $21 million contraceptive budget was cut. But this confrontation with the Supreme Court will be its toughest battle yet. Considering that the Supreme Court is the court of last resort, if it decides to uphold the TRO, access to contraception could become a major public health issue in the Philippines. ""I don't want to even imagine that,"" DOH Undersecretary Gerardo Bayugo, told DW. ""I want to believe that we will continue to be allowed to provide the family planning products requested-by our people.""", -2173,2017/3/13,http://www.dw.com/en/intel-to-buy-driverless-tech-firm-mobileye/a-37919750?maca=en-rss-en-all-1573-rdf,Intel to buy driverless tech firm Mobileye,"US chipmaker Intel has announced it will buy Israeli tech company Mobileye. With the multibillion-dollar acquisition, Intel wants to obtain a leading role in the production of autonomous driving technology.","In what's deemed to be the biggest takeover of an Israeli technology firm ever, Intel said it would offer $63.54 (59.5 euros) in cash for each share in New York-listed Mobileye, amounting to an overall value of the buyout of $15.3 billion and an enterprise value of $14.7billion. The US chipmaker plans to integrate its automated driving group with Mobileye's operations, with the combined entity being run by Mobileye Chairman Amnon Shashua from Israel. The merger will create a portfolio, including cameras, sensor chips, in-car networking, roadway mapping, machine learning and cloud software, as well as the data centers needed to manage all the data involved. Intel chief executive Brian Krzanich said the deal would merge ""the eyes of the autonomous car with the intelligent brain that actually drives the car,"" with the goal of positioning Intel as a ""leading technology provider in the fast-growing market for highly and fully autonomous vehicles."" Stop! Look! Listen! Self-driving cars will soon decide more than just the routes we take. If we're not careful, self-driving cars will make moral choices for us, without our realizing, says Zulfikar Abbany. (26.04.2016) German carmaker BMW has announced that it's entered into a technology alliance with chipmaker Intel and computer vision specialist Mobileye. The move is meant to support the firm's focus on self-driving vehicles. (01.07.2016) German premium carmaker Daimler has announced a partnership with Uber to supply self-driving cars for the US ride-hailing company as the pair seeks to become leading players in the world of autonomous driving. (31.01.2017) Google will be spinning off its self-driving car project into a standalone business called Waymo, which stands for ""a new way forward in mobility"" and aims to make the US company a serious player in the auto industry. (13.12.2016) Intel said it expected the transaction to close within the next nine months and to immediately boost its earnings per share and free cash flow. The price represents a premium of around 33 percent to Mobileye's Friday closing price of $47 a share. Israeli pioneer Founded in 1999, Mobileye made its mission to reduce vehicle injuries and fatalities. After receiving an investment of $130 million from Goldman Sachs in 2007, it listed on the New York Stock Exchange in 2014. The company accounts for 70 percent of the global market for driver-assistance and anti-collision systems. It employs 660 people and had adjusted net income of $173.3 million last year. Yossi Vardi, seen as the godfather of Israeli high-tech, said the deal was a big endorsement of the whole sector. ""I'm sure that this ... will be a very important impetus to create a whole industry related to autonomous and connected vehicles (in the country),"" he said. Because Mobileye's Shashua will remain in charge and the combined entity will be based in Israel, analysts said they expected it to be far more difficult for rivals to mount a counter offer for Mobileye. Shashua and two other senior Mobileye executives stand to do well from-the deal: together they own nearly 7 percent of the company. Shmuel Harlap, Israel's biggest car importer and one of Mobileye's earliest investors, also holds a 7 percent stake. Cars of the future Already in January, Mobileye announced a partnership with Intel and BMW to put a fleet of 40 autonomous test vehicles fitted with its safety systems on the road by the second half of 2017. At the same time, Mobileye teamed up with Intel for its fifth-generation of chips that will be used in fully autonomous vehicles that are scheduled for delivery around 2021. Across the world, carmakers and suppliers have been setting up new alliances to develop self-driving cars. Last October, Qualcomm announced a $47 billion deal to acquire Dutch company NXP - the largest automotive chip supplier. This has increased the pressure on other chipmakers seeking to make inroads into the market for autonomous driving components, including Intel, Mobileye and rival NVIDIA. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Qc4b uhe/sri (Reuters, dpa) -", -2174,2017/3/13,http://www.dw.com/en/sportfreunde-lotte-aim-for-german-cup-upset-against-borussia-dortmund/a-37914381?maca=en-rss-en-all-1573-rdf,Sportfreunde Lotte aim for German Cup upset against Borussia Dortmund,"Lotte are this season's upstarts in the German Cup, having beaten two Bundesliga teams along the route to the quarterfinals. The third-division club have been rewarded with a money-spinning tie against Dortmund.","Osnabrueck's Bremer Br��cke stadium is to-be the venue as-Borussia Dortmund-turn their attentions this week to an intriguing German Cup clash against-third division Sportfreunde Lotte. The-match-was originally scheduled for February 28 at-Lotte's Frimo Stadium, but neither team put up an argument when the referee declared the water-logged pitch unplayable. The German FA and both clubs subsequently agreed to move the match-to this Tuesday - -and to play it 13 kilometers (eight miles)-to the east, in Osnabrueck. Despite-Sportfreunde Lotte being a third division side, Dortmund coach Thomas Tuchel is expecting a tough contest. ""They are a very courageous and passionate team, comparable to a second-division side. It will be hard work and won't necessarily be a lot of fun,"" Tuchel told the pregame press conference on Monday. Third in the Bundesliga and almost sure of a place in next season's Champions League, the Dortmund bench boss has prioritized winning his first title since he replaced J��rgen Klopp in 2015. Tuchel's side defeated Benfica with ease last week in the Champions League last 16, but went down 2-1 at Hertha Berlin in the Bundesliga. ""The result is annoying, but the performance was ok,"" Tuchel said of-Saturday's loss. Dortmund's policy of squad rotation will be put to the test against the lower-league opponents. Ousmane Dembele and Christian Pulisic were wrapped in cotton wool for the trip to the capital, with both coming off the bench for just the last quarter of an hours,-but Lotte's aggressive style may put both players at risk of rough treatment. With the quarterfinals of the Champions League coming up next month, Tuchel simply cannot afford extended layoffs for either player. It's not a Lotte-ry Since the original fixture was deemed unplayable, Lotte's two wins from three have moved them into third place in the league. Ismail Atalan's side - from a town of 14,000 --could yet achieve a second-successive promotion after taking them from the fourth tier to the third division at the end of last season. - Most recently, Lotte have-won 3-0 and 2-0 on home turf-against Chemnitz and Hansa Rostock, respectively. ""We have a chance. We're going to go out on Tuesday with the hope of winning the game,"" said the highly rated Atalan, who came to Germany as a child three decades ago as a Kurdish refugee from Turkey. Following in the footsteps of Julian Nagelsmann and Alexander Nouri from last year's graduates, the 36-year-old Atalan is working on-his elite coaching qualifications at the prestigious Hennes-Weisweiler Akademie in the western German town of Hennef. In his first season at Lotte, the Blue and Whites won the regional cup and earned promotion to the nationwide third division. This season, Atalan has masterminded victories over Bayer Leverkusen, Werder Bremen and second-tier 1860 Munich in the German Cup. If he carries on like this, it may be but a-matter of time before he is given an opportunity in the Bundesliga. ""We must show a high willingness to help, everyone has to work for everyone,"" Atalan said. ""The club, the team and myself, are looking forward to it. We all have earned it because of the achievements shown in the past two years but also to experience it all."" The winner of this meeting faces holders Bayern Munich in one-semifinal, while Borussia M?nchengladbach and Eintracht Frankfurt clash in the other in a bid to reach the May 27 final in Berlin.", -2175,2017/3/13,http://www.aljazeera.com/news/2017/03/aid-workers-kidnapped-famine-hit-south-sudan-170313155756330.html,Aid workers kidnapped in famine-hit South Sudan,US charity Samaritan's Purse says South Sudanese staffers detained by 'armed personnel' in country's north.,"Aid workers employed by a US-based Christian charity have been abducted in famine-hit South Sudan and negotiations were ongoing for their release. The local aid workers were taken from a village near Mayendit in-Unity state, where a famine has been declared,-680km northeast of the capital, Juba. The circumstances of the kidnappings was unclear. ""The rebels attacked and abducted eight local staff from Samaritan's Purse and they are being held to ransom,"" Brigadier-General Lul Ruai Koang told Reuters news agency. However, the rebels dismissed as ""propaganda"" the military's claim of a kidnapping, The Associated Press reported. READ MORE: Famine 'largest humanitarian crisis in history of UN' The charity confirmed the abductions in a statement, but denied a ransom had been demanded. ""We have been in contact with them and they have not been harmed. No ransom request has been made and we are hopeful that they will be released soon and safely,"" it said. South Sudan has been devastated by three years of civil war, with tens of thousands killed. The fighting has slowed the humanitarian response to the famine, and United Nations and aid groups have been pleading for access. An estimated 100,000 people are said to be at risk. Last week, South Sudan announced plans to charge a levy of $10,000 per foreign aid worker, which with the danger of abduction could hurt efforts to help the hungry. ""The situation in Mayendit, South Sudan, is a level 4 famine. We call on all the parties involved to immediately provide complete and unfettered humanitarian access in order to meet the needs of a starving population in order to save lives,"" the Samaritan's Purse statement said. Two Indian nationals working in South Sudan's oil fields in the northern Upper Nile region were abducted by rebels last week, Information Minister Michael Makuei said Monday. He said the kidnappers were demanding a ransom of one million dollars from the oil company - which he named as the partly Chinese-owned Dar Petroleum - or the government. ""The government of South Sudan will not pay the ransom,"" the minister-said, calling for the unconditional release of the hostages. WATCH: What can be done to save millions facing famine? South Sudan is trying to revive its oil production - the government's main source of revenue - which has plummeted because of the ongoing military conflict. A split between President Salva Kiir and his former deputy Riek Machar turned violent in December 2013. Tens of thousands have since been killed and 3.4 million displaced.- Aid workers have frequently complained of bureaucratic obstacles,-checkpoints where government or rebel troops demand payments from aid convoys, looting of compounds, and even the rape and murder of humanitarian workers. Source:-News agencies", -2176,2017/3/13,http://www.aljazeera.com/news/2017/03/duterte-china-benham-rise-sea-territory-170313144424024.html,Duterte to China: Benham Rise sea territory 'is ours',Philippine president tells military to assert country's ownership of ocean area where Chinese survey ships were sailing. 'Innocent passage',"President Rodrigo Duterte said he has instructed the military to assert Philippine ownership of a large ocean region off the country's northeastern coast, where China's survey ships were spotted last year, in a discovery that alarmed Philippine defence officials. Duterte said on Monday that he ordered the military to assert ownership of Benham Rise in a friendly way, repeating that his country has no option but to be diplomatic because it ""cannot match the might of China"". ""My order to my military, you go there and tell them straight that this is ours, but I say it in friendship,"" Duterte said in a news conference when asked about the issue in the waters facing the Pacific Ocean. The Philippine military spotted the Chinese survey ships suspiciously-crisscrossing the Benham Rise waters from July to December last year, defence chief Delfin Lorenzana said last week. WATCH: South China Sea, the world's next big war? He said the government is considering an increase in patrols and the building of territorial markers in the offshore region, which is believed to be rich in mineral resources and a ""vast"" coral reef ecosystem.- The Chinese ships' presence in the area was to be discussed late on Monday at a meeting between National Security Council executive members and Duterte. The Department of Foreign Affairs said it asked China through its embassy on Friday to clarify what the survey ships were doing in Benham Rise. In 2012, the UN Commission on the Limits of the Continental Shelf declared Benham Rise to be part of the Philippine continental shelf, where the country has exclusive rights to fish and exploit resources, including undersea deposits of oil and gas, Philippine officials said. The Chinese foreign ministry has said its ships have a right to ""innocent passage"" through the area under international law. Chinese foreign ministry spokesman Geng Shuang told reporters on Friday that while the UN gave the Philippines exclusive rights to exploration and development of natural resources in the area, ""it does not mean that the Philippines can take it as its own territory"". Beijing and Manila have a separate long-running territorial feud in the South China Sea west of the Philippines, but tensions have eased considerably since Duterte took office in June and began reaching out to China. He has placed the dispute on the backburner while seeking Chinese trade and economic aid, downplaying the issue during his visit to Beijing. Duterte has also shelved plans made under his predecessor for joint Philippine patrols with the US Navy in disputed waters to avoid offending China. A US Navy aircraft carrier, the USS Carl Vinson, has been sailing on a mission to ensure freedom of navigation in the sea, claimed virtually in its entirety by China. ""America wants to pick a fight there,"" said Duterte, who has openly criticised US security policies. ""Why would I get into a trouble in that area?"" Source:-Al Jazeera and news agencies", -2177,2017/3/13,http://www.aljazeera.com/news/2017/03/sweden-boosts-2017-military-spending-55m-170313164719600.html,Sweden boosts 2017 military spending by $55m,"Citing 'security concerns', Sweden plans to add tens of millions in military spending to a $5bn defence budget.","The Swedish will increase defence spending by tens of millions of dollars this year to bolster military capabilities in the face of growing security concerns. Defence Minister Peter Hultqvist announced on Monday the Nordic nation will pump an additional-$55.7m into military expenditures in 2017. ""We have seen a deterioration of the security situation over time, so it is important to respond to that with different measures and this is a part of that strategy,"" said-Hultqvist. ""We will now analyse and continue the discussions and get back to how we handle this,"" he said referring to the budget for 2018, which is due later this year. Sweden military service reintroduced 'to face threats' Sweden said earlier this month it would reintroduce military conscription in 2018 as the voluntary draft failed to fill the ranks at a time of increased security concerns. A resurgent Russia and tensions over the conflict in Ukraine prompted politicians to call for an improvement of military capabilities, which have been let to slide since the end of the Cold War. While the funds allotted were minor, political parties also flagged that further additional spending would be considered in the budget process for the coming years. For 2017, Sweden has already earmarked an estimated $5bn for defence spending, according to the defence analysis website Global Security. The funds announced on Monday would be in addition. The Nordic country's top military chief, General Micael Byden, said earlier this year the armed forces lacked at least $724m to fully fund planned operations in the coming three years. Sweden, which is not a NATO member, cut military expenditure continuously in the years following the Cold War. In 2015, spending stood at 1.1 percent of GDP versus 2.6 percent in 1990, according to the Stockholm International Peace Research Institute (Sipri). The government and parts of the opposition agreed in 2015 to increase the defence budget by $1.13bn for the years 2016-2020. Source:-Al Jazeera and news agencies", -2178,2017/3/13,http://www.aljazeera.com/news/2017/03/israel-blocks-bds-activist-entering-country-170313134012591.html,Israel denies entry to prominent British BDS activist,Palestine Solidarity Campaign head Hugh Lanning denied entry over his connection to the boycott movement.,"Israel has blocked a prominent British pro-Palestinian activist from entering the country, a week after the Knesset passed a bill allowing border officials to turn away foreign nationals who support boycotting Israel. Hugh Lanning, head of the UK-based Palestine Solidarity Campaign, was denied entry into Israel late on Sunday over his ""ongoing actions to promote boycotts against Israel"", the immigration authority said. Lanning was also accused of maintaining ties to leaders of Hamas, the hardline Palestinian group that runs the Gaza Strip. He flew back to London on Monday morning, authority spokeswoman Sabin Hadad said. Gilad Erdan, the minister of strategic affairs, told reporters on Monday:-""Whoever acts against Israel should understand that the rules of the game have changed. ""No sane country would allow entry to key boycott activists working to harm the country's core interests and lead to its isolation."" The boycott movement, known as BDS, advocates boycotts, divestment and sanctions against Israel in what supporters say is a nonviolent way to promote the Palestinian struggle for independence. The group, which-includes thousands of volunteers around the world,-has urged businesses, artists and universities to sever ties with Israel. Israel sees the boycott movement as a strategic threat and accuses it of anti-Semitism - a claim activists deny, saying they only want to see the occupation end. Last week, the Israeli parliament adopted a law barring entry to foreigners who support boycotting Israel, a move denounced by human rights groups and the opposition as ""thought control"" harmful to the country's international standing. Ben Jamal, the director of the Palestine Solidarity Campaign, called Lanning the ""first victim"" of the new law. READ MORE: What is BDS? ""A democratic country does not behave in the way Israel is behaving,"" he said. ""If Israel believes that by introducing these draconian, undemocratic laws it will intimidate its critics into silence it is mistaken.""- A number of measures targeting the BDS movement have been introduced in Israel, the US and Western Europe in recent years. Last year, Barack Obama approved legislation that required official non-cooperation with groups that boycott Israel, although the bill does not apply to Jewish-only settlements in the occupied West Bank. Around 20 US states have passed anti-BDS bills or are in the process of doing so. Source:-Al Jazeera and news agencies", -2179,2017/3/13,http://www.aljazeera.com/news/2017/03/egypt-hosni-mubarak-walk-free-170313143006599.html,Egypt's Hosni Mubarak to walk free in coming days,Public prosecutor orders release of former president as early as tomorrow following court acquittal. Sisi's pardon,"Hosni Mubarak, who was overthrown as president of Egypt in an uprising in 2011, will be released from detention in a military hospital after a six-year legal battle over accusations of involvement in the killing protesters.- ""He will go to his home in Heliopolis,"" Mubarak's lawyer Farid el-Deeb said, adding the ageing former president would likely be released Tuesday or soon after, but would be barred from leaving the country pending an ongoing corruption investigation.- The prosecutor's decision came on Monday, days after an appeals court acquitted Mubarak on March 2 of involvement in the killing of protesters during the 2011 uprising that ousted him. His acquittal, which is final, has angered relatives of those killed in 2011.---- ""Our son's blood was spilled for nothing,"" said Mostafa Morsi, whose son was shot dead aged 22 on January 28, 2011. The president who ruled for 30 years was accused of inciting the deaths of protesters during the 18-day revolt, in which about 850 people were killed as police clashed with demonstrators. Mubarak, 88, was sentenced to life in 2012, but an appeals court ordered a retrial, which dismissed the charges two years later. Amid public anger, prosecutors had levelled various charges against Mubarak following his February 2011 resignation. In January 2016, the appeals court upheld a three-year prison sentence for Mubarak and his two sons on corruption charges. But the sentence took into account time served. Both of his sons, Alaa and Gamal, were freed. Six years after his overthrow, most of the charges brought against his regime members have been dismissed while the country struggles to recovers from the aftermath of the uprising. The revolt ushered in instability that drove away tourists and investors, taking a heavy toll on the economy. Mubarak's elected Muslim Brotherhood successor, Mohamed Morsi, served for only a year before the military toppled and detained him in 2013, before launching a deadly crackdown on those who backed him. WATCH: Seeds of Change: Revisiting Egypt's April 6 activists Hundreds of Morsi's supporters were sentenced to death after speedy trials. Morsi himself has also stood trial in several cases. Critics say that the abuses they fought under Mubarak have returned with President Abdel Fattah el-Sisi, the former army chief who toppled Morsi. Mai Mogib, a politics professor at Cairo University, said times have changed since the Middle East uprisings six-years ago. ""Talk of the Arab Spring has completely stopped,"" she said. But ""discussing Mubarak and symbols of his era has become acceptable in the media and in the street"". ""He's in a better position than all other presidents who faced the Arab Spring,"" Mogib said. Also on Monday, Sisi issued a pardon for 203 youths jailed for taking part in demonstrations against his rule, according to state news agency MENA. No official list of names was immediately available. Since seizing power, Sisi has presided over a crackdown on his opponents that has seen hundreds killed and many thousands jailed. Al Jazeera journalist Mahmoud Hussein has been detained in Egypt-without charge for more than 83 days. Hussein, an Egyptian based in Qatar, was stopped, questioned, and detained by the Egyptian authorities on December 20 after travelling to Cairo for a holiday. Source:-News agencies", -2180,2017/3/13,http://www.aljazeera.com/news/2017/03/sturgeon-raises-stakes-theresa-scotland-170313163921698.html,Sturgeon raises the stakes for Theresa May in Scotland,SNP leaders move for a second independence referendum further complicates the UK's process to leave the EU. 'No compromise',"Scotland's First Minister Nicola Sturgeon has announced her plans to hold an independence referendum in a scathing speech attacking the British government's handling of the process to leave the European Union. Sturgeon has instructed Scottish Parliament, where her Scottish National Party (SNP) is the largest party, to authorise a referendum and to request a section 30 order from the UK government, which would allow it to take place. Scotland's parliament, based in Edinburgh, has the power to legislate on a number of issues including taxation, education, and health policies, but the UK reserves the power to allow an independence vote to take place.- The SNP's 63 members of the Scottish Parliament fall just shy of a majority, but the pro-Independence Green party would make up the numbers needed for a vote to pass.- Last month, members of the Scottish parliament (MSPs) voted 90 to 34 against triggering Brexit, but the move was symbolic as the Supreme Court had already ruled that the British government only needed consent from British lawmakers sitting in Westminster. Scotland rejected independence before in a referendum in 2014 with 55 percent of the population choosing to remain apart of the UK. But that was before the UK voted last year to leave the EU, a decision 62 percent of Scots voted against. Scottish nationalists maintained that a second referendum was a possibility given ""significant and material change in the circumstances that prevailed in 2014"", which Sturgeon maintains is exactly what Brexit will bring. OPINION: If Scotland leaves, England will lose the Brexit game British Prime Minister Theresa May has repeatedly stated her objections to permitting a second Scottish independence vote. Commenting after Sturgeon's speech, a Downing Street spokesperson said the move would cause ""Luge economic uncertainty at the worst possible time""? May later condemned the SNP's ""tunnel vision"". If May allows the referendum to go ahead, she would have to campaign to keep Scotland a part of the union as she simultaneously negotiates a complex divorce with the EU. If she refuses, she would earn ire from the Scottish public that would turn many on the fence towards the nationalist cause. Even leading unionist and Scottish Conservative leader Ruth Davidson has warned Westminster against blocking a second independence vote. In her speech on Monday, Sturgeon painted a picture of an unequal partnership, in which London and not the Scottish people decided the fate of their country. ""the UK government has not moved even an inch in pursuit of compromise and agreement,""?the SNP leader said ""the language of partnership has gone completely,""?she added. Attempts to stop a second vote would help reinforce that idea.- The UK government has not moved even an inch in pursuit of compromise and agreement Nicola Sturgeon, Scottish First Minister However, a successful vote for independence is nowhere near a certainty for Sturgeon and polls show Scottish support for leaving the UK teetering at 50 percent or just below. Support for the EU was strong in Scotland but far from universal, including in her own party with 36 percent of SNP supporters voting to leave the EU. Sturgeon was careful in her language; her criticisms of the UK government centred on its decision to leave the single market rather than the EU itself. The 2014 vote was billed as a ""Ance in a generation""?vote, but amidst the ruptures of Brexit, and a government in London struggling to deal with the scale of negotiations with the EU, there may not be as good an opportunity for today's nationalist to push for independence. Source:-Al Jazeera", -2181,2017/3/13,http://www.aljazeera.com/news/2017/03/south-africa-launches-hate-crime-unit-nigeria-170313171503090.html,South Africa launches hate crime unit with Nigeria,'Early warning' system established between two countries after spate of xenophobic attacks on migrants in South Africa. 'Mass attacks',"South Africa says it will launch an ""early warning"" system with Nigeria to track and deter xenophobic attacks-following a surge in violence in the rainbow nation. South Africa's Foreign Minister Maite Nkoana-Mashabane said the new monitor would ""help prevent violence"" against foreigners and their businesses as she met with Geoffrey Onyeama, her Nigerian counterpart on Monday. Last month, more than 20 shops were targeted in Atteridgeville, 120km west of Pretoria, while in Rosettenville, an area south of the commercial capital Johannesburg, residents attacked at least 12 houses. In response to the violence, the Nigerian government called for the African Union to step in and stop the ""xenophobic attacks"", claiming 20 Nigerians were killed in South Africa last year. South African authorities have declined to confirm the figure which may have been the result of other criminal activity, not just anti-immigrant violence. Nkoana-Mashabane told reporters it was untrue that the attacks were specifically ""targeting Nigerians"", adding citizens of other countries were also affected. She said the monitor would meet every three months and would be made up of representatives from both countries including immigration officials, business associations, and civil society groups. Onyeama said he had received assurances that Nigerians in South Africa would be able to live in peace and called for an end to ""mass attacks"". According to the Nigerian Union in South Africa, there are about 800,000 Nigerians in the country, many of them living in Johannesburg. A protest march against ""migrant crime"" was held in Pretoria on February 24 and resulted in violent clashes between crowds of young South African men and migrants from elsewhere in Africa, including Nigerians and Somalis. Attacks against foreigners and foreign-run businesses have erupted regularly in recent years in South Africa, fuelled by the country's high unemployment and poverty levels. President Jacob Zuma called for calm and restraint, saying that migrants should not be used as a scapegoat for the country's widespread crime problem. Source:-News agencies", -2182,2017/3/13,http://www.aljazeera.com/programmes/insidestory/2017/03/headed-victory-netherlands-170313182007518.html,Is the far-right headed for victory in the Netherlands?,Dutch voters will decide on Wednesday between two starkly different candidates and party ideologies.,"The Netherlands has long been known as a country of socially liberal values. But the recent refugee crisis and anti-immigrant sentiments have led to the popularity of far-right groups. On Wednesday, Dutch voters will decide between two starkly different candidates and parties. The vote is one of several taking place across Europe this year - including in France, Germany and perhaps Italy. And it will be the first test for how well far-right candidates will do. Latest opinion polls suggest the Dutch People's Party for Freedom and Democracy led by Prime Minister Mark Rutte, and the far-right Party for Freedom led by Geert Wilders are in a tight race. Both advocate very different agendas. The People's Party is progressive on social issues and fiscal austerity. While the far-right - whose leader has called Moroccan immigrants 'Scum' - wants to close mosques and pull the Netherlands out of the European Union. So what will a possible far-right win mean for the Netherlands and Europe? Presenter: Hazem Sika Guests: Jan Kleinnijenhuis - Professor at the Free University of Amsterdam Saida Derrazi - Member of the Collective Against Islamophobia in the Netherlands Matthijs Rooduijn - Political Sociologist at Utrecht University Source:-Al Jazeera", -2183,2017/3/13,http://www.aljazeera.com/news/2017/03/yanghee-lee-high-level-probe-needed-rohingya-170313170201197.html,Yanghee Lee: High-level UN probe needed for Rohingya,UN special rapporteur on human rights in Myanmar calls for international probe into abuses against Rohingya Muslims. Threat to democracy,"Myanmar ""may be trying to expel"" all ethnic Rohingya from its territory, a UN rights expert says, pushing for a high-level inquiry into abuses against the Muslim minority community. Yanghee Lee, the UN special rapporteur on human rights in Myanmar, told the UN rights council in Geneva on Monday evidence indicated a full purge could be the ultimate goal of the institutional persecution being perpetrated against the Rohingya. ""Conducting a household survey - where those absent may be struck off the list that could be the only legal proof of their status in Myanmar - indicates the government may be trying to expel the Rohingya population from the country altogether,"" she said. The army launched a bloody crackdown against the Rohingya in October in the northern Rakhine state following attacks by rebels on several border posts. UN investigators say during the military operation women were gang-raped by soldiers and Rohingya babies were slaughtered. Lee wants the rights council to establish the UN's highest-level probe, a Commission of Inquiry, to investigate the crackdown, as well as violent episodes in 2012 and 2014. Myanmar's UN envoy in Geneva Htin Lynn said at the council on Monday the allegations were unverified and one-sided. He said security operations in Rakhine had stopped and the curfew was eased earlier this month. ""The situation in Rakhine state is very complicated in nature and thus requires complicated answers. It also requires greater understanding by the international community,"" he said. ""Myanmar does not accept the idea of a commission of Inquiry, as we are seriously addressing the allegations nationally."" The council could set up the commission before its session ends later this month, but key players including the European Union have not yet backed Lee's call because of concern that a damning UN investigation might threaten the country's fragile democracy drive. Speaking to reporters after her council appearance, Lee said she believed support for an inquiry was tepid, including within the EU. Countries ""won't say they are not going to support your call, but I do hear ... [countries] say that maybe Aung San Suu Kyi needs more time"", Lee said, referring to the Nobel peace laureate who leads Myanmar's civilian government. Suu Kyi's administration, which took charge last year after decades of oppressive military rule, has rejected Lee's bid to set up the investigation and insisted its own national probe can uncover the facts in Rakhine. Lee conceded a full international probe ""could have a destabilising affect"" - in that it may implicate the military in crimes against humanity - but she insisted it was in the government's interest to get the facts out. WATCH: The Rakhine crisis She also told the council the government's internal probe had already been proved inadequate. Representatives from the EU, the Netherlands, and Britain all avoided the question of the investigation during Monday's discussion. Julian Braithwaite, Britain's envoy to the council, said the international community needed to ""engage [Myanmar] without damaging the delicate civilian-military balance"". Source:-News agencies", -2184,2017/3/13,http://www.aljazeera.com/news/2017/03/syria-rebels-agree-leave-homs-beseiged-al-waer-170313134154656.html,Syria rebels agree to leave Homs' besieged al-Waer,Last opposition area held by fighters in Homs city to be evacuated after heavy bombardment in recent weeks.,"Syrian opposition fighters will be allowed to leave the last rebel-held neighbourhood in the city of Homs under a Russia-backed deal signed on Monday. According to Talal Barrazi - governor of Homs province where Homs city is the capital - the deal is to be carried out within six to eight weeks.- It follows other agreements that were never fully implemented between the government and rebel groups in al-Waer, their last bastion in Homs, which has been pounded by air strikes in recent weeks. Homs, the country's third-largest city, was once the centre of the uprising against President Bashar al-Assad. Throughout Syria's war, now at the end of its sixth year, wide parts of the city were held by rebels but state forces eventually regained control of all areas except for al-Waer.- Al-Waer is home to about 75,000 people and has been under a government siege since 2013, triggering shortages of medicine and occasionally food. The UN has not been able to deliver much needed humanitarian aid to the area since September 2016.- Barrazi's statement, carried by state SANA news agency, said the evacuation is the third phase of a deal reached last year that saw hundreds of fighters and their families leave al-Waer to other rebel-held areas Opposition activist Bebars al-Talawy said the agreement was signed Monday, adding a committee will be formed to prepare the lists of names of those who want to leave. ""People are happy that they will get rid of the siege, but sad because they will leave Homs,"" Talawy said. The UK-based Syrian Observatory for Human Rights said 12,000 al-Waer residents will be displaced, including 2,500 fighters. It said the first 1,500 people will be evacuated next week. READ MORE - UNICEF: 2016 was the worst year yet for Syrian children Those who leave will be taken to rebel-held areas in the countryside of Homs, the northwestern province of Idlib, and the town of Tel Abyad near the border with Turkey, according to the Syrian Observatory.- Monday's deal followed weeks of intense bombardment and air strikes on the neighbourhood that left 250 killed or wounded. Syria's war pits Assad's forces, backed by Russia and Iran, against rebels supported by the United States, Turkey, and Gulf kingdoms, along with hardline groups affiliated with al-Qaeda. Assad's government has increasingly tried to press besieged rebel areas to surrender and accept what it calls ""reconciliation agreements"", which involve fighters departing for northern Syria with small arms. Moscow, Ankara and Tehran are pressing ahead with a fresh round of Russian-led Syria talks in Kazakhstan, despite a request from Syrian rebels to delay the meeting over ceasefire violations. A Syrian government delegation arrived to the Kazakh capital Astana late on Monday evening.- The Astana talks, now in their third round, began in January in efforts to shore up a widely violated ceasefire between the sides that was brokered in December by Russia and Turkey. Syria's war: Manbij struggles to cope with influx of displaced Syria's future will be decided only after ""getting rid of extremists"" and achieving political reconciliation, the country's President Bashar al-Assad said in an interview published Monday.- As the war that has ravaged his country approaches its seventh year, Assad told reporters it was ""still early to talk about"" his vision for Syria's future.---- ""It's a luxury now to talk about politics while you're going to be killed maybe in a few minutes, you have terrorist attacks,"" he told a group of Western journalists, state news agency SANA said.- ""So this is the priority, getting rid of the extremists, the political reconciliation in the different areas, this is another priority.""-- On Wednesday, Syrians mark the sixth anniversary since the beginning of the conflict, which the Syrian Observatory says has killed some 465,000 people, including 96,073 civilians. Source:-News agencies", -2185,2017/3/13,http://www.aljazeera.com/news/2017/03/united-nations-workers-kidnapped-drc-170313155946024.html,Two United Nations workers kidnapped in DRC,Unidentified 'negative forces' took UN observers hostage along with four DRC nationals in Kasai region.,"Two United Nations workers from peacekeeping mission in the Democratic Republic of Congo (DRC) have been kidnapped by unknown assailants in the central Kasai region. The government of DRC said in a statement one of the victims was Michael Sharp, an American, and the other Zaida Catalan, a Swede. The UN lists Catalan as Chilean, however. They had ""fallen into the hands of negative forces not yet identified"" near the village of Ngombe along with four Congolese nationals, including three motorcycle-taxi drivers and an interpreter, it said. Charles-Antoine Bambara, spokesman for the MONUSCO peacekeeping mission, said on Monday the two went missing on Sunday. Sharp and Catalan were among a UN panel of experts investigating conflicts that have simmered in DRC since the mid-1990s, when a civil war spawned dozens of armed groups and drew in half a dozen neighbouring armies. Congolese and UN officials said efforts to locate the victims were under way. WATCH: Can another civil war be avoided in DRC? A Uruguayan peacekeeper was shot and wounded last week in the same region, which has been wracked by a rebellion since September. The uprising erupted after government forces in August killed a tribal chief and militia leader, Kamwina Nsapu, who had rebelled against President Joseph Kabila. The violence has since spilled over to the neighbouring provinces of Kasai-Oriental and Lomami, leaving at least 400 people dead. UN High Commissioner for Human Rights Zeid Raad al-Hussein said last week that three mass graves had been discovered in the area where clashes are taking place. The United Nations has almost 19,000 troops deployed in DRC, its largest and costliest peacekeeping mission. About 100 of those soldiers were recently dispatched to Kasai. UN Secretary-General Antonio Guterres on Friday asked the Security Council to send an extra 320 UN police to the country after a deal to end a dispute over the presidential election stalled. Source:-News agencies", -2186,2017/3/13,http://www.aljazeera.com/news/2017/03/south-china-sea-japan-deploy-largest-warship-170313130210567.html,South China Sea: Japan to deploy largest warship,Izumo carrier will cruise the South China Sea with stops in Southeast Asia before heading to India for US war games.,"Japan plans to dispatch its largest warship on a three-month tour through the South China Sea in May, three sources said, in its biggest show of naval force in the region since World War II. The Izumo helicopter carrier, commissioned only two years ago, will make stops in Singapore, Indonesia, the Philippines, and Sri Lanka before joining the Malabar joint naval exercise with Indian and US naval vessels in the Indian Ocean in July, the sources told Reuters news agency.- The carrier will then return to Japan in August. ""The aim is to test the capability of the Izumo by sending it out on an extended mission,"" said one of the sources with knowledge of the plan. READ MORE: Japan's new Defence White Paper - Turbulence ahead ""It will train with the US Navy in the South China Sea,"" he added, asking not to be identified because he is not authorised to talk to the media. The 249-metre-long Izumo is as large as Japan's World War II-era carriers and can operate up to nine helicopters. It resembles the amphibious assault carriers used by US Marines, but lacks their well deck for launching landing craft and other vessels. A spokesman for Japan's Maritime Self Defence Force declined to comment. China claims almost all the disputed waters in the South China Sea and its growing military presence has fuelled concern in Japan and the West, with the US holding regular air and naval patrols to ensure freedom of navigation. Taiwan, Malaysia, Vietnam, the Philippines, and Brunei also claim parts of the sea, which has rich fishing grounds, oil-and-gas deposits, and through which about $5 trillion in global sea trade passes each year. Japan does not have any claim to the waters, but has a separate maritime dispute with China in the East China Sea. - Source:-Reuters news agency", -2187,2017/3/13,http://www.aljazeera.com/indepth/opinion/2017/03/south-africa-future-icc-uncertain-170313122508594.html,,,"South Africa has been summoned to appear before the International Criminal Court on April 7 to answer for its failure to arrest President Omar al-Bashir of Sudan during his visit to the country in June 2015. This announcement came only days after South Africa informed the United Nations of its decision to revoke its withdrawal from the court. In October 2016, South Africa announced its decision to withdraw from the ICC. But earlier this year, South Africa's High Court declared the decision, which was taken without parliamentary approval, as ""unconstitutional and invalid""-and ordered the government to rescind the notice it sent to the UN. On March 7, the South African government adhered to the court's decision and wrote a letter to the UN secretary-general officially rescinding its notice of withdrawal from the court. Understandably, this has brought a sigh of relief to the ICC and its supporters, who feared of an African exodus from the Hague-based court, following a spate of withdrawals in October 2016 involving two other countries: Burundi and The Gambia. Not surprisingly, The Gambia under its new President Adama Barrow also overturned his predecessor's decision to withdraw from the ICC and expressed his government's support for the court. At the moment, only Burundi's withdrawal remains effective and there is no indication that it faces a similar prospect of reversal.-While the fear of African exodus from the ICC is now partially eased with the reversals of withdrawals from The Gambia and South Africa, the issue is not conclusively resolved. Many, particularly those supporting the ICC, welcomed the decision of South Africa's High Court to revoke the notice of withdrawal and the government's adherence to the decision. Some even saw it as a manifestation of the end of the so-called ""African exodus"" from the court. The celebration may, however, be premature. The South African High Court did not challenge the legality or constitutionality of withdrawal from the ICC per se. The issues it addressed were whether parliamentary approval was a prerequisite for issuing a notice of withdrawal and whether a law repealing the act implementing the Rome Statute, the treaty that established the ICC, should be adopted before the withdrawal. There is no indication that President Jacob Zuma's government has abandoned the plan for withdrawal. South Africa's reversal of its notice of withdrawal from the ICC does not thus mean that the matter is conclusively settled. It merely expressed acknowledgement that the particular process followed was not legally acceptable. OPINION: Africa's challenge to the ICC The Implementation of the Rome Statute of the International Criminal Court Repeal Bill-(Repeal Bill) is currently before parliament (PDF). The High Court which declared the notice of withdrawal unconstitutional found that the process for tabling this bill is ""legitimately and properly before parliament"". So, the battle over the withdrawal is not over, it has only shifted to the parliament. And the campaign against the bill has now started to include contributions-from South Africa's heavyweight legal minds (PDF). In its judgement on the country's withdrawal from the ICC, the South African High Court did not address the concerns that President Zuma's government raised about the court. The instrument of withdrawal deposited with the UN secretary-general pointed out that South Africa found its role in, and obligation for, promoting a peaceful resolution of conflicts to be incompatible with ICC's interpretation of the Rome Statute. South Africa is not alone on this. There is strong view in Africa, which underwrites much of the opposition to the ICC, that pursuing prosecutorial justice in ongoing armed conflicts impedes peace efforts by hardening the position of key protagonists. There is strong view in Africa, which underwrites much of the opposition to the ICC, that pursuing prosecutorial justice in ongoing armed conflicts impedes peace efforts by hardening the position of key protagonists. - Related to this is also the policy debate on whether to implement dogmatic legal positions in the face of impending violence or to facilitate negotiated peace deals in order to halt ongoing carnage and killings arising from the continuation of armed conflicts. The instrument of withdrawal also indicated South Africa's decision to give effect to the rule of customary international law in the apparent divergent legal position between South Africa's Rome Statute of the International Criminal Court Act, 2002 and the rule of customary international law recognising immunity of heads of state. It is to be recalled that South Africa's ICC controversy started in June 2015 when it allowed Bashir, who has an ICC arrest warrant in his name, to attend the African Union summit held in Johannesburg. This gave rise to both political/security and legal dilemmas. While South Africa's failure to execute ICC's arrest warrant attracted criticism, it was not clear if South Africa was ready to assume responsibility for what was to happen to Sudan if it executed the arrest warrant and arrested Bashir. Also in legal terms, while non-execution of the arrest warrant was contrary to South Africa's obligations under the Rome Statute, it was believed that the treaty did not affect the customary international law rule on immunity of sitting heads of state in countries not parties to it. This was the case with South Sudan as well, and/or its effect at least in respect to such countries remains legally contested and hence unsettled. The South African government's position on these two substantive issues remains unchanged. These issues are now to be a subject of parliamentary debate as South Africa's parliament considers the Repeal Bill. The ruling party, African National Congress, enjoys an overwhelming majority in the parliament and hence has the necessary numbers to pass the bill. If the bill passes and South Africa withdraws from the ICC, it would be a major loss for the court. This is not only because South Africa is a major African country, but also because its withdrawal would strengthen other ICC state parties' cases for exiting the court. OPINION: Bashir and the double standard of international justice This does not, however, has to be the outcome. Even though the decision to withdraw from the ICC is now a matter of South Africa's parliamentary process, it can still be prevented, if the court takes action. Indeed, the planned appearance of South Africa before the ICC in April 2017 offers an opportunity for finding a solution within the ICC process for the two aforementioned issues that motivate the country to leave the court; such a solution may help to remove the steam from the campaign for withdrawal and bury the repeal bill. Solomon Ayele Dersso is a senior legal scholar and an analyst on Africa and African Union affairs. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2188,2017/3/13,http://www.aljazeera.com/news/2017/03/scotland-leader-seeks-independence-referendum-170313115510001.html,Brexit: Nicola Sturgeon plans new independence vote,"Citing threat from Brexit, Nicola Sturgeon says she will move to give voters a chance to make Scotland independent.","Scotland's leader on Monday said she would seek authority for a new independence referendum because Britain is dragging Scotland out of the European Union against its will. Scottish First Minister Nicola Sturgeon demanded an independence referendum to be held in late 2018 or early 2019, once the terms of Britain's exit from the European Union have become clearer. A vote that could rip apart the United Kingdom just months before Brexit adds a tumultuous twist and highly uncertain consequences to the two-year process of leaving the EU after more than four decades. ""If Scotland is to have a real choice - when the terms of Brexit are known but before it is too late to choose our own course - then that choice must be offered between the autumn of next year, 2018, and the spring of 2019,"" Sturgeon told reporters. OPINION: If Scotland leaves, England will lose the Brexit game Her demand comes just as British Prime Minister Theresa May is poised to launch the Brexit process, something opposed by most Scots in last June's vote on leaving the bloc. Ultimately it is the UK parliament in Westminster - where May commands a majority - which makes the call on whether Scotland can hold a second referendum. But if May refused to approve such a vote she could provoke a constitutional crisis. May's government said in response to Sturgeon's announcement that it is seeking ""a future partnership with the EU that works for the whole of the United Kingdom. The UK government will negotiate that agreement, but we will do so taking into account the interests of all of the nations of the UK."" The British government didn't say whether it would give approval, but said an independence ballot ""would be divisive and cause huge economic uncertainty at the worst possible time"". This month, May accused Sturgeon's Scottish National Party of sacrificing not only the United Kingdom but also Scotland with its ""obsession"" with securing independence. Sturgeon has previously said she wanted Scotland to be allowed to strike its own deal with the EU to keep access to the bloc's tariff-free single market. But on Monday she said her efforts had hit a ""brick wall of intransigence"" in London. ""If the UK leaves the EU without Scotland indicating beforehand - or at least within a short time after it - that we want a different relationship with Europe, we could face a lengthy period not just outside the EU but also the single market,"" she said. WATCH: Disunited kingdom Al Jazeera's Barnaby Phillips, reporting from London, said it remains to be seen how the battle over a new vote unfolds for Sturgeon in the coming weeks. ""You could expect quite a political fight over the timing of such a referendum, over the wording of such a referendum,"" said Phillips. ""The initial response from Teresa May and from Downing Street has been quite damning. They are saying that this is divisive."" The results of the June 23 Brexit referendum called the future of the UK into question because England and Wales voted to leave the EU but Scotland and Northern Ireland voted to stay, with an overall 55 percent in favour of leaving. Scots rejected independence by 55-45 percent in a referendum in September 2014, though the vote energised Scottish politics and support for the SNP has surged since then. Sterling rose after Sturgeon said the earliest date for a new Scottish independence referendum was in the autumn of next year. British government bond prices fell. Recent opinion polls have shown support for independence running at close to 50 percent. At her news conference on Monday, Sturgeon was asked if she believed she could win a second independence vote. ""Yes I do. Absolutely, I believe that."" Source:-Al Jazeera and news agencies", -2189,2017/3/13,http://www.aljazeera.com/indepth/inpictures/2017/03/holi-festival-colours-170313084930756.html,Indian widows break tradition and celebrate Holi,,"Holi , the festival of colours, marks the beginning of spring in India. One of the biggest Hindu festivals,- Holi holds a mythological importance - that of the triumph of good over evil. It is also associated with the eternal love of Lord Krishna and his consort Radha. The festival of Holi brings together people of all classes and ages, who sing and dance, hand out sweets, and splash colours over friends and loved ones. READ MORE: What this picture means to me - Widows celebrating Holi -", -2190,2017/3/13,http://www.aljazeera.com/news/2017/03/deadly-blast-destroys-bus-afghan-capital-170313134449741.html,Deadly blast destroys bus in Afghan capital,"Apparent roadside bomb attack targeting state telecom workers strikes in smart Kabul district, killing at least one.","An explosion in the centre of the Afghan capital Kabul destroyed a bus carrying government employees on Monday, killing at least one person and wounding eight, Interior Ministry spokesman Sediq Sediqqi said. Security forces surrounded the smoking remains of the completely burned-out bus that was carrying employees from one of the country's biggest telecoms firms. A security official said the blast was caused by a suicide bomber on foot, but Sediqqi said it appeared to have been caused by a roadside bomb. No group has so far claimed responsibility for the assault, but it comes as the Taliban step up attacks even before the official start of the annual spring offensive. - - ""There has been an explosion against a minibus in Kabul,"" police spokesman Basir Mujahid told AFP news agency, adding more casualties were feared. ""Police are investigating the nature of the explosion.""- READ MORE: Taliban kills eight Afghan police in 'insider attack' Gunmen disguised as doctors stormed Afghanistan's largest military hospital last Wednesday, killing more than 100 people in a brazen six-hour attack, multiple surviving staff and security sources told AFP. - - Insiders, including two interns, already positioned inside the facility were among the attackers, the sources said. The savagery of the assault was characterised by how the assailants stabbed bed-ridden patients, threw grenades into crowded wards, and shot people from point-blank range. Officials are still investigating that assault, which was claimed by Islamic State of Iraq and the Levant (ISIL/ISIS). The two attacks underline the broad security threat in Afghanistan, where the Taliban has stepped up its insurgency against the Western-backed government and ISIL has also expanded its reach. Source:-News agencies", -2191,2017/3/13,http://www.aljazeera.com/indepth/features/2016/08/picture-means-widows-celebrating-holi-160811103730115.html,What this picture means to me: Widows celebrating Holi Showkat Shafi,"India's widows have traditionally been prevented from celebrating Holi, but while this is changing, rejection remains. By","The window appeared symbolic of how caged by custom this widow had been [Showkat Shafi/Al Jazeera] I grew up in Kashmir, surrounded by women who seemed as though they had no more to lose, by women who mourned husbands and children, who waited for others who never returned, who long ago gave up on their own dreams, however small they might have appeared, by women who merely existed, who barely survived. It is such women, women who might otherwise appear only the peripheries of stories about conflict or poverty, crime or disease, to whom I am most drawn in my photojournalism. They sometimes exist on the edges of our subcontinent societies - so often sacrificed to archaic customs we embrace as though our very cultures depend upon them. Some of these women's stories I have felt strongly about, others have moved me, many have carved a place in my heart.- On one assignment, I photographed widows celebrating Holi, the Hindu festival of colour, during which participants throw flower petals and coloured powder and water upon one another. It is an occasion typically marked by exuberance, laughter, dancing and, of course, an abundance of colour - but widows have traditionally been prohibited from sharing in this joy. Often cast out by their families and broader society, regarded as bringing bad luck and blamed for the deaths of their husbands, widows are expected to wear only white, to shave off their hair and to accept exile from their homes.- IN PICTURES: A feast of spectacular colour as Hindus celebrate Holi Located in the northern Indian state of Uttar Pradesh, the holy city of Vrindavan is home to many such widows; women who, after losing their husbands, have been shunned by their families and ostracised by society.- I wanted to show them in a different light - breaking the centuries-old tradition that prevents them from celebrating festivals, for the forgotten women of Vrindavan are now taking part in Holi. More than 1,000 women celebrate Holi at the Pagal Baba Widow Ashram, a dilapidated building where the widows' rooms resemble pigeonholes with no ventilation and the women eat, sleep and pray in the same tiny space. But this image speaks of something less than joyful. The widow may have the colours of Holi on her face and flowers in her hand, but they do little to camouflage the sadness in her eyes. For, beneath these seedlings of change, the hard reality of years, sometimes decades, of rejection remains. And hers is a pain and a denial that flowers cannot redeem. Her story may remain untold, like those of so many other women, but it is no less real for that. When I look at her picture now, I wish I knew the answers to the questions that went unasked.- Source:-Al Jazeera", -2192,2017/3/13,http://www.aljazeera.com/indepth/interactive/2015/07/syria-refugee-crisis-150709120935092.html,Syrian refugee crisis in numbers,UNHCR says more than four million people have fled Syria since the conflict began. More than half of them are children.,, -2193,2017/3/13,http://www.aljazeera.com/indepth/features/2017/03/dorcas-kiteng-victim-kenya-doctors-standoff-170310144003376.html,Dorcas Kiteng'e: A victim of Kenya's doctors' strike Jacob Kushner,"Dorcas, 25, died last week after struggling to find proper cancer treatment amid the government and doctors' standoff. By Delays 'Life is cheap' President's responsibility Underfunding- Dorcas: 'She was beautiful'","Nairobi, Kenya --One month after Al Jazeera published-the story-of Dorcas Kiteng'e's struggle for cancer treatment in a nation whose doctors are on strike, the 25-year-old has died due to lack of proper care. Some 5,000 public sector doctors walked out on December 5 after Kenya's leaders failed to make good on a 2013 agreement to raise salaries, hire new physicians and improve conditions in public hospitals. The standoff between the health ministry, which lost $53 million last year due to corruption, and the doctors, continues to drag on.-Nobody knows how many hundreds or thousands of Kenyans have died as a result of the government's refusal to pay and the doctors' refusal to return to work until that happens. This is the story of one of those victims - the final days in the life of-Dorcas Kiteng'e. Al Jazeera met Kiteng'e on January 30. She was stoic, sitting in a wheelchair outside Kijabe Hospital, which became overwhelmed with Kenyans seeking treatment after public hospitals turned them away when the doctors walked out. Kiteng'e had been sick since December, suffering from abdominal pain and having trouble walking. ""When she started feeling pain, the public hospitals were on strike,"" says Mwende Mutambuki, Kiteng'e's-sister-in-law. The nearest public hospital was staffed only by nurses. ""They kept saying, 'You have diabetes, you have diabetes'. But she didn't have diabetes!"" Many Kenyans prefer to avoid the nation's understaffed and under-resourced public hospitals if they have the money to afford private care. At public hospitals, ""sometimes you are told there is no blood,"" Mutambuki says. ""You're told, 'Buy syringes, go and find someone to give you their blood'."" ""It's a bad system,"" Mutambuki says. ""Our hospitals are not for life. They're for death."" In January, Mutambuki took Kiteng'e to three different private hospitals in Nairobi. But all were either too overburdened to perform the surgery to remove cancerous tumours from her ovaries and breasts, or demanded more money than her family could afford. At last, the doctors at Kijabe that day declared Kiteng'e fit for surgery, so her family cobbled together the 100,000 shilling (about $1,000) deposit and were told to come for the operation the following week. But ""it was just being delayed, delayed, delayed,"" Mutambuki says. There was a backlog of surgeries, likely due to the abnormal number of Kenyans seeking care, so they'd have to wait until the following week instead. But by the time a surgeon reviewed Kiteng'e's medical imaging, her cancer had reached stage four. Instead of surgery, she'd need to go back to Nairobi in the hopes of finding a hospital that would offer her chemotherapy. Kenyatta National Hospital, Nairobi's largest public health facility, had been operating on only a small staff of military doctors since the usual doctors went on strike. But some doctors still operated privately out of an adjacent clinic, so Mutambuki took Kiteng'e there. For two weeks they waited, hoping the chemo would come through.- ""That two weeks, Dorcas was in so much pain. She used to cry and cry,"" Mutambuki says. ""They'd tell her to take drugs for the pain, but in three hours the pain would be unbearable."" Mutambuki begged a doctor to admit Kiteng'e for a biopsy and chemo. ""He said, 'If there was no strike, I would admit you at Kenyatta immediately.' He said they would do a biopsy much cheaper"" than the private clinics, Mutambuki recalls. ""But he said there would be a long queue,"" so Mutambuki decided she had no choice but to transfer Kiteng'e to a private hospital instead. To cheer her up while she waited there, Kiteng'e's family kept her company, filling the small hospital room with chatter and warmth. But on Wednesday night, Kiteng'e died there, alone. The next day, Kitenge's husband, Daniel, walked around in a daze. ""He was unhinged,"" Mutambuki says of her brother. ""He has these two little kids - seven and three. He doesn't know where he'll start. He has never had to take care of those kids by himself."" What's more, the funeral expenses will cost the family 170,000 shillings, about $1,700 - a seemingly impossible cost on top of the 400,000 shillings, about $4,000, the family already raised from friends and neighbours to pay for Kiteng'e's treatment in her final months. Funerals, healthcare --these things are expensive, Mutambuki says. ""But life is very cheap in Kenya. Very cheap."" In late February, activists in Nairobi protested against the health ministry demanding better healthcare as the standoff between the ministry and doctors continues. A woman holds a sign referring to the general election which will take place in August [Dai Kurokawa/EPA] READ MORE: Senegal's cancer patients struggle for treatment Mutambuki believes Kiteng'e's life might have been saved, if only Kenya's public sector doctors had been around to treat her during the three-month ordeal. ""They could have alleviated her pain, alleviated her suffering. They could have prolonged her life,"" Mutambuki says. If she could tell Kenya's leaders one thing, she says, ""I would ask them to stop making all this political."" ""It becomes a war of words instead of trying to find solutions,"" says Mutambuki of the ongoing standoff.- ""The president is in power. What is he doing?"" she says of Uhuru Kenyatta, who is seeking re-election this August. ""He should be talking to the doctors. What is all this childishness? Why can't he take responsibility and do what is right with the doctors?"" Earlier last-week, the government and the medical union seemed close to ending the standoff. They'd drafted a revised agreement that would have allowed for a 50 percent pay rise - still less than half of what the doctors were entitled to under the original agreement. According to news reports and posts by various medical union members, the government refused to send the agreement on to Kenya's governors for ratification until the doctors called off the strike.- But having entered into deals that Kenya's government has reneged on before, the doctors refused, at which point the chairman of Kenya's Council of Governors, at a press conference-flanked by the president, announced-the government was withdrawing its offer.- WATCH: Women make change - Kenya's Water Women (24:29) In late January, the Naivasha Sub-county Referral Hospital, a-two-hour drive north of Nairobi, was eerily empty on account of the strike. The blue door to the operating room was locked shut. ""There's no one to do the operations,"" explained Douglas Osoro, a pharmacist there. Osoro said the hospital couldn't look more different from usual. He typically works 12-hour shifts with barely a moment to rest between making the rounds with doctors to visit patients and recommend certain treatments, fulfilling the prescriptions, and then going along with the nurses to help administer the drugs. Public sector nurses are threatening to strike as well, for similar reasons of pay and overworking. ""One nurse here takes care of 40 patients in a night!"" Osoro said. ""If nurses go, people will stop trying to come to the hospital entirely because there's no point."" Recently, some Kenyan nurses did precisely that, protesting against delays in the payment of their salaries and delays in promotions. According to Kenya's medical union, Kenya has registered about 9,000 new doctors in the last 32 years, but an estimated 25 percent of them are no longer active.-A major shortage has resulted from a lack of funding. In 2014, Kenya was estimated to spend just $78 of its budget on healthcare per capita.-In contrast, South Africa spent $570, the UK spent $3,935 and the US spent $9,403 a person that year, according to estimates by the World Bank. Even basic treatment is sometimes unavailable in Kenya's public sector. ""My second day, I was really shocked when I saw a patient who couldn't afford dialysis,"" said Osoro-of his residency. ""If you look at the amount of people who have kidney problems, dialysis is supposed to be a basic, basic service to the public. It costs about 10,000 shillings (less than $100) per session.""- And yet, ""If you don't have the national health insurance fund, you have to pay it out of pocket,"" Osoro said. ""Nine out of 10 people in Kenya can't afford that."" ""The system is failing everyone - us, and the patients,"" said Marcy Gichinga, a pharmaceutical intern in Naivasha who was also on strike. ""If doctors had their way, we wouldn't just leave patients,"" Gichinga said. ""If there were a way to reach an agreement without going on strike, we would do it."" Health officials have attempted to paint the 2013 agreement as unreasonable, arguing a new one should be written in its place. Wilfred Machage, chairman of Kenya's Senate Health Committee, called that document ""illegal"", saying, ""Nobody has prevented doctors from coming up with another legal document"". ""These are problems that we want solved,"" said Osoro, of Kenya's underfunded and overburdened public healthcare system. ""I sympathise with people who think doctors want money and it's a bit selfish. But ultimately this is for the patients. We want better conditions for our patients. Our patients are everything to us."" The day after Kiteng'e died, Mutambuki recalled her sister-in-law as a timid-but-loving mother of two. When Mutambuki's brother first married Kiteng'e, ""she was just a village girl and very shy"". ""But soon, whenever we came home she would welcome us. She was always cooking for us,"" Mutambuki says. ""She'd run around trying to make us comfortable. She was beautiful."" Mutambuki recounted Kiteng'e's final Christmas Eve when, despite her pain, she lifted herself to slowly rotate her hips to the jovial-Taarab-music Mutambuki had put on the stereo. ""There's a song called-Pole Samaki"" - Swahili-for-Sorry, Fish. ""It talks about how fish suffer. When a man is eaten by a fish or a shark, it makes news. But when we eat a fish, nobody cares. That is the one she danced to."" ""That made Dorcas get up and dance despite her pain,"" Mutambuki says. ""She got up and danced the whole track."" Source:-Al Jazeera", -2194,2017/3/13,http://www.aljazeera.com/news/2017/03/eastern-australia-hit-drought-floods-170313095431714.html,Eastern Australia hit by drought and floods,Nearly 90 percent of Queensland is in drought, meanwhile severe storms linger across parts of New South Wales.,"Australia can be a country of great extremes, and this is certainly proving to be the case in terms of the weather at the moment. Parts of Queensland are in drought. Meanwhile, New South Wales is being pummelled by violent storms. Elsewhere, there's a heatwave in Victoria. Temperatures in the state capital, Melbourne, are currently running around 6 degrees above average, with highs nudging above 30 Celsius. Parts of Queensland have just experienced their driest ever 12 months on record. That has left 87 percent of the Sunshine State officially drought-stricken. There are concerns that conditions could get even worse in the short term. Queensland's Agricultural Minister, Bill Byrne, said this means that producers in the affected regions are now eligible for drought assistance, including relief from water and electricity costs. Ironically, the neighbouring state of New South Wales is suffering more than enough rain in parts. Severe storms have hit northern and central areas with golf-ball sized hail. The city of Dubbo in the Orana Region was worst affected with 51mm of rain in just six hours. That amount is close to the entire March average of 55mm. It did lead to flash floods and dozens of calls for help were made to the State Emergency Service. The floods, -along with damaging winds, led to around 4,000 people losing power along the coast to the north of Sydney. Showers remain in the forecast along the east coast for much of this week. They will be heavy at times and could become rather more expansive. The coastal fringes of both Queensland and New South Wales, from Cairns to Sydney, are likely to see storms on Wednesday.- Source:-Al Jazeera and news agencies" -2195,2017/3/13,http://www.aljazeera.com/news/2017/03/turkey-summons-dutch-envoy-rotterdam-police-action-170313102534967.html,Turkey summons Dutch envoy over Rotterdam police action,Notes given to Netherlands criticise the treatment of Turkish ministers and protesters.,"Turkey-summoned the Dutch envoy in Ankara to complain about the actions of Rotterdam police against Turkish protesters over the weekend as a row over Ankara's political campaigning abroad widened. The Dutch Embassy's charge d'affaires, Daan Feddo Huisinga, was called on Monday to the Foreign Ministry where a senior official handed him two formal protest notes. In the note, the Turkish Foreign Ministry condemned what it said were practices contrary to international conventions and diplomatic courtesy and immunities, and requested a written apology from the Dutch authorities. WATCH: Turkey-Netherlands war of words intensifies Turkey also reserved its right to seek compensation, the Dutch diplomat was told. The second note protested against the treatment of Turkish citizens who had gathered outside the Turkish Consulate in Rotterdam, saying ""disproportionate force"" had been used against ""people using their right to peaceful gatherings"". ""The Turkish community and our citizens were subject to bad treatment, with inhumane and humiliating methods used in disproportionate intervention against people exercising their right to peaceful assembly,"" a statement attributed to ministry sources said. It was the third time the Dutch charge d'affaires had been summoned since Saturday over the row.- The Dutch ambassador is on leave and the Turkish foreign ministry has said it does not want him to return ""for some time"". READ MORE: Turkey-Netherlands row shows no sign of ebbing Al Jazeera's-Sinem Koseoglu, reporting from Istanbul, said there were no protests in the city and that there were hopes the situtation between the two countries would be resolved soon. ""It seems like the diplomatic relationship between the two countries-will be dealt with within the diplomatic framework,""-she said. On Sunday night, Dutch riot police were called in to end a protest by Turks in Amsterdam and arrested 13 people. Recep Tayyip Erdogan, Turkey's President, on Sunday vowed to retaliate against the Netherlands after claiming that ""Nazism is alive in the West."" Dutch officials have condemned the statements. The Turkish government has sought to hold campaign rallies in European countries to appeal for Turkish diaspora votes to help secure victory in a referendum next month that would grant Erdogan sweeping executive powers. In the run-up to a general election next week in the Netherlands, the Dutch government cited security and public order concerns over a proposed Turkish rally and withdrew landing rights for the Turkey's foreign minister Mevlut Cavusoglu. The Dutch authorities later prevented-Fatma Betul Sayan Kaya, Turkey's family minister, from entering the Turkish consulate in Rotterdam, before escorting her out of the country to Germany. Source:-News agencies", -2196,2017/3/13,http://www.aljazeera.com/indepth/features/2017/03/morocco-eu-heading-political-impasse-170301102342685.html,Are Morocco and EU heading towards a political impasse? Sam Edwards,Europe depends heavily on Morocco for cooperation on two most important concerns: Migration and counterterrorism. By,"In the early hours of February 20, around 600 sub-Saharan African migrants passed undetected to the Ceuta border fence. Attacking the six-metre fence at multiple points, 359 made it through the heavily fortified perimeter, leaving Morocco and arriving in the Spanish north African enclave of Ceuta. Three days earlier, almost 500 did the same - it the largest single penetration of the Ceuta border fence in a decade. News footage from the morning of February 20 shows hundreds of young men running through the city, and many later receiving treatment for injuries sustained from climbing the razor-wire fence. They are exhausted but jubilant - they have finally made it to Spain. They are only a fraction of the thousands of migrants in Morocco thought to be trying to reach Europe, and many will have spent months or even years waiting for this opportunity. Several men shout to the camera in Spanish: ""Thank you, Spain.""- In a span of three days, almost 900 people crossed the Ceuta border, leaving the small Spanish city's immigration centre at almost three times capacity. In the entire previous year, around 1,000 people crossed the fences in Ceuta and fellow enclave city Melilla combined, according to the EU border agency Frontex. The sudden influx of migrants was likely Morocco sending its European neighbours a message,-according to Spanish journalist Ignacio Cembrero. ""[The sudden migrant influx] was a reminder,"" Cembrero told Al Jazeera. ""A way for Morocco to show that it controls immigration and holds the migrant pipeline in its hands."" EU-Morocco free-trade deals have come under attack from the-Polisario Front,-which lodged a series of lawsuits contesting the deals. In December 2016, the European Court of Justice nominally sided with Morocco, upholding agricultural accords. Both Moroccan authorities and European authorities are aware that this [route] can be opened at any time, and that the more you close other options [...] there can become more pressure on the Western Mediterranean route. Ivan Martin, Pompeu Fabra University The court decision, however, distinguished Western Sahara from Moroccan territory proper, which meant that-goods there were not covered by the deal, thereby reigniting debate over the disputed region. ""The European Court of Justice decision was kind of a pyrrhic victory for Morocco,"" said Markus Gehring, lecturer in law at the University of Cambridge. ""For the past [""�] 50 years, the parties agreed to disagree on the status of the Western Sahara and that is perhaps no longer a tenable situation."" On February 6, a week and a half before the mass Ceuta border crossings, Morocco's Minister of Agriculture Aziz Akhannouch called on Europe to find a solution to the trade dispute, warning that failure to do so would bring ""grave consequences"", both commercially and in migration policy. ""Any impediment to the application of this agreement is a direct attack on thousands of jobs on both sides in extremely sensitive sectors and a real risk of resumption of migratory flows that Morocco has managed and maintained through sustained effort,"" Akhannouch said in a press release. Between 25,000 and 40,000 sub-Saharan African migrants are believed to be living in Morocco at the moment, many of whom intend to continue on to Europe, according to Ivan Martin of the Interdisciplinary Research Centre on Immigration at Pompeu Fabra University. Morocco has worked closely with Europe to regularise migrants there and block them from continuing on towards Spain along the so-called Western Mediterranean Route to Europe. ""It is not in the headlines because it is more or less working in terms of migration control,"" Mart��n said. ""Both Moroccan authorities and European authorities are aware that this [route] can be opened at any time, and that the more you close other options [...] there can become more pressure on the Western Mediterranean route."" The EU leadership is certainly eager to maintain good relations. The day after Akhannouch's warning, European Commission President Jean-Claude Juncker met-the Moroccan minister to reaffirm the bloc's commitment to preserving free trade accords as they stand. The EU is Morocco's most important trading partner, representing 55.7 percent of its trade in 2015. Sixty-one percent of Morocco's exports went to the EU in the same year. Yet, while Morocco's significance for the EU in trade is relatively minor for the bloc as a whole, Europe depends heavily on Morocco for cooperation on two of its most important concerns: migration and counterterrorism cooperation. Within the next few months, the Polisario Front, according to its lawyer, will present a parallel case seeking to prevent an EU-Morocco trade agreement being applied to fish caught in Western Saharan waters. Several experts consulted by Al Jazeera predicted a similar outcome to the December case. Morocco is offended that the EU courts lent legitimacy to the Polisario Front and considered it the sole representative of the Saharawi people - many of whom live in the Moroccan-administered Western Sahara - according to Samir Bennis, political analyst and editor-in-chief of Morocco World News. ""It is very likely that Morocco will stop its cooperation with the European Union on immigration if the EU takes no action to show its willingness to respect Morocco's concerns and its position regarding the Sahara,"" Bennis said. ""The prospect of such a scenario would be disastrous for Spain, which would find itself dealing on a daily basis with an avalanche of immigrants trying to reach its territory through Ceuta and Melilla."" According to Bennis, Madrid has reached a tacit agreement with Rabat to support Morocco's claim to the Western Sahara in the EU in exchange for continued cooperation on controlling migration. Yet border crossings continue. On March 7, 17 migrants in a raft were-filmed crossing from Morocco to Spanish waters in broad daylight and in plain sight of numerous passersby. Moroccan police failed to intercept the vessel. However, if Spanish Prime Minister Mariano Rajoy was concerned about what this impending diplomatic crisis could mean for his country and its reliance on Morocco for security and migration cooperation, he wasn't letting on. Cooperation with Morocco, he told the press, was ""magnificent"". Cembrero, on the other hand, sees Europe and Morocco heading towards a political impasse with no obvious way out. And, should Morocco decide to flex its muscles over the Western Sahara issue, Spain will feel the brunt of its anger, most likely on the border fences in Ceuta and Melilla. ""[Spain] is the weak link of the European Union,"" Cembrero said. ""I'm not saying it will happen within a few weeks, but I think we're entering a period of uncertainty."" Source:-Al Jazeera News", -2197,2017/3/13,http://www.aljazeera.com/news/2017/03/unicef-2016-worst-year-syrian-children-170312125234588.html,UNICEF: 2016 was the worst year yet for Syrian children,UN says more Syrian children suffered 'grave violations' in 2016 than in any year since ruinous war began.,"On a winter morning in January, Majed, 13, and his friend Omar, 11, were heading to a public park near their homes in eastern Aleppo to play and ride their bikes. It was only two weeks since the December ceasefire began, and the lull in fighting allowed the two friends and many children in the neighbourhood to venture outside. On their way to the park, they spotted a ""strange"" metal object buried in the sand. ""It looked like a soda can. I stepped on it, and it exploded,"" Majed recalled. ""I was thrown in the air, but I never lost consciousness,"" he said. ""I was worried about Omar, I didn't know how to help."" READ MORE: Searching for a light, Syrian children struggle with trauma People rushed to the scene to find Majed and Omar severely wounded.- Shrapnel tore through Majed's face and body, causing some of his intestines to be removed. But he was lucky that his foot was not amputated.- ""I was so cold and in pain,"" he said. Majed's friend Omar did not make it to the hospital. He died inside the taxi five minutes after two men rescued them. Majed and Omar's story is told in a UNICEF-report published on Monday.-Despite an ongoing ceasefire, deadly incidents - such as those experienced by the boys - continue, highlighting what UNICEF said was the ""highest on record"" level of ""grave violations against children"" in Syria since the war began in 2011. ""Verified instances of killing, maiming and recruitment of children increased sharply last year in a drastic escalation of violence across the country,"" the report said. According to the report, at least 652 children were killed in the last year, making 2016 the worst year for Syria's children since verification of child casualties began in 2014. Of that number, 255 children were killed in or near a school in 2016, UNICEF said.- The number of child fatalities in 2016 was at least 20 percent higher than in 2015. At least 647 children were also reported injured, including Majed. There were also at least 338 attacks against hospitals and medical personnel. In one incident in November, Al Jazeera captured the moment an-air raid hit a children's hospital in eastern Aleppo, forcing medical staff to evacuate patients, including several newborn babies still in incubators. READ MORE: You probably won't read this piece about Syria ""The depth of suffering is unprecedented,"" UNICEF Regional Director-Geert Cappelaere said in a statement. ""Millions of children in Syria come under attack on a daily basis, their lives turned upside down. Each and every child is scarred for life with horrific consequences on their health, well-being and future."" Aside from the child fatalities, UNICEF also recorded that more than 850 children were recruited to fight in the conflict - double the number recruited in 2015. ""Children are being used and recruited to fight directly on the front lines and are increasingly taking part in combat roles, including in extreme cases as executioners, suicide bombers or prison guards.""- After six years of conflict, nearly six million children now depend on humanitarian assistance, a twelve-fold increase from 2012, with millions of children being forced to evacuate multiple times. UNICEF said that reporting in some areas remains a challenge, with 2.8 million children living in hard-to-reach areas, including 280,000 living under siege and cut off from humanitarian aid.- ""Beyond the bombs, bullets and explosions, children are dying in silence often from diseases that can otherwise be easily prevented,"" the report said. ""Access to medical care, life-saving supplies and other basic services remains difficult."" More than 2.3 million Syrian children are now living as refugees in Turkey, Lebanon, Jordan, Egypt, and Iraq, the report said. Those who have managed to stay or return to their homes, like the families of Majed and Omar in eastern Aleppo, are no less vulnerable to life-threatening risks, such as unexploded ordnance. READ MORE: Syria's civil war explained- According to the report, at least 88 percent of explosive remnants are a life-threatening hazard, and 75 percent of incidents involving explosive weapons occurred in densely populated areas, including eastern Aleppo. Recalling the day her son was wounded, Majed's mother said she was at the market when she heard about the explosion.- ""Two children were [reportedly] injured in a bomb, and one of them was killed,"" she said. ""They were saying it was Majed. There was no more bitter feeling a mother could have."" While Majed recovers from his injuries, he said he holds onto a dream of continuing his education, having lost four years of schooling to the war. ""I stopped going to school when the fighting escalated. I was excited to go back to school this semester, but I still need help to walk and eat,"" he said. ""I can't wait to go back when I recover."" Majed said he has a message for other children: ""I now tell all my friends and neighbours to never approach deserted parks and never play with strange items. It can kill them."" Source:-Al Jazeera", -2198,2017/3/13,http://www.aljazeera.com/indepth/opinion/2017/03/walled-hotel-struggle-decolonisation-170312143224959.html,,,"The British street artist known as Banksy is no stranger to controversy and the recent debate over his new installation in the town of Bethlehem, the Walled Off Hotel, does not come as a surprise. Some critics have accused Banksy of Pale-ploitation - of making profit off Palestinian suffering, normalising the occupation, beautifying the wall, and even worse, some have claimed that the hotel installation is an international conspiracy meant to represent the Israeli colonisers and the colonised Palestinians as equal sides in the struggle. Quite the opposite. The new installation hotel is a powerful anticolonial statement about British imperialism, the Zionist colonial project, Israeli occupation and apartheid politics in Palestine. Banksy exposes, subverts, and lampoons the naive Western liberal fantasy frame, by which Western travellers disconnect the struggle and travel itself from its colonial history, ignore the gross Israeli violations of Palestinian human rights, and present the Israelis and Palestinians in the language of moral equivalency and parity. One of the major attractions of this hotel's lobby is its spectacular fetishised simulation of one of the legacies of colonial history, namely the gentlemen's club. The gentlemen's club serves as the frame narrative, so to speak, for the hidden narrative of the colonial story-within-a-story of the Balfour Declaration, an egregious historical document whose effects still shape the Zionist ethnic cleansing project in Palestine. Banksy correctly suggests that the Balfour Declaration is the truth of the colonial spectacle of the gentlemen's club and the Zionist settler-colonial project. The Walled Off Hotel is thus a part of the British national debate not only about colonialism, but also about the Balfour Declaration. The gentlemen's club replica in its colonial glory offers an anti or counternarrative to the exotic nostalgia boom for the British Raj that has swept British public discourses and the media in the past few years. Banksy himself issued a statement in which he situated his installation in this national psychodrama. He stated: ""It's exactly one hundred years since Britain took control of Palestine and started re-arranging the furniture - with chaotic results. I don't know why but it felt like a good time to reflect on what happens when the United Kingdom makes a huge political decision without fully comprehending the consequences."" OPINION: The rise and rise of the border wall This national reflection is even more urgent in light of the revisionist historical campaign that British politicians have been leading to exonerate Balfour and the British government of its responsibility for the destruction of Palestinian society. Prime Minister Theresa May and Foreign Secretary Boris Johnson have gone as far as exhorting Britons to ""feel pride"" in the Balfour Declaration, which ""reflected a great tide of history"". The art work in both the lobby and rooms of this installation hotel also bear witness to the ugly realities of the occupation and the apartheid wall outside. They carefully document the ongoing Palestinian Nakba under the Zionist settler-colonial project and apartheid regime. The western wall of the lobby is adorned with hunting CCTV cameras mounts and a collection of slingshots as well as two criss-crossed sledgehammers, just above the royalty plate collection. Banksy successfully juxtaposes the technologically sophisticated surveillance system of the Israeli occupation and apartheid regime as well as the brute force of the sledgehammers with the primitive ""weaponry"" that has functioned as an iconic symbol of Palestinian resistance. The threat of the surveillance cameras is heightened by the few drones that are hanging to the left of the trophy wall. OPINION: The need for a museum on British colonisation of India The most moving and highly emotional area of the installation-hotel is the Gaza Memorial, which was completely ignored in the media. The magnitude of the destruction and death of Israel's wars on Gaza is captured in three different exhibits: An elaborate recreation of the roof-knocking tactic of the Israeli military; a glass case showing children's dusty shoes and a school backpack, probably scavenged from the rubles in Gaza; and the scale of justice, in which the artist placed heaps of fake teeth to represent the victims of Israel's ""protective edge"" war on Gaza. In countless objects and displays, Banksy undermines the ways in which Western liberal media and public discourses frame the Palestinian struggle for freedom in the language of moral equivalency, misrepresenting it as a symmetrical struggle between two equal and equally legitimate narratives. The bust of a Hellenised Palestinian youth, a clear take on Michelangelo's classic statue David, re-appropriates and inverts the classic Western underdog master-narrative. The homosocial and intimate subtext of the pillow fight between an Israeli soldier and a Palestinian youth betrays the dialectic of involuntary participation and forced identification in such power games between persecutors and their victims. The homologous image of this pillow fight cannot be anything but the ""death (soccer) match"" in Auschwitz. The artist's alleged invitation to Israelis to visit Bethlehem is full of sarcasm and a parody of Westerners who think that multicultural tolerance and acceptance of the other can offer the antidote to the so-called ""conflict"". It also brings home to Israeli citizens the illegality of the occupation, an issue that has been long forgotten in Israeli media and public discourse. On its low daily rate and limited available space, however, this installation hotel cannot be self-sustainable. It is nothing more than a parody of the many occu-touristic commercial ventures that have developed around the occupation and apartheid wall. Indeed, Banksy draws attention to the problem of commodifying Palestinian suffering and oppression within the contradictions of Palestinian captive economy under occupation. For Banksy, no political solution is viable without sustainable economic independence. Grounded in his understanding of the universality of the struggle for freedom, Banksy reinvents the Palestinian struggle in a universalist idiom of revolutionary politics and solidarity. - In its playful pun on the luxurious Waldorf-Astoria Hotel, Banksy also situates occu-tourism and the Israeli apartheid regime itself within the contradictions of global capitalist economy. The polarisation of wealth in the region could have been invoked in the idea of the gentlemen's club itself, a sarcastic comment on one of Tel Aviv's boutique hotels, whose decor is supposed to be a throwback to a 1950s gentlemen's club. Grounded in his understanding of the universality of the struggle for freedom, Banksy reinvents the Palestinian struggle in a universalist idiom of revolutionary politics and solidarity. The gallery does not simply reflect a ""marriage"" between Palestinian art and global art in a way that elevates ""both Palestinian and universal art"". READ MORE: Jim Crow is alive and well in Israel Through his putatively apolitical artistic symbols, Banksy offers Palestinians a common struggle with other disposable communities around the globe, including refugees (the three refugee-less paintings), the unemployed and unemployable (the three rat clocks), and impoverished British communities (the girl with the balloon located just outside the site). This universality is the only way towards, as the logo embroidered on one of the bouncer's' black windbreakers says, ""decolonisation"". Jamil Khader is professor of English and dean of research at Bethlehem University, Palestine. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2199,2017/3/13,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501886.htm,Transported to a new world of trade,,"London lawyer sees far-reaching potential in China's Belt and Road Initiative - 'greater than anything previously witnessed' The world's transport industry hopes China's immense international infrastructure project, the Belt and Road Initiative, will provide much-needed impetus for sustainable economic growth and increased free trade, says Harry Theochari, global head of transport at the London-based law firm Norton Rose Fulbright. ""The Belt and Road Initiative is possibly the largest and most exciting transport and infrastructure program in modern times. The movement of raw materials and the scale of the engineering that will have to be undertaken, will be greater than anything previously witnessed,"" he says. Theochari spoke from his office overlooking the gently flowing waters of the Thames, the river that once connected London to its trading partners. - Harry Theochari says the Belt and Road Initiative is possibly the largest and most exciting transport and infrastructure program in modern times. Provided to China Daily Ships no longer travel into London, instead stopping at modern ports in Essex and elsewhere, but London remains the heart of the maritime services industry, which hopes that British ports can also play a crucial role in the Belt and Road Initiative, improving Britain's connections with China and Asia as it leaves the European Union. Theochari is now working toward this vision, in his capacity as vice-chairman of Maritime London, which looks after the city's maritime services players such as law firms, insurance companies and ship-brokerages. ""Engaging with China is crucial for the UK to protect its centuries-old maritime sector and continue to play a global role,"" he says, adding that great synergy can be achieved between China's development as a leading ship-owner and shipbuilder and the UK's maritime financial services. London's maritime service industry, which was once the heart of the British Empire, still contributes 4.4 billion ($5.35 billion; 5 billion euros) to the UK economy and directly supports the employment of about 10,000 to 11,000 people, according to Pricewaterhouse Coopers. The Belt and Road Initiative, which was launched by President Xi Jinping three years ago to boost trade and infrastructure through investment, is now gaining momentum after receiving support from more than 100 countries and international organizations. So far, Chinese companies have invested more than $50 billion in projects in those countries. In May, China will host the Belt and Road Forum for International Cooperation in Beijing to discuss international collaboration potential. British Prime Minister Theresa May is invited to attend. In Theochari's view, the Belt and Road Initiative's power is its coordination of efforts to build transport infrastructure and the creation of a logistics chain of roads, railways and ports, which will significantly reduce trade costs and increase efficiency. ""This initiative is made possible because of China's political will, economic power and willingness to take a leadership role in this fundamentally important area of world trade. In the past, the tendency would be to focus on moving goods or raw materials within sovereign borders or political groupings to an export or import point. The planning was very local in nature,"" Theochari says. ""The initiative looks to create a global logistics chain with trade routes being planned across continents and oceans. These logistic chains, from point of origin to point of delivery, will play a key role in reducing the costs and increasing the efficiency and sustainability of global trade."" In addition to boosting trade growth, the Belt and Road Initiative will also be instrumental in championing free trade, a message highlighted in President Xi's speech at the World Economic Forum in Davos, Switzerland, in January. ""It is clear from President Xi's speech at Davos that China has every intention of continuing to increase its trade with the rest of the world. Enhanced trade links will help fast-growing countries like Malaysia and Indonesia, with young, ambitious and growing populations, to develop even faster,"" Theochari says. Some projects in Belt and Road countries are already built and in operation. In 2016, China Railway Tunnel Group completed the Qamchiq Tunnel in Uzbekistan, the longest tunnel in Central Asia. It is part of the 169 kilometer Angren-Pap railway line, which improves Uzbekistan's infrastructure and enhances China's links with Central Asia. Meanwhile, the China-Belarus industrial park is in development, and work on the Hungary-Serbia railroad is to begin soon. Cooperation between China and Central and Eastern European countries has been further expanded. China's leadership in realizing global free trade is backed by concrete action. For instance, in November last year President Xi called for the building of a Free Trade Area of the Asia-Pacific at the APEC CEO Summit in Peru. Meanwhile, the China-led Asian Infrastructure Investment Bank is gaining momentum in leading a new method for multinational development bank operations. Established just over a year ago with 57 founding shareholders - in spite of opposition from the US - the AIIB has already approved a lending program of $1.73 billion, and invested in nine projects across Europe, Asia and the Middle East. In addition to the AIIB's financing capacity and global support, Theochari says the bank's corporate governance structure is unique: ""Its international advisory panel consists of notable figures, a number of whom have held political power and who not only understand trade but how the international political landscape works in practice."" The AIIB's international advisory panel includes Anders Borg, former finance minister of Sweden, and Lord Nicholas Stern, a professor at the London School of Economics and former chief economist at the World Bank. Theochari also praises the long-term sustainability focus of the AIIB, which is coherent with its motto of ""lean, clean and green"". For him, one demonstration of this sustainability mindset is the bank's ability to help developing countries along the trade route to truly grow. ""Its commitment to investing in projects such as rural infrastructure, sanitation and environmental protection, could contribute significantly toward generating wealth through well-planned infrastructure,"" he says. The AIIB has already launched projects to improve sanitation in Indonesia, upgrade Bangladesh's electricity grid and build highways in Pakistan and Tajikistan. Theochari, who was born into a poor Greek Cypriot family that emigrated to the UK in the early 1960s, started a career in shipping law as ""a natural choice"". Greece had a major shipping fleet and he spoke the language of the Greek shipowners. In 1985, he joined Norton Rose Fulbright, and in 1987 he visited Pudong district in Shanghai. ""It was my first time in China and all I could see were fields and a few pigs. I pinch myself now when I go to Shanghai and see this magnificent new city, with world-class architecture and built in almost no time,"" he says. Over the three decades of Theochari's career in shipping law, he not only has witnessed China's dramatic transformation but also the tremendous international strength accumulated by Chinese transport companies overseas, especially in the years following the financial crisis. In 2014, three out of 15 of the world's largest shipping lenders were Chinese banks, together providing $45.3 billion of global shipping market finance - just under 20 percent of the $258 billion total shipping finance debt of the top 15 lenders' combined. Before 2008, no Chinese banks were among the global top 15 shipping lenders. The picture looks similar in the aviation financing industry. In 2016 China-owned Avolon Holdings agreed to buy the aircraft-leasing business of CIT Group for $10 billion in a deal that will create the world's third-biggest rental fleet. In the port sector, the Chinese shipping company Cosco now operates two container terminals and manages 67 percent of the Port of Piraeus, which now serves as a major logistics hub for China's trade with Europe. Theochari says all such developments further enhance the organization of China's infrastructure leadership capacity, and the strength of the Belt and Road Initiative. ""Having witnessed China's change over the past 30 years, it is exciting to see the way China is now championing the Belt and Road Initiative, the success of which I believe will match China's significant achievements over the past few decades,"" he says. cecily.liu@mail.chinadailyuk.com Bio Harry Theochari Global head of transport, Norton Rose Fulbright LLP Born: Nov 17, 1960 Education: 1979-82: LLB from London School of Economics Career: 1985: Joined Norton Rose Fulbright 1990: Partner, Norton Rose Fulbright 1994: Head of shipping, Norton Rose Fulbright 1998-present: Head of transport, Norton Rose Fulbright 2009: Appointed to the board of Maritime London 2015: Vice chairman of Maritime London 2016: Chairman of the International Maritime Industries Forum Book: Chariots of the Gods by Erich von Daniken Film: The Godfather: Part II Music: Billy Joel and Frank Sinatra Food: Steak Hobbies: Gardening and rugby (China Daily European Weekly 03/10/2017 page32)", -2200,2017/3/13,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501885.htm,Survey: Dealerships may face slowdown,,"Despite the vastness of China's car market, the percentage of dealers who believe they will be profitable this year has fallen to less than half of last year's figure due to inventory concerns. A survey of more than 1,400 dealerships shows that only 17 percent think they will be profitable this year, while 77 percent believe they will make ends meet and 6 percent say they will lose money. Last year, 34.2 percent were profitable, 50.4 percent made ends meet and 15.4 percent were in the red. The survey, conducted by the China Automobile Dealers Association, covered dealerships that sell cars from seven premium brands, 27 international volume car brands and 36 Chinese brands. Dealers had a good year in 2016 thanks to a sales surge resulting from China's 50 percent tax discount for cars with engines no larger than 1.6 liters and reasonable inventory levels, said Lang Xuehong, a deputy secretary-general of the dealers association. The association's statistics show that last year, more than 86 percent of dealerships had ""acceptable"" inventory levels - meaning less than 1.5 times their monthly sales - nearly four times the percentage in 2015. This performance also drove dealers' satisfaction with carmakers to a score of 81 points, the highest level the survey has seen since it was first undertaken in 2009. ""Car sales saw about 14 percent growth year-on-year in 2016, and it is generally agreed that the situation will not be as good this year,"" Lang says. Most industry insiders, including those from the China Association of Automobile Manufacturers, expect this year's growth rate to fall to around 5 percent. ""What dealers fear most is carmakers seting unrealistic sales goals, which would result in high inventory levels and force them to sell cars at a discount."" In fact, the inventory index, which hit a 14-month high last month at 61.5 percent, continued its climb to 66.6 percent in February, according to the dealer association, while a reasonable level should be no higher than 50 percent. Besides inventories, dealers expect carmakers to produce cars based on demand, to take current dealerships into consideration when they expand their sales network and to prevent dealers from selling cars in regions where they are not authorized, according to the survey. The dealer association said in the survey that carmakers should listen more to dealers when working out business policies so that they create a win-win situation, but added that relations between the two have improved a lot, ""moving toward those between partners or brothers"". Zhang Zhiyong, an independent analyst in Beijing, said dealerships used to be totally subordinate to carmakers, and that their quarrels and compromises in the past one or two years should be remembered as landmarks of their evolving relations. Carmakers, especially premium brands, are focusing more on dealers in their new business strategies. Li Hongpeng, senior executive vice-president of Beijing Mercedes-Benz Sales Service, said the company proposed in 2014 that the relations with dealers should be like that of fish and water, and has shifted its philosophy from managing dealers to serving them. ""We track their profitability to learn whether they match our development level. We adjust our business policies and retail support measures based on that."" Porsche said it values its dealers. as they represent the brand with customers. David Xiao, vice-president of sales at Porsche China, said it is flexible about store sizes in smaller cities, a move he believes will ease the financial burden on investors. ""Last year was a bumper year for us, and we hope that all of us can see better development this year,"" Xiao says. lifusheng@chinadaily.com.cn - A man examines cars on display at a dealership in Nanjing, Jiangsu province. Su Yang / For China Daily (China Daily European Weekly 03/10/2017 page27)", -2201,2017/3/13,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501884.htm,Beijing is still world's billionaire capital,,"Beijing was listed as the billionaire capital of the world for the second year running, ahead of New York, Hong Kong and Shenzhen, according to the latest findings Hurun Global Rich List 2017, which was released on March 7. Bill Gates was listed as the richest man in the world with a net wealth of $81 billion, and Warren Buffett remained in second place with $78 billion. Jeff Bezos, founder and CEO of Amazon.com Inc, reached the top three for the first time, as his wealth surged 37 percent to $72 billion. The total number of Chinese billionaires exceeded that of the United States for the second year running. China and the US, with 609 and 552 respective billionaires, accounted for half of the billionaires worldwide, the report said. Globally, the logistics and retail sectors performed the best, gaining 15 percent and 13 percent respectively, in number of billionaires. Germany had the third-largest number of billionaires this year, surpassing India. The United Arab Emirates and Indonesia broke into the top 20 for the first time. ""Shenzhen and Hong Kong now have one of the highest concentrations of wealth in the world, ahead of even California, the state with the most billionaires in the US,"" says Rupert Hoogewerf, chairman and chief researcher of the Hurun Report. ""Global wealth is being concentrated in the hands of the billionaires at a rate far exceeding global growth,"" Hoogewerf says. China added 41 billionaires over last year. Their average age was 58, younger than the global average of 64. The February IPO of China's leading delivery and logistics company, SF Express Group Co, made CEO Wang Wei the third-richest man in China. His wealth surged fivefold to $27 billion, just behind Dalian Wanda's Wang Jianlin with $30 billion and Alibaba's Jack Ma with $29 billion. In China, the real estate sector generated the most billionaires, followed by the manufacturing, technology, media, and telecom industries. Fifteen percent of the billionaires were women. Among the 152 women who built their own fortunes, Chinese women led the way with 121. ""China is indisputably now the best place in the world to be a female entrepreneur,"" Hoogewerf says. zhuwenqian@chinadaily.com.cn (China Daily European Weekly 03/10/2017 page28)", -2202,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501883.htm,Haier targets UK taste for luxury,,"Manufacturer of major household appliances aims for the top in British sales strategy Haier, the world's biggest manufacturer of white goods, or major household appliances, is strategically expanding into the UK's luxury appliance market, using experience accumulated through its decadelong trial-and-error history in Britain. ""Our definition of premium is good function, luxury finish and designs close to the customers' needs. We want to design products that satisfy customers' lifestyles,"" says Haier UK Market Director Dave Yearsley. The Qingdao-based company is one that reflects China's economic growth. Founded in 1984, a few years after China's reform and opening-up, the company quickly grew by leveraging the country's cost-effective manufacturing sector. Visitors at Haier's stand at IFA 2016, one of the world's biggest trade shows for consumer electronics, in Berlin. Provided to China Daily The manufacturing competitiveness of China allowed Haier to become the original equipment supplier for many Western brands. In fact, when Haier first established a base in the United Kingdom in 2007, its primary goal was to support partners that resold its products. In 2012, Haier decided that volume and revenue were not enough, and that brand value creates significant profits. That was when the company started to sell its own branded products in the UK's retail market, through chains including Dixons and Argos, and via independent retailers, such as Euronics. ""These platforms were happy to accept our products because they knew us already as an OEM (original equipment manufacturer) supplier, and they could be assured of our quality,"" Yearsley says. Refrigerators, freezers and washing machines dominate Haier's product offerings so far. They are products that have unique selling points, such as the multi-door feature on refrigerators that allows consumers to separate food in a more organized way. Another feature is the lower-than-average noise level of Haier washing machines. Haier realized that it needed to go one step further than simply supplying functioning products. ""In the past, we have not had the infrastructure to support our sales,"" Yearsley says. ""We thought that we could just have good products and rely on one-off promotion deals, but that did not work. ""The UK market is highly competitive in the white goods sector, so having the right infrastructure to support our sales is very important. And infrastructure means having the right human resources, organizational structure and the vision of where we want the brand to deliver in the next five years."" Meanwhile, Haier also moved into many other global markets. Its international expansion started in emerging economies, including Indonesia, Malaysia and the Philippines. By the turn of the century it had expanded into markets such as the United States. In the US, Haier entered the market by selling compact refrigerators to college students, which filled a gap in what was available. In Europe, the company established a regional headquarters in France, which oversees subsidiaries in Belgium, Britain, Germany, Italy, Poland, Russia and Spain. A more-than 1,000-square-meter research and development center opened in Nuremberg in 2011, where designs are refined for dishwashers, refrigerators and freezers. Meanwhile, Haier's sales grew rapidly in China and internationally. According to the latest data from Euromonitor International, the company's retail volume topped the white goods market for the seventh consecutive year in 2015, with 9.8 percent of global retail volume. Yearsley says Haier's products are the reason for its competitiveness, and the fact that they are created through Haier's research and development section is important. Its R&D capability was strengthened when it acquired the New Zealand appliance brand Fisher & Paykel and the appliance unit of US-based General Electric. ""We feel we are very much a key part of our headquarters' research and development process, because we participate in the long-term projection process, contributing our thoughts on products that would be useful for the next two to three years,"" he says. ""At the same time, we also have a six-month rolling calendar for forecasts, to set a clear operation process of what is needed to support our customers."" Along with the mission of building the Haier brand in the UK, Haier has continued to supply other brands, although the exact arrangements are confidential. Yearsley says Haier's strategy of managing both the supply of manufactured products to other companies and the selling of its own branded products, without creating competition between the two, is done by ensuring its products that are branded for other companies are aimed at the mass market, while Haier's own branded products are directed at the middle and premium sectors. If retail price is an indication of Haier's market positioning, it has certainly succeeded in creating a luxury image. Items sold through Argos, for example, include a top-of-the-line fridge-freezer that retails for 1,899.99 ($2,336; 2,205 euros), which is second only to Samsung's fridge-freezer, which sells for 2,199.99. By comparison, the most expensive fridge-freezer sold by Chinese white goods manufacturer Hisense through Argos retails for only 799.99. Haier products have received favorable industry reviews. In 2015, one Haier fridge-freezer was described by UK product review website, Trusted Reviews, as ""an outstandingly practical and stylish fridge-freezer"" and awarded a score of 9/10. Reviewer Richard Stevenson wrote that he was particularly impressed by the product's design, its flexible compartments, full-size freezer drawers and consistent cooling throughout the refrigerator. However, having great products alone may not be enough in a mature white goods market, such as the one in the UK, says Doreen Wang, global head of brands at Kantar Millward Brown, a British multinational market research firm. ""Building a strong brand in the white goods market is important, and Haier's overseas investment on brand-building is limited, compared with other Chinese companies in the consumer electronics and white goods market, such as Huawei. Haier would benefit from spending more on promoting its brand story,"" Wang says. ""Haier also needs to support its ambition to build the premium brand with a strong brand story. Having products with cutting-edge functions is not enough to establish a premium brand. Luxury brands are not about functions; they are about brand story, brand heritage, brand DNA. So brands need to create an emotional attachment with their consumers."" Comparing Haier's expansion paths in the UK and the US, Wang says one key difference has been timing: Haier started in the US early, about 15-20 years ago. Back then, the company understood that, as a newcomer, it needed to find a niche sector to start with, so it found the student market and was successful there. By comparison, Haier expanded into European markets during the past decade. ""By then, more and more Chinese firms had expanded into Europe and, consequently, they were becoming more confident, and this confidence may have led Haier into hoping to position themselves as a premium brand, which is ambitious but may not necessarily work,"" Wang says. Looking into the future, Yearsley says one strategic focus his team is looking to implement is increased market penetration within the laundry category. ""At the moment, we have about 75 percent of revenue generated from our refrigeration category, but in the future our objective is to generate an equal share of revenue between refrigeration and laundry, to support building the Haier brand strength in the overall market."" Haier is also in the process of launching air conditioning products for the business sector in the UK. ""Haier is a major player in this category across the world, and this provides us with a totally new route into the UK market to support building our future growth success."" Before joining Haier, Yearsley worked for the German company Brita Water Filter Systems as sales director for the consumer division. He decided to join Haier because he was looking for a new challenge. ""Working for the world's largest white goods manufacturer that is currently not known in the UK provides a huge opportunity,"" he says. cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 03/10/2017 page30)", -2203,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501882.htm,Responsive mainland insurers win consumer trust,,"Zhou Lijuan, 33, owner of a flower shop in Shanghai, is expecting her first baby very soon. Over the last few months, she has spent a lot of time talking to dozens of insurance agents in a bid to understand how the policies work. ""My child will be born soon and I'm in dire need of protection for myself and my baby,"" she says. Zhou exemplifies Chinese families who know more about insurance than they did in the past. That's because insurers have been responding to the tendency of mainland consumers to buy policies from Hong Kong. Their marketing campaigns are now resulting in consumers buying insurance from the mainland, analysts say. Recent data from the China Insurance Regulatory Commission show that insurers' combined life insurance premium income in January grew 39 percent year-on-year to 758 billion yuan ($110 billion; 103.6 billion euros; 87.5 billion), with regular payments rising 49 percent year-on-year. ""I'm not inclined to face policy uncertainties in markets outside the mainland, so I'd like to invest in protection in the home market, which is more stable and easily accessible,"" Zhou says. Wu Kaihao, a wealth management consultant at Shanghai Blue Point Investment Advising, says many families in China are now approaching wealth management products for protection rather than high returns. This is particularly true for families whose housing needs have been met, and money in bank accounts is enough to take care of day-to-day expenses. ""Retirement planning and education for children are the major things we think about. Five years ago, I'd have bought financial products with yields of some 7 or 8 percent. Now 4 percent is good enough, and for insurance 2.5 percent is good enough,"" says Wu. Pu Dongjun, an analyst at Changjiang Securities, says in a research note that both insurers and consumers are attaching more importance to protection than high returns. ""Since the beginning of 2017, insurance-related dividends are somewhere between 2.5 percent and 3.5 percent, while last year they were between 3 percent and 5 percent. Policies are formulated with more focus on protection, not returns,"" says Pu. Innovative products, such as online tools for Chinese families, have been driving market growth in recent months, says Chen Jiaoyi, an analyst at Zhongtai Securities. A health insurance product by ZhongAn Online P&C Insurance Co, China's first online insurance company, sold 57,000 policies during the first week after its launch, demonstrating customers' strong demand. wuyiyao@chinadaily.com.cn ( China Daily European Weekly 03/10/2017 page26)", -2204,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501881.htm,Guangzhou Port seeks finance for expansion,,"Guangzhou Port Co, which controls one of the largest hub ports in South China, is planning a share offering in the first half of this year as it seeks financing to expand its business, according to a senior company executive. ""It will be a big step forward for the company's business expansion, as we are positioning to develop into an international shipping center,"" says Song Xiaoming, vice-general manager. The company's IPO plan to enter the Shanghai Stock Exchange was approved in late January by the China Security Regulatory Commission, the country's top securities authority. The company was jointly founded by the Guangzhou Port Group, SDIC Communications Holding Co and Guangzhou Development Group Inc in 2010, with registered capital of roughly 5.5 billion yuan ($797 million; 754 million euros; 654 million). The funds will be raised for construction of new docks and berths at the port in Guangzhou's Nansha district, according to the company. Four berths with a handling capacity of 100,000 metric tons of containers each and two 70,000-ton container berths will be built at the third phase, with an investment of more than 7.4 billion yuan. ""Construction of the new berths and docks will help improve efficiency and business expansion,"" Song says. In 2016, Guangzhou Port Co opened 18 new international lines, of which four were designed for Europe and the US. ""The number of containers handled increased significantly last year, thanks to the expansion of shipping lines,"" Song says. qiuquanlin@chinadaily.com.cn - Cars are unloaded at Nansha dock of Guangzhou Port. Xinhua (China Daily European Weekly 03/10/2017 page28)", -2205,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501880.htm,Forex reserves climb above $3 trillion,,"Experts say yuan depreciation may see reversal this year China's foreign exchange reserves climbed above the $3 trillion mark in February, the first rise in eight months, thanks to an improving export situation and a slowing of capital outflows. Analysts say the trend of yuan depreciation may be reversed this year if China's economic fundamentals continue to improve. The country's foreign exchange reserves rose by $6.92 billion in February to $3.005 trillion, the first increase since June 2016, data from the People's Bank of China, the central bank, showed on March 7. In January, the reserves fell to $2.998 trillion, sparking heated discussions over whether they would continue to fall and become inadequate for guarding the country's financial stability. The February rebound may ease such concerns, analysts say. The rise in the reserves was partly due to the recovery in the domestic economic and higher exports in February, says Ren Zeping, chief economist at Founder Securities Co. China's export growth was 15.9 percent in January, with similar growth expected in February. In 2016, the country's exports fell by 2 percent year-on-year. The yuan, meanwhile, stabilized in February. This, together with stricter implementation of foreign exchange purchasing rules, dampened capital outflows and contributed to the rise in foreign exchange reserves, Guotai Junan Securities Co says in a research note. ""The market mood was reversed in February and demand for the yuan rose, leading to the central bank's purchasing dollars,"" said Deng Haiqing, chief economist at JZ Securities Co. Meanwhile, bond yields in the United States, the European Union and Japan all dropped, leading to an increase in bond prices and a revaluation of reserve assets, he says. The State Administration of Foreign Exchange said that China's foreign exchange reserves were likely to gradually stabilize as capital outflow pressures eased - a result of the country's improving economic fundamentals. In the short term, the yuan has stabilized, but in the medium term it still faces potential downward pressure as the dollar may strengthen thanks to improvement of the US economy and possible interest rate hikes by the US Federal Reserve, Ren says. The Fed may raise interest rates as early as next week. He says if that happened, it may trigger capital outflows to the US from emerging markets, including China. Yi Gang, deputy governor of the central bank, said during the ongoing annual plenary session of the National People's Congress that China would stick to its managed floating exchange rate framework to keep the yuan stable. xinzhiming@chinadaily.com.cn (China Daily European Weekly 03/10/2017 page28)", -2206,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501879.htm,Shipbuilder closing down three sites,,"COSCO Shipping Heavy Industry Co, China's third-largest shipbuilder by output, plans to cut the number of shipyards that are able to manufacture offshore engineering products from five to two by 2020, its senior executive said on March 3. The move is the company's latest effort to cut overcapacity, as the global market is unlikely to see a notable upturn anytime soon. Under the plan, its shipyards in Nantong, Jiangsu province; Zhoushan, Zhejiang province; and Dongguan, Guangdong province, will be shut down. The company will keep its manufacturing bases in Qidong, Jiangsu province; and Dalian, Liaoning province, as they are capable of producing high-end offshore engineering products such as polar ships, oil-drilling platforms and cattle carriers. Liang Yanfeng, general manager of the state-owned company, says the move will optimize valuable resources, cut overcapacity and avoid defaulting on orders made by unstable foreign ship owners. It will also prevent price competition between its subsidiaries, Liang says. The Shanghai-based company will also cut its delivery capacity in offshore engineering products from 18 to 9 by the end of 2020, as demand for these types of products has notably dropped in the past three years. Offshore engineering products include functional vessels that can float in deep water for oil drilling platforms. Offshore gas and oil companies use them to process natural gas and crude oil pumped up from beneath the ocean floor. ""In addition, declining international oil and shipbuilding prices, growing costs for materials and labor have become factors squeezing shipyards' earning ability globally,"" Liang says. It is common for shipyards to finance a project in advance after receiving an order in the current market setting. However, affected by falling demand, many ship owners now delay delivery and payment, and sometimes even abandon their orders, Liang says. Dong Liwan, a professor specializing in shipbuilding at Shanghai Maritime University, says it makes matters worse that prepayments have also dropped from 80 percent of the total cost to between 30 percent and 20 percent in shipyards - not only in China but in South Korea, Singapore and Germany. ""Many ship owners from Europe, the US and South America come up with many different excuses to delay payment, such as a change of design or implementing stricter quality checks,"" Dong says. ""They know they have no work for the ships or oil rigs, so they would rather not take delivery. This puts a heavy burden on Chinese shipyards."" Established in December 2016, the company was formed out of the previous COSCO Shipyard Group Co, COSCO Shipbuilding Industry Co and China Shipping Industry Co. COSCO Shipyard and China Shipping Industry all reported financial losses last year. zhongnan@chinadaily.com.cn - 'Hope Six', a high-end multifunctional oil rig manufactured by COSCO Shipping Heavy Industry, at its sailing ceremony in Qidong, Jiangsu province. Xu Congjun / For China Daily (China Daily European Weekly 03/10/2017 page29)", -2207,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501878.htm,French joint venture to serve China's elderly,,"High-end nursing home projects planned as average age rises A joint venture by French nursing home operator Colisee Group and China Merchants Shekou Holdings Co plans to open its first Chinese complex in Guangzhou, Guangdong province, in January as the starting point for its ambition to tap the rapidly growing demand for elderly care services in China. Located in Guangzhou's Panyu district, the new high-end medical nursing home - Guangzhou Panyu International Senior Care and Recovery Center - will combine independent living communities, assisted living facilities, nursing homes and care options to provide a ""continuum of care"" for residents, says Olivier Dessajan, general manager of Guangzhou China Merchants-Colisee Senior Care Service Co. In the 12,000-square-meter, 132-bed facility, half of those beds will be dedicated to those with Alzheimer's or other associated diseases. - Niu Siyu, a primary school student, performs an Indian dance for the elderly at a seniors' apartment in Xuchang, Henan province, on Oct 8, 2016. Niu Yuan / For China Daily ""We are mostly focusing on the wealthy class,"" Dessajan says. ""Based on our expertise of senior care services in France, especially with taking care of elderly people with Alzheimer's or other cognitive dysfunctions, semi-dependent and dependent elderly people are our main service targets."" Each resident will have a room and a customized daily program based on experience, habits, tastes and health condition, with a nursing service always on hand. Innovative health and care programs will be provided to help improve the residents' mental and physical condition, combining medical treatment, nondrug therapy, occupational therapy, the Montessori method and an adapted nutritional diet. ""As Alzheimer's experts, we work step-by-step with the elderly and their families to understand and diagnose the disease in order to accompany the elderly in the best way until the final stage of life,"" he says. ""As there is not yet a pension institution in Guangzhou that can provide some particular services for Alzheimer's, when we talk about our project and expertise lots of people have shown interest,"" Dessajan says. Guangzhou has seen a sharp increase in demand for senior care services, with the proportion of elderly in its population continuing to grow, says Ye Fen, director of the social welfare division of the Guangzhou Civil Affairs Bureau. The number of seniors in its population currently stands at 1.48 million - or 17.3 percent of the total population of the city - including 238,000 above the age of 80 and 268,000 people in families with only seniors. Ye says the senior population in Guangzhou is expected to surpass 1.85 million by 2020, creating growing demand in the elderly care service market. About 59,000 beds are provided in Guangzhou currently, averaging 40 for every 1,000 elderly people. Last month, a new nursing home complex was opened in Luogang district, which offers 1,300 beds. Guangdong Trading Holding Group Co announced in February it plans to invest in a 5,000-bed nursing home project in Conghua district. ""According to official studies, the Chinese market for goods and services for seniors is growing very fast, both for the high-end and low-end market. China will be without doubt the largest potential market for elderly care in the world,"" Dessajan says. The senior care industry has developed quickly over the last five years but remains woefully inadequate to cope with the projected increase in the elderly population in China, according to a recent report by Savills, an international real estate adviser. Documents from China's State Council and the Guangzhou city government highlight Sino-foreign cooperation in the sector. The French consulate general in Guangzhou and the civil affairs bureau in the city signed a memorandum of understanding last month on elderly care cooperation. That was an outcome of the long-term blueprint for the development of Sino-French ties, published during a visit to France in 2014 by Chinese President Xi Jinping. Cooperation in elderly care has become a new priority in bilateral ties, says Pierre Martin, economic counselor with the consulate. With 30 years' experience in senior care and management, Colisee Group runs 77 nursing homes and several rehabilitation centers in Europe. China Merchants-Colisee is designing a project in Shenzhen, Guangdong province, and conducting a feasibility study for projects in Beijing and Shanghai. Zhang Yingshu contributed to this story. liwenfang@chinadaily.com.cn (China Daily European Weekly 03/10/2017 page27)", -2208,2017/3/10,http://europe.chinadaily.com.cn/epaper/2017-03/10/content_28501877.htm,Big 3 telecom carriers to hang up on roaming,,"Controversial fees will be ditched starting in October The country's three telecom carriers announced on Mar 6 that they will scrap domestic long-distance and roaming charges starting in October, a move that will push telecom carriers to seek new sources of business growth, including cloud computing and big data. The three carriers are China Mobile Communications Corp, China United Network Communications Group Co and China Telecommunications Corp. Li Yue, president of China Mobile, says his company will scrap long-distance and roaming charges, even though such fees account for 8 to 10 percent of total revenue. ""This move is a challenge for the company,"" says Li. However, it will also encourage the company to enhance management efficiency and reduce its operating costs. Chinese telecom carriers collect domestic roaming fees when the subscriber leaves their local service area. Fees range from 0.6 yuan (8 cents; 0.75 euro; 0.65) to 0.8 yuan per minute depending on the packages they have signed up to. Although roaming charges are subject to wide criticism, they remain an important source of revenue for China's three telecom heavyweights, accounting for nearly 10 percent of their net profits. Premier Li Keqiang announced on Mar 5 the nullification of the long-standing practice of charging fees for distant calls and domestic roaming fees, as part of the government's effort to build a stronger internet industry, when delivering the Government Work Report to the annual session of the 12th National People's Congress. ""We have already canceled the domestic long-distance and roaming charges for new subscribers to China Unicom since Jan 1,"" says Lu Yimin, general manager of China Unicom. ""We hope to innovate our business model, upgrade products and services and develop new businesses, such as cloud computing, big data and the internet of things to make up for the loss and offer better services."" ""The influence on telecom carriers is limited as they have already put forward various types of 4G packages for subscribers to stimulate data consumption,"" says Xiang Ligang, a telecom expert and CEO of industry website cctime.com. Xiang adds that the removal of domestic roaming fees will push telecom carriers to improve their products and services, as well as seek new sources of growth and cultivate emerging businesses. As China implements the Internet Plus strategy, mobile internet and broadband are among the top growth priorities, as demand increases for faster and more cost-effective information networks. fanfeifei@chinadaily.com.cn - Two applicants for the Beijing Film Academy's School of Performing Arts make calls to their relatives to report the status of their tests in Beijing on March 2. Zhao Bing / For China Daily (China Daily European Weekly 03/10/2017 page25)", -2209,2017/3/10,http://www.rte.ie/news/2017/0313/859445-bishop-casey-death/,Former Bishop of Galway Eamon Casey dies,,"The death has occurred of Bishop Eamon Casey, the former Bishop of Galway. His passing was confirmed by a spokesperson for the Irish Catholic Bishops' Conference. He died early this afternoon in a nursing home in Newmarket-on-Fergus in Co Clare. He had been ill for some time. Bishop Casey resigned for personal reasons after it had been revealed he had been making payments to Annie Murphy-to support their son. Peter Murphy was born in 1974 while his father was Bishop of Kerry. Born in Co Kerry on 24 April 1927, Eamon Casey was among the most energetic and colourful clerics of his age. He became well-known while working in London to source adequate housing for thousands of Irish emigrants in the English capital. After his appointment as Bishop of Kerry he became the first chairman of Tr��caire the Irish Church's Development Aid agency. He was critical of the US's foreign policy at the time of Ronald Reagan's presidency. Pope John Paul II in Galway with Cardinal Tom��s Ó Fiaich (L) & Bishop Eamon Casey - RT? Stills Library As Bishop of Galway, he helped organise the visit of Pope John Paul II to Ireland, hosting the Pontiff for a Youth Mass at Ballybrit Racecourse. In 1992 it was revealed that he had fathered a son during a relationship with Ms Murphy, who was-a distant relative of his. Annie Murphy After the revelation of his son's existence and of the fact that he had taken funds from the diocese to support him, Bishop Casey-fled the country and undertook priestly work in Ecuador, which many saw as a penitential gesture. He was then assigned to a parish in England and finally returned to Ireland in 2006 where lived in a rural parish Shanaglish near Gort in Co Galway. In 2011 he went to live at the Carrigoran Nursing Home in Co Clare. Tonight, Peter and the rest of Bishop Casey's family issued a statement acknowledging his ""priestly work"" and thanked everyone-who supported him in the past, in particular, ""the clergy and the people of the dioceses of Galway and Kerry, the Irish community in London, his many friends in Limerick and throughout the country and abroad"". -- President Michael D Higgins paid tribute to Bishop Casey and said many will remember his work on homelessness and housing with the Irish emigrant community in Britain and his work with Tr��caire. He also noted the Bishop's work in South America saying it helped increase Irish awareness of the sources of conflict there. In a statement, Mr Higgins also said: ""Other aspects of his life were the source of pain to others, for which Bishop Casey has apologised and expressed his deep regret, and he himself had the experience of pain visited on him in later life"". Fr Dermod McCarthy, a friend and colleague of Bishop Casey-described-him as a breath of fresh air in the Irish hierarchy. Speaking on RT?'s-Six One, he said: ""He was full of energy; full of life; full of dynamism, and he had great initiatives."" Fr-McCarthy said he believes there will be a sadness across the country over Bishop Casey's death, saying he did great good, especially with his work with Tr��caire. He said on Peter's last visit to Dublin three years ago, he brought him to the nursing home in Co-Clare to visit his father. Tr��caire chairman Bishop William Crean said Bishop's Casey's work with the organisation had benefited millions of people around the world. Tribute's were also paid to his bravery during the funeral of murdered Archbishop Oscar Romero in El Salvador in 1980, when the mass was attacked by death squads, killing 50 mourners. Tr��caire's Executive Director ?amonn Meehan said Bishop Casey narrowly avoided injury during the attack and spent two hours administering the sacrament of the injured.", -2210,2017/3/10,http://www.rte.ie/news/brexit/2017/0313/859342-brexit-scotland/,Plan for second Scottish referendum 'deeply regrettable',,"British Prime Minister Theresa May has said that a second independence referendum in Scotland would set the country on course for ""uncertainty and division"". Mrs May criticised-Scottish leader Nicola Sturgeon for demanding an independence referendum today, saying the Scottish National Party had ""tunnel vision"" on breaking away from the UK. The tunnel vision that SNP has shown today is deeply regrettable. ""Instead of playing politics with the future of our country, the Scottish government should focus on delivering good government and public services for the people of Scotland. Politics is not a game,"" Mrs May added. British PM Theresa May says Nicola Sturgeon's plans for a second Scottish independence referendum are 'deeply regrettable'. pic.twitter.com/BRzGRDZ5BX ""?RT? News (@rtenews) March 13, 2017 It comes after Scotland's First Minister-said she will seek authority for a new independence vote. Speaking in Edinburgh this morning, Ms Sturgeon-said she will take the steps necessary to make sure Scotland will have the choice over whether to become an independent country. Ms Sturgeon said they must have a plan for Scotland for a way forward after Brexit is triggered, saying that doing nothing would mean letting Scotland drift through the next two years with fingers crossed. If Scotland can be ignored on an issue as important as membership of the EU, she said, it is clear its voice and interest can be ignored at any time. Nicola Sturgeon says if Scotland is to have a real choice, a new independence referendum should be held between autumn 2018 and spring 2019 pic.twitter.com/TnmvI6OeKW ""?RT? News (@rtenews) March 13, 2017 It is not just the relationship with Europe that is at stake, but what kind of country Scotland will become, she added. Ms Sturgeon said: ""Whatever path we take it should be decided by us - not for us.""- The timing and details of the referendum will be up to the Holyrood parliament but she said-a new independence referendum should be held between autumn 2018 and spring 2019. Earlier in the news conference, she said it is important to report now on the Scottish government's attempts to find a compromise with the UK government on the issue of Brexit. Scotland ""stands at a hugely important crossroads ... we didn't choose to be in this position ... the stakes are high"". Scotland faces a future not just outside the EU but ""outside the world's biggest single market"", she said.- With ""the collapse of the Labour Party we face a prolonged period of uninterrupted and unchecked Tory government "" which could run ""to 2030 or beyond"". Scotland faces ""the centralisation of power in Westminster"" and what is at stake is ""to what extent can we determine our own direction of travel"". ""What is at stake is the kind of country we will become "", she said. ""The prime minister has been given every opportunity to compromise"", there is no UK plan for the way ahead, and our efforts at compromise have been ""met with a brick wall of intransigence"" and ""a point blank refusal"" to adopt a separate approach for Scotland. ""The language of partnership has gone completely"", as the UK government increasingly asserts itself, muscling in. ""I am not turning my back on further discussions"", she said. ""It is time for me to set out decisively"" the way ahead for Scotland. Downing Street said another referendum would be ""divisive and cause huge economic uncertainty at the worst possible time,""- Meanwhile,-Labour's Jeremy Corbyn has said the Scottish wing of his party will oppose a second independence referendum in the Scottish parliament. However, Mr Corbyn said if the Scottish parliament supports the independence referendum, Labour will not block that decision in the UK-parliament. Taoiseach Enda Kenny refused to be drawn on any possible-effect on Ireland. In a statement issued-during his visit to the United States, Mr Kenny said: ""The question of Scottish independence is a matter which is internal to the UK and Scotland. ""It is not appropriate for us to speculate about any possible scenarios around it. ""The Good Friday Agreement sets out the basis on which unification could arise by peaceful and democratic means. - ""Our primary objective is to ensure that all aspects of the GFA are fully protected under Brexit."" Majority of Scots oppose independence vote before Brexit talks complete - poll It comes as a poll has found a-""clear majority"" of Scots are against having another referendum on independence before the Brexit negotiations are over. The BMG survey for Scotland's The Herald newspaper showed about four in 10 Scots support another vote on independence before Brexit happens. The study also suggests the country is split 52-48 in favour of remaining in the Union, adding to findings that support for Scottish independence has increased following the Prime Minister's ""hard Brexit"" speech in January. The newspaper said the findings show Scotland's future appears on a ""knife-edge"" as Theresa May prepares to begin the process of Britain leaving the European Union. BMG Research interviewed 1,009 Scots aged 16 and over between 23-27 February. It found that 41% supported independence, 44% opposed it, while 13% were unsure and 2% would not say. When ""don't knows"" were ruled out, the results were 52% to 48% against independence. Asked if there should be another independence vote before Brexit, 49% said no, 39% agreed and the remainder said they were unsure. The results mean those who had a view were against another referendum in that timescale by 56% to 44%. A BMG poll last month had Scots split at 51% to 49% on the principle of independence, when ""don't knows"" are excluded. It showed the gap has narrowed since Mrs May confirmed her plans in January to take the UK out of the single market. A similar poll before that speech showed 45.5% were Yes supporters and 54.5% backed No. An Ipsos MORI poll for STV last week found 49% of Scots backed independence, with 51% wanting to stay in the UK. The results were split 50/50 among those likely to vote. Dr Michael Turner, research director at BMG, told The Herald the latest results lend more weight to the view that support for the principle of Scottish independence rose after Mrs May's hard Brexit speech in January. He said: ""Though support for independence is up, there is still a clear majority against the idea of having another referendum before the Brexit negotiations are over. ""Excluding don't knows, some 56% of Scots reject the idea of holding another referendum until negotiations between the EU and UK are complete.""", -2211,2017/3/10,http://www.rte.ie/news/brexit/2017/0313/859249-brexit-parliament-bill/,UK moves closer to triggering Brexit,,"Britain has taken a step closer to withdrawal from the European Union after MPs overturned House of Lords amendments to a bill authorising Prime Minister Theresa May to commence Brexit negotiations. But she looks set to wait another fortnight before kicking off the two-year process of negotiating departure under Article 50 of the EU treaties, with formal notification expected to take place in the last week of March. Mrs May's official spokesman played down suggestions that she had delayed notification due to Scottish First Minister Nicola Sturgeon's announcement that she plans to stage a second independence referendum in the run-up to the expected date of Brexit in spring 2019. If the Upper Chamber decides not to contest the rejection of its amendment by the Commons, as expected, Mrs May needs only to await royal assent of the European Union (Notification of Withdrawal) Bill before triggering Article 50. There was widespread speculation in Westminster that she could do so as early tomorrow, when she is scheduled to make a statement on Europe to the Commons. But her spokesman told reporters the PM had always said she would notify the European Council of the UK's intention to leave by the end of March, adding: ""I've said 'end' many times but it would seem I didn't put it in capital letters strongly enough."" Notification in the last week of March would not only avoid clashing with the general election taking place on Wednesday in the Netherlands, but would also delay the formal opening of negotiations until after a special summit in Rome on 25 March when the remaining 27 member states will celebrate the EU's 60th anniversary. The Prime Minister's European counterparts had been prepared for her to make an announcement this week, with 6 Apri-pencilled in as the date for a meeting of the 27 other EU leaders to respond to the situation - a gathering which will now be pushed back until later that month. MPs rejected a Lords amendment to guarantee the status of EU nationals resident in the UK by a margin of 335 votes to 287, and also overturned a second amendment, which would have required the government to grant Parliament a ""meaningful"" vote on the withdrawal deal eventually secured by Mrs May, by 331 votes to 286. The bill is due to return to the Lords in the first stage of ""parliamentary ping-pong"" which is expected to conclude this evening. Earlier, Brexit Secretary David-Davis told the House of Commons he was ""disappointed"" that the Lords had amended a Bill which passed through the lower House unchanged. The majority of voters, regardless of whether they backed Leave or Remain, now wanted Mrs May to ""get on with the job in hand and to do so with no strings attached"", he said. Mr Davis told MPs he felt a ""moral responsibility"" towards four million EU nationals in Britain and UK ex-pats resident on the continent and wanted swift agreement on their status. And he said he hoped that a guarantee of their future rights would be confirmed in an exchange of letters in advance of the completion of the final deal, in order to end uncertainty for foreign nationals as quickly as possible. He warned that the calls for a parliamentary vote on the deal could be interpreted as an attempt by MPs or peers to defy the will of the British people. ""Whilst it has been badged as a meaningful vote, the reality is there are some who would seek to use this to overturn the result of the referendum,"" he said. ""Any prospect that we might actually decide to remain in the European Union would only serve to encourage those on the other side to give us the worst possible deal in the hope we will do exactly that.""", -2212,2017/3/13,http://www.rte.ie/news/2017/0313/859403-deely-manslaughter-conviction/,Man to be sentenced for woman's manslaughter after murder conviction overturned,,"A man who strangled a woman before dumping her body in the sea will be sentenced for manslaughter next week. Colm Deely, 44, from School Road, Ballyvaughan in Co Clare was originally convicted of murdering 43-year-old-Deirdre McCarthy-in March 2011. However, his conviction was overturned by the Court of Appeal last year. The court heard the prosecution could not rely on the evidence of-then deputy state pathologist Khalid Jabbar. The Appeal Court heard Dr Jabbar's work was not peer reviewed and that the defence had serious concerns about the nature of the pathology evidence even before Deely's original trial in 2013. The Central Criminal Court heard Deely had been socialising with Ms McCarthy in a pub in Ballyvaughan on 27 March, 2011.- They had known each other since childhood and were very friendly. Colm Deely pictured when charged in 2011 The trial in 2013 heard that he went back to the house where she was living after the pub and the two lay together on a bed. He claimed she said she would tell his wife and children about them. He told garda�� that he must have rolled over and he was holding her by the neck but he did not mean to kill her.- Deely said he put her body in his car, drove to a coastal area and put her over the wall, where she rolled down to the sea.- He said he did not mean any of it to happen. The court heard Ms McCarthy was reported missing and searches were carried out before her body was found washed up on Fanore Beach.- Deely initially denied knowing anything about her whereabouts, but later admitted being involved in her death after making a serious attempt to self harm and asking to speak to a local detective. Defence Counsel Sean Gillane said his client had been regarded as a decent, honest, quiet, hard working man and had no history of violence. He had only one prior conviction for drink driving and had acknowledged responsibility for the killing from an early stage. In a victim impact statement, Ms McCarthy's sister, Helen Geoghegan, said it terrified the family to think of what she had gone through, and how frightened she must have been as she was beaten and strangled to death and her body dumped in such a cold and heartless way. Ms Geoghegan said this was done by someone whom she trusted and allowed into her home. She said they would never know what happened in the house on that night. She said they had met Deely during the search for her sister and he had denied knowing anything.- Ms Geoghegan said their mother had since died and she never recovered from what happened and died of a broken heart. Ms Geoghegan said her sister did not deserve to have her life taken so brutally and her body thrown into the ocean. Mr Justice Patrick McCarthy said he would impose sentence next Monday.", -2213,2017/3/13,http://www.rte.ie/news/2017/0313/859385-homeless-dublin-patricks/,"No threat to homeless rooms for St Patrick's, homeless group says",,"The Dublin Region Homeless Executive has said that homeless families are not at threat of losing hotel rooms as demand for-accommodation increases for the St Patrick's Day festival. Dublin Sinn F��in TD Se��n Crowe yesterday raised the issue after families approached his office to say they were being told to vacate their rooms in the run up to St Patrick's weekend. ""Homeless families are facing into St Patrick's weekend with nowhere to stay or go for that weekend. There is no emergency plan, no emergency measures, and no solutions coming from the Government,"" he said. DRHE Chief Executive Eileen Gleeson said however that the agency-has made-contingency plans for St Patrick's Day, and other holidays, by pre-booking hotel rooms and block booking rooms-in advance. She said it was always a challenge but there are plans in place around these demands. Speaking on RT?'s News at One, Ms Gleeson said that families may be asked to leave for other reasons but any family that is asked to leave a hotel should contact the Executive and they will find alternative accommodation for them. She said there are just over 1,000-families in emergency accommodation, with around 60 families a month becoming homeless, but that number has not increased from 1,000 since last October. Ms Gleeson added the fundamental problem is a lack of housing and it will be a couple of years before that problem is resolved. She said a lot of work is being done to keep families in their homes.-", -2214,2017/3/13,http://www.rte.ie/news/business/2017/0313/859376-help-to-buy-scheme/,Help-to-buy scheme to cost more than expected,,"The Government's help-to-buy scheme, which is paid to first-time buyers of newly built homes, is now likely to cost far more than originally expected.- The initiative, which was launched in the Budget, provides a grant of up to �10,000 for home buyers.- Based on average applications to date the cost of the scheme so far this year could be �16m. The Department of Finance had made a provision of �10m for the scheme in the Budget for the full year of 2017.- In a D��il reply to Fianna F��il's finance spokesman Michael McGrath, Minister for Finance Michael Noonan said by 7 March 230 applicants had received payments of �1.48m.- This works out at approximately �15,000 per applicant. - There are currently 3,753 applications which have been made for grants.- On the basis that each applicant would receive �15,000, the cost to the State so far would be �16m by 7 March. - In his D��il reply, Minister Noonan said he expected a number of retrospective cases to be made early in 2017. He added that this was in line with Budget estimates.- ""Given the way it was set up as a demand-led scheme, the Government has no control over the final bill,"" Deputy McGrath said.- He said he expected the Minister for Finance to publish an independent impact assessment of the scheme which has already been commissioned.- ""The Government should have carried out such an impact assessment before putting this scheme in place and it is vital such an assessment is available before the Budget in October,"" Deputy McGrath added. In response to the D��il reply, a spokesman for the Department of Finance said the scheme was there to stimulate house building and that the supply of housing was the Government's number one priority.- He said the scheme would also stimulate economic activity.- However, he added it was ""difficult to extrapolate from these figures as there is no guarantee that people who have made an initial application for the scheme will get mortgage approval from a lender or find a house that suits their needs or their level of affordability.""", -2215,2017/3/13,http://www.rte.ie/news/2017/0313/859428-kenny-us-visit/,Heavy snow hits Taoiseach's US visit itinerary,,"Taoiseach Enda Kenny has been forced to cancel a number of engagements in the United States due to the forecast of adverse weather conditions. Storm Stella is expected to bring two feet of snow and extreme blizzard conditions to the north east of the US in the next 24-48 hours. A number of engagements in Boston this evening were cancelled and a-planned trip to Rhode Island tomorrow-also fell victim to the weather. Mr Kenny will now travel straight to Washington DC tonight to ensure he is there in time for a programme of events on Wednesday and Thursday. A Government spokesman said: ""The priority at this stage is getting to Washington."" #BPDWeatherAlert: Winter storm warning's in effect for TUES. Snow's in the forecast. Get your salt, sand, shovels & snowblowers ready to go! pic.twitter.com/ouq1JZawJH ""?Boston Police Dept. (@bostonpolice) March 12, 2017 The visit of the German Chancellor Angela Merkel to the White House has-been rescheduled to Friday, because of the adverse weather conditions. This-means that Mr-Kenny will be the first European Union leader to meet President Trump since Theresa May's visit. The National Weather Service issued blizzard warnings for parts of Pennsylvania, New Jersey, New York and Connecticut, with forecasts calling for up to 60cm of snow in places by early Wednesday, with temperatures well below normal for this time of year. Some 50 million people along the Eastern Seaboard were understorm or blizzard warnings and watches.- - - Earlier,-Mayor of Boston Martin Walsh told the Taoiseach he could not-say anything to alleviate the concerns of illegal Irish immigrants in the city in the wake of President Trump's various immigration-related executive orders. Mr Walsh, both of whose parents were born in Ireland, held a meeting with the Mr Kenny at Boston City Hall. Immigration was top of the agenda and Mr Walsh said he commended the Taoiseach for going to the White House to raise the issues of concern to immigrants. He said he could not say anything to alleviate the fears of those in Boston, other than it was a sanctuary city and that he would protect that status. In the US, a sanctuary city is the term given to locations that turn a 'blind eye' to law-abiding undocumented immigrants. Boston Mayor @marty_walsh met Taoiseach @EndaKennyTD; on immigration Walsh ""not comfortable"" with where the US is at the moment. @rtenews pic.twitter.com/sCZ9NXJdwC ""?Caitriona Perry (@CaitrionaPerry) March 13, 2017 Mr Walsh said the Boston police force would not be deputised into doing the deportation work of federal authorities. He said he was not ""comfortable"" about where the US was as a country at the moment but he was hopeful that eventually a solution would be found, rather than ""accusing folks of being illegal and calling them criminals"". Mr Walsh said that although he was the ""proud son"" of Irish immigrants he would not be in favour of a solution that was only for Irish illegal immigrants, or any other one grouping. The Taoiseach agreed with him and said he did not agree with ""blanket bans"" and that it was not about ""picking and choosing"" immigrants. He said he could not comment on the executive actions President Trump had taken, but that he had to just work with the situation, but that he would be speaking in a direct but general way when they met on Friday. Appearing to allude to the anti-EU rhetoric coming from the Trump administration lately, Mr Kenny also said during his trip to Washington DC, he had ""a job of work to do in making everyone understand just what the European Union is"".", -2216,2017/3/13,http://www.rte.ie/news/2017/0313/859452-hse-court/,Court order allows doctors to deliver baby of mentally ill woman by C-section,,"The Health Service Executive-has secured court orders to allow doctors to deliver the baby of a mentally ill woman by emergency Caesarian section if necessary. The High Court was told the woman, who cannot be identified, is physically frail and has a long history of mental illness. She is not communicating and had also been refusing to eat and take necessary fluids. She was a victim of sexual abuse in the past. The HSE brought the case before the President of the High Court, Mr Justice Kelly, because the woman has been deemed to lack the necessary capacity to make informed decisions about her treatment. She is in an advanced stage of pregnancy but doctors said she has not responded to their efforts to engage about a delivery plan, has given no indication she understands the information presented to her and is also not communicating with her partner or others close to her. She was hospitalised in recent months due to intensifying concerns about her physical and psychiatric state, which has contributed to concerns about her own health and that of her unborn child who, according to ultra sound scans, appears to be developing normally. While she had expressed a desire some months previously to continue with her pregnancy, her mental condition has deteriorated since and her responses to the pregnancy have been inconsistent. She was described as apparently uninterested in the baby's well-being while on other occasions was observed to be listening to the foetal heartbeat. A consultant psychiatrist considered the deterioration in her mental condition was attributable to the pregnancy. Today, the judge was told by David Leahy BL, for the HSE, a court-appointed independent medical visitor who assessed the woman had, in a report, expressed the view she was of unsound mind and not capable of managing her affairs. Counsel also said doctors wanted to carry out a C-section procedure by arrangement at a future specified date. Mr Justice Kelly said he would delay making additional orders to facilitate a planned C-section at a future date. In the meantime an inquiry will be made as to whether the woman should be made a ward of court. Taking a person into wardship requires the court to be satisfied, among other matters, they lack the necessary mental capacity to make informed decisions about their financial and personal affairs, including medical treatment. Pending that inquiry next week-Mr Justice Kelly continued orders allowing an emergency C-section be carried out should the need arise. He also continued orders permitting doctors carry out obstetric and other examinations and all necessary medical treatment and ancillary treatment, including tube feeding if necessary.", -2217,2017/3/13,http://www.rte.ie/news/2017/0313/859415-shooting-carrickfergus-psni/,Man seriously injured in Co Antrim shooting,,"A man has been shot and seriously injured in Carrickfergus in Co Antrim. The victim is aged in his 40s and his injuries are believed to be ""life-threatening"", police said. He has been-been taken to hospital. A PSNI statement said: ""Police have received a report of a shooting incident in the Pinewood Avenue area of Carrickfergus."" Superintendent Darrin Jones said the man's injuries were being treated as serious and police were following significant lines of inquiry. The attack happened this afternoon. Supt Jones-said: ""Firearms being discharged in a residential area, particularly during daylight hours when children are in the vicinity, is concerning. ""We need the community to give us the information needed so we can remove the dangerous individuals who carried out this attack from our streets and put them before a court of law. ""There will be a continued police presence in the area as we search for those who carried out this brutal attack."" Armed police wearing protective masks carried out raids on property in the area. Alliance Assembly member Stewart Dickson said: ""This is an appalling act, particularly as it was carried out in broad daylight in a residential area. ""Guns have no place on our streets and despicable actions of this nature have absolutely no place in our society. ""Those behind this incident do not speak for the community and I appeal for calm following it.""", -2218,2017/3/13,http://www.rte.ie/news/2017/0313/859435-pseu-holiday-claim/,Annual leave claim may lead to knock in public service,,"A group of civil servants may be set to receive up to two days extra annual leave following a ruling by the Civil Service Arbitration Board, though it is-feared this could trigger knock on claims across the public service. The Public Service Executive Union, which represents mid-ranking civil servants, lodged a claim on behalf of longer-serving Executive Officers seeking an additional day of annual leave after 12 years service, with an entitlement to a further additional leave day after 14 years of service. According to the CSAB ruling, the PSEU argued that annual leave for the affected staff was ""considerably out of line with that of direct equivalents in local authorities and the health sector"". However, the Government had strongly opposed the granting of additional leave, arguing that doing so would incur a significant cost, and lead to knock-on claims from other public servants, as well as a significant drop in civil service productivity equivalent to around 9,000 days a year or 36.7 working years. The Arbitration Board found that the claim had ""validity"" and recommended that the issue of increased annual leave should be discussed as part of this summer's public service pay talks.- The binding CSAB ruling may create significant difficulties for the Government. As far back as 2012, the Fine Gael/Labour coalition sought to eliminate huge discrepancies in annual leave across the public service, by standardising leave entitlements. The 6,345 Executive Officers across the civil service are currently entitled to 23 days annual leave, rising to 25 days after five years and 25 days after ten years. However, the PSEU noted that in local authorities, annual leave was standardised at 30 days per year - five days more than the entitlement for the PSEU claimants in this case. The union also noted that equivalent grades in the health service had a leave entitlement of not less than 28 days, and up to 32 days in some cases. Most of those appointed since 2012 had an entitlement of 30 leave days a year. The PSEU argued that the cost of conceding the claim would be negligible, as it only applied to those who had been in the grade for more than 12-14 years. It remains to be seen if other unions will lodge claims in pursuit of similar increases in annual leave. The PSEU claim comes amid plans to abolish the Staff Officer grade (represented by the Civil Public and Services Union) and merge it with the Executive Officer grade (represented by the PSEU).", -2219,2017/3/13,http://www.rte.ie/news/2017/0313/859453-sebastian-michta/,Appeal for man missing from Gorey,,"An appeal has been issued to trace a 27-year-old man missing from Co Wexford since last week. Sebastian Michta was last seen in the Gorey town area on 10 March. He is described as being 1.67m (5'6"") in height with short brown hair. The Polish national has lived in Ireland for the past few years. Gardai have appealed to anyone who may have seen Mr Michta or know of his whereabouts to contact Gorey Garda Station on 053-9430690, the Garda Confidential Line on 1800 666111 or any Garda station.", -2220,2017/3/13,http://www.rte.ie/news/2017/0313/859260-clondalkin-fire-funerals/,Funerals held for Clondalkin fire victims,,"The funerals of a pregnant woman and three children who died in a fire in Clondalkin last Wednesday have taken place in Shankill, Co Dublin. Annemarie O'Brien, 27, who was seven months pregnant, died in the apartment fire along with her two-year-old daughter Paris and their cousins, four-year-old Jordan and Holly, three. Jordan and Holly's mother Biddy O'Brien remains in a critical condition in hospital following the blaze. She and her children had been visiting Annemarie O'Brien when the fire took hold. Annemarie and her children were living in an apartment block in Clondalkin that offers supportive housing to women in post-crisis situations. Funeral mass-took-place at St Anne's Church, Shanganagh Road, Shankill followed by burial in Springfield Cemetery in Bray. Two hearses arrived ahead of the mass at St Anne's. In the first were the bodies of Annemarie, her unborn son AJ, and her daughter Paris in two white coffins. In the second, also in white coffins, were the bodies of Jordan and Holly. The mourners at today's funeral included Sean Patel, Annemarie's partner and the father of Paris and AJ. Holly and Jordan's father Jamie McGinn-, Biddy O'Brien's-husband, also attended the funerals. Chief celebrant was Fr John O'Connor, assisted by Fr O'Driscoll of the Parish of the Travelling People. Fr O'Connor married Jamie McGinn and Biddy O'Brien and today he told the congregation that this is not the first time the O'Brien family have suffered heartbreak. He said Pope Francis has said that Jesus keeps his best soldiers for the toughest battles. He said they are not alone as Christ is with them and as Travellers they are part of a strong and noble tradition. The President was represented by his Aide de Camp Colonel Michael Kiernan.", -2221,2017/3/13,http://www.rte.ie/news/2017/0313/859330-mayo-fatal-fire/,Man dies in house fire in Mayo,,A man found dead in a house in east Mayo at the weekend is believed to have been the victim of a-house fire. The body of David Molloy was found by neighbours who became worried-after they had not seen him for a number of days. The 52-year-old lived alone at St-Gerard's Crescent in Ballyhaunis. There was evidence of smoke damage to the accommodation where Mr-Molloy-was living. A post-mortem examination has been carried out at Mayo University Hospital., -2222,2017/3/13,http://www.rte.ie/news/2017/0313/859446-emergency-taskforce-health/,513 'delayed discharge' patients in hospital beds,,"Figures presented to a meeting of the Emergency Department Task Force show that the number of hospital patients occupying beds, whose acute care has ended, is at 513. The peak of so-called 'delayed discharges' in 2016 was 660 patients. The meeting also heard that around 72 of 106 planned extra acute beds have been opened, as well as 18 step-down beds. Minister for Health Simon Harris said that figures for March for the number of patients on trolleys were down 11%, compared with- March last year. But he said there was no room for complacency and that the answer to overcrowding included more beds, staff and a new GP contract. Figures from the Irish Nurses and Midwives Organisation show there were 392 patients on trolleys or wards today, waiting for admission to a bed. University Hospital Galway was worst affected with 36 patients waiting.", -2223,2017/3/13,http://www.rte.ie/news/2017/0313/859450-news-in-brief/,News in Brief,,"Protest over RT? coverage of Repeal the 8th march A number of people gathered outside RT? studios in Donnybrook this afternoon to demand more coverage of the Repeal the 8th campaign. Organisers of the 'RT? Recognition 4 Repeal' event say the broadcaster failed to cover properly the demonstrations on 8 March. On the Facebook event page, organisers said: ""RT? cannot get away with ignoring us and refusing to show the truth: that we are many and we will not wait. ""We can't lose momentum, demand a referendum. Demand fair media attention. Demand that they show the truth."" ECJ to rule on headscarves in workplace The European Court of Justice (ECJ) will determine tomorrow-whether an employer can prohibit staff from wearing the Islamic headscarf in the first case of its kind before the EU's top court. - - - - - - The ECJ will rule on the cases of two female employees in Belgium and in France, who were dismissed for refusing to remove their headscarves, a day before a Dutch parliamentary election dominated by the issue of immigration and integration. The Islamic headscarf is a contentious issue in several European countries, notably France, which attaches importance to the separation of state and religious institutions and where the anti-immigration far-right National Front party is seen performing strongly in an election this spring. Appeal for witnesses after Clonakilty assault An appeal has been issued for-witnesses to an incident in which a man was seriously injured during a row at Pearse Street in Clonakilty, Co Cork, in the early hours of Saturday morning. The man had been socialising in the De Barra's pub after Ireland's rugby match with Wales. He was involved in an incident on the street after he left the pub and was taken to Cork University Hospital, where he is said to be in a critical condition. Garda��-are appealing to people who were in De Barra's pub or who were on Pearse Street between midnight on Friday night and 1am on Saturday to contact them. 18,000 apply for 250 jobs in Ikea in Serbia Nearly 18,000 people have applied for 250 jobs at Serbia's first Ikea store, which opens later this year, the company has said. The Swedish home furnishings giant has tallied 17,775 applications, most from Belgrade locals who would have a quick commute to the big box store being set up just outside the capital. Belgrade once, and briefly, boasted an Ikea. The store opened in what was then the capital of Yugoslavia, on the eve of the break-up of the nation, and was shut when the Balkan wars began the early 1990s. Now it says it is investing �10 million in the new site, which it hopes to open by summer and follow with four other locations.-Unemployment rate in Serbia, a country of 7.2 million, was 19.7% in 2016, according to UN figures, with 44% of youth out of work.-", -2224,2017/3/13,http://www.rte.ie/news/2017/0313/859416-litter-drones-naughten/,Drones to be used in new plan to tackle illegal dumping,,"A new initiative to tackle illegal dumping will involve hidden CCTV cameras in litter black spots, as well as the use of drones to capture the extent of the issue. As part of the plan, funding totalling-�150,000 is being offered to communities around the country, to support their efforts to counter the problem. High risk or problem areas will be identified, with coordinated clean ups to be followed by enhanced enforcement measures. Funding will be given to assist local groups who work with local authorities to prevent and discourage the practice of illegal dumping. Minister for Communications, Climate Action and Environment Denis Naughten said communities are being deprived of amenities, services and infrastructural improvements due to the costs faced by councils in dealing with dumping. Announcing details of the initiative in Ballinasloe, Co Galway this afternoon, Mr Naughten said enhanced enforcement techniques were now needed to redress the balance and apply the polluter pays principle. He is backing plans to allow local authorities to use overt and covert surveillance equipment, drones and other technology to increase detection levels and deter people from disposing of waste illegally. Minister Naughten also called on households to examine their consumption patterns to reduce the volume of waste they produce. He said simple measures, like choosing reusable cups and bottles, could make a significant difference in this regard. Mr Naughten encouraged people to report dumping by using an Environmental Protection Agency app. The EPA's 'See it, Say it' app sends GPS coordinates of dump sites to local authorities.", -2225,2017/3/13,http://www.rte.ie/news/2017/0313/859418-netherlands-election/,Rutte and Wilders face-off in Dutch general election,,"Up to 13 million voters in the Netherlands will take to the polls on Wednesday to elect the next coalition government. The election is seen as a face-off between Prime Minister Mark Rutte and nationalist Geert Wilders, and as the first of three big tests this year of anti-establishment sentiment in the European Union. 28 parties are competing for 150 seats, with-76 required to form a majority. Mr Rutte won a second term in October 2012 when his liberal People's Party for Freedom and Democracy took 41 seats. It formed a coalition with the centre-left Labour Party which won 38 seats. Mr Wilders'-Freedom Party won 15 seats in 2012, down from 24 in the previous election. When launching his election campaign, Mr Wilders, who is anti-EU, vowed to crack down on ""Moroccan scum""-who he said were making the streets unsafe and urged the Dutch to ""regain""-their country. He is expected to see a rise in support on Wednesday. If he does finish first, his win would send shock waves across Europe. After Britain's unexpected vote to quit the EU and the election of Donald Trump as US President, Europe will soon know whether a wave of anti-establishment sentiment poses an imminent threat to the survival of the EU. However it is unlikely that the outcome of the election will result in Mr Wilders becoming a member of the incoming government. Most of the major parties have ruled out joining a coalition with him, viewing his policies as offensive or even unconstitutional. The latest Reuters poll of poll puts Mr Rutte's party top at 16.2% ahead of Mr Wilders' party on 13.4%. The Christian Democratic Appeal is close behind at 12.5% on a rising trend.- Mr Rutte has called on voters to reject Mr Wilders.- He said:-""We've seen it with Brexit, we've seen it with Trump, when we thought it wouldn't happen the night before. The chance is still large as life that we wake up on March 16 and Wilders'(party) is the biggest."" Mr Wilders told right-wing voters not to believe the mainstream parties new-found tougher line on immigration. ""A lot of parties are now shouting PVV (Freedom Party) like slogans, but after the elections you won't hear them any more,"" he told newspaper De Telegraaf. ""On Wednesday you can vote for the original."" Meanwhile, a diplomatic row between the Netherlands and Turkey threatens to overshadow the rest of the campaign for Mr Rutte. The row started after-two Turkish ministers were barred from entering the country. The ministers wanted to address a gathering of Dutch Turks before a referendum on a new law to increase Turkish President-Tayyip Erdogan's presidential powers. The Netherlands opposed the visit because it was too close to the election.", -2226,2017/3/13,http://www.rte.ie/news/2017/0313/859426-mervue-galway/,Man released in Galway stabbing investigation,,"A man in his 60s, who was being questioned over a fatal stabbing in Co Galway in the early hours of yesterday morning, has been released without charge. A file is being prepared for the Director of Public Prosecutions. The fatal assault occurred at a house on Cardinal Cushing Road in Mervue at around 4am on Sunday. A man in his 30s was treated at the scene before being taken to University Hospital Galway, where he was later pronounced dead.", -2227,2017/3/13,http://www.rte.ie/news/2017/0313/859366-bus-eireann/,Bus ?ireann talks on 'efficiencies' resume at WRC,,"Bus ?ireann management and unions have resumed talks at the Workplace Relations Commission in a bid to resolve the dispute over cost reductions and the potential insolvency of the company. It is understood that the talks are focused on seeking ""efficiencies"", though unions are continuing to resist any changes that would hit take home pay. The Bus ?ireann board is due to meet on 27 March to sign off on the company's accounts, but will be unable to do so if a sustainable survival plan has not been agreed by then. In order to meet that deadline, Bus ?ireann and unions would first have to reach agreement on cost reduction measures at the Workplace Relations Commission. If staff approved that deal, it would then have to be approved by the Bus ?ireann board. The board would then submit the proposals to the board of Bus ?ireann's parent company, the CI? group. If the CI? group board approves of the survival plan, it is understood that it may authorise a transfer of funds to Bus ?ireann to address the short-term cash flow situation, and potentially to fund a redundancy programme. That would then permit the Bus ?ireann board to sign-off on the company's annual accounts. However, sources on all sides have acknowledged that while time is of the essence, the complex negotiations are progressing slowly. One possibility would be to reach a limited agreement on short-term measures to deliver immediate savings, with the parties also agreeing to longer term engagement to reach a final deal. Bus ?ireann lost �1.4m-last year, and is currently losing �10,000 a day. At that rate, the company's losses will hit �18m-this year, unless significant action is taken. Its survival plan aimed to secure a total of �10m-in savings, with �12m-of that due from payroll.", -2228,2017/3/13,http://www.rte.ie/news/2017/0313/859358-workplace-accident-roscommon/,Man dies after Roscommon workplace accident,,A man who was injured in a workplace accident in Co Roscommon last Friday has died in hospital. The man in his 50s sustained serious head injuries in a farm accident at Arigna. He was airlifted to University Hospital Galwayfor treatment and was later transferred to Beaumont Hospital in Dublin. The Health and Safety Authority are investigating., -2229,2017/3/13,http://abcnews.go.com/US/life-threatening-winter-storm-bears-northeast/story?id=46111503,'Life threatening' winter storm bears down on Northeast,,"Snow began to blanket cities across the Northeast on Tuesday in what could turn out to be one of the most severe blizzards of the year. Blizzard warnings have been issued in parts of 8 states in the densely populated Northeast, causing thousands of school cancellations and halting work and travel for millions of Americans. ""A very strong winter storm could be life threatening for those who do not pay attention to safety precautions,"" the National Weather Service warned late Monday. Major cities from Philadelphia to Boston could get between 10 and 20 inches of snow, forecasters said. The storm is set to bring heavy snow and strong winds that could make travel ""nearly impossible in many areas,""?according to the NWS. Parts of Pennsylvania, New Jersey, New York, Connecticut, Rhode Island, Massachusetts, New Hampshire and Maine are under blizzard warnings. Nearly 6,000 flights scheduled for Tuesday were canceled, while an additional 690 were delayed, according to the Houston, TX-based aviation site FlightAware. [240 am] #snow beginning to fill in on radar across coastal #CT #NYC & Long Island, NY. Snow overspreads most of CT, #RI & #MA b/t 4am-7am. pic.twitter.com/TdYna8DWtt Nearly half of the cancellations, about 2,580, were at three airports in the New York City metro area: John F. Kennedy, LaGuardia, and Newark Liberty. As of 2:30 a.m. ET, 2,932 schools across the Mid-Atlantic and Northeast corridor were scheduled to close or have delayed opening on Tuesday. Schools in New Hampshire and Massachusetts were impacted the most, with 914 and 630 closings or delays scheduled, respectively. Heavy snow is expected to accumulate quickly, with some areas forecast to see between 2 and 4 inches of snowfall per hour during Tuesday afternoon. Wind gusts of up to 55 mph could add to the storm's impact. The snow is expected to make many roads impassable and could produce widespread power outages due to the weight of the snow on tree limbs and power lines, the NWS said. The service warned people in the affected areas to stay inside. ""�Visibilities will become poor with whiteout conditions at times. Those venturing outdoors may become lost or disoriented,""?the NWS said in a statement early Tuesday. "" persons in the warning area are strongly advised to stay indoors.""? Could this storm reach into the top 10 of snowstorms for March, April & May? Certainly looks like it! But how far in the top 10 will it go? pic.twitter.com/UrckenkQPR The storm comes just days before the official start of Spring on March 20, in a region where many welcomed celebrating springlike temperatures just days ago. The weather system dumped a swath of snow on parts of the Midwest before moving east across the country on Monday. Icy road conditions in Chicago, Illinois, led to two car wrecks early Tuesday that involved 34 vehicles. Seven people were transported to local hospitals with minor injuries as a part of those incidents, which occurred on the Kennedy Expressway, officials said. Separately, four men died while removing snow in southeast Wisconsin, where snowfall topped 12 inches in some areas. The men were all between the ages of 64 and 76, according to ABC News affiliate WISN. ABC News' Dominick Proto and Melissa Griffin contributed to this report.", -2230,2017/3/13,http://abcnews.go.com/US/6000-flights-canceled-major-blizzard-threatens-northeast/story?id=46110636,"Nearly 6,000 flights canceled as major blizzard threatens Northeast",,"Thousands of flights were preemptively canceled on Tuesday in anticipation of what could be the biggest blizzard of the year. The storm is forecast to bring heavy snow and strong winds that could reduce visibility to a quarter mile or less for several hours, making travel ""nearly impossible in many areas,""?the National Weather Service warned in a statement late Monday. As of early Tuesday, more than 5,650 arrivals and departures scheduled for the day were canceled, while an additional 690 were delayed, according to the Houston, TX-based aviation site FlightAware. Nearly half of the cancellations, about 2,580, were at three airports in the New York City metro area: John F. Kennedy, LaGuardia, and Newark Liberty. How will tomorrows storm compare to others in NYC? Here's a list of the top 5 biggest snowstorms at Central Park since 1869. pic.twitter.com/FkWt3stBDs In New York City, above-ground MTA trains are scheduled to stop at 4 a.m. local time, while underground subways will continue to operate at a reduced pace. New York City Mayor Bill de Blasio declared a state of emergency and warned people to stay off the roads. The city plans to deploy 1,600 snow plows from the sanitation department, plus another 80 snow plows from Department of Transportation. ""Do not expect to see blacktop for quite a while,"" de Blasio said at a news conference late Monday. The National Weather Service issued a blizzard warning through Tuesday evening for several areas in the Northeast -- including the New York City metro area -- from the New Jersey Shore to Connecticut. A blizzard warning refers to sustained or frequent winds of 35 mph or higher. Major cities spanning from Philadelphia to the Boston could see between 10 and 20 inches of snow. ABC News' Lloyd Whitney, Melissa Griffin and Darren Reynolds contributed to this report.", -2231,2017/3/13,http://abcnews.go.com/Sports/wireStory/winter-storm-forces-basketball-teams-alter-travel-plans-46111359,Storm forces March Madness teams to alter travel plans,,"Mother Nature is causing college basketball teams to alter their travel plans. Teams chasing a college basketball title are contending with an unexpected wrinkle that's making last-minute travel plans difficult ""?a fierce storm bearing down on the Northeast that's expected to dump up to two feet of snow in some places and create blizzard-like conditions. ""We are closely tracking the weather and working with our travel partners and teams in the tournament to ensure the safety of our student-athletes, coaches, administrators, officials and fans,"" the NCAA said in a statement. ""This includes looking at departure times for teams that will play in affected cities."" Villanova, the top overall seed in the men's NCAA Tournament, left Philadelphia on Monday afternoon for Buffalo, New York, to get ahead of a storm that's projected to last three days. The defending champion Wildcats, who play on Thursday, had an abbreviated press availability with coach Jay Wright, but no player interviews were granted as the team rushed to its flight. ""I'm not really looking forward to leaving right away. But it hits you with reality, you're in it,"" Wright said. ""We're going to be in Buffalo tonight and we're playing and it's on."" There is less of a chance that the women's tournament would be affected. UConn is the only team in the Northeast hosting and they play Saturday morning giving teams more time to arrive in Connecticut. U.S. airlines canceled thousands of flights for Monday and Tuesday in anticipation of the storm. Teams in the men's and women's NCAA Tournaments have chartered flights so any travel backlog on commercial planes caused by the storm shouldn't be a problem. Nobody was facing a more difficult week than Princeton, a school new to the scramble. The Tigers beat Yale on Sunday for the title in the first Ivy League Tournament, where in previous years they would have clinched earlier by being unbeaten in the regular season. The victory allowed for a brief celebration and not much more for Chris Mongilia, director of basketball operations for the Tigers. ""I kind of enjoyed it for a minute, and then my phone started ringing and emails started firing out, trying to figure out when we were going,"" Mongilia said Monday. ""We found out our flight time this morning. We've been booking buses and hotels. It's been putting a lot of pressure on us to get everything done and organized. But yeah, it's been crazy."" Crazier still, the school is factoring in midterms for several players this week, squeezing them in before the team plays Notre Dame on Thursday in Buffalo. The team took a chartered flight Monday evening. ""A lot of our guys are going to have to take exams proctored by a professor who is going to have to travel with us,"" Mongilia said. ""They are going to have to take them in a conference room up at the hotel in Buffalo. The storm has definitely put a few bumps in our travel plans."" The Princeton women's team is playing in the WNIT and the tournament decided to have the 10 teams in the Northeast play their games on Friday to avoid the storm and lessen the risk of travel issues. Providence was leaving Monday evening for Dayton, Ohio, for its Wednesday night matchup against Southern California in the First Four, and the Friars had no worries about cancellations because it takes charter flights for away games and can avoid the local airport, athletic director Bob Driscoll said. ""It's good we're getting out tonight because the snowstorm is coming tomorrow. It'll be a different story,"" Driscoll said. ""People are excited to be in, so we're locked and loaded and ready to leave. We've been working on it all night and all morning."" The winter storm had already begun strafing the Midwest and was projected to begin sweeping through the New York region Monday night. Forecasters said it could dump up to two feet of snow across parts of New York and New Jersey. The National Weather Service issued blizzard watches for New York City and nearby areas, including Connecticut. The storm is expected to last into Wednesday in western New York with as much as 18 inches of snow. For the NIT, Ole Miss was taking a charter flight on Monday for its Tuesday game at Monmouth in New Jersey. School officials said the storm pushed the travel timeline up a few hours. West Virginia coach Bob Huggins was delayed getting on the Big 12 coaches weekly media call Monday because he was in a meeting with school officials to discuss the Mountaineers' travel plans to Buffalo. ""Yeah, we are concerned,"" Huggins said. The school later announced it would take a bus more than 280 miles north to Buffalo on Monday night rather than leaving on Tuesday. West Virginia plays Thursday afternoon against Bucknell. Virginia Tech also opted to leave after classes Monday, a day earlier than normal. The Hokies were to take a bus to Roanoke and fly to Buffalo before their game Thursday night against Wisconsin. Airport officials in Buffalo said they would be able to handle the conditions. ""We're always ready to do our best,"" said Douglas Hartmayer, spokesman for the Niagara Frontier Transportation Authority, which oversees the Buffalo-Niagara Airport. ""We have a history of being prepared and keeping those runways open and safe."" Syracuse also is in the storm's path, predicted to receive more than one foot of snow, but the Orange aren't going anywhere. Syracuse hosts UNC-Greensboro in a first-round game in the NIT on Tuesday night. The visit from the Spartans comes after Orange coach Jim Boeheim said there was ""no value"" in the Atlantic Coast Conference holding its postseason tournament in Greensboro. ""��?AP Sports Writers Tom Canavan in New Jersey, John Raby in West Virginia, Hank Kurz in Virginia, David Brandt in Mississippi, Doug Feinberg and Brian Mahoney in New York, Dan Gelston in Philadelphia, and John Wawrow in Buffalo contributed to this report. ""?For more AP college basketball coverage: http://collegebasketball.ap.org and http://twitter.com/AP""�Top25", -2232,2017/3/14,http://abcnews.go.com/Politics/doj-asks-time-inquiry-trump-wiretapping-allegations/story?id=46106362,DOJ asks for more time on inquiry into Trump wiretapping allegations,,"The Department of Justice has failed to meet the House Intelligence Committee's deadline to turn over any alleged evidence of wiretapping of President Donald Trump during the campaign. On Friday, House Intelligence Committee Chairs Devin Nunes, R-California, and Adam Schiff, D-California, had formally requested that the Justice Department turn over any documentary evidence, including applications, orders or warrants, by Monday, assuming such information exists. According to a DOJ spokeswoman, the DOJ placed calls to Nunes and Schiff this afternoon, asking for ""additional time to review the request in compliance with the governing legal authorities and to determine what if any responsive documents may exist."" A House Intelligence Committee spokesperson confirmed the DOJ's request for more time and set a new deadline for ahead of the March 20 House Intelligence Committee hearing on Russia's influence in the U.S. elections. ""We have asked the Department to provide us this information before the Committee's open hearing scheduled for March 20,"" a House Intelligence Committee spokesperson said. ""If the Committee does not receive a response by then, the Committee will ask for this information during the March 20 hearing and may resort to a compulsory process if our questions continue to go unanswered."" In a series of tweets posted on March 4, Trump accused President Barack Obama of wiretapping his phones in Trump Tower. On Monday, White House press secretary Sean Spicer clarified Trump was not talking literally or specifically when he accused President Obama of ""wiretapping"" his campaign. ABC News' Benjamin Siegel and Mike Levine contributed to this report.", -2233,2017/3/14,http://abcnews.go.com/Health/wireStory/city-drugmaker-knowingly-pills-flood-black-market-46112068,City says drugmaker knowingly let pills flood black market,,"As deaths from painkillers and heroin abuse spiked and street crimes increased, the mayor of Everett took major steps to tackle the opioid epidemic devastating this working-class city north of Seattle. Mayor Ray Stephanson stepped up patrols, hired social workers to ride with officers and pushed for more permanent housing for chronically homeless people. The city says it has spent millions combating OxyContin and heroin abuse ""?and expects the tab to rise. So Everett is suing Purdue Pharma, maker of the opioid pain medication OxyContin, in an unusual case that alleges the drugmaker knowingly allowed pills to be funneled into the black market and the city of about 108,000. Everett alleges the drugmaker did nothing to stop it and must pay for damages caused to the community. Everett's lawsuit, now in federal court in Seattle, accuses Purdue Pharma of gross negligence and nuisance. The city seeks to hold the company accountable, the lawsuit alleges, for ""supplying OxyContin to obviously suspicious pharmacies and physicians and enabling the illegal diversion of OxyContin into the black market"" and into Everett, despite a company program to track suspicious flows. ""Our community has been significantly damaged, and we need to be made whole,"" said Stephanson, who grew up in Everett and is its longest-serving mayor, holding the job since 2003. He said the opioid crisis caused by ""Purdue's drive for profit"" has overwhelmed the city's resources, stretching everyone from first responders to park crews who clean up discarded syringes. The lawsuit doesn't say how much money the city is seeking, but the mayor says Everett will attempt to quantify its costs in coming months. Connecticut-based Purdue Pharma says the lawsuit paints a flawed and inaccurate picture of the events that led to the crisis in Everett. ""We look forward to presenting the facts in court,"" the company said in a statement. Purdue said it is ""deeply troubled by the abuse and misuse of our medication,"" and noted it leads the industry in developing medicines with properties that deter abuse, even though its products account for less than 2 percent of all U.S. opioid prescriptions. In 2007, Purdue Pharma and its executives paid more than $630 million in legal penalties to the federal government for willfully misrepresenting the drug's addiction risks. The same year, it also settled with Washington and other states that claimed the company aggressively marketed OxyContin to doctors while downplaying the addiction risk. As part of that settlement, it agreed to continue internal controls to identify potential diversion or abuse. While numerous individuals and states have sued Purdue, this case is different because Everett is getting at the results of addiction, said Elizabeth Porter, associate law professor at the University of Washington. She thinks Everett may have a shot at winning, though it will have to overcome some legal burdens, including showing that diverted OxyContin from rogue doctors and pharmacies was a substantial factor in the city's epidemic. Stephanson said he was ""absolutely outraged"" after the Los Angeles Times reported last summer it found Purdue had evidence that pointed to illegal trafficking of its pills but in many cases did nothing to notify authorities or stop the flow. That newspaper investigation prompted the city's lawsuit. In response to the newspaper's reporting, Purdue said in a statement that in 2007, it provided LA-area law enforcement information that helped lead to the convictions of the criminal prescribers and pharmacists referenced by the Los Angeles Times. The company also pointed to court documents that showed a wholesaler alerted the Drug Enforcement Administration about suspicious activity at a sham clinic noted in the newspaper's story. Still, Everett contends Purdue created a market for addicts that didn't exist until the company let its pills flood the streets. The region saw two spikes in overdose deaths: first from OxyContin and other opioid painkillers in 2008 and then, after the drug was reformulated in 2010, a spike from heroin as people switched to a potent but cheaper alternative, officials said. The city contends Purdue's wrongful conduct fueled a heroin crisis in Everett. Between 2011 and 2013, nearly one in five heroin-related deaths in Washington state occurred in the Everett region. In response to the drug epidemic, Everett last year began sending social workers on routine patrols with police officers. Sgt. Mike Braley says the community outreach and enforcement team strikes a balance between enforcement and connecting people to addiction treatment, mental health and other services. ""We understand that we can't arrest our way out of problems that addiction is causing our city,"" Braley said. Sometimes it takes many follow-ups and hours of handholding to get people help. On their first stop one morning, Braley and his team check under a street overpass, a popular hangout for addicts. They find plenty of needles, drug packaging and mounds of garbage but none of the people they had encountered there recently. They swing by a woody vacant piece of city property to follow up with a homeless man who told social workers he was on a housing list. He previously was reluctant to talk but opens up this time. Social worker Kaitlyn Dowd offers to check on the man's housing status with a local nonprofit provider and then punches her number into a cellphone he recently got. ""You can call me, and I have your number,"" she tells him. Social worker Staci McCole said they come across many cases where highly functioning residents were introduced to opiates or heroin. ""So many of these people ""?somehow it's taken a hold of them, and their lives now have forever changed,"" she said.", -2234,2017/3/14,http://abcnews.go.com/US/wireStory/state-police-30-cars-involved-chicago-pileup-46111741,State police: More than 30 cars involved in Chicago pileup,,Illinois State Police say snowy weather caused two crashes on a Chicago expressway that involved a total of 34 cars. A State Police spokesman says seven people sustained minor injuries in Monday night's pileup on the Kennedy Expressway. Both wrecks occurred in the express lanes of the highway on the city's North Side. Police say both crashes happened in the same area and the express lanes were closed for hours. Local lanes of the expressway remained open. Additional details were not immediately available. Illinois State Police is investigating. The National Weather Service issued a lake-effect snow warning for Chicago that expires Tuesday afternoon., -2235,2017/3/14,http://abcnews.go.com/Politics/wireStory/tight-budgets-complicate-sessions-vow-fight-crime-46112685,Tight budgets could complicate Sessions' vow to fight crime,,"Attorney General Jeff Sessions is promising his Justice Department will lead the charge in helping cities fight violent crime, and police chiefs are ready with their wish-lists. More technology to trace guns after shootings. More grant money. More intelligence analysts to help dismantle gangs. More protective gear and equipment. As the head of one police officers' union put it, ""We need more of everything."" But Sessions, who cut his teeth as a federal prosecutor in Mobile, Alabama, at the height of the drug war in the 1980s, has inherited a federal government that built itself to fight terrorism since 9/11 and, more recently, to combat cybercrime. Since taking office, Sessions has spoken repeatedly about a spike in murders. He and President Donald Trump ordered the creation of a crime-fighting task force, bringing together the heads of the major law enforcement agencies. And they seem to be counting on tighter border security to stop a flow of drugs and reduce crime. But they have yet to detail how federal law enforcement should juggle priorities or offer new money for crime-fighting, especially in the face of Trump's plan to slash nonmilitary budgets. Some clarity could come Thursday when the administration unveils its budget proposal. ""He'll find out very quickly that you can't pull people off all these other things just to go do that,"" said Robert Anderson, who was the FBI's most senior criminal investigator until his retirement in 2015. Anderson joined the bureau in the 1990s, when combating violence and drugs was its top challenge. ""Now he's walking into a much different Justice Department and FBI."" Kerry Sleeper, assistant director of the FBI office that works with local law enforcement, said that after decades of declines in violence, police chiefs are coming to grips with a new uptick and asking for federal help. What they'd like to see: ""?In Milwaukee, Police Chief Edward Flynn said he would like an expansion of the work done in that city by the Justice Department's Violence Reduction Network. It teams officers with deputy U.S. marshals and agents with the Bureau of Alcohol, Tobacco, Firearms and Explosives and the Drug Enforcement Administration to target high-crime areas. ""It's encouraging to have an incoming administration take an interest in the spikes in violence in central cities,"" he told The Associated Press. ""?In Baltimore, which recorded 318 homicides last year, Police Commissioner Kevin Davis has said he would like federal agencies to double the number of agents assigned to cities experiencing spikes in violence. ""?In Chicago, singled out by the White House for its surge in shootings, Police Superintendent Eddie Johnson has said he would welcome more agents and money for mentorship and after-school programs to help kids in violent neighborhoods and, in turn, reduce crime. Other cities want help processing evidence, tracing guns and prosecuting drug traffickers and dealers as they combat heroin and opioid addiction. More chiefs are asking the FBI for its help with intelligence-gathering to thwart crime, said Stephen Richardson, assistant director for the FBI's criminal division. Making violent crime a priority is a departure for a Justice Department that has viewed as more urgent the prevention of cyberattacks from foreign criminals, counterterrorism and the threat of homegrown violent extremism. And while local police say they want more help fighting violence, such a plan could put new pressure on Justice Department agencies already strapped for resources. ""Our budget's been eroding,"" Thomas Brandon, acting ATF director, told a congressional committee last week. The ranks of the agency's special agents hit an eight-year low in fiscal year 2013 and have not grown dramatically since then. Sessions' focus fits his background. His career as a prosecutor began when there was bipartisan agreement in Washington that the best way to fight crime was with long, mandatory prison sentences. And he views today's relatively low crime rates as a sign that those policies worked. Just last week, he underscored his priority in a memo to the nation's federal prosecutors that they should use all available resources to take down the worst offenders. In contrast, the Obama administration's Justice Department focused its aid to local police on improving community relations. The federal government has long played a role in fighting crime through grants and partnerships. Agents assigned to field offices work with local police to share intelligence on gangs and shootings, hunt fugitives and probe bank robberies, among other things. Constance Hester-Davis, special agent in charge of the ATF's field division in New Orleans, said her agents routinely work alongside local counterparts, even attending community meetings. ""At the end of the day, crime is a state and local concern,"" said Chuck Wexler, executive director of the Police Executive Research Forum, a law enforcement think tank. ""However, what police chiefs say is the federal government does have a responsibility, particularly when they prosecute."" Such cooperation can work. Oakland, California, police saw killings fall from 126 in 2012 to 85 in 2016, two years after FBI agents were embedded in the homicide unit. Ten agents now share an office with Oakland detectives, offering help gathering evidence, collecting DNA, chasing leads and bringing federal prosecutions that carry longer sentences in far-away prisons. Detectives solved at least 60 percent of their cases last year, compared to about 30 percent in 2010, said Russell Nimmo, FBI supervisory special agent on the Oakland Safe Streets Task Force. ""It's very complementary to what our mission is,"" Nimmo said. ""We're a big organization. The challenge for our leadership is determining how many resources to allocate to each of those competing priorities."" Richardson, who formed the first FBI task force in Louisiana to combat violent criminals, said the new focus will mean shifting resources in ways that are yet to be seen. The FBI is finalizing a strategy to ""surge"" resources, including agents, in certain cities this summer. ""We won't be able to do all the cities we'd like to at once,"" Richardson said. ""I firmly believe it will make a difference.""", -2236,2017/3/14,http://abcnews.go.com/US/wireStory/man-arrested-attack-middle-eastern-restaurant-46105256,Man arrested after attack at Middle Eastern restaurant,,"Police arrested an Oregon man accused of attacking a restaurant employee with a pipe while calling the worker a terrorist and telling him to go back to his country. Court documents say Jason Kendall told an arresting officer he entered the Middle Eastern restaurant in Salem last week after seeing a woman who he thought was being held as a slave because of the style of blouse she was wearing. The affidavit says Kendall was asked to leave, but he returned minutes later yelling, ""Get out of America!"" He's accused of throwing a plastic object at the employee and hitting him with a pipe. The affidavit says the arresting officer felt a small bump on the worker's head. Police say Kendall told them he acted in self-defense. He's expected to be arraigned Friday on charges of assault and intimidation. His court-appointed attorney, Julia Ann Hyde, didn't immediately return a phone call seeking comment.", -2237,2017/3/14,http://abcnews.go.com/Politics/cbo-14m-americans-health-insurance-year-gop-plan/story?id=46093378,CBO: 14M more Americans won't have health insurance next year if GOP plan adopted,,"The nonpartisan Congressional Budget Office estimates that some 14 million more people will be uninsured next year if the Republican proposal, the American Health Care Act, is enacted. That number is expected to jump to 24 million more by 2026, compared with the current law, the Affordable Care Act, President Obama's signature legislation, for a total of 52 million uninsured that year, according to the CBO. One of the biggest differences between the proposed health care plan and the Affordable Care Act is that there would be no penalty for people who do not have health insurance. The CBO says lifting that requirement would be one of the biggest factors contributing to the increase in the number of uninsured. ""Most of that increase would stem from repealing the penalties associated with the individual mandate. Some of those people would choose not to have insurance because they chose to be covered by insurance under current law only to avoid paying the penalties, and some people would forgo insurance in response to higher premiums,"" the report states. The GOP plan would decrease the federal deficit by $337 billion from 2017 to 2026, according to the CBO. House Speaker Paul Ryan, who has been one of the biggest champions of the proposed AHCA, said the report confirms that the GOP plan ""will lower premiums and improve access to quality, affordable care."" ""I recognize and appreciate concerns about making sure people have access to coverage. Under Obamacare, we have seen how government-mandated coverage does not equal access to care, and now the law is collapsing. Our plan is not about forcing people to buy expensive, one-size-fits-all coverage. It is about giving people more choices and better access to a plan they want and can afford,"" he said in a statement shortly after the CBO report was released. The CBO is a nonpartisan agency that produces economic projections and federal spending and revenue estimates for pending legislation. The agency's report on the AHCA will give lawmakers and the American people a more complete picture of the GOP plan and what it would do if passed. The estimates could help determine how many members of Congress vote for it ""?and whether the bill passes the House and Senate. Trump administration officials were quick to decry portions of the analysis, with Secretary of Health and Human Services Tom Price saying they ""disagree strenuously with the report."" ""We believe that our plan will cover more individuals at a lower cost and give them the choices that they want for the coverage that they want for themselves and their families, not that the government forces them to buy,"" he said. But as Price and Office of Management and Budget Director Mick Mulvaney contested portions of the report that indicated the number of uninsured Americans would rise, they lauded the findings showing that premiums would eventually fall. ""One of the things we have said about this proposal from the beginning was that we believed ""?for some reasons that have been basic tenets of Republican conservative thought for a long time ""?that competition lowers cost,"" said Mulvaney. ""What the CBO just told us is that's exactly right."" Price and Mulvaney stressed that the report doesn't take into account all the phases of the repeal and replace efforts but said that lawmakers should not disregard the findings. White House officials started undermining the CBO days before the report's release, with press secretary Sean Spicer saying on March 8, ""If you're looking to the CBO for accuracy, you're looking in the wrong place,"" pointing to its 2010 reports on the Affordable Care Act. ""Anyone who can do basic math can understand their projections for Obamacare the last time were way, way off the mark,"" he said. Asked at today's White House press briefing if the numbers are legitimate, Spicer said, ""All I'm suggesting to you is the numbers they did the last time they did health care were off by more than 50 percent when it came to the number of people insured. That's not my interpretation. That's a fact."" That report from the CBO on Obamacare, in March 2010, was far off in its estimates of marketplace enrollment. That year the office projected that by 2016, 21 million people would have health insurance via the Affordable Care Act marketplaces, but the actual number was closer to 12 million.", -2238,2017/3/14,http://abcnews.go.com/Politics/takeaways-cbos-analysis-republican-health-care-plan/story?id=46106361,5 takeaways from the CBO's analysis of the Republican health care plan,,"The Congressional Budget Office released its scoring of the White House-backed Republican plan to repeal and replace Obamacare Monday -- indicating the legislation will leave 24 million more uninsured than the current law after a decade, but reduce the deficit by $337 billion. Although Republican advocates of the American Health Care Act assailed the nonpartisan CBO over the past week for perceived inaccuracies in its past analyses, there were aspects of Monday's report that they were quick to tout following its release. Here are some of the key takeaways from the report: One of the first effects identified by the report is a large increase in the number of uninsured Americans under the AHCA as opposed to the current law. The second page of the CBO's analysis states that the office and the Joint Committee on Taxation ""estimate that, in 2018, 14 million more people would be uninsured under the legislation than under current law."" The report goes on to say that the number would rise to ""21 million in 2020 and then to 24 million in 2026."" Both the repeal of penalties for being uninsured and an increase in premiums could lead to more Americans choosing not to buy insurance. Changes in Medicaid eligibility could also lead to further losses in coverage. According to the CBO, the AHCA will ""decrease federal deficits by $337 billion"" over a 10-year period from 2017-2026. The vast majority of savings result from reduction in Medicaid expenses, the report says. Halting the expansion of the program would lead to greater numbers of uninsured Americans but a savings of over $800 billion over the next decade. Proposed tax credits and a decrease in revenue from eliminating the penalty for not holding insurance, among other costs, would bring the net savings back down to the $337 billion number. Rules under the new legislation relax limits on premiums for older Americans. Currently, under the ACA, insurers can charge older policyholders up to three times as much as younger insurees. The ACHA allows for rates to increase up to five times as much for the older enrollees than younger ones. The CBO and JCT further recognize the possibility that, without penalties for declining coverage, more younger and healthy people might choose not to purchase insurance. Without that population subsidizing the cost for those with more frequent health needs, the overall cost of coverage could rise. Additional rules that govern tax credits based on age rather than income disproportionately affect low-income enrollees. In an ""illustrative example"" provided by the CBO, a 64-year-old earning $26,500 per year receives the same tax credit of $4,900 to contribute to insurance costs as a 64 year old earning $68,200. Under the current plan, the $26,500 earner receives a tax credit of $13,600 -- an $8,700 difference. The current plan provides no credit to the $68,200 earner. While noting that premiums would vary ""significantly"" based on age, the CBO and JCT estimate that the average costs for a single policyholder under the AHCA will begin to decrease in 2020 and eventually 10 percent lower by 2026 than they would be otherwise. The report attributes lower premiums to rules allowing insurers to offer more flexible plans and ""a younger mix of enrollees"" who could opt to select options with lower rates without being negatively affected by less comprehensive coverage. Additionally, whereas the plan to tie tax credits to age could hurt older enrollees, younger coverage-seekers would benefit. Under the aforementioned ""illustrative example,"" a 21 year old earning $68,200 would receive a $2,450 tax credit under the AHCA as opposed to no credit under the current law. Coupled with lower premiums, they could save $3,650 overall. For a 21 year old earning much less -- $26,500 -- their tax credit would fall under the AHCA from $3,400 to $2,450, but the difference would be made up for by the lower cost of premiums. The $26,500 would save $250 overall, according to the CBO's example. The report concedes that it is difficult to predict the law's effects with complete precision. The CBO and JCT note a vast number of variables in the behavior of agencies, states, insurers, employers and health care professionals that could all change the ultimate outcome of the legislation. ""CBO and JCT have endeavored to develop estimates that are in the middle of the distribution of potential outcomes,"" states the report. However, the analysis does note there is more confidence behind certain projections than others. ""Spending on Medicaid would almost surely be lower than under current law. The cost of the new tax credit would probably be lower than the cost of the subsidies for coverage through marketplaces under current law. And the number of uninsured people under the legislation would almost surely be greater than under current law,"" the report states. ABC News' Mary Bruce, John Parkinson, MaryAlice Parks and Ryan Struyk contributed to this report.", -2239,2017/3/14,http://abcnews.go.com/Politics/trump-plans-donate-salary-pledge/story?id=46102984,"Trump plans to donate salary, despite pledge not to take one",,"President Donald Trump has been drawing a salary -- despite pledging not to during the campaign and after the election -- but plans to donate the money to charity, according to press secretary Sean Spicer. With almost two months of service as president of the United States under his belt, Donald Trump has earned over $50,000 in salary. Spicer says that money will be given away by the end of 2017. Asked at Monday's press briefing about Trump's previous claims that he wouldn't keep his salary, Spicer said that the president's ""intention right now is to donate his salary at the end of the year."" He went on to say that Trump wanted the White House press corps to ""help determine where that goes."" ""The way we all can avoid scrutiny is to let the press corps determine where it should go,"" said Spicer. ""In all seriousness... he made a pledge to the American people, he wants to donate it to charity and he'd love your help to determine where it should go."" The president's salary, which is paid out monthly, has been $400,000 per year since 2001. Spicer offered no indication Monday that Trump was forgoing payment, despite Trump's disinterest in receiving compensation which spans back at least 18 months. During a video question and answer session with Twitter users in September 2015, Trump responded to an inquiry asking whether he would take a salary. ""As far as the salary is concerned, I won""t take even one dollar,"" said Trump. ""I am totally giving up my salary if I become president.""?Later that same week at a campaign speech in Oklahoma, Trump said, ""I'll be working for our country free, I don't want any salary. I've already said, I turned down my salary. I don't even know what the hell the salary is, but I don't want the salary."" Then, after winning the election in November, he repeated the stance during an interview with CBS's ""60 Minutes."" ""Well, I""ve never commented on this, but the answer is no,""?Trump said. ""I think I have to by law take $1, so I'll take $1 a year. But it's a -- I don""t even know what it is.""?""no, I'm not gonna take the salary. I'm not taking it,"" he added. Trump was correct in stating that U.S. law requires he receive payment. The U.S. Constitution states, in Article 2, Section 1 that ""The President shall, at stated times, receive for his services, a compensation, which shall neither be increased nor diminished during the period for which he shall have been elected, and he shall not receive within that period any other emolument from the United States, or any of them."" Upon Spicer's remark that Trump wished for the press corps to select the recipient of his donation, one reporter suggested their own ""[White House] Correspondent's Association"" to support ""journalism scholarships.""", -2240,2017/3/13,http://www.cnn.com/2017/03/14/us/northeast-snowstorm-snapshots/index.html,This is what it looks like across the Northeast right now,(CNN)A major snowstorm is hitting the northeast portion of the United States. This is what it looks like across some of the impacted cities:,"New York City Snow began lightly dusting the city early Tuesday and fell harder into the morning as captured by CNN producer, John Griffin. A winter weather emergency declared by the city's Mayor Bill DeBlasio went into effect Tuesday at midnight. New York City is under a blizzard warning until midnight Wednesday. Englewood, New Jersey Here's the flurry CNN producer Sonia Moghe saw during her ride this morning. Parts of New Jersey are also under a blizzard warning until midnight. Philadelphia In Philadelphia, officials estimated that the snow was falling at a rate of 1 inch per hour and warned that the snow is reducing visibility. CNN's Lawrence Crook III said that the wind combined with sleet at Spruce Street Harbor Park felt like ""tiny bullets"" hitting his face. Philadelphia is under a winter storm warning until Tuesday, 6 p.m. What you need to know about the storm Boston area Massachusetts could expect to see ""a wall of snow"" to come between 9 a.m. and 12 p.m. Tuesday, according to NWS Boston. Hours before that peak time, snow appeared light as the first few flakes descended in Fitchburg, located about 50 miles west of Boston. CNN affiliate in Boston WHDH captured the snow fall there. Boston is under a winter storm warning until Tuesday, 5 p.m. Washington DC In DC, streets turned slippery and slushy. CNN affiliate WJLA's Alex Liggit tweeted a street in DC with scattered cars on the road. At Reagan National Airport in DC, travelers got some bad news with nearly every flight on the board marked canceled. Washington is under a winter storm warning until Tuesday, 2 p.m. Baltimore Baltimore is also feeling the chill with a mix of snow and rain. CNN affiliate WJZ's Ron Matz tweeted a wet road with sleet and freezing rain. Baltimore is under a winter storm warning until Tuesday, 2 p.m. Hartford The entire state of Connecticut went into a statewide travel ban beginning at 5 a.m. Tuesday which is expected to remain in effect until further notice. A webcam in Hartford, Connecticut, showed a blur of white in snowy conditions. Hartford is under a blizzard warning until Tuesday, 8 p.m.", -2241,2017/3/14,http://www.cnn.com/2017/03/13/africa/hosni-mubarak-release/index.html,Egypt's ex-President Mubarak to be freed,"(CNN)Former Egyptian President Hosni Mubarak will be free soon, according to Egypt's official news agency al-Ahram.","Egypt's prosecution office has ordered his release, the news agency said. On March 2, Mubarak was acquitted on charges of killing protesters during the 2011 Arab Spring uprising. Egypt's Court of Cassation upheld an earlier verdict, making the acquittal final. The Court of Cassation is the highest court for criminal litigation in Egypt. Mubarak and his sons were convicted of corruption, however. On Monday, Ibrahim Saleh, the attorney general of the East Cairo prosecution, accepted Mubarak's request to include time spent in prison pending trial as part of his sentence in the corruption case, state media reported. State media quoted judicial sources saying there are no more pending court cases against Mubarak. Egyptian media is reporting, citing Mubarak's lawyer Farid al-Deeb, that Mubarak will be released within the next few days. The lawyer said Mubarak will leave the military hospital where he is being held and go to his house in an upscale Cairo neighborhood.", -2242,2017/3/14,http://www.cnn.com/2017/03/13/politics/japan-izumo-warship-us-joint-naval-exercise/index.html,Japan's largest warship to train with US Navy,"(CNN)Japan's largest warship will set sail this summer to train with naval ships from the United States and India as part of the annual ""Malabar"" joint exercise, a Pentagon official told CNN on Monday.","The addition of the Izumo helicopter carrier, which specializes primarily in anti-submarine missions, marks a rare show of naval force from Japan amid growing tensions across Asia and highlights the Trump administration's intention to maintain a cooperative military presence in the region. The Malabar military exercises have taken place on a rotational basis in the West Pacific and Indian oceans since Japan became a regular participant in 2007. To get to the Indian Ocean, the shortest route will take the Izumo through the contested South China Sea. China has already made its dissatisfaction with the exercises clear. In December, a Global Times editorial said the exercises would ""jeopardize the peace and stability in the (region)."" The 2017 exercises comes at a time of high tension in the Asia region. North Korean missiles that fell in waters off Japan last week brought new fears in Tokyo about what Kim Jong Un's regime has planned. North Korea said the tests were carried out by the military unit tasked with taking on US military bases in Japan. Japan and China have locked horns over the Senkaku Islands, the Tokyo-administered chain claimed by Beijing, which refers to them as the Diaoyu Islands. Then there is the dispute in the South China Sea, particularly Beijing's continued building of man-made islands that has ratcheted up tensions with US allies in the region. President Donald Trump and Secretary of State Rex Tillerson have also been critical of China's actions in the South China Sea. ""Building islands and then putting military assets on those islands is akin to Russia's taking of Crimea. It's taking of territory that others lay claim to,"" Tillerson said in his confirmation hearing. ""We're going to have to send China a clear signal that first, the island-building stops, and second, your access to those islands (is) also not going to be allowed."" Secretary Tillerson will visit Asia this week, with stops planned in South Korea, China and Japan. Next month, Trump plans to host Chinese President Xi Jinping for a summit at his Mar-a-Lago estate in Florida, a senior administration official told CNN Monday. The US also announced Monday that it will permanently station attack drones in South Korea, a move that comes just days after South Korea received the first parts of the controversial US-made THAAD missile defense system. ""The US wants to, and I think it needs to, be seen as responsive to developments in the region,"" said Yvonne Chiu, a professor at Hong Kong University. Reuters first reported the Izumo's addition to the large-scale exercises. Japan's pacifist constitution limits its offensive firepower, but the 816-foot Izumo is one of Japan's few tools that allow it to project military power beyond the defense of its own territories. The addition of the Izumo to the already large-scale exercises underscores that Japan's anti-submarine warfare capabilities are key to attempting to deter Chinese expansion in the region, some analysts said. ""Subsurface detection and reaction is a Japanese strength in both technological and operational terms, and a Chinese weakness, even if (China) quantitatively has a larger subsurface fleet,"" said Corey Wallace, a security analyst at Freie University in Berlin. Japan has excellent submarine hunting vessels, helicopter carriers and sub-hunting aircraft and a surprisingly long history of using them, Wallace said, even helping the US keep the Soviet Pacific subsurface fleet ""bottled up"" in the North Pacific during the Cold War. Despite plans for the Izumo to train with US ships as part of Malabar, the US Navy declined to comment on whether the Japanese vessel would be deployed to the contentious South China Sea. ""The US Navy does not comment on Japanese Navy movements,"" a Navy official said. The Japanese government did not respond to a request for comment. Japan does not have any claim over the disputed waters, but China's growing military presence has fueled concerns in Tokyo and prompted a pledge to increase patrol and training activities in the area. The South China Sea dispute will likely be discussed during Tillerson's trip to Asia this week and when Xi visits Trump in Florida.", -2243,2017/3/14,http://www.cnn.com/2017/03/13/politics/attack-drones-south-korea/index.html,US sending attack drones to South Korea,"Hong Kong (CNN)The United States will permanently station attack drones in South Korea, the US military announced.","The announcement came a week after North Korea shot off four ballistic missiles into the Sea of Japan, also known as the East Sea, and while the US and South Korea are conducting their annual joint military exercises. ""The stationing of this company, which will be assigned to the 2nd Combat Aviation Brigade of the 2nd Infantry Division, directly supports the US Army's strategic plan to add one Gray Eagle company to each division in the Army,"" USFK said in a news release. ""The UAS adds significant intelligence, surveillance and reconnaissance capability to US Forces Korea and our ROK (Republic of Korea) partners."" The Gray Eagle Unmanned Aerial System is capable of staying in the air for 24 hours and is equipped with Hellfire missiles, according to a profile on the US Army website. The system has upgraded reconnaissance and surveillance technology over that of the Predator drones, which the US military has used widely in operations around the globe, said Corey Wallace of the Graduate School of East Asian Studies at Freie Universit?t Berlin. It can also integrate with Apache helicopters, which could help when it comes to avoiding bad weather on the Korean Peninsula. The US military began rotating 24 AH-64D Apaches into South Korea earlier this year. ""The US and its regional partners see the importance of demonstrating that they also have the upper hand in conventional deterrence and readiness, and not just as a reaction to a full DPRK (Democratic Republic of Korea) attack,"" Wallace told CNN in an email. Trouble on the Peninsula The move is likely a show of force in reaction to increased provocations from North Korea, said Daniel Pinkston, a professor at Troy University in Seoul. Pyongyang has conducted a series of test missile launches in recent months, a worrying development for the US and its allies in the region because it means that North Korea is likely refining its missile technology. ""If North Korea thought they could continue their accelerated pace of weapons testing and deployment without a response, they certainly were wrong,"" Pinkston told CNN. ""(With) the recent North Korean behavior, and with the Foal Eagle exercise going on, I think it's a good time (to deploy)."" This is the first time US forces have made the news of the drone movement public, according to USFK spokesman Christopher Bush. And that's no accident, said Yvonne Chiu, a professor at Hong Kong University. The US wants to make sure that Pyongyang -- and to a lesser extent Beijing -- has no doubts that Washington is a major player in Asia. ""The US wants to, and I think it needs to, be seen as responsive to developments in the region,"" Chiu told CNN. ""And you want North Korea to know that."" Park out Though the timing is likely a reaction to North Korea's missile launches and threatening posture, it also came amid political upheaval in South Korea. The country's Constitutional Court upheld the impeachment of now former President Park Geun-hye Friday, who was ousted in the aftermath of a corruption scandal. Park took a hard line when it came to dealing with Pyongyang, but the man currently leading in opinion polls for the race to succeed her -- Liberal candidate Moon Jae-in -- has historically favored improving relations between the two. ""It could be that the announcement is made to ensure a future government doesn't walk it back -- like with the THAAD acceleration, there may be some concerns that a future left-leaning government might be less willing to face the DPRK directly,"" said Wallace. THAAD is an acronym for the Terminal High Altitude Area Defense, a US-built defensive missile system that Park's government agreed to deploy in South Korea. At a rally celebrating the impeachment ruling Saturday, balloons could be seen reading ""No THAAD! Yes peace!"" The THAAD element THAAD is designed to take down incoming missiles from North Korea, and the first pieces of it arrived in South Korea last week. But its deployment is highly controversial despite its defensive nature. RELATED: How would missile defense systems work against North Korea? South Koreans are split in their support for THAAD. Some see it as way to protect themselves from provocations by North Korea, though it's not a foolproof system. Others are angry that THAAD's deployment has damaged diplomatic relations between Seoul and Beijing. China opposes THAAD because it sees it as a threat to its own security interests. Among other things, Beijing worries that THAAD's advanced radar system could be used for surveillance purposes. Many in the Chinese foreign policy establishment see THAAD as just as big a threat to China as Pyongyang's nuclear program, according to professor John Delury of Yonsei University. Though THAAD is just a defensive system, the radar and surveillance capabilities worry the Chinese. Now they'll have to worry about attack drones parked in their backyard, too. ""The US has a reputation -- at least in China -- for not being particularly strong or interested or really wanting to or have the ability to defend its interests,"" says Chiu. ""So Beijing is going to react badly to this.""", -2244,2017/3/14,http://www.cnn.com/2017/03/13/health/abortion-texas-lawmaker-trnd/index.html,Texas bill would fine men $100 each time they masturbate,(CNN)A Texas lawmaker has proposed a bill that would fine a man $100 each time he masturbates.,"The bill also imposes a 24-hour waiting period if a guy wants a colonoscopy or a vasectomy, or if he's in the market for some Viagra. Rep. Jessica Farrar, a Democrat, knows her bill isn't going to get very far. But she proposed it last week to make a point and give male lawmakers a taste of their own medicine. Farrar has long been an advocate of women's health in a state that has made it extremely difficult for women to get abortions. And the bill, by pointing out a sexist double standard, is meant to shine a light on the obstacles women deal with when it comes to their health care. ""Let's look at what Texas has done to women,"" Farrar told CNN. ""What if men had to undergo the same intrusive procedures?"" Even the name is a jab Farrar's bill would penalize men for masturbation because such behavior is a failure to preserve the sanctity of life and ""an act against an unborn child."" Even the bill's name -- ""A Man's Right to Know Act"" -- is a jab at a pamphlet Texas doctors are required to give women seeking abortions. That pamphlet, ""A Woman's Right to Know,"" has long been criticized for being inaccurate, ideologically influenced by religion and designed to discourage women from getting abortions. One section of the pamphlet says breast cancer and abortions are linked. Scientific studies have found no cause-and-effect relationship between the two. ""We have real lives to deal with,"" said Farrar, who pointed out that Texas has the highest maternal mortality rate in the developed world. And she's right ""?the rate of women who died from pregnancy-related complications doubled from 2010 to 2014, according to a recent study. Backlash from political opponents Republicans have lashed out at Farrar's bill. ""I'm embarrassed for Representative Farrar. Her attempt to compare to the abortion issue shows a lack of a basic understanding of human biology,"" said Rep. Tony Tinderholt in a statement. ""I would recommend that she consider taking a high school biology class from a local public or charter school before filing another bill on the matter."" Tinderholt recently proposed a bill that would charge abortion providers and women receiving abortions with murder. Access to abortions in Texas Texas has quite a one-two punch to keep women from getting abortions. One: strict laws. Two: Lack of clinics. Texas doesn't allow abortions for women past the 20-week mark unless their life is endangered. Under this law, women who are pregnant with an unviable fetus are forced to carry to term. Additionally, women must receive state-directed counseling, must have an ultrasound and a provider must describe the image of the unborn child to the woman. As of 2014, some 96% of Texas counties had no clinics that provided abortions, and roughly 43% of women lived in those counties, according to the Guttmacher Institute. And since 2014 the number of facilities providing abortions in Texas has plummeted from 44 to18 after the state passed restrictions on abortion doctors and clinics. The restrictions were eventually struck down by the Supreme Court, but the damage was done. Today, Texas women can only get abortions in seven cities and an entire swath of the state -- the panhandle and much of west Texas -- is an abortion clinic desert.", -2245,2017/3/14,http://www.huffingtonpost.com/2017/03/13/trump-muslim-ban-violence-against-women_n_15353058.html,Trump's New Muslim Ban Blames Islam For Violence Against Women. Advocates Aren't Impressed.,Amnesty International and 54 other groups want Trump to rescind the policy and stop misleading people about gendered violence.,"WASHINGTON ""?President Donald Trump often tries to justify his extreme suspicion of Muslims by arguing that they threaten Americans-""?particularly women. Trump likes this argument so much that he incorporated it into official policy, in his executive orders on refugees and citizens of Muslim-majority countries. Both ""Tuslim ban""?documents have directed the Department of Homeland Security to collect and publish what the second calls data on ""the number and types of acts of gender-based violence against women, including so-called ""Gonor killings,""?in the United States by foreign nationals.""?Advocates for women who actually face that kind of violence were immediately skeptical, seeing Trump's professed concern as an attempt to frame the problem of violence against women as something unique to Muslim-majority countries. Now they'r pushing back. In a letter sent to the president and national security adviser Lt. Gen. H.R. McMaster Monday night, and exclusively provided to The Huffington Post, Amnesty International, the International Rescue Committee, CARE and more than 50 other organizations denounced the president's ban and his portrayal of the issue. ""As a global crisis, violence against women and girls is not specific to any one country. Connecting ""�gender-based violence against women or girls""?with the travel ban and refugee program suspension is out of sync with the reality that every country, including the United States, suffers from such violence,""?the letter reads. ""Enacting a travel ban on these countries and suspending the refugee resettlement program does not address the global crisis of violence against women; neither does it offer any solutions to violence against women in the specifically targeted countries.""?The letter notes that Trump's pause on accepting refugees and issuing new visas to citizens of Iran, Libya, Somalia, Sudan, Syria and Yemen could put women and girls in danger. The travel moratorium does nothing to make women and girls in those countries safer ""?and it could trap many of them in the process of migrating away from danger, which often involves giving up one's social network and any safety resources one might have. Ceasing to issue visas or grant refugee status to displaced people seeking safety in the U.S. could greatly increase the odds that they'll face exactly the kind of violence the Trump administration says it wants to prevent. The executive orders could even end up keeping women and girls in conflict zones like-Syria-and Sudan, where rape has been used as a weapon of war. ""Any shutdown of this program or ban restricting travel does not help make women and girls safer,""?the organizations""?letter says. While Trump's policy fails to offer real recourse for survivors of gender-based violence, it does include some-well-known anti-Muslim tropes, the groups note. ""We are further concerned by the executive orders""?singling out of so-called ""Gonor killings""?as a type of gender-based violence that is more deserving of concern than other types of violence,""?the letter says. ""specifically naming this type of violence in connection with the six Muslim-majority countries listed in the executive order not only promotes and inflames Islamophobia, but it further feeds into the false narrative that violence against women is specific to non-Western cultures.""?Amnesty and the other organizations do significant work in the Muslim-majority world. They are hardly unaware of the dangers and restrictions women can face there. But they'r also familiar with the line Trump is peddling ""� and with his other actions, like attacks on American and-global reproductive health.- The groups asked Trump to rescind his new order. The ban is meant to go into effect on Thursday. It already faces legal challenges-from eight states, including California, Hawaii, Maryland, Massachusetts, Minnesota, New York, Oregon and Washington, and advocates hope to block it from being implemented at all. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2246,2017/3/13,http://www.huffingtonpost.com/2017/03/13/one-pot-vegetarian-recipes_n_15353056.html,The Best Vegetarian One-Pot Recipes,We'll do anything to clean fewer dishes.,"Nothing makes the chore of cooking dinner infinitely easier than one-pot recipes. One-pot recipes not only mean that there will be fewer dishes to wash at the end of the night, but they also generally indicate a simpler recipe. Simple does not mean less flavorful, though. Especially when it comes to these vegetarian one-pot dinner recipes. We have found hearty lentil chilis, creamy mushroom pasta and chickpea shakshukas that will leave you feeling grateful for the good meal ""?and thankful for a clean sink. Here are 10 recipes to get you started on your simpler dinner journey. All the meal hacks and indulgent snacks. You'r welcome. Learn more", -2247,2017/3/13,http://www.huffingtonpost.com/2017/03/14/seth-meyers-trump-obamacare-replacement_n_15353012.html,Seth Meyers Dissects Donald Trump's Obamacare Replacement,He found a lot of flaws.,"Seth Meyers picked apart the GOP's health care bill Monday, and he didn""t like what he saw. The ""Late Night""?host noted how many Republicans were also reportedly skeptical about the proposed replacement for Obamacare, which a report out Monday noted would see up to 24 million people standing to lose insurance. Republicans""� resistance to the GOP's proposed-American Health Care Act-had prompted President Donald Trump to invite Congress members to the White House for a bowling and pizza party, Meyers said. ""that's right, Trump is trying to sway members of Congress with an 8-year-old's birthday party. Also good news, Steve Bannon has agreed to be a terrifying clown,""?he said, referring to the White House chief strategist. Meyers later ridiculed some GOP lawmakers for the bizarre and unhelpful ways in which they're talked about the proposed bill. He highlighted for particularly mockery Rep. Jason Smith's (R-Mo.) throwaway comments on-taxing the sun-during a serious debate and Rep.-Jason Chaffetz's (R-Utah) argument that low-income Americans could afford health care if they didn""t buy iPhones. Check out the full segment above. Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2248,2017/3/14,http://www.huffingtonpost.com/2017/03/14/alan-menken-lefou-not-gay_n_15352584.html,'Beauty And The Beast' Composer Alan Menken Calls LeFou's Sexuality 'Utter Non-Issue',"""It's really not really part of the movie in any overt way at all.""","The composer behind Disney's ""Beauty and the Beast""?is taking issue with how some media outlets are portraying a character in the film as openly gay. Disney Legend Alan Menken told ComicBook.com that LeFou, played by Josh Gad in the upcoming live action remake, isn""t ""pining""?for the film's villain as the song ""Gaston""?might make it appear.- ""You know, I don""t see him pining,""?Menken was quoted as saying. ""to me, he has always been look(ing) up to Gaston, in a nerdy kind of way.""?Menken said:- ""I know there's been this whole discussion, which is to me, absolutely absurd. It's just nuts. As far as I can tell, some journalist in England decided to make it his cause c��l��bre to push this agenda. And it's really not really part of the movie in any overt way at all... any more than it was in the original. To me, it's an utter non-issue. And I'd appreciate people realizing that it's a non-issue because it's just silly. But that's journalism, and I understand.""?LeFou's sexuality has been making headlines since the film's director, Bill Condon, recently told the British magazine Attitude that LeFou has ""A nice, exclusively gay moment""?in the film.- ""LeFou is somebody who on one day wants to be Gaston and on another day wants to kiss Gaston,""?Condon was quoted as saying.-""He's confused about what he wants. It's somebody who's just realizing that he has these feelings.""?However, Condon has since tried to lower expectations. ""It's part of a celebration of love,""?he told Variety last week. ""But I don""t want people to think it's more than it is and be disappointed.""?In an interview with People, Gad called the moment-""subtle, but incredibly effective.""Actress Emma Watson, who plays Belle, used the same word.- ""It's incredibly subtle, and it's kind of a play on having the audience go, ""Is it, or is it not?""?Watson told Entertainment Weekly on Sirius XM. ""I think it's fun. I love the ambiguity there.""?Word of the ""exclusively gay moment""?has prompted a backlash against ""Beauty and the Beast""n right-wing circles, with one theater in Alabama refusing to show the film.- So how-""exclusively gay""?is that moment? HuffPost has some spoilers here. ""Beauty and the Beast""?opens on Friday with the original 1991 score by Menken and lyrics by Howard Ashman, who died of AIDS-related complications eight months before the film's premiere. The remake also features new songs by Menken and lyricist Tim Rice.- Share this slide: How will Trump's first 100 days impact you? Learn more", -2249,2017/3/14,http://www.huffingtonpost.com/2017/03/14/stephen-colbert-kellyanne-conway-microwaves_n_15352520.html,Stephen Colbert Mocks Kellyanne Conway's Microwave Gaffe,"""Go go alternative facts!""","Stephen Colbert-tore into President Donald Trump's adviser Kellyanne Conway on Monday for suggesting that microwaves could turn into cameras-that spy on people.- Conway made the claim on Sunday during an interview with the-Bergen County Record-as she attempted to defend Trump's baseless allegation that former President Barack Obama had wiretapped Trump Tower before the 2016 presidential election. Colbert then reached-out to Obama via his own microwave oven. Check out the segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2250,2017/3/14,http://www.huffingtonpost.com/2017/03/14/march-blizzard-2017_n_15351318.html,"March Blizzard 2017: Snow Blankets The Northeast, Grounding Flights And Closing Schools","Forecasts are calling for up to 2 feet of snow by early Wednesday, with temperatures 15 to 30 degrees below normal for this time of year.","NEW YORK/BOSTON (Reuters) - Snow began blanketing northeastern United States on Tuesday as a winter storm packing blizzard conditions rolled into the region, prompting public officials to ask people to stay home while airlines grounded flights and schools canceled classes. The National Weather Service issued blizzard warnings for parts of eight states including New York, Pennsylvania, New Jersey and Connecticut, with forecasts calling for up to 2 feet of snow by early Wednesday, with temperatures 15 to 30 degrees below normal for this time of year. Some 50 million people along the Eastern Seaboard were under storm or blizzard warnings and watches. ""If you must go out, do so for as limited time period as possible ... but the best thing to do is stay in,""?New York Mayor Bill de Blasio said on Monday. Above-ground subway service will be suspended at 4 a.m. local time as transit officials in the New York metro area warned that more bus and train routes could be suspended throughout the day. ""It's a good day to stay home,""?said New York Governor Andrew Cuomo on CBS Radio. ""It is going to be a dangerous, dangerous situation.""?Winter Storm #Stella's main event is underway as #blizzard warnings cover parts of 8 states: https://t.co/WqrbiskK0t pic.twitter.com/D0wAtfcOlE The Port Authority of New York and New Jersey readied hundreds of pieces of snow equipment at the three major New York area airports. Thousands of tons of salt and sand were prepared for airport roads, parking lots, bridges and tunnels. Airlines preemptively canceled more than 4,000 flights ahead of the storm, according to tracking service FlightAware.com. The airports with the most cancellations were Newark International Airport in New Jersey and Boston Logan International Airport. American Airlines canceled all flights into New York's three airports - Newark, LaGuardia Airport and John F. Kennedy International Airport - and JetBlue Airways reported extensive cancellations. Delta Air Lines canceled 800 flights for Tuesday for New York, Boston and other northeast airports. United Airlines said it would have no operations at Newark or LaGuardia. ""We'r keeping a close eye on things and depending on how things go, will plan to ramp back up Wednesday morning,""?United said in a statement. Governors in New York, New Jersey, Pennsylvania and Virginia declared a state of emergency. ""When this thing hits, it's going to hit hard and it's going to put a ton of snow on the ground in a hurry,""?Massachusetts Governor Charlie Baker said, urging people to consider working from home if they could. New York City public schools - the largest school system in the United States - canceled classes on Tuesday. Districts in Boston, Fairfax County, Virginia, and Philadelphia also canceled school on Tuesday. #Blizzard warnings were expanded this afternoon to cover parts of 8 states. Here's the latest: https://t.co/VqX73JEzy4 #Stella pic.twitter.com/eYvr4tr7gr The storm comes near the end of an unusually mild winter along much of the East Coast, with below-normal snowfalls in cities such as New York City and Washington, D.C. Boston was braced for up to a foot (30 cm) of snow, which forecasters warned would fall quickly during the storm's expected peak. Washington D.C., which often bogs down with even low levels of snow, was expecting 5 inches (13 cm) and twice that in outlying areas. Snow fall will be heavy at times with as much as 4 inches (10 cm) per hour expected to fall with winds reaching up to 60 mph (100 kph) in parts of the northeast, the National Weather Service warned. ""�Visibilities will become poor with whiteout conditions at times,""?the service said. German Chancellor Angela Merkel, who was due to meet President Donald Trump in Washington on Tuesday, postponed her trip until Friday, the White House said. The United Nations headquarters said it would close on Tuesday, but the New York Stock Exchange vowed to remain open. Want to help us out tomorrow? Send us your snow reports! Here's how to measure properly pic.twitter.com/FRNi5UKDq2 Start your workday the right way with the news that matters most. Learn more", -2251,2017/3/14,http://www.huffingtonpost.com/2017/03/14/trump-tweet-tournament-daily-show_n_15350876.html,'Daily Show' Launches NCAA-Like Tournament To Find Trump's 'Greatest' Tweet,"The four brackets are ""celebs,"" ""gov't affairs,"" ""enemies"" and ""WTF.""","Millions of sports fans are filling out their brackets for the NCAA Basketball Tournament (a.k.a. ""Tarch Madness""?. But over at ""the Daily Show,""?they are doing something different.- ""third Month Mania""s a tournament dedicated to Trump's ""greatest""?tweets (""�greatest""?being a matter of opinion, of course). After scanning the president's entire tweeting history, the show has picked 64 classic examples of Trump at his craziest. The NCAA Tournament divides its teams into four regional brackets, but ""the Daily Show""?divides the Trump tweets into four categories: ""Celebs,""?""Gov""t Affairs,""?""Enemies""?and ""WTF""?(those tweets that defy explanation). Like the NCAA tournament, the top seed in each category plays the No. 16 seed in the first round. Celebs Gov""t Affairs Enemies WTF Fans can vote in the first round on the Comedy Central website for the next four days. Voters will weed out the threatening 32 starting next Monday, followed by the surly 16 and the angry 8 the week after that Three weeks from now, the show will unveil the top Trump tweet of all time.- ""daily Show""?correspondent Hasan Minaj emphasized the importance of voting on Monday's show. ""This time, the popular vote actually matters,""?Minaj said. Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2252,2017/3/13,http://www.huffingtonpost.com/2017/03/13/son-doong-cave-vietnam-cable-car-plan_n_15349942.html,"In Vietnam, A Rush To Save The World's Largest Cave From The Masses","""Caves are fragile environments. They don't regenerate very quickly, and once they're broken, they're broken.""","The world's largest cave, the mammoth Hong Son Doong in Vietnam,-is a relative babe-in-arms when it comes to natural history: The cavern was first discovered in 1991, then lost, then found again before it was first explored in 2009. But less than a decade later, environmentalists are scrambling to save the site from thousands of tourists and a development company set on thrusting a cable car into its depths. Located in Phong Nha-Ke Bang national park, a UNESCO World Heritage Site, Son Doong stretches more than 5.5 miles underground, reaches heights of 650 feet and is home to its own jungle, ecosystem and river. Just one tour company has a concession to venture into the cave, and only a few hundred people are allowed inside the fragile environment every year. But that could soon change. HuffPost RYOT spoke with local activists, cavers and the spelunkers who first explored Son Doong about the local government's secretive plans that may allow developers to build a massive cable car project that bring more than 1,000 people to the cave each day. Such threats are not new. In 2014, a group of local activists helped stave off a proposal to build a $212 million, 6.5 mile-long cable car throughout Phong Nha-Ke Bang park that would traverse parts of Son Doong. The announcement drew widespread condemnation despite assurances from the cable car company, Sun Group, that it would be an environmentally friendly way to view the park that bring ""ghousands of jobs for the poor local people.""?Any plans at Son Doong would likely echo another project, completed by another company last year, at the country's Mount Fansipan, one of the tallest peaks in the region. The site is now home to a cable car that cut a journey that used to take three days on foot down to 20 minutes. The system can now bring 2,000 people to the summit every hour, and, like the country's iconic Ha Long Bay, has become a hive of tourist activity. Learn more Environmentalists fear that if the Son Doong project were to go forward, it would bring hordes of tourists to a pristine ecosystem protected by its relative unreachability. A Facebook group operating under the name Save Son Doong has called on the Vietnamese government to again reject the proposal, saying the ""project must be stopped before it has a huge and damaging impact on the Son Doong cave and the ecosystem of the entire Phong Nha-Ke Bang national park,""?a Change.org petition organized by the group says. Those concerns were echoed by the British Cave Research Association, the group that declared Son Doong the largest of its kind and, alongside the explorer Howard Limbert, led the first expedition to the site. ""Caves are fragile environments. They don""t regenerate very quickly, and once they'r broken, they'r broken,""?Deb Limbert, a team leader for the group, told HuffPost RYOT. Government officials in the province of Quang Binh, where Son Doong is located, have told local media there are no plans to support a new cable car project. In March, HuffPost RYOT filmed a representative of the cable car company traveling to the cave with Phong Nha-Ke Bang park employees. Take a look at more photos of Son Doong cave below. CORRECTION: An earlier version of this article included two pictures of Hang En cave instead of Son Doong. Share this slide:", -2253,2017/3/13,http://www.huffingtonpost.com/2017/03/13/shep-smith-kellyanne-conway-microwaves_n_15349512.html,Fox News Anchor Shepard Smith Has Simply Had It With Kellyanne Conway,"""Fox News can now confirm microwaves heat food.""","Fox News anchor Shepard Smith seems to have reached his limit of White House adviser Kellyanne Conway.- Smith said Monday, ""We really don""t quote [Conway] much anymore because, well, history,""?as he reported on her explanation of-""microwaves that turn into cameras.""?Conway made the widely mocked comments when asked about President Donald Trump's accusation that former President Barack Obama had ""wiretapped""?Trump Tower before the election.- She called microwave/cameras ""A fact of modern life.""?Smith was having none of it.- ""Ticrowaves do not not turn into cameras. Fox News can now confirm microwaves heat food,""?he said.-""Cameras take pictures.""?Conway later walked back those comments,-claiming she was speaking ""About surveillance articles in news & techniques generally, not about campaign.""?2/2: response to Bergen Record was about surveillance articles in news & techniques generally, not about campaign. Headline just wrong. Share this slide: How will Trump's first 100 days impact you? Learn more", -2254,2017/3/9,http://www.huffingtonpost.com/2017/03/09/nick-viall-bachelor-winner_n_15348194.html,Nick Viall Is No Longer A 'Bachelor',"Viall endured a tumultuous, cheese-pasta-filled season.","Warning: Spoilers for the ""the Bachelor""?Season 21 finale.- Nick Viall's had a few shots at finding love on ""the Bachelor""?franchise. Thankfully, he finally got his happy ending on Monday night. And it was, well, dramatic, of course.- After weeks of tears, one-on-one dates, naps and cheese pasta, the 36-year-old proposed to Vanessa Grimaldi with a Neil Lane diamond ring. (Duh!) ""I will never forget the first moment I saw you ... and the first moment I started falling in love with you,""?he said, adding, ""there have been plenty of times where I wanted to fight it, but I don""t want to fight it anymore.""?""nick, when I'm with you, I'm the happiest I""ve ever been,""?she said.- Raven Gates was the runner-up. Nick told her through tears, ""I think about how much I""ve grown to care about you, respect you, and how much love I have for you ... I just don""t know if I'm in love.""He added, ""I'm just torn up inside letting you go.""When Nick said, ""I'm going to miss you,""?Raven answered, confidently, ""I know.""Nick and Vanessa had an immediate connection. Although they're gone back and forth about their plans regarding where to live ""?Nick is Los Angeles-based while Vanessa resides in Montreal, Canada ""?it appears their love for each other is more important than the distance. - ""It's sometimes strange how similar we are, which I think it's great and sometimes it concerns me,""?Nick told Vanessa on the show. ""I'm just worried about the fact that, sometimes, it could complicate things. There might be some strong conversations because we'r passionate people, and we want what we want. [But]-if we, in our hearts, decide to get engaged, it's because that's how we feel.""Well, apparently they felt they were meant to be together. Congrats to the happy couple! Share this slide: Husband: ""These little shacks are so weird. They're just beds, so you can...just..."" Me: ""They're love shacks!"" #TheBachelor THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2255,2017/3/13,http://www.huffingtonpost.com/2017/03/13/republican-health-bill-could-end-up-pressuring-employees-to-share-genetic-testing-results_n_15347900.html,GOP Health Bill Could Let Companies Pressure Workers To Give Genetic Test Results,Your employer-based insurance premium could be higher if you decline.,"WASHINGTON ""?Imagine your employer wants you to submit to genetic testing as part of a ""workplace wellness""?program. The testing is completely voluntary, your employer says. If you'r concerned about your privacy, no one can force you to take part. There's just one catch: Declining to provide genetic testing results will cost you thousands of dollars each year in higher health insurance premiums. In that case, how voluntary would the program feel? Such a futuristic-seeming scenario may not be far off if a proposal moving through the GOP-controlled House becomes law. A Republican bill that made it out of committee last week would enable companies to withhold financial benefits from employees who don""t take part in genetic testing as part of a workplace wellness program. The committee measure passed, 22-17, on a party-line vote with all Democrats opposed. There is no equivalent bill yet in the Republican-controlled Senate, but such a proposal could become part of the health care overhaul now consuming Capitol Hill as Republicans try to repeal and ""replace""?the Affordable Care Act. If it finds its way into health care reform, the measure would provide employers with a carve-out from nondiscrimination and privacy laws when it comes to workplace wellness programs. Under current law, genetic testing can be part of a wellness program, but an employer can""t make it a condition of benefits. The GOP measure would allow that. It doesn""t mean your employer could force you to undergo such testing and share the results ""?but your employer could essentially withhold money if you don""t.- Dozens of health and privacy advocacy groups have come out against the bill. The risk of disclosure can extend beyond the worker's health. In one case cited by the Labor Department, a job candidate was rejected after disclosing screening results that showed he carried a single genetic mutation for Gaucher's disease, which meant only that he could pass the mutation on to a son.- A spokeswoman for Rep. Virginia Foxx (R-N.C.), chairwoman of the House Committee on Education and the Workforce, said the bill would not change the fact that employees could choose whether or not to participate in such a program. ""those who are opposed to the bill are spreading false information in a desperate attempt to deny employees the choice to participate in a voluntary program that can reduce health insurance costs and encourage healthy lifestyle choices,""?she said. ""We believe working families should be empowered with that choice, and so did the Obama administration. It is another sad reminder of just how extreme the Democrat Party and their liberal allies are becoming.""?As The Huffington Post's Jonathan Cohn has reported, workplace wellness programs have become a popular way for companies to try to save money on employee health care costs. In a typical program, a worker might provide her employer with a basic health screening ""?cholesterol level, body-mass index ""?as well as a rundown of her habits ""?how much she exercises, whether she smokes, etc. In some cases, an employee might even agree to losing a certain amount of weight or hitting a blood pressure target. The idea behind those programs is to nudge employees toward a healthier lifestyle and prevent them from getting sick; that, in turn, would keep employers""?insurance costs down. In return for taking part, the employee gets anything from a small gift card to thousands of dollars in health care savings a year. According to a Kaiser Family Foundation survey, 83 percent of large employers offered wellness programs last year, and 42 percent of them came with financial incentives. Most programs had a maximum reward of a few hundred bucks. - Setting aside whether or not these programs actually work,-the money at stake raises the question of how voluntary they are. So far, the law has come clearly down on the side of businesses. Under President Barack Obama, the Equal Employment Opportunity Commission set rules allowing companies to dangle incentives worth 30 percent of a worker's insurance premium, deeming such arrangements voluntary. The implications of the bill were first reported by Stat reporter Sharon Begley. Jennifer Mathis, director of policy at the Bazelon Center for Mental Health Law in Washington, D.C., told Begley that the bill would ""Completely take away the protections of existing laws""?""?namely, the genetic information protections in the Americans With Disabilities Act and the Genetic Information Nondiscrimination Act. The language of the new bill states that workplace wellness programs ""shall be considered to be in compliance""?with the relevant provisions of those laws. ""While the information returned to employers would not include workers""?names,""?Begley noted, ""it's not difficult, especially in a small company, to match a genetic profile with the individual.""?Such arrangements would also put test results in the hands of the third-party firms that operate the wellness programs. House Republicans said the change would give employers ""the legal certainty they need""?to implement workplace wellness programs. They have dubbed the bill the ""Preserving Employee Wellness Programs Act.""?Rep. Bobby Scott of Virginia, the committee's ranking Democrat, told HuffPost in a statement that the Republican bill would ""Coerce""?workers into forking over sensitive medical and genetic information to their employers, ""undermining key workplace civil rights.""?""This is yet another policy proposal that will disproportionately harm sicker and older people, as well as those who have disabilities that may not be readily noticeable,""?Scott said. ""Information disclosed in these programs could also result in discrimination in employment.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2256,2017/3/13,http://www.huffingtonpost.com/2017/03/13/michael-brown-unedited-video_n_15346390.html,Prosecutor Releases Unedited Ferguson Video To Counter Cover-up Claims,"Robert McCulloch said a ""poorly edited"" film distorted the truth of Michael Brown's last day.","The St. Louis County prosecutor released unedited surveillance video on Monday that shows the late Michael Brown at a Ferguson, Missouri, convenience store many hours before he was killed by a police officer in 2014.- Prosecutor Robert McCulloch made the video public to counter claims in a documentary film-that premiered Saturday. Filmmaker Jason Pollock had obtained the previously unreleased footage of Brown and included parts of it in his documentary ""stranger Fruit.""?The film was shown over the weekend at the high-profile South by Southwest festival in Austin, Texas. View the unedited five-part video here. ""It's not as though it was hidden away somewhere,""?McCulloch said. The video, which shows the first of two visits by Brown to the store that day, hadn""t been released previously because it was considered irrelevant to the investigation of his death, the prosecutor explained. Investigators and attorneys on both sides have long been aware it existed, he added. ""This is not new, not a surprise and not relevant,""?McCulloch said.- Shortly after the prosecutor released the unedited video, lawyer Jay Kanzler, who is representing the convenience store and its clerks, also made it public.- The two sides remain locked in disagreement on what the silent footage actually depicts. Pollock argues that his reading of the early-morning video puts the second, better-known video of Brown returning to the store roughly 10 hours later in a new light. The second video, taken not long before the teenager died, was released by police and circulated widely. Inside Ferguson Market and Liquor, Brown is seen pushing the store co-owner and committing what investigators said was a strong-arm robbery of cigarillos. The altercation is what police said prompted the store to call 911. Officer Darren Wilson responded to the alleged robbery and shot Brown soon after.- Pollock contends in his documentary that the two visits were related. The first video, he argues,-shows Brown trading marijuana for cigarillos with the store clerks and then leaving the cigarillos with them to collect later. The second video shows Brown returning for his items, Pollock claims.- McCulloch said the video that he and Kanzler released Monday is a complete, unedited version of the footage Pollock's film highlights. It includes the clerks rejecting Brown's bartering attempt, which was left out of the-""poorly edited""?and ""pathetic""?film cut, McCulloch said. Pollock defended his documentary on CNN following the prosecutor's press conference.- ""Whatever they'r saying about it is obviously not true,""?he said. ""All [Brown] was doing was going to get his stuff,""?Pollock said of the second visit, where Brown is seen pushing the store owner. ""the old guy didn""t know about [the deal], and there were younger guys there and they didn""t want to say anything to the old guy.""?Store co-owner And Patel told the St. Louis Post-Dispatch that he wasn""t there when Brown's first visit occurred and if there was some kind of transaction between Brown and the clerks, he didn""t know about it. At his press conference, McCulloch called the suggestion that Brown came back to pick up items ""stupid.""?""If there's anything at all there,""?he added, ""it's an attempt by Brown to barter for goods but that the store clerks declined.""?Prosecutor calls filmmaker ""pathetic""?over new Michael Brown video. @jasonpollack & Brown's dad say ""bring it on!"" https://t.co/qcOlWB09Mr Intense debate surrounds the events leading up to Brown's shooting two and a half years ago. Many Ferguson residents saw Brown's death as the unjust killing of a young black man at the hands of a white police officer.-The shooting sparked massive protests and violent clashes, which prompted a Department of Justice investigation. A grand jury declined to indict Wilson, and the DOJ cleared him of civil rights violations. But the DOJ report into Ferguson's police department revealed intense racial tensions between the department's mostly white cops and the town's mostly black residents. Black residents were commonly treated more harshly than white ones by law enforcement. Share this slide: How will Trump's first 100 days impact you? Learn more", -2257,2017/3/13,http://www.huffingtonpost.com/2017/03/13/kid-rock-blasts-grills_n_15346374.html,Kid Rock Blasts China-Made BBQ Grills Because 'Murica,He really gets up in their grill.,"Kid Rock, the Donald Trump-supporting rocker, is throwing out red meat to his base ""?and a grill to cook it on. The musician has just released a line of grills called-""American Badass,""he name of one of his songs.-Rock said the grills are 100-percent American-made, and are his way of helping bring back manufacturing jobs to the U.S. Rock is using viral videos to promote his Badass Grills to Second Amendment enthusiasts as the heavy metal-rap equivalent of the George Foreman Grill.- One video shows a woman using a catapult machine to fling a grill into the air, where Rock ""?maybe ""?blasts it with a shotgun. There's no guarantee he's the actual triggerman, since there's an edit between his shot and the explosion of the grill. The name of the grill isn""t shown. The other video shows Rock shooting a supposedly Chinese-made grill with a .50-caliber bullet. Again, there's an explosion, but it's not clear whether Rock is responsible.- As Billboard.com points out, this isn""t Rock's only product endorsement. He also is selling ""God, Guns & Trump""?shirts and ""Take America Badass Again""?baseball caps. As important as it is to support American industry, Rock's approach toward China-made products is a reminder there's been an alarming uptick in hate crimes against Asian Americans-and other minorities since Trump was elected. Still, Rock's products may help him raise his profile if he chooses to run for a Senate seat in his home state of Michigan, as has been rumored by Fox News. THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2258,2017/3/13,http://www.huffingtonpost.com/chris-weigant/everyone-will-be-covered-except-for-24-million_b_15349026.html,Everyone Will Be Covered (Except For 24 Million),The number of uninsured Americans will skyrocket from the current 27 million to over 50 million.,"Today was the first reality-check for the Republican goal of health insurance reform since the Patient Protection and Affordable Care Act was passed. The breathtaking numbers from the Congressional Budget Office just proved what many of us have been saying all along ""?this is the first time in the past seven years that Republicans have tried to bring an actual piece of legislation to the floors of Congress for a very good reason. The numbers just don""t quite add up the way the GOP has long wished they would. By never writing an actual bill before now, they avoided letting the public in on this crucial bit of information. But now it was ""put up or shut up""?time, so Republicans were forced to come up with an actual bill. And the C.B.O. just confirmed what Democrats have been saying for a long time ""?replacing Obamacare is going to throw millions of Americans off health insurance. Donald Trump's insistence that ""everyone will be covered""?has now been proven to be a gigantic lie. Everyone will be covered, except for the 24 million who will lose coverage in the next ten years (starting with 14 million who will lose it next year alone). The number of uninsured Americans will skyrocket from the current 27 million to over 50 million. This won""t be because (according to Paul Ryan) they never really wanted health insurance in the first place and would now use their expanded ""Hreedom""?to refuse to pay for it ""?it will instead be because tens of millions of people will not be able to afford insurance. This was always going to be the reality under a Republican revamp of Obamacare, but now that the C.B.O. has finally been given a chance to run numbers on an actual bill, we can all see just how drastic this is going to be for millions of American families. Last week, while Paul Ryan was attempting to hustle the bill as far as he could as fast as he could (even holding votes on it at 4:30 A.M.), independent analysts were already predicting that millions would lose their insurance. These estimates ranged from a low of about six or seven million up to 15 million. What we now know is that they were actually far too generous in their assumptions. The 24 million figure is so staggeringly larger than anyone expected that it will instantly change the political debate. Even before the C.B.O. numbers came out, there were few Republicans (outside of the White House and Paul Ryan's office) who were vocally supporting the bill in public. How many of them are now going to make the case that 24 million more uninsured Americans is a good thing? As is true for many issues, Donald Trump wasn""t outside the Republican mainstream in his comments on how wonderful GOP health insurance reform would look like. He may have been more direct, but the things he was saying were pretty close to what Republicans had been saying for a long time ""?that their Obamacare replacement would cover more people, bring everyone's costs down, and give better results at the end of the day. Trump just put the icing on that cake, he didn""t bake it himself, in other words. Trump, of course, had no actual plan himself, even while loudly insisting that he did. He felt free to expound on how big and beautiful his non-existent plan was going to be, because he intrinsically trusts his own brain to solve any problem no matter how intractable. Turns out he was not only fooling the voters, he was also fooling himself. He even admitted so about a week ago, complaining that health reform was a lot harder than anyone could have ever guessed. ""Anyone""?except, you know, for pretty much every person inside Congress, just to name 535. On the campaign trail, Trump was free to boast about the paradise he was going to create in the health insurance industry, and his voters lapped it up. But, tellingly, after he was sworn in as president, no Trumpcare plan appeared. He put off inquiries by moving the goalposts a bit, saying his beautiful reform plan would be announced the day his nominee to head the Health and Human Services department was confirmed by the Senate. This has now happened, but there is still no Trumpcare plan. When Paul Ryan finally unveiled his own plan, Trump quickly embraced it ""?but that is not the same thing as coming up with a plan on his own. Few, so far, have even noticed this contradiction. By tying his wagon to Ryan's plan, Trump (like the rest of the GOP) has been forced into defending reality, rather than just painting visual castles in the air. And the reality is (quite obviously) going to fall far short of Trump's promises. Democrats are already gleefully recycling all of Trump's grandiose promises into talking points of their own, and this could indeed continue all the way to the 2018 midterm elections. As well it should. It's too good a political opportunity to miss, really. All Democrats have to do is run a clip of Trump saying ""everyone will be covered""?next to the C.B.O. numbers. Or point out the many times Trump pledged not to touch Medicare and Medicaid, together with the reality of Ryan's plan to dismantle as much of Medicaid as he thinks he can get away with. Also buried in the C.B.O. numbers is the fact that the price of insurance is going to immediately head upward ""?15 to 20 percent more than under Obamacare. There's another easy ad for Democrats to make. Twenty-four million people is a lot, to state the obvious. It is such a large fraction of the American populace that few people will not personally know someone directly (and negatively) affected by Ryan's bill. This is what happens when you simultaneously allow insurers to charge a lot more money while drastically shrinking the subsidies available. It's pretty basic math, and it will even affect Trump voters disproportionately to the public at large. Ryan and any other Republicans who rally around his plan are going to have a tough sell in the weeks to come. They can try to discredit the C.B.O. report all they want, but while that might have worked if the number was a lot lower (say, six million), it's going to be pretty hard to convince anyone that 24 million uninsured Americans is just ""some sort of rounding error.""?Ironically, the only good news for Ryan out of the C.B.O. report is that he might now have an easier time convincing the Tea Partiers in his own ranks to vote for the bill. Their main argument has been that the bill is far too generous ""?it didn""t kick enough people off health insurance, in other words. With the staggering 24 million figure now out, perhaps some of them can now be convinced that the bill actually is Draconian enough for them to support. But it's certainly not going to help Ryan with the moderate Republicans (especially those in the Senate). Paul Ryan's initial scheme was to get the bill through both houses of Congress and on the president's desk so fast that public opinion wouldn""t have time to react. The original schedule Ryan wanted was to pass the bill before the next big congressional vacation period, when they all go home to get an earful from their constituents. This aggressive schedule was never very realistic, but now it looks downright fantastical. Which means we'll have time for some town hall outrage, in the meantime. Because my guess is that a fair portion of the 24 million people who will be affected are going to speak up to their congressional representatives, quite loudly and unequivocally. Which was precisely what Ryan was trying to avoid. The problem all along has been that castles in the air are a lot easier to defend out on the campaign trail, but when actual bills are drawn up they get scored by the C.B.O. Now we can all see precisely what Ryan (and all the rest of the Republicans) have been trying to hide for the past seven years ""?they are truly on a mission to throw tens of millions of people off their health insurance. Obamacare so offends their ideological concept of the world that they simply don""t care if 24 million Americans again face bankruptcy whenever they get sick. No wonder they haven""t written an actual bill before now, because now everyone can see exactly what they stand for ""?and it's not a pretty picture. - Chris Weigant blogs at: Follow Chris on Twitter: @ChrisWeigant - Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2259,2017/3/14,http://www.bbc.co.uk/news/uk-politics-39262081,Brexit bill: Parliament clears way for talks with EU,"Parliament has passed the Brexit bill, paving the way for the government to trigger Article 50 so the UK can leave the European Union.","Parliament has passed the Brexit bill, paving the way for the government to trigger Article 50 so the UK can leave the European Union. Peers backed down over the issues of EU residency rights and a meaningful vote on the final Brexit deal after their objections were overturned by MPs. The bill is expected to receive Royal Assent and become law on Tuesday. This means Theresa May is free to push the button on withdrawal talks - now expected in the last week of March. The result came as Scotland's First Minister Nicola Sturgeon announced that she intended to hold a second referendum on Scottish independence at a time when Brexit negotiations are expected to be reaching a conclusion. Ms Sturgeon said she wanted a vote to be held between autumn 2018 and spring 2019 - but there is speculation that Mrs May will reject the idea of the referendum being held before the Brexit process is completed. That Brexit process is set to take two years from when Mrs May invokes Article 50, which formally gives the EU notice of the UK's intention to leave. Brexit Secretary David Davis said. ""We are now on the threshold of the most important negotiation for our country in a generation."" The EU Withdrawal Bill was passed unamended late on Monday after peers voted by 274 votes to 118 not to challenge the Commons again over the issue of whether Parliament should have a veto on the terms of exit. The House of Lords also agreed not to reinsert guarantees over the status of EU residents in the UK into the bill, with the government winning the vote by a margin of 274 votes to 135. Later analysis of the division list for the first Lords vote on EU citizens' rights to remain in the UK showed that 25 Labour peers sided with the Lib Dems, including former cabinet minister Lord Mandelson. Earlier, the government had comfortably won votes on the issues in the Commons, with only a handful of Tory MPs rebelling. The votes came after Brexit minister Lord Bridges of Headley warned that now was not the time to ""return to the fray"" by inserting ""terms and conditions"" in the legislation. Labour's spokeswoman Baroness Hayter of Kentish Town attacked the Lib Dems for not being responsible and ""falsely raising"" people's hopes on the rights of EU citizens living in the UK. Liberal Democrat Lord Oates said the government had failed to make concessions over the position of EU nationals living in the UK and called on peers to insist on changes. Brexit campaigners welcomed the ""clear mandate"" given to the UK government ahead of the start of official negotiations. ""Now, it's time to go into these negotiations with some ambition and support the government, so it can secure the very best deal - one that is good for the whole UK, and good for the EU too,"" said Tory MP and former minister Dominic Raab. Labour leader Jeremy Corbyn said the rejection of the Lords amendments was ""deeply disappointing"" but insisted the opposition would continue to press for the rights of EU nationals to be prioritised and for the maximum parliamentary oversight of the process. He tweeted: ""Labour at every stage will challenge govt plans for a bargain basement Brexit with our alternative that puts jobs & living standards first."" Are you an EU national living in the UK? What is your reaction? Share your views and experiences by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -2260,2017/3/14,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39263613,Scottish independence: Theresa May 'should not block referendum',"Theresa May should not try to block First Minister Nicola Sturgeon's plans for a second independence referendum, the Scottish National Party has warned.","Theresa May should not try to block First Minister Nicola Sturgeon's plans for a second independence referendum, the Scottish National Party has warned. Deputy leader Angus Robertson said he did not want to ""sit in the back of the Tory Brexit bus... and see the prime minister drive us off a Brexit cliff"". Mrs May has so far not said whether she would give permission for a vote. But there has been speculation she will delay Ms Sturgeon's timetable until after the Brexit process is complete. Ms Sturgeon said on Monday that she wanted a referendum to be held between the autumn of 2018 and the spring of the following year - and has called for Holyrood to be given the power to decide the exact date. The BBC's Scotland editor, Sarah Smith, said the prime minister could refuse to allow another vote on independence before Brexit is completed in two years' time. That would allow the UK government to avoid having to fight on two fronts by negotiating a deal with the EU in the midst of an intense independence referendum campaign. Formal negotiations over the timing of any referendum will not begin until after a vote in the Scottish Parliament that is scheduled for next Tuesday, which will ask the UK government to grant a Section 30 order. The order is needed for the result of the referendum to be legally binding. The minority SNP government is expected to win the vote with the support of the pro-independence Scottish Greens. Two important questions arise from Nicola Sturgeon's announcement that she will seek a second independence referendum. First, do voters in Scotland want a second referendum? And second, how might they vote if an independence referendum were to be held any time soon? During recent months a number of polls have asked people in a variety of different ways whether there should be a second independence referendum within the next couple of years. They have all obtained much the same answer. Around a half say there should not be, while between a third and two-fifths say there should. Read more from Prof Curtice Mr Robertson told the BBC's Newsnight programme that the SNP was democratically elected on a mandate to hold a referendum in the event of the UK leaving the EU against Scotland's wishes. He added: ""I just cannot see how a democratically elected UK government will say to a democratically elected Scottish government which was elected on a mandate to hold a referendum, 'one's not going to allow a democratic vote'. He added: ""We have two options. One is to sit in the back of the Tory Brexit bus, shut up, say nothing, and see the prime minister drive us off a Brexit cliff. ""Or we have the opportunity of the people of Scotland having the power in their hands in a referendum about our country's future."" The UK Parliament passed the Brexit bill on Monday evening, paving the way for the government to trigger Article 50, which will begin the formal process of leaving the European Union. The bill is expected to receive Royal Assent and become law on Tuesday, which leave Mrs May free to push the button on withdrawal talks - now expected in the last week of March.", -2261,2017/3/14,http://www.bbc.co.uk/news/world-europe-39264845,"EU workplace headscarf ban is legal, says ECJ","Employers are entitled to ban workers from the ""visible wearing of any political, philosophical or religious sign"" including headscarves, Europe's top court has ruled.","Employers are entitled to ban workers from the ""visible wearing of any political, philosophical or religious sign"" including headscarves, Europe's top court has ruled. But the ban must be based on internal company rules requiring all employees to ""dress neutrally"", said the European Court of Justice (ECJ). It cannot be based on the wishes of a customer, it said. It is the court's first decision on the issue of Islamic headscarves at work. The ECJ's ruling was prompted by the case of a receptionist fired for wearing a headscarf to work at the company G4S in Belgium. Belgium's court of cassation had referred the case to the EU's top court for clarification. Samira Achbita was fired when after three years of employment, she began wearing a headscarf to work. She claimed she was being discriminated against on the grounds of her religion. But the company had amended workplace regulations to forbid employees ""from wearing any visible signs of their political, philosophical or religious beliefs and/or from engaging in any observance of such beliefs"", the court explained in its ruling. That covered ""any manifestation of such beliefs without distinction"", and was therefore not discriminatory, it said. It said ""an employer's desire to project an image of neutrality towards both its public and private sector customers is legitimate"" - but national courts must make sure this policy of neutrality had been applied equally to all employees. It said the Belgian court ruling on the case must also ascertain whether it could have been possible to offer Ms Achbita another post not involving visual contact with customers. Does this ban affect you? Email us at haveyoursay@bbc.co.uk And share your pictures and video with us at yourpics@bbc.co.uk You can also contact us in the following ways:", -2262,2017/3/14,http://www.bbc.co.uk/news/business-39264769,Bank of England deputy Charlotte Hogg resigns her post,"Charlotte Hogg, who was about to become the Bank of England's deputy governor for markets and banking, has resigned from the Bank after failing to disclose her family connections.","Charlotte Hogg, who was about to become the Bank of England's deputy governor for markets and banking, has resigned from the Bank after failing to disclose her family connections. She had worked for the bank for several years without mentioning this. While being approved for the job by MPs she told them her brother had a senior role at Barclays. The Bank's code of conduct, which she helped to draw up, states employees must declare such connections. MPs on the Treasury Committee said she ""fell short of the very high standards"" required. The Committee said it had ""set aside"" its approval of Ms Hogg's appointment. Minutes after the MPs' report was released the Bank announced her resignation. Bank Governor Mark Carney said: ""While I fully respect her decision taken in accordance with her view of what was the best for this institution, I deeply regret that Charlotte Hogg has chosen to resign from the Bank of England."" In her resignation letter, Ms Hogg said she was very sorry for not declaring her brother's role. ""It was an honest mistake: I have made no secret of my brother's job - indeed it was I who informed the Treasury Select Committee of it, before my hearing. ""But I fully accept it was a mistake, made worse by the fact that my involvement in drafting the policy made it incumbent on me to get all my own declarations absolutely right. I also, in the course of a long hearing, unintentionally misled the committee as to whether I had filed my brother's job on the correct forms at the Bank. I would like to repeat my apologies for that, and to make clear that the responsibility for all those errors is mine alone.""", -2263,2017/3/14,http://www.bbc.co.uk/news/uk-39258076,Prison smuggler: 'I brought mobile phones in for criminals',"Drones are seen as an increasingly popular method for smuggling drugs and mobile phones into prisons, but having prison staff bring in contraband is also an effective route for prisoners.","Drones are seen as an increasingly popular method for smuggling drugs and mobile phones into prisons, but having prison staff bring in contraband is also an effective route for prisoners. A conversation with a prison inmate about football led James Almond to break the law himself. The then prison worker was chatting about his favourite team Manchester United, when the prisoner he was speaking to suddenly asked him to bring in mobile phones, which are banned behind bars. ""He kept asking daily, and become aggressive with things he'd say,"" Almond says. This was in 2014 when he was employed at Stocken Prison in Rutland. The 33-year-old eventually agreed to bring phones in, and did so for a number of weeks before being caught, ending up in jail himself. He's now telling his story so others can understand the pressure he came under from the prisoner and how unprepared he was for dealing with it. His case highlights the problem of staff corruption in prisons in England and Wales, a problem some believe is being swept under the carpet. While there's broad agreement that the vast majority of prison staff conduct themselves with integrity and professionalism, a small number act corruptly - and their actions can have a disproportionate effect on stability and safety. One well-informed source with extensive knowledge of the prison system told BBC Radio 4's File on 4 there was a working assumption that between three and five staff in every jail were corrupt, which equates to around 600 across England and Wales. Out of some 33,000 prison officers and staff that's still a minority, but a not insignificant one. Mobile phones in prisons: Why are they still there? What is going wrong with the prison system? James Almond never expected to be in that minority when he started working at HMP Stocken, which holds around 670 male offenders, many serving sentences for violence. But his job as an operational support grade worker escorting building contractors in the prison developed. Before long he was out of his depth - having daily contact with prisoners, a role for which he claims he'd had no training. ""I did feel fairly vulnerable in the role, especially because at the time I was suffering heavily with depression after my father passed away. ""And that is the kind of thing these prisoners pick up on quite easily,"" he says. One particularly manipulative inmate, with whom Almond had begun discussing football, took advantage - threatening to harm his young relatives if he didn't comply. ""He really scared me with those threats, especially when he said 'I know about your niece and nephew'. ""This gentleman was in prison for armed robbery. I didn't know what he was capable of."" The demands and threats wore Almond down and eventually he agreed to bring in a phone. Mobiles are a valuable commodity, because they enable prisoners to keep in touch with their family and contact criminals on the outside - and calls are not monitored like the prison pay phones are. Almond took part in four smuggling missions, collecting a package in a carrier bag from a stranger in a car park, slipping the parcel into his gym bag, then walking through the gates at Stocken. ""I was trying to just play it nice and cool,"" he says. He says he never looked inside the packages, but it's thought they may also have contained drugs such as the potent synthetic cannabis substitute, Spice. ""It was a calculated risk that wasn't the day they decided... to do a staff search,"" he says, claiming he was never searched during his six months working there. He received ?500 for each parcel, double his weekly take-home pay, and acknowledges that as well as acting out of fear of the prisoner, the money was also ""an incentive"". John Podmore, who spent 25 years in the prison service - including a stint as head of the anti-corruption unit - believes low pay and a lack of adequate training are two key factors driving staff to bring in contraband. He says corruption is an ""inconvenient truth"" which has far more of an impact than the well-publicised problem of drones, which deliver packages to prison cell windows or drop them inside perimeter walls. ""One prison officer bringing in one coffee jar full of Spice or cannabis can keep that jail going for a very long period of time and make an awful lot of money,"" he says. ""There is a disproportionate effect by this small minority of staff and that's what needs to be understood."" Reporting undercover from the prison front line Officer at Maghaberry Prison injured in attack A number of former prisoners I spoke to agreed that while drugs and phones are thrown over walls, brought in by visitors or sent through the post, corruption is a major source as well. One man knew of a prison officer who brought in drugs in empty tubs of Pringles crisps. Another former inmate said staff had taken parcels directly from the post room to a prisoner without them being scanned. And several ex-prisoners said some officers turned a ""blind eye"" to drug-dealing and drug-taking. ""If you're doing a very, very long time and you're not going nowhere, it would be prudent to just leave you alone, and that's the kind of stance they took for a long while,"" says Leroy Smith. He spent the best part of two decades in prison for the attempted murder of two policemen in 1994. ""The doors would be left open and everything was relaxed and people would just do whatever they wished within reason inside the jail."" Smith, who was eventually released in 2014 and has now written a book about his experiences, says corrupt staff didn't bring in drugs often, but when they did it had a profound effect. ""In five years you might have three times when it happens, but when it happens it's big because the whole place is saturated because it is just continuous - everyday they are just bringing it and bringing it and bringing it,"" he says. The Ministry of Justice, which is responsible for prisons in England and Wales, says it remains ""vigilant"" to the threat posed by corruption and takes ""swift action"" against those involved. The department is investing ?3m in a new intelligence unit, developing a corruption strategy and considering introducing a prison-specific offence of corruption. Jerry Petherick, one of the country's most experienced prison managers who worked in the public sector for 23 years before joining the private company G4S more than a decade ago, says they do their ""damnedest"" to catch corrupt staff. He once sparked an investigation after spotting an expensive car parked outside a prison - it belonged to a member of staff, who turned out to be corrupt. ""It may seem strange for me to say that we actually celebrate those successes,"" says Mr Petherick, who believes the publicity acts as a deterrent. ""The vast majority of staff do not want to be associated with, do not want to work alongside corrupt members of staff because it puts their safety at risk,"" he says. Almond accepts that his actions could have put staff at Stocken Prison at risk. He was given a 12-month jail sentence for bringing in the phones. After being released early, probation staff helped him find a new job, in a factory. Almond says the Prison Service should improve training for staff so they're better able to handle manipulative prisoners, but accepts he must take most of the blame for what he did, and it could have been much worse. ""It did occur to me that this was enabling the prisoner... to carry on with their, maybe, drug enterprises on the outside, getting drugs into the prison, and being able to organise a riot or things like that,"" says Almond. ""It could have resulted in injuries to a lot of staff."" File on 4 is broadcast on BBC Radio 4 at 20:00 GMT on Tuesday 14 March and 17:00 GMT on Sunday 19 March.", -2264,2017/3/14,http://www.bbc.co.uk/sport/cycling/39265637,Joanna Rowsell Shand: Double Olympic gold medallist retires,"Rowsell Shand (left) won gold in the team pursuit in Rio alongside Elinor Barker, Laura Kenny and Katie Archibald","Share this with Britain's double Olympic gold medallist Joanna Rowsell Shand has announced her retirement from international cycling. The 28-year-old track cyclist won gold in the team pursuit at London 2012 and Rio 2016. In a career spanning 10 years, Rowsell Shand was a five-time world and four-time European champion. ""The decision to step away has been the hardest I've ever had to make,"" she said. ""I believe I have more to offer the world."" Rowsell Shand, who also won Commonwealth Gold in 2014 in the individual pursuit, says she will now focus on a coaching career and will be taking part in the L'Etape du Tour in July, an amateur race which covers the same route as one stage of the Tour de France. This content will not work on your device, please check Javascript and cookies are enabled or update your browser British Cycling tweeted: ""One of the best there has ever been"". Rowsell Shand began competitive cycling aged 16, having been talent spotted by the British Cycling Apprentice Programme. After success in the junior ranks she won her first world title in 2008 in the team pursuit and successfully defended the title a year later. A third world title came in 2012 before she won Olympic gold in London, alongside Dani King and Laura Kenny. She was made an MBE in the 2013 New Year Honours for services to cycling. Commonwealth gold, a fourth team world title and a first individual pursuit rainbow jersey, crowned a successful 2014 and two years later she completed the Olympic double in the Rio Velodrome, alongside Kenny, Katie Archibald and Elinor Barker. Over two Olympic Games she was part of a team that broke the world record on all six of its rides. This content will not work on your device, please check Javascript and cookies are enabled or update your browser British Cycling's chairman Jonathan Browning said: ""As only one of a few women in Great Britain who has two Olympic gold medals to her name, Joanna can be extremely proud of what she has achieved. ""It's not only her on-bike achievements which have made Joanna an asset to British Cycling, it's also what she's done for the sport off the bike, epitomising the role of an ambassador and encouraging so many women and children to take up our sport of cycling."" Former team-mate Dani King on Twitter: Congratulations to @JoRowsellShand on such an incredible career. Thank you for making mine a more enjoyable one. Seven-time Paralympic gold medallist Jody Cundy on Twitter: Amazing career, from one of the nicest riders you'll ever meet. Good luck with all the future brings. British track cyclist Andy Tennant""?on Twitter: Congrats to @JoRowsellShand on her retirement. One of the all time greats and a fantastic role model and person, I wish her all the best. Share this with Rob Hatch and guests Richard Moore and Rochelle Gilmore give their reaction to the latest news on the investigations into British Cycling. Road, track, BMX, mountain and many more. There are so many reasons to Get Inspired and start cycling. Catch up with BBC Radio 5 live's cycling podcast and watch their iPlayer specials Got a big cycling race coming up? Make sure you make the most of your warm up with this 20-minute guide. This week's sport on the BBC includes the conclusion of the Six Nations, Champions League football and horse racing from Cheltenham. Troy gives the lowdown on the Watford dressing room Run by the BBC and partners Steel City Striders Running Club Tuesday Soft Play Session For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -2265,2017/3/14,http://www.bbc.co.uk/news/uk-england-manchester-39258689,David Lytton: Inquest to probe Saddleworth Moor mystery death,The death of a man whose body was found in mysterious circumstances on Saddleworth Moor will be examined at an inquest later.,"The death of a man whose body was found in mysterious circumstances on Saddleworth Moor will be examined at an inquest later. David Lytton, 67, from London, was discovered at Dove Stone Reservoir in Greater Manchester on 12 December 2015. It took police more than a year to establish his identity and a ""provisional"" cause of death was given as ""strychnine poisoning"". A full inquest is scheduled to begin at Heywood Coroner's Court at 14:00 GMT. The death sparked worldwide interest as a police investigation was launched to identify the body of the man, first nicknamed Neil Dovestones by mortuary workers at Royal Oldham Hospital. It was discovered Mr Lytton had lived in Pakistan for 10 years and had flown to London Heathrow, two days before his body was found. He had no wallet, phone or documents and was identified from photos from a passenger list and picked up on CCTV in London. His identity was eventually confirmed as a result of a DNA match with a relative in January. It later emerged he had changed his name from David Lautenberg, the name he was born with in 1948. Police believe he took his own life. Det Sgt John Coleman described the case as ""unlike anything I have ever known"" in 20 years as a police officer. Speaking after Mr Lytton's identity was finally established, he said: ""Possibly the biggest question still remains, which is why a man with no obvious connection to Saddleworth chose to head there after returning from Pakistan."" The mystery gave rise to a number of theories about Mr Lytton's death, which were later discounted. There was speculation he could have been making a final journey to the site of a plane crash in 1949 which killed his family, while a man from Northern Ireland contacted police to say he could be missing Hugh Toner, from Newry, who disappeared in 1994.", -2266,2017/3/14,http://www.bbc.co.uk/news/world-asia-39253143,Anger over UK ship's damage to pristine reef,"Two weeks ago, a British cruise ship accidentally ran aground in one of Indonesia's most pristine coral reefs, causing extensive damage. For local people, who rely on dive tourism, it is a sad and worrying time.","Two weeks ago, a British cruise ship accidentally ran aground in one of Indonesia's most pristine coral reefs, causing extensive damage. For local people, who rely on dive tourism, it is a sad and worrying time. ""I was born here, I was in tears when I saw this damage,"" said Ruben Sauyai. ""The damage is huge and acute. It could take 10 to 100 years to repair it."" A professional diving instructor, Mr Sauyai, 30, runs a home stay and dive centre on Raja Ampat, a remote and idyllic island chain in the west of Indonesia's Papua province. ""Some people work as fishermen or farmers, but mostly we work in the tourism sector,"" said Mr Sauyai, who started up his dive centre six years ago. Tens of thousands of people have been to visit the underwater beauty of the area in recent years. But on 4 March, the 4,290-tonne Caledonian Sky, owned by British company Noble Caledonia, was completing a bird-watching tourism trip on Waigeo Island when it veered slightly off course. It ran aground during low tide, smashing through the coral reefs. An early official evaluation last week said the incident had damaged approximately 1,600 sq m of coral in one of the world's most beautiful reefs. Videos recorded by various divers show that the reefs had been eroded by the hull, leaving large bleached scratches. It was an ""unfortunate"" incident, said Noble Caledonia, adding that they were ""firmly committed to protection of the environment"" and fully backed an investigation. Ricardo Tapilatu, head of the Research Center for Pacific Marine Resources at the University of Papua is part of the official evaluation team. He said the ship had been caught in low tide despite being equipped with GPS and radar instruments. ""A tugboat from Sorong city was deployed to help refloat the cruise ship, which is something that shouldn't have happened because it damaged the reef even more,"" Mr Tapilatu told environmental news site Mongabay. ""They should have waited for high tide"" to refloat the vessel. He believes that given the area's reputation - and the fact that it's a national park - the company should pay $1.28m-$1.92m in compensation. The incident has not only angered local people but also social media users in Indonesia. ""This is unacceptable! Do they know how long it takes for corals to form? Have you seen the damage?"" said one Facebook user, Feby Riani. ""This is Raja Ampat... one of the world's most beautiful coral reefs!"" An online petition has been launched demanding that Noble Caledonia doesn't just give financial compensation but is also present to repair the destruction. The ship has since been refloated and the company said that based on the inspection ""the hull was undamaged and remained intact"". The ship itself ""did not take on water, nor was any pollution reported as a result of the grounding"", said the company. But Laura Resti, from Raja Ampat's homestay association, said they were really saddened. ""Coral reefs are the main thing that attracts many tourists here. It is counterproductive for our tourism prospects."" Mr Sauyai said he has avoided taking tourists to that particular spot since the incident because most of the natural life there had ""gone"". ""We have tried to conserve those coral reefs for a long time, and just within few hours they were gone. ""I am so sad and feel ashamed to take tourists there.""", -2267,2017/3/14,http://www.bbc.co.uk/news/world-europe-39264536,Turkey slams EU officials in row over Netherlands campaigning,The Turkish foreign ministry has rejected a call by top EU officials to show restraint in a row with the Netherlands over political campaigning.,"The Turkish foreign ministry has rejected a call by top EU officials to show restraint in a row with the Netherlands over political campaigning. It described as ""worthless"" an appeal by EU foreign policy chief Federica Mogherini and EU Enlargement Commissioner Johannes Hahn. The row erupted after the Dutch barred Turkish ministers from campaigning among expatriates for a referendum. The referendum would controversially boost the Turkish president's powers. In response to the Dutch move, Turkey barred the Dutch ambassador from returning to Ankara and suspended high-level political talks, while Turkish President Recep Tayyip Erdogan accused the Dutch of using Nazi tactics. The Dutch government cited ""risks to public order and security"" as reasons for blocking the Turkish rallies, which have also been prevented in fellow EU states Germany and Austria, but not France. Voters in the Netherlands go to the polls on Wednesday for a general election dominated by concerns about immigration and Islamic radicalism. Relations between the EU and Turkey, a predominantly Muslim country regarded as crucial to tackling Europe's migrant crisis, have been long been strained. Turkey's foreign ministry said it was ""grave"" of the EU to stand by the Netherlands. On Monday, Ms Mogherini and Mr Hahn had called on Turkey to ""refrain from excessive statements and actions that risk further exacerbating the situation"". German Chancellor Angela Merkel had also rallied to the Netherlands, condemning the Nazi analogies made by Mr Erdogan as ""completely misguided"". The Dutch foreign ministry has urged citizens in Turkey to take care. However, responding to the diplomatic sanctions announced by Turkey, Dutch Prime Minister Mark Rutte said they were ""not too bad"". Rallies were called to encourage Turkey's large expatriate communities in the EU to vote Yes in a referendum on 16 April on expanding the president's powers. The plans were criticised by senior EU officials on Monday. Two Turkish ministers were barred from addressing crowds in the Dutch city of Rotterdam, with one of them escorted to the German border after entering the Netherlands by land. Police used dogs and water cannon against protesters waving Turkish flags in the city. Mr Erdogan likened the Netherlands to ""a banana republic"", demanded international organisations impose sanctions on the country and accused countries in the West of ""Islamophobia"". ""I have said that I had thought that Nazism was over, but I was wrong,"" he said. Turkish officials have also suggested reconsidering part of its deal with the EU to stem the flow of migrants, namely Turkey's efforts to prevent them crossing by land to Greece and Bulgaria. Mr Rutte said Mr Erdogan's comment that the Dutch were ""Nazi remnants"" was ""unacceptable"", and demanded an apology. Responding to Turkish calls for sanctions, he said the Netherlands would ""never negotiate under threat"". The Netherlands was invaded by Nazi Germany in 1940 and occupied right up until the final days of World War Two in Europe, in May 1945. Rotterdam was devastated by German bombing during the invasion.", -2268,2017/3/14,http://www.bbc.co.uk/news/uk-northern-ireland-39264233,One found in rescue helicopter hunt,One of four crew members from a missing coastguard helicopter has been rescued off the west coast of the Republic of Ireland.,"One of four crew members from a missing coastguard helicopter has been rescued off the west coast of the Republic of Ireland. The crew member is understood to be in a critical condition. Those on board lost contact at about 01:00 local time on Tuesday. Debris has been spotted in the water and a search by two RNLI lifeboats, two Irish Coast Guard helicopters and several local fishing boats is focusing north of Achill Island in County Mayo. The aircraft was providing cover for another coastguard helicopter on a mission when contact was lost. Irish Coast Guard chief Eugene Clonan told RT? that hopes of finding the remaining crew were ""fading fast"". ""It's a dark day for the emergency services in Ireland, we recovered one person this morning in the search and we don't hold out too much hope for that person,"" said Mr Clonan. ""As the day moves on, hopes are fading that we will find the rest of the crew."" The Irish coastguard's Sligo-based helicopter had been responding to a distress call from a crewman in need of medical attention on a UK fishing vessel. A second coastguard helicopter from Dublin, R116, had been assisting in the operation, about 150km west of Eagle Island, when it went missing. Conditions were described as good when the helicopter - crewed by two pilots, a winch man and a winch operator - lost contact on its final approach to a refuelling depot. Declan Geoghegan from the Irish Coast Guard said the accident had hit the ""rescue family"" hard. ""The Shannon-based helicopter spotted some debris in the water and the latest we have is that one crew member has been recovered in a critical condition,"" Mr Geoghegan told BBC Radio Foyle. ""We don't know what happened and obviously there will be an air accident investigation into it. ""We'll continue to search for the missing crew members until such time as we have recovered them and the flight recorder."" The Irish Minister for Transport, Tourism and Sport expressed concern for the missing crew and their families. ""As the search for the Dublin-based helicopter R116 is currently under way I would like to express my sincere support and sympathies for all those involved,"" said Shane Ross. The search operation is being lead by the Coast Guard Rescue Coordination Centre in Malin Head, County Donegal.", -2269,2017/3/14,http://tass.com/politics/935372,"Kremlin has no information on alleged Russian forces""?deployment in Egypt",The Reuters news agency reported earlier that Russia appeared to have deployed a 22-member special forces unit to an airbase at Sidi Barrani in western Egypt,"MOSCOW, March 14. /TASS./. The Kremlin has no information on the alleged deployment of Russian forces and unmanned aerial vehicles in Egypt near the border with Libya, Kremlin spokesman Dmitry Peskov said on Tuesday. ""We do not have such information,"" the Kremlin spokesman said, commenting on a Reuters report. The news agency Reuters reported earlier, citing diplomatic sources that Russia appeared to have deployed a 22-member special forces unit to an airbase at Sidi Barrani in western Egypt near the border with Libya. The agency's sources also claimed that Russia had used another Egyptian base farther east in Marsa Matrouh in early February. Russia's Defense Ministry has rejected this information as untrue.", -2270,2017/3/14,http://tass.com/politics/935365,Lavrov says reasons for opposition's non-participation in Astana talks unconvincing,,"MOSCOW, March 14. /TASS/. The reasons for the Syrian armed opposition's non-participation in the current Astana meeting are not convincing, Russian Foreign Minister Sergey Lavrov said on Tuesday. ""We have been assessing the latest news together with the Defense Ministry. We believe that the reasons preventing the armed opposition from taking part in the new Astana meeting, that were mentioned in the media, are not convincing,"" the top diplomat said. ", -2271,2017/3/14,http://tass.com/politics/935368,Security chief warns foreign intelligence stepping up efforts to destabilize Russia,"""The situation is exacerbated by increasing migration, especially illegal immigration from unstable countries in the Middle East,"" the Security Council chief says","ASTRAKHAN, March 14. /TASS/. Foreign intelligence agencies have been taking active steps to destabilize the social and political situation in Russia, Security Council Secretary Nikolai Patrushev said on Tuesday. ""Foreign intelligence has stepped up subversive activity with the goal of destabilizing the social and political environment in Russia,"" Patrushev said at a meeting held in the southern Russian city of Astrakhan. The Security Council chief recalled that Ukraine's authorities had declared that they had carried out the acts of sabotage. ""The situation (in the Southern Federal) District is characterized by an increased level of terrorist and extremist threats,"" the official highlighted. Radical nationalist and religious groups pose a major threat as do extremist manifestations over the Internet, in addition to growing xenophobia among young people, Patrushev noted. ""The situation is exacerbated by increasing migration, especially illegal immigration from unstable countries in the Middle East,"" he noted. ""It is possible that the citizens of the region, who fought on the side of illegal armed groups in Syria, may return to the country."".", -2272,2017/3/14,http://tass.com/pressreview/935326,Press review: Syrian opposition skips Astana and Gazprom yields to EU antitrust demands,"Top stories in the Russian press on Tuesday, March 14","- Moscow and Ankara will soon set up a joint group for monitoring the movement of forces in Syria. The deal was hammered out during the latest round of talks between Vladimir Putin and Recep Tayyip Erdogan in Moscow last week, a military and diplomatic source told Izvestia on Tuesday. The group's major goal is to prevent any unwelcome incidents between the Russian and Turkish militaries and also clashes between their allies. Experts told the paper that this technique is in high demand now as there is an extremely ""explosive situation"" in northern Syria. Vladimir Avatkov, Director of the Center of the Oriental Studies, told Izvestia: ""We may hope that the presence of our military in the area of Manbij will cool down Ankara, but under the current circumstances this is not a guarantee."" ""The Turks understand that their actions whip up the discontent of Russia and the United States, but domestic political circumstances and the leadership's ambitions force Ankara to take the risk,"" he explained. The expert also said the incidents involving the military are not ruled out as it is too early to believe that disputes between Russia and Turkey have been resolved. ""The meeting by the two presidents in Moscow did not ease tensions,"" Avatkov said. ""The Turks continue to stick to their guns, both on the economy and foreign policy. Russia is trying to create a new security architecture in the region based on the balance of interests as it supports everyone who is fighting against the Islamic State (terrorist group, outlawed in Russia), including the Kurds."" Kazakhstan's capital of Astana will be hosting the third round of Syrian peace talks scheduled for Tuesday, but the armed opposition has refused to take part in the dialogue, blaming the Syrian army for repeatedly violating the truce, Izvestia writes. Franz Klintsevich, First Deputy Chairman of Russia's Federation Council (upper house) Defense Committee, told the paper that the opposition's refusal to attend the talks jeopardizes the ceasefire but won""t put the Astana format of talks on the back burner. ""The platform will also work without the armed opposition. The absence of the opposition's delegation does not mean that it won""t attend the next rounds (of talks). We are ready to speak to and work with these people. The boycott of the negotiations does not measure up to the tasks on the Syrian settlement and ending the confrontation,"" the senator told Izvestia. Syrian military expert, retired Major General Muhammed Abbas, said the talks in Astana are important but the situation in Syria does not directly depend on them. ""We continually hold dialogue with constructive forces, which are indeed interested in the ceasefire and we have succeeded in this area,"" he said, adding that the opposition's refusal to come to Astana may signal that it is not seeking to stop bloodshed in Syria. The opposition is not withdrawing from the Astana talks and is only boycotting the third round. ""The format itself is stalled, but it has not ceased to exist,"" the retired general stressed. Meanwhile, Russia, Turkey, Iran, the official Damascus delegation along with UN representatives and some other organizations and countries have not called off the meeting. Commenting on this, the expert said, ""Many external actors and the Syrian authorities have a real interest in ending the fighting. They are ready to agree on this, with or without the opposition."" - Experts have determined that the pilot of the Russian Defense Ministry's Tu-154 aircraft which crashed into the Black Sea during its flight from Sochi to Syria, had attempted to land the aircraft on the water, according to Kommersant. Sources told the paper on Tuesday that the probe's technical stage into the late December 2016 crash has-been completed. Experts have come to the conclusion that the plane did not fall into the sea as had earlier been presumed. Sources told Kommersant that after take-off, the Tu-154 jet gained an altitude of around 250 meters and a speed of 360-370 kilometers per hour. After that commander Roman Volkov switched the plane into landing mode for an unexplained reason. During the next ten seconds, the aircraft descended under the pilot's control and then hit the water, breaking apart. According to one of theories, the reason for the pilot's ""strange behavior"" could have been ""disorientation in space."" Volkov apparently ignored the cockpit indications and relied on his physical feelings. Experts are now studying Volkov's medical history and the results of his psychological tests, Kommersant says. They are questioning the instructors and want to know if the crew had had enough rest before the flight. - The European Commission is satisfied with Gazprom's proposals sent in mid-February to change its market policy in Europe, Vedomosti writes, citing the regulator. The Russian gas giant agreed to lift all restrictions on its clients to resell gas to other EU countries and will also provide its infrastructure for reselling gas from Hungary, Poland and Slovakia to the Baltic states. Market participants will have seven weeks to assess and agree on the Russian energy major's offer. If Gazprom breaks its commitments, the European Commission may impose a fine of up to 10% of the company's turnover. Analyst at Raiffeisenbank, Andrei Polyschuk, welcomes Gazprom's decision explaining that the gas market is seriously changing towards free market pricing and abusing its privileged position could worsen relations with buyers and reduce revenues in the long term. New participants are entering the market and a more flexible approach will allow Gazprom to retain the market, he elaborated. Alexey Kokin, an analyst at Uralsib, expects that Gazprom's revenues from sales to Eastern Europe will drop slightly, but this won""t be critical. Gazprom understands that it cannot influence the flows of gas inside the European market. ""Earlier, when oil and gas prices were higher, the difference between the price in Germany and Poland was more significant, but once energy prices fell this scale was leveled out,"" Kokin said. - Lithuania's Medicinos Bankas, owned by one of the country's richest businessmen Saulius Karosas, could soon enter the Russian market, Kommersant writes, citing sources familiar with the organization's plans. The bank may start developing business in Russia by opening several offices in major cities, including in Moscow. Experts interviewed by the paper say this is the first time since the financial meltdown of 2008-2009, when a European bank has entered the Russian market. Over the past years, subsidiaries of Western banks have been selling or cutting back their Russian operations. Medicinos Bankas""?decision to come to Russia could be influenced by the situation on the domestic market, where foreign banks have a major share. Experts also say that the Lithuanian newcomer will find it difficult to develop business during the ""sluggish banking crisis in Russia."" Bain and Company partner, Yegor Grigorenko, said there are only two ways for a small foreign bank to successfully operate on the Russian market in the foreseeable future. ""The first is if the bank has rich Russian clients and opening a branch in Moscow will enable it to be closer to them and service them more quickly,"" he said. ""The second is if there is the need to service Lithuanian companies working in Russia."" Managing Director of Russia's National Rating Agency Pavel Samiyev sees no factors, which could become drivers for developing the Lithuanian bank's client base in Russia. ""There is no interest in Lithuania,"" he stated. - TASS is not responsible for the material quoted in the press review", -2273,2017/3/14,http://tass.com/politics/935359,Moldova's president favors strengthening ties with Russia,Moldovan President Igor Dodon thanked the Russian leadership for granting amnesty to some Moldovan citizens,"CHISINAU, March 14. /TASS/. Moldovan President Igor Dodon and Russian Deputy Foreign Minister, Grigory Karasin, have discussed ways of fostering partnership and strategic relations between the two countries. ""I have spoken out in favor of developing strategic relations and partnership between Moldova and Russia,"" Dodon wrote on his Facebook page on Tuesday following meeting in Chisinau, adding that he proposed to hold the Moldovan-Russian consultations on the issue. ""We exchanged view on the possibility of implementing such a partnership within the framework of the existing Treaty of Friendship and Cooperation between Russia and Moldova or the need to begin consultations on developing a new Treaty on strategic partnership between our two countries,"" the Moldovan president noted. Dodon thanked the Russian leadership for granting amnesty to some Moldovan citizens who violated the Russian migration legislation. He added that an agreement on the issue was reached at his meeting with Russian President Vladimir Putin on January 17.", -2274,2017/3/14,http://tass.com/politics/935357,Defense Ministry rejects media reports on Russian special forces in Egypt,"Western media outlets have been stirring up the public with such info leaks from anonymous sources for a while, Russia's Defense Ministry spokesman said","MOSCOW, March 14. /TASS/. There are no Russian special forces in Egypt, spokesman for Russia's Defense Ministry Igor Konashenkov said on Tuesday.- Reuters reported earlier, citing diplomatic sources that Russia appeared to have deployed a 22-member Russian special forces unit to an airbase at Sidi Barrani in western Egypt near the border with Libya. The agency's sources also claimed that Russia had used another Egyptian base farther east in Marsa Matrouh in early February. The Defense Ministry spokesman thus commented on media reports on the alleged deployment of Russian special forces in Egypt on the border with Libya. ""There are no Russian special operations units in Sidi Barrani [the Arab Republic of Egypt],"" the spokesman said. ""Western media outlets have been stirring up the public with such info leaks from anonymous sources for a while. Such ""Insights""?especially frequently visit anonymous sources in Ukraine and the Baltic states. And the words by Reuters about the US intelligence services, citing the same source saying that ""The US intelligence on Russian military activities is often complicated by its use of contractors or forces without uniforms""?look especially silly and indecent,"" the spokesman said. ", -2275,2017/3/14,http://tass.com/society/935354,Romanov descendants seek proper burial of last Russian emperor's children,The Romanov family descendants consider it their Christian duty to ensure the burial of the emperor's children,"PARIS, March 14. /TASS/. The Romanov family would like Crown Prince Alexei and Grand Duchess Maria, the children of the last Russian Emperor Nicholas II, to be honorably buried at the cathedral in St. Petersburg's Peter and Paul Fortress, alongside their parents and sisters, said Prince Rostislav Rostislavovich, the great-grandson of the emperor's sister, Ksenya. In an interview with TASS on the occasion of the centennial of the last Russian czar's abdication (March 15, 1917), Prince Rostislav noted that ""in different countries, monarchies came to an end in different ways, but in Russia the end was particularly tragic."" ""The shock that it caused made all of Russia suffer,"" he emphasized. After the February 1917 revolution, Nicholas II was sent into exile and was eventually executed in the city of Yekaterinburg together with his family. According to Prince Rostislav, the UK ""could not foresee the consequences"" when it refused to provide refuge to the Russian emperor. He added that Nicholas II ""would have never left Russia."" However, a number of the emperor's relatives managed to avoid execution and moved to other countries to start a new life there. ""But they were not able to return to their homeland and were forced to remain abroad all their lives,"" the prince stressed. Life of last Russian royal family in pictures The Romanov family descendants consider it their Christian duty to ensure the burial of the emperor's children, whose remains were found near Yekaterinburg in 2007, thus paying tribute to the late head of the family, Prince Dimitry Romanovich, who died on December 31, 2016. ""He believed that the emperor's children should be laid to rest alongside their parents and sisters,"" the young member of the family said. ""Dimitry Romanovich hoped that this tragic page in Russia's history would be turned during his lifetime."" Prince Rostislav Romanov, 31, is an artist by profession. He is a member of the Romanov family branch descending from Mikhail (1832-1909), brother of Emperor Nicholas I, a field marshal and a Caucasus governor.", -2276,2017/3/14,http://tass.com/world/935351,Syrian chief negotiator blames Turkey for opposition's absence at Astana talks,Astana hosts another round of the international meeting on settling the crisis on March 14-15,"ASTANA, March 14. /TASS/. Turkey as a guarantor of the nationwide ceasefire in Syria bears responsibility for the armed Syrian opposition's refusal to take part in the Astana talks, Syria's envoy to the UN Bashar Jaafari, who heads the government's delegation, said on Tuesday. ""This (non-participation of the opposition) once again confirms that it is under control. As a guarantor country, Turkey is responsible for that,"" Jaafari stressed. ""We should ask Turkey why the opposition has not come."" The diplomat said the government's delegation expects the Astana meeting to be fruitful. ""We have come here to speak with our allies - Iran and Russia,"" he said. ""We expect a positive outcome of the talks, the success of the Astana process."" Astana hosts another round of the international meeting on settling the crisis on March 14-15. On Tuesday, preliminary consultations will take place and on Wednesday participants will gather for a plenary meeting. The nationwide ceasefire came into force across Syria at midnight on December 30, 2016 under a deal on settling the crisis. Russia, Iran and Turkey act as the ceasefire guarantors. The truce does not cover terrorist groups, such as the Islamic State (outlawed in Russia).", -2277,2017/3/14,http://tass.com/defense/935352,Electronic visor of Ratnik-3 gear to boast laser targeting system,The new targeting system will guarantee 100-percent accuracy,"MOSCOW, March 14. /TASS/. The electronic visor of Russia's future Ratnik-3 infantry combat gear will have a laser targeting function designed especially for hand arms, the deputy commander of Russia's airborne troops for logistics affairs, Major-General Nariman Timergazin, told the media. ""Ratnik-3 will boast an electronic visor and an exoskeleton. The visor will enable personnel to enjoy the advantages of laser targeting while using hand arms in action,"" Timergazin said. The new targeting system will guarantee 100-percent accuracy. Timergazin kept quiet about the parameters of the exoskeleton of the future. Currently Russia's airborne troops are being equipped with the Ratnik gear, which, alongside bulletproof vests and other gear includes new models of firearms that considerably enhance the personnel's battlefield capabilities. ", -2278,2017/3/14,http://tass.com/defense/935348,Russian defense contractor to feature modern air defense systems at Malaysian air show,The aerospace show will be held on Langkawi Island on March 21-25,"MOSCOW, March 14. /TASS/. The Russian defense contractor Almaz-Antey Group will feature military and civil products at the LIMA-2017 international maritime and aerospace exhibition in Malaysia, the Group's press office said in a statement obtained by TASS on Tuesday. ""The Asian market was and continues to be extremely important for the Group,"" Almaz-Antey Deputy CEO for Foreign Economic Activity Vyacheslav Dzirkalin was quoted as saying in the statement. ""Over the past few years, we have managed to expand cooperation with countries of the region both in the sphere of armaments and in the sphere of civil output,"" he said. Almaz-Antey's demonstration stand at the Malaysian aerospace show will feature the mock-ups of S-400 Triumf, S-300VM Antey-2500 long-range air defense systems, Buk-M2E medium-range surface-to-air missile complexes, Tor-M2E, Tor-M2K and Tor-M2KM short-range air defense systems and a self-propelled antiaircraft missile complex from among Tunguska-M1 and Shilka-M4 systems. During the aerospace show, the Russian defense enterprise will also focus on promoting services for the repair, maintenance and upgrade of air defense systems earlier supplied to the region, as well as the services for training foreign specialists in carrying out this work. Besides, Almaz-Antey's demonstration stand will feature information on the possibilities of the Group's enterprises for the production of shipborne antiaircraft missile systems, air reconnaissance radar stations and automated control systems. The aerospace show will be held on Langkawi Island on March 21-25. Russian air defense systems in demand on global arms market ", -2279,2017/3/14,http://www.dw.com/en/vw-s-core-brand-still-struggling/a-37925273?maca=en-rss-en-all-1573-rdf,VW's core brand still struggling,"The core brand of German carmaker Volkswagen, VW, has logged another drop in annual earnings for 2016. The company said the decline came irrespective of the impact of the manufacturer's pollution scandal.","Last year, Volkswagen's core brand, VW, booked net earnings of some 1.9 billion euros ($2.02 billion), down 11.1 percent from a year earlier and excluding one-off effects resulting from the carmaker's global pollution scandal. VW revenues dropped by 0.8 percent in 2016 to 105.7 billion euros, the company reported in Wolfsburg on Tuesday. The German automaker said it wanted to make its core brand more profitable. Annual costs would be reduced by 3.7 billion euros by 2020, involving massive job cuts. US market in focus Volkswagen confirmed annual results for the whole 12-brand company, with bottom-line profit for 2016 coming in at 5.1 billion euros and sales rising by 2 percent ""?enough to topple Toyota from top position among the world's top-selling carmakers. Volkswagen executives said the US would remain a key market for the whole company despite US President Donald Trump's protectionist agenda. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YlbZ ""We'll stick to our investment decisions and our facilities in the US and want to play a much bigger role in the country in the long term,"" CEO Matthias M��ller said in a statement, pointing to the successes that Audi and Porsche had already had in the US. Reforming the bonus system Volkswagen also reported that its top executives earned a total of 39.5 million euros last year, down from the 63 million euros they received a year earlier. CEO Matthias M��ller for instance pocketed 7.25 million in 2016. The company only recently made changes to its salary and bonus program, stipulating among other things that the members of the supervisory board were no longer entitled to bonuses. As of 2017, the chief executive must not get more than 10 million euros in annual earnings, regardless of the company's overall performance. hg/did (dpa, Reuters) -", -2280,2017/3/14,http://www.dw.com/en/eu-court-allows-headscarf-constraints-at-workplace/a-37923881?maca=en-rss-en-all-1573-rdf,EU court allows headscarf constraints at workplace,"Private firms are justified on certain grounds to bar a female employee from wearing a headscarf or veil, according to the European Court of Justice. The top court was ruling on cases in France and Belgium.","The court issued a complicated judgement Tuesday on two cases, involving a veil-wearing software engineer in France and a headscarf-wearing receptionist in Belgium, centered on the EU-wide law known as the anti-discrimination or equal treatment Directive 2000/78. ""An internal rule of an undertaking [firm] which prohibits the-visible wearing of any political, philosophical or religious-sign does not constitute direct discrimination,"" the court said. Discrimination if firm lacks internal, neutral rule ""However, in the absence of such a rule, the willingness of-an employer to take account of the wishes of a customer no-longer to have the employer's services provided by a worker-wearing an Islamic headscarf cannot be considered an-occupational requirement that could rule out discrimination,"" the court added. The Luxembourg-based court's ruling came on the eve of the Netherland's parliamentary election in which migration has been a key issue. Ruling anchored in EU charter To ensure full participation of citizens within the EU, including economic life,-the EU's Directive 200/78-prohibits ""any direct or indirect"" discrimination. The directive stems from the EU's Charter of Fundamental Rights adopted in 2000 as well as its much older Convention on Fundamental Rights and Freedoms dating back to Rome in 1950. Article 9 of the 1950 convention says everyone has the right to ""manifest his religion or belief, in worship, teaching, practice and observance."" Article 10 of the younger charter also underpins the right to religious practice but in Article 16 it also states that enterprises have the ""freedom to conduct a business in accordance with Union law and national laws."" Contrary legal opinions Advocates general to Europe's top court had delivered contrary views on how to interpret the directive and prior judgments by top French and Belgian courts of appeal. Eleonore Sharpston said the French employer of design engineer Asma Bougnaoui, who was dismissed in 2009 for wearing a veil while advising a Toulouse client, should ""give way"" to the right of the individual employee to manifest her religion. Sharpston concluded that there had been discrimination on the grounds of religion or belief, adding that ""it seems to me particularly dangerous to excuse the employer from compliance with an equal treatment requirement in order to pander to the prejudice"" based on the argument ""our customers won't like it. 'Neutrality,' argued Belgian employer In the case of receptionist Samira Achbita, another EU court advocate general Juliane Kokott concluded that her wearing a headscarf at a Belgian security firm did ""not constitute direct discrimination based on religion"" in terms of the directive ""if that ban is founded on a general company rule prohibiting visible political, philosophical and religious symbols in the workplace."" Internal company rules necessary, advised Kokott ""Such discrimination may be justified in order to enforce a policy of religious and ideological neutrality,"" concluded Kokott. The firm had dismissed the receptionist in 2006. She then began Belgian court proceedings against wrongful dismissal, backed from 2009 by the Belgium Center for Equal Opportunities. Two higher Belgian labor courts subsequently dismissed her claim. In 2015, Belgium's Cout of Cassation stayed proceedings and referred the case to-the European Court of Justice. ipj/rt-(dpa, Reuters, AFP)", -2281,2017/3/14,http://www.dw.com/en/paul-auster-tours-germany-with-fate-twisting-novel-4321/a-37920685?maca=en-rss-en-all-1573-rdf,Paul Auster tours Germany with fate-twisting novel '4321',"His latest novel, ""4321,"" is considered his magnum opus. American cult author Paul Auster will be reading from it and discussing the work in five different German cities this week.","For almost 30 years already, German readers have been great fans of the author Paul Auster. That's why his latest novel, ""4321,"" was published almost simultaneously in English and German, just in-time for Auster's 70th birthday on February 3.- To meet the deadline, four translators were commissioned to work on the German version of the 1,260-page novel. The unusual collaborative approach worked well in this case, as the novel ""4321"" tells four different versions of the story of its main character. '4321': a novel in four variations- Auster tells the story of-Archibald Ferguson-in seven major chapters-with four subchapters-each. They provide four biographies of a single person: In one version, Archie Ferguson is born in 1947 and goes on living until the mid-1970s, yet in the three others, the character dies earlier on in his life. The reader follows these four lives, which Auster interlaces by going back and forth through time. A magical location in Auster's novels: Brooklyn Bridge in New York City It sounds complicated, but the variations from one life story to the other only slightly vary. ""4321"" could be seen as one biographical text which regularly creates confusion in the reader's mind by including details which do not fit with previously told elements. For example, in one version, Archie Ferguson goes out with his stepsister, while in another, it's a different girl. In one variation, his father dies in a fire;-in the next, he survives. In one tale, Archie grows up poor, while in a parallel one, he never needs to worry about money. A coming-of-age story Several aspects are present in all ""four lives"" of Archie Ferguson, including his parents' house, his family members, his passion for sports - baseball and basketball in particular - and for cinema, as well as his first attempts at writing. These common traits orient-the reader through this classic coming-of-age story of an American boy and young man in the 1950s, 60s and the first half of the 70s. There are therefore only a few variables built into the text - but they still require the full attention of the reader. Despite its unusual formal structure, ""4321"" remains a conventional novel which combines an epic and exciting narrative with an elaborate psychological character study. Literary references At one point in the novel, the character reflects on three books that-strongly influenced him: ""The Metamorphosis"" by Kafka, ""Catcher in the Rye,"" by Salinger and ""Candide"" by Voltaire. He's unable to determine which one of them was his favorite one --all of them are so effective in their own way. Literature is a broad, diverse field. One does not have to cling to a single literary style. In the same way, one novel may also include four books. What if? He's the person hiding behind many of his characters: Paul Auster The narrative flow of ""4321"" offers alternative depictions of the possibilities of a lifetime, without defining which events are to be considered ""right"" and ""true,"" focusing instead on the question, ""what would have happened if...?"" What would've happened if Archie Ferguson hadn't done this or that in a given situation, if he'd acted differently? His life would have been different, demonstrates Auster, who masters the art of twists of-fate like no other. Auster had already started playing with coincidences and possibilities in his early novels in the 1980s, leading him to become a literary star in the US and in Germany. He was then described as a postmodern author, a characterization rejected by the author, however. ""The New York Trilogy,"" ""In the Country of Last Things,"" ""Moon Palace"" and ""The Music of Chance"" were four titles that turned Auster into a cult novelist. He wrote many other novels and memoirs afterwards. Yet in none of them was he as convincing and compelling as in his first works. Auster: 'People are hungry for stories' Auster also likes to play with the theme of identity. He enjoys including autobiographical experiences in his texts, writing, for example, about the loss of a father, or about being an outsider, while reflecting on the life of a writer. These themes are also present in ""4321."" This time, they're explored in an expanded narrative cosmos that's not as compact as his earlier works. ""People are hungry for stories, for invented stories. And when they don't get their stories in films, TV series or computer games, they sometimes even read novels,"" said Auster in a interview with the German daily ""Die Welt,"" discussing whether-a long novel like ""4321"" could still appeal to readers today. Paul Auster on tour in Germany It will doubtlessly appeal to his numerous German fans. Auster read-from ""4321"" in Berlin on Monday, and moves-on to events in Hamburg, Frankfurt and T��bingen before completing his literary tour in Cologne-on March 17, at the Lit.Cologne literature festival. At those events, Auster will likely be asked to react to Trump's presidency. The author, who'll also lead the American PEN-center this year, has made his views clear in different interviews, saying for example on German public radio ""Deutschlandradio Kultur"": ""Concerning Trump, it's a catastrophe that such an idiot could be elected president, and that such a dangerous and ignorant person could become president."" -", -2282,2017/3/14,http://www.dw.com/en/new-head-of-au-commission/a-37351601?maca=en-rss-en-all-1573-rdf,New head of AU commission,New African Union Commission chief Moussa Faki Mahamat officially takes up his post on Tuesday. But who is Faki and what does he stand for?,"A seasoned diplomat and politician, 56-year-old Moussa Faki Mahamat is no stranger to the challenges presented by the top job he was elected to on January 30. He is seen as the architect of Chad's nomination to the United Nations Security Council as a non-permanent member and also of the country's presidency of the AU in 2016. He headed the AU Commission on Peace and Security at the Nairobi summit in 2013, which was dedicated to the fight against terrorism. Above all, as a former Chadian prime minister and current foreign minister he has had a decisive say in all the military and strategic operations his country was and is engaged in: Libya, Mali, South Sudan and Central African Republic, the Sahel and the Lake Chad-region.- His election as chief executive of the AU thus indicates a very likely reorientation of AU-policies towards issues of peace and security on the continent, Liesl Louw-Vaudran of the Institute for Security Studies (ISS) in Pretoria told DW: ""His country, Chad, is well known for seeing itself as a sort of champion of military intervention.""- International approval His predecessor, South Africa's Nkosazana Dlamini-Zuma, was severely criticized for neglecting the pressing issues on the crisis-riven continent, preferring to concentrate on longterm plans of prosperity for Africa, not to mention her own political career at home. Moussa Faki, on the other hand, has already left a mark in the fight against terrorism, most notably as chairman of the council of ministers of the G5Sahel, a military anti-terror alliance made up of-Mauritania, Mali, Niger, Burkina Faso and Chad, of which-Ndjamena is the driving force.- Chadian soldiers fight on many anti-terror fronts His election to the AU Commission is likely to please both Europe and the United States of America, who support Chad in the fight against Boko Haram and other jihadist groups. Chad is also the headquarters of the French counterterrorism operation in the Sahel, Operation Barkhane. Democracy not a priority But not everybody welcomed the news. Doki Warou Mahamat, a Chadian who coordinated the campaign against Faki's election, told DW: ""Moussa Faki is on the payroll of a dictatorship. The Chadians are in a state of mourning. You have to clean up your own act before starting somewhere else."" Moussa Faki is reputed to be very close to President Deby who was reelected-in April 2016 for a fifth consecutive term. The outcome was widely criticized-because of serious irregularities. Deby has ruled the country with an iron fist-since 1990.-Both are members of the Zaghawa ethnic group. Analysts note that Deby succeeded in placing a man he trusted-at the helm of the AU on the same day that he handed over the rotating presidency of the organization to Guinea, showing the extent of Chad's influence in the AU and on the continent. President Idriss Deby is a person to be reckoned with in Africa Reforms in the offing Nevertheless, Faki's election was not a foregone conclusion. Internal rifts in the AU were highlighted in July 2016 when no candidate won the necessary-two-thirds majority at a previous attempt to elect a chairperson, forcing Dlamini-Zuma to stay on for an extra six months. And early this year-it took seven rounds of voting before Faki emerged as the winner ahead of Kenya's Amina Mohamed, long considered the favorite. While campaigning, Faki, who studied law in Brazzaville and Paris, said that as head of the AU Commission he would want a continent where ""the sound of guns will be drowned out by cultural songs and rumbling factories."" While he promised to put development and security at the top of the agenda during his four-year term, he might also want to go ahead with at least some of the reforms deemed necessary to make the organization more effective. ""The AU chairperson should be able to make a stand and authorize the sending of AU troops in crisis-situations. At the moment, the Commission is sort of beholden to the decision of the 55 member states. Basically, the Commission's hands are tied,"" expert Liesl Louw-Vaudran said. Being a man accustomed to power and who expects to be obeyed, it is likely-that Faki will want to change that.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WcNo -", -2283,2017/3/14,http://www.dw.com/en/german-police-carry-out-raids-on-islamists-in-hildesheim/a-37923597?maca=en-rss-en-all-1573-rdf,German police carry out raids on Islamists in Hildesheim,"The ban of the Islamist DIK group in Hildesheim has prompted police raids on the city's Islamists. Anis Amri, perpetrator of the deadly Berlin Christmas market attack,-had been a member of Salafist circles there.","Following a-decision to ban the Islamist association known as the-German-speaking Islamic Circle in Hildesheim e.V. (DIK), police in the central German city-carried out large-scale raids early on Tuesday morning, local media reported. In raids similar to those already carried out in July and November last year, several business premises, the dwellings of eight people linked to the group, as well the mosque belonging to the association were all searched on Tuesday. Thousands of Islamists live in Germany; several hundred are considered militant. Some are converts, but for the most part they're the children of immigrants - young men searching for direction and community after struggling to integrate in Germany, according to Hans-Georg Maassen, head of Germany's domestic intelligence agency. The September 11, 2001 terror attacks in the US were planned in part in Hamburg. Three of the four 9/11 pilots and at least six supporters belonged to a Hamburg terror cell, including suicide pilot Mohammed Atta (below, middle). Mounir el-Motassadeq (below, left) was sentenced to 15 years in prison after the world's first 9/11 trials. On July 31, 2006 Lebanese students Jihad Hamad and Youssef El Hajdib planned to detonate two homemade suitcase bombs on two packed regional trains traveling from Cologne to the cities of Hamm and Koblenz. The bombs failed to explode due to faulty construction. Hamad is serving 12 years in prison in Beirut. El Hajdib, meanwhile, is serving a life sentence in Germany. On September 4, 2007 the GSG 9 anti-terror unit stormed a vacation house in the Sauerland region of North Rhine-Westphalia, arresting three men: Adem Yilmaz (left), Daniel Schneider (center) and Fritz Gelowicz (right). The group had planned bomb attacks on German and US army facilities in protest of the Bundeswehr's deployment to Afghanistan. The terrorists will spend up to 12 years behind bars. The wife of the leader of the Sauerland cell, Filiz Gelowicz, was also tried in court. Sitting behind a pane of security glass in a Berlin courtroom on November 5, 2010, the 29-year-old admitted to raising money to support the jihad. She was found guilty of aiding terrorism and sentenced to two-and-a-half years in prison. On March 2, 2011 Arid Uka unleashed a bloodbath at the Frankfurt Airport, shooting to death two US soldiers and severely injuring two others. To date, it's the only Islamist attack in Germany to result in fatalities. Uka was born in Kosovo, but grew up in Germany. His family was not considered fanatical, but he portrayed himself as a jihadist on Facebook. Al Qaeda right in the middle of the Rhineland: Halil S. (center) appeared before the federal court in Karlsruhe on December 9, 2011, accused of belonging to a D��sseldorf terror cell. One of its members was said to have once been a bodyguard for Osama bin Laden. The terror network had planned a large attack in Germany. All four members of the D��sseldorf cell were sentenced to long prison terms. The number of Salafists in Germany is growing; some estimates put them as high as 7,000. Since October 2011, they have been handing out free German translations of the Koran through the ""Lies!"" (""Read!"") campaign. The goal is to distribute 25 million copies. A few hundred Salafists are seen as being potentially violent, while around 500 have traveled to war zones in Syria and Iraq. It was supposed to be a demonstration of radical Islamist power: On December 10, 2012 a bomb was left in a blue sports bag at the Bonn train station. A defect in its construction was the only thing that prevented its explosion. Marco G., who grew up in Oldenburg and converted to Islam, was behind the attempted attack. In early September 2014, the so-called ""Sharia Police"" patrolled the streets of Wuppertal. Dressed in orange-colored vests, the men stopped young Muslims and ordered them not to gamble, drink or listen to music. Aiman Mazyek, the chairman of Germany's Central Council of Muslims, called their actions a ""misappropriation of our religion."" In July 2013, Kreshnik B. traveled to Syria to join the ""Islamic State"" (IS). Upon his return to Germany in 2013, he was arrested in Frankfurt, with the state attorney accusing him of being a member of the IS terror militia. If convicted, he faces more than four years in prison. His trial marks the first time a returnee from the war zones in Iraq and Syria has been before a judge in Germany. Denis Cuspert, born to a German father and a Ghanaian mother in Berlin in 1975, is Germany's most famous jihadi in the ""Islamic State."" Also known as rapper Deso Dog, he has been in Syria since the end of 2012. His mission: radicalize Salafists in Germany. Earlier this month, he was identified in a recent beheading video. The German government would like to put him on the UN's terror list. Author: Iveta Ondruskova / cmk 'Blinded fanatics' Boris Pistorius Lower Saxony's interior minister and Social Democrat (SPD), said that in banning the DIK association,""a hotspot of the radical salafist scene in Germany had been shattered."" ""This measure is expressly not directed against the many Muslims who live peacefully here,"" Pistorius added. ""But against blinded fanatics who abuse this world religion for their own purposes and support terror organizations such as the self-proclaimed 'Islamic State' (IS) and its inhuman goals."" Founded in 2015, the DIK made-no secret from its Salafist attitude. All religious activities are committed to ""orientate themselves to the understanding of the first three generations from the Prophet Muhammad"" - a particularly fundamentalist thread of Islam. Berlin truck attacker Anis Amri was a member of Salifist circles in Hildesheim According to German intelligence, more than 22 young men from the DIK circle have left Germany to join IS-- either as fighters or as alleged aid convoys. Minors have also been radicalized by the banned association, authorities say. Berlin attacker known to Islamist group Among DIK's 300 members was nationally-active Salifist preacher ""Abu Walaa."" Considered among intelligence services as ""IS' number one"" in Germany-he was-arrested in November near Hildesheim and remains-under investigation on suspicion of supporting-a terrorist organization.- Anis Amri, the perpetrator of the deadly truck attack at a-Berlin Christmas market in December, was also-a member of Salafist circles in Hildesheim and is believed to have stayed in the DIK mosque. ksb/rt (dpa, AFP)", -2284,2017/3/14,http://www.dw.com/en/malaysia-to-deport-50-north-koreans-despite-travel-ban-over-kim-jong-nam-assassination/a-37923314?maca=en-rss-en-all-1573-rdf,Malaysia to deport 50 North Koreans despite travel ban over Kim Jong-Nam assassination,"In an apparent exception to a departure ban after the killing of Kim Jong-Nam, Malaysia will deport 50 North Koreans for overstaying visas. The body of North Korean leader Kim Jong-Un's half-brother has been embalmed.","Malaysia's Deputy Prime Minister Ahmad Zahid Hamidi told reporters on Tuesday that 50 North Koreans working in the state of Sarawak on Borneo island - home to coal mines which often employ foreign workers - would be deported from Malaysia. ""We will send the North Korean workers in Sarawak who have exceeded their [working] visa back to Pyongyang for overstaying,"" Zahid said, adding that they will ""be deported soon."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YSTy The assassination of Kim Jong-Nam-in Malaysia in February sparked a heated diplomatic standoff between Kuala Lumpur and Pyongyang, which has seen both countries expel each other's ambassador and refuse to let their citizens leave.-Three Malaysian embassy staff and six family members are stranded in North Korea as a result. The deputy prime minister failed to disclose-exactly why the Malaysian government had decided on the exception. No return without DNA One month on since the estranged half brother of North Korean leader Kim Jong-Un was killed, Malaysian authorities are still refusing to release his body without a DNA sample from next-of-kin. Kim was killed on February 13. Two women - one Vietnamese and one Indonesian - were seen on CCVTV smearing his face with the banned VX nerve agent at Kuala Lumpur's airport. The suspects have been arrested and charged with the murder. Kim Jong-Nam, the estranged brother of North Korean leader Kim Ong-Un was killed on February 13 Pyongyang, which never confirmed Kim's identity, has repeatedly demanded the return of his body to North Korea. Having rejected the findings of the Malaysian authorities, North Korea claims that the investigation into Kim's killing is an attempt to smear the secretive regime. Although Malaysia has never directly accused North Korea of being behind the attack, many speculate that Pyongyang must have orchestrated it. Experts say the VX nerve agent used to kill Kim-was almost certainly produced in a sophisticated state weapons laboratory, and North Korea is widely believed to possess large quantities of chemical weapons. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YC31 Body embalmed in Malaysia Zahid said on Tuesday Kim's body, which is currently kept in a morgue in the Malaysian capital, has been embalmed to prevent it from decomposing. ""It's an effort to preserve the body, because if it is kept in the mortuary it might decompose so we did this to preserve the body,"" he said. Prior to the high-profile killing, relations between North Korea and Malaysia had been particularly warm, with a reciprocal visa-free travel deal for visitors. ksb/rt (Reuters, AP, AFP)", -2285,2017/3/14,http://www.dw.com/en/delisting-looms-as-toshiba-delays-report-again/a-37923514?maca=en-rss-en-all-1573-rdf,Delisting looms as Toshiba delays report again,Toshiba has again postponed an overdue earnings report for the October-December quarter. The Japanese company said it needed more time to look into a possible accounting fraud at its US nuclear unit.,"Toshiba on Tuesday delayed the release of its quarterly earnings report again, sending its shares diving more than 8 percent by the midday break. Japanese media said the company would take another month to publish the overdue report, fanning fears the stock could be delisted from the Tokyo Stock Exchange. ""If you look at today's fall in the stock price, market players are already pricing in a delisting,"" SMBC Friend Securities market strategist Mari Iwashita said in a statement. Corporate crisis While it did not release earnings in February as originally scheduled, Toshiba warned back then it was on track to report a huge net loss in the fiscal year to March as it faced a hefty write-down at its US atomic subsidiary, Westinghouse Electric. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XWiQ Toshiba shares have lost more than half of their value since late December when the company first warned of multi-billion-dollar losses over Westinghouse. The fresh crisis comes less than two years after the firm was hammered by a huge profit-padding scandal. It was found that top executives had pressured employees to cover up weak results for years after the 2008 global financial crisis. hg/did (AFP, dpa) -", -2286,2017/3/14,http://www.dw.com/en/millions-in-northeast-us-brace-for-late-winter-blizzard/a-37923200?maca=en-rss-en-all-1573-rdf,Millions in northeast US brace for late winter blizzard,Snow has started to fall as a late-season winter storm cripples the northeast US. Thousands of flights have been canceled and a state of emergency has been declared across the east coast.,"Though much of the winter was mild and dry, a late season winter storm is bringing up to two feet (0.61 meters) of snow and 60 miles per hour (97 kilometers per hour) winds across the northeast US, shutting down travel and schools for millions of Americans. It's the same storm that-forced German Chancellor Angela Merkel to delay her meeting with US President Donald Trump until Friday. ""We're expecting it to be the worst snow of the season,"" National Weather Service (NWS) meteorologist Melissa Di Spigna told news agency AFP. The powerful storm could bring blizzards, flooding and power outages Blizzard warnings and other winter storm warnings were in effect from Maine to Virginia, affecting some 50 million people. In New York City, the US' most populous city, mayor Bill de Blasio declared a state of emergency in the city starting at midnight Tuesday local time (0400 UTC). ""High end could be as much as 24 inches which would therefore put this in the category of one of the biggest snowstorms in recent memory,"" said de Blasio. The UN headquarters in New York announced it would close before the storm hit, and much of Wall Street was expected to work from home Tuesday due to the weather. Other leaders in the northeast warned their residents in preparation for the storm. Connecticut governor Dannel Malloy issued a statewide travel ban in what could become whiteout conditions. Massachusetts governor Charlie Baker urged his residents to work from home if possible. ""It's going to snow hard and fast for a long period of time. It will create whiteout conditions,"" said Baker. Nearly 7,000 flights were canceled on Monday and Tuesday across the northeast in anticipation of the weather, according to flight tracker FlightAware. American Airlines canceled all of their flights into New York's main airports, and United announced they would not operate at Newark or LaGuardia airports. ""We're keeping a close eye on things and depending on how things go, will plan to ramp back up Wednesday morning,"" said United in a statement. kbd/bw (AFP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1HjRB", -2287,2017/3/14,http://www.dw.com/en/state-security-arrests-armed-activists-in-eastern-ukraine/a-37923184?maca=en-rss-en-all-1573-rdf,State security arrests armed activists in eastern Ukraine,Both sides of the conflict had agreed that the activists' blockade threatened power supplies in the region. A group of opposition lawmakers and nationalists accused the separatists of funding illegal activitities.,"Rebels in eastern Ukraine have seized control of 40 factories and coal mines. They also took over a major aid distribution center in the conflict-hit region. The latest Ukraine ceasefire pledge remains unfulfilled as observers fear worse violence to come in the spring. Children are terrified of going to school due to constant shelling. (28.02.2017) Hearings have begun at the International Court of Justice (ICJ) in Ukraine's suit against Russia. Kyiv claims Moscow employed terrorism in its Donbass region and has mistreated Crimea's minorities. (05.03.2017) Ukrainian security services (SBU) on Monday arrested 43 activists in the country's conflict-ravaged regions. The group of activists had launched a blockade in January, which effectively disrupted shipments of coal. Ukrainian nationalists and opposition lawmakers had enforced the blockade, claiming the coal helped fund rebel activities in the region. ""During an operation ""?in Toretsk, Shtshebryiovka and Kudryumovka, members of the SBU discovered a group of armed men,"" the Ukrainian army told the country's division of Russia's Interfax news agency. ""They refused to surrender their weapons, which led to the arrest of 43 people,"" the military spokesman added. Despite warring parties battling for control of eastern Ukraine, both sides had unusually agreed that the blockade disrupted trade and threatened to cause power cuts. Many power plants in the area rely on Anthracite coal from rebel areas to keep running, especially during the winter season. Sanctions extended Since conflict broke out in 2014, nearly 10,000 have been killed and more than 500,000 children affected by the fighting, according to UN figures. Moscow's illegal annexation of Crimea that year, partly in response to pro-European protests that unseated ex-President Viktor Yanukovych, fomented unrest in eastern Ukraine and prompted a pro-Russia insurgency. The EU on Monday extended sanctions against Russian and Ukrainians individuals for an addition six months after they were first introduced in the wake of the annexation. The European Council, a body formed of the bloc's political leaders, said it kept sanctions in place ""over actions undermining or threatening the territorial integrity, sovereignty and independence of Ukraine."" ls/bw (AFP, AP, dpa) Every evening, the shelling begins around sunset. The front lines near Donetsk see nightly mortar and machine gun fire as the conflict between the Ukrainian military and pro-Russian separatists""?rages on. Caught in the crossfire are many elderly civilians who are too impoverished to go elsewhere. Ivan Polansky, above, surveys the damage on his home in Zhovanka. Residents of Zhovanka in the so-called ""�gray zone,""?a thin strip of land separating warring militaries, line up to see a visiting doctor. Medics hold pop-up clinics in the town once a week. ""Each day, you are waiting for the shell to land on your house and you never know when it's going to come,"" said local resident Ludmila Studerikove. Zhovanka was once home to 1,000 people, but the number has dwindled to about 200 since the war began in mid-2014. It has been three months since residents have had electricity and gas. ""Sometimes I'm so scared that I lay in bed at night and just shake,""?Studerikove said. ""Ty husband stays by my side and holds my hand."" Olexander Voroshkov, program coordinator for the regional charity SOS Kramatorsk, said residents continue to live in half-destroyed homes with leaky roofs, even through the winters, because rent in nearby Ukrainian cities has skyrocketed since the beginning of the conflict. ""Rents in Kramatorsk are now similar to those in Kiev, but the salaries are much lower than in Kiev,"" Voroshkov said. Women line up to receive medicine and multivitamins in Zhovanka. Food and humanitarian supplies are delivered to the town by charity organizations, as crossing checkpoints sometimes requires people to wait more than a day in line. ""We had everything; we had fresh air, nature. It was very nice here. Now we just have the cold,"" said local resident Vera Sharovarova. Vera Anoshyna, left, speaks with neighbors in Spartak, a town in what is now the Donetsk People's Republic (DNR). Anoshyna said she has done her best to adapt to the conflict. ""If you don""t have water, you find it,"" she said. ""If you don""t have electricity, you find a solution. But you never know where the next bomb will land."" Svetlana Zavadenko stands before her home in Spartak. She was injured when the walls collapsed after several mortars exploded in her yard. Neighbors had to dig Zavadenko out of the rubble and she was sent to the hospital with six broken ribs and a ruptured liver. She smokes ""Tinsk""?brand cigarettes and laughs when asked what she thinks about the war. Zavadenko recovered from her injuries and lives alone with several pets. Spartak has not had electricity, gas, or water services since 2014, so she uses a grill to cook her food. For firewood, she goes to an abandoned furniture factory nearby and collects plywood. ""Last winter we thought [the war] would finish, but now, honestly, we lost hope,"" she said. Damage from shelling on the outskirts of Donetsk. Despite past failures in deescalating the war, a new ceasefire may be in sight after an October peace summit in Berlin, where Ukrainian President Petro Poroshenko said he was ready to end hostilities in eastern Ukraine and would withdraw troops from the region. Even if both sides agree on a ceasefire, they will face opposition from their militaries, who claim their sacrifices were too heavy to simply put down their weapons. ""We lost too many soldiers to stop now,"" said Vladimir Parkhamovich, colonel of the 81st Airmobile Brigade in the Ukrainian military. ""If they give us an order [to stop] we'll consider them traitors."" Author: Diego Cupolo", -2288,2017/3/14,http://www.dw.com/en/never-before-seen-hitler-photos-up-for-auction/a-37923134?maca=en-rss-en-all-1573-rdf,Never-before-seen Hitler photos up for auction,A photo album of never before seen photos of the German dictator will go up for auction on Wednesday. Many of the photos in the album were personal and would not have been published during his reign.,"A photo album of a more relaxed Adolf Hitler will go up for auction in Kent, England on Wednesday. The album will feature photos that have never seen the light of way, exactly how Hitler intended. ""Hitler's image, particularly his photographs, were controlled. They had to be approved,"" said C&T Auctions consultant Tim Harper. As Hitler's Propaganda Minister, the virulently anti-Semitic Goebbels was responsible for making sure a single, iron-clad Nazi message reached every citizen of the Third Reich. He strangled freedom of the press, controlled all media, arts, and information, and pushed Hitler to declare ""Total War."" He and his wife committed suicide in 1945, after poisoning their six children. The leader of the German National Socialist Workers' Party (Nazi) developed his anti-Semitic, anti-communist and racist ideology well before coming to power as Chancellor in 1933. He undermined political institutions to transform Germany into a totalitarian state. From 1939 to 1945, he led Germany in World War II while overseeing the Holocaust. He committed suicide in April 1945. As leader of the Nazi paramilitary SS (""Schutzstaffel""), Himmler was one of the Nazi party members most directly responsible for the Holocaust. He also served as Chief of Police and Minister of the Interior, thereby controlling all of the Third Reich's security forces. He oversaw the construction and operations of all extermination camps, in which more than 6 million Jews were murdered. Hess joined the Nazi party in 1920 and took part in the 1923 Beer Hall Putsch, a failed Nazi attempt to gain power. While in prison, he helped Hitler write ""Mein Kampf."" Hess flew to Scotland in 1941 to attempt a peace negotiation, where he was arrested and held until the war's end. In 1946, he stood trial in Nuremberg and was sentenced to life in prison, where he died. Alongside Himmler, Eichmann was one of the chief organizers of the Holocaust. As an SS Lieutenant colonel, he managed the mass deportations of Jews to Nazi extermination camps in Eastern Europe. After Germany's defeat, Eichmann fled to Austria and then to Argentina, where he was captured by the Israeli Mossad in 1960. Tried and found guilty of crimes against humanity, he was executed in 1962. A participant in the failed Beer Hall Putsch, G?ring became the second-most powerful man in Germany once the Nazis took power. He founded the Gestapo, the Secret State Police, and served as Luftwaffe commander until just before the war's end, though he increasingly lost favor with Hitler. G?ring was sentenced to death at Nuremberg but committed suicide the night before it was enacted. Author: Cristina Burack Harper said the photos show Hitler more ""natural, relaxed, a number of them are amusing and almost certainly they would not have been allowed to be published. They are quite revealing,"" according to Harper. The album also contains photos of Hitler in his motorcade passing crowds of people cheering him, smiling next to a group of children, and alongside top members of the Nazi party including Joseph Goebbels and Heinrich Himmler. The photos ""had to be taken by someone who had clearance to get close to the Fuehrer and close to that inner circle,"" said Harper. The photo album was found by English photographer Edward Dean and English broadcaster Richard Dimbleby in Hitler's bunker in April 1945. Harper said Dean and Dimbleby were with a Russian soldier and they broke into Eva Braun's bedroom. ""The Russian solder pried open her drawer and got the album from there,"" said Harper. The album is currently owned by an unnamed collector. The album could fetch more than 15,000 British pounds (17,200 euros, $18,300). A telephone apparently owned-by Hitler sold for $240,000 at an auction earlier this year.- kbd/bw (Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Roid", -2289,2017/3/14,http://www.aljazeera.com/news/2017/03/employers-allowed-ban-headscarves-eu-court-170314092627483.html,"Employers allowed to ban the hijab, EU court says","Court of Justice rules that workplace bans on political, philosophical or religious symbols are not discriminatory.","Employers are permitted to ban-staff from wearing visible religious symbols, the European Union's top court ruled on Tuesday - its first decision on the issue of women wearing hijabs at work. The ECJ gave a joined judgment in the cases of two women, in France and Belgium, who were dismissed for refusing to remove hijabs. The hijab is a headscarf worn by many Muslim women who feel it is part of their religion. ""An internal rule of an undertaking which prohibits the visible wearing of any political, philosophical or religious sign does not constitute direct discrimination,"" the EU's-Court of Justice (ECJ)-said in a statement. The ruling comes on-the eve of a Dutch election in which Muslim immigration has been a key issue and a bellwether for attitudes towards migration and refugee policies across Europe. More soon. Source:-News agencies", -2290,2017/3/14,http://www.aljazeera.com/indepth/features/2017/03/park-ouster-south-korea-170313192230638.html,"After Park's ouster, what is next for South Korea? Steven Borowiec",Many South Koreans hope that Park's impeachment will herald a fresh start for the country's politics. By Where do South Korean politics go from here?,"Seoul, South Korea-- The months-long movement that led to the first ever-impeachment-of a South Korean president ended with a bang.- Over the weekend, tens of thousands of people massed in Gwanghwamun Square, a large public space in the heart of the capital, Seoul, for one last Saturday evening protest, which ended with a fireworks display that lit up the nighttime sky while celebrating a court's decision to formally impeach Park. Since allegations of corruption and influence peddling involving now-former President Park Geun-hye-began to surface last year, large crowds gathered in Gwanghwamun to march and chant for Park to be removed from office.- Gwanghwamun became a hub for activists and citizens concerned about a broad range of issues, chief among them, the close ties between the government, big business and Choi Soon-sil, a long-time confidante of Park. The protesters represented a broad swath of South Korea's population, among them students, professionals and labourers. Many protests had an upbeat, festive atmosphere, to the point where some parents brought their children. The morning after the finale, the square had been swept clean but retained reminders of the litany of issues that sparked the movement to oust Park. Groups of artists who say they were blacklisted by the government had set up tents, as had families of those who died in the 2014 Sewol ferry disaster.- Though Park is gone, these groups are sticking around, as her impeachment does not promise a resolution to their grievances. Those who attended the protests hope that Park's ouster will herald a fresh start for the country's politics.- ""The impeachment signals the beginning of a new era for our country, an era of justice and the rule of law,"" said Sung Won-ki, a Kangwon National University professor who was manning a booth distributing information on the risks of nuclear energy. He and several colleagues plan to run this booth over the upcoming election campaign, hoping South Korea's next president will reduce the use of nuclear power, and cancel plans to construct new nuclear plants. Sung added, ""We accomplished something significant, but there is a lot still to be done.""-Sung and others described Park's impeachment as a sign that the South Korean system works, even though it isn't perfect. On Sunday, Jeon Soo-jung, a woman in her mid-30s, walked hand-in-hand around the square with her six-year-old son.-She described Park's impeachment as a victory for regular people. ""I thought it was important to bring him here and explain what happened, even though he's just a kid,"" Jeon said.- ""This is where history was made."" OPINION: South Korea's next leader will face intense challenges What happens to Park now? Park, 65, is the daughter of former military strongman Park Chung-hee. She took office as president in early 2013 as South Korea's first female head of state. While the protests focused discontent on a cast of antagonists, including the leaders of the corporate conglomerates, including the vice chairman of Samsung, the country's most iconic business, that dominate the South Korean economy, and Choi, most protesters directed their criticism at Park, and calls for her to step down were the most chanted refrains at public gatherings. For many, Park became a symbol of an ineffective state apparatus that was failing voters.- ""So much anger was directed at Park Geun-hye-because she, on a personal level, came to symbolise a corrupt, pre-modern and undemocratic system of rule by one small, incompetent group of people,"" wrote Yoon Tae-jin, a professor at the Yonsei University Graduate School of Communication and Arts, in a column in the left-of-centre-Kyunghyang-newspaper. South Korea's legislature passed a motion for Park's impeachment on December 9 of last year, and she spent the rest of the winter secluded in her residence at the Blue House, the presidential office, in Seoul. She emerged after dark on March 12, stepping into a sea of colleagues and supporters as she was driven in a motorcade from the Blue House to her private residence in southern Seoul. On her way out, she showed no remorse for her involvement in a scandal that shook the country, telling media, ""I believe the truth will be revealed ."" With the Constitutional Court decision to uphold Park's impeachment, Park becomes a private citizen again, and no longer has immunity from criminal charges. Prosecutors will investigate Park on charges of bribery, and, if convicted, she faces the possibility of incarceration. Not everyone is happy about Park's downfall. Though public opinion poll data from-Gallup Korea-showed 77 percent of South Koreans were in favour of impeaching Park, with only 18 percent opposed, the minority who wanted Park to remain in office were highly vocal, and visible, in the days leading up to the impeachment. Right-wing groups held raucous protests, and three died when Park supporters clashed with police after the impeachment verdict was announced. About a kilometre down the road from Gwanghwamun, in a large muddy area in front of Seoul City Hall was a very different kind of tent village, this one set up and populated by far-right activists opposed to Park's impeachment. On Sunday morning, the handful of remaining supporters said they were sad and frustrated. A signboard hung on one tent called the charges against Park ""A subversive conspiracy promoted by the press."" Other signs were breathless exhortations to prevent communists from taking over South Korea. One sign, intentionally or not, echoed US President Donald Trump, reading simply, ""Sad!"" One middle-aged man said that without a president in office that takes a hardline approach to North Korea, South Korea would be vulnerable to attack. ""I'm worried that the hard left is going to seize power now,"" he said. South Korean law mandates that a presidential election-be-held within 60 days of a president's impeachment, meaning voters will likely go to the polls on May 9. At this point, the outlook is promising for South Korea's liberals, who could take advantage of a right-wing beset by scandal and internal division. Liberal stalwart Moon Jae-in (who lost the 2012 president election to Park Geun-hye) has a comfortable lead in the latest-polls, with 32 percent of support; Hwang Kyo-ahn, the prime minister and acting president, is his closest right-wing competitor, trailing with nine percent. South Korea's liberals have not held power since the election of Park's predecessor Lee Myung-bak in 2008. In recent years, liberals have been plagued by internal defeats in local elections. While running on platforms of standard liberal promises like increased welfare and corporate regulation, the main opposition parties all brand themselves with descriptors as being for ""democracy"" and the ""people"", since ""socialism"" is an off-putting term to many South Koreans, due to its echoes of association with North Korea. ""It's the liberal's election to lose. To be specific, Moon Jae-in's. With Park ousted and snap elections being held, Moon is in position to ride the wave of anti-Party discontent all the way to the Blue House,"" said Steven Denney, a Graduate Fellow at the Asian Institute at the University of Toronto and specialist on South Korean politics. Kim Sung-eun, a 22-year-old university student, says she welcomes the chance for the country to pick a new leader. Kim participated in several weekly protests in Seoul, after being spurred to attend public gatherings for the first time when she heard the extent of the influence peddling allegations concerning Park and Choi. She says she is looking forward to her first chance to vote in a presidential election. ""My trust in the government has fallen, but if the new president listens to the people and makes changes, that trust can be restored,"" she said. Source:-Al Jazeera", -2291,2017/3/14,http://www.aljazeera.com/news/2017/03/silicon-valley-workers-protest-donald-trump-170314015033643.html,Silicon Valley workers to protest against Donald Trump,Tech workers to protest against what they call is the discriminatory policymaking of US President Donald Trump. Immigration bans- 'Values under attack',"Silicon Valley workers are gearing up for a demonstration against what participants call the discriminatory policymaking of US President Donald Trump and his administration. Organisers said Tuesday's protest in Palo Alto was part of a small but growing bid against a White House that is targeting some of the US tech industry's less-seen employees: many of the people of colour and immigrants who either drive innovation or do the blue-collar jobs that keep Silicon Valley business running. ""A lot of people came to Silicon Valley because they were sold on that belief that we're doing amazing things,"" said-Brad Taylor, a Silicon Valley software engineer who founded Tech Stands Up, the nonprofit leading the charge for the US tech hub's social justice activism in the time of Trump. ""Trump is enacting policies that are hurting our families and our workers. We are the tech industry, we can stand up for the values we say we believe in,"" he told Al Jazeera. The protest comes amid a wave of civil action against Trump. In mid-February, US immigrants shuttered their stores in a show of resistance against Trump's pledges to ramp up deportations and bolster the wall separating the US from Mexico. Tech giants like ride-share service Lyft have issued statements specifically addressing the Trump administration's immigration bans, which analysts said would adversely affect the companies' ability to hire foreign talent. Immigrants have traditionally comprised a healthy proportion of Silicon Valley's lucrative start-up scene. Foreign employees at Google reportedly walked out of work in protest of the immigration ban. But the industry, as a whole, has yet to address the administration head-on. Silicon Valley giants have been mostly silent on the demonstration for now. Apple, Twitter, Facebook and Google did not respond to emailed requests for comment on the event. LinkedIn, whose vice president of Growth & International, Aatif Awan, will speak on ""the promise of America"" at the event said it supported its employee. ""Aatif is standing up for something he believes in, representing his own views. We support and encourage all our employees to participate in the causes they believe in,"" said a LinkedIn spokesperson. In the Tech Stands Up manifesto, published on Medium late last week, Taylor and his co-organiser McKenzie Lock explain that most tech companies are not living up to their values and potential and that their inaction is threatening US democracy. ""Walk into many tech firms, and you are likely to see a set of company values hanging on their walls. Some of those values are inclusion, transparency, innovation, diversity, openness, ownership, and empathy. Today those values are under attack,"" the manifesto says. Tuesday's action aims to have more tech companies assume a more active role in a society in flux, Taylor, 37, said. He also hopes the demonstration will mark a departure from a long-running standoff between the tech community and social justice activists, both locally and nationally. In nearby Oakland and San Francisco, housing rights advocates have blamed an influx of young, moneyed tech entrepreneurs for rampant gentrification driving working-class families farther from their home cities. Taylor argued the urgency of a US under Trump is waking up his fellow Silicon Valley employees to their civic duty. ""For a while, it was just you didn't talk about politics in Silicon Valley; we talked about what companies were doing and who got a round of funding,"" he said. ""Right now the pitchforks are pointed towards [Washington] DC ""?If we don't stick up for these communities - the pitchforks will be pointed back at us very soon,"" he added. Rally participants hope that beyond resisting the Trump administration's policies, Tech Stands Up will help to invigorate the more voiceless among the tech industry's workers. ""We hope the event not only sends a message, but creates new opportunities for the low wage, largely immigrant subcontracted janitors, security officers, cafeteria workers and shuttle drivers to work together with directly employed workers to urge technology companies to take action,"" said Derecka Mehrens, co-founder of Silicon Valley Rising - a campaign to build ""an inclusive middle class in Silicon Valley"". Mehrens will speak at Tuesday's event along with two fellow Silicon Valley Rising members, Maria Gonzalez, a janitor at Facebook, and Jacky Espinoza, a cafeteria worker from Cisco. ""By encouraging companies to use their political and legal muscle to resist discriminatory policy coming from the White House and adopt new wage and benefit standards for subcontracted service workers, workers across the tech sector can press their companies to be responsible corporate citizens in this time of Trump,"" Mehrens added. Source:-Al Jazeera News", -2292,2017/3/14,http://www.aljazeera.com/news/2017/03/death-toll-rises-65-addis-ababa-rubbish-landslide-170314043054377.html,Death toll rises to 65 in Addis Ababa rubbish landslide,Scuffles break out in Ethiopia as bereaved families accuse rescue workers of delays after garbage landslide kills 65. Residents blast government,"Bereaved families scuffled with rescue workers on Tuesday at a rubbish dump in the Ethiopian capital where a landslide killed at least 65 people this weekend. Relatives pushed and shoved emergency workers, angrily accusing them of delays and saying dozens of people were still missing after Saturday's disaster at the Reppi dump. ""Nobody is helping us. We are doing all the digging ourselves. It is shameful,"" Kaleab Tsegaye, a relative of one victim, told the Reuters news agency.- The disaster late on Saturday destroyed 49 makeshift homes-inside the landfill site on the outskirts of Addis Ababa, city spokesman Amare Mekonen said. Over the past few days, a few rescuers have used bulldozers to move piles of rubbish as hundreds of people have gathered at the scene, weeping and praying. Some dug through the garbage with their hands. ""My babies, my babies, my little daughter,"" cried one man wandering through the dump in the Ethiopian capital on Monday, tears streaming down his face. Neighbours said he had lost his wife and four children. On one side of the hill, volunteers sobbed as they pulled out three corpses, including a child found on top of its mother. Hundreds of people live on the 50-year-old Reppi dump, the capital's only landfill site, scavenging for food and items they can sell such as recyclable metal. It was not immediately clear what caused the collapse.- ""We expect the number of victims to increase because the landslide covered a relatively large area,"" Dagmawit Moges, head of the city's communications bureau, said. About 150 people were at the site when the landslide happened, resident Assefa Teklemahimanot told The Associated Press news agency. Addis Ababa Mayor Diriba Kuma said 37 people had been rescued and were receiving medical treatment. ""In the long run, we will conduct a resettling programme to relocate people who live in and around the landfill,"" he said. ""My house was right inside there,"" said a shaken Tebeju Asres, pointing to where one of the excavators was digging in deep, black mud. ""My mother and three of my sisters were there when the landslide happened. Now, I don't know the fate of all of them."" The resumption of dumping at the site in recent months likely caused the landslide, Assefa said. Dumping had stopped in recent years, but it resumed after farmers in a nearby region, where a new landfill complex was being built, blocked dumping in their area. READ MORE: Ethiopia declares state of emergency over protests Smaller landslides have occurred at the Koshe landfill in the past two years, Assefa said.- Some volunteers had also expressed anger at the city administration on Monday as media arrived at the scene. As well as the two excavators, only three ambulance workers were at the site. Scuffles broke out between them and residents as journalists approached. ""Stop pretending for the cameras!"" one local said. ""They haven't provided us with anything. Not even gloves. When it gets dark, we are using our mobile phones (for light)."" ""We have warned the authorities for more than 10 years as the rubbish piled up. There has not been any response. It is criminal negligence,"" said Taye Woldeamanuel, a 48-year-old whose sister narrowly survived the landslide. About 500 waste-pickers are believed to work at the landfill every day, sorting through waste from the capital's estimated four million residents. City officials say close to 300,000 tonnes of waste are collected each year from the capital, most of it dumped at the landfill. City officials had warned the site was running out of room and in recent years had been trying to turn the rubbish into a source of clean energy with a $120m investment. The Koshe waste-to-energy facility, which has been under construction since 2013, is expected to generate 50 megawatts of electricity upon completion. Source:-News agencies", -2293,2017/3/14,http://www.aljazeera.com/news/2017/03/prosecutors-summon-ousted-park-geun-hye-170314065031836.html,Prosecutors 'to summon' ousted Park Geun-hye,Local media says recently impeached Park Guen-Hye will be questioned as criminal suspect over corruption charges.,"South Korean prosecutors will summon ousted president Park Geun-hye for questioning as a suspect in a wide-ranging corruption case that led to her impeachment, according to prosecution sources and local media. The Constitutional Court dismissed Park from office on Friday when it upheld a parliamentary impeachment vote over an influence-peddling scandal that has shaken the political and business elite. Park has denied any wrongdoing. The prosecutors would decide by Wednesday when they would summon Park, the country's first democratically elected president to be removed from office, the Yonhap news agency reported on Tuesday. READ MORE: The day Park Geun-hye was ousted ""We will decide Wednesday when to summon former president Park and inform her,"" an unnamed spokesman of the Seoul Central District Prosecutors Office also told the AFP news agency on Tuesday.- It has not yet been decided whether Park will be called in to the prosecutors' office in private, or publicly before TV cameras and photographers, he added. The top court's ruling ended a power struggle that had consumed the nation for months and marked a stunning downfall for Park, who convincingly defeated her liberal opponent in 2012 with overwhelming support from older South Koreans, who remembered her father, a former South Korean leader, as a hero. Park left the Blue House presidential palace in Seoul on Sunday to return to her private home in the city as an ordinary citizen, stripped of her presidential immunity that has shielded her from prosecution. Park said through a spokesman that she felt sorry about not being to complete her term but added that the truth would come out, striking a defiant tone about the prospect of facing an investigation. She has already been named as a suspect for bribery and abuse of power for allegedly colluding with her secret confidante Choi Soon-Sil to extort money from a raft of companies, among them the giant Samsung corporation, whose chief has been indicted over a bribery scandal. Source:-News agencies", -2294,2017/3/14,http://www.aljazeera.com/indepth/opinion/2017/03/dutch-elections-europe-170313132845764.html,,,"On March 15, the Dutch are going to the polls. An event that does not usually attract a lot of international attention is likely to be different this time. The far-right and Islamophobic Geert Wilders, who wants to take the Netherlands out of the European Union, is leading in the polls. This sends a shiver through Europe's spine: if Wilders wins, following the Brexit and the United States presidential elections, it could well be a trampoline for nationalist parties in the coming French and German elections. If Wilders, the ""man who invented Trump"", can be so popular, even in a country known for its tolerance and openness, even in a country with a solid economy, what does this mean for Europe as a whole? In the tradition of philosophers such as Erasmus of Rotterdam and Baruch Spinoza, the Netherlands has always been proud of its identity based on the values of tolerance and freedom. In the specific Dutch context, this laid out the underpinnings of a ""live-and-let-live"" view on a wide range of issues, leading the country to assume a role at the forefront of the defending multiculturalism and broadening personal freedoms. By the end of the 20th century, this view of tolerance - just let everybody do their thing - seemed deeply engraved in the Dutch character. And just after the turn of the millennium it all changed. The Netherlands, at the time, was being governed by a broad coalition of social-democrats and liberals, and has enjoyed a period of great economic prosperity. With the 2002 elections, Pim Fortuyn, an academic-turned-politician, gained an enormous following by doing two things: Attacking the politics of the broad coalition on the grounds it was overly bureaucratic and being out of touch with the ordinary people, and declaring the Islam to be of an inferior culture. He obviously tapped into a vein of discontent with a government running the country in an unemotional and non-ideological way. The populists across Europe haven't yet won in the ballot box - even if Wilders wins, it would only have a symbolic significance, as it is extremely unlikely other parties are willing to form a coalition with him. - Then various developments - both in the Netherlands and abroad - opened a can of worms. Fortuyn was murdered, as was the movie director and anti-Islamic provocateur Theo van Gogh two years later, in 2004. And the following year, the Dutch voted against the European constitution in a referendum - an outcome largely ignored by the Lisbon Treaty. On the international front, the Dutch were confronted with the 2008 financial crisis, the eurozone crisis, the refugee crisis and the bloody attacks in Paris and Brussels by the Islamic State of Iraq and the Levant (ISIL) assailants happening close to the Netherlands. READ MORE: Who votes for Geert Wilders? This toxic cocktail of events fuelled the rise of Geert Wilders. He claimed ownership of Fortuyn's legacy by adopting a more extreme posture about the so-called threats of Islam, and by expressing a formidable discontent towards the governing elites in both Brussels and The Hague. He presents himself as the only politician defending the welfare state, the national identity and the border. He proposes doing so by closing the mosques, banning the Quran and taking the Netherlands out of the EU. Paradoxically, one could say that, ""thanks"" to Wilders, the Netherlands remains loyal to its tradition of being at the forefront of international attention - although in a different way. Considering his anti-Islamic, nationalistic and isolationistic agenda, Wilders can be seen as a pioneer of Trumpism. And, beyond the peculiarities of each country and culture, Wilders' project has a lot in common with other far-right and populist parties the EU: The National Front in France, the AfD in Germany, the Freedom Party in Austria and the Italian Lega Nord. What they share, most of all, is a firm grip on the debate on national identity, immigration, European unity and economic policy. The populists across Europe haven't yet won in the ballot box - even if Wilders wins, it would only have a symbolic significance as it is extremely unlikely other parties are willing to form a coalition with him - but it already gives them a great boost. All across the continent, the political discussion is being conducted on populist terms. OPINION: Who is a German? This Dutch election campaign presents a striking example. Prime Minister Mark Rutte of the centre-right The People's Party for Freedom and Democracy (VVD), who promised voters he won't form a coalition with Wilders after the elections, tried to prise a few Wilders' voters away by writing an open letter urging people to ""doe normaal"", act normal or get out. The Christian-Democratic Appeal leader Sybrand van Haersma Buma thought he could do better on the nationalist front and proclaimed schoolchildren should start their day by singing the national anthem - according to him the most beautiful and oldest in the world. True to form, populists claim to be the only ones understanding the identity, worries and needs of the people.-They found an enemy, actually two - Islam and (EU) elites - to form an identity they fight to return to. Nationalists and populists forced Europe to debate identity, tradition and culture. National governments and the European leaders until now either ignored or copied. Even if complemented with good, or just sound governance, ignoring the debate will leave part of the electorate permanently unsatisfied. Copying the populists' answers is accepting their means - as the Brexit example eloquently demonstrates. That's why the five possible scenarios for the future of the EU, presented by the President Jean-Claude Juncker last week, are largely beside the point. They aren't right or wrong in themselves, but they don't answer the questions of traditions, identity, and culture. For now, it is up to the populist parties not only to ask these questions, but also to answer them. But the future of Europe lies with its identity. Instead of being ashamed or afraid, those of us who do not agree with the answers the populists provide, we should have the courage to engage in this debate. And to finally propose convincing alternatives to the ones Wilders and his populist friends want us to believe. Silvia Mazzini is an assistant professor at the Humboldt University of Berlin. Kees Jan van Kesteren studied history in Leiden, the Netherlands and Berlin, Germany, and works as a journalist and translator. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2295,2017/3/14,http://www.aljazeera.com/indepth/features/2017/03/palestinians-denounce-pa-israel-security-coordination-170313103710942.html,Palestinians protest over PA-Israel security ties Hisham Abdallah,"As long as Israel's occupation continues, security coordination between PA and Israel will persist, analysts say. By","Ramallah, Occupied West Bank - The killing of a prominent Palestinian political activist in the occupied West Bank city of Ramallah by the Israeli occupation army last week has once again exposed one of the most controversial truths of the Palestinian Authority (PA), a semi-governmental body ruling three million Palestinians in the West Bank. PA security forces arrested Basil al-Araj, 34, in April 2016, with five of his friends, accusing them of carrying unlicensed weapons and planning to carry out an attack on Israeli targets. Under the Oslo agreements signed between Israel and Palestine in 1993, the PA is obliged to share information with Israel about any armed resistance to the Israeli occupation in a practice known as ""security coordination"". Araj and his friends were released after five months in PA prisons. While four of his friends were immediately re-arrested by Israeli forces, Araj went into hiding for more than two months in an old house in Ramallah. On March 6, the Israeli army found Araj and killed him, causing outrage among Palestinians. OPINION: What Palestinian-Israeli security cooperation? On Sunday,-protests rocked the city of Ramallah, in front of a court that was due to put Basil and his friends on trial, against the policy of security coordination between the PA and Israel, the killing of Araj, and the court's decision to put the six Palestinian men on trial. PA security forces responded with force, beating unarmed protesters with batons, firing tear gas and rubber-coated steel bullets, which only added fuel to the fire. At least 11 people were injured, including the father of Araj who was transferred to a hospital. Palestinians took to social media platforms venting their anger against the PA that ""crossed the line"" and vowed to continue demonstrations. The incident has revealed the cracks in the current status quo, where the Israeli occupation and the PA work hand in hand to suppress Palestinians who dare to speak out. It is very clear we have the Palestinian security services collaborating with the Shabak - the internal Israeli security service. It is a one-way service to the benefit of Israel, not the Palestinians. This type of coordination does not provide security to the Palestinians, rather, it is used against them. Shawan Jabarin, head of Al-Haq In April 2016, shortly after the five men were arrested, Mahmoud Abbas, president of the PA, said: ""Our security forces are working very efficiently to prevent terror. Just a couple of days ago, three young men were tracked down and arrested. They were planning an attack. In this context, our security cooperation with Israel is functioning well,"" Abbas told the German news outlet, Der Spiegel. Speaking to Al Jazeera, a high-ranking Palestinian security official who chose to remain anonymous fearing reprisal, said: ""Since Israel destroyed our main security centres in 2002, we rebuilt our security with the knowledge and the help of international donors (mainly US training), our security is in the service of the wellbeing of our people,"" he said. The duties of the PA security forces, however, have long been condemned by Palestinians, who even see them as ""collaborators"" with the Israeli occupation. ""It is very clear we have the Palestinian security services collaborating with the Shabak - the internal Israeli security service. It is a one-way service to the benefit of Israel, not the Palestinians,"" Shawan Jabarin, head of the Al-Haq human rights organisation in Ramallah, told Al Jazeera. ""This type of coordination does not provide security to the Palestinians, rather, it is used against them. It is lethal, dangerous, and should be terminated,"" said Jabarin. Though it has not been proven whether the policy of security coordination directly resulted in the killing of Araj, Al-Haq and other human rights organisations say they have ""evidence of collaboration between the two sides"".- ""We have collected testimonies from Palestinians who were detained by both Israeli and Palestinian security forces. They said they were confronted by Israelis with the information they gave to their Palestinian jailers during interrogation,"" Jabarin said. It has been almost 23 years since the implementation of Oslo and a lot has changed, except for the policy of security coordination between Israeli and Palestinians. Despite the fact that Palestine Central Council, the intermediary body between the Executive Committee of the Palestinian Liberation Organisation (PLO) and The Palestine National Council, decided to suspend security coordination with Israel in March 2015, the practice still exists. While relations between the PA and Israel have seen tough times through escalation of attacks, a large increase in the building of Israeli settlements in the occupied West Bank and East Jerusalem, three wars on Gaza, and the end of any real negotiations for a diplomatic solution to the conflict, security coordination remains intact. Analysts say that as long as Israel continues to occupy Palestinian territories, the practice of security coordination will persist. READ MORE: How US security aid to PA sustains Israel's occupation ""Once the Palestinians agreed on a [Palestinian] authority in the shadow of occupation, there will always be this kind of coordination,"" Ali Jarbawi, professor of political science at Birzeit University in Ramallah, and ex-PA minister, told Al Jazeera. ""It does not matter if the agreements are still valid or not, this will continue as long as occupation still exists,"" he said. Radi Jarai, a lecturer at Al-Quds University, who spent 13 years in Israeli jails prior to the Oslo agreements, said: ""[Israel] still runs its own network of spies and collaborators; they attack with or without permission or knowledge of the PA. You can call it security cooperation, or whatever you like. It will make no difference, but more misery for the Palestinians."" Source:-Al Jazeera", -2296,2017/3/14,http://www.aljazeera.com/indepth/features/2017/03/modi-god-gift-pakistan-security-establishment-170313051521647.html,'Modi is God's gift to Pakistan security establishment' Hafsa Adil,"Pakistani novelist Mohammed Hanif talks about shrinking freedoms, liberal voices and human rights in Balochistan. By","In January, five Pakistani activists disappeared. Some were picked up from their homes, others from their place of work. One man went missing while searching for a house to rent for his family. Their crimes remain unclear. Roughly three weeks later, four of them were released, but not charged with an offence. Some have spoken of being tortured by Pakistan's powerful military and intelligence agencies. Others have chosen not to speak at all, bound to silence by those who abducted them. For those who have spoken out, the reason for their abduction appears to be that they were linked to Facebook pages or social media accounts that were criticising the military's policies and the religious right, or for espousing the cause of persecuted minorities. Mohammed Hanif is a Pakistani journalist and writer who has been nominated for several awards, including the prestigious Man Booker prize for his debut novel, A Case of Exploding Mangoes, in 2008. He has reported extensively on minority rights, as well as enforced disappearances in Pakistan's campaign against separatist fighters in the country's southwestern Balochistan province. OPINION: Lal Shahbaz Qalandar and Pakistan's pluralistic history In an interview with Al Jazeera on the sidelines of the recently held Karachi Literature Festival, he talked about the shrinking freedoms in mainstream and social media in Pakistan, the role of liberal voices and the state of human rights in Balochistan. Al Jazeera: Social media, at least when it started off, allowed a lot more democratic space for dissidents and those with a liberal or minority point of view. However, it is increasingly making them vulnerable to state surveillance and reprisals. How do you see the transformation of social media and what lessons have you drawn from the goings-on in Pakistan and other countries? Mohammed Hanif: I think social media has thrown many of our lazy assumptions into question. After all, what is a dissident? Someone sitting with a gun on a mountain or someone tweeting bad poetry? What is a liberal? Someone who wants to be saved from both but wants all the freedom to tell us what is really wrong with this world? And aren't social media users in Pakistan actually a minority as compared with the ones who can't afford smartphones or can't read or write? Social media in Pakistan is a love-fest and a lynch mob. I think the state realises its potential and it tried to send a message by kidnapping some activists in Pakistan. READ MORE: In Pakistan, a shrine to murder for 'blasphemy' The perverse thing about social media is that nobody really knew these guys who were picked up, but after they were picked up, we all knew about them. They were either our potential liberators or certified traitors. When luvvies and lynch mob collide on the internet, who needs facts? It's all very entertaining and also reassuring that something very new can confirm our oldest prejudices. Al Jazeera: India is seen as a land of opportunity for Pakistani film artists and musicians. Why have Pakistani writers - novelists, essayists, commentators in English, Urdu, Punjabi etc - not been able to exploit the opportunity in the same fashion? Or do we not hear about it as much? Hanif: Every Pakistani writer I know has been published in India, translated into Indian languages and has done the festival circuit. There's lots more money at stake when singers or actors get banished, so we hear more about it. Once or twice Indian right-wingers have tried to force the bookshops to stop selling books by Pakistani authors, but that reeked of desperation. Go and burn albums of Pakistani musicians if you want to make an impact. Who cares about books anyway? Al Jazeera: You have written in The New York Times deploring the way India-Pakistan issues are handled by jingoistic Indian TV channels and their Pakistani counterparts. Do you think this trend has to do with authentic ultra-nationalistic passion or is it a symptom of failing media business models on both sides of the border? Hanif:-I think passions are real. You don't kill over a million people as we did during the partition or fight four and a half wars without passion. READ MORE: Disappeared - Silencing Pakistan's activists Every few years comes a time when it seems we are getting a bit less passionate. We can trade tomatoes and onions and cheaper heart bypasses across the border. But then someone rekindles our murderous passions. I don't think media businesses on both sides are failing; they are transforming into more intelligent monsters. Is there more money in peace or is there more money in war? Al Jazeera: What can the writers and intellectuals of Pakistan and India do to wrest back public discourse from the ultranationalists and hardline politicians in order to inject good sense, goodwill and a spirit of unity among the peoples of common rich heritage? Hanif: I think maybe they can start by going on about common rich heritage. We kind of lived together and killed each other for centuries. Our common rich heritage is very contested and we should continue to contest that. Writers and intellectuals from both sides have been hugging each other at festivals and conferences and in music collaborations. They should continue doing that but let's not live in the illusion that they can erase an inch of barbed wire on our borders. Al Jazeera: Do you think Pakistan's liberal-secular forces are strong enough to confront the new set of challenges they are facing from illiberal elements of the state? Leaving the country for a haven abroad may be necessary for some people, but does it really advance their cause? Hanif: I think the first cause is to stay alive. So if someone is lucky enough that they can leave the country, let's not grudge them. Let's not say they have betrayed some cause. Let's not get into definitions. But I tend to believe Pakistan liberals have had a lot of power, still do. I think instead of doing a hard day's liberal work, they like to point out the illiberal elements in the state. I do feel that the illiberal elements you blame provide more of a sense of community here. Liberals just sit by themselves and fume over ""these people"", but where did they come from? Oh, OK, let's blame General Zia-ul-Haq. Al Jazeera: Do you think the advent of a Hindu nationalist government in India and the Indian security crackdown in Kashmir have, in an indirect way, influenced the political and security climate in Pakistan? Hanif: Modi is God's gift to the Pakistani security establishment. And what you call a crackdown in Kashmir is a campaign of mass blinding of a population, as Kashmiri writer Mirza Waheed has written. It has never happened in human history. Al Jazeera: Your second novel revolves around the life of a person from Pakistan's minorities. What have your observations and experiences been with the minority communities that prompted you to pick this subject? How drastically do you think the space and voice for minorities has shrunk in Pakistan? Hanif: My experiences are quite limited. I have this Christian property-dealer friend who has written essays and books about Pakistani Christian heroes. In order to prove his community's patriotism, he has to write these glorious stories about Christian officers and men who fought in our wars against India. I don't know why Azam Miraj should have to prove his patriotism when his forefathers and my forefathers have lived on the same land and spoken the same language for centuries. He now has to worry about what bits of newspaper he can throw into the trash can because, you know, sometimes newspapers have bits of sacred texts. Al Jazeera: Do you think the recent spate of arrests of activists shows a growing intolerance towards any criticism of the state, the establishment and their policies towards religious extremism? What role, if any, does mainstream media play in vilifying these liberal voices? Hanif: I feel that the state is tired and jaded. Mainstream media and social media are not that different: a bit of a love fest, a bit of a lynch mob. It's the same old game. A businessman playing a politician, politicians playing the media, an intelligence-agency type trying to tell everyone what to do. In social media, small voices sometimes get amplified, and whenever that happens we are back to the old-fashioned games where we have to figure out who can kidnap someone, or who can kill and never be held accountable. Al Jazeera: Pakistan regularly makes the list of the most dangerous places for journalists, and Balochistan in particular has been termed the graveyard for journalists. Can you share what your interactions with people in Balochistan, particularly journalists, writers and activists, revealed about the province's place in the media? Do you see any hope for improvement in the environment for journalists in Balochistan and Pakistan? Hanif: The grand old man of Balochi literature, Ghani Parwaz, said it about why we don't hear more Baloch voices: fear of the state and prejudice from the people outside of Balochistan who seem to believe that it's a land of gold and copper and gas. Journalists in Balochistan have been killed for simply reporting that someone else has been killed. I have seen parents worry if their kids have done high school and picked up any politics. If you are a literate and political Baloch, your life expectancy automatically comes down drastically. But I am told things are getting better. If you are a journalist in Pakistan, you should thank your stars that you are not Baloch. Source:-Al Jazeera News", -2297,2017/3/14,http://www.aljazeera.com/indepth/features/2017/03/germany-rejected-asylum-seekers-fear-deportation-170310180351202.html,Germany's rejected asylum seekers fear deportation Patrick Strickland,Fear spreads among rejected Afghan asylum seekers as Germany vows to increase deportations in 2017. By 'We almost died' Fighting deportations 'They'd kill my whole family',"Berlin, Germany - It took Zabihullah Karimi two months to make it from his native Afghanistan to Germany, where he arrived 15 months ago. He crossed mountains, fields, the Aegean Sea and militarised borders, dealing with dubious smugglers and dodging border guards along the way. Yet two weeks ago, German asylum authorities informed him that he will-be sent back to the war-torn country from which he fled. Although he filed an appeal, the 31-year-old asylum seeker fears that returning to Afghanistan will put his life in danger. Sitting on the floor of his modestly furnished room in a borough of eastern Berlin, he holds his rejection letter and recalls his decision to leave his homeland. Karimi never imagined returning to Kabul, a city designated as safe by the German government. Before he left in the hope of reaching safety in Europe, he says he was urged by the Taliban to leave his job at a consultancy agency that worked closely with the Afghan Ministry of Defence - or face death. ""I told [the German authorities] the whole story, and now I've received a letter saying I can go and stay in Kabul [because] it's secure,"" he tells Al Jazeera, shaking his head. ""It's not secure. Every day there is a suicide attack [and] attacks on groups [of civilians],"" he continues. ""Even the president's palace is not secure."" Germany has tightened asylum regulations and plans on expediting deportations after receiving more than a million refugees and migrants in 2015 and hundreds of thousands more the following year. In January, hundreds of people protested at the Frankfurt Airport when the German government deported 26 Afghans back to Kabul, the Afghan capital, as part of a memorandum of understanding with the Afghan government. Although three German states have temporarily halted deportations to Afghanistan, the government-plans on returning 11,900 Afghans. In December, 34 rejected asylum seekers were sent back to Afghanistan. According to the United Nations, civilian casualties in Afghanistan reached a record high in 2016, with 11,500 civilians killed or wounded. Of that total, one third were children. The German government hopes to deport hundreds of thousands back to several countries in the Middle East, Southeast Asia and Africa in 2017. ""In 2016, some 700,000 applications for asylum were made, and almost 300,000 were rejected. We want to deport these people swiftly,"" Peter Altmaier, the head of the Chancellor's Office and the government's coordinator on refugee affairs, told local media last month. ""Otherwise it hurts the credibility of our country and its laws."" Karimi says he braced himself for death several times while en route to Europe. While crossing the first border during his journey, he says a couple of refugees were killed or injured when Iranian border guards opened fire on his group in the dark of night. ""Someone went to light a cigarette and [a guard] saw it,"" he recalls. ""They killed my aunt's brother-in-law."" After making it to Turkey and setting sail on an overcrowded dinghy bound for Greece, he recalls feeling certain he would die when the engine stopped working halfway. But as the waves grew and fear overcome the passengers, a Turkish military helicopter arrived and hovered over them. ""He said there's a boat coming and [we should] just wait,"" he recalls. ""I said, 'We will die and you [tell us] to just wait.'"" A rescue boat eventually showed up and returned the passengers to the Turkish coast, where they waited until the following day to try again. They made it safely on the second attempt. From there, Karimi moved from a Greek island to the mainland, through the Balkans and central Europe until he reached Berlin. He says the deportations won't just put his life at risk but will result in the deaths of many Afghans who need protection outside their country. In January, Germany announced it would start returning newly arrived asylum seekers back to Greece in mid-March as part of the European Union's so-called Dublin rules, which require asylum seekers to apply in the first EU country they enter. Germany's decision has been widely criticised by rights groups owing to the harsh conditions and overcrowding in the refugee camps of Greece, where more than 60,000 refugees and migrants have been stranded since the EU-Turkey refugee deal last March. PRO ASYL, a Germany-based human rights group that advocates for refugees in Europe, has lobbied against deportations and returns to Greece. Last week, they delivered to the German government a petition with more than 50,000 signatures calling for more refugees to be relocated to Germany. ""Tents, a lack of food, a lack of medical treatment - it's an ongoing humanitarian crisis [in Greece], but it's fabricated by the EU,"" says Karl Kobb, PRO ASYL's director of European affairs. ""There's enough space and enough facilities [in Germany] to welcome all of them trapped in Greece. It would show a commitment to refugee protection and a European approach based on solidarity."" Ulla Jelpke, a spokesperson for Germany's Die Linke (The Left) party, criticised German Chancellor Angela Merkel's shift in policies towards refugees since initially declaring Syrian asylum seekers welcome no matter which EU country they entered first. ""Germany absolutely has to take responsibility and accommodate these people here and help them proceed with their asylum procedure, even if they [first registered] elsewhere,"" Jelpke says. ""The refugee issue has been instrumentalised as a political tool the [German government's] coalition parties are using against each other."" Naser Hashemi, 22, was a member of the security forces back in Afghanistan, where he served in the Herat province. In late 2015, he says he decided to leave the country after receiving threats from the Taliban. ""They [the Taliban] sent me a letter, and then they sent a letter to my family,"" he tells Al Jazeera. ""They wanted me to leave the job ""?otherwise they'd kill my whole family."" Because his brother-in-law had already been killed by the Taliban, Hashemi says he knew the threats weren't empty. Last month, German authorities declined his application for asylum, giving him an opportunity to appeal within two weeks or leave the country within 30 days.- ""I just want to study and work and eventually join the police,"" he says. ""I am thankful to the German people for helping me over the last year."" Hashemi concludes: ""If I go back to Afghanistan, the Taliban will kill me ""?At night, they still come to [our] village. They told my father they know I'm in Germany."" Follow Patrick Strickland on Twitter:-@P_Strickland_ Source:-Al Jazeera News", -2298,2017/3/14,http://www.aljazeera.com/news/2017/03/mark-rutte-geert-wilders-spar-heated-tv-debate-170314043327539.html,"Mark Rutte, Geert Wilders spar in heated TV debate","Two days before crucial general election, leading candidates lay starkly opposing visions of their country's future.","Dutch Prime Minister Mark Rutte and his main rival at national elections, the far-fight populist Geert Wilders, have faced off on live television for the first time, in a heated debate that centred around the country's relationship with Turkey and its future in the European Union. Two days before Wednesday's crucial general election, The Netherlands is mired in a war of words with Turkey's President Recep Tayyip Erdogan over the government's decision to block two Turkish ministers from addressing political rallies in Rotterdam ahead of an April referendum. Referring to the ongoing row, Wilders, known for his anti-immigration stance, said Rutte-should ""at least throw the Turkish ambassador and his staff out of the country. READ MORE: Who votes for Geert Wilders? ""You are being taken hostage by Erdogan. Close the Dutch borders,"" Wilders told the prime minister, as tempers flared in the 30-minute debate ---their only nationally televised face-to-face event.- ""That's a totally fake solution,"" Rutte shot back. ""You want Nexit, you want The Netherlands out of Europe. You know what it will cost ... don't do it. ""This is the difference between tweeting from the couch and running the country,"" Rutte said, portraying Wilders as unfit to lead-for often communicating via tweets. ""If you run the country you have to take sensible decisions."" Polls suggest Wednesday's results could be close, with Rutte's Liberal VVD returning as the largest party in the 150-seat parliament by a small margin. The elections are being closely watched as a signal of the possible rise of far-right and populist parties in Europe, with key elections also planned this year in France and Germany.- ""I want The Netherlands to be the first country which stops this trend of the wrong sort of populism,"" Rutte told reporters, just hours before the debate. Wilders is unlikely to be able to form the next government even if he wins the popular vote as all mainstream parties have ruled out working with him. The Netherlands' proportional representation voting system guarantees coalitions. ""This election has increasingly become defined by the role of multiculturalism in Dutch society,"" Al Jazeera's Dominic Kane, reporting from Rotterdam, said. ""Rutte and his government are presenting themselves as the parties of tolerance and support of the EU. and Wilders is appealing to those who feel their country has changed too much in recent years."" Wilders, who says he is on a mission against the ""Islamisation"" of the country, has promised to shut Dutch borders to Muslim immigrants, close mosques and ban sales of the Quran.- He also wants to follow the British and pull the country out of the European Union which it helped found.- In the debate, Rutte mocked Wilders' election pledges to ban the Quran, asking if he intended to establish a ""Quran police"" to go door to door confiscating Islam's holy book. The two leaders are due to take part in one final pre-election debate with other political leaders Tuesday night. Source:-Al Jazeera and news agencies", -2299,2017/3/14,http://www.aljazeera.com/indepth/interactive/2016/10/battle-mosul-controls-map-161023134534524.html,Battle for Mosul: Who controls what,"Mosul, Iraq's second largest city, is now the scene of a battle for control between Iraqi, Kurdish, and ISIL forces.",, -2300,2017/3/14,http://www.aljazeera.com/news/2017/03/recep-tayyip-erdogan-lashes-anew-angela-merkel-170313203832331.html,Recep Tayyip Erdogan lashes out anew at Angela Merkel,Scathing broadside against German chancellor came hours after EU urged Turkish leader to halt inflammatory rhetoric.,"Turkey's President Recep Tayyip Erdogan-continued his rhetorical attacks on European leaders on Monday by accusing German Chancellor Angela Merkel of ""supporting terrorists"".- Merkel called the accusations ""clearly absurd"" after Erdogan made the comments in an interview with Turkey's A Haber TV. ""The chancellor has no intention of taking part in a game of provocation,"" Merkel spokesman Steffen Seibert said in a brief written statement. -- Erdogan - whose government is embroiled in a spiraling row with some European governments over the cancellation of political rallies on their soil ahead of an April referendum - had earlier accused Berlin of not responding to 4,500 dossiers sent by Turkey on suspects. ""Mrs Merkel, why are you hiding terrorists in your country? Why are you not doing anything?"" Erdogan said. ""Mrs Merkel, you are supporting terrorists."" Erdogan did not cite specifics, but made references to the Kurdistan Workers' Party (PKK), a group deemed a ""terrorist organisation"" by the Turkey, the European Union and the United States. The scathing broadside against Merkel came hours after the EU urged him to avoid inflammatory rhetoric in a growing standoff with Germany and the Netherlands over the blocking of Turkish ministers seeking to address rallies promoting a ""Yes"" vote in the April 16 referendum.-- Erdogan has been seeking to harness the Turkish diaspora vote - which numbers as many as 1.4 million in Germany alone - ahead of the referendum on creating an executive presidency and scrapping the post of prime minister. - READ MORE: Erdogan compares Germany rally ban to 'Nazi practices' The president twice over the weekend-accused NATO ally Netherlands of acting like the Nazis, comments that sparked outrage in a country bombed and occupied by German forces in World War II. The row erupted on March 2 when local authorities in the western German town of Gaggenau cancelled a rally which Turkish Justice Minister Bekir Bozdag was set to attend, ostensibly for logistical reasons. Other local authorities followed suit, sparking fury in Ankara. Turkey said on Monday it would suspend high-level diplomatic relations with the Netherlands after Dutch authorities also prevented Turkish ministers from speaking at rallies on Saturday. Deputy Prime Minister Numan Kurtulmus, the government's chief spokesman, also said Ankara might re-evaluate its deal with the EU to halt the flow of migrants from Turkish shores to Europe. ""We are doing exactly what they did to us. We are not allowing planes carrying Dutch diplomats or envoys from landing in Turkey or using our airspace,"" Kurtulmus told a news conference. Mustafa Akyol, a Turkish journalist and visiting fellow at the Freedom Project at Wellesley College, told Al Jazeera that both sides were playing into nationalist emotions ahead of key votes in their respective countries. ""Within Turkey this [dispute] has certainly stoked nationalist ambitions and nationalist feelings,"" said Akyol. ""And even openly President Erdogan's supporters are saying that this is going to help them in the upcoming referendum in April."" However, Akyol said that the dispute could ultimately be damaging for both countries. ""This is creating a big rift between Turkey and the West, and that is combined with anti-Turkish or anti-Islamic elements in European politics right now; the far-right and Geert Wilders in Holland. So we are going to a rift and I think that is bad for both sides.""- Source:-Al Jazeera and news agencies", -2301,2017/3/14,http://www.aljazeera.com/news/2017/03/trump-wiretapping-inquiry-170313230109060.html,DOJ seeks more time on Trump wiretapping inquiry,Justice department says more time needed to respond to lawmakers about President Trump's claim Obama wiretapped him. Not 'literally' wiretapping,"The Department of Justice has requested more time to respond to a request from lawmakers on the House of Representatives Intelligence Committee for evidence about President Donald Trump's allegation that then-president Barack Obama wiretapped him. The department had been expected to provide a response by Monday to the House Intelligence Committee, which has made Trump's wiretapping claims part of a bigger investigation into Russian interference in the 2016 presidential election. But spokeswoman Sarah Isgur Flores said in a statement that the department has asked for more time to ""review the request in compliance with the governing legal authorities and to determine what if any responsive documents may exist"". The committee replied in a statement that it wanted a response by the time of a planned hearing on March 20. ""If the committee does not receive a response by then, the committee will ask for this information during the March 20 hearing and may resort to a compulsory process if our questions continue to go unanswered,"" a spokesman said. The justice department is not required to respond to the representatives""?request for evidence or meet its deadline. Trump tweeted earlier this month that Obama had ordered him to be wiretapped. He presented no evidence, and the former intelligence director said last week that the claim was false. The White House on Monday appeared to soften Trump's claim. Spokesman Sean Spicer said the president was not using the word wiretapping literally, noting that Trump had put the term in quotation marks - which he did only in his first tweet. Is it legal for a sitting President to be ""wire tapping"" a race for president prior to an election? Turned down by court earlier. A NEW LOW! I'd bet a good lawyer could make a great case out of the fact that President Obama was tapping my phones in October, just prior to Election! How low has President Obama gone to tapp my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy! ""The president used the word wiretap in quotes to mean broadly surveillance and other activities,"" Spicer said. He also suggested Trump was not accusing Obama specifically, but instead referring to the actions of his administration. Trump himself has not commented on the matter since his March 4 tweets. Source:-News agencies", -2302,2017/3/14,http://www.aljazeera.com/news/2017/03/obamacare-millions-uninsured-170313221844177.html,Repealing Obamacare would leave 'millions' uninsured,Nonpartisan report projects that 52 million people will be uninsured by 2026 if Republican bill becomes law.,"Fourteen million Americans would lose coverage next year under a Republican plan to dismantle Obamacare, according to a government agency tasked with performing cost-benefit analyses of proposals. The report by the-Congressional Budget Office (CBO), released on Monday,-dealt a potential setback to President Donald Trump's first major legislative initiative. The CBO projected that 52 million people would be uninsured by 2026 if the bill became law, compared with 28 million who would not have coverage that year if the law remained unchanged. Two House of Representatives committees have approved the legislation unveiled by Republican leaders last week that would dismantle Obamacare. But it faces opposition from not only Democrats but also medical providers including doctors and hospitals and many conservatives. READ MORE: Americans split over replacing Obamacare The CBO said in its report that the Republican plan would save $337bn in government spending between 2017 and 2026. The savings would come primarily in reduced spending for Medicaid, an assistance programme for low-income families, and an end to subsidised health insurance, two of the hallmarks of Obama's policy. Those changes mean that, by 2018, 14 million more people would be without insurance than if existing legislation was allowed to remain in place. That figure grows to 21 million by 2020 and 24 million by 2026, the CBO reported. READ MORE: Trump's complicated crusade against Obamacare The Trump administration was quick to defend the proposal. ""We disagree strenuously with the report,"" Health and Human Services Secretary Tom Price said at a briefing. He said the plan being considered-offers greater choice and puts patients-and doctors in charge of healthcare, and not the federal government. Price said numbers would remain up because people would not voluntarily leave Medicaid. However, he also noted that there would be some increase in the number of those not covered because the new law would not require health care insurance, as Obamacare does. He also noted that the report overlooks the fact that people will have a greater choice under the Republican plan. ""They are going to be able to buy a coverage policy that they want for themselves and their family,"" he said. Source:-News agencies", -2303,2017/3/14,http://www.aljazeera.com/blogs/americas/2017/03/trump-obamacare-170314003756826.html,,,"On the campaign trail, Donald Trump showed his sharp political instincts by promising voters that no American would go without health insurance. ""I am going to take care of everybody,"" he said. ""I don't care if it costs me votes or not. Everybody's going to be taken care of much better than they're taken care of now.""- That declaration won him overwhelming support from white men and women, whose life expectancy has begun to decline. But Trump's concept of healthcare reform ran counter to the ideological convictions of the Republicans controlling Congress. They voted more than 60 times to repeal Barack Obama's signature legislative achievement, the Affordable Care Act. But they could not overturn it, because the president used his veto.- The law, better known as Obamacare, had been adopted without a single Republican vote-when Democrats were in charge in the Capitol. As Republicans now proceed to dismantle it - another promise to voters - Trump has given his blessing to its replacement, which is running into a wall of resistance ranging from doctors, hospitals, seniors advocates and many state governors to free-market conservatives. Obamacare's defenders warn the Republican alternative would strip millions of patients of coverage acquired in the past few years and cost more both to taxpayers and poorer, older patients. Conservatives instead call the new bill a socialist sell-out because it would continue to provide some subsidies, albeit more meager, to pay for unaffordable insurance premiums that show every sign of becoming even more expensive. The economics of healthcare have bedeviled many countries but America's history of patchwork remedies is particularly remarkable. Paying for medical treatment was largely a private or charity responsibility until the 1940s. That's when some employers began to provide insurance as a fringe benefit to evade wartime wage controls. In 1965, the government and taxpayers emerged as a dominant factor. READ MORE: Americans split over replacing Obamacare The enactment of Medicare guaranteed basic doctor and hospital coverage for everyone aged 65 and older, while Medicaid helped states pay for long-term care and insurance for certain classes of the poor and disabled. Almost 30 years later, Bill Clinton launched another presidential effort at universal coverage, in the teeth of resistance from private insurers and small business owners, who objected to requiring that they cover their employees. His wife, Hillary Clinton, was assigned the task of designing and steering the plan through Congress. It never even was put up for a vote. Obamacare was aimed to help fill the gap for the 16.3 percent of Americans who remained without coverage. By the time Obama left office the number was down to 8.6 percent, the lowest in history. But Obama's seeming success has always been overshadowed by the law's unpopularity. Many resent the requirement that every American be insured in some way or else pay a penalty. Yet the bigger objection derives from a fundamental reality of insurance pools - a healthy, younger majority whose premiums finance care for the far fewer who are older and sicker. Another reality - a big redistribution of wealth through higher taxes, the financial dynamic underlying Obamacare. Without those added taxes, paid by wealthier patients, highly profitable drug companies and - potentially - medical device makers, private insurers would see no profit and exit from the marketplace. Republicans have pointed to another of Obamacare's flaws - the threat of too few competing insurance companies offering coverage, a sign that the system had begun a ""death spiral"". But their proposed reforms have yet to address the crushing economic burden of American healthcare for too many. It's the reason that medical bills are still a significant cause of personal bankruptcy.- Trump has made a pledge that Republican legislators have been too cautious to repeat - that not only would everyone be protected by insurance but that the cost of premiums for everybody would fall. Yet long before Trump became a successful Republican politician, he argued that the solution for his country's dilemma was the popular system across the northern border, where it's the government, not private insurers, that pay the doctors and hospitals. ""Doctors might be paid less than they are now, as is the case in Canada,"" Trump wrote in one of his books back in 2000, ""but they would be able to treat more patients because of the reduction in their paperwork.-The Canadian plan also helps Canadians live longer and healthier than Americans.""- Why doesn't he believe that any longer? ""It could have worked in a different age,"" he said on his climb to the presidency. But he's never explained why not now. Source:-Al Jazeera News", -2304,2017/3/14,http://www.aljazeera.com/news/2017/03/brexit-article-50-legislation-170313222153065.html,UK government wins approval for Article 50 legislation,"Government to trigger Article 50 by the end of March, formally starting the country's exit from the EU.","The British government has won final approval from parliament for legislation giving Prime Minister Theresa May the power to trigger the country's exit from the European Union. British Brexit minister David Davis welcomed parliament's approval on Monday. ""Parliament has today backed the government in its determination to get on with the job of leaving the EU ... We are now on the threshold of the most important negotiation for our country in a generation,"" Davis said in a statement. ""So we will trigger Article 50 by the end of this month as planned and deliver an outcome that works in the interests of the whole of the UK."" After members of the lower house of parliament voted earlier in the day to throw out changes to the bill made by the upper house in recent weeks, the upper house also agreed to pass the legislation unamended. The bill goes next to Queen Elizabeth for final signoff, and May can then invoke Article 50, the formal mechanism for leaving the EU,-at any time she chooses. OPINION: If Scotland leaves, England will lose the Brexit game Meanwhile, Scotland's leader said on Monday she would seek authority for a new independence referendum because Britain is dragging-Scotland-out of the EU against its will. Scottish First Minister Nicola Sturgeon demanded an independence referendum to be held in late 2018 or early 2019, once the terms of Brexit have become clearer. But May is preparing to reject the demand, the Times newspaper reported. ""The prime minister has said this would mean a vote while she was negotiating Brexit and I think that can be taken pretty clearly as a message that this timing is completely unacceptable,"" the Times quoted an unidentified British government source as saying. The results of the June 23 Brexit referendum called the future of the UK into question because England and Wales voted to leave the EU but Scotland and Northern Ireland voted to stay, with an overall 55 percent in favour of leaving. Scots rejected independence by 55-45 percent in a referendum in September 2014. Source:-News agencies", -2305,2017/3/14,http://www.aljazeera.com/news/2017/03/iraq-forces-hit-stiff-resistance-mosul-city-170313201054439.html,Iraq forces hit stiff resistance in Mosul's Old City,"More than 65,000 fled their homes in the past two weeks as Iraqi fighters push into the city's densely populated west.","Iraqi forces battling ISIS/ISIL faced tough resistance from snipers and mortar rounds on Monday as they tried to advance on Mosul's Old City and a bridge across the Tigris River in their campaign to retake it. Progress was slowed by heavy rain but units were only 100 metres from the Iron Bridge that connects the Old City with the eastern side of Mosul, military officials said. Since starting the campaign in October to push the Islamic State of Iraq and the Levant (ISIL) out of its last stronghold in the country, Iraqi forces with US-led coalition support have recaptured eastern Mosul and about 40 percent of the city's west. READ MORE: Iraqi general - 40 percent of west Mosul taken from ISIL - Federal police and rapid response brigades - an elite interior ministry unit - said over the weekend they had entered the Bab al-Tob area of the Old City, where fighting is expected to be toughest because of its narrow alleyways where armoured vehicles cannot pass. But advances in the area stalled on Monday. ""Due to the bad rainy weather, operations have been halted for now. We are facing stiff resistance from the Daesh [ISIL] fighters with sniper shots and mortars,"" an officer told Reuters news agency. Troops exchanged fire with snipers, while trying to drag blinds made of blankets and curtains across streets to obscure their movement. Heavy explosions later hit a hotel where ISIL gunmen had been returning fire. ""We're moving on the old bridge ... and then we will free that area and hopefully in a few days we'll liberate the west side of Mosul,"" said one Iraqi captain. IN PICTURES: Mobile courts give hope to displaced Iraqis As many as 600,000 civilians are trapped with ISIL fighters inside Mosul, which Iraqi forces effectively sealed off from the remaining territory the hardline group controls in Iraq and Syria. Iraqi forces include army, special forces, Kurdish Peshmerga, and Shia militias. More than 200,000 Mosul residents have been displaced since the start of the campaign in October, of which more than 65,000 fled their homes in the past two weeks alone, according to the International Organisation for Migration. Residents fled from the Wadi Hajjar district carrying bags and belongings through the muddy streets to areas controlled by the army before being transported out by truck. ""It was a nightmare and we are finally done with it. It cannot be described. There is no water and there is no food and nothing,"" said Ghanem Mohamed, one of the residents who fled. Capturing the Iron Bridge would mean Iraqi forces control three of the five bridges spanning the Tigris River between eastern and western Mosul, all which have been damaged by ISIL and US-led air strikes. The two southernmost bridges have already been retaken by Iraqi forces. Losing Mosul would be a major loss for ISIL. It is by far the largest city the group has held since its leader Abu Bakr al-Baghdadi proclaimed himself head of a self-styled caliphate spanning Iraq and Syria from a mosque in Mosul in the summer of 2014. Source:-News agencies", -2306,2017/3/14,http://www.rte.ie/news/2017/0314/859533-coastguard-mayo-incident/,'Hopes fading' over missing Coast Guard helicopter crew,,"The Head of Operations of the Irish Coast Guard has said-""hopes are fading"" of finding three crew members still missing off the west coast of Mayo. One member of the crew of the-Rescue 116 Coast Guard helicopter has been located in a critical condition, while the search for the other three members continues. The major sea search-is being carried out around 10km west of Blacksod in Co Mayo after the Search and Rescue-helicopter with four crew on board lost contact around-1am. It was providing cover for another Coast Guard helicopter on a mission-at the time. What appears to be wreckage has been found near the last known location of the missing helicopter. The L?-R��is��n-arrived in the search zone just before 9am to assist. Speaking on RT?'s Morning Ireland, Eugene Clonan-said that while the search for three missing crew members continues, hopes of finding them are fading. He said today was a dark day for Ireland's emergency services. He said-the last communication with Rescue 116 was at 12.45am-when it said it was approaching Blacksod in Co-Mayo to refuel (after providing support to Rescue 118) and there was no indication of any problem. When Rescue 116 failed to respond after a communications search,-a search began. The first search and rescue unit on scene was Rescue 118-from Sligo, and that crew discovered debris on the surface of the water about 1.5 nautical miles southeast of Blackrock lighthouse, around six nautical miles off the coast from Blacksod.- Mr Clonan said visibility last night ""wasn't too good""-but suitable for carrying out the operation. He said Rescue 116 is a very new one aircraft, a Sikorsky S92, and has had regular maintenance checks. Search and Rescue helicopters from Sligo and Shannon-are involved in this morning's-search, along with an Air Corps plane, lifeboats from Ballyglass and Achill-and five local fishing boats. Fergus Sweeney brings @morningireland the latest from Co Mayo in the search for missing Coast Guard helicopter More: https://t.co/zhnpyvTHqY pic.twitter.com/Pl276bMfKG ""?RT? News (@rtenews) March 14, 2017 In a statement earlier this morning, the Coast Guard said the Sligo-based Rescue 118 helicopter completed an evacuation-of a crewman requiring urgent medical attention from a UK-registered fishing vessel 150 nautical miles west of Eagle Island in Co-Mayo early this morning. ""Owing to the distance involved, safety and communication support, known as top cover, was provided by the second Coast Guard helicopter, the Dublin-based Rescue 116,"" the statement said. Latest from search in Blacksod @ 8.45am. 2 @Rnli lifeboats, 2 coastguard helis, 5 fishing vessels, LE LERoisin #rtenews @dfpo #coastguard pic.twitter.com/VBuVwgN0o6 ""?Joe Mag Raollaigh (@joemagraollaigh) March 14, 2017 Both-helicopters had-re-fuelled at Blacksod, the statement added. Blacksod is on the Atlantic coast in northwestern Mayo Minister for Transport-Shane Ross has expressed deep concern at the news. In a statement Minister Ross said:- This is an extremely difficult time for all concerned. As we await further information I would like to appeal for space to be given to the relevant professionals involved in the search operation to complete their work. ""Once again, I send my utmost support to all those affected."" The S92 helicopter is one of-four-in operation around the Irish coast, with a fifth kept in reserve. The Air Accident Investigation Unit's-chief aeronautical officer, Jurgen Whyte, said investigators were en route within an hour of the incident. He said the immediate priority-is the search and rescue effort, then the collection of debris and to recover the flight recorders.", -2307,2017/3/13,http://www.rte.ie/news/2017/0314/859565-religious-symbols/,ECJ backs religious symbol bans in headscarf ruling,,"The European Union's top court has ruled that employers may bar staff from wearing visible religious symbols, in its first decision on the issue of women wearing Islamic headscarves at work. - - - - - - On the eve of a Dutch election in which Muslim immigration has been a key issue and a bellwether for attitudes to migration and refugee policies across Europe, the Court of Justice (ECJ) gave a joined judgment in the cases of two women, in France and Belgium, who were dismissed for refusing to remove headscarves. - - - - - - ""An internal rule of an undertaking which prohibits the visible wearing of any political, philosophical or religious sign does not constitute direct discrimination,"" the court said in a statement. - - - - - - ""However, in the absence of such a rule, the willingness of an employer to take account of the wishes of a customer no longer to have the employer's services provided by a worker-wearing an Islamic headscarf cannot be considered an occupational requirement that could rule out discrimination.""", -2308,2017/3/13,http://www.rte.ie/news/2017/0314/859541-us-weather/,Transatlantic flights hit as eastern US braces for massive storm,,"A number of transatlantic flights from Ireland-have been cancelled due to the adverse weather conditions forecast for the eastern coast of the United States. According to Dublin Airport, several Aer Lingus flights to Boston and New York airports have been cancelled, in addition to one Delta and one United flight to New York. Passengers are advised to check with their airlines in advance of travelling to the airport. Snow began blanketing the northeastern United States yesterday as a winter storm packing blizzard conditions rolled into the region, prompting public officials to ask people to stay home while airlines grounded flights and schools cancelled classes. The US National Weather Service issued blizzard warnings for parts of eight states including New York, Pennsylvania, New Jersey and Connecticut, with forecasts calling for up to 60cm-of snow by early today, with temperatures 15 to 30 degrees below normal for this time of year. Some 50 million people along the Eastern Seaboard were under storm or blizzard warnings and watches. After making it through January and February without any snow, about 5cm fell in Chicago on Tuesday morning ""If you must go out, do so for as limited time period as possible ... but the best thing to do is stay in,"" New York Mayor Bill de Blasio said yesterday. Above-ground subway service will be suspended at 4am local time as transit officials in the New York metro area warned that more bus and train routes could be suspended throughout the day. ""It's a good day to stay home,"" said New York Governor Andrew Cuomo on CBS Radio. ""It is going to be a dangerous, dangerous situation."" A satellite image from NASA shows the development of the storm- The Port Authority of New York and New Jersey readied hundreds of pieces of snow equipment at the three major New York area airports. Thousands of tons of salt and sand were prepared for airport roads, parking lots, bridges and tunnels. Airlines preemptively cancelled more than 4,000 flights ahead of the storm, according to tracking service FlightAware.com. The airports with the most cancellations were Newark International Airport in New Jersey and Boston Logan International Airport. American Airlines cancelled all flights into New York's three airports - Newark, La Guardia Airport and John F Kennedy International Airport - and Jet Blue Airways reported extensive cancellations. Delta Air Lines canceled 800 flights for Tuesday for New York, Boston and other northeast airports. United Airlines said it would have no operations at Newark or La Guardia.- Governors in New York, New Jersey, Pennsylvania and Virginia declared a state of emergency. ""When this thing hits, it's going to hit hard and it's going to put a ton of snow on the ground in a hurry,"" Massachusetts Governor Charlie Baker said, urging people to consider workingfrom home if they could. New York City public schools - the largest school system inthe United States - cancelled classes yesterday. Districts in Boston, Fairfax County, Virginia, and Philadelphia also cancelled school yesterday. In Slinger, Wisconsin, local police said that a number of vehicles were stuck on a highway following heavy snowfall. At least-30 vehicles were involved in a single crash which closed part of a highway for six hours. Vehicles stuck on highways after heavy snowfall in Slinger, Wisconsin. More: https://t.co/dFoqslMkOO pic.twitter.com/xPAD3TUyIw ""?RT? News (@rtenews) March 14, 2017 Police said they responded to nearly 100 crash-related calls involving 300 cars in the area.", -2309,2017/3/14,http://www.rte.ie/news/2017/0314/859578-crumlin-road-courthouse/,Historic Belfast courthouse to be turned into hotel,,"Belfast's Crumlin Road Courthouse is to be transformed into a ?25 million luxury hotel. The landmark heritage building dating from 1850 has fallen into a state of disrepair, but-the Signature Living Group is now-planning-to restore it to its former glory. It will be the first of up to five new hotels the developer will bring to the city over the next three years. Signature chairman Lawrence Kenwright said ""The courthouse is currently in a state of disrepair and our focus will be on sympathetically restoring the building to its former glory in a way that is both true to its architectural heritage and aligns with the exciting style for which Signature Living is reputed. ""We see ourselves simply as custodians of these important buildings and the courthouse will very much still belong to the people of Belfast. ""For us, this is an investment in the local Belfast community and, as well committing around ?25m-to the restoration project, we will be investing in a series of community initiatives, including the launch of a special apprenticeship academy, in the coming months."" The courthouse was designed by Charles Lanyon. Inside its imposing edifice the crimes of the Shankill Butchers were investigated in forensic detail. The supergrass trials,-the largest in British criminal history, were also heard in the court. In 1983 22 IRA suspects were jailed at the court for a total of 4,000 years. The courthouse-was once linked by a tunnel with Crumlin Road Gaol, which sits across the road. The gaol has been turned into a tourist attraction. Belfast City Council Chief Executive Suzanne Wylie said a surge in tourism in Belfast in recent years required over 2,000 additional beds. ""So this hotel is good news for the city and complements steps being taken to continuing driving a growth in visitor numbers to the city through initiatives such as the IRFU Rugby World Cup 2023 bid and the European Capital of Culture 2023 bid.""", -2310,2017/3/14,http://www.rte.ie/news/2017/0314/859532-pac-nama/,PAC report on NAMA's Project Eagle sale due,,"The Public Accounts Committee's investigation into NAMA's controversial sale of its Northern Ireland portfolio will be published today. The report includes a letter from the Minister for Finance-Michael Noonan-in which he strongly contests a finding of the investigation that his meeting with the US fund which bought the loans was ""procedurally inappropriate"".- Last month, Mr Noonan wrote to the Public Accounts Committee seeking a right of reply regarding adverse opinions about him in its report. In his letter, Mr Noonan said his meeting with the US fund Cerberus immediately before it bought NAMA's portfolio was not inappropriate. He said the fund was represented by its chairman John Snow, a former US Treasury secretary. Mr Noonan said it would be unusual for ministers not to meet such notable individuals and-there was never any special treatment of Cerberus. In his letter, Mr Noonan said there was a ""legal separation"" between his role as Minister for Finance and NAMA's commercial operations. He added: ""My meeting with former secretary John Snow and my officials' meeting with Cerberus representatives in March 2014 did not alter the fact that neither I nor my officials were involved in the Project Eagle sales process."" Mr Noonan's letter concludes by saying that he was sure that any conclusions which do materialise in the final report will be based on ""available evidence, due and fair process and logical reasoning which will withstand challenge."" However, despite objections of Fine Gael politicians on the PAC, the report will criticise Mr Noonan.-", -2311,2017/3/14,http://www.rte.ie/news/2017/0314/859535-brexit-may-sturgeon/,SNP warns Theresa May not to block independence vote,,"The Scottish National Party has warned British Prime Minister Theresa May not to try to block Nicola Sturgeon's plans for a fresh referendum on Scottish independence before Britain finally leaves the EU. The Scottish First Minister's bombshell announcement yesterday overshadowed the House of Lords vote which finally cleared the way for the prime minister to start the formal Brexit process. The move drew a furious response from Mrs May who accused the SNP of ""playing politics with the future of our country"" with a vote that would only create ""more uncertainty and division"". Her comments were seen as an indication that she will not allow the referendum to go ahead until after the Brexit process is complete - which is expected to be in the spring of 2019. However SNP deputy leader Angus Robertson dismissed the idea that the government at Westminster could seek to block a second independence vote. Setting out her proposal, Ms Sturgeon said that if Scotland was to have a ""real choice"" the vote should take place once the terms of the Brexit deal were known but ""before it is too late to choose our own course"". She will go to the Scottish parliament next week to seek its authority to agree a ""Section 30 order"" - the procedure which allows it to legislate for an independence referendum - with the UK government with a view to staging a vote between autumn 2018 and spring 2019. Brexit legislation is expected to become law today The row erupted as the landmark legislation, which allows the prime minister to trigger the start of the Article 50 withdrawal process, completed its passage through parliament without amendment. Brexit Secretary David Davis hailed the outcome, saying the UK was ""on the threshold of the most important negotiation for our country in a generation"". However Downing Street has indicated that the prime minister will not seek to invoke Article 50 until the end of the month, despite the EU (Notification Of Withdrawal) Bill completing its passage through parliament. EU leaders had been prepared for an announcement this week, with 6 April-pencilled in as the date for a meeting of the other 27 to respond to the move - a gathering which will now be pushed back until later that month. The prime minister's official spokesman played down suggestions she was delaying due to Ms Sturgeon's announcement, saying Mrs May had always said she would trigger Article 50 by the end of March. ""I've said 'end' many times but it would seem I didn't put it in capital letters strongly enough,"" the spokesman said. Waiting until the last week of March would not only avoid a clash with the Dutch general election on Wednesday, but also delay the start of negotiations until after a special summit of the remaining 27 in Rome on 25 March-to celebrate the EU's 60th anniversary. On Monday night, the Lords finally backed down in their battle with ministers over their attempts to change the legislation after the Commons overturned two amendments previously backed by peers. MPs voted by 331 to 286 to reject one amendment requiring Parliament to be given a ""meaningful"" vote on the outcome of the Brexit negotiations and by 335 to 287 to dismiss a second amendment guaranteeing the future status of EU nationals living in the UK. Following the Commons votes, they were then rejected by margins of 274 to 118 and 274 to 135 in the Lords, ending peers' resistance to the Government's plans. Labour leader Jeremy Corbyn said it was ""deeply disappointing"" the Government had refused to give ground but that it was ""only the start of the process"". ""Labour, at every stage, will challenge the Government's plans for a bargain basement Brexit with Labour's alternative of a Brexit that puts jobs, living standards and rights first,"" he said.", -2312,2017/3/14,http://www.rte.ie/news/2017/0313/859499-coty-nenagh/,Fears for almost 200 jobs at Nenagh plant,,"Concerns have been raised for the future of almost 200 jobs at the Coty beauty products manufacturing plant in Nenagh, Co Tipperary. Workers have been called to a meeting at the former Procter and Gamble plant today. P&G merged with Coty last year making it one of the biggest beauty companies in the world with revenues of over �1 billion. There were concerns that the merger may have implications for the plant down the line. It is feared that jobs cuts may be announced or that manufacturing could be moved-to a Coty facility in the UK. The plant has been one of the town's biggest employers since the late 1970s, having had a workforce of over 500 at its height. Hair and fragrance brands such as-Calvin Klein, Clairol, Wella, Max Factor and Rimmel are all part of its product range.", -2313,2017/3/14,http://www.rte.ie/news/2017/0313/859493-us-politics-healthcare/,Millions left uninsured under Republican health plan - US budget office,,"Fourteen million Americans would lose medical insurance by next year under a Republican plan to dismantle Obamacare, the nonpartisan US Congressional Budget Office said. Its report dealt a potential setback to President Donald Trump's first major legislative initiative. The eagerly awaited CBO report also forecast that 24 million more people would be uninsured in 2026 if the plan being considered in the House of Representatives were adopted. Obamacare enabled about 20 million previously uninsured Americans to obtain medical insurance. The CBO projected that 52 million people would be uninsured by 2026 if the bill became law, compared to 28 million who would not have coverage that year if former president Barack Obama's signature healthcare law remained unchanged. Two House of Representatives committees have approved the legislation to dismantle Obamacare that was unveiled by Republican leaders a week ago, but it faces opposition from not only Democrats but also medical providers including doctors and hospitals and many conservatives. The CBO report's findings could make the Republican plan a harder sell in Congress. The agency, however, said federal deficits would fall by a net $337 billion in the 2017-2026 period under the Republican bill. Health and Human Services Secretary Thomas E Price said the CBO did not look at the whole Republican plan, adding the report was ""just not believable"". He said he believes the Republican plan will insure more people than currently insured. Some Republicans worry a misfire on the Republican healthcare legislation could hobble Mr Trump's presidency and set the stage for losses for the party in the 2018 congressional elections. The CBO estimated that insurance premiums would rise 15% to 20% in both 2018 and 2019 because fewer healthy people would sign up after the repeal of the Obamacare penalty for declining to obtain insurance. But it said the hikes would be offset after 2020 by a $100 billion fund allocated to states in the bill and deregulation in the insurance market. House of Representatives Speaker Paul Ryan, a key backer of the plan called the American Health Care Act, said the CBO estimates showed it would ultimately lower premiums and noted that Congress and the administration planned to take additional steps to overhaul the healthcare system. ""Our plan is not about forcing people to buy expensive, one-size-fits-all coverage. It is about giving people more choices and better access to a plan they want and can afford. When people have more choices, costs go down,"" Mr Ryan said. Craig Garthwaite, director of the healthcare programme at Northwestern University's Kellogg School of Management, said the CBO estimates made it harder for Republicans to sell their proposal. ""Overall, this is a really bad number for the AHCA. Far more people are predicted to lose coverage than many estimated ""?and these losses are going to happen more quickly than we would have thought,"" he said. The proposal also would end the Obamacare expansion of the Medicaid insurance programme for the poor that accounted for about half of the 20 million people who had gained insurance. The bill would replace Obamacare's income-based subsidies with fixed tax credits for the purchase of private insurance. Mr Trump attempted to rally support for the Republican bill before the CBO report's release. ""The House bill to repeal and replace Obamacare will provide you and your fellow citizens with more choices - far more choices - at lower cost,"" the Republican president said at a White House meeting with people opposed to Obamacare. ObamaCare is imploding. It is a disaster and 2017 will be the worst year yet, by far! Republicans will come together and save the day. ""?Donald J. Trump (@realDonaldTrump) March 13, 2017", -2314,2017/3/14,http://abcnews.go.com/Politics/white-house-trump-paid-38-million-taxes-2005/story?id=46133207,White House: Trump paid $38 million in federal taxes in 2005,,"The White House said Tuesday night that Donald Trump paid $38 million in federal taxes on income of more than $150 million in 2005 after independent journalist David Cay Johnston obtained the purported first two pages of that return and made them public. Johnston appeared on MSNBC Tuesday night to report on the documents, which he says were delivered anonymously to his mailbox. Johnston speculated that Trump, who is the first president in decades not to release his taxes, or someone close to him, may have been the source of the documents. The White House issued a response to ABC News ahead of the broadcast lauding Trump's income and taxes paid. ""Before being elected President, Mr. Trump was one of the most successful businessmen in the world with a responsibility to his company, his family and his employees to pay no more tax than legally required,"" a statement from the White House said. ""That being said, Mr. Trump paid $38 million dollars even after taking into account large scale depreciation for construction, on an income of more than $150 million dollars, as well as paying tens of millions of dollars in other taxes such as sales and excise taxes and employment taxes and this illegally published return proves just that."" It's not clear where the documents originated. Johnston defended himself to MSNBC's Rachel Maddow, saying it's within his first amendment rights to publish documents that were delivered to him. ""By the way, let me point out that it's entirely possible that Donald sent this to me,"" Johnston said. ""Donald Trump has over the year leaked all sorts of things.""?The two-page document, which Johnston produced, is stamped with the words ""client copy"" on the second page. That document shows Trump declared $103 million in losses in 2005, placing him well under the top income tax bracket of 35 percent. However, his effective tax rate of 25 percent is actually much higher than what former republican presidential nominee Mitt Romney paid the year before he ran for president, which was just 14 percent. It's also notable that Donald Trump paid taxes at all in 2005. Although he has refused to discuss his income tax rate or release any documents, the New York Times reported last year that Trump's 1995 tax returns showed Trump took a $916 million loss that ""would have been large enough to wipe out more than $50 million a year in taxable income over 18 years.""?Donald Trump is the first President since Richard Nixon to refuse to release his full income tax returns. During a January press conference he was asked if he would release them in order to prove that he has no dealing or debts with Russia. ""I'm not releasing the tax returns,"" Trump said, ""because as you know, they'r under audit."" Trump denied having any dealings with Russia and said ""the only one that cares about my tax returns are the reporters, OK? They'r the only who ask."" And in an interview with ABC's ""This Week"" in January, counselor to the president Kellyanne Conway told George Stephanopoulos, ""The White House response is that he's not going to release his tax returns. We litigated this all through the election. People didn't care."" ", -2315,2017/3/14,http://abcnews.go.com/Politics/justice-department-announce-charges-yahoo-hacks/story?id=46136460,Justice Department to announce charges in Yahoo hacks,,"The U.S. Department of Justice on Wednesday will announce charges against four people with suspected ties to the Russian government in connection to hacking attacks against Yahoo!, sources tell ABC News. Four people will be charged: 3 in Russia and 1 in Canada, according to the sources. The suspect in Canada will be arrested, but officials do not have access yet to the suspects in Russia. As ABC News previously reported, the first breach, affecting 500 million user accounts, occurred in 2014 but was not disclosed by Yahoo until September 2016. In December 2016, Yahoo revealed that a separate hack of 1 billion user accounts took place in 2013. The Justice Department has scheduled a press conference for Thursday morning. ", -2316,2017/3/13,http://abcnews.go.com/International/wireStory/korean-prosecutors-plan-question-park-week-46137282,South Korea prosecutors to question ousted leader next week,,"South Korean prosecutors said Wednesday they plan to question ousted President Park Geun-hye next week over a corruption scandal that removed her from office, as the government announced that an election will be held on May 9 to pick her successor. Park lost her presidential immunity from prosecution after the Constitutional Court ruled Friday to formally end her rule over allegations that she colluded with a longtime confidante to extort money from businesses and allowed her pull government strings from the shadows. Prosecutors said they told Park's lawyer that they'll summon her next Tuesday as a suspect in the scandal. No further details were provided. Dozens of high-profile figures including some top Park administration officials and Samsung heir Lee Jae-yong have already been indicted over the scandal. Park could also face extortion, bribery and other criminal charges, but she has denied any legal wrongdoing and expressed defiance toward her corruption allegations. ""Although it will take time, I believe the truth will certainly come out,"" Park said after leaving the presidential Blue House on Sunday. Park's comments raised worries about a further deepening of the national divide over her fate. Three people died and dozens were injured in violent clashes between Park's supporters and police following Friday's court ruling. By law, a national vote to find her successor must be held within two months of Friday's court ruling, and the Ministry of Interior said Wednesday that May 9 would be the election date. Moon Jae-in, a liberal opposition leader who lost the 2012 presidential election to Park, is the favorite to be the country's next leader in opinion surveys. His campaign got a boost Wednesday when Prime Minister and acting leader Hwang Kyo-ahn, considered the potential leading conservative challenger to Moon, said he won't run. Hwang told a Cabinet meeting that he decided to focus on managing state affairs and resolving political and economic uncertainties triggered by Park's ouster until a new president is elected. Hwang would have been forced to resign and let a deputy prime minister serve as another interim leader if he had stood for the election. South Korean conservatives have been badly hurt by Park's scandal. In early February, former U.N. Secretary-General Ban Ki-moon, also regarded as a conservative candidate, withdrew from consideration amid mounting media speculation over his political competence and corruption allegations.", -2317,2017/3/15,http://abcnews.go.com/International/wireStory/north-korea-threat-looms-us-envoy-tillersons-asia-46137486,North Korea threat looms over US envoy Tillerson's Asia trip,,"On his first trip to Asia as top U.S. diplomat, Rex Tillerson wants to forge cooperation with Japan, South Korea and China against the nuclear threat from North Korea and demonstrate ""America First"" does not mean a U.S. diplomatic retreat from the volatile region. Tillerson will find shared anxiety at the North's saber-rattling but less agreement about how to deal with it, and unresolved questions about how the United States and China, the world's two largest economies, can manage growing differences. Japan and South Korea, which host American troops and are already within range of North Korean missiles, support U.S. efforts to increase diplomatic and economic pressure on Pyongyang. The three navies were also conducting missile defense information-sharing drills Wednesday in seas east of the divided Korean Peninsula and north of Japan to promote interoperability, the U.S. Navy's 7th Fleet said. But China remains conflicted about how to treat its traditional ally for fear of triggering its collapse. Adding to the combustible mix of military tension and the region's historic rivalries is another factor ""?uncertainty about U.S. foreign policy under the Trump administration. Tillerson, who arrives in Tokyo late Wednesday at the start of his four-day, three-nation tour, could provide some reassurance to nervy allies. He will meet Thursday with Japanese Prime Minister Shinzo Abe and Foreign Minister Fumio Kishida. The former Exxon Mobil CEO has adopted a low profile during his six weeks as secretary of state. The State Department Correspondents' Association expressed disappointment Wednesday that Tillerson was traveling to Asia without a full contingent of the diplomatic press corps or even a pool reporter on his plane ""?although it is taking a reporter from the conservative-leaning website, the Independent Journal Review. President Donald Trump's rise to power has raised anxiety in Asian capitals. During last year's election campaign, Trump asked whether allies like Japan and South Korea contribute enough for their own defense or should get their own nuclear weapons. He also questioned the fundamentals of four decades of U.S. diplomacy with China. Trump has allayed some of those concerns since taking office. Trump hosted Abe at his Florida resort last month, and when Tillerson goes to Beijing Saturday, he is expected to arrange a much-anticipated visit by Chinese President Xi Jinping to the U.S. ""The U.S. allies, Japan and South Korea, want to know that the United States is going to continue to defend them but also is going to show a certain amount of finesse and diplomatic skills in dealing with China and with North Korea,"" said Robert Dujarric, the director of the Institute of Contemporary Asian Studies at Temple University's campus in Tokyo. North Korea will be a top priority on all Tillerson's stops. The State Department says Tillerson wants to discuss ""fresh"" approaches. Administration officials say all options are on the table, including military ones, but signs are that the U.S. for starters wants to see rigorous implementation of existing sanctions against Pyongyang. There appears to be little desire for now to negotiate with North Korea, unless it commits to denuclearization, which it shows no sign of doing. The North conducted two nuclear tests and 24 ballistic missile tests last year, deepening concern in Washington that it could soon develop a nuclear-tipped missile capable of reaching the U.S. mainland ""?something Trump has vowed won't happen. The U.S. is currently involved in annual military drills in South Korea that North Korea regards as rehearsal for invasion. In a show of defiance, the North fired four ballistic missiles into ocean off Japan last week. The next day, the U.S. began bringing in equipment for the long-planned deployment in South Korea of a missile defense system, known by its acronym, THAAD. That has raised tensions with China, which says the THAAD's radar could peer into Chinese territory, weakening its own nuclear deterrent. The U.S. says the system is intended to be used only against North Korea. After Tokyo, Tillerson visits South Korea, caught up in political upheaval after last week's ouster of its president, Park Geun-hye, over a corruption scandal. Park had been in lockstep with Washington's efforts to isolate Pyongyang. The favorite to succeed her is Moon Jae-in, a moderate who wants to engage North Korea's government. Tillerson's final leg involves meetings with several senior Chinese officials in Beijing. China recently announced it was suspending for the rest of the year coal imports that are an important source of revenue for North Korea. That is to comply with U.N. sanctions aimed at restricting the North's nuclear and ballistic missile programs. Chinese Premier Li Keqiang on Wednesday called for all parties to return to talks. Aid-for-disarmament negotiations have been stalled for years. Last week China's foreign minister warned the U.S., South Korea and North Korea could be heading for conflict. ""��?Associated Press writer Ken Moritsugu contributed to this report.", -2318,2017/3/15,http://abcnews.go.com/International/wireStory/polls-open-dutch-election-barometer-populism-46137988,Polls open in Dutch election that is barometer of populism,,"Polling booths opened across the nation Wednesday in Dutch parliamentary elections that are being closely watched as a possible indicator of the strength of far-right populism ahead of national votes in France and Germany later this year. Two-term Prime Minister Mark Rutte's right-wing VVD party was leading in polls ahead of the Dutch vote, with the anti-Islam Party for Freedom of firebrand lawmaker Geert Wilders a close second. Rutte has framed the election as a choice between continuity and chaos, portraying himself as a safe custodian of this nation of 17 million's economic recovery, while casting Wilders as a far-right radical who would not be prepared to take tough decisions were he to gain office. The chance of Wilders becoming leader in this country where the proportional representation voting system all but guarantees coalition governments is small ""?all mainstream parties, including Rutte's VVD, have ruled out working with Wilders. Wilders' one-page election manifesto includes pledges to de-Islamize the Netherlands by closing the borders to immigrants from Muslim nations, shuttering mosques and banning the Quran, as well as taking the Netherlands out of the European Union. The final days of campaigning were overshadowed by a diplomatic crisis between the Dutch and Turkish governments over the refusal of the Netherlands to let two Turkish government ministers address rallies about a constitutional reform referendum next month that could give President Recep Tayyip Erdogan more powers. It showed Rutte as refusing to bow to pressure from outside, a stance which has widespread backing in the nation. ""It is my task to keep the nation safe and stable and deal with these kind of people,"" said Rutte. The 12.9 million Dutch voters can cast their ballots until 9 p.m. (2000 GMT). They have plenty to choose from; there are 28 parties fielding candidates in the splintered political landscape.", -2319,2017/3/15,http://abcnews.go.com/Politics/top-navy-officials-charged-staggering-bribery-scheme-involving/story?id=46131200,"Top Navy officials charged in 'staggering' bribery scheme involving classified information, officials say",,"Nine high-ranking U.S. Navy officers, including one former admiral, have been charged with trading classified information in exchange for travel, dinner and prostitution services from a foreign defense contractor -- the latest charges in the widening probe, according to the Justice Department. According to the Justice Department, the Navy officials allegedly took in expensive travel and entertainment expenses as well as prostitution services while steering contracts toward the company, Glenn Defense Marine Asia (GDMA), and blocking its competitors. They allegedly used fake names and foreign email address to keep their actions secret. ""This is a fleecing and betrayal of the United States Navy in epic proportions, and it was allegedly carried out by the Navy's highest-ranking officers,""?said Acting U.S. Attorney Alana Robinson of the Southern District of California, calling it ""a staggering degree of corruption."" The officials were arrested this morning across the country -- in California, Texas, Pennsylvania, Florida, Colorado and Virginia -- and will be tried in federal court in San Diego, California. A total of 25 people have now been charged in the corruption and fraud scheme, including 20 current or former Navy officials and five from GDMA, a Singapore-based foreign defense contractor formerly run by Leonard Francis. Half of the 25 have pleaded guilty so far. ""The defendants allegedly violated many of their sworn official naval duties, including duties related to the handling of classified information and duties related to the identification and reporting of foreign intelligence threats,"" Justice officials said in a press release on Tuesday. In a statement, the Naval Criminal Investigative Service said it: ""remains resolved to follow the evidence wherever it leads, and to help hold accountable those who make personal gain a higher priority than professional responsibility,""?according to Director Andrew Traver. ""It's unconscionable that some individuals choose to enrich themselves at the expense of military security.""?", -2320,2017/3/15,http://abcnews.go.com/International/wireStory/french-presidential-candidate-fillon-charged-jobs-probe-46120730,French presidential candidate Fillon charged in jobs probe,,"French presidential candidate Francois Fillon was given preliminary charges Tuesday in an investigation of taxpayer-funded jobs his wife and children received but allegedly never performed. A top contender in a French presidential election never has reached such a critical step in a criminal investigation, yet Fillon has vowed to keep campaigning less than six weeks before the contest's first round. The charges further damage the image of the former prime minister, who used to tout his reputation for probity. And it further reduces his chances of winning the two-round April 23-May 7 presidential election in which he once was viewed as the leading contender. Investigating judges filed the charges Tuesday, Celine Clement-Petremann of the national financial prosecutor's office said. It was a surprise move ""?Fillon had said the judges summoned him for Wednesday, but they apparently moved up the decision. Fillon is accused of misusing public funds, receiving money from the misuse of public funds, complicity in misusing public funds and improper declaration of assets, among other charges, the prosecutor's office said. Under French law, preliminary charges mean that investigating magistrates have strong reason to suspect wrongdoing, but are seeking more time to investigate before deciding whether to send the case to trial. Fillon has denied wrongdoing and vowed to continue his campaign. ""Yes, I employed my wife and the reality of her work is undeniable,"" he told the judges according to a statement published by French media. Fillon also said he ""respects"" the country's judicial institutions and expects to ""be treated as all citizens of our country."" While it is legal in France for politicians to hire family members for legitimate jobs, the case against Fillon hinges on whether parliamentary positions he gave to his wife, Penelope, and two of their five children were real or fictitious. Fillon's family members insist they did the work for which they were generously paid. Legally, Fillon's case is about to enter a new phase. Politically, the conservative candidate intends to keep campaigning. Fillon initially said he would quit the presidential race if he were charged. ""Those who don't respect the laws of the Republic should not be allowed to run. There's no point in talking about authority when one's not beyond reproach,"" he said while running for the conservative nomination. However, Fillon later decided to maintain his candidacy, explaining he has the legitimate winner of the conservative primary and that his Republicans party had no plan B to replace him as the nominee. ""There is only one thing that exists in a democracy: it's the people's will. The French will choose,"" he said during a news conference Monday. The decision caused a deep rift within the party, prompting many to abandon his campaign. Daniel Fasquelle, a conservative lawmaker supporting Fillon, told BFM television Tuesday that ""justice will do its job, and now what's important is to look at the (political) platform of the candidates."" None of Fillon's major rivals in the election immediately reacted to the news on Tuesday afternoon. Once a front-runner of the presidential campaign, Fillon has seen his popularity drop following successive waves of unflattering revelations in French newspaper reports since January. The weekly Le Canard Enchain? newspaper originally reported the allegations about Fillon's employment of his relatives. Two days ago, the Journal du Dimanche newspaper raised questions about expensive suits ""�worth more than 48,000 euros ($52,000) over the past five years""?he received as a gift by an unidentified benefactor. On Tuesday, the Le Parisien newspaper reported that Fillon's children allegedly passed onto their father some of the money they earned while working as his aides. Independent centrist candidate Emmanuel Macron has overtaken Fillon in pre-election polls, increasingly appearing as the new front-runner. But it's not all rosy. Although Macron's name isn't mentioned, French prosecutors Tuesday opened a preliminary investigation into suspected favoritism surrounding an event in Las Vegas promoted by Macron last year. The probe is related to a French event organized during the Consumer Electronics Show in Las Vegas in 2016. Macron, economy minister at the time, took part in the event. Business France, a French public agency, is suspected of choosing French communications group Havas for organizing the event without seeking a bid. Another top contender also has caught the attention of judicial investigators. Far-right leader Marine Le Pen and some members of her National Front party are targeted in several ongoing investigations. Last week, Le Pen refused to appear before judges in a case concerning her European parliamentary aides. France's presidential election is organized in two rounds. Only the two top contenders in the April 23 vote will be allowed to take part in the runoff on May 7. Current polls show Macron and Le Pen are likely to reach the second round of the election. Fillon appears in a position to be eliminated in the first round. ""?Angela Charlton in Paris contributed to this story.", -2321,2017/3/15,http://abcnews.go.com/US/man-breaks-arizona-mosque-rips-copies-quran/story?id=46136223,"Man breaks into Arizona mosque, desecrates copies of Quran",,"A man broke into an Arizona mosque earlier this week and desecrated copies of the Quran, the Islamic Center of Tucson said Tuesday. The suspect entered the mosque on Monday around 3:30 a.m. and ripped copies of the Quran before throwing them on the floor, according to a post on the center's Facebook page. ""He ripped copies of the Qur'an and threw them around the prayer room before leaving the building,"" the center wrote. ""Thankfully no one was hurt. The Tucson Police Department are looking for him."" Surveillance footage circulated by the center showed the suspect wearing a red University of Arizona T-shirt and a baseball cap. The center described it as an ""isolated incident."" ""Although we are disheartened by this incident, we understand that this is an isolated incident,"" the center wrote. ""The ICT has been a part of the Tucson community since the late 1980's and since then, the Tucson community has been kind, welcoming, and supportive."" The vandalism comes on the heels of a spate of threats directed at Jewish Community Centers across the country. Last month, a group of Muslim activists started a crowdfunding campaign to help repair a vandalized Jewish cemetery near St. Louis, Missouri. Spearheaded by Muslim-American activists Linda Sarsour and Tarek El-Messidi, the campaign raised more than $161,000. The activists said they aimed to ""stand in solidarity with the Jewish-American community to condemn"" acts of religious desecration.", -2322,2017/3/15,http://abcnews.go.com/US/oregon-police-searching-girl-vanished-train-station/story?id=46122513,Oregon police find 9-year-old girl last seen at train station,,"A missing 9-year-old Oregon girl who was last seen Monday night leaving a train station with a couple and another child has been found, according to the family. Elisa Salmeron had last been seen around 9:30 p.m. Monday near her home in Gresham, according to the Gresham Police Department. The moment Salmeron's mother learned that her daughter had been found was caught on video by ABC affiliate KATU in Portland. This is the moment Elisa Salmeron's mother got the good news. Daughter found safe. #LiveOnK2 pic.twitter.com/Hms3Vx96ID Minutes later, police took Salmeron home and tweeted a photo of the reunion. Missing 9-year-old found safe, returned home to mother. pic.twitter.com/HF5PXiMMy4 It is unclear how police found her and where she was between last night and today. The girl's family told KATU that she went missing after taking out the trash. She was seen on surveillance cameras at a nearby train station with a suitcase, the station reported. Breaking: new images of missing girl seen at 162nd/Burnside Max stop. Last seen 148th/Burnside walking west with couple. #LiveOnK2 pic.twitter.com/Rsb1mnxyZ9 Salmeron left the station with a pair of young adults and another child, KATU reported. Her family members said that they did not recognize the people she was with and that the suitcase she had was not hers. Family says they don't recognize people with Elisa Salmeron. They also say that's not her roller bag. They're puzzled. #LiveOnK2 https://t.co/XUIutcYQV1 ", -2323,2017/3/14,http://abcnews.go.com/US/wireStory/911-dispatcher-tamir-rice-case-suspended-days-46133423,911 dispatcher in Tamir Rice case suspended for 8 days,,"A 911 dispatcher who took a call that led to a white police officer's fatal shooting of a 12-year-old black boy outside a recreation center has been suspended for eight days. Police Chief Calvin Williams found in a disciplinary letter dated March 10 that Constance Hollinger violated protocol the day of the shooting of Tamir Rice, who had been playing with a pellet gun. Tamir was shot within seconds of a police cruiser skidding to a stop just a few feet away from him in November 2014 outside the Cleveland rec center. The city's internal disciplinary charges accused Hollinger of failing to tell the dispatcher who sent the officers to the rec center that the man who called 911 about ""a guy"" pointing a gun at people also said it could be a juvenile and the gun might be a ""fake."" That omission was cited by former Cuyahoga County prosecutor Timothy J. McGinty as a crucial mistake that impacted how officers Timothy Loehmann and Frank Garmback responded. Loehmann shot and killed Tamir less than two seconds after they arrived. McGinty said the shooting might have been avoided if the information from the 911 caller had been properly relayed to the officers. Cleveland safety director Michael McGrath handed down a two-day suspension for police officer William Cunningham, who was working off duty without permission at the rec center, in a disciplinary letter dated March 10. A message seeking comment on behalf of Hollinger and Cunningham was left for the Cleveland Police Patrolmen's Association. Tamir's mother, Samaria Rice, said in a statement issued Tuesday by her attorney that Hollinger's eight-day suspension was ""unacceptable."" ""Eight days for gross negligence resulting in the death of a 12-year-old boy,"" Rice's attorney, Subodh Chandra, said in the statement. ""How pathetic is that?"" Chandra said that if that is the best ""that system can offer, then the system is broken."" Loehmann and Garmback, who weren't criminally charged, face possible discipline by McGrath that could result in them being dismissed from the Cleveland police department. Loehmann's disciplinary letter cites his failure to disclose in an application that the Independence Police Department, where he worked for six months, had placed a letter in his personnel file saying he had an ""inability to emotionally function."" Garmback's disciplinary letter accuses him of driving too close to Tamir and failing to report the time of arrival at the recreation center. Cleveland Police Patrolmen's Association president Steve Loomis has said the officers did nothing wrong the day Tamir was shot. Investigators said the boy was handling a pellet gun that officers believed was a real firearm. Samaria Rice has called for the two officers to be fired. The city agreed last April to pay Tamir's family $6 million to settle a federal civil rights lawsuit.", -2324,2017/3/15,http://abcnews.go.com/Technology/wireStory/weather-service-decided-minute-cut-snow-forecast-46130570,Weather Service decided last minute not to cut snow forecast,,"Before the first snow fell, U.S. meteorologists realized there was a good chance the late-winter storm wasn't going to produce giant snow totals in big Northeast cities as predicted. But they didn't change their forecasts because they said they didn't want to confuse the public. National Weather Service meteorologists in Boston, New York, Philadelphia and Washington held a conference call Monday afternoon about computer models that dramatically cut predicted snow amounts. They decided to keep the super snowy warnings. ""Out of extreme caution we decided to stick with higher amounts,"" Greg Carbin, chief of forecast operations at the Weather Prediction Center in suburban Maryland, told The Associated Press. ""I actually think in the overall scheme that the actions (by states and cities) taken in advance of the event were exceptional."" On Monday, the weather service predicted 18 to 24 inches of snow in New York City. By late Tuesday afternoon, Central Park was covered with a little more than 7 inches of snow with rain and sleet still falling. Other areas, including upstate New York and Connecticut, received more than a foot and a half of snow. Swaths of Pennsylvania were walloped by 20 to 30 inches of snow. Carbin said a last-minute change downgrading snowfall totals might have given people the wrong message that the storm was no longer a threat. It still was, but real danger was from ice and sleet in places like New York City and Washington, he said. Dramatically changing forecasts in what meteorologists call ""the windshield wiper effect"" only hurts the public, said Bob Henson, a meteorologist for the private Weather Underground. Carbin stood by the decision. ""The nature of the beast is that there's always uncertainty in every forecast and we have to get better at describing that,"" Carbin said. The right amount of precipitation fell, but it came down as rain and sleet because the rain-snow line moved inland, according to Carbin and private forecasters. The rain-snow line is a 50 mile wide north-south swath where cold Arctic air from the north and west clashes with warm, moist air from the Atlantic. West of the snow line saw heavy snow while east had rain and sleet. The snow line happens to center on New York City so it was a bigger deal than if the line had been over a rural area, said private meteorologist Ryan Maue of WeatherBell Analytics . Private forecast outfits said the National Weather Service did a good job forecasting a tough storm despite the beating the federal agency took on social media. ""Overall the range of the forecast was very solid. It ended up being on the low end,"" Henson said. ""I understand why people can be frustrated when the expectation is the big storm."" University of Georgia meteorology professor Marshall Shepherd, host of the television show "" Weather Geeks,"" said the public focused too much on worst-case scenarios. ""The perception of 'bust' is that it didn't materialize for New York in the manner expected. Much of the expected snow fell as sleet,"" Shepherd said in an email. ""To me, ice is a far greater hazard. If a pitcher throws a strike down the center of the plate or just off the outside corner, it's still a strike. "" ""?Follow Seth Borenstein at http://twitter.com/borenbears and his work can be found at http://bigstory.ap.org/content/seth-borenstein", -2325,2017/3/15,http://abcnews.go.com/Politics/republicans-change-tune-congressional-budget-office-health-care/story?id=46117377,Republicans change their tune on Congressional Budget Office after health care report,,"After the Congressional Budget Office released its report Monday on the Republican-backed American Health Care Act, estimating that if the bill becomes law, 14 million more people will be uninsured next year ""?a number that grows to 24 million by 2026 ""?supporters of the plan were quick to levy complaints against the office despite previous praise. ""The CBO looked at a portion of our plan but not the entire plan,"" said Secretary of Health and Human Services Tom Price. ""We disagree strenuously with the report that was put out."" ""We think that CBO simply has it wrong,"" he later said. White House press secretary Sean Spicer led the pre-emptive impugnment of the office last week, saying, ""If you're looking to the CBO for accuracy, you're looking in the wrong place."" ""Anyone who can do basic math can understand their projections for Obamacare the last time were way, way off the mark,"" he said. ""I think when they come out with this score, we need to understand their track record when it comes to health care."" The CBO says it stands by its estimates and notes that there can be some variation. A spokesperson for the agency pointed ABC News to the section of its current report that details ""uncertainty surrounding the estimates."" CBO Director Keith Hall was chosen for the post by Republicans. In February 2015, then-Rep. Price, as the chairman of the House Budget Committee, along with his Senate counterpart, Mike Enzi, R-Wyo., selected Hall. At the time, Price offered nothing but praise for Hall, at the time the chief economist for the International Trade Commission. ""Keith Hall will bring an impressive level of economic expertise and experience to the Congressional Budget Office,"" said Price in a statement on Hall's appointment. ""Throughout his career, he has served in both the public and private sector, under presidents of both parties and in roles that make him well suited to lead the CBO."" ""In particular, during his time at the U.S. International Trade Commission, Dr. Hall has worked on providing Congress with nonpartisan economic analyses ""?a role similar to the responsibilities he will now assume as CBO director,"" Price continued. Spicer similarly promoted the CBO and its predictions on his personal Twitter account on several occasions from 2012 to 2016 to knock the Affordable Care Act and other Democratic policies. ""New From @RNCResearch: CBO Confirms ObamaCare Is Bad For The Economy And Workers,"" tweeted Spicer in February 2014, linking to a Republican National Committee compilation of news stories on the CBO's estimate. New From @RNCResearch: CBO Confirms ObamaCare Is Bad For The Economy And Workers http://t.co/mEGhrj1FhP ""CBO projects job losses with minimum wage increase,"" reads another Spicer tweet from the same month, with a link to a Reuters story covering the office's report. In 2014, before he joined the CBO, Hall co-wrote an op-ed in The Hill opposing components of the Affordable Care Act ""?a position that aligns with that of Republicans trying to replace the plan. He said the legislation, known informally as Obamacare, would shrink the workforce and cited a report from his future agency. ""CBO recently found that the ACA will significantly penalize work, causing an exodus from the labor force the equivalent of more than 2 million full-time workers in just a few years,"" Hall wrote with Charles Blahous. After the CBO's negative findings on the American Health Care Act, Price wasn't willing to completely dismiss the office's analysis. Asked if he was encouraging ""lawmakers to disregard [the] report"" Monday, he had a straightforward answer, saying, ""No. We will read the report, look into the report, beyond the top lines."" Despite outcry about the CBO report among Republicans, many latched onto its conclusion that the American Health Care Act would reduce the federal deficit by more than $330 billion by 2026 and eventually lower average premiums for single policyholders by ""roughly 10 percent"" in the next decade. Sen. Lindsey Graham, R-S.C., no stranger to speaking his mind, even when it comes to criticism of his party, summarized the GOP's position Monday, telling reporters, ""We like the CBO when they agree with us. When they don't, they're a bunch of losers.""", -2326,2017/3/15,http://abcnews.go.com/Health/wireStory/ap-fact-check-trumps-vow-health-coverage-46112438,AP FACT CHECK: Both sides loose with facts in health debate,,"The Congressional Budget Office report on a Republican health care bill set off an intense reaction in Washington, and some on both sides of the debate are playing loose with the facts. Republicans are overlooking President Donald Trump's promise to deliver ""insurance for everybody,"" which the CBO makes clear will not happen if the legislation becomes law. Democrats are assailing Republicans for ""attacking the messenger,"" seeming to forget all the times they assailed the budget office themselves. The Congressional Budget Office is respected for nonpartisan rigor in its estimates of the costs and impacts of legislation. But no projection is infallible, particularly when it comes to large, complex programs. For example, the agency in 2010 overstated the number of people expected to buy insurance under President Barack Obama's health care law, misjudging how many would join because of the threat of tax penalties. Yet, CBO's neutrality has been valued by both parties ""?though not always at the same time. It depends whose ox is being gored. A look at statements in the debate and how they compare with the CBO's estimates and the underlying facts: TRUMP: ""We're going to have insurance for everybody. There was a philosophy in some circles that if you can't pay for it, you don't get it. That's not going to happen with us."" ""?To The Washington Post, Jan. 15. CBO: It estimates the bill would leave 14 million fewer people insured in the first year, 24 million fewer by 2026. In the first year, the biggest reason more people are uninsured would be repeal of penalties Barack Obama's law imposes on those deemed able to afford insurance but who don't buy it. Still others would decide to forgo coverage because of higher premiums or do without Medicaid. In following years the main reason for a drop in the number of insured would be that the Republican bill scales back Medicaid for low-income Americans. Altogether, CBO estimates 52 million people would be uninsured by 2026, a vast distance from ""insurance for everybody."" ""?SEAN SPICER, White House press secretary, Tuesday: ""Having a card and having coverage that when you walk into a doctor's office has a deductible of $15,000, $20,000 a year isn't coverage. That's a car. That doesn't get you the care you need."" THE FACTS: He's wrong about deductibles under Obama's law. Out-of-pocket expenses for consumers are limited. Deductibles, copayments, and coinsurance together can't exceed $7,150 this year for an individual plan sold through HealthCare.gov or similar state markets. For a family plan it's $14,300. After that, the insurance plan pays the full cost of covered benefits. In addition, more than half of customers in these plans get subsidies to help with their out-of-pocket costs. ""?SEN. CHUCK SCHUMER, Senate Democratic leader: ""CBO is virtually unassailable. Everyone, Democrats and Republicans, whether it be George Bush, Barack Obama or anyone else has gone along with CBO. ...CBO speaks the truth. They've been speaking the truth for decades and to try to attack CBO is simply attacking the messenger."" ""?Comments to reporters Monday. REP. NANCY PELOSI, House Democratic leader, on Republican reaction to the CBO: ""Some of them are trying to pin a rose on this report and make it sound like it's a good thing and the others of them are trying to discredit the CBO, but it's completely wrong, completely wrong. ... Numbers are quite elegant things, you know. They speak very clearly."" ""?Comments to reporters Monday. THE FACTS: Democrats have not hesitated to attack this messenger when its conclusions have not suited them. ""The Congressional Budget Office never gives us any credit,"" President Obama said in 2009 when the CBO pointed to the expense of Democratic health overhaul proposals. Complained Pelosi at the time: ""The CBO will always give you the worst-case scenario."" Again in 2014, Pelosi did not consider CBO's numbers ""elegant,"" or correct, when they forecast job losses from a Democratic effort to raise the minimum wage. She accused the CBO of making arguments that ""contradict the consensus among hundreds of America's top economists"" and said it ""ignored new perspectives in the wide array of analysis on the minimum wage."" ""?TRUMP: People covered under the law ""can expect to have great health care. It will be in a much simplified form. Much less expensive and much better... lower numbers, much lower deductibles."" CBO: It says cost-sharing payments in the individual market, including deductibles, ""would tend to be higher than those anticipated under current law."" Cost-sharing subsidies would be repealed in 2020, ""significantly increasing out-of-pocket costs for nongroup (private) insurance for many lower-income enrollees."" ""?TRUMP, at a Cabinet meeting Monday: ""Obamacare, all of a sudden, the last couple of weeks, is getting a false rep that maybe it's OK. It's not OK, it's a disaster and people understand that it's failed and it's imploding. And if we let it go for another year, it'll totally implode."" CBO: Not in the view of the budget experts. They described the market for individual policies under Obama's health care law as ""stable."" They said it is likely to remain stable under the proposed GOP replacement legislation, too. ""?MICK MULVANEY, Trump's budget director: ""If you have coverage that doesn't allow you to go to the doctor, what good is it in the first place? ...Democrats took all of this credit for giving people coverage, but ignored the fact that they had created this large group of people that still could not go to the doctor."" ""?Tuesday on MSNBC's ""Morning Joe."" THE FACTS: Republicans gloss over reality when they make this argument. While deductibles are high for the Affordable Care Act's private insurance plans (averaging $3,000 last year for a standard silver plan), the law requires preventive care to be covered at no charge. And more than half of the people enrolled in the health law's insurance markets get an extra subsidy when they go to seek care. It can reduce a deductible from several thousand dollars to a few hundred. The GOP bill would repeal those subsidies. Other evidence points to tangible benefits from Obama's coverage expansion. For example, government researchers have found fewer Americans struggling to pay medical bills. A 2015 report found that problems with medical bills had declined for the fourth year in a row. Most of the improvement was among low-income people and those with government coverage, and it coincided with the ACA's big coverage expansion. ""?TOM PRICE, health and human services secretary: ""I firmly believe that nobody will be worse off financially in the process that we're going through."" ""?NBC's ""Meet the Press,"" Sunday. CBO: There are losers as well as winners, the analysts found. Generally, older people are bound to face higher costs because the legislation would let insurance companies charge them up to five times more for premiums than they charge young people. They can only be charged three times more now. The bottom line, the analysts say, would be ""substantially reducing premiums for young adults and substantially raising premiums for older people."" ""?MULVANEY: ""Actually I don't think the costs will go up at all."" ""?ABC's ""This Week,"" Sunday. CBO: It estimates that some costs indeed will go up, at least for a few years. The analysts say average premiums in the private insurance market would rise in 2018 and 2019 by 15 percent to 20 percent, compared with current law, then start to come down. By 2026, average premiums could be 10 percent lower, compared with the existing law. One reason: insurers could eliminate a current requirement to offer plans that cover a set percentage of the cost of certain benefits. ""?Associated Press writers Jim Drinkard and Andrew Taylor contributed to this report. ""?Find all AP Fact Checks at http://apne.ws/2kbx8bd ""?This story has been corrected to reflect that Pelosi and Schumer spoke Monday. EDITOR'S NOTE _ A look at the veracity of claims by political figures", -2327,2017/3/14,http://www.cnn.com/2017/03/14/politics/trump-tax-returns-release/index.html,White House: Trump paid $38 million in income tax in 2005,Washington (CNN)The White House said Tuesday President Donald Trump earned more than $150 million in income and paid $38 million in taxes even after taking into account large scale depreciation for construction in response to questions about the coming publication of his 2005 return.,"The $38 million was in addition to ""paying tens of millions of dollars in other taxes such as sales and excise taxes and employment taxes,"" a White House official said. Journalist David Cay Johnston published the return information ahead of an appearance on MSNBC. ""You know you are desperate for ratings when you are willing to violate the law to push a story about two pages of tax returns from over a decade ago,"" the official said Tuesday. Trump had promised during the presidential campaign to release his returns -- which every presidential nominee in modern times has made into a precedent -- after the conclusion of a routine audit, but the White House has not spelled out when exactly that would be. More recently, aides have suggested that since he won the election, he would not release his returns. Hillary Clinton and Trump's Republican rivals during the presidential election sought to turn the returns into a campaign issue, but failed to create enough pressure to force their release. In October, The New York Times obtained a single year's return anonymously that showed that Trump declared a $916 million loss and lists tax benefits he used after a turbulent financial period for him in the early 1990s. The paper, citing tax experts, said Trump could have used his loss to cancel out an equivalent amount of taxable income for nearly two decades.", -2328,2017/3/15,http://www.cnn.com/2017/03/15/europe/netherlands-election-populism-rutte-wilders/index.html,Populism on the rise? Netherlands gears up for bellwether vote,(CNN)Voters in the Netherlands head to the polls Wednesday in an election widely seen as an indicator of populist sentiment across Europe.,"With the first round of the French presidential election just over a month away and Germany headed to the ballot box later this year, the Dutch battle is being closely watched for clues to wider political trends. Conservative Prime Minister Mark Rutte is facing a tight battle with far-right rival Geert Wilders, whose anti-immigrant, anti-Islam tirades have landed him in court -- but also won him widespread support in a country that is increasingly polarized by austerity and immigration issues. Rutte's Party for Freedom and Democracy, the VVD, leads the latest Peilingwijzer poll of polls by Leiden University, but Wilders' Freedom Party, the PVV, is hot on its heels. The Dutch political landscape is splintered, with 28 parties on the ballot, and the country's system of proportional representation means some form of coalition government is almost guaranteed. What you need to know about the Dutch election Poll position but no gold Rutte will be looking to secure a third term in office; should his lawmakers form the largest group in the 150-seat House of Representatives, he is expected to form a new coalition government with at least three other parties. But maintaining the status quo is exactly what many Dutch voters have tired of, and Wilders has rated strongly in pre-election polls thanks to his no-nonsense rhetoric and often controversial views. Other parties -- including Rutte's VVD -- have lurched to the right in response. Musician and actor Ron Mesland, from Amsterdam, said he was concerned about the wider impact of Wilders' popularity: ""I'm worried about Geert Wilders, but mostly about the effect he has on the other parties,"" he said. ""Most other parties seem to adopt his speech and his ideas, and that really worries me."" Ruud Koole, politics professor at the University of Leiden, said that in the event Wilders secures the most seats in the House of Representatives, the country's political system would likely make it extremely difficult for him to govern. ""We always have coalition governments,"" he said. ""If Wilders' party were to become the biggest ... he'll have to make a coalition with other parties. The problem for Wilders is that other parties do not want to enter a coalition with the PVV."" Lawyer to high school dropout: Meet the would-be MPs Losing steam on final lap? Koole said Wilders is popular because he speaks to the specific concerns of part of the electorate, ""concerns about unemployment, about health care, but especially about the Dutch national identity, which lead to foreigners, immigrants, asylum seekers, also refugees. ""Voters for Wilders don't really believe that he has the solutions to solve these problems, but at least he expresses their concerns and that is why he polls rather high in this campaign."" But Wilders' popularity has waned in recent weeks and one expert suggested his decline could be down to US President Donald Trump. ""[Wilders is] well under 20% and his support has been slipping in the recent weeks,"" said Quentin Peel, associate fellow at Chatham House. ""I think one of the reasons it's been slipping, funnily enough, is the election or arrival in power of Donald Trump."" He continued: ""I think that very well-grounded middle-of-the-road solid Dutch citizens have been a bit concerned about what has been happening in Washington. ""The trouble is [the results] are very difficult to predict. You've got no less than 28 parties running in this campaign, and you're probably going to ... end up with a very complicated coalition and Mr. Wilders is not going to be part of it."" Geert Wilders: Why voters are flocking to Dutch Trump Key issues for voters Given the bellwether nature of Europe's first election this year, the Netherlands has been thrust into the global spotlight. According to preliminary Eurostat data, the country's economy grew by 2.1% last year, and investors have remained reasonably calm throughout the campaign. But Rutte's tough austerity measures aimed at combating the 2011-2012 recession have hit the country's poorest the hardest and that has weighed on their minds as they prepare to visit the ballot box. ""My biggest concern is that the working class is being put down,"" said delivery driver Tony Regnerus. ""The immigrants are all coming in, and they get a better life than the working man. They're not pushed to do anything with their life, they're not pushed to get a job. ""Every day, I go to big cities like Rotterdam and Gouda and Delft, they're all wearing Canada Goose jackets -- �100, and I can't pay it -- [but] I'm a working man. It's gotta be the other way around."" The Netherlands' relationship with the European Union has been another hot topic on the campaign trail. The Dutch were founding members of the union, but attitudes have cooled in recent years, and Wilders has pledged a Brexit-style referendum on whether to leave the EU. Worse than Wilders? Why refugees fear status quo Fisherman Jan de Boer said he is concerned about the future of his industry -- which he says is threatened by EU regulations -- and this will be at the forefront of his mind when he comes to fill out his ballot on election day. ""The rules are very bad for the fishermen of the Netherlands,"" he said. ""We want fishing and our children want fishing."" Until now, de Boer has always voted for the Christian Party -- but this time around, he said, that will change. ""Geert Wilders' ... is the only party that fights European rules, and for me that's important."" But bus company worker Leonard Schaab said he didn't believe Wilders will do as well as expected: ""The polls are always a little bit off, and when the real elections [take place] most of the time people will vote for other parties."" ""The man doesn't have the skills to do it,"" he added. ""The only thing Geert Wilders does is shout about all kinds of problems ... he creates problems, but he never has solutions.""", -2329,2017/3/14,http://www.cnn.com/2017/03/14/europe/netherlands-refugees-wilders-we-are-here/index.html,Worse than Wilders? Why refugees in the Netherlands fear the status quo,"Amsterdam, the Netherlands (CNN)Khalid Jone is -- in theory -- one of the lucky ones. He fled bloodshed in Sudan after his family was killed in bomb attacks, and made it to safety in the Netherlands.","""You're not looking for work, or to start a new life. You're just saying, 'I want to save myself,'"" he says, remembering his desperation. But instead Jone found himself trapped in limbo. He is one of hundreds of refugees whose requests for asylum have been rejected by Dutch authorities; unable to return home, they are also blocked from work or study. ""The biggest mistake I made in my life was to demand asylum in the Netherlands,"" he says. As the Dutch prepare to vote in a general election where the far-right, anti-immigrant politician Geert Wilders and his Party for Freedom (PVV) are expected to poll strongly, Jone says he fears the status quo more than a Wilders win. ""I'm not afraid of Wilders, I'm afraid of those who are running the system now,"" he says. ""If Wilders becomes [Prime Minister], I don't know how he's going to run his government. But I know these people, I was with them already for 16 years ""?16 years I've been fighting, just for little rights."" What you need to know about the Dutch election Jone is part of a collective called We Are Here (WAH), founded in 2012 after a number of asylum seekers had their applications rejected simultaneously. With nowhere to go they squat in unoccupied buildings in Amsterdam -- partly for shelter, and partly to make themselves noticed. The group's over 200 members come largely from war-torn African and Middle-Eastern countries, and are stuck in what human rights groups say is an ""asylum gap,"" legally barred from integrating into Dutch life via jobs or training courses. ""If you want to be active to fight for your rights, first you need shelter over your head,"" says Jone. ""When you have a place to sleep, you can relax and ... it can help you think about what you want to do."" Over the past four and half years the group has taken over approximately 30 empty buildings across the city for varying intervals, staying until they are evicted, and then moving on to the next site. Jelle Klaas, a prominent Dutch human rights lawyer, says the Netherlands generally has a good track record on human rights issues, but that the current government has been criticized by the UN's Committee on the Elimination of Racial Discrimination, which voiced its concern over an ""increase in hostility towards refugees and asylum-seekers"" in the country. Human Rights Watch has also raised ""serious concerns"" over the Netherlands' ""extensive use of detention for migrants and asylum-seekers, lack of safeguards in the asylum appeals procedure, and the lack of support for rejected asylum seekers who cannot be returned to their countries of origin."" ""I think it's the most important problem that the Netherlands is facing,"" says Klaas, who says the government is working with ""the fiction"" that asylum seekers can leave ""even though they know that's not true."" Top lawyer to high school dropout: Meet the would-be MPs A spokeswoman for the Netherlands' Immigration and Naturalization Department, Yvonne Wiggers, told CNN that when an asylum seeker's application is rejected ""they go back home."" Wiggers says cases are reviewed individually, but if the system determines that asylum is not an option, then ""the conclusion is that they need to leave Holland and go back to their own country."" For asylum seekers in WAH who have been rejected, she said the options are limited: ""That's not to say they don't get any shelter, because of course there are citizens in Holland and churches and all kinds of people who help these people, but from a government side, they can't claim shelter anymore."" The decision about whether to provide shelter to asylum seekers whose claims have been rejected is largely up to local municipalities, and varies widely in practice. The current government's view of outsiders was reflected in an open letter recently published by Prime Minister Mark Rutte -- whose conservative VVD party is neck and neck with Wilders in a recent poll of polls conducted by Leiden University. In it, he tells immigrants, ""If you so fundamentally reject this country, then I'd prefer you to leave."" Klaas describes the letter as ""horrible,"" adding ""if you look at the rhetoric not only from [Rutte's VVD party] but a lot of the political parties, they want to get these votes from Wilders, so they're also shifting to the right."" Wilders has referred to male asylum-seekers as ""testosterone bombs,"" and insisted that the Netherlands should ""close our borders for all asylum-seekers and all immigrants from Islamic countries."" Male asylum-seekers already in the country should be locked up, he says. Geert Wilders: Why voters are flocking to the Dutch Trump Members of WAH told CNN they've noticed an anti-refugee, anti-immigrant tone in many aspects of their life in the Netherlands. ""When you come here they try to intimidate you,"" says Eric Bimule. ""You're telling your story and they're saying, 'You're lying, it's not true.' That's hard. How can you tell me my story's not true? It's my story. I've lived this story."" Bimule says he was flown out of the Democratic Republic of Congo aged 16 by his mother, a Dutch national, after the Congolese militia repeatedly tried to recruit him as a child soldier. Eleven years on, he says he no longer believes in the asylum process. The Dutch economy is doing fine, so why are voters so angry? Even for refugees whose applications are successful, there can be difficulties. Somali refugee and WAH advocate Bushra Hussein's asylum request was recently granted and she is now living in the Netherlands on a temporary residency permit, which allows her to study. She says she wanted to become a doctor, but the years spent waiting for asylum have limited her options. Instead, she's studying to be a nurse. But even while helping people, she says she's subject to racism. During work experience at a nursing home, one elderly man told her she doesn't belong in the country as a Muslim. Despite this, Hussein still hopes to be able to integrate into life in the Netherlands. ""In the younger generation, most of them, they don't care about religion,"" she says. ""I hope [they] can bring change to the country."" Many WAH members who are still waiting for documents don't share her optimism. Tegisti Taklo fled Eritrea over fears of military conscription and religious persecution as a Christian. Having left her mother and young son behind, she says she has more problems as an undocumented refugee in the Netherlands than she did at home. ""Sometimes I say to myself, 'Why did I leave? ""For six years I don't study, I don't take care of my son, I don't help my mother, I don't help myself even. I just feel like nothing. ""Sometimes I really wish I died in my country."" What effect is Wednesday's election likely to have on people like Hossein, Taklo and Jone? ""The best result we could have here is what we're seeing in the US right now ""?a movement in the streets, in courts, campaigning, lobbying, people claiming their basic human rights again, and using solidarity,"" says Dutch human rights lawyer Klass. What you need to know about the Dutch election Jone too, believes ordinary citizens in the Netherlands have as much of a role to play as the politicians. ""Trump, Wilders, these people are not bad people, they are just misled,"" he says. ""Everyone is responsible to try and engage in dialogue with them. That is the only way we will be able to live together in this world.""", -2330,2017/3/15,http://www.cnn.com/2017/03/14/europe/erdogan-attacks-dutch-over-srebrenica/index.html,Erdogan attacks Dutch over Srebrenica as tensions escalate,(CNN)Turkey's president has accused the Dutch of being responsible for the biggest massacre in Europe since World War II in remarks that will escalate tensions further between the two countries.,"With high-level diplomatic relations between Turkey and the Netherlands already frozen, Recep Tayyip Erdogan blamed the Dutch for failing to prevent the killing of 8,000 Bosnian Muslims when Bosnian Serb forces overran the town in 1995. In a reference to Dutch United Nations peacekeepers who were on the ground and failed to prevent the mass killing, Erdogan said Tuesday: ""We know the Dutch and the people in Holland from the massacre of Srebrenica. We know them, how they massacred people in Srebrenica full well. We don't need anyone to give us a lesson on civilization."" Dutch Prime Minister Mark Rutte responded to the remarks, accusing Erdogan of ""a disgusting falsification of history."" In an interview with Dutch broadcaster RTL, Rutte said: ""[Erdogan] continues to push the limits. This is of unbelievably low quality and style. We are not going to reduce ourselves to this level. This is very unacceptable and extremely irritating."" Adding fuel to the fire The Turkish president's incendiary comments -- made during a speech in Ankara -- came amid an escalating row sparked by Turkish officials being blocked from addressing political rallies in the Netherlands. Over the weekend, the Netherlands refused to allow Turkish Foreign Minister Mevlut Cavusoglu to visit Rotterdam for a political rally. Shortly after Cavusoglu was refused entry, the Dutch stopped Turkey's Family Affairs Minister Fatma Betul Sayan Kaya from entering the Turkish consulate in Rotterdam. She was later escorted out of the country. Violent clashes erupted after the action against the two ministers who had hoped to drum up support for an April 16 referendum to give greater powers to Erdogan. Erdogan has already made angry remarks against the Dutch since the incidents in Rotterdam -- comparing the current government to Nazis. The Netherlands lost more than 200,000 of its citizens when it was occupied by Nazi Germany in World War II and Rutte has demanded an apology. On Monday, Turkey announced that it would not allow the Dutch ambassador to Ankara to return to Turkey and suspended high-level diplomatic relations between the two countries. The deepening diplomatic row has also prompted threats from Turkey to pull out of the EU-Migrant deal, designed to stem the flow of migrants to Europe. Tension ahead of votes The growing tensions come ahead of the Dutch general election on Wednesday; far-right candidate Geert Wilders' anti-Islam, anti-EU Party for Freedom (PVV) is expected to make a strong showing. Wilders has sought to gain political advantage from the discord between the Netherlands and Turkey. Meanwhile, it has also been suggested that Erdogan is seeking to show his strength as a leader on the world stage. His Srebrenica comments -- given during speech on healthcare -- drew loud applause from the audience. Erdogan also implored Dutch voters of immigrant backgrounds not to cast their ballots for Wilders, who he described as an ""extreme racist"" or Prime Minister Rutte in Wednesday's election.", -2331,2017/3/15,http://www.cnn.com/2017/03/14/asia/rex-tillerson-asia-visit/index.html,North Korea looms over Rex Tillerson's first Asia trip,"Tokyo/Seoul/Beijing (CNN)When Rex Tillerson was sworn in as US Secretary of State, his boss said he would bring a ""clear-eyed focus to foreign affairs.""","He'll need it on his first trip to Asia, which begins Wednesday, as tensions flare in the volatile region. North Korea's missile program is getting quicker and smarter, threatening the United States and its two key East Asian allies -- Japan and South Korea. The latter is reeling after the ouster of its president. Tillerson will need to convince both that it's in their best interests to remain committed to the United States, and its controversial missile defense system. However, his diplomatic skills will get their biggest test on the last leg of his trip when he becomes the first Trump Cabinet member to visit China and seeks to tap the country's perceived leverage over the North Korean regime. Here, CNN's Asia correspondents detail the challenges Tillerson faces on each stop: South Korea | China | Japan Tokyo (CNN) -- Tillerson's most pressing issue in Japan -- like the region as a whole -- is the growing nuclear threat from North Korea. The country's provocative leader Kim Jong Un test-fired a ballistic missile during Japanese Prime Minister Shinzo Abe's visit with US President Donald Trump in Florida, the timing of which led some analysts to believe it was a message for Tokyo. And last week, when Kim launched four ballistic missiles simultaneously, North Korean state media implied the launch was practice for striking US military bases in Japan, where around 52,000 US service members are based. Tillerson will meet with Abe and his counterpart Foreign Minister Fumio Kishida, with Japan seeking reassurance from the United States that it remains Washington's closest and most trusted ally in the Asia-Pacific. Though Trump frayed nerves on the campaign trail by calling into question US alliances in the region, the new administration has mostly dialed back that rhetoric. Tensions between Japan and the US' other big ally in the region, South Korea, could provide a challenge for Tillerson as he seeks to rein in North Korea. The Japanese ambassador was recalled from Seoul in January over a controversial statue depicting the ""comfort women"" who were forced into sexual servitude by Japanese forces before and during World War II. With deft, old-fashioned diplomacy, Tillerson has to find a way to encourage Japan and South Korea to resolve their issues so all three countries can focus on the growing threat Pyongyang poses to regional and global security. From CNN's Will Ripley Seoul (CNN) -- The main challenge for South Korean officials when Tillerson arrives is to convince him it's business as usual, when it's anything but. Park Geun-hye has just been ousted from office, the country is bitterly divided and the government has been effectively paralyzed since the corruption scandal broke months ago. But those holding the fort will work hard to get the assurances they want from the top US diplomat. Tillerson will meet acting President Hwang Kyo-ahn for the first time and Foreign Minister Yun Byung-se, whom he met in February at the G20 foreign ministers' meeting in Bonn, Germany. When US Defense Secretary James Mattis visited last month, he said what South Koreans wanted to hear -- that Washington promised an ""overwhelming"" response to any attack mounted by North Korea. Officials will be looking for statements along the same lines from Tillerson. Tillerson also arrives at a time when Seoul claims Beijing is punishing it economically for agreeing to install THAAD, the US missile defense system that Washington says is needed to counter the North Korean missile threat. With Park now out of the picture, he'll also be seeking assurances that South Korea's new leader honors the agreement. Snap elections will be held by the end of May. The first elements of THAAD arrived in South Korea last week, the official line is it could be fully operational by July at the earliest. From CNN's Paula Hancocks Beijing (CNN) --Tillerson's first priority during scheduled meetings in Beijing Saturday will be to iron out the details of a tentative Florida summit scheduled in April between Trump and Chinese President Xi Jinping. It would be the first meeting between the two men, in what many argue is the most important bilateral relationship in the world. There is no shortage of items that should be discussed. High on the list will be the ongoing crisis in North Korea. Since the beginning of 2016, two nuclear tests and dozens of ballistic missile tests have ratcheted up tensions on the peninsula. The Trump administration wants China to do more to curb the threat. China will likely want to talk about the THAAD anti-missile defense system and Gray Eagle attack drones in South Korea. Beijing has expressed its strong disapproval of both, and Tillerson will likely leave China with that fact fully communicated. Tillerson will also likely raise Beijing's build-up in the South China Sea. At his confirmation hearing, Tillerson suggested that Beijing should be denied access to the artificial islands it's built in the disputed waters. Despite fiery rhetoric on the campaign trail, President Trump and his administration have taken a relatively hands off approach to China so far. Trump has not followed through on campaign threats to label China a currency manipulator or impose steep tariffs on Chinese imports. He also endorsed the ""One China"" policy, which has governed relations between the US, China and Taiwan for decades, after questioning its legitimacy shortly after his election. The Secretary of State's visit to China has the potential to set the tone for the upcoming Xi-Trump meeting. It could be the opening salvo in the Trump's administration's previous promises to ""get tough"" on China, or it could be a continuation of the relatively calm period we've seen since inauguration day. From CNN's Matt Rivers", -2332,2017/3/14,http://www.cnn.com/2017/03/14/politics/wiretapping-congressional-investigation/index.html,"Senator: Comey to say whether FBI probing Russia, Trump campaign by Wednesday",(CNN)Sen. Sheldon Whitehouse said Tuesday that FBI Director James Comey promised to tell him Wednesday whether the FBI is investigating ties between Russia and the campaign of President Donald Trump.,"The Rhode Island Democrat said that Comey made the promise in a March 2 meeting with him and Sen. Lindsey Graham, a Republican from South Carolina. According to Whitehouse, Comey assured them he would confirm if an investigation exists ""and the scope of their Russia/Trump investigation because he had not been able to at that point say that there was one."" Whitehouse and Graham both asked the Justice Department last week to provide any evidence that would support Trump's claims that former President Barack Obama wiretapped Trump Tower. The two are leading one of three Congressional investigations into Russia's interference in the US elections. The FBI has not responded to a CNN request for comment on whether Comey will respond by Wednesday. Graham expressed frustration Tuesday that the Trump administration has not yet provided any evidence of wiretapping and said he plans go ""tough"" on the administration during Wednesday's hearing. The White House has vacillated on Trump's claims in the last two days. Press Secretary Sean Spicer said Monday that Trump did not mean literally that Obama had him wiretapped. But on Tuesday, Spicer said Trump was ""extremely confident"" he would be vindicated by the evidence. ""I think there's significant reporting about surveillance techniques that existed throughout the 2016 election,"" White House Press Secretary Sean Spicer said, without providing any examples. ""He feels very confident that what will ultimately come of this will vindicate him,"" Spicer said. Democrats from the Senate Intelligence Committee -- whose investigation is separate from the one Graham and Whitehouse are a part of with the Subcommittee on Crime and Terrorism of the Senate Judiciary Committee -- said Tuesday they doubt Trump has evidence he was wiretapped, but the issue could easily be settled. ""It can all be put to bed with one phone call,"" said Sen. Mark Warner, the top Democrat on the Senate Intelligence Committee, before heading into a hearing of the group Tuesday afternoon. ""I have seen absolutely no evidence of President Trump's claim about President Obama."" Warner said he expects the first public hearing from the Senate Intelligence Committee on Russia later this month. The Virginia Democrat said he wanted to hear from Roger Stone, a former Trump adviser whose contact with ""Guccifer 2.0""-- the online persona who claims responsibility for hacking the Democratic National Committee -- also had Sen. John McCain wanting to question him. ""If we are investigating Russian interference, here is someone who has acknowledged that he has been in contact with the Russians,"" Warner said of Stone. Stone has described his contact with Guccifer as limited to a ""brief exchange with him on Twitter"" and any suggestion otherwise, he told CNN, is ""a fabrication."" The House Intelligence Committee scheduled its first hearing for Monday, and has invited a slate of current and former intelligence chiefs to testify. Senate Intelligence Committee Chairman Richard Burr said Monday that he has asked the ""appropriate people"" for information about Trump's wiretap claims and said their answers have been ""sufficient."" But Senate Democrats on the Intelligence Committee said they have not seen any evidence yet. ""I've heard nothing. But I'm strongly of the opinion there was no wiretapping,"" said Sen. Dianne Feinstein, a veteran member of the panel. Warner also said he was not satisfied with the response to requests for information from the administration, saying, ""I'm not sure why this is taking any time.""", -2333,2017/3/15,http://www.cnn.com/2017/03/14/politics/donald-trump-dismember-government/index.html,Trump's plan to dismember government,Washington (CNN)President Donald Trump plans to dismember government one dollar at a time.,"His first budget -- expected to be unveiled later this week -- will mark Trump's most significant attempt yet to remold national life and the relationship between federal and state power. It would codify an assault on regulatory regimes over the environment, business and education bequeathed by former President Barack Obama, and attempt to halt decades of steadily growing government reach. All presidential budgets are aspirational documents -- and few emerge from Congress in the same shape as they arrived on Capitol Hill. But Trump's first budget will make more of a statement than most debut spending blueprints by other new presidents. The White House has made clear it intends to use the document to usher in the radical political changes that powered Trump's upstart, anti-establishment campaign last year. It comes on the heels of other big changes such as the abrupt dismissal of 46 US attorneys last week and the effort to dismantle Obama's signature health care law. The ""deconstruction of the administrative state"" is what Trump's political guru Stephen Bannon calls the President's agenda. The senior White House adviser laid out his philosophy during a rare public appearance at the Conservative Political Action Conference last month. ""If you look at these Cabinet appointees, they were selected for a reason and that is the deconstruction. The way the progressive left runs, is if they can't get it passed, they're just going to put in some sort of regulation in an agency,"" Bannon said. ""That's all going to be deconstructed and I think that that's why this regulatory thing is so important."" Slicing up government power is part of a deeper antipathy towards institutions and the political establishment that runs deep in the Trump White House. At various times during the early months of his term, the President has seemed at odds with different parts of the government that he runs -- his disputes with intelligence agencies are a prime example. Last week, Trump's spokesman Sean Spicer did not reject the notion of a ""deep state"" of entrenched federal employees that is popular among some of the President's supporters, suggesting that some embedded former Obama administration officials were working to bring down the Trump agenda from within the government. How to de-fang the government ""We're going to do more with less,"" Trump told state governors late last month, promising a government that is ""lean and accountable to the people."" Trump will highlight his priorities by upping military spending by $54 billion, and is also expected to boost funding for homeland security -- money that may be used to toughen immigration enforcement and to build his wall on the southern border. The President will cement his ""America First"" policy by slashing State Department funding, foreign aid spending and grants to the United Nations, officials have already made clear. And nowhere is his assault on government expected to be as dramatic as at the Environmental Protection Agency -- which is bracing for a massive reduction of its budget. ""I think the important thing to remember about any budget is that it is more of a policy document -- 'this is what my ideal policy would be, this is my vision of the next four years,'"" said Justin Bogie, a senior policy analyst at the conservative Heritage Foundation. ""I think for President Trump it is important for him to get these ideas out there and show 'I am still committed to these things.'"" Attacking the EPA on every level There is a direct line between homing in on the EPA and Trump's campaign trail rhetoric, in which he vowed to neuter the power of government and regulatory policy on issues like greenhouse gas emissions and a hatred of government interference brewed in his own long years in piloting construction projects. ""That is an agency that has had a lot of burdensome regulations and that kind of thing that has limited the private sector and make it harder to do business,"" said Bogie. In choosing Scott Pruitt to head the EPA, Trump elected an administrator who as attorney general of Oklahoma sued the agency he now leads multiple times over environmental regulations. The Sierra Club commented after Pruitt was confirmed that ""the arsonist is now in charge of the fire department."" EPA officials are bracing for a budget cut of at least a quarter of its current size, and one source told CNN's Rene Marsh that layoffs and facilities closures are likely to take place as well as a reduction to the agency's basic services. The budget slashing is likely to target EPA regimens and limits on emissions by power plants that were at the center of Obama administration climate policy. Other programs under threat include the environmental justice program, which is meant to help local communities grapple with environmental concerns, and Global Change Research, a program funded by several agencies, including the EPA, which reports humans' impact on the planet. Leaving entitlements alone and cutting elsewhere Another key Trump campaign promise was his vow to his voters, especially those in blue collar Midwestern swing states that he would not touch entitlements like Social Security or Medicare -- vast repositories of taxpayer dollars that with along with interests on the national debt make up two-thirds of the federal budget. That means that discretionary spending is vulnerable, especially to an administration that wants to make a political point. ""The President ran very, very clearly on priorities. And the priorities are spending money at home on national defense, on border control, on immigration enforcement,"" said Trump's budget director Mick Mulvaney on the Hugh Hewitt radio show last week. ""In order to prioritize those spendings, without adding to that already large deficit, the money has to come from someplace,"" Mulvaney said. Such warnings are why agencies like the EPA and the Education Department that have long been in conservative crosshairs are particularly vulnerable in the Trump era. Federal funding for other Republican targets ""?like National Public Radio, the National Endowment for the Arts and the National Endowment for the Humanities may also be under threat ""?even though they account for a comparatively small area of overall spending. 'It is to his advantage to tear down institutions' For the Education Department, Trump chose Betsy DeVos, who has made clear that she intends to use the budgetary process to rein in the clout of her agency. ""I can guarantee that there are things that the Department has been doing that are probably not necessary or important for a federal agency to do. We will be looking at that, we will be examining and auditing and reviewing all of the programs of the Department and really figuring out what is the core mission,"" DeVos said on the Michael Patrick Shiels syndicated radio show last month. ""Really, when it comes down to it, education and the provision of education is really a state and local responsibility to a large extent."" Critics of the Trump cabinet are warning that the functions of agencies under the control of leaders like Pruitt and DeVos could be hampered for years. Dan Kanninen, formerly the Obama administration's White House liaison at the EPA, said Trump nominees at the EPA, Education, and Housing and Urban Development, which Ben Carson now runs, are ""ideologically bent against the mission and against the agency but they have no idea what the agency does."" ""It is certainly ideological and it is certainly ignorance and it is disdain for the fundamental institution of government -- what Steve Bannon means by tearing down our institutions,"" said Kanninen, now vice president for issues and advocacy at the Smoot Tewes group. ""What Mr. Trump does across the board is create doubt about our institutions,"" he said. ""It is to his advantage to tear down institutions."" Executive orders getting things started The President did not wait for the official announcement of his budget to get a start on cutting government. In January, Trump signed an executive memorandum ordering a federal hiring freeze. Monday, he went a step further, signing an executive order mandating an evaluation of every agency in the Executive Branch to work out where money could be saved. ""This order likely will result in agencies directing significant resources toward the agencies' very survival. That alone, will significantly slow regulatory activity,"" said Creighton Magid, a partner at Dorsey & Whitney, an international law firm. Congress won't go along easily Still, Trump's budgetary strategy could face significant challenges -- particularly in the Senate, where Republicans may be unwilling to support cuts to popular programs. Seen in the abstract, government is always unpopular with Republican voters. But often individual programs enjoy significant support at local levels. For instance, the Chicago Tribune reported Monday that the Trump budget proposes to cut the budget by 97% to $10 million in funding for the Great Lakes Restoration Initiative. Over the last decade the bipartisan plan has transformed the environmental health of Lakes Erie, Michigan and Ontario. The plan has seen heavily polluted areas cleansed, improvements to drinking water and the fight against Asian Carp which threatens to crowd out native species in the Great Lakes and harm local fishing industries. Lawmakers from both sides of the political aisle are already mobilized in a bid to fight off the prospect of cuts to the program. Last week, Ohio GOP Sen. Rob Portman, joined a bipartisan group of colleagues in writing a letter to Pruitt calling on him to guarantee the full $300 million funding for the program. The political sensitivity of the program might end up occurring to Trump -- in a way that will underline just how complicated using the budget to transform government can be. The region includes the states of Ohio, Pennsylvania, Michigan and Wisconsin, which together racked up 64 electoral votes that put him in the White House. CORRECTION: This story has been updated to correct a quote by Bannon.", -2334,2017/3/15,http://www.cnn.com/2017/03/14/asia/australia-headphone-explosion-flight/index.html,Airline passenger's headphones catch fire midflight,(CNN)A passenger's face was left blackened and her hand blistered after her battery-powered headphones caught fire while she was traveling on an international flight between Beijing and Melbourne.,"The woman told the Australian Transport Safety Bureau (ATSB), that she was sleeping and listening to music about two hours into the flight when she heard an explosion. ""As I went to turn around I felt burning on my face,"" she told the ATSB, which issued a statement Wednesday as a warning to other passengers. READ: Lithium-ion batteries banned on passenger planes ""I just grabbed my face which caused the headphones to go around my neck,"" she said. The woman, who was not identified, said she tore off the headphones and threw them to the floor, where she saw they were shooting off sparks and small flames. ""As I went to stamp my foot on them the flight attendants were already there with a bucket of water to pour on them. They put them into the bucket at the rear of the plane,"" she said. They couldn't remove all of the headphones however -- both the battery and cover had melted into the aircraft floor. ""People were coughing and choking the entire way home,"" the passenger told the ATSB, adding the cabin reeked of melted plastic and burnt hair. In a statement, the ATSB said it was likely the batteries inside the headphones had caught fire, rather than the headphones themselves. However, a spokesman wouldn't reveal what type of batteries or headphones were involved. He said the incident had occurred on February 19. Only a day before the incident, an Airbus A320 that took off from China reportedly had to make an emergency landing in Nagoya, Japan, after a portable power pack started a fire inside an overhead locker. Lithium batteries have been known to cause fires on board planes. Last year, US authorities banned Samsung Galaxy Note 7 from all US flights after its lithium battery was found to spontaneously ignite. The ban extended to shipping the phones as air cargo. Samsung blamed faulty lithium-ion batteries, which it was said were overheating and causing the device to catch fire. Attempts to fix the problem failed and it later permanently halted production. Australia's Civil Aviation Safety Authority has seen a sharp rise in incidents around electronic devices in recent years, from only three in 2011 to 106 in 2015, according to Flight Safety Australia. He declined to say what brand of headphones or batteries were involved.", -2335,2017/3/15,http://www.huffingtonpost.com/2017/03/14/rachel-maddow-donald-trump-tax-return_n_15375436.html,Journalist Who Received Trump Tax Return Questions If Trump Leaked It Himself,Pulitzer Prize-winning journalist David Cay Johnston says he received two pages from the 2005 document in the mail from an unknown source.,"Pulitzer Prize-winning journalist David Cay Johnston suggested Tuesday night on MSNBC's ""the Rachel Maddow Show""?that President Donald Trump himself may have been the unknown source who sent two pages of his 2005 tax return to the journalist.- ""It came in the mail over the transom,""?Johnston told Maddow, following the host's roughly 25-minute build-up before discussing the documents in detail. ""there is absolutely nothing improper about journalists ""?if you haven""t solicited something ""?getting it over the transom. Let me point out, it's entirely possible that Donald sent this to me. Donald Trump has, over the years, leaked all sorts of things.""?Johnston didn""t indicate he has any actual evidence Trump was the source, but he does know Trump's tendencies well after decades of covering him. Johnston-was the Atlantic City, New Jersey, bureau chief for The Philadelphia Inquirer from 1988 to 1991, charting Trump's rise and fall in the city, and he wrote about the casino mogul in his 1992 book,-Temples of Chance: How America Inc. Bought Out Murder Inc. To Win Control of the Casino Business. Johnston joined The-New York Times in 1995 and later won a Pulitzer at the paper for his reporting on loopholes in the U.S. tax system. Just weeks into Trump's candidacy, Johnston posed 21 questions-in The National Memo about the Republican's business dealings and philanthropic claims, some of which remain unanswered given Trump's decision to break with four decades of precedent by not disclosing his tax returns. The veteran investigative journalist reported on candidate Trump for outlets such as The Daily Beast, wrote a critical biography of him and continued to dig into his past for information relevant to his race for the White House.- When The Huffington Post interviewed the legendary reporter Wayne Barrett in March 2016 for an article on the media's failure to vet Trump's business record, Johnston was in the late journalist's basement poring through old boxes of files on Trump from Barrett's decades at The Village Voice. ""If Donald Trump were to become president, he is the first person I know of who would be in the White House in modern times with deep, continuing associations with mobsters, con artists, drug traffickers, convicted felons ""?gratuitously involved with these folks,""?Johnston told The Huffington Post at the time. ""that deserves enormous inquiry.""?- Johnston also started a site last year, DCReport.org, where he posted the two pages of the document Tuesday that he discussed on Maddow's show. The portion of Trump's 2005 federal tax return indicates he made $150 million that year and paid $38 million in taxes. A White House spokesman acknowledged the authenticity of the tax document before the show aired and noted that Trump ""paid $38 million-even after taking into account large-scale depreciation for construction.""?The White House spokesman also claimed ""it is totally illegal to steal and publish tax returns.""?But, as Johnston noted, he didn""t solicit the source to send the pages. And Maddow mentioned that ""the First Amendment gives us the right to publish this return""?and disputed the White House claim that it was being ""illegally published.""?In October, The New York Times published pages from Trump's 1995 tax records, which reporter Susanne Craig said she received in her mailbox at the paper. The Daily News also received a copy but couldn""t verify it before being scooped by the Times. Johnston also suggested Tuesday night that Trump could""ve been the source for the Times and New York Daily News, or for the New York Post when it published racy pictures of his wife, Melania, from her modeling days. ""donald has a long history of leaking material about himself when he thinks it's in his interest,""?Johnston said. Indeed, the disclosure of two pages from the 2005 return-isn""t such a bad story for Trump.-And Johnston's musing about Trump-as-source prompted chatter among journalists on Twitter, some of whom pointed out that the documents in question are marked ""Client copy.""?Still, other journalists-threw water on the theory, noting that the source could have been any number of people. Maddow's report added some more details to Trump's opaque tax history, even if it wasn""t the blockbuster that journalists awaiting her much-hyped broadcast expected. But the disclosure may be of great benefit to the public is if it leads to more pages surfacing from tax returns that the president has continued to keep hidden.- As Maddow said Tuesday night, the fact that this document was provided to a reporter ""may be the most important part of this story.""?How will Trump's first 100 days impact you? Learn more", -2336,2017/3/14,http://www.huffingtonpost.com/2017/03/14/american-airlines-free-meals-economy-some-flights_n_15373942.html,American Airlines Is Bringing Back The Perk You Once Hated,"Oh, air travel.","The state of domestic air travel lacks so many perks that we'r now highlighting the return of once-free (and always derided) airplane food.- American Airlines said Tuesday that it would bring back free meals in economy class on some coast-to-coast flights beginning May 1. The news comes on the heels of Delta making a similar announcement last month, launching complimentary main-cabin meals in March. American Airlines said free meals will be provided on flights between Los Angeles International Airport and New York's JFK Airport. Meals will also be complimentary on flights between San Francisco and JFK. Depending on the time of day, passengers will choose from a continental breakfast box, a sandwich/wrap or a fruit-and-cheese plate. A vegetarian option will also be available. By the looks of it, it seems as though airplane food has gotten a slight upgrade in the years since it left economy. The airline still plans to have food available to purchase.-""me of our best customers fly our trans-continental routes, and we want to give them a top-notch onboard experience,""?American Airlines Vice President Fernand Fernandez said in a press release. ""Providing complimentary meals in the Main Cabin is yet another step we'r taking to enhance our service in this competitive market.""?The meals will be served on American's A321T fleet, which is the aircraft that has lie-flat seats in first and business classes. Customers can use sites like seatguru.com and flightstats.com to determine which plane they will be flying in.- The free meal likely comes as a real perk to customers in American Airlines""?no-frills ""basic economy""eats. They may be the last to board the plane and not allowed overhead bin space, but at least they'll get to eat.- We'r basically your best friend""?with better taste. Learn more", -2337,2017/3/15,http://www.huffingtonpost.com/2017/03/14/chicago-free-legal-aid-police-custody_n_15373914.html,Chicago Judge Orders Access To Free Lawyers At Police Stations,Fewer than 1 percent of people in police custody in Cook County ever speak with an attorney.,"CHICAGO ""?In a city where fewer than 1 percent of people in police custody are visited by an attorney,-a judge's order will help the poor access a free lawyer while at the police station.-- Chief Judge Timothy Evans of the Circuit Court of Cook County signed an order Tuesday that would make a county public defender or a designated private attorney available to anyone who is in custody at one of the Chicago Police Department's 22 stations with lockup facilities.- ""people watching TV think that's what happens: You ask for a lawyer, and they just come in,""?said Alan Mills, director of the Uptown People's Law Center, a nonprofit civil rights organization.- It does work that way if you can afford your own attorney, but few can in Cook County: 89 percent of defendants charged-in criminal cases relied on a public defender, according to 2015 county data.- ""�Until a judge appoints a lawyer [to an indigent defendant], you don""t see one,""?Mills said. ""You can""t get a lawyer until your first court appearance.-And that dramatically changes the outcome of your case.""The inability of people in police custody to access a lawyer before their first court appearance is what Mills and others said has contributed to Chicago's reputation as ""the False Confession Capital of the U.S.""""Here's the scuttlebutt: No one has ever talked themselves out of charge, but lots and lots of people have talked themselves into one,""?Mills said.- Having access to a lawyer before a bond hearing could also mean significant savings for taxpayers. Mills points to the obvious savings from decreasing the number of wrongful convictions.- ""the city has paid roughly $50 million a year in the past decade or so,""?Mills said of Chicago's wrongful conviction settlements and related court costs. ""It's much better to keep people out of prison than to pay them for being wrongfully put there in the first place.""Eliza Solowiej, executive director of the 24-hour First Defense Legal Aid group, said major-savings would come from eliminating unnecessary jail stays. To highlight the cost to taxpayers, Cook County Sheriff Tom Dart puts out an annual report of ""dead time,""?or time served by people whose sentences are less than the time already served or whose charges are dropped. In 2015, about 8,700 people spent time locked up ""?at about $143 per person per day ""?whose charges were eventually dropped.- ""I want to ensure that constitutional rights are protected from the earliest point of contact with the criminal justice system,""udge Evans said in a statement Tuesday. ""the concept of ""�justice""?demands that we take this step to strengthen an individual's rights and the public's confidence in the system.""?""In the eyes of the law, everybody is innocent until proven guilty. Everybody deserves access to justice,""?he added.- Solowiej-said talks with Evans regarding the need for pre-hearing indigent counsel started a little more than a year ago.- She described Evans as surprised ""but really interested""?in the statistic that fewer than 1 percent of people were receiving counsel in police custody.- Under Evans""?order, arrestees will now have access to legal aid during normal weekday business hours.-Solowiej's group of volunteer attorneys will be on call after hours, on weekends and on holidays.- ""It's a moral and ethical imperative for us,""?said Solowiej, who is already planning training for new volunteers. ""I know the Chicago legal community is going to step up.""Solowiej noted that the Cook County prosecutors already have a 24-hour unit, so it only makes sense that the Cook County public defenders have one, too.- Cook County Public Defender Amy Campanelli noted in a statement that Evans""?order comes the week of the 54th anniversary of-Gideon v. Wainright,-the landmark U.S. Supreme Court decision which established that all defendants must be provided with counsel if they'r too poor to afford their own.- ""As then-Attorney General Robert F. Kennedy said, because Mr. Gideon filed his own crude, handwritten petition asking for the right to counsel, ""The whole course of American legal history has been changed,""?Campanelli said in a statement. ""Today, the course of legal history in Cook County has changed thanks to the vision and action of Chief Judge Timothy C. Evans.""Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2338,2017/3/15,http://www.huffingtonpost.com/2017/03/14/this-is-us-finale_n_15373912.html,'This Is Us' Makes Surprising Reveal About Jack In Season 1 Finale,"We're not crying, you're crying!","Warning: Spoilers for ""This Is Us""?Season 1 ahead.- Tuesday night's finale of ""This Is Us,""?titled ""Toonshadow,""?gave fans some of the answers We're been waiting for, but also left viewers with a whole new set of questions. - Although we didn""t learn how Jack (Milo Ventimiglia) dies (sigh), we will still be mulling over every little detail until the show returns this fall. The episode started off with an intoxicated Jack arriving at Rebecca's (Mandy Moore) show after driving to the venue to apologize. But after Rebecca's bandmate, and ex, Ben (Sam Trammell) tries to kiss her backstage, she regrets going on tour and tries to reach Jack. Little does she know he's right around the corner. Jack goes to find Rebecca, but ends up running into Ben, who tells him he's sorry he ""Crossed the line.""?That's when Jack loses it and punches Ben before Rebecca walks in, shocked. She tells Ben the tour is over before driving Jack home. Once back at House Pearson, the couple faces off in a screaming match about their lives, relationship and missed opportunities. The next morning, Rebecca asks Jack to move out ""?and move in with Miguel (Jon Huertas) ""?so they can have some space. (Space, what? These two? NO!) The finale also gave us a look at Rebecca and Jack before they were Rebecca and Jack ""?and let's just say we didn""t know Jack.- We are introduced to Jack's unstable family life and his hostile relationship with his father. In order to move out of the house, Jack and his friend Darryl (Jeremy Luke) enter into a risky gambling situation so they can earn some fast cash. All doesn""t go as planned, of course, and the ""bad guys""?steal Jack's money.- As they try to get Jack's cash back-""?by stealing from the Mafia-owned restaurant's cash register ""?Jack hears Rebecca singing onstage, and the course of his life immediately changes. He trades in a life of crime for a life of love. (And we start crying again.) Back in separation limbo, Jack reminds Rebecca of this first meeting, telling her, ""You'r not just my great love story, Rebecca, you were my big break. And our love story, although it may not feel like it right now, I promise you, it's just getting started.""?Although that speech was epic, Jack still leaves the house, but gives us hope that love will prevail. (Well, until we find out why and how he died).- Other notable moments: Kate (Chrissy Metz) is going to pursue a singing career, Randall (Sterling K. Brown) wants to adopt a baby, and Kevin (Justin Hartley) seems to be making it work with Sophie (Alexandra Breckenridge).- ""�[The finale] is going to answer some questions and make people ask some new ones, and change a lot of people's perceptions about where they think the show is going,""?showrunner Dan Fogelman told Entertainment Weekly-ahead of the episode.-""Without giving much away, it changes everything ""?and maybe in ways people might be talking about, maybe in other ways.""?Now we just have to wait months and months to learn what is actually going on...- Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2339,2017/3/15,http://www.huffingtonpost.com/2017/03/14/mitt-romney-trump-tax-return_n_15373474.html,Mitt Romney's Tax Returns Were More Outrageous Than Trump's Partial One,This was not worth freaking out about.,"WASHINGTON ""?In 2005, Donald Trump paid $38 million in taxes on $150 in income, according to two pages of a tax return published by investigative financial journalist David Cay Johnston on Tuesday night. The document was the subject of a lengthy segment on Rachel Maddow's MSNBC show, which hyped it as a major revelation. But there appears nothing damaging or scandalous in the tax documents. Johnston's find shows that Trump paid a 25.3-percent effective federal income tax rate that year. The formal top tax rate for the wealthiest Americans then was 36 percent. Trump appears to have secured his lower rate by taking legal tax deductions. Other wealthy people have been far more effective at dodging liabilities to Uncle Sam. In 2012, GOP presidential candidate Mitt Romney revealed that he paid an effective tax rate of 14.1 percent in 2011, much lower than the rate Trump paid on his 2005 return. Trump has not disclosed any of his tax returns. Releasing several years of returns has been standard practice for presidential nominees for decades. The documents sent to Johnston by an anonymous source are a rare public look at Trump's federal tax documents. The New York Times reported last year that it had obtained three pages of Trump's 1995 return that showed he took a $916 million deduction that year. - Trump would have paid a much lower tax rate ""?4 percent ""?if he had not been snared by the Alternative Minimum Tax, designed to increase the tax burden on generally wealthy people who otherwise would pay a much lower tax rate due to tricky deductions and other accounting maneuvers. That isn""t a scandal. In 2005, the AMT worked: it socked it to a rich guy who otherwise would have paid a much lower rate. Romney, the 2012 Republican presidential nominee, was able to avoid the AMT due to a unique tax arrangement for his Bain Capital retirement package, and by receiving most of his $13.7 million income in capital gains ""?passive flows from stocks, bonds and real estate holdings. Romney didn""t just pay a low tax rate, he paid a low tax rate by using the tax code in ways that available to only a few, very wealthy financiers, like stuffing an IRA with $102 million when the maximum annual contribution is just a few thousand. The huge questions about Trump's taxes ""?a full understanding of who paid him and his company, for what, and where, along with his personal and corporate debts and deductions ""?remain unanswered. What we know ""?the president's total income and tax rate for a single year more than a decade ago ""?tell us very little. There may be more than one scandal buried in the thousands of pages of tax returns Trump and his family businesses have filed over the years. But his income and tax rate from 2005 are not among them. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2340,2017/3/15,http://www.huffingtonpost.com/2017/03/14/donald-trump-2005-tax-return_n_15373388.html,See A Portion Of Donald Trump's 2005 Tax Return Here,"The document was shown on MSNBC's ""The Rachel Maddow Show.""","A portion of President Donald Trump's 2005 tax return was published Tuesday. Reporter David Cay Johnston says he found the first two pages of Trump's 2005 federal income tax return in his mailbox. Johnston published a story on his website, DCReport.org, and appeared on MSNBC's ""the Rachel Maddow Show""?on Tuesday to reveal details from the document, including that Trump earned more than $150 million that year. Read more here, and see the two pages of the 2005 tax return below: Donald Trump's 2005 Tax Returns by Nick Visser on Scribd Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2341,2017/3/15,http://www.huffingtonpost.com/2017/03/14/unemployment-drug-testing_n_15372616.html,Unemployment Drug Testing Resolution Awaits Trump's Signature,Republicans want unemployed people to prove they're not on drugs.,"WASHINGTON ""?Congress has sent President Donald Trump a measure undoing regulations controlling how states can make unemployed people pee in cups to prove they'r not on drugs.- Republicans said that the rules were too strict and didn""t give states enough leeway to test unemployment claimants for drugs. In a party-line vote on Tuesday, the Senate passed a resolution that simply eliminates the regulations.- ""the Senate today has done the right thing by rolling back this Obama-era rule that told states how they had to implement unemployment insurance drug testing,""?Sen. Lamar Alexander (R-Tenn.), chairman of the Senate committee that oversees unemployment, said in a statement.- The House had already approved the resolution in February, so now it's headed to the White House, which has already indicated Trump would sign it.- During a debate before the vote on Tuesday, Sen. Ron Wyden (D-Ore.) said the resolution ""simply vilifies unemployed workers who are actually less likely to use drugs than the general population.""?The measure is the latest salvo in a long-running battle over Republican proposals to drug test the poor and unemployed. Republicans have never put forward evidence of widespread drug abuse among unemployment insurance recipients, though they have cited anecdotes from employers complaining that they can""t find sober workers.- A coalition of civil rights and criminal justice organizations criticized the resolution in a letter to lawmakers this week. Grant Smith, of the Drug Policy Alliance, an organization opposed to the war on drugs, called the vote of the resolution ""shameful.""""they say it's about helping states save money, but this would actually set up states to waste tremendous amounts of money,""?Smith said in a statement. ""Congress should be helping people get to work, not wasting taxpayer dollars to punish people who are trying to get back to work.""?When Congress passes a law, a federal agency is often told to come up with a ""rule""or carrying out the law.-If Congress doesn""t like how the rule turns out, it has the power under the Congressional Review Act to junk the rule. The power has rarely been used until now, since it basically only works in a situation where one party takes control of both Congress and the White House. The resolution approved Tuesday struck down a rule the Department of Labor finalized in August, four years after Congress had passed legislation giving states authority to screen some unemployment claimants for drugs.-In 2012, Democrats compromised on allowing the testing in order to win Republican support for an extension of long-term jobless benefits. The testing provision said states could only test laid-off workers seeking new work in occupations that regularly require testing, which Democrats said wouldn""t be very many. Republican lawmakers and governors like Wisconsin's Scott Walker disagreed with the Labor Department's analysis of which occupations fit the bill, saying the department had construct the rule too narrowly. Walker is also on a crusade for leeway to drug test food stamp recipients.- The Congressional Review Act has been used so rarely that it's not clear what happens next. The law says agencies that have a rule disapproved aren""t allowed to issue a new rule that is ""substantially similar""?to the old one. Nevertheless, Sen. Orrin Hatch (R-Utah) said Tuesday that the resolution ""would wipe this regulation off the books and give [the Department of Labor] an opportunity to put forward something new that better reflects Congress""?intent.""?It's unclear who would have standing to challenge a new rule that is ""substantially similar""?to the old one, or who would decide the case; the Congressional Review Act doesn""t say.- In the case of unemployment drug testing, it's possible deleting the old rule will leave states with no authority to drug test the jobless until a new rule is written.- ""I think that states are just going to be thrown into bedlam,""?Wyden said. People are only eligible for unemployment insurance if they're been laid off through no fault of their own after having worked steadily for most of the previous year.- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2342,2017/3/15,http://www.huffingtonpost.com/2017/03/14/ben-affleck-completes-rehab-treatment-for-alcohol-addiction_n_15372562.html,Ben Affleck Completes Rehab Treatment For Alcohol Addiction,"The actor shared the news on Facebook, writing, ""I want to live life to the fullest and be the best father I can be.""","In a candid post on his Facebook page-Tuesday, Ben Affleck revealed that he recently completed treatment for alcohol addiction.- The father of three, who is currently co-parenting-with his estranged wife, Jennifer Garner, wrote that he decided to seek help in order to live a full, happy life with his family.- ""I have completed treatment for alcohol addiction; something I""ve dealt with in the past and will continue to confront,""?the 44-year-old wrote. ""I want to live life to the fullest and be the best father I can be. I want my kids to know there is no shame in getting help when you need it, and to be a source of strength for anyone out there who needs help but is afraid to take the first step. I'm lucky to have the love of my family and friends, including my co-parent, Jen, who has supported me and cared for our kids as I""ve done the work I set out to do. This was the first of many steps being taken towards a positive recovery.""Affleck and Garner are committed to raising their children ""?Violet, 11, Seraphina, 8, and Samuel, 5 ""?together.-Although there were rumors of a reconciliation, the pair are reportedly still moving ahead with their divorce, which is currently on hold, according to People. They initially announced their separation in June 2015 after 10 years of marriage.- The actor previously entered rehab for alcohol abuse in 2001.- ""I went to rehab for being 29 and partying too much and not having a lot of boundaries and to clear my head and try to get some idea of who I wanted to be,""?Affleck told The Hollywood Reporter in 2012. ""It was more a ""�let me get myself straight,""?before it became a rite of passage.""?Affleck was last seen publicly at the Oscars on Feb. 26, where he presented with Matt Damon and watched his younger brother, Casey Affleck, win Best Actor. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2343,2017/3/15,http://www.huffingtonpost.com/2017/03/14/trump-tax-returns-rachel-maddow_n_15372472.html,Parts Of Donald Trump's 2005 Tax Returns Made Public,"The White House bashed the media for publishing them, and said the president paid $38 million in income tax that year.","Parts of Donald Trump's 2005 federal tax returns were made public on Tuesday night, revealing that the president made $150 million that year and paid $38 million in taxes. An anonymous source released the first two pages of Trump's 2005 tax returns to Trump biographer and investigative journalist David Cay Johnston. Johnston joined MSNBC host Rachel Maddow on her show late on Tuesday to discuss the returns. Their release comes after months of calls for the president to make his tax returns public. ""This document has been made available,""?Maddow said. ""that may be the most important part of this story.""?She also stressed that the release raises questions about the president's argument that he can""t release his tax returns because he is under audit. Johnston published an analysis of the two pages on his website, DCReport.org. The website was inaccessible on Tuesday night. The returns showed that Trump ""earned more than $150 million in the year 2005-and paid just a small percentage of that in regular federal income taxes,""?according to the Daily Beast: Daily Beast contributor David Cay Johnston has obtained what appear to be the first two pages of Trump's 2005 federal income tax return, and published an analysis of those pages on his website, DCReport.org. The Daily Beast could not independently verify these documents. The documents show Trump and his wife Melania paying $5.3 million in regular federal income tax-a rate of less than 4%. However, the Trumps paid an additional $31 million in the so-called ""Alternative minimum tax,""?or AMT. Trump has previously called for the elimination of this tax. The White House released a statement saying Trump had a responsibility to ""pay no more tax than legally required.""?.@WhiteHouse statement on Maddow show @realDonaldTrump tax return via @ewstephe pic.twitter.com/nP8Z0o94p6 The president's tax history has been under scrutiny since the real estate mogul launched his campaign from the lobby of his Fifth Avenue skyscraper in 2015. Democrats, some fellow Republicans and more than a million petitioners demanded to see the documents, which presidents from the previous four decades had released during their campaigns. Trump eluded them all, and just two days after his inauguration, White House adviser Kellyanne Conway said the president was ""not going to release his tax returns""?because ""people didn""t care.""?Such an abrupt refusal followed months of Trump dancing around the issue, saying he couldn""t share his tax returns because they were under audit by the Internal Revenue Service (although the IRS said there was nothing prohibiting their release) and later pledging to do so if his rival, Hillary Clinton, released emails related to her private email account. In October 2016, the New York Times reported that it had obtained three pages from then-candidate Trump's 1995 personal tax return. That partial return showed that Trump took a $916 million loss that year, a move that experts who reviewed the filing for the Times said may have allowed him to avoid paying personal income taxes for almost two decades. Trump admitted that he had taken the massive deduction in a debate with Democratic opponent Hillary Clinton a week after the Times report. ""the write-off is a wonderful thing,""?Trump said, but not before insisting, ""I pay taxes.""?After that debate, Trump's son Eric said his dad ""pays a tremendous amount of tax.""?However, he went on to cite instances of the Trump Organization paying taxes as a business, not personal income taxes. At the first presidential debate, Clinton accused Trump of not releasing his tax returns because they would show how little taxes he paid. ""that makes me smart,""?Trump replied. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2344,2017/3/15,http://www.huffingtonpost.com/2017/03/14/senators-house-obamacare-bill_n_15372288.html,GOP Senators Say House Obamacare Bill Has To Change,"Senators found an array of faults, raising a challenge for Republican leaders trying to craft a cohesive message.","WASHINGTON ""?A-harsh Congressional Budget Office assessment of-the Republican House bill to repeal the Affordable Care Act had GOP senators on Tuesday calling for changes, including more financial assistance for low-income Americans. Senate leaders did their best to dismiss the nonpartisan CBO review of the legislation, which found it would increase the number of people without insurance by 14 million in the first year, and by 24 million within a decade ""?nearly double the estimate for Obamacare. Still, some GOP senators said they were concerned with the House legislation's potential effects on low-income people, seniors and Medicaid patients. Of particular concern to these senators was the way the GOP bill would redirect health insurance tax credits, leaving the poorest consumers with less money than they get under the Affordable Care Act. ""I do think there are things that we can do to tailor the tax credit in a way that makes it more attractive to people, and more helpful to people on the lower end, and with a phase-out that is a little less steep than what the House""?proposes, Sen. John Thune (R-S.D.) told reporters Tuesday. Thune said ""it be nice""?if House Republicans made the tax credits available in the legislation more generous for older Americans before it comes to the Senate, but said he was already working on a potential amendment. Two top Republicans ""?Sens. Lamar Alexander (Tenn.) and Roy Blunt (Mo.) ""?agreed changes to help lower-income people were needed. Other senators raised complaints at the weekly caucus meeting, which also included Vice President Mike Pence and Health and Human Services Secretary Tom Price, and key House Republicans Greg Walden (Ore.), chair of the Energy and Commerce Committee, and Kevin Brady (Texas), chair of the Ways and Means Committee. Senators found an array of faults with the legislation, raising a challenge for GOP leaders trying to craft a cohesive message. ""there are multiple different points that are brought up and I guess the difficulty is keeping everybody in the basket as they make an attempt to address issues,""?Sen. Bob Corker (R-Tenn.), said after the caucus meeting. ""the [states that didn""t expand Medicaid] have different issues than the expansion states.The states with older populations have different issues than those with younger populations.""?- While senators criticized the CBO ""?Blunt said its analysts are ""notoriously bad at anticipating what's going to happen in a marketplace""?""?they were happy to hype CBO findings they liked.-That included a projection that the bill would reduce the deficit by $337 billion over 10 years, mostly because of those big cuts to Medicaid. Republicans also highlighted the prediction that premiums would fall 10 percent by 2026, compared with what they would be under Obamacare.- But the CBO estimates came with two important caveats that Senate leaders neglected to mention.-One was that premiums would be lower, in part, because the insurance would cover less ""?leaving people with higher out-of-pocket costs. The other is that older people may face-sky-high premiums under the GOP measure and may drop coverage altogether. That's because insurers would have more flexibility to vary prices by age. AARP has been slamming the legislation since it was introduced, and Sen. Bill Cassidy (R-La.) made clear the CBO findings on the subject weighed on his mind. ""Folks who are over 60 earning $20,000 a year would have a hard time affording insurance, and that's not good,""?Cassidy said. Cassidy, who has co-sponsored an alternative proposal, stopped well short of declaring that higher premiums for seniors were a deal-breaker. But he did say the Senate needed time to consider whether changes would improve the legislation. ""there needs to certainly be deliberation and something that ameliorates people's concerns,""?Cassidy said. Sen. John Boozman (R-Ark.) said he worried about the estimated 300,000 people who signed up for Medicaid after his state expanded the program under Obamacare. That helped lower the number of uninsured people in the state by more than 50 percent, according to statistics at healthinsurance.org. ""I'm concerned about Medicaid expansion and making sure people are taken care of, and again, that's why I'm going to figure out what's going on,""?Boozman said. Sen. Ted Cruz (R-Texas), wasn""t worried about Medicaid ""?perhaps because Texas hasn""t expanded the program. Cruz said he feared leaving some Obamacare regulations in place would keep premiums high.- ""�Under the CBO report, they don""t ever go down,""?Cruz said. ""they simply increase a little bit slower than they would increase under Obamacare. That is not the mandate that we were elected to fulfill.""?The House bill ""As drafted""?won""t pass in the Senate, Cruz added. Sen. Tom Cotton (R-Ark.) and Sen. Steve Daines (R-Mont.), also raised objections. House GOP leaders plan a floor vote next week, less than a month after the measure was introduced. That's breakneck speed for any legislation, not just a bill of this magnitude. Senate Majority Leader Mitch McConnell (R-Ky.)-has said he intends to bring whatever the House passes directly to the Senate floor, bypassing committees. He said on Tuesday that the bill ""would be open to amendment""?when it reaches the Senate. Boozman noted that Republicans were taking on a big challenge, with a lot of potential to get something wrong. ""This is difficult,""?Boozman said. ""It's 18 percent of economy. My concern is not with the timeline. My concern is with doing it right. We don""t need to do something, we need to do the right thing.""?- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2345,2017/3/15,http://www.huffingtonpost.com/2017/03/14/antarctic-green-ice_n_15372284.html,Weird Green Ice Floats In Antarctic Harbor,Scientists want to know why the green hue shows up at certain times each year.,"Just in time for St. Patrick's Day, NASA has released images of a region in Antarctica called Granite Harbor ""?a cove near the Ross Sea. (See main image above.) These pictures ""?taken by the Operational Land Imager on the Landsat 8 satellite on March 5 ""?offer details of what is apparently green slush ice, according to NASA's Earth Observatory site. The following images are zoomed-in areas of the Granite Harbor region. Earth Observatory reports that marine glaciologist Jan Lieser, of the Australia Antarctic Climate and Ecosystems Cooperative Research Center, believes the green hue in the ice is a result of a bloom of phytoplankton on the water, which has discolored the ice. According to the National Ocean Service, phytoplankton are microscopic marine plants, part of the oceanic food chain that provides nourishment for many aquatic creatures, like whales, shrimp, snails and jellyfish. (See image below.) This isn""t the first time that scientists have discovered phytoplankton in an icy region of the world. In 2011, at the opposite end of Earth in Arctic waters, NASA researchers were stunned when they found a massive phytoplankton bloom growing beneath the sea ice, as shown in the following video: Microalgae abounds in the Antarctic, but Earth Observatory indicates the following factors are necessary for plankton to survive in large amounts that would make it visible from space: sea ice, winds, sunlight, nutrient availability and predators. ""do these kinds of late-season ""Blooms""?provide the seeding conditions for the next spring's bloom?""?Lieser asked Earth Observatory. ""If the algae get incorporated into the sea ice and remain more or less dormant during the winter, where do they end up after the winter?""?To try and determine the answer to the mystery of the rise of Antarctica's green ice, scientists plan to return to the area next month.- Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2346,2017/3/15,http://www.huffingtonpost.com/2017/03/14/judith-richards-gartee-vomit-wine_n_15372280.html,"Substitute Teacher Vomits In Class, Officers Find Box Of Wine In Purse",Students told officers the suspect was drinking wine in class.,"A substitute teacher may have unintentionally taught her students a lesson about the dangers of drinking on the job. Police in Lexington County, South Carolina, said-Judith Elizabeth Richards-Gartee was allegedly so intoxicated during class on Friday that she reportedly vomited on the classroom floor, according to WIS TV. Officers who arrived on the scene said they found a box of wine in the suspect's purse. Administrators at-Brookland-Cayce High School in Cayce called police around 9:45 a.m. after noticing Richards-Gartee allegedly acting in a manner that suggested she might be under the influence of alcohol. Besides the alleged vomiting, Richards-Gartee was reportedly unable to stand. School officials removed her from the classroom in-a wheelchair and sent her to a school resource officer, according to TheState.com. A deputy from the Lexington County Sheriff's Office reported seeing a box of wine in her purse. Students in the class told the officer Richards-Gartee was allegedly consuming the wine during class. The officer-charged Richards-Gartee with disorderly conduct before releasing her to paramedics who took her to the hospital,-according to The Smoking Gun. The-Lexington School District Two released a statement on Monday explaining that Richards-Gartee wasn""t actually employed by them. ""�On Friday, March 10, 2017, it was reported to the Administration of Brookland-Cayce School that a substitute teacher was behaving erratically and appeared to be under the influence of alcohol. This substitute is not an employee of the District, but works for Kelly Services. Kelly contracts with the District to provide substitute teachers. The Administration responded immediately, removing the substitute from the classroom and sending her to the School Resource Officer. The District has been advised that law enforcement has filed criminal charges against the Kelly employee.""Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2347,2017/3/15,http://www.bbc.co.uk/news/world-us-canada-39275838,Donald Trump tax: Leaked 2005 document reveals $38m bill,"US President Donald Trump paid $38m (?31m) in tax on more than $150m (?123m) income in 2005, a leaked partial tax return shows.","US President Donald Trump paid $38m (?31m) in tax on more than $150m (?123m) income in 2005, a leaked partial tax return shows. Two pages of the tax return were revealed by US TV network MSNBC but they gave no details on income sources or of charitable giving. The White House said publishing the tax return was against the law. Mr Trump refused to release his tax returns during the election campaign, breaking with a long-held tradition. He has said he is under audit by tax authorities and that his lawyers advise against releasing tax returns. His critics, however, say they suspect Mr Trump has something to hide. Correspondents say that, despite the lack of detail, the leak is still significant because so little is known about President Trump's tax affairs and the new information could increase pressure on him to release more. The two pages show that Mr Trump paid $5.3m in federal income tax and an extra $31m in what is called alternative minimum tax (AMT). AMT was set up nearly 50 years ago to stop the wealthiest people from using deductions and loopholes to avoid paying taxes. Mr Trump has called for it to be abolished. The $38m bill was an effective tax rate of about 24%, higher than the average American citizen would pay but below the 27.4% averaged by higher-earning taxpayers. We now have another snippet, just the smallest glimpse, into Donald Trump's personal financial empire. The few pages from 2005 reveal that the alternative minimum tax, first instituted in 1970, did what it was supposed to do - prevent a very wealthy individual from paying a relatively tiny amount of federal taxes. There is also now confirmation of the validity of the 1995 tax information the New York Times published last year, showing Mr Trump took a near billion-dollar business write-off that he could extend for 18 years. Beyond that, the contours of Mr Trump's personal wealth remain a mystery. Only supporting tax documentation, not included in this leak, could show the details of Mr Trump's income, including sources both domestic and international. For a few moments, the political world thought a political bombshell was about to drop on the White House. In fact, it was more like lightning at night - a quick flash, then a return to darkness. Although leaking federal tax returns is a criminal offence, MSNBC host Rachel Maddow argued that it was exercising its First Amendment right to publish information in the public interest. Journalist David Cay Johnston, interviewed on MSNBC, said he had received the documents in the post from an anonymous source. In a statement issued before the broadcast, the White House said: ""You know you are desperate for ratings when you are willing to violate the law to push a story about two pages of tax returns from over a decade ago."" It said Mr Trump had a responsibility to pay no more tax than was legally required. Every US presidential candidate since 1976 has released their tax returns although there is no law requiring it. During last year's election campaign, Democratic candidate Hillary Clinton accused Mr Trump in a head-to-head debate of paying no federal income tax. He responded: ""That makes me smart."" Last October, the New York Times revealed parts of Mr Trump's 1995 tax returns that showed losses of $916m (?753m). Analysts said that would have allowed him to avoid paying income tax for up to 18 years afterwards.", -2348,2017/3/15,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39265997,Scottish independence support 'at highest ever level',"Support for Scottish independence is at its highest-ever level, according to an academic study.","Support for Scottish independence is at its highest-ever level, according to an academic study. But the Scottish Social Attitudes survey also suggested the popularity of the European Union has fallen. The researchers said this suggested focusing on EU membership may not be the best way to swing more voters towards independence. The survey has asked the same question about how Scotland should be governed every year since 1999. It was carried out by ScotCen Social Research and has been published two days after First Minister Nicola Sturgeon confirmed she wants to ask the UK government for permission to hold a second referendum on Scottish independence. Ms Sturgeon says the Brexit vote has left Scotland at a crossroads, with an independence referendum needed to allow the country to choose which path to take. But pro-UK opposition parties argue that another referendum will cause further division and uncertainty, and is not wanted by the majority of people. The ScotCen findings suggested that the September 2014 referendum had left a ""legacy of dramatically increased support"" for independence. And it said the pro-independence movement looked certain to enter a second referendum campaign in a much stronger position than it had enjoyed ahead of the first referendum. Asked to choose between independence, devolution and not having any kind of Scottish Parliament at all, 46% of the 1,237 people surveyed between July and December of last year now back independence. This is a higher level of support for independence than at any time since 1999 and double the level registered by ScotCen in 2012, when the last independence referendum campaign initially got under way. The Social Attitudes Survey suggested the increase in support for independence in recent years has been most marked among younger people. As a result, there is now a very large age gap in support for independence, with 72% of 16-24 year olds wanting to leave the UK compared with just 26% of people aged 65 and over. Independence is now the single most popular constitutional option, with 42% supporting devolution, while only 8% of those surveyed do not want any kind of Scottish Parliament at all. However, even although Scotland voted to remain in the EU by 62% to 38% in last year's referendum, the survey suggested scepticism about the institution is now at the highest level ever recorded by ScotCen. This scepticism is even common among those who voted last year to remain in the EU, the report concluded, with a majority (56%) of all Remain voters believing the EU should have fewer powers. Those who currently back independence are also divided in their views about Brexit, with a third voting to leave the EU in last year's referendum. Their support could be at risk if independence is linked firmly to EU membership, the report's author Prof John Curtice said. Prof Curtice said the pro-independence campaign had never been stronger electorally in Scotland. He added: ""From its perspective, the outcome of the EU referendum appeared to be a perfect illustration of their argument that for so long as it stays in the UK, Scotland is always at risk of having its 'democratic will' overturned by England. ""However, the commitment to the EU of many of those who voted to Remain does not appear to be strong enough that they are likely to be persuaded by the outcome of the EU referendum to change their preference for staying in the UK. ""Meanwhile, there is a risk that linking independence closely to the idea of staying in the EU could alienate some of those who currently back leaving the UK. ""Nicola Sturgeon might have been wiser to have stayed her hand, for on current trends there is a real possibility that demographic change will help produce a majority for independence in the not too distant future anyway."" The pro-independence SNP and Scottish Greens welcomed the survey's findings, with SNP MSP Bruce Crawford arguing it was ""no surprise"" that more people now apparently backed independence given the ""systematic unpicking"" of promises made after the 2014 referendum by the UK government. Scottish Greens MSP Ross Greer said voters in Scotland deserves a choice between being ""trapped in the angry, isolated Britain planned by the Tories"" and ""putting our future in our own hands"". But Adam Tomkins of the Scottish Conservatives said the report showed there was already ""significant division"" in Scotland over the constitutional question, and that another referendum would only make that worse. And Scottish Labour MP Ian Murray said Scotland ""must not be divided again by the SNP's obsession for a second independence referendum"".", -2349,2017/3/15,http://www.bbc.co.uk/news/uk-39272811,Disasters Emergency Committee makes East Africa appeal,UK aid agencies have launched a fundraising appeal to help millions of people facing hunger in East Africa.,"UK aid agencies have launched a fundraising appeal to help millions of people facing hunger in East Africa. The Disasters Emergency Committee says at least 16 million people in Somalia, Kenya, Ethiopia and South Sudan need food, water and medical treatment. Drought and conflict are to blame for the crisis, says the DEC, which will broadcast an emergency appeal on the major television networks on Wednesday. The government said it will match the first ?5m donated by the public. Last month, a famine was declared in parts of South Sudan, the first to be announced in any part of the world in six years. The government and the United Nations reported that some 100,000 people are facing starvation, with a million more on the brink of famine. A combination of civil war and an economic collapse have been blamed. In Kenya, the country's president Uhuru Kenyatta declared its drought a national disaster and Kenya's Red Cross says 2.7 million people face starvation. There is also a severe drought in Somalia and Ethiopia. Saleh Saeed, chief executive of the DEC, an umbrella organisation which brings together 13 UK aid charities to deal with international crises, said hunger was ""looming"" across East Africa. He said more than 800,000 children under five were severely malnourished. ""Without urgent treatment, they are at risk of starving to death,"" he said. ""We are hearing that families are so desperate for food that they are resorting to eating leaves to survive. This is something no family should have to endure. ""Unless we act now the number of deaths will drastically increase."" International Development Secretary Priti Patel said UK aid has funded food, water and emergency healthcare in East Africa, but more support was ""urgently needed to prevent a catastrophe"". She said the international community must follow the UK's lead ""to save lives and stop the famine before it becomes a stain on our collective conscience"". ""The world cannot afford to wait,"" she said.", -2350,2017/3/15,http://www.bbc.co.uk/news/uk-england-london-39275581,'Beware of Jews' sign appears in Stamford Hill,"A road sign which appears to warn ""beware of Jews"" has appeared just yards from a synagogue in north London.","A road sign which appears to warn ""beware of Jews"" has appeared just yards from a synagogue in north London. The sign depicts the silhouette of an orthodox Jewish man wearing a traditional Fedora hat and was spotted on a lamppost in Stamford Hill on Tuesday. A member of a Jewish neighbourhood watch group saw the sign and reported it to police. Hackney Council is expected to remove it on Wednesday morning. Barry Bard, of Jewish neighbourhood group Shomrim NE London, said it was the first known sighting of such a sign, which had caused alarm in the local community due to its meticulous planning. He said: ""The people of Stamford Hill are very sadly used to instances of anti-Semitic hate crime, but most of those times it will be verbal abuse or even assault. ""The person who planned [this sign] has obviously gone to an effort to cause alarm and distress to local people."" Shadow home secretary and MP for Hackney North Diane Abbott said it was ""disgusting"" and ""unacceptable"", while Labour's MP for Tottenham David Lammy said it amounted to ""despicable, nasty behaviour that has absolutely no place in our community.""", -2351,2017/3/15,http://www.bbc.co.uk/news/business-39196056,Ikea drivers living in trucks for months,"Lorry drivers moving goods in Western Europe for Ikea and other retailers are living out of their cabs for months at a time, a BBC investigation has found.","Lorry drivers moving goods in Western Europe for Ikea and other retailers are living out of their cabs for months at a time, a BBC investigation has found. Some drivers - brought over from poorer countries by lorry firms based in Eastern Europe - say their salary is less than three pounds an hour. They say they cannot afford to live in the countries where they work. One said he felt ""like a prisoner"" in his cab. Ikea said it was ""saddened by the testimonies"" of the drivers. The drivers the BBC spoke to were employed by haulage companies based in Eastern Europe, which are paid to transport Ikea goods. Romanian driver Emilian spends up to four months at a time sleeping, eating and washing in his truck. He moves goods for Ikea around Western Europe, and had been in Denmark most recently. He says the salary he takes home is a monthly average of 477 euros (?420). A Danish driver can expect to take home an average of 2,200 euros (?1,900) a month in salary. EU rules state that a driver posted temporarily away from home should be ''guaranteed'' the host nation's ''minimum rates of pay'' and conditions. But companies can exploit loopholes in the law. Emilian is employed by a Slovakian subsidiary of Norwegian trucking company Bring, and is being paid as if his place of work is Slovakia - even though he never works there. He shows us where he sleeps - a sleeping bag in the back of his cab. According to EU law, drivers must take 45 hours weekly rest away from their cabs, but governments have been slow to enforce it. He says he cannot afford to sleep anywhere else - he receives around 45 euros (?40) a day in expenses, which is meant to cover all hotel bills and meals. Zoe Conway was reporting for the BBC's Today and Victoria Derbyshire programmes. During the working week, Emilian cooks and eats at the roadside. He says conditions have left him feeling ""like a prisoner, like a bird in the cage"". ""It's not good for drivers, it's not safe for other people on the road... it is possible to [cause an] accident,"" he says. Asked if he has a message for Ikea, he says: ""Come and live with me for one week. Eat what I eat. See what is happening in reality with our lives."" After a few months on the road he will board a minibus back to Slovakia. His Slovakian employer, Bring, says Emilian is responsible for taking his rest breaks, and can return home whenever he likes. Emilian is not alone. We have seen the contracts of drivers working for some of Ikea's biggest contractors - each paid low Eastern European wages while working for months at a time in Western Europe. It is clear this way of treating drivers is widespread. It is not just within the Ikea supply chain, but also in those of several other big, household names. In Dortmund, Germany - outside the biggest Ikea distribution centre in the world - truck drivers are drying their clothes. One is making his mash potato on a fuel tank. There is no toilet, no running water. Drivers from Moldova say they receive an average monthly salary of 150 euros (?130) from their employer. Legal action is now being taken against some of Ikea's contractors. In the Netherlands last month, a court ruled that Brinkman - which delivers Ikea flowers to the UK and Scandinavia - was breaking the law. The court found that drivers' pay was ""not consistent"" with Dutch wages law. The judge described conditions for drivers as an ""inhumane state of affairs'', and contrary to EU law. Edwin Atema, of trade union FNV, says he believes Ikea must have known of the conditions in which drivers are living. ""The Ukrainian, Moldovan, Polish guys remove the furniture from Ikea, they touch the furniture,"" he says. ""Ikea is the economic employer of all these workers here. They have so much power. Ikea has the tool in hand to change the business model with an eye blink."" One union, the International Transport Workers' Federation (ITF), met Ikea several times last year to discuss the issue - but talks ended in November. Ikea said it takes what drivers have told the BBC ""very seriously'' and are ""saddened by the testimonies"". It said it puts ''strict demands'' on its suppliers concerning wages, working conditions and following applicable legislation, and audits them regularly to check compliance. 'Far more foreign lorries' Increasing numbers of foreign haulage companies are now moving goods in Britain. They are working for hundreds of different companies, including Ikea. At a lorry stop in Immingham, Lincolnshire, one anonymous Polish driver explains: ""We spend a lot of time living in lay-bys where there are no toilets, no showers, no facilities. ""The work is paid a bit better than what I would get in Poland, but this life is not good. I do it for my family.'' British haulage companies are nervous that they will be undercut by companies that could be breaking the law. Jack Semple, from the Road Haulage Association, says: ""We are seeing far more foreign lorries that are frankly less compliant with drivers' hours and road-worthiness regulations. ""There is a road safety risk, and the Treasury is losing a fortune in tax revenue. ""They have to get a grip on this because big, well-known UK retailers and other companies are making increasing use of these firms because they don't cost very much.""", -2352,2017/3/15,http://www.bbc.co.uk/news/uk-39258896,Parental guidance: Card shops that come with a warning,They are usually seen on the covers of films or computer games - but some of the UK's card shops have started carrying parental guidance signs.,"They are usually seen on the covers of films or computer games - but some of the UK's card shops have started carrying parental guidance signs. The self-confessed ""edgy"" card retailer Scribbler has 35 stores across the UK - all of which display a ""PG"" sticker in their windows. The fashion and lifestyle chain Joy - based mainly in the south-east of England - also carries PG signs. Some cards are shocking, rude and downright offensive, yet there is ""huge demand"" for profanities, according to retailers. ""Customers love it,"" said Eliot James, a card buyer for Scribbler. ""It's normally the ruder end of humour which are the bestsellers."" And the offending greetings are not, he said, limited to a certain demographic or age group. ""It's really quite widespread,"" he added. Warning: Some readers may find the images below offensive As well as having PG signs at the front of their shops, Scribbler says cards featuring swear words should only be found on the top two shelves. Joy said offending cards are not kept at till level - but above children's heights. Sharon Little from the Greeting Card Association said there was ""huge demand"" for rude cards. ""They've always been popular,"" she said. ""You send a card to show that you care about someone - it's sharing a sense of humour. ""But you have to know someone really well to choose a card like that for them."" But not everyone is happy. Earlier this year, Paperchase - which stocks more than 4,000 cards - was forced to pull a line of sexually explicit Valentine's cards after some shoppers complained. The cards appeared behind a sign stating ""rude cards here - you have been warned!"" But that wasn't enough to satisfy all customers - especially those with young children. ""Adult cards can undoubtedly polarise customer opinion and this Valentine's Day we took the controversial decision to remove some of the more risqu�� cards from our stores so that we didn't cause unnecessary offence to customers,"" a Paperchase spokeswoman said. ""While this decision proved popular with some, we also had many customers who were disappointed."" Paperchase said their adult cards are only sold in select stores where teams are asked ""to position them on the top shelf, out of sight of children and with a sign"". But the cards certainly don't seem to be putting a dent in the tradition of card sending. In fact, the British public are buying more cards than ever before - with the UK market worth an estimated ?1.7 bn. So if you're feeling adventurous this Mother's Day, perhaps go for a more edgier take on the classic. Just make sure you inherited your sense of humour from your mother.", -2353,2017/3/15,http://www.bbc.co.uk/news/world-asia-39275826,Mid-flight slumber cut short by exploding headphones,Australian authorities have warned about the dangers of using battery-powered devices on flights after a woman's headphones caught fire.,"Australian authorities have warned about the dangers of using battery-powered devices on flights after a woman's headphones caught fire. The woman was dozing on a flight from Beijing to Melbourne when she was woken by the sound of an explosion. She tore the headphones off to find them sparking, catching fire and beginning to melt. The explosion and fire left her with a blackened face and blisters on her hands. The passenger, who has not been named, told the Australian Transport Safety Bureau (ATSB) she was listening to music when the explosion occurred. ""I just grabbed my face which caused the headphones to go around my neck. I continued to feel burning so I grabbed them off and threw them on the floor. They were sparking and had small amounts of fire."" Members of the flight crew rushed to help and eventually put out the fire by pouring a bucket of water on the headphones. By that time, the battery and the plastic cover had melted and stuck to the floor. ""For the remainder of the flight, passengers endured the smell of melted plastic, burnt electronics and burnt hair,"" the ATSB said in its report. The report did not mention the brand of headphones, but said it believed that a fault with a lithium-ion batteries was the likely cause. The ATSB has published a set of guidelines for travelling safely with batteries and power packs, warning that ""as the range of products using batteries grows, the potential for in-flight issues increases"". There have been a number of problems with lithium batteries on flights in recent years. A plane about to take off from Sydney last year had to be stopped when smoke was coming from a piece of hand luggage. It was then found that lithium batteries had caught fire in the luggage. An electronic device also began emitting smoke when it was crushed under a moving seat in the US, the ATSB said. Last year, malfunctioning batteries in Samsung's Note 7 caused many of the smartphones to overheat, catch fire and melt. Several such incidents also occurred on planes leading to international aviation authorities banning the device from planes. The Note 7 was soon recalled by Samsung and production has been scrapped.", -2354,2017/3/15,http://www.bbc.co.uk/news/business-39274411,Driverless cars 'could lead to complacency',"Certain types of driverless vehicles may not be safe, peers have warned.","Certain types of driverless vehicles may not be safe, peers have warned. Over-reliance on technology could mean drivers react slowly to taking back control of a semi-autonomous vehicle in an emergency, they said. However, the Lords Science and Technology Committee noted that some technology could reduce accidents caused by human error. The Department for Transport said driverless cars ""have the potential to transform the way we travel."" Intel makes $15bn bet on driverless cars California mulls driver-free car tests Vehicles can be split into different levels of automation, according to industry body the Society of Motor Manufacturers and Traders (SMMT). Level 0 is a vehicle with no automation, while level 5 is fully automated. There is a ""very dangerous"" problem that lies with vehicles on the midway point of this scale, peers on the Lords Science and Technology Committee said. Vehicles at level 3 still need a driver, but can shift critical operations to the car, and back again. The risk that the vehicle may need to hand back control to an unprepared driver in an emergency may be ""too great to tolerate"", the Lords Science and Technology Committee said. Professor Neville Stanton of the University of Southampton told the committee: ""As vehicles become fully autonomous, even the most observant human driver's attention will begin to wane. ""Their mind will wander""?This is particularly true if they are engaging in other activities such as reading, answering emails, engaged in conversations with passengers, watching movies or surfing the internet."" In general, research suggested drivers of automated vehicles were not as effective at dealing with emergencies as drivers of manual cars. For example, they had been found to take six times longer to respond to emergency braking by other vehicles. Complacency could also negatively affect other road users, such as pedestrians and cyclists, the Lords committee said. The government should give priority to research into people's behaviour around autonomous vehicles, it added. The Department for Transport said: ""Automated vehicles could make our roads even safer and easier to use, as well as promising new mobility for those who cannot drive. ""We have committed over ?200m to research and development and are also changing regulations to unblock barriers to this exciting new technology.""", -2355,2017/3/15,http://www.bbc.co.uk/sport/football/39248930,"Leicester City 2-0 Sevilla (3-2 agg) Scores, Results & Fixtures",Wes Morgan's goal was his third this season and first in the Champions League,"By Phil McNulty Chief football writer at the King Power Stadium Share this with Leicester City wrote another chapter in their remarkable story as they overturned a first-leg deficit to beat Sevilla and reach the Champions League quarter-finals on a night of raw passion at the King Power Stadium. The Foxes looked in trouble after a 2-1 first-leg loss in Spain that was the catalyst for the sacking of Claudio Ranieri - the manager who had guided them into this competition after winning the Premier League nine months ago. Now, with Ranieri gone and Craig Shakespeare in charge, Leicester have been transformed, and they were on their way to another spectacular triumph when captain Wes Morgan bundled them into a first-half lead. It put Leicester in control of the tie, a supremacy they emphasised when Marc Albrighton drilled home a second nine minutes after the interval, seconds after Sergio Escudero hit the bar for the visitors. Leicester survived a frantic final spell when Samir Nasri picked up a second yellow card for a clash of heads with Jamie Vardy - who missed two great chances - keeper Kasper Schmeichel saved a penalty from Steven N'Zonzi that could have taken the tie into extra time and Sevilla boss Jorge Sampaoli was sent to the stands as tensions reached boiling point. The victory means the Foxes join the illustrious company of Barcelona, Bayern Munich, Borussia Dortmund, Juventus and Real Madrid in Friday's quarter-final draw. On Wednesday, Manchester City go to Monaco and Atletico Madrid play Bayer Leverkusen to determine the final two sides in the last eight. Leicester's place in the Premier League was under threat by the time they lost the first leg of this Champions League tie in Sevilla - and it looked like Ranieri's sacking was another chapter in the story of a dramatic fall from grace. Now, in the space of three weeks, the Foxes have gone from misery to another potential miracle as Sevilla, so highly rated, third in La Liga and Europa League winners three years in succession, were beaten back by a tide of passion and emotion at the King Power Stadium. The despair of the early months of the season, when the stricken and out of sorts Premier League champions looked a world away from last season's team, has been forgotten. When Italian referee Daniele Orsato blew the final whistle after the rawest of encounters, this atmospheric arena was suddenly engulfed in the sort of scenes it witnessed last May when Leicester won the title - the sort of scenes that no-one could have imagined seeing again when Ranieri was sacked amid shock and sadness on 23 February. As Leicester fans danced and sang in their seats, they were contemplating another unlikely, unthinkable story - a place in the Champions League quarter-finals. Shakespeare has been appointed manager until the end of the season - and if he carries on in his current vein he might be able to name his price. He has already moved Leicester away from relegation trouble with two Premier League wins out of two against Liverpool and Hull, but this is the sort of victory upon which reputations are made and jobs secured. Shakespeare, assistant to Ranieri in that title campaign, has simply turned the dial back nine months, restored Leicester City's title-winning team - with Wilfred Ndidi for the departed N'Golo Kante - and style, with spectacular results. The giant banner unfurled before kick-off, with a nod to William Shakespeare's Julius Caesar, read: ""Let Slip The Dogs of War"" and that is exactly what he has done. Leicester City's owners can take their time and weigh up their options with Shakespeare at the helm, but he is stating his own case very eloquently. Leicester's Thai owners came in for heavy scrutiny after taking the ruthless, business-led decision to sack the popular Ranieri nine months after he took Leicester to the title in arguably the greatest story in British sport. It was made with a heavy heart but a clear head as they feared the Foxes were heading to the Championship. Events since have suggested the decision, which risked popularity and status, was correct. The familiar saying describes football as a ""results-based business"" - and the results since Ranieri's sacking have justified his dismissal, however harsh it might have been at a human level. Leicester's attention once again turns to Premier League survival. The Foxes are three points above the relegation zone in 15th and travel to West Ham on Saturday aiming for a third successive league win. Match ends, Leicester City 2, Sevilla 0. Second Half ends, Leicester City 2, Sevilla 0. Corner, Sevilla. Conceded by Daniel Drinkwater. Attempt missed. Joaqu��n Correa (Sevilla) right footed shot from the centre of the box is too high. Assisted by Stevan Jovetic. Substitution, Leicester City. Daniel Amartey replaces Riyad Mahrez. Riyad Mahrez (Leicester City) is shown the yellow card. Attempt missed. Jamie Vardy (Leicester City) right footed shot from the centre of the box is too high. Assisted by Riyad Mahrez following a fast break. Corner, Leicester City. Conceded by Sergio Rico. Attempt saved. Jamie Vardy (Leicester City) header from the centre of the box is saved in the top centre of the goal. Assisted by Marc Albrighton with a cross. Foul by Vitolo (Sevilla). Islam Slimani (Leicester City) wins a free kick in the defensive half. Wilfred Ndidi (Leicester City) is shown the yellow card for a bad foul. Vicente Iborra (Sevilla) wins a free kick in the attacking half. Foul by Wilfred Ndidi (Leicester City). Foul by Sergio Escudero (Sevilla). Wilfred Ndidi (Leicester City) wins a free kick in the defensive half. Corner, Sevilla. Conceded by Daniel Drinkwater. Vitolo (Sevilla) wins a free kick on the right wing. Foul by Christian Fuchs (Leicester City). Offside, Leicester City. Daniel Drinkwater tries a through ball, but Islam Slimani is caught offside. Penalty saved! Steven N'Zonzi (Sevilla) fails to capitalise on this great opportunity, right footed shot saved in the centre of the goal. Kasper Schmeichel (Leicester City) is shown the yellow card for a bad foul. Penalty Sevilla. Vitolo draws a foul in the penalty area. Penalty conceded by Kasper Schmeichel (Leicester City) after a foul in the penalty area. Stevan Jovetic (Sevilla) wins a free kick in the attacking half. Foul by Islam Slimani (Leicester City). Jamie Vardy (Leicester City) is shown the yellow card. Second yellow card to Samir Nasri (Sevilla). Foul by Samir Nasri (Sevilla). Jamie Vardy (Leicester City) wins a free kick in the defensive half. Attempt saved. Joaqu��n Correa (Sevilla) right footed shot from the right side of the box is saved in the bottom left corner. Assisted by Vitolo. Vitolo (Sevilla) wins a free kick on the right wing. Foul by Islam Slimani (Leicester City). Corner, Sevilla. Conceded by Danny Simpson. Substitution, Sevilla. Joaqu��n Correa replaces Wissam Ben Yedder. Attempt missed. Jamie Vardy (Leicester City) left footed shot from the centre of the box misses to the right. Foul by Vicente Iborra (Sevilla). Islam Slimani (Leicester City) wins a free kick in the defensive half. Substitution, Leicester City. Islam Slimani replaces Shinji Okazaki. Corner, Sevilla. Conceded by Robert Huth. Share this with How fighters are risking their lives to make weight Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Adult Social Badminton Session Futsal Kickabout For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -2356,2017/3/15,http://www.bbc.co.uk/news/education-39274661,Should hearing children learn sign language?,,"British Sign Language is not on the national curriculum in England but Wayne Barrow wants to change that, with an online petition. He grew up with deaf parents and says he has seen the difficulties they face communicating with hearing people. We met some school pupils who are learning to sign and learning alongside deaf children.", -2357,2017/3/15,http://tass.com/world/935561,South Korea to hold presidential election on May 9,"In December last year, South Korea's parliament voted to impeach scandal-hit President Park Geun-hye","TOKYO, March 15. /TASS/. South Korea's government has decided to hold early presidential election on May 9 to replace the impeached leader, the Kyodo news agency reported on Wednesday, citing the country's Interior Minister Hong Yun Sik. In December last year, South Korea's parliament voted to impeach scandal-hit President Park Geun-hye and this decision was approved by the Constitutional Court on March 10. Park was dismissed from office and lost immunity from criminal prosecution. The scandal around the country's first female president flared up in October 2016 when mass media reports claimed that Park had been under the influence of her close friend Choi Soon-sil. The investigation showed that over the past several years Choi had been meddling in state affairs. Choi is also accused of exerting pressure on some companies, including electronics giant Samsung, and forcing them to donate tens of millions of dollars to the foundations she controlled. South Korea's opposition said Park had been involved in these corruption schemes or at least had been aware of them. Earlier reports said South Korea's prosecutors will interrogate Park on March 21 as a suspect in connection with the investigation into the high-profile corruption scandal involving the country's leadership.", -2358,2017/3/14,http://tass.com/world/935558,"Syria opposition to meet Russia, Iran and Turkey on March 16",The international meeting in Astana on the settlement in Syria began on March 14,"ASTANA, March 16. /TASS/. The Syrian armed opposition will hold a meeting with experts from the countries that act as the guarantors of the Syrian ceasefire (Russia, Iran and Turkey), Kazakhstan's Foreign Ministry Spokesman, Anuar Zhainakov, said on Wednesday. ""As for the participation of armed opposition representatives in the talks, representatives of the Southern and Northern fronts are expected to arrive tonight,"" he said. ""Tomorrow they will hold consultations with experts from the ceasefire guarantor countries (Russia, Iran and Turkey) on compliance with the cessation of hostilities."" According to the diplomat, information on the composition of the opposition delegation will be available later. ""The talks will continue tomorrow,"" Zhainakov confirmed. When asked whether the heads of the Russian, Iranian and Turkish delegations will stay in Astana on March 16, the spokesman said that he ""has no information on their participation."" Zhainakov also noted that the three countries' representatives along with Kazakhstan's Foreign Minister, Kairat Abdrakhmanov, will address the media later in the day. The international meeting in Astana on the settlement in Syria began on March 14. Delegations from Russia, Iran and Turkey, as well as from the United Nations, the United States and Jordan are working in the capital of Kazakhstan.", -2359,2017/3/15,http://tass.com/economy/935555,Chinese premier sees great potential in trade cooperation with Russia,"The development of the Russian-Chinese relations will affect the situation in the world favorably, Chinese Premier Li Keqiang says","BEIJING, March 15. /TASS/. Sharp increase in bilateral trade between Russia and China early this year shows that the two economies can complement each other and there is a huge untapped potential of this cooperation, Chinese Premier Li Keqiang told reporters on Wednesday. ""In the first two months of this year, the trade turnover significantly grew, and this shows a great potential of our trade relations and high complementarity of our economies,"" the Chinese premier said. ""The healthy and stable development of the Russian-Chinese relations has a positive impact on the region and the world as a whole,"" he said. The trade turnover between Russia and China in the first two months of the current year grew by 28.8%, year-on-year, to $11.58 billion, China's General Administration of Customs said in a report published on Wednesday. Export from China to Russia grew by 14.9% to $5.42 billion, and import of Russian goods to China in January-February grew by 44.3% to $6.15 billion. The trade turnover between Russia and China in 2016 grew by 2.2% to $69.52 billion.", -2360,2017/3/15,http://tass.com/society/935553,Father Frost from Lapland Reserve receives record number of guests in winter,"This winter, 5,679 visitors have come to see Father Frost (Russian Santa), while last year, he met with 4, 894 people","MURMANSK, March 15. /TASS/. A record number of visitors have come to meet with Father Frost at his residence in the Kola Peninsula's oldest Lapland Reserve in the Murmansk region this winter, director of the Lapland Biosphere Reserve Sergei Shestakov told TASS. ""This winter, 5,679 visitors have come to see Father Frost (Russian Santa), while last year, he met with 4, 894 people,"" the director said. The Lapland Nature Reserve is unique for many reasons. Thanks to it, the natural diversity of the Polar nature has been reserved, including one of few European populations of reindeer. Many plants have been discovered in the reserve. The reserve is the winter home of Russia's northernmost Father Frost of Lapland. The nature in the reserve is in the state it was centuries ago. This area was home of the indigenous northern people Sami, and they called that territory special. The reserves""?central location, the residence ashore the Chunozero Lake is surrounded with Sami's ""places of life."" Names of those places contain the ""el"" part, which means ""life"". Those are El-Luht (Life Bay), El-Yavr (yavr is lake), El-Nyum (nyum is mountain). The history of both the reserve and its founder is rather unusual. ""Herman Kreps was actually the first ecologist in the Kola region, and we should be grateful to him for reserving the Lapland nature, though at the same time he also assisted in development of mining on the Kola Peninsula,"" the director said. Kreps came to the North in 1920, and witnessed development of the Arctic region. During construction of the railroad, in some areas the forest burns were 100km wide, the deer herd reduced greatly. And it took Kreps 5 years to persuade the authorities to have a natural reserve in the center of Kola Peninsula. Grandfather Frost and his colleagues Nature preservation became essential after opening in the 1930s and further development of the copper-nickel and apatite-nepheline ores deposits. The reserve's first director helped to deliver the first two tonnes of ore from the Khibiny Mountains to Leningrad for works on industrial production of fertilizers. He organized Sami to bring two tonnes of ore on reindeer sleighs to the railway station. The reserve's specialists marked the first director's 120th anniversary in 2016 by writing a book about him. The book was printed late February. ""The financing was allocated by Norilsk Nickel, which for decades now has been helping the natural reserve,"" the current director said. In 2016, the company allocated more than 5.4 million rubles (about $91,000) for several projects. Besides the book about Kreps, the money was used also for another outstanding figure in the Arctic nature preservation - Oleg Semyonov-Tyan-Shansky. Some of the money was used for organization of an ecology path. The Lapland Nature Reserve takes the area of 3,000 square kilometers, it is the fourth among reserves in European Russia in terms of size. Since no people ever lived on the territory of the reserve, the nature remained untouched there. Even though it is surrounded by industrial giants like the Kola GMK, the Apatit Combine, the Kola nuclear power plant, and despite the fact the population in towns around it has grown from five thousand in the 1920s to 220,000 now. Animals here are reindeer, bear, and moose. Hares and martens often rush past the personnel. Scientists from across the country and from abroad come here for the continuing discoveries. Finding new plant species is no wonder. ""While in 2003, we fixed 114 kinds of mosses, now they are 629 already,"" the director said. ""Some species are absolutely new to scientists."" Grandfather Frost, Russian Santa in Soviet era photographs The biggest winter attraction for tourists visiting the reserve is Father Frost. He began receiving guests in 1995. And later on, a special residence was made for him, and guests, who come from different regions and countries, enjoy entertainment programs there. ""Lapland's Father Frost has been on central TV more than once, he was well known all over the country, and other regions learned our experience,"" the reserve's director said. Tours to the reserve and winter trips to Father Frost attract visitors from South-Eastern Asia: Vietnam, China, Malaysia, Philippines and Indonesia. This year, the reserve saw first guests from Thailand. The reserve's specialists are working hard to improve the environmental situation nearby. Jointly with Norilsk Nickel's Kola GMK they from 2003 have been working on a project to restore the soil, affected by the industry. The reserve's scientists told how to treat the soil and to plant trees which could grow there. More than 100 hectares of soil has been restored. About 150,000 trees and bushes were planted around Monchegorsk. Press service of the Kola GMK told TASS Norilsk Nickel's total investments in those activities had exceeded 75 million rubles (about $1.27 million). Cooperation between metallurgists and ecologists is impressive. Some species of fauna, sensitive to pollution, are returning to the places where formerly they could not live any longer. Besides, in the city itself, in its central part, now northern orchids demonstrate their gorgeous beauty. Northern orchids are top sensitive to environment and can grow in good conditions only.", -2361,2017/3/15,http://tass.com/world/935551,US Department of Justice declines to comment on case of Russian man detained on US request,"Russian citizen Stanislav Lisov was detained in the Barcelona airport on January 13, on a request from the United States","WASHINGTON, March 15. /TASS/. The US Department of Justice declined to comment on the case of Russian citizen Stanislav Lisov, detained in Spain on a US query, department spokesperson Nicole Navas told TASS. ""The Justice Department declines to comment,"" she said. Lisov's lawyer Oleg Gubarev told TASS Tuesday that the ""extradition documents have been received by Spain's (foreign) ministry, but not handed over to the court yet."" ""Thus, all time limits have been observed,"" he said, adding that it was too early to make any forecasts. The date of the Spanish court hearings on the extradition case remains to be set. Lisov was detained in the Barcelona airport on January 13, on a request from the United States. He is kept in a penitentiary facility in Madrid while the court is considering the issue of his extradition. The US suspects Lisov of developing and using a new banking Trojan, NeverQuest, together with other persons to gain ""access to computers of individuals and financial institutions to steal banking data, information on credit cards and personal data."" The damage from the actions of the hacker network, to which Lisov allegedly belongs, is estimated at about $5 million. The Russian national earlier denied any wrongdoing and said he had no idea of why the US authorities designated him as a suspect. ", -2362,2017/3/15,http://tass.com/world/935552,"Delegations of Russia, Iran hold meeting in Astana",,"ASTANA, March 15. /TASS/. Russian and Iranian representatives are holding a meeting in Kazakhstan's Astana at the Rixos hotel. Russia's delegation is led by the president's special envoy for the Syrian settlement, Alexander Lavrentyev. Iran's delegation is headed by Deputy Foreign Minister Hossein Ansari. The round of negotiations is due to be wrapped up on Wednesday with trilateral consultations of the three guarantor countries of Syrian ceasefire: Russia, Iran and Turkey.", -2363,2017/3/15,http://tass.com/world/935550,Syrian opposition delegation may attend Astana talks Wednesday night,Opposition representatives earlier said they refuse to attend reconciliation meeting in Astana,"ASTANA, March 15. /TASS/. Members of the Syrian armed opposition may arrive to the Kazakh capital Astana on Wednesday night, a source close to the negotiations told TASS. ""The opposition may arrive this night,"" the source said. The information is yet to be officially confirmed, he added. Opposition representatives earlier said they refuse to attend the reconciliation meeting in Astana due to alleged violations of the ceasefire in Syria. ", -2364,2017/3/15,http://tass.com/defense/935547,Some 500 missiles to be launched during large-scale air defense drills in Siberia,"The exercises involve S-400, S-300, Tor-M2U, Osa and Strela-10 missile systems","ULAN-UDE, March 15. /TASS/. About 500 rockets will be launched during a large-scale air defense exercise that began at the Telemba military training ground in Siberia's Republic of Buryatia, the region's press service said. ""The maneuvers are held as part of the combat preparations of the region's air defense forces and involve about 8,000 people and over 1,000 units of combat and special equipment, including over 120 aircraft,"" the press service of the Eastern Military District said. The exercises involve S-400, S-300, Tor-M2U, Osa and Strela-10 missile systems, Pantsir-S combined short to medium range surface-to-air missile and anti-aircraft artillery weapon system, the ZSU-23-4 ""Shilka"" self-propelled, radar-guided anti-aircraft weapon systems and the Igla man-portable air defense missile systems. ""A total of 250 dummy rockets and two cruise missiles were allocated to imitate an air attack by an enemy, and about 500 surface-to-air missiles to hit them,"" the press service said.", -2365,2017/3/15,http://tass.com/world/935546,Sberbank subsidiary in Ukraine limits cash withdrawals amid blockade by radicals,"Starting from Wednesday, individual customers will not be able to withdraw more than 30,000 hryvnia or its equivalent in other currencies","KIEV, March 15. /TASS/. The Ukrainian subsidiary of Russia's Sberbank was forced to limit cash withdrawals by individuals starting Wednesday following a radical activists""?blockade of its offices, its press service said. ""Due to unlawful actions by third parties to block the head office of Sberbank and damage its ATMs, which led to disruptions in cash-in-transit services, we announce temporary limits on the withdrawal of cash by individuals from their current accounts,"" the bank said. Starting from Wednesday, individual customers will not be able to withdraw more than 30,000 hryvnia or its equivalent in other currencies (at the current exchange rate, $1 = 26.9 hryvnia) via a cash desk daily, or not more than $800-$2,000 via ATMs in Ukraine and other countries. Ukrainian nationalists did not let staffers of the bank's head office in Kiev into the office early on Tuesday. They pitched tents in front of the building and made bonfires. On Monday, they bricked up the entrance to the bank, writing Rusbank in big letters on its windows, and painting the national emblem of Ukraine on the central entrance door. Police did not interfere, saying they saw no violation of law in that situation. Members of Ukraine's nationalist battalion Azov and Right Sector (an organization outlawed in Russia) also pledged on Monday to remain on duty round-the-clock at all Sberbank offices in Ukraine to disrupt their activity. Thus they seek to make the National Bank of Ukraine revoke the license, and make the parliament pass a law banning the activity of Russian banks in Ukraine. The National Bank of Ukraine announced on March 7 that it is ready to impose sanctions on Sberbank's subsidiary in Ukraine, if reports about the bank providing services in Russia to customers with passports of Donetsk and Lugansk people's republics is confirmed. On Tuesday, the Sberbank subsidiary in Ukraine has appealed to Ukrainian President Pyotr Poroshenko to assist in having the blockade lifted. The bank said that it employs more than 2,000 Ukrainian nationals and ""is one of the major Ukrainian commercial banks... conducting its activity on the basis of a license from the National Bank of Ukraine, strictly within the framework of Ukrainian law"". The bank is one of the biggest taxpayers in Ukraine with payments to the state and local budgets amounting to an equivalent of $67 million in the past three years.", -2366,2017/3/15,http://tass.com/world/935544,"Anti-Russian sanctions harm French agriculture ""?finance minister","Sapin said that ""despite various difficulties, related to economic and geopolitical problems, the majority of ties remains very strong""","PARIS, March 15. /TASS/. The sanctions, imposed by the European Union against Russia, and Moscow's response to them damaged the French agriculture, Finance Minister Michel Sapin said. ""In recent years, political difficulties in relations between our states have damaged France's agricultural sector. Our farmers have sustained great losses,"" Sapin said following a plenary session of the Russian-French council on economic, financial, industrial and trade issues. ""We would like to overcome these difficulties. We have to admit that we should not turn a blind eye to the problems that emerge, we need to prepare for bringing the relations to their normal level. We hope that political steps will be made in this direction,"" he said. In January 2016, the Russian-French council on economic, financial, industrial and trade issues resumed its activities after a pause of more than two years. Sapin said that ""despite various difficulties, related to economic and geopolitical problems, the majority of ties remains very strong,"" citing the partnership between France's Total and Russia's Novatek in the Yamal-LNG project as an example. He said that issues of cooperation in space, the area of strategic cooperation between Russia and France, were also discussed at the meeting. ""Problems exist here as well, but our enterprises and governments are doing their best to solve them,"" the minister added.", -2367,2017/3/15,http://www.dw.com/en/dailydrone-saxony/a-37915694?maca=en-rss-en-all-1573-rdf,#DailyDrone: Saxony,Discover the German state of Saxony as seen from a bird's eye view with the #DailyDrone.,"#DailyDrone is our daily bird's-eye view of Germany. Every day a different exciting location in the viewfinder of our drone camera. Famous sights in Berlin, Cologne, Hamburg or Munich, castles and fortresses from across the country, loading containers in a major port, bringing in the harvest, a day at the regatta. #DailyDrone takes you on unique journeys to destinations all over Germany, in all weathers and seasons, 365 days a year.", -2368,2017/3/15,http://www.dw.com/en/iditarod-winner-sets-record-for-oldest-fastest-musher/a-37938329?maca=en-rss-en-all-1573-rdf,"Iditarod winner sets record for oldest, fastest musher",The musher's record-breaking victory has solidified his family's legacy in the painstaking race across the US state of Alaska. He has become the race's quickest and oldest champion at the age of 57.,"Ice climbing ranks pretty high on the danger scale. You need nerves of steel to do it. Klemen Premrl and Alja?-Anderle of Slovenia are among the world's best ice climbers, braving the risks for the thrill. Veteran musher Mitch Seavey on Tuesday won the 2017 Iditarod sled race, setting a new record for the fastest completion of the nearly 1,000-mile (1,600-kilometer) race. He beat his son's previous record by nearly eight hours, completing the race in 8 days, 3 hours, 40 minutes and 13 seconds. After crossing the finish line, he hugged his wife and proceeded to offer his fatigued dogs a snack. ""They get frustrated when they go too slow, so I just let them roll, which was scary because I've never gone-that far ever, but that's what they wanted to do,"" Seavey said. ""They trusted me to stop them when they needed to stop and feed them, and I did that, and they gave me all they could,"" he added. The 57-year-old musher also broke the record for the oldest champion to win the decades-old Iditarod race, dubbed the ""last great race on earth."" His prize included $75,000 (70,650 euros) and a brand new truck. Seavey has effectively sealed his family's legacy in Iditarod race, winning the last six races between him and his son Mitch Seavey. ""There's no malice, we just love running sled dogs. No question,"" Mitch said. Scott Janssen, who is known as the ""Mushing Mortician,"" was the first to leave from the starting point in Willow, Alaska to compete in the Iditarod dog sled race, which is a 1,600 km (1,000-mile) journey through Alaska's rough terrain. He left with 16 dogs and amid cheers from the crowd. Janssen is competing in his sixth Iditarod race. Lisbet Norris, who grew up in Willow, Alaska, and her 16-dog team can be seen leaving the starting chute. The race has attracted competitors from around the world, all vying to become the first to cross the finish line. Crowds gathered along Chester Creek near the start of the race to cheer on their favorite musher and sled dog team. An aerial view of the Alaska terrain shows just what the mushers must brave in order to win the race. An Alaska freight train arrived on Saturday to deliver snow from a nearby town to help the Iditarod stage a ceremonial start. Officials of the race said that warm weather had melted the little snow still on the trail this year. However, the weather in Alaska is still cold. To help the dogs stay warm in the frigid temperatures, sled dogs often wear equipment such as booties for their paws and goggles for their eyes. The added protection helps the dogs compete against the elements. In addition to keeping the dogs warm, mushers are also responsible for keeping their sled dogs safe. Lars Monsen, a musher from Norway, is seen untangling his team of 16 dogs before the start of the race. Many teams lose at least a couple of dogs to wear and injury while out on the trail. The grueling Iditarod race attracts many competitors, like rookie Larry Daugherty. The American musher, who comes from the US state of Utah, is among many first-time competitors willing to brave the unforgiving wilderness of Alaska. Rookie Cody Strathe was also among those mushers who set off from the small Alaska town. His team and others are expected to brave two mountain ranges, the bitter cold and fierce winds along the Bering Sea coast before finishing at Nome, Alaska. The race is expected to take at least nine days. Author: Shay Meinecke ls/rt (Reuters, AP)", -2369,2017/3/15,http://www.dw.com/en/china-seeks-to-avoid-trade-war-with-us/a-37938323?maca=en-rss-en-all-1573-rdf,China seeks to avoid trade war with US,Chinese Premier Li Keqiang said the country would open its economy wider to foreign investment and trade. US President Donald Trump has been on the offensive against the free-flow of Chinese goods.,"""We do not want to see any trade war breaking out between the two countries. That would not make our trade fairer,"" Premier Li stated on Wednesday as the NPC's annual legislative gathering wrapped up after ten days. His words echoed those of-Chinese Commerce Minister Zhong Shan, who called earlier in the conference to maintain mutually beneificial US-China trade relations. Li also signaled China was willing to make its state-run economy more accessible for foreign investment despite ""frictions in trade and investment."" ""China will continue to open to the outside world,"" the premier said. ""We welcome other partners to share with us in the development opportunities of China."" China - a free trade defender? At first glance, the Asian giant's statements on Chinese trade relations with the US and the world seem to be counterintuitive. After all, the heavily planned economy includes a large share of government-owned industry and a strict regulation of currency reserves to ensure low-cost and competitive goods. China is home to electric car plants However, with the Trump administration's decision to withdraw the US from the Trans-Pacific Partnership trade deal and prophecies of increasing protectionism, China could very well step into the vacuum as a leader of international free trade as they seek to reduce state debt and boost consumer spending. Li stated that China would like to work with its Asian neighbors to promote regional trade as well, a declaration aimed at alleviating concern that China could become too economically powerful. But Li said neighboring countries need not fear. -""We have an open mind and we are ready to work together with others,"" Li said. ""China has no intention to overreach itself."" Li also promised to continue reforming the yuan exchange rate mechanism based on market values and not to depreciate currency in order to feed export demands. Navigating the US-China relationship Trump and Xi may meet in April in Florida Since taking office, US President Trump has unsettled Chinese leaders with his accusations of currency manipulation and his warnings of future import taxes to be applied to Chinese goods entering the US, as well as with his suggestion that the US may not stick to the ""One China"" policy that does not recognize an independent Taiwan. In his closing remarks, Li described the ""One China"" policy as the ""foundation"" of his country's relationship with the US that ""cannot be undermined."" In a phone call with Chinese President Xi Jinping in February, however, Trump reaffirmed America's recognition of a single, unified China.- Media reports indicate that Trump has plans to host Xi in Florida in April in what would be the two world leaders' first face-to-face meeting. cmb/rt (Reuters, AP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2W49r", -2370,2017/3/15,http://www.dw.com/en/polls-open-in-divisive-dutch-parliamentary-elections/a-37937959?maca=en-rss-en-all-1573-rdf,Polls open in divisive Dutch parliamentary elections,"The Dutch premier's VVD party has profited from a diplomatic row with Turkey ahead of the vote, pollsters said. But even if far-right lawmaker Geert Wilders doesn't win the popular vote, analysts say he's already won.","The prime minister said that the Dutch election could cause a ripple effect across Europe in favor of ""the bad kind of populism."" France and Germany also face an emboldened populist right in elections later this year. Dutch citizens are heading to the polls on Wednesday in divisive parliamentary elections that have garnered international attention. Far-right lawmaker Geert Wilders' Party for Freedom has gained significant support throughout his controversial campaign, running slightly behind Prime Minister Mark Rutte's VVD party. Pollsters I&O said Wilders' dip in support hours ahead of polls opening is due to Rutte's decision to prevent Turkish officials from campaigning for a nationwide referendum that could consolidate President Recep Tayyep Erdogan's powers. Read: What you need to know about the Dutch elections Last week, the Dutch government turned away Turkish Foreign Minister Mevlet Cavusoglu's plane and later prevented Family Minister Fatma Betul Sayan Kaya from entering Turkey's consulate in Rotterdam. She was later escorted to the German border. Despite prompting a diplomatic spat between Amsterdam and Ankara, the ruling VVD has profited from the decision, with pollsters projecting it would gain up to 29 seats compared to Wilders' top estimate of 24 in the 150-seat parliament. The Netherlands, a founding member of the European Union and its forerunner the European Economic Community (EEC), is a dynamic economy, with stable GDP growth, low unemployment rate and a market-friendly economic model. -Still, right-wing populists are expected to perform well in the coming elections. What are the reasons behind this trend? Political and socio-economic problems are growing in complexity in an increasingly globalized world. Many are feeling overwhelmed as a result. Seeing this as a chance, Dutch populists are pushing hard for a breakthrough at the ballot box. Their leader is Geert Wilders, of the Party for Freedom (PVV), who with his simple answers to complicated issues seems set for a dramatic electoral performance. When he took over the reins of his country, Prime Minister Mark Rutte promised solid economic growth and rising prosperity. He has delivered on these fronts: the economic data appear unambiguously positive. But the problem is that the growth and prosperity have not affected many Dutch from lower and middle classes, whose living standards haven't improved over the past five years. - Rutte had also pledged not to pour Dutch taxpayer money into bailing out fellow eurozone economies. The PM, however, had to backpedal on this pledge immediately after taking office and grant an aid package for Greece. The move undercut Dutch voters' trust in his government. Decisions like rising the retirement age to 67 and slashing the social benefits have not helped either. The Dutch soon realized that they have actually been paying a hefty price for the boom. They have had to take cuts to their unemployment benefits and reduce spending on healthcare. The fruits of economic expansion haven't reached the ordinary citizen. While the jobless rate has dropped, many Dutch workers are still finding it difficult to earn enough to maintain their living standards. Under these circumstances, it's unsurprising that nationalist sentiment is on the rise ""?even in Dutch society whose liberal values have served as an ideal for many other European nations over the years. In response, the Netherlands has turned against taking in asylum seekers. The prevailing national mood favors Geert Wilders electorally. - Wilders' campaign rhetoric focuses on migrants, particularly Muslims. He seldom appears in public without warning that his country faces the ""threat of Islamization."" Similar to Donald Trump's strategy of blaming Mexicans for every US woe, Wilders points to ""Moroccans"" for the Netherlands' problems. Islam is most visible in Europe through its places of worship, and many people simply do not want any more of them - another reflex that Wilders exploits. He calls for a nationwide ban on mosques and the Koran, argues against the ""Islamic ideology,"" criticizes the euro and challenges the survival of the EU. He does this while promising the voters better elderly care and a hike in pensions. Wilders has been able to score points amid growing voter dissatisfaction. But parties with radical agendas in the Netherlands have so far failed to turn their good poll ratings into votes. -Still, the argument that the country needs to build high barriers seems to be gaining traction; to protect itself from the waters of the North Sea and, for Wilders' followers, against migrants and refugees. - Author: Dirk Kaufmann (sri) Wilders 'already won' Even if Wilders' Party for Freedom managed to win the popular vote, the Netherlands' mainstream parties have rejected the possibility of a coalition with the right-wing lawmaker. ""Wilders will play no role in the formation of a government,"" said Andre Krouwel, political scientist at Amsterdam Free University. ""But Wilders plays a major role in the tone and content of the campaign and Wilders - even if he doesn't win a single seat - has already won because the two biggest right-wing parties have taken over his policies,"" he added. Polls show four other parties are expected to gain more than 10 seats, including the centrist D66, Green-Left, the Socialist Party and the social democrat Labor Party (PvdA), which could lead to a lengthy process to form the government. ""It wouldn't surprise me if these results lead to a very complicated and long formation process,"" said Krouwel. Nearly 13 million Dutch citizens are eligible to vote in Wednesday's elections, according to official figures. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yquk ls/bw (AP, dpa)", -2371,2017/3/15,http://www.dw.com/en/white-house-confirms-trump-income-tax-numbers-as-msnbc-airs-returns/a-37937883?maca=en-rss-en-all-1573-rdf,White House confirms Trump income tax numbers as MSNBC airs returns,"The White House has confirmed President Donald Trump paid $38 million in tax in 2005. The statement also lambasted the media for the ""illegally published"" tax documents.","President Trump's income in 2005 totaled more than $150 million, the White House said-in a statement on Tuesday evening. The statement also said that as head of the Trump Organization, the real estate mogul had an obligation ""to pay no more tax than legally required."" The White House released its-statement shortly after MSNBC presenter Rachel Maddow announced on Twitter she had obtained copies of Trump's tax returns and was planning to report on them during her evening-show.- The White House verified the authenticity of the tax documents in Maddow's possession but did not release any documents with its-statement.- According to the 2005 return, Trump also took a tax write-down valuing around $100 million, reducing his federally taxable income and giving him an effective tax rate of 25 percent for the year. Tax revelations on TV Pulitzer prize-winning investigative journalist David Cay Johnson received the two pages of Trump's 2005 returns in the mail from an anonymous source. He appeared on the Rachel Maddow show on Tuesday evening to discuss the documents and speculate-on who might have sent them, including possibly Trump himself. The White House's statement took aim at the network's decision to publish the returns. ""You know you are desperate for ratings when you are willing to violate the law to push a story about two pages of tax returns from over a decade ago,"" they wrote. In a continuation of the administration's attacks against the media, they-highlighted the ""illegally published"" return. ""It is totally illegal to steal and publish tax returns. The dishonest media can continue to make this part of their agenda,"" the statement said. Those who publish or release federal income tax returns without authorization can face up to five years in jail and a fine up to $5,000. Maddow argued that MSNBC making information in the public interest available as outlined and protected by the First Amendment. The Trump tax mystery Trump has refused to publish his tax returns, claiming he has been-under audit by the IRS and has-been advised not to make his tax payments public. However, no legal requirement exists barring individuals under audit from releasing their returns. Trump has used an IRS audit as an argument against publishing his tax returns. Investigations by the New York Times last fall showed that Trump used a gigantic loss in 1995 to avoid paying income taxes for numerous years thereafter. Presidential candidates and sitting presidents have traditionally published their income tax returns. Critics have argued that Trump's persistent denial to make his returns public indicates he has something to hide. Throughout his candidacy and into his presidency, Trump has maintained the American public has no interest in his taxes. But over one-million people have signed a petition requesting him to make his returns public. The White House did not say whether Trump now has-plans-to make his returns public during his tenure in the Oval Office. It-also did not comment on whether Trump would allow the IRS to audit his returns automatically once submitted on April 15, an established practice for sitting presidents,-or whether he would seek to circumvent this requirement.- Tax reform in his favor? Trump's 2005 returns show the effect of Alternative Minimum Tax (AMT), a measure of tax liability that hinders using deductions and accounting methods to reduce tax burdens for the wealthy. Taxpayers must calculate their income twice under two separate methods and pay taxes on the higher of the two resulting amounts.- Without the AMT, Trump's effective tax rate would have been only 3.5 percent rather than the 25 percent his 2005 returns revealed.- Trump argued in favor of eliminating the AMT on his campaign website. When Democratic nominee Hillary Clinton criticized Trump during the campaign for not paying federal taxes, Trump responded ""that makes me smart.""- cmb/bw (Reuters, AP, dpa)", -2372,2017/3/15,http://www.dw.com/en/somali-pirates-demand-ransom-after-commandeering-oil-tanker/a-37937787?maca=en-rss-en-all-1573-rdf,Somali pirates demand ransom after commandeering oil tanker,Observers have accused authorities of letting their guard amid a period of relative security for shipping companies operating in the strategic route. The hijacking marked the first of its kind since 2012.,"Over 20 million are facing famine and starvation in four countries, the UN humanitarian chief has warned. He has urged the Security Council to provide funds and aid access to prevent ""these looming human catastrophes."" Armed men seized an oil tanker off the coast of Somalia's northern coast, the EU's anti-piracy mission NAVFOR said late Tuesday. ""Upon receipt of the mayday alert, an EU Naval Force maritime patrol aircraft was launched from its base in Djibouti to overfly the tanker and make radio contact with the ship's master,"" NAVFOR said in a statement. ""Despite hailing the ship several times, no contact was made and the situation on board remained unclear until late this afternoon,"" it added. NAVFOR noted that the Somali pirates had demanded ransom, information which they provided to the ship's owner. Sri Lanka's foreign ministry confirmed an eight-member Sri Lankan crew piloted the Comoros-flagged tanker Aris 13. The hijacking marks the first of its kind in five years. At their peak in 2011, Somali pirates commandeered several hundred commercial ships costing the global economy an estimated $7 billion (6.6 billion euros), of which 80 percent was borne-by the shipping industry. 'Never went away' The series of hijackings prompted the UN, EU and NATO to intervene patrol maritime routes in and around the Gulf of Aden. However, NATO's mission officially ended in December. John Steed, director of Oceans Beyond Piracy NGO, said the latest act of piracy off the coast of Somalia showed that the authorities had let their guard down. ""The pirates never went away, they were just doing other forms of crime and if ""?ships take risks, the pirates are poised to exploit the weakness,"" Steed told the Associated Press news agency. The affected area is considered a strategic trade route that leads through the Suez Canal, linking oilfields of the Middle East with European ports. Modern piracy of the coast of Somalia dates back to 2005. Attacks on ships by pirates off the Horn of Africa have been declining since Operation Atalanta, a European mission to secure the region's water for shipping, got underway in 2008. But now the problem is on the rise in the Gulf of Guinea. EU leaders are preparing to announce a strategy to increase security efforts in the region. The International Maritime Bureau in London, which monitors pirate activities, has reported at least 10 incidents in the Gulf of Aden and at least 28 in the Gulf of Guinea in 2013. The number of attacks on the Horn of Africa has been falling steadily: Last year, 75 ships were reported attacked and 237 in 2011. In the Gulf of Guinea, 58 incidents were recorded in 2012, compared to 64 in 2011. Failed governance in Somalia led to overfishing of its coastline by other countries in the early 1990s. Toxic waste was subsequently dumped in its waters, crippling the local fishing industry. The combination of factors caused some Somalis to resort to piracy, while others later determined it was a good way to make money. Piracy surged in Somali waters in the late 2000s. Pirate attacks along the Horn of Africa have decreased since the international naval presence there was bolstered. In 2012, 35 ships were attacked by pirates off the coast of Somalia, compared with 163 in 2009. In former piracy hotspots, locals are more concerned about fishing than capturing cargo ships. Those captured and accused of piracy can face trial far from their home countries. Where they end up depends on who catches them or the ship they attacked. In 2012, for example, 10 Somalis were sentenced to jail by a Hamburg court for attacking a German-flagged ship. The UN and EU are backing efforts to improve the judicial systems closer to where pirates operate. West African pirates' methods can be more violent than those off the Horn of Africa. While Somali pirates know they will forfeit ransom if their hostages come to harm, pirates in the west are mainly interested in the oil or valuable cargo on board and less concerned about the people. Their hijacking methods are similar - approaching large vessels out at sea in small craft. In the West, Nigeria has been exporting oil for the past 20 years, but most of its people have not benefited from the extensive revenues. Almost two-thirds of Nigeria's population lives below the poverty line. To those without livelihoods, the risks of piracy can seem worth it. Political instability and social conflict have left room for pirate gangs to consolidate in the Gulf of Guinea. While a heavy international military presence was effective in reducing piracy near Somalia, the same solution cannot easily be applied to the Gulf of Guinea. As those countries are sovereign states, their own authorities must work together to find a solution. Still, international interest in finding an answer is high, especially since the region supplies 20 percent of Europe's oil and gas. The key to reducing piracy is improving people's lives on land. The challenges are vast - from improving judicial systems to creating a sustainable economy to effectively managing the consequences of natural disasters - like here in a Somali food aid facility where families received rations during a severe drought in 2012. Author: Samantha Early ls/bw (AP, AFP, Reuters)", -2373,2017/3/15,http://www.dw.com/en/drugs-cats-and-criticism-austria-to-investigate-possible-hate-speech-against-satirical-author-stefanie-sargnagel/a-37937724?maca=en-rss-en-all-1573-rdf,"Drugs, cats and criticism: Austria to investigate possible hate speech against satirical author Stefanie Sargnagel","After a bizarre back-and-forth of publications, criticisms and Facebook posts, Austrian authorities have announced they will look into whether author Stefanie Sargnagel was the target of hate speech.","The surge of hateful Facebook comments calling for the death and rape of Sargnagel could constitute hate speech, a criminal offence in Austria, a police spokesperson confirmed on Monday. The authority's statement accompanied the announcement that-officials-would open an investigation into the affair. The investigation is the latest in a chain of events spanning Morocco and Austria that has drawn in social media giant Facebook as well as-various big names in Austria's media and political landscape. Dear diary - it all started in Morroco Sargnagel traveled to the Moroccan coastal city Essaouira The saga began when Sargnagel along with two other authors published a satirical diary of the literary trio's publicly-funded trip to Morocco. The-account, published in the Austrian daily ""Der Standard,"" satirized their travels with flippant and often crass remarks about heavy alcohol consumption, drug use, animal insensitivity, along with ironically-intended superficial cultural content. ""The Cologne train station promised way too much,"" Sargnagel wrote on wearing a miniskirt out on the streets Essaouira, referencing the mass sexual harassment of women that took place in the western German city on New Year's eve in 2015. Men of North African origin were accused of making up a large part of the assailants.- The Kronen Zeitung is Austria's most circulated paper Despite the satirical nature of Sargnagel and company's writings, the Austrian tabloid Kronen Zeitung published a polemic on March 8, International Women's Day, entitled ""Boozing and getting high on tax payer money"" that lambasted the three women and their behavior. The Krone, the nation's largest paper, is known for its Euroskeptic, anti-immigrant and populist views. Sargnagel then received a hailstorm of hate messages on Facebook, some of which called for the 31-year-old to be raped or executed for treason. After reposting the threatening messages and responding to them with a satirical post about torturing baby cats, critics flagged Sargnagel's posts to Facebook, who then closed her account for 30 days.-However, the author's account was reopened on Monday. The same day, the author sarcastically tweeted ""I mean, she kicked-all those cats."" The closing and re-opening of the Sargnagel's page-comes as the social media powerhouse faces increased pressure from the German government to curb online hate speech. The red-beret wearing author-said she would denounce all the authors behind the hate posts. Sargnagel, who won the Public's Prize at the 2016 Bachmann literary awards, is known for her often satirical and sharply critical work that often centers on Austria's far-right political scene,-including the Freedom Party (FPÖ). She has previously been the subject of critical attacks from far-right commentators and FPÖ supporters.", -2374,2017/3/15,http://www.dw.com/en/spanish-authorities-reveal-details-of-huge-black-market-weapons-cache/a-37937549?maca=en-rss-en-all-1573-rdf,Spanish authorities reveal details of huge black-market weapons cache,Police in Spain have released photos of automatic rifles and other weapons covering a warehouse floor. Authorities fear the trove fed criminal and terrorist organizations in Europe.,"After two months of examination and categorization, Spanish police on Tuesday finally revealed the extent of the massive weapons haul they undertook in January 2017. According to the published police statement, the cache included 9,000 CETME fully automatic rifles, anti-aircraft guns, 400 shells and grenades, pistols, and revolvers. Photos published by the police show piles of assault rifles, guns and weapons parts lying in stacks and leaning against the walls of a warehouse. Cracking down on Europe's black market weapons- Spanish police originally seized the firearms in a raid undertaken on January 12 and 13 in the northern regions of Catalonia, Cantabria and the Basque country. The operation was initiated after the May 2014 shooting at the Jewish Museum in Belgium that left four dead and spurred authorities across Europe to crack down on black market weapons. Five suspects were also detained in the January raids. Europol and Spanish police cooperated on the operation Police reported the group bought decommissioned weapons that they then reactivated. The pieces needed for such reactivation were found in the trove.-- Alongside the thousands of arms, authorities also discovered material needed to falsify arms documentation and tools required to change the weapons' identification numbers. Europol, the EU police force that worked alongside Spanish authorities in the operation, believe the illegal firearms were intended for sale in Spain, France and Belgium. ""The seized weapons had an easy journey in the black market and posed a significant risk of being acquired by organized crime groups and terrorists,"" Europol said in a statement. cmb/bw (dpa, AFP)", -2375,2017/3/15,http://www.dw.com/en/positive-outlook-for-pacific-free-trade-in-the-wake-of-tpp-say-officials/a-37937557?maca=en-rss-en-all-1573-rdf,"Positive outlook for Pacific free trade in the wake of TPP, say officials","Signatories of the TPP trade deal have gathered in Chile to discuss free trade across the Pacific Rim. Officials offered a positive outlook moving forward, with Beijing open to filling the vacuum after Washington's exit.","Fulfilling his campaign promise, President Trump has pulled the US out of the ambitious free trade deal negotiated by his predecessor Obama. Analysts view China as the prime beneficiary of the US' abandonment of TPP. Representatives from 12 countries of the failed Trans-Pacific Partnership (TPP), plus China, Colombia and South Korea, gathered in Chile on Monday to discuss the future of free trade across the Pacific Rim. New Zealand's Trade Minister Todd McClay told Reuters news agency that while he didn't expect any decisions at the talks, ""there is life still in the TPP."" ""We see this as an opportunity to have a frank round-the-table conversation to gauge where each of the countries are and then to work out how we might consider what next steps there may be, if there are any,"" New Zealand's Trade Minister Todd McClay told Reuters news agency. Since US President Donald Trump ordered the withdrawal of the US from the TPP, signatories have struggled with how to move forward on free trade in the Pacific Rim. But officials expressed a positive outlook moving forward, with Mexico's Foreign Minister Luis Videgaray saying Washington's exit opens news opportunities. Australia and other signatories have signaled a positive view at salvaging parts of the agreement and complimenting it with the inclusion of China and Indonesia, two economic powers in the region. China's turn As the US considers its role in Asia under the Trump administration, China has asserted its readiness to work with its neighbors and other Pacific Rim nations on trade. Beijing was originally excluded from TPP, considered a hallmark deal of former US President Barack Obama's pivot to Asia. However, Beijing emphasized that the meeting in Chile isn't solely about the TPP agreement, but includes wider discussions on ""integration initiatives."" China has also spearheaded free trade talks at the Regional Comprehensive Economic Partnership (RCEP), which includes the 10 members of the Association of Southeast Asian Nations (ASEAN), plus Australia, India, New Zealand, Japan and South Korea. But officials have shied away from any commitments, saying TPP signatories need to orient themselves after the Trump's momentous decision to torpedo the deal. ""If we can get some clarity on what is ahead then that more than justifies the meeting,"" Chilean Foreign Minister Heraldo Munoz told reporters in the coastal city of Vina del Mar. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WegM ls/bw (Reuters, AP)", -2376,2017/3/15,http://www.dw.com/en/winter-storm-stella-hits-us-east-coast/a-37937402?maca=en-rss-en-all-1573-rdf,Winter storm Stella hits US East Coast,"The Northeast was paralyzed by the late winter storm - many schools closed, over 6000 flights were cancelled. While New York City was not hit as badly as expected, some rural regions expected up to two feet of snow.","As storm Stella swept through the densely populated Northeastern United States on Tuesday, more than 6,000 flights were cancelled, nearly a quarter-million people from Virginia northward lost power, many trains were cancelled and schools were closed. The storm ""?which turned into a blizzard in Massachusetts ""?gusted through the Washington-to-Boston corridor at nearly hurricane force over 70 miles per hour (112 kilometers), throwing the region back into freezing temperatures and heavy snow after a mild February had lulled people into thinking the worst of winter was over. Some 50 million people from Pennsylvania to Maine faced the ""rapidly intensifying nor'easter"", which usually hits the region much earlier in the winter. Snow, ice and high winds has caused dangerous driving conditions. A 16-year-old girl was killed in a traffic accident in New Hampshire after losing control of her car on a snowy road and hitting a tree on Tuesday morning. Most people followed the request by governors and mayors to stay home. President Donald Trump said he had spoken to Homeland Security and that the Federal Emergency Management Agency was ready to provide assistance. ""Everybody in government is fully prepared and ready,"" he said. On Twitter, he shared a photo of a meeting with Washington DC's mayor to discuss storm preparations. Railway service Amtrak suspended service and the post office halted mail delivery. Governors in New York, New Jersey, Pennsylvania and Virginia declared states of emergency. All public schools in New York City - the largest U.S. school system ""?remained closed, as did schools in the Washington, D.C., Boston, Philadelphia and in many smaller cities. New York City was hit less than expected ""?throughout the day, the National Weather Service corrected its forecasts from a record 18 inches (46 centimeters) or more to 4 to 6 inches of snow. Neverthless, the above-ground portions of the New York subway system were shut down, and nearly 3,300 in the New York City were cancelled, as the city closed all three major airports in and surrounding the city. In New York City, two ponies broke free from their stables amid the snow and were later captured by an off-duty police officer Things are now expected to be largely back to normal in the biggest city of the country by Wednesday's morning rush hour. ""Mother Nature is an unpredictable lady sometimes. She was unpredictable today,"" the New York State's governor Andrew Cuomo told reporters as the rest of the state experienced much higher snow than initially expected.- Bob Clifford, a local on a grocery run in Albany, New York State, said that ""the winters seem to be upside down now. January and February are nice and then March and April seem to be more wintry than they were in the past."" He adviced people to ""Just hide inside. Hibernate."" The blooming cheery trees in Washington D.C. - usually seen as an indicator for the beginning of spring - were surrounded by snow on Tuesday In Washington, the cherry trees on the city's museum strip, stood amid snow, with blooms encased in ice. Federal agencies in the US capital opened three hours later than usual. In New Hampshire, some towns were forced to postpone elections because of the snow. Tuesday marked the state's traditional Town Meeting Day, where voters in more than 100 communities elect a number of local positions, such as library trustees. For Wednesday, the US weather service predicted that parts of the Northeast could still be engulfed in the worst blizzard of the winter - some regions could expect up to 2 feet (60 cm) of snow. mb/bw (AP, Reuters)", -2377,2017/3/14,http://www.aljazeera.com/news/2017/03/saudi-arabia-trump-meeting-historical-turning-point-170315040207874.html,Saudi Arabia: Trump meeting 'historical turning point',"Saudi says talks highlighted shared views on Iran, expresses 'satisfaction' Trump's travel ban not aimed at Muslims.","Saudi Arabia has hailed a ""historical turning point"" in relations with the United States after a meeting between US President Donald Trump and Deputy Crown Prince Mohammed bin Salman at the White House. The meeting on Tuesday was the first since Trump's January 20 inauguration with a prince who is leading the kingdom's efforts to revive state finances and is also its defence minister. ""The meeting today restored issues to their right path and form a big change in relations between both countries in political, military, security and economic issues,""-a senior adviser to Prince Mohammed said in a statement. The talks appeared to signal a marked difference from Riyadh's often fraught relationship with the previous administration of Barack Obama, especially in the wake of the 2015 Iran nuclear deal. The deputy crown prince viewed the nuclear deal as ""very dangerous"", the senior adviser said, adding that both leaders had identical views on ""the danger of Iran's regional expansionist activities"". The Trump White House has said the deal was not in the best interests of the US. OPINION: What will Trump do with the Iran nuclear deal? Referring to a US travel ban on six Muslim-majority countries, the adviser said Prince Mohammed did not regard it as aimed at ""Muslim countries or Islam"". Earlier this month Trump signed a revised executive order banning citizens from Yemen, Iran, Somalia, Syria, Sudan, and Libya from travelling to the US but removed Iraq from the list, after a first attempt was blocked in the courts. The senior adviser said Prince Mohammed ""expressed his satisfaction after the meeting on the positive position and clarifications he heard from President Trump on his views on Islam."" The two leaders also discussed opportunities for US companies to invest in Saudi Arabia. OPINION: How Muslim Ban incites vigilante Islamophobic violence Obama late last year suspended the sale of US-made precision-guidance munitions to the Saudis, a reaction to thousands of civilian casualties from Saudi-led air raids in Yemen. US officials said Trump was considering ending that ban and approving the sale of guidance systems made by Raytheon Co. The US State Department has approved the move, which awaits a final White House decision, the officials said. READ MORE: Key facts about the war in Yemen Gregory Gause, a Gulf expert at Texas A&M University, said that while Saudi Arabia might find the ""atmospherics"" of its relations with Trump better than those with Obama, it might find less change than it hopes on key issues. For example, he said, Trump is unlikely to mount a major, costly effort to counter Iranian influence in Iraq, or to launch a full-scale campaign to oust Syrian President Bashar al Assad, as Riyadh might wish. ""I think they're going to find rhetorically that the new administration says things and uses language they like more,"" said Gause. ""But I think on the ground, we're not going to see an enormous difference."" Source:-News agencies", -2378,2017/3/14,http://www.aljazeera.com/news/2017/03/dutch-election-vote-key-national-poll-170315033635938.html,Dutch election: Vote under way in key national poll,Crucial vote boiled down to a race between Prime Minister Mark Rutte's Liberals and far-right party of MP Geert Wilders. Litmus test,"Dutch voters cast their ballots on Wednesday in a crucial legislative election, with pollsters predicting a close result and a fragmented parliament. The vote, which has been overshadowed by a diplomatic row between The Netherlands and Turkey,-has essentially come down to a tight race between Prime Minister Mark Rutte's centre-right party and that of far-right, anti-Islam populist's Geert Wilders. Ahead of the vote, opinion polls showed Rutte's liberal VVD narowly leading the race, and even if Wilders' PVV emerges as the biggest party in parliament, it is unlikely to obtain the majority of the 150 seats enabling it to form a government. Most parties have pledged not to govern with the PVV. Most polls opened at 730am (06:30 GMT), while an initial exit poll was expected immediately after 9pm (20:00 GMT) when the last voting stations close. READ MORE: Dutch Muslims reflect on Geert Wilders before vote Overall,-some 13 million people are eligible to vote and-28 parties are competing for the 150 seats in the Dutch lower house of parliament. - Wilders has vowed to shut mosques, ban the Quran and close the country's borders.-He also wants to pull the country out of the European Union,-an institution that it helped found,-in a so-called Nexit. Rutte, seeking to lead The Netherlands for a third successive term, is a liberal free-marketeer championing this year's election on a pledge of safety and stability. Analysts said his uncharacteristically strong stand since the weekend in a diplomatic crisis with Turkey - when Dutch authorities expelled one Turkish minister while another was refused permission to fly into the country to attend a political rally - has boosted his image with voters. ""When people look for leadership, they look to me,"" Rutte told a final debate late on Tuesday. Final polls released late on Tuesday appeared to show Rutte pulling away from Wilders, crediting the VVD with coming top with 24 to 28 seats. Wilders was seen as slipping yet again and barely clinging on to second place with between 19 and 22 MPs. That would however still be well up on the 12 MPs his party has in the outgoing parliament. The Dutch pride themselves on their consensus politics, and reportedly it takes an average of three months of hard-bargaining to cobble together a coalition. Observers predict this time round however, four or even five parties may be needed to reach the 76-seat majority. READ MORE: Who votes for Geert Wilders? While traditional Labour has fallen sharply this year in the polls, the left-wing GroenLinks and its charismatic young leader Jesse Klaver are enjoying a huge boost. The 30-year-old Klaver said it was ""time for a new leadership"" and called for The Netherlands to welcome more refugees. He has boosted his party in the polls, and may win 16 to 18 seats, which could place him in a powerful kingmaker role. Following last year's shock Brexit vote, and Donald Trump's victory in the US presidential polls, the Dutch elections are being seen as a litmus test of the strength of far-right and populist parties ahead of other polls in Europe this year, namely in France and Germany. Source:-Al Jazeera and news agencies", -2379,2017/3/14,http://www.aljazeera.com/news/2017/03/donald-trump-tax-returns-170315002942279.html,Donald Trump's 2005 tax return leaked to media,"As US network obtains part of president's tax filings, White House says Trump paid $38m in taxes on $150m of income. 'That makes me smart' Questions remain","US President Donald Trump paid $38m in taxes on more than $150m of income in 2005, the White House has said,-acknowledging key details it previously refused to release. The revelation came as a response to an MSNBC report on Tuesday that the US broadcaster had obtained two pages of his returns.- MSNBC host Rachel Maddow said she received the documents from investigative journalist David Cay Johnston, who said on her show that he received them in the mail. READ MORE: Is there a 'deep state' trying to undermine Trump? Speaking to Al Jazeera, Johnston said-the $38m figure released by the White House included payroll taxes. When these are not taken into account, Trump's total 2005 federal tax bill was $36.5m, the investigative journalist said. According to the leaked pages of the tax return, Trump and his wife Melania paid $5.3m in regular federal income tax, and an additional $31m in the alternative minimum tax (AMT) - which the president wants to eliminate. ""If the alternative minimum tax had not been in effect in 2005, Trump would have paid only $5m -of tax on $183m of income - that tax rate is less than the tax rate paid by the poorest half of Americans"" Johnston said from New York. ""Trump, this very wealthy man ... wants a tax system where he would pay the same rate of tax as people who make less than $33,000 a year in America."" The returns showed Trump paid an effective federal tax rate of 25 percent in 2005 after writing off $100m in losses. The White House said in a statement that Trump took into account ""large scale depreciation for construction."" It said the former reality TV star, as head of the Trump Organization, had a responsibility ""to pay no more tax than legally required"". Trump's refusal to release his tax returns despite decades of precedent featured heavily in the 2016 presidential race. He said he could not release the filings as he was under audit.- Democrats hinted that by not releasing the documents, Trump may be trying to hide that he pays little to no tax, makes less money than he claims, or gives a negligible amount to charity. In January, Trump adviser Kellyanne Conway said the White House would not release the documents. Trump said his taxes are not of interest to the general public. ""You know, the only one that cares about my tax returns are the reporters,"" he said during a news conference after his January 20 inauguration. Ahead of the November election, The New York Times published what it said were leaked tax filings from 1995 that revealed a deficit big enough for Trump not to pay federal income taxes for up to 18 years. In the first presidential debate, when Trump's rival Hillary Clinton accused him of not having paid federal tax in years, he responded, ""That makes me smart"". Al Jazeera's Shihab Rattansi, reporting from Washington, DC, said that what many will be interested in is not Trump's 12-year-old tax return, but his potential conflicts of interest - specifically allegations that he has been receiving contributions from foreign governments that could influence policy. But ""any money that he's been making from foreign governments is unlikely to be in his personal income tax return, because he's got so many different corporations, limited liability companies and so on,"" Rattansi noted. He added that Tuesday's revelations could actually play out in Trump's favour.- ""The way MSNBC hyped it beforehand, and the skillful way the White House handled it, could bolster Trump's base, who'll say 'look, it's more fake news, there was nothing to see here'. ""Incidentally, at least for a while, it took the focus away from the controversy over the plan to replace the Obamacare system that will leave millions of people without healthcare coverage."" The White House lashed out at MSNBC over the leaks. ""You know you are desperate for ratings when you are willing to violate the law to push a story about two pages of tax returns from over a decade ago,"" it said in a statement. Source:-Al Jazeera and news agencies", -2380,2017/3/15,http://www.aljazeera.com/news/2017/03/ahlam-aref-ahmad-al-tamimi-fbi-wanted-list-170314223916414.html,Ahlam Aref Ahmad al-Tamimi on FBI's Most Wanted list,US charge against Ahlam Aref Ahmad al-Tamimi stems from a 2001 bombing at Jerusalem restaurant that killed 15. 'Will never forget',"The FBI has placed a Jordanian woman who assisted in the 2001 suicide bombing of a Jerusalem restaurant on its ""Most Wanted Terrorist"" list. The US case against Ahlam Aref Ahmad al-Tamimi was filed under seal in 2013 but announced publicly by the justice department on Tuesday. The charge against al-Tamimi stems from an August 9, 2001, bombing at a Sbarro pizza parlor that, in addition to killing 15 people, also injured roughly 120 others. Two of those killed were US nationals. After her capture, Tamimi, now in her mid-30s, pleaded guilty at trial in Israel and was sentenced in 2003 to 16 life prison terms. The criminal complaint unsealed on Tuesday charged al-Tamimi, who worked as a journalist at a television station in the occupied West Bank, with conspiring to use a weapon of mass destruction outside the US against US nationals. Federal prosecutors accuse her of having agreed in the summer of 2001 to carry out attacks on behalf of the military wing of the Palestinian Hamas movement and having travelled with the restaurant bomber to Jerusalem. Prosecutors say she instructed the bomber to detonate the explosive device, which was hidden in a guitar, in the area. Al-Tamimi was freed from prison in 2011 as part of a prisoner exchange between Israel and Hamas. She was returned to Jordan, and though the justice department says it is working to bring her into custody, Jordanian courts have said their constitution does not allow for the extradition of Jordanian nationals. ""This is the first time the US government has attempted to achieve the extradition and prosecute someone involved in a Palestinian attack against the Israeli occupation,"" Al Jazeera's Shihab Rattansi, reporting from Washington, DC, said. ""There have been civil wrongful death suits filed by relatives of Americans killed but this is the first time the government is taking such action."" Mary McCord, the acting head of the justice department's national security division, called al-Tamimi an ""unrepentant terrorist"". ""The charges unsealed today serve as a reminder that when terrorists target Americans anywhere in the world, we will never forget - and we will continue to seek to ensure that they are held accountable,"" McCord said. Al-Tamimi faces a possible execution or life in prison if she is captured, tried and convicted in the US. Source:-Al Jazeera and news agencies", -2381,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/palestinian-diaspora-world-return-170313090704251.html,Palestinian diaspora world's apart over return Ali Younes,"Istanbul conference with Palestinians from around the globe failed to reach any consensus on way forward to Palestine. By 'Never relinquish' Rhetoric of nationalism Process of empowerment Case of Latin America 'With hearts, not brains'","With the two-state solution to end the Middle East's long-running conflict between Israel and the Palestinians teetering on the brink of collapse, thousands of members of the Palestinians diaspora converged on the Turkish city of Istanbul last month to discuss and debate what the future holds for them. The gathering was the first time Palestinian diaspora had attempted, since their displacement many decades ago, to organise a global group to demand an end to what they saw as concessions made by the political leadership based in Ramallah in their name that favour Israel and demand the right to return to Palestine. The final statement of the two-day conference demanded the right of return of millions of refugees and their descendants to what is now Israel. READ MORE: Palestinian diaspora creates new political entity Israel views this demand as beyond consideration because it would, for all practical purposes, undermine its founding principle as a state created for the Jewish people, albeit by displacing native Palestinians. However, the Palestinian diaspora is hardly monolithic when it comes to the question of whether Israel should continue to exist largely as a Jewish state, with views differing almost as widely as the present geographical addresses of the conference attendees. The Istanbul conference provided clear proof that each diaspora community, having through a particular existence whether as stateless refugees or citizens of a state, has developed its own discourse that revolves around its collective experience of citizenship, displacement, and life in refugee camps. Mohamad Dalbah, a Palestinian journalist, said the final statement was the proper representation of the feelings of many refugees and was fully warranted. In his view, Palestinians should never relinquish their claim to their lost country because ""Palestine is not moving anywhere."" ""Israelis will not be able to put Palestine in a suitcase and take it away to Europe or America for example,"" he told Al Jazeera. Dalbah's argument cannot be fully appreciated without understanding how people like him ended up either as members of the diaspora or as inhabitants of Israeli-occupied territories, rather than as citizens of a sovereign Palestinian state. Dalbah, who immigrated to the US in the 1980s, says the land of Palestine will remain intact even if it is populated and controlled by Jews. He strongly opposes any compromise with Israel that does not include the return of all of the refugees to historic Palestine. He also accuses the leaders of the Palestinian Authority in Ramallah of giving away Palestinian rights and ending up empty-handed. The Istanbul diaspora conference highlighted the fact that Palestinians who live in Arab countries, whether as refugees or citizens, tend to positions and favour language that evoke memories of Palestinian nationalism in Palestine dating back to the 1930s and '40s. According to one school of opinion, Palestinians raised in the Arab world and living in countries that are authoritarian or oppressive tend to avoid self-critical thinking rooted in free expression and free speech. They embrace the safer views of the larger society that reflect the official government line or the viewpoint of the authorities. In Lebanon, Palestinian refugees live in poverty-stricken refugee camps since 1948 and are not allowed to hold decent jobs, not to mention freedom of movement. Syrian Palestinians are treated by the state like any normal Syrian citizen. In Jordan, however, Palestinians are full citizens. Whether they live in Amman or in refugee camps, they enjoy equal standing like any other Jordanian citizen not of Palestinian descent. [Most Palestinians gained citizenship when Jordan annexed the West Bank after the 1948 war with Israel.] That said, the history of Palestinian displacement is not the same as the history of Palestinian immigration. Most of the Palestinian diaspora currently outside the Middle East migrated during the Ottoman period, and the overwhelming majority of them were Christians. They did not suffer the trauma of displacement or having to lead lives according to the dictates of Middle Eastern authoritarian and dictatorial regimes. ""In the West, Palestinians have extensive experience in free expression and the expression of opinions that may contradict the views of the larger societies or the government,"" Ray Hanania, a Palestinian American journalist who was born and raised in Chicago, told Al Jazeera.- ""That makes them more likely to entertain solutions to challenges, engage more freely in the leadership of a community, and play more active roles in Western governments.""- Hanania, whose family moved to the US and South America as immigrants at the turn of the 20th century, draws heavily on his own experience as a frequent critic of US policies in the Middle East to join issue with what he calls the uncompromising tone of the Istanbul statement. Hanania, who supports a two-state solution and a fair compromise between Palestinians and Israelis, was not invited to attend the diaspora conference. His argument is that the current international and regional balance of power is not favourable to the Palestinian cause, and therefore Palestinians should not push for a zero-sum- game formula - that is demand ""everything or nothing"". ""Palestinians have made historic mistakes by relying on Arab states that did not have the Palestinian best interests in mind, and not compromising with the Zionist movement when it was still possible,"" Hanania said. ""As a result Palestinians have got what they have asked for: nothing."" It also became clear at Istanbul that the differences in the political philosophies of the Western and Middle Eastern Palestinian diaspora communities are not the product of some kind of an East-West divide. Many of the Palestinian activists in Europe and the US, for example, are recent immigrants who, while physically operating in the West, are closer to the Middle East in a political and cultural sense. Could this be the reason the Palestinian American immigrant community has not fared too well in influencing US foreign policy vis-a-vis the Middle East? The answer is not clear-cut but a link cannot be ruled out of hand. ""It's still a struggle sometimes, especially in Western nations where Israel maintains strong lobbying and exercises political intimidation,"" Hanania told Al Jazeera. ""But in Latin America, where Israel's influence is less, the Palestinian diaspora has been able to assert its influence to the full extent."" In this context, it is worth noting that the Palestinian diaspora narrative in Latin America does not revolve around nationalism and displacement as it is the case in the Middle East. It is a very different kind of experience that centres on integration and empowerment. Numbering in the hundreds of thousands, Latin American Palestinians represent the largest population of Palestinians outside the Arab world. READ MORE: Chile: Palestinians gather to forge unified diaspora Together with Honduras, Chile has the most organised Palestinian diaspora community in the world. Since the late 1800s, Chileans of Palestinian descent have demonstrated their support for the Palestinian cause by becoming successful members of the Chilean society. The result is a well organised, prosperous community with as many as 14 members of the Chilean parliament and a top professional football club founded in 1920 called ""Palestino"". Dr Miguel Lama, a third-generation Palestinian Chilean professor of heart surgery who attended the Istanbul conference, said the-Palestinian community in Chile does not question the existence of Israel the way some Middle Eastern Palestinian groups do. Lama, whose father was also a professor of surgery, said the statements that came out of the Istanbul conference, as well-meaning as they may have been, were ""made with hearts, not brains"". Lama wonders if the differences on display at the conference could be due to the fact Latin American Palestinians tend to be much more established in various ways and politically empowered than their fellow Palestinians in Arab states. He admits that the fourth- and fifth-generation Chilean and Latin American Palestinians are much more passionate about the Palestinian cause in comparison to their parents or grandparents. Nevertheless, he believes Palestinians have to be ""realists"" and work with they have to establish their independent sovereign state on any part of historic Palestine. ""We have to work with reality,"" he told Al Jazeera. ""Otherwise, we will be going backward."" Follow Ali Younes on Twitter:- @ali_reports Source:-Al Jazeera", -2382,2017/3/15,http://www.aljazeera.com/blogs/americas/2017/03/trump-wiretapping-deep-state-theory-170314201722090.html,,,"They call it the ""shadow government"" or ""deep state"": the idea that a parallel, hostile group of ex-White House officials and state actors are secretly undermining US President Donald Trump's government. In the past, such theories would remain on conspiracy websites, conservative radio talk shows or pop up in tweets from questionable accounts. But with Trump's recent tweets accusing former president Barack Obama of spying on him during the election campaign, the theories have been given new life and to some, credibility. ""Terrible! Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory. Nothing found. This is McCarthyism!"" Trump tweeted from his Mar-a-Lago resort in Florida in the early hours of March 4. He later accused Obama of being a ""Bad (or sick) guy"". Obama's spokesman denied the charge but the wiretapping claim has triggered debate and a Congressional investigation. On Friday, White House Press Secretary Sean Spicer was asked point blank if he believes in the so-called deep state. ""I don""t think it should come as any surprise that there are people that burrowed into government during eight years of the last administration, and may have believed in that agenda and want to continue to seek it,"" he told reporters. Spicer was undoubtedly referring to people like Mike Morrell, former acting director of the CIA, Leon Panetta, former defense secretary and Eric Holder, former US attorney general. All served under Obama. They made up a group of former high-ranking intelligence, military and White House officials who backed Hillary Clinton as the Democratic presidential nominee last year and would certainly have access to the massive federal bureaucracy that Trump has inherited. One of the biggest proponents of the deep state theory is conservative radio show host Mark Levin. Less than two days before Trump's tweetstorm of accusations about Obama, Levin argued that rather than looking into the ongoing allegations of Russia's influence over the Trump presidential campaign, the US government needed to pay attention to a ""much bigger scandal"". In that show he stated that Obama and supporters of Clinton were ""using the instrumentalities of the federal government, intelligence activities, to surveil members of the Trump campaign"". WATCH: The two faces of Donald Trump In separate interviews, Levin has cited media reports on requests for wiretapping warrants by the FBI, the Office of the Director of National Intelligence (ODNI) and the CIA to look into ties the Trump campaign had with the Russian government. One New York Times article,-in particular, is the centrepiece of Levin's argument. On January 19, the paper reported on the investigation into a possible Russian connection. ""One official said intelligence reports based on some of the wiretapped communications had been provided to the White House,"" the article stated. Ned Price worked for the National Security Council (NSC) for the last three years of the Obama administration. As an official at the NSC, he says the only wiretapping information that would have been provided to them would have been anything related to US foreign policy. He wouldn""t discuss whether any information related to the overall Russian investigation was given to them. Prior to his NSC job, Price worked at the CIA for eight years. He calls any suggestion of a secret government ""delusional"" and an insult to ""the men and women who have devoted their lives to their country"". When he worked for the CIA, he says, he ""never knew if the person sitting next to me was a Republican or a Democrat"". Instead, Price argues the Trump administration is fuelling the deep state idea as a distraction away from the ""growing plume of smoke"" tying his White House to Russia. ""Anything they don't like, they label as fake or conspiratorial or a byproduct of a shadowy deep state,"" he adds. Still, there are people who believe the deep state is not only real but has a location. Jack Burkman, Republican strategist and Trump backer, told Al Jazeera recently that the shadow government has set up ""two miles from the White House"". He would not specify the exact location. Some groups want the Trump administration to take action. ""All politically-motivated deep state shadow operatives must be rooted out of our government, exposed to public disgrace, and banned from ever entering the federal government again,"" Patrick Crowley of the pro-Trump America First Project recently wrote on The Daily Caller. Jesselyn Radack blew the whistle on human rights violations within the US justice department during the administration of George W Bush. ""There are parts of the intelligence community that works in the shadows,"" she says. It's the nature of what they do. But any notion they are colluding together against Trump ""seems unlikely"", she adds. There's simply too much competition within the agencies themselves. ""The idea that there is this monolithic deep state is belied by their own infighting."" Radack also questions Trump's wiretapping claim. ""It would have operated in secrecy so I'm not sure how Trump would be aware of it,"" she points out. Spicer seemed to at least try to answer that question this week when he told reporters, ""I think that there has been numerous reports from a variety of outlets over the last couple months that seem to indicate that there has been different types of surveillance that occurred during the 2016 election."" Follow Chris Sheridan on Twitter: @ChrisSheridan34 Source:-Al Jazeera News", -2383,2017/3/15,http://www.aljazeera.com/news/2017/03/mexico-250-skulls-veracruz-mass-graves-170314191915658.html,Mexico: Over 250 skulls found in Veracruz mass graves,State prosecutor says more remains of drug cartel victims to be likely found from clandestine burial pits in Veracruz. Government 'inaction',"The top prosecutor in Mexican state of Veracruz has confirmed that more than 250 skulls have been dug up in what appears to be a drug cartel mass burial ground on the outskirts of the city of Veracruz. Jorge Winckler, the state prosecutor, said on Tuesday that the clandestine burial pits appear to contain the victims of drug cartels killed years ago. ""For many years, the drug cartels disappeared people and the authorities were complacent,"" Winckler said, in apparent reference to the administration of fugitive former Governor Javier Duarte and his predecessors. In an interview with the Televisa network, Winckler did not specify when the skulls were found or by whom. READ MORE: Getting away with murder in Mexico On Monday, when the discovery was first reported in this southeastern state, Winckler said investigators were likely to find more remains. But they appear to have been found over the course of months. Victims' advocacy groups like Colectivo Solecito have excavated and pressed authorities to excavate such sites to find missing loved ones. The skulls and other bones were found in a wooded area known as Colinas de Santa Fe, where activists have been exploring since at least mid-2016, sinking rods into the ground and withdrawing them to detect the telltale odor of decomposition. When they find what they believe are burial pits, they alert authorities, who carry out the final excavations. Winckler said excavations have covered only a third of the lot where the skulls were found, and more people may be buried there. ""I cannot imagine how many more people are illegally buried there,"" Winckler said, noting that the state has reports of about 2,400 people who are still missing. ""Veracruz is an enormous mass grave,"" he said. The victims' advocacy groups have criticised authorities for doing little to try to find or identify the state's missing people, many of whom were kidnapped and never heard from again. Al Jazeera's John Holman, reporting from Mexico City, said that one mother of a missing person told him that her family received ""very little help"" from state authorities in finding her son. -- ""Veracruz is a real epicentre in the violence that is being felt through various areas of Mexico,"" he said. Our correspondent also reported that the country's top prosecutor has yet to take action on the latest discovery, adding that federal authorities are ""keen to sort of dampen down talk about the violence being suffered in the country"". Veracruz had long been dominated by the ferocious Zetas cartel. But the Jalisco New Generation cartel began moving in around 2011, sparking bloody turf battles. Drug cartels in other parts of Mexico have deposited victims' bodies in mass graves before. In the northern state of Durango, authorities found more than 300 bodies in a clandestine mass grave in the state capital in excavations starting in April 2011. More than 250 bodies were discovered in April 2011 in burial pits in the town of San Fernando, in Tamaulipas state, close to the US border. Drug gangs in some places in Mexico have taken to burning or dissolving their victims' bodies in corrosive substances in order to avoid discovery. But the victims in Veracruz appear to have been buried relatively whole. Source:-Al Jazeera and news agencies", -2384,2017/3/14,http://www.aljazeera.com/news/2017/03/iraqi-forces-kill-isil-commander-mosul-170314165439232.html,Iraqi forces kill ISIL commander in Mosul,"Government soldiers try to retake strategic bridge in ISIL-held western Mosul, but snipers slow the advance. Fleeing civilians","Iraqi forces said they killed the commander of Islamic State of Iraq and the Levant (ISIL) in Mosul's Old City as the battle for the group's last stronghold in the country focused on a strategic bridge crossing the Tigris River. Federal police said they killed Abu Abdul Rahman al-Ansary, military commander of the Old City, during operations to clear Bab al-Tob district. With many ISIL leaders having already retreated from Mosul, Ansary's death comes as a blow to the group as it defends shrinking control of Iraq's second-largest city. READ MORE: Iraq forces hit stiff resistance in Mosul's Old City ISIL snipers, however, were slowing the advance of special forces units on the Iron Bridge linking western and eastern Mosul, officers said. Capturing the Iron Bridge would mean Iraqi forces will hold three of the five bridges in Mosul that span the Tigris, all of which have been damaged by ISIL (also known as ISIS) and US-led air strikes. The southernmost two have already been retaken. ""We are still moving toward the Iron Bridge. We are taking out snipers hiding in the surrounding building,"" Brigadier-General Mahdi Abbas Abdullah told Reuters news agency. Near the Mosul Museum, Iraq forces used armoured vehicles and tanks to attack snipers pinning down troops clearing areas around the bridge. As fighting intensified on Tuesday, civilians streamed out of western neighbourhoods recaptured by the government. Some pushed children and sick elderly relatives in handcarts and wheelbarrows. Soldiers packed them into trucks on the Mosul-Baghdad highway to be taken to processing areas. Ashraf Ali, a nurse who escaped with his wife and two children, said mortar rounds were falling as they fled. They took advantage of the army retaking their district to get out. ""Daesh wanted us to move to their areas but we escaped when the army arrived,"" he said, referring to the Arabic name of ISIL. As many as 600,000 civilians are caught inside Mosul, which Iraqi forces have effectively sealed off from the remaining territory that ISIL controls in Iraq and Syria. More than 200,000 Mosul residents have been displaced since the start of the campaign in October. Iraq's Ministry of Immigration and Displacement said on Tuesday almost 13,000 displaced people from western Mosul had been received seeking assistance and temporary accommodation each day. Losing Mosul would be a major strike against ISIL. It is by far the largest city ISIL have held since their leader, Abu Bakr al-Baghdadi, proclaimed himself leader of a caliphate spanning Iraq and Syria in the summer of 2014. Source:-Reuters news agency", -2385,2017/3/14,http://www.aljazeera.com/news/2017/03/astana-talks-marred-syrian-armed-opposition-boycott-170314165629045.html,Astana talks marred by Syrian armed opposition boycott,"Days after a high-level meeting between Russia and Turkey, Syria's armed opposition refuse to attend new round of talks.","Istanbul, Turkey---The first day of the Astana talks on the six-year-old Syrian war wrapped up without the participation of the armed opposition. Mohamed Aloush, head of the Syrian opposition delegation at the first round of talks, told Al Jazeera the decision to boycott was taken because their demands were not being addressed. ""The Russians did not abide by their promises. They didn't release prisoners, they didn't stop the bombing, they didn't stop the forced displacement,"" Aloush-said. Abdul Majeed Barakat - political adviser to the Free Syrian Army (FSA) factions involved in the Turkey-backed Euphrates Shield Operation in northern Syria - told Al Jazeera the opposition was not clear on what the plans were for this round of talks in Kazakhstan's capital - and Turkey didn't push it to attend. ""The Turks did not really encourage the participation [of the opposition]. They didn""t stop it, but they didn't encourage it either,"" said Barakat. Commenting on the boycott, Russian Foreign Minister Sergey Lavrov said the reasons the opposition offered were ""unconvincing"". He said the no-show was ""unexpected"", and on Monday he talked with his Turkish counterpart, Mevlut Cavusoglu, about it. ""We have reason to believe that there is some kind of a misunderstanding. In any case, the Astana meeting will proceed along the way which was outlined in the UNSC resolution 2254,"" he told journalists at a press conference in Moscow. READ MORE: Six years on, The price of saying 'NO' to Assad In Astana, Syrian government envoy Bashar al-Jaafari blamed Turkey for the opposition boycott. ""When one of the three guarantors breaks their commitment - and I mean Turkey - this means that Turkey must be the one that is asked about the non-attendance or participation of these armed groups,"" al-Jaafari said. Turkey's delegation headed by deputy undersecretary of the ministry of foreign affairs Sedat Onal is attending the discussions, which are scheduled to end on Wednesday. According to Emre Ersen, a lecturer at Marmara University's Department of Political Science and International Relations in Istanbul, the opposition boycott has to do with disagreements between Russia and Turkey on Syria. ""It is related to the current rift between Turkey and Russia regarding Manbij. They couldn't overcome their differences in the latest Putin and Erdogan meeting,"" Ersen-told Al Jazeera. Turkey's President Recep Tayyip Erdogan met with his Russian counterpart Vladimir Putin on March 10 in Moscow. During the meeting, Erdogan made it clear that Turkey expected Russia to end ties with Kurdish armed groups such as the People Protection's Unit (YPG) that it considers a ""terrorist"" organisation. INTERACTIVE: Syria under siege The US-backed Syrian Democratic Forces (SDF), which include the YPG, recently gave up territory in favour of Syrian government forces west of the city of Manbij, in northern Aleppo province. Shortly after, Russia announced its presence in the city. US troops, which provide logistical support and training to the SDF, were also present in the Manbij area. SDF's withdrawal in favour of the Syrian forces effectively stopped the progress of Turkey's Euphrates Shield Operation against Islamic State of Iraq and the Levant (ISIL). According to Ersen, the refusal of the armed opposition to join the talks in Astana is a way for Ankara to suggest its dissatisfaction with the current situation in northern Syria. The move, however, could endanger the normalisation in Russian-Turkish relations. ""[The opposition's boycott] might create a problem for Russia in terms of its influence in the Syria peace process. Astana actually symbolises Russia's dominance in the Syrian question, because it excludes the United States,"" Ersen said. ""It is the Russian plan. If it fails, if it is undermined because of this, it will definitely create a bigger problem between Turkey and Russia."" The opposition's no-show at Astana came a week after the fourth round of negotiations in Geneva ended with almost no progress. A new round of talks in Switzerland is scheduled for March 23. Source:-Al Jazeera News", -2386,2017/3/14,http://www.aljazeera.com/news/2017/03/putin-approves-army-deal-georgia-south-ossetia-170314154927196.html,Putin approves army deal with Georgia's South Ossetia,Russian president seeks to incorporate some military units of the breakaway region into the Russian army.,"Russian President Vladimir Putin has approved the government's proposal to integrate some military units of Georgia's breakaway region of South Ossetia into the Russian army. The order announced on Tuesday is likely to spark accusations from Georgia and its Western allies that the Kremlin is absorbing the region into Russia by stealth, even though under international law it is part of Georgia's sovereign territory. Russia recognised South Ossetia as an independent state in 2008 after fighting a short war with Georgia. Moscow has de facto controlled South Ossetia - a sliver of mainly mountainous land in the northeast of Georgia - for years. But it has, on paper at least, treated it as a separate state, not part of Russia. Putin instructed the Russian defence ministry to sign a military agreement with South Ossetia on Moscow's behalf, according Ria Novosti and Tass news agencies, which cited information published on the government's website on Tuesday. The deal would allow the Russian military to recruit South Ossetian soldiers as contractors, but they would first have to be dismissed from active duty by South Ossetia, reported Tass. Leonid Tibilov, the de-facto leader of South Ossetia, said last year the self-declared republic would retain its army while part of its military would serve in the Russian armed forces. ""Transfer of some units of South Ossetian Armed Forces into the Russian army is at variance with the Russian legislation,"" Tibilov-was quoted as saying by Tass. He also said it was not yet clear how many military servicemen would go into Russian units. The Georgian government issued a statement condemning Russia's move, saying the decision was ""one more obvious step towards de facto annexation of South Ossetia"". ""We call on the international community to assess in a proper way the so-called agreement and to demand that Russia fulfils international obligations,"" the statement said. Georgia says it wants South Ossetia and Abkhazia, another breakaway region, back. Source:-Al Jazeera and news agencies", -2387,2017/3/14,http://www.aljazeera.com/news/2017/03/kenya-doctors-strike-deal-government-170314084246054.html,Kenya doctors end strike after deal with government,Thousands of physicians call off 100-day strike over pay and working conditions after dozens died without care.,"Thousands of doctors working in Kenya's public hospitals have agreed to end a 100-day strike after reaching a deal with the government on Tuesday that aims to address their grievances. More than 5,000 health workers-calling for nearly a 300 percent hike in pay went on strike in December, but it was not clear how much of their demands were accepted. The government and union officials signed a deal to address pay and other issues in dispute, said Dr Ouma Oluga, secretary-general of the Kenya Medical Practitioners, Pharmacists and Dentists Union. Oluga said the biggest achievement in the agreement is that doctors now will work just 40 hours a week and will be compensated for extra hours. Previously, doctors in public hospitals were on call at all times. ""It's a win-win for everybody,"" Oluga said. Kenya's public doctors, who train for six years at universities, earn a basic salary of just $400-$850 a month. ""It is regrettable that it took so long. Kenyans have suffered... We cannot fathom the extent of pain which Kenyans felt in the 100 days,"" said Kenya's Health Minister Cleopa Mailu. Dorcas Kiteng'e: A victim of Kenya's doctors' strike Dozens of people died during the strike as the majority of Kenyans cannot afford private health care. The doctors pushed for the implementation of a 2013 collective bargaining agreement that committed the government to increase pay and restore dilapidated public health facilities, among other issues. It also set out measures to address the East African country's huge shortage of doctors. The government said it does not recognise the 2013 agreement. The Kenyan government on Friday started cracking the whip on the striking doctors by firing them en masse for missing work without reason and taking part in an illegal strike. The government withdrew a 50 percent pay raise offer among other benefits that were meant to woo the doctors back and warned it will not ""succumb to threats and intimidation"". It ordered them to resume work or face disciplinary action. Al Jazeera's Catherine Soi, reporting from a missionary hospital in Nairobi, said the healthcare situation is dire. ""The impact of the strike is very severe. Hospitals are overwhelmed. Beds are packed end to end. Hundreds of patients are lining up to be treated,"" Soi said. The strike comes amid fierce criticism of the government of President Uhuru Kenyatta, who is seeking re-election in August when the East African nation holds presidential and parliamentary elections. Lawmakers are investigating allegations that tens of millions of dollars have gone missing from Kenya's Ministry of Health and the National Youth Service. Source:-Al Jazeera and news agencies", -2388,2017/3/14,http://www.aljazeera.com/news/2017/03/iom-525-refugees-die-sea-weeks-2017-170314115725176.html,IOM: 525 refugees die at sea in first few weeks of 2017,"Number of drowned in Mediterranean from January to early March higher than last year, raising alarm among rights groups. 'EU should focus on search and rescue'","More refugees have died in the Mediterranean over the first nine weeks of this year compared with the same period in 2016, according to the International Organization for Migration (IOM). From January 1 to March 9, at least 521 people drowned while attempting to cross the treacherous sea compared with 471 in the same period a year ago. At least another four refugees died on Friday, bringing the 2017 death toll to 525 people, according to IOM. The figures raised alarm on Tuesday among human rights organisations, which have repeatedly called for safer passages. The rising deaths came as the number of people making the dangerous crossing from Libya more than doubled, with 13,439 arriving in Italy compared with 5,273 a year earlier. IOM spokesman Flavio Di Giacomo said most migrants leaving Libya came from Guinea, Nigeria, Cote d'Ivoire, and Bangladesh. READ MORE: 2016 - The year the world stopped caring about refugees Judith Sunderland, associate director for Europe at Human Rights Watch (HRW), told Al Jazeera it was possible that a rush effect was fuelling more crossings, with many panicked over new policies between Libya, Italy and the EU aimed at stemming the flow. In February, EU leaders inked a deal to give 200m euro ($215m) to Libya's fragile government to stop migrant boats in the country's territorial waters. ""One interpretation is that smugglers and migrants are really in a rush to try and get people across the sea before those measures, before a clampdown, Sunderland said. Along with impending border control efforts, refugees were subject to increasingly cruel treatment by smugglers, including being packed into flimsier boats, Sunderland said. ""Conditions are ripe for more tragedies at sea."" In March 2016, the Balkan route was permanently shut, trapping tens of thousands of asylum seekers in Greece and slowing Aegean Sea crossings to a trickle. The route between Libya and Italy remains busy. One of the EU's concerns, said Sunderland, is ensuring refugee boats do not enter international waters because then European vessels are obligated to bring those on board to Europe. ""Certainly we believe that migration cooperation with Libya is deeply problematic,"" she said. ""[The EU] should be doing a lot more to get people out of Libya in a safe way and a lawful way so they don't have to risk their lives to do so... Clearly, they're not keen to do that."" Over the past three years, the number of refugees who died at sea has risen sharply. In 2016, more than 5,000 people lost their lives at sea - an annual record - as they took on perilous journeys to escape war, poverty, and persecution - often all three. In 2015, some 3,771 refugees died while crossing the Mediterranean, up from 3,279 deaths the year before. ""We believe that the EU should continue to focus on search and rescue ... rather than trying to prevent their flight from the dangers and violence they endure [in Libya],"" said Elisa De Pieri, a Europe researcher at Amnesty International. ""It is clear that from Libya we are seeing a mixed flow of refugees and migrants escaping extreme poverty. The main problem is that there are no safe and legal routes into Europe neither for refugees nor for migrants,"" said De Pieri. WATCH: Migrant dreams - Bangladeshi workers in Singapore A rising number of Bangladeshi refugees are trying to reach Europe, according to the latest IOM data. IOM field staff spoke with some of the 1,303 Bangladeshis who disembarked at landing points in Sicily and Apulia in Italy. From Bangladesh, some said they travelled by air to Dubai, Turkey and then Libya, from where they attempt the sea crossing. Along with a payment to ""agents"" for a working visa, the total journey cost is between $14,000 and $15,000. Others had already been living and working in Libya for more than one year, and were apparently fleeing the country's instable economy and security situation. According to UN figures, more than 40 percent of Bangladesh's population lives below the international poverty line of $1.25 per day. A common argument against allowing economic migrants is that they do not face physical danger from war or conflict. ""[But] under international law, refugees' claims should be examined individually on their merit. People can be subjected to persecution in any country,"" said-De Pieri. HRW's Sunderland also warned against ""blanket categorisation about people from Bangladesh as economic migrants without protection needs"". ""In every case, everybody should have a fair chance to have individual circumstances examined,"" said Sunderland. ""We hope that we will have leaders who put human rights concerns at the heart. [But] it's hard to remain hopeful given the climate of Europe. We are seeing the doors slamming shut even more."" Follow Anealla Safdar on Twitter: @anealla Source:-Al Jazeera News", -2389,2017/3/14,http://www.aljazeera.com/news/2017/03/khalifa-haftar-forces-capture-key-libya-oil-terminals-170314155659506.html,Khalifa Haftar forces capture key Libya oil terminals,East-based forces claim they have regained control of two oil installations of Ras Lanuf and Es Sider from rival forces. Escalation of violence,"Forces loyal to renegade Libyan general Khalifa Haftar say after heavy fighting they have regained control of the major oil ports of Ras Lanuf and Es Sider in the volatile eastern part of the country, weeks after it was captured by a rival faction. Ahmed al-Mismari, spokesman of Haftar's Libyan National Army (LNA), told Reuters news agency the eastern-based armed group had taken back the ports from the Benghazi Defence Brigades (BDB). LNA forces were moving towards the town of Ben Jawad, about 30km west of Es Sider, to face off with BDB forces, al-Mismari said. Al Jazeera's Mahmoud Abdelwahed, reporting from Tripoli, said-Benghazi Defence Brigades' sources confirmed-reports that the ports were lost and its fighters were under attack. ""They finally managed to retake the two terminals, they are still bombarding the Benghazi Defence Brigades along the coast,"" said Abdelwahed. ""Haftar's forces have been using advanced missile systems to target their positions."" BDB's advance on Es Sider and Ras Lanuf on March 3 set off a fresh round of fighting for control of the ports in Libya's Oil Crescent, a strip of coast southwest of Benghazi, raising fears of an escalation of violence and a reversal for the OPEC member state's efforts to revive its oil output. Libya-splintered into rival political and armed groupings after the uprising that toppled Muammar Gaddafi in 2011. It remains deeply divided between factions based in the east and west that back rival governments and parliaments. Haftar, who is aligned with the eastern parliament and government, has been fighting a two-year military campaign with his LNA forces against armed groups in Benghazi and elsewhere in the east. READ MORE: Benghazi Defence Brigades claim seizing Libyan cities BDB is composed partly of fighters who were ousted from Benghazi by the LNA. Meanwhile, US and security sources on Tuesday told Reuters that Russia has deployed special forces and unmanned drones at Sidi Barrani, about 100km from the Egypt-Libya border, adding any such Russian deployment might be part of an effort to support Haftar. The reports were later denied by both Moscow and Cairo. Back in January, Haftar was given a tour of a Russian aircraft carrier in the Mediterranean, according to Russian media reports, a show of Kremlin support for the faction leader who opposes Libya's UN-backed government. The latest fighting around the terminals has raised the prospect of a new escalation of violence and put at risk a sharp boost to Libya's oil production achieved after the LNA took over four ports in September, ending a blockade at three of them. Though Es Sider and Ras Lanuf have been reopened for exports, they were badly damaged in past fighting and are operating well below capacity. READ MORE: Will losing oil ports end Haftar's power? ""Haftar claims to control most of the eastern part of Libya around Benghazi,"" Oliver Miles, former British ambassador to Libya, told Al Jazeera last week. ""But, control is a loose word. He's been fighting for a long time to deal with them and it has taken a long time time to clear them up. He's repeatedly said they've dealt with the problem but they keep reuniting."" Libya's oil production has recently been fluctuating around 700,000 barrels per day (bpd), more than double its output last year but still well under the 1.6 million bpd the OPEC member was producing before a 2011 uprising. Source:-Al Jazeera and news agencies", -2390,2017/3/14,http://www.aljazeera.com/programmes/insidestory/2017/03/egyptians-change-170314174354272.html,Do Egyptians still want change?,"A court in Egypt has ordered the release of former president Hosni Mubarak, after he was acquitted over 2011 killings.","Six years after an uprising that toppled him, Egypt's former president Hosni Mubarak will now walk free. On Monday, a prosecutor ordered his release from a military hospital prison.- This was just days after an appeals court acquitted him of ordering the killing of protesters during the 2011 uprising. Mubarak served as Egypt's president for nearly three decades, but many viewed him as an autocratic leader who crushed dissent and embezzled millions of dollars for himself and his family. So, what does this decision to set Mubarak free mean for the millions who revolted against him? Presenter: Hazem Sika Guests: Samer Shehata - Associate Professor of Middle Eastern Politics in the Department of International and Area Studies at the University of Oklahoma Timothy Kaldas - Non-Resident Fellow at Tahrir Institute for Middle East Policy Mohamed Soltan - A former political prisoner in Egypt and a Human Rights Advocate Source:-Al Jazeera News", -2391,2017/3/14,http://www.aljazeera.com/news/2017/03/francois-fillon-charged-fake-jobs-scandal-170314151732235.html,Francois Fillon charged over fake jobs scandal,Right-wing candidate charged following reports his family was paid hundreds of thousands of dollars from public purse.,"France's right-wing presidential candidate Francois Fillon has been charged with several offences over a fake jobs scandal that-has seriously damaged his chances of winning April's-closely-contested-election. His lawyer Antonin Levy told AFP news agency on Tuesday that Fillon was charged with-misuse of public funds-and-misuse of corporate assets. The charges stem from an investigation his wife and children were paid hundreds of thousands of dollars of taxpayer money for work they didn't actually perform. Following an investigation by the-weekly newspaper-Canard Enchaine,-the 63-year-old presidential candidate admitted in January to employing his wife, Penelope, and two of their children as parliamentary assistants. Penelope earned about-680,000 euros-($730,600)-between 1986 and 2013-while working as a legislative staff member. Despite the scandal causing a deep rift within his The Republicans party,-Fillon has vowed to continue, calling the investigation an attempted ""political assassination"". READ MORE: Why the French elections will change the face of Europe Once a front-runner, Fillon has seen his popularity drop following successive waves of revelations in French newspapers. The allegations over the allegedly illusory jobs have been particularly damaging to his campaign because Fillon used to tout his reputation for probity. Independent centrist candidate Emmanuel Macron has since overtaken Fillion in pre-election polls, increasingly appearing as the new frontrunner. Polls suggest Macron will beat Marine Le Pen in the decisive second round on May 7 - but after Donald Trump's victory in the United States and Britain's vote to leave the European Union, analysts caution against predictions. Source:-News agencies", -2392,2017/3/14,http://www.aljazeera.com/news/2017/03/philippines-patrol-benham-rise-assert-rights-170314140519782.html,Philippines to patrol Benham Rise to assert rights,Chinese 'survey ships' were recently sighted in the 13-million hectare area the UN says belongs to the Philippines. 'Sovereign rights',"The Philippines will send military patrols and survey vessels to a large underwater land mass in the Pacific Ocean to assert its rights over the area after Chinese ships were spotted there. The vessels will travel to Benham Rise, 250km off the Philippines' northeastern coast, Defence Secretary Delfin Lorenzana announced on Tuesday. ""We will send our patrols and then we will study what we can put there to exploit also the resources,"" Lorenzana-told reporters. ""We will continue to study what will be the best way to develop that area for our needs. We are entitled to all the economic benefits of Benham Rise,"" he added. READ MORE: Duterte tells China, Benham Rise sea territory 'is ours' The Philippine foreign ministry said on Tuesday that there was no question - and no rival claim - over the 13-million hectare undersea region rich in minerals and biodiversity.- ""It is indisputable because no other country has an overlapping claim there,"" Charles Jose, a-foreign ministry spokesman, said in a statement. ""So, as a country that exercises sovereign rights and jurisdiction, we are the only one that has a sole and exclusive right to explore and exploit the national resources in Benham Rise. It is our responsibility to protect it."" In 2012, a UN commission approved the Philippines' territorial claim to the area. Justice Antonio Carpio, a Supreme Court member, told the Manila-based Inquirer.net that the UN convention reserves the ""sovereign rights"" over the area to the Philippines, allowing it exclusive rights to explore oil, gas and other minerals. But he also said that other states, including China, have the right to conduct fishery research because the fish in the Philippines' extended continental shelf ""belongs to mankind"". The Philippine military said it had monitored Chinese survey ships over Benham Rise during the past six months of 2016. It was not clear what the survey ships were doing there, but Lorenzana said that he had received information the Chinese were ""looking for a place to put submarines"". On Monday, President Rodrigo Duterte called for ""structures"" to be erected in the area to denote Philippine jurisdiction, and he told the navy to-""go there and tell them straight that this is ours"". The territory is not part of the South China Sea, a key shipping lane that Beijing claims almost entirely, despite the Philippines, Brunei, Malaysia, Taiwan and Vietnam also having claims. Source:-Al Jazeera and news agencies", -2393,2017/3/14,http://www.aljazeera.com/news/2017/03/taiwan-indicts-president-ma-ying-jeou-leaks-170314150312742.html,Taiwan indicts ex-president Ma Ying-jeou over leaks,Prosecutors say China-friendly former leader broke laws by releasing personal information on rival politicians. Divisive figure,"Taiwan prosecutors indicted the island's China-friendly former president, Ma Ying-jeou, over the alleged leaking of classified information involving suspected influence-peddling by a powerful opposition lawmaker. The Taipei District Public Prosecutor's Office found, after a six-month probe, that Ma broke laws on the protection of personal information, release of secrets and communications security and surveillance, office spokesman Chang Chieh-chin said on Tuesday. The charges stem from a 2013 lawsuit brought by opposition legislative member Ker Chien-ming, who accused the then-president of leaking information taken from a wiretapped conversation, in which powerful Nationalist Party lawmaker Wang Jin-pyng pressed judicial officials to acquit Ker in a separate case. Wang at the time was speaker of the legislature and Ma's main political rival within the ruling party. Following the indictment, Ma told reporters in Taipei that passing on the information about suspected influence-peddling taken from the wiretap was not a criminal act. ""This was mainly about handling a crisis,"" Ma said. ""I'm confident in my innocence."" His spokesperson Hsu Chao-hsin said ""there's no way he should have been charged. Where is the justice?"" The charges carry-a maximum sentence of three years each. Ma was barred in June from visiting Hong Kong under a state secrecy law restricting travel by former top officials for three years after leaving office. Ma's case will stir emotions in Taiwan, where public opinion about his performance in office remains divided, said Raymond Wu, managing director of Taipei-based political risk consultancy, e-telligence. A US-educated legal scholar, Ma, 66, was credited with substantially improving Taiwan's relations with rival China during his two terms in office from 2008 to 2016. However, his push for ever-closer ties sparked a backlash, especially among young Taiwanese wary of China's intentions towards the island it considers its own territory to be brought under control by force if necessary. That led to his Nationalist Party losing both the presidency and its parliamentary majority to the pro-independence Democratic Progressive Party in polls in January 2016. Source:-News agencies", -2394,2017/3/14,http://www.aljazeera.com/news/2017/03/somali-pirates-hijack-ship-sri-lankan-crew-onboard-170314141236032.html,Somali pirates hijack ship with Sri Lankan crew onboard,"UAE oil tanker Aris 13 reportedly hijacked off Somalia, first pirate attack of a commercial vessel there since 2012. UAE-based owner","Pirates in Somalia have hijacked an oil tanker with eight Sri Lankan crew onboard, the first time they have successfully taken a commercial ship since 2012. Mohamud Ahmed Eynab, district commissioner for Alula town in Somalia's semi-autonomous region of Puntland, said on Tuesday that a day earlier ""the pirates hijacked the oil tanker and they brought it near Alula"". A local elder, Salad Nur, told AP news agency by phone ""more armed men boarded the ship"", saying young local fishermen, including former pirates, hijacked the ship. ""They have been sailing through the ocean in search for a foreign ship to hijack since yesterday morning and found this ship and boarded it,"" Nur said. ""Foreign fishermen destroyed their livelihoods and deprived them of proper fishing."" READ MORE: Illegal overfishing and the return of Somalia's pirates John Steed, a former British army officer who heads the Horn of Africa section of the Oceans Beyond Piracy NGO, said the Aris 13 was carrying fuel from Djibouti to Mogadishu when it was hijacked. It's crew sent a distress signal on Monday afternoon, he said. ""Yesterday afternoon, the ship reported that it was followed by two skiffs. After that, it went silent and the owner of the ship was not able to get into contact,""-Steed said, adding demands had not been made yet by the hijackers. The Sri Lankan government said it had eight Sri Lankan crew onboard and flew a flag from the Comoros Islands. A UN shipping database shows the Aris 13 is owned by a Panama company called Armi Shipping SA, whose address is listed in care of Aurora Ship Management FZE, a company based in Fujairah in the United Arab Emirates. Australian government records from 2014 list the ship's owner as Flair Shipping Trading FZE in the UAE. Argyrios Karagiannis, the managing director of Flair Shipping, declined AP's request to comment. ""We will not be releasing any information,"" Karagiannis said before shutting the door. READ MORE: The other side of Somalia's pirates The European Union Naval Force (NAVFOR), which runs anti-piracy operations in the area,-sent a maritime patrol aircraft to the coast of Somalia to investigate the incident, a spokeswoman said. She said the force does not classify the incident as piracy so far. Somali pirates began staging waves of attacks in 2005, seriously disrupting a major international shipping route. The attacks - which in 2012 cost the global economy $5.7bn to $6.1bn - prompted interventions by the UN, EU, and NATO. Many commercial shippers began hiring private armed guards for their vessels. At the peak of the piracy crisis in January 2011, 736 hostages and 32 boats were held. Though anti-piracy measures ended attacks on commercial vessels, fishing boats have continued to face assaults. With the seas-empty of fish-because of toxic waste dumping and illegal fishing by foreign trawlers, many Somalis say they have no choice but to turn to piracy to survive.- Source:-News agencies", -2395,2017/3/14,http://www.aljazeera.com/news/2017/03/khalifa-haftar-launches-offensive-key-oil-ports-170314105038191.html,Khalifa Haftar launches offensive on key oil ports,Forces loyal to renegade general launch push to seize oil terminals in eastern Libya from the Benghazi Defence Brigade. Escalation of violence,"Troops commanded by Libyan renegade general Khalifa Haftar have launched an offensive to seize back control of two of the country's key eastern oil terminals, according to a spokesman. ""Ground, sea and air forces launched joint attacks to liberate Ras Lanuf from terrorist groups,"" Khalifa al-Abidi said after orders were issued early on Tuesday for the push, which is also targeting the nearby Es Sider oil terminal. Both sites were seized earlier this month by the Benghazi Defence Brigades (BDB) rival group. At least nine people were killed in fighting on Friday as Haftar's eastern-based Libyan National Army (LNA) and allied forces retreated from the oil ports. READ MORE: Benghazi Defence Brigades claim seizing Libyan cities Al Jazeera's Mahmoud Abdelwahed, reporting from Tripoli, said that the BDB confirmed reports that their fighters had come under attack. ""The clashes have erupted again but the Benghazi Defence Brigades-confirm that they have not lost Ras Lanuf yet to Haftar's forces."" The BDB are composed partly of fighters who were ousted from Benghazi by the LNA. Libya splintered into rival political and armed groupings after the uprising that toppled Muammar Gaddafi in 2011. It remains deeply divided between factions based in the east and west that back rival governments and parliaments. Haftar, who is aligned with the eastern parliament and government, has been fighting a two-year military campaign with his LNA forces against armed groups in Benghazi and elsewhere in the east. Meanwhile, US and security sources on Tuesday told the Reuters news agency that Russia has deployed special forces and unmanned drones at Sidi Barrani, about 100km from the Egypt-Libya border, adding that any such Russian deployment might be part of an effort to support Haftar. The reports were later denied by both Moscow and Cairo. Back in January, Haftar was given a tour of a Russian aircraft carrier in the Mediterranean, according to Russian media reports, a show of Kremlin support for the faction leader who opposes Libya's UN-backed government. The latest fighting around the terminals has raised the prospect of a new escalation of violence and put at risk a sharp boost to Libya's oil production achieved after the LNA took over four ports in September, ending a blockade at three of them. Though Es Sider and Ras Lanuf have been reopened for exports, they were badly damaged in past fighting and are operating well below capacity. It was not clear to what extent the BDB had gained control over the ports, or whether operations at the terminals had been affected. READ MORE: Will losing oil ports end Haftar's power? ""Haftar claims to control most of the eastern part of Libya around Benghazi,"" Oliver Miles, former British ambassador to Libya, told Al Jazeera last week. ""But, control is a loose word. He's been fighting for a long time to deal with them and it has taken a long time time to clear them up. He's repeatedly said they've dealt with the problem but they keep reuniting."" Libya's oil production has recently been fluctuating around 700,000 barrels per day (bpd), more than double its output last year but still well under the 1.6 million bpd the OPEC member was producing before a 2011 uprising. Source:-Al Jazeera and news agencies", -2396,2017/3/14,http://www.aljazeera.com/news/2017/03/kim-jong-nam-korea-accuses-korea-murder-170314135734367.html,Kim Jong-nam: N Korea accuses US and S Korea of murder,Pyongyang accuses Washington and Seoul of the assassination in Malaysia in order to tarnish the North's image.,"North Korea has blamed the United States and South Korea for the high-profile murder of leader Kim Jong-un's estranged half-brother in a Malaysian airport. Kim In-ryong, North Korea's deputy UN ambassador, told reporters that ""from A to Z, this case is the product of reckless moves of the United States and South Korean authorities"". Washington and Seoul were trying to tarnish the North's image and bring down its social system, Kim said on late Monday in New York. Kim Jong-nam was killed at Kuala Lumpur International Airport on February 13 allegedly-by two women - an Indonesian and a Vietnamese --who reportedly smeared his face with VX, a chemical classified by the United Nations as a weapon of mass destruction. The women told diplomats from their home countries they thought they were participating in a prank for reality television. READ MORE: Who produced the VX poison that killed Kim Jong-nam? Malaysian police have since identified seven other North Koreans wanted in connection with the killing, including a senior embassy official in Kuala Lumpur. Four have left the country and are believed to be in Pyongyang. Ambassador Kim said the cause of Kim Jong-nam's death ""has not yet been clearly identified, but the United States and the South Korean authorities are groundlessly blaming [North Korea]"". He asked why the person who applied the VX agent, which is fatal if a tiny amount is inhaled, is still alive while the man it was applied to died. The ambassador said the US is one of the few countries that can manufacture VX and it has stockpiled chemical weapons in South Korea, which could have provided the chemical agent for the attack. ""It is a final aim sought by the United States to store up the international repugnancy towards the DPRK,"" he said of the attack, with the intention of provoking a ""nuclear war against DPRK at any cost"". READ MORE: What's on Kim Jong-un's mind? Kim Jong-nam reportedly fell out of favour with his father, the late Kim Jong-il, in 2001 when he was caught trying to enter Japan on a false passport to visit Tokyo Disneyland. He was not known to be seeking political power, but his position as eldest son of the family that has ruled North Korea since it was founded could have made him appear to be a danger to his half-brother Kim Jong-un. Source:-News agencies", -2397,2017/3/14,http://www.aljazeera.com/indepth/features/2017/03/dutch-muslims-reflect-geert-wilders-vote-170313125601556.html,Dutch Muslims reflect on Geert Wilders before vote Yoruk Bahceli,"With Geert Wilders dominating the campaign discourse, Muslims are raising their voices to demand equality. By Questioning of identity Muslim converts and anti-Muslim sentiment Fears for the future Striving for an inclusive society","Amsterdam, Utrecht, The Hague - As the Netherlands heads to the polls on Wednesday, an election campaign focused on identity issues and dominated by anti-Islam leader Geert Wilders has left some Muslims reflecting on their place in Dutch society. With his campaign of ""de-Islamising"" the Netherlands, Wilders of the far-right Party for Freedom (PVV) has pledged to ban the Quran and shut all mosques. In December, a Dutch court found Wilders guilty of inciting discrimination against Dutch Moroccans with his infamous ""fewer Moroccans"" comment. The claim that Islam is a threat to Dutch identity and questions over whether the Netherlands has done enough to preserve its own culture have been debated alongside policy issues at national election debates.- Prime Minister Mark Rutte, who leads the liberal People's Party for Freedom and Democracy, launched his election campaign with a letter-(link in Dutch)-calling on those who reject Dutch values to leave the country. Targeting people who he said ""attack gays, jeer at women in mini-skirts, and call ordinary Dutch people racists,"" the letter was widely interpreted as addressed to ethnic minorities. OPINION: What can the Dutch elections tell us about Europe? Five percent of the country's population is Muslim, mostly of Turkish and Moroccan descent. A recent government report shows that 40 percent no longer feel at home in the country. ""Even if I'm born here, I don't feel at home,"" says 35-year-old Fatma Kaya, whose grandparents migrated from Turkey to the Netherlands, speaking to Al Jazeera under a pseudonym. ""Every day, from morning to evening, it's about Muslims,"" Kaya says, reflecting on the political discourse and the media coverage of the election. This focus on Muslims has made Dutch-born bartender Toria El Gharbouni, 38, feel as though she's under surveillance. ""Now, I'm looking at older Dutch people, are they watching me? I've been pushed in a corner, under a spotlight. Look, she's Moroccan, she's Muslim!"" Tofik Dibi, 36, a former MP for the Green Left party who was also born in the country, says he's ceased to refer to himself as a Dutch Moroccan due to the way this identity has come to be understood.- ""At a certain point, I said I'm a Moroccan,"" he says.- ""It's like a declaration of independence,"" Dibi elaborates. ""I experienced that no matter how much you try to integrate, you will always be seen as a Moroccan."" He stopped identifying as Dutch Moroccan after a parliamentary debate in 2013 titled ""the Moroccan problem"" on criminality among Moroccan boys.-He was appalled that an entire group of people were being tied to a social issue. ""So, you're going to play it like this? I'm not going to be one of you any more,"" Dibi says of his decision. Kaya and Dibi say hostility towards Muslims is about being framed as the ""other"". Dibi says he doesn't like to distinguish between Islamophobia and racism. ""The way it works is exactly the same. It's always your appearance that's dominant,"" he explains. ""I think a lot of Dutch people feel like they are being left behind, while people who don't look like them are surpassing them,"" he says of poorer white voters who have expressed anger as the descendants of immigrants progress up the social ladder.- ALSO READ - Part of the neighbourhood: Syrian refugees in Amsterdam But rejection isn't only something ethnic minorities experience; some converts to Islam say they also feel the same way. ""I'm still Dutch, of course. I love my country, but at the same time, borders are less important for me,"" says Arnoud van Doorn, 50, a former chairman of the PVV's local division in The Hague, who converted to Islam after his expulsion from the party in 2011.- ""I also thought Islam was a threat. I was influenced by the media and everything. I thought it was a good thing to join, to fight for our values,"" Van Doorn explains. After a couple of years, he says he started to feel uncomfortable about the PVV's take on Islam. Van Doorn recalls asking himself, with over 1.5 million Muslims in the world, ""How can they all be bad?"" Researching the religion and speaking to Muslims led to his decision to convert. But now, he says, ""Feeling welcome shouldn't be an issue, but I feel less welcome"" in the Netherlands. Another convert to Islam, Liesbeth Hofman, 34, says she has never thought about herself as Dutch. She grew up among foreigners living in The Hague. ""I'm just part of the world,"" she says. Wearing a hijab, she feels people look at her differently. ""I still feel the same, but I feel people are not looking the same at me, like I'm not Dutch. Some call me a traitor,"" she says, adding that she gets shouted at on the streets from time to time. Van Doorn, who now chairs a local party based on Islamic principles in The Hague, believes anti-Muslim sentiment stems from economic elites who are afraid of losing power. Hofman sees it is a cultural issue.- ""People always think about Holland as a Christian country. ""They say, 'Why are Muslims here? They're taking over'."" Mustafa Emili, a 26-year-old public administration student of Turkish descent, says he hasn't been alienated from his Dutch identity, but from the political solutions on offer. ""What kind of rhetoric is this? Variables that aren't important when an atheist or humanist makes a mistake are brought into play when it's a Muslim,"" he says of the discussions that-link ethnicity and religion to crime and social problems. Mustafa, a member of the Christian Democrats, is disappointed by the way his party has become part of that trend. He says he will not vote for them this time around. ""They say multiculturalism has failed,"" he says. ""Have they conducted an experiment?"" For some, a growing sense of alienation feeds serious fears about the future.- ""It makes me apprehensive to feel like I'm surrounded by people who are able to vote for someone who would strip me of all my rights in a heartbeat,"" Dibi says. Hofman agrees. ""We shouldn't be afraid of Wilders - we should be afraid of his voters. His followers believe him."" Rasit Bal, chairman of Contact Organ Muslims, which liaises between the Dutch government and Muslim organisations, is most concerned about-the prospect of attacks on mosques,-which have increased in recent years. Attacks have included arson, smashed windows, threatening letters and stigmatising graffiti. Though cooperation with state authorities has gained momentum,-Bal says this hasn""t reassured those who pray at the mosques he works with.- Others are worried about the curbing of civil rights. Van Doorn is alarmed by the PVV's anti-Muslim proposals and fears further restrictions after the recent ban on niqabs in public areas. Dibi fears Muslims could face Trump-like measures if there's an attack in the country. ""After something like that, it will sound completely reasonable to many people to register Muslims,"" he says. Simon Cohen, who chairs the Coalition of Rotterdammers for Each Other, fights fear by bringing his Jewish community into dialogue with Muslims. ""We have had these feelings for years, while for Muslims, they are rather new. Jews give examples of how they have the experience in the last 30 to 50 years and Muslims receive some help through that,"" he says. RELATED: Turkey summons Dutch envoy over Rotterdam police action Regardless of how they feel about their identity, first-generation immigrants and their second-generation descendants demand an equal place in Dutch society. ""I didn't come here on a boat. They didn't come to Morocco to fetch me from some village to make me work here. I was born here,"" Dibi says. ""I'm co-owner of this place.""- Civil rights activist Abdou Menebhi, who came to the Netherlands in 1975, is startled when I ask whether he feels welcome in the Netherlands. ""Welcome? I'm Dutch! It has nothing to do with being welcome or not. It's more about whether I feel safe and happy,"" he says. This Dutch self-image is by no means universal. ""I'm Turkish, even if I have a Dutch passport,"" says teaching assistant Seher, who did not want to disclose her last name. Now aged 47, she migrated to the Netherlands as a 16-year-old bride. Kaya, born in the Netherlands, has always felt Turkish as well. But this doesn't mean she doesn't make the same demands as those who feel Dutch. ""I want to be addressed as Dutch, unless I indicate otherwise."" For those who have remained on the sidelines until now, political participation has gained significance. Both El Gharbouni and Kaya are voting for the first time. ""Now that Wilders came around, people woke up,"" says El Gharbouni, who sees the chances of Wilders winning the highest number of seats as pushing people around her to vote. Kaya has never felt a party has represented her before, but now, she is a member of the political party DENK - Dutch for ""Think"". Led by politicians of Turkish and Moroccan descent, the party's call for an inclusive society resonates with her. ""DENK has been really illuminating at this dark time,"" she says. Dibi believes change will come from younger Dutch generations, who don't look at the second and third generations as guests in the way their parents do. ""There's a lot of hope, but it's just that, we have to deal with this first. I think this is going to be the big fight. I can feel it in my bones."" Source:-Al Jazeera", -2398,2017/3/14,http://www.rte.ie/news/2017/0315/859834-mayo-coast-guard/,Air and sea search resumes off Mayo coast,,"A major air and sea search for three crew members missing after a Coast Guard helicopter crash is resuming this morning. Two naval service vessels are at the main search area and will maintain a presence there with members of the Garda Sub-Aqua Unit until later this morning. A decision on whether exploratory dives can take place will be made, depending on weather conditions.""?The search operation was launched after the Coast Guard Rescue Helicopter 116 lost contact with-Malin-Head Station shortly after 1am yesterday.""?Captain-Dara-Fitzpatrick, who was the pilot, was recovered at sea. She was airlifted to Mayo University Hospital in-Castlebar-but pronounced dead a short time later.""?Efforts to locate her fellow crew members - Mark Duffy, Paul-Ormsby-and-Ciar��n-Smith - continued for most of yesterday and were scaled back as night fell over the Mayo coastline.""?A meeting of the different agencies involved in the search operation was held at-Blacksod-lighthouse last night. Relatives of some of the missing Coast Guard personnel were briefed at the scene about the ongoing search effort.""?The-Air-Corps, the Navy,-garda��, life boat crews from-Ballyglass-and Achill as well as several local fishing vessels are ready to begin the air and sea search again this morning.""?The Air Corps Casa aircraft-has been deployed to aid in the effort. It has the capability to employ high-powered infrared cameras to assist the search. Naval divers from-Haulbowline-are also at the scene and will use scanning sonar to comb the water.""?Debris recovered at the scene is being first taken on board the L?-R��is��n, before being transported ashore on smaller vessels. A number of panels from the helicopter have been recovered along with smaller pieces of debris.""?The L?-Eithne-arrived on the scene yesterday evening. It is expected that the search will concentrate on an area close to Blackrock lighthouse, about 15km off-Blacksod-pier.""��?,-1""", -2399,2017/3/14,http://www.rte.ie/news/2017/0315/859836-bus-eireann/,Bus ?ireann board faces dilemma over strategy to address financial crisis,,"The board of Bus ?ireann will meet this morning to consider a strategy to address the financial crisis at the loss-making company. Management and unions have failed to reach agreement on cost reductions to tackle losses which are mounting at the rate of �10,000 a day. The company has warned that without drastic action, it could face insolvency by May and its board faces a serious dilemma at today's meeting. If it implements controversial cost cuts without union agreement, the 2,600 strong workforce will immediately commence an all out indefinite strike - disrupting up to 110,000 passengers daily.- But if the board members back away from conflict, without addressing those mounting losses, they could find themselves facing allegations of reckless trading. Industrial observers say it's unlikely that the Labour Court will intervene at this stage, as the Court cannot broker a solution if the parties aren't amenable to compromise. The stakes are now extremely high. An indefinite strike would have serious consequences for workers, who could be on the picket line losing wages. But if management warnings of the threat of insolvency are true, then not just pay, but all 2,600 actual jobs could be in jeopardy. And if Bus ?ireann customers discover private competitors during industrial action, they may never come back - dealing yet another blow to the struggling company.", -2400,2017/3/14,http://www.rte.ie/news/2017/0315/859840-enda-kenny-donald-trump/,Taoiseach to discuss EU and immigration with Trump,,"Taoiseach Enda Kenny has said he has a responsibility to the people of Ireland to work with the Trump administration. Mr Kenny-said he will talk to US President Donald Trump about matters that have potential benefits to people on both sides of the Atlantic, as this is a ""man who is used to doing business deals"". Speaking in Washington DC ahead of his meeting with President Trump tomorrow, Mr Kenny said he would explain just how the European Union worked and that it was ""not unfriendly to the United States"". President Trump has expressed an anti-EU sentiment in the past, both as a candidate and since becoming president. Mr Kenny said he had a responsibility as Taoiseach and along with colleagues at European level ""to work with this administration and to make that relationship work in the interest of millions of people on both sides of the Atlantic"". He said it was ""important the full story"" about the EU be told in the US, that the Trump administration was not just hearing a ""one-sided story"". Mr Kenny also said he would raise the issue of immigration with President Trump, but that he had to be ""very careful to distinguish"" between opportunities expressly for Ireland in terms of ""visa quotas and allocations"" for people who have yet to come to the US, and the different challenge of those who are undocumented and are seeking a path towards legalisation as citizens of the US. Mr Kenny-said he would stress the ""enormous"" benefits Irish immigrants had made to the US over the years and would to continue to make in the future.", -2401,2017/3/16,http://www.rte.ie/news/world/2017/0315/859844-the-netherlands-politics-election/,Polls open in key Dutch vote with all eyes on far-right,,"Polls have opened in The Netherlands in key elections overshadowed by a blazing diplomatic row with Turkey, with all eyes on the fate of far-right MP Geert Wilders. Following last year's shock Brexit vote and Donald Trump's victory in the US presidential polls, the Dutch general election is seen as a litmus test of the strength of far-right and populist parties ahead of other ballots in Europe this year. Up to 13 million voters will determine which parties will win the most parliamentary seats. Polls showed the centre-right VVD of Prime Minister Mark Rutte with a small lead over the PVV (Party for Freedom) of anti-Islam and anti-EU firebrand Mr Wilders. -", -2402,2017/3/15,http://www.rte.ie/news/us/2017/0315/859846-donald-trump-taxes/,Trump tax bill revealed in fresh leak,,"The White House has said Donald Trump earned $150m-in 2005 and paid over $38m-in taxes, revealing previously undisclosed details as his tax return for that year was leaked. Revealing narrow details of Mr Trump's tax history --a summary of one year's filing from more than a decade ago - the admission appeared to back up Mr Trump's claim that he paid his fair share of taxes. Mr Trump has steadfastly refused to release his full tax returns, breaking with decades of tradition among presidential candidates of all political parties. The White House confirmed the details just before David Cay Johnston, a Pulitzer Prize-winning investigative journalist and MSNBC said they would reveal the short filing. ""The documents show Trump and his wife Melania paying $5.3 million in regular federal income tax -- a rate of less than four percent,"" Mr Johnston wrote in a post on the Daily Beast. ""However, the Trumps paid an additional $31 million in the so-called 'alternative minimum tax,' or AMT."" AMT was originally designed to prevent rich taxpayers from using excessive loopholes, and Mr Trump has previously called for its elimination. Appearing on MSNBC, Mr Johnston said he did not know the source of the leak, noting that the return was placed in his mailbox. ""Let me point out it's entirely possible Donald sent this to me,"" he said. ""Donald has a long history of leaking material about himself when he thinks it's in his interests."" The White House confirmed key details of the 2005 return --which showed amounts but, crucially, not sources of income. ""You know you are desperate for ratings when you are willing to violate the law to push a story about two pages of tax returns from over a decade ago,"" an administration official said. Mr Trump paid ""no more tax than legally required,"" the official said. ""That being said, Mr-Trump paid $38m-even after taking into account large scale depreciation for construction, on an income of more than $150m."" The official said that Mr Trump also paid ""tens of millions of dollars in other taxes such as sales and excise taxes and employment taxes and this illegally published return proves just that."" ""It is totally illegal to steal and publish tax returns. The dishonest media can continue to make this part of their agenda, while the president will focus on his, which includes tax reform that will benefit all Americans,"" the official --who refused to be named - claimed.", -2403,2017/3/15,http://www.rte.ie/news/crime/2017/0315/859843-crime-meath-seizure/,"Two men arrested after firearm, drugs and cash seized in Co Meath",,"Two men have been arrested and drugs, cash, and a firearm have been seized by garda��-investigating the activities of a west Dublin criminal gang. The seizure was made on land in Pelletstown in Co-Meath yesterday. The two men, aged 23 and 35, are still being questioned at Finglas and Blanchardstown Garda Stations Garda��-say a thorough forensic search is to be carried out today at Pelletstown, Dunshaughlin -where the seizure was made. Officers from the Drugs and Organised Crime Bureau and the Special Task Force found a sub-machine gun as well as heroin and crack cocaine as well as �10,000 in cash hidden in a hole in the ground at the location. One of th emen arrested at the scene is well known to garda��-and linked to a west Dublin criminal gang suspected of involvement in the murder of Mark Desmond last year and �120,000-was seized from them in January.", -2404,2017/3/15,http://www.rte.ie/news/education/2017/0315/859841-gender-equality/,UCD and DCU recognised for gender equality actions,,"Two Irish universities have received an award recognising steps they have taken towards gender equality. UCD and DCU have both received Athena SWAN bronze awards. The awards are made as part of a pilot-project funded by the Higher Education Authority since 2015. The international body that runs the Athena SWAN awards - the Equality Challenge Unit - -says bronze is given to institutions who demonstrate that they have a thorough understanding of gender equality issues, and have put an action plan in place.- No Irish institution has as yet been awarded a silver or a gold prize.- Silver award holders must provide evidence that they are improving gender equality. Gold is awarded for ""a significant and sustained record of impact across the entire institution"" and to institutions that are ""a beacon for promoting gender equality"".- The University of Limerick's Department of Physical Education and Sport Sciences received a Bronze departmental award.- Three other Irish universities, UCC, UL and Trinity College, hold Bronze institutional Athena SWAN awards. - By 2020 colleges will be required to secure Athena SWAN Bronze awards in order to be eligible for research funding from Science Foundation Ireland, the Irish Research Council and the Health Research Board. - By the end of 2023 they will be required to hold Athena SWAN Silver awards to be eligible for research funding. -", -2405,2017/3/15,http://www.rte.ie/news/2017/0315/859839-syria/,More than 800 health workers killed in Syria since 2011,,"More than 800 health workers have died in 'acts of war crimes' in Syria since 2011, according to an analysis published in the The Lancet medical journal to mark six years since the start of the Syrian conflict. Researchers say the health workers were killed in hospital bombings, shootings, torture and executions perpetrated mainly by government-backed forces. The report says the Syrian government and its ally, Russia, have turned the violent withholding of healthcare into a weapon of war. Its authors say the strategy of using people's need for health care against them by violently denying access sets a dangerous precedent that the global health community must urgently address. It is the first report by The Lancet Commission on Syria led by the Faculty of Health Sciences, American University of Beirut. Syrian pro-government forces next to the wreckage of an ambulance in Aleppo", -2406,2017/3/15,http://www.rte.ie/news/ireland/2017/0315/859837-project-eagle/,Kenny rejects calls for Noonan to resign,,"The Taoiseach has rejected any suggestion that Minister for Finance Michael Noonan should resign over his involvement in Project Eagle. The Oireachtas committee that examined the sale of NAMA's Northern Ireland loan book - known as Project Eagle - has concluded the agency's strategy was ""seriously deficient"". The report by the Public Accounts Committee also found it was not as it put it ""procedurally appropriate"" for Minister Noonan to meet with Cerberus, the investment firm that ultimately bought the portfolio, as it could have given the perception of preferential treatment. Enda Kenny said Mr Noonan had acted ""entirely appropriately"" throughout. Mr Kenny also questioned why the minister was not asked directly about the issue when giving evidence to the committee. ""The PAC has always been an independent committee of the Oireachtas and I respect that, but Michael Noonan has acted entirely appropriately in this matter,"" he said. ""He went before the committee in a voluntary capacity, he spent five hours in front of the committee, he was asked no question about this and clearly his own letter that is included in the report points out the distinction between the role of the minister for finance and the commercial activities of NAMA. ""Michael Noonan has acted entirely appropriately here. ""I don't wish to make any comment of the activities of the public accounts committee except to say that this is a dispute report."" Mr Noonan has said he was disappointed that ""unjustified and unfounded views"" made their way into the final report. ""I refute absolutely the validity of any suggestion that I or my officials acted inappropriately in meeting with Cerberus in March 2014,"" he said.", -2407,2017/3/15,http://www.rte.ie/news/analysis-and-comment/2017/0314/859774-dutch-elections/,Tony Connelly: All eyes turn to Dutch election,,"All eyes are on the Dutch elections to see if Geert Wilders can overturn a model of moderate governance in the Netherlands, writes Europe Correspondent Tony Connelly. At the beginning of June last year I arranged to speak to Geert Wilders at the Dutch Parliament in The Hague. He was polite and friendly to the point of being charming, despite his reputation as a hatemonger.- It was clear that his political tail was up. - It was three weeks before the Brexit referendum, and he was encouraged by the signals he was getting from his contacts in the UK. ""Brexit would have an enormous stimulus and positive effect,"" he said.- ""So many people in Europe would say, hey, if the UK can do it we can do it.- So I really hope they can do it, so that the Dutch can do it too."" As history will forever show, the UK did do it.- Will the Dutch now head in that direction too? Wilders is one of a cluster of European politicians who have brought themselves from what used to be regarded as the lunatic fringe, right to the centre (or as close as one get to the centre) of power.- Alongside Nigel Farage of UKip-and Marine Le Pen, the French National Front leader, he was vilified as a dangerous and unelectable demagogue with his inflammatory views on Islam and immigrants. Despite numerous clashes with the courts over hate speech, Wilders still managed to command sizeable popular support to the point where he could win 24 seats in the 2010 general election, a performance which allowed him to support the governing coalition without being a full member in exchange for more right-wing policies. In the current election he has maintained a steady lead in the opinion polls. The Brexit victory and the election of Donald Trump in the United States-appeared to show there was an insurgent spirit in the West's political system, one that would overturn a model of moderate governance that had held sway since World War II. All eyes are now on the Dutch elections to see if Geert Wilders will continue that trend. He was once a member of the centre-right People's Party for Freedom and Democracy, or VVD, but left to form his own party, Party for Freedom (PVV), in 2006.-He has gradually carved out a formidable support base attracted by his crusade against what he sees as the Islamisation of the Netherlands.- His one page manifesto is astonishingly brutal in its pitch.- He wants to ""de-Islamize"" the Netherlands, ban asylum seekers and immigrants from Islamic countries and ""close the borders"".- The manifesto calls for the withdrawal of all asylum residence permits and for asylum centres to be closed. Mosques and Islamic schools would be closed, the Koran would be ""banned"", headscarves would be prohibited in public and the Netherlands would leave the EU. Wilders was convicted of hate speech last December, and during his campaign launch he referred to ""Moroccan scum"" who make the streets unsafe. On this reading, it's easy to assume that Wilders is surfing the same histrionic and polemical wave that propelled Donald Trump into the White House. And yet, all the indications are that, despite his best efforts, immigration and Islam have not become the dominant themes of this Dutch election. ""Refugee flows, the integration of immigrants, and the future of the EU are all on the table,"" according to a paper by Louise Van Schaik and Anne Bakker for the Carnegie Europe think tank. ""But political parties are paying more attention to domestic concerns such as the retirement age, the costs of healthcare insurance, labor-market reform, euthanasia, and charges for driving during rush hour. ""This range of topics points to the high degree of fragmentation in a campaign that still seems not to have taken off in earnest."" That fragmentation is seen in the proliferation of smaller, single interest parties (28 of them in all). Some 14 of these parties are expected to win seats.-These include the Party for Animals (PvdD), the 50Plus party for pensioners, the anti-EU Forum for Democracy (FvD) and Denk (Think), which campaigns among Muslim immigrants. This fragmentation can be put down to a general disenchantment with the mainstream parties on the right and left.- They have have been gradually losing support for the past 20 years.-Seven or eight parties will take between 8%-and 16%-of the vote, but right up to the eve of polling there are still many undecided voters. Poll aggregates by Leiden University put Wilders at an average of around 17%, with the incumbent VVD, led by prime minister Mark Rutte, at 14%-with the Labour Party (PvdA) hemorrhaging support at 7%. Even if Wilders gets the biggest share of the vote, he will not be in a position to form a government because none of the other mainstream parties will work with him.-On that score alone, this election will not echo with the kind of seismic boom that accompanied the Brexit and Trump victories. But the trend is there for all to see.-Holland is no longer the home of tolerant, consensual politics. Although Geert Wilders' PVV party has been losing ground despite a long run of impressive opinion poll showings, the fact that he is still in the lead is shocking to those who find his firebrand xenophobia unacceptable. The dip in his poll numbers may be because he has avoided public election debates, and the fact that the public may have been turned off the kind of disarray and turbulence that has characterised the early days of the new Trump administration in the US. - But the same backlash against globalisation thought to be animating voters in the US, Britain and France is alive and well in the Netherlands. For decades the Dutch were one of the most dependable partners in the drive for European integration.- The country has combined its atlanticist credentials with a willingness to participate in multilateral peacekeeping efforts via NATO-and the UN. According to a survey by the German policy foundation Bertelsmann Stiftung, 40%-of the Dutch regard globalisation as a ""threat"", with 57%-of PVV supporters saying they fear it the most. And yet, many Dutch voters see the benefits of globalisation. Some 60%-view it as more of an opportunity than a threat; that may be because of the importance of global trade to the Dutch economy. Real GDP between 1990 and 2014 was in annual per capita terms �190 higher than it would have been without ongoing globalisation. Adjusted for purchasing power, the per capita gain increases to �140. -""That shows that, on average, Dutch consumers have also benefitted from globalisation,"" reports Bertelsmann. In fact, the Netherlands is among the better performers at EU level when it comes to creating jobs and alleviating poverty (at 74%-the Netherlands has the second highest employment rate in Europe).- The youth unemployment rate has fallen from 13.2%-in 2013 to 11.3%-in 2015, well below the EU average of 17%. At 7%-the Netherlands also has Europe's lowest level of so-called NEETs, young people between the ages of 20 and 24 not in education, employment or training. On the question of refugees, there have been high profile outbursts of violence at protest at the opening of centres for asylum seekers. And yet, there is a strong streak of altruism that still runs through Dutch society, with no small number of political parties calling for a compassionate response to the Syrian refugee crisis. There's no doubt that the events of recent days could have a significant influence on the outcome. When the Turkish foreign minister attempted to speak at a rally in Rotterdam on 11 March-to persuade Dutch Turks to vote in a Turkish referendum that would give President Recep Tayip Erdogan sweeping new powers, most Dutch political parties denounced it as provocative. The minister was prevented from landing in the country and the dispute has escalated dramatically into a full blown diplomatic crisis.- Mindful of Wilders' desire to capitalise on the issue of how Turkish immigrants, even those who are second or third generation, view the question of their allegiance, PM Mark Rutte took a tough stand in preventing Turkish government ministers rallying expatriate voters in the Netherlands.- ""Game-changing events may still take place in what has so far been a dull campaign in which small parties have attracted quite some attention and the polls have not moved much,"" according to Carnegie Europe. ""Party leaders may keep their electoral powder dry until the very last days of the campaign. A rally between one right-wing party (the VVD or PVV) and one left-wing party (the PvdA or GreenLeft) might still emerge, as in the previous election in 2012, but the centrist parties (the CDA and D66) could absorb last-minute votes too."" Whatever the outcome, there will be a long period of coalition building, with the possibility of four or five parties on the centre right forming a government.- This may not be another breakthrough shocker in the mould of Brexit and Trump, but the outcome will pose just as many imponderables.", -2408,2017/3/15,http://www.rte.ie/news/2017/0314/859813-india-death/,Irish national reportedly found dead in India,,"Police in India are investigating the death of a woman, thought to be Irish, in Goa. The body of the woman, who is understood to be in her late 20s, was found in the coastal resort of Canacona. Police said she had bruising to her body as well as facial injuries and they believe she had been holidaying in the area. The Times of India has reported that the woman was murdered. It also reported that a man has been arrested. The Department of Foreign Affairs has said the Irish embassy in New Delhi is in contact with authorities in India in relation to reports of an incident involving an Irish citizen. The department stands ready to provide consular assistance. - -", -2409,2017/3/15,http://www.rte.ie/news/2017/0314/859831-mary-boyle/,Hate mail sent to mother of missing Mary Boyle,,"The mother of a six-year-old girl who disappeared in Co Donegal 40 years ago has said she has received hate mail in recent times. Speaking on RT?'s Prime Time, Ann Boyle said she needs to know what happened to her daughter Mary. ""I've begged to know for 40 years what happened to Mary. I don't want an inquest that Mary is dead. I want to believe that Mary is still alive somewhere. I have to live that way."" She said that she has been subject to hate mail, including one from someone pretending to be her daughter. ""One was a Christmas card and the other was a letter, and the stuff that was in it was shocking. That threatened my life, and frightened the life out of me. ""One of them started off like it was from Mary. I mean, my God. That made me ill."" Her granddaughter Mary Duffy said it was very distressing for her grandmother. ""It's horrible and Nannie's afraid to be in her own home and no one should be left like that, it's horrible."" Mary Boyle disappeared in Cashelard near Ballyshannon on 18 March 1977. She had followed her uncle, Gerry Gallagher, who was bringing a ladder back to a neighbour's house around 400 yards away. Cardigan worn by Ann Boyle - Mary's twin sister - on 18 March 1977- The last reported sighting of Mary was by her uncle that afternoon as she turned back towards her grandparent's home just over halfway on the journey to the neighbour's house. Ann Boyle believes Mary made it to the nearby road which links the townland of Cashelard with Belleek in Co Fermanagh. Last July officers from the garda investigation team in the Northern Region began a dig in an area near where Mary disappeared, however no new evidence was found. Mary and her twin sister Ann wore identical cardigans and wellingtons on the day Mary disappeared and garda�� have released images of the clothes worn by Ann on that day. Black wellingtons worn by Ann Boyle-", -2410,2017/3/15,http://www.rte.ie/news/2017/0314/859667-jobs/,Coty to close Nenagh plant with loss of around 200 jobs,,"Coty has confirmed that its plant in Nenagh, Co Tipperary, will close by the end of 2018 with the loss of around 200 jobs. In a statement this afternoon, the company said it had carried out a detailed study of its global manufacturing and is to consolidate its cosmetics operations resulting in the closure of the Nenagh plant. The decision comes following the merger with P&G Specialty Beauty brands. P&G merged with Coty last year making it one of the biggest beauty companies in the world with revenues of over �1bn. There were concerns that the merger may have implications for the plant down the line. Staff were informed of the decision earlier today in a meeting at the plant. The plant has been one of the town's biggest employers since the late 1970s, having had a workforce of over 500 at its height. Hair and fragrance brands such as-Calvin Klein, Clairol, Wella, Max Factor and Rimmel are all part of its product range. Juan Miguel Pacheco, Plant Manager at Nenagh said he is committed to fully supporting colleagues in Nenagh through the coming months. ""Our priority is to work closely with them and their families throughout the consultation and to ensure that everyone is treated fairly and with respect."" Minister for Social Protection Leo Varadkar said in a statement: ""Our goal is to ensure that all staff affected can move smoothly into new employment or training. ""I want to assure everyone affected that the Department of Social Protection officials are determined to help them to get through this difficult period, and identify the supports they need to get back into employment again as quickly as possible."" Nenagh Chamber of Commerce vice president Denis Finnerty said the job losses were a huge loss for the local workforce and their families. Speaking to RT?'s News at One, Mr Finnerty said the worst fears of everybody had been realised and he hoped the company would treat the workers fairly and with respect. He said re-skilling would be necessary for many and a plan was needed to be put in place to ensure they would get ""dignified"" employment.- Mr Finnerty said national development needs to go beyond the eastern seaboard and it would not be easy for people losing their jobs to get work in the area. He said many would be forced to commute or travel to the UK. Responding to the company's announcement, SIPTU sector organiser-Alan O'Leary said: ""This is a devastating blow to the workers concerned. While our members were made aware of a review of operations by Coty management over the past year, the closure decision was unexpected. ""We will now meet with company management to discuss the outcome of the review and we expect to enter intensive talks to consider ways of minimising the proposed job cuts.""", -2411,2017/3/15,http://www.rte.ie/news/ireland/2017/0314/859691-coast-guard-helicopter/,Finding missing helicopter's black box 'crucial',,"Air accident investigators say recovering the missing Coast Guard helicopter's black box could be vital to solving what happened the aircraft. The Sikorsky S92 - one of four in regular operation by the search and rescue service, with another on standby - was the last one acquired in an upgrade of the fleet completed three years ago. Since then it has been central in hundreds of successful missions off the Irish coast, including casualty evacuations and long range operations. Last year alone, the fleet was involved in 886 missions - the longest being at a range of 240km west of Loop Head, Co Clare, last March. The Sikorsky S92s - which replaced the old S61 models - are manufactured to allow for long range missions of up to 365 nautical miles and improved cruising speeds. They are also equipped with enhanced technology, including forward-looking infrared low-light cameras, night sun searchlights, ambulance level paramedic care facilities and satellite communications. They can hover in strong crosswinds or tailwinds of up to 35 knots. Eugene Clonan, acting director of the Irish Coast Guard, said they are ""fairly new helicopters and very modern"". ""This helicopter has all the safety equipment onboard, with duplicate communications, flotation bags,"" he said. ""The crew themselves would have immersion suits, life jackets, helmets and would have training for these types of emergencies."" Coast Guard member rescued from helicopter crash dies 'Dark day' for Irish Coast Guard - President In Pictures: Coast Guard helicopter lost off Mayo coast The immersion suits are designed to help crew survive for some time in the water. Mystery surrounds what happened the aircraft in its final moments, with no indication of any problems in its final communications with the Coast Guard Rescue Coordination Centre in Malin Head. Just before a planned landing on the Co Mayo coastline to refuel, the last transmission was: ""Shortly landing at Blacksod."" One crew member - Captain Dara Fitzpatrick - was recovered from the water but-later died in hospital, while-three are still missing. Officials from the Air Accident Investigation Unit have been sent to the scene and will carry out a full investigation. Jurgen Whyte, Chief Aeronautical Officer with the unit, signalled the helicopter's black box could be crucial to learning what went wrong. ""These recorders are modern enough that we can actually - if we can recover the recorder and if it is functioning correctly - we can hopefully re-analyse the flight and actually get the aircraft to fly again digitally,"" he said. ""That will help investigators a lot to actually determine what was happening in the final moments of the flight."" @rtenews army and coast guard members at Mayo Univ Hosp where one crew member was taken in critical condition. 3 still missing pic.twitter.com/ahzJDyUuOP ""?TERESA MANNION (@TeresaMannion) March 14, 2017", -2412,2017/3/15,http://www.rte.ie/news/courts/2017/0314/859660-roy-webster-anne-shortall/,Murder accused says hammer attack seemed like watching a horror movie,,"A 40-year-old man accused of murdering a woman in Co Wicklow two years ago told garda�� it was like having an out-of-body experience or watching a horror movie as he hit her on the head with a hammer. Roy Webster, from Ashbree, Ashford in Co Wicklow, has admitted the manslaughter of Anne Shortall in April 2015 but has pleaded not guilty to her murder. Warning: This story contains graphic details He said it was like she had him against a wall and he had nowhere else to go. Mr Webster claimed he snapped after Ms Shortall claimed she was pregnant and threatened to tell his wife about their ""one-night stand""-if he did not give her ?6,500 for an abortion. - - The court heard garda�� told Mr Webster after he had confessed to killing her that the post-mortem results showed she was not pregnant. He replied: ""I f***ing knew it"". The court heard details of Mr Webster's interviews with garda�� after he had broken down and confessed to killing Ms Shortall. He described how he had known Ms Shortall to see but got talking to her on a night out with friends in Wicklow in December 2014. He ended up going back to the apartment where she lived and having sex. He said Ms Shortall tried to get in contact with him on a number of occasions after that but as far as he was concerned it was a one-night stand. On one occasion, he said she phoned his landline in the early hours of the morning while he was feeding his newborn baby.- He said he thought she was ""just putting in a booty call"". Eventually, he said, she texted him to tell him she was pregnant.- He met her on 2 April and she told him she needed ?6,500 to have an abortion. He asked her to meet him the following day and provide him with proof that she was pregnant, and he would see what he could do. The following day, he said he arranged to meet her.- She got into his van and they drove for a bit. He said she did not have any proof that she was pregnant and when she realised he did not have any money, she got out of his van and told him she would sort it out herself.- He said he got out to reason with her and she began threatening him that she was going to start phoning his wife. He said he was thinking ""this can't be happening"" and he was pleading with her not to as he had a wife, child and newborn baby but he said she told him she did not give a s***. Mr Webster told garda�� his head was spinning and he could just see his whole world crashing down. He said she had him backed against a wall and was going to ruin him and his family. He opened the door of his van, he said, grabbed a hammer and hit Ms Shortall on her forehead. He said she fell back into the van but was still conscious and told him she would ruin him. He said it was like looking down at himself doing it. He hit her again and it was like looking at someone else doing it. He said blood was pouring out of her head. He could not believe how much there was. He said it was like watching a horror movie and-told garda�� he hit her three or four times. Mr Webster said he was scared and petrified at what he had done. He said she had him against a wall and he had nowhere else to go.- He said he was scared about what she had threatened to do to him.- Afterwards, Mr Webster taped Ms Shortall's head and hands.- He said he drove to a local shop and then drove home with Ms Shortall's body in his car.- He said he did not know if she was dead or alive and thought he was out of his mind.- He said his intention at the time had not been to kill her.- He said it was a mixture of fear and panic and she must have driven him to snapping point.- He denied that he had never intended to give her money and had intended to kill her.- He said that never crossed his mind and he was not brought up that way. When he got home Mr Webster said it was like he came back to himself and everything was back to normal - like a switch had turned off. He had a cup of coffee, had dinner, played with his daughter and fed his young baby. He had a glass of wine and fell asleep on the couch. Later on he said he got calls and texts from Ms Shortall's daughters wondering if she was with him. But he said his wife was with him and he told her it was just a wrong number and put his phone on silent. The following day he said he went shopping for his baby, with his wife in Arklow.- Later that evening, he opened his van and realised he would have to take Ms Shortall's body out. He said he could not believe she was so stiff already. He told garda�� he had no idea what he had intended to do with the body. He admitted Ms Shortall could have been alive as he drove home but it was just natural instinct to go home.", -2413,2017/3/14,http://www.rte.ie/news/ireland/2017/0314/859793-john-connors/,Appeal to trace teenager missing from Dublin,,"An appeal has been issued to trace a 16-year-old boy missing since Sunday. John Connors was last seen in the Leopardstown area of Dublin. He is described as being 1.70m (5'7"") tall, of slight build with red hair. When last seen John was wearing a grey top and black tracksuit bottoms. Anyone who has seen John or knows of his whereabouts is asked to contact Dundrum Garda Staton on 01-6665600, the Garda Confidential Line on 1800 666111 or any Garda station.", -2414,2017/3/14,http://www.rte.ie/news/world/2017/0314/859714-france-fillon-charged/,France's Fillon placed under formal fraud investigation,,"French presidential candidate Francois Fillon has been put under formal investigation over misuse of public funds in the fake jobs scandal involving his wife, the prosecutor's office said. The 63-year-old conservative candidate was put under formal investigation on suspicion of diverting public funds, complicity in misappropriating funds, receiving the funds and not declaring assets fully, a judicial source said. Mr Fillon's lawyer could not immediately be reached for comment. The former prime minister, who has for weeks denied any wrongdoing and said he is the victim of a ""manhunt"", had initially said he would answer a summons to go and see examining magistrates on Wednesday and not today. Under French law, being put under formal investigation mean there is ""serious or consistent evidence"" that points to probable involvement of a suspect in a crime. It is a step towards a trial, but a number of such investigations have been dropped without going to court. Mr Fillon's campaign has taken a very serious hit since the scandal broke out late January in the satirical weekly Le Canard Enchaine, which alleged that he paid his wife, Penelope, hundreds of thousands of euro as his parliamentary assistant for work she might not have done. Mr Fillon has said he would maintain his bid as the candidate of The Republicans party in the April-May presidential election even if he went under formal investigation. Meanwhile,-Paris prosecutors have opened a probe into one Mr Fillon's presidential election rival-Emmanuel Macron. The probe is into possible favouritism over the organisation of a January 2016 event in Las Vegas where then economy minister Emmanuel Macron was the main speaker, a judicial source said . The event at the CES tech fair was organised without a public tender by a unit within the economy ministry, which was then headed by Mr Macron before he left the government to launch a bid for the French presidency. -", -2415,2017/3/14,http://www.rte.ie/news/health/2017/0314/859637-letitia-lawlor/,"Family of woman who died after trolley fall agree �11,000 settlement",,"The family of an 82-year-old woman who died after falling from a hospital trolley has called for a review of care for elderly people in emergency departments. Letitia Lawlor had spent the night on a trolley in the emergency department of St Vincent's Hospital in Dublin in August 2013. She had suffered facial injuries from a fall at her nursing home and was receiving treatment. However, the High Court was told the side bars on the trolley were left down and she was left unattended despite it being known she was at risk of falling. Mrs Lawlor fell from the trolley. She suffered a brain haemorrhage and died some days later. This morning, Mr Justice Kevin Cross approved a settlement of �11,000 in a case taken by the family against the hospital. The court was told no defence had been entered in the case. Afterwards Mrs Lawlor's daughter, Geraldine Eaton from Templeogue in Dublin, said she hoped what happened to her mother would not happen to any other family. She said they had received an apology following the inquest into her mother's death, which returned a verdict of medical misadventure. Mrs Eaton said her mother was a loving grandmother and the family miss her very much. She said she believed that overcrowding and understaffing in the emergency department led to her mother's death. In a statement read on behalf of the family, solicitor David O""�Malley said: ""Letty was a beloved mother and grandmother at the mercy of the our health system. Her death manifests all that is wrong with our A&E services. ""The family hope the tragic nature of the incident will spark an appetite for change. Our vulnerable are not being protected. Reform needs to happen now. Enough is enough.""", -2416,2017/3/14,http://www.rte.ie/news/ireland/2017/0314/859767-yasmin-noble/,Appeal to trace girl missing from Navan,,"An appeal has been issued to trace a 14-year-old girl who has been missing from the Navan area since 10 March. Yasmin Noble is described as being 1.60m (5'3"") in height, of stocky build with long brown hair and blue eyes. She was last seen wearing her school uniform, which includes a blue jumper and blue tartan skirt. Anyone with information or who may know of Yasmin's whereabouts is asked to contact Navan Garda Station on-046 -9036100, Garda Confidential Line 1800 666 111, or any Garda station.-", -2417,2017/3/14,http://www.rte.ie/news/brexit/2017/0314/859675-brexit/,May expects 'royal assent' for Brexit this week,,"British Prime Minister Theresa May has said the UK faces a ""defining moment"" as it leaves the European Union, as she prepares to begin the formal Brexit process. Legislation allowing the prime minister to start the process cleared Parliament last night and Mrs May told MPs she would come to the Commons later this month to announce when she has taken that step. Mrs May said the legislation would receive royal assent within the ""coming days"", allowing her to keep to her promise of starting the Brexit process by the end of March. But in a Commons statement following last week's European Council, Mrs May was jeered by opposition MPs as she stressed her desire to see the single market strengthened because her Brexit plan involves leaving it. Setting out the next steps in her plan, Mrs May said: ""We remain on track with the timetable I set out six months ago, and I will return to this House before the end of this month to notify when I have formally triggered Article 50 and begun the process through which the UK will leave the European Union. ""This will be a defining moment for our whole country as we begin to forge a new relationship with Europe and a new role for ourselves in the world. ""We will be a strong, self-governing global Britain with control once again over our borders and our laws."" ""We will use this moment of opportunity to build a stronger economy and a fairer society, so that we secure both the right deal for Britain abroad and a better deal for ordinary working people at home."" Mrs May's plan for Brexit would mean leaving the single market and seeking a comprehensive trade agreement instead. The prime minister was forced to pause to allow the noise in the Commons to die down as she set out her support for ""further steps to complete the single market and the digital single market"" and the EU trade deal with Canada. She said she had pressed for an agreement with Japan in the coming months, adding: ""These agreements will lay the foundation for our continued trading relationships."" Mrs May said: ""At the same time, we will also seize the opportunity to forge our own new trade deals and to reach out beyond the borders of Europe to build relationships with old friends and new allies alike."" Labour leader Jeremy Corbyn said the passage of the European Union (Notification of Withdrawal) Act was a historic step and Article 50 would start a ""process that will shape this country's future"". He warned: ""There is no doubt that if the wrong decisions are made we will pay the price for decades to come. ""So now, more than ever, Britain needs an inclusive government that listens and acts accordingly. ""However, all the signs are that we have a complacent government - complacent with our economy, complacent with people's rights, and complacent about the future of this country.""", -2418,2017/3/14,http://abcnews.go.com/Politics/house-intel-leaders-evidence-trump-wiretapped/story?id=46146037,House intel leaders say no evidence Trump was wiretapped,,"The top Republican and Democrat on the House Intelligence Committee said today that there is no evidence of any wiretap at Trump Tower in Manhattan during the presidential campaign or transition. Rep. Adam Schiff, D-Calif., said that there is ""no basis"" for President Trump's accusations that then-President Obama illegally wiretapped Trump Tower ""whatsoever."" Schiff said it ""deeply concerns me that the president would make such an accusation without basis."" The committee's chairman, Rep. Devin Nunes, R-Calif., said, ""I don't think there was an actual tap of Trump Tower."" Trump alleged in a series of tweets that Obama had his phones tapped. How low has President Obama gone to tapp my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy! Terrible! Just found out that Obama had my ""wires tapped"" in Trump Tower just before the victory. Nothing found. This is McCarthyism! ""The challenge here is that the President Obama wouldn't physically go over and wiretap and then you have to decide if you're going to take the tweets literally, and if you are, then clearly the president was wrong."" Nunes said referring to the multiple tweets that Trump sent on the morning of March 4. ""But if you're not going to take the tweets literally and if there's a concern that the president has about other people, other surveillance activities looking at him or his associates, either appropriately or inappropriately, we want to find that out. It's all in the interpretation of what you believe,"" he said. White House press secretary Sean Spicer maintained that Trump will be ""vindicated"" by evidence. On March 13, Spicer said that Trump was not talking literally or specifically when he accused Obama of ""wiretapping"" his campaign. ""If you look at the president's tweet, he said 'wiretapping' in quotes. There's been substantial discussion in several reports,"" Spicer said. ""The president was very clear in his tweet. It was wiretapping. That spans a host of surveillance options,"" he said. ""The House and the Senate Intelligence committees will now look into that and provide a report back. I think there's been numerous reports from a variety of outlets over the last couple months that seem to indicate that there has been different types of surveillance that occurred during the 2016 election."" Nunes said that there will be a public hearing about the issue in the coming weeks. Schiff said committee members will ask Justice Department officials whether they have seen ""any evidence that substantiates the president's claim.""", -2419,2017/3/14,http://abcnews.go.com/Politics/ag-jeff-sessions-sees-reason-trump-wiretap-claim/story?id=46146095,AG Jeff Sessions gave Trump no reason to believe wiretap claim,,"U.S. Attorney General Jeff Sessions today said that he never gave President Trump any reason to believe the Obama administration had wiretapped Trump Tower. ""Look, the answer is no,"" Sessions said when asked about the issue after delivering a speech to law enforcement officials in Richmond, adding, ""I'm not talking to the president or the people who are investigating the case. And I'm unable to comment on any of these details."" Sessions, who had been a surrogate for Trump on the campaign trail last year, announced at the beginning of March he would recuse himself from existing or future probes related to any campaigns for president. ""I held a role in the campaign,"" Sessions said today. ""There's a code of federal regulations, rules ""?statute, really -- that says if you're involved as a Department of Justice employee in a campaign, have a role in that campaign, you can't investigate your own campaign. ""Even though you may not have nothing whatsoever to do with anything improper, you should not investigate your own campaign. So I have recused myself""?from election-related matters. In a series of tweets posted March 4, Trump accused President Obama of wiretapping his phones at Trump Tower in New York City during the campaign. White House press secretary Sean Spicer said Monday that Trump was not talking literally or specifically when he accused Obama of ""wiretapping"" his campaign. ""If you look at the president's tweet, he said wiretapping in quotes. There's been substantial discussion in several reports,"" Spicer said, referencing ""surveillance that occurred."" Sessions also reiterated today that he and the Russian ambassador to the United States, Sergey Kislyak, held meetings but did not discuss politics or the U.S. election. The two ""discussed issues like Ukraine and things of that nature,"" he said. He added: ""I never considered meeting with the Russian ambassador to be anything improper."" ", -2420,2017/3/14,http://abcnews.go.com/US/russian-agents-facing-charges-yahoo-hacking-attacks/story?id=46142396,How Russian agents allegedly directed massive Yahoo cyber attack,,"Two officers with Russia's intelligence service (at least one who works in a unit designed to fight cybercrime) directed a far-reaching hacking and espionage scheme that targeted Yahoo users, swiping personal information from hundreds of millions of people, including accounts belonging to Russian and U.S. government officials, the U.S. Department of Justice announced this morning. This marks the first time Russian government officials have been charged by the U.S. for a cyber crime, a breach which officials say affected at least 500 million accounts. Officials said some of the information had intelligence value but some was also leveraged for financial gain. ""The defendants targeted Yahoo accounts of Russian and U.S. government officials, including cyber security, diplomatic and military personnel,"" said the head of the DOJ's National Security Division, Mary McCord. ""They also targeted Russian journalists; numerous employees of other providers whose networks the conspirators sought to exploit; and employees of financial services and other commercial entities."" Just before this morning's announcement, McCord attended a cyber event in Washington, D.C., where at least three Russian diplomats were in the audience. When the moderator mentioned ""russian hackers,""?the head of the Russian embassy's military political section, Konstantin Serednyakov, visibly chuckled. The FSB officers, Dmitry Dokuchaev, and his boss, Igo Suschin, who had cover as the head of info security at a Russian financial firm, allegedly hired two hackers, Alexsey Belan and Karim Baratov to help carry out the scheme. Baratov, a Canadian and Kazakh national, was arrested in Canada on Wednesday while the three other remain fugitives in Russia. Belan, who remains a fugitive, has been wanted by the FBI since 2012 for allegedly stealing databases from three companies in 2012 and then helping to negotiate the sale of that information. In a twist, the FSB unit Dokuchaev works for, the Center for Information Security (a.k.a. Center 18), ""is also the FBI's point of contact in Moscow for cyber-crime matters,"" said McCord. ""The involvement and direction of FSB officers with law enforcement responsibilities makes this conduct that much more egregious. There are no free passes for foreign state-sponsored criminal behavior,"" she added. In 2014, at the behest of FSB officers, Belan allegedly led an operation that stole a Yahoo database that contained info on more than 500 million Yahoo user accounts. They were ultimately able to access the full contents of more than 6,500 Yahoo user accounts, DOJ officials said. At the same time, the FSB officers and Belan allegedly hired Baratov to use the info from the Yahoo accounts to try and access 50 specific Gmail accounts, and another 30 accounts from other companies. Many of these 80 targets were inside Russia. The DOJ alleged that Dokuchaev and Sushchin ""protected, directed, facilitated and paid criminal hackers to collect information through computer intrusions in the U.S. and elsewhere. ... They worked with co-defendants Alexsey Belan and Karim Baratov to obtain access to the email accounts."" Belan was named one of the FBI's Cyber Most Wanted criminals in November 2013. Belan has been indicted twice before in the U.S. for intrusions into e-commerce companies, McCord said this morning. Belan was arrested in Europe in June 2013 on a request from the U.S., but he fled to Russia before he could be extradited. The Justice Department said that when Belan returned to Russia, instead of detaining him, Russian agents Dokuchaev and Sushchin ""used him to gain unauthorized access to Yahoo's network. In late 2014, Belan allegedly stole a copy of at least a portion of Yahoo's User Database(UDB), a Yahoo trade secret that contained, among other data, subscriber information including users""?names, recovery email accounts, phone numbers and certain information required to manually create, or 'mint,' account authentication web browser 'cookies' for more than 500 million Yahoo accounts."" ""Belan used his relationship with the two FSB officers and his access to Yahoo to commit additional crimes to line his own pockets with money,"" McCord said this morning. ""Specifically, Belan used his access to Yahoo to search for and steal financial information, such as gift card and credit card numbers, from users""?email accounts. He also gained access to more than 30 million Yahoo accounts, whose contacts were then stolen to facilitate an email spam scheme."" The DOJ said, ""When Dokuchaev and Sushchin learned that a target of interest had accounts at webmail providers other than Yahoo, including through information obtained as part of the Yahoo intrusion, they tasked their co-conspirator, Baratov, a resident of Canada, with obtaining unauthorized access to more than 80 accounts in exchange for commissions."" The Department of Justice said that during the conspiracy, the two FSB officers furthered ""Belan's other criminal activities, by providing him with sensitive FSB law enforcement and intelligence information that would have helped him avoid detection by U.S.""", -2421,2017/3/15,http://abcnews.go.com/Politics/trump-expected-announce-rollback-auto-emissions-regulations-michigan/story?id=46133053,Trump puts brakes on Obama-era auto emissions regulations in Michigan visit,,"President Donald Trump put the brakes on Obama-era auto emissions and fuel regulations in his visit to Ypsilanti, Michigan, this afternoon. Trump used his meeting with auto executives and workers to announce a restart of the review of vehicle fuel efficiency rules, or CAFE standards, that the auto industry has called for. The rules put forward by the Obama administration sought to raise the fleet average fuel efficiency to more than 50 miles per gallon by 2025 from 27.5 miles per gallon in 2010. In his speech, the president described the auto industry as a ""wonderful business"" that has been ""hurt."" Behind him was a sign that read ""Buy American ""?Hire American."" ""We're going to work on the CAFE standards so you can make cars in America again,"" Trump said. ""We're gonna help the companies and they're gonna help you."" He added, ""There is no more beautiful sight than an American-made car."" With Secretary of State Rex Tillerson in Asia on his first overseas trip, Trump took a swipe at China, saying since it ""entered the World Trade Organization,"" the U.S. has lost 60,000 factories. ""We don't need friends abroad,""?Trump said. ""You hear where they say it's good for us because people like us abroad. They don't like us. They think we're stupid people.""?He added: ""But no friendship is strengthened through economic abuse. Because we have been abused. And no country can long lead the free world if it does not protect its industries."" Trump also repeated his warning to punish American companies that threaten to move their companies abroad. ""We've gone through it for many years, decades. Not going to happen anymore,""?Trump said. ""And if it is, there's consequences to pay for the companies that desert us and fire our employees. There are consequences.""?Trump also teased a ""big announcement"" related to the auto industry that will come out next week, but he did not reveal any details.", -2422,2017/3/15,http://abcnews.go.com/Business/wireStory/fed-hikes-key-rate-time-months-46150364,Fed raises rate and sees more hikes as US economy improves,,"The Federal Reserve has raised its benchmark interest rate for the second time in three months and forecast two additional hikes this year. The move reflects a consistently solid U.S. economy and will likely mean higher rates on some consumer and business loans. The Fed's key short-term rate is rising by a quarter-point to a still-low range of 0.75 percent to 1 percent. The central bank said in a statement that a strengthening job market and rising prices had moved it closer to its targets for employment and inflation. The message the Fed sent Wednesday is that nearly eight years after the Great Recession ended, the economy no longer needs the support of ultra-low borrowing rates and is healthy enough to withstand steadily tighter credit. The decision, issued after the Fed's latest policy meeting, was approved 9-1. Neel Kashkari, president of the Fed's regional bank in Minneapolis, was the dissenting vote. The statement said Kashkari preferred to leave rates unchanged. The Fed's forecast for future hikes, drawn from the views of 17 officials, still projects that it will raise rates three times this year, unchanged from the previous forecast in December. But the number of Fed officials who think three rate hikes will be appropriate for 2017 rose from six to nine. The central bank's outlook for the economy changed little, with officials expecting growth of 2.1 percent this year and next year before slipping to 1.9 percent in 2019. Those forecasts are far below the 4 percent growth that President Donald Trump has said he can produce with his economic program. The Fed's rate hike should have little effect on mortgages or auto and student loans. The central bank doesn't directly affect those rates, at least not in the short run. But rates on some other loans ""?notably credit cards, home equity loans and adjustable-rate mortgages ""?will likely rise soon, though only modestly. Those rates are based on benchmarks like banks' prime rate, which moves in tandem with the Fed's key rate. After the Fed's announcement, major banks began announcing that they were raising their prime lending rate from 3.75 percent to 4 percent. Mark Vitner, an economist at Wells Fargo, noted that the Fed's statement provided little hint of the timing of the next rate hike. The lack of specificity gives the Fed flexibility in case forthcoming elections in Europe or other unseen events disrupt the global economy. ""They don't want to prematurely set the table for a rate hike,"" Vitner said. ""I think they're confident, but it's hard not to be cautious after we've had so many shocks over the years."" Stock prices rose and bond yields fell as traders reacted to the Fed's plans to raise rates gradually. The Dow Jones industrial average, which had been only modestly positive before the decision was announced at 2 p.m. Eastern time, closed up 112 points. The Fed's statement made few changes from the last one issued Feb. 1. But it did note that inflation, after lagging at worrisomely low levels for years, has picked up and was moving near the Fed's 2 percent target. And it adopted some new language hinting that it might be tolerant of higher-than-optimal inflation for some unspecified period. Economists said this suggested that officials could let inflation top their 2 percent target, just as inflation remained stuck below 2 percent for years after the Great Recession. The new language ""reflects the fact that inflation may run above 2 percent for some time,"" Michael Gapen, an economist at Barclays, said in a note to clients. Many economists think the next hike will occur no earlier than June, given that the Fed probably wants time to assess the likelihood that Congress will pass Trump's ambitious program of tax cuts, deregulation and increased spending on infrastructure. In recent weeks, investors had seemed unfazed by the possibility that the Fed would raise rates several times in the coming months. Instead, Wall Street has been sustaining a stock market rally on the belief that the economy will remain durable and corporate profits strong. A robust February jobs report ""?235,000 added jobs, solid pay gains and a dip in the unemployment rate to 4.7 percent ""?added to the perception that the economy is fundamentally sound. That the Fed is no longer unsettling investors with the signal of forthcoming rate increases marks a sharp change from the anxiety that prevailed after 2008, when the central bank cut its key rate to a record low and kept it there for seven years. During those years, any slight shift in sentiment about when the Fed might begin raising rates ""?a step that would lead eventually to higher loan rates for consumers and businesses ""?was enough to move global markets. The Fed has managed its control of interest rates with exceeding caution, beginning with an initial hike in December 2015. It then waited an entire year before raising rates again in December last year. But now, the economy is widely considered sturdy enough to handle modestly higher loan rates. While the broadest gauge of the economy's health ""?the gross domestic product ""?remains below levels associated with a healthy economy, many analysts say they're optimistic that Trump's economic plans will accelerate growth. His proposals have managed to boost the confidence of business executives and offset concerns that investors might otherwise have about the effects of Fed rate increases. Yet for the same reason, some caution that if Trump's program fails to survive Congress intact, concerns will arise that his plans won't deliver much economic punch. Investors may start to fret about how steadily higher Fed rates will raise the cost of borrowing and slow spending by consumers and businesses. ""?AP Economics Writer Christopher S. Rugaber contributed to this report. ""?Animated explainer: http://bit.ly/2nlGO0K", -2423,2017/3/15,http://abcnews.go.com/Politics/wireStory/ryan-stresses-trump-hand-gop-health-care-bill-46143383,Gov't report: More than 12M signed up for 'Obamacare',,"The government says more than 12 million people have signed up for coverage this year under former President Barack Obama's health care law, even as the Republican-led Congress debates its repeal. The official national figure of 12.2 million does not include an additional 765,000 people signed up under an option in the Obama-era law called the Basic Health Plan, which is used by two states, New York and Minnesota. Traditionally, that figure has been reported separately because of differences in the type of health plan provided. But counting those enrollees as well, sign-ups approach 13 million people. ""This report is a reminder that while there's a big debate in Washington about the future of the Affordable Care Act, the law remains in place for now and is covering millions of people,"" said Larry Levitt of the nonpartisan Kaiser Family Foundation. The report was issued by the Centers for Medicare and Medicaid Services, which also administers the ACA's insurance markets. Meanwhile, House Speaker Paul Ryan was stressing that President Donald Trump helped congressional Republicans write their beleaguered health care bill. His comments came as GOP leaders struggled to stem defections from conservatives and moderates just a week before he hopes to push the measure through the House, and days after congressional budget analysts said it would lead to 24 million more uninsured people in a decade. In the Senate, a senior Republican said even if the health bill passes the House, ""it wouldn't pass the Senate."" On a call with state reporters, Sen. Charles Grassley, R-Iowa, said his party has to act, but he's concerned that middle-aged and older adults will have to pay more under the House bill. House GOP leaders met with Senate counterparts recently and ""they got a clear message from Senate Republicans that there had to be changes,"" said Grassley. The GOP bill ""?the American Health Care Act""?would repeal major elements of Obama's law, cap future federal spending on Medicaid for low-income people, and reverse tax increases on wealthy Americans used to finance coverage expansion. Conservatives say the bill is an inadequately weak repeal of ""Obamacare."" Party moderates say it will push too many constituents off coverage, including Obama's expansion of Medicaid for more low-earning people and others who've bought insurance ""?often with federal subsidies ""?on government-run online marketplaces. The latest government numbers on sign-ups fell short of the Obama administration's target of 13.8 million for 2017. Moreover, they represent initial enrollment, and there's usually significant attrition over the course of a year. Nonetheless, experts said the report undercuts Republican assertions that the health law's insurance markets are teetering on the verge of collapse. The market ""remains fairly stable in 2017 compared to previous years,"" said Caroline Pearson of the consulting firm Avalere Health. The report also underscored the importance of the ACA's financial assistance, a combination of tax credits to help pay premiums and reduced cost sharing for people with low incomes. Even though list price premiums for a standard ""silver"" plan went up by more than 20 percent this year, the average premium paid by HealthCare.gov customers after receiving their tax credit only went up by $1 this year, the report said. HealthCare.gov is the federal online insurance market serving 39 states; the remaining states run their own websites. Nationally, more than 8 in 10 enrollees were eligible for income-based tax credits to help pay their premiums, and nearly 6 in 10 were eligible for additional assistance with out-of-pocket costs like deductibles and copayments, the report said. Although the Republican bill would also provide tax credits, they would not be designed to keep pace with rising premiums. And the GOP would eliminate the extra help for out-of-pocket costs, but states would be able to set up such programs of their own. ""The markets continue to be dominated by enrollees receiving subsidies,"" said Pearson. ""Without those subsidies, most enrollees are likely to drop out of the market, since they would not be able to afford coverage."" The enrollment numbers land in the middle of a legislative debate already roiled by a Congressional Budget Office report that forecast coverage losses and rising premiums for older adults. Speaking Wednesday on Fox Business Network, Ryan, R-Wis., said he's open to ""improvements and refinements"" of the Republican bill, but said there are limits. ""The major components are staying intact because this is something we wrote with President Trump,"" Ryan said. ""This is something we wrote with the Senate committees."" Furthering the GOP push to round up votes, Vice President Mike Pence was meeting at the Capitol with a large group of conservatives. House Republicans were holding an early evening closed-door meeting at which leaders were hoping to firm up support. The House Budget Committee, whose membership includes several conservative mavericks, was expected to sign off on the measure Thursday in what could be a close vote. ""?AP writer David Pitt in Des Moines contributed.", -2424,2017/3/15,http://abcnews.go.com/Politics/epa-roll-back-chemical-plant-safety-rules/story?id=46129635,EPA may roll back chemical plant safety rules,,"Environmental Protection Agency Administrator Scott Pruitt has delayed regulations that were made in response to a 2013 explosion at a fertilizer storage plant in West, Texas, that killed 15 people and injured more than 250 others. The effective date of the rules, focusing on preparing for chemical accidents, has been pushed back to June 19, according to the EPA. The public comment period for the rule has been extended to May 13, which will allow time for the agency to decide if it wants to further delay the rule. Last December, the Obama administration put the regulations in place in response to the explosion, at the West Fertilizer Co. plant in April 2013, according to Hillary Cohen, a spokesperson for the Chemical Safety Board, an independent federal agency charged with investigating industrial chemical accidents. The regulations, which were based on the CSB's recommendations, were devised to set standards for how companies that own chemical plants, like West Fertilizer, make information available to their surrounding communities so that residents and first responders can prepare for accidents like the explosion. Cohen told ABC News that her organization recommended the regulations primarily to keep people better informed about what is happening at nearby facilities. ""The CSB's investigation of the West Fertilizer accident found significant gaps in information critical to first responders. The EPA's proposed rule was in part a response to our findings and recommendations,"" Cohen said. ""In the final analysis, facility employees, communities and first responders should have adequate information to understand the risks inherent in such facilities, to ensure everyone's safety."" The American Chemistry Association, a lobbying arm for the industry, expressed concerns about the regulations and promised to undertake an effort to review them. Scott Jensen, a spokesperson for the group, said in a statement that the EPA made the ""right call in delaying the implementation of problematic changes to the Risk Management Plan program."" Pruitt, 48, a former Oklahoma attorney general, was narrowly confirmed by the Senate for his post in February. President Trump has said he wants to roll back many Obama-era EPA regulations. Industry groups submitted a petition to Pruitt in February, asking him for a delay, saying that ""an administrative stay is appropriate and necessary while the agency considers and addresses the numerous flaws"" in the regulations. He issued a statement on the EPA's website on Monday, saying the agency needs time to reconsider the Obama-era regulations. ""As an agency, we need to be responsive to concerns raised by stakeholders regarding regulations so facility owners and operators know what is expected of them,"" Pruitt wrote. Twelve of the 15 people who died at the West Fertilizer plant explosion were first responders, according to Frank Patterson, who led the Federal Emergency Management Agency's response to the incident. Firefighters responded to a fire at the plant and began evacuating people in the vicinity. Shortly thereafter, an explosion tore through a four-to-five-block radius, leveling roughly 80 homes and a middle school and trapping 133 residents of a nursing home in rubble. The blast was so powerful, residents said, that it shook the ground. There were reports that people heard it several miles away, according to an ABC News article published at the time. Patterson declined to comment on Pruitt's decision to delay the regulations until he could appraise the agency's final decision but told ABC News that the man-made disaster was the the worst such incident he had encountered in his career in emergency management. ""I was headed to what I was told was a fire, and when I got there, I realized how bad it was,"" Patterson said. ""For me, it was a pressure situation, and I think everybody who responded to the incident felt that pressure,"" he added.", -2425,2017/3/15,http://abcnews.go.com/Politics/wireStory/white-house-meeting-saudi-underscores-kingdoms-influence-46146570,White House meeting on Saudi underscores kingdom's influence,,"The White House indicated Wednesday that Saudi Arabia will remain a close consultant to President Donald Trump on security and economic challenges in the Middle East, including the Israeli-Palestinian conflict and the Iran nuclear deal. The White House statement offered a glimpse at how this nascent administration's Middle East policies are taking shape, and how influential Saudi Arabia may be in shaping them. It left little doubt of the president's commitment to reinforcing relations with Saudi Arabia in a lengthy readout Wednesday ""?a day after the visit. Trump's rhetoric toward the Israel-Palestinian conflict has notably softened since he was sworn into office. Trump abandoned, at least for now, his vow to move the U.S. Embassy from Tel Aviv to Jerusalem, a plan long in the works but never executed due to the potential security implications. Trump has also urged Israel to stop settlement expansions in disputed territories and said that the Israelis and Palestinians should determine for themselves whether a one- or two-state solution may work best. Saudi Arabia has long said that any normalization of relations with Israel must include a just resolution first to Palestinian statehood, including claims to east Jerusalem and one of Islam and Judaism's holiest sites. More broadly, the statement also addresses the need for collaboration in the fight against the Islamic State militant group ""?the White House referring to the group as ""Daesh,"" its Arabic acronym, for the first time. The Trump administration typically refers to the group by its English acronym, ISIS. The White House emphasized the need to normalize relations between the U.S. and Saudi Arabia, which had soured in recent years over Saudi objections to the Iran nuclear deal, reached by the Obama administration. Saudi Arabia has welcomed Trump's hard line rhetoric on Iran, but the White House statement Wednesday notes ""the importance of confronting Iran's destabilizing regional activities while continuing to evaluate and strictly enforce the Joint Comprehensive Plan of Action,"" indicating that the agreement may not be dismantled, as Trump had promised during the campaign. The statement emphasized the need to strengthen economic and commercial ties as well. The two sides discussed the creation of a new United States-Saudi program, undertaken by joint U.S.-Saudi working groups, which would embark on initiatives in the energy, industry, infrastructure, and technology sectors, with opportunities worth more than $200 billion, the statement said. ""?Associated Press writer Aya Batrawy in Dubai contributed to this report.", -2426,2017/3/15,http://abcnews.go.com/International/wireStory/ethiopia-starts-days-mourning-deadly-landslide-46139890,Death toll in Ethiopia landfill collapse up sharply to 113,,"The death toll from a collapse at a landfill outside Ethiopia's capital has risen sharply to 113, an Addis Ababa city official said Wednesday, as the country began three days of mourning for victims who were mostly women and children. Dagmawit Moges confirmed the new toll Wednesday evening. Meanwhile, Addis Ababa Mayor Diriba Kuma told state broadcaster EBC the search-and-rescue effort soon would be completed and an investigation into the cause of the accident would begin. Hopes were waning for survivors, though an official with the city's emergency department, Nigatu Mamo, said one person had been pulled out alive on Monday, two days after the disaster. Saturday's collapse of a mountain of garbage buried makeshift mud-and-stick homes inside the Koshe landfill on the outskirts of the capital. Excavators and rescuers have been pulling bodies from the black mud since then. Nigatu said excavators were being redeployed from various construction projects around Addis Ababa to help in the search. ""We will continue the effort until we are directed to stop it. Our rescuers are working in two shifts, day and night,"" the emergency official said. Residents have suggested various reasons for the collapse. Some blamed the dumping of trash that had resumed at the landfill in recent months after protests at a newer landfill site. Others blamed the construction of a new waste-to-energy plant at Koshe. Officials said they have already relocated about 300 people from the landfill, where hundreds of waste-pickers salvaged items to make a living and others found inexpensive housing. The mayor said people whose family members died in the collapse have received money ranging from $430 to $650 each, and that they would be resettled permanently in the coming years. The landfill has been a dumping ground for the capital's garbage for more than 50 years. Smaller collapses have occurred at Koshe ""?or ""dirty"" in the local Amharic language ""?in the past two years but only two or three people were killed, residents said. The deadly collapse has been a shock to many in a country that has prided itself on having one of Africa's fastest-growing economies.", -2427,2017/3/15,http://abcnews.go.com/US/wireStory/texas-congressman-tells-town-hall-attendee-shut-46140302,Texas congressman tells town hall attendee to 'shut up',,"A Republican congressman from Texas told a constituent to ""shut up"" over the weekend during a town hall meeting in his home district. Congressman Joe Barton, who represents part of the Arlington area, is seen on video calmly explaining that he voted against federal legislation to protect women against violence because he believes that the issue is best left to the states. That prompted several in attendance to yell in disagreement. Barton pointed to one man and told him, ""You sir shut up."" Barton later said in a statement that that the man ""continued to speak over myself and many others who were seeking recognition in orderly fashion."" Chris Lewis, who says he was the target of Barton's remark, tells the Arlington Star-Telegram he wasn't upset and has ""heard worse.""", -2428,2017/3/15,http://abcnews.go.com/Politics/donald-trumps-taxes/story?id=46142499,What we do - and don't - know about Donald Trump's taxes,,"President Donald Trump's tax returns were a major issue in the presidential campaign, and they still remain a mystery now that he's in the White House. A two-page summary of his 2005 return was released Tuesday night, and while it sheds some light on the former real estate mogul's income, many questions still loom about his business dealings, his personal wealth and his investments. Here is a review of what is known about the president's tax returns. Independent journalist David Cay Johnston obtained the purported first two pages of Trump's 2005 tax return and made them public Tuesday night. Johnston appeared on Rachel Maddow's MSNBC show to report on the documents, which he says were delivered anonymously to his mailbox. Johnston speculated that Trump, or someone close to him, may have been the source of the documents. He is the first president in decades to not release his taxes, breaking with long-standing tradition. The White House issued a statement confirming the figures in the document -- which state that Trump paid $38 million in federal taxes on income of more than $150 million in 2005, meaning he paid an effective tax rate of 25 percent -- shortly before Johnston appeared on TV. ""Before being elected president, Mr. Trump was one of the most successful businessmen in the world with a responsibility to his company, his family and his employees to pay no more tax than legally required,"" a statement from the White House said. ""That being said, Mr. Trump paid $38 million even after taking into account large scale depreciation for construction, on an income of more than $150 million, as well as paying tens of millions of dollars in other taxes such as sales and excise taxes and employment taxes and this illegally published return proves just that."" Johnston said on ""Good Morning America"" today that the latest documents show ""that he was very successful and it also implies that he had an average income of $81.5 million in the previous 10 years."" The two-page summary of the 2005 return, along with the few other available tax documents, still do not answer outstanding questions about the president's taxes, such as sources of income, use of offshore bank accounts and the overall health of his various businesses. ""In terms of what could be in them -- it's anybody's guess,"" political law expert Kenneth Gross told ABC News in May. ""There could be no problems. There could be problems on the amount of tax he's paying, deductions he's taken, income he's taken, any host of issues in the calculation of tax."" There has been much speculation about Trump's wealth. He has said his net worth is $10 billion, though outside groups, such as Forbes, put his net worth at $4.5 billion. Even if a full set of Trump's latest tax returns is released, that doesn't mean the question of his true net worth will be answered, according to Rachel Stockman, an editor at LawNewz. ""He wouldn't be required to report [the actual value of his assets]. He would just have to report the money coming in and coming out of his businesses and whatever else he owns, including investments,"" Stockman told ABC News in May. Court cases and other litigation procedures have led to the release of three years of tax returns -- each showing the president having paid $0 in federal income tax. Two of the returns were from 1978 and 1979 and showed Trump's ties to business dealings with the New Jersey Casino Control Commission. Another return from 1984 was disclosed by Trump in two separate legal disputes in New York State courts in the early 1990s. Trump incurred no tax liability in 1978 and 1979, according to New Jersey gambling regulators who were investigating his tax returns and personal finances in connection with the Trump Plaza Corporation's 1981 application for a casino license. Trump claimed negative income in both those years: losses of $406,379 in 1978 and $3,443,560 in 1979. In 1975, 1976, and 1977, he claimed $76,210, $24,594 and $118,530 in income, respectively, paying $18,714, $10,832 and $42,386 in federal taxes, according to the report by the Casino Control Commission. Trump's 1984 federal income tax return was used in two court cases brought by Trump in New York. In the first case, Trump's legal team included his 1984 return that included a Schedule C, the form used by sole proprietors, The Daily Beast reported. There was no income listed on that form but a deduction of $626,264 in expenses was included. The New York Times reported in October 2016 that it had received a leaked copy of Trump's 1995 federal income taxes. The documents showed that he did not pay federal income taxes that year and claimed about $916 million in losses ""that would have been large enough to wipe out more than $50 million a year in taxable income over 18 years,"" The Times reported. Trump made history by being the first presidential candidate in more than 40 years to refuse to release his tax returns, saying repeatedly that he was under audit by the IRS. An audit does not prevent individuals from releasing their returns. In May 2016, the issue came up multiple times. He said on NBC's ""Meet the Press"" that he would release them before the election ""if the auditors finish."" Three days later, he tweeted that ""that my taxes are under routine audit and I would release my tax returns when audit is complete, not after election!"" In interview I told @AP that my taxes are under routine audit and I would release my tax returns when audit is complete, not after election! In an interview with the AP, Trump said ""there's nothing to learn from them."" Two days later, he told ""Good Morning America"" that he tried to pay as little as possible in taxes. ""I try very hard to pay as little tax as possible and have said that for the last two years,"" Trump said on May 13, ""because this country wastes our money."" When asked on ""GMA"" to share his tax rate, Trump said: ""It's none of your business."" In September, Trump told ABC News that voters did not care about whether he should release his taxes, while his then-running mate, Indiana Gov. Mike Pence, argued that the calls to release them are a ""distraction."" ""I think people don't care,""?Trump said of his tax returns. ""I don't think anybody cares, except some members of the press.""? Trump said he has provided the ""most extensive financial review of anybody in the history of politics,"" referencing his financial disclosure form and said because he's under a ""routine audit,"" he's not able to make his tax returns public. During that interview, Trump and Pence said that their tax returns would be released. Pence subsequently released 10 years of his family's tax returns. At the first presidential debate on Sept. 26, Democratic candidate Hillary Clinton suggested a few possible reasons Trump was refusing to release his returns. After she charged that he didn't pay federal income taxes in some years, he boasted, ""That makes me smart."" ABC News' John Santucci, Corinne Cathcart, Ryan Struyk and Justin Fishel contributed to this report.", -2429,2017/3/15,http://abcnews.go.com/Politics/trump-source-leaked-tax-return-journalist-ho-received/story?id=46140409,"Trump 'probably not the source' of leaked tax return, journalist who received documents says",,"The journalist who obtained the purported first two pages of President Donald Trump's 2005 tax returns and made them public said this morning that Trump was probably not behind the anonymous release. ""The venom and the anger and the falsehoods in the White House statement suggests that, no, he's probably not the source,"" David Cay Johnston told ABC News' ""Good Morning America"" today. ""That tells me that this is somebody who either worked at the accounting firm or had connections to it or this copy was turned over to someone in a regulatory proceeding, in litigation, in a financial statement. And why not the whole return?"" Johnston said the two-page document was delivered anonymously to his mailbox and there was no return address on the envelope. He speculated Tuesday night that Trump, the first president in decades not to release his tax returns, or someone close to him might have been the source of the document. It's unclear where the document originated. Johnston appeared on MSNBC Tuesday night to report on the document, which is stamped with the words ""client copy"" on the second page. The document shows Trump declared $103 million in losses in 2005, placing him well under the top income tax bracket of 35 percent. But his effective tax rate of 25 percent is much higher than what former Republican presidential nominee Mitt Romney paid the year before he ran for the White House, which was just 14 percent. It's also notable that Trump paid taxes at all in 2005. Although he has refused to discuss his income tax rate or release any documents, The New York Times reported last year that Trump's 1995 tax returns showed he took a $916 million loss that ""would have been large enough to wipe out more than $50 million a year in taxable income over 18 years."" The document does not show with whom Trump has done business, which, Johnston said, the president probably wants to keep private. ""I don't think he wants us to know all the people he's done business with, both those he's beholden to and those he receives income from,"" Johnston told ""GMA"" today. Before Johnston's release of the information Tuesday night, the White House issued a response to ABC News lauding Trump's income and taxes paid. ""Before being elected president, Mr. Trump was one of the most successful businessmen in the world, with a responsibility to his company, his family and his employees to pay no more tax than legally required,"" the White House said in a statement. ""That being said, Mr. Trump paid $38 million dollars even after taking into account large scale depreciation for construction, on an income of more than $150 million dollars, as well as paying tens of millions of dollars in other taxes such as sales and excise taxes and employment taxes, and this illegally published return proves just that."" ABC News' Justin Fishel, Calvin Lawrence Jr. and Kelly McCarthy contributed to this report.", -2430,2017/3/15,http://www.cnn.com/2017/03/15/europe/netherlands-dutch-elections/index.html,"Dutch elections: PM's party leading, exit polls show","(CNN)Conservative Dutch Prime Minister Mark Rutte's party has taken the lead in an election widely seen as an indicator of populist sentiment in Europe, exit polls for the national broadcaster NOS indicated Wednesday.","Estimates project the People's Party for Freedom and Democracy (VVD) is followed by a three-way tie for second: Geert Wilders' Party for Freedom (PVV), Christian Democratic Appeal (CDA) and and D66 (Democrats). Wilders, a far-right firebrand, tweeted: ""PVV voters thanks. We won seats, first victory is in. Rutte hasn't got rid of me yet."" Other parties expected to win seats are: GroenLinks (Green left), the Socialist Party and the Labour (PVDA), led by Deputy Prime Minister Lodewijk Asscher. The vote was widely seen as a test of just how far populist sentiment has spread across Europe, in the wake of US President Donald Trump's victory and the Brexit referendum vote in the UK. Controversial anti-immigrant, anti-European Union figure Wilders had run on a ""de-Islamification"" platform, calling for Islamic schools to be closed and the Quran and burqa to be banned. That message struck a chord with many ordinary Dutch voters who have been hard hit by the government's austerity measures, and who feel the country has taken in too many refugees and migrants. ""The Netherlands is full,"" Wilders supporter Jack told CNN outside a polling station in Volendam on Wednesday. ""If it were up to me I would have stopped all [Turkish people] at the border."" Others were disturbed by the tone of the campaign, and said they had voted tactically, to keep the far right out of power, or for parties they trusted to fight for causes they cared about, irrespective of the current political climate. ""I thought it was important and so I voted strategically,"" said Amsterdam resident Kathie Somwerwil. ""I usually vote a little more left of center but at least now with this Wilders, I think this is not the Dutch way ... so I voted VVD for Mr. Rutte."" Author Bert Nap said he had voted for the progressive PvdA party because it had had the guts to go into government with Rutte's party, despite that making it ""very unpopular"" with many supporters. ""I want to sustain a party in our political system that has acted very strongly ... They will be decimated in this election but they have to be able to come upright for the next election and so you have to sustain it,"" he said. Coalitions take a while to form The splintered political landscape in the Netherlands -- there were 28 parties on the ballot -- and the country's system of proportional representation mean coalition government is the norm. But it can also lead to lengthy periods of political instability and uncertainty. The average time taken to form a coalition cabinet in the post-war era has been 89.5 days, according to the House of Representatives website. In 1977, it took 208 days for Dries Van Agt's Christian Democrats to reach a power-sharing deal. Voters say they are expecting a protracted period of talks before the make-up of the next government becomes clear. ""I think there will be a lot of negotiations,"" said research analyst Robin Vanstraalen. ""Given the whole fragmentation and the polls showing it will be a long process. And eventually it will end up in the middle -- which is where we have been for the last few years already."" Factors that boosted support for leader At one stage, Wilders and Rutte were neck-and-neck in the Peilingwijzer poll of polls by Leiden University, but in recent days Rutte had taken the lead. He had moved to the right in response to Wilders' popularity. Andre Krouwel, political scientist at the Free University Amsterdam, and owner of election website Kieskompas, said Turkish President Recep Tayyip Erdogan's ongoing war of words with the Dutch government appeared to have boosted support for Rutte. Tensions between the Netherlands and Turkey have been high since the Dutch government refused to allow Turkish Foreign Minister Mevlut Cavusoglu to visit Rotterdam for a political rally last weekend; Erdogan retaliated by blaming the Netherlands for the Srebrenica massacre in 995. Voter turnout in the Netherlands is traditionally high -- almost 75% at the last election in 2012 -- and there are indications that Wednesday's polls are no exception. A CNN reporter in The Hague State saw long queues forming at polling booths in the city's central station as commuters returned home from work. And NOS reported that by 5:45 p.m. local time, 55% of the electorate had voted -- up from 48% at the same time in 2012. Amsterdam polling station volunteer Hanneke Spijker told CNN large numbers of people had been coming out to vote since early Wednesday morning. ""It's incredible,"" she said. ""I wouldn't be surprised if it will be a record turnout ... there were lines, and we never have lines.""", -2431,2017/3/15,http://www.cnn.com/2017/03/15/europe/populism-in-european-elections-visual-guide/index.html,Will Europe ride the populist wave? A visual guide,(CNN)Europe's populist movements have already made their mark on the European political landscape -- and a series of upcoming elections looks set to determine if they are here to stay.,"Emboldened by the UK's decision to leave the EU and by US President Donald Trump's anti-establishment victory, far-right, nationalist and euroskeptic parties are vying for power in the Netherlands, France and Germany. Here's a look at how -- and why -- some of Europe's populist parties have swept into mainstream politics. The Netherlands Dutch voters cast their ballots on March 15, in the first European elections slated for 2017. In the run up to the vote, the anti-Muslim, anti-immigrant Party for Freedom (PVV) has grown in popularity among Dutch voters unhappy with the status quo. Its leader, the flamboyant Geert Wilders -- dubbed the ""Dutch Trump"" by some -- made his name internationally in 2008 with the provocative online film ""Fitna,"" which juxtaposed the aftermath of terrorist attacks with verses from the Quran. In February, he called the Netherland's sizeable Moroccan population ""scum"" just months after being convicted of inciting discrimination against Dutch-Moroccans in 2014. The Netherlands has a significant Muslim community, making up an estimated 5% of the total adult population in 2014. Wilders is running on a party manifesto calling for the ""de-Islamification"" of the Netherlands. In it, he pledges to shut down the country's Islamic schools, close the borders to migrants from Islamic nations, ban the burqa and the Quran, and imprison radical Muslims who have committed no crimes on a ""preventative"" basis. Why refugees in the Netherlands fear the status quo He's also promised a referendum on the Netherlands' membership of the European Union, following Britain's vote for Brexit in 2016. Wilders is facing off against Prime Minister Mark Rutte, who is seeking a third term in power and has touted the country's economic stability under his leadership. But Rutte and his People's Party for Freedom and Democracy (VVD) appear to have shifted to the right to compete with Wilders, rather than taking up an opposing position. In January, Rutte wrote an open letter in which he said immigrants who did not assimilate into Dutch society should ""behave normally, or go away."" France France will hold its first round of general elections on April 23, with a runoff two weeks later on May 7 if no candidate gets more than 50% of the vote. In the wake of a series of terrorist attacks and an influx of refugees fleeing Middle East unrest, Marine Le Pen, leader of France's far right National Front party, has emerged as one of the frontrunners. Le Pen, leader since 2011, has tried to ""detoxify"" the party founded by her father Jean-Marie of its reputation for racism and xenophobia -- seeing its share of the vote rise to 27% in last year's regional elections. Le Pen says her party can cure France's economic malaise; since the 2008 economic crisis, unemployment has risen from 7.1% to around 10%, while almost a quarter of the nation's youth is now out of work. Economic growth in France, the eurozone's second-largest economy, slowed to just 0.2% of GDP at the end of 2016. The National Front leader has employed similar tactics to US President Trump by tapping into the frustrations of the French electorate and focusing on a more nationalistic agenda to sway voters to her corner. At the launch of her presidential campaign in February, Le Pen said she favors a return to the French franc currency, wants France out of NATO and pledged to hold a referendum on the country's membership of the EU. ""What is at stake in this election ... is whether France can still be a free nation,"" Le Pen told a crowd of thousands at a rally in Lyon. ""The divide is not between the left and right anymore but between patriots and globalists!"" She has also praised Trump's action on immigration and said his election ""shows that people are taking their future back."" ""Clearly French values are being attacked as are the values of other countries and I worry other countries will be affected in the future,"" she said. Le Pen's chances of winning are aided by a scandal that has ensnared one of her key opponents, Republican Party candidate Francois Fillon. The 62-year-old lawyer-turned-politician was placed under formal investigation this week over allegations his wife and two of his adult children were given no-show jobs that earned them nearly �1 million ($1.08 million). But Le Pen is also under scrutiny after several members of her staff were accused by officials of being paid for non-existent jobs at the European Parliament. An independent centrist candidate, Emmanuel Macron, is also in the running. Germany German Chancellor Angela Merkel took a bold step by vowing to welcome one million refugees in 2015, and in 2016, she paid for it at the ballot box. Formed in 2013, the anti-immigrant party Alternative for Germany (AfD) was initially galvanized into action by what it saw as Merkel's bungled handling of the eurozone crisis -- specifically the multiple Greek bailouts. Since then, the party has assumed a more nationalistic platform strongly opposing the influx of migrants. AfD contributed to defeats for Merkel's Christian Democratic Union in Berlin and her home state of Mecklenburg-Vorpommern during regional elections in 2016, as voters looked for a candidate who would appease their concerns about rising rents, increasing gentrification and refugees. Opinion: Angela Merkel may be the biggest loser of 2017 Merkel's controversial migrant policy was further criticized in December, after a Tunisian migrant was identified as the perpetrator of an attack on a Berlin Christmas market that killed 12 people and injured 48 others. With national elections due in the autumn of 2017, it's unclear what the future holds for Merkel. Italy Italy is well-known for its fluid political spectrum, having seen a number of populist parties come and go over the years. In December, Matteo Renzi resigned as Prime Minister after conceding an ""extraordinarily clear"" defeat in an Italian constitutional referendum in which voters rejected his proposed changes to the country's constitution. He had promised the reforms would help revive Italy's flagging economy, but voters used the opportunity to push him out, setting the scene for a general election expected later this year. The parties who stand to gain most from the shift are far-right group Northern League and the radically populist Five Star Movement, led by Italian comedian Beppe Grillo. Experts say that if Grillo comes to power, he'll likely follow through on promises to call a referendum to scrap the euro, reintroduce the Italian lira, and perhaps even follow Britain out of the European Union. Austria Austria looked at electing the EU's first far-right head of state since the Second World War when it picked its next president on the same day as Italy's critical constitutional reforms ballot in December. Norbert Hofer of the Freedom Party of Austria (FPO) had ridden a populist wave to challenge for presidential power (albeit in a largely ceremonial role). The race had appeared close, but Hofer conceded to left-wing independent Alexander Van der Bellen when early returns ran against him. The far-right refugee-blocking candidate campaigned hard on the issue of migrants, calling for a complete end to immigration in a bid to preserve the country's ""ethnic culture."" The migrant crisis reached a tipping point for many in 2015 when almost a million refugees crossed into Europe from the Balkans. At least 700,000 of them traveled via Austria. The trendy young face of Austria's far-right Although the country has largely been a transit stop in the migrant journey, Austria received over 88,000 asylum applications last year. United Kingdom The United Kingdom Independence Party (UKIP) enjoyed a surge of support at the 2015 general election under the leadership of Nigel Farage. Farage was one of the chief architects of the Brexit campaign for Britain to leave the European Union. UKIP's share of the vote was 12.6% behind the traditionally dominant Conservative and Labour parties. The party finished second in 118 of the 650 parliamentary contests. However, it only gained one seat in the House of Commons because of the UK's first-past-the-post system. UKIP's personal record of 3,881,099 votes came at a time when immigration into the country was at its highest rate since the turn of the century. UKIP has since become a major influence in the political scene, giving a voice to those frustrated with the perceived ""Westminster elite,"" now under new leader Paul Nuttall.", -2432,2017/3/15,http://www.cnn.com/2017/03/15/politics/tillerson-china-sanctions-north-korea/index.html,Tillerson to warn China of sanctions over North Korea,"Washington (CNN)Secretary of State Rex Tillerson will tell his counterparts in China that the US is prepared to increase financial penalties against Chinese companies and banks that do business with North Korea, according to senior US officials.","Tillerson will deliver this message on his first official trip to Asia, a three-country tour that promises to be a tightrope walk of diplomatic tensions -- and nowhere more so than in Beijing, North Korea's closest ally and protector. While Tillerson will tell Beijing that the US is tired of Chinese companies helping facilitate Pyongyang's weapons program, he'll also seek to engage Chinese support for a broader attempt to rein in North Korea -- resembling the international coalition that created the Iran nuclear deal. He'll do this as he lays the groundwork for Chinese President Xi Jinping's visit to the US in April. Tillerson will also engage on the usual areas of US-Chinese tension, including the country's claims to contested waters in the South China Sea; trade; the status of Taiwan; and the recent US deployment of a defensive missile system and drones to South Korea. RELATED: Tillerson looks to global effort on Iran as model for North Korea But none of these issues are as fraught or potentially dangerous as the situation with Pyongyang, which seems to have accelerated its nuclear program in the last few months with the aim of perfecting a nuclear weapon and the means to deliver it as far as the US. ""China has been part of the problem rather than part of the solution,"" said Bruce Klingner, a senior research fellow at the Heritage Foundation, who describes North Korea as a global military threat. China has ""acted like North Korea's lawyer at the UN Security Council. They deny evidence of North Korea wrongdoing, they insist on loopholes, they insist on watering down what would otherwise be more effective resolutions"" at the United Nations, Klingner said. ""And whenever North Korea does some kind of a provocation or violation,"" he continued, ""they have this value-neutral response of calling on both Koreas not to raise tensions, when it is only their Korea which is doing so."" Acting State Department spokesman Mark Toner said discussions between Tillerson and his Chinese counterpart about dealing with North Korea have already been taking place. They are looking at ""what are next steps we can take to really put pressure on the regime to make them feel and pay a price for their behavior,"" he said. He acknowledged that the US wants to see China do more. ""We're always cognizant of China's influence over North Korea, and we're always encouraging it to play a more forceful role in that regard, whether it's through a more thorough implementation of the sanctions regime that exists, or through other ways,"" Toner said Monday. ""So that's a leverage that China brings to the table, and that's certainly something we want to see them take more advantage of."" The Chinese Embassy did not respond to requests for comment. RELATED: Chinese firm fined $1.2 billion for violating US sanctions on Iran- Given that China represents 90% of North Korea's economic activity, Beijing has leverage, Klingner said. Chinese firms that do business with the isolated country can operate as front companies that allow it to sell weaponry and other items overseas, and import goods. US officials said that the administration is considering targeting Chinese firms with sanctions for economic engagement with North Korea, given evidence that some of them are helping the country import and export weapons. ""We can influence the Chinese banks and businesses that are dealing with North Korea.-It has worked in the past,"" he said. He noted that in the mid-2000s, the Bank of China defied the Chinese government and cut off its interaction with North Korea to avoid the risk of US sanctions. ""So regardless of what Beijing wants,"" Klingner said, ""we can influence the behavior of those Chinese entities that are engaging in economic activity with North Korea."" The Trump administration has already dipped a toe into sanctioning Chinese companies and by doing so is looking to expand a policy that the Obama administration began last year. The Commerce Department last week announced that a Chinese tech firm, ZTE, would pay a $1.2 billion fine for violating sanctions by selling equipment to Iran and North Korea. In September, the Obama administration targeted a Chinese company called the Dandong Hongxiang Industrial Development Co. Ltd for ties to North Korea -- the first time the Obama administration hit a Chinese firm with sanctions for dealing with North Korea and supporting its nuclear program.-On the same day, the Justice Department unsealed four indictments for money laundering by te same firm and four individuals on behalf of Pyongyang.", -2433,2017/3/14,http://www.cnn.com/2017/03/14/politics/justice-yahoo-hack-russia/index.html,DOJ: 2 Russian spies indicted in Yahoo hack,Washington (CNN)The Department of Justice announced Wednesday that four people -- including two officers of the Russian Federal Security Service (FSB) -- have been indicted in connection to a massive hack of Yahoo information.,"The hack, which the DOJ said was initiated in January 2014, affected at least 500 million Yahoo accounts. Some of the stolen information was used to ""obtain unauthorized access to the contents of accounts at Yahoo, Google and other webmail providers, including accounts of Russian journalists, US and Russian government officials and private-sector employees of financial, transportation and other companies,"" the DOJ said in a statement. Hackers stole data that included names, email addresses and passwords -- but not financial information, according to Yahoo's announcement regarding the breaches. The officers of the FSB -- Russia's successor to the Soviet Union's KGB -- were identified as Igor Anatolyevich Sushchin, 43, and Dmitry Aleksandrovich Dokuchaev, 33. The two allegedly conspired with Russian national Alexsey Alexseyevich Belan, aka ""Magg,"" 29, and Karim Baratov, aka ""Kay,"" ""Karim Taloverov"" and ""Karim Akehmet Tokbergenov,"" 22, who is a resident of Canada. Dokuchaev was arrested in a Russian sweep in December and accused of spying for the US, a lawyer for one of the men charged with Dokuchaev said. A Justice Department official said the agency has not confirmed it is the same person and declined further comment to CNN. Baratov was arrested Tuesday morning ""without incident"" in Ancaster, Ontario, Toronto police spokesman Mark Pugash told CNN. ""The criminal conduct at issue -- carried out and otherwise facilitated by officers from an FSB unit that serves as the FBI's point of contact in Moscow on cybercrime matters -- is beyond the pale,"" acting Assistant Attorney General Mary McCord said at a news conference in Washington. Hackers are selling Yahoo data on the dark web Yahoo CEO Marissa Mayer publicly thanked US authorities Wednesday, saying she was ""very grateful"" to the FBI and DOJ. The San Francisco FBI office has scheduled a news conference for later Wednesday afternoon on undisclosed topics. Yahoo has been breached at least twice, and the company previously said a September 2014 breach was state-sponsored but declined to identify who it believed was responsible. Strained US-Russia relations The announcement of another cyberintrusion by Russian hackers comes at a time of delicate relations between the US and Russia. The Yahoo hack is the latest cyberattack that US authorities have blamed on Russia, a nation with which President Donald Trump's new administration has sought to foster warmer relations. Previous attacks US authorities have said Russian hackers perpetrated exposed the emails of Hillary Clinton's campaign chairman, John Podesta, and the internal workings of the Democratic National Committee. Russia's cybercrime underground has long been seen as more focused on financial crime than economic espionage, and Wednesday's indictment followed a series of indictments of Russian cybercriminals as the US has sought to diminish the thriving cybercrime organization in Russia. But the indictment is the first to link that cybercrime operation to the government's intelligence apparatus -- a link that has long been alleged by cyberexperts but not explicitly accused by the federal government. The DOJ's national security division has long said that regular government-to-government espionage was not criminal but economic espionage crossed a line, though it maintained that governments have a right to try to block traditional spying. Wednesday's indictment seemed to go further to link government espionage with cybercrime more broadly. Russia has also declined to extradite or cooperate in the arrest of cybercriminals indicted in the US, though the DOJ has been able to apprehend many of them as they vacationed around the world. The Department of Justice has once before brought a detailed indictment against state-sponsored hackers -- against alleged Chinese military hackers in 2014. That indictment focused on economic espionage allegedly directed by China -- the theft of corporate secrets. The US has long called on China to cease its sponsoring of economic espionage against American companies. The Chinese military hackers have remained at large, and the DOJ has said it does not expect to be able to arrest those individuals unless Beijing chooses to give them up or they travel abroad. The indictments were part of a broader name-and-shame effort to signal that the US is aware of the cyber activity and willing to call it out. This story has been updated to reflect new developments.", -2434,2017/3/15,http://www.cnn.com/2017/03/15/politics/white-house-senators-obamacare-repeal-changes/index.html,"White House, senators plot major changes to Obamacare repeal bill",(CNN)Trump administration officials acknowledged to Republican senators at a White House meeting Tuesday that the House bill to repeal and replace the Affordable Care Act is in serious jeopardy.,"One adviser to a senator present at the meeting said the acknowledgment was simply that ""they don't have the votes to pass this in current form,"" a reference to whether the House GOP bill in its current form could survive in the Senate. The meeting included a handful of conservative senators who have expressed deep concerns with the bill. According to multiple aides, Vice President Mike Pence made a short visit to the closed-door briefing with lawmakers. Another senior Republican aide to a senator in the room said that the White House is ""definitely looking at pretty big changes to the Ryan bill."" ""There is no possible way a bill can be drafted by an individual or a handful of people and shoved down the throats of 535 people. It doesn't work that way,"" a Republican senator told CNN, noting that changing the bill is a normal part of the process. One of the senators who attended, Ted Cruz of Texas, said talks are ""productive."" ""The conversations continue to be productive and they're moving forward well. The conversations are ongoing with the White House, the administration and the House and the Senate,"" Cruz said Wednesday. ""The House has a current bill that personally I don't think gets the job done. I think we need more work on the House bill,"" Cruz said later at the US Hispanic Chamber of Commerce legislative summit. A senior administration official said in the meeting of the claim the House bill cannot pass the Senate as currently written said, ""I think they made that claim. We didn't rebut it."" This official confirmed that the White House has continued to advocate for changes to the bill that will help secure conservative votes in the House -- but also some tailored to moderates' concerns. ""I think we made a lot of progress in changing language that's going to be appealing,"" the official said. The official declined to elaborate on which changes have been made already, but confirmed that the White House's position privately is still to call for an earlier sunset of the Medicaid expansion. House bill in peril The House legislation has run into trouble in recent days. After the non-partisan Congressional Budget Office warned Monday that 24 million Americans could lose insurance coverage over the next decade if the House bill was passed, moderate Republicans Reps. Leonard Lance and Rep. Ileana Ros-Lehtinen have come out publicly opposed to the legislation and others have been vocal about their concerns. Moderates are only a piece of the puzzle, however. House conservatives -- especially members of the Freedom Caucus -- have been vocal in their opposition to the bill in its current form, and House Speaker Paul Ryan can only afford to lose 21 of his own members on the bill. If House leaders address conservatives' concerns by rolling back Medicaid expansion sooner than 2020, they risk losing moderates. If they try to win over moderates by making tax credits more generous for older Americans, they could lose more conservatives. Emerging as another top concern from the White House is the question of whether the House bill can even make it through the Senate under reconciliation rules or the so-called Byrd Rule. Lawmakers have long agreed that the best way to repeal and partially replace Obamacare is through the process of budget reconciliation, which only requires a simple majority vote in the Senate. However, budget reconciliation comes with a whole host of requirements. Members cannot just pass anything through reconciliation. According to one senior Republican aide to a senator in the room Tuesday, there is growing recognition that some aspects of the House bill may not even be fully accepted under those rules. In that case, the Senate parliamentarian could rule that pieces of the legislation aren't allowed under reconciliation. Some conservatives are arguing to the White House that the Senate should override the parliamentarian, but if they are going to take that political risk, they should do it with a bill they believe will lower premiums in upcoming years, not the Ryan bill. The Republican aide to a senator in the meeting said some senators are pushing for a more robust package that would allow states to sell insurance across state lines, make additional changes to Medicaid and help lower drug prices instead of overriding the parliamentarian to pass through the House package.", -2435,2017/3/15,http://www.cnn.com/2017/03/15/asia/goa-tourist-woman-dead/index.html,India: British-Irish woman found dead near Goa beach,New Delhi (CNN)Indian police have opened a murder investigation after a British-Irish tourist was found dead in the southern coastal state of Goa.,"The 28-year-old woman's naked body was found in fields near Deobagh Beach in Canacona, a district popular with tourists, according to police inspector Fiolmeno Costa. The body was discovered in a pool of blood with severe head injuries, according to Deputy Superintendent of Police Sammy Tavares. The case is being investigated as a murder, Tavares added. One person has been arrested in connection with her death and police are investigating whether she was sexually assaulted, authorities said. The suspect had marks on his face ""which could have been made by the victim while trying to fight back,"" Police Superintendent Kartik Kasyap told CNN. The results of a post-mortem have yet to be released. Police said the woman was carrying a British passport. ""We are supporting the family of a British-Irish woman following her death in Goa, India. Our thoughts are with them at this very difficult time. Indian police are conducting an investigation and we are in close contact with them,"" a British Foreign Office spokesman told CNN. Murder Known for its beaches and nightlife, Goa is a popular holiday destination for tourists from all over the world. In 2016, over 6.3 million local and foreign tourists visited the state, according to the Goa Department of Tourism. Last September, two men were acquitted of the rape and murder of British teenager Scarlett Keeling. Keeling's bruised, partially clothed body was found on Anjuna beach in Goa in 2008. Police initially said the 15-year-old drowned on after taking drugs, but her mother rejected that account. She launched a campaign for a second autopsy, and investigators eventually confirmed Keeling was sexually assaulted before her death. Local media and a state minister said at the time that police covered up the killing to protect Goa's tourism industry.", -2436,2017/3/15,http://www.huffingtonpost.com/2017/03/15/democrats-gorsuch-opposition_n_15391066.html,Democrats Say Neil Gorsuch Should Be Filibustered Because He Harms People,The Supreme Court nominee once ruled a leukemia survivor could be fired for avoiding a flu outbreak at work.,"WASHINGTON ""?Senate Democrats tried to put a human face on their opposition to Supreme Court nominee Judge Neil Gorsuch Wednesday in hopes of showing why they may feel justified in filibustering a jurist-the American Bar Association-deemed ""well-qualified.""?Gorsuch, a federal appeals court judge from Colorado, is ideologically out of the mainstream, Senate Democrats argued, saying that while he may be a smart and accomplished judge, he's shown himself to be an activist who protects corporations at the expense of regular people. ""As a judge, Neil Gorsuch repeatedly sided with the powerful against the powerless,""?said Senate Minority Leader Chuck Schumer (D-N.Y.). He pointed to Gorsuch's record favoring employers over workers, and to newly revealed ties to a billionaire backer of conservative activists, Philip Anschutz. Schumer said the emerging picture reminded him of Chief Justice John Roberts, who some Democrats voted to confirm but they now consider to have taken an excessively right-wing approach to the high court. ""I sat with him. It was the same thing,""?said Schumer. ""�Very judicious, very calm, very careful in his interview. And of course he told everyone he just call balls and strikes. When he got to the court, he became one of the most activist judges we have ever seen.""?To back up his case, Schumer and Sen. Richard Blumenthal (D-Conn.) introduced four people who they said had suffered because of Gorsuch. One was Alphonse Maddin, an auto industry designer who was forced to take a job as a truck driver during the recession. It didn""t last long because his brakes seized up in a brutal cold snap in Illinois. He was fired for unhitching his trailer and going to seek warmth. Another was Patricia Caplinger, a nurse practitioner who was seriously injured during spinal surgery when doctors used a device that had been approved for other purposes, but had been marketed as an off-label option for her procedure. It's been nearly impossible for her to work ever since because of the constant pain, she said. Also, David and Katherine Hwang spoke on behalf of their late mother, Grace. Grace had been a professor in Kansas, but after battling leukemia, her doctors advised her not to return immediately to campus, where a flu epidemic was raging. She wanted to teach remotely for several months to allow her immune system to recover, but was fired. In each instance, Gorsuch favored the employer, although Maddin eventually won his case. ""He didn""t think about the impact this had on our family. Our only source of income was lost,""?Katherine Hwang said of her mother's battle. Democrats said in the face of such history, they doubted Gorsuch could convince them he is a suitable candidate for a lifetime appointment to the nation's highest court, and if he can""t, they would be willing to block him on the Senate floor. ""I will use every tool available, including the filibuster, to oppose him,""?said Blumenthal. ""We will use every tool at our disposal.""?""the bottom line is very simple,""?said Schumer. ""I think this is such an important position, you can""t give somebody a pass. I don""t intend to, and I think the vast majority of colleagues don""t intend to.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2437,2017/3/15,http://www.huffingtonpost.com/2017/03/15/cole-sprouse-friends-character_n_15391064.html,Cole Sprouse Admits He Still Responds To His 'Friends' Character's Name,"Be still, our hearts!","Sign up for The Tea,-a weekly email where your favorite celebs spill all. Many of us know Cole Sprouse as Cody Martin on ""the Suite Life Of Zack and Cody""?or-Jughead on ""riverdale.""ut before he moved into The Tipton or became best friends with Archie Andrews, Sprouse played Ross Geller's son, Ben, on ""Friends.""?Sprouse recently spoke with the New York Post about his time on ""Friends,""?and revealed that he still gets called ""Ben""?by fans of the show. ""Because ""lriends""?is on Netflix, there's a renewed interest in [the show],""?Sprouse told the New York Post. ""having responded to a Disney show for such a long time, people can call me ""�Ben""?on the street and I will turn around.""Sprouse also mentioned that he had a big-time crush on one of his adult co-stars.- ""I had a really, really hard time working with [Jennifer] Aniston because I was so in love with her,""?Sprouse admitted. ""I was infatuated. I was speechless ""?I'd get all bubbly and forget my lines and completely blank ... it was so difficult.""Sounds like the Geller men have a type! We'r loving Sprouse's recollections from his time on the show. Though he might be Jughead now, he'll always be Ben to us. THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2438,2017/3/15,http://www.huffingtonpost.com/zac-thompson/does-president-trump-make-you-depressed-try-impeachara_b_15391084.html,Does President Trump Make You Depressed? Try Impeachara,,"As the political landscape continues to change into a strange and sometimes hostile place, it's become relatively easy to become demoralized. So far under the Trump government We're undergone repressive travel bans, increased discrimination against minorities, and scandal after scandal about Russian interference in American politics. It's no secret that Liberals are becoming depressed in Trump's America. Hell, we reckon after the new healthcare bill that some Republicans have slipped into a depressive state too. It's not like we can all pack up and head to Mar-A-Lago for the weekend for a round of golf. So what do we do about Trump depression? Sam Friedlander may have the solution with a cutting edge new medicine, Impeachara, that will help combat the harmful effects of instant news alerts, President Trump's incompetency, and the death of American democracy. Those who support the current administration are not recommended to take Impeachara as it may cause emergency bowel movements and negative thoughts. Don""t wait, elect to be happy at Impeachara's website. And for more from Sam Friedlander visit his website or follow him on Twitter. How will Trump's first 100 days impact you? Learn more", -2439,2017/3/15,http://www.huffingtonpost.com/robert-reich/4-reasons-why-trumps-budget-is-bonkers_b_15391048.html,4 Reasons Why Trump's Budget Is Bonkers,Trump's spending and tax priorities are not in the best interest of most Americans.,"Donald Trump ran for president as a man of the people, who was going to fight for those who were left behind ""?but everything we'r hearing about his forthcoming federal budget says exactly the opposite: Spending that's a great deal for big corporations that have hired armies of lobbyists, and great for the wealthiest few like himself. But leaving everyone else a lot worse off. Here are four important early warning flares: 1. Trump's budget will increase military spending by 10 percent (even though U.S. military expenditures already exceed the next seven largest military budgets around the world, combined). And that's frankly scary for a lot of reasons from what it signals about his foreign policy priorities to the impact of that whopping spending hike like this on other parts of the budget. 2. Trump actually plans to cut corporate taxes (even though U.S corporate profits after are higher as a percentage of the economy than they're been since 1947). 3. He's going to pay for this ""?in part ""?by cutting billions of dollars from the Environmental Protection Agency (which would strip the EPA of almost all its capacity to enforce environmental laws and regulations, at a time when climate change threatens the future of the planet). This is precisely the opposite of what the United States ought to be doing. 4. Last ""?but by no means least ""?huge leaps in military spending plus tax cuts will also mean big cuts to programs like food stamps and Medicaid (at a time when the U.S. has the highest poverty rate among all advanced nations, including more than 1 in 5 American children). This is only the first step in the budget process, but with Republicans in control of both the House and the Senate these priorities have a good chance of being enacted, which is why we have to raise our voices ""?and push back ""?now. Republicans in Congress are likely still recovering from the last recess ""?dubbed appropriately ""resistance Recess.""?We need to take that winning spirit of resistance into the budget fight ""?and the time to start is right now. So, let your members of Congress know that Trump's budget is not your budget. Trump's spending and tax priorities are not in the best interest of most Americans. And then let's get to work to make sure we get a Congress in 2018 that reflects YOUR priorities. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2440,2017/3/15,http://www.huffingtonpost.com/2017/03/15/rhythmic-gymnast-abuse-team-usa_n_15390974.html,Former U.S. Rhythmic Gymnast Pens Powerful Essay On 'Crippling' Sexual Abuse,Jessica Howard says she was 15 when Team USA's doctor abused her. Now she's demanding change.,"Former U.S. rhythmic gymnast Jessica Howard is fighting to end what she calls ""Crippling""?abuse plaguing USA Gymnastics, which she said she experienced nearly 18 years ago. In an essay for The New York Times published Wednesday, Howard, the U.S. champion of rhythmic gymnastics from 1999 to 2001, railed against the sport's national governing body for not doing enough to protect athletes. ""the institutional tolerance of abusive training and the penchant of USA Gymnastics to look away create a culture conducive to sexual abuse ""� for gymnasts of all skill levels,""?Howard wrote. Howard, a Florida native, alleged she was 15 when the national team's doctor, Larry Nassar, sexually abused her. She said she met Nassar in 1999 at the Karolyi Ranch in Texas while seeking treatment for hip pain brought on by grueling training prior to the World Rhythmic Gymnastics Championship. Nassar abused her several times during her week-long stay at the facility, Howard wrote. ""Coming off of a difficult year of training, Dr. Nassar reached out as the good guy, supporting me emotionally and promising me relief from the pain,""?Howard wrote. ""now I know that in actuality he expertly abused me under the guise of ""Treatment.""?Nassar was arrested in December on federal child pornography charges and was accused last month of 22 counts of first-degree criminal sexual conduct. He has pleaded not guilty. Officials say more than 80 people have filed complaints against him. On March 3, the Indianapolis Star obtained roughly 5,600 pages of USA Gymnastics records revealing the organization waited years to ban some 54 coaches who were the subjects of sexual abuse complaints. USA Gymnastics took five weeks to fire Nassar and notify the FBI of a complaint against him in 2015, according to CBS. Howard, now 33, spoke out on CBS""?""?0 Minutes""?in February. She appeared alongside two other former Team USA gymnasts,-Jamie Dantzscher and Jeanette Antolin, who also claimed they were abused by Nassar. ""Emotional abuse is rampant and physical abuse is out there and sexual abuse is a byproduct of what happens when that is the culture,""?Howard said during the segment. Howard wrote that a-""lack of oversight""?by USA Gymnastics created a breeding ground for sexual abuse. She called on the organization to adopt a zero-tolerance policy. USA Gymnastics didn""t immediately respond to a request for comment. U.S. Olympic Committee officials have reportedly asked USA Gymnastics CEO Steve Penny to step down,-but Howard said real change would require more. Howard encouraged athletes, parents and coaches to have ""uncomfortable but necessary""?conversations to discuss psychological and physical abuse, and demanded the organization take steps to assure gymnasts speaking up about abuse will not be punished. ""there is nothing more motivating and powerful than an Olympic dream,""?Howard wrote. ""But there is a long life to live after the span of a gymnastics career. It should be the priority of those in power to make sure that an athlete's post-sport life is not spent dealing with the crippling effects of abuse.""?Read Jessica Howard's full essay in-The New York Times. Need help? Visit RAINN's National Sexual Assault Online Hotline or the National Sexual Violence Resource Center's website. Share this slide: How will Trump's first 100 days impact you? Learn more", -2441,2017/3/15,http://www.huffingtonpost.com/2017/03/15/mansoor-shams-meet-a-muslim-marine-ask-anything_n_15390932.html,"This Muslim U.S. Marine Is Traveling The Country With An ""ask Anything""?Sign",He's hoping to counter negative stereotypes of Muslims.,"One Muslim man is hoping to counter misconceptions around his faith with a bold approach: Challenging strangers across America to ask him anything. Mansoor Shams, a former U.S. Marine who currently resides in Maryland, is traveling the country and standing on street corners in U.S. cities and towns with a sign reading: ""I'm Muslim and a U.S. Marine, ask anything.""?His goal is to educate Americans about Islam, and counter a rise in anti-Muslim bigotry. ""the message is so important for people to see considering what's going on in our political environment,""?Shams told HuffPost. ""there's a consistent lack of knowledge and understanding of people who follow my faith.""?Shams started the project days after the inauguration of President Donald Trump, when there was a spike in anti-Muslim hate crimes. During the presidential election, Trump and his supporters often campaigned against Islam. ""there's no denial it's about Trump ""?his candidacy relied on Islamophobic concepts,""?Shams said. ""I guess what I want people to know, a guy who looks like me ""?brown skin, black beard, the typical stereotype ""?is not a terrorist. He could even be a U.S. Marine!""So far-Shams has traveled to a handful of states, including-Texas, Colorado, Washington and New York. His goal is to get to all 50 U.S. states. Around 62 percent of Americans don""t even know someone who is Muslim, according to a 2014 Pew Research Center survey. The same survey also found that while the U.S. public generally views Jews and Christians positively, Americans view Muslims negatively. In Shams""?journey so far,-people have asked him everything from ""how are you?""?to ""Are you American or Sharia law?""?""It's a lack of awareness, lack of knowledge,""?Shams said. ""I respond, ""�Sharia law, do you know what Sharia law means? It's a moral code, it tells me to be nice to you, to be a good person, that's what Sharia law is.""?Shams""?project is one of several efforts worldwide in recent years to counter anti-Muslim hate with peer-to-peer education: In Canada, members of the Ahmadiyya Muslim community launched a #MeetAMuslimFamily campaign in 2015, to remove misconceptions around Islam. And earlier this year, in the U.K, the Muslim Council of Britain organized a national ""�Visit My Mosque""?day, inviting the wider community to visit a local mosque. One-on-one conversations to counter bigotry have appeared to be beneficial in some cases: One man in Nebraska told news outlets that he once ""Lated Muslims""?""?though he had never met any. But after getting to know his new Muslim refugee neighbors, they supposedly ""gook the hatred out""?of him. Shams himself has experienced some successes in his own travels. In Houston, for instance, a man walking by his sign gave him a ""really evil look,""?according to Shams. Eventually they got to talking. ""Listen, I want to apologize to you for my behavior,""?the man reportedly told Shams. ""I didn""t read the whole sign.""?"" if you had just read the first part [that says ""I'l a Muslim""?""?but not ""�and a U.S. Marine""�], you would have walked away like that?""?Shams countered. ""I know I'm ignorant ""?I feel like I'm being played like a pawn, and people are dividing us,""?the man conceded, according to Shams. ""I want to learn, thank you for standing here and extending friendship to me.""?""that to me is priceless,""?Shams said of the encounter. - Shams acknowledged that it is far too much to ask that any Muslim person ""?or anyone who belongs to any marginalized group ""?be required to educate people who would discriminate against them. ""the Muslim world doesn""t have a responsibility to apologize. I don""t expect you to apologize for anything white people do, like white supremacy,""?Shams said. ""however, if I can help my country, as a citizen, as a Marine, then I think I do have that responsibility.""?For Mansoor, his status as a U.S. citizen and a former Marine places him in a unique position of privilege when it comes to countering anti-Muslim hate ""?one he says he can""t turn away from. ""people are listening to me because I'm a Marine who served. I get that I earn a level of respect and trust where they can hear what I have to say,""?Mansoor said. ""I would love if the world we lived in was one where it wouldn""t matter whether I served.""?In the coming months, Shams plans to travel to several more states with his sign, including Kentucky, Tennessee, Alabama and Georgia. With the ultimate goal of making it to all 50 states, Shams has started a GoFundMe page to raise funds to support future travels. ""no matter what I get from the funding, I'm going to do this,""?Mansoor said. ""the need is greater than any dollar amount. I feel like I'm literally serving my country again ""?a country that's clearly quite divided these days ""?by uniting us through conversation and getting out of my comfort zone.""?Share this slide: How will Trump's first 100 days impact you? Learn more", -2442,2017/3/15,http://www.huffingtonpost.com/2017/03/15/jeff-sessions-legal-marijuana_n_15390924.html,Jeff Sessions Suggests A Crackdown Isn't Coming For Legal Weed,But the attorney general is quickly losing credibility when it comes to issues related to drug use.,"Attorney General Jeff Sessions hates marijuana, but it appears unlikely that he'll send the federal government to war against states that have legalized it. That's the takeaway from Sessions""?appearance Wednesday before local, state and federal law enforcement officials in Richmond, Virginia. After delivering prepared remarks comparing marijuana to heroin and insisting that-""using drugs will destroy your life,""?Sessions told reporters that much of the Obama-era guidance that paved the way for states to legalize marijuana is ""lalid.""?It's the clearest indication yet that he may not be readying for a nationwide crackdown as some drug policy reformers have feared. ""the Cole Memorandum set up some policies under President Obama's Department of Justice about how cases should be selected in those states and what would be appropriate for federal prosecution, much of which I think is valid,""?Sessions told reporters. Sessions said he ""may have some different ideas myself in addition to that,""?but indicated that the Justice Department doesn""t have the resources to enforce federal prohibition in states across the country. The attorney general's comments were first reported by Tom Angell on the blog of MassRoots, a social media company. Marijuana remains illegal under the federal Controlled Substances Act, despite many states""� efforts to scale back on criminalizing the plant over the past few years. Legal recreational marijuana has been approved in eight states and Washington, D.C., which continues to ban sales, unlike the state programs. A total of 28 states have legalized marijuana for medical purposes. President Barack Obama's Justice Department allowed states to forge their own way on marijuana policy by issuing-guidance-in 2013, known as the Cole memo,-outlining-how states can avoid running afoul of federal enforcement priorities on marijuana.-But this guidance is not law and can be reversed by the Trump administration. Sessions has said the memo has-some points of value, but his-history of vocal opposition to marijuana, and his more recent vague or ominous statements about the drug, have led to skepticism among marijuana advocates. John Hudak, a senior fellow at the Brookings Institution who writes extensively on marijuana policy, said that Sessions""?remarks suggest he is ""more serious about respect for the Cole memo""?than previously believed. ""sessions understands that while there is a lot to be done in the Department of Justice, there is relatively not a lot of funds to do it, so he has to have priorities,""?Hudak said. ""And it sounds like he believes that the choices of his predecessors had merit.""?Marijuana is the most commonly used illicit substance in the United States, and the trend of states bucking prohibition in favor of legal regulation of the plant reflects a broad cultural shift toward greater acceptance of marijuana. National support for legalization has risen dramatically in recent years, reaching historic highs in multiple polls. And states like Colorado, the first to establish a regulated adult-use marijuana marketplace, have seen successes that defied some lawmakers""?and law enforcers""?predictions that such policies would result in disaster. But just because Sessions may be resigned to leaving marijuana policy alone doesn""t mean he supports the drug. Likening marijuana to heroin, Sessions said he prefer not to allow people to ""grade one life-wrecking dependency for another that's only slightly less awful.""?While no drug is harmless, marijuana and heroin could not be more different in their relative dangers.-Research-has shown that-marijuana is substantially safer than other commonly used recreational drugs ""?including alcohol, which can be deadlier than heroin.-In the thousands of years people have been using marijuana, there has never been a recorded death from overdose. Meanwhile, opioid overdoses are responsible for the deaths of tens of thousands of Americans annually. Sessions also expressed concern about the prospect of people selling marijuana ""in every corner store,""?and claimed that some have suggested ""we can solve our heroin crisis by legalizing marijuana.""?Though recent research has drawn a connection between access to medical marijuana and-reductions in the overall use of opioids, neither of those arguments sound familiar to experts. ""sessions has a total lack of understanding of what the marijuana industry is like, what marijuana reform in the states does and what the science is on this issue,""?Hudak said. Sessions ""lery quickly loses credibility""?when he uses this kind of rhetoric, Hudak noted. ""It's much easier to ignore the words of a man who's clearly not only ignorant but very comfortable in his own ignorance ""?a serious challenge for an attorney general, who's the chief law enforcement officer in the United States,""?he said.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2443,2017/3/15,http://www.huffingtonpost.com/2017/03/15/coal-exports-fall_n_15390922.html,"New Data Highlights The Problem With The ""�War On Coal""?Narrative","Coal producers made a big, fat, losing bet on overseas demand. Donald Trump can't do anything to change that.","Robert Murray, owner of the world's largest private coal company, declared in 2014 the ""Absolute destruction of the United States coal industry.""?""If you think it's coming back, you don""t understand the business,""?the man known as the ""last king of coal""?said at an industry conference. ""�Or you'r smoking dope.""?Had tree-hugger regulators in the Obama administration ""?long accused of waging a ""war on coal""?""?actually dealt a death blow to the industry that once fueled cross-continental railroads and a majority of America's power plants? Or did coal fall victim to market forces? Analysts have long blamed natural gas ""?made cheap by new extraction techniques like hydraulic fracturing, or ""Hracking""?""� for devouring the U.S. electricity market, on which coal once had a near monopoly. But the U.S. Energy Information Administration released-data-Tuesday that indicates a steep nosedive in coal exports since 2012. Exports fell for a fourth consecutive year to 60.3 million short tons, less than half the record volume shipped overseas fives years ago. President Donald Trump swept coal country in November, in large part because he promised to bring back the sort of high-paying coal jobs that existed during the industry's heyday in the mid-1970s-""� when Congress responded to an-oil embargo crisis-by giving-the industry a decade-long monopoly on new power plants in an effort to wean the U.S. off energy imports. Emboldened, the industry and its allies have been on a tear recently. Last month, House Republicans overturned a regulation to protect U.S. waterways from coal pollution. Republican legislators in Kentucky and West Virginia passed bills to scale back state safety inspections on coal mines. And as early as this week, Trump is expected to sign-executive orders lifting a temporary moratorium on leasing federal lands to coal companies and shredding the Clean Power Plan, the long-stalled federal program to reduce carbon emissions from the utility sector.- Still, that isn""t likely to resuscitate the industry. ""the market conditions are not there,""?Dan Bucks, a coal policy expert and former director of revenue for the coal-producing state of Montana, told The Huffington Post on Wednesday. ""Federal policy is only one variable, and market conditions are the larger factor. The reality is energy markets are changing around the world.""?Nowhere are those changes more pivotal than China, the world's biggest polluter. Years of burning stupendous amounts of coal have shrouded its cities in thick veils of smog, and the country has dramatically scaled back its coal use since consumption peaked in 2013. Chinese demand for coal fell by about 3 percent in 2014, and dropped another 4 percent to 5 percent throughout 2015, according to the Sightline Institute, a think tank. By 2016, coal consumption dipped by 4.7 percent year over year, and the share of the country's energy mix fell by 2 percent to 62 percent, the National Bureau of Statistics of China reported. Steel production, the primary driver of China's import craze, also continues to slump. A subsidiary of China National Coal Group, the third-largest coal mining company in the world, recently announced plans to lay off 4,000 workers by the end of the year. - That's a major problem for the coal industry. As U.S. coal producers lost domestic market share to natural gas, which emits roughly half as many the greenhouse gases, they bet big on the continued growth of Chinese consumption. But, in January, China canceled 103 new coal-fired power stations ""?worth 120 gigawatts of capacity ""?as part of its shift toward zero-emissions energy. The country plans to spend at least $380 billion on renewables by 2020. The U.S. coal industry basically imploded as Chinese demand slipped. Peabody Energy, Arch Coal, Alpha Natural Resources, Patriot Coal and Walter Energy-have all filed for bankruptcy over the past two years. (Peabody Coal is nearing a plan to pull itself out of bankruptcy.) The number of people who work in coal has tanked, too. In 1985, the industry employed 177,000 people. At the end of 2008, that number fell to 86,000. It was at 56,000 by last year. ""the market is telling coal that it's a dying fuel source because we have abundant supplies of natural gas that are indigenous to the country,""?Pete Fontaine, a veteran environmental lawyer who works for fossil fuel companies, told HuffPost. ""You can scrap rules that make coal mining more expensive, you can scrap the Clean Power Plan, but ultimately coal is on the way out.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2444,2017/3/15,http://www.huffingtonpost.com/2017/03/15/what-this-mom-wanted-to-teach-her-son-by-shaving-her-head_n_15390908.html,What This Mom Wanted To Teach Her Son By Shaving Her Head,Virginia Mellen initially wondered if the hairstyle she wanted was OK for a mom.,"Virginia Mellen's method of teaching her son an important life lesson is a bit unconventional, but also empowering. On Sunday, Mellen posted in the Facebook group Pantsuit Nation about how she first shaved her head in high school and then a few times in college. The look made her feel ""Comfortable, confident, and attractive.""?Yet when the desire to shave her head crept up recently, the 27-year-old mom at first hesitated. Questions like, ""Is this OK to do now that I'm a mom?""?and ""What will people think now that I'm older?""?floated through her head. But then she thought about her 15-month-old son, Avi.- ""I want my son to grow up with a mom who doesn""t make decisions about her appearance based on what other people think,""?she wrote. ""I want him to know that there is no particular way a mom or a woman is ""supposed""?to look.""?Despite any hesitations, Mellen had her head shaved on March 11 and posted about the experience in the Pantsuit Nation group. She told The Huffington Post her son is too young to comment on her look, but he does enjoy feeling her hair with his hands and rubbing his cheeks on it.- ""I think he enjoys the velvety feel of the short hair,""?Mellen said. Many other parents are into Mellen's look, too. She told HuffPost that since she shared her post, which has gotten more than 47,000 reactions as of Wednesday, she has received photos from moms showing off their shaved heads and dyed hair.- ""I love seeing everyone celebrate their individuality,""?she said. ""I have been surprised at the number of women who have said they wish they could shave their heads but they are ""Too old""?or ""don""t have the face for it.""?But I urge them to go for it!""?When asked whether she had advice for other moms who might avoid doing something they want to do simply because they are mothers, Mellen suggested they ""gake a step back.""?""Ask if you have doubts because of what other people may think,""?she said. ""I am still a fairly new mom, but the most important knowledge I have gained so far is that there is no right way to be a mom. There is such enormous pressure on mothers to be a certain way, but I think even young kids can benefit from seeing our individuality.""?The HuffPost Parents newsletter, So You Want To Raise A Feminist, offers the latest stories and news in progressive parenting. Start here, with the latest stories and news in progressive parenting. Learn more", -2445,2017/3/15,http://www.huffingtonpost.com/2017/03/15/afro-billboard_n_15390798.html,A Mother Bought A Billboard So Her Daughter Would Grow Up Loving Her Afro,,"A London mother just wanted her daughter to grow up thinking there was nothing wrong with her healthy, puffy Afro. So she found a way to put up a larger than life positive image. Lekia L��e began Project Embrace when she realized the only black women her daughter Siirah would complement had straight hair. She recognized the beginnings of the poor self-image so many black girls struggle with. So two years ago she launched the campaign to get little black girls to embrace their hair, launching a CrowdFunder to erect a tribute to natural hair. ""You see while some people might have a bad hair day once in a while, as a black girl you are born with a bad hair day, or so society makes you believe,""?L��e wrote about her crusade. The billboard in West London features coils, twists and puffs in all shapes and sizes. The images purposely feature real women of various ages because ""girls look up to their mums, aunties or older women in their communities to show them how to love themselves,""?she told Quartz. L��e's 11-year-old daughter's face lit up as the billboard is unveiled. ""nowadays you see a lot of prominent black women with weaves, straight weaves and wigs and I didn""t want her to think that there is anything wrong with her hair,""?L��e also told the BBC. The billboard will be up for two more weeks and Project Embrace hopes to erect the advertisement in other UK cities and bring the message down to schools. Hair it is! @Project_Embrace billboard celebrating natural black beauty, challenging beauty ideals & underrepresetation. #afrovisibility pic.twitter.com/QPqi6zoYr5 If a billboard seems extreme, consider the lengths black women have gone to hide their natural hair, applying eye-watering chemicals to melt away the kink or fueling a lucrative global hair trade for weaves to cover their own hair. White and Asian woman also use chemical treatments on their hair and wear extensions, but these are rarely as a result of a historical social rejection of their looks. And who could blame professional black women for hiding their own hair? A recent controversy involving Google's image search results page for unprofessional hair confirmed to some that their dreadlocks and Afro hair were not welcome in many offices. Like people, algorithms aren""t born racist. The search result was likely influenced by the numerous blog posts on the issue, but it does reflect the views and clicking habits of the people who use it. While there is an increasing number of black women wearing their hair naturally, it is still seen a political statement rather just a convenient healthy choice. Many have agonized over the decision, slowly transitioned from straightened to natural hair (sometimes for as long as a year) or went for the ""big chop""?and cut everything off to start over. If it's this hard for adult black women, imagine the burden on little black girls. This article originally appeared on-Quartz. Like Quartz on-Facebook-or sign up for the-Quartz Daily Brief. Learn more", -2446,2017/3/15,http://www.huffingtonpost.com/2017/03/14/thinx-controversy-proves-you-cant-sell-feminism_n_15390510.html,Thinx Controversy Proves You Can't Sell Feminism,"Feminism is worth nothing if it's used as performance, not practice.","Up until this week,-former CEO and founder of Thinx period underwear Miki Agrawal was lauded as a ""lisionary""?and a ""badass,""ho has helped change-the way we talk about women's health. The company's controversial ads ""?grapefruits that look like vaginas, for instance ""?and ""period-proof""?underwear racked up-significant and largely positive-media coverage, including in-this publication. And Argrawal's been loud about her values and the way they fit into Thinx as a brand. ""I have built a business that is centered around my beliefs in gender equality,""?she declared in an essay last February.- But now Argrawal seems to be bumping up against the limits of her brand of product-based feminism. In a story published Tuesday, a handful of former and current employees at Thinx-spoke to Racked's Hilary George-Parkin-about their less-than-feminist experiences within the company. Employees reported that their paid time off was abruptly decreased, and that the news was delivered over email. They also told Racked that the health care plans offered were ""prohibitively expensive,""?and that the maternity leave offered was ""galling""?""?just two weeks of paid leave and one week at half pay for a birthing parent.-One source told George-Parkin that ""the only employees who [they]-ever knew to have successfully argued for additional money were two of the few white men who worked at the company.""?Just hours after the piece went live, Tyler Ford, an LGBTQ advocate and non-binary trans model, tweeted about their own negative experience working with Thinx. In a series of 57 tweets, Ford explained that they were introduced to Thinx as a potential model, eager ""go use this experience to help de-gender the period conversation.""?Instead, they found themselves feeling like a ""prop""?and a ""goken""?used to promote the idea that Thinx is ""?cool""?& ""Intersectional""?& ""Feminist""?& ""Inclusive.""?i've never spoken about my experiences with thinx bc they were too humiliating/upsetting to talk about publicly https://t.co/toRa3gNQqi i don't say this, but i feel like i'm being used so that thinx can say that they are ""cool"" & ""intersectional"" & ""feminist"" & ""inclusive"" Thinx initially-disputed the Racked report, without pointing to specific claims in the story. ""there's a lot of information here, we know much of it is inaccurate,""?a Thinx spokesperson told Racked. ""We can""t comment on speculation and rumor. We respect our employees, our corporate culture is of utmost importance to us and we endeavor to be competitive with benefits. We love what we do at THINX and the products we make to improve people's lives.""On Wednesday, a Thinx spokesperson told HuffPost that the company's leadership team was looking into the report's claims. ""In light of the concerns raised in the Racked story: our leadership is getting to the bottom of these allegations, and, as ever, we are actively working to address and improve our corporate culture,""?the spokesperson said over email. ""We look forward to updating the community as new leaders and corporate processes are put into place.""?There's a long and storied history of companies using feminism to sell women stuff ""?in 1968, tobacco giant Philip Morris essentially co-opted that decade's women's movement to sell Virginia Slims cigarettes, shamelessly telling women they're ""Come a long way, baby""?""?and a more recent history of companies that purport to hold feminist values in some respect-and want to sell women stuff.-Often tension arises between these two missions.- Dove has created body-positive campaigns targeting women-for more than a decade, and has partnered with non-profits like Girls Inc. to push a message of ""real beauty.""ut its parent company, Unilever, also owns skin-lightening cosmetic brand Fair & Lovely ""?a product that is in direct opposition to the idea that women don""t need to change how they look to find success. Last month, automaker Audi ""?a company with no women on its management board ""?boldly proclaimed that it supports gender pay equality in a Superbowl ad. And in a similar vein of using feminist values to boost a company's profile and credibility, a massive investment fund ""?again with few women in leadership positions ""?sponsored the ""Fearless Girl""?statue-down on Wall Street, meant to signal female power in the financial industry. The problems with Thinx are somewhat different because there's actually a woman in charge, unlike at Audi and Unilever. And there's a cultural expectation that female leaders will somehow be different or more feminist than men. There are no female ""bad boys""?like, say, Uber CEO Travis Kalanick who recently promised he ""grow up,""?after it was revealed his company is fostering a culture of sexual harassment and mistreatment. Women are expected to do better. You saw this when Yahoo chief executive Marissa Mayer ended telecommuting at the internet company a few years ago. She was savaged because, as a parent herself (and one with a nursery in her corporate office), Mayer was supposed to understand that telecommuting was an important issue to working mothers. But no one thought Yahoo itself was a feminist venture. The larger issue with Agrawal is that she said she was different. Her company is explicitly feminist, and its leadership team has made attempts to show that Thinx practices what it claims to preach.-Thinx's September fashion show was named-""Intersection 2016,""nd featured a diverse array of people discussing menstruation. On International Women's Day,-the company hosted a Menstrual Product Drive-for the Women's Shelter of NYC Rescue Mission.- In this sense, perhaps the best comparison is to Ivanka Trump, who has deftly used a corporate, polished brand of feminism to essentially sell dresses and jewelry. In 2014 Trump launched an initiative called #WomenWhoWork and sells herself as someone who cares passionately about working mothers. She has a book coming out soon on the topic. Yet at her own company she hasn""t walked the walk. A former employee, who helped create #WomenWhoWork, explained last year that she and her coworkers had to fight to get just 8 weeks of paid maternity leave. Trump also famously doesn""t even pay her interns, all women.-- Argawal, for her part, hadn""t actually embraced the term ""Heminist""?until she started Thinx,-telling The Cut-last year that she wanted to make the movement more ""Accessible.""?(Her comments engendered backlash-at the time from people who felt she was simply using feminism as a sales gimmick.)- ""I only started relating to being a feminist, literally, right when I started my company,""?Agrawal told The Cut's Noreen Malone. ""Every time I thought about the word feminist, I thought about an angry, ranty ""?girl. When you hear those spoken-word poets and feminists...I just couldn""t relate to that. I was always on the ""�women are equal""?front and into empowerment and laughter and inspiration. But I learned so much in the past few years about the plight of women ""?What I tell my team every day is that we have to be accessible. We have to build a bridge to redefining what feminism is.""?Accessibility is great ""?and there's no denying that the term ""Heminist""?can be a loaded one, at times to the cause's detriment. But feminism only deployed within the framework of capitalism ""?i.e. espousing feminist values first and foremost to sell products and make profit, even if those products are good ""?isn""t really feminism at all.- As Andi Zeisler, co-founder of Bitch media and author of We Were Feminists Once, pointed out to AdAge last year in relation to the ""Hemvertising""?trend: ""I think the question is, are brands and agencies who make overtures to female empowerment with their products and their creative also going to be accountable on a systemic level? Because the former without the latter isn""t really progress, it's pandering.""?How will Trump's first 100 days impact you? Learn more", -2447,2017/3/15,http://www.huffingtonpost.com/2017/03/15/people-with-interests-highlights-the-reality-of-most-first-date-convos_n_15390480.html,'People With Interests' Highlights The Painful Reality Of First Date Convos,Why do we do it?,"Going on dates feels a lot like most CW shows-""?midway through, you'r thinking, ""Who talks like this?""?PERSON 1:-What do you do while being human? PERSON 2: I do these things. What human stuff do you do? God, just plunge the dinner fork into my chest! Writer/director Daniel Hurwitz-highlights the very awkward and painfully mundane conversation that weighs down most dates. People with Interests from Daniel Hurwitz on Vimeo. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2448,2017/3/15,http://www.huffingtonpost.com/2017/03/15/chris-evans-was-warned-not-to-speak-out-about-trump-does-it-anyway_n_15390464.html,"Chris Evans Was Warned Not To Talk About Trump, But Does It Anyway",The Captain does what he wants.,"He's the Captain now. But perhaps not for long.- A new profile from Esquire claims Chris Evans will step away from his role as Captain America after his contract is up following the ""Infinity War""?movies. So in perhaps one of his last acts as Cap, the actor is taking on the Trump administration and its extremist supporters. In the interview, Evans reflects on Donald Trump's presidency, saying he feels ""rage""?and ""Hury.""?Recently, Evans has gotten in-arguments on Twitter with former KKK leader David Duke, and just this week gave his opinion on Rep.-Steve King's recent tweet-about ""somebody else's babies,""?which is seen by many as a white nationalist sentiment. I don't even know where to begin. This man has no place in politics. Shameful. I truly hope that someday you learn to choose love over fear https://t.co/zwTLvKR4Gt Apparently ""Advisors""?have warned Evans that speaking out on politics is ""risky""?given the high profile of his on-screen persona, but like a true Captain America, the actor refuses to remain silent. Why? He wouldn""t be able to look in the mirror. ""Look, I'm in a business where you're got to sell tickets,""?he says. ""But, my God, I would not be able to look at myself in the mirror if I felt strongly about something and didn""t speak up. I think it's about how you speak up. We'r allowed to disagree. If I state my case and people don""t want to go see my movies as a result, I'm okay with that.""?Even with his strong views, Evans explains that though some may believe that it's-""gime to yell,""?he has the opposite approach. ""It's time for calm. Because not everyone who voted for Trump is going to be some horrible bigot. There are a lot of people in that middle; those are the people you can""t lose your credibility with. If you'r trying to change minds, by spewing too much rhetoric you can easily become white noise.""?Evans""?approach can be seen in his argument with David Duke.-Even when faced with ignorance, the actor preached love: I don't hate them. That's YOUR method. I love. Try it. It's stronger than hate. It unites us. I promise it's in you under the anger and fear https://t.co/RGnH4rrblq Whatever Evans""?future is with Marvel, he'll always be Captain America to us. H/T Esquire Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2449,2017/3/15,http://www.huffingtonpost.com/2017/03/15/aurora-dog-capone-wolf_n_15390440.html,"City Seizes Family Dog Of 10 Years, Alleging He May Be Part Wolf","If a DNA test finds Capone is a wolf hybrid, he could be sent away or euthanized.","A Colorado family is heartbroken after animal control officers seized their dog of 10 years, alleging the canine may be part wolf. Owning wolf hybrids ""?a cross between a domestic dog and a wolf ""?is illegal in the city of Aurora. And if a DNA test finds that Capone ""?a dog adopted from the county animal shelter by an Aurora family a decade ago ""?is part wolf, he could be sent away to a wolf hybrid sanctuary or worse, euthanized. Capone's owner, Tracy Abbato, told The Denver Channel she's confident her dog is no wolf. When she adopted him, the shelter classified him as a German shepherd mix, she said. ""Capone is a family member,""?Abbato said. ""We're had him for 10 years. He has grown up with my kids. It's devastating.""?Aurora animal protection officers picked up Capone on Feb. 24 after a complaint from a city resident, spokesman Michael Bryant told The Huffington Post. The complaint said the dog was ""Acting aggressively,""?though Bryant was unable to provide specifics. Abbato said Capone was seized after he ""Jumped the fence""?for the first time in the seven years they're lived in their home. She-told KDVR that when the family tried to retrieve their pet from the city shelter,-animal control refused to return him, saying they believed he could be a wolf hybrid. They won""t return Capone unless a DNA test ""?now underway at the University of California-Davis ""?finds that he is not a wolf hybrid. ""Aurora Animal Services ordered a DNA test after its experts observed the animal's behavior, mannerisms and physical characteristics and believed them to be consistent with those of a wolf hybrid,""?Bryant said.- In the meantime, Capone is staying at the Aurora Animal Shelter, away from his human family and two dog companions. Bryant said the family has been able to visit Capone at the shelter. If the test does find that Capone is part wolf, he won""t be allowed to return home. ""If a judge grants ownership to Aurora Animal Services, the primary goal would be to locate a sanctuary that specializes in such animals and can provide the animal with a new home,""?Bryant said. ""Euthanasia is considered a last resort.""?Abbatto and her family are planning to ask a judge whether they can keep Capone at home until the results of his DNA test come back. Bryant said a deposition is scheduled for Wednesday afternoon. Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -2450,2017/3/15,http://www.bbc.co.uk/news/uk-politics-39278968,U-turn over Budget plan to increase National Insurance,Plans to increase National Insurance rates for self-employed people - announced in the Budget last week - have been dropped.,"Plans to increase National Insurance rates for self-employed people - announced in the Budget last week - have been dropped. Chancellor Philip Hammond has said the government will not proceed with the increases which were criticised for breaking a 2015 manifesto pledge. He told MPs in a Commons statement: ""There will be no increases in National Insurance rates in this Parliament."" Labour's Jeremy Corbyn said the U-turn showed a government ""in chaos"". Mr Hammond had faced a backlash by Conservative backbenchers last week, who accused him of breaking a general election manifesto commitment not to put up National Insurance, income tax or VAT. Explaining his change of heart to MPs, the chancellor said: ""It is very important both to me and to the prime minister that we are compliant not just with the letter, but also the spirit of the commitments that were made. ""In the light of what has emerged as a clear view among colleagues and a significant section of the public, I have decided not to proceed with the Class 4 NIC measure set out in the Budget."" Mr Hammond's Budget announcement would have increased Class 4 NICs from 9% to 10% in April 2018, and to 11% in 2019, to bring it closer to the 12% currently paid by employees. He said ""most commentators"" believed the ""sharp increase"" in self-employment over the last few years had in part been ""driven by differences in tax treatment"". He would use the Autumn Budget to set out further measures to ""fund in full"" the ?2bn lost from NICs, he said. But Tom McPhail, Hargreaves Lansdown's head of retirement policy, argued the U-turn would increase pressure in other areas of fiscal policy - and ""may increase the risk of further pension tax tinkering in the Autumn Budget"". Labour's shadow chancellor John McDonnell described the climb-down as ""chaos - it's shocking and humiliating that you have been forced to come here to reverse a key budget decision announced less than a week ago"". He told him to spend less time writing ""stale jokes"" for his Budget speech, and turning on the prime minister sitting next to him, he added she should also have spent less time ""guffawing like a feeding seal"". It undermines the credibility of the chancellor, an admission at the very least, that his political antennae have gone wonky. Second, it questions the extent to which the prime minister is willing to back him. Relations between the next door neighbours are businesslike and between their operations certainly frosty - and this will not have improved things at all. It also tells us that although polling suggests the prime minister is strong in the country, she's simply not that strong in Parliament. A firm nudge from backbenchers, and they shifted. Read more from Laura Asked by former SNP leader Alex Salmond ""who"" had realised the Budget was in ""flagrant breach"" of a manifesto commitment, Mr Hammond replied: ""I think it was Laura Kuenssberg on the BBC shortly after I said it in the Budget speech."" Former Labour leadership contender Yvette Cooper rounded on the comment, saying she was ""slightly astonished"" to hear that - and asked why nobody at Number 10 or 11 Downing Street had checked the Conservative manifesto before he went on to write the Budget. Mr Hammond clarified that he had meant Ms Kuenssberg ""was the first person after I spoke to raise the issue outside"". Theresa May had confirmed the U-turn at Prime Minister's Questions, insisting that last week's Budget announcements were consistent with the government commitment not to raise tax. Stressing the need to ""maintain fairness in the tax system"", she said she would await publication of the Taylor Report on the future of employment and consider the government's overall approach to employment status, rights and entitlements before deciding what to do next. But Mr Corbyn said the government should ""apologise"" for the stress the announcement had caused Britain's 4.8m self-employed. The SNP's Westminster leader Angus Robertson accused ministers of a ""screeching, embarrassing U-turn"" - while Labour's shadow chancellor John McDonnell tweeted that the chancellor's authority had been ""shredded"". Liberal Democrat leader Tim Farron, an advocate of Britain remaining in the EU, questioned whether the chancellor would ""now U-turn on another broken election commitment to keep us in the single market"". Chris Bryce, CEO of the self-employed body IPSE, welcomed the U-turn, saying ""hard working people will sleep easier tonight"" - while Stephen Herring, the Institute of Directors' head of taxation, said the National Insurance ""saga can only be described as chaotic"". Analysis: By Kamal Ahmed, BBC economics editor Beyond the political ramifications of Philip Hammond's U-turn on the Budget tax rise for the self-employed, the Treasury now has a new problem - the increase in the National Insurance rate was due to raise over ?2bn by 2022. Its reversal, with no prospect of any replacement direct tax increases this Parliament, makes the government pledge to ""balance the books"" even more difficult to honour. And that makes the Autumn Budget a trickier prospect - it was heavily briefed last week that the National Insurance rise was to pay for spending commitments on social care and business rate support. Income tax, National Insurance contributions and VAT raise 65% of the government's tax income. If you pledge not to raise any of them, your room for manoeuvre is severely limited.", -2451,2017/3/15,http://www.bbc.co.uk/news/world-europe-39285803,Dutch election: PM Rutte's party leads exit polls,"Dutch Prime Minister Mark Rutte's party has won the most seats in parliamentary elections, first exit polls say.","Dutch Prime Minister Mark Rutte's party has won the most seats in parliamentary elections, first exit polls say. His centre-right VVD Party won 31 out of 150 seats, polls suggest. His party came far ahead of the next three parties, including Geert Wilders' anti-immigration Freedom Party (PVV), the Christian Democrats and the D66 Party, which each got 19 seats. Mr Wilders' party had been leading in opinion polls but support for the party appeared to slip in recent days. Voter participation in the general election was high - and experts say the final turnout may exceed 80%. Analysts say a high turnout may have benefited pro-EU and liberal parties. A campaign leader for Mr Rutte's party said the voters had given ""trust again"" to the VVD. Many had been watching the vote in the Netherlands closely, as an indication for how populist parties may fare in other elections in EU countries. France goes to the polls next month to elect a new president, while Germany is due to hold a general election in September. Martin Schulz, president of the European Parliament until earlier this year, said he was ""relieved"" Mr Wilders' party had lost. ""We must continue to fight for an open and free Europe!"" he added on Twitter (in German). However, Mr Wilders warned that Mr Rutte ""has not see the last of me"". He previously said that the ""patriotic revolution"" would continue to take place, and ""the genie will not go back into the bottle"". As parliamentary seats are allocated in exact proportion to a party's vote share, the VVD party will need to go into coalition with other parties. The VVD had ruled out a coalition with the Freedom Party - but the other two runners-up, the Christian Democratic Appeal (CDA) party, and the Democrats 66 (D66) party, might work with the VVD. The VVD will need at least three other parties before it can secure a majority. Hence, the other smaller parties will be seen as potential power-brokers. Exit polls suggest the Green-Left party performed strongly, winning a total of 16 seats, while the Socialist Party took 14 and the Labour Party took nine.", -2452,2017/3/15,http://www.bbc.co.uk/news/uk-39278929,Marine Alexander Blackman conviction reduced to manslaughter,A Royal Marine jailed for shooting an injured Taliban fighter in Afghanistan has had his murder conviction reduced to manslaughter by an appeal court.,"A Royal Marine jailed for shooting an injured Taliban fighter in Afghanistan has had his murder conviction reduced to manslaughter by an appeal court. Sgt Alexander Blackman, 42, from Taunton, Somerset, has served three years of a life sentence. Five judges at the Court Martial Appeal Court in London ruled the conviction should be ""manslaughter on the ground of diminished responsibility"". A further hearing will decide what sentence Blackman should serve. Blackman - who was known as Marine A during the original trial process and fully identified when he was convicted - was not in court to hear the decision. The marine had a recognised mental illness at the time of the shooting in September 2011, the hearing was told. His defence team argued that fresh psychiatric evidence, if available at the time, would have provided him with the ""partial defence of diminished responsibility"". The panel of judges were urged to overturn the ""unsafe"" murder conviction. In Wednesday's ruling, the judges said: Sgt Blackman's wife, Claire, was greeted by cheering supporters and honking taxi horns on the steps of the court before thanking the ""tens of thousands of supporters, especially from the Royal Marines family, who have stood behind us throughout"". Mrs Blackman, who led a campaign alongside author Frederick Forsyth and the Daily Mail, said she was ""delighted"" with the ruling. ""This is a crucial decision and one which better reflects the circumstances my husband found himself in during that terrible tour in Afghanistan,"" she said. Blackman's lawyer, Jonathan Goldberg, said Mrs Blackman and Mr Forsyth were the ""the hero and the heroine of this occasion"". After the ruling, Mr Forsyth said: ""It's not over yet. We always wanted justice - a very elusive word, much used, seldom achieved. ""It's a two-bladed weapon. Firstly, one blade to get a man who should never have been in prison out of prison, secondly, we go after those people who wrongly and, I think, villainously put him there."" By Jonathan Beale, BBC defence correspondent Claire Blackman had a tear in her eye and could be heard saying ""phew"" when the Lord Chief Justice read out his judgement. She was clearly relieved as Lord Thomas announced that her husband's murder conviction should be quashed and substituted with manslaughter. When the news was relayed outside the court, there were celebrations. Veterans, some wearing the green beret of the Royal Marines, cheered, prompted passing traffic to blast their horns. This popular support has helped fund the appeal against his murder conviction. Many view Blackman - better known as Marine A - as some kind of victim. But he's not innocent in the eyes of the law. He's still guilty of manslaughter. Blackman shot an insurgent who had been seriously injured in an attack by an Apache helicopter, in the chest at close range with a 9mm pistol. Footage of the 2011 incident was captured on a camera mounted on the helmet of another Royal Marine. A court martial heard that Blackman used abusive language and said: ""There you are. Shuffle off this mortal coil."" He then turned to his comrades and said: ""obviously this doesn't go anywhere, fellas. I just broke the Geneva Convention"", it was alleged. During his trial, Blackman, who denied murder, said he believed the victim was already dead and he was taking out his anger on a corpse. He was convicted of murder in November 2013 and jailed for life. He lost an appeal in May of the following year, but his 10-year minimum term was reduced to eight years. The trial was the first time a member of the British armed forces had faced a murder charge in relation to the conflict in Afghanistan, which began in 2001. A Ministry of Defence spokesman said: ""We have fully co-operated with each stage of Sergeant Blackman's case and will continue to provide personal support to the family, as we have done since charges were first brought. ""We respect the court's decision and it would be inappropriate for us to comment further on it."" Panorama, Marine A: The Inside Story will be on BBC One at 22:50 GMT, and available later on iPlayer.", -2453,2017/3/15,http://www.bbc.co.uk/news/world-europe-39283797,Austria avalanche: Four skiers dead in Tyrol,"Four people were killed when large avalanche swept away a ski group in the Austrian Alps, police say.","Four people were killed when large avalanche swept away a ski group in the Austrian Alps, police say. The avalanche hit the remote Jochgrubenkopf peak in the Tyrol region at about 12:30 local time (11:30 GMT). It engulfed a group of eight foreign tourists, but four managed to free themselves and seek help, according to Austrian reports. Three bodies were found quickly but rescuers searched for hours to find the fourth body buried deep in the snow. Local reports said the ski group was visiting from Switzerland. Rudi Mair from the Tyrol avalanche warning service said ""tonnes of snow"" had come down the 2,400m (7,800ft) mountain. The avalanche was said to have been about 700m (2,300 feet) long. The alert level at the time had been quite low. But Mr Mair told Austrian broadcaster ORF that the avalanche had been triggered by a small amount of fresh snow on top of several, unstable layers of old snow. Fourteen people in Austria have died in avalanche accidents this winter, officials say.", -2454,2017/3/15,http://www.bbc.co.uk/news/uk-politics-39280770,Buckingham Palace repairs funding approved by MPs,Funding for a multimillion-pound refurbishment of Buckingham Palace has been approved by MPs.,"Funding for a multimillion-pound refurbishment of Buckingham Palace has been approved by MPs. They backed changes to the Sovereign Grant - the funding formula for the monarchy's official duties - by 464 votes to 56. The grant will increase by 10% to pay for the ?369m refurbishment. Officials say the essential work - set to take 10 years - is needed to avoid the risk of ""catastrophic building failure"". Ageing cables, lead pipes, wiring and boilers will be replaced, many for the first time in 60 years, amid fears about potential fire and water damage. Two Labour MPs - Rushanara Ali and Dennis Skinner- were among those who opposed the move, along with 46 from the SNP. A review by the Royal Trustees - who include the prime minister and the chancellor - agreed that works to the palace should be funded by a temporary increase in the Sovereign Grant. Profits from the independent property business Crown Estates go to the Treasury, which in turn gives 15% of the sum to the monarch in the form of the Sovereign Grant. The grant will be raised between 2017 and 2027 from 15% to 25% of Crown Estate profits. An online petition calling for the royals to pay for the refurbishment rather than taxpayers attracted more than 145,000 signatures. But Shadow chancellor John McDonnell, who describes himself as a republican, said he backed the taxpayer-funded restoration, calling the palace a ""national monument"" that needed to be preserved. The Queen will remain in residence during the work, which will begin in April. The palace will also remain open to visitors, due to the decision to phase the works over a decade. 775 rooms 78 bathrooms 1,514 doors 760 windows 100 miles of electrical cabling 20 miles of heating pipework", -2455,2017/3/15,http://www.bbc.co.uk/news/world-asia-india-39281699,Danielle McLaughlin murder: Man charged over Goa attack,Police have charged a man with the murder of an Irish woman in the southern Indian state of Goa.,"Police have charged a man with the murder of an Irish woman in the southern Indian state of Goa. Danielle McLaughlin's body was discovered in an open field close to tourist resorts in Canacona on Tuesday. In a tribute, her mother, Andrea Brannigan, said she would be ""sadly missed by all"". She said the family were finding it a ""difficult and trying time"" since receiving the ""awful news"" about her 28-year-old daughter. She also thanked the Irish and British consulates for their support. Ms McLaughlin grew up in Buncrana, County Donegal, in the Republic of Ireland. She was an Irish national holding a British passport and had travelled to India in February. 'Happy-go-lucky person' The police believe that she had been sexually assaulted and a post-mortem examination has taken place to establish whether that is the case. She had injuries on her face and head. Ms McLaughlin's body was identified with the help of some foreign tourists and with information from social networking websites. Fr Francis Bradley from St Mary's Church in Buncrana, who visited the McLaughlin family on Wednesday morning, described the death as an ""immense loss"". He said McLaughlin's mother had now lost her eldest child having lost her youngest child, husband and father in recent years. Fr Bradley described Ms McLaughlin as a ""happy-go-lucky"" girl who loved to travel. ""I met the young lady in question a few months ago at the time that her grandfather was gravely ill and she was very close to her grandfather, who subsequently died. ""She seemed a happy go-lucky, friendly, quiet girl. ""To find that there could be malice or something very sinister involved in the way in which someone died is particularly disturbing and has its own challenge that we, as a community, will have to face,"" he added. Ms McLaughlin went to Buncrana's Irish language school, Scoil Mhuire. The school principal, Rosaleen Grant, said teachers and pupils alike were ""just utterly shattered and devastated"". ""She was a very confident, sociable, outgoing girl of a very caring nature,"" said Ms Grant. ""A number of the staff would have known her really well, so it's just the sense of loss and the fact she's so far from home makes it so tragic. ""She loved taking part in school musicals, she did Irish dancing, she was involved in sports and athletics. She was just an all-rounder really."" Liverpool John Moores University said it was ""shocked and saddened"" to hear of the death of one of its former students. Michael Safi, the Guardian's South Asia correspondent, said a candlelit vigil has been held in Goa, close to the spot where Ms McLaughlin was found. ""The murder has left people ""absolutely shocked,"" he told the BBC. ""This is not the first crime to occur of this nature in Goa. The place is a big tourist engine for India. For the locals, there was concern this could impact very badly on their little slice of paradise. ""Many locals gathered with tourists at the nearby police station in order to put pressure on police to ensure people are watched and to get this case investigated thoroughly."" Last year, an Indian court cleared two men of raping and killing British teenager Scarlett Keeling. The 15-year-old was found dead on Goa's popular Anjuna beach in 2008, having drowned after allegedly being plied with drugs. Miss Keeling's mother said her heart sank after hearing of Ms McLaughlin's death. ""It is horrific,"" Fiona MacKeown said. ""My heart breaks for her family and friends. ""I know what they are going through."" Are you affected by this story? Email us at haveyoursay@bbc.co.uk You can your pictures and video with us at yourpics@bbc.co.uk You can also contact us in the following ways:", -2456,2017/3/15,http://www.bbc.co.uk/news/uk-england-suffolk-39285579,'Rare' twin foals born on Suffolk farm,,"Twin foals, a rarity in the equine world, have been born on a farm in Suffolk. The two Welsh cobs, called Tilly and Lilly, are just over a week old and are doing well under the watchful eye of mum Rose on the farm at Wingfield. It is unusual for a mare to be allowed to carry twins to full-term as it can be dangerous and lead to complications, but Rose's pregnancy was too far developed to safely intervene, owner Lee Smith said. Equine vet Chris Lehrbach said he had only known of two pairs of twin foals born in more than 20 years - with the odds of survival believed to be one-in-10,000.", -2457,2017/3/15,http://www.bbc.co.uk/news/business-39286091,US raises benchmark interest rate by 0.25%,The US Federal Reserve has raised its benchmark interest rate by 0.25% for only the third time in a decade.,"The US Federal Reserve has raised its benchmark interest rate by 0.25% for only the third time in a decade. The central bank voted to raise its key rate target to a range of 0.75% to 1%. The Fed had been expected to raise rates after a robust February jobs report, solid pay gains, rising inflation and a dip in the unemployment rate to 4.7%. Federal Reserve policymakers are expected to increase rates a total of three times this year. The Fed aims to keep the cost of lending between banks within a specified band, which it does by buying or selling financial assets. It is raising that band by a quarter of a percent. Fed Chair Janet Yellen said the committee judged that a ""modest increase"" in the rate is appropriate ""in light of the economy's solid progress."" ""Even after this increase, monetary policy remains accommodative, thus supporting some further strengthening in the job market, and a sustained return to 2% inflation,"" she added. The decision was approved with a 9-1 vote. Neel Kashkari, the head of the Fed's regional bank in Minneapolis, cast the dissenting vote. This is the second time the Fed has raised rates in three months. It signalled that further hikes this year will be gradual. The Fed's statement said its inflation target was ""symmetric,"" indicating that after a decade of below-target inflation it could tolerate a quicker pace of price rises. Wall Street stock indexes jumped after the announcement, with the Dow Jones Industrial Average up 112 points at 20,950 in afternoon trading. The US dollar fell about 0.9% against the euro and more than 1% against the pound. The central bank's outlook for the economy changed little, with officials expecting economic growth of 2.1% this year and next year before slipping to 1.9% in 2019. Those forecasts are far below the 4% growth that President Donald Trump has said he can produce with his economic programme. But Ms Yellen told reporters that she didn't believe it is ""a point of conflict"" between the Fed and the Trump administration. ""We would certainly welcome stronger economic growth in the context of price stability, and if policies were put in place to speed growth... those would be very welcome changes that we would like to see,"" she said. Some economists think the next rate hike will be no earlier than June, given that the Fed probably wants time to assess the likelihood that Congress will pass Trump's ambitious program of tax cuts, deregulation and increased spending on infrastructure. Central banks in the US and Britain both have inflation targets of 2%, while for the European Central Bank the aim is ""below but close to"" that level. In all three, the headline inflation rate is there or thereabouts. And yet among these three it is only the Federal Reserve in the US that has taken the anti-inflation step of raising its interest rates from record lows. In the UK, the Bank of England expects inflation to rise above the target due to the decline in the pound after the EU referendum. It's reluctant to raise interest rates to fully offset that because of concern about the impact on jobs and economic growth. In the Eurozone inflation is still quite subdued if you take out energy and food prices which are very volatile. So no move yet from either - and not looking very likely in the near future. Luke Bartholomew, an investment manager at Aberdeen Asset Management, said the Fed ""faces a tricky path from here"". The US economy may turn out to be stronger than expected, leaving the Fed playing catch-up, he said. ""Meanwhile, they're facing increasingly shrill calls for their independence to be curtailed. It's hard to imagine that the rest of this hiking cycle will go off without a hitch,"" he added. Kully Samra, UK managing director of Charles Schwab, said there were ""a lot of unknowns"" about the path of future US rate hikes. ""If White House plans for deregulation, tax cuts and more government spending are realised, then growth and inflation could be stronger than expected and lead to more hikes,"" he said. ""On the other hand, potential border taxes, trade tariffs and tighter monetary policy could slow growth and inflation,"" he added.", -2458,2017/3/15,http://www.bbc.co.uk/news/uk-politics-39284989,Police forces pass election spending files to CPS,Twelve police forces have asked the Crown Prosecution Service to consider charges over general election expenses.,"Twelve police forces have asked the Crown Prosecution Service to consider charges over general election expenses. The CPS said it had received files from 11 forces, and a 12th, Staffordshire Police, confirmed to the BBC it too had sent one. The files are for the CPS to decide whether charges should be brought. It comes after complaints about the way Conservative ""battle bus"" visits to constituencies had been recorded in campaign spending returns. The allegations came to light following an investigation by Channel 4 News into claims the Tories may have broken election law at the 2015 general election and three earlier by-elections. The CPS confirmed files had been received from: On Monday, it was revealed that Craig Mackinlay, the MP for South Thanet in Kent, had been interviewed under caution over his election expenses. Kent Police is not one of the forces to have sent a file to the CPS. A second Conservative MP, Will Quince, who represents Colchester, said he had been told by Essex Police he faced no further action after voluntarily attending an interview under caution last January. In a statement posted on Twitter, Mr Quince welcomed the decision by the police but said the complaint against him had been ""vexatious and politically motivated"".", -2459,2017/3/15,http://www.bbc.co.uk/news/uk-39278690,Tommee Tippee probes 'mould' in Perfect Prep machine,"Tommee Tippee has launched an investigation after parents complained of finding ""mould"" in the internal pipes of its formula feed machines.","Tommee Tippee has launched an investigation after parents complained of finding ""mould"" in the internal pipes of its formula feed machines. The baby product company said it was concerned by reports of a ""build-up"" in the tubes of its Perfect Prep machines. Parents have taken to social media to complain of feeling ""angry"" and ""let down"". Tommee Tippee said initial investigations suggest the build-up was carbon residue which is ""harmless"". The Perfect Prep machine is used to make a formula feed by controlling the quality, volume and temperature of the water being used. The company posted a statement on its Facebook page saying it had received comments from parents complaining the internal pipes of the machines were not clean. It urged families who had found a similar build-up to contact the company to have the machine returned to them for examination. More than 3,600 comments have since been left on the Tommee Tippee page, with several parents saying they had also discovered unclean pipes. Gillian Clelland, from Glasgow, said the machine she uses to feed her son Hayden was ""full of black mould in the pipe"". She said: ""The worrying thing is I don't know how long the mould has been there and if it has affected Hayden in any way."" Allana Simpson wrote: ""I've just opened mine up to check after seeing this and there is black mould in the pipe. My poor wee boy. This won't be getting used. Horrified."" Holly Dack-Hughes said she had always done a ""full clean"" and changed the filter on her machine ""every month"" but opened it to find it was ""absolutely disgusting"". ""No wonder my daughter was having an upset tummy,"" she said. However other parents took to the page to say they had checked their machines and found the pipes were clean. Astyn Hutchinson said the pipes of her machine - which she has she has had for 18 months and uses for every feed - were ""completely clear"". She added: ""I love this machine and has been a Godsend especially for those night feeds in the early stages."" Sarah Stephens said she bought hers in 2015 and had used it continuously for a year and found ""all pipes clear and clean and looks as good as new"" when she checked. Tommee Tippee said it was ""concerned"" by the complaints made and has started an investigation. It said it would be impossible to determine the exact cause until it had examined the machines sent back by parents. A spokesman added: ""Our preliminary investigation has found two things. Firstly, the build-up we've seen so far we suspect is carbon residue and not mould. Carbon is a harmless, inert bi-product of the filtration process. ""Secondly, some parents have told us they've used ordinary water jug filters instead of the Tommee Tippee filters. Standard filters do not contain the ultra-filtration membrane needed to remove bacteria, plus are more likely to release carbon into the system. ""Although we can't be certain until we've received back and examined more machines, it is possible these factors are linked to what people are seeing. ""However, the investigation will continue until we've found answers.""", -2460,2017/3/15,http://tass.com/politics/935761,"Media reports on alleged causes of Tu-154 crash are authors""?personal opinions ""?IC",Russia's Investigative Committee continues its investigation into the Tu-154 crash in the Black Sea resort of Sochi,"MOSCOW, March 15. /TASS/. Media reports about alleged causes of the Tu-154 military plane crash over the Black Sea are nothing else but their authors""?personal opinions, a spokesperson for the Russian Investigative Committee (IC) said on Wednesday. ""Assumptions, published in the media, about a possible human error or possible characteristics of the Tu-154 flight are not based on facts and are personal opinions of their authors,"" Svetlana Petrenko said, adding Russia's Investigative Committee continues its investigation into the Tu-154 crash in the Black Sea resort of Sochi. ""The investigating team's work is focused on establishing the causes of the disaster,"" she said in conclusion. On March 14, the Kommersant daily published an article claiming that a technical stage of probe into the crash was complete. The publication said that experts had determined that the pilot of the Russian Defense Ministry's Tu-154 aircraft, which crashed into the Black Sea during its flight from Sochi to Syria, had attempted to land the aircraft on the water. Experts have come to the conclusion that the plane did not fall into the sea as had earlier been presumed. Sources told Kommersant that after take-off, the Tu-154 jet gained an altitude of around 250 meters and a speed of 360-370 kilometers per hour. After that, pilot Roman Volkov switched the plane into landing mode for an unexplained reason. During the next ten seconds, the aircraft descended under the pilot's control and then hit the water, breaking apart. Later, Chief Military Prosecutor Sergei Fridinsky said that the investigators had not come to any definite conclusions. ""The media reports contain just assumptions since the investigation has not come to anything as of yet,"" he said. In the meantime, an informed source told TASS that the technical commission looking into the circumstances behind the military plane crash continues its work. ""The technical commission, bringing together experts and specialists of the Defense Ministry, Aerospace Force and Interstate Aviation Committee, has not finished its work yet,"" he said, noting different tests were underway. ""Conclusions about circumstances and contributing factors behind the crash will be drawn after the commission's work draws to a close,"" he said, confirming that a human error was among the lines of inquiry. A Russian defense ministry Tu-154 bound for Syria crashed in the early morning on December 25, 2016 shortly after taking off from Sochi airport. There were 92 people on board the aircraft, including eight crew members and 84 passengers. Among them were journalists from Russia's Channel One, Zvezda and NTV networks, servicemen and musicians from the world-acclaimed Alexandrov ensemble, the official choir of the Russian armed forces, who set off to celebrate New Year's Eve with Russia's Aerospace Forces at the Hmeymim air base in Syria. The Executive Director of the Spravedlivaya Pomoshch (Russian for Fair Aid or Fair Help) charity fund Elizaveta Glinka, known to the Russian public as Dr. Liza, was also on board the flight.", -2461,2017/3/15,http://tass.com/politics/935768,Russian diplomat slams remarks of UN rights chief on Syria,,"MOSCOW, March 15. /TASS/. Assessments of the UN Commissioner for Human Rights Zeid Ra'ad Al Hussein on the situation in Syria, he voiced in Geneva on March 14, raise a question of the conformity of his actions to his position, Russian Foreign Ministry spokeswoman Maria Zakharova said on Wednesday. ""We have to state that Zeid Ra'ad Al Hussein's speech at the 34th session of the UN Human Rights Council was not the first in a row of his statements and public assessments inadmissible for a UN official and opposite to commitments and requirements of professional ethics stipulated in the organization's Charter for staff of the UN Secretariat,"" Zakharova said. ""This poses the question whether such actions of Zeid Ra'ad Al Hussein are in conformity with the high international status of his position,"" she said. ", -2462,2017/3/15,http://tass.com/economy/935765,US Federal Reserve System raises base interest rate to 0.75-1%,The Fed rate increase was expected by experts,"WASHINGTON, March 15. /TASS/. The US Federal Reserve System acting as the national central bank has raised the base interest rate by 25 basis points to 0.75-1%, the Federal Open Market Committee said Wednesday after the meeting. The Fed rate increase was expected by experts. Bloomberg poll revealed that only two of 82 economists surveyed expected the Fed to maintain the interest rate at the range of 0.5-0.75%. The rest of the surveyed experts predicted a rate hike by 25 basis points to 0.75-1%. ", -2463,2017/3/15,http://tass.com/economy/935755,Sberbank hopes National Bank of Ukraine will have vision when deciding on Russian banks,The National Bank of Ukraine (NBU) has proposed prohibiting banks with Russian capital to withdraw funds outside the country,"MOSCOW, March 15. /TASS/. Sberbank is looking forward to vision of the National Bank of Ukraine (NBU) when making decisions in respect of subsidiaries of Russian banks, the Russian credit institution said on Wednesday. ""We do not comment on the situation until formal decisions are made. We hope authorities of the country [Ukraine - TASS] will show wisdom and vision when making the final decision,"" press service of Sberbank said. The National Bank of Ukraine (NBU) has proposed prohibiting banks with Russian capital to withdraw funds outside the country. Imposition of such sanctions will impose a ban on any operations in favor of parent banks - granting inter-bank loans, deposits, purchases of securities, payment of dividends and other operations, Deputy Head of the NBU Yakov Smoliy said. Sanctions will be imposed against Sberbank, Prominvestbank, VTB, BM Bank and VS Bank, the NBU representative added.", -2464,2017/3/15,http://tass.com/economy/935739,Experts explain how Ukrainian sanctions will affect Russian banks,The National Bank of Ukraine has proposed prohibiting banks with Russian capital to withdraw funds outside the country,"MOSCOW, March 15. /TASS/. Sanctions suggested by the National Bank of Ukraine against subsidiaries of Russian credit institutions working in the country will not be a shock for parent banks, Senior Director of Fitch Ratings Alexander Danilov told TASS on Wednesday. ""Even if Russian banks have to sell their subsidiaries in Ukraine with a maximal discount, losses of parent banks will be insignificant. The share of Ukrainian subsidiaries of Sberbank and VTB in assets of parent companies is less than 1%, the share of Prominvestbank is slightly higher, so withdrawal of subsidiaries will not affect stability of these institutions,"" Danilov said. Expert of the Russian Analytical Credit Rating Agency (ACRA) Kirill Lukashuk agrees that the introduction of sanctions by the National Bank of Ukraine (NBU) against subsidiaries of Russian banks will not significantly influence parent institutions. ""I think this is essentially an attempt to force Russian banks to sell their subsidiaries. Most probably, this is a scenario viewed by the NBU as the main one,"" the expert told TASS. The Ukrainian banking market will not benefit from exit of Russian banks""?subsidiaries, President of the Association of Russian Banks (ARB) Garegin Tosunyan told TASS on Wednesday. Objectives and grounds for Ukraine's sanctions against these banks are unclear, the Russian banker said. ""Our banks are not going to leave the Ukrainian market. Let the National Bank of Ukraine explain, what they want from that. Subsidiaries of Russian banks provide services for Ukrainian customers, give loans to them, and work under laws of Ukraine. I hope the Ukrainian side will drop this idea, because it will not receive anything good from that,"" Tosunyan said. Grounds for sanctions are unclear, the ARB President said. ""I cannot understand what can be the basis to recommend prohibitions for subsidiaries of Russian banks. At least there should be any grounds to do so,"" Tosunyan said. The National Bank of Ukraine (NBU) has proposed prohibiting banks with Russian capital to withdraw funds outside the country. Imposition of such sanctions will impose a ban on any operations in favor of parent banks - granting inter-bank loans, deposits, purchases of securities, payment of dividends and other operations, Deputy Head of the NBU Yakov Smoliy said. Sanctions will be imposed against Sberbank, Prominvestbank, VTB, BM Bank and VS Bank, the NBU representative added. ", -2465,2017/3/15,http://tass.com/politics/935748,"Terror attack in Damascus timed to coincide with Astana talks on Syria ""?Foreign Ministry",The Russian Foreign Ministry has condemned the attack and offered condolences to families of the victims,"MOSCOW, March 15. /TASS/. The terrorist attack that hit Damascus on Wednesday was obviously timed to coincide with the Syria peace talks underway in Kazakhstan's capital of Astana, the Russian Foreign Ministry said on Wednesday. ""We condemn another atrocity of terrorists, blatantly timed to coincide with the 3rd International Conference on Syria held in Astana,"" the ministry said. ""We offer condolences to families of the victims and wish the soonest recovery to the injured."" The Russian Foreign Ministry said that Russia ""was not supported by some partners"" at the UN Security Council when it tried to have the draft resolution, which vehemently condemns the big terrorist attack that hit the Syrian capital on March 11, adopted. ""We think that unwillingness to view terrorists that kill Syrians with the same extent of unconditional condemnation, with which the international community view terrorist attacks in other countries, is a policy of double standards, which produces doubts about adherence of those who pursue it to the goal of global eradication of terrorism,"" the ministry said. ""Such double standards provoke terrorists to commit new deadly crimes and decrease efficiency of efforts to separate the Syrian armed opposition, on the one hand, from ISIS (former name of the Islamic State terrorist group outlawed in Russia - TASS), al-Nusra and their accomplices, on the other,"" it said. ""We urge our partners to consider steps against terrorism, either in Syria or in any other country, as top priority ones that require particular attention and international consensus with regard to disastrous, tragic repercussions of condoning this universal evil,"" the Russian Foreign Ministry said in conclusion.", -2466,2017/3/15,http://tass.com/defense/935742,Tank army in west Russia receives advanced short-range air defense missile systems,Advanced Tor-M2U surface-to-air missile systems will soon assume combat duty in the Moscow Region,"MOSCOW, March 15. /TASS/. Advanced Tor-M2U (NATO reporting name: SA-15 Gauntlet) surface-to-air missile systems have entered into service with the 1st Guards Tank Army in Russia's Western Military District and will soon assume combat duty in the Moscow Region, the district's press office said on Wednesday. ""Now combat crews are learning to operate the systems with the involvement of defense industry representatives at the ground forces""?air defense training center in the city of Yeisk in the Krasnodar Territory. The re-training will end with a live-firing tactical exercise at one of the practice ranges in the Astrakhan Region,"" the press office said. After the drills, the air defense systems will arrive in the Moscow Region where they will assume combat duty, the district's press office said. The Tor-M2U is a modern multipurpose short-range antiaircraft missile system characterized by high mobility. It is capable of successfully accomplishing combat assignments in any situation, including amid the enemy's active jamming counter-measures. Apart from various aerodynamic targets, the Tor is capable of hitting missiles.", -2467,2017/3/15,http://tass.com/economy/935717,Sberbank office in Ukraine's Dnepr blocked by nationalists suspends work,"Earlier on Wednesday, the nationalists bricked up the entrance to the bank","KIEV, March 15. /TASS/. An office of the Ukrainian subsidiary of Russia's Sberbank in the country's fourth largest city of Dnepr has suspended operations after a group of nationalist activists blocked its work, a bank employee told TASS on Wednesday. ""The work of the bank's office on Voskresenskaya street in Dnepr has been suspended for uncertain time,"" she said. Earlier on Wednesday, the nationalists bricked up the entrance to the bank. On Monday, a group of activists also blockaded Sberbank's central office in Kiev, demanding the Central Bank of Ukraine to revoke licenses of Russian banks operating in the country.", -2468,2017/3/15,http://tass.com/sport/935720,"IPC needs to specify criteria for Russia's membership reinstatement ""?sports minister","""The situation with Paralympians is alarming and complicated,"" Russian Sports Minister Pavel Kolobkov said","MOSCOW, March 15. /TASS/. The International Paralympic Committee (IPC) should come up with clear-cut and comprehensible criteria, required by the global body for the Russian Paralympic Committee (RPC) to reinstate its membership, Sports Minister Pavel Kolobkov said on Wednesday. ""The situation with Paralympians is alarming and complicated,"" Kolobkov said. ""The IPC head says that the Russian team has all chances of taking part in the 2018 Paralympics, however, we seek more transparent and understandable movement."" ""Considering all facts at the issue, I am sure that the RPC is doing everything possible for its membership's reinstatement,"" Kolobkov said. ""I believe that the IPC should reevaluate its approach to the current situation."" In its statement on Tuesday the RPC called as ""Inconsistent""?the data mentioned in the report of the WADA Independent Commission regarding doping samples of Russian Paralympians. According to the RPC, a meeting of Russian lawmakers and the IPC in Bonn on March 10 raised again an issue of 35 positive doping samples mentioned in the now-infamous McLaren report. The RPC claimed in-its statement that it had been informed about 10 new doping cases after the McLaren report was published. However, as the Russian side explained, only 28 out of 45 doping samples belonged to Paralympians. On August 7, 2016, the International Paralympic Committee decided to bar the entire Russian team from taking part in the 2016 Summer Paralympics in Brazil's Rio de Janeiro. The Court of Arbitration for Sport (CAS) on August 23 upheld the IPC ruling that came on the heels of a report delivered in July by the WADA Independent Commission, chaired by Canadian sports law professor Richard McLaren. The McLaren-led commission claimed in particular that a total of 35 doping samples were concealed by Russian Paralympic sports between 2012 and 2015. Besides collectively punishing the Russian national team by banning it from the Rio Games, the IPC also decided to suspend the RPC membership in the international organization. The Russian Paralympic team is now facing a possibility of being banned from the 2018 Winter Paralympic Games in South Korea's PyeongChang. On November 21, the IPC made public a list of criteria Russia must meet to resume the RPC membership and be allowed to take part in international competitions. Officials from the two Paralympic organizations met in mid-December in Bonn to discuss these criteria. On January 11, the Russian Paralympic Committee referred to the IPC its edition of the roadmap for resumption of its membership.", -2469,2017/3/15,http://tass.com/defense/935726,Turkish defense minister notes progress at talks with Russia on S-400 air defense systems,"""There is progress in the talks but the sides have not yet reached the stage of putting their signatures today,"" Turkish Defense Minister Fikri Isik said","ANKARA, March 15. /TASS/. Moscow and Ankara have achieved progress at the talks on the possible sale of Russian-made S-400 antiaircraft missile systems but the negotiations have not yet reached the stage of signing a specific deal, Turkish Defense Minister Fikri Isik said on Wednesday. ""There is progress in the talks but the sides have not yet reached the stage of putting their signatures today. The negotiations on this issue are continuing,"" the news agency Anadolu quoted the Turkish defense minister as saying on the possible sale of S-400 antiaircraft missile systems. Kremlin spokesman Dmitry Peskov confirmed to Izvestia daily earlier on Wednesday that Russian President Vladimir Putin and Turkish President Tayyip Erdogan discussed during their talks in Moscow last week the possibility of delivering S-400 systems to Turkey. According to the paper's data, the Turkish side is discussing a possible contract and specifying the equipment set of S-400 supplies. Russia's hi-tech corporation Rostec CEO Sergei Chemezov said on Tuesday Turkey had expressed its wish to obtain a loan from Russia for the purchase of armament, including S-400 antiaircraft missile systems. Chemezov said in February that Turkey was showing interest in S-400 systems and the sides were negotiating possible deliveries. The S-400 Triumf is the newest long-range antiaircraft missile system that went into service in 2007. It is designed to destroy aircraft, cruise and ballistic missiles, including medium-range missiles, and can also be used against ground objectives. The S-400 can engage targets at a distance of 400 km and at an altitude of up to 30 km.", -2470,2017/3/15,http://www.dw.com/en/beyond-libya-russia-s-strategy-in-the-middle-east/a-37955736?maca=en-rss-en-all-1573-rdf,Beyond Libya: Russia's strategy in the Middle East,"Russia is intensifying its political and military involvement in Libya as part of a new Middle East strategy, which has several objectives. Some of them benefit the region and others are mostly advantageous for Moscow.","The denial came promptly. No, Russia has not stationed special forces on the Egyptian-Libyan border. ""There are no special forces in Sidi Barrani in Egypt,"" declared the Russian defense ministry in Moscow. Kremlin spokesman Dmitry Peskov made a similar statement. He said that he had ""no information"" about Russian troops having been sent to Egypt. The contradictions go on. The news agency Reuters reported that a 22-member Russian special forces unit was at the military base there and that the US military has confirmed this. However, it is undisputed that Russian involvement in Libya has intensified in recent weeks and months. Until the end of February in 2017, a few dozen armed staff members of a Russian security firm were in the areas controlled by Libyan General Khalifa Hifter's troops. Without any democratic legitimacy, Hifter has taken it upon himself to fight the jihadist rebels, especially the so-called-""Islamic State"" (IS) terror organization. According to reports in the newspaper ""Arab News,"" the owner of the firm has confirmed the presence of Russian mercenaries. However, he did not want to say who hired the men or where they were operating. Libya's wielder of military power: General Khalifa Hifter A visit at the aircraft carrier It is also well known that Hifter visited the Russian aircraft carrier Admiral Kuznetsov when it was leaving the Syrian coast for Russia. According to media agencies, a video conference was held with the Russian defense minister Sergey Shoigu. Earlier this week, Hifter's advisor Abdelbaset Al-Basti met with Russian deputy minister of foreign affairs, Mikhail Bogdanov, in Moscow. Both of them agreed that it was necessary to establish a ""collective dialogue with representatives of all political and tribal groups,"" stated the Russian defense ministry. The involvement in Libya is an extension of the MENA (Middle East and North Africa) policy, as presented in a strategy paper on Russian foreign policy in the autumn of 2016. It states that Moscow will continue to contribute to stability in the region and focus on the ""political and diplomatic resolution of conflicts."" A new Middle East strategy At the same time, the paper hints at an entirely new strategy in some regions of the world. ""Today, at a time when the interdependence of people and states has increased significantly, attempts to establish security and stability on foreign territory have no future,"" the paper states. In other words, the days when a foreign power was able to shape another country's policies at its own discretion are now over. Russia has drawn conclusions from its involvement in Syria, fighting on the side of President Bashar al-Assad. Russia does have very concrete ideas about politics for the future of the country. Yet this can only be done together with a partner, meaning Assad. Furthermore, there are other partners, like Iran or the Lebanese Hezbollah that has been backed by Iran. These alliances do not have to be lasting. The paper suggests that they are situational and temporary alliances that can also be disbanded once goals have been achieved. The fight against terror: Libyan troops uncover and 'Islamic State' weapons cache Criticism of US Middle East policy Russia has drawn conclusions from the US invasion in Iraq in 2003. The administration of George W. Bush went in without having found a local political partner who could help restructure the country. The post-war phase was accordingly chaotic. The impact of the intervention can still be felt today. Moscow has also criticized former President Barack Obama's Middle East policies. Leonid Slutsky, chairman of the Duma's committee on international affairs, sees them as a failure and says, ""the powerlessness and the lack of results are obvious."" It is clear that Moscow has learned from these mistakes. Foreign states should cooperate with strong regimes, no matter how ruthless they may be, Putin told ""Newsweek""-magazine when the new strategy paper was unveiled. Otherwise, the world would see the ""destruction of state systems and the boom of terrorism."" A country in chaos: A destroyed van sits on the street in Tripoli A desire for global leadership At the same time, however, Russia is striving to become a global leader after the collapse of the USSR. Moscow has been successful and can prove it. Newsweek reported that in the past two years, Putin has received leading politicians from Arab states a total of 25 times, which is, according to the magazine, five times more than Obama. Russia's Syria involvement plays a substantial role in this result. That is where the country has tested its new strategy, says political analyst Randa Slim from Washington's Middle East Institute. The consequences are obvious. ""Every political leader will now say, 'perhaps it is time to re-evaluate our relations with Russia.'"" It seems as though Russia has just begun working on its Middle East policy. According to a study conducted by the Texas-based think tank Stratfor, Libya is ""just one element of Russia's far more comprehensive strategy of strengthening its ties to the southern Mediterranean region and establishing a realm of influence as in Soviet times.""", -2471,2017/3/15,http://www.dw.com/en/ukraine-orders-blockade-on-rebel-held-east/a-37955619?maca=en-rss-en-all-1573-rdf,Ukraine orders blockade on rebel-held east,Ukraine has imposed a transport blockade on rebel-controlled territory after separatists seized industrial assets. The move is a dangerous escalation in the three year conflict.,"Ukraine on Wednesday announced a transport blockade on the rebel-held east of the country, escalating a political crisis that has the hurt the economy on both sides and threatened a fragile ceasefire. The move comes after separatists confiscated dozens of strategic-Ukraine industries-earlier this month in response to a rail blockade imposed by right-wing Ukrainian nationalists and war veterans since January. ""It will be in place until the occupiers return stolen Ukrainian industry to Ukrainian jurisdiction,"" Ukrainian President Petro Poroshenko told the country's national security council in Kyiv. Only humanitarian deliveries by Ukrainian organizations, the United Nations and the Red Cross would be allowed to cross the contact line, the national security council said.- The decision to block all rail and road traffic heading from the east marks a dramatic reversal for Poroshenko, who had previously sought to end the nationalist blockade.- Earlier this week, security forces clashed with activists and some right-wing lawmakers blocking the rail lines. The forces implementing the blockade say the trade helps fund rebels. Economic links between government and rebel-held territory have largely held during three years of conflict. But the rail blockade has disrupted-trade and vital coal shipments from the east to industries in territory controlled by the-government.- Already facing the prospect of rolling blackouts, the central bank says economic growth could be cut by half to 1.5 percent this year if trade does not resume. Meanwhile, thousands of people on both sides could be left unemployed. Most of the assets seized by rebels belong to the business and industrial group of the Ukraine's richest man, Rinat Akhmetov. The blockade highlights tensions in Kyiv, where Poroshenko and Prime Minister Volodymyr Groysman's government face a backlash from the nationalist camp if they were to break the blockade. Poroshenko told his national security council the decision ""is dictated by the necessity to prevent the destabilizing of the situation in the country, which is being undermined by political operators."" Rebel leader Alexander Zakharchenko cast aside any blame on the separatists, saying the Ukrainian government's decision was ""evidence of an internal power struggle in Kyiv."" ""Kiev can do whatever it wants on its side of the demarcation line. We don't care. We aren't changing our position,"" said Zakharchenko, quoted by the Donetsk rebels' news agency. Russian Foreign Minister Sergei Lavrov, whose government backs the rebels, said the ban ""contradicts common sense and human conscience."" The German government, which has played a key role in trying to find a solution to the conflict in Ukraine, also criticized Kyiv. ""From our point of view, such a decision doesn't contribute to de-escalation: quite the contrary, it tends to encourage the separatist tendencies in Donbass,"" Foreign Ministry spokesman Martin Schaefer said in Berlin, referring rebel-held territory. ""The danger of a military escalation is far from over,"" he added. cw/rc-(AFP, AP, dpa, Reuters) -", -2472,2017/3/15,http://www.dw.com/en/dutch-pm-rutte-s-vvd-emerges-top-in-first-exit-poll/a-37937959?maca=en-rss-en-all-1573-rdf,Dutch PM Rutte's VVD emerges top in first exit poll,Dutch voters are casting their ballots today in an election that has been billed as a barometer of populism in Europe. DW will keep you informed of events as they happen throughout the day.,"Welcome to our rolling coverage of the Dutch election, with the latest news, views and reactions to the divisive race. Read: What you need to know about the Dutch elections All updates in Central European Time (CET) - 22.10-The head of German Chancellor Angela Merkel's office, Peter Altmaier, has congratulated Prime Minister Mark Rutte on his election victory.-""Netherlands, oh Netherlands, you are a champion,"" he tweeted in Dutch. ""Congratulations on this terrific result."" 22.00 DW's Rebecca Staudenmaier spent election day in Geert Wilders' hometown of Venlo, where support for the PVV leader proved surpriisingly hard to find. Post-Brexit and Trump, were we too wary of a populist surge? ""Outside the main train station, around the polling stations, in the streets downtown - there was nary a campaign poster to be found supporting Wilders or the PVV on Wednesday. Indeed, the PVV was only mentioned on a sticker telling people not to vote for the party."" 21.52-Germany's Foreign Office has welcomed the result.- 21.50 DW's Fanny Fascar has been speaking to (relieved) Dutch voters: 21.45 Geert Wilders have taken to Twitter to thank his supporters and fire a warning at the Prime Minister. Wilders tweeted: ""PVV voters - thank you. We have won seats. Our first success. Rutte is not rid of me yet."" 21.40--Green Left party-appears to have made the biggest gains, winning a projected 16 seats, 12 more than in 2012. DW's-Andrea Lueg is at the viewing event; party members appear-to be pleased with the result.- 21.30-The second exit poll also projects the Rutte's VVD claiming the most seats. 21.25 Former Dutch D66 lawmaker and MEP-Lousewies van-der Laan sees a four-party coalition made up of the VVD, D66, the Christian Democrats and the Green Left as the most likely outcome. - 21.22-Tied in second place with Wilders' PVV are the Christian Democrats and the liberal D66 party. Lodewijk Asscher's socialist PvdA, meanwhile,-has taken a severe beating, winning only five seats, a staggering loss of 29 seats. That defeat, however, paves the way for a new voice on the left, the Green Left party. 21.20 A more accurate projection of tonight's results is expected to be released at 9.30 pm.- 21.15 Gert Wilders' anti-Islam PVV tied with two other parties in second place, taking just over 12 percent of the vote and 19 seats. 21.10 Exit polls show Prime Minister Mark Rutte's liberal VVD party leading the Dutch parliamentary elections, taking a projected 31 seats. It looks like a victory for the incumbent, but the party will have to reckon with 10 fewer seats in the 150-member lower house. - 21.01-Dutch PM Rutte's VVD emerges top in first exit poll, Wilders' PVV win 19 seats 21.00-The polls are officially closed. First exit polls results to follow shortly. 20.25 Only 30 minutes-to go!-Here's-what happens after the polls close-at 9pm: 20.10 Ipsos reported just before 8pm that the turnout rate was 73 percent - that's considerably higher than at the same time in 2012 (60 percent) but slightly lower than in 2006 (70 percent). DW's-Bernd Thomas Riegert reports that turnout could now reach well above 80 percent.- 20.00-Only-an hour to go before voting closes and the first exit poll results are released!-We'll keep you updated here through the evening and into night, as will all our correspondents reporting from the Netherlands. 19.35-DW Brussels correspondent Alberto Fernandez managed-to get snap of incumbent Prime Minister Mark Rutte arriving at the VVD headquarters for tonight's viewing party. First exit polls are expected at 9pm.-Are they keeping the champagne on ice? 19.30 Polling stations were set up on the uninhabited man-made archipelago of Marker Wadden, so that visitors who wanted to make the most of Wednesday's beautiful weather wouldn't miss the chance to vote. Around 1,300 people cast their ballots on the sandy island, according to the Dutch nature preservation society, Natuurmonumenten. 18.15 With most people now leaving work, queues outside of polling stations are only getting longer. Ipsos now estimates the turnout rate to reach at least 80 percent. It seems unlikely, however, that a new participation record will be set this year. That record honor belongs to the 1977 elections, which saw a record 88 percent turnout. That year, the Labor Party managed to win the most seats in the lower house but failed to form a coalition. More than 200 days of negotiations later, the Christian Democrats and People's Party for Freedom and Democracy finally managed to form a government, with-Dries van Agt taking over as Prime Minister. 18.00 Turnout hits the 55 percent mark, Dutch public broadcaster NOS reports. The high turnout has forced the city of Amsterdam to print 25,000 additional ballots. 16.55-More high turnout number coming in as The Hague, the seat of the Dutch government, reports-a 44.6 percent turnout rate, up from 36.4 percent recorded at the last election.- 16.30 Dutch-Green party leader Jesse Klaver tells DW that he has reason to remain confident: ""Geert Wilders is losing momentum in the polls, while we're gaining momentum."" Klaver says that these elections can send a message to the rest of Europe: You can stop populism.- 16.00 Reseach bureau Ipsos, which is gathering polling data,-reports that turnout reached 43 percent by 3:45 pm local time, up from 37 percent in 2012.- 15.30-DW's Rebecca Staudenmaier reporting from Venlo noted that no-one she had talked to would admit to supporting Wilders, but that immigration was an issue for many of them. ""There are modest lines at the polling stations but it's been a pretty steady stream coming in all day especially to the old city hall in Venlo,"" Staudenmaier said.-""A small majority of people I've spoken with say they think the Turkey spat will help Wilders, but the rest think Rutte will come out stronger because of his response."" ""A-majority brought up immigration as an issue, saying they think some people aren't integrating and that they think it is unfair that immigrants receive state money rather than that money going to the Dutch people,"" Staudenmaier added. 14.07 -Voter turnout is expected to be far higher than the last election. Pollsters Ipsos put voter turnout at 15 percent at 10:30 am (0930-GMT), up from 13 percent five years ago, with mild weather playing a part. In The Hague, the seat of government, the figure was above 23 percent at noon, up from 19 percent in 2012. High figures were recorded-in Rotterdam and Utrecht as well. 12.52 National daily ""Der Volksrant"" is reporting high voter turnouts at several municipalities. In Enschede at 11:00 20 percent of eligible voters had already cast their vote, compared to 16 percent five years ago. In Rotterdam at 10:00 13 percent had voted compared to 10 percent last time. 12.35 Send more boats!-Voters (and boaters) have descended en masse to a polling booth on the newly built island of-Marker Wadden for their first chance at visiting the man-made island. Access to the ecological project is normally restricted. 12.16-- Rutte says the elections-can send a message to the world. ""We have the upcoming French and German elections. And this is a chance for a big democracy like the Netherlands to make a point - to stop this toppling over of the domino stones of the wrong sort of populism,"" he said. 12.08 Tabloid-""Algemeen Dagblad"" released preliminary exit poll results from the ""most average"" electorate in the Netherlands, putting Rutte at a healthy 26 percent, followed by D66 at 12 percent. Bear in mind their sample size was just-154 people.- 12.02--Peilingwijzer, a site that collates major polls, has published its final tally. It predicts-Rutte's VVD party will wub between 24 and 28 seats in the 150-seat lower house,-with Wilders' party-in second place at 19 to 23 seats, narrowly ahead of the Christian Democrats-at 19 to 21 seats. Rutte's junior coalition partner since 2012, the Labor Party, is projected to take 10-12 seats, well below the 38 seats the party won four years ago. 11.43-Here's another picture of the Trudeau doppelg?nger in charge of the Green-Left party.- 11.41-An Ipsos poll found voter turnout is higher than at the last election. At 10.30 voter turnout was at 15 percent, compared to 13 percent in 2012. 11.26-Jesse Klaver-is a rising star from the Green-Left, but most of his headlines come from how much he looks like Canadian PM Justin Trudeau. He tells DW correspondent-Bernd Thomas Riegert he lacks the muscles to make a fair comparison. 11.24 Many voters are complaining about the sheer size of the ballot papers - about 900 names from 28 parties are on the paper, the Telegraaf reported. 11.09-DW reporter Thessa Lageman says many people she spoke to in The Hague voted for Wilder's Party for Freedom. 10.50-The VVD-aligned cycling enthusiast-dubbed ""Netherland's fastest mayor"" by Dutch media is riding to all 29 polling stations in his electorate to deliver cookies and raise support. 10.38-Mark Rutte cast his vote at a school in the Hague, telling Dutch people to go and vote too, saying it was a right that people had fought hard for. Mark Rutte is hoping to return for a third term 10.35-An election eve debate between Dutch political leaders was by far the most-watched show that night with nearly 3.3 million people -tuning in, according to The Viewing Research Foundation. Netherlands has a population of about 17 million. 10.18 Pro-Erdogan hackers took over several Twitter accounts of high-profile European CEOs, publishers and government agencies, using them to spout anti-Nazi messages in Turkish with the hashtags #Nazialmanya or #Nazihollanda. European Commission head Jean-Claude Juncker said he was ""scandalized"" by the comparisons. 10.05--Populist candiadte Geert Wilders' Party for Freedom gained significant support throughout his controversial campaign, but is now running slightly behind Prime Minister Mark Rutte's VVD party. --- Pollsters I&O said Wilders' dip in support hours ahead of polls opening was due to Rutte's decision to prevent Turkish officials from campaigning for a nationwide referendum that could consolidate President Recep Tayyep Erdogan's powers. Rutte is bidding for a third term as premier of the country of 17 million people --one of the largest economies in the eurozone and a founding father of the EU.-- Final polls appeared to show Rutte pulling away from Wilders, crediting the VVD with coming top with 24 to 28 seats --but down on its 40 seats in the outgoing parliament. The Netherlands, a founding member of the European Union and its forerunner the European Economic Community (EEC), is a dynamic economy, with stable GDP growth, low unemployment rate and a market-friendly economic model. -Still, right-wing populists are expected to perform well in the coming elections. What are the reasons behind this trend? Political and socio-economic problems are growing in complexity in an increasingly globalized world. Many are feeling overwhelmed as a result. Seeing this as a chance, Dutch populists are pushing hard for a breakthrough at the ballot box. Their leader is Geert Wilders, of the Party for Freedom (PVV), who with his simple answers to complicated issues seems set for a dramatic electoral performance. When he took over the reins of his country, Prime Minister Mark Rutte promised solid economic growth and rising prosperity. He has delivered on these fronts: the economic data appear unambiguously positive. But the problem is that the growth and prosperity have not affected many Dutch from lower and middle classes, whose living standards haven't improved over the past five years. - Rutte had also pledged not to pour Dutch taxpayer money into bailing out fellow eurozone economies. The PM, however, had to backpedal on this pledge immediately after taking office and grant an aid package for Greece. The move undercut Dutch voters' trust in his government. Decisions like rising the retirement age to 67 and slashing the social benefits have not helped either. The Dutch soon realized that they have actually been paying a hefty price for the boom. They have had to take cuts to their unemployment benefits and reduce spending on healthcare. The fruits of economic expansion haven't reached the ordinary citizen. While the jobless rate has dropped, many Dutch workers are still finding it difficult to earn enough to maintain their living standards. Under these circumstances, it's unsurprising that nationalist sentiment is on the rise �?even in Dutch society whose liberal values have served as an ideal for many other European nations over the years. In response, the Netherlands has turned against taking in asylum seekers. The prevailing national mood favors Geert Wilders electorally. - Wilders' campaign rhetoric focuses on migrants, particularly Muslims. He seldom appears in public without warning that his country faces the ""threat of Islamization."" Similar to Donald Trump's strategy of blaming Mexicans for every US woe, Wilders points to ""Moroccans"" for the Netherlands' problems. Islam is most visible in Europe through its places of worship, and many people simply do not want any more of them - another reflex that Wilders exploits. He calls for a nationwide ban on mosques and the Koran, argues against the ""Islamic ideology,"" criticizes the euro and challenges the survival of the EU. He does this while promising the voters better elderly care and a hike in pensions. Wilders has been able to score points amid growing voter dissatisfaction. But parties with radical agendas in the Netherlands have so far failed to turn their good poll ratings into votes. -Still, the argument that the country needs to build high barriers seems to be gaining traction; to protect itself from the waters of the North Sea and, for Wilders' followers, against migrants and refugees. - Author: Dirk Kaufmann (sri) Polls show four other parties are expected to gain more than 10 seats, including the centrist D66, Green-Left, the Socialist Party and the social democrat Labor Party (PvdA).-The CDA and D66 would be natural coalition partners for Rutte, both of whom have refused to work with Wilders. Labor appears to be sinking this year, while the left-wing GroenLinks and its young leader Jesse Klaver are enjoying a boost, expected in some quarters to win 16 to 18 seats, possibly making him in a powerful kingmaker. The 30-year-old Klaver said: ""What I would say to all my left-wing friends in Europe:-don't try to fake the populace. Stand for your principles. Be-straight. Be pro-refugee. Be pro-European.""-He added: ""We're gaining momentum in the polls. And I think that's the message we have to send to Europe. You can stop populism."" Nearly 13 million Dutch citizens are eligible to vote, according to official figures. Polls close at 21:00 with exit polls expected shortly after. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yquk aw,ls,jbh,dm/bw,rc (AP, dpa)", -2473,2017/3/15,http://www.dw.com/en/searching-for-wilders-supporters-in-his-hometown/a-37954817?maca=en-rss-en-all-1573-rdf,Searching for Wilders supporters in his hometown,"Finding open supporters of Dutch populist Geert Wilders proved harder than expected in his hometown of Venlo. Although not everyone was a fan, Wilders' influence could still be heard. DW's Rebecca Staudenmaier reports.","If you didn't know better, you would have thought that Wednesday was any old day in the Dutch city of Venlo, located near the German border. Workers repainted lamp posts, people drank coffee in the sunshine outside cafes and streets slowly filled with shoppers. A man whistled to the tune of the street organ as he strolled into a polling station in Venlo's old, Renaissance-style city hall. If the city's residents were nervous about Wednesday's highly-watched parliamentary election, they certainly didn't show it. Venlo is the birthplace of firebrand populist Geert Wilders - and a stronghold of support for his far-right Party for Freedom (PVV). Outside the main train station, around the polling stations, in the streets downtown - there was nary a campaign poster to be found supporting Wilders or the PVV on Wednesday. Indeed, the PVV was only mentioned on a sticker telling people not to vote for the party. But the support is there, especially in the southern state of Limburg, where Venlo is located. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZDTs In a scenario that is starting to feel familiar following the Brexit vote and US President Donald Trump's election, none of the voters in Venlo that I spoke with on Wednesday voiced support for their town's anti-Muslim politician. The phenomenon of a ""silent majority"" may be at play - where voters do not explicitly voice their support, but check the ballot box nevertheless.- Silent majority or not, Wilders policies and attitudes towards foreigners have left an impression on the people of Venlo. 'Why don't you pay us?' A young woman named Cindy said she is ""afraid of Wilders"" and believes he would be bad for Europe. ""His vision is so wrong,"" Cindy said. ""But he's right about some people."" Parliamentary elections were held in the Netherlands on March 15 She noted the recent Turkish protests in Rotterdam by those who opposed government's decision to bar Turkish ministers from attending campaign events for their upcoming April referendum. She said that although it was a small group, the demonstration seemed to affirm Wilders' arguments. Furthermore, when asked what issues were the most important for her, Cindy noted that healthcare and immigrants were her top concerns. She was worried about the ""violence on the streets"" in Venlo in areas where more immigrants live. She criticized the government's current system, saying refugees receive money for education but aren't allowed to work for years. ""Why don't you pay us?"" Cindy asked. ""For our children's school."" Turkey 'should leave us alone' Outside a polling station in Venlo's new city hall, an older man named Albert said he thought that the center-right People's Party for Freedom and Democracy (VVD) would win the most seats at the end of the day. He said that incumbent Prime Minister Mark Rutte did a better job in last night's debate than Wilders. He also said he didn't think Wilders would follow through on his promises (some of which include banning the Koran, closing all mosques, and pulling the Netherlands out of the EU). Incumbent Prime Minister Rutte cast his vote in The Hague on Wednesday But when asked about the Dutch government's diplomatic spat with Turkey, Albert said he wanted ""nothing to do with Turkey"" and that the Turkish government ""should leave us alone."" Albert's concern was for the next government to create more jobs and provide more care for the elderly. 'I think he shouts a lot' Dorrie Besouw, a 32-year-old who works at an elementary school and also studies in Germany, told me that she hopes that Wilders won't become prime minister, but said it was difficult to say how the election will turn out. ""I think he shouts a lot and I don't agree with him,"" Besouw said. She also hopes that no matter what, the government ""will learn to listen to the people"" after the election. An older man who declined to give his name but said he comes from a village near Venlo also said his only hope for the election is that Wilders won't come close to being prime minister. Although no one I spoke with outright praised him, Wilders' influence could be heard in the concerns of Venlo voters. Only time and exit polls will show how the people of Venlo felt about the hometown politician where it mattered most - in the voting booth. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Z7Jx", -2474,2017/3/15,http://www.dw.com/en/champions-league-round-of-16-live-atletico-madrid-vs-bayer-leverkusen/a-37943145?maca=en-rss-en-all-1573-rdf,Champions League round of 16 live: Atletico Madrid vs. Bayer Leverkusen,Bayern Leverkusen have a steep mountain to climb if they are to advance to the quarterfinals of the Champions League. Follow all of the live action right here.,, -2475,2017/3/15,http://www.dw.com/en/us-to-default-on-thursday/a-37954704?maca=en-rss-en-all-1573-rdf,US to default on Thursday?,President Donald Trump's administration will face its first huge challenge on the budget front when the measure to suspend the limit on the amount of money the federal government is allowed to borrow soon lapses.,"The measure to suspend the federal debt limit passed by Congress in 2015 expires on Thursday, March 16, prompting calls for lawmakers to approve legislation to raise the statutory limit. The debt limit is the legal amount that the US government is permitted by Congress to borrow for paying-the administration's bills such as interest-on the national debt, social security costs and salaries to military personnel. As part of a budget deal in 2015, Congress suspended the ceiling-for two years, meaning there is currently no set limit. But without any new directives from the legislature before the measure's expiry, the debt limit allowed would fall back to the previous level of $18.1 trillion (17 trillion euros). Over the past two years, however, the nation's debt has risen by an additional $1.8 trillion, according to the Congressional Budget Office. That means Congress will need to reset the limit to about $20 trillion to reflect the current US national debt. Chinese Premier Li Keqiang said the country would open its economy wider to foreign investment and trade. US President Donald Trump has been on the offensive against the free-flow of Chinese goods. (15.03.2017) US President Donald Trump's aides have made an unusual attack on the credibility of the non-partisan agency that is to analyze the costs of replacing Obamacare. In the past, the CBO has been considered a neutral arbiter. (13.03.2017) German Finance Minister Wolfgang Sch?uble has again rejected US accusations of using currency manipulation to boost German exports and widen the American trade deficit, which jumped to a five-year high in January. (07.03.2017) The Trump administration's top trade adviser, Peter Navarro, has again lashed out against Germany and China for their trade surpluses with the US, saying they pose a risk to American security and prosperity. (06.03.2017) To respond to the situation, the US administration and Congress have three possible choices ahead of them: The first involves lawmakers agreeing to a higher debt limit before the suspension measure expires. The second option is for Congress to extend the current suspension. The last alternative requires Treasury Secretary Steven Mnuchin to use ""extraordinary measures"" to buy time until the fall and hope lawmakers would reach an agreement in the meanwhile. Mnuchin has already declared that he would temporarily suspend the sale of treasury bonds.--- The last time the US faced a similar situation was in March 2015, under Barack Obama's presidency. At the time, Obama's administration employed ""extraordinary measures"" to fund government activity and interest payments until legislators relented and agreed to a last-minute lifting of the cap. A role reversal? Strictly speaking, from Thursday onwards, the government should no longer have any money to spend, potentially leading to the closure of national parks and public services. That would throw Trump's project to ""make America great again"" into disarray. Although the Republicans enjoy majorities in both houses of Congress, it would smack of hypocrisy on their part if they easily waved through a relaxation of the debt limit requirements. That's because they were adamantly opposed to raising-the debt limit and put up tough resistance to such measures when Obama was president. Veering off from that tough stance now just because a Republican is in the White House would erode voter trust in the lawmakers.- The president, meanwhile, faces another tough task: he has to present a plan to Congress outlining how he intends to keep the public deficit and debt from ballooning. Coming up with a plan that satisfies competing factions even within the Republican Party is a daunting challenge, particularly given Trump's ambitious electoral promises spawning building a wall along the border with Mexico, lowering taxes, spending a trillion dollars on infrastructure projects and dramatically increasing military spending.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZBkZ Some in Congress have signaled their willingness to adjust the debt limit accordingly. ""Of course, we will raise the debt limit,"" said Senate Majority Leader Mitch McConell. But he did not mention any specific time frame by when this could be enacted. Rising rates The renewed squabbling could have ramifications for the country's monetary policy as well. The US economy currently is in a good shape, reflected in its falling unemployment rate and accelerating inflation. The stock markets have been on an upward trajectory. The positive economic data-led to the Fed hiking interest rates by a quarter percentage point on Wednesday.- And it also signaled that it would continue to raise rates gradually, with Fed members seeing two more rate increases this year. Hans-J?rg Naumer, a capital market analyst at Allianz Global Investors, says: ""The increase in the debt ceiling will eventually come at a time when the US Federal Reserve continues to hold on to its expansive monetary policy. ""Both of them will put upward pressure on prices and push Fed chief Janet Yellen to increase rates more rapidly than what the market is currently pricing."" Michael Menhart, chief economist at Munich Re, reckons: ""A potential, temporary boost to growth and inflation could lead to more interest rate hikes in 2017 than initially expected.""-- Divergence That, in turn, is not good news for Donald Trump and his expensive election promises. That's because rising US interest rates also make the dollar stronger. But a dollar that is too strong makes US exports pricier and American firms less competitive. Trump's plans to reduce the US' massive trade deficits with China, Japan and Germany are hard to realize with a strong dollar. The Fed's interest rate decisions will also have consequences for Europe. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X6Rb With every rate raise, the interest rate differential between the US and the eurozone widens as the European Central Bank sticks to its zero-interest-rate policy and gigantic bond-buying program. The outcome would be a weakening of the euro to such an extent that the currency's value could fall below-dollar parity. Such a depreciation of the euro area's single-currency is likely to be a boon for European exporters as it makes their products more competitive on-global markets. It would also boost EU exports to the US and make imported goods, which President Trump so much dislikes, more attractive for Americans.", -2476,2017/3/15,http://www.dw.com/en/fed-hikes-interest-rates-as-inflation-picks-up/a-37954931?maca=en-rss-en-all-1573-rdf,Fed hikes interest rates as inflation picks up,The US central bank has increased its benchmark interest rate for the first time since last December. Analysts said the move was overdue and reflected a buoyant economy and higher consumer prices.,"Ending its two-day policy meeting in Washington, the US Federal Reserve reported it had decided to up its key federal funds rate by 25 basis points, up from the current target range of 0.5-0.75 percent. The announcement came after a long period of no changes to the interest rates amid uncertainty over US President Donald Trump's economic agenda. Prior to Wednesday's move, the Fed had raised its key rate last December for only the second time since setting an unprecedented near-zero level at the peak of the global financial crisis in 2008. While markets had fully priced in Wednesday's rate hike, investors had been waiting for clues on the central bank's future monetary policy. There had been little doubt that the lender was now on course for regular three-monthly rises this year, but there was speculation that the rate-hike speed for 2018 and 2019 could turn out to be slightly higher. The bank said Wednesday there could be two more hikes this year, with an accelerated pace envisaged only for 2019. What made the Fed step into action? The Federal Reserve had earlier indicated that stronger signs of inflation had in no small way bolstered the argument for tighter monetary policy. The price index of personal consumption expenditures (PCE) jumped by 0.4 percent in January, showing a 1.9-percent increase for the last 12 months and thus approaching the central bank's own long-term inflation target of 2.0 percent for the first time in nearly five years. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2X7WV The Fed cites the spending-based PCE index as its preferred inflation gauge over the better-known consumer price index. While the latter showed only a slight 0.1-percent rise for February in data released earlier on Wednesday, the index' 12-month reading came in at 0.6 percent, reaching a nearly four-year high. The central bank was also guided by continuously good labor market figures, with roughly 200,000 new jobs created in each of the past three months and-the unemployment rate standing at 4.7 percent at present. Fresh figures also showed a pickup in retail sales in the US despite delays in tax return payments, holding spending back somewhat. hg/sri (AP, dpa) -", -2477,2017/3/15,http://www.dw.com/en/world-in-progress-multiclick/a-5611962?maca=en-rss-en-all-1573-rdf,World in Progress Multiclick,"A weekly look at globalization, education, economic development, human rights and more.",Producer/Host: Anke Rasper-, -2478,2017/3/15,http://www.dw.com/en/world-in-progress-stories-that-matter-from-around-the-world/a-19385803?maca=en-rss-en-all-1573-rdf,World in Progress: Stories that matter from around the world,"World in Progress is a 30-minute radio show that takes you on a journey all around the globe, connecting the dots in a globalized world.","Come join us as we-explore-a world that's increasingly becoming more connected. ""World in Progress"" delves into topics such as human rights, freedom of speech and the effects of economic development. We do stories on issues that are often under-reported or off-the-radar. Well-researched features from correspondents, compelling storytelling and in-depth interviews brought to you by DW's World in Progress. Listen to the show on radio, DW's media center, SoundCloud or subscribe to the podcast on iTunes or via RSS feed.", -2479,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/dutch-election-day-voters-170315180236124.html,Dutch election day: What six voters have to say Thessa Lageman,Al Jazeera headed to polling stations around The Hague to speak to people about who they're voting for and why. By,"The Hague, the Netherlands - On March 15, the Netherlands went to the polls. Twenty-eight parties are vying for 150 seats in the lower parliament. Several new parties participated in the election including DENK (Think), a party against xenophobia and racism; Artikel 1 (Article 1), a left-wing, pro-multiculturalism party; and the right-wing populist parties Forum voor Democratie (Forum for Democracy) and Voor Nederland (For the Netherlands). The country has 12.9m eligible voters. In The Hague alone, there were 272 polling stations located in-train stations, schools, retirement homes, museums, city farms, cafes, performing arts spaces, neighbourhood centres and in a bus that drove around town. Of the 1,114 candidates taking part in these elections, 35 percent are women. Polling stations closed at 20GMT, and the process of counting the votes is underway. Negotiations to form a new cabinet are expected to be a challenge. Earlier this year, all the major parties pledged not to govern with the anti-immigrant populist Freedom Party (PVV) of Geert Wilders, which topped the polls for a while. The current government, formed after in 2012, consists of prime minister Mark Rutte's-liberal-conservative People's Party for Freedom and Democracy (VVD) and the Labour party (PvdA). Al Jazeera spoke to five voters in The Hague and one in Amsterdam about their vote. Rabia Yildiz, 21, is a law student and volunteer for D66, the progressive liberal party. She lives with her parents, who immigrated from Turkey, along with her brother in Transvaal, a neighbourhood where 90 percent of the residents are immigrants. ""Last year, a friend of mine asked if I wanted to volunteer for DENK. I thought, why not, if this party is against discrimination and racism. But soon I realised they discuss just one issue. This is not going to solve discrimination. Furthermore, not all Dutch people discriminate [against] us - I, for example, have never felt discriminated against - and it doesn't happen on such a large scale as DENK says it does. This party is only making the dichotomy bigger, just like the PVV does.- I was contacted by people from D66 and we hit it off immediately. I like their nuanced views and that they stress the importance of education, jobs and healthcare. They aren't following those populist themes about the Dutch identity and integration, like so many other parties these days. In my neighbourhood, we live among many people from different cultures. You learn to deal with people from Morocco, Ghana, Suriname and so on. I think Dutch people who live in neighbourhoods without immigrants miss that ability. Here it's a bit of a craze to vote for DENK now. DENK stands up for us, people say; therefore, many people don't understand why I don't vote for them. Some people say D66 is an anti-religious party because they are pro-euthanasia, abortion and regulated weed plantations. However, they give everyone the freedom to profess their religion or not. I'm planning to sign up as the town council member, and I'd love to become a member of parliament one day."" Philip van Praag is a 68-year-old associate professor of political science at the University of Amsterdam. His research focuses on political parties, election campaigns, referenda and the political role of the media. ""For most people who don't follow politics in detail, the differences between the political parties are at the moment very small. Most of the largest parties want a better healthcare system, are focused on what the Dutch identity is, and want to limit the number of refugees. Only the Groen Links (Green Left) party is somewhat distinctive because of their ideas on sustainability. There are so many political parties in the Netherlands because we have a low election threshold; the chance of winning a seat parliament is rather big. As a result, many people are confused. Nowadays, voters aren't very loyal to a party anymore. Most of them, including myself, let their choice depend on the campaign - especially on television debates. Even now, I am still deciding between three parties. Probably some people who normally don't vote for the VVD will now vote strategically for them, to prevent the PVV from winning. During the 2012 campaign, it was about the crisis: How are we going to save money to survive? Now it's much more optimistic: How are we going to share the wealth? However, it hasn't been a very exciting campaign.- It is clear people have lost trust in the established parties. Many politicians, like Prime Minister Mark Rutte, have promised things they couldn't live up to, such as: 'We won't give any more money to the Greeks'. I think it will take at least until the summer before we have a new government. It will consist of quite a few parties and they all have different wishes about with whom they want to work with.""- Jolanda Looyer-van der Zwan is a 51-year-old housewife. She lives with her husband in the neighbourhood of Duindorp and voted for the PVV. ""This government hasn't done anything in the past few years. I think Wilders deserves a chance. It's not like I agree with everything he says... he shouldn""t have said those things about wanting less Moroccans in the Netherlands. But it is true that foreign people get everything here. We get discriminated in our own country. Those foreigners say they don""t have jobs, but I see so many of them in shops. For my three children, it's hard to rent a house, because foreigners with large families get them.- I haven't hesitated about choosing a party. The whole neighbourhood votes for Wilders. It's definitely not a taboo here. I think there are enough foreigners. Enough is enough. We, as Dutch people, shouldn't have to accept everything. It is clear there is something wrong in this country. Criminality is getting worse. But of course, there are good foreigners too. Some of them do adapt, but many others cause a lot of disturbance."" Cindy de Graaf is 20 years old and is looking for a job. Like most of her friends, she voted for the PVV. She lives with her mother in Duindorp. ""I couldn't afford to study, so I started working in a hotel and then in a shop, where I learned to become an assistant manager. However, then all those refugees came into the country. A few months ago, my boss told me a foreigner is more entitled to get this position and so I lost my job. Why don't we close the borders for a while? I think we should first help all the poor Dutch people before we start giving money to foreigners. Dutch people have unfortunately been ignored in the past few years.- This was the first time I could vote. I thinking voting is important for my future. I've listened to many television debates, but the choice wasn't hard to make. My boyfriend also votes for Geert Wilders - in fact, everyone I know is. I think if he gets into power, there will be more chances for me. Some people say voting for the PVV is a waste of your vote, because none of the parties want to govern with them, but if it does become the largest party, I think the other parties will have to change their minds.""- Peter Pronk voted for the Socialist Party (SP). He is 59 years old and volunteers at a nursing home. He lives with his two cats in Duindorp, a neighbourhood where the PVV gained the highest number of votes in previous elections. ""It's been quite a while since I voted because I actually think there is no use to it. I really lost my confidence in politicians, but for some reason I decided to try it again. It seems like many people voted today. Something needs to change. The rich only get richer. I hesitated quite a long time between the Socialist Part and 50Plus, a party that defends the interests of the elderly. I think healthcare is very important as well as bringing the full benefit age back to 65 instead of 67. If you see how elderly people are treated in this country - it's quite terrible. They get far too little help. It's sad because those are the people who built this country up after the Second World War. There is a lot of discontent about foreigners here, and I agree with many of the PVV's issues. For example, I think foreigners who are criminals should immediately be sent back to where they came from. But what's the use in voting for Wilders? He is not getting into power anyway. Besides, Wilders tars with the same brush. A refugee woman from Ethiopia came to live here with her child and in no time her windows were broken in. That's taking matters too far, don't you think? My wife divorced me. Since then, I have had very little contact with my sons and grandchildren. I don't know why. Unfortunately, I also lost my job as a concierge in a sports centre a while ago, and now I live off unemployment benefits. It's hard to pay all my bills. Luckily, I don't have debts anymore. But there has been a time when I had to go to the food bank. At my age, it's impossible to find another job, so I work with elderly people voluntarily instead. I serve them coffee, lay the tables... it's very nice to do."" Sikander Ramcharan, 30, studied to become an auxiliary nurse. He is divorced and lives in the central Hague district of Schilderswijk, one of the poorest areas in the Netherlands, where more than 90 percent of residents are immigrants. ""I didn't really have the time to vote. My grandmother's funeral took place this week and I had too much to do. I have followed all the debates about the elections though. To be honest, I also had no idea who to vote for. Many of the party leaders have said some good things, which I agree with. I like that young guy from the Green Left party (Groen Links) for example. What's his name again? And the social democratic Labour Party (PvdA) and Christian Union (ChristenUnie), the Christian democratic political party are not bad either. However, it seems they are quite alike, so in the end, I couldn't make up my mind. Last time I voted for the PvdA, but they haven't accomplished much when they were part of the government the past four years. I am especially against all those health care cuts. I used to work as an auxiliary nurse, but unfortunately couldn't stay. Many people from Suriname like me vote for Wilders, but I hope the PVV won't become the largest party. Wilders discriminates [against] people. Of course, I'm also against Muslims who want to wage a 'jihad' here, but saying things like 'They should all be thrown out', is not good [either]. He wants to forbid the Quran, but if that is really going to happen, there will be a war here."" Source:-Al Jazeera", -2480,2017/3/15,http://www.aljazeera.com/programmes/insidestory/2017/03/eu-court-ruling-target-muslim-women-170315203903483.html,Does new EU court ruling target Muslim women?,The European Court of Justice has ruled private companies can prohibit religious and political symbols in the workplace.,"Human rights campaigners say a new ruling by the European Union's top court unfairly targets Muslim women. The European Court of Justice upheld the right for private companies to ban any religious attire at work. The ruling involves two different cases of Muslim women fired for refusing to remove their hijabs or headscarves at work. But for many Muslim women, the hijab is not a symbol but a required part of their faith. And many rights groups say forcing people to choose between their faith and work is in itself a violation of their rights. What does the EU's top court decision mean for religious minorities? Presenter: Dareen Abughaida Guests: Maryam Hmadoun - policy officer for equality and inclusion at the Open Society Justice Initiative Eva Brems - professor of human rights law at the University of Ghent Darya Safai - women's rights activist and founder of the ""Let Iranian Women Enter Their Stadiums"" campaign Source:-Al Jazeera News", -2481,2017/3/15,http://www.aljazeera.com/news/2017/03/high-turnout-dutch-vote-europe-test-170315195346496.html,High turnout as Dutch vote in Europe's far-right test,"Early results show ruling liberal VVD party taking 31 seats, while Geert Wilders' far-right PVV securing only 19 seats. READ MORE: Who votes for Geert Wilders?","The Netherlands' main exit poll suggests Prime Minister Mark Rutte has won the Dutch elections, easily beating anti-Islam firebrand Geert Wilders. For the two-time Prime Minister Rutte, the poll indicated an economic recovery and his hardline handling of a diplomatic dispute with Turkey over the past week had won him support. The Ipsos polling company gave Rutte's party 31 of the 150 seats in the lower house of parliament, compared to 19 seats for Wilders' PVV. ""That is very bad news for Geert Wilders,"" reported Al Jazeera's Laurence Lee from The Hague. Dutch election: High turnout in key national vote The exit poll predicted 19 seats each for the Christian Democratic Appeal (CDA) and Democracy Party (D66). The exit poll was conducted at 43 of the 9,300 polling stations across the country Wednesday. It had a margin of error of two percentage points. Final results are expected in the coming hours.-Weeks or months of coalition talks are expected to follow. The Dutch vote, which has been overshadowed by a diplomatic dispute-between the Netherlands and Turkey,-has essentially come down to a tight race between Rutte's centre-right party and that of far-right, anti-Islam populist Geert Wilders. Most parties had pledged not to govern with the PVV. READ MORE: Dutch Muslims reflect on Geert Wilders before vote As many as 13 million-people were eligible to vote in Wednesday's election and-28 parties were competing for the 150 seats in the Dutch lower house of parliament. Turnout was just over 81 percent, eight percent lower than the record of 88 percent achieved in 1977. ""This is a crucial election for the Netherlands,"" Rutte said as he voted. ""This is a chance for a big democracy like the Netherlands to make a point ... to stop this ... the wrong sort of populism."" Wilders, 53, has vowed to shut mosques, ban the Quran and close the country's borders.-He also wants to pull the country out of the--European Union-,-an institution that it helped found,-in a so-called Nexit. One Muslim voter told AFP news agency that Wilders' fiery anti-Islam rhetoric had prompted her family to come out and vote. ""My mother has never voted before, but now she has and encouraged the whole family to do so because the situation is serious."" Speaking to reporters after he cast his ballott at a school, Wilders said:-""Whatever the outcome of the election, the genie will not go back into the bottle. This patriotic revolution, whether today or tomorrow, will stay."" Rutte, seeking to lead the Netherlands for a third successive term, is a liberal free-marketeer championing this year's election on a pledge of safety and stability. Analysts said his uncharacteristically strong stand since the weekend in a diplomatic crisis with Turkey - when Dutch authorities expelled one Turkish minister while another was refused permission to fly into the country to attend a political rally - has boosted his image with voters. Your browser does not support the video tag. Source:-Al Jazeera and news agencies", -2482,2017/3/15,http://www.aljazeera.com/indepth/interactive/2017/03/elections-netherlands-explainer-170315155943009.html,Elections in the Netherlands: An explainer,"Dutch governments are usually made up of several different parties, making compromise an important part of governing.",, -2483,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/report-israel-established-apartheid-regime-170315054053798.html,UN report: Israel has established an 'apartheid regime' Ben White,Report breaks new ground on the UN's examination of the situation in occupied Palestine by using the word 'apartheid'. By,"A new United Nations report accuses Israel of having established ""an apartheid regime that oppresses and dominates the Palestinian people as a whole"". The publication comes amid renewed debate about whether, through its settlement policy and rejection of Palestinian self-determination, the Israeli government is creating - or even has already created - a de facto ""one-state"", which critics warn would constitute a form of apartheid. It urged governments to ""support boycott, divestment and sanctions [BDS] activities and respond positively to calls for such initiatives"". The report---Israeli Practices towards the Palestinian People and the Question of Apartheid - was commissioned and published by the UN Economic and Social Commission for Western Asia (ESCWA) and launched in Beirut. John Reynolds, a lecturer in law at the National University of Ireland, Maynooth, told Al Jazeera the report ""breaks new ground in the context of the UN's analysis of the situation in Palestine"". Israel's UN envoy Danny Danon issued a statement condemning the report late on Wednesday. ""The attempt to smear and falsely label the only true democracy in the Middle East by creating a false analogy is despicable and constitutes a blatant lie,"" he said. UN spokesman Stephane Dujarric, when asked about the report, said it was published without any prior consultations with the UN Secretariat and its views do not reflect those of the secretary-general. READ MORE: Israel's settlement law: Consolidating apartheid The report was authored by two critics of Israeli state practice: Virginia Tilley, professor of political science at Southern Illinois University, and Richard Falk, former UN special rapporteur on the situation of human rights in the Palestinian territories, and professor emeritus of international law at Princeton University. Noting how ""the expert consensus [is] that the prohibition of apartheid is universally applicable and was not rendered moot by the collapse of apartheid in South Africa"", the report argues that Israel is ""guilty of policies and practices that constitute the crime of apartheid"", a ""crime against humanity under customary international law and the Rome Statute of the International Criminal Court"". The report is a ""detailed analysis of Israeli legislation, policies and practices"" that highlights how Israel ""operates an apartheid regime"", including through ""demographic engineering"". Palestinian citizens of Israel are described as ""subjected to oppression on the basis of not being Jewish"", it said.- Palestinians in East Jerusalem similarly experience ""discrimination in access to education, healthcare, employment, residency and building rights"", as well as ""expulsions and home demolitions"". Palestinians in the West Bank and Gaza Strip are governed by ""military law"" alongside Jewish settlers ""governed by Israeli civil law"", the report said. Palestinian refugees and exiles are ""prohibited from returning to their homes in Israel and the occupied Palestinian territory"" on the basis that they ""constitute a 'demographic threat' and that their return would alter the demographic character of Israel"". As well as urging governments to back BDS, the report recommends that the UN and its member states should ""revive the Special Committee against Apartheid, and the United Nations Centre Against Apartheid (1976-1991)"", which would then ""report authoritatively on Israeli practices and policies relating to the crime of apartheid"". The report also suggests an advisory opinion be sought from the International Court of Justice ""as to whether the means used by Israel to maintain control over the Palestinian people amount to the crime of apartheid"". David Keane, associate professor in law at Middlesex University, said the new report differs from previous ones on the subject because it ""expressly attaches the apartheid label"". OPINION: Israeli Labor Party adopts the apartheid mantra The report could contribute to an already-deteriorating-relationship between the government of Israeli Prime Minister Benjamin Netanyahu and the United Nations. ""For Palestinians and their allies, the report will help to provide a solid basis for their work,""-Nadia Hijab, executive director of al-Shabaka - The Palestinian Policy Network - told Al Jazeera-. Citing the reputation and credibility of the authors, Hijab described the report as ""a clear, concise document"" whose recommendations are ""timely and much needed"". Source:-Al Jazeera", -2484,2017/3/15,http://www.aljazeera.com/news/2017/03/russian-spies-indicted-massive-yahoo-hack-170315184949612.html,Two Russian spies indicted over massive Yahoo hack,Russian agents and two 'criminal hackers allegedly accessed at least 30 million user accounts through spam campaign.,"Two agents of Russia's FSB spy agency and two ""criminal hackers"" were indicted over a massive cyber-attack affecting 500 million Yahoo users, the US Justice Department announced. The indictment unveiled on Wednesday in Washington DC links Russia's top spy agency to one of the largest online attacks in history, carried out in 2014. Officials said it was launched for espionage and financial gain. The US government alleged the content of at least 30 million accounts was accessed as part of a spam campaign, and at least 18 people who used other internet service providers, such as Google, were also victimised. Officials identified the agents as Dmitry Dokuchaev and Igor Sushchin, both of whom were part of the successor agency to Russia's KGB. The two officers ""protected, directed, facilitated and paid criminal hackers to collect information through computer intrusions in the United States and elsewhere"", acting Assistant Attorney-General Mary McCord told reporters. They hired Alexsey Belan and Karim Baratov, described as ""criminal hackers"", to carry out the attacks. ""The defendants targeted Yahoo accounts of Russian and US government officials, including cyber-security, diplomatic and military personnel,"" McCord said. ""They also targeted Russian journalists, numerous employees of other providers whose networks the conspirators sought to exploit, and employees of financial services and other commercial entities."" Washington has not contacted Moscow over charges against the Russians, Russian news agencies reported on Wednesday, citing a ""highly placed"" source in Moscow. The source was also quoted by TASS, RIA and Interfax as saying the topic of ""Russian hackers"" was part of an internal political struggle in the United States. McCord said Baratov was arrested this week on a US warrant in Canada. Information on the other suspects was not immediately available. The attack on Yahoo, disclosed last year, was one of the largest ever data breaches and at the time was blamed on a ""nation-state"" attacker. OPINION: Russia's soft warfare Al Jazeera's White House correspondent James Bays said there was ""no direct link"" between the Yahoo hack and the hacking of Democratic Party emails, which took place during the 2016 US presidential election. US intelligence agencies have said those were carried out by Russia in order to help the campaign of Republican President Donald Trump. ""But the fact that [the US government is] charging two members of the FSB - the successor to the old Soviet KGB - shows the sort of cyber activities that the Russian government may be involved in,"" said Bays. ""Clearly, there are still questions about the election campaign and what Russia was up to there, and whether there was any collusion with members of the Trump campaign, or anyone linked to him."" Yahoo said, when it announced the then-unprecedented breach last September, that it was working with law enforcement authorities and believed the attack was state-sponsored. The company announced a still-larger breach in December that occurred in 2013 and affected one billion accounts. Source:-Al Jazeera and news agencies", -2485,2017/3/15,http://www.aljazeera.com/news/2017/03/somalia-pirates-anger-fuels-return-ship-attacks-170315191915900.html,Somalia pirates: Anger fuels return of ship attacks,Locals say pirate attacks will continue and blame the government in Puntland for granting foreigners fishing permits. Weapons ashore,"A volatile buildup of weapons and resentment along the northern Somali coast culminated in the hijack of an oil freighter this week, the first such seizure by Somali pirates since 2012, experts and locals say. Gunmen hijacked the Aris 13, a small oil tanker, on Monday and are demanding a ransom to release the ship and its eight Sri Lankan crew, the EU Naval Force that patrols the waters off Somalia said on Wednesday. Now shipping companies are scrambling to find out whether the attack is a one-off, or whether pirates could once again threaten one of the world's most important shipping lanes and cost the industry billions of dollars annually. The other side of Somalia's pirates Somali forces have been sent to try to free the tanker. But locals say the attacks will continue and blame their government in the semi-autonomous Puntland region for granting foreigners permits to fish in Somali waters. ""Since the fish are drained by foreigners, my colleagues plan to go into the ocean to hijack other ships. We have no government to speak on our behalf,"" said fisherman Mohamed Ismail. Although Somalia remains mired in violence and poverty, the Horn of Africa nation has shown some small signs of progress in recent years despite a civil war lasting more than a quarter of a century. A return to piracy could derail those fragile gains. Monday's hijack followed a long hiatus in pirate attacks, with only four unsuccessful attempts in the past three years. The lull encouraged foreign fishing vessels to return to Somali waters, locals told Reuters news agency, fuelling resentment. ""If you look at the sea at night, there are so many lights out there [from fishing vessels]. It looks like New York,"" complained one former Somali official who asked not to be named. Somali pirates hijack ship with Sri Lankan crew onboard The final straw, he said, was when seven Thai fishing vessels docked at Bosasso port last month. The ships paid the local government more than $672,000 for fishing licences, a government contract showed. The move infuriated locals who felt they would see neither fish nor the cash. ""When I saw those ships come into Bosasso port in broad daylight, I knew there would be an attack,"" he said. ""The fishermen became desperate."" Only 14 foreign vessels are licensed to fish, including the seven Thai vessels, the Puntland government said. All others are illegal, said Ali Hirsi Salaad, director of Puntland's Ministry of Fishing. ""Fisherman are right to complain,"" he said.- Matt Bryden, the head of Nairobi-based think-tank Sahan Research, said coastal communities were rearming amid widespread anger at the failure to crack down on foreign fishing vessels. He displayed several photographs he said were of a recent shipment of assault weapons, saying that so many were arriving that in one area the price of a PKM machine gun had fallen from $13,000 in October to about $8,500 last month. ""The price is going down because so many are being imported,"" he said. The same source sent him a photo of the sea's horizon at night, he said. The lights of at least 23 vessels that the man said were fishing boats glowed on the horizon. ""Coastal communities are angry at the foreign vessels and at the authorities who they believe have licensed some of them,"" he said. A Bosasso-based weapons dealer said orders for rocket propelled grenades, machine guns, and ammunition had increased. Jonah Leff, a weapons tracing expert with conflict Armament Research, said many pirates had turned to smuggling. They take boatloads of people to Yemen and return with weapons, he said. ""There's been an influx of weapons,"" he said. Source:-Reuters news agency", -2486,2017/3/15,http://www.aljazeera.com/news/2017/03/suicide-attack-hits-justice-palace-syria-damascus-170315114623986.html,Syria war: Twin suicide attacks kill dozens in Damascus,"Suicide bomber targets main judicial building in the capital's centre, with a second blast reported in the Rabweh area.","Two suicide bombings hit the Syrian capital of Damascus on Wednesday, killing dozens as the country's war entered its seventh year. A suicide bomber detonated his explosive vest in the capital's main judicial building early in the afternoon, killing at least 31 people and wounding 102 others, Syria's state news agency SANA reported.- A second attacker detonated himself at a restaurant in the Rabweh area of Damascus, according to SANA, wounding at least 28 people. Al Jazeera's Natasha Ghoneim, reporting from the Turkish city of Gaziantep along the Syrian border, said the suicide bomber in the first blast reportedly detonated himself-after he was stopped by security at the gate of the court. ""The attack happened during a peak time to inflict the maximum number of casualties,"" she said. There was no immediate claim for the bombing, which came as the country's civil war entered its seventh year. The attack on capital's Palace of Justice, located near the famous and crowded Hamidiyeh market in Damascus, was the latest in a spate of explosions and suicide attacks targeting government-controlled areas in Syria and its capital. Attackers have also twice struck the government-held city of Homs in the past few weeks Analysts who follow Syria have predicted that as rebels fighting to oust President Bashar al-Assad suffer military setbacks, they will increasingly turn to guerrilla attacks in territory controlled by the government. Damascus police chief Mohammad Kheir Ismail told state TV that a man wearing a military uniform and carrying a shotgun and grenades arrived to entrance of the palace in the early afternoon. The guards stopped the man, took away his arms and asked to search him. At that point, the man hurled himself inside the building and detonated his explosives, the chief said. READ MORE - Syria war: 'Worst man-made disaster since World War II' Ahmad al-Sayed,-Syria's attorney general, confirmed that account to state TV, saying when the security guards tried to arrest the man, he threw himself inside the palace and blew himself up. ""This is a dirty action as people who enter the palace are innocent,"" he said, noting that the timing of the explosion was planned to kill the largest number of lawyers, judges and other people who were there at the time. Ambulances rushed to the scene to transfer casualties to hospital. The blast followed twin attacks on Saturday targeting Shia holy sites in the capital's Old City that killed at least 40 people in Damascus, an attack claimed-by a hardline coaltion known as Tahrir al-Sham, which includes groups with links to al-Qaeda. But in a statement put out shortly after the bombings, Tahrir al-Sham denied involvement in Wednesday's attacks, and emphasised that its ""objectives are limited to security branches and military barracks of the criminal regime and its allies"". Esewhere in Syria, air raids in the rebel-held city of Idlib killed at least 21 civilians, according to the UK-based Syrian Observatory for Human Rights. The Syrian Civil Defence, a rescue group also known as the White Helmets that operates in opposition territory, put the death toll from the pre-dawn bombing at 22, and said that 15 children were among the dead.- Source:-Al Jazeera and news agencies", -2487,2017/3/15,http://www.aljazeera.com/news/2017/03/dutch-election-high-turnout-key-national-vote-170315170755942.html,Dutch election: High turnout in key national vote,Crucial vote boils down to a race between Prime Minister Mark Rutte's Liberals and far-right party of MP Geert Wilders. 'European fight-back' Litmus test,"Millions of Dutch voters-cast their ballots on Wednesday-in a test of the ""patriotic revolution"" promised by far-right MP Geert Wilders, as western Europe closely watched the election and braced for the outcome. Following last year's shock- Brexit- vote - and Donald Trump's victory in the US - the Dutch vote is being seen as a litmus test of the strength of far-right and populist parties-ahead of key elections in France and Germany later this year. The Dutch vote, which has been overshadowed by a diplomatic dispute- between the Netherlands and Turkey,-has essentially come down to a tight race between Prime Minister Mark Rutte's centre-right party and that of far-right, anti-Islam populist Geert Wilders. In advance of the election, opinion polls showed Rutte's liberal VVD narrowly leading the race, and even if Wilders' PVV emerges as the biggest party in parliament, it is unlikely to obtain the majority of the 150 seats enabling it to form a government. Most parties have pledged not to govern with the PVV. READ MORE: Dutch Muslims reflect on Geert Wilders before vote As many as 13 million-people were eligible to vote in Wednesday's election and-28 parties were competing for the 150 seats in the Dutch lower house of parliament. Turnout was predicted at about 80 percent, eight percent lower than the record of 88 percent achieved in 1977. Polls close at 2000 GMT, with exit polls expected shortly after. ""This is a crucial election for the Netherlands,"" Rutte said as he voted. ""This is a chance for a big democracy like the Netherlands to make a point ... to stop this ... the wrong sort of populism."" One Muslim voter told AFP news agency that Wilders' fiery anti-Islam rhetoric had prompted her family to come out and vote. ""My mother has never voted before, but now she has and encouraged the whole family to do so because the situation is serious."" Al Jazeera's Laurence Lee, reporting from The Hague, said the bumper turnout could see pro-European parties make significant gains. ""The vast-majority of Dutch people want to remain in the European Union so there's a good reason to assume they've come out to bolster it, rather than undermine it, which is what Wilders wants to do. ""What's really helped Rutte is that in the last few days, amid the diplomatic crisis with Turkey, he's displayed himself as a statesman, as he tried to de-escalate the situation. He's been calm. ""In contrast, he's portrayed Wilders as this frothing lunatic sitting on sofa tweeting that the Turkish ambassador must be thrown out and that Turks have to leave the country. ""And that comparison with [US President Donald] Trump is very powerful because the Dutch - as a body politik - don't like Trump at all."" Wilders, 53, has vowed to shut mosques, ban the Quran and close the country's borders.-He also wants to pull the country out of the- European Union ,-an institution that it helped found,-in a so-called Nexit. READ MORE: Who votes for Geert Wilders? Speaking to reporters after he cast his ballott at a school, Wilders said:-""Whatever the outcome of the election, the genie will not go back into the bottle. This patriotic revolution, whether today or tomorrow, will stay."" Rutte, seeking to lead the Netherlands for a third successive term, is a liberal free-marketeer championing this year's election on a pledge of safety and stability. Analysts said his uncharacteristically strong stand since the weekend in a diplomatic crisis with Turkey - when Dutch authorities expelled one Turkish minister while another was refused permission to fly into the country to attend a political rally - has boosted his image with voters. Your browser does not support the video tag. Final polls released late on Tuesday appeared to show Rutte pulling away from Wilders, crediting the VVD with coming top with 24 to 28 seats. Wilders was seen as slipping yet again and barely clinging on to second place with between 19 and 22 MPs. That would however still be well up on the 12 MPs his party has in the outgoing parliament. Closing in on Wilders were long-standing parties the Christian Democratic Appeal (CDA), credited with 19 to 21 seats, and the Democracy Party (D66) with around 17 to 19 MPs. Both would be natural coalition partners for Rutte. While traditional Labour has fallen sharply this year in the polls, the left-wing GroenLinks and its charismatic young leader Jesse Klaver are enjoying a huge boost. The 30-year-old Klaver said it was ""time for a new leadership"" and called for the Netherlands to welcome more refugees . He has boosted his party in the polls and may win 16 to 18 seats, which could place him in a powerful kingmaker role. It reportedly takes an average of three months to form a coalition, but observers predict it may take longer with four or even five parties needed to reach the 76-seat majority. Source:-Al Jazeera and news agencies", -2488,2017/3/15,http://www.aljazeera.com/news/2017/03/addis-ababa-death-toll-hits-113-rubbish-landslide-170315165759540.html,Addis Ababa: Death toll hits 113 in rubbish landslide,"Rescue teams searching for survivors days after hillside of trash collapsed at Koshe landfill site, burying slum houses.","The death toll from a massive landslide at Ethiopia's largest rubbish dump near the capital Addis Ababa climbed to 113 on Wednesday as the frantic search for the missing continues. Part of the largest hillside at the Koshe landfill site-collapsed on Saturday, burying a slum that had been built on the landfill. Communications Minister Negeri Lencho said the majority of the dead were women and rescue operations were continuing. ""As far as I know, they are still searching,"" Lencho said, adding he could not explain why the toll had risen so dramatically from a previous tally of 72 dead on Tuesday. Koshe is the largest rubbish dump in Ethiopia and home to hundreds of people who collect and resell rubbish trucked in from around Addis Ababa. The government tried to close the dump last year and move it to a new location, but opposition from people living near the new site forced them to reverse the decision. Koshe residents who spoke to AFP news agency blamed the landslide on the building of a new bio-gas plant on top of the waste. Death toll soars to 82 in Addis Ababa rubbish landslide They said bulldozers had destabilised the soil during construction. Lencho said an investigation into the incident was ongoing. He had earlier said slum residents may have inadvertently caused the disaster. Ethiopia's parliament declared three days of national mourning starting on Wednesday. The government was helping relatives of the victims pay for their funeral costs, Lencho said. Source:-News agencies", -2489,2017/3/15,http://www.aljazeera.com/news/2017/03/boris-johnson-moving-fast-tackle-famine-threat-170315145245758.html,Boris Johnson: Moving fast to tackle famine threat,"Foreign secretary addresses drought with Somali president, vowing to tackle 'underlying problems' threatening famine. National disaster","British Foreign Secretary Boris Johnson has made a surprise visit to Somalia as a worsening drought threatens millions of people with starvation in the Horn of Africa nation. Johnson met President Mohamed Abdullahi Mohamed on Wednesday in the Villa Somalia presidential palace in central Mogadishu. ""It is all so, such a shame that you are facing the problems that you are facing, particularly of course, the drought and the risk of starvation, though I think that we are moving fast to try to tackle that,"" Johnson told Mohamed. Somalia recently declared the drought a national disaster amid warnings of a full-blown famine.-At least 360,000 Somali children are severely malnourished, meaning they will die within weeks unless they receive food aid. -- The country faced a similar crisis in 2011 that killed nearly 260,000 people. Johnson said the United Kingdom would host a conference on Somalia on May 11 to help address ""underlying problems"" such as armed attacks and corruption. WATCH: What can be done to save millions facing famine? Mohamed, also known as Farmajo, blamed the drought in part on the armed group al-Shabab, which continues to control parts of the country. ""This drought is really serious, and so far we have lost 60 percent of our livestock,"" the president said. A statement from the Somali president's office said Britain would give $134.35m for drought in some parts of Somalia. The current drought, which the United Nations says threatens half of Somalia's population, or about six million people, is part of a four-nation humanitarian crisis that the UN has called the largest in the last 70 years. Stephen O'Brien, UN humanitarian chief, said after his recent visit to Somalia 2.9 million people required immediate help ""to save or sustain their lives"". He said close to one million children under the age of five would be acutely malnourished this year. ""The window is short in which we can still avert a famine,""-Nigel Tricks, Oxfam's Horn of Africa regional director, said on Wednesday. The drought also affects millions of people in parts of Ethiopia and Kenya, where the government recently declared a national disaster for about half of its counties. Famine has been declared in two counties of civil war-torn South Sudan. Source:-News agencies", -2490,2017/3/15,http://www.aljazeera.com/indepth/opinion/2017/03/heed-turkish-concerns-syria-170315073720717.html,,,"United States Senator John McCain has it right that the US has underestimated and, at times, disregarded Turkey's concern over its support for the People's Protection Units (YPG) in Syria. The US' rationale for helping the YPG was predicated on a flawed anti-ISIL strategy that shied away from a comprehensive approach. Turkish discomfort with the US support for the YPG is not based on an opposition against Syrian Kurds. Despite their efforts to promote themselves as the representatives of Syrian Kurds, the YPG poses a direct national security threat to Turkey. The group is the Syrian arm of the Kurdistan Workers' Party (PKK) - designated by Turkey, the US, and the European Union as a terrorist organisation - which has been-fighting the Turkish government since 1984. The two groups' close ties have previously been acknowledged by US officials including the former US Defense Secretary Ash Carter in a Senate Armed Services Committee hearing. The YPG draws much of its tactical and strategic direction as well as resources from the PKK and arms given to the YPG directly threaten Turkey, as they can be passed onto PKK fighters inside Turkey. In other words, continued US support for the YPG lends legitimacy to the Syrian extension of a terror organisation threatening a NATO ally. The US appears set to move forward with arming and supporting the PKK-linked YPG in preparation for the Raqqa operation. This is not only the continuation of a misguided policy left over from the Obama administration, but it also risks irreparable damage to US' relations with Turkey, a critical ally in the fight against the Islamic State of Iraq and the Levant (ISIL, also known as ISIS). Turkey has been quite hopeful about a potential change in Syria policy under the Trump administration, but all indications are that the new US administration's Syria policy is also dominated by the fight against ISIL. Under Donald Trump, the Pentagon is focused on achieving a victory against ISIL by working with ""local partners"" and limiting American ""boots on the ground"". which is a continuation of the Obama administration's strategy. This approach disregards Turkey's concerns and spells instability and unpredictability after dislodging ISIL from Raqqa and northern Syria. OPINION: The Sheriff of Manbij - US makes debut in the Syrian War The Obama administration invested in developing relations with the PKK-linked YPG fighters in Syria under the pretext that they were the only effective fighting force on the ground to fight ISIL. This view ignored the political ambitions of the Democratic Union Party (PYD), the political umbrella organisation of the Syrian Kurds, to create a de facto autonomous region in northern Syria and, perhaps inadvertently, emboldened the PKK against Turkey, as it sought international support and legitimacy. It also failed to acknowledge the demographic engineering efforts or the human rights abuses of the PYD that sought to push out Arab populations from northern Syria. While the YPG promoted itself as the only reliable, secular, effective fighting force in the region, the US chose to ignore that the YPG focused on establishing and consolidating their control in the region at the expense of Syrian Arabs and even other Kurdish groups.- The Obama administration was following an ""Iraq first"" strategy in their efforts to defeat ISIL by subcontracting the fight against the armed group to YPG in northern Syria. But the Trump administration wants to achieve speedy results through bold action, so there are signs that the US' fight against ISIL might proceed on both fronts - in Iraq and Syria - in the near future. If the US wants to avoid being responsible for a nation building process in Syria, akin to its largely failed effort in Iraq, it will need to work with regional allies like Turkey. - This makes sense given that as a result of Obama administration's reluctance to be involved in Syria, ISIL has had a lot of resources and breathing room in this country. However, if not enough thought is given to post-ISIL stabilisation efforts in Raqqa and the rest of northern Syria, the military defeat of ISIL might be followed by instability and potential conflict between Turkey and the YPG. Turkey has warned the US against such a scenario while providing plans to liberate and stabilise Raqqa without YPG involvement. If the Pentagon and the Turkish military cannot come up with an agreement on this, the odd reality of supporting forces hostile to one another will likely persist and pit forces supported by the US and Turkey against each other on the ground. OPINION: Operation Euphrates Shield - Progress and scope The Trump administration has yet to make a final decision on directly arming the YPG and the consequences of that decision will be critical not only for the fight against ISIL, but for the broader dynamics of the US-Turkey relations. If the administration decides to arm the YPG despite Turkish opposition, there may be backlash in the form of reduced cooperation at the least. Even if Turkey decides to seek other ways of cooperation instead of increasing tensions, the scars from this episode will last a long time. The Trump administration needs to move away from tactical alliances with groups such as the YPG towards creating serious alliances among state actors in order to build a strong coalition against ISIL. The prospect of rapidly winning tactical military battles on the ground will be difficult to resist, but winning the broader war against ISIL requires longer-term policies that ensure post-ISIL stabilisation. Especially if the US wants to avoid being responsible for a nation building process in Syria, akin to its largely failed efforts in Iraq, it will need to work with regional allies like Turkey. Enduring success against ISIL cannot be achieved without the support and coordination of a strong and active international coalition. Turkey has been part of the anti-ISIL coalition and it is the only coalition member with troops on the ground. Alienating Turkey in the fight against ISIL has been one of the most regrettable aspects of US policy in the waning years of the Obama administration and the Trump administration risks falling into the same trap. According to news reports, the Pentagon will have more operational decision-making authority on the ground, but this should be accompanied by serious coalition work at the diplomatic and political level, recognising that ISIL is a product and a symptom of a broader breakdown of the political compact in Iraq and Syria. To address the threat politically, the US needs allies, including Turkey, whose national security will be at stake in the outcome of the upcoming fights in Raqqa and beyond. Kadir Ustun is the Executive Director of the SETA Foundation in Washington, DC. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2491,2017/3/15,http://www.aljazeera.com/news/2017/03/100000-flee-iraqi-forces-advance-west-mosul-170315140908426.html,"100,000 flee as Iraqi forces advance in west Mosul",Elite troops battle towards iconic Nuri mosque where ISIL leader Abu Bakr al-Baghdadi proclaimed the caliphate.,"Iraqi government forces battling ISIL for Mosul took control of a main bridge over the Tigris River on Wednesday and advanced towards the mosque where the group's leader declared a caliphate in 2014. The seizure of the Iron Bridge, linking eastern Mosul with ISIL-held Old City on the west side, means the government holds three of the five bridges over the Tigris - and bolsters Prime Minister Haidar al-Abadi's assertion that the battle is reaching its final stages. The gains were made in heavy fighting in which troops fought street-by-street against an enemy using suicide car bombs, mortar and sniper fire, and grenade-dropping drones to defend what was once their main stronghold. ""Our troops are making a steady advance ... and we are now less than 800 metres from the mosque,"" a federal police spokesman told Reuters news agency. READ MORE: ISIL's human shields The military gains made against-Islamic State of Iraq and the Levant-have come at a human cost.- Nearly 100,000 Iraqis have fled western Mosul in the past three weeks as government forces backed by Shia militias advanced on territory held by ISIL, the International Organisation for Migration (IOM) said Wednesday. The Iraqi Ministry of Immigration and Displacement said as many as 600,000 civilians remained trapped in neighbourhoods of west Mosul controlled by the armed group. Iraqi forces and their allies have been making steady progress in the city, forcing ISIL (also known as ISIS) out of a series of neighbourhoods and retaking important sites such as the airport, Mosul museum, train station and provincial government headquarters. But the battle for west Mosul - smaller and more densely populated than the eastern side, which Iraqi forces recaptured earlier this year - has forced a flood of people to flee their homes. In recent days, residents have been streaming out of western neighbourhoods recaptured by the government, desperate and hungry and traumatised by living under ISIL's harsh rule. According to the IOM, between February 25 and March 15, more than 97,000 people were displaced,-an increase of about 17,000 from the figure it released on Tuesday. IOM said the new figures, provided by the-Iraqi government,-also showed that more than 116,000 people from the city's west had gone through a screening site south of Mosul. ""Some families are still stuck,"" Hajj Ahmed, a 55-year-old who had recently fled Mosul, told AFP news agency. ""They [ISIL] have been besieging people for seven days,"" he said, before praising Iraq's elite soldiers for saving them. READ MORE: 'Exhausted, terrified', 4,000 flee Mosul daily Federal police officers and a special forces unit advanced on the iconic Nuri mosque, where-in July 2014, ISIL's leader-Abu Bakr al-Baghdadi proclaimed himself head of the Islamic State caliphate. ISIL fighters have booby-trapped houses, and government forces have been forced to fight among civilians, ruling out the extensive use of air and artillery support. ISIL seized Mosul in mid-2014 when the group swept through areas north and west of Baghdad, taking control of swaths of territory and declaring a cross-border ""caliphate"" in Iraq and neighbouring Syria. Backed by US-led air strikes and other international military support, Iraqi forces have since retaken much of the territory they lost. Losing Mosul would be a major blow to ISIL, but the group is expected to pose a continuing threat, reverting to guerrilla-style tactics. Source:-Al Jazeera and news agencies", -2492,2017/3/15,http://www.aljazeera.com/news/2017/03/ethiopia-reports-deadly-raid-gunmen-south-sudan-170315130515870.html,Ethiopia reports deadly raid by gunmen from South Sudan,Murle bandits allegedly crossed into Ethiopia's Gambella region and killed 28 people before fleeing with 43 children. Civil war,"More than 1,000 gunmen from South Sudan have killed 28 people and kidnapped 43 children in neighbouring Ethiopia, according to a government official. Chol Chany, a regional government spokesman, said on Wednesday the raids occurred on Sunday and Monday in Gambella region's Gog and Jor areas, which border South Sudan's Boma region. ""Murle bandits carried out the attack. They fled along with 43 children,"" Chany told Reuters news agency, using a term for a local ethnic group. ""The [Ethiopian military] is pursuing them. The assailants haven't crossed over to South Sudan yet."" According to AP news agency, Mawien Makol Arik, spokesman for South Sudan's foreign ministry, was aware of fighting in Gambella. He said Ethiopian troops have not crossed the border into South Sudan in pursuit of the accused attackers. Al Jazeera's Catherine Soi, reporting from Kenya's Nairobi, said it was a challenge to get information from Gambella because it was a very remote area and telephone network was ""very patchy"". ""It is not really a surprise that we are hearing about the incident days later,"" she said. She also said that such cross-border attacks were common, but the magnitude of the latest raids were raising concerns in Ethiopia. READ MORE: South Sudan - A country captured by armed factions The latest raids took place almost a year after similar attacks in the province's Jikawo and Lare areas, which border South Sudan's Upper Nile State. Then, more than 200 people died and about 160 children were kidnapped. About 100 children have managed to return to Ethiopia, but the rest remain in the kidnappers' hands, Chany said. Oil-rich South Sudan has been mired in a civil war since President Salva Kiir, an ethnic Dinka, fired his deputy Riek Machar, a Nuer, in December 2013. The resulting conflict has split the country along largely ethnic lines and forced more than three million people to flee their homes. More than one million of them have found refuge in neighbouring countries, especially Ethiopia, Uganda, Kenya and Sudan. Gambella alone is currently hosting up to 300,000 South Sudanese refugees. Regional governments have expressed fears that violence in South Sudan could spill over its borders into their own nations. Source:-Al Jazeera and news agencies", -2493,2017/3/15,http://www.aljazeera.com/news/2017/03/thailand-charges-activist-mocked-pm-song-170315141231775.html,Thailand charges activist who mocked PM's song,Campaigner took to Facebook to rate military leader's song on 'returning happiness' and could be jailed three years.,"A Thai activist who made fun of one of leader Prayuth Chan-ocha's ballads on Facebook has been charged with cyber-crime for publishing material critical of the government. Veera Somkwamkid was charged with ""importing false computer data"" for a post saying most Thais lacked confidence in the military government, which took power in a 2014 coup in the name of ending more than a decade of political unrest. Veera's post had been based on a tongue-in-cheek survey he carried out online as to which of the promises in the junta theme song ""Returning Happiness to Thailand"" had been kept. Alarm over Thailand soldiers being given police powers Prayuth has written several ballads since taking power. Filled with emotion, they get frequent play on state radio and are sung by an army chorister rather than Prayuth himself. Pledges in the stirring song penned by Prayuth include: ""We'll do as promised"", ""We won't need long"", ""The beautiful land will return"", ""We will be honest"", and ""We would like to return happiness to you all"". Most participants in the survey said ""None of the Above"". Veera, chairman of the People's Rights and Liberty Protection Group, denied all charges. He could face up to three years in jail, but was released on bail. His post was in response to a series of polls by Thai survey institutions that showed strong support for the military government, Veera said. ""I insist that my post was published according to my rights and liberty to ask people's opinion,"" he told reporters after hearing his charge at a cyber-police division. Thailand to try opposition figures in military court The government has made increasing use of cyber-laws against critics. ""The government should be more open,"" said Weerawat Somnuek, of Thai legal watchdog group iLaw. ""They should start allowing people to say more and start listening to people."" Thailand was asked to address several rights issues in UN review sessions in Geneva this week. Rights groups said the delegation failed to show genuine commitment.-- Source:-News agencies", -2494,2017/3/15,http://www.aljazeera.com/indepth/interactive/2017/03/persecution-path-myanmar-fleeing-rohingya-170314125333337.html,Persecution path: Following Myanmar's fleeing Rohingya,"The exodus of nearly 100,000 Rohingya since October has brought their plight into the international spotlight.",, -2495,2017/3/15,http://www.aljazeera.com/news/2017/03/female-teenage-suicide-bombers-kill-2-wound-16-170315134025112.html,"Female teenage suicide bombers kill 2, wound 16","In a new tactic targeting an individual home, four teenage girls detonated explosives outside Maiduguri.","Four female teenage suicide bombers blew themselves up, killing two people and wounding 16 others in a residential area in the northeast Nigerian city of Maiduguri on Wednesday. The girls knocked on the door of a house and then detonated their explosive devices, a representative of the state-run emergency service in Borno State said. The focus on individual homes is a new tactic. The attack apparently targeted a local leader. - ""Community leaders should create awareness among residents not to open their doors for anybody [if] they are not aware of the visit,"" Borno police commissioner, Damian Chukwu, said. Strike on Nigeria refugee camp killed at least 76 The blasts in the Muna Garage area, on the edge of the city worst hit by Boko Haram's eight-year campaign, occurred at 00:15 GMT, National Emergency Management Agency spokesman Abdulkadir Ibrahim said. ""Four female teenage suicide bombers and two other men died,"" he said. Suicide bombings by teenage girls trained by Boko Haram have become a strategy of the armed group in the past couple of years. More than 200 teenage girls have lost their lives in the attacks in northeast Nigeria. The insurgency has killed more than 20,000 people and caused a massive humanitarian crisis in the region. The number of attacks or attempted attacks bearing the hallmarks of Boko Haram in crowded areas, such as markets and refugee camps, has escalated since the end of the rainy season in late 2016. Most have either been foiled or the suicide bombers have only managed to blow themselves up. Boko Haram has killed 20,000 people and displaced more than two million during its uprising in its campaign to create an Islamic state in the northeast of Africa's most populous nation. Source:-News agencies", -2496,2017/3/15,http://www.aljazeera.com/indepth/inpictures/2017/03/late-season-impacts-170315073921190.html,,,"Although not unheard of, the latest winter storm that hit the eastern seaboard of the United States this week is a fairly rare occurrence in mid-March.- The storm was expected to dump as much as 50 centimetres of snow on New York City on Tuesday, but that number was readjusted early that morning as the track of the storm moved more inland than expected.- Central Park ended up receiving 19cm of snow; the Bronx 25cm. The highest amount of snow was recorded in Bridgewater, a town in upstate New York:-104cm Yet, one of the biggest impacts from the storm was felt by travellers - from Monday to Wednesday, more than 7,800 flights were cancelled.- Amtrak, the national passenger rail company, also cancelled many northeast legs of their routes. In New York, meanwhile, all above ground subways were halted. On Wednesday, the weather system moved northeast into the eastern Canadian provinces where winter storm warnings were still in effect.", -2497,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/violence-sinaloa-surges-el-chapo-extradited-170315085021060.html,Violence in Sinaloa surges after El Chapo is extradited John Gibler,"The scene of a shooting in Culiacan, Sinaloa, shows what Mexico's 'war on drugs' looks like at the ground level. By 'Like a war' A cycle of violence","I get the first call at 4:28am on February 7. Ernesto Martinez, a 20-year veteran of the Sinaloa crime beat known affectionately as Pepis (peh-peace), tells me that there has been a gun battle in a residential neighbourhood not too far from where I am staying.-I had been out with Pepis only a few hours before: at midnight the streets of Culiacan had seemed unnaturally calm and empty, as if under curfew. Pepis had dropped me off hoping to catch a few hours of sleep. He had been up the previous night reporting on numerous shootings and murders in and around the city, racing from one edge of town to the other. It had been less than 24 hours since I had arrived in Culiacan, the capital of Mexico's Sinaloa state. Nearly six years ago I had spent time with Pepis, reporting on what life was like for Mexican journalists covering the crime beat. Now, videographer Gustavo Huerta Monroy and I had come back to see what - if anything - had changed in the city and what kinds of challenges reporters face there today. I can barely make out what Pepis is saying - a helicopter is hovering right above his head. In a sleepy haze, I mistakenly think he says he will call back to confirm the details, so I fall back to sleep while waiting. ""Where are you guys?"" It is 6:20am and Pepis is on the phone again. ""There was a gun battle with the marines here, six people are dead."" This time, I leave the hotel within minutes. What I didn't know at the time is that I had arrived in Culiacan at the beginning of an upsurge in violence following the extradition of Joaquin ""El Chapo"" Guzman Loera, the former leader of the Sinaloa drug cartel, to the United States on January 19. More than 120 people would be murdered in Sinaloa in February, compared with an official monthly average of 92 murders over the past six years. Speculations about soap opera-like cartel infighting were rife in the days and weeks following my visit. According to the most repeated version, Guzman's former political operator, Damaso Lopez Nunez - himself both a former Sinaloa state police chief and -former vice-director of the Puente Grande prison from which Guzman escaped in 2001 - had betrayed his former boss and tried to kill two of Guzman's sons, setting off a cartel war. It is often difficult to assess the veracity of such claims about the inner workings of Mexico's narco-trafficking organisations, particularly since murders are rarely investigated. What the surge in killings following Guzman's extradition does show is that while the demise of a kingpin as part of the ""war on drugs"" does little to stop the production, shipment, sale, or consumption of narcotics, it is remarkably successful at producing violent death. ""If the authorities tell you that the narcos are in retreat, that they've stopped operating, that they've suffered losses, that their organisational structure has toppled or cracked, and that their finances or money-laundering activities have been impacted, and so on ""?it is a lie,"" says Javier Valdez. I spoke with the Sinaloan investigative reporter, cofounder of local news weekly Riodoce and author of The Taken: True Stories of the Sinaloa Drug War-on the day of my arrival in Culiacan. ""The strategy of decapitating criminal organisations is a failure,"" he continues. ""Of course, it is a failure. That's why it is 'organised' crime, because they have people inside the Mexican state - people inside the governmental apparatus - working for them, because the police form a part of the criminal structure, because they have an army of hired killers, because they have financial operatives and business people - whom no one bothers, by the way - also involved. And of course there is the criminal wing, the 'capos in the shadows', who are being sought by the government in a way that ensures they will not be found."" ""We haven't seen any weakening of their activities worldwide,"" adds Ismael Bojorquez, the director of Riodoce, speaking of the Sinaloa-based drug traffickers. ""The drug shipments continue. No one has attacked their finances or the funds they operate in financial and banking networks, not only in Mexico, but in the United States and the [rest of the] world."" At 6:50am Gustavo and I arrive at the Villas del Real neighbourhood where Pepis is waiting. A number of streets are closed off with yellow crime-scene tape and Mexican marines are standing guard. We find Pepis on the other side of the tape. ""Wait until I walk away,"" he says. ""And then, one by one, duck underneath the tape."" We do as we're told. A few houses down the block, a black Acura MDX has crashed in reverse into a small, pink house. Two men died here: one is lying face-down on the ground - a pistol and an AK-47 assault rifle lying next to him - the other is still in the driver's seat. The car's airbags have deployed, its tyres have blown out and the windscreen is riddled with tightly packed bullet holes. - An armoured marine truck with a mounted machinegun is parked a few metres away. It also has what appear to be bullet marks on it. The houses and cars to the right of the black car are peppered haphazardly with bullet holes. Some of the bullets travelled through the frames of parked vehicles before hitting the houses. At one house, the gunfire has pierced the walls and windows and destroyed photographs and paintings hanging on opposite walls inside the home. But somehow no one was injured there. Pepis tells us that there had been a shoot-out between marines and armed civilians in the neighbourhood - a working-class, residential area - sometime around 3:40am. Five civilians and one marine were killed. What happened exactly is unclear and it will probably remain that way - shootings such as these rarely receive a proper investigation. The aftermath leads one to guess that a surprise meeting of marine and civilian convoys led to an exchange of gunfire and pursuit - but no more than that. Down the street, a group of women has formed. They had all been woken by a single extremely loud sound, one of them tells me. ""First it was: boom! Then: ta, ta, ta, ta, ta! It was all so loud,"" she says. ""I don't know anything about guns. I don't know what kind they were, but it was incredibly loud. I could hear windows shattering. I thought to myself: they are shooting at the house, and started crying. But it wasn't my house."" ""It was horrible,"" another woman standing in the group says. ""Like a war,"" says another. ""I didn't send my kids to school today,"" says yet another. One woman in the group has apparently been up since the noise started. ""I can't wake up, I can't finish waking up. What can I do to wake up?"" she asks. Their houses and cars shot up with high-calibre rifles, none of the local residents who I speak to has had any kind of explanation from the authorities. The on-site crime scene investigation lasts less than an hour: a state forensics team documents the positions of the vehicles, the dead bodies, guns and bullet casings. Then they take away the bodies and tow away the Acura. The marines set off in a convoy, leaving the neighbourhood unguarded. The owners of the small pink house will have to clean up the blood on their driveway and pay for the structural repairs to their wall themselves. It's not the first time that violence has surged in Sinaloa following a shift of power in the region's drug trade. A wave of violence between 2008 and 2011 largely corresponded to the split between two formerly allied forces. ""The biggest jolts [of recent violence] have come with the re-capture of El Chapo, then his escape, and then his second re-capture in Los Mochis,"" says Ismael. ""[These episodes] led to some movements inside the Sinaloa cartel which are now creating a significant increase in violence. Just recently some 20 people have been murdered: 12 between Saturday and Sunday, and another six this morning."" The current increase in violence is not so much due to the fall of a particularly heinous individual, however, but to the inevitable competitive restructuring of the executive level of the illicit drug trade. It has been more than 45 years since US president Richard Nixon declared a ""war on drugs"", more than 35 since Ronald Reagan used that war to wage terror in the US and across Latin America and 10 years since former Mexican president Felipe Calderon echoed the US war cry to devastating human consequences across Mexico. By now, a clear pattern has emerged: each major act of war against the illegal narcotics industry has led to the restructuring, strengthening and expansion of that industry. And the expansion of the illegal industry has, in turn, been used to justify the intensification of the war against it. ""There's a negative cycle of violence and it functions as a self-justificatory cycle for the escalating drug war,"" Everard Meade, the director of the University of San Diego's Trans-Border Institute, who has led peace-building seminars in Culiacan for several years, tells Al Jazeera over email. He points out that in many cases, the structural nature of drug-related violence in Mexico overrides even the best intentions of the people who enforce the country's drug policy. ""The people who become the actual agents in the system - the public officials and law enforcement officers who end up making war - often begin with a less cynical and sometimes highly idealistic outlook,"" he says. ""They come into office with high hopes of reversing the cycle of violence and not repeating the corruption and missteps of their predecessors, only to find the temptation to vengeance and short-sighted aggression irresistible."" ""When men with suitcases of cash arrive at their offices and armed vehicles show up outside of their kid's school, one of their key advisers is kidnapped or killed, or they discover that half of the police force is on the payroll of organised crime, the temptation to take extreme measures is very difficult to resist,"" says Meade. ""They imagine themselves as taking emergency measures until they can get things under control and then the emergency becomes permanent."" Meanwhile, local journalists struggle to delve into these more structural dimensions to the drug trade: ""There is not much investigation into drug trafficking here. We are stuck in mediocre coverage, basically counting bodies,"" says Valdez. ""I think we need to be telling the stories of life in the midst of all this death. But reporters keep reproducing the official line."" After the marines have left, Pepis, Gustavo and I walk down another street that has been cordoned off. Here, one marine and several civilians were killed. Thick pools of blood mark the place where each died. Around one of the pools of blood we find the debris of care: surgical gloves, hypodermic needles, gauze, medical packaging, and a lit candle - someone had tried to save that man's life and then mourned him when he died. ""This must have been the marine,"" Pepis says. Residents tell me they heard the two men at the other end of the street screaming in pain, but no one had tried to save their lives. Another pool of blood lies just a few feet away behind a waist-high brick wall - possibly marking the place of death of the person who shot the marine. The location of another pool of blood around the corner tells a story of on-foot pursuit down a narrow passageway into a tiny private back patio followed by an execution against a wall. The story of what happened this morning in Villas del Real is the story of what a high-level ""war on drugs"" looks like on the ground. Today six men were killed in a residential neighbourhood, authorities picked up the bodies, and towed away the dead men's car - and then left the people who live here to clean up the blood, repair their cars and homes and try to finish waking up.- Source:-Al Jazeera", -2498,2017/3/15,http://www.aljazeera.com/programmes/faultlines/2017/03/donald-trump-muslim-ban-170312110450141.html,The Ban,Fault Lines reports from the frontlines of Donald Trump's so-called Muslim ban and its very real consequences.,"One week after Donald Trump was sworn in, the 45th President of the United States signed an executive order entitled Protecting the Nation From Foreign Terrorist Entry Into the United States. The order described the new measures as a means to ""keep radical Islamic terrorists"" out of the US and included a ban on immigrants from seven Muslim-majority countries including Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. Where's the terrorism in them? Look at them. If he doesn't go to America or a European country for medical treatment, his life will be destroyed. He will die. Abdul Ghani Abdul Jawad, Syrian refugee in Turkey While the order suspended entry for all citizens of the aforementioned countries for a total of 90 days, it went a step further by banning refugees for an additional month, at 120 days, and barred Syrian refugees from entering the US indefinitely. - Abdul Ghani Abdul Jawad and his family are among countless people who were affected by the travel ban. With two sick children under the age of 10 in urgent need of medical attention and revoked permission to travel and resettle in New York, the future is bleak for the Abdul Jawad family - and numerous others like them. The way the order was rolled out created chaos within the country and for those with immediate travel plans. Airport authorities were equally as confused, unsure how to enforce the new rules as federal agencies struggled to communicate on how to move forward.- Questions raised about the ban included its constitutionality, how green card holders could legally be barred from entering the country, and whether the ban constituted a religious test. Airport arrival halls across the country filled up with thousands of people who came to protest against the ban, helping to spark the legal movement to overturn it. Hundreds of attorneys, translators and volunteers descended upon airports across the US to help those detained upon arrival.- Many families have been separated across continents, with those from the countries affected by the ban suffering cancelled visas - all in spite of a Department of Homeland Security report obtained by the Associated Press which found insufficient evidence that citizens from the countries included in the ban posed any kind of terror threat to the US.- Source:-Al Jazeera", -2499,2017/3/15,http://www.aljazeera.com/programmes/witness/2017/03/time-love-backstage-tale-170314135640929.html,Time to Love: A Backstage Tale,A group of young actors with Down syndrome take on the challenge of staging a classic Panamanian play.,"In Panama, a troupe of first-time performers with Down syndrome take the classic play La Cucarachita Mandinga to the stage.-They take on the challenges of memorising lines and learning choreography hoping to capture the attention of the public. This demanding artistic process reveals the intimate world of these young aspiring actors, along with their fears, hopes and daily struggles. FILMMAKER'S VIEW By Guido Bilbao Before getting involved in this film project, I had never had any relationship with someone with Down syndrome. In my work, I used to delve into topics like social conflict, politics, corruption and drug trafficking.- But then I met Rocio and Antonella, the twins who are featured in the film, through a friend of mine, their sister, Gloria. When I met the twins, I was blown away by their personalities. Rocio and Antonella told me that they were going to be in a play and I found the adventure they were about to embark on so amazing that I immediately saw a movie in it. We made it together: 12 teenagers with Down syndrome who dared to act in the first commercial inclusive play in Central America.- The first thing I had to do was face my own prejudice. I had no idea how to deal with people with Down syndrome: how to talk to them, how much I could ask from them. I did not want to treat them as kids, but I did not want to come across as harsh either. I was not sure if they were going to be able to achieve what they had set out to.- Prejudice is a wall that stands between the world and ourselves and young people with disabilities are never the ones who build the wall. The actors started laughing with me, started acting to the camera without being asked to, started giving me nicknames - my prejudices gradually disappeared and the actors' ""condition"", as they refer to it themselves, no longer dictated our interaction. There was an unusual kind of courage, strength and talent in the actors with Down syndrome. It was amazing to see them overcome the challenges they had set for themselves, learning the lines, songs, choreography - and everything with such perseverance. Backstage life had its own ups and downs: there were fights, tears, laughter and love stories.- I could see their self-esteem grow, which is much-needed in a society like Panama's. Here, people with Down syndrome are not only discriminated against, they are hidden from view. It is as if they do not exist in public life. In fact, the theatre project was a response to some of the mothers' realisation that their children have little chance of getting involved in society: there are few jobs for them - let alone fulfilling ones - no colleges and no governmental programmes to help them overcome some of their limitations and believe in themselves when they reach adulthood.- As the day of the premiere approached the actors faced a lot of pressure because of the high expectations generated by the project. Two weeks before the premiere, tickets had sold out for all dates and journalists attended rehearsals with their cameras to report the news that young people with Down syndrome could carry out such big projects.- Time to Love is a story about love and self-improvement that shows us what we get back when we accept diversity.- Source:-Al Jazeera", -2500,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/years-syria-accountability-free-zone-170312082121458.html,Six years on: 'Syria is an accountability-free zone' Zena Tahhan,"After six years of war in Syria, the prospect of achieving a peaceful solution is becoming increasingly difficult. By Facts on the ground What next? Loopholes Alternative scenarios","One year ago, Staffan de Mistura, the United Nations diplomat tasked with finding a peaceful solution to the war in Syria, described the subject of political transition as ""the mother of all issues"" in negotiations between the Syrian government and the opposition.- Achieving political transition in the country has long been considered the most challenging part of ongoing diplomatic efforts to end the war that started in 2011 as a peaceful uprising demanding Syrian President-Bashar al-Assad to step down, amid widespread uprisings in the Arab world. It quickly turned into a civil war between government forces and armed opposition groups made up of army defectors and ordinary civilians, after Assad's government responded to the protests with force.- READ MORE:-The 'slow-motion slaughter' of Syrian civilians UN efforts have been hampered by the two sides' lack of willingness to compromise on their position with regards to political transition. The Syrian government has systematically refused to entertain any prospect of a transition that-entails the removal of Assad, while, for the opposition, this step remains the only option for peace.- Three weeks ago, de Mistura brought Syria's warring sides to the negotiating table in the Swiss city, Geneva, for the third time over the course of the war, to discuss ways of ending the ongoing cycle of bloodshed that has killed close to half a million people. De Mistura promised another round of negotiations later this month to implement United Nations Security Council (UNSC) Resolution 2254, which serves as a framework for a political transition in Syria. But as Syria marks six years of war, the likelihood of achieving a peaceful, diplomatic solution to the war, rather than a military one, is becoming increasingly difficult. Russia's military intervention in late September 2015 drastically changed the balance of power on the ground, placing Assad's forces firmly in control, with the help of-Iran-backed fighters and-the-Lebanese-Hezbollah-armed group. Last December, the armed opposition, trained and supplied by the United States, Turkey, and several Gulf states, was dealt its worst defeat of the war when it lost its stronghold of eastern Aleppo to government forces and Russian air bombardment. ""The Syrian people did not lose militarily to the government. The Syrian people lost militarily to the second strongest army in the world - the Russian army,"" Zaki Lababidi, vice president of the Washington, DC-based Syrian-American Council, told Al Jazeera in Geneva, during the last round of talks. ""Russia came in; they used their air force, they used their navy, ballistic missiles, and they put ground troops. This is how Aleppo was destroyed,"" said Lababidi, who was present in Geneva to advise the opposition delegation.- Fighting both the Syrian government, on one front, and hardline armed groups including the Islamic State of Iraq and the Levant ( ISIL, also known as ISIS) and Jabhat Fateh al-Sham (JFS) on the other, the opposition has steadily lost significant territory and leverage in Syria, which analysts say minimises the chance for a peaceful solution. ""The regime refused to discuss the prospect of a meaningful political transition even when it appeared to be losing ground militarily, so there is no prospect of it choosing to do so now that it has momentum. Nor will the opposition concede its demand for such a transition - including Assad's departure - despite their weakening military hand,"" Noah Bonsey, Syria analyst for the Brussels-based International Crisis Group think-tank, told Al Jazeera. Though aware of their shortcomings on the battlefield, the Syrian opposition, which consists of both political and military branches, believes that international law lies in their favour. ""For us, attending negotiations was never about the balance of power on the ground, but rather international agreements,"" Fares Bayoush, a Syrian armed opposition commander, told Al Jazeera. In 2012, diplomats from the US, UK, Russia, China and France, among others, formulated-the Geneva Communique-under UN auspices, a plan for peace in Syria to include political transition. The document has since formed the basis for the corresponding resolutions passed by the UNSC, namely resolutions 2118, adopted in 2013, and 2254, adopted in 2015, both of which reiterate the need for political transition. Resolution 2118, though focused mainly on the use of chemical weapons during the war, is particularly significant as it refers to Chapter VII of the UN charter, the foundational treaty of the UN, which all member states are bound to. According to 2118, in the event of ""non-compliance"" with the resolution, the UNSC member states, which include five permanent members: China, France, Russia, the UK and the US, as well as 10 non-permanent members, can ""impose measures"" on the warring sides in accordance with Chapter VII.- READ MORE:-Six years on - The price of saying 'no' to Assad ""There are mechanisms in UNSC resolution 2118 which cannot be activated unless the regime rejects this resolution [2118]. The regime always claims that it is looking for a political solution - it does not reject the resolutions,"" Mohamed Sabra, chief negotiator for the Syrian opposition during the last round of Geneva talks, told Al Jazeera. ""Our participation in Geneva is to discuss real mechanisms, either to implement the resolutions, or to demand that the UN and the [UN]SC activate the mechanisms in the UN charter, which allow for forcing the regime to abide by its obligations under international law,"" said Sabra.- If proven to be in breach of resolution 2118, the Assad government could face an official international arms embargo, targeted sanctions, or other coercive measures under Chapter VII. This could isolate the Assad government within the international community, and possibly compel it to consider meaningful negotiations with the opposition. For such measures to be introduced, the UNSC would need to pass another resolution on Syria declaring that resolution 2118 had been breached and authorising the use of force, but a Russian veto would block that from happening, as it has in the past.- Moscow has vetoed resolutions condemning Syrian government actions in the UNSC seven times in the past five years, most recently during a vote on a draft resolution threatening sanctions against parties using chemical weapons in Syria. Though both Assad's forces and the Syrian armed opposition groups have been complicit in committing war crimes, as was revealed in a recent UN investigation, neither are being pressured to stop. ""The evidence of crimes against humanity and war crimes is overwhelming. The problem is that at the moment Syria is an accountability-free zone. All sides, but especially the government, continue to kill, bomb and even deploy chemical weapons against civilians with total impunity,"" Simon Adams, executive director of the New York-based Global Centre for the Responsibility to Protect, told Al Jazeera. ""UNSC imposed sanctions would not only be legal, the fact that they haven't been imposed already is a disgrace. Russia's veto has created a cloak of impunity for Assad,"" said Adams, whose organisation works closely with the UNSC.- ""That's why the failure of the UNSC to uphold its responsibility to protect is so devastating. Russia's vetoes mean that more people will die, more cities will be destroyed, more refugees will flee, and the civil war will continue,"" he continued. But the Syrian government claims it must battle ""terrorism"" before discussing any diplomatic solution. It has succeeded in adding ""counter-terrorism"" on the agenda for the planned talks later this month, which, some analysts describe as a distraction ploy to continue its military offensive against the armed opposition. ""The government's claim that it is committed to international law and achieving a political solution is necessary for the silence of the international community,"" Mohammad Alahmad, a professor at Georgetown University's Center for Arab Studies in Washington DC, told Al Jazeera. ""The Assad regime seeks the re-legitimisation of its rule through 'negotiations', while conducting military action in parallel,"" added Alahmad. Besides the threat of Russian vetoes and the international community's paralysis on the war in Syria, analysts say the absence of a consensus on what a political transition would look like is a major staller in the process. ""The regime's obstruction is the same thing as rejecting transition, but the important point to keep in mind is the absence of consensus about what political transition is. I do not believe that Resolution 2118 can be triggered if the regime rejects the opposition's view of transition,"" Steven Heydemann, chair of Middle East studies at Smith College in the US state of Massachusetts, told Al Jazeera. The issue of political transition in UN resolutions and the Geneva Communique is ""left purposefully vague"", Noha Aboueldahab, a Doha-based expert on transitional justice in the Arab region, told Al Jazeera. The Geneva Communique, stipulates that a transitional governing body ""could include members of the present government and the opposition and other groups and shall be formed on the basis of mutual consent"". The fact that the document ""does not make any specific mention as to who exactly in the current government should stay on"" means that the ""question of Assad's hold onto power remains a key sticking point,"" said Aboueldahab. Moving forward, the opposition ""can demonstrate that it has international law on its side - that its position is legally correct and that Assad may be violating international law,"" said-Milena Sterio, professor of international law at the Cleveland-Marshall College of Law in the US state of Ohio. ""At some point, leaders become too 'rogue' and too isolated that it hurts them in the international community. The hope is to corner Assad, to isolate him politically and to get him to realise that if he wants any hope of participation in international relations and in the international community on behalf of Syria, he must negotiate with the opposition in good faith,"" Sterio told Al Jazeera. But despite the presence of a ceasefire in place since December 30, Syrian government advances on opposition-held territory have not halted, leaving the opposition to believe that Assad favours a military solution to the war. With wavering Turkish and US support for the armed opposition, some predict there will be a ""Somalisation"" of Syria, as UN and Arab League envoy Lakhdar Brahimi predicted several years ago. ""Saudi and Gulf support will ensure that an insurgency continues. This means that pockets of Syria will remain in the hands of the opposition while others will remain in the hands of the Syrian government,"" James Gelvin, a professor of the Middle East at the University of California, Los Angeles (UCLA) said. ""As in Somalia, there will be a government that has a permanent representative to the UN, that will issue passports, and that will print postage stamps. But, as in Somalia, that government will not have full control over the territory within its borders,"" Gelvin told Al Jazeera. Source:-Al Jazeera News", -2501,2017/3/15,http://www.aljazeera.com/programmes/aljazeeraworld/2017/03/syria-roots-tyranny-170313062353299.html,Syria: The Roots of Tyranny,The story of Abdul Hamid al-Sarraj who used fear and torture to turn 1950s Syria into a police state. The United Arab Republic Farajallah el Helou affair Al-Sarraj's fall from grace Jail and prison break,"Filmmaker: Mohammad Jameel Syria: The Roots Of Tyranny tells the story of Abdul Hamid al-Sarraj, a military intelligence chief who used fear and torture to turn 1950s Syria into a police state, a decade or so before the al-Assad regime rose to power. When Syria gained independence from France in 1946, the country's institutions were based on those of its former protectorate. It had an elected parliament, multi-party politics, freedom of the press and the right to protest, according to Radwan Ziadeh, executive director of the Syrian Centre for Political and Strategic Studies. ""The 1950 constitution was one of the most advanced in the Arab world."" There were three coups in 1949 but ""the state's infrastructure, its democratic, pluralist and civil institutions didn't change,"" explains Ziadeh. [Al-Sarraj] used torture, police rule, killing and nail extraction to oppress the Syrian people and officers. Syria became a terror school. Walid Elsaka, former Syrian army officer Al-Sarraj rose to prominence in the military in the mid-1950s, and was put in charge of a section of Syrian military intelligence, le Deuxieme Bureau, meaning the Second Office. ""The first challenge al-Sarraj faced ""?was when Adnan al-Maliki was assassinated [in 1955],"" explains journalist Kamal al-Taweel, who interviewed al-Sarraj-later in life. When Colonel Adnan al-Maliki, the deputy chief of staff of the Syrian army, was killed by a member of the Syrian Social Nationalist Party (SSNP), al-Sarraj-swiftly rounded up SSNP members. ""The assassination of al-Maliki fuelled hatred and resentment between the Syrian nationalists and Baathists. This unleashed al-Sarraj-on Syrian intelligence,"" says former Lebanese Interior Minister Sami el-Khatib. The crackdown after al-Maliki's assassination consolidated al-Sarraj's relationship with the nationalist, populist and socialist Baath Party. As its influence increased, so did the power of al-Sarraj-and the Deuxieme Bureau. It closely monitored al-Sarraj's fellow army officers and put them under surveillance. ""Syria wasn't a bloody country, despite all the coups, there was no torture, killing or revenge,"" says Walid Elsaka, a former Syrian army officer. ""[Sarraj] used torture, police rule, killing and nail extraction to oppress the Syrian people and officers. Syria became a terror school."" Sarraj did not join any political party, but made sure he cooperated with whoever was in power. An ardent Arab nationalist, he actively supported Egyptian President Gamal Abdul Nasser's stand against Western colonialism and Israel, including the Suez War in 1956. When the formation of the United Arab Republic (UAR) between Egypt and Syria was declared in 1958, al-Sarraj-was appointed interior minister of its northern province. Egypt was the republic's southern province. But the new republic did not bode well for the future of democracy, civil liberties or freedom of expression in Syria. Nasser dissolved all political parties and the multi-party system, and limited press outlets. ""We entered a kind of a junta rule with a single party in charge,"" says Ziadeh. Al-Sarraj-became Nasser's main man in the Syrian province. ""In al-Sarraj, Nasser found a courageous personality, smart in strategic thinking. He gave him information about Syria and Syrian people,"" explains Elsaka. ""More importantly, he gave him information about Syrian army officers."" However, his ruthless policing made him deeply unpopular. Al-Sarraj was appointed minister of Social Affairs and then president of the Syrian Executive Council in 1960. At 35, he became the most powerful Syrian in the UAR. His influence even began to extend beyond Syria's border into Lebanon. He wanted to rid Lebanon of anti-UAR sentiment, including the pro-Western Lebanese President Camille Chamoun. In an interview with journalist Kamal Al Taweel later in life, al-Sarraj-said he believed Syria was in danger if it didn't have decision-making power in Lebanon. He said that while he never interfered internally in Lebanon, he simply wanted their intelligence services to be in line with his. ""We didn't want our opponents to be influential partners in ruling Lebanon,"" he said. ""Camille Chamoun had to be eliminated by any means,"" he claimed. ""So we did."" Iraq also became a target for Nasser and al-Sarraj. In July 1958, an Iraqi army officer, Abdul Karim Qasim, staged a coup in Iraq, in which the entire royal family was killed. Nasser and al-Sarraj-decided that Qasim had had the support of the Communist Party - and their opposition to the Communists and to Soviet influence had been one of the main reasons for founding the UAR. Nasser declared war against Abdul Karim Qasim and the Communist Party, accusing them of serving Soviet interests. The Communist Party was outlawed in both the Syrian and Egyptian provinces of the UAR and a campaign was launched to arrest party members. A popular, leading figure in the Syria-Lebanon Communist Party, Farajallah el-Helou, also suffered at the hands of al-Sarraj's machine, in a UAR jail. ""I tried my best to ask about this. It was a sensitive subject for al-Sarraj,"" tells al-Taweel. ""After the 'usual' physical violence, el-Helou collapsed because of the heart problem everyone knew he had. Then he died."" Al-Sarraj said they'd had el-Helou under surveillance because they thought he was trying to re-activate the Communist Party in Syria, but that his death was an accident. Leaders of the Non-Aligned Movement - such as Russia's Nikita Khrushchev, Yugolsavia's Josip Broz Tito-and Indonesia's Sukarno - lobbied Nasser for el-Helou's release, says Karim Murrawwah, a-former member of the Lebanese Communist Party. ""But we later discovered he died the same day he was arrested."" His body was first buried in a secret location, but fearing exposure of the crime, it was dissolved with sulphuric acid and disposed of in a Damascus sewer. Pressure was eventually exerted on Nasser to curb al-Sarraj's power. In October 1959, Nasser gave his Egyptian Vice President Abdel Hakim Amer full power over the Syrian province, above al-Sarraj. At the same time, Syrian army officers were increasingly unhappy with way the UAR province was run and felt marginalised. They objected to their treatment by Egyptian officers and of being 'transferred' or 'retired' if they complained. ""Nasser heard about how the Syrian officers got tired of al-Sarraj's actions. So he asked-al-Sarraj to ease his grip on the army officers and civilians,"" says Elsaka. In August 1961, Nasser decided to appoint him vice president of Syria - but relocated him to Cairo, marking the beginning of the end for al-Sarraj. A month later, Nasser merged the two branches of the National Union Party, depriving al-Sarraj-of his position as leader of the Syrian branch; and when Egyptian Vice President Abdel Hakim Amer dismissed one of his closest associates, al-Sarraj-submitted his resignation. On September 28, 1961, there was a coup in Damascus by disaffected Syrian army officers. It was led by Abdul Karim al-Nahlawi, the head of Abdel Hakim Amer's office in Syria. They declared Syrian independence from the UAR and effectively dissolved the republic. Al-Sarraj was arrested and jailed in the Mezzeh military prison in Damascus. With the help of Lebanese and Jordanian intelligence, Nasser devised an escape plan to bring his former supporter, al-Sarraj, to Cairo via Beirut. It succeeded in May 1962 and al-Sarraj-arrived in Egypt to make his peace with Nasser. But this was to be the end of his political career. Al-Sarraj lived as a private citizen in Cairo for 50 years. He died in 2013, at 88. When al-Sarraj-died, Syria was two years into the civil war that had begun in 2011 with protests against Bashar al-Assad's authoritarian regime - which had arguably remained in power using many of the tools of repression introduced by al-Sarraj-nearly 60 years before. Source:-Al Jazeera", -2502,2017/3/15,http://www.aljazeera.com/indepth/features/2017/03/syrian-refugees-warm-scotland-170305093344216.html,Syrian refugees get a warm welcome in Scotland Zab Mustefa,Scots and Syrian refugees come together to share their cultures and experiences. By Mixing cultures Remote refugees,"Glasgow and Isle of Bute, Scotland - For newly arrived Syrians in Scotland, Munir Emkideh is a man to know. He knows how to get things done. Whether delivering free furniture or filling out forms, the 52-year-old is always on call to help the refugees settle into their new homes. In the last three years, he has become renowned for setting up a small network through which he distributes donated items to refugees and assists them with everyday tasks. After arriving in Scotland in 2012, Emkideh, who is from the Syrian city of Deraa, received his refugee status and has been at the core of many community-based projects since. ""When I first came here, I didn't know anything when I wanted to do simple day-to-day things, so that was the moment I decided to help others,"" he explains. ""Small things can make the biggest difference."" Last August, Scotland accepted its 1,000th refugee under the British government's Vulnerable Persons Relocation (VPR) scheme, which was set up in March 2014. While former Prime Minister David Cameron had vowed to accept 20,000 Syrian refugees by 2020, so far fewer than 2,000 have been resettled in the UK and many of those went to Scotland. In the six-month period leading up to March 2016, up to 40 percent of Syrian arrivals were accepted by local authorities in Scotland under the scheme, according to the Scottish Refugee Council. READ MORE: Syrian refugees welcomed on remote Scottish island At the peak of the Syrian refugee crisis in 2015, Scotland's first minister Nicola Sturgeon launched a special task force to help accommodate refugees. But human rights organisations say more needs to be done. Amnesty International-has repeatedly criticised the UK's unwillingness to accept more of the world's 4.8 million Syrian refugees and given the post-Brexit anti-immigration sentiment, it is unlikely that will change any time soon. Although local authorities are providing Syrian families with essentials such as housing, health and social services, refugees still need help with socialising and integration. Since 2013, Emkideh has been working with the Maryhill Integration Network (MIN), a charity that assists local authorities with settling refugees in Scotland. The organisation develops projects at a grassroots level to help create links between Syrian families and local communities through volunteers. Remzije Sherifi, the director of MIN, believes introducing the refugees to Scottish culture is a key aspect of helping them adjust to their new homes. But, she says, in order to do so, local people have to be involved. ""Syrian refugees have come from what I call 'the journey of death',"" Sherifi explains. ""People who witnessed the horrors of war or lost their loved ones are living with trauma and, more than anything, it is important that we express how welcome they are in Scotland. They need a safe place where they can feel like part of the community and know they belong to Scotland."" Last year, the charity launched ""Family Nest"", a project aimed at bringing Syrian families together from across Scotland to help them get back on their feet again. ""We try to promote creative writing and other opportunities to engage them. They come from well-educated backgrounds and we have to find out how we can help them use their skills,"" Sherifi says. The project consists of weekly workshops aimed at mixing Scottish and Syrian cultures together through food, arts and dance. Most recently, MIN hosted a ""Burns Supper Night"" to commemorate the famous Scottish poet Robert Burns. A key element of the event was the trademark haggis dish, with a Syrian twist. ""We had Syrian haggis, Algerian haggis and even Lebanese haggis and everyone loved the various versions of the dish,"" she says. ""All members of the community came together. Cooking is a huge part of Arab culture, so it was amazing to make that connection through cuisine."" Sherifi believes Scotland will always be more welcoming than elsewhere. ""With all the negative things [US President Donald] Trump has been saying about Syrians, I must say, Scotland is more welcoming than any other place,"" she explains. ""Everyone connects organically and this also helps Scots better understand why refugees are here. Through our work, we want to open people's hearts and minds about what is going on in Syria."" In conjunction with MIN, a group of Syrian refugees recently travelled to the small rural village of Comrie in the southern highlands to perform a traditional dance after the event organisers decided to bring the communities together through music. As the performers proudly started their dabke routine, an Arab folk dance common in the Middle East, the largely Scottish audience was happy to experience a part of Syria. ""We were keen as a community to show some friendship through dance,"" says Alan Caldwell, a Comrie volunteer who helped organise the event. ""Today is about showing each other we are as one no matter where we come from."" Although negative responses towards refugees in Scotland have been minimal and communities have been largely supportive, a controversial article in the British tabloid the Daily Mail resulted in a backlash after the paper described Syrians living on the remote Isle of Bute as ""unhappy"" and ""complaining"" about their location. READ MORE: 2016 - The year the world stopped caring about refugees The 17 families in the island's seaside town of Rothesay said they were left fearful of reprisals as a consequence of the article, and many refugees have been reluctant to speak of their experiences since. Al Jazeera was able to get exclusive access to one family who had arrived in the seaside town over a year ago. ""I was very upset with what the Daily Mail wrote because the journalist just made stuff up,"" says Ahmad Mahmoud, who came from the Syrian capital Damascus with his wife and two young children. ""It was all incorrect and we were made out to be ungrateful. When Syrians arrived here, it wasn't easy to find halal food, but it was something that was made into a big deal, when that is not the case. We are grateful to the Scottish people. Whenever we go out, they always have smiles on their faces."" Mahmoud's daughter, eight-year-old Hala, hovers in the background before proudly showing off the gifts she received from local well-wishers. ""I miss Syria a lot, but I couldn't play outside much because of all the gunfire and fighting,"" she says while holding her toys. ""Here, I'm making new friends and I love going to see them at school."" Emkideh, who is in regular contact with the family says refugees living in remote parts of Scotland simply want to rebuild their lives and heal from the trauma they experienced in Syria. ""If the war stops, we would all love to go back and till we can, I would like to thank the Scottish people for their warm welcome and hospitality,"" he says. ""They are very nice people."" Source:-Al Jazeera News", -2503,2017/3/15,http://www.rte.ie/news/us/2017/0315/860059-donald-trump/,'No evidence' Obama had wiretap on Trump Tower,,"Senior US Democrats and Republicans have they had seen no evidence to support President Donald Trump's claim that the Obama administration wiretapped his New York home and office building. ""We don't have any evidence that that took place,"" said Devin Nunes, Republican chairman of the congressional committee conducting an inquiry into the allegation. At a press conference he said: ""I don't think there was an actual tap of Trump Tower."" Mr Nunes' conclusion was echoed by the panel's top Democrat, Adam Schiff. ""To date I've seen no evidence that supports the claim that President Trump made that his predecessor had wiretapped he and his associates at Trump Tower,"" Mr Schiff said. ""Thus far, we have seen no basis for that whatsoever."" The House Intelligence Committee, which Mr Nunes heads, is also conducting an investigation into suspected Russian interference in last year's US election. On 4 March, Mr Trump sparked a furore when wrote on his @realDonaldTrump Twitter account that Mr Obama had tapped into communications at Trump Tower, New York home to the president and first family, before the 8 November election. The tweets sparked enormous controversy, in part because it is unprecedented for any US president to accuse a predecessor of a felony crime. Terrible! Just found out that Obama had my ""wires tapped"" in Trump Tower just before the victory. Nothing found. This is McCarthyism! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 Is it legal for a sitting President to be ""wire tapping"" a race for president prior to an election? Turned down by court earlier. A NEW LOW! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 How low has President Obama gone to tapp my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 The allegation was also remarkable since Mr Trump - although known for making bombastic, unsubstantiated claims via the social messaging platform - would, as president, have access to secret law enforcement and intelligence probes containing such information. The US President made his allegations just after reports in conservative media made the same claim, leading to suspicions they were his source - which the White House has not denied. ""It deeply concerns me that the president would make such an accusation without basis,"" said Mr Schiff. Mr Nunes and Mr Schiff said they do not expect to hear evidence backing up the claim when Federal Bureau of Investigation Director James Comey testifies to the House Intelligence Committee on Monday. But the two said they are hoping to make progress on the issues of Russia's interference in last year's election, including how many people linked to the Trump campaign may have been wiretapped in the course of that or other probes. Also testifying Monday will be Michael Rogers, director of the National Security Agency, the government's electronic spying body. Another intelligence hearing, with testimony from other witnesses, is scheduled for 28 March.", -2504,2017/3/15,http://www.rte.ie/news/2017/0315/859990-brexit-border-republic/,UK rules out border posts between NI and Republic post-Brexit,,"The British government has ruled out introducing Irish border posts after leaving the EU. Brexit secretary David Davis said the UK would adopt technology to cover the movement of goods between Northern Ireland and the Republic. He gave evidence to his Westminster scrutiny committee about the future of the UK's only land frontier with an EU state. He said: ""It is not going to be easy, it is going to cost us money, a lot of work on technology, to put border controls in but without having border posts - but that is what we intend to do."" Businesses north and south are unanimously opposed to a hard border following Brexit, with long queues for paperwork checks envisaged akin to the 1980s when the Northern Ireland conflict still simmered. Tour operators, hoteliers, business leaders and members of the agriculture industry are among those concerned about the implications if no special deal is struck between the UK and Ireland. Mr Davis said: ""I am confident that actually the two nations and the (European) Commission between them will be able to solve this because we really want to, because the technology is better than it was 20 years ago and because we all understand the value of it."" He added: ""We are not going to do anything which jeopardises the peace process."" The Brexit Secretary noted excise duty differences on goods moving between north and south were already dealt with in a subtle fashion. He said the same system for sending goods between Belfast and Dublin could also control trade between the UK and a city like Rotterdam in Holland. Freedom of movement between the UK and Ireland is covered by separate arrangements. Under the UK's 1949 Ireland Act Irish citizens living in the UK are treated as ""non-foreign"". That may have to be reviewed post-Brexit, given that the Republic would still be in the EU. Mr Davis added: ""What we will aim to do is pretty much identical to the 1949 Act, which gives effectively citizenship rights to the citizens of each country."" The border between Northern Ireland and the Republic can ""work perfectly"" and be ""seamless"" like the Norway-Sweden border, two Swedish MEPs said. They have suggested the Irish border could be modeled on their EU frontier with Norway. EU member state Sweden has a 1640km border with non-member Norway. The two countries enjoy trade links worth over �18 billion annually as they have bilateral cross-border agreements. Asked if a similar arrangement could be replicated in Ireland, Swedish European People's Party MEP Gunnar Hokmark told RT? News: ""The main issue is that you need to have trust between the countries, which we have between Sweden and Norway and I guess you would have the same [with Britain]. So I think it is very much how much you want it to be divided. ""Our experience is that it is very seamless, working in a way that when I get this question I need to think about it because I don't see any obvious obstacles. "" His Swedish colleague, Max Andersson, MEP for the Greens/European Free Alliance claimed the border with Norway ""works perfectly."" He said: ""It is like an internal EU border because Norway is a member of the single market agreement. Norway is also a member of Schengen agreement so unless Britain decides to become a member of the EEA [European Economic Area], if they do that, there will be no problems but if they don't do that, there will be border controls and that it going to be quite difficult.""", -2505,2017/3/15,http://www.rte.ie/news/2017/0315/859859-goa-india-irishwoman-death/,Mother pays tribute to daughter found murdered in India,,"The mother of an Irish woman, who has been found dead in a Goa tourist resort, has paid tribute to her daughter saying she will be ""sadly missed"". The body of Danielle McLaughlin, 28, was discovered in Canacona, a popular tourist area in the south of the Indian state. In a written statement issued by a close friend on behalf of the family in Buncrana, Co Donegal, Andrea Brannigan said: ""The family would like to express our thanks to all who have got in touch since receiving this awful news. ""As you can expect we are finding it very difficult at this trying time. ""We want to thank the Irish and British consulates, along with Colin from the Kevin Bell Repatriation Trust, and many friends who have assisted at this time. Danielle will be sadly missed by us all."" Local media in Goa have reported that-there were several bruises and cuts on Ms McLaughlin's-face and her body was discovered naked in a field. Police say a post-mortem examination will be carried out to discover whether a sexual assault took place.- Several men were questioned by police and it is reported one of those men will appear in court today. Danielle McLaughlin's body was found in the coastal resort of Canacona The Department of Foreign Affairs has confirmed that the Irish Embassy in India is following up on the reports. In a statement it said Ms McLaughlin travelled to India using a British passport, so the local British consulate has-the lead responsibility in terms of dealing-with Indian authorities. However, the Irish Embassy is liaising closely with the British authorities and an Irish consular official is travelling from Delhi to Goa today.", -2506,2017/3/15,http://www.rte.ie/news/ireland/2017/0315/860010-baby-injured-louth/,Investigation after baby found with serious injuries in Co Louth,,An investigation is under way after a ten-week-old girl was found with serious injuries in Co Louth. The baby was found injured at an address on Monday. The infant was taken to a local hospital that day and later transferred to a hospital in Dublin. It is understood she remains in a serious condition. Garda�� said-the circumstances surrounding the injuries are now under garda investigation., -2507,2017/3/15,http://www.rte.ie/news/ireland/2017/0315/860078-allen-quinn/,Concern for man missing from Enfield,,"An appeal has been issued to trace a 41-year-old man who has been missing from his home in Co Meath since yesterday. Garda�� say they are concerned for the welfare of Allen Quinn, who was last seen in Enfield on 14 March at around 6am. He is described as being 1.77m (5'10"") in height, of stocky build and with brown hair,-brown eyes and a beard. It is believed Mr Quinn is driving a silver Ford Fiesta with a 141 KE registration. His family is also very concerned for his welfare. Anyone with information is asked to-Trim Garda Station 046-9481540, the Garda Confidential Line on-1800 666111 or any Garda station.", -2508,2017/3/15,http://www.rte.ie/news/business/2017/0315/860056-eu-us-trade-deal-would-benefit-both-sides-enda-kenny/,EU-US trade deal would benefit both sides - Enda Kenny,,"A comprehensive trade deal between the United States and European Union would be a win-win for both economies, Taoiseach Enda Kenny has said during his visit to the US. Addressing a gathering of business figures in Washington, Mr Kenny said he would continue to work to make a transatlantic trading agreement a reality. Mr Kenny also said Ireland was in a strong position to maximise any opportunities presented by Brexit. As the only English-speaking country remaining in the union, the Fine Gael leader insisted Ireland could be an important bridge between the US and Europe. His remarks came amid ongoing uncertainty over the fate of the proposed Transatlantic Trade and Investment Partnership (TTIP) between the US and the EU. Negotiations on TTIP are on ice following the election of President Trump, who campaigned on a protectionist agenda and has been highly critical of TTIP. ""Ireland steadfastly supports an open, rules-based international trading system which promotes and delivers open, free and fair trade,"" Mr Kenny told the Economic Promotion Lunch at the United States Institute of Peace. ""We continue to believe that a comprehensive bilateral trade and investment deal between the EU and US would benefit both economies and most importantly, the workers and consumers of both blocs. ""So I am determined to work with the new US administration and as a committed member of the EU towards this end."" Mr Kenny will hold talks with President Trump in the White House tomorrow. In regard to Brexit, the Taoiseach repeated his view that the UK's departure from the EU would be ""bad for Britain, for Ireland and for Europe"". But he added: ""Whilst there will be unique challenges facing Ireland, we are also in a strong position to maximise any opportunities for Ireland arising from Brexit. ""Ireland is an important bridge between the US and the EU. Post Brexit, Ireland will be the only English-speaking country in the EU, at the heart of the Single Market with unfettered access for companies, and in the euro zone. ""Our people are well educated and are passionate about business, progress and creativity. ""We will continue to promote the strengths which make Ireland so attractive to FDI (foreign direct investment). And key to this is our strong commitment to international trade.""", -2509,2017/3/15,http://www.rte.ie/news/2017/0315/860089-beacon-meeting-dublin/,Beacon apartments company to vote on �10k owners' levy,,"The management company in charge of Beacon Quarter South apartments in Dublin is due to vote on a proposal to levy owners an average of �10,000 each to fix building defects. Private owners at the south Dublin complex are trying to vote down the proposal saying that the construction companies involved should foot the overall bill of more than �10 million. The Annual General Meeting of the Beacon Quarter South management company is taking place this evening to decide on the proposal to rectify water ingress and fire safety deficiencies. Dublin Fire Brigade has notified residents that it will be forced to ""take legal action"" if the required works are not carried out within an acceptable timescale. Many private residents have taken this as a threat of an evacuation order according to spokesperson Killian Ryan who says it has caused a lot of concern given the present housing crisis. He and other residents want to refuse to pay the �1.1 million in water damage repair for a number of apartments and �1.1m to bring the complex up to fire safety standards. They fear the eventual bill could rise to �10m and want the builders to rectify the problems. Many owners paid over �100,000 for two bed apartments at the Sandyford complex. Although the developer Landmark Enterprises is in receivership other companies involved are still trading successfully. John Paul Construction, PJ Hegarty and Laing O'Rourke were unavailable for comment. The single biggest voting block at the AGM is iRes Reit the Canadian backed private rental company which owns around one quarter of the 880 apartments. In a statement the company said it would will pay for the remedial works should the sinking fund be approved. It has said it will make one of its two seats on the management company board available to residents at the AGM. The voluntary housing body Circle which owns 17 units says it wants further information on the cost before deciding on its votes. Dun Laoghaire Rathdown Council which owns 18 units has stated it has contractual duty to contribute to the sinking fund. The voluntary housing body Clúid owns 58 units. The receivers Mazars have a seat on the board of the management company.", -2510,2017/3/15,http://www.rte.ie/news/crime/2017/0315/859977-webster-shortall-court/,Murder trial told victim suffered nine blows to head,,"Wicklow woman Anne Shortall died from blunt force trauma to her head and the obstruction of her airways the Central Criminal Court has been told. Roy Webster, 40, of Ashbree, Ashford,-Co-Wicklow has admitted killing Anne Shortall, 47, on 3 April-2015 but he has pleaded not guilty to murder. He claimed he hit her on the head with a hammer three or four times, after she said she would tell his wife about their one night stand if he did not give her ?6,500 sterling for an abortion. State Pathologist Professor Marie Cassidy said Ms Shortall had suffered at least nine blows to her head, bruising to her neck and face and some injuries to her hands. She said there was no evidence of serious injuries to Ms Shortall's brain and she concluded her death would have been fairly rapid after she was injured. Professor Cassidy said Ms Shortall's skull was not fractured but her scalp was lacerated and she concluded the injuries were inflicted with moderate force. Professor Cassidy said there was no evidence of a recent pregnancy.- She said bruising to Ms Shortall's face could have been due to separate blows such as punches or kicks.- Professor Cassidy said the injuries to her hands could have been defensive injuries or caused by her hands striking something. She said Ms Shortall's head and face were wrapped with duct tape blocking her airways. She said it would have been difficult to wrap her head in such a way if Ms Shortall had been conscious at the time.- However, Professor Cassidy told the court there were no features to allow her to determine whether or not she was alive when the tape was wrapped around her head. She said she could not exclude that Ms Shortall's death was caused by head injuries alone but she said if the tape was applied to her head while she was alive, this would have excluded all possibility of her survival from the head injuries.", -2511,2017/3/15,http://www.rte.ie/news/courts/2017/0315/860038-pensioner-burglaries-court/,"Serial burglar targeted pensioners, held couple hostage",,"A serial offender who targeted pensioners in a string of burglaries held an 81-year-old man and his partner hostage, Dublin Circuit Criminal Court has heard. Anthony Connors, 41, from Richmond Street in Dublin will be sentenced next month. He has 48 previous convictions and has spent most of the past 25 years in jail. Connors has received prison sentences totalling-144 years and has a history of targeting elderly people in their homes. His oldest victim was 100 years old. In May last year, he was allowed out on bail to attend a residential drug treatment programme. A month later, he offended again, threatening an 81-year-old man and his partner with a jagged broom handle, holding them hostage in their home while demanding cash. The ordeal lasted over an hour and he left with �170 and an electronic tablet containing irreplaceable art work.- Before he left, his victim hit him with a battery pack in the head. Connors was arrested the following day. He pleaded guilty to aggravated burglary, false imprisonment and threats. Defence lawyers said he was shocked and ashamed of his behaviour when he read the victim impact statements. The couple said they suffered fear anger and frustration after the attack, had trouble sleeping and had nightmares. Connors will be sentenced next month.", -2512,2017/3/15,http://www.rte.ie/news/us/2017/0315/860000-russia-yahoo-hacking/,Russian spies among those charged in US over Yahoo hacking,,"Two agents of Russia's FSB spy agency and two ""criminal hackers"" have been charged over a massive cyberattack affecting 500 million Yahoo users, the US Justice Department has announced. The indictment unveiled in Washington links Russia's top spy agency in one of the largest cyberattacks in history, revealed last year, and which officials said was used for espionage and financial gain. It is-the first time the US has brought criminal charges against Russian officials for cyber offences. Acting Assistant Attorney General Mary McCord said the Yahoo hackers sought access to journalists, diplomats, executives, and security and military personnel. She said that Russia's FSB hired two ""criminal hackers""-to carry out the attack. Those hackers are also being charged. During a press conference at the US Department of Justice the attack was characterised ""as one of the largest cyber intrusions in US history"".", -2513,2017/3/15,http://www.rte.ie/news/2017/0315/860071-news-in-brief/,News in Brief,,"Draft plan on Greenhouse Gas Emissions published A draft plan to reduce Ireland's Greenhouse Gas Emissions has been published by the Minister for Climate Action. Denis Naughten said there are no easy options to reduce our emissions to the scale required - and warned the options will be complex and need substantial investment by both the public and private sectors. A six-week statutory public consultation has been launched about the document. Travellers call off Killarney protest Members of the Traveller community in Killarney have called off a march and protest planned for St Patrick's Day. The theme for the town's annual St Patrick's Day parade is 'diversity', but many Travellers in Killarney say they are excluded from hotels, restaurants and pubs and have to leave the town when socialising. The march was called off ""in the interests of all communities in Killarney"", according to in a statement by Traveller representatives, garda�� and local councillor Donal Grady. Mr Grady said although their complaints needed to be dealt with, St Patrick's Day was not the day to protest the issue. Polar bear born in Finnish park explores outside world Accompanied by his mother, a young polar bear born at Finland's Ranua Wildlife Park late last year ventured outside its den for the first time, tumbling around in the snow. - - - - - - Visitors watched as the cub and its mother Venus slowly explored the outside surroundings. - - - - - - According to the park, ""the successful procreation of polar bears kept in captivity is extremely rare"". - - - - - - Venus gave birth to two cubs on 25 November,-but one died after ten days. Trump orders fuel economy rule review The Trump administration has ordered a review of tough US vehicle fuel-efficiency standards put in place by the Obama administration, handing a victory to auto industry executives and provoking criticism from Democrats and environmental groups. - - - - - - Auto industry executives have said they are hopeful the Trump administration will pursue tax and regulatory policies that would benefit US-manufacturers. Reopening the fuel efficiency rules put in place by-former president Barack Obama just a few weeks before he left office is one of the top items on the industry's agenda. Automakers, through their lobbying groups, have said the Obama rules were too expensive and could cost American jobs. - - - - - -", -2514,2017/3/15,http://www.rte.ie/news/2017/0315/859914-workplace-fatalities/,Two farmers die in separate accidents,,"The Health and Safety Authority has said that two men have died in-separate workplace accidents in counties Offaly and Wexford.- Both men were farmers.- In Co Wexford, a man in his 20s died when the quad bike he was driving overturned into a ditch.- In Co Offaly, a farmer in his 70s died after he was struck by a tractor-on his farm at 8am-at Fivealley, outside Birr.- HSA inspectors have arrived on the scene and an investigation has been launched into the circumstances of the accident. Garda�� from Birr-also remain at the scene.-", -2515,2017/3/15,http://www.rte.ie/news/europe/2017/0315/860023-austria-avalanche-dead/,Four killed in Austrian avalanche,,"Four Swiss men were killed when their ski touring group was swept away by an avalanche in western Austria, police in the Tyrol region said. Rescuers had used snow drilling machines to try to rescue the fourth man in the remote area near the Jochgrubenkopf, a roughly 2,450 metre-high peak, but found him dead, buried 10 metres deep in snow. The group of eight people was using touring skis, allowing people to climb and descend, making remote areas accessible. ""Four of them were able to free themselves (from the snow),"" a spokeswoman for Tyrol police said. The avalanche struck around 12.30pm local time, she said.- A total of 267 people died in the Austrian Alps last year, down from an average of 297 over the past ten years, including 17 in avalanches, according to the Austrian Alpine safety board.", -2516,2017/3/15,http://www.rte.ie/news/ireland/2017/0315/860032-girl-critical-rta/,Young girl critical after Co Clare road collision,,"A three-year-old girl is in a critical condition after a road traffic accident in Co Clare this morning. The child was travelling in a car with her father on the N85 between Ennis and Ennistymon at around 9am this morning when it was in a collision with another car near the village of Inagh. The girl was airlifted from the scene to-University Hospital Limerick, but has since been transferred to hospital in Dublin.- Her father who was seriously injured is being treated in hospital in Limerick. The driver of the other car was also brought to hospital and is being treated for less serious injuries. All three are from the Ennis and Ennistymon areas. The road between Inagh and Ennistymon has remained closed to enable garda�� to carry out an examination of the scene. They are appealing for witnesses to contact garda�� at Ennistymon.", -2517,2017/3/15,http://www.rte.ie/news/2017/0315/859980-darren-byrne-michelle-byrne/,Van driver loses �10k claim over car park collision,,"A 36-year-old van driver, who told a court today that he still suffered neck stiffness four years after a minimal impact collision in a car park, has lost a �10,000 claim for damages. Judge Jacqueline Linnane told Darren Byrne in the Circuit Civil Court that she found the female driver he sued for personal injuries to be ""a more truthful witness"". The judge said the account of the incident as related by defendant Michelle Byrne, no relation of the plaintiff, was more likely what had happened in the car park at Liffey Valley Shopping Centre, Clondalkin, Co Dublin, in November 2013. Barrister Jennifer O'Connell, counsel for Ms Byrne, of La Touche road, Bluebell, Dublin, told the court she had just reversed out of a parking space when the plaintiff's Ford Transit van backed out of his space and struck her Nissan Note with his tow bar. He had ignored the beeping of her horn. Ms O'Connell, who appeared with Lacy Walsh Solicitors, said there was ""no damage whatsoever"" to the van and only a dent to the rear wheel arch of the Nissan. Counsel told the court Mr Byrne, of Greenfort Crescent, Clondalkin, had been seen two days after the accident by Dr Jean O'Sullivan, emergency medicine consultant at Tallaght Hospital.- He was complaining of a soft tissue injury to his neck. He had been seen by Dr O'Sullivan a year later and was complaining of a stiff neck.- He saw her again three years after the incident and was still complaining of stiffness in his neck. Mr Byrne told Ms O'Connell he still suffered neck stiffness now four years after the accident in which both parties accused the other of reversing into their vehicle. Judge Linnane said Mr Byrne had claimed his van never moved before the Nissan Note struck his tow bar.- She said photographs of the damage to Ms Byrne's car were not consistent with Mr Byrne's account of what had occurred. The judge said a picture Ms Byrne had taken on her phone clearly showed that the van had moved out of its parking space ""and not just by a little bit"". Dismissing Mr Byrne's claim and awarding costs against him, Judge Linnane said she preferred Ms Byrne's account of what had happened. ""I find Ms Byrne the more truthful witness,"" she said.", -2518,2017/3/15,http://abcnews.go.com/Politics/trump-calls-hawaii-judges-ruling-revised-travel-ban/story?id=46142441,Trump calls Hawaii judge's ruling against revised travel ban 'unprecedented judicial overreach',,"Less than two hours after a federal judge in Hawaii issued a nationwide temporary restraining order on the Trump administration's revised travel ban, the president slammed the decision as ""an unprecedented judicial overreach."" A day before the executive order was to take effect, U.S. District Judge Derrick Watson blocked the limitations on travel and immigration. Watson's ruling in Hawaii Wednesday noted that ""a reasonable, objective observer""?would conclude"" that the ban ""was issued with a purpose to disfavor a particular religion."" Speaking Wednesday night at a rally at Nashville's Municipal Auditorium, President Trump said the court was motivated by ""political reasons,"" adding that he expected to be ""criticized ... for speaking harshly about our courts."" ""The order... blocked was a watered-down version of the first order that was also blocked by another judge and should have never been blocked to start with,"" Trump said. He added, ""This ruling makes us look weak."" The decision in Hawaii was just the latest hindrance to Trump's ongoing promise to protect the country from terrorism. He has continuously argued a temporary limit on travel is necessary while an ""extreme vetting"" process is instituted to better gauge the potential threat of those wishing to enter. Trump signed the revised executive order on March 6, replacing his January 27 ban which was met with widespread protests and legal challenges after travelers from seven majority-Muslim countries in the Middle East and Africa were prevented from travelling to the U.S. The original order was blocked by a federal judge's temporary restraining order in Washington state in February -- a move that the 9th Circuit Court of Appeals later declined to stay. The president noted at the rally that steps were taken to defend the order against further disputation, saying, ""This new order was tailored to the dictates of the 9th Circuit's -- in my opinion -- flawed ruling."" He went on to vow that his administration would continue to pursue the matter in court, a promise similar to the one he made after the first executive order was restrained. Trump tweeted in February, ""SEE YOU IN COURT, THE SECURITY OF OUR NATION IS AT STAKE!"" That pledge was broken when the revised order rescinded the original. ""We are going to fight this terrible rule,"" Trump said at the Nashville rally. ""We are going to take our case as far as it needs to go, including all the way up to the Supreme Court. We are going to win. We are going to keep our citizens safe and regardless, we are going to keep our citizens safe, believe me.""", -2519,2017/3/15,http://abcnews.go.com/US/hawaii-judge-puts-trumps-travel-ban-hold/story?id=46157273,Hawaii judge puts Trump's revised travel ban on hold,,"A federal judge in Hawaii on Wednesday issued a nationwide temporary restraining order on President Donald Trump's revised travel ban, dealing another body blow to one of the president's signature domestic security initiatives. U.S. District Judge Derrick Watson heard arguments in a Hawaii federal court Wednesday and issued the ruling soon after, finding that that there is ""significant and unrebutted evidence of religious animus driving the promulgation"" of the new order and its predecessor. His ruling prevents core provisions of the executive order, affecting refugees and citizens of six predominantly Muslim countries, from going into effect as scheduled on Thursday. At a rally in Nashville Wednesday night, President Trump slammed the decision as ""an unprecedented judicial overreach."" And the Department of Justice said in a statement it ""strongly disagrees with the federal district court's ruling, which is flawed both in reasoning and in scope. The President's Executive Order falls squarely within his lawful authority in seeking to protect our Nation's security, and the Department will continue to defend this Executive Order in the courts."" In arguing for the restraining order, the state of Hawaii alleged that the new executive order ""began life as a Muslim ban,"" and that the statements of President Trump and his advisers ""provide direct evidence of the Executive Order's discriminatory motivations."" ""The March 6, 2017 Executive Order was motivated by animus and a desire to discriminate on the basis of religion and/or national origin, nationality, or alienage,"" the state contended. Nihad Awad, the national executive director of the Council on American-Islamic Relations, said in a statement, ""We welcome this order as confirmation of the strength of our nation's system of checks and balances that prevents one branch of government from violating the Constitution or the rights of any vulnerable group. We urge the Trump administration to scrap this Muslim ban entirely because it disrespects both the Constitution and America's longstanding tradition of religious freedom and inclusion."" Wednesday's ruling drew a mixed reaction from other legal experts. Peter Margulies, an expert in national security law at the Roger Williams University School of Law, disputed the judge's reasoning. In part, Margulies said, Watson's opinion ""confuses campaign speeches with the proof of intent that the Supreme Court has required."" He added that ""the initial executive order had due process problems and the government has dealt with those problems."" But others praised Wednesday's ruling. Hiroshi Motomura, a professor of immigration and citizenship law at the UCLA School of Law, said that the new order still runs afoul of the 1st Amendment's Establishment Clause, which prevents the government from discriminating against a particular religion. ""Since the case law is clear that a law can violate the Establishment Clause based on its intent and origins even if the law doesn""t expressly name a religion as favored or disfavored, it makes eminent sense that the new ban is just as vulnerable to the Establishment Clause challenge as the Jan. 27 version was,"" said Motomura. ""The intent and origins haven""t changed."" Anil Kalhan, an immigration law professor at the Drexel University Thomas R. Kline School of Law, echoed that sentiment. ""The legal standard is whether there is religious based motivation. There's so much evidence of this,"" Kalhan said. ""The court would have to be an ostrich to deny that the new order emerged from the same context as the first one."" The state of Hawaii also argued the ban would harm its tourism industry, as well as its ability to recruit foreign students and workers. The Trump administration had argued that the plaintiffs were trying ""to impugn the order using campaign statements""?and that the court should not look beyond the stated purpose of the revised order, which had been substantially revised to exempt legal residents and current visa holders. The administration asserted that statements made during the campaign by Trump and his surrogates were ""irrelevant"" and urged the judge not to look for ""secret motives"" of government officials in reaching his decision. Judge Watson, who was appointed to the bench by President Obama in 2012, issued a thorough rebuke of the administration's position. ""The remarkable facts at issue here require no such impermissible inquiry,"" Watson writes, referencing then-candidate Trump's call for ""a complete shutdown"" of Muslim immigration and recent comments by Trump senior adviser Stephen Miller that the new order would result in ""the same basic policy outcome for the country"" as the first, now revoked, order. ""These plainly-worded statements, made in the months leading up to and contemporaneous with the signing of the Executive Order, and, in many cases, made by the Executive himself, betray the Executive Order's stated secular purpose,"" Watson wrote. ""Any reasonable, objective observer would conclude""�that the stated secular purpose of the Executive Order is, at the very least, 'secondary to a religious objective' of temporarily suspending the entry of Muslims."" Watson's order capped off a whirlwind day of court hearings around the country, with plaintiffs in Maryland and Washington State also seeking to block the ban before it goes into effect. The attorney general of Washington State, Bob Ferguson, whose lawsuit resulted in the injunction preventing implementation of the first version of the travel ban, tonight praised the Hawaii order as ""fantastic news."" ""Today's rapidly evolving events show the strength of our growing coalition, from the eastern seaboard to the Hawaiian islands."" -BF ""Today's rapidly evolving events show the strength of our growing coalition, from the eastern seaboard to the Hawaiian islands,""?Ferguson wrote on Twitter. ABC News' Sarah Shales and Lauren Pearle contributed to this report.", -2520,2017/3/15,http://abcnews.go.com/Politics/wireStory/border-agency-anticipates-years-hit-trumps-hiring-goal-46157981,Border agency anticipates years to hit Trump's hiring goal,,"The U.S. Border Patrol will not lower hiring standards to satisfy President Donald Trump's order to add 5,000 agents and will need several years to hit its target, administration officials said Wednesday. A precise timeline has not been set, but one official said the goal was to hire as many agents as possible in four or five years. Another official said it wouldn't happen overnight. Officials at U.S. Customs and Border Protection, the Border Patrol's parent agency, would speak only on condition of anonymity, despite Trump's insistence that reporters should only quote people by name. The hiring surge is a key piece of Trump's immigration orders that has drawn less attention than his travel ban and his plans to erect a wall on the border with Mexico. Hiring 5,000 Border Patrol agents would represent an increase of about 25 percent, and his plan for 10,000 more U.S. Immigration and Customs and Enforcement officers and agents is an increase of about 50 percent. Trump's orders set no deadline and it is unclear if Congress will provide the billions of dollars they would likely require. Trump proposed the target of 5,000 agents during the campaign; CBP officials did not directly address how that number came about Wednesday but said it was achievable. A CBP official said the agency was committed to a requirement that all applicants take a lie detector test but was looking to waive it for a limited number of job seekers, including certain veterans with at least four years of military experience and some law enforcement officers at other federal agencies. The officials said about 75 percent of applicants fail the polygraph, roughly two-thirds of them for admissions about criminal history or other matters. That's more than double the average rate of applicants at eight law enforcement agencies that provided data to The Associated Press under open-records requests. Applicants to the U.S. Drug Enforcement Administration failed 36 percent in the last two years. CBP also plans to test an alternative polygraph that may take less time to administer but still meets federal standards and identifies problem candidates, the officials said. ICE, which is responsible for deportations and immigrant detention centers, does not require that applicants take a lie detector test. One official challenged a widespread perception that the Border Patrol's last hiring surge, which doubled the number of agents from 2003 to 2011, resulted in more corruption. The official said there was no evidence to show that agents hired during that time were more corrupt. ""?Spagat reported from San Diego.", -2521,2017/3/16,http://abcnews.go.com/Politics/trump-slash-state-department-budget-28-percent-shift/story?id=46151210,"Trump to slash State Department budget by 28 percent, shift money to defense",,"President Trump's budget blueprint will cut the State Department budget by 28 percent while infusing the Defense Department with a 10 percent spending increase, the president's budget director Mick Mulvaney told reporters. ""there is no question this is a hard power budget, it is not a soft power budget,""?Mulvaney said. ""the president very clearly wanted to send a message to our allies and our potential adversaries that this is a strong power administration, so you have seen money move from soft power programs, such as foreign aid, into more hard power programs.""?While Mulvaney described the cuts to the State Department as ""Hairly dramatic,""?he said the country's core diplomatic functions will not be impacted by the cuts, which he said are focused on reducing foreign aid. ""That is not a commentary on the president's policies toward the State Department, that is a comment on the president's policies toward what is in their budget,""?he said. ""the foreign aid line items just happen to fall in State.""?Trump's promised border wall will get a cash influx of $1.5 billion in the blueprint, Mulvaney said, with possibly more money flowing to that project in the next year's budget. He said this funding will provide for a couple of ""pilot cases""?to see what type of wall structure is most cost efficient and effective. Mulvaney described the blueprint as ""the America first"" budget ""?designed to follow up on the president's campaign promises. ""If he said it on the campaign, it's in the budget,""?Mulvaney said. ""We wrote it using the president's own words,""?he also said. ""We went through his speeches, we went the articles that have been written about his policies ... and we turned those policies into numbers. So you had an ""america First""?candidate, you have an ""america First""?budget.""?While Mulvaney said that a balanced budget is not achievable this year, he said a guiding principle in crafting the budget blueprint was to not add to the deficit further, so that every new dollar of new spending is accounted for by a cut elsewhere. One of the victims of the coming cuts? Big Bird. Mulvaney said the administration proposing phasing out funding for the Corporation for Public Broadcasting altogether over time. ""We propose ending funding but technically what you'll see ... some amount of money that's necessary for us to unwind our involvement with the CPB,""?Mulvaney said. ""there won't be a zero next to it, but the policy is that we are ending involvement with the Corporation for Public broadcasting.""?,-1""", -2522,2017/3/16,http://abcnews.go.com/US/wireStory/kansas-waterslide-death-spurs-push-inspection-rules-46159624,Kansas waterslide death spurs push for new inspection rules,,"A state lawmaker is seeking to strengthen regulations for amusement parks in Kansas after a colleague's 10-year-old son was killed last year on a water slide dubbed the world's tallest. Rep. John Barker's bill would require the insurance companies representing the parks to hire a certified engineer to inspect the rides. Under current Kansas law, the parks themselves can choose the inspectors, who don't necessarily have to be engineers. Caleb Schwab, the son of Olathe Republican Rep. Scott Schwab, was killed Aug. 7 aboard the ""Verruckt"" waterslide at the Schlitterbahn Water Park in Kansas City, Kansas. The family reached an undisclosed settlement in January with the owners of the park and the manufacturer of the raft that carried Caleb on the ride. The slide had passed private inspections permissible under state law earlier in the summer. Barker, chairman of the House Federal and State Affairs Committee, acknowledged Wednesday that he couldn't be sure whether his proposal would have saved the boy's life. ""Accidents are accidents, but you need to take all care and due diligence as possible, and that's what the operators need to do,"" said Barker, an Abilene Republican. Kansas didn't have any inspection requirement until 2009 when Schlitterbahn opened. The committee's report says a Schlitterbahn lobbyist saw ""no problem"" with the requirement but that the company that operates Schlitterbahn would prefer a ""Disney exception"" for large parks that would allow companies to inspect them in conjunction with the state. Schlitterbahn spokeswoman Winter Prosopio said the lobbyist, Mike Hutfles, was just answering a question about how the park operates and didn't ask for any exemptions from oversight laws. The minutes of an October 2007 meeting say Hutfles mentioned the exception the company operated under in Texas. Prosopio said the company had not yet had time to carefully review the bill. ""We support anything that increases safety on all rides,"" she said. Colleen Mangone, a spokeswoman for the International Association of Amusement Parks and Attractions, said in a statement that the organization is still reviewing the bill but that it applauded efforts to ""enact effective regulation of amusement ride safety."" She said that's the industry's top priority. Attorneys for the Schwab family and two women injured on the ride with Caleb could not be reached for comment. The ride has been closed and will be torn down when an investigation is completed. Barker said the committee would hold hearings on the bill March 23-24.", -2523,2017/3/15,http://abcnews.go.com/International/high-profile-twitter-accounts-hacked-spat-holland-turkey/story?id=46147719,High-profile Twitter accounts hacked over spat between Holland and Turkey,,"Hundreds of Twitter accounts were hacked early Wednesday morning as part of an apparent pro-Turkey social media operation that was used to spread messages deriding the German and Dutch governments in Turkish, according to statements from owners of several of the accounts and Twitter. The Associated Press reported the number of hacked accounts was well into the hundreds. The attackers used the hashtags #Nazialmanya or #Nazihollanda and broke into the accounts of several high profile users including CEOs, publishers, government agencies, and politicians. Many of the hacked accounts were vandalized with images of swastikas and had their cover and profile photos changed. Some of the accounts that fell victim to the hackers included Forbes, Amnesty International, UNICEF USA, Nike Spain, Ohio Rep. Jim Renacci, the European Parliament and the Atlanta Police Department. A Twitter spokesperson responded to a request for comment by ABC News by forwarding a statement that noted that the issue was created by a ""third party app"" and that the company had already removed its permissions. ""We are aware of an issue affecting a number of account holders. Our teams worked at pace and took direct action. We quickly located the source which was limited to a third party app. We removed its permissions immediately. No additional accounts are impacted,"" the statement said. A press officer for Amnesty USA confirmed to ABC News that the @amnesty account had been breached and that the unidentified hackers appeared to have targeted a third-party Twitter analytics service called Twitter Counter. In a series of tweets, Twitter Counter confirmed that its service had been hacked and that its application had been blocked. In an article posted to its website today, Forbes described how its Twitter account had been vandalized. ""Forbes' had its Twitter profile image changed to a Turkish flag, while tweets were published containing a video of president Recep Erdogan giving a speech at the World Economic Forum, and the hashtags ""NaziGermany"" and ""NaziHolland,"" indicating the hackers were highlighting an ongoing feud between Erdogan and EU nations,"" the article stated. The hackers have not been identified and it is not known if they have any ties to the Turkish government. A rhetorical battle has been brewing between Turkey and the Dutch and German governments in recent weeks. Turkish President Tayyip Erdogan has accused those governments of using Nazi tactics and called the government of the Netherlands ""Nazi remnants"" after permission was withdrawn for his Foreign Minister to land there. Merkel, Germany's Chancellor, rejected Erdogan's claims and said that the Turkish president was guilty of ""[trivializing] suffering."" ""These comparisons are completely misguided. They trivialize the suffering. Particularly in the Netherlands that endured so much agony through the National Socialists, it's just completely unacceptable. That's why the Netherlands can count on my complete support and solidarity on this,"" Merkel said earlier this month. The Dutch vote today in a parliamentary election that is seen as a test of anti-immigrant and populist sentiment. Lawmaker Geert Wilders, an anti-Islamic right wing populist, appears to be running a close race against incumbent Mark Rutte in the ballot for Prime Minister. ""The genie will not go back into the bottle. People feel misrepresented,"" Wilders said, regarding the growth of right-wing populism throughout the West. ""Despite what the elite wants, politicians are getting strong who have a totally different concept of what the people want them to do."" The Associated Press contributed to this report.", -2524,2017/3/16,http://abcnews.go.com/Politics/president-trump-news-reports-origin-unsubstantiated-wiretap-claim/story?id=46159665,President Trump says news reports were origin of unsubstantiated wiretap claim,,"In his first interview since his unsubstantiated claim that he was wiretapped by former President Obama, President Trump said the sources of information behind his tweets were primarily news reports. ""Well, I've been reading about things,""?Trump said in an interview with Fox News' Tucker Carlson that aired Wednesday night. Trump said among ""other things"" that he read about wiretapping was a New York Times article and a Fox News report. ""I said, wait a minute, there's a lot of wiretapping being talked about,"" Trump said. ""I've been seeing a lot of things.""?But the examples put forward by Trump don't appear to back up his claim that President Obama ordered a wiretap of Trump Tower. The New York Times article he is referencing never claimed Obama ordered a wiretap of Trump Tower and Fox News never independently reported the story. The president said that while he didn""t want to discuss it, the White House ""will be submitting things before the committee very soon that hasn't been submitted as of yet.""? Rep. Devin Nunes, Chairman of the House Intelligence Committee, said earlier Wednesday that he didn't think ""there was an actual tap of Trump Tower."" Trump raised the possibility that he would speak about his claim in the next week, perhaps before the committee goes public with any findings. ""I mean, let's see whether or not I prove it,""?Trump said. ""But I think we have some very good stuff. And we're in the process of putting it together, and I think it's going to be very demonstrative.""? Sneak Peek: Pres. Trump on why he tweeted about wiretapping before producing evidence. Watch the full interview tonight at 9p ET. #Tucker pic.twitter.com/huE0geWuev Asked why he wouldn""t just approach the intelligence agencies to verify whether his claim is true, Trump said he didn""t ""want to do anything that's going to violate any strength of an agency.""?Trump repeated some of the clarifying comments made by his press secretary Sean Spicer, saying his tweets about wiretaps were ""in quotes""?and thus meant surveillance in a broader sense. ""And don't forget, when I say wiretapping, those words were in quotes,""?Trump said. ""that really covers, because wiretapping is pretty old fashioned stuff. But that really covers surveillance and many other things. And nobody ever talks about the fact that it was in quotes, but that's a very important thing.""?But only two of the four tweets by the president related to wiretapping included the phrase in quotes. The issue is sure to come up again soon, as FBI Director Comey is expected to be asked publicly about the veracity of Trump's claims when he testifies to the House Intelligence Committee next Monday.", -2525,2017/3/16,http://abcnews.go.com/Politics/president-trump-pivots-wiretapping-accusation-brushes-tax-leak/story?id=46153851,"President Trump pivots on wiretapping accusation, brushes aside tax leak",,"President Donald Trump seemed to pivot away Wednesday from his accusations that former President Barack Obama wiretapped his phones at Trump Tower, the same day that congressional leaders said there was ""no basis"" for the claims. ""'Wiretap' covers a lot of different things,"" said Trump in an interview with Fox News' Tucker Carlson that will air Wednesday evening. ""I think you'r going to find some very interesting items coming to the forefront over the next two weeks.""?The president's comments come as Reps. Devin Nunes, R-California, and Adam Schiff, D-California, the chairman and ranking member of the House Intelligence Committee, announced that they were provided no evidence to support the allegation. Both Nunes and Schiff agreed that Trump was likely incorrect if one were to take his claims literally, but Nunes acknowledged the ""concern that the president has about other people, other surveillance activities looking at him or his associates."" Trump also offered his first reaction to the leaked portion of his 2005 tax returns in the interview with Carlson, calling the report ""illegal"" and ""a disgrace."" ""I have no idea where they got it,"" said Trump. ""But it's illegal and they'r not supposed to have it and it's not supposed to be leaked."" Independent journalist David Cay Johnston obtained the purported first two pages of the return and made them public Tuesday night, showing Trump paid $38 million in federal taxes on income of more than $150 million in 2005. ""It's certainly not an embarrassing tax return at all,"" Trump said. ""But it's an illegal thing; they're been doing it, they're done it before and I think it's a disgrace."" Trump is referring to a previous leak of a portion of his 1995 tax returns provided to The New York Times showing that Trump took a $916 million loss that ""would have been large enough to wipe out more than $50 million a year in taxable income over 18 years.""?However, the portion of the 2005 returns revealed Trump did, in fact, pay an effective tax rate of 25 percent that year. Trump has repeatedly declined to release his tax returns since he began his candidacy in June of 2015, claiming he would when they are no longer ""under audit."" He is the first president since Richard Nixon to refuse to release his full income tax returns. The White House has not yet specified whether his 2005 returns fall into the category of being under audit and hasn't said whether it will now release the full returns now that the initial portion has been revealed. ", -2526,2017/3/16,http://abcnews.go.com/US/video-shows-passerby-shooting-florida-deputys-attacker/story?id=46143376,Video shows passerby shooting Florida deputy's attacker,,"Video recently released by Florida authorities shows the moment a passerby fatally shot a man attacking a Florida deputy in a November incident. On Nov. 14, Lee County Sheriff's Deputy Dean Bardes was being attacked by 53-year-old Edward Strother when the deputy pleaded for the help of a witness, who shot and killed the suspect, according to a Lee County Sheriff's Office police report. Strother was punching Bardes and reaching for his firearm, said Florida Chief Assistant State Attorney Amira Fox. Bardes had been assisting two Florida Highway Patrol troopers with a traffic crash on I-75 when he observed a gray Toyota Camry driving by at a ""high rate of speed,"" according to the police report. When Bardes attempted to conduct a traffic stop on the car, the driver stopped in the roadway and pointed a gun toward Bardes before continuing southbound, the police report states. Strother attacked Bardes after he eventually came to a stop on an off-ramp of I-75. Witness Ashad Russell saw the suspect jump ""over the driver's door"" of Bardes' patrol car before he ""landed on top of him"" and began ""beating"" him violently, Russell told police, the report states. The deputy called out to Russell to ""please shoot him"" as he protected his gun from Strother's reach, according to the police report. Russell gave ""numerous commands"" for Strother to get off of Bardes, the report states. Fearing for Bardes' life, Russell, who was in possession of a concealed weapon, ""fired three rounds, striking the suspect,"" the report states. According to one witness, Strother told Russell, ""you better kill me"" after he was shot a second time, the state attorney's office confirmed to ABC News. The third shot -- to Strother's neck -- was presumed to be the fatal shot, the state attorney's office said. After the shooting, Russell, who advised that he was in shock, dropped his gun to the ground and waited in his vehicle for law enforcement to arrive, the report states. Russell, who had a concealed weapons permit, was not charged in Strother's death due to Florida's ""stand your ground"" law, according to the state attorney's office. Bardes only suffered superficial wounds from the encounter. In a statement released by his attorney, Russell clarified that he is ""not a law enforcement officer"" and is ""simply a member of the Southwest Florida community."" ""Mr. Russell, along with many others, witnessed a man violently remove Deputy Bardes from his marked patrol car and attack him,"" the statement reads. ""Despite multiple commands from Deputy Bardes and Mr. Russell to stop, this man did not, and Mr. Russell intervened."" Witnesses sitting in their car on I-75 in Fort Myers recorded the deadly encounter on cellphone video. The footage begins with an image of Russell pointing his gun at Strother, who was sitting on top of Bardes in the middle of the road. After Russell fires the gun, Strother can be seen lying immobile in the street. At the time, a warrant was out for Strother's arrest after he missed a pretrial hearing on Nov. 8, stemming from an incident in which he allegedly attacked a hospital security guard, according to the state attorney's office. Neighbors had recently noticed Strother acting ""bizarre"" and ""impaired,"" the state attorney's office said. His strange behavior included ""yelling ... and singing,"" according to the state attorney's office. Strother's family said he suffered from mental breaks and severe depression, the state attorney's office said. Two days after the incident, Lee County Sheriff Mike Scott wrote on Facebook that ""two heroes met on I-75"" that day. ""While they had never met before, one would save the [other's] life,"" Scott wrote, thanking Russell for his actions. The Lee County Sheriff's Office did not immediately respond to ABC News' request for comment. ABC News' Michael Mendelsohn, Jason Volack and Doug Lantz contributed to this report.", -2527,2017/3/16,http://abcnews.go.com/US/colorado-state-student-boat-crew-member-missing-off/story?id=46142397,"Colorado State student, boat crew member missing off Florida coast after spring break trip",,"Authorities are combing the waters near St. Petersburg, Florida, for two men -- a Colorado State University student and a boat crew member -- who went missing Tuesday evening, officials said. The missing student was among 15 from Colorado who had taken a charter boat -- a 71-foot yacht -- during spring break, the Coast Guard said. The students booked a four-hour charter but the water was too rough for them venture out, so the captain anchored, Pinellas County Sheriff Bob Gualtieri said at a news conference this afternoon. Five students were swimming off the side of the boat while it was anchored, but only four were able to swim back to the boat, the Pinellas County Sheriff's Office said. The crew member jumped in the water to help the remaining student, and authorities believe the wind, waves and current kept the men from reaching the boat, according to the sheriff's office. Neither man wore a flotation device, the sheriff's office said. The incident happened at about 6 p.m. and the men have been missing since, the sheriff's office said. The Coast Guard identified the crew member as 27-year-old Andrew Dillman of New York, and the student as 21-year-old Jie Lou of China. They were last seen in the current being pulled into the Gulf of Mexico, Gualtieri said. The ongoing search is in the Pass-a-Grille Channel, which is near the Gulf of Mexico and Florida's St. Pete Beach. The Coast Guard is searching ""fervently"" today by air and sea, a spokesman told ABC News, and the sheriff said it's still possible they are alive. The boat captain told authorities that he told the students it was too rough to swim, the sheriff said, but students have told authorities that they weren't told not to swim. Authorities are trying to interview all the students, who remain in Florida today. The students are due to return to Colorado Thursday, the sheriff said. There was drinking on the boat but there is no indication that any crew member was intoxicated, the sheriff said. Lou is a senior business major studying finance and real estate, Colorado State University spokesman Mike Hooker said. Hooker said in a statement, ""Our hope and our thoughts go out to the family and friends of the two missing men as the search continues."" ""We hope for the safety of rescue crews as they continue the search, and we will work to offer whatever support we can to the students and families involved."" Lt. Jason Holstead, the command duty officer for the Coast Guard's Sector St. Petersburg, said, ""Our hearts go out to the family and friends of Andrew and Jie during this difficult time. We continue work closely with our partners to search for Andrew and Jie, all of us have them and their family in our thoughts and prayers.""", -2528,2017/3/16,http://www.cnn.com/2017/03/16/europe/netherlands-dutch-results/index.html,Dutch election: Europe's far-right populists fail first test,(CNN)Far-right populism has failed its first test in Europe this year after conservative party leader Geert Wilders came a distant second in the closely-watched Dutch election.,"Prime Minister Mark Rutte took to the stage in the Hague Wednesday night to claim victory, amid wild cheering and whistling from his jubilant supporters. ""This night is a night for the Netherlands -- after Brexit, after the American elections -- where we said stop it, stop it to the wrong kind of populism,"" he said. Voter turnout was 81%, according to state broadcaster NOS, the highest in three decades. With 94% of the vote counted, Rutte's VVD party is projected to win 33 seats out of a total 150, ahead of Wilder's PVV party which won 20 seats, only one more than the mainstream Christian Democratic Appeal and D66 parties. Despite the celebrations, Rutte's party won eight fewer seats than in the 2012 vote, when it claimed 41. The election was widely seen as a test of populist right-wing sentiment in Europe, ahead of the French Presidential election in April and the German national vote in September. Wilders, who is staunchly against mass immigration and the European Union, made a defiant speech Wednesday night claiming he was ""part of the winners."" ""Rutte uses terrifying words when he says that the elections have put a halt to the wrong type of populist ... (He) has not got rid of me yet,"" he said. Relief in Europe During his speech to supporters, Rutte said many European leaders had already called to congratulate him on his victory. French President Francois Hollande issued a statement Thursday morning, calling it a ""clear victory against extremism."" ""The values of openness, respect for others, and a faith in Europe's future are the only true response to the nationalist impulses and isolationism that are shaking the world,"" he said. France's Foreign Minister Jean-Marc Ayrault posted on Twitter: ""Congratulations to the Dutch for preventing the rise of the far right,"" he said. ""Willing to work towards a stronger Europe."" Germany's foreign ministry said, ""Large majority of Dutch voters have rejected anti-European policies... That's good news. We need you for a strong Europe!"" Italy's Foreign Minister Paolo Gentilioni tweeted that the ""anti-EU right"" had lost in the Netherlands. ""All together for change and revive the (European) Union."" There was no response Wednesday evening from Wilders' anti-EU allies across the continent, including right-wing French Presidential candidate Marine Le Pen, who is polling strongly ahead of the first round of voting on April 23. 'European spring' will come: Wilders The result is a blow for Wilders, who had been leading polls for much of 2016. The far-right politician was considered to have ridden the same wave of anti-establishment fervor that saw UK voters opt to leave the European Union, and the election of US President Donald Trump. A controversial figure, Wilders ran on a ""de-Islamification"" platform, calling for Islamic schools to be closed and the Quran and burqa to be banned. Speaking after the election loss, Wilders said he was still expecting to see a ""European spring"" for his supporters. RELATED: Geert Wilders -- Why voters are flocking to the Dutch Trump ""I think our influence has been enormous ... Our patriotic spring will continue, will really start. And if they need me or if they need the PVV for talks (on a coalition) then I am happy to take part,"" he said. ""If not, then they haven't seen the back of me yet."" Netherlands 'deeply divided' Andre Krouwel, political scientist at the Free University Amsterdam, and owner of election website Kieskompas, said the only conclusion from the election result was the Dutch were ""deeply divided."" ""It's very difficult to interpret this election result other than this is a very polarized result, people have abandoned the centrist parties but they have also abandoned the left-wing project ... the left together has 37 seats in the 150-seat parliament,"" he said. Krouwel also said Wilders, despite his slight gain of seats, now faced being almost powerless in the new political environment. ""The very vocal minority ... dominated the elections and everybody focused on Wilders. But in the end he's totally impotent to do anything. Nobody wants to coalition with him,"" he said. The election came as tensions between Netherlands and Turkey reached new heights, over the Dutch governments refusal to allow Turkish ministers to address political rallies inside their borders. Krouwel said the war of words between Turkish President Recep Tayyip Erdogan and the Dutch government in the past month may have boosted support for Rutte as well. Coalition talks to begin The Netherlands has a complicated political landscape. More than 28 parties took part in the vote and, with no party winning a majority of seats, a multi-party governing coalition will have to be formed. Final results are not expected to be known until possibly Friday, the head of the ANP election service Mark Westerhoff said. There are 22 of 388 municipalities left to report. When the results are official, Rutte will begin negotiations to form government. Other potential coalition partners include the GroenLinks (Green left) Party and the Socialist Party, which according to initial results are poised to win 14 seats each. Support for the PVDA (Labour) party, which had been Rutte's previous partner in government, plunged from 38 seats to just nine. In his victory speech, Rutte appeared ready to negotiate. ""Now in the next couple of weeks and months it is important to unite the country, we have to make sure that we form a stable government so that the country for the next four years can be governed wisely,"" he said.", -2529,2017/3/16,http://www.cnn.com/2017/03/16/china/asia-military-balance-china-koreas-japan-us/index.html,North Asia on a knife's edge: Whose position is strongest?,Hong Kong (CNN)US Secretary of State Rex Tillerson begins a series of meetings in Asia this week with the region in a military turmoil.,"North Korean missiles streaking toward Japan. US anti-missile batteries arriving in South Korea. China's foreign minister fearing a massive military confrontation is about to happen. China's state news agency openly speculating Asia is on the verge of a nuclear arms race, the likes of which has not been seen since the Cold War. Each one of these things alone would be enough to destabilize the status quo. Taken together, they have placed tensions in North Asia on a knife's edge. Should they tip over, who would come out on top? What are the strengths and weakness of the forces that would fight a North Asian war. -China: Big on numbers, short on experience With almost 3 million people in its military, the People's Republic of China has the world's largest fighting force in terms of sheer manpower, but most of that won't come into play in any Pacific conflict. And analysts say manpower plays into one of China's biggest weakness: The collective lack of combat experience in those forces. China has not fought a conflict since a border war with Vietnam in 1979; the US military, their most likely adversary, has been involved numerous conflicts over those 38 years. ""The US and its allies still have a significant edge for now in combat experience and logistical operations,"" Corey Wallace, a security analyst at Freie University in Berlin, said in an email to CNN. ""The longer any conflict goes on, the greater the advantage for US and its allies."" China would also be hampered by its relative isolation, lacking allies and a network of bases in the region, Wallace said. ""It does restrain its ability to project power,"" Wallace said. The Chinese navy also has only one active aircraft carrier, the Liaoning, which China bought from Ukraine in 1998, then rebuilt and commissioned in 2012 as a training vessel. In contrast, the US Navy has 10 aircraft carriers in its fleet, including one, the USS Ronald Reagan, based in Japan. China's main strength lies in its extensive missile program, which features missiles that could hit US air bases in Japan and Guam, experts say. If the US air bases can be taken out, the US' technologically superior F-35 and F-22 stealth fighters, and its B-1 and B-52 heavy bombers would be low on options to rearm and refuel. A 2016 report from the U.S.-China Economic and Security Review Commission said China's DF-26 intermediate-range ballistic missile -- dubbed by analysts the ""Guam killer"" -- allows China to bring unprecedented firepower to bear on Guam, home to the US' vital Andersen Air Force Base. China also boasts newly developed air-launched, land-attack cruise missiles which can be fired by its fleet of 36 H-6K long-range bombers. US military's crescent of technology In any Western Pacific conflict, the US military possesses a network of bases where it can position fighting machines technologically superior to what any potential adversary can offer. Those US and allied bases stretch from Misawa Air Base in the north of Japan to installations in Singapore regularly used by US forces. And the US has been positioning some of its newest and most sophisticated weapons at those bases -- F-35 stealth fighters, Advanced Hawkeye radar aircraft and Aegis warships in Japan, a littoral combat ship with helicopter drones in Singapore, F-22 stealth fighters in Australia. The sheer breadth of it makes it hard to defeat. ""Their positioning is such that a simple attack on Japan will not be enough to permanently destabilize the US operating capacity in the region,"" Wallace said. ""Neutralizing all of these installations will also require picking a lot more fights with a lot more actors."" That crescent of technology also makes any imminent US conflict with China unlikely, Wayne Mapp, a former New Zealand defense minister, told CNN. -""It's way too early for them to really test US power,"" Mapp said of Beijing. ""No part of the Chinese military is equal to the US military."" -That said, the US does have its vulnerabilities. One of the biggest could be its reliance on aerial refueling and intelligence and surveillance aircraft, analysts say. Long-range air-to-air missiles fired from jets such as China's new J-20 stealth fighter could knock down unarmed US support jets like KC-135 tankers and E-3A AWACS radar planes. ""Long-range air intercept weapons""�— coupled with the right fighter""�— could cut the sinews that allow the United States to conduct sustained air operations,"" defense editor Dave Majumdar wrote on The National Interest late last year. Some analysts say the US Navy's aircraft carriers could be a vulnerability as they present large targets and a hit on one could provide a large boost to any adversary's morale. But Wallace, the security expert, disagrees, saying the US has decades of experience on how to use and protect them. ""I'm not convinced they are the sitting ducks many regard them to be -- especially compared to fixed bases,"" he said. Strikes on those fixed bases could result in devastating casualties to the US military. According to the International Institute for Strategic Studies, the US has more than 47,000 troops stationed in Japan, more than 28,000 in South Korea, 5,000 in Guam and hundreds of other scattered among Pacific allies such as Singapore and Australia. North Korea keeps everyone guessing What makes Pyongyang strong? Two things: Kim Jong Un has nuclear capability and no adversary can be sure if he'll use it. Pyongyang says it successfully tested a nuclear warhead last year. This year missiles it tested fell just 200 miles from the Japanese coast. -That has kept leaders in Washington, Tokyo and Seoul guessing as to what Kim will do next, and wary of any pre-emptive strike. -""It does make them immune to invasion,"" Mapp, the former New Zealand defense minister, says. The rouge state does have another key advantage -- the South Korean capital of Seoul is only 35 miles from the border with the North, putting 25 million people there within range of North Korean artillery and rockets and the lead elements of Pyongyang's military of 1.2 million members, just 100,000 shy of the entire size of the US military. North Korea also has a sizeable tank force of up to 4,200, according to some estimates, but none are believed to be a match for South Korean tanks, which while they number roughly half of the North Korean force, are decades ahead in technology. Pyongyang's primary disadvantage comes immediately after any first strike. The country is resource poor and in no position to engage in sustained combat with the US, South Korean and possibly Japanese militaries. North Korea has also put itself in a difficult position with long-time ally China. Beijing has called on Pyongyang to stop the weapons tests which have ratcheted up tensions in East Asia. The injection of the US' THAAD anti-missile system into South Korea in response to Pyongyang's missile tests has angered Beijing, which sees THAAD as damaging its overall security interests. ""(China) may have tolerated a lot from (North Korea) to ensure stability on its borders and a buffer between itself and US forces,"" said Wallace. ""If the DPRK [Democratic People's Republic of North Korea] is seen to be working against Chinese security interests, as it arguably is right now, then it might change these calculations."" - South Korea's ability to focus Seoul has been facing a hostile North Korea since the Korean War armistice in 1953. That, said Mapp, is a key strength, one which has enabled Seoul to develop a formidable military focused on only one thing: not attacking someone else, but protecting themselves. The International Institute for Strategic Studies points out that Seoul has procured or will get advanced weaponry; these include cruise missiles for its F-15 fighters, a fleet of F-35 stealth fighters, new submarines and more Sejong the Great-class guided-missile destroyers, already considered among the world's most-advanced warships. In fact, the number of South Korea large surface ships -- frigates and destroyers -- outnumbers North Korea's fleet 23 to 3, according to globalfirepower.com. That's a lot of firepower that would be directed at North Korea, but experts say Seoul doesn't have to worry about anything else because those worries are Washington's. ""South Korea's strength is the United States. They (South Korea) really don't do anything else; they only have to worry about"" North Korea, Mapp said. But Wallace says it's another alliance that may prove to be a South Korean vulnerability in the event of conflict. South Korea doesn't ""play nice with Japan on a variety of military and intelligence issues,"" he says. Evidence of that may be in the Aegis missile defense system, deployed on South Korean and Japanese warships. South Korean Aegis ships cannot share timely missile intercept information with their Japanese counterparts because Seoul and Tokyo can't agree on a data encryption system that works between them, said Carl Schuster, a Hawaii Pacific University professor and former director of operations at the US Pacific Command's Joint Intelligence Center. South Korea seems to be taking steps to address that issue, however. This week a South Korean Aegis destroyer was practicing missiles intercepts with Japanese and US destroyers equipped with the Aegis missile defense system. The trilateral tests were the third in a series aimed at boosting missile defense cooperation among the three allies, US Navy 7th Fleet spokesman Lt. Paul Newell said. - Japan can't punch back While South Korea needs to only concentrate on one adversary, Japan needs to focus on two, North Korea and China. North Korea's missiles that fell in waters off Japan last week brought new fears in Tokyo as to what might come next from the Kim regime. North Korea said the tests were carried out by the military unit tasked with taking on US military bases in Japan. And Japan and China have locked horns over the Senkaku Islands, the Tokyo-administered chain claimed by Beijing, which refers to them as the Diaoyu Islands. In regards to China, Wallace identifies Japan's anti-submarine warfare capabilities as key. ""Subsurface detection and reaction is a Japanese strength in both technological and operational terms, and a Chinese weakness, even if (China) quantitatively has a larger subsurface fleet,"" Wallace said. Japan's Soryu-class hunter-killer subs are a big part of that strength. Tokyo has 12 of the Soryu-class, the largest subs it has built since World War II, in service or on order, according to the International Institute for Strategic Studies. Analysts say the Soryus are stealthy and can operate effectively close to the seabed, giving them an advantage over a Chinese submarine fleet numbering around 70 vessels, according to experts. The Soryu-class subs become more formidable combined with Japan's helicopter carriers and sub-hunting aircraft and a surprisingly long history of using them, Wallace said, ""even helping the US keep the Soviet Pacific subsurface fleet bottled up in the North (Pacific) during the Cold War."" Japan's big weakness is its ability to project offensive firepower, analysts say. ""They can bomb anyone landing on one of Japan's main islands... but they can't strike Chinese or North Korean air bases or missile sites,"" Schuster says, pointing out that Japanese warplanes don't carry the equipment necessary to suppress enemy air defenses. -""They can defend but they can't punch back,"" he says.", -2530,2017/3/15,http://www.cnn.com/2017/03/15/politics/travel-ban-blocked/index.html,Federal judge blocks new travel ban, Trump calls it 'judicial overreach',"(CNN)A federal judge in Hawaii blocked President Donald Trump's new travel ban on Wednesday afternoon, hours before the ban was set to go into effect.","In a 43-page ruling, US District Court Judge Derrick Watson concluded in no uncertain terms that the new executive order failed to pass legal muster at this stage and the state had established ""a strong likelihood of success"" on their claims of religious discrimination. Trump decried the ruling during a rally Wednesday night in Nashville, introducing his statement as ""the bad, the sad news."" ""The order he blocked was a watered-down version of the first one,"" Trump said, as the crowd booed the news. ""This is, in the opinion of many, an unprecedented judicial overreach,"" he added, before pledging to take the issue to the Supreme Court if necessary. The practical effect of the ruling -- which applies nationwide -- is that travelers from six Muslim-majority countries and refugees will be able to travel to the US. Unlike the previous executive order, the new one removed Iraq from the list of banned countries, exempted those with green cards and visas and removed a provision that arguably prioritizes certain religious minorities. The new ban was announced earlier this month and was set to take effect Thursday. It would have banned people from Iran, Libya, Somalia, Sudan, Syria, and Yemen from entering the US for 90 days and all refugees for 120 days. ""The illogic of the Government's contentions is palpable. The notion that one can demonstrate animus toward any group of people only by targeting all of them at once is fundamentally flawed,"" Watson wrote. ""Equally flawed is the notion that the Executive Order cannot be found to have targeted Islam because it applies to all individuals in the six referenced countries,"" Watson added. ""It is undisputed, using the primary source upon which the Government itself relies, that these six countries have overwhelmingly Muslim populations that range from 90.7% to 99.8%."" ""It would therefore be no paradigmatic leap to conclude that targeting these countries likewise targets Islam,"" Watson added. ""Certainly, it would be inappropriate to conclude, as the Government does, that it does not."" ""When considered alongside the constitutional injuries and harms ... and the questionable evidence supporting the Government's national security motivations, the balance of equities and public interests justify granting the Plaintiffs' (request to block the new order),"" Watson wrote. The Justice Department said it will defend the new travel ban. ""The Department of Justice strongly disagrees with the federal district court's ruling, which is flawed both in reasoning and in scope. The President's Executive Order falls squarely within his lawful authority in seeking to protect our Nation's security, and the Department will continue to defend this Executive Order in the courts,"" DOJ said in a statement Wednesday night. Judge points to cable news comments After Trump initially blasted a federal judge in Seattle on Twitter for blocking the original travel ban, and several other federal courts halted its implementation last month, the White House went back to the drawing board for over a month and rewrote the ban -- hoping this one would survive legal scrutiny. Yet certain statements made by Trump's senior advisers have come back to bite the administration in court. In the ruling, Watson brought up specific statements made by the President and Stephen Miller, one of his top policy advisers and a reported architect of the original order, in cable news interviews. Trump made plain his opposition to Islam in an interview with CNN's Anderson Cooper last year, asserting: ""I think Islam hates us."" Cooper asked then-candidate Trump in the interview to clarify if he meant Islam as a whole or just ""radical Islam,"" to which Trump replied, ""It's very hard to separate. Because you don't know who's who."" The judge cited this interview as an example of the ""religious animus"" behind the executive order and quoted Trump telling Cooper: ""We can't allow people coming into this country who have this hatred of the United States."" Likewise, the decision cited an interview Miller had on Fox News following the legal struggles of the first executive order last month, which the legal opponents of the ban have emphasized repeatedly. In a February interview, Miller downplayed any major differences the new executive order would have from the first and said it would be ""responsive to the judicial ruling"" holding it up and have ""mostly minor technical differences."" ""Fundamentally, you're still going to have the same basic policy outcome for the country,"" Miller added. ""These plainly-worded statements, made in the months leading up to and contemporaneous with the signing of the Executive Order, and, in many cases, made by the Executive himself, betray the Executive Order's stated secular purpose,"" Watson wrote. ""Any reasonable, objective observer would conclude, as does the court for purposes of the instant Motion for TRO, that the stated secular purpose of the Executive Order is, at the very least, 'secondary to a religious objective' of temporarily suspending the entry of Muslims,"" he added. Changes not enough, judge says While Watson signaled that this temporary freeze of the travel ban may not last forever, he nevertheless concluded that the changes made between the first and second versions of the travel ban weren't enough. ""Here, it is not the case that the Administration's past conduct must forever taint any effort by it to address the security concerns of the nation,"" he wrote. ""Based upon the current record available, however, the Court cannot find the actions taken during the interval between revoked Executive Order No. 13,769 and the new Executive Order to be 'genuine changes in constitutionally significant conditions.'"" Immigration advocates applauded the ruling immediately. ""The Constitution has once again put the brakes on President Trump's disgraceful and discriminatory ban. We are pleased but not surprised by this latest development and will continue working to ensure the Muslim ban never takes effect,"" said ACLU attorney Omar Jadwat, who argued for the case for the challengers in Maryland federal court earlier on Wednesday. The Justice Department has yet to indicate its next legal steps. Federal judges in several states, including Maryland and Washington state, are also in the process of evaluating challenges to the new travel ban, but may defer ruling in light of the nationwide ruling in Hawaii." -2531,2017/3/16,http://www.cnn.com/2017/03/16/politics/derrick-watson-5-things-to-know/index.html,Hawaii judge who blocked travel ban: Who is Derrick Watson?,(CNN)A federal judge in Hawaii is making headlines after freezing President Donald Trump's revised ban on travelers from several Muslim-majority countries.,"In a 43-page ruling, US District Court Judge Derrick Watson issued a scathing rebuke just hours before Trump's revised travel ban was to go into effect Thursday. ""The illogic of the Government's contentions is palpable,"" he said of the ban, which would have temporarily barred travelers from six Muslim countries from entering the United States. Watson's ruling came after he heard Hawaii's case against the revised ban. The revised ban replaced the one Trump signed in January that was stopped by another federal judge. Here are five things to know about Watson: He was Obama's nominee The former President nominated Watson five years ago to serve on the United States District Court for the District of Hawaii. At the time of his nomination, Obama issued a blanket statement describing him and six other nominees to US District Courts as qualified and ready to serve. ""These individuals have demonstrated the talent, expertise, and fair-mindedness Americans expect and deserve from their judicial system,"" Obama said at the time. The Senate unanimously confirmed Watson in a 94-to-0 vote. What you need to know about the travel ban He was born in Hawaii Watson was born in Honolulu, Hawaii. He graduated in 1991 from Harvard Law School. Prior to that, he attended Harvard College, graduating in 1988. He's made history When Watson was confirmed, he was the fourth person of Native Hawaiian descent to serve as an Article III judge in the United States, according to the Congressional Asian Pacific Americans Caucus. ""Today, Judge Watson made history. I am confident he will serve Hawaii with distinction and honor. He has dedicated his life to the pursuit of justice and fairness in our legal system,"" Congresswoman Tulsi Gabbard said at the time. Article III judges serve on the US Supreme Court, the federal courts of appeals and district courts. A timeline of President Trump's travel bans He was partner at a law firm When it comes to the law, Watson is no rookie. Before becoming a judge at the US District Court, Watson was an assistant United States attorney in the District of Hawaii and Northern District of California. Before that, he was partner at a San Francisco law firm, where he focused on product liability and environmental cost recovery litigation. He also served as a US Army Reserve captain. He's done pro bono work During his confirmation hearing questionnaire, Watson said he spent hundreds of hours representing pro bono clients when he served in private practice. ""Together with one of my partners, we supervised a team of attorneys and paralegals who brought human trafficking...and wage and hour claims on behalf of two Mexican nationals against a chain of Bay Area taquerias,"" he wrote. ""After extensive discovery, much of which was done in Spanish, we recovered significant sums for both plaintiffs and their families."" He also said he's worked on landlord/tenant cases, and partnered with a civil rights group to challenge a high school district's electoral system that prevented the election of a Hispanic member.", -2532,2017/3/15,http://www.cnn.com/2017/03/15/asia/raja-ampat-ship-coral-reef/index.html,"Ship crashes into 'pristine' coral reef, captain may be charged","(CNN)The captain of a cruise ship could be charged after his boat rammed into a pristine coral reef, Indonesian authorities said Wednesday.","The 297-foot (90.6 meter) MS Caledonian Sky crashed into the reefs at Raja Ampat on March 4. Raja Ampat is frequently included on lists of the the world's most beautiful coral reefs and is often described as an ""untouched"" beach paradise. ""The destruction of Raja Ampat coral reefs, which were developed by nature for hundreds of years, was done in less than one day by Caledonian Sky and its captain,"" Djoko Hartoyo, of the Information and Law Bureau of the Coordinating Ministry for Maritime Affairs, said in a statement. ""It is simply impossible to restore that part of Raja Ampat. Fish that were normally seen in that particular area were all gone."" Nearly 140,000 square feet (more than 13,000 square meters) of reef were destroyed, Ketut Putra, the vice president of Conservation International Indonesia, told CNN. The ship crashed into one of the best diving areas, he said. Noble Caledonia, the cruise company that operates the vessel, apologized for the incident. It said in a statement that the ship went aground, but did not give a reason why. ""We are working with local experts to understand how we can assist with the regeneration of the reef. We value our relationships around the world with local people and we are sorry to have impacted the local community,"" the statement said. The company said it will establish a fund to help the local economy and help pay for repairs. But residents are outraged. ""The damage done to the reef is not only a disaster from an environmental point of view, but also due to the fact that the livelihoods of local communities depend upon healthy reefs,"" Doug Meikle, who runs a website supporting the work of the local Papuan community's tourist accommodation association, told CNN in an email. ""It's quite remarkable that the ship was so close."" Ruben Sauyai, who owns the nearby Koranu Fyak Bungalows and is the president of the professional divers association in Raja Ampat told CNN he was about 200 feet away with some divers when the incident happened. ""You could hear it crush the reef,"" he said. Meikle believes there's a strong case to ban ships like this from the area. ""Quite apart from the risk of accidents, just anchoring such ships does incredible damage to reefs."" Criminal charges coming? Though insurance could pay for some of the environmental damage, Indonesian authorities said they believe the captain committed a crime and could face prison time if convicted. ""Insurance company may be willing to pay the environmental damage, but it does not absolve criminal side of the case,"" authorities said. The company described the master on duty at the time of the crash as ""one of the world's leading expedition captains"" and said he had many years of experience. A symptom of a larger problem The crash could affect the local tourism industry and the economy. Putra told CNN the damaged reef won't attract as many tourists, and the number of fish in the area will be reduced because of their damaged habitat. ""I'm actually worried,"" he said. Cruise ships themselves are a source of dangerous pollutants that threat coral reefs -- especially in Southeast Asia, according to the industry website Marine Insight. The ships ""are often found flushing their enormous amount of sewage and food waste and oily bilge water as a suspension of insoluble particles, into the ocean."" A 2016 study in the journal Nature found that the shipping industry also produced a significant amount of carbon dioxide in Asia. But coral reefs from around the globe remain under threat from environmental problems as well. The Great Barrier Reef suffered its most devastating die-off on record last year, according to a report from the ARC Centre of Excellence for Coral Reef Studies. The report linked the rise in destructive bleaching events to warmer water temperatures.", -2533,2017/3/16,http://www.cnn.com/2017/03/16/asia/asia-top-universities-singapore/index.html,Singapore holds off competition from China to scoop Asia's top university title,"(CNN)Asia's best colleges were announced Thursday and for the second year in a row, Singapore has emerged top of the table.","The National University of Singapore (NUS) was announced as the best college in Asia in the Times Higher Education supplement, beating out stiff competition from China, which otherwise dominated the top three. Phil Baty, the editor of the Times Higher Education Rankings, said the university had established itself as a role model for the continent, adding that in his view ""Asian universities can legitimately challenge the traditional Western elites of the US and the UK."" The influential London-based guide to further education assesses universities on 13 performance indicators, including research performance and teaching environment. Peking University came in second and Tsinghua University third -- both are located in the Chinese capital Beijing. While there was little movement in the top five institutions -- Singapore's Nanyang Technological University and the University of Hong Kong came in fourth and fifth respectively -- there were some major movements elsewhere on the table. Good effort India more than doubled its representation on the influential list, from 16 institutions to 33, and Pakistan more than tripled its presence from two to seven. For the first year, Japan was the most-represented nation: 69 of the universities were Japanese, nearly one quarter of the 300-strong ranking. Thailand was the most represented country from Southeast Asia, with 10 universities ranked. But the researchers said that of all the emerging university nations Malaysia was showing the greatest potential. In its first showing on the list, Malaysia's University of Malaya took a top-60 position. The university said it had increased international enrollment and was now running programs in English to accommodate for this shift. However, Mohd Amin Jalaludin, vice-chancellor of the University of Malaya, told the Times he thought ""there should be distinctions between what smaller countries such as Malaysia could achieve compared with giants such as China."" Star student This is the second recent victory for Singapore in the educational sphere. In December, the Program International Student Assessment (PISA) survey found that Singaporean teens were the best in the world when it came to math, science and reading. In all three subjects, Singapore students demonstrated knowledge and skills equivalent to almost two additional years of schooling compared to students in the US, France and Sweden. RELATED: What Asian schools can teach the rest of the world You can read the full list here.", -2534,2017/3/15,http://www.cnn.com/2017/03/15/asia/kim-jong-nam-dna/index.html,"Child's DNA used to identify Kim Jong Nam's body, police say","Kuala Lumpur, Malaysia (CNN)The body of Kim Jong Nam, the estranged half brother of North Korean leader Kim Jong Un slain last month, was identified using a DNA sample from one of his children, Malaysian authorities said Wednesday.","Kim Jong Nam was killed February 13 in what Malaysian Prime Minister Najib Razak has called an assassination attempt. Kim was at Kuala Lumpur International Airport on his way to Macau when two women wiped his face with the highly lethal VX nerve agent, killing him in 20 minutes, Malaysian police said. Both South Korea and Malaysia accuse Pyongyang of killing Kim. North Korea strongly denies the allegation. Malaysian authorities didn't publicly identify Kim's body until last week after obtaining a DNA sample ""from the child of the deceased,"" Malaysian Deputy Prime Minister Ahmad Zahid Hamidi said Wednesday. He declined to elaborate on how the DNA sample was obtained. Kim's family is believed to be in hiding. His son Kim Han Sol emerged publicly for the first time after his father's death last week in a 40-second video posted online by a group called Cheollima Civil Defense. It's not clear when the video was shot, but a South Korean National Intelligence Service spokesman verified the son's identity to CNN. The row over the body The decision to hold Kim Jong Nam's body -- and conduct an autopsy -- angered the North Koreans. They wanted the body and said Malaysia should hand it over because he was a North Korean national. But Malaysian authorities would only release it if a DNA match was provided. This diplomatic row culminated in both countries issuing dual travel bans -- Malaysians were prohibited from leaving North Korea and North Koreans couldn't travel out of Malaysia. Nine Malaysians are in North Korea. It's not clear how many North Koreans are in Malaysia, but police believe three people wanted for questioning in Kim's killing are holed up in the North Korean Embassy in Kuala Lumpur. There are four suspects at large, believed to be back in North Korea, and two people in custody regarding the case. Siti Aisyah of Indonesia and Doan Thi Huong of Vietnam have both been charged with murder and face the death penalty if convicted. Authorities from both countries have said the women believed they were participating in a prank TV show, but Malaysian authorities do not believe that's true.", -2535,2017/3/16,http://www.cnn.com/2017/03/16/africa/nigeria-trade-minister/index.html,Trade Minister: How Nigeria can kick oil habit and become a global player,"(CNN)""Never waste a good crisis"" is a motto for Dr. Okechukwu ""Okey"" Enelamah, the Nigerian minister of industry, trade and investment.","Right now, he has plenty to work with. One of the largest economies in Africa is shrinking. Collapsing oil revenue has plunged Nigeria into a full-year recession for the first time since 1991, and caused a damaging foreign currency shortage. Storm clouds are gathering over crucial trade and development relationships with Britain and the US, as the former contemplates an uncertain future outside the European Union, and the latter signals a shift to ""America First"" protectionism under President Donald Trump. Enelamah, an experienced private sector banker, only entered government in November 2015. But the new minister believes he can chart a course through the turbulent waters, and discussed his plans with CNN in London. Britain and the Commonwealth Enelamah was in London for the inaugural Commonwealth Trade Minister's Meeting, a gathering of officials from the former British colonies that make up the Commonwealth. The host nation is keen to forge new trade alliances as it retreats from Europe. The 52 Commonwealth states -- representing a combined population of more than two billion people - offer an attractive alternative. Critics have attacked the event as an exercise in colonial nostalgia, branding it ""Empire 2.0."" But Enelamah is satisfied that Britain is not seeking a new era of exploitation, and sees opportunities for Nigeria in deeper partnership with the UK. ""My experience so far with Britain and (Trade Secretary) Dr. Liam Fox has been very equal and collaborative -- I don't sense an imperial mindset,"" he says. ""Any agreement would have to be a 21st century agreement, accounting for where countries are today, not where they were 100 years ago."" Enelamah hopes Britain will support advanced industrialization in Nigeria, so the country can move further up the manufacturing value chain and away from relying on the export of raw materials - predominantly oil. He also believes British expertise can improve quality control for Nigerian exports, which would improve access to markets. Trump and the US The minister is warier about relations with the US. He has followed the progress of the new administration with some concern, particularly as Nigerian nationals were denied entry to the US. ""We hope this is resolved in a responsible way or there will be negative effects,"" he says. But Enelamah points to a reassuring statement from the US embassy in Nigeria, and a friendly call between President Trump and Nigerian Premier Muhammadu Buhari, as cause for optimism. ""We both understand and acknowledge the strategic importance of our countries to each other,"" he says. ""We intend to do more not less with the US."" At a time of growing instability, the minister emphasizes the value of cultivating a wide range of alliances. Should the US retreat from commitments such as a major investment in the energy sector, Nigeria could lean more heavily on its burgeoning relationship with China, which underpins much of the state's infrastructure development. Closer union Nigeria's most important partners could yet be on its doorstep. Intra-African trade accounts for just 15% of the continent's total trade, according to the United Nations Economic and Social Council, whereas the figure for Europe and North America is over 60%. ""It's not where it needs to be,"" admits Enelamah. ""We believe there is a lot of scope and opportunity to do more in Africa."" Nigeria recently signed the Trade Facilitation Agreement, reducing barriers to international commerce, and is pushing for a free trade agreement between all 54 African states. The African Union mandated trade ministers to create a framework deal by 2017. Several rounds of negotiation have been completed. Enelamah is confident the historic accord can be reached, and believes it will deliver political as well as economic rewards. ""We want to optimize relations among us and trade is a major force for optimizing relations between nations,"" he says. After oil As Nigeria pursues international trade and partnerships, there is an urgent need to move beyond its longstanding reliance on oil, which still accounts for the vast majority of export revenue. Enelamah believes the oil price crash could be a blessing in disguise for Nigeria. ""Necessity is the mother of invention,"" he says. ""Given the very negative consequences of the drop in oil and commodity prices...we must make good on our commitment to diversify the economy."" To fulfill this ambition, the government recently launched its ""Economic recovery and growth plan,"" which aims to deliver 7% annual growth and 15 million new jobs by 2020. The plan includes strategies to develop manufacturing in the food and agriculture sector, new energy projects, and advanced industrialization with a focus on small and medium-sized enterprizes (SMEs). ""It's about going back to basics, to where we have a comparative or natural advantage,"" says Enelamah. ""Nigeria is in the right place for agriculture and it is natural to continue investment into the industrial agriculture value chain."" High yield offshoots of oil are also a focus, such as fertilizers and petrochemicals, as well as textiles including cotton. Another priority is to improve the business climate and facilitate economic activity. Enelamah's ministry is overseeing the creation of Special Economic Zones with new incentives for business, and claims to have secured $1 billion investment from China. Currency crisis For a sustainable recovery, Nigeria must resolve its foreign exchange crisis. The high cost of Nigerian currency and falling oil prices have deterred foreign investment, and reserves are severely depleted. Economists are calling for a devaluation of the Naira, which the government has so far resisted, and Enelamah does not see that policy changing. ""If we create the right conditions foreign investors will come back in a big way,"" he says, pointing to healthy returns on diaspora remittances and Eurobond sales. ""People are interested in Nigeria, and the infrastructure projects we have can bring in investment. We must implement policies to create market confidence."" The minister does acknowledge mistakes. In 2016, Nigeria's Central Bank attempted to boost the flagging Naira through import controls on items including medicine, furniture and foodstuffs. Enelamah accepts this has created problems for Nigerian businesses and undermined prospects for a manufacturing revival. ""Some policies we passed affected manufacturers in terms of their raw materials and we are correcting those now,"" he says. ""We want to discourage dumping and bad practices that happened in the past. But we need to do it in a way that does not hurt local manufacturing.""", -2536,2017/3/16,http://www.huffingtonpost.com/2017/03/16/trump-budget-border-wall_n_15400120.html,"Trump Budget Makes It Official: You're Paying For The Wall, Not Mexico",Another promise broken.,"One of the central themes of Donald Trump's presidential campaign was to not only build a border wall, but to make Mexico pay for it. The claim didn""t just become an applause line for Trump on the campaign trail, it was a call-and-response rallying cry. But the Trump budget proposals revealed late Wednesday include $4.1 billion for the wall. Reuters reported that Trump was asking for $1.5 billion for the current fiscal year and another $2.6 billion for the 2018 budget year, which begins Oct. 1. The money will come from U.S. taxpayers and not Mexico, which has made it clear that it's not paying for the wall.- Earlier this year, Trump backed off his campaign promise and admitted that Americans would end up footing the bill, but claimed Mexico would ""reimburse us for the cost of the wall.""A report from the Department of Homeland Security estimated that the cost of the wall would be far higher than what Trump had promised on the campaign trail.-Trump has said the wall would cost $12 billion, but-Homeland Security estimated it would cost $21.6 billion-and take three years to construct.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2537,2017/3/16,http://www.huffingtonpost.com/2017/03/16/samantha-bee-steve-king-wilders_n_15399474.html,Samantha Bee Skewers 'Geert Wilders' Superfan' Steve King,"""Even the Breitbart White House was like, no man, too racist.""","""Full Frontal""?host-Samantha Bee took aim at Rep. Steve King-(R-Iowa) on Wednesday over his recent tweet lauding white nationalism. Bee began the-""what does a white dude have to say to get fired?""?segment of her show by celebrating the loss of far-right candidate Geert Wilders in the Netherlands""?general election. But she said Wilders still had a ""superfan""?in King, who praised-the Dutch politician on Sunday. Wilders understands that culture and demographics are our destiny. We can't restore our civilization with somebody else's babies. https://t.co/4nxLipafWO King's ideas ""sound better in Middle High German,""?Bee quipped. Even President Donald Trump's administration thought the congressman's comments went too far. ""Even the Breitbart White House was like, no man, too racist,""?she said. Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2538,2017/3/16,http://www.huffingtonpost.com/2017/03/16/trump-budget-air-traffic-control_n_15399258.html,Trump Wants To Privatize Air Traffic Control In The U.S.,"Opponents, including some airlines, say privatization would not save money, and would drive up ticket costs and could create a national security risk.","WASHINGTON (Reuters) - President Donald Trump is proposing to shift oversight of the U.S. air traffic control from the federal government to an independent group, according to budget documents released on Thursday. Trump, who called the U.S. air traffic control system ""Absolete""?in a meeting with airline executives last month, is proposing $16.2 billion for the Department of Transportation's discretionary budget for fiscal year 2018, a reduction of 13 percent. Some Transportation Department budget items are paid through the highway gas tax fund. The document says Trump's plan ""initiates a multi-year reauthorization proposal to shift the air traffic control function of the Federal Aviation Administration to an independent, non-governmental organization.""?Privatization advocates argue that spinning off air traffic control into a non-government entity would allow for a more efficient system and rapid, cost-effective improvements of technology, in part by avoiding the government procurement process. Opponents, including some airlines, say the U.S. system is so large that privatization would not save money, and would drive up ticket costs and could create a national security risk. There also are concerns that airlines would dominate the private-company board and limit access to airports by business jets. The budget would eliminate $175 million in annual funding for the Essential Air Service, a program to support commercial air service to rural airports and end subsidies for Amtrak to operate long-distance train service. Amtrak would then ""Hocus on better managing""?state-supported lines and service in the busy Northeast corridor, the budget document said. The Trump budget would also eliminate the Obama administration's ""tIGER""?grant program, saving $499 million. That program has been used to fund a variety of transportation projects, including high-speed and intracity rail, highway construction and transit bus systems. The budget calls for cutting the budget of U.S. space agency NASA by 0.8 percent to $19.1 billion. The budget proposes cancelling the multi-billion-dollar Asteroid Redirect Mission, but funds development of the Orion crew vehicle and Space Launch System. The budget calls for expanding public private partnerships. NASA has partnerships with Space Exploration Technologies and other companies. The budget funds a mission to fly by Jupiter moon Europa, but cancels a multi-billion mission to land on the moon. It would also fund a Mars rover mission in 2020. The FAA is spending billions to implement ""nextGen,""?a system that would utilize satellites to monitor aircraft instead of radar and make other changes and has faced implementation challenges. The FAA said it has spent $7.5 billion on NextGen over the past seven years, which ""Las resulted in $2.7 billion in benefits to passengers and the airlines to date, and is expected to yield more than $160 billion in benefits through 2030.""?Last month, Trump criticized spending on NextGen, saying the system was ""gotally out of whack,""?over budget and behind schedule. The FAA handles more than 50,000 flights a day and more than 700 million passengers each year. It spends nearly $10 billion a year on air traffic control funded largely through passenger user fees, and has about 28,000 air traffic control personnel. Since 1987, several countries have moved responsibility for air traffic control from national civil aviation authorities to independent self-financed providers. The Government Accountability Office said in a 2016 report that the United States ""is generally considered to have the busiest, most complex and safest ATC system in the world.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2539,2017/3/15,http://www.huffingtonpost.com/2017/03/15/new-york-surfer-asks-news-crew-for-ride_n_15398782.html,New York Surfer Stranded In Blizzard Asks News Crew For A Ride,Because a nor'easter is the best time to hit the beach.,"As a snow storm battered the northeastern coast on Tuesday, one surfer found himself stranded on the Long Beach boardwalk after drifting a mile down the New York coastline during an ice cold surf session. Luckily, the PIX 11 news crew was nearby covering the storm. When reporter Kirstin Cole approached the surfer for an interview about the weather, he pounced at the opportunity to hitch a ride. ""do you have a van here by any chance?""?asked the surfer, who was identified-by the LI Herald-as Adam Winerip.-""do you want to give me a ride back to my car?""?Cole pointed out PIX 11's news ""big news van""?and told him that they ""might be able to work something out.""?Dangling the promise of a ride, Cole continued on with the interview and asked Winerip if he ""Always surfs the crazy storms.""?Winerip deadpanned that it was his first time surfing. Cole seemed to fall for his joke. ""You thought that this was the best day to go out surfing as a first timer?""?she asked him. ""This is a brave, brave man.""?Winerip and his surfer-dude demeanor went viral after PIX 11 shared the video on its Facebook page-""� and he apparently had a lot of people fooled. I've been Stand Up Paddle boarding for a few years now and I figured how hard can doing it laying down be? Never thought I'd make the news #winterstormstellla #wanderlust A post shared by Adam Winerip (@sixminuteads) on Mar 14, 2017 at 9:30am PDT Many people criticized him for paddling out as a beginner during a dangerous storm, not knowing that Winerip is actually an experienced surfer,-the Herald-revealed in a follow-up report. In fact,-Winerip's Instagram account is filled with photos from his recent trip to the Caribbean-where he expertly surfed large waves in temperatures that were probably a lot warmer than a wintry New York. ""never thought I'd make the news,""?Winerip wrote on Instagram, alongside a post of his interview recording. Cole was a good sport about the joke and wrote on Facebook-Wednesday. ""This surfer got me goooooood.... (can I plead Waterlogged Brain?!? 10 hours of storm coverage... oyyyy!),""?he wrote. The Huffington Post has reached out to Winerip to find out if the PIX 11 crew ever gave him that ride to his car. And we sure hope he did because that beach looked-very cold. Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2540,2017/3/15,http://www.huffingtonpost.com/2017/03/15/donald-trump-paul-ryan-daily-show-bus_n_15398444.html,Trevor Noah Warns Paul Ryan: Get Ready To Be Thrown Under The Trump Bus,"""Trump's not going down for his mistakes. He never has.""","Trevor Noah sees a showdown coming between Paul Ryan and Donald Trump ""?and it doesn""t look good for the Speaker of the House. On Wednesday's ""the Daily Show,""?Noah explained how Ryan's plan to cut health care for the poor and older Americans goes against Trump's promise of health care for all. Noah said Ryan seems to be preparing for the inevitable conflict by claiming that the president helped come up with the legislation. ""We all see what you'r trying to do, Speaker Ryan,""?Noah said. ""You know your Obamacare replacement bill is crap and now you'r trying to throw Trump under the bus. ""But, you don""t realize: That's not how it works with Trump, because Trump is the bus. Trump's not going down for his mistakes. He never has.""?Noah had another bone to pick, this time with Trump's surrogates. ""I like how Trump surrogates are worried someone else is going to ruin Trump's presidency,""?he said.-""they'r like, ""Trump can destroy his own legacy. Thank you very much!""?Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2541,2017/3/16,http://www.huffingtonpost.com/2017/03/16/trump-budget-food-clean-water-funding_n_15398256.html,"Trump Budget Cuts International Food Aid Program, Halts Funding For Clean Water In Rural Areas","The budget plan also cuts funding for the Special Supplemental Nutrition Program for Women, Infants and Children (WIC).","President Donald Trump has proposed eliminating an international food aid program, halting funding for clean water initiative in rural areas and reducing county-level staff for a 21 percent drop in discretionary spending at the Agriculture Department, according to a White House budget document. The proposal would save $498 million by eliminating a rural water and wastewater loan and grant program, which the White House proposal said was duplicative. The program helps fund clean water and sewer systems in communities with less than 10,000 people. Other USDA areas targeted for cuts to reach the White House's $17.9 billion discretionary spending budget include its statistical capabilities and staffing at its county-level service centers. The White House also said it would eliminate the McGovern-Dole International Food for Education program, which provides donations of U.S. agricultural commodities to food-deficit countries. The program, which had $182 million earmarked in the fiscal-year 2017 USDA budget, ""lacks evidence that it is being effectively implemented to reduce food insecurity,""?the document said. The plans for spending at the USDA were released as part of Trump's budget blueprint, a broad outline of spending proposals for the fiscal year ahead. The blueprint does not cover ""mandatory""?spending established by law, like farm subsidies, but only addresses ""discretionary""?programs where lawmakers can adjust spending from year to year. The Trump White House has said it plans to release a traditional full budget with a 10-year outlook for all government spending and revenues in mid-May. The budget plan calls for $6.2 billion in funding for the Special Supplemental Nutrition Program for Women, Infants and Children (WIC). That would be about $150 million less than the estimated $6.35 billion the USDA said was budgeted in fiscal 2016. Under former Democratic President Barack Obama, the program was reduced by $273 million between fiscal 2015 and 2016. The WIC program is designed to help meet the basic nutritional needs of low-income pregnant women, new mothers, infants and children up to age five. The USDA, founded in 1862 by President Abraham Lincoln, oversees the nation's agriculture and rural communities, as well as nutritional programs, including funding for school lunches and low-income families. The agency also publishes U.S. and global farming production statistics, which are closely watched. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2542,2017/3/16,http://www.huffingtonpost.com/2017/03/16/trump-budget_n_15398254.html,"Trump Budget Takes Hatchet To EPA And Foreign Aid, Adds Billions To Military",The White House plan adds $54 billion to the defense budget while slashing programs for the poor and the environment.,"President Donald Trump will ask the U.S. Congress for dramatic cuts to many federal programs as he seeks to bulk up defense spending, start building a wall on the border with Mexico and spend more money deporting illegal immigrants. In a federal budget proposal with many losers, the Environmental Protection Agency and State Department stand out as targets for the biggest spending reductions. Funding would disappear altogether for 19 independent bodies that count on federal money for public broadcasting, the arts and regional issues from Alaska to Appalachia. Trump's budget outline is a bare-bones plan covering just ""discretionary""?spending for the 2018 fiscal year starting on Oct. 1. It is the first volley in what is expected to be an intense battle over spending in coming months in Congress, which holds the federal purse strings and seldom approves presidents""?budget plans.- Congress, controlled by Trump's fellow Republicans, may reject some or many of his proposed cuts. Some of the proposed changes, which Democrats will broadly oppose, have been targeted for decades by conservative Republicans. Moderate Republicans have already expressed unease with potential cuts to popular domestic programs such as home-heating subsidies, clean-water projects and job training. Trump is willing to discuss priorities, said White House budget director Mick Mulvaney, a former South Carolina congressman who made a name for himself as a spending hawk before Trump plucked him for his Cabinet. ""the president wants to spend more money on defense, more money securing the border, more money enforcing the laws, and more money on school choice, without adding to the deficit,""?Mulvaney told a small group of reporters during a preview on Wednesday. ""If they have a different way to accomplish that, we are more than interested in talking to them,""?Mulvaney said. Trump wants to spend $54 billion more on defense, put a down payment on his border wall, and breathe life into a few other campaign promises. His initial budget outline does not incorporate his promise to pour $1 trillion into roads, bridges, airports and other infrastructure projects. The White House has said the infrastructure plan is still to come. The defense increases are matched by cuts to other programs so as to not increase the $488 billion federal deficit. Mulvaney acknowledged the proposal would likely result in significant cuts to the federal workforce. ""You can""t drain the swamp and leave all the people in it,""?Mulvaney said. Oh hey look Trump wants to fiscally gut American society. No big deal. https://t.co/ssa6FSyTqD pic.twitter.com/ux8CHt4EmF - White House officials looked at Trump's campaign speeches and ""America First""?pledges as they crunched the numbers, Mulvaney said. ""We turned those policies into numbers,""?he said, explaining how the document mirrored pledges to spend more on the U.S. nuclear weapons arsenal, veterans""?health care, the FBI, and Justice Department efforts to fight drug dealers and violent crime. The Department of Homeland Security would get a 6.8 percent increase, with more money for extra staff needed to catch, detain and deport illegal immigrants. Trump wants Congress to shell out $1.5 billion for the border wall with Mexico in the current fiscal year - enough for pilot projects to determine the best way to build it - and a further $2.6 billion in fiscal 2018, Mulvaney said. The estimate of the full cost of the wall will be included in the full budget, expected in mid-May, which will project spending and revenues over 10 years. Trump has vowed Mexico will pay for the border wall, which the Mexican government has flatly said it will not do. The White House has said recently that funding would be kick-started in the United States. The voluminous budget document will include economic forecasts and Trump's views on ""mandatory entitlements""?- big-ticket programs like Social Security and Medicare, which Trump vowed to protect on the campaign trail. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2543,2017/3/15,http://www.huffingtonpost.com/2017/03/15/mark-cuban-trump-leaks_n_15398120.html,Mark Cuban Nails Why Donald Trump Is Losing Control Of The White House,Billionaire investor grades the president.,"Billionaire businessman Mark Cuban blasted President Donald Trump for having ""no leadership skills, no management skills, not very good communication skills""?during an interview on CNN on Wednesday. The ""shark Tank""?host and owner of the Dallas Mavericks, who backed Democrat Hillary Clinton during the 2016 presidential election campaign, told host Jake Tapper that the constant White House leaks are a sign of that lack of leadership.-- ""the first thing you look at is the leaks,""?Cuban said, adding:- ""I""ve been in takeover scenarios,-companies where I""ve purchased where there's been bad culture, right? you're got to sit down and where people disagree with you, you're got to say, ""Look, there's going to be issues, but let's discuss this. we'll communicate so that you don""t have to communicate with the public. If you have a problem, have that problem with me, and tell me, and let's resolve it.""?That's not what he's done.-When you don""t communicate and you kind of cocoon yourself, that's where you get leak issues like this.""?Cuban wasn""t entirely critical. He also credited Trump for having an ""Abvious""?effect on the nation's economy and said he likes what the president's promising to do for corporate taxes. See the full segment above. (h/t Raw Story) Share this slide: How will Trump's first 100 days impact you? Learn more", -2544,2017/3/15,http://www.huffingtonpost.com/2017/03/15/couple-urinating-quran-santa-fe-library_n_15397226.html,New Mexico Library Accuses Couple Of Urinating On Qurans,Staffers say several copies of the religious book and a Bill Clinton autobiography were damaged.,"One couple has been accused of urinating on several copies of the Quran and on former President Bill Clinton's autobiography at a library in Santa Fe, New Mexico, in early March. The Council on American-Islamic Relations called for state and federal officials in New Mexico to investigate a possible bias motive for the vandalism, according to a statement released by the organization Wednesday. Staff members at the Santa Fe Public Library told the Santa Fe Police Department last Friday that a man and woman had been causing trouble at their Southside branch during multiple visits in early March, according to the Santa Fe New Mexican. Leslie Simmons, the library manager, said that staff members found three copies of the Quran damaged ""by a yellowish liquid substance""?after one of the couple's visits. Staffers also said that the books smelled of urine, according to the police report. Surveillance footage shows the couple at the library using their computer and reading books, according to a police report obtained by local news station KOB 4. The video also shows the man picking up books, then bringing them back. Police said the low-quality video did not show which books the man picked up, but it does show the man going to the same locations where library workers found damaged copies of the Quran and Bill Clinton's autobiography, ""Ty Life.""?Library staffers told police that the couple started visiting the library every few days since March 2-and that they were loud and disruptive, according to KOB 4. Library workers also claimed the couple placed copies of the Bible and books written by conservative commentator Ann Coulter around the library ""As if they were placed on display for all to see,""?according to a police report. Police said that DNA testing-would be inconclusive, since the damaged library books were likely handled by a lot of people, according to the New Mexican. Police concluded the investigation after they were unable to locate the license plate number for the couple's truck in law enforcement databases. The vandalism comes at a time when hate crimes targeting Muslims are becoming more frequent in the U.S.-The number of anti-Muslim hate groups nearly tripled-in 2016, according to a recent report published by the Southern Poverty Law Center. Meanwhile, mosques have become targets for vandalism and destruction. On Tuesday, CAIR called on officials to investigate a similar incident in which an Arizona man broke into the Islamic Center of Tucson and tore apart several copies of the Quran.- Share this slide: Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -2545,2017/3/15,http://www.huffingtonpost.com/2017/03/15/conservatives-health-care-bill-changes_n_15396350.html,Conservatives Demand Changes On Health Care Bill As GOP Leaders Sound Shaky,"The House Freedom Caucus comes out ""confident"" that the current legislation won't fly.","WASHINGTON ""?House Speaker Paul Ryan (R-Wis.) acknowledged Wednesday there will have to be changes to the House Republicans""?health care bill, just as conservatives acknowledged that, short of a massive overhaul to the measure, they probably won""t support the legislation. Rep. Mark Meadows (R-N.C.), chairman of the conservative House Freedom Caucus, emerged from the HFC meeting late Wednesday to suggest that Republicans may have to start over. ""We'r confident tonight that there are not the votes to modify this current bill to make it acceptable to conservatives and moderates alike,""?Meadows said. Pressed later on that point ""?whether there were no changes leaders could make to win over conservatives ""?Meadows walked his comment back and said that, if leaders were willing to negotiate ""in good faith,""?then maybe the Freedom Caucus could deal. But he stressed that the far-right's biggest concern was the high cost of premiums and that the current bill ""does not lower premiums in any meaningful way.""?For leaders like Ryan who seem to believe they can win over conservatives by giving in on minor changes like work requirements for Medicaid, the new focus of premiums can""t be welcome comments. For the first time in the health care debate, Ryan acknowledged Wednesday what the White House has signaled for some time: that there will have to be changes. Ryan said now that Republicans have a Congressional Budget Office assessment on the legislation, they could ""incorporate feedback""?from members. Or, as Ryan put it earlier in the day, ""We have consensus, and we'r fine-tuning that consensus.""?If you weren""t sure of the degree to which Ryan is now uncertain about the future of the bill, he refused to confirm that the measure would get a floor vote next week, deferring scheduling questions to House Majority Leader Kevin McCarthy (R-Calif.) and noting that the House had a snow day Tuesday. That shift in tone and willingness to adopt changes were welcome signs for conservatives. ""ten days ago it was a binary choice,""?former Freedom Caucus Chairman Jim Jordan (R-Ohio) said. ""And now it's a, ""It won""t pass without change.""?(Jordan agreed he was taking some ""literary license""?with Ryan's words.) Consensus-tuning aside, conservatives recognize that it's unlikely leadership will tear out the advance refundable tax credit portion of the bill, which far-right members hate but is the underpinning of the GOP's replacement plan. The Freedom Caucus now seems focused on portions of the bill that would weaken coverage in favor of lowering premiums. Conservatives have set their targets on the continuous coverage provisions that prevent insurers from discriminating against people with pre-existing conditions, as well as language that lays out essential benefits in coverage. The current bill would allow anyone with a pre-existing condition to get insurance, but someone who chose not to be insured and then got sick would be subject to a 30 percent surcharge. In the conservative plan written by Rep. Mark Sanford (R-S.C.) and Sen. Rand Paul (R-Ky.), individuals have a two-year window to purchase insurance and then must maintain coverage. Switching to that system would lower premiums, but it also would leave many people who elect not to buy insurance devastated if they were to get sick. Meadows told reporters Wednesday that the Freedom Caucus would be producing an amendment later this week ""?probably Friday ""?that would address premiums. Although he wouldn""t go into specifics, sources indicated that the continuous-coverage element and eliminating plan requirements for essential health benefits, which mandate that insurers cover things like mental health and maternity care, would probably be the main focus of the amendment. Meadows acknowledged that the Medicaid changes conservatives want could be a hang-up for moderates. Conservatives had wanted to accelerate the phaseout of the Medicaid expansion from 2020 to 2018, but members understand that change is probably a non-starter in the Senate and could imperil votes in the House. Instead, Meadows said, the Freedom Caucus was now focused on an amendment that, he thought, could be supported by conservatives and moderates alike, ""and truly, fundamentally, change the direction of this bill, where it actually lowers premiums.""?There are some immediate problems with such an amendment. For one, Republicans could run into problems in the Senate and a legislative rule that prevents reconciliation language from making policy changes. Another issue is that HFC members continue to insist that they want a full repeal of the Affordable Care Act. ""Ty understanding of where we'r at is we'r going to insist on a full repeal coupled with a repeal of the regulations,""?Rep. Mo Brooks (R-Ala.) told The Huffington Post on Wednesday night. Part of the reason Republicans preserve some portions of Obamacare is that repealing all of it would violate the so-called Byrd rule, which would require 60 votes in the Senate. Asked whether he thought it was likely that leadership would agree to those changes, Brooks was undeterred. ""It doesn""t make any difference whether they agree with it or not; that's our position,""?he said. ""they can work with the big government folks, or they can work with the little government folks. It's their choice,""?Brooks said. Leadership doesn""t seem to be working all that much with conservatives. Meadows reported Wednesday night that, save an informal conversation he had with Majority Whip Steve Scalise (R-La.), he hasn""t communicated with leadership for two weeks. Meanwhile, he's been in contact with the White House almost every day. But Meadows believes Paul Ryan and other GOP leaders recognize they have to come to the table if they want to pass the health care bill. ""We are confident that, based on the whip count that we did today, that there are more than enough votes to assure that amendments need to be made,""?Meadows said. Meadows dodged questions about a specific vote count, but he said currently there were ""definitely""?more than 21 hard Republican votes against the bill, which would be enough to sink the legislation. ""Tuch more than 21 hard noes,""?Meadows said. Asked if he meant overall or just in the Freedom Caucus, he said overall. And then he added that there were more than 21 in the Freedom Caucus too. Jonathan Cohn contributed to this report. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2546,2017/3/15,http://www.huffingtonpost.com/2017/03/15/police-ask-texas-not-to-crack-down-on-sanctuary-cities_n_15396324.html,Texas Police Ask The State Not To Crack Down On Sanctuary Cities,"For the second time in six weeks, hundreds of people registered their opposition to a Republican-backed immigration crackdown.","A parade of Texas law enforcement officials once again registered their opposition Wednesday to a Republican-backed effort to crack down on ""sanctuary""?jurisdictions that limit their cooperation with immigration authorities.- But conservative lawmakers seem poised to ignore them. SB 4, which would fine local officials that refuse to comply with ""detainer""?requests to hold undocumented immigrants on behalf of the federal government, has already passed the full state Senate. The House State Affairs hearing Wednesday marked the bill's first step on its way through the legislature's lower house. Most of the state's Republican lawmakers view it as a commonsensical effort to enforce the immigration laws already on the books. But several police officials from the state's largest cities have cautioned that the law would make their jobs more difficult by alienating immigrants and making law enforcement vulnerable to liability for increased racial profiling that they say will likely accompany the bill's implementation ""?criticisms widely shared by legal experts and immigrant families. -- Austin Police Chief Brian Manley said pressing his officers to help enforce immigration law would distract them from their core responsibilities. ""It's going to pull my officers away from their more important duties of combating crime,""?Manley said.- Bexar County Sheriff Javier Salazar said passing the bill would alienate immigrants, as the police would begin taking on a greater role in federal immigration enforcement. ""It's imperative that we maintain trust with the communities we serve,""?Salazar told the committee. ""We risk driving this segment of the population into the shadows. ""?I have seen examples where victims of domestic violence are told by their abuser, ""�Go ahead and call the cops. You know where you'r going.""?Ed Gonzalez, the sheriff of Harris County, which includes Houston, said he suspected the bill would make the state less safe by making unauthorized immigrants fearful of calling the police if they see a crime. ""I think that inherently when someone witnesses something traumatic, there's already going to be fear,""?Gonzalez said, ""let alone when they fear they themselves will be deported.""?One woman described suffering precisely that experience. She told the committee that it took three years for her to find the courage to call the police to report an abusive partner ""?even after he held a gun toward her, threatening to shoot her and then himself if she left him. ""I was worried that if I called the police, I would be asked about my immigration status and then deported,""?she said. ""You will be empowering the abusers and giving them another tool to carry out their abuse [if you pass SB 4].""?Legal experts also cautioned that letting police play a greater role in federal immigration enforcement would open the state up to lawsuits. ""Let's be clear,""?Celina Moreno, an attorney with the Mexican-American Legal Defense and Education Fund, said. ""racial profiling is a foreseeable consequence of SB 4.""?Kali Cohn, an attorney with the American Civil Liberties Union, added that jurisdictions that honor all requests from Immigration and Customs Enforcement to hold undocumented immigrants can be sued for violating the Fourth Amendment, which guarantees protection from unlawful searches and detention. ""An ICE detainer asks a local law enforcement agency to hold someone for 48 hours,""?Cohn said. ""But when those additional 48 hours begin, local law enforcement still need probable cause to make that detention. The problem is they can""t point to probable cause because ICE detainers are not supported by probable cause.""Several Texans who either have undocumented family members or were undocumented themselves said the bill would threaten their safety. ""Ty dad isn""t an alien,""?one young girl said through tears. ""He's a human being and he should be treated like one.""?The vast majority of those who testified asked the legislature to abandon the bill. Of 638 who registered, only 11 urged lawmakers to pass the bill, according to Texas state Rep. Rafael Anchia (D-Dallas). The hearing continued well into the evening.- Opposition from law enforcement notwithstanding, Texas lawmakers are likely to pass the measure against sanctuary cities. Republicans have tried to ban sanctuary cities for years, despite the fact that the vast majority of local officials honor virtually all federal requests to hold undocumented immigrants in local jails on behalf of ICE. But conservative efforts to pass such legislation have failed in the past because Democrats had enough votes to block floor debate in the state Senate. Last year, Republicans loosened the century-long tradition of requiring the votes of two-thirds of the state Senate to make it easier to pass a conservative agenda, in a state where they control all three branches of government. Despite conservative emphasis on ridding the state of cities with liberal immigration policies, currently the only jurisdiction to limit its cooperation with ICE is Travis County, where Austin is. In January, Travis County Sheriff Sally Hernandez adopted a policy of declining to hold immigrants for ICE if they qualify for release or bond, unless they are convicted or charged with one of a short list of crimes including murder, sexual assault and human trafficking. Texas Gov. Greg Abbott (R) responded by stripping the county of $1.5 million in state grants and threatening to find a way to remove Hernandez from office. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2547,2017/3/15,http://www.huffingtonpost.com/2017/03/15/john-mccain-rand-paul-montenegro-putin_n_15396274.html,John McCain Says Rand Paul Is 'Now Working For Vladimir Putin',"""I do not say that lightly.""","Sen. John McCain-of Arizona attacked fellow Republican Sen. Rand Paul of Kentucky on Wednesday, accusing him of doing the bidding of Russian President Vladimir Putin.- McCain had called for unanimous consent on a bill to help pave the way for NATO membership for Montenegro, which-withstood a coup attempt last year that was blamed on Russia. McCain, the 2008 GOP presidential nominee, warned his colleagues that anyone who objected would be ""Carrying out the desires and ambitions of Vladimir Putin, and I do not say that lightly.""?However, Paul objected and then quickly left the chamber. McCain said: ""I note the senator from Kentucky leaving the floor without justification or any rationale for the action that he has just taken. That is really remarkable,-that a senator blocking a treaty that is supported by an overwhelming number, perhaps 98 at least, of his colleagues would come to the floor and object and walk away. And walk away! The only conclusion you can draw when he walks away is he has no argument to be made. He has no justification for his objection to having a small nation be part of NATO that is under assault from the Russians. So, I repeat again: The senator from Kentucky is now working for Vladimir Putin.""?Paul, who has called for a more non-interventionist foreign policy, later released a statement defending his objection. ""the United States is pledged to defend 28 countries in NATO. It is unwise to expand the monetary and military obligations of the United States given the burden of our $20 trillion debt,""?he said, according to The Daily Beast.- McCain and Paul have not exactly had a friendly relationship, especially on foreign policy. ""John McCain is the guy that has advocated for war everywhere,""aul said in an interview last month. ""We'r very lucky John McCain is not in charge because I think we would be in perpetual war.""?In 2015, McCain called Paul ""?then running for the GOP presidential nomination ""?""the worst possible candidate""?on national security issues, and in 2013 he called him and several other Republican senators-""wacko birds""?for what he considered extremist views. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2548,2017/3/13,http://www.huffingtonpost.com/2017/03/13/kristine-douglas-tompkins-chile-national-parks_n_15394514.html,Private Land Gift Drives Vast Expansion Of Chile's National Parks,It's part the vision of late North Face co-founder and conservationist Douglas Tompkins.,"WASHINGTON -Chilean President Michelle Bachelet and American conservationist Kristine Tompkins on Wednesday pledged to grow Chile's national park lands by roughly 11 million acres-""?an area more than four times the size of Yellowstone National Park.- The announcement comes after lengthy negotiations and is the culmination of decades of work by Tompkins, who is the former CEO of outdoor retailer Patagonia, and her late husband and North Face co-founder, Douglas Tompkins.- ""there's never, to our knowledge, been a larger expansion of a national park system that was prompted by a private land donation,""om Butler, vice president of conservation advocacy at Tompkins Conservation, told The Huffington Post.- As part of the joint pledge-signed Wednesday during a ceremony-at Chile's-Pumal��n Park, Tompkins Conservation will donate just over 1 million acres to the country's government. The nonprofit group believes this is the largest private land donation to a state in history. Chile has agreed to contribute and reclassify roughly 10 million acres of government-held lands for conservation.- ""It's big leverage. It's huge,""?Butler said. ""In the past, when we have made donations, We're been able to leverage that up. But not to this ratio. It's a large impact.""The end result will be the creation of five new national parks, including Tompkins Conservation's flagship 715,000-acre Pumal��n Park-and its 200,000-acre Patagonia Park. The-Hornopirén, Corcovado and Isla Magdalena-national parks will also expand significantly. ""Big day for Chile!""?Bachelet wrote in a Twitter post.- Pdta.: ""La sociedad civil y el Estado deben hacer un trabajo coordinado para preservar nuestro patrimonio natural""?- https://t.co/2wZQu5gWsS pic.twitter.com/gS2rC1EAfd Kristine Tompkins called Wednesday a ""memorable""?day that her late husband's vision inspired.-He-died in December 2015-in a kayaking accident in Chile.- ""I know that if Doug were here today, he would speak of national parks being one of the greatest expressions of democracy that a country can realize, preserving the masterpieces of a nation for all of its citizenry,""?she said in a statement. In the early 1990s, the couple sparked controversy when they started buying up giant swaths of land in the Patagonia region of Chile and Argentina in an effort to help fight the planet's biodiversity crisis. Over the years, they spent over $300 million-to preserve roughly 2 million acres.-The end goal was to eventually donate the land back to those countries with the understanding it would forever be protected ""?a job Kristine Tompkins is carrying out today. In September, she announced plans to donate nearly 350,000 acres to help create what will become Argentina's largest nature preserve. Once Wednesday's pledge is complete, the amount of protected national territory in Chile will increase by one-third, from 19 to 29 percent, according to Tompkins Conservation. The commitment will likely also prove key to Chile's creation of a ""route of Parks,""?a 17-park network spanning more than 1,500 miles from Puerto Montt to Cape Horn.- In her comments Wednesday, Bachelet praised the late Douglas Tompkins, calling him a ""Chilean at heart.""?""After months of coordinated work, We're created good news for our country and honored the generosity and love for nature of Douglas Tompkins,""?she said in a statement. ""Because of today, in this environment of touching beauty, we are claiming one of his greatest wishes, and one of the pillars of development: civil society and the State of Chile can and should do coordinated work to preserve our natural heritage. We are affirming that as humans we can, and have the duty, to find ways to work harmoniously with our nature.""Butler told HuffPost he's not only excited about the unprecedented scale of the effort in Chile, but also about the ""boldness at which these two female conservation leaders""?are approaching expanding the country's national park system. He said he sees a striking difference in how U.S. President Donald Trump's administration lacks leadership on climate change, biodiversity protection and support for national parks.- ""This is a tremendous contrast to what we see in the U.S., where the current administration is essentially attacking public lands values, [and is] likely to defund or diminish funding for national parks, or other kinds of public lands,""?he said. Kim Bellware contributed reporting. Share this slide: Learn more", -2549,2017/3/15,http://www.huffingtonpost.com/2017/03/15/stephen-miller-trump-travel-ban_n_15394362.html,Thank Stephen Miller's Big Mouth For Trump Travel Ban's Latest Court Woes,"There is nothing ""'secret""?about the executive's motive,"" a judge writes.","Recent comments made by a top aide to the White House contributed, in part, to a federal judge's Wednesday ruling to place a nationwide hold on parts of President Donald Trump's second attempt at a travel ban against citizens of six Muslim-majority nations. Stephen Miller, a senior policy adviser to the president, was one of Trump's most vocal mouthpieces following the fraught rollout of the administration's first travel ban that sparked massive protests at airports around the country. Shortly after federal judges struck down that order, Miller appeared on television to stump a watered-down version, assuring Fox News it would include only ""minor technical differences.""?The ruling notes: On February 21, Senior Advisor to the President, Stephen Miller, told Fox News that the new travel ban would have the same effect as the old one. He said: ""Fundamentally, you'r still going to have the same basic policy outcome for the country, but you'r going to be responsive to a lot of very technical issues that were brought up by the court and those will be addressed. But in terms of protecting the country, those basic policies are still going to be in effect.""?Those ""plainly worded statements,""?it seems, helped lead U.S. District Judge Derrick Watson to issue a temporary restraining order against the ban on Wednesday. There is nothing ""�’secret""?about the executive's motive specific to the issuance of the executive order,""?Watson's ruling reads. It continues to point out statements made by Rudy Giuliani in January about the first ban: ""rudolph Giuliani explained on television how the Executive Order came to be. He said: ""�When [Mr. Trump] first announced it, he said, ""Muslim ban.""?He called me up. He said, ""�Put a commission together. Show me the right way to do it legally.""?""Any reasonable, objective observer would conclude ... that the stated secular purpose of the Executive Order is, at the very least, secondary to a religious objective of temporarily suspending the entry of Muslims,""?Watson wrote.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2550,2017/3/16,http://www.bbc.co.uk/news/uk-politics-39289195,"Conservative Party fined ?70,000 over election expenses","The Conservative Party has been fined ?70,000 by the Electoral Commission for breaking election expense rules.","The Conservative Party has been fined ?70,000 by the Electoral Commission for breaking election expense rules. The commission's report highlights ""numerous failures"" in reporting spending on three by-elections in 2014 and the 2015 General Election. These included missing payments of ?104,000 - and ?118,000 that was either not reported or incorrectly reported. The Conservatives said they had accepted last March they had made ""an administrative error"". A spokesman added that Labour and the Lib Dems had also been fined in the past and ""there needs to be a review of how the Electoral Commission's processes and requirements could be clarified or improved"". The Electoral Commission's chief executive Claire Bassett told BBC Radio 5 live the investigation had taken much longer than necessary because of ""some difficulties"" in getting information from the Conservative Party. She added that having had to get a court order to get information was ""very disappointing"". The investigation, which followed Channel 4 News' own investigation into claims that Tories may have broken election law at the 2015 general election and three earlier by-elections, found: Sir John Holmes, chair of the Electoral Commission, said: ""Our investigation uncovered numerous failures by a large, well-resourced and experienced party to ensure that accurate records of spending were maintained and that all of the party's spending was reported correctly. ""The rules established by parliament for political parties and their finances are there to ensure transparency and accountability. ""Where the rules are not followed, it undermines voters' confidence in our democratic processes, which is why political parties need to take their responsibilities under the legislation seriously."" Sir John said it is the third investigation that the commission has concluded recently where the largest political parties have failed to report up to six figure sums following major elections. The Electoral Commission's investigation covered the national party rather than spending by individual candidates, which police forces have been looking into. It concluded that Simon Day, the registered treasurer of the party until April 2016, committed three contraventions under section 41 and two offences under section 82(4)(b) of Political Parties, Elections and Referendums Act 2000. They have referred a possible offence - of whether Mr Day ""knowingly or recklessly made a false declaration"" - to the Metropolitan Police. The allegations that prompted the investigation were that the party bussed in activists to take part in critical campaigns in marginal seats which helped David Cameron win a majority at the 2015 General Election. Separate police investigations have been taking place into whether campaign spending in individual seats were registered as national spending when they should have counted towards each candidate's spending limit. Twelve police forces have asked the Crown Prosecution Service to consider charges over election expenses. In response to the Electoral Commission report, a Conservative spokesman said it had ""complied fully... and will pay the fines"". ""This investigation and these fines relate to national spending by CCHQ, and the Conservative Party's national spending return for the 2015 general election. ""As we have consistently said, the local agents of Conservative candidates correctly declared all local spending in the 2015 general election. ""CCHQ accepted in March 2016 that it had made an administrative error by not declaring a small amount constituting 0.6 per cent of our national spending in the 2015 election campaign. ""Political parties of all colours have made reporting mistakes from time to time... this is the first time the Conservative Party has been fined for a reporting error. ""We regret that and will continue to keep our internal processes under review to ensure this does not happen again. ""Given the range of technical errors made by a number of political parties and campaign groups, there also needs to be a review of how the Electoral Commission's processes and requirements could be clarified or improved.""", -2551,2017/3/16,http://www.bbc.co.uk/news/world-europe-39287689,Dutch election: Wilders defeat celebrated by PM Rutte,"Dutch people rejected ""the wrong kind of populism"", Prime Minister Mark Rutte has said, as he celebrated victory in Wednesday's election.","Dutch people rejected ""the wrong kind of populism"", Prime Minister Mark Rutte has said, as he celebrated victory in Wednesday's election. ""The Netherlands said 'Whoa!'"" he declared after his centre-right VVD party's lead positioned him for a third successive term as prime minister. With nearly all votes counted, his party easily beat the anti-immigration Freedom party of Geert Wilders. Fellow eurozone countries France and Germany also face elections this year. The Dutch race was seen as a test of support for nationalist parties that have been gaining ground across Europe. Mr Wilders insisted ""the patriotic spring"" would still happen. The euro gained as the results pointed to a clear victory for the prime minister's party. With 95% of votes counted, the prime minister's party had won 33 out of 150 seats, a loss of eight seats from the previous parliament. The Freedom party was in second place on 20 seats, a gain of five, with the Christian Democrats (CDA) and the liberal D66 party close behind with 19 seats each. The Green-Left party also did well, winning 14 seats, an increase of 10. The Labour Party (PvdA), the junior party in the governing coalition, suffered a historic defeat by wining only nine seats, a loss of 29. Turnout was more than 80%, the highest for 30 years, which analysts say may have benefited pro-EU and liberal parties. ""We want to stick to the course we have - safe and stable and prosperous,"" Mr Rutte said. France goes to the polls next month to elect a new president, with the far right National Front forecast to increase its vote dramatically. In Germany, the populist Alternative for Germany (AfD) may win seats in parliament for the first time in September's general election. Mr Rutte's victory was warmly greeted by other European leaders and politicians: Weeks before the election, opinion polls forecast the PVV winning the biggest number of seats but Mr Wilders' lead vanished as the vote drew near. He had pledged to take the Netherlands out of the EU, close all mosques and ban the Koran. He warned that Mr Rutte had ""not seen the last"" of him. ""It's not the 30 seats I hoped for but we have gained seats,"" he added. ""This patriotic spring will happen."" As parliamentary seats are allocated in exact proportion to a party's vote share, the VVD will need to go into coalition with three other parties. The VVD had ruled out a coalition with Mr Wilders' PVV, but not with the Christian Democrats and D66, which are both pro-EU. It would still be several seats short of forming a government and would need further support from a fourth party. Coalition talks could take weeks, or even months.", -2552,2017/3/16,http://www.bbc.co.uk/news/uk-politics-39287222,Philip Hammond: National Insurance U-turn to 'keep public's trust',Chancellor Philip Hammond has defended making a U-turn on increasing National Insurance contributions for some self-employed workers.,"Chancellor Philip Hammond has defended making a U-turn on increasing National Insurance contributions for some self-employed workers. Writing in The Sun, he said the government sets ""great store in the faith and trust"" of Britons and hoped the reversal showed ""we are listening"". Mr Hammond said it was important he and the prime minister met the ""spirit"" of the Tories' 2015 manifesto pledge. Labour called the climb-down ""shocking and humiliating"". The chancellor had faced a backlash by Conservative backbenchers, who accused him of breaking a general election manifesto commitment not to put up National Insurance, income tax or VAT. In his letter to readers of The Sun, Mr Hammond wrote: ""Trust matters in politics. And this Conservative government sets great store in the faith and trust of the British people."" He said people had questioned whether the planned increase in National Insurance for the self-employed was consistent with the tax pledges in the manifesto. ""After the 2015 general election, we acted to put these manifesto pledges into law and explained at that time that, when it came to National Insurance, this would apply to the main rate of National Insurance,"" he continued. ""But for the prime minister and me, it's not enough simply to stay within the letter of our tax lock law. It's important that we meet the spirit of our commitment as well. ""By making these changes, I hope we have shown that we are listening to people and demonstrating our determination to keep to both the letter and the spirit of our commitments."" The Sun was one of the most outspoken newspapers against the increase when it was announced, because of the effect it would have on its ""White Van Man"" readers. Mr Hammond's Budget announcement would have increased Class 4 NICs from 9% to 10% in April 2018, and to 11% in 2019, to bring it closer to the 12% currently paid by employees. In a Commons statement, the chancellor told MPs: ""There will be no increases in National Insurance rates in this Parliament."" Mr Hammond said he would use the Autumn Budget to set out further measures to ""fund in full"" the ?2bn lost from NICs. Shadow chancellor John McDonnell described the climb-down as ""chaos"". ""It's shocking and humiliating that you have been forced to come here to reverse a key budget decision announced less than a week ago,"" he said. Asked by former SNP leader Alex Salmond ""who"" had realised the Budget was in ""flagrant breach"" of a manifesto commitment, Mr Hammond replied: ""I think it was Laura Kuenssberg on the BBC shortly after I said it in the Budget speech."" Mr Corbyn said the government should ""apologise"" for the stress the announcement had caused Britain's 4.8 million self-employed people. The SNP's Westminster leader Angus Robertson accused ministers of a ""screeching, embarrassing U-turn"". Liberal Democrat leader Tim Farron, an advocate of Britain remaining in the EU, questioned whether the chancellor would ""now U-turn on another broken election commitment to keep us in the single market"". Chris Bryce, CEO of the self-employed body IPSE, welcomed the U-turn, saying ""hard working people will sleep easier tonight"". Stephen Herring, the Institute of Directors' head of taxation, said the National Insurance ""saga can only be described as chaotic"".", -2553,2017/3/16,http://www.bbc.co.uk/news/world-us-canada-39287656,Trump travel ban: US judge blocks new executive order,"A federal judge in Hawaii has blocked President Donald Trump's new travel ban, hours before it was due to begin after midnight on Thursday.","A federal judge in Hawaii has blocked President Donald Trump's new travel ban, hours before it was due to begin after midnight on Thursday. US District Judge Derrick Watson cited ""questionable evidence"" in the government's argument that the ban was a matter of national security. President Trump described the ruling as ""unprecedented judicial overreach"". The order would have placed a 90-day ban on people from six mainly Muslim nations and a 120-day ban on refugees. Mr Trump insists the move is to stop terrorists from entering the US but critics say it is discriminatory. An earlier version of the order, issued in late January, sparked confusion and protests, and was blocked by a judge in Seattle. Judge Watson said the court had established a strong likelihood that, were the ban to go ahead, it would cause ""irreparable injury"" by violating First Amendment protections against religious discrimination. Hawaii state had argued that the ban would harm tourism and the ability to recruit foreign students and workers. The 43-page ruling argued that a ""reasonable, objective observer"" taking into account the context of the Executive Order would conclude it ""was issued with a purpose to disfavour a particular religion"". It notes statements made by Mr Trump such as a 2015 press release calling for ""a total and complete shutdown of Muslims entering the United States"", and his adviser Rudolph Guiliani, who said in a television interview in January: ""When [Mr Trump] first announced it, he said, 'Muslim ban'. He called me up. He said: 'Put a commission together. Show me the right way to do it legally.'"" It also says there is a ""dearth of evidence indicating a national security purpose"". Speaking at a rally in Nashville, Tennessee on Wednesday evening, Mr Trump said the ruling in Hawaii was ""flawed"" and a case of ""unprecedented judicial overreach"". His administration argues that the constitution gives the president the power to suspend immigration when he deems it to be in the national interest of the country, and that neither the initial or revised orders discriminate on the basis of religion. Justice department lawyers argue that the revised ban is an extension of President Obama's move towards stricter screening of travellers from the six countries. Donald Trump's first travel ban was suspended because it likely violated the due process rights of individuals with valid residency papers and visas. The battle over whether it imposed an unconstitutional religious test on certain immigrants was put off until another day. That day has arrived. In its decision, the federal court in Hawaii used Mr Trump's own words - and the words of his advisers - against him. The text of the executive order, Judge Derrick Watson held, could not be separated from the context of the recent presidential campaign, ""Muslim ban"" rhetoric and all. An order that discriminates against some Muslims, he continued, is just as legally deficient as one that discriminates against them all. Now it's back to the drawing board for the Trump administration or - perhaps an even gloomier prospect - back to the Ninth Circuit court of appeals, which ruled against the president on the original ban just last month. After Mr Trump's previous adverse legal ruling, he angrily tweeted: ""We'll see you in court."" Although it took a new travel order to get there, it turns out he was right. Mr Trump said he will take the case ""as far as it needs to go"", including to the US Supreme Court. An appeal against the Hawaii decision would be expected to go next to the Ninth Circuit Court of Appeals - the same court which in February said it would not block a ruling by a Seattle court to half the original travel ban. However, also on Wednesday, five judges at that court wrote a letter saying they believed that decision was an ""error"", and the first Executive Order was ""well within the powers of the presidency"". California, Maryland, Massachusetts, New York, Oregon and Washington state are all taking part in legal actions against the revised ban. Washington state Attorney General Bob Ferguson, who is attending a court hearing in Seattle in his efforts to block the travel ban, described the ruling as ""fantastic news"". ""It's very exciting. At this point it's a team effort - multiple lawsuits and multiple states,"" he said. Under the revised order, citizens of six countries on the original 27 January order - Iran, Libya, Syria, Somalia, Sudan and Yemen - would once more be subject to a 90-day travel ban. Iraq was removed from the list because its government had boosted visa screening and data sharing, White House officials said. The revised order also lifts an indefinite ban on all Syrian refugees and says Green Card holders (legal permanent residents of the US) from the named countries will not be affected.", -2554,2017/3/16,http://www.bbc.co.uk/news/uk-wales-north-east-wales-39286070,Teenager who left to sail around the world dies in accident,A Denbighshire teenager who left Wales to sail around the world with her family 10 years ago has fallen to her death in Jamaica.,"A Denbighshire teenager who left Wales to sail around the world with her family 10 years ago has fallen to her death in Jamaica. Bethany Smith, 18, was working as a deckhand on a luxury schooner. She fell while working high up a mast of the 196 ft (60m) vessel Germania Nova which was berthed in the Jamaican town of Port Antonio, Portland. Her mother Sarah is in Trinidad, whilst her father David is working in the Netherlands. The teenager spent her early years in Glyndyfrdwy, Corwen, but her parents set sail from Aberystwyth in April 2007 in their yacht ""Cape"" along with her younger brother Bryn. After spending three years cruising around the Mediterranean, the family sailed on to the Canary Islands and west Africa where they spent a further two years before crossing the Atlantic in March 2012. They have since toured the Caribbean islands extensively, writing about their travels online. Writing in a blog last year, Ms Smith's mother said the family was delighted she had got a job as a trainee on the Germania Nova. She joined the crew of the schooner in February last year, later crossing the Atlantic on the vessel for the summer charter season in the Mediterranean. Jamaican Police said Ms Smith was cleaning the schooner's mast on Tuesday afternoon when the ropes became undone and she fell on to the deck. She died later in hospital from multiple injuries. A family friend who started a gofundme campaign to help the family meet the costs of the tragedy said Ms Smith would be remembered for being ""a generous person and a ray of sunshine who brought laughter and music into the lives of those she met"". The memorial fund has so far raised more than ?6,183 (US $7,600) to help her family pay for the travel and funeral costs. Ms Smith wrote her own blog of her adventures called ""Flutingtootingbethany"" which talked of her passion for sailing, her experiences as a humanitarian worker in Dominica and her trips home to see family and friends in Wales. Foreign Office officials said: ""We are in contact with the authorities in Jamaica following the death of a British national in Portland and are supporting their family at this very difficult time.""", -2555,2017/3/16,http://www.bbc.co.uk/news/world-39279631,Islam: The world's fastest growing religion,,"Islam is the world's second-largest religion, after Christianity. But this could change if the current demographic trends continue, according to research published by the US-based Pew Research Center. Video producers: Suniti Singh and Tulika Bhatnagar; Video editor: Michael Latham; Images courtesy of AP/AFP/Getty BBC Monitoring reports and analyses news from TV, radio, web and print media around the world. You can follow BBC Monitoring on oTwitter and Facebook.", -2556,2017/3/16,http://www.bbc.co.uk/news/education-39267193,"Schools must do more on mental health, say School Reporters","Grace, 16, has been bullied for the past nine years, has moved schools twice, struggled with suicidal thoughts and taken medication for anxiety and depression.","Grace, 16, has been bullied for the past nine years, has moved schools twice, struggled with suicidal thoughts and taken medication for anxiety and depression. At one point, she says, ""there was no-one to turn to in the school and I felt so low I didn't want to go on"". According to research for BBC School Report, half of teenagers with mental wellbeing issues try to cope alone. And a third said they were not confident enough to speak to a teacher. At her lowest point, Grace made a ""suicide video"", which she posted on YouTube. ""I'd get beaten up every week,"" she says. ""Teachers wouldn't do anything. I even heard the teachers talking about me behind my back."" According to her mother, Sarah, Grace got some help through external music therapy and counselling but little support directly from her first two schools. Support is better at her third school, where she helps as an anti-bullying ambassador. She is also a member of the National Anti-Bullying Youthboard. ComRes researchers questioned a representative sample of more than 1,000 UK-based 11- to 16-year-olds for BBC School Report: They said the most important thing schools could do to support pupils' mental wellbeing was to provide someone trustworthy to talk to confidentially, but: Separate research on just over 700 teachers found: In January, Prime Minister Theresa May announced plans to transform attitudes to mental health, with a focus on children and young people. The plans include better links between schools and NHS specialist staff and mental health first aid training for every secondary school. Reacting to the School Report research, Edward Timpson, Minister for Vulnerable Children and Families, said the government would ""transform mental health services in schools"" and was commissioning research to help schools identify which approaches worked best. ""Growing up in today's world can be a challenge for children and young people, so it's vital that they get the help and support they need,"" said Mr Timpson.", -2557,2017/3/15,http://www.bbc.co.uk/news/business-39278435,Low carbon drive 'cuts household bills',"Britain's low carbon energy revolution is actually saving money for households, a report says.","Britain's low carbon energy revolution is actually saving money for households, a report says. Households make a net saving of ?11 a month, according to analysis from the Committee on Climate Change. It calculates that subsidies to wind and solar are adding ?9 a month to the average bill, but that rules promoting energy efficiency save ?20 a month. The finding will be challenged by groups which say the UK spends too much on renewable energy. But the committee, which advises the government, stands by its analysis, and forecasts a continuing trend of downward prices thanks to low carbon policy. The trend is being driven by government and EU standards for gas boilers and household appliances like fridges and light bulbs. These bring down carbon emissions and bills at the same time. It means households don't need to try specially hard to reduce energy usage - it just happens when they replace their old freezer. The report says bills are about ?115 lower in real terms since the Climate Change Act in 2008, having risen around ?370 from 2004 to 2008 as international gas prices rose. Gas and electricity use have been cut by 23% and 17% respectively, saving the average household ?290 a year. Many of the easy savings on highly inefficient devices have already been made, but the committee says it has been assured by manufacturers that more can be done. The authors predict an annual bill reduction of ?150 by 2030, driven by a mass switch to LED lights, and full take-up of more efficient condensing gas boilers. This, they say, would more than compensate for another ?100 a year rise from increased renewables deployment. ""What's interesting,"" said the committee chair Lord Deben, ""is that people aren't having to strive to make these savings. They could save much more energy if they consciously set about it."" One huge area for improvement is home insulation. The committee says to meet its target to abolish fuel poverty, the government must double current investment. Last week BBC News revealed that in order to meet targets to make all homes energy efficient, 25 million homes need to be refurbished by 2050 - that's 1.44 homes every minute, day and night. A recent report from the House of Lords Economic Affairs Committee said energy bills had been pushed up by ""poorly designed government interventions in pursuit of decarbonisation"". It said energy security rather than decarbonisation should be the priority. ""It's a very high price that is being paid [for renewables],"" said Lord Hollick, the committee chair. The climate committee said this analysis was unfair because it wrongly blamed renewables for rises in wholesale energy costs between 2004-2008. It insists that from 2008, when renewables policy started to bite, household bills have been more or less stable. Lord Deben said that, contrary to popular opinion, household bills in the UK were around average for Europe, although many households could still save ?200-300 a year switching from standard variable tariffs to the lowest available tariffs. But he agreed with the Lords committee that industry bills were too high, and urged ministers to examine whether the transmission networks or the wholesale electricity market are to blame. The government welcomed the report and said new policies on insulating homes would emerge before long. Claire Jakobsson from the manufacturers' organization EEF said: ""While the Committee is right to say low-carbon policies may not be the only factor reducing industrial output in some sectors, we believe it is a significant one - and one where government can act, especially in respect of costs which our competitors don't face."" Iain Wright MP, Chair of the Commons Business and Energy Committee, said: ""The government must be mindful of the burden that decarbonisation policies can place on businesses and ensure that they remain competitive. ""[But] the big energy companies are too quick to blame green policies from government for unjustifiable price increases. There are enormous opportunities in the UK moving to a low carbon economy."" Follow Roger on Twitter @rharrabin", -2558,2017/3/16,http://www.bbc.co.uk/news/uk-39287175,Marine A's colleagues speak about Taliban fighter killing,,BBC Panorama has spoken to several of the men who were with Sgt Blackman on the day he shot dead an injured Taliban fighter. This is their account of what happened. Sgt Blackman's murder conviction has now been reduced to manslaughter on the grounds of mental illness., -2559,2017/3/16,http://tass.com/world/935854,Minister says Turkish sanctions only apply to Dutch leadership,,"ANKARA, March 16. /TASS/. Turkey's Minister of European Union Affairs, Omer Celik, has said that individuals who are not linked to the Netherlands""?government agencies will not be affected by the sanctions imposed by Ankara. ""The Turkish and Dutch peoples have long-standing friendly ties and very close cooperation in business. However, the Dutch government is responsible for the wrong things that have happened. That is why the sanctions that have been imposed and possible future sanctions concern only the country's leadership,"" he told TASS. ", -2560,2017/3/16,http://tass.com/politics/935850,"Russia to assist Armenia-Turkey talks ""?Lavrov","Gradual restoration of Russian-Turkish relations will benefit security and stability in Transcaucasia, the Russian top diplomat says","MOSCOW, March 16. /TASS/. Russia will be prepared to provide active assistance to Armenia and Turkey when they sit down at the negotiating table, Russian Foreign Minister Sergey Lavrov said in an interview with the Armenian magazine Regional Post - Caucasus. The text of the interview was posted on the Russian Foreign Ministry's website on Thursday. The minister noted that Russia ""played an important role in restoring the relations between Armenia and Turkey during the active phase of this process in 2007-2009."" ""The collective efforts, first and foremost, those of Yerevan and Ankara, led to the signing in Zurich on October 10, 2009 of the Protocol on the Establishment of Diplomatic Relations and the Protocol on the Development of Bilateral Relations between the two countries in the presence of the Foreign Ministers of Russia, France and Slovenia, the U.S. Secretary of State and the EU's High Representative for Foreign Affairs and Security Policy,"" Lavrov recalled. Russia's top diplomat stated that ""the normalization process subsequently stalled and by now has come to a complete halt."" ""It is of principle importance, though, that the sides have demonstrated the ability to reach agreement and take serious and responsible decisions,"" he noted. ""I am convinced that Armenia and Turkey are able to resolve the current problems."" ""That said, quite a lot depends on themselves. After all, the quality of the politicians is measured not only by the depth of their realistic analysis of the objective difficulties, but also by their ability to be optimistic in order to fulfill the hopes and aspirations of their citizens. When Yerevan and Ankara sit at the negotiating table, Russia will be ready to provide them with most vigorous assistance,"" he emphasized. The minister added that the opening of the Armenian-Turkish border would benefit the entire region. ""We would most certainly welcome the opening of the Armenian-Turkish segment of the EAEU's external border for free movement of people, goods and services. This will obviously benefit the entire region,"" he said. Gradual restoration of Russian-Turkish relations will benefit security and stability in Transcaucasia, he went on.- Getting the Russian-Turkish ties out of months-long crisis will enhance trust and mutual understanding in the region, Lavrov said. ""We expect the gradual restoration of bilateral cooperation with Ankara to benefit peace, security and stability in Transcaucasia.""", -2561,2017/3/15,http://tass.com/economy/935848,Russian Direct Investment Fund negotiating creation of $1 bln joint fund with India,,"CHENNAI, March 16. /TASS/. Russian Direct Investment Fund (RDIF) is negotiating the creation of a joint fund with the Indian side worth $1 bln for financing projects in various sectors of the economy, mainly in the industry, Russia's Industry and Trade Minister Denis Manturov said Thursday as he is taking a trip to India. ""Currently we'r discussing the formation of a fund with investments amounting to $500 mln from each side. The Russian side will also be represented by RDIF,"" he said, adding that the project implies ""a potential use of the funds to finance projects in various sectors of the economy."".", -2562,2017/3/16,http://tass.com/politics/935846,Russia's National Guard rejects media reports about establishing cyber intelligence,"At the same time, the National Guard is taking all necessary measures to counter possible DDoS attacks on its information resources","MOSCOW, March 16. /TASS/. The Russian National Guard rejected information on Thursday that it had established a cyber intelligence unit. ""Untrue information about the National Guard continues to be spread in some media outlets. The news agency Rosbalt has disseminated false information today that the National Guard has allegedly set up a unit to deal with cyber intelligence to expose extremist threats,"" the National Guard's press office told TASS. Cyber intelligence is not within the scope of the National Guard's tasks, the press office said. At the same time, the National Guard is taking all necessary measures to counter possible DDoS attacks on its information resources, the press office said. ""Police Colonel Larisa Goryachko mentioned in the Rosbalt report holds the post of the head of the reference information department whose basic task is to gather and generalize statistical information referred to the activity of the National Guard. Other functions ascribed to it are the agency's conjectures,"" the press office said. The press office of the National Guard rejected information on Wednesday that Interior Ministry units for the struggle against extremism and state protection had been assigned to it. As First Deputy Director of the Federal National Guard Troops Service Colonel-General Sergei Melikov said, the National Guard's activity is defined by the Russian president's order of April 5, 2016 and the federal law of July 3, 2016. ""The National Guard troops do not have any other powers unstipulated by these regulatory legal documents,"" the general said.", -2563,2017/3/16,http://tass.com/world/935841,"Bus crash on Russia-Finland border leaves 3 killed, 27 injured",The Emergencies Ministry sent a Ka-32 helicopter to evacuate those injured in the crash,"ST.PETERSBURG, March 16. /TASS/. Three women were killed and 27 people injured as a tourist bus overturned in the Leningrad region near the Russian-Finnish border, a spokesman for the local emergencies services said on Thursday. ""The bus en route from St. Petersburg to (Finland's) Lahti carried 32 people, including two drivers,"" the spokesman said. The Emergencies Ministry sent a Ka-32 helicopter to evacuate those injured in the crash. Twenty seven people were taken to hospital in the town of Vyborg, some 30 km away from the border.", -2564,2017/3/16,http://tass.com/politics/935839,Moscow says normalization of Russia-Turkey ties not aimed at harming other states,"According to Lavrov, getting the Russian-Turkish ties out of months-long crisis will enhance trust and mutual understanding in the region","MOSCOW, March 16. /TASS/. Normalization of Russian-Turkish relations should not be viewed as a process that may harm other countries, Russian Foreign Minister Sergey Lavrov said in an interview with the Armenian magazine Regional Post - Caucasus. ""This normalization between Russia and Turkey should not be regarded as a process that may harm other states,"" Lavrov said. ""Russia has no hidden agenda. We build no political and no economic alliances directed against third countries or adversely affecting any interests.""- ""In general, we are open for constructive and mutually respectful cooperation with all who express same readiness,"" Russia's top diplomat stressed. Getting the Russian-Turkish ties out of months-long crisis will enhance trust and mutual understanding in the region, Lavrov said. ""We expect the gradual restoration of bilateral cooperation with Ankara to benefit peace, security and stability in Transcaucasia."" Relations between the two countries sharply deteriorated after a Turkish Air Force F-16 fighter jet downed a Russian Su-24 bomber in the skies over Syria on November 24, 2015. Pilot Oleg Peshkov was killed by militants from the ground after ejecting from the aircraft. The navigator was rescued and taken to base. A Mi-8 helicopter involved in the rescue operation was lost and a contract marine was killed. Ankara claimed the bomber violated the Turkish airspace near the Syrian border. The Russian Defense Ministry said the warplane was flying over Syrian territory and had never violated Turkey's airspace. On November 28, Putin signed a decree imposing special economic measures against Turkey. On January 1, 2016, the bulk of sanctions against Turkey came into effect. Turkish President Recep Tayyip Erdogan apologized in late June 2016 for the incident and relations between the two countries started normalizing.", -2565,2017/3/16,http://tass.com/politics/935826,State Duma speaker vows to develop Russian-French inter-parliamentary dialogue,The lawmaker also spoke out in favor of further development of inter-parliamentary ties and cooperation in economic development and the implementation of humanitarian projects,"MOSCOW, March 16. /TASS/. Speaker of Russia State Duma (lower house of parliament), Vyacheslav Volodin, promised to exert every effort to develop the Russian-French inter-parliamentary dialogue. ""We see that quite a few initiatives put forward by French lawmakers are aimed at developing relations. For our part, we will do our utmost to make sure that this dialogue develops,"" he said at a meeting with a delegation of French parliamentarians led by French National Assembly member, Thierry Mariani. Volodin also spoke out in favor of further development of inter-parliamentary ties and cooperation in economic development and the implementation of humanitarian projects. ""I know that you pay considerable attention to that,"" he told Mariani. ""We would like to request your support at PACE so that there is no discrimination of our national delegations,"" Volodin said. Volodin recalled that after Russia's delegation was stripped of its right to vote at PACE in April 2014, the parliamentarians refused to take part in the organization's activities until the regulation was changed to ""protect the rights of national delegations."" ""Democratic principles should be the basis of work of any parliamentary body, and moreover, the principles of parliamentarism must not be violated by any means. We believe that the parliament is a place where the sides discuss issues, voice different points of view and criticism, and if someone does not like it, then they should give arguments,"" Volodin stressed. ""When a whole parliamentary delegation is deprived of the right to vote, this contradicts the principles of democracy and the mere principles of the parliament. That's why we would like you to also know about our position, taking into consideration that we think (and PACE president shares this view) that there should be 47 delegations at PACE representing 47 countries, and not 46 as today due to the situation after we were deprived of the vote,"" he added.", -2566,2017/3/16,http://tass.com/science/935809,"More Russian women may be sent into space ""?Tereshkova","Hero of the Soviet Union and the first woman in space Valentina Tereshkova says 'like a bird cannot fly with one wing, the society cannot develop dynamically without the active participation of women'","LONDON, March 16. /TASS/. Russia has good prospects of launching more female cosmonauts into space, Hero of the Soviet Union and the first woman in space Valentina Tereshkova told reporters at the opening of an exhibition in her honor at London's Science Museum on Wednesday. ""Like a bird cannot fly with one wing, the society cannot develop dynamically without the active participation of women. There are very many clever, decent, smart and competent female specialists, who work in cosmonautics. It seems to me that we have a good prospect for sending more women into space,"" Tereshkova said. Tereshkova made the first space flight, which was almost three days long, on June 16, 1963, on board the Vostok-6 spaceship. Her flight opened the new era in the history of cosmonautics. After her, another 59 women were launched into space, and only three of them were from the Soviet Union and Russia - Svetlana Savitskaya, Elena Kondakova and Elena Serova. Tereshkova believes that the main reason why the Soviet Union and Russia sent only four women into space was because the Vostok program flights ended. ""A new spaceship was under development, but not very successfully at first, tests were carried out. This spacecraft was tested, Vladimir Komarov (Soviet test pilot) died. New flights were conducted, the crew died, and the spacecraft was upgraded""?And each time after another disaster our female team was moved aside""�that's the main reason - the spacecraft,"" she said. Tereshkova said the future of cosmonautics is first of all linked to the colonization of the Moon and then Mars. ""We need to think if some disaster on the Earth occurs, the mankind needs to search for a planet that will be more or less suitable,"" she said. The legendary cosmonaut, who turned 80 last week and is an MP of the State Duma, has shared her recipe for life: ""To work, work hard from dusk till dawn. I don""t have any other recipe. I remember that I have been working since 17 years of age. I was happy to be selected to the team of cosmonauts and have served many years in the air force."" The exhibition in London, ""Valentina Tereshkova: First Woman in Space,"" opened on March 15 and will last until September 16. It mainly focuses on Tereshkova's life outside space - her work at a plant and political career, and her passion for parachute jumping. Guests of the exhibition will see a documentary film, ""Legend of Valentina,"" made by the Science Museum and the ArtPoint foundation on occasion of her 80th birthday. The exhibition became one of the central events of the Year of Science and Education of the United Kingdom and Russia in 2017, organized by the British Council and the UK Embassy in Moscow. First woman in space ", -2567,2017/3/16,http://tass.com/world/935812,Russian sappers to test new demining equipment in Syria's Palmyra,More than 150 Russian sappers have arrived in Syria to take part in a mine clearance effort in Palmyra,"MOSCOW, March 16. /TASS/. Russian sappers will carry out demining activities in Syria's Palmyra using cutting-edge equipment and protective gear, Ruslan Alakhverdiyev, Deputy Chief of the Russian Armed Forces""?Engineering Troops, told the Rossiya 24 TV channel. ""As part of this work, we plan to use both in-service equipment and the equipment under development, which will help us facilitate the execution of the task and ensure safety of manpower. These are new protective suits, new search tools, robotic devices and exosuits,"" he said. More than 150 Russian sappers have arrived in Syria to take part in a mine clearance effort in Palmyra, the press service of the Russian Defense Ministry said on Thursday. Some 17 pieces of special equipment have been sent to Palmyra, the ministry said. In addition to the sappers, the group also includes canine teams. The city was liberated from the Islamic State terrorist group (outlawed in Russia) on March 2, and on March 10 Russia's General Staff reported that the first detachment of nearly 200 Russian sappers arrived in Palmyra. Ancient Palmyra after liberation from terrorists ", -2568,2017/3/16,http://www.dw.com/en/pretrial-conference-in-german-colonial-era-genocide-case/a-37943767?maca=en-rss-en-all-1573-rdf,Pretrial conference in German colonial-era genocide case,"In January, traditional Namibian leaders filed a complaint against Germany with a US court demanding compensation for colonial-era genocide. The judge and the plaintiffs' lawyers to meet in New York on Thursday.","Plaintiffs lawyers and the judge are to meet in New York on March 16 to discuss a possible class-action suit against Germany by Namibian traditional leaders. This pretrial conference enables the judge to discuss unresolved questions. It does not mark the start of the lawsuit, nor does it mean that proceedings will actually go ahead. Paramount- Chief Rukoro of the Ovaherero Traditional Authority-and Chief David Frederick of the Nama Traditional Authority want a US court to force the German government to include them in German-Namibian talks. First genocide The two countries are currently negotiating over how to deal with a legacy of-genocide in what was-German South West Africa in the early 1900s. German colonial troops were responsible for the deaths of more than 80,000 members of Herero and Nama ethnic groups.-These crimes are regarded as the first genocide of the 20th century.- Both the German and Namibian governments reject direct negotiations with the Herero and Nama. However, the plaintiffs' lawyer, Kenneth F. McCallion, told the media in New York that they should be at the negotiating table because legally they are the victims' representatives. They are also calling for compensation for damages suffered by their descendants during the genocide. ""In addition to the numerous, terrible murders, livestock and property were confiscated. Expropriation on such a large scale constitutes a violation of international law,"" McCallion said. Herero representatives gather on the hill from which German General Lothar von Trotha gave the order to open fire on October 2, 1904. Historians say this marked the start of the genocide. Legal uncertainties It can be difficult to bring about class-action suits in the United States on the basis of human rights violations. A suit-filed by Herero representatives against the German government and Deutsche Bank in 2001 was dismissed. Mia Swart, professor in international law at the University of Johannesburg, told DW It was possible though unlikely-that the court would accept this latest case. The plaintiffs are suing Germany under the Alien Tort Statute, also called the Alien Tort Claims Act, a-US law dating back to 1789 which is often invoked in human rights case. There was a time when US courts and lawyers interpreted this legislation as a means by which human right violations in foreign countries could be brought within the jurisdiction of US courts, but those days are believed to be over. 'Touch and concern' Nigerian citizens sued the oil giant Shell Royal Dutch Petroleum in the United States in 2006. They accused the company and its Nigerian subsidiary of perpetrating human rights violations in Nigeria's Ogoni region. With the help of the Nigerian government, Shell was alleged to have brutally repressed peaceful resistance to the extraction of oil in the Niger Delta. The case ended up in front of the Supreme Court in 2013. The court ruled against the plaintiffs because the case did not ""touch and concern"" the United States. Ruprecht Polenz: ""not suprised"" by the legal moves Since that ruling, the Alien Tort Claims Act has only been applied in cases which do concern the United States. McCallion believes nonetheless that his class-action suit will go ahead. He told Reuters in January that the act leaves the door open for US courts to assert jurisdiction in genocide cases.-Professor Swart is rather more cautious. ""It's also a question about the current mood in the US where there is no much openness to the use of- the Alien Tort Act anymore,"" she said.- It is possible that the Herero and Nama representatives are pursuing a two-pronged strategy. Irrespective of whether the class-action suit goes ahead or not, the case is bound to attract the media attention. When their lawyer announced the suit, both the British and US media covered the story. This puts indirect pressure on the German government, which has yet to officially apologize for the colonial-era-genocide. Herero and Nama representatives believe the mere threat of legal proceedings might encourage German officials-to settle out of court. ""And that might raise the issue of including the affected communities that feel they are excluded,"" Herero representative Esther Muinjangue told DW in Berlin last month.---- That scenario looks unlikely. When the complaint was filed with the US District Court in Manhattan in January, ""�​​​​​the German government appeared unruffled. Berlin's special envoy on the German-Namibian talks, Ruprecht Polenz, told DW at the time that the move had ""not surprised"" him.------------- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xns7", -2569,2017/3/16,http://www.dw.com/en/tillerson-reiterates-us-support-for-japan-and-south-korea/a-37957324?maca=en-rss-en-all-1573-rdf,Tillerson reiterates US support for Japan and South Korea,The US Secretary of State has told Japan the US supports it and South Korea in countering threats from North Korea. Recalibrating relations with China is also high n the agenda of his trip to Asia.,"US Secretary of State Rex Tillerson (pictured above left) began his first Asian tour on Friday, holding talks with Japan's Foreign Minister Fumio Kishida (above right) before a scheduled meeting with Prime Minister Shinzo Abe. ""Trilateral cooperation is critical as we address the issue of North Korea,"" Tillerson told Kishida. ""It is critical in particular as we address North Korea's nuclear and ballistic missiles programs,"" he added. US officials have become concerned by North Korea's accelerating progress towards building an intercontinental ballistic missile that could reach US mainland cities. President Donald Trump caused anxiety during his election campaign by suggesting US allies Japan and South Korea need to do more to defend themselves. But since taking office he has been careful to offer full support, a message that Tillerson reiterated, saying the US and Japan had an ""unwavering bond."" ""The US-Japan alliance remains the cornerstone of peace and stability in the Asia-Pacific region,"" Tillerson told Kishida, also stressing the importance of three-way cooperation with South Korea. Japan and South Korea both host tens of thousands of US troops. This week, the nations' three navies conducted missile defense information-sharing drills in the region. Kishida, meanwhile, thanked Tillerson for US backing. ""I highly value the fact that you chose Japan as your first place to visit in Asia,"" he said, adding that it indicates the ""importance"" the US attaches to the relationship. Tillerson travels to South Korea on Friday, before heading to China on Saturday, where he is expected to press China to help restrain North Korea. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yp7v China in loop State Department spokesman Mark Toner told reporters this week that efforts to convince China to pressure North Korea were the ""looming challenge"" in trans-Pacific relations. ""He's going to have an opportunity at every stop to talk about next steps or what we do now, with respect to North Korea,"" he said. In a news conference on Wednesday, China's Premier Li Keqiang said ""there are bright prospects for China-US cooperation."" This after-recent comments in which China's Foreign Minister Wang Yi implied the US and North Korea were equally at fault and moving towards a ""head-on collision."" Washington and Beijing have clashed in recent months over developments in the South China Sea, where the Chinese have been seen by the US as flexing their military and diplomatic muscles. Meanwhile, the Chinese government is concerned about Washington's decision to deploy the THAAD missile defense program in South Korea. Washington insists THAAD-is a defensive system deployed to protect the South and US bases, but China fears its advanced radar system undermines China's nuclear deterrent. Protests A small group of American expats protested outside the US embassy in Tokyo, demanding former ExxonMobil chief executive Tillerson respect the Paris climate change accord. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yvlc jbh/rt (Reuters, AFP, AP)", -2570,2017/3/16,http://www.dw.com/en/us-dollar-squeezed-by-cautious-fed/a-37957606?maca=en-rss-en-all-1573-rdf,US dollar squeezed by cautious Fed,"The US currency has suffered painful losses in Asian trading while sovereign bonds gained strongly after the US Federal Reserve raised interest rates, but signaled no pick-up in the pace of tightening.","Asian investors breathed a sigh of relief on Thursday as fears for faster US interest rate hikes diminished and political upheaval in Europe failed to materialize. CitiFX strategist Steven Englander said the decision by the US Fed to boost interest rates would lower the risk in financial markets for the coming months. ""Buy emerging market FX [foreign exchange], equities, commodities,"" he advised investors in a note. After a much-anticipated meeting the US central bank lifted borrowing costs by a quarter of a point but suggested only another two rises this year, confounding talk of a possible three or four. The US central bank has increased its benchmark interest rate for the first time since last December. Analysts said the move was overdue and reflected a buoyant economy and higher consumer prices. (15.03.2017) President Donald Trump's administration will face its first huge challenge on the budget front when the measure to suspend the limit on the amount of money the federal government is allowed to borrow soon lapses. (15.03.2017) US Fed chair Janet Yellen considers changes in fiscal policy under the Trump administration as factors adding ""uncertainty"" to the US economic outlook, as she played down expectations for a March interest rate rise. (14.02.2017) Fed boss Janet Yellen also said that while President Donald Trump's planned big-spending, tax-cutting plans could fuel growth and inflation, she would keep a wait-and-see attitude before making any decisions on how to shape monetary policy. Stock markets gain The news, which came with an upbeat assessment of the world's top economy, fired US stocks and sent the greenback tumbling in US trade. On Thursday, Hong Kong stocks were up 1.7 percent, Shanghai adding 0.8 percent and Seoul advancing 0.8 percent. Sydney ticked up 0.2 percent and Singapore was 0.8 percent higher, while there were also big gains in Wellington, Taipei, Jakarta and Manila. ""Whether folks agree or disagree with the need to hike, the key here is that the Fed has signaled to markets, and importantly US and global businesses, that it is in control and the economy is moving as expected,"" said Greg McKenna, chief market strategist at AxiTrader, in a note. Dollar doldrums The Fed said its inflation target was ""symmetric,"" indicating that after a decade of below-target inflation it could tolerate a quicker pace of price rises. That was painful news for bond bears who had built up huge short positions in Treasuries in anticipation of a hawkish Fed. Yields on two-year notes were down at 1.30 percent, having fallen 8 basis points overnight in the biggest daily drop since June last year. The drop pulled the rug out from under the dollar, whichsank to a three-week low of 100.510 against a basket of currencies. The euro was taking in the view at $1.0727, having climbed 1.2 percent overnight in its steepest rise since June. The dollar suffered similar losses on the yen to huddle at 113.38. Richard Franulovich, a forex analyst at Westpac, noted the absence of any overt hawkish guidance from the Fed and their dots should leave the dollar trading on the back foot over the next month. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZG5v uhe/kd (Reuters, AFP, dpa) -", -2571,2017/3/16,http://www.dw.com/en/moroccan-king-sacks-pm-to-unblock-impasse/a-37957130?maca=en-rss-en-all-1573-rdf,Moroccan king sacks PM to unblock impasse,The king of Morocco has sacked his PM after months of impasse that undermined Morocco's reputation for political stability. The unusual move may indicate a strengthening of the monarch's role in the fledgling democracy.,"After five months of talks on building a-coalition government, King Mohammed VI formally called it a day on prime minister, Abdelilah Benkirane (pictured above), the royal palace announced in a statement on Wednesday evening. ""Talks on forming a coalition government have ended in failure,"" the statement read. ""To break the current deadlock, the king has decided to appoint another member of the PJD (Justice and Development Party) to lead the government within the shortest time possible,"" the statement read. The king had-""repeatedly urged Benkirane to accelerate the formation of the new government,"" it continued.- The king tasked Benkirane with forming a new government after the PJD -won the most-seats in October 2016 elections, but not enough to govern alone and has struggled to form a coalition with rival parties. King Mohammed VI of Morocco. Benkirane on fragile ground - Negotiations stalled in January between Benkirane and Aziz Akhannouch, secretary-general of the National Rally of Independents party (RNI), and Mohand Laenser, secretary-general of the Popular Movement, both junior-coalition partners. Analysts say the move appears to be the result of political-manoeuvring-by the monarchy to force the PJD into ceding key ministerial posts. Benkirane has faced opposition from Akhannouch, and a billionaire former agriculture minister who is close to the king. However, with the PJD retaining control over the formation of the new government the king clearly wants to retain leverage within the democratic changes taking place. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2WkxU jbh/rt (AFP, AP)", -2572,2017/3/16,http://www.dw.com/en/turkey-threatens-to-unilaterally-suspend-eu-refugee-deal/a-37957097?maca=en-rss-en-all-1573-rdf,Turkey threatens to unilaterally suspend EU refugee deal,"Days before the first anniversary of the deal, Turkey's top diplomat has vowed to ""cancel"" it if the EU fails to deliver on its part of the agreement. Relations with Germany and The Netherlands have taken a dive.","Turkey's EU accession process may be temporarily suspended if Erdogan is granted sweeping powers next month. The deterioration in the rule of law in Turkey is moving the country away from Europe. Turkey's Foreign Minister Mevlut Cavusoglu late Wednesday threatened to suspend a refugee deal with the EU amid a widening diplomatic spat with Germany and The Netherlands. ""We may cancel the readmission agreement. The EU has been wasting our time on the visa liberalization issue. We are not applying the readmission agreement at the moment, and we are evaluating the refugee deal,"" Cavusoglu said during a televised interview with 24 TV. Cavusoglu's remarks come days before the one-year anniversary of a deal-between Brussels and Ankara that would allow for irregular migrants in Greece to be returned to Turkey in exchange for Syrian refugees hosted in the Anatolian nation. Under the deal, Brussels said it would speed up EU accession talks and visa liberalization for Turkish nationals. However, relations between the EU and Turkey have soured after Germany-and The Netherlands prevented Turkish politicians, including Cavusoglu, from campaigning for a referendum slated for April that could expand Erdogan's powers as president. In late 2014, with the war in Syria approaching its fourth year and Islamic State making gains in the north of the country, the exodus of Syrians intensified. At the same time, others were fleeing violence and poverty in countries such as Iraq, Afghanistan, Eritrea, Somalia, Niger and Kosovo. Vast numbers of Syrian refugees had been gathering in border-town camps in neighboring Turkey, Lebanon and Jordan since 2011. By 2015, with the camps full to bursting and residents often unable to find work or educate their children, more and more people decided to seek asylum further afield. In 2015 an estimated 1.5 million people made their way on foot from Greece towards western Europe via the ""Balkan route"". The Schengen Agreement, which allows passport-free travel within much of the EU, was called into question as refugees headed towards the wealthier European nations. Tens of thousands of refugees were also attempting the perilous journey across the Mediterranean on overcrowded boats. In April 2015, 800 people of various nationalities drowned when a boat traveling from Libya capsized off the Italian coast. This was to be just one of many similar tragedies - by the end of the year, nearly 4,000 refugees were reported to have died attempting the crossing. Countries along the EU's external border struggled to cope with the sheer number of arrivals. Fences were erected in Hungary, Slovenia, Macedonia and Austria. Asylum laws were tightened and several Schengen area countries introduced temporary border controls. Critics of German Chancellor Angela Merkel's ""open-door"" refugee policy claimed it had made the situation worse by encouraging more people to embark on the dangerous journey to Europe. By September 2016, Germany had also introduced temporary checks on its border with Austria. In early 2016, the EU and Turkey signed an agreement under which refugees arriving in Greece could be sent back to Turkey. The deal has been criticised by human rights groups and came under new strain following a vote by the European Parliament in November to freeze talks on Turkey's potential accession to the EU. With anti-immigration sentiment in Europe growing, governments are still struggling to reach a consensus on how to handle the continuing refugee crisis. Attempts to introduce quotas for the distribution of refugees among EU member states have largely failed. Conflicts in the Middle East and elsewhere show no signs coming to an end, and the death toll from refugee sea crossings is on the rise. Author: Rachel Stewart 'Scared of migrants' Turkish President Recep Tayyep Erdogan responded to The Netherlands' decision to ban a rally in Rotterdam by claiming that a ""spirit of fascism"" was sweeping across Europe. ""Europe is heading towards being drowned in its own fears,"" Erdogan said during a televised speech. ""Turkophobia is mounting. Islamophobia is mounting. They are even scared of migrants who take shelter there."" Ankara also suspended high-level relations with Amsterdam and blocked the Dutch ambassador to Turkey from returning to his post after leaving the country. More than one million migrants entered the EU in 2015, many of them fleeing conflict and extreme poverty in the Middle East, Africa and Asia. Before closing the so-called Balkan route in early 2016, a significant portion of migrants arriving to the bloc departed from Turkey's Aegean coast. Despite criticism from human rights organizations, political leaders across Europe have hailed the refugee deal with Turkey as a successful maneuver, saying it helped de-escalate a widening political crisis between member states on how to tackle the wave of migration. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZG5U ls/ (Reuters, dpa, AFP)", -2573,2017/3/16,http://www.dw.com/en/european-leaders-breathe-easier-as-rutte-routs-wilders/a-37957091?maca=en-rss-en-all-1573-rdf,European leaders breathe easier as Rutte routs Wilders,"With his first-place finish in the Netherlands' elections, Mark Rutte has effectively halted the right-wing populist Geert Wilders. Messages - from the pithy to the idealistic - have been pouring in from across Europe.","Both the vote count tallies and the reactions poured in during the early hours of Thursday morning as politicians and individuals across Europe and the world took in the results of Wednesday's parliamentary election in the Netherlands. In what many considered to be a bellwether election for the European Union, the center-left Rutte clearly defeated Wilders in what many saw as a symbolic victory against European populism. Read: The Dutch election as it happened With 54 percent of the vote counted, the projected results indicated Rutte scored a commanding victory, earning 33-out of the Dutch parliament's 150 seats. Many European leaders offered congratulatory messages to the acting Dutch prime minister, who will now stay on in office for a third term. But just as many chose to highlight Wilders' defeat, framing his party's second place finish with 20-seats - far below the 30-odd seats he had been predicted to win - as a resounding success for the unity and democratic values of a European Union-battered by populism from both within and outside the bloc. The response from Berlin German Chancellor Angela Merkel phoned Rutte to offer her congratulations as well as her readiness to work with him and his new government, which he will now have to form with parliamentary alliances.- Merkel faces her own electoral test in September when Germans will cast their votes for the national parliament. The head of government from the Christian Democratic Union (CDU) will seek to remain in office, though her primary rival and current coalition partner's candidate Martin Schulz has been polling neck and neck with her. Schulz, a member of the Social Democratic Party, took to Twitter to celebrate Wilder's defeat. ""I am relieved,"" the former EU parliamentarian wrote. ""But we must continue to fight for an open and free Europe!"" Germany hosts its own populist party, the Alternative for Germany (AfD), whose success has been fed by the arrival of over a million refugees and migrants to Europe since 2015 and fears of terrorism linked to Islam. However, the party has been struggling in recent polls due to internal divisions. France up next for elections Outgoing French President Francois Hollande welcomed Rutte's victory as a triumph against extremism.- ""The President of the Republic warmly congratulates Mark Rutte for his clear victory against extremism,"" Hollande said in a statement issued by his office.-""The values of openness, respect for others and faith in the future of Europe are the only real response to the nationalist impulses and isolationism that are shaking the world,"" French Foreign Minister Jean-Marc Ayrault applauded the Dutch people for ""stemming the rise of the far-right."" His tweet also expressed ""willingness to work for a stronger Europe."" France is the next country in Europe to confront its own right-wing populist movement in spring presidential elections. Polls currently show the National Front's Marine Le Pen winning the first-round of voting in April but falling short in the May run-off. However, a seemingly never-ending scandal that has engulfed conservative candidate Francois Fillon and a newly launched probe into travels undertaken by the political youngster Emmanuel Macron means the election's course remains wide open. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZGQI 'A vote against extremists' Like Merkel, EU Commission President Jean-Claude Junker called Rutte to congratulate him on the win. ""A vote for Europe, a vote against extremists,"" Juncker told Rutte over the phone, according to the EU politician's spokesperson. The euroskeptic and anti-immigration Wilders had called for the Netherlands to exit the European Union, saying in a debate one day before the election that ""Nexit"" would be ""the best thing that could happen"" to the Dutch people. The Italian Prime Minister Paolo Gentiloni similarly framed Wilders defeat as a win for pro-EU forces, writing on Twitter ""No Nexit. The anti-EU right has lost the elections in the Netherlands."" Gentiloni will be one of the European leaders who will meet on March 25 in Rome to celebrate the 60th anniversary of the bloc's founding as the European Economic Community. Perhaps the most straight-forward and succinct Tweet came from Scottish First Minister Nicola Sturgeon. In response to Rutte's victory and Wilders' defeat, the leader of the Scottish National party simply tweeted ""Good."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZGLf cmb/sms (AFP, Reuters, dpa)", -2574,2017/3/16,http://www.dw.com/en/germany-is-below-average-in-tackling-population-decline/a-37952395?maca=en-rss-en-all-1573-rdf,'Germany is below average in tackling population decline',"Chancellor Angela Merkel and four of her ministers are discussing the government's demography strategy at a summit in Berlin. Their record so far? Below average, says expert James Vaupel.","DW: A few years ago, Germany was fearing a population collapse. Was that just typical German angst? James Vaupel: Yes, it was mostly German angst.But not just German angst. People in Italy, Poland or Russia are concerned about population collapse as well. The population has started to decline in many countries. And if you extrapolate this into the distant future you can imagine the situation with a much smaller population. But it takes a long time. And over a period of many decades, public policies might change, people's attitudes might change. Has that happened recently in Germany? We have seen a sort of mini baby boom lately. If people had the number of children they want to have, then the typical German family would have more than two children. But the number is still much lower. Why? One problem is daycare. Another problem is combining employment with having a family. In [the former] West Germany, mothers are typically expected to stay home with small children. That is damaging for their career and their income. The government has been trying to tackle these issues. More daycare centers, longer parental leave - has that not had any impact? Dr. James W. Vaupel It has had a modest impact. But it is too little. When a young couple has a child, an enormous burden is put on the couple. And the government could do a lot of things to make that burden less. Denmark and Sweden, for example, do a much better job in helping young people have children than Germany does. In Denmark, there is long paternity and maternity leave. There is flextime-so that people can work a flexible number of hours per week. There are a lot of part-time work opportunities. And there is lots of daycare at a very low cost. How would you rate German policies - are we just OECD average, then? I think Germany is below average in terms of the help provided to young people. And Germany is certainly below average in the attitude that women with children should not work. In most countries it was like that 50 years ago but not today. That is just very detrimental to fertility. Is it up to refugees from Syria and other places then to fill the gap? Of course, a 20-year-old migrant can replace a baby that was not born 20 years ago. The difficulty with migrants is that it is very difficult to assimilate them. This is a major problem in many European countries. If you could change policies in Germany, what would you change first? The pension system. The age of retirement. One of the reasons why Germany doesn't have enough money to spend on helping families is that so much money is being spent on older people who do not work. If people worked longer, that would save a lot of money and would contribute to the economy. Germany could then spend more money on education, on health, on assimilating migrants, on defense, on research, if older people worked to a higher age. And how would you convince people to keep working? A very important thing would be to have more flexible working hours. If you want to encourage older people to stay in the workforce you need more part-time jobs, more flextime jobs, where you can pick the hours you want to work. There is still too much inflexibility in the German system. Dr. James W. Vaupel is the founding Director of the Max Planck Institute for Demographic Research in Rostock, Germany.", -2575,2017/3/16,http://www.dw.com/en/us-condemns-un-report-accusing-israel-of-establishing-apartheid-regime/a-37956831?maca=en-rss-en-all-1573-rdf,US condemns UN report accusing Israel of establishing 'apartheid regime',"Washington's ambassador to the UN has called for the damning report to be withdrawn immediately. The UN secretariat has distanced itself from the publication, saying it solely reflects the authors' views.","A US official has slammed the UN Human Rights Council's criticism of Israel, saying it tarnishes its credibility. The council has issued more than 60 resolutions condemning the Middle East nation's human rights record. A UN agency report published on Wednesday accused Israel of establishing an ""apartheid regime"" targeting Palestinians, prompting outrage from Washington and its closest ally in the region. ""The evidence supports beyond a reasonable doubt the proposition that Israel is guilty of imposing an apartheid regime on the Palestinian people, which amounts to the commission of a crime against humanity,"" the report said, citing international law for the finding. When asked about the report, UN spokesman Stephane Dujarric said the Economic Social Commission for Western Asia (ESCWA) - an agency comprised of 18 Arab states - published the report without consulting the secretariat. ""The report as it stands does not reflect the views of the Secretary-General (Antonio Guterres),"" said Dujarric, noting that the report solely reflects the authors' views. Israeli officials swiftly decried the report, with Foreign Ministry spokesman Emmanuel Nahshon comparing it to ""Der St��rmer,"" a Nazi propaganda publication filled with anti-Semitic rhetoric. ""The attempt to smear and falsely label the only true democracy in the Middle East by creating a false analogy is despicable and constitutes a blatant lie,"" said Israel's UN Ambassador Danny Danon in a statement. Washington said it was outraged by the report. US Ambassador to the UN Nikki Haley called for the report to be immediately revoked. - United Nations Security Council Resolution 242, passed on 22 November 1967, called for the exchange of land for peace. Since then, many of the attempts to establish peace in the region have referred to 242. The resolution was written in accordance with Chapter VI of the UN Charter, under which resolutions are recommendations, not orders. This picture, taken on March 26 1979, shows Egyptian President Anwar Sadat, his US counterpart Jimmy Carter and Israeli Prime Minister Menachem Begin after signing the peace treaty in Washington. A coalition of Arab states, led by Egypt and Syria, fought in the Yom Kippur or October War in October 1973. This war eventually led to the peace talks which lasted 12 days and resulted in two agreements. The US and the former Soviet Union came together to organize a conference in the Spanish capital city of Madrid. The discussions, which involved Israel, Jordan, Lebanon, Syria, and the Palestinians, who met with Israeli negotiators for the first time, achieved little, although it did create the framework for later talks. Negotiations, which took place in Norway, between Israel and the Palestinian Liberation Organization (PLO) resulted in the first deal between the two sides, the Oslo Accord. The agreement was signed in the US in September 1993. It demanded that Israeli troops withdraw from West Bank and Gaza and a self-governing, interim Palestinian authority be set up for a five-year transitional period. US President, Bill Clinton, invited Israeli Prime Minister, Ehud Barak, and PLO Chairman, Yasser Arafat, to discuss borders, security, settlements, refugees, and Jerusalem. Despite more detailed negotiations than ever before, no agreement was reached. The failure to reach a consensus at Camp David was followed by renewed Palestinian uprising. The Camp David negotiations were followed by meetings in Washington, then in Cairo and Taba, Egypt. They too were without results. Later, the Arab Peace Initiative was proposed in Beirut in March 2002. The plan called on Israel to withdraw to the lines of June 1967, so that a Palestinian state could be set up in the West Bank and Gaza. In return, Arab countries agreed to recognize Israel. The US, EU, Russia and the UN worked together as the Middle East Quartet to develop a road map to peace. In June 2003, Prime Minister Sharon and his Palestinian counterpart Mahmoud Abbas, accepted the road map, with the Security Council also approving it in November. The timetable called for the final agreement to be reached in 2005. Unfortunately, it was never implemented. In 2007, US President George W. Bush hosted a conference in Annapolis, Maryland, to re-launch the peace process. Israeli Prime Minister, Ehud Olmert, and Palestinian Authority's President, Mahmoud Abbas, took part in talks with officials from the Quartet and over a dozen Arab states. It was agreed that further negotiations would be held with the goal of reaching a peace deal by the end of 2008. In 2010, special US Envoy George Mitchell's efforts led to Israeli Prime Minister Benjamin Netanyahu agreeing to and implementing a ten-month moratorium on settlements in disputed territories. Later, Netanyahu and Abbas agreed to re-launch direct negotiations to resolve all issues. Negotiations began in Washington in September 2010, but within weeks there was a deadlock. A new round of violence broke out in and around Gaza late 2012. A ceasefire was reached between Israel and those in power in the Gaza Strip, which held until June 2014. The kidnapping and murder of three Israeli teenagers in June 2014 resulted in renewed violence, and eventually led to the launch of the Israeli military operation, Protective Edge, which ended with a ceasefire on 26 August 2014. Envoys from over 70 countries have gathered in Paris, France, to discuss the conflict between the Israelis and Palestinians. Netanyahu has slammed the discussions as ""rigged"" against his country. Neither Israeli nor Palestinian representatives are attending the summit. ""A two-state solution is the only possible one,"" French Foreign Minister, Jean-Marc Ayrault, said at the opening of the event. Author: Aasim Saleem Trump at odds with UN Under the Trump administration, the US-relationship with the UN has been demanding. The White House has threatened to cut funding-for the international organization. Meanwhile, State Secretary Rex Tillerson told rights group that in a letter that the United States has considered quitting the UN Human Rights Council unless it undergoes ""considerable reform."" In the letter, the former Exxon executive said Washington would continue with its ""strong, principled objection to the Human Right's Council's biased agenda item against Israel."" ""While it may be the only such organization devoted to human rights, the Human Rights Council requires considerable reform in order for us to continue to participate,"" Tillerson said. Since its creation in 2006, the Geneva-based council has issued more than 60 resolutions condemning human rights abuses in Israel, which makes the US-membership contentious for Republicans and Democrats alike. Washington declined a seat on the council when it was formed over a decade ago. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1H0K3 ls/sms (AP, AFP, Reuters)", -2576,2017/3/16,http://www.dw.com/en/opinion-eu-must-tell-populists-you-don-t-scare-me/a-37956783?maca=en-rss-en-all-1573-rdf,Opinion: EU must tell populists 'You don't scare me',"Mission accomplished. The Netherlands has shown that populists can be stopped. With more elections on the way, Bernd Riegert writes that Europe must learn a lesson from the Dutch results.","Committed democrats in France, Germany-and other EU states can breathe a sigh of relief.- The Netherlands is-not sliding in the direction of ring-wing populism. The liberal prime minister remains in office while euroskeptic and Islamophobe Geert Wilders falls short of fears-or hopes, depending on one's perspective. After populist victories in Great Britain with-Brexit and in the United States presidential election, Dutch voters have sent a clear signal: the buck stops here.-The Austrians also - just barely - prevented a right-wing populist from becoming federal president,-though that remains a mainly representative office. Netherlands a signal for French-and German elections The elections in the Netherlands could have a major signaling effect for the presidential elections in France in May-and the parliamentary elections in Germany in September. The message being that populists can be stopped. Dutch voters apparently did not trust Geert Wilders to possess either the ability to govern well or statesmanlike finesse in the crisis with Turkey, if he somehow would have been in a position to make a decision. His recipes for the Netherland's problems proved half-baked, similar to what we are experiencing in the United States and Great Britain. No solutions from slogans Political campaigners in France and Germany must now make clear that populists-quite simply-have nothing to offer but slogans.- DW Europe correspondent Bernd Riegert The problem in France, however, is that the candidate of the middle class, Francois Fillon, is digging his own grave. Populist Marine Le Pen now has only one serious rival. When the French want to block Le Pen, they will have to elect the young independent upstart Emmanuel Macron. Germany faces a different situation. Buffeted by results from the Netherlands and by rational arguments, Chancellor Angela Merkel and other reasonable powers can perhaps accomplish the unspeakable impossible - to keep the Alternative for Germany (AfD) as small as possible. Shifts along the political spectrum However, containing-right-wing populists comes at a price. At least in the Netherlands, Mark Rutte's liberal party (VVD) has shifted notably towards the right. It struck more nationalist tones in order to take the wind out of Geert Wilders' sails.- The right-wing populists may not have won, but they still influence the political agenda and the behavior of the neighboring conservatives and the liberal forces in the political spectrum. Rutte also had a stroke of sheer luck and politically profited from the full-blown hysteria of the Turkish president and his unbelievable comparison of the modern-day Dutch to the Nazis as well as genocide accusations that caused voters to rally behind their government. Rutte shone with a hardline approach. All thanks to Erdogan.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZBbn The EU must take heed For the European Union, the Dutch elections-mean-the bloc-now must not bury its head in the sand. Instead, it should use the momentum coming out of the Netherlands. At the union's birthday summit meeting next week in Rome, EU leaders must provide a united answer to frustration and populist tendencies. Negative developments in Hungary and Poland, not to mention the left-wing populist Greek government, must be clearly called out and shut down. Voters in the Netherlands stopped the wave of populism. Now the EU needs to build more breakwaters. Have something to say? Share your views in the comments below. The comment thread closes automatically 24 hours after this article's publication.", -2577,2017/3/16,http://www.aljazeera.com/news/2017/03/trump-budget-military-wins-environment-aid-lose-big-170316054456207.html,"Trump budget: Military wins, environment, aid lose big",Pentagon set to be major winner while state department and federal programmes in for steep reductions. 'Drastic cuts',"Donald Trump will ask US Congress for drastic cuts to many federal programmes as he seeks to increase defence spending and spend more money deporting illegal immigrants. In a plan designed to translate campaign promises into dollar and cent commitments, the Republican president proposed a 28 percent cut in state department funding. That could be a signal for steep reductions in foreign aid and funding to UN agencies, with knock-on effects around the world. The Pentagon will be the major winner with a nearly 10 percent boost. The US defence budget is already greater than that of the next seven nations combined. Separately, about $4bn will be earmarked this year and next to start building a wall on the US southern border. Trump has repeatedly claimed that Mexico will pay for that wall - which will cost at least $15bn, according to estimates by the Bernstein Research group, a consultancy firm. Trump's proposal covers only a fraction of the $3.8 trillion federal budget - which is dominated by health, pension and other baked-in costs. The text will be heavily revised and enlarged on by Congress, before a full budget is released around May. In that sense, the plan is as much a political statement as a fiscal outline: a fact not lost on the White House. ""This is a hard power budget, it is not a soft power budget,"" Mick Mulvaney, White House budget chief,-said. The former Congressman said he scanned Trump's campaign speeches for inspiration. The budget could be a signal to Trump's supporters that he is a ""man of action"" and not a ""typical politician"". READ MORE: Trump 'seeks $54bn increase' in military budget Security has been a major vote winner. An Economist/YouGov poll found that 51 percent of Republicans believe the US will be safer from terrorism at the end of his term. The budget may also be seen as a signal to the world that Trump's US may be less engaged and will put ""America first"". Diplomats and some former defence officials have already sounded a warning that less spending on things like democracy promotion and humanitarian aid will spell more trouble, and military spending, down the road. More than 120 retired generals and admirals recently signed a letter warning ""that many of the crises our nation faces do not have military solutions alone"". They cited Jim Mattis, now defence secretary, as once saying ""if you don't fully fund the State Department, then I need to buy more ammunition"". The Environmental Protection Agency, which helps monitor air, water and other standards, will also see significant cuts. That is in keeping with Trump's promise to gut regulation. ""We believe that the core functions [of the EPA] can be satisfied with this budget,"" said Mulvaney. On Wednesday, Trump travelled to Detroit, the home of the US car-manufacturing industry and announced he will freeze targets to limit future vehicle emissions. READ MORE: Trump administration to 'empower' US police forces Steve Bannon,-Trump's top adviser, has promised a broader ""'deconstruction of the administrative state"". But Trump's plan is already facing criticism from Democratic politicians. ""It will prescribe drastic cuts in many of the programs and agencies that keep America safe, whether it's environmental programmes, whether it is food safety, drug safety,"" said John Yarmuth, Kentucky representative. The senior member on the House of Representatives budget committee speculated that the proposal could be a negotiating position, an opening salvo in Trump's ""art of the deal"". ""If they want to negotiate with the health and safety and future of the American people, then that's pretty cynical,"" he said. Source:-News agencies", -2578,2017/3/16,http://www.aljazeera.com/news/2017/03/philippine-vp-bullets-stop-illegal-drug-170315151903974.html,Philippine VP: Bullets can't stop illegal drug use,Leni Robredo urges Filipinos to 'defy incursions on their rights' as she denounces president's bloody anti-drug war.,"The Philippine vice president has raised an alarm about the country's bloody crackdown on illegal drug use, saying it can't be solved ""with bullets alone"" and adding that Filipinos should ""defy brazen incursions on their rights"". Vice President Leni Robredo's comments, some of her sharpest critiques so far of Rodrigo Duterte's anti-drug campaign, are likely to antagonise the brash-talking president. In her speech, which will be shown at a UN-linked forum on extrajudicial killings on Thursday, she raised concerns about a lack of transparency and accountability in Duterte's crackdown, and the- mounting number of killings, which she described as ""summary executions"". Since July last year, more than 7,000 people have been killed, Robredo said in the video. ""We are now looking at some very grim statistics,"" she added. INTERACTIVE: Who's liable for the mounting death toll? Robredo, who belongs to the opposition Liberal Party,-said-she had received several complaints from residents who had-been rounded up by police, and told they had no rights to demand search warrants as they were living illegally on land they didn't own. She said-Filipinos should demand greater transparency in the publicly funded campaign and ask ""why no one is being held accountable"", citing what she said were hundreds of complaints filed with the Commission on Human Rights, which recommended that the Department of Justice file criminal complaints. National police spokesman Senior Superintendent Dionardo Carlos said the allegations, if true, violated police policy and should have been reported to authorities so they could investigate. ""If these are happening, or have happened, our request is for specifics because these are not sanctioned,"" Carlos said. READ MORE: Children and Duterte's drug war - Lessons from the past Robredo said she publicly asked Duterte ""to direct the nation towards respect for rule of law, instead of blatant disregard for it"". ""We ask him to uphold basic human rights enshrined in our constitution, instead of encouraging its abuse. We also ask the Filipino people to defy brazen incursions on their rights,"" she added. Duterte and his national police chief have said they do not condone extrajudicial killings, but have repeatedly threatened drug suspects with death in public speeches. Last month, rights group Amnesty International accused police of behaving like the criminal underworld they are supposed to be suppressing, systematically targeting the poor and defenceless, recruiting paid killers, stealing from the people they kill, and fabricating official incident reports. Source:-AP news agency", -2579,2017/3/16,http://www.aljazeera.com/indepth/opinion/2017/03/muslim-ban-ethnic-cleansing-america-170314135102604.html,,,"The Muslim ban did not happen in one day - and it means more than one thing. The Muslim ban did not happen last January or later in March.-It happened a long time ago - day after day, piece after piece, one slander after another, systematically, consistently, with liberal laughter and conservative malice alike. The Muslim ban was Trump's triumphant finale of a chorus long echoed in the sinuous xenophobic labyrinth of a nation always in denial of its own foreign origin, too eager to imagine and identify itself as ""white"" to demonise and expel from the shadow of its own fears all its colourful differences. Trump is no aberration. Trump is a culmination.-He is a salesman. He knows what sells in the United States, and he sells the cultivated hatred of Muslims because he knows he has customers. From Michele Bachmann and Pamela Geller, to Bill Maher and Sam Harris, from Bernard Lewis to Daniel Pipes, all have been drumming up customers for Trump's fearmongering against Muslims for a very long time. Laser-beaming on and demonising Trump for taking full advantage of marketing conditions, the liberals and conservatives have come together to create the conditions that have allowed Trump's xenophobia to flower in even more bitter and stranger fruits. The Muslim ban is not merely against those unknown numbers who can no longer come to the United States.-The Muslim ban is far more a condemnation of those known Muslims who are already here - immigrant, naturalised, or US-born. It is to suspend their constitutional protections and Bill of Rights, turn them into strangers in their own land if they are naturalised or US born.-It is to wag Trump's finger at them and all other Muslim immigrants and tell them that they will never be ""American"". The Muslim ban is here to intimidate, frighten, and silence them into obedience, leading to the eradication of any trace of their character and culture.-They will not be allowed to add their sign and signature to what it means to be ""American"".-As a noun, ""American"" is and it is to remain white. The Muslim ban is to silence American Muslims into accepting the final theft of Palestine. There is a link between the Muslim ban and the appointment of a zealot settler colonialist as the next US ambassador to Israel.-There is a link between the Muslim ban and the presence of another committed settler colonialist in the Oval Office as Trump's son-in-law and a key adviser. OPINION: The US Muslim ban and the story of my Iraqi father The Muslim ban is here to make an example of them for any other non-white, non-Christian immigrant, never to dare to stand up and claim a pride of place. Every man, woman and child must look like Trump and his family - speak as they do, think as they do, dye their hair blonde if they have to, starch their skin white, wear colourful contact lenses if they must and preferably sport Ivanka Trump's merchandise to prove their patriotism. The Muslim ban is the first strike towards the militant whitening of America. ""A close look at what the administration has been doing since the now-infamous executive order was issued on January 27 - banning travellers and refugees from seven Muslim-majority nations,"" it has been rightly suggested , ""reveals a clear intent from Trump's inner circle to depopulate the United States of Muslims."" The depopulation of Muslims is the singular sign of an ideological project for the systematic ethnic cleansing of America. ""The Real Goal of Trump's Travel Ban Is to Make America White Again,"" another headline correctly diagnoses this terrorising decision. ""White House adviser Stephen Bannon insists that Muslims don't have the right 'DNA' for democracy."" Calling Trump's immigration policies ""ethnic cleansing"" has been in the air soon after his election and even before he assumed office and began implementing his vociferous campaign promises. We are an affirmation - all in our own differently defiant ways and our very existence is the undoing of the very pernicious myth of 'white people' that for the longest time has sustained the unending course of conquest and plundering of this forever immigrant country. - Taking a page from the Zionist playbook, Bannon has expanded the puritanical epithet to white Christianity in the US: ""When two-thirds or three-quarters of the CEOs in Silicon Valley are from South Asia or from Asia, I think ""?a country is more than an economy. We're a civic society,"" he is reported to have said. That ""civic society"", that ""nation"", for Bannon and his fellow storm troopers is white, it is Christian and it is now militantly triumphalist. It is imperative to see the Muslim ban as integral to the rest of Trump's white supremacy project for America as an exclusively White Anglo-Saxon Protestant (WASP) ""nation"". We Muslims now - as have Native Americans of this land for ever, then blacks, followed by Latinos and Asians - pollute Bannon's puritanical white supremacy conception of ""his nation"". For him we have become the pariah, the untouchables, the Dalits, outside the fourfold of humanity.-The Muslim ban declares Muslims as Muslims as ""bare life"", as Italian critical thinker Giorgio Agamben calls it, we have become ""homo sacer"". The Muslim ban is therefore immediately related to the proposed building of a wall along the US southern border specifically designed on the Israeli apartheid wall keeping Palestinians outside their own homeland. OPINION: How Muslim Ban incites vigilante Islamophobic violence Trump's remarks against Mexicans being criminals and rapists just because they are Mexicans echoes similar remarks against Muslim being ""terrorist"" just for being Muslims. Muslims and Mexicans are now the two bookends of the Trumpian dystopia.-But there are many other layers in between. The Muslim ban is equally integral to the systematic gutting of the public schools by Trump's Secretary of Education Betsy DeVos for these schools primarily cater to the poor and disenfranchised among black and Hispanic communities. She intends to keep these schools underfunded, dilapidated, dispirited, so they would not educate and raise the next generation of visible citizens with a sense of civic responsibility. DeVos' conception of public school is the self-fulfilling prophecy of all supporters of private schools for the rich and mass incarceration for the poor. She wants to see those who go to public school disappear from the public scene and and locked up in prisons, as her boss wants to see Muslims and Mexicans go back to where they came from and make America safe for white supremacy. The Muslim ban is equally integral to the continued theft and desecration of Native Americans' sacred lands for the sustained course of corporate greed leading the cause of predatory capitalism. Trump does not want to see the Comanche, Apache, Navajo, Pueblo, Sioux, Cree, Ojibwe, Chippewa, Aztec or California tribal nations proudly march in Washington against his greedy Dakota Access Pipeline. He wants them to disappear from the public sight as his supporters oppose seeing Muslim mosques or Jewish synagogues in public sight. This is what Trump and his neo-Nazi-like alt-right stormtroopers like Stephen Bannon, Stephen Miller and Sebastian Gorka, now all gathered at the White House will and want and intend - and the more they unleash their violent racism against all of us, the more the necessity of not allowing him to play one non-white group against the other. OPINION: All international laws Trump's Muslim ban is breaking We are not ""non-white"".-We are not ""their negro"", in the immortal words of James Baldwin.-We are people.-We are not a negation. We are an affirmation - all in our own differently defiant ways and our very existence is the undoing of the very pernicious myth of ""white people"" that for the longest time has sustained the unending course of conquest and plundering of this forever immigrant country. ""White people"" is a fictional code-name for one particularly violent group of settler colonialists who are dead-set determined to repress the fact that they are as much immigrants to this land as everyone else. Hamid Dabashi is Hagop Kevorkian Professor of Iranian Studies and Comparative Literature at Columbia University in New York. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2580,2017/3/16,http://www.aljazeera.com/news/2017/03/trump-travel-ban-170315211649844.html,Hawaii judge puts Donald Trump's travel ban on hold,Temporary restraining order from Hawaiian judge prevents new travel ban from going into effect on Thursday.,"A federal judge in Hawaii has put President Donald Trump's revised travel ban on hold, issuing an emergency halt to the order just hours before it was set to go into effect. The ruling by US District Judge Derrick Watson on Wednesday prevents the executive order from going into effect on Thursday. Hawaii argued that the new order will harm its Muslim population, tourism and foreign students. Ismail Elshikh, a plaintiff in the lawsuit, said the ban will prevent his Syrian mother-in-law from visiting. Watson concluded in his ruling that while the order did not mention Islam by name, ""a reasonable, objective observer ... would conclude that the executive order was issued with a purpose to disfavour a particular religion"". Speaking at a rally in Nashville, Trump called his revised executive order a ""watered-down version"" of his first. ""I think we ought to go back to the first one and go all the way, which is what I wanted to do in the first place,"" Trump said. He called the judge's block ""unprecedented judicial overreach"" and said he will take the case ""as far as it needs to go,"" including to the US Supreme Court. The Hawaii case was one of several that were moving through US courts on Wednesday brought by states' attorneys general and immigrant advocacy groups. Refugee resettlement agencies suing the government asked a federal judge at a hearing in Maryland to block the ban, arguing it discriminates on the basis of religion and violates the US constitution. EXPLAINED: How could Hawaii block Trump's travel ban? The president's executive order, which the administration says is necessary for national security, temporarily bars the entry of most refugees as well as travellers from six Muslim-majority countries. It replaces a January 27 order that Trump abandoned after it was blocked in court last month. Government attorneys argued that the replacement was revised substantially to address legal concerns, including the removal of an exemption for religious minorities from the affected countries. ""It doesn't say anything about religion. It doesn't draw any religious distinctions,"" said Jeffrey Wall, who argued for the justice department. Attorneys for the American Civil Liberties Union (ACLU) and other groups said that Trump's statements on the campaign trail and statements from his advisers since he took office make clear that the intent of the ban is to ban Muslims. Trump policy adviser Stephen Miller has said the revised order was designed to have ""the same basic policy outcome"" as the first. The new version of the ban affects fewer people than the initial ban. It applies only to new visas from Somalia, Iran, Syria, Sudan, Libya and Yemen. It does not apply to travellers who already have visas, or to green-card holders. Iraq, included in the first ban, was excluded. The next step in the legal battle will be for the Trump administration to take the case to the 9th Circuit Court of Appeals, which will either uphold or cancel the temporary restraining order. Courts will look at the intent of the law, not only the words of the executive order, said Danielle McLaughlin, a constitutional law scholar. ""Trump's campaign rhetoric was pivotal in the Hawaii court's decision, as it was in the earlier decisions halting his first travel ban,"" she told Al Jazeera. ""During his campaign, Trump promised a ban on Muslims entering the country. This is discrimination on the basis of religion, which is unconstitutional."" Besides discriminating against Muslims, the Maryland lawsuit argues that it is against federal law for the government to reduce the number of refugees allowed into the United States this year by more than half, from 110,000 to 50,000. Attorneys argued that if that aspect of the ban takes effect, 60,000 people would be stranded in war-torn countries with nowhere else to go. OPINION: How Muslim Ban incites vigilante Islamophobic violence In Washington state, US District Judge James Robart - who halted the original ban last month - heard arguments in a lawsuit brought by the Northwest Immigrant Rights Project, which is making arguments similar to the ACLU's in the Maryland case. Robart also is overseeing the legal challenge brought by Washington state. Attorney General Bob Ferguson argues that the new order harms residents, universities and businesses, especially tech companies such as Washington state-based Microsoft and Amazon, which rely on foreign workers. California, Maryland, Massachusetts, New York and Oregon have joined the claim. Washington and Hawaii say the order also violates the First Amendment, which bars the government from favouring or disfavoring any religion. On that point, they say, the new ban is no different than the old. Source:-Al Jazeera and news agencies", -2581,2017/3/16,http://www.aljazeera.com/indepth/features/2017/03/talking-love-revolution-war-torn-syria-170314061514378.html,Talking love and revolution in war-torn Syria Mariya Petkova,A Syrian couple reminisces about the Syrian revolution that brought them together. By,"Antakya, Turkey-- ""Freedom!"" was the first chant Lina Shamy shouted against the Syrian regime in April 2011. She remembers her eyes tearing when the word left her throat. She was only 21 when she joined students of Aleppo University during a protest. Anti-regime demonstrations had started in Daraa in mid-March and spread across the country. ""[The first protest I joined] was 20 April 2011,"" says Lina's husband, Youssef Moussa. As he tries to describe it, a lump in his throat muffles his words. His eyes tear and he pauses. ""The first protest is about breaking your personal fears,"" says Youssef. He was 25 years old when the revolution broke out. Like Lina, he was studying architecture at Aleppo University. ""The people want the fall of the regime!"" was the first chant he uttered that broke his fear of the regime. READ MORE: Syria's Civil War Explained Living under a regime that seemed omniscient and everlasting, constantly suppressing political dissent, many Syrians would not talk about politics or even think about it, Lina and Youssef say. Those first chants against the regime transformed their lives. Sitting in a cafe in the southern Turkish city of Antakya, both are overwhelmed with emotion as they reminisce about the Syrian revolution and the events of the spring and summer of 2011 they lived through just 100km away, in Aleppo. ""The revolution is life in all its aspects. It is the future,"" says Lina. In the first days of the revolution, as videos of protests across the country started appearing - from Daraa to Raqqa - Youssef would lock himself in his dorm room and download each one of them in a hidden folder on his computer. He says he would watch these videos and cry. Some people say that we got fed up after six years and it's enough. I disagree, after six years of all these people giving up their lives for us to live in freedom and dignity, I cannot leave. Lina Shamy, a Syrian activist He remembers vividly one video he saw in April 2011: A man by the name of Ahmed Beyasi standing in front of the camera with his ID describing the crackdown on a protest in the village of Beyda near the southern Syrian city of Baniyas (Tartous province). Ahmed spoke out after Syrian state media claimed that a video of soldiers kicking and humiliating protesters in his village was fake. ""He was the first one in Syria to have the courage to show his face in front of the camera and speak,"" Youssef says. Around the same time, Lina stopped going to the Faculty of Engineering to do school work. She says she couldn't stand listening to some of the students supporting Bashar al-Assad saying that the protesters deserved to die. Instead, she would stay at home and work to the sound of the revolutionary songs that were coming out of protests across the country. She says her favourite one was by Tariq al-Aswad, a protester who started singing during protests in Homs. He died in 2012 during a bombing by regime forces. Before the revolution, Lina and Youssef say they were both busy studying and planning how to leave Syria, where they saw no future for themselves. ""[Hafez al-Assad] built a strong military and security structure in Syria. People were even afraid of uttering his name,"" recalls Youssef. Lina says young people felt that the country did not belong to them. ""In school, we had to salute Hafez al-Assad every morning. He was a sacred omnipresent symbol: His image was in classrooms, in universities, in shops, all public buildings, everywhere we'd go. Everything belonged to Assad,"" Lina adds. She says it was her greatest fear that she would graduate and get employed in a bureaucratic state institution and live a routine life regulated to the minutia by the regime. The revolution not only wiped out this nightmarish scenario, but it also set her on a completely different life path. Taking up the revolution as her calling, Lina started living a precarious new life as an activist. But it was this new life that brought her together with her husband, Youssef. Although they both studied at Aleppo University at the same time, they did not meet until 2013. ""I was against marriage, to be honest,"" admits Youssef. He says he did not want to marry because he thought that the institution of marriage was burdened by ""bureaucratic"" customs and materialism. Meeting Lina and getting to know her while working with her on a project to improve housing in a refugee camp in northern Syria changed his mind. READ MORE: Searching for a light: Syrian children struggle with trauma ""I started thinking to myself, what do you want? And suddenly decided that I want to marry Lina,"" recalls Youssef. He proposed on WhatsApp. He sweated for half an hour before Lina responded with a ""yes"". They were married within a month, without the usual Syrian wedding pomp, but with a healthy dose of revolutionary spirit. ""The revolution created this marriage,"" says Youssef with conviction. ""I love him because he loves the revolution,"" adds Lina. The revolution got them together but it also separated them from many loved ones. They have lost a lot of friends and family members since 2011. ""In May 2011, a university friend went to his hometown Binnish [in Idlib province] on a Friday. On Sunday, he did not come back,"" recalls Youssef. His friend had joined a Friday protest which regime forces broke down, firing live rounds at the people. ""We received a video of him dying - red stains around the heart as he was taking his last breaths. It was our friend, who had been with us just the day before,"" says Youssef. That same year, he also lost his brother, who died after regime forces arrested him. ""Some people say that we got fed up after six years and it's enough. I disagree, after six years of all these people giving up their lives for us to live in freedom and dignity; I cannot leave,"" says Lina. Lina and Youssef lived in Aleppo throughout the months-long siege on the eastern part of the city. They say there were many moments in which they thought they would not see each other. They were some of the last people to leave the city. The loss of Aleppo was a big shock and put many supporters of the Syrian revolution into despair. ""We passed through the loss of Aleppo, the loss of a lot of territory, through psychological and physical illness. But the revolution is bigger than all this. It's bigger than losing an area or a battle,"" says Youssef. Neither are thinking of giving up on their activism. After a few weeks in Turkey, they are planning on going back to northern Syria to continue with their work. ""There is still hope. There is always hope,"" says Lina. Source:-Al Jazeera", -2582,2017/3/16,http://www.aljazeera.com/news/2017/03/king-mohammed-vi-ousts-pm-abdelilah-benkirane-170316044402539.html,King Mohammed VI ousts PM Abdelilah Benkirane,Royalist supporters reluctant to share power with Islamist party as Mohammed plans replacement for Abdelilah Benkirane.,"The king of Morocco is to appoint a new prime minister after five months of talks on forming a coalition government ended in failure,-the royal palace has announced. Mohammed VI took the decision ""in the absence of signs that suggest an imminent formation"" of a government and due to ""his concern about overcoming the current blockage"" in political negotiations, the royal statement said on Wednesday. Mohammed is expected to name another member of the Islamist Party for Justice and Development (PJD) to replace Abdelilah Benkirane. READ MORE: Morocco's February 20 movement: 'Demands still alive' Benkirane had been reappointed after the PJD, which first came to power in 2011, increased its share of the vote in October elections, maintaining its position as the biggest party. Under Morocco's election law no party can win an outright majority in the 395-seat parliament, making coalition governments a necessity in a system where the king still holds ultimate power. But the PJD's relations with a former coalition partner, the conservative Istiqlal party, soured over economic reforms, and talks over formation of a government with the centre-right National Rally of Independence (RNI) stalled. READ MORE: Moroccan pragmatism - A new chapter for Western Sahara Benkirane's efforts have met with resistance from parties that critics say are too close to the palace. Royalist supporters have been reluctant to share power with Islamists since Mohammed ceded some powers in 2011 to ease protests. The palace says the king maintains the equal distance from all parties and dismisses claims of royal interference. The PJD was the first Islamist party to win an election in Morocco and the first to lead a government after Mohammed - whose family has ruled Morocco since the early 1600s - gave up some of his power when thousands took to the streets in peaceful demonstrations inspired by the wave of uprisings across the Arab world. Source:-News agencies", -2583,2017/3/16,http://www.aljazeera.com/news/2017/03/dutch-pm-rutte-sees-anti-islam-wilders-challenge-170316033157988.html,Dutch PM Rutte sees off anti-Islam Wilders challenge,"With nearly all votes counted, Mark Rutte retains power in election seen as measure of populist support in Europe. 'Not rid of me yet' 'No Trumpian force'","Mark Rutte, the Dutch prime minister, has easily defeated his far-right rival Geert Wilders, partial vote counts show, in elections seen as a measure of populist support in Europe. With more than 93 percent of votes counted, Rutte's liberal VVD party was set to win 33 seats, making it the largest in the new 150-seat parliament, with Wilders and his Freedom Party (PVV) beaten into second place with 20 seats, the Dutch national broadcaster NOS said on Thursday. Millions of Dutch flocked to the polls in a near-record turnout, with the stakes high in an election pitting the pro-European Rutte against his anti-immigration and anti-EU rival. After last year's shock Brexit referendum and Donald Trump's victory in the US, the Dutch vote was being closely scrutinised as a gauge of the rise of populism on the continent ahead of crucial elections in France and Germany. OPINION: What can the Dutch elections tell us about Europe? ""This was the evening when The Netherlands, after Brexit and the American elections, said 'stop' to the wrong kind of populism,"" Rutte told supporters. ""Now of course it's important to unite the country in the coming weeks and months and that we succeed in forming a stable government for the next four years."" Relieved European leaders, fearing the rise of anti-EU sentiment in one of the bloc's founding members, congratulated Rutte, now headed for a third term at the head of the one the euro zone's largest economies. Jean-Claude Juncker, the EU Commission chief, praised the result as a ""vote against extremists"" while one senior European source told AFP news agency on condition of anonymity: ""Common sense strikes back."" Jean-Marc Ayrault, French foreign minister, congratulated Rutte for ""stopping the rise of the far-right"". Marine Le Pen, the French far-right candidate, is currently seen winning the first round of the presidential election in April. Wilders had pledged to close the borders to Muslim immigrants, shut mosques, ban sales of the Quran and leave the EU if he won the polls. He thanked his supporters in a message on Twitter, with his party set to boost its number of MPs to 19. The PVV won 15 seats in the 2012 elections, which had slipped to 12 in the outgoing parliament. ""We won seats. The first gains are made. And Rutte is not rid of me yet,"" he said. READ MORE: Who is who in the Dutch elections? Eyeing weeks, if not months, of protracted coalition talks ahead, Wilders offered early Thursday to work with the new government. ""I would still like to co-govern as the PVV, if possible. But if that doesn't work ... we'll support the cabinet, where needed, on the issues that are important to us."" Most of the other leaders, including Rutte have vowed not to work with Wilders, denouncing his incendiary rhetoric and his go-it-alone attitude. Rutte appeared to have benefited from his firm stance in a spiralling diplomatic spat with Turkey after authorities barred Turkish ministers from rallying support in the Netherlands for a referendum. Assuming the exit polls reflect the final result, Rutte will get the first chance to form the next coalition and could possibly turn to the Christian Democratic Appeal (CDA) and the Democracy party D66, which both matched Wilders with a predicted 19 seats. But with the three parties' combined total of 71 seats, he would need another party to reach the 76-seat majority. The ""PVV is not such a revolutionary, Trumpian force,"" Leiden University expert Geerten Waling told AFP. ""People stick to responsible politicians mostly,"" he said, acknowledging though that the PVV's showing was ""not small"". The analyst also pointed to the ""disastrous"" showing of the traditional Labour party, Rutte's sole partner in the outgoing coalition. Support for the party appears to have evaporated and the partial count showed it winning just nine seats - well down from the 38 it won in 2012. Labour leader Lodewijk Asscher told supporters late on Wednesday ""the voters have spoken, difficult as it is, but that is democracy"". One of the biggest winners of the day was the Jesse Klaver, the young leader of the ecologist leftwing GroenLinks. In a remarkable turnaround, the party is likely to win 14 seats compared to just four in the outgoing parliament. Source:-Al Jazeera and news agencies", -2584,2017/3/16,http://www.aljazeera.com/news/2017/03/trump-travel-ban-hawaii-block-170316024039712.html,Trump's travel ban: How could Hawaii block it?,A constitutional law scholar explains how a federal court could put the US president's immigration order on hold.,"Just hours before President Donald Trump's revised travel ban was set to go into effect, a federal judge in Hawaii issued a temporary restraining order,-putting the ban on hold. The ban would have-temporarily banned refugees as well as travellers from six predominantly Muslim countries. US District Judge Derrick Watson concluded in his ruling that while the order did not mention Islam by name, ""a reasonable, objective observer ... would conclude that the executive order was issued with a purpose to disfavour a particular religion"". Al Jazeera asked Danielle McLaughlin, a constitutional law scholar and lawyer at Nixon Peabody LLP in New York City, to explain the process and what will happen next. How could Hawaii block Trump's travel ban? This lawsuit was brought by an individual, an imam named Ismail Elshikh, as well as the state of Hawaii. A state can file a lawsuit in a federal court on behalf of its people. The state represents the interests of its people who have constitutional rights - including equal protection of the laws and protection against religious discrimination by the government. The state can also represent the interests of the business community and its own state-run universities. In deciding whether to temporarily stop the travel ban from going into effect, the court looked at whether the ban likely violated the constitutional rights of Hawaiians, and also at the ""balance of harms"" ""?whether the harm done to Hawaii and its people if the travel ban is implemented (which included loss of tourism dollars and damage to universities through loss of funds, students, and/or teachers) is greater or worse than the harm done to the national security interests the Trump administration is trying to protect if it is not. How can a federal court halt a president's executive order? Under the US constitution, power in the federal government is split between the president, the courts, and lawmakers. And because of the rights of citizens set out in the constitution (including freedom from religious discrimination), there are things a president simply cannot do. Ultimately, the court said the travel ban had to be halted because it was likely that it violated the constitutional rights of the people of Hawaii. What happens next? President Trump has said he will take the case ""as far as it needs to go"". The first step will be the 9th Circuit Court of Appeals, which will either uphold the temporary restraining order, or cancel it. The losing side - the Trump administration or the state of Hawaii - can appeal the Court of Appeals' decision in the Supreme Court. In court, is it only the text of the executive order that matters or will judges also look at statements made by the Trump administration? Courts will look at the intent of the law, not only the words. Trump's campaign rhetoric was pivotal in the Hawaii court's decision, as it was in the earlier decisions halting his first travel ban. During his campaign, Trump promised a ban on Muslims entering the country. This is discrimination on the basis of religion, which is unconstitutional. Taking certain language out of the executive order does not mean that the administration's intent can no longer be considered by a court. Source:-Al Jazeera News", -2585,2017/3/16,http://www.rte.ie/news/2017/0316/860130-coastguard-helicopter-search/,Poor weather may impede search for Coast Guard crew off Co Mayo,,"Poor weather conditions off the west coast this morning could hamper efforts to locate the black box flight recorder from a missing Coast Guard helicopter.- The multiple agencies involved in the search operation met last night-to discuss how best to progress their efforts ahead of today's resumption. The discovery was described as a significant step in the effort to locate the wreckage of R116. It lost contact with Malin Head Coast Guard base in the early hours of Tuesday morning and crashed soon afterwards. The main focus of the search operation is to locate three missing crew: Captain Mark Duffy, Winch Operator Paul Ormsby and Winchman Ciaran Smith A fourth crew member, Captain Dara Fitzpatrick, was recovered from the water off the Mayo coast on Tuesday morning but pronounced dead a short time later. Capt Dara Fitzpatrick died in the crash;the search continues for Capt Mark Duffy, winch operator Paul Ormsby and winchman Ciar��n Smith- Air Accident Investigation Unit inspectors will not speculate on possible causes, saying their task is to establish the facts. The entire investigation could take months to complete but priority is being given to locating the missing crew. The location where the signal was detected presents a number of challenges for search crews. Local fishermen say the currents of water around Blackrock are difficult to negotiate. In addition, there have been significant swells in the area in recent days. When the search resumes this morning, efforts will be made to home in on the signal that was detected yesterday evening. Sonar scanning technology will be employed to try and get an image of exactly where the signal is coming from. If the position can be determined, the next step is to try and get divers or a remotely operated vehicle to the black box. However, weather conditions are not forecast to be favourable for this work. Met ?ireann has a small craft warning, with southwest winds set to reach force 6 or 7. A heavy swell is expected on the west coast at times and the outlook is for rain and poor visibility on Friday. Search coordinators say that this could delay efforts to determine the exact location of the recorder and, in turn, the possible whereabouts of the helicopter wreckage. The involvement of local fishermen has been central to the search operation to date. Given the conditions at sea yesterday, specialist equipment had to be transferred on to local boats the Ros Anne and Bunacurry Lass, which were able to navigate closer to Blackrock Lighthouse than bigger vessels involved in the search. The Commissioners of Irish Lights has sent the Granuaile to the area where it will be on standby to assist the recovery operation. The vessel is fitted with a 20 tonne crane which will be used to lift the helicopter wreckage if it is located. Search operation off the Mayo coast aims to get better indication of where flight recorder lies. More on @rtenews pic.twitter.com/tt1gNrdXEn ""?Pat McGrath (@patmcgrath) March 16, 2017 The Chief Inspector with the Air Accident Investigation Unit, Jurgen Whyte, said the AAIU-believes the black box will be located with the wreckage of the helicoptor and there is a strong likelihood that the bodies of the missing crewmen will also be in that area as well.- Mr Whyte said the area they will be searching is very challenging. ""The general area that we're searching has areas of rock which protrude out of the water and, on either side, drops down to 40 or 50 metres in depth. ""The reason that we're focusing on the recorder is, we believe the recorder will be either in the wreckage or in close proximity to the wreckage. ""We also believe the likelihood is that the three missing persons will be in that area as well."" - Meanwhile, the Defence Forces has confirmed a request for it to provide top cover in the mission Rescue 116 subsequently crashed on, was logged at 10:06pm on Monday night, but the Air Corps was not able to carry out the mission as its fixed-wing aircraft was unavailable. The request was denied due to the fact it was outside normal hours and there was a lack of ""experienced personnel"" available.", -2586,2017/3/16,http://www.rte.ie/news/2017/0316/860136-politics-ireland-us/,Pence says White House committed to Irish peace process,,"US Vice President Mike Pence has stressed the enduring commitment of his country-to the peace process in Ireland. Mr Pence said he and President Donald Trump hoped the friendship across the Atlantic would grow and strengthen in their time in the White House. In an at times emotional speech, at a gala dinner in Washington, Mr Pence claimed that all he achieved in life was due to his own Irish heritage, and said-that Ireland and the US would always be entwined. ""We may be separated by an ocean but the American people have always been bound by kinship to the Irish people and we always will,"" he said. Taoiseach Enda Kenny was also among invited guests at the Ireland Funds America event. It was held ahead of Mr Kenny's first meeting with President Trump in the White House today. Mr Pence made clear the new administration was fully committed to securing the gains of the peace process. ""Tonight it's an honour to be here on behalf of President Trump to reaffirm the United States' enduring commitment to the Republic of Ireland, to Northern Ireland, to the peace process and above all else to the timeless and enduring friendship between our people and yours,"" he said. He said he wanted to ""congratulate"" the people of Northern Ireland for turning out to the polls in high numbers in the recent Stormont election. ""The advance of peace and prosperity in Northern Ireland is one of the great success stories of the past 20 years,"" he said. ""We thank those unsung heroes in Northern Ireland who day-in and day-out do the difficult and important work - strengthening communities, educating children, building that brighter future for the emerald isle and all who call it home."" Mr Pence spoke with fondness about his Irish grandfather Richard Michael Cawley, who emigrated to the US from Co Sligo in 1923. He said he thought about him repeatedly during inauguration day in January. ""As I stood on that inauguration stage I just kept thinking of that Irishman, kept thinking about what he would be thinking about looking down from glory,"" he said. He added: ""The truth is that whatever honours I will receive over the course of my service as vice president, to receive an honour in the name of the Irish people and my Irish heritage will count as chief among them because all that I am and all that I will ever be and all the service that I will ever make is owing to my Irish heritage."" In conclusion, Mr Pence said: ""So here's to Ireland, here's to the United States of America, here's to our shared heritage and here's to the confident hope that the ties between our people and the Irish people will only grow and expand as the years go on, to the betterment of our people and the world."" Mr Kenny then-presented the vice president with a roll book from a Co Sligo school that included the name of his grandfather. The Taoiseach spoke of the long and special relationship between Ireland and the US in his address. ""The vice president has joined the distinguished list of Irish-Americans who have occupied the highest political offices in the United States,"" Mr Kenny said. ""We take special pride in the fact that, for the first time in the history of this great republic, one Irish American has succeeded another in the office of vice-president. ""The United States now gives another immigrant son the opportunity to contribute to the wellbeing of our common humanity. I know you will grasp that unique opportunity with both hands."" Mr Kenny said that immigration is the main focus of his trip and pursuing a process where Irish people living in the US illegally can ""come in from the cold, and feel the warmth of this great country they have made their home."" The event was also addressed by Senator George Mitchell, the man credited with mediating Northern Ireland's historic 1998 Good Friday peace agreement. He used his speech to highlight the need for the US to adopt immigration policies that reflected the nation's founding values. ""Every rational American knows that we cannot return to the days of open immigration - there must be realistic limits on how many can enter and who they are,"" he said. ""But we must work together to develop policies that focus on how we can live up to our principles as a just, open and welcoming society. ""How we can focus on who we want to enter, not just who we want to keep out or throw out."" Mr Kenny will begin today with breakfast at the Vice President's residence, before the oval office meeting, a lunch on Capitol Hill with Irish-American congresspeople, before returning to the White House to present Donald Trump with the traditional bowl of shamrock to mark St Patrick's Day.", -2587,2017/3/16,http://www.rte.ie/news/2017/0316/860134-beacon-quarter-south/,Owners of Beacon apartments to pay �10k levy to fix defects,,"The management company in charge of Beacon Quarter South apartments in Sandyford in south Dublin has passed a proposal to levy owners an average of �10,000 each to fix building defects. A vote was taken at the management company Annual General Meeting, which lasted until almost 1am today. - The resolution dealing with water ingress issues was passed with 349 for, 92 abstaining and 139 against, while another resolution dealing with fire issues was passed with 423 for, 11 abstaining and 153 against. The result now means that the additional money for a sinking fund will be sought from owners. The vote was greeted with dismay and frustration by many residents. Spokesperson Killian Ryan said it was ""extremely disappointing"", and he has vowed to bring political pressure to bear. He said residents felt that they were being let down by both local and national Government. The overall bill for repairs is more than �10m. -", -2588,2017/3/16,http://www.rte.ie/news/world/2017/0316/860139-the-netherlands-politics/,Dutch PM Rutte scores big victory over far-right Wilders,,"Dutch centre-right Prime Minister Mark Rutte scored a resounding victory over anti-Islam and anti-EU Geert Wilders in that country's general election, offering huge relief to other governments across Europe facing a wave of nationalism. Mr Rutte declared it an ""evening in which the Netherlands, after Brexit, after the American elections, said 'stop' to the wrong kind of populism."" Mr Rutte received congratulatory messages from European leaders and spoke with some by telephone. The euro gained as the results pointed to a clear Rutte victory. Experts said Mr Rutte won on a mix of factors, not all of which may apply to France, whose political establishment faces a challenge from a far-right populist Marine Le Pen next month. A number of parties including Mr Rutte's VVD and the third place Christian Democrat party (CDA) have already adopted most of Mr Wilders' anti-immigration platfom, if not his fiery anti-Islam rhetoric. Mr Rutte got a last-minute boost from a diplomatic row with Turkey, which allowed him to take a tough line on a majority Muslim country during an election campaign in which immigration and integration have been key issues. Mr Wilders said he had not achieved the electoral victory he had hoped for but was ready to offer tough opposition. With around 95%-of votes counted, Mr Rutte's VVD Party won 33 of parliament's 150 seats, down from 41 at the last vote in 2012. Mr Wilders was second with 20, the CDA and centrist Democrats 66 tied for third with 19 each, data provided by the ANP news agency showed. - - - - - - At 78%,-turnout was the highest in a decade in an election that was a test of whether the Dutch wanted to end decades of liberalism and choose a nationalist, anti-immigrantpath by voting for Mr Wilders and his promise to ""de-Islamicise"" the Netherlands and quit the European Union.", -2589,2017/3/16,http://www.rte.ie/news/2017/0316/860159-ryan-govt-climate-change/,"Govt plan on climate change lacks ambition, says Ryan",,"Green Party leader Eamon Ryan has said the Government's National Mitigation Plan on climate change is ""still not there""-and that it lacks ambition or a sense of direction. The public consultation plan launched yesterday by Minister for Climate action Denis Naughten outlines how the Government aims to meet EU greenhouse emissions targets for 2020 and 2030 and achieve a low carbon economy by 2030. Mr Ryan said Ireland is still burning coal and peat and it has to stop. In addition, he called for a move towards renewable energies and a better use of public transport and electrical cars. Mr Ryan said it did not make sense to continue with the status quo and Ireland is missing out on the way the modern economy is going. Modern, more advanced economies were, he said, moving into alternative energies. Mr Ryan said there was a lot of opportunity to move to renewable energies, such as solar and off shore wind, but these abilities were not being harnessed. He added there was no political ambition for action.", -2590,2017/3/16,http://www.rte.ie/news/world/2017/0316/860132-undocumented/,Undocumented migrants in Ireland call for regularisation,,"Illegal or undocumented-migrants living and working in Ireland are calling on the Government to regularise their status. This comes as Taoiseach Enda Kenny is expected to raise the issue of immigration with President Donald Trump in Washington. The Justice for the Undocumented campaign-""?a campaign group of Irish undocumented migrants organised through the Migrant Rights Centre Ireland-- has called on the ""Irish Government to create a pathway to papers for undocumented workers, families and children in Ireland"". The MRCI estimates that between 20,000 and 26,000 undocumented migrants live and work in Ireland. The call for regularisation comes as the campaign group published an open letter of solidarity to undocumented migrants living and working in the United States. The letter highlights similarities between undocumented migrants in Ireland and the United States. It states: ""Being undocumented, staying undocumented,is not an easy life to live. Missing celebrations, missing funerals, missing your family every single moment of every day. Living in constant fear of deportation""? ""We know why you do it. The lives you live in America, we live in Ireland,""-the letter adds. ""We will not give up our shared struggle. We will keep fighting until undocumented people have a pathway to papers. We will remind our political leaders that we are still here. But right now we extend a hand of friendship and a shoulder of strength to you ""?our fellow people, undocumented and documented, in the Irish community and in all communities in the USA this St. Patrick's Day,""-says the groups letter. As @EndaKennyTD meets @realDonaldTrump undocumented migrants here call for regularisation. After 8:30 on @morningireland @rtenews @RTERadio1 pic.twitter.com/HjyalnsX7k ""?cian mccormack (@cian_mccormack) March 16, 2017 Commenting on the letter to RT?'s Morning Ireland, an undocumented restaurant worked named Rebecca, who moved to Ireland from South East Asia 15 years ago, said: ""This is not just an issue for the undocumented Irish in the USA, it's an issue for migrants living all over the world""? ""I have lived and worked in Ireland for 15 years now. I have Irish grandchildren. Ireland is my home. I know exactly how the undocumented in America feel: missing funerals and celebrations, afraid that one day you will have to leave forever""�it is not easy. We wanted to send them our support, especially now their President speaks with such anger and hatred,""?said Rebecca. Rebecca, who set up the Justice for the Undocumented campaign-group eight years ago, called on the Taoiseach to consider ""undocumented people struggling in Ireland""-when he raises the issue of immigration with US President Donald Trump. This evening a candle lit rally will be held outside the Central Bank by the Justice for the Undocumented campaign-- which claims to have 1,400 members. Migrant Rights Centre Ireland spokesperson, Helen Lowry, told Morning Ireland: ""The solidarity rally is also making a very strong point to our Taoiseach Enda Kenny on his journey to Washington that there are undocumented migrants here in Ireland in exactly the same situation as the undocumented in the United States"". ""We need a regularisation introduced in to this country that recognises the reality that people are now here long term. They are working, they are raising families, they're got deep roots in communities up and down the country"". In response to calls for the regularisation of migrant workers in Ireland, the Department of Justice said in a statement ""there are currently no plans to introduce a general regularisation scheme for the undocumented""-in Ireland. ""A proposal of this nature could give rise to very large, unpredictable and potentially very costly impacts across the full range of public and social services. ""Also, any possible implication for the operation of the Common Travel Area would also have to be very carefully considered, particularly in the context of Brexit"",-the statement added. The statement also added that most people become ""undocumented"" through their own actions or omissions, and there is provision under EU law to use ""case-by-case regularisation"" for ""humanitarian or economic reasons"". ""There are instances of persons who became undocumented through no fault of their own and all cases are dealt with on their individual merits,""-the statement from the Department of Justice added.", -2591,2017/3/16,http://www.rte.ie/news/2017/0316/860142-disability-working-age/,People with disability much less likely to get a job - ESRI,,"People with a disability are less likely than the rest of the working-age population to get a job and more likely to leave employment even when their disability does not create difficulties with everyday activities. The finding is contained in an ESRI report whose authors calculate that if all people with a disability who wanted to work had a job, half of all disabled people of working age would be in employment instead of the current 31%. The ESRI study was commissioned by the National Disability Authority and draws on official data spanning the five years up to 2015. It finds that 31% of people aged 20-59 with a disability were at work compared to 71% of those without a disability. While slightly more than four out of five with a disability were working or had worked at some stage, almost two out of five had not worked for four years or more. For those without a disability, the rate of job entry picked up during the onset of economic recovery. However, the study found little sign of a recovery for people with a disability by 2015. The authors calculate that if all people with a disability who wanted to work had a job, half of all disabled people of working age would be in employment instead of the current 31%. However, the report says specific Government interventions are required such as allowing people with a disability to retain medical cards when moving into employment.", -2592,2017/3/16,http://www.rte.ie/news/2017/0316/860155-casey-funeral-galway/,Bishop Eamon Casey funeral due to take place in Galway,,"The funeral of the former Bishop of Galway Eamon Casey will take place at-Galway Cathedral this afternoon.- Bishop John Kirby-of Clonfert, will celebrate the mass at 2pm. Bishop Brendan Kelly of Achonry-will preach the homily, and the mass will be concelebrated by bishops and priests. Kerry-born Bishop Casey died on Monday aged 89 and will be interred in the cathedral crypt. Primate of All Ireland Archbishop Eamon Martin is unable to attend due to his hosting of the annual St Patrick Lecture in Armagh today. However, he visited family members in Galway yesterday and a special message by him will be read out at the mass. -", -2593,2017/3/16,http://www.rte.ie/news/2017/0315/860107-donald-trump-travel-ban/,Trump's second attempt to impose travel ban blocked,,"A judge in Hawaii has put US President Donald Trump's revamped travel ban on hold, preventing the executive order from going into effect. US District Judge Derrick Watson ruled that the state of Hawaii had established a strong likelihood that ""irreparable injury is likely if the requested relief is not issued, and that the balance of the equities and public interest counsel in favor of granting the requested relief."" A judge in Maryland said he also might issue an emergency order in advance of the ban, which is due to come into effect from midnight EDT (4am Irish time) - - - - - - State attorneys general and refugee resettlement agencies across the United States have filed several lawsuits asking courts to issue emergency stays on Mr Trump's executive order. - - - - - - The order was signed on 6 March 6 after an initial, broader ban was suspended by federal courts. - - - - - - The revised order temporarily bars entry to the United States of most refugees as well as travellers from six Muslim-majority countries. The Republican president has said the policy is critical for national security. - - - - - - - Mr Trump signed the first order a week after his 20 January inauguration. It temporarily banned travellers from seven mostly Muslim countries in addition to most refugees and took effect immediately, causing chaos and protests at airports across the country and around the globe. - - - - - - After the ban was targeted by more than two dozen lawsuits arguing it discriminated against Muslims and violated the US Constitution, it was struck down by a federal judge in Seattle in a ruling upheld by a US-appeals court. - - - - - - The White House went back to the drawing board and narrowed its scope. - - - - - - The new order bars citizens of Iran, Libya, Syria, Somalia,Sudan and Yemen from entering the country for 90 days, but Iraqis are no longer on the list. Refugees are still barred for 120 days, but an indefinite ban on all refugees from Syria was dropped. - - - - - - The revised ban also excludes legal permanent residents and existing visa holders. It provides a series of waivers for various categories of immigrants with ties to the United States. The government has maintained in court that the changes resolve any legal issues with the original order. Detractors say the intent behind both Mr Trump's first and second orders was to discriminate against Muslims. - - - - - - Colleen Sinzdak arguing at the Honolulu hearing for the state of Hawaii said there was ""more than ample evidence this ban was motivated by religious animus."" She pointed to Mr Trump's promise during his election campaign of ""a total and complete shutdown of Muslims entering the United States."" - - - - - - The Trump administration has disputed that allegation,saying many Muslim-majority countries are not included in the ban. - - - - - - The text of the order does not mention Islam and the government has said the courts should only look at the actual document, not outside comments by Mr Trump or his aides. - - - - - - The judge at the Hawaii hearing said the language of the new order did not give ""any particular religious feeling or connotation.""- - - --", -2594,2017/3/16,http://abcnews.go.com/Business/wireStory/asian-share-markets-gain-us-dollar-weaker-fed-46164129,"Global stocks gain, US dollar weaker after Fed hike",,"Global stocks rose Thursday following a U.S. rate hike and a Eurosceptic party's defeat in Dutch elections. KEEPING SCORE: In early trading, Germany's DAX jumped 1.1 percent to 12,147.64 and France's CAC-40 rose 0.8 percent to 5,028.16. London's FTSE 100 gained 0.6 percent to 7,410.92. On Wall Street, the future for the Dow Jones industrial average rose 0.3 percent and that for the Standard & Poor's 500 gained 0.2 percent. ASIA'S DAY: Tokyo's Nikkei 225 index advanced 0.1 percent to 19,590.14 and the Shanghai Composite Index gained 0.8 percent to 3,268.94. Hong Kong's Hang Seng added 2.1 percent to 24,288.28 and Seoul's Kospi rose 0.8 percent to 2,150.08. India's Sensex climbed 0.5 percent to 29,541.64 and benchmarks in New Zealand, Taiwan and Singapore also rose. Sydney's S&P-ASX 200 gained 0.2 percent to 5,785.80. U.S. RATE HIKE: The Fed raised short-term interest rates by a quarter of a percentage point, its third such move since late 2015. The move was widely expected. The central bank stressed that it plans to move gradually and stuck to its projection that it will raise rates a total of three times this year. That cooled speculation among some investors that the Fed could move more aggressively. ANALYST'S TAKE: ""The Fed took off as expected but left the market with a more 'gradual' view with regards to future rate hikes,"" said Jingyi Pan of IG in a report. ""Comments by Federal Reserve chair Janet Yellen in her press conference had been perceived as dovish. The Fed chair had reiterated that the committee expects a 'gradual increase' in rates on the back of evolving economic conditions and monetary policy 'remains accommodative' at present."" DUTCH ELECTIONS: Dutch Prime Minister Mark Rutte's party won a parliamentary election victory over anti-Islam lawmaker Geert Wilders in the year's first test for populism in Europe. Following Britain's vote to leave the European Union and Donald Trump's election as U.S. president, ""the Netherlands said, 'Whoa!' to the wrong kind of populism,"" said Rutte. Wilders campaigned on pledges to close borders to migrants from Muslim nations, close mosques, ban the Quran and take the Netherlands out of the EU. CHINA FOLLOWS THE FED: China's central bank raised a short-term interest rate on lending to banks but left its benchmark rate unchanged following the U.S. increase. The People's Bank of China hiked the rate for its six-month and one-year medium-term lending facility and open-market repurchase operations by 0.1 percent. The benchmark one-year commercial lending rate was unchanged. The bank cited the U.S. Federal Reserve's Wednesday rate hike and improved Chinese economic conditions. HONG KONG FOLLOWS THE FED: Hong Kong's central bank copied the Fed by raising its benchmark lending rate by one-quarter point to 1.25 percent. The Hong Kong currency is pegged to the dollar, which means the Hong Kong Monetary Authority copies U.S. monetary policy. JAPAN STANDS PAT: Japan's central bank held monetary policy steady as the Fed and Europe's central bank move toward tightening. The Bank of left its benchmark lending rate unchanged at minus 0.1 percent and said it would work toward a 2 percent inflation rate target. The central bank is buying about 80 trillion yen ($700 billion) a year of Japanese government bonds to inject cash into the economy. The BOJ said the world's third-largest economy was on a ""moderate recovery trend."" ENERGY: Benchmark U.S. crude rose 60 cents to $49.46 per barrel in electronic trading on the New York Mercantile Exchange. The contract soared $1.14 on Wednesday to $48.86. Brent crude, used to price international oils, added 57 cents to $52.38. It gained 89 cents the previous session to $51.81. CURRENCY: The dollar weakened to 113.29 yen from Wednesday's 113.38 yen. The euro edged down to $1.0719 from $1.0732.", -2595,2017/3/16,http://abcnews.go.com/International/wireStory/german-prosecutors-charge-man-membership-46165789,German prosecutors charge man with IS membership,,"Federal prosecutors say they have charged a 23-year-old German man with membership in a terrorist organization for joining the Islamic State group in Syria. In a statement Thursday, prosecutors said Anil O. traveled to Syria in August 2015 with the intention of working as a medic for the group. Prosecutors said O., whose last name wasn't published due to German privacy law, soon became disillusioned with IS after seeing how it treated fellow Muslims. They said he tried several times to flee IS-held territory, succeeding in January. He returned to Germany in September last year and was arrested at Duesseldorf airport.", -2596,2017/3/16,http://www.cnn.com/2017/03/16/politics/trump-travel-ban-order-explainer/index.html,Trump's new travel ban blocked: What you need to know,"(CNN)Just hours before it was due to go into effect, US President Donald Trump's revised executive order banning travelers from six Muslim-majority nations had been struck down by a federal court in Hawaii late Wednesday.","The new ban was announced earlier this month and would have barred people from Iran, Libya, Somalia, Sudan, Syria, and Yemen from entering the US for 90 days and all refugees for 120 days. Iraq was removed from the list of banned countries, and the new version also exempts green card and visa holders. Contentious language referring to religious minorities was also removed. But US District Court Judge Derrick Watson issued a Temporary Restraining Order (TRO) after concluding that the ban was unconstitutional, a view based largely on discriminatory comments made by Trump himself. The Justice Department said it will defend the new travel ban. ""The Department of Justice strongly disagrees with the federal district court's ruling, which is flawed both in reasoning and in scope,"" the Department said in a statement Wednesday night. ""The President's Executive Order falls squarely within his lawful authority in seeking to protect our Nation's security."" Here's what you need to know about the latest ban, and the ruling on it. Why has it been blocked? What did the judge say? The ruling is almost entirely based on the ""intent of the Trump administration,"" says CNN correspondent Jessica Schneider. ""The judge specifically said it was that intent to create this Muslim ban that violated the Constitution's establishment clause... he pointed to several instances, very specifically, saying it was President Trump's own words on the campaign trail... advocating the 'complete and total shutdown of Muslims entering the United States.'"" The judge said that it was illogical that the ban was not motivated by religious discrimination. ""The illogic of the Government's contentions is palpable,"" Watson wrote. ""The notion that one can demonstrate animus toward any group of people only by targeting all of them at once is fundamentally flawed."" ""Equally flawed is the notion that the Executive Order cannot be found to have targeted Islam because it applies to all individuals in the six referenced countries."" A timeline of President Trump's travel bans What is Trump saying about the ruling? At a rally in Tennessee, Trump decried the decision as ""unprecedented judicial overreach,"" and a politically motivated move that makes the US look ""weak."" He's vowed to take the case to the Supreme Court if necessary. ""This goes beyond me, because there'll be other Presidents,"" he said. ""We need this and sometimes we need it very badly... for the security of our country."" He was defiant about the ban, and predicted victory upon the appeal. ""We're going to win... we're going to keep our citizens safe,"" he told the crowd in Nashville. He described the new order as ""a watered-down version of the first (order)"" and said that he wanted to ""go back to the first one."" He so far has not attacked Watson, unlike his response to the judge who issued the TRO placed on his first attempt at a ban. Back then, he tweeted that the ""so-called judge"" should shoulder the blame for any terror attacks which occurred while his ban was on lockdown. Is this judicial overreach? The judges on the Ninth Circuit Court -- which upheld the first TRO in February -- issued an opinion on the ruling and five Republican-appointed judges alluded to the idea of judicial overreach. They wrote ""whatever we as individuals may feel about the President or executive order, the President's decision was well within the powers of the presidency."" CNN's Schneider says that the argument about the context surrounding the ruling, versus the content of the bill, could be a ""big point of contention."" ""Should we be looking at the intent of someone who made those comments while he wasn't president?"" she asked. Hawaii Attorney General Doug Chin said the bigger picture is important. ""I don't think Judge Watson was overreaching because there is precedent for the courts to look at the context,"" he told CNN. ""Context matters."" Maryland AG Brian Frosh -- who has filed a motion in his state to challenge the order -- argues that it is instead a ""great example of executive overreach."" He argues that ""the (federal) judges are doing their job here. It's not just one judge, it's six, seven judges that have all said that the first Muslim ban was a violation of the first amendment and now the second one is as well. Donald Trump's problem is what he himself has said -- he's described this as a Muslim ban."" Opinion: Hawaii judge upholds America's 'Golden Rule' What's the next step? Federal judges in several states, including Maryland and Washington, are also in the process of evaluating challenges to the new travel ban, but may defer ruling in light of the nationwide ruling in Hawaii. Trump has already said he'll appeal the order so it is likely, as with the previous executive order, to be heard in front of the Ninth Circuit Court. Last time round the Trump administration ultimately dropped the appeal process and instead focused on drafting the revised order, but this time the President has vowed to take it to the Supreme Court if necessary. ""(The ruling) is just a temporary injunction,"" Chin said ""There's the option to appeal up to the Supreme Court we're all predicting that this isn't the end of the story that we're simply in a first round, moving on from here."" Meet some of the people who support the ban What is the likelihood of the TRO becoming permanent? ""There's a sense among the lawyers I've spoken to that this time the travel ban is crafted more narrowly and has some chance at being upheld at the end of the day,"" New York Times columnist Nicholas Kristof told CNN's Don Lemon. Page Pate, a criminal defense attorney agreed that the ban has a chance of passing on appeal. ""This new travel ban is different. I think the administration addressed some of the deficiencies in the due process area and there is nothing on the face of it which discriminates against Muslims."" Defense attorney and constitutional scholar Alan Dershowitz said that, while the TRO ruling is not guaranteed to be upheld on appeal, it is potentially precedent-setting. ""I believe that this presents a very tough case for the Supreme Court,"" he told CNN. ""It's the first case in which the Supreme Court has been asked to take into account what a political figure said while running for office and use that to interpret the words of a statute.""", -2597,2017/3/16,http://www.huffingtonpost.com/2017/03/16/yahoo-cyber-indictment_n_15401276.html,"Yahoo Cyber Indictment Shows Kremlin, Hackers Working Hand-in-hand","A U.S. intelligence official said employing criminal hackers helps ""Complement Kremlin intentions and provide plausible deniability for the Russian state.""?,Wednesday's indictments in the United States of four people in a 2014 cyber attack on Yahoo Inc. provides the clearest details yet on what some U.S. officials say is a symbiotic relationship between Moscow's security services and private Russian hackers. The indictment charges two officers of the FSB", Russia's Federal Security Service, cybersecurity professionals and government officials say. Milan Patel -2598,2017/3/16,http://www.huffingtonpost.com/2017/03/16/bipartisan-road-trip-will-make-you-believe-in-politics-again_n_15401272.html,This Bipartisan Road Trip Will Make You Believe In Politics Again,The snow storm that just pummeled the northeast affected two Texas congressmen's flights to D.C. So they decided to drive there together.,"The snow storm-that struck the northeastern United States this week caused much devastation, but it also brought together two politicians in a move that's fit to inspire an Aaron Sorkin political dramedy. The two Texas congressmen seated on opposite sides of the aisle shared a road trip of around 1,600 miles to the nation's capital. They listened to music, chatted with their families and invited Americans to discuss politics with them over Facebook Live along the way. There were also multiple donut pitstops, a visit to Graceland and at least one instance of playing air drums to Jonathan Richman And The Modern Lovers. Reps.-Beto O'Rourke (D) and Will Hurd (R) were both in San Antonio speaking with veterans when the storm struck and their flights back to Washington, D.C. were canceled.- They needed to be back in D.C. by Wednesday at 6:00 p.m.-for floor votes. So-O'Rourke suggested he and Hurd drive back to the nation's capitol. They rented a car and nicknamed the trip a ""bi-coastal town hall,""?from Gulf Coast to East Coast, the Dallas Morning News reported-Wednesday.- Reports have surfaced that O'Rourke may challenge Sen.-Ted Cruz (R-Texas) in the 2018 senate election. Hurd, who was critical of Donald Trump-during the 2016 election, has made headlines this year for opposing the president's plan to build a wall, and his executive order on immigration. During their trip, the duo answered pressing questions about issues including health care, education, the environment, national security and immigration ""?their differences clear but professional. They also requested song recommendations, rated their favorite donut flavors, and pondered who would play them in the movie version of their trip. The Washington Post stitched together-several of the congressmen's live videos to produce quite the mashup, featured above, depicting the nearly 36-hour journey in a few heartwarming minutes. The pair alternated streaming live on each other's Facebook pages, and took calls from family members and colleagues. Former House Speaker Newt Gingrich even called in to participate. That time when @newtgingrich surprise-called us on the #bipartisanroadtrip! https://t.co/1tFbNO3lnp When members of Congress called, Hurd and O'Rourke asked each person to name someone with whom they want to-""bipartisan road trip,""?the Dallas Morning News reported.- By the time the duo made it to D.C., a Texas flag greeted the pair as they drove up to the U.S. Capitol building. The Texas flag waiting for @RepBetoORourke & @HurdOnTheHill as they pull up to the Capitol in DC at the end of #bipartisanroadtrip pic.twitter.com/3SrU5hW9VL They made it to their vote on time, and their newfound camaraderie on display for all to see. We made it back! Tune into @cspan now for the finale! #bipartisanroadtrip pic.twitter.com/EcsbAkECy8 Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2599,2017/3/16,http://www.huffingtonpost.com/2017/03/16/james-corden-ncaa-bracket_n_15400976.html,James Corden Fills Out His First NCAA Bracket In Hilariously British Style,"""people do this for fun?""","James Corden filled out his first-NCAA Tournament bracket.-And by the way it went, it'll probably be his last. The British ""Late Late Show""?host did his best at making his March Madness picks Tuesday, but even a Magic 8 Ball and some giant dice couldn""t sweeten the experience for him. ""people do this for fun?""?Corden asked. ""Insane.""?Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2600,2017/3/16,http://www.huffingtonpost.com/2017/03/16/samantha-bee-resistance-voting_n_15400764.html,Samantha Bee Tells Democrats What It'll Take To Stop Donald Trump,"""It's not enough just to yell your opinions -- that's my job!""","Samantha Bee has issued a rallying call for Democrats to get out and vote. On Wednesday, the ""Full Frontal""?host said protesting the policies of President Donald Trump's administration out on the streets and at airports-is all well and good.-But what really matters is all those activists being motivated enough to visit the voting booth and have their say on polling day. ""For all their passion and earnestness and mad crafting skills, Democrats suck at voting,""?said Bee, later adding:-""It's not enough just to yell your opinions ""?that's my job! You need to vote.""? There's a ""?0 percent chance this omnishambles of a president will impeach himself by mistake,""?Bee said. Otherwise, it would take a Democratic congress.- ""And I'm afraid you can""t crochet one of those,""?she added. Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2601,2017/3/16,http://www.bbc.co.uk/news/business-39289269,Toyota to invest ?240m in UK operations,Japanese carmaker Toyota is to invest almost a quarter of a billion pounds in its UK operations.,"Japanese carmaker Toyota is to invest almost a quarter of a billion pounds in its UK operations. Toyota says it will invest ?240m to upgrade the Burnaston plant near Derby to enable production of vehicles using its new global manufacturing system. The carmaker says the investment will improve the plant's competitiveness and promote UK supply chain efficiencies. Toyota has been making cars in the UK since 1992. The Burnaston plant makes the Auris and the Avensis models. Last year, the plant manufactured around 180,000 vehicles. Most are exported to the EU and elsewhere in the world. The Burnaston plant, together with Toyota's engine plant at Deeside in North Wales, employ about 3,400 workers. The government is also providing ?21.3m in funding for training, research and development and enhancements of the plants environmental performance. In January, the UK car industry trade body, the SMMT, indicated that uncertainty around Brexit and the UK's future trading arrangements had hit investment in the sector. It said that total committed investment announcements in the automotive sector in 2016 were approximately ?1.66bn across a number of companies. This figure was down from ?2.5bn in 2015.", -2602,2017/3/16,http://www.bbc.co.uk/newsbeat/articles/39168008,"Lack of skin specialists causes delays for acne patients, says dermatologist","A lack of trained skin specialists is having a huge impact on acne patients, says a leading dermatologist.","A lack of trained skin specialists is having a huge impact on acne patients, says a leading dermatologist. Dr Tamara Griffiths says out of 800 positions, more than 200 are unfilled and it's been getting worse over the past decade. She says it's causing long waits for people wanting to get treatment. Newsbeat has also been told that financial pressures on the NHS are making it harder for those with acne to get seen by a dermatologist. ""It is extremely frustrating that we can't serve our patient population as well as we would like,"" says Dr Griffiths. BBC Advice has help and information if you are affected by acne. Watch the Radio 1 iPlayer documentary, Me, My Spots and I Speaking on behalf of the British Association of Dermatologists, she says the lack of skin specialists is part of a bigger problem. ""If you look at the wider workforce crisis in the NHS, there are more unfilled GP posts and more unfilled acute medicine posts. ""Dermatology doesn't live within a bubble because we're connected to the rest of medicine and these are huge issues."" Dermatologists are trained to be able to prescribe stronger treatments such as Roaccutane, as well as detect signs of the psychological impact of acne. ""The real issue with skin disease, acne included, is that it may not be life-threatening but it certainly can be life-ruining,"" she says. Katie Snooks, 28, says she has suffered with acne for 10 years and it dominated her life. She's a YouTuber and she's made many videos about dealing with the condition. ""I tried five different antibiotics, I even tried light therapy but none of them worked,"" she explains. For her, effective treatment only came when she was prescribed Roaccutane. ""The success rate is high but it's also hard to get because you can't get it from a GP and it took me a couple of years to get referred to a dermatologist,"" says Katie. Official figures reveal the number of patients with acne being sent to see a dermatologist in England has more than doubled over the past five years. It has gone from 2,436 cases in 2010-11, to 6,383 in 2015-16. Similar data isn't available for Northern Ireland, Scotland or Wales. Dermatology outpatient cases have risen in Wales over a similar time frame, with 181,156 in 2015-16, up from 169,815 in 2011-12. Dr Griffiths says that ""public awareness"" and a desire for skin ""perfection"" are some of the reasons as to why England's dermatologists have seen this increase. ""More people are aware of skin disease and it's something everyone can see on themselves,"" she says. Jessica Taylor has had acne since she was 12 and she's now 22. ""It's worse on my shoulders and it does go down my back as well,"" she says. ""It means I have to be careful about what tops I wear because I don't want to reveal it too much."" Acne symptoms range in severity from person to person. ""If your acne is relatively mild, or it's not affecting you psychologically that much, you could see the pharmacist, try some of the over-the-counter treatments,"" says Dr Griffiths. She acknowledges there could be a ""long wait"" for someone with more severe symptoms, who wants to see a specialist. ""My message to the individual acne patient is stand up for yourself and get yourself treated,"" she says. Health Education England ""We are aware that employers report current shortages in this specialty. The dermatology consultant workforce is growing steadily as a result of investment decisions made prior to the creation of Health Education England."" Scottish Government ""We recognise that acne can be a distressing condition for many young people. There is a range of support and treatments available on the Scottish NHS."" Welsh Government ""We are working with the NHS to improve dermatology services in Wales, to ensure that all young people who need it can access high-quality dermatology services when they need them."" Northern Ireland Health and Social Care Board ""The majority of positions for consultant dermatologists in Northern Ireland are currently filled and we continue to provide the full range of dermatology services to patients across Northern Ireland."" Find us on Instagram at BBCNewsbeat and follow us on Snapchat, search for bbc_newsbeat", -2603,2017/3/16,http://tass.com/pressreview/935814,Press review: Poroshenko surrenders to radicals and IS sets up new 'capital',"Top stories in Russian press, March 16","- Ukrainian President Pyotr Poroshenko's decision to cut transport links with Donbass and to slap sanctions on the subsidiary of Russia's top lender, Sberbank, has been viewed as concession to radical forces that stole the initiative from the leading party and promoted the idea of early elections, Kommersant writes on Thursday. The meeting of Ukraine's National Security and Defense Council where its head Alexander Turchinov announced the blocking of all roads and railways leading to the self-proclaimed republics - Lugansk-and Donetsk-- demonstrated that the president's opponents have virtually forced their own agenda on him and are making Poroshenko taking controversial steps, the newspaper says. Viktor Ukolov, a political analyst close to President Poroshenko's administration, told Kommersant that the blockade will only be against those companies that have been ""illegally"" confiscated from Ukrainian ownership. ""This will concern supplies from enterprises that have decided to pay taxes on the territories of the self-proclaimed republics instead of Ukraine,"" he said. The analyst also thinks that Poroshenko's opponents have united efforts with the aim of destabilizing the situation in the country in general. ""The technology of a centralized Maidan has been put into operation in Ukraine as various smaller ""Maidans"" are being used for destabilization and the initiation of snap parliamentary and presidential elections,"" he said. - Sanctions against Russian payment systems imposed by Kiev in October 2016, have had almost no effect on traffic, Vedomosti business daily says. In Q4 2016, the amount of funds transferred from Russia to Ukraine via payment systems came to $150 mln, only a 4.5% decrease compared with the previous quarter, according to the Central Bank's data. According to Olga Vilkul, head of Leader payment system, the sanctions forced customers to use foreign systems operating in Russia, which were not put on Kiev's sanctions list. Amid this background, foreign players ""seriously changed"" the terms by actually making them equal with Russian players, and enticed their clients. In 2011-2016, Ukraine ranked 3-4th among CIS countries in terms of transfers from Russia, Vedomosti writes. Western Union reduced tariffs on transfers from Russia to Ukraine starting December 1, 2016. The company refused to unveil its financials, though it representative told the newspaper that the amount of transfers from Russia to Ukraine is ""traditionally large."" Some Russian operators dodge sanctions by making transfers to Ukraine via their partners. In a move to protect Russian market players, the State Duma has drawn up a bill to counter the Ukrainian sanctions, which has already been approved in its first reading. The bill implies that only systems operating in the countries that imposed sanctions, through Russia-based structures, will be allowed to transfer funds from Russia to those countries. Vilkul expects the bill to bring previous positions to companies like Leader that they lost in the fourth quarter of last year due to the sanctions. - Top commanders of the Islamic State-are being pushed out of Mosul and Raqqa and moving to Deir ez-Zor, Izvestia daily reports citing sources in the Syrian army. The city may become the next capital for the terrorists who are ceding regions in Syria and Iraq each day, which experts say will only put off an imminent collapse. Syrian military expert Hassan Turki told the newspaper that commanders have been moving to the new location together with their families. ""They probably won""t stay in the city, but rather move on to south-eastern regions. But it's very likely those militants will be participating in attacks on the Syrian army that partially controls Deir ez-Zor,"" he said, adding that he does not rule out that ""the city will become a new capital of the Islamic State, though in order to accomplish this the terrorists will have to liquidate the Syrian military, otherwise only al-Mayadin (a town 50 kilometers away to south-east) may claim this."" The Syrian army has been holed up in Deir ez-Zor since 2014. Boris Dolgov of the Oriental Studies Institute under the Russian Academy of Sciences, told Izvestia that the chief goal of the Islamic State is to consolidate forces at a certain stronghold, and Deir ez-Zor suits this perfectly. ""The terrorists continue to resist, but chances are high that this city will be their last big bastion,"" Dolgov said. ""If the current approach by those countries involved in fighting the terrorist organization persists, it will transform into a number of armed groups that will not control territories,"" he added. - NATO's demand to bring defense budgets of all member-states in line with the organization's guidelines, which is to 2% of GDP regardless of their economic status, may become the reason for a serious breakdown in the alliance, Izvestia writes. Some countries, such as the Czech Republic and Slovakia, are reluctant to raise expenses to the required minimum level, while some are willing to put defense spending above the interests of their own citizens. Politicians from several Western European countries polled by the newspaper consider the increase in defense expenditures senseless as the safety of NATO states will be intact they say. According to a European deputy from the Czech Republic and member of the Communist party, Katerina Konecna, the alliance's request to raise military spending is not warranted by the current situation in the security area. She also thinks that the country's government could make more efficient investment decisions, for example, in local education and the medical system. ""The Communist Party of Bohemia and Moravia, among other issues, supports the idea of holding a referendum on the country's membership in the alliance,"" the politician told Izvestia. The referendum issue is also being considered in Slovakia. ""At first glance, the NATO-set minimum may not seem high, however, it is hardly affordable to increase defense expenses to 2% of GDP for those countries, which are even unable to provide finances for better social services,"" Slovak analyst Mikhail Andreychik told the newspaper, adding that countries such as Romania and Bulgaria are definitely going to face difficulties on this issue. Latvian political analyst Andrey Gaponenko shares this view, saying that ""it will be really challenging for Latvia to meet the objective. ""Riga has already refused to raise teachers' salaries due to this, despite previously announced pledges. Doctors are ready to go on strike over low wages, they are also leaving for Scandinavian countries. Nevertheless, the Latvian government is not going to abandon its source, despite the prospects of this becoming a serious burden for the population,"" the analyst said. - Last year saw a 13.7% rise in Russia's market of radio electronics to 3.3 trillion rubles, despite the overall economic situation and the US sanctions against big players, such as Angstrem and Micron. Against this backdrop, Russian companies almost doubled their supplies to military producers abroad, while in Iran the sky was the limit on demand for Russian radio electronics, Kommersant writes. The amount of radio electronics exports from Russia in 2016 increased by 81.5% to preliminarily $3.3 bln, the newspaper says. Meanwhile, the amount of Russia's import of radio electronics dropped 31.2% in the period to $300 mln (with military products accounting for 61.4%). The sanctions imposed in September 2016 by the US government cover the Micron facility controlled by Russia's Sistema conglomerate and the Angstrem Group owned by ex-minister of communications Leonid Reiman and the state-controlled corporation Rostec. Head of Angstrem Konstantin Nosov told Kommersant that the company faced almost no problems following the restrictive measures as it did not supply microchips to US companies. - TASS is not responsible for the material quoted in the-press reviews", -2604,2017/3/16,http://tass.com/world/935855,"Turkish minister decries EU's ""senseless""?demands to continue fulfilling refugee deal",The Turkish minister for EU affairs says Ankara has fulfilled all its obligations under the agreement while the EU has not complied with any of them,"ANKARA, March 16. /TASS/. There is currently no sense for Turkey to continue implementing an agreement with the European Union (EU) on refugees, Turkish Minister for EU Affairs Omer Celik told TASS on Thursday. ""Turkey has fulfilled all its obligations under the agreement while the EU has not complied with any of them. The EU has not made a single step to receive refugees as part of voluntary accommodation. Only a small part of financial assistance promised to Turkey has arrived and the issue of visa liberalization [for Turkish citizens in EU countries] has not been resolved. There is no reason for us to continue implementing this agreement,"" the minister said. However, ""the issue of severing the agreement should be solved at the level of the president or the premier,"" Celik said. As the minister said, ""European Commission Head [Jean-Claude] Juncker and Commissioner for Enlargement [Johannes] Hahn are making anti-Turkish statements that do not comply in any way with the EU principles and values."" Celik said that ""the EU is benefitting from the agreement while Turkey is not."" ""So, in my opinion, there is no big sense in continuing to implement this agreement,"" the Turkish minister said. The refugee deal was signed at the Turkey-EU summit on March 18, 2015. This comprehensive document comprises provisions on financial assistance to Ankara for implementing refugee projects, the exchange of illegals for legal migrants, visa liberalization, readmission and the acceleration of the negotiations on Turkey's admission to the EU.", -2605,2017/3/16,http://www.dw.com/en/saudi-arabian-king-salman-signs-billion-dollar-deals-in-china/a-37958092?maca=en-rss-en-all-1573-rdf,Saudi Arabian King Salman signs billion-dollar deals in China,"King Salman is on a month-long tour of Asia, signing massive business deals on each stop. China sees Riyadh as an increasingly important partner as it bolsters is international presence in the middle east.","Chinese military technology is reaching ""near-parity"" with the West, a new report from the London-based think tank IISS has found. Western dominance in advanced military systems can no longer be taken for granted. The Saudi monarch's rare month-long trip takes him to strategically important nations in the economically fast-growing region, with which Riyadh wants to deepen commercial engagement and socio-political ties. (01.03.2017) The World Economic Forum in Davos is a gathering of the global elite. This year's meeting has shown very clearly just how much the leaders present were longing for leadership themselves, says DW's Andreas Becker. (20.01.2017) Six weeks before the inauguration of Donald Trump, the outlines of his possible foreign policy are still blurry. But while uncertainty about Trump's course remains the name of the game, a few themes seem to be emerging. (12.12.2016) Saudi Arabia's King Salman and his massive entourage landed in Beijing on Wednesday to help sign deals worth up to $65 billion (61 billion euros) alongside China's President Xi Jinping. The trip marked a crucial phase of the king's month-long, six-country trip through Asia to strengthen its regional alliances and develop a less oil-dependent growth strategy. The three-day Chinese stop reciprocates Xi's visit to Riyadh last year to shore up China's sphere of influence in the middle east. China became Saudi Arabia's largest trading partner in 2015. The Kingdom was China's biggest supplier of crude oil for four years but was supplanted by Russia last year, according to official Chinese statistics. Lower reliance on oil As well as boosting oil sales, the 81-year-old's Asia trip was aimed at promoting investment opportunities in the kingdom, including the sale of a stake in Saudi Aramco, the massive state-owned company worth trillions of dollars. Xi told Salman in Beijing's Great Hall of the People that his visit showed the importance he attached to relations with China. ""This visit will push forward and continue to improve the quality of our relations and bear new fruit,"" Xi said in comments in to reporters. King Salman's entourage reportedly includes about a 1,000 people, a dozen jets and even gold escalators Energy and space deals Deputy Chinese Foreign Minister Zhang Ming said the memorandums of understanding and letters of intent that the pair signed-involved-everything from energy to space. ""President Xi Jinping and King Salman are old friends,"" Zhang said. ""Practical cooperation between China and Saudi Arabia has already made major achievements, and has huge potential."" The visit bolstered the roll out of Xi's signature policy known as ""One Belt, One Road"" - a trade and investment initiative across Central Asia and the Middle East that would rely on the desert kingdom as a regional linchpin. The policy aimed to increase trade links and market connectivity between China, Europe and regions in between, based loosely on the ancient ""Silk Road"" trading route. Xi said he looked forward to discussing projects under development, and said results so far ""have surpassed our expectations."" China is playing an increasingly active and sometimes conflicting role in the security of the Middle East Middle east security China had long taken a backseat to disputes in the Middle East but especially with the United States' global diplomatic stance under President Donald Trump unclear, Xi started taking a new approach with steps that include hosting talks between the opposing parties in the Syrian conflict. Security ties between Saudi Arabia and China also grew significantly, with the Saudi air force deploying Chinese unmanned attack drones and the two militaries holding joint counter-terrorism exercises in western China. Chinese navy vessels also visited the Saudi port of Jeddah as part of increasingly active maneuvers in the Gulf of Aden. It was the king's first visit to China since taking the throne in 2015 upon the death of his half-brother King Abdullah. aw/rt (Reuters, AFP, AP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YUfe", -2606,2017/3/16,http://www.dw.com/en/lufthansa-profit-flies-high-on-lower-costs/a-37958952?maca=en-rss-en-all-1573-rdf,Lufthansa profit flies high on lower costs,"The German flagship carrier has beaten analysts' expectations for 2016 results, reporting a record net profit despite falling revenues, which shows that the airlines' drive to save costs is bearing fruit.","Europe's biggest airline group by revenues unveiled a net profit of 1.78 billion euros ($1.9 billion) for last year - a 4.6 percent increase on 2015, and coming despite a 1.3 percent decline in sales to 31.7 billion euros. ""In a very demanding market environment, we successfully kept the Lufthansa Group's margins at their record prior-year levels, through consistent capacity and steering measures and, above all, through our effective cost reductions,"" chief executive Carsten On Sunday, Air Berlin's board fired CEO Stefan Pichler. Thomas Winkelmann is the new CEO. His mission: Complete the integration of debt-burdened Air Berlin into rival Lufthansa. (19.12.2016) Germany's largest airline is no longer Europe's largest. Modest growth in passenger numbers was not enough to fend off the fast-expanding Irish budget carrier. (10.01.2017) Frequent strikes by Lufthansa's privileged pilots amount to a form of blackmail against passengers, and harm the company that already pays them extremely well, says DW's Manuela Kasper-Claridge. (23.11.2016) Spohr said in a statement. Lufthansa group, which includes Austrian Airlines, Swiss, Brussels Airlines and Eurowings as well as the core German flag-carrier, recorded the improved results despite overcapacity in airline services in Europe. This is driving fares, with Lufthansa's revenue per available seat kilometre having declined to 7.8 euro cents, from 8.3 euro cents in 2015. Nevertheless, passenger airlines remained Lufthansa's biggest earner, with improvements in operating profit for its flagship airline and Austrian Airlines. But low-cost passenger carrier Eurowings suffered an operating loss for the year, as did freight unit Lufthansa Cargo.- Looking ahead, the group warned that underlying profit for 2017 -- a measure that excludes the effect of some changes in pension accounting - would be ""slightly below"" the 1.75 billion euros logged in 2016. The group plans to offer shareholders a dividend of 50 euro cents per share, the same level as last year's payout. Lufthansa published its 2016 result one day after it had announced a settlement with its pilots over a long-running pay dispute that cost the group 100 million euros in 2016. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Y8OS uhe/kd (Reuters, AFP)", -2607,2017/3/16,http://www.dw.com/en/from-warhol-to-beuys-angelika-platen-s-50-years-of-art-photography/a-37953795?maca=en-rss-en-all-1573-rdf,From Warhol to Beuys: Angelika Platen's 50 years of art photography,Her photos wrote art history - and became part of it as well. Angelika Platen has covered the international art scene from a very personal perspective over 50 years. A Berlin exhibition now features her works.,"Acclaimed German photographer Angelika Platen portrayed over-300 contemporary-artists, including Marina Abramović, Blinky Palermo, Andy Warhol (top picture), Joseph Beuys, Neo Rauch, Georg Baselitz, Jonathan Meese and Wolfgang Tillmans. She managed an art gallery in Hamburg for some time, and spent many years in France. Platen,-who was born in Heidelberg in 1942, now lives and works in- Berlin, where her works are currently on show-at the Galerie Michael Schultz. DW: Famous painters like Georg Baselitz, Neo Rauch and Gerhard Richter have a reputation for being a bit difficult when someone enters their studio - especially when that intruder is a photographer. How was that in your case back then? Angelika Platen: It was-all a lot easier at the time. We were all young, and there weren't as many artists around as nowadays. New contemporary art emerged-in the late 1960s. It was a lot easier to make appointments with artists. You simply called them up. I'll never forget the moment when I knocked on Richter's door. A note was attached there saying: ""Back soon. I'm just rushing-to an extremely important appointment."" And what was so vitally important to him? He never told me that (laughs). It was really amazing. I just sat down on the floor in front of his door waiting for him. And it was worth it. How did he react when he came back? He was a bit embarrassed about being late and therefore granted me more-time in his studio. That happened in-1971 in D��sseldorf.-I was allowed to take pictures of him, and he also took pictures of me. We took pictures of each other. That was a very beautiful encounter. Gerhard Richter in 1971 Mirrors tend to come up a lot in your photos of contemporary artists. Quite often, the artist, or the artist and the photographer, are depicted on your photos. Is that a special stylistic device of yours? I once spontaneously applied that technique when I met Sigmar Polke. There was a mirror hanging on the wall opposite the door at the entrance of the apartment. I immediately picked up my camera to take a picture of both of us reflected in the mirror. It was a very hot summer day. Polke was wearing a shirt imprinted with colorful flowers, whereas I was wearing a short top so that my belly wasn't covered. Together, we took a very fresh look into the mirror, and he loved that. The-1960s are remembered as-hippie era.-How did you experience this period-of changes as a young and ambitious photographer? For me, it was a time of emancipation. I will never forget an incident-in Hamburg's noble Hotel Atlantic in 1966. I was invited there as a photographer to attend a huge reception. I was wearing a pink pantsuit - and the hotel refused to let me in because I was wearing trousers! It's hard to imagine that nowadays! Angelika Platen In the ears of contemporary women, that sounds like something that could have-happened a century-ago. What else did you experience-in the artist scene back then? It was the beginning of my own emancipation. By-1968, I was visiting-artist studios, art fairs and exhibitions. In Eindhoven, for example, I shot the first pics of Joseph Beuys. That was a turning point.- It was rather unusual for a woman to feel so free as to simply go to such events and to take photos there. Back then, there weren't that many female photographers out there. They were rather exceptional. How did an artist like Joseph Beuys - who, after all, had been in the army during WWII - treat you as a young emancipated woman?- I have photographed numerous works of Beuys, for example at one of his-exhibitions in Hamburg. He just stood right next to me, still working on his showcases, and simply let me take pictures. Then there was a short break. We went outside, somewhere between the Kunstverein and the Kunsthalle. We-were facing a huge sculpture by Rodin called ""The Citizens of Calais."" Beuys was quite tired. He was wearing his hat as usual, and he was staring into the sky dressed in a white shirt --and that was a great shot. He was visibly pondering how he should go on with his work. He wasn't smoking, and he was tense. You can almost see how hard he was thinking-- right next to the ""thinker Rodin"" (laughs). Was Beuys already a star at this stage? Or was he still searching for his artistic position in the early 70s when you photographed him? He was already a star in that he was heavily represented in the famous Str?her collection [Eds.-the entrepreneur and art patron Karl Str?her put together one of the biggest collections of German art after 1945]. But the other artists in the Hamburg exhibition were much bigger stars. Andy Warhol, whose works were also shown there,-was much more famous. Beuys only became a-bigger star later on. Platen also photographed Andy Warhol in Hamburg in 1972 It must have been a big challenge to photograph the rugged face of Beuys that was marked by the war. How did you feel about that? I observe-artists as human beings, trying to imagine how their facial features will-come across on my pictures. I focus on showing the way the artist really looks like, so that the picture doesn't look horrible, but beautiful. That's very important to me. I also took pictures of him without his hat,-with his stringy hair hanging down across his forehead. But I only rarely published these photos. He looks so fantastic with his hat on, that was Beuys!- You still prefer black-and-white photography, by now of course in a digitized version, but now and then in an analogue and digitally copied version. Why do you prefer that technique?- It allows for more imagination.-For example, I photographed Gerhard Richter in the 1970s while he was sitting on a beautiful chair in his studio in front of his painting. His light blue eyes were gazing towards the horizon, and-the many different shades of gray more than made up for the missing colors. His watery blue eyes are clearly discernible on this black-and-white picture.", -2608,2017/3/16,http://www.rte.ie/news/2017/0316/860178-danielle-mclaughlin-goa-india/,Man charged with murder of Donegal woman in India,,"Police in India have charged a 24-year-old man with the murder of the Co-Donegal woman-Danielle McLaughlin-in the western Indian state of Goa.- Her body was found on open ground close to the resort of Canacona on Tuesday.- Police are awaiting the results of a post-mortem examination to determine the cause of death.- Ms McLaughlin, who was 28, was from Buncrana. Meanwhile, CCTV footage of Ms McLaughlin in Goa has emerged. The CCTV footage shows Ms McLaughlin walking along a street with the suspect. Yesterday, Ms McLaughlin's mother paid tribute to her daughter saying she will be ""sadly missed"". Ms McLaughlin travelled to India using a British passport so the local British consulate is taking the lead in liaising with authorities. The Department of Foreign Affairs said the irish Embassy is working closely with the British authorities in relation to Ms McLaughlin's death. -", -2609,2017/3/16,http://www.rte.ie/news/politics/2017/0316/860185-tories-election-expenses/,Tories get record fine for misreporting election expenses,,"Britain's ruling Conservatives made ""numerous failures"" in reporting expenses for several elections and breached campaign spending rules, an independent watchdog said this morning in an embarrassing blow for Prime Minister Theresa May. The Electoral Commission imposed its largest ever fine, �10,000,-on the Tories after the party misreported expenses for the 2015 general election and three by-elections in 2014. This was a further blow for Mrs May after a difficult week in which she was forced into an embarrassing budget U-turn and wrong-footed by a surprise call for a referendum on Scottish independence. The head of the Electoral Commission, John Holmes, said the party's failure to follow the rules ""undermined voters' confidence in our democratic processes"". The watchdog added that the fine was not ""proportionate"" to current campaign spending levels and called for tougher measures. ""There is a risk that some political parties might come to view the payment of these fines as a cost of doing business,"" Mr Holmes said. The Conservatives said they had complied fully with the investigation and would pay the fine. ""Political parties of all colours have made reporting mistakes from time to time,"" a party spokesman said.", -2610,2017/3/16,http://www.rte.ie/news/politics/2017/0316/860183-britain-mps-families/,British MPs to be banned from hiring family members,,"Britain will ban new MPs from employing spouses, relatives or business associates, according to rules announced today in the wake of a scandal that has rocked France's presidential election. The Independent Parliamentary Standards Authority outlined the change in a revised rulebook for MPs' expenses, saying it does not affect existing employees with family or business ties to MPs. Any member of staff who begins a relationship with an MP while working for him or her will also have their contract terminated after a period of two years. The rules will apply starting with the next general election, currently scheduled for 2020. ""We believe that the employment of connected parties is out of step with modern employment practice, which requires fair and open recruitment to encourage diversity in the workplace,"" IPSA head Ruth Evans said. About 150 of the 650 MPs in the British parliament, almost a quarter of the total, employ family members. Currently, parliamentarians are allowed to employ only one family member, a rule imposed in 2010 following a scandal over expense claims by MPs. French presidential candidate Francois Fillon, once widely considered a frontrunner in the race, is under investigation for allegedly misusing public funds made available to politicians to hire assistants. Investigators are looking into claims that he used the funds to pay his wife, Penelope, hundreds of thousands of euro-over a period of several years as a parliamentary assistant. French MPs are allowed to employ family members, but Mr Fillon has failed so far to convince investigators that Mrs Fillon actually worked for her salary, which exceeded �10,000 a month in 2007. He is also being investigated over payments to two of his children for acting as Senate assistants between 2005 and 2007.-", -2611,2017/3/16,http://www.rte.ie/news/2017/0316/860171-ulster-students-st-patricks/,NI universities cancel classes to avoid St-Patrick's Day disturbances,,"Northern Ireland's two universities have cancelled all classes today and told students to go home for the weekend in an attempt to prevent disturbances involving students which have occurred on St-Patrick's Day in recent years. PSNI riot -police were called to the Holyland area of Belfast last year after trouble broke out amongst students celebrating St-Patrick's Day. - Queen's University-and Ulster University-have written to students urging them not to travel to the Holyland, which has a large student population, or to behave responsibly if they do. The universities have warned that sanctions, including expulsion, may be used against students involved in any disturbances. - Classes at both universities were cancelled yesterday and today, and both have been designated reading days. Students are being encouraged to go home for the weekend. Off-licences in the Holyland area are to close between 4pm and 9pm on St-Patrick's day.", -2612,2017/3/16,http://www.cnn.com/2017/03/15/health/oxford-comma-maine-court-case-trnd/index.html,An Oxford comma changed this court case completely,"(CNN)If you have ever doubted the importance of the humble Oxford comma, let this supremely persnickety Maine labor dispute set you straight.","A group of dairy drivers argued that they deserved overtime pay for certain tasks they had completed. The company said they did not. An appeals court sided with the drivers, saying that the guidelines themselves were made too ambiguous by, you guessed it, a lack of an Oxford comma. This is what the law says about activities that do NOT merit overtime pay. Pay attention to the first sentence: The canning, processing, preserving, freezing, drying, marketing, storing, packing for shipment or distribution of: (1) Agricultural produce; (2) Meat and fish products; and (3) Perishable foods. That's a lot of things! But if we're getting picky, is packing for shipment its own activity, or does it only apply to the rest of that clause, i.e. the distribution of agricultural produce, etc.? See, all of this could be solved if there were an Oxford comma, clearly separating ""packing for shipment"" and ""distribution"" as separate things! According to court documents, the drivers distribute perishable food, but they don't pack it. Yes, this is the real argument they made. And they really won. ""Specifically, if that [list of exemptions] used a serial comma to mark off the last of the activities that it lists, then the exemption would clearly encompass an activity that the drivers perform,"" the circuit judge wrote. It did not, and since the judge observed that labor laws, when ambiguous, are designed to benefit the laborers, the case was settled. ""For want of a comma, we have this case,"" the judge wrote. The irony in this ruling is, there are actual state guidelines on how Maine lawmakers draw up their documents. And they do NOT include Oxford commas! The humanity! To be fair, there is also guidance on how to avoid unclear language that could, say, help an impressively pedantic group of drivers get what they were owed. (All of you Oxford comma purists out there, go ahead and gloat. We'll have you know CNN adheres by AP Style, which does not include the mark.)", -2613,2017/3/16,http://www.huffingtonpost.com/2017/03/15/commercial-orange-juice_n_15401330.html,'100 Percent Orange Juice' Probably Isn't As Natural As You Think,You might want to start squeezing your own oranges.,"When we pick up a carton of ""?00 percent orange juice, not from concentrate""?from the store, the image of oranges being carefully juiced is often what comes to mind. Something like this: It's suggested in the language, so it's totally normal to have that assumption. But in most cases,-it couldn""t be further from the truth. Our store-bought glass of morning OJ is actually made by pulverizing oranges in giant processing machinery to extract its juice. The process of making commercial OJ looks more like this:- That's not such a bad thing, but that's not all. Alissa Hamilton's book,-Squeezed: What You Don""t Know About Orange Juice, explained back in 2010 that there's a lot more work that goes into making commercial OJ. And it's far from natural. Because oranges only come into season during a specific time of year ""?different times, depending on the variety ""?and yet orange juice is craved all year round, orange juice companies have to store the juice for long periods of time. In order to do that without the juice spoiling, the juice is stored in million-gallon aseptic tanks and the oxygen is removed from it.- Here's the thing you should know: when the oxygen is removed from the juice, so too are the natural chemicals found in the juice that give it that orange-y flavor and smell. Karen Mathis from the Florida Department of Citrus shared with HuffPost in 2011 a little insight on the process:- ""during processing, natural components such as orange aroma, orange oil from the peel, and pulp may be separated from the orange juice. After the juice is pasteurized, these natural orange components may be added back to the orange juice for optimal flavor.""?In other words, before the juice is bottled it is re-flavored and re-scented with something that in the industry calls-flavor packs,-which are not a natural food product but rather are designed by flavor and fragrance companies. Yes, the same companies that make your perfume. These flavor packs are why each carton of a brand of orange juice tastes exactly the same, despite the fact that this isn""t true of the fruit itself. And that's also why each different brand of orange juice has its own unique flavor, because the company has invested in its own flavor pack.- The reason you don""t see flavor packs printed on ingredient lists is because food companies don""t legally have to, since the flavors are not made from artificial ingredients ""?they'r made from citrus essence and oils ). While this isn""t as scary as some ingredients that can be found in our foods, it does illuminate the fact that OJ is a processed food. Might want to start juicing your own oranges from now on. All the meal hacks and indulgent snacks. You'r welcome. Learn more", -2614,2017/3/16,http://www.huffingtonpost.com/2017/03/15/easter-dessert-recipes_n_15401328.html,12 Easter Desserts That Are Total Stunners,"Even you will ""ooh"" and ahh"" when you place these desserts on the table.","There aren""t very many occasions throughout the year to whip up a breathtaking, over-the-top dessert. That's why when a holiday comes up, it's important that you take the opportunity to make the most beautiful sweet treat you can imagine. This coming Easter is that perfect moment. Bake yourself a dessert so lovely, so sweet that even you ""Aoh""?and ""Ahh""?when you place it on the table. To be clear, we'r not talking about cute bunny Easter desserts that delight kids, but beauties that will wow all ages. To help you in your quest for baking greatness, We're rounded up our 12 favorites. From cakes to pies to flans, here are our favorite dessert recipes worthy of your Easter celebration. All the meal hacks and indulgent snacks. You'r welcome. Learn more", -2615,2017/3/16,http://www.huffingtonpost.com/2017/03/15/food-phobias_n_15401326.html,"10 Very Real Food Phobias, And Their Impossibly Long Names",The fear of cooking -- known as mageirocophobia -- is a very real thing.,"Phobias run the gamut from a pretty common fear of heights (known a acrophobia) to something as vague as a fear of infinity (known as apeirophobia). For just about everything that exists in the world, there's a phobia to go with it. And-that's true for food, too. There are food phobias we never imagined existed, such as consecotaleophobia, which is a fear of eating with chopsticks. There are food phobias we can kind of understand, like deipnophobia, which is a fear of dinner conversations. And then there are some food phobias that sound very challenging to live with. Here are 10 food phobias that actually exist: All the meal hacks and indulgent snacks. You'r welcome. Learn more", -2616,2017/3/16,http://www.bbc.co.uk/news/uk-england-39289132,Ex-footballer Adam Johnson loses appeal,Ex-England footballer Adam Johnson has lost a Court of Appeal challenge against his conviction for sexual activity with a schoolgirl.,"Ex-England footballer Adam Johnson has lost a Court of Appeal challenge against his conviction for sexual activity with a schoolgirl. The 29-year-old was jailed for six years last March for sexually touching and grooming the 15-year-old fan. The former Sunderland player was refused leave to appeal his conviction and sentence in July and launched a second bid. Three judges rejected the latest appeal and a bid to reduce his sentence. Johnson admitted grooming the girl and one charge of sexual activity before his trial at Bradford Crown Court. Jurors found him guilty of sexual touching, but not guilty on a charge relating to another sexual act.", -2617,2017/3/16,http://tass.com/politics/935871,MP says charges against Russians over Yahoo hack aimed at defaming Moscow's image in US,The US Justice Department announced on Wednesday that two FSB officers and two hackers who assisted them have been charged as suspects in a 2014 hacking attack on some 500 million Yahoo accounts,"MOSCOW, March 16. /TASS/. Washington's charges against Russian citizens over the hacking attack on Yahoo are used for defaming-Moscow's image in the United States, Russian MP Leonid Slutsky said on Thursday. ""We are aware of this and as we know, over the past weeks and months this is not the only accusation of this character and in our view it has nothing to do with reality,"" said Slutsky, who chairs the State Duma's international affairs committee. The Russian side has repeatedly called on ""the respective US agencies to cooperate to establish the truth and to prevent such situations in principle in the near future,"" Slutsky said. ""But apparently, our US colleagues are interested in fabricated and virtual hacks rather than the fight against real hacks""?Such situations are used for marginalizing Russia's image in the US and the world,"" the MP said. The US Justice Department announced on Wednesday that two FSB officers and two hackers who assisted them have been charged as suspects in a 2014 hacking attack on some 500 million Yahoo accounts. The department said one of the men indicted in the case is Karim Baratov who was arrested in Canada on Tuesday. The indictments also target Dmitry Dokuchaev, Igor Sushchin and Alexey Belan who has been charged twice before in connection with cyber intrusions. The charges include hacking, wire fraud, trade secret theft and economic espionage, according to US justice officials.", -2618,2017/3/16,http://tass.com/politics/935880,Kremlin got no letter from Yanukovich requesting to send forces to Ukraine,Yanukovich also stressed more than once that he had not sent any letter to President Putin,"MOSCOW, March 16. /TASS/. The Kremlin did not receive any letter of former Ukrainian President Viktor Yanukovich with the request to deploy Russian forces to Ukraine, Russian presidential spokesman Dmitry Peskov said. ""No letter was officially submitted to the Russian presidential administration, no such letter was registered in the administration,"" Peskov said. In an interview with Russian and Ukrainian journalists in February on occasion of the third anniversary of the coup d'etat in Ukraine, Yanukovich said he had not asked Russia to send forces to the country. Yanukovich stressed that he had not sent any letter to President Putin. ""First, this was a statement, not a letter. Second, there are the laws,"" the former president said. ""I did not betray my people, I tried to protect my people and do this in the framework of my powers,"" he said.", -2619,2017/3/16,http://tass.com/politics/935872,"Deal with US on second Crimean referendum out of the question ""?Kremlin",,"MOSCOW, March 16. /TASS/. The Kremlin denies any possibility of a deal with the United States on a new referendum in Crimea in exchange for the lifting of sanctions, Russian presidential spokesman Dmitry Peskov said on Thursday. ""This is out of the question,"" Peskov told reporters. On March 11, 2014, the legislatures of Crimea and Sevastopol voted for a declaration on the independence from Ukraine of the Autonomous Republic of Crimea and the city of Sevastopol. A referendum was held on the peninsula five days later when the overwhelming majority of voters (96.7% in Crimea and 95.6% in the city of Sevastopol) supported Crimea's reunification with Russia. A treaty on the accession of the new territorial entities to the Russian Federation was signed on March 18. ", -2620,2017/3/16,http://tass.com/politics/935874,Kremlin ready for cooperation in countering cybercrimes,The Kremlin hopes to get official information on Yahoo hacking but wants to assure that it is ready for cooperation in countering cybercrimes,"MOSCOW, March 16. /TASS/. The Kremlin hopes to get official information on the hacking of the Internet search engine Yahoo but wants to assure that it is ready for cooperation in countering cyber crimes, Kremlin spokesman Dmitry Peskov said on Thursday. ""As for the charges brought against some Russian citizens [in the Yahoo case], we have learnt about this situation from the media. As far as we know, we have not received any information via official channels and therefore, unfortunately, we don""t have any details,"" the spokesman said. According to Peskov, ""Russia has always been interested - and has stated this at various levels - in cooperation in the field of countering cyber crimes in the interests of ensuring cyber security."" ""We believe that this is one of the priority tasks today,"" the Kremlin spokesman said. ""We hope that we'll get some official information on this score [on the hacking of the Yahoo] after all,"" Peskov said. ", -2621,2017/3/16,http://tass.com/politics/935873,Putin ready to continue dialogue with Dutch PM,The Kremlin is monitoring the situation around the Dutch elections,"MOSCOW, March 16. /TASS/. The Kremlin is ready to continue the dialogue with Dutch Prime Minister, Mark Rutte, if he continues to lead the government, Russian Presidential Spokesman, Dmitry Peskov, told reporters. ""We are monitoring the situation (around the Dutch elections),"" he said, adding that Putin and Rutte earlier had ""quite frank and quite productive"" contacts. ""If it so happens that Mr. Rutte continues to lead the government, they will be able to continue the dialogue in the future,"" Peskov added.", -2622,2017/3/16,http://www.dw.com/en/stocks-soar-on-cautious-us-fed-and-dutch-election-relief/a-37960019?maca=en-rss-en-all-1573-rdf,Stocks soar on cautious US Fed and Dutch election relief,European shares have hit their highest level in 15 months amid a mounting feelgood mood delivered by the prospect of a less sweeping tightening of US rates and a Dutch vote that held back a populist tide in Europe.,"In early trading on Thursday, the pan-European STOXX 600 index hit its highest level since December 2015, with Amsterdam's AEX index rising to a nine-year high after Dutch centre-right Prime Minister Mark Rutte scored a resounding victory over anti-EU Geert Wilders. Germany's DAX also climbed to a new high for this year, while France's CAC 40 hit its highest level since mid-2015. The London stock exchange even hit a new all-time high, driven by the prospect of a flatter trajectory of US interest rate hikes and a more positive outlook by the American central bank for the world's largest economy. ""There was a lot to process this Thursday morning, with investors breakfasting on the Dutch election result and the aftermath of the Fed's latest policy decision,"" said Spreadex analyst Connor Campbell. And analysts at Citibank described the Fed's move as a ""dovish hike,"" saying: ""The world is slowly moving to a new rate paradigm."" The prospect of the Fed raising rates by another 25 basis points at its June meeting has fallen from about 50 per cent mid-session on Wednesday to 47 per cent, according to CME FedWatch. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZGZG Top gainers Anglo American was the top European gainer after Indian billionaire and Vedanta Resources majority shareholder Anil Agarwal said he would buy a stake of up to 2 billion pounds in the miner. Anglo led Europe's basic resource stocks higher, the top sectoral gainers, up 3.5 percent. Antofagasta, Fresnillo, BHP Billiton -and Randgold Resources were in the top gainers, up 4.4 to 5.7 percent. Lufthansa was among top gainers, up 5.1 percent after its results, despite the German airline saying profits were set to dip in 2017 on rising fuel costs. Banking stocks gained after the U.S. Federal Reserve raised interest rates. The Eurozone banking index was up 1.7 percent. Renault was the top faller, after the French carmaker's CEO Carlos Ghosn was targeted in a French diesel cheating probe. uhe/kd (Reuters, AFP) -", -2623,2017/3/16,http://www.aljazeera.com/news/2017/03/interpol-notice-issued-korean-murder-suspects-170316094602700.html,Interpol notice issued for N Korean murder suspects,Four North Korean nationals wanted in connection with February 13 murder of estranged half-brother of Kim Jong-un.,"Interpol has issued a red notice, the closest to an international arrest warrant, for four North Koreans wanted in connection with the murder of the estranged half-brother of North Korean leader Kim Jong-un. Malaysian police requested Interpol's help to apprehend the suspects last month. ""We have obtained a red notice for the four North Korean nationals who were at the airport on the day of the incident and who have since left ... we are hoping to get them through Interpol,"" Khalid Abu Bakar, Malaysian police chief, announced on Thursday. An Interpol red notice is a request to find and provisionally arrest someone pending extradition. READ MORE: Kim Jong-nam's identity confirmed with DNA: Malaysia Kim Jong-nam was murdered on February 13, when Malaysian police say two women - an Indonesian and a Vietnamese - smeared super toxic VX nerve agent on his face at Kuala Lumpur International Airport. The two women were charged with murder earlier this month, but police are looking for seven North Korean suspects in connection with the killing, including four who are believed to have made their way back to Pyongyang. The murder has resulted in a fierce diplomatic row between two countries with once strong ties. North Korea has questioned the Malaysian investigation into the murder and refused to acknowledge that the man murdered is Kim Jong-nam. Speaking at the North Korean embassy in Beijing at an unusual and hastily arranged news conference, Pak Myong-ho, a North Korean diplomat, blamed the US and South Korea. ""The recent incident that occurred in Malaysia was clearly a political scheme by the US and South Korea aimed at hurting the DPRK's reputation and overthrowing the DPRK regime,"" Pak said, using the North's formal name, the Democratic People's Republic of Korea. ""The only parties that will benefit from this incident are the enemy countries."" WATCH: North Korea-Malaysia diplomatic dispute - THE STREAM Pak made the comments to handpicked audience of reporters in a small, sparsely decorated room inside the embassy. At the time of the killing, Kim was carrying a diplomatic passport bearing another name, but Malaysian authorities said on Wednesday that his identity had been confirmed using DNA samples taken from one of his children. Malaysia has also refused demands by the North Korean government for Kim Jong-nam's body to be released, saying that the remains can only be handed over to the next-of-kin under local laws. No family member has come forward to claim the body. State news agency Bernama, quoting Noor Rashid Ibrahim, Malaysian deputy police chief, as saying on Thursday that the family had given consent for Malaysia to manage Kim Jong-nam's remains. Noor Rashid did not say when or where the consent was given. Kim Jong-nam had been living in the Chinese territory of Macau under China's protection after the family went into exile several years ago. REAd MORE: Kim Jong-nam - N Korea accuses US and S Korea of murder He had been known to speak out publicly against his family's dynastic control of North Korea. A man claiming to be the son of Kim Jong-nam appeared in video footage last week, saying he was lying low with his mother and sister. An official at South Korea's National Intelligence Service confirmed the man in the video was Kim Han-sol, the 21-year-old son of Kim Jong-nam. Malaysia is one of the few countries outside China that has for decades maintained ties with North Korea. But as relations soured, Malaysia recalled its envoy from Pyongyang and expelled the North Korean ambassador. North Korea then barred nine Malaysians - three diplomats and their six family members - from leaving the country, prompting Najib Razak, Malaysian prime minister, to describe the action as ""hostage"" taking. Malaysia followed with a tit-for-tat action stopping North Koreans from leaving. Najib said Malaysia will begin formal negotiations with North Korea ""when the time is right"", clarifying previous reports saying that talks between the two countries had begun on Monday. Source:-Al Jazeera News", -2624,2017/3/16,http://abcnews.go.com/Politics/read-full-white-house-budget-blueprint/story?id=46168992,Read the full White House budget blueprint,,"The Office of Management and Budget has released its blueprint for the 2018 budget: ""America First: A Budget Blueprint to Make America Great Again."" The proposed budget slashes funding for the State Department and Environmental Protection Agency and calls for a 10 percent increase in defense spending. The president's budget director, Mick Mulvaney, told reporters Wednesday: ""We wrote it using the president's own words. We went through his speeches, we went the articles that have been written about his policies...and we turned those policies into numbers."" Read the full White House budget proposal. ", -2625,2017/3/16,http://abcnews.go.com/Politics/trump-budget-director-mick-mulvaney-money-build-wall/story?id=46166744,Trump budget director Mick Mulvaney 'getting the money together to build the wall',,"White House Office of Management and Budget Director Mick Mulvaney today said he's working on gathering the funds to begin building a wall along the U.S.-Mexico border. ""I'm responsible for getting the money together to build the wall and that's what I'm doing,"" Mulvaney said on ABC News' ""Good Morning America.""?Trump's push for a border wall between the United States and Mexico was the cornerstone of his 2016 presidential campaign. Mulvaney, who unveiled Trump's budget blueprint Wednesday, said the proposed cuts and spending reflect the president's campaign promises. ""The president wrote a budget for the nation and we wrote a budget based upon his campaign promises and that's what you see in the budget,""?Mulvaney said. ""We took his words and turned them into numbers. The president promised a wall, he's going to deliver it."" In the budget blueprint, Trump's promised border wall will get a cash influx of $1.5 billion, with possibly more funds flowing to that project in next year's budget. The money will provide for a couple of ""pilot cases""?to see what kind of wall structure is most cost-efficient and effective, Mulvaney told reporters Wednesday. He said on ""GMA"" this morning that the money the president seeks for the rest of this year to start the wall is ""not that much money in a trillion-dollar discretionary budget."" While a balanced budget is not achievable this year, Mulvaney said, the budget blueprint doesn't add to the deficit. The Trump administration will release its full federal budget in May, he said. ""This is a budget blueprint; it's really the spending part of the budget,"" Mulvaney said. ""This is the first piece of the budget to allow the spending process to start in Congress.""", -2626,2017/3/16,http://abcnews.go.com/International/wireStory/french-police-shots-fired-southern-high-school-46168449,Student arrested after shots fired at French high school,,"An armed high school student was arrested and police fanned out around a picturesque perfume capital in southern France after a school shooting that left at least two wounded. The incident at the Alexis de Tocqueville high school in the town of Grasse provoked shock in France, where such school shootings are rare. The country remains tense and under a state of emergency after deadly Islamic extremist attacks over the past two years. One student with weapons was arrested, according to a French police official. The official, who was not authorized to be publicly named, would not elaborate on what weapon or weapons the teen was carrying. The government minister for victims affairs, Juliette Meadel, tweeted that two people were wounded and all the students are now safe. Police cordoned off the area and worried residents gathered outside, along with several emergency vehicles. The town is about 40 kilometers (25 miles) from the southern city of Nice. An employee of a nearby electronics store said police had asked residents to stay indoors. An employee of sports chain Decathlon, which has a branch less than 500 meters from the high school, said he'd seen about 40 high school students leaving from the area and gathering in a nearby parking lot. Both local residents would not provide their names. The government sent out an alert warning of an attack after police reported that shots were fired. The alert came in a system implemented by the government after the deadly November 2015 attacks in Paris.", -2627,2017/3/16,http://abcnews.go.com/International/wireStory/letter-bomb-explodes-france-office-imf-injuring-46167493,"Letter bomb explodes at France office of IMF, injuring 1",,"A letter exploded Thursday at the French office of the International Monetary Fund, lightly injuring one person, amid heightened security around Europe after a string of deadly attacks. The incident came as a Greek anarchist group claimed responsibility for a failed letter bomb sent to the German Finance Ministry on Wednesday. After Thursday's explosion in Paris, staff from the IMF office were evacuated and armed military officers and police guarded the area, in a chic district of western Paris. It is unclear who sent the homemade explosive, which was like a ""big firecracker"" and sent by regular mail, said Paris police chief Michel Cadot. He said the IMF office had received threatening phone calls in recent days but they were not necessarily linked to Thursday's incident. IMF director Christine Lagarde, who is French, said in a statement that she was informed about the explosion while on a trip to Germany. ""I condemn this cowardly act of violence and reaffirm the IMF's resolve to continue our work in line with our mandate,"" she said. French President Francois Hollande, whose country remains in a state of emergency after 235 people were killed in Islamic extremist attacks over the past two years, told reporters Thursday in southern France: ""We are again confronted with an attack. There is no other word for it when you are confronted with a package bomb."" The secretary who opened the letter was injured by shrapnel in the face and hurt in the eardrum because of a ""rather violent noise,"" the police chief said. Police searched all four floors of the building, which also houses the World Bank office in France, Cadot said. No one else was injured and only light damages were incurred. The Greek group that claimed responsibility for the German bombing, Conspiracy Cells of Fire, claimed in an online posting Thursday on a Greek left-wing website that the attack was part of a concerted campaign by international anarchist groups. Many Greeks resent austerity measures imposed by IMF and the European Union linked to Greece's bailout program. The bomb sent to Germany, containing low-grade explosives like the ones used in fire crackers, was destroyed Wednesday before it could explode. ""?Jeffrey Schaeffer and Elaine Ganley in Paris and Nicholas Paphitis in Athens contributed to this report.", -2628,2017/3/16,http://abcnews.go.com/Politics/wireStory/house-gop-health-bill-facing-fresh-house-committee-46165678,House GOP health bill facing fresh House committee test,,"The White House and Republican leaders are talking to rank-and-file lawmakers about revising the GOP health care overhaul, hoping to keep a rebellion by conservatives and moderates from snowballing and imperiling the party's showpiece legislation. Four days after a congressional report projected the bill would pry coverage from millions of voters, signs of fraying GOP support for the legislation were showing. The measure would strike down much of former President Barack Obama's 2010 overhaul and reduce the federal role, including financing, for health care consumers and is opposed uniformly by Democrats. In a fresh test of Republicans' willingness to embrace the legislation, the House Budget Committee was considering the measure Thursday. Republicans expressed confidence the bill would be approved, but the vote could be tight. The panel can't make significant changes but was expected to endorse non-binding, suggested changes to nail down votes. The bill would eliminate the tax penalty that pressures people to buy coverage and the federal subsidies that let millions afford it, replacing them with tax credits that are bigger for older people. It would cut Medicaid, repeal the law's tax increases on higher earning Americans and require 30 percent higher premiums for consumers who let coverage lapse. Overt GOP opposition grew after the nonpartisan Congressional Budget Office projected Monday that the legislation would push 24 million Americans off coverage in a decade and shift out-of-pocket costs toward lower income, older people. Obama's law has provided coverage to around 20 million additional people House Speaker Paul Ryan, R-Wis., told reporters Wednesday that leaders could now make ""some necessary improvements and refinements"" to the legislation. But he declined to commit to bringing the measure to the House floor next week, a schedule Republican leaders have repeatedly said they intended to keep. At a late rally in Nashville Wednesday, President Donald Trump said: ""We're going to arbitrate, we're all going to get together, we're going to get something done."" Vice President Mike Pence met with House GOP lawmakers and pressed them to unite behind the legislation. ""'It's our job to get it out of here and get it to the Senate,'"" Pence told Republicans, according to Rep. Dennis Ross, R-Fla. That would let Trump pressure ""Democrats in these red states to come on board,'"" Ross said, referring to Republican-leaning states where Democratic senators face re-election next year. But insurgents still abound. Conservatives want to end Obama's expansion of Medicaid to 11 million additional low-income people next year, not 2020 as the bill proposes. They say a GOP proposed tax credit to help people pay medical costs is too generous, and they want to terminate all of Obama's insurance requirements, including mandatory coverage of specified services like drug counseling. Rep. Mark Meadows, R-N.C., head of the hard-line conservative House Freedom Caucus, continued pushing for changes. He claimed at least 21 members of his group would oppose the measure as written; the bill would fail if 22 Republicans join all Democrats in opposing it. But underscoring the push-pull problem GOP leaders face in winning votes, moderates feel the tax credits are too stingy, especially for low earners and older people. They oppose accelerating the phase-out of the Medicaid expansion and are unhappy with long-term cuts the measure would inflict on the entire program. Terminating the Medicaid expansion in 2020 and not 2018 ""is sacrosanct to me,"" said moderate Rep. Tom MacArthur, R-N.J. In a new complication, Sen. Charles Grassley, R-Iowa, said the measure lacked the votes to pass in the Senate, where Republicans hold a precarious 52-48 majority. That left House members angry over being asked to take a politically risky vote for legislation likely to be altered. Moderates ""don't like the idea of taking a vote in the House that may go nowhere in the Senate,"" said Rep. Charlie Dent, R-Pa. Amid the maneuvering, a federal report said more than 12 million people have signed up for coverage this year under the very statute that Republicans want to repeal. That figure underscored the potential political impact of the GOP's next move. ""?Associated Press reporters Erica Werner, Darlene Superville and Kevin Freking contributed to this report.", -2629,2017/3/16,http://abcnews.go.com/International/wireStory/yahoo-breach-spotlights-links-russian-spies-hackers-46166257,"Yahoo breach spotlights links between Russian spies, hackers",,"A U.S. indictment of two Russian intelligence agents and two hackers alleged to have stolen more than half a billion U.S. email accounts in 2014 has cast a spotlight on the intertwining of the Russian security services and the murky digital underworld. The officers of the powerful FSB, Russia's Federal Security Service, are accused of employing cybercriminals to access Yahoo's systems and steal data on millions of ordinary users as well as U.S. and Russian officials, Russian journalists and executives at large companies. Interviews with security experts, hackers and people close to the Russian cybercriminal world suggest that the FSB's ties to cybercrime date back years and are mediated through a web of intermediaries and lubricated by blackmail and cash. ""There has been a lot of piggy-backing by the Russian state on the activities of Russian organized cybercriminal groups and scooping up the fruits of their activities,"" said Nigel Inkster, director of Future Conflict and Cyber Security at the International Institute for Strategic Studies in London and a former British intelligence officer. ""The FSB know where these guys are and they know where they can find them,"" he said. According to the indictment, FSB agents Igor Sushchin and Dmitry Dokuchaev ran two hackers during the Yahoo operation and paid them. The hackers were Aleksei Belan, a Russian national, and Karim Baratov, a Kazakh who lives in Canada. Belan also is alleged to have simultaneously used the data to run a spamming network to look for financial information for personal profit. Dokuchaev, a 33-year-old major in the FSB's Information Security Center, was arrested in December as part of a treason case, Russian media have reported. The U.S. Justice Department would not confirm that account. In 2011, Dokuchaev was identified by the pseudonym ""Forb"" in the Russian-language magazine Hacker. In a 2004 interview with the Russian newspaper Vedomosti, Forb boasted of making money from credit-card fraud and breaking into U.S. government websites. Little is known about the nature of the treason charge. In announcing the indictment that included Dokuchaev and Sushchin, Acting Assistant Attorney General Mary McCord noted that their department was ""the FBI's point of contact in Moscow for cybercrime matters."" ""The involvement and direction of FSB officers with law enforcement responsibilities makes this conduct that much more egregious,"" she said. President Vladimir Putin's spokesman Dmitry Peskov said the Kremlin learned about the indictments from the media and hasn't received any official information. He also reaffirmed Russia's denial of any official involvement in hacking. ""We have repeatedly said that there absolutely can't be any talk about any Russian agency's official involvement, including the FSB, in any illegal actions in cyberspace,"" he said. The FSB press service had no immediate comment on the indictment, and the agency did not reply to earlier faxed questions about its broader contacts with hackers. Along with Dokuchaev, at least three other men reportedly were arrested in the treason case, including Col. Sergei Mikhailov, the deputy head of the FSB's Information Security Center. Although details are sparse, that case has highlighted apparent links between the FSB and cybercrime. Russia has long been known for its dynamic cybercriminal underworld, which is fueled by high technical standards and the opportunity for significant financial rewards. That makes it a fertile recruiting ground for the intelligence services. ""It's all about outsourcing,"" said Andrei Soldatov, an expert on the Russian security services and co-author of ""Red Web,"" a book about Kremlin attempts to control the internet. Soldatov pointed to the Russian military operations in Ukraine that used local proxies and private contractors, describing it as a tactic helpful to Kremlin officials ""because it allows them to deny responsibility."" The most talented Russian hackers work for groups that carry out big financial heists, said Alexander Gostev, chief security expert at Kaspersky Lab, a cybersecurity firm. This community is run by about 20 kingpins who have technical skills but are more notable for their management abilities and contact networks, he said. ""Any hacking group can be hired for an attack on whatever you want,"" Gostev said. The FSB is the leading Russian intelligence agency engaged in cyber operations, but it competes with the military intelligence service, known as the GRU, and the Foreign Intelligence Service, or SVR, according to Mark Galeotti, an expert on the Russian security services and a senior researcher at the Institute of International Relations in Prague. Rivalries between these groups mean they are constantly vying for the Kremlin's favor. ""They are like a collection of cats wanting to bring the dead mouse to the master's kitchen,"" Galeotti said. Outgoing U.S. President Barack Obama imposed sanctions in December on both the FSB and the GRU for their role in what U.S. intelligence services concluded was Russian interference in the 2016 election campaign. The FSB is more aggressive than the military and foreign intelligence agencies, which run more traditional intelligence operations, according to Galeotti. ""The FSB are secret policemen who are used to operating with absolute impunity and they freely use heavy-handed tactics like blackmail,"" he said. Russian programmer Dmitry Artimovich, who was convicted in 2013 of hacking offenses, said the FSB had made repeated attempts to recruit him. The first time, he said, was via his cellmate when he was in prison awaiting trial. Artimovich said he refused the offer, preferring to spend time in prison. ""Why would I do it?"" he said. ""I served one and a half years. Now I am free and don't owe anyone anything. But if you agree to this, you can't go anywhere. You can't have any career growth. It's real dependency."" Since being released, Artimovich said he has been asked dozens of times to carry out hacking operations, offers he said are designed to tempt him to break the law and become vulnerable to FSB pressure. Artimovich shared screenshots of some of these proposals with The Associated Press, which were made via social networking sites. Alexander Glazastikov, a member of a hacking group that blackmailed top Russian officials after stealing personal details, said earlier this year that the group, known as Humpty Dumpty, cooperated with the FSB. In exchange for protection, Humpty Dumpty handed the FSB compromising material from hacked email accounts. Security analysts also highlight the case of Yevgeny Bogachyov, a Russian programmer with a $3 million FBI bounty on his head. He is thought to be behind one of the most successful viruses, Zeus, which siphoned off hundreds of millions of dollars from bank accounts worldwide. U.S. officials have said that Bogachyov lives a luxurious life in a southern Russian resort on the Black Sea. Bogachyov is one of the kingpins in Russia's cyber community, according to Kaspersky Lab's Gostev. ""He is clearly not a programmer,"" Gostev said. Since he was named publicly in 2010, Bogachyov has been linked to intelligence-gathering operations targeting the security services of Turkey, Georgia and Ukraine. Many experts assume his talents have been utilized by Russian intelligence agencies.", -2630,2017/3/16,http://abcnews.go.com/International/wireStory/britains-brexit-bill-receives-royal-assent-law-46166701,British PM May rejects call for Scottish independence vote,,"British Prime Minister Theresa May has rejected a call from Scotland's leader for a referendum on Scottish independence before Britain leaves the European Union. May said Thursday that ""now is not the time"" to reopen Scotland's independence debate, though she did not rule out a referendum in the future. Britain is due to begin the two-year exit process from the 28-nation bloc by the end of this month. The United Kingdom is made up of England, Scotland, Wales and Northern Ireland. The country as a whole decided in a June 23 referendum to leave the EU, but in that ballot Scots voted 62 to 38 percent to remain. Scottish First Minister Nicola Sturgeon announced earlier this week that she will seek a referendum on Scottish independence between the fall of 2018 and spring 2019, so voters can decide whether to leave the EU with the rest of the United Kingdom or to go it alone. The British government must agree to a legally binding referendum and May said ""now is not the time."" ""All our energies should be focused on our negotiations with the European Union,"" May said, adding that holding a referendum while EU exit talks are still underway would ""make it more difficult for us to get the right deal for Scotland and the right deal for the U.K."" A bill authorizing the British government to begin divorce proceedings became law Thursday. House of Commons Speaker John Bercow announced that the European Union (Notification of Withdrawal) Act had received the assent of Queen Elizabeth II. The bill was passed by Parliament on Monday but needed royal assent to become a law. Such assent is a formality ""?no monarch has refused to sign a bill for more than 300 years. May is now free to invoke Article 50 of the EU's key treaty, triggering two years of exit negotiations. She says she will do that by March 31, calling it a ""decisive moment"" for Britain. The prime minister's office has indicated notification will come in the last week of the month. Under the terms of the EU treaty, Britain will no longer be a member of the bloc two years after May issues the notification. The British government hopes to seal a new free-trade deal between the U.K. and the bloc in that time. But EU negotiators warn it could take two years just to settle the divorce terms, and agreeing on a new relationship for the U.K. and the EU could take years longer.", -2631,2017/3/16,http://abcnews.go.com/International/wireStory/philippine-lawmaker-seeks-impeach-duterte-46162248,Philippine lawmaker seeks to impeach Duterte over drug fight,,"A Philippine lawmaker filed an impeachment complaint against President Rodrigo Duterte on Thursday because of the thousands of deaths in his anti-drug crackdown and alleged corruption, although the bid faces an uphill battle with Duterte's allies holding an overwhelming majority in Congress. Rep. Gary Alejano's complaint filed at the House of Representatives alleged Duterte violated the constitution, committed bribery and corruption and betrayed the public trust with his actions, including the crackdown that has sparked extrajudicial killings and his failure to declare huge bank deposits as required by law. ""We are of the firm belief that President Duterte is unfit to hold the highest office of the land and that impeachment is the legal and constitutional remedy to this situation,"" said Alejano. Although opposition lawmakers lack the numbers to impeach Duterte, Alejano said there was a need to stop his ""excesses and crimes."" A vote of a third of the House's more than 290 members is needed to send the complaint to the Senate for trial. More than 260 of House members belong to a pro-Duterte bloc. ""We understand that in terms of numbers we face an uphill battle,"" he said. ""But precisely, the battle for impeachment must be fought both inside and outside the halls of Congress,"" adding public pressure should sway lawmakers to vote rightfully. ""Our role ... is merely to be the gate-openers for those who want to be a part of this historic and moral crusade,"" Alejano said. Alejano cited the more than 8,000 deaths of drug suspects under the crackdown in underscoring the urgency of the first impeachment attempt in Duterte's presidency. Other opposition politicians have backed calls for such a move. House Speaker Pantaleon Alvarez, a Duterte ally, called the impeachment bid ""stupid,"" saying it was based on fabricated allegations. ""They are not even in the league of Don Quixote so this impeachment won't fly. It will crash like a rudderless plane flown by witless pilots,"" government Solicitor-General Jose Calida said. Presidential spokesman Ernesto Abella suggested the impeachment bid and opposition criticism were possible efforts to destabilize the Duterte administration. Alejano, a former marine officer who was accused of involvement in a failed coup attempt several years ago, denied his complaint was part of an extraconstitutional attempt to unseat Duterte. In his complaint, Alejano echoed rights activists' label of Duterte as a ""cheerleader"" for encouraging the ""summary executions"" of drug suspects in violation of their rights to life and due process. He cited the president's repeated threats to kill drug lords and order to law enforcers and civilians to shoot drug suspects if they fight back, as well as the Senate testimony of a retired police officer and a former militiaman who said they were members of a death squad under Duterte when he was a southern mayor. The two separately testified they were involved in hundreds of killings of drug suspects and political opponents of Duterte in Davao city. Duterte has denied he condoned extrajudicial killings. He has not responded in detail to the two men's allegations. Alejano's complaint also cited accusations by opposition Senator Antonio Trillanes IV, who accused Duterte of failing to declare more than 2 billion pesos ($40 million) in bank deposits as required by law. Duterte has denied any wrongdoing. In November 2000, the House sent impeachment charges for largescale corruption against then-President Joseph Estrada to the Senate for trial for the first time in Philippine history. Prosecutors walked out of the trial two months later due to an impasse over evidence, sparking massive protests that forced Estrada to leave the presidential palace. ""?Associated Press writer Teresa Cerojano contributed to this report.", -2632,2017/3/16,http://abcnews.go.com/International/wireStory/dutch-long-coalition-talks-rutte-wins-election-46165545,Dutch look to long coalition talks after Rutte wins election,,"Dutch political parties were preparing Thursday to start what will likely be a long process of coalition talks after Prime Minister Mark Rutte's right-wing VVD easily won national elections, defying polls that suggested a close race with anti-Islam populist Geert Wilders. With most votes counted for the 150-seat legislature, Rutte's VVD had 33 seats, eight fewer than in 2012. The far-right populist Party for Freedom of Wilders was second with 20 seats, five more than the last time but still a stinging setback after polls in recent months had suggested his party could become the largest in Dutch politics. ""We lost eight seats, but we're very happy to be the biggest party again,"" Rutte told NPO Radio 1. Wilders, meanwhile, had lost none of his trademark defiance. ""We were the 3rd party in the Netherlands. We are now the 2nd party in the Netherlands. And next time we'll be the No. 1!"" Wilders tweeted. It failed to hide his disappointment though that he fell short of becoming No. 1 in Wednesday's vote. The Christian Democrats and centrist D66 parties ""?likely future coalition partners for Rutte ""?won 19 seats each. Party leaders were expected to meet early afternoon to discuss first steps in the coalition formation process. Rutte warned that it could take a while. ""We have had a tough campaign, with reproaches back and forth,"" he said. ""We need time for everybody to get back into the mood for cooperation, and that doesn't happen in a few hours.""", -2633,2017/3/16,http://abcnews.go.com/International/wireStory/nkorea-diplomat-malaysia-killing-us-skorea-conspiracy-46166491,"N. Korea diplomat: Malaysia killing was US, S. Korea conspiracy",,"A North Korean diplomat said Thursday the killing of a man confirmed by Malaysian police to be the estranged half-brother of North Korea's leader was a political conspiracy engineered by Washington and Seoul. Pak Myong Ho, a minister at North Korea's embassy in Beijing, said the Feb. 13 murder of Kim Jong Nam in Malaysia was a ""despicable and extremely dangerous"" plot by the U.S. and South Korea aimed at smearing North Korea's image and subverting its regime. Pak said ""indiscriminate claims of behind-the-scenes manipulation"" would fail, referring to allegations by South Korea's spy agency that North Korea masterminded the assassination. North Korea has demanded that Malaysia hand over the body and angrily objected when it conducted an autopsy. It also has refused to acknowledge that the victim was the older half-brother of leader Kim Jong Un, referring to him only by the name in his North Korean diplomatic passport, Kim Chol. Malaysian media say police confirmed Kim Jong Nam's identity using DNA from his son which was obtained overseas and brought to Malaysia. The incident has led to a sharp deterioration of ties between Malaysia and North Korea, with each expelling the other's ambassador. North Korea has blocked Malaysians from leaving the country until a ""fair settlement"" of the case is reached. Malaysia then barred North Koreans from exiting its soil. The two countries have also scrapped visa-free travel for each other's citizens.", -2634,2017/3/16,http://abcnews.go.com/Sports/wireStory/ioc-board-member-apologizes-linking-russian-ban-nazis-46165905,IOC board member apologizes for linking Russian ban to Nazis,,"IOC board member Gian Franco Kasper apologized Thursday for comparing a ban on Russia from the 2018 Olympics to persecution of Jews in Nazi Germany. ""It was an inappropriate and insensitive comment,"" Kasper, the long-time International Ski Federation president, said in a statement. The 73-year-old Swiss official had been speaking on the sidelines of an IOC board meeting in 2018 host city Pyeongchang. Kasper compared a potential Olympic ban for Russia ""?as punishment for state-backed doping and cheating at the 2014 Sochi Games ""?with indiscriminate persecution by the Nazis. ""I apologize unreservedly for any offence I have caused. I am truly sorry,"" Kasper said in the statement released by the IOC. The IOC has set up two commissions to verify evidence ""?detailed in investigations appointed by the World Anti-Doping Agency ""?of Russia's doping program before deciding on the country's Olympic participation. Last July, the IOC board declined to impose a blanket ban on Russian teams and athletes competing at the Rio de Janeiro Olympics. Instead, the decision was left with the sports federations in a chaotic two weeks of legal debate and hearings before the games. Kasper was not a board member at the time. He has since been promoted to represent winter sports on the IOC's policy-making committee. The two IOC commissions, investigating claims of a Russian doping conspiracy and prosecuting disciplinary cases against individual athletes, are expected to work for several more months.", -2635,2017/3/16,http://abcnews.go.com/Politics/wireStory/irish-leaders-white-house-visit-undertones-46165752,Irish leader's White House visit has serious undertones,,"While shamrocks and smiles typically define the Irish prime minister's traditional St. Patrick's Day visit to the White House, with President Donald Trump the celebration could turn more serious. Taoiseach Enda Kenny has signaled that he will use the meeting ""?scheduled for Thursday, one day before St. Patrick's Day ""?to talk about Brexit and Trump's immigration policies. Kenny, who labeled Trump's language ""dangerous"" during the campaign, has said it is important to keep the standing date, which some critics have suggested he should cancel. Speaking to The Irish Times, Kenny said, ""European leaders need to be over here talking to Republicans, Democrats and the administration about what membership of the European Union means and the relationship that it can have with as powerful an entity as the United States."" Earlier this year, Trump said Britain's decision to leave the European Union would ""end up being a great thing"" and predicted the bloc would continue to break apart. The comments echoed Trump's rhetoric during his presidential campaign. Kenny will be the first European Union politician to meet with Trump after British Prime Minister Theresa May. German Chancellor Angela Merkel was scheduled to come to the White House on Tuesday, but that visit was moved back to Friday because of the snow. Kenny also plans to push Trump on his plans for Irish people living in the country illegally. At a dinner in Washington Wednesday night, Kenny said, ""We will of course raise with Congress and with President Trump himself that the necessary work will be done for our undocumented to be allowed to come in from the cold, feel the warmth of this great country and relieve the burden of having to live in that limbo land."" Trump ran on a promise to curtail illegal immigration. His revised travel ban, affecting travelers from six Muslim-majority nations, was set to go effect Thursday before it was put on hold Wednesday by a federal judge in Hawaii. Richard Haas, president of the Council on Foreign Relations, a nonpartisan think tank, said this meeting is more serious than in past years largely because of the fallout from Brexit, which is raising concerns about Ireland's economic prospects and the future for Northern Ireland, which is part of the United Kingdom. He said, ""You add all this up and this has become a much more substantive meeting."" Kenny spokesman Feargal Purcell said Kenny wants to discuss ways to find ""positive outcomes"" for an estimated 50,000 Irish people in the country illegally, and he will ""outline the positive engagement there can be between Europe and the United States, especially in a post Brexit context."" The St. Patrick's Day White House event dates back to the 1950s and has become an important standing engagement for Ireland, which has strong emotional and ancestral ties to the United States. The prime minister is set to have a one-on-one meeting with Trump Thursday, as well as attend a luncheon at the Capitol and an evening reception at the White House. Traditionally, the prime minister presents the president with a bowl of shamrocks to mark the occasion. Last year, Kenny was greeted warmly by a green tie-wearing President Barack Obama, who gave an affectionate speech, calling it one of his favorite events of the year, because ""I get to welcome my people."" According to Census data, 32.7 million United States residents claimed Irish ancestry in 2015, making it the second most commonly cited European ancestry, following German. Trump earlier this month proclaimed March as Irish-American Heritage Month, as the president does every year. This may be the last year Kenny, Ireland's leader since 2011, makes the White House pilgrimage on behalf of Ireland. Kenny, who has faced pressure from party colleagues to resign over a stumbling response to a police scandal, has said he will address his political future when he returns from America. Some political critics in Ireland called on Kenny to cancel this year's meeting and a number of petition campaigns urged a boycott, including one from former Maryland Gov. Martin O'Malley, an Irish American. But The Irish Times editorialized in favor of attending, saying, ""no matter how gratifying to our sense of moral superiority, a boycott will be seen as a lost opportunity for face time with the world's most important leader."" Kenny has to ""walk a tightrope,"" said Henry Farrell, a professor of political science and international affairs at George Washington University. Farrell said Kenny ""does not want to be seen as too close to Trump or to be identified with Trump and the same time he wants to preserve a relationship with a guy who is going to be president of the United States"" for the next four years.", -2636,2017/3/16,http://www.cnn.com/2017/03/16/europe/france-high-school-shooting-grasse/index.html,France: Suspect arrested after shooting at Grasse school,"(CNN)One person has been arrested after a shooting at a high school in the town of Grasse, south-east France, authorities said Thursday.","A 17-year-old armed with a rifle, a handgun, a revolver and two grenades entered the Alexis de Tocqueville school at about lunchtime and opened fire at the headteacher, CNN's French affiliate BFMTV reported. Eight people have been injured, including those with shock, a French Interior Ministry spokesman told BFMTV, adding that the headteacher was among those hurt. The person arrested wasn't known to police, the spokesman said. Authorities said the attack was not considered a terrorism incident. A student named as Andreas, interviewed on BFMTV, described a scene of chaos and said someone he knew had suffered a hand injury. ""I heard four shots. It was a complete panic. We went up to be safe. It was like being in a movie. We are not used to that,"" he said. ""We hear stuff going on in Paris but now we understand."" The school has been evacuated and is currently being searched, BFMTV reported. An elite police operations unit was at the scene, the Prefecture of Alpes-Maritimes said. The Interior Ministry tweeted that the security situation was ongoing and urged people to stay away from the area. The Alpes-Maritimes Civil Protection agency also warned people to avoid the school and keep calm. The French education ministry tweeted that schools in Grasse were in lockdown and appealed for students' families to stay away. Education Minister Najat Belkacem was on her way to the scene, the ministry said.", -2637,2017/3/16,http://www.cnn.com/2017/03/16/asia/great-barrier-reef-bleaching-damage/index.html,Great Barrier Reef suffering 'unprecedented' damage,"(CNN)Global warming has severely damaged huge sections of Australia's Great Barrier Reef, according to a new paper published Wednesday in the journal Nature.","The paper's authors warn that the resilience of the planet's largest living structure is waning rapidly. Data from a series of aerial and underwater surveys shows that a heatwave in summer 2016, which saw sea temperatures in Australia reach record levels, triggered the most damaging and widespread coral bleaching event on record. Almost 50% of the reef is now ""extremely"" bleached and 91% shows at least some signs of bleaching, Sean Connolly, program leader of a government-funded coral reef center at James Cook University, Queensland and the paper's co-author told CNN. ""Coral cover [on the Great Barrier Reef] has halved over the last 27 years,"" Connolly said. ""[In the last three decades] coral cover went from 28% to 13%. Preliminary estimates [from last year's disaster] are saying we've lost half that amount again. To have that kind of mortality on that kind of scale is unprecedented,"" said Connolly. Ship crashes into 'pristine' coral reef Rising temperatures, diminished responsibility Coral bleaching happens when an increase in sea temperatures causes the expulsion of algae that grow inside coral, turning the reefs white and eliminating their main energy source. It's directly linked to global warming. Sustained bleaching will result in coral death. The bleaching during last year's heatwave was worse than expected and the episode's severity has raised serious concern for the future of the reef ecosystem. The study pointed to the bleaching of hardy, century-old reefs as a particular red flag. ""The severity and frequency of these [bleaching] events means slow-growing corals won't have time to come back,"" said Connolly. ""If all the coral bleaches and dies, it's no longer a coral reef. The coral skeletons are quickly colonized by algae which turns them dark in color,"" said David Baker, assistant professor at the University of Hong Kong's Swire Institute of Marine Sciences. Eventually those skeletons collapse, he added, and the natural habitat for fish and other marine life is completely lost. The paper's authors also concluded, whether bleached or not, the reef had not acclimatized or adapted to high temperatures over time. Connolly said that, as temperatures increase, reefs would eventually die off and be replaced with more stress-tolerant species such as seaweeds. ""We have known that things would go in this way for decades and unfortunately ... our international system of government and policy has utterly failed to take relatively inexpensive action to head off what could be potentially catastrophic climate change -- not just on reefs, but on other ecosystems we depend on."" Around 275 million people globally directly rely on reefs for livelihood and sustenance, and globally reefs form the nurseries for around a quarter of the world's fish, according to the UN. The Great Barrier Reef is worth $3.7 billion annually to the Australian economy through fishing and tourism, and provides around 70,000 jobs, Connolly said. ""You're looking at some potentially unfolding human tragedy over the decades if reefs cannot provide the same source of livelihood,"" he added. Ongoing damage Last year's disaster was the third major mass coral bleaching of the Great Barrier Reef on record, and scientists suspect that -- less than a year on -- a fourth is already underway. The Great Barrier Marine Park Authority is currently conducting aerial surveys of the reef and, last week, Greenpeace released photos and video footage highlighting the ongoing damage. ""Greenpeace has just been on the Great Barrier Reef with a marine biologist to document the situation and it is heartbreaking,"" said Alix Foster Vander Elst, Campaigner for Greenpeace Australia Pacific. ""We should know in the coming days or weeks the exact impact of this year's disaster.""", -2638,2017/3/16,http://www.cnn.com/2017/03/16/politics/tillerson-japan-north-korea/index.html,Tillerson promises new policy on North Korea after '20 years of a failed approach',"(CNN)US Secretary of State Rex Tillerson called for a new approach toward North Korea Thursday, saying all the efforts of the past 20 years have failed.","Tillerson was speaking in Tokyo, ahead of stops in Seoul and Beijing, where Chinese leaders are expected to present their own plan to defuse escalating tensions on the Korean peninsula. ""The diplomatic and other efforts of the past 20 years to bring North Korea to a point of denuclearization have failed. So we have 20 years of a failed approach,"" Tillerson said at a news conference with Japanese Foreign Minister Fumio Kishida. China will formally present its own proposal to Tillerson on Saturday, a senior Chinese diplomat told CNN Thursday. The Chinese plan calls for North Korea to suspend its ballistic missile tests and nuclear activities, and for the United States and South Korea to halt large-scale military exercises that annually antagonize Pyongyang. ""(North Korea) would like to see the Americans move first and take some actions first to show their sincerity, and vice versa,"" Xiao Qian, the director general of the Asian Affairs Department of the Ministry of Foreign Affairs, told CNN in an exclusive interview. ""So China's proposal is, why not do these things at the same time?"" This is the second time in as many weeks that China has floated this plan. A similar proposal by Foreign Minister Wang Yi was rejected by the US State Department last week. ""There's no equivalence between North Korea's illegal missile and nuclear activities and what is our lawful, longstanding joint security exercises with our allies in the region,"" said Mark Toner, the acting State Department spokesman, in response to Wang's initial pitch. The North Koreans don't seem to be buying it either. In a rare and hastily called press conference Thursday, Pak Myong Ho, the charg�� d'affaires at the North Korean embassy in Beijing, also rebuffed Wang's proposal. ""Our stance is that since the US and its followers continue their nuclear threats and intimidation -- in the form of their annual military drills -- on the doorstep of DPRK (Democratic People's Republic of Korea), we will continue to strengthen our defense and preemptive strike capabilities,"" he said. The new path? Speaking side by side in Tokyo, Tillerson and Japan's Kishida reiterated their countries would stand united against North Korea's provocations. While Kishida said Japan would assume a larger responsibility in the alliance, Tillerson said it was time for the US to stop throwing money at a solution that's not working. ""The United States provided $1.35 billion dollars in assistance to North Korea as an encouragement to take a different pathway. That encouragement has been met with further development of nuclear capabilities, more missile launches, including those of the recent February 11th and March 5th,"" he said. Between 1995 and 2008, the US sent $1.35 billion to North Korea, mostly for food aid and energy assistance, according to a Congressional Research Service report. Analysts say when it comes to North Korea policy, there are few new options to try. ""Secretary Tillerson's comments on North Korea sound like a simplistic version of the past without a clear vision for the future,"" John Delury, a professor at Yonsei University's Graduate School of International Affairs told CNN. ""The history of US policy toward North Korea is complicated. It cannot be reduced to a talking point like -- we spent $1.3 billion and got nothing for it."" ""A little knowledge is a dangerous thing,"" he added. The US, South Korea, Japan, China and Russia have tried repeatedly to negotiate a solution with Pyongyang during Six-Party Talks, which began in 2003. The sanctions currently levied against Pyongyang are among the most stringent ever enacted, but the pace of both North Korea's nuclear and missile programs appear to be speeding up. 'Face to face' In his interview with CNN, Xiao addressed criticisms that China can and should be doing more unilaterally to stop North Korea. The Trump administration has argued the China should use its vast economic leverage over North Korea to force the Kim Jong Un regime to cease its weapons development program. ""This is a rather complicated situation. You cannot solve the problem in a simple way,"" Xiao said. ""The DPRK has been saying all along that it is the threat from the US to make them choose other options, including nuclearization of their military capabilities. So it is, to a large extent, for the US and the DPRK to face to face, sit down and talk, and try to find a way to work out the problem,"" he said, using the abbreviation for North Korea's formal name -- the Democratic People's Republic of Korea. Xiao also denied claims that Beijing has been carrying out systematic economic retaliation against South Korean businesses as a result of its opposition to the THAAD missile defense system that the US and South Korea believe is necessary to protect against North Korean missiles. ""But if they continue to move on with this deployment, there will be consequences -- and those consequence will be borne by the Americans and ROK (Republic of Korea),"" he warned, without elaborating.", -2639,2017/3/16,http://www.cnn.com/2017/03/16/europe/france-election-national-front-holocaust/index.html,France's National Front suspends official over Holocaust comments,Paris (CNN)Marine Le Pen's attempt to persuade the French electorate that the National Front has changed its image suffered a blow Wednesday after a party counselor was suspended over allegations of Holocaust denial.,"Benoit Loeuillet, a National Front regional councilor in the southern region of Provence-Alpes-Cote d'Azur, was suspended after being caught on secret camera claiming mass murder had not taken place during the Holocaust. In footage, which will be shown as part of a documentary in France, Loeuillet played down the systematic murder of six million Jews during the Holocaust. ""I don't think there were that many deaths,"" he said. ""There weren't six million"". In a statement on his Facebook page, Loeuillet denied the allegations and said he would take legal action against the journalists involved. French law strictly prohibits Holocaust denial. The party took swift action with Secretary-General Nicolas Bay issuing a suspension and announcing in a statement that Loeuillet will face a disciplinary hearing where he could face expulsion. History French presidential hopeful Le Pen has sought to push her party away from allegations of anti-Semitism since taking over the party's leadership in 2011. Her father and National Front founder, Jean-Marie Le Pen, was expelled from the party in 2015 after making comments denying the Holocaust. During his career, he referred to the gas chambers used by the Nazis to systematically murder the Jewish population as ""a detail of history."" The expulsion of the party's founder by his daughter caused huge controversy with the two involved in a public falling out. Trouble brewing? Le Pen is already facing increased scrutiny ahead of the first round of the elections on April 23 over allegations several members of her staff were paid for non-existent jobs at the European Parliament. She initially admitted they had been paid while not working, the European Anti-Fraud Office (OLAF) said. She later denied having said so. Le Pen's fractious relationship with Europe was further exacerbated when MEPs voted to rescind her parliamentary immunity over a case involving violent images she posted on Twitter. An inquiry was opened under a French law banning the distribution of violent images after Le Pen tweeted images of killings by ISIS militants in December 2015. Under French law, the maximum penalty for distributing violent images is three years in prison and a fine of up to �15,000 ($79,000). The loss of her immunity only relates to this case only and not the one being investigated by OLAF.", -2640,2017/3/16,http://www.huffingtonpost.com/jackie-goldschneider/what-kids-need-to-know-about-strangers_b_15405240.html,What Kids Need To Know About Strangers,I thought telling my kids not to talk to strangers was enough.,"Last weekend, I took my 6-year-old daughter to a birthday party for her classmate, yet another in the endless stream of birthday parties that have come to dominate my weekends as a parent. The event was held at one of those cavernous spaces full of screaming, running children and colossal bouncy structures. When we walked in, my daughter removed her shoes and took off, darting after her friends, into a blow-up castle twice the size of my house. Every so often I'd spot her climbing through a tube, but following her movements was impossible. So I went over to talk to the other relaxed moms and tried not to stress about the situation. But a few minutes later, I couldn""t resist the urge to check on her again. I scanned the massive room for her long brown hair but couldn""t spot her. I looked into every bouncy corridor, up every inflated slide and into every jumpy space I could, trying to catch a glimpse of her purple sweatshirt, with no luck. And then I saw her. She was holding hands with a grown man I had never seen before and they were walking away. The man was in his 40s, heavy-set with a leather jacket and jeans. My heart plunged, and then I ran over, unsure of what to say. ""What's going on?""?I asked, trying not scare my daughter, who suddenly froze. ""I'm taking her to find her friends,""?said the man calmly. ""I'm friends with their family.""?They were still holding hands. I grabbed my daughter back as the birthday mom came over and explained the man was a friend and my daughter was looking for the birthday girl. ""I'll help her,""?I said as we briskly walked away. My first thought was outrage at the incredible stupidity of a grown man who thinks it's fine to hold hands with a little girl he doesn""t know and to offer to take her anywhere. My next thought was anger at my daughter, whom I""ve told not to talk to strangers, that she'dlet this man hold her hand and walk her anywhere. How could she have been so clueless? But then I realized that this was on me. I have told my daughter not to go anywhere with a stranger, but I""ve never really prepared her for a situation where someone might actually try to make that happen. I""ve never explained to her that people might lie and say they know me, and tell her I sent them to help her, or that they know her or will take her somewhere great. I never told her that sometimes people in cars pull up next to children and try to make them look at pictures of lost puppies and then ask them to get in. I never told her ""?in the most definitive of terms ""?that she never ever holds hands with a strange adult and walks off anywhere with them. I thought telling my kids not to talk to strangers was enough. I didn""t want to scare them with details of a scenario that would probably never happen or pierce their innocence with the vulgar realities of our world. But I'm over it. The man in this case meant no harm, but I keep flashing back and wondering""?if I hadn""t run over, where might they have walked? What if he changed his mind and walked her out the door to his car? Or into a bathroom or a closet? That night, I got all of my children together and my husband and I had a long talk about strangers and what to do if they'r ever approached, and what kinds of lies and stories they might hear. So please, talk to your children about strangers. If you haven""t had this conversation yet, have it. And I'll save ""Why I hate kid's birthday parties""?for another article. Start here, with the latest stories and news in progressive parenting. Learn more", -2641,2017/3/16,http://www.huffingtonpost.com/2017/03/14/muslim-artists-dreamy-nude-self-portraits-show-the-power-of-self-love_n_15403848.html,Muslim Artist's Dreamy Nude Self-Portraits Show The Power Of Self-Love,"""I think I""ve spent like 90% of my life trying to accept that I'm a female and that's OK.""","Growing up in Pakistan, it was virtually impossible for artist Hiba Schabaz to find a woman to pose nude as her subject. And so she took on the job herself.- As a preteen, Schabaz stood naked before her mirror, pen and paper in hand, outlining the shape of her physical form. The act, not to mention the work it produced, was a stark departure from the conventions of her traditional Muslim family. ""Women painting themselves naked is seen as very unholy,""?Schabaz told The Huffington Post. To save face, Schabaz primarily painted women without faces, so their likenesses wouldn""t immediately recall her own.- Artists of Islamic faith have a long tradition of creating subjects without naturalistic faces, the stylized results resembling the style of animation.-The artistic convention stems from the belief that realistic art represents an attempt to compete with God's creative prowess.-In art school, Schabaz trained in the centuries-old Indo-Persian tradition of miniature, which complies with this religious conviction. She first began learning the technique as a chapter in the standard art school rotation. But there was something about the ancient artistic ritual that stuck with her ""?""it just happened.""?Indo-Persian art tells stories through ornate and delicate scenes,-exempt from the laws of nature.-""It creates this very unreal kind of world,""?Schabaz said. Landscapes are compressed into total flatness, devoid of highlight or shadow. People appear in profile or three-quarters but hardly ever facing front. When the style originated in the 15th century, most miniatures were made by appointed court painters, who depicted war scenes, royal stages, and the occasional female dancer.-Nearly all of them were created by men.- The male-dominated history of miniatures make Schabaz's contemporary paintings of feminine,-soft power all the more resonant. Although she incorporates elements of Indo-Persian style into her works ""?including a flattened surface and intoxicating use of color ""?she is most certainly not creating miniatures. Rather, Schabaz's paintings stretch from floor to ceiling, her nude subjects dominating viewers with their ample anatomy. Another detail distinguishing Schabaz from her classical Indo-Persian predecessors is that, upon moving to Brooklyn six years ago, she began to endow her painted selves with facial features inspired by her own. ""I slowly started opening up to the idea of owning my own art,""?the artist said. And unlike the miniaturist convention of rendering subjects""?silhouettes, Schabaz opts for a confrontational, head-on gaze. When you look at a Schabaz painting, she looks right back.- On the canvas, Schabaz appears reclining, twirling her hair, wielding a knife and coaxing a snake. Her repeated image adopts a folkloric quality, plucked from any specific time or place and released into a mythic present.-In one series, Schabaz makes a contemporary house her impromptu palace, gazing at her reflection in the bedroom mirror and relaxing in the bath. In another, she tangles her body with nature's roots and limbs like a primordial goddess. The images are reminiscent of the ornate, melting animation of the 1970s Japanese film ""the Belladonna of Sadness,""?which conflates female beauty, power, and sadness, though devised in the imagination of a man.- Level up. Read THIS and be the most interesting person at your dinner party. Learn more Since moving to the United States, Schabaz has grown more interested in the history of Western art. One of her early realizations on the subject was that, as with Middle Eastern history, most of the field's treasured artworks were created by men. This grim reality was on Schabaz's mind when she decided to insert herself into the classical canon's most iconic paintings and paint herself, nude, within them.- For each work, Schabaz first photographs herself in the posture of ""the muse,""?then paints her image from the photograph into an adapted version of the scene. As the ""Grand Odalisque,""?inspired by Jean Auguste Dominique Ingres""?1814 work, Schabaz peers over her shoulder while in regal repose. Her floor-length black hair wraps around her body and pearls are strung between neck and tree trunk to serve as a literal choker.-Schabaz told HuffPost she sprained her neck trying to master the pose. ""Her position is completely impossible,""?she said. The detail only illuminated the larger takeaway that, as Schabaz put it, ""All the masterpieces were basically all painted by dudes, just painting women exactly how they wanted to.""?Schabaz became obsessed with retracing the steps of famed male artists, repainting herself as Manet's Olympia,-Giorgione's Sleeping Venus, and Lucas Cranach the Elder's Lucretia. Even when rendered in the neo Indo-Persion stylized technique, Schabaz's dreamlike paintings are more realistic than their prototypes in their ability to depict female anatomy that doesn""t involve any neck straining. - Although there is a political bent to Schabaz's work, which puts art's patriarchal and overwhelmingly white history on blast, her motivations have always been primarily personal. ""I think I""ve spent like 90 percent of my life trying to accept that I'm a female and that's OK,""?she said. ""I was always a very emotionally closed-off person. I think painting gave me emotional contact with myself.""?Through her work, Schabaz fuses elements of two male-dominated art histories, injecting a strong dose of feminine energy to bind them together. The paintings explore the history of men assuming control of women's bodies, whether censoring them, fetishizing them in classical oil paints, or twisting their bodies into poses until their necks break. Through the simple yet radical act of painting her own naked body, Schabaz confronts unjust histories with creativity, sensuality, bravery, and an abundance of self-love. ""I think just having some acceptance has been a really big deal for me,""?Schabaz said. ""I didn""t grow up with feminism, so I have just constantly been told that what I'm doing is really wrong. That I should hide, be ashamed of myself and my body and who I am. Having people in the art world accept that I am a female who has a body who is painting it, it really means a lot.""?""hiba Schahbaz - Self-Portraits""?will be on view from-April 5 through May-12, at the Grab Back: Feminist Incubator Space program at Project for Empty Space in Newark, directed and curated by Jasmine Wahi and Rebecca Jampol.", -2642,2017/3/16,http://www.huffingtonpost.com/2017/03/16/prince-harry-suit_n_15403640.html,Prince Harry Really Knows How To Rock A Casual Look,This outfit really suits him.,"Like a fine wine, it appears-Prince Harry-just keeps getting better (and better dressed) with age.- Harry attended a mental health conference in London Thursday dressed sharply in a gray jacket, white button-front shirt and blue pants. It's not necessarily a bold or fresh new look, but he definitely wears it well. - Just look at the fit on this thing.- Harry met with former armed services members and one particularly adorable assistance dog, who made us realize for the first time ever that Harry is basically a human golden retriever: handsome, eager and slightly red-headed. We'r not implying that girlfriend-Meghan Markle dressed him for the occasion, but she does star on a show called ""suits.""?Just saying.- We'r basically your best friend""?with better taste. Learn more", -2643,2017/3/16,http://www.huffingtonpost.com/jennifer-s-white/i-wouldnt-want-to-be-here-with-anyone-else-but-you_b_15403624.html,I Wouldn't Want To Be Here With Anyone Else but You,"Our ""us""?is different than it once was, and not always ""good different.""","I tell you I love you, but it's as if you don""t believe me. Maybe it's because I woke you up this morning, barking a list of things we needed to do immediately so our daughter wouldn""t be late for school. Maybe it's because sometimes I pull away too quickly when you try to hug me. Maybe it's because saying ""I love you""?isn""t good enough. Lately, it has to be. Our time together is unbelievably limited; OK, believably limited for other parents of small kids with these ""busy""?lives we all seem to lead. Our time together is Netflix; and quickies; and sipping wine when we'r exhausted, but the kids are finally in bed. Our time together is weekends that go too quickly and whiny grocery store trips. Our time together is less and less about ""us""?and increasingly more about everything else. Our ""us""?is the most important thing to me. Our ""us""?is different than it once was, and not always ""good different,""?I know; but our relationship is the most valuable aspect of my life. Our ""us""?is why we have these small children""�we wanted to raise a family together; we wanted to bring more love into our already full-of-love closeness. We did. These two new, tiny people did bring so much more love into our daily lives; yet there's also significantly more responsibility, and there are more roles we now have to play. We play not only wife and husband, scientist and writer, cyclist and yoga instructor; we play, too, these all-consuming roles of Mom and Dad, and we love it. And I wouldn""t want to be here""�experiencing these parts and pieces of our lives""�with anyone else but you. I want more of you. I, too, want more sex""�I want more making love. I want more date nights, and late nights, and groggy morning-breath moments in bed before we have to get up. (I want more time with you in a bed without children.) To be fair, I miss me also. I don""t get enough time alone, much less enough time together. But I love this life We're created; and our family, and everything We're evolved into and effortfully""�lovingly""�built. Still, I don""t want our ""gogether""?to feel so far apart. I tell you ""I love you""?and I know it isn""t good enough. Words are special, especially to a writer, but they can never be enough all by themselves. Instead, we need time off work and people to watch our kids, and, essentially, luxuries we don""t often have. You always have me. You have always had me. You will always have me. ""I love you""?doesn""t give to you what I wish it did. But I say it anyway, so that in between the childcare to-dos""�the laundry lists of...laundry; the pick-ups and drop-offs; and appointments; and bedtimes; and coffees; and goodnight kisses""�you know I'm still here. Seeing you. Wanting you. Needing you. Offering everything I am and have to you. And loving you as best as I'm able to right now; right here; where we are""�together. Start here, with the latest stories and news in progressive parenting. Learn more", -2644,2017/3/16,http://www.huffingtonpost.com/2017/03/15/joe-biden-cancer-research-america-us_n_15403416.html,Joe Biden: 'There's Something Really Wrong' When We're Celebrating Bipartisanship,"""Folks, there's one bipartisan thing left in America: Cancer. Not a joke,"" he told a ceremony honoring his work to accelerate research into the disease.","WASHINGTON ""?Former Vice President Joe Biden has received three separate awards for his bipartisanship and civility in the past year, ""?one each from the-Bipartisan Policy Center, the University of Notre Dame and Allegheny College.- It's not that he doesn""t appreciate the accolades. He just finds them a bit odd.- ""I thought that's what we'r supposed to be,""?Biden said during a speech Wednesday at Research!America's 21st annual Advocacy Awards. ""the idea that Notre Dame would say, ""�Joe Biden and John Boehner, they actually get along so we should give them an award?""?Biden continued, referring to the Republican former House speaker. ""there's something really wrong with what We're allowed to have happen here.""The Republican and Democratic parties are now-more polarized than they're been in decades, a 2016 report found. But amid all the animosity and chaos, Biden sees one area where the two can ""?and should ""?continue to get things done.- ""Folks, there's one bipartisan thing left in America: Cancer,""?he whispered during his speech, as if unveiling top secret information. ""not a joke. Not a joke. And we have some really, really responsible, informed and persuasive leaders in the Republican Party.""Biden was among the honorees at Wednesday's dinner, where the nonprofit health advocacy group presented him with its Gordon and Llura Gund Leadership Award for his ""Commitment to accelerating cancer research as the driving force behind the White House Cancer Moonshot.""His 46-year-old son, Beau Biden, died of brain cancer in 2015. Since then, the former vice president has become a champion in the fight against the disease.- He's presided over the passing of the 21st Century Cures Act, a bill that commits billions to medical research and the ""Cancer moonshot""?initiative. He has since announced plans for the Biden Cancer Initiative, which will aim to increase collaboration and access to data, break down barriers and speed up cancer research.- Biden said he's in this fight for the long haul and optimistic about the future. ""I think it's because the American people believe what I""ve come to know as well ""?that we are on the cusp of a major breakthrough and progress,""?he said. ""This is not the time to let up, this is a time to redouble our efforts.""?Biden also echoed a comment he made over the weekend-about his only regret of not running for president in 2016: That he wouldn""t get to preside over ending cancer as we know it.- ""This is within our power,""?he said of tackling the disease. ""It's within our grasp.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2645,2017/3/16,http://www.huffingtonpost.com/2017/03/15/isabelle-huppert-showgirls_n_15403434.html,Debriefing On Awards Season With Isabelle Huppert,"Turns out she loves ""Showgirls.""","Americans are fond of excess, so of course Hollywood's awards season lingers for four interminable months (six if you count the annual fall film festivals). Isabelle Huppert, a screen legend just nominated for her first Oscar at age 63, schlepped back and forth from her native France for a parade of ceremonies, screenings and media appearances. She has a bundle of hardware to show for it, including a Gotham Award, a Golden Globe, an Independent Spirit Award and a bevy of critics""?prizes. Having wrapped another movie upon returning to Paris after last month's Oscars,-a vacation is the next line item on Huppert's agenda. When we hopped on the phone Tuesday in recognition of the DVD/Blu-ray release of ""Elle,""?the actress assured me she is ""Absolutely""?taking a few weeks off.-I told her she deserved it, to which Huppert responded, ""I think so too.""?How heavenly. What follows is the rest of our conversation, which contains an obvious highlight: She loves ""showgirls.""?(And Barry Jenkins, of course.) Because of its unconventional portrayal of a rape victim, ""Elle""?is a polarizing movie. It's sparked some fierce debates. Considering the many conversations you're had about this movie over the past several months, has your perception of it changed at all? Not really, actually. I have to say that since the very beginning, when the movie was first presented to an audience in Cannes last May, from that moment on, We're seen more positive reactions than anything else. I think from very early on we realized the film had the potential to be taken beyond the controversy. Of course, the film is disturbing. I did not want to present the film differently from what it is. But basically, globally, I would say, the film was received with a great understanding, a great comprehension. The film is a real film, and that's the way people received it. When I say that, I mean its potential for imagination, for fantasy, not to be taken as a philosophical point of view upon the rape. No, it's more to be taken as a fantasy and an imaginary situation from which you can try to understand a woman's behavior, a woman's psyche, a woman's most unconfessable parts of herself. And it's her own attempt to understand where violence comes from, how it's been transmitted in the same family or from men to women. The movie is so rich and so complex and so complete that I think it leaves behind any kind of real controversies.- you're been working for almost five decades, but this was your first Oscar nomination. Does it surprise you that this was the film voters responded to, given it's a challenging story told in French? Well, first of all, of course, it's a French film, and that's always a surprise in a way, that a French-speaking film gets this kind of attention. Of course, it's not an easy film. It's a very provocative film, it's a distributing film. But it's also a Paul Verhoeven film ""?it didn""t come from someone completely unknown to the American audience or the American critics. Paul Verhoeven is obviously a big name for the American audience, so on one hand, yes, it was a surprise because it was a French-speaking film. Then, on the other, no, it was not such a big surprise because it was precisely a Paul Verhoeven film. But of course there was the combination of this film and the other film last year, ""things to Come,""?and I got many awards for both films in this country. I have nothing much more to say. I was very, very happy that it got all this recognition because the movie was successful in America ""?I mean, as successful as a French film can be successful, you know? I'm not saying it's a major blockbuster. It was all very, very nice.- Was there a moment for you that became the highlight of the season? It all started with the Gotham, which I won. That was really wonderful because no French actress got that prize before. To be honest, it made the Gotham Awards very popular in France because no one had ever heard of the Gothams in France before I got it [laughs]. In that sense, it brought as much to me as I brought to the Gotham. No, I'm kidding. But you know what I mean, because no one was really familiar with the Gothams before I got it. But it all started with the Gotham, until the Spirit Awards, which I won for ""Elle.""?It's such a recognition for the film and such a recognition for Verhoeven, who always had a French status, even in America, even though he did big blockbusters like ""roboCop""?and ""showgirls.""?Well, ""showgirls""?might not be a blockbuster, but let's say ""roboCop""?or ""Starship Troopers.""?But Verhoeven was always such a free spirit, always doing his own way and playing with codes and pretending to be a mainstream director. Meanwhile, he was never really a mainstream director because he was always fooling with the classic codes of making movies. I mean, he's really a great director for that because he pretends to be what he is, and under the surface he is by no means what he pretends to be. I was really, really happy to get all that recognition for this movie. Speaking of which, what's your opinion of ""showgirls""? Well, I love ""showgirls.""?I always liked it since the first time I saw it. Even in France, some people thought it was not such a great film, and other people thought yes, it was a great film. But now most people can come to terms with it and admit that it is a great film. Recently, because I think the movie was re-released in France or released on DVD or whatever, there were a lot of new reviews about the film. They all came to the conclusion that, yes, of course it is a great film and by no means is it a bad film. I always thought that ever since I saw the film. Who were you happiest to meet along the way? Well, I""ve particularly enjoyed meeting people like Barry Jenkins, of course, and I was so happy that he won for best film. And Kenneth Lonergan. We kept meeting each other along the way, first in Toronto.-We always met at the film-critics circles because we were always winning prizes together. Yes, I really appreciated meeting Barry and Kenneth, yes. What was it like to witness the Best Picture mishap-in person? Well, it was very weird. It is certainly something I will remember all my life, as will most people who saw it, even on television. That film will be certainly imprinted with what happened. Because all of a sudden the mechanism was ""?oh, how can I say it? ""?usually on this kind of evening, everything goes in the right direction, and for a few seconds it obviously went in the wrong direction. We all thought for a few seconds that something extra dramatic was happening, like an attack or whatever. It was very weird, for a few seconds. Of course, after we realized. But it was human. Sometimes the machine doesn""t work the way you expect it to work. You'r making another movie with Michael Haneke, who directed you in ""the Piano Teacher,""?""time of the Wolf""?and ""Amour.""?What can you tell us about it? It's called ""happy End.""?We shot that film in the north of France, and it's about a family. It's very, very critical and very political, but it's also very funny. It has all the qualities of the best films of Michael Haneke. I hope you enjoy your vacation. It's much deserved. Yes! Well deserved in fact. Thank you very much. This interview has been edited and condensed for clarity and length.- Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2646,2017/3/16,http://www.huffingtonpost.com/2017/03/16/goodwill-marijuana-cooler-washington_n_15403418.html,Somebody Donated A Cooler Filled With Weed To Goodwill,"Either it was an accident, or someone was feeling VERY generous.","Staff at a Washington state thrift shop were stunned on Monday-to find $24,000 worth of weed-inside a donated cooler. Police said the workers at the Goodwill store in Monroe were sorting through donations when they stumbled across the marijuana haul. ""We went over there and they opened the lid and in there was five large bags of marijuana,""?Debbie Willis of the Monroe Police Department told KTLA5. ""normally when we go there, it is for a shoplifter, but not anything like this.""?This cooler was donated over the weekend to the Goodwill. Employees surprised when they opened the lid. Police were called... pic.twitter.com/50z1OinsER It's not clear who dropped the cooler off, or whether they were even aware that they were also handing over 3.75 pounds of pot. Police said store employees are-combing through surveillance tapes for any clues to the person's identity. People 21 and over can legally possess up to 1 ounce of marijuana-in the state. Cops said this haul will be destroyed, however, as legal marijuana must come from a licensed producer and seller. Share this slide: Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -2647,2017/3/16,http://www.huffingtonpost.com/2017/03/16/ivana-trump-is-writing-a-book-about-raising-her-children_n_15403330.html,Ivana Trump Is Writing A 'Non-Partisan' Book About Raising Her Children,Donald Trump had three children with his first ex-wife.,"Ivana Trump is set to release a book about ""Ler extraordinary life""?and the upbringing of her three children with ex-husband Donald Trump.- In-Raising Trump, publisher Gallery Books states, Ivana will recount ""the lessons she taught her children""?""?Ivanka Trump, Donald Trump Jr and Eric Trump ""?""As they were growing up,""?particularly the values of ""loyalty, honesty, integrity and drive.""?The book will be released Sept. 12. Ivana became now-President Trump's first wife when the couple married in 1977; their divorce was finalized in 1992. Don""t expect her to get too political, though. The publisher explicitly notes that-Raising Trump-will be ""non-partisan.""?Ivana's memoir will focus on motherhood and her children, providing-""unfiltered personal stories""?about Donald, Eric and Ivanka, with all three adult children set to contribute their personal memories. President Trump, it seems, will be largely excluded from the narrative. ""Every day, people ask me how I raised such great kids,""?Ivana said in a statement. ""they are truly amazed when I tell them that there was no magic to their upbringing. I was a tough and loving mother who taught them the value of a dollar, not to lie, cheat or steal, respect for others and other life lessons.""?Ivana's marriage to Donald Trump was reportedly not without friction; a 1993 book put forth an accusation that he had raped her, a charge she did not fully refute. The marriage ended after Donald Trump's alleged affair with Marla Maples,-who became his second wife and the mother of Tiffany Trump. In 2005, Trump married his third and current wife, Melania, with whom he has one son, Barron. Gallery Books, which will publish the book, is an imprint of recently embattled publishing giant-Simon & Schuster dedicated to celebrity memoirs.- Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -2648,2017/3/16,http://www.huffingtonpost.com/2017/03/16/white-house-budget-epa_n_15402916.html,"White House Budget Proposes Sweeping Cuts To EPA, Environmental Programs","President Donald Trump wants to slash the EPA budget by 31 percent, eliminating cleanup programs in the Great Lakes and Chesapeake Bay.","Federal funding to combat man-made global warming, scrub pollution, research energy and the Earth's climate disappeared in a budget outline that the White House put forward on Thursday. The budget proposed steep and sweeping cuts across the executive branch. But the-Environmental Protection Agency-suffered the biggest blow, losing 31 percent of its funding. The agency is seen as the spear tip of the ""Administrative state""?President-Donald Trump vowed to dismantle. The Trump administration's-preliminary skinny budget, released at 7 a.m. on Thursday, reduces the EPA funding from $8.2 billion to $5.7 billion. It eliminates funding for regional cleanup efforts in the Great Lakes and the Chesapeake Bay, for example, and defunds the Clean Power Plan, the federal government's only major effort to reduce carbon emissions from the utility sector. Trump is expected to sign an executive order further weakening the Clean Power Plan as early as this week. The order will reportedly instruct the EPA to begin rewriting the plan, which would have reduced the greenhouse gas emissions from the utility sector ""?the biggest industry emitter in the U.S. ""?by 30 percent below 2005 levels by 2030. The move essentially kneecaps U.S. participation Paris Agreement on climate change that 195 countries signed.- The budget dramatically shrinks the State Department. It eliminates spending on the U.S. Agency for International Development's Global Climate Change Initiative and ceases payments to the-United Nations""?climate change programs, such as the Green Climate Fund ""?a critical tool for getting poorer countries to reduce their carbon footprint. At the EPA alone, the budget axes funding for Energy Star, the popular, voluntary program that boosts energy efficiency in appliances, electronics and buildings; major restoration efforts including those to clean up the Great Lakes, the Chesapeake Bay and the Long Island Sound. It also ends grants for ozone pollution cleanup and infrastructure assistance to Alaska Native villages and people on the Mexican border, along with international climate programs, climate change research and partnership initiatives. It ""reins in""?spending on the toxic waste cleanup Superfund, lowballing the account by $330 million. In all, the proposed budget terminates more than 50 EPA programs. The cuts go further than the 25 percent reduction originally proposed in a draft of the budget earlier this month. Administrator Scott Pruitt ""?an opponent of the agency's core mission who previously sued the EPA 13 times to block environmental regulations ""?failed to persuade Trump to leave the budget at $7 billion, according to The New York Times. Instead, the president axed more.- The budget proposes increasing the State Revolving Funds programs that provide low-interest loans for investments in water and sanitation infrastructure to by $4 million to $2.3 billion. It also leaves in place $20 million for rebuilding water infrastructure ""?an issue that reached crisis pitch with the lead poisoning in Flint, Michigan, last year. ""This is not a philosophical debate about regulations or ""deconstructing government,""?but about our health, our safety and the world we'r going to leave to our children,""?said Ken Cook, president of the nonprofit Environmental Working Group, in a statement. ""We remind the president once again that no one voted for more children to suffer from asthma, for more people to drink water with cancer-causing chemicals, or for all of us to be exposed to harmful industrial compounds in our everyday consumer products.""?Trump pledged to boost the U.S. economy by shredding environmental rules he blames for holding back businesses. He stacked his Cabinet with fossil fuel allies and climate science deniers, including Pruitt, who-ignited a firestorm when he said on national TV-that he doesn""t believe carbon dioxide emissions cause global warming. Already, the Trump administration has lifted regulations to protect streams and waterways from toxic pollution and-scrapped a rule requiring oil and gas drillers to report methane leaks. But the budget proposal marks the first time he has put vague, sometimes contradictory campaign promises into clear, black-and-white spending priorities. The Department of Energy's climate and renewables research took crippling hits. Trump proposed eliminating the Advanced Research Projects Agency-Energy, known as ARPA-E, a critical program responsible for major breakthroughs in energy research, and the Advanced Technology Vehicle Manufacturing Program. ""�[T]he private sector is better positioned to finance disruptive energy research and development and to commercialize innovative technologies,""?the budget reads. The department's Office of Sciences, a key funder of research, loses $900 million and must abide new directives to limit research into energy efficiency, renewables, nuclear energy, electrical grid technology and fossil fuels to ""early-stage applied energy research and development activities where the Federal role is stronger.""?The budget does, however, provide $6.5 billion to clean up radioactive waste from energy research and nuclear weapons production ""?money that's also earmarked for modernizing aging nuclear facilities. The National Oceanic and Atmospheric Administration, a division of the Department of Commerce, suffered major blows. The budget leaves environmental satellite programs in place only to help with weather forecasting and cuts back the use of satellites to monitor polar icecap melt. It appears to maintain funding to the National Weather Service, which Trump tweeted support for during a blizzard this week. However, it zeroes out over $250 million in targeted grants for coastal and marine management, research and education though the Sea Grant, which funds conservation efforts in the Great Lakes and on the coasts. At the National Aeronautics and Space Administration, funding for robotic satellites, education and Earth science programs shrank as the White House seeks a ""Hocused, balanced""?approach that ""supports the priorities of the science and applications communities.""?""the Trump budget deliberately eviscerates enforcement of our environmental laws ""?which would let many law-breakers operate with little fear of prosecution ""?and dismantles programs that support our most vulnerable communities from environmental hazards,""?said Trip Van Noppen, president of the environmental nonprofit Earthjustice, in a statement. ""We call on members of Congress to stand up for the communities they represent and vigorously oppose this irresponsible plan.""?This article has been updated with more details and reactions to the budget plan. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2649,2017/3/16,http://www.huffingtonpost.com/2017/03/16/thursdays-morning-email-judge-halts-trumps-travel-ban_n_15402914.html,Thursday's Morning Email: Judge halts Trump's travel ban,,"(And want to get The Morning Email each weekday? Sign up here.) NOTE TO MORNING EMAIL READERS:-Lauren Weber is on vacation this week. HuffPost Hill Editor-Eliot Nelson-is on TME duty today. If you'r not totally offended by what you read, why don""t you-sign up for HuffPost Hill? Also, consider buying his book. JUDGE HALTS TRUMP"" TRAVEL BAN-""A federal judge in Hawaii has placed a nationwide hold on key aspects of President Donald Trump's second attempt at a ban on travel ""?a scaled-back version that targeted all non-visa holders from six Muslim-majority countries, as well as a halt on the U.S. refugee resettlement program ""?just hours before the new restrictions were to take effect.""?[HuffPost] TRUMP"" PROPOSED BUDGET-""In a federal budget proposal with many losers, the Environmental Protection Agency and State Department stand out as targets for the biggest spending reductions. Funding would disappear altogether for 19 independent bodies that count on federal money for public broadcasting, the arts and regional issues from Alaska to Appalachia.""?[Reuters] FAR-RIGHT STYMIED IN DUTCH ELECTIONS ""the Netherlands""?incumbent Prime Minister Mark Rutte will win the Dutch election, preliminary results indicate, dealing a decisive blow to the far right Party for Freedom of Geert Wilders ... While Wilders""?party is set to gain a few new seats in Parliament, leaders in the Netherlands and across Europe expressed relief there appeared to be a ceiling to the far right's rise.""?[HuffPost] TRUMP LOOKING TO PRIVATIZE AIR TRAFFIC CONTROL OVERSIGHT-""trump is proposing to shift oversight of the U.S. air traffic control from the federal government to an independent group, according to budget documents released on Thursday. Trump, who called the U.S. air traffic control system ""Absolete"" a meeting with airline executives last month, is proposing $16.2 billion for the Department of Transportation's discretionary budget for fiscal year 2018, a reduction of 13 percent.""?[Reuters] GOP RECONSIDERING OBAMACARE OVERHAUL-""the White House and Republican leaders are talking to rank-and-file lawmakers aboutrevising the GOP health care overhaul, hoping to keep a rebellion by conservatives and moderates from snowballing and imperiling the party's showpiece legislation ... House Speaker Paul Ryan-[R-Wis.]-told reporters Wednesday that leaders could now make ""some necessary improvements and refinements"" the legislation. But he declined to commit to bringing the measure to the House floor next week, a schedule Republican leaders have repeatedly said they intended to keep.""?[AP] RYAN"" POLITICAL ACUMEN QUESTIONED Some Republicans are scratching their heads over his Obamacare overhaul. [Yahoo! News] THAT TIME CONGRESS PASSED ON REFORMING THE NCAA It may surprise you to learn that the collegiate sports organization has issues. [Politico] INSIDE TRUMP"" AIR FORCE ONE BATTLE-Sure, he could be focused on other things... but he's not. [BloombergBusinessweek]- CELEBS TAKE PHOTO LEAKERS TO COURT Emma Watson and Amanda Seyfried are taking on the creeps. [HuffPost] INFERTILITY CLINICS INACCESSIBLE TO MANY-Some 25 million women don""t have easy access to one. [HuffPost] GOOD NEWS FOR CULTS-The first solar eclipse to cross the United States in 99 years will occur this summer. [WaPo] THE MIRACLE (OFF) ICE-The U.S. women's hockey team is boycotting the world championship over pay inequity. [HuffPost] ~ How did the tech world become so male-dominated? ~ Check out the trailer for the adaptation of The Immortal Life of Henrietta Lacks--starring Oprah. ~ So long, and thanks for all the fish? It appears that whales are mass organizing. ~ This walking robot will definitely get its steps in.- ~ Honey Nut Cheerios got woke. ~ An Oxford comma was the deciding factor in a Maine court case. ~ Samantha Bee takes on Steve King. ~ ""say Yes To The Dress""?will feature a transgender bride. ~ The unfortunate results when a train plows through a pile of snow. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2650,2017/3/16,http://www.huffingtonpost.com/2017/03/16/matt-perry-justin-trudeau_n_15402908.html,Matthew Perry Once Beat Up Canadian Prime Minister Justin Trudeau,"""I'm not bragging about this. This was terrible.""","He certainly wasn""t there for Justin Trudeau. Actor Matthew Perry awkwardly revealed Wednesday how he once beat Trudeau up years before he became Canada's prime minister. The ""Friends""?star told Jimmy Kimmel he was around 12 years old when he and a friend rounded on Trudeau, who was a couple of years younger than them and attended the same school in Canada. ""I think he was excelling at a sport that we weren""t as good at,""?Perry said. ""It was pure jealousy.""? Although Trudeau's father, Pierre Trudeau, was Canada's prime minister at the time, Perry said he didn""t think that was the reason why they beat him up.- ""I'm not bragging about this. This was terrible,""?Perry said. ""I was a stupid kid.""?Check out the full segment above. Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2651,2017/3/16,http://www.huffingtonpost.com/2017/03/16/rachel-maddow-trump-tax-report-parody_n_15402424.html,Rachel Maddow's Trump Tax Report Proves A Comedy Gold Mine For Late Night TV Hosts,Keep watching.,"Late night TV hosts poked fun Wednesday at the way MSNBC's-Rachel Maddow reported on obtaining part of President-Donald Trump's tax returns. Both James Corden and Stephen Colbert lightheartedly spoofed the at times longwinded way in which ""the Rachel Maddow Show""?host revealed pages of the president's 2005 returns the day before. Here's how ""Late Show""?host Colbert parodied Maddow's report: And here's ""Late Late Show""?host Corden's take: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2652,2017/3/16,http://www.huffingtonpost.com/2017/03/16/mischa-barton-takes-legal-action-over-revenge-porn_n_15401950.html,Mischa Barton Takes Legal Action Over Revenge Porn Allegedly Peddled By Ex,"""I want to protect [all women] from the pain and humiliation that I have had to go through.""","Mischa Barton is taking legal action over nude images allegedly taken without her permission within the last year by an ex-partner who had offered them to the highest bidder.- The ""�O.C.""?actress""?announcement came Wednesday at a press conference alongside her lawyer.-Barton suggested the ""revenge porn,""?a term that refers to intimate content distributed without permission, was made by a man she dated in 2016.- ""This is a painful situation, and my absolute worst fear was realized when I learned that someone I thought I loved and trusted was filming my most intimate and private moments without my consent, with hidden cameras,""?she said. ""I came forward to fight this not only for myself, but for all the women out there. I want to protect them from the pain and humiliation that I have had to go through,""?she continued. ""no woman should have to go through this.""?The actress has obtained a court order preventing the material from being distributed. E! News states a report was also filed with the Los Angeles Police Department. ""revenge porn is a very common crime that happens to a lot of people. It happens to people who are not celebrities,""?said Barton's lawyer, Lisa Bloom. ""It's scary, even for a celebrity, to stand up like this, but it's important for girls and women to stand up for our rights.""?Thirty-five states and Washington, D.C., have enacted laws against revenge porn, according to a nonprofit dedicated to fighting online abuse. In California, it's classified as a misdemeanor.- The problem, usually perpetrated by angry ex-boyfriends or ex-husbands, has recently been brought into a national spotlight.-In early 2015, a California man was sentenced to seven years-for posting stolen and submitted nude photos of women online; not long after, another California man was sentenced-for hosting a revenge porn website and charging women hundreds of dollars for their likenesses to be removed. Later in 2015, Google announced it would assist victims of revenge porn by removing the offending images from search results. Barton's press conference was hosted the same day reports that personal photos of actresses Emma Watson and Amanda Seyfried had been leaked online. Both women have reportedly taken legal action, as well. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2653,2017/3/16,http://www.huffingtonpost.com/2017/03/16/justin-trudeau-picked-the-perfect-broadway-show-for-ivanka-trump-to-see_n_15401662.html,Justin Trudeau Picked The Perfect Broadway Show For Ivanka Trump To See,"Obviously, she's already been to ""Hamilton.""","Ivanka Trump-joined-Justin Trudeau-at-the theater Wednesday-to see a critically acclaimed Broadway musical about human kindness and welcoming foreigners in need. She attended ""Come From Away,""?at the invitation of the Canadian prime minister hours after a-federal court blocked-a-revised travel and immigration ban-her father, President Donald Trump, had introduced. The story, written by Canadian couple Irene Sankoff and David Hein,-centers around the town of Gander-in Canada,-which welcomed thousands of airline passengers whose planes were grounded during the Sept. 11, 2001, attacks. The small town of 10,000 individuals cared for stranded travelers for days. The New York Times""?Michael Paulson reported that the attendance of the first daughter daughter was a surprise. She sat between Trudeau and Nikki Haley, the U.S. ambassador to the United Nations. Also in attendance was a delegation of 600 individuals the Canadian consulate general in New York had invited, the Times said. Trump admin on Broadway: @IvankaTrump is here at @wecomefromaway with @nikkihaley. pic.twitter.com/2Hj5qBDIXt Hours earlier, a-federal judge in Hawaii blocked-her father's-second attempt-at an executive order that targets refugees and immigrants from six Muslim-majority nations. Trudeau told reporters that Ivanka Trump was a fan of the show, which opened on Broadway at the Gerald Schoenfeld Theater on Saturday. Asked about meeting w/ @IvankaTrump in the crowd, Trudeau says she liked the musical like everyone else #ComeFromAway pic.twitter.com/W0fLkLnVc4 Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2654,2017/3/16,http://www.bbc.co.uk/news/uk-scotland-39293513,Scottish independence: Theresa May says 'now is not the time',"Theresa May has said that ""now is not the time"" for a second referendum on Scottish independence.","Theresa May has said that ""now is not the time"" for a second referendum on Scottish independence. But the prime minister did not say whether she was ruling out holding a referendum at some point in the future. First Minister Nicola Sturgeon has called for a referendum to be held in the autumn of 2018 or the spring of the following year. But Mrs May said it would be ""unfair"" to hold a vote before the UK's future relationship with the EU became clear. Her Scottish Secretary, David Mundell, has tweeted that holding a referendum before Brexit would be ""not fair and can't be agreed"". But Ms Sturgeon tweeted that the Conservatives ""fear the verdict of the Scottish people"". And a spokesman for the Scottish government said blocking a second referendum would be a ""democratic outrage"" and a ""miscalculation and blunder of epic and historical proportions"". Mrs May said her focus was to seek the best deal possible for the whole of the UK, including Scotland, in the forthcoming Brexit negotiations with the EU. She said: ""So when the SNP government say that now is the time to start talking about a second independence referendum, I say that just at this point all of our energies should be focused on our negotiations with the European Union about our future relationship. ""To be talking about an independence referendum would I think make it more difficult for us to be able to get the right deal for Scotland and the right deal for the UK."" What we heard from Theresa May was a very carefully calibrated rebuff to Nicola Sturgeon - but not to the Scottish people. You sense that Mrs May is trying to drive a wedge between the two. She's rejected the first minister's call for a referendum before Brexit, saying all our energies now need to be focused on getting the best deal. But the prime minister is absolutely not ruling out a referendum in the future. Now may not be the time - but she's not saying never. The prime minister added: ""My message is clear - now is not the time. ""I think we should be working to get the right deal for Scotland and the UK with our future partnership with the European Union. ""It would be unfair to the people of Scotland that they would be being asked to make a crucial decision without the information they need to make that decision."" The prime minister also said the country should be ""working together, not pulling apart"". Scotland voted by 55% to 45% to remain in the UK in a referendum in September 2014 - but Ms Sturgeon says a second vote is needed to allow the country to choose what path to take following last year's Brexit vote. She has said she wants a new vote to be held before a deal on the UK's withdrawal from the European Union is finalised. Speaking at the weekly first minister's questions session in the Scottish Parliament on Thursday morning, Ms Sturgeon defended her position by saying the UK voting to leave the EU was a ""disaster"" and she had a ""duty to allow people to opt for something better"". MSPs are due to vote next Wednesday on whether to seek a section 30 order from the UK government, which would be needed to make any referendum legally binding. The parliament currently has a pro-independence majority, with the Scottish Greens pledging to support the minority SNP government in next week's vote. Ms Sturgeon issued a direct challenge to the Conservatives, asking: ""If on Wednesday next week this parliament votes for an independence referendum to give the people of Scotland a choice over their own future, will the Conservatives respect the will of this parliament or are the Conservatives running scared?""", -2655,2017/3/16,http://www.bbc.co.uk/news/world-africa-39289749,Sierra Leone pastor finds huge diamond in Kono,A Christian pastor has discovered one of the world's largest uncut diamonds in Sierra Leone's Kono district.,"A Christian pastor has discovered one of the world's largest uncut diamonds in Sierra Leone's Kono district. The diamond, weighing 709 carats, is now locked up in Sierra Leone's central bank in Freetown. It is one of the 20 largest diamonds ever found. Freelance, or artisanal, miners are common in Sierra Leone's diamond-rich areas, reports the BBC's Umaru Fofana. But there are questions over whether the community will benefit from the gemstone, he adds. Pastor Emmanuel Momoh's discovery, which has not yet been valued, is the biggest diamond to be found in Sierra Leone since 1972, when the 969-carat Star of Sierra Leone was dug up. It is also the 13th largest diamond ever to be found, says Mathew Nyaungwa from Rough and Polished diamond analysts. Mr Nyaungwa adds that it is difficult to estimate a price as it is ""quality not size [that] determines the value of a diamond"". Our correspondent says that the discovery may have a blemish. Last May, diamond-mining firm Lucara sold a 813-carat stone for $63m (?51m) at a closed auction in London. The diamond was first taken to President Ernest Bai Koroma on Wednesday evening before being locked up. The president ""thanked the [local] chief and his people for not smuggling the diamond out of the country"", a statement from the presidency says. Mr Koroma said that the owners should get ""what is due to them"" and it should ""benefit the country as a whole"", it adds. 1. Cullinan Diamond, found in South Africa in 1905, weighed 3,107 carats 2. Lesedi La Rona, found in Botswana in 2015, weighed 1,111 carats 3. Excelsior Diamond, found in South Africa in 1893, weighed 995 carats 4. Star of Sierra Leone, found in Sierra Leone in 1972, weighed 969 carats 5. Incomparable Diamond, found in DR Congo in 1984, weighed 890 carats Source: Mathew Nyaungwa, Rough and Polished Sierra Leone is well known for its diamond industry but it has had a chequered history. Diamond sales partly fuelled the country's decade-long civil war when rebel groups exchanged them for weapons. This aspect of the conflict gained global exposure in the Hollywood film Blood Diamond, starring Leonardo Di Caprio and Djimon Hounsou. There has been a spate of large diamond finds in recent years at mines in southern Africa, including a 1,109-carat diamond in Botswana in 2015.", -2656,2017/3/16,http://www.bbc.co.uk/news/business-39292653,Fox takeover bid for Sky to be reviewed,Culture Secretary Karen Bradley has asked regulators to examine Rupert Murdoch's 21st Century Fox's takeover bid for Sky.,"Culture Secretary Karen Bradley has asked regulators to examine Rupert Murdoch's 21st Century Fox's takeover bid for Sky. In a statement to parliament, she told MPs that media regulator Ofcom and competition regulator, the CMA, would be asked to investigate the deal. 21st Century Fox is offering ?11.7bn for the 61% stake in Sky it does not already own. The company said it was ""confident"" the takeover would be approved. Critics of the merger fear it will mean Rupert Murdoch has too much control of the media. Ms Bradley had previously said that she was ""minded"" to call for an investigation. Since then, she said she had listened to the cases from interested parties, but that they had not sufficiently dismissed her concerns. The two main questions surround whether the deal leaves sufficient ""plurality of persons with control of the media enterprises serving audiences in the UK"" and whether they had a ""genuine commitment to attaining broadcasting standards objectives"". ""While the representations from 21st Century Fox highlighted areas where it contested the position taken in my minded-to letter, none of the representations have led me to dismiss the concerns I have regarding the two public interest grounds I previously specified,"" she said. ""I am of the view that it remains both important, given the issues raised, and wholly appropriate for me to seek comprehensive advice from Ofcom on these public interest considerations and from the Competition and Markets Authority (CMA) on jurisdiction issues."" Amol Rajan: Is Fox and Sky deal different this time? Labour MP David Winnick was among those to object to the deal. He said there was no ""vendetta"" against Mr Murdoch but that ""it would be simply unacceptable that the amount of media ownership he already controls should be increased."" Part of Ofcom's investigation will include whether Sky's potential new owners are ""fit and proper"". Rupert Murdoch and Lachlan Murdoch are both joint chairmen of 21st Century Fox and News Corp while James Murdoch is chief executive of Fox. The CMA will provide advice on whether European regulators need to examine the deal. The two bodies have until 16 May to prepare their reports. Rupert Murdoch has previously bid to take full control of Sky. In 2011 News Corp, which owns The Times and The Sun, made an offer but it was abandoned in the wake of the phone hacking scandal. In 2013, Rupert Murdoch split the company into two. 21st Century Fox contained the TV and entertainment operations, while News Corp kept the newspaper and publishing businesses. The latest bid is from 21st Century Fox, which said it was looking forward to working with the UK authorities on its review and that it was ""confident"" the deal would be approved. ""The media market has changed dramatically in recent years, as has our business. We believe our proposed ?11.7bn investment will benefit the UK's creative industries,"" it said.", -2657,2017/3/16,http://www.bbc.co.uk/news/health-39292381,Three-person baby licence granted,"Doctors in Newcastle have been given the first UK licence to create babies from two women and one man, the fertility regulator says.","Doctors in Newcastle have been given the first UK licence to create babies from two women and one man, the fertility regulator says. The advanced form of IVF will be used to prevent children dying from genetic diseases. The team at the Newcastle Fertility Centre said it was ""good news"" and a ""momentous day"" for patients. And realistically expect the first child to be born in 2018 at the earliest. The procedure aims to overcome mitochondrial diseases which leave people with insufficient energy to keep their heart beating. Some families have lost multiple children to the disease. It is passed down from only the mother - so a technique using a donor egg as well as the mother's egg and father's sperm has been developed. The resulting child has a tiny amount of their DNA from the donor, but the procedure is legal and reviews say it is ethical and scientifically ready. The UK Fertility Regulator, the Human Fertilisation and Embryology Authority, must approve every clinic and every patient before the procedure can take place. The team in Newcastle anticipates helping 25 couples every year. Prof Sir Doug Turnbull, the director of the Wellcome Centre for mitochondrial research at Newcastle University, said: ""I am delighted for patients as this will allow women with mitochondria DNA mutations the opportunity for more reproductive choice. ""Mitochondria diseases can be devastating for families affected and this is a momentous day for patients who have tirelessly campaigned for this decision."" Three-person babies have been allowed only in cases where the risk of a child developing mitochondrial disease is very high. Mitochondrial disease is caused by defective mitochondria - the tiny structures in nearly every cell that convert food into useable energy. One in 4,300 children are born with such severe symptoms they develop muscle weakness, blindness, deafness, seizures, learning disabilities, diabetes, heart and liver failure. It is often fatal. The aim of the procedure is to get the healthy mitochondria from the donor. But mitochondria have their own DNA, which is why resulting children have DNA from three people. However, everything that defines physical and personality traits still comes from parents. However, the UK will not be the first country in the world to have children born through the three-person technique. A Jordanian couple and doctors in New York performed the procedure in Mexico and the resulting baby is understood to be healthy. Follow James on Twitter.", -2658,2017/3/16,http://www.bbc.co.uk/news/world-europe-39292755,French school shooting: Teenage boy arrested after two people injured,Police have arrested a boy of 17 in the southern French town of Grasse after at least two people were hurt in a shooting at a school.,"Police have arrested a boy of 17 in the southern French town of Grasse after at least two people were hurt in a shooting at a school. The boy, who is said to have been heavily armed, launched the attack at Tocqueville high school at lunchtime. Anti-terrorist commandos from the elite Raid force were sent to the scene. Grasse, the capital of France's perfume industry, is about 44km (27 miles) from the city of Nice, where a lorry attack in July killed 86 people. France remains under a state of emergency after a string of deadly attacks in the past 18 months. The government minister for victims affairs, Juliette Meadel, said all students were safe on social media, adding her thoughts were with the parents of the two people injured in the attack. The interior ministry has issued a terror alert, but local reports suggest the shooter was not linked to any group. There is conflicting information about whether or not there was a second shooter. Are you in the area? If it is safe to do so, share your experiences by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -2659,2017/3/16,http://www.bbc.co.uk/news/health-39288920,Coping with acne: Woman video blogs skin transformation,,"Video blogger Katie Snooks, who posted videos about her acne treatment online, investigates how other people cope with the skin disease.", -2660,2017/3/16,http://www.bbc.co.uk/news/world-us-canada-39289416,Trump budget: Rex Tillerson defends foreign aid budget squeeze,US Secretary of State Rex Tillerson has defended swingeing budget cuts to his own department proposed by President Donald Trump.,"US Secretary of State Rex Tillerson has defended swingeing budget cuts to his own department proposed by President Donald Trump. Speaking in Japan, he said the level of state department spending in the past had been ""simply not sustainable"" and he willingly accepted the ""challenge"". If Congress backs the budget, and that is far from a done deal, the state department and USAID face cuts of 28%. Budget savings would benefit the military primarily. Environmental programmes, medical research and the Amtrak long-distance rail network would all lose out. The Corporation for Public Broadcasting (CPB), the largest source of public broadcasting money in the US, would lose its funding completely. While Mr Trump's Republicans control both houses of Congress, segments of the budget plan are expected to face stiff resistance across the parties. The budget, known as a ""skinny budget"", will be limited to the $1tn portion of the $4tn annual federal budget that pays for US agencies and departments. At a news conference in Tokyo, the US secretary of state said the White House was acting on the expectation that there would be fewer military conflicts involving the US directly ""as time goes by"" and that its allies would do more themselves to contribute to development aid and disaster assistance. The state department was ""coming off a historically high allocation of resources"", he was quoted as saying by AFP news agency. ""We are going to be able to do a lot with fewer dollars,"" he said. Under the budget plans, defence department spending would rise by $54bn (?44bn) or 10%, including $2bn for nuclear weapons, while homeland security would get a 6.8% boost. In addition, the National Nuclear Security Administration, which oversees the maintenance and safety of the nuclear arsenal and its research labs, would gain $1.4bn. Veterans Affairs would get a rise of 5.9%, or $4.4bn, to meet growing healthcare costs. President Trump said in a message accompanying his budget plan: ""A budget that puts America first must make the safety of our people its number one priority because without safety, there can be no prosperity."" While the White House wants Mexico to pay for a controversial wall along the two countries' border In relative terms, the Environmental Protection Agency (EPA) would lose the most, taking a hit of 31.4% or $2.6bn. However, in dollar terms, health and human services would face the biggest cut of all: $12.6bn or 16.2%. It is not clear what research on diseases or disorders would lose the most money, the Associated Press news agency reports. Agriculture loses 21% of its budget, labour 21% and transport 13%. By Matt McGrath, BBC environment correspondent US popular support for action to tackle environmental problems reached a peak after the heavily polluted Cuyahoga river in Cleveland caught fire in 1969. Ongoing problems with air and water prompted Richard Nixon to establish the Environmental Protection Agency a year later in 1970, with broad bipartisan support. Over the past 47 years it has had major successes - acid rain, leaded petrol and the pesticide DDT have become footnotes in history thanks to the agency. While the swingeing cuts proposed by the Trump administration will hit the EPA's climate change research abilities and the implementation of Clean Power Plan, the measures will also have a major impact on regional pollution cleanup efforts in the Great Lakes and Chesapeake Bay. The Superfund program, which manages and attempts to clean up hundreds of sites poisoned with lead, asbestos and dioxins, would see its cash cut by $330m to $760m. While President Trump has many times spoke about his belief in clean air and clean water, the ability of the EPA to deliver these is likely to be significantly hampered by the loss of 3,200 employees proposed in the budget. And if an environmental disaster like Cuyahoga or last year's Flint water crisis strikes in the future, will these proposed cuts be blamed? The state department and USAID (US Agency for International Development) between them pay for everything from the diplomatic corps to fighting poverty, promoting human rights and improving healthcare in foreign countries. A 28% cut would mean the loss of $10bn. The CPB certainly has supplied funds to the Public Broadcasting Service (PBS) but Big Bird and friends migrated from there to commercial network HBO nearly two years ago. Local public television and radio stations across America also receive CPB grants and would stand to suffer if the corporation lost federal support. The budget is submitted to Congress as a series of bills - the ""annual appropriations bills"". In order for each to succeed, it has to get 60 votes in the Senate, where the Republicans have 52 seats to 48 for the Democrats. At least eight Democrats would have to vote for the cuts or at least refuse to obstruct it. Given the level of Democratic animosity towards Mr Trump, those possibilities look slim. Meanwhile, several Republicans have publicly opposed moves to slash funding for diplomacy and foreign aid. Senator Lindsey Graham, chairman of the Senate subcommittee responsible for the budgets, said last month: ""It's dead on arrival - it's not going to happen. It would be a disaster... If you take soft power off the table then you're never going to win the war.""", -2661,2017/3/16,http://www.bbc.co.uk/news/uk-39292133,Abta website: Holidaymakers hit by cyber attack,"The travel trade organisation, Abta, says a cyber attack on its website may have affected about 43,000 people.","The travel trade organisation, Abta, says a cyber attack on its website may have affected about 43,000 people. About 1,000 files accessed may include personal identity information of individuals who have made a complaint about an Abta-registered travel agent. It says it is contacting those affected by the hack which happened on 27 February and has a dedicated helpline. It has also alerted the police and the Information Commissioner's Office (ICO). Part of the ICO's role is to help the public manage their personal data. Abta chief executive Mark Tanzer said he would ""personally like to apologise for the anxiety and concern"" caused to Abta customers and members. ""It is extremely disappointing that our web server, managed for Abta through a third party web developer and hosting company, was compromised and we are taking every step we can to help those affected."" Mr Tanzer said the organisation was not aware of any of the information being shared beyond the infiltrator. ABTA is the UK's largest travel association, representing travel agents and tour operators who sell ?32bn of holidays and other travel arrangements each year, according to its website. The organisation gives advice and guidance to holidaymakers, sets standards for travel firms and promotes responsible tourism in the UK and abroad. It said the type of data which may have been accessed included: Abta said the ""vast majority"" of the 43,000 people affected were those who had registered with email addresses and encrypted passwords or had filled in an online form with basic contact details. It said there was ""a very low exposure risk to identity theft or online fraud"" with this kind of data. It advised customers and ABTA members registered on the site to change their passwords as a ""precautionary measure"". Abta said those who had uploaded contact details or documentation on the website should actively monitor their bank accounts, social media and email accounts, and ""remain vigilant"". It has also offered people who may be affected a free-of-charge identity theft protection service.", -2662,2017/3/16,http://tass.com/world/935981,Turkey has no plans to integrate Russia's S-400 missile systems into NATO structure,Turkish Defense Minister Fikri Isik earlier said there was progress in purchasing S-400 systems from Russia but the sides had not yet reached the stage of signing the agreement,"ANKARA, March 16. /TASS/. Turkey has no plans to integrate Russian-made S-400 long-range antiaircraft missile systems into the NATO structure, if they are purchased, Turkish Defense Minister Fikri Isik said on Thursday. ""The complexes that will be purchased won""t be integrated into the NATO system,"" the defense minister was quoted by the TV Channel Haber 7 as saying. Isik said on Wednesday there was progress in purchasing S-400 systems from Russia but the sides had not yet reached the stage of signing the agreement. ", -2663,2017/3/16,http://tass.com/economy/935979,"US Fed rate raise won""t affect terms of placement of Russia's Eurobonds ""?minister",Earlier Siluanov said that Russia's Finance Ministry plans to place Eurobonds in 2017 with the help of Russian banks,"MOSCOW, March 16. /TASS/. Raising the base interest rate by the US Federal Reserve System will not affect the possible terms of placement of Russia's sovereign Eurobonds, Russian Finance Minister Anton Siluanov told reporters. ""Everything is going according to the plan,"" he said. On Wednesday, the US Federal Reserve System acting as the national central bank raised the base interest rate by 25 basis points to 0.75-1%. The Fed rate increase was expected by experts. In its statement the Federal Open Market Committee said that the raise of the base interest rate does not mean faster normalization of monetary policy in the United States and that this process will be gradual. In accordance with this, two more rate hikes are expected this year and three in 2018. Earlier Siluanov said that Russia's Finance Ministry plans to place Eurobonds in 2017 with the help of Russian banks. Deputy Finance Minister Sergei Storchak said that the placement of Russian Eurobonds is possible in spring of 2017. According to head of the debt department of the Finance Ministry Konstantin Vyshkovsky, Russia will change the order of selection of the organizers of the placement of Eurobonds and send proposals only to those banks that will agree to participate in the placement in advance. Last year, leading Western banks refused to place Russian Eurobonds. Nevertheless, Russia successfully placed two Eurobonds issues in May and September for the sums of $1.75 bln and $1.25 respectively. The maturity date of both issues is 2026.", -2664,2017/3/16,http://tass.com/politics/935958,Russian diplomat points to decreasing violence in Syria,Moscow has no doubts that some external forces made the Syrian opposition refuse to participate in the Astana talks,"MOSCOW, March 16. /TASS/. The Syrian ceasefire has led to a significant decrease in violence, the number of ceasefire violations is limited, Russian Foreign Ministry Spokeswoman Maria Zakharova said on Thursday. ""We are pleased to note that thanks to the Syrian ceasefire, guaranteed by Russia, Iran and Turkey, violence has significantly decreased,"" the Russian diplomat said. ""The number of ceasefire violations is limited."" ""The ceasefire has provided the Syrian troops with an opportunity to focus on fighting the ISIL (the former name of the Islamic State terror group outlawed in Russia),"" Zakharova stressed. She added that as a result of a successful offensive carried out by the Syrian government forces, vast areas in the eastern part of the Aleppo Governorate, stretching to the Euphrates River, have been liberated. The refusal of the Syrian armed opposition to participate in the talks in Kazakhstan's capital means refusal to tackle the country's problems, she went on.- ""We regret that the delegation of the Syrian armed opposition showing disrespect for the organizers of the forum (in Astana) and other participants in that event who gathered in the capital of Kazakhstan indulged in speculations around its arrival in Astana,"" the diplomat noted. ""The excuses cited by its leaders are totally unconvincing and unacceptable."" ""After all, the objective of any negotiations is to solve the existing problems, and we have repeatedly said that,"" Zakharova emphasized. ""Refusal to take part in the talks means one thing, namely, reluctance to tackle the issues the entire world community has addressed for many years."" ""Perhaps, those who pushed the armed Syrian opposition to boycott this event (the Astana talks on Syria), wanted to damage the Astana process as well as the Geneva process. We have no doubts that this decision was imposed on the opposition by some external forces,"" she said. Moscow welcomes international organizations""?willingness to participate in the restoration of Syria's Palmyra, hugely damaged by militants of the Islamic State terror group (outlawed in Russia). ""When the city was controlled by militants, the historical sites suffered huge damage,"" she noted. ""The actual damage is yet to be evaluated."" ""We are pleased to see that various international organizations have expressed their willingness to take part in the future restoration of Palmyra,"" the Russian diplomat added. At the same time, in Zakahrova's words, demining the city is currently a priority. Over 150 Russian de-miners have arrived in Syria to clear Palmyra from mines, the Russian Defense Ministry's press service said on Thursday. Besides, 17 units of special equipment have been deployed to Palmyra, the ministry added. Apart from de-miners, a military canine unit has also been sent to Palmyra. ", -2665,2017/3/16,http://tass.com/world/935967,Queen gives royal assent to Brexit triggering UK's departure from EU,No country has left the European Union since the Maastricht Treaty on establishing the EU was signed in 1992,"LONDON, March 16. /TASS/. Queen Elizabeth II-has given Royal Assent to the Brexit bill, Speaker of the House Commons, John Bercow, and his counterpart in the House of Lords, Lord Norman Fowler, announced on Thursday. ""I have to notify the house that Her Majesty has signified her Royal ascent to the following act: The European Union Notification of Withdrawal Act 2017,"" Bercow said. On March 13, both houses of the British Parliament agreed on the famed ""Brexit"" bill, which authorizes Prime Minister Theresa May to send a formal request to Brussels on the UK's withdrawal from the European Union in accordance with Article 50 of the Lisbon Treaty on the EU and begin two-year talks on the issue. The debate in parliament on the document, which contains a total of 137 words, lasted more than a month. The House of Lords tried to introduce two amendments to it obliging the government to guarantee citizens""?rights and present the outcome of the talks with Brussels to the British parliament to debate on. However, both amendments were rejected by the House of Commons, and the bill was eventually approved in its original form. According to the British media, May will send a request on March 29 after completing her tour of the UK, during which she will try to secure support for the future negotiation process from the authorities of Wales, Scotland and Northern Ireland. No country has left the European Union since the Maastricht Treaty on establishing the EU was signed in 1992. Queen Elizabeth II: 65 years on the British throne ", -2666,2017/3/16,http://tass.com/society/935956,Russian blockbuster 'Attraction' coming to English-speaking audiences in late spring,"The film will be released in the United States, Canada, the United Kingdom, New Zealand and Australia","MOSCOW, March 16. /TASS/. The Russian science fiction blockbuster ""attraction""?by Fyodor Bondarchuk is planned for release in English-speaking countries at the end of spring, one of the film's producers, Dmitry Rudovsky, told TASS on Thursday. Rudovsky said the film will be released in the United States, Canada, the United Kingdom, New Zealand and Australia. ""We have achieved preliminary agreements with a foreign distributor that will be responsible for the film's release in English-speaking countries,"" he said. ""The release date will be appointed by the distributor but we think it will be late spring."" 'Attraction' tells the story of a UFO shot down over a densely populated Moscow residential neighborhood. The crash landing leads to the loss of many lives. As a result, the Russian government immediately imposes martial law, as the locals grow enraged at the unwelcome guest. The blockbuster has already been sold for distribution to 74 countries and is currently shown in Laos, Vietnam, South Korea and the Baltic states, Rudovsky said. In April and May, ""attraction""?will be released in Germany, Italy, France and Japan, he added. The film was released in Russian on January 26 and has already chalked up 1.1 bln rubles ($19 mln).", -2667,2017/3/16,http://tass.com/world/935957,Tillerson unveils new US approach to North Korea after 20 years of failed diplomacy,"At the same time, Tillerson noted that ""North Korea and its people need not fear the United States""","TOKYO, March 16. /TASS/. US Secretary of State Rex Tillerson, who is currently on an official visit to Japan, held talks with his Japanese counterpart Fumio Kishida on Thursday to focus on North Korea amid its recent launches of ballistic missiles. Speaking at a joint press conference, Tillerson said the efforts to denuclearize North Korea over the past 20 years have failed to produce the desired result. ""In the face of this ever-escalating threat, it is clear that a different approach is required,"" he said. At the same time, Tillerson noted that ""North Korea and its people need not fear the United States or their neighbours in the region who seek only to live in peace with North Korea."" Japan's top diplomat said Tokyo and Washington are not planning to put up with North Korea's nuclear and missile program. ""We exchanged views on the situation in the region, including on the Korean Peninsula,"" he stressed. ""On North Korea, we share stance that we cannot absolutely accept Pyongyang's missile and nuclear programs."" The sides also noted the role of China in the North Korean issue. ""China is a major source of economic trade and activity with North Korea. So we look to China to fulfill its obligations and fully implement the sanctions called for in the UN resolutions,"" Tillerson said. Tokyo says that Tillerson's visit confirms the importance of Japanese-US ties. ""His visit is the first as the Secretary of State to the Asia-Pacific Region. This speaks about the importance of our bilateral relations,"" Kishida said. Tillerson said the alliance with Japan is a ""cornerstone of peace and stability of the Asia-Pacific region."" He also emphasized the importance of trilateral cooperation between the US, Japan and South Korea. After talks with Kishida, the US Secretary of State met with Japan's Prime Minister Shinzo Abe. Besides issues of cooperation between Tokyo, Washington and Seoul to solve North Korea's nuclear issue, the sides discussed Japan's policy towards Russia and the US stance on this. ""At the meeting, PM Abe said that he makes efforts to solve the issues of the Northern Territories (Russia's Southern Kuril Islands) and is in talks with President (Vladimir) Putin with the goal of signing a peace treaty. Tillerson expressed the understanding of this policy,"" Japan's Foreign Ministry said. After Japan, on March 17 Tillerson will pay a one-day visit to South Korea to meet with the acting President Hwang Kyo-ahn and Foreign Minister Yun Byung-Se. The sides will discuss cooperation on North Korea's nuclear program and the deployment of the US THAAD missile defense system to South Korea. Despite protests of South Korea's citizens, the first two launchers of the system have been already delivered to the military base near Pyeongtaek, some 70 km from Seoul. The system is expected to go operational in one or two months. China, which has been criticizing the deployment of the system, will be the last stop on the tour. Tillerson will visit the country on March 18. The trip is aimed at preparing for the meeting between US President Donald Trump and Chinese President Xi Jinping. US mass media reports said the talks may take place on April 6-7. Tillerson is also expected to meet with China's Foreign Minister Wang Yi, Premier of the State Council Li Keqiang and State Councilor Yang Jiechi.", -2668,2017/3/16,http://tass.com/politics/935944,"Russia sees good prospects for cooperation with Iraq ""?Putin","The president says that Moscow ""supports the Iraqi government's efforts against international terrorism and extremism""","MOSCOW, March 16. /TASS/. Russia and Iraq have good prospects for cooperation, especially, in the fuel and energy sphere, President Vladimir Putin said on Thursday. ""We see good prospects to expand mutually beneficial cooperation with Iraq in various spheres, mainly, in the fuel and energy sphere,"" Putin said as he received credentials of the new Iraqi ambassador in Moscow. The president also said that Moscow ""supports the Iraqi government's efforts against international terrorism and extremism."" ""We are in favor of the country's unity and territorial integrity with the respect for the interests of all ethnic and religious groups,"" Putin said.", -2669,2017/3/16,http://tass.com/world/935949,"Several injured in school shooting in south France ""?media","The shooter was detained by police, according to BFM TV channel","MOSCOW, March 16. /TASS/. Several people have been injured after a man opened fire at a high school in the small town of Grasse in France's southeast, AFP news agency reported on Thursday. BFM TV channel said that the shooter was later detained by police. A 17-year old student was armed with a rifle, two handguns and two grenades, the TV channel-said quoting police sources. The shooter opened fire at the headmaster, injuring four people. Their lives are not in danger, the channel said. All schools in Grasse were closed after the shooting incident. ", -2670,2017/3/16,http://tass.com/science/935945,Diamond in the rough: Physicists invent super-rigid material using gemstones,Fullerite is a molecular crystal where fullerene molecules are located in the lattice points with the fullerene being a football-shaped molecule consisting solely of carbon atoms,"MOSCOW, March 16. /TASS/. Russian physicists modeled a fullerite and diamond-based structure and demonstrated that when pressure was applied the fullerite acquired a super-strong rigidity, the MIPT press office said. This breakthrough sets the stage for estimating the possible conditions to produce the super-rigid materials. The results of the study were published in the journal Carbon. Fullerite is a molecular crystal where fullerene molecules are located in the lattice points with the fullerene being a football-shaped molecule consisting solely of carbon atoms. The fullerene possesses an outstanding rigidity, whereas the fullerite is a rather soft material, which nevertheless upon pressure becomes harder than a diamond. ""We hope that through our work, we will bring us closer to unlocking the mystery of ultrahard carbon. The developed model will help bring to light its properties and in synthesizing new ultra-hard carbon materials,"" Pavel Sorokin, the author of the research commented. The reasons why fullerite becomes extremely hard once pressure is applied have been clarified by a group of scientists from Technological Institute for Superhard and Novel Carbon Materials (TISNCM), Moscow Institute of Physics and Technology (MIPT), Skolkovo Institute of Science and Technology (Skoltech), and the National University of Science and Technology ""MISIS"" under the guidance of Doctor of Physical and Mathematical Sciences, Professor Leonid Chernozatonsky from the N.M. Emmanuel Institute of Biochemical Physics RAS, and Pavel Sorokin, Doctor of Physical and Mathematical Sciences, leading researcher at the laboratory ""Inorganic Nanomaterials"" at MISIS and MIPT lecturer. The researchers believe that upon contraction part of the fullerite evolves into a diamond-like carbon while the rest preserve its structure. The scientists developed a model where the structure in the contracted state has been encapsulated in a diamond, and have studied its properties. Essentially, the contracted fullerite is kept by the diamond's shell giving an extreme rigidity to the whole structure. During the course of the research, it turned out that with an increase in the size of fullerite cluster, while retaining the sizes of the diamond's shell, the characteristics became very similar to the experimental one, with the material's rigidity notably outdoing the features for diamonds. The researchers believe that the results will promote further steps in researching fullerite.", -2671,2017/3/16,http://tass.com/press-releases/935963,GENIVI Alliance Chosen by Google Summer of Code Program,,"SAN RAMON, California, March 16, 2017 /PRNewswire/.-The GENIVI Alliance, an open, collaborative development community of automakers and their suppliers driving the broad adoption of open source in-Vehicle (IVI) and connected car software, has announced its GENIVI Development Platform (GDP) has been chosen to participate in the Google Summer of Code (GSoC) program. The GSoC is a global program focused on bringing more student developers into open source software development.-Students work with an open source organization on a 3-month programming project during their school break, and the GDP was one of 201 applications accepted among 400 applicants.-The GDP is an open source automotive development platform where prototypes and innovative IVI and connected vehicle solutions can be rapidly developed and demonstrated in an open community. ""The GSoC program is a wonderful opportunity to introduce students to open source software in an automotive context,"" said Steve Crumb, executive director, GENIVI Alliance.-""It goes a long way towards developing a new generation of software developers, and provides an excellent opportunity to leverage talent within academia to produce useful automotive software."" The GSoC will begin accepting student applications on March 20 and the deadline to submit an application is April 3.-After entering the program, students will be paired with a mentor from the GENIVI delivery team and coding will take place over the summer months with results announced on September 6.-More information on the program can be found on the-GSoC website-and students interested learning more about the GDP and submitting project ideas can visit the GENIVI-Wiki.- About GENIVI Alliance- The-GENIVI Alliance-is a non-profit alliance focused on developing an open in-vehicle infotainment (IVI) and connectivity platform for the transportation industry. The alliance provides its members with a global networking community of more than 140 companies, joining connected car stakeholders with world-class developers in a collaborative environment, resulting in free, open source middleware. GENIVI is headquartered in San Ramon Calif. Media Contact - GENIVI Alliance: Craig Miner GENIVI Alliance +1.248.840.8368 cminer@quell.com Logo --http://photos.prnewswire.com/prnh/20160720/391617LOGO", -2672,2017/3/16,http://www.dw.com/en/reacting-to-the-dutch-elections-politicians-shouldn-t-play-with-the-concept-of-national-identity/a-37967143?maca=en-rss-en-all-1573-rdf,Reacting to the Dutch elections: 'Politicians shouldn't play with the concept of national identity',"Arnon Gr��nberg is a Dutch author living in New York. Relieved by the election results, he discussed with DW some of the current problems his home country is dealing with.","DW: Mr.-Gr��nberg, many Dutch citizens decided to follow the populist politician Geert Wilders. Was it out of anger? Arnon Gr��nberg: Anger probably played a role, but most importantly insecurity - and not only on an economic level. Apparently, many Dutch people no longer know who they are. When I grew up in Holland in the 1970s and 80s, secularization was not as advanced as it is now. Affiliations were very clear at the time - you either voted for the Catholics or the Protestants, or the Social Democrats. That changed recently. Many people feel incredibly insecure. And Pim Fortuyn jumped in to fill that void, followed by Geert Wilders. Where does the fear of losing one's own identity come from? When you don't know how to define, ""Who am I?-Who are we?""-that leads to insecurity. To blame that on globalization and neo-liberalism only would be too easy. It's related to much more than just money or jobs. Most of the Netherlanders actually lead a comfortable life. We had these two murders, Pim Fortuyn in 2002 and Theo van Gogh in 2004.-There have been-terror attacks all over the world. And politicians kept talking about ""foreign infiltration,"" of a ""Muslim threat"" or of millions of Africans allegedly coming over - and that was the case before this election as well. When such things are repeated too often, then people start believing them. Nevertheless, a strong majority of the Dutch didn't vote for the extreme right. Author Arnon Gr��nberg You say that economically speaking, things are better than ever in the Netherlands. But doesn't this boom also leave many people behind - who then tend to believe the promises of the extreme-right, nationalists and populists more easily? Of course, there are also losers. The Netherlands is definitely not a paradise, but it would be too easy to say that people vote for the radical right for economic reasons. Most of the PVV voters come from the middle or lower-middle class - there are even professors among them. They are afraid of becoming the next losers. You are a multilingual intellectual, but you're also Dutch. How do you answer the question, ""Who are we?"" There are many answers. I'm an author, I'm a Hollander, I live in New York and so forth. Additionally, even in a small country like The Netherlands there are great differences. In Limburg in the South, the situation is completely different from the one in Amsterdam in the North. Regional identity is important. It's also not as dangerous as when politicians play with the concept of national identity and revive nationalism. The identity question should not be resolved by politicians. It should be answered by the people themselves, in their families, in their sport clubs, in church, wherever. It's not the duty of politicians to tell us who we are. His latest novel published in German, ""Muttermale"" Which answers can be provided by artists? Your new novel, ""Moedervlekken"" [Eds. which means ""birthmarks,"" not translated in English yet] is about empathy, but also about paying attention to the sufferance of other people. Would you say that Dutch society has lost its ability to empathize with others? Yes. The question is also, who are those others. The Netherlands used to be very international and was concerned by what would be happening in other countries. Nowadays, many Dutch people - not only those who have voted for Wilders and the PVV - think we need to show solidarity with ourselves first, that we should be at the center of attention. America first, but then the Netherlands second [Eds.: an expression that was made popular through a viral comedy video after Trump's election]. It is a dangerous trend. Solidarity and empathy don't stop at the border. One can't say, it stops east or south of Maastricht. It wouldn't be human. But if there's still something left of humanist values, of the belief that all people are equal, then it's dangerous to say: ""Africans or war refugees from Syria are not as important humans as we are. We've deserved our destiny."" You write a daily column in the Dutch newspaper ""De Volkskrant."" You-held the opening speech at the Frankfurt Book Fair last year. Can you understand the isolationist tendencies in many countries? I can somehow understand them, but it isn't a solution. We see that with Trump in the US, that people of the lower class who voted for him were betrayed by his actual policies. The same thing would have happened here with Wilders had he been elected or potentially with Le Pen in France. It would also be wrong to destroy everything that exists to build something new. There are many things that should be preserved. And we should fight against the destructive drift of the extreme right - or even the extreme left in the Netherlands. How can authors, artists and intellectuals influence the country to avoid the worst? That's difficult. No one should overestimate their own influence. Still, as an intellectual author, one has the duty to clearly say: Wilders is not right, there are many other solutions. I don't know if that helps, but it's the only thing that can be done. -", -2673,2017/3/16,http://www.dw.com/en/scrotum-nailing-russian-artist-pavlensky-opens-up-about-prison-and-new-film/a-37964517?maca=en-rss-en-all-1573-rdf,Scrotum-nailing Russian artist Pavlensky opens up about prison and new film,"Self-mutilating Russian performance artist Pyotr Pavlensky takes an ""incalcuable"" risk with his art. In this DW interview, he reveals how he was treated in prison and why a new film on him reveals ""what is hidden.""","Pyotr Pavlensky and his provocative performances have annoyed the Kremlin for years. Just two months ago, he requested political asylum in France because he was threatened with imprisonment in a camp in Russia for the- alleged sexual assault-of an actress. In 2013, he nailed himself to the Red Square by his scrotum - a performance he called ""Fixation,"" meant to point-a finger at Russian society's listlessness and political indifference. Pavlensky has also in the past sewn his lips shut and wrapped himself in barbed wire in artistic performances. Now filmmaker-Irene Langemann has dedicated a documentary to the Russian artist and writer, entitled ""Man and Might."" It opens Thursday in German cinemas. DW: You're a performance artist, but originally-you studied mural art. When did you change your focus? Pyotr Pavlensky: That was in 2012, a time when Russia's establishment openly tried to instrumentalize art. Of course that happens all the time in Russia, but it was never so apparent. For years, I watched as students in art academies were influenced and brainwashed. I saw them turned into ""service artists."" The Pussy Riot trial gave it a new twist, and as I see my self as an artist and wanted to continue to live and work as an artist, I had to act. It was about me, my life and my art. I did not want to live with the prospect of serving as a kind of ""adjustable screw"" for propaganda purposes. Pavlensky sewed his mouth shut in a 2012 to protest the incarceration of Pussy Riot How did people react to your protest to the Pussy Riot trial, when you stood in front of a church, your lips sewn shut? The passersby were interested in the performance, and wanted to understand what was going on. No one was aggressive;-no one wanted to attack me. That shows how open people are to absorbing what they are shown, and what artists are trying to express. You were imprisoned-and kicked and beaten in jail. Others have died in Russian prisons. Is that a risk you take, or do you believe your status as a well-known artists will protect you? The risks I take are always incalculable. After performing ""Segregation"" [Eds: The artist sliced off part of his earlobe], I should have been declared insane according the logic of the system - or landed in jail. Neither happened. It is interesting if you can't foresee what is going to happen, but concerning my high profile, it is difficult to say whether that is a help-or a hindrance. At the time of my trial before a Moscow court, I was beaten while being transported-to court. These people don't care whether I'm famous or not. The system, and that includes the penal system, is managed in such a way that no one will ever know who beat me. Sometimes the guards even wear masks. And because I'm famous, I was often separated from the other inmates-and kept in solitary confinement. The punk band Pussy Riot taped your performance in the church-and ran away. You never run. It seems the authorities don't quite know what to make of you. When you sat on the wall of the asylum, they quibbled, no one wanted the responsibility. Does that make you feel you have a certain power over the system after all? The situation with me perched on the wall certainly allowed me to push the authorities into a corner. But on the other hand, physical feelings like cold and pain are very uncomfortable. It's difficult to feel satisfaction when your body shivers with cold and your leg is cramping. Behind bars: Pyotr Pavlensky in court Your performances are radical, but in the documentary, your approach to the police and members of the Russian secret service, the FSB, interrogating you is friendly. It's as if you actually like these people, while at the same time-attacking the system they serve. In the film, it's projected in silhouette. Does this come close to the truth, or is it an expression of the director's artistic freedom? She did a really good job, which was difficult because I was arrested only two months after we'd first met, and she had to find a way to express the situation based on the words and sentences we said. So that's the format she chose, and I would like to stress that it is in fact abstract. If she had used real actors, and you had been able to see-their faces, I would have always thought, does the guy look anything like me? But it's abstract, and I like that. The mood comes across as almost friendly.-Is that really how it was? In reality, it was very tense. There were long stretches of silence. It was a very formal atmosphere: talks between people who won't shake hands. Were there moments when you thought your performance art has an effect that goes beyond being noticed in the art community? My performances aren't aimed at an elite group or at fellow artists, but at the masses. I want to change how society thinks and create a precedent with my performances that I hope will change people's thinking and behavior. Is it true that other inmates started taking an interest in art during your time in prison? My lawyer told me a few inmates started writing back and forth about art. Two of my cellmates were involved;-they were very interested in political art. When I was in pre-trial custody, I would speak about art during the transports. On the other hand, I'm not sure they understand the essence of political art. A few years ago, elections in Russia were heavily rigged. Today, a clear majority supports Putin's policies. Do you find that disheartening? I haven't believed in elections for a long time. They are a tool of the reality that rules. How significant is this film for you? This film is very important for me in particular, because the director managed to reveal what is hidden. She found an artistic way to show what happens in a Russian prison and at court - something the ordinary viewer knows nothing about. -", -2674,2017/3/16,http://www.dw.com/en/xenophobia-has-no-place-in-africa/a-37960726?maca=en-rss-en-all-1573-rdf,Xenophobia has 'no place' in Africa,"After a series of violent attacks on foreigners, South Africans must reflect on their role on the continent. DW's Jane Nyingi thinks that any attack on African ""foreigners"" is an attack on the entire continent.","Are South Africans more Africans or less African than those on the rest of the continent? South Africa is a nation of multiple ethnicities, languages and nationalities. South Africa's status as one of the largest economies in Africa makes it attractive to migrants, some of them seeking greener economic pastures, others safety and security. Government figures state that around two million foreigners live in the country, the majority of them from Zimbabwe, Nigeria, Malawi, Mozambique and Somalia. Experts put the number much higher. The recent xenophobic attacks in South Africa reflect how some South Africans discriminate against fellow Africans. The country's economy relies heavily on migrants, be it to make up for a skills shortage or for cheap labor on farms and mines. After the latest unrest resulted in over 35 shops belonging to immigrants being looted, burned and destroyed in Pretoria and Johannesburg, no African president commented on the incident. No African regional body, be it the African Union (AU), SADC or ECOWAS, released a statement condemning the attacks. This begs the question of whom they speak for. It's common knowledge that like most African countries, South Africa is struggling with unemployment, poverty and equality. South Africa has one of the most diverse economies on the continent. It relies heavily on mining and raw material exports but also on manufacturing and service-oriented job opportunities. The recent decline in the mining sector has exacerbated the issue of unemployment.-Failure by the South African government to address these problems has made its citizen direct their anger on soft targets. Similar xenophobic attacks occurred in 2008-and again in 2015. This latest one is again one too many. The attacks are a reflection of the government's failure to meet the needs of its citizens to whom they only come to when its election time with their make empty promises. In order to ward off unrest due to their own failures, politicians have adopted various tactics. One of them is to create divisions by, for instance, blaming foreigners and whipping up nationalistic feelings. This diverts attention from government misrule and mismanagement. The masses, many of who are hungry, sick and illiterate, are taken in by the government's ploy. A hungry man is an angry man and since anger is emotional and overpowers reason, the smallest provocation can unfortunately result in violence. Jane Nyingi is a producer and host for DW's AfricaLink radio program But the violence has invariably been turned loose on ""others,"" whether the difference is religion, race or nationality. In the end, it is the rich pitting the poor against the poor while wealthy ""others"" are able to avoid the tensions. A recent report found-that foreigners are not a threat to jobs in the country and also contribute greatly to the economy. All South Africans should try and avoid falling into this trap and stop characterizing foreigners in the country as criminals. South Africans should also remember the role other African countries played in the country's struggle for liberation from the shackles of apartheid. Us Africans we need to stop fighting each other. This is the time to unite and work together and make Africa grow. Xenophobia has no place in Africa.", -2675,2017/3/16,http://www.dw.com/en/fifa-veteran-hayatou-toppled-as-head-of-african-football/a-37961937?maca=en-rss-en-all-1573-rdf,FIFA veteran Hayatou toppled as head of African football,Issa Hayatou has been voted out of office after 29 years as president of the Confederation of African Football. He was defeated by Ahmad Ahmad (pictured) of Madagascar.,"At the final of the Africa Cup of Nations in Libreville, Gabon in February 2017, Cameroon beat Egypt 2:1. Sitting in the VIP area was Issa Hayatou, the Cameroonian president of the Confederation of African Football (CAF). He should have been beside himself with joy-at the outcome of the match, but from his demeanor, he appeared to be in no mood to celebrate.------- Hayatou,-one of the last relics of the era of ex-FIFA President-Sepp Blatter, was-facing recurring allegations of corruption, investigations into his rights-marketing activities and a growing clamor against his reelection. At the election for a new CAF president in the Ethiopian capital Addis Ababa,-Hayatou was defeated by Ahmad Ahmad (pictured above), head of the Madagascar Football Association.-Ahmad won the election by 34 votes to Hayatou's 20. Ahmad had-the backing of- Zimbabwean Phillip Chiyangwa, the head of-the Council of Southern Africa Football Associations (Cosafa), Chiyangwa-was a longtime parliamentary deputy for Zimbabwe's- ruling ZANU-PF before he switched to a career in football. Under his leadership, Cosafa has committed itself to voting for Ahmad in Addis Ababa in the election on March 16. ""Ahmad Ahmad is a former minister and sports functionary from Madagascar, a calm and collected individual-who is acquiring growing support and not just in Zimbabwe, but across the whole region,"" said sports journalist Thomas Kwenaite, who reports on corruption scandals in African football for the South African Supersport TV channel and the weekly-Mail & Guardian Kwenaite. Issa Hayatou has been seeking an eighth term as CAF head ""He is promising transparency in African football and wants to open up the CAF's books to public scrutiny,"" Kwenaite added. Alexandre Zandamela, a-sports analyst from Mozambique,-notes that-Chiyangwa has a good network of international contacts and could be very useful to Ahmad. On one recent occasion,-Chiyangwa-drummed up support for Ahmad while taking a swipe at Hayatou. It was ""a stab in the back disguised as a birthday party,""-which left Hayatou very annoyed, recalled Zandamela. ""Chiyangwa had invited numerous African association heads to the-party. It was nothing but a promotional campaign for the CAF candidate from Madasgascar. The guests were influential football functionaries and included the head of FIFA, Gianni Infantino.-Hayatou wasn't invited,"" Zandamela said. Hayatou's influence appeared-to be waning. Now aged 70, he used to be able to count-on the support of the heads of the African national football associations. He has been elected head of the CAF seven times and has held the job since 1988. Age limit Many sports functionaries believed that Hayatou was-no longer up-to the job. Some said-- when he was-out of earshot - that he was-an old man who no longer listened-to other people. But Hayatou had-shown no sign of quitting and an age limit for candidates was recently deleted from the CAF's statutes. Issa Haytou (right) with ex-FIFA head Sepp Blatter ""There was always the rule that a candidate for the post of CAF president should be under-70. But shortly before Hayatou-turned 70, the rules were changed so he could run again,"" Kwenaite told DW. The list of corruption allegations leveled against Hayatou-gets longer by the year. He found himself at the center of attention in the wake of the FIFA corruption scandal. A British newspaper reported that he received $1.5 million (1.4 million euros)-to vote for Qatar when it was selected to host the 2022 World Cup seven years ago. Televison rights He was also alleged to have taken bribes from the sports marketing company ISL. But Hayatou was never short of excuses. ""He admitted that he received the money, but said he didn't want to keep it for himself,"" Kwenaite said. When he was a member of the International- Olympics Committee (IOC),-Hayatou told an IOC ethics commission he had spent the money on festivities marking CAF's 40th anniversary. Even more serious is the scandal surrounding a deal with the French company Lagardere Sports. It involves the marketing of television rights worth around a billion dollars. The Egyptian Football Association says it intends to contest the-deal in court because it represents a massive violation of competition law.-------------------- Alexandre Zandamela said many functionaries quietly distanced themselves from Hayatou a long time ago-but were reluctant-to announce this publicly.", -2676,2017/3/16,http://www.dw.com/en/population-census-exposes-pakistan-s-harsh-realities/a-37964565?maca=en-rss-en-all-1573-rdf,Population census exposes Pakistan's harsh realities,Pakistan is holding its first census in nearly two decades amid tight security. The process is crucial for redrawing the political map of the country grappling with a weak economy and bitter divisions over resources.,"Pakistan's previous national population census was held in 1998 - after being-delayed for-seven years. Now, after 19 years, the South Asian country is holding its sixth census since its independence in 1947 from British rule. The authorities attribute the delays to a lack of funding and administrative inefficiencies, but the real reasons are-far more complicated.- In about 10 years, nearly half of Pakistan's 188 million people are set to live in cities, compared to only a third today. Analyst Michael Kugelman talks to DW about the South Asian nation's major urban challenges. (30.12.2014) More than 100,000 Afghan refugees have been repatriated from Pakistan since July, and thousands more are expected to leave before the end of the year. But they're uncertain about their future in the home country. (16.09.2016) A UNDP report says that Pakistani authorities are negligent about an impending water crisis that is posing a serious threat to the country's stability. Experts say the South Asian country is likely to dry up by 2025. (07.02.2017) A proper census would mean a redistribution of resources among the country's four provinces and the tribal regions governed by Islamabad. Since Pakistan's independence, the smaller provinces --Balochistan, Khyber Pakhtunkhwa and Sindh --have complained of not getting their rightful share as the most-populous province, Punjab, has dominated the economic and political spheres. A new census could initiate a reorganization of electoral constituencies, the redistribution of wealth among the provinces, districts and cities, as well as greater autonomy for the politically marginalized ethnic communities. Also, the 2017 census will shed light on the state of religious and ethnic minorities that have faced discrimination from the government-for the past few decades. The first phase of the census - a weeks-long process - kicked off on March 15 and will end on April 15, whereas the second will last from April 25 to May 25. The final results are expected by the end of July. According to the local English newspaper, ""Dawn,"" around 118,000 ""enumerators"" in 63 districts began the 70-day data-gathering campaign on Wednesday, March 15, amid tight security. ""The security officials, including 200,000 military personnel, will be present to protect census teams but also to ensure households can enter data without being intimidated,"" said Dawn. ""It's a very hectic process, but we are ready for it,"" Nadeem Ehsan, a census official in the northwestern city of Peshawar, told the AFP news agency. ""We had some reservations about security initially, but we were assured about it by the government,"" he added. Rapid urbanization While Bangladesh and India have held regular censuses every ten years for-many decades, Pakistan's failure, or a lack of will to do the same, has pushed the Islamic country into a deep administrative crisis. The census is crucial for a judicious distribution of resources, tax collection, representation in parliament, electoral processes, and dealing with governance issues - including growing urbanization and evaluation of resources for infrastructure development. All of this has been arbitrarily or inaccurately done in Pakistan since the last-population census in 1998. Experts say this has resulted in a chaotic situation in the country with numerous conflicts surfacing and taking root. Urbanization is also having an effect on Pakistan's volatile security situation For example, experts believe that urbanization is posing a great challenge to the country, and without a census, policymakers cannot tackle the issue. According to the 1998 census, the majority of people in Pakistan live in the countryside, with only one-third of the country's estimated 188 million inhabitants currently residing-in cities. But things have changed rapidly in Pakistan, with urbanization-increasing at an annual rate of 3-percent - the fastest pace in South Asia. The United Nations Population Division estimates that by 2025 nearly half the country's population will live in urban areas. Urbanization is also having an effect on Pakistan's volatile security situation, says Michael Kugelman, an expert at the Washington-based Woodrow Wilson Center for Scholars. ""Among those migrating to cities from rural areas are militants displaced by fighting and military offensives in the tribal areas. Cities like Peshawar - site of the horrific school massacre on December 16, 2014 - and Karachi - where an airport was attacked earlier that year - have had a rapid growth of Pakistani Taliban entrants, and both cities have suffered attacks by the group in recent months,"" Kugelman told DW in an interview. ""Another issue is land conflict. Much of-Karachi's-urban violence can be attributed to battles for precious land (often seized for speculative purposes). With more people in the city, there-will be more people scrambling for less land. As land becomes more precious, the stakes will be higher and hence battles for the land could become bloodier,"" the expert added. Afghan immigrants A major concern about the 2017 census raised by Sindh, Balochistan and Khyber Pakhtunkhwa is related to internal migration. It is also unclear how the government aims to tackle the issue of internally displaced tribal people (IDPs). Will IDPs be counted in their native areas or where they are living at present? The ongoing military operations in the tribal areas have triggered massive migration from these regions to the cities. The authorities say that among them are also Afghan militants, whom some political parties want to exclude from the ongoing census. Some political parties want Afghan migrants to be excluded from the ongoing census Millions of Afghans have poured into Pakistan since the 1980s due to a protracted conflict in their country. The second generation of these Afghan migrants has been born and brought up in Pakistan and possesses the country's national identity cards. Islamabad is in the process of repatriating these people to Afghanistan, but it is unclear how the 2017 census will determine their status. The dispute over Afghan immigrants relates as much to the security issue as to demographic politics. Millions of Afghans have settled in the Pakistani cities such as Peshawar, Quetta and Karachi that has changed the demography of these areas. While the Pashtun-speaking political parties and religious groups support Afghan immigrants, many mainstream groups want them deported to increase their political influence in these cities. Last week, the Muttahida Quami Movement (MQM), a Karachi-based political party, demanded in parliament that all Afghan immigrants living in Pakistan be deported to Afghanistan before the census. The MQM parliamentarians said in their resolution that there are some 2.5 million Afghan immigrants living in the country who have become a ""burden on Pakistan's economy."" They also said that the immigrants pose a risk to Pakistan's security. ""In the past few decades, millions of people have migrated to Pakistan from Afghanistan as well as Bangladesh. This has overburdened our cities and have changed their demography,"" Mazhar Abbas, a senior Pakistani journalist, told DW. Is free and fair census even possible? Rapidly expanding population could exacerbate a range of problems in Pakistan Experts worry that the rapidly expanding population could exacerbate a range of problems in Pakistan. The South Asian country has to deal with huge population increases, whereas its water resources and housing are-already hard pressed. Experts say that the working age population will increase by 70 million in the next 20 years, which seems almost unmanageable for authorities. It is hard to imagine how Pakistan can address its daunting development challenges from education to electricity generation, as well as solve its numerous political conflicts and militancy, if it continues to pay scant attention to the crucial issue of population growth. The 2017 census can at least provide the necessary statistics with which the authorities can begin to address these problems. But the clash of political interests among provinces and different ethnicities, as well as the corruption in government departments and ministries would hardly allow a fair population census in the country. Experts say the census counting is likely to be manipulated to suit the interests of Pakistan's powerful groups --both civilian and military �?and will continue to impede the progress of the country.", -2677,2017/3/16,http://www.dw.com/en/kraftwerk-s-plagiarism-lawsuit-could-go-to-european-court/a-37964372?maca=en-rss-en-all-1573-rdf,Kraftwerk's plagiarism lawsuit could go to European court,Two seconds of a Kraftwerk song were sampled without permission in 1997. When does plagiarism begin? The case brought by the iconic German electropop band has returned to Germany's highest court - but may not stop there.,"Deliberations begin on Thursday-at Germany's Federal High Court of Justice (Bundesgerichtshof) in Karlsruhe over the plagiarism case brought by electronic ensemble Kraftwerkagainst German music producer Moses Pelham. The point of contention are two seconds of beat from Kraftwerk's 1997 title ""Metall auf Metall"" (Metal on Metal), sampled and re-used by Pelham in 1997 in the release ""Nur mir"" (Only Me) with rapper Sabrina Setlur. Pelham had not asked Kraftwerk for permission to use the material. Kraftwerk co-founder Ralf H��tter submitted the case to court and prevailed in a 2012 verdict by the Federal High Court of Justice. The band's intellectual property rights had been violated, the court ruled. In May, 2016, that decision was,-however, overturned by Germany's Constitutional Court (Verfassungsgericht), citing an overly severe restriction of artistic freedom in the earlier decision. By sampling pre-existing musical material, Moses Pelham was doing what most hip hop producers do The case has now been re-submitted to the Federal High Court of Justice, which has been instructed to revise its 2012 ruling to interpret anti-plagiarism law in conformity with individual creative rights. Occupying the German justice system for nearly 20 years, the case over two disputed seconds of musical material may seem petty, but is being watched closely internationally. The stakes are high because the-question at hand is far-reaching: When is plagiarism plagiarism - particularly in the digital age? The net of litigation may in fact now be cast even wider, if the court agrees to first submit the case to the European High Court of Justice in Luxembourg. In recommending that-step, the justices of the Constitutional Court acknowledged the fact that copyright infringement is no longer strictly under national jurisdiction, but has international implications. rf/kbm (with dpa) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yjvo", -2678,2017/3/16,http://www.dw.com/en/several-injured-in-school-shooting-in-france/a-37965101?maca=en-rss-en-all-1573-rdf,Several injured in school shooting in France,A 17-year-old reportedly armed with a rifle has been arrested near a school in the south of France following a shooting. The mayor's office says the incident was not terror related.,"At least eight people were injured in a shooting at a high school in the southern French town of Grasse on Thursday, according to -Interior Ministry spokesman Pierre-Henry Brandet. Police and local authorities said the headmaster was specifically targeted in the attack on Alexis de Tocqueville high school. A 17-year-old student armed with a rifle, two handguns and two grenades was arrested after the shooting, an unnamed police source told Agence France-Presse.- Conflicting reports said there was either one or two suspects on the run. The Grasse town hall said in a statement, ""two pupils shot at the principal.""- Local officials told AFP that several students sought refuge in a nearby supermarket ""which created panic and rumors of an attack."" ""The other pupils have been asked to stay in the school and not panic,"" local officials said. French broadcaster BFM showed residents gathered around the area, along with several police cars and emergency vehicles.- Residents told Associated Press that some students had been able to leave the school. A nearby retail employee told AP police had asked residents to stay indoors.- All schools in the town, which is 40 kilometers (25 miles) west of the Riviera resort of Nice, were locked down, education authorities said. Education official Emmanuel Ethis urged parents not to travel to the school, saying that ""pupils are safe."" The French government released an alert via smartphone in the wake of the shooting.- Authorities released a smartphone alert relating to the attack -- Interior Minister Bernard Cazeneuve cut short a trip to the northern Somme area due to the shooting as well a letter bomb blast at the offices of the International Monetary Fund in Paris on Thursday. The education minister was also on her way to the school. In 2012, an extremist from Toulouse, Mohamed Merah, shot dead three children and a teacher at a Jewish school in his city before being killed by police. France is in a state of emergency following the deadly attacks in Paris in 2015 and-last year in Nice, which is 40 kilometers (25 miles) south of Grasse, a town with a population of about 50,000.- aw/ (AFP, dpa, AP, EFE, Reuters, LUSA)", -2679,2017/3/16,http://www.dw.com/en/brazilian-wandering-spider-alert-shuts-down-german-supermarket/a-37960872?maca=en-rss-en-all-1573-rdf,Brazilian wandering spider alert shuts down German supermarket,"The most-venomous spider in the world often catches a ride on shipments of bananas, causing panic when they are found. A German tabloid was once offering a cash reward for anyone who could spot one.","Ever been told by your doctor it's time to eat less meat? Perhaps it's time spiders cut back too. Sex is a serious business for arachnids, and male spiders are often eaten by the female after mating. So spiders have had to develop strategies to help pass on their genes. The males have found a work-around. (21.09.2016) Monday is World Rat Day. DW takes a look at why the rodents are so unpopular, where the widespread disgust for them originated and the moments when rats have done some good. (03.04.2016) Christie's is dressing up for Halloween: A huge bronze spider will be watching over the US auction house as of October 31. The upcoming sale of the artwork could set a world record for a sculpture by a female artist. (28.10.2015) A spider alert shut down a German supermarket on Wednesday night. Police and firefighters sealed off the building after a customer discovered several spider cocoons on bananas in the fruit department of a Globus supermarket in the town of Simmern. Authorities were worried the cocoons could be filled with the dangerous Brazilian wandering spider, the police chief of operations said on Thursday. The aggressive species of spider is widely believed to be the most venomous in the world. They can grow to 15 centimeters (5.9 inches) and often hide inside banana plants. Their neurotoxic venom can lead to paralysis and asphyxiation. Their apparent presence in banana shipments, whether actual or suspected, often causes panic in European supermarkets. This four-spotted-ichneumon wasp likes to spend the cold winter in caves, mines and cellars. It needs a frost free environment to survive the winter. By selecting this insect to be the ""cave animal of 2017"" Germany's speleologists want to highlight the fact that there are many different species who need access to such structures when they retreat underground. Germany's arachnologists put their focus on this cute creature: Many of us have likely met the walnut orb-weaver spider at some point - around the garden or house. It loves to dwell in old masonry or in the bark of old trees or dead wood. Its cobwebs are large and beautiful: up to 50 inches in diameter. The reptile of the year has only tiny remnants of legs, which are hardly visible. That's why many people think it is a snake - and often even kill the creatures. Blindworms are defenseless but not blind. The name derives from Old High German and refers to the shiny - metal like scaly dress. It's reflections ""blind"" the observer. The tawny owl is the bird of the year 2017. It usually nests in holes of trees or buildings. It's favorite environment are forests with old trees. That's why Germany's environmental protection association NABU selected the bird to advocate the protection of old parks and forests. By the way: tawny owls can also be found nesting in some barns. That doesn't make them barn owls, though. ...that the owl doesn't catch you. At this time of year, the hazel dormouse is in hybernation. But, when it gets warmer, it will enter the limelight as the ""wild animal of 2017"". The German Foundation for Wild Animals selected the cute little rodent because it is an endangered species. The German Sport Fishing Association decided to name this creature fish of the year. The flounder is highly mobile, roaming around the seabed of the Baltic and North Sea - and beyond. Fishermen want to alert the public to the pollution of the sea as well as to dangers to the species by underwater construction, which restricts its freedom of movement. The Wild Bee Register chose this mining bee for 2017. Andrena hattorfiana mining bee is the perfect ambassador to show the world we need to make our landscapes more bee-friendly, the jury said. Not only is the lower body of this solitary bee coloured red - so are its packs of pollen, which it collects exclusively from certain flowers: Knautia arvensis, Scabiosa columbaria and Centaurea species. The territory of the mantis is moving farther north. While looking meditative, this insect has some scary habits - like the female eating its husband after having had sex - a sort of dowry. The panel, however, decided to name it the ""insect of the year"" in order to honor this ""fascinating representative of it's species"" and to ""debunk prejudice."" Germany's odonatologists selected the common clubtail as ""dragonfly of the year"". The insect represents a whole group of dragonflies which need bodies of running water as a habitat. Just 20 years ago, the species was listed as endangered. Now it is doing better - proof, that measures to renew and protect tiny streams and rivers have had some lasting effect. The pale clouded yellow does not really look pale, does it? And also the clouds are difficult to find. Anyway, it is the butterfly of 2017. This species loves blossoming meadows. Its favorite dish are flowers of alfalfa and clover. The main enemy of this butterfly is intensive agriculture with monotonous plants. Author: Fabian Schmidt Cash reward In 2016 a supermarket was shut down in the German state of Lower Saxony after a wandering spider was discovered in a shipment of bananas, causing panic. In February supermarket workers in the Bavarian town of Bayreuth found a 10 centimeter wandering spider in a shipment of bananas. In November 2016 in Rotenburg. In 2014 German tabloid Bild was offering readers a 250 euro (US$270) reward for capturing a photo of the deadly spider. In September last year notorious British tabloid ""The Sun"" reported dozens of the spiders invaded a family home after hitching a lift on a bunch of bananas from their local supermarket. It claimed the spider's bite could cause an erection lasting four hours. In 2005 a Brazilian wandering spider hiding in a shipment of bananas bit a man in England, who was treated and survived. All clear In this case, an expert from the local zoo looked at the specimen and decided it wasn't a Brazilian wandering spider, just a local variety, and the supermarket was reopened. Local police thanked the institutions which quickly helped in its identification. aw/rt (dpa)", -2680,2017/3/16,http://www.dw.com/en/blast-at-imf-paris-offices-when-letter-opened/a-37964229?maca=en-rss-en-all-1573-rdf,Blast at IMF Paris offices when letter opened,"A 'homemade' letter bomb has exploded in the Paris offices of the International Monetary Fund, injuring a secretary. IMF chief Christine Lagarde has described the incident as a ""cowardly act.""","The French news agency AFP said an IMF Paris employee suffered burns to her hands and face while opening a letter that exploded. Staff were evacuated from the complex as a ""precaution,"" said a police source quoted by Associated Press. Armed police and soldiers converged on the area, in a chic district of western-Paris.- Paris police chief Michel Cadot said the device was homemade, like a ""big firecracker."" Police had searched all four floors of the building, Cadot added. Lararde described the incident as a ""cowardly act"" Lagarde: 'Cowardly act' Visiting Germany, IMF head Christine Lagarde described-the incident as a ""cowardly act of violence."" The explosion ""caused injuries-to one of our staff,"" Lagarde said. French President Francois Hollande said authorities would do-all they could to find those responsible. Source unclear It is unclear who sent the-letter to the IMF offices in-western Paris, near the Arch de Triomphe.-The World Bank has offices in the same compound.- The IMF has its headquarters in Washington. IMF frontage in Avenue d'lena, near the Arc de Triomphe France remains in a state of emergency after a string of deadly-Islamic extremist attacks over the past two years. Scare in Berlin Thursday's Paris incident followed a scare at-Germany's finance ministry on Wednesday.- In that case, an explosive-filled envelope was discovered in the ministry's mailroom and defused. German police said they believed that that letter had been sent from Greece. Officials in Athens said they could not verify a claim by a leftist militant group that it had sent the envelope to Germany. ipj/rt-(Reuters, AP)", -2681,2017/3/16,http://www.dw.com/en/europe-s-far-right-takes-succor-from-wilders-success-in-dutch-poll/a-37959146?maca=en-rss-en-all-1573-rdf,Europe's far-right takes succor from Wilders' 'success' in Dutch poll,"Many had seen a win for far-right Geert Wilders in the Netherlands as a harbinger of elections in France and Germany this year. Despite his clear loss, populist figures around Europe claimed a 'partial victory'.","Wilders' Party for Freedom (PVV) fell flat on Wednesday night winning just 20 seats, well beaten by Mark Rutte, the incumbent center-right prime minister. Despite the defeat, many far-right and populist parties - riding a wave of support since Brexit last summer and Donald Trump's win in the US presidential election - have heralded Wilders a success. - European leaders breathe easier as Rutte routs Wilders - Election night: as it happened Russia: 'Europe-weakened' Konstantin Kosachev, chair of the Foreign Affairs Committee in the Russian parliament, wrote on Thursday that Europe had been ""weakened"" by the elections in the Netherlands. ""French Presidential candidate Emmanuel Macron and German Chancellor Angela Merkel might be able to breathe for the time being after the victory of Rutte. But the panic and fear among the established European elites facing the challenges of the 21st century remain palpable,"" Kosachev posted on Facebook. ""An election in a single EU country does not change the problems."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xs0l Russian hackers allegedly targeted the Netherlands as a ""warm up"" for elections in Germany and France this year,-DW reported earlier this month. The Dutch secret service (AIVD) revealed that foreign countries,-in particular Russia, had tried to hack-into about 100 email accounts of Dutch government employees.- Meanwhile, after security experts established that the Netherlands' electoral software was outdated, the Ministry of Home Affairs decided that all ballot papers be counted by hand. France: 'a success even though Wilders lost' The secretary general of France's far-right National Front party, Nicolas Bay, on Thursday said he was ""encouraged"" by gains for the anti-Islam and anti-EU Wilders, saying it was a ""success even though Wilders lost."" ""It's a real success,"" -Bay told France Inter radio, highlighting the rise in the number of seats won by Wilders' party from 15 to 20 and calling it a ""partial victory even if not the final victory."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YZH1 Rutte's figures, he said, had been boosted late in the campaign by a standoff with Turkey in which his government had refused to let Turkish government politicians stage rallies in the Netherlands, where many Turkish expatriates live. Opinion polls show far-right Front National leader, Marine Le Pen winning the first round of France's presidential election in April, but then losing a decisive head-to-head vote in May.- Le Pen wants to curb immigration and take France out of the eurozone if she wins the French presidential election on April 23 and May 7. Turkey: 'no difference between the social democrats and fascists' ""Now the election is over in the Netherlands...when you look at the many parties you see there is no difference between the social democrats and fascist Wilders,""-Mevlut Cavusoglu, Turkey's foreign minister, said at a rally on Thursday. The minister then claimed ""religious wars will soon begin"" in Europe,-despite the defeat of-Wilders. ""All have the same mentality. Where will you go? Where are you taking Europe? You have begun to collapse Europe. You are dragging Europe into the abyss,"" he said. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZG5U Wilders had sought to capitalize on a diplomatic row between the Netherlands and Turkey-during his election campaign, leading a small protest outside the country's embassy and calling President Recep Tayyip Erdogan a ""dictator."" A dispute over political campaigning for an April constitutional referendum in Turkey-has intensified since a rally to be held in Rotterdam was cancelled last weekend. Erdogan and senior ministers have called the Dutch government ""fascists"" and ""Nazis,"" while EU leaders have called the allegations offensive and ""detached from reality."" Germany: 'spirit right, tone wrong' ""I can not hide the fact that we wanted the PVV and Wilders to have had a better result,"" the leader of the populist Alternative for Germany (AfD) Frauke Petry told the German press agency DPA on Thursday. ""Wilders addressed the right issues in the election campaign and thus pushed the other parties a little way forward. But he might not always have had the right tone. Citizens want a clear message, but they are afraid of a hard tone,"" Petry said. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yw6p AfD had been surging in the polls last summer, but with six months to go before German elections it has faded. A regular poll of German voters puts its support at 11 percent - down from 16 percent last summer, and other polls have put support as low as 8 percent. It needs more than 5 percent of the vote to win seats in parliament. The huge influx of migrants Germany experienced in 2015 and 2016 - arguably the biggest single issue to boost AfD's vote - has largely dropped off the radar as the numbers of new arrivals have declined. Voters weary of Angela Merkel after 12 years in office, who may have been leaning toward AfD, also have a fresh option in Martin Schulz, who became the Social Democrats' candidate for chancellorship in January. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZIyc UK: 'a-revolution against global governments' Marine Le Pen was interviewed by the former euroskeptic Ukip leader Nigel Farage on LBC radio on Wednesday evening. Farage praised Le Pen, saying she had ""a connection with the French people"" and asking her why she felt she was the best candidate in the field. Earlier in the day, Farage told Fox Business: ""If I had said to you four years ago that Geert Wilders would be virtually neck and neck with the prime minister, you would've have said I must have been smoking something funny."" ""You know the fact that he's there neck and neck shows you the amazing advances that have been made,""-said Farage. ""I think through the Netherlands, through the French elections, etcetera, you will see a continuance of this revolution against global governments.""- Farage-said a win by-Le Pen ""would be as big as Brexit or Trump.""- jbh/rt (dpa, Reuters)", -2682,2017/3/16,http://www.aljazeera.com/news/2017/03/france-wounded-grasse-school-shooting-170316124616400.html,France: 'Eight wounded' in Grasse high school shooting,"At least eight people wounded in high school shooting in town of Grasse, interior ministry spokesman tells local media.","Several people have been wounded in a shooting at a high school in southeast France, according to officials. Schools in the small town of Grasse were placed under lockdown after Wednesday's incident at the Tocqueville high school, Emmanuel Ethis, the regional educational chief,-said on Twitter. One 17-year-old pupil armed with a rifle, two handguns and two grenades was arrested after the shooting, police sources told news agencies.- Interior ministry spokesman Pierre-Henry Brandet told BFM TV that eight people had been wounded, and advised families to remain patient as police took control to stabilise the situation. Local emergency services also advised residents to stay indoors. The Grasse-Town Hall said the incident was not ""terrorist"" related. More to follow. Source:-News agencies", -2683,2017/3/16,http://www.aljazeera.com/news/2017/03/ahmad-replaces-issa-hayatou-african-football-chief-170316113650420.html,Ahmad replaces Issa Hayatou as African football chief,"Ahmad Ahmad becomes president of Confederation of African Football (CAF), beating Issa Hayatou who served for 29 years.","Madagascar's football chief, Ahmad Ahmad, was elected president of the Confederation of African Football (CAF)-on Thursday, ousting veteran leader Issa Hayatou after 29 years in office. Ahmad won the election in the Ethiopian capital by 34 votes to Hayatou's 20, official results showed. ""When you try to do something, you mean that you can do it,"" Ahmad told reporters after the vote. ""If I can't do it, I never stand."" Ahmad, a 57-year-old father of two, had a playing and coaching career before he took the reins of the Madagascar football federation in 2003. His rare and determined bid for ""change"" at the head of the CAF this year took many by surprise and the incumbent was seen as the favourite. Hayatou headed CAF since 1988 and is a senior vice president of FIFA. He has been credited with increasing the number of African teams at the World Cup and bringing in extra finance for the continent's competitions. Source:-News agencies", -2684,2017/3/16,http://www.aljazeera.com/news/2017/03/parcel-exlosion-imf-paris-office-wounds-employee-170316131122671.html,Parcel explosion at IMF's Paris office wounds employee,"'Homemade device' goes off at world lender's office in French capital, wounding one staff after opening package.","An employee of the International Monetary Fund (IMF) was injured on Wednesday when a booby-trapped parcel-exploded at the organisation's Paris office, according to police. The device appeared to be ""a firework, or a big firecracker, at any rate something more or less handmade, and certainly not in any way a bomb"", Paris police chief Michel Cadot told reporters near the scene of the incident.- Al Jazeera's Natacha Butler, reporting from the French capital, said the letter was sent by regular post to the head of IMF's European bureau. ""According to police statements, the letter was opened by the bureau chief's assistant when it exploded, wounding her face and her eyes. She's been quite badly injured by the attack,"" Butler said. IMF chief Christine Lagarde said the organisation was ""working closely"" with French authorities to investigate the incident. ""I condemn this cowardly act of violence and reaffirm the IMF's resolve to continue our work in line with our mandate,"" Lagarde said. French President Francois Hollande said authorities would go ""all the way"" to find those responsible. Source:-Al Jazeera and news agencies", -2685,2017/3/16,http://www.aljazeera.com/indepth/features/2017/03/russia-resolve-conflict-libya-170316094138550.html,Can Russia resolve the conflict in Libya? Barbara Bibbo,Moscow is trying to become an arbiter between Haftar and Sarraj and position itself as an indispensable negotiator. By,"Russia is ready to step up its support of rebel factions in Libya's eastern region and get a foothold in North Africa, but it will not deploy its military there, Russian analysts say. The Kremlin is adamant about establishing itself as a mediator in the Libyan conflict and regain its former influence on the Arab country, in a bid to contain both the Western ambitions and the Islamic State of Iraq and the Levant (ISIL) group's threat in the North African region, Kremlin insiders told Al Jazeera. However, they said that at this stage Moscow may not have the financial or military capabilities to play anything more than an indirect role in support of its Libyan ally, renegade General Khalifa Haftar. READ MORE: What is Russia's endgame in Libya? As the Libyan National Army loyal to General Haftar regained control of the two oil ports of Ras Lanuf and Es Sider early this week, news reports-suggesting Russia has deployed private military contractors in security operations near Benghazi, an area under Haftar's control, have been denied by Russian official sources. Russia's support for Haftar, who has refused to acknowledge the UN-backed Tripoli Government led by Prime Minister Fayez Sarraj, has frustrated Western attempts to implement a political solution that would include all Libyan factions, including Islamists, in a power-sharing deal. Relying on sponsors such as Russia, Egypt, the UAE and France, Haftar has succeeded in creating a stalemate that has gradually eroded Sarraj's chances of governing the country under the label of the Libyan Political Agreement (LPA) signed in 2015. ""Russia's relationship with Haftar is the result of a very simple equation. Russia backs Egypt, Haftar's main supporter,"" said Pavel Felgenhauer, a Moscow-based military analyst.-""General Haftar has declared war on terrorism and this coincides with Russia's main objective in the region: wiping out the terrorist threat posed by the Islamic State,"" Felgenhauer told Al Jazeera. Felgenhauer confirmed reports that Russia is using military contractors in Libya, saying that it is part of a consolidated trend in recent conflicts. He added that outsourcing the military fight helps avoid a political backlash at home. If Russia, Egypt and others continue to support Haftar, there is no way out of the crisis ""?It's tragic how we are just seeing foreign players repeating the model of many other civil wars, whereby they formally endorse a peace agreement but work under the table to undo it. Nezar Krikshi, a Libyan analyst based in Turkey ""Russia is not sending its troops to help Haftar and is unlikely to do so in the near future. We are rather relying on private military contractors and mercenaries. We are already using contractors in Syria, where they are suffering serious losses, because they are doing the real fighting instead of Russian servicemen. Private contractors are very convenient because they have no political strings attached."" Felgenhauer said the employment of private contractors has been facilitated by a new legal framework aimed at regulating Russian private military companies. In addition to limited financial resources, Russia cannot afford outstretching its military or financial capabilities at a moment when Moscow is involved in other strategic conflicts on its doorstep. ""Contractors are cheaper [than servicemen] and we need to use our financial resources as best as we can. With the conflict in Donbass simmering, Crimea, the war in Syria still under way, Russia doesn't have the appetite or the resources to go into Libya,"" Felgenhauer said. ""Russia is keen on establishing a foothold in Libya and have some influence there, but committing resources is a different matter."" Asked whether Russia was already supporting Haftar financially and militarily, Felgenhauer said Russia was ready to trade with Haftar but would not offer its help for free. ""Russia may provide weaponry, military training, logistical support, but we would seek some sort of compensation. Haftar has an oil income and Russia may be ready to trade."" The same discourse applies to Egypt, the Kremlin's main ally in the region. Asked to comment on Russian media reports that the Kremlin was negotiating the opening of a military base on the border with Libya, Felgenhauer didn't deny the reports. He said Egypt asked for enormous economic aid in exchange for allowing a Russian military base on its soil. ""We are ready to sell [""�] to Egypt, as much as they are ready to buy. But not for a military base. We have other strategic interests in the Arctic, the Caucasus, Central Asia. President [Fattah el-] Sisi will have to compete with other priorities in Russia's defence spending,"" Felgenhauer said. Russian analysts agree that Russia's support for General Haftar has been dictated by its concerns about the spread of ISIL on Europe's doorstep and its intent to set up a broad anti-terrorism coalition. In addition, Moscow is seeking to play a mediating role in Libya that would allow it to establish a privileged relationship with the country's leadership in its future dealings. On March 3, Moscow invited Fayez Sarraj to a two-day visit to Moscow, where he met Russian Foreign Minister Sergey Lavrov and a representative of Haftar's camp. According to Sergey Strokan, a political commentator at Kommersant, the meeting was a turning point in Russia's strategy in Libya. ""Moscow is now able to communicate with both sides directly and play a pivotal role in the future of the conflict. An outcome that Western leaders may not have welcomed but they formally acknowledged Russia's role as potentially useful to solving the stalemate in Libya,"" Strokan told Al Jazeera. ""Moscow has been successful in imposing strongman Haftar as an indispensable player. And Russia is officially sitting at the negotiating table, after Syria, now also in Libya."" OPINION: ISIL's gains in Libya and the case for intervention President Vladimir Putin's veiled ambition is to re-establish a Soviet-style presence in the Middle East and North Africa, while taking advantage of the void left by the United States in the region, where Arab leaders have consolidated the perception of a political disengagement by the White House in the region. Moscow is trying to become an arbiter between General Haftar and Sarraj and position itself as an indispensable negotiator, an investment on its future role in the region that comes with limited investment, the Russian analysts agreed. ""We are doing the same in the case of Egypt and Turkey, Israel and Iran. We talk to those who do not talk to each other. Is it a strategy that will pay off? I don't know, but that's the blueprint,"" said Felgenhauer. Sergey Markov, director of Russian Institute of Political Studies and a pro-Kremlin voice, provided a very different perspective of Russia's intentions towards Libya. ""Libya is a camp for Russia's confrontation against NATO. Toppling the former regime has been a foolish move that has sent into motion the collapse of all the states in the North African continent. Russia has considered this an act of aggression,"" Markov said. ""Russia has felt obliged to intervene into the conflict and will try to do so to its advantage, although I don't think there is a defined strategy towards Libya right now. Speaking to Al Jazeera, Markov said Russia's main concern is the possible spread of ISIL on large sections of Libyan territory, with its potential devastating consequences for Europe. ""Haftar is the most secular figure in Libya right now and it was obvious for Russia to bet on him, given also Egypt's support."" But Libyan analysts say Russia has a simplistic vision of the reality on the ground in Libya and by endorsing Haftar or imposing a negotiating model, they won't go too far. Six years after the ousting of former leader-Muammar Gaddafi, the country is a failed state in which anarchy reigns. Divisions are not just between the east and the west of the country, there are many more players and centres of power within the country's tribal tissue. Nezar Krikshi, a Libyan analyst based in Turkey, said foreign powers on both sides of the conflict should stop fuelling sectarian tensions and work around the UN-backed LPA, the only legitimate legal framework now available.- ""If Russia and Egypt and others continue to support Haftar there is no way out of the crisis ""?It's tragic how we are just seeing foreign players repeating the model of many other civil wars, whereby they formally endorse a peace agreement but work under the table to undo it,"" said Krikshi. ""The LPA is not perfect, but it is the only thing we have right now."" Krikshi said Libyan public opinion is deeply divided over who to support, as distrust towards all the players involved, foreign and domestic, has sunk in, making a political solution more and more unlikely. However addressing the people's basic needs is essential to reignite some of the people's hope into the capability of the UN-backed government of Sarraj to overcome the political and economic crisis, he said. Source:-Al Jazeera", -2686,2017/3/16,http://www.aljazeera.com/indepth/features/2017/03/eu-hijab-ruling-affect-muslim-women-170316073040916.html,How does the EU hijab ruling affect Muslim women? Nihad El Aabedy,Muslim women from four different European countries share their views on the European Court of Justice's ruling. By,"The European Union's top law court ruled on Tuesday that employers-are entitled to ban staff from wearing visible religious symbols --a decision some said was a direct attack on women wearing hijabs at work. The European Court of Justice said it does not constitute ""direct discrimination"" if a firm has an internal rule banning the wearing of ""any political, philosophical or religious sign"". The court gave a judgment in the cases of two women, in France and Belgium, who were dismissed for refusing to remove their hijabs, or the headscarf worn by many Muslim women who feel it is part of their religion. Al Jazeera spoke to four women for their views on the ruling. 'It means choosing between my right to choose how I dress and my right to work' Nadia Khedachi is a 25-year-old volunteer for the Forum of European Muslim Youth and Student Organisation and a member of Muslim Students in France. There is this obsession with the headscarf in France. Now, this ruling means that - in the country that is known for its love of freedom and feminism - there is still work to do on building an inclusive feminism that protects all women. As a Muslim woman, I feel that this ruling will make my everyday life even harder instead of protecting and reaffirming my rights. I see this ruling as a direct threat to my wellbeing in my own country. Currently, some political parties in France are thinking of banning the headscarf in the public space and in universities, so we cannot think this is a step forward. Hate speech affecting ethnic and religious minorities will rise, hate crimes targeting Muslims will rise. I am a French national and have just finished my studies and I am currently looking for a job. I graduated with two master's degrees but, like many, I am looking to set up abroad because of the lack of opportunities in France. Indeed, if I ever had the chance to get a job interview with a French company, I know that the question of the headscarf will be raised during the interview. I will either have to remove it, or take the risk of losing the job opportunity. In other words, it means choosing between my right to choose how I dress and my right to work. Either way, life has become more stressful than it should be, and I sort of feel a ""stranger at home"". It is because we are too integrated that we are seen as a problem. In the past, Muslims would not be expected to go to university or even be visible. I think this decision is just feeding the already existing discriminatory practices and giving it legal support. This also speaks to a bigger issue, the visibility of the Muslim woman. Are we not allowed to be visible? Will our visibility be criminal? When performing a job, neutrality requires that the employee provides customers with the same service - no matter who the customer is or what they are wearing. Neutrality is this common space where we all - whether atheist, agnostic, or believers - live together with our differences and it needs to be preserved as such. But my real question is: what is neutrality? And how far does it go? If it means stopping being me, then how can we make neutrality compatible with togetherness and respect? Denying women rights to work because of their clothing cannot be compliant with the democratic and inclusive European societies we want. It should be clear, now more than ever, that it is not possible to achieve or claim the liberation of our bodies with a rhetoric that limits. Racist logic does not free - it submits. 'The European Court of Justice has chosen to protect companies instead of citizens' Warda El-Kaddouri was the UN Youth Delegate for Belgium in 2015 and 2016. When my youngest sister decided to wear a hijab at the age of 18, the feeling that overcame my parents was one of fear: Fear for their child not to be accepted; to be burdened by her choice; to be deprived of her educational and professional opportunities; even to be verbally or physically attacked in public - which actually happened. Empowerment of women, to me, means having the freedom to make your own decisions about your own body. Today, this only seems to be the case for women choosing to wear less, not for women choosing to wear more. If I want to consider wearing a hijab, I want to be able to do that without having to fear losing my job. My capacities and talents as a person do not change by wearing a piece of chiffon on my head. I have seen veiled young women taking rejection after rejection after rejection for internships or jobs on the basis of their hijab. I have seen how they slowly slipped into a mental state of demotivation and alienation - even depression. How can we demand women take something off in order to participate in society? Being able to work is a crucial factor of social participation, and thus of integration. Instead of making the labour market more accessible to ethnic and religious minorities and to women - two socially vulnerable groups - we choose to create more obstacles for veiled Muslim women. Why should a woman take off her veil in order to receive equal opportunities? The principle of neutrality is understood differently in different countries. Whereas a Sikh can wear a turban as part of a police uniform in the UK's multicultural society model, a Muslim cannot wear a hijab in a public function in France's laicised society model. Belgium is somewhere in between these two models. I believe an individual wearing a religious symbol does not necessarily compromise the neutrality of the state as an institution as long as the public servants work according to the rules of the particular state. I would even go as far as arguing that visible religious diversity is in fact the very outcome of a neutral state. The forced absence of religious symbols, such as the hijab, cannot be neutral as the Flemish right-wing parties proclaim. Belgium has also not been immune to the extreme right-wing populist and nationalist parties in Europe. Politicians, public intellectuals and opinion-makers making racially prejudiced and stigmatising statements have been the rule rather than the exception. The ruling enforces already existing bans on religious symbols in public institutions such as schools and city halls in Belgium. Therefore, the political parties on the extreme right feel justified to continue their business as usual. Muslim women who choose to wear a hijab already know in advance that their job opportunities are limited. I cannot think of a socially more vulnerable group than veiled Muslim women with a migration background, as they can be discriminated against on the basis of their ethnicity, gender and visible religion. The new ruling has given companies a legal way to get rid of the hijab. The European Court of Justice has chosen to protect companies instead of citizens. The psychological impact on European Muslims in general cannot be underestimated. Against the background of an increasingly hostile political atmosphere, my peace of mind relied on the judicial pillars of democracy. Being a woman of colour, I assumed that - even in the worst case xenophobic scenarios - I could always fall back on the legal system to protect my basic human rights. Now, I am not that certain any more. I can see the same fear in the eyes of my Muslim family members, my colleagues, my friends."" 'Neutrality is an illusion' Aya Sabi is a 21-year-old Dutch writer and columnist. Although the ruling was applied to all faiths, it started with an incident with a headscarf and in practice we see that this law especially affects Muslim women wearing a headscarf and people from the Sikh community. The headscarf bothers people because people have in their head a very defined image of Muslims and Islam which [for them] is terrifying ... Employers are afraid of losing their customers, maybe even afraid of the headscarf, which is why the principle of neutrality is established. But neutrality is an illusion. ""Neutral"" is actually another word for ""normal"", what we accept as OK, and everything outside of that is not OK. Today [the ruling suggests that] these are Muslims, they are not OK, not normal, and don't belong here. In other words, they are not home. If you are served by a woman with a headscarf, whether she sits at the counter, or works with you, or teaches you, she is first and foremost a woman who has chosen that morning to cover her hair as [a decision about] her body first. And since her body is first and foremost hers, no one has the right to question that choice, let alone prohibit her."" 'For Muslim women a headscarf is not an accessory; rather, it is a part of their belief' Ilknur Kucuk is a 38-year-old writer of Turkish origin. My 11-year-old daughter once asked me: ""Mama, shall I leave Germany to study wearing a headscarf, as you did to leave your home country to study?"" I said ""No honey, in Germany you will be able to study and work with a headscarf. Don't worry."" But today I'm not sure if she can do so. I had to leave Turkey because of the headscarf problem 20 years ago to be able to study wearing a headscarf. I am one of the people who had difficult times due to religious belief. I find the decision of the European Court of Justice, which allows private companies to ban ""the visible wearing of any political, philosophical or religious sign"", as a very crucial decision. The judgment comes as some European countries, such as the Netherlands, France, and Germany, are in a critical election season. In recent years - along with [far-right populist] Pegida [Patriotic Europeans Against the Islamisation of the West Patriotic] - Germany's far-right party the Alternative for Germany [AfD] became more and more popular. Overall, the rise of far-right parties or movements can't be stopped. In such a situation I consider the ruling of the European Court of Justice more political than legal. For Muslim women a headscarf is not an accessory; rather, it is a part of their belief. So, just like one's ethnicity, it can't be changed or replaced. The headscarf ban will keep Muslim women out of jobs and business. If we look at supporters of the headscarf ban in Germany, we will see that most of them are people who don't have deep insights into Islam and Muslims. For example, I had German neighbours who never visited a Muslim family. When we became closer they asked me so many questions about Islam and Muslim women. After a while they said ""We recognise that actually, until now, we didn’t know Muslim people."" Unfortunately, the headscarf ban will make the over four million Muslims living in Germany more discriminated against. In the future I will continue to write and fight for our rights. All views have been edited for clarity and length. - - Source:-Al Jazeera News", -2687,2017/3/16,http://www.aljazeera.com/indepth/opinion/2017/03/dutch-elections-populist-revolt-170316084819251.html,,,"Not a populist revolt American or British style, but fragmentation Israeli style. That is the result of March 15 elections the Netherlands. The country is not heading for the ""Dutch Spring"" that Geert Wilders, the leader of the staunchly anti-Islam, anti-immigration and anti-EU Party for Freedom (PVV) had predicted. There is not going to be a European Union referendum, let alone a Nexit. Instead the Netherlands is heading for probably the most complicated coalition formation in living history. The result will be a government of at least four parties, making the kind of tough and unpopular decisions that face the country more difficult than ever before. This could come back to haunt the parties now celebrating their victory. This was the first general election in a Western country since the United States President Donald Trump was elected president and the United Kingdom voted to leave the EU. For once, foreign media took an interest in the Netherlands and descended in great numbers on the country, lured by opinion polls promising a neck-and-neck race between Wilders and the incumbent Prime Minister Mark Rutte. Had Wilders come first, the narrative of a ""populist wave sweeping over the West"" would have been vindicated. Only 30 years ago the Netherlands was a byword in much of the world for tolerance and liberalism. The psychological effect of the PVV being the biggest party in the country would have been huge. A Wilders' victory would also have boosted Marine Le Pen's campaign to become the next French president and take her country out of the EU. Though the exact results are still to come in, Wilders ended up with no more than around 14 percent of the vote. Indeed, if 1 percent had gone the other way Wilders would have ended fourth rather than second. The big story coming out of this Dutch election, then, is the further and possibly final disintegration of the two parties that have dominated Northern European politics since World War II: The Christian Democrats and the Social Democrats. That coalition government will probably take a long time to form and will comprise at least four parties. As the Israeli experience shows that is a recipe for stagnation since there will be one coalition partner objecting to tough decisions and threatening to walk out. - Thirty years ago the Dutch Labour Party and the Christian democrats still had more than two thirds of the vote between them. This time the Labour Party and the Christian Democrats did not even get one third of the vote taken together. In their place have come a wide range of parties. There are now two green parties in the Netherlands, one pro-EU and one anti. There are two left-wing parties, the decimated Social Democrats and the now much bigger Socialist Party. There is a single issue party for senior citizens and two parties for strict or even fundamentalist Christians. This election also saw the breakthrough of a populist party for immigrants, DENK. It is led by two Dutchmen of Turkish descent who use the same kind of conspiracy theories and personal attacks on opponents that served Trump so well. The question is now who will govern. Unlike the US, the UK or France, the Netherlands has a system of proportional representation, meaning that the 21 percent of the vote garnered by the VVD of incumbent Prime Minister Mark Rutte translates into 21 percent of the seats in parliament. In other words, the Dutch do not elect a prime minister or president. They elect a party which will then try to form a coalition with other parties - not even once in the past century has a single party won an absolute majority. That coalition government will probably take a long time to form and will comprise at least four parties. As the Israeli experience shows, that is a recipe for stagnation since there will be one coalition partner objecting to tough decisions and threatening to walk out. That said, two likely options present themselves: There could be a ""right-grey"" coalition of centre-of-right parties plus the single-issue party for senior citizens. There could also be a ""right-green"" coalition, bringing in the election's biggest winner, the Green Party led by Jesse Klaver. OPINION - Dutch elections: What is the Wilders effect? The man all the foreign journalists had come for, Wilders, did not look happy after the results came in and he had every reason not to. Many Dutch observers believe Wilders has peaked and is unlikely ever to get beyond 20 percent. Since all other parties have excluded forming a coalition with him, Wilders is going nowhere. On the other hand, Wilders has never shown any serious inclination to actually govern anyway. Unlike Marine Le Pen in France he is not building an actual movement, preferring to keep tight control over the party Wilders is himself the only member of. Wilders' electoral programme for 2017 was nine bullet points long. Number two said: ""Netherlands independent again. So out of the EU"". Number seven: ""No more money to development aid, wind turbines, art, innovation, the public broadcaster and so on"". Until very recently there seemed to be a real possibility of Wilders' PVV party becoming the biggest in the country. But alas, the polls were wrong - again. Only this time they overestimated rather than underestimated support for the populist option. Joris Luyendijk is a Dutch non-fiction author, news correspondent, and talk show host. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2688,2017/3/16,http://www.aljazeera.com/indepth/features/2017/03/fight-survive-rohingya-refugees-bangladesh-170313091106782.html,A fight to survive for Rohingya refugees in Bangladesh Naushad Ali Husein Maliha Khan,"In cramped and unhygienic camps thousands of refugees face disease, hunger and uncertainty about the future. By By Hundreds of Rohingya killed Underground aid Life at Balukhali Risk of disease 'One day at a time' Searching for work Seeking the light of education","Balukhali, Bangladesh - Hafiz Shafiq's infant son has been crying all night. He has been suffering from diarrhoea for the past two weeks, and now he has developed a fever and is vomiting. The seven-month-old's condition is deteriorating and with no medical facilities in the camp for Rohingya refugees where his family lives in Bangladesh's Balukhali township - about 45km southeast of Cox's Bazar - there is nobody to help. Doctors Without Borders (MSF) runs a free clinic nearly 7km away in Kutupalong, but most of the refugees at Balukhali, including Shafiq, prefer to consult unqualified locals who act as doctors. A tense Shafiq, who does not know his age but thinks he is between 22 and 25, pleads for money to take his son to one.- IN PICTURES: Chased from Myanmar, unwelcome in Bangladesh ""I never thought I'd be in a position to ask a stranger for money,"" Shafiq says. He opts to consult Khorshad Alam, who works as a private doctor in a room at the back of a chemist shop off a narrow alleyway in Kutupalong Bazar - a market mainly frequented by the Rohingya community. The one-room clinic has two beds, both of which are occupied by women receiving intravenous drips. The doctor's lips and gums are stained red from chewing betel nut. His prescription states that he has received Local Medical Assistant and Family Planning (LMAF) training. But according to Bangladeshi law, LMAF medics are not considered qualified to prescribe medication. Still,-Khorshad prescribes four types of medication for baby Shahid and administers two injections. Seven months ago, when Shahid was born, Shafiq was living comfortably with his parents, and running his own shop in his home village of Bodibazar, in Rakhine state,-across the border in Myanmar . Although the Rohingya have lived in Myanmar for centuries, they were stripped of their citizenship in 1982 effectively rendering them stateless. Their movement is tightly restricted by the authorities. - More than 90,000 Rohingya Muslims have fled Myanmar since October when the military launched a crackdown against what it called Rohingya insurgents after an attack on an army post. Since then hundreds of Rohingya civilians have been killed. The United Nations has accused Myanmar's military of committing crimes against humanity. ""They burned homes, and went around raping women in our village,"" says Shafiq. ""They torched my shop."" ""They hate any marks of Islam - my beard, my cap, my dress,"" he adds. Fearing for his life, Shafiq crossed the Naf River with his wife and son in November, leaving his parents and business behind. Thousands of other refugees have also found their way to makeshift camps along the border areas, in places such as Kutupalong, Nayapara and Leda in Cox's Bazar, a major city in southern Bangladesh. As refugees continue to pour in, many have been directed to the Balukhali camp, which has been set up near salt fields and offers little protection from harsh weather conditions and wild animals. This is not Shafiq's first time in Bangladesh. From the age of six, he attended an Islamic madrasa in Cox's Bazar. He only left three years ago. Educational institutions in Myanmar are segregated and, since the outbreak of violence against Rohingya in 2012, members of the community have not been able to attend university. It would take him an hour and a half to reach his school in Bangladesh from his village in Myanmar, Shafiq explains. ""My village is five minutes from a point where we can cross the border - it was usual for people to cross back and forth,"" he says. REPORTER'S NOTEBOOK: Rohingya camps in Bangladesh and Thailand, worlds apart But when Shafiq crossed this time, it was to live in a hut in the Balukhali camp built by his uncle, who left Myanmar years ago. Many other refugees are not as fortunate - too poor to build a hut, they live under tarpaulin in the woods. Rohingya refugees have been living in Bangladesh since the 1970s. Estimates of the total number vary from 300,000 to 500,000. Most of the refugee camps are located off the Teknaf-Cox's Bazar highway that runs along the Naf River that separates Bangladesh and Myanmar. Balukhali camp has ballooned to accommodate many of the recent arrivals, while many older refugees have moved out of the camps to live as undocumented immigrants within Bangladeshi communities. Every fortnight, the World Food Programme (WFP) gives 25kg of rice and fortified food to the most vulnerable Rohingya families in the camps. It also runs a supplementary programme for young children and pregnant and lactating women, while the MSF regularly conducts immunisation campaigns among the children. But the WFP only recently began distributing food at Balukhali. They say they will now do so every 15 days. In February, an aid ship from Malaysia delivered supplies, -some of which reached the Balukhali camp. The refugees say they have been receiving food rations through unofficial channels. ""We get about 5kg of rice every few days,"" explains Shafiq, adding that he doesn't know where it comes from. The Bangladeshi government has strongly discouraged the distribution of aid to Rohingya refugees and- banned three NGOs from doing so, saying that it will encourage more to cross the border. When approached by Al Jazeera, both the interior and the foreign ministries declined to comment on this. ""Any truck containing aid is turned back at the Morichya checkpoint [a checkpoint along the highway where the refugee camps are located], unless they have express approval from the government,"" says social welfare activist Abul Kashem, who regularly organises shipments of aid to the camps. ""We have to tell the authorities that the material is for locals. That is the only way they allow the trucks to pass."" A WFP official told us on the condition of anonymity that it took much effort on the organisation's part to obtain the government's approval to distribute aid to Rohingya. But as the refugee numbers swelled, more official aid did start to trickle into the camps. READ MORE: Who are the Rohingya? ""The International Organization for Migration distributed blankets, soap, torches, water pitchers and other basic supplies to each family,"" explains Shafiq, who recalls how ""the mood at the camp was very happy"" when that happened. When I first visited Balukhali camp, which has been built on a recently deforested hill, in the first week of February, there were just over 800 huts. Two weeks later, it had grown to more than 1,700. Locals from a nearby village were selling building materials at the camp's entrance. The huts are made of plastic sheets stretched over bamboo frames. The sand-battered sheets are covered with tree branches and dry leaves to shield them from the sun. Each rectangular hut is about 2.5 metres wide and 3.6 metres long. You must stoop to enter but may just be able to stand upright at the point where the roof is highest. At night, the residents fear that wild animals will enter the camp from the adjacent forest. ""We moved our house a few days ago because we were scared of the elephants,"" Shafiq says. Until recently, there were no toilets in the camps and men could be seen urinating in the sand. Others would go into the forest for more privacy.- ""I can't even begin to tell you how hard it is to adapt to not having toilets,"" Shafiq says. Toilets have recently been installed, although the refugees say they don't know who provided them. Some credit residents of nearby villages, others say it was religious organisations. But even since their installation, the smell of faeces has intensified as more people arrive at the camp daily. Activist Kashem, who occasionally volunteers for NGOs, believes that there is a risk of a cholera outbreak. Four Rohingya residents, including two children, at Balukhali camp have died of diarrhoea in recent weeks. About a month ago, the NGO SHED distributed water filters to every hut in an effort to contain the outbreak of disease. Before that, the refugees drank water directly from the tube wells installed for them by local residents. Kashem is concerned that the rains, which are still several weeks away, will worsen the already poor hygiene conditions. Almost all of the refugees have friends and relatives who fled before them. Like Shafiq, many fall back on these networks for survival. This is especially true in Balukhali, where most have no means of making a living. ""[The] day before yesterday we had only rice with salt [for lunch], because there was nothing else. Today is a good day, there is tilapia fish and vegetables,"" says Shafiq. But other refugees are facing even greater hardships. Mohammed Hashem, 38, and Noyon Shona, 30, for example, have to take care of their five children as well as four of their nephews, who were orphaned in the latest round of violence in Myanmar. READ MORE: 'High-level UN probe needed for Rohingya' The country's military set fire to the houses in their village, Hashem explains, and the villagers tried to escape whichever way they could. But Hashem's brother and sister-in-law didn't survive. ""My brother was a big man,"" he says. ""He could not escape. He was shot by the Burmese [Myanmar] armed forces while trying to flee."" Hashem is the only breadwinner in his family. He works in a paddy field for about 300 Bangladeshi Taka ($3.74) a day when work is available. But still his family eats only one meal on most days. Shafiq spends most of his time at the newly built mosque leading prayers, teaching children at the madrasa, and delivering sermons. He says his only source of income is a small honorarium he gets as the mosque's imam. An LED light bulb in his hut reveals the special status Shafiq enjoys, as a local villager has shared the electricity from his own solar panel with him for free. The hut is divided by a curtain and Shafiq's wife, Rokeya Begum, joins the conversation from behind it only when she is addressed. Rokeya, 22, endured a difficult pregnancy. She gave birth by caesarean section and required expensive treatment during and following the procedure. Shafiq paid for this with loans, and sometimes cash from friends and acquaintances he has made in Bangladesh over the years. ""I used to feel ashamed, but I can't any more,"" he reflects. Unpacking his blue plastic paan (betel leaf) box, Shafiq laments: ""If I was in Myanmar, I could show you how we honour guests. We always have extra food in the house. We always entertain our guests at home. But right now we're just scraping by one day at a time."" Being in close proximity to a port, construction sites and salt fields, the refugee camps in Kutupalong, Nayapara and Leda offer better opportunities for the refugees to earn a living. The main road passing through the Leda camp is a bustling bazaar, with hundreds of shops run by refugees. But Balukhali is isolated and there are few work opportunities here. There is one main grocery store run by a resident from a nearby village, and a few tea stalls, which are also mostly run by villagers. A few of the refugees help out in local people's houses, but most must rely on finding work as labourers on farms. Jamal Hossain, 18, and Ezhar Hossain, 25, (who are not related) have to travel from the camp to Cox's Bazar for work. It's a gamble, because they may or may not get work at the end of it. For the past five days they have been fortunate to have found work in paddy fields. Between the two of them, they were paid 1,200 Taka ($15) for a day's labour. But they had to spend nearly half of it on travel as it costs around 280 Taka per person for a round trip to Cox's Bazar. ""If we don't get work one morning, we have to spend out of our pockets to get back home,"" explains Jamal. Even though the security forces do not formally restrict the movement of Rohingya, Shafiq says they often endure targeted searches at checkpoints. ""If they find out a person is Rohingya, they'll search their things, and often harass them."" The Myanmar government announced on February 15 that it had ended its military operation against the Rohingya. ""I have been in constant contact with my parents and siblings, and they are safe back home,"" says Shafiq. But, despite the hardships in Bangladesh, Shafiq and Rokeya are not planning to return home. ""We will stay where the chances are best to educate our son,"" says Rokeya. ""I want him to learn all different subjects, and not be limited,"" says Shafiq. There are no schools in Balukhali. The madrasas teach only Islamic studies and the language of instruction is limited to Arabic. There are no options for children to learn Bengali or English. The primary schools at the camps in Kutupalong and Nayapara are restricted to registered and older refugees. But even if Shafiq's son were to somehow gain access to one of those schools, anything beyond primary level will be legally impossible if the current situation prevails. Government schools only admit those with identification documents, which only a handful of Rohingya refugees are able to procure. Through his work at the mosque and madrasa, Shafiq has become popular with residents of the nearby villages. He hopes one of them will eventually be able to help him enrol his son in a school. ""A cleric from Feni invited me to go back with him, and said that he could help me,"" he says. ""Right now he [Shahid] is young. When he is older, I want to educate him. It is the only way he will be a man."" In January, the Bangladeshi government proposed relocating the Rohingya refugees to a remote island in the Bay of Bengal. Shafiq says people at the camp believe that the government won't force them to leave. ""If it's a nice place, people would go, but we've heard that it floods and that it's not quite habitable."" Source:-Al Jazeera News", -2689,2017/3/16,http://www.aljazeera.com/news/2017/03/zealand-river-world-legal-person-170316091153248.html,New Zealand river is the world's first 'legal person',"Under legislation passed, the Whanganui river has been formally declared a living entity.","A New Zealand river revered by the Maori has been recognised by parliament as a ""legal person"", in a move believed to be a world first. Under legislation passed on Wednesday that combines Western legal precedent with Maori mysticism, the Whanganui river has been formally declared a living entity. ""[It] will have its own legal identity with all the corresponding rights, duties and liabilities of a legal person,"" Attorney-General Chris Finlayson said. ""The approach of granting legal personality to a river is unique."" The river, known by Maori as Te Awa Tupua, is the third longest in New Zealand. Finlayson said the local Maori iwi, or tribe, had been fighting to assert their rights over the river since the 1870s, in New Zealand's longest-running legal dispute. ""This legislation recognises the deep spiritual connection between the Whanganui iwi and its ancestral river,"" he said. It deems the river a single living being ""from the mountains to the sea, incorporating its tributaries and all its physical and metaphysical elements"". In practical terms, it means the river can be represented at legal proceedings with two lawyers protecting its interests, one from the iwi the other from the government. The iwi also received an NZ$80m ($56m) settlement from the government after their marathon legal battle, as well as $30m to improve the river's health. Source:-News agencies", -2690,2017/3/16,http://www.aljazeera.com/indepth/interactive/2017/03/budget-increase-defence-spending-170316100757491.html,US budget to increase defence spending,US President Donald Trump's first budget shows big jump for defence spending and steep reductions for aid and health.,, -2691,2017/3/16,http://www.aljazeera.com/indepth/opinion/2017/03/hijab-work-eu-court-authorising-discrimination-170316082810334.html,,,"On March 14, the European Court of Justice ruled that when it comes to the workplace, the ban on the wearing of ""any political, philosophical or religious sign"" such as headscarves need not constitute direct discrimination. But it can only be enforced if there are existing company rules requiring all employees to ""dress neutrally"". It cannot be based on the wishes of a customer, it added. Or, to put it in practical terms, it paves the way for a de facto prevention of Muslim women who wear the hijab from enjoying fully the activities and benefits of the workplace. The ruling comes against the backdrop of rising anti-Muslim hatred across Europe, a rising amount of anti-Muslim violence, and elections in the Netherlands and Germany in which far-right voices are promoting a belligerent stance against minorities. And let's not forget the US President Donald Trump's Muslim ban. The ECJ ruling was slippery. An internal employer-led rule banning religious symbols is acceptable in pursuit of the aim of ""neutrality"". But an external customer's wish not to deal with staff wearing religious symbols would not give the right to the employer to force the employee to remove the symbol. The ruling further explained in a contradictory fashion that despite the fact that a customer's wishes could not be taken into account, the employer could move an employee with a religious symbol away from interacting with customers. Further, the employer needed to offer such alternative opportunities. The ruling limits visibly religious people - and especially Muslim women - to being behind-the-scene roles, excluded or not fully enjoying the opportunities of the workplace and self-fulfilment. It is likely that such roles will carry less responsibility and less prestige. It will push such individuals into roles that fulfil neither their potential nor aspiration. Yet the backdrop to this is that Europe is already grappling with the fact that its company boards hugely under-represent women and minorities. In a paradoxical move, this will instead hide away minorities, especially Muslim women. OPINION: On Muslims, swimming lessons, and European secularism Of course, minorities of other backgrounds will be swept up with this ruling. Jewish men who wear yarmulke will be affected, and there is undoubtedly growing anti-Semitic violence. Sikh men who wear turbans may suffer too. Hate crimes against minorities are also on the rise. The ruling implicitly accepts the idea that discrimination is acceptable, as long as lots of people are discriminated against equally. Which hardly seems in line with a European project that rose from the ashes of a war that had hatred at its very heart and whose aim was to create peace and prosperity between diverse populations. The Open Society Justice Initiative, a group backed by the philanthropist George Soros which had supported the women whose cases triggered the ruling, said it was disappointed. A statement said it ""weakens the guarantee of equality that is at the heart of the EU's anti-discrimination directive [""�] The supposed 'neutrality' is really discrimination, making the false claim that employers who allow staff to wear the headscarf are in some way not neutral."" French presidential candidate Francois Fillon said that it was ""an immense relief, not just for thousands of companies but also for their workers"". Fighting for women's rights and recognition in the workplace is an ongoing mission and this ruling should be seen very much as a blow for the movement as a whole. - People who wear crucifixes or headscarves will wonder about the emotional insecurities of such companies and individuals whose very mental wellbeing seems threatened by someone's necklace or pashmina. The Conference of European Rabbis, with a membership of more than 700 Jewish leaders across Europe, said Europe was sending a clear message that its faith communities were no longer welcome. We know that securing employment is already harder if you have a Muslim or minority ethnic name. A recent BBC study put this at three times harder in Britain. The UK's Women and Equalities Committee did a study into Muslim employment last year and found that Muslim women suffer a triple penalty in the workplace, for being ethnic, Muslim and female (PDF). In France, a 2014 CV testing showed that a Muslim woman wearing the hijab when applying for a job had a 1 percent return rate, while in Belgium 44 percent of employers agree that wearing a hijab can reduce a candidate's chances, according to a report by the European Network Against Racism (ENAR). European politicians have been proclaiming the need for Muslim women to become more integrated into society. READ MORE: What the hijab means to me Former UK Prime Minister David Cameron announced funding for English language lessons for Muslim women to push for great integration and employment. There was no evidence to suggest language is an issue, but there is plenty of evidence that employment discrimination is a big factor in Muslim women's progress. The ECJ ruling adds another barrier to an already difficult journey Muslim women face in the workplace. The fact that this ruling affects Muslim women disproportionately should not be lost on women in general. Fighting for women's rights and recognition in the workplace is an ongoing mission and this ruling should be seen very much as a blow for the movement as a whole. Women who support this ban should take a good hard look at how women's rights are intimately tied to rights of minorities. It's a universal truth that those who wish to target minorities will not be shy of extending their oppression to women too. Women's workplace dress is always political. Take the case of a UK company that sent home a woman for refusing to wear high heels. It was rightly criticised and an ensuing national debate discussed how we need to move away from singular traditional ideas of femininity and in particular to ensure that women do not suffer disproportionate discrimination because of their gender. The same applies to Muslim women's clothing. The cloth of the headscarf - unlike crucifixes or yarmulkes - has no inherent religious meaning. READ MORE: Bake-offs, hijabs and attacks against Muslim women in the UK A woman who had experienced chemotherapy might wear it. Or a woman of West African heritage who wears a traditional headcover may or may not be Muslim. But it would only be the Muslim woman who would be penalised, again punished for her religious identity. Another area to consider is the gender pay gap. Even the already dismal disparity often fails to highlight how women of minority backgrounds experience an even bigger gap. Being further pushed out of roles which allow for progress and decision-making within companies will further increase the pay gap that Muslim women suffer. The other red herring is the issue of neutrality and secularism. These notions should not be as such rulings suggest about the erasure of identities and freedoms in the public space but rather about fair treatment. Neutrality is about allowing everyone to have the greatest chance to live up to their highest aspirations, not pandering to the lowest common denominator of homogeneity, which only serves to crush our brightest sparks. This is a disappointing ruling by the ECJ which feels more motivated by the political climate than the fair treatment, rights and long-term inclusion of different expressions of European identity and in particular of European womanhood. Our hope now rests with employers who understand the importance of diversity. Not only is demonstrating respect for their diverse employees and allowing them the freedom to express their religious identity the morally right thing to do, it is also the means to creative and commercial success. Shelina Janmohamed is the author of Generation M: Young Muslims Changing the World and Love in a Headscarf. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2692,2017/3/16,http://www.aljazeera.com/indepth/features/2017/02/paying-donald-trump-border-wall-170221095041473.html,Who is really paying for Donald Trump's border wall? Massoud Hayoun,Beyond the sensationalism over who will pay for the wall many are already paying dearly - on both sides of the border. By On the US side of the border Environmental effects Ecological implications A 'low-intensity conflict zone',"Tijuana, Mexico/San Diego, United States - Former Mexican President Vicente Fox made international headlines when he-tweeted to US President Donald-Trump, ""Mexico is not going to pay for that f****** wall."" But beyond the sensationalism over who's going to foot the bill for Trump's project --reportedly set to cost as much as $21.6bn, local businesses say they are already paying dearly. On the Mexican side, shops usually crowded with tourists are empty. ""People are afraid to come,"" said Elia, 48, who estimates that her business has decreased by 60 percent amid Trump's talk about the wall. ""I would like to hit him with this one,"" she said shaking a baton she uses to reach merchandise sitting high up on her store shelves. ""He's crazy."" Sebastian Alexis, 16, sells woven ponchos, Frida Kahlo memorabilia, terracotta pots, papier-mache statuettes and other traditional Mexican goods at wholesale prices. He used to have many customers from the United States who bought his items as souvenirs or for resale across the border, he explained. ""[But] the action for the wall has made less people come,"" Alexis added. A string of pharmacies in the city centre that usually sees a constant flow of foot traffic from US citizens looking to supplement expensive healthcare with cheap pharmaceuticals were also suddenly empty. ""We won't have problems [with business]. The problems will be on the other side of the frontier. Medicine is expensive there, not here,"" said Arturo Roya, 54, one of the pharmacy workers. Another nearby pharmacy worker, Esteban Ochoa, 64, estimated that his business had decreased by ""20 percent because of the proclamation"". Ochoa said he is concerned for people over the border in the US without the means to pay for healthcare. ""It's possible that people won't be able to survive. There are many people who come here who can't afford medical care there,"" he explained. Less than a kilometre from Tijuana, in the US city of San Diego, Sunil Gakhreja, the owner of Sunny Perfumes, says that nearly all of his business comes from Mexico. Days before Valentine's Day, this is typically his busiest season. Mexicans come here to buy in bulk and resell American perfumes at higher prices in Mexico. ""You see: in the past 10-15 minutes, hardly any customers come in,"" he said. ""I don't even check my books. There's no point getting more depressed."" People are afraid to cross the border. ""Like even when I cross, I don't know when I'm coming back,"" added Gakhreja, who is an American of Indian descent whose wife and children are Americans of Mexican descent. Uncertainty in other facets of American life has meant that ""everyone is holding their money,"" he said. Trump ""is a businessman; he should think about business first"". Gakhreja worries that this is a sign of things to come for his business. ""Basically, we are going to see another recession,"" he speculated. As he talks, a young woman comes in and purchases a $2.50 bottle of perfume and leaves. One Mexican American store owner on the US side of the border began to grant Al Jazeera an interview, but then asked not to go on the record, saying that he feared retaliation from the authorities and citing the Trump administration's stance on Muslim American immigrants and the press. Compounding the potential human suffering caused by-Trump's proposed wall and deportation projects, activists say, are potentially catastrophic environmental effects. The sudden growth of Tijuana's population means more waste and pollution. In Scorpion Canyon, where Haitian migrants James* and George* live in a makeshift migrant shelter, a population spurt has put sudden pressure on water and other resources in the area. There is no rubbish collection in these parts of Tijuana as they are difficult for rubbish collection trucks to access, notes social justice advocate and longtime Tijuana resident Susan Smith. Rubbish dots the walkway from the canyon back to the pavement. On the dirt road, a malodorous fire burns in the distance. Many migrants complain of a lack of toilet facilities and access to water. In 2010, the United Nations General Assembly voted to recognise access to water and sanitation services as a human right. It is one that these people are denied. One man who had been deported from the US and who spoke to Al Jazeera on the streets of Tijuana's Northern Zone complained that he did not have anywhere to wash or go to the toilet. Similar to US cities-which-struggle with rampant homelessness,-such as-San Francisco, find a build-up of human excrement in the streets, the same exists in a Tijuana confronted with a suddenly larger homeless population. Environmentalists expressed their concerns over the ecological implications of the wall. ""Trump's proposed border wall would be devastating for people and animals that have migrated for centuries across the-US's southern border with-Mexico,"" said Monica Embrey, senior energy and climate campaigner at international environmentalist organisation Greenpeace. The president of environmental non-profit Defenders of Wildlife, Jamie Rappaport Clark, has issued a statement saying that the wall would ""bisect and isolate iconic southwestern landscapes and push vulnerable borderland species, such as jaguars, Mexican grey wolves and ocelots, to the brink of extinction"". Rebecca Hinojosa is a Tejana - a Mexican American from Texas - community organiser with the Texas Sierra Club, whose own family has lived at the border between the US and Mexico for generations. ""From one end of the border in Tijuana, California to the other end in Brownsville, Texas, over 37 federal laws that protect indigenous peoples, our environment and wildlife must be waived and ignored in order to create a pathway for the border wall,"" she said via email. ""The violence of the wall includes severing a wildlife corridor for endangered species and seizing poor people's land by eminent domain. Border walls also often act as hazardous dams. Rainfall washes plants and trash against the metal pillars and the water pours downslope into poor communities that are already without drainage infrastructure,"" she added. Hinojosa, like many in Tijuana, cites past precedent with the existing border walls when discussing the potential ramifications of Trump's bid. ""In 2008, the section of wall that bisects the Arizona/Sonora border backed water up to over six feet deep; two people drowned and residents suffered millions of dollars of damage. Border communities, from Tijuana to Rio Grande Valley of Texas, experience generational poverty and yet the Trump administration is fixated on spending billions of dollars for walls that do nothing but act as monuments to racism."" By a section of the wall not far from where Alfredo,-who lives in a shelter for deportees on Tijuana Beach,-and dozens of other migrants sleep, social justice advocate Smith shows Al Jazeera new additions made to the wall under the-Obama administration and what they have done to her city. RELATED - Living on the edges: Life in the colonias of Texas ""The wall is always being updated and repaired,"" she said. Last year, lighting and access roads were carved into the landscape. ""You could do laser light surgery with the lights. Blinding lights."" Beyond the grating on the American side, peeking out from the darkness at night, as Smith speaks to Al Jazeera, US Border Patrol vehicles are parked or idling with their headlights on at various points across the barrier. In certain parts, where the headlights show through grating, they are almost ghostly. Helicopters occasionally circle overhead. READ MORE: Donald Trump doubles down on deportation plan It already looks, Smith says, like a ""low-intensity conflict zone"". It remains unclear what Tijuana with a new border wall will look like. Smith, who is a Buddhist, worked to erect a monument on the Mexican side of the wall commemorating the signing of the Treaty of Tlatelolco, a nuclear non-proliferation agreement of Latin American states that on February 14 had its 50th anniversary. For her, this is the only construction this area needs. She hopes to plant a tree beside the monument. She hopes that someday, Tijuana families will be able to picnic there. * Names changed to conceal their identities.- This is the third story in a five-part series looking at the US-Mexico wall and the people who live alongside it. If you want to follow this story, please enter your email here Source:-Al Jazeera News", -2693,2017/3/16,http://www.rte.ie/news/ireland/2017/0316/860283-bus-eireann-talks/,Bus ?ireann expected to respond to union letters,,"It is understood that Bus ?ireann management-is likely to respond to letters of clarification sent by unions at the company later on today. Yesterday, unions wrote to the company saying they are prepared to resume talks, provided managerial grades take their 'fair share' of cuts. But this afternoon, SIPTU's transport sector organiser said he was astonished that the company has not responded as yet to written clarifications. SIPTU's Willie Noone is concerned that there may be what he called a ""delay tactic""-to get over the St Patrick's weekend. Dermot O'Leary of the NBRU said it clarified their position yesterday. He said the NBRU feel there is enough in the correspondence for management at the company to come to the table with a view to finding a resolution. But he said if they refuse the olive branch they run the risk of forcing their own staff onto the picket line and creating a massive public transport dispute. He also said the union remains wedded to the view that in order to achieve a resolution to the dispute, all the stakeholders must be involved.", -2694,2017/3/16,http://www.rte.ie/news/politics/2017/0316/860285-st-patricks-day-us/,Taoiseach attends St Patrick's Day event in Washington,,"Taoiseach Enda Kenny has arrived at the Naval Observatory in Washington DC for breakfast with US Vice President Mike Pence, kicking off the St Patrick's Day celebrations. Both the Taoiseach and the Vice President are wearing green ties and have bunches of shamrock pinned to their jackets. Their wives, Fionnuala Kenny and Karen Pence, are wearing green outfits. Both women also have bunches of shamrock. All four paused briefly outside the residence to pose for photographers. It is currently -2C but bright and sunny, and they all commented on what a beautiful day it was. Mrs Kenny said ""thank you for arranging such a beautiful day"", they all joked about how cold it was, and she added ""well at least the shamrock won't wilt"". ""Top of the morning"" says @VP Mike Pence as he hosts a #StPatricksDay breakfast for An Taoiseach. @rtenews pic.twitter.com/ULqOMRrvt1 ""?Caitriona Perry (@CaitrionaPerry) March 16, 2017 ""Ireland and the EU will never be but a friend to the United States"" says Taoiseach @EndaKennyTD at @VP Pence breakfast. @rtenews pic.twitter.com/AJ7dXlwGZw ""?Caitriona Perry (@CaitrionaPerry) March 16, 2017", -2695,2017/3/16,http://www.rte.ie/news/brexit/2017/0316/860230-brexit/,Royal assent granted for Brexit bill,,"British Prime Minister Theresa May has been given the legal power to start Brexit talks after Queen Elizabeth II granted royal assent to the Article 50 Bill. Speaker John Bercow told MPs that the European Union (Notification of Withdrawal) Bill, which was passed by MPs and peers on Monday, had received its final sign off, prompting cheers from the Conservative benches. Mrs May has said she will invoke Article 50, the legal mechanism for withdrawal from the EU, by the end of the month in what will be a ""defining moment"" for the country. This will start the clock on a two-year countdown to Britain leaving the EU and launch the country into what are set to be the most complicated negotiations since World War II. Britain's future trading relationship with the bloc and any exit bill which it may have to pay are both set to be highly contentious issues in the forthcoming negotiations.", -2696,2017/3/16,http://www.rte.ie/news/courts/2017/0316/860212-daithi-douglas-murder/,Teen charged with murder linked to gang feud,,"An 18-year-old man is due in court charged with the murder of one of the ten people killed during the ongoing feud between the Hutch and Kinahan criminal gangs. Nathan Foley, from Rosary Road in Dublin 8, is accused of the murder of Daithi Douglas, who was shot dead in Dublin in July of last year. He was brought by detectives from Kevin Street in Dublin before the Dublin District Court this morning. He was also charged with criminal damage to a car. Mr Douglas was shot dead on Bridgefoot Street in Dublin city in July of last year. The 53-year-old was the ninth victim of the ongoing feud between the Hutch and Kinahan gangs. Detective Sergeant Paul Murphy told the court that Mr Foley made no reply to the charge of murder, or to the second charge of criminal damage to a car on Strand Road in Sandymount three days after the murder. Judge Michael Walsh sent the teenager forward for trial before the Special Criminal Court after he was told the Director of Public Prosecutions had directed the ordinary courts were inadequate for the administration of justice in this case. The book of evidence was also served. Mr Foley is the second person charged with the murder of Mr Douglas. Another man, Frederick 'Freddie' Thompson, who is 36 and from Loreto Road, Maryland, in Dublin 8, was charged last year and is currently on remand in custody.", -2697,2017/3/16,http://www.rte.ie/news/world/2017/0316/860262-france-shooting/,Student held over shooting at school in France,,"Eight people were injured after a shooting at a high school in the small southern French town of Grasse, the interior ministry said. A 17-year old student carrying a rifle, handguns and grenades was arrested, police sources added. ""The individual does not seem to be known by police,"" one source said. A second source said it appeared that two students had opened fire on the headmaster, who had been injured. ""One of the two was arrested and the second fled. There was panic and the students took refuge in the (neighbouring) supermarket,"" said the source. Another police source it was not yet possible to confirm if there was a second shooter. Interior ministry spokesman Pierre-Henry Brandet told BFM TV that eight people had been injured, and advised families to remain patient as police took control to stabilise the situation. The incident comes with France in a state of emergency after several militants attacks over the last year. It is less than six weeks away from a presidential election in which security and fears of terrorism are among key issues. An eye-witness in the school interviewed by France Inter radio said the students had heard a bang and taken cover under the tables. ""I went to close the windows and saw a guy who looked at me in the eyes. He seemed to be a student and not very big. He shot in the air and ran away,"" the student said without giving his name. Local emergency services advised residents on Twitter to stay at home. The government launched its mobile telephone application warning of a ""terrorist"" attack.", -2698,2017/3/16,http://www.rte.ie/news/courts/2017/0316/860268-webster-murder-trial/,Murder trial told accused previously of 'impeccable character',,"The jury in the trial of Roy Webster has been told the 40-year-old was previously of ""impeccable character"" before he beat Anne Shortall to death with a hammer. Defence Counsel Brendan Grehan said Mr Webster had ""cooperated fully"" and had done his best for garda�� once he had admitted to his involvement in her death. Mr Grehan was cross examining the lead investigator on the sixth day of the trial of Mr Webster from Ashford, Co Wicklow. He denies the murder but admits the manslaughter of Ms Shortall, 47, on 3 April 2015. Garda�� also agreed that in interviews Mr Webster had described himself as having lost control and being in a daze at the time of the killing. Recalling interviews with Mr Webster after his arrest, Sgt Fergus O""�Brien said Mr Webster had described himself as ""being in a daze"" when he taped Ms Shortall's hands. Sgt O""�Brien had asked if Ms Shortall has been trying to defend herself. Mr Webster said ""yeah she must have put up her arms at one stage"" but said he was ""in a daze"" and could not recall.- He was unsure if Ms Shortall was dead when he taped her hands, he told garda��. He said ""maybe"" he was taping her hands because she was still alive but as far as he knew he had ""finished hitting her at that stage"", said Sgt O""�Brien. Sgt O Brien had suggested that the right thing to do would be to call an ambulance to which Mr Webster replied: ""I wasn't thinking straight, I wasn't thinking at all at this stage."" Sgt O Brien agreed with defence counsel Brendan Grehan that Mr Webster was trying to explain his behaviour rather than justify it. Mr Grehan said his client had said clearly there was no justification for what he had done but was explaining his state of mind. He has used the word ""blackmail"" when it was put to him that it was ""all for nothing"". Sgt O""�Brien agreed with Mr Grehan that it was fair to say he was describing himself as having lost control. The jury was also told Mr Webster had remarked that ""I wasn't there at the time I'm just trying to figure it out in my own head"". Sgt O'Brien agreed with defence counsel that this was a reference to Mr Webster describing the killing as ""an out of body experience"" and that he was describing his mindset at the time. He also agreed that Mr Webster had been cooperative and ""did his best"" with garda�� from the moment he made admissions in his kitchen. Anne Shortall Sgt O""�Brien also agreed with Mr Grehan that the incident had taken a huge toll on both the Shortall and the Webster families. The jury also heard a statement from Carmel Phibbs, a friend of the Websters who said she was in their house on the day of the killing. She was visiting Sinead Webster when Mr Webster arrived home. Ms Phibbs said he was ""acting completely normal"" at the time. He had a small cut on his arm and said he had been cut by a sharp tile. Ms Phibbs visited their home a second time and she and Sinead Webster took their children to the cinema. She said Mr Webster had returned home having been at the garda station. He told them a woman was missing and he was helping garda�� with their inquiries. The court also heard details of telephone contact between Mr-Webster's and Ms Shortall's phones in the days leading up to her death.- Records show Ms Shortall had phoned Mr Webster's home phone a number of times in the early hours of the morning. Garda��-agreed with defence counsel this was her ""preferred method of contact"" but that the calls were usually followed by text messages. Phone records show phone calls and texts between the two mobile phones on 25 March 2015. On that day there were 11 texts sent between the two phones. On 1 April 20 texts were sent between the two phones most of which were in the early hours of the morning. On 2 April-a phone call was made at 2.43am-followed by a text exchange between the two involving 21 texts. Then on 3-April the final texts between the two phones were a message from Roy Webster's phone to say ""Outside the Leitrim?"" The reply from Ms Shorthall's phone read ""on way"". It was not possible to retrieve the content of any other text messages. Mr Webster had also deleted most of the texts as he went along. The court also heard that Ms Shortall's phone contained records of internet searches for Ashwood kitchens, the cost of an abortion and websites with information on abortion.", -2699,2017/3/16,http://www.rte.ie/news/video/2017/0316/860232-president-st-patricks-day/,President Higgins: St Patrick's Day celebrations a 'source of pride',,President Michael D-Higgins has issued a St Patrick's Day message calling on Irish people at home and abroad to build on their achievements and possibilities. President Higgins said it was a source of pride that the national day was celebrated not just at home but in countless places around the world where Irish people had been able to make their homes. Read in full: English version-| Leagan Gaeilge, -2700,2017/3/16,http://www.rte.ie/news/ireland/2017/0316/860211-cistercian-college/,Roscrea's Cistercian College saved after �1.5m raised,,"Roscrea's Cistercian College, which was set to close in 2018, will remain open after an action group set up to save it raised around �1.5m-to secure its future.- Last month, the Co-Offaly college at Mount St Joseph Abbey announced it was to close after 112 years due to a significant decline in student numbers. The Save Cistercian College Action Group, which was set up to reverse the closure decision, also put forward a plan whereby the college will now accept day borders and five day borders. The school previously only accepted seven day boarders. The plan was accepted by the school's board of trustees. The action group, which is comprised mainly of parents and past pupils, raised around �1m after their four-week campaign to stop the closure.- That money was pledged by-donors for capital investment to develop facilities at the school. The action group, also set up an online survey, and has received over 500 expressions of interest from new pupils planning to enrol at the school. Action Group Chairman Ronnie Culliton said: ""We are looking to the future with great enthusiasm now. This is a wonderful place for young men to be educated, play sport, develop musical talents, and grow friendships that will last a lifetime. ""We are delighted that we can now offer this fantastic opportunity to receive an education grounded in the Cistercian ethos to a greater number of families"". Last month, the school, run by the Order of Cistercians of the Strict Observance (Trappists), said a significant fall-off in student numbers was the main reason for the initial decision to announce the closure of the school. The school had a 45% drop in enrolment in the past ten years with nine first-year students enrolled for September 2017. -The school currently has 167 pupils.- There are currently five religious-run Catholic schools in Ireland that offer boarding facilities, compared to more than 30 such school in 1990. Dom Richard Purcell, Abbot of Mount St Joseph Abbey said: ""This is one of the most joyous days in the history of Cistercian College. We have witnessed a small miracle over the past four weeks. ""The decision to close was an extremely difficult one for the monastic community to make and so we are understandably overjoyed to now be in a position to announce that the college will remain open,"" he said. - ""We have been truly overwhelmed by people's generosity which has ultimately resulted in ensuring the financial viability of the college in the immediate term. ""The hope now is that we can continue this positive work together to ensure that Cistercian College can remain open for a very long time to come,"" Dom Richard concluded. Cistercian College is one of two boys' boarding-only schools in the country.- Past pupils of the college include former taoiseach Brian Cowen and former t��naiste Dick Spring.-", -2701,2017/3/16,http://www.rte.ie/news/2017/0316/860276-tenerife-cable-car/,Tourists rescued by helicopter after Tenerife cable car breaks down,,"Dozens of tourists were evacuated by helicopter from shelters at the top of a volcano on Spain's Tenerife island where they spent the night after being plucked from two cable cars that stopped-mid-air. A total of 111 people, including eight children, were forced to stay at three shelters on Mount Teide, the highest mountain in Spain and a major tourist attraction, cable car company Teleferico del Teide said in a statement. They included tourists who became trapped in two cable cars that stopped working mid-air yesterday roughly 60m from the ground, as well as visitors who were already at the top of the volcano and were waiting to get down. Helicopters, firemen, and park rangers were called in to help with a pulley system to get about 70 tourists who were trapped in the cable cars back to the ground during a four-hour rescue operation. Each was placed in a harness and then lowered through a hatch of the cable car. Many of the tourists who were plucked from the cable cars made it to the base station of the volcano at an altitude of 2,356m on foot despite the rocky terrain, but those with reduced mobility spent the night at the shelters. Four helicopters evacuated the tourists, many wearing shorts and sandals, from the shelters this morning to the base station, an AFP photographer at the scene said. Rescuers also escorted tourists by foot to the base station, where medical staff and psychologists were waiting. ""There is no serious injury, some people were dizzy, had high blood pressure, some scrapes, light injuries,"" a local emergency services spokeswoman said. The tourists who spent the night at the shelters had food and water and were accompanied by emergency services staff, he added. The authorities did not provide details regarding the nationalities of the tourists who became trapped but the AFP photographer said the majority were foreigners, including Australian and British citizens. The peak of Mount Teide, located in the heart of Tenerife in the archipelago of the Canary Islands, is over 3,700m high, offering spectacular views of the island and the stars. The cable car takes visitors up almost to the summit, although the last stretch must be done on foot. It will remain closed until Saturday.", -2702,2017/3/16,http://www.rte.ie/news/europe/2017/0316/860250-letter-explosion-imf/,"Explosion at IMF Paris offices after envelope opened, one injured",,"A letter exploded when it was opened at the offices in central Paris of the International Monetary Fund and one person was slightly injured, police sources said. The Paris police department said on Twitter an operation was ongoing at the offices of the IMF and World Bank after a person was hurt following the apparent explosion of a suspect package. ""An envelope exploded after it was opened and one person was slightly injured in the offices of the IMF,"" one police source told Reuters. The incident, just six weeks before a presidential election, comes as a militant Greek group Conspiracy of Fire Cells claimed responsibility for a parcel bomb mailed to German Finance Minister Wolfgang Schaeuble yesterday.", -2703,2017/3/16,http://abcnews.go.com/Politics/trump-merkel/story?id=46198767,What Trump and Merkel have said about each other,,"How do you say ""awkward"" in German? President Donald Trump is set to appear at a joint news conference today with German Chancellor Angela Merkel after he spent months during the 2016 election campaign bad-mouthing her approach to the refugee crisis in Europe. Trump's tough comments during the campaign about Merkel and what he called the ""disaster"" that Germany had become stood out because he had previously praised her in 2015 as ""probably the greatest leader in the world today."" Here's a full recap of the two leaders""?public statements about one another. Back in August 2015, Trump complimented Merkel in an interview with Time Magazine. The kudos for the German leader came at the expense of U.S. lawmakers, whom Trump was criticizing for financially supporting the Ukrainian government in its fight against Russian-supporting separatists. But just two months later, Trump questioned the chancellor's judgment about Europe's immigration and refugee crisis in a ""Face the Nation"" interview. ""I love a safe zone for people. I do not like the migration. I do not like the people coming. Frankly, look, Europe is going to have to handle -- but they're going to have riots in Germany. What's happening in Germany, I always thought Merkel was like this great leader. What she's done in Germany is insane. It is insane. They're having all sorts of attacks,"" Trump said in the October 2015 interview. The following year, in a campaign speech in Ohio in August, Trump compared his then-rival Hillary Clinton to Merkel and not in the kindest way. ""Hillary Clinton wants to be America's Angela Merkel, and you know what a disaster this massive immigration has been to Germany and the people of Germany. Crime has risen to levels that no one thought would they would ever see,"" Trump said. ""We have enough problems in our country, we don""t need another one,"" the candidate said. Merkel has been fairly restrained overall in the few comments she has made about the president. In contrast, she openly praised Trump's predecessor. Former President Obama included Germany on his final foreign trip in November, saying that Merkel had ""probably been my closest international partner these past eight years."" Merkel thanked Obama for "" a good, friendly and intensive partnership,"" adding, ""It's hard for me to say goodbye."" When the German leader congratulated Trump for his election win, she took the opportunity to offer a bit of a warning. In a letter to Trump the day after the November election, Merkel started by congratulating him and finished by wishing him ""a sure hand, [and] every success."" But in between she worked in some potentially loaded comments. ""Germany's ties with the United States of America are deeper than with any country outside of the European Union. Germany and America are bound by common values ""?democracy, freedom, as well as respect for the rule of law and the dignity of each and every person, regardless of their origin, skin color, creed, gender, sexual orientation, or political views. It is based on these values that I wish to offer close cooperation, both with me personally and between our countries""?governments,"" she wrote. ""Partnership with the United States is and will remain a keystone of German foreign policy, especially so that we can tackle the great challenges of our time: striving for economic and social well-being, working to develop far-sighted climate policy, pursuing the fight against terrorism, poverty, hunger, and disease, as well as protecting peace and freedom in the world,"" the letter continued. Beyond that opening letter, the chancellor has not spoken at length about Trump specifically. She talked to him on Jan. 28 at a time when Trump called a number of world leaders. The White House readout of their call states they ""held an extensive telephone conversation covering a range of issues, including NATO, the situation in the Middle East and North Africa, relations with Russia, and the Ukraine crisis."" The next day, however, Merkel's spokesman delivered her criticism of the first iteration of Trump's travel ban. ""The chancellor regrets the U.S. entry ban against refugees and citizens from several countries,"" spokesman Steffen Seibert, told Der Spiegel on Jan. 29. ""She is convinced that even the necessary, decisive battle against terrorism does not justify putting people of a specific background or faith under general suspicion."" Now Merkel and Trump are set to meet this afternoon and hold a joint press conference at the White House. The session comes after plans for a meeting earlier this week was rescheduled due to the snow storm that hit the East Coast.", -2704,2017/3/16,http://abcnews.go.com/Politics/trump-meet-germanys-angela-merkel-white-house/story?id=46093946,Trump to meet Germany's Angela Merkel at the White House,,"President Donald Trump will meet with German Chancellor Angela Merkel today at the White House ""?the first time the two leaders will meet. Although the U.S. and Germany are close allies, Trump and Merkel disagree on just about everything, from immigration and refugee policies to the future of NATO. The two have very different leadership styles: Merkel is the disciplined, measured statesman; Trump is the boisterous businessman known for going off script. But Merkel has never shied from criticizing Trump ""?when he was on the campaign trail, when he was president-elect and now that he is in office. In November, when he threatened to withdraw from the Trans-Pacific Partnership (he did so days after his inauguration), she said she was ""not happy""?that the agreement ""will probably not become reality.""?In February, the day after he tweeted that the press was the ""enemy of the American people,""?she talked about the importance of the press during a speech at the Munich Security Conference. The FAKE NEWS media (failing @nytimes, @NBCNews, @ABC, @CBS, @CNN) is not my enemy, it is the enemy of the American People! ""I am for a free and independent press and have great respect for journalists. We have had good experiences here in Germany with respecting one another. We discuss divergent opinions but accept freedom of the press as an essential pillar of democracy,""?Merkel said. In the Munich speech, she urged the U.S. to support the European Union. Before the United Kingdom's Brexit vote last June, Trump backed the country's withdrawal from the EU, and after the ""leave""?side won, he predicted other countries would follow suit. In an interview with The Times of London in January, he called the European Union ""A vehicle for Germany.""?Merkel fired back, saying in a news conference, ""I think we Europeans have our fate in our own hands.""?Among the biggest issues to be discussed in today's meeting: immigration and the future of NATO, according to U.S. officials. ABC News breaks down the divide between Trump and Merkel on these hot-button topics. Trump has long blasted Merkel for her policy of welcoming refugees to Germany, including 1 million in 2015 alone. ""I think she made one very catastrophic mistake, and that was taking all of these illegals, you know, taking all of the people from wherever they come from,""?he told The Times of London in January. ""And nobody even knows where they come from. So I think she made a catastrophic mistake, very bad mistake.""?He added that he has ""great respect""?for Merkel. In an August speech on terrorism he compared her policies to those of his then-rival, Hillary Clinton. ""In short, Hillary Clinton wants to be America's Angela Merkel, and you know what a disaster this massive immigration has been to Germany and the people of Germany. Crime has risen to levels that no one thought would they would ever see,""?he said. A report released by the German Federal Office of Criminal Investigation in November 2015 found that refugees committed crimes at the same rate as native Germans. Another study, released in February by the Centre for European Economic Research, found that while there was no ""Crime epidemic""?after the massive increase in refugees admitted to Germany, there were ""muted increases""?in some criminal activities, like ""drug offenses and fare dodging.""?Merkel has defended her policies against claims of increased crime due to refugees. ""We have to look closely at the crime rate among refugees, and the picture is varied. That is also the right answer, that you have to differentiate,""?she said in December. ""the fact that some people want to exploit that is something we have to withstand and defend ourselves against,""?she added. Merkel's spokesman Steffen Seibert was quoted by a German news agency saying she was ""Convinced that even the necessary, resolute fight against terrorism doesn""t justify putting people of a particular origin or particular faith under general suspicion.""? Trump and Merkel spoke by phone on Jan. 29 for the first time since his inauguration, and a joint statement about the call did not mention his executive order on immigration, which suspended the U.S. refugee program and temporarily barred citizens of seven predominantly Muslim countries from entering the U.S. The order was blocked by U.S. courts, and Trump released a revised version in March. During his presidential campaign, Trump put U.S. allies on edge by declaring NATO ""Absolete""?and calling into question whether he would come to the aid of some of the Baltic states if are attacked by Russia. Since those comments, Vice President Mike Pence reassured those allies that the U.S. commitment to NATO is ""unwavering.""?""Your struggles are our struggles. Your success is our success,""?Pence said at the Munich Security Conference. ""And ultimately, we walk into the future together.""?But the administration has not stopped pressing NATO members to pay their fair share. The NATO agreement recommends that members spend at least 2 percent of their gross domestic product on defense. Currently, only five nations meet that goal, and Germany is not one of them, spending only 1.3 percent. ""We will do everything we can in order to fulfill this commitment,""?Merkel said at the Munich Conference. ""But let me add, however, that I believe while NATO is very much in the European interest, it's also in the American interest. It's a very strong alliance where we are united together.""? A U.S. official told ABC News that Trump ""looks forward to talking to the chancellor about how to strengthen the NATO alliance""?and is ""Leartened""?that Germany has agreed to meet the 2 percent goal in the coming years. The official added Trump will ask Merkel about her experience with Russian President Vladimir Putin. ""He's going to be very interested in hearing her insights on what it's like to deal with the Russians,""?the official said. ABC News""?Jordyn Phelps contributed to this report.", -2705,2017/3/16,http://abcnews.go.com/Politics/secret-service-laptop-trump-tower-floor-plans-details/story?id=46204467,"Secret Service laptop with Trump Tower floor plans, details on Clinton email probe stolen in New York",,"A laptop computer containing floor plans for Trump Tower, details on the criminal investigation of Hillary Clinton's use of a private email server and other national security information was stolen from a Secret Service agent's vehicle in New York City on Thursday, law enforcement sources tell ABC News. The agency confirmed that an agency-issued laptop was stolen, but it did not offer details on its contents. ""The U.S. Secret Service can confirm that an employee was the victim of a criminal act in which our Agency issued laptop computer was stolen,"" the agency said in a statement on Friday. ""Secret Service-issued laptops contain multiple layers of security including full disk encryption and are not permitted to contain classified information,"" the statement continued. The agency said an investigation is ongoing and that it would withhold further comment ""until the facts are gathered."" Authorities are still searching for the laptop, according to law enforcement sources. Police expect to quickly identify the suspect from video evidence, the sources said. The computer is encrypted and authorities are able to wipe the hard drive remotely if needed. This is a breaking news story. Check back for updates. ", -2706,2017/3/16,http://abcnews.go.com/Health/wireStory/wheels-spinning-gop-traction-health-bill-46195448,"White House, some conservatives agree on health care changes",,"President Donald Trump and some House conservatives agreed Friday to make changes in the troubled Republican health care bill in hopes of easing deep party divisions over the overhaul plan. But other conservatives expressed continued opposition and it remained uncertain that party leaders had won enough support to push the high-profile measure through the House next week. After a White House meeting between President Donald Trump and around a dozen House Republicans and late night telephone talks, a leader of one group of House conservatives said he and others were now backing the legislation. The bill would kill much of former President Barack Obama's 2010 health care law and create new tax credits and curbs on Medicaid, the federal-state health care program for lower-income people. ""I want everyone to know I'm 100 percent behind this,"" Trump said at the White House. Lawmakers said the two sides agreed to additional restrictions on Medicaid that states would be allowed to choose. They said states could impose work requirements on some recipients and decide to accept a lump-sum federal payment for Medicaid, instead of an amount that would grow with the number of beneficiaries. ""We're a yes. We're excited to be there,"" said Rep. Mark Walker, R-N.C., leader of the Republican Study Committee, a large group of conservatives. House Majority Leader Kevin McCarthy, R-Calif., said votes on the legislation were planned for next Thursday. The House GOP's vote counter, Rep. Steve Scalise of Louisiana, also attended the meeting and said the changes give Republicans ""the best chance"" to get the legislation to the Senate. GOP divisions also threaten the legislation in that chamber. Rep. Mark Meadows, R-N.C., head of another, harder-line group of conservative House lawmakers, said earlier that the changes being discussed were not enough to win his support. Meadows did not attend the White House meeting. ""They won't have the votes unless they change it"" further, said Meadows, who leads the House Freedom Caucus. He said that an optional work requirement for Medicaid ""doesn't move the ball more than a couple yards on a very long playing field."" Earlier, health secretary Tom Price told reporters at the Capitol that he wants lawmakers ""to get together and collaborate and come forward with a work product that will respond to the needs of the American people."" The House bill would create new, leaner tax credits for health insurance, cap federal spending on Medicaid for low-income people and reverse tax increases on wealthy Americans used to finance Obama's statute. One House GOP leader, Washington Rep. Cathy McMorris Rodgers, said leaders were on track to bring the legislation to the House Rules Committee early next week. That panel's meeting ""?usually a prelude to bringing legislation to the House floor ""?is expected to produce amendments aimed at securing votes. Hoping to secure support, Trump was meeting with a group of House conservatives at the Oval Office. Although the House bill has cleared three committees, some lawmakers can visualize scenarios where things come apart. Rep. Bill Flores, R-Texas, said it's important to get the legislation passed before Congress leaves for a two-week spring recess next month. ""That's never healthy to let something sit out there too long because pretty soon you have a carcass left,"" he said. Critics say it would make health insurance more expensive for individuals, especially older adults and those with modest incomes. An analysis by the nonpartisan Congressional Budget Office found 24 million people would lose their health insurance over a decade though the bill would also reduce the deficit. In the Senate, Susan Collins, R-Maine, told the Portland Press Herald, ""This is not a bill I could support in its current form."" She joins Kentucky's Rand Paul and Utah's Mike Lee in opposing the legislation, while other Republicans, including Tom Cotton of Arkansas and Ted Cruz of Texas, have expressed deep misgivings. Collins' opposition leaves the bill short of the support it needs in the Senate unless it changes, since GOP leaders can only lose two votes. In another warning signal, four GOP governors wrote congressional leaders Thursday saying the bill's approach to Medicaid would not work for states. Medicaid covers more than 70 million people, and its future is expected to be a central issue in the Senate. ""It provides almost no new flexibility for states, does not ensure the resources necessary to make sure no one is left out, and shifts significant new costs to states,"" wrote Govs. John Kasich of Ohio, Rick Snyder of Michigan, Brian Sandoval of Nevada, and Asa Hutchinson of Arkansas. Failing to pass a bill while his party controls both the House and Senate would be a devastating blow to his party and the premise of his presidency ""?that he was a dealmaker the country needed. ""?Associated Press writers Jill Colvin, Ken Thomas and Erica Werner contributed.", -2707,2017/3/17,http://abcnews.go.com/US/dna-links-suspected-detroit-cop-shooter-november-murder/story?id=46203244,"DNA links suspected Detroit cop shooter to November murder of Wayne State University officer, chief says",,"A DNA match has linked a man accused of shooting and injuring two Detroit police officers this week to the November murder of a university officer, Detroit Police Chief James Craig said today. The suspect, Raymond Durham, was taken into custody Wednesday night after he allegedly ""aggressively"" opened fire on two officers, ""unprovoked,"" Craig said Thursday. After allegedly shooting the two officers, the suspect ""continued to make an attempt to engage them as they were trying to gain some concealment and cover,"" Craig said. The suspect then fled a few blocks away, Craig said. As other officers approached him there, ""he, in a second attempt, tried to attack these officers. Fortunately, he was taken into custody without incident,""?Craig said. The officers shot and injured Wednesday night were part of a ""stepped-up police presence in the area"" since the fatal shooting in November of Wayne State University Sgt. Collin Rose in that neighborhood, according to The Associated Press. Durham is now ""considered a prime suspect in the murder"" of Rose, as well as the suspect in the attempted murders of the two Detroit officers, Craig said at a news conference today. Craig said police learned Thursday evening of the positive DNA match, adding, ""because this investigation is continuing I will not go into any details."" Detroit Police is searching for Raymond Durham, a person of interest involved in the shooting of two DPD officers on the city's west side. pic.twitter.com/mRqh4QXpPk Craig called the DNA match just ""one component"" of the investigation. ""This is a first step,"" Craig said. ""This does not signify closure."" The two officers injured this week are in nonlife-threatening condition, police said Thursday. One is a 20-year veteran of the police force, and his partner is a four-year veteran, police said. One of the officers was wearing body armor that stopped two bullets toward his chest, police said. He suffered a gunshot wound to the ankle. The other officer was shot in the neck, Craig said. The suspect was also wounded in the exchange of fire with the two officers. His injury is also not life threatening, police said. Craig said today that the case from this week's shooting will be reviewed as early as today at the Wayne County Prosecutor's Office. The Rose case has not yet gone to prosecutor's office, he said. Durham's family has said he has some mental health problems, but they don""t believe he's guilty, according to local ABC affiliate WXYZ.", -2708,2017/3/17,http://abcnews.go.com/US/wireStory/white-officer-seeking-throw-fatal-shooting-video-46196292,Judge won't toss fatal shooting video from officer's case,,"Jurors will see a key piece of video evidence in the upcoming trial of a white ex-South Carolina police officer in the shooting death of a black motorist, despite the defense's request that it be tossed out. During a hearing lasting more than an hour Friday, U.S. District Judge David Norton denied a motion by attorneys for Michael Slager to exclude the shooting video from his trial. He dismissed objections that the video only shows part of the altercation between the two men and doesn't include the officer's perspective. The video has been the centerpiece of the case against Slager, 35, who was an officer with the North Charleston Police Department in April 2015 when he shot Walter Scott. The 50-year-old unarmed motorist was running from Slager following a traffic stop when the two men struggled over Slager's Taser before the officer shot at Scott eight times, hitting him with five bullets in the back. A bystander captured the shooting on cellphone video, which was shown around the world. Attorneys defending Slager on federal civil rights charges argued Friday the video is prejudicial because it doesn't show the Taser struggle ""The relevant perspective is the officer's perspective,"" defense attorney Donald McCune told the judge. ""The video is incomplete."" Assistant U.S. Attorney Jared Fishman argued the video is relevant not only because it shows the crucial moment in which Slager used deadly force but also because it doesn't show Scott threatening Slager with the Taser as he was killed. ""The video unambiguously shows the defendant shooting a man as he ran away,"" he said. ""It allows the jury to see clearly Scott did not have a Taser in his hand at the moment he was shot."" Slager's civil rights trial is scheduled for May. In August, he faces a retrial on murder charges in state court, where his first trial ended in a hung jury. Also Friday, Norton ruled Slager's attorneys should refrain in their opening statements from suggesting to jurors the trial is an opportunity to debate the treatment of police. In his first state trial, Slager's defense attorneys told jurors they had an opportunity to send a message to the world on the handling of police shootings, but the judge agreed with prosecutors that opening statements aren't a place to make such claims. He suggested instead that defense attorneys might bring up the issue in their closing arguments. Norton scheduled another hearing April 24 to deal with other motions, including several filed earlier this week by Slager's attorneys seeking to limit what prosecutors can tell jurors, including information on Slager's mental state and references to ""prejudicial terms,"" like calling Scott the ""victim"" or Slager the ""defendant."" ""?Kinnard can be reached at http://twitter.com/MegKinnardAP . Read more of her work at http://bigstory.ap.org/content/meg-kinnard/", -2709,2017/3/17,http://abcnews.go.com/US/wireStory/huge-fire-engulfs-apartment-building-construction-46194284,Chief: Apartment building inspected 50 times before blaze,,"An apartment building under construction in North Carolina's capital city had been inspected 50 times, most recently on Monday, before it went up in flames near an entertainment district, the fire chief said Friday. Several other buildings were damaged when the fire broke out Thursday night, some of them severely, Raleigh Fire Chief John McGrath said at a news conference. A firefighter suffered minor injuries and five people were treated for smoke inhalation, he said. The cause of the fire is under investigation. The building's wood-framed construction burned quickly, McGrath said. He said the structure had been inspected 50 times and met all code requirements. ""Unfortunately, this building is at the stage when it was extremely vulnerable, before sprinkle systems got in, fire resistant walls were put up,"" the fire chief said. The fire began shortly after 10 p.m. Thursday in the six-story building in downtown Raleigh. The fire was under control about three hours later, although smoke was still rising as firefighters continued pouring water on wreckage that had collapsed to the ground. Accountant Brent Williams and retirement planner Robert Devay said between water damage from sprinklers and the heat of the burning building about 50 yards across the street, they'd probably lost most of what they owned in the two-bedroom apartment they shared. They were watching the NCAA basketball tournament on television when they saw the flames. ""We were watching it from my room because it got too hot to be on the balcony and the window popped in from the fire,"" Williams said. ""So we decided we should probably leave. So we came downstairs and the police came in and kicked everybody out of the building."" Their six-story apartment building's pale green paint was scorched a dark brown and many windows were open to the cold, clear air. Williams said they took nothing but what they were wearing. Fifteen floors of another building across the street from the blaze were also damaged, fire officials said. That building, which housed a combination of condominiums and the offices of the North Carolina League of Municipalities, was inspected and deemed structurally sound, McGrath said. Several other nearby buildings damaged by intense heat were inspected Friday, he said. ""You don't expect to walk outside and see a towering inferno,"" Scott Shook, president of the North Carolina Community Colleges Board, who was eating dinner at a nearby restaurant, told The News & Observer of Raleigh. Plumbing supervisor Joe Meads of Burlington said his crews were working earlier Thursday inside the apartment building, which he estimated was about half completed. All had left for the day hours before the fire was reported, he said as he marveled at the sagging frame remains of the construction crane that Thursday reached about 10 stories above the site. The building was designed for upper-middle income tenants attracted by the nearby Glenwood South entertainment district and easy walks to work in downtown offices. The building that burned was supposed to have about 240 studio and one- and two-bedroom apartments. ""?Follow Emery P. Dalesio at http://twitter.com/emerydalesio. His work can be found at http://bigstory.ap.org/content/emery-p-dalesio.", -2710,2017/3/17,http://abcnews.go.com/International/wireStory/trump-administration-fights-syrians-travel-ban-lawsuit-46199773,Trump administration fights Syrian's travel ban lawsuit,,"A federal judge should let President Donald Trump's travel ban apply to a Syrian family trying to relocate to Wisconsin, U.S. Justice Department attorneys argue in a new court filing. The case revolves around a Syrian Muslim who fled the war-torn country in 2014 and settled in Wisconsin. He's been working since last year to win asylum for his wife and 3-year-old daughter, who remain in Aleppo. They were trying to obtain visas when Trump issued his first travel ban in January. The man filed a federal lawsuit in Madison asking a judge to block the ban from applying to his family so they could continue the visa process. U.S. District Judge William Conley declared that request moot last month after a federal judge in Washington blocked the ban. The family is now slated to travel to the U.S. embassy in Jordan next month for visa interviews. Trump has since issued another ban, however, temporarily prohibiting travelers from six predominantly Muslim countries, including Syria, from entering the United States. The new order prompted the man to renew his request last week. He argued the new ban is anti-Muslim and violates his rights to freedom of religion and due process. Conley issued a temporary restraining order prohibiting immigration officials from enforcing the ban against the man's wife and daughter, saying they're in danger daily. Now the man wants Conley to issue an injunction, which would further cement the court's protection. Conley has set a hearing on the injunction request for Tuesday. The Justice Department filed a brief late Thursday night arguing against an injunction. Agency attorneys wrote that the man's request is unnecessary since federal courts in Hawaii and Maryland completely blocked the ban this week. The order also includes waiver provisions for people who seek to reside with a family member admitted to the United States legally and the man can't show he's been harmed, they wrote. The attorneys went on to say that the ban is a valid exercise of the president's authority to temporarily suspend certain classes of aliens from entering the country and the ban draws distinctions based on the risk of terrorism, not religion. ""More fundamentally, Plaintiff misses the point: the Order's objective is to prevent future terrorist attacks before they occur,"" the government's brief said. According to the Syrian man's lawsuit, he fled his country to avoid near-certain death at the hands of two military factions, one fighting against President Bashar al-Assad's regime and another that supports it. Both sides thought he was working for the other; each faction tortured him and threatened to kill him. He didn't identify himself in the lawsuit to protect his family. His attorney didn't immediately respond to an email message Friday morning. ""?Follow Todd Richmond on Twitter at https://twitter.com/trichmond1", -2711,2017/3/17,http://abcnews.go.com/US/wireStory/indiana-teens-slayings-lead-numerous-unrelated-arrests-46199503,Indiana teens' slayings lead to numerous unrelated arrests,,"Indiana authorities say investigations into the killing of two teenage girls have led to 13 arrests, but that none of them are linked to those murders. State police Sgt. Kim Riley tells WLFI-TV those arrests were based on pending warrants all unrelated to the slayings of 14-year-old Liberty German and 13-year-old Abigail Williams. Police have questioned more than 300 people in the killings based on over 13,000 tips from the public. Riley says some people questioned by investigators haven't been truthful because they have criminal records. That's forced police to devote time to clearing them as potential suspects in the killings. The teens were found slain Feb. 14, a day after they vanished while hiking on trails near Delphi, about 60 miles northwest of Indianapolis. ""?Information from: WLFI-TV, http://www.wlfi.com/ The police tip line for the case is 844-459-5786. Tips can also be reported by emailing Abbyandlibbytip@cacoshrf.com.", -2712,2017/3/17,http://abcnews.go.com/US/grieving-families-speak-police-hunt-killer-colorado-teens/story?id=46197978,Grieving families speak out as police hunt for killer of 2 Colorado teens,,"As authorities in Colorado hunt for the killer of two teenagers who were found dead on the side of a road, their families are left grieving. Derek Benjamin Greer, 15, and Natalie Partida, 16, were found dead Sunday morning, their bodies lying on the shoulder of a road 15 miles from their high school in Colorado Springs, the El Paso County Sheriff's Office said. Natalie's cousin, Hannah Ortega, told ""Good Morning America"" that Natalie and Derek ""went everywhere together."" ""They loved each other,"" Ortega said. Derek was Natalie's ""truest friend,"" she said. ""They had a whole life to live,"" she continued. ""They don't get to have kids, they don't get to graduate high school, they don't get to work their dream jobs, they don't get to live anymore. Nobody deserves to get their life taken."" Natalie's grandmother, Margaret Partida, told ""GMA"" that ""[Natalie] meant the world to us. Natalie was a girl full of just joy and happiness. She always had a smile on her face."" Partida, overcome with emotion, recalled the last words her granddaughter said to her. ""She had a couple of tears in her eyes, and she said, 'Grandma, I want to tell you how much I love you,'"" Partida said. ""I never dreamed that would be the last I would see of my granddaughter."" Partida said she has no idea who committed the crime. ""It ended so quickly,"" Partida said. ""They were just beginning life."" Derek's mother, Heather Ferguson, told ""GMA"" she wanted to speak out because ""he wasn't just somebody's garbage. He deserves to be remembered and deserves to have justice."" She described Derek as ""so loving."" ""He was my best friend and loved me so much,"" she said. Derek's stepfather, Jeff Ferguson, said Derek was always talking and usually the center of attention. ""He made an impression on people,"" he said. He added, ""We just hope that at some point the person or persons who did this realize how many lives they destroyed."" ""A part of you is gone, forever,"" Heather Ferguson said. ""Our home will never be the same."" While the sheriff's office ruled the deaths as homicides, authorities have not released how the teens were killed, saying they are waiting until the toxicology reports come back. As police look for the killer, Jacqueline Kirby, spokesperson for the El Paso County Sheriff's Office, said authorities are ""aggressively pursuing all leads."" The sheriff's office asks anyone who ""sees anything out of the ordinary for their area"" to call the sheriff's office at 719-390-5555.", -2713,2017/3/17,http://abcnews.go.com/Entertainment/prince-william-princess-kate-land-paris-day-tour/story?id=46202794,"Prince William, Princess Kate land in Paris for 2-day tour",,"Prince William and Princess Kate touched down in Paris today and kicked off a two-day charm offensive ahead of Brexit. The couple met with French President Francois Hollande inside the Elysee Palace and attended a black-tie reception and dinner at the British Embassy. William, 34, reassured the French in his speech at the British Embassy that the partnership remains between Great Britain and France. ""This partnership will continue despite the United Kingdom's recent decision to leave the European Union,"" William said. William and Kate, 35, will be front and center in Paris at a series of events to honor and celebrate the French for their resilience in the wake of the Paris and Nice terrorist attacks and to celebrate French arts and culture. The royal couple's visit to Paris has enormous political significance in the wake of the U.K.'s Brexit decision to withdraw from the European Union. ""I have been reminded over the last few years, as Catherine and I have attended commemorations of the two World Wars, how much we have experienced together and have stood together in moments of great crisis,"" William said today. ""Our relationship is just as strong and enduring today. Our hearts went out to the people of France when you responded so bravely to the awful terrorist attacks of the last two years."" The royal family has scheduled a series of visits to European countries in the months ahead -- including William's and Kate's July visit to Germany and Poland -- to remind Great Britain's European neighbors that they are still allies and partners after last summer's Brexit vote. ""Before I came here, Her Majesty The Queen reminded me of how much she has enjoyed her many visits to France,"" William told the gathered dignitaries and guests. ""It is a feeling that Catherine and I entirely share, and look forward to this and many more visits in the years to come ""?to France our ally, our friend, our neighbor."" Kate wore a black, tea-length Alexander McQueen dress accessorized with a pearl drop necklace and pearl cocktail for a reception and black-tie dinner hosted by Britain's ambassador to France, Edward Llewellyn. Guests expected to attend the evening reception include actresses Kristen Scott Thomas, who played Queen Elizabeth II ""The Audience"" on Broadway, and Audrey Tatou and actor Jean Reno. William and Kate were greeted for a series of photographs outside the Elysee Palace before they met with President Hollande for bilateral discussions inside the palace. Hollande later escorted the couple around the terrace for a view of the grounds. TRH are welcomed to Paris by French President François Hollande, who they have previously met on a number of occasions #RoyalVisitParis pic.twitter.com/IYYfW5lMOT William joked with President Hollande that he will be ""cheering the Welsh"" on Saturday when the French take on Wales in rugby at Stade de France. William, who will attend the match with Kate, is royal patron of the Welsh Rugby Union, a position he took over from his grandmother, Queen Elizabeth, in December 2016. William famously showed his solidarity with the French people just days after the November 2015 terror attack in Paris, which targeted Stade de France. William attended the England versus France soccer match at London's Wembley Stadium and sang the French national anthem in support. Before departing London for Paris, William and Kate attended a traditional St. Patrick's Day event to honor the Irish Guards. William, who is colonel of the Irish Guards, and Kate visited the 1st Battalion Irish Guards at their base and later joined officers and their families for a pint of Guinness. Katie, aged 7, presents a lovely posy. Her dad is Colour Sergeant Darren Lorimer of The Irish Guards regiment. #StPatricksDay pic.twitter.com/KSllBvbrJ7 The event was William's first official engagement since a weekend-long break in Switzerland where he was caught ""dad dancing"" at a nightclub and criticized for missing an important Commonwealth Day service at Westminster Abbey attended by other members of the royal family. William and Kate left their two young children, Prince George and Princess Charlotte, at home during their Paris visit. The couple is reportedly staying at the British ambassador's residence during their visit. The residence, built in the 18th century, is one of the best known buildings in Paris and is located close to Elysee Palace. On Saturday, William and Kate will also visit Les Invalides, a Paris landmark known for its golden dome that includes the Tomb of Napoleon, to highlight its work with veterans. They will also meet with survivors and first responders from the July 2016 terror attack in Nice, France, and the November 2015 terror attack in Paris.", -2714,2017/3/17,http://abcnews.go.com/International/wireStory/germany-file-wto-complaint-us-levies-border-tax-46196454,Germany may file WTO complaint if US levies border tax,,"Germany's economy minister says her country may sue the United States before the World Trade Organization if President Donald Trump goes ahead with a planned 'border tax' on imported goods. Brigitte Zypries says World Trade Organization rules limit the level of import taxes member states can levy. Her comments come on the day German Chancellor Angela Merkel is due to meet Trump in Washington for the first time. Zypries told public broadcaster Deutschlandfunk in an interview Friday that one response would be for all countries to impose such import taxes, but that this would take a long time. She told the station that ""the other option is we sue (Trump) at the WTO,"" adding that ""it wouldn't be the first time that Mr. Trump has lost in the courts.""", -2715,2017/3/17,http://abcnews.go.com/US/wireStory/emt-run-killed-man-driving-stolen-ambulance-46193901,Man accused of killing medic with ambulance: 'I'm innocent',,"A man accused of stealing an ambulance and then driving it over a fire department medic, crushing her to death, told reporters he wasn't guilty as he was escorted out of a police station Friday surrounded by angry uniformed emergency medical technicians, who hurled insults. ""I'm innocent. I didn't do nothing,"" said Jose Gonzalez, 25, who was set to be arraigned in a Bronx courtroom later Friday on charges including murder. In a twist, authorities said he lived on the same block as the Fire Department Emergency Medical Services technician he is accused of killing, Yadira Arroyo. Police said Gonzalez, who has 31 prior arrests, was high on drugs when he hopped on the back of Arroyo's ambulance as it drove through the Bronx on Thursday evening on its way to a routine medical call. He has a history of violent and erratic behavior with police, they said. Mayor Bill de Blasio said Arroyo, who was 44 and had five children, was ""bravely doing her job"" when she and a partner pulled over after being alerted that someone was on the back of the vehicle. When they got out to check things out, Gonzalez ran around the ambulance, got in and threw the vehicle in reverse, authorities said. Arroyo was struck and became trapped beneath the wheels. Gonzalez was captured moments later by a passing transit police officer and a civilian bystander after the ambulance hit several parked cars and got stuck on a snowbank, authorities said. Video posted on Twitter by a bystander captured the horrific scene as it unfolded. It showed the ambulance speeding across an intersection with one of its doors open, its lights flashing and Arroyo's body being dragged beneath the vehicle. ""We know our EMTs are brave. They do crucial work. They save lives. But they should not ever have to be subjected to violence. And yet, that danger always exists for them,"" Mayor Bill de Blasio said in a news conference late Thursday. He thanked the officer and bystander who apprehended Gonzalez, saying, ""A lot of heroism was on display amidst a great tragedy."" Gonzalez was also arrested on charges of grand larceny and driving while impaired by drugs. There was no immediate information on an attorney who could comment on his behalf. Gonzalez lived at a group home for about a month for chronically homeless single adults run by Volunteers of America Greater New York, which couldn't comment, citing privacy laws. The second EMT was treated at a Bronx hospital for minor injuries, police said. The video posted on Twitter captured both the arrest of the driver and a scene of anguish as the second EMT kneeled, sobbing, over the body of her fallen partner. Arroyo had been with the Fire Department of New York for 14 years, officials said. Justin Lopez, 20, told the Daily News that he shot the video of the episode as his brother was driving. ""I was coming from the street, up to the red light, and I just saw the ambulance, the sirens and lights, and I told my brother, 'Look, something's happening,' and then somebody just hopped in, and then he hit two cars and ran over the person,"" he said. ""I realized he was hijacking the car."" Democratic Gov. Andrew Cuomo tweeted late Thursday: ""EMTs are heroes who help countless New Yorkers every day. Tonight's tragedy in the Bronx is horrible. My deepest sympathies to the family.""", -2716,2017/3/17,http://abcnews.go.com/US/fdny-mourns-loss-yadira-arroyo-mother-emt-veteran/story?id=46199545,"FDNY mourns loss of Yadira Arroyo, mother and EMT veteran, who was run over by her own ambulance",,"The New York City Fire Department is mourning the loss of an emergency medical technician and mother of five who died Thursday night after she was run over by her own ambulance by a suspect who stole the vehicle. Yadira Arroyo, an EMT and 14-year veteran of the FDNY, was driving an ambulance with her partner in the Bronx on Thursday night when they were flagged down by a pedestrian. Arroyo and her partner pulled the vehicle over and both got out to help, according to a press release from the New York City Police Department. At this time, a man entered the driver's side of the ambulance. Arroyo and her partner tried to prevent the individual from driving away but the man put the ambulance in reverse, knocking Arroyo to the ground and driving over her with the vehicle. The man continued driving in reverse, striking two occupied cars and a parked, unoccupied vehicle, police said. The man then drove the ambulance forward, subsequently dragging Arroyo into the middle of the intersection. While trying to turn left, the ambulance crashed into two more parked vehicles before coming to a stop near a corner. The man attempted to flee on foot but was apprehended by an on-duty officer with the Metropolitan Transportation Authority who was on patrol, according to police. Police officers responding to the incident found Arroyo lying in the roadway unconscious and unresponsive with trauma to her body. She was taken to a local hospital in critical condition, where was pronounced dead, police said. #FDNY mourns the loss of FDNY EMT Yadira Arroyo, Station 26, who was killed in the line of duty tonight while serving our city. pic.twitter.com/b3KrzGabYE Arroyo, 44, is the eighth member of the FDNY EMS to die in the line of duty. She was a mother to five children, the fire department said. Arroyo's EMT partner, a 30-year-old woman, was transported to the hospital for injuries to her neck and shoulder. She is in stable condition, according to police. No one in the occupied vehicles that were struck during the incident were injured, police said. We lost a 14-year veteran of the FDNY tonight. She was an EMT and a mother of five. New Yorkers join together in mourning her loss. EMTs are heroes who help countless New Yorkers every day. Tonight's tragedy in the Bronx is horrible. My deepest sympathies to the family. During a press conference Thursday night, officials struggled to make sense of the tragedy. ""An emergency medical technician lost in the line of duty bravely doing her job and encountering the kind of danger that our EMTs should not have to confront,"" New York City mayor Bill de Blasio said. ""We lost a good woman."" New York City Fire Commissioner Daniel Nigro added, ""No matter how many times we do this, it doesn""t make it any easier."" Police have identified the suspect as Jose Gonzalez, a 25-year-old Bronx resident. Gonzalez was charged with murder, grand larceny and operating a motor vehicle while impaired by drugs. He is expected to be in court on Friday. Police confirmed to ABC station WABC that Gonzalez is an emotionally disturbed person who has had several previous interactions with law enforcement. He has two dozen prior arrests, including criminal mischief, assault as well as marijuana possession and sale. The investigation into the incident is ongoing. ABC News' Tara Fowler, Rachel Katz and Darren Reynolds contributed to this report.", -2717,2017/3/17,http://abcnews.go.com/US/fdny-emt-dead-critical-run-stolen-ambulance/story?id=46188795,EMT dead after being run over by own stolen ambulance in New York,,"An FDNY EMT and mother of five is dead after her ambulance was stolen and she was then hit by her own vehicle. The incident occurred in the Bronx, New York, at just after 7 p.m. on Thursday, a police source told ABC News, and involved two EMTs, both women. NYPD said Bronx resident Jose Gonzalez, 25, was charged with murder, grand larceny and operating a motor vehicle while impaired by drugs. He is expected to be in court on Friday. The deceased EMT has been identified by the FDNY as Yadira Arroyo, 44, a 14-year veteran of the FDNY. ""#FDNY mourns the loss of FDNY EMT Yadira Arroyo, Station 26, who was killed in the line of duty tonight while serving our city."" the FDNY tweeted. At a press conference late Thursday, New York City Mayor Bill de Blasio said Arroyo was ""lost in the line of duty ... bravely doing her job ... We lost a good woman."" NYC Fire Commissioner Daniel Nigro added, ""No matter how many times we do this, it doesn""t make it any easier."" BREAKING: FDNY EMT dies after run over by own ambulance after vehicle is stolen in the Bronx: https://t.co/O9BSCX4obA pic.twitter.com/h7uAp3VCMb The ambulance was driving when it was flagged down by a pedestrian who was looking for help with an emotionally disturbed person acting out on the sidewalk, the source said. Arroyo got out to help, while the EMT in the passenger seat stayed in the vehicle, the source said. The person acting out then got behind the wheel of the ambulance and proceeded to drive away. Arroyo grabbed onto the ambulance and was dragged along, according to the source. When she let go, the suspect then backed the vehicle up and ran her over. As the suspect tried to drive away, the ambulance crashed into a parked car. An off-duty MTA police officer who happened to be driving by subdued the suspect with the help of some passers-by, the source said. The suspect has been identified by Nigro as a 25-year-old male. Arroyo's partner in the vehicle suffered only minor injuries, though police initially said she was in critical condition. She is being treated for emotional shock, according to The Associated Press. The incident is being investigated.", -2718,2017/3/17,http://www.cnn.com/2017/03/17/politics/donald-trump-angela-merkel/index.html,Trump tells Merkel: 'At least we have something in common' about wiretapping,"Washington (CNN)President Donald Trump finally addressed his claim that his White House predecessor wiretapped him Friday, joking that he and German Chancellor Angela Merkel had ""something in common, perhaps.""","The President was asked by a German reporter why his White House had cited a Fox News report that claimed that the British surveillance agency GCHQ had been used to wiretap Trump Tower during the election campaign. He did not apologize to the British government after it said that the report of UK surveillance was ""ridiculous."" Turning to Merkel, who was angry to find out after leaks by Edward Snowden that the US National Security Agency had tapped her phone, Trump said ""at least we have something in common"". Trump appeared to be irritated to be asked the question by the German reporter, in the latest twist of a two-week controversy ignited by early morning tweets by the President that claimed that President Barack Obama had ordered wiretaps against him last year. Senior members of the intelligence committees in the House of Representatives and the Senate have said that there was no wiretapping of Trump Tower. Trump also knocked NATO nations who do not pay their ""fair share"" for their defense, as he stood side-by-side with Merkel. He said that many nations owe ""vast sums"" of money in unpaid dues to the organization. ""These nations must pay what they owe,"" Trump said during the joint news conference between the two leaders. The President, however, also expressed strong support for the NATO alliance after raising questions about its utility and relevance during his election campaign. The German government fell well short of its NATO target of 2% last year, hitting 1.19%. Though it has committed to boosting defense spending this year, Germany will still fall short again. Trump welcomes Merkel after bashing her Trump also said that the US would respect ""historic institutions"" in what may have been a reference to the European Union, which has always been seen by the US as a bulwark of Western security but about which senior figures in Trump's government have expressed skepticism. In her remarks, Merkel also referred to past tensions with Trump, as she seeks to build a new relationship with the third US president she has encountered as German Chancellor. ""It's always much better to talk to one another than about one another,"" she said. She also said she was glad to hear Trump's support for NATO and said that Trump had committed to the Minsk process, designed to monitor a ceasefire in Ukraine and look toward an eventual solution to the crisis. Apart from the domestic political storms that are battering the White House, the news conference and Merkel's visit to the White House are coming at a crucial moment for US-German relations. The German Chancellor is trying to forge a relationship with Trump despite suspicion over his political views. She congratulated the President after his election win in a statement that also contained a defense of Western values -- amid concern in Germany that his stances on issues like immigration run counter to the principles that have sustained the Western alliance. Germany, the most powerful political force in the European Union, has also been deeply concerned by Trump criticisms of NATO and deep skepticism inside the White House about the EU itself. Friday's meeting will attempt to stir some personal chemistry between two leaders who seem far removed in temperament and instinct. Merkel, who takes a cautious, analytical approach to politics, was also one of the few world leaders who appeared to forge a deep connection with Obama, with whom she was something of a kindred spirit. Trump is more outspoken and improvisational and has little time for diplomatic niceties. He has, for example, heavily criticized Merkel's decision to allow hundreds of thousands of refugees into Germany, a move that is a key issue in her re-election race this year. But both sides are likely to try to move on from past tensions. The pragmatic Merkel is now on her third US president and appears to be looking to find a way to forge a relationship with Trump without buying into his political values. Another administration official said before the meeting that the President hoped to get Merkel's advice for dealing with Russian President Vladimir Putin, who, according to US intelligence, ordered cyber-meddling in last year's presidential election and tried to help Trump. Merkel hoped to appeal to the President's focus on business, bringing with her to Washington the chief executives of Siemens and BMW with her to Washington. The two companies employ thousands of American workers, a point Merkel hopes will come through when the pair get to discussing trade issues -- including Germany's trade surplus, which has rankled the Trump camp.", -2719,2017/3/17,http://www.cnn.com/2017/03/17/opinions/merkel-the-charmer-qvortrup-opinion/index.html,How Merkel could charm Trump into being Germany's friend,"Matthew Qvortrup is a professor of Applied Political Science and International Relations at Coventry University. His book ""Angela Merkel: Europe's Most Influential Leader"" is published by Overlook. The opinions in this article belong to the author.","In an interview with the American magazine, the former businessman outlined his philosophy of life and his political ideas. If Angela Merkel can be characterized by one thing, it is her meticulous preparation and her willingness to understand her opponents. Meeting with Trump is unlikely to intimidate Merkel. She has dealt with alpha males with inflated egos before. Throughout her career, she has battled the likes of Vladimir Putin, former Italian Prime Minister Silvio Berlusconi, former German Chancellor Gerhard Schr?der and Greek Prime Minister Alexis Tsipras. All of them have tried to intimidate her. Putin infamously allowed his dog Koni into the room when Merkel visited Russia in 2007 (Merkel is reportedly scared of dogs, though Putin claims that making her feel uncomfortable was not his intention). Merkel used small talk to neutralize the Kremlin strongman, and then later imposed economic sanctions on Russia that the country could ill afford. With nearly all the leaders above, she has responded like an older sister who is used to dealing with the naughtiness of her younger brothers. Merkel tends to be sweet, personable and charming when she meets with other leaders. While researching my book about her -- ""Angela Merkel: Europe's Most Influential Leader"" -- I heard stories of how she had won over both David Cameron and Barack Obama by teaching them how to swear in German. She also, apparently, does a pretty accurate impression of the former Pope Benedict, which Putin was said to find particularly amusing. We all caught a glimpse of this more human side of her in 2012 when she broke up G8 talks on Syria to watch the penalty shootout of a Champions League final. But she is also obsessed by detail. The German Chancellor, who has a doctorate in quantum mechanics, is known for her obsessive attention to detail and for her patience. Unlike Trump, who likes to tweet in the small hours of the morning, Merkel often waits days or even weeks before she responds. When a problem emerges, she gathers facts before she makes a decision. By her own admission, she has turned ""cautious deliberation into an art form."" Indeed, the Germans have even invented a verb for this: Merkeln -- which was the Youth Word of the Year in 2015 in Germany -- means to be indecisive or to not have an opinion on something. But she will not be rushed into anything contrary to Europe's interests and she is certainly not going to be intimidated by Trump's male bravado. In her eleventh year in office, the pastor's daughter who grew up under the communist dictatorship -- and who speaks Russian -- is not likely to welcome President Trump's desire for friendly relations with Putin. Nor is Germany, one of the largest exporters of goods, likely to be enamored by Trump's protectionism. Should he be worried? Should he accommodate his awkward German ally? Or could he simply ignore her? That would not be wise. Much as Trump would like to establish more friendly relations with Moscow, the European Union is one of the US' most important trading partners. Millions of jobs in the US depend on trade with the EU. Upsetting that relationship will make it difficult to bring back jobs to the American Rust Belt -- the area that elected Trump. The 45th President needs to develop a very different style if he is to establish positive relations with Germany. Upsetting Europe's strongest power is simply not an option.", -2720,2017/3/17,http://www.cnn.com/2017/03/17/politics/gchq-trump-wiretap-denial/index.html,White House apologizes to British government over spying claims,Washington (CNN)The White House has apologized to the British government after alleging that a UK intelligence agency spied on President Donald Trump at the behest of former President Barack Obama.,"National security adviser H.R. McMaster spoke with his British counterpart on Thursday about press secretary Sean Spicer's comment from the White House podium about a Fox News report that said British intelligence helped wiretap Trump Tower during the 2016 campaign, a White House official said Friday. The official described the conversation as ""cordial"" where McMaster described Spicer's comment as ""unintentional."" McMaster also told his counterpart that ""their concerns were understood and heard and it would be relayed to the White House."" The official said there were ""at least two calls"" from British officials on Thursday and that the British ambassador to the United States called Spicer to discuss the comment. ""Sean was pointing to the breadth of reporting, not endorsing any specific story,"" the official said. A senior administration official told CNN that Spicer and McMaster offered what amounted to an apology to the British government. White House officials later told CNN that it was British ambassador to the US Kim Darroch and Sir Mark Lyall Grant, national security adviser to Prime Minister Theresa May, who ""expressed their concerns to Sean Spicer and Gen. McMaster"" in two separate conversations on Thursday. ""Mr. Spicer and Gen. McMaster explained that Mr. Spicer was simply pointing to public reports, not endorsing any specific story,"" one official said. 'These claims are ridiculous' Earlier Friday, a spokesman for May said senior UK officials had protested to the Trump administration after the claims were repeated by Spicer. ""We've made clear to the US administration that these claims are ridiculous and should be ignored. We've received assurances that these allegations won't be repeated,"" May's spokesman said. At a Thursday press briefing, Spicer read out allegations originally made on Tuesday on Fox News by legal analyst Andrew Napolitano, that the UK intelligence agency GCHQ -- the equivalent of the US National Security Agency -- had spied on Trump. ""Judge Andrew Napolitano made the following statement, quote, 'Three intelligence sources have informed Fox News that President Obama went outside the chain of command (to spy on Trump). He didn't use the NSA, he didn't use the CIA ... he used GCHQ,'"" Spicer told journalists. The strong language from Downing Street -- which followed a similar, rare statement from the UK intelligence agency GCHQ -- indicated that the British government was furious that the US had made such an incendiary allegation. GCHQ: Wiretap claims are 'nonsense' GCHQ said the claim was ""nonsense"" and should be ignored. The agency rarely comments on specific operations, and almost never in such blunt terms. Then, at a regular press briefing, Downing Street said it had sought and received reassurances that the allegations would not be repeated. ""This shows the administration doesn't give the allegations any credence,"" the Downing Street spokesman said. ""We have a close special relationship with the White House and that allows us to raise concerns as and when they arise, as was true in this case,"" he added. Britain is particularly sensitive to any suggestion that the US would use GCHQ to keep ""American fingerprints"" off the spying. UK intelligence agencies work closely with their US counterparts, as well as those in Canada, Australia and New Zealand, as part of the ""Five Eyes"" intelligence sharing agreement. May's spokesman argued this pact precluded the kind of spying alleged by Napolitano, saying: ""I would add as a matter of fact that under the 'Five Eyes' intelligence agreement, we cannot use each other's capabilities to circumvent the law. It's a situation that simply wouldn't arise."" Claims by former NSA contractor Edward Snowden led to questions over GCHQ's relationship with the NSA. It was censured by a UK tribunal in 2015 for not making enough information public about how it shares Internet surveillance data with its US counterpart. Concern over claims Susan Rice, national security adviser in the Obama administration, said Spicer's claims put the intelligence-sharing relationship between the US and UK at risk.""The cost of falsely blaming our closest ally for something this consequential cannot be overstated,"" she wrote on Twitter. Tim Farron, leader of the UK Liberal Democrat party -- the junior coalition partner in the last British government -- described the White House claim as ""shameful"" and said it risked harming US and UK security. ""Trump is compromising the vital UK-US security relationship to try to cover his own embarrassment,"" he tweeted. The Senate Intelligence Committee had said on Thursday it had found no evidence Trump Tower had been under surveillance in 2016, contrary to Trump's previous claims. ""Based on the information available to us, we see no indications that Trump Tower was the subject of surveillance by any element of the United States government either before or after Election Day 2016,"" committee chair Richard Burr said. The same day, House Speaker Paul Ryan told CNN in an interview that he also hadn't seen any evidence of a wiretap or a surveillance order against Trump Tower. On Friday, Rep. Tom Cole, R-Oklahoma, told CNN's Manu Raju that Obama is owed an apology for Trump's ""reckless"" comment on wiretapping. And Rep. Charlie Dent, R-Pennsylvania, warned that Trump's comments and the White House's decision to dig in on the claims are undercutting the President's credibility and sapping his political capital at a time when he's trying to push a budget and health care overhaul through Congress. Trump originally made the allegations against Obama on March 4 in a series of early morning tweets. ""Terrible! Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory. Nothing found. This is McCarthyism!"" he said on his official Twitter account. Just under two weeks later, in an interview with Fox News' Tucker Carlson, Trump appeared to walk back his original wiretapping allegations. ""Wiretap covers a lot of different things,"" Trump told Carlson on Wednesday. ""I think you're going to find some very interesting items coming to the forefront over the next two weeks.""", -2721,2017/3/17,http://www.cnn.com/2017/03/16/politics/rick-santorum-trump-wiretap/index.html,Santorum: Trump 'hurting himself' with wiretap allegations,"(CNN)Former Republican presidential candidate Rick Santorum made it clear Thursday night that he is not a fan of President Trump's repeated allegations that former President Obama wiretapped him, warning Trump is only ""hurting himself.""","The former Pennsylvania senator supported Donald Trump for president and has backed him on a variety of issues, ranging from trade and immigration to Trump's choice for the Supreme Court. But during an appearance on CNN's Erin Burnett ""Outfront,"" Santorum warned that Trump's insistence on standing by his wiretap allegations poses a problem for the President. ""We're not in an election anymore, and it's not his opponent he's throwing off,"" Santorum said. ""I think it's him that he's throwing off."" ""In this case, he has no opponent,"" Santorum said. ""And who he's hurting is not a rival, he's hurting himself, because he's now the president and it doesn't matter whether he blames Barack Obama or not. People don't care about Barack Obama anymore. They care about one person. They care about the president, and he's the president."" Santorum suggested that Trump and his administration focus instead on issues that have resonated with Americans, such as immigration, Obamacare, taxes and trade. ""I'd like to see the president come out there and talk about what he knows, not what he's read in the paper,"" he added. ""I understand you read things in the paper, I see things on TV. But when you're the president of the United States, the assumption is that you have better information than what's in 'The National Enquirer,' or even 'The New York Times,' which in some cases are very similar publications.""", -2722,2017/3/17,http://www.cnn.com/2017/03/17/politics/missing-secret-service-laptop/index.html,Secret Service laptop containing Trump Tower evacuation and floor plans stolen,"(CNN)A laptop with highly sensitive information was stolen from a Secret Service agent's car Thursday morning in Brooklyn and has not been found, according to two senior New York law enforcement officials.","The officials said the laptop, which was highly encrypted and contained floor plans and evacuation protocol for Trump Tower, cannot be traced or erased by officials remotely, leaving the information at risk of being discovered. The agent described the incident as a compromise of national security, according to one of the officials. Also stolen were the agent's lapel assignment pins that gave her access to security details that protected Hillary Clinton, Donald Trump, the pope and the United Nations General Assembly. The laptop and pins were in a backpack that was taken from the car, which was parked in the agent's driveway. The backpack has since been found, but not the laptop. Secret Service spokeswoman Cathy Milhoan confirmed that the laptop had been stolen and that an investigation is underway. ""Secret Service-issued laptops contain multiple layers of security, including full disk encryption, and are not permitted to contain classified information. An investigation is ongoing and the Secret Service is withholding additional comment until the facts are gathered,"" Milhoan said. ""The Secret Service requests anyone with information regarding this crime to please contact the New York Police Department and the US Secret Service New York Field Office.""", -2723,2017/3/17,http://www.cnn.com/2017/03/17/politics/tillerson-south-korea-dmz/index.html,Tillerson on North Korea: Military action is 'an option',"Seoul (CNN)The US would consider military action against North Korea if it was provoked, Secretary of State Rex Tillerson said Friday.","Speaking in Seoul at a joint press conference with South Korean Foreign Minister Yun Byung-se, Tillerson said Washington's policy of ""strategic patience"" had ended. ""Certainly, we do not want things to get to a military conflict ... but obviously, if North Korea takes actions that threatens the South Korean forces or our own forces, then that would be met with an appropriate response,"" he said, in response to a question from CNN. ""If they elevate the threat of their weapons program to a level that we believe that requires action, that option is on the table,"" Tillerson added. Later Friday morning, President Donald Trump denounced North Korea, tweeting, ""North Korea is behaving very badly. They have been 'playing' the United States for years. China has done little to help!"" Tillerson's remarks come at a time when the US intelligence community and the Defense Department are increasingly anticipating that North Korea will soon undertake a new round of testing of its missile and nuclear program, half a dozen US officials have told CNN. The secretary of state is on a three-country tour to the region amid heightened tensions on the Korean peninsula following recent North Korea missile launches, and fears it's preparing for another nuclear test. In Tokyo Thursday, Tillerson said efforts over the past 20 years to halt North Korea's nuclear development had failed. He said it was time for a new policy on North Korea, but released no details. It is clear that he sees Beijing, where he will fly to Saturday, as a key part of Washington's new approach. A senior Chinese official told CNN this week that Beijing plans to present its own plan to Tillerson during his visit. However, Tillerson dismissed suggestions by Beijing that the US should drop joint military exercises with South Korea as a show of good faith to Pyongyang. Washington did ""not believe that conditions are right to engage in any talks at this time."" ""Conditions must change before there are any scope for talks to resume, whether they are five party or six party,"" he said. Tillerson called on China to give up its opposition to the Terminal High Altitude Area Defense (THAAD) system or act to ""address the threat that makes THAAD necessary."" The missile defense system is in the process of being deployed in the country's south. He also urged Beijing to drop any retaliatory action against South Korea, amid allegations businesses and the tourism industry is being punished for Seoul's stance on the issue. ""(Beijing's) economic retaliation against South Korea is inappropriate and troubling,"" Tillerson said. First visit Earlier in the day, Tillerson visited the demilitarized zone, the highly-fortified border between North and South Korea, becoming the most senior US official to visit the area since President Barack Obama in 2012. There he met some of the more than 28,000 US troops stationed on the peninsula, and toured the Joint Security Area, where North and South Korea soldiers stand facing each other. A Military Armistice Commission briefing room straddles the border. The relatively inexperienced Tillerson has waded into a political minefield in South Korea, where President Park Geun-hye was impeached a week ago and preparations are being made for a snap election on May 9. That election has raised questions over the future of the THAAD system, with some candidates calling for its deployment to be reviewed by the National Assembly. ""We look forward to a productive relationship with whoever the South Korean people elect to be their next President,"" Tillerson said. ""My expectation that the new government in South Korea will continue to be supportive of the THAAD system."" New approach? Tillerson repeated Friday the US had spent too much money on a failed North Korea policy. ""America has provided $1.3 billion in assistance (to North Korea) since 1995. In return, North Korea has detonated nuclear weapons and launched ballistic missiles."" After Trump suggested during his campaign that he would be willing to talk to North Korean leader Kim Jong Un, many speculated that talks would be forthcoming. However, Tillerson said that option was not being considered right now. He called on China to ""fully implement"" UN-approved sanctions against North Korea, and said Washington will be ""calling on everyone to join in"" future actions.", -2724,2017/3/17,http://www.cnn.com/2017/03/17/middleeast/mosul-latest/index.html,What is left of Mosul: 'We don't belong here anymore',"Mosul, Iraq (CNN)Sufian stood in the gateway of the bullet-pocked villa, sheltering from the rain. Around him were other men and teenage boys waiting to be cleared by Iraqi intelligence officers who were on the lookout for ISIS sympathizers and suspects.","Sufian was in his late teens, perhaps early twenties. When I shook his hand, it was warm and soft. The skin under his scruffy, juvenile beard had the same pallor of many people fleeing Mosul, who had spent weeks huddled indoors, often in dark basements, as the battle raged outside. I greeted him in Arabic. He responded in English. ""Hello, how are you?"" he said, smiling nervously, eying the intelligence officers nearby. ""You speak English?"" I asked. ""I am capable of expressing myself adequately,"" he said. Attack helicopters clattered overhead, occasionally firing missiles and heavy machine guns into the old city. Gunfire, mortar and artillery fire boomed a few blocks away. Related: Dramatic footage from western Mosul shows families caught in crossfire We were trying to convince the Iraqi soldiers to let us go forward, so I left Sufian and went back to the group of intelligence officers nearby. Our producer, Kareem Khadder, was trying to charm them. They were a tough crowd, suspicious by profession. Kareem handed out another round of cigarettes, making jokes in the hopes they would warm to us. I knew this would take a while, so I walked down the muddy road with camerawoman Mary Rogers to have a look around Tayaran, the battered neighborhood just north of Mosul's equally battered airport. I turned around and saw Sufian again, struggling to push his mother in a wheelchair through the muck. ""A real disaster,"" Sufian told me, breathless. ""We lost everything: our hearts, our beliefs, our belongings. We don't belong here any more. We want peace."" ""Will you come back?"" I asked. ""No, I can't,"" he said. ""No more. I can't. I'm so scared. They will kill us."" I stopped to let them go, saying in Arabic ""khair, in sha Allah,"" which roughly translates as ""God willing, all will be well."" ""We have Jesus,"" responded Sufian. ""We are going to Jesus."" ""What did Sufian say?"" interjected his grandfather in Arabic, hobbling on a cane over to me. I didn't respond. I couldn't fathom why someone with the very Sunni Muslim name of Sufian would say that. Is this what he meant when he had said we lost our beliefs? In the meantime, Kareem's charm bore fruit. The intelligence officers were laughing, asking us to pose for group pictures. They were ready to take us deeper into the city. This would be our second try that day. Earlier, we had driven with members of the Rapid Response Unit of the Iraqi Federal Police to a park next to the Mosul museum. But as we were driving up, our car shook with a massive blast. The shock wave rattled the shutters on the shops lining the road. Related: In war-torn western Mosul, a determined few remain When we exited our car, we saw a cloud of black smoke rising about 150 meters (492 feet) away. One by one, ambulances were going forward. The soldiers were on edge. A pickup truck rushed by in the opposite direction, several wounded soldiers in the back. We later learned an armored ISIS suicide earthmover had exploded, killing and wounding many of the soldiers. Our escort, a man named Captain Firas, decided we had seen enough. He barked for us and the other journalists to get back in our cars. Protests fell on deaf ears. We drove back to the ruins of Mosul airport, losing Captain Firas along the way. There we saw hundreds of Mosul residents walking out of the city. Leading the group was Saleh Jassim, a man in his early thirties, a white calf draped over his shoulders, other cows following him. While others appeared exhausted and disoriented, Saleh was smiling broadly, waving, giving a V-for-victory sign with his fingers. ""Thank God for your safety,"" I told him in Arabic. In response, he kissed my cheeks. Saleh and his family had walked for two hours from their home in the Bab Al-Baidh district of Mosul's old city. ""The shelling was violent,"" he told me. ""I haven't slept in two days."" The cows, he added, belonged to a neighbor. While Mary and I were talking to Saleh, Kareem had stopped a Federal Police pick up truck and convinced the men inside to take us back into the city. That's where we met Sufian. If this story is starting to sound disjointed, that's how our days in Mosul usually are. Plan A quickly becomes Plan B, then Plan C, until we get half-way through the alphabet. After speaking with Sufian and his family, we followed our new-found friends, the intelligence officers, deeper into the city by car where they promised to take us to their commander. He wasn't there. As we waited, seven soldiers came down the street. There were pulling two men with their shirts pulled over their faces. ""They're da'eshis,"" a soldier next to us said. ISIS. ""How do you know they're ISIS suspects?"" I asked one of the intelligence officers. ""They're not suspects. They are ISIS,"" he shot back. ""How do you know?"" ""We have informers,"" he said. ""I hope you let them have it,"" shouted a soldier by the side of the road. As the group ran past, I saw red marks, and two black boot marks on one of the captive's exposed back. They had already ""let them have it."" Or to be more precise, had started to let them have it. The commander we had come to meet never showed up. Instead, we followed another group of federal policemen into a half-finished building where they said we could see Al-Hadba, the leaning minaret of Mosul next to the Great Mosque of al-Nuri. It was there that Abu Bakr Al-Baghdadi made his first and only confirmed public appearance on July 4, 2014, days after the announcement of the establishment of his so-called caliphate. From the third floor of the building, we had a panoramic view of the old city. ""Be careful,"" a policeman warned us. ""There are snipers."" Al-Hadba was just about two kilometers, just over a mile away. To its left, a large column of black smoke rose to the heavens. More gunfire, more blasts. On the broad boulevard below, a family of eight -- two boys, four men and two women -- scurried by. One of the women, in a green headscarf, clutched a stick with a piece of white cloth to signal they were not combatants. ""Come,"" offered one of the soldiers, ""I'll show you a dead da'eshi."" We followed him down the stairs, though a courtyard, over an earth rampart to the side of a street. ""We have to run across this street, one by one,"" he said. ""There's a sniper."" Once we gathered on the other side of the street, we heard the whoosh of an incoming mortar round. Everyone hit the dirt. It landed with a crash somewhere nearby. Watch: What has become of Baghdadi's state? ""Quickly, we need to go,"" said the soldier. ""There might be another mortar."" Before us was a charred, mangled Federal Police Humvee. Next to it, the burned, twisted wreckage of a car. Probably a car bomb. To its right lay a corpse in combat fatigues and boots, leg splayed. By the stench, it had been there for days. A black rooster strutted by the body, crowing triumphantly. All around, there is destruction. Masonry, glass shards, twisted metal, scraps of clothing, and bullet casings litter the ground. Machine gun fire rattles down the street. Another boom. This is what is left of the great city of Mosul.", -2725,2017/3/17,http://www.cnn.com/2017/03/17/us/wrongfully-convicted-man-free-after-32-years/index.html,'Don't stop fighting': Wrongfully convicted man free after 32 years,Los Angeles (CNN)On a sunny Thursday afternoon in Los Angeles Andrew Leander Wilson did something that seemed unbelievable to him, he walked outside on the sidewalk with only his family guarding him.,"""I've been inside for 32 years, three months and 14 days. It's been that long,"" Wilson told CNN. Wilson has been in prison all those years. He went in at age 30 convicted of murder and now at 62 he is a free man because evidence had come to light that the prosecution withheld in the case all those years ago. Superior Court Judge Laura Priver ruled Wilson had been deprived of his constitutional rights to a fair trial, vacating his conviction and ordering his immediate release. One day later Wilson was free. ""I say it all the time, don't stop fighting. Don't give up. It seems like that's what the justice system wants you to do and I never gave up,"" Wilson said adding, ""By the grace of God I was put in contact with Loyola Law School."" His attorneys and students from the Loyola Law School Project for the Innocent worked to bring the new information to light. The information they found showed the prosecution had withheld information during the murder trial. Paying a heavy price Wilson had maintained his innocence since the day he was arrested for the stabbing death of a 21-year-old man in 1984. The man was sleeping in his truck when he was fatally stabbed. His girlfriend Saladena Bishop was also in the truck. Wilson's attorneys said the prosecution withheld key pieces of evidence concerning the main witness. According to the innocence project, Bishop picked Wilson out in a line up only after a police officer pointed to Wilson's photo asking: 'What about him?' Before Wilson's trial, police had deemed Bishop an unreliable witness because she had once filed a false police report accusing someone of kidnapping and attempted rape. Then there was Bishop's friend, who had revealed to the trial prosecutor that Bishop had stabbed her boyfriend in the past and was likely the killer. Loyola's innocence project says none of that evidence was handed over to Wilson's defense attorney. Wilson has paid a heavy price. Half his life has been spent in prison. He's missed 32 years of Christmas dinners, graduations, even the birth of his granddaughter, but he says he is not bitter. ""I'm past it. I just want to get something to eat right now and love my family,"" he said with a chuckle. What would he eat? ""Anything he wants,"" his sister Gwen Wilson chimed in. An emotional reunion He was clutching his daughter and sister's hand the entire time as he walked out of the LA County jail to a flurry of camera's and reporters. His daughter's eyes filled with tears when asked what it was like when she heard he was finally getting out. ""I couldn't breathe. I started crying."" Wilson's daughter Catrina Burke said. ""I don't have words. I don't have words at all. But I still have a parent."" Wilson's granddaughter snuggled under his arm tears dripping from her eyes while he talked. But his sister Gwen Wilson beamed saying she isn't going to focus on the wrong that was done to her brother who she idolized as a child. ""We just needed to love on him and keep him encouraged through it all. All we can do is keep our head up you know that's just it. We've always been a hopeful that one day...by the grace of God today is that day."" Wilson's mother who is 96 years old had long fought for her son's release from her home in Missouri. She believed her son. And he knew he had better call her the moment he was out. ""I talked to her,"" He said smiling, ""My mother was the backbone. She's a 96-year-old pit bull."" Wilson's sister Gwen chimed in with proof. She repeated the words of their no nonsense mother the moment Wilson called her as a free man, ""I didn't ask if you was alright. I said are you out?"" Indeed he was." -2726,2017/3/17,http://www.huffingtonpost.com/2017/03/17/even-ashley-graham-has-idiot-exes_n_15429840.html,Ashley Graham's Boyfriends Broke Up With Her For The Stupidest Reason,"Dumb move, dudes.","Even supermodels have to deal with jerks.- In a new interview-with People magazine,-Ashley Graham-""?arguably the most well-known plus-size supermodel in the world ""� said she relates to stories of body shaming from her younger fans because she's experienced it herself with former boyfriends. ""nothing's actually surprised me. I""ve lived exactly what they'r living. I""ve lived the torment of the names.-I""ve lived the torment of boyfriends breaking up with me because they were afraid I was going to be too fat later in life,""?the 29-year-old model-said at the Urban Arts Partnership 25th anniversary benefit. ""It's the same cycle, it doesn""t matter what generation we are in,""?she continued. ""Every kid is going to go through the same thing.""?Though Graham said she still has her days of self-doubt (""�I wake up sometimes and I think ""I'l the fattest woman alive,""?she admitted), a simple, totally steal-worthy morning-affirmation helps her get past it. ""It's really about how you handle it when you wake up,""?she told People. ""I look in the mirror and I have my affirmations. And mine are simple. [I say] ""�You are bold. You are brilliant and you are beautiful.""?And then if my lower pooch is really puffing out that day, I say ""Lower pooch you are cute""? And we have a moment. And if the hips are really popping I say ""I love you too hips.""That kind of self-love makes a huge difference ""?but it doesn""t hurt to have a partner who totally adores you, too. For Graham, that's her husband Justin Ervin, who was her friend before they started dating. The Vogue covergirl has been open about the couple's decision to wait until marriage to have sex. ""there was already this sexual tension, this roaringness,""?she told Entertainment Tonight last year. ""We had already established such a friendship that we had the two combine. Which, in my mind, just made magic, because now not only am I sleeping with someone that I trust and I love, but I know that he wants me. He affirms me all the time and lets me know how sexy and beautiful I am.""?Husband & Wife A post shared by A S H L E Y G R A H A M (@theashleygraham) on Mar 9, 2017 at 8:38am PST D'aww.- Share this slide: We'r basically your best friend... with better advice. Learn more", -2727,2017/3/17,http://www.huffingtonpost.com/2017/03/17/secret-service-laptop-stolen_n_15429814.html,Secret Service Laptop Holding Trump Tower Floor Plans Stolen From Agent's Car,"The theft on a Brooklyn, New York, street is a ""very big deal.""","A laptop computer containing Trump Tower floor plans and other sensitive intelligence was stolen from a Secret Service agent's parked vehicle in New York, authorities said. The theft occurred Thursday morning in Brooklyn, according to CBS News. The Secret Service confirmed the theft. ""secret Service issued laptops contain multiple layers of security including full disk encryption and are not permitted to contain classified information,""he Secret Service said in a statement. It's unclear whether the theft was random, or whether the agent was targeted, according to CBS New York. NYPD detectives are searching for the laptop. A police source told the New York Daily News that ""it's a very big deal""?and ""they'r scrambling like mad""?to catch the thief. Along with Trump Tower floor plans, the laptop contained sensitive information about the investigation into Hilary Clinton's campaign emails. Sensitive documents-also were taken from the agent's car, according to CBS2 News, which didn""t elaborate. Authorities said they are looking for a white man wearing dark clothing. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2728,2017/3/17,http://www.huffingtonpost.com/2017/03/17/trump-ignores-handshake-merkel_n_15429806.html,Trump Straight Up Ignores Request To Shake Hands With Angela Merkel,The two leaders haven't exactly seen eye to eye so far.,"President Donald Trump-has shown he can smile for the cameras while sitting next to world leaders he doesn""t exactly see eye to eye with. But when it came to shaking hands during a meeting with German Chancellor Angela Merkel on Friday-... game over. He let a press gaggle into the Oval Office, and videos of the interaction, which lasted about a minute, showed both leaders making awkward, surly faces. ""Can we get a handshake?""?one member of the press asked. Merkel looked in Trump's direction. He didn""t budge and most certainly didn""t return her gaze. So Merkel, despondent, turned back to the gaggle of cameras and flashed an uncomfortable smile: Photographers: Can we get a handshake? Merkel (to Trump): Do you want to have a handshake? Trump: *no response* Merkel: *makes awkward face* pic.twitter.com/ehgpCnWPg7 They did shake hands earlier in the day, when she first arrived at the White House. Merkel came to Washington to discuss issues related to both Germany and the U.S. including trade, immigration and the future of the North Atlantic Treaty Organization. It's hard to imagine more strained circumstances under which to meet.-Merkel has unequivocally denounced many of Trump's policy proposals, including his twice-proposed travel ban on several Muslim-majority countries. He's referred to Germany's welcoming of refugees as a ""Catastrophic mistake.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2729,2017/3/17,http://www.huffingtonpost.com/2017/03/17/this-honest-supermarket-ad-will-make-you-lose-your-appetite_n_15429804.html,This 'Honest' Supermarket Ad Will Make You Lose Your Appetite,You can call it the GROSS-ery store.,"You know the old advice that you shouldn""t shop at the grocery store when you'r hungry? Well, you might also want to avoid Cracked's new video before hitting the supermarket. The comedy site's ""If Grocery Store Commercials Were Honest""?features the lowdown on how your ""warehouse of acceptable sustenance""?makes sure you ""Lave all the stuff you didn""t know you wanted.""?And the stores operate in disturbingly similar ways. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2730,2017/3/17,http://www.huffingtonpost.com/2017/03/17/were-one-step-closer-to-brain-scans-that-can-reveal-criminal-intent_n_15429778.html,We're One Step Closer To Brain Scans That Can Reveal Criminal Intent,We could one day use neuroscience to determine a defendant's mental state.,"What if lawyers could prove that a person knowingly committed a crime by looking at scans of his or her brain? It sounds like something from a science fiction story, but a new study suggests that we may be one step closer to this reality. In the study, researchers analyzed brain scans and were able to pinpoint patterns of brain activity that predicted whether people committed certain acts ""knowingly,""?meaning that they knew without a doubt that they were committing a crime; or merely ""recklessly,""?meaning that they were not certain that they were committing a crime. And although much more research is needed before this type of technique would be reliable enough that it could be used in a court of law, the study suggests that in the future, it may be possible to determine the mental state of a defendant using neuroscience. [10 Things You Didn""t Know About the Brain] The mental state of a person at the time that he or she commits a crime can have major implications, according to the study, published today (March 13) in the journal Proceedings of the National Academy of Sciences. ""Imagine you are a juror in the trial of a defendant who admits to having transported a suitcase full of drugs across international borders,""?the researchers wrote in the study. ""however, you do not know how aware she was of the presence of the drugs in that suitcase. The degree of awareness she had at the time she crossed the border will make the difference to her criminal culpability, and, in turn, to the amount of punishment she faces.""?Depending on ""which side of the boundary [a person is] on between acting knowingly and recklessly,""?that person could be sent to jail for years, or released on probation, senior study author Read Montague, the director of the Human Neuroimaging Laboratory at the Virginia Tech Carilion Research Institute, said in a statement. To determine if there might be a difference in brain activity between someone who did something knowingly compared with doing it recklessly, the neuroscientists recruited 40 people for brain scans. The people asked to imagine themselves in the following scenario: They would have to carry a suitcase ""?which might or might not be filled with contraband ""?through a hypothetical checkpoint, according to the study. In the experiment, the researchers varied the probability that the suitcase the participant would be given contained ""laluable content.""?For example, in one scenario, a participant was presented with five suitcases, only one of which contained contraband. The participant wasn""t told which suitcase contained contraband, but because he or she was aware of the risk, he or she would be acting recklessly if they took one of the suitcases through the checkpoint. In another scenario, a participant might be presented with just one suitcase, so he or she would know that it definitely contained contraband. The researchers found that the patterns of the participants""?brain activity differed significantly, depending on whether they were acting knowingly as opposed to recklessly. For example, a part of the brain called the anterior insula was more active when the person knew for sure that he or she was carrying contraband, according to the study. This part of the brain has been implicated in other research that looked at risk and reward, the researchers wrote. Using a computer model that incorporated the brain scan data, the researchers ""were able to predict with high accuracy whether a person was in a knowing or reckless state,""?based on these patterns, they wrote. The use of brain scans in the context of law is not new, the researchers wrote in the study. For example, computers have been used to predict if certain individuals met the criteria for psychopathy. In addition, studies have been done that used brain scans to see what happened in the brains of jurors while they deliberated.- But the new findings ""suggest that the legally significant conceptions of knowledge (certainty that a particular circumstance exists) and recklessness (awareness of a possibility or probability that it exists) are distinctly represented in the human brain,""?the researchers wrote.- However, they stressed that their technique ""represents a proof of concept, and not yet a usable tool.""?There were several limitations to the study, the researchers said. For example, the areas of the brain that were activated during the scans could also be linked to other, unrelated mental states ""?meaning brain states that have nothing to do with knowledge or recklessness, they said. [Top 10 Mysteries of the Mind] In addition, larger studies that include a more diverse group of participants are needed, they wrote. And now that the findings show that there is a difference in brain states when someone is performing an activity, more questions need to be answered, Montague said. Researchers want to know which neural circuits are engaged by this brain activity, as well as how different pharmacological substances or brain injuries would affect these circuits, he said. ""�Understanding more about the way our brains distinguish between legally relevant circumstances in the world has the potential to improve what, up until now, has been the law's guesswork about the way in which certain mental conditions might impact criminal responsibility,""?the researchers wrote.- Originally published on Live Science. Share this slide: We'r basically your best friend""?with better taste. Learn more", -2731,2017/3/17,http://www.huffingtonpost.com/2017/03/17/frida-kahlo-emoji_n_15429476.html,"Frida Kahlo's Many Self Portraits Are Now Emoji, Or Rather, FridaMoji","Step aside Kim Kardashian, there's a new emoji queen in town.","Step aside Kim Kardashian, there's a new emoji queen in town. A set of 160 emoji featuring the stunning face of feminist art icon Frida Kahlo is headed to the App store this month. They'r called FridaMoji, and they'r pretty damn cute.- The emoji are the brainchild of Sam Cantor, a Los Angeles-based gallerist and graphic designer. After previously creating a series of art history emoji featuring artists like Van Gogh, Basquiat and Yayoi Kusama, Cantor sought to hone in on one artist in particular. Kahlo, who devoted her life to creating searing self-portraits that communicated her shifting states of pain, passion, isolation and ambition, was the clear choice.- ""Frida was just perfect for the project,""?Cantor told Artsy in an interview. ""she conveyed her emotions so honestly and openly in her work. What better artist to translate into emoji, which we use to express emotion today?""?Cantor knew, when embarking upon the project, he wanted the emoji to convey more than just a flower crown and a unibrow. So he dove deep into the archives of Frida's work, visiting Mexico City to see the legendary images in person. He eventually rendered 400 speculative FridaMoji and later narrowed the lot to 160.- Art nerds will get a kick out of matching FridaMoji to the Kahlo paintings they'r based on, including ""self Portrait with Monkeys""?and ""the Two Fridas.""?And hungover FridaMoji users will surely be thrilled to finally have a proper symbol to express their woes with the emoji inspired by ""the Wounded Deer.""We cannot quite imagine how Kahlo would react to seeing her many emotions channeled into cartoon creatures. But we feel confident that if Kahlo was alive today, the woman who showed the power of self-representation, the strength in vulnerability, the beauty in pain, would have had a great online presence.-", -2732,2017/3/17,http://www.huffingtonpost.com/2017/03/16/banard-college-divestment_n_15429448.html,College's Break With Climate Change Deniers Riles Debate Over Divestment Strategies,"Barnard College's approach may be more focused, but can it be effective?","Barnard College's Board of Trustees announced earlier this month that it had made a ""unique""?climate decision. After months of deliberation and mounting pressure from students, faculty and activists, Barnard, like hundreds of other institutions and colleges, had decided to divest from fossil fuels.- But there was a twist. Unlike some institutions that have opted for full divestment from the industry ""?in other words, getting rid of all stocks, bonds and investment funds linked to fossil fuels ""?the New York college had chosen a different tactic: It would instead specifically divest from companies that ""deny climate science or otherwise seek to thwart efforts to mitigate the impact of climate change.""?Barnard, which has about $18 million of investments in the fossil fuel industry, says it is the first U.S. college to take this ""unique and innovative approach,""?adding that the strategy was not a ""Compromise between the polar positions of no divestment and full divestment.""?Rather, ""we believe that it is clearly superior to either alternative,""?explained faculty members on the task force that made the recommendation. WIN! Barnard College will #divest from fossil fuel companies that have been *knowingly* driving the climate crisis. https://t.co/K5wIwC3YRl The response from climate scientists and activists has been mixed. Some lauded the college's strategy ""?the climate-focused nonprofit 350.org said it was ""ghrilled""?at Barnard's ""unprecedented decision.""?Others agreed with the school's assessment that the approach could be the most effective divestment model adopted to date in the fight against climate change. David Keith, a leading climate scientist and professor of both applied physics and public policy at Harvard University, called Barnard's plan a ""smart approach.""?Scott Wisor, former deputy director of the Center for the Study of Global Ethics at the U.K.'s University of Birmingham and a divestment skeptic, described it as ""A very positive development.""But doubts remain.- Divestment in general has long been criticized as a poor climate strategy. And experts said this week that though Barnard's approach may be more enlightened than most, it still has some of the same flaws that mar the movement's reputation. ""I wish it would work,""?said Ivo Welch, a professor of finance at UCLA commenting on Barnard's announcement. ""But it is exceedingly likely that it will not.""?The idea to get institutions to cut ties from fossil fuels as a way to tackle climate change was born on university campuses in the U.S. in 2011. Students from Swarthmore College were the first to lead a protest calling for their school to divest from fossil fuels (to this day, demonstrations continue at Swarthmore, which has repeatedly rejected divestment). By the end of the year, Hampshire College ""?the first school to divest from South Africa during apartheid ""?became the first educational institution to divest from the fossil fuel industry. Since then, more than 700 institutions worldwide have hopped on the divestment bandwagon, affecting more than $5 trillion in assets, according to Go Fossil Free, 350.org's divestment campaign. More than 100 universities and colleges, including Stanford, Yale, Georgetown and the University of California in the U.S. and Britain's Oxford University, have committed to either partial or full divestment. Advocates of the movement have said such actions could send an important message and even put economic pressure on fossil fuel firms. Opponents, however, have pointed out what they see as divestment's fatal flaws. ""If the aim of divestment campaigns is to reduce companies""?profitability by directly reducing their share prices, then these campaigns are misguided,""?wrote William MacAskill, co-founder of the Center for Effective Altruism, in a 2015 New Yorker article on divestment's viability. ""suppose that the market price for a share in ExxonMobil is ten dollars, and that, as a result of a divestment campaign, a university decides to divest from ExxonMobil, and it sells the shares for nine dollars each. What happens then? Well, what happens is that someone who doesn""t have ethical concerns will snap up the bargain,""?MacAskill wrote. ""they'll buy the shares for nine dollars apiece, and then sell them for ten dollars to one of the other thousands of investors who don""t share the university's moral scruples. The market price stays the same; the company loses no money and notices no difference.""?In a 2014 op-ed titled ""Why Climate Change Divestment Will Not Work,""?Wisor argued that the movement would invariably fail because it casts too wide a net. It assumes fossil fuel companies are a monolithic group, and thus fails to ""distinguish between those companies who are more and less responsible in their environmental stewardship.""?The demands made of these firms are also ""poorly defined,""isor wrote.- ""What can [a company like] Chevron do to avoid shareholder divestment? According to campaigners, they must: stop searching for new hydrocarbons, stop lobbying for special breaks from government, and commit to leaving 80 percent of their existing reserves in the ground,""?he said. ""It is reasonable for shareholders to seek to restrain pernicious lobbying by energy companies, but the other two requests essentially call on them to stop being energy companies.""Barnard, in its decision to adopt a more targeted approach to divestment, said it was hoping to address these very shortcomings. - The women's college, which is affiliated with New York's Columbia University, said it recognized the limitations of full divestment.- ""We believe that full divestment would have a negligible effect on the balance sheets of firms, and hence on their stock prices or costs of capital. It would therefore be a largely symbolic gesture,""?said faculty members involved in the divestment decision.-(Columbia University, incidentally, announced this week that it will be divesting from some coal companies, following fierce student protests including a sit-in last year.) Barnard explained that by singling out companies that have specifically denied climate science, there could be ""much stronger incentives for firms to bring their pronouncements and actions into better alignment with the available scientific evidence.""?The college added that it hoped its decision to divest from climate-skeptical companies would increase public pressure on those firms and push other institutions to adopt similar strategies. ""We hope to lead by example and establish best practices for other institutions who seek to do their part to mitigate climate change,""?Rob Goldberg, Barnard's interim president and chair of the college's task force to examine divestment,-told HuffPost over email.- As far as divestment strategies go, climate experts said, Barnard's approach could be one to emulate.- The long-term climate goal, said Keith, the Harvard professor,-should be to ""Change the laws so as to discourage and eventually prohibit use the atmosphere as a waste dump for carbon,""?but in the meantime, ""we need supply of fossil fuels to keep the energy system running, but we don""t want fossil companies to block efforts at reform.""Wisor agreed. ""I think it is a very positive development that the divestment campaign might begin to make demands of fossil fuel companies that detail precise and feasible actions the companies could take to avoid shareholder divestment,""?he said. But, Wisor cautioned, he sees two major flaws in Barnard's strategy. First, the Barnard trustees have not yet specified what will count as climate change denial. Goldberg said this week that the school is still ""working to identify ways to objectively assess companies ... and to develop measurable criteria that we will use to define climate deniers.""And second, said Wisor, ""even if Barnard develops useful criteria for this task,it will do no good if the criteria is not shared across the divestment movement.""?""If one investor asks companies to stop denying climate science and another asks them to keep their assets in the ground and a third asks them to stop investing in new exploration, there is no clear signal being sent to companies about what will put them back in the good graces of investors,""?he said.- MacAskill, who's also an associate philosophy professor at the University of Oxford, said this week that he stands by his previous assessment that ""Actual divestment doesn""t do much""?and that a targeted approach would have no more impact.- ""the main value of the divestment movement is the media attention surrounding climate change that it generates ""?hopefully this is putting the spotlight on how bad fossil fuel companies are and encouraging people (and in particular university students) not to work for these companies,""?he wrote in an email. ""so Barnard's approach would only be better if it was especially good at generating negative media attention.""Welch, the UCLA finance professor who has studied how U.S. divestment movements affected the South African financial market during apartheid, said there are-better strategies that institutions like Barnard could adopt to tackle climate change.- ""If they wanted to do something productive, they should put the money to help support the development of cleaner energy technologies, instead,""?he said this week. ""�After all, they are in a scientific research university, which does R&D for a living.""?Welch had said earlier that he believes ""�humanity's best hope is cheaper clean technology, mass-deployed.""?""�This is actually more feasible than one may believe-""?though even this may take political will far beyond what governments can muster these days,""?he wrote on his blog in 2014. In a 2013 op-ed, Keith explained why he remained a strong supporter of the university divestment movement,-even while acknowledging that divestments from educational institutions are a ""weak lever with which to move the world's energy [sic] multi-trillion dollar energy industry.""?""�Everyone I have talked to in the divestment movement is aware that divestment ... would accomplish little. But if the students should succeed in forcing major educational institutions to divest, they will have necessarily convinced university boards, some of the country's political and financial elite, to take the problem seriously,""?Keith wrote.- Plus, he added,-he's enthusiastic about the students""?commitment to talk about the ethical issues associated with climate change. At Barnard and Columbia, student activists have been leading the charge in pushing their institutions to take a stand on climate change. Students at the two schools have been mobilizing and organizing for at least three years around the issue. Last April, dozens of students held a sit-in outside Columbia's Low Library despite facing possible suspension for their activism. ""I respect the energy and brainpower of the students with whom I work,""?Keith said in his op-ed. ""the divestment movement marks the first time in my quarter century involvement with climate change that I have encountered such a strong and disciplined commitment to activism. I have not seen its like since the disarmament movement of the early eighties.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2733,2017/3/17,http://www.huffingtonpost.com/2017/03/16/breaking-bad-creator-walter-white-theories_n_15429374.html,'Breaking Bad' Creator Somehow Gives Walter White Truthers Hope,"Tread lightly, ""Breaking Bad"" fans.","Walter White is the one who knocks, but he might not be knocking on heaven's door just yet. Following the ""Breaking Bad""?finale in 2013, it be easy to assume White (Bryan Cranston) was dead, right? Let's review the evidence: In the final episode, we see White remotely fire a machine gun from his car's trunk into the Neo-Nazi hideout, killing nearly everyone and also apparently injuring himself. He starts bleeding a lot. After telling Lydia (Laura Fraser) over the phone that he poisoned her with ricin and watching Jesse (Aaron Paul) escape, White walks among meth-making equipment and eventually collapses.-The final image we'r left with is White, who's also supposedly already dying of cancer, lying motionless on the ground in blood-soaked clothes as the cops rush in. To any casual viewer, he's dead. He's clearly very dead. But that's not enough for theorists. Since that time, ""Breaking Bad""?fans have come up with elaborate (and convincing) theories about how White could""ve survived. One idea explained on The Film Theorists-YouTube channel even takes into account the height of the car in which White installed the machine gun. The video determines that White's injury is not as bad as we thought; and the police, who were right on the scene, likely ensured that he would survive to face trial. The theory also claims that his cancer (surprisingly) could""ve helped his blood clot better, perhaps saving his life. If you haven""t seen the video, it's pretty fantastic: Then, of course, there's the fact that Bryan Cranston-also fed into the speculation, hinting that White may have survived. ""Hey, you never saw bags zip up or anything,""?he teased to CNN.- Finally, ""Breaking Bad""?creator Vince Gilligan had a chance to clear things up on Thursday. Gilligan participated in a Reddit AMA as a way to promote a contest to join him and Bob Odenkirk at the ""Better Call Saul""?Season 3 premiere, benefiting Geffen Playhouse and Autism Speaks. During the AMA,-Gilligan was asked that one big question: ""Is Walter White dead?""?His answer? ""sure looked that way to me.""?Now, to a casual viewer, this might be acceptable. But not to die-hard ""Breaking Bad""?fans. ""Looking""?dead just isn""t good enough. One fan even pointed out the literal doctor from ""Arrested Development""?as proof that it was a cagey answer. Another brought back everyone's favorite ""Westworld""?quote. (Does this mean Walter White is also the Man in Black?) Is Walter White actually dead?- Gilligan's answer may be enough for some, but to others the theory is still alive and well. we'll see all you truthers on-SaveWalterWhite.com. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2734,2017/3/17,http://www.huffingtonpost.com/2017/03/17/irish-pm-st-patricks-day-trump_n_15429320.html,Irish Prime Minister Uses St. Patrick's Day To Praise Immigration In Front Of Trump,"""We came ""?and we became ""?Americans.""?,Ireland's Prime Minister Enda Kenny used his annual visit to the United States right before St. Patrick's Day to throw a not-so-veiled rebuke at President Donald Trump's draconian immigration proposals. The takeaway: Saint Patrick himself was an immigrant"," so don""t forget about the 35 million Irish immigrants who are vibrant contributors to the fabric of American society. ""though he is of course the patron saint of Ireland","""?Kenny said Thursday at a joint news conference with Trump. ""We believed in the shelter of America" -2735,2017/3/17,http://www.huffingtonpost.com/2017/03/17/long-intense-exercise-linked-to-lower-libido-in-men_n_15429318.html,"Long, Intense Exercise Linked To Lower Libido In Men",Over-training suppresses testosterone production.,"(Reuters Health) ""?Men who routinely do unusually intense or long workouts may be less likely to have a normal libido than their peers who don""t work out so hard, a recent study suggests. Even though being overweight and sedentary has long been tied to low sex drive, or libido, some previous research has also linked endurance workouts like marathon training or long distance cycling to reduced levels of the male sex hormone testosterone and lower libido. For the current study, researchers examined survey data on exercise habits and libido for 1,077 healthy men. Compared to men with the most intense exercise regimens, men with the lowest intensity workouts were almost 7 times more likely to have a normal or high libido, the study found. Similarly, men who spent the least time on exercise were about four times more likely to have a high or normal libido as men who devoted the most time to training. ""�Our study is the first to examine the influence of large volumes of exercise training over a period of years,""?said lead study author Dr. Anthony Hackney, a researcher in exercise physiology and nutrition at the University of North Carolina, Chapel Hill. The study isn""t a controlled experiment designed to prove that intense exercise lowers libido or why this might occur. But low testosterone after years of hard-core training is a likely culprit, Hackney said by email. ""�Our goal and research question was not to examine how to boost men's libido, but to make clinicians aware when counseling couples who have infertility issues it is important to ask the male about their exercise habits, something that might not be typically done,""?Hackney added. About 47 percent of the men with the lowest libido in the study reported exercising more than 10 times a week, and 65 percent of them said they got more than 10 hours of exercise each week. By contrast, less than 7 percent of the men with normal or high libido exercised more than 10 times weekly, and only about 22 percent of these men reported exercising more than 10 hours a week, researchers report in Medicine and Science in Sports and Exercise. For all of the men, running was the main form of exercise, with 88 percent of participants with low libido citing this as their usual workout along with 80 percent of men in the normal to high libidogroup. One limitation of the study is that researchers asked participants to complete the online survey only once but sent multiple reminders, making it possible that some people participated multiple times, the authors note. The study also relied on men to accurately recall and report on their exercise habits and libido. Still, the findings make sense based on previous research on the impact of intense exercise on the body, said Dr. Joan Khoo, a researcher at Changi General Hospital in Singapore who wasn""t involved in the study. ""�Over-training suppresses production of testosterone and other hormones which stimulate libido and sperm production in men, in a similar way to how high levels of intensive exercise training suppresses estrogen production, menstrual cycles and fertility in women,""?Khoo said by email. This doesn""t necessarily mean that cutting back on exercise is a good idea, Khoo said. ""�Regular moderate-intensity aerobic exercise reduces unhealthy fat accumulation and improves cardiovascular fitness, metabolic health and testosterone production in men ""?especially overweight or previously sedentary men,""?Khoo said. ""�I don""t think the majority of men are over-training as defined by this study, but men who train a lot and are apparently very fit and healthy but have been experiencing reduced libido and sexual function may want to cut back on their exercise training if it is excessive,""?Khoo advised. SOURCE: http://bit.ly/2nKi0ia Medicine and Science in Sports and Exercise, online February 13, 2017. Share this slide: We'r basically your best friend""?with better taste. Learn more", -2736,2017/3/17,http://www.huffingtonpost.com/2017/03/17/ai-sex-doll-human-touch-sergi-santos_n_15429300.html,Engineer Creates Sex Robot That Needs To Be Romanced First,"She likes kissing, hugging and Ed Sheeran.","Sergi Santos is a man with a mission: He wants to make sure robotic sex dolls that enjoy the sex as much as the humans ""?or at least act like they do. The Barcelona-based engineer has just created a sex doll named ""samantha,""?who is equipped with the latest advancements in artificial intelligence. As the video above demonstrates, Samantha responds when the user touches her hands and hips by saying positive statements like ""I love this""?and ""nice and gentle""?in a singsong voice. ""Basically she likes to be touched. She has different modes of interaction ""?she has romantic, she has family and she has also sexy modes,""?Santos told Ruptly TV. Santos also said she ""likes""?to be kissed while putting his finger in her mouth, in a manner that's not awkward at all. Santos said it doesn""t take much for Samantha to respond to romantic overtures. ""normally she likes to be kissed always and also she responds to, basically, the G-spot and also the breasts,""?he said. ""she also responds to the hands.""?However, she's no sure thing. Santos said she is programmed to want romance first, then get comfortable before getting sexual. ""the objective, the final objective of the sexual mode is to give her an orgasm,""?said Santos. Watch her heated response in yet another awkward screenshot: Santos is now selling Samantha at Syntheaamatus.com for around $5,374. The video below shows the doll expressing both affection and fear of rejection before getting aroused enough to ask for an Ed Sheeran song on Pandora. Santos""?sex doll may be an advancement over other robots, but he admits some family members wish he focus his priorities on other pursuits. ""Ty aunt asked me if you can create a doll to cook,""?he told the Catalan language website Regio 7.-""And I said, ""Yes. It's a question of price.""?Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2737,2017/3/17,http://www.huffingtonpost.com/2017/03/17/joe-biden-trump-transgender-rollback_n_15429268.html,Joe Biden Blasts Trump Administration For Rolling Back Trans Protections,"Americans ""face some real challenges"" ahead, Biden warned.","Count former Vice President Joe Biden among those who are frustrated by President Donald Trump's decision to roll back federal protections for the transgender students last month.- Accepting the HELP HERO Humanitarian Award in New York Thursday, Biden, 74, doubled down on his longstanding support of trans people-in a passionate speech. Although he didn""t mention Trump by name, he nonetheless blasted the current administration for having ""shift[ing] the focus""?on LGBTQ issues in his speech, which was otherwise focused on domestic violence.- ""As much great work as We're done, we face some real challenges ahead. We thought things were moving in the right direction,""?Biden told the crowd at Manhattan's Plaza Hotel, as seen in the video above. ""But there's a changing landscape out there, folks, and we have a hell of a lot of work to do.""The national focus on so-called ""bathroom bills""?like North Carolina's House Bill 2, Biden said, largely detracted from other, more serious issues facing the LGBTQ community, specifically trans folk.-""Instead of focusing on the fact that 40 percent of the homeless youth on the street are identified as lesbian, gay, bisexual and transgender [and] rejected by their families out on the street, and what do we do about that, we'r now focusing on whether or not a transgender child, which bathroom they can use.""Later in the speech, he added, ""This isn""t politics, guys. This isn""t Democrat/Republican, this is life and death. This is sanity and insanity.""Biden accepted the HELP HERO award from New York Gov. Andrew Cuomo, who helped to found HELP USA, which is focused on homelessness and housing needs, nearly 30 years ago. The former vice president's remarks echoed sentiments he expressed in 2012, when he called transgender discrimination ""the civil rights issue of our time.""?For more ways to combat bigotry, check out the-Queer Voices newsletter. -- How will Trump's first 100 days impact you? Learn more", -2738,2017/3/17,http://www.huffingtonpost.com/2017/03/17/katrina-girl-join-military-after-sergeant-rescued-her_n_15428992.html,'Katrina Girl' Inspired To Join The Military 12 Years After Sergeant Rescued Her,The two formed a strong bond after reuniting.,"In a rare joyous moment amid the pure-dismay of Hurricane Katrina,-an Air Force pararescuer saved a 3-year-old girl and her family from the floods in 2005. After the rescue, the little girl gave the man a huge hug that was captured in an iconic photo. The moment left a lasting impact on both LaShay Brown and Master Sgt. Mike Maroney. The duo reunited a decade later and have kept in touch ever since. Maroney has visited LaShay, now 14, and her family in Mississippi, and they speak on the phone weekly, according to People. He even taught her how to swim. LaShay said Maroney's support has inspired her to join the military one day. She said she doesn""t know which branch yet, but Maroney supports her. ""I am proud of her no matter what she does and will support her in everything she does,""?he told People. ""I think she understands service and I believe that she will do great things no matter what she chooses.""?Maroney also inspired LaShay to join the Junior Reserve Officer Training Corps at her high school. ""It was very interesting and a challenge, and because I had never done it before,""?she told People.-""I knew if I joined I would have help from Mike along the way if I needed it, or was confused about anything.""?Guess who I am with at the Spurs game!! Go Spurs Go!! #KATRINAGIRL : ) A post shared by Mike M (@mahroney) on Mar 24, 2016 at 5:26am PDT Maroney, who will retire from the Air Force this month because of an injury, will accompany LaShay to her JROTC ball on Saturday. He said that he's going because LaShay and her family-""mean as much to [him]-as [his]-own.""?Maroney, who was suffering from post-traumatic stress disorder when he rescued LaShay, set out to find the teen in 2015 with the hashtag #FindKatrinaGirl.-He said that he looked at the photo of the two while he was deployed in Iraq and Afghanistan to get him through difficult times. When they were reunited on ""the Real,""?he told LaShay how much her hug meant to him. ""that small gesture, it helped me through bad days and dark days,""?he told her. ""You have a beautiful smile and it stuck with me and it's helped me and has meant a lot to me. So I'm indebted to you. You rescued me more than I rescued you.""?Share this slide: How will Trump's first 100 days impact you? Learn more", -2739,2017/3/17,http://www.bbc.co.uk/news/uk-39300191,US will 'not repeat' claims GCHQ wiretapped Donald Trump,The US has agreed not to repeat claims the UK's communications intelligence agency wiretapped Donald Trump during the presidential election campaign.,"The US has agreed not to repeat claims the UK's communications intelligence agency wiretapped Donald Trump during the presidential election campaign. GCHQ rejected allegations made by White House press secretary Sean Spicer, that it spied on Mr Trump, as ""nonsense"". No. 10 has been assured by Mr Spicer he would not repeat the claims, which he cited from US TV channel Fox News. The White House has said that Mr Spicer was ""simply pointing to public reports, not endorsing any specific story"". A spokesman for Prime Minister Theresa May said it had been made clear to US authorities the claims were ""ridiculous and should have been ignored"". Former foreign secretary Sir Malcolm Rifkind said it was not enough to promise not to repeat the allegation. ""That's not the same as saying it was rubbish in the first place,"" he told the BBC. GCHQ rejected the allegations as ""utterly ridiculous"". The unusual move by the agency to comment on the news came after Mr Spicer cited claims first made on Fox News earlier this week. Mr Trump said Trump Tower in New York was under surveillance, but has provided no evidence for the claim. The allegations of GCHQ involvement were initially made by former judge Andrew Napolitano. Mr Spicer quoted Mr Napolitano as saying: ""Three intelligence sources have informed Fox News that President Obama went outside the chain of command."" He said Mr Obama ""didn't use the NSA, he didn't use the CIA, he didn't use the FBI and he didn't use the Department of Justice, he used GCHQ. ""What the heck is GCHQ? That's the initials for the British spying agency. They have 24/7 access to the NSA database."" A GCHQ spokesman said: ""Recent allegations made by media commentator Judge Andrew Napolitano about GCHQ being asked to conduct 'wiretapping' against the then president-elect are nonsense. ""They are utterly ridiculous and should be ignored."" By Frank Gardner, BBC security correspondent: It's a bad day for the transatlantic intelligence community when Britain's largest and best funded spy agency - GCHQ - has to come out and publicly contradict a claim made by its closest ally. GCHQ, MI6 and MI5 rarely, if ever, comment on ongoing intelligence stories in the news. But the allegation made by Mr Spicer was seen as so potentially damaging - as well as being untrue - that it was decided to make an exception. The BBC understands that a discussion was held earlier this week in No 10 on whether and how to respond. When Mr Spicer repeated his claim of GCHQ collusion on Thursday the strongly-worded denial was written and published. Career intelligence officers on both sides of the Atlantic will now be at pains to protect their historically-close relationship from any further perceived gaffes coming out of the White House. Sir Malcolm, speaking on BBC Radio 4's World at One, said the allegations were ""foolish and very dangerous"" as they implied UK government involvement. ""It's not just about GCHQ"", he said. ""The inference is that the British government - either directly or indirectly - were involved."" Former MI5 intelligence officer Ben Owen said he would be ""shocked"" if the claims turned out to be true. ""It's not something GCHQ would do"", he told the BBC's Victoria Derbyshire programme. ""They have to stick to the letter of the law."" He said leaks by Edward Snowden, a former contractor for the CIA, had eroded public trust in intelligence agencies. ""These stories have more credence with the public,"" he said. The allegations relate to Mr Trump's earlier claim that his phones were tapped by predecessor Barack Obama during the presidential race. He tweeted on March 4: ""Just found out that Obama had my 'wires tapped' in Trump Tower just before the victory. Nothing found."" A Senate committee on Thursday concluded that there were ""no indications"" Trump Tower was under surveillance by the US government before or after the election. Michael Clarke, the former director of the defence think tank Rusi, said that relations between President Trump and US agencies had ""got worse"". He told BBC Radio 4: ""After the election, it was hoped that the relationship between President Trump and the American agencies would settle down and it hasn't."" Mr Spicer said Mr Trump stood by his allegations. GCHQ is one of three UK intelligence and security agencies, along with MI5 and MI6. It delivers signals intelligence - the intercepting of communication between people or electronic devices - to the prime minister and foreign secretary. The agency credits its ""particularly strong"" relationship with its US equivalent, the National Security Agency, to the collaboration it began at Bletchley Park during World War Two.", -2740,2017/3/17,http://www.bbc.co.uk/news/uk-39304944,George Osborne to become editor of London Evening Standard,"Former Chancellor George Osborne is to become editor of the London Evening Standard newspaper, in a surprise move that has angered opposition MPs.","Former Chancellor George Osborne is to become editor of the London Evening Standard newspaper, in a surprise move that has angered opposition MPs. The Tory MP said he was ""thrilled"" to succeed Sarah Sands, who is leaving to edit the BBC's Today programme. Mr Osborne, who is to edit the paper four days a week, intends to stay on as MP for Tatton, in Cheshire. But he is facing calls to quit politics altogether, with Jeremy Corbyn calling the appointment a ""joke"". The Labour leader said he wanted an immediate by-election in Tatton, the seat Mr Osborne has represented since 2001 and is due to be abolished at the next election. ""The appointment makes a mockery of the independence of the media,"" Mr Corbyn said. ""It takes multitasking to a new level and is an insult to the electors he is supposed to serve."" The Standard's proprietor, Evgeny Lebedev, said Mr Osborne was ""London through and through"" and he was confident that the MP was ""the right person to build on the fantastic legacy of Sarah Sands"". ""I am proud to have an editor of such substance, who reinforces The Standard's standing and influence in London and whose political viewpoint - socially liberal and economically pragmatic - closely matches that of many of our readers,"" tweeted Mr Lebedev. The newspaper said Mr Osborne would work as editor an ""average of four days a week"" and its schedule would enable him to ""continue to fulfil his other commitments, including as an MP; giving him the time to vote and contribute in Parliament in the afternoon after the paper has gone to print, and be in his constituency"". Mr Osborne, who earlier addressed Standard journalists in the paper's news room, said it was a ""great honour"" to be asked to take charge of one of the UK's most influential newspapers. The 45-year old sought to play down concerns about his political neutrality, saying he would be ""independent"" and ""fearless"" in speaking up for Londoners' interests. ""Growing up as a Londoner, I've always known that the Evening Standard is an institution that plays a huge part in the life of the city and its people,"" he said. Mr Osborne added: ""I am proud to be a Conservative MP, but as editor and leader of a team of dedicated and independent journalists, our only interest will be to give a voice to all Londoners. ""We will judge what the government, London's politicians and the political parties do against this simple test: is it good for our readers and good for London? If it is, we'll support them; if it isn't we'll be quick to say so."" He told the newspaper's journalists ""I've got to learn from you because I may have run the country but I haven't actually run a newspaper. I know there's a lot for me to learn."" Amol Rajan, the BBC's media editor who is a former editor of The Independent, said that as an afternoon paper, the Standard is sent to the printers at 11:00 GMT. Mr Osborne will get into the office around 05:00 GMT, work until midday, and then balance his other duties thereafter, he added. Most people who edit newspapers will have spent years crafting headlines, sub-editing copy, designing pages, planning stories, and above all reporting. Osborne has never done any of that, and will need to grasp some basic skills very quickly if he is to keep Standard staff on-side. Read Amol's full blog Patti Goddard, president of the Tatton Conservative Association, said it fully supported the former chancellor on his ""exciting"" career move, insisting it would not affect his reputation as a ""hard-working"" constituency MP. Mr Osborne has been congratulated by London Mayor Sadiq Khan, who said he would be covering the ""world's greatest city"". But Labour's John Mann said Mr Osborne was already ""invisible"" in Parliament and accepting a new job ""devalued"" democracy while fellow Labour MP Paul Flynn criticised what he said was the ""revolving door"" between government and the private sector. Green Party co-leader Caroline Lucas said she would be seeking assurances in Parliament that the Conservatives would not exert ""undue influence"" over the newspaper and called for Mr Osborne to be removed from the Privy Council so he would not have access to any confidential government briefings. Robert Barrington, director of campaign group Transparency International, said it was an ""astonishing conflict of interest"" that damaged democracy and ""smacks of greed and the accumulation of power"". Former Tatton MP Martin Bell said his first reaction to the announcement was that it ""sounds like fake news to me"", suggesting on BBC Radio 5 Live that the politician would have to be ""superman"" to combine his various roles. Former Labour leader Ed Miliband joked on Twitter that he would ""shortly be announced as editor of Heat magazine"" while Lib Dem leader Tim Farron suggested his next job would be as editor of the adult comic Viz. Since leaving frontline politics, the former chancellor has become a visiting fellow at a US university and an adviser to US fund manager BlackRock, for which he is being paid ?650,000 for four days work a month. Mr Osborne, who was chancellor for six years, had ambitions to be a journalist as a young man. He failed to get a place on The Times' trainee scheme after graduating from Oxford University - at which he edited its Isis magazine - and was briefly a freelance reporter on the Daily Telegraph's diary column. Defending his new job, he told BBC News ""there are plenty of examples of MPs who've edited newspapers and magazines over the years"". His Conservative colleague Boris Johnson edited The Spectator magazine while an MP but agreed to stand down as a condition of joining David Cameron's front bench team in 2005. The now foreign secretary - who was endorsed by the Standard when he ran for London mayor in 2008 and was re-elected in 2012 - said Mr Osborne's appointment was ""brilliant"" and ""good"" for the city. Most other examples of MP journalists, such as Labour's Michael Foot, who edited the Evening Standard, and Conservative Bill Deedes, who edited the Daily Telegraph, did not do both jobs at the same time. The National Union of Journalists said the appointment was a ""blatantly cynical"" political move at a time when staff were facing pay cuts and reduced hours. But it said it looked forward to receiving Mr Osborne's application to become a member of the union.", -2741,2017/3/17,http://www.bbc.co.uk/news/health-39305640,'Huge advance' in fighting world's biggest killer,"An innovative new drug can prevent heart attacks and strokes by cutting bad cholesterol to unprecedented levels, say doctors.","An innovative new drug can prevent heart attacks and strokes by cutting bad cholesterol to unprecedented levels, say doctors. The results of the large international trial on 27,000 patients means the drug could soon be used by millions. The British Heart Foundation said the findings were a significant advance in fighting the biggest killer in the world. Around 15 million people die each year from heart attacks or stroke. Bad cholesterol is the villain in heart world - it leads to blood vessels furring up, becoming easy to block which fatally starves the heart or brain of oxygen. It is why millions of people take drugs called statins to reduce the amount of bad cholesterol. The new drug - evolocumab - changes the way the liver works to also cut bad cholesterol. ""It is much more effective than statins,"" said Prof Peter Sever, from Imperial College London. He organised the bit of the trial taking place in the UK with funding from the drug company Amgen. Prof Sever told the BBC News website: ""The end result was cholesterol levels came down and down and down and we've seen cholesterol levels lower than we have ever seen before in the practice of medicine."" Brain activity 'key in stress link to heart disease' Blood test for hidden heart disease Moments of joy 'can damage heart' Heart disease: The forgotten killer? The patients in the trial were already taking statins and yet their risk was cut further by the new therapy. Prof Sever added: ""They would have another 20% reduction in risk and that is a big effect. It is probably the most important trial result of a cholesterol lowering drug in over 20 years."" The findings were published in the New England Journal of Medicine and also reported at a meeting of the American College of Cardiology. The study showed that one heart attack or stroke was prevented for every 74 patients taking the drug in the two-year trial. It is too soon to know if the drug is saving lives. Evolocumab is an antibody just like the weapons used by the immune system to fight infection. However, it has been designed to target a protein in the liver with the name PCSK9. And ultimately it makes the organ better at whipping bad cholesterol out of the blood and breaking it down. Other trials have shown such antibodies have cut bad cholesterol levels by 60% and Amgen is not the only company looking at this approach. The antibody is given by injection into the skin every two to four weeks. However, Prof Sever said: ""They will probably not [replace statins], there are an awful lot of people with really quite high cholesterol out there and we'll probably need more than one drug to get their levels down."" The cost varies, but it is thought to cost the UK's NHS about ?2,000 per year per patient where it is already being given to people who do not respond to statins. Prof Sir Nilesh Samani, the medical director at the British Heart Foundation, said: ""This trial is a significant advance. ""However, the trial was stopped early after only 2.2 years of average follow-up and therefore it is difficult to be certain about the actual extent of the longer term benefit, including the impact on dying from heart disease, as well as longer term safety."" Follow James on Twitter.", -2742,2017/3/17,http://www.bbc.co.uk/news/world-us-canada-39310793,US Secret Service laptop stolen,A US Secret Service laptop with Trump Tower floor plans and other sensitive material has apparently been stolen from an agent's vehicle in New York.,"A US Secret Service laptop with Trump Tower floor plans and other sensitive material has apparently been stolen from an agent's vehicle in New York. The laptop, which was protected by encryption, was taken on Thursday, the Secret Service confirmed. The computer has details on the criminal inquiry into former Democratic candidate Hillary Clinton's use of private email, according to ABC News. Police are looking at surveillance footage to identify a suspect. The Secret Service released a statement saying ""an employee was the victim of a criminal act in which our Agency issued laptop was stolen"". The agency added that its computers ""contain multiple layers of security including full disk encryption and are not permitted to contain classified information"". Secret Service ""lapel assignment pins"" for President Donald Trump, the Clinton campaign and the United Nations General Assembly were also taken along with the laptop, according to US media. The investigation is ongoing.", -2743,2017/3/17,http://www.bbc.co.uk/news/uk-scotland-edinburgh-east-fife-39305042,"No punishment for man who raped girl, 12",A man who admitted raping a 12-year-old girl has walked free from court.,"A man who admitted raping a 12-year-old girl has walked free from court. Daniel Cieslak, 21, had believed the girl - who he met in a taxi queue in Edinburgh in July 2015 - was 16. He burst into tears when police later revealed her true age. The judge, Lady Scott, said she was taking the ""wholly exceptional decision"" not to sentence Cieslak. Instead, she gave the first offender an absolute discharge at the High Court in Glasgow. She said: ""I do not consider there is any need for, or public interest in, punishment. To do so would in my view be disproportionate given the nature of the criminal culpability here."" Student Cieslak, who was 19 at the time of the offence, had earlier pleaded guilty to the rape charge. The court heard that the girl had travelled to Edinburgh on a Friday in July with her 13-year-old friend, where they met more friends and bought vodka. In the early hours of the following morning, police searching for another girl who was missing spoke to the 12-year-old in Princes Street. Prosecutor Kath Harper said officers had not noted her details ""as they were not concerned by her age"". At about 04:00, the girl and her friend met Cieslak and one of his friends in a taxi queue. The victim said she was 16 and her friend was 17. The taxi driver later said he thought the girl was 20. Cieslak then invited them to a party at his friend's house, where he had sex with the 12-year-old. The court heard she left the next morning, and there had been no suggestion of her being distressed. The offence came to light days later after the girl told her sister she was ""extremely worried"" she could be pregnant. An absolute discharge is given instead of sentencing an offender. It is not a conviction - although it may put before the court if the offender appears again for another offence. It is used ""when the court is of the opinion, having regard to the circumstances, including the nature of the offence and the character of the offender, that it is inexpedient to inflict punishment"". This is a highly unusual case, and the judge has pointed out a number of ""exceptional circumstances"" in it, as she sought to explain why she passed the most lenient sentence allowed in law. At its heart is the fact that the girl in question looked over 16 - even the judge accepts that, having viewed CCTV footage. Police officers looking at night for under-age children in the streets of Edinburgh had no concerns about her age. Also, the girl engaged in sex willingly. So why was Daniel Cieslak prosecuted? Rape laws, which were strengthened in 2009, do not allow any child under the age of 13 to give informed consent about sexual intercourse. So if it happens, in the eyes of the law, it is rape; there is no defence of consent. Under the strict definition of the Act, prosecutors were bound to charge Mr Cieslak who, in any case, admitted the offence. But the judge has exercised her sentencing powers to impose no punishment on him. That would appear to be an exceptional decision, although the most recent figures show in 2015-16, nine people convicted of rape or attempted rape were sentenced to community payback orders or probation. Lady Scott told Cieslak that the case was one of ""strict liability"" as anyone under the age of 13 was deemed to be incapable of giving consent. This was to both protect young girls from ""predatory adult males"" and to ""protect them from themselves"". However, she said the statutory offence had ""a very wide scope"" and that there were a number of ""exceptional circumstances"" in the case. Lady Scott said there had been consent from the victim. She added that if the girl, who was 12 years and seven months old at the time of the offence, had been aged 13 then Cieslak would have had a defence to the rape charge. He could have argued that he had ""reasonable grounds"" to believe that the victim was above the age of consent. Lady Scott said there there were a number of ""relevant facts"", which included that all witnesses had thought the victim was older than 16. The police officers had no concerns about her age, and having viewed CCTV footage Lady Scott said it would have been ""reasonable"" to believe the girl was over 16.", -2744,2017/3/17,http://www.bbc.co.uk/news/entertainment-arts-39303458,Lena Dunham hits back after weight criticism,Lena Dunham has hit back after criticism about her recent weight loss.,"Lena Dunham has hit back after criticism about her recent weight loss. The star and creator of HBO's Girls has attracted headlines recently about her dramatic new look. But in a lengthy Instagram post, she said her weight loss ""isn't some sign I've finally given in to the voices of trolls"". ""Right now I'm struggling to control my endometriosis through a healthy diet and exercise,"" she explained. ""So my weight loss isn't a triumph."" The 30-year-old wrote: ""I feel I've made it pretty clear over the years that I don't [care] what anyone else feels about my body."" The actress is well-known for speaking out about her weight. She once criticised a magazine who she thought had altered her picture to make her look thinner (it hadn't), and earlier this year she praised Glamour for not airbrushing her figure. Writing on Instagram on Friday, Dunham said: ""I've gone on red carpets in couture as a size 14. I've done sex scenes days after surgery, mottled with scars. ""I've accepted that my body is an ever-changing organism, not a fixed entity - what goes up must come down and vice versa. ""I smile just as wide no matter my current size because I'm proud of what this body has seen and done and represented."" The actress also said she had a problem with media features featuring before and after pictures, adding: ""Don't we have infinitely more pressing news to attend to?"" Dunham is far from the first actress to have had her weight scrutinised in the media. In 2013, Jennifer Lawrence has said ""it should be illegal to call someone fat on TV"", after red carpet criticism of her own figure. ""Because why is humiliating people funny?"" the actress asked. Keira Knightley won ?3,000 in damages from the Daily Mail in 2007, when the paper published an article about her weight. A photograph of Knightley, who was 22 at the time, was printed alongside an article about a girl who had died of anorexia. The actress's solicitor said ""deeply offensive"" suggestions could imply Knightley had an eating disorder and bore responsibility for the girl's death. Last week, Gabourey Sidibe revealed she had undergone a gastric band procedure to improve her health. In her new memoir, This is Just My Face, the Empire star writes: ""I did not get this surgery to be beautiful. I did it so I can walk around comfortably in heels."" ""I want to do a cartwheel. I want not to be in pain every time I walk up a flight of stairs."" Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -2745,2017/3/17,http://www.bbc.co.uk/news/world-asia-39297031,Rex Tillerson on North Korea: Military action 'an option',"The US has said its policy of ""strategic patience"" with North Korea is over and suggested it might decide to take pre-emptive military action.","The US has said its policy of ""strategic patience"" with North Korea is over and suggested it might decide to take pre-emptive military action. Secretary of State Rex Tillerson said the option was ""on the table"" if the threat from the North's weapons programme reached a level requiring it. During a visit to South Korea, he also said the US was exploring a range of new diplomatic and economic measures. And he defended the deployment of a US missile system in South Korea. The move has angered China, but South Korea and the US say the system is needed as a defence against North Korean aggression. US President Donald Trump tweeted that North Korea was ""behaving very badly"" and had been ""playing"" the US ""for years"". ""China has done little to help!"" he added. Mr Tillerson spoke shortly after visiting the demilitarised zone which divides the two Koreas. He arrived in South Korea from Japan, where he had said that 20 years of efforts designed to persuade North Korea to abandon its nuclear ambitions had failed. Asked if the possibility for military action existed, he said: ""Certainly we do not want to, for things to get to military conflict."" But he added: ""If they elevate the threat of their weapons programme to a level that we believe requires action, then that option's on the table."" North Korea has conducted nuclear and missile tests in recent years, and says it is close to testing long-range missiles capable of carrying nuclear warheads and reaching the US. Mr Tillerson was blunt: the previous policy had ended. Despite that assertion, though, the difference between the Obama strategy and the Trump one is not obvious. Mr Obama had not ruled out military force and Mr Tillerson thinks sanctions might yet work. Both administrations ruled out negotiation - though Mr Tillerson said they would be ""premature"" at the moment, prompting the thought that there might come a time when they were the right thing to do. At the end of it, the situation remains the same: North Korea shows no hint of being willing to renounce nuclear weapons, whatever economic blows it receives and whatever China might think. Mr Tillerson heads for Beijing next, hoping China will help - but in the past Mr Trump has called China an ""enemy"". The US has accused China, North Korea's main ally, of not doing enough to rein it in but Beijing remains wary of any action that could destabilise the North Korean government and potentially create chaos on its border. During his address in Seoul, Mr Tillerson called on China to fully implement sanctions imposed by the UN in response to North Korea's nuclear and missile tests. ""I don't believe we have ever fully achieved the maximum level of action that can be taken under the UN Security Council resolution with full participation of all countries,"" he said. China is also strongly opposed to the deployment of the Terminal High Altitude Area Defense (Thaad) system in South Korea. America says the system is aimed at North Korea but China says it will allow the US to spy on its territory. In recent days there have been multiple reports of apparent economic retaliation aimed at South Korea by Beijing. Mr Tillerson called these actions ""unnecessary and troubling"". ""We also believe it is not the way for a regional power to help resolve what is a serious threat for everyone,"" he said. Mr Tillerson had talks with both South Korean Foreign Minister Yun Byung-se and Prime Minister Hwang Kyo-ahn, who is also the acting president. However, the two sides opted not to have a meal together because Mr Tillerson, 64, was experiencing ""fatigue"", unnamed Seoul officials were quoted as saying by local newspaper the Korea Herald. ""We Americans have to get this news from the Korea Herald, because Tillerson won't let a press pool travel with him,"" New York Times columnist Carl Zimmer commented in a tweet.", -2746,2017/3/17,http://www.bbc.co.uk/news/uk-england-sussex-39306323,Shana Grice murder trial: Teenager penalised by police,"A teenager complained about her ex-boyfriend to police several times, but was penalised for wasting their time before he went on to murder her, Lewes Crown Court has been told.","A teenager complained about her ex-boyfriend to police several times, but was penalised for wasting their time before he went on to murder her, Lewes Crown Court has been told. Jurors heard Shana Grice contacted the Sussex force over months - but at one stage was given a fixed penalty notice. Miss Grice, 19, was found with her throat slit in her bedroom, which was set alight in Portslade, East Sussex, last August. Michael Lane, 27, denies murder. The prosecution gave a timeline of when police were contacted. Jurors heard Miss Grice told police in February she was being stalked and Mr Lane had hid outside her home, sent unwanted flowers, and left a note on her new boyfriend's car which said ""Shana will always cheat on you."" In March, Mr Lane denied a claim he had assaulted the teenager by pulling her hair and trying to grab her phone, and he showed police messages from Miss Grice saying she wanted to be with him, the court was told. But the court was told Miss Grice was given a fixed penalty notice for failing to disclose she had been in a relationship with him, and for ""having caused wasteful employment of police by making a false report"", while no further action was taken against Mr Lane. On 9 July, Mr Lane, of Thornhill Rise, Portslade, was cautioned and told to stay away from Miss Grice after he stole a key and let himself into her home to watch her sleep, the court was told. The next day, Miss Grice reported receiving several calls from a withheld number, including one with heavy breathing, but the court heard Miss Grice was told there were no further lines of inquiry and the case would be left on file. On 12 July, Miss Grice told police she had been followed by Mr Lane, but the court heard police treated the incident as ""low risk"". Opening the defence case, Simon Russell Flint QC asked Mr Lane directly whether he murdered Miss Grice and the defendant replied: ""No."" Mr Lane said he had taken Miss Grice's key and let himself in because he wanted to ""find out why we ended so abruptly"". He said he was not responsible for letting down Miss Grice's tyres, or making phone calls, but he admitted leaving the note on her boyfriend's car and fitting a tracker device to Miss Grice's car. He also told the court two days before her death, he had sex with Miss Grice at her home before meeting her in a hotel. Mr Lane told the court that he had found Miss Grice's body but went into shock and ""didn't know what to do"". He said it did not cross his mind to dial 999, and he did not touch her to check whether she was still alive. He said he had gone round to find out why she had not left for work but found the front door open and he added: ""I saw her slumped against the bed. She wasn't moving. I saw blood on the bed and blood on the floor. ""She was in her dressing gown. I thought she was dead. I didn't know what to do."" He said he saw no signs of fire and denied torching the room, and he told the court he had bought petrol because he wanted to kill himself because of depression following his grandfather's death. He said he went home, told none of his family about the discovery, and ""didn't want to get the blame"". Mr Lane said he showered and went to get a lottery ticket checked, but noticed blood on his trainers. After hearing sirens, he hid his trainers and got rid of a T-shirt, he added. Jurors heard he went to the dentist and then went to work before being arrested. Mr Lane admitted in court that he told lies in police interviews. The trial was adjourned until Monday.", -2747,2017/3/17,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39299305,Nicola Sturgeon 'up for discussion' on referendum date,Scotland's first minister has told the BBC she wants to find a referendum date that both sides can agree on.,"Scotland's first minister has told the BBC she wants to find a referendum date that both sides can agree on. Nicola Sturgeon said she was ""up for continued discussion"" with Theresa May on the matter. The prime minister insisted this week that ""now was not the time"" to hold a second independence referendum. And she indicated that the UK government would not give approval to the SNP's preferred timetable of between autumn 2018 and spring 2019. Ms Sturgeon believed it was imperative for a vote on Scotland's constitutional future to take place once a deal had been agreed on the UK exiting the European Union. The focus on a Scottish independence referendum comes as the SNP meet for its spring conference in Aberdeen. On the first day of the gathering, the party's deputy leader Angus Robertson said it would be ""totally unacceptable"" for Westminster to deny a referendum before Brexit was finalised. In his speech, the SNP MP said: ""Let there be no doubt - Scotland will have its referendum and the people of this country will have their choice. They will not be denied their say."" Ahead of her keynote speech on Saturday, Ms Sturgeon spoke to the BBC's Sarah Smith. She said: ""We [Ms Sturgeon and Mrs May] have got a disagreement. What I am saying today is let us try and work our way through that disagreement. ""Now, I am no paragon of virtue about these things - it takes two to have a relationship, I absolutely accept that. But I have tried really really hard to find compromise with the PM over the last few months."" Ms Sturgeon added: ""So let her [Mrs May} set out when she thinks it would be right and then let's have a discussion about it - who knows we might be a matter of weeks or months apart. ""I am up for continued discussion, but people will recognise in any walk of life - not just in politics - you can't have discussion and reach compromise with people who are not prepared to enter into discussion and are not prepared to countenance compromise and that so far has been my experience of the PM."" By BBC Scotland's political editor Brian Taylor I do not believe that the first minister is attracted to the idea of a non-consensual referendum. I believe she would see it as gesture politics, not the actions of a long-standing elected government. I believe further she would question what it would achieve, given that it might face a boycott from supporters of the Union. So might she engineer an early Holyrood election? Might she seek an overall majority in the Scottish Parliament in order, presumably, to bring the Prime Minister to the negotiating table? She might. It is feasible. But, again, I think it is highly unlikely. Broadly, there are three objections: Read more from Brian By the BBC's Scotland editor Sarah Smith Speaking to me today, Ms Sturgeon indicated she might be prepared to discuss the timing of another vote with Mrs May. The Scottish government want a referendum between Autumn 2018 and Spring 2019. It looks like they would be prepared to negotiate a different, later, date. However, it is not yet clear that the UK government are prepared to talk about a date. The PM did say ""now is not the time"" for another referendum. She didn't say never. So, will she talk about holding a vote in the future? That seems to be the question today. Read more from Sarah The SNP conference got under way just 24 hours after the Scottish and UK governments clashed over a second referendum. Ms Sturgeon insisted that a referendum should go ahead on her timescale. It followed Mrs May rejecting calls for a second independence vote before Brexit. Meanwhile, Mrs May used a speech in Wales to defend the UK. She said the ""precious bond"" between England, Scotland, Wales and Northern Ireland was much more that just ""constitutional artefact"". Mrs May went on to tell a gathering of Conservatives in Cardiff that a second Scottish independence referendum would be ""bad for Scotland, bad for the United Kingdom, and bad for us all"". The prime minister added: ""The coming negotiations with the EU will be vital for everyone in the United Kingdom. ""Every person, every family, every business, every community the length and breadth of the United Kingdom - England, Scotland, Wales and Northern Ireland. ""As the prime minister of this United Kingdom, I will always ensure the voices and interests of England, Scotland, Wales and Northern Ireland are represented as we negotiate to leave the EU."" 2017 Brexit will be triggered in March 2018/19 Sturgeon's preferred vote dates 2019 Two year Brexit deal period ends 2020 Next UK general election 2021 Next Holyrood election Mrs May had already accused the SNP of forcing a ""fundamentally unfair"" independence referendum that would damage Brexit negotiations. Writing in the Times, she said: ""The SNP is trying to force the UK government to agree to something that is fundamentally unfair to the Scottish people. ""It wants to ask them to make a crucial decision without the necessary information. ""They would not know what the new partnership with the EU would look like, or what the alternative of an independent Scotland would be. It would simply not be fair."" The article follows a television interview on Thursday, in which she said ""all our energies"" should be focused on negotiations with the European Union. At the SNP conference later, Deputy First Minister John Swinney will address domestic Scottish matters as the parties in Scotland prepare for May's local government elections. Mr Swinney said the spring conference, which will be attended by 2,500 delegates, would ""underline our party's top priorities of education, the economy and our public services"".", -2748,2017/3/17,http://www.bbc.co.uk/news/uk-39307418,Man dies charging iPhone while in the bath,"A man was electrocuted as he charged his mobile phone while in the bath, an inquest has heard.","A man was electrocuted as he charged his mobile phone while in the bath, an inquest has heard. Richard Bull died when his iPhone charger made contact with the water at his home in Ealing, west London. A coroner ruled his death was accidental and plans to send a report to Apple about taking action to prevent future deaths. Safety campaigners have warned about the dangers of charging mobiles near water following the inquest. Mr Bull is believed to have plugged his charger into an extension cord from the hallway and rested it on his chest while using the phone, the Sun reports. He suffered severe burns on his chest, arm and hand when the charger touched the water and died on 11 December, the newspaper said. Assistant coroner Dr Sean Cummings, who conducted the inquest at West London Coroner's Court on Wednesday, is to write a prevention of future death report to send to Apple. Charity Electrical Safety First said the death highlighted some of the dangers of having electrical appliances around water. Product safety manager Steve Curtler said people ""will not get electrocuted"" from a mobile appliance such as a laptop or mobile phone if it is not being charged. Such devices typically have a low voltage of 5V to 20V so ""you probably wouldn't feel it"" if they came into contact with water, he added. However, connecting a mobile phone to a charger plugged into the mains electricity supply increases the risk of harm. ""Although the cable that is plugged in to your phone is 5V, somewhere along the line it's plugged into the electricity supply and you're reliant on that cable and a transformer to make sure you don't get into contact with the main voltage,"" said Mr Curtler. He said cheap, non-branded chargers may not offer such protection, but even with genuine chargers you are still taking an unnecessary risk. ""You're wet which conducts electricity a lot better, you're in the bath with no clothes on so skin resistance is less. You're vulnerable in the bathroom. ""The underlying message is, although someone can argue that the cable that's going into your phone is 5V, that's the point where you're taking too much risk."" The Royal Society for the Prevention of Accidents (ROSPA) warns against using any electrical appliance in the bathroom. Public health adviser Sheila Merrill said: ""People need to be aware of taking an electrical appliance into the bathroom. ""The advice has always been given with regard to hairdryers and radios - not to use in the bathroom. ""If you got any appliance attached to the mains electricity circuit you have to be aware there is a danger there. ""You're risking death. Electricity and water don't mix, but with particularly with phones, people don't probably always think about it. ""It's not advisable to use them while they're plugged in, particularly in a bathroom situation."" She said ROSPA did not see this type of accident on a ""regular basis"" and most mobile phone manufacturers cover the electric shock risk in their safety handling support advice. However, with a lot of mobile phones the advice does not come with the instructions you receive in your hand, she added. Apple did not respond to requests for a comment.", -2749,2017/3/17,http://tass.com/economy/936239,S&P imrpoves Russia's sovereign credit rating outlook to 'positive',"At the same time, the long-term credit rating in the national currency was affirmed at ""BBB-""","MOSCOW, March 17. /TASS/. The international rating agency Standard & Poor's (S&P) has raised the outlook for Russia's sovereign credit rating to ""positive"" from ""stable"", confirming its long-term foreign currency credit rating at ""BB +"", according to the agency's press release. At the same time, the long-term credit rating in the national currency was affirmed at ""BBB-"". ", -2750,2017/3/17,http://tass.com/politics/936246,Russia's parliamentary commission to probe into US media's activities in Russia,The checks are aimed at finding out whether the US media are consistent with the Russian law,"MOSCOW, March 17. /TASS/. Russia's State Duma (lower house of parliament) has handed instructions to its Committee for Information Policy, Information Technologies and Communications to probe into the activities of Radio Liberty, the Voice of America, CNN and other US media outlets to figure out if they were consistent with the Russian law. The instructions were initiated by Konstantin Zatulin, First Deputy Chairman of the State Duma Committee on CIS Affairs, European Integration and Relations with Compatriots. ""I request the State Duma Committee for Information Policy, Information Technologies and Communications to probe into the activities of the US media outlets, including Radio Liberty, the Voice of America and CNN, to figure out it they are consistent with the Russian law,"" the document reads. ""The US politicians, who had been repeatedly accusing the Russian media of interfering in Washington's internal affairs, moved from rhetoric to action after the US presidential election,"" the document adds. Zatulin pointed out that on March 14, New Hampshire Senator Jeanne Shaheen introduced a bill giving the US Justice Department additional authority to investigate Russia's English-language TV channel RT America for possible violations of the Foreign Agents Registration Act. ""Taking into account the fact that investigations based on a repressive bill can damage the reputation of the Russian TV channel and Russia in general, I believe it necessary to take proactive measures,"" Zatulin stressed.", -2751,2017/3/17,http://tass.com/sport/936242,UEFA Champions League quarterfinalists Monaco FC eyes French championship's title,Monaco FC is currently in the top line of the French football championship following 29 rounds of the tournament leading by three points over its closest contender PSG,"MOSCOW, March 17. /TASS, Maxim Allanazarov, Yevgeny Ionov/. Winning the football championship of France is currently the priority for Monaco FC, although ""it was a pleasant bonus"" for the club to advance into the quarterfinals round of the UEFA Champions League, a senior official with the Monaco FC told TASS on Friday. Following an aggregate score of 6-6 in two matches against Manchester City FC, Monaco FC advanced to the next quarterfinal stage of the prestigious European tournament as it scored more goals than its opponent during the away match. ""We are more than happy to advance into the quarterfinals of the (UEFA) Champions League,"" Vadim Vasilyev, a vice-president and the director general of Monaco FC, said in an interview with TASS. ""However, our priority is to win the title of the French championship. The match in the Champions League is a pleasant bonus for us."" Monaco FC is currently in the top line of the French football championship following 29 rounds of the tournament leading by three points over its closest contender PSG (Paris Saint-Germain). Commenting on the UEFA Champions League quarterfinals draw, which placed Monaco FC against Borussia Dortmund FC, Vasilyev said it was indeed a very interesting result. ""The draw procedure was exciting,"" Vasilyev said. ""We will see two clubs playing offensive football. It seems to me that football fans will be delighted with such stand-off and it will be brilliant."" ""Today, our club sees no limits, because on the one hand, we have players of the highest-possible level, and on the other - they are an authentic group of friends and a real team, which does what it likes to do and plays its favorite game,"" the club's director general said. Vasilyev also said that the club's players received extra bonuses for taking over fame Manchester United FC and proceeding into the quarterfinals of the UEFA Champions League. ""The players were undoubtedly paid extra bonuses for the victory over the ""�City,""? he said. """"We are paying extra bonuses for clearing group stages and now for qualifying for the quarterfinals."""" Vasilyev also denied all possible allegations concerning Monaco FC talks on the transfer of its players. """"Considering today's economic situation we must not put on transfer sale our players", that despite numerous telephone calls -2752,2017/3/17,http://tass.com/economy/936243,Russia's Pobeda low-cost airline to launch flights to Spain's Reus,"The airline already operates flights to the Spanish city of Girona, Catalonia","MOSCOW, March 17. /TASS/. The Russian Transport Ministry's inter-agency commission has issued a certificate for the Pobeda low-cost airline permitting it to conduct flights between Moscow and Spain's Reus, Russia's aviation watchdog Rosaviatsiya said in a statement. ""Pobeda will be able to conduct four weekly flights to Reus. The airline already operates flights to the Spanish city of Girona, Catalonia. Reus is also located in Catalonia, 170 kilometers from Girona. At the same time, the inter-agency commission has refused to issue certificates concerning flights to Bulgaria's Burgas and Varna. Pobeda is the first Russian low-cost airline. Its route network currently includes 37 destinations. In 2016, its passenger traffic flow grew by 38.7% reaching 4.3 mln. The company's fleet comprises 12 Boeing 737-800 NG aircraft.", -2753,2017/3/17,http://tass.com/economy/936240,Indian PM hopes to meet with Putin on sidelines of St Pete economic forum,Kremlin spokesman Dmitry Peskov told reporters earlier the organizers of the forum had not finalized the list of the forum guests yet but he knew Modi would be the main guest at the forum,"MOSCOW, March 17. /TASS/. Indian Prime Minister Narendra Modi-hopes to meet with Russian President Vladimir Putin on the sidelines of the St Petersburg International Economic Forum that will be held on June 1-3, the Indian Ambassador in Moscow, Pankaj Saran told reporters on Friday. ""Yes we await it,"" he said when a reporter asked him in a Modi-Putin meeting on the sideline of SPIEF was possible. On Thursday, Industry and Trade Minister Denis Manturov said Russian and Indian leaders could discuss new points of growth in the Russian and Indian economies. ""We hope the detailed scrutiny of the new points of growth will be reflected in the agenda of the summit talks in the format of the Indian Prime Minister Narendra Modi's visit to Russia and participation in SPIEF at the beginning of June,"" he said. Kremlin spokesman Dmitry Peskov told reporters earlier the organizers of the forum had not finalized the list of the forum guests yet but he knew Modi would be the main guest at the forum. As regards cooperation between India and Russia, Denis Manturov signaled out the areas like transport control and navigation systems, agriculture, small and medium-sized business, and some others, adding that the two countries attached priority to green technologies.", -2754,2017/3/17,http://tass.com/economy/936234,Russian antimonopoly regulator to consider Microsoft case on April 21,Russia's Kaspersky Lab filed a complaint to the anti-trust regulator saying that Microsoft had reduced the time of adaptation for anti-virus software manufacturers from 2 months to 6 days,"MOSCOW, March 17. /TASS/. Russia's Federal Antimonopoly Service (FAS) will consider the case against Microsoft under the complaint of Kaspersky Lab on April 21, press service of the regulator told TASS on Friday. ""On April 21,"" FAS said. Russian antivirus solutions provider Kaspersky Lab filed a complaint to the anti-trust regulator saying that Microsoft had reduced the time of adaptation for anti-virus software manufacturers from 2 months to 6 days. A spokesman with Kaspersky Lab told TASS before that Microsoft gives developers of anti-virus products just several days to make their solutions compatible with official edition of RTM-versions of Windows 10. Kaspersky Lab also plans to address to the European Commission on this issue in the near future. The company's official said that the company ""has long-standing and successful partnership"" with Microsoft but a few months of negotiations did not give any results. Microsoft said in its turn it is cooperating with FAS, Windows 10 was developed with a focus on support of continuing security of users and meets requirements of the Russian competition law, the company said.", -2755,2017/3/17,http://tass.com/economy/936227,Russia's Energy Ministry ready to return to energy dialogue with US,"But so far there are no such proposals, Russian Energy Minister Alexander Novak noted","MOSCOW, March 17. /TASS/. The Russian Ministry of Energy is ready to return to energy dialogue with the United States, but so far has not received any relevant proposals from its American counterpart, Russian Energy Minister Alexander Novak told reporters. ""For our part, we are ready to interact with the US Department of Energy, like before in the framework of energy dialogue until 2014. Today it does not work not upon our initiative. We will continue the energy dialogue when our American colleagues are ready,"" the minister said. ", -2756,2017/3/17,http://tass.com/world/936217,"Kiev, Donetsk republic agree to exchange all prisoners whose identity is established","According DPR's human rights ombudswoman Darya Morozova, its will be extremely difficult to carry out an all-for-all prisoner exchange until hostilities in Donbass are over","DONETSK, March 17. /TASS/. Negotiators for the self-proclaimed Donetsk People's Republic and Kiev, who met in Minsk on March 15, agreed to exchange all prisoners whose identity has been established by the moment, DPR's human rights ombudswoman Darya Morozova said on Friday. The humanitarian subgroup ""also focused on 62 persons who are, according to Ukraine, accused of committing grave crimes,"" the Donetsk News Agency quoted her as saying. ""It was resolutely said to Ukraine that there would be no exchange without these 62 people. It was decided to exchange all the prisoners whose identity has been established in the all-for-all format."" According to Morozova, its will be extremely difficult to carry out an all-for-all prisoner exchange until-hostilities in Donbass are over as-Ukrainian forces keep on detaining DPR supporters practically every day. So, she stressed, it would be expedient to exchange those whose identity is established. The DPR has been repeatedly calling for an all-for-all exchange of prisoners as was agreed at the Minsk talks but each time Kiev blocked this process. On February 2, participants in the talks agreed a mechanism of updating the lists of those who are subject for the all-for-all exchange. Apart from that, the sides agreed to involve UN representatives to the process. Prisoner exchanges in the all-for-all format is one of the key provisions of the Package of Measures on the implementation of the Minsk agreements that was signed in the Belarusian capital Minsk on February 12 after marathon talks between the leaders of Russia, Germany, France and Ukraine. Apart from that, the 13-point Package of Measures on implementation of the September 2014 Minsk agreements, known as Minsk-2, in particular included an agreement on cessation of fire from February 15, withdrawal of heavy armaments, as well as measures on long-term political settlement of the situation in Ukraine, including establishment of working subgroups as priority tasks.", -2757,2017/3/17,http://tass.com/sport/936220,"FIFA reiterates lack of doping-abuse proofs in Russian football ""?Deputy PM Mutko",Various media agencies reported earlier citing its own sources in FIFA that certain footballers playing for Russia's leading football clubs were mentioned in the McLaren list,"MOSCOW, March 17. /TASS/. Russian Deputy Prime Minister Vitaly Mutko brushed off media allegations that certain Russian footballers were mentioned in the now-infamous McLaren report on the widespread doping abuse among the national athletes. Various media agencies reported earlier citing its own sources in FIFA that certain footballers playing for Russia's leading football clubs were mentioned in the McLaren list. The players mentioned particularly were, Igor Akinfeyev (CSKA Moscow FC), Denis Glushakov (Spartak Moscow FC), Yury Zhirkov (Zenit St. Petersburg FC) and Igor Denisov (Lokomotiv Moscow FC). ""Our footballers""?names mentioned in the McLaren list?"" Mutko, who is also the president of the Russian Football Union (RFU), said in an interview with TASS after asked to comment on media reports. ""I believe that (Fatma) Samoura gave more than a thorough reply to this question when she was in St. Petersburg,"" Mutko said. The world's governing body of football FIFA had repeatedly rebuked such accusations and Fatma Samoura, the organization's secretary general, announced during her recent visit to St. Petersburg earlier in the month that there was no evidence regarding possible violations of doping regulations on behalf of Russian players. Last week on Thursday, Samoura attended celebration events dedicated to the 100-day countdown to the 2017 FIFA Confederations Cup Celebrations were held both in Moscow and St. Petersburg. Over 1,000 people took part in a dancing flash mob on Palace Square in Russia's second largest city of St. Petersburg. The FIFA Confederations Cup, which is also viewed by experts as a rehearsal a year prior to the FIFA World Cup, will be held between June 17 and July 2 at four stadiums in Russia and they are Spartak Stadium in Moscow, Zenit Arena in St. Petersburg, Fisht Stadium in Sochi and Kazan Arena in Kazan. Participants in the 2017 Confederations Cup are hosts Russia, 2014 FIFA World Cup Champions Germany, 2015 Copa America Champions Chile, 2015 AFC Asian Cup Champion Australia, 2015 CONCACAF Gold Cup winners Mexico, 2016 UEFA Euro Cup champs Portugal, OFC (Oceania Football Confederation) Nations Cup victors New Zealand and 2017 CAF Africa Cup of Nations Champion Cameroon. The Draw for the 2017 FIFA Confederations Cup was held on November 26 in the Russian city of Kazan. Following the event, hosts Russia was placed in Group A alongside with Portugal, Mexico and New Zealand. Group B has brought together Germany, Chile, Australia and Cameroon. The opening game will be held in St. Petersburg on June 17 between Russia and New Zealand. Russia will face Portugal in Moscow on June 21 and on June 24 it will play Mexico in Kazan.", -2758,2017/3/17,http://www.dw.com/en/german-school-tries-to-stop-deportation-of-afghan-friends/a-38000229?maca=en-rss-en-all-1573-rdf,German school tries to stop deportation of Afghan friends,"High school students in Cottbus are campaigning to save three new Afghan classmates from deportation. They say their new friends have become a ""big part of our school community,"" and could be killed by Taliban back home.","German high school students are fighting to keep their new Afghan classmates. The Waldorf school in the eastern city of Cottbus is trying to raise money to fight the legal case of the three Afghan teenagers, who say they will face forced recruitment to the Taliban, or death, back home. ""We're campaigning TOGETHER for our classmates, who have become a big part of our school community, and we can't just let them go,"" said the school's online petition, which has gathered nearly 50,000 signatures and is addressed to German Interior Minister Thomas de Maiziere and the Brandenburg state parliament. They said the school had ""helped [the Afghans] to integrate, find friends and build themselves a new, dignified life."" The three boys, named Wali, Nik Mohammad-and Noorodin in a local newspaper report, all aged 19, have been attending the Waldorf school in Cottbus for a year along with four other Afghan refugees, though they have lived in Germany much longer. The petition says they received ""deportation notices"" at the end of February, though their German is already good enough for them to be attending regular classes along with other students. ""They're distributed across the 10th, 11th-and 12th grades,"" said Sara Wolkers, one of the students behind the campaign. ""They have extra German lessons, but otherwise they do math or whatever with everyone else."" All three came from ""small villages in Afghanistan,"" the petition reads. ""They had work and a family. For each of the boys a return would mean forced recruitment to the Taliban, and death if they refused."" ""Anyone who goes back is considered a deserter and is tortured and killed,"" Wali told the local ""Lausitzer Rundschau"" newspaper. Protesters demonstrated against deportations at Munich airport Few reasons given The students are holding a benefit concert on Friday to raise money to pay for legal representation for the three Afghans, with the school itself having already pledged 1,000 euros ($1,073). Wolkers said that their deportation orders gave them a month's notice, but all three have appealed the decision-and have time to await the result of the appeals. Wolkers also said it was absolutely unclear why these three teenagers had been chosen for deportation among the seven Afghans at the school. Like all asylum-seekers in Germany, the three boys had given interviews to the immigration authorities, but their testimony about the dangers back home did-not appear to have been heeded, she said. ""They got an explanatory statement with their letters, but the strange thing is that the content of the interviews was not mentioned in the synopsis there,"" Wolkers told DW. ""Certain things were downplayed, and the reasons why they left - the forced recruitment to the Taliban - weren't even mentioned."" Instead, Wolkers said the authorities told them that they weren't categorized as ""real"" refugees, because they came from Afghanistan, ""and Afghanistan had been designated as safe."" Deporting into a war zone Germany's policy of deporting refugees back to Afghanistan has come under serious criticism since it was approved by the Bundestag in December. Many refugee rights organizations have pointed out that only a month earlier, the German Foreign Ministry had issued a new warning against traveling to the country, and said that virtually all of the country was still a conflict zone. The United Nations said last year that civilian casualties had hit record highs. Thomas de Maiziere has argued for deportations to Afghanistan ""In the whole of Afghanistan there is a high risk of being a victim to a kidnapping or a violent crime,"" the travel warning reads. ""Throughout the country, there can be attacks, robberies, kidnappings and other violent crimes."" Despite this, mass deportations to Afghanistan have been carried out from Germany since December, though some states have refused to follow the federal government's policy. Richard Arnold, mayor of the small southern German town of Schw?bisch Gm��nd, condemned the policy on Friday, arguing that the political pressure to deport meant it was affecting the ""wrong people."" ""The bad thing is that it's only about who can deport the most people,"" he told the ""taz"" newspaper. ""Refugees who have committed crimes wait for their trials, they can't be deported ... so the ones left are the ones who can be picked up. But those are mostly the integrated ones."" Brandenburg questions A spokesman for the Interior Ministry of Brandenburg professed himself skeptical of the students' petition, arguing that it would be unusual for Afghans to simply be deported if they were so young. ""We'd have to know more exactly,"" he told DW. He suggested that it was possible that the young men's asylum applications had been rejected - though this did not necessarily mean they were to be deported. -A spokesman for the Cottbus city administration could not confirm to DW that the deportation notices had been sent out, but said they ""may have been."" According to the Interior Ministry spokesman, Brandenburg has not deported anyone to Afghanistan in the past year - though he said that 10-Afghan asylum seekers had been sent to other European countries under the Dublin regulations, and four others had returned to Afghanistan ""voluntarily.""", -2759,2017/3/17,http://www.dw.com/en/south-sudan-s-visa-fee-hike-a-threat-to-foreign-aid/a-37999119?maca=en-rss-en-all-1573-rdf,South Sudan's visa fee hike a 'threat' to foreign aid,"Foreign aid groups are facing pressure in several African countries to hire more local workers. But South Sudan's recent move to increase work permit fees to up to $10,000 could spell disaster for the war-torn country.","After South Sudan sharply raised fees for foreign workers at the beginning of the month, the UN stepped in to plead for an exemption for aid workers. The East African country is facing a devastating famine-and one-third of the population depends on foreign aid for basic nourishment. Burdened with such fees, some aid organizations may not be able to continue operations. ""I've never heard of such a drastic increase,"" Elizabeth Deng, Amnesty-International's South Sudan researcher, told DW. ""The fee is clearly exorbitant, and it could violate the government's obligation to work with aid groups."" A 'right' to hike fees? The South Sudan Ministry of Labor, which proposed the hike, has argued that it is not unusual. ""Any country in the world has a right to impose work permits on foreigners,"" said government spokesperson Ateny Wek Ateny in a statement. ""If you can't pay $10,000, then you hire a local person instead."" The ministry has raised ""casual worker"" visa fees from $100 (93 euros) to $1,000; ""blue collar"" visa fees from $150 to $2,000; and ""professional"" visa fees from $300 to $10,000. Fee-unusually high Work permit fees are certainly a global norm. But rates around the world rarely top $1,000. In Europe, temporary work visas range from 60 euros ($65) in Germany to 230 euros in Great Britain. In the US, a temporary work permit comes with a $190 fee, comparable to the fee in China. Many South Sudanese depend on foreign aid for survival In some African countries where foreign aid makes up a large part of the economy, the price of a work permit can be higher. Employees of NGOs can expect to pay $1,500 for a work permit in Uganda. Kenya is one of the most popular destinations for foreign aid workers in Africa, and it is also one of the most expensive. Employees of NGOs who are not Kenyan citizens must acquire the most expensive class of work permit, which costs $1,900 per year. Aid groups under pressure Kenya has put other forms of pressure on foreign aid workers to leave the country. In June 2016, Kenya's NGOs Board, a government body, issued a memorandum that claimed there was ""a growing trend of career expatriates who have made a habit out of hopping from one organization to another in exploitation of [Kenya's regulations]."" It declared that it would not issue work permits to foreign NGOs unless they could prove that the job would eventually be turned over to a Kenyan. Dr. Ishbel McWha-Hermann, a professor at the University of Edinburgh who studies fairness within the international aid sector, cautioned against comparing the situation in Kenya or Uganda with that of South Sudan. McWha-Hermann's research showed that in Uganda, like in Kenya, the pool of skilled aid workers is competing with expatriate aid workers for jobs and wages and is losing out. The result is a ""dual-salary system"" where expatriate aid workers earn on average twice as much as their native colleagues. ""In the long term, it undermines the work of providing aid to the country,"" she said. A different case South Sudan is in a very different situation from Kenya. Embroiled in a civil war and a deteriorating famine situation, the East African country is more dependent on foreign aid than its southern neighbor. ""Putting pressure on NGOs to hire more local workers is not a bad thing in general,"" said McWha-Hermann. ""But in an emergency situation, you don't want too much bureaucracy to get in the way of helping those who desperately need it."" Germany's foreign minister has pledged an extra 15 million euros to prevent mass starvation in the Horn of Africa. The UN says 20 million people face famine in four countries, including Somalia and South Sudan. (13.03.2017) The three-year civil war in South Sudan keeps escalating, causing a record number of refugees to flee. Analyst Henrik Maihack told DW that a new regional peace process must be launched to stop the growing violence. (15.03.2017) For Elizabeth Deng of Amnesty, South Sudan's latest move was motivated by a number of reasons not at play in Kenya. The fee hike, as the Ministry of Labor admitted, is meant to fill a budget deficit at the expense of foreign companies. Deng notes that the fee hike applies to the private sector as well, and, with the recent loss of oil revenue in South Sudan, the government is looking toward taxation as a source of revenue. 'Hostile environment'- Deng also suspects that the South Sudanese government is ""reluctant to have observers document what's going on"" in the country, and impeding the work of NGOs would slow the flow of information. South Sudan-cabinet minister Martin Lomuro recently told the AP that-he believed ""most of the [humanitarian] agencies are here to spy on the government."" Deng says that South Sudan is a ""hostile environment for aid workers in general"" with instances of government soldiers looting humanitarian goods and arresting NGO employees. ""The fees are part of a general failure to respect humanitarian workers,"" said Deng. Hoping for compromise The increase in permit fees took effect this month, but fees are not due to be paid until the end of the month. Several NGOs have declined to speak with the media, leaving room for the government to backtrack on its plan. The UN is in talks with South Sudan to have aid workers exempt from the fee hike and is awaiting a response. Deng is hopeful that no aid worker will see the fee increase cut so deep into their paycheck. ""Reasonable minds may prevail,"" she said.", -2760,2017/3/17,http://www.dw.com/en/hopes-high-as-tobacco-selling-starts-in-zimbabwe/a-37999236?maca=en-rss-en-all-1573-rdf,Hopes high as tobacco selling starts in Zimbabwe,The selling of this year's tobacco harvest in Zimbabwe started this week. Farmers and government officials alike are hoping for a banner year but obstacles remain.,"Tobacco farmers cheered after the new electronic auction system began the auction of raw tobacco this week in the capital Harare. Many in Zimbabwe hope that this year's harvest will help bolster the country's economy. ""Producers of tobacco are indeed our heroes. You are important to this economy. The foreign currency you produce is above $800 million (745 million euros) a year,"" said Reserve Bank of Zimbabwe Governor John Mangudya at the opening of the auction. However, this optimism was soon replaced by frustration and anger among the farmers. One of them was Bernard Mudapakati from Bindura, about 100 kilometers (60 miles) north of Harare. Besides being unhappy with the starting price of less than $5 a kilo, he fears the price might drop further.- ""This is because the electronic system is alien to us farmers. We are seeing it for the first time. We were never told about it,"" said Mudapakati. ""As farmers, we have been asked to stand away from our tobacco so that we do not disturb buyers,"" he added.- High hopes- Zimbabwe officials have projected that the country will produce 205 million kilograms (450 million pounds) of tobacco this year, three million more than what the country harvested in 2016. Most farmers fear the electronic system will suppress tobacco prices as they were not aware of how it works. The initial price of $6 a kilo which the system had set got no bidders angering farmer Faro Muza. ""Initially we thought the system was there to quicken the process, but it has stopped. But time is ticking away. We want to go back and get some more tobacco or it will be destroyed by the rains. I think the old manual system was better. I would bring it back,"" said Muza.- Farmer Elizabeth Antonio said their concerns were not only about the delays at the auction floor, which is run by the government, but also about the depressed price they get for their product. ""After this year's incessant rains, roads have been damaged. We struggled to get here. We used ox-drawn carts in some cases until we got to where trucks could pick up our tobacco,"" she said.- Joseph Made, Zimbabwe's agriculture minister, is happy with the output of the Zimbabwean farmers, but the farmers are not happy with both the price and the delays they encountered. However, the minister said he sympathized with them.-""I am very happy with the starting price so far. We have not gotten yet to the prime quality, so it is a good start for the farmers,"" he said.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1Jyft", -2761,2017/3/17,http://www.dw.com/en/eu-lauds-turkey-deal-one-year-on-but-activists-remain-highly-critical/a-37999721?maca=en-rss-en-all-1573-rdf,"EU lauds Turkey deal one year on, but activists remain highly critical","Rising tensions between EU and Ankara have put a one-year-old migration deal in the spotlight. It benefits political institutions on both sides, but humanitarian activists say refugees are the ones paying the price.","One year after the European Union and Turkey signed an agreement swapping money for migration control, opinions as to the political and moral benefits and drawbacks of the deal are divided along exactly the same lines they were when it was concluded.- The European Union calls the arrangement a ""success,""-thrilled and relieved at-the expedient way in-which Turkish President Recep Tayyip Erdogan cut off the flow of would-be asylum-seekers across the Mediterranean. The Turkish government, for its part, says the EU has not lived up to its-promise-to grant Turks visa-free travel, a condition Brussels accepted only under duress from Ankara, attaching sufficient requirements to ensure that it was-unlikely to happen anytime soon.- Humanitarian organizations in their turn say the conditions for migrants and refugees on both the Turkish and EU sides-are horrific.- The one thing that's changed significantly is the relationship between European governments and the increasingly hostile regime of Erdogan, who resorts frequently to-referring to European governments as ""Nazis""and ""fascists"" when they don't behave according to his politically motivated wishes. Turkish threats Irked over-EU criticism of his bid to consolidate power, Erdogan is threatening-to dump the deal, especially the part where Turkey, now classified as a ""safe country"" for migrants to be returned, would take in those people rejected for EU admission.- ""What readmission? Forget about it,"" Erdogan said Thursday, linking his remarks-openly to-the-Dutch decision last weekend to block the Turkish foreign minister-from campaigning on Erdogan's behalf in Rotterdam.- So European Commission Spokesman Alexander Winterstein knew well he'd be asked Friday about the one-year assessment of the deal, with regard both to-refugees and migrants, and to dealing with Erdogan.- He came to the commission's daily briefing equipped with talking points designed to assuage humanitarian consciences. ""Since the agreement there are about a million refugees who have not made the attempt to come to Europe via a dangerous route, who have not given the last money that they and their family are able to scrape together to unscrupulous smugglers,"" Winterstein said, ""and I would like you to think about these people or about the 1,000 refugees who did not die at sea compared to the year before. I think these are the numbers that really count because of the real people -- the real fathers, mothers, children - who are being saved."" When the European Commission refers to ""saving"" people, it means stopping them from leaving Turkey and instead staying in accommodation that's now partially funded by the EU. Winterstein said agreements for 39 projects have-already been concluded, including schools and education for 500,000 Syrian children.-""We are absolutely committed to continuing making this agreement work,"" he said. Former EU Ambassador to Turkey Marc Pierini, while critical of Erdogan's current behavior, is a believer in this agreement. He says that, despite the most recent Erdogan threats and recriminations, he doesn't believe Ankara has any intention of backing out. ""The deal is working wonders for Syrian refugees, and the Turkish institutions are very happy with [it],"" Pierini told DW.- ""I'm not saying it's morally fine from a humanitarian standpoint, but it's working fine.-[Syrian refugees] get cash, they get education and-health care, and the local communities get also help because their hospitals and so on have been overcrowded."" Children at terrible risk But humanitarian and human rights organizations have nothing even remotely positive to say about the agreement.- ""One year after the Balkan border closures and the EU-Turkey Statement, which were aimed at stopping mass migration flows, refugee and migrant children-face greater risks of deportation, detention, exploitation and deprivation,"" UNICEF said in a statement. ""While there has been a major decrease in the overall numbers of children on the move into Europe since last March, there has been an increase in the threats and distress refugee and migrant children endure.""?Amnesty International weighed in, too.- ""The fact that European leaders are heralding as a 'success' a deal which has caused such immeasurable suffering exposes the fact that the EU-Turkey deal has nothing to do with the protection of refugees and everything to do with keeping them out of Europe,""?said John Dalhuisen, Amnesty's Director for Europe. ""The EU-Turkey deal is a stain on the collective conscience of Europe,"" he added. Save the Children's Sacha Myers has just co-authored a report called ""A Tide of Self-Harm and Depression"" on living-conditions for migrants and asylum-seekers--on the Greek islands and the impact on more than 5,000 children stuck there. They are blocked from traveling further on to the Greek mainland or anywhere else while their applications are processed.- 'Scared and in despair' Myers is close to tears recounting the psychological condition of children there, many of whom are traveling alone, in some camps living in containers by themselves. ""They're so scared about being in the camp by themselves,"" Myers told DW from the island of Chios.- ""They take 24-hour shifts so two stay awake and make sure they're protected but there have been attacks,"" she said. ""Unfortunately, they've raised these concerns with the police and Save the Children has raised these concerns with the police as well. But no action has been taken, and this is just one example; it's happening in other islands as well."" Amnesty International reports that five refugees, including one child, have died on the island of Lesbos owing-to the terrible conditions. Myers said caseworkers have actually witnessed-children trying to commit suicide out of despair. Myers blames a deterioration in the camps on the EU-Turkey agreement, because she feels it presupposes negative responses to asylum applications and then the deportation of rejected applicants-back to Turkey, where she disputes the EU assessment that the country is-a ""safe"" place for them to be. She wishes the EU elites touting the agreement would come take a walk through the Greek camps with her before they call it a success.- ""Everyone know awful things are happening in Syria,"" she said, ""but it's so important that people also know the awful things that are happening in Greece right now, and the EU-Turkey deal has a huge part to play in that.""", -2762,2017/3/17,http://www.dw.com/en/the-perfect-job-work-s-great-and-life-is-relaxed-for-space-engineers-in-the-tropics/a-37989618?maca=en-rss-en-all-1573-rdf,The perfect job? Work's great and life is relaxed for space engineers in the tropics,"Fed up with dreary weather? Fancy the tropics instead? If you're a space engineer who thrives in humid weather, consider Europe's spaceport. DW spoke to Tamara Tezzele about life and work in Kourou.","DW: We're in this wonderful place in Kourou, French Guiana. You're an engineer with the French Space Agency, CNES, and you live and work here? Tamara Tezzele: Yes, in fact I was born here. I grew up here. And I work here on what we call a ""local contract,"" which means I'm here permanently in French Guiana. That's not the case for everybody. So living and working here would be normal for you. What about other people, do most people here work in the space industry? Yes. I might be wrong, but I'd say in Kourou about 80 percent of people work in the space industry - as a support contractor, or for CNES, or for Arianespace and so on.- Describe your daily life. What's it like working here? Is it relaxed? Do you put down your tools and head for the beach when it gets too hot?... Life is very relaxed here. For people who like to be outside, people who like the sun, the rain, and the beach, it is very peaceful. The rhythm of life is quite slow, so we're not as stressed as you'd be in Paris or in Toulouse, where I went to study. So it's quite nice. Tezzele is a payload manager at the spaceport in Kourou But work is completely different. Because I work in customer support, I am on call. I have to work Monday to Saturday, and I can be called in at 8pm ""?so that's very different. But fortunately we have this [indicates the sunny environment]. Otherwise it would be very difficult if both professional and private life were stressful. You studied in France, but you returned home to a job in the space industry. Is that the only job prospect here? Is everyone who's born here predestined for a job in the space industry? Not everyone, but perhaps 50 percent of people. Local people know about the European Spaceport. The French Space Agency, CNES, is also well known, and that's important, because we have a launcher in the sky every month. So we're very involved in the space industry, compared to France, I guess. In France, people aren't so aware that we have this European spaceport here. But people who were born here are very interested in it. Do France and French Guiana differ in other ways as well? They're both French, but would you say this was an ""outpost"" for the ""mainland""? Is this like another country? To be honest, France was a very different country for me! French Guiana is France but it's completely different. My first reaction when I arrived in Paris was, ""Oh, why are so many people always running, what's happening?"" - because it's not like that in French Guiana. In Toulouse it's the same as in Paris. What struck me was the Metro. Everybody is always running because they don't want to miss a subway, even though they know there's another one every five minutes, so there's no need to be in such a hurry, you know? So there were many things like that that surprised me. The character is also very different. And it's a different culture. It took me about a year to understand the way of life there, and the way people think ""?and the weather! Winter was very difficult for me. And you didn't want to stay there? I believe it's important for people who were born in French Guiana to move abroad. It is absolutely necessary to open your mind, to talk and meet with other people, and to learn new things. That's important... An iguana in Kourou: not the sort of thing you'd expect to see on the Metro in Paris But so is coming home? Yes, that is also important - to bring all that back. To be honest, I hadn't wanted to come back when I did. But I did because there was an opportunity. I had wanted to travel farther around Europe or go to New Zealand, things like that. But life has some surprises and I got an opportunity to work here with the French Space Agency, so I said, ""Why not?"" What's the future for the space industry here? Is it solid? This was not the first home of French or European space launches, so how are things looking now? I'm not really sure about the industry. The launchers are manufactured in Europe because that's where the high technology is, and you could say, the bad thing about French Guiana is that we don't do high technology yet. How do you fix that? Is it a case of bringing more people here, or educating local people to develop more homegrown talent, more high technology? Look, this is only my point of view, it's not the way everyone sees it. But I believe it's important to have the high technology in France, so that people have to move. I don't believe that having high technology here, or a big science university""?well, it could be nice, but the problem that I would see is that people would stay in French Guiana, they would only [know] French Guiana, and never think about moving. And science and research need different cultures and countries to improve. Tamara Tezzele is an engineer and Payload Facilities Manager with the French Space Agency at the Guiana Space Center, Kourou, French Guiana.", -2763,2017/3/17,http://www.dw.com/en/us-president-trump-welcomes-chancellor-merkel-to-the-white-house/a-38000506?maca=en-rss-en-all-1573-rdf,US President Trump welcomes Chancellor Merkel to the White House,"Items on the agenda for the first meeting between the two leaders are NATO, Russia and global trade. The meeting began with a roundtable discussion alongside US and German business leaders.","President Donald Trump has welcomed Chancellor Angela Merkel to the White House for their first meeting.- The two leaders shook hands and smiled for the cameras before entering the West Wing. As they sat for more photos in the Oval Office following their discussion, Trump-quipped with journalists, urging them to-""send a good picture back to Germany, please."" Merkel said the talks went ""very well.""- Trump is the third US President Merkel has met as-Chancellor.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZS68 On the agenda On the agenda for the talks were strengthening NATO and defense spending, relations with Russia and trade policy.- On trade, German political and business leaders have expressed concerns with Trump's ""America First"" policy favoring US exports. Travelling to Washington with a delegation of German business owners, Merkel was expected to make the case for open markets and free trade to a president who has expressed protectionist leanings. The US President hosted a roundtable meeting with US and German business leaders, in which he praised Germany's vocational training and apprenticeship schemes. Ahead of Merkel and Trump's meeting, German Finance Minister Wolfgang Sch?uble spoke out against the US President's brand of protectionism during a meeting of G20 finance ministers in Baden-Baden. The Oval Office meeting had been initially been scheduled for Tuesday, but was postponed after a major snowstorm blanketed large parts of the US east coast. It's complicated While Friday's meeting marks the first occasion the two have met face-to-face, their relationship has already been complicated by the President's campaign rhetoric. -Trump berated-the German Chancellor on multiple occasions last year and accused-her of ""ruining Germany"" for her-open-door-refugee policy. Since the height of the migrant crisis in the fall of 2015, Germany has settled almost a million refugees from war-torn states such as Iraq and Syria. ""You watch what happens to Angela Merkel, who I always thought of as a very good leader until she did this,"" Trump, then a candidate, said at a rally in Virginia in August.-""I don't know what went wrong with her. Angela, what happened?""- dm/jm (AFP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZOyD", -2764,2017/3/17,http://www.dw.com/en/china-may-not-be-the-eu-s-answer-to-us-protectionism/a-37999849?maca=en-rss-en-all-1573-rdf,China may not be the EU's answer to US protectionism,"There is currently tension in the triangle of globalization powerhouses as the EU, US and China try to maintain cooperative growth amid US protectionism and Chinese ambition. Healthy competition hangs in the balance.","At the G20 finance ministers meeting in Germany on Friday, March 17, finance ministers from the world's largest economies were struggling to find consensus on free trade and protectionism for their final communiqu�� due to be released Saturday. German Finance Minister Wolfgang Sch?uble told reporters that ""It's possible that we explicitly exclude the topic of trade in Baden-Baden and say that can only be resolved at the summit of the state and government leaders."" The leaders of Germany and China have stressed the importance of open markets during a phone call. Their conversation came ahead of Chancellor Angela Merkel's meeting with US President Donald Trump. (16.03.2017) Why has US President Trump changed his stance on Washington's ""one China"" policy? In a DW interview, China expert Jan Gaspers says that despite Trump's affirmation, Sino-American ties will remain complicated. (10.02.2017) By nominating China critics and Russia friends, US President-elect Donald Trump has made clear that he intends to change the fundamental rules of US foreign and trade policies, expert Thomas J?ger tells DW. (29.12.2016) The Asian economic powerhouse has called on the Trump administration to respect the rules agreed by the members of the World Trade Organization, warning that moves to discredit them could trigger a 'trade war.' (09.03.2017) And in a phone conversation on Thursday, German Chancellor Angela Markel and Chinese President Xi Jinping, both expressed concern about the direction of US trade policy. Last year, China surpassed the US as Germany's largest trading partner. The uncertainty at the G20 and the handshaking between Berlin and Beijing are in response to an anticipated US turn to protectionism under President Donald Trump's ""America First"" economic rhetoric and statements from Trump threatening import duties on Chinese and German goods. In February, Reuters reported that the EU was preparing an ""early"" summit in April or May with China to ""promote free trade and international cooperation"" in the face of protectionism from Washington.-The report suggests that China wants to reemphasize President Xi Jinping's performance at the World Economic Forum in Davos where he championed China as a bastion of globalization. But behind diplomatic assurances of cooperation and open markets between China and the EU vis �� vis a new tone in Washington, the US and the EU share concerns that if China becomes the leader in key global industries, they will able to form their own protectionist policies and cut out western companies in favor of domestic enterprises. A great wall of innovation The EU Chamber of Commerce in China recently released a report criticizing Beijing's plan ""Made in China 2025,"" which calls for a giant increase in Chinese domestic production in key industries like transportation, robotics and renewable energy. They argue that eventually China will be able to discriminate against foreign companies, or pressure foreign businesses to give up technology in return for near-term market access.- Unlike in the EU and US, China is more able to manipulate its domestic market with government subsidies of preferred companies instead of allowing market competition to determine which enterprises succeed. European and American companies would find it hard to compete with government-supported Chinese firms. In their first meeting on Friday, German Chancellor Merkel and US President Trump will likely focus their talks on trade ""A decision to continue to use industrial policy to set market share targets for both China's domestic and international markets instead of allowing the market to determine who wins would come at Europe's expense,"" Lance Noble, policy and communications manager at the European Union Chamber of Commerce in China, told DW. ""If they are allowed to compete on an even playing field, European firms with advanced knowhow and products can make an important contribution to this process,"" added Noble. Mirjam Meissner, head of the economy and technology program at the Berlin-based Mercator Institute of China Studies (MERICS) told DW that, in general, China wouldn't grow at Europe's expense, but that government intervention in industries would lead to market conditions that discriminate against foreign companies on the Chinese market. ""In those sectors that have been identified by the Chinese government as strategic industries, this potentially leads to a painful decrease of market share for European companies within a few years,"" said Meissner. Growth is good China's aim to liberalize its markets and become a global innovator is a positive thing for the global economy, but for observers, the question remains how they go about growing key industries at the will of market mechanisms free of government subsidies. ""Government intervention in the market and state steering of investment, both in China and Europe, is an integral part of the 2025 initiative,"" said Noble. ""Unfortunately, governments are not well placed to pick winners or to determine which industries will drive future development."" But there are many indications that China is developing a large number of dynamic and innovative companies using a less direct form of government intervention. ""While the 'old' model of creating markets with the help of massive government funding still exists and poses a certain risk for the success of the strategy, the methods of government intervention have become subtler and more diversified in the past few years,"" said Meissner, adding that the government would use a ""fine-tuned"" system of policy measures to steer the economy and market players into the direction it is aiming at. Last year, China surpassed the US as Germany's largest trading partner The eagle and the dragon In the US, a report recently released by the Washington-based technology and innovation think tank, the Information Technology and Innovation Foundation (ITIF) took a much more direct tone regarding Chinese industrial ambitions under Made in China 2025 than the EU report. The report stated clearly that Chinese ""mercantilism"" was a direct threat to the US economy and the global trading system. Robert Atkinson, economist and president of the ITIF, told DW that the US would need to work with allies in the EU to ""constructively push back"" against Chinese ""innovation mercantilism."" ""The United States will have to lead this coalition but European nations will have to be willing to participate and not sit on the sidelines in the hope that the US plays the role of 'bad cop' -while they sit back and enjoy 'good' relations- with China,"" said Atkinson. ""Chinese firms are heavily dependent on government support, and taking advantage of foreign firms, in developing local champions in these sectors,"" added Atkinson. ""No doubt there are pockets of genuine innovation and competitiveness in some high-tech sectors in China, but the vast majority of the activity we see happening in these high-tech sectors is driven by the government, which leads to ineffective policies and wasteful spending."" ""If the Chinese government wanted to significantly curb its innovation mercantilist policies and actions it could easily do so.-They simply chose not to do so because they want to gain global market share in advanced industries,"" said Atkinson. Trump threatens import duties on Chinese and German goods Can everyone work together? The balance between the world's three economic powerhouses is in a state of-continual flux as each player tries to gain influence, maintain dominance or ensure stability. Whether the EU or the US constructively participate in China's growth and increasing gravity in a globalized economy depends on identifying common goals and common outcomes, which can benefit enterprise while being politically palatable for each region. ""China will improve economic governance and transparency, but its understanding of both substantially differs from what we would assume in Europe,"" said Meissner at MERICS. ""We should not expect China to turn into a liberal market economy based on our standards of economic governance and transparency. Instead, China is about to develop its own model of economic governance and it is highly likely that this will provide a strong basis for fast industrial development.""", -2765,2017/3/17,http://www.dw.com/en/brussels-re-imposes-hefty-fines-against-air-cargo-companies/a-37998538?maca=en-rss-en-all-1573-rdf,Brussels re-imposes hefty fines against air cargo companies,The European Union has re-imposed a massive fine on air cargo companies for colluding to fix the level of fuel and security surcharges. The previous attempt to make the firms pay a penalty had been thrown out by a court.,"The European Union on Friday re-imposed a fine on 11 air cargo companies totaling $835 million (776 million euros) after the original decision was thrown out by a high court on a procedural issue. After the initial fine had been annulled in 2015, the European Commission said Friday it fixed the original error and decided to re-establish the fines since the EU's General Court never rejected the antitrust case as such. The Commission found that the companies colluded to fix the level of fuel and security surcharges between 1999 and 2006. The companies involved were Air Canada, Air France-KLM, British Airways, Cargolux, Cathay Pacific Airways, Japan Airlines, LAN Chile, Martinair, Qantas, SAS and Singapore Airlines. European airlines are having a hard time competing in the international air freight market. But Germany's Lufthansa Cargo is facing the competition head on, and has become a market leader in refrigerated consignments. (18.11.2016) Logistics companies like DHL have benefited from growing trade volumes with China. A look behind the scenes at the DHL express air freight center in Stuttgart. (23.12.2015) Among the 11 firms, Air France was fined $197 million and its strategic partner KLM $137 million. Appeal again? ""Air France-KLM will analyze the new decision, and the advisability of appealing it,"" the group said in a statement. It added the fines had already been fully covered in its financial accounts since 2010, when the initial EU decision came in. Another of the companies, Scandinavian Airlines, maintained that its division SAS Cargo had not participated in the global cartel, and that it will appeal the decision. ""We strongly question the European Commission's move to re-impose a decision that has already been annulled once,"" SAS spokeswoman Marie Wohlfahrt said. ""SAS takes the competition rules extremely seriously and does not accept any breaches. We have a clear regulatory framework in place for compliance with competition law."" The current re-imposition of fines applies to all airlines except for Qantas, which did not appeal the 2010 decision. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2StCs A 12th cartel member, Lufthansa, and its subsidiary, Swiss International Air Lines, were given immunity for notifying the commission of the wrongdoing. Margrethe Vestager, EU commissioner for competition, said that more than 20 percent of EU imports and 30 percent of EU exports depend on air cargo services. ""Working together in a cartel rather than competing to offer better services to customers does not fly with the commission,"" Vestager said. sri/hg (AP, dpa)", -2766,2017/3/17,http://www.dw.com/en/depeche-mode-releases-spirit-an-unusually-political-album/a-37989870?maca=en-rss-en-all-1573-rdf,"Depeche Mode releases 'Spirit,' an unusually political album","The veteran British band Depeche Mode is releasing its new album, ""Spirit,"" with an intimate concert in Berlin. Here's a look back at the group's influence - and a variety of covers.","Cult British new wave band Depeche Mode dropped its 14th studio album on Friday. The group will be celebrating the new release with a concert at a small venue in Berlin, the Funkhaus concert hall. A 360-degree livestream will allow fans worldwide to join the performance. Active for four decades, Depeche Mode's dark synthpop sound of the 80s inspired many techno musicians afterwards. Goth teens recognized their own existential problems-in their angst-ridden-lyrics. The definition of alternative coolness for high-school kids towards the end of the 80s was to own the band's albums before everyone else discovered them with their first mainstream success in 1990, ""Violator,"" which included hits such as ""Personal Jesus,"" ""Policy of Truth"" and ""World in My Eyes."" The British band performing in Cologne in 1985 Although ""Q""-magazine once declared Depeche Mode-""the most popular electronic band the world has ever known,"" its-21st century output was less influential. Their albums and tours drew more-on the fans' nostalgia for-the soundtrack that healed-their first heartbreaks. 'Spirit': a new tone The new album could have been reduced to another trip down memory lane, but early reviews see it as a distinct highlight in the electro-pop veterans' discography: ""Blow by blow, it all adds up to Depeche Mod's best album this century,"" wrote ""Mojo"" magazine. The cover of the new album The album is their first collaboration with producer James Ford of the band Simian Mobile Disco, who also produced acclaimed albums by Florence & The Machine and Arctic Monkeys. Reflection of the post-Trump world As might be expected from-a band known for its emotional dissection of angst, ""Spirit"" reflects the word's current uncertainties. Recorded during the campaign for the Brexit referendum, it is their most political work to date. Some tracks unwittingly offer a direct answer to US President Donald Trump. The single ""Where's the Revolution"" declares, for example, ""You've been lied to, you've been fed truths / Who's making your decisions, you or your religion / Your government your countries, you patriotic junkies,"" going on to ask non-ironically, ""Where's the revolution? Come on people, you're letting me down."" ""I think a lot of people are very frustrated and very angry, and I think that they've just misplaced their anger. I think the system is broken and it needs to be fixed, but with the Brexit vote and by electing Trump, some of the decisions being made are not helping anyone,"" said bandmember and main songwriter Gore to ""Yahoo! Music"" in reference to the song. The black-and-white video directed by Anton Corbijn was released in February. Last month, during the Conservative Political Action Conference, the leader of the white nationalist movement in the US, Richard Spencer, controversially claimed that Depeche Mode was ""the official band of the alt-right."" Singer Dave Gahan forcefully denied any links between his band and the racist movement, calling Richard Spencer ""a very educated cu--,"" adding, ""That's the scariest kind of all."" Depeche Mode's ""Global Spirit Tour"" kicks off on May 5 in Stockholm, with concerts scheduled throughout Europe and North America until the end of October. -", -2767,2017/3/17,http://www.aljazeera.com/news/2017/03/official-resigns-israel-apartheid-report-170317182241142.html,UN official resigns over Israel apartheid report,ESCWA leader Rima Khalef says she resigns after UN leaders forced her to withdraw a report accusing Israel of apartheid.,"The head of the United Nations' West Asia commission, Rima Khalaf, has resigned over what she described as the pressure to withdraw a report that was critical of Israel. The report accused Israel of imposing an apartheid regime on Palestinians.-Lebanon-based Economic and Social Commission for Western Asia (ESCWA), which comprises 18 Arab states, published the report on Wednesday and said it was the first time a UN body had clearly made the charge. READ MORE: UN report - Israel has established an 'apartheid regime' ""It was expected that Israel and its allies will exercise pressure on the UN secretary general to distance himself from the report.and that they will ask him to withdraw it,"" Khalaf said at a press conference in Beirut on Friday. ""The secretary general issued his orders to me yesterday morning to withdraw the report. I asked him to review his position but he insisted,"" she said. ""Therefore I submitted to him my resignation from the UN."" Al Jazeera's Imtiaz Tyab, reporting from Beirut, said that-Khalaf clearly stated that she was still standing by the report, which in very explicit terms accused Israel of pursuing apharteid policies in the Palestinian territories. ""The Israeli government was very critical of the report even describing it as 'Nazi Propoganda' and one would imagine that they made it very clear to the UN leadership that that is how they saw it. ""So, one would also imagine that is perhaps why the UN secretary general is demanding this report to be withdrawn from ESCWA website."" Al Jazeera correspondent said. At the time of the publication, the report titled ""Israeli Practices Toward the Palestinian People and the Question of Apartheid"" was not on the website of the UN agency, with the link for the report now directing to a web page that consists ESCWA's prior publications. A UN spokesman on Friday claimed the issue with Khalaf was not the content of the report but as a result of her failure to follow the necessary procedure before the publication .- ""This is not about content, this is about process,"" said UN chief Antonio Guterres' spokesman Stephane Dujarric. OPINION: Israel is an apartheid state (no poll required) ""The secretary-general cannot accept that an under-secretary-general or any other senior UN official that reports to him would authorise the publication under the UN name, under the UN logo, without consulting the competent departments and even himself,"" he told reporters. Al Jazeera's Tyab said it was ""highly unlikely"" that the UN leadership was unaware of the report's existence or the language inside it before its publication. ""The curious thing here is that Al Jazeera and many other news organisations had been aware of this report for several days now,"" he said. - ""In fact most news organisations were invited to the press conference that was held around 24 hours ago where this report was released and members of the media were also given an embargoed advance look at this report. ""So it is very curious that the UN is now saying that the official procedures hadn't been followed, that they were not aware of the language inside the report, when even many in the media were aware of its publication and its contents."" ""This feels like yet another chapter in the very strained and complicated relationship the UN has with Israel."" Source:-Al Jazeera and news agencies", -2768,2017/3/17,http://www.aljazeera.com/news/2017/03/morocco-king-names-foreign-minister-pm-170317145114580.html,Morocco's king names former foreign minister as new PM,"Saad-Eddine El Othmani, a former foreign minister from the Islamist PJD party, tasked to form a new government.","Morocco's king has named Saad Eddine El Othmani from Islamist PJD Party as the country's new prime minister and asked him to form a government, according to a royal statement published by the MAP state news agency on Friday. Othmani served as foreign minister between 2011-2013 and had since served as the head of the PJD's parliamentary group. King Mohammed VI-announced on Wednesday he would replace Abdelilah Benkirane as prime minister with another member of the PJD in an effort to break a five-month post-election deadlock. The king took the decision to oust Benkirane ""in the absence of signs that suggest an imminent formation"" of a government and due to ""his concern about overcoming the current blockage"" in political negotiations, the royal statement said on Wednesday. Benkirane had been reappointed after the PJD, which first came to power in 2011, increased its share of the vote in October elections, maintaining its position as the biggest party. READ MORE: Morocco's February 20 movement: 'Demands still alive' Under Morocco's election law no party can win an outright majority in the 395-seat parliament, making coalition governments a necessity in a system where the king still holds ultimate power. But the PJD failed to form a majority despite five months of intense negotiations - the longest time Morocco has been without a government in its recent history. Benkirane proposed to rebuild his outgoing coalition, an alliance comprising a range of parties including other Islamists, liberals and ex-communists. However, he faced opposition from Aziz Akhannouch - leader of the National Rally of Independents (RNI) and a billionaire former agriculture minister who critics say is close to the king - and the resulting power struggle quickly led to political impasse. Negotiations stalled mostly over the RNI's insistence on-imposing a bloc of four minor parties into the coalition, which would weaken the PJD sway. READ MORE: Moroccan pragmatism - A new chapter for Western Sahara It is not clear what difference Othmani's-appointment makes to the PJD's negotiating position on forming a government. The PJD is due to host a national council meeting on Saturday to decide its next steps. On Thursday it issued a statement in support of Benkirane. ""He is not responsible, in any way, for the delay in forming a government,"" it said. The PJD was the first Islamist party to win an election in Morocco and the first to lead a government after Mohammed - whose family has ruled Morocco since the early 1600s - gave up some of his power when thousands took to the streets in peaceful demonstrations inspired by the wave of uprisings across the Arab world. The party increased its share of the vote in October elections, maintaining its position as the biggest party. But it has been met with resistance during political negotiations from parties who opponents describe as being close to the palace. Under constitutional reforms adopted in the North African country in 2011 to quell pro-democracy protests, the prime minister must be appointed from the largest party in parliament. Source:-Al Jazeera and news agencies", -2769,2017/3/17,http://www.aljazeera.com/news/2017/03/houthi-missile-attack-kills-dozens-yemen-mosque-170317161658542.html,Houthi missile attack kills dozens in Yemen mosque,Two missiles hit worshippers attending Friday prayers inside military base in Yemen's western Marib province.,"At least 22 members of pro-government forces have been killed in a rebel attack on a mosque inside a military base in Yemen, according to medical sources. Two missiles fired by Houthi rebels on Friday hit worshippers in Sirwa, western Marib province. The first missile hit the mosque inside the Kofal military camp during prayers, while the second struck during rescue efforts, local sources said. Dozens of people were also wounded in the attack, which was claimed by a rebel news agency. READ MORE: Yemen's other refugee crisis Most of Marib is under control of forces loyal to the Saudi-backed government of President Abd-Rabbu Mansour Hadi. In 2014, Houthi fighters overran Yemen's capital Sanaa and forced the Saudi-backed government of President Abd-Rabbu Mansour Hadi to flee into exile. An Arab coalition was assembled by Saudi Arabia in 2015 to fight the Houthis and troops loyal to former President Ali Abdullah Saleh who have fired missiles into neighbouring Saudi Arabia. Source:-Al Jazeera and news agencies", -2770,2017/3/17,http://www.aljazeera.com/news/2017/03/nobel-laureate-derek-walcott-dies-87-st-lucia-170317155417800.html,Nobel laureate Derek Walcott dies at 87 in St. Lucia,Winner of 1992 Nobel Prize in Literature dies at his house in Caribbean island of St. Lucia after long illness.,"Nobel Prize-winning poet-Derek Walcott has died at his home in the eastern Caribbean island of St. Lucia at the age of 87. A prolific and versatile poet, Walcott was widely respected-as one of the greatest writers of the second half of the 20th century. ""Derek Alton Walcott, poet, playwright, and painter died peacefully today, Friday 17th March, 2017, at his home in Cap Estate, Saint Lucia,"" read a statement his family released later in the morning.-It said the funeral would be held in St. Lucia and details would be announced shortly. Jeff Seroy, a spokesman for publisher Farrar, Strauss and Giroux, said the cause of death was not immediately known, but added that Walcott had been ill for some time and had recently returned home from a hospital stay. His longtime companion, Sigrid Nama, was with him at the time of his death, Seroy said With passions ranging from watercolor painting to teaching to theatre, Walcott's work was widely praised for its depth and bold use of metaphor, as well as its mix of sensuousness and technical prowess.- Walcott received the Nobel Prize in literature in 1992 after being shortlisted for the honour for many years. In selecting him, the Swedish academy cited ""the great luminosity"" of his writings, including the 1990 ""Omeros"", a 64-chapter Caribbean epic it praised as ""majestic."" ""In him, West Indian culture has found its great poet,"" said the academy in awarding the $1.2m prize to Walcott. A distinctly Carribean poet Walcott proudly celebrated his role as a Caribbean writer. ""I am primarily, absolutely a Caribbean writer,"" he once said during a 1985 interview published in The Paris Review. ""The English language is nobody's special property. It is the property of the imagination: it is the property of the language itself. I have never felt inhibited in trying to write as well as the greatest English poets."" Walcott said his writing reflected the ""very rich and complicated experience"" of life in the Caribbean.-He compared his feeling for poetry to a religious avocation. Walcott was born in St. Lucia's capital of Castries on January 23, 1930 to a Methodist schoolteacher mother and a civil servant father, an aspiring artist who died when te poet and his twin brother, Roderick, were babies. His mother, Alix, instilled the love of language in her children, often reciting the work of William Shakespeare and reading aloud other classics of English literature. READ MORE: John Berger, author of 'Ways of Seeing', dies aged 90 At the age of 14, he published his first work, a 44-line poem called ""1944"", in a local newspaper. About four years later, while still in his teens, he self-published a collection of 25 poems. At 20, his play ""Henri Christophe"" was produced by an arts guild he co-founded. He left St. Lucia to immerse himself in literature at Jamaica's University College of the West Indies. In the 1950s, he studied in New York and founded a theatre in Trinidad's Port-of-Spain, a Caribbean capital he mentioned with great warmth during his Nobel lecture in 1992. Walcott's treatment of the Caribbean was always passionate but unsentimental. In his 1979 work about Jamaica, ""The Star-Apple Kingdom"", he wrote of the ""groom, the cattleboy, the housemaid ... the good Negroes down in the village, their mouths in the locked jaw of a silent scream"". For much of his life, Walcott, who taught at Boston University for many years, divided his time between the United States and the Caribbean, and the exile of millions of Caribbean citizens who have left the region in search of a better life is another frequent theme in his works. Although he was best known for his poetry, Walcott was also a prolific playwright, penning some 40 plays, including ""Dream on Monkey Mountain"" and ""The Last Carnival"", and founding theatres such as the Boston Playwrights' Theatre. British writer Robert Graves said in 1984 that Walcott handled ""English with a closer understanding of its inner magic than most - if not any - of his English-born contemporaries"". Walcott's reputation was weakened by sexual harassment allegations made against him at Harvard and Boston universities in the 1980s and 1990s. He retired from teaching at Boston University in 2007 and spent more of his time in St. Lucia. Source:-Al Jazeera and news agencies", -2771,2017/3/17,http://www.aljazeera.com/news/2017/03/somali-refugees-killed-bab-al-mandeb-strait-170317094108016.html,Somali refugees killed near Bab al-Mandeb Strait,"Attack on boat near Bab al-Mandeb Strait leaves dozens of people, reportedly carrying official UNHCR documents, dead.","Dozens of Somali refugees have been killed off the coast of Hodeidah in -Yemen after a helicopter attacked the boat they were travelling in, according to the International Organization for Migration. Joel Millman, spokesman for the Geneva-based agency, told the AFP news agency that 42 bodies had been ""recovered"", after earlier reports on Friday had put the fatalities at more than 30. Mohamed al-Alay, a local coastguard officer in the Houthi-controlled Hodeidah area, told the Reuters news agency that the refugees-were on their way from Yemen to Sudan when they were attacked late on Thursday by an Apache helicopter near the Bab al-Mandeb Strait. The refugees were reportedly carrying official UN refugee agency (UNHCR)- documents. A sailor who had been operating the boat, Ibrahim Ali Zeyad, said 80 refugees were rescued after the incident. It was not immediately clear who had carried out the attack. William Spindler, a spokesman for UNHCR, said many of those killed and wounded were registered refugees who had escaped conflict in Somalia. ""We are appalled by this attack on innocent civilians. These are people who have already suffered so much and risked their lives to flee Somalia,"" he said. ""They are people who ... tried to find security in Yemen but found the situation there becoming increasingly dangerous, with the conflict and the humanitarian crisis coming close to a famine. And now, trying to go somewhere else to look for safety and finding this tragic end."" Hodeidah, on the Red Sea, is controlled by Iran-allied Houthi fighters who in 2014 overran Yemen's capital Sanaa and forced the Saudi-backed government of President Abd-Rabbu Mansour Hadi to flee into exile. An Arab coalition was assembled by Saudi Arabia in 2015 to fight the Houthis and troops loyal to former President Ali Abdullah Saleh who have fired missiles into neighbouring Saudi Arabia. The Bab al-Mandeb is a strategic waterway at the foot of the Red Sea through which nearly four million barrels of oil are shipped daily to Europe, the US and Asia. Source:-Al Jazeera and news agencies", -2772,2017/3/17,http://www.aljazeera.com/news/2017/03/australia-anglican-church-ashamed-child-abuse-170317152005040.html,Australia's Anglican Church 'ashamed' about child abuse,Australia's Anglican Church says it is 'ashamed' after a new report reveals the scale of child sex abuse. 'Deeply ashamed' Anglican bishop resigns,"The head of Australia's Anglican Church said he was 'deeply ashamed' after a government report found nearly 1,100 people had filed child sexual assault claims against the church over a 35-year period. The interim report, published on Friday by the Royal Commission into Institutional Responses to Child Sexual Abuse, said 1,082 people lodged complaints between 1980 and 2015 that identified 569 Anglican clergy, teachers and volunteers as alleged abusers. There were an additional 133 alleged abuses reported by people whose roles within the church were unknown. The report also found that most children were approximately 11 years old at the time of the first alleged incident of child abuse, and on average it took 29 years for each incident to be reported. Archbishop Philip Freier, the church's primate, said Anglicans have been ""shocked and dismayed"" at the findings of the report. ""We are deeply ashamed of the many ways in which we have let down survivors, both in the way we have acted and the way we have failed to act,""-Freier said in a statement. ""I wish to express my personal sense of shame and sorrow at the way survivors' voices were often silenced and the apparent interests of the Church put first,"" he added. Anne Hywood, the general secretary of the Anglican Church of Australia, told the royal commission on Friday that the church acknowledged it ""allowed harm to continue"". She also reiterated a 2004 apology to abuse victims, saying the church ""apologises unreservedly"" and is committed to taking action. On Thursday, Greg Thompson, the Anglican Bishop of Newcastle, announced his resignation months after he testified he was not safe in his community due to his work to address child sexual abuse. Thompson, who was sexually molested as a teenager by a bishop, said he was quitting to focus on his health. In November, he told the royal commission that people of power provided protection during decades of abuse by clergy and lay people in the diocese. He also said he felt there were consequences if he did not follow what some within the diocese wanted him to do. The royal commission is also investigating abuse allegations against other religious institutions. Last month, it was told the Australian Catholic Church paid $212 million in compensation to thousands of victims since 1980. READ MORE: 'Shocking' scale of Catholic Church sex crimes revealed The inquiry also heard that about seven percent of Catholic priests in Australia were accused of sexually abusing children between 1950 and 2010. Church sexual abuse was put into the spotlight in 2002 when it was revealed that US Catholic bishops in the Boston area helped protect alleged abusers by moving them from parish to parish.- Similar scandals have since been revealed worldwide. Source:-Al Jazeera and news agencies", -2773,2017/3/17,http://www.aljazeera.com/indepth/inpictures/2017/03/week-pictures-park-ouster-holi-festival-170317131359386.html,Week in pictures: From Women's Day to Kashmir killing,,, -2774,2017/3/17,http://www.aljazeera.com/news/2017/03/northern-namibia-braces-worst-flood-memory-170317113756362.html,Northern Namibia braced for worst flood in memory,This year's wet season brings significant flooding to the most densely populated area of the country. Erratic rainfall,"Flooding in Namibia's Cuvelai-Etosha catchment area has reached alarming levels in recent weeks, with-residents being warned to take the necessary precautions in expectation of the worst possible floods experienced in the region in living memory. This is according to the Ministry of Agriculture, Water and Forestry; the disaster risk-management division in the prime minister's office; and the Namibia meteorological services. In a joint statement, the authorities warned that the magnitude of flooding expected in the northern central regions is likely to surpass that of 2011, which saw the highest level of flooding in Namibia's recent history. ""The 2017 floods are predicted to become even higher if good rains continue, as they are both in the headwaters of the Cuvelai catchments in southern Angola and in the northern border areas of Namibia within these catchments,"" the statement said. The situation is predicted to be made worse by the opening of the sluice gates of the Gove Dam. Water from the dam is expected to flood the Kunene River, which in turn will flood parts of southern Angola and northern Namibia. Efundja, the annual seasonal flooding of the northern parts of the country, often causes not only damage to infrastructure but also loss of life. The rains that cause these floods fall in Angola, then flow into Namibia's Cuvelai basin and end up filling the flood plains there. The basin is characterised by an interconnected system of shallow water courses, called oshanas, which are the ""life-support system"" for the most densely populated area in the country. They are easily prone to flooding through excessive rain or controlled release from dams. Water levels in the oshanas in the Omusati region have been rising since last week, an indication that more water from Angola has been flowing into the country. Namibia is considered to be one of the most vulnerable countries to the effects of climate change in sub-Saharan Africa. Dry land, a hot and dry climate and erratic rainfall patterns, have traditionally exposed the country to recurrent droughts and wild fires. In Namibia's interior, surface water is available only in the summer months when rivers are in flood after exceptional rainfalls. Luckily, boreholes can be used in about 80 percent of the country. Source:-Al Jazeera and news agencies", -2775,2017/3/17,http://www.aljazeera.com/news/2017/03/indigenous-indonesian-rally-land-rights-170317103333776.html,Indigenous Indonesian rally for land rights,"Fearing extinction, indigenous tribes in Indonesia call on the government to protect their land rights.","Thousands of indigenous Indonesians-gathered on Sumatra, urging President Joko Widodo to protect their land rights. On Friday, more than 5,000 people from 2,000 indigenous communities convened in Tanjung Gusta village outside North Sumatra's provincial capital Medan. The gathering is organised by the Indigenous Peoples Alliance of the Archipelago and held every five years. ""We'll fight for our rights to the last drop of our blood,"" said Abdon Nababan, the secretary-general of the alliance at the conference. Indonesia's environment and forestry minister reiterated on Friday the government's commitment to indigenous rights. ""It was only a start and not the end of this struggle,"" Siti Nurbaya Bakar told the gathering, referring to the December announcement to return customary lands. Indonesia is home to an estimated 50-70 million indigenous people, but many do not have formal title to the land their families have lived on for generations. The alliance says more than 8.2 million hectares of forest belongs to the nation's myriad indigenous groups, but Joko's government has so far only granted a total of 13,122 hectares to nine communities. For decades they have been locked in bitter battles with logging, palm oil and mining companies that have been expanding into their homelands in the resource-rich Southeast Asian nation. READ MORE: Four Indonesians richer than poorest 100 million Widodo has pledged to improve their lives, but activists say his ambitious plans to boost infrastructure and energy production, including building dams, means that more tribes are at risk of being displaced. ""Even though the government has nice policies on paper, we continue to face land grabs ... and forced evictions throughout Indonesia,"" said Rukka Sombolinggi, deputy head of the alliance. ""We are willing to share, but development has to be done with our consent,"" she said. Indonesia's Constitutional Court ruled in 2013 that indigenous people have the right to manage forests where they live, in a verdict hailed as a victory for indigenous land rights. The government last December announced that it would return 13,000 hectares of customary lands to nine indigenous communities, and committed to giving back a total of 12.7 million hectares - roughly the size of Greece - to local and indigenous groups. More than 230 indigenous leaders and activists are currently on trial for battling to save their homelands, while at least six tribes face the threat of extinction as a result of land conflicts, said campaigner Sombolinggi, of the Sulawesi island's Toraja tribe, ""Our livelihood and our existence are being affected. When we are evicted from our land, what else do we have?"" she asked. Studies to be presented at the World Bank's 18th Annual Land and Poverty Conference in Washington, DC, next week confirm indigenous leaders' claims that local communities are best-equipped to protect forests around the globe, the indigenous congress' organisers said.-- One study suggests that carbon-rich peat lands that have been ravaged by annual forest fires in Indonesia could be saved if the government gives greater forest rights to local communities- - - ""The findings suggest that granting communal land rights to indigenous inhabitants of tropical forests is among the most underused and effective solutions to combating violence, poverty and the illegal deforestation that fuels climate change,"" they said in a statement. Source:-News agencies", -2776,2017/3/17,http://www.aljazeera.com/news/2017/03/iran-pilgrims-join-year-hajj-saudi-arabia-170317124931718.html,Iran pilgrims to join this year's hajj: Saudi Arabia,Iran's pilgrims did not attend the hajj in 2016 after the two countries failed to agree on security and logistics.,"Iranian pilgrims will participate in this year's annual hajj, Saudi Arabia has said, after an absence last year during tensions between the regional rivals. ""The ministry of hajj and the Iranian organisation have completed all the necessary measures to ensure Iranian pilgrims perform hajj 1438 according to the procedures followed by all Muslim countries,"" the official Saudi Press Agency said on Friday, referring to this year in the Islamic calendar. For the first time in nearly three decades, Iran's pilgrims - which would have numbered about 60,000 - did not attend the hajj in 2016 after the two countries failed to agree on security and logistics. Riyadh and Tehran have no diplomatic relations, and tensions remain as Sunni-majority Saudi Arabia repeatedly accuses Iran of fuelling regional conflicts by supporting armed Shia movements in Syria, Iraq, Yemen and Bahrain. But the Saudi hajj ministry said on Friday that the kingdom, the birthplace of Islam, welcomes ""all pilgrims from all the different nationalities and backgrounds"". READ MORE: Saudi-Iran standoff: War or a grand bargain? Custodian of Islam's holiest sites in Mecca and Medina, Saudi Arabia organises the annual Hajj, one of the five pillars of Islam which every able-bodied Muslim who can afford to is obliged to undertake at least once in a lifetime. Iran boycotted the Hajj for three years between 1988 and 1990 after clashes between Iranian pilgrims and Saudi police in 1987 left around 400 people dead. Diplomatic ties were restored in 1991, but relations have deteriorated once again in recent years, particularly over the countries' support for opposing sides in the Syria and Yemen wars. In January last year, relations were severed again after Iranian demonstrators--torched Saudi Arabia's embassy-and a consulate following Saudi Arabia's execution of a Shia figure along with 47 ""terrorists"". Source:-Al Jazeera and news agencies", -2777,2017/3/17,http://www.aljazeera.com/news/2017/03/authorities-facebook-fight-blasphemy-170317081007397.html,Authorities ask Facebook to help fight blasphemy,"Pakistanis turn to social media network for help in investigating ""blasphemous content"" on the platform.","Islamabad, Pakistan - Pakistani authorities have contacted social media website Facebook for help in investigating the posting of ""blasphemous content"" on the platform by Pakistanis, according to a statement. Blasphemy is an extremely sensitive issue in Pakistan. Insulting the Prophet Muhammad carries a judicial death sentence and, increasingly commonly, the threat of extrajudicial murder by right-wing vigilantes. At least 68 people have been killed in connection with blasphemy allegations since 1990, according to a tally maintained by Al Jazeera. ""There have been positive developments in the matter of the Pakistani government's contact with Facebook's management regarding the blocking of blasphemous content,"" an interior ministry spokesperson said in a statement on Thursday. READ MORE: In Pakistan, a shrine to murder for 'blasphemy' Facebook would be sending a representative to visit Pakistan with regard to the matter, the statement said, and the government has appointed an official to liaise directly with the social networking website regarding the censoring of certain content. In a statement quoted by the AP news agency,-Facebook said it viewed government requests with care keeping in mind ""the goal of protecting the privacy and rights of our users"". The move comes after Nawaz Sharif, Pakistan's prime minister,-ordered a ban on all online content deemed to be ""blasphemous"" on Tuesday. ""Ridiculing a religion in the name of freedom of expression should not be allowed,"" Chaudhry Nisar Ali Khan, Pakistan's-interior minister, said-on Thursday. Khan is spearheading the government's efforts to have the material blocked. READ MORE: TV host Aamir Liaquat banned over 'hate speech' Eleven people have been identified as having posted ""blasphemous"" comments or material on Facebook and will be acted against, the minister said. The identities of the 11 people in question were not immediately clear. The authorities' move comes after a senior judge at the Islamabad High Court called upon the government to block all blasphemous content online, ""even at the cost of blocking entire social media"". The petition at the High Court accuses five rights activists who were abducted in early January of running Facebook pages that had posted content deemed to be blasphemous. No evidence has been shared directly linking the five activists to the Facebook pages in question, but during their three-week disappearance the men were the subject of a vast social media campaign accusing them of blasphemy. READ MORE: Pakistan's violent cyberspace - No place for dissent Pakistan's telecommunications regulator currently blocks hundreds of websites, including those run by ethnic Baloch dissidents, as well as sites containing pornography or material deemed to be blasphemous. It is empowered under a 2016 law to block any content ""if it considers it necessary in the interest of the glory of Islam or the integrity, security or defence of Pakistan or any part thereof, public order, decency or morality"". In January 2016, Pakistan ended a three-year ban on video-sharing website YouTube, also over blasphemous content, after the content provider agreed to launch a localised version that would streamline the process for content to be censored for viewers in Pakistan. Asad Hashim is Al Jazeeras Web Correspondent in Pakistan. He tweets @AsadHashim. Source:-Al Jazeera News", -2778,2017/3/17,http://www.aljazeera.com/news/2017/03/ngos-criticise-turkey-eu-deal-refugees-170317065406849.html,NGOs criticise Turkey-EU deal on refugees,"Deal to prevent human flow make it very hard to seek refuge in EU and mental issues on rise among refugees, NGOs say.","A Turkey-European deal to stop the flow of refugees into Europe has made seeking refuge in the continent ""mission impossible"" as vulnerable people stuck in camps in Greece suffer serious mental illnesses, according to a number of charities. The International Rescue Committee (IRC), Norwegian Refugee Council (NRC) and Oxfam said on Thursday that the deal exposed refugees to risk and abuse, and accused Europe of setting a dangerous precedent. ""The EU-Turkey deal is playing roulette with the futures of some of the world's most vulnerable. It has become mission impossible for those who need it most to seek refuge in Europe,"" Panos Navrozidis, the IRC's country director in Greece, said. In a separate statement on the same day, Save the Children and Doctors Without Borders, known by its French initials MSF, said refugees stuck in Greek camps, including children as young as nine, are cutting themselves, attempting suicide and using drugs to cope with the ""endless misery"". The NGOs said anxiety, depression and aggression were on the rise in these camps, stressing that mental health was ""rapidly deteriorating due to the conditions created as a result of this deal"". The EU-Turkey deal came into force on March 20, 2016, after more than a million refugees and refugees from Syria, Iraq, Afghanistan and beyond reached Europe in 2015, crossing over to Greek islands from Turkey. Under the deal, anyone who crosses into Greece without documents can be deported to Turkey unless they qualify for asylum in Greece. But long asylum procedures and a huge backlog have stranded 14,000 asylum seekers on five Greek islands, double the capacity. The European Union has hailed the deal as a success for stemming the tide of refugees to Europe through Greece. An estimated 1.2 million people sought asylum in the EU in 2016, slightly fewer than in the previous year, the bloc's statistics office said on Thursday. Source:-News agencies", -2779,2017/3/17,http://www.aljazeera.com/indepth/interactive/2017/03/germany-usa-face-face-170313140343442.html,Germany and USA: Face to face,"Two of the biggest leaders of the free world meet to discuss trade, refugees and global security. On the economy On the military On refugees",, -2780,2017/3/17,http://www.aljazeera.com/news/2017/03/tillerson-korea-find-approach-korea-170317054150163.html,Tillerson in S Korea to find 'new approach' on N Korea,US secretary of state says military action an 'option on the table'' as 20 years of diplomacy have come to nothing. 'Strategic patience',"The- US secretary of state -has arrived in South Korea with the aim of finding a ""new approach"" for relations with North Korea after what he described as two decades of failed efforts to denuclearise the reclusive state. Rex Tillerson -on Friday visited the Demilitarised Zone (DMZ), which divides the two Koreas in line with an armistice agreement signed in 1953, to gaze on the North for himself. He said US military action against North Korea is an ""option on the table"", and warned-the country to end its missile and nuclear programmes. ""The policy of strategic patience has ended,"" Tillerson said during his joint press conference with his South Korean counterpart Yun Byung-se. Tillerson, a former oil executive, began his first Asian visit as secretary of state in Japan on Wednesday. He will travel to China from South Korea on Saturday. He landed at Osan airbase in South Korea from Japan and transferred to a Blackhawk helicopter for his trip to the DMZ, where he met the commander of the 28,000 US troops stationed in the South to defend the country. ""Certainly we do not want to, for things to get to military conflict,"" he said in Seoul, but ""if they elevate the threat of their weapons programme to a level that we believe requires action, then that option is on the table."" READ MORE: China urges US, N Korea to avoid 'head-on collision' ""Strategic patience"" is the term given to the US policy under-Barack Obama when the US ruled out engaging the North until it made a tangible commitment to denuclearisation, hoping that internal stresses would bring about change. Previously, Tillerson had said in Tokyo that 20 years of diplomatic and other efforts, including a period when the US provided North Korea with $1.35bn in assistance ""to take a different pathway"", had come to nothing. ""In the face of this ever-escalating threat, it is clear that a different approach is required. Part of the purpose of my visit to the region is to exchange views on a new approach,"" he told a news conference, his first as secretary of state. Al Jazeera's Rob McBride, reporting from Seoul, said that Tillerson stressed the need to forge closer cooperation between Asian allies of the US against North Korea. ""Tillerson said that US, Japan and South Korea should strengthen their trilateral partnership in the face of what they see as increasing aggression from North Korea,"" he said. North Korea has a long-standing ambition to become a nuclear power and conducted its first underground atomic test in 2006, in the teeth of global opposition. The country has continued to defy the international community for years, even after two rounds of UN-backed sanctions. It has conducted two nuclear tests and a series of missile launches since the beginning of last year. Last week, North Korea launched four more ballistic missiles and is working to develop nuclear-tipped missiles that can reach the US. The US has been pressing China to do more to rein in North Korea's nuclear and missile programmes, including imposing tougher sanctions on North Korea. However, China has been infuriated by the deployment of a US missile defence system to the South. China says the system's radar is a threat to its security. Source:-Al Jazeera and news agencies", -2781,2017/3/17,http://www.aljazeera.com/news/2017/03/israel-carries-air-strikes-syria-170317070831903.html,Israel carries out air strikes inside Syria,"Fighter jets bomb multiple targets, prompting Syrian retaliation with ground-to-air missiles, Israeli army says. Unidentified object Arms convoys targeted","The Israeli army says its aircraft have carried out several strikes inside Syria overnight, prompting Syrian forces to retaliate with ground-to-air missiles, one of which was intercepted. It was one of the most serious incidents between the two countries, which remain technically at war, since civil war broke out in Syria in March 2011. In response of Thursday night's attack, the Syrian government deployed air defence systems and fired a number of missiles towards Israeli jets, Israeli daily Haaretz reported. None of the missiles struck the jets, the army said, though one of the projectiles was intercepted by Israel's Arrow missile defence system north of Jerusalem, according to Haaretz. ""Overnight ... aircraft targeted several targets in Syria,"" an Israeli army statement said. ""Several anti-aircraft missiles were launched from Syria following the mission and [army] aerial defence systems intercepted one of the missiles."" Rocket sirens sounded in Israeli settlements in the Jordan valley, the military said and two witnesses heard an explosion a few minutes later, Reuters news agency reported. Syria's army high command confirmed in a statement on Friday that Israeli jets breached Syrian airspace early in the morning and attacked a military target near Palmyra. The high command described the attack as an act of aggression that aided the Islamic State of Iraq and the Levant (ISIL) group, which is fighting against the Syrian government. It said its air defences shot down one of four Israeli jets over what it called ""occupied ground"" and damaged another. There were no reports by the Israeli army of any aircraft lost in the operation.- Jordanian news reports said an ""unidentified object"" fell from the skies on Thursday night in the northern area of Irbid, after which security forces surrounded the area of impact. Pictures shared on social media showed what appeared to be part of a missile that had landed in a yard. It was not clear whether the object was part of of missile intercepted by Israel, part of an Israeli missile, or another object. Both Israeli and other news media have reported Israeli air strikes inside Syria targeting arms convoys of Lebanese group Hezbollah, which fought a 2006 war with Israel and is now fighting alongside the Syrian government. But normally Israel makes no official comment. The missile fire prompted air raid sirens to go off in the Jordan Valley during the night, the Israeli army said. Source:-Al Jazeera and news agencies", -2782,2017/3/17,http://www.aljazeera.com/news/2017/03/clashes-pakistan-afghanistan-border-kill-170317061451793.html,Clashes hit Pakistan-Afghanistan border,Pakistani Taliban faction says it carried out attack on border post as suicide attack is 'foiled in Khyber Pakhtunkhwa'.,"Islamabad, Pakistan --Eight people, including two soldiers, have been killed in a raid on a Pakistani military border post in the Khyber tribal area, according to the Pakistan military. The raid was launched from Afghan territory on Friday and resulted in the killing of six attackers and two Pakistani soldiers. The Tehreek-e-Taliban Pakistan's Jamaat-ur-Ahrar faction claimed responsibility for the attack in a statement issued via email to media, claiming it had attacked three border posts, capturing one. ""One of the Pakistani forces' posts was defeated by the mujahideen and set on fire,"" said Asad Mansoor, spokesman for the group. READ MORE: Afghan refugees return home amid Pakistan crackdown Pakistan shares a largely unpatrolled 2,500km-long mountainous border with Afghanistan, which the latter disputes. Afghanistan-rejects the colonial-era Durand Line border drawn up in 1893 and does not want a solid recognition of the boundary. In a second incident in the Khyber tribal area on Friday, a military operation in Rajgal Valley killed ""several"" fighters, according to the-Pakistani military media wing,-Inter-Services Public Relations (ISPR). An ISPR statement said-troops acted on a tip-off on the presence of the leader of banned armed group, Lashkar-e-Islam,-in the area. Also on Friday, Pakistan's military said it had foiled an attempted suicide attack on a paramilitary training centre in Shabqadar, in the northwestern Khyber Pakhtunkhwa province. Two suicide bombers and a soldier were killed in the attempted attack, while another soldier was wounded, the military said. Since a wave of violence in February claimed more than 130 lives across Pakistan, authorities there have sealed the main border crossings with Afghanistan, blaming that country for giving sanctuary to Pakistani Taliban fighters. Afghanistan denies the charge, and has long accused Pakistan of providing sanctuary to Afghan armed groups such as the Afghan Taliban and Haqqani network. READ MORE: Pakistan's new COAS - General Qamar Javed Bajwa On Thursday, Sartaj Aziz, foreign policy adviser to the Pakistani prime minister, and Haneef Atmar, the Afghan national security adviser, met for talks in London aimed at ending the latest impasse. ""Discussions were substantive, constructive, forward-looking and resultful,"" said Omar Zakhilwal, Afghanistan's ambassador to Pakistan, in a statement following the meeting. ""The success of this important meeting certainly will be judged by the common people of our two respective countries as to how this, in practical terms, responds to their aspiration for good neighbourly relations, peace and their wellbeing."" Source:-Al Jazeera News", -2783,2017/3/17,http://www.aljazeera.com/programmes/specialseries/2017/02/art-trafficking-170228090044987.html,Art Trafficking,We investigate the clandestine world of art and antiquities trafficking. Returning pillaged artefacts The museums Private collectors The ISIL dimension Other famous stolen artefacts-,"Filmmaker: Tania Rakhmanova Antiquities trafficking is one of the most profitable illegal trades in the world. Estimated to be worth several billion dollars a year, it comes in after illegal arms and drug trades. These precious cultural objects have been the ""spoils of war"" - plundered and sold on. The pillaged nations have demanded their return, but for a long time these demands were largely ignored. When the Islamic State of Iraq and the Levant (ISIL) group deliberately destroyed cultural heritage sites in Syria and Iraq, it sparked an international outcry and interest in the issue grew. From Paris to Beijing, this film-uncovers the players involved in the antiquities trade - the states, the traffickers, the auction houses, the collectors - as well as those trying to stop it. At a state level, we discover that a number of priceless artefacts, looted by Western countries during colonial times, have recently been returned to their home countries in a bid to improve diplomatic and economic ties. One of the stories we investigate centres around a political dispute that erupted between France and China in 2009, after two 18th-century bronze sculptures - one of a rat's head and the other of a rabbit's head - were auctioned off at the Christie's auction house in Paris. They had been part of the private collections of French fashion designer Yves Saint Laurent and French industrialist Pierre Berge. But both had been looted from China in 1860, when French and British soldiers ransacked China's imperial summer palace during the Opium Wars. China considers the bronze heads to be priceless examples of their cultural heritage. At auction, the looted bronzes sold for a combined $29m to an anonymous telephone bidder, despite protests from Beijing. But five days later, the mysterious buyer identified himself as a Chinese businessman and refused to pay for the looted bronzes. The bid was cancelled and the sculptures were returned to Berge. China continued to demand their return, and in 2013, Christie's owner Francois Pinault convinced Berge to sell him the artefacts. He then ""gifted"" them to China. We need to stigmatise this crime ... Before, there were 'blood diamonds' - now there are 'blood antiquities'. France Desmarais, director, International Council of Museums (ICOM) Officially, Pinault returned the heads to Beijing out of friendship for the people of China. But a few weeks later, the Chinese gave Christie's permission to operate in the country. This case was far from unique. More and more pillaged countries are demanding the return of their cultural assets, which are often now the trophies of renowned Western museums. Citing the 1970 UNESCO Convention, which demands that all nations return illegally obtained objects, pillaged countries have a legal tool to negotiate the return of their stolen treasures. The pressure is intensifying on the museums and private collectors. The Pergamon Museum, the most visited in Berlin, is obliged to know the origins of its collections. Its art director Markus Hilgert explains: ""As a director, I cannot say 'I don't know' when somebody asks me 'How did your collection actually come into being?' So my responsibility as director of this museum is to know everything about the objects."" On a daily basis, his team meticulously reviews the files for the 500,000 objects in the museum to ensure that they were legally obtained. The museum stopped acquiring artefacts in the 1930s, 40 years before the signing of the UNESCO Convention, which would seemingly protect it from demands for restitution. But that is not the opinion of Turkey, particularly residents of the city of Gaziantep. ""From Gaziantep alone, 20 or so objects were plundered and we know the museums where they are now,"" says Gaziantep mayor Fatma Sahin. READ MORE - Syria's Civil War: Aleppo's heritage sites 'in danger' This list includes objects that are on show in the British Museum in London, but also in the Pergamon in Berlin. Although they were all acquired before 1970, Turkey wants them back. Like China and Italy, Turkey has made the restitution of its treasures a political priority. Forty or so lawsuits have already been won by Turkey, resulting in the return of more than 4,000 objects. While pillaged nations such as Turkey have a legal framework to demand restitution from other countries, this doesn't necessarily apply to the private sector, where only the market seems to rule. In 1995, the International Institute for the Unification of Private Law (UNIDROIT) Convention on Stolen or Illegally Exported Cultural Objects was introduced in an effort to address this. It obliges sellers to prove the legal origin of an artefact as well as obliging buyers to demand proof. But although the original UNESCO Convention is recognised by 130 nations, only 37 party states have committed to the UNIDROIT Convention. The lack of regulation has been exacerbated by the existence of tax-free economic zones. Art dealers are able to use free-port warehouses in these tax-free zones to discreetly store artefacts, sometimes for years. It's estimated that there are more than a million works deposited in Geneva's free port, more than twice the number contained in the Louvre. These facilities explain why the Phoenix Ancient Art gallery keeps most of its merchandise in free ports.-The gallery belongs to Ali Aboutaam, one of the biggest antiquities dealers in the world. In 2010, customs authorities discovered a second-century Roman sarcophagus in Ali Aboutaam's warehouse in Geneva. Since then, it has been at the centre of a complex legal battle. Aboutaam's family had owned the sarcophagus for decades, but was unable to provide proof of origin at the time of its sale to the Gandur Foundation. Faced with doubts over the object's ownership history, the sale was cancelled. Swiss authorities alerted Ankara, which decided to pursue a legal course of action. ""These procedures were launched to try to find out who had exported the object and where the illegal excavation had taken place. It was clearly the product of an illegal dig,"" says Marc-Andre Renold, the lawyer representing Turkey. In September 2015, a Swiss justice finally ordered the repatriation of the sarcophagus to Turkey. But Aboutaam continues to claim ownership based on a certificate delivered by the Art Loss Register, an organisation that keeps a database of stolen artworks. For a fee, any buyer or seller can ask the London-based Art Loss Register to sift through more than 400,000 objects in its database to verify that a piece is not listed. However, it has its limitations because objects discovered in war zones during illegal digs will never be listed. ""The Art Loss certificate only really covers classically looted objects. But in this case, the rightful owner, a state, doesn't know that it's the victim of a theft. It doesn't know how or when the item was discovered or taken,"" explains Renold. With the absence of common legislation and with sky-rocketing prices, trafficking has taken on industrial proportions. Today, the internet gives looters anonymity and direct access to buyers without the burden of proof of origin or legal documents. Antiquities trafficking was rarely in the public eye until the world witnessed ISIL's deliberate destruction of ancient heritage sites in Iraq and Syria. In 2015, ISIL fighters destroyed the Mosul museum in Iraq and the ancient temples of Baalshamin and Bel in the Syrian city of Palmyra, a UNESCO World Heritage site. But why is ISIL targeting these historical sites? And to what extent is it also profiting from them? READ MORE - The blood antiquities funding ISIL While ISIL has been suspected of partly financing its activities through antiquities trafficking, proving it has been a challenge. ""If we can prove that terrorists are self-financing through antiquities trafficking, it will become a matter of security and not just of culture. And that is what matters,"" explains France Desmarais, of the International Council of Museums (ICOM). Each year, ICOM publishes a list of rare objects from various countries which threaten to turn up on the international art market. This time, it listed antiquities from Iraq and Syria, suspected of financing ISIL operations. The Strasbourg-based Association for the Protection of Syrian Archaeology (APSA) has been recording cases of plundering in Syria since the outbreak of the war. Its head, Syrian archaeologist Cheikhmous Ali, says ISIL isn't the only armed group plundering sites in Syria: ""All military groups active on Syrian soil are involved, but people talk only of Daesh [ISIL] because they display their savage acts in Hollywood-style productions."" Based on his research, Ali says he believes that ""an armed group won't sell an ancient coin to finance its arms purchases.-It's not easy to sell objects, you need to find the right channels and the right collector. You have to meet the collector to prove authenticity. Then, you have to smuggle them safely into neighbouring countries. The profits aren't huge. Especially when there's oil, which they can sell immediately and take the money and run"". Among the thousands of artefacts from around the world that have been stolen or traded in dubious ways, there are a few that are particularly well known. It has been 200 years since the Greek Parthenon marbles were taken from Athens by a Scottish lord and sold to the British government. They now sit in the British Museum. But the Greeks say they were removed illegally and should be returned. Then there is Egypt's Rosetta Stone, discovered by a Frenchman and later acquired by the British, as well as its bust of Queen Nefertiti, discovered by a German archaeologist, which now sits in a Berlin museum. The Egyptian government wants both pieces returned. Other disputed artefacts include the Indian Koh-i-Noor diamond, one of the largest in the world. It was taken by Britain's East India Company and presented to Queen Victoria. Source:-Al Jazeera", -2784,2017/3/17,http://www.aljazeera.com/news/2017/03/confirms-idlib-air-raid-denies-targeting-mosque-170317034322651.html,US confirms air raid but denies targeting mosque,"After reports of civilian deaths in village, Centcom says air strike on 'al-Qaeda meeting' killed 'several terrorists'. 'Several terrorists' killed","The US military says it carried out a deadly air strike on an al-Qaeda meeting in northern Syria and will investigate reports that more than 40 civilians were killed when a mosque was struck in a raid in the same area. Jets struck the village of Al Jina, in Aleppo province, on Thursday at the time of evening prayer when the mosque was full of worshippers, with local activists saying up to 300 people were inside at the time of the attack. Al Jina lies in one of the main rebel-held parts of Syria, encompassing the western parts of Aleppo province and neighbouring Idlib. The area's population has been swollen by refugees, according to United Nations agencies. Bilal Abdul Kareem, a documentary filmmaker, visited the mosque and said that the toll of the attack was likely much higher than 42, as was reported by activists, as many of the victims had yet to be recovered. US claims that it's air strike that killed 56 in Jeena didn't hit the mosque are false. See for yourself pic.twitter.com/tInKTlMTME US strike, 56 dead, last night in Jeena didn't hit HTS. Locals: 'It hit Tabligh gathering that happens evry Thursday for past 4 yrs pic.twitter.com/EufqRaTgV6 Al Jazeera's Natasha Ghoneim, reporting from Gaziantep on the Turkish-Syrian border, said Centcom admitted it carried out an air strike in Idlib but that the precise location of the attack was still in question. ""Right now, Syria Civil Defence personnel are struggling to get people from under the rubble of a mosque in the village of Al Jinah in the western countryside of Aleppo province,"" she said. ""They say that dozens of people were killed in the strike there and that several people are believed to be still alive under the rubble. They are trying to get them out and, according to Syria Civil Defence, more bodies are to be recovered. ""The US military is saying that they conducted an air strike in Idlib province and that this air strike was not targeting a mosque but a meeting of al-Qaeda members. They are saying that the confusion might be because the meeting was held about 15 metres away from a mosque but the US military is saying that the mosque is still standing. ""A reporter asked Centcom if they inadvertently targeted a mosque in Aleppo province instead of Idlib and they responded that they would be looking into the reports of civilian casualties."" According to a Centcom statement: ""US forces conducted an air strike on an al-Qaeda in Syria meeting location March 16 in Idlib, Syria, killing several terrorists."" Colonel John Thomas, spokesman for US Central Command, said:- ""We did not target a mosque, but the building that we did target - which was where the meeting took place - is about 15 metres from a mosque that is still standing."" ""We are going to look into any allegations of civilian casualties in relation to this strike,"" Thomas said when asked about reports from the Syrian Observatory for Human Rights that 42 people died. Rami Abdel Rahman, head of the Observatory, which monitors the war via a network of contacts across Syria,-said that most of those killed were civilians. ""Many people are still trapped under rubble and we believe the number of casualties will increase,"" he told the DPA news agency. The Idlib Press Centre, which is run by activists, said at least 50 people were killed in the attack. Activists posted pictures of bodies scattered on the floor near the mosque. READ MORE: Talking love and revolution in war-torn Syria Teams with the White Helmets, or Syria Civil Defence, a volunteer rescue group that operates in rebel-held parts of Syria, shared images of people being pushed into ambulances and panic-stricken residents searching among the rubble for survivors. The war, which on Wednesday entered its seventh year, started as a largely unarmed uprising against President Bashar al-Assad's rule in March 2011. It has since escalated into a full-scale conflict that has left hundreds of thousands of people dead and more than half of the country's prewar population displaced inside and outside of Syria. Source:-Al Jazeera and news agencies", -2785,2017/3/17,http://www.aljazeera.com/indepth/features/2017/03/scotland-chose-independence-referendum-170316064727563.html,How would Scotland vote in second referendum? Alasdair Soussi,What has changed since Scotland chose to reject sovereignty in 2014 and how much of a factor is Brexit? By A second independence referendum 'An independent Scotland',"Glasgow, Scotland --If the UK government was in any doubt about the determination of Scotland's first minister to make good on a promise to go for a second independence referendum in the advent of a so-called ""hard Brexit"", then it was disabused earlier this week. When Nicola Sturgeon on March 13 announced her intention to seek permission from the regional parliament to hold the referendum between 2018 and 2019, it had followed months of intractable negotiations between the UK government and the regional government on the terms of Scotland's Brexit deal. While the UK voted by a narrow majority to ""leave"" the European Union in last year's plebiscite, Scotland voted overwhelmingly to ""remain"" - and Sturgeon's call for a separate Scottish deal ran headlong into British Prime Minister Theresa May's UK-wide approach to quitting all vestiges of the EU project. Relations between Sturgeon's Scottish government, which has repeatedly appealed to London to help retain the semi-autonomous region's place within the EU single market after the UK's exit from the EU, and May's British government, which has always asserted Britain's Brexit vote as being politically non-divisible, reached a new low following Sturgeon's announcement. READ MORE: Nicola Sturgeon plans new independence vote Indeed, after the Scottish National Party (SNP) leader made known her wish to offer Scotland a choice between a ""hard Brexit"" and becoming an independent country with the ability to establish ""our own relationship with Europe"", May accused her of ""playing politics with the future of the [UK]"".-The British premier then followed up, on March 16, by rebuffing Sturgeon's demands stating, ""now is not the time"" for another poll. ""I thought that Sturgeon took the stage of British politics in an audacious move ""?that struck at the heart of the British establishment,"" said Scottish writer Gerry Hassan, the author of a new political book, Scotland the Bold. ""It then begged many questions of the nature of the independence offer and the processes and the politics that follow from that."" For most observers, Scotland is now a very different place to the one that voted on its constitutional future in 2014, choosing to reject sovereignty by 55 percent to 45 percent. The UK and therefore Scotland's economy is not in its healthiest state as it was in 2014 James Mitchell, Professor While Brexit has put Scotland on a path towards the EU exit door - against the wishes of its electorate - the steep collapse in the global oil price and slump in oil revenues from the North Sea has made Scotland's economic prospects far from certain. ""The UK and therefore Scotland's economy is not in its healthiest state as it was in 2014,"" said James Mitchell, a professor at the University of Edinburgh's Academy of Government. ""And Scotland's relative position with the UK has worsened ""?But another major factor is Brexit - it's a process that we're just at the beginning of and exactly where [the UK] will be in two or three years time is unclear, other than it's not going to be a happy place economically."" But how much has Brexit really been responsible for putting Scotland on the brink of a second independence referendum? With opinion polls commonly putting support for Scottish sovereignty at somewhere around the-40 to 50 percent-mark, independence campaigners have lamented-what they see as a hard Brexit-driven lurch to the right in British politics that has ushered in a wave of xenophobic and anti-immigration sentiments. READ MORE: Sturgeon raises the stakes for Theresa May in Scotland For Sturgeon, the now-remote prospect of Scotland retaining its single market status - and her contention that losing it would adversely affect Scottish jobs - has -made her call for another plebiscite unavoidable. For pro-unionists, however, Sturgeon's Scottish independence ""obsession"" has simply found a convenient outlet in Britain's Brexit debate that will, they say, only add to further constitutional wrangling and uncertainty. ""The type of Brexit being imagined by the British government does make it easier for Nicola Sturgeon [to call another referendum],"" said The Spectator magazine's Scotland editor, Alex Massie. ""But if it wasn't this, then it might be something else - when it comes to finding reasons for [another poll], she's in a good position to do so."" Massie told Al Jazeera that while politically, the pro-independence camp ""have an argument that is stronger, in some ways, than in 2014, about Scotland being in control of its own destiny, of it being a different kind of place and political culture to the rest of the UK"", it is negated by ""economic and practical arguments, which are harder to make now than was the case over two years ago"". That said, with Sturgeon's apparent wish to see an independent Scotland assume its place in the EU, Scotland's SNP government has said it has found a warmer reception from EU politicians compared with 2014 when few - if any - wanted to get involved in its independence debate. Earlier this week, for instance, Elmar Brok, chairman of the European Parliament's foreign affairs committee, told the BBC news that while an independent Scotland would have to apply for EU membership, negotiations would be ""easy"" because it ""fulfils all the legal needs"" of membership. Yet, while any attempt by an independent Scotland to join the EU remains open to speculation - Spain, with its own independence movement in Catalonia, is widely believed to be wary of the proposition - Mitchell from the University of Edinburgh told Al Jazeera that its status as a potential EU member state is greater now than ever before. ""Scotland will be outside the EU without any shadow of a doubt within the UK,"" said the academic. He also stated that 2014 pro-union assertions, which contended that the only way to guarantee Scotland's place within the EU was to vote 'no' to independence, had now ""been turned on its head"". ""There is a new warmth coming from Europe to the notion of an independent Scotland in the EU, and that is a factor that has played into the debate."" The mechanisms for triggering another referendum will begin at the Scottish Parliament next week when Scotland's five parties will be asked to endorse the wishes of the nationalist first minister. READ MORE: If Scotland leaves, England will lose the Brexit game While the chamber's three pro-unionist parties, Scottish Labour, the Scottish Conservatives and the Scottish Liberal Democrats, will almost certainly vote to block the plans, the combined pro-independence majority of the SNP and the Scottish Greens will be likely to see the motion passed.--It will then be up to the British government to grant the Scottish government the legal right to hold another independence poll - which, in light of May's opposition, looks fraught with uncertainty - as the UK seeks to negotiate its way out of the EU. So, two-and-half years on from Scotland's last constitutional decision, what will likely frame the coming debate-if and when a new referendum date is agreed? Hassan said that it will most probably pitch the ""very challenging"" economic case for independence against the ""bankruptcy of the British offer"". ""It will be head and heart - a hope for the future versus the risk-averse one that involves all such debates,"" he added. Follow Alasdair Soussi on Twitter: @AlasdairSoussi Source:-Al Jazeera News", -2786,2017/3/17,http://www.aljazeera.com/news/2017/03/trump-budget-cuts-foreign-aid-170316233601387.html,Trump budget: UN sounds alarm over foreign aid cuts,Spokesman says reduction of US contribution to UN could 'undermine the impact of longer-term reform efforts'. 'Slash and burn',"US President Donald Trump is seeking to reduce his country's contribution to United Nations programmes, as part of cuts to funding of US diplomacy and foreign aid in his administration's budget proposal. The spokesman for UN chief Antonio Guterres reacted fiercely to the plans on Thursday, saying ""abrupt funding cuts can force the adoption of ad hoc measures that will undermine the impact of longer-term reform efforts"".- In its budget the Trump administration stated its intention to-""reduce or end funding for international organisations whose missions-do not substantially advance US foreign policy interests"". This includes slashing funding for the State Department and USAID, its foreign aid agency, and shifting money towards the military with a-$54bn increase in defence spending ""The secretary-general fully subscribes to the necessity to effectively combat terrorism but believes that it requires more than military spending,"" spokesman-Stephane Dujarric -said. ""There is also a need to address the underlying drivers of terrorism through continuing investments in conflict prevention, conflict resolution, countering violent extremism, peacekeeping, peace-building, sustainable and inclusive development, the enhancement and respect of human rights, and timely responses to humanitarian crises."" The United States spends about $10bn a year on the-UN. That is about 22 percent of the world body's total budget. It contributes 28 percent of the peacekeeping budget.- The US government has not released a figure, but is reportedly looking at cutting up to half of its funding. Trump's budget proposal has been criticised by Democrats and even some Republicans, including Senator Lindsey Graham who called it ""dead on arrival"" and predicted that it will not get approved by Congress. The UN said recently that the world is facing its-worst humanitarian crisis-since the end of World War II, with 20 million people in Yemen, South Sudan, Somalia and Nigeria facing starvation and famine READ MORE: Military wins, environment, aid lose big in Trump's budget At a briefing at the White House, Al Jazeera's James Bays asked Trump's budget director whether the administration was worried that some of the most vulnerable people on Earth would suffer as a result of proposed cuts to foreign aid. ""We're absolutely reducing funding to the UN and to the various foreign aid programmes, including those run by the UN and other agencies. That should come as a surprise to no one who watched the [presidential] campaign,""-Mick Mulvaney responded. ""The president said specifically hundreds of times ... 'I'm going to spend less money on people overseas and more money on people back home'. And that's exactly what we're doing with this budget."" Trump's UN ambassador, Nikki Haley, has said that she does not believe in a ""slash and burn"" approach to US funding of the UN, but she agrees with the president that the US contribution is disproportionate. ""The UN spends more money than it should, and in many ways it places a much larger financial burden on the United States than on other countries,"" Haley said on Thursday. The US contributes more funding to the UN budget than any other nation. However, if the US contribution would follow the normal formula for member states' shares - based on the size of a country's economy and its per capita income -- the US would be paying even more. Member states make both mandatory and voluntary contributions. Diplomats at the UN headquarters in New York expressed worry over the proposed cuts and the impact the move would have. ""Diplomats are telling us that there's no single other country or even group of countries that could make up for the shortfall in everything from emergency food and medical aid, housing aid, environmental programmes, political development programmes, in the whole span of work that the United Nations does,"" Al Jazeera's UN correspondent, Rosiland Jordan, said. Matthew Rycroft, the-British ambassador to the UN, said the US already has ""a good deal"" when it comes to the UN. ""The US is the only country whose contribution [has been] reduced in order for it not to pay too much,"" Rycroft told Al Jazeera. He noted that the new secretary-general has already made reforming the UN one of his priorities.- This process includes reviewing issues ranging from staffing to the scope of programmes and whether some of them should be scaled back. Source:-Al Jazeera News", -2787,2017/3/17,http://www.aljazeera.com/indepth/features/2017/03/french-architect-le-corbusier-foray-east-170305093917621.html,French architect Le Corbusier's foray into the Far East Michael Penn,"Built in 1959, Tokyo's National Museum of Western Art received World Heritage designation last summer. By Challenging the Modern The best man for the job An imperfect representation","Tokyo, Japan - Adjacent to Tokyo's historic Ueno Station is a three-storey square building constructed of reinforced concrete. This grey and somewhat hulking structure might not initially command too much attention among the city's other sights but for the exposed columns on its first floor, propping up the rest of the building. The sign at the gate announces that this is the National Museum of Western Art - and since last July it is the only UNESCO World Heritage Site to be found in the greater Tokyo area, a region hosting a population of more than 35 million people. The crucial significance of this building is that it was built under the auspices of the renowned Swiss-born French architect Charles-Edouard Jeanneret, better known by his professional name Le Corbusier. The museum's initial construction took almost a year and was completed in February 1959, about six years before Le Corbusier's death. It was his only work in Japan, and indeed his only building to be found east of his much more ambitious and groundbreaking designs in Chandigarh, India. Tokyo's National Museum of Western Art was one of 17 Le Corbusier-related sites to receive the World Heritage designation last summer, with the committee justifying the awards by explaining that they ""reflect the solutions that the Modern Movement sought to apply during the 20th century to the challenges of inventing new architectural techniques to respond to the needs of society. These masterpieces of creative genius also attest to the internationalisation of architectural practice across the planet"". Indeed, what most defined Le Corbusier's long and varied career as an architect and urban planner were his attempts to grapple with modern, industrial society. He consistently sought to make a sharp break with the past and to create designs and structures in accordance with the new demands of modernity - or at least his own vision of what a future industrial world should look like. Le Corbusier was a painter as much as he was an architect, and he was often searching for simple, functional designs that could be effectively mass-produced and thus be made available to serve the material and environmental needs of ordinary families. On the other hand, few would argue that he always got it right. While his underlying aim may have been to improve the material lives of the many, he has also been criticised as having unwittingly helped legitimise the brutal, boxy architecture of the high-rise apartment buildings that grow like weeds across the urban landscape. By the time the National Museum of Western Art commission came to him in the mid-1950s, Le Corbusier was in the twilight of his career and among the most renowned living architects in France. However, even then he could still be controversial and full of surprises. The Japanese government was seeking the return from France of the important European art collection of the industrialist Kojiro Matsukata (a son of former Meiji-era Prime Minister Masayoshi Matsukata), which had been trapped there during World War II. France finally agreed to relinquish the Matsukata art collection, but stipulated that a French architect must be selected for the new museum. Le Corbusier was a natural choice, not only because of his top-level prestige at that time, but also owing to the fact that he had several talented Japanese disciples - Junzo Sakakura, Kunio Maekawa, and Takamasa Yoshizaka - who could translate his broad ideas into a concrete reality with a better knowledge of the local circumstances and building conditions of Tokyo. The basic plan was an elaboration of a concept by Le Corbusier which he called the ""Museum of Unlimited Growth"". He had first conceived this notion decades earlier, but now he finally had the opportunity to realise a structure that articulated one possible adaption. Shoichiro Sendai, of the Graduate School of Engineering at Hiroshima University, notes: ""Le Corbusier only made the basic plans. The execution was the work of the Japanese architects who had experience in Atelier Le Corbusier. In this sense, the National Museum of Western Art was actually a collaboration. ""Of course, the original idea itself was by Le Corbusier, but the building contains particular functions designed for the Japanese context,"" he said. Professor David Stewart of the Department of Architecture and Building Engineering at the Tokyo Institute of Technology additionally notes that Le Corbusier was not even on site for most of the construction period: ""He only actually visited Japan when the building was nearly finished."" Beyond this, the building which exists today is an imperfect representation of what Le Corbusier himself had in mind for the completed development. ""The entire project was never built. It included a whole area of buildings of which only the painting gallery exists,"" explains Stewart. Originally the complex was meant to include such elements as an outdoor theatre and a public plaza. The broad vision was that this area would become a ""miracle box"" at which the public could be treated to a series of wondrous and surprising experiences. Stewart believes that Le Corbusier himself would probably have been somewhat disappointed that the area surrounding the National Museum of Western Art wasn't developed according to his original and considerably more sweeping plans. Moreover, there has also been extensive rebuilding at the museum since it first opened its doors in 1959. The underground floors and the expanded use of artificial lighting may be perfectly well justified by practical considerations, but would not necessarily have met with the original architect's personal approval. Still, the great significance of this commission is that it provided Le Corbusier with the opportunity to work in collaboration with his main Japanese students, benefiting both him and them. With his death in August 1965, the National Museum of Western Art became Le Corbusier's only direct work in Japan, although he did continue to exercise a wider, indirect influence through his Japanese students and admirers. Not least among these was Kenzo Tange, architect of the Hiroshima Peace Memorial Museum and later the Tokyo Metropolitan Government Building, both of which, in their own ways, exhibit a clear reliance on the French architect's inspiration. Source:-Al Jazeera News", -2788,2017/3/17,http://www.aljazeera.com/indepth/features/2017/03/futures-fire-educating-syria-children-170303111021656.html,Futures under fire: Educating Syria's children Courtney Body,"Since the start of the war in 2011, the country has suffered the largest reversal of education progress ever recorded. By","On a blazing hot day last August, Mohammad Mustafa and his wife dropped their children off at a neighbour's house in Aleppo and headed to work. Mohammad, who worked as a teacher in the western part of the city, received a phone call later that day, informing him that an air strike had hit his neighbour's home in the rebel-held east. By the time he arrived back home, it was too late. His 11-month-old boy, Hasan, had been blown across the room towards his three-year-old sister, Sham, and their 17-year-old neighbour, Marwa, who had been watching the children. Marwa had embraced Sham in an effort to shield her from the blast. Sham survived, but Marwa and Hasan did not. The very next day, Mohammad returned to work to continue teaching other Syrian children. ""I felt that I had to take revenge on those criminals, and my revenge was to continue on with my message, because they were trying to kill the life inside us,"" Mohammad told Al Jazeera. ""As a civilian, I had no other means to fight back."" The education of Syria's children has long since passed the crisis point. Since the start of the war in 2011, the country has suffered the largest reversal of education progress ever recorded, as enrolment numbers have dropped dramatically. At least 1.7 million school-age Syrian children are not in school, with another 1.35 million at risk of dropping out. Before the crisis, Syria boasted a 98 percent enrolment rate in basic education. According to UNICEF, there have been more than 4,000 attacks on schools since the war began. One in three schools has been damaged, destroyed or repurposed by both sides of the war, while at least 150,000 teachers have been killed or fled the country. Initially, efforts to keep Aleppo's children in school were scattered, but Mohammad and other teachers in opposition-held areas later began to organise. It was not easy without a budget; teachers had to work on a largely voluntary basis, leaving them without an income to provide for their families. Our revolution is not a revolution that can be won by ignorant people, so we had to depend on teaching the young generation. Mohammad Mustafa, Syrian educator Members of the community in opposition-held east Aleppo formed a new education directorate responsible for overseeing all schools and teachers, appointing Mohammad as its head. Then, in late 2015, the United Kingdom stepped in with a $15m programme aimed at providing education for Syria's children despite the ongoing conflict. ""Sickening-""�attacks on schools cannot be tolerated or ignored.-Schools should be safe places where children can learn and grow, not targets for bombs and shells,"" Priti Patel, the UK's international development secretary, told Al Jazeera. The UK and other donors are now helping to fund the salaries of more than 7,000 teachers across 1,200 schools, which serve 350,000 pupils in opposition-held areas of Aleppo and Idlib provinces. The funding has also helped to provide infrastructural supports, such as heating and basic teaching aids, including whiteboards. For Mohammad and his colleagues, the aid has been a game-changer. ""Under the shadow of the war, offering any level of education is extremely difficult because of our inability to properly function, and with no budget there was almost nothing we could do,"" he said. INTERACTIVE: What's left of Syria? After Russia became embroiled in the Syrian conflict in the autumn of 2015, there was an increase in air strikes on schools. In 2015, there were a total of 69 verified attacks on schools; by October 2016, that number had jumped to 308. In response, teachers began moving pupils into small, informal schools in living rooms, basements and mosques. In Aleppo city, the education directorate tried to set up a school on almost every city block, to minimise the amount of time children had to spend on the streets. But even then, the Russians ""followed us with missiles that were bunker busters that could reach the basements, three or four metres underground, and then even the shelters in the basements were not safe any more"", Mohammad said. Basic survival instincts began to outweigh parents' desires to keep their children in school, and families were forced to send their children looking for work or food. Mohammad and his colleagues tried shortening school hours and teaching skills that could help pupils to earn money, but they were losing the battle. By late December, those who remained, including Mohammad and his family, were evacuated as regime forces took control of east Aleppo. Today, Mohammad is continuing his work from the Aleppo countryside. Some of his pupils are from areas once held by the Islamic State of Iraq and the Levant group (ISIL, also known as ISIS), including Manbij and Azaz. ""The ideas that Daesh [ISIL] put in the students' minds are more dangerous than having no education at all,"" Mohammad said. According to UNICEF, more than 600,000 children in Syria are currently or have lived under the control of ISIL. Whenever the war in Syria ends, it will be the youth who will shoulder the biggest part of the burden in rebuilding their country for the future, Mohammad noted. ""Our revolution is not a revolution that can be won by ignorant people, so we had to depend on teaching the young generation,"" he said. ""They will have to rise up and know the meaning of liberation and freedom, and know how to use that freedom once we get it."" Source:-Al Jazeera", -2789,2017/3/17,http://www.aljazeera.com/indepth/opinion/2017/03/ai-revolutionise-communicate-live-170316122352773.html,,,"Even as social and political scientists struggle to understand the impact of the internet and the social media platforms it has spawned on human societies around the world, a vast new communication revolution is about to burst on humanity within five to 10 years. This upcoming revolution will surpass in its impact on Homo sapiens all revolutions in human communications except perhaps the very first revolution, which was the evolution of verbal communication among our earliest ancestors. This barely acknowledged revolution, which is likely to change the entire course of human history in a few short decades, is the rise of Artificial Intelligence-enabled, fully fluent live audio translation of conversations between humans of all ethnicities. We are not just talking about the literal translation of English or French into Russian or Chinese, but the translation of the subtle meanings wrapped in cultural allegories that even fluent but non-native speakers of a language often miss. This means that armed with nothing more than an Artificial Intelligence, or-AI, audio translation app on a mobile phone, an American tourist could enter a farmer's market in Turkey or Germany and, not only haggle over prices, but laugh and joke with a local fruit seller as if he was Turkish or German. Wait another decade and he will be able to do the same thing in China.- Suddenly, everything we consider today a barrier to mutual understanding between peoples will fall away as millennia of linguistically based cultural and religious isolation in discrete societal units between billions of human beings to dissolve within a few decades. What will this mean for the modern bureaucratic nation state, which evolved over the last 300 years in an environment that allowed for the voluntary and/or enforced organisation of millions of individuals into separate political units on the basis of linguistic and cultural differences? What will it mean for ethnic and religious identities when a complete foreigner's deepest worries, anxieties and hopes become intelligible?- Will it still be possible to create a national state bureaucracy by training and imbuing a group of individuals with a sense of duty and commitment to a single language or cultural group? More urgently, what will it mean for human migrations around the world? Governments around the world need to begin preparing for the wrenching changes to identity politics when the incentive for people to cooperate more with people who speak their own language is no longer an overriding factor in the political empowerment of individuals. - If an Albanian is able to understand the most obscure German phrase and reply to it in perfect German, what power on earth will stop him from leaving a job paying an average wage of less than $3,200-a year, when he can travel to Germany and potentially qualify for a job with an average wage of $32,000 a year? Furthermore, will Africans, Asians and South Americans, whose standard of living is a fraction of that in industrialised countries choose to remain in relative poverty because they will feel like aliens outside their country's borders, or will they pick up and leave to find work on another continent with no language barriers to deal with? It stands to reason that the elimination of language and cultural barriers around the world by AI will lead to massive migrations of people seeking a better standard of living across and between continents.- Governments everywhere will be overwhelmed by the force of billions of migrating individuals who in a few short decades lose all sense of societal belonging and cohesion. And lest the hopeful expect peace and brotherhood to follow, one could argue that the majority of individuals who died violently throughout history were killed by people who spoke their language and shared their religion. One example is the fact that the 750,000 killed in the American Civil War of 1861 to 1865, exceeds American deaths in all the United States' wars combined since, including both world wars. OPINION: The hidden danger of big data Governments around the world need to begin thinking about these questions and preparing for the wrenching changes to identity politics when the incentive for people to cooperate more with people who speak their own language is no longer an overriding factor in the political empowerment of individuals. Karl Marx predicted as much with his famous slogan ""workers of the world unite"". However, both he and his apostles Lenin and Trotsky underestimated the power of cultural and linguistic identities in preventing, for example, German and Russian factory workers from identifying with each other against the capitalists of their own countries, more than their sense of common belonging to an imagined nation of people. OPINION: One net, one future It took hard practical street fighters such as Stalin and Mao to discard the idealistic ""brotherhood of man"" implied in pure Marxist thought and replace it with hybrid ideologies that were just a rung above national socialism in their combination of national identity politics and central planning as an organiser of human societies. That these hybrid ideologies, often referred to as Marxist-Leninism and Maoism failed miserably is beyond doubt. However, the coming AI-enabled change in the equation of identity politics around the world goes far beyond anything that Marx, Stalin and Mao could ever have imagined. Nabil Al-Khowaiter is a Saudi business development consultant living in Riyadh. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2790,2017/3/17,http://www.aljazeera.com/indepth/features/2017/03/harrowing-evacuation-east-aleppo-170306060849177.html,The harrowing evacuation of east Aleppo Zouhir Al Shimale,"Journalist Zouhir Al Shimale recounts his experience leaving the city, which was besieged for months by regime forces. By","In December 2016, the Syrian government agreed to evacuate rebel fighters and civilians living in besieged east Aleppo. Tens of thousands of people were put on buses and sent elsewhere in the country. Journalist Zouhir Al Shimale, who has written frequently for Al Jazeera English, was one of the evacuees. He recalls the harrowing experience below. I left my home and office in east Aleppo and said goodbye to everything, then left with my friends to the evacuation point. I saw thousands of people waiting to be transferred to the western countryside of Aleppo. I stood and waited in the street with dozens of kids and families surrounding me. It was quite cold and raining on and off. After five hours of just sitting, all of a sudden we heard one Free Syrian Army fighter say the regime was attempting an offensive against east Aleppo. It turned out that it was just a rumour to make people freak out. Many got scared; kids cried, and women as well. But they calmed down after they learned that it wasn't a real threat. To me, it was quite odd. The regime's fighters, if they wanted to attack the remaining areas in east Aleppo and commit a massacre, there was no one to stop them. They have been killing us over the course of six years and no one has stopped them yet - so why would they stop now? They could attack us at any time. Every hour was like a year, and questions circled in my brain about what might happen next. After the false alarm, we waited until we heard that many cars had made it out of the city. When we left, there was shouting, and thousands of people were running. But they were running away from the evacuation point: It turned out that some people had been killed and others taken as hostages by regime forces. There was no hope for us to leave then, and we returned home miserable and exhausted after a horrible day. We spent the next two days in our houses, assuming death was the only future for us. I cannot recall how we spent those days. We were suffering because of the weather and lack of medicine and food. There were people in the streets of Amria and Sukari, lying on the ground and waiting for the evacuation process to resume. They burned wood, clothes and plastic bottles to stay warm. After long talks involving the Russians and rebel forces, it was agreed that the evacuation would start again. They said that it was serious this time and everyone would be evacuated. People started to gather again near the evacuation point the next morning and, after two hours, the buses started to come in around 11am, with the Syrian Red Crescent and Syrian Red Cross, as well. It was complete chaos. People were running, rushing towards the buses. The Red Crescent and Red Cross were trying desperately to organise the crowds, but there was no way they would be stopped. Thousands of people were rushing to secure a seat for themselves and their families, since they did not know if they would have another chance to get out. I wanted to get on a bus too, but I waited until most of the people had got on and left. We waited for the buses for 12 hours, until we finally boarded at around 8pm. We thought they would move right away, but it was the opposite - we waited for another 14 hours in the buses, throughout the night, in freezing weather. There were no blankets or any source of heat at all, just the clothes we were wearing. There was no food or water except what people had with them. If you left the bus, you would lose your seat, so you were forced to just be patient. Normal buses can hold about 60 people, but there were around 85 on board. Babies were crying. Their mothers could not do anything but wait. My head was full of thoughts: Would they ask us to get off the bus again? Would they take us to another area at night and kill all of us? I will never be able to forget that night. Many were not lucky enough to get on the buses, and spent the night in the street, instead. They were burning wood to stay warm, but it wasn't enough. It snowed lightly during the night, and in morning, the street was coated in ice. No one could do anything but wait. Around 8am the next morning, the buses took off very slowly, heading towards the western Aleppo countryside. As we passed Ramosseh, where some of the heaviest fighting had taken place, we saw devastated buildings and wrecked cars all around. At a checkpoint, a soldier with a Lebanese accent told us that if any of us would like to return to the government-controlled areas, they would be welcomed and taken care of. However, after he left, many of the evacuees mocked him and his claim that they would be safe. Many of the people in the bus had been in the incident that took place days ago, when the people supposed to be evacuated were fired on instead. They said the government forces would kill us if we went to their side. One of them said that their promise of safety just means providing us a safe path to the nearest jail. After the soldier left, everyone became comfortable. The next two checkpoints were operated by the regime and Russian soldiers. We saw a female soldier standing at the checkpoint, observing the evacuation process. After arriving in the western countryside of Aleppo, thousands of people got off the buses and got food and water. Many people were crying and hugging each other, because they were now out of hell. Several of my friends were waiting for me. We gave each other many big hugs, and then we moved to rebel-controlled Idlib city. It is quite strange, in a way, that I know almost no one here. Even though I am with some friends now, the people and the surroundings aren't what I am used to. In a way, it feels worse, realising that I will stay in this strange place with no way back to Aleppo. It's still difficult to believe, but I will adapt to it gradually. READ MORE: Displaced Syrians stuck in limbo at Idlib's Taiba camp Thousands of other people are spread out in camps all over the countryside of Aleppo and Idlib, with no water, electricity or heating. But they are surviving so far, despite the cold, the snow and the rain. It seems that the government wants to displace the residents of rebel-held areas, settling people far from their homes and changing the demographics of these areas. Although the situation in east Aleppo is calmer now, there have been bombs and clashes in other areas, and we will see harsh days in the future if there is no serious solution to end all of this. The fighting will grind on for a long time, and more and more civilians will die or be displaced - yet we cannot do anything but wait. Source:-Al Jazeera", -2791,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588422.htm,China's Grisham says rule of law vital,,"Renmin University professor and best-selling novelist says country should move toward phasing out the death penalty He Jiahong, one of China's leading legal experts, believes it is important that nobody in any system should be above the law. The professor of law at Renmin University of China believes his country has made major strides in legal reform over the past 30 years. He says the aim now is to move to a system of rule of law ""in line with socialist and Chinese characteristics"" as was outlined at the fourth plenary session of the 18th National Congress of the Central Committee of the Communist Party of China in 2014. . - He Jiahong says rule by law is still rule by man but still using the law as a tool. Mai Tian / For China Daily ""The meeting said very clearly that we should establish rule of law. Rule of law is very different from ruling the country by law,"" he says. ""Rule by law is still rule by man but still using the law as a tool. Rule of law is that no-one should be above the law. Everybody should be equal in front of the law."" He, a spry 63-year-old who owes his fitness to playing badminton and competitive soccer until he was 50, was speaking at a book fair at the China International Exhibition Center in Beijing. He combines being a law academic with a career as a highly successful crime novelist and was launching new Chinese editions of his books, which feature his fictitious lawyer creation Hong Jun. Two of the novels Hanging Devils and Black Holes are published in English. He, sometimes referred to as China's answer to John Grisham, says he is not as well known among English language readers compared to those of other languages because his publisher is Penguin Australia, which is restricted to publishing in Asia. His books are best-sellers, however, in France and they have also been translated into Italian and Spanish. ""They (Penguin Australia) can publish the books in Australia and Asia but not in the UK or the United States. I am trying to get contracts there too, however."" One of his current high profile roles is as director of the Center for Anti-Corruption and Rule of Law at Renmin University, which was set up last year. He is also an expert adviser in this area to China's Supreme People's Court and the Supreme People's Procuratorate, China's highest prosecution and investigation agency. More than 100 officials above ministerial level have been probed for corruption in China since the current top leadership was elected at the end of 2012. ""The anti-corruption area is one where the rule of law has been applied to public officials in China and they have been very much subject to the law,"" he says. ""They can no longer bypass the law. They have to abide by the law and this is one area of legal reform that really has actually worked."" On one of the key legal issues - capital punishment - He is something of a convert. He used to believe the country's stance on the death penalty should reflect public opinion. In a poll in 2002, 93 percent of the population supported it, although that is believed to have fallen to between 70 and 80 percent today. ""My position was that China should retain the death penalty because we have to respect public opinion,"" he says. ""I changed my mind after leading a group of people conducting a study on unlawful convictions for about 10 years. I noticed there were some loopholes in our criminal justice system and because it is just human nature, there were mistakes by judges, prosecutors and police officers. In the case of capital punishment, mistakes are always inevitably very serious ones because there is obviously no way to correct them."" He now believes China should gradually phase out the death penalty rather than move straight to abolition and says it is already moving in that direction. ""In the 1990s there were about 80 plus offenses that could be given the death penalty. With the amendment of the criminal law, this is down to 50 plus. We also have the death penalty with two-year suspension which is automatically reduced to life imprisonment. The death penalty could be applied in these cases but hasn't been since the founding of the People's Republic (in 1949)."" He was born in Beijing in 1953, the son of a military officer, who died when he was only 10 years old. ""I had a family background of intellectuals. My father had a college degree and my mother also had a very good education by the standard of the time. She was from a big landlord family."" During the ""cultural revolution"" (1966-76), He turned against his grandfather, who had been a general in the Kuomintang, the nationalist party led by Chiang Kai-shek, but was then reduced to being a street sweeper. ""I tried to cut a clear line between me and him at the time. I wanted to be a revolutionary and I thought my grandfather was anti-revolutionary. ""So for several years I refused to see him. But when the ""cultural revolution"" was over I realized he was a good man. He had a long life, passing away at 95 so I had the chance to reconcile with him,"" he says. He went to work on a farm in Heilongjiang in Northeast China before returning to Beijing in the late 1970s to work for a construction company but with aspirations to become a famous writer. It was meeting his future wife, Ren Xinping (a medical doctor to whom he has been married 35 years) that changed his life. ""Her parents wouldn't accept a plumber in a construction company as a future son-in-law so that made me take my examinations to go to university,"" he says. He failed to get on the economics course because his math scores were not high enough and ended up doing law. ""I picked up law almost randomly but the more I learned about it, the more I realized the importance of it."" He went on to do a doctorate at Northwestern University before pursing an academic career, which has been mostly at Renmin, although he regularly lectures around the world. He finally published his first novel, Hanging Devils, in 1995 and has combined his academic work with a literary career, although he has written a number of law books. Some critics have drawn a parallel with him and his literary character Hong Jun. ""His experience is very similar but I wouldn't say Hong Jun is me. I essentially created a model lawyer for promoting the rule of law in China."" One French newspaper has described his central character as the Chinese Sherlock Holmes. ""I actually like Sherlock Holmes and also Agatha Christie. I have also had some inspiration from modern writers like Scott Turow and, of course, I have been referred to as the John Grisham of China since we have this similar background in the field of law."" He would like to see more legal reform in China, including the actual trial in court becoming a bigger part of any criminal proceedings. ""For many years the center of legal proceedings has been the investigation. You have the investigative agency, which is usually the police department and in court you have the prosecutor who will instigate the prosecution and then the judge will give the conviction. So the trial in the court room is not a substantive part of proceedings,"" he says. ""I have spent the past 10 years trying to persuade China's leaders on that and I was very happy by their decision (at the fourth plenary session in 2014) to move to a more trial-centered approach. This is the way to promote judicial independence."" andrewmoody@chinadaily.com.cn Bio He Jiahong professor of law, Renmin University of China Age: 63 Bachelor of Law (1983) and Master of Law (1986), Renmin University of China. Doctor of Juridicial Science, Northwestern University, Evanston, Illinois, 1993 Career, Professor of law, Renmin University of China since 1986 (Director, Institute of Evidence Law since 2006; director, Research Center for Wrongful Convictions since 2012; director, Center for Common Law since 2014; and director, Center for Anti-Corruption and Rule of Law, since June 2016). Books, Hanging Devils: Hong Jun Investigates, The Black Hole of Human Life, The Misled Region of Human Life, The Vicious Circle of Human Life and The Narrow Road of Human Life. Book, A Study in Scarlet by Sir Arthur Conan Doyle and Crime and Punishment by Fyodor Dostoyevsky. Film, Law Abiding Citizen (2009, dir. by F. Gary Gray) Music, Love in Tibet, a Tibetan folk song. Food, Braised pork in soya bean sauce. ""I like this cooked by my wife."" (China Daily European Weekly 03/17/2017 page32)", -2792,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588421.htm,Quotable,,"China should further strengthen its supervision of private refiners that are granted import licenses, and suspend all refining projects that don't have government approval."" Li Yonglin, Sinopec Tianjin Petrochemicals General Manager, speaking on the sidelines of the annual session of the National People's Congress in Beijing. ""China has been focusing on the Regional Comprehensive Economic Partnership. We can also list a long string of alternatives, such as the World Trade Organization, the China-Japan-South Korea Free Trade Agreement and the China-US Bilateral Investment Treaty - and even unilateral liberalization. The issue is whether other alternatives can similarly yield the goals hoped to be realized by joining the TPP, or if another approach can help achieve the goals more easily and conveniently."" Jiang Shan, researcher at Center for China and Globalization, based in Beijing. ""The products we produce overseas account for only 10 percent of our sales. We hope to increase that fourfold in the next 10 years."" Liu Yonghao, chairman of Chinese conglomerate New Hope Group, explaining the plan to expand into developed countries and other international markets related to the Belt and Road Initiative to increase overseas sales in the coming decade. (China Daily European Weekly 03/17/2017 page24)", -2793,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588420.htm,Germany's Bayer in hunt for growth in China,,"German life science company Bayer AG regards China as a crucial market and is positively seeking business opportunities in areas including healthcare and agriculture, says Celina Chew, president of Bayer Group in China. ""China is the third-largest market for Bayer globally and an important driver for the growth of our business,"" Chew says. ""The main business opportunities for Bayer in China are in areas that contribute to the nation's healthcare, agricultural and better quality of life goals."" Chew notes that the Healthy China 2030 initiative, announced by President Xi Jinping in August, covers areas such as public health services, environmental management, the medical industry, food and drug safety and the better lifestyle industry. ""Our product portfolio and solutions across our pharmaceutical, consumer health, animal health and crop science businesses are well suited to contribute to a better quality of life in these focus areas,"" says Chew. Chew says this year's Government Work Report indicated that China would accelerate the development of big data, cloud computing and digitalization in order to transform traditional industries and improve manufacturing capabilities. ""China's push for more innovation resonates well with us and we are working hard to bring our expertise and innovative capabilities to China,"" she says. ""This includes bringing advanced technology to our production sites in China."" Last year, Bayer invested 100 million euros ($106.4 million; 87.05 million) to extend a pharmaceutical packaging plant in Beijing. caixiao@chinadaily.com.cn (China Daily European Weekly 03/17/2017 page25)", -2794,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588419.htm,Get focus right for success,,"Head of Carl Zeiss AG has deep insights into new global world of optical technology Michael Kaschke has a relentless focus, vision and passion for his company. That's understandable, given that he is president and CEO of Carl Zeiss AG, one of world's biggest optical and optoelectronic solutions suppliers. Optoelectronics is the study and application of electronic devices and systems that source, detect and control light, a study that is usually considered a subfield of photonics. Kaschke says he believes Zeiss is bringing in the right products and solutions at the right time, fitting in with the general trend as Chinese industries and consumers move up the value chain. Michael Kaschk says he is a true believer in openness, the values of quality, and in precision. Provided to China Daily Having worked with Zeiss for more than 25 years, including 17 on its executive board, Kaschke says the scope of the company's business and how it helps empower businesses and individuals is something he finds fascinating. A physicist with two doctorates, Kaschke says he is a true believer in openness, and values quality, and precision. In China's context, that is how Zeiss can meet new demands from the market - where new technologies, new materials and new surfaces emerge. These require close investigation, along with a study of industries and of demand from the public, he says. ""We have all these tools, all these solutions, that help us focus on Chinese industry and customers - with new materials and better use of resources - in order to do a better job,"" he says. He spoke recently to China Daily about the company's strategy, business opportunities and prospects. The following are edited excerpts from the interview: How is your company performing in the China market and the Asian market in general? China is becoming more important - more and more - for the global business of Zeiss. Right now our China revenue is the third-biggest for the entire Zeiss group and it will soon be the second-biggest. But what is also important is that we've seen very, very good growth over the years. Today more than 25 percent of our total business comes from the Asia-Pacific region, while 10 years ago it was 11 percent. Of this, China really has the lion's share. In the Asia-Pacific region, our revenue more than doubled, and in China more than tripled in that period. How do you assess market growth in China in terms of the optical and optoelectronics sector? It is a growing market. But in a growing market you also have to have the right product. For example, take our measuring machines, our quality enhancing machines for the automotive industry. Also, we have the right products and solutions for the machine tool industry, for generally any manufacturing industry. Our products are in a number of industries - from automotive to aerospace - and they enhance the quality and efficiency of Chinese manufacturing. They also play a key role in the healthcare industry so, not surprisingly, we are No 1 in ophthalmology and eye care in China. How does Zeiss differentiate itself from other market players? First, I will say this: We are here in China for the long run; we are not just trying to make a quick return on our money, so we have a long-term strategy. Second, from the very beginning, we said we wouldn't go to China with second-class products. If we produce our products here ourselves or if we bring products to China, they have to be top quality. And, third, we follow a holistic approach. We have research and development here, product management here, prefabrication here, systems integration here and applications support here. What are the major drivers of business growth for Zeiss in China? With economic development and more affluence in China, people want to take better care of their health. Health becomes very important. Also, because of the one-child policy, for a long time parents paid a lot of attention to the health of their only child. Put together, there's been an enormous demand for healthcare technology - good, reliable healthcare technology. The second business which has grown the fastest in the last 10 years has been our industrial metrology, dealing with the application of measurement science to manufacturing and other processes. This has taken off, with factories being built here in the automotive and other industries. What role does Zeiss play in the emerging augmented reality sector? Augmented reality, we believe, has strong potential, and we even differentiate between full augmentation and so-called data augmentation, where we basically just put data and information in front of the eye. Full augmentation would be overlaying some virtual reality onto reality. For example, when you navigate through streets, you might want some directional information overlaid onto your lens. Or, when I am in China, I would like to get a translation from Chinese into English or German. This is what we call data overlay. In these two areas we are very active. What experience can Zeiss share in terms of smart manufacturing? An important element to smart manufacturing is training and educating people. In China we have non-product-related training, general training, then product- or skills-related training. We've paid a lot of attention to, and put a lot of emphasis on, training and qualifying people. We have specialty technology and quality-enhancing technology, but we also have a very big focus on training. So that's what I think other companies can learn from us. It's the combination of technology and good people, skilled and trained people. How does Zeiss cooperate with local partners? When we started manufacturing, parts sourced locally in China were below 20 percent. Now we are at 90 percent and sometimes even 100 percent. It is a learning process to find which partners can meet our quality requirements. You have to learn together. It's not something you can expect to happen overnight. We work very closely with customers in developing new applications. We cooperate with research institutions on the development of new technologies, or in sharing new technologies. It's really a two-way exchange. I really believe that if we meet again in five years I will be able to tell you that China has become one of the four or five global centers of the Zeiss network of companies. What is your view on the Belt and Road Initiative and the trend of Chinese enterprises going global? I am a true believer in free trade. I think this initiative is going in the right direction. One still has to see how they work it out in detail. Let's bring people together. Let's allow free trade and free movement of goods and ideas. I think there are still improvements that can be made in China but this is a good initiative. I also say, for me, it's not a concern when Chinese come to Germany to invest in or buy companies, as long as it goes both ways. How would you describe your own leadership style in the Zeiss group? My background is a scientist. So I think I still take, to a very large extent, a very analytical approach, which is generally true for the company. I spend a lot of time on the road talking to many people - to customers and people working in the medical industry. I also teach at universities, so I try to stay in touch with research and students. I am a big believer in diversity. We should become a global company with strong German roots - I don't want to give up the roots. Every tree has roots. But it grows. I push considerably for internationalization, for globalization. wuyiyao@chinadaily.com.cn CV Michael Kaschke CEO of Carl Zeiss AG Age: 59 Nationality: German Career: 2011 onward: President and chief executive officer of Zeiss Group 2008-10: President and CEO, Carl Zeiss Meditec AG 2000: Board of management, Carl Zeiss AG 1999: Executive vice-president and general manager, medical technology business group and member of the executive management committee 1998: Vice-president and general manager, surgical products division 1995: Vice-president and general manager, surveying instruments division 1992: Joined Zeiss as a research scientist; subsequently R&D director, surgical microscopes Education: 1988: PhD, Dr. sc. nat 1986: PhD, Dr. rer. nat 1983: Degree in Physics, Friedrich Schiller University, Jena, Germany Hobbies: Sport, music and astronomy ( China Daily European Weekly 03/17/2017 page31)", -2795,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588418.htm,Market law gets second review,,"Perfecting the system of delisting stocks and strengthening efforts to crack down on illegal activities in the capital markets will be highlights in the second review of the revision of the Securities Law, according to a member of the Standing Committee of the National People's Congress, China's top legislature. Wu Xiaoling, deputy director of the Financial and Economic Affairs Committee of the NPC, told media in Beijing on Mar 9, that the review would highlight four points. ""First, we need to perfect the basic trading systems, including securities trading, settlement and delisting. Second, we need to create space for developing a multilevel capital market so as to facilitate enterprises' financing. Third, we should pay more attention to investor protection by strengthening efforts to crack down on illegal activities and increasing channels for investors to compensate for loss, legal advocacy and administrative remedy. Last but not least, market rules should be further tightened,"" said Wu. ""Information authenticity and complete information disclosure are central to the capital market, so we need to intensify inspections and severely crack down on illegal information disclosure and market manipulation."" Li Shuguang, a law professor at China University of Political Science and Law, says the second review pays attention to key areas, which makes it different from the first review of proposed amendments to the law. ""The latest review shows that China will adopt a 'tolerant entry and strict exit' regulation idea,"" says Li, noting that the pace of IPO approval is faster and the implementation of delisting is more determined. ""For zombie companies - consistently loss-making, staff-heavy State-owned enterprises that continue to operate without much rationale - and fraudulent companies, the delisting process will be quicker"", Li says. Li also says creating space for a multilevel capital market is a wise move because China has developed the New Third Board. It is developing stock connections for mainland bourses with those in Hong Kong and London, besides reforming the ChiNext board. According to Li, the Supreme People's Court has confirmed civil compensation to victims of fraudulent statements made by players in the securities market. caixiao@chinadaily.com.cn (China Daily European Weekly 03/17/2017 page27)", -2796,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588417.htm,Alibaba's next mission: A tech powerhouse,,"New R&D unit to help transform e-commerce giant to serve 2 billion people in 20 years Alibaba Group said on March 14 that it is setting up a dedicated research task force to spearhead innovative - and potentially revolutionary - new paths to growth, with the goal of transforming the e-commerce trading platform into a well-rounded, technology-driven powerhouse. Through a new, independent research and development department, dubbed NASA after the United States space agency, the internet juggernaut is setting its sights on developing core technologies that will serve 2 billion people in 20 years. Employees walking through Alibaba's headquarters in Hangzhou, Zhejiang province. Wei Xiaohao / For China Daily Jack Ma, Alibaba's founder and chairman, says the R&D initiative accords with a broader plan to turn the company into ""the world's fifth-largest economy"", creating 100 million jobs and enabling 10 million small enterprises to become profitable in two decades. ""Just like how the National Aeronautics and Space Administration fueled fundamental progress in science and technology and enhanced people's lives, new economies must be built upon new technology-enabled infrastructure,"" Ma recently said at the company's first internal technology conference, which was held at its headquarters in Hangzhou, Zhejiang province. Ma, whose comments were released on Mar 13, added that Alibaba is ready to shoulder the responsibility for major technological breakthroughs. Areas of focus will include, but not be confined to, machine learning, chips, the internet of things, operating systems and biometric identification, Ma said. ""Today we've reached a tipping point, where technology makes a real difference,"" says Zhang Jianfeng, Alibaba's chief technology officer. The new R&D department will move away from the old business model under which technology focused on supporting business operations. Instead, Alibaba says, it wants to establish a pure, holistic R&D mechanism with a long-range vision. Advanced technological solutions may be in the pipeline for one or two decades, the company said. Alibaba currently employs more than 20,000 engineers, more than 500 of whom have PhDs. Nine of its 36 partners on the management board are experienced engineers. The company has been pushing hard on the technology front - from using facial recognition technology for digital payments to adopting artificial intelligence to help mitigate traffic congestion around Hangzhou and leveraging big data in anti-piracy campaigns. Among the latest efforts is a pilot program that was rolled out recently by the company's cloud-computing arm, Alibaba Cloud, in partnership with Intel Corp, under which the two agreed to build a cloud-based acceleration service that enables virtual access by cloud customers to a larger set of computer resources. Zhang Mengmeng, a senior researcher at Counterpoint Technology Market Research, says that as Alibaba grows its core businesses into a collaborative ecosystem, it will need technology firepower to enhance its complementary capabilities. ""It's a visionary move. Alibaba is no longer content with being recognized as an online trading platform,"" she says. ""It needs new technologies to fulfill and balance its multiple roles as a virtual shopping mall, a cloud-computing provider, a payment tool and a logistics network."" Each member of China's internet triumvirate known as BAT (for Baidu, Alibaba and Tencent) is sparing no effort in the push for technological breakthroughs. Search engine Baidu is delving into artificial intelligence by championing a national lab for deep learning. hewei@chinadaily.com.cn ( China Daily European Weekly 03/17/2017 page29)", -2797,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588416.htm,China Volvos to be sold abroad,,"Premium carmaker's Daqing plant says products match quality of Swedish models Premium sedans manufactured at the Volvo Cars Daqing plant in northeastern China's Heilongjiang province, are expected to start selling abroad in May, a senior company executive says. ""We're arranging for dealers from the US, Europe and Asia-Pacific countries to visit our plant,"" said Yan Shiying, corporate communications manager at the plant. She said the plant's product - Volvo's new S90 sedan - is selling well in the Chinese market. The model is billed as an advanced premium vehicle with a semiautonomous driving program called Pilot Assist, which gives steering input to keep the car properly aligned within lane markings up to motorway speeds of around 130 km/h. ""Since mass production started for our S90 T5 and T4 models last November, a new vehicle drives off the production line every three minutes,"" Yan said. She says that staffing levels grew from 600 to 2,000, with more than 30 foreign nationals - and to meet the strong market demand, the plant was working additional shifts starting this month. Volvo says it sold 534,332 vehicles globally in 2016, with 99,030 units going to the Chinese market, the brand's biggest single market. Zhejiang Geely Holding Group Co bought the Swedish carmaker for $1.8 billion in 2010, making Volvo the first luxury car brand to be owned by a Chinese company. Currently, Volvo has two mainland assembly plants - in Daqing and in southwestern China's Chengdu. A third is under construction in eastern China's Zhejiang province. The plants in China follow the brand's global standards on procurement, manufacturing, technology and quality. As a result, Yan says, the Volvos manufactured in China are of the same quality as the Swedish-made ones. The Daqing plant has an initial annual capacity of 80,000 vehicles. ""This year, we will export our cars to the US and Europe. The three-seat luxury S90 T8 will also start mass production,"" Yan says. Volvo says its Daqing plant is a key part of its global manufacturing and management system and has become a model for intelligent manufacturing in Daqing. The first phase of the Daqing Auto Spare Parts Industrial Park was put into operation last year, including a 200 million yuan ($29 million; 27.3 million euros; 23.8 million) factory producing 200,000 car seats annually. Contact the writers through tianxuefei@chinadaily.com.cn - An employee works on the assembly line at the Volvo plant in Daqing, Heilongjiang province. Guo Junfeng / For China Daily (China Daily European Weekly 03/17/2017 page27)", -2798,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588415.htm,It pays to cater to tourists,,"Ant Financial is making life easier for Chinese shoppers in Europe Chinese e-commerce giant Alibaba is now virtually a household name in the West, but its lesser-known sister company, Ant Financial is also making its mark as it rolls out its global mobile payment system across Europe. Two years after expanding into Europe, Ant Financial is working with powerful European banks, including BNP Paribas, Barclays and UniCredit, to enable 930,000 merchants to join the payment network of Alipay, Ant Financial's payment platform. Alipay is not really competing with Western mobile payment providers like Apple Pay and Samsung Pay, but it is significantly improving Chinese tourists' overseas experiences by giving them a convenient and secure payment method and offering lots of travel advice. - Alipay service is available at a hotel in Finland. Cecily Liu / China Daily This customer experience is what Rita Liu, head of Alipay Europe, Middle East, and Africa, calls ""fin-life"", a new method of easy and convenient living enabled by financial technology. ""We hope to champion the concept of 'fin-life' to make payment easy, and we want to build a big network globally so that Chinese tourists traveling abroad can feel that they are enjoying payment convenience as if they are still in China,"" says Liu. ""Our expansion overseas has two considerations. We do see the outbound Chinese tourist market as a big opportunity for payment method provision, but also we think from our customers' perspective, to provide them a service they truly need."" With 450 million active users in China, Alipay is now used by European hotels, retailers and other tourist attractions keen to lure high spending Chinese tourists. Luxury retailer Tripidi at Frankfurt Airport became the first to accept Alipay in 2015. Now it is used in many other famous shopping locations, including Harrods in London and Printemps in Paris. Alipay was used by 120 million users overseas last year. Its European network operates in collaboration with leading Western payment companies, including Germany's Wirecard and France's Ingenico and BNP Paribas, Switzerland's Six Payment Services, Italy's Unicredit, the UK's Barclays and ePassi in Finland. ""Our expansion model focuses on collaboration with local banks and payment companies, leveraging on their local market reputation, their wide networks with European merchants and other partner,"" Liu says. ""I find our international expansion is greatly welcomed by our European banking and other payment partners. From my communications with them, I realize they value the future of fintech and mobile payment very much and they are very keen to be partners with a pioneering company in this industry like Ant Financial,"" Liu says. The collaboration is really a win-win story. The European payment firms and Alipay each collect a commission on each transaction processed, and Western retailers can sell products and services to Chinese tourists. Most important, Chinese tourists no longer need to carry so much cash on their trips. They just pay for their purchases by using the Alipay app on mobile phones to scan a QR code provided by merchants. Transactions are processed in seconds. In addition, tourists can find more local market information on the Alipay app's Discover platform, including details of local markets, restaurants and shops, as well as hot tourist spots and ticket information. The Alipay app's Discover platform now includes information on more than 570,000 European merchants across 20 countries. Alipay also benefits by working with existing European payment methods such as ePassi, Finland's biggest mobile payment platform, which has helped Alipay become accepted by more than 100 merchants, including hotels, shops and restaurants. ""Our existing reputation in Europe means many merchants trust Alipay even though they may not have heard the name before. Since we launched promotional activities to spread Alipay's name in Finland, many Finnish merchants have been approaching us to install Alipay,"" says Alexander Yin, chief financial officer of TCG, parent company of ePassi. The fact that ePassi already owns a payment institution license from Finnish regulators means Alipay's entrance into Finland requires no additional approval. As an intermediary, ePassi collects payments from Alipay and distributes them among European merchants. Merchants use the ePassi app to take payment in the same way they would take payments from Finnish customers of ePassi, so the fact the payment came from Alipay users made no difference to them. Jeongwen Chiang, a professor of marketing at China Europe International Business School, says Alipay's European expansion is effective due to the high volumes of Chinese travelers abroad and European retailers will be ""sure winners"" in Alipay's expansion. ""Besides being able to make more sales to Chinese customers, when their Chinese customers use Alipay the retailers will be able to view the shopping habits of these consumers. This information may help them to develop ways to attract more Chinese customers,"" Chiang says. Alipay's history goes back to 2004, when it was still the payment arm of China's ecommerce giant Alibaba. Over the years Alibaba and Alipay both grew very fast. Alibaba separated Alipay from the group and in 2014 its affiliate company, Ant Financial, was created as the parent company for Alipay. Alipay is the standard payment provider for China's large e-commerce shopping population on Alibaba, so it has a large user base, but it still lags behind Western competitors. Apple Pay dominates this market with ""tens of millions"" of monthly active users worldwide as of June 2016, which represents a 450 percent year-on-year growth. Alipay has not reached out to provide services to non-Chinese users so far but industry analysts believe this should be its next step. Howard Yu, a professor in strategic management and innovation at IMD Business School in Switzerland, says Alipay's international expansion is now at an ""inflecion point"" where great benefits can be achieved if it starts serving non-Chinese customers. ""They can bring value especially by helping to connect Western customers with China's payment market. They could serve Western tourists traveling to China, or Western businesses in China,"" Yu says. Their existing international reputation would be helpful, and they are bringing a valuable service because, for Western travelers and businesses, carrying cash to China is difficult. It is helpful for Alipay to bring a unique proposition, leveraging its China market expertise, rather than engaging with the whole international market and trying to compete with Google Wallet and Apple Pay, which are already very big internationally,"" Yu says. Perhaps one reason Alipay has not yet engaged with Western customers could be due to resource allocation, because Alipay is competing in China's domestic market with other payment providers such as Wechat Wallet. Wechat Wallet, the payment platform affiliated with Wechat, the Chinese WhatsApp, is experiencing big user number growth. Its active users reached 768 million in September 2016, representing a 35 percent year on year growth. With such significant domestic growth it is, of course, plausible to think that WeChat wallet hopes to consolidate its presence in China, but Yu believes Alipay should place more emphasis on international expansion, leveraging on its existing connections internationally. ""Its historical connection with Alibaba means it already has connections with international customers, many of whom are Western importers and exporters doing business with China."" Yet another huge future potential opportunity for Alipay in China and internationally is to develop targeted products and services with the big data it gathers about what consumers buy, and when and where they make those purchases. Liu says the Ant Financial team is keen to devise new ways to use such data, although no concrete plans have yet been made. Looking into the future, Liu says Alipay will continue to expand its European partner networks, so that Alipay can be used by more retailers in Europe. ""We also hope Alipay's product can constantly innovate to improve user experience and provide extra value to retailers by making use of the consumer data it collects,"" Liu says. cecily.liu@mail.chinadailyuk.com (China Daily European Weekly 03/17/2017 page30)", -2799,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588414.htm,E-licenses to ease way for businesses,,"In potentially far-reaching business reforms, China will digitize the registration and licensing of new companies so they can start operating quickly. The deregistration process will be made quicker, simpler and cost-effective, the State Administration for Industry and Commerce said on Mar 10. Zhang Mao, director of the SAIC, told a media conference at the annual meeting of the national legislature that a series of measures will mark the business system reform. Zhang said: ""We will achieve the goal of digitizing the industrial and commercial registration process, and start issuing electronic business licenses by the end of this year."" As an alternative, conventional business licenses printed on paper will still be issued whenever necessary, he said. Zhang further said the SAIC will combine multiple licenses into one for companies with several businesses, to facilitate their market entry. This practice will be accomplished before Oct 1 this year, he said. The SAIC will also expedite the process of deregistration this year. ""Companies that have not started their businesses even after receiving the necessary licenses and those without creditor's rights or with heavy debt"" will be deregistered the fastest"", Zhang said. ""We are also studying the issue of enabling companies with loans to exit (the market) in an appropriate, efficient way."" Experts say the slew of measures will help companies enter and exit the market more conveniently. This, they say, will further strengthen China's current emphasis on market-oriented economic development. Liu Zhibiao, a political adviser and an economics professor at Nanjing University, says: ""It's commendable that the SAIC has done a lot of work to simplify administration and procedures, and to promote the reform of the business registration system. ""This will help lower the costs associated with entering and exiting markets, thereby making businesses more vibrant. ""Its profound significance is that the government can develop capabilities in important areas and the market can play a decisive role."" ""The announcements are a big positive for the Chinese economy, he says. Huang Peng, a partner at Beijing-based Guantao Law Firm, says the measures mark big-ticket reforms in the field of business. ""Companies will likely find the new system convenient, which should help them improve their efficiency,"" Huang says. Huang says that companies used to find the existing deregistration procedure laborious and costly. He says he is looking forward to the implementation of the new measures. (China Daily European Weekly 03/17/2017 page27)", -2800,2017/3/17,http://europe.chinadaily.com.cn/epaper/2017-03/17/content_28588413.htm,Barcelona looks for success with training investment,,"FC Barcelona, arguably the world's foremost football club, is set to invest up to ""tens of millions of dollars"" into a training and experience center on the island province of Hainan, making it the first ever foreign club to have a major direct investment in China's booming football market. The project, a joint venture with Mission Hills Group, shows the Spanish La Liga side's long-term commitment to China, a club official says. It is also the first of its kind in Barcelona's 118-year history. Calling the project a ""partnership between the strong"", Ken Chu, chairman and chief executive officer of MHG, confirms each side will contribute half of the total investment. ""It is a joint investment between our two companies,"" Chu, who is also a member of China's top political advisory body, told China Daily recently in Beijing. China's football market has boomed in recent years and is now the biggest in Asia, says Xu Jiayin, controller of Chinese Super League champions Guangzhou Evergrande Taobao FC. The football sector is reported to employ 500,000 to 600,000 people. Central government plans to have 50,000 soccer-focused schools by 2025 and has also set a goal of 50 million people playing soccer on a daily basis by 2020. Foreign football clubs are actively involved in China's youth soccer education, with prestigious clubs flocking to the country to open academies and youth training camps in recent years. Chu says other foreign clubs have tapped into ""the world's biggest market"", mainly through franchises by permitting Chinese partners to use their brands, but have little investment. Evergrande, of which Xu is chairman, has invested 1.2 billion yuan ($175 million; 164 million euros; 143 million) to set up a football academy in 2012 in Guangdong in cooperation with Real Madrid CF. Real Madrid will provide football training staff for the school. Chu says MHGs partnership with Barcelona is not about ""inviting foreign trainers"" to China, but will ""clone"" Barcelona's world-class youth training system. MHG will take care of its promotion in China. The Hainan facility, in the provincial capital Haikou, will be Barcelona's 26th overseas academy, and for the first time the club will dispatch its own technical staff to directly manage it. ""This is our commitment to China and the Chinese people that we are here to stay,"" says Jenny Yang, project manager of Barcelona's Asia-Pacific headquarters, in Hong Kong. ""Barcelona wishes to establish a lasting presence in China,"" Yang says. In addition to a training center, the project will include an experience center to showcase Barcelona's rich history, while providing opportunities for visitors to experience the magic of football using cutting-edge technologies such as virtual reality. ""We are very pleased to see the development of football that China enjoys at the moment and, in a humble way, we wish to add our experience and value. Our primary aim is to help discover and nurture future local football talent, and encourage grassroots interest in this sport,"" Yang says. Contact the writers through zhanghaizhou@chinadaily.com.cn (China Daily European Weekly 03/17/2017 page28)", -2801,2017/3/17,http://www.rte.ie/news/ireland/2017/0317/860597-taoiseach-kenny-leadership-us/,NI and Brexit take precedence over Fine Gael leadership - Kenny,,"The Taoiseach has indicated he will not announce any retirement plans until political uncertainty in Northern Ireland is addressed and the EU's negotiating stance on Brexit is agreed. Enda Kenny said those ""immediate priorities"" would take precedence over ""everything else"" on his return to Ireland tomorrow after a week-long trip to the US. Prior to leaving for his annual St Patrick's programme of engagements in the US, the Taoiseach told members of his Fine Gael party he would address his future ""effectively and conclusively"" upon his return. He had been under pressure to set a timetable for his departure. After taking part in the St Patrick's Day parade in New York, he made clear that dealing with his own future would take a back seat to pressing concerns at Stormont and within the European Union. ""What I did say to my own party was I would deal with this matter effectively and conclusively, and that is my intention, but I think these are priorities that take precedence over everything else,"" he said. ""You can't have a situation where you have no leadership in Northern Ireland and where we have to define from a European Union point of view where Ireland would be, what the agreed terms of reference for the (Brexit) negotiations are."" Parties in Northern Ireland have until the end of the month to strike a deal to restore power-sharing after a snap election triggered by a bitter fall-out between erstwhile partners-in-government, Sinn F��in and the Democratic Unionists. If an agreement fails to materialise before the deadline, political uncertainty in the North will intensify, with the prospect of another snap poll or a return to direct rule from Westminster. The coming weeks will also see British Prime Minister Theresa May trigger Article 50 of the Lisbon Treaty to formally commence the UK's departure from the EU - a move that is set to have major ramifications on both sides of the Irish border. Mr Kenny told Irish media in New York: ""Do you not think it is appropriate that the immediate priority here is to have an executive functioning here in Northern Ireland? ""Do you not think it appropriate that, after all the work we have put together, that we get an agreed negotiating stance for the European Union? ""It's going to affect everybody in our country - these are two immediate priorities."" Mr Kenny said his trip to the US had been a success. The Taoiseach met US President Donald Trump, Vice President Mike Pence and Speaker Paul Ryan in Washington yesterday, discussing issues such as Brexit, Northern Ireland and the 50,000 ""undocumented"" Irish who live in the US without legal permission.", -2802,2017/3/17,http://www.rte.ie/news/2017/0317/860475-st-patricks-day/,Parades mark St Patrick's Day across Ireland,,"Hundreds of thousands of people are taking part in St Patrick's Day festivities in dozens of parades around the country. 'Ireland, You Are' was the theme of the-St Patrick's parade in Dublin. Theatrical groups from across the country were invited to respond to the theme, and-included Bui Bolg, Dowtcha puppets and Brighter Futures. This year's-Grand Marshall was Olympic Silver Medalist Annaleise Murphy. Despite the cold and wet conditions,-thousands of people from home and abroad-lined-the parade route. Other parades around the country were not so lucky - with some events-cancelled because of wet and windy weather. Follow St Patrick's Day celebrations Live Over 60 community groups, including Cork Community Artlink, Macnas, Spraoi and-Dowtcha Puppets took park in the Cork parade, which was-led by Captain Brian Prendergast and-by the Army Band of the 1st Brigade. This year's Grand Marshall was celebrity chef Rachel Allen who was-driven in a 1926 Ford Model T Tourer Car accompanied by the city Lord Mayor-Des Cahill, who was at the Shamrock Ceremony at the White House yesterday. The Model T was-among a number of Ford cars in the parade as the company celebrates its 100-year-old ties with the city having established its first purpose-built factory outside of the US there in 1917. The parade is just one of a series of events taking place over the weekend, including-the Lee Sessions Trad Trail, a pop-up food festival and a St-Patrick's Hill Ball Run. There are also over 15 parades in the county. Adventurer Gavan Hennigan is guest of honour at Galway parade In Galway, the city's 114th St Patrick's Day parade was led by local man and adventurer, Gavan Hennigan, who recently returned from rowing solo across the Atlantic. This year's procession gave locals a platform to showcase the talents of artists and various community groups. Saint Patrick is looking forward to having a poached egg after today's parade #StPatricksDay ☘️ pic.twitter.com/C5DIS2QZWM ""?RT? News (@rtenews) March 17, 2017 Meanwhile in Limerick, thousands came-out in very poor weather conditions to view this year's parade. The theme is 'Telling Stories' and voluntary, community and sports groups were encouraged to tell and share their own stories, celebrate their history, and look to the future. A special feature this year is a presentation by the Limerick street theatre company Lumen, who told the story of the River Shannon, which runs through the city. In his traditional St Patrick's Day mass for the Defence Forces, Bishop of Limerick Brendan Leahy remembered in particular the heroism and mission of Irish Coastguard pilot Dara FitzPatrick and her colleagues who perished in a helicopter crash off the Mayo coast earlier this week. Bishop Leahy-said they had-displayed the message of St Patrick in how they sacrificed so much and dedicated their lives so fearlessly to others. 14-year-old Luke Culhane, Limerick Person of the Year, leads the city's parade today The parade is being lead by 14-year-old Luke Culhane, who has won a number of awards, and has been named Limerick person of the -year for his video which tackled cyber bullying and has been viewed over 5m times on social media. Archbishop of Armagh and Primate of All Ireland Eamon Martin also paid tribute to the crew of Rescue 116 in his St Patrick's Day message. He paid tribute to the work of the Irish Navy in their humanitarian efforts in the Mediterranean where they have helped rescue thousands of migrants and refugees, remembering that St Patrick once described himself as the ""unlearned refugee"". Elsewhere, parades in Gaoth Dobhair, Dunfanaghy and An F��l Carrach in Co-Donegal, and Cill Chiar��in in Conamara were cancelled due to-to very wet and windy weather. Comprehensive reports of parades at home and abroad will be carried on RT?'s-Six One news this evening.- The St-Patrick's Day celebrations are also available to watch free worldwide on the RT? Player. RT? News Online also has-a live blog on the parades throughout the day, people-can email photos to yourphotos@rte.ie-or-tweet to @rtenews Watch #StPatricksDay Parades from your hometown with regional parades available on-demand on @RTEPlayer https://t.co/UysoBwT3DD pic.twitter.com/gua6s4a94J ""?RTE Digital (@RTEDigital) March 17, 2017", -2803,2017/3/17,http://www.rte.ie/news/2017/0317/860503-mayo-helicopter-search/,Search for Coast Guard helicopter to focus on 'three hour window',,"A search for three crew members, missing after an Irish Coast Guard helicopter crashed off Co Mayo, is focusing on a ""three-hour window"" to find the aircraft amid poor weather conditions. Low visibility combined with a heavy swell at sea has stalled efforts to locate the aircraft's black box flight recorder. Organisers hope a critically timed operation between low tides on Sunday will lead them to the Sikorsky S92 and the bodies of three men who have not been found since the helicopter disappeared without warning early on Tuesday morning. The search has been narrowed to a 100 metre by 80 metre section of the ocean around Blackrock lighthouse, around 13km offshore from Blacksod, where the aircraft was intended to land to refuel moments before it vanished. The detection of a black box signal in that area has buoyed hopes that the bulk of the wreckage can be found along with the three remaining crew members. Declan Geoghegan,-of the Irish Coast Guard, said the likelihood is that the black box recorder is still attached to the helicopter and it was also more likely than not that the missing crew members are still inside. ""If you look at helicopter crashes, 92 or 93% of the time the bodies are found within the wreckage of the fuselage, it is so small,"" he said. ""The other thing is that they are either strapped in or tethered - one or the other."" Captain Dara Fitzpatrick, 45, the only one of the crew to be recovered so far, was found critically ill in the water on Tuesday and later confirmed dead. Her funeral will be held at Glencullen, Dublin tomorrow morning. The Irish Coast Guard says all efforts are focused on recovering the missing crew members: Captain Mark Duffy, Winch Operator Paul Ormsby and Winchman Ciar��n Smith. Capt Dara Fitzpatrick died in the crash;the search continues for Capt Mark Duffy, winch operator Paul Ormsby and winchman Ciar��n Smith- It is hoped if Sunday's tightly-managed operation to try and locate the helicopter is successful, then a ""bigger window"" will be available on Monday during which divers or remotely operated underwater vehicles will be deployed to the wreckage. The Commissioner of Irish Lights ship, the Granuaile, which is equipped with a heavy lifting crane, is being loaded with equipment at Galway as it makes its way to the scene. Two naval ships, Garda RIB boats and trawlers, with local fishermen who have expert knowledge of the waters, will be used to mount Sunday's operation. The underwater terrain, part of the lighthouse rock, and dangerous underwater currents in the area are adding to difficulties. The navy vessel-L? Eithne is continuing to carry out a sea surface search-this afternoon and local volunteers are combing the shoreline around Blacksod Bay. Naval service and garda divers are on standby to take part in the operation, as soon as conditions allow. Heavy rain has not deterred teams of people from taking part in the operation. Around 250 volunteers are involved and hot meals are being provided in the community centre close to Blacksod. Accommodation is being offered to those who have travelled to take part in the search. Significant sections of the helicopter were found close to Blackrock lighthouse yesterday evening. But air accident investigators say there is no evidence the aircraft struck the rock or the lighthouse. St Patrick's Day parades in Belmullet, Aughleam and Bangor-Erris were-cancelled as a mark of respect to those who lost their lives in the crash.", -2804,2017/3/17,http://www.rte.ie/news/world/2017/0317/860596-sean-spicer/,Orders did not make US 'less welcoming' to immigrants - Spicer,,"The Trump Administration says recent immigration-related executive orders have not made the US less welcoming to immigrants. Speaking to RT? News in Washington DC, White House Press Secretary Sean Spicer said the US did not have a merit-based immigration system and wanted to put one in place. He said that it was something that President Donald Trump ""really wants to get done"", and there was a ""national security implication as well as an economic implication"". In an interview conducted at the White House to mark St Patrick's Day, Mr Spicer also rejected any suggestion that the administration had a difficult relationship with the truth, or was a war with the media. On immigration reform, Mr Spicer said that every country, including the US, needed to protect its identity and its people and its economy, and needed to make sure ""people aren't coming in and undermining their ability to work hard and make a good living"". Mr Trump discussed immigration with Taoiseach Enda Kenny yesterday. Mr Spicer said there was ""a way to do this"", but that the US was a country of laws and the rule of law needed to be respected. Wearing a shamrock tie, green socks and an Ireland-US flag pin, Mr Spicer said he cherished his Irish heritage, and considered himself ""very much Irish"". He joked that he was not wearing his famous pair of green white and shamrock trousers today because ""I don't think they would go over well at the White House"", adding that they would ""live forever on the Internet"". His great-grandfather William Spicer emigrated to the US from Co-Cork in the late 1800s. He joined the US navy, fought in the Spanish-American war and was a recipient of a medal of honour for his service. He-settled in Newport, Rhode Island ""and the Spicers have been there ever-since"". He has Irish heritage on his mother's side too, with the surname Kelly. Mr Spicer said he had been all over Ireland, but had been to Dublin more than any other county, and that he had done some work to trace his roots, saying ""If I ever get the time"", he hoped to explore more. He is just one of several Irish-Americans working in the West Wing;-advisors KellyAnne Conway, Steve Bannon, Mick Mulvaney-and Hope Hicks all have Irish roots, as does Vice President Mike Pence, whose grandfather emigrated from Ireland in 1923. Top: KellyAnne Conway, Steve Bannon and Mike Pence with Mick Mulvaney and Hope Hicks Trump administration has 'intense' relationship with some media outlets Mr Spicer's daily press briefings have become combative of late as the relationship between the Trump administration and some outlets has deteriorated. But Mr Spicer does not think that there is a war, describing the relationship instead as ""definitely intense"", adding there was a big difference between being ""disagreeable"" and ""disrespectful"", but that they strove ""to find the balance at all times"". He rejected a suggestion that sometimes he and other spokespeople massaged the truth in what they briefed on behalf the President, saying that every day he and the team made sure to ""articulate our position"". But he said the media applied a ""double standard"" in how they judged the administration and judged themselves. He said it is-""interesting to see the media talk about credibility and integrity"" when there were so many news reports that attempted ""to create a false narrative or overlooked key facts in other to try to tell the narrative they're trying to suggest"". But when asked about the situation whereby some of the President's tweets were not always based in fact, Mr Spicer said ""some people would suggest that, but in most cases we're either striving to get all those facts or we've proven right in almost all of those circumstances"". He said that he had never faced a situation where he had to say no to the President, and they usually talked through issues in advance. He said-Mr Trump ""constantly has ideas and suggestions on how to say things"". He said Twitter had not made his job more difficult, but the President's various social media platforms gave the administration a ""very unique ability to speak directly to the American people"", something he felt ""some folks in the media"" viewed as a threat. He also-said that-he did feel a sense of humour was important to the job but also ""a sense of grounding, and about knowing who you are and what's important"". ""You have to-keep your compass straight on why you're here and what you're supposed to be doing"". Mr Spicer said-he loved his job, adding ""you can't do something like this if you don't love it"".", -2805,2017/3/17,http://www.rte.ie/news/ireland/2017/0317/860604-louth-garda/,Teenager released in injured baby case,,A teenager-arrested in connection with a serious assault on a ten-week old baby in Co Louth has been released without charge. The 18-year-old was-arrested in Dublin yesterday and taken to Drogheda Garda Station where he was questioned. A file is being prepared for the Director of Public Prosecutions. The little girl is in a critical condition in a hospital in Dublin. She was discovered with serious injuries on Monday., -2806,2017/3/17,http://www.rte.ie/news/2017/0317/860501-st-patricks-day-festivities/,Live St Patrick's Day celebrations,,, -2807,2017/3/17,http://www.rte.ie/news/2017/0317/860560-donald-trump/,White House denies it accused UK of spying on Trump,,"The White House said that spokesman Sean Spicer had not accused Britain of spying on President Donald Trump when he repeated a Fox News report claiming that London's GCHQ intelligence agency had done so. After GCHQ bluntly rejected the allegation as ""utterly ridiculous,"" the White House said they had reassured the British that ""Mr Spicer was simply pointing to public reports, not endorsing any specific story."" On the Fox & Friends-programme, Fox News analyst Andrew Napolitano said that rather than ordering US agencies to spy on Mr Trump, former president Barack Obama had obtained transcripts of Mr Trump's conversations from GCHQ so there were ""no American fingerprints"" on it. Mr Spicer yesterday quoted Mr Napolitano's comments about GCHQ when he spoke to the media. Earlier, British Prime Minister Theresa May's spokesman said she received assurances from the White House it would not repeat allegations that Britain's spy agency had helped Mr Obama eavesdrop on Mr Trump. A spokesman for Mrs May said that the charge, made on Tuesday by Mr-Napolitano, a former New Jersey judge, that the UK's signals intelligence agency GCHQ had helped Mr Obama to wire tap Mr Trump after his victory in last year's US presidential election, was ""ridiculous"". ""We've made clear to the administration that these claims are ridiculous and they should be ignored and we've received assurances that these allegations will not be repeated,"" Mrs May's spokesman told reporters. ""We have a close special relationship with the White House and that allows us to raise concerns as and when they arise as was true in this case."" Mr Trump, who became president in January, tweeted earlier this month that his Democratic predecessor had wiretapped him during the late stages of the 2016 campaign. Terrible! Just found out that Obama had my ""wires tapped"" in Trump Tower just before the victory. Nothing found. This is McCarthyism! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 Is it legal for a sitting President to be ""wire tapping"" a race for president prior to an election? Turned down by court earlier. A NEW LOW! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 How low has President Obama gone to tapp my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy! ""?Donald J. Trump (@realDonaldTrump) March 4, 2017 The Republican president offered no evidence for the allegation, which an Obama spokesman said was ""simply false"". The-Daily Telegraph, citing unnamed intelligence sources, reported on its website that Mr Spicer and Mr Trump's national security adviser Lieutenant General Herbert McMaster had made formal apologies to Britain. In a rare public statement, Britain's GCHQ, Britain's Government Communications Headquarters, the equivalent of the US National Security Agency which monitors overseas electronic communications, said the claims should be ignored. ""Recent allegations made by media commentator Judge Andrew Napolitano about GCHQ being asked to conduct 'wire tapping' against the then President-elect are nonsense,"" said a spokesman for GCHQ, which never usually comments on criticism of its work beyond saying it always operates under a strict legal framework. Reuters reported earlier this week that an unidentified British security official had denied the allegations about Mr Trump. GCHQ is one of three main British spy agencies alongside the MI6 Secret Intelligence Service and the MI5 Security Service. GCHQ has a close relationship with the NSA, as well as with the eavesdropping agencies of Australia, Canada and New Zealand in a consortium called ""Five Eyes."" US Secret Service laptop stolen - reports A Secret Service agent's laptop computer containing floor plans for Trump Tower, details on the criminal investigation of Hillary Clinton's use of a private email server and other national security information was stolen, ABC News reported, citing law enforcement sources. - - - - - - The New York Daily News, citing police sources, said authorities had been searching for the laptop since it was stolen yesterday morning from the agent's vehicle in the NewY ork City borough of Brooklyn.-", -2808,2017/3/17,http://www.rte.ie/news/crime/2017/0317/860481-stabbing-fatal-dublin/,Man arrested after fatal stabbing in Dublin,,"A murder investigation has begun in Dublin following a fatal stabbing. A man in his 40s was stabbed in a house in Artane last night. He died later in hospital. Another man, also in his 40s, was arrested following the incident. The house where the attack took place on Harmonstown Road in Artane remains sealed off today for a forensic examination. A number of friends appear to have been drinking when a row broke out at around 7.40pm last night and the-man was stabbed. The injured man, who was taken to Beaumont Hospital but pronounced dead there a short time later. Garda�� arrived and arrested another man. He was taken to Clontarf Garda Station where he is being detained. He can be questioned for up to 24 hours. Garda�� are not looking for anyone else at present in connection with the incident.", -2809,2017/3/17,http://www.rte.ie/news/galleries/2017/0317/860536-global-greening/,World turns green for St Patrick's Day,,, -2810,2017/3/17,http://www.rte.ie/news/2017/0317/860547-cian-mulhall-appeal/,Appeal to trace teenager missing from Bray,,"An appeal has been issued to trace a 16-year-old boy who has been missing from Bray since Monday. Cian Mulhall was last seen on 13 March. He is described as being 1.65m (5'5"") in height and of slight build with short dark hair. When last seen he was wearing a black coat, navy tracksuit bottoms and black runners. Anyone with information on Cian's whereabouts is asked to contact-Bray Garda Station 01- 6665300 or the Garda Confidential Line on 1800 666 111.", -2811,2017/3/17,http://www.rte.ie/news/2017/0317/860583-donald-trump-angela-merkel/,Merkel at White House for talks with Trump,,"US President Donald Trump welcomed German Chancellor Angela Merkel to the White House for talks expected to focus on their differences over NATO, Russia, global trade and a host of other issues. The two leaders shook hands and smiled for the cameras before entering the West Wing. The Oval Office meeting had been scheduled for Tuesday, before a major snowstorm in the eastern United States forced a postponement. Both leaders described their meeting in brief remarks to reporters as having been very good. Mr Trump said they both discussed many things. They are scheduled to hold a joint press conference around 1:30pm local time.-The meeting is consequential for both sides. Ms Merkel, who officials say has prepared carefully for the encounter, is likely to press Mr Trump for assurances of support for a strong European Union. Mr Trump, who as a presidential candidate criticised the German leader for allowing hundreds of thousands of refugees into Germany, will seek her support for his demand that North Atlantic Treaty Organization nations pay more for their defense needs. Relationship building is a less overt but important agenda item. Ms Merkel had close relations with Mr Trump's Democratic and Republican predecessors, Barack Obama and George W-Bush, and she is likely to seek a strong working relationship with the current US President-despite major policy differences and wariness in Germany about him. ""Those who know the chancellor know that she has a knack for winning over people in personal discussions. I am sure that Donald Trump will not be immune,"" said Juergen Hardt, a conservative lawmaker who helps coordinate transatlantic relations for the German government. Mr Trump is eager to see follow-through on his demand that European countries shoulder more of the burden of paying for the NATO alliance, which he has criticised. He will also seek ideas from Ms Merkel on how to deal with Russian President Vladimir Putin, a leader Ms Merkel has dealt with extensively and whom Mr Trump, to the consternation of Republican and Democratic lawmakers, has praised. ""The president will be very interested in hearing the chancellor's views on her experience interacting with Putin,"" a senior administration official told reporters. A US official said the Trump administration's position on US participation in the Paris agreement to curb climate change would likely come up in the meeting, and be further clarified in the weeks and months ahead. Ms Merkel is a strong supporter of international efforts to fight global warming. Mr Trump has called climate change a hoax and vowed during his campaign to ""cancel"" the Paris agreement within 100 days, saying it would be too costly for the US economy. Since being elected, he has been mostly quiet on the issue. In a New York Times interview in November, he said he would keep an open mind about the Paris deal. Ms Merkel is also likely to press Mr Trump about US support for European security, despite assurances from US Vice President Mike Pence about that issue on a recent trip to Europe. ""There is still lingering doubt about ... how the US sees European security, and whether the US sees its security and Europes security as intrinsically linked and inseparable,"" Jeffrey Rathke, a senior fellow at the Center for Strategic & International Studies, told reporters.", -2812,2017/3/17,http://www.rte.ie/news/special-reports/2017/0317/860333-famine/,Facing famine - millions in need of food,,"The world is facing an historic and horrendous challenge. The UN says famine is threatening humankind in a way not seen since World War II, when the Nazis' scorched-earth tactics devastated Europe. As people die, aid agencies appeal for action. But many are concerned that not enough is being done-or will be done-to avert another man-made disaster. Where is famine threatening? There are four countries at immediate risk of famine. Three are in Africa, including one - South Sudan - where famine has already been declared. The others are Somalia, the northeast of Nigeria and, across the Red Sea, Yemen. UN humanitarian chief Stephen O'Brien says that more than 20 million people are facing starvation. He told the Security Council that ""without collective and coordinated global efforts, people will simply starve to death"". UNICEF has already warned that 1.4-million of these could be children. What is famine? A boy is checked for signs of malnutrition in Somalia ""International warning systems classify hunger under five categories of severity, from food secure (phase one) to famine (phase five)"", explains Eoghan Rice, Tr��caire's Head of Communications. It is important to bear in mind that by the time the UN calls a famine, people are already dying in large numbers. The four countries most at risk are in danger of reaching phase five, and falling into a human catastrophe, or famine. This involves at least a fifth of households having absolutely no food, and more than two people per 10,000 dying each day. States of emergency have also been declared in Kenya and Ethiopia, but they are not expected to reach famine levels. ""Huge areas in the belt of land across southern Ethiopia and northern Kenya are classified as being in crisis (phase three) due to drought,""-Mr Rice says. ""Even at phase three level, the needs are enormous and massive international aid will be required over the coming months."" What causes famine? Famine is the result of several failures happening at the same time: - Not enough food is produced. - People have difficulty accessing what food there is. - National and international authorities - government and donors - fail in their responses to the escalating crisis. ""Time is running out for more than a million children,"" UNICEF Executive Director Anthony Lake said recently. ""We can still save many lives. The severe malnutrition and looming famine are largely man-made."" And that is the key. These crises are created by violence and neglect, and they can be tackled. ""Our common humanity demands faster action"", appealed Mr Lake. ""Conflict is a major driver of the food insecurity and threat of famine in Yemen, South Sudan, Somalia and Nigeria"", explains Feargal O'Connell, Concern Worldwide Regional Director for the Horn of Africa. ""Kenya and Ethiopia are countries, by and large, at peace. This is why they are suffering the same extreme climatic conditions - extreme drought - as say Somalia, but we are not seeing the same level of need. ""There is a significant food crisis in both countries and we are very concerned about the outlook especially if the upcoming rains should fail. However, with peace and a viable partner in the government in both countries, it is possible to avert a catastrophe."" Greatest challenge since WWII ""We stand at a critical point in history,"" Stephen O'Brien told the Security Council on Friday. ""Already at the beginning of the year we are facing the largest humanitarian crisis since the creation of the United Nations"". That means more people are at risk of famine than anytime in over seven decades. ie-beyond living memory for the vast majority of people. The UN was founded in 1945. Mr O'Brien says that we can change this; we can avert disaster. How? By raising over �1bn in a matter of months. Here is a brief glimpse of the inhuman and degrading conditions being endured by people in those four countries. Yemen People collect water from a donating source in Yemen Ongoing, widespread war has reduced incomes, yet food prices remain high meaning poorer households cannot get enough food. As well as destroying livelihoods, conflict restricts humanitarian access and damages the economy, preventing the country from importing the food people need to survive. South Sudan Famine has recently been declared in parts of Unity State in the northern central part of the country. The government has collapsed, as have most institutions, amid a bloody civil war that has driven 2.5m people from their homes. Again the familiar theme: ""This crisis is man-made, the direct consequence of a conflict prolonged by South Sudanese leaders who are unwilling to put aside political ambitions for the good of their people,"" according to Mark C Toner of the US State Department. Women carry food bags after visiting an aid distribution centre in Unity State Nigeria The rampant violence inflicted on the population by the Boko Haram group of fanatical Islamists continues to force many to flee their homes in large numbers, meaning they cannot earn money or access markets. Despite improved humanitarian access in some areas, large parts of the northeast remain inaccessible to humanitarian actors and continue to face an elevated risk of famine. A woman holds her baby during a check-up at a feeding centre in northeastern Nigeria Somalia Decades of conflict have wrecked Somalia. Almost half the population, over 6m people, are facing acute food insecurity and urgently need help. (Video shows women and children in Somalia who rely on the World Food Programme to save them from starvation) Drought has the country in its grip, and that is expected to continue, certainly in the short term. In the main cereal-producing regions in the south, less than 40% of the cultivated land is expected to be harvested. Surviving livestock are in poor condition, which means they produce less milk. And it is not just rural areas in difficulty. Ongoing evictions and the pressures of internally displaced people are adding to the building crises in cities and other urban centres.", -2813,2017/3/17,http://www.rte.ie/news/europe/2017/0317/860564-spain-eta-disarming/,Spain's ETA 'to fully disarm by 8 April',,"The Basque separatist group ETA plans to fully lay down its weapons by 8 April, a source close to disarmament talks has said. As part of the agreement, ETA would provide the authorities with the location of its arms stockpiles, the source said. ""There is an initiative that has a date: April 8,"" the source told AFP. Before then, ""ETA will take steps to make this happen,"" more than 50 years after its creation in northwest Spain, the source said. The comments confirmed a declaration by Txetx Etcheverry, an activist in Bizi, a Basque association, that the group's disarmament should be completed if possible before France's upcoming presidential election. The first round of voting is on 23 April. ""ETA has given us the responsibility of disarming its arsenal and, on the evening of April 8, ETA will be completely disarmed,"" Etcheverry told the French daily Le Monde. Also today, Inigo Urkullu, head of the Basque regional government, confirmed the possibility that ETA was ready to give up its weapons and asked both Madrid and Paris to help facilitate talks. ""The Basque government judges credible the potential of a final disarmament in the short-term,"" Mr Urkullu said. ""It asks... the Spanish and French governments to show ambitious vision and open direct lines of communication"" in order to reach ""a goal with historic importance for our society."" ETA, which is considered a terrorist group by the European Union, is seeking to negotiate its dissolution in exchange for amnesties or improved prison conditions for the roughly 400 ETA members held in Spain and France. It declared a ceasefire in October 2011 but has refused to give up its weapons.", -2814,2017/3/17,http://abcnews.go.com/Politics/trump-stands-wiretapping-claims-seldom-regrets-tweets/story?id=46198855,Trump tells Merkel: 'At least we have something in common' in nod to wiretap claim,,"President Donald Trump joked that he and German Chancellor Angela Merkel ""have something in common,"" referring to reports that the Obama administration listened to Merkel's cellphone calls. At a joint press conference today at the White House, Trump was asked by a German reporter about his unfounded claims that Trump Tower was wiretapped during the presidential campaign. Judge Andrew Napolitano, a Fox News contributor, has alleged that British intelligence was tasked with spying on Trump and his team. The UK's listening agency, Government Communications Headquarters, also known as GCHQ, has since shot down those claims. ""We said nothing,"" Trump said in reference to the claims about GCHQ. ""All we did was quote a certain very talented legal mind who was the one responsible for that on television. I didn't make an opinion on it. That was a statement made by a very talented lawyer on Fox."" ""So you shouldn't be talking to me, you should be talking to Fox,"" he added. White House press secretary Sean Spicer repeated Napolitano's comments -- along with several other news articles which made claims about surveillance -- at the White House press briefing on Thursday. A spokesperson for GCHQ denied the report Thursday. ""recent allegations made by media commentator Judge Andrew Napolitano about GCHQ being asked to conduct 'wire tapping' against the then president elect are nonsense,"" the spokesperson said in a press release. ""They are utterly ridiculous and should be ignored.""?When Trump was asked at the press conference if he has ever regretted some of his tweets, the president replied, ""very seldom.""", -2815,2017/3/17,http://abcnews.go.com/Politics/wireStory/trumps-campaign-insults-complicate-merkel-visit-46195482,Trump predicts quick passage of his health care proposal,,"President Donald Trump on Friday predicted that a new health care law would be passed by a substantial margin and ""pretty quickly,"" expressing optimism for his top legislative priority during his first news conference alongside German Chancellor Angela Merkel. Trump reiterated his contention that majority Republicans will win passage of a troubled health care bill that would repeal and replace the sweeping health care law signed by former President Barack Obama. His comments came with the bill's future uncertain as party leaders push to gain enough support to pass it through the House next week. ""It's going to be passed I believe substantially pretty quickly. It's coming together pretty quickly,"" Trump said as Merkel stood by. The health care overhaul would kill much of Obama's 2010 health care law and create new tax credits and curbs on Medicaid, the federal-state health care program for lower-income people. It would create new, leaner tax credits for health insurance, cap federal spending on Medicaid for low-income people and reverse tax increases on wealthy Americans used to finance Obama's statute. In his first one-on-one meeting with Merkel, Trump reaffirmed the United States' ""strong support"" for NATO but also reiterated his stance that NATO allies need to ""pay their fair share"" for the cost of defense. Trump said many countries owe ""vast sums of money"" but he declined to identify Germany as one of the nations. Merkel said at the start of her remarks that it was ""much better to talk to one another and not about one another."" Their agenda in White House meetings included discussions on strengthening NATO, fighting the Islamic State group, the conflict in Afghanistan and resolving Ukraine's conflict, all matters that require close cooperation between the U.S. and Germany. The meetings, postponed from Tuesday because of a snowstorm, could represent a restart of a relationship complicated by Trump's rhetoric on the campaign trail. Prior to his inauguration in January, Trump declared NATO ""obsolete"" but has since modified his stance, telling European leaders the alliance remains of strategic importance. Only the U.S. and four other members currently reach the benchmark of spending 2 percent of GDP on defense. Germany currently spends 1.23 percent of its GDP on defense, but it is being increased. ""?On Twitter follow Ken Thomas at https://twitter.com/KThomasDC and https://twitter.com/colvinj", -2816,2017/3/17,http://abcnews.go.com/Politics/conservatives-line-health-care-plan-vote-week/story?id=46198889,Some conservatives line up behind health care plan for vote next week,,"Republicans are moving forward with their plan to repeal and replace Obamacare, making several concessions to conservatives that appear to have put the American Health Care Act on track for passage late next week. House Majority Leader Kevin McCarthy, R-Calif., predicted ""where will be no upsets""?when lawmakers vote on the proposal next Thursday, which coincides with the seven-year anniversary of President Obama's signing of the Affordable Care Act. Here's the latest: President Trump met with several influential conservatives from the Republican Study Committee in the Oval Office today, committing to make several changes to the bill, including providing states with the option to block-grant Medicaid, which empowers states to spend Medicaid funds from the federal government however they want. The legislation will also be amended to include work requirements for Medicaid recipients who are able-bodied and without dependents. Conservatives also received a commitment from the president to ensure that tax credits in the plan cannot be used to pay for abortions. Trump told reporters that those changes had persuaded several Republicans who had been leaning against the measure to vote for it. ""these folks were noes, mostly noes yesterday, and now, every single one is a yes,""?Trump said. ""I just want to say, ""Thank you.""?We are going to have a health care plan that is second to none. It's going to be great.""? It is unclear whether the changes could cause some moderate Republicans to abandon support for the legislation, although McCarthy's plans to proceed to a vote next week indicate his confidence that his vote count has sufficient backing for passage. ""�On balance and with the changes we agreed to in the bill's final text, I can vote for it,""?Rep. Mark Walker of North Carolina, the chairman of the Republican Study Committee, stated. ""We will continue working to advocate changes to the bill, and hope the legislation improves in the Senate.""?Other conservatives from the House Freedom Caucus, like Rep. Mark Meadows, were not satisfied with the agreement, although Republicans can afford to lose 21 votes from within their conference before the bill is killed. The House Freedom Caucus still opposes the GOP replacement bill in its current form. The next step for the legislation is consideration in the House Rules Committee, where the underlying legislation is expected to be amended to include today's developments. Timing for that hearing has yet to be announced, but is expected as soon as Monday evening.", -2817,2017/3/17,http://www.huffingtonpost.com/2017/03/17/this-congressional-candidate-once-posed-for-maxim-get-over-it_n_15430564.html,This Congressional Candidate Once Posed For Maxim. Get Over It.,Alejandra Campoverdi won't let sexism get in the way of her successful career.,"Alejandra Campoverdi graduated from Harvard's Kennedy School of Government, worked as a White House staffer for former President Barack Obama and, now, she's running for Congress in California. She's also modeled for men's magazine-Maxim. That last part, Campoverdi argues in a recent essay for Cosmopolitan, shouldn""t make people question her ability to be a successful politician.-- ""sexism and misogyny are nothing new in politics. Female political staffers and politicians have been facing off-color comments and leering glances and have been excluded from ""�at capacity""?meetings for decades,""?Campoverdi begins her essay. ""In fact, I assumed I'd already faced my biggest dose of sexism back in 2009.""?The 38-year-old describes how she became the target of horrible sexism when she began her job as the first White House deputy director of Hispanic media in 2009. One week in, photos from an old photoshoot Campoverdi did for Maxim leaked to the press and her hard work and success were immediately questioned.- ""right behind the photos followed the hotter, more humiliating blaze of unveiled snark that pointedly implied that I didn""t deserve what I'd accomplished and had been overambitious for even trying in the first place,""?Campoverdi writes.- She explains that she modeled for-Maxim because she was working as an unpaid intern on then-Senator Obama's presidential campaign. ""Ty time as a model was short and it helped me pay some bills,""?Campoverdi writes.- Although Campoverdi worked through the sexist backlash she experienced, she says she wants to address the photos once and for all now that she's running for Congress.-- ""Ten get to be broad and complicated and contradictory. Yet as women, we aren""t granted the whole person. We get typecast as the Sexy One, the Brainy One, the Girl Next Door,""?Campoverdi writes. ""?.. Women shouldn""t need to choose between being intelligent and being feminine. Female sexuality and intelligence are not inversely related.""Campoverdi explains that we need to accept women as multi-dimensional people who can be intelligent, sexual and determined all at the same time. She writes:- I'm proud of the mosaic of experiences that make me who I am. My life experiences have forged me into a fighter and that's why I decided that I won""t let others""?boxes stop me from doing what needs to be done ""?running for office, standing up to Trump and Republicans, and standing up for women in Los Angeles. ... From this generation forward, every woman will have grown up in the digital age where, unless she sat in a turtleneck at home for all her teens, she will have pictures readily available online that can be used to shame her. And if these women decide to sit this one out because of that, we will miss out on talented, transformational women leaders in every public-facing field, especially politics. This will be a loss for our country and our future. As Campoverdi writes towards the end of her essay: ""now more than ever, we must recognize and accept the complexity of real women, and celebrate them in their quest for leadership roles.""?We could not agree more. Head over to Cosmopolitan to read Campoverdi's full essay.- How will Trump's first 100 days impact you? Learn more", -2818,2017/3/17,http://www.huffingtonpost.com/2017/03/17/white-house-fence-jumper_n_15430562.html,Secret Service Took 15 Minutes To Catch White House Fence Jumper: Report,Agents reportedly caught the intruder steps away from a main door to the president's residence.,"WASHINGTON ""?A California man accused of breaching the White House complex last week remained on the premises for 15 minutes before Secret Service agents could corral him, agency sources told CNN Friday. Jonathan Tran, 26, faces criminal charges for allegedly scaling a perimeter fence outside the Treasury Building adjacent to the White House around midnight last Friday. Tran then made his way toward the mansion, setting off a number of alarms, according to CNN. He avoided apprehension on multiple occasions, in one instance by hiding behind a pillar of an East Wing portico. Tran was finally arrested just outside a main door to the president's residence. He was wearing a backpack and carrying two cans of Mace. Tran reportedly told officers he was a-""Hriend of the president""?and claimed to have had ""An appointment""?with President Donald Trump, who was at the White House at the time. Tran faces a maximum sentence of 10 years in prison. The Secret Service response to the intrusion was-""lacking,""?and exposed ""lulnerabilities in the system,""?sources told CNN. The agency is reportedly conducting a formal ""mission assurance review""?to determine what went wrong. White House fence jumpers have successfully bypassed Secret Service security numerous times in the past, leading to embarrassments and scrutiny. A series of incidents, including one in 2014 in which an intruder-made it inside the White House-while armed with a knife, led the Secret Service to add spikes to the barrier around the grounds. Plans are now underway to make the fence higher and sturdier. The Secret Service also is under fire after-reports that a laptop and other ""sensitive""?documents were stolen from an agent's parked vehicle Thursday morning in Brooklyn, New York. The computer reportedly contained information about the Hillary Clinton campaign email investigation, as well as security information regarding Trump Tower in New York. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2819,2017/3/17,http://www.huffingtonpost.com/2017/03/17/trump-merkel-wiretapping_n_15430528.html,Donald Trump Says He And Angela Merkel 'Have Something In Common' On Wiretapping,Trump has been unable to substantiate his claim that the Obama administration wiretapped Trump Tower.,"WASHINGTON ""?-President Donald Trump said he and German Chancellor Angela Merkel ""Lave something in common""?in having been allegedly wiretapped by former President Barack Obama.- Trump claimed in a recent tweet that his campaign headquarters had been wiretapped by the Obama administration during the campaign ""?but he's been unable to provide evidence that supports that claim. A German reporter asked Trump about his allegation on Friday during a joint press conference with Merkel at the White House.- ""As far as wiretapping, I guess, by this past administration, at least we have something in common, perhaps,""?Trump said, to laughter in the room.- Der Spiegel reported in 2013 that the Obama administration's National Security Agency listened in on Merkel's cell phone calls.- Intelligence authorities have said there's no evidence supporting Trump's claim the Obama administration wiretapped Trump Tower.- This is a developing story and will be updated. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2820,2017/3/17,http://www.huffingtonpost.com/2017/03/17/derek-walcott-dead-dies_n_15430514.html,Acclaimed Poet And Playwright Derek Walcott Dead At 87,The Nobel Prize-winning writer was celebrated for the powerful and evocative poetry he wrote about his native Caribbean.,"Nobel Prize-winning poet and playwright Derek Walcott, who was celebrated for the lush, evocative poetry he wrote about his native Caribbean, died on Friday at the age of 87.- According to a statement from his son, Walcott died at home in St. Lucia, the Caribbean island nation where the poet was born. A spokesman for his publisher, Farrar, Straus & Giroux, told Reuters that Walcott had been ill-and was recently in the hospital.- Walcott always firmly identified as a Caribbean poet, claiming the forms of Anglophone poetry and reworking them to capture the glories of St. Lucia. ""the English language is nobody's special property,""?he told the Paris Review in 1985. ""It is the property of the imagination: it is the property of the language itself.""?A passionate fan of the great English poets, he sought to infuse the poetic tradition with the tendency toward exuberant performativity he found in Caribbean culture. ""I come from a place that likes grandeur; it likes large gestures; it is not inhibited by flourish; it is a rhetorical society; it is a society of physical performance; it is a society of style,""?he told the Paris Review. ""Todesty is not possible in performance in the Caribbean ""?and that's wonderful.""?He published his first poem at just 14, in a local newspaper; later in his teens, he self-published a collection of poetry. His breakout book, 1962's-In a Green Night, earned him international plaudits. Early fans of his work included Robert Lowell and Robert Graves, and as his career progressed he also became friends with poets such as Seamus Heaney and Joseph Brodsky. In a 1982 Paris Review interview, Brodsky recalled reading Walcott's 1973 collection,-In Another Life, for the first time. ""that blew my mind completely. I realized that we have a giant on our hands,""?he said. ""the critics want to make him a regional poet from the West Indies, and it's a crime. Because he's the grandest thing around.""?In 1981, Walcott was awarded a MacArthur Fellowship, more commonly known as a ""TacArthur Genius Grant.""?He published his most sweeping work, a Homeric epic called Omeros, in 1990. The 64-chapter poem loosely draws from The Iliad in a multi-strand contemporary narrative peopled by Caribbean heroes. In 1992, he received-the Nobel Prize in Poetry; the Swedish Academy cited his ""melodious and sensitive""?style, stating, ""In him West Indian culture has found its great poet.""?Prior to his retirement in 2007, Walcott taught for decades at Boston University, and spent time in New York and Boston as well as St. Lucia. Married and divorced three times, he had three children ""?Peter, Elizabeth and Anna. He is survived by his children, grandchildren and his companion of many years, Sigrid Nama.- Share this slide: Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -2821,2017/3/17,http://www.huffingtonpost.com/2017/03/17/this-8-year-old-girl-wrote-a-best-selling-book-on-caring-for-her-annoying-little-brother_n_15430512.html,This 8-Year-Old Girl Wrote A Best-Selling Book On Caring For Her 'Annoying' Little Brother,And it's a top seller on Amazon.,"At only 8 years old, Nia Mya Reese has already mastered the art of caring for another human being. So much so that she's written a best-selling how-to book on it titled How To Deal With and Care For Your Annoying Little Brother. It all began last year with a first-grade class assignment for students to write a descriptive piece on something they have learned to excel in.- Nia Mya ""?who lives in Hoover, Alabama ""?chose her ""downright annoying""?5-year-old brother Ronald Michael as the subject for the assignment, she told CBS News. ""nia Mya shared that she was a great big sister to an annoying little brother,""?her first-grade teacher, Beth Hankins, told CBS.- Her mother, Cherinita, then advised Nia Mya to extend the assignment into the summer.- Nia Mya said it only took a few days to place all of her big sister expertise, including how to make learning enjoyable, in the book, which became available on Amazon last November. The book has since been branded with the website's coveted best-seller tag.-Hoover Mayor Frank V. Brocato even came by Nia Mya's latest book signing. When asked by CBS about her biggest takeaway from the experience, Nia Mya replied: ""I learned to follow my own dreams.""You can watch more of CBS's interview with Nia Mya below:- Share this slide: A photo posted by Misty Copeland (@mistyonpointe) on May 11, 2015 at 8:17pm PDT How will Trump's first 100 days impact you? Learn more", -2822,2017/3/17,http://www.huffingtonpost.com/2017/03/17/dhs-secretary-democrats-immigration_n_15430508.html,Homeland Security Chief Tells Democrats To Change Law If They Don't Like Deportation Practices,"""I don't deport anyone. ICE doesn't deport anyone. The law deports people.""","WASHINGTON ""?House Democrats pressed Homeland Security Secretary John Kelly in a tense meeting on Friday over deportation policies, the president's travel ban and the White House's response to recent white nationalist remarks by a Republican congressman ""?and they didn""t like what they heard. Multiple Democratic members came out of the meeting exasperated with Kelly. ""Pretty damn frustrating that he's not answering questions,""?Rep. Tony C��rdenas (D-Calif.), who walked out midway through, told reporters. ""He's just going around in circles.""?Kelly was entering the lion's den. Democrats are incensed by a number of Kelly's actions, as he's the man charged with carrying out some of Trump's most controversial politices. He oversees Immigration and Customs Enforcement and Customs and Border Protection, and signed the memo instructing the agencies to broaden priorities for removal in a way that puts nearly all undocumented immigrants in the crosshairs. He has floated the possibility of-separating children from their parents at the border to deter unauthorized crossings. He was tasked with figuring out how to build Trump's border wall. He leads much of the implementation of Trump's two efforts to ban travelers from certain Muslim-majority countries, both now blocked in the courts. When Democrats pressed Kelly on these topics, they said he at times put the onus back on them: If they don""t like the way the law is being enforced, he told them, they should change it, particularly with regard to so-called Dreamers, the young undocumented immigrants who came to the U.S. as children. He made a similar comment to reporters after the meeting, urging the public to write their representatives if they want the law changed. ""I'm not the decision-maker in that regard; I follow the law,""?he told reporters. ""And by the way, I don""t deport anyone. ICE doesn""t deport anyone. The law deports people.""?Kelly's remarks to reporters were at times defensive over how Democrats characterized the meeting, particularly when told that members said they weren""t satisfied with the information they heard about Dreamers. ""the members of Congress that were just with me walked out and said that they didn""t get enough information?""?he said. ""You'r kidding. ... They may not have heard what they wanted to hear, but we certainly discussed it.""?In the room, according to an aide, Kelly said that ICE was not going after recipients of the Deferred Action for Childhood Arrivals program, or DACA, created by former President Barack Obama to provide certain Dreamers work permits and deportation reprieve. Multiple DACA recipients have been detained under Kelly's watch, although ICE has said that each of them was a priority for another reason, some based on alleged gang affiliation or because their DACA status expired. At that statement, members made sounds of disbelief, according to the aide. ""Give me a break, will you?""?Kelly said in response, according to the aide. At another point, when asked about DACA, Kelly told them he was ""not a lawyer,""?Rep. Nanette Barrag��n (D-Calif.) said. Members said they didn""t get any clarity on what would happen to DACA, which Trump promised to dismantle on the first day of his presidency but has not done yet. Two members said Kelly made comments about how his leadership has been a good thing for DACA recipients, although they weren""t sure what he meant. Rep. Luis Guti��rrez (D-Ill.) said Kelly suggested ""Le is the best friend that DACA has ""?he repeated that more than once.""?""He basically said that he's best thing that ever happened to DACA folks in the last few months,""?C��rdenas said. Kelly didn""t tell reporters what would happen to DACA, either, other than to say that his focus would be deporting criminals. ""I told them that I have a lot of things on my plate, a lot of criminals to apprehend and deport that are here illegally ""?criminals beyond just the fact that they'r here illegally ""?and the least of my worries right now is anyone who falls into the general category of DACA,""?Kelly said. He denied to members that ICE agents were entering churches, schools or hospitals, according to Rep. Norma Torres (D-Calif.), who said they brought photos and stories that demonstrated that was untrue. She said he provided them ""lengthy statements""?with ""blatant misinformation that he is hearing directly from his personnel.""?Torres was also dissatisfied with Kelly's response when Democrats asked about his comments about separating children from their mothers ""?""He said he has not done it yet""?but little else, she said. On Trump's travel ban, aimed at temporarily barring many citizens of six Muslim-majority nations and all refugees from entering the U.S., Kelly said it was not a ""Tuslim ban,""?according to members. He told reporters DHS was complying with the court rulings temporarily blocking the executive order. - Rep. Raúl Grijalva (D-Ariz.) said that he asked Kelly about recent comments made by Rep. Steve King (R-Iowa), an-ally of the president and White House on immigration policy. King drew widespread attention for tweeting that-""we can""t restore our civilization with somebody else's babies.""?White House press secretary Sean Spicer said this week that King's statements were ""not a point of view [the president] shares.""?Grijalva told reporters he asked Kelly to repudiate King's statements because he felt Spicer's comments were ""gepid""?and ""many people feel that is really what's going on ""?that there is a removal and cleansing process going on ""?and this was an opportunity to say absolutely not.""?Kelly said he did not agree with King, according to members and an aide. But the entire meeting left some Democrats feeling even more frustrated with the Trump administration than they were before. ""there's always a way to work with an administration, but as long as they see Latinos as criminals, as a threat, as a ""Threat to their civilization,""?it makes it impossible to sit down,""?Guti��rrez said. ""First they have to recognize our humanity.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2823,2017/3/17,http://www.huffingtonpost.com/2017/03/17/preet-bharara-investigation-tom-price_n_15430336.html,Fired U.S. Attorney Preet Bharara Said to Have Been Investigating HHS Secretary Tom Price,,"By Robert Faturechi ProPublica, March 17, 2017, 2:13 p.m. Former U.S. Attorney Preet Bharara, who was removed from his post by the Trump administration last week, was overseeing an investigation into stock trades made by the president's health secretary, according to a person familiar with the office. Tom Price, head of the Department of Health and Human Services, came under scrutiny during his confirmation hearings for investments he made while serving in Congress. The Georgia lawmaker traded hundreds of thousands of dollars worth of shares in health-related companies, even as he voted on and sponsored legislation affecting the industry. Price testified at the time that his trades were lawful and transparent. Democrats accused him of potentially using his office to enrich himself. One lawmaker called for an investigation by the Securities and Exchange Commission, citing concerns Price could have violated the STOCK Act, a 2012 law signed by President Obama that clarified that members of Congress cannot use nonpublic information for profit and requires them to promptly disclose their trades. The investigation of Price's trades by the U.S. Attorney's Office for the Southern District of New York, which hasn't been previously disclosed, was underway at the time of Bharara's dismissal, said the person. Bharara was one of 46 U.S. attorneys asked to resign after Trump took office. It is standard for new presidents to replace those officials with their own appointees. But Bharara's firing came as a surprise because the president had met with him at Trump Tower soon after the election. As he left that meeting, Bharara told reporters Trump asked if he would be prepared to remain in his post, and said that he had agreed to stay on. When the Trump administration instead asked for Bharara's resignation, the prosecutor refused, and he said he was then fired. Trump has not explained the reversal, but Bharara fanned suspicions that his dismissal was politically motivated via his personal Twitter account. ""I did not resign,"" he wrote in one tweet over the weekend. ""Moments ago I was fired."" ""By the way,"" Bharara said in a second tweet, ""now I know what the Moreland Commission must have felt like."" Bharara was referring to a commission that was launched by New York Gov. Andrew Cuomo in 2013 to investigate state government corruption, only to be disbanded by the governor the next year as its work grew close to his office. In that case, Bharara vowed to continue the commission's work, and eventually charged Cuomo associates and won convictions of several prominent lawmakers. Bharara referred questions from ProPublica to the U.S. attorney's office in the Southern District of New York. A spokesperson there declined to comment. The Justice and Health and Human Services departments also didn't respond to requests for comment. A White House spokesperson didn't respond to questions about whether Trump or anyone in his cabinet was aware of the inquiry into Price's trades. In December, the Wall Street Journal reported that Price traded more than $300,000 worth of shares in health companies over a recent four-year period, while taking actions that could have affected those companies. Price, an orthopedic surgeon, chaired the powerful House Budget Committee and sat on the Ways and Means Committee's health panel. In one case, Price was one of just a handful of American investors allowed to buy discounted stock in Innate Immunotherapeutics 2013 a tiny Australian company working on an experimental multiple sclerosis drug. The company hoped to be granted ""investigational new drug"" status from the Food and Drug Administration, a designation that expedites the approval process. Members of congress often try to apply pressure on the FDA. As ProPublica has reported, Price's office has taken up the causes of health care companies, and in one case urged a government agency to remove a damaging drug study on behalf of a pharmaceutical company whose CEO donated to Price's campaign. Innate Immunotherapeutics' CEO Simon Wilkinson told ProPublica that he and his company have not had any contact with American law enforcement agencies and have no knowledge of authorities looking at Price's stock trades. Another transaction that drew scrutiny was a 2016 purchase of between $1,001 and $15,000 in shares of medical device manufacturer Zimmer Biomet. CNN reported that days after Price bought the stock, he introduced legislation to delay a regulation that would have hurt Zimmer Biomet. Price has said that trade was made without his knowledge by his broker. In a third case, reported by Time magazine, Price invested thousands of dollars in six pharmaceutical companies before leading a legislative and public relations effort that eventually killed proposed regulations that would have harmed those companies. Louise Slaughter, a Democratic congress member from New York who sponsored the STOCK Act, wrote in January to the SEC asking that the agency investigate Price's stock trades. ""The fact that these trades were made and in many cases timed to achieve significant earnings or avoid losses would lead a reasonable person to question whether the transactions were triggered by insider knowledge,"" she wrote. What federal authorities are looking at, including whether they are examining any of those transactions, is not known. Along with the Price matter, Bharara's former office is investigating allegations relating to Fox News, and has been urged by watchdog groups to look into payments Trump has received from foreign governments through his Manhattan-based business. Bharara's former deputy, Joon Kim, is now in charge of the office, but Trump is expected to nominate his replacement within weeks. ProPublica reporters Jesse Eisinger and Justin Elliott and research editor Derek Kravitz contributed to this story. ProPublica is a Pulitzer Prize-winning investigative newsroom. Sign up for their newsletter. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2824,2017/3/17,http://www.huffingtonpost.com/2017/03/17/donald-trump-budget-republicans_n_15429936.html,Donald Trump's Budget Is Universally Unloved,"It manages to turn off basically everyone, including congressional Republicans.","WASHINGTON ""?Over the course of the last three years, a bipartisan group of lawmakers made painstaking attempts to pass a major restructuring of biomedical research in America. Known as the 21st Century Cures Act, the bill streamlined regulatory policy at the Food and Drug Administration. It also called for billions more to be spent on key functions at the National Institutes of Health, such as combating the opioid epidemic and undertaking then-Vice President Joe Biden's cancer moonshot. When the bill ultimately passed in December, it was hailed as a triumph ""?not just because it was the biggest piece of legislation to make it through Congress, but because it had been done the right way, with hearings, negotiations, no rancor and plenty of bipartisanship. And yet, advocates were worried. To get the bill over the finish line, House Speaker Paul Ryan (R-Wis.) had made critical changes. The $4.8 billion devoted to the NIH over 10 years would no longer be mandatory spending. While the fees and cuts to pay for the NIH funding would remain automatic ""?and set aside with express written language that that fund be used for 21st Century Cures priorities ""?lawmakers would have to vote each year to spend it. One top biomedical research advocate told The Huffington Post in that moment that he feared Congress would fund the NIH at a lower level in the coming year precisely because they knew that the 21st Century Funds were there, waiting to be used. And on Thursday, those fears were realized as President Donald Trump unveiled a budget-that included a $5.8 billion reduction in NIH funding. ""I said this funding is going to end up supplanting baseline appropriations,""?the advocate emailed, ""and sure as fuck ""?look at the President's budget.""?On the Hill, the reaction was just as raw. One House staffer who worked on legislation noted that Trump's budget does specifically call for funding 21st Century Cures priorities. But the funding levels requested by Trump falls short of what was envisioned. And even then, the cut to NIH funding sets biomedical research in America back years. ""It is incredibly frustrating,""?the staffer said. ""they are trying to preserve the Cures""?priorities but the intent of that bill was to give a boost to the NIH. So even if those priorities move forward, this cut is so significant that NIH would have trouble starting any new research.""?Even Republican lawmakers treated Trump's attempts to shave down the NIH funding as a complete nonstarter. ""Tore than 300 members voted to boost medical research by billions in November, we cannot turn around a few short months later and slash its budget,""?said Rep. Kevin Yoder (R-Kan.). ""Funding to research cures to the 10,000 known diseases in this world, like cancer, Alzheimer's, or Parkinson's is a priority for every family in America, regardless of political party. I will fight to ensure that these proposed cuts to medical research funding never make it into law.""?Trump's NIH funding request just one of the high-profile points of divergence between his intentions and those of the Republican-led Congress. But throughout his budget are similar flash points ""?places where suggested programmatic cuts were met with pointed objections. Budgets are, inherently, statements of principles. And this one, like those former President Barack Obama introduced, won""t become law. But Trump's budget seemed notable for how swiftly so many Republicans came out and said how much they didn""t like it, showing the emerging divide between Trumpism as an ideology and what Republicans on Capitol Hill view as a practical blueprint for governance. Below are other aspects of Trump's budget Republicans spoke out about. Sen. Bob Corker (R-Tenn.): ""the fact is that until the president and Congress are willing to address the real drivers of our debt, Medicare and Social Security, we will be complicit in shackling future generations with the financial burden of our own lack of discipline. That is not a legacy I want to leave.""?Rep. Steve Womack (R-Ark.): ""there have been many attempts made to try to balance the books of the U.S. government on the backs of the discretionary dollar, and we all know that's a fantasy, because the drivers of the debt are on the mandatory side: Medicare, Medicaid, Social Security. Trying to solve for a deficit in the hundreds of billions of dollars cannot be accomplished through deeper cuts to discretionary programs without terrific harm to both the economy and a lot of innocent people.""?Rep. Charlie Dent (R-Pa.): ""the president proposes and Congress disposes. We can""t finance a defense buildup entirely on the back of domestic, nondefense spending. It's not realistic and unfair.""?Rep. Mark Meadows (R-N.C.): ""I can tell you that I brought up entitlement reform [with Trump] a week or so ago, [and] the pushback was a little stronger than I expected. It's going to take a lot more encouragement in terms of actually tackling entitlement reform.""?Sen. Lamar Alexander (R-Tenn.): ""Any effort to balance the budget by cutting discretionary spending is not a straightforward approach.""?Rep. Andy Harris (R-Md.): ""We can no longer expand federal spending without finding savings somewhere. And so, the people who want to protect nondefense discretionary, they'r going to have to realize at some point we may have to look at the entitlement programs.""?Rep. Rodney Frelinghuysen (R-N.J.): ""We're reduced our discretionary spending over the last seven or eight years an incredible amount. Maybe some people don""t like those agencies, but it's been pretty difficult for them to meet their mandate.""?Sen. Dean Heller (R-Nev.): ""As has been stated in the past, Yucca is dead and this reckless proposal will not revive it. Washington needs to understand what Nevada has been saying for years: We will not be the nation's nuclear waste dump. This project was ill-conceived from the beginning and has already flushed billions of taxpayer dollars down the drain. Members of both parties keep trying to revive this dead project via the budget and appropriations process, but I will continue to fight those efforts.""?Rep. Mac Thornberry (R-Texas): ""the Administration's budget request is not enough to repair that damage and to rebuild the military as the president has discussed. ... It is morally wrong to task someone with a mission for which they are not fully prepared and fully supported with the best weapons and equipment this nation can provide.""?Sen. John McCain (R-Ariz.): ""the fiscal year 2018 defense topline proposed today of $603 billion will not be sufficient to rebuild the military. Such a budget does not represent a 10 percent increase as previously described by the White House, but amounts to a mere 3 percent over President Obama's defense plan, which has left our military underfunded, undersized and unready to meet the threats of today and tomorrow.""?Senate Majority Leader Mitch McConnell (R-Ky.): ""the diplomatic portion of the federal budget is very important and you get results a lot cheaper frequently than you do on the defense side. So speaking for myself, I'm not in favor of reducing the [foreign aid] account to that extent.""?Rep. Ed Royce (R-Calif.): ""I am very concerned by reports of deep cuts that could damage efforts to combat terrorism, save lives, and create opportunities for American workers.""?Sen. Marco Rubio (R-Fla.): ""I do not support the proposed 28 percent cut to our international affairs budget and diplomatic efforts led by the State Department. These programs are integral to our national security, and cuts at these levels undermine America's ability to keep our citizens safe.""?Rep. Hal Rogers (R-Ky.): ""As [Defense Secretary] General [Jim] Mattis said prophetically, slashing the diplomatic efforts will cause them to have to buy more ammunition. There [are] two sides to fighting the problem that we'r in: There is military and then there's diplomatic. And we can""t afford to dismantle the diplomatic half of that equation.""?Sen. Lindsey Graham (R-S.C.): ""I appreciate that this budget increases defense spending, yet these increases in defense come at the expense of national security, soft power, and other priorities.""?Rep. Lou Barletta (R-Pa.): ""�[I] write to express our deep concerns over reports that the President's Fiscal Year 2018 budget request will elimination of the 21st Century Community Learning Centers program. This critical program provides a direct funding stream to allow children to have access to afterschool programming. [I] ask that you reconsider this misguided proposal.""?Rep. Hal Rogers (R-Ky.): ""While we have a responsibility to reduce our federal deficit, I am disappointed that many of the reductions and eliminations proposed in the President's skinny budget are draconian, careless and counterproductive. In particular, the Appalachian Regional Commission (ARC) has a long-standing history of bipartisan support in Congress because of its proven ability to help reduce poverty rates and extend basic necessities to communities across the Appalachian region.""?Sen. Lisa Murkowski (R-Alaska): ""While I support the President's emphasis on a strong national defense, I cannot support many of the proposed cuts in this ""�skinny""?budget. Programs like Essential Air Service, Low Income Heating Assistance, and water and wastewater programs are critical to the health, welfare, and safety of Alaskans, especially those in our remote, rural communities. We need to remember that these programs are not the primary drivers of our debt, and to look at the full budget to find the best ways to reduce federal spending.""?Rep. Don Young (R-Alaska): ""�Remember, Congress still plays a role in this. We don""t have any highways in Alaska; that's why it's called essential air service.""?Rep. Mike Conaway (R-Texas): ""Agriculture has done more than its fair share. The bottom line is this is the start of a longer, larger process. It is a proposal, not THE budget.""?Sen. Rob Portman (R-Ohio): ""I have long championed this program, and I'm committed to continuing to do everything I can to protect and preserve Lake Erie, including preserving this critical program and its funding.""?Want more updates from Amanda Terkel? Sign up for her newsletter, Piping Hot Truth, here. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2825,2017/3/17,http://www.huffingtonpost.com/2017/03/17/fired-us-attorney-preet-bharara-said-to-have-been-investigating-hhs-secretary-tom-price_n_15429858.html,Fired U.S. Attorney Preet Bharara Said to Have Been Investigating HHS Secretary Tom Price,,"By Robert Faturechi ProPublica, March 17, 2017, 2:13 p.m. Former U.S. Attorney Preet Bharara, who was removed from his post by the Trump administration last week, was overseeing an investigation into stock trades made by the president's health secretary, according to a person familiar with the office. Tom Price, head of the Department of Health and Human Services, came under scrutiny during his confirmation hearings for investments he made while serving in Congress. The Georgia lawmaker traded hundreds of thousands of dollars worth of shares in health-related companies, even as he voted on and sponsored legislation affecting the industry. Price testified at the time that his trades were lawful and transparent. Democrats accused him of potentially using his office to enrich himself. One lawmaker called for an investigation by the Securities and Exchange Commission, citing concerns Price could have violated the STOCK Act, a 2012 law signed by President Obama that clarified that members of Congress cannot use nonpublic information for profit and requires them to promptly disclose their trades. The investigation of Price's trades by the U.S. Attorney's Office for the Southern District of New York, which hasn't been previously disclosed, was underway at the time of Bharara's dismissal, said the person. Bharara was one of 46 U.S. attorneys asked to resign after Trump took office. It is standard for new presidents to replace those officials with their own appointees. But Bharara's firing came as a surprise because the president had met with him at Trump Tower soon after the election. As he left that meeting, Bharara told reporters Trump asked if he would be prepared to remain in his post, and said that he had agreed to stay on. When the Trump administration instead asked for Bharara's resignation, the prosecutor refused, and he said he was then fired. Trump has not explained the reversal, but Bharara fanned suspicions that his dismissal was politically motivated via his personal Twitter account. ""I did not resign,"" he wrote in one tweet over the weekend. ""Moments ago I was fired."" ""By the way,"" Bharara said in a second tweet, ""now I know what the Moreland Commission must have felt like."" Bharara was referring to a commission that was launched by New York Gov. Andrew Cuomo in 2013 to investigate state government corruption, only to be disbanded by the governor the next year as its work grew close to his office. In that case, Bharara vowed to continue the commission's work, and eventually charged Cuomo associates and won convictions of several prominent lawmakers. Bharara referred questions from ProPublica to the U.S. attorney's office in the Southern District of New York. A spokesperson there declined to comment. The Justice and Health and Human Services departments also didn't respond to requests for comment. A White House spokesperson didn't respond to questions about whether Trump or anyone in his cabinet was aware of the inquiry into Price's trades. In December, the Wall Street Journal reported that Price traded more than $300,000 worth of shares in health companies over a recent four-year period, while taking actions that could have affected those companies. Price, an orthopedic surgeon, chaired the powerful House Budget Committee and sat on the Ways and Means Committee's health panel. In one case, Price was one of just a handful of American investors allowed to buy discounted stock in Innate Immunotherapeutics 2013 a tiny Australian company working on an experimental multiple sclerosis drug. The company hoped to be granted ""investigational new drug"" status from the Food and Drug Administration, a designation that expedites the approval process. Members of congress often try to apply pressure on the FDA. As ProPublica has reported, Price's office has taken up the causes of health care companies, and in one case urged a government agency to remove a damaging drug study on behalf of a pharmaceutical company whose CEO donated to Price's campaign. Innate Immunotherapeutics' CEO Simon Wilkinson told ProPublica that he and his company have not had any contact with American law enforcement agencies and have no knowledge of authorities looking at Price's stock trades. Another transaction that drew scrutiny was a 2016 purchase of between $1,001 and $15,000 in shares of medical device manufacturer Zimmer Biomet. CNN reported that days after Price bought the stock, he introduced legislation to delay a regulation that would have hurt Zimmer Biomet. Price has said that trade was made without his knowledge by his broker. In a third case, reported by Time magazine, Price invested thousands of dollars in six pharmaceutical companies before leading a legislative and public relations effort that eventually killed proposed regulations that would have harmed those companies. Louise Slaughter, a Democratic congress member from New York who sponsored the STOCK Act, wrote in January to the SEC asking that the agency investigate Price's stock trades. ""The fact that these trades were made and in many cases timed to achieve significant earnings or avoid losses would lead a reasonable person to question whether the transactions were triggered by insider knowledge,"" she wrote. What federal authorities are looking at, including whether they are examining any of those transactions, is not known. Along with the Price matter, Bharara's former office is investigating allegations relating to Fox News, and has been urged by watchdog groups to look into payments Trump has received from foreign governments through his Manhattan-based business. Bharara's former deputy, Joon Kim, is now in charge of the office, but Trump is expected to nominate his replacement within weeks. ProPublica reporters Jesse Eisinger and Justin Elliott and research editor Derek Kravitz contributed to this story. ProPublica is a Pulitzer Prize-winning investigative newsroom. Sign up for their newsletter. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2826,2017/3/17,http://www.bbc.co.uk/news/uk-39310075,Trump distances White House from GCHQ wiretap claim,"Donald Trump has said he did not ""make an opinion"" over claims the UK's GCHQ spy agency carried out wiretapping on him during the US election campaign.","Donald Trump has said he did not ""make an opinion"" over claims the UK's GCHQ spy agency carried out wiretapping on him during the US election campaign. Speaking at a press conference in Washington, Mr Trump said the White House had quoted a legal commentator who appeared on US TV channel Fox News. GCHQ rejected allegations made by White House press secretary Sean Spicer, that it spied on Mr Trump, as ""nonsense"". Downing Street says it has been assured the US will not repeat the claims. Mr Trump was asked by a German reporter after the president's meeting with Chancellor Angela Merkel about British involvement in the wiretapping claims, which the White House has provided no evidence for. ""We said nothing, all we did was quote a certain very talented legal mind who was the one responsible for saying that on TV,"" said President Trump. ""I didn't make opinion on it, that was statement made by a very talented lawyer on Fox [News]"", he added, saying that reporters ""shouldn't be talking to me, you should be talking to Fox"". The allegations of GCHQ involvement were initially made by former judge Andrew Napolitano.", -2827,2017/3/17,http://tass.com/world/936251,Kazakh president says he's optimistic about Eurasian Economic Union's future,"Eurasian Economic Union will be able to cope with the current difficulties and continue its development, according to Nursultan Nazarbayev","ASTANA, March 17. /TASS/. Kazakhstan's President Nursultan Nazarbayev said on Friday he is optimistic about the future of the Eurasian Economic Union, which will be able to cope with the current difficulties and continue its development. ""I am optimistic about the future of the Eurasian Economic Union. It should be developed further,"" Nazarbayev said in an interview with the country's mass media. ""We do have problems but does the European Union have none? But the general direction is right and we should continue to elaborate the framework."" ""These problems, these difficulties, the current crisis will finally go. The situation will smooth out and then we will possibly continue to expand. I am confident that once the Eurasian Economic Union demonstrates good results the European Union will be interested in cooperation with us,"" he stressed, adding that the market of the Eurasian Economic Union countries with their population of some 180 million is very promisising.", -2828,2017/3/17,http://tass.com/economy/936252,S&P decision on Russia's sovereign rating is ahead of Economy Ministry's expectations,"On Friday, S&P raised the outlook for Russia's sovereign credit rating to ""positive"" from ""stable""","MOSCOW, March 17. /TASS/. The decision by the international rating agency S&P to raise the outlook for Russia's sovereign rating outstripped the expectations of Russia's Economic Development Ministry, Minister Maxim Oreshkin told reporters. He said that the recent discussion between the ministry and the agency experts contributed to the decision to raise Russia's rating. ""Previously, we met with S&P analysts, we told them about our plans, the current economic dynamics, the government's forecasts and actions aimed at preparing a plan to increase the economy's growth rate, which affected their expectations and helped to make a decision about a positive outlook earlier than we expected,"" Oreshkin said. He added that completion of the plan on structural changes and the beginning of the plan's implementation were necessary conditions for raising the rating to investment level this year. On Friday, S&P raised the outlook for Russia's sovereign credit rating to ""positive"" from ""stable"", confirming its long-term foreign currency credit rating at ""BB +"", according to the agency's press release. At the same time, the long-term credit rating in the national currency was affirmed at ""BBB-"". The agency noted that the revision of the rating outlook reflects the expectation that Russia's GDP will return to the growth trajectory and the Russian economy will continue to adapt to low oil prices while maintaining a relatively low level of public debt in the period from 2017 to 2020.", -2829,2017/3/17,http://www.dw.com/en/high-level-police-official-gunned-down-in-ugandan-capital/a-38001161?maca=en-rss-en-all-1573-rdf,High-level police official gunned down in Ugandan capital,A high level police official and his two armed guards have been gunned down in the Ugandan capital. President Yoweri Museveni condemned the latest killing and vowed to take action.,"Assistant Inspector General of Police Andrew Kaweesi served as the force's spokesman and was one of the country's most high-profile officers. He and his guards were gunned down on Friday as they left Kaweesi's home in Kampala, government spokesman Ofwono Opondo said. - ""He (Kaweesi) was waylaid this morning by yet unknown gunmen. All the occupants of the vehicle were killed,"" Opondo said. Assistant Inspector General of Police Andrew Kaweesi ""He was shot dead this morning as he was leaving his home coming to work,"" Inspector General Kale Kayihura said. ""Kaweesi had two police officers guarding him who were also killed. The motive is yet to be established."" Police killings are rare in Uganda, but the killing was similar to the assassinations of an army officer last November and senior public prosecutor Joan Kagezi-in March 2015. Both victims were-gunned down by assailants on motorcycles. Shower of bullets Local Mayor Charles Sserunjogi said he heard ""a shower of bullets - many shots - from my house nearby."" ""I don't believe what I'm seeing right now,"" Sserunjogi continued. ""I knew Kaweesi well and met with him about a week and a half ago to discuss tarmacking the road he was shot on,"" he said. Police cordoned off the scene of the killings in Kampala Local witness A local man witnessed Friday's-shooting. Mohammad, a 30-year-old motorcycle taxi driver who lives and works in the area, described seeing four men on two motorcycles attack the car at around 9:30 am (0630 UTC) as they left for work.- ""They shot very rapidly with guns that looked like AK47s,"" said Mohammad. ""The motorbikes came from behind as the car was leaving Kaweesi's house. The car driver tried to increase speed but they drove past the car and shot into it,"" he continued.- ""The motorbikes were new and the shooters looked professional,"" he added. ""They weren't wearing masks but I didn't see their faces because I ran for cover."" Other neighbors reported that the gunmen had time to open the car doors to make sure that their target was dead before-speeding off on two separate motorcycles. Details of the attack, including the motive, were unclear but Opondo said the perpetrators must have used a ""powerful weapon,"" knowing that they knew they were attacking armed people. President Yoweri Museveni condemned the killing and ""directed the immediate installation of cameras in all major towns of Uganda and along the highways,"" his office said in a statement. Kaweesi rose to prominence as he led the police response to widespread opposition party protests following a controversial presidential election in 2011. bik/jm (AFP, Reuters, DW)", -2830,2017/3/17,http://www.dw.com/en/sieren-s-china-sober-but-confident/a-38002354?maca=en-rss-en-all-1573-rdf,"Sieren's China: Sober, but confident","The Chinese prime minister gives a press conference once a year. Li Keqiang did not sound like a person going under, says DW's Frank Sieren.","It may not be a democracy yet, but it is a sign that the man is sitting more firmly in his seat than some would like to believe. Chinese Prime Minister Li Keqiang scored the highest approval ratings since 2006 at the People's Congress that came to a close on Wednesday. Only 14 delegates voted against the annual work report, with eight abstaining. Last year, there were twice as many dissenting voices. This is a start. The atmosphere at the press conference was suitably sober, but also confident with regard to the problems faced and by no means dissatisfied with what has been achieved so far. There were no strident tones, no nationalism, no populism to serve as diversions from China's problems - nothing intended for the ears of South Korea, Japan or the US. The prime minister did not avoid mentioning existing differences, saying that they should be discussed but that was it. The overall message was that China would continue on its path, perhaps more slowly than expected, but in a constant, confident manner. Keqiang signaled that there would be less bureaucracy and fewer taxes, fewer state-run companies and more small and medium-sized enterprises, more service industry, more market and consumption - so as to maintain the stable, if not heady, growth.- Concern about increase of debts The Chinese prime minister was particularly proud of the fact that growth would be reached without having to resort to huge investment programs. However, he did admit that he was worried about the increase in debts. So he should be. Nonetheless, at least China does not have debts abroad, like the US. It seems that the Chinese government has taken the right direction even it if is debatable whether progress is as fast as it claims. Skepticism is justified. However, Western observers should not forget that China contributes over 30 percent to global economic growth. The US, for its part, contributes 9.5 percent and the EU only 6.2 percent. DW's Frank Sieren It's a comfortable position from which to launch reforms, especially considering that average per capita income is lower than in Romania. There is plenty of potential for growth, which is not the case in the EU and the US. Gradually, the West is beginning to understand that despite its problems China is the world's second most powerful economy and the new driving force of globalization. This will of course have political implications. In response to a question regarding China's expectations from the new US government, the prime minister hit the nail on the head: He said that Beijing did not want a trade war. ""That would not make trade fairer,"" he pointed out. He added that there was a bright future for US-China relations. ""This relationship is crucial not just for China and the US but also for regional and global peace and security."" How to deal with North Korea? This set the tone ahead of US Secretary of State Rex Tillerson's first official visit to China this weekend, where North Korea will be top of the agenda. Li Keqiang called for all parties to return to the negotiating table: ""No one wants to see chaos on his doorstep."" He also sent out a message to Chinese companies that stability and reliability were important. He announced that the government would cut corporate taxes and by 1 trillion yuan ($144 billion, 135 billion euros). ""To cut down fees, the government must tighten its belt,"" he said. This means cutting general expenditures by over 5 percent. This will be interesting to watch. The population will keep the government to its word. The state, at the same time, is going to have to deep dig deep into its pockets to support the 850,000 people who lost their jobs last year and the million more expected to become jobless when more state-run companies close. Li Keqiang himself has admitted that this will not be easy. DW's Frank Sieren has lived in Beijing for over 20 years.", -2831,2017/3/17,http://www.dw.com/en/ioc-could-name-hosts-of-both-2024-and-2028-games-this-year/a-38000013?maca=en-rss-en-all-1573-rdf,IOC could name hosts of both 2024 and 2028 Games this year,The International Olympic Committee appears to have moved a step closer towards awarding both the 2024 and 2028 Games at a meeting later this year. This comes with just two cities left in the mix for the 2024 event.,"International Olympic Committee (IOC) President Thomas Bach told reporters after a two-day meeting in Pyongchang on Friday that his executive board had set up a working group made up of the IOC's four vice presidents to explore the idea of awarding the rights to host the next two Summer Games at once. ""All the options are on the table, and this includes also the '24-'28 procedure and vote,"" Bach said as he announced the formation of the working group. Currently, only the right to host the 2024 Olympics is to be decided when the IOC meets in Lima, Peru in September. ""We have two excellent candidates there from two major Olympic countries,"" Bach said. ""This is a position you like to be in."" The working group is to put its proposals to the board and full membership at a meeting in July in Lausanne, Switzerland, where the IOC has its headquarters. Committees representing last two cities seeking to host the 2024 Games, Los Angeles and Paris, are to make formal presentations of their hosting plans at that meeting. Awarding two consecutive Summer Games at once would require an amendment to the Olympic Charter, which currently provides for host cities to be chosen-seven years in advance. However, Bach said he didn't regard this as a stumbling block. ""You must always have room for interpretation to adapt to changing times,"" he said. ""The charter is flexible enough also in this respect."" Los Angeles and Paris have been left in a two-way race- for 2024 after Hamburg, Rome, Budapest and Boston dropped out amid public or political opposition to hosting the Olympics, largely due to the huge costs involved. Since December, Bach has repeatedly warned about a bid process that produces ""too many losers,"" hinting at concerns that whichever city loses the vote for the 2024 Games may not bother to apply to host the Olympics four years later. pfd/ (dpa, AP)", -2832,2017/3/17,http://www.rte.ie/news/crime/2017/0317/860527-drug-seizure-dublin/,Man and woman arrested after �100k drug seizure in Dublin,,"A man and a woman in their 50s have been arrested following an estimated �100,000 drug seizure at a house in Dublin. Cocaine and cannabis were seized in the garda operation at a house in Raheny, north Dublin, last night. The man and woman are being held at Store Street Garda Station.", -2833,2017/3/17,http://www.rte.ie/news/2017/0317/860519-osborne-newspaper-editor/,Former UK chancellor Osborne made London Evening Standard editor,,"Former British chancellor of the exchequer George Osborne has been appointed editor of the London Evening Standard, its owner Evgeny Lebedev said. Mr Lebedev wrote on Twitter: ""Thrilled to announce the new editor of the Evening Standard is George Osborne.""?Mr Osborne, the Tory MP-who was sacked as chancellor by incoming Prime Minister Theresa May last year, replaced the current editor Sarah Sands, who is leaving the Standard after five years to join the BBC. He will take up his role in early May, editing the paper an average of four days a week. The newspaper said: ""The Standard's schedule will enable Mr Osborne to edit the paper and continue to fulfil his other commitments, including as an MP; giving him the time to vote and contribute in Parliament in the afternoon after the paper has gone to print, and be in his constituency. ""He will edit the paper an average of four days a week.""", -2834,2017/3/17,http://www.rte.ie/news/world/2017/0317/860495-syria-israeli-jet/,Syrian army says it shot down Israeli jet,,"Syria's army high command has said its air defences shot down an Israeli jet-over what it called ""occupied ground"" and damaged another.- It said Israeli jets breached Syrian air space early this morning and attacked a military target near Palmyra in what it described as an act of aggression that aided the so-called Islamic State. Israeli warplanes ""penetrated our air space at 2.40am (0040 GMT) via Lebanese territory and hit a military target on the way to Palmyra,"" the army said in a statement carried by state news agency SANA. The Israeli air force had earlier said it carried out several strikes on Syria overnight.- Palmyra is the ancient-desert city Syria recaptured from jihadists earlier this month.-- - -", -2835,2017/3/17,http://www.rte.ie/news/2017/0317/860476-maureen-haughey-death/,Maureen Haughey dies aged 91,,"Maureen Haughey, the wife of former taoiseach Charles Haughey, has died aged 91. Mrs Haughey passed away peacefully after a short illness at Dublin's Mater Hospital early this morning. She was the daughter of Se��n Lemass, also a former taoiseach.- Her son Se��n Haughey, Fianna F��il TD for Dublin Bay North-tweeted the announcement, saying she was ""truly a remarkable woman"". - - So sad to announce that my mother passed away peacefully this morning-A truly remarkable woman.May she rest in peace pic.twitter.com/aJRIoHPUJi ""?Sean Haughey (@sean_haughey) March 17, 2017 Fianna F��il leader Miche��l Martin paid tribute to Mrs Haughey, saying in a statement: ""On behalf of the entire Fianna F��il organisation across the country, I want to extend our deepest sympathies to the Haughey and Lemass families on the passing of Maureen Haughey. ""As the wife of the late Charles Haughey and daughter of Se��n Lemass, Maureen was a wonderfully warm, dignified and intelligent woman. ""She was a tower of strength to her late husband former taoiseach Charles Haughey and loving daughter of former taoiseach Se��n Lemass. Throughout her distinguished life she witnessed some of the major turning points in Irish history.""", -2836,2017/3/17,http://www.rte.ie/news/business/2017/0316/860400-david-murphy-reunification-wont-be-easy/,David Murphy: Reunification won't be easy,,"There has been increasing debate about reunification as a hard Brexit looks far more likely. Leaving the politics aside, from the point of view of economics and particularly trade there are big hurdles. Those challenges have become even more daunting with the prospect of a hard Brexit, not less so. The North is running a deficit of ?9.2 billion (�10.5 billion) per annum according to its Department of Finance. That is the gap between what it collects in taxes and what it spends. It is met by funding from Britain. That compares with a deficit of �1.2 billion in the Republic in 2017. Obviously if there was a 32-county Republic it would need financial support, possibly from the EU and Britain, to make reunification work.- - None of that is new but what has changed is the prospect of the UK leaving the EU's Customs Union, which allows for tariff-free trade between member countries. That means levies would be imposed on goods and services travelling to and from Britain. Crucial to this consideration is this question: Where are the main export destinations for firms based in Northern Ireland? Figures from the Department of the Economy in the North for 2015 show sales (or exports) to Britain were ?13.8 billion (�15.9 billion), exports to the Republic were ?3.4 billion (�1.9 billion), while exports to the rest of the EU were ?1.9 billion (�1.1 billion). In a nutshell, firms in the North are far more dependent on selling to Britain than companies in the Republic. A reunified Ireland would be inside the Customs Union with the border into the EU running the length of the Irish Sea. However, the firms in the North that had been dependent on exporting to Britain would find tariffs imposed on their exports to post-Brexit Britain. Those companies would need significant amounts of aid to survive and find new markets elsewhere. So not only would the 32-county state struggle with the existing deficit in the North, it would also face the mammoth task of re-orientating the exporting sector in the six counties. Reunification is a bit like Brexit itself, it is the complicated details that tend to be overlooked. Comment via Twitter: @davidmurphyRTE", -2837,2017/3/17,http://www.rte.ie/news/2017/0316/860422-louth-arrest/,Young man detained in connection with injured baby case,,A man has been arrested in connection with the investigation into injuries sustained by a baby in Co Louth. The ten-week-old girl remains in-a critical condition in a Dublin hospital. The 18-year-old man was arrested on suspicion of assault causing serious harm to the child. He was arrested in Dublin but was taken to Drogheda Garda Station for questioning., -2838,2017/3/17,http://abcnews.go.com/Politics/timeline-president-trumps-unsubstantiated-wiretapping-claims/story?id=46198888,A timeline of President Trump's unsubstantiated wiretapping claims,,"The White House is standing by President Trump's assertions that former President Obama ordered a wiretap of his phones, even as others -- Democrats and Republicans alike -- have said there is no proof. But the president believes he will, ultimately, be vindicated. Here is a timeline of Trump's unsubstantiated claims, what other officials have said and how the White House has responded: Early Saturday morning, while away at his Mar-a-Lago estate in Florida, Trump fired off his first tweet accusing Obama of wiretapping his phones at Trump Tower in New York during the election. Terrible! Just found out that Obama had my ""wires tapped"" in Trump Tower just before the victory. Nothing found. This is McCarthyism! Trump then posted three more tweets, comparing the allegations to President Nixon's Watergate scandal. Is it legal for a sitting President to be ""wire tapping"" a race for president prior to an election? Turned down by court earlier. A NEW LOW! I'd bet a good lawyer could make a great case out of the fact that President Obama was tapping my phones in October, just prior to Election! How low has President Obama gone to tapp my phones during the very sacred election process. This is Nixon/Watergate. Bad (or sick) guy! Obama's spokesman released a statement later that day, rebutting Trump's accusations: ""No White House official ever interfered with any independent investigation led by the Department of Justice. Neither President Obama nor any White House official ever ordered surveillance on any U.S. citizen. Any suggestion otherwise is simply false."" Government sources told ABC News that FBI Director James Comey had asked the Department of Justice to publicly rebut Trump's allegations out of concern that the president's tweets might make it look as though the bureau acted improperly. White House press secretary Sean Spicer announced in a statement that Trump requested that congressional intelligence committees ""determine whether executive branch investigative powers were abused in 2016""?as part of their investigations of Russia's alleged meddling in the U.S. election. ""�Neither the White House nor the president will comment further until such oversight is conducted,""?Spicer said in the statement. The former director of national intelligence under President Obama, James Clapper, told ABC News that ""where was no wiretap against Trump Tower during the campaign conducted by any part of the National Intelligence Community ... including the FBI.""?The same day, speaking to the media -- in an audio-only gaggle -- for the first time since Trump tweeted, White House press secretary Sean Spicer was peppered with questions about the accusations. ""I think that there's no question that something happened. The question is, is it surveillance, is it a wiretap, or whatever?"" Spicer said, giving the first indication that the White House intended to broaden the scope of the allegations beyond monitoring phone calls. When asked for clarification about whether Trump believed the FBI or Obama committed criminal acts in a potential pursuit of surveillance, as well as the appropriateness of the sitting president making such a public charge, Spicer repeatedly said that Trump's tweets ""speak for themselves."" Another White House press briefing leads to questions about the promised investigation into the claims and Comey's reported request made in private that the Justice Department publicly shoot down Trump's claims. Spicer tells reporters that ""the president has not"" asked Comey whether he was wiretapped and stands by his March 5 statement on the direction of the inquiry, saying, ""I think the smartest and most deliberative way to address this situation is to ask the House and Senate intelligence committees who are already in the process of looking into this."" The press secretary is also asked whether Trump has ""any regrets"" about making the accusation. ""No,"" Spicer said, ""Absolutely not."" The House Intelligence Committee formally requested that the Justice Department turn over any documentary evidence, including applications, orders or warrants, by Monday, March 13. Also, in the day's briefing, ABC News""?Jonathan Karl asked White House press secretary Sean Spicer whether President Trump would apologize to President Obama if his wiretapping accusation proves to be unfounded. ""Let's not get ahead of ourselves. I think it's important to see where that goes,""?Spicer said, referring to the request from the chairman and ranking members of the House Intelligence Committee asking the Justice Department for evidence of Trump's claim. ""I don't want to prejudge their work at this time.""?Karl then pressed Spicer about what could happen if no evidence surfaces. Spicer said he's ""not going to get into a series of hypotheticals""?but that once the investigation is completed, ""we'll respond appropriately.""? Counselor to the president Kellyanne Conway discussed surveillance with The Record of New Jersey, causing a stir when she included an unusual item in a list of appliances that could be co-opted into listening devices. ""What I can say is there are many ways to surveil each other,""?Conway said. ""You can surveil someone through their phones, certainly through their television sets -- any number of ways -- and microwaves that turn into cameras, et cetera."" Conway later said her remarks were taken out of context and told CNN that she doesn't ""believe people are using the microwave to spy on the Trump campaign,"" and Spicer would say that the comment was ""made in jest."" Spicer launched a defense of Trump's tweets centered around punctuation, calling attention, in the day's press briefing, to the quotation marks employed by the president. ""I think if you look at the president's tweet, he said very clearly ""wiretapping""?in quotes,"" Spicer said, indicating that Trump meant the word as a reference to overall reconnaissance. ""The president was very clear in his tweet that it was wiretapping, that that spans a whole host of surveillance types of options,"" Spicer said. Two out of Trump's four tweets on the subject do not include the quotation marks, however, and he specifically refers to his ""phones"" in one. Spicer also cautioned the media about reading too literally into the claim of Obama's involvement: ""He doesn""t really think that President Obama went up and tapped his phone personally.""?The Department of Justice also asked for more time in meeting the House Intelligence Committee's request for evidence of Trump's wiretapping claim. The committee set the new deadline for before their March 20 hearing on Russia's alleged interference in the U.S. election. In light of the DOJ's being given an additional week to gather evidence on surveillance, reporters continue to ask Spicer whether Trump feels assured in his position. ""I think he feels very confident it that will ultimately come to this -- will vindicate him,"" Spicer said during the press briefing. The House Intelligence Committee leaders announced they didn""t find any evidence that Trump's Manhattan office was wiretapped by Obama. ""We don't have any evidence that that took place. ... I don't think there was an actual tap of Trump Tower,""?House Intelligence Committee chairman Devin Nunes, R-Calif., said during a Capitol Hill news conference alongside Democratic ranking member Rep. Adam Schiff of California. Nunes also said it depends on whether you interpret Trump's tweets literally. ""I think the challenge here is that President Obama wouldn't physically go over and wiretap Trump Tower,""?Nunes said. "" now you have to decide ... are you going to take the tweets literally? And if you are, then clearly the president was wrong.""?Nunes continued, ""But if you're not going to take the tweets literally, and if there's a concern that the president has about other people, other surveillance activities looking at him or his associates, either appropriately or inappropriately, we want to find that out.""?In an interview with Fox News that aired Wednesday night, Trump commented for the first time on the wiretapping allegations. Trump explained that his claims originated from ""reading about things""?and news reports. He pointed to a New York Times article and a Fox News segment, though neither reports that Obama wiretapped Trump Tower. When asked why he didn""t reach out to intelligence agencies to verify his claims, Trump said he didn't ""want to do anything that's going to violate any strength of an agency."" He added, ""I think you're going to find some very interesting items coming to the forefront over the next two weeks.""? Senate Intelligence Committee leaders -- Chairman Richard Burr, R-N.C., and Vice Chairman Mark Warner, D-Va. -- released a joint statement: ""Based on the information available to us, we see no indications that Trump Tower was the subject of surveillance by any element of the United States government either before or after Election Day 2016.""?Spicer defended Trump during the press briefing and said the congressional intelligence committees""?statements were not based on investigative work. ""�They're not findings. There's a statement out today they have not begun this,"" Spicer said. ""Two days ago the Department of Justice asked for an additional week. The statement clearly says at this time that they don't believe that.""?Spicer also launched into a lengthy spiel of citing various news reports that inspired Trump's March 4 tweets, and included Fox News commentator Andrew Napolitano's suggestion that Obama used Britain's Government Communications Headquarters to spy on Trump. ""�The bipartisan leaders of the Intelligence Committee would not have made the statement they made without having been fully briefed by the appropriate authorities,""?Sen. Warner's spokeswoman fired back at Spicer in a statement after the press briefing. The Justice Department announced it was complying with the Intelligence and Justice Committees' requests for information on surveillance efforts, but did not provide detail on the extent of the information. Word of the Justice Department's actions came just as Trump was holding a joint news conference German Chancellor Angela Merkel in which he was asked by German media about the claims. ""As far as wiretapping, I guess, by this past administration, at least we have something in common, perhaps,"" Trump said of Merkel, referring to the revelation first reported in 2013 by a German news magazine that a document apparently from a U.S. National Security Agency database indicated Merkel's cellphone was first listed as a target in 2002.", -2839,2017/3/17,http://abcnews.go.com/Politics/justice-department-complying-congressional-surveillance-probe/story?id=46207431,Justice Department complying with congressional surveillance probe,,"The U.S. Department of Justice today announced that it has ""complied"" with a request for information related to unsubstantiated accusations made by President Trump that he was ""wiretapped"" during the 2016 presidential election. The information was solicited by the House and Senate Intelligence and Judiciary Committees in the aftermath of the allegations, first made via Twitter, almost two weeks ago. Justice Department officials went to Capitol Hill today to respond to questions about possible surveillance during the 2016 election. The DOJ officials briefed the chairmen and ranking members of four key committees and came with classified documents for them to review in a secure setting. The four committees were Senate and House Intelligence, and Senate and House Judiciary. One staff member of each committee was also present at this secure location at the Capitol. Rep. Devin Nunes, R-Calif., chairman of the House Permanent Select Committee on Intelligence, issued a statement later in the day, saying, ""the committee is satisfied that the Department of Justice has fully complied with our request for information from our March 8 letter on possible surveillance related to Donald Trump or his associates."" He added: ""The committee still has not received information requested from the CIA and FBI in our March 15 letter that is necessary to determine whether information collected on U.S. persons was mishandled and leaked. However, the NSA has partially met our request and has committed to fully meet our request by the end of next week.""?The Justice Department did not provide details on the extent of the information it provided to the committees. The White House has yet to provide any evidence for the president's statements, but has since claimed he was referring to surveillance in general terms and not specifically to the tapping of phones. Shortly after Trump tweeted the accusations, FBI Director James Comey privately asked the Justice Department to refute the story, government sources familiar with Comey's thinking have confirmed to ABC News. Comey, himself, has not publicly commented on the matter. ", -2840,2017/3/17,http://abcnews.go.com/International/police-operation-underway-paris-orly-airport/story?id=46219920,"Man killed at Paris' Orly airport after attempting to grab soldier's rifle, passengers evacuated",,"Paris' Orly Airport was partially evacuated Saturday morning after a man was fatally shot by French security forces after he tried to seize a rifle from a soldier guarding the airport, France's Ministry of the Interior has confirmed. ""This morning at 8:30 at Orly airport, an individual tried to attack French soldiers in order to take the weapon of one of the soldier -- he was not able to do it and was shot and killed by soldiers,"" Minister of the Interior Bruno Le Roux said. France's Minister of Defense, Jean-Yves Le Drian, further explained, ""Three soldiers patrolling at Orly airport this morning were attacked by an individual ... (2 men, 1 woman). Woman was attacked by individual. Individual tried to take her weapon. She was able to hold to her weapon. 2 other soldiers shot at individual to protect her. I congratulate them."" [#Orly]Op��ration de Police toujours en cours. Aucune victime à d��plorer.Police fortement mobilis��e. pic.twitter.com/LlQLDKE2WQ The soldier is part of the Sentinel special force, deployed around France to defend sensitive sites from terror attacks. Le Roux said the assailant was involved in a car-jacking earlier in the day, and had also shot at a police officer at a traffic stop. ""Few minutes earlier, same individual was in Vitry where he made a car jacking,"" Le Roux said. ""We can also link his identity to a police check that occurred this morning at 6 :50 in northern suburbs of Paris. During this police check, individual shot with a gun at a police officer who was slightly injured. While officials have not identified the assailant, Le Roux said ""his identity his known, he is known to French police, known to intelligence services. Investigation needs to determine exactly what happened."" No one was hurt in the incident. A government official said about 3,000 people were evacuated from the international airport. Air traffic at the airport's two commercial passenger terminals was suspended until further notice, and flights were being diverted to Paris' other international airport, Charles de Gaulle Airport. #Orly #airport Air traffic suspended for Orly South & West terminal. Do not come to the airport. Ongoing Police operation #en France's National Police and the Paris airport authority initially tweeted that a ""security operation"" was currently underway at the international airport. ""Orly airport On going special operations by the Police. Please follow Their instructions,"" the authority that manages the airport tweeted at 9:19 a.m. local time. ABC News' Devin Villacis, Christopher Donato, Paul Pradier, Alexandra Faul and Dan Rostas contributed to this report. The Associated Press also contributed to this report.", -2841,2017/3/17,http://abcnews.go.com/International/wireStory/north-korea-south-china-sea-tillerson-agenda-beijing-46218877,"North Korea, South China Sea on Tillerson agenda in Beijing",,"U.S. Secretary of State Rex Tillerson arrived in Beijing on Saturday for his first face-to-face talks with Chinese leaders expected to focus on North Korea's nuclear program, trade and South China Sea territorial disputes. Tillerson's visit followed his remarks in South Korea on Friday in which he warned that pre-emptive military action against North Korea might be necessary if the threat from their weapons program reaches a level ""that we believe requires action."" China, the North's biggest source of diplomatic support and economic assistance, has yet to respond to his remarks, although Beijing has called repeatedly for steps to reduce tensions. Chinese Foreign Minister Wang Yi, with whom Tillerson met Saturday afternoon, warned last week that the North and Washington and Seoul were like ""two accelerating trains"" headed at each other, with neither side willing to give way. ""The question is: Are the two sides really ready for a head-on collision?"" Wang told reporters. ""Our priority now is to flash the red light and apply the brakes on both trains."" Wang said North Korea could suspend its nuclear and missile activities in exchange for a halt in joint U.S.-South Korea military drills, a proposal swiftly shot down by U.S. Ambassador to the United Nations, Nikki Haley, who said Washington has to see ""some sort of positive action"" from North Korea before it can take leader Kim Jong Un seriously. Tillerson's comments in Seoul that ""all of the options are on the table,"" including possible military action, are likely to be deeply disconcerting to Beijing, which fears that a collapse of Kim's regime would send waves of refugees into northeastern China and land South Korean and American forces on its border. China has agreed reluctantly to U.N. Security Council resolutions sanctioning North Korea, while calling for renewed dialogue under the Beijing-sponsored six-nation format that broke down in 2009. In a further sign of its frustration with Pyongyang, China last month banned imports of North Korean coal for the rest of the year, potentially depriving Kim's regime of a key source of foreign currency. Past U.S. administrations have considered military force because of North Korea's development of nuclear weapons and ballistic missile to deliver them, but rarely has that option been expressed so explicitly as by Tillerson. North Korea has accelerated its weapons development, violating multiple Security Council resolutions without being deterred by sanctions. The North conducted two nuclear test explosions and 24 ballistic missile tests last year. Experts say it could have a nuclear-tipped missile capable of reaching the U.S. within a few years. China has stridently opposed the deployment of a U.S. missile defense system to South Korea, saying its X-band radar can peer deep into China to monitor flights and rocket launches. The U.S. says it's a system focused on North Korea. China sees it as a threat to its own security. Tillerson's visit to Beijing is the final stop on his three-nation swing through Northeast Asia, which began in Japan. State Department officials have described it as a ""listening tour"" as the administration seeks a coherent North Korea policy, well-coordinated with its Asian partners. Tillerson said Saturday that the U.S. wanted positive ties based on ""non-confrontation, no conflict and mutual respect."" He is expected to discuss with China its claim to virtually the entire South China Sea, including its building of islands atop coral reefs, complete with airstrips and military installations. During his confirmation hearings in January, Tillerson compared China's island-building and deployment of military assets to Russia's 2014 annexation of Crimea, and suggesting China's access to the island should not be allowed. While President Donald Trump during his campaign pledged to slap 45 percent tariffs on imports from China and label the country a currency manipulator, there has been little sign of his doing either. His pick for U.S. trade representative, Robert Lighthizer, has said he would use a ""multi-faceted approach"" to cracking down on Chinese trade abuses. Tillerson's trip is also expected to highlight the Trump administration's lack of concern with human rights abroad, formerly a key element of U.S. policy toward China and a major irritant for Beijing. In a departure from past practice, Tillerson skipped the launch of an annual report on human rights last week that cited numerous abuses by China. He has also said the U.S. would not continue participating in the U.N. Human Rights Council unless it undergoes ""considerable reform.""", -2842,2017/3/18,http://abcnews.go.com/US/accused-white-house-fence-jumper-grounds-15-minutes/story?id=46207395,Accused White House fence jumper was on grounds for 16 minutes: Secret Service,,"The intruder who scaled a White House fence last week was on the grounds for approximately 16 minutes before he was caught, the Secret Service said today. House Oversight Committee Chairman Jason Chaffetz said in a letter to Secret Service Acting Director William Callahan Friday that the committee has received allegations that the accused fence jumper, Jonathan Tuan-Anh Tran, 26, of Milpitas, California, ""may have triggered alarms the USSS ignored [and] may have moved around on the White House grounds undetected for a considerable amount of time."" He also stated that the intruder ""may have attempted entry into the building.""?Chaffetz is requesting video and more information related to the matter. ""If true, these allegations raise questions about whether the agency's security protocols are adequate,"" Chaffetz wrote in the letter. In a statement Friday, the Secret Service said that the intruder was on the ground for approximately 16 minutes. After the incident, the Secret Service said that it ""immediately initiated a comprehensive investigation,"" adding that in excess of 50 interviews have been conducted thus far. According to the statement, the intruder ""breached an outer perimeter fence near the Treasury complex, near East Executive Avenue"" at 11:21 p.m. The individual then ""proceeded within the secure perimeter and scaled an 8-foot vehicle gate"" and went on to climb over a 3-and-a-half foot fence near the southeast corner of the East Wing of the White House grounds, the statement said. The individual was ultimately apprehended on the grounds at 11:38 p.m. without incident, according to the statement. ""The Secret Service can confirm that at no time did the individual gain entry into the White House,"" the statement added. ", -2843,2017/3/18,http://abcnews.go.com/Weird/wireStory/court-decision-dairy-drivers-lawsuit-hung-comma-46204469,Lack of comma sense ignites debate after ruling in $10M suit,,"It all came down to a missing comma, and not just any one. And it's reignited a longstanding debate over whether the punctuation is necessary. A federal appeals court decided this week to keep alive a lawsuit by dairy drivers seeking more than $10 million in an overtime pay dispute. It concerned Maine's overtime law, which doesn't apply to the ""canning, processing, preserving, freezing, drying, marketing, storing, packing for shipment or distribution of"" foods. There's no Oxford, or serial, comma in the ""packing for shipment or distribution"" part. The drivers said the words referred to the single activity of packing, which the drivers don't do. The defendant, Oakhurst Dairy, said the words referenced two different activities and drivers fall within the exemption. Circuit Judge David Barron wrote: ""For want of a comma, we have this case."" The court sided with the drivers. ""Comma sense ain't so common,"" Jeffrey Neil Young, an attorney for the drivers, said Friday. David Webbert, another attorney for the drivers, said the ""fight for overtime rights has been vindicated"" by what he called a ""landmark"" ruling made possible by an ambiguous exemption and a lack of a punctuation mark. ""Our argument was that it was a train wreck of a sentence,"" Webbert said. ""The tie goes to the workers."" Oakhurst representatives said they plan to keep fighting the suit and declined to comment on the comma kerfuffle. A trial could follow. The company is well known in Maine for its line of milks, creamers and other dairy products. Since the ruling, the internet has become a battlefield for defense ""?and derision ""?of the comma. News website Vox tweeted that the ""Oxford comma is the world's most controversial punctuation mark."" Indeed, use of the Oxford comma has divided people for years. FiveThirtyEight and SurveyMonkey Audience polled more than 1,000 people about it in 2014 and found that more than half favored the extra comma. The Associated Press Stylebook advises against the use of the Oxford comma, except when it's needed for clarity. In this case, someone following AP's guidance would include a comma if the packing and distribution were intended to be separate activities. Other authorities are more enthusiastic about the serial comma ""?notably Oxford University Press, from which the mark draws its popular name. The Oxford style guide, published as New Hart's Rules, states that it is Oxford style ""to retain or impose this last comma consistently.""", -2844,2017/3/18,http://abcnews.go.com/Politics/wireStory/running-president-states-tax-returns-public-46205463,Running for president? Some states want tax returns public,,"Lawmakers in nearly half the states want to add a requirement for presidential candidates: Show us your tax returns. The issue has dogged President Donald Trump, who became the first presidential candidate in modern times to refuse to make his returns public. It flared anew this week after MSNBC said it had obtained two pages of Trump's 2005 federal return, prompting the administration to release the documents preemptively. State lawmakers around the country, mostly Democrats, want to ensure transparency in future presidential campaigns so voters can evaluate candidates' sources of income and any possible conflicts of interest. Most of the bills would require presidential contenders to release copies of their returns as a condition for appearing on that state's ballot, although it's unclear whether they could pass constitutional muster. The aim is to find out about potential conflicts that candidates might have before they take office, said Hawaii Rep. Chris Lee, a Democrat who introduced one of the Hawaii bills. ""With what we've seen so far with this administration, there are clear conflicts with respect to whether or not parts of the president's business empire are directly benefiting from federal contracts to house Secret Service at his own hotels, for example, or pressuring foreign dignitaries or other corporations indirectly to patronize the businesses that the president or his children run,"" Lee said. ""And the real question is, What else don't we know?"" Hawaii was the first state to have votes on the bills before the full Legislature. The Democratically controlled House and Senate recently passed separate but largely similar measures, which would prevent the state's delegates to the Electoral College from voting for candidates who withheld their tax forms. Lawmakers are likely to send just one of those to Hawaii Gov. David Ige, a Democrat who expressed concerns about whether the proposed changes are constitutional. He said he does not think the state can place limits on the presidential election that are inconsistent with how the election is conducted around the country. Some legal experts raised similar flags, saying states do not have the power to create additional qualifications for the office of the president. That's up to the U.S. Constitution. The U.S. Supreme Court has held that states and the federal government cannot add to the qualifications of senators and congressional representatives outlined in the Constitution. Some legal experts said that guidance likely would extend to the office of the president. ""I think a requirement of revealing one's tax returns would be regarded as an additional qualification,"" said Michael McConnell, a professor at Stanford Law School. ""And then there's the tax law problem, because federal law guarantees the confidentiality of tax returns. And I think that law would pre-empt any state law requiring someone to divulge their returns."" But Richard Hasen, a law professor at the University of California, Irvine, said the Constitution has conflicting provisions. ""The question is whether a law that would deprive a presidential candidate of ballot access on the basis of a failure to provide a tax return would be creating an unconstitutional additional qualification, or whether it would be permissible within the state's power to set the rules for presidential elections,"" Hasen said. ""Nobody's tried it before."" Trump has refused to make his tax returns public, breaking a decades-long tradition among presidential candidates. He initially promised to do so but then claimed he was under audit by the Internal Revenue Service and said his attorneys had advised against it. Experts and IRS officials said such audits do not prohibit taxpayers from releasing their own returns. Trump's full tax returns would contain key information, including his sources of income, how much he earned from his assets and what strategies he used to reduce his tax bill. Presidential tax return legislation has been introduced in at least 24 states, according to the National Conference of State Legislatures. Most were introduced by Democrats, although bills in Kansas and Minnesota were introduced by Republicans. New Jersey's Democratic legislature approved a presidential tax return bill on Thursday. Its prospects are uncertain once it lands on the desk of Republican Gov. Chris Christie, a Trump supporter. New Jersey Republicans criticized the measure as a stunt. ""This is a doozy,"" GOP Assemblyman Jay Webber said. ""This is both transparently political and blatantly unconstitutional."" While bills in Democratic-leaning states such as Maryland and Vermont have had legislative hearings, those introduced in Republican-controlled statehouses such as Arizona, Georgia, Michigan, Minnesota and Pennsylvania are stalling. ""I suspect that these bills will be very similar to the birth certificate legislation introduced after President Obama's election ""?political statement bills that likely aren't constitutionally sound or likely to be signed into law,"" said Daniel Diorio, senior policy specialist at the National Conference of State Legislatures. ""If one were to become law, I'm sure it would be challenged immediately."" ""��?Associated Press writers Bob Christie in Phoenix; Michael Catalini in Trenton, New Jersey; Jonathan J. Cooper in Sacramento, California; Cory Dawson in Montpelier, Vermont; David Eggert in Lansing, Michigan; Kathleen Foody in Atlanta; Marc Levy in Harrisburg, Pennsylvania; Kyle Potter in St. Paul, Minnesota; and Brian Witte in Annapolis, Maryland, contributed to this report. ""?Follow Cathy Bussewitz on Twitter at https://twitter.com/cbussewitz", -2845,2017/3/18,http://abcnews.go.com/Lifestyle/wireStory/cold-weather-kills-cherry-blossom-blooms-dc-46210817,Cold weather kills many cherry blossom blooms in DC,,"Cold weather has killed half of the blossoms on Washington's famous cherry trees just as they were reaching peak bloom, park service officials said Friday. The blooming of the trees is a big tourist draw and is closely watched as a sign of spring in the nation's capital ""?so much so that National Park Service officials held a news conference Friday to discuss the weather's impact. Gay Vietzke, superintendent of the National Mall and Memorial Parks, said there will still be a ""brilliant display of the white and pink blooms,"" and that the Yoshino cherry trees will be just as ""spectacular as ever."" That said, visitors who come every year will notice a slight difference after the ""wild weather roller coaster"" of the past few weeks, which delivered snow after several warm days, Vietzke said. ""We do anticipate that there will be some fewer blossoms than normal and the color, therefore, may not be quite as dense as we've seen in past years around the Tidal Basin,"" Vietzke said, describing the area where the Yoshino cherry trees are clustered. It wasn't the snow early in the week that really impacted the trees, but the cold. Park Service spokesman Mike Litterst had previously said that if the temperature got down to 24 degrees there could be a 90 percent loss of the blossoms that were expected to be at their peak between March 19 and 22. Peak bloom is defined as the day when 70 percent of the Yoshino cherry trees around the Tidal Basin are blossoming. But that won't happen this year because half of those blossoms are already gone as a result of the cold. National Weather Service meteorologist Kevin Witt says area temperatures dropped to 26 on Tuesday, 22 on Wednesday and 24 on Thursday. The cold weather did not do any long-term damage to the Yoshino trees, but Litterst said Friday that it killed blooms at the fifth of six stages of blooming ""?the so-called ""puffy white"" stage. Blooms in earlier stages survived, Litterst said, and should reach their own more modest peak sometime next weekend. ""?Follow Jessica Gresko on Twitter at http://twitter.com/jessicagresko. Her work can be found at http://bigstory.ap.org/content/jessica-gresko.", -2846,2017/3/18,http://abcnews.go.com/US/death-toll-rises-us-airstrike-syrian-village-observer/story?id=46198902,"Death toll rises after US airstrike in Syrian village, observer groups say",,"U.S. warplanes struck a mosque compound in northwestern Syria Thursday, killing dozens of people, observer groups and eyewitnesses said today. U.S. military officials confirmed the airstrike but said the target was a large gathering of al-Qaeda militants meeting in a building that they said was across the street from the mosque. At least 49 people were killed and more than 100 injured in the attack in the rebel-held village of al-Jina in Aleppo's countryside, according to the U.K.-based Syrian Observatory for Human Rights. The targeted building was a center for Islam lectures that belongs to the mosque and is part of the same compound, the Syrian Observatory for Human Rights and eyewitnesses said. ""If fighters were among those killed, they were attending a religious lecture, not fighting or preparing to fight,""?Rami Abdulrahman, director of the Syrian Observatory for Human Rights, told ABC News. The airstrike happened at 7 p.m. local time and was carried out by manned and unmanned aircraft targeting an al-Qaeda meeting, Pentagon spokesman Capt. Jeff Davis said at a press briefing today. He denied that the targeted building was a mosque, but said he had no information on whether the building was affiliated with a mosque. Ahmad Qawwaf, a resident of al-Jina and an English teacher, said he was having dinner at a friend's house when he heard the sound of planes and then a loud explosion Thursday evening, about five minutes before the nighttime prayer was set to begin. When he left, he said, he saw that the building for religious lectures affiliated with the mosque was hit. ""I saw ambulances and people covered in dust. And there were four bodies lying in the street,""?Qawwaf told ABC News via a messaging app in Arabic. ""the bodies were maimed ""?burns on the faces and the limbs.""?He said he visited the site again today and that rescue workers were still on the scene, trying to pull more people from the rubble. The White Helmets in Aleppo, a volunteer civil defense organization, has released videos of rescues after the airstrike. ""It was the mosque that was hit,"" media activist Darwish el-Saleh told ABC News. He is from a neighboring village and visited the mosque in al-Jina after the attack. ""The damage was overwhelming. There was a hole in the ground and bodies were filling the streets,"" he said, adding that he counted about 30 bodies Thursday. Eric Pahon, a Pentagon spokesman, described the building as a ""partially constructed community meeting hall""?that intelligence indicated was a gathering place for al-Qaeda to ""educate and indoctrinate al-Qaeda fighters.""?""Initial assessments based upon post-strike analysis do not indicate civilian casualties,""?Pahon said. ""We take all allegations of civilian casualties seriously and will investigate any credible allegations we receive.""?Even if the mosque wasn't the target, it could still have suffered damage because the buildings are so close to each other, said Chris Woods, director of Airwars, a nonprofit that tracks international airstrikes in Iraq and Syria. ""We are certainly not saying that the coalition deliberately targeted the mosque,""?Woods told ABC News. ""But based on all the evidence we'r seeing from the ground, videos, photographs and White Helmets testimony, the mosque was very heavily damaged last night and a significant number of people died.""?U.S. airstrikes in Syria mostly target ISIS, but the U.S. military has also launched a campaign against al-Qaeda in Syria. Thursday's attack comes as the number of civilian casualties from U.S.-led coalition airstrikes against ISIS is growing, according to Airwars. Since President Trump's inauguration Jan. 20 through March 15, Airwars tracked 173 separate alleged incidents attributed to the coalition in which more than 1,000 civilians allegedly have died in Iraq and Syria. ""We'r seeing a fresh rise in civilian casualties,""?Woods said. ""Alleged and likely civilian deaths were already going up under the last time of Obama, but since Trump has come in We're seen a new jump.""?For the second month in a row, U.S. airstrikes have reportedly killed more civilians than Russian strikes, Airwars""?data for the month of February shows. The battle against ISIS is at a fierce stage, but that alone does not explain the rise in alleged civilian casualties, Woods said. ""President Trump has very specifically instructed the Pentagon to come up with a plan to defeat ISIS that really restricts protection for civilians,""?he said. ABC News' Luis Martinez contributed to this report.", -2847,2017/3/17,http://www.cnn.com/2017/03/17/politics/donald-trump-wiretap-obama/index.html,Why Trump just can't (and probably won't) quit the wiretap story,"Washington (CNN)For nearly two weeks now, President Donald Trump and his aides have floated a conspiracy theory involving President Barack Obama wiretapping then-candidate Trump's phone lines in his Manhattan office building.","Even now, as bipartisan agreement has emerged that no such thing happened, Trump has dug in, leaving Trump aides and allies fumbling for excuses and explanations -- like that spying microwaves are apparently a thing, according to White House counselor Kellyanne Conway. Standing next to German Chancellor Angela Merkel at a Friday news conference, Trump showed that he was not ready to quit the wiretapping story, giving it another boost, even if it meant embarrassing a world leader. Many people are saying -- that Trump drives conspiracies and gossip ""At least we have something in common, perhaps,"" Trump said, gesturing to Merkel, whose phone was once tapped by the National Security Agency. Trump's embrace of conspiracy theories is, of course, not new. He launched a kind of trial run for the White House in 2011 by embracing birtherism, laying the groundwork for his successful 2016 bid by aligning himself with the far right, talk radio wing of the GOP. Long after most had given up speculating about Obama's birthplace -- and years after Obama released his birth certificate -- Trump clung to the racially charged conspiracy theory, insisting that there were still more unanswered questions. It took him five years to finally let it go. Now, it seems, Trump may have landed on a conspiracy theory that has equal staying power. In fact, the contours of his recent Obama fixation have much in common with birtherism. With his wiretapping claims, Trump once again positions himself as the great unmasker of Obama, a fraudulent figure who isn't who he says he is -- or so the theory goes. For Trump's base, Obama is the ready-made villain, now recast as the embodiment of the ""deep state."" But with Congress, the press, (even Fox News hosts), and intelligence agencies all casting doubts on his claims, Trump is a man on an island, a familiar and comfortable place. As with birtherism, it's Trump against almost everybody, a vantage point that allows him to constantly be the embattled, populist outsider, even as he sits in the White House. Justice Department provides wiretap documents to Congress Key to his birtherism claims were constant promises of the big reveal. Investigators had been dispatched to Hawaii, Trump claimed. Once that approach grew thin, Trump's relationship to birtherism devolved into a constant cliffhanger, which is precisely where things stand now with the wiretapping claims. Does Trump believe Obama wiretapped or spied on him more broadly at Trump Tower or anywhere? For now, Trump seems happy to tell the country what he said for five years about Obama's origins: stay tuned. Let the countdown clock 'til the big reveal begin.", -2848,2017/3/17,http://www.cnn.com/2017/03/17/politics/justice-department-wiretap-congress/index.html,Sources: DOJ report does not confirm Trump's wiretap claim,(CNN)Two government officials told CNN Friday evening that the classified report the Justice Department delivered to House and Senate investigators does not confirm President Donald Trump's allegations that President Barack Obama wiretapped him during the campaign.,"The sources, speaking on condition of anonymity, spoke with knowledge of the classified report's contents. When asked if the DOJ's documents would confirm Trump's as of yet wholly unsubstantiated allegations, House Intelligence Chairman Devin Nunes told CNN, ""I don't think so"" as he walked into a room to read the report. Ranking member Rep. Adam Schiff, a California Democrat, said he was ""absolutely confident"" the DOJ report would not back up Trump's allegation. ""There's really no question about this. The president's statements before, and his tweets since leading right up today, have no basis in fact,"" Schiff told CNN. The Justice Department declined to comment on the contents of the report, but earlier in the day a spokeswoman confirmed it had delivered the document. ""The Department of Justice has complied with the request from leaders of the House and Senate Intelligence Committees and Judiciary Committees seeking information related to surveillance during the 2016 election,"" Justice Department spokeswoman Sarah Isgur Flores said Friday. The House Committee is set to hold a hearing Monday with National Security Agency Director Mike Rogers and FBI Director James Comey. The Senate Intelligence Committee announced Friday it would hold a hearing on Russia's meddling into the US election on March 30. Nunes released a statement Friday evening confirming receipt of the report from DOJ and part of the information it requested from the NSA, which he said had committed to meet the full request by the end of next week. However, he added, ""the committee still has not received information requested from the CIA and FBI in our March 15 letter that is necessary to determine whether information collected on US persons was mishandled and leaked."" Prior to receiving the classified documents from the DOJ, both Nunes and Schiff had already stated flatly that Trump Tower was clearly not wiretapped. But Nunes has left the door open to the potential that communications between Trump's aides and others were swept up in ""incidental"" collection. RELATED: Actually, Mr. President, wiretapping doesn't cover a lot of things ""We need to figure out what happened here, there's a lot of unanswered question. I just don't want anybody jumping to any conclusion on any side of this, other than the fact that we know that Obama didn't physically wiretap Trump Tower,"" Nunes told CNN Friday. ""But everything else is still ... there's a lot of unknowns."" The bipartisan leaders of the Senate Intelligence Committee have also stated that no surveillance of Trump Tower occurred during or after the 2016 election. Republican Rep. Will Hurd, in an interview Friday evening on CNN's Erin Burnett ""OutFront,"" said that while he had not yet had a chance to read the DOJ report, he believes ""it's been pretty clear that there's no evidence to suggest"" Obama had Trump Tower wiretapped. Trump has stood by his claim, repeating the allegation again Friday while standing next to German Chancellor Angela Merkel. ""At least we have something in common, perhaps,"" Trump said Friday, motioning to Merkel, a reference to how the US National Security Agency had tapped the German Chancellor's phone in the past. RELATED: ""Wire tapping"" and 11 other words and phrases Trump has tweeted in quotes", -2849,2017/3/17,http://www.cnn.com/2017/03/18/europe/france-airport-evacuated-in-police-operation/index.html,Paris Orly Airport shooting: Man killed after grabbing soldier's gun,"Paris (CNN)A man who overpowered a soldier at Paris Orly Airport and tried to seize her gun was involved in another shooting at a traffic stop, French authorities said Saturday.","Security forces opened fire, killing him during the morning attack at the airport. The attacker was known to police and intelligence services, and was involved in a shooting at a police traffic stop north of Paris that morning, Interior Minister Bruno Le Roux said at a news conference. He fled the scene. A police officer injured in that incident is undergoing treatment, he said. At the airport, the attacker tried to tackle the soldier and grab her weapon, French Defense Minister Jean-Yves Le Drian said. He was shot dead by two of the soldier's colleagues. This was the fourth attack against security forces deployed as part of France's Operation Sentinel, he said. The national security operation was launched following the Paris terror attacks in January 2015. Le Roux praised the swift response of security forces at the airport. No one else was injured in the airport incident, interior ministry spokesman Pierre-Henry Brandet said. An investigation is underway. The airport was evacuated as an elite operations unit and bomb squad officers rushed to the scene. Local authorities said the bomb squad had finished its search for explosives. Air traffic at both Orly South and Orly West remains suspended, the president of Paris Airports Augustin de Romanet said, adding that he discouraged people from coming to the scene. The police also urged the public to avoid the airport, follow instructions and not to cross the security perimeter. With roads around the airport closed off, some travelers earlier tried to make their way to the airport on foot with their baggage. Air traffic has been suspended at the airport, with some flights rerouted to Paris Charles De Gaulle Airport. Paris Orly Airport is France's second-busiest airport, with international and domestic air traffic.", -2850,2017/3/18,http://www.cnn.com/2017/03/18/middleeast/yemen-refugee-boat-attack/index.html,Refugees killed in boat attack off Yemen's coast,"Sanaa (CNN)At least 42 refugees have been killed and dozens injured after the boat they were traveling on was fired upon off Yemen's western coast, according to the International Organization for Migration (IOM).","The boat was carrying up to 160 people when an unknown assailant attacked it early Friday, IOM spokesman Joel Millman said. At least 24 of the injured were being treated at nearby hospitals but dozens more were unaccounted for, he said. According to the IOM, witnesses have given conflicting accounts of whether a helicopter or a motorized military vessel opened fire on the boat. There has been no claim of responsibility for the attack. Civilians suffering 'disproportionately' Many of the victims were believed to have originated in Somalia, but it is not yet clear how many, the General Consul for the Somali General Consulate in Yemen Ahmed Abdi Hassan told CNN. The attack took place in a ""military area,"" he said. The UN's refugee agency (UNHCR) said Friday that the refugees were being carried across the Red Sea en route to Sudan. On Saturday, the agency's spokeswoman in Yemen, Shabia Mantoo, told CNN that 39 people were understood to have been injured, some critically. ""Those injured are receiving treatment in hospitals and are quite shaken by this traumatic event. Our staff have visited them and are providing them with necessary support,"" Mantoo said. She said the ongoing conflict in Yemen meant that medical supplies for the survivors were limited. The UNHCR was working with authorities to determine where the Somali refugees would go next, Mantoo said, with the main priority making sure they received proper treatment, both physically and psychologically. The conflict Yemen has been in the grip of civil war since 2015, when Houthi rebels -- a minority Shia group from the north of the country -- drove out the US-backed government, led by President Abdu Rabbu Mansour Hadi, and took over the capital, Sanaa. The crisis quickly escalated into a multi-sided war, which allowed al Qaeda and ISIS -- other enemies of the Houthis -- to grow stronger amid the chaos. The Houthis are backed by Iran, while a coalition led by neighboring Saudi Arabia supports of Hadi's government. ""As conditions in Yemen deteriorate as a result of the ongoing conflict and humanitarian crisis, refugees and asylum seekers are increasingly fleeing onwards, following established migratory routes, including across the Red Sea to Sudan with the intention of heading onwards to Europe. ""This tragic incident is the latest in which innocent civilians, including Yemenis, refugees, asylum seekers and migrants, continue to suffer and disproportionately bear the brunt of the conflict in Yemen,"" the UNHCR said in a statement Friday. According to the UNHCR, Yemen is hosting more than 255,000 Somali refugees. In February, the organization launched a campaign aimed at spreading awareness about the dangers of crossing the Gulf of Aden and Red Sea from the African continent to war-stricken Yemen.", -2851,2017/3/18,http://www.cnn.com/2017/03/18/asia/china-rex-tillerson-north-korea/index.html,China to US: Be 'cool-headed' on North Korea,"Hong Kong (CNN)China urged the United States to take a ""cool-headed"" approach to escalating tensions with North Korea, calling for a diplomatic solution to North Korea's nuclear and ballistic missile programs.","US Secretary of State Rex Tillerson arrived in the Chinese capital Saturday after issuing the administration's bluntest warning yet to North Korea, saying that no option was off the table -- including military action. For two hours, Tillerson met with his Chinese counterpart Wang Yi, who said the US should ""come back to the right track of a negotiated settlement."" Tillerson said that North Korean tensions had reached a ""dangerous level"" and said China had agreed to work together to make Pyongyang ""change course,"" -- though he didn't give further details. Beijing was Tillerson's final stop on his first official trip to Asia after visiting Japan and South Korea. The trip follows a string of North Korea missile launches and comes amid fears it's preparing for another nuclear test. Beijing is North Korea's only real ally and its main economic benefactor, accounting for 70% of the country's trade. US President Donald Trump has repeatedly called on Beijing to use its leverage over its unpredictable neighbor -- and on Friday again singled out China, tweeting, ""North Korea is behaving very badly. They have been 'playing' the United States for years. China has done little to help!"" On Sunday, Tillerson will meet with Chinese President Xi Jinping, who's expected to meet with Trump next month. Tillerson was expected to raise the prospect of financial penalties on companies and banks that do business in North Korea. ""The Trump administration is banking that threats of US military action in South Korea and tougher sanctions on Chinese entities will intimidate Beijing into changing its policies,"" said Ashley Townshend, a research fellow at the United States Studies Centre at the University of Sydney. On the trip, Tillerson has signaled a new approach toward North Korea, saying that Washington's policy of ""strategic patience"" had ended with efforts over the past 20 years to halt North Korea's nuclear development a failure. OPINION: The US might have a new North Korea policy Beijing irked Beijing, however, has been irked by calls that it isn't doing enough to lessen tensions in the region. Wang said China had made an ""important contribution"" to supporting US engagement with Pyongyang but stressed it was, at its core, an issue between the US and North Korea. An unbylined opinion piece in the Global Times, a state-run tabloid, Friday made a similar point. ""Washington and Seoul are trying to shift all the burden of solving the North Korean nuclear issue onto China and include China into their strategy toward Pyongyang,"" it said . ""But that way, China and North Korea will become enemies, further complicating the conflict. The North Korean nuclear issue is caused by Washington-Pyongyang confrontation, to which China has no obligation to shoulder all the responsibilities."" Wang also said that he hoped the US would examine its plans to defuse tensions, although Tillerson has already dismissed the proposal that the US should drop joint military exercises with South Korea as a show of good faith to Pyongyang. He said Friday that Washington did ""not believe that conditions are right to engage in any talks at this time."" However, on Saturday Tillerson didn't rule out negotations altogether: He said he would work with China to ""bring North Korea to a different place where we are hopeful we can begin a dialogue."" RELATED: Tillerson only allows Fox News to cover meeting at DMZ Summit preparations Tillerson is also in Beijing to iron out the details of a tentative Florida summit scheduled in April between Trump and China's President. It would be the first meeting between the two men, in what many argue is the most important bilateral relationship in the world. Despite fiery rhetoric on the campaign trail and prior to his inauguration, Trump and his administration have taken a relatively hands off approach to China so far. Tillerson's visit has the potential to set the tone for the relationship. OPINION: Why Trump should strike a deal on North Korea Trump has not followed through on campaign threats to label China a currency manipulator or impose steep tariffs on Chinese imports. He also endorsed the ""One China"" policy, which has governed relations between the US, China and Taiwan for decades, after questioning its legitimacy shortly after his election. Tillerson also will likely raise Beijing's build-up in the South China Sea. At his confirmation hearing, Tillerson suggested Beijing should be denied access to the artificial islands it's built in the disputed waters. North Korea to loom over Tillerson's first Asia trip", -2852,2017/3/18,http://www.cnn.com/2017/03/18/middleeast/syria-conflict-rebels-evacuated/index.html,"In Syrian city of Homs, an orderly evacuation of rebels",(CNN)The evacuation of a rebel enclave in the Syrian city of Homs started Saturday.,"The state-run Syrian Arab News Agency is reporting that the first batch of ""gunmen and their families"" are leaving the city's Al-Waer neighborhood. Al-Waer was the last opposition pocket in the city of Homs, and this signifies the end of another rebel enclave that has endured some of the worst bombardment and attacks. Known as ""reconciliation agreements,"" this is one of the Syrian government's local pacts that allow surrendering civilians and fighters to evacuate to other rebel-held regions. The initiatives are designed to help put an end to the country's long-running civil war and reestablish stability in what were war zones. Critics and opposition have described this as forcible displacement that is part of what they call the government's ""starve or surrender,"" where rebel-held areas are besieged and bombarded until deals like this are reached. In recent weeks, there have been reports of intensive bombardment of the area. Russian supervision The Syrian Arab Red Crescent, along with Russian and Syrian officials are supervising the Al-Waer evacuation. The Al-Waer reconciliation agreement was reached last week, state media said. Russia is an ally of Syria's Bashar al-Assad regime. The Homs Media Center, an activist group, is reporting that 2,000 residents including 400 rebel fighters have left Al-Waer and are heading to Jarablus in the Aleppo countryside. Sources with the monitoring group Syrian Observatory for Human Rights say at least 10 buses entered the neighborhood. The reconciliation agreement comes as Syria enters the seventh war of its conflict and as the capital of Damascus endured deadly attacks in recent days, one at a courthouse and another targeting Iraqi Shiite pilgrims near a historic cemetery.", -2853,2017/3/18,http://www.cnn.com/2017/03/17/politics/yahoo-hack-suspect-karim-baratov/index.html,Young email hacking suspect showed off the good life,"Ancaster, Ontario (CNN)A few years before there was Karim Baratov, the guy who parked expensive cars in his driveway and posted sketches showing the very good life -- complete with money bags, women and a swimming pool -- there was Karim Baratov, the high school student who got into a little trouble.","Baratov, who has been indicted by a US grand jury in connection with a massive hack of Yahoo information, just last month wrote on Facebook that, while a teen, he managed to make lemonade out of lemons. Baratov wrote he was suspended from high school for ""threatening to kill my ex-friend as a joke."" ""At first, I felt really upset as I have never got into trouble before,"" he wrote. ""But the time off allowed me to work on my online projects 24/7, and really move(d) my business to the next level."" Baratov's social media showed a thrill seeker finding ways to entertain himself in the posh community of Ancaster, about an hour outside of Toronto. The Kazakh native describes being able to afford a BMW 7 Series while still in high school and to pay off the mortgage on his first house. ""By the time my suspension was done, I changed my whole life plan!"" wrote Baratov, now 22. It's unclear, though, the exact nature of Baratov's online work. Amedeo DiCarlo, a Toronto attorney, referred to his client as an ""entrepreneur."" He wouldn't elaborate on the kind of work Baratov did, or how he was able to afford his lavish lifestyle. But federal prosecutors in Northern California have laid out how they believe the Canadian made at least some of his money. They say he was a hacker who worked with three other people -- including two Russian intelligence officers -- to get names, email addresses and passwords from at least 500 million Yahoo accounts. That allegedly helped them to gain access to accounts from other Internet companies, such as Google. DiCarlo maintains his client is innocent. A very public persona Baratov's Facebook and Instagram accounts have been made private since he was arrested by Canadian authorities on Wednesday. Postings on the accounts viewed before then show him posing with luxury cars, including an Aston Martin, in front of his home. The house, worth an estimated USD $700,000, is now listed for sale. Neighbors say they believe he lived there alone. His attorney concedes that Baratov ""was not a secretive person -- everything was open to the public."" There are dozens of videos detailing Baratov's love for luxury and adrenaline on his YouTube page. One shows his cerulean Lamborghini Gallardo doing donuts on a snow-covered field at a park near his home. Other videos show point-of-view shots of him speeding his luxury cars through upscale neighborhoods. 'An attack by the US government' Authorities argue the four defendants should forfeit certain belongings if they are convicted. The forfeiture allegations cite a black Mercedes and a gray Aston Martin that has a license tag reading ""MR KARIM."" The indictment, issued late last month, lists four charges against Baratov, including conspiring to commit computer fraud and abuse and aggravated identity theft. He appeared briefly in Canadian court on Friday. A bail hearing is scheduled for April 5. US authorities claim the hack was initiated in January 2014. Some of the stolen information was used to ""obtain unauthorized access to the contents of accounts at Yahoo, Google and other webmail providers, including accounts of Russian journalists, US and Russian government officials and private-sector employees of financial, transportation and other companies,"" the Justice Department said in a statement. Baratov was paid a bounty to access a target's email account at other service providers, the indictment claims. He allegedly focused on Google accounts, including of a few officials within various parts of the Russian government. DiCarlo said he is in a ""political uphill battle"" to keep Baratov from being extradited to the United States. Baratov has not been charged with any crimes in Canada. ""This is an attack by the US government. It's a challenge by the US government,"" DiCarlo told journalists after the hearing in Hamilton. A search of domains registered to a Karim Baratov yields multiple sites, including one advertising ""email hacking on demand."" The domain registrations include an Ontario area code and an email address that features aliases Baratov allegedly used, according to the indictment: ""Kay"" and ""Taloverov."" DiCarlo would not directly respond to questions about those websites, saying only, ""Everything you've heard up to now has been unfounded."" Tossing dollars to trick-or-treaters While Facebook and Instagram accounts show Baratov enjoying riches, accounts from friends and neighbors show he didn't just flaunt wealth, but shared it. One fellow auto enthusiast, who would go by only ""Dillon,"" owns an auto body shop called Autokloak that Baratov frequented. He calls Baratov ""generous."" ""He is very polite, respected everybody, paid for a lot of people's outings,"" Dillon told CNN. Silvia, who lives around the corner from Baratov and would not give her last name, said that last Halloween, her grandson had gone trick-or-treating with a group of friends to Baratov's house. The young man answered the door and threw handfuls of American dollars at the children. ""He was throwing it on the street, 'Take it, take it, get off my property, take it!'"" Silvia, 66, said. ""It was windy and money was flying. It was weird. Why would somebody give money out, like throwing money out?"" Other posts show Baratov out with friends. In one YouTube video posted to Baratov's ""Mr Karim"" account in February 2016, Baratov is seen sitting at a restaurant table, telling a friend to record, as he grabs a knife from the table, nimbly stabbing it between the fingers spread out on his left hand. ""Is this a game that you've practiced?"" the friend who is recording asks. ""No,"" he responds. They laugh as he finishes the feat without injury.", -2854,2017/3/18,http://www.cnn.com/2017/03/17/politics/manafort-ukraine/index.html,Former Trump campaign chief Paul Manafort wanted for questioning in Ukraine corruption case,"(CNN)Ukrainian prosecutors want to question Paul Manafort in connection with a corruption investigation and have made repeated requests for assistance from US authorities, CNN has learned.","Prosecutors in Kiev said they have made seven separate appeals over the past two years for help in questioning President Donald Trump's former campaign manager, including letters to FBI Director James Comey and US Justice Department officials. Ukrainian officials said the US has not responded to those requests. Under a ""mutual legal assistance"" treaty, the two countries have agreed to regularly assist each other in law enforcement efforts, such as gathering statements and other evidence for prosecutions. US authorities confirmed to CNN that the requests were received but declined further comment. Manafort served as Trump's campaign chief until being pushed out in August 2016. The official requests from a special prosecution unit in Kiev started in December 2014, and involve a corruption case targeting Ukraine's former Justice Minister Oleksandr Lavrynovych. Manafort has not been charged with a crime. Prosecutors want him to testify, Ukraine's prosecutor for special investigations Serhiy Gorbatyuk said. Prosecutors allege that Lavrynovych illegally diverted more than $1 million in government funds to a prominent New York City law firm ""?Skadden, Arps, Slate, Meagher & Flom. Lavrynovych had hired Skadden to review the 2011 jailing of former Ukrainian Prime Minister Yulia Tymoshenko, who had received a seven-year sentence for allegedly harming Ukraine's interests in gas supply negotiations with Russia. Tymoshenko was the main political rival of the Kremlin-backed President Viktor Yanukovych, whom Manafort advised until Yanukovych was deposed in 2014. Tymoshenko was released from jail at the same time that Yanukovych was ousted. Many saw her sentencing as politically motivated by the pro-Russian government. In 2012, as a result of the sentencing, Ukraine faced the possibility of an unfavorable ruling from the European Court of Human Rights, and US lawmakers were considering sanctions. In response to the deteriorating international climate, Ukrainian prosecutors say, Manafort drafted a public relations strategy that included hiring Skadden to review the Tymoshenko case and show the conviction had a sound legal basis. But a spokeswoman for the US State Department in 2012 said the report Skadden eventually came out with ""was incomplete and doesn't give an accurate picture."" Prosecutors told CNN that Ukraine's Justice Ministry had signed an agreement with Skadden to provide legal services for the equivalent of only $12,000, the legal limit above which it would have been necessary to hold a public competition to award a government contracting job. Prosecutors provided CNN with the details of a bank transfer that took place on May 30, 2013 to a Citibank account allegedly belonging to Skadden from a Justice Ministry bank account. The document shows the ministry wired Skadden more than $1 million -- $1,075,381.41. It is this payment that prosecutors charge was a misappropriation of government funds. ""We believe they wanted to avoid the time consuming competition they would have had to organize to hire the law firm legally, so they drew up the undervalued contract and probably arranged to pay the real fee in cash,"" Gorbatyuk told CNN, speaking in Russian. However, when Tymoshenko's legal team publicly pointed out that the government could not have secured Skadden's services for just $12,000, Skadden asked Ukrainian officials to draw up a second contract that reflected a more realistic fee, prosecutors allege. Asked to comment on its involvement in the matter, Skadden released a statement to CNN: ""We have been and will continue cooperating with appropriate requests."" Members of Gorbatyuk's office showed CNN a record of seven separate occasions when they asked the US authorities for help. The first letter was sent in December 2014 to the US Justice Department's Office of International Affairs, and was a request to question Skadden partner Gregory Craig, who also served as a White House counsel in the Obama administration. In December 2015, Gorbatyuk's office sent another letter to the Department of Justice asking to question Manafort. The trigger for the request was two emails prosecutors found. The contents of those emails were provided to CNN: One between Craig and Manafort where Craig asked Manafort to help secure paperwork from Ukraine needed for Skadden's report, and another between a Skadden employee and a Ukrainian official that mentioned Manafort's presence at a meeting with the Justice Minister. Prosecutors also showed CNN documentation they sent to the DOJ in which they told the US authorities that their investigation had ""established that the well--known American political strategist Paul Manafort is implicated in the relationship between the Skadden Arps. firm and the Justice Ministry of Ukraine."" Of Manafort, the letter said he ""was likely the person who advised representatives of the former Government of Ukraine to hire the law firm and was present during talks about this issue."" Manafort declined to provide comment for this story. The final letter was dated September 2016: Ukraine's Prosecutor General, the equivalent of a US Attorney General, sent a letter directly to FBI director James Comey asking for clarification for why the US authorities would not help. Related: Ukraine lawyer seeks probe of alleged hacked texts of Manafort's daughter Some of the attempts to question Manafort coincided with a time period when the FBI grappled with the issue of whether to subpoena Manafort in its separate investigation surrounding his business dealings in Ukraine, last summer. Comey has faced criticism for taking a different approach on legal matters relating to the Hillary Clinton campaign after he controversially sent a letter to Congress announcing the FBI's renewed interest in her use of a personal server during her time as Secretary of State just 11 days before the election. Manafort currently faces an FBI investigation over millions of dollars' worth of payments he allegedly received while working for Yanukovych. Manafort has denied those claims.", -2855,2017/3/18,http://www.huffingtonpost.com/2017/03/18/jimmy-fallon-trump-st-patricks-day_n_15444836.html,Jimmy Fallon Mocks Team Trump's St. Patrick's Day Celebrations,"The ""Tonight Show"" host suggested just how the White House may have marked the day.","Jimmy Fallon imagined how members of President Donald Trump's administration celebrated St. Patrick's Day on Friday. The-""tonight Show""?lightheartedly suggested what Trump's adviser Kellyanne Conway and Attorney General Jeff Sessions ""?among others ""?did to mark the day.-Spoiler: Conway's commemoration involved a microwave. Find out in the clip above. Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -2856,2017/3/18,http://www.huffingtonpost.com/2017/03/18/photoshop-battle-donald-trump-angela-merkel_n_15444222.html,Redditors Gleefully Spoof Donald Trump's Awkward Photo-Op With Angela Merkel,Let Photoshop battle commence!,"President Donald Trump may have-ignored requests to shake hands with Angela Merkel in the Oval Office on Friday. But a photograph of Trump staring down as the German chancellor looked on provided comic relief for Redditors, who manipulated the image (below)-in all kinds of hilarious ways. Via a fierce-Photoshop battle, they reimagined Merkel scalding a naughty schoolboy Trump and the duo playing with lightsabers. Trump's adviser Kellyanne Conway also made a very subtle appearance. Here are some of the best posts so far: Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -2857,2017/3/18,http://www.huffingtonpost.com/2017/03/18/stephen-colbert-donald-trump-irish-proverbs_n_15442434.html,Stephen Colbert Hilariously Imagines Donald Trump's Other 'Irish' Proverbs,Tremendous!,"Stephen Colbert gave Donald Trump a helping hand with his proverbs on Friday. After the president hailed America's Irish heritage by quoting what probably wasn""t actually an Irish saying, the ""Late Show""?host suggested a bunch of other (fake) Irish phrases for the commander in chief to use in future. Who knew that ""You better call Becky with the good hair""?originally emanated from the Emerald Isle? Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2858,2017/3/18,http://www.huffingtonpost.com/2017/03/18/jake-tapper-bill-maher-donald-trump_n_15442202.html,"Jake Tapper Scorches Donald Trump: ""I""ve Never Seen This Level Of Falsehood""?,""It's conspiracy theories"," based on nothing.""""""","Jake Tapper-is done with President Donald Trump's lies. Speaking on Friday's ""real Time with Bill Maher,""?the CNN anchor acknowledged that politicians lying ""wasn""t invented on January 20""?following Trump's inauguration. But he said that in all his years of reporting on politics, he ""never really seen this level of falsehood, just quantitatively.""?Citing various untruths that Trump has told, such as his baseless claim that millions of people voted illegally-in the 2016 election,-Tapper said what made them worse was they were ""Conspiracy theories based on nothing""?that even had ""members of his own party distancing themselves from him.""?Tapper also criticized Trump for waging war on the media.-""We'r all ""Fake news,""?he said. ""All of us except for ""lox & Friends.""? Check out the full interview above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2859,2017/3/18,http://www.huffingtonpost.com/2017/03/18/bill-maher-donald-trump-wiretap-claims_n_15441788.html,Bill Maher Tears Into 'President Crazypants' Donald Trump's Proposed Budget Cuts,"""If only there was a way to get the F-35 to run on coal, it would be a perfect budget.""","Bill Maher picked apart the Trump administration's proposed budget cuts on Friday. ""It takes away all the money from scientists and teachers and human rights workers and Meals on Wheels and Muppets, and gives it to the people who really need it ""?the defense contractors,""?said the ""real Time""?host. ""If only there was a way to get the F-35 to run on coal, it would be a perfect budget,""?added Maher, before likening the way that President Donald Trump appears to be dealing with climate change to someone putting black tape over the ""Check engine""?light when their car was breaking down. Maher also took aim at the GOP's proposed replacement for Obamacare and Trump's baseless claims that former President Barack Obama wiretapped Trump Tower in the run up to the 2016 presidential election. Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -2860,2017/3/18,http://www.huffingtonpost.com/2017/03/18/santorum-trump-wiretap_n_15440054.html,Rick Santorum: Trump Is 'Hurting Himself' With Wiretap Obsession,"It's time to forget Obama and the campaign, and focus on being president, says former senator.","Donald Trump's insistence that he was wiretapped by the Obama administration, despite what the FBI-and the Senate Intelligence Committee have said, is now ""Lurting""?him, warned former Pennsylvania senator and Republican presidential candidate Rick Santorum. Santorum, who supported Trump for president and backs many of his policies, also said it's time for Trump to leave the campaign behind and act like a president. ""We'r not in an election anymore, and it's not his opponent he's throwing off,""?Santorum said of Trump during an appearance on CNN. ""I think it's him that he's throwing off.""?In ""ghis case, he has no opponent,""?Santorum said. ""And who he's hurting is not a rival, he's hurting himself, because he's now the president and it doesn""t matter whether he blames Barack Obama or not. People don""t care about Barack Obama anymore. They care about one person. They care about the president, and he's the president.""?Trump indicated yet again Friday during a press conference with German Chancellor Angela Merkel that his phones had been wiretapped. He referred to a comment by former judge Andrew Napolitano on Fox News Thursday,-who cited unnamed sources that the British spy agency GCHQ spied on Trump for former president Obama ""?which the agency called ""utterly ridiculous.""?He called Napolitano a ""lery talented legal mind.""?Napolitano is a 9/11 ""gruther""?who is skeptical that the U.S. government told the truth about the terror attack on the World Trade Center. Fox News host Shep Smith said Friday that the network could not substantiate Napolitano's claims ""?or any claims that Trump was ever under surveillance by the Obama administration. Shepard Smith just said Fox News has ""no evidence of any kind""?that Trump was surveilled ""At any time, any way."" pic.twitter.com/0pzP1WWr2t -Seconds earlier Trump said alongside Merkel that -""As far as wiretapping, I guess, by this past administration, at least we have something in common, perhaps,""?Trump said, eliciting a puzzled look from the chancellor. Trump was likely referring to information leaked by Edward Snowden four years ago that the Obama administration had listened in on Merkel's cell phone. Santorum also took a swipe Friday at Trump's reading material ""?and his dependence on the media, rather than his own experts. ""I'd like to see the president come out there and talk about what he knows, not what he's read in the paper,""?Santorum explained. ""When you'r the president of the United States, the assumption is that you have better information than what's in The National Enquirer or even The New York Times.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2861,2017/3/18,http://www.huffingtonpost.com/2017/03/17/arrest-seizure-gif-reporter-kurt-eichenwald_n_15439822.html,Man Arrested For Tweeting Seizure-Inducing GIF To Reporter With Epilepsy,Kurt Eichenwald believes he was attacked because he writes critically of Donald Trump.,"A tweet that caused a seizure has led to an FBI investigation and an arrest. It also exposed a terrifying way people with epilepsy can be attacked online. The FBI arrested John Rayne Rivello, 29, of Salisbury, Maryland, on Friday on charges of cyberstalking, the agency said in a statement released Friday. Rivello is accused of tweeting a strobing animated image to Kurt Eichenwald of Dallas, a Newsweek political reporter who has written about his epilepsy. The moving image, also known as a GIF, allegedly included the statement, ""You deserve a seizure for your post.""?When Eichenwald viewed the tweet, he suffered a seizure. Eichenwald's lawyer told The New York Times that Eichenwald was incapacitated for days, lost feeling in his hand and had trouble speaking for several weeks. Last night, for the second time, a deplorable aware I have epilepsy tweeted a strobe at me with the message ""you deserve a seizure' on it... In a December interview-on-""Good Morning America,""?Eichenwald said supporters of Donald Trump have targeted him because he has written critically of the president. On the night of the attack, Eichenwald appeared on Fox News""?""tucker Carlson Tonight""?to discuss a tweet he wrote claiming Trump wouldn""t release his medical records because he had a nervous breakdown in 1990. The next day, Eichenwald tweeted about the strobing message-and said he would take legal action against the person who sent the tweet. He told ""GMA""?that his wife captured a still image from the seizure-triggering animation. GMA shared the still version on air, which appears at 2:38 in the video below. According to the affidavit,-Rivello's Twitter account contained direct messages written by Rivello that included statements including,-""I hope this sends him into a seizure,""?""spammed this at [victim] let's see if he dies,""?and ""I know he has epilepsy,""?the Department of Justice said in the statement. Steven Lieberman, Eichenwald's attorney, compared the online attack to someone-sending a bomb or anthrax in the mail. ""It wasn""t the content of the communication that was intended to persuade somebody or make them feel badly about themselves,""?Lieberman told Newsweek. ""This was an electronic communication that was designed to have a physical effect.""?Eichenwald said Friday that more than 40 people have sent him strobing images knowing they could affect his epilepsy and trigger a seizure. He said that their ""identifying information""?was with the FBI.- After a 3 month investigation, the FBI this morning arrested the man who assaulted me using a strobe on twitter that triggered a seizure. He currently faces federal charges & is expected to also be indicted by the Dallas District Attorney on different charges in next few days. Identifying information about every person who sent me strobes after finding out about the assault is currently in the hands of the FBI. Eichenwald's case is different from other online stalking or bullying lawsuits because the tweet Eichenwald received wasn""t just sent to harm him emotionally, it was designed to target his medical condition, The New York Times pointed out in a report. The attack was also completed in a relatively simple way. Vivek Krishnamurthy, an assistant director at Harvard Law School's Cyber Clinic, told the Times that while some online attacks are aimed at affecting an electrical grid or gain control of air traffic controls, Eichenwald's attack was ""distinguishable because it is a targeted physical attack that was personal, using a plain-Jane tool.""?Meanwhile, Richard Spencer, a white nationalist who is credited with coining the term ""Alt-right,""?called Rivello a ""Lero of the meme war""?and proposed to start a legal fund for the suspect. Epilepsy is a brain disorder that causes recurring seizures which could also lead to violent muscle spasms and loss of consciousness. According to the Epilepsy Foundation in Michigan, 1 percent-of Americans suffer from the disorder. A similar cyberattack targeted a group of epilepsy patients nearly a decade ago. In 2008, the hackers posted a number of strobing images to a support message board on the Epilepsy Foundation website, triggering headaches and seizures in-""A handful""?of epilepsy patients. Eichenwald tweeted Friday that Rivello could face additional charges in Dallas. Share this slide: Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -2862,2017/3/18,http://www.huffingtonpost.com/2017/03/17/david-clarke-trump-milwaukee-mayor_n_15439392.html,"'Trump Sheriff' Threatens Mayor, Scorns Him For Getting His A** Kicked Aiding Woman","""You want some more?"" taunts conservative Wisconsin lawman David Clarke.","Milwaukee's hard-right sheriff,-David Clarke, a campaign surrogate for Donald Trump, has publicly threatened and derided the Democratic mayor for ""getting his ass kicked""?when the politician rushed to the aid of an older woman under attack. Mayor Tom Barrett was viciously beaten when he helped protect a grandmother and her year-old grandson in 2009 as they were attacked at a state fair by a disturbed man. Clarke lashed out at Barrett over the seven-year-old confrontation after the mayor complained that Clarke was often missing from his post because he's too busy boosting his career as a high-profile Trump supporter on conservative talk shows and plugging his new book.- ""the last time Tom Barrett showed up at a crime scene he got his ass kicked by a drunk, tire-iron-wielding man who beat him within inches of his life,""?Clarke ranted in a post on the official Facebook site for the Milwaukee County Sheriff's Office. ""the milquetoast mayor trying to play cop foolishly thought he could simply talk the man who beat him senseless into backing down.""?Clarke concluded ominously:-""time to crawl back into your hole, Tom, unless you want some more of this because I have some.""?Thousands of Milwaukee residents have poured into the streets to protest the controversial sheriff, who has blamed people for dying in his jails, warned that if Trump lost the election it would be time for ""pitchforks and torches""?and called Trump protesters ""radical anarchists""ho must be ""�quelled.""?He's also a major opponent of the Black Lives Matter movement, even though he is African-American. Before long, Black Lies Matter will join forces with ISIS to being down our legal constituted republic. You heard it first here. Barrett set Clarke off when he said in a TV interview earlier this week that the sheriff has a ""great gig going right now: He's fighting crime one conservative cable TV show at a time.""?He said everyone knows that Clarke ""rode his horse out of town a long time ago.""?Barrett's chief of staff told the Milwaukee Journal Sentinel that Clarke ""Crossed the line""?with his Facebook post, calling his derision of the mayor's aid during the state fair violence ""unconscionable.""?The louder-than-life sheriff, who often sports a cowboy hat, met with Trump at Trump Tower in Manhattan late last year when the then-president-elect was said to be considering him to head up the Department of Homeland Security. Supporters are now laying the groundwork for a possible run for the U.S. senate-in 2018.- Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2863,2017/3/18,http://www.huffingtonpost.com/2017/03/17/berkeley-border-wall-contractors_n_15439046.html,Berkeley Becomes First City To Divest From Border Wall Companies,The Bay Area city won't do business with government contractors that work on Donald Trump's pet project.,"Berkeley, California, has become the first U.S. city to yank investments and business dealings with any company aiming to work on President-Donald Trump's Mexican border wall. The Berkeley City Council unanimously passed a resolution-this week that divests the Bay Area city from any company that builds, designs, helps finance or does any other work to construct or maintain the $4.1 billion border wall planned by the president. Berkeley also will cease doing business with those companies. ""ourcity is one that is known for breaking down walls, not building them,""?Berkeley Mayor Jesse Arreguin said at the meeting when the resolution was passed, reported the East Bay Express. ""We will continue in that tradition regardless of what happens at the federal level.""?It wasn""t immediately clear if Berkeley holds investments in companies that will build the wall. The city will-""examine the existing companies it does business with and find ways to disengage from companies found to be participating in the construction of a wall,""?a document accompanying the resolution says. ""the city must vet companies before entering into new contracts.""?""hatred and xenophobia have once more gained currency in our country,""?the city said in a statement. ""therefore, it is our duty to uphold and promote values of inclusion [and] shared prosperity.""?Berkeley's statement also notes that Trump's border wall would cause ""Larm and stigma""?to Latinos in California and would ""waste ...-taxpayer money, hurt the environment, contribute to climate change, divide ancestral native lands, disrupt tribal communities, increase international tensions, and reinforce failed Cold War policies of isolationism and exclusion.""?Some two dozen Bay Area businesses ""?including construction companies and high-tech surveillance operations ""?responded to a pre-solicitation notice last month by the Department of Homeland Security expressing interest in work related to the wall. Oakland and San Francisco are considering similar laws. Arreguin said he thinks nearby Richmond will pass a measure much like Berkeley's. Similar legislation has also been discussed in the Illinois and New York legislatures. Berkeley also is discussing whether to cut ties with Wells Fargo bank, which has helped finance construction of the Dakota Access Pipeline. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2864,2017/3/18,http://www.huffingtonpost.com/2017/03/17/republicans-obamacare-problems_n_15437098.html,Republicans Are Crying About Obamacare Problems They Helped Create,They've been trying to undermine the health care program -- and they have.,"The Republican case for repealing the Affordable Care Act and moving swiftly to enact a ""replacement""?plan largely rests on oft-repeated arguments that the law is floundering so badly, urgent action is needed. President Donald Trump uses terms like ""disastrous""?and ""Hailing.""?House Speaker Paul Ryan (R-Wis.) calls repeal-and-replace a ""rescue mission,""?because the law has a ""Hatal conceit""?""?a design flaw that means insurers aren""t attracting enough young and healthy people to cover the costs of customers with big medical bills. The health insurance markets regulated by the Affordable Care Act are actually in better shape than Republicans admit. Just this week, the Congressional Budget Office said the marketplaces were on their way to stability. But the struggles that Trump and fellow Republicans describe in their speeches are real enough. Particularly in states like Arizona and Tennessee, premiums have shot up and insurers have fled, leaving few choices for consumers. What Republicans fail to mention is that many of these problems are the handiwork of state and federal Republican officials who spent years undermining the law, contributing to the conditions they now say oblige them to dismantle it. These efforts are not by any means the only reason so many insurers have struggled. But they have played a significant role. When Democrats wrote the Affordable Care Act, they understood that insurers might initially have a hard time figuring out where to set prices. Because insurers hadn""t sold these kinds of policies (with comprehensive benefits) under these conditions (without exclusions for pre-existing conditions), they didn""t have actuarial data on which to base pricing decisions. In order to reassure insurers that might hesitate to enter the markets amid such unknowns, and in order to protect them against crippling losses, the law's architects created a ""risk corridor""?program, in which the government promised to reimburse insurers, mostly, for excessive losses. (Insurers that misjudged in the other direction, and had unexpected windfalls, would pay part of that money into the program.) The idea was not novel. Medicare Part D, the program that provides seniors with prescription drug coverage, also has a risk corridor program. And it has never been controversial ""?even though it's a permanent part of the program, unlike the temporary one in the Affordable Care Act. But conservative groups targeted the program, calling it a ""bailout""?for health insurance companies, despite the fact that it was included in the law from the beginning. Sen. Marco Rubio (R-Fla.) picked up the mantle and led a crusade to undercut the program's funding. In 2014, Rubio got his proposal into the year-end spending agreement and President Barack Obama, feeling the rest of the legislation was necessary to keep the government functioning, signed it. Later, during a presidential debate, Rubio even bragged about it. Insurers ended up filing $8.3 billion in claims for 2014 and 2015, but the program ended up paying out just $362 million. Several insurers have since sued to get the money they claim to be owed, and one has already won its case. But it's not clear they will ever get the money. Kevin Counihan, who ran HealthCare.gov for the Obama administration after overseeing Connecticut's health insurance exchange, said he heard about risk corridors all the time last year, while he was meeting with insurers about participation for 2017. ""Congress not funding the risk-corridor program was the most consistent issue,""?Counihan said. ""Tany carriers established their 2014 and 2015 rates with the assumption that the government would make good on this part of the law. Not doing so hurt both their financials, our credibility, and their board's commitment to remain in the program.""?And this is about more than just health insurance companies losing money. The true purpose of these payments is to reduce premiums by allowing insurers to charge lower rates, knowing they'r protected if they get hit with higher-than-expected costs. Premiums were 10 percent to 14 percent lower in 2014, and 6 percent to 11 percent lower in 2015, because of this program, according to the American Academy of Actuaries. Insurance companies got no payments from this fund for 2015 because the government had no money left. The realization that this money wouldn""t be available again for 2016 and 2017 contributed to insurers""?decisions to institute large premium increases this year and, likely, more rate hikes next year. The theory of the Affordable Care Act's coverage expansion was pretty simple. People with incomes above 133 percent of the poverty line, or about $32,000 for a family of four, would buy coverage through the exchanges, where low- and middle-income people can apply for tax credits to reduce their premiums. People with incomes below that threshold would get coverage through Medicaid, once states took advantage of new federal funding to expand eligibility. The theory didn""t count on the Supreme Court, which in 2012 affirmed that states have the right to reject the money to expand Medicaid and keep the limited eligibility they had before. Initially, more than half the states did precisely that. All had Republican governors or majority-Republican legislatures, although a number of GOP-led states, like Arizona and North Dakota, did adopt the expansion. The immediate consequence of refusing to expand Medicaid was to deprive- millions of Americans living in those states of insurance. But those decisions also had a spillover effect. Exchanges in these states are picking up more of the lowest-income customers ""?the ones with incomes between 100 percent and 133 percent of the poverty line, or between $24,600 and $32,718 for a family of four. (Under the law, people with incomes below the poverty line are not eligible for the subsidies.) It might not sound like a big deal, but it had a direct impact on premiums for everyone. Those extra enrollees tended to be in worse health than the rest of the population. In states that did not expand Medicaid, these people ended up signing up for exchange plans ""?where their relatively high medical bills drove up costs for the insurers, eventually contributing to losses and higher premiums for all customers. On the whole, rates in expansion states were about 7 percent lower than in non-expansion states, according to a Department of Health and Human Services study that controlled for demographics and other factors. Enrolling a sufficiently large population in the new insurance plans was always going to be a challenge, because many of the uninsured had little experience shopping for and buying coverage ""?and because, particularly among middle-class consumers, the prices were in many cases going to seem high. And while the federal government took on some of that responsibility, state officials had a special role to play, because they retain a lot of regulatory authority over insurance and, crucially, they better understood the idiosyncrasies of their insurance markets and their states""?residents. Some states, typically the ones that had decided to create their own exchanges, promoted enrollment enthusiastically. But other states didn""t offer support. A few ""?again, all with Republicans in power ""?actually did their best to make enrollment difficult. Georgia's insurance commissioner, Ralph Hudgens, put it unusually bluntly. ""Let me tell you what we'r doing,""?he said in August 2013, just two months before the first open enrollment period. ""Everything in our power to be an obstructionist.""?Hudgens also said, ""I'm not going to do anything in my power to make this law successful.""?In other words, rather than assist Georgians who elected him with getting health coverage, Hudgens prioritized resisting Obama. The impact of these efforts isn""t clear. But enrollment in states that ran their own exchanges, which is a pretty good proxy for enrollment enthusiasm, was moderately higher overall than in states that relied on HealthCare.gov, according to a 2016 paper by economists Molly Frean, Jonathan Gruber, and Benjamin Sommers. One constant for the early years of the Affordable Care Act was enthusiastic support from Washington. That obviously changed in January, when Trump became president ""?and open enrollment for this year was entering its final days. The very day Trump was inaugurated, he issued an executive order instructing agencies to relax Affordable Care Act rules. The IRS responded a short while later by announcing it wouldn""t fully enforce the law's individual mandate, which has the potential to suppress enrollment among healthy people who need the coverage less. The end of open enrollment period has historically seen a surge of signups, as people rush to meet the deadline, and the late signups tend to be healthier on average, helping the risk pool. But the Trump administration canceled some planned digital and television advertising and, this year, only about 400,000 people signed up in the final two weeks. In the same period last year, 700,000 did. That drop may help explain why, this year, overall signups for HealthCare.gov policies fell slightly this year.-It's also a reminder that the kind of people who have been trying to undermine Obamacare are now in charge of it. They may yet do more damage, unless they manage to repeal it altogether. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2865,2017/3/18,http://abcnews.go.com/US/tennessee-authorities-hunting-teacher-accused-kidnapping-15-year/story?id=46222662,Tennessee authorities hunting for former teacher accused of kidnapping 15-year-old student,,"Tennessee authorities are asking for the public's help in their hunt for a former teacher who allegedly kidnapped a 15-year-old student, state officials said. Tad Cummins, 50, is accused of kidnapping teenager Elizabeth Thomas on Monday, the Tennessee Bureau of Investigation said in a press release. Cummins was a teacher at Elizabeth's school in Culleoka, Tennessee, until he was fired Tuesday, authorities said. Cummins is believed to have two handguns, and Elizabeth is considered to be ""in imminent danger,"" the state investigative bureau said. An Amber Alert has been issued for Elizabeth, and Cummins has been added to the state's ""Top 10 Most Wanted"" list, authorities said. The state Bureau of Investigation said in a news release that Cummins ""may have been abusing his role as a teacher to groom"" the teen for some time, ""in an effort to lure and potentially sexually exploit her."" Cummins' wife, Jill Cummins, made an emotional plea to her husband at a news conference Friday, urging him to turn himself in. ""I had no idea my husband was involved with anything that has led to all this. My heart breaks for the family of Beth Thomas,""?Jill Cummins said. ""tad, this is not you. This is not who you are. We can help you get through this ... Your family wants their poppy back. Please do the right thing and turn yourself into the police and bring Beth home.""? Tad Cummins, of Columbia, Tennessee, is wanted on allegations of aggravated kidnapping and sexual contact with a minor, authorities said. As of Friday, Tennessee authorities said they had received 175 tips but none had produced a credible sighting of Tad Cummins and his alleged victim. Your RT may just get this information in front of the one person who needs to see it. Help us spread this across the country! Thanks! pic.twitter.com/c5jI8ER816 Cummins is described as a white man with brown hair and brown eyes. He is 6 feet tall and weighs about 200 pounds. He may be driving a 2015 silver Nissan Rogue with a Tennessee license plate number 976-ZPT. NEW PICTURES: Various shots of Ted Cummins in the past few weeks, including the vehicle he's believed to be driving. TN TAG: 976-ZPT. pic.twitter.com/mlrPPlcXoQ Elizabeth is described as a white girl with blonde hair, hazel eyes. She is 5-feet, 5-inches tall and weighs 120 pounds. She was last seen wearing leggings and a flannel shirt. Authorities are asking that anyone with information call 1-800-TBI-FIND and that anyone who sees a car with Tennessee license plate 976-ZPT call 911. A $1,000 reward is available for information leading to Tad Cummins' arrest. ABC News' Ben Stein contributed to this report.", -2866,2017/3/18,http://abcnews.go.com/US/wireStory/officials-woman-dies-shot-tennessee-deputies-46213019,Officials: Woman shot by Tennessee deputies had a BB gun,,"Two sheriff's deputies who fatally shot a woman Friday in a Tennessee residential neighborhood thought she pointed a real handgun at them when they opened fire, but it turned out to be a BB gun, authorities said. Nancy Jane Lewellyn died after being shot by Shelby County Sheriff's Office deputies in a subdivision in Lakeland, just east of Memphis, Tennessee Bureau of Investigation spokesman Josh DeVine said. It was the second fatal shooting involving law enforcement in two days in western Tennessee. The bureau says a 36-year-old Louisiana man was killed after he allegedly tried to strike deputies with his vehicle in Crockett County on Thursday. The bureau, which acts as Tennessee's state police agency, is investigating both shootings. DeVine said Lewellyn had called 911 Friday, making disturbing statements and threatening violence toward anyone who came to her house. Three deputies responded, and Lewellyn exited her house when they arrived, DeVine said. She then took out what appeared to be a real handgun and pointed it at the deputies, he said. Two of them opened fire, killing her. It was determined after the shooting that Lewellyn was holding a BB gun, DeVine said. The BB gun looked ""an awful lot"" like a real gun, he said. ""It was presumably very easy for these deputies to think that this was a more dangerous situation than a BB gun,"" DeVine said. It is not immediately clear if Lewellyn had mental issues, DeVine said. John Rumsey, who lives two houses away from where Lewellyn was shot, was unable to get home Friday afternoon while deputies blocked the street leading to his house. He was eventually allowed through. ""It's just a really bad scene,"" Rumsey said. ""It's usually very calm around here."" The two deputies involved in the shooting have been relieved of duty with pay pending the bureau's investigation, but they are not being identified at this point, sheriff's spokesman Earle Farrell said. The races of Lewellyn and the deputies were not released. Once the investigation is done, the bureau will hand over its file to Shelby County district attorney Amy Weirich, who will decide whether to pursue charges. DeVine said the bureau currently has 1,800 open criminal investigations, with only 59 agents in the bureau's field investigations unit. ""You better believe that the number of incidents, and the types of investigations that we have, certainly puts a strain resources, but this is the job,"" DeVine said.", -2867,2017/3/18,http://abcnews.go.com/US/person-detained-hopping-bike-rack-barrier-white-house/story?id=46225351,Person detained after hopping bike-rack barrier along White House fence,,"A person was detained Saturday after hopping over a bike-rack barrier along the north fence of the White House, sources familiar with the incident told ABC News. The person, whom sources said is a male, did not make it over the White House fence, sources said. The suspect is being interviewed. Sources said he wanted to deliver a letter to someone in the Trump administration. White House press secretary Sean Spicer tweeted that the individual jumped a bike rack on Pennsylvania Ave., not the White House fence. Individual jumped bike rack on Pennsylvania Ave, not @WhiteHouse fence. Great response by @SecretService Saturday's incident comes after an intruder scaled a White House fence last week. The Secret Service said Friday that last week's intruder was on the grounds for approximately 16 minutes before he was arrested.", -2868,2017/3/18,http://abcnews.go.com/Politics/wireStory/appalachia-trumps-proposed-budget-people-worried-46212952,"In Appalachia, Trump's proposed budget has people worried",,"Crystal Snyder was trying to figure out life as a single mom when she lost her job at a West Virginia T-shirt factory. The 37-year-old had no college degree, mostly because she married at 16, divorced at 19 and had two children. Unsure what to do, Snyder heard about a program through the Coalfield Development Corp. that would hire her and pay for her to get an associate degree. Now she works full time for one of the nonprofit's agriculture offshoots. ""I'm learning how to be a farmer. I'm growing food, I'm going to school,"" she said. ""It has helped me in ways I can't even understand yet."" Coalfield Development Corp. is a nonprofit funded by the Appalachian Regional Commission. The ARC is a 52-year-old federal agency that seeks to create jobs in 420 counties across 13 states, including the West Virginia and Kentucky coalfields. It's also targeted for elimination by President Donald Trump. Trump's budget proposal has alarmed much of the region, including longtime Republican Congressman Hal Rogers, who represents the mountainous eastern Kentucky coal region where Trump won every county, a first for a Republican presidential candidate. ""I am disappointed that many of the reductions and eliminations proposed in the President's skinny budget are draconian, careless and counterproductive,"" Rogers said. The ARC began its work in 1965 as part of former Democratic President Lyndon Johnson's famous ""war on poverty."" In the past two years, the agency has spent $175.7 million on 662 projects that is says has created or retained more than 23,670 jobs. That investment has paid off: In Kentucky, the commission has awarded $707,000 to the Eastern Kentucky Concentrated Employment Program, which used the money to train 670 people who now have full time jobs earning a combined $13.6 million in wages. Some of those wages were earned by Heather Smith, a 41-year-old in Annvile, Kentucky, who works from home for U-Haul. ""It has brought a lot of jobs to our region,"" she said. ""I really am for our president and I really like him. But that part I wish they could work on."" In Alabama, where Trump won with 62 percent of the vote, the commission awarded $5 million last year to projects in 37 rural counties for jobs, technology upgrades and school programs and materials. ""We are concerned about the ability to help rural Alabama,"" said Jim Byard, head of the Alabama Department of Economic and Community Affairs, the state agency that helps administer the grants. Kentucky has been a focal point for federal anti-poverty programs for decades, resulting in billions of dollars of public investment. Last year, the ARC received $146 million, its largest federal appropriation in more than three decades. Yet much of the region is still crippled by poverty, and a new generation of Republicans frustrated with government programs now run several states. That includes Kentucky Gov. Matt Bevin. He spoke this week at an eastern Kentucky event meant to celebrate a $2.75 million ARC investment that resulted in 35 jobs in Paintsville. ""The war on poverty. How's that working out? We've spent a lot of money. Here's what the answer isn't: The answer isn't another government program,"" Bevin said. It's unclear if Bevin supports the Trump budget. His spokeswoman did not respond to a request for comment. Senate Majority Leader Mitch McConnell said he's pleased with Trump's proposal to spend more money on national security and veterans, but he vowed to ""work with the delegation to protect essential Kentucky priorities in the final budget."" In West Virginia, construction work funded by the ARC is the only job 21-year-old Jacob Dyer has had since high school. He's a few classes away from his associate degree, and hopes to stay in the program for another two years to get another degree. He hopes Trump will reconsider. ""I think if he knew how this program helps others and what it's really done, what it supports, I think that would change his mind, possibly,"" Dyer said. ""?Associated Press reporter Kim Chandler contributed reporting from Montgomery, Alabama.", -2869,2017/3/18,http://abcnews.go.com/US/wireStory/trooper-arrest-2014-shooting-death-pregnant-wife-46204259,Ex-trooper charged in 2014 shooting death of pregnant wife,,"At first, Pennsylvania state trooper Joseph Miller said he was as far as 10 feet away cleaning his gun when it accidentally discharged, killing his pregnant wife. Later, he told detectives he was 2 feet away. On Friday, three years after the shooting, Miller was under arrest after prosecutors said new tests showed the gun was 3 to 6 inches from her head when it went off. Miller, 36, was arraigned Friday on two counts of involuntary manslaughter in the deaths of JoAnna Miller and their newborn baby, prosecutors in suburban Philadelphia said. JoAnna Miller was 24 weeks pregnant when she was shot in the head in the family room of their East Norriton home on March 7, 2014, as she organized children's clothes. She died at a hospital after delivering a girl via an emergency C-section. The baby, named Gillian, died shortly thereafter. In a call Joseph Miller placed to 911 after the shooting, he tells a dispatcher: ""I, ah, was cleaning. I was about to clean my gun, and I didn't realize there was a round ... I shot my wife."" He can then be heard consoling children, saying, ""Guys, guys, guys, it's OK."" The couple has four other children. Miller told detectives he was disassembling his personal gun in the family room so he could clean it when it discharged and struck his 34-year-old wife, who was sitting on the floor sorting clothes for donation, according to a criminal complaint. He initially told police he was about 8 to 10 feet away from his wife but later changed his estimate to about 2 feet away. However, a coroner ruled JoAnna Miller's cause of death was a ""perforating close range gunshot wound of the head."" A two-year investigation involving ballistics and forensic tests showed the gun was 3 to 6 inches from JoAnna Miller's head when it went off, according to a statement by the Montgomery County district attorney's office. Joseph Miller also told detectives he didn't check to see whether the gun was unloaded before cleaning it. In an interview transcript released Friday, investigators asked Miller: ""Did you intentionally shoot your wife?"" ""I did not,"" he replied. ""It was an accident. I love her to death."" Prosecutors say Miller had extensive firearms safety training as part of his job as a state trooper and disregarded the essential standards and procedures for handling weapons the day he shot his wife, according to the criminal complaint. In June 2014, the district attorney's office concluded the shooting was negligent but accidental. Authorities at the time said all evidence indicated the Millers were ""a close-knit, loving family excited about the pending arrival of a new baby."" However, the investigation remained open as evidence was examined. A message seeking comment from Miller's lawyer wasn't returned. He is free on $100,000 bail and was ordered to surrender his passport and firearms.", -2870,2017/3/18,http://abcnews.go.com/Politics/wireStory/victims-forward-marine-nude-photo-scandal-46210584,More victims come forward in Marine nude photo scandal,,"At least 20 victims have now come forward to complain that explicit photos of them are being shared online by active duty and retired members of the Marine Corps and others, a leading Navy investigator said Friday. Curtis Evans, the division chief for criminal investigations for the Naval Criminal Investigative Service, told reporters that he expects more victims will come forward as the probe continues. Former and current female Marines say their photographs and those of women in other services have been shared without their consent on social media, including on a private, men-only Facebook page called Marines United and a Google Drive linked to that page. That Facebook page has been taken down, but officials say the photos may have simply migrated to another private site. Evans said the investigation has expanded into many more sites online. Officials said that earlier this week at least 17 new sites were being reviewed and that as many as 30,000 images were catalogued on the sites, although many were duplicates. A majority of the photos, officials said, were selfies and did not appear to have been taken surreptitiously, although it's not clear under what conditions they were shared. The officials weren't authorized to discuss the matter publicly and spoke on condition of anonymity. So far, the victims who have come forward are not men, and the investigation has not expanded to gay pornography sites. But, Evans said NCIS will look into every complaint. He said NCIS is working with the other military investigative services and with federal and local law enforcement, including the FBI. Facebook and Google have been cooperating with the investigation, he added. There have been about 1,200 screen names identified on the Facebook site, and of those, 725 were active duty Marines, 150 were in the Marine Reserves, 15 were in the active duty Navy and the rest were unidentifiable. Those people were only on the main Facebook page, which involved other issues. It is not known who may have accessed or commented on the Google Drive linked to the Facebook page where the explicit photos were stored.", -2871,2017/3/18,http://abcnews.go.com/Politics/wireStory/school-bomb-scare-case-sparked-media-fbi-fight-46219681,How a school bomb-scare case sparked a media vs. FBI fight,,"The young hacker was told in no uncertain terms: You are safe with me. ""I am not trying to find out your true identity,"" AP journalist Norm Weatherill assured the teenager in an online chat. ""As a member of the Press, I would rather not know who you are as writers are not allowed to reveal their sources."" But Norm Weatherill was no reporter. He was FBI agent Norman Sanders Jr., and the whole conversation was a trap. Within hours, the 15-year-old hacker would be in handcuffs as police swarmed his house. The 2007 bust would put an end to 10 days of nonstop bomb threats at the hacker's high school but would also raise a troubling question that is unanswered to this day: How often do FBI agents impersonate members of the news media? The answer is important, says one expert who played a key role in revealing the bureau's subterfuge, because sources need to know journalists won't turn them in. ""Journalists play a very similar role to doctors in our society in that we trust them,"" Christopher Soghoian, former chief technologist at the American Civil Liberties Union, said earlier this year. ""And without trust they cannot operate."" Two weeks ago, a federal judge rejected a lawsuit from The Associated Press and the Reporters Committee for Freedom of the Press demanding more detail from the FBI about the practice of posing as journalists. The two media organizations are appealing the ruling. Meanwhile, the AP has drawn on hundreds of pages of records and interviews with a dozen people to piece together the story of how a computer-savvy sophomore's end-of-year prank escalated into a confrontation between the Justice Department and the media. ""?""HAVE A NICE EXPLOSIVE DAY"" The first email said, ""I will be blowing up your school."" Sent on Sunday, June 3, 2007, around 9 p.m. and addressed to several dozen teachers and administrators, it said four bombs were hidden throughout Timberline High, a 1,500-student school in an aging brick building in Lacey, a middle-class suburb of Olympia, Washington. ""We treated it like a real threat,"" then-Principal Dave Lehnis recalled. Administrators met with police that night and scoured the school with bomb-sniffing dogs. They found nothing. The second threat arrived early Tuesday morning. ""It's now time to get serious,"" the email said , warning that five bombs were set to go off throughout the building. Students were evacuated to the soccer field. Again, nothing was found. The messages, distributed via bogus Gmail accounts, continued like this for more than a week. One said , ""Well have a nice explosive day and I hope everyone keeps their arms and legs."" Another warned of a vibration-triggered bomb supposedly taped to the bottom of one of the school's portable classrooms. Some messages threatened staff members individually; Lehnis received one saying , ""ENJOY YOUR LIFE ENDING."" Each time a threat came in, the school would be emptied. Each time, nothing happened. ""There were times I just wanted to say, 'This isn't possible,'"" Lehnis said. ""I'm not sure al-Qaida could do this on this short notice."" The threats seemed to be coming from a student. The first message ""?signed ""Your Mom"" ""?had the snotty tone of an attention-seeking adolescent and carried knowing references to the school's open-plan layout. Many messages were sent in the name of a 14-year-old freshman who clearly had nothing to do with the threats. There were even complaints about prices at the student store. ""SMOOTHIES SHOULD BE $1.00,"" one email said . Some students enjoyed the evacuations. Others grew annoyed. ""A lot of kids started bringing blankets and lawn chairs,"" said Meggan Dowd, a Timberline sophomore at the time. ""There was just no learning because everybody was waiting for another bomb threat to happen."" The hoaxer seemed desperate for attention, setting up a MySpace account with a picture of a bomb-wielding cartoon villain to help distribute the threats. Lacey Police Sgt. Jeremy Knight issued a series of emergency requests to MySpace and Google, but the records pointed back to servers in Italy or the Czech Republic. The hacker had broken into the servers and used them to throw investigators off. He could have been hiding anywhere. ""It was a case unlike anything I'd ever done before or since,"" Knight said in a recent interview. ""The skill level there was impressive for a 15-year-old kid."" At Timberline, Knight and his colleagues faced a number of weak tips and a multitude of potential suspects. One student was singled out because he smiled during an evacuation. Another came under suspicion for an offhand comment about the school's ""weak firewalls."" The 14-year-old freshman framed by the hoaxer told police a certain classmate might be behind it ""because he's been talking sexual stuff about my mom."" At one point, police had a list of 30 possible high school suspects arrayed into two spreadsheets bearing notes such as ""smart, techie"" or ""picked on, body issues."" One note by a student's name read: ""Possible, if smart enough."" With police hitting electronic dead ends and struggling to make sense of the high school rumor mill, parents were getting panicky. At a June 12 meeting with police and school administrators at Timberline's library, they kicked in an extra $450 for the reward for information leading to the hoaxer's capture. ""It's more difficult to track email than you might think, if you have computer savvy on the internet,"" Police Chief Dusty Pierpoint told the gathering. By that point, Lacey police had called in the FBI. And agent Sanders was sending the hacker his first interview request. ""OUR SECRET IS OUT!!!"" Charles Jenkins has been programming since he was 10 or 11. Now a youthful 25-year-old with a slight frame and a boyish smile who works in software far from Washington state, he speaks in a bored-sounding monotone over the phone. ""I don't really have any excuses,"" he said in an interview, the first he has ever granted. Jenkins ""?whom the AP is identifying by his FBI-assigned pseudonym because he was a minor at the time of his hoaxes ""?said he wanted to apologize, especially to the classmate he tried to frame. Several Timberline students said Jenkins had been bullied for being gay, but Jenkins said it wasn't particularly serious. ""I definitely wouldn't attribute that for a motivation for what I did,"" he said. Questioned after his arrest, Jenkins described the threats as a kind of end-of-year prank. A decade later, he said he had no particular motive beyond ""feeling powerful."" He relied largely on two or three servers that he had penetrated from his home computer. He typically emailed his threats between the time his parents left for work and when he took the bus to school. Jenkins said his parents weren't overly concerned about what was happening at the school, though he did recall his mother remarking one evening, ""Whoever is doing this is going to get in a lot of trouble."" It was just after class on June 13 that ""AP Staff Publisher Norm Weatherill"" wrote to Jenkins to ask for comment on the threats. ""Leave me alone,"" Jenkins replied. Weatherill ""?who was actually Sanders, the undercover FBI agent ""?persisted, promising anonymity. ""Readers find this type of story fascinating,"" he explained, the way any journalist would. Jenkins relented, and the agent sent him links to material related to an AP article he was supposedly putting together. When Jenkins clicked, malicious code ran on his computer and broadcast his internet protocol address back to law enforcement. Six hours later, Lacey police were at his door. Jenkins pleaded guilty in juvenile court to identity theft, harassment and making bomb threats. He was sentenced to 90 days' detention, ordered to pay nearly $9,000 in restitution and barred from possessing computers, cellphones or video games for two years. That might have been the end of it had it not been for Wired magazine. Two days after Jenkins was sentenced, Wired broke the news that the precocious cybercriminal had been caught with the help of FBI surveillance software, offering what it called ""the first public glimpse into the bureau's long-suspected spyware capability."" ""Our secret is out!!!"" an employee of the FBI's technology division emailed colleagues the day the story ran. The spyware disclosure angered the bureau. ""People are not happy,"" an FBI lawyer wrote in an email several days later. The emails, obtained in 2011 by the San Francisco-based Electronic Frontier Foundation, were part of a cache showing how the spyware that caught Jenkins appears to have been first developed in 2001 . By 2007, the FBI was secretly deploying the technology across the country , drawing interest from the military and foreign governments . Then in 2014, Soghoian went through the EFF documents and spotted something others had missed. The FBI hadn't just used spyware in the Timberline case; it had delivered it using a fake AP news story dressed up to look as if it was on The Seattle Times website. Soghoian shared the find on Twitter , setting off a media firestorm . FBI Director James Comey defended the practice in The New York Times about a week later, revealing in the process that the bureau had not merely produced a fake AP story but had also relied on an agent posing as an AP journalist. ""That technique was proper and appropriate under Justice Department and FBI guidelines at the time,"" Comey wrote. He said doing the same thing now ""would probably require higher-level approvals than in 2007, but it would still be lawful."" AP responded by saying Comey's explanation ""doubles our concern and outrage."" Writing on behalf of two dozen media organizations, the Reporters Committee called law enforcement's impersonation of journalists unacceptable, ""whether it is digital or physical."" ""?""THE TOOL OF FIRST RESORT"" In 2007, law enforcement hacking was a novelty. By 2014, researchers had documented a crowded field of police and spy agency hackers and the frequent use of fake media personalities , malicious news apps and bogus articles to trick targets into compromising their own devices. A few days after Comey's comments, the AP filed a public records request seeking information on whether the FBI's actions in the Timberline case were an isolated incident or part of a broader pattern. The bureau blew its legally mandated 20-day deadline, at one point saying it would take 649 days to process the data. The Reporters Committee, which had filed similar requests , sued together with AP. In March 2016, the FBI produced 186 pages of documents, among them a report acknowledging that ""an argument can be made"" that the FBI's Seattle office violated agency guidelines by letting Sanders go undercover as a journalist without alerting headquarters. In June, the bureau quietly tightened its rules on the impersonation of reporters, explicitly requiring top-level clearance from Washington every time an agent poses as a member of the media. The new restriction, made public when the FBI's inspector general released its report on the episode in September, fell far short of the ban on impersonation that the AP and other news organizations were seeking. And it did little to answer the question of how often the FBI has passed itself off as the media. On Feb. 23, a federal judge said the FBI had made a good-faith search of its records and had disclosed all it needed to. The AP and the Reporters Committee say the bureau needs to look harder. ""AP is calling for the release of all FBI documents related to the impersonation of any and all journalists in order to make the public aware of this deceptive practice and its breadth,"" Executive Editor Sally Buzbee said in a statement. Underlying the fight is the suspicion that the FBI didn't impersonate a journalist just that one time. ""If they're using this to find a teenager who doesn't want to take an exam, it's not a tool that's reserved for high-profile terrorism cases or child abuse cases,"" said Soghoian, formerly of the ACLU. ""The concern is it's becoming the tool of first resort."" The FBI declined to comment on the Timberline case or its fallout and refused to make Sanders, the FBI agent, available for an interview. Back in Lacey, even those who were pleased with the FBI's work allowed that the bureau's methods raised eyebrows. Lehnis, the former principal, said the bureau caught Jenkins in the nick of time ""?less than two days before graduation ceremonies. ""We were glad it ended when it did,"" he said. ""But using the press? Certainly if I were a journalist that would piss me off some."" ""?AP Researcher Monika Mathur in Washington contributed to this report. ""?Online: Timberline High Bomb Hoax Documents: http://apne.ws/2niMDP0 ""?Know more about FBI hacking or law enforcement impersonation of journalists? Raphael Satter is reachable at: http://raphaelsatter.com", -2872,2017/3/18,http://abcnews.go.com/International/wireStory/russian-space-official-found-dead-prison-cell-46223173,Russian space official found dead in prison cell,,"A top official of Russia's space agency has been found dead in a prison where he was being held on charges of embezzlement. A spokeswoman for Russia's Investigative Committee, Yulia Ivanova, told the state news agency RIA Novosti that the 11 other people in Vladimir Evdokimov's cell were being questioned. Investigators found two stab wounds on Evdokimov's body, but no determination had been made of whether they were self-inflicted. Evdokimov, 56, was the executive director for quality control at Roscosmos, the country's spaceflight and research agency. He was jailed in December on charges of embezzling 200 million rubles ($3.1 million) from the MiG aerospace company.", -2873,2017/3/18,http://abcnews.go.com/Sports/wireStory/records-doctor-disclose-usa-gymnastics-investigation-46223541,Records: Doctor didn't disclose USA Gymnastics investigation,,"A Michigan State University doctor resigned after learning the school was considering her termination because she didn't disclose in 2015 that USA Gymnastics was investigating a fellow physician who has since been charged with molesting young gymnasts, according to records released to the Lansing State Journal. The documents obtained from Dr. Brooke Lemmen's personnel file through the Freedom of Information Act reveal she also removed patient records at Dr. Larry Nassar's request, the newspaper reported ( http://on.lsj.com/2n94VC6 ). Lemmen's lawyer, Aaron Kemp, on Saturday disputed the claims made in the university documents. Nassar was a sports doctor for Michigan State and USA Gymnastics, which trains Olympians and is headquartered in Indianapolis. Michigan State fired Nassar in September after he violated restrictions that were put in place in 2014 following a complaint. He was charged last month with sexually assaulting gymnasts who came to him for treatments for hip and back injuries. He's also being sued by dozens of women and girls. Nassar, 53, has denied wrongdoing. Lemmen resigned from Michigan State in January. According to the documents given to the Lansing State Journal, Lemmen failed to disclose to Michigan State that Nassar had told her in 2015 that he was being investigated by USA Gymnastics. But Kemp said neither Nassar nor USA Gymnastics told her of allegations of sexual assault. In a Dec. 12 letter, College of Osteopathic Medicine Dean William Strampel wrote to Lemmen that not disclosing the USA Gymnastics investigation was ""troubling"" because she was one of four medical experts Michigan State used during a 2014 internal Title IX probe that cleared Nassar of sexual assault allegations. But Kemp said Lemmen also was not given details surrounding the university's 2014 investigation. ""In each instance, Dr. Lemmen was told there were questions regarding Dr. Nassar's medical techniques that patients were uncomfortable with,"" Kemp said. Former gymnasts have accused Nassar of abuse following an August report in the Indianapolis Star about how USA Gymnastics handled sexual abuse complaints against coaches and others. Lawyers suing Michigan State on behalf of victims have accused the university of failing to do more to prevent Nassar's alleged acts. The university is conducting an internal investigation of Nassar's work.", -2874,2017/3/18,http://abcnews.go.com/International/wireStory/congo-disappearances-raise-alarm-political-tensions-grow-46221067,Congo disappearances raise alarm as political tensions grow,,"Nearly a week after Congo's government announced the kidnapping of two United Nations experts along with their translator and drivers, no trace of them has been found. Their abduction in a region of the country where kidnappings are rare, and where the experts were investigating abuses by state and militia forces, has raised alarm as political tensions spread over an election crisis. Michael Sharp of the United States and Zaida Catalan of Sweden were abducted with three Congolese colleagues while traveling by motorcycle through Central Kasai province. It was not clear when exactly the kidnapping occurred. It is the first recorded abduction of international workers in the province, a region far from the usual turmoil in eastern Congo where multiple armed groups roam. A new report by the U.N. secretary-general has warned that violence and threats to civilians have spread to new parts of the vast country because of Congo's prolonged political crisis. President Joseph Kabila's mandate ended in December, but he has stayed on as presidential elections once set for last year have been delayed. A political agreement reached between the ruling party and opposition after weeks of deadly protests promises an election by the end of this year and that Kabila will not run. But the new report by U.N. chief Antonio Guterres says the agreement is in peril as the sides engage in ""brinksmanship."" Further delays in implementing the deal ""will only serve to inflame tensions and fuel the violence that is now spreading across the country,"" the report says. Parts of Congo have experienced insecurity for more than two decades since the end of the Rwandan genocide led to the presence of local and foreign armed militias, all vying for control of mineral-rich land. But the Central Kasai province where the U.N. experts were abducted represents the new expansion of tensions. Sharp and Catalan had been looking into recent large-scale violence and alleged human rights violations by the Congolese army and local militia groups. Hundreds of people have been killed in an upsurge of violence since July in the province, according to the U.N. Joint Human Rights Office. While the violence is linked to local power struggles, there are also clear ties to the national political crisis, according to experts who say Congo's security forces have been known to back local leaders seen to be loyal to Kabila. Meanwhile, militia groups support those who are believed to support the opposition. Just days after the U.N. expressed grave concern about reports of more than 100 people killed in Central Kasai region during clashes between soldiers and Kamwina Nsapu militia fighters, a video posted online appeared to show men in Congolese uniforms fatally shooting more than a dozen alleged militia members armed with little more than sticks. International governments and rights groups have called for investigations into the shootings, which followed months of alleged violence by the militia after its leader was killed in a police operation in August. Seven soldiers have been arrested in connection with the killings in the video, Congo's armed forces auditor general, Maj. Gen. Joseph Ponde, said Saturday. They are charged with various war crimes including murder, mutilation and inhumane treatment, he said. Ponde also promised investigations into allegations of mass graves in the area. Also Saturday, the U.N. mission in Congo reported renewed violence in the past week, with credible reports of a ""high number of deaths"" as Congolese security forces clashed with local Kamwina Nsapu militia members in the capital of Central Kasai province, Kananga. In a statement, the mission said it was concerned about the targeting of civilians, including women and children. The U.N. mission also said security forces had restricted its movement in the area in recent days. The U.N. secretary-general's special envoy for Congo, Maman Sambo Sidikou, called for an investigation by authorities into the violence. Though little is known yet about the kidnapping of the U.N. experts, one motive might be an effort to silence independent investigators, said Ida Sawyer, Central Africa director at Human Rights Watch. ""We can't rule out the possibility of involvement by the militia groups active in the area, and/or the Congolese army or government,"" Sawyer said. She added: ""The disappearance ... likely will have a dramatic deterrent effect on other independent investigators looking into violence in the region."" The spokesman for the U.N. mission in Congo, Charles Bambara, said the mission had intensified its searches for the missing experts and their colleagues. While the U.N. experts aren't humanitarian workers, Congo is the fourth worst country in the world in terms of security incidents targeting aid workers, according to Elodie Sabau, advocacy officer with the local U.N. humanitarian office. Some aid groups have suspended work in the insecure east after multiple kidnappings. ""?Associated Press writer Saleh Mwanamilongo in Kinshasa, Congo contributed.", -2875,2017/3/18,http://www.cnn.com/2017/03/18/world/gallery/paris-orly-airport-shooting-0318/index.html,Police shoot man at Paris Orly Airport,,, -2876,2017/3/18,http://www.cnn.com/2017/03/18/politics/trump-border-wall-specifications/index.html,Government seeks designs for 'physically imposing' border wall,"Washington (CNN)It should be tall, climb-resistant, difficult to penetrate and blend into the landscape.","Those are among the requirements for the US-Mexico border wall released by the federal government late Friday, kicking off a bidding process that will lead to one of the largest government construction projects in US history. ""The wall design shall be physically imposing in height,"" Customs and Border Protection outlined in the notice for contractors. That means 30 feet tall, although the officials wrote that ""designs with heights of at least 18 feet may be acceptable."" The wall must also be impossible to climb without a ladder, and should make it difficult to use ""common and more sophisticated climbing aids,"" like grappling hooks. In addition, the wall must resist attempts to penetrate through or under it. The request specifically mentions it must successfully endure for at least 30 minutes -- but ideally more than four hours -- attempts to bore through it with a ""sledgehammer, car jack, pick axe, chisel, battery operated impact tools, battery operated cutting tools, Oxy/acetylene torch or other similar hand-held tools."" Among the requirements is that the wall be ""aesthetically pleasing in color"" and blend into or match the surrounding landscape on the US side. It does not address the aesthetics of the Mexican side. After initially saying the wall should be made of concrete, the government widened its call and said it would consider ""other designs."" On Friday, it suggested non-concrete designs ""may not be entirely solid"" and could feature ""a see-through component"" so the border patrol would have ""situational awareness"" of the Mexican side. The specifications leave nearly all of the design work to interested bidders, who now have about two weeks to develop and submit their plans, known as proposals. A federal contracting expert told CNN this approach is common when the government knows generally what it wants, but is interested in seeing different ideas to accomplish the goals. It will select from those proposals several 30-foot-long prototypes to be built. Each prototype is expected to cost between $200,000 and $500,000, the government notice said. Companies will also build smaller 10-foot models for penetration tests. The prototypes will be used to decide upon a design for the wall that ultimately is constructed along the border. The wall -- and having Mexico pay for it -- was a central promise President Donald Trump made on the campaign trail. The government's proposal reflects many of his campaign promises, including that the wall be tall and ""beautiful."" It also includes a provision that contractors use American materials whenever possible. Friday's release did not address the overall cost of the wall. Various estimates have put the project at between $10 billion and $25 billion. Trump's recent budget proposal requested $1 billion to begin the process. In recent weeks, hundreds of companies indicated interest in the project. One construction contracting expert told CNN, however, that there are only a handful of construction firms with the size, capability and experience to handle such a large-scale contract. The expert pointed to federal requirements that contractors set aside substantial amounts of money as a guarantee that the project is completed satisfactorily. As is standard with government contracts, a secretive selection committee will evaluate the proposals based on the merits of the design and the contractors' ability to complete the job. The committee will select up to 20 plans to move to the next phase, where contractors detail how much their plans will cost and answer other questions. Multiple contracts to build wall prototypes will then be issued, the government has said. It hinted that bidding may be reopened in the future, saying the current process ""is not intended as the vehicle for the procurement of the total wall solution for the border with Mexico.""", -2877,2017/3/18,http://www.cnn.com/2017/03/17/politics/white-house-fence-jumper/index.html,Secret Service: White House jumper was captured after more than 15 minutes,(CNN)The Secret Service acknowledged Friday afternoon that the man who breached White House security last week was on the grounds for more than 15 minutes.,"The statement from the Secret Service came after a source told CNN earlier Friday about the length of the incident and the agency's resulting investigation. In its statement Friday afternoon, the Secret Service offered some information about the incident and said the ""investigation is ongoing,"" so far including more than 50 interviews and a review of radio transmissions and video footage. The review found that the intruder climbed a five-foot fence and an eight-foot gate and then hopped a three-and-a-half foot fence while Secret Service members struggled to locate him. House Oversight Chairman Jason Chaffetz told CNN's Wolf Blitzer on Friday that the intruder even managed to rattle a door handle at the South Portico entrance to the White House, although he did not make it inside. ""That's why we spend billions of dollars on personnel and dogs and technologies and fences and undercover people and video surveillance,"" the Utah Republican said. ""And yet the person is able to get up close to the White House and spend 17 minutes before he's apprehended. That's unbelievable."" The Secret Service statement added that ""immediate steps"" had been taken, including ""additional posts, technology enhancements, and response protocols."" ""The men and women of the Secret Service are extremely disappointed and angry in how the events of March 10 transpired,"" the statement said. The source explained to CNN earlier Friday that the intruder, Jonathan Tran, set off several alarms, but was able to avoid other sensors. The source said ""the response to the alarm was lacking, and found (the suspect) vulnerabilities in the system."" They say the 26-year-old California man carrying a backpack jumped multiple fences at the White House complex and set off multiple alarm sensors before he was discovered just steps from a main door to the mansion. Rep. Jason Chaffetz, chairman of the House Oversight Committee, sent a letter Friday to the acting director of the Secret Service, saying his committee is now investigating the incident. He said his committee has learned of these additional allegations that weren't in the original affidavit, including triggered alarms that were ignored and that the suspect ""may have moved around on the White House grounds undetected for a considerable amount of time."" Chaffetz wrote that the suspect also ""may have attempted entry into the building."" ""If true, these allegations raise questions about whether the agency's security protocols are adequate,"" he wrote. Chaffetz asked William Callahan, the acting director, to provide documents and video related to the incident and to brief the committee on Monday at 5 p.m. ET. A Secret Service source tells CNN that Tran was observed looming around Pennsylvania Avenue as early as 6 p.m. almost six hours before he was arrested on the White House grounds. Video surveillance footage shows Tran, the accused jumper, first jumping a fence in the Northwest corner of the Treasury Building, immediately adjacent to the White House. Tran activated a sensor alarm in the Treasury Moat, the source said. Secret Service officers responded to the alarm, but Tran had already snuck beyond one Secret Service post and moved closer to the White House when an officer came to investigate. The source believes Tran then crossed over the East Executive Drive and jumped the White House gate near an East Wing guard post that is not routinely staffed. The source said Tran activated an alarm sensor, but was hiding behind a pillar of the East Wing entrance. The source said Tran then jumped a low wall before traversing along East Wing. Several sensors went off, but it is unclear if they were properly investigated. A variety of detection systems ring the White House complex in overlapping zones. The systems primarily rely on infrared and microwave technology, but can be subject to malfunction or false activation. The incident happened just before midnight on the night of March 10 while President Donald Trump was at the White House. RELATED: Intruder breaches White House grounds, arrested near residence entrance The President was alerted about the intrusion late Friday night, an administration official said. Trump said last Saturday that the suspect was disturbed, calling the situation ""sad"" and saying he appreciates the work of the Secret Service. ""The service did a fantastic job,"" the President said to reporters during a lunch meeting with Cabinet officials at the Trump National Golf Club in Potomac Falls, Virginia. ""It was a troubled person. It was very sad.""", -2878,2017/3/18,http://www.huffingtonpost.com/2017/03/18/one-direction-singer-says-trump-once-kicked-band-out-of-hotel-for-not-meeting-his-daughter_n_15452824.html,Trump Voter Shocked To Find That Her Meals On Wheels Could Be Cut,"""I was under the influence that he was going to help us.""?,Linda Preast has used a wheelchair since she had a stroke two years ago and now relies on Meals on Wheels"," a service that provides food to millions of people with disabilities and the elderly. The 56-year-old Georgia resident never envisioned when she voted for President Donald Trump-that he propose eliminating federal funding-for the programs. ""Are you surprised?""?CBS News correspondent Michelle Miller asked Preast at her home in Jones County Saturday. ""Yeah", which would give $54 billion to the U.S. military while decimating funding for federal programs including the Environmental Protection Agency -2879,2017/3/18,http://www.huffingtonpost.com/2017/03/18/all-female-juno-cast-will-reunite-for-live-read-to-benefit-planned-parenthood_n_15452632.html,All-Female 'Juno' Cast Will Reunite For Live Read To Benefit Planned Parenthood,"""Juno had a choice, and that was the most important part,""?the director said.","Crack open a liter of Sunny D and pick up your hamburger phone to call the ""Juno""?fan in your life because the film's cast is reuniting to celebrate its 10th anniversary with a twist.- Director Jason Reitman is organizing a live read of the script featuring only the female members of the cast, including Ellen Page and Jennifer Garner, to raise funds for Planned Parenthood. For years, Reitman staged Live Reads for a variety of classic scripts using some of his favorite actors to bring films like ""the Princess Bride""?and ""stand By Me""?to life. After 40 live reads over five years, he bid farewell to the series in 2016.- However, in the wake of the last year's presidential election, Reitman says he was inspired to put together an all-female performance of ""Juno""?to benefit and raise awareness for the women's health organization. One of President Donald Trump's first executive orders signed since his inauguration in January targeted women's reproductive health access worldwide by halting funding to international nongovernmental women's health organizations if they provide abortions. Come join @EllenPage for a Juno Live Read to support Planned Parenthood! https://t.co/LFrTRJs3PF ""Like many other people, I felt like I wanted to do something. I wanted to find a way to contribute to the causes that have never felt more important,""?he told Entertainment Weekly. ""It occurred to me that I have this show that could be used as a tool to not only raise money for causes that need the help, but could serve as an opportunity for a group like Planned Parenthood to connect with an audience who can be presented with new ideas, or even an action item.""?""If there was any confusion about whether ""�Juno""?was pro-choice or pro-life, this should settle that,""?Reitman added. ""Juno had a choice, and that was the most important part.""?The one-night-only event will take place at the Ace Theater in Los Angeles on April 8. Tickets are already on sale, but the full cast won""t be announced until the final days leading up to the show.- Proceeds from ticket sales as well as ""Juno""?memorabilia, including signed original artwork and other goodies from the set, will all go to support Planned Parenthood.- ""Considering how much this election has done against women and what Planned Parenthood has done for women,""?Reitman said, ""I thought it would be cool to hear this script with an all-female voice.""?Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2880,2017/3/18,http://www.huffingtonpost.com/2017/03/18/g20-free-trade-pledge-dropped_n_15450974.html,"G20 Financial Leaders Acquiesce To U.S., Drop Free Trade Pledge","In a meeting that some said was at times 19 against one, the U.S. did not yield on key issues, essentially torpedoing earlier agreements as the G20 requires a consensus.","BADEN BADEN, Germany, March 18 (Reuters) - Financial leaders of the world's biggest economies dropped a pledge to keep global trade free and open, acquiescing to an increasingly protectionist United States after a two-day meeting failed to yield a compromise. Breaking a decade-long tradition of endorsing open trade, G20 finance ministers and central bankers made only a token reference to trade in their communique on Saturday, a clear defeat for host nation Germany, which fought the new U.S. government's attempts to water down past commitments. In the new U.S. administration's biggest clash yet with the international community, G20 finance chiefs also removed from their statement a pledge to finance the fight against climate change, an anticipated outcome after U.S. President Donald Trump called global warming a ""Loax.""?In a meeting that some said was at times 19 against one, the U.S. did not yield on key issues, essentially torpedoing earlier agreements as the G20 requires a consensus. Still, the dialog was friendly and non-confrontational, leaving the door open to a future deal, officials who attended the meeting said. ""This is my first G20, so what was in the past communiqu�� is not necessarily relevant from my standpoint,""?U.S. Treasury Secretary Steven Mnuchin said in the German resort town of Baden Baden. ""I understand what the president's desire is and his policies, and I negotiated them from here,""?Mnuchin said. ""I couldn""t be happier with the outcome.""?Seeking to put ""America first,""?Trump has already pulled out of a key trade agreement and proposed a new tax on imports, arguing that certain trade relationships need to be reworked to make them fairer for U.S. workers. ""We believe in free trade, we are in one of the largest markets in the world, we are one of the largest trading partners in the world, trade has been good for us, it has been good for other people,""?Mnuchin said. ""having said that, we want to re-examine certain agreements.""?International trade makes up almost half of global economic output and officials said the issue could be revisited at a meeting of G20 leaders in July. While some expressed frustration, like French Finance Minister Michel Sapin, others played down the dispute. ""It is not that we were not united,""?German finance minister Wolfgang Schaeuble said. ""It was totally undisputed that we are against protectionism. But it is not very clear what (protectionism) means to each (minister).""?He added that some ministers did not have a full mandate to negotiate since they were not fully in charge of trade issues. Others suggested that the G20 leaders""?meeting in Hamburg this July could be the real opportunity to bring the U.S. on board. ""It is not the best meeting we had, but we avoided backtracking,""?EU Economic Affairs Commissioner Pierre Moscovici said. ""I hope in Hamburg the wording will be different. We need it. It is the raison d'etre for the G20,""?Moscovici said. - The communique also dropped a reference, used by the G20 last year, on the readiness to finance measures against climate change as agreed in Paris in 2015, because of opposition from the United States and Saudi Arabia. Trump has suggested global warming was a ""Loax""?concocted by China to hurt U.S. industry and vowed to scrap the Paris climate accord aimed at curbing greenhouse gas emissions. Trump's administration on Thursday proposed a 31 percent cut to the Environmental Protection Agency's budget as the White House seeks to eliminate climate change programs and trim initiatives to protect air and water quality. Asked about climate change funding, Mick Mulvaney, Trump's budget director, said on Thursday: ""We consider that to be a waste of money.""?The G20 did, however, show continuity in its foreign exchange policies, using past phrases on currency markets. ""We reaffirm our previous exchange rate commitments, including that we will refrain from competitive devaluations and we will not target our exchange rates for competitive purposes,""?the G20 said. Leaders also upheld their commitments to financial sector regulation, supporting the finalization of bank rules known as Basel III, provided they do not significantly raise overall capital requirements. - (Additional reporting by Jan Strupczewski, Leika Kihara, David Lawder, Michael Nienaber and Joseph Nasr; Writing by Balazs Koranyi; Editing by Hugh Lawson/Ruth Pitchford) Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2881,2017/3/17,http://www.huffingtonpost.com/2017/03/18/emma-watson-is-raking-in-the-galleons-with-beauty-and-the-beast-salary_n_15450472.html,Emma Watson Waltzes Her Way to the Bank With 'Beauty And The Beast' Salary,YOU GO GIRL.,"Emma Watson-might need to open up another vault at Gringotts because her bank account is getting some love after a big ""Beauty and the Beast""?payday.- According to The Hollywood Reporter, sources reveal Watson is expected to pull in a cool-$15 million for the live-action remake of the Disney classic if the film performs as well as expected at the box office. She was reportedly offered-$3 million upfront, but her profits will likely end up being considerably larger upon the film's total gross.- And yet, Watson's salary for ""Beauty and the Beast""?can""t hold a candle ""umi��re or otherwise ""?to the $60 million she reportedly earned over eight ""harry Potter""?films.- Given the recent string of live-action Disney remakes fronted by female stars, insiders are projecting Watson's profits in relation to Angelina Jolie's -earnings in 2014's ""Taleficent, which drew an impressive-$759 million at the global box office. Jolie reportedly walked away with $20 million for the project, not including profit participation.- Considering ""Beauty and the Beast,""?which hit theaters nationwide on Friday, is set to land one of the top 10 openings of all time, it's safe to say Watson will not be going hungry anytime soon. The film already pulled in a record $63.8 million on Friday and is projected to make up to-$170 million over the weekend.- It's also expected to break the record for the highest-grossing PG-rated film, likely unseating ""Finding Dory,""?as well as the biggest March opening of all time.- We don""t know how much Watson's male ""Beauty and the Beast""?co-stars like Dan Stevens, Luke Evans, and Josh Gad raked in, but her salary is an undeniable win for an actress who's spoken out about Hollywood's gender wage gap in the past.- ""We are not supposed to talk about money because people will think you'r ""difficult""?or a ""diva.""?she told Esquire U.K.-in 2016. ""But there's a willingness now to be like, ""line, call me a diva, call me a feminazi, call me difficult, call me a First World Feminist, call me whatever you want.""?It's not going to stop me from trying to do the right thing.""Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2882,2017/3/18,http://www.huffingtonpost.com/2017/03/18/everywhere-you-look-americans-are-spreading-hate_n_15449872.html,"Everywhere You Look, Americans Are Spreading Hate","If that feels melodramatic, you haven't been paying attention.","It was a big week for hate. It was no different than last week. Acts of violence and intimidation against minority groups are becoming so commonplace that they'r tough to track ""?though We're been trying. This week, reports on three incidents highlighted how fear and hatred have permeated the everyday lives of Americans. In a township outside of Indianapolis, Indiana, school officials confirmed that a group of fourth-graders on a winning robotics team were told to ""go back to Mexico""?by other students ""?and that parents joined in to hurl racist slurs their way. The Indianapolis Star reporter who brought the February incident to light this week characterized the backward thought process-behind the verbal assault: If you allow racism and hate to dictate these things, minority students from the Eastside, poor kids from a Title I school, aren""t supposed to be smart. They aren""t supposed to be talented. They aren""t supposed to be technologically savvy. And they definitely aren""t supposed to be able to best white students from surrounding communities. Over in Orange County, California, a waiter was fired for demanding patrons""?""proof of residency""n the United States.-""I need to make sure you'r residents before I serve you,""?the waiter reportedly said to Diana Carrillo, a 24-year-old Californian, her sister and two of their friends. Carrillo was quick to invoke President Donald Trump,-whose administration has been criticized by civil rights groups for failing to respond in a meaningful way to hate crimes across the country. ""I feel that's the direction we'r headed in, given who's the president,""?Carrillo told the Orange County Register-Friday. Often, Trump's name is brought up during actual crimes. On Thursday, a man was charged with aggravated harassment after allegedly kicking a Muslim Delta employee at John F. Kennedy International Airport and promising that Trump would kick the victim out of the country. ""Are you [expletive] sleeping? Are you praying? What are you doing?""?the suspect, 57-year-old Robin Rhodes said to the victim, according to a complaint that KTLA obtained. ""You did nothing but I am going to kick your [expletive] ass,""?Rhodes said. ""�[Expletive] Islam, [expletive] ISIS, Trump is here now. He will get rid of all of you. You can ask Germany, Belgium and France about these kind of people. You will see what happens.""?There are now so many instances of hateful acts carried out in Trump's name or policy that saying hateful people are ""emboldened""?by this administration borders on clich��. At least 150 civil rights groups agree. Last week,-Amnesty International, the Anti-Defamation League, the NAACP, Muslim Advocates and the National Bar Association were among a long list of groups to sign an open letter condemning the Trump administration's lack of action ""?or even acknowledgement-""?after so many acts of violence and intimidation. Jewish leaders and lawmakers on both sides of the aisle are enraged over the lack of response to bomb threats made to Jewish community centers over the country. Though the Department of Homeland Security has pledged its full involvement into the investigation of more than 125 threats made to 85 centers across the country since January, the federal reaction has been widely criticized as hollow and sluggish. The past few weeks have been no different across America. We watched as two Indian men in Kansas were shot after being told to ""Get out of my country.""?We watched as four mosques were burned down in less than two months. We watched as a Sikh man was shot in Washington; as gravestones were overturned; as Latinos in-California and New York were assaulted; as transgender women of color were murdered; as Jews were under siege in their homes, places of worship and community centers. We will continue to watch as lawmakers, civil rights groups and the American people wait for the Trump administration to draw a line in the sand and condemn the rise in American hatred. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2883,2017/3/18,http://www.huffingtonpost.com/2017/03/18/white-bear-polar-captivity-photos_n_15449052.html,Haunting Photos Show Polar Bears In Captivity Around The World,"""I found that the combinations of polar bears in man-made habitats look strange in almost every case on Earth.""","A compelling photo series is challenging the way that humans look at and understand wild animals kept in captivity. Photographer Sheng Wen Lo, who is from Taiwan but based in the Netherlands, began taking pictures of polar bears in zoos in 2014. The resulting photo series, titled ""White Bear,""?depicts bears in 26 different zoos throughout Europe and China. ""the series is not about polar bears, but about captive wild animals on display, the dilemma between its intension and cost,""?he said in a statement sent to The Huffington Post.-""It is not about whether animals are suitable for captive programs, but rather about whether some animals are not the ideal species to be kept in captivity.""?Lo pairs his photos with a video project, ""the March of the Great White Bear,""?that highlights pacing behavior ""?typically seen as a sign of stress ""?in polar bears in several zoos. His photos also explore the strangeness of habitat modifications that appear to be designed with human spectators in mind ""?like painting rocks white to mimic ice and snow, for instance. ""I found that the combinations of polar bears in man-made habitats look strange in almost every case on Earth,""?he said. ""I understand it is difficult to use a real iceberg but what is the point of just painting one instead?""?Lo said he got the idea after two experiences of seeing polar bears ""eating grass""?at a zoo in San Francisco and at the Bronx Zoo in New York City. While he did photograph the Bronx Zoo, the image didn""t make it into the final series. Lo made an effort not to seek out stereotypically ""sad-looking""?shots, he said. And he noted that he's not against zoos as institutions. ""I do think that zoos and aquariums have positive potentials and modes, especially when they function as an educative shelter that take care of local, injured animals or those rejected by their mother or group,""?he said. ""White Bear""?will be on display at FORMAT Photo Festival in Derby, UK from March to April, Fotofestival Naarden-from May 20 in the Dutch city of Naarden, and during the September OrganVida Photo Festival in Croatia. H/T National Geographic Share this slide: Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -2884,2017/3/18,http://www.huffingtonpost.com/2017/03/18/scandal-be-damned-josh-duggar-is-expecting-his-gulp-fifth-child_n_15449026.html,Scandal Be Damned: Josh Duggar Is Expecting His *Gulp* Fifth Child,Congratulations?,"When in doubt, procreate is essentially the Duggar family's motto, so we should really stop being surprised when a member of their small child army announces a new baby is on the way.- That being said, we did do a double take when Josh Duggar-and his hero of a wife Anna announced on their family's website on Friday that they'r expecting their fifth child together. The couple are already parents to Mackynzie, 7, Michael, 5, Marcus, 3, and Meredith, 19 months.- If you are trying to remember which Duggar Josh is, he's the one whose been at the center of a seemingly endless string of scandals over the past couple years, including the-sexual molestation of underage girls, Ashley Madison-style adultery-and addiction to pornography.- ""For nearly the last two years, we have quietly worked to save our marriage, focus on our children, and rebuild our lives together as a family. Doing so is never easy after a breach of trust,""?the pregnancy announcement begins.-""We're learned that a life of faith and rebuilding a life together is simply done one day at a time,""?the post continues. ""As we continue our journey as a family and rebuild our lives, we are delighted to share with you that we are expecting a new baby boy later this year,""?the post continues. ""Beauty comes from ashes and we cannot wait to see and kiss the face of this sweet new boy!""?Duggar has largely stayed out of the public eye since completing a faith-based rehab treatment in 2015 following his various scandals.-The last we heard from Duggar he was being sued by a man who claims the former reality star used his photo on OkCupid and Ashley Madison-to meet women.- A month later, the couple celebrated their eighth anniversary commemorated by a rare photo featuring the couple on the Duggar family's Facebook page, praising-""God's redemptive love in your lives.""?Congratulations?- Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2885,2017/3/18,http://www.huffingtonpost.com/2017/03/18/trump-germany-nato-funding_n_15449022.html,"Donald Trump: Germany Owes 'Vast Sums Of Money' To NATO, U.S.",His demands came the morning after he met with German Chancellor Angela Merkel.,"Germany owes NATO ""last sums of money""?and must pay the U.S. more for the ""powerful, and very expensive""?defense it provides, President Donald Trump tweeted Saturday. Trump complained in his first tweet about ""Hake news,""?after his refusal to shake German Chancellor Angela Merkel's hand upon request at the Oval Office was widely reported, before moving on to make his wild claim on NATO debt. Despite what you have heard from the FAKE NEWS, I had a GREAT meeting with German Chancellor Angela Merkel. Nevertheless, Germany owes..... ...vast sums of money to NATO & the United States must be paid more for the powerful, and very expensive, defense it provides to Germany! Trump has repeatedly complained that the U.S. provides the ""lion's share""?of funding for the intergovernmental military alliance, and that America has been ""ripped off""?by other NATO members, including Germany. He has also slammed NATO as being ""Absolete.""?But Douglas Lute, a former U.S. ambassador to NATO under President Barack Obama, said no country technically ""Awes""?the United States anything. Rather, each NATO member has its own military and own defense budget, and works with other signatories for the common defense. He said most European nations dramatically reduced their military spending in the 1990s with the breakup of the Soviet Union. That mindset only changed in 2014, following the Russian invasion of Ukraine and the annexation of Crimea,-and the self-described Islamic State's declaration of a ""Caliphate""?in Syria ""?right on the border of NATO member Turkey. Lute said a NATO summit that year forged the agreement in which every member agreed to spend at least 2 percent of its GDP on defense by 2024. NATO members are now increasing, no longer reducing, their military budgets. Last year, Germany spent 1.19 percent of its GDP on defense, falling short of the spending target. ""the reality today is that NATO has not only stopped, but reversed the trend and is two-and-a-half years into a 10-year plan,""?Lute said. This article has been updated with comment from Lute.- Share this slide: Learn more", -2886,2017/3/18,http://www.huffingtonpost.com/2017/03/18/rex-tillerson-traveling-press_n_15448382.html,"Rex Tillerson Defends Not Taking Reporters On Foreign Trip, Says He Doesn't 'Need' Them","""I'm not a big media press access person.""","Secretary of State Rex Tillerson defended the State Department decision not to bring the American press corps with him on his trip to Asia, saying he wasn""t ""A big media press access person.""?In an-interview with the conservative Independent Journal Review, the only outlet-allowed on the trip, Tillerson said he would evaluate whether to take reporters with him on a case-by-case basis, depending on whether he needed them to communicate his message or not. ""First and foremost is what is my mission and why am I going? How can I best accomplish that mission? What's the most effective way for me to do that? I'm not a big media press access person. I personally don""t need it,""?said the former ExxonMobil CEO in the interview, published Saturday. ""I understand it's important to get the message of what we'r doing out, but I also think there's only a purpose in getting the message out when there's something to be done.""?Some reporters were quick to point out that the job of the press isn""t simply to communicate the needs of the secretary of state or his department, but to hold America's chief diplomat accountable. Rex Tillerson does not appear to understand that he now works for the U.S. taxpayer, not ExxonMobil:https://t.co/iQmaYHinnl Tillerson has no concept he doesn't work for Exxon shareholders; he works for taxpayers who pay his salary & need to know what he does w/ it https://t.co/QoqqB5tiEI Tillerson also said that excluding the press allowed the State Department to save money. President Donald Trump wants to cut the department's budget by 29 percent. ""Primarily it's driven ""?believe it or not, you won""t believe it ""?we'r trying to save money,""illerson said. ""I mean, quite frankly, we'r saving a lot of money by using this aircraft, which also flies faster, allows me to be more efficient, and we'r going to destinations that, by and large, the media outlets have significant presence already, so we'r not hiding from any coverage of what we'r doing.""?He added that he didn""t think the press would have less access because many outlets have foreign bureaus in the places where he travels. Facing economic challenges, however, several outlets have shuttered their foreign bureaus in recent years. Journalists following the secretary of state around on their own may also have a more difficult time covering him because of visa issues and commercial flight schedules Earlier this month, editors at several major outlets-published a letter-expressing concern over Tillerson's decision to leave the press behind. Because journalists were not traveling with Tillerson, they could not verify a report in the Korea Herald that he had canceled a dinner with South Korean officials because he was fatigued. Asked about the incident during his interview with the Independent Journal-Review, Tillerson denied that it was true, perhaps inadvertantly demonstrating how important it is to have U.S. reporters with him. ""they never invited us for dinner, then at the last minute they realized that optically it wasn""t playing very well in public for them, so they put out a statement that we didn""t have dinner because I was tired,""?Tillerson said. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2887,2017/3/18,http://www.huffingtonpost.com/2017/03/18/tom-perez-dnc-transition-team-progressive-critics_n_15447074.html,DNC Adds To Transition Team After Progressive Complaints,Two prominent Bernie Sanders supporters are among the additions.,"The Democratic National Committee added six people to its transition advisory committee on Friday, following complaints from some progressive activists. Critics expressed frustration that the list of 29 people that DNC chair Tom Perez announced on Wednesday included only two supporters of Minnesota Rep. Keith Ellison, of whom just one was an ally of Sen. Bernie Sanders (I-Vt.). By Saturday morning, there were six more committee members, including DNC vice chair candidate and Sanders campaign veteran Melissa Byrne, Nebraska Democratic Party chair Jane Kleeb, an Our Revolution board member, and California Democratic National Committeeman Michael Kapp, all of whom backed Ellison in the DNC chair race. Liz Jaff, a young executive at the political crowdfunding site Crowdpac, who narrowly lost a bid for DNC vice chair after a campaign that earned the respect of diverse elements of the party, is also joining the advisory panel. Figures from the more moderate wing of the party were added to the committee as well: Kevin O'Donnor, assistant to the general president of the International Association of Fire Fighters; and Mike Monroe, chief of staff for the AFLCIO's building and construction trades department. The IAFF and several building trades unions, which have clashed with environmentalists over their support for pipeline construction, endorsed Perez in the chairmanship race. Xochitl Hinojosa, a spokeswoman for Tom Perez, said that the list of committee members was not final, since they are still adding more people. ""We want the transition team to be as diverse as possible and reflect the big tent of our party,""?she said in a statement. ""tom Perez believes that everyone has something to add towards rebuilding our party and that is why we will continue to involve various leaders and activists from coast to coast.""Perez's decisions are fraught with particular significance for the party's left flank, however. Many grassroots activists viewed Perez's victory over Ellison in the DNC chairmanship race as yet another sign that the Democratic establishment is determined to marginalize the party's populist wing, even after the establishment's preferred candidate in Hillary Clinton lost to Donald Trump. In a nod to these concerns and the historically close margin of the race, Perez named Ellison his deputy chair immediately after winning in late February.- But in drafting the first list of committee members, Perez apparently did not realize just how closely the contingent of Sanders loyalists is watching the DNC for evidence that they, and their priorities, are being excluded from party decision-making.- Winnie Wong, a founder of the People for Bernie Sanders, who was among the original committee's critics, praised the addition of Sanders backers. ""Pleased to see the addition of Melissa Byrne and Jane Kleeb to the DNC transition advisory team,""?Wong said. ""they are both amazing organizers from the grassroots who can authentically rep the Bernie wing of the party.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2888,2017/3/18,http://www.huffingtonpost.com/2017/03/18/sheriff-wedding-invite-funny_n_15447070.html,Sheriff Invites Guests To His Wedding In Criminally Funny Way,"""Their invitation nearly gave everyone a heart attack.""","A sheriff invited guests to his wedding in the best way he knew how. Rather than send out a traditional invite, the law enforcer and his bride -to-be issued their friends and family with a highly realistic spoof summons: At first glance, the fake ""notice to Appear""?bears a striking resemblance to a citation.-But on closer inspection, it's clear that it's actually an invite to the nuptials of two people identified as Matt and Nancy on May 26. Reddit user Exsupervillain shared two photographs of the invite online Thursday, and the images are now going viral.-""Ty aunt is marrying a sheriff,""?the Redditor wrote. ""their invitation nearly gave everyone a heart attack.""?Not much else is known about the invitation, its legitimacy or the couple named in the post. The Huffington Post has reached out for further information. CORRECTION: An earlier version of this article stated that the nuptials were due to be held on April 14. We'r basically your best friend... with better advice. Learn more", -2889,2017/3/18,http://www.huffingtonpost.com/james-zogby/no-great-deal-on-the-horizon_b_15447364.html,No 'Great Deal' On The Horizon,President Trump appears to be 'backtracking' on some of candidate Trump's more provocative positions.,"It looks like the Trump Administration has come to agree with the conclusion reached by every US president and central command chief since the Gulf War of 1991: that resolving the Israeli-Palestinian conflict is necessary to promote regional security and US strategic interests in the Middle East.- When viewed this way, the struggle for justice for Palestinians becomes not an end in itself, rather it is the price to be paid so that the US can successfully consolidate its regional allies in order to confront threats to stability, whether from Saddam's Iraq, revolutionary Iran, or non-state terrorist entities. This new appreciation for the functional role of Israeli-Palestinian peace has caused President Trump to appear to ""backtrack""?on some of candidate Trump's more provocative positions on the issue. He's stalling on moving the US Embassy from Tel Aviv to Jerusalem; he's expressed reservations about Israel's settlement expansion program; and while he refused to publicly pressure Israeli Prime Minister Benjamin Netanyahu on the need for a ""gwo-state solution,""?leading Cabinet members have been emphatic the Administration is committed to that goal.- All of these ""signals,""?coupled with Special Envoy Jason Greenblatt's recent visit to Israel/Palestine have raised expectations that the Trump Administration may be serious about achieving a ""great deal""Involving an Israeli-Palestinian peace and a regional peace arrangement between Israel and US allies in the Arab World. Expectations were further fueled by reports that Greenblatt's visit left Netanyahu unsettled and Palestinian President Mahmoud Abbas reassured. I can""t share this upbeat assessment because, for several reasons, I remain pessimistic about the prospects of this entire undertaking. In the first place, Israel's leadership has no interest in any reasonable solution that meets minimum Palestinian requirements. When he was in Washington, Netanyahu, who often states that he wants ""negotiations without preconditions,""?made it clear that this demand applies only to the Palestinian, since he follows this statement by presenting his own non-negotiable terms: Palestinian recognition of Israel as a ""Jewish State""?and full Israeli security control over the land west of the Jordan River. These preconditions ask Palestinians to accept second class citizenship for their brethren in Israel, while leaving the West Bank under permanent Israeli military control. Then, there is the issue of settlements. It has been reported that Netanyahu is seeking to secure from the Trump Administration a better agreement than the one then Israeli Prime Minister Ariel Sharon obtained from President George W. Bush. The Israelis want US permission to continue settlement growth even beyond what they term ""settlement blocs""?that house the majority of settlers in the West Bank. Netanyahu will not accept limits in what the Israelis have unilaterally termed ""East Jerusalem""�—but which is, in fact, an extensive swatch of land encompassing about 10% of the West Bank and 22 Palestinian villages. Nor will he accept any restrictions in the Jordan Valley""�where the Israelis have seized and are exploiting that region's most fertile land. Given these preconditions, what is left for Palestinians are a series of disconnected cantons that can never form a viable entity. Netanyahu believes in retaining control over Eretz Israel and has expanded settlements toward achieving that end. He has, however, learned to feint in the direction of supporting two states in order to ease international pressure, all the while continuing to build more settlements and consolidating control over more Palestinian land. Another tactic Netanyahu has used is to argue that he can""t make too many concessions on the issue of settlements for fear of losing his governing coalition. This argument is, at best, disingenuous since on a number of occasions it has been clear that if Netanyahu truly wanted peace, he could have shed some of his current partners in favor of forming a more centrist coalition - something he has always been loath to do. Even beyond settlement expansion, another reason to be pessimistic are the 600,000 settlers who currently populate the West Bank and ""East Jerusalem""? The very position of the settlements and the disposition of the settlers who reside in them has created a near irreversible situation in the occupied lands. Any reasonable resolution guaranteeing Palestinian sovereignty and viability will require the removal of a large number of these occupiers. Given the state of Israeli politics today, it is impossible to imagine a scenario where any Israeli government will or even can make such a move. Finally, the demand made by Israel and accepted by the White House that any peace arrangement must come from direct Israeli-Palestinian negotiations without external intervention means that the process is doomed from the start. The asymmetry of power between the two parties and the fact that Israel is the occupier with total control, while the Palestinian Authority is a dependency with no leverage means that instead of negotiations we will have Israel dictating terms which Palestinians can only accept or reject. As has been the case in the past, this is a recipe for disaster. Arab States may be willing to give President Trump a chance to convene an international conference since, given the current unsettling state of affairs in the region, they may not want to alienate the US Administration. But unless the White House is willing to get tough and get smart and present a bold new challenge to Israel laying down the law on settlements and the just requirements for peace, it doesn""t stand ""A snowball chance in hell""?of succeeding. Since I don""t expect bold, just, or smart, I'm not expecting any ""great deal""?or the formation of any overt regional alliance-any time soon. Follow @jjz1600 for more. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2890,2017/3/18,http://www.huffingtonpost.com/2017/03/17/cheri-bustos-build-the-bench-democratic-candidates_n_15446486.html,Dems Are Furious About Trump. This Lawmaker Wants Them To Ride That Anger Into Office.,Rep. Cheri Bustos (D-Ill.) has a boot camp that's training local progressives how to run for office.,"PEORIA, Ill. ""?Nikita Richards has thought about running for public office for as long as she can remember. She just figured she didn""t fit the mold. Richards, a 34-year-old public relations consultant who lives in Bloomington, doesn""t mingle with the Democratic elite. She's not rich. She's an African-American single mom in a predominantly white Republican area. Her closest brush with politics has been working with clients who are local elected officials. But something changed after Donald Trump won the presidency in November. Richards""?initial feelings of shock and devastation gave way to a sense of urgency. She started getting involved with local progressive groups, meeting up with others to write letters to their congressman, Rodney Davis (R-Ill.), about preserving free preventative care services amid health care reform. She met a woman running for town supervisor ""?a Democrat, roughly her age, running for a seat Republicans have held for years. The woman told Richards that Democrats needed her, too, and that they would have her back if she decided to run for office.- ""I'd never had anyone say that to me,""?said Richards. ""she was just like, ""I see something in you.""?This is how Richards came to be one of a few dozen people who gathered in Peoria in late February for Build the Bench, an all-day boot camp designed to train Democrats on how to run for local office. Rep. Cheri Bustos (D-Ill.) organized the event, which offered attendees an extraordinary level of nuts-and-bolts details on how to run a successful campaign, with presentations from organizers of-Barack Obama's presidential campaign and representatives of the Democratic Congressional Campaign Committee. By the end of the day, Richards was brimming with determination and armed with a binder full of notes. She even had a local office in mind that she planned to run for, though she didn""t want to give it away. ""I was scared,""?she said. ""now I'm ready.""?The Democratic Party is seeing an explosion of interest around the country from people like Richards ""?progressives who have realized, in the wake of Trump's win, that the future of the party is up to them. These newly galvanized people are organizing protests locally and nationally. They'r flooding the phone lines in Congress. And they'r ready to run for office. One grassroots mobilization group, Run for Something, has already had 7,500 millennials commit to running for state and local office, according to co-founder Amanda Litman ""?and they just launched on Jan. 20. Build the Bench is also looking to channel that energy. Bustos says one of the most effective things Democrats in Congress can do is recruit and train people to run for local seats in their districts ""?town council, school board, maybe even the county coroner (yes, this is an elected position in some places). The point is, it's getting more Democrats started in politics. ""people are energized. We're got to do something about that,""?she said. ""I can""t think of a better thing to do than to get people ready to run for office. That's what this is all about.""?Bustos came up with the idea for Build the Bench last year, when, as vice chair of recruitment for the DCCC, she noticed the party was struggling to find good candidates. ""I was like, how in the heck can we not find someone great to run when there's 700,000 people who live here? But we couldn""t, in several areas.""?She realized there may be lots of people interested in public service but they just don""t know how to get started, or they feel intimidated. She began personally recruiting people in her district ""?sometimes just random people she met who impressed her ""?for Build the Bench. She's the only Democrat in Congress spearheading a program like this. The boot camp is an intensive but casual affair. Bustos rented out a union hall in Peoria from 9 to 5 on a Saturday and provided granola bars, doughnuts and coffee. Turkey sandwiches arrived later for lunch. Campaign veterans rotated in throughout the day, giving crash courses on digital marketing and how to construct an effective stump speech. They gave insider tips on how to ask someone for $1,000 without making it totally awkward: Take a long sip of water immediately after asking, which seems bizarre-(remember Marco Rubio's swigs of water?) but apparently it keeps you from rambling. There were exercises, too, like writing a 30-second campaign pitch and practicing it in front of the room. Prospective candidates cheered each other on throughout these exercises and offered advice on what worked and what didn""t. In between sessions, they mingled and traded stories about their political plans. Bustos developed the program with political advisers like Emily Parcell, an Obama campaign alum who's worked on local, state and national campaigns. It costs only a few thousand dollars to put it on, said Bustos,-who paid for it out of her campaign money. She held her first boot camp in May 2016 and capped it at 25 people to keep it more personal. She had to increase the cap to 34 people for the February session due to interest ""?and still had a few dozen people on a waiting list. Bustos is thinking beyond local politics. Grooming stronger Democratic candidates at the local level means a stronger set of candidates for statewide and national runs down the road. Sometimes all it takes to get someone interested in public office is asking if they're considered running, Bustos said, and pointing out the potential they have. That's how it happened for her when she was first asked to run for East Moline City Council in 2007. ""It wasn""t something that I thought of,""?said the three-term congresswoman. ""I wouldn""t have done it if I hadn""t been asked.""?She told the group she was initially put off by the idea of running for office and declined. She worried about being able to financially support her family while running, and her husband was opposed to it. But she found a way to make it work and got her husband on board. Richards could relate to Bustos""?concerns about work-life balance. ""that's real life,""?she said. ""It's not as easy for a woman to pick up and go into a field like this as it may be for a man.""?Every boot camp attendee HuffPost talked to said Trump was a factor in their decision to look at running for office. But they had other reasons, too. Jodie Slothower, 57, is already running for clerk of Normal Township. Democrats haven""t had a seat on the board since 1971, and the current slate of board members is almost entirely white Republican men. There are six Democrats vying for eight seats this year, and five of them are women. Slothower thinks the surge of progressive momentum in her town can push them to victory in the April 4 race. Sen. Dick Durbin (D-Ill.) even gave their small township election a shout-out recently. ""We'r engaging people,""?said Slothower. ""people are upset, and a lot of them are women that, even before the Women's March, got involved. We'r just so frustrated on a very personal level.""?Slothower, a former college teacher, made her foray into politics in November, when she and a friend launched Voices of Reason, a group aimed at mobilizing Democrats in central Illinois to fight Trump's agenda. It's a traditionally GOP region, so she expected maybe a couple of hundred people to join. But they'r at 1,600 members and growing. Amid some of her activism ""?which has included protesting Rep. Davis for not holding a town hall on health care ""?Slothower heard about the upcoming Normal elections and decided to run. (She was unimpressed by HuffPost's idea for a campaign slogan, Do You Really Want Trump As The New Normal? Vote Democratic. ""I don""t know,""?she said politely. ""the jokes don""t really work well. We're heard them so long.""? Will Lee, a 31-year-old attorney, said he's running for a seat on the Whiteside County board in 2018 because he's pissed off at the Democrats on the board who recently appointed a state's attorney who had voted Republican ""every year of his life, except for the last primary,""?said Lee. They didn""t even interview a black Democratic woman who applied for the job, he said, which is unacceptable to him. ""This is something where I want to put my money where my mouth is,""?said Lee, who lives in Sterling with his wife and 4-year-old child. ""I do civil rights and employment law. We don""t make as much money as other attorneys. But I get to wear my pink tie and go fight for people.""?Lee's father is the mayor of Sterling, and while he had thought about running for statewide office, it seemed daunting. He didn""t want to choose between politics and his legal career or parenting. But running for a county seat seems doable. ""I used to think I was chickenshit for not making any change. But now I have a Democratic county board appointing a Republican to state's attorney. This is an important seat,""?Lee said. ""I couldn""t get him fired, but I can say, ""I""�m going to cut his budget. I can tie his hands.""?That is real.""?Others, like Shanna Shipman of Peoria, left Build the Bench clearly energized but more reluctant about the timing of a run for office. Shipman, 37, is a single mom of four who works full time at the American Institutes for Research. She wants to make sure her kids remain her priority for now, so she's giving herself four years before considering a campaign. ""I do not take lightly the profound shift that will happen once pursuing a public servant life,""?said Shipman. ""�And it's something, when I do it, I'm going to do it full-out.""?She followed up with The Huffington Post after the boot camp to with updates on the surge of activity in her community. ""�Momentum going strong in my town,""?she texted weeks later, in early March. ""�You could attend a different meeting every day of the week if you wanted ""?women's rights, religious tolerance, environmental issues""?Energy seems to be sustaining, and I really do feel this new urgency and participation is a silver lining that may impact outcomes next cycle.""?In the end, Shipman may decide to run for office for the same reason she's not ready to right now: her kids. ""I look at my 14-year-old, who knows that I""�ve been upset about how certain things are happening, and I would like, rather than her impression be that mom is complaining ""?that mom's acting. You know?""?Bustos is already planning her next Build the Bench boot camp in a different town in her district, and she's hoping to franchise it for other Democrats. She's been working with the DCCC to present a template to colleagues to roll out the program in their districts. She has also talked to newly elected Democratic National Committee chair Tom Perez about it. ""This is not a major time commitment for anyone,""?she said. ""�You just ask somebody to commit a full day, where they will walk away from that event and be prepared to run for office and to know what it takes to win.""?Looking around at the group of enthusiastic Democrats she assembled, Bustos added, ""I hope there's a future congressman or woman here.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -2891,2017/3/18,http://www.huffingtonpost.com/2017/03/15/neil-gorsuch-students-with-disabilities_n_15446328.html,Neil Gorsuch Made Up A Legal Standard That Weakens Promises To Kids With Disabilities,Now his would-be colleagues on the Supreme Court may rule he was wrong.,"WASHINGTON ""?At the Supreme Court podium in January, lawyer Neal Katyal was hit with a series of questions that he wasn""t really ready for. The justices wanted to know who came up with the legal standard-""merely more than de minimis""�?a phrase that could undercut the law for students with disabilities across the country. If upheld, the standard would reduce the educational benefits those children are promised under the federal-Individuals with Disabilities Education Act. ""What's the origin of this phrase, ""more than de minimis""? Who thought this up?""?asked Justice Samuel Alito. The law generally defines-""de minimis""?as being so small as to be legally insignificant. ""Who invented it?""?asked Justice Ruth Bader Ginsburg, noting that it isn""t found in the Supreme Court's leading precedent-on states""?responsibilities under the IDEA.- While Ginsburg was setting up her question, Justice Elena Kagan jumped in to emphasize the word ""merely""�?as if to underscore that the standard Katyal was defending is indeed a stingy one. The accomplished appellate attorney, who is representing a Colorado school district in the dispute, didn""t have a good answer, saying only that the standard was developed over time by the lower courts. But he would have nailed the response if he simply said, ""neil Gorsuch.""?Judge Gorsuch, who is now President Donald Trump's eminently qualified Supreme Court nominee, broke new ground when he used ""merely more than de minimis""n a 2008 ruling. That decision has become the touchstone for-Endrew F. v. Douglas County School District, the case the justices heard in January and will likely decide by the end of June. Gorsuch picked the phrase-""Aut of the blue,""?said Jack Robinson, the Colorado lawyer representing the child at the center of the current case. Advocates and parents of students with disabilities are watching the case closely because it could, for the first time in more than 30 years, clarify the benchmark that schools must meet when drawing up-individualized education plans for kids under the IDEA. The federal law, which Congress has improved several times, is designed to ensure that children with disabilities have the opportunity to receive a ""Hree appropriate public education.""?One of the complexities comes in determining what constitutes an ""Appropriate""?education for kids with more disabling conditions. Some appeals courts have set a higher standard: Schools must provide the children with a ""meaningful educational benefit""?that allows them to thrive in school. At least five of the federal circuit courts take a more modest approach: The educational benefits contemplated in students""?individualized plans need only be more than trivial-""?the ""more than de minimis""?test. But in the six states-covered by the U.S. Court of Appeals for the 10th Circuit, including Colorado, the bar is even lower: merely more than de minimis.-Or the bare minimum. The standard ""Las the effect of depriving children with disabilities of the benefits Congress has granted them by law,""?the Obama administration told the Supreme Court last year in a brief urging the review and ultimate rejection of the 10th Circuit standard in the Endrew F. case. The 10th Circuit is Gorsuch's court.-According to Robinson, that court had already adopted a low bar in 1996, when it first embraced ""more than de minimis.""?But Gorsuch's 2008 opinion was the first in the nation to add the qualifier ""merely""o the mix, Robinson said. That may explain why Alito, Ginsburg and Kagan were mystified by its origins. No version of the term appears in Board of Education v. Rowley, the 1982 Supreme Court case that set the IDEA baseline which the justices are now trying to clarify. Gorsuch ""gook some wording from a previous case, but then he added his own twist,""?said Jeff Perkins, whose son Luke's struggles with autism gave rise to the lowest-of-the-low standard in the 10th Circuit. Perkins opposes the Gorsuch nomination and is expected to testify before the Senate Judiciary Committee next week, when confirmation hearings begin. Robinson had represented the Perkins family a decade ago, when their case,-Thompson R2-J School District v. Luke P., went before a three-judge panel including Gorsuch. Luke's parents sued the Colorado school district because it had refused to reimburse them after they moved their son to-Boston Higashi School, a specialized residential facility for children with autism. Such private school placements, paid for by the public school district, are allowable under the IDEA in limited circumstances. It's not that the school district wasn""t doing what it could to meet Luke's educational needs. As Gorsuch put it, his ""life away from school during the same time paints a much different picture.""?Berthoud Elementary, where Luke attended second grade, didn""t seem equipped to prepare him for home life. ""Luke was unevenly tempered, often displaying inappropriate and sometimes violent behavior at home and in public places such as grocery stores and restaurants,""?Gorsuch wrote. ""He developed various sleep problems ""?going to bed at odd hours, waking up frequently at night, and refusing to sleep in a bed. Luke also developed a habit of intentionally spreading his nighttime bowel movements around his bedroom. In addition, although Luke became toilet trained at school by the time he was in first grade, he was not able to transfer this skill to the home and other settings away from school.""?Based on this record, a hearing officer, an administrative judge and a federal district judge agreed in three separate decisions that the school district needed to reimburse Luke's parents for a private school placement ""?which Robinson and Perkins both said made a world of difference for Luke.- ""Within a very short period of time, he becomes a functioning human being,""?Robinson said. The lawyer added that where a child's educational plan recommends live-in placement at a specialized school, many school districts simply comply. But Gorsuch saw things differently. He led the 10th Circuit panel in reversing those three prior decisions, emphasizing that the IDEA benefits available to children like Luke were ""limited in scope.""?""We sympathize with Luke's family and do not question the enormous burdens they face,""?he wrote in the decision, which effectively forced the Perkins family to pay for their son's education out of pocket. ""ourjob, however, is to apply the law as Congress has written it and the Supreme Court has interpreted it.""?Gorsuch added that the statute only requires schools to create an individual educational plan that allows a student to achieve ""some progress""oward the goals identified in that plan. Or in the judge's more telling phrase, ""merely more than de minimis""?progress. Luke's case has gained attention from those who, like Luke's father, oppose the Gorsuch nomination. The National Educational Association, the largest teachers union in the country, cites it in a report critiquing his record-on the rights of students with disabilities. In their decision, Gorsuch's potential future colleagues could raise the standard he set. The Supreme Court-""expressed significant skepticism over the very low bar that Judge Gorsuch's opinion espouses,""he union report observes. ""If the Supreme Court gives a different signal, that will empower parents to expect more and for school districts to feel that they have to deliver more,""?Robinson said. The judge's defenders, meanwhile, have argued that he was simply applying the law as the high court understood it in 1982. Liberal Harvard law professor Noah Feldman wrote in a column that Gorsuch's interpretation of what the IDEA requires was ""plausible.""?Today Luke is 22 and has aged out of the special education system. He still lives in Massachusetts. He participates in a work program, goes shopping, eats at restaurants and engages in other activities that likely wouldn""t have been possible without the special school. ""Luke has a good life, and he has a life that he simply would not have been able to have without an appropriate education,""aid his father, who still can""t get over the 10th Circuit's ruling. ""how could [Gorsuch]-have imagined that Congress would pass a law whose goal was such a trivial standard?""?Perkins wondered. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2892,2017/3/18,http://www.bbc.co.uk/news/world-europe-39314250,Orly airport: Man killed after seizing soldier's gun,French security forces have shot dead a gunman as he attacked a patrol at Orly airport south of Paris.,"French security forces have shot dead a gunman as he attacked a patrol at Orly airport south of Paris. Ziyed Ben Belgacem was killed after putting a gun to a female soldier's head saying he wanted to ""die for Allah"", officials say. Earlier on Saturday the 39-year-old had been involved in a shooting and then a carjacking in the Paris area. Ben Belgacem had been reported as radicalised in the past, and was on a police watch-list. His criminal record included convictions for armed robbery and drugs offences, Paris prosecutor Francois Molins told reporters. He fell under the influence of Islamist radicals was while serving prison time. The attack comes at a sensitive time. France has presidential elections starting next month and remains under a state of emergency. The soldiers at Orly were part of Operation Sentinel - involving thousands of soldiers deployed to provide back-up to the police after the Charlie Hebdo attack in January 2015 and the Paris attacks of November 2015. Early on Saturday morning, Ben Belgacem was stopped at a checkpoint in Garges-les-Gonesse, north of Paris, where he lives. He fired at police with a pellet gun before escaping in a car that was later found abandoned. Police say he then stole a car at gunpoint from a woman at Vitry, south of Paris. That car was later found at Orly airport. Ben Belgacem arrived at the airport and attacked the military patrol in the south terminal. He tried to seize the servicewoman's automatic weapon, put his gun to her head and said: ""I'm here to die for Allah. In any case people are going to die."" He was then shot dead by two other soldiers. A copy of the Koran was found on his body, Mr Molins added. Intelligence agents searched his home in Garges-les-Gonesse for evidence of Islamist sympathies, but reportedly found nothing. However traces of cocaine was discovered during the search. The BBC's Hugh Schofield in Paris says the picture is building up of a man on the criminal fringes of society, who also consorted with Islamist radicals. Orly - located 13km (8 miles) south of Paris - is the capital's second-largest airport. Both the west and the south terminals were closed during the security operation. An estimated 3,000 passengers were evacuated. Many flights were suspended, with some arrivals diverted to Charles de Gaulle airport. But the terminals reopened later in the day and normal flight operations were said to be resuming. Ellie Guttetter, 18, from the US said: ""We were sitting in Hall Three when all of a sudden people started running and telling us to run with them. ""The people running were passengers and flight attendants. It was pretty chaotic and everyone was panicking - it was scary."" Another eyewitness, Meredith Dixon, described seeing panicked airline personnel, with no security or police personnel to usher people outside the airport complex. ""It was complete chaos,"" she told the BBC. ""There were no alarms. No overhead announcements. No organised evacuation. People just began running."" Were you at the airport? You can share your experience by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -2893,2017/3/18,http://www.bbc.co.uk/news/business-39315098,G20 finance ministers drop anti-protectionist pledge,Finance ministers from world's biggest economies have dropped an anti-protectionist commitment after opposition from the US.,"Finance ministers from world's biggest economies have dropped an anti-protectionist commitment after opposition from the US. G20 ministers left the two-day meeting without renewing their long-standing pledge to bolster free trade. Last year, the group of the world's 20 largest economies vowed to ""resist all forms of protectionism"". But since then, President Donald Trump has taken office, and is aggressively pursuing an ""America First"" policy. His policies include penalties for companies which manufacture their products abroad. Speaking after the meeting ended, US Treasury Secretary Steve Mnuchin said he would not read too much into his country's desire to change the language behind the comminique, as ""what was as in the past"" releases was ""not relevant"". Mr Mnuchin added he had been ""very clear that we do believe in free trade but we believe in balanced trade"". The communique, which was published at the end of the meeting in Baden-Baden with the agreement of all attending delegates, also failed to include a vow on climate change. Mr Trump has already promised to slash environmental funding. The exclusion of the two issues in the communique was disappointing, French Finance Minister Michel Sapin said. ""I regret that our discussions today were unable to reach a satisfying conclusion on two absolutely essential priorities that our world and which France would have liked to see the G20 continue to take firm and concerted action on."" However, it did include pledges on a determination to fight tax avoidance, clamp down on terrorist financing and strengthen private investment in Africa. It started so well. With the sun shining in the German spa town of Baden-Baden, the first annual meeting of the G20 got under way with a reassurance from the US Treasury secretary Steve Mnuchin that the White House was not interested in instigating international trade wars. The combined efforts of Germany, and nascent free-trade champions China, it was thought, would temper some of Washington's threats of imposing punishing border tariffs and renegotiating long-standing trade agreements. But two days later, the communique approved by all the assembled finance ministers was published without a commitment to bolster free trade and dropped a pledge to ""resist all forms of protectionism"" from the previous year's document. German Finance Minister Wolfgang Schauble said the meeting had reached an impasse when it came to the issue, and added that his counterparts could not ""force partners"" - read the United States - ""to go along with wording with which they don't agree"". Mr Schauble insisted that there had been ""a lot of goodwill"" at the meeting, but whether that goodwill extends to the future trade relationship with the world's largest economy is now very much in doubt.", -2894,2017/3/18,http://www.bbc.co.uk/news/uk-39314462,William and Kate meet French attack survivors,The Duke and Duchess of Cambridge have met survivors of the 2015 Bataclan terror attack during a visit to Les Invalides military hospital in Paris.,"The Duke and Duchess of Cambridge have met survivors of the 2015 Bataclan terror attack during a visit to Les Invalides military hospital in Paris. Praising the survivors for their bravery, the duke told them: ""We think you are very strong and very brave, you've made amazing progress."" The couple's official two-day visit began on Friday, and is seen as a mission to promote British interests. They also visited the Musee d'Orsay and saw France v Wales in the Six Nations. Some 90 people were killed by gunmen at the Bataclan music venue in Paris in November 2015. Another 40 people died in attacks elsewhere in the city on the same night. The royal couple met a 25-year-old, called Jessica, who was shot seven times in the leg, hip and back as she dined with friends on her birthday at La Belle Equipe restaurant, and Kevin, 28, a Bataclan concert-goer shot in the leg. Jessica, whose friend Victor Munoz was killed with one shot, said: ""At first I was a bit shy and didn't want to talk about it because of all of the pain and grief. ""But now I want to say we are not only victims, we have lives, we have boyfriends, girlfriends, work. ""I want to speak about my friend who died, to honour him. I want people to remember who he was."" As the duke and duchess toured the historic Les Invalides hospital, where they also met war veterans, a man was shot dead as he tried to grab a soldier's gun at Orly Airport in Paris. The incident did not affect their itinerary and there was no sign of security being increased. They later attended a ""Les Voisins [neighbours] in Action"" event at the Trocadero square, highlighting the ties between young people in France and the UK, before moving on to the rugby at the Stade de France. France scored a try and a conversion to win 20-18 over Wales deep into extra time. By Nicholas Witchell, BBC royal correspondent Not since the Queen's visit to the Republic of Ireland in 2011 have the royals had such a clear-cut foreign mission. Not that the British government would ever admit as much, but it is that same government which decides where to deploy the senior royals on their foreign travels - and at the moment the royals are being despatched to countries within the European Union. Prince William and Catherine in Paris over the past two days and then, in July, to Germany and Poland; Charles and Camilla to Italy and Austria in a couple of weeks; and not forgetting that the Queen herself will be hosting a state visit to Britain by the King of Spain in June. The British Royal Family are expected to be strictly non-political at home - but on their official foreign travels they are emblems of Britain and instruments of British foreign policy. And right at the moment - with hugely important and potentially very difficult Brexit talks about to start - they are being sent off in pursuit of British interests. They are, perhaps uniquely, able to represent the bigger picture by drawing attention to the many shared interests the UK has with its European neighbours - interests and endeavours which will continue long after the ink has dried on whatever terms the politicians finally agree for Britain's withdrawal from the European Union. Speaking at the start of the official visit on Friday, the prince said the UK's relationship with France would continue despite the vote to leave the EU. He said the friendship and co-operation between the two nations ""would not change"". It is Prince William's first official visit to the city where his mother, Diana, Princess of Wales, was killed in a car crash in 1997. The trip comes also comes after the duke faced questions over his work ethic for missing a Commonwealth celebration to take a skiing holiday with friends. It led to criticism from some newspapers after a video emerged of him dancing and in a DJ booth during the trip Prince William: How hard has he worked in 2017 so far? Do you have what it takes to work for the Duchess? The couple have travelled without their children, three-year-old George and one-year-old Charlotte. Kensington Palace said the trip was at the request of the Foreign and Commonwealth Office. A spokeswoman for the Foreign Office said: ""Royal visits play a very important role in the United Kingdom's bilateral diplomacy. ""Whilst every royal visit is unique, each visit is designed to support foreign policy objectives and promote closer ties across a range of areas, for example cultural, economic or political, between the UK and the host country.""", -2895,2017/3/18,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39305989,Sturgeon: Holyrood's will 'must and will prevail',"The SNP's Nicola Sturgeon has told her party conference that the will of Holyrood ""must and will prevail"" over a new independence referendum.","The SNP's Nicola Sturgeon has told her party conference that the will of Holyrood ""must and will prevail"" over a new independence referendum. MSPs will debate calling for permission for a vote on Tuesday and Wednesday. Theresa May said ""now is not the time"" for a second referendum and has indicated that the UK government would reject the SNP's preferred timetable. Ms Sturgeon told delegates that refusing the call would ""shatter"" the idea of a partnership of equals. A second referendum has become the focus of the conference after the UK government said it would reject Ms Sturgeon's call for a vote between Autumn 2018 and Spring 2019. Mrs May argues that it would not be fair to hold a referendum before the state of the UK outside the EU becomes clear. But the SNP leader told the party gathering that ""Scotland's future must be Scotland's choice"", citing an SNP manifesto pledge that there could be a new referendum if there was a ""significant and material"" change in circumstances. She said: ""Next week, in line with the mandate secured at last May's election, we will ask the Scottish Parliament to agree that the Scottish people should have the right to choose our own future. ""We will ask parliament to agree that this choice should be exercised at a time when we know the terms of Brexit but before it is too late to take a different path. And we will ask parliament's permission to seek the legal authority that will allow the people of Scotland to have that choice. ""If a majority in the Scottish Parliament endorses that position, the prime minister should be clear about this. ""At that point a fair, legal, agreed referendum - on a timescale that will allow the people of Scotland an informed choice - ceases to be just my proposal, or that of the SNP. ""It becomes the will of the democratically-elected parliament of Scotland."" By BBC Scotland political editor Brian Taylor Brexit may be the trigger for the referendum, but it appears that it is not the first minister's focus with regard to the referendum. That reflects, of course, the fact that there is precious little sign of zeal for the EU, even in Remain-voting Scotland. There are many, indeed, who voted Yes in 2014 but Leave in 2016. Rather, the First Minister focused upon what sort of country Scotland is and might become. To do so, she characterised the UK offer as driven by a hard Right, Brexiteer Tory administration - which she envisaged as enduring for a substantial period. She was offering an ""inclusive"" Scotland in contradistinction to that depiction. In short, she was not suggesting that Scots might choose between membership of the UK and membership of the EU. The choice would be between ""progressive"" Scotland and reactionary UK. Read more from Brian here The Greens have said they will back the SNP in the vote, which follows a two-day debate, giving Ms Sturgeon a majority. The first minister said that to ""stand in defiance"" of this would ""shatter beyond repair any notion of the UK as a respectful partnership of equals"". She added: ""She [Mrs May] has time to think again and I hope she does. If her concern is timing, then - within reason - I am happy to have that discussion. ""But she should be in no doubt. The will of our parliament must and will prevail."" Ms Sturgeon said the case for independence should be made ""with courtesy, understanding and respect"". And she said it was important to ""embrace"" scrutiny of the economic side of the argument, saying ""it will be up to us to demonstrate how difficulties can be overcome"". She added: ""As we debate our future, let's do so openly and honestly. But let no-one - for or against independence - ever seek to run down Scotland's strengths and our great potential. ""We should also be clear about this - those who argue for Scotland to stay in the UK have big economic questions to answer too. We know that down that path lies austerity, cuts and the impact of leaving the single market."" Earlier on Saturday, former prime minister Gordon Brown set out a ""third option"" for Scotland's future, based on more powers being transferred to Holyrood after Brexit. He told a gathering in Kirkcaldy, Fife, that a new form of federal home rule was needed to unite the country and avoid years of ""bitter division"". Mr Brown explained: ""The third option, a patriotic Scottish way and free from the absolutism of the SNP and the do-nothingism of the Tories, is now essential because post-Brexit realities make the status quo redundant and require us to break with the past."" He also said that if Scotland voted for an independence today the country would face greater consequences then it might have done in 2014. Mr Brown said: ""If we leave the British single market, which was not the proposal in 2014 of the Scottish National Party, then a more dramatic set of consequences follow.""", -2896,2017/3/18,http://www.bbc.co.uk/news/uk-england-kent-39315229,Horsmonden crash lorry hits Grade II listed building,A John Lewis lorry has crashed into a Grade II listed building following a collision with another vehicle in Kent.,"A John Lewis lorry has crashed into a Grade II listed building following a collision with another vehicle in Kent. The property on Goudhurst Road, Horsmonden, is used by estate agents Country Cottages and was badly damaged. It is understood both drivers suffered minor injuries in the crash, which happened shortly after 08:30 GMT, and also brought down a telegraph pole. The road was closed at the junction with Maidstone Road for seven hours for damage to the building to be assessed. Richard Barker, who runs the local parish magazine for Horsmonden, said he was amazed nobody had been more seriously injured. ""During the four years that I've been living here there have been several accidents on this crossroads. ""The parish council have been concerned about it and this just highlights the danger. ""Something needs to be done, and I think it's the feeling of the village,"" he said.", -2897,2017/3/18,http://www.bbc.co.uk/news/world-39317623,What's spooking the golfers in Orlando?,,Professional golfer Smylie Kaufman and his caddy were in for a surprise at the sixth hole in Florida., -2898,2017/3/18,http://www.bbc.co.uk/sport/rugby-union/39270065,Six Nations 2017: Ireland 13-9 England,Six Nations 2017: Ireland 13-9 England highlights,"By Tom Fordyce Chief sports writer at the Aviva Stadium Share this with Media playback is not supported on this device Ireland wrecked England's Grand Slam dream and ended their world record run of victories with a dramatic win at a rejoicing Aviva Stadium. The home side overwhelmed the Six Nations champions with their intensity and physicality, just as they had in Slam deciders here in 2011 and 2001. In the process they also halted England's winning run at a record 18 Tests, leaving them level with New Zealand, who were also beaten by Ireland to bring to an end their record run back in November. A first-half try from Iain Henderson and eight points from the boot of a battered Johnny Sexton established a lead that England never looked like closing, despite Owen Farrell's three penalties. It was a horrible, chastening evening for Eddie Jones' men, the first defeat of his reign coming with arguably the worst performance of his 18 matches in charge, although they at least have the consolation of retaining their Six Nations title. Ireland had come into the match having lost two of their four matches in the championship, but a green-shirted gale blew the men in white away, their much-vaunted finishers unable to get them out of jail one more time. The victory ensured Ireland finished second in the table, ahead of France and Scotland on points difference. Once again England will leave the Irish capital with their hopes of a Grand Slam in tatters, slow out of the blocks, sloppy with ball in hand and nowhere near their record-breaking best. They were second best at the breakdown and unable to get a grip on a contest they had begun as clear favourites to win, Ireland with two-thirds of both territory and possession. They appeared flustered from the opening moments and never found their precision. In a city still celebrating St Patrick's Day it was another joyous piece of party-pooping, England's disappointment compounded by having to receive their Six Nations trophy when the players felt only defeat. Having already lost first-choice scrum-half Conor Murray to injury, Ireland then had to reorganise minutes before kick-off when Jamie Heaslip hurt himself in the warm-up, CJ Stander moving to number eight and Peter O'Mahony coming into the starting line-up and producing an outstanding performance. In an opening every bit as frenetic as expected, both sides had early chances, Farrell's pass hitting Mike Brown on the shoulder with Elliot Daly free outside him, Jared Payne delaying his own pass to Keith Earls down the other end. After Sexton and Farrell exchanged penalties, Ireland then struck again, twice kicking penalties to the corner, Henderson reaching out after a driving maul to slam the ball over the try line. A 10-3 lead reflected Ireland's grip on the match, with almost 75% territory and possession in the first quarter. England were rattled, Courtney Lawes knocking on, Ford kicking out on the full from outside his 22, the men in white being forced to make three times as many tackles as their opponents. The only silver lining for Jones was that the deficit was not greater, the bad news that England had never come from behind at half-time in Dublin to win a Six Nations match. The English mistakes kept coming. Anthony Watson dropped a pass in space, a line-out that had been near-flawless through the first four rounds began to fail. Then England made a mess of an Irish line-out on the 10-metre line, won the turnover and Farrell thumped over the long-range penalty to narrow the gap to four points. It brought the contest to a fresh head, a battle of voices in the stands matched by a new intensity on the pitch. Payne escaped through two tackles to thunder deep into England's 22 to halt their momentum, and after a late hit on Sexton the battered fly-half stepped up to drill over his second penalty for 13-6. Jones had his finishers on, Jamie George for captain Dylan Hartley, Ben Te'o for Ford, Wood for Haskell, and a relentless driving maul brought a penalty that Farrell knocked over for 13-9 with 13 minutes left. With rain hammering down from the evening sky, England began to make dents, only to lose a critical attacking line-out to O'Mahony when Farrell had opted to kick a long-range penalty to touch. Never again would they get close to the Irish line, the capacity crowd celebrating wildly as Brown's final knock-on snuffed out England's final hopes. Ireland head coach Joe Schmidt: ""We just wanted to make sure all the bits and pieces we needed to get right to get a skinny margin over a super team, we ticked those boxes. ""The bit of pride we can take is the three teams that sit above us in the world we have beaten in the last six months."" England head coach Eddie Jones: ""Everything was wrong with the preparation because we played like that. I take full responsibility, I didn't prepare the team well and we will respond in the future. ""It was a tight old game. One or two things go your way and the game flips, they didn't go our way today, we didn't work hard enough to get those opportunities and that's what happens."" Ex-England scrum-half Matt Dawson: ""I'm applauding Ireland, that was one of the finest Ireland displays I've seen in a long time, the opposition are world class and Ireland have stepped up yet again, a fantastic display. ""I know how these England players feel, they will be low, dejected, but they should be extremely proud of how they have transformed English rugby."" *both New Zealand and England's 18-Test winning runs were ended by Ireland Former Ireland winger Denis Hickie: ""This will definitely rank as one of Ireland's greatest wins, going in truly against the odds against what is a tremendous England team."" Ireland: Payne, Earls, Ringrose, Henshaw, Zebo, Sexton, Marmion, J McGrath, Best, Furlong, D Ryan, Henderson, O'Mahony, O'Brien, Stander. Replacements: Conway for Earls (41), L McGrath for Marmion (69), C Healy for J McGrath (60), Scannell for Best (73), J Ryan for Furlong (76), Toner for D Ryan (65), Leavy for O'Brien (66). Not Used: Jackson. England: Brown; Watson, Joseph, Farrell, Daly; Ford, Youngs; Marler, Hartley, Cole, Launchbury, Lawes, Itoje, Haskell, B Vunipola. Replacements: Nowell for Joseph (68), Te'o for Ford (63), Care for Youngs (63), M Vunipola for Marler (41), George for Hartley (55), Sinckler for Cole (78), Wood for Haskell (60), Hughes for B Vunipola (63). Share this with Women's Six Nations, Sat 18 Mar, 19:50 GMT, Connected TV and online Sun 19 Mar, 18:00 GMT, BBC Two Wales Sun 19 Mar, 23:35 GMT, BBC Two (00:35-01:05, BBC Two Scotland) Run by the BBC and partners Bath Saracens RFC Winter Ski Training For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -2899,2017/3/18,http://www.bbc.co.uk/news/uk-england-london-39315449,'Chatted up' tourist beaten up near Tube station,A tourist was repeatedly punched in the face after she rejected the advances of a man who followed her from a London Tube station.,"A tourist was repeatedly punched in the face after she rejected the advances of a man who followed her from a London Tube station. The 60-year-old was attacked by a man in his late 20s on 10 March after she left Warwick Avenue station. The Met said the victim had earlier ""politely"" rejected the man's attempts to ""chat her up"". Detectives are now appealing for information to help trace the woman's attacker. As part of the appeal the victim, who does not wish to be named, released a picture of her injuries. The attacker is described as white, aged 25 to 27, about 5ft 8in tall, with short brown hair and brown eyes. He was wearing light-coloured trousers, a brown jacket and a black baseball cap. The Met said after failing to chat up the victim he followed her as she walked along Warwick Avenue towards Formosa Street, near Paddington. He then grabbed her from behind and repeatedly hit her in the face, leaving her needing surgery. After being found by a passer-by she was taken to hospital. Det Con Mike Reilly, said: ""Warwick Avenue is a busy area, especially at 8pm on a Friday evening. ""Someone must have seen something and I'd appeal for anyone with information to come forward as soon as possible so we can bring the perpetrator to justice.""", -2900,2017/3/18,http://www.bbc.co.uk/news/world-us-canada-39315393,US man held for sending flashing tweet to epileptic writer,"A man accused of sending a flashing image to a writer in order to trigger an epileptic seizure has been arrested, the US justice department says.","A man accused of sending a flashing image to a writer in order to trigger an epileptic seizure has been arrested, the US justice department says. John Rayne Rivello, 29, of Maryland, sent Kurt Eichenwald an animated image with a flashing light on Twitter in December, causing the seizure. He has been charged with criminal cyber stalking and could face a 10-year sentence, the New York Times reports. ""You deserve a seizure for your post,"" he is alleged to have written. Mr Eichenwald is known to have epilepsy. He is a senior writer at Newsweek magazine, a contributing editor at Vanity Fair and a best-selling author of books including The Informant. Investigators found that Mr Rivello had sent messages to other Twitter users about Mr Eichenwald and a plan to attack him virtually, including one that read: ""I hope this sends him into a seizure"". Tweet 'caused' epileptic seizure ""Spammed this at [victim] let's see if he dies,"" another message read, according to the justice department. Investigators found a screenshot on his iCloud account of an altered Wikipedia page for Mr Eichenwald, falsely listing his date of death as 16 December, a day after the image was sent. He had also researched epilepsy seizure triggers on the epilepsy.com website. The Twitter message was no different from ""a bomb sent in the mail or anthrax sent in an envelope,"" Steven Lieberman, a lawyer for Mr Eichenwald, told the New York Times. ""It triggers a physical effect."" Mr Rivello will have his case heard in Texas, where his alleged victim is based. The justice department did not say what motivated the attack, though reports have speculated that it may have been related to Mr Eichenwald's frequent criticism of US President Donald Trump on Twitter. Mr Eichenwald is reported to have suffered the effects of the seizure for several weeks. He tweeted on Friday that more than 40 people had sent him ""strobes"" after learning about the case. After the attack was reported in December, Stefano Seri, a professor of neurophysiology at Aston University in the UK, said the material in the tweet must have been carefully constructed. ""Abrupt changes in light intensity, or luminance, can trigger seizures. The most sensitive range is about 15-25 flashes per second,"" he said. ""The picture would need to occupy most of the visual field. It would take some very sick people to do this, but technically, it is possible. ""Modern LED screens are not as provocative as older ones. It takes a very carefully designed stimulus to induce a seizure,"" Prof Seri added.", -2901,2017/3/18,http://www.bbc.co.uk/news/education-39285039,"Migrants have raised school standards in London, says Gove","Immigration has been a key reason behind London's high achievement in school standards, the former education secretary Michael Gove has said.","Immigration has been a key reason behind London's high achievement in school standards, the former education secretary Michael Gove has said. Addressing an international education conference, Mr Gove highlighted the importance of immigrant and refugee families pushing up results. He said migrant parents had ""high expectations"" for their children. But Mr Gove, a leading campaigner for Brexit, said migration had also created ""pressure on services"". The capital's schools have consistently outperformed the rest of England in exam results - which Mr Gove linked to the ambitions of migrant families. ""There's lots of evidence that London having become more diverse has contributed to educational standards rising,"" Mr Gove told the Global Education and Skills Forum in Dubai. He said that his own experience as a parent in London had shown him that migrant parents often have ""extraordinarily high expectations"" of the state school system. Pupils might be ""refugees from Somalia or Kosovo"", he said, but their families pushed schools to have high standards and often became the most involved parents. He said it was ""undeniably the case"" that there were other parts of England which had lower levels of migration and lower educational performance. But he said there were costs as well as benefits from migration. ""There have been rising class sizes and difficulty for some people getting their children into the school they wanted as new arrivals from other countries have made that more difficult."" And he warned that high levels of migration could undermine ""the sense of cohesion"". Mr Gove, debating education policy alongside the former US education secretary Arne Duncan refused to be drawn on whether he agreed with the push for more grammar schools in England. He said that the current education secretary would have to examine whether there was any evidence to justify such an expansion in selection. ""The approach that one should take is not to be ideologically committed to any particular type of school but to ask 'Does the evidence justify the creation of a particular type of school?'. ""And so, my commitment is to be open-minded about that."" But he said that as a ""very slavish backbencher"" he would support the prime minister. Mr Gove also warned of the dangers of a disconnect between a ""global elite sealed off"" from the rest of the population. He said education systems risked paying too much attention to the ""hyper successful"". Mr Gove said that it was important to make sure that education policies worked for all parts of society, including those who felt left behind. There were warnings about the direction of education policy under President Trump, from the former US education secretary Mr Duncan. He said he was ""extraordinarily troubled"" by the approach of the new administration. Mr Duncan criticised budget cuts for education and the lack of attention on standards for the majority of pupils in US state schools. He warned against education policies that focused on ""little things for political points"".", -2902,2017/3/18,http://tass.com/society/936309,"2,000 protest against St.Isaac Cathedral's transfer to Orthodox Church in St. Petersburg",The city and regional police said that no violations were reported during the event named March for St. Petersburg Protection,"ST. PETERSBURG, March 18. /TASS/. About 2,000 people have rallied in downtown St. Petersburg protesting against transfer of St. Isaac's Cathedral to the Russian Orthodox Church, an official with the St. Petersburg authorities told TASS on Saturday. ""About 2,000 people took part in the rally,"" he said. The city and regional police said that no violations were reported during the event named March for St. Petersburg Protection. After the rally, protesters adopted a resolution demanding that a status of museum be preserved for St. Isaac's Cathedral, an alleged merger of the country's two biggest libraries - the Russian National Library (in St. Petersburg) and the Russian State Library (in Moscow) - be abandoned along with plans to construct housing in the three-kilometer conservation zone around the Pulkovo Observatory. - ""Critical situation"" in culture Earlier, the organizers, who include the Party of Growth, Yabloko and Parnas opposition parties and some public movements, told TASS that event was timed to coincide with the 30th anniversary since the Hotel Angleterre was pulled down in the city in 1987. By marking this date, the organizers express their concern over ""an absolutely critical"" situation with culture and science in the Russian second largest city. ""There are lots of sore points but the situation around the St. Isaac's Cathedral has mirrored them,"" Maksim Reznik, head of the city legislature's education, culture and science commission, told TASS. - St. Isaac Cathedral issue In January, St. Petersburg's municipal authorities announced its decision to hand over St. Isaac Cathedral to the Russian Orthodox Church in accordance with the 2010 law on dispensing religion-related property to religious organizations. However, the building will remain the property of the city of St. Petersburg. Opponents of this decision filed an appeal, but it was dismissed. A petition initiated on the Internet against the handover was signed by more than 200,000 people. Several rallies were held in St. Petersburg to protest against turning over the Cathedral to the Church, the latest rally, held on January 28, drew about 2,000. The cathedral was built in 1818-1858 and was transformed into a museum after the 1917 Bolshevik Revolution. Church services resumed at St. Isaac's in 1990. The Cathedral is protected by the federal government and it is also on the UNESCO World Heritage Site list. According to the museum's authorities, in 2016, about 18,000 people attended services at the St Isaac's, including the major Christmas service and the special remembrance services for the victims the Russian A-321 jet crash over the Sinai Peninsula. In addition, around 3,900,000 tourists visited the Cathedral during the same period of time.", -2903,2017/3/18,http://tass.com/society/936307,Moscow City Hall bans anti-corruption rally in downtown Moscow,The decision is final and will not be reconsidered,"MOSCOW, March 18. /TASS/. Moscow City Hall has banned an anti-corruption rally in the city center, which opposition activist Alexey Navalny and his supporters were planning for March 26, and will not reverse the ban, the press service of Moscow's regional security and counter-corruption department told TASS on Saturday. ""The decision is final and will not be reconsidered,"" the official said. On March 26, Navalny and his supporters had intended to stage a march from Tverskaya Zastava Square to Okhotny Ryad Square, near the Kremlin walls. ""The organizers have filed requests for more rallies in other districts of Moscow, but on the same day and at the same time. In this case, they will fail to ensure their events to be held in a timely and secure manner,"" he said.", -2904,2017/3/18,http://tass.com/society/936304,"About 150,000 people celebrate anniversary of Crimea's reunification with Russia in Moscow",People are taking part in festivities on University Square in front of the MSU building,"MOSCOW, March 18. /TASS/. About 150,000 people have come to University Square near the main building of Moscow State University (MSU) to celebrate the third anniversary of Crimea's reunification with Russia, Moscow City police told TASS on Saturday. ""As of 19.00 Moscow Time (16.00 GMT) about 150,000 people are taking part in festivities on University Square in front of the MSU building,"" the police say. Crimea, where most residents are ethnic Russians, refused to recognize the legitimacy of authorities brought to power amid riots during a coup in Ukraine in February 2014. On 16 March 2014, more than 82% of Crimea's electorate took part in the referendum, when 96.77% in the Republic of Crimea and 95.6% in the Black Sea naval port of Sevastopol backed splitting from Ukraine and spoke in favor of reuniting with Russia. On March 18, President Vladimir Putin signed the treaty on Crimea's reunification with Russia. Russia's Federal Assembly (parliament) approved the document on March 21.", -2905,2017/3/18,http://tass.com/politics/936303,Russian MPs planning to visit Syria next week - deputy speaker,"""In the near future, next week, representatives of all Duma factions are going on a visit to Syria,"" Duma Deputy Speaker Vladimir Vasilyev of the United Russia said","MOSCOW, March 18. /TASS/. Deputies from all factions of the Russian parliament's lower house, State Duma are planning to visit Syria next week, Duma Deputy Speaker Vladimir Vasilyev of the United Russia said on Saturday at a gala concert devoted to the third anniversary of Crimea's reunification with Russia. ""In the near future, next week, representatives of all Duma factions are going on a visit to Syria,"" Vasilyev said.", -2906,2017/3/18,http://tass.com/economy/936302,Fed rate hike unlikely to cause Russia problems with capital outflow - finance minister,The finance minister Anton Siluanov is hopeful that Russia is well-prepared and will be benefiting from increased growth rates,"BADEN-BADEN, March 18. /TASS/. The US Federal Reserve's higher interest rates will not cause Russia problems with capital outflow from the country, Finance Minister Anton Siluanov told reporters on Saturday. ""Despite the fact that American counterparts from the Federal Reserve announced higher interest rates and continuation of that policy, we cannot see any problems for Russia from the point of view of capital outflow since Russia has a strong balance of payment and rather good budget,"" Siluanov said. The finance minister is hopeful that Russia is well-prepared and will be benefiting from increased growth rates. It will be provided with additional advantages in the current situation, without fearing for any volatility in capital flows. On Wednesday, the US Federal Reserve raised interest rates by 25 basic points to a range of 0.75% to 1.00%. The Fed vowed two more rate hikes are to be expected in 2017.", -2907,2017/3/18,http://tass.com/politics/936295,"Russia, France to cooperate in preparing intra-Syrian talks in Geneva - ministry","""The ministers have agreed that Russian and French representatives will be cooperating to prepare and hold a next round of intra-Syrian talks"" the ministry said in a statement","MOSCOW, March 18. /TASS/. Russian and French Foreign Ministers Sergei Lavrov and Jean-Marc Ayrault have agreed to cooperate in preparing the intra-Syrian talks in Geneva, the Russian Foreign Ministry said on Saturday. ""The ministers have agreed that Russian and French representatives will be cooperating to prepare and hold a next round of intra-Syrian talks, due to begin in Geneva on March 23, 2017,"" the ministry said in a statement. During the phone talk, Lavrov noted that absence of some armed opposition groups from the recent meeting manifested certain countries""?continuing attempts to hamper a peace resolution in Syria. At the same time, the Russian foreign minister expressed his satisfaction with the negotiations in Astana. Earlier, Russian Foreign Ministry Spokeswoman Maria Zakharova said that the 3rd international meeting on Syria in Kazakhstan's capital Astana had brought together delegations of three countries - guarantors of the nationwide cessation of hostilities agreement, namely Russia, Turkey and Iran - and the Syrian government along with representatives of Jordan, the United States, United Nations. The armed Syrian opposition had refused to attend the talks, ""preferring to make speculations about its participation in this event."".", -2908,2017/3/18,http://tass.com/world/936281,Results of Kuril consultations to be used at meeting of foreign ministers,"The two-plus-two negotiations, featuring Russian and Japanese ministers of foreign affairs and of defense, as well as a separate meeting between Kishida and Lavrov, are due in Tokyo on March 20","TOKYO, March 18. /TASS/. Results of the Russian-Japanese consultations on Saturday on economic activities on the South Kuril Islands will be used at the meeting of foreign ministers due March 20, Japan's Foreign Minister Fumio Kishida said on Saturday. ""On March 20, Russia's Foreign Minister Sergei Lavrov is coming to Japan, and results of today's consultations will be used during our negotiations,"" NHK quoted the minister. ""Besides, I would like to connect them with the visit of Prime Minister (Shinzo) Abe to Russia, which will take place soon."" Tokyo on Saturday hosted consultations on joint economic activities on the South Kuril Islands, which featured Deputy Foreign Ministers Takeo Akiba and Igor Morgulov. After the meeting, Akiba said the parties presented plans for work in medicine, tourism and fishing and also agreed to discuss former residents may visit the islands by using chartered flights. The two-plus-two negotiations, featuring Russian and Japanese ministers of foreign affairs and of defense, as well as a separate meeting between Kishida and Lavrov, are due in Tokyo on March 20. A joint statement was adopted following Putin's visit to Japan on December 15-16, which said that the beginning of the consultations on joint Russian-Japanese economic activities on the southern Kuril Islands could be an important step towards signing of a peace treaty. Besides, the two parties proceed from the assumption that this statement on joint economic activities and any agreements reached on its basis and their implementation do not impair the Russian and Japanese stances on the peace treaty issue.", -2909,2017/3/18,http://tass.com/society/936292,Officially allowed protest against Isaac Cathedral's transfer begins in St. Petersburg,"Many people carry slogans demanding stopping the transfer procedure, but the most popular slogan is ""For Protection of St. Petersburg.""","ST. PETERSBURG, March 18. /TASS/. People have come to central St. Petersburg to express their protest against transfer of St. Isaac's Cathedral to the Russian Orthodox Church, TASS correspondent reported from the site on Saturday. Many people carry slogans demanding stopping the transfer procedure, but the most popular slogan is ""For Protection of St. Petersburg."" The event is free from political slogans or symbols. Even as the rally began at 14:00, people continue coming, many of them are with children. No incidents have been registered, the situation is calm. The rally participants also speak in protection of the Pulkovo Observatory against plans for housing construction next to it, and against merger of the country's two biggest libraries - the Russian National Library (in St. Petersburg) and the Russian State Library (in Moscow). In January, St. Petersburg's municipal authorities announced its decision to hand over St. Isaac Cathedral to the Russian Orthodox Church in accordance with the 2010 law on dispensing religion-related property to religious organizations. However, the building will remain the property of the city of St. Petersburg. Opponents of this decision filed an appeal, but it was dismissed. A petition initiated on the Internet against the handover was signed by more than 200,000 people. Several rallies were held in St. Petersburg to protest against turning over the Cathedral to the Church, the latest rally, held on January 28, drew about 2,000. The cathedral was built in 1818-1858 and was transformed into a museum after the 1917 Bolshevik Revolution. Church services resumed at St. Isaac's in 1990. The Cathedral is protected by the federal government and it is also on the UNESCO World Heritage Site list. According to the museum's authorities, in 2016, about 18,000 people attended services at the St Isaac's, including the major Christmas service and the special remembrance services for the victims the Russian A-321 jet crash over the Sinai Peninsula. In addition, around 3,900,000 tourists visited the Cathedral during the same period of time.", -2910,2017/3/18,http://tass.com/society/936287,Investigators initiate criminal proceedings into murder of Roskosmos top manager,The Investigative Committee reported Yevdokimov had died in a pre-trial prison of two knife wounds in the heart,"MOSCOW, March 18. /TASS/. Russia's Investigative Committee opened a criminal case on murder of Roskosmos' (space authority) Acting Director on control of quality and realiability Vladimir Yevdokimov, spokeswoman of the Moscow prosecution Elena Rossokhina told TASS on Saturday. ""A criminal case on murder has been opened,"" she said. Moscow's prosecutors are inspecting the detention facilities to reveal those involved in the crime. The Investigative Committee reported Yevdokimov had died in a pre-trial prison of two knife wounds in the heart.", -2911,2017/3/18,http://tass.com/society/936284,Crimea celebrates another anniversary of reunification with Russia,"Aksenov thanked the Crimeans for trust, tolerance and love for Russia and Crimea, promising to continue joint efforts in bringing order to the peninsula","MOSCOW, March 18. /TASS/. Head of Crimea's government Sergei Aksenov greeted the Crimean residents with another anniversary of the reunification with Russia. ""It is not just an important state holiday, it is a day of our return home, the live history of the Crimean Spring,"" he wrote. ""Each of us feels personal involvement in this history."" ""Of course, during these three years we had not only success, but some mistakes and shortcomings, for which the Crimeans criticize the authorities correctly. We face many problems - from the big shortage of qualified staff in all the sectors to the low quality of roads,"" he said. ""We do not hide the drawbacks and try to correct them promptly."" He thanked the Crimeans for trust, tolerance and love for Russia and Crimea, promising to continue joint efforts in bringing order to the peninsula. After Ukrainian President Viktor Yanukovich was ousted in a coup in February 2014, mass protests began in Crimea and eastern Ukraine. On March 11, 2014, Crimea's Supreme Council and Sevastopol City Council adopted a declaration of independence. On March 16, 2014, a referendum on reuniting with Russia took place. Over 80% of voters participated in the plebiscite, most of them supporting the idea of reunification (96.7% in Crimea and 95.6% in the city of Sevastopol). On March 18, 2014, President Vladimir Putin signed the treaty on Crimea's reunification with Russia. The document passed Russia's Federal Assembly (parliament) on March 21, 2014.", -2912,2017/3/18,http://www.dw.com/en/scotland-s-sturgeon-warns-of-constitutional-crisis-over-second-independence-vote/a-38010553?maca=en-rss-en-all-1573-rdf,Scotland's Sturgeon warns of constitutional crisis over second independence vote,Scottish premier Nicola Sturgeon has warned the UK's constitutional structure would 'shatter beyond repair' if discussions are not held over a second independence vote. A former PM has outlined a 'third option.',"Speaking to her Scottish National Party (SNP) assembly in Aberdeen on Saturday, First Minister Nicola Sturgeon said that a refusal by Prime Minister Theresa May and the Westminster government to discuss a second referendum on independence would ""shatter beyond repair"" the United Kingdom's constitutional structure. Sturgeon expects to be authorized on Wednesday by the devolved Scottish parliament to seek terms for a new secession vote. She wants it to be held once Brexit terms are clear but before Britain leaves the European Union. ""To stand in defiance of (Scottish parliamentary authorization) would be for the prime minister to shatter beyond repair any notion of the UK as a respectful partnership of equals,"" Sturgeon said. Earlier this week, May said that-""now is not the time"" for a new choice on independence. Sturgeon needs approval from the Westminster parliament for a referendum to be legally binding. Scotland's First Minister Nicola Sturgeon and British Prime Minister Theresa May. ""(May) has time to think again and I hope she does. If her concern is timing then - within reason - I am happy to have that discussion,"" Sturgeon said.-""If (May) shows the same condescension and inflexibility, the same tin ear, to other EU countries as she has to Scotland then the Brexit process will hit the rocks,"" Sturgeon said. Brown's alternative Speaking in his home town of Kirkcaldy, Fife on Saturday, former Prime Minister Gordon Brown called for the Scottish government to be given a range of new powers after Britain leaves the European Union as a way of uniting the country.- ""Let me send a message today --and I will fight, fight and fight without end for this in the weeks and months ahead --that from now on-the debate on the future of Scotland will no longer be limited to two options,"" he said. ""We don't need to be imprisoned by one form of extremism --the Tories who would grab power from Brussels and make the UK an even more centralized state --and another form of extremism --a more hardline SNP who would take us out of the British single market, putting at risk many of the one million jobs linked to it,"" Brown went on. Former British Prime Minister Gordon Brown ""The third option, a patriotic Scottish way and free from the absolutism of the SNP and the do-nothing-ism of the (Conservatives) is now essential because post-Brexit realities make the status quo redundant and require us to break with the past,"" Brown said. The new powers could include setting sales tax rates, signing international treaties-and regulating the environment,-employment and energy, Brown added. He proposed the Bank of England become the Bank of England, Scotland, Wales and Northern Ireland to ""reinforce the fact that pound is for everyone."" jbh/jm (AP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Z6Sg -", -2913,2017/3/18,http://www.dw.com/en/tens-of-thousands-rally-in-paris-as-far-left-candidate-melenchon-launches-campaign/a-38010401?maca=en-rss-en-all-1573-rdf,Tens of thousands rally in Paris as far-left candidate Melenchon launches campaign,"A day after France's presidential hopefuls were confirmed, far-left candidate Jean-Luc Melenchon gathered thousands of supporters at a Paris rally. The veteran has called for sweeping reforms to France's constitution.","Jen-Luc Melenchon, the far-left French presidential candidate, was greeted to chants of ""President! President!"" as he launched his presidential campaign in Paris on Saturday. Tens of thousands of supporters packed the streets of central Paris between the iconic squares of Place de La Bastille and Place de la Republique on the anniversary of the Paris Commune revolt in March 1871. Melenchon, who has the backing of France's-Communist party, is running on a platform vowing to bring an end to the 5th Republic and begin a sixth, with less emphasis on the power of the president. He wants to shorten France's 35-hour work week, withdraw from NATO, block free-trade deals and stop using nuclear energy. The 65-year-old former socialist minister for vocational training has also pledged to replace what he has described-as France's ""presidential monarchy"" with a more powerful parliament. Following the march, Melenchon took to Twitter to thank his supporters, claiming that as many as 130,000 people had turned up. Little chance for round two Opinion polls suggest that Melenchon is running neck-and-neck with his left-wing rival, the socialist presidential pick, Benoit Hamon. While both men have decried the austerity policies of President Francois Hollande, Melenchon spurned Harmon's offer to join forces in the presidential race. Those divisions on the left have helped propel independent centrist Emmanuel Macron to become one of the election frontrunners. Despite his show of strength on Saturday, Melenchon finds himself far behind Macron, the far-right National Front's Marine Le Pen and-Francois Fillon of The Republicans. Melenchon finished in fourth place in the last presidential elections in 2013. A total of 11 candidates are running to win the keys to the-Elysee Palace-in a campaign that has been dominated by the surging far-right, corruption charges and a diminished socialist party. The first round of the French presidential election will be held on April 23, with the top two candidates going through to a runoff ballot on May 7 unless one of them wins more than 50 percent of votes in the first poll. dm/jm-(AP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YZH1", -2914,2017/3/18,http://www.dw.com/en/erdogan-wants-balkans-as-leverage-on-europe-expert/a-38009794?maca=en-rss-en-all-1573-rdf,Erdogan wants Balkans as 'leverage' on Europe: expert,"Turkey is seeking to gain more influence in the Balkans. DW's Darko Janjevic spoke with Erdoan Shipoli, a US-based expert on Turkey and the Balkans, about what this means for the European Union.","Turkey has slammed the EU for siding with the Netherlands in a diplomatic dispute, after banning the Dutch ambassador from the country. Meanwhile, Angela Merkel rejected Ankara's accusations of supporting terrorists. (14.03.2017) Sandzak is commonly referred to as the Balkans region still under Turkish influence. But a visit to the center of Novi Pazar shows that ""brotherhood"" doesn""t help a lot when it comes to the economy. (21.10.2016) The Turkish president's struggle with Fethullah Gulen is also being felt in the Balkans. Bosnia and Herzegovina is home to private schools founded by the Gulen movement - and Ankara is calling on them to be closed. (20.08.2016) -DW: Dr. Shipoli, what are Turkey's goals in the Balkans; what is it trying to accomplish? Dr. Erdoan Shipoli: Historically, Turkey's institutions, such as the military or the country's bureaucracy, were always linked with the Balkans, because they saw the Balkans as a path-to Europe. Turkey has always seen the Balkans as the road it-can use to reach Europe. Nevertheless, in the recent years of the Erdogan era, it has-also started seeing the Balkans as something it-can use for leverage. So-Erdogan's government wants to increase its-influence in those societies-by investing and-helping some civil society organizations ""?It does this so that tomorrow it will-be able to tell Europe: ""We have all this influence in the Balkans, your own back door, and we can use it to blackmail you."" So-Erdogan's government thinks it-will be able to use its-Balkan presence to influence European politics and-push Europe in a certain direction? Yes. At least, this is what Erdogan thinks, but I don't think he is able to really do that. When it comes to the political influence in Kosovo, Albania and-Bosnia, Turkey is definitely an important regional player, but only to the degree to which its-policies coincide with the European Union's policies. For Balkan countries, their main goal is to enter the EU. For many years, this was also Turkey's goal. Now, when Turkey-is-moving away from this goal, Turkish influence in the Balkans is decreasing as well. -How much real political influence does Ankara-have in the region? Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZG5U When it comes to ex-Yugoslav states, the strongest influence it has-is in Bosnia, then Macedonia, then Kosovo, with Albania [not an ex-Yu state] coming at-the end. Of course, it has-better trade relations with Bulgaria and better communication with the Turkish community in Bulgaria than in Kosovo, for example. In reality, Turkey does not have the political influence it-claims to-have in the Balkans, and it doesn't-have the influence it-wants to have. The only way that Turkey can have more influence in the Balkans is if the EU breaks its-promise to work with the Balkan countries. Otherwise, if they have to choose, the Balkan countries will go with Europe and never look back at Turkey. Even so, people in Bosnia-and other Muslim communities all over the Balkans-look to-Erdogan as a kind of big brother. Erdogan himself recently used the Srebrenica massacre as proof of Europe's hatred of Muslims, and he likes to portray himself as a protector of Muslims. How much of that is genuine sentiment, and how much is political posturing? He is only doing it for domestic consumption. Of course, Bosnian Muslims have sympathies toward-Turkey, because Turkey and some other Muslim countries helped them during the war before the EU and the US did. In Kosovo, this was not the case, and Kosovar Albanian Muslims don't see-Turkey as their big brother. However, while Erdogan and Turkey have no power to really influence anything in the Balkans,-Erdogan is a master of-using discourse and narrative to his gain. He is using the Srebrenica massacre to prove to the Turks that he cares about the Muslims, and this will bring him a lot of votes, because we should remember there are a lot of Turks with Bosnian, Bulgarian or Albanian backgrounds-who historically have not voted for Erdogan.-In this way, he is trying to win their votes in the referendum-by showing them he would fight for the Balkans --in this case, against the Netherlands over Srebrenica. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1FvKz What is Turkey doing to boost its influence? After the coup attempt, a lot of Turkish institutions in the Balkans came under suspicion from Ankara ""?Since the coup, the Erdogan government has been-trying to put a bit more pressure on Balkan governments, especially with regard to-the Gulen movement, but that has not been very successful. We can see that in Macedonia and Bulgiaria it is-trying to make its-own political parties and to-use the already established ones in other countries, parties-directly controlled by Erdogan's close associates. It-is-trying to use its-own people, ones who are loyal to Erdogan, who have studied in Turkey and are known to have had to do with-Erdogan's circles. What I am afraid of-is that it is gaining ground in some civil society organizations. For example, TIKA [Turkish development agency] is making investments, setting up trips to Turkey, that kind of thing. Allegedly, there have been some controversial acts that are being investigated. Here, we also need to make a distinction between Turkey and specifically Erdogan's government, because the latter's-main goal right now is not to increase Turkey's influence --it's to increase Erdogan's influence and his popularity. We know that it-sets up these rallies and takes a couple of people in Prizen, Skopje or Novi Pazar and gives them pictures of Erdogan to show that he has sympathizers everywhere. Erdogan visited the site of the Srebrenica massacre to honor the Bosniak victims How far is Ankara ready to go on-this? Is Turkey interested in destabilizing the the Balkans, boosting the new wave of nationalism and encouraging military posturing? I don't think so.-Turkey is not interested in destabilizing the security situation in the Balkans. But-if it was something that Erdogan could use, he wouldn't mind doing it.- I do not believe that Turkey wants a destabilized Balkans. because -then Turkey would be completely surrounded by unstable regions. But part of the burden is also on the EU states to embrace the Balkans and not let them-fall to Erdogan's agenda. Kosovo-born Erdoan Shipoli is a Visiting Researcher at the Center for Muslim-Christian Understanding at Georgetown University and Associate Dean of School of Public and International Affairs at Virginia International University. -", -2915,2017/3/18,http://www.dw.com/en/kurdish-voters-still-undecided-on-turkish-referendum/a-38009436?maca=en-rss-en-all-1573-rdf,Kurdish voters still undecided on Turkish referendum,"The ruling AKP is focusing on nationalism in its referendum campaign. This is risky, because the voices of the Kurds could be decisive. Will the outcome of the referendum be decided in the southeast of the country?","For the seventh time in seven years, Turkish voters are being asked to go to the polls. In the-upcoming April referendum, Turks are to decide on a constitutional change that would introduce a presidential system of government. The Grand National Assembly - Turkey's parliament --would thereby lose many of its powers; the president could then govern the country without the consent of parliament and by decree only. Election results incalculable Opinion polls indicate that it will be a close result, and as such President Recep Tayyip Erdogan and his Islamic-conservative AKP party are still fighting for every vote. Ultimately, the Kurdish areas in southeastern Anatolia are likely to be decisive. However, the election process is particularly difficult to foresee because, alongside the AKP, the pro-Kurdish left-wing opposition party HDP is also very popular and is campaigning for ""no"" in the referendum. Kurds could tip-the scales HDP spokesman Osman Baydemir says Kurdish voters are decisive and that they will mostly vote ""no"" to the proposed change. Memories still run deep of the arrests of HDP deputies, the dismissal of a democratically elected Kurdish mayor, and the bloody fighting in the southeast, he says. HDP spokesperson Osman Baydemir The vote, he believes, is far more than just a constitutional change: It is also a referendum-on the AKP's anti-Kurdish policy. A ""no"" could, according to some people, pave the way for peace. According to a survey conducted by the Center for Political and Social Studies (SAMER) in Diyarbakir, around 57.4 percent of the Kurdish population is leaning toward a ""no"" vote, while around 25.1 percent tends toward ""yes"". However, it-noted that there were many undecided among both the AKP supporters and HDP supporters. Vahap Coskun, a legal scholar at Dicle University, says that about 5-percent of AKP supporters are not yet sure which box to tick. ""This is a big percentage. Moreover, those who vote for the nationalist MHP, who are still a greater electorate than the Kurds, must be convinced."" AKP relying-on nationalism Despite the crucial role of the Kurds in the referendum, the AKP is not particularly concerned about their votes. In addition, during the referendum campaign, the party is increasingly taking nationalist stances. Vahap Coskun says that the AKP is taking a risk by depending on MHP voters. The current commotion with Europe is a sign, he says, of how much the referendum campaign is aimed at nationalist voters. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZLnr SAMER chairman Yuksel Genc stressed that most Kurds would make their decision on the election with a view to President Erdogan. He said 40-percent of the Kurds leaning toward a ""no"" vote are against a one-man regime. The 27 percent who advocate ""yes"" justified their choice by simply saying that they like Erdogan, according to Genc.", -2916,2017/3/18,http://www.dw.com/en/g20-finance-ministers-drop-anti-protectionist-pledge-amid-us-pushback/a-38009437?maca=en-rss-en-all-1573-rdf,G20 finance ministers drop anti-protectionist pledge amid US pushback,"US finance officials have refused to sign a commitment to free trade, breaking a decade long tradition and effectively preventing any deal. Action against climate change has also been dropped following US intervention.","Finance ministers from the 20 leading world powers (G20) concluded talks in the German city of Baden-Baden Saturday without agreeing on-a joint position that would have explicitly renewed-their long-standing pledge to free trade. Following pushback from US officials, led by US Treasury Secretary Steve Mnuchin, the communique of G20 finance minister backtracked on past commitments such as-open trade and outright rejection of protectionism. The ministers wrapped up their meeting on Saturday Instead, the ministers issued a mildly-worded statement, saying that countries ""are working to strengthen the contribution of trade to their economies."" Commitments to multilateral trade systems, including the World Trade Organization (WTO), were conspicuously missing. While the G20 remains an informal forum and Saturday's statement is non-binding, it does help set the tone for-economic and financial policy for the year ahead. By contrast, last year's statement called on all G20 states to resist ""all forms"" of protectionism. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZSmx US trade reservations It marks perhaps the Trump administration's biggest clash yet with the international community. According to reports, officials were looking to replace the group's long standing opposition to ""all forms"" of protectionism with a new wording that would reflect US concerns and reference ""fair"" trade. However, no compromise was found, meaning no new deal could be reached by the close of Saturday's summit. German finance minister Wolfgang Sch?uble, who chaired the two-day summit,-played down the significance at a press conference afterwards, saying the issue was more about wording than substance. ""It's not true we are not agreed,"" he said. ""It's completely clear we are not for protectionism. But it wasn't clear what one or another meant by that."" ""At some meetings you cannot reach all that you want to achieve. But that is something we can live with,"" Sch?uble said. IMF chief Christine Lagarde said the new White House simply needed time to ""adapt and learn"". - Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZM32 Mnuchin remained upbeat following the summit, and said any resistance to the communique was only to ensure that it accurately reflected what was discussed. The US Treasury Secretary-added that he would not read too much into the US' desire to change the ""historical language."" ""We will strive to reduce excess global imbalances to promote inclusiveness and fairness and reduce inequality,"" he added. ""We think there are parts of the WTO that are not being enforced, and will look to aggressively enforce things in the interest of American workers,"" Munchin told journalists. Trump's quest to fulfill his ""America First"" election platform have already seen the president withdraw-the US from an intended trans-Pacific free trade pact and-propose a new tax on goods imported into the US. He has criticized export giants China and Germany over their trade surpluses, prompting a-stern warning from Beijing. Climate change finance off the table- Finance chiefs also failed to pledge their support to climate change finance. While it was widely anticipated, it was nevertheless decried by environmentalists. US President Donald Trump has expressed his skepticism on the issue, labeling climate change a ""hoax"" and cutting funding for the US Environmental Protection Agency. Greenpeace East Asia's Li Shuo said the G20 statement illustrated a ""lack of attention to climate change,"" and added: ""Other countries should not allow this to happen again."" French Finance Minister Michel Sapin voiced ""regret that our discussions today were unable to reach a satisfying conclusion on two absolutely essential priorities,"" trade and climate. EU Economy Commissioner Pierre Moscovici said, given that the G20's-Baden-Baden gathering was the ""first contact with this new administration, it would have made no sense to enter into a fight."" ""I hope in Hamburg the wording will be different. We need-it. It is the raison d'etre for the G20,"" Moscovici said, referring to the next G20 summit to be hosted in Hamburg in July.-Germany currently holds the G20 presidency. The G-20 is an informal forum on economic cooperation made up of-19 countries plus the European Union. dm, ipj/jm-(AP, dpa,-Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZNj7 - -", -2917,2017/3/18,http://www.dw.com/en/martin-schulz-attends-funeral-in-bonn-for-brandt-ally-horst-ehmke/a-38008864?maca=en-rss-en-all-1573-rdf,"Martin Schulz attends funeral in Bonn for Brandt ally, Horst Ehmke","The funeral has been held for Horst Ehmke, an advocate of the late German chancellor Willy Brandt's ""Ostpolitik"" peace overtures to the ex-Soviet bloc during the Cold War. Ehmke died in Bonn aged 90.","Leading members of the-center-left Social Democratic Party (SPD)-attended Saturday's funeral in Bonn for Ehmke, a former German justice minister, who died at the age of 90. ""Without him, Willy Brandt would not have become chancellor,"" the SPD's current general secretary Katarina Barley wrote last Monday when-news of Ehmke's death on Sunday became public.-Ehmke had been Brandt's ""specialist for everything"" as head of his chancellery between 1969 and 1972. Funeral guests in Bonn Saturday included Labor Minister Andrea Nahles and Martin Schutz, the SPD designated leader and presumed challenger to Chancellor Angela-Merkel in Germany's federal election next September. A condolence book tribute from Martin Schulz, Merkel's challenger A long political career Ehmke, like Brandt, stepped aside in 1974 over the Guillaume spying affair centered on a close Brandt adviser who was exposed as an East German spy. From 1977, Ehmke served as foreign affairs spokesman for the SPD's parliamentary faction until the SPD under Helmut Schmidt was defeated in 1982 by conservatives led by Helmut Kohl - predecessor to current Chancellor Angela Merkel. ""Ostpolitik"" or the policy of reconciliation, especially with former East Germany, led in 1971 to Brandt being awarded the Nobel Peace Prize - after falling to his knees in Warsaw in atonement for past Nazi German atrocities. Brandt passed away in 1992. From paratrooper to law professor and novelist Born in Danzig - in current-day Poland - in 1927, Ehmke became a paratrooper and ended up wounded aged 18 in Soviet captivity at the end of World War Two. Post-war, he studied constitutional law and politics in Germany and at Princeton in the United States. He-worked as a research associate at Berkeley, California, before becoming law professor at Freiburg in southern Germany.- After his role as chancellery chief in Brandt's first cabinet, Ehnke held the ministerial portfolios for research and postal services. He ended his Bundestag parliamentary career in 1994 and went on to write numerous thriller novels set in political circles. ipj/jm-(dpa, AFP)", -2918,2017/3/18,http://www.dw.com/en/saudi-arabia-seeks-new-footing-for-international-diplomatic-relations/a-38007601?maca=en-rss-en-all-1573-rdf,Saudi Arabia seeks new footing for international diplomatic relations,"Members of the Saudi government are visiting the US and China. In both countries, they are striving for good relations - and their traveling diplomacy shows that the kingdom is exploring new paths.","The West often boils down the difficult relations between Iran and Saudi Arabia to sectarian conflicts between Wahhabists and militant Shiites, but the rivalry is much more complex. (27.02.2017) Many of President Barack Obama's key achievements, like health care reform or the Iran deal, could be diluted or erased by the new Trump administration. But there are at least two historic successes that won't go away. (09.01.2017) Saudi Arabia is closing the King Fahd Academy in Bonn by the end of the year, Saudi diplomats say. Many Germans were wary of the school, which has been suspected of attracting Islamists to Germany. (29.08.2016) In a DW interview, ICG's Tim Johnston said that Rohingya insurgency has links with Saudi Arabia and Pakistan, but the motivating force is not so much jihadist ideology as anger at the treatment of Rohingya in Myanmar. (16.12.2016) Tehran has claimed that 10 countries are willing to mediate a reconciliation between regional adversaries Iran and Saudi Arabia. The two countries oppose each other in the Middle East's many conflicts. (20.01.2017) The Saudi monarch's rare month-long trip takes him to strategically important nations in the economically fast-growing region, with which Riyadh wants to deepen commercial engagement and socio-political ties. (01.03.2017) King Salman is on a month-long tour of Asia, signing massive business deals on each stop. China sees Riyadh as an increasingly important partner as it bolsters is international presence in the middle east. (16.03.2017) Former US President Barack Obama has criticized the travel ban policy of his successor, Donald Trump. It comes as Washington's attorney general filed a lawsuit against the executive order, labeling it unconstitutional. (30.01.2017) Hours before it would have gone into effect, a US judge froze an executive order temporarily banning citizens of six mainly Muslim nations from the United States. President Trump called the ruling ""judicial overreach."" (16.03.2017) A ""historic turning point"" had been reached: That was how-an adviser to Saudi Crown Prince Mohammed bin Salman (l. in above photo) described-relations between the kingdom and the US under new US President Donald Trump,-although he-admitted that there had previously-been some differences between the two countries.- Now, however, the crown prince bent over backwards to offer pleasantries, calling Trump a ""true friend"" of the Arabs and declaring that he did-not believe Trump's attempted travel ban was-aimed at Muslims. Rather, the crown prince stated, the US simply wanted to protect itself from terrorism. Trump and his ministers believe-Saudi Arabia plays a key role in the Middle East, explains Simon Henderson of the Washington Institute for Near East Policy. After years of relative alienation between the kingdom-and the US, a new beginning seems possible again. Crown Prince Salman obviously wanted to take advantage of the opportunity, uttering-civilities-that-not all critics of the travel ban found to be appropriate following national and international protests. 'Significant change in relations' But the Saudi royal's overtures had the desired effect. ""The meeting of the crown prince with Trump marks a significant change in relations - on political, military and economic levels as well as issues of security,"" said the crown prince's adviser after the March 14 meeting. The two men agreed on one thing in particular: ""They have the same views on Iranian expansion in the region,"" the Saudi adviser noted. President Trump's assessment of Iran is indeed clearly distinguishable from that of his predecessor, Barack Obama. The dialogue between Washington and Tehran that was initiated by Obama-was seen in Riyadh as undermining-the decades-long Saudi-American partnership, according to ""Foreign Policy"" magazine: ""In Saudi Arabia, people think that Obama intentionally created a dangerous vacuum in the region, which-is now being filled by an Iran that wants to spread violence and chaos and ultimately even hurt the Saudi royal house."" Beacon of the economy: Oil remains the most important export product of Saudi Arabia Military and ideological conflicts The Iranian-Saudi conflict is currently being waged on several fronts and at-several levels. For example, Saudi Arabia is mainly fighting the Huthi rebels in Yemen, which it considers to be proxies for Iran,-the concern in Riyadh being-that Tehran wants to use them to gain a foothold in the Arabian Peninsula. Saudi Arabia and Iran are also confronting one another-in Syria. The war there has long become a multilayered, highly complex conflict in which Iran, as the ally of Bashar al-Assad, stands opposed to Saudi Arabia, a patron of the insurgents. The two countries also recently clashed-at-a religious level. In 2015, during the Hajj - the annual Muslim pilgrimage to Mecca - hundreds of Iranian pilgrims died in a crowd stampede. Iran held the Saudi royal house responsible, and tensions between the two states have-continued to increase. ""There is, of course, a sectarian component involved that is being exploited by both parties, but this is originally a political conflict about regional influence and geostrategic hegemony,"" says Sebastian Sons, an analyst at-the German Council on Foreign Relations (dgap)-and the author of a-recently published book in German about politics and culture in Saudi Arabia. Accusations of exporting terrorism Ideologically, Saudi Arabia is a powerful state. Although the kingdom declares its intention to fight jihadism on the one hand, it at the same time exported the doctrine and movement of Wahhabism, a particularly strict variant of Sunni Islam raised to a state ideology, to large parts of the Muslim world.-The kingdom has-also been-active in Europe for a long time. For example, Saudi Arabia-sponsored the setup and running of the King Fahd Academy in Bonn, which after operating for over two decades is to be closed this year following long-running criticism that it attracts Islamists. Saudi Arabia's sense of mission has drawn criticism from all over-the world, with many seeing the country as a-sponsor of jihadist terrorism. However, according to Sebastian Sons, the government in Riyadh is not directly responsible for backing terrorist groups: ""It-is more likely to be due to clerical or private sponsors."" He says they have made Wahhabism socially acceptable over the past 30 years by means of-foundations, welfare organizations and influential preachers. ""This can also be seen as a counterbalance to the Shiite expansionism-of Iran."" Relations with China While Crown Prince bin Salman spoke to President Trump in Washington, his father, King Salman bin Abdulaziz, was received in China. Chinese state media reported on Friday that the two countries signed letters of intent and investment agreements to the tune of $65 billion (60.4 billion euros). But the visit was not just about trade. The two states are drawing closer to one another politically and militarily as well.. While China is seeking allies to position itself against the US presence in Asia,- Saudi Arabia is trying to forge-new partnerships and cooperations. The king and the communist: Saudi Arabia and China express the will to friendship in Beijing on March 16 The Arab country is also looking--toward-the East, and of course China plays a very important role there. ""China also wants to expand military relations with Saudi Arabia,"" said Sebastian Sons. ""We want to use this visit as an opportunity to bring the strategic partnership between the two countries to a higher level,"" sources close to the-Chinese government said. This also includes diplomatic relations. In the autumn of 2016, China criticized a law initiated-by the US Senate that would-hold-sponsors of terrorism responsible for its consequences. Such moves-are welcomed by a government suspected of promoting terrorism. Saudi Arabia and the US have now drawn closer-again. But those in Riyadh recognize that these relations are not inviolable. Thus, Saudi Arabia is keeping its options - and its relations with China - very much open. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YcIt", -2919,2017/3/18,http://www.dw.com/en/protests-against-abortion-bill-in-angola/a-38008433?maca=en-rss-en-all-1573-rdf,Protests against abortion bill in Angola,Some 200 demonstrators have protested in Luanda against a draft law criminalizing all abortions to be voted on next week. Angola has one of the world's worst health care systems.-,"The protesters-gathered on Saturday-in the center of the capital, chanting ""Freedom for women,""-""Prison will not solve anything"" and ""Let us decide,"" before dispersing after about two hours. The draft penal code punishes anyone who has an abortion or performs one with up to 10 years in jail. It offers no exceptions to the punishments for those who have or perform abortions. The government had proposed exceptions in cases of rape or when the mother's health is in danger, but parliament rejected these after lobbying by the Catholic Church. Parliament is expected to vote on the criminal code on Thursday, March 23. Angola, which had been ruled by President dos Santos since 1979, is updating its 1886 penal code dating back to the Portuguese colonial era. Protests rare Public protests are rare in Angola and can often be targeted by Angola's security forces, but the peaceful march was allowed by authorities. ""The government or lawmakers have no right to decide whether we must have a child or not,"" Lauranda Gouveia, a marcher, told the French news agency AFP. ""If this law is passed, women who get pregnant after rape will have the choice of trauma, prison or possible death after a clandestine abortion,"" added Sizaltia Cutaia, of the local Open Society activism group. Isabel dos Santos - reported to be the richest woman in Africa, who is also the daughter of veteran President Jose Eduardo dos Santos - has been very critical of the bill. She used her Instagram social media account to denounce the ""criminalization of women.""- Conservative views A spokesperson for Angola's Catholic community, Manuel Imbamba, said that it supported the anti-abortion law, saying ""life cannot be negotiated or trivialized."" Imbamba said-earlier this week that the church regretted the ""banalization"" of the issue as protest organizers moved ahead with their plans. Angola faces an important presidential-election in August as President Jose Eduardo dos Santos, one of Africa's longest-serving leaders, has announced he will not run again after 38 years in power. jbh/jm-(AFP, AP)", -2920,2017/3/18,http://www.dw.com/en/key-files-may-have-been-deleted-ahead-of-probe-into-germany-2006-world-cup-bid/a-38007761?maca=en-rss-en-all-1573-rdf,Key files may have been deleted ahead of probe into Germany 2006 World Cup bid,"Tax authorities have uncovered a cache of deleted files pertinent to an investigation into Germany's 2006 World Cup bid. Members of the organizing committee face allegations of fraud, corruption and misappropriation.","According to local media reports, German tax authorities have discovered and retrieved a deleted cache of files on a computer seized from the German DFB football federation offices. The cache of recovered files appears to be pertinent to an investigation into alleged corruption among members of Germany's 2006 World Cup organization committee. German broadcaster NDR and WDR reported that the files were deleted just moments-after then-DFB boss Wolfgang Niersbach had held a press conference in October 2015 to reject-allegations that illegal payments helped Germany win the right to host the 2006 World Cup. Niersbach resigned less than a month later, after tax authorities raided the DFB's Frankfurt headquarters. Responding to the allegations, a DFB spokesperson said: ""Under the new DFB leadership, we are unable to provide any additional information, while, due to our limited technical resources, we are unable to provide any insights into who may-have deleted the files and whether any subsequent files were deleted."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JVkq Links to disgraced former FIFA official Jack Warner According to reports, the seven documents in question are believed to contain new information linking the organizing committee to former FIFA official Jack Warner.-The disgraced former FIFA official was banned for life from any football-related activity in 2015 after being founded guilty of fraud and corruption. In December, Frankfurt prosecutors said they had successfully cracked an encrypted filed named ""Complex Jack Warner,"" which had been handed to them by the DFB. Niersbach's attorney said the former DFB chief had no knowledge of the ""allegedly deleted files,"" adding that never gave such an order. German World Cup organization committee under investigation Key members from the German organization committee - Franz-Beckenbauer,-Hans-Rudolf Schmidt, Theo Zwanziger and Wolfgang Niersbach - are also under investigation from Switzerland's top prosecution authority. In 2015, it was revealed that committee members faced allegations of fraud al mismanagement, money laundering and misappropriation in connection with the awarding of the 2006 World Cup.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JuUt", -2921,2017/3/18,http://www.aljazeera.com/news/2017/03/modi-bjp-picks-firebrand-head-india-uttar-pradesh-170318185051135.html,Modi BJP picks firebrand to head India's Uttar Pradesh,"PM picks Yogi Adityanath, who has been accused of inciting violence against Muslims, to lead most populous state.","Prime Minister Narendra Modi's right-wing party has picked a controversial firebrand leader to head India's most populous state, where it won a landslide victory last week. Modi's Hindu nationalist Bharatiya Janata Party won an absolute majority in the northern state of Uttar Pradesh, home to 220 million people and seen as a bellwether of national politics, in a massive vote of confidence for the premier halfway into his first term. After a meeting with local BJP legislators on Saturday, senior party leader M. Venkaiah Naidu announced 44-year-old Yogi Adityanath as Uttar Pradesh's next chief minister. ""Tomorrow Yogi Adityanath will take oath as chief minister,"" Naidu said at a press conference in Uttar Pradesh's capital, Lucknow, late on Saturday. Earlier, television footage showed BJP workers garlanding and feeding sweets to the Hindu hardliner who was draped in his iconic saffron-coloured robe. A five-time MP from the BJP, Adityanath is a popular leader known for his fiery Hindu rhetoric who has stirred controversies over his polarising and inflammatory speeches against Muslims - who form nearly 20 percent of the state's population. Most recently, he lauded US President Trump's travel ban that aimed to halt immigrants from a handful of Muslim-majority countries from entering the country, saying India needed similar action to check ""terrorism"". Adityanath-has often fanned flames over religious conversions, inter-religion marriages, and has reportedly been arrested and charged with several crimes in the past including rioting, attempt to murder and trespassing on burial places. He has also supported strong laws for cow protection, and said minority groups that oppose yoga should either leave the country or drown themselves in the sea. The rise of the Hindu priest-turned-politician in Uttar Pradesh, a state prone to sectarian strife, surprised many after Modi made his development agenda the focus of his campaign in the region, which is traditionally fractured along caste and religious lines. READ MORE - Narendra Modi: BJP sees bigger gains in 2019 election Observers questioned whether Adityanath would continue pushing his ""Hindutva"", loosely translated as ""Hinduness"", ideology as chief minister. ""PM @narendramodi says development & growth is his primary agenda. Allowing Hindutva hardliners to helm a major state is a costly mistake,"" said journalist Malini Parthasarathy on Twitter as #YogiAdityanath became a top-trending topic in India. But the BJP, which won 312 of the total 403 seats in Uttar Pradesh, reassured Adityanath would work for development and anti-corruption. ""This mandate is against caste politics, religious politics,"" Naidu said. With last week's clear win in the politically crucial state, the BJP hopes to boost Modi's chances for a second term in 2019 general elections, but it was unclear whether Adityanath's appointment would help it get there or backfire. Modi's dominance has been largely unchallenged since he won the first overall majority in three decades in 2014 elections on a pledge to wipe out corruption and kickstart the economy. Source:-News agencies", -2922,2017/3/18,http://www.aljazeera.com/news/2017/03/erdogan-turns-turkey-wwi-event-political-rally-170318184339498.html,Erdogan turns Turkey's WWI event into political rally,"Turkey's president assures supporters that he ""will keep on standing firm"" despite some European governments' actions.","Turkish President Recep Tayyip Erdogan has pledged at a commemoration of a World War I campaign-to ""keep on standing firm"" despite ""Germans, Dutch, Austrians, Swiss, Belgians, Danes or whoever it is"" ahead of a constitutional referendum next month on whether to expand his powers-. Speaking in the Aegean port of Canakkale, near where Ottoman armies held off an Allied expeditionary force in 1915-1916,-Erdogan criticised some European countries that have prevented Turkish ministers from campaigning for votes in the Turkish diaspora. ""Let them try and hinder them. Whether Germans, Dutch, Austrians, Swiss, Belgians, Danes or whoever it is, know that your president has stood firm and will keep on standing firm,"" he said. He maintained that an executive presidency and the abolition of the prime minister's post would help Turkey develop economically and deal with security challenges, which included a botched coup attempt last year. Opponents of the democratically elected president view the April 16 referendum as part of a dangerous drift toward authoritarian rule. Speaking in Ankara, Turkey's main opposition leader, Kemal Kilicdaroglu, urged Turks to vote no in the referendum, saying approval would undermine democracy. Supporters see him as a pillar of stability, Muslim piety and nationalist pride in a turbulent region that includes neighbouring Syria. READ MORE: Erdogan says Germany 'aids and harbours terror' The March 18 anniversary marks the beginning of an Allied naval bombardment near Canakkale, at the Dardanelles strait. The Canakkale battle is refered to by its former Allied adversaries, including Australia and New Zealand, as the Gallipoli campaign. Former Allied nations hold their own commemoration on April 25, the day in 1915 when troops under British command landed after the bombardment. The Allied force failed to advance and withdrew in early 1916. Source:-News agencies", -2923,2017/3/18,http://www.aljazeera.com/news/2017/03/east-libyan-forces-claim-victory-southwest-banghazi-170318165003959.html,East Libyan forces claim victory in southwest Banghazi,"Khalifa Haftar's Libyan National Army kills 23 rival fighters and arrests six more, ending weeks of siege. UN-backed government","Khalifa Haftar's east Libyan forces have claimed capture of the final holdout of hardline armed forces in the southwest of Benghazi, ending weeks of resistance by fighters camped in a group of tower blocks. Milad al-Zwai, spokesman for the eastern-based Libyan National Army (LNA), said on Saturday the siege at the ""12 blocks"" ended when rival fighters tried to escape at dawn. He said 23 of them had been killed and six arrested while five LNA troops were killed and six wounded. Dozens of family members had also been in the besieged buildings and an unknown number were detained by the LNA. It was not immediately clear whether any of the LNA's opponents or their families had escaped. A news agency run close to a parallel government in eastern Libya said LNA forces had ""intensified their raids against the last bastions of the jihadist groups in Benghazi, some of whom tried to flee during the night"". The LNA said it had lost a MiG-21 fighter jet over the Benghazi district of Sabri on Saturday, though the pilot had ejected. Persistent conflict in Libya since the 2011 ouster of dictator Moamer Kadhafi allowed hardline organisations, including the Islamic State in Iraq and the Levant (ISIL), to gain a foothold in the country. Benghazi, which fell to hardline groups in 2014, has been the scene of deadly fighting between them and forces loyal to Haftar, who controls much of eastern Libya in defiance of the UN-backed unity government in Tripoli. READ MORE: Khalifa Haftar forces capture key Libya oil terminals The LNA has managed to retake a large part of Benghazi, the birthplace of the 2011 revolution but it says hardline forces are still present in the central districts of Al-Saberi and Suq al-Hut. Among them is the Revolutionary Shura Council of Benghazi, an alliance of Islamist militias that includes Al-Qaeda-linked Ansar Al-Sharia.-others say they are fighting to prevent the return of authoritarian rule to Libya Haftar has rejected a UN-backed Government of National Accord (GNA) in the capital Tripoli that was meant to reunite the country after it split between eastern and western based governments and military factions in 2014. On Saturday, representatives of the United Nations, European Union, Arab League and African Union said in the Egyptian capital of Cairo that they supported Tripoli-based government. The meeting came a day after gunmen opened fire at demonstrators protesting against ""militias"" in Tripoli. Arab League chief Ahmed Aboul-Gheit-said: ""We agreed on supporting the (UN-backed) presidential council in its efforts to exert security control in the capital, including the implementation of the truce agreement."" Militias have been key power brokers in a country plagued by violence and lawlessness since the NATO-backed ouster of longtime ruler Muammar Gaddafi in 2011. The embattled GNA has secured the support of several armed groups, but dozens of militias continue to operate in Tripoli. Source:-News agencies", -2924,2017/3/18,http://www.aljazeera.com/programmes/listeningpost/2017/03/pakistan-geo-tv-ary-news-face-170318120831422.html,Pakistan's GEO TV and ARY News face off,"As their legal battle ends, it is time for Geo TV and ARY News to reflect on the future of news in Pakistan.","The case failed to draw that much attention but, as 2016 drew to a close, a court in London convicted the owners of ARY News of slander and libel and awarded $3.7m in damages to the plaintiff, Geo TV. What set this case apart was the fact that a British court was ruling on a squabble between two of the biggest media players in Pakistan. The very public battle between Geo TV and ARY has been characterized as a low point for the Pakistani news media. The GEO-ARY debacle was perceived to be a proxy war between the establishment and the government of Pakistan. Munizae Jahangir, anchor, AAJ TV The TV news sector in Pakistan has exploded in size in the 15 years since the days of only one, state-owned domestic channel. But the quality of the journalism often gives way to sensationalism and irresponsible reporting, and, in this case, reckless accusations of blasphemy. Some see the conflict between GEO and ARY as a kind proxy war for a larger struggle, involving the Pakistani powers that be ""?over who really controls the country. The Listening Post's Meenakshi Ravi reports on a slightly complicated media story that reveals much about politics and power in Pakistan. ""The competition was rooted in how well the channels themselves were performing...but over time, it morphed into something way more ugly, way more public,"" says Sadaf Khan, director of programmes, Media Matters for Democracy. April 2014 marked a turning point in the competition between the two channels. An attempt on the life of Geo News' most prominent anchor, Hamid Mir, put the journalist and his channel on a collision course with the Pakistani intelligence agency, the ISI. Mir had reported extensively on the agency and said he was convinced it was behind the attack. This wasn't the first time the ISI was accused of targeting a journalist. In 2011, investigative reporter Saleem Shahzad was kidnapped and then found dead in north-east Pakistan. Shahzad had documented three warnings from the ISI, letting him know his work had put him on their radar. Now, three years later, the Mir case put the lingering issue of alleged rogue operations of the ISI back in the headlines, and ARY waded into the debate. When ARY backed the ISI, it ostensibly aligned itself with the intelligence community and the military - the Pakistani establishment. Geo, on the other hand, was seen to be allied with the elected government. READ MORE: Pakistan's Geo News channel taken off air ""The GEO-ARY debacle was perceived to be a proxy war between the establishment and the government of Pakistan,"" explains Munizae Jahangir, senior anchor & executive producer, AAJ Television. ARY News made it personal by accusing GEO TV owner Mir Shakil ur Rahman of taking money from Indian intelligence and using it to defame and discredit Pakistan. Such accusations can get you killed in Pakistan. ""One of the main allegations was that we had run this campaign for peace between India and Pakistan, which was a media-led campaign, the Times of India, and The Jang Group had come together. This was completely an initiative that was funded entirely by ourselves - we had absolutely no funding from any international organisation, let alone intelligence agencies, and, and yet, continuously, documents were waved on the screen,"" says GEO TV President Imran Aslam. ""The editorial stance taken by our channels on various issues are different...However if you work on the behest of any government or you ally yourself with a government, then your journalism is flawed and the Jang and Geo group's output are perfect examples of this,"" says ARY News host Arshad Sharif. ARY reported that Rahman has escaped to Dubai with the active collusion of elements of the Pakistani government. ""Blasphemy accusations in Pakistan leads to vigilante justice,"" says Khan. Thus Geo TV and the Jang Group took their case against ARY News to the Pakistan Electronic Media Regulatory Authority (PEMRA) and the Pakistani courts. Those cases dragged on and are still pending. Exasperated by the slow pace of justice, Geo turned to Britain's legal system to clear their name. As a result, ARY had to pay $3.7m to Geo. Has this case stopped slandering and libel? ""It hasn't,"" says Jahangir. Pakistan's private TV outlets are still growing in number but the quality of the journalism falls well short of the quantity of the output. The spectacle of two channels bickering, on the air and in the courts, does neither of them credit. It hints at a state of crisis in Pakistan's news broadcasting space, probably the most influential medium in a strategically important country. And that's not good news. Contributors: Sadaf Khan, director of programmes, Media Matters for Democracy Munizae Jahangir, senior anchor & executive producer, AAJ Television Imran Aslam, president, Geo TV Arshad Sharif, host, ARY News Source:-Al Jazeera", -2925,2017/3/18,http://www.aljazeera.com/news/2017/03/g20-fails-agree-free-trade-endorsement-170318143522663.html,G20 fails to agree on free trade endorsement,Trump's anti-globalisation agenda wins against the bloc's decade-old tradition of rejecting protectionism. 'Fairer trade',"Finance ministers from 20 world powers have failed to reach an agreement to endorse free trade and rejection of protectionism in the face of US opposition, according to the communique of the G20 participants. The ministers and central bank chiefs of the G20 countries ended talks in the German town of Baden Baden on Saturday, making only a token reference for the need to strengthen the contribution of trade to the economy. ""This is not a good outcome of the meeting,"" a G20 delegate quoted Germany's central bank chief Jens Weidmann as saying. Germany has a $65bn trade surplus with the US. Breaking with the bloc's decade-old tradition of rejecting protectionism and endorsing open trade marks a win for US President Donald Trump and his anti-globalisation agenda. US Treasury Secretary Steven Mnuchin said on Thursday in Berlin that the Trump administration had no desire to get into trade wars but that certain trade relationships need to be re-examined to make them fairer for US workers. After a meeting with German Chancellor Angela Merkel on Friday, Trump said that he did not believe in isolationism but that trade policy should be fairer. The G20 financial leaders on Saturday reaffirmed their commitment to refrain from competitive currency devaluation, a key agreement as the US has repeatedly complained that some of its trade partners are using artificially devalued currencies to gain a trade advantage. G20 also walked back on a pledge to support climate change finance, an anticipated outcome after Trump called climate change a ""hoax"". On Thursday, Mick Mulvaney, Trump's budget director, said climate change funding would be ""a waste of money"". Source:-News agencies", -2926,2017/3/18,http://www.aljazeera.com/programmes/countingthecost/2017/03/assessing-donald-trump-budget-proposal-170318084324307.html,Assessing Donald Trump's budget proposal,"If approved, Trump's budget plan would increase military spending while 18 other agencies will experience budgets cuts.","It has been a busy few days for the US economy as President Donald Trump unveiled his first spending plan. It proposed sharp spending increases in some areas, coupled with stark cuts in others. All of this is taking place as the Federal Reserve raised its benchmark interest rate by a quarter of one percent, only the third time that this has happened in the last decade. Russell Jones, an economist and partner at Llewellyn Consulting in London, offers his take. [Trump's budget] smacks of Reaganomics back in the 1980s with a large increase in defense spending and hefty cuts for programmes which are designed to help the poor. Russell Jones, economist and partner, Llewellyn Consulting There are big winners and big losers in Trump's first budget plan - if approved by Congress. Military spending would increase by nine percent to $54bn, while 18 other agencies will experience budgets cuts. For instance, the Department of State could see its budget fall by about 28 percent, which would have big international implications - impacting the funding of foreign aid, the UN and peacekeeping missions. International efforts to tackle climate change could be dealt a blow with the Environmental Protection Agency losing over 30 percent of its budget. Domestically, programmes that aid the poor and unemployed, as well as funding for the arts, sciences, healthcare and infrastructure, could be stripped of huge sums of money. It's worth remembering that Trump's proposal is only a partial picture of the budget, says Jones, ""it only applies to a quarter of federal spending. ""But this plan is potentially quite a transformation. It is a very conservative budget, rather than populist budget. In fact, in many ways, it smacks of Reaganomics back in the 1980s with a large increase in defense spending and hefty cuts for programmes which are designed to help the poor."" The full effect of Trump's budget plan on the US economy are still unknown until considerations on tax reform, healthcare, infrastructure are made clear, says Jones. Saudi-US ties: US President Donald Trump took out the White House's silverware for Saudi Arabia's powerful Deputy Crown Prince Mohammed bin Salman this week. They discussed various issues of mutual interest and concern including Iran, oil, arms and investment. It was the first visit by a GCC leader to the White House, since Trump took office. John Sfakianakis, director of economic research at the Gulf Research Center gave us his perspective from Riyadh. Brexit: The British government and Brussels are preparing for what is likely to be an epic negotiation on divorcing the UK from the European Union. A deal must be reached within two years, but already unforeseen hurdles are being thrown in front of Prime Minister Theresa May. The unity of the United Kingdom itself is under threat and she is facing growing impatience from within her own party. Jameel Ahmad, chief market analyst at FXTM discusses the strains and stresses on business, as well as the UK itself. Netherlands elections: In the Netherlands, the centre-right VVD""�led coalition won the general elections. In the end, Prime Minister Mark Rutte soundly beat the protectionist populist Geert Wilders' PPV party, where anti-European Union and anti-immigration sentiment dominated the campaign. Many believed that the Dutch electorate would be the next to ruthlessly upset the liberal order that has dominated the West for decades. But it was not to be. Karel Lannoo, CEO of the Centre for European Policy Studies discusses what the implications are for the rest of the continent. Source:-Al Jazeera", -2927,2017/3/18,http://www.aljazeera.com/news/2017/03/iraqi-forces-retake-key-areas-west-mosul-170318135659547.html,Iraqi forces retake two key areas in west Mosul,Iraqi police say the recapture of al-Kur and al-Tawafa will enable civilians to move to safer areas.,"Iraqi forces in Mosul have said they have captured two key neighbourhoods in its offensive to retake the western part of the city from-the Islamic State of Iraq and the Levant (ISIL, also known as ISIS).- Adel Ahmed, the captain of the federal police, said control of the al-Kur and al-Tawafa will allow for a safe corridor for civilians to leave the city. ""Liberating both districts will allow opening secured corridors for the exit of civilians to safer areas,""?he told the DPA news agency. Ahmed also said Saturday's advance followed intense clashes between Iraqi forces and ISIL fighters. The Iraqi military launched the most recent offensive on western Mosul, the largest remaining ISIL stronghold in Iraq, on February 19. On Wednesday, Iraqi forces took control of a main bridge leading to the city and advanced towards the mosque where ISIL's leader declared a ""caliphate"" in 2014.- Nearly 100,000 Iraqis have fled western Mosul over the past three weeks, the International Organization for Migration (IOM) said on Wednesday.- The Iraqi Ministry of Displacement and Migration said that as many as 600,000 civilians remained trapped in neighbourhoods of west Mosul.- IN PICTURES: The battle for western Mosul The operation in the city officially began in October last year. In January, its eastern half was declared ""fully liberated"". - Source:-Al Jazeera and news agencies", -2928,2017/3/18,http://www.aljazeera.com/news/2017/03/protests-uk-post-brexit-racism-170318140636538.html,Protests in UK against post-Brexit racism,Thousands rally in cities across the country against rise in racist sentiment after last June's vote.,"Protesters have voiced their anger at rising anti-immigration sentiment in the UK in a series of demonstrations across the country. Thousands of anti-racism activists at Saturday's rally in central London took aim at the increasing number of attacks on foreigners in the aftermath of the vote to leave the EU last year. Similar demonstrations, which were organised to mark the UN's International Day for the Elimination of Racial Discrimination, drew crowds in the Welsh capital Cardiff, and in the Scottish city of Glasgow. Many activists condemned the government's refusal to guarantee residency for EU nationals living in the UK after it leaves the bloc in just over two years time. Brexit: What is Article 50? Despina Karayianni, a Greek national living in London, told Al Jazeera that the British Prime Minister Theresa May was using EU nationals like her as ""bargaining chips""? ""she wants to frighten EU citizens living, working and studying here,""?she said, adding ""I don't think she will succeed because we are part of this society and the majority here don't want us kicked out.""?The British government says it will not guarantee residency rights for EU nationals living in the UK until it receives reciprocal guarantees from the EU for Britons living in other member states.- May is expected to formally announce the UK's intent to leave the EU by invoking Article 50 of the Lisbon Treaty later this month, sparking negotiations on a wide array of issues, including the fate of nearly 3 million EU nationals living in Britain. June's vote led to a dramatic rise in racist attacks on visible minorities and immigrants from EU countries. Hate crimes for the July to September quarter rose from 10,793 incidents in 2015 to 14,295 in 2016, according to a report published in February by the Press Association, which was derived from police statistics. ""�[Political] rhetoric contributes to the toxic racist atmosphere that has led to attacks on EU citizens and on Muslims,""?said Karayianni; a view shared by many of the protesters in London. Tom Corbin, an activist from the western English county of Wiltshire, told Al Jazeera that the rhetoric attached to Brexit had encouraged people to ""speak in a way they hadn""t spoken for years""? ""?Brexit) has given people an excuse to have racist views towards immigrants,""?he said, adding he held the political class responsible for the rise in xenophobic sentiment. ""I don""t hold Theresa May singularly responsible, it was David Cameron (her predecessor) who instigated Brexit and I think him and the Conservative party have an awful lot to answer for.""?The Conservative party government has condemned the rise in xenophobic violence, which it says has ""no place whatsoever""?in British society.- Source:-Al Jazeera", -2929,2017/3/18,http://www.aljazeera.com/programmes/listeningpost/2017/03/referendum-turkey-breaking-news-europe-170318085906703.html,"Referendum in Turkey, breaking news in Europe From this Episode",Could President Erdogan's narrative of a Europe at battle with Turkey sway voters in advance of April's vote?,"On The Listening Post this week: Could Erdogan's narrative of a Europe at battle with Turkey sway voters in advance of April's vote? Plus, the tale of a face-off between two Pakistani channels. Referendum in Turkey, breaking news in Europe Next month, the Turkish people will vote in a referendum which could grant the country's presidency and, by extension, President Recep Tayyip Erdogan, sweeping new powers. But with as many as three million Turkish votes in European countries up for grabs, campaign headlines have focused on a war of words with Germany and the Netherlands over their decision to ban rallies in their territory. President Erdogan's rhetoric of a ""Nazi"", Islamophobic Europe crushing Turkish ambitions has been echoed by a cohort of loyal media, looking to stir up nationalistic fervour and drum up support for a ""Yes"" vote. A few journalists daring to openly support the 'No' vote have been showed the door. Contributors: Ravza Kavakci, AK party legislator Meryem Ilayda Atlas, journalist, Sabah Mehves Evin, journalist, Diken Ceren Sozeri, associate professor, Galatasaray University On our radar: ""?Israel's new public broadcaster set to be launched next month may have to be postponed yet again as it continues to be mired in political controversy. ""?A Basque reporter, fined by authorities under Spain's contentious gag law, has had his case dropped by public prosecutors. ""?There has been another murder of a reporter in the Philippines. The motives are unclear, but the government of President Duterte says it is looking into the crime. Media battles on the air in Pakistan A verdict from a British court in late 2016 signalled a formal end to a long-running battle between two of Pakistan's biggest news channels ""?Geo and ARY. Now, in the aftermath of that fight, is a moment for the news industry there to reflect and reform. Contributors: Sadaf Khan, director of programmes, Media Matters for Democracy Munizae Jahangir, senior anchor & executive producer, AAJTelevision Imran Aslam, president, Geo TV Arshad Sharif, host, ARY News Source:-Al Jazeera", -2930,2017/3/18,http://www.aljazeera.com/news/2017/03/man-shot-attack-paris-orly-airport-170318075734184.html,Man shot dead after attack at Paris Orly airport,"Military servicemen killed man who sought to seize weapon from soldier, triggering major security alert. Operation Sentinelle","Two soldiers patrolling Orly airport in Paris have shot a man dead after he tackled their female colleague to the floor and tried to take her weapon, according to French Defence Minister Jean-Yves Le Drian. Witnesses said the Orly south terminal was evacuated following the shooting at around 8:30am local time (07:30 GMT) on Saturday. Thousands of travelers were evacuated and at least 15 flights were diverted to the city's other airport, Charles de Gaulle. No one else was hurt. Al Jazeera's Natasha Butler, reporting from Paris, said that there was a lot of confusion among the travellers. ""People didn't know whether to come or go. One of the terminals has been reopened and I could see some people wheeling their bags towards that terminal. But the terminal where the incident happened has been shut,"" she said. The man, a known figure to French police and intelligence officials, had earlier in the day opened fire on a police officer during an identity check in the northern Paris suburb of Garges-les-Gonesse, according to Interior Minister Bruno Le Roux.- Then, Paris police said, he stole a woman's car at gunpoint. It was found near Orly. Police did not immediately provide a motive or identify the attacker, though the Paris prosecutor's office said he was 39 and had a record of robbery and drug offenses.- The office said he did not appear in a French government database of people considered potential threats to national security. The prosecutor's office said its anti-terrorism division was handling the investigation and had taken the attacker's father and brother into custody for questioning. Francois Hollande, the French president, praised the courage and efficiency of troops and police following Saturday's incidents. In a written statement, Hollande reaffirmed the state's ""determination to act without respite to fight terrorism, defend our compatriots' security and ensure the protection of the territory"". The soldier from whom the man tried to take the weapon was part of Operation Sentinelle, a force of 7,000 troops deployed in the capital and other cities after the January 2015 Paris attack on satirical magazine Charlie Hebdo. The force was reinforced after the assaults that left 130 people dead in Paris in November of that year. A notice was posted on the Paris airports authority website urging passengers not to travel to Orly. Budget airline easyJet said it expected interruptions and flight delays, adding that 46 of its flights were due to fly in and out of the airport on Saturday. Orly is Paris' second-biggest airport, behind Charles de Gaulle. It has both domestic and international flights, notably to destinations in Europe and Africa. Source:-Al Jazeera and news agencies", -2931,2017/3/18,http://www.aljazeera.com/programmes/listeningpost/2017/03/turkey-political-future-tested-europe-170318125525763.html,Turkey's political future tested in Europe,Could Europe-Ankara tensions affect Turkey's upcoming referendum vote?,"In just under a month from now, voters across Turkey will vote in a referendum on the future shape of their government, and, by extension, how much power they are prepared to invest in President Recep Tayyip Erdogan. So why is so much of the breaking campaign news coming out of Switzerland, Germany and the Netherlands? Because the Turkish diaspora in Europe could prove crucial to the outcome. There are as many as three million Turkish votes in European countries up for grabs. Erdogan is looking for a ""Yes"" vote, which would lead to constitutional changes that would turn Turkey into a presidential system with Erdogan and the AK party he leads at the top. And when some European governments denied the AK party permission to hold campaign rallies on their territory, the diplomatic fallout was swift. The subsequent war of words has been covered heavily by Turkish media outlets that back Erdogan - and these days, that means almost the entire domestic television news industry. Journalists there understand that coming out in favour of a ""No"" vote is one thing, but to be too critical of the president leading the 'Yes' forces could cost them their jobs, and land them alongside Kurds, Gulenists and others Erdogan calls enemies of the state. Our lead story this week is about Turkey's political future, but our starting points are in the European countries where the campaign, and the coverage, are making news. It began on the streets of Rotterdam, where Turkish political demonstrations took place. Expats were protesting the Dutch government's refusal to allow the Turkish Foreign Minister Mevlut Cavusoglu-to speak at a rally in the city when a protester was attacked by a police dog. The images made their way across Turkish news feeds. President Erdogan responded by calling the Dutch ""Nazi remnants"" and warned the government there not to interfere in Turkey's referendum: ""You will pay the price. You will pay the price,"" he said. The president effectively wrote the next day's headline for the Turkish news editors to cut and paste. And they seemed happy to do so, across the board. Erdogan's remarks are nothing new, says Ceren Sozeri, associate professor at Galatasaray University. ""The papers are used to reporting stories based on Erdogan's statements. They report in the same way based on the same source. This goes beyond media control. It shows that the newspapers have turned into a tool of propaganda."" Ravza Kavakci, an AKP member of parliament, countered Sozeri's claims. ""Sometimes our media behave like the supporters of a football team. We cannot change our habits. So the fact that a number of media outlets used similar headlines does not mean they were written by one person, but that the case was perceived similarly by different segments of society. That proves there is diversity,"" she said. The series of bilateral incidents over the AK party's planned rallies got its start in Germany, where Angela Merkel's government refused to allow gatherings in three cities earlier this month. But Ankara and Berlin had another issue brewing before that, with the February 17 arrest by Turkish authorities of Deniz Yucel, a dual-national based in Turkey as a correspondent-for the German paper Die Welt. The charges relate to leaked emails his paper published from the account of President Erdogan's son-in-law. Yucel is accused of ""spreading propaganda"" and alleged links to the Kurdish PKK, a movement the Turkish government labels a ""terror"" group. Erdogan, despite the office he holds, is seldom shy to comment on cases that are before the courts. He has called Yucel a ""terrorist"". So is Erdogan scoring political points by heightening tensions? ""We can safely say this was a political manoeuvre. Erdogan and Merkel had met a short while before Deniz Yucel was arrested. And Merkel, for the first time in a while, criticised Turkey over freedom of the press,"" says Diken journalist Mehves Evin. There are other media issues that stand between Germany and Turkey, including the case of Can Dundar, the former editor of Cumhuriyet. Dundar and a colleague were convicted last year of espionage after they published classified documents that they said revealed covert Turkish arms shipments to Syrian rebels. They fled to Germany. The Merkel government did not just welcome them, its justice minister recently hosted Dundar at a reception. Dundar has also launched a Turkish news website from Germany, which the government in Ankara has blocked from being seen in Turkey. The Turkish government was already among the world's leading jailers of journalists, well before the crackdown that followed the failed coup last July. According to Ceren Sozeri, last year's report by Reporters without Borders and Bianet showed seven of the 10 most popular media outlets in Turkey, including television channels, radio stations and websites were under government control. ""More than 150 journalists are in prison. What is striking about the pro-government media criticising freedom of speech in Europe is that there is no mention of the oppression in domestic Turkish politics."" Dogan is one of Turkey's largest media companies. Last month, when one of its newscasters on Kanal D, Irfan Degirmenci, tweeted that he would be voting 'No' in the referendum, Dogan fired him. Dogan's case is hardly unique. The editor-in-chief of Turkey's most circulated newspaper, Hurriyet, was fired two weeks ago after publishing a story on unrest within the Turkish military. Contributors: Meryem Ilayda Atlas, journalist, Sabah Newspaper Ceren Sozeri, associate professor, Galatasaray University Ravza Kavakci, AKP Member of Parliament Mehves Evin, journalist, Diken Source:-Al Jazeera", -2932,2017/3/18,http://www.aljazeera.com/news/2017/03/rex-tillerson-china-discuss-north-korea-170318074049227.html,Rex Tillerson in China to discuss North Korea,US secretary of state travels to Beijing after saying pre-emptive military action against North Korea may be necessary. First Asia visit,"Rex Tillerson has arrived in Beijing for his first face-to-face talks with Chinese leaders expected to focus on North Korea's nuclear programme. The US secretary of state's-visit on Saturday followed his remarks the previous day in South Korea where he cautioned that pre-emptive military action against North Korea might be necessary. He said US military action against North Korea is an ""option on the table"", and warned-the country to end its missile and nuclear programmes. ""The policy of strategic patience has ended,"" Tillerson said during his joint press conference with his South Korean counterpart, Yun Byung-se, on Friday. ""Strategic patience"" is the term given to the US policy under-Barack Obama-when the US ruled out engaging the North until it made a tangible commitment to denuclearisation, hoping that internal stresses would bring about change. Tillerson held talks with Wang Yi, China's foreign minister,-on Saturday. Yi gave warning last week that North Korea and the US-South Korea duo were like ""two accelerating trains"" headed at each other, with neither side willing to give way. ""The question is: Are the two sides really ready for a head-on collision?"" Wang said. ""Our priority now is to flash the red light and apply the brakes on both trains."" Wang said North Korea could suspend its nuclear and missile activities in exchange for a halt in joint US-South Korea military drills, a proposal quickly dismissed by Nikki Haley, US ambassador to the UN,-who said the US has to see ""some sort of positive action"" from North Korea before it can take leader Kim Jong-un seriously. Tillerson, a former oil executive, began his first Asian visit as secretary of state in Japan on Wednesday followed by South Korea. He travelled to-China-from South Korea on Saturday. Previously, Tillerson had said in Tokyo that 20 years of diplomatic and other efforts, including a period when the US provided North Korea with $1.35bn in assistance ""to take a different pathway"", had come to nothing. The US has been pressing China to do more to rein in North Korea's nuclear and missile programmes, including imposing tougher sanctions on North Korea. However, China has been angered by the deployment of a US missile defence system to the South. China says the system's radar is a threat to its security. Al Jazeera's Adrian Brown, reporting from Beijing, said the Chinese government was worried about American statements that the US might take some sort of pre-emtive military action against North Korea in a worst-case scenario. ""What they are concerned about is the missile defence system that is now been deployed to South Korea,"" he said. ""The worry is that in the near future, if the North fires another long-range missile, this system might be used to intercept that missile, and that could eventually lead to military action against North Korea."" North Korea has a long-standing ambition to become a nuclear power and conducted its first underground atomic test in 2006, in the teeth of global opposition. The country has continued to defy the international community for years, even after two rounds of UN-backed sanctions. It has conducted two nuclear tests and a series of missile launches since the beginning of last year. North Korea recently launched four more ballistic missiles and is working to develop nuclear-tipped missiles that can reach the US. Source:-Al Jazeera and news agencies", -2933,2017/3/18,http://www.aljazeera.com/news/2017/03/rebels-leave-al-waer-district-evacuation-deal-170318094703849.html,Rebels leave Al Waer district under evacuation deal,Fighters and their families moving out of Al Waer and into rebel-held parts of Aleppo under arrangement with government.,"Scores of rebel fighters and their families have begun leaving the last opposition-held area in the Syrian city of Homs, state media and witnesses say, under an evacuation deal with the government expected to be among the largest of its kind. By midday around 100 fighters and their families had left the city, once known as the epicenter of the 2011 uprising against President Bashar Assad. They were bound for a town on the Turkish border after the latest in a series of local agreements in which opposition fighters have relocated to the rebel-held north after months or years under siege in the country's major cities. Green government buses ferried the fighters, who were carrying assault rifles, and their families from the northern Al Waer neighbourhood to Homs' western entrance, where they disembarked and had some of their bags searched under the supervision of Syrian and Russian military police.- The men, women and children, most of them carrying their belongings in suitcases and plastic bags, then boarded white buses that were to take them to the northern rebel-held town of Jarablous on the border with Turkey. The evacuees were assisted by Syrian Arab Red Crescent members as they put their belongings in the buses. READ MORE - Syria war: 'Worst man-made disaster since World War II' The Al Waer neighbourhood is home to about 75,000 people and has been under a government siege since 2013, triggering shortages of medicine, and occasionally of food. The evacuation is the third phase of an agreement reached last year that saw hundreds of fighters and their families leave the area. Talal Barazi, the-Homs governor,-told Reuters news agency that about 1,500 people would depart for Aleppo's countryside on Saturday, including at least 400 fighters. Russian and Syrian forces were overseeing the evacuation, and the full departure of rebels from Al Waer would take about six weeks, he said. ""The preparations and the reality on the ground indicate that things will go well,"" Barazi said. The Syrian government has increasingly tried to press besieged rebel areas to surrender and accept what it calls reconciliation agreements that involve fighters departing for northern Syria. Damascus describes such deals as a good way of bringing the country closer to peace after six years of conflict. But the opposition describes them as a tactic of forcibly displacing people who oppose Assad after years of bombardment and siege. ""There is a delibrate strategy from the Syrian government in terms of retaking some of these areas is that they lay a siege on the area preventing all kinds of supplies from getting in, including food, medical supplies etc and then they-indiscriminately-attack these areas,"" the deputy director of emergencies at Human Rights Watch, Ole Solvang, told Al Jazeera. ""Aleppo was perhaps the most egregious example of that but we've seen it in many other places as well, so one of the major concerns HRW has is about these deals and the way they come about."" Under the Al Waer deal, between 10,000 and 15,000 people would evacuate in batches over the coming weeks, according to a Britain-based war monitor and the opposition Homs Media Center. The Syrian Observatory for Human Rights (SOHR) said the buses would go to the Jarablus area in the north, held by Turkey-backed rebels. Once completed, it would mark the biggest evacuation during the war out of one Syrian district, which is home to about 40,000 civilians and more than 2,500 fighters, the SOHR said. The deal follows other agreements that were never fully implemented between the government and rebel groups in Al Waer, which has been targeted heavily by air strikes in recent weeks. Source:-Al Jazeera and news agencies", -2934,2017/3/18,http://www.aljazeera.com/indepth/opinion/2017/03/implications-syrian-transition-assad-170318122952744.html,,,"There are many remaining unknowns of the Syria conflict but it is increasingly becoming clear that the situation is moving into its final phases. All indications are that there will be no clear military victory and that some form of negotiated settlement is inevitable. The Syrian context has been transformed since the failed coup in Turkey last summer and President Recep Tayyip Erdogan's subsequent shift to consolidate his grip over the country. This opening has led to the Astana process and rejuvenated hopes in an ""Eastern"" solution, based on Turkish, Russian and, to some extent, Iranian cooperation. While Astana has presented the most durable set of ceasefires so far in the conflict, it reinforced the inevitability of Bashar al-Assad remaining central to the foreseeable future of Syria. In public, the calls for his removal are becoming fainter by the day, while in private, many, including some leading figures of opposition, are actively considering their options with him in office. A political settlement that includes Assad will have far-reaching implications for Syria's long-term peace and stability. In the immediate term, this will affect the efficacy of a transition on a number of fronts. First, given the likelihood that some remnants of the armed opposition will neither be defeated nor incorporated into a political settlement, any peace agreement is likely to uneasily coexist alongside efforts to combat ongoing resistance. Rejectionist rebels will likely regroup, rearm, and fortify in the rural hinterlands with the aim of destabilising any post-conflict transition in Syria. This is already happening to some degree in Idlib, Daraa and elsewhere. Similarly, the militias that fought for Assad will continue to seek a role in the post-settlement era. One of the major challenges will, therefore, be the Demobilisation, Disarmament, and Reintegration (DDR) of tens of thousands of fighters who have known nothing but war over the last six years. Those not addressed will quickly disperse, and be driven into the arms of new insurgent groups, most likely in the form of a hybrid insurgency composed of the hardline anti-regime and or anti-settlement forces. Second, while the political process will likely frame Syria as one unitary state with formal institutions, such as a governing council or another transitional body, new parliament, or legal system, informal aspects of the political settlement will constrain state effectiveness. OPINION: Six must-read opinions on Syria's sixth war anniversary Given the nature of the conflict, backroom deals must, out of necessity, be formed at all levels, whether to satisfy Iranian ambitions, assuage the sectarian divisions, or reward Assad supporters who will inevitably feel that they have won the war for him on the battlefield. These unwritten, informal agreements, pacts and alliances could prove to be an immense handicap on Syria's formal institutions. Administratively, state revenue will be a great challenge, in particular, the issue of local taxation, which is critical to a sustainable funding base and also to reconstituting state-citizen relations. Even with a potentially strong asset base, it is likely that Syria will, for many years to come, generate symptoms of state fragility and lack of financial resources. Furthermore, the nature of political transition will have a strong influence over the possibility for financing reconstruction. The cost of reconstruction will be high, with estimates ranging from $170bn to over one trillion dollars (PDF). Whatever way the numbers are interpreted, Syria will be in need of vast amounts of international aid. Yet, Russia cannot afford to foot the bill for large-scale reconstruction and the United States President Donald Trump has announced an end to the era of nation-building. The biggest contributors will therefore likely be the European Union and the Gulf states. However, under an unreconstructed Assad regime, it is unlikely that the Gulf states will go back to their prewar levels of support to Syria. The EU has a clear interest in bringing stability to Syria, in particular since Turkey can no longer be expected to act as a buffer zone. While the EU will have to hold its nose and deliver the cash, it will expect its funds to be handled separately from the Syrian state coffers. This will involve the design of sub-entities and parallel structures - some of which may bear the name of the Syrian government - but under a high degree of international supervision to ensure acceptable standards of accountability. The move of rebuilding under a protracted insurgency will lead to uneven reconstruction and development in Syria. - This poses dangers for Syrian ownership of the reconstruction process and a long-term risk in de-capacitating the Syrian state while it is in a process of state-building. The inability to trust the government will also mean that for the transitional phase reconstruction will be conceptualised only in terms of incremental, small-scale, humanitarian-driven projects rather than the massive economic and infrastructure reconstruction efforts that are required. Furthermore, with sanctions, travel bans and other punitive measures are likely to be put in place if Assad were to continue his hold on power, and there is a risk of creating an isolated regime in the mould of Eritrea or Sudan rather than bringing the country back into the international fold of trade and development. Fourth, the move of rebuilding under a protracted insurgency will lead to uneven reconstruction and development in Syria. In the absence of an effective state, the private sector which in Syria has traditionally been efficient and effective - in part because of the dependable inefficiency of the prewar Syrian state - is likely to be welcomed back with open arms. Yet, given its nature and drive to generate a high return, its investments are likely to target areas where stability and security have also returned. This will create a situation with sharply defined-corridors of growth and a national development landscape that is operating at two or three different speeds. OPINION: Reconstructing Syria - The need to break the mould Such an imbalance would offer the ""warlords"", who have thrived throughout the conflict, the opportunity to launder their reputation into ""reconstruction lords"" in its aftermath, with more or less consistently marginalised areas of Syria continuing to pay the price. Finally, although perhaps half of all Syrians will accept Assad's rule, embarking on a reconciliation process would be extremely difficult with him in power. Given the launch of the international commission into abuses as well as the numerous accusations that have and will be made about the regime, transitional justice - particularly at the local and village level where local communities have witnessed the worst atrocities - may require imaginative forms of integrating religious and tribal justice mechanisms to reach a degree of closure and heal the wider wounds caused by six years of war and decades of repression. Sultan Barakat is the director of the Centre for Conflict and Humanitarian Studies, Doha Institute for Graduate Studies and professor at the University of York, UK. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2935,2017/3/18,http://www.aljazeera.com/indepth/interactive/2017/03/china-face-face-170316050651423.html,China and US: face-to-face,"The world's largest two economies meet to discuss trade, security and North Korea's growing nuclear missile threat. On the military On the economy",, -2936,2017/3/18,http://www.aljazeera.com/news/2017/03/iom-attack-somali-refugees-unacceptable-170318083454158.html,IOM: Attack on Somali refugees 'unacceptable',"Condemning deaths on boat off Yemeni port of Hodeidah, NGO official says civilian casualties could have been avoided. Arab coalition statement","The International Organization for Migration-has decried the apparent helicopter attack on a boat off the-Yemeni-coast that killed dozens of Somali refugees,-calling it ""unacceptable"". Officials in the semi-autonomous region of-Puntland-in northeast Somalia told Al Jazeera the boat was heading from Hodeidah to Sudan,-a major transit point for-refugees and migrants to Europe. Mohammed Abdiker, emergencies director of the Geneva-based IOM,--said the civilian casulaties could have been avoided in Friday's attack if ""they could have checked to know who was in that boat before firing on it"". The International Committee of the Red Cross (ICRC) put the death toll at 33, adding that 29 people were wounded and some other passengers were missing. It was not immediately clear who carried out Friday's attack. ""They shot at us, we could see the flashes of bullets. We were shouting at them to hear us. Signalling with lights, but they kept shooting. The Apache came above us and shot at us. Our friends were dying,"" Al-Hassan Ghaleb Mohammed, a survivor,-told Al Jazeera. Survivors conveyed conflicting accounts of who was behind the attack. ""We do not know who carried it out but survivors said they came under attack from another boat at 9pm, the crew used lights and shouted to signal this is a civilian boat,"" Iolanda Jaguemet, ICRC spokesperson,-told Reuters news agency. ""Nevertheless it did not have any effect and a helicopter joined in the attack."" An-Arab coalition-that is involved in fighting-in Yemen said it did not conduct any operations or have any engagement in the Hodeidah area. The coalition was assembled by-Saudi Arabia-in 2015 to fight the Houthis and troops loyal to-Ali Abdullah Saleh, the-former long-serving president,-who have fired missiles into neighbouring Saudi Arabia. General Ahmed Asseri, the Arab coalition spokesman,-said Hodeidah remained under the control of the Houthis and the port continued to be used for ""trafficking people, smuggling weapons and attacks against the line of communications in the Red Sea"". The UNHCR says more than 250,000 Somali refugees are in Yemen. Hodeidah, on the Red Sea, is controlled by the Houthi fighters, who in 2014 overran Yemen's capital Sanaa and forced the government of President Abd-Rabbu Mansour Hadi to flee into exile. Source:-Al Jazeera and news agencies", -2937,2017/3/18,http://www.aljazeera.com/news/2017/03/indigenous-tsimane-healthiest-hearts-study-170318060606850.html,Bolivia's Tsimane have healthiest hearts: study,Scientists say findings underline significance of lowering risk factors for heart disease such as smoking and drinking.,"Researchers have found anAmazonian tribe with the lowest levels of artery hardening - a portender of heart disease - ever observed. Scientists said the finding points to the importance of reducing risk factors for heart disease: The Tsimane are physically active - exercising for about four to seven hours every day - and their diet is low in fat and sugar. They also do not smoke or drink often. ""The average middle-aged Tsimane has arteries that are about 28 years younger than those of Westerners,"" said Dr Randall Thompson, a cardiologist at St Luke's Health System in Kansas City, Missouri, who helped lead the new work. INTERACTIVE: Mothers and Children first The study was published online on Friday in the journal Lancet and presented at a meeting of the American College of Cardiology. Thompson and colleagues teamed up with anthropologists who have been tracking the Tsimane for years for glimpses into their health. The Tsimane, a group of about 16,000 people who live along a tributary of the Amazon, are one of the best-studied groups in the world. The 705 participants in the study spent a day paddling in their canoes and then hopped a six-hour Jeep ride to the nearest city so doctors could take computer scans of their hearts and measure their weight, heart rate, blood pressure, cholesterol and blood sugar. In exchange for their time, the Tsimane were given small gifts including thread and yarn. The Tsimane's health results were then compared to a sample of more than 6,800 Americans. Scientists concluded Americans were five times likelier to have heart disease than the Tsimane. Almost nine in ten Tsimane had no risk of heart disease. READ MORE: Traditional Bolivian healers tackle diabetes crisis Lifestyle probably plays a bigger role than genetics in avoiding heart disease, Thompson said. He noted that as the Tsimane are gradually introduced to processed foods and motorised canoes, their cholesterol levels have slowly increased. Other experts said it may be possible to match the Tsimane's healthy habits. It's impractical to return to being hunter-gatherers, but if people ""can stop smoking and get a half hour of exercise every day that leaves you breathless, that will be a big help,"" said Dr Joep Perk, a cardiologist at Linnaeus University in Sweden, who was not part of the research. ""There's a tendency to blame your genes for heart problems and what this study shows us is that you can't blame your parents, just your lifestyle."" Source:-News agencies", -2938,2017/3/18,http://www.aljazeera.com/indepth/opinion/2017/03/tackle-challenges-posed-waste-170318080227696.html,,,"Electronic waste, or e-waste, refers to computers, mobile phones and other devices after users have thrown them away. E-waste has become a new and controversial global challenge. To some e-waste is an environmental scourge to be battled. To others it is an opportunity to enhance economic development. Let us delve into what makes e-waste special, its dangers and payoffs, how countries are managing it, and how the world might do better. To set the stage, ownership of electronics has grown explosively, not just in rich countries, but all over the world. This increased ownership, combined with rapid obsolescence, leads to the generation of large amounts of e-waste. There are three important characteristics of e-waste. Firstly, in many cases, the ""waste"" is still functional or can be easily repaired. The device has only become redundant to its first owner. Moreover, electronic waste contains valuable materials such as copper in wires and gold in circuit boards that make it attractive for recycling. And thirdly, these valuable materials are mixed in a complicated way with other ones, some of which are hazardous or can become hazardous when recycled. These three characteristics combine to make the e-waste challenge unique. Demand for used electronics is higher in developing countries. This demand, combined with high repair and recycling costs in rich countries, imply that e-waste has more economic value in the developing world than the developed. This value difference has led to a booming international trade in e-waste. Much of the traded ""waste"" is electronics repaired and resold in the destination countries, providing employment and helping to bridge the digital divide. There are environmental and human costs, however, from e-waste leftover after repair. An informal sector has emerged that uses destructive processes to recover valuable materials from scrap electronics. For example, copper in wires is separated from its plastic casing by burning the latter in an open area. The result is emissions violating standards by orders of magnitude. Gold in circuit boards is recovered using cyanide and nitric acid, the leftover chemicals are often dumped, contaminating local water systems. Distressing scenes of this informal recycling have become regular fare for the global media. China and Nigeria are often showcased as centres for informal recycling of electronics, but it is actually common in much of the developing world. How has the world responded to the e-waste challenge? Consider two areas often showcased in the media, China and Nigeria. Informal recycling of electronics was introduced to the world in 2002 with reports on activities in the Chinese town of Guiyu. Beyond Guiyu, informal collection, repair and recycling of electronics are widespread in China (PDF). The Chinese government responded by banning imports of e-waste (and used electronics) and informal recycling. The environmental impacts of informal recycling are important and must be addressed. It does not follow, however, that bans are the only way to solve the problem. - In addition, the government invested heavily in creating a formal recycling sector to process e-waste instead of the informal, including cash incentives to consumers to turn in devices to the formal sector. Despite these aggressive measures, informal recycling is apparently still common in China. One reason is that enforcement of bans is difficult and expensive. A second reason is that even with considerable government subsidy, it is hard for the formal sector to compete with the informal because it does not work to derive the main value from e-waste, the potential to be repaired and resold. INTERACTIVE: E-waste Republic Lagos in Nigeria is a known centre for repair, resale and informal recycling of e-waste. The Nigerian government has passed laws banning dumping of waste and the import of e-waste - though functional used electronics can be imported. It is difficult to know to what extent these laws have reduced informed recycling and reduced repair and reuse of electronics. There are three ways the world could be a better job of tackling the e-waste challenge. Firstly, we should broaden the scope. Governments have treated e-waste as an environmental challenge to be managed via regulation. Make no mistake, the environmental impacts of informal recycling are important and must be addressed. It does not follow, however, that bans are the only way to solve the problem. In addition to mitigating environmental impacts, it is also important to employ people and bridge the digital divide. Workers in the informal sector, the most affected group, need to be consulted in the development of solutions. Secondly, we should find better ways to measure data and then reduce e-waste generation. There are huge knowledge gaps on e-waste. This is because governments collect very little relevant data. It is thus important to do much better at measuring e-waste. New information can shift the perspective on the problem. For example, forecasts of the global generation of e-waste indicate that soon more e-waste will come from the developing world than the developed. This means that stopping the trade in e-waste cannot solve the problem because domestically generated e-waste would, without intervention, be recycled by the informal sector. In the quest for better measurement, it is important to distinguish between measurement and hearsay. Numerical ""rumours"", without real basis, continue to influence the public discourse on e-waste. This needs to change. READ MORE: Q&A - E-waste goes to post-recycling afterlife And finally, we should try new approaches. A new problem calls for new solutions. For example, it may be possible to combine the informal and the formal sector so as to achieve safe recycling while employing people to extract the most value from repairing and reselling electronics. One approach to realise this is to provide to pass on materials to the formal recycling sector. There are other possible solutions, each has its own challenges. There is a need to develop and pilot new approaches. There are efforts under way to better measure and manage e-waste, in particular, the Solve the E-waste Problem (SteP) Initiative of the United Nations. More work and support are needed. By combining a creative mind, a critical eye, and a helping hand, there is potential to realise solutions to e-waste that help people and the planet. Eric Williams is associate professor at the Golisano Institute for Sustainability at Rochester Institute of Technology in New York. His research on characterising and managing electronic waste has been widely cited in the media and in academic journals. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2939,2017/3/18,http://www.aljazeera.com/news/2017/03/burundi-capital-hit-floods-170318090913183.html,Burundi's capital hit by floods,Roughly a month's worth of rain in a night destroys homes in Bujumbura.,"At least six people have died in Burundi in a night of torrential rain and flooding that triggered landslides and caused widespread damage. Gaston Sindimwo, the African nation's vice president,-said ""torrential rains and strong winds struck several provinces last night. In the northwestern town of Mabayi, a landslide smothered several houses, and rescuers found five victims"". Roads flooded in the capital Bujumbura and a soldier died when the heavy rain swept through Kinama neighbourhood during the night. Sindimwo said ""it is a real disaster. Several other people were injured and we have so far counted 162 destroyed homes"". The Carama, Buterere and Kinama districts of the capital were still flooded on Friday. The Republic of Burundi is largely a high plateau and has two wet seasons, a short one from September to November and a long one, from February until May. Bujumbura is on the shores of Lake Tanganyika and as such has a different climate.-Bujumbura can expect approximately 100mm of rain in every month between November and April. Then a rapid change to a dry summer lasts until October. This is not a lot of rain for a country within the tropics and any significant thunderstorm could drop more than a month's worth of rain in a few hours. This is what happened on Thursday night. Source:-Al Jazeera and news agencies", -2940,2017/3/18,http://www.aljazeera.com/indepth/features/2017/03/singapore-chinese-puppet-performers-170305120955805.html,The last of Singapore's Chinese puppet performers Amandas Ong,"The elderly members of Sin Hoe Ping, one of the last Chinese puppet troupes in Singapore, belong to a fading tradition. By Vestiges of the past Fading art form- Children in the business Reviving puppetry","Singapore - It is 1.30pm on a rainy, humid December afternoon and the Sin Hoe Ping puppet troupe is busy making sure that everything is in place before they perform for Da Er Ye Bo, the two Taoist gods of the underworld. It is the first feast day at the shentan or shrine festival for these deities, and the troupe wants the celebrations to begin smoothly. Knowing that they will be singing for two hours without a break, the grey-haired puppeteers are clad in loose, comfortable clothing and slippers. Two life-sized figures of Da Yi Er Bo glower at them from behind, macabre guardians of a dark curtained area where a spirit medium will be offering consultations to devotees in the evening. The medium, along with the getai singers whose traditional performance dates back to the era of the Japanese occupation, will be the star of the event. But the members of Sin Hoe Ping don't mind being out of the limelight. As they begin to sing a high-pitched, mournful sounding song while manoeuvring the puppet characters around the makeshift stage, Yeo Lye Hoe, the 67-year-old troupe leader, shuffles off to an open area outside the tent where the festival is taking place. The only people in the audience are a little boy in a uniform, presumably on his way home from school, and his grandfather. Yeo puffs away at a cigarette. ""I'm going to do this for as long as I can,"" he says gruffly. ""After all, if I don't, who will?"" WATCH: Witness - Syria: No strings Sin Hoe Ping is one of the last Chinese puppet troupes active in Singapore, and the very last troupe performing in the Henghua-language, spoken by those with ancestral roots in Putian, a part of Fujian Province-in China. Frequently sidelined for the more flamboyant sensibilities of Chinese opera, these puppet troupes are something of an anomaly in cosmopolitan Singapore. Rooted in ancient folk religion, they appear almost to be vestiges-of the past that have stubbornly survived to challenge the modern skyscrapers and apartment blocks that are crammed across the tiny island country. The Chinese diaspora in Singapore, who arrived as immigrants from the southern Chinese provinces during the late 19th century, ironically preserved many elements of Chinese puppet theatre that have become almost extinct in their country of origin due to the brutal effects of the Cultural Revolution. - Many of the performers are hired on an ad hoc basis, whenever feast days are held to commemorate Taoist deities. Yeo, who makes and repairs his collection of up to a 100 puppets from his apartment, says that demand for puppet shows has declined in recent years. He attributes this to the lack of interest in temple rituals, which are often elaborate, time-consuming and costly. ""We now have five or six regular performers left. One died recently, and after the rest of us go, nobody will know the art of Chinese puppetry in Singapore any more."" Numbering approximately 20 in total, though this figure is also dwindling steadily with Singapore's ageing population, these troupes faithfully represent traditions that emerged from southern China as early as the Song dynasty in the AD 1000s. The Chinese diaspora in Singapore, who arrived as immigrants from the southern Chinese provinces during the late 19th century, ironically preserved many elements of Chinese puppet theatre that have become almost extinct in their country of origin due to the brutal effects of the Cultural Revolution. These elements include handwritten theatre scripts used for puppet shows, which have been passed down for generations and can today cost up to $1,000. OPINION - The Walled Off Hotel: The struggle for decolonisation We now have five or six regular performers left. One died recently, and after the rest of us go, nobody will know the art of Chinese puppetry in Singapore anymore. Yeo Lye Hoe,-a 67-year-old troupe leader Yeo is a laconic and stout man who does not romanticise the work he does. ""I don't feel that I'm doing something noble. My grandfather taught me the scripts, the songs and how to move the puppets when I was seven. I have known everything by heart for my entire life, and I keep doing it now because it's what I know."" He studied with a puppet master until his 20s. Then, upon the latter's retirement, he bought the puppet collection for approximately $1,500 and continued running the show with other troupe members.- In good months, puppet troupes such as Sin Hoe Ping can earn between $5,000 to $7,000, performing at a number of temple festivals every week, but for the most of the year, income is much harder to come by. The money is mostly redistributed among performers, who are all older people or retirees, with the rest going back into the maintenance of the puppets. ""It's not something you do to make money,"" he says with a slight smile. He has three children who are English-educated and in their 30s. None of them is interested in continuing his trade. One of his performers, Chua Mui Hua, 76, agrees. ""My grandchildren have never come to see me perform, but even if they did, I doubt they would understand anything I am singing,"" she says. She is making a salient point about the Chinese languages that are gradually becoming extinct in Singapore. In 1979, the government became convinced that the use of southern Chinese languages such as Hokkien, Teochew, Cantonese and Hakka - which were the lingua franca of the very first Chinese immigrants in Singapore - was preventing Singaporeans from achieving full bilingualism in English and standard Mandarin Chinese. For more than 30 years, the Speak Mandarin Campaign heavily discouraged the use of these southern Chinese languages in the popular media, particularly on television and radio. Today, few young people can claim to understand simple phrases in their grandparents' language, let alone comprehend complex narratives sung over two hours. ALSO READ - China's Great Famine: A mission to expose the truth Not all the stalwarts of the Chinese puppet trade are pessimistic about its future. Tina Quek, 47, is the leader of the last puppet troupe in Singapore that performs in the Teochew language, but she is sanguine about her prospects. Much like Yeo, she has spent the bulk of her life immersed in these vanishing traditions, and her repertoire includes not just puppet performances but also opera and Qing Chang, singing events staged by an all-female group. But unlike Yeo, all four of her children are heavily involved in her business and learning the ropes. ""My youngest son is 13 and is already learning to play the suona to accompany my performances,"" she says. Her speaking voice is soft and gravelly, but transforms completely into a nasal soprano when she sings. ""It's practice,"" she grins. ""I've been doing this since I was eight, that's how I was confident that my children would be able to pick up these skills quickly as well."" Still, her cheeriness is tempered by slight anxiety. ""I would like my children to continue the business, but I'm especially worried about my son. His studies suffer each time he leaves school early for a performance. And more importantly, with younger people becoming less interested in these traditions, will he be able to make enough money to survive in Singapore?"" Her daughter, Christine Ang, 19, shares her mother's ambivalence. She has just finished at a vocational school and reveals that she juggles a string of part-time jobs alongside her impressive credentials as one of Singapore's youngest puppet performers and opera singers. Getting ready to perform and putting on make-up are among her favourite parts of the job. ""I don't think it's true that there's no interest amongst young people my age,"" she muses. ""Whenever I invite my friends, they always turn up. In fact, the last time they came, I made them put on make-up too!"" However, she acknowledges that ""off-peak"" seasons are a cause of concern. ""The Seventh Lunar Month is a good time for us, because that's when many people worship at the temples to appease the spirits of wandering ghosts. But the rest of the year, not so much,"" she says. She admits that she sometimes wonders, although fleetingly, if continuing her education or getting a full-time job might be a better option. ""It would be sad if I stopped performing. I guess there's some pressure, because I don't want to be the one who let a tradition die."" Some are eager to help this small community survive the onslaught of modernisation. Caroline Chia, 33, is a researcher specialising in Chinese puppet traditions who has single-handedly documented the performances of almost all the troupes still active over the past few years. Yeo fondly refers to her as ""xiao mei"", a Chinese term that means ""little girl"". ""I have tried to help in some ways by liaising with event organisers and theatre personnel so that the troupes get to perform outside of the temple context,"" she says. Her hard work means that some of the troupes have had the opportunity to bring their work to wider audiences, including public road shows and cultural events at museums. Her late grandmother, who loved Teochew-opera and music originating from eastern Guangdong Province in China, encouraged her interest in Chinese puppetry. ""Troupes come and go �?it is something that's beyond our control sometimes. But I guess more has to be done to revitalise puppetry before it is gone altogether."" On a sweltering day, Yeo's troupe holds a performance in a shrine in eastern Singapore. Yeo is in a bad mood, barking expletives down the phone. ""The performer who was scheduled to sing with us today forgot to turn up,"" sighs his wife, Li Shui Mei, who is from Putien and has been working with him for years. ""I guess I will have to sing both the female parts by myself, then."" I help them carry the puppets into the shrine to make them ""kneel"" before the deities prior to the performance, since there aren't enough people around to do it. The puppets are surprisingly heavy. For the next two hours, Li and Yeo sing, play the keyboard, cymbals and drums, and manipulate the puppets across the small stage. There might be only five people in the audience today, and in a few years there may be none, but, just getting to perform today is enough for the two puppeteers. Source:-Al Jazeera News", -2941,2017/3/18,http://www.aljazeera.com/news/2017/03/police-raid-meatpacking-plants-bribery-probe-170318074933182.html,Police raid meatpacking plants in bribery probe,Global companies as well as small rivals face crackdown as inquiry finds proof inspectors and politicians were bribed. Employees arrested Documents falsified,"Brazilian police have raided the premises of global meatpacking companies JBS SA and BRF SA, as well as dozens of smaller rivals, in a crackdown on alleged bribery of health officials. The anti-corruption campaign threatens $12b in annual exports. The probe, known as Operation Weak Flesh, found evidence of meatpackers bribing inspectors and politicians to overlook unsanitary practices such as processing rotten meat and shipping exports with traces of salmonella, police said. Mauricio Moscardi Grillo, police investigator,-said there was evidence of some companies manipulating certificates for meat exports to European markets, raising the risk of foreign restrictions on Brazil's powerhouse protein industry. READ MORE: The local food revolution in Brazil's schools Brazil exported $6.9bn of poultry and $5.5bn of beef last year, according to industry groups, as producers boosted shipments to China and started sending fresh beef to the US. Shares of JBS and BRF plunged 11 percent and seven percent, respectively, in Sao Paulo. JBS, the world's biggest meat producer, booked net revenue of 170b reais ($55b) last year from sales in 150 countries. BRF, the largest poultry exporter, booked net revenue of 39B reais in 2016. Police said they arrested three BRF employees and two from JBS in Friday's raids, as well as 20 public officials. JBS said in a securities filing that three of its plants and one of its employees were targeted in the probe, but its senior executives and headquarters were not targeted. The ruling by federal Judge Marcos Silva also included transcripts of BRF government relations executive Roney Nogueira allegedly discussing bribery of health inspectors, including one called on to help avoid the closure of the same Goias plant. READ MORE: Is hoarding causing Venezuela food shortages? The judge also ordered that Jose Roberto Pernomian Rodrigues, BRF vice president,-be brought in for questioning. Brazil's agriculture ministry has temporarily closed three plants cited in the investigation, one run by BRF and two run by smaller rival Grupo Peccin, and began removing their meat products from supermarkets. Eumar Novacki, the ministry's executive secretary, said there was some concern that other countries would begin blocking shipments of Brazilian meat. Police said there was evidence that meatpackers falsified documentation for exports to Europe, China and the Middle East. Judge Silva wrote in his ruling that employees of some meatpackers, including BRF, arranged bribes and favours for inspectors ranging from political donations and favourable bank loans to small bribes including hams and other meat products. In some cases, those inspectors would then allow employees of the meatpackers to enter government offices, access computers and issue their own export certificates, investigators said. Source:-News agencies", -2942,2017/3/18,http://www.aljazeera.com/indepth/opinion/2017/03/fear-loathing-border-170314090849582.html,,,"As Donald Trump's sordid vision of a ""big, beautiful wall"" on the United States-Mexico border begins to take shape, The Guardian has revealed that - of the more than 600 companies currently vying to get in on the wall-building action - 10 percent are identified as ""Hispanic-American-owned"" businesses. Posing a greater ethical dilemma, perhaps, is the potential opportunity for Mexican cement manufacturing giant Cemex to profit handsomely from manic border fortification efforts. The firm has seen its shares leap in value since Trump's election in November. Of course, there's little room for ethics when gobs of money are at stake. According to Reuters, an internal US Department of Homeland Security report puts the price-tag of the wall at up to $21.6bn. Indeed, in a world ever more committed to walls, barriers, and the profitability of exclusion, it seems ethical boundaries are the easiest to knock down. While Trump would have his followers believe that the US-Mexico border was itself dangerously nonexistent prior to his ascension to the presidency - with Mexican ""rapists"", and other figments of his own imagination, flowing unencumbered into the country en masse - reality tells a very different story. Frequently lost in all of the ""big wall"" talk, for example, is the fact that there is already a wall on the US-Mexico border and that it happens to be quite big. A recent AJ+ video notes that the wall in its current form covers 1,051km and was erected at a cost of $3m a kilometre in certain parts. But the wall can't be measured in units of distance alone, encompassing as it does a vast border security apparatus involving everything from helicopters and drones to blimps, watchtowers, and gunboats, not to mention an ever-evolving number of armed personnel. In an email to me, Todd Miller --author of Border Patrol Nation: Dispatches from the Front Lines of Homeland Security - remarked that the number of US Border Patrol agents has ""increased five-fold from 4,000 to 22,000"" over the past 25 years, with ""annual budgets for border and immigration enforcement rising from $1.5 to $19.5bn"". OPINION: What's behind the Great Wall of America? In reference to the intense build-up of border machinery, Miller observed: ""All of this Trump had at his disposal without any executive order and before he ever set foot in the White House."" Now that Trump has two feet planted firmly therein and xenophobia has not only been catapulted into the realm of political correctness, but also embraced as a mark of national pride, you might say we've definitively crossed the border into a state of upbeat sociopathy. The increasingly militarised landscape of the US-Mexico frontier serves a variety of pernicious functions. For one thing, the obsession with border ""security"" helps to sustain the notion that the US is somehow under attack by migrants from Mexico and Central America, many of whom have either been forcibly displaced from their livelihoods by US-engineered free trade agreements and other punitive economic measures or are fleeing violent contexts the US itself has played no small role in creating. The effective criminalisation of migrants for pursuing a dignified existence translates into an existential hazard, and an untold number of travellers have perished at the mercy of the elements while endeavouring to navigate the border region's hostile terrain. Beyond the actual physical barrier, there's also a significant psychological dimension to the wall, which operates as a conferrer of value upon human life and skews the results in favour of those lives north of the line. - Migrants also run the risk of being kidnapped, murdered, raped, extorted, and otherwise abused in transit - a risk that exists purely because, as global have-nots, they're denied many options for ""legal"" movement between countries and thus rendered even more vulnerable to exploitation. According to a 2013 Amnesty International report on US-bound Central American migrants in Mexico, ""it is believed that as many as six out of every 10 migrant women and girls experience sexual violence during the journey"". But who in the US has time for empathy when our country is under migrant siege? Since the border wall is designed to block human movement in only one direction, I, as an American citizen, am permitted easy access to Mexican territory. From my present location on the Yucatan peninsula, I can report that there are, in fact, certain Americans residing in Mexico who apparently detect no irony in verbalising their support for Trump or referring to undocumented Mexicans in the US as ""illegals"". A bigger and better wall will no doubt further facilitate the job of persons intent on upholding the standards of imperial hubris. Beyond the actual physical barrier, there's also a significant psychological dimension to the wall, which operates as a conferrer of value upon human life and skews the results in favour of those lives north of the line. Meanwhile, the climate of fear perpetuated by militarisation schemes helps justify the schemes themselves, in addition to distracting popular attention from national defects. OPINION: Mexico needs to stop accommodating Trump On a bus the other day, I chatted with a Mexican American man who resented the idea that his mother -herself a resident of the Mexican border town of Nuevo Laredo - could be deemed a security threat and potential ""invader"" in the eyes of ""Caligula"", as he referred to Trump. The man reasoned that, were the US concerned about invasions, it should perhaps stop invading other countries. But that, of course, would cramp America's style and ruin the good old tradition of having one's cake and eating it, too. Unfortunately, cake and ethics don't mix. Belen Fernandez is the author of The Imperial Messenger: Thomas Friedman at Work, published by Verso. She is a contributing editor at Jacobin magazine. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -2943,2017/3/18,http://www.rte.ie/news/ireland/2017/0318/860771-rescue-116-search/,Poor conditions further impede search for Rescue 116,,"Poor conditions off the Mayo coast have again impeded the search for the black box recorder from Coast Guard Rescue Helicopter 116.- Heavy swells around Blackrock-have prevented boats from getting near the site where a signal from the recorder has been detected. Rescue crews are hopeful that they can identity its exact location and that this will be in or beside the wreckage of the Sikorsky S92 helicopter that crashed in the early hours of Tuesday morning. It is-thought that preparatory work to investigate the location in more detail might be carried out over a few hours tomorrow, during a forecast-break in the bad weather. But it is-likely to be early next week before more detailed underwater examinations can take place. In the meantime, shoreline searches are continuing along some 20 kilometres-of the north Mayo coast from Blacksod to Annagh Head. Garda��-have advised those involved in these searches that they should not attempt to handle any gas canisters from the helicopter that may have washed ashore. Some other debris from Rescue 116 has washed up on the Inishkea islands, a short distance from Blackrock, where the helicopter crashed. Efforts to recover this material will also be made in the coming days. Captain Dara Fitzpatrick, the only one of the crew to be recovered so far, was found critically ill in the water on Tuesday and later confirmed dead. Her funeral was held in-Dublin earlier. Captain Mark Duffy, Winch Operator Paul Ormsby and Winchman Ciar��n Smith all remain missing.-", -2944,2017/3/18,http://www.rte.ie/news/ireland/2017/0318/860694-dara-fitzpatrick-funeral/,Captain Dara Fitzpatrick remembered during funeral service,,"President Michael D Higgins was among hundreds of-mourners-at St Patrick's Church in Dublin-for the funeral of Coast Guard Captain Dara Fitzpatrick. The funeral cortege arrived at the church in Glencullen at-11am and was met by an honour guard from the Coast Guard and other rescue services. Captain Fitzpatrick died after-the Coastguard Rescue 116 helicopter crashed off the Mayo coast-on Tuesday. Captain Fitpatrick's parents, four siblings, her young son Fionn, and other family members accompanied the coffin into the church. As well as President-Higgins, Taoiseach Enda Kenny and-Minister for Transport Shane Ross were in attendance, as-was Fianna F��il leader Miche��l Martin. In his homily, Parish Priest Fr Andrew O'Sullivan said St Patrick's church had seen many sad and tragic funerals but few as sad and sorrowful as today's. He paid tribute to the Fitzpatrick family and said they and the community had lost a loved and valued member. He said the congregations' thoughts were with Captain Fitzpatrick's three crew members who have yet to be found. Fr O'Sullivan said the family took comfort from the fact that Dara had lived life to the full. Mourners heard that as well as being a loving mother, Dara was an avid traveller, cook and animal lover. Coastguard standard bearers and lone piper pic.twitter.com/ctNZhFYjtv ""?Damien Tiernan (@damienrte) March 18, 2017 Also present were members of the RNLI, Civil Defence, mountain rescue and many other groups. The bells ring out at start of funeral mass for Captain Dara Fitzpatrick pic.twitter.com/terkCpqU5L ""?Damien Tiernan (@damienrte) March 18, 2017 The funeral Mass was followed by cremation at Mount Jerome Crematorium. Poor weather conditions off the west coast are continuing to hamper the search for three crew members missing from Coast Guard helicopter R116. Agencies involved in the operation say it may be some time before they can try to access the area where they believe the wreckage of the aircraft is located.", -2945,2017/3/18,http://www.rte.ie/news/ireland/2017/0318/860773-hillwalker-missing-galway/,Body found in Galway during search for missing hillwalker,,"The body of a man has been found-in the Maumturk Mountains near L��on��n, Co-Galway in the search-for a missing hillwalker. It is-understood the man was walking alone and was last in contact with a family member at around 4:30pm yesterday. He is said to have been in his 50s and from the Dublin area. Poor visibility in the area today meant it was not possible to conduct an air-based search of the mountain. Members of Galway and Mayo Mountain Rescue teams were supported by garda��-and locals in the search effort. The man's body was located on the eastern side of Leenane Hill-this afternoon and was removed from the scene at around 7pm. The-task was complicated by the steep terrain on which the body was found. Separately, a woman injured in the unrelated incident further south at M��m ?an earlier today was evacuated from the mountain by Mayo Mountain Rescue and transferred to a waiting ambulance.", -2946,2017/3/18,http://www.rte.ie/news/world/2017/0318/860703-paris-orly-shooting/,Attacker shot dead at Paris' Orly airport,,"Troops at Paris' Orly airport-shot dead a man who tried to grab a soldier's weapon, triggering a major security alert that shut down the airport, leaving thousands stranded. The incident comes as France remains on high alert following a series of jihadist attacks that have claimed over 230 lives since January 2015. Prosecutors said they had opened an anti-terror investigation. Flights were halted at Orly for several hours, with incoming flights diverted and thousands of passengers stranded at Paris' second-largest airport, but normal service resumed mid-afternoon. France goes to the polls on 23 April-in the first round of a two-stage presidential election in which security is one of the main issues on voters' minds. Interior Minister Bruno Le Roux said the man who was killed was ""known to the police and intelligence services"". He said the suspect was also linked to an attack on police just north of Paris earlier on Saturday in which an officer was slightly wounded. At the airport, the 39-year-old man knocked the soldier to the ground and grabbed at her rifle, a senior military source said. The two other soldiers with her then opened fire, killing him, the source said. No-one else was injured in the incident. The incident took place at around 8:30am local time-in the Orly-Sud terminal. Around 3,000 people were evacuated from the building. Addressing reporters at the airport, Mr Le Roux said the man had tried ""but not succeeded"" in his bid to grab the soldier's rifle who was on patrol with two-colleagues. He said the same man was also suspected of opening fire on police during a routine traffic inspection in the northern Paris suburb of Garges-les-Gonesse at around 7:00am. One officer suffered minor head injuries. He was thought to have stolen a car and driven to Orly, Mr Le Roux said. Sources close to the investigation said the man had committed several armed robberies and was investigated for radicalisation in 2015, although he did not feature on the list of those thought to pose a high risk. Air traffic to Orly was suspended and all incoming flights rerouted to Paris' main Charles de Gaulle airport, north of the city. Several planes that were preparing for takeoff or had just landed were held on the runway as the security operation unfolded. Passengers in the Orly-Ouest terminal were kept inside the building, which reopened at around 12:00 Irish time. Operations resumed soon afterwards at the southern terminal, where the incident occurred. Elite police teams secured the airport and searched it for explosives but none were found. 'France still a target' The shooting took place on the second day of an official visit to Paris by Britain's Prince William and his wife Kate, which was unaffected. France remains in a state of emergency after a series of terror attacks, including the November 2015 massacre in Paris and a truck attack in Nice last July. In mid-February, a machete-wielding Egyptian man attacked a soldier outside Paris's Louvre museum before being shot and wounded. The soldiers on patrol at Orly airport belong to Operation Sentinelle, a force of 7,000 troops deployed in the capital and other cities after the January 2015 attacks in Paris. On Thursday, a letter bomb exploded at the Paris offices of the International Monetary Fund, injuring a secretary who suffered burns to her hands and face. French President Francois Hollande called that incident an ""attack"", saying it showed the country was ""still targeted"".", -2947,2017/3/18,http://www.rte.ie/news/analysis-and-comment/2017/0318/860767-france-presidential-candidates/,Who are France's presidential candidates?,,"A powerful far-right leader, a scandal-hit conservative, a 39-year-old former investment banker and a man who believes the EU is an American plot. Here are the candidates bidding to become French president: Marine Le Pen Since becoming party leader in 2011, Marine Le Pen has been on a drive to purge the anti-EU, anti-immigration National Front (FN) of its historic racist image and re-position it as a party of nationalists from both left and right. Tipped for first or second place in the election's first round next month, polls show the 48-year-old struggling to win a run-off against her main rival in May, where she would need to garner more than 50%. The former lawyer and twice-divorced mother of three has batted away allegations of illegal campaign financing, expenses fraud and undervaluing her assets - denouncing them as a plot to bar her path to power. She has presented the election as a battle between the ""patriots"" ready to defend France and its values and ""globalists"" whose support for immigration and open borders have caused economic and social calamity. Emmanuel Macron The telegenic former investment banker hoping to become the youngest president in France's post-war history was an adviser to current Socialist President Francois Hollande and later became his economy minister. The 39-year-old, a one-time philosopher's assistant, quit the government last year and launched his own centrist political movement ""En Marche"" (""On the Move""). Polls currently show him running neck-and-neck with Ms Le Pen in the first round and easily beating her in the second round. Mr Macron has never stood for election before but presents himself as the man to rejuvenate French politics and combat Ms Le Pen's nationalism with an unabashedly pro-European, pro-business platform. Opponents accuse him of being short on substance and of trying to be all things to all voters by claiming to be ""neither of the left nor the right"". Francois Fillon Ex-president Nicolas Sarkozy's former prime minister is a canny political veteran who has spent a lifetime preparing for his shot at the Elysee Palace. The clear frontrunner at the start of the year, he has been embroiled in scandal after scandal since January when he admitted to paying his wife and children hundreds of thousands of euros from public funds to act as his parliamentary assistants. They are suspected of having done little or no work in return, leading Mr Fillon to be charged on 14 March with misusing public money. The 63-year-old devout Catholic wants to slash state spending and cut 500,000 public sector jobs over the five-year presidential term. Polls currently show him running in third. Benoit Hamon The leftist rebel who quit the Socialist government in 2014 in protest at its policy of debt reduction was the surprise winner of January's Socialist primary. The mild-mannered former education minister, 49, saw off ex-prime minister Manuel Valls with a staunchly leftist programme, including a steep increase in welfare spending, financed in part by a tax on robots. Despite a lifetime in the Socialist party, he has been deserted by many of its heavyweights who have switched their support to Mr Macron. Polls currently show him running a distant fourth, marginally ahead of Jean-Luc Melenchon. Jean-Luc Melenchon Communist-backed firebrand Melenchon has been one of the harshest critics of Francois Hollande's presidency and is known for his fiery, and sometimes flowery rhetoric. Mr Melenchon, who came in fourth in the 2012 election behind his arch-nemesis Le Pen, wants to dump France's presidential system for a parliamentary system and renegotiate EU treaties. The 65-year-old nationalist, who appeared as a hologram at a rally in February, promises a �100bn stimulus package and a greener economy. Also running: Nicolas Dupont-Aignan, 56: A staunch defender of French sovereignty who wants to ditch the euro. He won 1.79%-in 2012. François Asselineau, 59: Anti-American hard-right nationalist convinced the European Union is a CIA-backed plot. Nathalie Arthaud, 47: Economy teacher running for a Trotskyist party. She won 0.56%-in 2012. Philippe Poutou, 50: Former worker standing for the New Anti-Capitalist Party who came to national prominence fighting for jobs at a Ford factory. Jacques Cheminade, 75: Veteran former civil servant who received 0.25% of the vote in the 2012 presidential election. Jean Lassalle, 61: An MP from the Pyrenees region who regards himself as ""a shepherd at the Elysee Palace"", referring to the French president's residence.", -2948,2017/3/18,http://www.rte.ie/news/politics/2017/0318/860693-enda-kenny-us-visit/,Taoiseach 'nothing to add' to earlier comments on future,,"A spokesperson for Taoiseach Enda Kenny has said-he has nothing to add to comments he has already made regarding his future. Mr Kenny has returned to Ireland following ""what is widely acknowledged as being a very successful visit to the US and the White House in particular,"" the spokesperson added. Last month,-Enda Kenny told the Fine Gael parliamentary party he would address his future ""effectively and conclusively"" upon his return from the annual St Patrick's programme of engagements in the US. Speaking to reporters in New York yesterday Mr Kenny indicated he will not announce any retirement plans until political uncertainty in Northern Ireland is addressed and the European Union's negotiating stance on Brexit is agreed. Mr Kenny said those ""immediate priorities"" would take precedence over ""everything else"" on his return to Ireland tomorrow after a week-long trip to the US. He had been under pressure to set a timetable for his departure. Conor McMorrow: Druid's Glen meeting to extend Kenny's tenure? This afternoon, several Fine Gael TDs and Senators have called on Mr Kenny to stick to his previous promise to clarify his intentions on the leadership on his return from the US. Dublin Fingal TD Alan Farrell said there was no reason the original timeline should change, and he said Mr Kenny should set out his position at next Wednesday's parliamentary party meeting or the one after. He said that there was always going to be something which would require Mr Kenny to stay, ""perhaps in his own mind"", and he would await Mr Kenny's contribution next week. Mr Farrell said last month he no longer had confidence in Mr Kenny. Senator Neale Richmond said he hoped they would hear from the Taoiseach next Wednesday as-had been promised. He said there would be a frank discussion and that would be the forum for it. Senator Catherine Noone said Mr Kenny would come under pressure to clarify his position if he did not do so and she said there was a need for clarity. Another TD, speaking off the record, said Mr Kenny did not want to be forced out and wants to pick his own time and that could push into June or July.", -2949,2017/3/18,http://www.rte.ie/news/crime/2017/0318/860753-assault-finglas/,Appeal after shop worker seriously assaulted in Finglas,,"An appeal has been issued for-witnesses to an attempted robbery and the serious assault of a man-at a newsagents in Dublin. The incident happened around 8.15am-in the shop on-Fitzmaurice Rd in Finglas when two men entered the premises and assaulted a male member of staff. The man in his 40s received serious head injuries and was taken to Beaumont Hospital. The two men fled the scene in what is believed to be a white saloon-type car headed in the direction of Glasilawn Rd. Nothing was stolen in the incident. Anyone who was in the area between 8am and 8.20am, or who has any information, is asked to contact the incident room in Finglas on 01 666 7500, the Garda confidential Line on 1800-666-111, or any garda station.", -2950,2017/3/18,http://www.rte.ie/sport/rugby/2017/0318/860754-six-nations-updates-ireland-v-england/,Recap: Ireland shatter England's Grand Slam dreams,,View Comments, -2951,2017/3/18,http://www.rte.ie/news/crime/2017/0318/860735-fatal-stabbing-court-appearance/,Man in 40s charged with murder after Artane stabbing,,"A man in his 40s has appeared at Dublin District Court charged with murder after the stabbing to death of another man in his 40s in Dublin on Thursday evening. It is believed a number of people were at a house on Harmonstown Road in Artane when a row broke out at around 7.40pm. The victim, Mark Richardson, received stab wounds and was taken to Beaumont Hospital where he was later pronounced dead. The house was sealed off for a forensic examination. The man who was charged was arrested at Clontarf Garda Station at 9.48pm last night. Garda�� said that when cautioned the man made no reply. Judge Kathryn Hutton remanded the man in custody to appear at Cloverhill Court next Wednesday 22 March. She ordered that medical treatment be given if required . An application for legal aid was accepted.", -2952,2017/3/18,http://www.rte.ie/news/politics/2017/0318/860717-conor-mcmorrow-druid-s-glen-meeting-to-extend-kenny-s-tenure/,Conor McMorrow: Druid's Glen meeting to extend Kenny's tenure?,,"Sunday, 9 January-2011 was the day. 'Fitzpatrick breaks his silence' was the front page headline. Former Anglo Irish Bank chairman Se��n FitzPatrick told the Sunday Times he had dinner and played golf with Brian Cowen in July 2008 - just months before the introduction of the bank guarantee, writes Conor McMorrow of RT?'s political staff. Taoiseach Brian Cowen issued a statement to the newspaper confirming the meeting took place. He said the affairs of Anglo Irish Bank were not discussed during the day. But Brian Cowen's tumultuous tenure as Taoiseach was over within weeks of the story. That dinner and round of golf at Druid's Glen was certainly a factor in the demise of a Taoiseach. But there's a view that another event at Druid's Glen could help extend the tenure of the current Taoiseach. Fine Gael MEPs in Europe have organised a major meeting of the European People's Party-in Wicklow in May. Leading EU politicians and members of the EPP, to which Fine Gael is aligned in Europe, will gather in Wicklow for two days of discussions and policy development on 11 and 12 May. Fine Gael MEP Se��n Kelly, who has organised the event which is expected to take place in Druid's Glen, has invited Taoiseach Enda Kenny to address it. Significantly, the EU Commission's Chief Negotiator on Brexit, Michel Barnier, is also pencilled in to attend the meeting where Brexit will dominate the agenda. Mr Kenny raised eyebrows on Friday, when he indicated to reporters in New York that he will not announce any retirement plans until political uncertainty in Northern Ireland is addressed and the European Union's negotiating stance on Brexit is agreed. Last month, he told the Fine Gael parliamentary party he would address his future ""effectively and conclusively"" upon his return from St Patrick's Day engagements in the US. He arrived-back today and focus now turns to next week's Fine Gael parliamentary party meeting. Do not be surprised if the upcoming EPP meeting in Wicklow in May is used by Mr Kenny to buy more time. Speaking to RT? at the European Parliament in Strasbourg earlier this week, Se��n Kelly suggested Enda Kenny be appointed as ""a roving ambassador for Brexit"" after he leaves office. ""If he decides to leave and a new Taoiseach comes in, the new Taoiseach would have an option of having Enda Kenny as a roving ambassador for Brexit to make sure that these issues are kept on the table all the way through, because sometimes you can take off with the best will in the world but events can overtake you."" Asked if Mr Kenny should be appointed as a Brexit Minister, Mr Kelly said: ""I would leave that up to whoever succeeds him. ""He certainly has a lot of experience. He is hugely respected. ""In fact when we had our meeting yesterday with our group leader Manfred Weber, he actually described Enda Kenny as a 'hero' of the EPP. ""That's a way different image to what you get in the media in Ireland but it reflects the reality on the ground."" Enda Kenny may well enjoy 'hero' status among his EPP colleagues in Europe. But it's his status among the parliamentary party following yesterday's comments that should be his most immediate concern.", -2953,2017/3/18,http://www.rte.ie/news/2017/0318/860741-search-and-rescue-crews-hold-a-special-place/,Damien Tiernan: Search and rescue helicopter crews hold a special place in people's hearts,,"RT? South East Correspondent Damien Tiernan gathers the thoughts of members of coastal communities, paying tribute to the crew of the Coast Guard Rescue 116 helicopter, which crashed off the Mayo coast on Tuesday. On windowsills and doorsteps around the coast, candles were placed. Flames faltering then fighting and flickering. As the glass case was lowered down over each candle, the flames rose to attention, standing tall, shining bright. Some had placed one large candle, some had three. Wednesday night, more joined in on Thursday night, more over the weekend. It's a tradition in coastal communities, especially amongst fishing families. When one of 'theirs'-is missing at sea, candles are lit as symbols of hope ""?hope the bodies will be brought home. These miniature beacons of light connect communities in a necklace from Blacksod to Killybegs to Clogherhead, down to Howth, Dunmore and Kinsale; and up to Castletownbere, the Magherees and Inishmore. Mark, Dara, Paul, Ciaran ""?-people felt connected to them as the search and rescue helicopter crews hold a special place in people's hearts. They touched the lives of so many without maybe knowing it. In many cases, the local people had met them as helicopter crews live amongst us, socialise, organise charity events, play sports. Some met them in traumatic situations. Fishing has suffered horrible losses over the years. Fishing men and women are one of the few professions in the world where people go out to work but might never return. Search and rescue crews are the same. If a car incident-happens, relatives grieve at funerals. But for those who become 'souls of the sea'-there is no grave to visit. Getting a body back is crucial, such as when Dara helped recover my lobster fisherman father-in-law Paddy. Death is shocking enough, but having no body over which to cry leaves tears falling on uncaring waves as relatives look out to sea, helpless and in pain. The crew knew that only too well. That's why they did what they did. To bring people home. ""It's a crew operation, rank doesn't come into it,""-says a colleague. ""In a way the four were of equal status with different titles.- It's hard on everyone focusing on Dara while three are still missing but I'm sure their stories will come out in time."" Heartbroken ""The biggest thing that would be upsetting Dara now,""-says her good friend Sarah Hegarty, ""is that her three colleagues were still out there. That's what would have been breaking her heart. She always ever thought of others, she never put herself first."" Father of two, Captain Mark Duffy from Co-Louth had taken part in hundreds of missions, described by a friend as a ""unique and special man"". Winchman Paul Ormsby from north Dublin had decades of experience and like his colleague Ciaran Smith ""?aged 38 from Oldtown, Dublin ""?held the dual role of winchman and winch operator. Paul had been commended for his part in the rescue of 17 Spanish and Portuguese sailors 17 years ago. Ciaran's wife and their three young children held teddies and pictures of their dad at Blacksod this week as they waited for news. Everyone is heartbroken. ""Dara was very particular about things, very focused and she always did things right. We used to talk about safety and that you were more likely to have an accident in a car than a helicopter,"" says her friend Sarah. Sarah, Dara, and Cait O""�Neill were best friends. The three women who got to know each other over the past 15 years when Dara moved to Waterford and the friendship continued after Dara returned to Dublin. ""Dara would be mortified with the outpouring of grief,""-says Cait, a cardiac rehab nurse at University Hospital Waterford. ""She was so modest and humble and yet tough ""?she looked after everybody. We had such good times together, holidays in Rome or Florence. She was so kind. She loved birthdays, she would make you feel so special by buying really thoughtful presents.-She loved to laugh and she gave the most amazing hugs."" Cait (or Caitie as Dara called her) was due to attend an appointment on Tuesday morning and Dara texted her at 7pm on Monday evening; Dara would be heading out on the fateful mission at 9.30pm. Dara had texted her to wish her the best and had signed off with three kisses. When Dara adopted Fionn nearly three years ago he became the love of her life. ""She loved being a mother,""-says Sarah. ""She made sure he ate home-cooked food.- She cooked a lot herself, she was a brilliant cook."" ""She was extremely content with her life,""-says another good friend. ""She was never big headed. She did amazing work for charity, and loved dressing up as an elf for special days out for children at Faithlegg in Waterford when she was there. And she'd persuade her sister Orla to dress up as an elf as well."" It was Dara's father John who introduced her to another passion in life ""?donkeys!- He bought her a donkey when she was in her 30s! She called it 'Florence'. Dara loved animals and she thought there was something vulnerable about donkeys, which made her love them even more. On flights over some of the islands, she would keep an eye out for donkeys in the fields and try to see if they had enough hay. And she visited the donkey sanctuary in Cork many times. A colleague says: ""What always stood out for me was she was one of the lads. Being a female in a male-dominated job might have been tough but not for her. You know the banter between lads sometimes and she would be stuck in the middle of it. She saw herself as having 15 brothers at the base. we'll do everything now to bring home Mark, Paul, Ciaran ""?her three brothers."" Candle On the quay in Dunmore East, fishermen are getting battered lobster pots ready another season. They all remember the great work done by helicopter crews in many searches, especially that week in January 2007 when three boats sank in six days, seven lives lost forever. ""The ones that go up in the helicopters are amazing people,""-says one. Over at the Memorial Wall, spring sunshine illuminates the names etched in black. John O'Donnor's poem 'Souls of the Sea'-contains the line """"?the light reflected sends a sign to the ones on shore they love."" Underneath, someone has lit a candle.", -2954,2017/3/18,http://www.rte.ie/news/technology/2017/0318/860761-gamercon-dublin-lines/,GamerCon apologises after fans left waiting for hours,,"Organisers of the GamerCon gaming event at the National Convention Centre have apologised to people who have had to queue for hours to get into the event. 24,000 tickets were sold for the GamerCon convention. Many of the tickets were bought by families and many young children were in attendance. Some had to queue outside for three hours to get into the Convention Centre and were told they could get in only when others left, as the building was full. The Convention Centre has capacity for 9,400 people and around 12,000 tickets were sold for each day of the event which runs today and tomorrow. GamerCon founder and event organiser Ferdi Roberts apologised saying they had miscalculated the traffic flow for the event. He said people were not expected to spend all day at the event and that it is not unusual to sell more tickets-than a venue can hold.- Organisers say 20k tickets sold GamerCon but it seems not enough room in Convention Centre for everyone #rtenews pic.twitter.com/rXSYWXNJkm ""?Colman O'Sullivan (@colmanos) March 18, 2017 He said ticket holders who had not come into the Convention Centre could claim a refund through the App for the event or the GamerCon website. Some visitors said there were long queues inside the event and said the children they had brought were disappointed. Many families spent more than �100 on tickets and had additional expenses for travel and accommodation.", -2955,2017/3/18,http://www.rte.ie/news/crime/2017/0318/860699-longford-stabbing/,Man in stable condition after Longford stabbing,,"An investigation is under way and three people have been arrested after a man was stabbed in Longford Town yesterday evening. The man, who is in his 30s, suffered apparent stab wounds when he was assaulted by a number of youths at New St in the town shortly after 8.30pm. He was taken to Midland Regional Hospital, Mullingar in a critical condition, however, he is now understood to be in a stable condition. A man, 18, and two male juveniles were arrested in connection with the incident a short time later. They are all currently detained at Longford Garda Station. The Scene has been preserved for technical examination. Anyone with information in relation to the incident is asked to contact Longford Garda Station on 043-335-0570, The Garda Confidential Line on 1800-666-111, or any garda station.", -2956,2017/3/18,http://www.rte.ie/news/2017/0318/860691-belfast-court/,Two men have been charged with murder following the death of a prominent loyalist in Co Antrim,,"Two men have appeared in court in Belfast charged with murdering the high-profile loyalist George Gilmore in Co Antrim. The shooting was linked to an ongoing feud involving factions of the Ulster Defence Association. Mr Gilmore was shot in the neck while sitting in his car in Carrickfergus on Monday afternoon. He died in hospital the next day. The shooting is believed to be linked to a long-running dispute between loyalist paramilitaries invoving two rival factions of the UDA. Two men from the Carrickfergus area appeared in court today accused of Mr Gilmore's murder. Brian Roy Mc Clean aged 35, and 28-year-old Samuel David Mc Maw were also charged with the attempted murders of two other people on the same day. They were remanded in custody to appear again next month.-", -2957,2017/3/18,http://www.rte.ie/news/politics/2017/0318/860697-trump-merkel-meeting/,"In first Trump-Merkel meeting, awkward body language and a quip",,"The first face-to-face meeting between US President Donald Trump and German Chancellor Angela Merkel started awkwardly yesterday and ended even more oddly, with a quip by Mr Trump about wiretapping that left the German leader visibly bewildered. The two leaders share different views on trade, Russia and immigration, leading to some uncomfortable moments at a joint news conference in which they took pains to downplay differences that were hard to mask. The meeting was the first between the new US president and the long-serving stateswoman, who leads Europe's largest economy. It was seen as one that could help determine the future of the transatlantic alliance and shape their working relationship. Though Ms Merkel appeared relaxed, the body language between them was not especially warm. Mr Trump and Ms Merkel shook hands when she arrived at the White House but did not do so in the Oval Office where she frequently leaned towards him while he stared straight ahead, sitting with his legs apart and hands together. In the Oval Office both leaders described their meeting in brief remarks to reporters as having been very good. She began her remarks at the news conference by saying it was better to speak to each other than about each other. ""We held a conversation where we were trying to address also those areas where we disagree, but we tried to bring people together ... (and) tried to find a compromise that is good for both sides,"" Ms Merkel said. They shook hands again at the end of the press conference and then exited the East Room together. Near the start of the news conference, Mr Trump pressed Ms Merkel for Germany to meet NATO's military spending target, and Ms Merkel reiterated her country's commitment to the 2% military spending goal. ""I reiterated to Chancellor Merkel my strong support for NATO as well as the need for our NATO allies to pay their fair share for the cost of defence. Many nations owe vast sums of money from past years, and it is very unfair to the United States. These nations must pay what they owe."" Mr Trump also stood by unproven claims that the Obama administration tapped his phones, and expressed solidarity with a surprised Ms Merkel, whose government charged Washington in 2013 may have been spying on her. ""As far as wiretapping, I guess, by this past administration, at least we have something in common perhaps""? Mr Trump said to Ms Merkel, who looked bewildered as she stared back at him from her podium. In 2013 the German government said it had information that the United States may have monitored Ms Merkel's mobile phone, prompting her to call Obama to demand immediate clarification. The Republican and Democratic leaders of the US Senate Intelligence Committee issued a statement on Thursday rejecting Mr Trump's assertion that the Obama administration conducted surveillance on him.", -2958,2017/3/18,http://abcnews.go.com/US/wireStory/appeals-court-refuses-stop-oil-dakota-access-pipeline-46227287,Appeals court refuses to stop oil in Dakota Access pipeline,,"An appeals court on Saturday refused a request from two American Indian tribes for an ""emergency"" order that would prevent oil from flowing through Dakota Access pipeline. The decision by the U.S. Court of Appeals for the District of Columbia Circuit means the $3.8 billion pipeline to move North Dakota oil to a distribution point in Illinois could be operating as early as Monday, even as the tribes' lawsuit challenging the project moves forward. The Standing Rock and Cheyenne River Sioux tribes have challenged an earlier ruling by U.S. District Judge James Boasberg not to stop final construction of the pipeline, and they wanted the appeals court to halt any oil flow until that's resolved. The appeals court said the tribes hadn't met ""the stringent requirements"" for such an order. The tribes had asked Boasberg to direct the Army Corps of Engineers to withdraw permission for Dallas-based developer Energy Transfer Partners to lay pipe under Lake Oahe in North Dakota, which the Corps manages for the U.S. government. The stretch under the Missouri River reservoir is the last piece of construction for the pipeline. The company is wrapping up pipe work under the lake and has said oil could start flowing between Monday and Wednesday. The tribes fear the pipeline could harm their water supply and their right to practice their religion, which relies on clean water. ETP disputes that. The tribes' appeal rests on the religion argument. Boasberg has said he doesn't think the tribes have a strong case on appeal. He also said ETP would be ""substantially harmed"" by a delay in pipeline operations.", -2959,2017/3/18,http://abcnews.go.com/Politics/fact-checking-trumps-tweets-germany-owe-nato-vast/story?id=46227653,Fact-checking Trump's tweets: Does Germany owe NATO 'vast sums of money'?,,"President Trump took to twitter this morning from Mar-a-Lago, his Florida estate, slamming media's characterization of his meeting with German Chancellor Angela Merkel and claiming Germany ""owes vast sums of money to NATO."" Despite what you have heard from the FAKE NEWS, I had a GREAT meeting with German Chancellor Angela Merkel. Nevertheless, Germany owes..... ...vast sums of money to NATO & the United States must be paid more for the powerful, and very expensive, defense it provides to Germany! But according to a former U.S. ambassador to NATO, the president's statements are misleading. ""There is no ledger sheet that shows Germany in the red,"" Doug Lute, who served as ambassador under former President Obama from 2013 to 2017, told ABC News. ""That's not how it works in NATO."" The alliances's roughly $2 billion operating budget is paid by fixed apportions across the 28 allied members. (The United States, for example, contributes the most: about 22.14 percent of that $2 billion annually. Germany comes in second, supplying 14.65 percent.) NATO also asks its members to spend at least 2 percent of their GDP on national defense. Since the early 2000s, the U.S. has routinely budgeted between 3 percent and 5 percent of GDP for defense. But like many other NATO countries -- including Canada, Spain, and Italy -- Germany hasn't been spending 2 percent of its GDP on defense. However, as Merkel affirmed Friday, the nation has promised to meet the 2 percent threshold for the next seven years at least. ""We committed to this 2 percent goal until 2024,"" she told reporters during a joint press conference at the White House. Technically, Germany doesn't owe NATO money. Rather, the nation owes it to the alliance to spend more on its own national defense. ""Like all Allies, Germany does owe its own people and the NATO alliance sufficient defense spending to meet current security challenges,"" Lute said. ""In NATO that means 2 percent of GDP."" ABC News' Katherine Faulders contributed to this report.", -2960,2017/3/18,http://abcnews.go.com/US/meals-wheels-donations-surge-white-house-budget-proposes/story?id=46224078,Meals on Wheels donations surge after White House budget proposes funding cuts,,"Meals on Wheels, a non-profit program that serves senior citizens around the U.S., has seen its online donations surge since President Trump's administration released a budget proposal that could result in funding cuts for the organization. The White House released its proposed budget early Thursday, and during the course of that day, online donations to Meals on Wheels were 50 times the usual daily total -- $50,000 compared to the typical daily rate of $1,000, Jenny Bertolette, vice president of communications for Meals on Wheels America, told ABC News. The increased giving has continued. By Saturday afternoon, Meals on Wheels had received just over $100,000 in mostly small individual gifts since the proposed budget was released, Bertolette said. She said the group is particularly gratified by people vouching publicly for the value of the Meals on Wheels network, which through a network of 5,000 programs in the U.S. serves nearly a million meals per day. Each year, 2.4 million older Americans, including 500,000 veterans, are served by the program. ""What is most valuable to us is the fact that so many people are speaking out in support of this public-private partnership and demanding that Meals on Wheels remain a funding priority,""?she said. The Meals on Wheels network receives its funding from a combination of state and local funding, private donations and other resources. Bertolette said 35 percent of its funding comes from the Older American Act Nutrition Program. That program's funding could be affected by the White House's proposed cut of about 16 percent to the Department of Health and Human Services. The exact size of any possible cut to Meals on Wheels is unknown, but White House budget director Mick Mulvaney said, ""Meals on Wheels sounds great. Again, that's a state decision to fund that particular portion, to take the federal money and give it to the states, and say, 'Look, we want to give you money for programs that don't work,'"" Mulvaney said. In addition to the proposed cut to Health and Human Services, Trump's budget proposal would eliminate Community Development Block Grants, a $3 billion program that is provided by the Department of Housing and Urban Development and which some communities use to supplement Meals on Wheels and provide safety checks for the elderly. Both agencies provide funding for Meals on Wheels, although its main source of funding is the Older Americans Act overseen by the Health and Human Services Department. The Associated Press contributed to this report.", -2961,2017/3/18,http://www.cnn.com/2017/03/18/entertainment/chuck-berry-dies/index.html,"Chuck Berry, rock 'n' roll pioneer, dead at 90","(CNN)Chuck Berry, a music pioneer often called ""the Father of Rock 'n' Roll,"" was found dead Saturday at a residence outside St. Louis, police in St. Charles County said. He was 90.","A post on the St. Charles County police Facebook page said officers responded to a medical emergency at a residence around 12:40 p.m. (1:40 p.m. ET) Saturday and found an unresponsive man inside. ""Unfortunately, the 90-year-old man could not be revived and was pronounced deceased at 1:26 p.m.,"" the post said. ""The St. Charles County Police Department sadly confirms the death of Charles Edward Anderson Berry Sr., better known as legendary musician Chuck Berry."" A musical legend Berry wrote and recorded ""Johnny B. Goode"" and ""Sweet Little Sixteen"" -- songs every garage band and fledgling guitarist had to learn if they wanted to enter the rock 'n' roll fellowship. Berry took all-night hamburger stands, brown-eyed handsome men and V-8 Fords and turned them into the stuff of American poetry. By doing so, he gave rise to followers beyond number, bar-band disciples of the electric guitar, who carried his musical message to the far corners of the Earth. Some of his most famous followers praised him on social media. Bruce Springsteen tweeted: ""Chuck Berry was rock's greatest practitioner, guitarist, and the greatest pure rock 'n' roll writer who ever lived."" The Rolling Stones posted on their website: ""The Rolling Stones are deeply saddened to hear of the passing of Chuck Berry. He was a true pioneer of rock 'n' roll and a massive influence on us. Chuck was not only a brilliant guitarist, singer and performer, but most importantly, he was a master craftsman as a songwriter. His songs will live forever. "" But it was perhaps John Lennon -- who died in 1980 -- who put it most succinctly. ""If you tried to give rock and roll another name, you might call it 'Chuck Berry.'"" The list of Berry's classics is as well-known as his distinctive, chiming ""Chuck Berry riff"": ""Maybellene."" ""Around and Around."" ""Brown-Eyed Handsome Man."" ""School Days."" ""Memphis."" ""Nadine."" ""No Particular Place to Go."" They were deceptively simple tunes, many constructed with simple chord progressions and classic verse-chorus-verse formats, but their hearts could be as big as teenage hopes on a Saturday night. His music even went into outer space. When the two Voyager spacecrafts were launched in 1977, each was accompanied on its journey to the outer reaches of the solar system by a phonograph record that contained sounds of Earth -- including ""Johnny B. Goode."" Rock wordsmith Berry, though, was modest about his influence. ""My view remains that I do not deserve all the reward directed on my account for the accomplishments credited to the rock 'n' roll bank of music,"" he wrote in his 1987 autobiography. He had a facility with lyrics others could only envy, words and phrases tossed off with a jazzman's cool and a surgeon's precision. In ""You Never Can Tell,"" he summed up a newlywed couple's life in fewer than two dozen words: ""They furnished off an apartment with a two-room Roebuck sale / The coolerator was crammed with TV dinners and ginger ale."" His delivery was often marked by humor, but he could also insert the scalpel when needed. After all, Berry -- a black man who grew up in Jim Crow America, who was close to 30 when he had his first national hit -- knew that those high schools were sometimes segregated, and those diners and highways didn't always welcome him. ""Brown-Eyed Handsome Man"" could be read as the story of a brown-SKINNED handsome man, as rock critic Dave Marsh and others have noted; the Louisiana country boy of ""Johnny B. Goode"" wasn't necessarily Caucasian. Or consider ""Promised Land,"" the story of a man escaping the South for California. He rides a Greyhound bus across Dixie, moves to a train to get ""across Mississippi clean,"" and finally enters the Golden State on a plane, dressed in a silk suit, ""workin' on a T-bone steak."" It was the American dream in miniature, a success all the sweeter for overcoming racial prejudice -- never overtly mentioned but present all the same. There was also a darkness and suspicion in Berry, for those who cared to look. He was notorious for making concert promoters pay him in full before his shows, cash only. In his late teens he served three years in a reformatory, and after becoming famous did jail time on a charge of transporting an underage girl across state lines. Years later he was convicted of tax evasion. He had the showman's talent for saying much and revealing little. Grew up in St. Louis For all Berry's mystery and commercial sense, however, at bottom he truly loved the music. ""Rock's so good to me. Rock is my child and my grandfather,"" he once said. Charles Edward Anderson Berry was born in St. Louis, Missouri, on October 18, 1926. (Some sources say he was born in San Jose, California.) His parents -- grandchildren of slaves -- were accomplished in their own ways: father Henry was a successful carpenter, and mother Martha was a college graduate -- rare for a black woman at the time. Young Chuck, the fourth of six children, grew up in a middle-class African-American St. Louis neighborhood. He was inspired to pick up the guitar after singing in a high school talent show. A friend accompanied him and Berry decided to learn the instrument. In late 1952 he joined pianist Johnnie Johnson's band, adding country numbers to the group's R&B setlist as well as changing the name to the Chuck Berry Combo. Blessed with uncommonly large hands, Berry became a masterly guitarist. Berry was colorblind when it came to music. ""They (black and white musicians) jived between each other. All were artists, playing foolish, having fights and making love as if the rest of the world had no racial problems whatsoever,"" he once said, according to his website. The audience, too, was integrated. Broke out in the '50s In 1955, at the suggestion of bluesman Muddy Waters, Berry visited Chess Records in Chicago. Chess was a pioneering blues and R&B label, the home of Waters, Howlin' Wolf, the Moonglows and Big Bill Broonzy. The label's owners, brothers Leonard and Philip Chess, suggested Berry cut a few songs. One of them, ""Maybellene"" -- a rewrite of an old country tune called ""Ida Red"" -- was released by Chess in August. Within weeks, it had topped the R&B charts and hit No. 5 on the Billboard pop charts. Chuck Berry was suddenly a national star. The hits kept on coming: ""Roll Over Beethoven,"" ""Rock and Roll Music,"" ""Sweet Little Sixteen,"" ""Johnny B. Goode,"" ""Back in the U.S.A."" Berry popped up on television and starred alongside pioneering DJ Alan Freed in the movies ""Rock Rock Rock!"", ""Mister Rock and Roll"" and ""Go, Johnny, Go!"" He also appeared in the 1959 documentary about the Newport Jazz Festival, ""Jazz on a Summer's Day."" In many respects, he was an unlikely rock 'n' roller. He was in his 30s and a family man in a business that celebrated youth and individualism. And ""rock 'n' roll"" still carried a taint of the disreputable among older folks. But Berry -- who always kept a shrewd eye on the bottom line -- wasn't writing for himself. ""Everything I wrote about wasn't about me, but about the people listening,"" he said. A new generation Berry went through a rough stretch in the early '60s. In December 1959 he was arrested under the Mann Act for transporting an underage woman across state lines for immoral purposes. (It was a tangled tale, involving a runaway.) http://performingsongwriter.com/chuck-berry/ Convicted in 1960, he appealed, but the conviction was upheld at a 1961 trial. Berry was sentenced to three years; he served 20 months. Upon his release in 1963, he found his music had reached a new generation. The Beach Boys reworked ""Sweet Little Sixteen"" as ""Surfin' U.S.A."" (Berry later sued due to the similarities, and won.) The Beatles and Rolling Stones, about to kick off the British Invasion of America, covered Berry's songs. Berry's career was rejuvenated, and he responded with such hits as ""No Particular Place to Go"" and ""Nadine."" That spurt of chart records was short-lived, but even after the hits died down, he remained a popular touring act. His fame was particularly notable in England, and it was a London concert that put him back on the charts for the first time in years. In 1972, he recorded ""The London Chuck Berry Sessions,"" which included the live songs ""My Ding-a-Ling"" and ""Reelin' and Rockin'."" The former, a mildly suggestive ode to the male genitalia, became his only No. 1 hit. Thereafter, Berry's status as a rock legend was assured, even if his behavior was occasionally erratic. He rarely played with an established group of backing musicians, preferring to rely on local pick-up bands. He served three months on tax evasion charges in 1979 and was sued in 1989 for allegedly videotaping female employees at his restaurant. In 2016 it was announced he would release a new album. His website said that album was coming in 2017. For all that, he was still Chuck Berry, the ""alpha and omega of rock and roll,"" in the words of former Rolling Stone editor Joe Levy. He earned more honors than anybody could have imagined. Besides the Rock and Roll Hall of Fame induction, he had a statue dedicated to him in St. Louis (he's portrayed doing his famous hunched-over ""duck walk""); received PEN New England's inaugural award for Song Lyrics of Literary Excellence; a Grammy Lifetime Achievement Award; a BMI Icon honor; and a Kennedy Center Honors Award, at which Bill Clinton called him ""one of the 20th Century's most influential musicians."" ""In my universe, Chuck is irreplaceable,"" Bob Dylan told Rolling Stone in 2009. ""All that brilliance is still there, and he's still a force of nature. As long as Chuck Berry's around, everything's as it should be. This is a man who has been through it all. The world treated him so nasty. But in the end, it was the world that got beat.""", -2962,2017/3/18,http://www.huffingtonpost.com/2017/03/13/george-w-bush-trump-forget-history_n_15455268.html,George W. Bush Gave Us Donald Trump. Now He Wants To Be Forgiven.,But Americans shouldn't forget so easily.,"We're all seen the picture. It's the opening of the National Museum of African-American History and Culture, and George W. Bush is sharing a brief snuggle with Michelle Obama. The first lady, maternal and forgiving, has both arms around the former president, who looks like he wants a tummy rub. When the hug went viral last September, it triggered a once-unimaginable bipartisan ""Awww!""?that echoed throughout social and established media. Dubbed ""the Embrace Seen Around the World""?by The New York Times, the photo seemed to hold the power of magic, or at least the power of the most adorable cat video: It cast a spell accelerating a general public softening toward a man once widely scorned as a historic failure, dismissed by many on the left as a blood-spattered buffoon who belonged in a cell at The Hague. Humans are nostalgic by nature, and history is full of once-reviled public figures who enjoyed later reassessments. But where reputational rehab used to take a generation or two, Bush is trying to loosen the clutches of market-fresh infamy. If he succeeds, he will have his own presidency to thank. The immediate context for the ""normalizing""?of George W. Bush is the rise of Donald Trump. But Bush's policies created the conditions that brought Trump to power, and only in the wake of his own trademarked disasters does he look tame by comparison. The museum hug and its afterlife showcase the internet's power to turn anything ""?even yesterday's calamities ""?into today's cute moments.-It's also a worrying sign about our capacity for collective memory.-As such, it suggests something deeper and arguably more frightening about America than even the current administration. Left:-President Bush looks out over Hurricane Katrina's devastation as he flies back to Washington on Aug. 31, 2005. Right:-Bush sits with New Orleans high school students Ashantae Martin (left) and Ronjae Pleasant at an event marking the 10th anniversary of Katrina on Aug. 28, 2015.- Bush's advocates and former officials knew all along that presidential records are inevitably re-evaluated. Years ago, they began working to revamp his image in the eyes of the public. The reassessments started even before Bush left office, with the rise of the tea party and the weakening of the old Republican Party establishment. Vice presidential nominee Sarah Palin was the first trigger that got liberals thinking maybe W. wasn""t so bad-after all.-(A parallel re-evaluation was underway on the right. Among followers of Palin, who morphed into tea partiers and later into Trump die-hards, Bush was considered little better than Barack Obama.) These early rehab efforts gained traction with the 2013 release of W.'s oil paintings. The simple portraits ""?including one that could have been titled ""I'm taking a bath and these are my feet""?""?seemed to confirm old suspicions that the 43rd president was just a confused simpleton in the hands of a Cabinet of wicked Vulcans. During his presidency, this view was just another cause for derision. During Obama's second term, it helped spawn an ironic reconsideration widespread enough for Vanity Fair to declare Bush-""A hipster icon.""?BuzzFeed went further, describing the born-to-wealth Bush as an ""Autsider artist""?and offering ""?5 Reasons George W. Bush Should Come Work For BuzzFeed Animals.""?There was less appetite for, say, ""?5 Iraqi Children Who Died Agonizing Deaths During The Initial Bombardment Of Baghdad""?or ""?5 Ways Bush Policies Helped Decimate The Wealth Of Working Americans To Benefit The Ultra-Rich.""?Left:-Aboard the USS Abraham Lincoln on May 1, 2003, President Bush declares major fighting over in Iraq. The banner reads ""Tission Accomplished.""ight:-Bush's paintings of wounded veterans hang at his presidential library in Dallas on Feb. 28, 2017. He also released a book with 66 portraits of vets who served in Iraq and Afghanistan. By the time Trump clinched the GOP nomination last year, Bush's approval numbers equaled Bill Clinton's ""?a huge turnaround since Bush's ignominious departure from office. Among Republicans, a narrow majority had returned to rating his presidency ""A success.""?Then came the cute-bomb of the ""Embrace Seen Around the World,""?followed more recently by the release of Bush's coffee table art book, a sit-down on ""the Ellen DeGeneres Show""?and a People interview about his besties status with Michelle. In these and other forums, Bush declared racism bad and criticized Trump's ban on travelers from seven (now six) Muslim-majority countries. It all contrasted nicely with Trump's blatant Islamophobia. For those desperate to escape the awful reality of the present, Bush's comments reinforced the comforting delusion of a big-tent bipartisan #resistance that will return everything to the halcyon days of a completely sane and not-at-all racist Republican Party. ""Bush worked hard to sow tolerance for Muslim-Americans, convinced ""?like President Obama ""?that respect and openness was an asset in the fight against jihadists,""?Slate's Jamelle Bouie wrote in November 2015, as Trump's candidacy rose on the back of his proposed Muslim ban. ""now more than ever, this is what the Republican Party needs to hear.""?As president, Trump has shifted Americans""?vantage point on Bush, who seems competent, well-spoken, tolerant and humane by comparison. The first Trump-era host of ""saturday Night Live,""?Aziz Ansari, addressed this collective confusion in his monologue. ""What the hell has happened? I'm sitting here wistfully watching old George W. Bush speeches,""?Ansari said. ""Just sitting there like, ""�What a leader he was!""?Sixteen years ago, I was certain this dude was a dildo. Now, I'm sitting there like, ""�He guided us with his eloquence!""?Left: Ignoring reporters""?questions, President Bush turns to leave after announcing his support for a constitutional amendment banning gay marriage on Feb. 24, 2004. Right:-Bush appears as a guest on ""the Ellen DeGeneres Show""?on March 2, 2017.- Missing amid much of the reaction to Bush's sensible words was the memory of his deeds. Americans have a gift for bathing the past in a warm light. A few generations back, things were better, we always seem to imagine ""?the children more respectful, the adults harder working, the institutions less corrupt, the population more unified. This knack for rewriting is what allowed Richard Nixon, a divisive president who left a trail of carnage in his wake and barely escaped federal prison at the mercy of a presidential pardon, to die a respected statesman and geo-strategist. It's what allows his scheming secretary of state, Henry Kissinger, to grow old on vacations with Democratic presidential candidates and bask in laughs during musical numbers on Comedy Central. It's also what's helping Bush. There are, at least,-a growing number of backlash pieces.-They point out that Bush did much to create the very conditions that gave rise to Trump ""?which, in turn, is driving his own expedited rehab. Much has been made of the idea that the current president is a reaction to the previous one-""?a ""whitelash""?against eight years of Obama, in Van Jones""?phrase. While the argument contains a grain of truth, it is an oversimplification that misses the deeper relationship between Trump and the chaos left behind by Obama's predecessors.-This would be the same chaos that hatched the Islamic State and crashed the economy, lighting a spark beneath a transatlantic, right-wing, ethno-populist movement. Consider the yawning wealth gap in the U.S. The 2007-2008 financial crisis erased the stored wealth of millions of lower- and middle-income people around the world, the vast majority of whom have yet to recover. Nationalist movements date their current surge to that global crisis, which was preceded and followed by Democratic administrations that also pursued pro-Wall Street policies. Bush bears a more direct responsibility for the misery in the Middle East. When he took office, al Qaeda was a fringe factor in the Muslim world. The Bush administration's failure to prevent the 9/11 attacks, followed by the non-sequitur invasion and occupation of Iraq, gave rise to ISIS and the world we know today. Bush, it should be remembered, had plenty of warning: Millions marched in opposition to the Iraq invasion, a street echo of the Arab League's ominous admonition that such a move would ""Apen the gates of hell.""?Trump is an admirer of torture and other Bush deeds that have only driven extremists""?recruitment. Guantanamo, Abu Ghraib, waterboarding, contempt for international law ""?surely we all remember the list. Or do we? Given the media's role in rehabbing him, it seems necessary to note that Bush also hated the press. As Jacobin's Branko Marcetic reminds us, U.S. forces under the Bush administration killed multiple journalists, including shelling a hotel known to be full of international reporters. Two Reuters photographers died that time. Maybe this is what Trump had in mind when he told Bill O""�Reilly, ""We have a lot of killers. You think our country is so innocent?""?Without Bush's two most fateful decisions ""?letting Wall Street run amok and invading Iraq ""?it's hard to imagine Trump's metamorphosis from a second-rate reality TV star to president of the United States. Left: President Bush disavows anti-Muslim sentiment after 9/11, speaking at the Islamic Center of Washington on Sept. 17, 2001. Right:-At Abu Ghraib prison in Iraq,-Spc. Charles Graner and Spc. Sabrina Harman pose with naked, hooded prisoners who were forced to form a human pyramid. Hazy nostalgia for George W. Bush carries broader risks. If Bush really wasn""t so bad, then Trump is more of a dramatic switch from ages past than he's already been judged. His administration is a comet carrying alien life, as opposed to the edge of a continuum stretching back through decades of Democratic and Republican misrule.-Normalizing Bush weakens our already weak grip on history, making it that much harder to see how today's political harvest was also cultivated by the administrations of Clinton, who signed NAFTA and unleashed Wall Street, and Obama, who continued the Wall Street bailouts and allowed 90 percent of wealth creation during his tenure to accrue to the top 1 percent. If Bush had never been president, or an execution-happy Texas governor, he might be a great buddy to talk baseball with. Even now, despite everything, it's possible to empathize with his anguished conscience and maybe grant him whatever fleeting solace he finds in his paints and his bubble baths. But that's really between him, his minister and his therapist. The country cannot afford any more sentimentalized politics. If Trump's election has any value, it's as a wakeup call to stay focused on the forces and interests behind the masks. This was never going to be easy. Humanity is blessed and cursed with an ability to repress memories, especially traumatic ones. Voluntary and enforced forgetting has long been used to strengthen social cohesion. In ancient Athens, statues of Lethe, the god of forgetting, were erected as reminders of official decrees to let go of recent civil wars. The ""Embrace Seen Around the World""?has shown us how much harder remembering will be under the spell of social media, which may be shrinking our historical depth of field faster than Bush's secret energy task force helped melt the Antarctic ice sheets. The habits of mind encouraged by social media are part of the new velocity, the constant internet-powered churning and re-appropriation, that is driving our great forgetting. A decade ago, The Onion-imagined the U.S. Department of Retro warning that-the nation ""�may be running out of past.""?The joke concerned recycling yesterday's fashions at Urban Outfitters, but it hinted at a world where George W. Bush is recycled on national television and the pages of Time magazine. - The internet can also be a tool for resisting memory loss. In the past, scholars, columnists and other elite gatekeepers drove public rehabilitations, re-tailoring reputations for acceptance at the latest dinner party. But those gates are no longer kept, and the public that chooses to forget can also choose not to. In the leveled, noisy fields of the internet, they can say, ""no, this must be remembered.""?Bush helped birth Trump, but he also revived the soul of national resistance. That resistance can""t stop Bush and his fellow ex-presidents from trying to rewrite history and making tens of millions of dollars on the lecture circuit. But Americans can remember what these presidents did and why they belong on the other side of the barricades. Or at least back at the ranch, standing before an easel. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2963,2017/3/18,http://www.huffingtonpost.com/2017/03/18/feds-track-down-man-who-allegedly-threatened-to-hang-congressman_n_15454856.html,Feds Track Down Man Who Allegedly Threatened To Hang Congressman,"""I suggest you prepare for battle and the apocalypse,"" he allegedly said.","A Florida man was arrested Friday after allegedly threatening to hang a congressman by a lamppost. Charles Zachary Howard, of Winter Park, allegedly left an anonymous voicemail with the unidentified congressman in Washington, D.C., promising to ""Lunt your ass down, wrap a rope around your neck and hang you from a lamppost.""?He reportedly invoked the KKK and Nazis when he told the congressman, ""I suggest you prepare for battle motherf""?ers and the apocalypse.""?Federal authorities were able to track the number to Howard's cell phone, according to court documents obtained by the Orlando Sentinel. They interviewed him on Monday, but he denied the allegations. On Friday, news station WFTV confronted him with the federal complaint, and he dared the federal authorities to take him in. ""there's two agents over there. Why don""t they come arrest me? Why aren""t they arresting me?""?he reportedly asked. ""Because I haven""t done anything wrong. That's why.""?Minutes later, they did. They also found evidence that Howard had called dozens of congressmen this year,-though it wasn""t immediately clear if any of those calls included threats. Howard was slapped with a federal charge of threatening to injure a person across state lines. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2964,2017/3/18,http://www.huffingtonpost.com/robert-b-blancato/why-meals-on-wheels-should-actually-thank-trump-and-his-budget-director_b_15454160.html,Why Meals On Wheels Should Actually Thank Trump And His Budget Director,"Thanks to their comments, we have seen a national groundswell of interest and support for federally-funded home-delivered meals.","In the aftermath of the bombshell of a first budget submitted by President Trump, few individual programs have received more attention than the federally-funded home-delivered meal programs for older adults, also known as ""Teals on Wheels.""?It actually received two spotlights: one media-induced, the other from the chief defender of the Trump budget, the Director of the Office of Management and the Budget (OMB). The media reported, without full accuracy, that the budget intended to eliminate ALL federal funding for home delivered meals. That fortunately is not the case. Two block grant programs, the Community Development Block Grant and the Community Services Block Grant, were targeted for elimination in the budget. These programs do provide support for home-delivered meals and related services in some parts of the country. However, the main funding source for home-delivered meals, the Older Americans Act, as well as the Social Services Block Grant, were not removed in the budget. The second spotlight came when the OMB Director, while in a press conference, offered an indefensible defense of why home-delivered meal programs in these particular federal programs were being targeted. OMB Director Mick Mulvaney charged that these programs did not show results. This astounding allegation may be the most astounding ""Hake news""?we have heard to date from this administration. Federally-funded home-delivered meal programs show concrete, measurable results every day they operate. Anyone, even the OMB Director, will see this as soon as Monday, when thousands of home-delivered meal programs will move into action, tangibly touching the lives of millions of homebound older Americans. Results: These older Americans will be provided with a meal which for many will be their main source of nutrition for the day. Results: These older Americans will receive this meal in their home vs. in a hospital or nursing home. In fact, it has been estimated that an older adult can be fed for a year by Meals on Wheels for approximately the same cost as spending a day in a hospital or a week in a nursing home. Meal delivery keeps older adults safely at home, at dramatically less cost to the federal government. Results: In many communities, federally-funded home-delivered meals are delivered by a dedicated cadre of volunteers of all ages, also showing an efficient use of the federal dollar. Results: When a meal is provided to an older adult, they also have the occasion to interact daily with someone who cares about them helping to reduce the real concern about isolation among older adults. This provides added value. So, despite being one of the best investments of federal dollars over the decades, federally-funded home-delivered meals have been disparaged. It is clear the program accomplishes to promote the independence of older adults. Despite the fact that the home-delivered meals program is an enduring model of a public-private partnership, it now has to be defended against the unprepared, misinformed and misguided comments of our top budget official. What is wrong with this picture? It is interesting to recall that the last time federally-funded home-delivered meals came under the cutting ax was in 2013 during sequestration when programs suffered a five percent or more across the board cut. One year later, Congress on a bipartisan basis (when Director Mulvaney was Congressman Mulvaney from South Carolina) voted to increase funding for the Older Americans Act nutrition programs by $47 million. This included both home-delivered and congregate meals.- Also worth noting is that in 2016, Congress on a bipartisan basis voted to give the main program funding home-delivered meals a three year renewal. Sometimes budget axes hit the wrong targets. This is one of those times and targets. Any elimination of federal funding for home-delivered meals for older adults is a wrong and a cruel target. We may end up owing Director Mulvaney a thank you in the end. Thanks to his comments, we have seen a national groundswell of interest and support for federally-funded home-delivered meals. I especially applaud the local media coverage that has been quickly generated when they are provided the information on the positive community impact of home-delivered meals.-- This issue has created a firestorm on social media. Late night network talk show hosts have risen in defense of home-delivered meals. So yes, we may actually owe the Director our thanks. He has provided the spark that has lit the fire under national and grassroots advocates. He has provided the incentive that has Members of Congress looking more closely at home-delivered meals in their districts and states. Learning more, they too become vocal supporters. So, Director Mulvaney, thank you. Your mean-spirited words may result in federally-funded home-delivered meals for older adults getting exactly what they need: an increase in funding. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -2965,2017/3/19,http://www.huffingtonpost.com/2017/03/18/dave-chappelle-wants-comedians-to-stop-making-the-same-trump-jokes_n_15454138.html,Dave Chappelle Wants Comedians To Stop Making The Same Donald Trump Jokes,"""Trump's kind of bad for comedy.""","""saturday Night Live""?is experiencing a creative renaissance and its biggest ratings in two decades under-Donald Trump's presidency. But-Dave Chappelle-has a message for fellow comedians enjoying the fruits of the administration's blunders: ""trump's kind of bad for comedy.""?Speaking with CBC on Sunday, Chappelle offered his take on the current president's relationship with his chosen profession, agreeing that comedy has ""A role to play under Trump,""?but warning that there's a risk of regurgitating the same material.- ""Tost comics in the states are starting to do the same jokes, just because Trump is so on everybody's mind,""?he said. "" it'll be nice when we don""t have to talk about him that much.""?Despite his concerns over Trump's omnipresence, Chappelle said he still believes the state of comedy today is ""strong and healthy,""?citing the return of some of his favorites like Chris Rock and Jon Stewart to the game. ""I think that most of these guys you see working are wildly courageous,""?he explained. ""It's such a strange time, being bombarded with so much information, and I think comedy is an important valve for syphoning through all that.""?In November, Chappelle hosted the first ""saturday Night Live""?episode after the election and delivered a stirring opening monologue in response to Trump's surprise win. After joking that America actually elected ""An internet troll as our president,""?he recalled a recent visit to the White House for a BET event that made him feel hopeful about the country's direction.- -""I saw how happy everybody was, these people who had been historically disenfranchised, and it made me feel hopeful, and it made me feel proud to be an American,""?Chappelle said. "", in that spirit, I'm wishing Donald Trump luck. I'm going to give him a chance, and we, the historically disenfranchised, demand that he give us one too.""?For more from Chappelle, you can watch his two comedy specials that premiere on Netflix this month. - Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -2966,2017/3/18,http://www.huffingtonpost.com/2017/03/18/trump-us-mexico-border-wall-proposals_n_15454086.html,U.S. Homeland Security Seeks Proposals For Wall With Mexico,"President Trump has vowed to make Mexico reimburse the U.S. for wall-related costs, but Mexico has repeatedly refused.","WASHINGTON (Reuters) - The U.S. Department of Homeland Security has issued requests for-proposals for prototypes for a wall along the Mexican border, saying ideally it should be 30 feet (9 meters) high and the wall facing the U.S. side should be ""Aesthetically pleasing in color.""?A wall to stem illegal immigration was one of Donald Trump's main campaign promises and has been highly controversial. The president has vowed to make Mexico reimburse the United States for its cost but Mexico has repeatedly said it will not do so. Earlier this week, the White House requested $3 billion more for Homeland Security, with some of that intended for planning and building the border wall. According to one document posted online by U.S. Customs and Border Protection Friday night, the wall should be 30 feet high, built using concrete, and ""physically imposing.""?However, it says designs over 18 feet (5.5 meters) high could be acceptable. ""designs with heights of less than 18 feet are not acceptable,""?the document said. It said the wallshould have features that do not allow people to climb over it and should prevent digging below the wall. ""the wall shall prevent/deter for a minimum of 1 hour the creation of a physical breach of the wall(e.g., punching through the wall) larger than 12 inches (30 cm) in diameter or square using sledgehammer, car jack, pickaxe, chisel, battery-operated impact tools, battery-operated cutting tools, oxy/acetylene torch or other similar hand-held tools,""?it said. The other document requesting proposals has many of the same requirements but it does not specify that it be solid concrete. Learn more", -2967,2017/3/18,http://www.huffingtonpost.com/2017/03/18/k9-pit-bulls-rescue-dogs-clay-county_n_15453090.html,K-9 Pit Bulls Show Rescue Dogs 'Have What It Takes' To Be Police Pups,They're also saving taxpayers tens of thousands of dollars.,"North Carolina's Clay County Sheriff's Office-announced two adorable additions to the force this week ""?K-9 officers Sarah and Phantom. But unlike the German shepherds and Belgian Malinois dogs most people are used to seeing working with law enforcement, Sarah and Phantom are both pit bulls, rescued from shelters in New York and Texas, respectively. Sarah had been in a shelter for a year awaiting a home before Clay County hired her. ""they want to show the country and the world the loving and caring nature that most of us have experienced with our Pitbull's and show that the pound puppies have what it takes to go up against and sometimes exceed their expensive pure breed cousins,""?the department wrote in a Facebook post Wednesday. Sarah and Phantom will not be trained in apprehending criminal suspects, the post notes, only in drug detection. The two dogs came to Clay County through grants from Animal Farm Foundation in New York and Universal K9 in Texas. They'r not only serving as as ambassadors for shelter dogs and, more specifically, pit bulls ""?which often get a bad rap in the media ""?they'r also saving taxpayers a significant amount of money. ""the two foundations have taken on the mission to show that Departments do not need to spend $15-$20,000 for a pure breed German Shepard or Belgian Malinois to search and find illegal drugs, at the same time giving dogs destined for a life in a shelter or euthanasia a second chance at life serving Law Enforcement Officers and Departments around the country,""?the Facebook post states. Good luck out there, Sarah and Phantom! H/T The Dodo Share this slide: Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -2968,2017/3/18,http://www.huffingtonpost.com/dr-travis-bradberry/10-habits-that-will-dramatically-improve-your-life_b_15454590.html,10 Habits That Will Dramatically Improve Your Life,#1: Stay away from people who erode your quality of life.,"In Hans Christian Andersen's fable The Red Shoes, a young girl longs for a pair of pretty red shoes. She ultimately tricks the blind woman who cares for her into buying her a pair. Her love for the red shoes causes her to give them priority over the more important things in her life, and, as often happens in fables, karma is not on her side. The shoes become firmly stuck to her feet and force her to dance non-stop, to the point where she almost dies from exhaustion and starvation. We can scoff at the little girl's foolishness, but, in real life, we often do the same thing""�we chase after the things that we think will make us happy and don""t realize that we'r heading down a dangerous path. One study found that the people who experience the greatest job satisfaction aren""t the ones in the big, fancy offices; they'r the ones who approach their work as a calling, even when that work involves menial labor. Another study found that simply seeing fast-food logos makes people impatient. It's not that there's some intrinsic characteristic of fast food that makes people impatient; it's the habits We're come to associate with fast food, such as always being on the run, eating on the go, and never slowing down enough to enjoy a healthy meal, that bring out our impatience. We have to be very careful in choosing our pursuits, because our habits make us. Cultivating the habits that follow will send you in the right direction. they'll help you to lead a more meaningful and fulfilling life, whereby you cultivate the best within yourself. 1. Stay away from people who erode your quality of life. If merely seeing a logo for a fast-food company can make you feel impatient, just think how much more impact a toxic person can have on your life. They might be unhappy about your decision to stay away from them, and they might tell you very loudly just how unhappy they are, but isn""t avoiding them worth the cumulative effects of years of their negative influence? There are always going to be toxic people who have a way of getting under your skin and staying there. Each time you find yourself thinking about a coworker or person who makes your blood boil, practice being grateful for someone else in your life instead. There are plenty of people out there who deserve your attention, and the last thing you want to do is think about the people who don""t matter. 2. No more phone, tablet, or computer in bed. This is a big one, which most people don""t even realize harms their sleep and productivity. Short-wavelength blue light plays an important role in determining your mood, energy level, and sleep quality. In the morning, sunlight contains high concentrations of this blue light. When your eyes are exposed to it directly, it halts production of the sleep-inducing hormone melatonin and makes you feel alert. In the afternoon, the sun's rays lose their blue light, which allows your body to produce melatonin and this starts making you sleepy. By the evening, your brain doesn""t expect any blue light exposure and is very sensitive to it. Most of our favorite evening devices""�laptops, tablets, and mobile phones""�emit short-wavelength blue light brightly and right in your face. This exposure impairs melatonin production and interferes with your ability to fall asleep, as well as with the quality of your sleep once you do nod off. As We're all experienced, poor nights""?sleep has disastrous effects. The best thing you can do is to avoid these devices after dinner (television is OK for most people, as long as they sit far enough away from the set).- 3. Appreciate the here and now. Gratitude is fundamental to peace and happiness -not wealth, glamour, adventure, or fast cars, but simple appreciation for what you have. Just because you can""t afford champagne and caviar doesn""t mean that you never enjoy a meal. Hot dogs and beer on the back deck with your friends taste just as good. So, don""t fool yourself into thinking that you need something that you don""t currently have in order to be happy, because the truth is that if you can""t appreciate what you have now, you won""t be able to appreciate the ""good life""?if you ever get it. 4. Realize that things aren""t always as you perceive them to be. This goes along with appreciating the here and now. That person you envy because they seem to have the perfect life might be dealing with all kinds of problems behind closed doors. That ""perfection""?could be a total mirage. Your employer's decision to move the office might seem like a huge hassle when you first hear about it, but it could end up being one of the best things that ever happens to you. You'r not omniscient and you'r not a fortune-teller, so be open to the possibility that life might have some surprises in store, because what you see is not always what you get. 5. Get started, even though you might fail. Most writers spend countless hours brainstorming their characters and plots, and they even write page after page that they know they'll never include in the books. They do this because they know that ideas need time to develop. We tend to freeze up when it's time to get started because we know that our ideas aren""t perfect and that what we produce might not be any good. But how can you ever produce something great if you don""t get started and give your ideas time to evolve? Author Jodi Picoult summarized the importance of avoiding perfectionism perfectly: ""You can edit a bad page, but you can""t edit a blank page.""?6. Get organized. People joke about new ideas being in short supply, but I think that the one resource that's really scarce is spare time. Do you know anybody who has some? Yet we waste so much of it by not being organized. We touch things two or three times before we do something with them (like tossing the mail down on the counter then moving it to the table so we can cook dinner) and once We're put them away, we spend even more time looking for them. Have a place for all of those little things you need to take care of when you get a minute, whether it's your child's permission slip for a field trip or an overdue bill, and then get to them in a timely manner; otherwise you'll be searching through a huge stack of stuff for the one thing you need. 7. Start a collection of the things that truly resonate with you. Have you ever come across a quote or a meme that so perfectly summed up your feelings that you wanted to keep it forever? You know that it's in one of those coats you wore five winters ago, and you really hope it's not the one you gave to Goodwill. When you come across something that resonates with you""�whether it's something that expresses who you are or who you want to be""�have a central place to keep those gems. It doesn""t matter whether it's a spiral notebook, a leather binder, or a folder on Evernote, have a place to collect the things that matter so that you can revisit them regularly. 8. Do something that reminds you who you are. We all joke about having ""me""?time, but what is that, really? It's making time for those activities that we feel most authentically ourselves doing, when all the masks are off and we can just be. Whether it's going for a run or dancing around with your 80s favorites blaring at top volume, make time for those moments. They'r incredibly rejuvenating. 9. Say no. Research conducted at the University of California in Berkeley shows that the more difficulty that you have saying no, the more likely you are to experience stress, burnout, and even depression, all of which erode self-control. Saying no is indeed a major self-control challenge for many people. ""no""?is a powerful word that you should not be afraid to wield. When it's time to say no, emotionally intelligent people avoid phrases like ""I don""t think I can""?or ""I'm not certain.""?Saying no to a new commitment honors your existing commitments and gives you the opportunity to successfully fulfill them. Just remind yourself that saying no is an act of self-control now that will increase your future self-control by preventing the negative effects of over commitment.- 10. Stick to realistic goals. How many people start January by proclaiming, ""I'm going to lose 30 pounds by March!""? Big, scary, crazy goals can be incredibly inspiring""�until you fall short, and then, instead of inspiration, you'r left with disappointment and guilt. I'm certainly not suggesting that you stop setting goals that push and challenge you, just that you try to stick within the bounds of reality. Bringing It All Together Your character is determined by your attitude and how you spend your time, and so is happiness. Stop chasing the things that you think will make you happy, and start realizing that your peace and happiness are entirely up to you. Ever tried any of these habits? Please share your thoughts in the comments section, as I learn just as much from you as you do from me. If you""�d like to learn more on this topic, consider my book Emotional Intelligence 2.0. We'r basically your best friend""?with better taste. Learn more", -2969,2017/3/18,http://www.bbc.co.uk/news/world-us-canada-39318602,Rock and roll legend Chuck Berry dies,"Rock and roll legend Chuck Berry has died aged 90, police in the US state of Missouri report.","Rock and roll legend Chuck Berry has died aged 90, police in the US state of Missouri report. The singer was found unresponsive at lunchtime on Saturday, St Charles County police said. Berry's seven-decade career boasted a string of hits, including classics Roll Over Beethoven and Johnny B. Goode. He received a lifetime achievement Grammy in 1984 and was among the first inductees to the Rock and Roll Hall of Fame in 1986. In a statement on Facebook, the St Charles County Police Department said they were called to reports of an unresponsive man at 12:40 local time (17:40 GMT). ""Unfortunately, the 90-year-old man could not be revived and was pronounced deceased at 1:26pm,"" the statement continued. ""The St. Charles County Police Department sadly confirms the death of Charles Edward Anderson Berry Sr., better known as legendary musician Chuck Berry."" High-profile musicians were quick to pay tribute to Berry's talent and influence. Motown legends The Jacksons tweeted: ""Chuck Berry merged blues & swing into the phenomenon of early rock'n'roll. In music, he cast one of the longest shadows. Thank You Chuck."" Singer-songwriter Huey Lewis described him as ""maybe the most important figure in all of rock and roll"". ""His music and influence will last forever,"" he added. Beatles drummer Ringo Starr quoted one of Berry's own lyrics on Twitter, saying: ""Just let me hear some of that rock 'n' roll music any old way you use it."" ""I am playing I'm talking about you,"" he wrote. Both the Beatles and the Rolling Stones covered Berry's songs, as did The Beach Boys and scores of other acts - including Elvis. ""If you tried to give rock 'n' roll another name,"" John Lennon once said, ""you might call it 'Chuck Berry'."" Mick Jagger of the Rolling Stones said that Berry ""lit up our teenage years and blew life into our dreams"". Singer Bruce Springsteen called him ""a giant for the ages"". The novelist Stephen King noted that Berry had a long life for a consummate rock'n'roller, tweeting: ""Chuck Berry died. This breaks my heart, but 90 years old ain't bad for rock and roll. Johnny B. Goode forever."" Berry was born in St Louis, Missouri, in 1926, and had his first hit, Maybellene, in 1955. Last year, he announced he would be releasing his first album in nearly four decades. He dedicated it to his wife of 68 years, Themetta ""Toddy"".", -2970,2017/3/18,http://www.bbc.co.uk/news/world-asia-39318463,North Korea 'conducts high-thrust engine test',North Korea's state media says its military has tested a new high-performance rocket engine.,"North Korea's state media says its military has tested a new high-performance rocket engine. Leader Kim Jong Un declared the test ""a new birth"" for the North's rocket industry, state news agency KCNA said. He said the engine would help North Korea achieve world-class satellite launch capability, it added. The development, not confirmed elsewhere, comes as US Secretary of State Rex Tillerson visits China - Pyongyang's main ally. After personally overseeing the test, Mr Kim ""emphasized that the world will soon witness the great significance of the epoch-making victory we achieved today"", KCNA reported, adding that it marked the birth of the country's rocket industry. Mr Tillerson's East Asian tour has been dominated by anxieties over North Korea's nuclear capabilities. In South Korea on Friday, he said a US military response would be on the table if North Korea threatened South Korea or US forces. The US and China pledged to work together to get the North to take ""a different course"" and move away from its weapons programmes after Mr Tillerson met his Chinese counterpart on Saturday. North Korea has conducted five nuclear tests and a series of missile launches. Experts and government officials believe it is working to develop nuclear-warhead missiles that can reach the US. Kim Jong Un has said the country is close to a test-launch of an intercontinental ballistic missile.", -2971,2017/3/18,http://www.bbc.co.uk/news/uk-39308748,Skins creams containing paraffin linked to fire deaths,"Skin creams containing paraffin have been linked to dozens of fire deaths across England, the BBC has learned.","Skin creams containing paraffin have been linked to dozens of fire deaths across England, the BBC has learned. The products for conditions like eczema and psoriasis can leave people at risk of setting themselves ablaze. If people use the creams regularly but do not often change clothes or bedding, paraffin residue can soak into the fabric, making it flammable. The medicines regulator has updated its guidance and says all creams containing paraffin should carry a warning. Despite warnings going back more than 10 years, BBC Radio 5 live Investigates has discovered there have been 37 deaths in England since 2010 linked to the creams. Carol Hoe's husband Philip died after accidentally setting himself on fire at Doncaster Royal Infirmary in 2006 when sparks from a cigarette reacted with the emollient cream he was covered in. ""I got a phone call from the ward sister to say can you get to the hospital as soon as possible, Philip's had an accident,"" she said. ""Philip had caught fire. He had sneaked off onto a landing for a sneaky cigarette, a gust of wind must have caught the lighter, and it set fire to him."" Within seconds Mr Hoe, who was receiving treatment for psoriasis, was engulfed in flames and he died shortly after being transferred to another hospital in Sheffield. ""When we got there, the staff came to me and told us he was covered with 90% burns,"" said Mrs Hoe. ""There was nothing they could do."" The coroner at his inquest drew attention to the dangers posed by skin creams, and the now defunct National Patient Safety Agency advised that paraffin-based products are easily ignited with a naked flame. The Medicines and Health Care Products Regulatory Agency later issued two more warnings. But deaths continued to occur. The coroner at the inquest into the death of 63-year-old Christopher Holyoake in Leicester in 2015 heard his bedding was covered in residue from an over-the counter dermatological cream called E45. When the flame from his cigarette lighter came into contact with the bedding, the residue acted as an accelerant, giving Mr Holyoake little chance of surviving the fire. After the inquest the coroner wrote to the manufacturer of E45 - outlining her concerns there were no warnings on the packaging about the product being highly flammable. E45 has since agreed to include a flammability warning on some products and these will find their way onto shop shelves from next month. Also in 2015, an inquest into the death of 84-year-old John Hills heard he died in a nursing home in Worthing in Sussex after setting himself on fire with his pipe. A paraffin-based cream called Cetraben had soaked into his clothes and was found to have played a part in his death. The coroner said he was concerned the dangers associated with the cream were not widely known. The manufacturers say they intend to carry out a review of the safety information included on their product packaging. 5 live Investigates approached all 53 fire brigades in the UK to find out how many deaths had been linked to the use of paraffin-based skin creams since 2010. Just six from England provided information - revealing the 37 fatal incidents. The majority came from the London Fire Brigade which reported 28 fatalities. The problem has become sadly familiar to Darren Munro, borough commander for London's Wandsworth Fire Station, who has been campaigning to raise awareness. ""In four out of the last six fatalities that I've personally attended, I would say the emollient cream has had a direct result in the flame spread and the speed at which the fire took hold,"" he said. ""The creams themselves aren't dangerous, it only becomes dangerous when you mix it in with other factors."" London Fire Brigade says even regular washing of night clothes and bed linen might not eliminate the danger, as paraffin is invisible and can accumulate over time. Mr Munro suspects the authorities are unaware of the true scale of fires related to skin creams. ""One of the fatalities that we dealt with, unfortunately, the individual had had a previous fire, which wasn't reported,"" he said. ""The carers or a neighbour had put the fire out, so therefore the London Fire Brigade weren't called. ""I would imagine that there have been numerous other instances where people have been injured, but because the flames have been extinguished, people haven't called the fire brigade"". Until recently, the Medicines and Healthcare Products Regulatory Agency only asked that a flammability warning be put on packaging if a cream contained more than 50% paraffin. The agency is now urging manufacturers to add a warning to the packaging of skin creams containing any paraffin. And since being alerted to 5 live's findings, the organisation representing manufacturers of branded over-the-counter medicines has said it will explore whether all paraffin-based creams should carry a warning as standard. John Smith, chief executive of the Proprietary Association of Great Britain said some manufacturers had already taken that step. He added the association wanted ""to reassure people that the normal use of emollients in the home is considered appropriately safe provided the products are used in accordance with the on-pack instructions and accompanying patient information leaflet. ""Manufacturers of emollients are not at present required by regulation or statute to include fire safety warnings on packaging. Safety is nonetheless of paramount importance."" More than a decade after her husband died, this all seems too little, too late for Carol Hoe. ""To be quite honest I'm really angry because at the inquest, the coroner said that further steps should be taken to give people warnings about this and for nearly 40 more deaths to happen after Philip, I just can't understand it, "" she said. 5 live Investigates is on BBC Radio 5 live, 19 March at 11:00 GMT - catch up on BBC iPlayer Radio. Have you got something you want investigating? We want to hear from you. Email 5liveinvestigates@bbc.co.uk", -2972,2017/3/18,http://www.bbc.co.uk/news/world-europe-39318591,Orly airport: France launches terror investigation,French anti-terror prosecutors are investigating an attack at Paris's Orly airport by a gunman who was eventually shot dead by security forces.,"French anti-terror prosecutors are investigating an attack at Paris's Orly airport by a gunman who was eventually shot dead by security forces. Ziyed Ben Belgacem, 39, was killed on Saturday after he put a gun to a soldier's head saying he wanted to ""die for Allah"", officials say. Earlier that day he had been involved in a shooting and then a carjacking. Belgacem is described as having been radicalised in prison, and was on a police watch-list. His criminal record included convictions for armed robbery and drugs offences, Paris prosecutor Francois Molins told reporters late on Saturday. Intelligence agents searched his home in Garges-les-Gonesse for evidence of Islamist sympathies, but reportedly found nothing. However, traces of cocaine were discovered during the search. The BBC's Hugh Schofield in Paris says the picture is building up of a man on the criminal fringes of society, who also consorted with Islamist radicals. The attack comes at a sensitive time. France has presidential elections starting next month and remains under a state of emergency. The soldiers at Orly were part of Operation Sentinel - involving thousands of soldiers deployed to provide back-up to the police after the Charlie Hebdo attack in January 2015 and the Paris attacks of November 2015. Early on Saturday morning, Belgacem was stopped at a checkpoint in Garges-les-Gonesse, north of Paris, where he lives. He fired at police with a pellet gun before escaping in a car that was later found abandoned. Police say he then stole a car at gunpoint from a woman at Vitry, south of Paris. That car was later found at Orly airport. Belgacem arrived at the airport and attacked the military patrol in the south terminal. He tried to seize the servicewoman's automatic weapon, put his gun to her head and said: ""I'm here to die for Allah. In any case people are going to die."" He was then shot dead by two other soldiers. A copy of the Koran was found on his body, Mr Molins added. Orly - located 13km (8 miles) south of Paris - is the capital's second-largest airport. Both the west and the south terminals were closed during the security operation. An estimated 3,000 passengers were evacuated. Flights were suspended for several hours. Both terminals reopened later on Saturday and flight operations gradually resumed.", -2973,2017/3/18,http://www.bbc.co.uk/news/health-39316963,NHS facing 'mission impossible next year',"NHS services in England are facing a ""mission impossible"" to meet the standards required by the government, health bosses say.","NHS services in England are facing a ""mission impossible"" to meet the standards required by the government, health bosses say. The warning has been made by NHS Providers, which represents hospital, mental health and ambulance trusts. It said front-line services simply do not have enough money - and predicts longer waits for hospital operations and more delays in A&E as a result. But ministers said the NHS has been given the money it needs. The NHS budget is increasing this Parliament, but not by as much as the health service has traditionally got. NHS Providers predicts its members, which account for nearly two-thirds of health spending, will get ?89.1bn in 2017-18 - that is 2.6% more than they got this year, but crucially just half of the 5.2% demand is expected to grow by. Chief executive Chris Hopson said it was time for the government to ""sit up and listen"". He described the goals for next year - to get back to hitting the waiting time targets for A&E and hospital operations, while balancing the budget - as ""mission impossible"". ""NHS trusts will strain every sinew to deliver the commitments made for the health service. But we now have a body of evidence showing that, with resources available, the NHS can no longer deliver what the NHS constitution requires of it. ""We fear that patient safety is increasingly at risk."" The analysis carried out by NHS Providers predicts that the numbers waiting in A&E longer than the four-hour target will increase by 40% next year to 1.8m, while the numbers waiting beyond the 18-week target for routine treatments, such as knee and hip operations, will go up by 150% to around 100,000. A Department of Health spokeswoman said extra money was being invested in the NHS and pointed out the Budget had set aside more funding for social care, which would also help relieve the pressures on hospitals in particular. She added the government had a ""strong plan to improve performance"" and accused NHS Providers of failing to acknowledge the steps that were being taken.", -2974,2017/3/19,http://tass.com/politics/936322,Russia to respond if Norway joins European missile shield - envoy,"""Therefore, there will be no peaceful Arctic anymore,"" Russian Ambassador to Norway Teimuraz Ramishvili said","OSLO, March 19. /TASS/. Oslo should understand that its possible move to join the NATO European missile shield will not be left unanswered by its neighbor Russia, Russian Ambassador to Norway Teimuraz Ramishvili said in an interview with Norway's state-run NRK TV channel. ""In this case we will have to make military-level technical decisions needed to neutralize the effect of the possible creation of a missile shield element. Naturally, it will trigger a vigorous reaction in Norway, which will claim that Russia poses a military threat to the country,"" he said in an NRK interview aired late Saturday. ""Norway has to understand that after becoming an outpost of NATO, it will have to face head-on Russia and the Russian military might,"" Ramishvili said, adding that the move ""will become a new factor that will be included in our strategic planning as an additional problem in the Arctic Region."" ""Therefore, there will be no peaceful Arctic anymore,"" he added. In a comment to TASS, Ramishvili said that Moscow had to express its views on the issue in public, because the Norwegian side is unwilling to communicate on the problem. ""We have to talk about this in public recently due to the lask of the negotiation process and the Norwegian side's reluctance to discuss their concerns with the neighbors. For this reason, the embassy tries to attract the public and politicians' attention to the problem in an attempt to prevent the arms race from spreading to the Arctic region,"" he said. In 2015, Norwegian Prime Minister Erna Solberg expressed her country's readiness as a NATO founding member to make a contribution in the creation of the European missile shield. Norway and US defense experts were to submit their recommendations on the issue to the Norwegian government by the end of 2017. The Royal Norwegian Navy currently has in service five modern Fridtjof Nansen-class frigates, equipped with Lockheed Martin's AEGIS combat system, that can be modernized to be incorporated into the European missile shield system. The Globus II, a radar station located on the Vardo island near the Russian border, and another radar that the US plans to deploy there by 2020, can also be turned into elements of the European missile shield. Norwegian defense officials, however, dismissed this possibility.", -2975,2017/3/18,http://tass.com/science/936312,"No suspects yet in Roscosmos top manager's death in jail cell ""?source","The main line of inquiry into Yevdokimov's suspicious death is a murder, but a suicide cannot be ruled out either","MOSCOW, March 18. /TASS/. Law enforcement agencies have not yet named any possible suspects in the death of Vladimir Yevdokimov, a senior official in charge of quality and reliability control of the Russian space agency Roscosmos, in a cell of a Moscow pre-trial center, a source with law enforcement agencies told TASS on Saturday. ""No suspects have been named as of yet. His cellmates and officials of the detention facility are being questioned. Personal cases of the people who shared the cell with Yevdokimov are being studied as well,"" he said. The main line of inquiry into Yevdokimov's suspicious death is a murder, but a suicide cannot be ruled out either, he said. ""Some forensic medical tests are to be carried out and corresponding conclusions will be drawn,"" he said, adding the knife seized in the jail cell would be analyzed properly. Earlier in the day, Yevdokimov's body with three knife wounds - two in the heart and one in the neck - was found in his jail cell. According to preliminary information, he died at about four in the morning, when his 11 cellmates were sleeping. A criminal investigation has been launched into his death. Yevdokimov was arrested last December on charges of embezzlement of 200 million rubles (approximately $3.495 mln) from the MIG Russian Aircraft Corporation. Later, Moscow's Basmanny Court extended the arrest of Yevdokimov and his alleged accomplice until April 30. The officials denied any wrongdoing.", -2976,2017/3/19,http://tass.com/society/936318,"Russia's Eurovision-2017 contestant says Ukrainian entry ban threat ""�ludicrous""?,Commenting on allegations that her Eurovision entry was a provocation by the Russian authorities"," Samoilova said she had to face prejudices her entire life""","VLADIVOSTOK, March 19. /TASS/. Yulia Samoilova, who will represent Russia at the Eurovision-2017 song contest in Ukraine dismissed as ""laughable"" the Ukrainian authorities""?threats not to allow her cross the country's border. ""It's all laughable, and I don""t understand why they made such a big fuss of it,"" the wheelchair-bound singer said in a Rossiya 1 TV channel broadcast, Saturday News with Sergei Brilev. Commenting on allegations that her Eurovision entry was a PR move and a provocation by the Russian authorities, Samoilova said that she had to face other people's prejudices her entire life. ""Opinions differ,"" she said, adding that the aim of her participation was ""to show that any person is capable of anything""?and that if you have a dream, you can always achieve it."" On March 12, it was announced that wheelchair-bound singer Yulia Samoilova will represent Russia at the 2017 Eurovision Song Contest to be held in Ukraine's capital Kiev on May 9-13. Ukraine's security service SBU said earlier that Samoilova performed at a festival dubbed ""A World of Sports and Kindness"" held in Russia's Crimea on June 27, 2015 and thus violated the Ukrainian government's regulation which stipulates that foreign citizens should receive a special permission in order to enter Crimea. Ukrainian Foreign Minister Pavel Klimkin said that choosing Samoilova to represent Russia at the contest was a provocation. Meanwhile, the contest's Executive Supervisor Jon Ola Sand said that the European Broadcasting Union had no objection against Samoilova's participation.", -2977,2017/3/19,http://tass.com/society/936320,"Rock'n'roll legend Chuck Berry dies aged 90 ""?media","The musician, who was found unresponsive on Saturday afternoon, was pronounced dead later","NEW YORK, March 19. /TASS/. American guitarist, singer and songwriter and one of the pioneers of rock and roll music, Chuck Berry, died at the age of 90 on Saturday, FOX News reported. ""St. Charles county police say they responded to a medical emergency Saturday afternoon (local time) and found Berry unresponsive. He could not be revived and was pronounced dead,"" the channel said. Chuck Berry, born in 1926, was a significant influence on the development of both the music and the attitude associated with the rock music lifestyle. His first hit single, Maybellene (1955) is viewed as one of the first rock and roll songs. Berry became one of the first musicians to be included into the Rock and Roll Hall of Fame in 1986. Among his other achievements is the fifth place on the 100 Greatest Artists of All Time list by the Rolling Stone magazine and a Grammy Lifetime Achievement Award.", -2978,2017/3/19,http://tass.com/sport/936319,"Russia's FC Spartak fans mock BBC documentary with ""�Blah Blah Channel""?banner",The film was widely condemned in Russia for attempts to depict Russian sports community in a negative light,"MOSCOW, March 19. /TASS/. A huge banner held aloft by fans of Russia's Spartak Moscow football club during a game on Saturday labeled BBC the ""�Blah Blah Channel""?for its documentary on hooliganism in Russia, a TASS correspondent reported. During the Russian Football Premier League derby match with Lokomotiv Moscow, Spartak fans unfurled two huge banners. The first one suggested that BBC stands for the ""Blah Blah Channel"" and reflected the way that Russian football fans were portrayed in the channel's ""Russia's Hooligan Army"" documentary: two men in balaclava masks, one of them holding a machete knife. The other one reads ""#WelcomeToRussia2018 - Supporters of a big country"" written in Russian, with drawings suggesting how Russian football devotees really look like. Commenting on the initiative, Russia's deputy prime minister and the head of the Russian Football Union, Vitaly Mutko, said the fans demonstrated their ability to respond to provocations with humor. ""The guys responded to this entire situation in a Russian style, with humor. It was a creative move. Well done - that's all I can say,"" said the official, who earlier described the BBC feature as ungrounded and called it a ""fearmongering fable."" The UK-based BBC television channel released a documentary in mid-February in which Russian hooligans were warning British football fans about a ""Festival of violence""?in response to the notorious clashes in the French Riviera city of Marseille last year during the 2016 UEFA Euro Cup games. The film was widely condemned in Russia for attempts to depict Russian sports community in a negative light. Russia is currently in full-swing preparations for the upcoming 2018 FIFA World Cup to be held between June 14 and July 15 at 12 stadiums in 11 host cities: Moscow, St. Petersburg, Sochi, Kazan, Saransk, Kaliningrad, Volgograd, Rostov-on-Don, Nizhny Novgorod, Yekaterinburg and Samara.", -2979,2017/3/19,http://tass.com/economy/936316,Ukrainian radicals seal off Sberbank office in Ternopol with concrete blocks,"""Activists have spray-painted windows and pasted leaflets on them. At the moment, the activists are literally sealing off the entrance,"" the local newspaper said","KIEV, March 18. /TASS/. Ukrainian radicals spray-painted windows of a Sberbank office in the Ukrainian city of Ternopol Saturday and blocked entrance with concrete blocks in a yet another attack against a Ukrainian subsidiary of Russia's biggest lender, the local Teren newspaper said. ""Activists have spray-painted windows and pasted leaflets on them. At the moment, the activists are literally sealing off the entrance,"" the report says. Numerous offices of banks with Russian capital have been attacked by radicals in Ukraine, who demand that their activities are banned by the country's legislature and their licenses are revoked by the Ukrainian Central Bank. Since March 13, Ukrainian nationalists have been blocking activities of Sberbank's central office in Kiev, pitched tents in front of the building, made bonfires. Outlets of other banks have been attacked as well. On Thursday, Ukrainian President Pyotr Poroshenko imposed sanctions against five banks with Russian state capital operating in the Ukrainian market. Restrictions are introduced for a year against Sberbank, VS Bank, Prominvestbank, VTB Bank and BM Bank and include a ban on withdrawal of funds outside of Ukraine, as well as payment of dividends, interest, return of interbank deposits and loans, funds from correspondent accounts of subordinated debt. The ban also concerns distribution of profits and capital of these five banks.", -2980,2017/3/18,http://tass.com/world/936314,US dock landing ship USS Carter Hall enters Black Sea - Pentagon,"The Romanian-led maritime exercise Spring Storm 17 is taking place in the vicinity of Constanta, Romania, March 18-21, in the Black Sea","MOSCOW, March 18. /TASS/. The amphibious Harpers Ferry-class dock landing ship USS Carter Hall has entered the Black Sea, the Naples-headquartered US 6th fleet press service said Saturday. ""The amphibious dock landing ship USS Carter Hall (LSD 50) and embarked Marines from the 24th Marine Expeditionary Unit, arrived in the Black Sea March 17, to participate in bilateral training exercise Spring Storm 17 with Romania,"" the press service said in a statement. The Romanian-led maritime exercise Spring Storm 17 is taking place in the vicinity of Constanta, Romania, March 18-21, in the Black Sea. About 1,200 Romanian and US servicemen will take part in the drills, that will also involve Romanian Navy warship and Air Force aircraft. The Carter Hall will work alongside Romanian maritime forces to develop interoperability and proficiency. Carter Hall was launched on October 2, 1993, and commissioned September 30, 1995. She made her maiden deployment to the Mediterranean on April 29, 1997. The ship may carry up to 500 marines on board.", -2981,2017/3/18,http://tass.com/society/936317,EU court of justice declares war on religion banning headscarves - Chechnya leader,"""The European court of justice has taken a shameful decision allowing employers to ban staff from wearing hijabs and other visible religious symbols,"" Ramzan Kadyrov said","MOSCOW, March 19. /TASS/. The EU's highest court has actually declared a war on religion, allowing employers to ban staff from wearing hijabs (headscarves traditionally worn by Muslim women) at workplace, Chechnya's leader Ramzan Kadyrov wrote on his Instagram page. ""The European court of justice has taken a shameful decision allowing employers to ban staff from wearing hijabs and other visible religious symbols. In fact, they mean a covert war on religions,"" Kadyrov said. Chechnya's leader is convinced believers""?reaction to the court's ruling would be quite contrary. ""Muslims in Europe will say resolute ""�No!""?to the efforts aimed to ban their religious rights! If they have never worn any hijabs, they will put (headscarves) on at workplace, university, elsewhere,"" he said. ""Followers of other religions will take a similar attitude to the court's ruling."" Kadyrov compared contemporary Europe with Biblical Sodom and Gomorrah and with Nazi Germany. ""They want the entire world to turn into Sodom and Gomorrah. In Nazi Germany, genocide was racial and ethnic. If you keep silent, there are no guarantees it will not happen again on a religious basis,"" he went on to say. Chechnya's leader accused European authorities of immorality and of ""the blurring of ethnic and religious identities."" European countries are fostering a new culture advocating ""a total denial of the faith, morals and ethics."" Earlier, Chechnya's head branded the topic of hijabs as contrived since an Islamic headscarf covers a woman's head unlike the veil, hiding the whole face but for eyes. The veil has nothing to do with Islam, being an outfit typical for Afghanistan and other regional nations, he said.", -2982,2017/3/18,http://www.dw.com/en/north-korea-tests-new-rocket-engine-state-media-report/a-38012070?maca=en-rss-en-all-1573-rdf,"North Korea tests new rocket engine, state media report","North Korea has tested a new high-trust rocket engine, according to state media. The test comes as US Secretary of State Rex Tillerson is in China to discuss US policy toward Pyongyang.","North Korea tested what its leader Kim Jong Un described as ""a new birth"" of the country's rocket industry, state media reported on Sunday. ""The development and completion of a new-type high-thrust engine would help consolidate the scientific and technological foundation to match the world-level satellite delivery capability in the field of outer space development,"" KCNA quoted Kim as saying. The announcement suggests North Korea tested a rocket engine for a long-range missile as part of its weapons program. North Korea conducted two nuclear tests last year and a series of missile tests. The regime in Pyongyang-has repeated threatened to hit the US mainland and bases in Japan with long-range missiles. The rocket test comes as US Secretary of State Rex Tillerson is in Chinaafter visiting US allies South Korea and Japan. In an indication Washington is set to take a tougher approach on North Korea, Tillerson said earlier this week that the United States was growing impatient with ""failed"" diplomacy and all options including military action-were ""on the table"" to deal with the nuclear threat. cw/sms (AFP, Reuters)", -2983,2017/3/18,http://www.dw.com/en/rock-n-roll-legend-chuck-berry-dies-at-90/a-38011807?maca=en-rss-en-all-1573-rdf,Rock 'n' roll legend Chuck Berry dies at 90,"Known for his distinctive guitar skills and as a pioneer or rock and roll, Chuck Berry has died at the age of 90, according to police in the US state of Missouri.","The St. Charles County Police Department in Missouri said the rock and roll icon Chuck Berry was found dead on Saturday. The singer, songwriter and guitarist, known for such hit singles as ""Johnny B. Goode,"" ""Roll Over Beethoven"" and ""Sweet Little Sixteen,"" was 90 years old. He was regarded as having defined rock and roll-by melding blues, country and jazz elements into some of the most iconic songs of the 20th century. ""Chuck Berry always was the epitome of rhythm and blues playing, rock ""�n""?roll playing. It was beautiful and effortless, and his timing was perfection. He is rhythm supreme,"" Keith Richards of the Rolling Stones once said of Berry. Bob Dylan dubbed Berry ""the Shakespeare of rock 'n' roll."" Many famous pop and rock'n'roll artists - including the Beatles and the Rolling Stones - covered Berry's music. The Beach Boys classic ""Surfin' USA""-is based on the melody of Berry's ""Sweet Sixteen.""- One of the first popular acts to write as well as perform-his own songs, Berry was not just known for his music, but also his showmanship. His signature move was the-so-called ""duck walk"" --walking across the stage with his guitar, knees bent, head bobbing. At a time when many music clubs were still segregated, Berry's performances attracted white and African-American audiences alike. In 1986, Berry was one of the first inductees to the Rock and Roll Hall of Fame and ""Rolling Stone"" magazine rated him sixth on its list of ""100 Greatest Guitarists of All Time.""-When a record of ""Earth Sounds and Music""-was sent into space on the-Voyager spacecraft in 1977, ""Johnny B. Goode"" was one of the songs featured on the album.- Born on October 18, 1926, as Charles Edward Anderson Berry, the musician-grew up in-St. Louis, Missouri, and was-the fourth of six children. He married Themetta Suggs in 1948 and had four children. Throughout his life, Berry had several runs-ins with the law. - Before his break-through in the mid-1950s, Berry served three years in jail for armed robbery from age 18 to 21. He also spent-a year and a half behind bars in the early 1960s after he brought a 14-year-old girl with whom he allegedly had an affair across state lines. In 1990, several women sued Berry, claiming that he had filmed them using the ladies' bathroom in a restaurant he owned. Berry settled the case out of court, but maintained that he was innocent, saying that that an employee had installed the camera. Berry announced that he was recording his first studio record in over three decades-on his 90th birthday in October 2016. The record - simply called ""Chuck"" - is scheduled to be released sometime this year. mb/sms (AP, Reuters)", -2984,2017/3/18,http://www.dw.com/en/opinion-hamburg-holds-all-the-cards-in-bundesliga-relegation-battle/a-38011761?maca=en-rss-en-all-1573-rdf,Opinion: Hamburg holds all the cards in Bundesliga relegation battle,"Hamburg's 0-0 draw away at Frankfurt makes them look like the losers on Matchday 25, but with nine games to go, DW's Matt Ford is still backing the Bundesliga dinosaur to stay up.","With Bayern Munich on course for a fifth consecutive title and Hoffenheim pulling away in the race for the fourth, it's the battle for survival which is providing most excitement as the Bundesliga enters its decisive phase. Despite impressive upturns in form under new managers in recent weeks, minnows Darmstadt and Ingolstadt appear resigned to the drop. Above them however, just three points separate 16th and 11th with four teams tied on 29 points. In Hamburg, Wolfsburg, Augsburg, Werder Bremen and Mainz, the Bundesliga has a fascinating relegation fight on its-hands --even Europa League quarterfinalists Schalke-are not out of the woods yet. Yet despite having survived-the relegation play-off in two of the last three seasons, Hamburg look best placed to avoid it this year. Hamburg's home form At face value, Saturday's 0-0 draw away at Eintracht Frankfurt makes Hamburg look like the biggest losers on matchday 25 but Markus Gisdol's side still hold all the cards in this fight. ""Belief, love, hope"" - Hamburg fans are backing their team to beat the drop Going into matchday 25, Hamburg were second in the table in the-second half of the season - with 13 points from seven games.-The fact that Gisdol highlighted ""room for improvement"" after a point away at a top-seven side says it all about current levels of expectation on the banks of the Elbe. Unbeaten in seven league games at the Volksparkstadion, Hamburg's home form is already providing a strong foundation ahead of a favorable run-in. If they can stay in contention after games against Cologne, Dortmund and Hoffenheim, Hamburg finish the campaign with games against all six relegation rivals. Six six-pointers in which they can directly take points from the sides around them-- who face teams predominantly in the top half. Pulling together Hamburg's 8-0 demolition away at Bayern Munich in February made headlines for obvious reasons,-but the reaction to the defeat from all at the club-has been-telling. DW's Matt Ford is backing Hamburg to save themselves again Rather than turn against the team, which they had every right to do, Hamburg's hardcore supporters wrote an open letter to the players and the management, assuring them of their support. ""This team doesn't just consist of eleven players, but of all of us,"" they wrote. ""The directors, the players, the management, the staff - and the fans. So let's work together - you on the pitch, us in the stands. Let's show every opponent that we always have a man extra! Make us proud as only you can!"" The letter was read out in the dressing room and has imbued a fighting spirit in this Hamburg side. On-loan defender Kyriakos Papadopoulos best embodies this - the Greek has become the team's leader in word and deed. Rivals in trouble In Bremen, rivals Werder are also hitting form at just the right time. Alexander Nouri's team were unbeaten in four before their win against RB Leipzig, and they've also scored ten more goals than any of their rivals. Wolfsburg are making steady progress under confident Dutchman Andries Jonker-, but were unconvincing in their 1-0 win over Darmstadt and are perhaps over-reliant on Mario Gomez. Augsburg are perhaps in the most danger. Following their 1-1 draw at home to Freiburg, Manuel Baum's team have only won one of their last six games and their run-in doesn't get any easier with seven top-half sides including Bayern Munich, Borussia Dortmund and Hoffenheim still to come. What's more, it's not a good sign when a team's top scorer-is a left back-(Konstantinos Stafylidis). Whoever ends up in that relegation play-off in May will face the toughest test in years as a spirited batch of-second-division teams equally play their part.-However, given their home form, fixture list, and fans, Hamburg should be safe by then.", -2985,2017/3/18,http://www.dw.com/en/kurdish-supporters-hold-new-year-rally-in-frankfurt/a-38010017?maca=en-rss-en-all-1573-rdf,Thousands of Kurds protest Turkey in Frankfurt,"Thousands of Kurds rallied against Turkey in Frankfurt. Turkey condemned the protest as a sign of Germany's support for ""terrorism.""","More than 30,000 Kurds marched through the streets of Frankfurt on Saturday calling for democracy in Turkey and a ""no"" vote in next month's referendum on dramatically expanding Turkish President Recep Tayyip Erdogan's powers. Under the slogan ""No to dictatorship - Yes to democracy and freedom,"" the rally was meant to mark the Kurdish New Year, or Newroz, traditionally celebrated on the first day of spring. - Protesters chanted ""terrorist Erdogan"" and ""freedom for Ocalan,"" in reference to Abdullah Ocalan, the jailed leader of the Kurdistan Workers'-Party (PKK), which has fought a three decades-long war against the Turkish state for autonomy and greater rights. -- Several hundred police officers were deployed at what they described as peaceful rally. Police asked participants-to stop displaying Ocalan flags, which were recently banned, and then announced they would make video recordings. They said no flags were confiscated in order to not provoke protestors. ""Europe-should listen to us and help us,"" one Kurdish protestor told DW at the rally. ""The best way is to impose economic sanctions on Turkey."" People held placards with the slogan 'No to dictatorship' ""We are afraid that the situation for the Kurds in Turkey will get worse and that we will face more problems,"" a man who did not want to give his first name told DW. ""That's why we're going on the streets today, we want to demonstrate for the Kurds and show what we think of the referendum."" Turkey condemned the German government, accusing it of allowing a terrorist group to hold a rally when Turkish ministers have been restricted from campaigning in several European countries for the April 16 referendum. ""Allowing a terror organization to protest and chant slogans about a referendum in our country while creating difficulties for parliamentarians to meet with the Turkish community constitutes a serious double standard,"" the foreign ministry said in a statement. The PKK is designated as a terrorist group by Turkey, the European Union and United States. It has been banned in Germany since 1993. Turkey has repeatedly accused Germany of supporting the PKK, which has tens of thousands of followers across Europe. Berlin denies the charges and regularly prosecutes PKK operatives. The rally combined a traditional new year celebration and poltiical protest The protest is likely to further strain ties between Berlin and Ankara, already under pressure after several Turkish ministers have been blocked from campaigning in Germany for next month's referendum. -Some 1.4 million Turks in Germany are eligible to vote in referendum, including many Kurds. Adding to tensions, Germany's ""Die Welt"" newspaper correspondent Deniz Yucel has been in detention in Turkey since last month on ""terrorism"" charges critics say are politically motivated. Next month's referendum will be held under a state of emergency under which dozens of elected Kurdish mayors and 13 Kurdish lawmakers have been arrested. The Turkish opposition accuses the government of restricting campaigning for a ""no"" vote amid a media landscape dominated by pro-government mouthpieces. Peace talks and a ceasefire between the PKK and Turkish state collapsed in 2015, triggering some of the worst violence since the 1990s. Earlier this month, a UN human rights body accused the Turkish military and police of killing hundreds of civilians, displacing more than a half a million people and carrying out torture, rape and extrajudicial killings in its prosecution of its renewed war against the PKK between July 2015 and the end of 2016.- cw/xx (AFP, Reuters)", -2986,2017/3/18,http://www.aljazeera.com/programmes/insidestory/2017/03/eta-independence-170318201618131.html,Has ETA given up on independence?,ETA group said it was ready to hand over weapons to the Spanish government.,"The Basque separatist group ETA has announced its decision to lay down its weapons by April 8. The arrest of many of its leaders has weakened the organisation and the disarmament could lead to ETA being dissolved altogether. Hundreds of people have been killed during the decades-long fight for an independent Basque state. Car bomb explosions and shootings targeted police, politicians and businessmen. But as the police fought back and squeezed ETA's operations, the group has been forced to give up its violent campaign. It also lost public support. Six years ago, ETA's leaders declared they would cease their armed struggle, but did not surrender weapons. Spain's prime minister says the latest disarmament announcement should be unilateral. Is it the end of their separatist fight? Presenter: Dareen Abughaida Guests: Paddy Woodworth - journalist and expert on Spanish and Basque issues Ramon Pacheco Pardo - senior lecturer at Kings College Kristian Herbolzheimer - director at Conciliation Resources Urko Aiartza - former senator of the Bildu pro-independence Basque coalition Source:-Al Jazeera News", -2987,2017/3/19,http://www.aljazeera.com/news/2017/03/police-displace-thousands-nigeria-otodo-gbame-slum-170318190442226.html,Police displace thousands in Nigeria's Otodo-Gbame slum,"Police demolish the homes of more than 4,700 people in Lagos' Otodo-Gbame as they clear area in defiance of court order. 'No other place to go' 'We have to rebuild'","Thousands of people fled Nigeria's largest informal fishing settlement on Friday as security forces used gunfire and tear gas to make way for demolitions in defiance of a recent court order, rights groups said, describing it as a ""violation of human rights"". The homes of nearly 4,700 people in the Otodo-Gbame community in Lagos were destroyed on Friday, despite a previous court order that halted such evictions, according to Amnesty International and Lagos-based group, Justice and Empowerment Initiatives (JEI). Speaking to Al Jazeera by phone, Otodo-Gbame residents said they had no warning their homes were going to be demolished. ""We were so surprised. We didn't know where they came from"", Paul Kunnu said. ""They pulled down everything.""- READ MORE: Nigeria: Fishermen and chiefs Another resident, Ahisu Celestine, said he and other community members woke up to the presence of Nigerian authorities and bulldozers on Friday. ""We tried to block the way"", Celestine said. ""They started shooting tear gas"", he added, saying there were dozens of police present. Megan Chapman, co-director of JEI, who arrived at the community shortly after the demolitions began, told Al Jazeera that police used live bullets to disperse the crowds. Authorities were not available for comment on the incident. The Otodo-Gbame community is one of many informal settlements along the Nigerian commercial hub's waterfront. In November of last year, an estimated 30,000 residents from the community were evicted to make way for development projects, rights groups said. But after a court injunction issued in January halted evictions, many of the residents, including Celestine and Kunnu, decided to rebuild. ""We don""t have any other place to go,"" Celestine told Al Jazeera. ""We are a fisherman community and have been here for hundreds of years."" Chapman, who has been working with the community in mediation efforts with the government, echoed Celestine's sentiment. ""Residents don""t really have any options. It's an ancestral community. Many of the people in the settlements are fishermen and fisherwomen. They are among Lagos""?urban poor and there isn""t an alternative for them to move some place else."" Following the November 2016 eviction, rights groups warned that more than 300,000 people faced eviction from waterfront communities across Lagos State. Makshift housing is common in the poorest parts of Lagos, a city of more than 21 million people. Thousands from across Nigeria and neighbouring countries arrive daily in search of work.- Both Kunnu and Celestine told Al Jazeera they will remain in-Otodo-Gbame.- ""We have to rebuild. We don't have anywhere else to go. This is our home,"" Kunnu said.- Celestine also called on the international community for help.- ""We want international communities to help us, the poor,""?he said. ""It is a not a crime for poor people to live where rich men are."" Additional reporting by Laurin-Whitney Gottbrath-@ElleDubG- Source:-Al Jazeera and news agencies", -2988,2017/3/18,http://www.rte.ie/entertainment/2017/0318/860807-chuck-berry-death/,Pioneer musician and composer Chuck Berry dies,,"US singer and composer Chuck Berry, one of the pioneers of rock-and-roll, has died at 90. He was found dead at his home in Missouri, according to St Charles County police in a statement posted on Facebook. The singer-guitarist was known for such hit singles as ""Johnny B. Goode,"" ""Roll Over Beethoven"" and ""Sweet Little Sixteen"". He is regarded as one of the biggest influences on pre-Beatles pop. He was present in rock's infancy in the 1950s and emerged as its first star guitarist and lyricist. He was a monumental influence on just about any kid who picked up a guitar with rock star aspirations - Keith Richards, Paul McCartney, John Lennon and Bruce Springsteen among them. Bob Dylan called Mr Berry ""the Shakespeare of rock'n'roll,"" and he was one of the first popular acts to write as well as perform his own songs. They focused on youth, romance, cars and good times, with lyrics that were complex, humorous and sometimes a little raunchy. Both the Beatles and the Rolling Stones, as well as the Beach Boys and scores of others acts - even Elvis - covered Mr Berry's songs. ""If you tried to give rock'n'roll another name,"" John Lennon once said, ""you might call it 'Chuck Berry'."" When Keith Richards inducted Mr Berry into the Rock and Roll Hall of Fame in 1986, he said: ""It's very difficult for me to talk about Chuck Berry because I've lifted every lick he ever played. This is the gentleman who started it all."" Mr Berry said he performed his signature bent-knee, head-bobbing ""duck walk"" across more than 4,000 concert stages. Chuck Berry pictured in 1965 Born in St Louis in October 1926, he attempted to emulate his musical heroes including Nat King Cole and Muddy Waters, according to the biography on his Facebook page. A police spokesperson-said paramedics tried to administer ""lifesaving techniques"" on the singer and guitarist but he could not be revived. ""The family requests privacy during this time of bereavement,"" the spokesperson added. Chuck Berry. Maybe the most important figure in all of rock and roll. His music and his influence will last forever. - Huey ""?Huey Lewis (@Huey_Lewis_News) March 18, 2017 He was found at his home in Buckner Road, in Wentzville, just outside his birthplace.", -2989,2017/3/18,http://www.rte.ie/news/business/2017/0318/860799-us-g20-trade/,US issues trade challenge at fraught G20,,"The United States has challenged long-standing global principles surrounding free trade, refusing to renew past anti-protectionist pledges and threatening to reopen negotiations on World Trade Organization deals. In an early taste of what Donald Trump's ""America First"" push spells for the world, finance ministers from the G20 group of developed and emerging nations failed to get Washington to sign-off on a pledge to reject protectionism in a closing statement. Commitments of support to the existing multilateral trade system, including the World Trade Organization (WTO), were also conspicuously missing from the final communique. And an entire section on action against climate change was dropped, sparking dismay among America's partners as well as environmental activists. Treasury Secretary Steven Mnuchin shrugged off the outcry, saying the ""historical language"" was not relevant. ""What is relevant is what we agreed as a group: to strengthen the contributions of trade to our economies,"" he said. ""We will strive to reduce excess global imbalances to promote inclusiveness and fairness and reduce inequality,"" he added, stressing that what Washington seeks is ""free and fair trade"" that is good for both Americans and the world. But trade deals that currently exist are not always balanced, he said, warning that Washington will not hesitate to renegotiate them. ""We want to reexamine certain agreements, we have talked about reexamining NAFTA,"" he told journalists, referring to the North American Free Trade Agreement between Canada, Mexico and the United States. ""We think there are parts of the WTO that are not being enforced, and will look to aggressively enforce things in the interest of American workers,"" he added. ""To the extent the agreements are old agreements and need to be renegotiated, we'll consider that as well."" Carried to power on the back of a political storm over deindustrialisation in vast areas of the US, Mr Trump vowed in his inauguration speech to ""follow two simple rules: buy American and hire American."" His strategy includes threats to penalise companies that manufacture abroad by heavily taxing their products. Since taking office, Mr Trump has withdrawn the US from a trans-Pacific free trade pact and attacked export giants China and Germany over their massive trade surpluses. His stance has been condemned by Washington's trading partners, and led China-to issue a stern warning against sparking a trade war. G20 ministers held a two-day meeting in Germany Mr Trump himself insisted at a tense Washington press conference Friday, following his first meeting with German Chancellor Angela Merkel, that ""I'm a free trader but also a fair trader"". He rejected a description of his policies as ""isolationist"". French Finance Minister Michel Sapin expressed ""regret that our discussions today were unable to reach a satisfying conclusion on two absolutely essential priorities,"" trade and climate. ""Our world and France would have liked to see the G20 continue to take firm and concerted action,"" he added. Host German Finance Minister Wolfgang Sch?uble however struck a conciliatory tone, suggesting that Mr Mnuchin was not empowered to act on some issues. And IMF chief Christine Lagarde said the new White House simply needed time to ""adapt and learn"". The US treasury chief himself acknowledged that environmental issues such as the 2015 Paris agreement were ""not in my track"". ""President Trump is looking at the Paris treaty and other treaties and the administration will have views on that as they consider their policies,"" Mr Mnuchin said, adding that was ""more of an issue for G20 leaders and less of an issue for finance ministers"". But activists say the exclusion of climate marked a new setback for environmental action, after Mr-Trump proposed to take an axe to green financing. Under his first national budget proposal, he suggested cutting financial resources for the Environmental Protection Agency (EPA) by a third, as well as eliminating contributions linked to UN climate change programmes. On the campaign trail, Mr Trump had threatened to pull the US out of the Paris Accord on combating climate change. Greenpeace East Asia's Li Shuo blamed Washington for a G20 statement that he said showed a ""lack of attention to climate change"". ""Other countries should not allow this to happen again,"" he added. EU Economy Commissioner Pierre Moscovici acknowledged that ""it was a complicated meeting with a temporary conclusion that could be better but we are working on it. ""And I hope for a better conclusion in four months in Hamburg,"" he said, adding that given it was the ""first contact with this new administration, it would have made no sense to enter into a fight.""", -2990,2017/3/18,http://abcnews.go.com/US/louisiana-sheriffs-deputy-shot-killed-conducting-investigation/story?id=46234587,Louisiana sheriff's deputy shot and killed in the line of duty,,"A Louisiana sheriff's deputy was fatally shot late Saturday night while conducting an investigation, the East Baton Rouge Sheriff's Office and Louisiana State Police confirmed. The deputy was conducting an investigation near a barber shop in East Baton Rouge when shots were fired, Louisiana State Police spokesman Bryan Lee said at a press conference early Sunday morning. The deputy's name has not yet been released. The suspect was also shot, and is being treated at local hospital, Lee said. ""It's a tragic night for the East Baton Rouge Sheriff's Office, one of our deputies has been shot and killed,"" East Baton Rouge Sheriff's Office spokeswoman Casey Rayborn Hicks said at the press conference. ""Right now Sheriff Gautreaux is with the family. We are focused on working with the family, praying for the family and making sure our deputies have the help and support they need."" Mayor-President of East Baton Rouge Parish and the City of Baton Rouge Sharon Weston Broome, also at the press conference, said ""this is certainly a tragedy for the community."" Louisiana State Police, who were contacted shortly before midnight to investigate the shooting, are leading the investigation. ABC News' Matt Foster contributed to this report.", -2991,2017/3/18,http://abcnews.go.com/US/individual-detained-secret-service-checkpoint-white-house/story?id=46233984,Individual driving 'suspicious' vehicle detained at Secret Service checkpoint near White House,,"An individual who drove up to a Secret Service checkpoint near the White House Saturday night has been detained after his vehicle was determined to be ""suspicious,"" the Secret Service said in a statement. It was the second security-related incident near the White House on Saturday. ""On March 18, 2017 at approximately 11:05 pm, an individual drove a vehicle up to a Secret Service checkpoint located at 15th Street and E Street NW,"" reads the statement. ""Upon contact with the individual, U.S. Secret Service Uniform Division Officers detained the individual and declared his vehicle suspicious."" The statement continues, ""In accordance with proper protocols, Secret Service personnel increased their posture of readiness."" Because this is incident is an ongoing criminal investigation, the Secret Service said it will not provide any further details at this time. Earlier in the day, a man was detained after hopping over a bike-rack barrier along the north fence of the White House, sources familiar with the incident told ABC News. The person did not make it over the White House fence, sources said. Sources said he wanted to deliver a letter to someone in the Trump administration. Individual jumped bike rack on Pennsylvania Ave, not @WhiteHouse fence. Great response by @SecretService And on March 10, an intruder scaled a White House fence. The Secret Service said Friday that last week's intruder was on the grounds for approximately 16 minutes before he was arrested. ABC News' Emily Shapiro contributed to this report.", -2992,2017/3/18,http://abcnews.go.com/Politics/vp-mike-pence-calls-conservatives-support-gop-health/story?id=46233079,VP Mike Pence calls on conservatives to support GOP health care bill,,"Ahead of a key vote on Capitol Hill, Vice President Mike Pence called on skeptical Republicans to get behind the GOP health care bill in remarks to conservative donors and members of Congress Saturday night. Speaking at the Club for Growth's dinner at the Breakers Resort in Palm Beach, Florida, Pence said the new Republican plan represented ""the kinds of solutions conservatives have been talking about for years,"" and promised to work with lawmakers to improve the legislation. ""Let me be blunt, we need your help,"" he said to conservatives of the American Health Care Act, which the House is expected to take up on Thursday. He addressed a crowd of roughly 140 people, including Reps. Mark Meadows, R-North Carolina, and Raul Labrador, R-Idaho, leaders of the hard-right House Freedom Caucus that have called for substantial changes to the American Health Care Act before they can support it on Capitol Hill. ""I know there have been concerns,"" Pence said. ""Just know the president and I and the entire administration are listening."" Earlier in the day, Pence, joined by Republican Florida Governor Rick Scott, met with small business owners about Obamacare and the Republican plan to repeal and replace the law at Mac Papers Envelope Converters in Jacksonville. On Friday, President Trump met with members of the Republican Study Committee, a large and influential group of House Republicans, and agreed to adjust the health care proposal to allow states to impose work requirements for Medicaid recipients and change the way the federal government transmits Medicaid payments to the states. Still, members of the Freedom Caucus are pushing for additional changes to address premiums and adjust the proposal's refundable tax credits that would help people pay for insurance. They also want to phase out the Affordable Care Act's Medicaid expansion before 2020, which moderate Republicans consider a non-starter. Pence also said the White House would follow through on tax reform and work to roll back Dodd-Frank financial regulations. While Pence has longstanding ties to the Club for Growth, the free-market advocacy group initially opposed the proposed health care legislation, and was also critical of Trump during the presidential campaign. On Saturday, Pence argued that the organization and the White House share the same goals. ""We have a pro-growth House, a pro-growth Senate and a pro-growth president of the United States of America,"" he said. ", -2993,2017/3/18,http://abcnews.go.com/International/russia-orders-check-american-media-country-retaliation-us/story?id=46227561,Russia orders check of American media in the country in retaliation for U.S. bill,,"The Russian parliament has ordered a check of U.S. media outlets operating in the country, in retaliation for what it said was an attack on Russian media in the United States. The parliament's lower house, the State Duma, called for its information and telecoms committee to examine whether the activity of CNN, Voice of America, Radio Free Europe, and other U.S. outlets is ""in accordance with Russian legislation,"" a press release published on the body's website read. The announcement didn't specify which other outlets could be targeted. Voice of America is a federal government broadcaster, while Radio Free Europe/Radio Liberty is a private non-profit, funded by a Congressional grant. Both were set up to combat Soviet propaganda during the Cold War. The lawmaker who instigated the order, Konstantin Zatulin, from the country's ruling party, United Russia, said the check was a response to calls from American politicians for a probe into Russian state outlets accused of interfering in the U.S. presidential elections, in particular the Kremlin-funded broadcaster, RT. Zatulin pointed specifically to Sen. Jeanne Shaheen, D-New Hampshire, who this week introduced a bill to Congress that would grant the Department of Justice new authority to investigate RT, for possible violations of the Foreign Agents Registration Act. RT, previously known as Russia Today, is Russia's main international broadcaster and has been accused of being at the center of Kremlin propaganda efforts in the U.S. and Europe. A declassified U.S. intelligence report on Russian efforts to influence the U.S. presidential election released in December described RT as playing a key role in a disinformation campaign meant to harm Democratic candidate Hillary Clinton and to sow doubts about the election's fairness. During the elections, RT focused heavily on negative stories around Clinton, often pushing reports that had been repeatedly discredited. ""We have good reason to believe that RT News is coordinating with the Russian government to spread misinformation and undermine our democratic process,"" Shaheen said in a statement unveiling the bill. The Foreign Agents Registrations Act that Shaheen suggested RT may be violating requires individuals or entities hired to act in a ""political or quasi-political capacity"" on behalf of foreign governments to register. The Kremlin makes no attempt to conceal that RT's funding is from Russia's state budget, which is published openly, but RT argues it is not directly funded because the money come through a separate company. ""RT News has made public statements boasting that it can dodge our laws with shell corporations, and it's time for the Department of Justice to investigate,"" Shaheen said.- Zatulin, the Russian lawmaker, called the move ""repressive."" Russia's foreign ministry has accused the U.S. of succumbing to anti-Russian hysteria, resembling the McCarthy era. ""Times are being reborn in the U.S. when Donald Duck and Mickey Mouse are considered agents of the Kremlin,"" Zatulin said. The U.S. intelligence report was criticized by many U.S. observers for disproportionately focusing on RT: The largest part of the report was taken up with an annex describing the broadcaster's work. RT's actual influence in the U.S. is debatable. An RT spokesperson claimed to the Washington Post in January, the channel had 8 million viewers weekly in America. But documents allegedly leaked from Russia's state-media holding, Ria Novosti, said RT's daily programming in 2015 did not get more than 30,000 viewers. RT is not in the top 100 cable networks.", -2994,2017/3/18,http://abcnews.go.com/International/wireStory/north-korea-tests-newly-developed-high-thrust-rocket-46231680,North Korea tests newly developed high-thrust rocket engine,,"North Korea has conducted a ground test of a new type of high-thrust rocket engine that leader Kim Jong Un is calling a revolutionary breakthrough for the country's space program, the North's state media said Sunday. Kim attended Saturday's test at the Sohae launch site, according to the Korean Central News Agency, which said the test was intended to confirm the ""new type"" of engine's thrust power and gauge the reliability of its control system and structural safety. Kim called the test ""a great event of historic significance"" for the country's indigenous rocket industry, the KCNA report said. He also said the ""whole world will soon witness what eventful significance the great victory won today carries"" and claimed the test marks what will be known as the ""March 18 revolution"" in the development of the country's rocket industry. The report indicated that the engine is to be used for North Korea's space and satellite-launching program. North Korea is banned by the United Nations from conducting long-range missile tests, but it claims its satellite program is for peaceful use, a claim many in the U.S. and elsewhere believe is questionable. North Korean officials have said that under a five-year plan, they intend to launch more Earth observation satellites and what would be the country's first geostationary communications satellite ""?which would be a major technological advance. Getting that kind of satellite into place would likely require a more powerful engine than its previous ones. The North also claims it is trying to build a viable space program that would include a moon launch within the next 10 years. The test was conducted as U.S. Secretary of State Rex Tillerson was in China on a swing through Asia that has been closely focused on concerns over how to deal with Pyongyang's nuclear and missile programs. It's hard to know whether this test was deliberately timed to coincide with Tillerson's visit, but Pyongyang has been highly critical of ongoing U.S.-South Korea wargames just south of the Demilitarized Zone and often conducts some sort of high-profile operation of its own in protest. Earlier this month, it fired off four ballistic missiles into the Sea of Japan, reportedly reaching within 200 kilometers (120 miles) of Japan's shoreline. Japan, which was Tillerson's first stop before traveling to South Korea and China, hosts tens of thousands of U.S. troops. While building ever better long-range missiles and smaller nuclear warheads to pair with them, North Korea has marked a number of successes in its space program. It launched its latest satellite ""?the Kwangmyongsong 4, or Brilliant Star 4 ""?into orbit on Feb. 7 last year, just one month after conducting what it claims was its first hydrogen-bomb test. It put its first satellite in orbit in 2012, a feat few other countries have achieved. In 2013, rival South Korea launched a satellite into space from its own soil for the first time, though it needed Russian help to build the rocket's first stage.", -2995,2017/3/19,http://abcnews.go.com/International/wireStory/tillerson-lauds-china-us-contacts-meeting-leader-xi-46233583,Tillerson lauds China-US contacts in meeting with leader Xi,,"The United States is looking forward to the first meeting between President Donald Trump and his Chinese counterpart, Xi Jinping, Secretary of State Rex Tillerson said Sunday, on the final day of a swing through Asia dominated by concerns over North Korea's nuclear and missile programs. In talks with Xi in Beijing, Tillerson said Trump places a ""very high value"" on communications with the Chinese president. Trump looks forward to ""the opportunity of a visit in the future,"" Tillerson said, in an apparent reference to unconfirmed reports of plans for the two leaders to meet in Florida next month. While few details of his talks have been released, Tillerson appeared to strike a cordial tone during his meetings in Beijing, in contrast to Trump's tough talk on Chinese economic competition during his presidential campaign. Xi told Tillerson that China considered his meetings Saturday with Foreign Minister Wang Yi and top diplomat Yang Jiechi to have been productive and constructive. ""Both (Trump) and I believe that we need to make joint efforts to advance China-U.S. cooperation and we believe that we can make sure the relationship will move ahead in a constructive fashion in the new era,"" Xi said. Tillerson's Beijing visit followed his remarks in South Korea on Friday that pre-emptive military action against North Korea might be necessary if the threat from its weapons program reaches a level ""that we believe requires action."" China, the North's biggest source of diplomatic support and economic assistance, hasn't responded directly to those comments, although Beijing has called repeatedly for all sides to take steps to reduce tensions. China has agreed reluctantly to U.N. Security Council resolutions sanctioning North Korea, but is adamantly opposed to measures that might bring about a collapse of North Korean leader Kim Jong Un's regime. Beijing fears Kim's fall would send waves of refugees into northeastern China and see South Korean and American forces taking up positions along its border. Beijing's patience with Pyongyang appears to be growing thin, however. Last month, China potentially deprived Kim's regime of a crucial source of foreign currency by banning imports of North Korean coal for the rest of the year.", -2996,2017/3/19,http://abcnews.go.com/Entertainment/legendary-musician-chuck-berry-dead-90/story?id=46228597,Legendary musician Chuck Berry dead at 90,,"Chuck Berry, one of the creators of rock and roll, has died, according to police. He was 90. St. Charles County, Missouri, police said Saturday they responded to a medical emergency on Buckner Road at approximately 12:40 p.m. Inside the home, first responders found an unresponsive man, but despite immediately administering lifesaving techniques, the 90-year-old man could not be revived. He was pronounced dead at 1:26 p.m., police said. The St. Charles County Police Department identified him as Charles Edward Anderson Berry Sr., better known as Chuck Berry. A statement on Berry's Facebook page said he ""spent his last days at home surrounded by the love of his family and friends."" The rock legend had announced in October, on his 90th birthday that he was releasing a new album. The album, titled ""Chuck,"" was to debut in 2017. It was his first new album in 38 years. The ""Johnny B. Goode"" musician recorded the project in his native St. Louis with his longtime backing group, which includes his children Charles Berry Jr. and Ingrid Berry. In a statement, Berry dedicated the album to his wife of 68 years, Themetta Berry, whom he refers to by her nickname, ""Toddy."" ""My darlin""?I'm growing old! I""ve worked on this record for a long time. Now I can hang up my shoes!"" he said. Born Charles Edward Anderson Berry October 18, 1926 in St. Louis, Missouri, Berry popularized rock and roll with 1950s hits including ""Rock and Roll Music,"" ""Johnny B. Goode,"" ""Roll Over Beethoven"" and ""Maybellene,"" fusing blues, rockabilly and R&B into a sound that helped define the genre, coupled with guitar virtuosity and showmanship that was emulated by countless performers in the decades after. He directly influenced the early music of The Beatles, The Rolling Stones, The Beach Boys and The Kinks. Not surprisingly, Berry was among the first group of performers inducted into the Rock & Roll Hall of Fame in 1986. Among his many other accolades, Berry received a Grammy Lifetime Achievement Award in 1984, was recognized at the Kennedy Center Honors in 2000 and was presented with Sweden's prestigious Polar Music Prize in 2014. Berry also performed at inauguration events for both of Bill Clinton's presidencies. ""Hillary and I loved Chuck Berry for as long as we can remember,"" the former president said in a statement Saturday night. ""The man was inseparable from his music ""? both were utterly original and distinctly American. He made our feet move and our hearts more joyful. And along the way he changed our country and the history of popular music. Chuck played at both my inaugurations and at the White House for my 25th Georgetown reunion, and he never slowed down, which is why his legend grew every time he stepped on stage. His life was a treasure and a triumph, and he'll never be forgotten. Our hearts go out to his family and his countless friends and fans."" Chuck Berry's life was a treasure and a triumph, and he'll never be forgotten. https://t.co/3Q7z0NatUd Berry's music even made it into outer space -- his 1958 hit ""Johnny B. Goode"" is the only rock and roll song included on the so-called ""Golden Record"" affixed to the Voyager spacecraft that was launched into the cosmos in 1977. Speaking with ABC News a few years ago, Berry was asked to name the favorite songs he's written, but he said he couldn't choose one. ""Every one of them is tops with me,"" he said. ""Every one of my children the same way."" ABC Radio's Chris Watson contributed to this report.", -2997,2017/3/19,http://abcnews.go.com/Entertainment/music-world-remembers-chuck-berry/story?id=46231048,Music world remembers Chuck Berry,,"Some of the music world's biggest stars tweeted tonight singing the praises of one of the legends of rock 'n' roll, Chuck Berry, who died today at the age of 90. Bruce Springsteen, Ringo Starr, Questlove, Slash, Mick Jagger and others remembered Berry for his guitar style, his lyrics, and his inspiration. I am so sad to hear of Chuck Berry's passing. I want to thank him for all the inspirational music he gave to us. 1/3 pic.twitter.com/9zQbH5bo9V Chuck Berry was rock's greatest practitioner, guitarist, and the greatest pure rock 'n' roll writer who ever lived. Just let me hear some of that rock 'n' roll music any old way you use it I am playing I'm talking about you. God bless Chuck Berry Chuck ?? pic.twitter.com/XmwmaGzGpL Thou Shall Have No Other Rock Gods Before Him #ChuckBerry rip @ Rock & Roll Hall of Fame https://t.co/bU22p2cywb Heart broken to hear of the passing of Chuck Berry. He was undisputedly the king. A moment of""?https://t.co/sR8A2YMnq0 RIP Chuck Berry !!!! Thank you for the poetry, the passion and the potency! GO JOHNNY GO. - KU He had a gtr style that influenced so many generations of players. Oh yes and how to write a great RnR song. Rest in peace dear Chuck https://t.co/bWQogYSyqw Chuck Berry merged blues & swing into the phenomenon of early rock'n'roll. In music, he cast one of the longest shadows. Thank You Chuck. pic.twitter.com/0TwpdDmw9e ", -2998,2017/3/18,http://www.cnn.com/2017/03/19/politics/china-rex-tillerson-xi-jinping/index.html,"Xi Jinping, Rex Tillerson pledge cooperation over 'regional hotspots'","Beijing (CNN)Chinese President Xi Jinping met with US Secretary of State Rex Tillerson on Sunday morning in Beijing, urging strengthened bilateral cooperation and ""appropriate handling"" of sensitive issues.","Xi told Tillerson that there are far more shared interests between the two countries than disputes, emphasizing the need for more communication and coordination on matters involving ""regional hotspots,"" according to a statement released by the Chinese foreign ministry. The meeting occurred hours after North Korea claimed success in testing a new type of rocket engine. North Korean leader Kim Jong Un oversaw a successful test of a high-thrust engine, state-run KCNA reported early Sunday, saying the event had ""historic significance"" that could lead to the ""new birth"" of the country's indigenous rocket industry. Beijing was Tillerson's final stop on his first official trip to Asia, which also included visits to Japan and South Korea. The trip followed a string of North Korean missile launches, escalating tensions on the Korean Peninsula and prompting fears that Pyongyang is preparing for another nuclear test. North Korea's only ally China is Pyongyang's only major global ally, with bilateral trade accounting for 70% of North Korea's total of the country's trade, providing a political and economic lifeline to Kim's increasingly isolated regime. US President Donald Trump has repeatedly called on Beijing to use its leverage over its unpredictable neighbor. He singled out China again Friday, tweeting, ""North Korea is behaving very badly. They have been 'playing' the United States for years. China has done little to help!"" Despite earlier warning that all options -- including military action -- remained on the table in dealing with Pyongyang, Tillerson refrained from the harsh language that he had used in Tokyo and Seoul upon arriving in Beijing. After meeting his Chinese counterpart, Foreign Minster Wang Yi, on Saturday, the top US diplomat stressed ""renewed determination"" by Beijing and Washington to ""work together to convince the North Korean government to choose a better path and a different future for its people"" -- without giving details. Although neither side brought up the subject publicly, Tillerson was expected to raise the prospect of financial penalties on Chinese companies and banks that do business with North Korea. ""The Trump administration is banking that threats of US military action in South Korea and tougher sanctions on Chinese entities will intimidate Beijing into changing its policies,"" said Ashley Townshend, a research fellow at the United States Studies Center at the University of Sydney. On the trip, Tillerson has signaled a new approach toward North Korea, saying that Washington's policy of ""strategic patience"" over the past 20 years aimed at halting North Korea's nuclear development was a failure. Between the US and North Korea Beijing, however, has been irked by calls that it isn't doing enough to lessen tensions in the region. Wang said China had made ""important contributions"" to supporting US engagement with Pyongyang but stressed it was, at its core, an issue between the United States and North Korea. An un-bylined opinion piece Friday in the Global Times, a Chinese state-run tabloid, made a similar point. ""Washington and Seoul are trying to shift all the burden of solving the North Korean nuclear issue onto China and include China into their strategy toward Pyongyang,"" it said. ""But that way, China and North Korea will become enemies, further complicating the conflict. The North Korean nuclear issue is caused by Washington-Pyongyang confrontation, to which China has no obligation to shoulder all the responsibilities."" Wang reiterated the Chinese position that the US should ""come back to the right track of a negotiated settlement."" He also said that he hoped Washington would examine Beijing's plans to defuse tensions, although Tillerson has already dismissed the proposal that the US should drop joint military exercises with South Korea as a show of good faith to Pyongyang. Tillerson said Friday that Washington did ""not believe that conditions are right to engage in any talks at this time."" However, he left the door open Saturday, saying he would work with China to ""bring North Korea to a different place where we are hopeful we can begin a dialogue."" Trump and Xi to meet? Tillerson was also in Beijing to iron out the details of a tentative summit between Presidents Trump and Xi in Florida in April. It would be the first meeting between the two men, whose interactions would affect what many consider the world's most important diplomatic relationship. The Chinese foreign ministry statement quoted Tillerson as saying that Trump expected the two leaders to meet ""as soon as possible"" but did not confirm the April summit. Xi also invited Trump to visit China, it added. Despite fiery rhetoric on the campaign trail and prior to his inauguration, Trump and his administration have taken a relatively hands-off approach to China so far. Trump has not followed through on campaign threats to label China a currency manipulator or impose steep tariffs on Chinese imports. He also endorsed the ""One China"" policy, which has governed delicate relations between the United States, China and Taiwan for decades -- after questioning its legitimacy shortly after his election.", -2999,2017/3/19,http://www.cnn.com/2017/03/17/opinions/us-north-korea-policy-opinion/index.html,The US might have a new North Korea policy,Jonathan Cristol is a fellow at World Policy Institute and a senior fellow at the Center for Civic Engagement at Bard College. You can follow him @jonathancristol. The views expressed in this commentary are his.,"He said: ""Let me be very clear: the policy of strategic patience has ended."" Tillerson also eliminated the possibility of negotiating with North Korea before it has ""given up its weapons of mass destruction,"" and did not rule out military action if the US believes Pyongyang's weapons program advances too far. Tillerson's statements are not as radical as they seem, but there is still no visible coherent strategy for the region. ""Strategic patience"" was the Obama-era policy toward North Korea. ""Strategic patience"" seems similar to ""doing nothing,"" but that is only true in a vacuum. Obama clearly supported the US alliance with South Korea, supported the free trade agreement with South Korea, and approved the deployment of the THAAD missile defense system that got underway last week. In the new Trump era, when the President devalues the US-South Korea alliance, the Obama policy looks much more sound. There is no chance that North Korea will eliminate its nuclear program as a precondition to negotiations. Tillerson must know this, and so he is ending the possibility of negotiations. This is also not an unreasonable proposition. North Korea is not going to give up its nuclear weapons -- it is the only thing that keeps the regime alive. The nuclear program is even more important than the relationship with China. But even if North Korea did agree to give up its weapons, it would take an almost unimaginably intrusive inspections regime to insure that Pyongyang did not violate its obligations. Critics may say that people said the same thing about Iran, but the situation is different for two key reasons. First, despite what you may read, the Iranian government cares about its own people. Second, Iran wanted to rejoin the international community, while North Korea prefers to hide from it. Tillerson's statement about a preemptive strike on North Korea presents another bad alternative. It once again calls into question America's commitment to its alliances. The implication is that Pyongyang's ability to reach American targets is unacceptable; but it can already strike South Korea, which we are obligated to defend. The time for a preemptive strike ended when North Korea detonated its first nuclear device. Even if the US could guarantee the simultaneous and immediate destruction of every nuclear weapon in North Korea, there are still tens of thousands of artillery shells pointed at Seoul. It is not possible for South Korea and American forces to escape a conflict with North Korea unscathed. From the outside, it does not look like there is an American policy on North Korea. ""All options are on the table"" is a normal diplomatic statement and there are two important questions that are still unanswered. First, how well is the inter-agency process functioning? Are Tillerson's remarks part of a well-conceived -- or even poorly-conceived -- foreign policy toward North Korea? Has that policy been debated and discussed among North Korea experts at the State Department, Defense Department, CIA, and other agencies, and filtered through the interagency process at the National Security Council? That so many positions in all of these agencies remain unfilled suggests no -- as do Trump's previous statements that he would speak to Kim Jong Un, and his claims that ""there's a 10% or 20% chance"" he ""could talk him out of having his damn nukes."" But perhaps even more important is this: Does Tillerson speak for Trump? That, unlike Jared Kushner and Steve Bannon, he has not been present at key meetings with foreign leaders, suggests that he is not necessarily ""in the loop."" Tillerson's statement in Seoul might have been more meaningful if it had come from someone else -- or perhaps even in a tweet from the President. The Korean Peninsula is the site of a tremendous amount of upheaval. South Korea's next president may favor talks and greater economic integration with North Korea. Tillerson's visit is also set against the backdrop of THAAD deployment, which has resulted in Chinese economic retaliation against South Korea. Tillerson's next stop is Beijing, where he will no doubt seek China's help in reining in North Korea. But what incentive does China have to help an administration set on antagonizing it at every turn?", -3000,2017/3/19,http://www.cnn.com/2017/03/18/opinions/chuck-berry-seymour/index.html,Chuck Berry didn't just cross barriers -- he obliterated them,"Gene Seymour is a film critic who has written about music, movies and culture for The New York Times, Newsday, Entertainment Weekly and The Washington Post. The opinions expressed in this commentary are his.","Here's why: There was no category that could safely contain it. It charted No. 1 on the rhythm and blues charts, which was where most black recording artists such as Berry could be found. But its beat and its sensibility were just as deeply rooted in the predominantly white traditions of country blues and western swing. Though it was de rigueur in Jim Crow's waning days for white artists to ""cover"" African-American artists' hits, ""Maybellene"" crossed so many barriers that it all but obliterated them -- or, anyway, made them less imposing. How, exactly, could anybody ""cover"" this? It was too big to cover; big enough, even in its two-minutes-and-spare-change length to contain multitudes, embrace generations, swallow continents and change the world. It was, in short, rock and roll. And Chuck Berry was its chief designer, its master engineer and -- argue all you want but the available evidence overwhelms -- one of its inventors, if not THE inventor. Berry's death at 90 was announced Saturday. Of rock 'n' roll's founding big daddies raising the temperature of simmering, static culture of the 1950s to full boil, Fats Domino, Little Richard and Jerry Lee Lewis -- a comparably improbable survivor -- now remain among the living. Probably it's as good a place as any to note that while touring with at an early rock-star revue, Lewis was so incensed that Berry was chosen over him to close a show that he gave a climactic set literally incendiary enough to end with him setting his piano on fire. As Lewis stormed off, smelling of lighter fluid and smoke, he passed by Berry and snarled sotto voce, ""Top that (expletive deleted)!"" And, as Lewis reportedly said later, ""He damn near did, too!"" I'm betting he did more than that because Berry in person was, well into senior citizenship, as compelling and galvanic as Berry on record. Berry didn't need pyrotechnics to send his audiences into the ozone. The duck walk, his inimitable stage move, was more than enough. Well, that ... and his guitar. Rolling Stone magazine once declared that rock guitar began with Berry and, once again, it's not hard to make the case. Berry's licks and riffs, fluid, supple and multi-tiered, remain electrifying enough to empower wave upon wave of guitarists seeking more blues in their rhythms and more rhythms. He was one of those artists who may have been singular when they broke through, but whose influence can be heard in every guitarist who followed. (Start wherever you want -- ""I'll take Keith Richards for $5,000, Alex!"" -- but the list of Berry's acolytes that follows stretches through presidencies, wars and recessions.) Finally, there are the songs, especially those ""great twenty-eight"" Berry recorded for Chess in the 1950s and early 1960s. They were so much more than catchy slices of pop that tickled wherever your musical dopamine was buried. ""Roll Over, Beethoven,"" ""Back in the U.S.A.,"" ""Johnny B. Goode,"" ""You Never Can Tell,"" ""I'm Talking About You,"" ""School Days,"" ""Promised Land"" and on and on and ever onward. These and many others conveyed adventure, mischief, fun and, most of all, endless possibility in their titles alone. Those titles invited you in. The songs carried you as far as you wanted or dared to go. And you could hear every single lyric roar, spin and take curves into your head like Berry's fiery red Cadillac that you can now see in the National Museum of African American History and Culture in Washington. As much as the thing he invented or, at least, helped invent, Chuck Berry delivered us from the days of old, remaining an American original to the very end. The problem with originals is that they come, like 45-RPM records, in singles. The best the rest of us can do is use his contraptions to power our own journeys to ecstatic reckoning. Go!", -3001,2017/3/19,http://www.cnn.com/2017/03/19/politics/white-house-security-situation/index.html,Car and bomb claim at White House sets off security alert,"Washington (CNN)The Secret Service detained a man who drove up to a White House checkpoint late Saturday night and claimed to have a bomb in his vehicle, two law enforcement officials told CNN.","There was no confirmation on whether there was any device in the vehicle, but security at the White House was immediately upgraded. The vehicle is being checked, the officials said. The incident occurred at 11:05 p.m. at a security checkpoint, the Secret Service said. Four hours later, the checkpoint in question remained blocked, but streets re-opened, and bomb technicians and other additional security personnel left the area. The Secret Service described it as an ""ongoing criminal investigation."" At the time of the incident, President Donald Trump was at his Mar-a-Lago estate in Florida, where he spends most of his weekends. Earlier Saturday, another person was arrested after jumping over a bicycle rack in front of the White House. The man, who never made it to the White House fence, was carrying a document he wanted to deliver to the White House and did not have a weapon, a law enforcement official said. The incidents come a week after a man breached the White House grounds ""?and was on the grounds for more than 15 minutes.", -3002,2017/3/19,http://www.cnn.com/2017/03/18/us/facebook-live-killing-tennessee/index.html,Man fatally wounded by deputy, family says Facebook Live captured chaos,"(CNN)Authorities in Tennessee are investigating the shooting death of an unarmed man by sheriff's deputies, the Tennessee Bureau of Investigation said.","Rodney James Hess, 36, of New Orleans was streaming on Facebook Live when he was shot Thursday afternoon, his family said in their own Facebook posting. Rodney Hess' video does not show the officers shooting and his relatives asked any witnesses to come forward. Hess was shot after Crockett County sheriff's deputies approached his sport utility vehicle because it was parked at a perpendicular angle along Highway 412 near the west Tennessee town of Alamo, TBI spokesman Josh DeVine said in a statement. Officers reported that Hess refused officer commands, made erratic statements and tried to strike officers at least twice with his vehicle, DeVine said. ""During the escalation of events, at least one Crockett County deputy fired his service weapon through the front windshield of the vehicle driven by Hess, striking him,"" DeVine said. ""At this time, we do not believe Hess used a firearm in connection to this incident."" Hess' video shows officers standing near the car and he can be heard saying, ""I would like the higher commands to come out."" The video image became jerky and captured sounds of a commotion and a loud, sharp sound, followed by a man screaming. The video showed the interior of a vehicle and passing scenery until a crashing sound occurs. Hess drove for a distance after being shot and wrecked his vehicle, CNN affiliate WHBQ reported. The video ended with an image of broken glass and the the sound of a woman's voice, apparently coming from a phone. Hess family attorney Don Rouzan said Hess was asking to speak with a ranking officer when he used the phrase ""higher commands."" Hess was not acting aggressively or raising his voice, Rouzan said. ""At the time there was no threat,"" Rouzan said. ""He was asking for a supervising officer and they opened fire."" Hess died after being airlifted to a hospital in Memphis, about 80 miles southwest of Alamo. No law enforcement officers were hurt and the officers involved are not being identified, the TBI statement said. Hess' relatives went on Facebook to ask any witnesses to come forward. ""We're just praying that justice will be served and that if there's anything covered up that it will be brought to justice, that it wouldn't be just another black man shot by police officers,"" said Lee Smith, Rodney Hess' grandfather. ""All we're asking for is justice."" Hess was the father to three children, ages 14, 3 and 18 months, Rouzan said. Rouzan said Hess grew up in the Memphis area not far from where he was killed. He'd been living in Texas and New Orleans and was traveling to Memphis, probably to visit family, when the shooting occurred, Rouzan said. TBI agents and forensic scientists will gather evidence and present it to the district attorney general, DeVine's statement said. Dash cam and body camera footage was obtained, he said. Agents are trying to determine the timeline of events. ""In this and all investigations, the TBI acts only as fact-finders,"" DeVine said. ""The decision as to whether the deputy's actions were justified rests solely with the district attorney general."" Facebook livestreaming was a factor in the police shooting of a civilian in Minnesota in July last year. Philando Castile was fatally shot by St. Anthony police Officer Jeronimo Yanez during a traffic stop. Castile's fiancee livestreamed the immediate aftermath of the shooting. That officer has pleaded not guilty to second-degree manslaughter charges." -3003,2017/3/19,http://www.cnn.com/2017/03/19/politics/kellyanne-conway-husband-trump-role/index.html,Kellyanne Conway's husband tipped for DOJ role,"Washington (CNN)President Trump is expected to nominate the husband of White House counselor Kellyanne Conway, to run the Justice Department's civil division, two sources familiar with the matter confirmed to CNN.","If confirmed by the Senate, George Conway would lead an office that would handle legal challenges to major Trump administration initiatives, such as the controversial travel ban. The Wall Street Journal first reported that Conway -- a corporate lawyer -- was expected to be tapped for the position. Conway had previously been considered for the post of US solicitor general, according to sources who spoke to CNN in December. High-profile clients George Conway is a partner at the corporate law firm of Wachtell, Lipton, Rosen & Katz, where he has worked for 28 years. He is currently a partner in the firm's litigation department where, according to the firm's website, he has honed his talents in securities, contract and antitrust litigation. Throughout his career, he has represented high-profile clients, including the National Football League and cigarette giant Philip Morris, which he represented in a successful defamation lawsuit against ABC News. Conway already has stood before the Supreme Court, arguing a case before it in 2010, Morrison v. National Australia Bank. Paula Jones case Conway graduated from Yale Law School in 1987 after attending Harvard College. He also clerked for US Circuit Judge Ralph Winter, Jr. of the Second Circuit Court of Appeals, who was nominated to the court by President Ronald Reagan. He was part of the team of lawyers in the 1990s who represented Paula Jones in her sexual harassment lawsuit against then-President Bill Clinton. He helped write the Supreme Court brief in the case that would establish a legal precedent for a sitting president to be sued in civil court.", -3004,2017/3/17,http://www.cnn.com/2017/03/19/asia/japan-north-korea-missile-drill/index.html,Japan holds first evacuation drill to prepare for North Korean missile,"Oga, Japan (CNN)The children are playing duck-duck-goose with their teacher outside their elementary school when the siren suddenly blares.","On cue, teachers and students drop to the ground and wait for further instructions. ""This is a drill,"" a voice echoes over a loudspeaker across this small coastal town. ""A missile has been launched."" Moments later, the entire school body runs from the athletic field into the school gym. They are joined by elderly volunteers, who line up in rows next to the children seated quietly on the wooden floor. This is Japan's first evacuation exercise preparing for the scenario of a North Korean missile attack against this country. ""A missile fell about 20 kilometers off the coast of Oga inside territorial waters,"" says another loudspeaker announcement. ""The damage is still unknown so please remain sheltered inside the gym."" At the completion of the drill, a government official thanks participants in the gym, while carefully avoiding specific mention of North Korea. ""The government is doing its best to be amicable to the countries so that the country would not shoot a missile,"" says chief Cabinet counselor Atsushi Odani. ""If they shoot a missile, self defense forces will try to shoot them down,"" he adds, referring to the Japanese armed forces. Defense systems in place Japan is not entirely defenseless when it comes to ballistic missile threats. Earlier this month, guided missile destroyers from the US, Japan and South Korea participated in trilateral naval exercises focused on improving missile defense. The warships employ the Aegis missile defense system that is aimed at early detection of missile threats. Those ships can also fire interceptors to strike the ballistic missile early in its flight, or send tracking data to ships farther along the ballistic missile's flight path, so it can be destroyed when it's near its highest point. However, Japan and its close military allies the US and South Korea were unable to stop North Korea from launching four ballistic missiles earlier this month. Tokyo says three of the four missiles launched from North Korea on March 6 landed in the sea less than 200 nautical miles (around 370 kilometers) from Oga, which juts out on a peninsula from Japans' western coast. Despite United Nations' resolutions prohibiting North Korea from developing nuclear weapons and ballistic missile technology, in 2016 Pyongyang conducted at least two nuclear tests and fired more than a dozen missiles. In this sleepy fishing port, locals are waking up to the growing threat from across the sea. ""It's scary,"" says Zen-ei Nishikata, as he hauls sacks of freshly-caught, squirming octopus into a fish-packing plant next to the docks. ""You never know what the North Koreans might do next."" Memories of sirens For some here in Oga, the missile evacuation drill brought back painful memories. ""During World War II, we hid in air raid shelters wearing masks when we heard the sirens,"" said Reinosuke Ishigaki, an 89-year old resident who helped coordinate the town's disaster preparation. ""If a war breaks out with North Korea, Japan will be targeted,"" he adds. ""And they have their finger on the nuclear button."" The principal of Oga's elementary school argues the missile evacuation drill provided his students with a valuable lesson. ""They're still young, but the closer they get to 6th grade, the more they start to understanding what country we're talking about with this missile exercise,"" Shin Kikuchi says. ""The potential threat from a missile is beyond imagination."" He speaks in a hallway of the school that is decorated with fearsome masks. They represent the namahage, a mythical ogre that is a community mascot on the Oga peninsula. It is a local tradition here on New Year's Eve for actors to dress up in frightening straw costumes and these fanged masks, to scare children straight. But as North Korea's ballistic missile program grows more sophisticated, residents now have something far more than frightening fairy tales to keep them awake at night.", -3005,2017/3/19,http://www.huffingtonpost.com/2017/03/19/car-bomb-white-house-secret-service_n_15463938.html,Driver Detained At White House After Alleged Car Bomb Threat,A robot was reportedly brought in to inspect the vehicle on Saturday night.,"One man is in custody after he reportedly drove up to a White House security checkpoint and claimed to have a bomb in his vehicle on Saturday night, law enforcement officials told CNN. A statement from the Secret Service confirmed that an individual drove his vehicle to the checkpoint at 11:05 p.m. After contact with uniformed agents, the Secret Service detained the individual and ""declared his vehicle suspicious.""?The statement said a criminal investigation was ongoing, but did not mention any explosive devices. #BREAKING A car drove up to a White House checkpoint- driver claimed to have a bomb. Area around WH closed off. pic.twitter.com/ooLZeADBUC MORE- The person driving the car is in custody and the vehicle is currently being checked, the sources said. Ryan Nobles, a CNN reporter who was on the scene, said that a robot and bomb squad member was inspecting the trunk of suspect's car-""Almost three hours""?after the incident began. Shortly after midnight, Nobles tweeted that suspect's car was still running and-parked at the checkpoint . NEW: from the viewfinder of @abdallahcnn. A robot inspects the trunk of the suspect's car. Still parked outside the White House. pic.twitter.com/WJsr1gejYQ DC fire crews standing by near White House while the car is checked pic.twitter.com/qZNVzV28Wq This was the second security incident to occur at the White House that day. On Saturday afternoon, Secret Service agents arrested an individual who reportedly jumped over a bike rack in an attempt to reach the White House, CBS News reported. The individual was apprehended before reaching the White House fence along Pennsylvania Avenue. President Donald Trump was in Florida at the time of both incidents. Individual jumped bike rack on Pennsylvania Ave, not @WhiteHouse fence. Great response by @SecretService Last week, a man identified as Jonathan T. Tran was arrested after he climbed over a fence and reached the exterior of the White House-carrying two cans of Mace and a letter for President Trump, according to the Washington Post. Tran reportedly spent 15 minutes on White House grounds before he was apprehended.- Share this slide: Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -3006,2017/3/19,http://www.huffingtonpost.com/2017/03/19/mouth-swab-marijuana_n_15462846.html,San Diego Debuts Mouth Swabs To Detect Drivers High On Pot,But authorities haven't defined what level of drugs is over the line.,"A major concern of police about state laws legalizing marijuana has been how to detect when motorists may be driving under the influence of pot ""?or other drugs. Now San Diego police are joining a growing number of cities relying on mouth swabs for chemical tests to detect drugs in drivers. The swabs and two portable testing machines hit the field Friday night in San Diego, reported CBS-8 TV. It's the second city in the state after Los Angeles to use the new detection method. The machines test for the presence of marijuana and six other drugs: cocaine, methamphetamine, amphetamine, methadone, opiates and benzodiazepines. The level of intoxication, however, is not determined in the tests. Officer demonstrates new roadside drug testing machine @10News pic.twitter.com/SBcSK7kM7l Law enforcement officials believe the number of impaired drivers are bound to increase with California's legalization of marijuana. A study by the state's Office of Traffic Safety-found that 38 percent of drivers killed in car crashes in California in 2014 tested positive for drugs, legal or illegal. That was up 6 percent from the previous year. San Diego began using the Dr?ger 5000 test after officials met with authorities in Colorado, which legalized marijuana for recreational use in 2014, the San Diego Tribune reported. Canadian authorities began using similar testing swabs and machines from a different company in a pilot program in late 2016 in the city of YellowKnife, the capital of the country's Northwest Territories. ""the goal of any of these initiatives is to save people's lives,""?said Royal Canadian Mounted Police Corporal Todd Scaplen. ""And if we have further tools to be able to do that, I think it's very important.""?Swabs with portable testing kits are also being used in New York, Arizona and Nevada, among several other states, as well as in Germany and Belgium, and Australia, notes the Tribune. Other strategies, including breathalyzers that test for drugs and apps to help police impairment are also on the market. San Diego police will first observe a driver to make an initial determination about possible impairment. The motorist may then be asked to run a swab inside his or her mouth for as long as four minutes, then the swab is tested in the portable machine and results are available in up to eight minutes. For pot, the machine only tests for the active THC compound that causes a high, which usually stays in a body for a few hours.-A driver can refuse the test, but then an officer can order a blood test. The next problem states face is determining a level of drugs when driving is dangerous. Once defined, levels can only be determined with a blood test. Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -3007,2017/3/19,http://www.huffingtonpost.com/2017/03/18/tomi-lahren-pro-choice_n_15462462.html,Tomi Lahren Forced To Defend Herself After Admitting She's Pro-Choice,"Many conservatives were not happy with Lahren's comments on ""The View.""","In just three years, Tomi Lahren has become the conservative right's outspoken golden girl by passionately defending gun rights, Donald Trump's policies, and criticizing political movements such as the Women's March and Black Lives Matter.- But she was forced to defend herself from her own fans after she admitted to being pro-choice on women's rights to abortion during her appearance on ""the View""?on Friday. ""I'm pro-choice and here's why,""?Lahren said during the show's ""Political View""?segment. ""I can""t sit here and be a hypocrite and say I'm for limited government but I think that the government should decide what women should do with their bodies,""?Lahren explained.-""I can say, you know what, I am for limited government so stay out of my guns and you can stay out of my body as well.""?Lahren has previously criticized the pro-choice movement both on Twitter and on TheBlaze, where she once called pro-choice supporters ""straight up baby killers.""?So it came as a surprise to many conservatives who didn""t realize Lahren identified as a pro-choice Republican. Many of them criticized Lahren for appearing to flip-flop on the issue of abortion, while some argued that her comments on ""the View""?made her lose credibility as a conservative. Only 3 months ago, @TomiLahren considered an abortion to be murder, today, she branded pro life conservatives as hypocrites. #NoPrinciples pic.twitter.com/8BqoQTOyD1 @Debsappy @apbhpz @dizeimage @TomiLahren Ummm don't thank her. She slams pro choicers on her page. Calls them baby murderers. She just did this for the camera. She's disgusting This isn""t the first time Lahren has hinted at her pro-choice stance.- In December, during a rant about Lena Dunham, Lahren said she ""didn""t care whether Dunham had an abortion or wants to have an abortion,""?before criticizing the entire pro-choice movement. She also tweeted in January: ""As a constitutionalist, I'm about free choice. As a republican & taxpayer, I'm all about you paying for your own life choices.""?But after her segment on ""the View,""?Lahren had to defend herself for being pro-choice. ""I speak my truth. If you don""t like it, tough,""?she tweeted Saturday afternoon. ""I will always be honest and stand in my truth.""?Kate Scanlon, who also works for TheBlaze, appeared to rebuke Lahren's statements, tweeting 30 minutes later, ""there is no ""�my truth.""?There is only the truth.""?I speak my truth. If you don't like it, tough. I will always be honest and stand in my truth. There is no ""my truth."" There is only the truth. pic.twitter.com/dDdItnPDbp Lahren refused to apologize for being pro-choice, saying that she has ""moderate, conservative, and libertarian views.""?She also pointed out that ""it's okay""?for conservatives to disagree. Then, late Saturday evening, she clarified that she doesn""t ""personally advocate""?for abortion, adding ""I just don""t think it's the government's place to dictate.""?I have moderate, conservative, and libertarian views. I'm human. I will never apologize, to anyone, for being an independent thinker. Thank you. Conservatives don't have to exist in a monolith and share the same brain on every issue. It's okay. https://t.co/YqzJNcaRar Listen, I am not glorifying abortion. I don't personally advocate for it. I just don't think it's the government's place to dictate. https://t.co/qRjbAtJdo7 Share this slide: How will Trump's first 100 days impact you? Learn more", -3008,2017/3/19,http://www.huffingtonpost.com/2017/03/18/trump-work-mar-a-lago_n_15461390.html,How Much Does Trump Actually Work At Mar-A-Lago? Maybe Not So Much,Staff is cagey about how much time president spends golfing on pricey trips to his resort.,"Donald Trump likes to call his Mar-a-Lago golf resort the ""Winter White House""?but there may be more presidential puttings than meetings occurring at the get-away destination. It's difficult to know for certain because the private club can keep the president's activities hidden from the public ""?and the media. This weekend in particular ""?the president's fifth trip to Mar-a-Lago in eight weeks in the White House-""?Trump may have been more embroiled with his nine-iron than the troubles of the nation. He cancelled a touted meeting Friday night with ""business leaders and doctors""?to discuss veterans""?health care, and his aides were circumspect about how he spent his time Saturday. He spent over four hours on Saturday at the Trump International Golf Club in West Palm Beach, where he was supposed to be ""Laving meetings and phone calls,""?according to his staff, CBS reported. Press pool at Trump Intl Golf Club told the president having meetings and phone calls there. This WH reluctant to report when he golfs. But the president posed for a photo on Twitter (including with former Mitt Romney aide Peter Flaherty) in the clubhouse posted by pal Chris Ruddy, who runs the conservative news site Newsmax. Trump was wearing a golf glove. An aide, asked about the photo, then conceded that the president may have ""Lit a few balls.""?.@realDonaldTrump with @pgflaherty and Max Kramer at Trump International Golf West Palm today! pic.twitter.com/R0gebVs1fX WH press aide wouldn't say if @POTUS played golf. Told of Twitter photo of @POTUS in golf attire, she said he may have ""hit a few balls."" Trump returned to Mar-a-Lago to have dinner with Marvel CEO Isaac Perlmutter. In a strange scene at the White House on Friday concerning the meeting that was later cancelled, Trump boasted about it and turned to Veterans Affairs Secretary David Shulkin, asking him if he was coming to Mar-a-Lago. When Shulkin shook his head no, Trump added:-""You heard about it, right? It's going to be great ""?all about the VA.""?Trump pointed out that the meeting would be at Mar-a-Lago, which-""we call affectionately the Southern White House. Seems to be the most convenient location,""?he added. ""Everybody always wants to go to the Southern White House.""?The name change from ""Winter White House""?was apparently a signal that Trump intends to continue to make frequent trips to the resort long after the winter.- Trump asks VA @SecShulkin if he's going to Mar-a-Lago. Shulkin shakes his head. pic.twitter.com/aZyiBC9Gnj The trips are particularly striking because of how Trump bashed Barack Obama for taking golf trips. ""I would rarely leave the White House because there's so much work to be done,""?Trump said in 2015. ""I would not be a president who took vacations. I would not be a president that takes time off.""?#TBT to March 2016, when presidents leaving the White House was a bad thing pic.twitter.com/rURy9cTn49 Trump's frequent golf jaunts are becoming enormously expensive. Politico has estimated that each trip to Mar-a-Lago costs taxpayers at least $3 million-(protecting wife Melania and son Baron back in New York has been estimated to cost an additional $1 million a day). At those Mar-a-Lago prices so far, The Washington Post notes that Trump could fund the U.S.-Interagency Council on Homelessness for nearly four years if he had skipped the resort trips. But the newspaper also makes the case that estimating accurate costs is challenging. Palm Beach officials on Friday told CNN they want the Secret Service or Trump himself to help the county pay-for police overtime spent to help protect the president. The sheriff's department estimates that it costs about $60,000 in law enforcement overtime every day Trump spends in Florida, and officials expect the costs to top $1 million this weekend.- Palm Beach Mayor Paulette Burdick said the county may have to hike taxes to cover the costs.-""It means the local taxpayers will have to bear the added burden of being part of the security for the president,""?she told CNN. The latest security concern occurred Friday at Mar-a-Lago when a teen crashed a car he was driving into a fence at Mar-a-Lago, NBC reported. He was given a traffic ticket and ordered to undergo a mental health evaluation. ""Don't take vacations. What's the point? If you're not enjoying your work, you're in the wrong job."" -- Think Like A Billionaire Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3009,2017/3/19,http://www.huffingtonpost.com/2017/03/18/brian-stelter-fox-news-presidency_n_15459194.html,CNN's Brian Stelter Slams Donald Trump For Being A 'Fox News Presidency',"""He's in this feedback loop with one particular outlet.""","CNN media correspondent Brian Stelter accused the White House of being the ""Fox News presidency""?on Saturday, despite President Donald Trump's recent attempt to blame the network for-unsubstantiated claims-that Barack Obama wiretapped Trump Tower during the election. Appearing on ""newsroom with Fredericka Whitfield,""?the media critic said there's only one news source that Trump has committed his loyalty to and that's the Rupert Murdoch-owned Fox News. Whitfield noted that while the network has tried to distance itself from the wiretapping claim made by its analyst, Judge Andrew Napolitano, she found the shift of blame interesting given Fox News and Trump's ""rather cozy relationship.""?Stelter said,-""What this ultimately comes down to is that President Trump is in some ways a Fox News presidency.""?""He watches Fox a lot. He tweets about Fox. He gives most of his interviews to Fox. He hires former Fox staffers. He peddles information from Fox.""?"" he's in this feedback loop with one particular outlet and he's especially getting information from the opinion programs on the network which clearly skew to the right ""?they skew conservative.""?Three of the last five news stories-Trump has tweeted-about in the past week were from Fox News.-The others were from the New York Times ""?a newspaper-he insists is ""Hake news""�?and Breitbart, a pro-Trump site with white nationalist sympathies. Share this slide: How will Trump's first 100 days impact you? Learn more", -3010,2017/3/19,http://www.huffingtonpost.com/2017/03/18/trump-jr-style-twitter_n_15458362.html,Twitter Bashes Incredibly Awkward 'Style' Shot Of Donald Trump Jr.,"""And the tree was like, 'Get off me!'""","Donald Trump's oldest son struck a forlorn, stiff pose for a photo accompanying a profile piece on him in the New York Times Style section Saturday that was decidedly ... unstylish. But it sure got Twitter's juices going. The photo was an apt illustration for the article, which made the point that Donald Trump Jr., 39, has felt out of place in Manhattan-""?and even in the public eye ""?and has yearned for the great outdoors (even though he took a lot of heat from the public for his Big Game hunting spree in Africa).- Donald Trump Jr. decided early on not to measure himself against his father https://t.co/JtvO6kzpla It has clearly been an awkward, if high-profile, time for Junior, who was blasted during the presidential campaign for comparing refugees to bad Skittles and said that women who can""t handle sexual harassment should get out of the workforce. ""If I could miracle myself away, I'd live out West,""?he told the Times. He still looks out of place in the woods, though.-For the photo at pop's estate in upstate New York, Trump dumped his usual suit and donned instead a red plaid flannel shirt and slightly faded jeans. But his trademark slicked-back hair was still there and he sported what appeared to be a brand-spanking-new pair of hiking boots. Then he arranged himself, awkwardly, in the woods on a tree stump (which some tweeters took as a metaphor for his dad's vision for the environment). Junior did not look like a tree-hugger. Twitter focused on the sad woods around Trump, his stiffness and his apparent isolation in the photo. Then there were a few nasty tweets. .@DonaldJTrumpJr murdered ""The Giving Tree."" pic.twitter.com/CaMRlUnbz1 ""...And the tree was like, get off me."" pic.twitter.com/x38G4H7QI4 Donald Trump Jr., seen here in what's left of America after his father's first term. pic.twitter.com/UJ0XuH3ZvL In nature there are few sights as rare as the giant red douchebag tree pic.twitter.com/Bt62uSxCu3 Donald Trump Jr. in his Thinkin' Spot. (Mostly thinkin' about pudding and Legos.) pic.twitter.com/PIREO2wKre When dad doesn't invite everyone to Mar-a-Lago. pic.twitter.com/8hskW0eo4i When you're sad about men's rights pic.twitter.com/u7MJqD7vEo how is he so bad at sitting? pic.twitter.com/Jg7cTMfDcc when the screams of the elephant babies you orphaned drown out your fantasy of eating a steak in front of a homeless veteran pic.twitter.com/JcM93JpON1 tfw when you see your friends post pics of a party on instagram but they didn't invite you because you're a bigot pic.twitter.com/tpNgPPa0Wi - - - Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3011,2017/3/19,http://www.huffingtonpost.com/derek-penwell/previously-undiscovered-manuscript-reveals-things-jesus_b_15460200.html,Previously Undiscovered Manuscript Reveals Things Jesus Didn't Say,,"Saying that budgets are moral documents, though a commonplace, is still instructive. Where you spend your money is how you signal your priorities. Or in the words of Jesus, ""Where your treasure is, there will your heart also be.""?That whole budgets-are-moral-documents thing came to me as I listened to a summary of the president's new budget proposal. Cuts to the EPA, to HUD, to international economic development, to the arts and public broadcasting, to scientific research. But the thing that really exasperated me were the cuts to services for the most vulnerable among us""�the poor, the elderly, the unemployed. School lunches? Meals-on-Wheels? Community development block grants? Legal aid? Seriously? And when you add that dramatic budgetary gut punch to the stunningly generous tax cut for the wealthiest Americans masquerading as healthcare reform, to the mean-spirited crackdown on immigrants and refugees, to the hate-mongering against Muslims, to the targeting of hard-won civil rights for African Americans and LGBTQ people ""?well, the picture is grim""�especially if you happen to be a person who takes Jesus anything like seriously. But in the midst of my despair, looking for a little spiritual and ethical insight, I ran across a set of documents I didn""t know existed""�which is saying something, because I try to keep up on that sort of thing. But there I was, poking about the dusty corners of the Internet and I happened to run across an ancient manuscript. Now manuscript dating is not my area of expertise, so I won""t attempt to put a date on this one. All I'm going to say is that it looked really dang old. (I realize that lacks a certain amount of academic precision, but you'r just going to have to trust me on this one.) So, I blew the digital dust off these files, broke out my Greek lexicon and went to work. And what I discovered, I think, provides a bit of insight into our current political situation. Here for you, for the first time translated into English, is the manuscript I found, entitled, Things Jesus didn""t say. Things Jesus didn""t say: ""�Love your friends, bless those who bless you ""?and screw everybody else.""?""If you had the faith of this mustard seed ""?you wouldn""t need all that fancy ""�affordable healthcare.""?""Blessed are the racists, for they will rise to great heights in the new administration.""?""Ty God, my God, why hast thou forsaken me? I mean, look at all these liberals, and their un-Christian ""�caring for widows, orphans, and the stranger.""?Why can""t they care about Christian stuff, like the 2nd amendment or school prayer?""?""Go, sell all you have and give it to the richest one percent.""?""Blessed are those who hate immigrants in my name, for they shall inherit all the jobs white people don""t want to do.""?""Follow me and I will make you fishers of ""?people who look just like you.""?""Give unto Caesar that which belongs to Caesar, and give unto God only what you can""t hide on your 1040.""?""Let the little children come to me ""?unless they'r in Head Start or need help with school lunches, then cast them out into the outer darkness where there will be weeping and gnashing of their tiny little teeth.""?""Come unto me all ye who are weary and heavy laden ""?and I will make sure you have no union to watch over you.""?""Go ye therefore into all the world ""?and make sure everybody hates Muslims. Because obviously.""?""Ty God, my God, why do women not see that men should have the last word about what they do with their bodies?""?""You have heard it said, ""�You shall not commit adultery, but I say to you ""?unless she's a lot younger, prettier (like a model or whatever), and you're had enough foresight to sign a prenup.""?""You have heard it said, ""an eye for an eye, and a tooth for a tooth, but I say to you ""?what the hell? they're got it coming.""?""�You have heard it said that healthcare should be a right for everyone, but I say to you, ""If you can store up for yourselves another new Benz, even though it comes from money meant for poor people's chemotherapy, then you should totally do it.""?""You cannot serve God and mammon ""?which is why it was important to have the Supreme Court rule favorably in Citizens United. Helps us keep to keep who's who straight.""?""not everyone who says to me, ""Lord, Lord,""?will enter the kingdom of heaven ""?but if you have a suitably large investment portfolio, that definitely won""t hurt.""?""If anyone strikes you on the right cheek, turn the other also.""?(Marginalia""��This only applies to People of Color and women in abusive relationships.""? ""Again, you have heard that it was said to those of ancient times, ""�You shall not swear falsely, but I say to you ""?just kidding. That's for suckers!""?""And I, when I am lifted up, will draw all straight, cisgender, middle class white guys unto myself.""?""I am the good shepherd. The good shepherd lays down his life for the sheep ""?except refugees. They definitely do not count.""?"" therefore , none of you can become my disciple if you do not give up all your possessions.""?(Wait. Actually, he did say that, but he probably shouldn""t have.) Start your workday the right way with the news that matters most. Learn more", -3012,2017/3/19,http://www.huffingtonpost.com/elizabeth-ann-thompson/black-history-everyday-247365-chuck-berry_b_15460188.html,Black History Every Day 24/7/365: Chuck Berry,,"Charles Edward Anderson ""Chuck""?Berry sunrise 10/18/26, sunset 3/18/17 St. Louis, Missouri. Convicted of armed robbery in high school and served time in a reformatory from 1944 to 1947. After release from reformatory worked in an automotive assembly plant. His influences were Louis Jordan, Nat King Cole, Bennie Goodman, and Muddy Waters. He owned a nightclub in St. Louis called Berry's Club Bandstand. From 1962 to 1965 he served time in prison for transporting a 14 year old girl across state lines. In 1979 he served 3 months in prison for tax evasion. In 1986 he was inducted in the Rock and Roll Hall of Fame at its opening. He was married to the same woman for 68 years and had two children. In 2004 Rolling Stone named him the 5th out of 100 greatest artists of all-time. Peace, love, joy, gratitude, faith, courage, compassion and blessings. How will Trump's first 100 days impact you? Learn more", -3013,2017/3/19,http://www.huffingtonpost.com/robert-peake/what-the-nea-means-to-me_b_15460180.html,What The NEA Means To Me,President Trump's proposed budget would defund the organization that gave me a much-needed sense of hope and encouragement early in my vocation as a poet.,"It is strange to be an American watching America from afar right now. I live in England, near the village of St. Albans, which has been continuously inhabited since Roman times. I often wonder what it must have been like to be a Roman living in Britain around the time of the fall of the Roman Empire. News would arrive over weeks and months that illiterate Vandals had again plundered Rome, and burned its great libraries to the ground. Books, after all, were useless to them as compared with weapons and gold. News that the current U.S. administration plans to eliminate the National Endowment for the Arts (NEA) and its sister organisations arrived in my social media feed at the speed of light, and hit me straight in the gut. In 2003 I was living in South Central Los Angeles, writing poetry, attending seminary, and surfing. All of these were attempts to discover what life is about. Through the UCLA Extension Writers""?Program, my poetry began to get better, though my surfing never did. Then something happened that changed my understanding of why poetry matters. I entered and won a prize called Poetry in the Windows, sponsored by the Arroyo Arts Collective. As part of the prize, poems were translated into one of the many languages spoken in the diverse Highland Park area of East Los Angeles. Then, with the permission of the shop owners, they were displayed in the storefront windows along the main street. A special day was arranged where groups were led from storefront to storefront to hear us poets read our winning poems aloud. I don""t recall what I did with the small prize cheque; I probably spent it on In ""�N""?Out burgers and gas for my truck. But I do still recall the beaming face of the Armenian shopkeep listening to a young Armenian poet read out the poem hanging in pride of place in his store window, in his native tongue. To this day, I have never been more proud of one of my poem's placements than outside the Rub-A-Dub Laundry on Figueroa Street. This is because on this day, we were not natives or immigrants, poets or shopkeepers. We were one people united by a love of words. That organisation, and that prize ""?the first poetry prize I ever won ""?was supported by the NEA. It gave me a much-needed sense of hope and encouragement early in my vocation as a poet. It mattered more than I can say. According to the Academy of American Poets, the NEA supports more than 3,000 writers each year with small fellowships that afford them the time to write. They also support critical programs for teens like Poetry Out Loud, where more than 300,000 teens memorise and recite poems in an inspiring annual competition. If you feel, like I do, that organisations like NEA represent a vital part of a healthy society, I encourage you to contact your representative and make your thoughts known. PEN America has put together a useful web page with more information. Rome wasn""t built in a day, and neither was the richness and diversity of America's cultural heritage. The NEA has been protecting that heritage, and encouraging new voices ""?like mine ""?to join in the conversation since its founding in 1857. I can""t imagine America without it. THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3014,2017/3/19,http://www.bbc.co.uk/news/entertainment-arts-39318812,Chuck Berry dies aged 90,,"Rock and roll legend Chuck Berry has died aged 90, police in US state of Missouri report.", -3015,2017/3/19,http://www.bbc.co.uk/news/uk-england-london-39319717,Finsbury Park toddlers: Boy dies and girl critically ill,A one-year-old boy has died after being found injured at a north London flat.,"A one-year-old boy has died after being found injured at a north London flat. Police called to Wilberforce Road in Finsbury Park on Saturday night also discovered a girl the same age, who is in a critical condition. Both toddlers were taken to an east London hospital after the discovery at 23:10 GMT. The boy died in the early hours of Sunday. A neighbour told the BBC that a woman came downstairs screaming for help, and another neighbour called the police. Detectives said inquiries were under way to ""establish the full circumstances"". No arrests have been made, but the Metropolitan Police added: ""Next of kin are aware. ""Formal identification awaits and a post-mortem examination will be scheduled in due course.""", -3016,2017/3/19,http://www.bbc.co.uk/news/uk-politics-39318822,Farron likens PM's politics to Trump's and Putin's,"Liberal Democrat leader Tim Farron is to accuse the prime minister of following ""aggressive, nationalistic"" politics like those of Donald Trump and Vladimir Putin.","Liberal Democrat leader Tim Farron is to accuse the prime minister of following ""aggressive, nationalistic"" politics like those of Donald Trump and Vladimir Putin. He will tell his party's conference later that Theresa May is part of a ""new world order"" with the presidents. His party is the ""real opposition"" to her ""hard Brexit"" plan, he will add. Mrs May told the Conservative's spring conference on Friday that she wanted a ""more united"" Britain. Mr Farron will say he wants to reclaim the British flag from nationalists using it as a ""symbol of division"". He will make the comments as part of his keynote speech at the Lib Dem's spring conference in York. The party leader will say: ""The politics of Trump. Of Putin. Of Le Pen. And now the politics of Her Majesty's Government. ""Welcome to the new world order. This is the new normal, the new status quo. ""Aggressive. Nationalistic. Anti-Nato. Anti-EU. It is the post-war internationalist consensus unravelling in real time. ""Winston Churchill's vision for a world that achieves peace through trade, common values and shared endeavour evaporating before our eyes."" Mr Farron will tell his supporters to stop being ""squeamish"" about patriotism, calling for the centre left to reclaim the British flag. ""I love my country,"" he will say. ""I'm proud of my identity. ""Patriotism isn't about dividing our society. It is about celebrating it. It's about our shared experience, our shared history, our shared destiny."" The Lib Dem leader will end his speech by saying his party, which has nine MPs, is the ""only party in British politics opposed to a hard Brexit"", and he will continue to campaign for a referendum on the deal negotiated by the government on leaving the EU. Meanwhile, former Prime Minister Sir John Major has criticised what he calls ""ultra Brexiteers"" within the Conservative Party who he believes are trying for a ""complete break from Europe."" Writing in the Mail on Sunday, he says such figures need to ""stop shouting down anyone with an opposing view"", as well as launching ""vitriolic and personal attacks"" on judges, civil servants and other public figures. ""In doing so they demean both themselves and their cause,"" he wrote. ""These 'Ultras' are terrified that their triumph in taking us out of Europe will be snatched away. ""But if that is their fear, why do they not defend their position with logic and passion, with thoughtful, cogent argument, instead of low-grade personal abuse that has been their standard response so far?"" Sir John called for an end to ""fake facts and bogus promises"" and for others to follow the PM in negotiations with ""skill, persuasion and diplomacy"" in order to ""heal the wounds... of one of the most damaging [debates] in the history of British politics"".", -3017,2017/3/18,http://www.bbc.co.uk/news/uk-39319757,The homeless shelter on four wheels,,"When the night shelter for homeless people on the Isle of Wight closed, charity worker Kevin Newton raised thousands of pounds to convert a double-decker bus into a shelter.", -3018,2017/3/18,http://www.bbc.co.uk/news/uk-39319495,Rape victims to get pre-trial recorded interview option,"Alleged rape victims in England and Wales may not have to be cross-examined in front of the accused, under plans by the justice secretary.","Alleged rape victims in England and Wales may not have to be cross-examined in front of the accused, under plans by the justice secretary. Liz Truss is to set out reforms which would allow sex abuse victims to pre-record their testimony before a trial. Speaking to The Sunday Times, the lord chancellor said schemes in three cities showed pre-recorded interviews led to a higher level of ""early guilty pleas"". Mrs Truss said the plans could come into force as early as September. In The Sunday Times interview, she said: ""It reduces the level of trauma for the victim. ""I want to see that being the standard offer in those cases and that will give more victims confidence to come forward."" The plans come after Plaid Cymru MP Liz Saville launched a private members bill to stop alleged rape victims being quizzed about their sexual history or appearance. Mrs Truss said the pre-recorded interviews will provide ""much clearer ground rules"" to counsel. She added; ""At the moment prior sexual history can only be asked about in exceptional circumstances, but sometimes questions can be asked that verge on that territory. ""If a question is asked that is inadmissable, that can be cut out of the tape by the judge."" The family of a woman who took her own life before her attacker stood trial welcomed the plan. Ceri Lindon took an overdose days after being kidnapped and raped by fake taxi driver Masood Mansouri in Chester in August 2014. Speaking to The Sunday Times, the 20-year-old's mother Eleri said: ""Ceri was told there was a possibility she would have to give evidence and I'm sure these reforms would have helped her a great deal."" But some have argued this could affect people who are falsely accused of rape. James Conte, founder of accused.me.uk said: ""If you are a wholly innocent victim of someone trying to frame you, you will not welcome these changes because they will increase the chances that you will be wrongfully convicted."" Zoe Gascoyne, chairwoman of the Criminal Law Solicitors Association, told the newspaper that taped interviews before a trial would not take into account real-time developments, and said: ""This may be a step too far."" Mrs Truss is due to outline the planned changes to MPs on Monday.", -3019,2017/3/18,http://www.bbc.co.uk/news/uk-politics-39318829,George Osborne: Second-job rules for MPs to be examined,The rules on MPs taking second jobs are to be discussed by a parliamentary committee on Thursday.,"The rules on MPs taking second jobs are to be discussed by a parliamentary committee on Thursday. The Committee on Standards in Public Life was prompted to meet after former Chancellor George Osborne was made editor of the London Evening Standard. Lord Bew, who chairs the committee, told the Sunday Times it was not ""personal"" but it ""raises the issue"". Mr Osborne also faces criticism for not getting Cabinet Office approval before taking the post. MPs are allowed to have second jobs, but Lord Bew said the committee would discuss whether the rules needed to be changed in light of Mr Osborne's appointment. ""We had something that, up to a degree, worked. It now seems to be getting into rockier waters,"" the peer said. Mr Osborne, who is the MP for Tatton, in Cheshire, was announced as the new editor for the free daily paper on Friday. This latest job is in addition to his work as: ""Unless someone sleeps two hours a night, that's the only way I can see how this is not [too much],"" added Lord Bew. ""This is not personal to George Osborne. But [his case] raises the issue of how much time MPs have to devote to their parliamentary work."" The editorship announcement also came before Mr Osborne had received approval from the Advisory Committee on Business Appointments, or Acoba. The body, within the Cabinet Office, is responsible for approving jobs taken by former ministers up to two years after they leave office, and it had already expressed ""concern"" when the MP did not notify them of a previous job offer, according to the Sunday Times. A friend of Mr Osborne is quoted in the paper as saying that the former chancellor would not be standing down as an MP. ""George is not quitting politics and he is not quitting the public sphere. ""If anyone thinks he's off earning money and preparing for a departure from the British political scene, they should prepare for the exact opposite.""", -3020,2017/3/19,http://tass.com/world/936336,"Ukrainian military target fire at Yasinovataya, Gorlovka - authorities",Head of the Donetsk Petrov region Maxim Zhukovsky said 15 electricity substations remain idle after the shelling,"DONETSK, March 19. /TASS/. The Ukrainian Armed Forces on Saturday evening and Sunday morning shelled Yasinovataya, Zaitsevo north of Gorlovka, Luganskoye, Signalnoye and Elenovka, the local authorities told the Donetsk News Agency on Sunday. ""Last night, the Ukrainian military were shelling heavily from mortars suburbs of Yasinovataya, and the roof of the local chlorine station was damaged,"" Yasinovataya's official said. On Sunday morning, the military targeted mass shelling on Zaitsevo. ""In the morning, at 6:30 we were shelled, one house damaged in Zaitsevo,"" acting head Ivan Prikhodko said, adding under fire was also Dolomitnoye, where shells destroyed two houses. Head of the Donetsk Petrov region Maxim Zhukovsky said 15 electricity substations remain idle after the shelling. ""Luganskoye and Signalnoye are in blackout, repairing has begun,"" he said. Without electricity also remain settlements Elenovka and Naberezhnoye in the south of the self-proclaimed Donetsk People's Republic (DPR). Since the autumn of 2014, members of the Contact Group on settling the situation in eastern Ukraine have announced ceasefires in Donbass more than ten times. However, the Ukrainian military have been repeatedly violating ceasefires, particularly using large caliber guns, mortars and tanks that should be withdrawn from the line of contact in accordance with the Minsk agreements. At the recent meeting of the Contact Group, held on March 1, the parties agreed to resume the weapons withdrawal process on March 7. However, the Ukrainian military refused to begin withdrawal under pretext of insecurity in the region.", -3021,2017/3/19,http://tass.com/society/936332,Monument to victims of Flydubai plane crash to be unveiled in Russia's Rostov,"The monument, designed by Rostov sculptor Anatoly Sknarin, consists of three granite columns and a vertical stone slab bearing the names of the victims","ROSTOV-ON-DON, March 19. /TASS/. A monument to the 62 victims of last March's Flydubai plane crash in the southern Russian city of Rostov-on-Don will be unveiled on the anniversary of the tragedy Sunday, a spokesperson for the Rostov Region government said. ""The memorial, named the ""Interrupted Flight,""?is already installed near the city's airport. Its official opening is to coincide with the anniversary of the tragedy, Russian Transportation Minister Maxim Sokolov is expected to attend,"" the spokesperson said. The monument, designed by Rostov sculptor Anatoly Sknarin, consists of three granite columns and a vertical stone slab bearing the names of the victims. A sculpture of a bird is installed near the slab as a symbol that unites earth and air. A FlyDubai's Boeing 737-800 on a regular flight from Dubai crashed at Rostov-on-Don's airport in the early hours on March 19, 2016 during a second attempt to land in complicated weather conditions of strong side wind and rain. The plane spent more than two hours in midair before attempting to land for the second time. None on board survived. Criminal proceedings were instituted into the violation of air transport traffic and operation rules, resulting in the death of two and more persons through negligence.", -3022,2017/3/19,http://tass.com/society/936335,Medvedev sends birthday greeting to Bolshoi's director,"The prime minister pointed to interesting Internet-projects, which the theater does under the director's supervision","MOSCOW, March 19. /TASS/. Russia's Prime Minister Dmitry Medvedev sent birthday greeting to Director of the Bolshoi Theater Vladimir Urin. The telegram was published on the government's website on Sunday. ""A well-known theatrical figure, a talented director and teacher, you have written many bright pages in history of Russia's culture,"" the prime minister said greeting the theater director on his 70th birthday. ""To a big extent, due to you professional and outstanding organizational skills, the country's one of the major theaters preserves carefully its traditions, without soling the sense of time,"" Medvedev said. The prime minister pointed to interesting Internet-projects, which the theater does under the director's supervision. On the Internet pages, visitors learn the rich history of the Bolshoi, ""can feel special energy of the theater, which is an attraction for millions of people."" Vladimir Urin was appointed the Bolshoi Theater's Director on July 9, 2014.", -3023,2017/3/19,http://tass.com/world/936331,"North Korean leader attends new rocket engine test ""?media","After the test, the North Korean leader said its results ""became a great historic event, the birth of a national rocket industry""","MOSCOW, March 19. /TASS/. North Korean leader Kim Jong Un observed the ground jet test of a new high-thrust rocket engine, South Korea's Yonhap news agency reported Sunday. According to the report, Kim checked the technical specifications of the engine and preparations for the test and gave instructions before going up to the observation post to give the order for the test to begin. After the test, the North Korean leader said its results ""became a great historic event, the birth of a national rocket industry, that will not depend on technologies developed in this field by other states,"" North Korea's state KCNA news agency reported. ""The world will soon fully realize the importance of North Korea's test of this powerful engine,"" Kim was quoted as saying. North Korea's leader also praised ""the unprecedented progress made by the country's defense industry"" made last year and in early 2017. The test, that took place at the Sohae Satellite Launching Ground, coincided with US Secretary of State Rex Tillerson's Asian tour that includes Japan, South Korea and China. North Korea's nuclear and rocket threat will be one of the main issues to be discussed during the visit. During his visit to Seoul, Tillerson admitted that Washington's ""strategic patience"" policy toward Pyongyang was over. ""We are exploring a new range of security and diplomatic measures. All options are on the table,"" he added.", -3024,2017/3/19,http://tass.com/world/936329,"First group of Syrian militants leave their last bastion in Homs ""?governor","According to the agency, a total of 423 militants and over 1,000 civilians left Homs and headed to the town of Jarablus on the border with Turkey","BEIRUT, March 19. /TASS/. Syrian militants began withdrawing from al-Waer, the last militant-held neighborhood in the north of the Syrian city of Homs, the governor of the Homs governorate told the SANA news agency. According to the agency, a total of 423 militants left Homs and headed to the town of Jarablus on the border with Turkey. They were accompanied by 1,056 members of their families and other civilians. Governor Talal Barrazi said that in line with ceasefire agreements and the presidential amnesty, members of armed groups willing to lay down arms and return to peaceful life will have a chance to do so. ""Hundreds of people agreed to undergo a probe by the law-enforcement agencies. Those who refused to surrender to the authorities will be transported with their families to northern regions of Syria,"" he said. Omar al-Sibai, the secretary of the local branch of the Arab Socialist Ba'ath Party, told the agency that some 10,000 people are willing to travel to northern Syria from Homs. ""Once the militants and their families withdraw, city authorities will prepare it for the return of more than 100,000 al-Waer residents, who were forced to flee the neighborhood after it was captured by armed groups,"" he said. Al-Waer remained the last bastion of armed groups in Homs. In March 2014, more than 5,000 militants settled there under a ceasefire deal.", -3025,2017/3/19,http://tass.com/world/936327,Vandals daub one of Kiev's oldest sculptures with red paint,"""It's hard to understand what is going on the heads of those who wage a war against monuments,"" said Yelena Khalimon, who posted the photo of the vandalized sculpture on her Facebook page","KIEV, March 19. /TASS/. Unidentified vandals daubed with red paint the 1853 monument to St. Vladimir Duke of Kiev in the center of the Ukrainian capital, an official with Ukraine's National Memory Institute said. ""It's hard to understand what is going on the heads of those who wage a war against monuments,"" said Yelena Khalimon, who posted the photo of the vandalized sculpture on her Facebook page. Vladimir Duke of Kiev, who brought Eastern Orthodox Christianity to Kievan Rus in 988, is venerated as a saint in both Russia and Ukraine. The monument to him in Kiev is seen as one of Ukrainian capital's oldest sculptures.", -3026,2017/3/19,http://tass.com/world/936328,"US president Trump calls Putin ""Tough cookie""?,During the interview"," Trump was asked to give short descriptions of several political and business leaders""","WASHINGTON, March 19. /TASS/. US President Donald Trump described his Russian counterpart as a ""tough cookie"" in an interview on the Fox News Channel aired late Saturday. During the interview, Trump was asked to give short descriptions of several political and business leaders. When asked about Vladimir Putin, he replied: ""I don""t know him but certainly he is a tough cookie."" The president also commented on the ongoing attacks by the Democrats on the current Republican administration and lamented numerous media leaks. When asked whether his predecessor Barack Obama could be behind it, Trump replied that everything was possible. ""(Obama was) very nice to me personally but his people haven""t been nice,"" he said. ""And there's great animosity out there. There's great anger."".", -3027,2017/3/19,http://tass.com/science/936324,US launches WGS-9 military communications satellite,WGS satellites are an important element of a new high-capacity satellite communications system providing enhanced communications capability to troops in the field,"NEW YORK, March 19. /TASS/. The United Launch Alliance (ULA) said it had launched a Delta IV carrier rocket with the ninth Wideband Global SATCOM (WGS-9) military communications satellite for the US Air Force from the Cape Canaveral Air Force Station in Florida Saturday. WGS satellites are an important element of a new high-capacity satellite communications system providing enhanced communications capability to troops in the field. This is the third launch in 2017 and the 118th successful launch since ULA, a consortium by Boeing and Lockheed Martin, was formed in December 2006.", -3028,2017/3/19,http://tass.com/world/936323,"Brazil fears shrinking exports amid rotten meat scandal ""?agriculture minister","The United States, the European Union and China have already requested Brazilian authorities to launch an investigation against unscrupulous meat producers","RIO DE JANEIRO, March 19. /TASS/. Brazil fears that it may lose foreign markets for its agricultural products due to a scandal surrounding the sales of rotten meat by some of its companies, Agriculture Minister Blairo Maggi said Saturday. ""Most of all I fear that foreign markets will be lost for our products and that domestic consumers will lose their trust in them as well,"" the minister said in an interview with the Globo newspaper. The minister confirmed earlier media reports that the United States, the European Union and China have already requested Brazilian authorities to launch an investigation against the unscrupulous meat producers. However, none of these countries has so far announced that it was closing its market for animal products from Brazil. On Monday, Maggi will attend a meeting by Brazilian President Michel Temer with ambassadors from countries importing meat from Brazil, Globo said. The meeting will be held at 14:00 local time (20:00 Moscow time) in Palcio do Planalto, the official workplace of the President of Brazil. On Friday, Brazil's federal police arrested members of a major criminal group involved in trade of tainted food, mostly meat. According to police, the operation involved almost 1,100 police officers and became the country's largest ever. The operation targeted major Brazilian meat producers selling their products both domestically and internationally. Investigators detained a number of meat industry employees, who are suspected of bribing agriculture watchdogs to receive quality certificates for low-quality goods without proper checks. Some of those money were reportedly used to finance political parties. Police says that the suspects also used acid and other chemicals to make the rotten meat appear fresh. Brazilian authorities say they have no information on whether these low-quality products were exported to other countries. Brazilian meat giants JBS SA and BRF SA were named among the companies that are under the investigation. JBS SA, one of the world's biggest beef producers, exported its products to 150 states, including Russia, last year. On January 14, Russian agriculture watchdog Rosselkhoznadzor imposed temporary restrictions on JBS SA products following the discovery of listeria, a bacteria that causes listeriosis. The disease is the third-leading cause of death from foodborne illness, according to the US Centers for Disease Control and Prevention (CDC).", -3029,2017/3/19,http://www.dw.com/en/us-border-authority-seeks-tenders-for-30-foot-mexico-wall/a-38012567?maca=en-rss-en-all-1573-rdf,US border authority seeks tenders for 30 foot Mexico wall,"US authorities have posted a call for proposals on two different kinds of wall - one solid concrete, one see-through. It has to look aesthically pleasing, but only on the American side.","The US-Mexico wall should be 30 feet (9 meters) high, difficult to climb or cut through and look good from the north side, according to US government contract notices. Two calls for tender-were posted by Customs and Border Protection, the Homeland Security Department agency that will oversee the project and eventually patrol and maintain the wall. The first notice asks for a solid concrete wall, while the other asks for proposals for a ""see-through"" structure. Both require the wall to be ""physically imposing in height,"" ideally 30-foot high - but potentially just 18 feet. Neither should be scalable, even using sophisticated climbing aids, and both should be sunk at least six feet into the ground to avoid tunneling. They would have to withstand prolonged-attacks with-""sledgehammer, car jack, pick axe, chisel, battery operated impact tools, battery operated cutting tools, Oxy/acetylene torch or other similar hand-held tools."" The walls would include 25- and 50-foot automated gates for pedestrians and vehicles. The wall is deeply reviled in Mexico with lawmakers calling for sanctions on Mexican firms involved 'Pleasing in color' - on the-US side- Both should be ""aesthetically pleasing in color"" and texture consistent with the general environment, but only from the north side. Successful applicants would be asked to build a 30-foot-wide sample wall in San Diego for final selection. Trump's new budget proposal included a $2.6 billion down payment for the wall but the total cost for the project was-still unclear. The Government Accountability Office estimated it would cost about US$6.5 million per mile (3.8 million euros per-kilometer) for a pedestrian-proof fence and about $1.8 million a mile for a vehicle barrier. Congressional Republicans said the wall would cost between $12 billion and $15 billion and Trump suggested $12 billion. An unnamed government official involved in the project told ""Associated Press"" that an internal report estimated the cost of building a wall along the entire border at about $21 billion. One of the proposals calls for a see-through component that ""facilitates situational awareness but does not detract from its function Mexican firms pull out Earlier this week Mexican lawmakers increased pressure on Mexican construction firms tempted to help build deeply reviled wall. Senator Gabriela Cuevas of the opposition National Action Party was due to introduce a bill barring the government from doing business with any Mexican firm that participates in its construction. Mexican cement giant Cemex back-flipped on comments that it was ready to supply materials for the wall. Its stocks had risen to eight-year highs on speculation that the wall would require US$1 billion of concrete. Another construction giant, Elementia - partly owned by Mexican billionaire and Trump critic Carlos Slim - said it wants nothing to do with the project. A company in the central Mexican state of Puebla called Ecovelocity pulled back after initially saying it wanted to install lighting for the wall. Trump's insistence that Mexico pay for the wall, together with his attacks on Mexican immigrants as ""criminals"" and ""rapists,"" caused a diplomatic row between the two neighbors with Mexican President Enrique Pena Nieto canceling a White House visit in January. aw/rc (AP, Reuters, AFP)--- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZMJQ", -3030,2017/3/19,http://www.dw.com/en/us-secret-service-upgrades-white-house-security-after-bomb-threat/a-38012503?maca=en-rss-en-all-1573-rdf,US Secret Service upgrades White House security after 'bomb threat',US authorities say they have boosted security at the White House after a man drove up to one of the building's checkpoints and made threats. The Secret Service has faced criticism over recent breaches.,"The US Secret Service said an unidentified driver was taken into custody after a suspicious vehicle approached a White House checkpoint overnight. An intruder with a backpack has been detained after scaling the White House grounds fence while President Trump was there. The US Secret Service did not identify the trespasser. (11.03.2017) Security forces have shot and wounded a man wielding a gun near the White House. While President Barack Obama was not home at the time, the Secret Service briefly locked down the premises as a precaution. (21.05.2016) The Secret Service has interrupted a White House press briefing following a bomb threat. Spokesman Josh Earnest reconvened the conference after getting the all-clear approximately 20 minutes later. (09.06.2015) Broadcaster CNN reported-the man claimed to be carrying a bomb in his car. Citing two law enforcement sources, CNN said there was no confirmation of an explosive device in the vehicle, but that security at the White House had been upgraded. Reuters news agency reported that several streets around the White House grounds were closed down after the incident. Just hours earlier, the Secret Service announced that another man had been caught jumping over a bike rack in an apparent attempt to reach the fence outside the White House. In a statement, the agency said-the individual was-detained immediately and criminal charges were pending. He was not found to be carrying any weapons, according to an official. President Donald Trump was away in Florida at the time of both incidents. There have been a number of security breaches at the White House in recent years. Earlier this month-a man scaled three barriers and walked around the grounds of the executive mansion for 16 minutes before he was arrested. That time Trump was inside the building. In 2014, when Barack Obama was president, an army veteran described as mentally disturbed made it into the White House grounds and entered the building with a knife in his pocket before being tackled and arrested. nm/rc (Reuters, AFP) -", -3031,2017/3/19,http://www.dw.com/en/battle-over-ireland-s-last-magdalene-laundry/a-37930304?maca=en-rss-en-all-1573-rdf,Battle over Ireland's last Magdalene laundry,"Ireland's last Magdalene laundry is up for sale, but campaigners want a memorial to women who endured abuse at the hands of religious orders. Ruairi Casey reports from Dublin.","A crowd of hundreds filled Dublin's Sean MacDermott Street in 1979 when Pope John Paul II passed by. Local residents were hopeful he would visit Our Lady of Lourdes Church, which holds the shrine of Matt Talbot, a leading figure in the Irish Church's temperance movement. The pope could hardly have failed to notice the dense mass of worshippers, but he did not stop. What he may not have seen was a long, brown-brick Victorian building on the opposite side of the street, one of Ireland's now notorious Magdalene laundries, where women were incarcerated and forced to work in slave-like conditions. Out of sight and mind for most of its history, it has now become a focal point in Ireland's coming to terms with its cruel and brutal treatment of women in the 20th century. The last operating laundry, only closing in 1996, Sean MacDermott Street is now in the hands of Dublin City Council, which plans to redevelop it for housing. But survivor groups and local politicians want to ensure a memorial is put in place to acknowledge the devastation suffered by women in Ireland's penal-institutions. They are backed by the 2013 government report that established a redress scheme for victims, which also recommended the site house a memorial to ""honor and commemorate"" the women of the Magdalene laundries. Read:-Magdalene laundries an 'Irish kind of torture' Last week local councilors passed an emergency motion to block the sale of the site until survivors groups have been consulted and a suitable memorial constructed. They also called for an investigation into potential unmarked graves on the site following the grisly discovery of a mass grave of babies in a septic tank near a care home in Tuam earlier this month. In a statement in the wake of the vote, Dublin City Council said it was ""in total agreement with the motion."" No formal proposal has yet been made to redevelop the site, but survivors groups will be consulted in due course, it added. Regarding a memorial, the council said it is ""very open to the suggestion of a suitable memorial and this will be a condition of any sale."" But for Councillor Gary Gannon, who tabled the emergency motion, a condition of sale is simply not good enough. ""It feels wrong at this point to be handing over the only laundry that's in possession of the state to private development,"" he told DW. ""It's like we're going to bulldoze that building and forget anything ever happened."" The only laundry owned by the state, campaigners say it is a unique opportunity to commemorate the Magdalene women Gannon believes the building should be turned into an education center where the public can learn about the abuse of women in religious institutions across the country. ""I think that building speaks a lot to who we are as a people and a lot to what we've done in our past,"" he said.-""And I think if we've forgot that in 10, 20-or 30 years' time, it's a sad reflection of the society that we want to be."" Beatings-for petty mistakes Sean MacDermott Street was only one of a wide network of laundries run by four Catholic orders during the 19th and 20th centuries. Between 1922 - when Ireland became independent - and 1996, over 10,000 girls and women passed through their doors. Some were victims of abuse, others were committed by courts, unwed mothers or considered troublesome at other institutions. Read:-Vatican sex abuse victim Marie Collins quits commission, citing 'shameful' resistance In an interview with researchers in 2013, Lucy, a survivor of the Sean MacDermott Street laundry, told her story.*-Sexually and physically abused for years by her father and older brothers, she was placed in the laundry by social services at 14 years old. Even as recently as 1979 nuns ""ruled with an iron fist,"" she said. During her year there she worked 10 hour days, scrubbing living quarters and producing inventories of clothes as they arrived in the laundry, where mistakes resulted in routine beatings. ""If you forgot to change [a number] or if you ... lost a sock or something, you'd be beaten to a pulp."" The girls were kept behind barbed wire and locked doors, only allowed to leave once a week with nuns to buy toiletries. When guests were present, nuns were careful to keep the appearance of normality. ""They were able to put on this persona that that they were happy ... but as soon as people went it would be diverted back to being the baddies again."" During her time in Sean MacDermott Street, Lucy attempted suicide by drinking two bottles of cough medicine, but eventually escaped when she spotted an unlocked door. Dehumanizing treatment as she describes was standard, with girls and women stripped of their identities as names were changed on entry. Rules of silence and devotion were enforced, and they were often made to make uniforms and have their hair cut. Irish state complicit Though owned and run by religious orders, the state too played an active role, said Maeve O'Rourke, legal adviser to Justice for Magdalenes Research. Magdalene laundries often won state tenders, able to undercut other business by not using unpaid labor. Documents show the Sean MacDermott Street laundry had a contract with the Aras an Uachtarain, the official residence of the Irish president. ""The state knowingly gave business to the Magdalene laundries knowing that the women were not being paid,"" said O'Rourke. In fact, an employment act passed in 1936 specifically exempted nuns from the obligation to pay workers. Maeve O'Rourke of Justice for Magdalenes Research thinks the final decision should lie with survivors Taoiseach (Prime Minister) Enda Kenny gave a formal apology to victims in 2013, in which he lamented the hurt and stigma suffered by the Magdalene women. A redress scheme was established to which the state has paid tens of millions of euros, but to this day not one of the four orders who operated laundries has contributed to the compensation fund. Read:-Irish inquiry: State involved in laundry forced labor Despite Kenny's apology, the state is still unwilling to acknowledge the full extent of its involvement, said O'Rourke, who pointed to more recent government statements downplaying its role and the existence of systemic abuse. ""We now appear to have rolled back on the apology, and the state seems to think that maybe the apology was all that it needed to do to get rid of the scandal ... It's not acknowledging that atonement and reparation is an ongoing process that only began with the apology. Like Gannon, she doesn't believe the council outsourcing the memorial to a third party --as was done with the running of the laundries themselves --is acceptable, but that the final decision should lie with the women themselves. ""Consulting with Magdalene women and listening to their voices is a key way the state can attempt to atone for its past behavior. ""Because these women were completely silenced in the past and shamed and stigmatized, and it is absolutely essential for us now to tell the women that we want them to decide how Ireland should remember what they went through."" *K. O'Donnell, S. Pembroke and C. McGettrick (2013), ""Oral History of Lucy.""-Magdalene Institutions: Recording an Oral and Archival History. Government of Ireland Collaborative Research Project, Irish Research Council, pp. 1-88.", -3032,2017/3/19,http://www.dw.com/en/xi-tillerson-look-forward-to-new-era-in-us-china-relations/a-38012456?maca=en-rss-en-all-1573-rdf,"Xi, Tillerson look forward to 'new era' in US-China relations","US Secretary of State Rex Tillerson has told Chinese President Xi Jinping that Donald Trump is looking forward to ""enhancing understanding"" with China. North Korea's activities have tested bilateral relations.","In China, US Secretary of State Rex Tillerson has pledged to work with the Beijing government to rein in nuclear-armed North Korea. China's foreign minister called for ""cool heads."" (18.03.2017) US military action against nuclear-armed Pyongyang is an ""option on the table,"" Secretary of State Rex Tillerson said after visiting the Demilitarised Zone dividing the two Koreas. Diplomacy has failed, he warned. (17.03.2017) America's top diplomat Rex Tillerson met with the Chinese leader-in Beijing's Great Hall on Sunday at the end of-his first trip to Asia since taking office. President Xi Jinping told reporters he was glad to see good progress from Tillerson's meetings in China so far, and that he and US President Donald Trump were both ""expecting a new era for constructive development"" in bilateral relations. ""You said that China-US-relations can only be friendly. I express my appreciation for this,"" Xi said, adding that-he and Trump had pledged in a phone call last month ""to make joint efforts to advance China-US cooperation."" ""I'm confident that, as long as we can do this, the relationship can surely move in the right direction,"" Xi said. Negotiations are underway for the two leaders to meet in the United States next month. Tillerson replied that Trump places a ""very high value on the communications that have already occurred"" between Xi and Trump. ""He looks forward to enhancing that understanding in the opportunity for a visit in the future,"" Tillerson said.- North Korea has conducted five nuclear tests and a series of missile launches in recent years in defiance of US resolutions Another provocation It wasn't clear whether Tillerson and Xi discussed North Korea's missile and nuclear activities, which have strained relations between the two powers. Just hours before their meeting Sunday, North Korea-conducted a rocket engine test, with leader Kim Jong Un declaring the ""new birth"" of its rocket industry, according to state media. Tillerson and his Chinese counterpart Wang Yi pledged in talks-Saturday to work towards denuclearizing the North, but they did not provide further details on how they would go about it.- 'All options on the table' Before arriving in the Chinese capital, Tillerson had stops in Japan and South Korea, where he announced that Washington's policy of ""strategic patience"" with Pyongyang was over, and that military action was ""on the table."" That kind of rhetoric is at odds with-Beijing's preference for diplomatic talks. The US has sought to pressure China, North Korea's main trading partner and historic ally, to use its influence to curb its rogue neighbor's weapons program. Trump has accused China of not doing enough, while Beijing has voiced alarm over a US anti-missile defense system being deployed in South Korea. Undeterred by UN sanctions, North Korea has conducted five nuclear tests and a series of missile launches. Experts estimate it could soon have a nuclear-tipped missile capable of reaching the US. nm/rc (Reuters, AFP) -", -3033,2017/3/19,http://www.dw.com/en/the-schulz-effect-a-change-of-fortune-for-the-spd/a-38000177?maca=en-rss-en-all-1573-rdf,The 'Schulz effect' - A change of fortune for the SPD,"Selfies, flowers, autographs - on the campaign trail, Martin Schulz rushes from one enthusiastic SPD base to the next. It's a change of fortunes that was considered impossible in this election year: the ""Schulz effect.""","Martin Schulz has hardly arrived at this latest stop on his press junket tour before a white-haired man falls on the recently departed president of the European Parliament. ""I've been a member of this party for 70 years, Martin, I believe in you!"" Schulz looks at the man, clenches his fist, ""Yes. We are winning."" With just those few words, Schulz sums up the recent rise of the Social Democrats (SPD). A victory against the overwhelmingly powerful Angela Merkel?- Three months ago this sounded ridiculous, but it is clear that Martin Schulz is leading the SPD into the Bundestag election campaign. Poll numbers have risen by more than 10 percent, and it has been 20 years since the SPD gained so many new members. In Germany, there is talk of the ""Schulz effect."" At a special party conference on Sunday in Berlin, Schulz is set to be elected head of the SPD and officially named the party's candidate to run against Chancellor Angela Merkel in elections set for September. In this local community event in Saarland - Germany's smallest state - supporters stand in front of their benches, clapping rhythmically as Schulz takes the stage. Tables are decorated with balloons reading ""I want fresh wind. SPD.""-Schulz stands at the lectern; a-red SPD flag hangs on each side of him and red light bulbs illuminate the podium. Schulz begins telling one tale after another about regular people. There's the worker who is canned for a minor mistake while the failed manager rakes in millions in rewards. The local baker who is left with nothing while the global coffee chain stocks its profits in a tax haven. The nurse, the bus driver, the single mother. With these, he works up to his rallying cry at the end: ""Those who work hard for their money must not end up worse off than those who only have their money working for them."" And trade unions, too, can rely on him, he adds. The SPD has surged in the polls since Gabriel made way for Schulz Since January 24, when Schulz took over top billing from presumptive SPD chancellor candidate and party boss Sigmar Gabriel, social justice has been his mantra. Here in the historically coal-mining region of Saarland, now rife with industrial production - his social justice stance plays particularly well. He finds great support here for the amendments he has announced to Agenda 2010 - the series of welfare and labor reforms embarked upon by the then-coalition government of the SPD and Greens. Since the early 2000s, the SPD has been sinking. Parallel to this, its farther-left competition ""Die Linke"" (The Left) has been gaining ground. Here in Saarland, the Left has increased support by 15-20 percent and nationwide by a full 10 percent. Schulz wants to woo these voters back by appealing to the SPD's core donors: reaching out to workers and labor unions, being a champion for the little guy. Across these events, attendees cheer ""Martin, Martin!"" Schulz seems to hit a nerve. Here in Saarland, Anke Rehlinger - the regional SPD top candidate - has been a fixture at his side. But photographers and camerapeople are only interested in Schulz. He has just bowed to her, laughing: ""And this on International Women's Day!"" But once on stage, he makes a serious comment on the subject. ""The equality of men and women is non-negotiable with me. Not even under the cover of freedom of religion."" His criticism is aimed primarily at Islam, but also affects the Alternative for Germany (AfD). Schulz wants to keep the right-wing populists as small as possible. In Saarland, he also makes clear he does not intend to let anyone's discomfort about lack of integration lead them to the AfD. ""Let's fight together to make sure the AfD scores its worst result here,"" he adds to rousing cheers. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZQi8 Schulz knows that some people accuse him of populism. He himself says ""I listen to problems and speak to them."" The best opportunity here is in this small Saarland community: with his own relatives. Schulz disappears into a bright green house. At the entrance, a sign reads ""The Schulzes."" His father, the 11th child of a miner, was born here. Today some of his cousins live here. When Schulz re-emerges from the family home, he speaks of a moving moment and a ""return to the roots."" And suddenly he is next door: the neighbor has just looked out and invited Schulz in. As he stands in her living room, the woman gushes: ""I never imagined it! I have no words. Here he is with us! I think it's great."" Schulz's grassroots overtures are credible - he's able to and enjoys being near people. Scene change: Schulz is now in the small town of Kamen, in Germany's western state of North Rhine-Westphalia (NRW). It's no coincidence that Schulz spends a lot of time in these two states: both NRW and Saarland hold state elections this spring. While in tiny Saarland it was mostly over-60s interested in the SPD frontman, here in NRW he is celebrated like a pop star. Next to the stage 20-something young women swarm him, wanting a selfie. Schulz: ""No, no, I have to go, girls. I have to get to the airport!"" Young woman: ""But please, just one pic."" Schulz: ""I can't."" Young woman: ""The Recklinghausen Young Socialists have fought for you! Please!"" Schulz: ""But you'll still fight for me even-if you don't-get a selfie, right?"" Young woman: ""But please!"" Schulz: ""Alright then."" In fact, the Young Socialists would go through the fire for Schulz - even without a selfie. It's an incredible twist of fate. Between the Young Socialists and Sigmar Gabriel there was still an openly displayed mutual rejection. Today everything is different. After the event, Schulz signs a series of brand-new SPD party books handed to him by young people. Schulz has become a kind of German Bernie Sanders for the under-30s. Trump and Brexit are already politicized, and a new generation seems to be emerging for the SPD. Sometimes enthusiasm takes on almost hysterical dimensions. A young woman wants a selfie. ""Martin, I love you so. You are my second father!"" Schulz replies ""Now don't be silly"" - but really does not seem bothered by the adulation. In this election year, older people believe in him, younger people love him - things couldn't be better for Martin Schulz.", -3034,2017/3/19,http://www.dw.com/en/german-media-only-marginally-competent-in-turkey-reporting/a-38010708?maca=en-rss-en-all-1573-rdf,German media 'only marginally competent' in Turkey reporting,"The German-Turkish relationship is in tatters. What we know about Turkey, about Erdogan and about the PKK comes from media reports. In a DW interview, Turkey scholar Caner Aver criticizes their limited perspectives.","Deutsche Welle: Would you say that German media see Turkey as a problem country, with an autocrat - Erdogan - as president and a suppression of Kurds? Caner-Aver: A large part of the German media reports with a deficit-oriented approach. While this is largely justified, there is often too little differentiation. Why? Because they are not sufficiently looking behind the scenes. Internal political problems, in particular, are not properly and sufficiently taken into consideration. On which political and-social problem areas do German media report competently and with distinction? Few German media report on the actual role of the PKK, which has been classified as a terrorist organization in Germany as well as in the EU. So it is not only Turkish Germans or official Turkish policy calling the PKK a terrorist organization. There are, however, some examples of media institutions that address this, and some print media report very objectively. Another example: Not all adult Turkish Germans are AKP voters. There is a broad opposition movement in Turkey and also among Turks living abroad. In German media, this is not always reported in a correct way or on a factual basis.- The media presentation of Turkey in the Middle East, in the context of Syria or Iraq, is better in that respect. There are more objective reports, including reports that look at things in a more out-of-the-box way. But reporting is essentially very much mainstream - oriented towards the problems and working off slogans. Saying things like Turkey has long been an autocracy, if not already a dictatorship, that the country has drifted off in one direction, and such things. Caner Aver, from the Center for Turkish Studies and Integration Research in Essen, Germany Rarely has German media reported on Turkey in such an ongoing and critical manner. Does this worsen the-German-Turkish relationship? It has already been damaged. German-Turkish relations have actually been burdened since 2005 by the rejection of the EU accession request, by then-President Nicolas Sarkozy in France and by German Chancellor Angela Merkel. They have slowly deteriorated. Due to the domestic developments in Turkey, the actions taken against protesters, and now hundreds of thousands of people dismissed from their jobs in Turkey,-relations have truly reached a low point. Economic relations are still good, but there is a lot of mistrust. People have lost faith. And this also has a negative effect on portions of the Turkish-German populace. When Turkish AKP politicians appear in Germany, we see TV footage of women wearing headscarves and men waving crescent flags. Who are the German Turks, sociologically speaking? The ""simple people"" they are often condescendingly portrayed to be? No, the level of education of the Erdogan supporters cannot be pinned down so easily. There are also highly qualified people of the second and third generation in Germany among them who stand by Erdogan or the AKP and vote for them. It is more people who have identity and integration deficiencies, who do not feel at home here in Germany for various reasons. Especially in the conservative-religious milieus, people face the increasing challenge of-justifying their religious practice. The discussion about the role of Islam, its structural role in Germany, also leads some people here to reorient themselves towards Turkey, because they still do not feel comfortable here in Germany despite their very good integration efforts. In fact, only 10 percent of the German Turks-are actually AKP voters. About half of those are naturalized and thus cannot actually vote in Turkey. But also among the Turkish nationals in Germany who were among the 1.4 million voters, only 40 percent took part in the last election, of which 60 percent voted for Erdogan. Thus it is not the majority, but the minority; and secondly, it is these people who cannot find an emotional homeland here in Germany-on which Erdogan has had an identity-based influence for many years in order to give them an emotional homeland. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZMT6 Is the identity problem of the German Turks correctly understood by the media? No, not enough. Here one must clearly take up new aspects of transnationality, of ""hyphen-nationalities,"" and also-understand these as normality. People who live in migration contexts have in their hearts two homelands. The challenge immigrants face in choosing a country is and remains a problem. In globalized times or in immigration societies such one-dimensional orientations and identities are no longer valid - and this reality is given short shrift in the media as well as in the public discussion. The German media is, therefore, only marginally competent in analyzing the problem? Indeed you can say that. There definitely is considerable potential for improvement here. Caner Aver specializes in political geography at the Center for Turkish Studies and Integration Research in Essen, Germany. The foundation focuses on transnationalism and the Turkey-EU relationship. This-interview was conducted by Volker Wagener.", -3035,2017/3/19,http://www.aljazeera.com/news/2017/03/tillerson-pledges-work-china-170319044539121.html,Rex Tillerson pledges to work together with China,"US secretary of state visits China to strengthen ties, address N Korea's nuclear programme and discuss trade issues. Conciliatory language","Chinese President Xi Jinping and Rex Tillerson, the-US secretary of state, have held talks in Beijing and sent out a message that they would work to strengthen ties between their countries. After the meeting in the Chinese capital on Sunday, Xi said he and US President Donald Trump had resolved in a phone call last month ""that we need to make joint efforts to advance China-US cooperation and we believe that we can make sure the relationship will move ahead in a constructive fashion in the new era"". He said: ""I'm confident that as long as we can do this, the relationship can surely move in the right direction."" In his first first face-to-face talks with Chinese leaders, TIllerson pledged to work together in addressing the threat posed by North Korea's nuclear programme and cautioned that regional tensions had reached a ""dangerous level"". Al Jazeera's Adrian Brown, reporting from Beijing, said Tillerson's meeting with Xi was a courtesy call that only lasted seven minutes. ""President Xi Jinping was receiving the US secretary of state because China's top envoy was in Washington last month where he met President Donald Trump,"" he said. ""The real talking was done behind the scenes on Saturday, principally with China's foreign minister Wang Yi, and North Korea topped the agenda. ""We've seen flickers of cooperation between the US and China but no firm agreement on how to deal with North Korea."" The language from Tillerson and Wang was notably conciliatory after a run-up in which Trump accused China of doing nothing to control its rogue neighbour, while China accused the US of fuelling hostilities. ""I think we share a common view and a sense that tensions in the peninsula are quite high right now and that things have reached a rather dangerous level,"" Tillerson said after talks with Wang. ""We will work together to see if we cannot bring the government in Pyongyang to a place where they want to make a different course, make a course correction, and move away from the development of nuclear weapons."" Speaking to Al Jazeera from Beijing, Victor Gao, director of the China National Association of International Studies, said: ""US-China trade right now is worth almost $600bn and it is a fact that China has a huge surplus in the trade with the US. ""What China wants to see is that, rather than get at each other's throat, both China and the US further increase their exports to each other, eventually reaching about $1 trillion."" Tillerson, a former oil executive, began his first Asian visit as secretary of state in Japan on Wednesday followed by South Korea. He travelled to- China- from South Korea on Saturday. Previously, Tillerson had said in Tokyo that 20 years of diplomatic and other efforts, including a period when the US provided North Korea with $1.35bn in assistance ""to take a different pathway"", had come to nothing. China and US: Face to face He said South Korea that US military action against North Korea is an ""option on the table"", and warned-the country to end its missile and nuclear programmes. The US has been pressing China to do more to rein in North Korea's nuclear and missile programmes, including imposing tougher sanctions on North Korea. However, China has been angered by the deployment of a US missile defence system to the South. China says the system's radar is a threat to its security. North Korea has a long-standing ambition to become a nuclear power and conducted its first underground atomic test in 2006, in the teeth of global opposition. While Tillerson was holding meetings in China on Saturday, North Korea -announced that it conducted a ground test of a new type of high-thrust rocket engine that leader Kim Jong-un reportedly described as revolutionary breakthrough for the country's space programme. Source:-Al Jazeera and news agencies", -3036,2017/3/19,http://www.aljazeera.com/indepth/features/2017/03/displacement-insecurity-turkey-diyarbakir-170317125551093.html,Displacement and insecurity in Turkey's Diyarbakir Mariya Petkova,"A year after major security operation against the PKK, the Sur district of Turkey's Diyarbakir is struggling to recover. By","Diyarbakir, Turkey - Vahed Cetiner has been working at the same corner on Hazreti Suleyman Street in Diyarbakir's historic Sur district for more than 50 years. Until recently, the 67-year-old shoe shiner says he earned a decent living, and he and his 10 children had a good life. ""It was really nice here. Sur was like paradise for us,""-Cetiner told Al Jazeera. But after the Turkish government launched a security operation against groups affiliated with the-Kurdistan Workers' Party (PKK) in the Sur district on December 18, 2015, he was forced to stop working for the first time in his life, fleeing with the rest of the area's civilian population. His house was destroyed during the security operation and he now lives in a rented apartment in another part of Sur, paid for by the government.- Cetiner is among more than 20,000 people displaced during the security operation, which ended in March 2016. According to the United Nations, the fighting in the country's southeast between security forces and the PKK - designated as a ""terrorist"" organisation in Turkey - took more than 2,000 lives and displaced between 350,000 and 500,000 people. REPORTER'S NOTEBOOK: Exile in Diyarbakir One year on, local authorities say the situation in the city is relatively stable. ""Terror incidents in Diyarbakir city have now stopped and public security has been restored,"" Diyarbakir Governor Huseyin Aksoy told Al Jazeera, noting that an economic recovery plan and reconstruction efforts for the destroyed parts of Sur have been launched. But for Sur residents like Cetiner, displacement and insecurity have taken a severe socioeconomic toll - and under the new urban reconstruction plan launched by the government, not all will be able to return to their old neighbourhoods. The decades-old conflict between the PKK and the Turkish state had previously been fought largely outside of major urban centres. But in the summer of 2015, a few months after the collapse of peace talks with the government, clashes erupted in major cities across southeastern-Turkey. ""We told the PKK not to come here, but they didn't listen. If the PKK hadn't come here, we wouldn't have faced this situation,"" Cetiner said. Violence escalated throughout the autumn of 2015, and efforts were made to mediate between the PKK and security forces. In late November 2015, prominent human rights lawyer Tahir Elci came to Sur to call for a de-escalation of violence; he was killed as a shoot-out between police and unknown assailants broke out in the streets of Sur. Aksoy told Al Jazeera that the investigation into his death is still ongoing.- As violence escalated, PKK fighters started building barricades in Sur's narrow alleyways and digging ditches to prevent security forces' vehicles from entering. The government responded with curfews and security operations employing heavy weaponry. As a result, six districts were badly damaged by the fighting, and the residents of four of them - around 3,000 families - are still unable to return, Aksoy confirmed. Shortly after the end of the security operation, the government launched a reconstruction plan aimed at rebuilding the damaged neighbourhoods and restoring historic buildings. The funds allocated for restoring mosques, churches and other historic buildings amounted to 40 million Turkish lira ($11m), Aksoy said. ""The project that we have started conducting in Sur was originally signed by both the government and Diyarbakir municipality in 2012,"" Muhammed Akar, head of the Justice and Development Party's (AKP) Diyarbakir branch, told Al Jazeera. ""We want to save those neighbourhoods from slums and rebuild them according to their historic fabric."" In December 2016, Amnesty International released a report saying that Sur residents have suffered forced displacement and ""what may amount to collective punishment"". READ MORE: Kurdish city battered by Turkey's crackdown Akar said that displaced Sur residents have three options: to return to newly built houses in Sur, to take low-cost government-built housing in another part of Diyarbakir, or to receive monetary compensation for their destroyed houses. But the government scheme has not been well received by some local residents. ""They offered me 100,000 Turkish liras [$27,000], but I refused. I told them, 'Give me back my house!'"" Cetiner said. One of his sons accepted 96,000 Turkish liras ($25,600) for his house, but it is not enough for him to buy a new one, Cetiner said. He is now waiting to receive more information about the houses the government is building in his old neighbourhood. According to Akar, local residents who choose to return to their neighbourhoods will have to pay the difference between the price of their old house and the new one, but the government will facilitate the process with a long-term payment scheme. Diyarbakir's Chamber of Architects has criticised the government's reconstruction plan for Sur, expressing concern over damaged and destroyed historical sites. Herdem Dogrul, a member of the chamber's board of directors, told Al Jazeera that the demolitions and reconstruction plans will have a detrimental effect on the communal life of the district and exacerbate poverty. ""In Sur, people live poor lives. They don't have a lot of money. Those who did not own their house will not receive any compensation. They can't rent a house in other parts of Diyarbakir because they are too expensive,"" Dogrul said. Mehmet Cenapli and his family had nowhere to go during the fighting last year. They spent three months sleeping in the corridor of their apartment - away from the windows, fearing bullets and blasts, he said. The building survived the fighting unscathed, except for a hole in one wall where a shell lodged itself but did not explode. It took him months to save up enough money to repair the windows shattered by explosions. During the fighting, his daughter's house was badly damaged, and she and her family moved in with him. Today, out of a household of eight, only his son works, holding a job as a waiter. ""It is worse than before. We don't have any jobs. Every morning, I go out from home and go to the coffee shop, and in the evening I return [empty-handed],"" said Cenapli, 58, who used to work as a manual labourer before the fighting escalated in late 2015. According to Sahismail Bedirhanoglu, president of the Eastern and Southeastern Industrialist and Businessmen Association Federation in Diyarbakir, during the five months of the security operation, nearly 2,000 shops were closed and 15,000 people lost their jobs. ""I identified the barricades and ditches [dug in the cities] as the biggest mistake of the PKK in its history,"" Bedirhanolgu told Al Jazeera. ""The state reacted very heavily. It caused huge damage to this city."" He says that the government's measures for economic recovery have been positive, including interest-free loans to local businesses, and Sur has slowly started to recover. MP Sibel Yigitalp from the pro-Kurdish opposition Peoples' Democratic Party (HDP), meanwhile, criticised the reconstruction plan for Sur, saying that local residents were not consulted when decisions were made about how to proceed with the rebuilding of destroyed neighbourhoods. ""This is why we need decentralised administration. The central administration doesn't take into consideration what local people want when making decisions,"" she told Al Jazeera. Thirteen of the HDP's MPs have been detained since last year, and the two co-chairs of the party, Figen Yuksekdag and Selahattin Demirtas, have been arrested on ""terrorism""-related charges - allegations that the party strongly denies. The political situation in Turkey's southeast remains tense, as arrests have continued over the past few months. In February, the government said that it had detained more than 800 people for alleged links to the PKK. ""We need to find a solution to [the] Kurdish issue. We need an atmosphere of dialogue,"" said Bedirhanoglu, adding that peace is needed in order for the region to recover fully. But some Sur residents remain pessimistic. ""I don't have hope,"" Cenapli said. ""I don't think things will get better."" Source:-Al Jazeera", -3037,2017/3/19,http://www.aljazeera.com/news/2017/03/paris-airport-attacker-extremely-violent-criminal-170319051845700.html,Paris airport attacker 'extremely violent' criminal,"Frenchman Ziyed Ben Belgacem, who was shot dead at Paris Orly airport, was known to police for a number of convictions. Multiple prison stints","Ziyed Ben Belgacem, who was shot and killed by a soldier at Orly airport in Paris on Saturday, was known to French police for a string of criminal convictions, involving violence and theft. Belgacem, 39, a Paris-born Frenchman, was shot as he attacked a female soldier, trying to steal her assault weapon, ending a spree of violence-that lasted several hours. While grappling with the soldier, he shouted ""I am ready to die for Allah"", according to Francois Molins, Paris prosecutor,-who-described Belgacem as ""an extremely violent individual"". His rap sheet paints a picture of a seasoned criminal, well used to courts and spells behind bars. Belgacem had nine entries on his record, from violence to receiving stolen goods. In 2001, he was sentenced to five years in prison for armed robbery. This was not his last stint in prison. In 2009, Belgacem was handed successive sentences of three and five years for drug trafficking. While he was in prison, officials noticed ""signs of radicalisation"", according to Molins, and he was known to police but not considered a serious threat. His house was searched, with no result. Al Jazeera's Natacha Butler, reporting from Paris, said three people were in custody after the attack. ""There has been a series of attacks in France over the past two years and the country has been in a state of emergency since 2015,"" she said. ""With the presidential elections just five weeks away, this incident will throw the spotlight, once again, on security."" Belgacem lived on the sixth floor of a building in the northeastern Paris suburb of Garges-les-Gonesse, in the multi-ethnic Seine-Saint-Denis area. Neighbours described him to AFP news agency as a withdrawn, serious man who nobody really knew. Officers found several grams of cocaine in his apartment, and he was a regular at an Italian-Cuban bar in the south of Paris, which was known for its rowdy nights, a local resident said. It was to this venue he headed immediately after drawing a gun and firing at officers earlier on Saturday, slightly injuring one in the head. He then burst into the bar, threatened customers and fired again without injuring anyone. Telling his relatives by phone that he had been up to some ""mischief"", he then drove towards what prosecutors described as the ""crescendo"" of his destructiveness, stealing a car and heading towards the airport, with a can of petrol and a copy of the Quran in his bag. Source:-Al Jazeera and news agencies", -3038,2017/3/19,http://www.aljazeera.com/news/2017/03/north-korea-tests-high-thrust-rocket-engine-170319032430303.html,North Korea 'tests new high-thrust rocket engine',State news agency report suggests engine will be used for country's space and satellite-launching programme Claim questioned Ballistic missiles,"North Korea says it has conducted a ground test of a new type of high-thrust rocket engine that leader Kim Jong-un is calling a revolutionary breakthrough for the country's space programme. Kim attended the test at the Sohae launch site, according to a report on Sunday by the Korean Central News Agency, which said the test was intended to confirm the ""new type"" engine's thrust power and gauge the reliability of its control system and structural safety. The KCNA report said Kim called the test ""a great event of historic significance"" for the country's indigenous rocket industry. He also said the ""whole world will soon witness what eventful significance the great victory won today carries"" and claimed the test marks what will be known as the ""March 18 revolution"" in the development of the country's rocket industry. The report indicated the engine is to be used for North Korea's space and satellite-launching programme. North Korea is banned by the UN from conducting long-range missile tests, but it claims its satellite programme is for peaceful use, a claim many in the US and elsewhere believe is questionable. The test has been reported by KCNA as Rex Tillerson, US secretary of state,-is in China on a tour of Asia that has been closely focused on concerns over how to deal with North Korea's nuclear and missile programmes. Al Jazeera's Adrian Brown, reporting from Beijing on Sunday, said: ""Just hours before Tillerson met Chinese-President Xi Jinping, North Korea tested its new rocket engine that is possibly part of its steps to develop a nuclear-tipped missile capable of reaching the US. ""It underscored once more the inability of China to rein in North Korea. ""Tillerson's meeting with Xi was a courtesy call that only lasted seven minutes. The real talking was done behind the scenes on Saturday, principally with Wang Yi, China's foreign minister,-and North Korea topped the agenda."" North Korean officials have said that under a five-year plan they intend to launch more Earth observation satellites and what would be the country's first geostationary communications satellite - which would be a major technological advance. Getting that kind of satellite into place would probably require a more powerful engine than its previous ones. The North also claims it is trying to build a viable space programme that would include a moon launch within the next 10 years. ""We've seen flickers of cooperation between the US and China but no firm agreement on how to deal with North Korea,"" Al Jazeera's Brown said. ""China has called for cool, calm dialogue but the US has said that the patience of the international community has been worn very thin. The coaxing, the cajoling, the sanctions, threats - all have not worked. It is hard to know whether the engine test was deliberately timed to coincide with Tillerson's visit, but North Korea has been highly critical of ongoing US-South Korea wargames just south of the Demilitarised Zone and often conducts some sort of high-profile operation of its own in protest. Earlier this month, it fired off four ballistic missiles into the Sea of Japan, reportedly reaching within 200km of Japan's shoreline. While building ever better long-range missiles and smaller nuclear warheads to pair with them, North Korea has marked a number of successes in its space programme. It launched its latest satellite - the Kwangmyongsong 4, or Brilliant Star 4 - into orbit on February 7 last year, just one month after conducting what it claims was its first hydrogen-bomb test. It put its first satellite in orbit in 2012, a feat few other countries have achieved. Rival South Korea, for example, has yet to do so. Victor Gao, director of the China National Association of International Studies, says China eventually wants to see the denuclearisation of the Korean Peninsula. ""The situation on the Korea Peninsula is deteriorating. There is continued nuclear testing by the DPRK [North Korea] and there is the proposed installation of the THAAD missile defence system in South Korea,"" he told Al Jazeera from Beijing on Sunday. ""China is urging all parties to exercise great caution in a bid to lower, rather than further escalate, tensions. Beijing [also] does not want the THAAD missile system installed in South Korea. ""US-China trade right now is worth almost $600bn, and it is a fact that China has a huge surplus in its trade with the US. What China wants to see is that, rather than get at each other's throat, both China and the US further increase their exports to each other, eventually to reach about $1 trillion."" Source:-Al Jazeera and news agencies", -3039,2017/3/19,http://www.aljazeera.com/indepth/features/2017/03/fifa-delay-israeli-settlement-decision-fuels-concern-170317080253187.html,FIFA delay on Israeli settlement decision fuels concern Nigel Wilson,World football body will soon have to resolve the status of six Israeli football teams based in the occupied West Bank. By,"Ramallah, occupied West Bank - Nearly six months after the FIFA Monitoring Committee Israel-Palestine was due to present its recommendations on football in the region, human rights groups have grown increasingly concerned over its failure to resolve the status of six football teams based in Israeli settlements in-occupied Palestinian territory. Established in May 2015, and tasked with addressing a number of Palestinian complaints --including issues over freedom of movement for football players and the Israeli football teams based in settlements --the specialist committee's mandate is set to expire at the FIFA congress in May 2017. President of the Palestinian Football Association (PFA) Jibril Rajoub said that he could not understand the months of delays, describing them as a ""fatal mistake"" on the part of the FIFA council and monitoring committee. READ MORE: Palestinians urge FIFA to level the playing field Still, he told Al Jazeera that it was important to comply with the committee and finish the process. The PFA is set to meet the monitoring committee on March 22, which could be the last such meeting in advance of the FIFA congress. ""Now, we have the last meeting and we have to explain our position. If they are going to solve this issue - OK. If not, we have no other choice: we will go to the congress next May in Bahrain and ask for the imposition of sanctions against the Israeli federation,"" Rajoub said. The six Israeli football teams in question are based in Jewish settlements across the occupied West Bank: Kiryat Arba, Givat Zeev, Maaleh Adumim, Ariel, Oranit and Tomer.- Palestinians and the international community have affirmed that Israeli settlements were built on Palestinian land in violation of international law and constitute a major obstacle to a two-state solution to the-Israeli-Palestinian conflict. The Israeli government has argued that the settlements in question were built in Area C of the occupied West Bank, where Israel has full security and administrative control under the Oslo Accords, and should not be deemed unlawful. However,-the United Nations Security Council passed a resolution in December 2016 that reaffirmed the unlawfulness of the settlements on occupied Palestinian land. In the case of the six football teams based in the settlements, the PFA has charged that the Israeli Football Association (IFA) is violating FIFA statutes by hosting competitions on the territory of another member association without permission. In a report published in September 2016, Human Rights Watch stated that ""by allowing the IFA to hold matches inside settlements, FIFA is engaging business activity that supports Israeli settlements, contrary to the human rights commitments it recently affirmed"". Sari Bashi, the Israel/Palestine advocacy director at Human Rights Watch, expressed concern over the ongoing delays and called on FIFA to stop sponsoring games in the settlements. ""There are clear precedents for FIFA prohibiting an occupying power from fielding teams in its national league from occupied territory. The most recent example was Crimea, where it took just a few months for UEFA, the European Federation, to require Russia to stop including teams from occupied Crimea in its national league,"" Bashi told Al Jazeera. ""FIFA statutes are clear. And FIFA recently reaffirmed its commitment to fulfilling its human rights responsibilities. Human Rights Watch's position is that, by allowing these clubs to play in settlements, FIFA is contributing to serious human rights abuses,"" she added. OPINION: Why does FIFA still recognise Israeli settlement teams? FIFA declined to comment on the progress of the monitoring committee, but the committee is likely to present its recommendations following final meetings with the Israeli and Palestinian national football associations in late March. Before those meetings, a coalition of Palestinian and international human rights organisations denounced FIFA for its failure to take action regarding the settlement-based clubs, and accused the world football body of bowing to political pressure to soften the recommendations in the report. ""The committee has been under intense pressure from the Israeli government to water down its recommendations to exclude settlement clubs from official Israeli leagues. [FIFA President Gianni] Infantino's delay in putting out the report shows he is not willing to stand up to Israel's bullying,"" said Sharaf Qutaifan, from the Palestinian Campaign for the Cultural and Academic Boycott of Israel. If the committee's report were to be delayed until the FIFA congress in May, where a wide range of issues are set to be discussed, it would likely minimise its effect and significantly reduce the likelihood of a vote on the issue taking place at the congress, Qutaifan said. ""FIFA is presenting an illusion of accountability through the committee under the premise of an endless 'dialogue',"" he told Al Jazeera.-""The committee must be dissolved and the congress must take immediate action to uphold FIFA statutes and root out corruption from this process."" Amid mounting international criticism of the monitoring committee's delays, Rajoub remained confident that the PFA's message would be heard and that FIFA would eventually have to enforce its own rules in the case of the settlement-based teams. ""I think Tokyo [Sexwale], the chairman of the committee, is committed to his mission. I think he is trying and I am sure he will act according to the statutes of FIFA. There is no other choice. Whoever is pushing for the delay, I don't think that will lead to any benefit for him,"" Rajoub said. ""Let's go to the meeting next week and, if there is no solution, May is very, very close."" Source:-Al Jazeera", -3040,2017/3/19,http://www.rte.ie/news/2017/0319/860852-rescue-116-search/,Hopes break in weather will allow search for Rescue 116 black box,,"It is-hoped preparatory sonar-work to investigate the exact location of the black box recorder from Coast Guard Rescue Helicopter 116 can be carried out for a few hours-today during a forecast-break in the adverse weather. Three Coast Guard crew members are still missing after Tuesday's crash and it is hoped finding the black box will pin point the wreckage. Poor conditions off the Mayo coast have impeded the search for the missing helicopter over the past few days. A surface water search is continuing-this morning involving Coast Guard units, the RNLI and L?-Eithne in addition to extensive coast line searches at Belmullet and Achill. A Coast Guard helicopter is expected to-re-join the search efforts later. Rescue services are also assessing whether the weather will allow for sonar operations to take place this afternoon, in an effort to find the black box. Heavy swells around Blackrock-have prevented boats from getting near the site where a signal from the recorder has been detected. The Sikorsky S92 helicopter crashed in the early hours of Tuesday morning with a crew of four on board. It is hoped the black box-will be in or beside the wreckage of the helicopter. Yesterday, the funeral of Captain Dara Fitzpatrick, the only one of the crew to be recovered so far, was held in-Dublin. Captain Mark Duffy, Winch Operator Paul Ormsby and Winchman Ciar��n Smith all remain missing. Investigators believe it is-likely to be early next week before more detailed underwater examinations can take place.", -3041,2017/3/19,http://www.rte.ie/news/world/2017/0319/860858-xi-jinping-tillerson/,"US, China seek stronger ties as N Korea hails rocket progress",,"Chinese President Xi Jinping and US Secretary of State Rex Tillerson have pledged in talks-to work to strengthen a relationship strained by disputes over North Korea and trade. Mr Xi met Mr Tillerson in Beijing just hours after nuclear-armed North Korea tested the US-China relationship anew by announcing a provocative rocket engine trial, and with delicate negotiations under way for a summit with Mr Xi and President Donald Trump. Mr Xi told Mr Tillerson that he and Mr Trump had resolved in a phone call last month ""to make joint efforts to advance China-US cooperation, and we believe that we can make sure the relationship will move ahead in a constructive fashion in the new era."" ""I'm confident that as long as we can do this the relationship can surely move in the right direction,"" Mr Xi said. En route to Beijing, Mr Tillerson visited US allies Japan and South Korea where he declared Washington would drop the ""failed"" approach of ""strategic patience"" with Pyongyang - adding that US military action against the North was possible. That marked a sharp break with China, which favours careful diplomacy over heated rhetoric. Relations have also been strained by China's fierce opposition to a US missile defence system being rolled out in South Korea and Mr Trump's Twitter accusation on Friday that China was not doing enough to control Pyongyang, its neighbour and historic ally. North Korea is behaving very badly. They have been ""playing"" the United States for years. China has done little to help! ""?Donald J. Trump (@realDonaldTrump) March 17, 2017 Mr Trump has also repeatedly accused China of unfair trade practices. But Mr Tillerson moved to improve relations-while in Beijing. ""We know that through further dialogue we will achieve a greater understanding that will lead to a ... strengthening of the ties between China and the United States and set the tone for our future relationship of cooperation,"" he told Mr Xi. Earlier, North Korean state media said the isolated regime had tested a powerful engine hailed by leader Kim Jong-Un as a ""new birth"" for its rocket industry, which experts view as cover for developing intercontinental ballistic missiles. The announcement's timing appeared intended to sour Mr Tillerson's China visit. Mr Tillerson yesterday said after talks with his Chinese counterpart Wang Yi that tensions on the Korean peninsula had reached a ""dangerous level"". Mr Tillerson and Mr Wang pledged to work together to denuclearise Mr Kim's rogue regime, but offered no clear way forward. Mr Wang, however, chided Mr Tillerson over his recent tough talk, saying ""we hope all parties, including our friends from the United States, can size up the situation in a cool-headed"" fashion. It was not clear whether Mr Xi and Mr Tillerson discussed North Korea. The North's state news agency KCNA said Mr Kim oversaw the rocket engine test and ""emphasised that the whole world will soon witness what eventful significance the great victory won today carries"" - a possible veiled warning to Pyongyang's adversaries. Ruling party newspaper Rodong Sinmun splashed photos across its front page showing a beaming, baton-wielding Mr Kim looking on as flames roared out of the engine. State TV also showed Mr Kim meeting soldiers and scientists at the site and hugging and giving a piggy-back to an aged soldier who appeared to be bursting into tears in joy. KCNA said the new engine could be used to launch satellites, but rockets are easily repurposed to carry warheads. North Korea is banned by the international community from pursuing nuclear and missile programmes but has defiantly ploughed ahead. It staged its two latest nuclear tests last year and recently fired off missiles which it described as practice for an attack on US bases in Japan. Mr Kim said the successful engine test signified ""a new birth"" of North Korea's rocket industry. Mr Xi met Mr Tillerson as the two sides haggle behind closed doors over a summit with Mr Trump, a frequent China critic. A successful meeting could be crucial in setting the tone for the relationship between the world's two largest economies in coming years. Officials who spoke on condition of anonymity have told AFP that Mr Trump has tentatively agreed to host Xi at his Mar-a-Lago resort in Florida in early April. But they said the plan was running up against differences over North Korea, what ""deliverables"" can emerge, and anger over leaks about the planning. It remained unclear whether Mr Tillerson's apparently cordial Beijing visit would now pave the way. A policeman in front of the plane of Rex Tillerson at the airport in Beijing Mr Tillerson mentioned ""the opportunity for a visit in the future"" but otherwise gave no further details. He left China without speaking to media. Coverage of the low-profile trip has been complicated by the decision to travel without the usual press pack --a break with a half-century of tradition. Instead, Mr Tillerson angered US and foreign correspondents accredited to cover the State Department by travelling with just one journalist - from a little-known conservative publication called the Independent Journal Review.", -3042,2017/3/19,http://www.rte.ie/news/ireland/2017/0319/860849-bells/,Church bells to ring to show solidarity with the world's refugees,,"Hundreds of Christian communities around Ireland and around the world will ring church bells for up to an hour today-to show solidarity with the world's refugees and immigrants. The initiative has been organised by Church of Ireland Dean of Waterford Reverend Maria Jansson and is being supported by-former president Mary McAleese. A ceremony will take place at Christ Church Cathedral Waterford-before the unveiling of its refurbished bells which will be rung from 11am-midday. Dean Jansson has said that many members of other faiths and none have also promised to take part in the call for greater tolerance in the face of what she calls ""the rising, toxic cant of hate, lies, racism and xenophobia"".", -3043,2017/3/19,http://www.rte.ie/news/us/2017/0319/860851-white-house-arrest/,White House security boosted after latest threat,,"The US Secret Service has bolstered security at the White House after a man was arrested after making threats at one its checkpoints, in the latest security incident since Donald Trump became president. CNN reported that the man made a threat claiming he had a bomb in his car, and that he was immediately arrested and the car in which he was travelling seized. President Donald Trump was away in Florida at the time. ""On March 18, 2017 at approximately 11:05 pm, an individual drove a vehicle up to a Secret Service checkpoint located at 15th Street and E Street NW,"" a Secret Service spokesman said in the latest of a series of White House security concerns. ""Upon contact with the individual, US Secret Service Uniform Division Officers detained the individual and declared his vehicle suspicious. In accordance with proper protocols, Secret Service personnel increased their posture of readiness,"" he added. Just hours earlier, a person was arrested after jumping over a bike rack in an apparent bid to reach the fence outside the White House, the Secret Service said. The individual was detained immediately and criminal charges are pending, the agency said in a statement, without identifying the suspect. A Secret Service official speaking on condition of anonymity said the person was not found to be carrying any weapons. The arrest came about a week after a more serious incident that called into question security outside the White House. Just before midnight on 10 March, a man scaled three barriers outside the White House --a perimeter fence, a vehicle gate and then another fence - and walked around the grounds of the executive mansion for 16 minutes before being arrested. That time Mr Trump was inside the building. The White House has seen a string of high-profile trespassing incidents in recent years. In one notable incident in 2014, while Barack Obama was president, an army veteran described as mentally ill-made it into the White House grounds, sprinted across the lawn and entered the building with a knife in his pocket before being tackled and arrested.", -3044,2017/3/18,http://www.rte.ie/news/asia/2017/0319/860860-beijing-coal-plant/,Beijing shuts last coal power plant in switch to natural gas,,"The last large coal-fired power plant in Beijing has suspended operations, with the city's electricity now generated by natural gas, as the city battles a long term heavy smog problem. The shuttering of the Huangneng Beijing Thermal Power Plant comes on the heels of China's annual legislative sessions, where Premier Li Keqiang promised to ""make our skies blue again"" in his state-of-the-nation speech. According to state news agency Xinhua, Beijing has become the country's first city to have all its power plants fuelled by natural gas, an objective laid out in 2013 in the capital's five-year clean air action plan. The Huangneng plant is the fourth to be closed and replaced by gas thermal power centres between 2013 and 2017, cutting nearly 10 million tonnes in coal emissions annually. Xinhua reported the move the night before municipal authorities issued a blue alert for heavy air pollution for the city this weekend. Smog has cloaked the capital for several days and is expected to continue through the week. Since last Wednesday' closing of the National People's Congress, the annual meeting of China's rubber-stamp parliament, PM2.5 (harmful particulate) levels have remained between 200 and 330 micrograms per cubic metre --well above the World Health Organization's recommended maximum average exposure of 25 micrograms per cubic metre in a 24-hour period. The Chinese capital has experienced heavy smog for years The pollution often vanishes during prominent events like the legislative sessions and the 2008 Summer Olympics as authorities order factories to halt activity and force cars off the road. During the 2014 gathering of the Asia-Pacific Economic Cooperation in Beijing, this clear air phenomenon was dubbed ""APEC blue."" During the one-week-and-a-half period of the NPC, average PM2.5 levels hovered between 50 and 80, despite exceeding 200 micrograms per cubic metre just one day before the opening of the parliamentary sessions on March 5. In response to a reporter's question about this disparity at his annual press conference last Wednesday, Mr Li repeated his pledge to target coal-burning and vehicle emissions. ""We may not be able to control the weather, but we can adjust our behaviour and our way of development,"" he said. ""Blue skies should no longer be a luxury, nor will they be.""", -3045,2017/3/19,http://abcnews.go.com/Health/wireStory/opioids-clearing-refuse-prescriptions-46235606,"No opioids, please: Clearing the way to refuse prescriptions",,"The ease of relapsing into opioid addiction has led a growing number of states to help residents make it clear to medical professionals they do not want to be prescribed the powerful painkillers. Connecticut and Alaska are two of the latest considering legislation this year that would create a ""non-opioid directive"" patients can put in their medical files, formally notifying health care professionals they do not want to be prescribed or administered opioid medications. Legislators in Massachusetts and Pennsylvania last year voted to create similar voluntary directives. While patients typically have the right to make decisions about the medical care they receive and whether they want certain treatments, proponents of non-opioid directives contend such a document make a patient's wishes clear, especially in advance of medical care or if a patient becomes incapacitated. They are also seen as a way to prevent someone in addiction recovery from relapsing. The National Institute on Drug Abuse notes how exposure to drugs is one of the most common triggers for relapse. ""Whether it's in some type of directive in a treatment plan, we have a right to choose what we want in our care,"" said Kelvin Young, who is recovering from opioid and heroin addiction and is now director of Toivo, an alternative drug rehabilitation program in Hartford. Such directives, however, are not a one-size-fits-all solution. Seth Mnookin, an assistant professor at the Massachusetts Institute of Technology graduate program in science writing, acknowledged they're ""not the most nuanced approach to the problem."" He has written about taking opioids almost two years ago for kidney stones and a related infection, even though he previously kicked a three-year heroin addiction in 1997. ""There was no question that I needed powerful pain medication. Having a no-opioids directive in that case probably would have created a whole bunch of problems,"" said Mnookin, who said it felt like his ""gut was being hacked at with a phalanx of rusty chisels."" During his hospital stay, Mnookin said, he repeatedly told doctors about his substance use disorder. However, he felt they weren't listening. Ultimately, he did not receive any counseling or advice regarding the risk of a potential relapse or how to guard against one. He wound up creating his own chart to ensure he didn't take too many pills. ""That's not something I think everyone is going to do,"" he said. Mnookin said states should consider requiring patients with substance abuse histories to see an addiction specialist after receiving pain medication to prevent a relapse. ""In my case, I would not have written a directive,"" he said. ""But, the fact that this legislation is being introduced means there's awareness of the necessity of having more conversations, having people outside of an addiction specialist being aware of people's histories."" Sue Kruczek, of Guilford, Connecticut, has worked to pass opioid legislation since her 20-year-old son Nick died in 2013 of a heroin overdose following an addiction to prescription drugs. ""It seems like the hospitals are unaware of the history,"" she said. In Massachusetts, a patient, or the patient's guardian or health care agent, signs a one-page form that states: ""I am refusing at my own insistence the offer or administration of any opioid medications including in an emergency situation where I am unable to speak for myself."" The person also agrees they understand the risks of refusing and release the health care professionals ""from any responsibility for all consequences."" The directive, which must also be signed by the health care practitioner, became available in January. The Pennsylvania directive is still being developed. Pennsylvania state Rep. Ed Gainey, a Democrat, proposed the directive legislation. Representing a section of Allegheny County that's seen hundreds of opioid overdose deaths over the past two years, Gainey said he sees the directive as a patients' rights issue, an opportunity to empower people who may fear relapsing into addiction, but also becoming addicted. ""My whole thing is, 'how can we give patients more control over their destiny?'"" he said. ""A lot of people are more aware now and while they're more aware, it's good that we let them know they have an option to opt out and not receive prescription drugs.""", -3046,2017/3/19,http://abcnews.go.com/International/wireStory/malaysia-hunting-korean-suspects-kims-death-46235420,Malaysia hunting for more N. Korean suspects in Kim's death,,"Malaysia says it is hunting for more North Korean suspects over the killing of the half brother of North Korean leader Kim Jong Un. National police chief Khalid Abu Bakar said Sunday that the new suspects are in addition to the seven North Koreans already being sought in last month's poisoning death of Kim Jong Nam at Kuala Lumpur's airport. Khalid said the new suspects include an ""important person,"" but he didn't give further details. Four of the seven initial North Korean suspects left Malaysia on Feb. 13, the day Kim was killed. Police have obtained an Interpol red alert notice for the four men, believed to be back in Pyongyang. Police said the other three men are believed to be hiding in the North Korean Embassy in Kuala Lumpur.", -3047,2017/3/19,http://abcnews.go.com/International/wireStory/13-autoworkers-life-prison-2012-factory-riots-46234284,13 autoworkers get life in prison for 2012 India riots,,"A court in northern India has sentenced 13 factory workers to life imprisonment for taking part in violence at the country's largest automobile factory that led to the death of a manager nearly five years ago. Four other workers were sentenced to five years in prison for the rioting that broke out at the Maruti Suzuki manufacturing unit in Manesar in Haryana state in July 2012 following a dispute between workers and management at the factory. The subsidiary of Japan's Suzuki Motor Corp. operates two factories in India. A day after the violence erupted, the body of human resources manager Awanish Kumar Dev was found badly charred in a conference room. Dozens of managers and executives were also injured with several suffering broken bones, the company had said at the time. According to the company, the unrest erupted when a worker beat up a supervisor and the workers union prevented management from disciplining the worker and blocked exit gates. The Maruti Suzuki Workers Union said a supervisor had abused and made discriminatory comments to a low-caste worker, leading to the violence. The court on Saturday also fined 14 other workers accused of rioting and vandalism at the factory. Defense and prosecution lawyers said they would appeal the verdict in a higher court. ""There is no evidence to link these workers to the murder. We hope for justice in the superior court,"" Vrinda Grover, a defense lawyer, told the Indian Express newspaper.", -3048,2017/3/19,http://abcnews.go.com/Lifestyle/wireStory/french-police-release-father-orly-airport-attacker-46235180,Autopsy to learn if Paris airport attacker was drunk or high,,"French officials were conducting an autopsy Sunday to determine whether a suspected Islamic extremist was drunk or high on drugs when he took a soldier hostage at Paris' Orly Airport and was shot dead by her fellow patrolmen. The suspect, Ziyed Ben Belgacem, stopped at a bar in the wee hours Saturday morning, around four hours before he first fired bird shot at traffic police. Then, 90 minutes later, he attacked the military patrol at Orly, causing panic and the shutdown of the French capital's second-biggest airport. A subsequent police search of his flat found cocaine, Paris prosecutor Francois Molins said. In an interview Sunday with French radio Europe 1, a man identified as the suspect's father said Belgacem wasn't a practicing Muslim and drank alcohol. ""My son was never a terrorist. He never attended prayer. He drank. But under the effects of alcohol and cannabis, this is where one ends up,"" said the father. Europe 1 did not give his name. The Paris prosecutor's office, which is in charge of the probe, said Sunday that Belgacem's father was released from police custody overnight. His brother and a cousin were still being questioned. In a news conference late Saturday, Molins said Belgacem called his father and brother early that morning, minutes after he fired bird shot at a police traffic patrol, injuring an officer in the face, to say that he'd made a stupid mistake. ""He called me at seven, eight in the morning and said, 'there you go, Papa.' He was extremely angry, even his mother couldn't understand him,"" the man identified as the father said on Europe 1. ""He told me, 'I ask for your forgiveness. I've screwed up with a gendarme.'"" Blood samples taken during Sunday's autopsy were to be screened for drugs and alcohol, the prosecutors' office said. The 39-year-old Frenchman had a long criminal record, with multiple jail terms for drugs and robbery offences. Molins said Belgacem was out on bail, banned from leaving France and obliged to report regularly to police, having been handed preliminary charges for robberies in 2016. He was also flagged as having been radicalized during a spell in detention from 2011-2012, Molins said. His house was among scores searched in November 2015 in the immediate aftermath of suicide bomb-and-gun attacks that killed 130 people in Paris. Yelling that he wanted to kill and die for Allah, Belgacem wrested away the soldier's assault rifle during the Saturday morning airport attack but was shot and killed by her two colleagues before he could fire the military-grade weapon in Orly's busy South Terminal. ""With a pistol in his right hand and a bag over his shoulder, he grabbed (the soldier) with his left arm, made her move backward by three to four meters (yards), positioning her as a shield, and pointed his revolver at her forehead,"" Molins said. According to soldiers, the attacker yelled: ""Put down your weapons! Put your hands on your head! I am here to die for Allah. Whatever happens, there will be deaths,"" Molins added. The attack forced both of the airport's terminals to shut down and evacuate, sent passengers and workers fleeing in panic and trapped hundreds of others aboard flights that had just landed. It was the violent climax of what authorities described as a 90-minute spree of destructive criminality across Paris by the suspect. The fearsome drama ""?which caused no injuries aside to the lightly-wounded traffic police officer ""?further rattled France, which remains under a state of emergency after attacks in the past two years that have killed 235 people.", -3049,2017/3/19,http://www.cnn.com/2017/03/19/asia/north-korea-high-thrust-engine-test/index.html,North Korea's rocket engine test: World will 'soon witness' significance,"Seoul, South Korea (CNN)North Korean leader Kim Jong Un oversaw the test of a new high-thrust engine seen as a ""great leap forward"" for the country's rocket industry, state media reported Sunday.","The test measured the thrust power in the combustion chamber, the structural safety and reliability of the engine, and the movement of the turbine pump, state-owned Korean Central News Agency reported. It took place at the Sohae Satellite Launching Ground, in North Pyongan Province, it said. 'Historic significance' State media said the test was successful and marked an event of ""historic significance"" that could lead to the rebirth of the country's indigenous rocket industry. Kim emphasized the whole world would ""soon witness what eventful significance the great victory won today carries,"" KCNA reported. The announcement came hours before US Secretary of State Rex Tillerson met with President Xi Jinping of China -- North Korea's only major global ally -- in Beijing. Although neither side brought up the subject publicly, Tillerson was expected to raise the prospect of financial penalties on Chinese companies and banks that do business with North Korea.", -3050,2017/3/19,http://www.cnn.com/2017/03/19/europe/paris-orly-airport-attack/index.html,Paris Orly Airport: Father of suspect says son 'not a terrorist',"Paris (CNN)The father of the man shot dead at Orly airport in Paris on Saturday after attacking a French solider has insisted his son was ""not a terrorist.""","Ziyed Ben Belgacem held a gun on a female soldier while shouting: ""I am here to die in the name of Allah ... There will be deaths,"" before two of the soldier's comrades shot the attacker dead, a prosecutor told reporters. But speaking to France's Europe 1 radio Sunday, the father of Belgacem denied his son was a terrorist and instead blamed his actions on drugs and alcohol. ""My son was not a terrorist. He never prayed and he drank,"" the father, who is not being named by French authorities, said. ""This is what happens under the influence of drink and cannabis."" Belgacem was also accused of shooting a police officer earlier in the day when he stole the officer's weapon. That officer has non-life-threatening wounds, officials said. According to Paris Prosecutor Francois Molins, the suspect had been imprisoned several times on violence and theft convictions, including one five-year stint that began in 2009. French terrorism investigators will lead the inquiry into the attacks, Molins said. ""Very angry"" The father, who was released by police Sunday after being taken into custody, described how his son had called him after the shooting. He described his son as being ""very angry"" and that he asked for forgiveness. ""He said to me: 'Daddy, please forgive me. I've screwed up with a police officer,'"" the father said. ""I said I didn't forgive him 'because you hurt a policeman.'"" While the father has been released by authorities, Belgacem's brother and a cousin are still being questioned. Airport scene When Belgacem got to Orly Airport in the southern outskirts of Paris, he went to the South Terminal, carrying a weapon and a can of gas in his rucksack, Molins said. He grabbed the female soldier and used her as a shield. They struggled over her weapon, the prosecutor said. With the soldier down on her knees, the suspect rose enough for the other two soldiers to shoot him several times. The whole scene unfolded in just a couple of minutes, Molins said. According to Molins, Belgacem's plans were unclear, adding that an investigation will determine whether he acted as a ""lone wolf."" An autopsy on Belgacem will go ahead on Sunday, including a toxicology examination to detect whether he was intoxicated with alcohol or drugs. Prior attack on Saturday Molins said Belgacem was involved in several incidents before heading to the airport. ""?6:55 a.m.: Shoots police officer after being stopped for speeding and driving with headlights turned off near Stains, in northern suburbs of Paris. ""?Time not given: Goes to a bar in Vitry-sur-Seine where he had been until 3 a.m. and fires four shots with gun stolen from police officer. No one is wounded. ""?Short time later: Drives from bar (where he leaves cell phone), carjacks a new vehicle 8:06 a.m. -- Arrives at Orly airport About 16 minutes later, Belgacem assaulted the soldier. Hours after the airport incident, police launched an operation in the same northern Paris suburb where the officer was shot, the National Police tweeted. The agency did not specify the reason for the operation. Belgacem, who was born in 1978, was under supervision by authorities, Molins said, echoing Interior Minister Bruno Le Roux's earlier comments that Belgacem was known to intelligence services. Soldiers lauded for response French Defense Minister Jean-Yves Le Drian commended the soldiers who responded to the airport threat. They responded with ""remarkable professionalism and self-control"" to protect their colleague and the public, he said. This was the fourth attack against security forces deployed as part of France's Operation Sentinel, Le Drian said. The national security operation was launched following the Paris terror attacks in January 2015; France has been under a state of emergency since November that year. Le Roux also praised the swift response of security forces at the airport. President François Hollande said the incident demonstrated that the ongoing national security operation -- which has placed extra security forces at airports, train stations and other public places -- is ""absolutely essential"" to keep people safe. ""I want to salute the courage and the exceptional behavior of the security forces who managed to put away the individual and to do so in an extremely complex situation because this occurred in Orly Airport,"" he said at a news conference. The anti-terrorism prosecutor is investigating the motives and circumstances of Saturday's attack and the existence of any accomplices, according to a presidential statement. Politicians add praise French presidential candidates, who are campaigning ahead of next month's first round of voting, took to Twitter to pay tribute to the response by the police and the military. Emmanuel Macron, an independent centrist, said the military ""once again showed their professionalism this morning in Orly."" François Fillon, of the centre-right Republican party, said: ""Tribute to the men and women of Sentinel who work for our security and once again displayed courage and efficiency."" Marine Le Pen, presidential candidate for the far-right Front National party, said: ""France brimming over with violence, a consequence of the lax successive governments. But there is the bravery of our soldiers!"" Bomb squad called in The airport was evacuated as an elite operations unit and bomb squad officers rushed to the scene. More than 450 officers were involved in the operation to secure the airport and search for evidence, France's National Police said. Paris Airports, the group that manages the city's airports, said both Orly terminals were reopening Saturday afternoon after a suspension of several hours. Travelers should check with their airlines before heading to the airport, it added. Some earlier flights were rerouted to Paris Charles De Gaulle Airport. Travel for about 2,000 people had been severely disrupted, the president of Paris Airports, Augustin de Romanet, told CNN. ""It has been very disruptive, because we could fear many, many things, but all the police forces and the army have been very effective, so everything is OK now,"" he said. With roads around the airport closed off by police as the security operation unfolded, travelers had earlier tried to make their way to the airport on foot with their baggage. Paris Orly Airport is France's second-busiest airport, with international and domestic air traffic.", -3051,2017/3/19,http://www.huffingtonpost.com/2017/03/18/russian-zoo-porn-raccoon_n_15467644.html,Zoo Sues Studio For Traumatizing Raccoon Used In 'Erotic' Ad,Officials thought little Tomas was going to help plug sheets on TV.,"A Russian zoo says it's suing an advertising studio for overstimulating a raccoon it loaned out for a run-of-the-mill television commercial that instead ended up featuring a surprise topless model. The frustrated animal has since become obsessed with human breasts, an official told the BBC, which is hardly ideal behavior in a petting zoo. The Moscow studio calls the suit ""Absurd""?and complains that the little raccoon, Tomas, had some problems of its own when it turned up for work and snatched the model's bra to nibble on it. Russian media quoted a studio spokesman as saying that the company had requested a trained animal, but instead got Tomas ""who was young and ran off all the time.""?What to do? Zoo officials say they believe treats were hidden on the topless model to keep Thomas interested. Voila, breast obsession. The studio insists the ad is not erotic, as the zoo claims, and was intended for national TV which would not air porn. It not clear what is being advertised in the ad that features Tomas cavorting with the topless model on a large, unmade bed. The zoo was told that the commercial was being shot to sell bed linens. The zoo has demanded all photos and films from the studio, as well as damages due to Tomas""?trauma, in a suit filed again last week after officials said its first action was ignored. The zoo calls it ""immoral to mix nature with eroticism,""?the BBC reported. There's some speculation that the confrontation could have been a raunchy publicity stunt. Buzzfeed reported that the studio had run an ad previously ""?found by Russian media ""?seeking an adventurous public relations person and a raccoon. The zoo and supporters organized a protest against animal exploitation in the wake of the filming, the BBC reported. And officials say the incident could hurt the zoo's reputation and attendance. Tomas is finally happy at home again, according to zoo officials. But he was sad and frustrated for months. ""tomas came back withdrawn, always slept in the corner, and snapped at people,""?zoo spokesman Viktor Kiryukhin told-the Telegraph. The truth is stranger than fiction. Step into the world of weird news. Learn more", -3052,2017/3/19,http://www.huffingtonpost.com/2017/03/17/chesapeake-bay-oysters-trump-budget-cuts_n_15467182.html,Chesapeake Bay's Booming Oyster Industry Is Alarmed By Trump's EPA Budget Cuts,"A federally funded cleanup effort is finally restoring the bay's ecology, bringing back oyster jobs.","Ryan Coxton resurrected his family's oyster business in 2001 from the same muddy swath of Virginia river bottom his great-grandfather leased 102 years earlier. The slippery, jagged-shelled bivalves became so popular in the decades after the Civil War that a gold rush ensued in the Chesapeake Bay and its teeming estuaries, at times spurring violent rivalries that became known as ""the oyster wars.""?But the Rappahannock Oyster Co. ""?the first iteration of it, at least ""?died in 1991 with Coxton's grandfather. By the time Coxton and his paternal cousin, Travis, started growing oysters as a hobby on the family's old property, the oyster industry in the region had all but collapsed. Overfishing over the last century badly hurt wild oyster populations. Diseases ravaged the remaining creatures in the 1950s. Runoff pollution from farms and sewage treatment plants tainted the waters with phosphorus and nitrogen. Bacteria and algae fed by the pollution blossomed into massive, toxic plumes that sucked up oxygen and blocked sunlight, stymying fish populations and thinning the marsh grasses that oysters cling to to keep from slipping into the soft, silty mud and dying. Things started changing in the last several years as the effects of an Environmental Protection Agency cleanup that began in 1983 under President Ronald Reagan took effect. (President Barack Obama imposed even stricter targets in 2009). Levels of phosphorus and nitrogen, a third of which settled on the water from being wheezed by power plants into the air, fell. The water cleared. Grasses grew back in dense thickets, tightening the river bed with roots. - By 2004, Coxton quit his day job and started cultivating oysters full time. At first, restaurants in the area, knowing how dirty the water had been, wouldn""t buy his product, even though it was safe to eat. He shipped them to upscale eateries in New York. But as water quality improved over the past decade, local demand came roaring back. Coxton opened his fifth restaurant Thursday evening and plans to cut the ribbon on a sixth in September. Now the program that saved the Chesapeake Bay oyster industry is in jeopardy. The budget President Donald Trump proposed Thursday would eliminate funding for the $73 million initiative, along with more than 50 other programs and 31 percent of the EPA's overall budget. Funding isn""t the only thing on the chopping block. Trump vowed to boost economic growth by axing regulations, particularly environmental rules he blames for holding businesses back. Already, his administration has scrapped a rule protecting streams from coal mine pollution, tossed out a directive ordering oil and gas drillers to report methane emissions and overturned a regulation giving the EPA power to police fertilizer and manure runoff from farms, the chief contaminants in the Chesapeake Bay. ""�Oysters are filter feeders,""?Coxton, 47, told The Huffington Post in a recent interview. ""We can""t operate without clean water and a good environment.""?It wasn""t long ago that another Republican eager to placate his party's populist wing took aim at cleanup efforts pursued by his Democratic predecessor. Weeks after taking office in January 2015, Maryland Gov. Larry Hogan blocked regulations aimed at limiting Eastern Shore poultry farmers""?use of chicken manure on their fields. The phosphorus-rich fertilizer is a leading source of runoff in the Chesapeake Bay. - A month later, the Hogan administration received a letter from the EPA warning that, if the state dropped new manure rules, it would need another policy to meet the agency's pollution limits. Maryland Democrats scrambled to pass bills that would have done just that. In response, Hogan made an about-face. He ordered an immediate ban that targeted fields oversaturated with manure, even though he gave other farmers more time to comply, local NPR station WYPR reported. ""We have listened to the agricultural and environmental communities to find a fair and balanced plan for limiting phosphorus,""?Hogan said in a statement at the time. ""the enhanced Phosphorus Management Tool regulations ""?will protect water quality in the Chesapeake Bay while still supporting a vibrant agriculture industry in Maryland.""?In a statement to The Huffington Post, the governor vowed he would ""Always fight to protect our state's most important natural asset.""?""If any of these budget proposals ever become law, we will take a serious look at how to address them during our budget process next year,""?Amelia Chasse, the governor's spokeswoman, said. ""since taking office, Governor Hogan has invested more than $3 billion in efforts to protect and restore the Chesapeake Bay and will remain a fierce advocate going forward.""?Conservationists, clean water advocates and oyster farmers hope Trump will have a similar change of heart. Or, at least, that Congress will withhold approval for any budget that doesn""t include funding for the project. Republican lawmakers, some of whom already joined Democrats in opposing Trump's cuts to a similar cleanup effort in the Great Lakes, are expected to oppose the reductions. ""This just makes no sense. We are in disbelief,""?said William C. Baker, president of the nonprofit Chesapeake Bay Foundation. ""the EPA's role in this cleanup is nothing less than fundamental. It's not just important; it is critical.""Oyster farmers emerged over the past decade as a force in Virginia and Maryland. In the Old Dominion State, farmers sold $16 million in oysters in 2015 alone, besting all other states on the East Coast, according to the Virginia Institute of Marine Science's 10th annual report on the state's aquaculture industry. Though smaller in Maryland, the industry has ballooned in the last eight years, said Jeffrey Brainard, a spokesman for the EPA-funded Maryland Sea Grant, which is also earmarked for disposal. - In just the last five years, farmers in the Chesapeake Bay region helped double oyster production on the East Coast to 155 million bivalves per year, said Bob Rheault, executive director of the East Coast Shellfish Growers Association. ""We'r literally an engine of job growth, especially in Chesapeake and especially for the watermen of that region who are up for the challenge,""?Rheault said. ""these proposed cuts are just job killers.""?""It's like, my God,""?he added, sighing loudly, ""if we don""t have clean water, we don""t have customer confidence.""?Uncertainty over the future of the EPA cleanup program has spooked some who left other jobs in recent years to join the booming industry. Johnny Shockley, 54, quit commercial fishing to build a sustainable oyster hatchery on Hooper's Island, the bayside archipelago where he grew, a third-generation waterman. Now the man The Washingtonian once called ""the Chesapeake Bay's hope on the half shell""?worries his small empire of sustainable oyster hatcheries could be imperiled. ""�One of the reasons why folks were getting in and willing to change their lives and commit their livelihoods to these efforts is the support We're seen from the federal government in the last 25 to 30 years,""?Shockley said. ""All of a sudden We're been threatened to see that all taken away.""?Shockley wants to see the Chesapeake Bay oyster industry return to its former glory but not its old ways. Back then, wild shellfish were plucked from the water with greedy abandon ""?a tragedy of the commons. - ""We had billions of oysters in the bay when we hit the shores here back in the 1600s and quickly found them to be a strong economic force,""?he said. ""We totally upset the ecology of our estuaries.""?Now he and other farmers grow oysters in submerged cages, helping them to achieve specific sizes and shapes. And that's paying off. ""the heritage is really unique for the Chesapeake, and I""ve found that oysters coming from this part of the country have a lot of meat, compared to, say, oysters in northern Canada or New England,""?Julie Qiu, a Brooklyn-based oyster connoisseur who writes the blog In a Half Shell, told HuffPost. ""there's this kind of mushroomy flavor in them that's pretty unique to the region.""?She now ranks growers from the Chesapeake Bay among her favorites. One of them is Pleasure House Oysters, a boutique hatchery near Virginia Beach that harvests no more than 1,500 oysters by hand each week. Chris Ludford founded the company in 2010 when the population of blue crabs he once fished shrank. ""I was a refugee from the blue crab industry,""?Ludford said. ""We hit an all-time low in the harvest of blue crabs and needed to give the resources a break.""?Oysters are just one industry that could be harmed if the Chesapeake Bay cleanup effort is dismantled. The Virginia chapter of the Sierra Club, the 124-year-old environmental advocacy titan, slammed the White House for endangering an economic driver worth ""�over $1 trillion.""?""This is an outrageous and unnecessary cut that violates a longstanding, bipartisan consensus that cleaning up the Chesapeake Bay is good for our region and good for our nation,""?Kate Addleson, director of the state chapter, said in a statement. ""the progress being made toward protecting this critical resource for the region supports fisheries, oyster and crab populations, tourism and other industries ""?really the whole ecosystem. All of these beneficiaries of the program would be at risk if this reckless cut was to go through.""?Despite this, Coxton said he remains ""�hopelessly optimistic.""?He said his three children's futures remain his foremost concern, and if business goes downhill, he""�ll consider his options. But for now, he""�ll wait it out. ""�Even if this one administration is going to create a hiccup, I hope it""�ll be a four-year hiccup and we""�ll get back on track. It took us much longer than four years to create this mess. It""�ll take longer than four years to get out of it. I""�m not going to be completely discouraged by a four-year slack.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3053,2017/3/19,http://www.bbc.co.uk/news/world-us-canada-39319988,Chuck Berry: Music stars pay tribute to rock 'n' roll icon,Musical stars are paying tribute to Chuck Berry after the influential performer died aged 90.,"Musical stars are paying tribute to Chuck Berry after the influential performer died aged 90. US singer-songwriter Bruce Springsteen said he was ""the greatest pure rock 'n' roll writer who ever lived"". Mick Jagger of the Rolling Stones said Berry ""lit up our teenage years, and blew life into our dreams of being musicians and performers"". The guitarist and songwriter died Saturday in the US state of Missouri after a seven-decade career. Seen as one of the fathers of rock 'n' roll, he influenced generations of succeeding musicians, most notably The Beatles, the Rolling Stones and the Beach Boys. Beatles drummer Ringo Starr quoted one of Berry's own lyrics on Twitter, saying: ""Just let me hear some of that rock 'n' roll music any old way you use it."" He wrote he was playing Berry's 1961 song I'm Talking About You, which was recorded by The Beatles at the BBC in 1963. Singer-songwriter Huey Lewis described him as ""maybe the most important figure in all of rock and roll"". ""His music and influence will last forever,"" he added. Rocker Alice Cooper tweeted that Berry was ""the genesis behind the great sound of rock 'n' roll"". ""All of us in rock have now lost our father,"" he said. Motown legends The Jacksons tweeted: ""Chuck Berry merged blues & swing into the phenomenon of early rock'n'roll. In music, he cast one of the longest shadows. Thank You Chuck."" Berry was known for trademark four-bar guitar introductions and quickfire lyrics that reflected the rebelliousness of 1950s teenagers. His hits included Johnny B Goode, Roll Over Beethoven and Sweet Little Sixteen. However his only US and UK number one hit was My Ding-a-Ling, a novelty song replete with innuendo that was recorded at a gig in Coventry in 1972. He received a lifetime achievement Grammy in 1984 and was among the first inductees to the Rock and Roll Hall of Fame in 1986. His death was confirmed by police in Missouri. The singer was found unresponsive at 12:40 local time (17:40 GMT) on Saturday, St Charles County police said in a statement. He could not be revived and was pronounced dead at 13:26. Both The Beatles and the Rolling Stones covered Berry's songs, as did the Beach Boys and scores of other acts - including Elvis Presley. ""If you tried to give rock 'n' roll another name,"" John Lennon once said, ""you might call it 'Chuck Berry'."" The novelist Stephen King noted that Berry had a long life for a consummate rock'n'roller, tweeting: ""Chuck Berry died. This breaks my heart, but 90 years old ain't bad for rock and roll. Johnny B. Goode forever."" Berry was born in St Louis, Missouri, in 1926, and had his first hit, Maybellene, in 1955. He went on to score a succession of hits that were aimed at adolescent audiences, transcending the colour bar that plagued many contemporary black artists. Last year, he announced he would be releasing his first album in nearly four decades. He dedicated it to his wife of 68 years, Themetta ""Toddy"". The album, entitled Chuck, was recorded in St Louis, Missouri. It will be released later this year, though a date has not been set. How has his music inspired you and affected your life? Are you a fan of his so-called duck walk? Email haveyoursay@bbc.co.uk with your stories. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -3054,2017/3/19,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39315683,Ruth Davidson: 'Scots do not want a referendum',The Scottish Conservative leader has said the majority of Scots do not want a second independence referendum.,"The Scottish Conservative leader has said the majority of Scots do not want a second independence referendum. Ruth Davidson told the BBC's Andrew Marr Show that Nicola Sturgeon's call for such a vote was ""not the will of the Scottish people"". She said: ""The SNP is not Scotland, they are acting against the majority wishes of the people of Scotland."" First Minister Nicola Sturgeon said Scottish voters had the right to a choice on the country's future Ms Davidson was speaking six days after Scotland's first minister announced she wished to hold another independence referendum in autumn 2018 or spring 2019 once the terms of the UK's Brexit deal ""became known"". Nicola Sturgeon said Scottish voters should then be given a choice about the country's future direction. But Ms Davidson cited recent opinion polls suggesting that a majority of Scots do not want another referendum to take place in the next few years. She said: ""I don't think you can have an independence referendum again if you don't have public consent for it, and the people of Scotland don't want this. ""We see another poll today, to add to the many dozen that we've seen since June of last year, that show that the majority of people in Scotland don't want this."" Prime Minister Theresa May has indicated that the UK government will refuse to allow another referendum in the SNP's preferred timescale, arguing that ""now is not the time"" with Brexit negotiations due to start shortly. Ms Davidson said: ""There are people right across Scotland, many, many thousands of them, that are so thankful for the prime minister to say let's take a pause on this."" She also said it was ""astonishing"" that the SNP had not given more details of its independence plan during its spring conference in Aberdeen. ""We have asked basic questions on things like currency, on things like a central bank, on things like whether we would even rejoin Europe as a full member, and Nicola Sturgeon seems unable to commit to that,"" she said. The SNP's 2016 manifesto said the Scottish Parliament should have the right to hold another referendum if there was ""a significant and material change in the circumstances that prevailed in 2014, such as Scotland being taken out of the EU against our will"". Scottish voters backed remaining in the EU by 62% to 38% in the Brexit vote last June. Nicola Sturgeon insisted Scottish voters had the right to make a choice on the country's future ""when the terms of Brexit are clear but before it's too late"". Speaking on ITV's Peston programme, she said her preferred timescale for an independence vote could change if the Brexit negotiations took longer than expected but insisted it would be ""unreasonable"" to push it as far back as 2021. She said: ""If she's [Theresa May] talking in the spring of 2019, a bit later perhaps than I was suggesting, there may be some room for discussion around that. ""But it seems to me to be just fundamentally unfair for a UK government, with Brexit having sunk the ship, trying to puncture Scotland's lifeboat as well."" She said her suggested timing was based on comments by Theresa May and Brexit Secretary David Davis about the likely timetable for the Brexit process. ""Change is coming. This is about having a choice over the type of change and I think we should have that choice before Scotland is taken out of the EU and a long period of time elapses, making it much harder for Scotland to try to negotiate a different relationship with Europe,"" she said. Asked if she wanted an independent Scotland to be a full member of the European Union, she said: ""The minimum for Scotland is to be within the single market, it's what I think makes sense for the UK as well if it's out of the EU - but my preference is for an independent Scotland to be in the EU."" The Scottish Parliament will debate the issue of a new referendum on Monday and Tuesday. While the SNP does not have an overall majority, the Scottish Greens have said they will back the the transfer of powers from Westminster that would allow such a vote to be held. Scottish Greens co-convener said his party's position on that issue was decided at its conference in October. He was challenged on the BBC's Sunday Politics Scotland programme on whether his party had a mandate for a second referendum as its 2016 manifesto said a new vote should ""come about by the will of the people"". He said: ""A political party in opposition obviously has to look at its policy in terms of what is happening around the world and in June last year the world changed around us. ""Our political party debated how we should respond to this. Our members voted in favour of a motion... calling for a Section 30 order.""", -3055,2017/3/19,http://www.bbc.co.uk/news/business-39320578,New York Times boss Mark Thompson on Trump's accusations,,"The chief executive of the New York Times, Mark Thompson, discusses the strange relationship between the paper and US President Donald Trump, on the BBC's Andrew Marr show.", -3056,2017/3/19,http://www.bbc.co.uk/news/uk-england-leicestershire-39320241,Burst Derby water main 'sounded like a bomb',A water main burst with such force it damaged windows and cars and left homes needing to be evacuated.,"A water main burst with such force it damaged windows and cars and left homes needing to be evacuated. The burst in the Chester Green area of Derby sent a plume of water three storeys high, eyewitnesses said. Some residents have been sent to temporary accommodation by the city council. Sections of Mansfield Road and Alfreton Roads and several surrounding street have been closed while repairs are carried out. Resident Dawn Mead said she was woken by what sounded like a bomb going off at about 02:00 GMT. She said: ""My house is a disaster zone... I thought somebody was attacking my house, I couldn't comprehend what was happening. ""My car is wrecked. I looked down my hall and I am not looking forward to going back in."" BBC reporter Chris Fawcett said water was almost covering the bonnets of some cars and was gushing out of the ground and up the steps of some houses. A Severn Trent Water spokesman said some households in the area will have low water pressure or a lack of supply due to the problems. ""Our teams are out on site now and will work around the clock to get this pipe fixed and everything back to normal as quickly as possible,"" the spokesman said.", -3057,2017/3/19,http://www.bbc.co.uk/news/world-europe-39320530,Orly airport: Attacker phoned father to say 'I screwed up',"The gunman who attacked soldiers at Orly airport in Paris on Saturday told his father he had ""screwed up"" earlier and wanted forgiveness.","The gunman who attacked soldiers at Orly airport in Paris on Saturday told his father he had ""screwed up"" earlier and wanted forgiveness. Ziyed Ben Belgacem, 39, was killed after he put a gun to a soldier's head saying he wanted to ""die for Allah"". Earlier on Saturday, he was involved in a shooting and then a carjacking. His father told French radio Belgacem had phoned after the first attack to say he had ""screwed up with a gendarme"", before proceeding to Orly. Belgacem is described as having been radicalised in prison, and was on a police watch-list. His criminal record included convictions for armed robbery and drugs offences, Paris prosecutor Francois Molins told reporters late on Saturday. Intelligence agents searched his home in Garges-les-Gonesse, north of Paris, for evidence of Islamist sympathies, but reportedly found nothing. However, traces of cocaine were discovered during the search. Early on Saturday morning, Belgacem was stopped at a checkpoint in Garges-les-Gonesse, north of Paris. He fired at police with a pellet gun before escaping in a car that was later found abandoned. Police say he then stole a car at gunpoint from a woman at Vitry, south of Paris. That car was later found at Orly airport. Belgacem arrived at the airport and attacked a military patrol in the south terminal. He tried to seize a servicewoman's automatic weapon, put his gun to her head and said: ""I'm here to die for Allah. In any case people are going to die."" He was then shot dead by two other soldiers. A copy of the Koran was found on his body, Mr Molins added. His father and brother were taken in for questioning in the aftermath of the attack. The brother remains in custody. Speaking to Europe 1 radio on Sunday, the father said his son was not a terrorist, but someone who ""never prayed and he drank"". ""This is what happens under the influence of drink and cannabis,"" the father said. He said he had received a phone call from Belgacem after his initial attack in which he said: ""Dad, please forgive me. I've screwed up with a police officer."" Then he hung up saying he was on the motorway. The BBC's Hugh Schofield in Paris says the picture is building up of a man on the criminal fringes of society, who also consorted with Islamist radicals. Orly - located 13km (8 miles) south of Paris - is the capital's second-largest airport. The attack came at a sensitive time. France has presidential elections starting next month and remains under a state of emergency. The soldiers at Orly were part of Operation Sentinel - involving thousands of soldiers deployed to provide back-up to the police after the Charlie Hebdo attack in January 2015 and the Paris attacks of November 2015.", -3058,2017/3/19,http://www.bbc.co.uk/news/uk-england-london-39320168,Met officers hold mock terrorism exercise on River Thames,More than 200 Met Police officers have taken part in a simulated terrorist attack on the River Thames in London.,"More than 200 Met Police officers have taken part in a simulated terrorist attack on the River Thames in London. Half a dozen ""terrorists"" hijacked a pleasure craft heading towards London from Kent taking dozens of people hostage in the Met's first big training operation on water. The boat was intercepted by firearms officers near the Isle of Dogs. The Met said the exercise was not in response to any specific threat to the river or the capital. Just after 11:00 GMT, elite police marksmen in two small boats drew alongside the ""highjacked"" vessel, opened fire, boarded the craft and ""neutralised"" the threat. Cdr BJ Harrington, the officer in charge of the operation, said the aim was to test the capability of many parts of the Met and other emergency services while operating in a ""dangerous working environment"" on the Thames. ""We want to make sure we're all working together so that London's got a really good response should this terrible incident happen,"" he said. A report last year, found security measures on the river Thames needed to be strengthened. The report's author Lord Harris called for ""a comprehensive review of safety and security on the River, commissioned by the Mayor, to report by May 2017."" The exercise started just after 09:00 GMT and was expected to last a couple of hours. Officers taking part had not been told what the nature of the simulated attack would be. The Metropolitan Police tweeted a training exercise was under way and that people should not be alarmed. Teams from the Met's specialist firearms unit SCO19, the Marine Policing Unit and the Dog Support Unit were all involved. Other agencies including the Port of London Authority, Maritime and Coastguard Agency, RNLI, London Fire Brigade and London Ambulance also took part. In June 2015, more than a thousand police officers and soldiers took part in Operation Strong Tower which simulated a terrorist firearms attack in central London. The threat level in the UK has been rated ""severe"" - meaning an attack is highly likely - since August 2014. On the 10th anniversary of the 2005 London bombings, the country's top counterterrorism officer told the BBC about 50 plots had been thwarted since the 7/7 attacks.", -3059,2017/3/19,http://tass.com/politics/936341,Kremlin calls unimportant when Ukraine may recognize Russian status of Crimea,"The press secretary said despite all disputes between the countries, Russia does not have prejudices against the Ukrainian people","MOSCOW, March 19. /TASS/. The president's press secretary Dmitry Peskov said in an interview with RBC television channel on Sunday he is confident Ukraine's recognizing of Crimea's Russian status and improvement of friendly relations between Moscow and Kiev are not of importance under the current political conditions. ""From the point of view of our current reality, the position and status of Crimea as a region of the Russian Federation is not that important, as it is unlikely to change whenever,"" he said in response to a question when Ukraine could recognize Crimea as a Russian region and when it could improve relations with Russia. The press secretary said despite all disputes between the countries, Russia does not have prejudices against the Ukrainian people, and Ukraine remains an important country both politically, economically and socially. ""Of course, Ukraine is extremely important to us both in the inter-state relations, and in the economic and in humanitarian aspects. It cannot be overestimated, it is important to now, despite all the costs of the situation, in which we found ourselves together with Ukraine. Though Russia has never ever had any prejudices against the Ukrainians, I hope they will never be,"" the president's press secretary said.", -3060,2017/3/19,http://tass.com/politics/936340,"Day of Crimea's reunification with Russia - important, special event for Putin - Kremlin","Though this year Putin could not attend the celebration of another anniversary of the reunification on March 18, the importance of this event is not smaller for the president","MOSCOW, March 19. /TASS/. The Day of Crimea's reunification with Russia is special and important for President Vladimir Putin in the emotional sense, the president's press secretary Dmitry Peskov said in an interview with RBC television channel on Sunday. ""Like for all of us, it is an extremely important day for him emotionally, since in many aspects the final decisions three years ago were taken exactly by him. Clearly, for him it is a big day, and important day. He was the one who undertook responsibility, who demonstrated the braveness - political and geopolitical. And he, probably, better than others realized consequences, which are bound to follow the decision,"" the press secretary said. Though this year Putin could not attend the celebration of another anniversary of the reunification on March 18, the importance of this event is not smaller for the president. ""If he does not attend whatever celebration, does not mean at all that for him that day is changing the importance somehow. I am not sure exactly, how he is celebrating, but the fact for him this day is special is absolutely clear,"" the press secretary said. Besides, Peskov stressed the president is not happy about everything Russia has received after Crimea's rejoining. ""It is a complicated process, rater unprecedented, and, probably, in Russia's new and newest history nothing of the kind has happened. Was Putin happy about everything? Sure, not. This is why he kept everything under his absolutely manual control,"" he said.", -3061,2017/3/19,http://tass.com/sport/936338,Kasyanov's crew wins final stage of bobsleigh World Cup,"The result is 1 minute 39.96 seconds, the Swiss team was the second, and the crew from Latvia was the third","MOSCOW, March 19. /TASS/. The Russian foursome Kasyanov, Alexey Zaitsev, Vasiliy Kondratenko and Alexei Pushkarev won the final stage of the (International Bobsleigh and Skeleton Federation) World Cup in bobsleigh in South Korea's Pyeongchang on Sunday. The result is 1 minute 39.96 seconds, the Swiss team was the second, and the crew from Latvia was the third.", -3062,2017/3/19,http://www.dw.com/en/boxing-golovkin-edges-jacobs-by-decision-to-defend-titles/a-38014422?maca=en-rss-en-all-1573-rdf,Boxing: Golovkin edges Jacobs by decision to defend titles,"Gennady ""GGG"" Golovkin, the most fearsome knockout artist of this era, was pushed to the limit by Daniel Jacobs before retaining his world middleweight titles by decision at Madison Square Garden on Friday.","Jacobs, known as ""Miracle Man"" since coming back from bone cancer five years ago, ended the unbeaten Golovkin's streak of 23 knockouts in a row in a battle that went to the scorecards for the first time since 2008 for the Kazakh champion. Two judges scored it 115-112, with the third making it 114-113 in favor of Golovkin, who retained his WBC, WBA, IBF and IBO middleweight crowns. Golovkin knocked Jacobs down in the fourth with a double dose of rights, but as the fight wore on Jacobs confused the Kazakh by sliding into a southpaw stance, scoring on stinging combinations, holding his own against the dangerous power of the champion. After a cautious, feeling out in the first two rounds, the bout blossomed into a fascinating battle with the fighters engaging freely in a thrilling duel to the finish that almost produced another Jacobs' miracle. Golovkin improved his record to 37-0, while Brooklyn native Jacobs dropped to 32-2. Stinging jab ""I respect Danny Jacobs and very good job and clean job,"" Golovkin, who used a stinging left jab to set up his power shots, said in the ring after the decision. ""Danny Jacobs is my favorite fighter. Clean, good quality, very good fighter."" Jacobs proved to be the toughest test yet for Golovkin, matching exchanges, using his bigger body to advantage and firing off big combinations against the tiring champion late in the bout. The American thought he had taken the decision. ""I think I won the fight,"" the New Yorker said. ""I think I won by two rounds at least. ""They want the big fight, and Daniel Jacobs got X'd out. I won the fight and I won the decision and all I can do is be gracious in the decision."" Jacobs said he stood right up to Golovkin after hitting the canvas early in the bout. ""After the knockdown I told him (he) had to kill me (to beat me),"" said Jacobs. ""When I got up I thought this is all he has? -There were many times during the fight I went toe-to-toe because I knew I could."" idr/Reuters", -3063,2017/3/19,http://www.dw.com/en/philippine-bishops-urge-flock-to-fight-the-death-penalty/a-38014170?maca=en-rss-en-all-1573-rdf,Philippine bishops urge flock to fight the death penalty,"In a special prayer, Catholic bishops have urged Filipinos to ""make a stand"" against restoring the death penalty. The bill, pushed by President Duterte, has already passed the lower house of the Filipino parliament.","The clerics read out the homily at all masses across the Philippines on Sunday. ""Dear sisters and brothers in Christ, let us not allow our wells to be poisoned by bitter water. Let us uphold the sanctity of life and make a stand against death penalty,"" the Catholic bishops said in pre-written prayer. The Philippines abolished the death penalty in 2006. However, firebrand President Rodrigo Duterte launched a bid to restore it as part of his brutal crackdown on crime. Lawmakers already backed the bill in the country's House of Representatives and it is expected to pass the Filipino senate as well. Read: Looking inside the mind of the Philippines' Duterte Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Z3WM Despite the death penalty being illegal, Duterte has repeatedly supported extrajudicial killings and police has reportedly executed thousands of suspects since he took office in June. Jesus was not 'an advocate' of killing On Sunday, the bishops said that the death penalty would be biased against the poor, who would not be able to afford a good lawyer, and argued there was no evidence that it deterred crime. Referring on the upcoming Senate vote, they called on worshipers to ""pray fervently for the legislators."" ""Jesus was never an advocate of any form of 'legal killing.' He defended the adulterous woman against those who demanded her blood,"" they said, citing the New Testament story about Jesus opposing a stoning. Around 80 percent of all Filipinos are Catholic and the Church wields a significant influence- in the country. At the same time, Duterte and his crusade against drugs are also immensely popular. When confronted by the Catholic Church earlier this year, Duterte accused it of greed, hypocrisy, and sexual abuse of children. The pro-death penalty camp hopes to reinstate capital punishment by May this year. dj/rc-(AFP, dpa) -", -3064,2017/3/19,http://www.dw.com/en/the-german-savers-who-must-pay-interest-to-their-own-bank/a-38013400?maca=en-rss-en-all-1573-rdf,The German savers who must pay interest to their own bank,"Negative interest rates were originally just for businesses, but now private individuals are paying the price. One of Germany's major banks has decided its wealthy customers will lose money on savings accounts.","Many Germans are still wary about buying shares despite an environment where saving money doesn't seem to make much sense because of continuously low interest rates. The European Central Bank (ECB) has done everything in its power to fuel inflation and boost economic growth, but has had limited success. Now, risks and side effects are becoming more evident. (02.12.2016) More and more countries are phasing out large denomination bills - but few people are aware of the reasons for limiting cash transactions. (18.12.2016) Germany's biggest private lender has sold its British insurance business to raise urgently needed cash to pay looming penalties for its past misdeeds and to fight speculation of requiring state aid to stay afloat. (28.09.2016) Wealthy customers at a major German bank will earn negative interest rates on their deposits, the bank announced this week. Sparkasse K?ln-Bonn was the latest in a series of major German institutions to pass on to its private customers the European Central Bank's negative interest rates. Most financial institutions had only required business customers to suffer the negative interest rates, not private account holders. In March 2016 the ECB set depositary rates at -0.4 percent to help battle deflation in European countries, hoping to push banks' excess cash into the economy. It first entered negative territory when it set the rate at -0.1 percent in June 2014. Read:-ECB caught in monetary policy maelstrom At the time, ECB President Mario Draghi said the measure was exclusively about the banks. ""The interest rates we have changed are for banks, not for the people,"" the German newspaper Frankfurter Allgemeine Zeitung-reported. The savings bank Sparkasse runs in a decentralized structure with nearly 400 banks worth a total of about 1 trillion euros (US$1.1 trillion). K?ln-Bonn is the second largest Sparkasse with about 900,000 private customers. Financial newspaper-""Handelsblatt"" reported that the negative interest rates would apply to those with an account of balance of at least three million euros. Hamburger Sparkasse, the biggest Sparkasse in Germany, was reportedly in discussions with its wealthy customers to impose negative rates. ""Handelsblatt"" reported that major Hamburg private bank Berenberg was also considering negative interest rates for its private customers. Negative interest rates cost banks dearly since they were introduced. Sparkasse K?ln-Bonn estimated it cost them between 30 to 40 million euros, and 560 million euros for all Sparkasses together. Two of Germany's-large private banks, Commerzbank and Deutsche Bank, assured ""Frankfurter Allgemeine"" that they had no plans to impose negative interest rates on their private customers. Read: Will cash soon be a thing of the past? aw/rc Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YvKf", -3065,2017/3/19,http://www.dw.com/en/father-of-paris-orly-assailant-says-son-was-no-terrorist/a-38012872?maca=en-rss-en-all-1573-rdf,Father of Paris Orly assailant says son was no terrorist,"The father of the man shot dead at Paris Orly airport after seizing a soldier's gun says his son was no jihadi terrorist. Prosecutors have described the slain attacker as a ""violent individual"" with terrorist instincts.","The father of Ziyed Ben Belgacem told French radio on Sunday that drugs and alcohol had caused his son's violent behavior. ""There's no way my son was a terrorist,""-he told Europe 1 radio. ""He never prayed and he drank. This is what happens under the influence of drink and cannabis."" Ben Belgacem was killed by security forces on Saturday morning after he attacked a soldier at Orly airport in southern Paris and took her gun. Hours earlier, the 39-year-old Frenchman had fired on police in a northern Paris suburb during a routine traffic stop, injuring one officer. Prosecutor Molins: Ben Belgacem harbored terrorist instincts The man's father, who was released from police custody on Sunday after being questioned, said his son phoned him immediately after the shooting ""in a state of extreme agitation."" ""He said to me: 'Daddy, please forgive me. I've screwed up with a police officer.'"" His father then contacted police. Ben Belgacem's brother and cousin, who also came forward for questioning, remain in custody. A postmortem is being carried out on the man's body to establish whether he had been under the influence of drugs or alcohol.- Radicalization in prison Speaking at a press conference late Saturday, Paris prosecutor Francois Molins described Ben Belgacem as an ""an extremely violent individual"" who had shouted that he was ready ""to die for Allah"" before being shot dead at Orly airport. - Born in Paris, Ben Belgacem was known to French authorities and had a string of convictions for theft and drug offenses. In 2001, he was sentenced to five years in prison for armed robbery. In 2009, he was back in jail-for drug trafficking. Molins told reporters it was between 2011 and 2012 that officials noticed ""signs of radicalization"" in the inmate. But although Ben Belgacem was on the police radar, he wasn't considered a serious threat. He had also been under judicial monitoring since his most recent release from prison in September. The attack at Paris Orly airport prompted flight cancellations and thousands of passengers to be evacuated 'A real devil' Investigators working to establish a motive for the attack searched Ben Belgacem's sixth-floor apartment in the northeastern Paris suburb of Garges-les-Gonesse on Saturday. They found several grams of cocaine and a machete. Residents of the building told AFP he was a withdrawn, serious man. ""The last time I saw him was three days ago. He had a determined air, as if he wanted to fight with his family or colleagues,"" neighbor Hamid said. ""He always wore sports clothes. He has a scary face, a real devil,"" another neighbor, Hatice, said. Security scare, travel chaos After firing shots at police in northern Paris and placing a call to his father, Ben Belgacem highjacked a car at gunpoint and headed to a nearby Italian-Cuban bar he frequented, firing more shots without injuring anyone. He then drove to Orly airport with a can of petrol and a Koran in his bag. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZUqL France has opened an anti-terrorist probe into Saturday's events. The attack triggered an airport shutdown with flights canceled and thousands of people evacuated from the building.-- The incident-came weeks before presidential elections in France, which remains under a-state of emergency-following a string of terror attacks that have claimed more than 230 lives since January 2015. nm/rc (AFP, AP, Reuters, dpa)", -3066,2017/3/19,http://www.aljazeera.com/news/2017/03/clashes-syria-damascus-surprise-rebel-attack-170319123712942.html,Clashes in Syria's Damascus after surprise rebel attack,Fierce clashes reported in eastern areas of the Syrian capital following ambush by rebel-aligned forces 'From defensive to offensive',"Heavy clashes rocked eastern districts of the Syrian capital on Sunday after rebel fighters launched a surprise assault on government forces there, a monitor and state television said. Steady shelling and sniper fire could be heard across Damascus on Sunday as rebel factions allied with former Al-Qaeda affiliate Fateh al-Sham Front launched an attack on government positions in the city's east. The attack began early on Sunday ""with two car bombs and several suicide attackers"" on the Jobar district, said Rami Abdel Rahman, head of the Syrian Observatory for Human Rights monitoring group. Rebels then advanced into the nearby Abbasid Square area, seizing several buildings and firing a barrage of rockets into multiple Damascus neighbourhoods, Abdel Rahman said. Government forces responded with nearly a dozen air strikes on Jobar, he added. Control of Jobar - which has been a battleground district for more than two years - is divided between rebels and allied hardline fighters on one side, and government forces on the other. It is-one of three pockets in the Syrian capital still in opposition hands.- Syrian state television reported that the army was ""thwarting an attack by terrorists"" with artillery fire and had ordered residents to stay inside. It aired footage from Abbasid Square, typically buzzing with activity but now empty except for the sound of shelling. Residents said artillery shells and rockets were landing inside the heart of the city. OPINION: Implications for a Syrian transition under Assad The Observatory said rebel shells hit several nearby districts in Damascus, including Bab Touma, Rukn al-Din and the Abbasiyin area. Several schools announced they would close through Monday, and many civilians cowered inside in fear of stray bullets and shelling. According to the Observatory, the Islamist Faylaq al-Rahman rebel group and the Fateh al-Sham Front - known as Al-Nusra Front before it broke ties with Al-Qaeda - were present in Jobar. ""This neighbourhood is the most important front line because it's the closest rebel position to the heart of the capital,"" said Abdel Rahman. Government forces have long sought to push the rebels out of the district because of its proximity to the city centre in Damascus. But with Sunday's attack, Abdel Rahman said, ""rebels have shifted from a defensive position in Jobar to an offensive one"".- ""These are not intermittent clashes -- these are ongoing attempts to advance,"" he said.- One rebel commander told the Associated Press news agency they launched the assualt from Jobar as a way to relieve allied fighters in the nearby districts of Barzeh, Tishreen, and Qabun from government attacks. ""This is to relieve the pressure on rebels with the regime not stopping its bombardment and artillery shelling,"" said Abu Abdo, a commander from Failaq al Rahman. The attack on Damascus comes just days before a fresh round of UN-brokered peace talks in Geneva aiming to put an end to Syria's six-year war. Rebels and government troops agreed to a nationwide cessation of hostilities in December, but fighting has continued across much of the country, including in the capital. Rebels said the army had advanced in the last two days after weeks of bombardment and aerial strikes aimed at regaining control of strategic areas inside the capital, a few kms away from President Bashar al Assad's seat of power. The army had advanced towards a road between Qaboun and Barza, whose capture severed the links between the two besieged rebel districts where tens of thousands of people live. ""Taking this road would isolate Barza and Qaboun completely and with a security belt around it,"" said Abu Abdullah, another fighter with Failaq al Rahman rebel group. The army and its alliliated militias have been targeting the besieged Eastern Ghouta area, the biggest remaining rebel bastion around the capital, for months, making incremental gains. It has undertaken a relentless bombing campaign of residential areas to force rebels to surrender and agree to deals that push them out of these areas.- -- Source:-News agencies", -3067,2017/3/19,http://www.aljazeera.com/news/2017/03/germany-angers-turkey-gulen-remarks-pkk-rally-170319065534599.html,Germany angers Turkey with coup remarks and PKK rally,German spy chief unconvinced US-based religious leader was behind failed coup as PKK backers hold rally in Frankfurt. 'Parallel state' Rally in Frankfurt,"Germany and Turkey are caught up in a fresh row after a rally backing outlawed Kurdish fighters in Turkey was held in Frankfurt and a top German intelligence official made controversial comments on last summer's failed Turkish coup. The relations between the two countries are already tense after some German states cancelled and banned political rallies planned by visiting Turkish politicians in the run-up-to a key referendum in Turkey. Turkish citizens in Turkey and abroad will decide on April 16 if they want a set of constitutional changes to significantly expand presidential powers. RELATED: Erdogan compares Germany rally ban to 'Nazi practices' Turkish officials have been further angered after Bruno Kahlmade, the-German foreign intelligence chief,-said-over the weekend that-Turkey ""failed to convince"" Germany that the organisation of Fethullah Gulen was directly behind last year's coup attempt. Turkey accuses Gulen, a religious leader who lives in self-imposed exile in the US, of orchestrating the July 15 coup attempt. About 300 people, vast majority of them civilians, were killed across Turkey after rebel soldiers attempted to overthrow the government, bombing state buildings and killing civilians and security forces. Turkish President Recep Tayyip Erdogan has repeatedly said that Gulen's group was running ""a parallel state"" within Turkey's government, taking orders from outside and following an alternative agenda. However, Kahl, in an interview with Der Spiegel magazine published on Saturday, said: ""What we saw following the putsch would have happened regardless, maybe not on the same scale and with such radicalism.""- Kahl suggested that the Turkish government used the coup attempt as ""a pretext"" to dismiss civil servants and to imprison dissidents in the country. Tens of thousands of people were arrested and civil servants were dismissed in purges after the coup attempt. The Turkish government says these actions are aimed at removing Gulen supporters from inside state institutions.- Kahl defined Gulen's Hizmet organisation as a ""civil association that aims to provide further religious and secular education"". He said the failed coup ""was not initiated by the [Turkish] state"", adding that-""before July 15, a big purge by the government was already under way."" Speaking to Al Jazeera on Sunday, Ahmet Iyimaya, a senior MP of Turkey's ruling Justice and Development Party (AK Party), said Kahl ""was not acting with goodwill"" in saying that he was not convinced of Gulen's responsibility in the coup bid. RELATED: Turkey: Coup plotters 'acted early' in fear of arrests ""I believe the German intelligence is well aware that Gulen's movement is behind this putsch,"" Iyimaya said, adding that he had heard personal accounts of bureaucrats backing Gulen at the night of the failed coup. Iyimaya, who also leads the parliament's justice commission, said:-""Turkish intelligence and other institutions can provide Germany with extensive proof if Germans are willing to talk to them. ""If they want, they can come to Turkey anytime to go through the evidence and testimonies."" In a separate development on Sunday, Turkey condemned a rally held in Frankfurt with banners and posters affiliated with the outlawed Kurdistan Workers' Party (PKK) on display. Thousands of people turned up for the rally, which took place on Saturday, marking the beginning of the annual Newroz festival for Kurds. The PKK is listed as a ""terrorist"" organisation by the EU and US. Turkey's foreign ministry expressed its displeasure to Germany's ambassador in Ankara, according to a statement by the ministry. Participants at the Frankfurt rally waved PKK flags and shouted support for ""no"" vote in the upcoming referendum. A ""Yes"" vote would introduce an executive presidency advocated by the government and Erdogan. Iyimaya told Al Jazeera that there is a ""growing double standard"" against Turkey in certain European countries, such as Germany. ""Instead of consistently following their principles, Germany and some other countries change positions according to their interests and who they deal with,"" he told Al Jazeera, pointing out that Germany recognises the PKK as a ""terrorist"" group. Iyimaya said certain European countries are ""acting in an obvious way"" against the constitutional changes that would be put into referendum next month.- Follow Umut Uras on Twitter:-@Um_Uras Source:-Al Jazeera News", -3068,2017/3/19,http://www.aljazeera.com/news/2017/03/troops-close-nuri-mosque-residents-flee-mosul-170319102311931.html,Focus on al-Nuri Mosque as residents flee Mosul,ISIL positions in city's west targeted as Iraqi troops close in on mosque from where Baghdadi declared his caliphate. Residents flee,"Iraqi army helicopters are firing rockets at ISIL positions in Mosul's Old City as troops on the ground close in on al-Nuri Mosque, a centuries-old structure famous for its-leaning minaret. Federal Police troops advanced past the train station in western Mosul closer to the mosque on Sunday. A police commander said they were very close to taking control of it. Residents fled from the area, carrying bags of belongings and picking their way through the wrecked buildings as shells and gunfire echoed behind them. Most of them were women and children. ""Federal Police and Rapid Response forces resumed their advance after halting operations due to bad weather. The troops have a target of retaking the rest of the Old City,"" a police spokesman said. OPINION: Mosul after ISIL - Insurgency and rivalry The battle to recapture the last stronghold of ISIL, or the Islamic State of Iraq and the Levant group, in Iraq has now entered its sixth month. Iraqi government forces, backed by US advisers, artillery and air support, have cleared the east and half of western Mosul and are now focused on controlling the Old City. Recent fighting has targeted the strategic-al-Nuri Mosque. Its capture would be a blow for ISIL, also known as ISIS, as it was from there that leader Abu Bakr al-Baghdadi declared a caliphate in July 2014 after the group had seized chunks of Iraq and Syria. US officials estimate about 2,000 ISIL fighters remain inside Mosul, Iraq's second largest city, resisting with mortar fire, snipers and suicide car bombs that attack army positions. The black ISIL flag still flew from the mosque's minaret on Sunday. Al Jazeera's Stefanie Dekker, reporting from east Mosul, said thousands of civilians were trying to escape the fighting. ""We have been hearing many stories from people feeling western Mosul - civilians caught in the middle, being killed by all sides in the conflict. The numbers seem alarmingly high. So far the exact toll has been impossible to confirm,"" she said. ""As Iraqi forces push further into the heart of western Mosul, the more resistance they face, especially since the battle has now reached the outskirts of the densely populated Old City. ISIL is using a seemingly never ending supply of suicide car bombers and snipers."" As many as 600,000 civilians may be caught inside the city with ISIL fighters. About 255,000 people have been displaced from Mosul and surrounding areas since October, including more than 100,000 since the military campaign in western Mosul began on February 19, according to UN figures. The last week has seen the highest level of displacement yet, with 32,000 displaced between March 12 and 15. PHOTO GALLERY: The battle for western Mosul ""The front lines haven't moved much over the last few days,"" our correspondent said. ""The weather was playing a role on this battlefield. When the sky is grey and it's raining, Iraqi advances are usually slowed, as the cloudy skies hinder pilots and their air support. ISIL also often uses the cover to carry out counter attacks. ""The weather also has an effect on the tens of thousands who are streaming out of Mosul, making their lives even more miserable."" Federal Police moved into the city on foot from near the train station towards the Old City, negotiating rubble-filled streets. General Khalid al-Obedi, the police commander,-said: ""We are advancing toward the Old City. Their resistance is weakening. They are mostly using car bombs and that shows they are losing on the ground."" Meanwhile, Federal Police arrested Husam Sheet al-Jabouri, the local chief of Diwan al-Hisba, an ISIL unit responsible for enforcing strict Islamic rules, in Mosul's Bab al-Sijin area, a police statement said. Source:-Al Jazeera and news agencies", -3069,2017/3/19,http://www.aljazeera.com/indepth/opinion/2017/03/famine-somalia-turkish-170319101255256.html,,,"Jerome Jarre's viral hashtag, #TurkishAirlinesHelpSomalia, was yet another attempt to draw worldwide attention to the famine in the Somali peninsula, but the Somali people are in need of both an organised, short-term as well as a long-term response to ensure that this crisis is contained, and does not happen in the future. In Somalia, the cycle of long droughts followed by famines has been going on for many decades. Now, more than five million Somalis need immediate assistance in order to prevent another famine. ""This drought has created the biggest displacement of people in the country,"" said Adan Adar, the country director of the American Refugee Committee. Somalis from all over the world, as well as a large number of local and international NGOs, have been collecting and sending in donations. In order to save as many people as possible, an immediate and large-scale humanitarian campaign effort followed by a sustainable development strategy that can help build resilient state institutions to control the negative effects of future drought occurrences are necessary. The model the Turkish government employed in 2011 and 2012 offers an innovative perspective. Therefore, donor countries must consider adopting it for Somalia. Humanitarian agencies and international organisations have started rescue efforts by raising the awareness of the world community. In early March, the United Nations Secretary-General Antonio Guterres, paid an unannounced yet timely visit to Somalia in order to mobilise the international community to help rescue the people who were affected by the drought. In fact, in the past, Guterres has been a consistent supporter of Somali people. For instance, when he was the commissioner for the UNHCR, he pressured both Kenyan and Somali governments to respect the human rights of the refugees. As recently as 2011, Somali people have experienced one of the worst famines in the Horn of Africa region, which killed more than 250,000 people and displaced at least one million. In their book Famine in Somalia, Daniel Maxwell and Nisar Majid-rightly characterised the responses to this famine as ""collective failures"". In 2011, Recep Tayyip Erdogan, the current president of Turkey, was the first high-profile figure who visited Somalia, with the intention of raising the awareness of the international community. OPINION - Erdogan: The hero of Somalia At the present time, even though millions of Somalis are on the brink of starvation, there has been a lack of attention and support from the world community. Therefore, the next few weeks are crucial for controlling the damage of the drought. Perhaps, the countries of the Gulf Cooperation Council (Saudi Arabia, Qatar, Kuwait, United Arab Emirates, Oman and Bahrain) are well positioned to lead the short-term humanitarian efforts in Somalia because of their strong economies, geographic proximity, and cultural and historical relations with the Somali people. In Somalia, because of the lack of a functioning state, there are few mechanisms to control droughts from becoming famines. In order to reverse this and establish functioning state institutions, I believe, we can learn several lessons from the model that Turkey employed in 2011. First, the Turkish model combined aid and development. For instance, in 2012-2014, the Turkish Red Crescent managed the Rajo camp for the 29,000 internally displaced people in Mogadishu (PDF). At the same time, only a few kilometres from the camp, the Turkish Development Agency and a private corporation brought large construction equipment that built major roads in Mogadishu. Second, Turkey provided direct and often unconditional assistance to the Somali government. Unlike the Western donors, Ankara gave direct budgetary assistance to the previous administration in Mogadishu. Hopefully, it will do the same for the new government. Being on the ground was perhaps the most important factor that has helped Turkey to receive widespread support from the Somalis. - Third, the Turkish model focused on high-impact infrastructure development projects. For example, these included hospitals, an airport and major roads. Fourth, since the capacity of the Somali institutions are low, Ankara has used public-private partnerships to deliver most of the capital projects. Turkish companies managed the Mogadishu airport and port, and delivered the construction of the tarmac roads. The Turkish Airways regularly flies to Mogadishu.-With a new terminal in the airport, hopefully, more airlines will fly into the country. Even though some of these companies were interested in making profits from their entrepreneurial adventures, Somalis still benefitted from their presence. Turkish companies forced Somali businesses to compete. The more companies that arrive in Somalia, the more people that will get jobs and choices. Prices will fall and the quality of service will improve. Finally, being on the ground was perhaps the most important factor that has helped Turkey to receive widespread support from the Somalis. Turkish diplomats and aid workers stayed in the country, which helped them understand the Somali people and their needs better. For them, there was no need for mapping studies. Staying on the ground has significantly reduced the administrative cost as well. Donor countries have provided billions of dollars of assistance to the needy Somalis for the last couple of decades - which Somalis appreciate. Recently, the world community helped rescue millions of Somalis from famine in 1991 and 2011. It is a fact that the European Union, the United States and other donors have supported the Somali people in many ways. Indeed, besides contributing to the recovery and the development of the country, the Somali diaspora in the Western and Gulf countries are now on the frontlines of the rescue efforts in Somalia. That said, to maximise the impact of the billions of dollars of aid that the West, Gulf countries and others provide to Somalia, the current aid paradigm must be revisited. To date, few donors invested in the infrastructure and long-term impact projects. As important as relief and capacity building projects are, it is more useful to invest in major, capital projects such as a tarmac roads, ports and hospitals. The Turkish aid model opened new doors for the Somali people. Western and Gulf donors should follow suit and invest in the long-term projects that can help empower the state institutions, prevent another humanitarian catastrophe and contribute to the economic growth of the country. OPINION: How to tackle repetitive droughts in the Horn of Africa In short, hundreds of thousands of Somalis are now on the verge of starvation. We must do all we can to rescue as many people as possible through large-scale humanitarian efforts. Hopefully, the GCC countries will lead this campaign. In doing so, we must learn from the 2011 experience and the model that Turkey employed. Simultaneous relief and development efforts are necessary. Afyare A Elmi is an associate professor at Qatar University's Gulf Studies Program. He is the author of the Understanding the Somalia Conflagration: Identity, Political Islam and Peacebuilding.- The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3070,2017/3/19,http://www.aljazeera.com/indepth/features/2017/02/death-penalty-cases-follow-year-170223072445021.html,Five death penalty cases to follow in the US this year Al Jazeera Staff,"There are an estimated 2,905 people on death row in the US. Here are five particularly controversial cases. By Duane Buck Jeffrey Wood- Terry Williams- Willie Jerome Manning- Kerry Lyn Dalton-","The United States has put to death more than 1,446 people since 1976, according to the Washington, DC-based Death Penalty Information Center (DPIC).- Texas leads the country in the number of executions carried out during that 41-year period, killing at least 540 people. Oklahoma and Virginia are tied for second with 112 executions each.- Meanwhile, public opinion on the death penalty seems to have been gradually changing. In September 2016, the Pew Research Center found that support for the death penalty was at its lowest in 41 years.- Since 1973, at least 157 people have been exonerated and released from death row. But the DPIC says that, as of July 2016, 2,905 people remain on death row.- The following are some of the cases where legal teams or campaigners are hoping to have death sentences overturned.- In 1995, Duane Buck broke into the home of his ex-girlfriend, Debra Gardner, in Houston, Texas, after they broke up. Armed with two guns, he shot and killed Gardner and her friend Kenneth Butler while Gardner's three children were in the home. He was tried, convicted and sentenced to death in 1997.- Although Buck, now 53, never contested his guilt, the decision to deliver a capital punishment verdict rather than a life sentence has been thrown into question after a review of the racially charged testimony of an expert witness during the sentencing trial.- Psychologist Walter Quijano, who was introduced by Buck's own defence, testified that Buck would be dangerous in the future because he is African American. READ MORE: Infographic - Breaking down the death penalty In six other trials, Quijano testified to juries that black and Hispanic defendants were more likely to commit future crimes - the justification for sentencing them to death rather than life in prison. In 2000,-Texas Attorney General John Cornyn, who is now a US senator, reviewed those cases and admitted that Quijano's race-based testimony in those seven trials was ""inappropriate"".- Two years later, the other six death row inmates were granted new sentencing hearings, but Buck was not. On February 22, 2017, the US Supreme Court ruled six-to-two in favour of granting Buck a chance at a new sentencing.- Jeffrey Wood, 43, was sentenced to death by a Texas court on March 3, 1996. His death sentence stems from the state's so-called Law of Parties. During the early morning hours of January 2, 1996, then 22-year-old Wood and Daniel Reneau parked outside a Texaco petrol station in Kerrville, his hometown in central Texas. While Wood waited outside, Reneau shot dead the station attendant and took off with an estimated $11,350 from the safe and cash register. Reneau was executed in 2002. The Texas penal code defines a person as ""criminally responsible for an offence committed by the conduct of another"" if the individual acts ""with intent to promote or assist the commission of the offence, he solicits, encourages, directs, aids or attempts to aid the other person to commit the offence"". READ MORE: Does a Texas man who killed no one deserve death row? According to the DPIC, at least 10 people have been killed for their role as accomplices in murders since 1979. Five of those were in Texas. Relatives and defenders of Wood, who reportedly has an IQ of 80, say he suffers from intellectual disability and emotional impairment.- On August 19, 2016, the Court of Criminal Appeals in Texas granted Wood a stay of execution and decided a state district court should re-examine the validity of testimony provided by Dr James Grigson, a forensic psychiatrist who testified that Wood was likely to be violent in the future despite never having examined him. Grigson, who died in 2004, was expelled from the American Psychiatric Association and the Texas Society of Psychiatric Physicians for providing testimony against people he had never examined. He was known as ""Dr Death"" for testifying against people facing the death penalty.- When he was 17 years old, Williams killed 50-year-old Herbert Hamilton in Philadelphia, Pennsylvania. It was January 1984, and he reportedly lured Hamilton, who had allegedly repeatedly sexually abused the teen, and stabbed and beat him with a baseball bat until he died. Six months later, Williams, then 18, and his friend Marc Draper lured Amos Norwood to a cemetery, where they beat him to death with a tyre iron. They later stole his car and took off to Atlantic City, New Jersey.- After surrendering himself to the police in July 1984, Williams was eventually convicted of third-degree murder in the death of Hamilton and was sentenced to 27 years. For Norwood's death, however, he was convicted of first-degree murder and sentenced to death.- Williams, however, had been repeatedly raped as a child, and Norwood and Williams were allegedly among the perpetrators. Several others accused Norwood of sexually abusing them while they were young boys.- Many of those involved in his original trial have publicly changed their minds since Williams was sentenced to death. Five jurors signed statements saying they wouldn't have voted for capital punishment if they had known of the evidence of sexual abuse.- READ MORE: Surviving death row In 2012, Norwood's wife Mamie signed a declaration that she did not want Williams to be executed for her late husband's murder.- A lower court in Pennsylvania found that the Philadelphia District Attorney's Office had suppressed evidence that Norwood had sexually abused Williams.- In the 1980s, however, Ronald Castille was district attorney and personally approved the decision to pursue capital punishment against Williams. Castille later became Pennsylvania Supreme Court Justice and refused to recuse himself from consideration of the inmate's death penalty - despite the lower court's finding that the district attorney's office had suppressed evidence under Castille.- On June 9, 2016, the US Supreme Court ruled in a five-to-three vote that Williams' constitutional rights had been violated.- Willie Jerome Manning, 48, was convicted at two separate trials of two unrelated murders that took place in 1992 and 1993. He received two death penalty sentences. On death row for more than two decades, he has always maintained his innocence.- Manning was found guilty of the December 1992 killing of students Jon Steckler, 19, and Tiffany Miller, 22, in Starkville, Mississippi. He was later sentenced to death.- Five weeks after the killing of Steckler and Miller, 90-year-old Emmoline Jimmerson and her 60-year-old daughter, Albertha Jordan, were murdered during an attempted robbery. They were both beaten with an iron before their throats were slashed. A court also convicted Manning of their murders and eventually dealt him a second death sentence.- In 2011, a key witness recanted his testimony that he had witnessed Manning entering Jimmerson's apartment and filed affidavits that his testimony was false and the result of coercion.- In 2013, Manning was given an execution date for the Steckler-Miller case. He came within hours of dying before the court granted him a stay of execution.- In 2015, the Mississippi Supreme Court granted Manning a new trial for the Jimmerson-Jordan murders. He was exonerated and the charges were dropped.- Still on death row for the Steckler-Miller case, Manning has attempted to challenge hair and DNA evidence presented in his first trial.- The Federal Bureau of Investigation (FBI) has admitted that its forensic expert had made mistakes in testimony during the Steckler-Miller trial, and the US Department of Justice has told the prosecutor that ""testimony containing erroneous statements regarding microscopic hair comparison analysis was used"" against Manning. If the forensic evidence eventually comes back in Manning's favour, he will be the first person to be exonerated for two separate death sentences.- In March 1995, Kerry Lyn Dalton was sentenced to death for the murder of Irene Louise May in a trailer park in Live Oak Springs, California, more than seven years earlier. She was 28 years old and reportedly struggling with drug addiction at the time she was said to have killed May.- May's body, however, has never been located, and Dalton was primarily convicted based on confessions the prosecution alleges she gave to other people.- Victoria Ann Thorpe, Dalton's sister, wrote a book about the trial and has campaigned for Dalton's exoneration on the grounds that she was convicted on hearsay and there was neither a body nor a crime scene.- Dalton has yet to have an appeal heard, although her sister says it is prepared and they have been waiting for years.- Women make up less than two percent of the total death row population, according to DPIC.- Source:-Al Jazeera News", -3071,2017/3/19,http://www.aljazeera.com/indepth/features/2017/03/brexit-affect-european-union-170310121554584.html,How will Brexit affect the European Union?,"With populist parties on the rise, we ask if more countries will abandon the EU and what that could mean for Europe. 'Britain first' Anti-establishment xenophobia","Whether Britain should withdraw from an economic and political union with Europe was the question put to the British people in a referendum in 2016. In an historic move, Britain voted ""Leave"", opting to quit the European Union and end a 43-year relationship with the continent. It was a decision that remained too close to call right up until the very last moment, dividing the nation down the middle with 52 percent of Britons choosing to leave. It was the culmination of four months of bitter campaigning that exposed deep rifts in British society, and in the continent too. ""Brexit-was the first significant victory in foreign policy for the radical right ""?and it clearly has inspired Marine Le Pen, Geert Wilders and others,"" explains Cas Mudde, the author of The Ideology of the Extreme Right. INTERACTIVE: The making and breaking of Europe After the results were announced, Prime Minister David Cameron submitted his resignation, heeding calls by his rivals that his position was untenable after having failed to convince Britons to remain in the union with Europe. ""I will do everything I can as prime minister to steady the ship in [the] coming months, but I do not think it would be right for me to captain that ship,"" Cameron said. The capital, London, voted to stay a part of the EU; however, parts of the rest of southern England, along with Wales, voted to leave. In the north, cities voted to remain while rural areas wanted out. And across the country, the young voted overwhelmingly to remain, while the over-65s voted to break away. In the week before the referendum was to take place, Jo Cox, a 41-year-old British Member of Parliament and pro-EU campaigner, was stabbed to death outside a library where she regularly met constituents in her home village of Birstall, in northern England. During the fatal knife and gun attack the executor was heard to be shouting: ""Britain first, this is for Britain."" In her political life, Cox campaigned for diversity; victims of the Syrian conflict; child refugees; Palestinians affected by the blockade of the Gaza Strip; and for the rights and welfare of the victims of Islamophobia. She also worked with anti-slavery charity Freedom Fund and Oxfam. OPINION: Brexit - A wake-up call for the EU, but will it listen? This was the first assassination of an MP in the UK in 25 years. ""The perpetrator of the attack argued that the white race is quickly becoming extinct. This is a common idea that runs through the European far-right,"" explains Matthew Goodwin, a professor of politics and international relations at the University of Kent. Britain's vote to exit the EU was aided by a populist, anti-establishment xenophobia now coursing through the continent. In the same year, Angela Merkel's Christian Democrats were beaten into third place by the far-right AfD party in local elections, while Germany endured a year of violent attacks that spotlighted its refugee policy.-France's Front National leader Marine Le Pen made significant gains in presidential election polls; Austria came close to electing a far-right head of state and Italy rejected constitutional reforms for not being radical enough, prompting the resignation of its centrist leader. READ MORE: UK- Hate crime 'at record levels' after Brexit vote According to Rami Peit, a research associate on political economy and foreign policy at the Florida International University, ""If Le Pen wins the elections, it would clearly mean the end of the EU as we know it, as a Frexit vote would leave Germany as the only major global economic and political actor."" Populist, anti-immigration parties are on the rise as high unemployment and austerity, the arrival of record numbers of refugees, and violent attacks deepen voter disillusionment with traditional parties. ""These are very dangerous moments for Europe,"" says Dan Stone, the author of Goodbye to All That: The Story of Europe Since 1945. ""We see important elections coming in Germany and in France in the wake of Brexit. We see the rise of so-called populist movements, not just across Europe but in the US and elsewhere."" Stone adds: ""The catastrophe of World War II was what brought about the integration of Europe and it was an imperfect process but if it's abandoned altogether, then what will the consequences of that be?"" Source:-Al Jazeera News", -3072,2017/3/19,http://www.aljazeera.com/news/2017/03/global-temperatures-continue-soar-170319092154493.html,Global temperatures continue to soar,February was one of the warmest months recorded globally in more than 130 years.,"February of 2017 has been confirmed as the second warmest February on record according to NOAA's National Center for Environmental Information (NCEI). This has been confirmed by NASA which uses slightly different criteria. Also according to NOAA, February was the fourth warmest month ever recorded in a database which stretches back to 1880. The globally averaged temperature in February was 1.10 C above the long-term average. Last February was slightly warmer at 1.32 C above average. For an explanation, look no further than the fact that global ocean temperatures were the second highest ever recorded in February. With January being the tenth warmest month in NOAA's database and February the fourth, there is a chance that 2017 could go on to be the fourth consecutive warmest year on record. For this to happen, an El Nino would probably need to develop later in the year. This phenomenon, which results in a warming of the surface waters of the eastern Pacific, usually occurs every two to seven years. The last major El Nino of 2015/16 was a major contributor to 2016 being the warmest year on record. There were hints of a weak La Nina during the latter part of 2016, but that was not sustained. Instead, quite remarkably, there was been a further warming of eastern Pacific sea surface waters, by up to 6 C. In itself, this does not meet the criteria required for an El Nino, but it has certainly played a part in the recent flooding rains to hit Peru, and it may develop into a full-blown El Nino later in the year. If this was to occur, there would be every possibility of 2017 being yet another record-breaker, and continuing a remarkable sequence: since 1880, the 12 warmest years on record have occurred since 1998. Source:-Al Jazeera and news agencies", -3073,2017/3/19,http://www.aljazeera.com/indepth/opinion/2017/03/isil-mosul-insurgency-rivalry-170319081646052.html,,,"""The battle now is in the final stages,"" Iraqi Prime Minister Hayder al-Abadi said on March 14 of the government offensive to retake Mosul from ISIL. ""They are cornered, and if they will not surrender they will definitely get killed."" While the impending combat threatens to be circuitous and uncertain - involving, as it will, fighting among civilians in the narrow streets and alleyways of the Old City - Abadi's confidence about the final outcome appears to be warranted. But what will be the broader repercussions of Mosul's liberation for the Islamic State of Iraq and the Levant (ISIL, also known as ISIS)? Firstly, on the tactical level, ISIL will continue to devolve into an insurgency - leaving civilians extraordinarily vulnerable. Suicide bombings on soft targets are set to increase, as will attacks on pilgrims, funeral processions and infrastructure. Unfortunately, ISIL's leaders will feel comfortable with this gear-change. Many of them cut their teeth as insurgents in post-invasion Iraq, under the banner of predecessor groups such as Al-Qaeda in Iraq (AQI) and the Islamic State of Iraq. In the summer, as it became clear ISIL would inevitably lose its grip on key territories in Iraq and Syria, a devastating car bomb in the Shia-dominated Karada district of Baghdad killed more than 200 civilians. The bombing, which was the deadliest explosion to rock Baghdad since 2003, was followed closely by a triple suicide attack at a Shia holy site in Balad. On February 24, ISIL fighters were pushed out of Al Bab, their last stronghold in northern Syria. The following day, two suicide bombings claimed 53 lives. In the wake of last month's successful operation to evict ISIL from Sirte in Libya, authorities must surely be braced for the infiltration of Tripoli and other major cities by ISIL sleeper cells. Indeed, as the Mosul campaign intensifies, it is worth recalling that the 2007 ""surge"" in Iraq successfully expelled AQI from key safe havens in Baghdad and the Anbar province, yet this tactical degradation never translated into strategic defeat. The battle for Mosul may be in its final stages, but so long as there is a market for extremist groups to offer protection and livelihoods to vulnerable populations, the shape-shifting war goes on. - Then, as now, the drivers for radicalisation and recruitment - the raison d'etre - were still there: a brutalising combination of grinding poverty and legitimate Sunni grievances against the Iraqi state. A move to insurgency makes the political track more important than ever, as ISIL seeks to blend in with ""host"" populations once more. ""We rely upon the people to billet us,"" as the Northern Irish nationalist Gerry Adams once put it. The onus on the Iraqi government to reach out to these Sunni communities systematically and meaningfully could not be stronger. The second impact of the liberation of Mosul will be felt in Syria, where ISIL increasingly finds itself in the crosshairs of both Turkish-backed and Kurdish forces. Despite its many complications, and the preponderance of competing ""cooks"", the battle for Raqqa is undoubtedly entering a new phase. The Kurdish-backed Syrian Democratic Forces have moved into surrounding villages and cut the supply road to Deir Az-Zor, with the aim of isolating and besieging the ISIL ""capital"" from all sides. Furthermore, United States commitment is clear - to serve as a buffer between various rebel factions, as much as to provide weapons, Rangers and air and artillery support. OPINION: From the rubble of Aleppo, ISIL rises Finally, as ISIL's proto-state is assaulted and its men fan out across the region, we may see an uptick of competition with a quietly assertive al-Qaeda. In Syria, for example, al-Qaeda has been a dominant presence within the armed opposition, operating officially under the banner of Jabhat al-Nusra until July 2016, and unofficially as Jabhat Fateh al-Sham (JFS) since. Its leaders aim at a genuine grassroots insurgency, and have sought to gradually assimilate into Syrian society. At the same time, however, JFS is on the verge of open conflict with another Islamist faction, Ahrar al-Sham. OPINION: Time to tackle ISIL's millions of sympathisers? In January 2017, JFS spearheaded an alliance with smaller Salafist groups, known as Hay'et Tahrir al-Sham, making it a formidable player in the country's northwest. Ahrar al-Sham, with its more moderate, nationalist orientation has itself taken in a number of smaller factions seeking protection from JFS, and tensions have now reached fever-pitch in Idlib, the last rebel-held province. At the heart of these divisions is the peace process with the regime, a stepped-up drone campaign against JFS, and a blame game over the fall of Aleppo. The introduction into this mix of retreating ISIL elements could prove explosive. In North and West Africa, al-Qaeda is resilient. Al-Qaeda in the Islamic Maghreb (AQIM) has withstood the chokehold of the Algerian security services, US drones, and the French-led intervention in Mali, to launch a range of attacks in recent years, whether storming a beach resort in Ivory Coast or conducting a low-level insurgency in northern Mali. AQIM even managed to win back to its tent the rogue commander Mokhtar Belmokhtar, mastermind of the Ain Amenas operation. From January to June 2016, al-Qaeda-linked groups launched more than 100 attacks in West Africa. Earlier this month, four Sahel-based affiliates announced their merger into a single movement under the leadership of Iyad Ag Ghaly. Thousands of North African natives have travelled to Syria and Iraq to join ISIL's ranks - the prospect of their return has deeply troubled security agencies, and must surely rankle al-Qaeda. In Algeria, AQIM's birthplace, the ISIL-linked Jund al-Khalifa may be on its knees, but at least two other groups have pledged allegiance to the so-called caliphate. In Tunisia and Libya, where al-Qaeda affiliates are firmly established, ISIL encroachment will continue to generate fierce resentment and rivalry. ISIL has already proved unable to resist the temptation to challenge al-Qaeda in the Sahel, with its porous borders and lucrative smuggling routes. Hence, in November 2016, the Islamic State in Greater Sahara was formed, led by Adnan Abu Walid al-Sahrawi. In Yemen, too, ISIL has made cameo appearances in the al-Qaeda heartland of Hadramout province, with deadly suicide bombings in Mukalla, and, separately, Aden, last year. The battle for Mosul may be in its final stages, but so long as there is a market for extremist groups to offer protection and livelihoods to vulnerable populations, the shape-shifting war goes on. Alia Brahimi is a specialist in terrorism and political trends in the Middle East and North Africa. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3074,2017/3/19,http://www.rte.ie/news/courts/2017/0319/860875-longford-stabbing-men/,Three teenagers charged over Longford St Patrick's Day stabbing,,"Three-teenagers have-been charged in connection with an incident on St Patrick's Day when a man was stabbed in Longford town. 18-year-old Ciaran McDonnell-of 34 College Park in Longford and two boys, aged 17 and 15, appeared before a special sitting of Longford District Court this morning. All three were charged with assault causing harm following an incident on-New Street-on Friday night. The court heard Mr McDonnell, when handed a copy of the charge sheet, made no reply. Mr McDonnell was remanded in custody to appear before a sitting of Harristown District Court next Friday. Bail was granted to the two other boys, who cannot be named due to their ages. They were ordered by Judge Kevin Kilraine-to abide by a number of conditions, including a 7pm-8am curfew, to sign-on daily at Longford Garda Station and to refrain from passing St Mel's Cathedral to enter Longford town except for legal consultations. A man in his 30s remains in a stable condition in hospital after the incident.", -3075,2017/3/19,http://www.rte.ie/news/ireland/2017/0319/860893-sligo-boat-search/,Eight rescued from overturned boat off Sligo coast,,"Eight people have been safely rescued after a boat overturned-in the Atlantic-off the coast of Sligo. One person is being treated for serious injuries at Sligo University Hospital-after the incident. One other person suffered minor injuries. The alarm was raised at 11.30am this morning when the boat got into difficulty-off Aughris Head at Skreen, between Enniscrone and Sligo. The Coast Guard and local RNLI units were involved in the operation.", -3076,2017/3/19,http://www.rte.ie/news/brexit/2017/0319/860887-brexit-flour-bread/,Milling industry warn Brexit could 'add 10c to price of loaf' in Ireland,,"Brexit could put an extra �1.10c-on the price of a loaf in Ireland, the milling industry has warned. 80%-of the flour used in the Republic for baked goods and other products comes from the UK, and may face an inflation-busting tariff if a deal is not struck. If Irish producers switched suppliers to those operating within the EU to avoid trade barriers, then jobs would be lost in the UK, according to the National Association of British and Irish Millers. Director Alex Waugh said: ""If tariffs were to be introduced the rate the EU normally charges those at would add eight to 10-cents to a loaf of bread in the Republic. ""It is pretty inflationary, assuming the flour continues to come from the same source as now. ""Once you introduce a tariff everything changes, so the likelihood is that the flour currently coming from the UK would come from somewhere else in the EU where there would not be a tariff."" He said the result would be jobs lost in the UK. Flour is sent from the UK to Ireland to be refined into anything from bread and cakes to coating for chicken nuggets and battered fish. It is often exported back to the UK as part of finished goods. Over the last 20 years the UK has become the main supplier of milled flour to the Republic. The only mill in the Republic-is at Portarlington in Co Laois in the midlands. Half of the flour used by Irish bakers is milled on the island of Ireland, a significant proportion of that from Belfast, and the rest comes from England, Mr Waugh said. He added: ""What we are seeing is politicians trying to respond to different pressures in different places. ""From the point of view of our business, maintaining that tariff-free trade between the UK and Ireland is crucial.""", -3077,2017/3/19,http://abcnews.go.com/US/teacher-planned-alleged-abduction-teen-advance-police/story?id=46238809,Former teacher may have planned alleged abduction of teen in advance: police,,"The Tennessee teacher accused of kidnapping a 15-year-old former student may have planned the abduction in advance, according to police. The student, 15-year-old Elizabeth Thomas was last seen around 7:30 or 8 a.m. Monday at a Shoney's restaurant in Columbia, Tennessee, where she had been dropped off by a friend, according to the Tennessee Bureau of Investigation. Her former teacher, Tad Cummins, 50, is allegedly shown on surveillance footage from a gas station near the restaurant at about 8:30 a.m. filling up his silver Nissan Rogue, the car in which authorities believe he is traveling in with the teenager. He is believed to have two handguns, and Elizabeth is considered to be ""in imminent danger,"" the state investigative bureau said. ""What scares us about Mr. Cummins is he's sort given up his life at this point,"" Maury County Sheriff Bucky Rowland told ABC News. ""The girl is just 15."" Rowland said the teacher may have decided to take Elizabeth and leave in the wake of his being spotted earlier this year allegedly kissing the teen student. Jason Whatley, an attorney for Elizabeth's father, Anthony Thomas, told media this week that another student saw Cummins kissing Elizabeth on Jan. 24. Both the Maury County Public Schools and the Maury County Sheriff's Department investigated the incident. School officials said in a statement that the health sciences teacher at Culleoka Unit School was initially suspended and then dismissed as a result of the district investigation. ""The district does not tolerate any manner of behavior that is alleged in this incident and will take swift action to remove parties from school campuses who are involved with investigations of this type,"" the statement said. Sheriff Rowland said his department's investigation of the incident is still pending. The sheriff said Cummins may have begun plotting to leave with Elizabeth after he was suspended from his teaching job. ""That's how it started,"" Rowland said. The Tennessee Bureau of Investigation also said in a news release that Cummins ""potentially planned this abduction prior to Monday."" He ""may have been abusing his role as a teacher to groom this vulnerable young girl for some time in an effort to lure and potentially sexually exploit her,""?the bureau said. Sabrina Gallup, a manager at the Shoney's, where Elizabeth was dropped off Monday morning told ABC News by phone that Thomas had no connection to the restaurant beyond that of a potential customer. She said the girl's disappearance has left people in the community of Columbia, Tennessee, unsettled. ""Everyone's keeping an eye out,"" Gallup said. ""The entire town is looking out for her right now.""", -3078,2017/3/19,http://abcnews.go.com/Politics/trump-expected-pick-george-conway-kellyannes-husband-key/story?id=46237238,"Trump expected to pick George Conway, Kellyanne's husband, for key Justice Department role",,"President Donald Trump is expected to name attorney George Conway, the husband of White House counselor Kellyanne Conway, to lead the Department of Justice's Civil Division, senior sources tell ABC News. The appointment would require Senate confirmation. The news was first reported by The Wall Street Journal. If confirmed, Conway would be responsible for leading a division in charge of enforcing laws preventing discrimination. A partner at law firm Wachtell, Lipton, Rosen & Katz and prominent Republican lawyer, Conway has litigated a number of high-profile cases in federal and state and would be responsible for overseeing the administration's legal conflicts, such as those mounting against Trump's travel ban. Conway was also part of the legal team that represented Paula Jones, the former Arkansas state employee who filed a sexual harassment lawsuit against Bill Clinton during his presidency. Jones' lawsuit went all the way to the U.S. Supreme Court. After four years of legal battle, Jones and Clinton reached an out-of-court settlement, in which Clinton agreed to pay Jones $860,000 to drop the lawsuit. Conway is a graduate of Harvard College and received his law degree from Yale University.", -3079,2017/3/19,http://abcnews.go.com/Entertainment/wireStory/jimmy-breslin-chronicler-wise-guys-underdogs-dies-46237680,"Jimmy Breslin, chronicler of wise guys and underdogs, dies",,"Jimmy Breslin scored one of his best-remembered interviews with President John F. Kennedy's grave-digger and once drove straight into a riot where he was beaten to his underwear. In a writing career that spanned six decades, the columnist and author became the brash embodiment of the street-smart New Yorker, chronicling wise guys and big-city power brokers but always coming back to the toils of ordinary working people. Breslin, who died Sunday at 88, was a fixture for decades in New York journalism, notably with the New York Daily News, and he won a Pulitzer Prize for pieces that, among others, exposed police torture in Queens and took a sympathetic look at the life of an AIDS patient. ""His was the triumph of the local, and to get the local right, you have to get how people made a living, how they got paid, how they didn't get paid, and to be able to bring it to life,"" said Pete Hamill, another famed New York columnist who in the 1970s shared an office with Breslin at the Daily News. ""Jimmy really admired people whose favorite four-letter word was work,"" said Hamill, speaking from New Orleans. Breslin died at his Manhattan home of complications from pneumonia, according to his stepdaughter, Emily Eldridge. It was the rumpled Breslin who mounted a quixotic political campaign for citywide office in the 1960s; who became the Son of Sam's regular correspondent in the 1970s; who exposed the city's worst corruption scandal in decades in the 1980s; who was pulled from a car and nearly stripped naked by Brooklyn rioters in the 1990s. With his uncombed mop of hair and sneering Queens accent, Breslin was a confessor and town crier and sometimes seemed like a character right out of his own work. And he didn't mind telling you. ""I'm the best person ever to have a column in this business,"" he once boasted. ""There's never been anybody in my league."" He was an acclaimed author, too. ""The Gang that Couldn't Shoot Straight"" was his comic account of warring Brooklyn mobsters that was made into a 1971 movie. ""Damon Runyon: A Life"" was an account of another famous New York newsman, and ""I Want to Thank My Brain for Remembering Me"" was a memoir. Breslin was ""an intellectual disguised as a barroom primitive,"" wrote Jack Newfield and Wayne Barrett in their book ""City for Sale."" He acknowledged being prone to fits of bad temper. After spewing ethnic slurs at a Korean-American co-worker in 1990, Breslin apologized by writing, ""I am no good and once again I can prove it."" But under the tough, belligerent personality was someone else ""?a son whose hard-drinking father left home when he was 6 to get a loaf of bread and never returned, Hamill said. Breslin's mother supported the family by working as a welfare system administrator, raising the boy along with her two sisters. ""The gruff personality was a mask a guy would don to get through the day,"" Hamill said. ""Under the mask, what you found at his core was being raised by women, so life is more complicated than a punch in the jaw."" In the 1980s, he won both the Pulitzer for commentary and the George Polk Award for metropolitan reporting. The Pulitzer committee noted that Breslin's columns ""consistently championed ordinary citizens."" A few days after the 2001 World Trade Center attacks, he wrote of the dwindling hopes for families. ""The streets have been covered with pictures and posters of missing people,"" he wrote. ""The messages on the posters begging for help. Their wife could be in a coma in a hospital. The husband could be wandering the street. Please look. My sister could have stumbled out of the wreckage and taken to a hospital that doesn't know her. Help. Call if you see her. But now it is the ninth day and the beautiful sad hope of the families seems more like denial."" In other columns, Breslin presented an array of recurring characters ""?Klein the Lawyer, Shelly the Bail Bondsman, Un Occhio the mob boss. They seemed to blur the line between fact and fiction, until the first pair became key figures in Breslin's 1986 exclusive on the multimillion-dollar Parking Violations Bureau scandal. ""Of course I would betray a friend for the biggest story of the year,"" he said after doing just that on the last manual typewriter in the News' old 42nd Street newsroom. After such successes, he held court in Costello's bar in midtown Manhattan ""?until he quit drinking in his post-Pulitzer years. Breslin demonstrated few early skills as a wordsmith, graduating from high school before a brief, undistinguished stay at Long Island University starting in 1948, while he was already working at the Long Island Press. As a sportswriter, he bounced between papers until he landed at the New York Herald Tribune. He became a news columnist in 1963 and quickly found a story when none seemed left to tell. As reporters from around the world arrived to cover President Kennedy's funeral, Breslin alone sought out the presidential grave-digger, Clifton Pollard, and began his report with Pollard having a breakfast of bacon and eggs at his apartment on the Sunday following JFK's assassination. ""Pollard was in the middle of eating them when he received the phone call he had been expecting. It was from Mazo Kawalchik, who is the foreman of the gravediggers at Arlington National Cemetery, which is where Pollard works for a living,"" Breslin wrote. ""Polly, could you please be here by eleven o'clock this morning?' Kawalchik asked. 'I guess you know what it's for.' Pollard did. He hung up the phone, finished breakfast and left his apartment so he could spend Sunday digging a grave for John Fitzgerald Kennedy."" Breslin later covered Robert Kennedy's assassination, in 1968, from a much closer angle. He was standing 5 feet away when Sirhan Sirhan struck at the Ambassador Hotel in Los Angeles. In 1969, Breslin joined author Norman Mailer on a twisted political ticket: Mailer for mayor, Breslin for city council president. After their predictable loss, Breslin observed, ""I'm mortified to have taken part in a process that has closed the bar for the better part of the day."" By then, he was a successful author with a second book, ""Can't Anybody Here Play This Game?"" It was praised for its tales of the sad-sack New York Mets. Breslin dabbled in television and magazine writing but returned to the newspaper business in 1976 as a Daily News columnist and became part of one of the city's most horrifying stories, the ""Son of Sam"" killings in 1977. David ""Son of Sam"" Berkowitz sent Breslin several letters and impressed the columnist enough for him to observe: ""He's the only killer I ever knew who knew how to use a semicolon."" He jumped to New York Newsday in 1988, signing a contract for more than $500,000 a year. During the Crown Heights riots in 1991, the then-61-year-old columnist commandeered a cab and ordered the driver to head directly into the action. About 50 rioters yanked Breslin from the taxi, robbed and beat him. He was left with only his underwear and his press card. Three years later, he underwent successful surgery for a brain aneurysm ""?an episode that led to his memoir. While Breslin had crowds of admirers, he created an equal number of enemies. One of his most enduring feuds was with ex-Mayor Edward I. Koch, who once promised to ""give the eulogy at Jimmy Breslin's funeral."" Koch died in 2013. Breslin had two daughters and four sons with his first wife, Rosemary, who died of cancer in 1981. He later married Ronnie Eldridge, a former New York City councilwoman. On Sunday, just hours after her husband's death, she summed up their life together, saying: ""We were married for 34 years and it was a great adventure."" ""?This story has been corrected to show Breslin was 88, not 87.", -3080,2017/3/19,http://abcnews.go.com/International/us-soldiers-wounded-afghan-soldier/story?id=46238571,3 U.S. soldiers wounded by Afghan soldier,,"Three U.S. Soldiers were wounded this afternoon when an Afghan soldier opened fire on them at a base in Helmand province, in Afghanistan, a military spokesman said. Coalition security forces on the base killed the soldier to end the attack, and the U.S. soldiers are receiving medical treatment, U.S. Forces Afghanistan spokesman Capt. Bill Salvin said. This is a developing story. Check back for more. ABC News' Aleem Agha and Kirit Radia contributed to this report.", -3081,2017/3/19,http://abcnews.go.com/Health/wireStory/ryan-older-people-needed-gop-health-bill-46237981,Ryan: More help for older people needed in GOP health bill,,"Days before a pivotal vote, House Speaker Paul Ryan said Sunday he will seek changes to a GOP health care bill to provide more help to older people. The new willingness to compromise was a bid for more support from moderate Republicans, who expressed continuing unease about the plan to replace Barack Obama's health law unless significant changes were made. Ryan insisted that he felt ""very good"" about the bill's prospects but acknowledged that House leadership was ""making fine-tuning improvements to the bill to reflect people's concerns."" A House vote was scheduled for Thursday. ""We believe we should have even more assistance. And that's one of the things we're looking at for that person in their 50s and 60s because they experience higher health care costs,"" the Wisconsin Republican said. Under the GOP plan, older people who are not yet eligible for Medicare stand to be the biggest losers. It would shrink the tax credits they use to help buy insurance and it would increase their premiums because the bill allows insurers to charge more as people age and become more susceptible to health problems. A Congressional Budget Office analysis last week said a 64-year-old with income of $26,500 would pay $1,700 out of pocket for insurance under the Affordable Care Act, compared with $14,600 under the GOP plan. It estimated that 24 million people of all ages would lose coverage over 10 years. On Sunday, Ryan said he believed the CBO analysis was not accurate because Obamacare wouldn't be able to last 10 years. But he allowed the additional assistance was one of several House revisions to be discussed in advance of Thursday's vote, along with possible changes to help low-income people more with tax credits and require able-bodied Medicaid recipients to meet work requirements. ""We think that we should be offering even more assistance than what the bill currently does,"" he said. Health and Human Services Secretary Tom Price also said legislative revisions were possible. ""If it needs more beefing up ... for folks who are low income, between 50 and 64 years of age, that's something that we've talked about, something that we've entertained, and that may happen throughout the process,"" he said. Their comments came as President Donald Trump and House leaders seek to win support from GOP skeptics as prospects for the bill remain wobbly. Last week, Trump agreed to add fresh Medicaid curbs to appease some conservatives. But moderate Republicans are balking over the CBO's findings that millions more people would lack coverage even while premiums in many cases could rise. In a Facebook post Saturday night, Rep. Brian Fitzpatrick, R-Pa., said he couldn't vote for the bill, stressing a need ""to take our time and to get this right."" He joins GOP Rep. John Katko, from a closely divided district in upstate New York, who cited inadequate insurance access and cost controls. In the Senate, where Republicans hold a narrow 52-48 majority, prospects for the GOP bill also were uncertain as both moderates and conservatives criticized it. Sen. Susan Collins, R-Maine, said she would not vote for the measure without additional changes to provide more aid to older Americans. She also wants an improved proposal that would cover more Americans and offer better Medicaid benefits than the current GOP plan. She joins at least four other GOP senators in opposing the bill after conservative Sen. Ted Cruz of Texas said Sunday he wouldn't vote for it as is. Sens. Dean Heller of Nevada, Mike Lee of Utah and Rand Paul of Kentucky are also opposed. ""I cannot vote for any bill that keeps premiums rising,"" Cruz said. Separately, Ryan said he also expected the House to make changes to Trump's proposed budget, which calls for a boost to military spending but big-time cuts in domestic programs. Trump's plan, for instance, would cut $5.8 billion from the National Institutes of Health, an 18 percent drop for the $32 billion agency that funds much of the nation's research into what causes different diseases and what it will take to treat them. Ryan said Congress was proud to have passed the Cures Act last year, which calls for additional NIH money for ""breakthrough discoveries on cancer and other diseases,"" so he expects the proposed NIH cut to be revised. ""I would say, this is the very, very beginning of the budget process,"" he said. ""We are encouraged that we're seeing an increase in defense because we think our military has been hollowed out. But I will say that NIH is something that's particularly popular in Congress. ... So, that is something that I think in Congress you'll see probably some changes."" Ryan spoke on ""Fox News Sunday,"" Price appeared on ABC's ""This Week,"" Collins was on NBC's ""Meet the Press"" and Cruz spoke on CBS' ""Face the Nation."" ""?Follow Hope Yen on Twitter at https://twitter.com/hopeyen1", -3082,2017/3/19,http://abcnews.go.com/Politics/wireStory/dairy-farmer-leads-trump-russia-investigation-46237273,Former dairy farmer leads Trump-Russia investigation,,"Devin Nunes once said all he wanted to do was work on a dairy farm. Now the man from the rural Central Valley of California is running one of the most scrutinized, complex and politically fraught congressional investigations in recent memory. As chairman of the House intelligence committee, which holds its first public hearing on Monday, Nunes is at the helm of a probe of Moscow's meddling in the 2016 campaign and the murky web of contacts between President Donald Trump's campaign and Russia. It's a potentially sprawling enterprise that spans continents, plumbs spycraft and dominates international headlines. He's a long way from raising cattle. ""I'm not asking for any profile,"" Nunes told the Associated Press, when asked about his new place in the spotlight. Until recently, the soft-spoken 43-year-old ""?dubbed a ""normal dad"" by friends ""?was hardly a fixture on the national news circuit. Now he is holding weekly press briefings and being asked to weigh in on daily twists and unexpected developments. At Monday's hearing he will call FBI Director James Comey as a witness, an event that amounts to must-see television in Washington. Nunes was not an early Trump backer, but was named to the transition team as an adviser on appointments. The burden of leading a bipartisan, credible investigation into the integrity of the U.S. campaigns, not to mention the possible role of the new president's campaign associates, is a heavy one not only for him but for many veteran lawmakers. On the other side of the aisle, Democratic Sen. Mark Warner, of Virginia, has said the Senate intelligence committee investigation, which he is co-leading, is probably the most important thing he will do in his public life. Nunes says he does not feel the same way. ""Everything we do around here is really important,"" Nunes said. ""I wouldn't put one in front of the other."" It's an understatement his friends recognize. Nunes is a third-generation Portuguese-American, and he grew up working on his family's dairy farm. As a teenager, he raised cattle and saved money to buy farmland with his brother, according to his congressional biography. He has degrees in agriculture and keeps his hand in farming through an investment in two California wineries run by a friend he met through his alumni network. Rep. David Valadao, a Republican congressman from a district next to Nunes' and fellow dairyman, said Nunes takes his job as congressman seriously. But, he said, aside from his work, ""he's a normal dad"" to three young daughters. ""All I wanted to be was a dairy farmer,"" Nunes told a group of high school students as he campaigned for his seat in Congress in 2002, according to an article in the Fresno Bee. His education and childhood aspiration suited his political ambitions. Like many politicians from California's interior farm belt, Nunes was well versed in agriculture and the water supply that supports it. Nunes' first entree into politics was as a member of the board of a local community college. He ran for Congress in 1998 and lost in the primary. In 2001, he was appointed by President George W. Bush to a California post at the U.S. Department of Agriculture. He was only 28 when he won a hotly contested congressional seat, beating his Republican competitors in the 2002 primary by appealing to the concerns of ranchers and dairymen in his solidly conservative district. Tom Barcellos, a Tulare County dairy producer who has known Nunes since he was a child, said Nunes was focused early on politics, without being showy. ""He knew what he wanted and he did his research, and he didn't blow a lot of smoke,"" Barcellos said. Nunes consistently has supported bills that would roll back environmental protections and boost federal water supplies to the fertile farmlands of the San Joaquin Valley, the lower stretch of California's vast Central Valley. His ongoing fight against what he describes as jobs-killing regulations promoted by ""radical environmentalists"" is a priority shared by a local group of wealthy farmers who belong to the giant Westlands Water District, which hired Nunes' friend and former chief of staff as its deputy general manager two years ago. ""Devin, from day one, has made water his top priority,"" said Tom Holyoke, a political scientist at California State University, Fresno. Nunes served on the Agriculture Committee during his first term, but quickly landed a spot on the House Ways and Means Committee, one of Congress' most influential panels. He was spotted by Republican leaders as a party loyalist and he was named to a leadership position during his first term. He vied for the chairmanship of the intelligence committee in 2014. While competing against more senior members, he proved a better fundraiser, bringing in far more money for his party than his competitors for the chairmanship. While many congressional committee leadership positions are based on seniority, the House intelligence committee leadership was chosen by then-House Speaker John Boehner. Nunes has suggested he pursued the intelligence committee post because it would be good for his constituents. Intelligence can play a key role in trade negotiations, he said, although it is only a sliver of the intelligence agencies' missions. ""The intelligence committee ""?that's a committee that I call the tip of the spear, because without national security it's tough to keep those trade routes open,"" Nunes said in a 2014 interview with the Tulare Advance-Register. Until now, much of Nunes' work on the committee has been focused on investigations into NSA leaker Edward Snowden, the intelligence behind the Iran nuclear deal, Hillary Clinton's emails and the placement of a Defense Department intelligence center. The congressman made a push to have the center built on the Azores islands, 800 miles off the coast of Portugal, a proposal that was popular among the valley's many dairy producers of Portuguese descent. The department ultimately chose a site in the U.K. Monday's hearing will be the latest spotlight on the tension between Nunes' loyalty to Trump and his commitment to a thorough, bipartisan investigation. The congressman's independence has already been questioned. Last month, the White House enlisted him to push back on a news article it didn't like about Trump associates' ties to Russia. The congressman has said he did nothing improper when he reached out to a reporter. Nunes has not appeared to relish the role of Trump defender. He's described Trump as a ""political neophyte."" Asked about Trump's tweeted claims that former President Barack Obama wiretapped his phones, Nunes' response did little to help quiet the controversy. ""Are you going to take the tweets literally?"" Nunes said. ""If so, clearly the president was wrong."" ""?Burke reported from San Francisco. Researcher Jennifer Farrar in New York contributed to this report.", -3083,2017/3/19,http://abcnews.go.com/US/wireStory/nc-police-chief-detained-jfk-90-minutes-46239561,Former NC police chief detained at JFK for 90 minutes,,"A former North Carolina police chief who now works as a law enforcement consultant said Sunday that he's disappointed with his country of 42 years after he was detained at John F. Kennedy International Airport. Former Greenville Police Chief Hassan Aden of Alexandria, Virginia, said he was detained March 13 on his return trip from Paris. He supports the officers of the U.S. Customs and Border Patrol, but he believes his 90-minute detention was unreasonable, he said in a telephone interview. Aden, who is biracial, said a customs officer told him that his name was used as an alias by someone on a watch list. He said one officer told him that he wasn't being detained even though he couldn't use his phone and he had to remain seated. ""When it goes to 90 minutes with no phone ... and you can't move around, it seems more than an investigation to check your passport,"" he said. ""It begins to feel like you are in custody."" Aden described the scene in a Facebook post Saturday, adding that the officer who told him that he wasn't being detained has an ""ignorance of the law and the Fourth Amendment"" of the U.S. Constitution that should disqualify him as a customs officer. ""I certainly was not free to leave,"" Aden said. Aden, 52, said he became a naturalized U.S. citizen at the age of 10 when he was an Italian citizen. He worked for the police department in Alexandria for about 25 years, then as Greenville police chief for about two years. Clients of the consulting firm he now owns include the U.S. Justice Department, he said. With family in Italy, France and England, Aden travels often travels overseas. He says that won't change. But he is rethinking plans to send his 12- and 15-year-old children overseas as unaccompanied minors to spend the summer with relatives because he wouldn't want them to go through the same situation on their own. ""This is my country and with things I see happening, I see certain rights eroding in the name of national security. It's worrisome,"" he said. A U.S. Customs and Border Patrol spokesperson said the agency doesn't comment on individual cases. ""?Follow Martha Waggoner on Twitter at http://twitter.com/mjwaggonernc", -3084,2017/3/19,http://abcnews.go.com/Sports/wireStory/penn-state-president-heads-trial-sandusky-scandal-46238772,Penn State ex-president heads to trial in Sandusky scandal,,"Penn State's former president faces trial Monday on charges that children were put at risk by how he responded to complaints about Jerry Sandusky more than 15 years ago, and two of his former top lieutenants who just pleaded guilty in the case could testify against him. A Harrisburg jury will decide whether Graham Spanier's handling of the Sandusky scandal amounted to the three felonies he stands accused of ""?two counts of endangering the welfare of children and a single conspiracy charge. Spanier, 68, had spent 16 years as the powerful leader of the vast Penn State university system when a grand jury investigation produced child molestation charges against Sandusky in 2011, as well as allegations the school's vice president for business and finance, Gary Schultz, and the athletic director, Tim Curley, had engaged in a criminal cover-up. Spanier's immediate response was to issue an emphatic defense of his two underlings, putting out a statement that expressed his unconditional support for them that predicted ""the record will show that these charges are groundless and that they conducted themselves professionally and appropriately."" Spanier was soon after pushed out of the presidency and agreed to a deal that gave him 18 months' salary, a $1.5 million retirement payment, a $700,000 post-presidency sabbatical payment and five years of tenured faculty service at $600,000 annually, ending this coming November. Sandusky, who spent decades as the football team's defensive coach, was convicted in 2012 of child sexual abuse, after which a university-commissioned report from a team led by former FBI director Louis Freeh made the scathing conclusion that Spanier, Curley, Schultz and former head coach Joe Paterno had ""concealed critical facts"" about Sandusky's abuse of children to avoid bad publicity. Paterno died of lung cancer in 2012. In one of the many statements about the case he has made, Spanier told the board in a July 2012 letter that he did not recall a woman's complaint in 1998 about Sandusky showering with her son, a matter that was investigated but no charges were filed. He also said another complaint, from a graduate assistant coach who said he saw Sandusky abusing a boy in a team shower in 2001, was described to him only as horseplay. ""At no time during my presidency did anyone ever report to me that Jerry Sandusky was observed abusing a child or youth or engaged in a sexual act with a child or youth,"" Spanier wrote, words that he and his lawyers have echoed repeatedly. A key piece of evidence is likely to be an email exchange the Freeh team obtained, in which the three high-ranking officials debated how they should handle the 2001 shower incident. Spanier gave his approval to having Curley tell Sandusky to get professional help or face a report to the state's child welfare agency. ""The only downside for us is if the message isn't 'heard' and acted upon, and we then become vulnerable for not having reported it,"" Spanier replied. He called the plan ""humane and a reasonable way to proceed."" Spanier told The New Yorker in 2012 that he felt it was humane for Curley to ""go the extra mile"" by meeting with Sandusky to tell him he planned to disclose the incident to The Second Mile, a charity for at-risk youth founded by Sandusky where he met several victims. ""I think what many people wanted to read into it was that it was humane for us not to turn him in for being a known child predator,"" Spanier told the magazine. ""But I never, ever heard anything about child abuse or sexual abuse or my antennae raised up enough to even suspect that."" A few months after that interview, state prosecutors filed additional counts against Curley and Schultz and for the first time charged Spanier with perjury, child endangerment, obstruction, failure to report suspected child abuse and conspiracy. It's taken years to get to trial because the case became mired in a lengthy legal battle over the actions by the school's then-general counsel, Cynthia Baldwin, when the administrators testified before the grand jury in 2011. As a result, a Pennsylvania appeals court threw out many of the more serious charges against the three a year ago, and more recently the trial judge pared the case back even more. For much of the past six years, the three men have appeared to be solidly together. Spanier testified in October at the civil case brought by Mike McQueary, the graduate assistant coach who witnessed the 2001 incident, that the arrests of Curley and Schultz were ""an unbelievable injustice."" McQueary won a $12 million verdict. The three appeared headed for trial together when Curley and Schultz agreed to plea deals. Sentencing has not been scheduled. It's not clear whether they will testify this week, as prosecutors and Spanier's lawyers have declined to comment, citing an order from the judge.", -3085,2017/3/19,http://abcnews.go.com/Politics/hurts-gop-house-member-advises-trump/story?id=46224042,"'It never hurts to say you're sorry,' a GOP House member advises Trump",,"A key House Intelligence Committee member said he has seen no evidence to support President Trump's claim of former President Obama wiretapping Trump Tower and offered that Trump may want to consider some favorite advice by the congressman's father. ""to quote my 85-year-old father ... 'It never hurts to say you're sorry,'""?Rep. Will Hurd, R-Texas, told ABC News chief anchor George Stephanopoulos on ""This Week"" on Sunday. ""And it's not just sorry to [Obama] but sorry to the [United Kingdom] for the claims - or the intimation - that the U.K. was involved in this as well."" Hurd, a former CIA agent, said the unsubstantiated wiretapping claims ""take away from the rest of [President Trump's] agenda.""? President Trump made the unsubstantiated claims two weeks ago when he accused Obama of wiretapping Trump Tower during the election campaign. His press secretary, Sean Spicer, in a press briefing Thursday gave a lengthy defense of the president's wiretap allegations. Spicer read news articles from the podium that cited remarks by Andrew Napolitano, a Fox News commentator and former New Jersey superior court judge, suggesting that Obama used a British intelligence agency to spy on Trump. A spokesperson for the British intelligence agency, GCHQ, dismissed the suggestion as ""utterly ridiculous"" and ""nonsense."" Also in the interview on ""This Week""?was another key House Intelligence Committee member, Democratic Rep. Joaquin Castro of Texas. Asked by Stephanopoulos if he has seen any evidence of collusion between the Trump campaign associates with Russia's alleged attempts to interfere with the election, Castro said: ""That's exactly what's being investigated."" Castro, Hurd and the rest of the House Intelligence Committee will hold a hearing Monday on the allegations around Russia, the election and wiretapping claims. Hurd cautioned that some in the public may be disappointed in what can be said publicly at the hearing. ""I think that some folks will probably be frustrated on Monday,"" Hurd said. ""I'm not hearing certain answers because there may be an active investigation going on, criminal investigation."" ""And if there's an active criminal investigation we need to allow law enforcement in order to do their job,""?Hurd said.", -3086,2017/3/19,http://www.cnn.com/2017/03/19/middleeast/israel-syria-air-defenses-liberman/index.html,Israel threatens to destroy Syrian air defenses,Jerusalem (CNN)Israeli Defense Minister Avigdor Liberman has warned Syria that Israel will destroy its air defense system if Syria fires an anti-aircraft missile at Israeli aircraft again.,"Speaking on Israel public radio Sunday morning, Liberman said, ""The next time the Syrians use their air defense systems against our airplanes, we will destroy all of them without thinking twice."" His threat comes after Syria fired anti-aircraft missiles at Israeli military jets overnight Thursday into Friday. The Syrian military said the jets struck a military site near Palmyra, while Israel says they targeted a weapons shipment to Iran-backed Hezbollah. Syria claims their missiles downed one Israeli jet and hit another, which Israel rejected as ""absolutely untrue."" ""Our central problem, and this above and beyond all of the other issues, is the transfer of advanced weapons from Syria to Lebanon,"" Liberman said. ""Every time we identify a transfer like this, we will work to prevent the transfer of game-changing weapons. On this issue there will not be any compromise,"" the outspoken Defense Minister added. Liberman has not shied away from threatening rhetoric since taking over the Defense Ministry last year. Rising tensions Friday's encounter was the most serious clash between Israel and Syria since the start of the Syrian civil war six years ago. Tension between the two countries de-escalated as the conflict progressed, but the threats have increased between the two countries in recent months., along with Israel's reported strikes. An airstrike near Palmyra would be one of the deepest inside Syria since the beginning of the fighting. The military actions did not go unnoticed both in the Middle East and further afield. In a sign of Russia's displeasure with the strike, Moscow summoned Israel's ambassador to Russia, Gary Koren, less than 24 hours after it happened. It is the first time in recent years that Moscow has summoned Israel's envoy over a strike in Syria, and it comes one week after Israel's Prime Minister Benjamin Netanyahu visited Russian President Vladimir Putin to reaffirm coordination between the Israeli and Russian militaries over Syria. The two countries established coordination last year to avoid conflicts in Syrian airspace, ostensibly to allow both countries to operate freely. Palmyra, once held by ISIS and retaken by the Syrian government, is strategically important to both the regime and its opponents. The intercept triggered alarm sirens in the Jordan Valley and shrapnel from the explosion, which was heard as far south as Jerusalem, landed in western Jordan, the Jordanian military said. Most of Israel's reported strikes have been around the Syrian capital of Damascus, about 60 kilometers (37 miles) from the Israeli-occupied Golan Heights, which Israel seized from Syria during the Six-Day War in 1967. Weapons Israel has long focused on stopping the transfer of weapons from Syria to terror groups. In December, Liberman told a delegation of European Union envoys that Israel will ""prevent the smuggling of sophisticated weapons, military equipment and weapons of mass destruction from Syria to Hezbollah."" It was another acknowledgment of Israel's ongoing operations in Syria. Last April, Netanyahu confirmed that Israel had struck Syria ""dozens of times,"" breaking with the policy of remaining quiet about involvement in its war-torn northern neighbor. In a video statement released Friday, Netanyahu was adamant in his defense of Israel's move to prevent weapons being supplied to Hezbollah. ""When we identify attempts to transfer advanced weapons to Hezbollah and we have intelligence and it is operationally feasible, we act to prevent it,"" he said. ""That's how it was yesterday and that's how we shall continue to act,"" he added. ""We are fully determined and the evidence of that is that we are acting. Everybody must take that into account -- everybody."" Hezbollah Hezbollah is a Lebanese militant group and political party, funded and supplied by Iran. The group is at odds with Israel over territory located along the Lebanon-Israel border. It also supports the Syrian regime of President Bashar al-Assad, committing thousands of fighters to battle alongside Assad's forces. The United States, Israel, and the Arab League consider Hezbollah a terrorist organization while the European Union classifies Hezbollah's military wing as a terrorist group. As recently as late February, Syrian media reported that Israeli jets hit military positions and weapons convoys near Damascus. In November 2012, Israel fired warning shots toward Syria after a mortar shell hit an Israeli military post, the first time Israel had fired on Syria across the Golan Heights since the 1973 Yom Kippur War. Israeli jets have been hitting targets in Syria since at least 2013, when US officials told CNN they believed IDF jets had struck inside Syrian territory. In 2014, the Syrian government and an opposition group both said an IDF strike had hit Damascus' suburbs and airport. Israeli strikes have also gone after ISIS fighters inside Syria. Late last year, IDF troops operating in the disputed Golan region came under fire from militants of the ISIS affiliate Khalid ibn al-Walid Army, Israeli military spokesman Lt. Col. Peter Lerner said. The soldiers fired back, triggering an exchange of gunfire. A subsequent Israeli airstrike destroyed a vehicle carrying four militants, Lerner said.", -3087,2017/3/19,http://www.huffingtonpost.com/ryan-hampton/mr-attorney-general-im-a-product-of-just-say-no_b_15474634.html,Mr. Attorney General: I'm A Product of 'Just Say No' And It Won't Work This Time,"Mr. Sessions, we can""t go backwards when it comes to the addiction crisis","In Richmond last week, Attorney General Sessions suggested reviving Nancy Reagan's 80s anti-drug campaign to combat the 2017 addiction crisis. What a horrifying thought. I'm a product of the Drug Abuse Resistance Education program. Seriously. At my elementary school, a D.A.R.E. officer visited my third-grade classroom twice a week ""?to lecture us about the dangers of using drugs. After school, I saw the same anti-drug PSAs as everyone else. ""This is your brain on drugs,""?was the message, and I got it. I heard it all, loud and clear. So how did I end up addicted to heroin? In the late 80s and early 90s, while the AIDS crisis claimed countless lives and the crack epidemic swept urban centers, the message from the White House was clear: ""Just Say No.""?It seemed simple at the time: don""t use drugs, and you won""t get high. Don""t use drugs, and you won""t get hooked. Avoidance was the method of prevention ""?not so different from ""Abstinence only""?sex ed. Two decades later, however, we'r in the firm grip of an addiction crisis that claims nearly 350 American lives per day. And yet, we'r still being told to ""Just Say No,""?even though evidence increasingly shows that it doesn""t work. For people like me ""?that is, people with substance use disorder, whether they'r in active addiction or not ""?the return to those three simple words raises a lot of red flags. Attorney General Jeff Sessions seems to be moving back to the zero-tolerance policies of the 80s and 90s. Last week, at a meeting with law enforcement officials, Sessions said, ""Educating people and telling them the terrible truth about drugs and addiction will result in better choices by more people.""?If that's true, though, how do you explain someone like me? I had all the information, so why did I start using drugs at 15? Why wasn""t saying no enough? My story isn""t unique ""?in a lot of ways. I am one of millions of people with substance use disorder in America. Unlike many people, however, I got the opportunity to access recovery supports, went through substance abuse treatment, and am now living a life in sustained recovery. I'm one of the lucky ones: less than 10% of people suffering from addiction will get treatment for their illness. It was never about education, for me. It was about getting help when I needed it ""?instead of being imprisoned, punished, and stigmatized. Sessions is already known for his anti-drug, tough-on-crime position. This approach, a holdover from the Reagan era, puts thousands of people in prison for drug-related offenses. Besides the obvious ""?that someone with addiction needs treatment, not jail time ""?we now know that D.A.R.E. doesn""t work. I'm not the only example. Starting as early as 1992, a study from Indiana University showed that kids who had been through the D.A.R.E. program had higher rates of hallucinogenic drug use than those who had not been exposed to the program. A ten-year study by the American Psychological Association showed a similar result: D.A.R.E. doesn""t work, and in many cases is even counterproductive because it makes kids curious about these ""Horbidden""?substances. In fact, D.A.R.E. lost its federal funding in 1998 because the APA study showed that D.A.R.E. kids actually had higher rates of drug use. Seriously! Clearly, just saying no and working on our self-esteem wasn""t cutting it. So, what is going to work? I think we can start by acknowledging that drug use is not a black and white issue. If Sessions wants to halt our nation's drug epidemic, it's going to take more than just saying no. It's also going to take more than subliminal media messaging. And guaranteed jail time for drug offenses? Nope. Instead of clinging to an outdated anti-drug program that is proven not to work, let's look at something that does. ""Keepin""?it REAL,""?which is an acronym for the program's strategies ""refuse, Explain, Avoid, and Leave""?has shown positive results. One reason why? Instead of police officers, the messaging about smart choices and drug awareness is created by kids, for kids. REAL, which was designed by research conducted at Arizona State University in the 1990s, works from the bottom up. High school students make video narratives for younger, middle school-aged kids about making good decisions about drugs. Peer groups discuss the content and talk about ways they would react if they were offered drugs, or put in an awkward situation. Involving kids, instead of lecturing them, shows good results ""?because, after all, in the moment of truth, when the blunt or the bottle makes its way into a young person's hands, no cop is going to be there to remind them to love themselves. And the odds are good that scare tactics won""t matter in that moment, either. Which is my way of saying: Mr. Sessions, we can""t go backwards when it comes to the addiction crisis. Old school methods, such as the D.A.R.E. program or ""Just Say No""?don""t do anything to help, and may actually make things worse. First, let's acknowledge that many heroin addicts begin by getting hooked on prescription painkillers, which are legal, federally regulated, and prescribed by a doctor. And let's treat people with substance use disorder as what they are: people with a chronic brain illness. Let's admit that drug addiction is not a choice, and it's not a crime. Let's get people the recovery supports they need. And not overcrowd our prisons with people who need help instead of a heavy sentence. And most of all, let's not look back. If we'r going to save lives, heal families, and make our communities safe, we need to say yes to a better way to treat addiction than just saying no to drugs. Ryan Hampton is an outreach lead and recovery advocate at Facing Addiction, a leading nonprofit dedicated to ending the addiction crisis in the United States. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3088,2017/3/19,http://www.huffingtonpost.com/2017/03/19/rose-mcgowan-photo-hack-department-of-justice_n_15472716.html,Rose McGowan Seeking Help From Department Of Justice After Nude Photo Hack,The actress also sent a message to her hackers on Twitter.,"Rose McGowan is among the group of female celebrities who recently had her personal photos leaked online by hackers, and she's not taking the situation lightly.- Gossip Cop reports nude photos and a sex tape with the actress were published online. Early Sunday morning, McGowan addressed the anonymous hackers on Twitter, calling them ""little hacker boys""?(though it should be noted the hackers responsible for the recent leak may or may not be men). Her message was loud and clear.- Hey little hacker boys, Mama is coming and she hits hard pic.twitter.com/mVBSkRIH8p McGowan also told Gossip Cop, ""I'm going to go to the Department of Justice.""?The Huffington Post has reached out to a representative for the actress for further comment and will update this post accordingly.- Other stars who recently fell victim to online hackers include Amanda Seyfried, Emma Watson and Analeigh Tipton.- Watson's representative responded to the hack, saying, ""Photos from a clothes fitting Emma had with a stylist a couple of years ago have been stolen. They are not nude photographs. Lawyers have been instructed and we are not commenting further.""?Tipton's spokesperson also issued a statement to HuffPost, noting the photos of the ""Crazy, Stupid, Love""?actress ""were obtained illegally and are a tremendous invasion of her privacy. She is cooperating with authorities in an effort to locate the people responsible in the hopes that this never happens to her or anyone else again.""THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3089,2017/3/19,http://www.huffingtonpost.com/2017/03/19/trump-insurance-mulvaney_n_15472326.html,White House Admits Trump 'Insurance For Everybody' Guarantee Isn't Going To Happen,"""The only way to have universal care, if you stop to think about it, is to force people to buy it under penalty of law.""","WASHINGTON ""?White House Budget Director Mick Mulvaney threw cold water on the promise that ""everybody""?would get health insurance under GOP legislation ""?a promise that was made by none other than President Donald Trump himself.- ""We don""t have universal ""?the only way to have universal care, if you stop to think about it, is to force people to buy it under penalty of law,""?Mulvaney said Sunday on ABC's ""This Week.""?The expectation of everyone in the nation getting health insurance if Trump took office came from promises he himself made. ""We'r going to have insurance for everybody,""?Trump said in January. ""there was a philosophy in some circles that if you can""t pay for it, you don""t get it. That's not going to happen with us.""In 2015, Trump similarly told CBS's ""?0 Minutes,""?""Everybody's got to be covered.""?But the nonpartisan Congressional Budget Office made clear in its recent analysis that there's no way everyone will get insurance under the GOP's American Health Care Act. Instead,-24 million people stand to lose coverage over the next decade. Last week, White House Press Secretary Sean Spicer started to add caveats to Trump's promise, saying it was less of a promise and more of a ""goal.""?He said Trump's plan would create lower costs and give ""more people the option to have health care.""?""Everybody has a choice to get it,""?Spicer added, ""and I think that's what we want to do is give everyone who wants to get health care the financial ability to get it.""?Mulvaney, however, was more direct Sunday, just admitting that ""insurance for everybody""?is impossible, since Republicans refuse to put in place a mandate to buy insurance. (And they'r not interested in a single-payer system, which would also offer universal insurance access.) ""What you're got now is we'r forcing people to buy it under Obamacare under penalty of law and people are still looking for a way not to buy it,""?he said. "" clearly the government mandate doesn""t work. The better process, the better function is exactly what we'r trying to do now, which is to encourage people and enable them to buy a policy they want and can afford.""?The CBO also took issue with the White House's claim that health care will suddenly be significantly more affordable. It found, for example, that a 64-year-old person who makes $26,500 could face an increase in his or her premiums from $1,700 now to $14,600 under the GOP bill.- ""the only way to get truly universal care is to throw people in jail if they don""t have it. And we are not going to do that,""ulvaney added. Obamacare actually specifically bars the federal government from throwing anyone in jail if they don""t purchase health insurance. People do face a tax penalty, but the law also says the IRS can""t use liens or levies on property as enforcement tools. Want more updates from Amanda Terkel? Sign up for her newsletter,-Piping Hot Truth,-here. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3090,2017/3/19,http://www.huffingtonpost.com/2017/03/19/nancy-pelosi-trump-wiretap_n_15472284.html,Nancy Pelosi: Trump And His Administration Need To 'Grow Up' And Stop Repeating Baseless Claims,The House's top Democrat said the FBI should clear up that there is no evidence to substantiate the president's claim that he was wiretapped by his predecessor.,"WASHINGTON ""?House Minority Leader Nancy Pelosi (D-Calif.) said President Donald Trump and his administration need to ""Just grow up""?and stop doubling down on unsubstantiated claims that former President Barack Obama and British intelligence colluded to spy on him. In an interview that aired Sunday on CBS's ""Face the Nation,""?Pelosi said it was ""really important""?that FBI Director James Comey say publicly that there is no evidence of what she called a-""gerrible accusation.""?""�Of course it's not true,""?she said in the interview, conducted on Friday. "" let's just grow up. ... The Justice Department, the FBI has to really clear this. Because otherwise this administration has decided that they, with impunity, can say anything, and it's really damaging.""?Trump claimed earlier this month in a series of tweets that Obama wiretapped Trump Tower during the presidential campaign, providing no evidence. The White House has scrambled since then to defend him for it ""?even at the risk of alienating a major U.S. ally. Last week, White House press secretary Sean Spicer cited Fox News commentator Andrew Napolitano, a former New Jersey judge, who said that British intelligence helped Obama with surveillance of Trump. The Government Communications Headquarters, which is the U.K.'s version of the National Security Agency, made a rare public statement to call the claim ""nonsense""?and ""utterly ridiculous.""?White House officials assured the U.K. they wouldn""t repeat the claim again, according to British Prime Minister Theresa May's spokesman. But publicly, neither the president nor Spicer have shown any remorse, insisting they were simply citing Napolitano. ""All we did was quote a certain very talented legal mind who was the one responsible for saying that on television,""?Trump said on Friday at a press conference. ""I didn""t make an opinion on it.""?Administration officials still haven""t offered any evidence of Trump's claims about surveillance, even at the request of Congress, which has now devoted valuable time and resources to investigate a conspiracy theory the president heard on ""Fox and Friends.""?House Intelligence Committee Chairman Devin Nunes (R-Calif.) said Sunday that information the Justice Department provided to the committee on Friday had no evidence to back up Trump's claims about wiretapping. Comey, who heads the FBI, will go before the House Intelligence Committee on Monday and is expected to talk about the matter. He's also slated to talk about Russian efforts to influence the election. He reportedly asked the Justice Department to publicly refute the claim earlier this month and some expect him to do so himself at the hearing. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3091,2017/3/19,http://www.huffingtonpost.com/geoffrey-r-stone/the-gorsuch-nomination-and-the-rule-of-law_b_15472334.html,The Gorsuch Nomination And The Rule Of Law,Anyone who cares about the rule of law should oppose this nomination.,"If Antonin Scalia had died in February of this year, and Donald Trump thereafter nominated Judge Neil Gorsuch as his successor, I would likely support Judge Gorsuch's confirmation. Judge Gorsuch is generally regarded as a capable judge with a good character. Moreover, although he is a very conservative jurist, he would be replacing a justice with a similar ideological disposition. In such circumstances, just as I supported the confirmation of Judge John Roberts to succeed Chief Justice William Rehnquist, so too would I be inclined to support the confirmation of Neil Gorsuch to succeed Antonin Scalia, even though I strongly disagree with Gorsuch's very conservative ideology. But Antonin Scalia did not die this year. He died more than a year ago, and President Barack Obama nominated Chief Judge Merrick Garland to succeed him. Chief Judge Garland is a jurist of impeccable credentials and personal character who is widely celebrated for his moderate approach to the law. President Obama nominated Garland not only because of his distinguished reputation as a jurist, but also because as a relatively moderate judge he should have been more than acceptable even to the most conservative Senate Republicans. In typical Obama fashion, Garland's nomination was an effort to compromise in order to win the support of Senate Republicans. Chief Judge Garland should have been confirmed easily. Indeed, every Supreme Court nominee in living memory with anything approaching Chief Judge Garland's impeccable credentials and record of moderation has been easily confirmed by the Senate, without regard to whether the Senate was controlled by the President's party or by the opposing party. This was true, for example, of such Republican nominees to the Court as Warren Burger, Harry Blackmun, Lewis Powell, William Rehnquist, John Paul Stevens, Sandra Day O'Donnor, Anthony Kennedy, and David Souter. Even the extremely conservative Antonin Scalia was confirmed by a vote of 98-0. But not Merrick Garland. In a completely unprecedented abuse of power, Senate Republicans, under the ""leadership""?of Senate Majority Leader Mitch McConnell (R-Ky), refused to confirm, or even to consider, Judge Garland's nomination. This unconscionable maneuver was nothing less than a dishonorable and dishonest effort to steal this seat on the Supreme Court for the right wing. Senator McConnell had the audacity to maintain that the ""people""?should decide who should fill this particular vacancy on the Supreme Court. By employing his duplicitous strategy, he managed to shift this appointment from a President who had won the popular vote by a margin of five million votes in 2012 to one who lost the popular vote by a margin of three million votes in 2016. This crass and unprincipled manipulation of our democracy should not be allowed to succeed. Anyone who cares about the proper and legitimate functioning of our American democracy must oppose Judge Gorsuch's nomination, not because he is unqualified, but because of the undermining of our American democracy by Senate Republicans. Anyone who cares about the rule of law should oppose this nomination. If we fail to take this stand, the Senate Republicans will have succeeded in placing a justice onto our highest Court who has no business being there. They will have undermined the credibility of the Supreme Court as an institution, an institution that is critical to the functioning of our Constitution. The Democrats and any responsible Republicans in the Senate should oppose Judge Gorsuch's nomination, and invoke the filibuster if necessary. The nomination should then be withdrawn, and the president should nominate in his place a genuinely moderate justice who is acceptable to Democrats and Republicans alike. Only then can we move forward with a sense of institutional integrity. Short of that, every decision of the Court decided by a margin of five-to-four with Neil Gorsuch in the majority will justifiably be castigated as fundamentally illegitimate. The failure to oppose this nomination on these grounds would signify a profound lack of courage and a failure to stand up for the central precepts of our American democracy. A version of this piece appeared in Time on February 1, 2017. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3092,2017/3/19,http://www.huffingtonpost.com/linda-darlinghammond/trumps-skinny-budget-would-put-educators-learning_b_15473288.html,"Trump's ""skinny Budget""?Would Put Educators""?Learning On A Starvation Diet",,"This week, President Trump released his ""skinny budget""?proposal, calling for wide-ranging cuts in the Every Student Succeeds Act (ESSA), including the complete elimination of funding for Title II, Part A, the Supporting Effective Instruction State Grants program. This is the section of the law that supports educator learning and development. To put this move in context, domestic spending generally was put on a path leading to famine, while defense spending received a truckload of donuts (a $54 billion increase, balanced off by comparable cuts in non-defense dollars). Within ESSA, among many critical reductions, the $2.4 billion for Title II, Part A, was zeroed out, along with $43 million in Teacher Quality Partnership grants and $190 million for the Striving Readers program, which also support teacher professional development. Meanwhile, the budget expands incentives for school choice by $1.4 billion. This proposal reinforces the recurring view in recent American school ""reform""?that schools can be improved by competition and metrics tied to sanctions or incentives, without investments in the capacity of educators to learn how to meet the demands of new standards and the needs of an increasingly diverse student body. This perspective flies in the face of a substantial body of research showing that well-prepared teachers and principals are the most significant in-school contributors to student success. Investing wisely in teacher and principal preparation and development can improve student achievement and generate overall budget savings by reducing costs associated with low student performance (including grade retention, remediation, and higher dropout rates). A failure to make these investments undermines progress in all kinds of schools ""?most especially those that serve high-need students. This includes schools of choice. For example, as we found in a Stanford study of the Milwaukee Public Schools, the initial pioneer for vouchers and charters, there were no gains in achievement over more than a decade of choice options, until a forward-looking superintendent introduced an intensive professional learning initiative that finally moved the needle on student achievement. Other research confirms the key role that well-designed professional learning plays in improvement at scale. As ESSA was drafted in an unusually thoughtful bipartisan process, it drew on what had been learned about effective school improvement from the positive and negative lessons of the No Child Left Behind years. Title II was carefully written to encourage districts to use effective strategies, drawing on some of the best current research about the kinds of preparation and professional development that are most effective for improving teaching and school leadership. This includes research pointing to sustained, job-embedded approaches that allow teachers to work with experts and peers on curriculum and teaching strategies they develop and refine over time. It also includes strategies for principals to learn how to create collegial workplaces that support teachers""?abilities to better understand their students""?learning needs and adjust their teaching. Title II Part A offers critically important supports for solving current teacher shortages that are reported as a ""big challenge""?in a majority of school districts and in more than 40 states. Shortages are especially acute in math, science, special education, bilingual/English learner education, and career technical education ""?and are most pronounced in the districts that serve high-needs students. A key element of stemming these shortages is reducing turnover, which negatively affects both student achievement and school district and state budgets. One study of cost data from school districts found that nationally, replacement costs for teachers totaled $7.3 billion a year. Adjusted for inflation, that cost is approximately $8.5 billion today. For beginning teachers, especially, research shows that this turnover is strongly associated with lack of teacher training and induction support, as well as principals""?training and effectiveness ""?all sources that depend on investments in professional learning specifically encouraged by Title II, Part A. This funding offers states and districts the financial leverage to implement evidence-based solutions to address those shortages and improve the quality of teachers and principals to ensure that students gain the 21st Century education and skills they need to succeed. A reduction in these funds will decrease the extent to which states and districts can build the capacity to implement the ambitious plans they are creating to implement ESSA, to close the opportunity and achievement gaps, and to support a strong educator workforce. Research has shown that historically underserved students will suffer the most as a result of this disinvestment. Evidence-based solutions that can currently be supported by state or local Title II, Part A funds include: High-quality teacher preparation programs, including residencies that prepare teachers in high-need fields to teach in high-need schools with strong training and mentoring support in exchange for a service commitment. Initial studies on residencies suggest that they attract a more diverse pool of teacher candidates ""?twice the proportion of teachers of color as the national average ""?and draw them to the harder-to-staff subjects (such as math, science, special education, and bilingual education). Rigorous studies of such programs have found significantly higher retention rates for graduates of these programs and, in several studies where data were available, greater effectiveness. Beginning teacher mentoring and induction. Strong induction and support for novice teachers can increase their retention, accelerate their professional growth, and improve student learning. The most effective induction programs include mentoring, coaching, and feedback from experienced teachers in the same subject area or grade level as the novice teacher; the opportunity for novice teachers to observe expert teachers; participate in orientation sessions, retreats, and seminars; and to be assigned reduced workloads and extra classroom assistance. Teachers who receive this set of supports tend to stay in teaching at rates more than twice those of teachers who lack them. Loan forgiveness and service scholarship programs that increase teacher recruitment and retention. Debt loads that dissuade talented recruits from entering teaching can be offset with forgivable loans and service, scholarships, which research shows can boost recruitment and retention of high quality teachers in the fields and communities where they are most needed. In the most recent nationally representative Schools and Staffing Survey, 1 in 4 former teachers who said they would consider returning to the profession cited loan forgiveness as very important in their decision to return. Job-embedded professional development that is collaborative, focused on the content and students teachers are seeking to teach, and conducted over a sustained period of time. Often teachers develop and implement curriculum and instructional strategies with the assistance of peer coaches, collect and reflect on evidence of outcomes, and refine their practice in iterative cycles of inquiry. Preparation and professional development programs that support principals""?ability to improve schools and to recruit and retain high quality teachers. These include principal residencies, which allow aspiring principals to learn under the wing of expert school leaders while they study how to support teaching, manage organizational development, and manage change. Such residencies appear to increase effectiveness and retention for new leaders. Title II also allows states to set aside up to 3 percent of funds for ongoing principal support and development. In a new report on school leadership, the Learning Policy Institute highlights research showing that investments in training school leaders can yield substantial benefits in student achievement, as more skilled principals help improve instructional quality and reduce teacher turnover. Teachers often identify the quality of administrative support as more important to their decision than salaries; those who agree their administrators are supportive are less than half as likely to leave their schools as those who strongly disagree. Moreover, key factors in teachers""?professional decisions include school culture and collegial relationships, time for collaboration, and decision-making input ""� all areas in which the principal plays a central role. ESSA""�s Title II, Part A provides an opportunity for states to develop and implement evidence-based policies to improve teacher and leader recruitment, support, development, retention, and effectiveness, which are prerequisites for school improvement and predictors of student achievement. Without these investments, it is highly unlikely that the other ambitious goals of ESSA can be achieved. Do you have information you want to share with the Huffington Post? Here""�s how. How will Trump""�s first 100 days impact you? Learn more", -3093,2017/3/19,http://www.huffingtonpost.com/2017/03/19/jimmy-breslin-dead_n_15471458.html,Iconic New York Columnist Jimmy Breslin Dead At 88,New York bids farewell to one of its most prolific storytellers.,"Jimmy Breslin, an award-winning New York Daily News columnist celebrated for his insights into the lives of everyday New Yorkers, died Sunday, the outlet confirmed. He was 88. He had been recovering from pneumonia, his wife Ronnie Eldridge, a former New York City Council member, confirmed to the The New York Times. - His last column for the Daily News ran in 2012, but The Daily Beast began running new writing from him late last year after years of reprinting his classic columns.- In his decades-spanning career writing for several outlets, Breslin found fame for his portrayals of ordinary New Yorkers and the city's scruffy anti-heroes, often those at the sidelines of major world news events. In a 1980 Daily News story, Breslin told the story of the New York City cops who retrieved John Lennon's body moments after he been fatally shot. For an iconic 1963 column in The New York Herald Tribune, he tracked down the cemetery worker-tasked with digging President John F. Kennedy's grave.- Breslin's depiction of gravedigger Clifton Pollard encapsulated his knack for letting his subjects""?details speak for themselves:- Pollard is 42. He is a slim man with a mustache who was born in Pittsburgh and served as a private in the 352nd Engineers battalion in Burma in World War II. He is an equipment operator, grade 10, which means he gets $3.01 an hour. One of the last to serve John Fitzgerald Kennedy, who was the thirty-fifth President of this country, was a working man who earns $3.01 an hour and said it was an honor to dig the grave. That piece is often cited as the type of writing that made Breslin the legendary storyteller he's remembered as. ""�[I]t showed how a writer can break away from the crowd, even on the biggest possible story; how, in the words of the great editor Gene Roberts, an enterprising reporter can zig when everyone else zags,""?the Poynter Institute for Media Studies-wrote. He received many awards for his writing, most notably the Pulitzer Prize for Commentary in 1986. The board awarding him the prize praised him-""Hor columns which consistently champion ordinary citizens.""?Breslin said his pursuit of those characters was central to good journalism. ""What's wrong with journalists today? They don""t go out,""?Breslin said in a 2015 interview with the City University of New York TV station. ""television would be your answer. They'r all on television giving the news. As you listen to them talk, you know they haven""t left the office. They have no authentic spirit to the voice as they'r telling you what happened in New York, because they don""t know and they don""t bother with it.""?The Pulitzer board pointed to an emotionally-wrought 1985 column that weaved a story of the AIDS crisis through the lens of one inflicted young man: ""You have Karposi's sarcoma,""?the doctor said. ""�One of them was on an artery. That caused your trouble. There are 10 to 12 more in there.""?""What does that mean?""?his mother said. He remembers mumbling to his mother, ""that is the cancer you get when you have AIDS.""?He and his mother looked at each other. Now the life he never talked about was part of the family album. In another fascinating 1977 column that spoke to the reach of Breslin's writing, he published letters written to him by notorious New York serial killer-""n of Sam,""ho had yet to identified as David Berkowitz. ""If he wants any further contact, all he has to do is call or write me at The Daily News,""?Breslin wrote. ""It's simple to get me. The only people I don""t answer are bill collectors.""Breslin also authored several lauded books, including The Church That Forgot Christ, a response to the Catholic Church's many sex scandals; How the Good Guys Finally Won, a glimpse into the politicians who helped bring down President Richard Nixon during the Watergate scandal; and a novel, The Gang That Couldn""t Shoot Straight.- In 1969, Breslin ran as writer Norman Mailer's running mate in an unsuccessful New York mayoral bid. Their campaign manager described the ill-fated run as-""A dull campaign in a sad city with a grimace of despair carved into its face. Mailer and Breslin managed, for a short season, to turn that grimace into a grin.""?He is survived by his wife, four children, three stepchildren and twelve grandchildren.- Correction: This article has been updated to correct Jimmy Breslin's age. Share this slide: How will Trump's first 100 days impact you? Learn more", -3094,2017/3/19,http://www.huffingtonpost.com/2017/03/19/trump-wiretap-evidence_n_15470826.html,House Intel Chair: Trump Administration Documents Don't Back Up Wiretap Claim,Rep. Devin Nunes (R-Calif.) said information provided by the Department of Justice contained no proof of Trump's unsubstantiated claim.,"WASHINGTON ""?The chairman of the House Intelligence Committee on Sunday announced that evidence provided by President Donald Trump's administration does not prove his unsubstantiated claim that his predecessor Barack Obama ordered wiretapping on Trump Tower during last year's campaign. ""Was there a physical wiretap of Trump Tower? No, there never was,""?Rep. Devin Nunes (R-Calif.) said on ""Fox News Sunday.""?""the information we got on Friday continues to lead us in that direction.""he DOJ was originally asked to turn over the information on Monday, but that afternoon,-asked for an extension. Nunes also said that ""where was no warrant that I'm aware of""?authorizing any wiretapping of Trump Tower, confirming what top intelligence officials under Obama have also determined. Trump and his staff continue to defend the allegation, even after both the House and Senate Intelligence Committees found last week that they have no evidence to suggest any sort of activity. Trump on Friday continued to suggest that his claim was true, awkwardly joking about it-during a joint press conference with German Chancellor Angela Merkel. On Monday, the House Intelligence Committee will hold a hearing, which will include testimony from FBI director James Comey. Earlier this month, Comey reportedly told the Justice Department to publicly refute the claim, and the committee's ranking member Rep. Adam Schiff (D-Calif.) said last week that he expects-Comey will debunk the claim-at Monday's hearing. Schiff also confirmed on Sunday that the DOJ's documents did not support Trump's claim. ""I got a classified briefing on their response. They delivered it after most of us had left town. But once again, no evidence to support the president's claim that he was wiretapped by his predecessor,""?he said on NBC's ""Teet the Press.""?Yet several top Republicans still believe a congressional probe is necessary. Sen. Tom Cotton (R-Ark.), a member of the Senate Intelligence Committee,-said on Sunday that the committee ""will be taking them seriously""?at its own hearing later this month. When asked if there was any evidence backing up Trump's claim, Cotton said:-""not that I""ve seen, and not that I'm aware of,""?on CNN's ""state of the Union.""?""But as with all the other claims related to this matter, the Senate Intelligence Committee will be taking them seriously and approaching it in a deliberative fashion to review not only documents from the past year but also taking testimony of several witnesses.""?House Speaker Paul Ryan (R-Wis.) said on ""Fox News Sunday""?that while he also has not seen evidence of the wiretap claim, ""we will investigate each and every one of these things.""?And Sen. Susan Collins (R-Maine) implored Trump to ""explain to us on the Intelligence Committee and to the American people,""?telling NBC's ""Teet the Press""?that she hopes to ""get to the bottom of this.""?Responding to Collins, Schiff said that ""where is nothing at the bottom.""?""I have a lot of respect for Susan Collins, but I have to differ with her on this. She said we need to ""�get to the bottom of this.""?We are at the bottom of this,""?Schiff said. ""there is nothing at the bottom.""?This article has been updated with comments from Schiff and Collins. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3095,2017/3/19,http://www.huffingtonpost.com/earl-ofari-hutchinson/if-the-democrats-cave-on-gorsuch-theyll-be-terribly_b_15470856.html,If Democrats Cave On Gorsuch they'll Be Sorry,"Gorsuch is young and fit, and conceivably could duplicate Scalia's tenure on the high court.","The day the late Supreme Court Justice Antonin Scalia died Appeals Court Judge and Scalia's nominated replacement, Neil Gorsuch, said he could barely get down a ski run in Colorado because he was so blinded by tears at his death. This was not a private utterance or personal feeling of deep emotion that he shared with friends and family. He told of his profound sorrow in a speech in April 2016 at Case Western University. Gorsuch wanted the world to know that Scalia was more than just a heartfelt friend. He was a man and a judge whose legal and judicial ideas he was in total lockstep with. Scalia represented judicially everything that liberal Democrats, civil rights, civil liberties, women rights, and public interest groups regard as wrong with the Supreme Court. His opinions and votes on crucial cases read like a what's what of legal horror stories. Scalia tipped the White House to Bush in Bush versus Gore in 2000, voted to gut voting rights, oppose same sex marriage and gay rights protections, to scrap the checks on corporate spending on elections, whittle away at abortion rights, and give free rein to corporations to discriminate by narrowing down who could file class action lawsuits. The only reason that Gorsuch hasn""t matched his mentor and idol Scalia's 19th Century grounded voting record on key cases, is because he hasn""t been on the court for the decades Scalia was on the high court. But there's enough in his thin resume on some cases that pertain to abortion rights, Planned Parenthood funding, a powerhouse federal judiciary, and most menacingly the strictest of strict reading of the constitutionalism, branded ""Ariginalism,""?to serve as fair warning of what's to come if he gets on the SCOTUS. And, as with Scalia, it won""t be pretty. This is one of the few times that Senate Democrats can do exactly what Senate Republicans did with Obama's pick to replace Scalia, Merrick Garland, use the filibuster to say no. The GOP concocted the blatant lie to justify their obstructionism that Obama was a lame duck president, and lame duck presidents don""t and shouldn""t have the right to put someone of the high court on their way out. They pooh-poohed the fact that the Senate has approved other lame duck president's picks to the courts including Reagan's pick of Anthony Kennedy in 1988, Reagan's last year in office. They blocked Garland not because of protocol, propriety, or tradition, but raw, naked and brutal partisan politics. The GOP understands that the Supreme Court is not just a neutral arbiter to settle legal disputes. It is a lethal weapon to skirt congressional gridlock and serve a dual role as a judicial and legislative body. This meant scrapping the long-standing tradition on the court where justices based their legal decisions solely on the merit of the law, constitutional principles and the public good, and not ideology. Trump and his hard-right conservative backers are fully aware that the court's power to be de facto legislators could last for decades. After all presidents and congresspersons come and go, but justices can sit there until death if they choose. Scalia was proof of that. He sat for 30 plus years on the bench. Gorsuch is young and fit, and conceivably could duplicate Scalia's tenure on the high court. He would sit there long after Trump is gone, and long after other future Democratic presidents that sit in the Oval Office depart. During those years, he will be a key vote, if not the key vote, on many cases involving labor protections, civil rights, civil liberties, gay and abortion rights, corporate power, environmental issues, education, the death penalty, criminal justice system reforms, voting rights, and many other issues that will alter, and shape law and public policy for years, perhaps decades to come. Gorsuch was carefully vetted by the Heritage Foundation when it submitted its list to Trump of reliable ultra-conservative judges who would rigidly toe the ultra-conservative line. They took no chance of recommending any judge who might in any way be a high court turncoat, and experience a judicial conversion in philosophy as a few judges thought reliably conservative have done in the past. The stakes are simply to high to risk that in the relentless drive by ultra-conservatives to roll back the gains in civil, women's and labor rights of the past half century. The pressure will be enormous on conservative Democratic senators in the Red states to cave quickly and support Gorsuch, by rejecting a filibuster. they'll be hit with everything from the stock argument that presidents have the right to pick their SCOTUS justices to outright threats that they'll be top targets when election time rolls around. It will take much for them to do what the GOP did with Garland, that's to say no, and back a filibuster. If they cave, they'll be terribly sorry. Earl Ofari Hutchinson is an author and political analyst. He is the author of In Scalia's Shadow: The Trump Supreme Court ( Amazon Kindle). He is an associate editor of New America Media. He is a weekly co-host of the Al Sharpton Show on Radio One. He is the host of the weekly Hutchinson Report on KPFK 90.7 FM Los Angeles and the Pacifica Network. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3096,2017/3/19,http://www.huffingtonpost.com/2017/03/19/will-hurd-trump-apologize_n_15470482.html,Republican Congressman Says Trump Should Apologize To Obama And The UK,Best not to hold your breath on that one.,"Rep. Will Hurd (R-Texas), a member of the House Intelligence Committee and former CIA agent, said Sunday that he thinks it's time for President Donald Trump to apologize for the false claims he made about wiretapping. ""to quote my 85-year-old father, Bob Hurd, who has given this advice to all of my friends when they got married, it never hurts to say you'r sorry,""?Hurd said on ABC's ""This Week,""?echoing a similar comment he made to CNN on Friday. Hurd is the second Republican to say Trump ""?a man loath to admit any errors ""?should apologize to former President Barack Obama over his unsubstantiated claim he tapped the phones in Trump Tower. Rep. Tom Cole (R-Okla.) said the same on Friday. Republicans have struggled to defend Trump after he insisted repeatedly that Obama wiretapped him during the campaign, which he later amended to claiming general surveillance. Trump has produced no evidence that this is true, either to the public or to Congress, according to members. It's not just Obama who deserves an apology, but also United Kingdom officials, Hurd said. They were dragged into the controversy-when White House press secretary Sean Spicer, seeking to back up Trump's remarks, quoted a Fox News analyst's claim that their intelligence agency assisted in Obama's surveillance effort. The U.K. denied this. ""We're got to make sure that we'r all working together,""?Hurd said. ""We live in a dangerous world and we can""t do this alone. ... It's not just sorry to the president, but also to the U.K. for the claims or intimation that the U.K. was involved in this as well,""?he said. ""It doesn""t hurt.""?Sen. Susan Collins (R-Maine) said Sunday on NBC's ""Teet the Press""?that she wants Trump to explain his comments before she will say whether she thinks he should apologize to Obama. ""I'd like to first get to the bottom of this before saying what should be done,""?Collins said. ""I don""t know of the basis for President Trump's assertion and that's what I wish he would explain to us on the Intelligence Committee and to the American people. I do believe he owes us that explanation.""?- It doesn""t appear likely that Trump will take the advice of Hurd and Cole anytime soon. He spent years accusing Obama of faking his U.S. citizenship and has never publicly said he was sorry for doing so, although he finally said last year he thinks the former president is a citizen after all. His administration's efforts to smooth over the tension with the United Kingdom were spotty. British Prime Minister Theresa May's official spokesman said last week that White House officials assured them they would not repeat the claim, and several news outlets reported that Spicer and national security adviser H.R. McMaster apologized. But publicly, White House officials and the president himself have not expressed regret ""?instead, they're said they were simply quoting the Fox News commentator, Andrew Napolitano, a former New Jersey judge. Trump insisted on Friday that he and his top aides-""said nothing.""?""All we did was quote a certain very talented legal mind who was the one responsible for saying that on television. I didn""t make an opinion on it. ... You shouldn""t be talking to me. You should be talking to Fox.""?""I don""t think we regret anything,""?Spicer told reporters on Friday. ""As the president said, I was just reading off media reports.""?Afterward, people did talk to Fox News, which said in a statement that Napolitano stood by his comments. Again, with no evidence. Fox News anchor Shep Smith said they couldn""t find any. ""Fox News cannot confirm the judge's commentary,""?Smith said. ""Fox News knows of no evidence of any kind that the President of the United States was surveilled at any time in any way ""?full stop.""?- - Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3097,2017/3/19,http://www.huffingtonpost.com/2017/03/19/anti-trump-billboard-sparks-outrage_n_15470072.html,"Nazi-Themed Trump Billboard To Stay Up As Long As He's President, Owner Says","The explosive sign, recently erected in Arizona, features dollar-sign swastikas and mushroom clouds.","A billboard in Arizona is drawing public outrage after featuring President Donald Trump's face surrounded by dollar-sign swastikas and nuclear mushroom clouds. The controversial artwork appeared in Phoenix on Friday. In the days since, California-based artist Karen Fiorito says she's received death threats. ""I think a lot of people are feeling this way and I'm just trying to express what I think is on a lot of people's minds these days,""?she told local news operation 12 News. ""mething that really concerned us was this idea of a dictatorship where things were going in a certain direction.""?The billboard space was provided by the owner, Beatrice Moore, who 12 News reported has offered to showcase the work for the remainder of Trump's presidency.- On the back of the billboard, there's another message. It reads ""unity""?both in English and in sign language. Of course, not everyone is on board with the sign, even those who say they'r fine with an anti-Trump message. ""It's pretty drastic, I thought swastikas were very crude and violent,""?neighbor Jeff Whitman told AZ Family.com. He suggested more family-friendly symbols instead. ""Taybe put some thumbs down up there around Trump or something but I don""t like waking up to the Nazi signs,""?he told Arizona Central. Passerby Astrid Olafsen, however, threw support behind the sign, particularly the front and back contrast. ""I think that it's a wonderful expression of the two sides of the opinions of what is going on and how we can move forward,""?she told Arizona Central. Jeremy Bacpac also shared her approval of the imagery.- ""It's fantastic. I think this is what artists are supposed to do, make statements, whether you agree or not, it's a statement,""?she told ABC 15. On Friday, Fiorito posted on Facebook-that she expected ""death threats and the like""?over the work. There appeared to be mixed reviews on her page's comment section, one calling her a ""racist pig""?and another thanking her for her ""Amazing, insightful artwork.""?Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -3098,2017/3/19,http://www.huffingtonpost.com/2017/03/19/jimmy-breslin-dead_n_15470068.html,Iconic New York Columnist Jimmy Breslin Dead At 88,New York bids farewell to one of its most prolific storytellers.,"Jimmy Breslin, an award-winning New York Daily News columnist celebrated for his insights into the lives of everyday New Yorkers, died Sunday, the outlet confirmed. He was 88. He had been recovering from pneumonia, his wife Ronnie Eldridge, a former New York City Council member, confirmed to the The New York Times. - His last column for the Daily News ran in 2012, but The Daily Beast began running new writing from him late last year after years of reprinting his classic columns.- In his decades-spanning career writing for several outlets, Breslin found fame for his portrayals of ordinary New Yorkers and the city's scruffy anti-heroes, often those at the sidelines of major world news events. In a 1980 Daily News story, Breslin told the story of the New York City cops who retrieved John Lennon's body moments after he been fatally shot. For an iconic 1963 column in The New York Herald Tribune, he tracked down the cemetery worker-tasked with digging President John F. Kennedy's grave.- Breslin's depiction of gravedigger Clifton Pollard encapsulated his knack for letting his subjects""?details speak for themselves:- Pollard is 42. He is a slim man with a mustache who was born in Pittsburgh and served as a private in the 352nd Engineers battalion in Burma in World War II. He is an equipment operator, grade 10, which means he gets $3.01 an hour. One of the last to serve John Fitzgerald Kennedy, who was the thirty-fifth President of this country, was a working man who earns $3.01 an hour and said it was an honor to dig the grave. That piece is often cited as the type of writing that made Breslin the legendary storyteller he's remembered as. ""�[I]t showed how a writer can break away from the crowd, even on the biggest possible story; how, in the words of the great editor Gene Roberts, an enterprising reporter can zig when everyone else zags,""?the Poynter Institute for Media Studies-wrote. He received many awards for his writing, most notably the Pulitzer Prize for Commentary in 1986. The board awarding him the prize praised him-""Hor columns which consistently champion ordinary citizens.""?Breslin said his pursuit of those characters was central to good journalism. ""What's wrong with journalists today? They don""t go out,""?Breslin said in a 2015 interview with the City University of New York TV station. ""television would be your answer. They'r all on television giving the news. As you listen to them talk, you know they haven""t left the office. They have no authentic spirit to the voice as they'r telling you what happened in New York, because they don""t know and they don""t bother with it.""?The Pulitzer board pointed to an emotionally-wrought 1985 column that weaved a story of the AIDS crisis through the lens of one inflicted young man: ""You have Karposi's sarcoma,""?the doctor said. ""�One of them was on an artery. That caused your trouble. There are 10 to 12 more in there.""?""What does that mean?""?his mother said. He remembers mumbling to his mother, ""that is the cancer you get when you have AIDS.""?He and his mother looked at each other. Now the life he never talked about was part of the family album. In another fascinating 1977 column that spoke to the reach of Breslin's writing, he published letters written to him by notorious New York serial killer-""n of Sam,""ho had yet to identified as David Berkowitz. ""If he wants any further contact, all he has to do is call or write me at The Daily News,""?Breslin wrote. ""It's simple to get me. The only people I don""t answer are bill collectors.""Breslin also authored several lauded books, including The Church That Forgot Christ, a response to the Catholic Church's many sex scandals; How the Good Guys Finally Won, a glimpse into the politicians who helped bring down President Richard Nixon during the Watergate scandal; and a novel, The Gang That Couldn""t Shoot Straight.- In 1969, Breslin ran as writer Norman Mailer's running mate in an unsuccessful New York mayoral bid. Their campaign manager described the ill-fated run as-""A dull campaign in a sad city with a grimace of despair carved into its face. Mailer and Breslin managed, for a short season, to turn that grimace into a grin.""?He is survived by his wife, four children, three stepchildren and twelve grandchildren.- Correction: This article has been updated to correct Jimmy Breslin's age. Share this slide: How will Trump's first 100 days impact you? Learn more", -3099,2017/3/19,http://www.bbc.co.uk/news/uk-england-london-39323617,Man arrested over Finsbury Park toddler murder,"A man has been arrested on suspicion of the murder of a one-year-old boy and the attempted murder of a girl of the same age, Scotland Yard says.","A man has been arrested on suspicion of the murder of a one-year-old boy and the attempted murder of a girl of the same age, Scotland Yard says. Bidhya Sagar Das, 33, was wanted in connection with an incident at a flat in Finsbury Park, north London. The children, thought to be twins, were found at the flat with critical injuries on Saturday night. The boy died in the early hours of Sunday morning and the girl remains in a critical condition in hospital. Officers said they had been called to Wilberforce Road in Finsbury Park at 23:10 GMT on Saturday night by a ""distraught"" member of the public following a ""domestic incident"". Mr Das was arrested on Sunday evening in Hackney, east London. Det Ch Insp Dave Whellams, who is leading the investigation, said: ""This is clearly a tragic incident, and our thoughts are with the family of the two young children. ""Despite the best efforts of medical professionals a baby boy sadly died in the early hours of this morning. A baby girl currently remains in a critical condition and is receiving specialist medical care. ""Whilst we remain in the early stages of the investigation, a man has now been arrested. ""I would still like to hear from anyone who may have any information regarding this terrible incident.""", -3100,2017/3/19,http://www.bbc.co.uk/news/world-middle-east-39321098,Syria war: Damascus sees fierce clashes after rebel attack,"Syrian security forces are engaged in fierce clashes with rebels on the eastern outskirts of the capital Damascus, residents say.","Syrian security forces are engaged in fierce clashes with rebels on the eastern outskirts of the capital Damascus, residents say. Artillery shells and rockets landed inside the heart of the city as part of a surprise rebel attack, they say. The insurgents detonated two suicide car bombs in Jobar district before trying to storm government defence lines, observers said. The military responded to the attack with air strikes. Syrian state media says secret tunnels were also used to launch the assault in Jobar. Deadly attack on Damascus court complex Syria's war shows no sign of ending Six decisive points that changed Syria's war Risking all to escape Damascus only has a few opposition held areas, and Jobar is the closest to the city centre. Control of the war-damaged area - which is split between rebels and jihadists on one side and government forces on the other - has been fought over for more than two years. AFP correspondents in Damascus said the army had closed routes into the strategically important Abbasid Square as explosions reverberated across the city. The UK-based Syrian Observatory for Human Rights said the rebels had initiated the attack to relieve pressure on fighters under attack from government forces in the districts of Barzeh, Tishreen and Qabun. Last Wednesday, at least 31 people were killed in a suicide bomb attack at the main court complex in the centre of Damascus. Later, another suicide bomber attacked a restaurant in the western district of Rabweh, injuring more than 20 people. The attacks came on the sixth anniversary of the uprising against President Bashar al-Assad.", -3101,2017/3/19,http://www.bbc.co.uk/news/uk-wales-39321820,'Homophobia' row over Bishop of Llandaff selection,A gay clergyman has accused the Anglican Church in Wales of homophobia after he was rejected for a job as a bishop.,"A gay clergyman has accused the Anglican Church in Wales of homophobia after he was rejected for a job as a bishop. The Dean of St Albans, the Very Reverend Jeffrey John, was not chosen as the Bishop of Llandaff earlier this month. A current bishop said it would be ""too much of a headache"" to appoint him, he claimed. The Church in Wales ""strongly denied"" the accusations of homophobia. Dr John said he had been told appointing him would be difficult because he was in a civil partnership, although celibate in line with church teaching. He wrote to the Bishop of Swansea and Brecon - the Right Reverend John Davies, who is currently the church's senior bishop - after an electoral college of bishops, clergy and lay people failed to reach a decision about who should replace Dr Barry Morgan as bishop. It is understood Mr John received a majority of the votes, but not the two-thirds required by church rules. He said homophobic remarks had been made at the electoral college meeting. ""Much more importantly, the only arguments adduced against my appointment - in particular by two of the bishops - were directly related to my homosexuality and/or civil partnership - namely that my appointment would bring unwelcome and unsettling publicity to the diocese,"" he wrote. Dr John said he had been told by a bishop by telephone they were ""'just too exhausted' to deal with the problems they believed [his] appointment would cause."" ""I put it to you that this is not a moral or legal basis on which to exclude me,"" Dr John wrote. Under the church's rules, the decision has passed to its bench of bishops, who failed to reach a decision when they met last week. A Church in Wales spokeswoman told BBC News: ""At the recent meeting of Electoral College no one candidate secured the necessary two-thirds majority to be elected Bishop of Llandaff. The appointment will now be made by the church's bishops. ""After a process of consultation, they have drawn up a shortlist of names which is confidential. However, the Bishops strongly deny allegations of homophobia."" Dr John, who was born in Tonyrefail in Rhondda Cynon Taff, was nominated as Bishop of Reading in 2003, but was asked to withdraw from the role by the then-Archbishop of Canterbury, Rowan Williams. He entered a civil partnership with Grant Holmes in 2006, but said at the time he had remained celibate, in line with church teaching. He is a public supporter of same-sex marriage, writing in the Church Times in 2012 that ""theologically, ethically, and sacramentally, there is no difference between a gay couple and a heterosexual couple who cannot have children"". ""So, yes, same-sex marriage can be as holy and sacramental as heterosexual marriage. Yes, God is in favour of gay marriage and so should the Church be,"" he added. Gay rights campaigners have previously called for him to be made a bishop in Wales. Dr John's nomination as Bishop of Reading caused controversy in 2003 when Dr Rowan Williams summoned him to Lambeth Palace and asked him to withdraw from the post. Some conservative Anglican leaders had warned they would split from the communion if Mr John's consecration went ahead. Friends of Mr John told the BBC last year that he had ""painted the house, finished the episcopal training sessions, and been given the keys of the official car when the job was taken away.""", -3102,2017/3/19,http://www.bbc.co.uk/news/entertainment-arts-39319503,Historical dramas 'limit UK black actors',"Actress Thandie Newton has said she ""can't work"" in the UK because there are no roles for black and minority ethnic actors in historical dramas.","Actress Thandie Newton has said she ""can't work"" in the UK because there are no roles for black and minority ethnic actors in historical dramas. London-born Newton said the number of costume dramas had led to ""slim pickings for people of colour"". Her criticism comes after British Film Institute research found that 59% of UK films since 2006 had no black actors in any role. Newton's next UK TV role will see her appear in BBC One's Line of Duty. Speaking to the Sunday Times Magazine, the mother-of-three said: ""I love being here, but I can't work, because I can't do Downton Abbey, can't be in Victoria, can't be in Call The Midwife - well, I could, but I don't want to play someone who's being racially abused."" ""I'm not interested in that, don't want to do it... there just seems to be a desire for stuff about the Royal Family, stuff from the past, which is understandable, but it just makes it slim pickings for people of colour."" Newton is one of many British actors who have complained about the lack of ethnic diversity in UK TV and film. Former Spooks star David Oyelowo said there had been an exodus of black British actors to the USA, due to the lack of opportunities available in British drama. In 2015, the star of A United Kingdom said: ""We make period dramas in Britain, but there are almost never black people in them, even though we've been on these shores for hundreds of years. ""It's frustrating, because it doesn't have to be that way"". On the US stage, black actors portrayed white historical figures like George Washington in Broadway musical Hamilton, which retells the story of American founding father Alexander Hamilton. The migration of black British actors to the US has been criticised by Hollywood star Samuel L Jackson. He criticised the industry for hiring UK stars to play American roles, and said: ""We've got a lot of brothers here that need to work too."" His comments came after Skins actor Daniel Kaluuya starred in US racial thriller Get Out. He said: ""I love all my black brothers and sisters worldwide, and that's my position. ""All I know is this my first-ever lead role in a film and I've lost out on a lot of roles because I'm black."" He added: ""It's my one shot. I'm going to come through it and do my thing and go home.""", -3103,2017/3/19,http://www.bbc.co.uk/news/uk-39322056,Man charged with damaging National Gallery masterpiece,A man has been charged with criminal damage after an attack on a celebrated painting by Thomas Gainsborough at the National Gallery.,"A man has been charged with criminal damage after an attack on a celebrated painting by Thomas Gainsborough at the National Gallery. Staff and visitors restrained a man who allegedly scratched the work, known as The Morning Walk, with a sharp object. The gallery said the scratches had penetrated the paint layers but not torn through the canvas. The Metropolitan Police said Keith Gregory, 63, of no fixed address, had been charged over the attack. The gallery said a visitor had allegedly attacked the painting in room 34 of the east wing with a sharp instrument at about 14:15 GMT on Saturday. Gallery assistants and visitors detained him before he was arrested by the Metropolitan Police, according to the gallery. The east wing of the gallery was evacuated and closed for two hours, and the 1785 painting, officially titled Mr and Mrs William Hallett, was removed from display. ""The damage is limited to two long scratches which have penetrated the paint layers, but not the supporting canvas,"" a spokesperson said in a statement. Conservators will now decide how best to preserve the painting, the gallery said. One Reddit user described the scene just after the attack: ""One of the staff shouted at everyone to move aside. An older man, surrounded by about 6-8 staff, was quickly taken past us."" The poster said onlookers believed the alleged attacker had used a screwdriver. A Metropolitan Police spokesperson said that Keith Gregory was charged on Sunday with causing criminal damage to a painting at the National Gallery the previous day. He was remanded in custody to appear at Westminster Magistrates Court on Monday.", -3104,2017/3/19,http://www.bbc.co.uk/news/world-asia-39321568,New Zealand: US diplomat expelled amid police inquiry,A US diplomat has been expelled from New Zealand after the embassy refused to waive his immunity during a police investigation.,"A US diplomat has been expelled from New Zealand after the embassy refused to waive his immunity during a police investigation. The staffer was allegedly involved in an incident on 12 March, but police were unable to question him after the embassy declined their request. New Zealand then asked the US to remove the man, who American officials confirmed had left on Saturday. Police have refused to give further details of the allegations. However, New Zealand Radio reported the man - who has not been named - had left the country with a broken nose and a black eye. Police did say they were continuing to investigate the incident, which took place just outside Wellington. All diplomatic staff working in New Zealand are immune from prosecution, thanks to the 1961 Vienna Convention. However, New Zealand's foreign ministry said it makes it ""clear with all diplomatic missions in New Zealand that it expects foreign diplomats to abide by New Zealand law, and to waive immunity... if there are allegations of serious crimes"". The US embassy in Wellington - which is without a permanent ambassador after President Barack Obama's appointee was recalled by Donald Trump's administration in January - said it did not comment on the specifics of matters under investigation. It added: ""We take seriously any suggestion that our staff have fallen short of the high standards of conduct expected of US government personnel.""", -3105,2017/3/19,http://tass.com/world/936362,Japanese top diplomat praises Lavrov for being strong diplomat,"""I feel that we have managed to build relations of trust that make it possible to speak openly and unequivocally about the most difficult matters"", Fumio Kishida said","TOKYO, March 19. /TASS/. Japanese Foreign Minister Fumio Kishida told TASS ahead of a 2+2 meeting of the Japanese and Russian foreign and defense ministers due to take place in Tokyo on March 20 that he has established relations of personal trust with his Russian counterpart, Sergey Lavrov, whom he believes to be a strong diplomat. ""Minister Lavrov has made a great career as professional diplomat,"" Kishida said. ""He has been having his current position for more than ten years and he knows all the ins and outs of various international problems and gives an impression of a man strong at discussions."" According to the Japanese top diplomat, he has met with Lavrov eight times by now. ""For instance, I recollect our meeting in London in April 2013 when I had just been appointed foreign minister,"" he said. ""It was our first conversation. Back then, we had a long discussion about historical interpretation and legal positions concerning the problem of the northern territories [as Tokyo refers to Southern Kuril Islands - TASS]."" ""Later on, at our meeting in last April we confirmed that even having differences in historical interpretations and legal positions we must work out a mutually acceptable way to resolve the problem of the northern territories,"" Kishida noted. ""Ultimately, we were able to hold a constructive discussion that could give an impetus to future talks."" ""Taking into account telephone conversations, we have spoken with Minister Lavrov 13 times,"" Japan's top diplomat said. ""I feel that we have managed to build relations of trust that make it possible to speak openly and unequivocally about the most difficult matters."".", -3106,2017/3/19,http://tass.com/world/936360,Ukraine to impose sanctions on European politicians for their visits to Crimea,"""In case their stay in Crimea is confirmed, criminal cases will be opened under the current laws"", the Council's Secretary Alexander Turchinov said","KIEV, March 19. /TASS/. Ukraine's Security Service has been entrusted by the National Security and Defense Council to compile a backlist of politicians from European and other countries who will face sanctions over their visits to Crimea, the Council's Secretary Alexander Turchinov said on Sunday. ""The Ukrainian Security Service is to compile and refer to the National Security and Defense Council a list of officials from the European Parliament and politicians from the European Union, the Commonwealth of Independent States (CIS) and Latin American countries who, according to Russian mass media reports, have arrived for a three-day visit to the annexed Crimean Peninsula,"" the Council's press service quoted him as saying. ""In case these reports are confirmed, the Ukrainian National Security and Defense Council will look at imposing sanctions on these people,"" Turchinov said. ""In case their stay in Crimea is confirmed, criminal cases will be opened under the current laws."" On Sunday, a delegation of European Parliament lawmakers and politicians from European Union, CIS and Latin American countries arrived on a three-day visit to Crimea. The delegation will take part in an international conference dedicated to the 100th anniversary of the Russian revolution and the present-day socialism. The conference was organized by the A Just Russia party. Foreign lawmakers visited Crimea more than once after its reunification with Russia. Thus, a delegation of French lawmakers led by Thierry Mariani visited Crimea twice, in 2015 and in 2016. The Republic of Crimea and Sevastopol, a city with a special status on the Crimean Peninsula, where most residents are Russians, refused to recognize the legitimacy of authorities brought to power amid riots during a coup in Ukraine in February 2014. Crimea and Sevastopol adopted declarations of independence on March 11, 2014. They held a referendum on March 16, 2014, in which 96.77% of Crimeans and 95.6% of Sevastopol voters chose to secede from Ukraine and join the Russian Federation. Russian President Vladimir Putin signed the reunification deals March 18, 2014. Despite the absolutely convincing results of the referendum, Ukraine, the United States and the European Union have been refusing to recognize Crimea as a part of Russia.", -3107,2017/3/19,http://tass.com/world/936357,Martin Schulz elected Social Democrat leader to run for German chancellor,"He scored 100% of the votes at the party's extraordinary congress, an unprecedented voting in the party's entire history","BERLIN, March 19. /TASS/. Former President of the European Parliament Martin Schulz on Sunday was elected the leader of Germany's Social Democratic Party. He scored 100% of the votes at the party's extraordinary congress, an unprecedented voting in the party's entire history. Schulz replaced Sigmar Gabriel to become an official candidate of German chancellor and Angela Merkel's chief rival.", -3108,2017/3/19,http://tass.com/world/936355,"Japanese top diplomat says Japan, Russia have good prospects for cooperation in S. Kurils","According to media reports, Tokyo has drafted a package of initiatives on joint economic activities in Southern Kurils","TOKYO, March 19. /TASS/. Russia and Japan have good prospects for cooperation on the Kuril Islands in such spheres as fishing, tourism and medicine in the formats that don""t affect the two countries""?positions on the ownership of these territories, Japanese Foreign Minister Fumio Kishida said on Sunday. ""As for joint economic activities on fourth northern islands, an agreement was reached after a meeting of the two countries""?leaders in December 2016 to begin consultations on cooperation in fishing, aquaculture, tourism, medicine, ecology and other possible spheres,"" Kishida said in an interview with TASS ahead of a 2+2 meeting of Japanese and Russian foreign and defense ministers due to take place in Tokyo on March 20. ""I think all of these spheres are promising bearing in mind the potential of the four northern islands with their rich nature and geographic conditions."" ""A council of officials from the ministries and agencies concerned under my chairmanship has been set up in Japan,"" he said. ""It looks into various matters to initiate concrete projects. On March 18, Russian Deputy Foreign Minister Igor Morgulov visited Japan. Apart from that, official consultations between deputy foreign ministers on that matter will be held in Tokyo."" ""Of major importance is the fact that Japan and Russia are working together to outline a future appearance of the four islands,"" the minister stressed. ""I would like our countries to do it in a constructive manner and in formats that would do no harm to Japan's and Russia's legal positions."" According to media reports, Tokyo has drafted a package of initiatives on joint economic activities in Southern Kurils. These include organization of cruise voyages around these islands, offering medical services to their population from Japan via the internet, etc. Tokyo also plans to initiate a joint survey of the islands with an eye of identifying other possible areas for cooperation. Until now, no visible success has been reached in this sphere over Japan's unwillingness to recognize Russia's administration over Southern Kurils. Prime Minister Shinzo Abe has promised to reach progress on that matter with no prejudice to the countries""?positions.", -3109,2017/3/19,http://tass.com/world/936352,Japan's top diplomat hopes for progress on peace treaty problem at meeting with Lavrov,"""I don""t think it is normal when our countries have no peace treaty although more than 70 years have elapsed after the end of the war,"" Fumio Kishida said","TOKYO, March 19. /TASS/. Japanese Foreign Minister Fumio Kishida has pledged to try to reach progress on the Japan-Russian peace treaty problem at his next meeting with his Russian counterpart, Sergey Lavrov. ""Our countries are currently in strenuous talks to specificate the two leaders""?agreements,"" Kishida said in an interview with TASS ahead of a 2+2 meeting of Japanese and Russian foreign and defense ministers due to take place in Tokyo on March 20. ""On March 20, I plan to hold discussions with Minister Lavrov and try to reach progress on that problem,"" he stressed. ""I don""t think it is normal when our countries have no peace treaty although more than 70 years have elapsed after the end of the war,"" he said. ""The leaders of our countries are committed to sign it by means of reaching a final solution to the territorial dispute in a mutually acceptable manner."" Japan and Russia have been negotiating this problem for year, the Japanese top diplomat reminded. ""After the diplomatic relations were restored in 1956, there were periods when thanks to the efforts of these or those leaders of our countries certain progress was achieved towards resolution of the problem of northern territories,"" he noted. ""Relying on this history of talks, Prime Minister Shinzo Abe is committed to finally resolve this problem within the lifetime of his generation."" ""I am in serious discussions with Russian Foreign Minister Sergey Lavrov on that problem. During Russian President Vladimir Putin's visit to Japan, at the end of last year, the leaders of our countries had a tete-a-tete meeting, without other participants, and after their talks they expressed sincere commitment to settle the problem of the peace treaty,"" Kishida said. ""And they reached an agreement to begin consultations on joint economic activities on four islands and on trips there by their former inhabitants."".", -3110,2017/3/19,http://tass.com/world/936349,Kiev plans to swiftly finish talks with IMF on impacts of blockade of Donbass,"At a meeting of Ukraine's National Defense and Security Council on March 15, President Pyotr Poroshenko suggested all transport links with Donbass be cut","KIEV, March 19. /TASS/. Ukraine plans to swiftly conduct consultations with the International Monetary Fund (IMF) over the latter's demand that Ukraine's potential economic losses over the blockade of Donbass be calculated, Ukrainian Finance Minister Alexander Daniluyk said on Sunday. ""These calculations are important for both sides to ensure the maximal efficiency of the program. Relevant consultations have already been kicked off. We plan to complete them as soon as possible,"" the ministry's press service quoted him as saying. Ukraine's finance ministry has confirmed that the issue of an anti-crisis program for Ukraine was withdrawn from the agenda of an IMF Board of Directors""?meeting due to be held on Monday. According to the ministry, ""the postponement of the meeting stems from the need to specify economic impacts of the measures Ukraine is taking in response to the blockade and seizure of Ukrainian companies in the Donetsk and Lugansk regions""?areas that are not controlled by the government and over Russia's recognition of documents issued in these territories."" Earlier on Sunday, a well-informed source told TASS that the IMF Board of Directors had postponed discussion of the Ukrainian anti-crisis program originally planned for Monday. The meeting was expected to conclude the third review of the program and sanction another loan tranche to Ukraine worth one billion U.S. dollars. At a meeting of Ukraine's National Defense and Security Council on March 15, President Pyotr Poroshenko suggested all transport links with Donbass be cut. A relevant decree was signed on the following day. According to Ukraine's Finance Minister Alexander Danilyuk, Ukraine's losses from the blockade of Donbass will amount to two percent of GDP.", -3111,2017/3/19,http://tass.com/world/936342,Civilian in DPR injured in fire from positions of Ukrainian military - spokesman,"A woman, born in 1950, received a bullet wound in her own yard","DONETSK, March 19. /TASS/. A civilian, living in Lozovoye (Donbass""?Yasinovataya region) received a bullet wound as the Ukrainian military opened fire on the self-proclaimed Donetsk People's Republic (DPR), spokesman of the republic's command Eduard Basurin said on Sunday. ""A woman, born in 1950, received a bullet wound in her own yard,"" the Donetsk News Agency quoted him. Earlier on Sunday, the republic's authorities reported the Ukrainian Armed Forces on Saturday evening and Sunday morning shelled Yasinovataya, Zaitsevo north of Gorlovka, Luganskoye, Signalnoye and Elenovka. In blackout remain Luganskoye and Signalnoye, Elenovka and Naberezhnoye. Since the autumn of 2014, members of the Contact Group on settling the situation in eastern Ukraine have announced ceasefires in Donbass more than ten times. However, the Ukrainian military have been repeatedly violating ceasefires, particularly using large caliber guns, mortars and tanks that should be withdrawn from the line of contact in accordance with the Minsk agreements. At the recent meeting of the Contact Group, held on March 1, the parties agreed to resume the weapons withdrawal process on March 7. However, the Ukrainian military refused to begin withdrawal under pretext of insecurity in the region.", -3112,2017/3/19,http://www.dw.com/en/german-chancellor-merkel-opens-cebit-digital-trade-fair/a-38016901?maca=en-rss-en-all-1573-rdf,German Chancellor Merkel opens Cebit digital trade fair,"A self-driving shuttle service, receptionist robots and delivery drones - at Cebit, companies showcase the future. Merkel embraced the changes new technologies will bring. Here is what will be big at the show.","German Chancellor Angela Merkel on Sunday-opened the Cebit, Germany's largest digital trade fair, in the northern German-city of Hanover. ""It's the task of the state to really promote digitalization,""?she said at the opening ceremony, speaking after Japanese Prime Minister Shinzo Abe. Japan is the show's partner country this year, a country the German IT industry can learn a lot from, according to trade association Bitkom. More than a quarter of the world's top 100 tech firms hail from Japan --while almost none of them are based in Germany. And while hardware trade between the two partners has been growing, Germany exports around five times more than it imports. ""We have a friend in Japan, but also a competitor,""?Merkel said, as she pushed for freer trade between the two countries. Over the next five days, more than 3,000 exhibitors from 70 different countries will showcase their latest technologies. And while the halls only officially open to the public on Monday, the press could already peek in before. Everything is connected The future is here:-That is the impression one may get when checking out the stalls already open on Sunday. Drones, virtual reality headsets, humanoid robots --all the things that once were a distant science fiction fantasy are now there. But they also were last year. And the year before. So what is really new at Cebit this year? For one, it seems all technology is becoming more interconnected. The ""Internet of Things"" is starting to claim the public sphere. The Deutsche Telekom, for instance, announced it would launch a smart parking scheme in the city of Hamburg later this year. All public parking spots will be equipped with a sensor that-recognizes whether the space is available. Motorists can check this information in real time on their phone --and supposedly find a space to park a lot quicker. Or SAP, for example, showcased their concept of a smart and completely interconnected airport. Maintenance, incoming and outgoing air traffic, passenger flows --everything could be automated and coordinated based on data. Should passengers' departure gates change, for instance, software could predict their new route and send it to the shops along the way, who could then tailor their offers accordingly. Some airports already use certain features of the system, but in its entirety it remains a vision,-at least for the moment. Robots taking over? Another trend that already became apparent is that the lines between humans and robots continue to blur. Machines, with the help of artificial intelligence, are more and more capable of autonomously interacting with people and could soon replace them in many jobs. But not only that - the two can also work together. ""We are showcasing a technology which simplifies the interaction between robots and humans, so much so that it is almost the same as if two humans interact,""?said Mohammad Mehdi Moniri from the German Research Center for Artificial Intelligence. With virtual reality glasses on, he only had to move his fingers through the air in front of him --and a nearby robot moved accordingly. Mixed reality: Mohammad Mehdi Moniri steers a robot - without touching it This kind of teamwork could come in handy when carrying out dangerous tasks like defusing a bomb or working in spaces with harmful chemicals. ""You can send the robot where there are no humans, and then control the whole thing from here,""?Moniri explained. At another stand, technology helped a paralyzed person walk again. American firm Ekso Bionics and Vodafone jointly developed a walking robot for people to wear. A virtual nervous system reacts to upper-body movements and places one foot in front of the other accordingly. The walking robot costs around 120,000 euros ($128,000) and is currently used only in hospitals. Also, patients still need crutches and one additional person for support. But the ultimate goal is to get the device ready for everyday use. Our lives will change, this much is clear --not only from the examples above. Technology will transform business as well as daily life. Trade fairs like Cebit give a glimpse of what the future may look like. And with organizers expecting more than 200,000 visitors, it seems many are eager to find out.", -3113,2017/3/19,http://www.dw.com/en/bundesliga-bayern-13-points-clear-at-the-top-after-1-0-success-at-gladbach/a-37996562?maca=en-rss-en-all-1573-rdf,Bundesliga: Bayern 13 points clear at the top after 1-0 success at Gladbach,Bayern inched closer to a fifth straight Bundesliga crown with a 1-0 victory at Gladbach that put them 13 points clear at the top with nine games to play. Schalke earlier capped a fine week with a 1-0 win at Mainz.,"Gladbach 0-1-Bayern (M��ller 63') Second-placed Leipzig's 3-0 defeat at Werder Bremen on Saturday handed Bayern a chance to extend their lead at the summit and they immediately went on the attack at the Borussia Park stadium. Arjen Robben tested Gladbach goalkeeper Yann Sommer inside the first minute with a low drive. Gladbach showed some early ambition of their own and Thiago and Javi Martinez had to be alert in the fifth minute to block a close-range effort from Tony Jantschke. Bayern gained more control as the half progressed and it seemed only a matter of time before they would breach the home defenses. Sommer produced a great save to deny Robert Lewandowski in the 25th minute, although the Poland striker perhaps should have picked out Franck Ribery who was free in the centre. Sommer again impressed two minutes before the break. Robben unleashed a trademark curling effort that cannoned off the angle of post and crossbar and Lewandowski's diving header on the follow-up was brilliantly saved by the home keeper. There was nothing Sommer could do to stop Bayern's opener in the second half, though. Thiago drove in from the left and sent a delightful pass into space in the center-of the Gladbach penalty area, where Thomas M��ller took one touch before clipping the ball high into the net. Superbly marshaled It was the Germany forward's 93rd Bundesliga goal for Bayern in his 250th appearance in Germany's top flight, but only his second in the Bundesliga this season. Gladbach refused to throw in the towel and pushed hard for a leveler without really troubling the Bayern defense, superbly marshaled by Mats Hummels and Javi Martinez. The Bayern players""?celebration with their fans after the whistle said it all as they know they have the title all-but won with nine games left. ""I think you saw in the first half how much we wanted to win the match,"" M��ller told German television. ""It's a lot of fun playing with the lads and I think they were happy for me. It was a nice day for me of course today."" Mainz 0-1 Schalke (Kolasinac 50""? Schalke had followed up last weekend's 3-0 victory at home to Augsburg with a 2-2 draw at Gladbach midweek that put them through to the Europa League quarterfinals to face Ajax. Sunday's success at Mainz lifted them to ninth in the Bundesliga, three points off a possible European qualification berth but still only six points above Hamburg in the relegation playoff position. Mainz had the better chances in a tight first half at the Opel Arena, Colombian forward Jhon Cordoba testing the Schalke defense several times. Danny Latza came close to an opener for the home side seven minutes before the break but Schalke goalkeeper Ralf F?hrmann leaped to palm the midfielder's deflected shot around the post. Schalke grabbed the only goal five minutes into the second half. Kolasinac, wearing a mask to protect his injured face, powered down the left wing, exchanged passes with Guido Burgstaller and cracked a left-foot shot into the far corner past Mainz keeper Jonas L?ssl. Mainz pressed forward for an equalizer, leaving plenty of space for Schalke to counterattack but-Nabil Bentaleb missed a golden chance to double the scores in stoppage time. Re-live Sunday's action here:", -3114,2017/3/19,http://www.dw.com/en/opinion-after-the-euphoria-it-s-showtime-for-schulz/a-38016688?maca=en-rss-en-all-1573-rdf,"Opinion: After the euphoria, it's showtime for Schulz","To his fans he's a pop star. A guiding light, headed for the chancellery ""?full steam ahead, all aboard the ""Schulz train."" But, DW's Sabine Kinkartz asks, how long can the euphoria surrounding the new SPD leader last?","It's not unusual for there to be a big jamboree at party conferences when a new leader is chosen. Triumphal music, bright lights, cheers, beaming faces, endless applause. Been there, done that. But the extraordinary SPD party conference in Berlin - at which Martin Schulz was elected as the new party leader and named as its chancellor candidate - was different. The euphoria of the 2,500 delegates and guests was real, the unbridled enthusiasm almost palpable. Schulz is the first SPD party leader to be elected by the whole party, with not a single dissenting vote. One hundred percent. On the one hand, it's great that politics can still electrify people like this. But is this really about politics? About content? Substance? Martin Schulz hasn't delivered much of that yet, and apparently it will be at least another three months before he presents a manifesto ""?they're saying June. Until then, there's just the proposal to introduce something called ""unemployment benefit Q,"" which would provide a financial incentive for qualification, i.e. further training. Although there's reason to wonder how useful that actually is at a time when there are more and more vacancies opening up. But that's another subject, and not what this is about. Pride and passion Right now it's not about facts, manifestos, efforts at the political level. It's about symbols, projections and expectations. Martin Schulz appeals to people's emotions; he does it very skillfully and very well. He has stepped into an emotional vacuum, and seems able, with apparent ease, to revive the passion and pride the SPD has lost sight of in recent years. It was no coincidence that the first thing he did was to chip away at Agenda 2010, the social and labor market reform the SPD pushed through more than ten years ago, but which many party members still feel queasy about today. The Hartz IV welfare program, modified unemployment benefits and all that went with it are still regarded by many in the SPD as a blot on their copybook ""?a betrayal of core social-democratic values. If Martin Schulz intends to change something ""?anything ""?about this, that alone is balm to the SPD soul. It's a flame of hope ""?hope that the political leadership will return the party to its great theme of ""justice,"" and thus also to its former glory. The glory the SPD had under Willy Brandt; there has been much reference to this in the past few days. The events of recent weeks have fueled this feeling. Haven't thousands found their way back to the SPD, or else have newly joined? Hasn't the party's popularity in the polls considerably increased? Isn't Martin Schulz suddenly a real alternative to Angela Merkel? Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZQi8 The new guy It is an alternative also fueled, paradoxically,-by-Martin Schulz's image-as ""the new guy.""-For the SPD faithful, the former European Parliament president really has fallen like manna from heaven. In any political party, European politicians are like beings from another planet. From time to time they pop up in Germany, but somehow they and their brand of politics are only ever visiting. Brussels is a long way off. So on the one hand Martin Schulz is a new face. On the other, though, he isn't making a novice's mistakes. He's a political professional: He knows how he must behave, what he can and must say. He's got his gestures and facial expressions under control; he knows which buttons to press, which levers to apply. He's been extremely successful at appearances in small towns and villages. He talks to the people, gives them the sense they're really being heard. He manages to seem homey ""?not like someone who's just flown in from Berlin for a few hours yet appears out of place the minute he steps outside the government district. DW's Sabine Kinkartz Will the wave of support continue through September? The big question now is: How long can Martin Schulz continue to feed this enthusiasm and harness the euphoria? These also provide him with a degree of immunity to accusations and hostilities. The president of the European Parliament favored his colleagues? Not that important. Banal, given all that he's achieving at the moment. Really? Not interesting yet, one should say. This, though, is where things get serious for Martin Schulz. He's now the leader of the party, and the SPD's chancellor candidate. He is number one ""?the one who decides the direction the party's going in, but also the one who has to show it the way. The one who shoulders responsibility ""?and the one who's ultimately held responsible for everything. As Schulz is not a member of the federal parliament, he doesn't have to make allowances for sensitivities within the SPD's grand coalition with the CDU/CSU. He can go on the attack, make a name for himself. He has a political freedom that others do not. That gives him a huge advantage. All he has to do now is systematically use it. The path he's heading down seems to be the right one. The longing for a just world, for warmth and dependability, is greater than it's been for a very long time. If Martin Schulz doesn't make too many mistakes over the next six months, he really does stand a good chance of leading the field on September 24. You can leave a comment below this article. We look forward to hearing from you! Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZUsd", -3115,2017/3/19,http://www.dw.com/en/us-diplomat-ejected-from-new-zealand-after-mysterious-incident/a-38016563?maca=en-rss-en-all-1573-rdf,US diplomat ejected from New Zealand after mysterious incident,"A technical attache at the US embassy in New Zealand has been expelled amidst a police inquiry. Both governments have been mum on the alleged crime, but Colin White was seen with physical injuries.","A US diplomat has been ejected from New Zealand after the US embassy in Wellington refused to waive his immunity, according to media reports on Sunday. Although neither side has made an official comment on the row, it allegedly involves a physical altercation between embassy staffer Colin White and an unknown other party. According to Television New Zealand (TVNZ), which broke the story, White was seen with a broken nose and black eye following an incident in the city of Lower Hutt. He was wanted for questioning by police, but the embassy refused to release him from diplomatic immunity, so he could not be arrested. The police were forced to ask the Foreign Ministry to intervene, resulting in White's expulsion. A spokesman from the ministry told TVNZ that Wellington had sent a request to Washington ""to withdraw the staff member in question from New Zealand."" In turn, the US embassy told the news outlet: ""We take seriously any suggestion that our staff have fallen short of the high standards of conduct expected of US government personnel. Any allegations of wrongdoing are always fully investigated."" The embassy did not comment on rumors that White, a technical attache, had worked with New Zealand intelligence. Washington's mission to New Zealand is currently without a permanent ambassador since President Donald Trump dismissed most major US diplomats-appointed by his predecessor Barack Obama.-", -3116,2017/3/19,http://www.dw.com/en/no-evidence-trump-s-team-colluded-with-russia-us-intel-committee-chief/a-38016439?maca=en-rss-en-all-1573-rdf,'No evidence' Trump's team colluded with Russia - US intel. committee chief,A top US lawmaker says he's not found any proof that Trump's campaign plotted with Russia to win the 2016 US election. Moscow-backed hackers are alleged to have weakened Hillary Clinton's chances of winning.,"Devin Nunes, the Republican chairman of the US congressional committee on intelligence said on Sunday:-""Everything I have up to this morning - no evidence of collusion.""- Nunes' committee is investigating whether the Trump campaign and the Russian government worked together to boost the real-estate magnate's chances of winning the US presidency. US intelligence agencies have accused Moscow of hacking computer systems belonging to Hillary Clinton's Democrat party, among other methods. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2VYmz Moscow has flatly denied the allegations, while Trump has described claims linking his team with the hacking probe as a ""total witch hunt."" Hacking, leaks, wiretaps As well as investigating the extent of communications between the two parties in the lead-up to the November 8 election, the committee is also probing alleged leaks to US media about Trump aides-caught up in the scandal. Nunes told US broadcaster-Fox News that a leak relating to Trump's former national security adviser Michael Flynn was a crime, adding that panel was probing whether other names had been disclosed. Republican Devin Nunes is the chairman of the House Intelligence Committee Flynn, a former US army lieutenant general, resigned barely three weeks into the job, after misleading lawmakers about his talks with Russian diplomats before taking up the position. Lawmakers have denied the request, warning that they could subpoena the department for the evidence. President Donald Trump has made unsubstantiated allegations that his predecessor ordered targeted surveillance of him. (14.03.2017) US President Donald Trump has accused Democratic lawmakers of conducting a ""witch hunt"" against Attorney General Jeff Sessions. Sessions has recused himself from probes into ties between the Trump campaign and Russia. (02.03.2017) US media have reported that President Donald Trump has offered former Utah governor Jon Huntsman the top diplomatic post in Moscow. The two politicians sharply criticized one other in the past. (09.03.2017) Britain has received assurances-from the US-that allegations the GCHQ intelligence-agency helped former President Barack Obama eavesdrop on Donald-Trump will not be repeated. (17.03.2017) He is one of several of Trump's associates alleged to have held private talks with officials in Moscow. Repeated contacts ""The New York Times"" reported in February that US intelligence agents had intercepted calls showing repeated contacts between Trump's team and top Russian intelligence officials in the year preceding the US vote. Adding to the intrigue, Trump's Attorney General Jeff Sessions has removed himself from any Russia-related investigations after it was learned that he had met twice with the Russian ambassador in the months before Trump took office. Meanwhile, Trump has accused the Obama administration of tapping his phones during the election campaign, which several senior officials have denied. On Sunday, Nunes said he saw ""no indication"" that the-wiretapping had taken place. On Monday, FBI director James Comey is due to appear before Nunes' panel, facing lawmakers seeking answers about the two scandals, which have dominated US politics for several weeks. Analysts say the hearing is likely to be a very public showdown between the FBI and lawmakers, with the national security world certain to watch whether Comey drops a political bombshell on Washington. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Yge4 mm/tj (AFP, AP, Reuters)", -3117,2017/3/19,http://www.dw.com/en/us-congress-hearings-on-russia-could-descend-into-a-partisan-slugfest/a-37978772?maca=en-rss-en-all-1573-rdf,US Congress hearings on Russia could descend into a partisan slugfest,"When the congressional intelligence committees kick off hearings into possible Russian meddling in the US election, public attention is guaranteed. But those expecting an objective inquiry may be disappointed.","Even before the House Intelligence Committee starts its investigation into alleged Russian meddling in the US election, to be followed later by a Senate intelligence inquiry, the battle lines have been drawn.- Democrats have made clear that they would prefer an independent commission to look into the matter over Republican-controlled hearings in Congress. Republicans have rebuffed those calls, arguing that they will preside fairly and not shy away from asking tough questions even if that may hurt their own party or president. Outside observers, however, are not convinced. ""I see partisan trouble ahead,"" said Loch Johnson, who was a staff member in the historic Church Committee that investigated intelligence abuses by the CIA and others in the 1970s. Johnson, now an international relations professor at the University of Georgia, also worked on both the House and Senate Intelligence Committees.- Thin veneer of cooperation ""Right now there is a thin veneer of everyone getting together and taking this seriously,"" he noted, but cautioned that could slip away quickly and easily. Trump and his administration have been criticized for alleged and real ties to Russia Trying to conduct serious and objective congressional investigations is a difficult task in any case, Johnson explained, as committees and their-members have so many other duties that they often simply do not have the necessary time and resources to deal with complex issues that would normally require undivided attention. Complicating things further is the current political climate, with President Donald Trump and his team already under public scrutiny for their alleged and real connections with Russia as well as for the president's unproven claim that he was wiretapped by his predecessor Barack Obama. Conducting a serious investigation into possible Russian interference is therefore an even more challenging task for any Republican. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2YZhg Trump loyalist as committee chief But for someone like Devin Nunes, the Republican House Intelligence Committee chief who was part of Trump's transition team, it may prove to be an impossible task.---- ""The positions and approaches of Republicans, led by Trump loyalist Devin Nunes, will be dramatically different from the Democrats led by Adam Schiff,"" said Norman Ornstein, a congressional scholar at the American Enterprise Institute, via email.- Due to the partisan nature of the inquiry in the House and to a somewhat lesser extent in the Senate, Ornstein's expectations are low.-- ""It is unlikely that a public hearing will provide any bombshells or dramatic revelations,"" he said. ""But there should be real fireworks."" Nunes was part of Trump's transition team That is precisely why Loch Johnson would have preferred an external inquiry, like the 9/11 commission, to investigate potential Russian meddling in the US election.-- No deep dive ""I think both of those committees have had a history of contention and I think it is going to be hard for them to conduct a deep dive investigation into these topics, particularly after the two chairmen, Nunes of the House and Burr of the Senate committee, have very close ties to Trump,"" said Johnson. He worries that Democrats could sooner rather than later stop their participation in the hearings, arguing that they are biased, and that they could ultimately even launch their own investigation. Instead, Johnson said,-""I would hope that the committees would realize before too long that it is such a hot potato politically speaking for them, and that they realize they have to turn this over to an outside independent commission.""", -3118,2017/3/19,http://www.dw.com/en/afghan-soldier-killed-after-shooting-us-troops/a-38016497?maca=en-rss-en-all-1573-rdf,Afghan soldier killed after shooting US troops,"An Afghan soldier has been killed after opening fire at coalition troops stationed in Afghanistan's Helmand province and wounding three US service members. Such so-called ""insider attacks"" have decreased in recent years.","Several US contractors were killed when an apparent member of the Afghanistan security forces opened fire at Kabul's military airport. So-called ""green on blue"" attacks have served to foster mutual distrust. (29.01.2015) A US general killed and more than a dozen people wounded: these are the latest victims of ""insider attacks"" in Afghanistan which are forfeiting some of the goodwill between Afghans and NATO, an analyst tells DW. (06.08.2014) The latest ""insider attack"" in Afghanistan reflects the underlying tensions in the country as NATO troops prepare for a drawdown, experts say. DW takes a look at the different reasons behind such incidents. (06.08.2014) The shooter was a member of the Afghan special forces, military spokesman Mohammad Rasoul Zazai told the Reuters news agency on Sunday. The US army also confirmed that three Americans were wounded at-the Camp Shorab air base in the south of the country. ""Coalition security forces on the base killed the soldier to end the attack,"" a spokesman for US forces told Agence France-Presse (AFP). ""The US soldiers are receiving medical treatment at this time, and we will release more information when available."" Settling grudges Gunfights between coalition troops and local soldiers are not uncommon in Afghanistan.-Such incidents, also known as ""insider attacks,"" have claimed the lives of more than-150 coalition troops since 2008, according to the US Long War Journal website. While undercover Taliban militants commit some of the ""green on blue"" shootings, many cases are sparked by personal grudges or a perceived insult between the locals and the foreign soldiers. Such incidents have proven extremely toxic for the cooperation between the allied-troops. The shootings have dwindled after peaking in 2012, when over 60 foreign troops lost their lives. Sunday's incident in southern Helmand province marks the first insider attack since the beginning of the year. In May last year, attackers in Afghan military uniforms killed two Romanian soldiers in neighboring Kandahar province. -dj/tj-(AFP, AP, Reuters) -", -3119,2017/3/19,http://www.dw.com/en/frank-walter-steinmeier-assumes-office-as-german-president/a-38016277?maca=en-rss-en-all-1573-rdf,Frank-Walter Steinmeier assumes office as German president,The former top diplomat has taken over as Germany's 12th president. Steinmeier will serve as symbolic head of the nation during a particularly tense federal election campaign.,"Frank-Walter Steinmeier became Germany's new president on Sunday after a symbolic transfer of power from-his predecessor, Joachim Gauck. The former foreign minister has taken on-the largely ceremonial role during what promises to be Germany's most intense election campaign in decades. On Steinmeier's first day in office, he and his wife Elke B��denbender were greeted by-Gauck and his partner Daniela Schadt on the steps of the presidential residence, Berlin's Bellevue Palace. The leaders declined to give details about the ensuing half-hour conversation, though it was likely advice from Gauck's five-year term in office. The Social Democrat (SPD) politician was elected 12th president of the federal republic by parliament on February 12 after Gauck declined to take on a second term due to his advanced age of 77. A notable career After spending his early career as a legal adviser for the regional government of the German state of-Lower Saxony, Steinmeier has held a number of senior positions over the past two decades, including vice chancellor and twice that of Germany's top diplomat. Representing the more conservative wing of the country's center-left SPD, Steinmeier helped former Chancellor Gerhard Schr?der push through a controversial reform of the welfare state in the early 2000s. The legislation, known as Agenda 2010, helped boost economic recovery after some troubled years for Germany, but its impact on the poor was highly unpopular at the time and blamed by many in the SPD for the loss to Christian Democrat (CDU) Angela Merkel in the 2005 federal elections. Steinmeier's first day in office came as former EU parliament chief Martin Schulz was officially nominated by the SPD to run against Merkel in September. Schulz's candidacy has rejuvenated interest in the party, which-has been pushed to the background as coalition partners with the CDU since 2013.-With Schulz as leader, the SPD-is now polling almost on par with the conservatives for the first time in years. The 61-year-old Steinmeier will be officially sworn in as the symbolic face of the nation before both houses of parliament on Wednesday. Plans for his first weeks in office have not been made public yet, though a trip to Paris ahead of the French presidential elections at the end of April is likely on the agenda. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XS3J es/tj (AFP, dpa)", -3120,2017/3/19,http://www.dw.com/en/tanzania-to-send-500-doctors-to-kenya-following-end-to-strike/a-38015396?maca=en-rss-en-all-1573-rdf,Tanzania to send 500 doctors to Kenya following end to strike,Tanzania has announced a plan to send 500 doctors to Kenya after a doctors' strike paralyzed health services in the neighboring country for months.,"Tanzanian President John Magufuli announced the plan to send 500 doctors to neighboring Kenya after meeting with a Kenyan delegation in Dar es Salaam. ""The difficulties of Kenya are the difficulties of Tanzania. We agree to send you these 500 doctors to provide care to our brothers,"" Magufuli said in a statement expressing solidarity with the East African neighbor. Some 5,000 doctors who work at Kenya's public hospitals began a strike in December to demand higher pay and better conditions. A deal was struck this week and opened the way to negotiations to end the strike, but many doctors are still not back at work. ""Tanzania has accepted Kenya's request for 500 doctors to help the country deal with a shortage of doctors at its medical centers following a doctors' strike,"" the statement from Magufuli's office said. The government offered no further information as to when the doctors would be deployed or how long they would stay in Kenya. Tanzanian Health Minister Umy Mwalimu said that the doctors would be sent to Kenya ""as soon as possible."" A long strike now over Kenya's doctors went on strike in public hospitals last December over the failure by the government to raise pay and to demand an improvement of working conditions for doctors and patients. Tanzanian President John Magufuli The strike meant that many public hospitals, already stretched for cash and materials, had to turn away patients. The situation threatened to undermine Kenyan President Uhuru Kenyatta's bid for a second term in August. ""We have concluded a return-to-work formula between the government and ourselves bringing to an end the strike by doctors that has consumed the country for 100 days,"" said Ouma Oluga, the head of Kenya's main doctors union, the KMPDU. On Friday, there were only two doctors on duty at the Kenyatta National Hospital, the biggest public hospital in the country, a nurse told a Reuters reporter. ot/kl (AFP/Reuters)", -3121,2017/3/19,http://www.dw.com/en/german-business-jet-flipped-three-times-by-emirates-a380/a-38014996?maca=en-rss-en-all-1573-rdf,German business jet 'flipped three times by Emirates A380',"The 12-passenger jet was thrown into a freefall over the Arabian Sea due to so-called ""wake turbulence"" from an Airbus A380. The incident, in January, which only become public recently, left one passenger seriously hurt.","A German business jet was flipped at least three times and thrown into an uncontrolled descent when an Emirates jet flew too close, respected aviation news outlet ""Aviation Herald"" reported. An Emirates Airbus A380-800 from Dubai to Sydney reportedly flew just 1,000 feet (300 meters) above a Canadair Challenger 604 operated by Munich firm MHS Aviation. The incident took place near Oman. The resulting turbulence threw the small jet with nine passengers into a 10,000-foot (3048-meter) freefall, shutting down both engines, the website-reported. Dozens of tourists were evacuated by helicopter Thursday from shelters at the top of a volcano on Spain's Tenerife island where they spent the night after being plucked from two cable cars that stopped mid-air. (17.03.2017) The world's longest commercial flight, from Qatar to New Zealand, has touched down in Auckland for the first time. The Qatar Airways Boeing 777-200 crossed 14,535 kilometers and 10 time zones on its epic journey. (06.02.2017) The families of passengers and crew onboard missing Malaysia Airlines Flight 370 have launched a campaign to raise money for a search for the plane. A years-long operation by three governments has failed to locate it. (04.03.2017) The crew then managed to recover control and made an emergency landing at Muscat airport, with one seriously injured passenger. The plane was written off due to the damage and several passengers were hospitalized, the report said. Probe underway Details of the January incident will be covered in an upcoming report from the German Federal Bureau of Aircraft Accident Investigation, but the ""Aviation Herald"" was able to publish details of the incident earlier. MHS said it was unable to comment due to an ongoing investigation. The company runs a fleet of 24 aircraft and is the largest executive charter operator in Germany, according to its website. The ""Aviation Herald"" saw alerts to air traffic controllers to be particularly careful of A380s crossing above other flights. So-called ""wake turbulence"" from A380s has caused a number of incidents in aviation recently, including when an Air France A320-200 was violently jolted by an Emirates A380 near Frankfurt airport. German airports logged a record number of 111.9 million passengers last year. The figure marked a 3.4-percent increase from a year earlier, Germany's statistics office reported. Over 88 million people using German airports in 2016 traveled to foreign destinations. That's a 3.6-percent surge year on year. The remaining close to 24 million passengers booked domestic flights (+2.8 percent). Destinations in Europe were most popular, the figures revealed. A record number of 13.7 million people flew to Spain last year, with Greece also posting an above-average increase in arrivals. By contrast, the number of people using German airports and traveling to Turkey last year dropped by 16.6 percent. That's no big surprise, given the recent political upheavals and terror attacks in the country. Overall, the number of long-haul passengers starting from Germany edged up by 0.5 percent in 2016, with a bigger demand for flights to Asia and the Americas. But fewer people decided to travel to Africa (Egypt down 33.1 percent, Tunisia down 27.9 percent). Author: Hardy Graupner", -3122,2017/3/19,http://www.aljazeera.com/news/2017/03/israeli-coalition-crisis-raises-threat-elections-170319193406754.html,Israeli coalition crisis raises threat of snap polls,Israeli Prime Minister raises possibility of snap elections following dispute over a new national broadcasting service.,"Israel's prime minister backed out of an agreement to establish a new broadcasting authority on Sunday, creating a coalition crisis with one of his key partners that could lead to early elections. The conflict centres on the fate of the struggling state-run Israel Broadcasting Authority. Netanyahu initially ordered it shut down and replaced with a new corporation, only to reverse course once the emerging personnel of the new body did not seem as favourable as his administration had hoped. Benjamin Netanyahu insisted that his coalition partners are required to side with his ruling Likud party regarding all media regulation matters.- But Finance Minister Moshe Kahlon, head of the centrist Kulanu party, said the corporation would start broadcasting next month as planned. The crisis has sparked speculation that the coalition could fall apart, and new elections called. Before departing on a weeklong visit to China, Netanyahu said Kahlon's insistence was ""unacceptable"" and there was no need for the new corporation to be established when the current authority could be reformed. Netanyahu has long tried to curb his many detractors in the media, which he considers biased against him. The prime minister recently confirmed for the first time that he called an early election in 2015 to block legislation aimed at curtailing the distribution of Israel Hayom, a free daily financed by billionaire backer Sheldon Adelson that largely serves as his mouthpiece. This time, though, speculation is rife that Netanyahu may be trying to use a potential election to deflect the numerous police investigations into his alleged corruption scandals. Several Netanyahu associates have threatened that he will call an election if Kahlon does not back down from his demands. Others, however, say it's a minor scuffle that should not unravel the government. OPINION: What did the UN apartheid report expose in reality? Several ministers and Likud MPs are known to be against a snap election, and it is unlikely that rightwing and ultra-Orthodox parties would want to join a more centrist government. Transport and Intelligence Minister Yisrael Katz said he opposed fresh elections and believed a compromise could be found. ""I think that only two years after the elections, it's not the time to go to new elections,"" Katz, a senior member of Netanyahu's Likud who aspires to one day replace the prime minister, told AFP news agency. ""It's against the interests of the Israelis, of the country, and also against the interests of the Likud... We'll not have a better coalition after the elections."" Netanyahu's current coalition, seen as the most right-wing in Israel's history, includes 67 out of parliament's 120 members. Kahlon's Kulanu has 10 seats, and the current coalition would not survive without him. The government is dominated by hardliners who support an increase in settlement construction across the occupied Palestinian territories, including East Jerusalem.- But even if the coalition collapses it does not necessarily mean there will be new elections, which are currently slated for late 2019. The country's ceremonial president could appoint someone else to try and build a new coalition, a scenario opposition chief Isaac Herzog says he has already discussed with Kahlon. Source:-News agencies", -3123,2017/3/19,http://www.aljazeera.com/indepth/opinion/2017/03/apartheid-report-expose-reality-170319141738753.html,,,"The most damning aspect of the new report by the UN's Economic and Social Commission for Western Asia (ESCWA), which accuses Israel of being an apartheid state, is not the unearthing of allegedly long-discredited equations of Zionism with racism and apartheid. Rather, it's that the authors have used the scalpel of international law and the seemingly moribund International Covenant on the Suppression and Punishment of the Crime of Apartheid to create a new matrix of analysis of the occupation, its generative dynamics, and likely future path that will prove extremely hard for even Israel's most ardent defenders to refute in the coming years (PDF). The report, Israeli Practices Towards the Palestinian People and the Question of Apartheid, immediately gained notoriety when the head of ESCWA, Rima Khalaf, was forced to resign after the UN Secretary General Antonio Guterres denounced the report and asked for it to be removed from the Commission's website. Khalaf, a Jordanian national with extensive government and international experience who was a primary force behind the Arab Human Development Report series which has been highly critical of Arab regimes and the broader regional systems of governance,-had to know that heralding the report as the first ever UN one to explicitly describe Israel as an apartheid and ""racial state"" would bring her downfall at ESCWA. And indeed, not only was the report disavowed by UN Secretary-General Antonio Guterres and, it seems, removed on his orders from the Commission's website, Khalaf did resign shortly thereafter. This begs the question of what she hoped to accomplish by framing the report thus. Although it seems to be removed from the ESCWA's website (only the executive summary is accessible), the full report can be downloaded here. As the journalist Ben White explains, the new report is a detailed analysis of Israeli legislation,-policies and practices-that enable Israel to ""operate an apartheid regime"" that ""dominates the Palestinian people as a whole"" and as such is a ""crime against humanity under customary international law and the Rome Statute of the International Criminal Court"". The report describes a panoply of practices, techniques and legal and administrative mechanisms by which Israel maintains a system that segregates Palestinians from Jews on both sides of the Green Line and outside Israel/Palestine based on membership in specific ethno-religious groups. READ MORE: UN report - Israel has established an 'apartheid regime' What makes the report even more controversial is that unlike most accusations of apartheid-like behaviour, which are limited to the Occupied Territories, it accuses Israel of engaging in apartheid even against Palestinian citizens of the state and Palestinians outside the country. According to Virginia Tilley, professor at the University of Illinois - one of the report's principal authors - her team was mandated or tasked with understanding ""if there was one regime that was bringing all these policies [through Israel/Palestine and abroad] into a coherent whole"". While accusations of apartheid still shock the American ear, Israelis from Holocaust survivors to prime ministers have long warned that the country was or risked becoming an apartheid state. South Africans, too, have debated the issue; while some prominent figures such as Judge Richard Goldstone, who chaired the controversial report into the 2008-09 Gaza War,-declared that ""in Israel, there is no apartheid"", other scholars and activists, from the-Human Sciences and Research Council and Desmond Tutu to prominent Jewish intellectuals such as Lisa Ohayon and David Theo Goldberg - one of the world's pre-eminent theorists of race - have documented how ""the legal structures of apartheid and Israel map on to each other in very disturbing ways"" and have little hesitation labelling Israel's ""separation barrier"" an ""apartheid wall"" in purpose and function. I would invite readers to study the voluminous final report of the South African Truth and Reconciliation Commission and compare it to the regular reports on the occupation, not merely by international human rights organisations but by the US State Department and Israeli Jewish organisations' reports as well, and ask them to decide for themselves how closely Israeli policies resemble those of the South African apartheid state. Yet, however important historically and morally, comparisons with South Africa were, for the report's authors, beside the point. The only ""benchmark"" that matters today is whether Israel's actions fall within the parameters of the Crime of Apartheid as defined by international covenant and the International Criminal Court (PDF). And the report argues ""with clarity and conviction that Israel is guilty of the international crimes of apartheid as a result of the manner in which it exerts control over the Palestinian people"". The report provides a strong case for the argument that the goals and conduct of the occupation are illegal, and thus that states, international organisations, and civil society are obligated to impose sanctions and other punitive measures to compel Israel to bring its actions into compliance with international law. - More specifically, Tilley explains that ""the main finding was that what looks like different policies are in fact part of one policy. The core purpose is to preserve Israel as a Jewish state, and that requires an overwhelming Jewish majority to ensure that Palestinians could never vote in any way that would alter the laws privileging the Jewish people over other people in the state. And we found that the ways different segments of policy work together ""?all coordinate that central core purpose."" Crucially, the report deploys a striking new term, the ""strategic [elsewhere: geographic and juridical] fragmentation of the Palestinian people,"" to describe the main method through which Israel imposes an apartheid regime, with Palestinians divided into four groups who live in four ""domains"": Palestinian citizens of Israel against whom 'civil law' is deployed to restrict their freedom; Palestinians in East Jerusalem governed by ever more exclusionary 'permanent residency laws'; Palestinians in the West Bank and Gaza who live under belligerent occupation; and Palestinians living as refugees or in exile who are precluded by law and policy from returning to their homeland. Each group is oppressed through ""distinct laws, policies and practices"" that together constitute the larger regime of apartheid in Israel/Palestine. Not surprisingly, Israeli officials were quick to question ESCWA's credibility, given its membership of 18 Arab countries excluding Israel despite its location in western Asia (unlike Tunisia, for example) and the fact that the human rights records of most members are little better than Israel's. But hypocrisy is literally written into the fabric of the UN, and is in fact on display every time the US vetoes a Security Council resolution condemning Israel's prosecution of its interminable occupation, or Russia vetoes a resolution that might force Bashar al-Assad to stop murdering his people by the thousands. This reality doesn't change the fact that with the report now part of the UN record, the chances increase that the General Assembly or other bodies will request a ruling from the ICC or International Court of Justice (ICJ) on the legality of the occupation. The report provides a strong case for the argument that the goals and conduct of the occupation are illegal, and thus that states, international organisations, and civil society are obligated to impose sanctions and other punitive measures to compel Israel to bring its actions into compliance with international law. READ MORE: Israel's settlement law - Consolidating apartheid Most strikingly, however, the report concludes by calling explicitly for ""broaden[ing] support for boycott, divestment and sanctions initiatives among civil society actors"". In bringing BDS directly into the legal conversation, the authors are opening the way for the ICC or ICJ to affirm the legitimacy of such tactics under international law. As Israel moves inexorably towards annexing the West Bank, and with it the confrontation of apartheid in its barest form, the questions raised by the report will become impossible to avoid. In that regard, Rima Khalaf and the report's authors have done Israelis, Palestinians and the world community a favour by calling for a clear determination by the highest international tribunals as to the nature of Israel's rule over some five million Palestinians in the occupied territories and millions more living in the shadows of exile, and its responsibilities going forward. With such clarity at hand, a pathway towards a just and peaceful future for both peoples might finally come into view. Mark LeVine is a professor of Middle Eastern History at University of California, Irvine, and a Distinguished Visiting Professor at Lund University. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3124,2017/3/19,http://www.aljazeera.com/programmes/insidestory/2017/03/bad-humanitarian-crisis-mosul-170319175524711.html,How bad is the humanitarian crisis in Mosul?,"750,000 Iraqis are trapped in the western part of the city as Iraqi forces fight house to house to force ISIL out.","A humanitarian crisis on the verge of stretching aid agencies to breaking point - that's how the UN coordinator in Iraq describes the situation in western Mosul. Around 150,000 Iraqis have been forced from their homes during the last month of fighting, with more expected. Many have found shelter in camps, which aid workers say are overwhelmed. Iraqi forces are battling ISIL in western areas of Mosul. ISIL fighters are resisting with car bombs, snipers and drones laden with grenades to slow the Iraqi army advance. Western Mosul, which includes the Old City, is densely populated with civilians who are caught in the cross-fire. Will Mosul's liberation end the plight of the displaced? Presenter: Hashem Ahelbarra Guests: Mouayad Al Windawi - Iraqi Center for Strategic Studies. Melany Markham - Norwegian Refugee Council. Renad Mansour - Chatham House Source:-Al Jazeera News", -3125,2017/3/19,http://www.aljazeera.com/news/2017/03/palestinians-honour-rima-khalaf-apartheid-report-170319164356053.html,Palestinians honour Rima Khalaf for apartheid report,Palestinian president hails UN official for 'courage' in publishing report accusing Israel of building apartheid state.,"Palestinian President Mahmoud Abbas has awarded the highest Palestinian honour to Rima Khalaf, a senior UN official who resigned on Friday amid pressure to withdraw a report that accused Israel of creating an apartheid state. Local media reported the Palestinian president had spoken to Khalaf by phone and given her Palestine's Medal of the Highest Honor in recognition of her ""courage and support"" for Palestinians. A statement said Abbas ""stressed to Dr. Khalaf that our people appreciate her humanitarian and national position"". Khalaf stepped down from her posts as the UN under-secretary general and executive secretary for the Economic and Social Commission for Western Asia (ESCWA) after the report was removed from the ESCWA website. The report-accused-Israel of imposing an apartheid regime that oppresses the Palestinian people. It also urged governments to support the boycott, divestment and sanctions (BDS) movement. READ MORE: Israel's settlement law: Consolidating apartheid Hanan Ashrawi, an executive member of the umbrella Palestine Liberation Organization (PLO), said the report was a ""step in the right direction"" and should be reinstated. ""Instead of succumbing to political blackmail or allowing itself to be censored or intimidated by external parties, the UN should condemn the acts described in the report and hold Israel responsible,"" Ashrawi said in a statement on Saturday. Upon resigning, Khalaf said:-""It was expected that Israel and its allies will exercise pressure on the UN secretary-general to distance himself from the report and that they will ask him to withdraw it."" A UN spokesman said the issue with Khalaf was not the content of the report, but a result of her failure to follow the necessary procedure before the publication. ""The secretary-general cannot accept that an under secretary-general or any other senior UN official that reports to him would authorise the publication under the UN name, under the UN logo, without consulting the competent departments and even himself,"" Stephane Dujarric, a spokesman for UN chief Antonio Guterres, told reporters on Friday. Al Jazeera's Imtiaz Tyab said, however, it was ""highly unlikely"" that UN leadership was unaware of the report's existence or its content prior to its publication. ""The curious thing here is that Al Jazeera and many other news organisations had been aware of this report for several days now,"" he said on Friday.. Israel was highly critical of the report, likening it to Nazi-era propaganda. The US also demanded the report be withdrawn. Ofir Gendelman, Israeli Prime Minister Benjamin Netanyahu's spokesman, said on Twitter that Abbas was waging ""A diplomatic war on Israel""?by announcing the award, describing the report as ""libelous and false""? Source:-Al Jazeera and news agencies", -3126,2017/3/19,http://www.aljazeera.com/news/2017/03/thousands-rally-beirut-proposed-tax-hikes-170319134859452.html,Thousands rally in Beirut against proposed tax hikes,The government says the increases are needed to avoid a $4bn budget deficit.,"Thousands rallied in Lebanon's capital on Sunday against proposed tax hikes that the government has said are needed to avoid a $4bn budget deficit this year.- Protesters chanted ""we will not pay"" and blamed corrupt politicians as they gathered in central Beirut's Riad el-Solh square. Addressing the crowd, Prime Minister Saad al-Hariri vowed to fight corruption.- ""The road will be long...and we will be by your side and will fight corruption,"" Hariri said. Protesters responded by shouting ""thief"" and hurling empty water bottles at the prime minister. - On Twitter, Hariri later urged the organisers of the protests to form a committee and ""raise their demands and discuss them positively.""- Police barricaded the entrance to the government headquarters and parliament building during Sunday's demonstration, which followed three days of smaller protests in Beirut. Authorities are seeking to raise taxes to help pay for a deal on public sector pay increases, which is part of a wider effort led by Hariri to approve the country's first state budget in 12 years. Lebanon faced years of political deadlock. A new government was formed in December of last year after more than two years without a president.- Lawmakers approved several tax hikes last week, the most prominent being a one percentage point increase on the sales tax. Reporting from Beirut, Al Jazeera's Imtiaz Tyab-said there was a lot of anger and frustration among protesters.- ""When you consider the fact that many people in Lebanon really don't have high wages and you consider the fact many have some of the highest rates of personal debt as well, any kind of increase is going to be felt in the pocket book,"" he said. - WATCH: Will Lebanon tap its oil and gas wealth? In the coming weeks, parliament will vote on a number of other increases, all of which must be signed off by the president before taking effect. In recent days, various civil society groups and some leading political parties have called for people to take to the streets in protest. The Christian Kataeb party and the Progressive Socialist Party, led by Druze politician Walid Jumblatt, have staunchly opposed the new taxes. The Iranian-backed Shia Hezbollah movement has also voiced reservations about the increases. Sunni leader Hariri became premier in October in a power-sharing deal that saw Michel Aoun, a staunch Hezbollah ally, elected president. Hariri, whose Saudi-backed coalition opposed Hezbollah for years, formed a unity cabinet that includes nearly all of Lebanon's main parties. Aoun's election ended a 29-month presidential vacuum in a country that had been crippled by political gridlock for years. ""We had hopes for this new government, but unfortunately ... these politicians are still exploiting resources for their profit,"" said protester Mahmoud Fakih. ""This is to refuse the taxes that are being imposed on poor people."" Signs and slogans accused parliament of theft and people chanted for lawmakers to step down. ""Take your hands out of my pockets,"" one placard read. Lebanon's parliament has extended its own mandate twice since 2013, a move that critics including the European Union have condemned as unconstitutional. Current lawmakers were elected in 2009 for what was meant to be four-year terms. Anger at Lebanon's government has fueled repeated protests in central Beirut over the last two years, particularly in the summer of 2015, when politicians failed to agree a solution to a trash disposal crisis. Piles of garbage festered in the streets, prompting massive protests that were unprecedented for having been mobilised independently of the big sectarian parties that dominate Lebanese politics. Source:-Al Jazeera and news agencies", -3127,2017/3/19,http://www.aljazeera.com/programmes/insidestory/2017/03/hungary-crackdown-refugees-criticised-170317210024026.html,Why is Hungary's crackdown on refugees criticised?,"A new Hungarian law allows the detention of all asylum seekers, as it builds new fences along its border with Syria.","A new law has been signed in Hungary to allow the detention of all asylum seekers - including 14 year old children and above. New fences along the border with Serbia are also planned, to try and prevent a new wave of refugees. And a new volunteer force called 'Border Hunters' are being trained to patrol borders. Amnesty International says the new measures are a violation of international law. Are Hungary's tactics out of line? And is the EU to blame for not providing support? Presenter: Dareen Abughaida Guests: Vincent Cochetel - UNHCR Elizabeth Collett - Migration Policy Institute Europe Raphael Bossong - German Institute for International and Security Affairs Source:-Al Jazeera News", -3128,2017/3/19,http://www.aljazeera.com/news/2017/03/american-soldiers-wounded-afghan-insider-attack-170319152446980.html,American soldiers wounded in Afghan 'insider attack',Afghan special forces soldier shot dead inside Camp Shorab base in Helmand Province after allegedly carrying out attack. 'Violence across the country',"Three American troops have been wounded after an Afghan soldier opened fire on them at a base in the southern province of Helmand, the NATO-led Resolute Support mission said, as separate attacks and clashes across the country left dozens dead. - A spokesman for the Afghan military in the south of the country said the Afghan special forces soldier was shot dead after firing at the Americans at Camp Shorab air base on Sunday. ""The guard lost his life in exchange of fire,"" Mohammad Rasoul Zazai told Reuters. Afghanistan: The Fall Of Helmand The soldiers are receiving medical care, the NATO-led training and assistance mission said on Twitter. So-called ""green-on-blue"" insider attacks by Afghan soldiers on international service members were a major problem several years ago, but now occur less frequently after security measures were improved and the number of foreign troops in the country fell sharply. Most foreign combat troops withdrew from Afghanistan at the end of 2014, 13 years after they ousted the Taliban from power, but around 13,000 NATO-led soldiers remain to help advise and train Afghan forces fighting a revived Taliban insurgency. Last May two Romanian soldiers were killed and a third wounded after two members of a local Afghan police unit they were training shot them. Camp Shorab in Helmand, previously known as Camp Bastion, is a major former US and British base now run by the Afghan army. Helmand has been one of the most fiercely contested regions of the country, with nearly 1,000 coalition troops killed there since the US-led military intervention in 2001. The US said in January that about 300 Marines would be sent to Helmand to assist Afghan forces in-intelligence and logistical matters in their-battles against local armed groups . Elsewhere in Afghanistan, Taliban fighters attacked a district headquarters in the Kandahar province using a suicide car bomb, said Samim Khpolwak, a spokesman for the governor. A security official, who spoke on condition of anonymity because he was not authorised to release information, said six police were killed and five others were wounded in the assault. In the southern Zabul province, an army operation killed 13 Taliban and wounded 11 others, said Gen. Sadiqullah Saberi. He said two Afghan soldiers were killed and three others were wounded by a roadside bomb during the operation. Two Taliban commanders were killed in an apparent US drone strike in the Barmal district of the eastern Paktika province, said Mohammad Rahman Ayaz, spokesman for the provincial governor. Another 10 fighters were killed in a separate drone strike in the Dand-e Patan district of neighbouring Paktia province, said Gov. Zelmai Wessa. Source:-News agencies", -3129,2017/3/19,http://www.aljazeera.com/news/2017/03/egypt-renews-detention-al-jazeera-mahmoud-hussein-170319135531817.html,Egypt renews detention of Al Jazeera's Mahmoud Hussein,"Detention of Al Jazeera journalist renewed for fifth time, as recent video footage shows him visibly exhausted. International law broken","Egyptian authorities have renewed the detention of Al Jazeera journalist Mahmoud Hussein for the fifth time, announcing on Saturday that he will be held for another 45 days.- Hussein, an-Egyptian who lives in Qatar, was stopped, questioned and detained by the Egyptian authorities on December 20 after travelling to Cairo for a holiday. Recent video footage of Hussein outside an Egyptian courthouse shows that he has lost weight and looks exhausted due to harsh conditions in detention.- Hussein's daughter Zahra said earlier this month that the harsh detention conditions have left her father suffering from shortness of breath, and severe psychological and physical stress.- Human rights and media organisations have denounced his detention. Al Jazeera has demanded that Egypt unconditionally release Hussein and condemned the continued renewal of his detention, which-has been extended five times so far, with the last renewal order issued on February 5. READ MORE: Groups call for release of Al Jazeera's Mahmoud Hussein On January 4 and 19, when his detention was due to expire,-authorities extended his arrest-for a period of 15 days ""pending a further investigation"". On February 2, authorities-extended-his detention by four days as they referred his case to the Giza Criminal Court. Five days after his initial arrest, Egypt's interior ministry accused him of ""incitement against state institutions and broadcasting false news with the aim of spreading chaos"". Al Jazeera has rejected all of the allegations against him and condemned those who forced him into false ""confessions"" made on video. The network-urges Egypt to release him immediately. It also-said it holds the Egyptian authorities responsible for his safety and wellbeing. Al Jazeera also denounced a smear campaign against Hussein, which is being carried through local media outlets - a practice that violates international law. The United Nations has called on Egypt to comply with its commitment to protect freedom of expression. In January, Stephane Dujarric, spokesman for the UN secretary-general, said: ""We appeal for this case to be resolved in accordance with Egypt's own international obligations to protect freedom of expression and freedom of opinion."" Over the past few years, Egyptian authorities have arrested several Al Jazeera employees, raising concerns over media freedom in the country. In May, a Cairo court sentenced a former editor-in-chief of Al Jazeera Arabic, Ibrahim Helal, to death, charging him in absentia with endangering national security. Al Jazeera's Baher Mohamed, Mohamed Fahmy and Peter Greste - along with seven colleagues outside the country - were accused of spreading ""false news"" during their coverage of the aftermath of the military overthrow of then-president Mohamed Morsi in 2013, the year they were taken into custody. Mohamed and Fahmy spent 437 days in jail before being released. Greste spent more than a year in prison. The judge who sentenced the journalists said they were brought together ""by the devil"" to destabilise the country. Hussein joined Al Jazeera in Egypt in 2011. He moved to the network's headquarters in Qatar in 2013. Source:-Al Jazeera News", -3130,2017/3/19,http://www.aljazeera.com/news/2017/03/duterte-international-criminal-court-stop-170319134647429.html,Duterte: International Criminal Court 'cannot stop me',"Philippine president vows anti-drug war campaign will continue and will be 'brutal' as death toll passes 8,000 mark. Criminals can 'go first'","Philippine President Rodrigo Duterte has said he would not be intimidated by the prospect of the International Criminal Court (ICC) putting him on trial over his bloody war on drugs, promising that his campaign would continue and would be ""brutal"". ""I will not be intimidated and I shall not be stopped just by what? International Criminal Court? Impeachment? If that is part of my destiny, it is my destiny to go,"" Duterte told reporters on Sunday, shortly before leaving for Myanmar. ""The drive against corruption, criminality and drugs will resume and it will continue and it will be brutal,"" he said.- Retired officer links Duterte to almost 200 killings ""I will not be, for a moment, be out of focus on that. I rose on what I promised and I will fall on that."" More than 8,000 people have died since Duterte took office on June 30 last year, and began his anti-drugs campaign. A third of the fatalities were killed in raids and sting operations by police who say they acted in self-defence, while the rest were killed by unknown gunmen. - Rights groups said many of the deaths were assassinations of drugs users with police complicity, allegations that authorities have denied.- But a self-confessed assassin who testified to being in a ""death squad"" under Duterte, when he was mayor of Davao City, is expected to file a case at the ICC this month or in April, accusing the president of crimes against humanity, his lawyer said recently. Duterte said he would never ""condone the killing of a criminal person arrested with outstretched arms, begging for his life, or what is popularly known as extrajudicial killings."" ""Follow the law and we are alright. Drop shabu and nobody will die tomorrow,"" Duterte said. Shabu is the street name for the highly addictive crystal methamphetamine that the government blames for most of the serious crimes in the Philippines. But Duterte warned: ""If you place the guys lives in jeopardy ... my order is to shoot you."" He said he would rather see ""thousands or millions of criminals go first"", than see security forces killed in the anti-narcotics war. Two men, including the one who is expected to file the ICC case, have testified before the Philippine Senate saying they were part of an alleged ""death squad"" in Davao that killed at Duterte's behest. But Senate members found no proof of extra-judicial killings and death squads. The ""death squad"" and allegations of drugs-related extrajudicial killings were also among the reasons for an impeachment complaint filed by an opposition lawmaker in Congress against Duterte on Thursday. Duterte said he was not ruling out the possibility that ""scalawags in government who are trying to silence guys dealing with them"" were behind these extrajudicial executions. Source:-Reuters news agency", -3131,2017/3/19,http://www.aljazeera.com/indepth/interactive/2016/08/iraq-war-map-controls-160830115440480.html,Iraq war map: Who controls what,"As fighting in parts of Iraq intensifies, a visual breakdown of the control of territory after years of war.",, -3132,2017/3/19,http://www.rte.ie/news/2017/0319/860914-halawa/,Boylan 'very fearful' for Ibrahim Halawa's health,,"Irish citizen Ibrahim Halawa, who has been detained without trial in Egypt for more than three-and-a-half years, is being kept alive by glucose injections according to Sinn F��in MEP Lynn Boylan. Speaking on RT?'s The Week In Politics, Ms Boylan said Mr Halawa's ""spirit is finally broken""-and his ""condition has deteriorated rapidly""-after embarking on another hunger strike. The MEP for Dublin appealed for ""very direct intervention""-from the Irish Government, saying campaigners were ""very fearful""-that he may not survive until the next court date. Mr Halawa, who is currently in a wheelchair, has had his trial postponed 19 times so far. Ms Boylan, who has previously visited Mr Halawa in jail, said she was 'very very concerned' about his health.-", -3133,2017/3/19,http://www.rte.ie/sport/racing/2017/0319/860947-gold-cup-hero-sizing-john-makes-triumphant-moone-return/,Gold Cup hero Sizing John makes triumphant Moone return,,"Cheltenham Gold Cup winner Sizing John received a hero's welcome when he was paraded on Sunday evening in the small Co Kildare village of Moone. The seven-year-old, owned by Alan and Ann Potts, produced a brilliant display in the hands of Robbie Power to give trainer Jessica Harrington a first Gold Cup victory with her first runner in the big race. Harrington's daughter, Kate, said: ""It was amazing and I don't think it will sink in until next week. ""I had to get up on Saturday morning and watch it again on TV to really believe that it happened."" Sizing John's triumph was the highlight of a fantastic Cheltenham treble for the Harrington team after Supasundae won the Coral Cup and Rock The World landed the Festival-ending Grand Annual. Supasundae and Rock The World also joined Sizing John in the homecoming parade in Moone, as was Power, who rode all three horses to Cheltenham glory. The three horses were paraded in front of a sizeable crowd of well-wishers, while Moone was decked in flags of emerald green and yellow - the colours of Sizing John's racing silks. ""For Rock The World to win the last as well, it's what dreams are made of,"" Kate Harrington added. ""Supasundae was special as well on Wednesday. ""It was an amazing week, full stop. All credit to Mum and all the team at home to have all the horses there in such fine form. ""The horses came back Friday night and they are all in good form. There is not a bother on them and we couldn't be happier."" View Comments", -3134,2017/3/19,http://www.rte.ie/news/2017/0319/860917-cystic-fibrosis/,Dept expects agreement on CF drugs in 'matter of weeks',,"The Department of Health has said it expects negotiations with a drug company on treatments for Cystic Fibrosis will conclude ""in a matter of weeks"". Talks on what price the Government is prepared to pay for Orkambi, Kalydeco and other treatments have been ongoing for months and many CF patients and their families-have expressed frustration that no agreement has been reached. In a statement, the Department said Minister for Health Simon Harris ""is acutely aware that the last number of months have been a stressful and worrying time for CF patients and their families."" The statement added ""the Government's priority is to achieve the best outcome for Irish patients and the health system overall."" It follows a call by Cystic Fibrosis Ireland for both sides in the talks to show generosity and to reach an agreement without further delay.", -3135,2017/3/19,http://www.rte.ie/news/politics/2017/0319/860924-schulz-election/,Martin Schulz to challenge Angela Merkel in German election,,"Germany's Social Democrats (SPD) have formally endorsed former European Parliament President Martin Schulz as their leader and challenger to Chancellor Angela Merkel in what is set to be a tightly contested national election in September. The SPD has undergone a revival since nominating Mr Schulz in late January, gaining around ten points in opinion polls and signing up thousands of new members as the 61-year-old focuses his campaign on social justice. ""The SPD is back! We're back!"" Mr Schulz told around 600 delegates at a party meeting in Berlin shortly before he was chosen as party leader in a vote in which all 605 of the valid votes gave him a 'yes'. While the centre-left SPD is slightly behind Ms Merkel's conservatives in the latest Emnid poll, it showed Mr Schulz should be able to take power with a left-leaning alliance involving the far-left Linke and Greens in what would be the first time Germany has ever had a 'red-red-green' coalition at the national level. ""We want the SPD to be the strongest political force after the federal election so it gets a mandate to make this country better and fairer and to give the people of this country the respect they deserve and I want, dear comrades, to be the next German chancellor,"" Mr Schulz said. He reiterated his calls for free education, more investment such as in nursing care and schools as well as qualification programmes for the unemployed in a speech that earned him a standing ovation. It is necessary to close the ""intolerable pay gap"" so men and women in both eastern and western Germany get the same amount of pay for doing the same work, he said. He also said he wanted to introduce special working hours - financially supported by the government - for those with families, but he did not give further details. The former mayor of Wuerselen, a small town near the Dutch border, has made much of his humble beginnings and recounted how he was born in western Germany as the fifth child of a policeman and housewife, who he described as ""simple and very decent people"". He said he was ""lazy"" at school and thought only of football, ultimately dropping out of school and losing his way before getting a second chance. Mr Schulz later trained as a bookseller and opened a bookshop before becoming a member of the European Parliament in the mid-1990s. His nomination for SPD leader followed a decision by Germany's Foreign Minister Sigmar Gabriel to stand aside as SPD head because he thought Mr Schulz had a better chance of winning the election", -3136,2017/3/19,http://www.rte.ie/news/world/2017/0319/860931-turkey-death-penalty/,Juncker warns Turkey death penalty is 'red line' issue,,"European Commission chief Jean-Claude Juncker has warned Turkey that any return of the death penalty would be a ""red line"" in the country's stalled EU membership bid. ""If the death penalty is reintroduced in Turkey, that would lead to the end of negotiations,"" he told Sunday's edition of Germany's Bild newspaper, calling it a ""red line"". Turkish President Recep Tayyip Erdogan said yesterday he expected parliament to approve the restoration of capital punishment after next month's referendum on controversial consitutional changes to expand his powers. Mr Juncker nevertheless said he was opposed to a complete halt to all membership negotiations with Turkey. ""It makes no sense to try to calm (Erdogan's) nerves by stopping negotiations that are not even taking place."" German Foreign Minister Sigmar Gabriel went even further, saying in an interview with Der Spiegel: ""We are farther away than ever from Turkey's accession to the EU."" Turkey abolished the death penalty in 2004 and the European Union has repeatedly made clear that any move to restore it would scupper its membership bid. However Turkish ministers say they need to respond to popular demand for the return of capital punishment to deal with the ringleaders of an attempted coup in July. ""What Hans and George say is not important for me,"" Mr Erdogan said. What the people say, what the law says, that's what is important for us."" Turkey and Europe are locked in a diplomatic crisis after Germany and the Netherlands blocked Turkish ministers from campaigning for a 'yes' vote in the 16 April referendum, which opponents fear will create one-man rule. In response, Turkish Interior Minister Suleyman Soylu threatened to ""blow the mind"" of Europe by sending 15,000 refugees a month to EU territory, which would endanger a year-old migrant deal between Turkey and the EU to reduce the flow of migrants. ""Turkey will not back out of the accord, even if Erdogan has told me several times he wanted to,"" Mr Juncker said. Turkey has no interest in ceding ""control"" of its borders to ""human traffickers and criminals"".", -3137,2017/3/19,http://www.rte.ie/news/politics/2017/0319/860904-fine-gael-leadership/,Heydon expects Taoiseach to set out retirement plans shortly,,"The Chairman of the Fine Gael parliamentary party-has said he does not think anything has changed in regard-to Enda Kenny's retirement plans. Speaking on RT?'s This Week programme, Martin-Heydon said he expected there would be a discussion around the leadership within the coming weeks and that the appropriate forum for that was within the Fine Gael parliamentary party. Taoiseach Enda Kenny in February told a meeting of the party that he would-deal with his future effectively and conclusively after St Patrick's Day. However, while in the US for the festivities he indicated he would-not announce any retirement plans until political uncertainty in Northern Ireland is addressed and the EU's negotiating stance on Brexit is agreed. Mr Kenny said those ""immediate priorities"" would take precedence over ""everything else"" on his return to Ireland. Mr Heydon said that the Taoiseach-has clearly stated that he will not lead the party into the next general election and that at some stage in the lifetime of this Government there would be a change of leader. FG Parliamentary Party Chairman Martin Heydon tells @thisweekrte he doesn't think anything has changed on Enda Kenny's leadership plans pic.twitter.com/vyYD5tB0oa ""?RT? News (@rtenews) March 19, 2017 He did not believe there was any appetite to table a motion of no confidence if Mr Kenny delays an announcement, he added. The vast majority of the parliamentary party trusted the Taoiseach in his judgement to know when the time was right to make that transition and that he would do so in the best interests of the country and the party, he said.", -3138,2017/3/19,http://www.rte.ie/news/crime/2017/0319/860921-loyalist-arrest/,Woman arrested in connection with Carrickfergus murder,,"A woman has been arrested by police investigating the murder of a prominent loyalist in Co Antrim. The 32-year-old was detained in Carrickfergus, Co Antrim, in relation to the killing of George Gilmore. She is being questioned by detectives from the PSNI's Serious Crime Branch at Belfast's Musgrave Serious Crime Suite. Two men charged with the murder appeared at Belfast Magistrates' Court on Saturday. Mr Gilmore, 44, was driving his car when he was shot in the neck in Carrickfergus on Monday afternoon. He died in hospital on Tuesday.", -3139,2017/3/19,http://abcnews.go.com/Politics/trump-approval-rating-sinks-low/story?id=46243176,Trump approval rating sinks to new low,,"President Trump's approval rating has fallen to 37 percent -- the lowest of his fledgling presidency, according to Gallup. His disapproval rating rose correspondingly, hitting 58 percent. At this point in his first term, President Obama's approval rating was hovering in the low 60s, while President George W. Bush's was in the mid-50s. (Obama's approval rating would later sink to a low of 40 percent, while Bush bottomed out at 25 percent.) In fact, Trump's current approval rating is lower than any other commander-in-chief at this point in his first term since Gallup started tracking the issue in 1945, the year Harry Truman took office. President Bill Clinton hit the 37 percent rating about five months into his first term, in June 1993, and Ronald Reagan dipped below it in January 1983, about a year after he took the oath of office. It took George H.W. Bush more than three years to fall to 37 percent, which he did in June 1992. And Richard Nixon, who resigned at 24 percent, first sunk below 37 percent in the first year of his second term, in August 1973, as the Watergate scandal raged. The lowest job approval ever recorded by Gallup was 22 percent, the public's assessment of Harry Truman's performance in February 1952, nearly 7 years into his presidency. Gallup's latest analysis of Trump comes on the heels of a turbulent first 50+ days, which saw the sudden resignation DIA Director Michael T Flynn amid rumors of Trump campaign collusion with Russia, an unsubstantiated allegation of wiretapping, and a litany of complications for both of the president's travel bans.", -3140,2017/3/19,http://www.cnn.com/2017/03/19/politics/trump-golf-weekends/index.html,"Trump, critic of Obama's golfing, regularly hits the links","West Palm Beach, Florida (CNN)President Donald Trump, once a critic of his predecessor's golfing, has visited one of his golf courses in Florida -- seemingly to play the sport -- five of the last seven weekends.","A president's golf play is far from controversial: In fact, it's the most common pastime of the country's leaders. But before he ran for office, Trump was the most fervent critic of the fact that President Barack Obama regularly hit the links with friends, aides and advisers, arguing that it showed the president was unserious about fixing America's problems. Now that Trump is President, the comments are coming back to complicate his golf habit. Trump has visited the two courses near his Mar-a-Lago estate -- Trump International Golf Course in West Palm Beach and Trump National Golf Course in Jupiter -- 10 times in the first two months of his presidency. Trump's top aides would rather obscure that fact, especially considering the President's past comments about the sport and the White House. ""I'm going to be working for you; I'm not going to have time to go play golf,"" Trump said during a 2016 event in Virginia. For the most part, aides have declined to confirm that Trump was playing golf on weekends in Florida, instead repeatedly telling reporters that the President ""may"" hit a few balls at his course but that they didn't know for sure. On multiple occasions, though, Trump's games have been made public. CNN has seen Trump golfing -- driving up the 12th hole on his championship course at Trump International Golf Course -- multiple times during the former reality star's first two months in office. It has also been revealed -- through golf blogs and media reports -- that Trump has played with top professional golfers such as Rory McIlroy, one of the top-ranked golfers in the world. While hosting Japanese Prime Minister Shinzo Abe in Palm Beach last month, Trump also played a full round with the foreign leader and professional golfer Ernie Els. Trump's preferred course by far is the one closest to his Florida home: Trump International Golf Club. He has visited the course all 10 times he has golfed since becoming President. Only one time -- while hosting Abe -- did the President also visit Trump National Golf Club in Jupiter. Trump also visited his course in Sterling, Virginia, on March 11 for a meeting. It is unclear whether he played. Trump made critiquing Obama for golfing a part of his 2016 message. ""I love golf, I think it's one of the greats, but I don't have time,"" then-President-elect Trump said during a December 2016 rally in Michigan. ""He played more golf last year than Tiger Woods. We don't have time for this. We don't have time for this. We have to work."" And before he ran for president, Trump would tweet about Obama's golfing. ""Can you believe that, with all of the problems and difficulties facing the US, President Obama spent the day playing golf,"" Trump tweeted in October 2014. ""Worse than Carter."" Now, citing the President's privacy, Trump's aides are left trying to conceal the President's frequent golfing.", -3141,2017/3/19,http://www.huffingtonpost.com/2017/03/19/confederate-flag-outside-ncaa-games_n_15476498.html,Confederate Flag Appears Outside NCAA Tournament In South Carolina,The state had been banned from hosting NCAA games for nearly 15 years because of the controversial flag.,"A Confederate flag was hoisted up a flagpole attached to a car near two NCAA tournament games in South Carolina on Sunday, just two years after the state was permitted to host the sporting events thanks to the flag's removal from state grounds. The controversial red and blue flag, which is today seen by many as a symbol of racism and to others one of Southern pride, was the handiwork of members of the South Carolina Secessionist Party, local Greenville station-WYFF reported. In addition to the large flag that was seen waving near Greenville's Bon Secours Wellness Arena where the men's games were taking place, protesters were seen carrying the flag on the streets below. NCAA responds after SC group flew Confederate flag near tournament venue https://t.co/KrwNG86zjU pic.twitter.com/4GX9DCFSeX ""people tend to mistake this for a race thing. It's not about race. It's about history and it being erased. And it is being erased,""?an unidentified white demonstrator told a reporter, according to sports news outlet SB Nation. Greenville Police Chief Ken Miller, speaking to WYFF, said that no laws were being broken and that the protesters reached out to see if they needed a permit to protest before hitting the streets. The protesters also said they wanted to pressure lawmakers to speed up the process of putting the Confederate flag that flew on state house grounds in a relic museum. In a statement, Dan Gavitt, the NCAA's senior vice president of basketball, assured that the flags and other related symbols will not be allowed on the venue's property. ""no symbols that compromise that commitment will be permitted to be displayed on venue property that the tournament controls,""?he said. ""Freedom of speech activities on public property in areas surrounding the arena are managed by the city of Greenville and we are supportive of the city's efforts.""?The flag's appearance comes nearly three years after it was removed from above the Columbia statehouse, ending a near 15-year ban that prohibited the state from holding NCAA games. The decision to remove the flag followed a 2015 targeted shooting at a historically black Charleston church that left nine black worshippers dead. The gunman named Dylann Roof, who was an avowed white supremacist, proudly posed for photos with different versions of the flag on social media. Hunter Meadows, who was among those protesting with the flag on Sunday, told the Associated Press that the flag and its supporters shouldn""t be blamed for Roof's actions. He also expressed upset that it had been removed from the capitol's grounds. ""I didn""t feel it was right when the flag came down,""aid Meadows, who said his ancestors fought for the Confederacy in the Civil War. ""We wanted to show the NCAA that we'r still here.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3142,2017/3/19,http://www.huffingtonpost.com/2017/03/19/boulder-sunshine-fire_n_15476480.html,"Colorado Fire Prompts More Than 1,000 Evacuation Warnings",The fire was 20 percent contained.,"A wildfire that broke out near Boulder, Colorado, early Sunday morning, prompting officials to send out at least 1,000 evacuation warning calls as the blaze moves within a mile of downtown. Deemed the Sunshine Fire, the blaze covers an estimated 62 acres of land in Colorado's Sunshine Valley west of Boulder since breaking out early Sunday morning, the local Office of Emergency Management said. As of 2:30 p.m. local time, the fire was 20 percent contained. Evacuations in place for #SunshineFire - evac point is currently Boulder High. Please avoid Wonderland Lake - being used for water refill pic.twitter.com/jqVq50l0z8 So far, no deaths or injuries have been reported and-no homes or structures-have been affected. Colorado Gov. John Hickenlooper (D) authorized the Colorado National Guard to assist Boulder County officials in dropping thousands of gallons of water and fire retardant on the affected area. Firefighters may be faced with an uphill battle later this afternoon when winds are expected to increase to gusts of-40 miles per hour, but officials are confident weather will not be too much of a hindrance.- 20% containment area is in the area of Sunshine Canyon Dr. and Centennial Trail. #SunshineFire FB: ttp://ow.ly/pikc30a3mmt pic.twitter.com/vj6g2Xcz71 ""We'r going to continue to fight the fire predominantly from the air as much as we possibly can and leverage the really good weather that We're had,""?Boulder sheriff's department public information officer Mike Wagner said this morning. ""the winds are a little bit calmer than what We're expected and we'r hoping the conditions stay favorable from the forecast as the day goes on.""?See photos below of the Sunshine Fire:- Share this slide: Start your workday the right way with the news that matters most. Learn more", -3143,2017/3/19,http://www.huffingtonpost.com/2017/03/19/beauty-and-the-beast-box-office_n_15476414.html,'Beauty And The Beast' Rules The Box Office With Record-Breaking Debut,"""Kong: Skull Island"" fell to second while ""Logan"" took third place.","LOS ANGELES (Variety.com) - This is what makes Disney such a powerhouse. ""Beauty and the Beast,""?the studio's latest live action update of a cartoon classic, waltzed its way to a towering $170 million debut this weekend, setting a new record for a March opening and solidifying the Mouse House's status as the dominant player in the film business. No other company can match the streak that Disney is currently enjoying, thanks to a series of multi-billion acquisitions that put the likes of Pixar, Marvel, and LucasFilm in its Magic Kingdom. ""Beauty and the Beast""?represents another part of Disney's branded strategy. It's the latest fairy tale adaptation to hit screens. Others in the lucrative group include ""Alice in Wonderland,""?which picked up $1 billion worldwide, ""Cinderella""?with its $543.5 million global haul, and last year's ""the Jungle Book,""?which racked up a mighty $966.6 million after finishing its run. Remakes of ""dumbo""?and ""Tulan""?are already in the works, as Disney commits to putting a live action spin on the bulk of its animated properties (Fans of ""treasure Planet""?may be out of luck). The latest fairy tale follows Belle, a bookish girl in France played by Harry Potter film veteran Emma Watson, who helps a tortured Beast (Dan Stevens of ""downton Abbey""?fame) break out of his shell. In the process she lifts a curse that's left the Beast's kingdom populated by talking household items. ""Beauty and the Beast""?didn""t muck about with the elements that made the 1991 film so beloved. Director Bill Condon kept the basic plot intact, while fleshing out a bit more of Belle's backstory, and retaining a soundtrack that includes ""Be Our Guest""?and ""Belle.""?All those elaborate musical numbers and chatty cutlery don""t come cheap. ""Beauty and the Beast""?carries a hefty $160 million budget. It should make that money back manyfold after ticket sales are tallied and new lines of princess wear are whipped up to satisfy new generations of Belle lovers. Most major studios steered clear of ""Beauty and the Beast.""?The only other new release of note, ""the Belko Experiment,""?debuted to $4.1 million, which its backers say is success given its model. The film boasts a unique distribution strategy. ""the Belko Experiment""?opened in 1,341 locations, roughly a third of the theater count for a major studio offerings. The theaters are chosen because they are more popular with horror fans. Orion, an MGM label, backed the film and is distributing it with BH Tilt. That label is overseen by ""the Purge""?and ""Insidious""?producer Blumhouse. It's trying to find more cost-efficient ways to bring smaller films to the masses. ""the Belko Experiment""?follows a group of American corporate types, who are locked in a high-rise office in Bogota, Colombia. They are ordered by a voice on the intercom to kill one another in a gray flannel-version of Social Darwinism. With ""Beauty and the Beast""?dominating ticket sales, last weekend's champ, ""Kong: Skull Island,""?fell 53% to $28.8 million. That pushes the monster movie's domestic haul to $110.1 million. Warner Bros. and Legendary Entertainment teamed up to produce the remake of King Kong. Fox's ""Logan""?took third place, pulling in $17.5 million and bringing the R-rated superhero tale's stateside total to $184 million. Universal and Blumhouse's ""Get Out,""?a thriller about a black man whose girlfriend's white family holds a sinister secret, nabbed fourth position. It made $13.2 million, bringing its gross to $133.1 million. With a budget of $4.5 million, the film is one of the year's most profitable. Lionsgate's ""the Shack""?rounded out the top five generating $6.1 million and pushing the faith-based drama's earnings to over $42.6 million. In limited release, ""t2 Trainspotting,""?a sequel to the 1996 cult comedy about a group of heroin addicts, opened in five locations, earning $180,000. Ewan McGregor reprises his role as a drug-addict Scot. The actor also has a supporting turn playing Lumiere, a candlestick, in ""Beauty and the Beast.""?Sony is releasing ""t2,""?which is heavily geared towards European audiences. The drama has already made $34 million overseas. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3144,2017/3/19,http://www.huffingtonpost.com/2017/03/19/jimmy-breslin-showed-how-to-torture-people-like-trump-talk-to-the-gravedigger_n_15476152.html,Jimmy Breslin Showed Us How To Cover A President Who Lies. Talk To The Gravedigger.,The newspaper columnist who died Sunday shined a light on the powerful by talking to the powerless.,"WASHINGTON ""?The gravedigger doesn""t have any reason to lie to you. If the grave is deep enough and wide enough, that's all that matters. The lies can be told by the shiny casket going into the dirt, by the funeral parlor salesman who talked the grieving relatives up the gold-patina model, and by those mourners who didn""t really want to be there. But the man who shovels out the deep hole in the ground with a back hoe has no reason to embellish. He'll just tell you what he thinks, if you ask. Jimmy Breslin, the columnist who died Sunday, knew that in 1963 when he framed the funeral of John F. Kennedy through the experience of Clifton Pollard. Pollard, an African-American man who dug graves at Arlington National Cemetery for $3.01 an hour, dug the slain president's final resting place. He couldn""t watch the burial ceremony because he was digging more graves. Still, he called it ""An honor.""?Breslin's story about the day is the one that's remembered most out of the hundreds written, and it offers a lesson both about him, and for the reporters in Washington more than 50 years later covering a White House occupied by man who doesn""t need to be talked up to the gold model, and who has a strained relationship with the truth. The lesson is, if you want truth, you have to leave your desk, step away from your computer, and must certainly ignore your Twitter feed. ""Breslin hardly ever came to the office. He just sent his stuff in,""?said Anthony Mancini, a journalism professor at Brooklyn College who worked at the New York Post in the late 1960s when Breslin wrote for the then-liberal paper. ""Jimmy got up in the morning, and put on his shoes. He never learned to drive, so he walked, took the subway, a cab, whatever,""?said Denis Hamill, a former New York Daily News columnist and friend of Breslin's. ""He wouldn""t sit at a desk and think up what to write. He would form his opinion based on the legwork that he did,""?Hamill said. ""He went out and really did the work.""?The results were stories that helped expose the corruption immortalized in the book ""City For Sale,""?revealed NYPD cops who tortured suspects with a stun gun, and infuriated the powerful, including Breslin's friends like former New York Gov. Hugh Carey. Breslin dubbed him ""ciety Carey,""?and Carey lost the next election. Breslin ran into some trouble in the era of ""new journalism""?when some of his regulars in his columns were deemed to be composite characters. ""they were playing fast and loose in those days,""?said Mancini, noting that in the era of ""Hake news,""?reporters need to avoid some old-school liberties. ""that was a little Trumpian.""?Hamill said much of the concern was overblown, though, by people who didn""t like Jimmy Breslin, and just couldn""t believe that the truth was true. ""Tost of the columns that looked fictional were real, and some of the people in them were not happy because they revealed real things about their lives,""?Hamill said. ""shelly the bail bondsman was real. Marvin the Torch was real. I met them,""?Hamill said, referring to some of Breslin's recurring characters. For Hamill, the larger point is that Breslin, better than anyone, used the experiences of regular people to speak truth to power. In the era of President Donald Trump, it's a skill the media would do well to rediscover. Reporters certainly do try to humanize the news these days, but often it's the Trump tweet that dominates the headlines. And all too often, the press is cowed by claims that it is being unfair when reporters ask Trump about falsehoods. When Trump held his joint news conference with German Chancellor Angela Merkel Friday, it was not the American journalists who asked Trump the hard question about the White House's inflammatory and unsubstantiated claim that the British government helped former President Barack Obama tap Trump tower. It was the Germans. ""Breslin would have been the perfect guy to really go and illustrate the lies and deceit that Donald Trump has launched upon the nation and the world, by going to the little guys, the guys who had contracts with him and got stiffed, the guys at the casino who got laid off, the people who Trump University swindled,""?Hamill said. Even in a laudatory moment in 1963, in a column that extolled Kennedy and the powerful fortitude of his widow, Breslin very intentionally included the fact that Clifton Pollard could not watch the burial. ""He was very interested in what people did, the work they did, and what they meant to the world,""?Hamill said, recalling a conversation with Breslin about Pollard. ""He said what bothered me about [Pollard] was he was allowed to dig [Kennedy's] grave but we wasn""t allowed to go over and watch the ceremony because he was a black guy and a working guy, and wearing shabby clothes. He couldn""t go over and mingle with the big shots. It's what was wrong with this country.""?Breslin probably wouldn""t have wanted to cover Merkel and Trump's White House events, as staged as such things are. But you can be sure he would have asked the aggravating question. Mancini recalled watching Breslin on a panel where the columnist mentioned with satisfaction the fact that an interest group was furious about something he wrote. ""Good,""?Breslin said. ""the more people we get angry the better.""?If the anger is sparked by someone like a gravedigger, there's a much better chance it will be true than if it's delivered in 140 characters by a man who used to impersonate his own press agent. And there's a better chance it will move other regular people. Jimmy Breslin called it the ""gravedigger theory.""?Now it's a lesson from the grave. Breslin surely hopes it haunts Trump. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3145,2017/3/19,http://www.huffingtonpost.com/2017/03/17/obamacare-repeal-premiums_n_15474724.html,The Story Of 2 Families And The Real-life Impact of Obamacare Repeal,"The law created ""winners""?and ""losers.""?The GOP plan would too.","RALEIGH, N.C. ""?Jennifer and Keith Gibbs say the Affordable Care Act has hurt their family, sticking them with soaring premiums and out-of-pocket costs. Claire and Allen Secrist say the law has helped them and their young daughter, making it possible to get life-changing medical care while avoiding financial ruin. The two families live 30 miles apart, and have never met each other. But their stories show how the 2010 health care law has created both ""winners""?and ""losers""?""?-and what Republican repeal efforts, now underway, would mean for each. The heart of the Republicans""?repeal campaign is a promise to improve things for people, like Jennifer and Keith, who feel the Affordable Care Act has hurt them. ""I""ve met with so many victims of Obamacare,""?President Donald Trump said this week, during a speech in Nashville, Tennessee. ""We will replace Obamacare and make health care better for you and your families.""?But amid questions about what repeal would actually entail, Republicans have also made promises to families like the Secrists, who are among the 20 million people depending on the health care law. ""nobody will be worse off financially,""?Tom Price, Trump's secretary of health and human services, claimed in an interview this past Sunday. This is not a vow Republicans can fulfill. And there's a very simple reason for that. In the GOP Obamacare narrative, the Affordable Care Act imposed regulations that made insurance more expensive for families like the Gibbses ""?and then it spent a bunch of taxpayer money in ways that don""t actually help them. That narrative is more or less correct. It is also incomplete. Specifically, it leaves out the part about how those same regulations, and that same government spending, have put decent coverage within reach for families like the Secrists. Take away the rules and the money, as Republicans propose to do, and families like the Gibbses might feel better off. But the Secrists, just as surely, would suffer. The American Health Care Act, the bill that House Republican leaders hope to bring to a floor vote next week, is the proof. If it were to become law,-a family like the Gibbses could end up spending less on their health insurance premiums, in exchange for a policy that would cover less. The family would also benefit from substantial new tax breaks the GOP proposal would make available to them. But a family like the Secrists would struggle to find a policy with the comprehensive benefits they require, and even if they could find one, they would not be able to afford it. They would probably end up uninsured, struggling to get medical care they desperately need. This outcome isn""t inevitable. There are ways to help the ACA's ""losers""?without hurting its ""winners.""?But those alternatives would involve different choices and trade-offs than Republicans are considering. The Gibbses are in their 40s, with two teenage daughters. Keith runs a business advising pharmaceutical and biotech companies that he started a few years ago, in part so he could have more control of his schedule and spend time at home. Jennifer works part-time for a nonprofit organization that helps former prisoners. Their neatly decorated, two-story house sits in a fast-growing neighborhood, popular with people who work in the area's-""research Triangle.""?They buy coverage on their own, rather than through an employer. In 2013, before the main provisions of the ACA took effect, they paid about $7,200 for a policy from Blue Cross Blue Shield of North Carolina. The plan they had was relatively generous, because it included things like inpatient rehabilitative services that employer plans routinely included but many ""non-group""?plans did not. But the plan was cheap for a reason. It had limited mental health benefits, and it didn""t cover maternity benefits at all. It also had a lifetime limit on how much it would pay out, which meant that if somebody in the Gibbs family ended up with an illness requiring years of intensive treatment ""?say, an aggressive cancer ""?it was possible their bills could hit that ceiling, and then they be on the hook for the rest. Most important of all, that Blue Cross plan wasn""t available to everybody. At the time, Blue Cross, like other insurers, practiced ""medical underwriting.""?It would charge higher premiums, withhold benefits or deny coverage to people whose histories suggested they were at high risk of illness. About 1 in 5 people who tried to buy the same policy as the Gibbses got turned down, according to statistics at healthpocket.com. That number almost surely understates the proportion of people who wouldn""t have been able to buy it if they tried, because many people with pre-existing conditions knew that applying for coverage was futile. Back then, the list of conditions that insurers cited to justify higher premiums, benefit exclusions or outright denials included everything from Crohn's disease and cancer to diabetes and epilepsy. Roughly 27 percent of the population has a condition that qualified as uninsurable under the old criteria, according to a December study from the Henry J. Kaiser Family Foundation. Around 17 percent of people who tried to buy coverage on the individual market in the days before the Affordable Care Act were rejected, according to the same study ""?in other words, roughly the same percentage who tried and failed to get the policy that the Gibbses successfully purchased. The Affordable Care Act's consumer protections, particularly the promise of coverage for pre-existing conditions, are among its most popular features. They also made insurance a lot more expensive, because it meant insurers were covering large medical expenses for people they never had to cover before. When Blue Cross announced the new rates, it told subscribers that, taking account of the law's financial assistance, it expected that about two-thirds of its customers would pay the same or less for insurance, while one-third would face ""substantial increases.""?In a prepared statement, the company's chief actuary explained that the law ""will make coverage available to many who have never had it and will enhance benefits for most consumers. These are good things, but they come at a cost.""?For the Gibbses, the cost brought their premiums up to $9,600 a year, a hefty increase but not one that seemed outrageous. A year later, however, Blue Cross discontinued the plan altogether. Jennifer shopped on healthcare.gov and found a UnitedHealthcare plan. But it was about $12,000 a year, Jennifer says ""?and, one year later, the price went up again. Like many insurers across the country, North Carolina's were realizing they had badly misjudged the market. Healthy people weren""t signing up in the numbers they hoped, and the newly insured needed more care than they anticipated, leading to huge losses. This past year, UnitedHealthcare pulled out of the state altogether, leaving most of North Carolina with just one carrier. That sent Jennifer back to healthcare.gov, where, she says, plans similar to her old one had premiums of nearly $20,000 a year, which would be more than their mortgage. And that didn""t include out-of-pocket costs that could exceed $10,000 if serious medical problems struck. The cheaper options had networks without their doctors, or they were ""bronze""?plans with even higher out-of-pocket costs. ""twenty thousand dollars is a lot of money to us,""?Jennifer says. They would have still been able to pay their bills, but it would have meant cutting back or giving up on extras like eating out, taking family vacations or replacing one of the family cars. (Their minivan is 13 years old.) Eventually, they found a way to qualify for a small-business plan, which Blue Cross sold them directly for a premium of $16,000 a year. It was still a lot more money than they had paid before the ACA. Jennifer knows that her family has been fortunate in many ways, with good health except for one daughter's asthma.-She believes strongly in what the Affordable Care Act was trying to accomplish. ""I do like the idea that, if you can""t afford insurance, then you should be able to have it ""?that is something the government should absolutely provide,""?she says. But she feels the administration ""went about it the wrong way.""?""I really didn""t imagine it would affect us this much,""?she said. The Secrists live on the other side of Raleigh-Durham, in a townhouse-style apartment that is part of a development alongside one of the area's main highways. Their living room has all the appurtenances of young parents with a young child, from the stack of compact discs on the floor to the stray crayon marks on the wall.- The Secrists pay a lot less for their coverage than the Gibbs family does ""?and they depend on it a lot more. In 2013, Claire Secrist became pregnant and developed pre-eclampsia. She went through a difficult delivery, severely injuring her pelvic bone and losing so much blood that she required a transfusion. Afterward, she needed surgery, rehabilitation and extensive medication. Their 3-year-old daughter, Holly, has battled severe health problems since birth ""?including retinoblastoma, cancer of the eye. Eventually doctors had to remove Holly's eye and replace it with a prosthetic. Allen, for his part, has a congenital condition that predisposes him to skin cancer and requires constant monitoring, including semiannual biopsies. When Claire was pregnant, the Secrists still had employer coverage through the pathology lab where Allen worked as a technical assistant. After she gave birth, he lost the position in a round of layoffs and the Secrists lost their insurance with it. Holly qualified for coverage under North Carolina's version of the Children's Health Insurance Program, a federal-state program for kids who live in households with relatively low income. But for the next two years, while Allen was driving for Grubhub and taking on other part-time jobs, and Claire was working for a school-testing company while she studied for a degree in library sciences, the couple got insurance through the Affordable Care Act.- At the time, their combined income was around $30,000 ""?not nearly enough to pay for a comprehensive policy on their own, given that necessities like food, rent and gas gobbled up most of their disposable income. They were, however, eligible for the Affordable Care Act's tax credits, which the government applied in advance in order to discount their premiums. By design, the law's tax credits are greater for people with lower incomes or higher insurance costs. For a family like the Secrists, who had both, it worked out to about $10,000 a year in assistance. The Secrists""?income also qualified them for assistance with out-of-pocket costs ""?money, again, that the federal government paid directly to the insurers. Altogether, Claire figures, they ended up spending less than $3,000 a year on medical care, despite having so many conditions requiring ongoing, otherwise expensive treatment. The coverage was hardly perfect. Coventry, the insurer they had for the first year, kept refusing to authorize Claire's surgery. The network for the policy they got the following year didn""t include a therapist she was seeing for postpartum depression. But the plan included all of the family's other doctors, including several specialists at nearby Duke University Medical Center. More importantly, Claire says, it covered their panoply of medical bills except for small out-of-pocket expenses here and there. The coverage has been ""�really helpful,""?Claire says ""?expressing a sentiment a lot more common than critics of the Affordable Care Act tend to concede. The majority of people buying private policies through the law are satisfied with them, surveys by the Commonwealth Fund and the Kaiser Foundation have found. And the coverage seems to make a difference, improving access to care and reducing financial strain from medical bills, according to several studies published in the last two years. ""We simply wouldn""t be able to maintain our current level of decent health""?without the insurance they have now, Claire says. ""We would likely try to get some care ""?like vaccinations ""?at community health centers. But otherwise, I guess we would just be in a lot of trouble.""?If the American Health Care Act or something like it becomes law, all of this would change. Republicans want to redirect the financial assistance the Affordable Care Act provides. They would eliminate the ACA's tax credits, which provide more assistance to people with low incomes or high insurance costs, and replace them with flat credits that would be available to everybody except people with very high incomes. These credits would vary only by age, but not enough to keep up with higher prices that insurers could charge older consumers. Unlike the Affordable Care Act, the American Health Care Act would include no extra assistance with out-of-pocket costs. Republicans have also made clear they would like to eliminate or at least weaken most of the Affordable Care Act's insurance regulations ""?by allowing insurers to cover a smaller portion of medical bills, and to stop covering services like mental health. Even the bill's (popular) guarantee of coverage for people with pre-existing conditions is up for debate: Republicans think it should apply only to people who maintain ""�continuous coverage.""?Under the American Health Care Act, people who allow coverage to lapse for more than 63 days would be subject to a 30 percent markup on premiums ""?although that provision is one of several that conservative Republicans have proposed revising. The Republicans""?bill does not include all the regulatory changes they""ve said they want, because inserting those provisions would complicate their effort to push repeal through the budget reconciliation process, where they could pass it without Democratic support. The bill would, however, immediately eliminate the individual mandate, which incentivizes healthy people to sign up for insurance by imposing a financial penalty on people who do not. For that reason, the Congressional Budget Office this week predicted that, for the first two years, the Republican proposal would actually cause premiums to rise. But afterward, CBO predicted, less comprehensive plans would come to dominate the market, while older people, who would find policies both less generous and more expensive, would drop coverage altogether. As a result, premiums would grow at a slower rate, eventually dipping down below where they would be if the Affordable Care Act had stayed in place. And they come down even more if Republicans found a way to further weaken regulations, through either executive action or future legislation ""?two things that they have promised. That still might not produce huge savings for families like the Gibbses, at least right away. But over time, they probably be spending less on premiums than they would if the ACA had stayed on the books. Of course, they might also have higher out-of-pocket costs, which could mean bigger bills if somebody got seriously ill. The bigger savings for the Gibbs family would come from the redirection of subsidies. They make just a little too much money to qualify for the Affordable Care Act's financial assistance. That's why they are paying full price. But they would be eligible for the tax credits in the Republican plan, because everybody is, regardless of income. The two kids would qualify for $2,000 each, the two parents $3,000 ""?and so, altogether, they stand to get $10,000 a year, no matter where their premiums ended up.- Under the Republican bill, many other Americans would end up getting bigger tax subsidies than they would under the Affordable Care Act. That includes people who get only a little financial assistance now, but still face premiums they find difficult to pay. The GOP plan could make those premiums easier to afford -- although, again, those people could also end up with less comprehensive coverage. For a family like the Secrists, these changes would work out very differently. They need the kind of financial assistance that the Affordable Care Act provides ""?and that Republicans would take away. Under the Republican bill, Allen and Claire, who are slightly younger than Jennifer and Keith, would each qualify for a $2,500 credit, or $5,000 between the two of them. That's a lot less than the nearly $10,000 the Affordable Care Act would make available to the couple. To get the kind of coverage they have today, with the same kinds of benefits, they would probably end up paying about $6,000 a year in premiums. That would be two to three times what they pay now, and almost certainly beyond their ability to pay ""?particularly since, without the Affordable Care Act, they wouldn""t have the extra protection from out-of-pocket costs. A skimpier policy with fewer benefits would be cheaper, and that might be the only kind of policy the market offered them anyway if insurer regulations became weaker. But as heavy users of medical care, the Secrists would almost surely end up owing even more money in out-of-pocket expenses, thereby saddling them with precisely the kind of ""�unusable""?insurance that Republicans insist Obamacare has given everybody. One other possibility for the Secrists would be a so-called ""�high-risk pool""?""?a special insurance program that, under Republican legislation, the state government could set up to help people with serious medical problems. But high-risk pools existed before the Affordable Care Act and they rarely ended up with many enrollees, either because limited funds forced states to cap enrollment or because the coverage itself was not very attractive. North Carolina had one such program. It had premiums up to twice as high as regular commercial rates, and it wouldn""t pay for treatment of pre-existing conditions for the first year of enrollment. Faced with those kinds of options, the odds are good that the Secrists would do what families in that situation usually have done ""?prioritize other spending, go uninsured and hope for the best. That's part of why the CBO expects the ranks of the uninsured would swell by 24 million within a decade of the American Health Care Act becoming law. ""We really don""t know what we do, honestly,""?Claire told mein an email. ""What's worse, is that eventually we""�ll get our financial/job situation together, but it""�ll certainly will be much harder if our health issues are out of control. That would be bad for us, but I think it would be even worse for Holly. We have to be reasonably healthy if we want to improve all of our lives, and give her what she needs for her unique situation.""?Rick Ramey, the Raleigh-based insurance agent who handles coverage for Jennifer and Keith Gibbs, has found that attitudes about the Affordable Care Act are roughly split ""?with those getting the subsidies generally a lot happier than those who don""t. He says he understands both points of view. In his experience, the new system really does make coverage available to many more people, and it really has pushed up premiums for people who had cheap coverage before. Part of the problem, Ramey has found, is that few Americans grasp how much insurance really costs. The standard most people expect is the insurance that large companies provide to workers-""?with almost everything covered and moderate out-of-pocket spending. But because employers pay most of those premiums directly, employees don""t realize how much their plans actually cost. When they suddenly have to pay the whole bill on their own, they feel sticker shock. ""�A high percentage of the population has no idea, I think,""?Ramey says. ""�Here in North Carolina, you can use about $400 per employee per month as a rough figure for a group plan ""?maybe $500 if it's rich, $350 if it's high deductible with a health savings account... Most people when they see that, they think it's ridiculous. They think they""ve been paying just $50.""?A goal of the Republican repeal plan is to allow the individual market to revert to something like pre-Obamacare prices even if that means accepting pre-Obamacare policies and all the ways they would fail families like the Secrists. That is not the only option, however. State and federal officials have the power to help families struggling with premiums and out-of-pocket costs in ways that wouldn""t hurt the people for whom the law has provided such valuable protection. It's just a matter of making different policy choices ""?and accepting different trade-offs. One reason that insurance got so expensive for the Gibbses is that they happen to live in North Carolina, a state where premiums for people in the individual market are among the highest in the country. (If the Gibbses lived in suburban Detroit, for example, they could get a comparable policy for between $11,000 and $14,000 a year.) North Carolina's problems reflect a variety of factors, including its status as one of the more rural states in the country. Rural areas are always tough for insurers, because they can""t play doctors and hospitals off one another in order to negotiate prices. But some of the problems in North Carolina are a direct result of decisions by state policymakers. High on the list is Republican legislators""?decision not to expand Medicaid. That put more sick people onto North Carolina's private plans, driving up premiums. Simply expanding Medicaid would probably help stabilize the market and, going forward, keep premium growth in check. The same is true for other states, like Arizona and Tennessee, experiencing similar trouble. Overall, premiums in expansion states are 7 percent lower than in non-expansion states, according to a Department of Health and Human Services study that controlled for factors like demographics. At the federal level, lawmakers could provide some money that would help insurers cover the costs of their most expensive consumers, so that insurers could stop charging their customers so much. The Affordable Care Act originally had two programs designed to serve this function, but both were temporary and one never paid out the money it owed ""?because Republicans, led by Sen. Marco Rubio (R-Fla.), attacked it as a ""bailout""?and successfully lobbied to kill its funding. Reinstating those programs, temporarily or permanently, would help keep markets stable and hold premium inflation in check. As it happens, the American Health Care Act actually has such a provision tucked in amid the more radical changes. It's a ""state and patient stability""?fund that states can use, among other things, for reinsurance that would essentially reimburse insurers for their most expensive beneficiaries. An easier, more direct solution would be to make the existing financial assistance more generous and available to slightly more people. This is actually what the architects of the Affordable Care Act originally intended. Early versions of legislation anticipated more generous tax credits and phased them out more slowly, so that people at higher incomes would be eligible for them. Adding that money now would give families a little extra cash to cover premiums, or perhaps out-of-pocket costs, and that would be enough to get more people enrolling. As they did, premiums for all would come down.- One advantage of this approach is its recognition that, in the world of health care policy, ""winners""?and ""losers""?are fluid categories. Healthy people get sick. Young people get old. If the Republicans get their way, people who save money because of lower premiums could end up paying more, later on, because of higher out-of-pocket costs.- The complication, as politics and as policy, is that these steps would also require additional government spending ""?which, as conservatives rightly point out, would mean a bigger burden for America's taxpayers. The Affordable Care Act has actually come in under budget, though, so there's an argument that the money was already allocated. Or the federal government could cut spending elsewhere. Or it could always do what Hillary Clinton proposed during her presidential campaign, and pay for new assistance by raising taxes on the very wealthy. Either way, the precursor for taking these steps would be agreeing to leave Obamacare in place. That is not something Republicans want to do. But strengthening the existing health care law, rather than tearing it down, is the preferred choice even for some people who aren""t happy with it ""?and that includes the Gibbses. ""I""�m all for the Affordable Care Act, which sounds kinda crazy when I""�m sitting here complaining about the cost,""?Jennifer said to me. ""I think it's absolutely necessary.""?Correction: The article originally misstated the results of a government study on Medicaid expansion. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3146,2017/3/19,http://www.huffingtonpost.com/2017/03/19/ex-police-chief-unlawfully-detained_n_15474720.html,Retired Police Chief Says He Was Unlawfully Detained At JFK Airport,"Hassan Aden, who spent nearly 30 years on the force, said ""if this can happen to me, it can happen to anyone.""?,A retired North Carolina police chief says he was profiled and unlawfully detained at a New York City airport last week"," leading him to believe that ""no one is safe""?from this type of government intrusion. Hassan Aden", in fact -3147,2017/3/19,http://www.bbc.co.uk/news/world-africa-39323826,Ghana waterfall: Many dead in Kintampo freak tree accident,"Up to 20 people have died and many have been injured after a large tree fell on them at a popular waterfall spot in Kintampo, Ghana.","Up to 20 people have died and many have been injured after a large tree fell on them at a popular waterfall spot in Kintampo, Ghana. They were swimming during a storm when the freak accident happened, emergency officials said. The tree had seemingly been brought down by the storm. Ghana National Fire Service spokesman Prince Billy Anaglate said the incident happened at the Kintampo waterfalls in the Brong-Ahafo region. A combined team of police and fire service personnel attended the accident site, in a bid to rescue those trapped by the tree. ""A huge tree fell at the top when the rains began and crashed the revellers,"" an eyewitness told Ghana's Starr News. ""Most of them are students of the Wenchi Senior High School. Others are tourists. We are trying to save those who are trapped by cutting the trees with chainsaws."" Fire Service spokesman Mr Anaglate told AFP that 18 students had died at the scene, while two others died in hospital. He said 11 people were receiving treatment, including one of the school administrators in charge of the trip. Other reports put the number of injured at over 20. They are being treated at the Kintampo Municipal hospital. ""We extend our condolences to the families of the dead and pray for the injured,"" Ghana's tourism minister Catherine Abelema Afeku said in a statement.", -3148,2017/3/19,http://tass.com/politics/936370,Lavrov to participate in Russian-Japanese 2+2 ministerial consultations,"According to the Russian Foreign Ministry, Lavrov's visit to Tokyo is particularly aimed at paving the way for Japanese Prime Minister Shinzo Abe's visit to Russia","TOKYO, March 20. /TASS/. On Monday, Russian top diplomat Sergey Lavrov will participate in the two-plus-two meeting of the Russian and Japanese foreign and defense ministers scheduled to be held in Japan's capital of Tokyo. The new ministerial meeting will take place in accordance with the agreement reached during Russian President Vladimir Putin's visit to Japan in December 2016. The first two-plus-two meeting was held in November 2013. The Russian foreign minister will also hold talks with his Japanese counterpart Fumio Kishida, the parties are expected to consider the implementation of the agreements made during high-level meetings as well as the schedule of further contacts, including those between the two countries""?leaders. According to the Russian Foreign Ministry, Lavrov's visit to Tokyo is particularly aimed at paving the way for Japanese Prime Minister Shinzo Abe's visit to Russia. Moscow believes it important to use the two-plus-two format ""to thoroughly discuss global and regional issues with Tokyo."" ""We plan to clarify Russia's principal position on setting up new security system in the Asian-Pacific region based on non-bloc approaches and respect for the regional countries""?concerns,"" the Russian foreign ministry said. ""Confidence-building measures in the defense and security sphere will also be discussed, in addition, we well express our views on the deployment of the US missile defense systems to Japan."" Besides, the parties will also assess the possibilities to boost joint efforts to fight international terrorism and drug trafficking. The two countries will continue working on bilateral projects based on the eight-point cooperation plan proposed by Japan's Prime Minister Shinzo Abe as well as Russia's proposals. ""We are confident that the implementation of these projects will facilitate the development of bilateral economic relations and provide an opportunity to increase the trade turnover,"" the Russian foreign ministry noted. On March 18, Tokyo hosted a meeting between the two countries""?deputy foreign ministers who discussed plans concerning joint economic activities on the South Kuril Islands. ""A package of proposals has been formed involving a wide range of projects important for the economic development of the South Kuril Islands, aimed at the implementation of large-scale projects,"" Russian Deputy Foreign Minister Igor Morgulov said in an interview with Japan's Jiji Press news agency. ""Of course, we believe that all these projects can only be implemented if they are consistent with the Russian law."" During the December summit, Russia and Japan announced that any agreements concerning joint economic activities would not damage the two countries""?positions on the peace treaty issue. According to the Russian President Vladimir Putin, a solution to the issue needs to be found that ""would meet the strategic interests of both Russia and Japan and could be accepted by the two countries""?peoples."" The Russian leader added that the absence of a peace treaty between Moscow and Tokyo was an anachronism. According to Putin, ""resolving the problem of the peace treaty will require painstaking work to bolster mutual confidence and all-round development of the Russian-Japanese relations."" Meanwhile, Japan has been trying to link the peace treaty problem with the territorial issue. ""The so-called Declaration, the only document signed and ratified by both countries in 1956, stipulates that a peace treaty should come first, notwithstanding any final agreements concerning the islands,"" Russian Foreign Minister Sergey Lavrov said earlier. ""The document says that first, a peace treaty should be singed and after that, two of the southern islands could be handed over to Japan as a gesture of goodwill."" The Declaration does not mention that the territorial issue would be considered during peace treaty talks, the Russian top diplomat added. The document particularly says: ""The USSR and Japan agree to continue peace treaty talks after normal diplomatic relations are restored."" New consultations involving the Russian and Japanese deputy foreign ministers will be held on March 30 in Tokyo.", -3149,2017/3/19,http://tass.com/world/936369,Police looking for man walking bear in Russia's Taganrog,The police were set to find out how a potentially dangerous animal could have gotten to the city streets without a muzzle,"ROSTOV-ON-DON, March 20. /TASS/. Police in the Russian city of Taganrog are looking for a man who was shown walking a bear on a video posted on social networks, a source in the Interior Ministry's Rostov Region Branch told TASS. ""A probe has been initiated into a video showing a man allegedly walking a bear,"" the source said. He added that the police were set to find out how a potentially dangerous animal could have gotten to the city streets without a muzzle. According to the source, the police have already established the place where the video was made. The video, posted on social networks on Saturday evening, shows a man walking a small bear in front of a multi-storied residential building. The bear is on a leash but is not wearing a muzzle. The bear can be seen getting up on his hind legs and coming close to the man holding the leash. A few passers-by are watching the man and the bear.", -3150,2017/3/19,http://tass.com/sport/936367,Vesnina beats fellow Russian Kuznetsova to win Indian Wells tournament,The tournament has a prize fund of $7 mln,"MOSCOW, March 20. /TASS/. Russia's Elena Vesnina has defeated fellow Russian Svetlana Kuznetsova 6:7 (6:8), 7:5, 6:4 to win the WTA tournament in Indian Wells, the US. The tournament has a prize fund of $7 mln. Vesnina, 30, played a WTA final for the tenth time in her career, securing her third singles trophy. Kuznetsova, 31, appeared in her 40th WTA final. She had played the Indian Wells final twice before. In 2007, she lost to Slovakia's Daniela Hantuchova while in 2008 she finished runner-up after falling to Serbia's Ana Ivanovic. The Indian Well Masters was founded in 1987, the women's tournament was launched in 1989. Russian female players already won the tournament three times: Maria Sharapova won the title in 2006 and 2013 while Vera Zvonareva was the winner in 2009.", -3151,2017/3/19,http://tass.com/world/936366,Slovak prime minister calls for lifting sanctions against Russia,"""Sanctions have not helped anyone,"" Robert Fico said, adding that some Slovak politicians try to displace actual foreign policy issues with less important ones by drawing society's attention to them","PRAGUE, March 20. /TASS/. Slovak Prime Minister Robert Fico has called for lifting sanctions against Russia. ""Sanctions have not helped anyone,"" he said during a show at the Bratislava's TA3 TV channel. ""Russia is not our problem. Our main problem is what is going to happen to the EU."" According to him, some Slovak politicians try to displace actual foreign policy issues with less important ones by drawing society's attention to them. In this connection, Fico mentioned a statement made by Slovak President Andrej Kiska in which he slammed the position of the country's prime minister and his cabinet members who questioned the viability of the European Union's sanctions on Russia. Fico said that Slovakia's foreign policy was based on two things: first, on the EU membership and second, on NATO membership. ""One the other hand, we sometimes have a need to fight for our national interests in Brussels,"" he said. These interests, in Fico's words, stipulate lifting sanctions against Russia and opposing the implementation of the Nord Stream 2 project. This project will damage Slovakia's economy as the country will lose a large part of the gas transit revenue, the country's prime minister noted.", -3152,2017/3/19,http://www.dw.com/en/syrian-government-forces-beat-back-surprise-rebel-assault-in-damascus/a-38016905?maca=en-rss-en-all-1573-rdf,Syrian government forces beat back surprise rebel assault in Damascus,Government troops have resisted an attempt by rebels and Islamists to take hold of the Jobar district. The fighting came as a fresh round of UN-backed peace talks failed to produce a peace deal.,"Clashes shocked-the Syrian capital of Damascus on Sunday after rebels and jihadist militants launched a surprise attack as the country struggles to find a peaceful end to its six-year civil conflict. Fighters tried to make their way to the city center, trading fire with government forces that could be heard across Damascus. The UK-based Syrian Observatory for Human Rights (SOHR) said that the violence began ""with two car bombs and several suicide attackers"" in the Jobar district in the east of the city. Rebels seized several buildings in the area before being pushed back as they attempted to take a bus station. SOHR chief Rami Abdel Rahman said the rebels were seeking to ""link their territory in Jobar with Qabun to break the government siege there."" Qabun is an area in northeastern Damascus that has been the target of heavy shelling by government forces in recent weeks. State television reported that the army had ""tightened the noose around terrorist groups besieged in the industrial zone on the northern edges of Jobar."" Ceasefire talks to no avail Control of Jobar has been divided between moderate rebels, government troops, and jihadists for more than two years. As forces loyal to Syrian President Bashar al-Assad have made significant gains all around the country in recent months, they have focused on regaining control of the entirety of the capital. Beyond shelling and airstrikes, the government has offered ""reconciliation"" deals in certain rebel-held areas in a bid to stem the violence. The renewed clashes came just days after the most recent round of UN-brokered peace talks in Geneva failed to produce concrete results. The United Nations has been trying to negotiate a ceasefire since 2012, but thus far nothing has stuck. es/jm (AFP, dpa)", -3153,2017/3/19,http://www.dw.com/en/sturgeon-ready-to-delay-scottish-second-vote/a-38016796?maca=en-rss-en-all-1573-rdf,Sturgeon ready to delay Scottish second vote,"Scotland's First Minister Nicola Sturgeon has softened her stance on the timing of a second referendum on independence from the UK. Last week, she called for a new vote before the UK leaves the EU.","After initially calling for new referendum on Scottish independence in late 2018 or early 2019, Scotland's First Minister Nicola Sturgeon said on Sunday she would be prepared to delay the vote to appease the UK government in London. Sturgeon told the broadcaster ITV that she was prepared to negotiate the date with British Prime Minister Theresa May, who has ruled out a repeat vote during the lifetime of the current parliament. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZBMB ""It is for (May) then to say what timescale she thinks would be appropriate and then yes I am happy to have that discussion within reason,"" Sturgeon told the British broadcaster. Won't wait years But she warned that Scotland could not wait several years for Britain's negotiations on leaving the EU to be finalized. ""Then it gets much harder for Scotland to seek a different course. But if she (May) is talking in the spring of 2019, a bit later perhaps than I was suggesting then there may be some room for discussion around that,"" she said. Sturgeon had called for a second independence referendum from Britain in the same week as the UK parliament passed legislation allowing May to begin the so-called Brexit divorce proceedings with Brussels. Scottish voters rejected independence from the UK in 2014, and last year - unlike most of Britain - opted to remain in the EU The timing of the second vote is timed to coincide with the outcome of final negotiations between the EU and Britain over the country withdrawing from the bloc. Sturgeon's Scottish Nationalist Party (SNP), which dominates the Edinburgh-based devolved parliament, wants Scotland to either remain in the EU or rejoin the bloc, after Britain leaves. But London has scoffed at the idea of a repeat referendum, with May saying ""now is not the time"" to create further instability for the union between England, Scotland, Wales and Northern Ireland, the four countries that make up the UK. Several hurdles ahead Apart from London, Scotland faces opposition from several other EU states including Spain, which is facing independence campaigns from several regions, and whose leaders have said that a newly independent state would have to go through a years-long negotiation process to rejoin the bloc. In a separate television-interview on Sunday, Sturgeon said an independent Scotland would continue to use the British pound as its currency but conceded that the country may eventually be pressed to use the euro. The latest Panelbase poll for the Sunday Times newspaper put support for Scottish independence at 44 percent, while 56 percent backed staying in the UK. It also found 51 percent of Scots did not want a vote on independence within the next few years. Scots rejected independence by 55-45 percent in a referendum in September 2014. But the majority of Scots voted in favor of Britain staying in the EU in June with 62 percent voting remain and 38 percent voting leave. mm/jm-(Reuters, AFP)", -3154,2017/3/19,http://www.aljazeera.com/news/2017/03/thousands-march-paris-police-violence-170319205028094.html,Mass rally in Paris against police brutality,"Protesters chanted ��no justice, no peace""?as authorities used tear gas against some demonstrators. Theo has become a symbol","Under the banner, ""march for justice and dignity "", thousands in Paris rallied against police brutality on Sunday, with authorities using tear gas against some demonstrators. Protesters chanted ""no justice, no peace"" and ""police everywhere, justice nowhere"" to call for an end to what they say is the use of excessive police force, especially against black and other minority groups. The protest was the latest demonstration sparked by the alleged rape of a young black man by police in February. The 22-year-old man, identified only as Theo, was allegedly raped with a police baton when officers stopped him in the northern Paris suburb Aulnay-sous-Bois. He was hospitalised for two weeks. One officer has been charged with rape, while three others have been accused of aggravated assault. A lawyer for the officer charged with rape said that any injury inflicted was done accidentally. All have denied any intentional wrongdoing. Since February, Theo has become a symbol of minority victims of police brutality, prompting widespread protests that have sometimes descended into riots.- At Sunday's march, Fatiha Bouras, a mother of a victim, said ""there are too many police killings, they have to stop"". READ MORE: In France, Black Lives Matter has become a rallying cry Co-organiser Amal Bentounsi-told the crowd, ""We would like for justice to be served."" Her brother, Amine Bentounsi, was killed by police during a chase in a northern Paris suburb in 2012. This week, the officer involved, Damien Saboundjian, was found guilty of deliberate assault resulting in death and given a five-year suspended sentence. Others at Sunday's protests held a banners with the faces of other people who they say have been victims of police violence, including Adama Traore. On the same night that Theo was allegedly raped, a sold-out concert took place to support the family of Traore who died in police custody in July 2016 . It was his case that propelled the issue of police brutality into the spotlight across France last year. Police originally said he died of a heart attack, but a second autopsy found Adama passed away due to asphyxiation. An investigation is still ongoing. And in 2005, France experienced what some call the worst riots in 40 years after the deaths two teenagers - Bouna Traore and Zyed Benna - who were electrocuted while hiding from police in a power transformer. That incident prompted three weeks of violence in which 10,000 cars and 300 buildings were set on fire, spurring Nicolas Sarkozy, then interior minister, to declare a state of emergency. In 2015, the officers involved were cleared of any wrongdoing . Sunday's protests and similar demonstrations that have taken place since 2005 have also highlighted longstanding grievances found in French suburbs, which are home to large numbers of immigrants. A 2009-study found that a person of African or Caribbean background is six times more likely to be stopped by French police than a white person. Source:-Al Jazeera and news agencies", -3155,2017/3/19,http://www.rte.ie/sport/soccer/2017/0319/860968-derry-in-mourning-as-captain-ryan-mcbride-passes-away/,Derry in mourning as captain Ryan McBride passes away,,"Derry City captain Ryan McBride has passed away. The 27-year-old died suddenly at his family home on Sunday, according to reports in local media. McBride helped City to a 4-0 victory against Drogheda on Saturday as the Candystripes maintained their 100 per cent start to the season. We are shocked to hear this evening the passing of our member and @derrycityfc Captain Ryan McBride. Our thoughts are with his family. ""?PFA Ireland (@PFAIOfficial) March 19, 2017 McBride made his debut for his hometown club in 2011 and has been ever present in their first team since- The centre-half-was appointed club captain in 2015. The cause of death is as yet unknown. - View Comments", -3156,2017/3/19,http://www.rte.ie/news/world/2017/0319/860964-healthcare-us/,Republicans working on changes to healthcare overhaul bill - Ryan,,"US House Republicans are working on changes to their healthcare overhaul bill to provide more generous tax credits for older Americans and add a work requirement for the Medicaid programme, House Speaker Paul Ryan has said. Mr Ryan said Republican leaders still planned to bring the healthcare bill to a vote on the House of Representatives floor on Thursday. Speaking on the Fox News, he added that leaders were working to address concerns that had been raised by rank-and-file Republicans to the legislation. Republicans remain deeply divided over the healthcare overhaul, which is President Donald Trump's first major legislative initiative. It aims to fulfill his campaign pledge to repeal and replace the Affordable Care Act, popularly known as Obamacare, the healthcare program of his Democratic predecessor Barack Obama. Democrats say the Republican plan could throw millions off health insurance and hurt the elderly, poor and working families while giving tax cuts to the rich. ""We think we should be offering even more assistance than the bill currently does"" for lower-income people age 50 to 64, Mr Ryan, the top Republican in Congress, said of the tax credits for health insurance that are proposed in the legislation. Mr Ryan also said Republicans were working on changes that would allow federal block grants to states for Medicaid and permit states to impose a work requirement for able-bodied Medicaid recipients. Mr Trump told reporters in a brief conversation aboard Air Force One that he had meetings about healthcare reform over the weekend in Florida and that the effort to sell the proposal was going well. Mr Trump has been wooing lawmakers to vote for the bill. He won the backing of a dozen conservative lawmakers on Friday after an Oval Office meeting in which the president endorsed a work requirement and block-grant option for Medicaid. Block grants would give states a set amount of money to cover people on the Medicaid programme and provide flexibility in spending decisions. But there is no guarantee funding will keep up with future demands. While Mr Ryan said he felt ""very good"" about the health bill's prospects in the House, a leading conservative lawmaker, Representative Mark Meadows, told the C-Span ""Newsmakers"" programme that there were currently 40 Republican ""no"" votes in the House. Republicans hold a majority in the chamber but cannot afford to have more than 21 defections for the measure to pass. On Saturday, three Republican opponents of the bill including Mr Meadows, Senators Mike Lee of Utah and Ted Cruz of Texas, met at Mr Trump's Mar-a-Lago estate in Florida ""negotiating with the president's team, trying to fix this bill,"" Mr Cruz said. Mr Meadows, a North Carolina Republican, said the changes being considered for the Medicaid programme would not go far enough if they left it up to states to decide whether to put in place a work requirement.", -3157,2017/3/19,http://abcnews.go.com/US/baltimore-police-search-suspect-firebombing-killed-injured/story?id=46243480,Baltimore police search for suspect in firebombing that killed 2 and injured 6,,"Authorities are searching for a suspect who is wanted in connection to the firebombing that devastated a home, leaving two people dead and six others injured, according to the Baltimore Police Department. The fire occurred early Saturday morning, and police said that the two who were killed were both teenagers, and among the injured are a 4-year-old and an 11-year-old. One adult is also in serious condition after jumping from the top floor of the home in an effort to escape the fire, police said. ""We know that this was a deliberately set fire,"" Baltimore P.D. Public Information Officer T.J. Smith said Saturday. ""And the individuals that were inside the home were apparently targeted."" Smith added that there was a non-fatal shooting in the area on Thursday, two days before the fire broke out. Smith said investigators believe the two incidents are connected. Smith said that five of the six who were injured have been released from the hospital, including the 4-year-old and 11-year-old. The suspect has been identified by Baltimore police as Antonio Wright, 26. Wright, described as 6-foot-1, 190 pounds, with black hair and brown eyes, is wanted for murder. The Bureau of Alcohol, Tobacco, Firearms and Explosives is assisting the B.P.D. with the search and offering a reward of up to $10,000 for information leading to Wright's arrest. Combined with the B.P.D.'s reward of up to $2,000, authorities are offering a total reward of up to $12,000 as a part of their effort to arrest Wright. ""Bad guys on the street will tell you,"" Smith said, ""they will tell you kids, elderly, women are off limits. ... The suspect didn't care who was in that house."" ""We could be here talking about eight dead people, including a 4-year-old and an 11-year-old,"" Smith said. B.P.D. Commissioner Kevin Davis said at a news conference Sunday that, ""for a person to plan to commit this act it takes pre-meditation, it takes planning. ""Then he has to have the fortitude to go ahead and throw two Molotov cocktails inside an occupied row home in our city,"" Davis added. ""That's absolutely unacceptable to Baltimore. ""Antonio Wright is public enemy number one,"" Davis said. ""We've caught every other public enemy number 1 and we intend to catch Antonio Wright."" Davis said they don't have any ""hard set criteria"" for what classifies a criminal as ""public enemy number one,"" but added that they use that term for ""acts that shock the conscience.""", -3158,2017/3/19,http://abcnews.go.com/Health/wireStory/minimum-wage-hikes-deepen-shortage-health-aides-46247666,Minimum-wage hikes could deepen shortage of health aides,,"Only 17 snowy miles from the Canadian border, Katie Bushey's most basic needs are met by traveling health aides who come into her home to change her diapers, track her seizures, spoon-feed her fettucine Alfredo and load her wheelchair into the shower. But that's only if someone shows up. Bushey, 32, who lost her vocal and motor skills shortly after birth, is one of more than 180,000 Medicaid patients in New York who are authorized to receive long-term, in-home care, the most in the state's history. But there are increasingly too few aides to go around, especially in remote, rural areas. When there aren't enough aides for Bushey ""?over a recent two-day stretch there were workers for only four of the 26 hours of care for which she is authorized ""?her mother must stay home from her job at an elementary school, forgoing a day's wages and scraping her savings to pay the bills. It's a national problem advocates say could get worse in New York because of a phased-in, $15-an-hour minimum wage that will be statewide by 2021, pushing notoriously poorly paid health aides into other jobs, in retail or fast food, that don't involve hours of training and the pressure of keeping someone else alive. ""These should not be low-wage jobs,"" said Bruce Darling, executive director at the Center for Disability Rights. ""We're paying someone who gives you a burger the same as the person who operates your relative's ventilator or feeding tubes."" There are currently 2.2 million home health aides and personal care aides in the U.S., with another 630,000 needed by 2024 as the Baby Boomer generation ages, according to the nonprofit research and consulting group PHI. New York state employs about 326,000 home health workers but is predicted to need another 125,000 by 2024. For now, home health aides in New York state earn an average of about $11 an hour, though wages are lower in upstate regions. Advocates say the system needs a complete overhaul that focuses on higher pay, worker retention and finding methods of compensation beyond what is provided through Medicaid. Democratic Gov. Andrew Cuomo has committed nearly $6 billion in funding for home health care reimbursements in coming years as the agencies transition to the $15 minimum wage. The state's health department has said it is developing an initiative to attract, recruit and retain home health workers. New York lawmakers have held hearings on the issue, and both the Senate and Assembly have so far included language in their budgets that would review and restructure how the state transfers Medicaid dollars to the providers, agencies and workers with the aim of providing workers and hours where they are needed most. Other states are grappling with how to address the dwindling workforce as their minimum wages climb. In Maine, legislation in 2015 attempted to make personal care worker wages more competitive with specific reimbursements for worker compensation. But a popular initiative will raise the minimum wage to $12 by 2020, minimizing those differences. In Arizona, minimum wage increases have been accompanied by increased reimbursement rates, and in Washington state, workers negotiated a $15 wage for some home-care workers for when the state minimum increases to $13.50 in 2020. New York advocates say a higher state minimum wage won't attract any extra workers in rural regions such as Clinton County, where Bushey lives. A single agency, North Country Home Services, hires and trains about 300 home health aides and personal care aides for about 1,000 people throughout a mountainous region the size of Connecticut. In any given week, the agency says, it leaves 400 hours of state-authorized care unfilled due to staffing shortages. The aides who continue despite the wages are a special breed, said Erica Stranahan, of Plattsburgh, who has worked as a home health aide with North Country for nine years and earns about $12 an hour. Stranahan said several of her co-workers have recently left homecare for less-intensive professions that will soon have similar wages. Stranahan acknowledged she makes it work only by sharing rent and living expenses with her boyfriend. She said she feels a responsibility to those she cares for, and would rather find a second job than quit caring for others. ""I enjoy helping people,"" she said. ""We're with them for so many hours. It's almost like we're a second family for them,"" Stranahan said. But Rosalie Kline, a personal care aide in Canandaigua for nearly 13 years who also struggles to make ends meet, said that if worse came to worst, she would find another job that paid more. ""I wouldn't want to. I love my job,"" she said. ""But I might need to.""", -3159,2017/3/19,http://abcnews.go.com/Health/wireStory/massachusetts-panel-opens-hearings-recreational-pot-law-46247401,Massachusetts panel opens hearings on recreational pot law,,"Massachusetts lawmakers are vowing to respect the will of the voters, but aren't ruling out changes to the state's recreational marijuana law. A special legislative committee that's considering revisions to the law opens hearings at the Statehouse on Monday. Among those expected to testify are members of ""Yes on 4,"" the group that led the ballot initiative that made Massachusetts one of eight states where recreational marijuana use by adults is now legal. The group is demanding that lawmakers leave the measure alone and give it time to work. State treasurer Deb Goldberg, whose office will oversee regulation of marijuana sales, also is scheduled to appear before the panel. The Legislature already has moved to postpone the opening of retail pot shops in the state until mid-2018 at the earliest.", -3160,2017/3/19,http://abcnews.go.com/Technology/wireStory/spacex-capsule-returns-space-station-science-earth-46237748,SpaceX capsule returns space station science to Earth,,"A SpaceX capsule is back on Earth with a full load of space station science samples. The Dragon cargo ship parachuted into the Pacific on Sunday off the Southern California coast. Astronauts set it free from the International Space Station 5 1/2 hours earlier. The Dragon flew to the space station a month ago from the same Florida launch pad used for NASA's Apollo moon shots. It took up more than 5,000 pounds of supplies and brought back just as much in completed experiments and used equipment. NASA's other supplier, Orbital ATK, plans to launch its own supply ship Friday, also from Cape Canaveral, Florida. That one, however, burns up on re-entry. The space station is home to one Frenchman, two Americans and three Russians. ""?Online: NASA: https://www.nasa.gov/mission""�pages/station/main/index.html", -3161,2017/3/19,http://abcnews.go.com/US/wireStory/president-embattled-uber-leaves-months-job-46245165,President of embattled Uber leaves after 6 months on job,,"Jeff Jones, president of the embattled ride-hailing company Uber, has resigned just six months after taking the job, the company confirmed Sunday. In a brief statement, Uber didn't say why Jones left. ""We want to thank Jeff for his six months at the company and wish him all the best,"" it said. Jones told the tech blog Recode, which first reported his resignation, that his values didn't align with Uber's. ""The beliefs and approach to leadership that have guided my career are inconsistent with what I saw and experienced at Uber, and I can no longer continue as president of the ride sharing business,"" he said in a statement. Jones is the latest of several high-level executives to leave the San Francisco-based company. Last month, a top engineering executive, Amit Singhal, left Uber five weeks after his hire was announced. He allegedly failed to disclose that he'd left his previous job at Google because of a sexual harassment allegation. Ed Baker, Uber's vice president of product and growth, resigned earlier this month. So did Charlie Miller, Uber's top security researcher, who left to join Didi, China's larger ride-hailing company. Jones' departure comes days after Uber CEO Travis Kalanick said the company will hire a chief operating officer who can help write its ""next chapter."" Jones had left Target, where he was chief marketing officer, to join Uber in September. Uber has been hit by several controversies, including allegations that it routinely ignores sexual harassment. A recent video showed Kalanick profanely berating a driver who confronted him about steep cuts in Uber's rates. Uber also acknowledged it has used a program to thwart authorities who have been trying to curtail or shut down its service in cities around the world. The company also has faces challenges in court. Waymo, a self-driving car company that used to be part of Google, last month sued Uber in federal court, alleging betrayal and high-tech espionage. The complaint accuses Anthony Levandowski, a former top manager for Google's self-driving car project, of stealing technology now propelling Uber's effort to build an autonomous vehicle fleet. Uber denied Waymo's claims, calling them ""a baseless attempt to slow down a competitor.""", -3162,2017/3/19,http://abcnews.go.com/US/fbi-director-expected-undercut-trump-claims-wiretapping/story?id=46240979,FBI director expected to undercut Trump claims of wiretapping,,"Within the first minutes of a much-anticipated House hearing Monday, FBI Director James Comey is expected to officially undercut the wiretapping allegations that have been promoted by the White House for more than two weeks, according to sources familiar with Comey's thinking. Comey's expected comments to the House Intelligence Committee will mark the U.S. law enforcement community's first public response to President Donald Trump's continuing insistence that the Obama administration ""wiretapped"" or otherwise conducted surveillance of Trump's presidential campaign. National Security Agency director Mike Rogers will also be testifying. ""It never hurts to say you're sorry,"" a Republican member of the committee, former CIA officer William Hurd, R-Texas, advised Trump today, telling ABC News anchor George Stephanopoulos that the commander-in-chief should apologize for his false statements, which have angered key allies such as Great Britain. But the hearing Monday is about much more than the unfounded accusations first lodged on Twitter ""? its main purpose is to look at how Russia interfered with last year's presidential election, and to understand FBI inquiries into whether any U.S. citizens helped the Russian government. ""I would like the American people to walk away understanding that we were attacked,"" Rep. Eric Swalwell, D-California, told ABC News. ""The perpetrator was Russia, and there are serious questions about ties"" between Trump associates and Russian officials, he said. Indeed, the FBI has been conducting a months-long and multi-pronged investigation of Russia's attempts to influence the presidential election. One key part of the probe has focused on Russian hackers who stole and then disseminated damaging information from inside the Democratic National Committee and U.S. political institutions, while another division of the FBI is looking at Russian efforts to collect intelligence on U.S. policy and the presidential campaigns, including contacts between Russian operatives and associates of President Trump. ""If it's just 100 coincidences, let the world know that is what it is, and let's move on,"" but if there is more to the contacts and a ""convergence of political and financial ties,"" then those ties need to be ""investigated fully,"" Swalwell said. ""This is not going away until we find out whether these are coincidences or a convergence."" Meanwhile, the top Democrat on the House Intelligence Committee, Rep. Adam Schiff, D-California, told NBC News today ""there is circumstantial evidence of collusion"" and ""direct evidence I think of deception."" In citing alleged deception, Schiff was likely referring to former National Security Adviser Mike Flynn, who was fired from the White House after falsely telling Vice President Michael Pence and others that he never spoke about sensitive matters with Russian officials ahead of the inauguration. But Rep. Devin Nunes, R-California, the chairman of the committee -""?one of several congressional committees looking into allegations of Russian meddling in the election -""?insisted he has seen ""no evidence of collusion"" between Trump associates and the Russian government, noting that the only direct evidence of a crime he's seen is the leaking of classified U.S. intelligence to reporters, including information about Flynn's pre-inauguration contacts with Russian diplomat Sergey Kislyak. The Washington Post first revealed that, despite Flynn's private denials, he had discussed Obama administration sanctions against Russia with Kislyak -- a discussion captured by U.S. spy agencies eavesdropping on Kislyak. The Washington Post later revealed that now-Attorney General Jeff Sessions had also met with Kislyak at least twice during the campaign. Sessions, a former senator and top adviser to Trump's campaign, has since recused himself from any criminal investigations tied to last year's presidential race. Comey's testimony Monday will ""probably be the most limited"" on the issue of alleged collusion, ""but there's a lot he can tell us about the Russian motivations for their intervention, how the Russians operate in Europe, [and] what techniques they use,"" Schiff said Sunday. Asked whether Comey will make clear Monday that there is no evidence to support White House claims of Obama-era wiretapping against Trump associates, Schiff said, ""I expect that he will, and I hope that we can put an end to this wild goose chase because what the president said was just patently false."" Swalwell called the wiretapping claims a ""smoke bomb"" intended to ""fog up the place and obstruct"" investigations into ties between Trump circles and the Russian government. Even Nunes acknowledged there is no evidence indicating the Obama administration was eavesdropping on the Trump campaign. ""Was there a physical wiretap of Trump Tower? No. There never was,"" Nunes told Fox News on Sunday. Nunes and Schiff are among a handful of top lawmakers who have already been privately briefed by Comey about FBI findings so far related to Russia. The White House escalated the entire issue last week when spokesman Sean Spicer cited a Fox News commentator's claims that a British spy agency eavesdropped on the Trump campaign at the Obama administration's behest. The claims angered British officials and have since been widely panned as unfounded -- even by Fox News itself. Trump should apologize to Britain and the American people for making the false wiretapping claims, Hurd said on ABC's ""This Week."" ""We got to make sure that we're all working together,"" he added. ""We live in a very dangerous world, and we can't do this alone.""", -3163,2017/3/20,http://www.cnn.com/2017/03/19/politics/house-intelligence-committee-hearing-russia-wiretapping/index.html,Trump's wiretapping accusation comes to a head at Comey hearing,(CNN)The bizarre saga of President Donald Trump's claims that he was wiretapped by President Barack Obama last year reaches a dramatic climax Monday with FBI Director James Comey's testimony to the House Intelligence Committee.,"It's a moment of political theater that could end in humiliation for Trump, with Comey expected to say that there was no wiretapping, debunking allegations that Trump has repeatedly refused to withdraw. The hearing could also shed light on the state of FBI investigations into the extent of Russian meddling in the election campaign. Republicans hope Comey will state that there is no evidence of collusion between Trump aides and officials from Moscow, a move that could begin to break up a cloud of Russian intrigue that has stifled the early weeks of the administration. The controversy over the wiretapping claims was unleashed by stunning early morning tweets from the President at his Mar-a-Lago resort in Florida two weeks ago. He drew parallels to Watergate and McCarthyism and said Obama was a ""Bad (or sick) guy!"" for ordering surveillance of his New York residence -- allegations the former president quickly denied through a spokesman. In one sense, the strange controversy over Trump's tweets has left the President in a position where he is most comfortable politically ""?at odds with the media and the political and intelligence establishment in Washington. But it has also evolved into a political distraction at a time when Trump is facing fights over Obamacare repeal and the budget that will help define his first 100 days in office. This week, for example, the administration should benefit from favorable coverage of the confirmation hearings of Trump's respected Supreme Court pick Neil Gorsuch, but the Intelligence Committee hearing has the capacity to overshadow the judge's testimony. RELATED: What Neil Gorsuch learned from Kennedy, Scalia and Thomas Comey's appearance will highlight the strange, starring role of the FBI director in an election that many Democrats believe was tilted toward Trump by Comey's interventions related to Hillary Clinton's use of a private email server. The FBI chief now finds himself presiding over a politically explosive investigation that could include the behavior of aides to the sitting President amid claims by Democrats of nefarious dealings between Trump's campaign inner circle and Russian political and intelligence officials. Trump's failure to provide evidence for his wiretapping accusation -- effectively an allegation of criminal wrongdoing against the former administration -- or to draw back the claims tied his White House in knots as it sought to explain and finesse the tweets while sparing the President embarrassment. But the effort stumbled as every key congressional figure associated with intelligence oversight said there was no evidence of wiretapping. Comey was ""incredulous"" about Trump's tweets, sources familiar with the matter told CNN. The administration's isolation was clear on the eve of the hearing Sunday. ""Was there a physical wiretap of Trump Tower? No ... there never was,"" Republican House Intelligence Committee Chairman Devin Nunes told ""Fox News Sunday."" The top Democrat on the committee, Rep. Adam Schiff, added on NBC's ""Meet the Press"": ""I hope that we can put an end to this wild goose chase because what the President said was just patently false."" Allegations makes waves among allies at home and abroad Trump's tweets are not just causing a political kerfuffle; they've sparked international diplomatic fallout. White House efforts to support the claims ended up embroiling two key European allies: Britain and Germany. Officials in London were livid that White House spokesman Sean Spicer cited an unsubstantiated report that Britain's Government Communications Headquarters -- the British equivalent of the CIA -- had been used by Obama in the operation. Germany's Chancellor Angela Merkel, whose phone was once tapped by US intelligence, did not take kindly to Trump's quip that they had something in common Friday. Also Friday, Trump's Justice Department sent classified information to Capitol Hill about the claims, but sources said it did not substantiate them. The apparent lack of evidence for Trump's claims is causing consternation among the President's Republican allies and Democrats alike, and speculation about how he will respond if Comey testifies that they are baseless. His unrepentant Friday news conference suggests the President will simply quadruple down on his claims, and ignore evidence against him. Such is the depth of feeling in Trump world that he is the victim of a plot by the establishment and the media to undermine his administration that he is unlikely to pay a heavy price among his devoted supporters. But the episode has again raised questions about whether Trump's penchant for defying facts and evidence ""?that helped him in his campaign ""?could exert a significant price on his presidency. RELATED: Why Trump just can't (and probably won't) quit the wiretap story Some observers believe Trump is eroding credibility that he will need to rally Americans in a moment of national crisis. Trump's reliance on a Fox News report for his claim on British involvement, and not the testimony of his intelligence agencies, appears to indicate the most powerful man in the world is operating in a realm of conspiracy theories rather than facts. ""The wrecking ball it created now has banged into our British allies and our German allies, it's continuing to grow in terms of damage, and he needs to put an end to this,"" Schiff said on NBC. ""Now maybe this is the way he conducted his real estate business, with half-truths and sometimes no-truths and a lot of bluster. That, in my opinion, is no way to run a business. But it's an even worse way to run a country."" Republican Rep. Tom Cole told reporters Friday that Trump should say sorry to Obama if he couldn't support his claims. ""Frankly, unless you can produce some pretty compelling proof, then I think that President Obama is owed an apology in that regard."" ""If he didn't do it, (Trump) shouldn't be reckless in accusations that he did."" Looking at links between Trump campaign and Moscow Some Democrats believe that Trump's perpetuation of the wiretapping claims represents an effort to distract from allegations that his campaign had inappropriate contacts with Russian officials. ""Really what they are doing is they are rolling smoke bombs into an investigation where the dots continue to connect around prior personal, political and financial ties with Donald Trump and his team and Russia,"" said Democratic Rep. Eric Swalwell, a member of the House Intelligence Committee, in an interview. But the White House is angry that statements by former senior intelligence officials in the Obama administration ""?and by top congressional figures -- that there is no evidence to substantiate the claims of alleged collusion with Russia is not getting more coverage. ""I think when it comes to the Russia story -- and the on-the-record sources who have been briefed by the FBI continue to conclude that there's nothing there -- you guys continue to fall back on these anonymous sources and perpetuate a false narrative,"" Spicer vented to reporters Thursday. Other Republicans believe that Comey's testimony Monday could begin to ease the pressure on the White House over the Russia question. ""I do think it's important that we look at the broader context here,"" Arkansas Sen. Tom Cotton said on CNN's ""State of the Union"" on Sunday. ""The House committee hearing tomorrow is going to be in part about the unsubstantiated allegations in the media and by some Democrats of collusion between Trump associates and Russian intelligence."" Cotton noted that former officials, including Obama's former director of national intelligence, James Clapper, have said that there was no evidence to substantiate such links. ""I think, ultimately, that matters more to most Americans, given the nature of the allegations that have been made in the past several months about Donald Trump and his campaign and some of his associates,"" Cotton said. Still, the shifting explanations of meetings last year between Trump aides, among them Attorney General Jeff Sessions, and Russians, including Moscow's ambassador to the US, the fact that the first national security adviser, Michael Flynn, had to resign after not being forthright about such contacts, and the President's own praise for Russian President Vladimir Putin, have kept the speculation alive. RELATED: How Michael Flynn lost his job in 23 days Trump's refusal to release his tax returns has meanwhile made it impossible for him to put speculation ""?which so far lacks evidence ""?that he has been compromised by business links to Russia. CNN reported in February that there was constant contact between Trump campaign aides and Russians known to US intelligence last summer, citing multiple current and former intelligence, law enforcement and administration officials. The frequency and the level of those contacts raised alarms in US intelligence and law enforcement circles. Democrats say that pattern of behavior merits investigation ""?and could press Comey on Monday to say what he can in an unclassified setting about those contacts. ""At the outset of the investigation, there was circumstantial evidence of collusion. There was direct evidence, I think, of deception,"" Schiff said. ""And that's where we begin the investigation,"" he said. ""Now I don't want to prejudge where we ultimately end up."" RELATED: Republicans lose patience with FBI on Russia, Trump campaign ties information", -3164,2017/3/20,http://www.cnn.com/2017/03/19/opinions/key-players-house-intelligence-hearing-opinion-kaayem/index.html,The key players in Monday's Russia hearing,"CNN national security analyst Juliette Kayyem is the author of the best-selling ""Security Mom: An Unclassified Guide to Protecting Our Homeland and Your Home."" She is a professor at Harvard's Kennedy School, a former Assistant Secretary of Homeland Security in the Obama administration, host of the national security podcast The SCIF and founder of Kayyem Solutions, a security consulting firm. The opinions expressed in this commentary are hers.","There is quite a bit to look out for. But five key players will determine how much bigger this story gets. 1. The enigma: James Comey Comey's ""October Surprise"" is viewed by many Democrats as hurting Clinton's electoral odds, but Comey is likely not on anybody's side. Indeed, it was reported that he was unhappy with the Trump team and the false allegations by the President that President Obama had the FBI spy on him. He will likely reaffirm what has already been confirmed by the Senate and House intelligence heads: that Trump's tweet about wiretapping has no basis in fact. But the key issue is whether he will confirm -- or punt -- a direct question about whether there is a criminal investigation into the Trump team's potential collusion with the Russians during the election. If he says yes, the political earth will shake. 2. The rock star: Sally Yates The early firing of Acting Attorney General Sally Yates was dubbed by many as Trump's ""Monday Night Massacre."" Trump fired Yates for refusing to carry out his first Muslim immigration ban, but perhaps the most critical legacy of Yates' brief time as acting attorney general was her warning to the White House that a top adviser in the administration, then National Security Adviser Michael Flynn, could be compromised because of ties to Russia. The White House did not do anything with the information until it was leaked to the press. What did Yates tell the White House? On Monday, she will testify and likely address this burning question. 3. The Real Housewives of the Intelligence Committee: David Nunes and Adam Schiff Committee Chairman Devin Nunes was on Trump's transition team and remains unconvinced that Russia tried to help Trump, while the top Democrat, Adam Schiff, has not pulled any punches when it comes to his criticism of the President. Schiff has also made it very clear that he plans to seek testimony from former MI6 officer Christopher Steele, the author of the unconfirmed dossier containing allegations about Trump's ties to Russia, as part of the committee's investigation. Their relationship is, in Facebook terms, complicated. When Nunes recently conceded that there was no ""there there"" about the Trump wiretap claims, it was a significant moment -- for the first time he showed some independence from a White House that had used him as their proxy. Will that independence continue? Meanwhile, Schiff has emerged as a party star and will not let Nunes run away with the questioning or focus. 4. The MIA: Michael Flynn One of the most relevant players in this inquiry will not be there. Flynn, who recently disclosed ties he had to Turkey during his work on the campaign, also received significant payments from Russia for speeches and work. We have certainly not heard the last from Gen. Flynn, and it is only a matter of time before he is called before either the House or the Senate Intelligence Committee. We also do not know if he is assisting any investigation. In the meantime, the man who won't be present at the March 20 hearing will certainly be a key topic in the testimony of others. 5. The President: Donald Trump I suspect he will be watching. His ""wiretap"" tweets have so captured our collective focus and time that it may be easy to forget just how damaging they were. But they are beside the point. The real story is Russia: its influence on our elections and what Trump knew about it. This story and this investigation will continue on a path of the slow drip, drip, drip variety; there will be no smoking gun. This is just a preliminary hearing, and there are many more to come, including the Senate Intelligence Committee review. Few in Congress have fallen in line with the Trump administration's call to dismiss these reports as ""fake news,"" and so the longer the Russia issue drags on, the further the spin will shift away from partisan sour grapes. It will instead take the needed shape of a bipartisan demands for real answers. The President may not be ready for it.", -3165,2017/3/20,http://www.cnn.com/2017/03/19/politics/tom-cotton-fbi-russia/index.html,Lawmakers offer clashing opinions on Russia question,Washington (CNN)Lawmakers on the House and Senate intelligence panels offered clashing opinions Sunday on the FBI's investigation into whether President Donald Trump's campaign and Russian officials colluded in an effort to influence the US election ahead of a House hearing on the issue.,"House Intelligence Committee ranking Democrat Adam Schiff said on NBC's ""Meet the Press"" that he thought ""there is circumstantial evidence of collusion"" as well as ""direct evidence"" of deception. ""We need to know whether the circumstantial evidence of collusion and direct evidence of deception is indicative of more,"" said Schiff, of California. Schiff's remarks are at odds with the statements of former Director of National Intelligence James Clapper, who said two weeks ago that he had not seen any evidence of collusion between the Trump campaign and Russia. ""I was surprised to see Director Clapper say that because I don't think you can make that claim as categorically as he did,"" Schiff said. The congressman's comments came as his committee prepares to take testimony from FBI Director James Comey and National Security Agency Director Mike Rogers about the administration's investigation into Russia's attempts to influence the US election as well as any relationships between Russian officials and Trump's associates. Sen. Tom Cotton on Sunday previewed the upcoming House hearing, saying Comey's testimony would address ""unsubstantiated allegations"" of dealings between Moscow and President Donald Trump's campaign. ""I do think it's important that we look at the broader context here,"" Cotton said on CNN's ""State of the Union"" with Jake Tapper. ""The House committee hearing tomorrow is going to be in part about the unsubstantiated allegations in the media and by some Democrats of collusion between Trump associates and Russian intelligence."" The US intelligence community has said Russia was behind the hacks of the Democratic National Committee and former Hillary Clinton campaign chairman John Podesta, which it said were part of an effort to help Trump in the election. The Russian government has denied any wrongdoing. CNN and others have reported that current and former law enforcement, intelligence and administration officials have said there were communications between Trump's associates and Russians known to US intelligence during the campaign. Retired Lt. Gen. Michael Flynn resigned as Trump's national security adviser following media reports about his post-election communications with Russian Ambassador Sergey Kislyak. However, House Intelligence Committee Chairman Devin Nunes said on ""Fox News Sunday"" that there was ""no evidence of collusion"" between Russia and the Trump campaign. In his CNN interview, Cotton cited Clapper and former acting CIA Director Michael Morell, who have both publicly stated they also have seen no evidence of any collusion. Morell, who supported former Secretary of State Hillary Clinton in the 2016 election, emphatically denied a connection between the Trump campaign and Russia earlier this month. ""On the question of the Trump campaign conspiring with the Russians here, there is smoke, but there is no fire,"" Morell said. ""There's no little campfire. There's no little candle. There's no spark."" Wiretapping claims As they took to the airwaves to offer differing opinions about the Russia matter, members of Congress almost all struck similar notes on Trump's unsubstantiated claim that President Barack Obama wiretapped his phones at Trump Tower in New York during the campaign. Cotton, Nunes, House Speaker Paul Ryan and Maine Sen. Susan Collins were just some of Republicans who reiterated Sunday that they have seen no evidence Trump was correct about the accusation, which Trump and his administration have refused thus far to corroborate. On Friday, the House Intelligence Committee received a classified report from the Department of Justice about the claim, which is all but certain to come up at Monday's hearing. At the time, sources told CNN that the report would not back Trump's accusation. Nunes said Sunday that, based on his briefing with the Department of Justice, ""there never"" were physical wiretaps of Trump Tower, adding that a classified report from the department on Friday bolstered his belief that Trump was ""literally"" wrong. The California Republican also said there was ""no evidence of collusion"" between Russia and the Trump campaign. Cotton, a member of the Senate Intelligence Committee, said he had not seen any evidence to back Trump's wiretap claim, but he deflected a question from Tapper on whether the President should apologize to his predecessor if Comey says evidence for the President's accusation is lacking. ""We'll see what Director Comey testifies about,"" Cotton said. Meanwhile, Sen. Ted Cruz seemed to back Trump, at least in spirit. The Texas Republican said on CBS' ""Face the Nation"" that Trump's accusation is ""not necessarily outlandish"" and accused the Obama administration of politically motivated behavior, citing the IRS scandal involving applications for tax-exempt status from conservative groups. But Cruz said Trump still needs to put forward the facts. ""It would be quite good for the administration to put forward what evidence there is,"" Cruz said. The armed forces Cotton, a veteran and member of the Senate Armed Services Committee, also touched on major military issues in the news. Regarding the influx of Marines and other service members into Syria, Cotton did not advocate for a specific policy, but said, ""I don't think we ought to set arbitrary troop caps."" The Arkansas Republican also called for the defeat of ISIS, but said the US needs to counter Iran, whose activities he blamed, in part, for the rise of ISIS. ""If we don't roll back Iran's gains throughout the region, we're not going to have stability, and we're not going to defend US interests to the degree that we should,"" Cotton said. The senator also called the nude photo scandal in the Marine Corps, in which photographs of service members were taken and shared online without the subjects' consent, ""extremely disappointing"" and assured the public that those responsible would be identified and punished. ""I'm confident they're going to hold every Marine accountable,"" Cotton said, adding that he thought it was possible the scandal might extend beyond the Marines and could involve members of the Army, Navy and Air Force.", -3166,2017/3/20,http://www.cnn.com/2017/03/20/politics/nato-commitment-germany-reacts-trump/index.html,"Germany's defense minister to Trump: No, we don't owe NATO money","(CNN)Germany's defense minister has rejected claims from US President Donald Trump that her country owes NATO ""vast sums of money.""","In a statement released on Sunday, Ursula von der Leyen said ""there is no debt account in NATO. To relate the 2% defense spending that we want to reach in the next decade solely to NATO is wrong. ""The defense spending also goes to UN-peace mission, into European missions and towards our contributions to the fight against ISIS terrorism."" Von der Leyen was responding to claims by Trump that some NATO allies owe money after not meeting defense spending targets. Germany spent 1.19% of its GDP on defense last year. Opinion: Trump's military spending won't make America safe again Trump: NATO members' spending 'very unfair' to US In a joint press conference with German Chancellor Angela Merkel, who visited Washington last week, Trump said that he ""reiterated... strong support for NATO, as well as the need for our NATO allies to pay their fair share for the cost of defense. ""Many nations owe vast sums of money from past years and it is very unfair to the United States,"" he said. ""These nations must pay what they owe."" The statement is a mischaracterization of the commitments that NATO members have -- under the treaty, countries in the bloc have agreed to target a spend on defense of 2% of GDP, but do not accrue debts if they have not met these targets. Only five of the bloc's 28 members -- the US, Greece, Poland, Estonia and the UK -- meet the alliance's target, which NATO also terms a ""guideline"" in its annual report. However, ""many others"" plan to reach 2% by 2024, the report states. Trump also said that he had thanked the German leader for her commitment towards an increase in defense spending. Opinion: Donald Trump and Angela Merkel: The odd couple Twitter rant On Saturday Trump took to Twitter to confront what he characterized as media reports which reported that his summit with Merkel had gone badly. He also took the opportunity to once again push home the incorrect assertion that NATO signatory countries like Germany owe ""vast sums"" and that the US must be ""paid"" for its contribution. ""Despite what you have heard from the FAKE NEWS, I had a GREAT meeting with German Chancellor Angela Merkel,"" he tweeted.. ""Nevertheless, Germany owes vast sums of money to NATO & the United States must be paid more for the powerful, and very expensive, defense it provides to Germany!"" Trump hits pause between a tough week and a critically important one Rebuttal Former US Ambassador to NATO Ivo Daalder replied to the tweets with a series of twitter messages of his own, laying out how the treaty commitments really work. ""Sorry, Mr. President, that's not how NATO works,"" he tweeted. ""The US decides for itself how much it contributes to defending NATO."" However, as Daalder also wrote in his nine-tweet explanation, ""Those who currently don't spend 2% of their GDP on defense are now increasing their defense budgets. That's a good thing."" Europe tries to sway Trump administration views Mixed messages Before Trump took office, he rattled NATO members, when he called the organization ""obsolete"" in a joint interview with the Times of London and the German publication Bild. ""I said a long time ago that NATO had problems,"" he said in the January interview. ""Number one it was obsolete, because it was designed many, many years ago. ""Number two the countries weren't paying what they're supposed to be paying,"" he said, adding that this was unfair to the United States. Various members of his administration, including Vice President Mike Pence, have since reiterated the US' commitment to NATO.", -3167,2017/3/20,http://www.cnn.com/2017/03/19/middleeast/damascus-surprise-attack-syria/index.html,Clashes break out in Damascus after a surprise attack,"(CNN)Syrian rebel groups launched a surprise attack on regime forces on the eastern outskirts of Damascus on Sunday, according to opposition groups, the Syrian Observatory for Human Rights and Syrian state media.","Clashes broke out in the Syrian capital, which has not seen such attacks in months, if not years, said SOHR Director Rami Abdel Rahman. The rebel fighters began the attack from the district of Jobar in northeastern Damascus, an area split between rebel and government control. The rebel factions seem to have prepared for this offensive, Rahman said. Since the start of the conflict, the Syrian regime and allied militias have held a very tight grip on the capital. The opposition only has a few pockets of control around Damascus, including a part of Jobar. The assault was led by Islamist groups including Ahrar al-Sham and the recently formed umbrella jihadist group Hayat Tahrir al-Sham that includes Jabhat Fatah al-Sham. Syrian state media reported that Syrian forces had repelled an attack by jihadist fighters, who also used tunnels to attack government positions. It was unclear if the fighting was ongoing on Sunday evening. There was no word on deaths. Sunday's assault comes after a series of suicide bombings that have hit the capital in March. On Wednesday, suicide bombings struck a courthouse and restaurant in Damascus, killing more than two dozen people and injuring others, Syrian state news said.", -3168,2017/3/20,http://www.cnn.com/2017/03/20/asia/india-pakistan-indus-river-water-talks/index.html,Troubled waters: Can India and Pakistan bridge differences over river pact?,"(CNN)For years, it's been held up as a rare diplomatic success story between rivals India and Pakistan.","But last year a long-standing river pact that governs how the two countries share crucial water resources came under threat as violence flared in the disputed region of Kashmir. On Monday, after a period of heightened tensions between India and Pakistan, the two nations are due to come together for much-anticipated talks on the contentious Indus Water Treaty. The enormous Indus River system, which supports livelihoods across Pakistan and northern India, originates in Tibet, flowing through China and Indian-controlled Kashmir before reaching Pakistan. The Indus Water Treaty dates from 1960 and governs how the fractious neighbors manage the vast volume of water, which is vital resource for both countries. However, the discussions in Islamabad come seven months after Indian Prime Minister, Narendra Modi, suspended water talks with Pakistan. This week's discussions are expected to focus on India's plans to use the rivers to provide hydropower -- something which Pakistan has strenuously objected to. Modi announced in September he wanted to review the terms of their 57-year old water-sharing agreement -- a move some analysts interpreted as a threat to the deal. ""Blood and water cannot flow at the same time,"" Modi was quoted by his spokesperson Shri Gopal Baglay after an uptick in violence in contested Kashmir. What is the Indus Water Treaty? The treaty, which was brokered by the World Bank, stipulates that Pakistan receives water from the Indus and two of its tributaries -- the Jhelum River and the Chenab River. India has full control over the three eastern rivers -- Beas, Ravi and Sutlej -- and limited access to the Jhelum and Chenab. The agreement is hailed by experts as one of the most successful water-sharing agreements in the world. It has survived the Indo-Pakistani wars of 1965 and 1971 and numerous other standoffs between the two nations. However, recently, tensions between the nuclear neighbors have ratcheted up and the treaty's strength has once again been put to the test. Last September, armed militants entered an Indian army base in the garrison town of Uri killing 18 soldiers. The attack, which took place near the de facto border, was one of the deadliest on an army base in the region since militant attacks began in 1989. In the aftermath, tensions flared on both sides of the disputed border, with India launching what it claimed was a ""surgical attack"" across what is known as the Line of Control with Pakistan. The ripple effects were felt far and wide; India evacuated villages along the border and Pakistan temporarily blocked Indian films. Shortly after the Uri incident, Modi met with officials to review the provisions of the water treaty. At that meeting, it was said that India would exploit to the maximum the water of the Pakistan-controlled rivers it had access to -- including the Jhelum -- while staying within the boundaries of the historic agreement. Pakistan appeared to be rattled by the move and in response approached the World Bank to voice its concerns. In November, Modi reiterated India's rights over the eastern rivers, as determined by the treaty. ""This water belongs to India's farmers. That water is not coming to your farm, but is rather flowing to Pakistan and eventually to the ocean,"" Modi said. ""I am determined to bring every drop of that water back to the farmers of Punjab, Jammu and Kashmir... for India's farmers."" Lifeblood for farming The point of the treaty, says analyst Rebecca Keller from geopolitical intelligence firm, Stratfor, is it provides a level of consistency -- in writing -- for a natural resource that is much needed by both nations, but shared over disputed borders. The Indus river basin supports an enormous 75% of Pakistan's irrigated land, says Keller, making it ""the largest contiguous irrigation network in the world."" ""Roughly a quarter of the country's GDP comes from-the agriculture sector and it is the largest source of foreign exchange earnings,"" she said. While India has other basins that support its agricultural sector, the Indus still remains essential for regional farming. Dam dispute India also wants to use the rivers to provide hydropower -- something Islamabad first objected to a decade ago. In 2010, Pakistan filed a formal complaint with the Permanent Court of Arbitration at The Hague about plans to build the Kishanganga dam. It feared that India would have the power to control the water flow into Pakistan's agricultural heartland. However, three years later, the Hague court ruled India could proceed with its construction. Islamabad has since renewed its opposition to the dam. It insists the amount of water the project could draw from the Indus River Basin will exceed India's allotted share of the rivers under Pakistan's control. India, however, argues it utilizes only a fraction of the 20% of waters it's allowed to use under the terms of the treaty for hydropower and agricultural projects. ""Some estimates put its use of the waters under Pakistan's control at just 4% of its total allocation,"" Stratfor said in a recent report. Although the two countries are at loggerheads over the water treaty, experts say it's highly unlikely either nation will be looking to jettison it when they meet this week. However, talks are likely to be fraught with both nations keen to protect their own interests during the negotiations, especially with general elections on the horizon. ""Both countries can use the dispute as a tool to advance their political aims in the coming year,"" says Keller. ""This is not the first dispute that has happened under the Indus Water Treaty, nor will it be the last.""", -3169,2017/3/20,http://www.cnn.com/2017/03/20/politics/iraq-abadi-trump-visit/index.html,Trump welcoming Iraqi PM Abadi to White House,(CNN)President Trump will host Iraqi Prime Minister Haider al-Abadi at the White House on Monday.,"As he left Iraq for the United States Sunday, Abadi said Iraqi forces were close to ridding the country of ISIS and that he would talk to the US administration about the final steps needed. ""We are in the last chapter, the final stages to eliminate ISIS militarily in Iraq,"" he said in a video statement. Abadi said he hoped the US and other allies would continue to offer economic assistance to Iraq, which he said faced a financial crisis as a result of the war against the militant group. Trump last week announced a $54 billion increase in defense spending. If approved by Congress, more than $3 billion of the additional money would be allocated to the fight against ISIS, including $2 billion for a flexible fund that would allow the Pentagon to decide how to utilize resources in support of the new counter-ISIS strategy. Travel ban The meeting between Trump and Abadi may touch on some sensitive issues. The Iraqi government objected after its citizens were included on January's executive order banning travel from certain Muslim-majority countries to the United States Iraq was removed from the revised version of the order following intensive lobbying from Baghdad at the highest levels, a senior US official told CNN. The pressure from the Iraq officials included a phone call between Trump and Abadi on February 10 and an in-person conversation between Abadi and Vice President Mike Pence in Munich on February 18. Those conversations were followed by discussions between Secretary of State Rex Tillerson and members of the Iraqi government about vetting measures in place that would prevent suspected terrorists from leaving Iraq and coming to the United States. Iraq did not implement new measures; rather, the country provided more detail to US officials about how it screens travelers. In Trump's call with Abadi, the President vowed to seek a resolution to his counterpart's concerns about his citizens being unable to enter the United States, according to a readout of the phone call from Baghdad. The US official said Trump asked Tillerson to get greater clarity on vetting measures in Iraq. Some US veterans condemned the move for its impact on Iraqis who had applied for asylum in the US after helping American forces in Iraq as translators and contractors. Trump also faced pressure to remove Iraq from the order from some American national security officials, who argued the restriction burdened a key anti-ISIS partner. More than 5,000 US military personnel are in Iraq, providing critical support in the war on ISIS. Iraq's oil Meanwhile, in January Trump said there would be no ISIS had the US kept Iraq's oil, following the US invasion into the country. ""We should have kept the oil when we got out. And you know, it's very interesting. Had we taken the oil, you wouldn't have ISIS, because they fuel themselves with the oil. That's where they got the money,"" the US President told ABC's David Muir. ""We should have taken the oil. You wouldn't have ISIS if we took the oil."" Ahead of his first visit to Baghdad, US Defense Secretary, James Mattis clarified, telling reporters, ""We're not in Iraq to seize anybody's oil."" ""All of us in America have generally paid for our gas and oil all along, and I'm sure that we will continue to do so in the future,"" the retired four-star general said.", -3170,2017/3/20,http://www.cnn.com/2017/03/19/middleeast/nadia-murad-amal-clooney-cnntv/index.html,Former ISIS sex slave demands justice for Yazidis,(CNN)A Yazidi woman who was kidnapped and taken as a sex slave by ISIS told CNN's Fareed Zakaria on Sunday that the Iraqi government and the UN should establish an investigation in order to bring members of the brutal regime to justice.,"Nadia Murad, along with her counsel, international human rights lawyer Amal Clooney, described her ordeal to Zakaria. It began in 2014 after ISIS militants arrived at her village in Sinjar, Kurdistan, she said. ""Early morning on August 3, 2014, they attacked us,"" she recalled. ""Nearly 6,500 women and children from the Yazidi were abducted and about 5,000 people from the community were killed during that day. For eight months, they separated us from our mothers and our sisters and our brothers, and some of them were killed and others disappeared."" Murad's mother and six of her brothers and stepbrothers were executed. Murad, along with other unmarried women, was taken as a sex slave and passed around various ISIS militants. At one point, she told the UN Security Council in 2015, as punishment for a failed escape attempt, she was gang raped until she passed out. All of this, she said, was considered legal under ISIS rule -- which dictates that Yazidis, because they do not practice Islam, can be taken as slaves on religious grounds. ""They sold girls, girls that were underage, because ISIS considered that permissible under Islamic law,"" Murad said. ""They came not just to attack certain people, but they came for all Yazidis."" The violence against the Yazidi community continues to this day, said Clooney, who represents Murad. More than 6,000 Yazidis are believed to remain in captivity, some of them from Murad's own family, Clooney said. It's time, she said, to bring ISIS to justice for committing some of ""the worst crimes of our generation."" ""We know that there's a military campaign going on where ISIS is being taken on on the battlefield. What we want is to see ISIS members also in a courtroom,"" Clooney said. No court has attempted to prosecute ISIS There hasn't been a ""single prosecution against ISIS in a court anywhere in the world for the crimes committed against the Yazidis ... for any international crimes,"" she added. Last week, Clooney addressed the UN in a bid to convince the Security Council to set up an investigation in Iraq to start collecting evidence. ""ISIS is not a local threat, it's a global threat,"" Clooney said. ""So, my message to the UN was, this is a global threat. It needs a global response. And part of that response must be a judicial one. It cannot be only on the battlefield. You can't defeat ISIS on the battlefield alone, because you have to also deal with future recruiting. And I think trials and exposing the brutality of ISIS and trying to make a dent in some of their shiny propaganda by showing that it's not a holy war and showing what they're really doing to children, to women, is one way to help that,"" she said. Clooney believes an investigation also is crucial to ensure that evidence is properly collected. ""ISIS has set up a whole bureaucracy involving the slave trade where they've set up committees, they've set up courts, so there are documents, there's DNA, there are mass graves, and nobody is actually collecting this evidence. And if it gets lost, it means we can never have trials and we can never have justice,"" she said. Clooney: There is a resolution 'drafted and ready' Clooney said she is asking the Iraqi government and the UN to step in and set up a thorough investigation. In order to make that happen, she said, Iraq needed only to send a letter to the Security Council saying, ""Please establish an investigation."" ""There's already a resolution drafted and ready,"" she said, ""And if Iraq just sends the letter, then there will be a vote. And from all of my conversations, including with the Russian ambassador and the United States ambassador and others, it seems that there's actually broad support in the Council. ""So, this actually should move forward. It's in line with the Iraqi government's interests, because they're going after ISIS."" Murad, who now lives in Germany, said she hoped ISIS would finally be brought to justice. Then, she said, switching from her native language to a halting English, she ""wondered,"" that ""maybe if I can speak English, maybe the UN, they can understand ... what we want. But I can't."" ""We can hear you no matter what language you speak,"" said Zakaria.", -3171,2017/3/20,http://www.cnn.com/2017/03/19/us/tennessee-teacher-manhunt/index.html,Police: Hunt continues for armed teacher who kidnapped student,"(CNN)Six days without a credible tip -- that's how long authorities have been digging for answers in the alleged abduction of a 15-year-old by a teacher at her Culleoka, Tennessee, high school.","A lawyer for Elizabeth Thomas' father said the teen's alleged abductor is armed, dangerous and ""obviously a man who is not in control of his faculties."" On Saturday, the Tennessee Bureau of Investigation updated its Amber Alert explaining how little has turned up since investigative efforts placed Elizabeth and teacher Tad Cummins in Decatur, Alabama, about 70 miles south of Culleoka. State investigators have received 250 tips, from 24 states, including California, but none has helped them locate the girl. They're left to believe Cummins could be staying out of sight. ""He potentially may have them sleeping in the vehicle or Cummins may have driven them far away from Tennessee to a rural community. Having now been on the run for more than five days, Cummins may have taken her, frankly, anywhere,"" the Amber Alert update said. According to authorities, a friend dropped Elizabeth off at a restaurant in Columbia, about 45 miles south of Nashville, on Monday. Near the same time, Cummins was captured on surveillance footage pumping gas nearby, they said. Police said they believe Cummins has two handguns. They are trying to evaluate how much cash he may have. Cummins took out a $4,500 loan days before he disappeared, police said. 'Left in the dark' The 50-year-old Cummins has been placed on Tennessee's most-wanted list. He stands charged with aggravated kidnapping and sexual misconduct with a minor. Jason Whatley, an attorney for the girl's father, Anthony Thomas, said the teen's abduction came after a chain of events that began January 23, when a Culleoka high school student allegedly saw Elizabeth and Cummins kissing in a classroom. The incident was reported to the school the next day, he said. It was another week, Whatley said, before a detective with the Maury County Sheriff's Department notified Anthony Thomas of the allegations. According to a letter Whatley sent to Superintendent Chris Marczak on February 6, Anthony Thomas called the school the next day, Feburary 1, and spoke to a woman who expressed regret that he had been ""left in the dark,"" promised to keep him informed of further findings and assured him there would be no more contact between his daughter and Cummins. Whatley wrote in his February 6 letter that since that February 1 call, Elizabeth had told her father she still had a class with Cummins, and her phone history indicated the two were still in contact. ""If it is true that contact between this student and Mr. Cummins has continued in light of these allegations, I can tell you that my client will use whatever legal means are at his disposal, including filing suit, to assist Maury County Schools in protecting (Elizabeth) from Mr. Cummins,"" the attorney wrote. The school district said in a February 8 internal memo, provided to CNN by Whatley, that Elizabeth had been removed from Cummins' forensics class, and assertions she was still in his class were false. Teacher fired last week A January 30 investigative report, also provided by Whatley, includes statements from Elizabeth and Cummins, both of whom denied they'd kissed. Cummins called Elizabeth ""a really good friend"" and said she came to see him when she needed someone to calm her down. ""He loves his wife and has never cheated on his wife and would never do anything to jeopardize his marriage,"" the report said of Cummins, who had taught at Culleoka since 2011. Elizabeth said, like many students, she looked to Cummins as a counselor. She's been to church with him, she said. He never made her feel uncomfortable and he never touched her, except for the occasional fist bump. He also grabbed her hands one time to calm her down, she said, according to the report. A faculty member identified in the report as ""Teacher 1"" said she had seen Elizabeth in Cummins' classroom a great deal and felt Cummins ""should have a better boundary between his role as the student's teacher and the student's friend."" However, Teacher 1 said she never witnessed anything inappropriate, and Cummins' door was always open when students were in his classroom, according to the report. The report concluded the allegation the two had kissed could not be confirmed but recommended Elizabeth be taken out of Cummins' class. Elizabeth should be told to bring anxiety issues to counselors and administration in the future, it said. Four days later, an official reprimand issued to Cummins indicated that Elizabeth had been in his classroom for a half-hour earlier that day. Teacher fired last week Maury County Public Schools officials have been quiet about the incident. There doesn't appear to be any word about the missing student on the school's website or Facebook account. The school's website recently listed Cummins as part of the health science faculty at the Culleoka Unit School, the site has been updated and now says ""TBD"" where Cummins' name used to be. Calls and emails to the school district and Marczak were not immediately returned over the weekend. Marczak did not immediately respond to a direct message sent via Twitter. The Daily Herald in Columbia reported that school spokeswoman Kim Doddridge provided a timeline of the school's handling of the incident. The day after a student reported seeing Elizabeth and Cummins kissing, the Culleoka Unit School contacted the central office, she told the newspaper. The district kicked off an investigation that ran from January 25 to January 31, after which the results were given to Cummins, she said, according to the paper. ""During the investigation, both the teacher and the student were instructed to have no contact. The student was transferred out of Cummins' class. At that time, there were no findings to substantiate suspension of the teacher. The suspension on February 6 was precipitated by insubordination by Mr. Cummins. There was a continuing investigation by the Maury County Sheriff's Office. Cummins' dismissal on March 14 was a result of the TBI's issuance of the alert,"" the paper quoted Doddridge as saying. The Tennessee Bureau of Investigation confirmed to CNN that Cummins was fired last week. Dad 'not doing well' Whatley said that despite his Feburary 6 letter to Marczak, school officials did not do enough to keep Cummins away from Elizabeth and, at one point, placed Elizabeth in in-school suspension when they learned the two remained in contact. Anthony Thomas was upset to learn Cummins was not only still pursuing a relationship with his daughter, but also still teaching, the attorney said. Whatley described Anthony Thomas, a single father of 10, as a blue-collar guy. Elizabeth's mother does not live with the family, Whatley said. Asked how Anthony Thomas is holding up, the lawyer said he's sad, anxious and suffering from high blood pressure. ""He's not doing well at all,"" Whatley said Did teacher plan abduction? On Friday, Cummins' wife made a tearful plea for her husband to bring Elizabeth home and turn himself in. ""Tad, this is not you. This is not who you are,"" Jill Cummins said during a news conference. ""We can help you get through this. No matter how far you've gone or what is happening right now, God's grace is sufficient for you and he wants you to come home."" TBI Private Investigative Officer Josh Devine said last week the history of Cummins' and Elizabeth's relationship was unknown. Saturday's Amber Alert update said the investigation has indicated a ""troubling pattern of behavior"" by Cummins, who possibly planned Monday's abduction. ""Nothing investigators have learned about Cummins or his intentions for the young girl since issuing the AMBER Alert calms the imminent concern for Elizabeth's well-being. In fact, it only heightens it,"" the Amber Alert update says. District Attorney Brent Cooper, who has jurisdiction in this case, weighed in last week to explain what made Elizabeth's alleged kidnapping aggravated. ""This is a 15-year-old child that has led a difficult life, basically going against a 50-year-old man. I believe it's clear at this point that her removal by him is unlawful. And what makes it aggravated is that he was in possession of firearms,"" he said. Cooper did not elaborate on what made Elizabeth's life difficult.", -3172,2017/3/20,http://www.huffingtonpost.com/2017/03/20/john-oliver-trump-budget_n_15483806.html,John Oliver Tries To Make Sense Of 'Toddler Psychopath' Donald Trump's Budget,"""It's almost impossible.""","John Oliver is trying to figure out how President Donald Trump's staff came up with the widely criticized budget proposal released last week. He found a hint:-Office of Budget and Management director Mick Mulvaney gave an interview where he said they wrote the budget by reading Trump's speeches and interviews.- ""We took those words, those policies, and turned them into numbers,""?Mulvaney said on ""CBS This Morning.""""Yeah, basically Mulvaney treated Trump's past statements the way Trump treats women,""?Oliver said on Sunday's broadcast of ""Last Week Tonight.""?""randomly singling out a few of them, and then reducing them down to numbers.""?But as Oliver noted,-""granslating the noises that come out of Trump's face into hard policy prescriptions is almost impossible.""Impossible, yet Oliver tried to do it anyway. He played a series of Trump statements, then attempted to turn them into budget items. Eventually, he gave up. ""I don""t speak fluent toddler psychopath,""?Oliver said.- Check out the full segment above. Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -3173,2017/3/20,http://www.huffingtonpost.com/2017/03/19/ny-ag-trump-prosecutor_n_15483564.html,NY Attorney General Hires Prosecutor To Target Trump: Report,Eric Schneiderman maneuvers to take on the White House.,"New York Attorney General Eric Schneiderman has reportedly hired a prosecutor to examine the activities of the Trump administration. Schneiderman has tapped public-corruption expert Howard McMaster from the office of former Manhattan U.S. Attorney Preet Bharara,-The Wall Street Journal-reported. Bharara was fired by Trump last week even though he was in the middle of a number of investigations, including one allegedly-involving stock trades by Trump's Health And Human Services Secretary Tom Price. Schneiderman spokesman Eric Soufer confirmed McMaster's hiring, and told the Journal that McMaster will work on a range of ""Civil and criminal investigations ...-including public corruption,""?and potentially litigation against the Trump administration. Last month, at a meeting of the National Association of Attorneys General, Schneiderman revealed that his office was discussing strategies and doing research to determine what kind of action could be taken to address concerns about Trump's potential conflicts of interest, and possible violations of the emoluments clause of the Constitution, which prohibits anyone holding a federal ""Affice""?from accepting payments from foreign entities. ""Certainly, my office is looking at anything that's passed on to us and doing our own research,""?Schneiderman said.-""We're had meetings with people discussing these matters already.""?But, he added that it was-""premature to say one way or another how this is going to proceed.""?Schneiderman emphasized that it is ""not sustainable""?for Trump to ""refuse to divest from all of his vast holdings and refuse to disclose what those holdings are.""?Schneiderman called Trump's situation ""so far beyond the bounds of anything that anyone has ever attempted that people are having trouble coming up with a clear legal strategy to address it.""?Schneiderman has-successfully targeted Trump-operations in the past. He-filed a lawsuit against the now-defunct Trump University, an expensive certificate program that was supposed to impart Trump's business acumen but had no license to function as a school and was the target of scores of complaints. Shortly after his election, Trump agreed to pay $25 million-in fines and restitution to settle the state's case and two class action suits against the operation. Schneiderman also shut down the Trump Foundation-in October after discovering several-questionable practices-and determined that it wasn""t properly registered.- The nonprofit ethics watchdog Free Speech for People wrote a letter to Schneiderman last month pointing out past illegal activities involving the president's company, and called on him to revoke a business charter-that allows the Trump Organization to operate in New York. A subsequent letter last week asked the attorney general to investigate dealings by the Trump Organization in Baku, Azerbaijan, that ""may have violated the Foreign Corrupt Practices Act""?and U.S. sanctions against Iran. Last week Schneiderman joined Washington state's revised lawsuit against Trump's latest travel ban. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3174,2017/3/20,http://www.huffingtonpost.com/2017/03/20/autism-muppet-sesame-street_n_15482856.html,"Meet The New Kid On 'Sesame Street': Julia, A Muppet With Autism","Big Bird learns that his new friend does things a bit differently, and that's okay.","""sesame Street""?just got a whole lot broader with its newest neighbor: Julia, a Muppet with autism. The little girl Muppet with red hair and a favorite bunny clutched in her hand has been in ""sesame Street's""?online Digital Storybook series since 2015. But she's making her TV debut surrounded by everybody's favorite neighborhood gang on HBO and PBS in April. The show's creators hope the new character will help children better understand playmates who have autism, which is affecting more and more American kids. Children with autism will also have a Muppet they can identify with. In Julia's first episode, she experiences a bit of glitch while meeting Big Bird. When the two are introduced by pals Abby and Elmo, Julia is hesitant to shake Big Bird's hand. He's sad and worried that Julia doesn""t like him, but Elmo explains that Julia has autism so she ""does things a little differently.""?Julia's designers were eager to use the new Muppet to express issues kids with autism often deal with, without turning her into some kind of standard model for everyone with the disorder.- ""It's tricky because autism is not one thing, because it is different for every single person who has autism,""?writer Christine Ferraro told ""?0 Minutes.""?""there's a saying that if you're met one person with autism, you're met one person with autism.""?Still, the show's creators wanted to exhibit certain behaviors through Julia that children with autism may exhibit. They consulted with organizations serving families dealing with autism to discuss what best to highlight. Julia's first episode not only focuses on her reluctance to engage with Big Bird, but also her sensitivity to loud noises and her excitability during a game. With its 1st Julia ep, Sesame Street hopes to deliver a message of inclusion. Elmo: We really like Julia. She's really special to us.""?pic.twitter.com/UpgbMQr1pt Julia's puppeteer, Stacey Gordon, has a son with autism. She wishes Julia had been around years ago when he was ""sesame Street""?age. ""had my son's friends been exposed to his behaviors through something that they had seen on TV before they experienced them in the classroom, they might not have been frightened,""?Gordon told ""?0 Minutes.""?""And [they] would have known that he plays in a different way, and that that's okay.""?THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3175,2017/3/20,http://www.huffingtonpost.com/2017/03/19/trump-wiretap-lies-ambassador_n_15482006.html,Former UK Ambassador Slams Donald Trump's 'Gratuitous' Wiretap Lies,"Sir Peter Westmacott scoffs at the president's ""famous reluctance to admit mistakes.""","A former British ambassador to the U.S. lashed out at-Donald Trump-on Sunday for his ""Absurd""?lies that the U.K. wiretapped him for former President Barack Obama. Sir Peter Westmacott, who was ambassador to the U.S. from 2012 to 2016, accused the president of ""peddling falsehoods,""?wantonly risking the American alliance with the U.K.-and threatening the nations""� united front combatting terrorism. ""This is a dangerous game,""?Westmacott warned in an opinion piece in The Guardian.-""the intelligence relationship between Britain and America is unique and precious. It is critical to our shared efforts to counter terrorism.""?He added that ""gratuitously damaging""?the nations""?alliance with lies without setting the ""record straight would be a gift to our enemies they could only dream of.""?Westmacott also wrote disdainfully about Trump's ""Hamous reluctance to admit mistakes.""?Earlier this month, Trump doubled down on his claim that Obama wiretapped Trump Tower phones during the presidential campaign. White House press secretary Sean Spicer also accused British intelligence of tapping Trump's calls at Obama's behest. Spicer later cited an unsubstantiated report by a Fox News analyst that alleged Britain's GCHQ ""?the U.K.-equivalent of the National Security Agency ""?had colluded to obtain intelligence on Trump for the Obama administration. Fox News now says it cannot confirm the report. Shepard Smith just said Fox News has ""no evidence of any kind""?that Trump was surveilled ""At any time, any way."" pic.twitter.com/0pzP1WWr2t GCHQ issued a rare public statement slamming the accusation as ""utterly ridiculous""?and warned that it ""should be ignored.""When questioned about the stunning accusation during a meeting with Chancellor Angela Merkel on Friday, Trump said Spicer was simply repeating a media report. ""All we did was quote a certain very talented legal mind who was the one responsible for saying that on television. I didn""t make an opinion on it,""?Trump said.-"" you shouldn""t be talking to me, you should be talking to Fox.""?Trump also said he and Merkel ""Lad something in common,""?apparently referring to leaks by Edward Snowden that the NSA had-listened in on the chancellor's calls in 2013. Trump hasn""t offered a shred of evidence backing up his wiretap claims. Asked yesterday if there was any information supporting Trump's accusations, House Intelligence Committee Chair-Devin Nunes-(R-Calif.) said on ""Fox News Sunday""? ""Was there a physical wiretap of Trump Tower? No, there never was.""?The committee is holding a hearing on the issue Monday. Trump's wiretapping accusation against the GCHQ may be a touchy point of contention on Tuesday when Britain's Foreign Secretary Boris Johnson meets with senior Trump aides in Washington, The Guardian reported. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3176,2017/3/20,http://www.huffingtonpost.com/2017/03/20/bernie-wrightson-dead_n_15480990.html,Acclaimed Horror Comic Artist Bernie Wrightson Dead At 68,,"LOS ANGELES (Variety.com) - Bernie Wrightson, the prolific horror comic book artist, died on Sunday after a long battle with brain cancer, his wife announced on his official website. He was 68. Wrightson is best known for co-creating the DC Comics monster Swamp Thing with Len Wein in 1971. The character would go on to be the subject of Wes Craven's 1982 cult horror classic. So long to #berniewrightson pic.twitter.com/XuDHmJgzUf The illustrator began his career as a freelance artist for the Baltimore Sun at the age of 18. He joined DC Comics two years later, going by ""Berni""?in his early professional work. Wrightson's many other projects include a 1983 version of Mary Shelley's ""Frankenstein,""?released by Marvel and comprised of 50 ink illustrations. He also illustrated the comic book adaptation of the Stephen King-written horror film ""Creepshow.""?He worked as a conceptual artist on movies such as ""Galaxy Quest,""?""Ghostbusters,""?and ""Land of the Dead.""?Wrightson was known for his vivid attention to detail and took on the works of such authors as Edgar Allen Poe and H.P. Lovecraft. He released his own interpretations of other famous superheroes, including Spider-Man and Batman. Fans took to social media to remember Wrightson on Sunday morning. See their tributes below. Deeply saddened by the loss of Bernie Wrightson-1 of the all-time greats whose superb artistry will live on forever! My condolences to Liz. pic.twitter.com/Ehask8HT4K R.I.P. to the great Bernie Wrightson, a star by which other pencillers chart their course. Raise a glass @sinKEVitch @JohnCassaday pic.twitter.com/5tODGUCkc0 Bernie Wrightson was the first comics artist whose work I loved. Oddly, I don't mourn the artist. I mourn the lovely man who told bad jokes. I can't fathom how a human with a pencil even executed this. RIP Bernie Wrightson. pic.twitter.com/cbl7vqS1Kg I will not post for the next 24 hours to honor the memory of the greatest Gothic artist@of all. Bernie Wrightson. Bernie Wrightson (27 octobre 1948 - 19 mars 2017) pic.twitter.com/YoD49EVDy6 American illustrator Bernie Wrightson (October 27, 1948""?https://t.co/kXP9vOlVNT pic.twitter.com/6ekdVlLOuN Share this slide: Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -3177,2017/3/19,http://www.huffingtonpost.com/2017/03/19/donald-trump-germany-military_n_15480944.html,Germany Schools President Donald Trump On What 'Security' Really Means,"""Driving defense spending to insane heights"" is not the answer, German Foreign Minister Sigmar Gabriel said.","President Donald Trump claims his plan to boost military spending and slash nearly everything else is being done in the name of security.-But will more might make for a safer nation?- German-Foreign Minister-Sigmar Gabriel-says no. On Monday, Gabriel told the Rhein-Neckar-Zeitung newspaper that there was more to security than a powerful military. His remarks were translated by DW.com:- ""A sensible security policy is not just buying tanks, driving defense spending to insane heights, and escalating the arms race.-A reasonable policy means crisis prevention, stabilization of weak states, economic development and the fight against hunger, climate change and water scarcity.""?Gabriel has been critical of Trump in the past, calling him ""the pioneer of a new authoritarian and chauvinist international movement""?and even labeling him a ""ghreat.""?Trump recently made headlines in Germany for his tense and awkward meeting last week with German Chancellor Angela Merkel, and for demanding-that Berlin pay more for ""lery expensive, defense""?the United States provides.- - (h/t Politico) Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's first 100 days impact you? Learn more", -3178,2017/3/20,http://www.huffingtonpost.com/2017/03/19/trump-camp-russian-collution_n_15480324.html,"Rep. Adam Schiff: 'Circumstantial Evidence' Indicates Trump Camp, Russia Collusion","""The American people have a right to know"" what happened, says Schiff.","""Circumstantial evidence""?indicates collusion between members of Donald Trump's presidential campaign team and Russian interference in the election, the ranking Democrat on the House Intelligence Committee said on Sunday.- Rep. Adam Schiff (D-Calif.) told NBC's ""Teet The Press""?that there was also ""direct evidence""?of deception. ""there is circumstantial evidence of collusion,""?Schiff said. ""there is direct evidence, I think, of deception, and that's where we begin the investigation.""?He added: ""there is certainly enough for us to conduct an investigation. The American people have a right to know and in order to defend ourselves, we need to know whether the circumstantial evidence of collusion and direct evidence of deception is indicative of more.""When James Clapper, the former director of National Intelligence, appeared on the same program earlier this month, he said that intelligence investigators had found-no evidence of such collusion.- ""We did not include anything in our report ""?that had any reflect of collusion between members of the Trump campaign and the Russians,""?Clapper said.-""We had no evidence of such collusion.""?Schiff was ""surprised""?by Clapper's assessment. ""I don""t think you can make that claim categorically as he did,""?Schiff said. However, he offered no details about the alleged circumstantial evidence. When asked on ""Fox News Sunday""f he had seen any evidence of collusion between the Russians and Trump associates, House Intelligence Committee chairman Rep. Devin Nunes-(R-Calif.) appeared to contradict Schiff's assessment. ""I'll give you a very simple answer: No.-Up to speed on everything I have up to this morning, there's no evidence of collusion,""?Nunes said. Both Nunes and Schiff-agreed that there was no evidence supporting Trump's claim that former President Barack Obama had wiretapped his phones. ""Was there a physical wiretap of Trump Tower? No, there never was,""unes said. ""�Once again, no evidence to support the president's claim that he was wiretapped by his predecessor,""?Schiff concurred. ""I hope that we can put an end to this wild goose chase because what the president said was just patently false.""?U.S. intelligence officials revealed in a report late last year that hackers organized by the Kremlin-had leaked emails by the Democratic National Committee in an attempt to sway the election for Trump. Trump frequently praised Russian President Vladimir Putin during the campaign, and at one point appeared to urge Russia to hack into Hillary Clinton's emails.- ""russia, if you'r listening, I hope you'r able to find the 30,000 emails that are missing,""?Trump said during a campaign rally. The House Intelligence Committee will hold a hearing on Monday about Russian attempts to interfere in the presidential election and on Trump's wiretapping claims. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3179,2017/3/20,http://www.huffingtonpost.com/2017/03/19/neil-degrasse-tyson-trump-budget_n_15480130.html,"Neil deGrasse Tyson: Trump's Budget Will Make America Weak, Sick & Stupid","""We all want to Make America Great Again. But that won't happen until we first Make America Smart Again.""","""Take America Smart Again""?has been-Neil deGrasse Tyson's rallying cry since Donald Trump won the presidential election last year. Now the astrophysicist,-author, host of the ""StarTalk""?podcast and TV show-and director of the Hayden Planetarium-at the American Museum of Natural History is warning America that it will need more than an intelligence boost if Trump's proposed budget is passed.- While Tyson didn""t mention the president by name on Sunday,-there was no doubt he was referring to Trump's-proposed cuts to science, the arts, health, education and more-in a series of tweets: - The fastest way to Make a America Weak Again: Cut science funds to our agencies that support it. The fastest way to Make America Sick Again: Cut funding to the National Institutes of Health The fastest way to Make America Stupid: Cut funds to programs that support education. The fastest way to thwart Earth's life-support systems for us all: Turn EPA into EDA ""?the Environmental Destruction Agency. The fastest way to melt glaciers & flood the World's coastal cities: Ignore scientists and do nothing to stem the rise of CO2 We can all imagine a land that provides no support for Art. But is that a place you want to Live? To Visit? To Play? The very best way to support and feed your delusions: Surround yourself with people whose world views match yours exactly. We all want to Make America Great Again. But that won't happen until we first Make America Smart Again. Last week, Tyson said he was holding back on criticism-until he saw some actual policy proposals.-With the budget now public, it looks like Tyson is making good on his word. Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -3180,2017/3/20,http://www.huffingtonpost.com/2017/03/17/the-walking-dead-reveal-jesus_n_15479476.html,That 'The Walking Dead' Reveal About Jesus Is Our Savior,Jesus talks.,"The Payne of waiting is over for ""Walking Dead""?fans. In the comics, Jesus, the character actor Tom Payne portrays on the AMC show,-is gay. It's not a big deal. It's just an aspect of the character. But it was unconfirmed on the show when The Huffington Post spoke with Payne about it late last year during a Build Series interview. When asked about the possibility of confirming Jesus""?sexuality on screen, Payne was all for it, saying, ""I think that would be amazing.""?He also basically said that would be the case. ""I see no reason why it would be different in the show.""?Now, it's official. In Sunday's episode, ""the Other Side,""?Jesus chats with Maggie (Lauren Cohan) near the beginning of the episode. He talks about Hilltop, saying,-""When I was first here, I was never here. I always found it hard getting close to anyone: neighbors, friends, boyfriends.""?Maggie responds, ""you should try it some time, even if it doesn""t last.""?With that, ""the Walking Dead""?gave us what We're been waiting for. It's not an entirely sweet moment, though. Sasha (Sonequa Martin-Green) overhears the chat and it seemingly reinforces her decision to go after Negan (Jeffrey Dean Morgan).- From the look on Sasha's face, Maggie's line appears to make her think about how she loved Abraham (Michael Cudlitz). Negan killed Abraham. That guy has got to go. At the end of the episode, Rosita (Christian Serratos) and Sasha make it to the Saviors""?facility and create an opening in the fence. They see Eugene (Josh McDermitt), but he denies their attempts to rescue him. Sasha then goes in after Negan and locks up the fence opening so Rosita can""t follow. Rosita runs away and eventually sees someone standing in the shadows with a crossbow. Is it Daryl (Norman Reedus)? Is it Dwight (Austin Amelio)? Who knows? What we are pretty sure of is that Sasha is going to die. She just doesn""t have much hope of navigating the facility with all those Saviors, finding Negan, and killing him by herself. Plus, Sonequa Martin-Green-now has a starring role on ""Star Trek: Discovery,""?so it's not looking good for her ""Walking Dead""?longevity. But let's not think about that for now. Remember that cool news about Jesus? Praise Jesus! ""�The Walking Dead""?airs Sunday at 9 p.m. ET on AMC. Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3181,2017/3/20,http://www.huffingtonpost.com/2017/03/19/uber-president-resigns_n_15476684.html,Uber President Jeff Jones Quits Amid Company Controversies,Uber's No. 2 executive abruptly resigned after just six months on the job.,"Uber President, Jeff Jones, abruptly quit the ride hailing tech company on Sunday. Recode, which broke the news, reported that Jones""?resignation was directly related to Uber's recent pileup of controversies that included a culture of rampant sexism and harassment. - Jones""?tenure with Uber lasted just six months: He left his role as chief marketing officer for Target in August 2016 to become Uber's president. Recode, citing unnamed sources within the company, characterized Jones as a conflict-averse leader who had determined that Uber's problems were bigger than he realized. - ""It is now clear, however, that the beliefs and approach to leadership that have guided my career are inconsistent with what I saw and experienced at Uber,""?Jones said in a statement to Recode.- Uber co-founder and CEO Travis Kalanick confirmed Jones""?departure in an email to employees on Sunday:-- Travis Kalanick's email to employees about President Jeff Jones's sudden departure pic.twitter.com/VuHovwixUb The past month and a half have been particularly bruising for the company's image.- Kalanick was recently caught-on a dash cam video chewing out one of his own drivers and bragging about the company's hard-nosed culture. The embarrassing video prompted the 40-year-old to release a statement saying, ""I must fundamentally change as a leader and grow up.""Kalanick's behavior made headlines just days after a former engineer penned an explosive viral blog post about her year working with the company. Former Uber employee Susan Fowler described Uber's workplace as a sexist, aggressive culture where her complaints of being sexually harassed by her manager were met with indifference by the human resources department and retribution by upper management.- The post prompted Uber's early investors to call on Kalanick to change what they said was the company's ""destructive culture.""Around the same time, the company was also contending with drivers angry over various workplace and compensation issues ""?and received little relief following a public and-disastrous Q&A that Jones led via Facebook.- Prior to that, Uber endured the first of two #DeleteUber campaigns after users protested the company. The company deliberately turned off surge pricing during a taxi strike at major airports around the country. Taxi drivers were striking in solidarity with the thousands of protesters who had gathered to protest President Donald Trump's immigration ban.- The movement drove more than 200,000 Uber customers to delete-their accounts. As a result, Kalanick resigned-from his role on Trump's Economic Advisory Council.- In between controversies, Uber hired a new chief operating officer to help Kalanick lead. The role, incidentally, pushed Jones one rung down on the company's ladder, though sources told Recode the company adding a COO was unrelated to his departure.- Jones""?full statement reads:- I joined Uber because of its Mission, and the challenge to build global capabilities that would help the company mature and thrive long-term. It is now clear, however, that the beliefs and approach to leadership that have guided my career are inconsistent with what I saw and experienced at Uber, and I can no longer continue as president of the ride sharing business. There are thousands of amazing people at the company, and I truly wish everyone well. Share this slide: Start your workday the right way with the news that matters most. Learn more", -3182,2017/3/20,http://www.huffingtonpost.com/2017/03/19/democrats-supreme-court-neil-gorsuch_n_15476672.html,Democrats May Be Botching This Supreme Court Confirmation Fight,"Heading into Neil Gorsuch's hearing, it's unclear how they plan to land blows on Donald Trump's conservative court pick.","WASHINGTON ""?Democrats know they don""t have the votes to stop Supreme Court nominee Neil Gorsuch from clearing his Senate confirmation hearing, which begins Monday. But they don""t appear to have a strategy, or even the energy, for a coordinated fight against President Donald Trump's conservative court pick. Chalk it up to Trump's chaotic administration, or to Senate Minority Leader Chuck Schumer's low-key approach. Democrats just haven""t treated Gorsuch's nomination as the kind of high-profile ideological battle that Supreme Court choices traditionally bring about. Even in the days leading up the hearing, it's felt more like an afterthought on Capitol Hill. ""I hope the questions are good,""?Sen. Dianne Feinstein (Calif.), the ranking Democrat on the Judiciary Committee, told The Huffington Post on Wednesday when asked about her thoughts heading into the hearing. Asked if there are any particular issues she plans to press Gorsuch on, she replied, ""not right now.""?Progressive advocacy groups have been demanding a real fight against Gorsuch, who, as an appellate judge on the U.S. Court of Appeals for the 10th Circuit, built a record of opposing reproductive rights, LGBTQ rights, civil rights, workers""?rights, immigrants""?rights and environmental protections. Led by NARAL Pro-Choice America, 11 organizations sent a letter to Senate Democrats-this month torching them for having ""Hailed to demonstrate a strong, unified resistance to this nominee, despite the fact that he is an ultra-conservative jurist who will undermine our basic freedoms""? We need you to do better.""?They also delivered more than 1 million petitions to the Senate urging Democrats ""go oppose Donald Trump's extreme anti-choice Supreme Court nominee.""?Democrats on the committee certainly plan to ask tough questions of Gorsuch. They'r just all over the place. ""We can use these hearings to put the spotlight on big special interests,""?said Sen. Sheldon Whitehouse (D-R.I.). ""the test for Gorsuch is: is he willing to dissociate himself from them? In my view, the burden is on him to persuade us of that fact, particularly given that big special interests are spending tens of millions in dark money to try to help him get on the court.""?Sen. Richard Blumenthal (D-Conn.) said he plans to pack in as many questions as possible, on as many topics as possible, because Gorsuch hasn""t given him clear answers on things he's asked him about. ""Workers protections. Consumer rights. Women's health care. Privacy rights. The independence of the judiciary,""?said Blumenthal, who made news last month-when revealing that Gorsuch told him in private that he found Trump's attacks on judges who ruled against his travel ban ""demoralizing.""?In the wake of those comments, and pushback by the White House, Schumer wrote in a New York Times op-ed that the episode ""Anly raises concerns about his independence.""?""I will be pressing him and aggressively questioning him on all of these issues because he has an obligation to come clean with the American people before he assumes a lifetime appointment on the nation's highest court,""?Blumenthal said. ""there's so many issues, I don""t know where to start,""?added Sen. Dick Durbin (D-Ill.). ""A contemporary issue is the relationship between the executive and the judiciary. I think that's going to be tested time and again by this president.""?But some advocates aren""t sure Democrats have it in them to put Gorsuch on the defensive. And Gorsuch has been preparing judiciously to meet whatever curveballs the Senate Judiciary Committee may throw his way. ""I don""t think the Democrats are going to get him to say things that are widely objectionable,""?said Drew Courtney, a spokesman for People for the American Way, an organization that has long been involved in Supreme Court nomination fights. Courtney said senators would be best served by focusing on his record. In an attempt to crystallize their strategy, Democrats this past week unveiled something of an offensive on Capitol Hill, appearing alongside sympathetic plaintiffs who have been on the receiving end of a Gorsuch opinion. The goal, in Schumer's words, is to paint this judge as someone who ""sided with the powerful against the powerless.""?But not everyone is convinced that the ""little guy""?approach is the right tack to use against Gorsuch. Some say it's relatively easy to rebut that argument: One of the judge's more popular opinions ""?on immigration, a topic that's central to Trump's agenda ""?found favor with an undocumented immigrant from Mexico. The decision effectively prevented the man's deportation. ""I don""t think [Gorsuch] is going to do everything President Trump thinks he will do in his favor,""?said Timothy Cook, the Oklahoma lawyer who represented the immigrant in that case. He added that he thinks Gorsuch would be a good Supreme Court justice. Progressive senators, like Elizabeth Warren (D-Mass.) and Jeff Merkley (D-Ore.), have already said they'll oppose Gorsuch's confirmation in the full Senate. But many are waiting to see how he handles himself in the hearing before deciding how they'll vote, though they'r skeptical. Gorsuch clearly has a-conservative record on the bench ""?some commentators have observed he is even more conservative than the late Justice Antonin Scalia, who he be replacing on the Supreme Court. He was among those-on a list of judges Trump announced during the campaign that was assembled with the help of The Federalist Society and The Heritage Foundation, two prominent conservative groups. ""He has a very high bar to clear, both in proving that he can be an independent check on the executive and that he will give less powerful plaintiffs a fair shake before the Supreme Court,""?said a Senate Democratic leadership aide. ""democrats are going to push him hard to answer direct questions on both of those topics.""?""If his answers are anything like they're been in private meetings, he isn""t going to win anyone over,""?added the aide. Gorsuch will need some Democratic support, which he did get in 2006 when he was unanimously confirmed to the 10th Circuit. It takes 60 votes to advance his nomination in the Senate, and there are only 52 Republicans. If Republicans can""t hit 60, it's possible that Senate Majority Leader Mitch McConnell (R-Ky.) will eliminate that so-called filibuster rule altogether. If that happens, Gorsuch would only need 51 votes to be confirmed. Democrats, for now, are relying on that rule for leverage. ""I will use every tool available, including the filibuster, to oppose him,""?Blumenthal said this week. ""We will use every tool at our disposal.""?Out of tradition, one Democrat, Sen. Michael Bennet (Colo.), will introduce Gorsuch on Monday alongside fellow Colorado Sen. Cory Gardner (R), according to Politico. At least one other senator up for re-election in 2018, Joe Manchin (D-W.Va.), has said he's-open to voting for Gorsuch.- That's not acceptable to some of their progressive allies. In a call with reporters earlier this month, some groups warned that Senate Democrats will pay a price if they help Gorsuch get confirmed. ""We want the Democrats to act as the opposition party, not as the minority party,""?said Murshed Zaheed, political director of Credo Action. Those who support him ""will permanently damage his or her political career.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3183,2017/3/20,http://www.bbc.co.uk/news/uk-39321579,'Lack of money' prompts care firms to end council contracts,"Care firms have cancelled contracts with 95 UK councils, saying they cannot deliver services for the amount they are being paid, a BBC Panorama investigation has found.","Care firms have cancelled contracts with 95 UK councils, saying they cannot deliver services for the amount they are being paid, a BBC Panorama investigation has found. Some firms said they could not recruit or retain the staff they needed. The Local Government Association said it was the result of ""historic under-funding"" and an ageing population. The government declined an interview but said English councils had received ?9.25bn for social care. The figure for the number of cancelled contracts comes from a Freedom of Information request, which was responded to by 197 of 212 UK councils. According to the research, carried out for Panorama by Opus Restructuring and Company Watch, 69 home care companies have closed in the last three months and one in four of the UK's 2,500 home care companies is at risk of insolvency. Councillor Izzi Seccombe from the Local Government Association - which represents councils across England and Wales - said: ""We have warned that the combination of the historic under-funding of adult social care, and the significant pressures of an ageing population and the national living wage, are pushing the care provider market to the brink of collapse. ""These figures show the enormous strain providers are under, and emphasises the urgent need for a long-term, sustainable solution to the social care funding crisis."" Many home care companies say their biggest problem is recruitment and retention of carers. The Centre for Workforce Intelligence estimates at least two million more carers will be needed by 2025 in England alone, in both in-home care and care homes, to cope with growing demand. Last October, the regulator for England, the Care Quality Commission, warned that adult social care was at a tipping point. One home care company, Cymorth Llaw, which had contracts with three councils in north Wales, told Panorama it had recently stopped working with one - Conwy, which had initially paid ?14.20 an hour for care. It offered to raise that to ?15, but the company decided that still wasn't enough and handed back the contract. Ken Hogg, at Cymorth Llaw, said: ""We didn't think we could do it for the money - it was as simple as that. ""We pay as much [in wages] as we possibly can and we've always paid above what was the national minimum wage and the national living wage. ""[Carers] get a mileage allowance, they get paid travelling time between their clients."" Mr Hogg said the company was legally obliged to pay 1% pension and 13.8% national insurance contributions, along with training and other staff-associated costs, which ""doesn't leave a great deal"". Conwy Council said it was committed to supporting vulnerable people in communities, despite the financial challenges. Home care company Mears used to have a contract with Liverpool City Council but cancelled it in July, saying ?13.10 an hour was not enough to cover costs. Mears said it needed at least ?15 an hour, and like other companies across the UK, argued its costs are often greater than what councils pay. Alan Long, executive director at Mears, said: ""That was a terrible thing to do for both service users and for care staff. ""We absolutely did not take that lightly, but frankly what choice did we have? ""We just cannot do the two most basic things that you need to do in home care - pay staff the absolute minimum of a living wage and be able to recruit enough people to deliver the service that Liverpool Council actually expected from us."" The industry's trade body, the United Kingdom Homecare Association, said many companies were really struggling. Colin Angel, its policy and campaigns director, said some care providers are ""really desperate"" and ""really do not know whether they're going to be able to continue in business, beyond the next year"". He added: ""That means they're really having to make some hard commercial decisions, whether they might need to cease trading or indeed just hand back work to local councils."" The nationwide shortage of carers is leaving many elderly people stuck in NHS wards, which results in bed blocking. Government figures show there are more than 6,500 people across Britain stuck in an acute hospital bed, despite being well enough to leave. In England, a third of these are waiting for a home care package. Mike Furlong, manager of the Granby Rehabilitation Unit in Liverpool, told Panorama that while on average people spend 28 days at the care facility, ""some patients have been with us 12 and 14 weeks because all the therapy is complete, but unfortunately there's no care package available at the end of it"". Liverpool City Council said that, over the last seven years, its budget had been cut by ?330m and it now needed to find a further ?90m over the next three years. Samih Kalakeche, Liverpool's director of adult social services, said: ""Is there a crisis in the home care services? I'll say yes, there is - and it's not just money, it's the sheer volume of demographics. ""We've got an ageing population which we welcome, but we don't have enough people coming into the industry."" Earlier this month, Chancellor Philip Hammond announced ?2bn extra for social care for English councils over the next three years. Scotland, Northern Ireland, and Wales will decide how they spend their extra funding. But the industry says that with an increasingly ageing population, it's just not enough to keep pace with demand. The government has said it will be bringing forward more proposals later this year, to ensure a financially sustainable social care system. Panorama: Britain's Home Care Crisis - Monday, 20 March, 20:30 GMT, BBC One", -3184,2017/3/20,http://www.bbc.co.uk/news/world-us-canada-39324587,Trump Russia claims: US intelligence chiefs to give evidence,Two US intelligence chiefs are set to testify before Congress about possible links between Russia and President Donald Trump's election campaign.,"Two US intelligence chiefs are set to testify before Congress about possible links between Russia and President Donald Trump's election campaign. They will also address Mr Trump's unsubstantiated claim that he was wiretapped by predecessor Barack Obama. FBI director James Comey and NSA chief Admiral Mike Rogers will give evidence at a rare open hearing of the congressional intelligence committee. Mr Trump has called the investigation a ""total witch hunt"". Russia denies attempting to influence the US presidential election. In January, US intelligence agencies said Kremlin-backed hackers had broken into the email accounts of senior Democrats and released embarrassing ones in order to help Mr Trump defeat Hillary Clinton. A report by the CIA, FBI and National Security Agency (NSA) said Russian leader Vladimir Putin ""ordered"" a campaign aimed at influencing the election. Since then, Mr Trump has faced allegations that his campaign team had links to Russian officials. Republican Devin Nunes, chairman of the House intelligence committee, and Adam Schiff, the panel's top Democrat, are leading an investigation into the allegations. Mr Nunes said on Sunday that based on ""everything I have up to this morning"" there is ""no evidence"" that the Trump campaign colluded with Russia. Former Director of National Intelligence James Clapper has also said he saw no evidence of any collusion. However, Mr Schiff said the material he had seen offers circumstantial evidence that US citizens collaborated with Russians to influence the vote. ""There was circumstantial evidence of collusion; there is direct evidence, I think, of deception,"" Mr Schiff said. ""There's certainly enough for us to conduct an investigation."" Two senior officials in the Trump administration have been caught up in the allegations - former national security adviser Michael Flynn, and Attorney-General Jeff Sessions. Mr Flynn was fired last month after he misled the White House about his conversations with the Russian ambassador before he was appointed national security adviser. He allegedly discussed US sanctions with ambassador Sergei Kislyak. It is illegal for private citizens to conduct US diplomacy. Meanwhile, Mr Sessions was accused by Democrats of lying under oath during his confirmation hearing in January. He said he had ""no communications with the Russians"", but it later emerged that he had met Mr Kislyak during the campaign. Mr Sessions denied any wrongdoing, but removed himself from an FBI inquiry into Russia's alleged interference in the election. Monday's hearing is also expected to address President Trump's claims that the Obama administration wiretapped his phone at Trump Tower in New York during the campaign. Mr Trump has provided no evidence, and senior Republican and Democratic officials have dismissed the idea. Mr Obama's spokesman dismissed the claims. Mr Nunes told Fox News on Sunday that a review of justice department documents provided on Friday indicated there was no such wiretap. Several Republicans have said Mr Trump should apologise if he cannot substantiate his claims. Observers say both allegations have diverted attention from the Trump administration's other policies and progress with political appointments. Critics say Mr Trump's claim that Mr Obama wiretapped him has damaged the US credibility, and relations with its allies. Last week, Mr Trump's spokesman Sean Spicer repeated claims by a Fox News analyst that the UK's GCHQ spy agency had helped Mr Obama wiretap Mr Trump. The claims angered the UK government, and GCHQ rejected the allegations as ""utterly ridiculous"". Meanwhile, Mr Trump and some Republicans have called for an investigation into intelligence leaks, including the leak that revealed details of Mr Flynn's phone calls to the Russian ambassador.", -3185,2017/3/20,http://www.bbc.co.uk/news/uk-politics-39325559,Tom Watson attacks Momentum-Unite Labour 'plot',Labour's deputy leader says left-wing supporters of Jeremy Corbyn are involved in a plot which could destroy the party as an electoral force.,"Labour's deputy leader says left-wing supporters of Jeremy Corbyn are involved in a plot which could destroy the party as an electoral force. Tom Watson was reacting to claims that the grassroots Momentum group - which helped make Mr Corbyn leader - is hoping to get financial support from Britain's largest trade union, Unite. Momentum's Jon Lansman was reportedly taped saying that if Len McCluskey was re-elected as Unite general secretary, the union would affiliate to his group rather than to Labour. Mr Watson told BBC Radio 4's Today programme ""enough is enough, this has got to stop... I'm afraid there are some people who do not have our electoral interests at heart"". He said ""we have never seen the biggest union organising a political faction in the Labour Party with the tacit approval of the leadership"". He said he was not sure Mr Corbyn was aware of the plan suggested by the recordings - which were revealed by The Observer newspaper. In the recordings Mr Lansman says: ""Assuming that Len McCluskey wins the general secretaryship, which I think he will, Unite will affiliate to Momentum and will fully participate in Momentum, as will the CWU."" He went on to tell activists it was ""absolutely crucial"" that they secured a change to the party's rules to ensure that whenever Mr Corbyn stands down, they are able to get a candidate on to the ballot paper to succeed him. Currently, a candidate must obtain the support of 15% of Labour MPs and MEPs in order to stand - a threshold a new left wing contender is unlikely to be able to meet. Christine Shawcroft, a member of Momentum who sits on the party's National Executive Council, said Labour's MPs could not have a ""veto"" on the wishes of the membership when the time came to electing Mr Corbyn's successor. ""We have a mass membership now and it wants its voice to be heard,"" she told Today. ""There is a democratic deficit in the Labour Party where the structures we have do not reflect the support for Jeremy Corbyn that has been shown by the membership"". Mr Watson, she suggested, was ""rather right wing"" and wanted to return to a ""command and control"" system for running the party based on a ""Blairite model"". In contrast, she suggested Mr Corbyn was a ""moderate"" socialist whose policies were ""common sense"". She rejected suggestions that Momentum was a hard-left entryist organisation trying to infiltrate Labour, describing the terms as ""silly labels"", and pointing out that she and Mr Lansman had been party members for 40 years. She added: ""The offer is always for open any organisation, any trade union, to affiliate (to Momentum). They are welcome to do so. It is not a question of disaffiliating from the Labour Party and affiliating to Momentum instead"". A Unite spokeswoman said: ""As Unite has stated, repeatedly, it is for the Unite Executive Council, not the general secretary, to agree to which bodies our union aligns. There are no plans whatsoever for Unite to affiliate to Momentum, as has, again, been made repeatedly clear. ""It is extraordinary that the deputy leader of the Labour Party continues to interfere in Unite's democracy in this way. ""Unite's democracy is strong enough to take decisions without a running commentary from Mr Watson.""", -3186,2017/3/20,http://www.bbc.co.uk/news/magazine-39309108,Dementia diary: 'When your mother doesn't know who you are',"Molly Daley was diagnosed with dementia two years ago. Her son, Joey, is making a series of videos documenting how her memory loss is affecting their lives. The series went viral after he captured one particularly heartbreaking moment.","Molly Daley was diagnosed with dementia two years ago. Her son, Joey, is making a series of videos documenting how her memory loss is affecting their lives. The series went viral after he captured one particularly heartbreaking moment. Video journalist: Natalia Zuo You can follow BBC Trending on Twitter @BBCtrending, and find us on Facebook. All our stories are at bbc.com/trending. Look out for more stories about disability and love and relationships via #bbcouchstories and on bbc.co.uk/ouch.", -3187,2017/3/19,http://www.bbc.co.uk/sport/38884801,Doping in amateur sport: Drug use 'fast becoming a crisis' - Nicole Sapstead,Key stats from a ComRes/BBC doping in amateur sport poll,"Share this with Media playback is not supported on this device Drug use at every level of sport is ""fast becoming a crisis"" according to UK Anti-Doping - responding to a BBC poll into doping in amateur sport. It found more than a third (35%) of amateur sports people say they personally know someone who has doped, and 8% said they had taken steroids. Half believe performance enhancing substance use is ""widespread"" among those who play sport competitively. Ukad chief Nicole Sapstead described the figures as ""incredibly alarming"". A BBC State of Sport investigation into doping in UK amateur sport also found that 49% thought performance-enhancing drugs (PEDs) were ""easily available"" among people who play sports regularly. According to figures from UK Anti-Doping (Ukad), the national body responsible for protecting clean sport, there are currently 52 athletes and coaches serving bans. Of these, only 12% are professional sports men or women; 62% are amateurs, 21% are semi-professional, and 5% are coaches. Of the 186 sanctions handed out across 22 separate sports by Ukad since it formed in 2009, 46% have been rugby union or league players - mainly at amateur and semi-professional levels. Reacting to the ComRes poll for BBC Sport of more than 1,000 men and women who are members of sports clubs and teams, Sapstead said: ""Certainly the figures as regards the prevalence of performance-enhancing substances at an amateur level are incredibly alarming. ""That said, it does confirm what UK Anti-Doping has long suspected and also seen through some of our intelligence-led testing. ""I don't think any sport can say that they don't have a problem at an amateur level. ""I think now is the time for everybody to sit up and acknowledge that this is a reality in every single sport and that you can't just be washing your hands of it or hoping that someone else will address it."" Sapstead also told BBC Sport: Media playback is not supported on this device Of the 79 people interviewed who had specifically taken anabolic steroids, 41% said improving performance was the main reason for taking them, followed by pain relief (40%) and improving how they look (34%). However, when this is widened out to include those who admitted taking other performance-enhancing substances, boosting results was no longer the primary reason. Only 25% of users overall claim they have taken substances with the intention of improving performance. Over half say they were primarily used for pain relief, while 17% say they were used to improve looks. ""I think there are clearly a group of individuals seeking to enhance their performance by taking prohibited substances,"" said Sapstead, ""and then there are others who were taking these substances because they have a body image problem, or actually because they think it's the done thing."" Younger people are the main users of anabolic steroids in amateur sport, according to the poll for BBC Sport. Among sports club members aged 18-34, 13% say they have taken steroids to support performance or recovery while playing. Not one interviewee aged 55 or over said they had used anabolic steroids. However, users aged between 35 and 54 are significantly more likely than those aged 18-34 to say pain relief is among the main reasons they have used steroids or other sports supplements. But there is hardly any difference in gender, with 9% of men admitted taking steroids, compared with 8% of women. And 71% of all those polled said they would not know where to get hold of anabolic steroids. Using steroids for image reasons is a ""worrying"" problem among young people in Wales, according to the nation's social services and public health minister Rebecca Evans, who said in January: ""It's not just a problem in sport - it is a wider societal issue."" According to the poll, a wide range of substances - both legal and illegal - are taken by amateur sports men and women to support their performance or recovery. Performance-enhancing substances can also include recreational drugs and prescribed medications: We also asked people about other substances they consumed while playing sport, including: energy drinks (68% had), pain-relief gels (60%), over-the-counter anti-inflammatory medicines (59%) and protein shakes (46%). Media playback is not supported on this device Former amateur cyclist Dan Stevens was banned after refusing a test in 2014. He turned whistleblower but labelled Ukad's handling of his information ""a catastrophic failure"". Responding to the BBC Sport poll, Stevens, 41, said: ""I think it is widespread in all ranks. I think it is widespread in celebrity, I think it is widespread in the beauty industry; I think it is certainly widespread in the sports industry. ""I also think it is just a way of modern day life - we are living in a pharmacised world."" Stevens said he took thyroxine and testosterone on prescription, and EPO out of ""curiosity"". ""I'd always been a clean athlete and this situation happened to me when I was 39 years old. That was enough to see a huge, huge gain. ""But the real thing for me wasn't really about racing - I didn't do a lot of racing on these substances. The main thing was curiosity. ""I don't think in the amateur ranks it is about winning. You've got a situation where someone is overweight, a little bit fat, need to lean down, get in shape. And they get in shape. ""They then get railroaded into doing a marathon or a long bike ride or some kind of competitive event and they improve their fitness levels again and they become a healthier individual and become more body conscious and more health-orientated."" More than a third of people (36%) who report consuming recreational drugs to support their performance while playing amateur sport have also taken steroids. Dr Lambros Lazuras, an assistant professor of social psychology at Sheffield Hallam University who studies doping behaviour, told BBC Sport that there is a ""pill-taking culture"" in amateur sport and general society, which can act as a ""gateway"" to stronger substances. ""There are people who engage in stacking practices, using as many as 10 substances at the same time,"" he explained. ""For these people, it's not what they use anymore, it's what they want to achieve."" Media playback is not supported on this device ""The use of steroids, for example, has been associated with problems like heart disease, kidney failure and even sudden death,"" said Dr Lazuras. ""You're not just cheating, you're putting your life at risk. ""This is an emerging public health issue,"" claimed Dr Lazuras. ""You're using substances that are meant to treat diseases, and you're actually misusing them without any prescription. ""We push people into exercise because we want to promote the health benefits. We forget that people in most exercise settings might consider using substances. ""This is actually the dark side of exercise. You don't care about your health anymore. You care about your performance and how you look to other people - or yourself."" A British weightlifter who has served a doping ban told BBC Sport steroid abuse is rife at all levels in his sport and that the culture starts at amateur level. ""It begins in the gym,"" the weightlifter, who wishes to remain anonymous, said. ""In weightlifting it gets to the point where you're not growing anymore. You can train, train, train and not get anywhere. ""Every weightlifter will take steroids. Some of them are taking light stuff and some of them are really heavily using steroids - it all depends how much money you have. ""Is it easy to buy bread in the shop? That's how easy it is to get steroids in the UK. ""If you're not taking steroids, basically you're nowhere in the competition, you're not going to get anywhere really. ""I'm really proud of how they fight steroids in England. But the problem is, why are England losing? England won't cheat. ""I've been caught because I didn't think that somebody would come to my house. I left taking steroids one month before competition and I never ever thought somebody would come to my house and test."" ""I can't do something that I really love. Only because I've been cheating with steroids, come on. It's like I killed somebody. I'm not even an Olympic sportsman."" Lewis Conlin, 32, a publisher from Buckinghamshire, used a supplement containing the banned substance DMAA when he started weight-training in his early 20s. DMAA is an amphetamine-derived substance banned from sale in the UK and named on Wada's prohibited list. It has been linked with high blood pressure, tightening of the chest, stroke, heart attacks and even death, according to the Medicines and Healthcare Products Regulatory Agency. ""In terms of the energy and focus that I got, it was the best pre-workout supplement I'd ever had,"" Conlin, who was weight-training four or five days per week with friends, told BBC Sport. ""You felt invincible, you felt you could do anything, you were just completely zoned out. You'd stare at a weight and go and lift it. That was great. Afterwards wasn't so great. ""About three hours later you would have a crash and you'd have a real comedown. I'd be depressed and I'd be ratty, happy just to keep myself in isolation and then later on that day I was getting chest pains. ""I would have trouble sleeping and would have heart palpitations - but that didn't actually stop me from taking it the next day. The training I was doing was so high and so intense I just wanted to have that every day. ""Had I known at the time exactly what DMAA did to your blood pressure and your heart rate then there is no way I would have carried on taking it."" More drug testing among amateur sports people is a ""waste of time"", according to one amateur cyclist who received a two-year ban for missing a post-race drugs test. It would cost too much money and detract from focusing on drug use in the professional ranks, he added. ""I don't see the point at all,"" said the Briton, who asked to remain anonymous. ""What effect is it going to have on anything, unless it is something like a national championship where people can move on in the professional ranks and actually earn a living from it? It is a problem then because you're actually affecting people's lives. In my opinion more testing would be just a waste of time at low level sport ""How far do you go - do you want to test people for doing a fun run? It's up to them if they want to do whatever they want to do, in my opinion,"" he said. ""If you want to catch someone then catch the right people - like the people that win the Tour de France and get away with it. ""But then that's too much politics and money involved. They would rather get someone that doesn't mean anything because it is easy."" Ukad has an annual budget of around £7m, mainly state funding. A single drug test costs around £350. Ukad directs the vast majority of its testing to elite sport, with Sapstead saying: ""I would love to able to address the issues that we see at an amateur level, but the reality is we just don't have the resources to do that. ""I strongly believe a further investment needs to be paid from sport, whether that's from a levy on ticket sales - some contribution into a greater integrity pot of money, that's distributed not just to anti-doping, but anti-corruption bodies. ""Someone somewhere needs to put their hand in their pocket and their money where their mouth is, and start to help pay for us to do this job, and do it as effectively and efficiently as possible. ""Cheating impacts against the people you are competing against. So it doesn't matter if you're an Olympian, or a Paralympian, and it doesn't matter if you don your trainers at a weekend for a fun run. ""Actually, you're competing, and therefore it absolutely matters that everyone is toeing the line and playing a fair game."" BBC Sport - using ComRes to conduct the poll - interviewed 1,025 British adults, who are members of sports clubs, teams or gyms, online, between 27 and 31 January 2017. The data was drawn from a nationally representative sample of British adults aged 18 or over and the full tables are available here. All sports played by those interviewed are regulated by UK Anti-Doping, apart from gyms. Have you ever taken a performance enhancing substance? Does your sport have a problem with doping? Get in touch using this link. Share this with Run by the BBC and partners Parent and Child Gymnastics Postnatal Activity Classes For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -3188,2017/3/19,http://www.bbc.co.uk/news/uk-39306001,"I'm owed ?9,000 in child maintenance'",,"Laura Riley has a 10-year-old son, Louis, and has been chasing child maintenance payments for nine years. She says she is owed more than ?9,000, but has been unable to get any money from her son's dad. Across the UK, there is a backlog of more than ?3.8bn in uncollected child maintenance payments, with figures showing about 1.2 million people are owed money. Watch the Victoria Derbyshire programme on weekdays between 09:00 and 11:00 on BBC Two and the BBC News channel.", -3189,2017/3/20,http://www.bbc.co.uk/sport/northern-ireland/39324936,Ryan McBride: Derry City captain dies aged 27,Ryan McBride led Derry City to a 4-0 victory over Drogheda United on Saturday,"Share this with Derry City captain Ryan McBride has died at the age of 27. The defender died a day after leading his side in a 4-0 victory over Drogheda United in the League of Ireland Premier Division, the top league in the Republic of Ireland. The cause of death is not yet known. The Irish Football Association tweeted: ""Thoughts tonight with the family of Ryan McBride and everyone involved with Derry City FC."" Phil O'Doherty, Derry City Football Club chairman, said the team is ""devastated"". ""This news is so hard to take in,"" he told the BBC. ""He started the season so well and scored a really important goal against Shamrock Rovers recently. ""The players and management staff are in shock and it's an extremely tough time for everyone."" Mr O'Doherty said McBride ""was a leader on and off the field"". ""He was incredibly respected. He was an ideal captain,"" he said. ""He was from the Brandywell area and he just walked across the road to his home after every game."" Ryan McBride's death is the latest tragedy to beset the club following the death of striker Mark Farren and the Buncrana pier tragedy which claimed the lives of Josh Daniels' family members a year ago. Former Derry City striker Liam Coyle said: ""My brother phoned me to tell me and I was in total disbelief. ""I played football with Ryan's father and Ryan was always a rising star. ""Everybody loved Ryan's attitude and the way he played. The club has been through a lot of tragedy but the people of Derry will provide a lot of support to his family and friends. ""Derry City has lost the best centre half in Ireland."" The President of Ireland, Michael D Higgins, tweeted: ""Along with all those who support Irish football, I express my sadness and condolences to the family of Derry City Football Club captain Ryan McBride."" Derry's scheduled Premier Division game at home to Limerick at Maginn Park on Tuesday night has been postponed. Share this with Run by the BBC and partners Parent and Child Gymnastics Postnatal Activity Classes For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -3190,2017/3/20,http://www.bbc.co.uk/news/world-europe-39323833,Orly airport: Drugs and alcohol found in gunman's blood,Blood tests have revealed that a gunman who attacked soldiers at Orly airport in Paris on Saturday had consumed drugs and alcohol.,"Blood tests have revealed that a gunman who attacked soldiers at Orly airport in Paris on Saturday had consumed drugs and alcohol. Ziyed Ben Belgacem, 39, was killed after he put a gun to a soldier's head saying he wanted to ""die for Allah"". Paris prosecutors' office said toxicology tests during his autopsy found traces of cocaine and cannabis. Belgacem also had an alcohol level of 0.93g per litre of blood, nearly twice the legal limit for driving in France. He is said to have been radicalised in prison, and was on a police watch-list. He was involved in a shooting and then a carjacking on Saturday before he attacked a military patrol at Orly, Paris's second-biggest airport. Belgacem's criminal record included convictions for armed robbery and drugs offences, Paris prosecutor Francois Molins told reporters late on Saturday. In an interview with French radio Europe 1 on Sunday, a man identified as his father said Belgacem wasn't a practising Muslim and drank alcohol. ""My son was not a terrorist. He never prayed, and he drank. But under the effects of alcohol and cannabis, this is where one ends up,"" the father said. Europe 1 did not give his name. The father was released from police custody overnight on Saturday, while Belgacem's brother and a cousin were released later on Sunday. Early on Saturday morning, Belgacem was stopped at a checkpoint in Garges-les-Gonesse, north of Paris. He fired at police with a pellet gun before escaping in a car that was later found abandoned. Police say he then stole a car at gunpoint from a woman at Vitry, south of Paris. That car was later found at Orly airport. Belgacem arrived at the airport and attacked a military patrol in the south terminal. He tried to seize a servicewoman's automatic weapon, put his gun to her head and said: ""I'm here to die for Allah. In any case people are going to die."" He was then shot dead by two other soldiers. A copy of the Koran was found on his body, Paris prosecutor Francois Molins added. The BBC's Hugh Schofield in Paris says the picture is building up of a man on the criminal fringes of society, who also consorted with Islamist radicals. The attack came at a sensitive time. France has presidential elections starting next month and remains under a state of emergency. The soldiers at Orly were part of Operation Sentinel - involving thousands of soldiers deployed to provide back-up to the police after the Charlie Hebdo attack in January 2015 and the Paris attacks of November 2015.", -3191,2017/3/20,http://tass.com/politics/936445,"Moscow, Tokyo agree to hold new 'two plus two' meeting in Russia",,"TOKYO, March 20. /TASS/. Moscow and Tokyo have agreed to hold another ""two plus two"" meeting between the two countries' foreign and defense ministers in Russia, Russian Foreign Minister Sergey Lavrov said following talks in the similar format on Monday. ""We agreed to hold the next 'two plus two' ministerial meeting in Russia. Our invitation was accepted by our counterparts,"" he said. The first Russian-Japanese ""two plus two"" meeting was held in Tokyo in November 2013. A decision to hold another round in accordance with the same formula was made during Russian President Vladimir Putin's visit to Japan last December.", -3192,2017/3/20,http://tass.com/world/936443,Belarus president says oil and gas issues will not affect military cooperation with Russia,"""No matter how our relations in such sectors as oil, gas, food and others develop, those are all manageable problems,"" Belarusian President Alexander Lukashenko said","MINSK, March 20. /TASS/. The problems in the oil and gas sector between Russia and Belarus will not affect the development of military cooperation between the countries, Belarusian President Alexander Lukashenko said when discussing Zapad 2017, the combined strategic exercises of military forces of the two countries. ""No matter how our relations in such sectors as oil, gas, food and others develop, those are all manageable problems. Those are the issues between Belarus and Russia. Whereas playing with security and defense capability of our common borders is out of the question. This is not a subject of any kind of bargain,"" he was quoted as saying by the Belarusian BelTA news agency on Monday. According to Lukashenko, ""contrary to what certain ""�experts""?think no one plans to scale down cooperation with Russia in the military area due to frictions in other fields."" ""On the contrary, (army) exercises demonstrate our consistency in ensuring security of the two nations,"" he added. Belarusian President also said that the international environment makes one constantly enhance excellence of the regional group of forces in order to protect the western borders of the Union State (of Russia and Belarus). ""The upcoming exercise is a way to check how well the military forces of the two countries are ready to cooperate,"" he said. Zapad 2017 combined strategic exercise will be conducted in Belarus and Russia in September this year.", -3193,2017/3/20,http://tass.com/politics/936444,"Far East division created exclusively to protect Russia ""?Defense Ministry","""It is not created against anyone, but exclusively for Russia's protection from both the sea and the air,"" Russian Defense Minister Sergey Shoigu said","MOSCOW, March 20. /TASS/. The decision that is being formed in Russia's Far East is meant exclusively to ensure Russia's security, Russian Defense Minister, Sergey Shoigu, told the RT television channel, following the Russian-Japanese ""2+2"" consultations in Tokyo. ""The division in Russia's Primorsky Krai, the Sakhalin and Amur regions has taken six years to create,"" the defense chief explained at the four ministers""?news conference broadcast by the RT television channel. ""It is not created against anyone, but exclusively for Russia's protection from both the sea and the air,"" the minister added without specifying what branch of the armed forces the new unit belongs to. The minister thus answered a question from a Japanese reporter concerning plans to deploy a new division to the Kuril Islands. The journalist also asked where exactly it will be deployed. Shoigu told a meeting of Russia's State Duma (lower house of parliament) in February that ""work is underway to protect the Kuril Islands."" ""We are to deploy a division there. Its formation is to be completed this year,"" he said.", -3194,2017/3/20,http://tass.com/economy/936437,Russian Finance Ministry upgrades GDP growth outlook for 2017,Previously the outlook for this year was 0.6%,"BADEN-BADEN /Germany/, March 20. /TASS/. Russia's Finance Ministry has upgraded the country's GDP growth outlook for this year from 0.6% to 1.5-2%, Finance Minister Anton Siluanov said on the sidelines of G20 finance ministers and central bank governors meeting. ""On the whole we agree that the economy will be growing faster than initially expected. Previously the outlook for this year was 0.6%. Our estimates are close to the figures announced by Economic Development Minister (Maksim Oreshkin - TASS) - from 1.5% to 2%,"" he said. Oreshkin said earlier that as the economy had adjusted to the new environment growth is expected in more sectors in 2017 compared with last year. The official outlook of Russia's Economic Development Minister for this year implies a 0.6% GDP growth. Oreshkin said he expects a stronger growth for 2017. In the second half of this year GDP growth will exceed 2%, which means it will be higher than 1% in the first half of 2017, the minister said. Russia's Finance Ministry may purchase up to $1 bln for current budget expenditures in 2017. ""There are still debt liabilities, external currency commitments. It is possible to purchase at least 1 billion dollars (by the end of the year - TASS),"" Siluanov-said, adding that the issue is about purchases beyond the funds meant for replenishment of the Reserve Fund. According to Siluanov, the ruble's fundamental exchange rate versus the dollar is 10-12% lower. ""I think that it (the ruble - TASS) is over-strengthened by around 10-12% versus its fundamental value,"" he said. This makes the currency purchases meant for budget expenses very profitable, Siluanov said, though the Ministry may not use this possibility. As reported earlier Russia's Federal Treasury may start buying currency for the current budget expenditures of the Finance Ministry starting January 2018. Roman Artyukhin, head of the department, said that the mechanism implies that the Treasury will be able to directly enter the Moscow Exchange to buy currency for the current budget spending as well as to buy foreign currency by using additional oil revenues. Currently, the Treasury is preparing a roadmap to develop the procedure of direct purchases of currency on the Exchange, he added. Russia's Finance Minister Anton Siluanov considers the inflation target of 4% feasible for the end of this year. ""The accumulated inflation as of now is 4.4%, which means that there are all reasons to say that the target of 4% inflation is quite feasible for the end of this year, unless any serious changes occur,"" he said on the sidelines of G20 finance ministers and central bank governors meeting. According to Siluanov, the Finance Ministry is not interested in bringing inflation further down if it is impossible to keep it stable for a long period of time. ""We don""t need to bring it lower and then higher. We have to create a predictable environment,"" he said. The minister added that many factors influence inflation, including the harvest, the ruble's exchange rate, as well as current oil prices.", -3195,2017/3/20,http://tass.com/world/936428,"Tokyo, Moscow to continue close work on peace treaty",Russia and Japan have been negotiating since the middle of the 20th century a peace treaty after World War II,"TOKYO, March 20. /TASS/. Japan and Russia are ready to continue their close work on a peace treaty, Japanese Foreign Minister Fumio Kishida said on Monday. Japan's top diplomat made this statement at a press conference after a Russian-Japanese 2+2 meeting of the defense and foreign ministers from both countries. ""Considering the resolve displayed by the leaders of both countries late last year, we confirmed that we will continue the close negotiating process on the issue of concluding a peace treaty,"" the Japanese foreign minister said. The talks between Japanese and Russian foreign and defense ministers in the 2+2 format will have a positive impact on negotiations on signing a peace treaty, according to-Kishida. ""Such a format of talks has a very positive influence on the negotiating process on concluding a peace treaty,"" Kishida said. ""The development of bilateral relations focused on the future is very important, especially taking into account the worsening situation in security in the region,"" he added. ""That's why we will continue active contacts - this includes two visits of Japan's prime minister to Russia scheduled for this year,"" Kishida said. Russia and Japan have been negotiating since the middle of the 20th century a peace treaty after World War II. The main obstacle is the problem of the south Kuril Islands. The archipelago became the territory of the USSR after the war. Japan, however, disputes the Iturup, Kunashir, Shikotan and Habomai status. In 1956, Russia and Japan inked a declaration, which put an end to the state of war between the countries and restored diplomatic and other relations. But the issue of the border near the Kuril Islands remained unsettled then. At the same time, the Soviet Union expressed a goodwill gesture in the declaration to give Shikotan and Habomai to Japan after a peace treaty was signed.", -3196,2017/3/20,http://tass.com/world/936431,Japan voices concern over Russia's military activity on southern Kuril Islands,Japan's Foreign Minister Fumio Kishida made this statement after a 2+2 meeting of the defense and foreign ministers from both countries,"TOKYO, March 20. /TASS/. Japan has voiced its concern over Russia's military activity on the south Kuril Islands, Japanese Foreign Minister Fumio Kishida said on Monday. Japan's top diplomat made this statement after a 2+2 meeting of the defense and foreign ministers from both countries. ""I raised this issue at the meeting and also conveyed Japan's concern to the Russian side,"" he said in response to a question about the deployment of missile systems on the islands and plans to deploy a division on the south Kurils. The Japanese foreign minister said at the same time that he should refrain from disclosing the details of the discussion. Russia deployed Bastion and Bal coastal defense missile systems on the southern Kuril Islands of Iturup and Kunashir in 2016. In 2015, Tor-M2U short-range antiaircraft missile complexes were put on combat duty there. Now Russia is studying the option of creating a Pacific Fleet base on the islands of the Greater Kuril Ridge. Also, the Russian defense minister said in February that there were plans to finish work this year to create four new divisions, including for the protection of the Kuril Islands. This statement was negatively perceived by Tokyo and the Japanese government sent Russia a protest noting that such strengthening of Russia's military presence on the Kuril Islands did not correspond to Tokyo's position on these territories. As the Russian side has stated on numerous occasions, the deployment of troops and missiles on the Kurils is Russia's sovereign right. Russia and Japan have been negotiating since the middle of the 20th century a peace treaty after World War II. The main obstacle is the problem of the south Kuril Islands. The archipelago became the territory of the USSR after the war. Japan, however, disputes the Iturup, Kunashir, Shikotan and Habomai status. In 1956, Russia and Japan inked a declaration, which put an end to the state of war between the countries and restored diplomatic and other relations. But the issue of the border near the Kuril Islands remained unsettled then. At the same time, the Soviet Union expressed a goodwill gesture in the declaration to give Shikotan and Habomai to Japan after a peace treaty was signed.", -3197,2017/3/20,http://tass.com/economy/936427,Crimea promises 'Las Vegas on the Black Sea' to attract tourists,"The gambling zone on the Crimean peninsula will be meant for guests mostly, including foreign visitors, Crimea's head Sergey Aksyonov said","SIMFEROPOL, March 20. /TASS/. The gambling zone due to be created on the Crimean peninsula close to the resort city of Yalta will trigger interest among foreign tourists, Crimea's head-Sergey Aksyonov, told TASS. ""(The gambling zone will be meant for) guests mostly.Aksyonov,-Including foreign visitors,"" Aksyonov-said. Aksyonov noted that the Crimean authorities are ready to offer investors certain ""�game plan""?strategies that will make it possible to bypass sanctions in implementing this project. ""There are certain arrangements that will make it possible to bypass the sanctions. I will keep quiet about such secrets for now. Nobody would agree to invest in this project, if there were doubts this plan might not work,"" he stated. The Crimean leader-added that construction and assembly work in Yalta's Zhemchuzhina health resort will begin later this year. On July 23, 2014, Russian President Vladimir Putin signed a law on establishing a gambling zone in Crimea. It should appear on the Black Sea peninsula by 2019. Aksyonov said earlier that a large Russian company is ready to invest about 8 bln rubles ($138 mln) in the creation of Crimea's gambling zone. According to expert estimates, the regional budget will be able to receive up to 25 mln rubles per year from the would-be gaming industry. In June 2016, the Crimean government defined the boundaries of the future zone, placing it in the locality of Gaspra.", -3198,2017/3/20,http://tass.com/politics/936421,Lavrov warns US missile system deployment to Asia-Pacific leads to serious risks,"Moscow considers the deployment of US missile defense system and arms buildup in the Asia-Pacific region as a disproportionate response to Pyongyang, the minister has noted","TOKYO, March 20. /TASS/. Deployment of US missile defense system to the Asia-Pacific region may result in serious risks, Russian Foreign Minister Sergey Lavrov said after talks in the 2+2 format with Japan involving foreign and defense ministers. ""We took note of serious risks posed by the deployment of elements of the global missile defense system of the United States to the Asia-Pacific region,"" Lavrov said. ""We detailed our assessments showing that if this is about the threats coming from North Korea, then the creation of such a missile defense system as well as arms buildup in the region is not a proportionate response,"" the Russian top diplomat noted. Lavrov stressed that positions of Moscow and Tokyo coincide that North Korea should fully comply with all UN Security Council's resolutions. ""At the same time, we believe that sanctions of the UNSC against Pyongyang should be viewed not as a tool of punishment but as an impetus to return to negotiations,"" he said. Tensions on the Korean Peninsula rose in early 2016, when Pyongyang conducted an underground nuclear test and later test-fired a ballistic missile. In September 2016, North Korea conducted another nuclear test, besides, within one year, around 20 missiles were test-fired. On March 6, 2017, North Korea test-fired four ballistic missiles which fell in Japan's exclusive economic zone. On March 7, the US Pacific Command announced that the United States had started to deploy the THAAD missile systems to South Korea despite the opposition of Russia and China. Moscow and Tokyo are unanimous in believing that North Korea should strictly comply with all United Nations Security Council resolutions, -Lavrov stressed.- ""We are unanimous with our Japanese partners that North Korea should rigorously comply with all UN Security Council resolutions,"" the minister said. ""We believe that the UN sanctions imposed on Pyongyang should be seen not as a punishment tool but as an incentive to bring the situation back to the political and negotiation track.""", -3199,2017/3/20,http://tass.com/world/936417,Russian politicians and PACE members arrive in Syria to meet with Assad,"The European delegation is represented by 10 parliamentarians from Spain, Italy, the Czech Republic, Serbia and Belgium","DAMASCUS, March 20. /TASS/. Lawmakers of Russia's State Duma and members of the Parliamentary Assembly of the Council of Europe (PACE) and its President Pedro Agramunt arrived in Syria on Monday. Leonid Slutsky, chairman the State Duma's international affairs committee who also arrived in Damascus, said the delegation is expected to meet with Syrian President Bashar Assad and hold talks with Speaker of the People's Council Hadiya Khalaf Abbas. Besides, the international affairs committees of the Russian and Syrian parliaments will hold a joint meeting. The delegation is led by Vladimir Vasilyev, deputy speaker of the lower house of parliament and leader of the United Russia faction. ""The Russian delegation consists of MPs from all the four factions. We invited our European colleagues - members of PACE representing there their national parliaments to join the trip,"" Vasilyev told reporters. The European delegation is represented by 10 parliamentarians from Spain, Italy, the Czech Republic, Serbia and Belgium. Among them is leader of the political group, Alliance of Liberals and Democrats for Europe, Jordi Xucla and chairman of the assembly's committee on legal affairs and human rights Alain Destexhe, according to Slutsky. ""As part of these meetings, we would like to discuss issues of Syrian settlement and the possible role of parliamentarians in this process and also in solving those tasks defined at the talks in Geneva, Astana and implementing Resolution 2254 of the UN Security Council at this stage,"" Slutsky said. Vasilyev noted that during the trip the parliamentarians of the Council of Europe will be able to ""form their personal unbiased opinion on the situation in Syria, assess efforts of Russia in the fight against international terrorism and also turn attention to the need to provide humanitarian aid to the Syrian people by European countries."" The visit is held at the invitation of Speaker of Syrian People's Council Hadiya Khalaf Abbas.", -3200,2017/3/20,http://tass.com/economy/936410,"Russia needs new icebreaker fleet for Arctic development ""?experts",Experts share the opinion - the demand in icebreakers will only be growing,"MOSCOW, March 20. /TASS/. Sustainable development of the Russian Arctic zone is impossible without urgent upgrade of the nuclear and diesel icebreaker fleet, experts say. Presently, for smooth work of the Northern Sea Route Russia uses more than 30 diesel-electric and four nuclear icebreakers, but the fleet is getting outdated, head of the Arctic and Antarctic Council at the Federation Council (parliament's upper house) Vyacheslav Shtyrov told TASS. ""Three of four icebreakers should be out of exploitation between 2020 and 2022,"" he said. ""Most diesel-electric icebreakers of Rosmorport (sea port authority) are to be out of work by 2017-2019."" For observing the national interests, Russia should urgently renew technologically it nuclear fleet. Many experts point to the problem of the fleet's development and renovation. A member of the Academy of Sciences""?Council Mikhail Grigoryev told TASS about the outdated fleet and the lack of icebreakers. ""We have three shipping companies - Murmansk, Severnoye and Lenskoye, which have been working on the Northern Sea Route,"" he said. ""They do not have enough funds for construction of a new fleet, as the country still does not have ""long"" or ""cheap"" money, nor it is available from abroad - thus we face outdating of the fleet."" The situation with icebreakers, the expert said, ""is also alarming."" Russia's nuclear icebreaker fleet Some experts say the Russian icebreaker fleet has been developing lately. ""About 8-10 years ago we said our icebreaker fleet - both nuclear and diesel - is aging,"" chief designer of the Krylov ice-class vessels center Valery Belyashov said. ""A new generation of diesel and nuclear icebreakers is under construction: the series of two-draft nuclear icebreakers 22220 ""The Arktika"" (Arctic), ""The Sibir"" (Siberia) and ""The Ural"" (Urals), which will replace the outdated icebreakers of the Arktika type and various diesel-electric icebreakers."" Rosmorport's Director General Andrei Tarasenko told TASS the company owns 36 diesel icebreakers, and the fleet's key task is to escort vessels at Russia's 15 freezable sea ports. ""For 2018, we plan taking in exploitation a diesel-electric icebreaker of 22600 project ""The Viktor Chernomyrdin"", with the energy power of 25MW, and which can escort vessels along shores of the Northern Sea Route the year round,"" he said. The designer said the diesel fleet is being renovated also at expense of companies working in the Russian Arctic zone. For example, the Norilsk Nickel Company owns a fleet of ice class. ""Thus, they can have the year-round supplies of products to Europe by own vessels, and the company's fleet has six vessels of enforced ice class ARC7 - five container vessels of the Norilsk Nickel type and one tanker The Yenisey,"" the company's representative told TASS. Experts share the opinion - the demand in icebreakers will be only growing with the growing cargo deliveries along the Northern Sea Route as major economic projects are implemented in the Arctic. Some experts say for serving the Arctic routes only Russia would require 14 icebreakers, including six nuclear, four diesel and four supply icebreakers for drilling pads. However, Senator Shtyrov says the icebreaker fleet should be much bigger. ""The plan is that by 2030 the cargo deliveries along the Northern Sea Route will grow to 80 million tonnes, which means we should have a permanent sea route, which can be exploited all the year round, without any breaks,"" he said. ""This is a huge task, for which we should first of all have enough icebreakers based on new technologies."" Designer Belyashov said the Russian shipbuilders can satisfy the demand. ""With the plans for development of the transport system - to transport from Yamal LNG 15 million tonnes, and another 15-17 million tonnes of liquefied natural gas via the Arctic LNG-2 terminal, which is under construction now, the demand for icebreakers will grow. Coal from Taimyr and oil from the Tanalan deposit soon will be transported from the area next to the Dudinka port. Oil and ore producing companies would not be able to work without reliable transportation systems, thus a new generation of icebreakers is being built right on time. Taking into account all these plans, two more universal icebreakers of project 22220 should be built, too,"" he added. As for building of nuclear icebreakers, head of the nuclear fleet state-run company Atomflot Vyacheslav Ruksha told TASS about construction in St. Petersburg of a series of three LK60 universal icebreakers (""The Arktika,"" ""The Ural"" and ""The Sibir""). ""LK60 would be replacing gradually the presently working icebreakers,"" he said. Besides, the Ministry of Industry and Trade supports technical design of the Lider (leader) project of the icebreaker of future. This icebreaker would provide the year-round work along the Northern Sea Route. ""Thus, Russia would be able to compete with traditional routes of cargo deliveries from the West to the East,"" the designer said. The required financing for building new icebreakers is estimated at 333.4 billion rubles (about $5.8 billion), Senator Shtyrov said. ""This includes 169 billion rubles for three icebreakers, including a Lider, and 14 billion rubles for necessary infrastructures to exploit the new icebreakers. The expenses for meteorology stations along the Northern Sea Routes will make 1.3 billion rubles annually, and expenses for development of meteorology stations""?network - 2.5 billion rubles; besides, reconstruction of ports will cost 146 billion rubles (about $2.4 billion),"" he said. Deputy Prime Minister Dmitry Rogozin, who chairs the state commission on the Arctic, in an interview with Rossiiskaya Gazeta said - for the year-round escort of vessels along the Northern Sea Route and the Arctic Ocean, as well as for serving the ports there, Russia needs 5-6 nuclear icebreakers of 60-110MW, 6-8 non-nuclear icebreakers of 25-30MW and 8-10 non-nuclear icebreakers of 16-18MW. ""What Russia really lacks is mighty technical vessels. For example, we do not have strong cranes, drilling ice vessels,"" the deputy prime minister said. ""<""? Not many can build vessels of the kind, which can work in the complicated Arctic conditions. This is a promising direction for the Russian industries - such a vessel may be used in any waters of the world, but its reliability will be the highest."" Development of transport in the Arctic will be among key topics at the upcoming Arctic: Territory of Dialogue Forum, due in Arkhangelsk on March 29-30. The event will bring together international organizations, state officials, scientific and business communities to coordinate approaches to further international cooperation in development of the Arctic and in creating better living conditions for residents of the Arctic territories.", -3201,2017/3/20,http://www.dw.com/en/meet-julia-sesame-street-to-debut-muppet-character-with-autism/a-38018553?maca=en-rss-en-all-1573-rdf,Meet Julia: 'Sesame Street' to debut muppet character with autism,"Julia loves singing and playing games - and she has autism. The muppet character has joined the squad of ""Sesame Street."" The popular children's television show is known for its inclusive approach.","The creators of-""Sesame Street"" announced Sunday that the popular show would introduce a muppet named Julia who has autism. The green-eyed, red-haired character was developed during years of consultation with families, organizations and experts within the autism community, Jeanette Betancourt, Sesame Workshop's senior vice president of US Social Impact said. Betancourt said one in 68 children in the US had been diagnosed with autism spectrum disorder. ""We wanted to promote a better understanding and reduce the stigma often found around these children. We're modeling the way both children and adults can look at autism from a strength-based perspective: finding things that all children share,"" she said. Everyday situations An example is in the first episode featuring Julia. She is having fun with her friends Abby and Elmo when Big Bird walks in. He wants to be Julia's new friend, but she ignores him. He thinks she doesn't like him, until Abby informs him ""she does things just a little differently, in a Julia sort of way."" Later, the children are playing a game of tag and Julia becomes distressed when a siren wails, covering her ears.- ""She needs to take a break,"" explains Big Bird's human friend Alan calmly. Soon all is well and the group starts playing again. Passionate puppeteer The puppeteer who plays Julia, Stacey Gordon, has a son with autism and had worked as a therapist to children on the autism spectrum. ""The 'Meet Julia' episode is something that I wish my son's friends had been able to see when they were small,"" Gordon said. ""I remember him having meltdowns and his classmates not understanding how to react."" The physicist and maths genius was thought to have Asperger's Syndrome, a type of autism. People with Asperger's often focus obsessively on a complex topic and have trouble with social relationships. According to the BBC, Einstein was a loner as a child and repeated sentences obsessively. He was also very well versed in a highly complex topic - Einstein famously developed the theory of relativity. The wunderkind's gifts to learn instruments incredibly quickly, compose music by the age of five and hear melodies while writing them have some experts believe Mozart was autistic. Supporters of this theory also point to Mozart's oversensitive hearing and his need to constantly move his hands and feet. Other researchers, however, say there isn't sufficient evidence for this theory. She only started speaking at age four, but went on to become a sought-after expert for humane livestock handling: Temple Grandin uses her detailed visual memory and her own hypersensitivity to noise to better understand cattle and other animals. This has allowed her to develop thoughtful and humane animal-handling equipment. Grandin has also given many lectures about living with autism. The Canadian actor famous for his starring roles in movies like ""The Blues Brothers"" revealed in 2013 that he was diagnosed with Asperger's Syndrome in the 1980s. Aykroyd credited his Asperger's with being responsible for ""Ghostbusters,"" his biggest hit: ""One of my symptoms included my obsession with ghosts and law enforcement,"" he told the Daily Mail. You may never have heard the name Kim Peek, but you're likely to know the movie he inspired: ""Rain Man."" The 1980s classic deals with the complicated relationship between Charlie Babbitt and his autistic brother Raymond, modeled after Peek and played by Dustin Hoffman. Peek, who died in 2009, was a so-called savant. He could recall the contents of more than 12,000 books. A soup can repeated over and over again on a canvas - one of Warhol's most famous paintings could be a sign that the artist was autistic. 'I would say, from the study I have seen, that Warhol almost certainly had Asperger's syndrome,' autism expert Judith Gould said. She pointed to his reluctance to speak too many words and his obsession with the uniformity of consumer goods as further clues. Jim Parsons plays physicist Dr. Sheldon Cooper in ""The Big Bang Theory,"" one of the most-watched sitcoms in the US. It's never stated that Sheldon is on the autism spectrum, but Parsons said he believed Sheldon has Asperger's, and many fans agree. Sheldon is a genius in his field, but doesn't understand sarcasm. He has a strict weekly dining plan and can only sit in one specific spot on his couch. Author: Carla Bleiker ""Sesame Street"" writer Christine Ferraro told ""60 Minutes"" she was keen for Julia to become a major character on the show. ""I would love her to be not Julia, the kid on 'Sesame Street' who has autism,"" she added. ""I would like her to be just Julia."" Educational televison facing challenges The announcement of the new character comes as funding for public broadcasting and the arts in the US faces cuts by the Trump administration. Following funding struggles, Sesame Workshop in 2015 announced a five-year deal under which first-run episodes of ""Sesame Street"" would move to commercial premium broadcaster HBO and be shown on member stations of public broadcaster PBS nine months later. ""Sesame Street"" has a large international following along with characters specific to the more than 150 different countries it airs in. Julia has already appeared in online and printed illustrations as part of an initiative by Sesame Workshop called ""Sesame Street and Autism: See Amazing in All Children."" She is due to make her televised debut in April. Read: When being diffferent comes in handy Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XNJb se/rc (AFP, AP)", -3202,2017/3/20,http://www.dw.com/en/congress-awaits-fbi-nsa-testimony-on-russia-trump-links/a-38018721?maca=en-rss-en-all-1573-rdf,"Congress awaits FBI, NSA testimony on Russia-Trump links",The FBI and NSA directors are set to testify on their probes into possible links between Russia and President Trump's campaign. They will also address Trump's unsubstantiated claim that President Obama wiretapped him.,"James Comey, the director of the Federal Bureau of Investigation (FBI) will break his silence at a rare public hearing before the House Intelligence Committee on Monday into Russia-linked meddling in the 2016 US election. The director of the National Security Agency (NSA), Mike Rogers, is also scheduled to testify. It will be the first time that the two will speak publically about their investigations into the possible links between Russia and US President Donald Trump's campaign. Several congressional committees in both the House and the Senate have launched investigations into Russia's alleged interference. Although they have been investigating behind closed doors, lawmakers said they would make their probes as public as possible. Russia denies that it attempted to influence the US election. Devin Nunes, a Republican representative and the chairman of the House Intelligence Committee told Fox News on Sunday that there was ""no evidence of collusion"" between Trump's team and Moscow. Read: US Congress hearings on Russia could descend into a partisan slugfest Concerns that Trump and his team may have colluded with Russia cast a shadow over the administration's first two months National debate In January, US intelligence agencies took an extraordinary step of publically stating their conclusion that hackers working for Russia broke into the email accounts of senior members of the Democratic Party. The agencies also said the hackers released embarrassing messages with the goal of helping Republican candidate Trump defeat his opponent, Hillary Clinton. Even prior to the intelligence community's statement, the question of whether Trump and his campaign were coordinating with Russia has dominated the national conversation. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Xhmb Trump's first national security adviser, Michael Flynn, was fired last month after he failed to disclose his contacts with Russia's ambassador before Trump took office on January 20. New information surfaced last week that Flynn was paid $65,000 (60,350 euros) in 2015 by companies with ties to Russia. Attorney General Jeff Sessions, a former Republican senator, recused himself from investigating the Russia meddling allegations after it was revealed that he did not answer accurately during his confirmation hearing when asked about his contacts with Russian officials during the election. He failed to tell the hearing or disclose on a questionnaire that he had met with Russia's ambassador to the United States, Sergey Kislyak. No evidence on 'wiretapping' claims Comey is also expected to discuss Trump's accusation, which he has failed to back up with any evidence, that he was wiretapped by former President Barack Obama's administration. Trump first announced the unsubstantiated claim in several misspelled tweets on March 4. Last week, he said that ""some very interesting items"" would be revealed regarding his allegations. Nunes also told Fox News on Sunday that there was no evidence Trump was wiretapped. ""Was there a physical wiretap of Trump Tower? No, but there never was, and the information we got on Friday continues to lead us in that direction,"" Nunes stressed. The House and Senate intelligence committees have jurisdiction over the United State's 17 intelligence agencies. rs/rc (AFP, dpa, Reuters)", -3203,2017/3/20,http://www.dw.com/en/brazil-tries-to-contain-damage-from-meat-scandal/a-38018293?maca=en-rss-en-all-1573-rdf,Brazil tries to contain damage from meat scandal,"Amid a scandal over the sale of rotten meat, Brazil's government has been bending over backward to assure foreign consumers there has been no health threat. The president himself chose to deal with the matter.","In a desperate move to prove that Brazilian meat was safe, President Michel Temer on Sunday night invited ambassadors to a steak dinner-against a backdrop of allegations that corrupt exporters had sold deliberately mislabelled rotten meat. The scare started at the end of last week, when police raided more than a dozen processing plants. Three facilities were shut down right away-and at least 30 people were arrested after it became known that bad meat had been sold and fraudulent certificates-issued. In some cases, carcinogenic chemicals had been used to mask the smell of the meat, authorities confirmed. Mercosur deal in jeopardy? Meeting ambassadors, Temer had the daunting mission of calming the scandal, which was threatening the reputation of the world's biggest exporter of beef and poultry. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XCBw Brazilian meat is shipped to 150 nations; sales last year reached $5.9 billion (5.48 billion euros) in poultry and $4.3 billion in beef, according to government data. In Temer's address to the ambassadors (only 19 out of 33 took him up on the invitation), the President acknowledged that the scandal had caused ""major concern."" But he insisted that the tainted meat occurred in ""only a very few businesses"" and did not represent a wider problem. There were worries, though, that the recent revelations could hurt attempts to negotiate a trade deal between South America's Mercosur group and the European Union. That's because-the countries which are party to trade deals must not only have good reason to be confident that each others' regulations are properly designed to protect consumers - the regulations-must also be properly implemented.- The EU ambassador to Brazil, Joao Cravinho, said he wanted ""complete, urgent clarification from the agriculture ministry."" hg/nz (AP, AFP) -", -3204,2017/3/20,http://www.dw.com/en/happy-60th-birthday-spike-lee/a-37999457?maca=en-rss-en-all-1573-rdf,"Happy 60th birthday, Spike Lee","US film director Spike Lee is known for being a longtime advocate of equality for African-Americans. As he celebrates a landmark birthday on March 20, here's a look back at his life and most memorable films.","Spike Lee took on the role of pioneer for the African-American cause at a time when Hollywood was far away from regarding-directors and actors of color as a regular part of the industry. We have him to thank for many marvelous films: Without Spike Lee, who turns 60 on Monday, US film would not be what it is today.- Click through the picture gallery above for some of our favorite Spike Lee films. -", -3205,2017/3/20,http://www.dw.com/en/german-police-hunt-couchsurfing-scammer/a-38014617?maca=en-rss-en-all-1573-rdf,German police hunt Couchsurfing scammer,The scammer allegedly uses the internet platform to find free accommodation and then steal from the hosts. Police say the man has traveled around Germany since last year.,"German police are hunting for a scammer who allegedly stays with Couchsurfing.com hosts then fleeces them, they announced this week. Police alleged Raphael K.-routinely stayed with generous hosts on the free online hospitality service, then waited until they were out of the house to steal from them. He has traveled around Germany since 2016 taking mobile phones, laptops, and bank cards together with the corresponding PIN numbers from his hosts, police in the state of Rhineland-Palatinate-alleged. He then allegedly used the cards to purchase items or make cash withdrawals. Earlier this year a Couchsurfing host posted a warning to fellow users saying they were scammed by Raphael K.. They allege he suddenly disappeared from his apartment and fraudulently withdrew 1,000 euros (US$1,100) from their bank account. Other hosts came forward with stories of a series of other thefts, including Amazon purchases and theft of electronics. Police said they were undertaking a fraud investigation into the 26-year-old. In 2015 a German tourist was drugged and raped in New York while staying with a Couchsurfing host. The same year a 25-year-old American woman was murdered by her Couchsurfing host in Nepal. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/14zT9", -3206,2017/3/20,http://www.dw.com/en/in-rome-eu-and-north-african-ministers-hold-migration-summit/a-38017409?maca=en-rss-en-all-1573-rdf,"In Rome, EU and North African ministers hold 'migration summit'",EU and North African ministers are to meet in Rome to discuss strategies for curbing the number of migrants coming to Europe. Thousands of people have died while attempting to cross the Mediterranean in dangerous boats.,"Italian Prime Minister Paolo Gentiloni is to meet with interior ministers from a number of EU countries and from three Northern African states on Monday in Rome. The interior ministers of Libya, Tunisia and Algeria are to meet with their German, Italian, French, Austrian, Maltese, Slowenian-and Swiss counterparts. The EU commissioner for migration, Dimitris Avramopoulos, is also attending. Italy's-Interior Minister Marco Minniti wants to form a permanent ""contact group"" between European and North African countries that addresses migration issues. Following the closure of the so-called Balkan route and an EU deal with Turkey, more migrants have attempted the hazardous route from North Africa across the Mediterranean towards Italy.- Thousands of people have drowned in the Mediterranean during their attempt to make it to Europe in small vessels unfit for the high seas. -The Italian news agency Ansa reported on Sunday that a-total of 3,315 people had been rescued from the Mediterranean in 25 separate operations over 24 hours. ""After some calm days, migrants are arriving in large numbers, taking advantage of a window of favourable weather,"" a coastguard official said. The French-German ""SOS Mediterranee"" initiative reported on its website that it had picked up a thousand migrants, including almost 200 children, from nine boats.- The UN migration agency IOM has reported that in 2016 a record number of migrants died at sea or were killed and thousands more were abused. Some 16,000 migrants have already arrived in Italy since the start of the year. That is a rise of about 5,000 compared to the same period last year. Some 520 people are known to have died.- The Italian island of Lampedusa lies-296 kilometers (184 miles, 160 nautical miles) north of Tripoli. Since longtime dictator Moammar Gadhafi was ousted and killed in 2011, authorities have struggled to control Libya's long coastline, leaving sections in the hands of human traffickers. Police in Sicily said on Saturday they had jailed a 20-year-old Ghanaian who had been identified by several migrants as the man who had raped several women and abused migrants in Libya while they were waiting passage. The man arrived on Lampedusa on March 5 where he was recognized. He is being investigated for-human trafficking, kidnapping, sexual violence, torture and other crimes. mb/jm (AFP, dpa)", -3207,2017/3/20,http://www.dw.com/en/after-refugee-attack-near-yemen-port-saudi-led-coalition-calls-for-un-supervision/a-38017349?maca=en-rss-en-all-1573-rdf,"After refugee attack near Yemen port, Saudi-led coalition calls for UN supervision",A Saudi-led coalition fighting in Yemen has called for the UN to place the port of Hodeidah under its supervision. It has denied involvement in the deaths of 42 Somalis killed in an attack on a refugee boat nearby.,"Some 42 refugees, who were carrying official UN refugee agency (UNHCR) documents, were killed while travelling by boat from Yemen to Sudan late on Thursday in the Bab el-Mandeb strait about 30 miles (48 kilometers)-from the Red Sea port of Hodeidah. A Saudi statement released on-Sunday said placing the port under UN control would: ""facilitate the flow of humanitarian supplies to the Yemeni people, while at the same time ending the use of the port for weapons smuggling and people trafficking."" ""We are also aware of allegations that the attack was carried out by a helicopter and naval vessel belonging to the Saudi-led coalition,"" the Saudi-led alliance said in the statement. ""We can confirm the coalition was not responsible for any attack on a refugee boat on Friday and [...] there was no firing by any coalition forces on Friday in the area-of Hodeida,"" the statement continued. It did not address a call by Somalia to investigate-the incident. Somalia itself is a member of the coalition fighting against Shiite Houthi rebels in Yemen. Pentagon spokesman Adam Stump on Friday denied US involvement, saying no US strikes had been conducted in Yemen in the previous 24 hours. The US also supports the Saudi-led force in Yemen. Somali refugees at the Red Sea port of Hodeidah Mixed reports The rebel-controlled Saba agency reported the refugees had been attacked from the air by the Saudi-led coalition, but did not provide further details. The incident happened as the Saudi-led coalition was reportedly preparing to launch a wider operation against the port city.-A local news agency reported what it called ""a sharp rise"" in the coalition's air raids on Thursday around the port. Aid workers said the attack had involved a helicopter.- ""We do not know who carried it out, but survivors said they came under attack from another boat at 9 p.m., the crew used lights and shouted to signal this is a civilian boat,"" Iolanda Jaquemet, a spokeswoman for the International Committee of the Red Cross said. ""Nevertheless, it did not have any effect and a helicopter joined in the attack,"" she said. Caught in the crossfire Refugees and asylum seekers have been moving out of Yemen and heading north because of deteriorating conditions. The Red Sea port of Hodeidah is near the Bab al-Mandab strait. This is a strategic waterway through which nearly four-million barrels of oil are shipped daily. It is under the control of Yemen's Houthi movement and part of a battlefront where forces loyal to Yemeni President Abd-Rabbu Mansour Hadi are fighting the-Iran-allied Houthi movement, which controls most of northern and western Yemen. The Saudi-led coalition was formed in 2015-to fight the Houthi rebels and troops loyal to former president Ali Abdullah Saleh.- Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XxkD jbh/jm (Reuters, AFP) -", -3208,2017/3/20,http://www.dw.com/en/east-timor-holds-first-presidential-election-since-un-peacekeepers-left/a-38017195?maca=en-rss-en-all-1573-rdf,East Timor holds first presidential election since UN peacekeepers left,Asia's youngest democracy is choosing a new president in-its first such election since a UN peacekeeping mission-left the country in 2012. The vote is a political preliminary for July's vote for a prime minister.,"Eight candidates were in the running for the largely ceremonial post of president as polling-stations opened on Monday morning at 7 a.m. local time-(2200 UTC) in the east Asian country. Polls were due to close at 7 p.m. local time. With 740,00 people eligible to vote out of the population of 1.2 million, early indications were that turnout could be lower than in previous elections,-Damien Kingsbury, a South-East Asia expert at Deakin University in Australia, told DW on Monday. In the last presidential election in 2012 voter turnout was 86.3 percent. ""The election process seems to be running smoothly,"" Kingsbury said. He is monitoring the election in the west of the country.-""But there haven't been massive lines to the voting booths so far,"" he added. ""The last opinion poll was about six weeks ago and showed that Francisco ""Lu-Olo"" Guterres was expected to win in the first round, but it may now be much closer than we expected then,"" Kingsbury said. He added that the official result would be announced in about a week, but that there should be strong indications of the result by the end of Monday.- The president is the commander-in-chief of the military and able to veto legislation, dissolve parliament and call national elections. But the real power lies in the hands of the prime minister and cabinet. The president is elected by absolute majority vote through a two-round system to serve a 5-year term. If necessary, a run-off would be held on April 20 following Monday's first round. Voters standing next to ballot boxes Front-runner 'Lu-Olo' Guterres is backed by independence hero-Xanana Gusmao, his own Fretilin party and the center-left National Congress for Timor Reconstruction (CNRT), which joined forces in 2015 to form a grand coalition government. ""Whoever is supported by Mr Xanana will be elected,"" Julio Tomas Pinto, a former junior minister of defense and political science lecturer at the National University of Timor Leste told the German press agency DPA.-""The others are there just for the merriment."" Should the vote go to a second round, Guterres could face Education Minister Antonio da Conceicao.-""The real question is who the other six eliminated candidates will back,"" Swinburne University East Timor expert Michael Leach told ""The Australian"" newspaper. Fretilin started out as a resistance movement against Portuguese and later Indonesian rule. It formed-the government that ruled from independence in 2002 until 2007. The pretender Education Minister Antonio da Conceicao - whose campaign slogan has been ""peaceful politics"" - is backed by the two main opposition parties. The Democratic Party (PD) is a former junior government partner that lost its position when Fretilin joined the CNRT in government. The People's Liberation Party (PLP) is-a new party formed by outgoing president Jose Maria de Vasconcelos, known as ""Taur Matan Ruak""-or ""Two Sharp Eyes."" Ruak is expected to run for the more powerful position of prime minister in July's general elections. How well da Conceicao does in the presidential election could indicate East Timorese voter intentions for July. Presidential candidate Antonio da Conceicao (R) Coffers running low Ruak has accused some of the leaders in the fight for independence of using the popular memory of the struggle to secure political and financial benefits for themselves. The former Portuguese colony was invaded by Indonesia in-1975. A 24-year resistance movement achieved independence in 2002 and many of its key figures still feature prominently in-the running of the country. Timor now has revenue from offshore oil and gas reserves but Ruak has argued that the country's sovereign wealth Petroleum Fund,-will run out before 2028. This would be too soon for Timor to develop a sustainable, alternative non-oil economy, at current spending rates, he has argued. ""The next five years with new leadership is a critical time because money from the currently used oil fields is mostly depleted,"" Charles Scheiner of La'o Hamutuk, a think-tank based in the capital Dili, told the ""Nikkei Asian Review."" The challenge for any incoming government will be to diversify the country's sources of income into agriculture and manufacturing. The energy sector accounts for about 60 percent of GDP and 90 percent of government revenues. Post-independence instability Violence started after East Timor voted for independence from Indonesia in a UN-sponsored vote in 1999.- The UN administered the former Portuguese colony until-2002, when it became formally independent, but-a UN-mission stayed-until 2005 to-help it establish state and security institutions. It returned again-in 2006 and finally departed in 2012. jbh/jm (dpa, Reuters)", -3209,2017/3/20,http://www.dw.com/en/peru-faces-more-rain-as-floods-and-landslides-make-thousands-homeless/a-38017320?maca=en-rss-en-all-1573-rdf,Peru faces more rain as floods and landslides make thousands homeless,More than 70 people have been killed in Peru after the worst flooding in two decades. Thousands of people have been made homeless and a state of emergency declared in more than 800 cities.,"Highly unusual rains have followed a series of storms along Peru's northern coast after a period of severe drought.-There has been an unusual warming of sea surface temperatures off Peru's northern coast by five to six degrees up to 29 degrees Centigrade (84 degrees Fahrenheit.)- The rains have caused many rivers in Peru to overflow and triggered mudslides-on the steep Andean hillsides. The weather forecast is for more rain in the coming days and weeks.- ""We need more and better bridges, we need highways and cities with drainage systems,"" said Chavez. ""We can't count on nature being predictable."" said General Jorge Chavez, who is coordinating the government's response. The army has been deployed to help police in the 811 cities that have declared an emergency. The National Emergency Operations Center said 99,475 Peruvians had lost everything since the beginning of the year, while 626,928 had suffered less serious damage to their homes. The warming of sea temperatures in the Pacific, known as ""El Nino"" is expected to last-through April.- Rescue operations in Lima Government response The-majority of people affected by the extreme weather are poor, including many who built makeshift homes destroyed in the floods.-The drainage systems in cities along the Pacific coast and there is a growing risk from mosquitos which carry diseases such as dengue.- President Pedro Pablo Kuczynski has promised 720 million euros ($774 million) in emergency aid from the government.-""We must help each other in solidarity with those who are victims,"" Kuczynski told reporters. Earlier, the president said ""There hasn""t been an incident of this strength along the coast of Peru-since 1998."" Lawmakers from across the political spectrum said they would avoid clashes with the executive so the government could focus on helping the victims of the floods.-The President's popularity had recently suffered under a massive graft scandal, sparking heated fights with the opposition.- mb/jm (AFP, dpa, Reuters)", -3210,2017/3/20,http://www.dw.com/en/roger-federer-beats-wawrinka-for-fifth-indian-wells-tennis-title/a-38017337?maca=en-rss-en-all-1573-rdf,Roger Federer beats Wawrinka for fifth Indian Wells tennis title,Federer beat his Swiss compatriot to become the oldest winner of the BNP Paribas Open title in California. His ranking goes up to number six in the world as a result.,"The 35 year-old Federer beat Stan Wawrinka in two sets, 6-4, 7-5 in the California desert on Sunday. ""It's been just a fairytale week once again,"" Federer said after the match. ""I came here for the first time 17 years ago. So to be here again as the champion is an amazing feeling."" Federer hit ten winners in the opening set, including a trademark single-handed backhand rocket in the first game. Coming into the final, Federer had faced only one break point on his serve and Wawrinka managed just four points while returning in the first set. In the tenth game of the first set as Wawrinka was serving at 30-30, Federer drew a forehand error for a set point and then Wawrinka overhit another forehand to lose the set. Wawrinka broke Federer at the start of the second set but his lead was short lived. The Basel native broke back and won the next three games before breaking Wawrinka's serve again in the 12th game to take the match. Roger Federer In all, Federer hit 23 winners, including 16 off his backhand in the 80-minute match. After the final, Wawrinka apologized. ""I'm sorry. I'm just tired after 10 days, so, sorry,"" he said. Stan Wawrinka It was Federer's 90th tour-level title and his 25th ATP World Tour Masters 1000 title. At 35 years, he is the oldest Masters 1000 champion since a 34-year-old Andre Agassi won the Cincinnati title in 2004. After six months out of the game last year with an injury Federer started the year ranked 17th in the ATP world rankings. He moves up four places to 6th when the latest rankings are published on Monday. All-Russian women's final In an all-Russian women's final, Elena Vesnina defeated Svetlana Kuznetsova in three sets 6-7, 7-5, 6-4. Kuznetsova led 4-2 in the third set before Vesnina broke her twice to take the last four games of the match. Vesnina made 46 winners and 49 unforced errors during the 3 hour match. The 30-year-old Vesnina lost in the first round of qualifying last year, although she has won three doubles titles at the tournament. On the way to the final she beat both Germany's Angelique Kerber and Venus Williams. The 31-year-old Kuznetsova was playing her third final, after finishing runner-up in both 2007 and 2008. jm/av (AFP, AP)", -3211,2017/3/20,http://www.aljazeera.com/indepth/opinion/2017/03/scared-trump-drone-reforms-170319074243420.html,,,"Donald Trump's presidency got off to a bloody start in January, when a special operations forces raid against al-Qaeda in Yemen killed numerous civilians and a US Navy SEAL. The raid was a disaster, but it did not deter the US from launching more attacks using drones and other weapons platforms. In one week earlier this month, the Trump administration conducted about 40 strikes in Yemen, including 25 on a single day. Added to that, there was a drone attack in Pakistan, the first in the country since May 2016. Barack Obama was much criticised for his dramatic escalation of drone strikes in non-battlefield settings such as Pakistan, Yemen, Libya, and Somalia. But Trump is already surpassing Obama's record. According to Micah Zenko, an expert on drones at the Council on Foreign Relations, Obama conducted one strike every 5.4 days; Trump has thus far averaged one strike or raid every 1.25 days. And now Trump may go even further, rescinding some of the constraints President Obama placed on targeted killing policy. Those constraints date back to 2013, when Obama announced a policy shift in a public speech at the National Defense University. At the same time, he issued classified guidance insisting that targets pose an ""imminent threat"", that their capture is ""not feasible"", and that there be ""near certainty"" civilians will not be injured or killed (PDF). In 2013, Obama also decided to transfer strike authority from the CIA to the military, which supposedly operates with greater transparency and has more respect for the laws of war. According to stories in the New York Times and Wall Street Journal, Trump might roll back these reforms, loosening rules of engagement and returning the drone programme to Langley. How much of a difference will this make? The looser rules on targeting are certainly concerning. Drones, while more accurate than other weapons systems, have killed plenty of non-combatants. While the Obama administration estimated that as many as 116 civilians had died in strikes between 2009 and 2015, the Bureau of Investigative Journalism puts the tally much higher, between 380 and 801 civilian fatalities in the same period. Civilian casualties are not just a moral and legal matter, but have strategic ramifications, too. The Stimson Center, in a major inquiry led by a bipartisan group of former government officials, concluded that targeted killing may cause blowback and ""become a potent recruiting tool for terrorist organisations"" (PDF). Other prominent figures, including General Stanley McChrystal, and a leaked internal CIA report have expressed similar concerns (PDF). OPINION: Drones have forever changed us Yemen exemplifies this problem most clearly. It has been reported that drone killings have driven many into the arms of al-Qaeda. Yemeni activists, such as Farea al-Muslimi, have warned that the strikes intensify anti-American feeling in their country. According to the Washington Post, al-Qaeda had about 300 operatives in Yemen in 2009. By 2012, after three years of intensifying US intervention, it had 700 or more. Obama shifted authority for drones to the military for a very good reason. It has been argued, including by former CIA Director John Brennan, that the agency should move away from paramilitary activities, which intensified after 9/11, and concentrate on its core mission of intelligence collection and analysis. The CIA's short-term, tactical focus has distracted it from major geopolitical issues, according to a report by the Intelligence Advisory Board. However, Trump's plans may change little in practice. Even after Obama moved strike authority to the military, the CIA still remained closely involved in the killing process. Agency personnel provided targeting information, and military drone operators pulled the trigger: it was a joint enterprise. Moreover, when Obama shifted drones to the Pentagon, the CIA still retained its control over strikes in Pakistan. Also, as law professor Robert Chesney wrote, it is unlikely that moving drones to the CIA will markedly increase secrecy. True, the agency operates under covert action legal authority, which bars administration officials from publicly admitting to drone strikes. It is unlikely that moving drones to the CIA will markedly increase secrecy. - This meant that the government could not even acknowledge the existence of the drone programme, although it had been widely reported in the press. But Joint Special Operations Command (JSOC), which conducts military drone strikes, is not a transparent organisation, either. JSOC was possibly even more secretive than the CIA before reforms improved congressional oversight of special operations forces. Some believe the military should conduct strikes because it has greater respect for the laws of war than the CIA. But that is far from obvious, as recent exposes of special operations abuses show. OPINION: 'Bugsplat' - The ugly US drone war in Pakistan Obama's changes to the drone programme were modest and incomplete, anyway. ""Signature strikes"", where the US targets individuals without knowing their identity, continued in the last years of his administration. There is still no judicial review of targeted killing, where the courts can assess strikes after the fact, as in Israel. Obama's controversial policy of targeting US citizens has not changed under Trump. And the questionable domestic legal rationale used to justify non-battlefield drone strikes remains in place. Furthermore, there are still no internationally agreed rules on targeted killing outside conventional war zones. The Stimson Center report recommended that the Obama administration lead efforts to develop international norms governing the use of drones. But, despite some murmurings in the right direction, the White House had ""done little"", Stimson concluded in a 2016 review. With more and more countries now developing armed drones, the lack of any overarching legal framework is potentially dangerous. So, while Trump's reforms are problematic, the programme he inherited from Obama was already concerning. Rupert Stone is an independent journalist working on national security and counterterrorism. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3212,2017/3/20,http://www.aljazeera.com/news/2017/03/drugs-alcohol-blood-paris-orly-airport-attacker-170320050802655.html,"Drugs, alcohol in blood of Paris Orly airport attacker","Toxicology tests showed Ziyed Ben Belgacem had consumed alcohol, cannabis and cocaine before attacking a soldier.'","A-man shot dead at Paris's Orly airport after attacking a soldier was under the influence of drugs and alcohol, the results of an autopsy showed. Ziyed Ben Belgacem-was shot dead on Saturday as he tried to seize the weapon of a female soldier at the airport while shouting, ""I am here to die for Allah"". The 39-year-old-had a blood alcohol level of 0.93 grams per litre, almost twice the legal driving limit in France, and had also taken cannabis and cocaine, the AFP news agency reported, citing judicial sources. Investigators are still trying to determine what motivated Saturday's assault by Belgacem, which led to a major security scare and the temporary closure of the capital's second-busiest airport. Early investigations indicated that Belgacem, who had an extensive criminal record including convictions for drug dealing and armed robbery, had been influenced to carry out the attack while in prison. READ MORE: Mass rally in Paris against police brutality Ben Belgacem's father insisted his son was not a ""terrorist"". ""My son was not a terrorist. He never prayed, and he drank,"" the father, who was in shock and whose first name was not given, told Europe 1 radio. Before the attack at the airport, Belgacem had opened fire on a police officer at a checkpoint in the northern Paris suburb of Garges-les-Gonesse and had later stolen a car. The attack at Orly comes with France still on high alert after a wave of attacks that have claimed more than 230 lives in two years. Following the coordinated attacks around Paris in November 2015, the French government declared a state of emergency that was extended in December for the fifth time and will remain in force until July 2017. The violence has made security a key issue in France's two-round presidential election on April 23 and May 7. Source:-News agencies", -3213,2017/3/20,http://www.aljazeera.com/news/2017/03/trump-invites-egypt-sisi-white-house-170320074110443.html,Trump invites Egypt's Sisi to White House,US president to hold talks with Egyptian leader Abdel Fattah el-Sisi in Washington on April 3.,"US President Donald Trump will host Egyptian President Abdel Fattah el-Sisi for talks in Washington on April 3, a White House official said on Sunday. The visit will be at Trump's invitation, the official said. The two leaders, in a January 23 phone call just days after Trump's inauguration, discussed ways to boost the fight against ""terrorism"", and Trump underscored his commitment to bilateral ties, the two governments said at the time. Sisi, who had strained relations with Trump's predecessor Barack Obama, was elected in 2014, a year after leading the military's ousting of the democratically elected president, Mohamed Morsi, after mass protests. Source:-News agencies", -3214,2017/3/20,http://www.aljazeera.com/indepth/features/2017/03/qa-satirist-pardis-parker-takes-aim-propaganda-170308165805851.html,Q&A: Satirist Pardis Parker takes aim at US propaganda Smriti Daniel,The star of Mideast Minute talks about the power of satire and how some government officials and news outlets are lying. By,"On the satirical news show Mideast Minute, Jamsheed al-Jamsheedi is a host who specialises in telling brazen lies.-The man who created the show and stars as al-Jamsheedi is the award-winning filmmaker and comedian Pardis Parker. Parker, Sri Lankan-born and Canadian-reared, has his tongue firmly in cheek as he tries to convince a hypothetical Middle Eastern audience that immigration to the United States is overrated, that US president Donald Trump's son-in-law, Jared Kushner, is actually qualified to broker peace between Israel and Palestine and that Middle Easterners shouldn't bother boosting the price of crude oil because, frankly, who needs it anyway? Mideast Minute's first iteration was as a webseries in 2007, but Parker, who lives and works in the US, tells Al Jazeera that he chose to revive the show, which launched in January, for Comedy Central because it was just such a perfect fit for 2017: ""Just look at today's political discourse. At every headline. There's a propaganda machine in place that's targeting Americans and foreigners alike, and even if it's not new, I don't think it's ever been this shameless."" Parker speaks to Al Jazeera about the comedic potential of propaganda, whether comedy can be deployed as a political weapon against Donald Trump, whether he considers what he does to be journalism, and how his own history as an immigrant shapes his work and his life. - Al Jazeera: Mideast Minute is billed as satirising the US's foreign propaganda efforts, taking aim at shows like those on the US Congress-funded Alhurra network. What is it about this media and political landscape that makes it such a good source of comedy for you?- Pardis Parker: The deception of it. The bald-faced lie. That's something I've always been drawn to in film and TV. There's no greater tension, I don't think, than that of a character who's on the precipice of being exposed as a liar or cheat. Think back to US media coverage and press briefings by US officials during the war. We were being lied to again and again and again - about Iraq's involvement in 9/11, about the existence of WMDs, about the expected length of the war, about the expected cost, about the ""surgical"" nature of our involvement, about our impact on Iraq's civilian population, about our expectation of being greeted as liberators and saviours, about our reasons for going to war in the first place, about our behaviour at Abu Ghraib, and on and on. Again and again, when we turned on the news, we'd see a government official look us straight in the eye and lie. And I wanted to take that further. WATCH: My Nigeria - Basketmouth: Trash Talking- Al Jazeera:-What makes your character, the anchorman Jamsheed al-Jamsheedi, tick? Parker: It feels like government officials and certain media outlets are becoming increasingly brazen with their falsehoods, and ultimately that's what this character wants to be. In previous iterations he was more of an out-of-his-depth buffoon, someone grossly unqualified for the job he was tasked with, and that version was inspired heavily by Peter Keleghan's character from a mid-90s Canadian sitcom about a local news team. He was a complete airhead. A pompous egomaniac. But there's less of that, now. Now the focus is more and more on the brazen lie and on trying - and often failing - to get away with it. And the inspiration, honestly, shows up every night at 6pm. Al Jazeera:-A slew of late-night shows featuring the likes of Stephen Colbert, John Oliver and Samantha Bee comfortably bestride the worlds of journalism, comedy and political commentary. You also refer to news sources in your show, but would you consider what you do a form of journalism? When fake news is making headlines, how does a satirical show distinguish itself? Parker: Our second episode was about Jared Kushner, and we had well-informed friends say they'd never heard the details we shared in that episode about Kushner's past, and that it was their favourite episode at least in part because of the information we'd dug up. So, no, I don't think what we're doing is journalism, but I think in the satirical news space the shows people are enjoying more than others are the ones like John Oliver's, that have, if not a journalistic component, then at least an informational one - where they unearth new facts and footage to serve as the foundation for the jokes they're telling and positions they're taking. It strengthens the comedy, and can serve as a springboard to not just laughter, but the shock, surprise, and disgust that oftentimes come with it. Now, to be clear, we're nowhere near as good as the shows you listed, but I think the best version of our show lies in episodes like the Kushner one, where deeper research leads to better joke-writing. READ MORE: Asylum seekers pay price for sheltering Edward Snowden- Al Jazeera:-For comedians, the Donald Trump presidency has been a gift that will not stop giving. Aziz Ansari, Bill Burr and Melissa McCarthy are among the many who have taken on the Trump government. But it's not all just for laughs. Filmmaker Michael Moore called on his fans to ""form an army of comedy that will bring him [Trump] down"". Is this idea - comedy as a form of political activism - one that resonates with you at all? Parker: I grew up in a family that believed the divisive nature of partisan politics was detrimental to our communities, and that's a belief I still hold today. So my hope is that the show and my involvement in it, though it looks and feels like political comedy, isn't seen as contributing to the conflicts already resulting from America's affliction with partisanship. But just because I'm fundamentally non-partisan in my perspective doesn't mean I'm blind to injustice, or that I'm unwilling to shine a light on the areas our country would do well to improve in. And one such area is the honesty and transparency exhibited by government officials in their communications with us and with others. I think we have a fair and rational expectation to their honesty, that it's something we have the right to expect from all government employees, and I believe it's perfectly reasonable to use the arts, and comedy in particular, to take a non-partisan, non-violent, and peaceful approach to winning the affirmation of that right. I don't know what effect the show will ultimately have, if any, and my objective certainly isn't to bring anyone down. But satirising propaganda is a type of comedy I enjoy, and I'd be delighted if it had value beyond mere entertainment. IN PICTURES: The scars of Sri Lanka's civil war- Al Jazeera:-On a personal note, your degree was in computer science and psychology; you later travelled widely and eventually went on to run a health food store. How did you go from there to stand-up comedy? When did you know you had made the right choice in switching careers? Parker: I made the mistake of thinking and acting pragmatically when I was younger, instead of just following my heart. From a very young age I had a love for comedy and TV shows and movies. I used to record Just for Laughs stand-up clips on to VHS tapes when I was in grade school and force my teachers to show them to the class. I could never get enough of the 80s sitcoms and action shows I grew up with. Or the action movies my friend's father would illegally record from the movie channel and we'd watch one after another after another when I'd visit. So if you actually looked at how I spent my time as a kid, you'd realise that my whole upbringing was preparation and research for two things: one, how to record TV shows and movies to VHS for later viewing, and two, how to tell stories visually and comedically. And at some point I just reached a psychological impasse - I couldn't continue being pragmatic any more. Couldn't ignore my desire to make stuff and make people laugh. So I tried it. And I liked it. And I still don't know if I made the right choice - I have no idea what my life would've been if I hadn't made the switch - but I do know I love my life as it is and couldn't be happier with how I spend time to earn a living. Al Jazeera:-You are the first Sri Lankan-born actor/comedian to create and star in your own project for a US network. How has your mixed heritage, and your family's history as immigrants, influenced your art? Parker: Not just my art - it's informed my whole worldview. My family sought asylum in Canada, which was kind as a country to take us in, but the place we moved to was a sea of white. For years, we were the only family with pigment in our whole neighbourhood. The only family that didn't reflect light. The only family who knew of a spice beyond pepper. And regardless of how kind-hearted and welcoming and tolerant Canadians were - which they overwhelmingly were - the fact of the matter was that we still stood out. Even if we barbecued like them and went sledding like them and played in minor soccer leagues like them, we were still the ""other"". So I grew up an outsider. And that was my truth. Never quite fitting in. Not with the white kids for whom I was a foreigner, nor with the brown kids who felt like foreigners to me. And so the result, I think, is that the content I now consume and wish to create revolves primarily around three things. First,-acceptance of the other; second, triumph of the underdog; and third, friendship and family. Squint at it from just the right angle and I guess you could say that Mideast Minute addresses the second - it's about speaking truth to power, and making the voiceless masses feel as if they're not alone - as if there are others like them who perceive the same absurdity they do, and who are willing to point a big flashing arrow at it. But those three themes - acceptance, triumph, and family - are ones I've subconsciously explored even going back to my first film, Afghan, and I imagine they'll be themes I continue to explore in the future. The interview has been edited for clarity and length. - Source:-Al Jazeera", -3215,2017/3/20,http://www.aljazeera.com/programmes/witness/2017/03/time-stopped-sea-170319065317387.html,When Time Stopped At Sea,An Iraqi former secret agent searches for his teenage son who disappeared on a sinking refugee boat headed for Greece.,"It's been a year since Jamal's youngest son vanished without a trace. Equipped with the skills he gained from Saddam Hussein's secret service, Jamal must reconstruct his son's last known steps taken during the height of the refugee crisis. The search takes Jamal from Turkey to Greece but key information is shrouded in bureaucracy and ambiguity. And now the clock is ticking with an offer of relocation for the rest of his family to Europe. Will Jamal's search for his son, Bakeer, get him the answers that can help his family to move forward? Source:-Al Jazeera", -3216,2017/3/20,http://www.aljazeera.com/indepth/features/2017/03/venezuela-spiralling-mental-healthcare-crisis-170307070622370.html,Venezuela's spiralling mental healthcare crisis Sofia Barbarani,The country's economic strife has left the healthcare system struggling to cope with a growing mental health crisis. By,"Caracas, Venezuela --Luis Alberto Machado can barely sustain a conversation, let alone remember the day he attacked his mother by hitting her over the head with a rock. The 34-year-old was diagnosed with schizophrenia in his mid-teens. Back then he was still a boy but today his gangly frame towers over his petite 60-year-old mother, Maria Machado, making her an easy target for his violent psychosis. ""We've had to lose the fear and learn to hold him down,"" explained Luis's 28-year-old sister Maria Ruli. ""[He's broken] the fridge, the blender. My mother has no life because of him."" ""It's gotten worse because there's a lack of Sinogan,"" said Maria Machado in reference to a sedative widely used for psychiatric illnesses. The three family members were sitting in the afternoon heat, the last in a line of patients waiting outside the emergency department of one of Caracas' psychiatric hospitals. Ahead of them a handful of parents and carers also waited, hoping to receive anti-psychotic medication for their patients. In 2013 Venezuelans had access to 70 types of anti-psychotics; today there are only five, according to Wadalberto Rodriguez, president of the Venezuelan Society of Psychiatry. ""There's a 95 percent shortage of anti-psychotics,"" said Dr Rodriguez. ""It's an extremely complex situation because one anti-depressant cannot cure a variety of depressions."" As is the case with staple foods, many Venezuelans are often forced to turn to the black market to buy medication at exorbitant prices. ""All patients are receiving the same kind of treatment, which means that many of them aren't getting any better and the symptoms then become chronic,"" explained Rodriguez. The steep reduction in anti-psychotics in Venezuela is partly a result of the country's financial strife. According to Rodriguez, President Nicolas Maduro's socialist government has often been unable to pay the foreign companies providing Venezuela with medication. ""As a result [the companies] have stopped dispatching [the drugs],"" he said. The failed Vatican-brokered talks between the government and the opposition saw the latter demand the opening of a humanitarian channel to allow medicine into the country, but that channel never materialised. As a result, many mental health patients in Venezuela are regressing to a state of psychosis and anguish that cannot easily be treated. And although helplines and counselling groups have become increasingly common, this has not halted the rising suicide rate. READ MORE: Venezuela - Patients dying as crisis hits hospitals While there are no accurate figures yet, psychologist Dr Yorelis Acosta is adamant that there has been a stark rise in suicides. ""We're starting to see more information on suicides and keeping count of it,"" said Acosta. ""In the month of January, 32 suicides were registered in Caracas alone. This is an alarming number that should grab the government's attention."" The shortage of drugs, which began in mid-2016, has resulted in a large number of patients being re-admitted into under-equipped hospitals. ""We've more and more patients each day,"" said 32-year-old nurse Carlos, whose real name has been changed to protect his identity.- Before 2016 the clinic received an average of five emergency cases per day. On the day Al Jazeera visited, they received about 20 during a single afternoon, in addition to those already hospitalised. ""Almost all the patients we have at the moment have been re-admitted because they couldn't find their [prescribed] medicine,"" explained the nurse, sitting outside the psychiatric hospital he has worked at for eight years. ""The last medications we received came through a month ago and before that we hadn't received any in four months."" IN PICTURES: The face of hunger and malnutrition in Venezuela Despite a surge in people needing to be hospitalised, doctors have been forced to turn away desperate cases owing to lack of food, water, medical equipment and even staff. Carlos is one of four nurses per 30 patients in a hospital with poor ventilation, and where there is running water for just half an hour each morning and 10 minutes each afternoon. ""The rooms are fetid and sometimes the patients can't shower. People wet themselves and we've no diapers,"" said Carlos. ""There are 60 [hospitalised] patients at the moment, but we've capacity for 90,. We have had to block places because there are no doctors. They've left,"" added the young nurse. Working to take care of the mentally ill has become an ordeal in Venezuela's understaffed hospitals. With sedatives no longer readily available, physical restraint has become a common practice, which also has its hazards for the staff. ""We've no measures to protect ourselves; a patient with psychosis [can] self-harm, harm other patients and throw the ward into chaos,"" explained Carlos. Outside the emergency ward was a young carer with scars inflicted by her unmedicated patient on her forearms.-The patient, an elderly woman with spots of dry blood on her earlobes and a mass of dishevelled hair, sat beside her, mumbling unintelligible phrases. Next to the carer and her patient, an elderly mother clutched a brown folder containing years of medical bills belonging to her schizophrenic son, a pale 62-year-old man with large brown eyes. His mother had spent the past day and a half searching for his medication in several pharmacies to no avail. Her son was diagnosed with schizophrenia at 28, but he went on to study law and was employed for many years. ""He worked in a court with top lawyers, but because of the shortage of medication he became ill again,"" said Clara, whose real name has been changed to protect her privacy. Clara explained that she has spent more than $5,000 in healthcare for her son in a year and lost 20kg in the same space of time as a result of the country's dire food shortage. ""Three months ago the situation got worse, he stopped eating and he doesn't go to the toilet any more. He's going to die of malnourishment,"" she added. ""Either [the government should] give me the medicine or pay me back what they owe me."" That warm February afternoon the mother-of-three had tried to hospitalise her son, but a shortage of staff and medication meant that they were turned away and forced to try other hospitals. READ MORE: Clinics attacked in Venezuela vote violence While patients and their dwindling access to drugs is a prime concern in a country where mental health problems are on the rise, family members have also become victims of scarcity, forced to supervise patients in an almost oppressive manner in the hope that they will not slip into psychosis and harm themselves or others. On the way into the emergency ward a leaflet on the door offers counselling sessions to family members. Nicole plans to attend these meetings to help her cope with her 24-year-old schizophrenic son's bouts of psychosis. ""Sometimes I feel like my head is under too much pressure and that my veins might explode,"" she explained. Sometimes Nicole - who asked that her real name not be used - spends entire mornings searching for her son's antipsychotic medication instead of working her morning shift. ""I do what I can, I even owe [people] money in order to buy the medicine. Right now I'm searching for one medication, but you never know if you're going to find it, so when he gets down to three or four pills you start to feel anguish and anxiety,"" explained the 60-year-old mother whose son regularly slips into psychosis, a state that sees him tormented by visual and auditory hallucinations. ""Sometimes I spend one or two days [searching for the medication]. I worry because if I don't work I don't earn,"" said Nicole, who cares for her son alone. Those who can afford to leave Venezuela have done so in large numbers, travelling to neighbouring countries or to the US. Patricia, a 35-year-old stylist, has plans to migrate soon to find financial stability and a functioning health system for her depression and anxiety attacks. ""The state of the country is affecting me, so I've decided to go to Colombia,"" explained Patricia, who had been unable to find two of her three prescribed drugs. One mother, who was also desperately searching for medication for her son, interjected:-""They didn't send us an atomic bomb, but they left us without medication - which is the same."" Source:-Al Jazeera News", -3217,2017/3/20,http://www.aljazeera.com/indepth/features/2017/03/chlorine-gas-weapon-syria-civil-war-170314110043637.html,How chlorine gas became a weapon in Syria's civil war Dorian Geiger,Syria's chlorine problem: the human toll of chlorine attacks in six years of civil war. By,"Mohamed Tennari, a medical doctor, was visiting an electronics repair shop in the northwestern Syrian village of Sarmin to have a broken internet router fixed.-The store was owned by family friend Waref Taleb. Tennari left the router with Taleb and returned the following day to collect it. Taleb did not charge him for the fix. These were the last exchanges the two Syrian friends would ever have. The next time Tennari saw Taleb was on March 16, 2015, a month or two later, following a chlorine chemical attack in Sarmin. This time, though, Taleb was on an operation table in the emergency room of the Sarmin field hospital. Tennari rushed into the emergency room to see Taleb, who was coughing, choking, foaming at the mouth, and barely clinging to life. That night, a helicopter had dropped a barrel bomb containing chlorine that exploded on Taleb's home.- ""We couldn't help him because he inhaled a lot of chlorine,"" Tennari, 36, recalled, who has been working as a doctor in Syria since 2007. OPINION: We must not let chemical weapons to become the 'norm' Taleb's family scrambled into their basement to hide. The noxious gas seeped into-the ventilation ducts of their house-and killed Taleb and his entire family - his mother, wife, Ala'a Alajati, and their three children Aisha, three, Sarah, two, and Muhammad, one. ""They all died. It was so bad that we couldn't save them,"" he added. ""[Taleb] was my friend and it was so sad."" Tennari suspected it was the Syrian regime that dropped the toxic gas cannister. He estimated that he and his staff treated about 120 patients who had been exposed to chlorine that night. The Taleb family, however, were the only casualties. ""They were in the basement and the chemical material was going down. People must go high. Because they were in the basement they really got a lot of this material, the chemical material."" Tennari described Taleb as a family man. ""He was friendly, quiet, [a] good person,"" he said. ""He had a nice family. He loved his family."" On the anniversary of Taleb's death two years later, that night of chaos and terror still gives the Syrian doctor chills. ""Helicopters were in the sky at all times and we hear sound at all times and we didn't know what second they would attack the hospital,"" Tennari said in between heavy sighs. ""We didn't know what to do. Patients were in chairs, on the ground, on the floor- everywhere. We didn't have enough time to stay with one patient. I was going from one patient to another patient every minute. It was so noisy."" This is a fleeting, but not uncommon snapshot of the destructive role chlorine attacks have played - and the fear the chemical has sown - in the country's civil war, which enters its seventh year this week. It is definitely very scary ifyou are a physician in a small hospital with dozens or hundreds of patients that are suffocating and you don't know what to do. The main reason chlorine was used in Syria was to cause panic and to force people to flee. Zaher Sahloul, a former president of Syrian American Medical Society Chemical weapons have been a recurring footnote in the bloody narrative of Syria's civil war, which has robbed hundreds of thousands of lives, and displaced roughly 11 million more. But amid this troubling saga of chemical weapons use in Syria, it has been sarin nerve gas, and to a lesser extent mustard gas, that have punctuated this ongoing storyline. Following the 1,300 tonnes of sarin nerve gas and its precursors being removed from Syria, chemical attacks persist there nearly four years later, but most notably in the form of chlorine, which has emerged as the most heavily used chemical weapon in the war. ""We saw chlorine appearing as a weapon in Syria for the first time in 2014,"" said Ole Solvang, the deputy director of the emergencies division at Human Rights Watch. ""The challenge is there are so many horrific things going on in Syria, that this one issue tends to perhaps be overshadowed sometimes by other attacks that are going on."" In February, Human Rights Watch and Solvang authored a report documenting at least eight instances of chlorine use by the Syrian regime in the battle for Aleppo between Nov. 17 and Dec. 13, 2016. The human rights watchdog verified the attacks through video footage analysis, phone, and in-person interviews, as well as by social media. The report indicated that the chlorine attacks killed at least nine people, including four children, and injured around 200 people. The attacks, according to the report, constituted war crimes. ""This is, of course, horrific because it is a violation of the Chemical Weapons Convention that Syria is a part of,"" Solvang explained. ""It's horrific for the victims, but also because it really undermines one of the strongest bans on any weapon in international humanitarian law and what we're really concerned about is that the government's continued use of chemical attacks will undermine this ban and lower the threshold for other countries to also use it [chlorine]."" INTERACTIVE: Syria's Civil War Map The Chemical Weapons Convention, implemented in 1993, constitute the world's first internationally binding chemical weapon laws. They are enforced by the Organisation for the Prohibition of Chemical Weapons, a United Nations-backed agency. Following the sarin gas attack in Ghouta in August 2013 that killed more than 1,000 people - more than 400 of them children - according a United Nations Security Council report, Syria joined the convention as part of an international agreement - and to subdue the Obama administration's threats of military action. It was the 190th country to sign on. So to what role has chlorine played in Syria's complex and long civil war? And what has been the human toll? Human Rights Watch have documented 24 chlorine attacks in Syria since 2014, of which 32 people were killed and hundreds were injured. However, Solvang acknowledged that this is likely a grave underestimate. ""It's a terrifying weapon to most people,"" Solvang said. Chlorine is a choking agent. Its greenish-yellow clouds of gas cause shortness of breath, wheezing, respiratory failure, irritation in the eyes, vomiting, and sometimes death. Chlorine's effects are also largely psychological: the chemical triggers fear, shock, and panic in a way that other conventional weapons don't. In the case of Aleppo, Solvang suspects the regime strategically used chlorine to force a mass exodus of the city. ""Places that were relatively safe suddenly were not safe any more when chlorine started being used,"" Solvang said. ""When people were trying to hide and shelter from explosive weapons, regular rockets and bombs - they would go into a basement because that's the safest place to be. Chlorine is heavier than air so it sinks into those basements, so those basements can become death traps."" Solvang's statement, echoed the way in which the Taleb family died in Sarmin: overexposure to chlorine gas after mistaking their cellar as a safe haven. ""It is definitely very scary if you are a physician in a small hospital with dozens or hundreds of patients that are suffocating and you don't know what to do with all of that,"" said Zaher Sahloul, a former president of Syrian American Medical Society (SAMS), who is originally from Homs, but who now practices in Chicago. SAMS has also closely monitored chlorine attacks in Syria. The medical organisation has documented 109 chlorine attacks since the civil war began in 2011. ""The main reason chlorine was used in Syria was to cause panic and to force people to flee. And that's what it really did in most of the instances,"" Sahloul added. Sahloul, a pulmonary specialist, attended medical school with President Bashar al-Assad between 1982 and 1988 at Damascus University. He knew Assad personally. ""[Assad] was collegial, humble and talkative,"" Sahloul recalled of his former classmate turned president, who he now accuses of war crimes. ""No one expected him to oversee the destruction of his country, target hospitals and doctors and use extreme brutality against civilians including torture, siege, collective punishment, and chemical weapons."" Chlorine was first used as a weapon by the Germans on French, British, and Canadian troops in World War I on the battlefield in Ypres. A decade later, the Geneva Protocol of 1925, the first constructive international laws banning the use of chemical weapons, was introduced. But despite its deadly effects, chlorine isn't classified in the same league as sarin or mustard gas. It exists in somewhat of a grey zone under today's international laws and is only regarded as a chemical weapon when it's used maliciously. Chlorine's complicated status on the spectrum of chemical weapons raises tough questions about the definitions of chemical warfare. For instance, why are some lethal chemicals internationally prohibited, while others aren't? ""The difference between chlorine and sarin is [that] chlorine is readily available,"" Sahloul explained. ""Chlorine is used for many other beneficial ways, to clean water and so forth, in many industries but that's why the Syrian regime has been using it because it's easily done and weaponised easily."" Tens of millions of tonnes of chlorine are produced around the world each year. It's used to disinfect water supplies, in the manufacturing of pharmaceuticals, antiseptics, and drugs, in textile industries, the bleaching of paper, in the separation of metals such as gold, nickel, and copper from their ores, as well as such household chemicals like adhesives. Its widespread industrial use makes controlling and regulating its use as a weapon all the more problematic, which has allowed its use to persist in Syria's civil war. ""Chlorine is used on a daily basis in all countries. It can be easily produced, in all of our countries, [regardless] of the development of the country, the materials are available,"" said Ahmet Uzumcu, director general of the Netherlands-based Organisation for the Prohibition of Chemical Weapons (OPCW), the UN-based group that advocates for the destruction of the entire existing global stockpile of chemical weapons. ""It creates panic, of course, and terror especially among civilians [but] the difficulty to eradicate it - it's not declarable - so we cannot ask state parties to declare the chlorine stocks,"" added Uzumcu. ""I believe that it is very difficult to contain it."" The OPCW, which led a fact-finding mission in 2014 to investigate chlorine attacks in Syria, were unable to confirm to Al Jazeera the exact numbers of confirmed attacks, but a press release on the missions stated there was ""compelling"" evidence that chlorine was used ""systematically and repeatedly"". Kelsey Davenport, the director nonproliferation policy at the Arms Control Association, a non-profit organisation that promotes public understanding of arms control policies in Washington, DC, also echoed Sahloul and Uzumcu's assertions on the problematic nature of containing chlorine as a chemical weapon. ""Chlorine is particularly a problem because it has so many uses for industrial purposes that don't have anything to do with weaponisation,"" she said. ""It can be very easy for organisations to get their hands on chlorine and the necessary ingredients to create chlorine gas, using sort of other mechanisms or justifications for industrial purposes. That makes it much more difficult to control and much more difficult to prevent groups from using,"" Davenport added. The precarious situation on the ground makes is even more difficult, if not impossible for governments and NGOs, to verify each attack, and who exactly is on the delivering end: the regime, rebel forces, or ISIL. Last August, the UN-led a joint investigation in Syria to pinpoint who is responsible for the flurry of reported chlorine attacks. The UN examined nine cases of alleged chemical weapons attacks. They found what they described as ""sufficient evidence"" of three instances of chemical weapons attacks between 2014 and 2015. Two of these were chlorine gas attacks on civilians by the Syrian air force. Another was a sulphur mustard gas attack by the Islamic State. ""It's hard - it's impossible to use the word 'verifiable',"" said Paul Walker , a chemical weapons expert and Director of Green Cross International's Environmental Security and Sustainability programme. Walker attributed the contrasting numbers of chlorine attacks recorded by NGOs, media, and governmental bodies like the UN to the dangerous conditions on the ground in Syria. ""By looking at newspaper reports, you know there's an average alleged attack with chlorine probably every month and probably for the last several years,"" he said. ""A ballpark figure is a dozen [chlorine attacks] a year. And I think that's a gross underestimate because it's very difficult to verify these attacks when you can't get to the site in a reasonable amount of time, you can't gather forensics, [and] you can't necessarily interview victims."" In response to the UN joint investigation, the United States imposed sanctions on 18 Syrian military officials in January, according to a Treasury Department statement. And just last month, the US, France, and Britain drafted a UN Security Council resolution that would have imposed further sanctions on Syrian military officials over the alleged use of chlorine. However, Russia, China, and Bolivia vetoed it. Prior to the veto, the UN Security Council unanimously adopted Resolution 2209 on March 6, 2015, condemning the use of chlorine attacks in the civil war, threatening to take Chapter IV action - recommending possible military intervention - if the attacks continue. But that was two years ago; the attacks have persisted, UN sanctions have fallen flat, and the international community hasn't been able to effectively halt Assad's regime or the rebels' use of chlorine. With the emergence of the US President Donald Trump's administration, which seems open to allowing Russia, Syria's ally, operate more freely in the country, Assad's regime appears more insulated than ever. Military escalation against Assad, or the possibility his regime will be charged with war crimes in an international criminal court, at least in the near future, seems unlikely. ""The people and physicians, especially in Syria gave up on this issue,"" said Sahloul, the Chicago-based SAMS doctor, who has testified on chlorine attacks before the UN Security Council and the US House Foreign Relations Committee. Sahloul is frustrated by the international community's perceived indifference - and its inability - to solve the chlorine problem, and he, too, is sceptical anything will be accomplished in the near future to hold Assad's regime accountable. ""There was a lot of effort that at one point to document all of these issues,"" he added. ""There were testimonies in the [UN] Security Council, there were resolutions, there were attributions, and then investigation teams, and then nothing happened. I think at this point, people gave up on Syria and talking about these issues."" Instead, Sahloul, appealed directly to Assad, his former classmate, to end the brutality of chlorine chemical attacks once and for all. ""I want him [Assad] to see the faces of the children who woke up choking in the middle of the night,"" he said, in reference to the chlorine attack that killed the Taleb family in Sarmin. ""I want him to imagine the panic in the faces of Taleb family in Sarmin [hiding] in a basement, when they were overwhelmed with the smell of bleach, and when their children - Aisha, Sarah, and Muhammad - started to suffocate; how they rushed to the field hospital and how they all ended up dead."" For other Syrians, like Tennari, the Syrian doctor in Sarmin, who have seen the gruesomeness of a chlorine attack first hand, justice is already too late. Tennari still agonises over the loss of his friend Taleb, and his family, who were all killed by the toxic substance two years ago. ""I'm praying to not be in this situation again: to see a friend choking in front of me and I couldn't do anything,"" said Tennari, who said he'll continuing practising in Syria as long as the civil war continues. ""I'm so sorry that we couldn't help [the Taleb family],"" Tennari said. ""I feel bad all the time when I remember that we couldn't help them and they died. I feel weak because of that. I wish that nobody would be in my situation and see what I see. It's horrific. I wish this war will finish one day."" Dorian Geiger is a Canadian journalist and an award-winning filmmaker based in Doha, Qatar and Queens, New York. He's a social video producer and a freelance features writer at Al Jazeera English. Follow him on Twitter and Instagram. Source:-Al Jazeera", -3218,2017/3/20,http://www.aljazeera.com/news/2017/03/trump-kim-jong-acting-badly-170320043115740.html,"Trump says Kim Jong-un 'acting very, very badly'",US president criticises North Korean leader hours after Pyongyang says it tested new type of high-thrust rocket engine.,"US President Donald Trump on Sunday criticised North Korean leader Kim Jong-un, saying he was ""acting very, very badly"" hours after Pyongyang tested- a new type of high-thrust rocket engine. Trump made the comments to reporters as he departed his Mar-a-Lago resort in Florida, where he spent the weekend. Trump said administration officials had meetings over the weekend about North Korea, among other issues. ""Had meetings on North Korea. He's acting very, very badly. I will tell you, he's acting very badly,"" Trump said. North Korean state media said Kim oversaw a powerful new rocket engine test at the Sohae Satellite Launching Ground. ""He emphasised that the whole world will soon witness what eventful significance the great victory won today carries,"" Pyongyang's KCNA news agency said. READ MORE: North Korea 'tests new high-thrust rocket engine' Kim said earlier this year that the millitary was preparing to test an intercontinental ballistic missile. US Secretary of State Rex Tillerson was in China over the weekend on the last stop of a three-nation tour of Northeast Asia. North Korea has dominated Tillerson's agenda, with Washington seeking new ways to scupper Pyongyang's nuclear ambitions. Previous efforts, including talks and sanctions, have failed. Source:-News agencies", -3219,2017/3/20,http://www.rte.ie/news/2017/0320/860998-progress-in-search-for-116-crew/,Agencies to discuss search for Coast Guard crew,,"Agencies involved in the search for three crew members missing from Coast Guard Rescue Helicopter 116 are to discuss the next stage of the operation. The meeting at Blacksod Lighthouse follows an extensive mapping exercise around the crash site yesterday. Improved conditions at sea meant search crews were able to access Blackrock, around ten miles off the Mayo coast, for the first time since the middle of last week. This is the area at the centre of the multi-agency effort to locate Captain Mark Duffy, winch operator Paul Ormsby and winchman Ciar��n Smith. Local vessels carried out detailed inspections of the undersea conditions using sonar scanning technology. They surveyed depth and access points as well as mapping obstacles to ensure that divers will have a considerable insight into the local geography when they begin their operations. However, the Captain of the L? Eithne and the on-scene search co-ordinator said he does not believe divers will be able to go underwater today because of poor weather conditions. Speaking on RT?'s Morning Ireland, Naval Commander Brian Fitzgerald said it's ""very frustrating"" but the weather is poor. He said ""safety is paramount"" and they ""will only proceed if the weather allows"" and are hopeful that the weather will allow it tomorrow. He said gales are forecast for the afternoon but the weather is due to abate tomorrow. Commander Fitzgerald said the crew will not rest until they find the missing crew men. After the local boats returned to port last evening, the Commissioners of Irish Lights' ship ILV Granuaile carried out a reconnaissance at Blackrock. Subject to conditions, it will dock off the island later today and will be used as a platform for dives by Naval service personnel and Garda divers.- The vessel is also carrying the Marine Institute's Remotely Operated Vehicle, which can be deployed to access difficult to reach areas. It can operate at depths of up to 3km and features a suite of cameras and grabbers, which will be operated from the deck of the Granuaile. Commander Fitzgerald said-said the Granuaile-has dynamic-positioning, which the L? Eithne does not have, meaning-""she can bring that platform closer and closer to this very large and treacherous rock, where diving operations are supposed to take place"".", -3220,2017/3/20,http://www.rte.ie/news/2017/0320/861000-talks-on-power-sharing-in-north-resume/,Talks on power-sharing in Northern Ireland to resume,,"Talks that will determine if power-sharing is to be restored at Stormont will resume today. Monday, 27 March, is the deadline for the formation of a new executive. - Since the Assembly elections on 2 March, several rounds of discussions have taken place involving Northern Ireland's political parties and representatives of the British and Irish governments. None of the main players has argued against the restoration of power-sharing. - But from today, the pace is likely to change. - Sinn F��in leader Gerry Adams is back from St Patrick's Day events in Washington and-will join the party's leader in Northern Ireland,-Michelle O'Neill, in the talks. How Sinn F��in handles the mandate it received in the elections, in discussions with the Democratic Unionist Party, will be crucial. There are signs that two of the smaller parties, the SDLP and Alliance, are open to the idea of participating in government, if the circumstances are right. - With the Ulster Unionists, they opted for an opposition role in the last administration. New legislation will be needed from the British government if the 27 March deadline-for a deal is to change.", -3221,2017/3/20,http://www.rte.ie/news/2017/0320/861001-us-russia/,FBI and NSA chiefs to be quizzed on Russia link probes,,"The directors of the Federal Bureau of Investigation and National Security Agency will break their public silence today about their investigations into possible links between Russia and President Donald Trump's campaign at a rare open congressional intelligence committee hearing. Representatives Devin Nunes, chairman of the House of Representatives Permanent Select Committee on Intelligence, and Adam Schiff, the panel's top Democrat, have called FBI Director James Comey and NSA Director Admiral Mike Rogers to testify as part of their committee's probe into allegations that Russia interfered in US elections. Other congressional committees also are investigating the matter, mostly behind closed doors. But amid a furore over whether Russsia tried to influence the 2016 presidential race on Mr Trump's behalf, politicians said they would make public as much of their probes as possible. Russia denies attempting to influence the election. Mr Comey and Admiral Rogers are not expected to reveal much in public about the probes, which include information that is classified Top Secret and also separated into different compartments, each of which requires a separate clearance. But the hearing could become heated as Republicans balance support for their party's leaders and Democrats vent frustration over Republican congressional leaders' refusal to appoint a special prosecutor or select committee to investigate. Mr Trump fired his first national security adviser, Michael Flynn, last month after he failed to disclose contacts with Russia's ambassador before Mr Trump took office on 20 January. Last week, new information surfaced about more than $65,000 that Mr Flynn was paid in 2015 by companies with links to Russia. Attorney General Jeff Sessions, a former senator, recused himself from investigating the matter after it was revealed that he did not answer accurately when he was asked during his confirmation hearing about his contacts with Russian officials during the election. He failed to disclose that, as a senator, he had met with Russia's ambassador to the United States, Sergey Kislyak. Mr Trump's fellow Republicans have joined Democrats in Congress in saying that they were frustrated by what they consider the intelligence community's failure to provide enough information about any contacts with Russia, as well as Mr Trump's claim, made without evidence, that his predecessor, Democrat Barack Obama, ordered a wiretap of Trump Tower.", -3222,2017/3/20,http://www.rte.ie/news/politics/2017/0320/861002-neil-gorsuch/,Gorsuch to face tough Senate confirmation hearing,,"US Supreme Court nominee Neil Gorsuch is expected to face tough scrutiny at his Senate confirmation hearing. Democrats will seek to make the case that he is a pro-business, social conservative insufficiently independent of President Donald Trump. In a bid to place hurdles in the way of Mr Gorsuch's expected confirmation by the Republican-controlled Senate, Democrats on the judiciary committee considering the nomination have said they will probe him on several fronts based mainly on his record as a federal appeals court judge and a Justice Department appointee under former president George W Bush. Nominated by Mr Trump to fill a year-old vacancy on the court, Mr Gorsuch is a conservative appeals court judge from Colorado. He is expected to try to engage senators without being pinned down on specifics. Among questions Mr Gorsuch will face will be whether he is sufficiently independent from Mr Trump, who has criticised judges for ruling against his bid to restrict travel from Muslim-majority countries. Another line of attack previewed by Democratic leader Chuck Schumer is to focus on rulings Mr Gorsuch, 49, has authored in which corporate interests won out over individual workers. Democrats will also press Mr Gorsuch on his role as a Justice Department lawyer under Bush from 2005 to 2006, when he helped defend controversial policies enacted after the September 11, 2001-attacks, including the administration's expansive use of aggressive interrogation techniques. Mr Gorsuch's views on social issues, including a 2006 book he wrote in which he argued against the legalisation of assisted suicide and euthanasia, will be discussed too. Republican Senator Chuck Grassley will chair the proceedings, which could go as long as four days. Mr Trump nominated Mr Gorsuch to replace conservative Justice Antonin Scalia, who died in February last year. If Mr Gorsuch isapproved by the Senate, as expected, he would restore a narrow 5-4 conservative majority on the court. For months last year, Republicans refused to consider former Democratic president Barack Obama's pick to fill the seat. The unusual Republican tactic blocked a leftward shift on the court. Since Judge-Scalia's death, the court has been divided equally 4-4 between conservatives and liberals. Democrats face an uphill battle to block Mr Gorsuch, who like all Supreme Court justices would serve for life if confirmed. Republicans control 52 of the Senate's 100 seats. Under present rules, Mr Gorsuch would need 60 votes for confirmation. If Democrats stay unified and Mr Gorsuch cannot muster 60, Republicans could change the rules to allow confirmation by simple majority. Senators on the Judiciary Committee, which is holding the hearing, will give opening statements today and then take turns asking questions of the nominee tomorrow.", -3223,2017/3/20,http://www.rte.ie/news/2017/0320/861042-high-hopes-choir/,High Hopes Choir to perform at European Parliament,,"A choir made up of people affected by homelessness and the staff and volunteers who work with them is to perform outside of Ireland for the first time. The High Hopes Choir is giving a concert at the European Parliament in Brussels this evening, ahead of a seminar tomorrow on homelessness in the EU. The choir, which was formed in 2014 and featured in an RT? TV series, has previously performed for President Michael D Higgins in ?ras an Uachtar��in and at Ireland's biggest music festival, Electric Picnic. It includes members from Dublin, Waterford and Cork and aims to change the public perception of what it means to be homeless in Ireland today. More than half of the 75 members of the choir travelling to Brussels needed to get passports for the trip. ""I was homeless for three years and hadn't had a passport since 2002,"" said Lisa McEnroe. ""A passport means an awful lot, coming from where I came from. It means I am not trapped. I can see the world."" The musical director of the choir's Dublin branch, Carmel Whelan, said that before it started, members had felt ""invisible, voiceless and forgotten"". ""Now they have this opportunity to represent themselves and others. And it just means so much to them.""", -3224,2017/3/20,http://www.rte.ie/news/2017/0320/861035-rex-australia/,Australian airline grounds planes after propeller falls off mid flight,,"A regional Australian airline has grounded six planes from its fleet after a propeller fell off one of them as it approached Sydney airport. The near-disaster happened on Friday, with the crew shutting down the right-hand engine on the Saab 340 plane after ""abnormal indications"" before the propeller sheared off. Despite the scare the twin-propeller Regional Express (Rex) plane carrying 16 passengers and three crew landed safely. The airline said that while investigations were under way, it would remove from service all planes using similar propeller gearboxes and shafts, accounting for six planes from its fleet of 55. ""This is an extremely rare event and the only other recorded similar event was in 1991 when US carrier Comair's aircraft also landed safely after a separation of its propeller,"" said Rex chief operating officer Neville Howell. ""The Saab 340 aircraft is designed to climb, cruise and land on one engine, with appropriate levels of redundancy to cope with these contingencies."" The Australian Transport Safety Bureau has started an investigation. Regional Express is Australia's largest independent regional airline, operating some 1,500 weekly flights to 58 destinations throughout Australia. Mr Howell said credit must go to the plane's captain and crew for getting their passengers on the ground safely. ""The crew demonstrated enormous composure and discipline under extraordinary circumstances, and I commend their professionalism,"" he said. ""The captain displayed exceptional skills in landing the aircraft so smoothly in bad weather and strong winds, so much so that the passengers did not notice anything different."" The propeller has yet to be found.", -3225,2017/3/20,http://www.rte.ie/news/2017/0320/861003-us-australia-nauru/,US-Australia refugee swap process set to resume,,"US officials have begun taking fingerprints of asylum seekers in an Australian-run camp on the Pacific island of Nauru, signalling that vetting of applicants for resettlement in what US President Donald Trump called a ""dumb deal"" has restarted. Australia agreed with former US president Barack Obama late last year for the United States to resettle up to 1,250 asylum seekers held in much criticised processing camps on Papua New Guinea and Nauru. In return, Australia would resettle refugees from El Salvador, Guatemala and Honduras. Mr Trump labelled the agreement a ""dumb deal"" on Twitter, but said he would stand by it. Interviews with more than half a dozen detainees on Nauru confirmed the US Homeland Security officials arrived on Saturday, with meetings with detainees beginning today. Two asylum seekers, who spoke on condition of anonymity because of fears of jeopardising their applications to settle in the United States, told Reuters by phone Homeland Security officials did not ask any specific questions. ""It was not a normal interview, they just collected fingerprints and took my height and weight,"" the Iranian refugee told Reuters. Other refugees showed Reuters appointment slips to meet US officials. Similar biometric data collection would begin at the Australian-run detention centre in Papua New Guinea in early April, detainees were told by immigration officials last week. Australia maintains a strict policy of not allowing anyone who tries to reach the country by boat to settle there, instead detaining them in the camps on Nauru and PNG in conditions that have been harshly criticised by rights groups. Some asylum seekers have spent years in the camps, with numerous reports of sexual abuse and self-harm among detainees, including children. One 36-year-old woman told Reuters by phone from Nauru she did not want to be too hopeful about resettlement. ""For me, I really don't believe anything [about] when I get out from this hell,"" she said. ""I heard too many lies like this in this three and half years."" A spokeswoman for Australian Immigration Minister Peter Dutton declined to comment. The Department of Homeland Security did not respond to a request for comment. The US security interviews with asylum seekers on Nauru were cancelled last month amid uncertainty about what constituted ""extreme vetting"" Mr Trump promised to apply to the 1,250 refugees it agreed to accept. Some asylum seekers said the latest developments gave them hope. ""I think the deal will happen, but the question we don't know is how many people will be taken by the US,"" Behrouz Boochani, an Iranian refugee held on PNG's Manus Island for nearly four years, told Reuters. With mounting international pressure, officials at Manus Island centre are increasing pressure on asylum seekers to return to their home countries voluntarily, including offering large sums of money.", -3226,2017/3/20,http://www.rte.ie/news/2017/0320/861008-north-korea-south-korea/,South Korea warns North making progress on rockets,,"North Korea's latest rocket-engine test showed ""meaningful"" progress, South Korea said, while an analyst said it was a dangerous step towards the North's goal of developing a rocket that could hit the United States. The North's KCNA news agency said yesterday the engine would help North Korea achieve world-class satellite-launch capability, indicating a new type of rocket engine for an intercontinental ballistic missile. The North's announcement of a successful engine test came as US Secretary of State Rex Tillerson was in Beijing at the end of his first visit to Asia for talks dominated by concern about North Korea's nuclear and missile programmes. ""Through this test, it is found that engine function has made meaningful progress but further analysis is needed for exact thrust and possible uses,"" Lee Jin-woo, deputy spokesman for the South Korean defence ministry, told a regular briefing. State-run North Korean media reported that leader Kim Jong-un had hailed the successful test of a new high-thrust engine at its rocket launch station as ""a new birth"" of its rocket industry. Mr Lee said the test featured a main engine supported by four supplementary engines. However, he did not elaborate on the progress the test showed the North had made, nor comment on whether the engine could be used for an intercontinental ballistic missile (ICBM), saying the South Korean military was conducting analysis. US President Donald Trump told reporters he held meetings on North Korea at the weekend at his Florida resort. While he did not refer specifically to the rocket-engine test, he said Mr Kim was ""acting very, very badly"". A South Korean analyst said the test was an ominous development. ""This was a comprehensive test for the first-stage rocket for an ICBM, and that is why it was dangerous,"" said Kim Dong-yub, an analyst at Seoul's Institute for Far Eastern Studies. ""It appears that North Korea has worked out much of its development of the first-stage rocket booster."" North Korea has conducted five nuclear tests and a series of missile launches in defiance of UN sanctions, and is believed by experts and government officials to be working to develop nuclear-warhead missiles that could reach the United States. Mr Kim said in January his country was close to test-launching an ICBM. That would put parts of the United States in range. Last week, Mr Tillerson issued the Trump administration's starkest warning yet to North Korea, saying in Seoul that a military response would be ""on the table"" if it took action to threaten South Korean and US forces. The United States has long called on China to do more to rein in its ally, North Korea. China resents being pressed to do more, saying the problem is between North Korea and the United States, although it too objects to the North's nuclear programme. During Mr Tillerson's visit to China, the two sides said they would work together to try to make North Korea take ""a different course"". China has called for a dual-track approach on North Korea, urging it to suspend its tests and the United States and South Korea to suspend military exercises so both sides can return to talks. Foreign Minister Wang Yi reiterated this morning that China was committed to the denuclearisation of the Korean peninsula through talks. He said the situation was at a new cross-roads with two scenarios - a deterioration to war or a diplomatic solution. ""Any chance for dialogue must be seized, as long as there's hope,"" Mr Wang said at a development forum in Beijing. China has also been infuriated by the deployment of an advanced US anti-missile system in South Korea, which it says will both harm China's own security and do nothing to ease tensions. China says the system's powerful radar will extend into the country's northeast and potentially track Chinese missile launches, and maybe even intercept them. Russia also opposes the system, for the same reasons.", -3227,2017/3/20,http://www.rte.ie/news/2017/0320/861015-uk-police-drones/,Police to launch 24-hour drone unit to fight crime in England,,"A British police force is to launch a round-the-clock drone unit to help tackle crime. Devon and Cornwall Police advertised for a ""drone team manager"" to set up and manage an ""operational and dynamic drone response"" from nine policing centres across the two English counties and Dorset. The force began trialling drones in November 2015 to test their operational effectiveness, using four DJI Inspire 1 devices with high-definition cameras to assist officers with police matters such as looking for missing people and taking crime scene photographs. Assistant Chief Constable Steve Barry, National Police Chiefs' Council lead for drones, said forces were ""committed to embracing new technologies to deliver high-quality, cost- effective services and protection to the public"". ""Drones are one of a number of options that can deliver air support both now and in the future. ""They have the potential to change the way we police by working with other technologies and updating traditional methods of foot and aerial patrols. ""Trials and consultations are ongoing to develop more guidance for how the police service can use drones to help keep people safe."" Mr Barry added: ""Deploying drones is a decision for individual chief constables who ensure that they are used appropriately in the interest of public safety and efficient allocation of police resources."" Around 21 police forces are experimenting with the technology, according to the Daily Mail. Chief Superintendent Jim Nye, strategic alliance commander for operations in Devon, Cornwall and Dorset, told the paper that the drones would be a ""significant piece of kit"", which would provide an ""opportunity to improve technology available to police to better do what we do"". Earlier this year, Labour MP Nick Smith said police should consider using drones to track down off-road bikers who are ""vandalising"" the mountains of Wales. During Home Office questions in the Commons, he said: ""Because off-road bikers often go where the police cannot, can the Home Office look into providing resources, agreement and licensing on the use of drones to help us tackle this problem?""", -3228,2017/3/20,http://abcnews.go.com/Politics/neil-gorsuch-facing-rigorous-confirmation-hearing-week/story?id=46230177,Neil Gorsuch facing 'rigorous' confirmation hearing this week,,"President Donald Trump's nominee to replace Justice Antonin Scalia on the Supreme Court, Judge Neil Gorsuch, begins his confirmation hearings before the Senate Judiciary Committee today. Gorsuch, 49, is a judge on the 10th Circuit Court of Appeals in Denver. He was nominated by President George W. Bush in 2006 and confirmed by the Senate in a voice vote. He clerked for Judge David B. Sentelle on the United States Court of Appeals for the D.C. Circuit and then for Justices Byron White and Anthony Kennedy on the Supreme Court. He attended Harvard Law and has a Ph.D. from Oxford, where he was a Marshall scholar. In legal circles, he's considered a gifted writer. His book, ""The Future of Assisted Suicide and Euthanasia,"" examines the legal and ethical issues surrounding assisted suicides. In the book, Gorsuch concludes that any form of euthanasia should not be legalized. Like Scalia -- who died at the age of 79 in February 2016 -- Gorsuch is a textualist and an originalist. And his views, background and legal writings will be publicly scrutinized over the course of the week long proceedings. Law professor and legal expert Carl Tobis said he believes the questioning will be ""respectful"" but ""rigorous."" Tobias added that he expects ""GOP members to strongly support Gorsuch and to ask questions that make him appear within the mainstream,"" while Democrats ""will ask about areas, issues and views where he might appear to be outside the mainstream. One key area is judicial deference to the Executive generally and this President specifically, deference to administration."" When it comes to religious liberties and access to contraception, Gorsuch is a defender of the First Amendment's free exercise clause, which reads, ""Congress shall make no law respecting an establishment of religion or prohibiting the free exercise thereof."" He has sided with Christian employers and religious organizations in the Burwell v. Hobby Lobby and Little Sisters of the Poor cases, in which the plaintiffs argued for an exemption from the contraception mandate in President Obama's signature health care legislation, the Affordable Care Act, citing their religious beliefs. In the Hobby Lobby case, Gorsuch wrote, ""The ACA's mandate requires them to violate their religious faith by forcing them to lend an impermissible degree of assistance to conduct their religion teaches to be gravely wrong."" When it comes to criminal procedure, he dissented in the United States v. Carlos case, arguing that police officers violated the Fourth Amendment when they entered a home that had a ""no trespassing"" sign posted. In a press conference last week, Senate democratic leader Chuck Schumer, D-New York, cautioned that Gorsuch has important questions to answer about some of his opinions, most notably ""his decisions he wrote that favored the powerful over the powerless."" Schumer last week suggested that he would not support the confirmation of Gorsuch and urged his senate democratic colleagues to do the same. Gorsuch supporter Leonard Leo of The Federalist Society told ABC News he is confident that"" Gorsuch will be confirmed."" The hearing is expected to conclude by the end of the week.", -3229,2017/3/20,http://abcnews.go.com/International/wireStory/japan-russia-hold-talks-security-territorial-dispute-46247845,Russia says US missile systems a risk to regional security,,"Russia views U.S. missile defense systems being deployed in northeast Asia as a threat to regional security, Foreign Minister Sergey Lavrov said following talks Monday with Japanese officials in Tokyo. Strategic concerns, both in northeast Asia and elsewhere, including Syria and Ukraine, were among a wide range of regional and global issues addressed in the one-day talks among foreign and defense ministers from Japan and Russia. The two sides said they agreed to keep working toward resolving a longstanding territorial dispute that has prevented the countries from forging a peace treaty officially ending their World War II hostilities. They also joined in urging North Korea to refrain from ""provocative actions"" and to abide by United Nations resolutions demanding an end to its nuclear and missile testing. The talks in Tokyo were the two countries' first ""two-plus-two"" meeting of foreign and defense ministers since Russia's annexation of Crimea from Ukraine. Earlier this month, North Korea fired four missiles, of which three landed inside Japan's territorial waters. The U.S. and South Korea have agreed to install an advanced anti-missile system as a defense against North Korea. The Terminal High-Altitude Area Defense system, or THAAD, has angered both Russia and China. Russia also objects to U.S. missile defense systems in Japan. ""The U.S. global ballistic missile defense poses a deep risk to the security of the region,"" Lavrov said. He said it was crucial to avoid upsetting the balance in the region and setting off an even greater arms buildup that could lead North Korea to step up its own military expansion. Lavrov said the installation of the THAAD system was ""a response completely out of proportion"" to the threat from North Korea. He accused the U.S. of ""pumping arms into the region."" Lavrov also called for approaches that might encourage North Korea to engage in dialogue with its neighbors. Lavrov met with Japanese Foreign Minister Fumio Kishida, and Russian Defense Minister Sergei Shoigu held talks with his Japanese counterpart, Tomomi Inada. The four ministers then held combined talks on international and bilateral issues. Japan and Russia last held ""two-plus-two"" talks in November 2013. Meetings were shelved after that due to the crisis in Ukraine, as Japan joined sanctions against Moscow. As expected, the Tokyo talks did not yield a breakthrough on conflicting Russian and Japanese claims to islands just north of Japan's northernmost main island of Hokkaido ""?Etorofu, Kunashiri, Shikotan and the Habomai islets ""?that came under Russian control in the closing weeks of World War II. But the countries discussed possible visa-free travel between Hokkaido and the area. They also are working toward joint development of fisheries, tourism and other areas that might help bridge the gap. ""I believe this joint development will become an important step to create an appropriate environment for resolving a peace treaty,"" Lavrov told reporters. Russia has been eager to enlist Japanese help with development of energy and other industries in its Far East. But while Monday's talks yielded an agreement to keep talking, Japan has concerns over Russia's installment of surface-to-ship missiles on Etorofu and other military activity elsewhere on the disputed islands. The territorial issue has lingered since World War II, but disputes between Japan and Russia date back much further, to the 19th century, when the Russian and Japanese empires fought for domination of northeastern China, then known as Manchuria, and the Korean Peninsula. Japan's victory in the 1904-05 Russo-Japanese war hobbled Russia's expansion in the Far East and was the first significant triumph of an Asian country over a European nation. A treaty brokered by the U.S. enabled Tokyo to claim territories that were later regained by Moscow after Japan's World War II defeat in 1945. ""?Associated Press journalists Howard Amos in Moscow and Emily Wang and Kaori Hitomi in Tokyo contributed to this report.", -3230,2017/3/20,http://abcnews.go.com/International/wireStory/britain-trigger-brexit-process-march-29-govt-46250529,"Britain to trigger Brexit process on March 29, gov't says",,"Britain's government says it will trigger Article 50, signaling Britain's departure from the European Union, on March 29. The Department for Exiting the European Union said in a statement that Britain's permanent representative to the EU, Tim Barrow, informed the European Council President Donald Tusk of the timing on Monday morning. The notification of triggering Article 50 will come in the form of a letter. Brexit Secretary David Davis said in a statement that the country is ""on the threshold of the most important negotiation"" for a generation.", -3231,2017/3/20,http://abcnews.go.com/International/wireStory/japan-russia-hold-talks-security-territorial-dispute-46244338,"Japan and Russia hold talks on security, territorial dispute",,"The foreign and defense ministers from Japan and Russia met in Tokyo on Monday, with both sides expressing hope that discussions on joint development of islands claimed by both countries might help them move closer to resolving the territorial dispute preventing them from forging a peace treaty. The talks are the first ""two-plus-two"" meeting since Russia's annexation of Crimea from Ukraine. The one-day meeting is largely focusing on regional security, especially how best to deal with North Korea's launches of missiles and its nuclear program. Russia's Foreign Ministry said before the talks that its envoys would raise the issue of a plan by the U.S. and its ally South Korea to deploy a state-of-the-art missile defense system known as THAAD, which has antagonized China and Russia. Joint efforts in fighting terrorism and drug trafficking were also on the agenda. Japanese Foreign Minister Fumio Kishida was meeting with his Russian counterpart, Sergei Lavrov, while Japanese Defense Minister Tomomi Inada sat down for talks with Russian Defense Minister Sergei Shoigu. The four ministers will also hold joint talks on international and bilateral issues. Japan and Russia last held ""two-plus-two"" talks in November 2013. Meetings were shelved after that due to the crisis in Ukraine, as Japan joined sanctions against Moscow. The Tokyo talks are not expected to lead to a breakthrough on conflicting claims to islands north of Hokkaido ""?Etorofu, Kunashiri, Shikotan and the Habomai islets ""?that came under Russian control after Japan's defeat in World War II. But the countries see more room for agreement on joint development of fisheries, tourism and other areas that might help bridge the gap. Kishida said he intended to work in a ""speedy manner"" to move closer toward reaching a peace treaty, especially making progress on joint economic development. Lavrov agreed, saying at the outset of the talks that ""I believe this joint development will become an important step to create an appropriate environment for resolving a peace treaty."" Earlier, a Japanese foreign ministry official said Tokyo would raise concerns over Russia's installment of surface-to-ship missiles on Etorofu and other military activity elsewhere on the disputed islands, and seek an explanation from Moscow. It does not plan to push harder than that, said the official, who briefed reporters on the condition he not be named. Japanese officials also said the talks would include work on planning a visit by Prime Minister Shinzo Abe to Moscow later this year. Logistics of visits by Japanese former residents of the disputed islands will also be addressed, they said. ""?Associated Press writers Mari Yamaguchi in Tokyo and Vladimir Isachenkov in Moscow contributed to this report.", -3232,2017/3/20,http://abcnews.go.com/International/wireStory/assad-ally-russia-summons-israeli-diplomat-syria-strike-46248880,Assad ally Russia summons Israeli diplomat over Syria strike,,"Russia's foreign ministry says the Israeli ambassador to Moscow was summoned to explain an exchange of fire last week between Israeli jets and Syrian government forces. Russia is a top ally of Syrian President Bashar Assad and has provided key military and political backing to his forces, allowing him to turn the tide of the conflict. Deputy Foreign Minister Mikhail Bogdanov says Russia ""expressed concern"" over the exchange in which Syria fired missiles at Israeli warplanes that were on a mission to destroy a weapons convoy destined for Hezbollah, the Iranian-backed Lebanese militant group. Monday's report in Russia's RIA Novosti news agency quotes Bogdanov as saying that Israeli Ambassador Gary Koren ""was asked about this"" incident. Hezbollah is also fighting alongside Assad's forces in Syria's brutal six-year civil war.", -3233,2017/3/20,http://abcnews.go.com/US/wireStory/man-claims-nyc-bar-denied-service-pro-trump-46250110,Man claims NYC bar denied him service over pro-Trump hat,,"A Philadelphia man has sued a New York City bar after he says he was denied service because he was wearing a hat supporting President Donald Trump. The New York Post reports Greg Piatek says in the lawsuit that he and his friends were initially served drinks at The Happiest Hour on Jan. 28. But he says once a bartender noticed his ""Make America Great Again"" hat, he asked Piatek if it was ""a joke."" He says a second round of drinks was ""slammed"" down on the bar. The suit claims a manager later asked Piatek to leave, saying he was told by the bar owner that ""anyone who supports Trump or believes what you believe is not welcome here."" The bar didn't immediately respond to a request for comment from The Associated Press.", -3234,2017/3/20,http://abcnews.go.com/International/wireStory/sydney-airline-grounds-planes-propeller-drops-off-46247709,Sydney airline grounds 5 planes after propeller drops off,,"Five Regional Express Airlines passenger planes had been grounded as a precaution after a near disaster in which a propeller fell off an airliner as it approached Sydney Airport, the Australian airline said on Monday. A Saab 340 carrying 19 passengers and crew landed safely in Sydney on Friday after one its two propellers fell off over Sydney's southwest fringe. The Sydney-based airline, also known as Rex, said it had grounded another five of its fleet of 55 Saab 340s because their propeller gear boxes and shafts were from the same series as the defective propeller. ""This is an extremely rare event,"" Rex's chief operating officer Neville Howell said in a statement. The only recorded similar mishap occurred in 1991 when a Comair Airways plane landed safely after losing a propeller, Howell said. An Australian Transport Safety Bureau investigation team was examining the damaged aircraft in Sydney. Investigators also want to examine the propeller for clues, but that had not been found by Monday, Rex said. Flight 768 was flying from Albury, 500 kilometers (300 miles) southwest of Sydney, when the pilots shut down the right engine due to ""abnormal indications,"" Rex said. The pilot then saw the spinning propeller assembly leave its shaft and fly over the wing without touching the plane, the airline said. Australian Licensed Aircraft Engineers Association president Paul Cousin said those aboard the plane were ""lucky in the extreme"" that the propeller had not sliced into the fuselage or tail of the plane. The Saab 340 is designed to climb, cruise and land on a single engine.", -3235,2017/3/20,http://abcnews.go.com/Politics/wireStory/early-trump-backer-leads-house-panel-probing-links-46248773,Early Trump backer leads House panel probing links to Russia,,"Devin Nunes once said all he wanted to do was work on a dairy farm. Now the Republican from the rural Central Valley of California is running one of the most scrutinized, complex and politically fraught congressional investigations in recent memory. As chairman of the House intelligence committee, which holds its first public hearing on Monday, Nunes is at the helm of a probe of Moscow's meddling in the 2016 campaign and the murky web of contacts between President Donald Trump's campaign and Russia. It's a potentially sprawling enterprise that spans continents, plumbs spycraft and dominates international headlines. He's a long way from raising cattle. ""I'm not asking for any profile,"" Nunes told the Associated Press, when asked about his new place in the spotlight. Until recently, the soft-spoken 43-year-old ""?dubbed a ""normal dad"" by friends ""?was hardly a fixture on the national news circuit. Now he is holding weekly press briefings and being asked to weigh in on daily twists and unexpected developments. At Monday's hearing he will call FBI Director James Comey as a witness, an event that amounts to must-see television in Washington. Nunes was not an early Trump backer, but was named to the transition team as an adviser on appointments. The burden of leading a bipartisan, credible investigation into the integrity of the U.S. campaigns, not to mention the possible role of the new president's campaign associates, is a heavy one not only for him but for many veteran lawmakers. On the other side of the aisle, Democratic Sen. Mark Warner, of Virginia, has said the Senate intelligence committee investigation, which he is co-leading, is probably the most important thing he will do in his public life. Nunes says he does not feel the same way. ""Everything we do around here is really important,"" Nunes said. ""I wouldn't put one in front of the other."" It's an understatement his friends recognize. Nunes is a third-generation Portuguese-American, and he grew up working on his family's dairy farm. As a teenager, he raised cattle and saved money to buy farmland with his brother, according to his congressional biography. He has degrees in agriculture and keeps his hand in farming through an investment in two California wineries run by a friend he met through his alumni network. Rep. David Valadao, a Republican congressman from a district next to Nunes' and fellow dairyman, said Nunes takes his job as congressman seriously. But, he said, aside from his work, ""he's a normal dad"" to three young daughters. ""All I wanted to be was a dairy farmer,"" Nunes told a group of high school students as he campaigned for his seat in Congress in 2002, according to an article in the Fresno Bee. His education and childhood aspiration suited his political ambitions. Like many politicians from California's interior farm belt, Nunes was well versed in agriculture and the water supply that supports it. Nunes' first entree into politics was as a member of the board of a local community college. He ran for Congress in 1998 and lost in the primary. In 2001, he was appointed by President George W. Bush to a California post at the U.S. Department of Agriculture. He was only 28 when he won a hotly contested congressional seat, beating his Republican competitors in the 2002 primary by appealing to the concerns of ranchers and dairymen in his solidly conservative district. Tom Barcellos, a Tulare County dairy producer who has known Nunes since he was a child, said Nunes was focused early on politics, without being showy. ""He knew what he wanted and he did his research, and he didn't blow a lot of smoke,"" Barcellos said. He was spotted by Republican leaders as a party loyalist and he was named to a leadership position during his first term in Congress. He vied for the chairmanship of the intelligence committee in 2014. While competing against more senior members, he proved a better fundraiser, bringing in far more money for his party than his competitors for the chairmanship. While many congressional committee leadership positions are based on seniority, the House intelligence committee leadership was chosen by then-House Speaker John Boehner. Monday's hearing will be the latest spotlight on the tension between Nunes' loyalty to Trump and his commitment to a thorough, bipartisan investigation. The congressman's independence has already been questioned. Last month, the White House enlisted him to push back on a news article it didn't like about Trump associates' ties to Russia. The congressman has said he did nothing improper when he reached out to a reporter. Nunes has not appeared to relish the role of Trump defender. He's described Trump as a ""political neophyte."" Asked about Trump's tweeted claims that former President Barack Obama wiretapped his phones, Nunes' response did little to help quiet the controversy. ""Are you going to take the tweets literally?"" Nunes said. ""If so, clearly the president was wrong."" ""?Burke reported from San Francisco. Researcher Jennifer Farrar in New York contributed to this report.", -3236,2017/3/20,http://www.cnn.com/2017/03/20/europe/brexit-eu-juncker-uk/index.html,Brexit: Article 50 will be triggered next week,"London (CNN)BREAKING NEWS 7.32 am ET: British Prime Minister Theresa May will trigger the UK's exit from the European Union on Wednesday, March 29, a spokesperson has confirmed to CNN.","---- Other member states will ""realize it's not worth leaving"" the European Union after they see the deal the UK gets, the European Commission President has warned. The loss of Britain to the bloc, which celebrates its 60th anniversary next week, has crea", -3237,2017/3/20,http://www.huffingtonpost.com/2017/03/17/key-to-happiness-hot-sex_n_15487096.html,Is Having Tons Of Hot Sex The Key To Happiness?,You only think that everyone is having more sex than you.,"Monday is International Day of Happiness, and that got us thinking about what provides happiness. If you ask a teenage boy what would make him happy, the answer (assuming it's not his mother doing the asking) would likely be ""having sex and lots of it.""?If you ask the same question of his grandmother, the answer is probably the same. Yes, older people have sex. But both sonny-boy and Grammy would be wrong if they thought antics in the bedroom were the path to greater fulfillment. Research has tackled the sizzling issue of whether the key to happiness can be found in your sex life, and the short answer is not really. While you may think so, having a lot of sex will not make you any happier. The sweet spot for couples is having sex about once a week, according to recent studies.-More often than that, and it may become a case of familiarity breeding contempt, or at least losing intensity and weakening desire. For one study by Carnegie Mellon University,-128 couples were asked to start having 40 percent more sex than usual. Instead of more sex making them happier, their moods actually declined.-- If you are keeping score ""?and who isn""t? ""?the average adult has sex two or three times a month, according to the Happify graphic below.- Want to feel even better? The National Survey of Sexual Health and Behavior- ""?regarded as one of the most comprehensive studies in almost two decades ""� found that 61 percent of singles and 18 percent of married couples haven""t had sex in the past year. - And why do we even want to compare our sex lives to others""? ""people are often curious about others""?sex lives,""?Debby Herbenick, associate director of the Center for Sexual Health Promotion at Indiana University, said in a statement when the NSSHB was released. ""they want to know how often men and women in different age groups have sex, the types of sex they engage in, and whether they are enjoying it or experiencing sexual difficulties.""?All of which leads to this: If it's happiness you are seeking, maybe the bedroom is the wrong place to be looking for it. That, or perhaps you could volunteer for more research? We'r basically your best friend""?with better taste. Learn more", -3238,2017/3/20,http://www.huffingtonpost.com/2017/03/20/article-50-brexit-may_n_15486686.html,Brexit Has An Official Start Date,It's the final countdown.,"BRUSSELS (Reuters) - Prime Minister Theresa May will write to the European Union on March 29 formally announcing Britain's withdrawal from the bloc, EU sources told Reuters on Monday. Downing Street confirmed the news. That letter next Wednesday will start the clock ticking on a two-year countdown to Brexit and allow negotiations to start between London and Brussels in the coming weeks. (Reporting by Gabriela Baczynska; Editing by Alastair Macdonald) Learn more", -3239,2017/3/20,http://www.huffingtonpost.com/2017/03/20/mondays-morning-email-what-to-expect-in-the-supreme-court-confirmation-hearing-today_n_15486290.html,Monday's Morning Email: What To Expect In The Supreme Court Confirmation Hearing Today,And FBI Director James Comey's testimony.,"(And want to get The Morning Email each weekday? Sign up here.) WHAT TO WATCH FOR IN THE NEIL GORSUCH CONFIRMATION FIGHT-HuffPost takes a look at the Democratic strategy going into today's confirmation hearing for President Donald Trump's Supreme Court justice pick. And here's what former justices have said-about navigating confirmation hearings, and what you should be looking out for.-[HuffPost] WHAT THE FBI DIRECTOR IS EXPECTED TO SAY TODAY ON THE HILL-About those wiretapping claims and the investigation into the Trump campaign's ties with Russia.-[CNN] ""THE STORY OF TWO FAMILIES AND THE REAL-LIFE IMPACT OF OBAMACARE REPEAL-""Jennifer and Keith Gibbs say the-Affordable Care Act-has hurt their family, sticking them with soaring premiums and out-of-pocket costs. Claire and Allen Secrist say the law has helped them and their young daughter, making it possible to get life-changing medical care while avoiding financial ruin.""HuffPost] THE SECRET SERVICE HAD A ROUGH WEEK-Turns out an intruder wandered the White House grounds for over 15 minutes before being apprehended, and a laptop with the layout of Trump Tower was stolen.-[HuffPost] SAKS FIFTH AVENUE MAY HAVE EXPOSED YOUR INFORMATION-""thousands of private customer emails, phone numbers and IP addresses ""?along with identification codes for products the customers expressed interest in buying ""?[are available] on unencrypted, plain text web pages that were accessible to anyone with a web browser.""BuzzFeed] ""aFTER BRINGING CHOLERA TO HAITI,-U.N. CAN""�T RAISE THE MONEY TO FIGHT IT""� The $400 million strategy announced in December has roughly $2 million in the bank to support it.-[NYT] HOW MESSED UP IS YOUR BRACKET ALREADY-Following the Villanova and Duke upsets?-Check out the final Sweet Sixteen, as well as how adorable Bill Murray and Julia Louis-Dreyfus have been about their kids in the big dance.-[HuffPost] BECAUSE THINGS AREN""�T BAD ENOUGH AT UBER RIGHT NOW The president of the company has suddenly quit, reportedly over the wave of controversies Uber is facing.-[HuffPost] TRIBUTES POUR IN FOR CHUCK BERRY-The father of rock ��n roll (and St. Louis native) died over the weekend. He-was 90. [HuffPost] TALE AS OLD AS...LOTS AND LOTS OF MONEY-The new ""Beauty and the Beast""?raked in $170 million domestically. And Emma Watson is set to make quite a few galleons with that news.-[Reuters] CAN THE KARDASHIANS SURVIVE THE TRUMP ERA-As they approach year 10 on television?-[HuffPost] PRO TIP-Don""t accidentally thank your wife and girlfriend at a post-game press conference.-[HuffPost]- ~ How Trump is using special forces to prevent ground wars. ~ New Zealand has expelled a U.S. diplomat after the U.S. refused to waive his immunity due to a ""police investigation of a potentially serious crime.""?~ Police say they are still hunting for a 15-year-old who was kidnapped by a teacher at her school. ~ Katy Perry talks sexuality and religion ""?and what her 2008 song really meant. ~ The Nigerian water bill that could criminalize drinking water for millions. ~ Meet the ultimate old Hollywood fixers. ~ What it looks like to lose $4 billion. ~ A good look at financial tradeoffs folks make around the country. ~ ""sesame Street""?welcomed a new muppet with autism. ~ And happy first day of spring ""?hopefully winter finally gets the memo. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3240,2017/3/20,http://www.huffingtonpost.com/2017/03/18/trump-most-corrupt_n_15485058.html,"2 Months In, Trump May Already Own A First: Most Corrupt POTUS. Ever.",Ethics experts cannot think of a predecessor more ready to use the prestige of the office for personal gain.,"WASHINGTON ""?Imagine a foreign potentate who uses his official position to promote his private businesses. Who makes face time with visiting dignitaries a perk for his paying customers. Whose top aide urges the citizenry to embrace products sold by the sovereign's daughter. For two months now, Americans have not had to imagine any of this. They have been living it. As President Donald Trump enters his third month in office, he has already established at least one record, however dubious: the president most open and willing to use the prestige of the White House to enrich himself and his family. ""I'm at a loss,""?said Robert McGuire, an investigator with the Center for Responsive Politics, a group that advocates for more transparency in government and campaigns. ""This idea that the presidency is something to enrich your private interest to the extent he's doing, not by going on the speaking tour or getting a big book deal after he leaves office, but while he's in office, sort of milking the office for all it's worth ""?it's tacky.""?For years, Trump made sure to feature one of his properties and his name-emblazoned jetliner in each episode of his reality TV show ""the Apprentice.""?Just so,-over the past seven weekends, Trump has visited his hotel in Washington, D.C., his golf courses in Palm Beach County and, most frequently, his Mar-a-Lago resort there. The weekend of March 11 ""?only the second in a month and a half that he did not travel to Florida ""?he had lunch with top aides at his golf course across the Potomac River from the White House. He did not play golf. He did not stay overnight. All he did was have lunch. And with each of these visits have come the attendant media coverage, with photos and videos of his for-profit enterprises. ""He should not use his official position to promote his businesses. That doesn""t make him a good businessman. That makes him a bad president,""?said Richard Painter, the former top ethics lawyer for President George W. Bush's White House. Trump's White House did not respond to emails for this story. And even some of his usual defenders declined to do so on this topic. ""It's the full employment act for people who write about ethics,""?said one former campaign official on the condition he could speak anonymously. Matt Mackowiak, a Texas-based GOP consultant who often defends Trump, said he couldn""t really offer a sincere defense on this one. ""I think he enjoys being at his own properties. He has pride in them. He is comfortable in them. He feels he has a level of control over them,""?he said. ""This he not be allowed to go to his own properties?""?Trump's behavior has no precedent, going back to at least the turn of the last century, ethics experts say. Even in the presidency most often associated with open corruption, it was Warren Harding's Interior secretary, not Harding himself, who had taken bribes in the Teapot Dome oil lease scandal. Presidents in recent years have taken care to place their assets in blind trusts, to eliminate possible perceptions of conflicts between their personal interests and those of the United States. ""I don""t think any president in modern history has had a serious conflict,""?Painter said. At a Jan. 11 news conference, though, Trump declared that the president of the United States was legally incapable of having any conflicts of interest, and that, if he chose to, he could serve as president while also running his businesses. Rather than place his assets in a blind trust ""?in which he would not even know what holdings he owned, let alone be able to control them-""?Trump merely turned over temporary managerial control to his adult sons. And they, in turn, have been aggressively marketing the Trump brand abroad, taxpayer-provided Secret Service contingents in tow. Eric Trump earlier this month even boasted about how well it is going. ""I think our brand is the hottest it has ever been,""?he told the New York Times. Meanwhile, the family of his brother-in-law and top White House aide, Jared Kushner, is reportedly negotiating a deal with a Chinese firm that analysts are calling unusually favorable to the Kushners. It would allow them to dramatically reduce their liability on a nine-figure loan on a Manhattan high-rise. At the same time, Kushner has emerged as Trump's informal but possibly most influential foreign policy negotiator and has already met with Chinese leaders among others. Kushner's wife, Ivanka Trump, the president's daughter, has been the beneficiary of a different top Trump aide. Kellyanne Conway, reacting to news that department store chain Nordstrom was dropping Ivanka Trump's clothing line because of poor sales, in a TV interview from the White House briefing room urged viewers to take action. ""Go buy Ivanka's stuff,""?Conway told Fox News on Feb. 9. ""I'm going to give a free commercial here. Go buy it today, everybody. You can find it online.""?White House Press Secretary Sean Spicer later said Conway had ""been counseled""?about her remarks ""?but Spicer himself had defended Trump's involvement in the episode, saying he had every right to write angry tweets about Nordstrom because they picked on his daughter. ""He ran for president. He won. He's leading this country,""?Spicer had said at the previous day's White House press briefing. ""For people to take out their concern about his actions or his executive order on members of his family, he has every right to stand up for his family and applaud their business activities, their success.""?Spicer further has defended Trump's refusal to put his assets in the blind trust and his repeated choices to use his own properties for both time off as well as official meetings. Indeed, in early February, Spicer began referring to Trump's for-profit Palm Beach resort ""?which doubled its initiation fees from $100,000 before Trump's election win to $200,000 now ""?in this manner: ""This weekend, the president will be shifting the operation of the White House down to the winter White House at Mar-a-Lago,""?Spicer said from the briefing room podium. Spicer's and Conway's words, though, merely reflect the attitude set from the top by the most openly transactional and self-dealing president in modern times. During his campaign, Trump insisted on using both his own private jetliner for travel and his own office tower as headquarters ""?even though he could have saved his donors millions had he rented space in a less expensive building and chartered a more efficient plane. For months as he traveled the country, he spoke about how he had given money to politicians over the years with the expectation that they would later do what he wanted on a particular issue. He then accused his opponents of taking money from ""special interests""?with that same understanding. He spoke about how he would treat someone nicely if that person had treated him nicely ""?even using that rationale to defend Russian President Vladimir Putin from charges of murdering his political opponents. That attitude has continued even after his election, to the point where he appears to feel obliged to mingle with dues-paying members of Mar-a-Lago and his other properties. During the transition, he visited with a dinner reception at his golf club in Bedminster, New Jersey, during a weekend trip there and bragged about all the Cabinet interviews he was planning to hold there the next day. He has reportedly solicited Mar-a-Lago guests for their thoughts on policies he is considering. And during the visit of Japan's prime minister to Mar-a-Lago last month, Trump introduced Shinzo Abe to club members hosting a wedding reception. ""they're been members of this club for a long time,""?Trump explained. ""they're paid me a fortune.""?""This pay-to-play game has got to stop. He's president of the United States. It's corruption of government,""?said Painter, now a law professor at the University of Minnesota and part of the legal team suing Trump over the payments his hotels are receiving from foreign entities, possibly in violation of the Constitution.- The Center for Responsive Politics""?Maguire said Trump's behavior has disproven predictions by those who believed he would evolve to meet the decorum expected of the presidency. ""the expectation was, once he gets into office, of course he won""t be like this,""?Maguire said. ""�And, of course, he has.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3241,2017/3/20,http://www.huffingtonpost.com/2017/03/19/huffpost-headline-quiz-mar-13-to-mar-19_n_15485056.html,HuffPost Headline Quiz: Mar. 13 to Mar. 19,How closely have you been following the news?,"From President Donald Trump's first official budget proposal to the Congressional Budget Office's report on the American Health Care Act, a lot happened last week. See how well you know the top stories below.- Want to ace the answers to this news-quiz? Subscribe to The Huffington Post's Morning Email:-http://huff.to/2hBXNJh. Also, don""t forget to try our quiz on Google Home!- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's first 100 days impact you? Learn more", -3242,2017/3/20,http://www.huffingtonpost.com/2017/03/20/zebra-meme-john-oliver_n_15484498.html,John Oliver's Weird Trump-Crashing Zebra Is The New Meme You'll See Everywhere,What's better than a dancing zebra?,"Blame John Oliver. A dancing zebra became an overnight sensation on Sunday after the host of HBO's ""Last Week Tonight""?released a 23-minute clip of the-zebra dancing, sitting, gesturing and more, all in front of a green screen. This allowed fans to add the zebra to footage of just about anything ""?so far, mostly clips of President Donald Trump ""?along with the #JustAddZebras-hashtag.- Why? Partially because of a program in Bolivia where people dressed as zebras and directed traffic. But mostly because it's a dancing zebra. Is there anything better than that? Here's a sampling:- Zebra makes Trump appears to ignore requests for a handshake with Angela Merkel #JustAddZebras pic.twitter.com/3mdWSmbBEd Everything is better with a zebra! #justaddzebras .@LastWeekTonight I haven't laughed so hard in a very long time..and off the couch!#justaddzebras also this:https://t.co/UBXKhap5Ye thank you @LastWeekTonight #justaddzebras. possibly the greatest thing ever to appear on TV #justaddzebras I just learnt to use green screen. I think I made a cool video pic.twitter.com/BAOIdCYrow I never realized how much I needed #JustAddZebras in my life until now. Thanks @iamjohnoliver and @LastWeekTonight https://t.co/b84yNV02r2 #justaddzebras I don't get it but it's funny #JustAddZebras Mr zebra makes this dystopian scene more palatable, BTW this band sued Trump campaign @LastWeekTonight @iamjohnoliver #JustAddZebras pic.twitter.com/4B6bxX41dF Maybe it's just what this country needs at the moment! #JustAddZebras #LastWeekTonight Thank you @LastWeekTonight for making things a little bit better #justaddzebras pic.twitter.com/01jrHaYstO #justaddzebras is the next best thing You know what Uranium is right? #justaddzebras pic.twitter.com/Emo56oRyjM #justaddzebras just learnt how to use green screen pic.twitter.com/odQOzLhzLQ Decided to teach myself how to use green screen on iMovie. #JustAddZebras to the meme about the gun-toting son of the racist. pic.twitter.com/6vxFwB5NV0 Not all of the #JustAddZebras went into Trump pics and videos. Zebras can really be added to anything and everything:- #justaddzebras Go Johnny Go!#lastweektonight pic.twitter.com/CBhkUtSP9P There's something new in ""The Princess Bride""! #JustAddZebras pic.twitter.com/j3XwghclgD Thank you @LastWeekTonight for always ending my weekends perfectly. This week you knew the solution was to #JustAddZebras. #Brilliance @HBO pic.twitter.com/QpJr4WjfCm Share this slide: Don""t be the last to watch the viral video everyone is talking about. Learn more", -3243,2017/3/20,http://www.bbc.co.uk/news/uk-politics-39325561,Article 50: Theresa May to trigger Brexit process next week,Prime Minister Theresa May is to officially notify the European Union next Wednesday that the UK is leaving.,"Prime Minister Theresa May is to officially notify the European Union next Wednesday that the UK is leaving. Downing Street said she would write a letter to the European Council, adding that it expected negotiations on the terms of exit and future relations to then begin as quickly as possible. The move comes nine months after a referendum in which the UK voted to leave by a margin of 51.9% to 48.1%. An EU spokesman said it was ""ready and waiting"" for the letter. Under the Article 50 process, talks on the terms of exit and future relations are not allowed until the UK formally tells the EU it is leaving. If all goes according to the two year negotiations set out in the official Article 50 timetable, Brexit should happen in March 2019. A No 10 spokesman said the UK's Ambassador to the EU, Sir Tim Barrow, informed the European Council, headed by President Donald Tusk, earlier on Monday of the date that Article 50 would be triggered. Mrs May is expected to make a statement to the House of Commons shortly after invoking Article 50. A spokesman said the government wants negotiations to start as soon as possible but added that they ""fully appreciate it is right that the other 27 EU states have time to agree their position"". The BBC's Ben Wright said he expected the Article 50 letter to be short, possibly extending to two pages at most, and for Mrs May to use it to publicly reiterate her general objectives - such as leaving the single market but reaching a mutually beneficial agreement on trade and other issues. Brexit Secretary David Davis said the UK was now ""on the threshold of the most important negotiation for this country for a generation"". ""The government is clear in its aims,"" he said. ""A deal that works for every nation and region of the UK and indeed for all of Europe - a new, positive partnership between the UK and our friends and allies in the European Union."" In response to the news, Mr Tusk tweeted: ""Within 48 hours of the UK triggering Article 50, I will present the draft Brexit guidelines to the EU27 Member States."" Mrs May said last year that she intended to notify the EU of the UK's intention to leave by the end of March. The move was approved by Parliament two weeks ago when peers and MPs passed unamended a bill giving the prime minister the authority to set the process in motion. EU leaders have said they want to conclude the talks within 18 months to allow the terms of the UK's exit to be ratified by the UK Parliament and the European Parliament, as well as approved by the necessary majority of EU states. Mrs May has said MPs and peers will have a vote on the deal she negotiates but she has insisted the UK will leave anyway even if Parliament rejects it. The government has said it expects to secure a positive outcome but made clear there is a chance of there being no formal agreement. Later this week, EU leaders will gather in Rome to mark the 60th anniversary of the Treaties of Rome, which established the European Economic Community - the initial forerunner to the EU. Mrs May is not attending the event.", -3244,2017/3/20,http://www.bbc.co.uk/news/world-39325206,Happiness report: Norway is the happiest place on Earth,"Norway is the happiest place on Earth, according to a United Nations agency report - toppling neighbour Denmark from the number one position.","Norway is the happiest place on Earth, according to a United Nations agency report - toppling neighbour Denmark from the number one position. The World Happiness Report measures ""subjective well-being"" - how happy the people are, and why. Denmark, Iceland, Switzerland and and Finland round out the top five, while the Central African Republic came last. Western Europe and North America dominated the top of table, with the US and UK at 14th and 19th, respectively. Countries in sub-Saharan Africa and those hit by conflict have predictably low scores. Syria placed 152 of 155 countries - Yemen and South Sudan, which are facing impending famine, came in at 146 and 147. The World Happiness Report was released to coincide with the United Nations' International Day of Happiness on 20 March. It mainly relies on asking a simple, subjective question of more than 1,000 people every year in more than 150 countries. ""Imagine a ladder, with steps numbered from 0 at the bottom to 10 at the top,"" the question asks. ""The top of the ladder represents the best possible life for you and the bottom of the ladder represents the worst possible life for you. On which step of the ladder would you say you personally feel you stand at this time?"" The average result is the country's score - ranging from Norway's 7.54 to the Central African Republic's 2.69. But the report also tries to analyse statistics to explain why one country is happier than another. It looks at factors including economic strength (measured in GDP per capita), social support, life expectancy, freedom of choice, generosity, and perceived corruption. This year's report also contains a chapter titled ""restoring American happiness"", which examines why happiness levels in the United States are falling, despite constantly-increasing economic improvement. ""The United States can and should raise happiness by addressing America's multi-faceted social crisis - rising inequality, corruption, isolation, and distrust - rather than focusing exclusively or even mainly on economic growth,"" the authors said. ""America's crisis is, in short, a social crisis, not an economic crisis."" Jeffrey Sachs, the director of the Sustainable Development Solutions Network, which published the report, said President Donald Trump's policies were likely to make things worse. ""They are all aimed at increasing inequality - tax cuts at the top, throwing people off the healthcare rolls, cutting Meals on Wheels in order to raise military spending. I think everything that has been proposed goes in the wrong direction,"" he told Reuters. The report also suggests that professional ""white collar"" jobs are associated with improved happiness over ""blue collar"" roles - but that having a job at all is one of the biggest factors. And while ""those in well-paying jobs are happier and more satisfied with their lives"", that effect has diminishing returns - ""an extra $100 of salary is worth much more to someone at the lower end of the income distribution than someone already earning much more."" Beijing park dispenses 'loo roll by face' Sesame Street welcomes muppet with autism The success of sperm 'down to rhythm' The report has been published for the past five years, during which the Nordic countries have consistently dominated the top spots. The clear dominance of those countries - and Denmark in particular - has encouraged other nations to adopt the Danish concept of ""Hygge"" - a cultural concept of cosiness and relaxation.", -3245,2017/3/20,http://tass.com/world/936487,NSA whistleblower's attorney dismisses Snowden-Bout spy swap as rumors,The lawyer of ex-NSA contractor Edward Snowden reiterated that his residence permit in Russia was valid till 2020,"MOSCOW, March 20. /TASS/. Russian lawyer of former US secret service employee Edward Snowden has dismissed as groundless rumors the speculations his client may be exchanged for Russia's Viktor Bout, who is serving a long prison term in the United States. ""Snowden does not regard himself guilty,"" lawyer Anatoly Kucherena has said. ""There is nothing for which he may want himself to be excused by anybody. All what he did was done for the good of all. Speculations about some pardon or handover are groundless rumors being fueled by the CIA and the NSA: ""�We have Bout who can be exchanged.""?All this is very far-fetched."" Kucherena reiterated-that Snowden's residence permit in Russia was valid till 2020. ""He lives in our country, he works in our country, and he does not violate any laws, so any speculations over the possibility Moscow might conduct negotiations with somebody are impermissible,"" Kucherena said. Edward Snowden, an analyst working for the US National Security Agency, in 2013 disclosed to the public at large information about electronic spying methods used by US secret services, including the eavesdropping of foreign leaders. While trying to escape from US persecution Snowden asked more than 20 countries, including Russia, for him asylum. On August 1, 2014 he received Russia's residence permit and has been in Russia ever since. In the United States Snowden faces spying charges on two counts. The maximum punishment under either charge is 10 years in jail. US officials have said more than once they regarded Snowden as a traitor and had no intention of pardoning him, because he had caused great harm to national security. Viktor Bout was arrested in Thailand's capital Bangkok in 2008 under a warrant issued by a local court following a request from Washington. He was accused of involvement in a plot to illegally deliver weapons to the organization calling itself Revolutionary Armed Forces of Columbia, regarded as terrorist in the United States. In 2010 Bout was extradited to the US. In April 2012 he was sentenced to 25 years in prison and a $15-million fine.", -3246,2017/3/20,http://tass.com/politics/936471,"Crimea to continue inviting European politicians despite Kiev's bans ""?envoy","Crimea's vice premier noted that the absence of logic in Kiev's actions may lead to the fact that eventually ""it will prohibit all politicians and lawmakers across the world to come to Ukraine""","SIMFEROPOL, March 20. /TASS/. Crimea will continue to show the real situation on the Black Sea peninsula to politicians from Europe despite a ban on such visit imposed by Ukraine, Crimea's Vice Premier and Permanent Representative to the Russian President, Georgy Muradov, told reporters on Monday. ""More and more people come to us. They believe it is necessary for them to see how the situation in Crimea evolves. We will continue this practice. We will push ahead with efforts aimed at making sure that people in the world have a better understanding of what is really going on in Crimea, that human rights are respected here,"" Muradov said commenting on the visit by European parliamentarians who are to be sanctioned by Kiev in the wake of their visit. ""During all international forums <""?, Ukraine raises the issue saying that no one is allowed to visit Crimea, and independent observers cannot see anything here. However, as soon as these independent observers say that they will come, tremendous pressure is exerted on them through diplomatic and political channels to prevent them from visiting the region <""? ""Ukraine demands that the entire world should be aware of what is happening in Crimea. Let everyone come and see with their own eyes. We invite everyone and do not hinder anyone's visits,"" Muradov noted. He noted that the absence of logic in Kiev's actions may lead to the fact that eventually ""it will prohibit all politicians and lawmakers across the world to come to Ukraine."" MPs from some European countries (the UK, the Czech Republic, Serbia and Montenegro), as well as Kyrgyzstan and Brazil, arrived in Crimea on Sunday. On Monday, they are holding meetings with local government official and members of the general public. The politicians""?visit was organized by the Just Russia political party. On Sunday, Secretary of Ukraine's National Security and Defense Council (NSDC), Alexander Turchinov, said that Ukraine's Security Council, under instructions from the NSDC, will compile a list of politicians from European and other countries with a view to slapping sanctions on them over their visit to Crimea. According to Turchinov, ""if their stay in Crimea is confirmed, criminal proceedings should be launched in accordance with the existing legislation."" The parliamentarians themselves said they do not fear Kiev's possible sanctions and have no intention of visiting Ukraine.", -3247,2017/3/20,http://tass.com/economy/936478,Rosneft to ramp up investment in developing Arctic shelf in next 5 years,,"MOSCOW, March 20. /TASS/. Russia's oil major Rosneft has invested around 100 bln rubles ($1.74 bln) in the development of Russia's Arctic shelf in 2011-2016 and plans a severalfold increase of the figure in the next 5 years, representative of Rosneft told TASS. ""Rosneft's investments in the development of the Arctic shelf in 2012-2016 amounted to around 100 bln rubles ($1.74 bln). In the future, the company is not going to slow down the pace and in the next 5 years the volume of investment in development will grow several times,"" the company's representative said. Currently, Rosneft owns licenses for 28 sites on the Arctic shelf with total resources of 34 bln tonnes of oil equivalent.", -3248,2017/3/20,http://tass.com/economy/936480,"Global investments into oil production expected to grow 11% annually ""?Wood Mackenzie","According to UK-based Wood Mackenzie consultancy, global investments into oil exploration and production will surge 11% year-on-year to $25 bln in 2017","MOSCOW, March 20. /TASS/. Global investments into oil exploration and production will surge 11% year-on-year to $25 bln in 2017, UK-based Wood Mackenzie consultancy said on the basis of plans of 119 world's oil producers. According to Wood Mackenzie, 99 out of 119 companies have plans to increase investments into oil exploration and production. Exploration and production budgets are set to rise 60% year-on-year among companies focused on the US, accounting for $15 bln of additional investments, the consulting firm said. ""Bigger budgets are also expected in Canada, Latin America and Russia,"" Wood Mackenzie said. ""For many companies, 2017 will be about focusing on returning to growth,"" the analysts said. 98 companies announcing production focus for this year are expected to produce 1 mln barrels of oil equivalent per day more than in 2016, ""year-on-year growth of about 5%,"" Wood Mackenzie reported.", -3249,2017/3/20,http://tass.com/world/936470,Kiev slaps sanctions on European MPs visiting Crimea,The European MPs will be banned from entering Ukraine for five years,"MOSCOW, March 20. /TASS/. Ukraine's Security Service has made a decision to impose sanctions on several European MPs who arrived in Crimea on March 19 for a three-day visit, spokeswoman for the Security Council Yelena Gitlyanskaya said on Monday. ""Four citizens of Serbia and one citizen of the Czech Republic are illegally staying on the territory of the Autonomous Republic of Crimea. The Ukrainian Security Council has made a decision to ban them entry into Ukraine for five years,"" the spokeswoman said on her Facebook page. Members-of parliaments of some countries (the United Kingdom, the Czech Republic, Serbia and Montenegro), and also Kyrgyzstan and Brazil arrived on Sunday in Crimea. They are holding meetings on Monday with the Crimean authorities and the republican public. The politicians""?visit has been organized by the A Just Russia Party. Secretary of the Ukrainian National Security and Defense Council Alexander Turchinov stated on March 19 that on the Council's instruction Ukraine's Security Council will draw up a list of politicians from European and other countries for slapping sanctions against them for visiting Crimea. According to Turchinov, ""in case their stay in Crimea is confirmed, criminal cases must be opened in compliance with the effective legislation."" Meanwhile, the European parliamentarians who have arrived in Crimea have said they do not fear Kiev's possible sanctions and are not going to come to Ukraine. After a coup d'etat in Kiev in February 2014, the authorities of Crimea and Sevastopol made a decision to hold a referendum on reunification with Russia. The referendum, which took place on March 16, 2014, was attended by over 80% of the Black Sea peninsula's eligible voters. As many as 96.7% of Crimean residents and 95.6% of Sevastopol residents voted for reuniting with Russia. On March 18 that year, Russian President Vladimir Putin signed a treaty on reintegrating the Republic of Crimea and the city of Sevastopol into Russia and on March 21 the document was ratified by both houses of Russia's parliament. Despite the referendum's convincing results, Kiev has refused to recognize Crimea as part of Russia.", -3250,2017/3/20,http://tass.com/press-releases/936479,Capitol Acquisition Corp. III to Combine with Cision,"Combined Company to be Well Positioned to Capitalize on the Rising Importance of Earned Media with a First-of-its-Kind Cloud-Based Platform ""?the Cision Communications Cloud�?,CHICAGO and WASHINGTON", March 20, announced that they have entered into a definitive agreement in which Cision will become a publicly listed company with an anticipated initial enterprise value of approximately $2.4 billion. Cision delivers a sophisticated -3251,2017/3/20,http://tass.com/politics/936464,Kremlin not commenting on Trump's 'Putin's one tough cookie' remark,"""I don""t know him, but certainly he is a tough cookie,"" Donald Trump said about Vladimir Putin","MOSCOW, March 20. /TASS/.-Kremlin Spokesman Dmitry Peskov has refrained from commenting on US President Donald Trump's remark about Russian President Vladimir Putin being a ""tough cookie"" in his view. ""The Russian language and the English language are both very rich,"" Peskov said. ""Naturally, some politicians eagerly use the richness of their mother tongue."" He added that the Kremlin preferred not to indulge in linguistic analysis. Trump dropped the remark in an interview to Fox TV. Extracts from that interview were aired on Saturday evening. The host mentioned the names of a number of US politicians and businessmen and of the Russian leader and asked Trump to offer a brief description of each of them. ""I don""t know him, but certainly he is a tough cookie,"" Trump said about Putin. ""I don""t know what he is doing for Russia, we are gonna find out one day, I guess."" ", -3252,2017/3/20,http://tass.com/world/936455,"Lukashenko calls for ""Transparency""? consents to NATO observing Belarus-Russia drills","If NATO representatives wish to be present during the joint drills, they are welcome to do so, Alexander Lukashenko stated","MINSK, March 20. /TASS/. The Zapad-2017 joint Belarusian-Russian drills will be solely defensive in nature and NATO representatives will be able to observe them, President of Belarus Alexander Lukashenko said on Monday. Lukashenko made this statement as he examined a report on organizing the Zapad-2017 (West-2017) joint strategic drills of the Belarusian and Russian troops. ""I require from all of you to make this event transparent on the territory of our country and all measures accessible not only for our friends from the CSTO [Collective Security Treaty Organization], the EAEU [Eurasian Economic Union] and the CIS [Commonwealth of Independent States] member states but also for representatives of the North Atlantic alliance - NATO,"" Lukashenko said. ""We are not hiding and should not hide anything. If NATO representatives want to be present at our drills, you are welcome. Moreover, I'm already receiving such information and such signals from them,"" the state news agency BelTA quoted the Belarusian leader as saying. ""We are not shutting down from anyone. We will invite all those who wish to these exercises and you'll see that they are solely of defensive nature,"" the Belarusian president said. ""Neither we nor the Russian Federation are going to advance on anyone in this direction and all the more so we are not going to provoke anyone here,"" Lukashenko said. ""We are preparing just in case to ensure our security in any situation,"" the Belarusian leader said. Lukashenko told the country's Defense Ministry to generally characterize ""the efficiency of bilateral military cooperation with Russia."" ""For me, this is also important ahead of a possible session of the Higher State Council. If there are some problems, I will be able to outline them for the Russian leadership and attract attention to more effective cooperation under our agreements on the defense of our Union [Russia-Belarus] State,"" Lukashenko said. The Belarusian president also said that the joint drills on the republic's territory ""should leave only positive emotions in the memory of officers and soldiers and our guests."" ""These are our people. we'll have together to safeguard our defense and security,"" the Belarusian leader said.", -3253,2017/3/20,http://tass.com/politics/936462,Russian defense chief calls on global community to pitch in to rebuild Syria,"According to the Russian defense minister, the issue at hand is restoring water-intake facilities and essential utility services in various cities throughout the country","MOSCOW, March 20. /TASS/. The international community should chip in to restore Syria's facilities, Russian Defense Minister Sergey Shoigu said on Monday following the ""2+2"" Russian-Japanese talks in Tokyo. ""We believe the time has come to start discussing the postwar reconstruction of Syria's facilities and the international coalition's contribution to these efforts,"" he told the Rossiya 24 TV channel. According to the Russian defense minister, the issue at hand is restoring water-intake facilities and essential utility services in various cities throughout the country. ""Many facilities have been destroyed, and a lot needs to be restored. This assistance can be provided by way of equipment, experts or even by training specialists. Actually, this is what Russia is doing now,"" Shoigu stated. He hoped that Russia's foreign partners will join ""these large-scale humanitarian projects."" Aleppo's historical sights after Syrian civil war ", -3254,2017/3/20,http://tass.com/politics/936463,Kremlin notes parameters for Syrian peace deal still being hammered out,The Russian president's press secretary also said that many formats of political settlement have already been outlines and are now on the agenda,"MOSCOW, March 20. /TASS/. It is too early to speak about any concrete parameters of the Syrian settlement, the Kremlin spokesman said on Monday. ""So far, there is no common stance at the talks [on Syrian settlement]. The process goes on with difficulty,"" Dmitry Peskov, the Russian president's press secretary, told journalists. ""So, I don""t think we can speak about any parameters in a situation like this."" He also said that many formats of political settlement have already been outlines and are now on the agenda. ""Russia's foreign policy is determined by the Russian president and implemented by the Foreign Ministry,"" Peskov said when asked to comment on pronouncements by a senior Russian lawmaker who said the process of national reconciliation in Syria could not be efficient without establishing national autonomies. Earlier, Leonid Slutsky, the chairman of the international committee of the Russian State Duma lower parliament house, said that national autonomies in Syria would promote the process of reconciliation. ""We will discuss with the country's leaders, with lawmakers the situation around the constitution, the most important issues such as the implementation of United Nations Security Council Resolution 2254, prisoner exchange, possibilities for the establishment of national autonomies, without which real reconciliation in that country is impossible,"" he told journalists in Damascus where he had arrived with a delegation of Russian and PACE lawmakers earlier in the day.", -3255,2017/3/20,http://www.dw.com/en/greek-firms-paying-employees-with-coupons/a-38020159?maca=en-rss-en-all-1573-rdf,Greek firms paying employees with coupons,"Cash-strapped Greek firms have started paying employees in kind, mainly with supermarket coupons. Employees faced with the highest unemployment in the European Union are complaining, but don't really have many options.","At the age of 42, George had-been out of work for over a year and struggling-to make ends meet, before landing a job at a local supermarket. Months into his new gig, however, the father of two faced an unorthodox company notice: part of employees' salaries would now be paid in kind, not cash. ""I really had no option,""-he said, refusing to divulge his surname and company details for fear of reprisals.-""I just shrugged my shoulders and agreed. I didn't want to face unemployment again."" With cash-strapped Greek firms struggling to cope with-rising payroll costs and social security contributions, payments in kind are skyrocketing, feeding a black market which already accounts for more than a quarter of the county's official economy. Yet with one in three Greeks facing rising rates of unemployment, payments in kind are encouraging other nefarious practices. This is throwing the country's already ailing labor market into further chaos, warns GSEE, Greece's largest umbrella trade union which represents-about 1.8 million private sector employees. ""Even if payment were-being offered in bars-of gold, this would all be terribly illegal,""-said-GSEE Secretary Dimitris Kalogeropoulos in a recent interview with DW.-""A mafia-style mentality in work relations is taking hold."" Talks with international creditors continue For months, Athens and its international-creditors have been locked in acrimonious debate over the terms of a bailout that would free up-more rescue funds to keep the Greek economy afloat. An agreement is anticipated by April, but the scale of concessions that the leftist government of Alexis Tsipras may backfire domestically. Greeks have been reeling from seven years of brutal budget cuts that have seen one in three businesses shut. The economy shrank by 25 percent, and 1.2 million workers were pushed into unemployment lines.-Demands by creditors to ease-up the labor market, making it simpler for companies to hire and fire, have voters and lawmakers balking at the reforms. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XzJe Since the start of the financial crisis, collective labor agreements have been sort of eclipsed, giving way instead to dodgy business contracts ensuring nominal pay and no benefits to employees. In 2016, just 45.3 percent of the country's private sector workforce worked full time - a dramatic drop from the near 80 percent recorded before the Greek economy skid off the fiscal cliff in 2009. Salaries, meantime, have swooned. About 70 percent of private sector workers are now being paid less than 800 euros ($862) a month. Of these about 25 percent receive between 500 and 699 euros per month, according to surveys released earlier this week. ""Add on firms and companies distributing coupons rather than cash to their workers, and the most fortunate employees end up with just over half of the salaries deposited into their bank accounts each month,""-says-Karageorgopoulos. ""It's crazy and it's getting worse."" Dodgy practices Before-the financial crisis, some firms issued employees with vouchers to reward them for outstanding service. Treats included all-inclusive stays at sun-kissed holiday resorts to free theater tickets and meals at exclusive restaurants. But now, all of that has been dropped and coupons, mostly issued by Ticket Restaurant, include lackluster pay in kind vouchers for supermarket supplies. What's more, nastier labor practices have emerged. In one such budding trend, private security guards escort company employees to ATM machines at night, forcing them to withdraw and hand back to their employers as much as a third of their deposited pay. ""It's part of dodgy, under the table transactions that many employees have agreed to for the sake of securing a job,"" Kalogeropoulos says. This mafia-style practice has become more popular since December 2016, when a new government decree forced companies to pay all employers' salaries via bank transfers - a move designed to crack down on widespread tax evasion and undeclared labor. Surprisingly, though, authorities remain oblivious. It's in stores like these that vouchers can be used in Greece The government refuses to take action In fact, despite mounting complaints, no official investigation has been launched into the nefarious labor practices. Neither have companies been publicly named or shamed for their illegal practices. Last week, GSEE revealed that it had received thousands of complaints in recent months centered on a group of telecommunications companies, security firms, cleaning and collection companies which operate across the country. Labor and Finance Ministry officials refused to comment. For millions of Greeks, though, the trend strikes another blow to their battered dignity. ""It's not just the poor or struggling folks that are now being forced to use these vouchers,""?says Eleni Dorania, a supermarket employee in the north of-Athens. ""It's everyone. And it's sad watching many respectable people secretly pull them out for reimbursement. They feel like they are on food stamps.""", -3256,2017/3/20,http://www.dw.com/en/depeche-mode-s-new-album/a-38024625?maca=en-rss-en-all-1573-rdf,Depeche Mode's new album,"Depeche Mode's new album is called ""Spirit"". The British synth band's lead singer Dave Gahan hopes that the songs will inspire people to reflect. The band is also planning a world tour.-","You can find out more about European lifestyle and culture in our Euromaxx show. The DW magazine program reports on culture and art, countries and lifestyle, fashion and music, celebrities and hobbies in Europe six times weekly. Or follow us on Facebook and Instagram. -", -3257,2017/3/20,http://www.dw.com/en/britain-to-trigger-article-50-on-march-29-formally-launching-brexit-process/a-38024030?maca=en-rss-en-all-1573-rdf,"Britain to trigger Article 50 on March 29, formally launching Brexit process","British Prime Minister Theresa May is set to trigger Article 50 at the end of March, her office has announced. The move would then set off two years of formal negotiations on Britain leaving the European Union.","Prime Minister May will write a letter to the European Union on March 29 to formally announce Britain's withdrawal from the soon-to-be 27 member bloc, a spokesman for the British leader said on Monday. The UK informed European Council President Donald Tusk's office of May's intention, the spokesman added. Triggering Article 50 of the Lisbon Treaty will-start-the clock on two years of formal negotiations, at the end of which Britain will leave the EU. The British parliament backed May's Article 50 plan last week after 51.9-percent of participants voted-for Brexit in a referendum last June. ""Next Wednesday, the government will deliver on that decision and formally start the process by triggering Article 50,"" Brexit Minister David Davis said in a statement. ""We are on the threshold of the most important negotiation for this country for a generation."" EU is 'ready' The European Commission said on Monday that it is prepared to begin Brexit negotiations after the British government confirmed the date it will launch the process. ""Everything is ready on this side,"" Margaritis Schinas, the chief spokesman for the EU executive, told a regular news briefing. He added that negotiations would begin after other EU states met to confirm the Commission's negotiating mandate. On Twitter, Tusk said that he would present the other 27 member states with draft Brexit negotiating guidelines within 48 hours of the UK triggering Article 50. More to come... rs/rc (AP, AFP, dpa, Reuters)", -3258,2017/3/20,http://www.dw.com/en/new-hearing-for-roman-polanski-in-40-year-old-sex-case/a-38020089?maca=en-rss-en-all-1573-rdf,New hearing for Roman Polanski in 40-year-old sex case,Will fugitive director Roman Polanski become a free man 40 years after pleading guilty to sex with a minor? A Los Angeles court is set to review the case once again - but without the filmmaker's presence.,"A hearing opens Monday in Los Angeles to review whether the case against director Roman Polanski should be drawn to a close. The nearly 40-year-old court case centers on six felony counts from 1977 counts-for the drugging and rape-of a 13-year-old girl. At the time, Polanski pled guilty to unlawful sexual intercourse with the minor, but fled while awaiting punishment and has not returned to the US since. Los Angeles Superior Court Judge Scott Gordon will hear new arguments Monday, during which Polanski's attorney, Harland Braun, will argue that the director should not face additional incarceration, having served 42 days in a California prison in 1977.- ""Mr. Polanski is 83 years old and wishes to have this matter resolved without prolonged and costly litigation on various matters involved in the sordid history of this prosecution,"" his lawyer, Harland Braun, said in a letter to the court last month.- Prosecutors disagree, arguing that the case should not be resolved unless Polanski appears in a US courtroom personally. ""He forfeited his right to make requests of the court when he fled,"" said the Los Angeles District Attorney's office. ""The defendant has many options before him if he returns"" to Los Angeles, Deputy District Attorney Michele Hanisee wrote earlier this month. She stated that Polanski could argue for time served, appeal previous rulings or withdraw his guilty plea and go to trial. ""What he cannot do is dictate outcomes from afar while insulating himself from any potential adverse consequences,"" wrote Hanisee. The Oscar-winning filmmaker has been living in Switzerland, France and Poland since fleeing the United States. He received a best director Oscar in 2002 for ""The Pianist,"" but did not attend the Los Angeles ceremony. Extradition requests made by the US have not been upheld by the countries Polanski has lived in. ct/kbm-(dpa, Reuters)", -3259,2017/3/20,http://www.dw.com/en/tillerson-s-north-korea-comments-cause-unease-in-east-asia/a-38021917?maca=en-rss-en-all-1573-rdf,Tillerson's North Korea comments cause unease in East Asia,"Despite the US' warnings, analysts say it is at present unlikely to launch a pre-emptive strike against North Korea. But they warn that a minor miscalculation by either side could quickly escalate. Julian Ryall reports.","The public reactions-of China, South Korea and Japan to US Secretary of State Rex Tillerson's comments that the policy of ""strategic patience"" towards North Korea is over and-a pre-emptive strike is an ""option on the table"" have been muted and diplomatic.- Beijing reiterated its position that dialogue is the most appropriate way forward, while-both Seoul and Tokyo opted to underline their commitment to their bilateral security agreements with the US. Behind the facade, however, Tillerson's signaling of a tough new line towards Pyongyang will have likely caused consternation in all three capitals. While Tillerson's comments may never actually transpire into action, they have done nothing to ease tensions in a region that is already on edge thanks to North Korea's-unpredictable and nuclear-armed regime. ""China will have been extremely worried by his comments, particularly the suggestion that the US could carry out a first-strike attack on North Korean targets,"" said Stephen Nagy, an associate professor of international relations at Tokyo's International Christian University. Regime collapse consequences ""There are a number of potential negative consequences, including the possibility of regime collapse in the North and all the problems that would go with that, such as a flood of asylum seekers into northeastern China, the removal of a broadly pro-Beijing leadership and the effects on the complex geopolitical situation in the region. ""For South Korea, the biggest immediate concern over a pre-emptive first strike would be the question of whether Kim Jong Un has set in motion a system for an attack on the South,"" Nagy said, pointing out that Seoul is well within range of thousands of conventional North Korean artillery units stationed close to the Demilitarized Zone that divides the peninsula. Japan-will also be concerned over a potential North Korean counterattack, Nagy told DW, adding that an analysis of the North's most recent missile launches suggest that they were tests of the ballistic trajectories required to reach US military facilities in Japan. Tokyo is also worried about potential North Korean refugees taking to sea in an attempt to reach Japan, as well as Chinese troops occupying the northern half of the Korean peninsula-in an attempt-to prop up a puppet regime in Pyongyang. Tillerson's warning was echoed on Sunday by Devin Nunes, a Republican politician from California, who insisted that the US should be prepared to carry out a pre-emptive strike against North Korea because Pyongyang was close to being able to deliver a nuclear warhead to the continental US. While President Donald Trump has not commented specifically on Tillerson's mission to northeast Asia, he used Twitter to exclaim, ""North Korea is behaving very badly. They have been 'playing' the United States for years. China has done little to help!"" Yet, despite their claims, Nagy does not believe the new US administration will deviate too far from the policies of the previous administration under President Barack Obama. North Korea has tested a new high-thrust rocket engine, according to state media. The test comes as US Secretary of State Rex Tillerson is in China to discuss US policy toward Pyongyang. (19.03.2017) In China, US Secretary of State Rex Tillerson has pledged to work with the Beijing government to rein in nuclear-armed North Korea. China's foreign minister called for ""cool heads."" (18.03.2017) US Secretary of State Rex Tillerson has told Chinese President Xi Jinping that Donald Trump is looking forward to ""enhancing understanding"" with China. North Korea's activities have tested bilateral relations. (19.03.2017) The US Secretary of State's Asia trip offers a glimpse of how meticulous a diplomat the former oilman can be. US allies in the region are likely to press him for greater clarity on Washington's Asia-Pacific strategy. (15.03.2017) Casual charges ""Trump has brought mercuriality into politics and he will casually say that his administration will do something, such as a pre-emptive strike against North Korea, casually and without reflecting on the challenges that are involved,"" Nagy said. ""And we have to separate his administration from the military and diplomatic establishment in the US, who would without question prefer to avoid any sort of armed clash."" Daniel Pinkston, a professor of international relations at the Seoul campus of Troy University, says the tough-talking may be designed for a domestic US audience and could merely be an effort to differentiate Trump from his predecessor. ""But I don't see how things could change,"" he said. ""It is hard to tell whether this is real or bluster and just slogans, but what can the US realistically do differently? ""To my mind, the biggest question that all this raises is over the credibility of the US and its global reputation going forward,"" he said. And while the US may have an overwhelmingly powerful military machine, Pinkston believes it would be virtually impossible for Trump to order an unprovoked attack on a sovereign nation without the support of its allies - both regionally as well as globally. Unacceptable costs ""I do not see how, under current conditions, the US could violate the Korean War armistice, defy the United Nations Charter and its security treaties and alliances in East Asia,"" Pinkston says. ""And how could they conduct military operations without the assistance of South Korea and Japan, which would be very unlikely to support that sort of unilateral action."" The only scenario that might play out, Pinkston suggests, would be an ""accident or miscalculation"" by either side that quickly escalates out of control. ""I believe that the cost of using force would far outweigh any perceived benefits,"" he said, adding that the war in Iraq ""would look like child's play in comparison with what would go on"" on the Korean peninsula if a full-scale conflict did break out.", -3260,2017/3/20,http://www.dw.com/en/what-lithuanians-read-and-what-they-want-you-to-read-about-them/a-37947466?maca=en-rss-en-all-1573-rdf,What Lithuanians read - and what they want you to read about them,"Lithuania doesn't have dark crime novels like Scandinavia or Nobel Prize-winners like the Belarusians. But it's a country full of bookworms and a diverse history that's reflected in its books, writes DW's Inga Janiulyt?.","It's only fitting that Lithuania should be featured at this year's Leipzig Book Fair (March 23-26), because books have always been sacred in Lithuania. We love them so much that we even smuggled them. Clandestine transport became a necessity during the 19th century when the ruling Russian Empire banned books printed in the Latin alphabet and tried to replace it with Cyrillic. Despite the risk of exile or even execution, book smugglers created extensive networks and illegally transported volumes from as far away as the United States until the ban was lifted in 1904. Nowadays, we no longer have to smuggle books, but literature still manages to draw thousands of Lithuanians at a time - like at the annual Vilnius Book Fair held in late February. Readers come to get the newest and best books at a reduced price (it's no secret that we like discounts as well), attend events and discussions, and meet the big-name authors in person. One of them is the tireless 85-year-old journalist Algimantas Čekuolis, who writes a new book for every fair. Reading is trendy In my experience, Lithuanians know that books are not only a great source of pleasure, but can also teach us to express ourselves.- After all, we need strong language skills to write a likeable Facebook post, right? Jokes aside, reading remains a popular activity in Lithuania - whether in spite or because of social media. A large number of the books published in Lithuania are fiction, but also non-fiction works focusing on specialized fields like psychology, neurolinguistic programming and body language. Cookbooks are popular as well. However, children's books enjoy the biggest average print run in Lithuania: a whopping 2,200 copies per title compared to the overall average print run of just 1,300 copies per title, according to the Lithuanian Publishers Association. The trend is publishing fewer copies of more titles The latter number has shrunk drastically in recent years, not because fewer books are being sold, but because fewer copies are being printed of more titles. According to a recently published report from the Lithuanian Publishers Association, 4.3 million copies of 3,400 book titles were published in the Baltic country in 2015. The proportion of original Lithuanian books to translations from foreign languages is 50/50. The majority of translations come from English-speaking countries, particularly the United States, leaving France and Germany far behind. Former US President Barack Obama's favorite book in 2015, ""Fate and Furies"" by American writer Lauren Groff, is selling very well at the moment - though exact sales statistics are unreliable since the country's largest bookstore chain also belongs to the biggest publishing house. Other foreign bestsellers like ""Harry Potter"" and ""Fifty Shades of Grey"" are also very popular and are swiftly translated into Lithuanian. Lithuanian publishers are under pressure to deliver the translation as quickly as possible because so many people speak English well enough to read the original version. Since downloading English e-books is quick and imported copies of original English titles are also fairly easy to find, more and more people - especially among the younger generation - aren't waiting for the Lithuanian translation.- What Lithuanians like to read ""Harry Potter"" aside, half of the books published in Lithuania are written in Lithuanian. So what are they about? Among the bestsellers is a four-part series of historical fiction novels called ""Silva Rerum,"" which means ""forest of things"" in Latin. They tell the story of an aristocratic family that lived in the capital Vilnius and the northern Lithuanian region of Žemaitija during the 17th and 18th centuries. The author, Kristina Sabaliauskait?, grew up in Vilnius, lives in London, and is an art historian. In her meticulously researched books, she reveals the diversity of historical Lithuania, and Vilnius in particular. Why is her series so successful? It might have something to do with Lithuanians wanting something more modern and even extravagant. The ""Silva Rerum"" saga, which wrapped up last year, focuses on urban rather than rural lifestyles, plays with the mythology of Vilnius, and employs unusually long, vivid sentences. Before World War II, Vilnius was even more culturally diverse than it is now Several years ago, the steampunk novel ""Hour of the Wolf"" also made waves. The book depicted a decidedly alternative version of early 20th-century Vilnius. It immediately became a bestseller and was followed up with one sequel. However, the author of the book, journalist Andrius Tapinas, seems less interested in writing now - he is busy presenting his own videos on YouTube. A slew of non-fiction books about Vilnius have also hit the market recently. Last year, one of the biggest hits was ""100 Historical Relics of Vilnius."" The author, Darius Pocevičius, conducted extensive research into old objects in the city, like buildings, inscriptions, and the origins of street names. He says that the book was born of his love for the city, which was aroused when he realized ""how many holes and white spots there were in Vilnius' history."" These ""holes and white spots"" refer to traces of Polish, Jewish, Russian, German and other cultures that faded away after World War II, when Lithuanians started to settle in the city. This year, the torrent of the books about Vilnius continues to flow. New titles about the city's Christian roots, famous love stories in Vilnius, and the history of the well-known Vilnius market were well received at the Vilnius Book Fair. We want you to know more about us In ""Vilnius. City of Strangers,"" Laimonas Briedis, who holds a PhD in human geography, takes a look at Vilnius from various outsiders' perspective. He includes the encounters of French military leader Napoleon Bonaparte, Russian writer Fyodor Dostoyevsky, French author Stendhal, German writer Alfred D?blin and other lesser known but significant cultural figures that passed through, visited or lived in the city. Lithuanian President Dalia Grybauskaitë is pictured at the Vilnius Book Fair The author says the narratives about Vilnius - which marks Europe's eastern threshold - get to the heart of European identity, because the city was a melting pot of nationalities, religions and identities, from pagan Lithuanians, Catholic Poles and Orthodox or Jewish Russians, to Protestant Germans and Muslim Tartars. It's an important book for Lithuanians to understand the roots of their capital city and their country's image in other parts of the world. But it's also aimed at a much broader audience: Laimonas Briedis, who grew up in Vilnius and now lives in Vancouver, Canada, wrote the book in English to make it accessible around the world. Not only do celebrity Lithuanian writers like Sabaliauskait? or Briedis live and work abroad, many non-famous Lithuanians have emigrated as well. We joke that you can meet a Lithuanian in every corner of the world. Yet we often find out that people abroad don't know where Lithuania is, or confuse Vilnius with Riga, the capital of Latvia. It's okay - we know it's difficult to remember all the names, but we are happy to meet people who do know something about our country. That's why we get excited to see books by Lithuanians written in or translated into other languages; it increases the chance that you'll get to know more about us. And that's also why we are determined to make a good impression as the guest country at the Leipzig Book Fair, and next year at the London Book Fair, where Lithuania will be featured together with Estonia and Latvia as the Market Focus. -", -3261,2017/3/20,http://www.dw.com/en/norway-named-the-world-s-happiest-country-in-2017/a-38020692?maca=en-rss-en-all-1573-rdf,Norway named the world's happiest country in 2017,"Norway has claimed the top spot as the happiest country on Earth, unseating Scandinavian neighbor Denmark, the World Happiness Report found. The report also noted that Germans are happier but Americans are feeling blue.","A new report released Monday has given Norwegians something to celebrate - if they weren't smiling already. The Scandinavian country vaulted three spots to claim the title of world's happiest country according to the latest world Happiness Report released on Monday. Norway ousted Denmark, which landed in this year's second spot, followed by Iceland and Switzerland. The top four countries scored high on factors that the report says are key to happiness including: ""caring, freedom, generosity, honesty, health, income and good governance,"" the report said. ""What works in the Nordic countries is a sense of community and understanding of-the common good,"" Meik Wiking, chief executive officer of the Happiness Research Institute in Copenhagen told the Associated Press. Wiking was not part of Monday's global scientific study. The report's lead author, John Helliwell, noted that they found it takes more than money to make people feel happy. ""It's the human things that matter. If the riches make it harder to have frequent and trustworthy relationship between people, is it worth it?"" said Helliwell, who is also an economist at the University of British Columbia in Canada. ""The material can stand in the way of the human."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1HX0u Poverty, conflict-hit countries at bottom Although a sense of community can help people, some amount of money and security are necessary to feel happy. Most of the countries at the bottom of the list are in desperate poverty. Central African Republic fell to last on the happiness list, joined by Burundi, Tanzania, Syria and Rwanda. Yemen, a country hit hard by civil war and with millions risking starvation, was also ranked in the bottom ten. Red, white and feeling blue Germany stayed in the same spot as last year - coming in 16th on the list under Ireland but above Belgium. The latest report shows, however, that people in Germany are steadily rating themselves as happier compared to previous years. The United States, on the other hand, was 14th on the list ranking, falling down one spot from last year. The report also found that America's happiness score dropped 5 percent over the past decade as people are rating themselves as well happy. Nicaragua and Latvia's happiness scores increased the most. The report, which was released to coincide with World Happiness Day, ranks 155 countries. The list has been used by the United Nations since 2012 when Bhutan secured support for a proposal to recognize happiness as a guiding principle for public policies. rs/rc (AP, dpa) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2UocS", -3262,2017/3/20,http://www.dw.com/en/vodafone-idea-to-form-india-s-largest-telecoms-firm/a-38021647?maca=en-rss-en-all-1573-rdf,"Vodafone, Idea to form India's largest telecoms firm","British mobile phone giant Vodafone has announced it will merge its Indian unit with Idea Cellular to create the Asian nation's largest telecoms operator, demoting current market leader Bharti Airtel to second place.","The UK's Vodafone said Monday it would merge its Indian subsidiary with rival Idea Cellular. ""The combined company would become the leading communications provider in India, with almost 400 million customers, 35 percent client market share, and 41 percent revenue market share,"" the companies said in a joint statement. The tie-up will be a merger of India's second- and third-largest telecoms networks. Current leader Bharti Airtel has 269 million subscribers. Pushing digitalization The joint venture was said to have a combined value of $23.2 billion (21.57 billion euros), with the merger expected to be finalized within two years. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2XgaU ""This landmark combination will enable the Aditya Birla Group [Idea's parent company] to create a high-quality digital infrastructure that will transition the Indian population toward a digital lifestyle and will make the government's Digital India vision a reality,"" Birla said in a press release. Digital India aims to universalize mobile and internet access in the country. Shares in Idea initially soared on Monday, but tanked later in the day by almost 7 percent as reports suggested that investors were worried the merger deal may have undervalued the Indian mobile telecoms provider. hg/nz (dpa, AFP) -", -3263,2017/3/20,http://www.dw.com/en/germany-s-angelique-kerber-back-to-no-1/a-38020134?maca=en-rss-en-all-1573-rdf,Germany's Angelique Kerber back to No. 1,German tennis star Angelique Kerber has returned to the top of the women's singles rankings. This comes despite her early exit at the tournament at Indian Wells in California.,"Angelique Kerber is back on top of the WTA women's singles rankings, which were published early on Monday, just hours after the conclusion of the Indian Wells tournament. The 29-year-old German has unseated 35-year-old Serena Williams of the United States, who was forced to pull out of Indian Wells due to injury. Kerber's return to the top of the rankings comes as no surprise, as it was clear that this would happen from the moment that Williams withdrew - assuming that Kerber competed in a single match at Indian Wells. Kerber, though, didn't go far in the California tournament, having been knocked out by the eventual winner, Russia's Elena Vesnina, 3-6, 3-6-in the round of 16.- Williams has dropped to second in the rankings, followed by Karolina Pliskova of the Czech Republic in third. The American had unseated Kerber from the No. 1 ranking back in January after winning the Australian Open, while the defending champion was knocked out in the fourth round. Big jump for Federer Britain's Andy Murray and Serbia's Novak Djokovic remain in the top two places in the ATP men's rankings. By winning the title at Indian Wells, Roger Federer jumped from 10th to sixth.-His fellow Swiss, Stan Wawrinka, whom he defeated in the final, remains in third play. The top-ranked German on the men's side is 19-year-old Alexander Zverev, who is in 20th.", -3264,2017/3/20,http://www.dw.com/en/will-net-neutrality-survive-trump/a-38019542?maca=en-rss-en-all-1573-rdf,Will net neutrality survive Trump?,"The Trump administration seems intent on rolling back rules preventing companies that run internet data networks from playing favorites by selling some clients faster data transmission, while throttling others' data.","Some tech companies are gearing up for a fight over Obama-era rules that prohibit broadband providers from treating some web services - ahem, their own - better than rival services. These rules made the Federal Communications Commission a tough overseer of telecom. But Ajit Pai, the new FCC chairman appointed by President Donald Trump, is a fierce critic of these rules, which enforce what is known as 'net neutrality.'- Pai, the son of Indian immigrants who grew up in Kansas, said in December that the commission should take a ""weed whacker"" to what he characterized as unneeded rules, and was harshly critical of many FCC regulations imposed during the Obama administration. The current rules bar broadband providers from blocking or slowing down disfavored websites, and prohibit them from charging internet companies like Netflix or Hulu for faster access to customers, a practice known as 'paid prioritization.' The rules also confer broad powers on the FCC to investigate companies' practices. According to the FCC website, ""The FCC's Open Internet rules protect and maintain open, uninhibited access to legal online content without broadband Internet access providers being allowed to block, impair, or establish fast/slow lanes to lawful content."" It's widely expected that Congress or the FCC will seek to undo or weaken these rules, though no formal plan is on the table yet. Vimeo, a New York-based video sharing site that is part of billionaire media mogul Barry Diller's IAC/InterActiveCorp, is one of the most vocal proponents of net neutrality. Vimeo's general counsel, Michael Cheah, spoke with The Associated Press recently about what the company sees coming. Questions and answers have been edited for clarity and length. Trump, the Twittering digital populist, seems intent on making Internet access a non-level pay-to-play playing field, giving vast power over what consumers see to the companies that own physical broadband infrastructure AP: Why are you defending rules before anyone has made a move against them? Michael Cheah: We wanted to show our support. If and when it does become a point under challenge, we will help organize. What response do you expect from the tech community? When people have something to lose, you get more people on board. You have a greater incentive for people to dig in and fight this. From private conversations I've had, there are companies big and small that do care about this. They are waiting to act. Net neutrality got a lot of public support in 2014. Do you expect similar support when immigration, health care and other issues are already making headlines? Is this a top-tier issue? Absolutely. It's how you get information. This time around it'll be just as important, if not-more. What do you think of legislation that enshrines net neutrality's principles but takes away the broader policing powers the rules gave the FCC? Republican lawmakers proposed that back in 2015. You leave open too many ways for the carriers to do other things. There's too many levers they have the ability to pull. Zero rating is a good example of that. Zero rating - that's when, for example, AT&T exempts its own video service, DirecTV Now, from phone data caps, but charges other video companies for the same favor. How does that hurt you? A: We have concerns about (broadband providers) zero-rating their affiliated data. We also have problems with people who see zero-rating as a profit center, try to charge for it. There's not much difference between that and paid prioritization. nz/hg (AP, FCC website) -", -3265,2017/3/20,http://www.aljazeera.com/news/2017/03/britain-theresa-trigger-brexit-week-170320114515225.html,Britain's Theresa May to trigger Brexit next week,Theresa May to begin two years of formal negotiations on Britain leaving the European Union on March 29.,"British Prime Minister Theresa May will write to the European Union on March 29 to formally announce the UK's withdrawal from the bloc, Theresa May's spokesman confirmed on Monday. That letter will start the clock ticking on a two-year countdown to Brexit and allow negotiations to start between London and Brussels in the coming weeks. More soon. Source:-News agencies", -3266,2017/3/20,http://www.aljazeera.com/news/2017/03/syria-air-raids-east-damascus-rebel-assault-170320085934178.html,Syria: Air raids on east Damascus after rebel assault,Fierce bombing follows Sunday's surprise rebel attack on government positions in the east of Syria's capital. 'Opposition remains powerful',"Syrian government jets bombarded opposition-held neighbourhoods of Damascus on Monday a day after opposition forces launched a surprise assault. Rebel groups allied with former al-Qaeda affiliate Jabhat Fateh al-Sham attacked government positions in the east of the capital early on Sunday morning in a complex and co-ordinated operation. But forces loyal to President Bashar al-Assad drove them back by nightfall, a war monitor said, and began a fierce bombing campaign on Monday morning. ""There have been intense air strikes since dawn on opposition-held positions in Jobar from which the offensive was launched,"" Rami Abdel Rahman, head of the Britain-based Syrian Observatory for Human Rights, said. ""The government and allied forces have retaken the initiative and are striking the groups that launched yesterday's assault,"" he added. Abdel Rahman said it was unclear whether government forces or their Russian allies were carrying out Monday's raids on Jobar. READ MORE: Syria's Civil War explained The fighting killed at least 26 government soldiers or allied fighters and 21 rebels, Abdel Rahman said, but he did not have an immediate toll for Monday morning's raids. Al Jazeera's Mohamed Al Jazaeri, reporting from near Damascus, said at least 15 civilians had been killed after government forces shelled-residential neighborhoods in Eastern Ghouta. Al Jazeera's Imtiaz Tyab, reporting from Beirut, said people in the old city reported walls reverberating with the ferocity of the government's bombardment, and that rebel activists had described the raids as ""relentless"". ""We understand that since daybreak there has been around 30 airstrikes in [Jobar],"" Tyab said, adding that there were reports of heavy rebel losses, although credible figures were not yet available. On Sunday, opposition fighters seized several buildings in Jobar before advancing into the neighbouring Abbasiyn-Square area - the first time in two years that the opposition advanced so close to the capital's centre. Fighting raged close to the old city in Damascus and the advance linked Jober to Qaboun and other areas to the north which had been under government siege. Control of Jobar - which has been a battleground for more than two years - is divided between rebels and allied fighters-on one side, and government forces on the other.- OPINION: Implications for a Syrian transition under Assad Tahrir al-Sham - an umbrella group of rebels formed by Jabhat Fateh al-Sham last month - and the independent Failaq al-Rahman group also participated in the attack. Tyab said the timing of the rebel offensive was signficant, marking six years since the start of the Syrian uprising. ""I think it was really was in the calculus of the rebels that they want to make it known that they are still going to resist the regime, that they are still going to fight, despite the very heavy losses that they have experienced,"" he said. Tyab reported that rebel fighters used car bombs, suicide bombs, and tunnels in their assault. ""We understand that some of these [rebel] fighters have been able to launch mortar shells inside the city itself."" Syrian state TV on Monday quoted Russia's ambassador to Damascus as saying one of the embassy's buildings was hit with a shell during the clashes. Joshua Landis, an expert on Syria at the University of Oklahoma, told Al Jazeera on Monday that the rebel offensive had taken the government by surprise and that a significant response was inevitable. ""The regime is going to realise that it cannot allow these two areas to linger there because they are beachheads for this Tahrir al-Sham group to make inroads into the Damascus area,"" he said, adding the government would likely withdraw some forces from areas such as Homs and Hama to refocus on Damascus. ""It means that the fight is still on, there are many fronts to this war, and the opposition remains powerful."" Source:-Al Jazeera and news agencies", -3267,2017/3/20,http://www.aljazeera.com/indepth/opinion/2017/03/india-fringe-mainstream-170320084942712.html,,,"The decision of Indian Prime Minister Narendra Modi and his Hindu nationalistic party, the Bharatiya Janata Party (BJP) to appoint hardline Hindu priest, Yogi Adityanath, as chief minister of Uttar Pradesh, India's most populous state where the party secured a jaw-dropping victory on March 11 stunned admirers and detractors alike. While the response of his critics is more or less understandable, the reaction of supporters to the Yogi's appointment, especially middle-of-the-road liberals drawn to the party for the hope that Modi generated, is most striking. Their dismay over the choice of chief minister stems from Adityanath being no benign Yogi. Instead, he is the undisputed mascot of rabid, vitriolic and abusive supporters of Hindu sectarianism. For the major part of his two-decade-long political career, the new chief minister has been BJP's enfant terrible and often remained unrestrained, even when party leaders wished to sheath their swords. Adityanath has violated party discipline in the past and established a separate vigilante group, Hindu Yuva Vahini. He put up candidates against the party in state elections in the past and in the recent elections. Despite this, his appointment provides perhaps the best indication of the BJP's future political strategy. Within hours of the Yogi being named chief minister, news websites strung together collections of his most divisive statements. Targets of his hatred are diverse, from Nobel Peace Prize recipient and Apostle of Peace, Mother Teresa, to the King of Bollywood, Shahrukh Khan. In October 2014, the Yogi spearheaded a campaign against Muslims claiming they had launched ""love jihad"" against Hindus by training Muslim youth to seduce Hindu girls. He asserted on his website that the latest holy war was a ""system where a girl surrounded with fragrance is enticed into a stinking world; where the girl leaves her civilised parents for parents who might have been siblings in the past; where purity is replaced with ugliness; where relationships have no meaning; where a woman is supposed to give birth every nine months; where the girl is not free to practise her religion; and if the girl realises her mistakes and wants to be freed, she is sold off."" Modi's liberal backers are disappointed because, in their assessment, the prime minister has wasted an opportunity to put the state's economic development on overdrive. The fear is that Adityanath's appointment sends a signal to BJP cadre that the state government will prioritise Hindutva-centric promises in its election manifesto. With Adityanath becoming chief minister of India's most politically influential state, the fringe has become more mainstream than ever before in Modi's India. - These include imposing legal ban on the practice of oral divorce among Muslims, forming ""anti-Romeo"" police squads to prevent Muslim youth from wooing Hindu girls, shutting down mechanised abattoirs and illegal slaughterhouses, and, of course, speeding up processes to remove hurdles to build a temple deifying Lord Rama in Ayodhya, epicentre of independent India's longest lasting political dispute and so on. These measures will add to the disquiet of already anxious Indian Muslims who comprise more that 14.2 percent of the population according to census figures of 2011. In the biography of Modi,-which I wrote before he became prime minister, a chapter was titled - ""Janus - The March Begins"", denoting his two-faced personality. During his tenure as Gujarat chief minister, and even thereafter, he has been at ease proclaiming India's development was his primary objective while promoting politics that sharpened social prejudice. In comments after the Yogi was inaugurated in office, Modi referred to Uttar Pradesh as Uttam Pradesh, the Hindi for ""finest state"". It has been Modi's tactical brilliance that he has kept both detractors and followers confused over which face to believe in: the ""emperor of Hindu hearts"" or the ""development man""? In 2014, his first statement after entering parliament was to term it ""temple of democracy"", a declaration that surprised most because he entered office with the image of a hardline Hindu nationalist and potentially authoritarian leader. Thereafter, he invited leaders from the South Asian Association for Regional Cooperation (SAARC) nations to his inauguration ceremony. OPINION: BJP's Uttar Pradesh win - A turning point for Modi? Yet, within weeks in important by-elections in Uttar Pradesh, he nominated Adityanath as the party campaign's spearhead. For several months, Modi looked the other way as cabinet colleagues used abusive language against adversaries, allied organisations organised controversial ""reconversion"" programme to bring Muslims ""back into the Hindu fold"" and when churches were desecrated. Former US President Barack Obama, during his visit to India in January 2015, reminded the need to uphold religious freedom and constitutional rights. Modi followed on this by holding a meeting with Muslim and Christian religious leaders. After the BJP's spectacular victory in Uttar Pradesh and other states, Modi's victory speech was markedly humble and he promised to be more socially inclusive and accommodative towards critics. ""Power is acquired by majority, governments are run by consensus,"" he had declared to widespread applause. A few commentators, including me, appreciated this and wondered if the weight of the mandate had sobered Modi. Adityanath's-appointment belies such optimism. Because of his dual-trait, it would be early to fear the demise of development-based governance in Uttar Pradesh. Critics, however, will conclude that a polarised India, where Muslims lead quasi-ghettoised lives, constantly under social suspicion and state watch is the ""New India"" that Modi promised. Modi can yet again turn his government's wheels towards developmental programmes, using the Yogi as a shield to ward off fringe forces. The trouble, however, is that with Adityanath becoming chief minister of India's most politically influential state, the fringe has become more mainstream than ever before in Modi's India. Nilanjan Mukhopadhyay is a Delhi-based writer and journalist with a special interest in Hindu nationalistic politics. He is the author of Narendra Modi: The Man, The Times. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3268,2017/3/20,http://www.aljazeera.com/indepth/inpictures/2017/03/green-land-emerald-mining-colombia-170306110821882.html,,,"Muzo, Colombia - The struggle over land is Colombia's oldest conflict. For decades the mines of Muzo - widely known as the ""emerald capital of the world"" - have produced great fortunes for their owners. In the so-called ""Green Wars"" during the 1980s, territorial disputes escalated into full-blown conflict as the country's leading mining families fought over territory. In those days, the ""barequeros"" - emerald seekers who dig through debris --gathered by the thousands around the Muzo Valley, hoping that emeralds would arise from the dark soil to rescue them from extreme poverty. While the Green Wars are over, there is still a low-level-conflict-of assassinations and murders as rival groups vie for access to the gemstones. Although Colombian environmental laws now prohibit the dumping of leftover grit and rocks from mining excavation, some surplus debris continues to be dumped on land and rivers around the mines. A-few dozen emerald seekers scour this debris, often using their bare hands. Others mine the area informally. The-barequeros tend to live a tough existence in slums on the hillsides of surrounding mountains, without running water or services. When a barequero finds an emerald, they can either try to pay a carver to re-work and increase the value of the gemstone or, if the emerald already has a notable value, they will sell it to a merchant who trades the gems directly on the streets of the capital Bogota. In this system of both legal and informal activities, the wealth extracted from Colombian mines is very difficult to calculate. This also applies to the value of the emerald itself; its price is based on a series of characteristics - such as colour, size, carve,-and transparency - and varies depending on whose hands hold them. It is easier to sell the emeralds on the market if they are already carved, but some buyers prefer the raw, uncut emeralds to oversee this delicate process themselves, before selling it on international markets. Around-95 percent of Colombian emeralds are destined for export. Colombia is a country with a largely poor population living on an incredibly rich soil.-The right to exploit its resources is an ongoing struggle in which the weakest have to fight for survival.", -3269,2017/3/20,http://www.aljazeera.com/indepth/opinion/2017/03/politics-water-insecurity-170320080645784.html,,,"This March 22, World Water Day, we focus attention on global issues of water access. The statistics are not comforting. The poorest ninth of us - about 800 million people - do not have reliable access to clean drinking water. This is the starkest form of ""water insecurity"" - the inadequate access of individuals and groups to fresh water. The explosive growth rates and technological advancements of the past several decades notwithstanding, we have been unable to provide a global minority - numbering more than the entire population of Europe - the most basic of physiological requirements. Policy experts often respond to water insecurity by focusing on the issue of physical scarcity, and calling for more water data - particularly measurements and forecasts on water availability - to improve water management. It is true that water managers probably could be more efficient if they had sounder estimates. The concept of water insecurity could, however, catalyse much more than a technocratic and managerial response. We should take the concept as invitation to root water access issues in particular historical, geographical, infrastructural, and political contexts. Water insecurity is an effect, rather than a cause, of sociopolitical domination and infrastructural exclusion. Take the example of gender. Analysts of water insecurity who are too fixated on physical scarcity tend to neglect the many contributions women make to household production, without which the larger workplace-centred economy could not exist. The World Health Organisation-estimates that women shoulder about 65 percent of the burden of fetching water, the most fundamental economic activity for households without water access (PDF). This time and labour could have been devoted to other security-enhancing activities, such as education, farming, or earning a wage. A lack of water data did not cause this unfair distribution of water-provisioning work. Engrained structures of gender subordination distributed unpaid and time-and-labour-intensive jobs on to the backs of women. Without appreciating gender dynamics, ""water insecurity"" remains an overly abstract concept. Another key factor is spatial unevenness. A spatial approach to water insecurity reveals that water-insecure communities often reside in socioecological peripheries - regions without sufficient access to water because of a lack of political power and infrastructural connection. Take, for example, the rivalry between Pakistan and India over the Indus river in northwest South Asia. Pakistan and India signed the famous Indus Waters Treaty (IWT) in 1960 with the mediation of the World Bank (PDF) .-Experts regard the treaty as a model of good transboundary governance. However, central state elites arranged the IWT and they did not necessarily account for the needs of the many river-dependent communities residing within those states. Ethno-regional minorities in both countries have protested for decades that IWT failed to account for their needs. In Pakistan, the downstream province of Sindh feels that the upstream province of Punjab captured the lion's share of IWT benefits and the associated construction programme, the Indus Basin Plan. The people of the disputed Kashmir have the strongest case for political exclusion. Most, if not all, of the Indian and Pakistani engineering and policy elites involved in the negotiations agreed it would be too problematic and messy to give Kashmiris a political voice. The Green Revolution of the 1960s, which relied on ""thirsty"" seeds, fueled increases in landlessness in both countries and transferred power and wealth into the hands of landed elites. These technological and political changes probably have much more to do with rural water insecurity than any physical scarcity of water. This March 20-21, when the Indus Waters Permanent Commission meets in Lahore, the commissioners should remember that water insecurity is less about national per capita water availability and more about the concrete communities in the basin whose water insecurity reflects broader social-spatial exclusions. None of this means water data is not important to decreasing water insecurity. It does, however, mean that a sustainable solution must account for larger structures of domination and exclusion. For Pakistan and India, it means relying less on engineering expertise and more on popular consultation when adjudicating water issues. If the goal is to decrease deprivation and to equalise global life-chances, nothing is more practical than the democratisation of water planning, which means understanding water insecurity as an effect of deeper forms of social insecurity. - Historically, political establishments in both countries have mistrusted the impoverished masses, and have invested authority for water infrastructure planning in technocrats and experts. Governing elites and members of civil society must wean themselves off this centuries-old habit, and listen more carefully to environmental and livelihood movements - often composed of the most marginalised populations. There are organised groups of fisherfolk in the Indus delta, poor irrigating peasants in the Punjabi heartland, and Kashmiris living in the highlands where dozens of new dams are planned, who should be at the centre of any process of negotiating the Indus. In other words, we need to find ways to let politics and culture drive water planning as much as economy and engineering does. On the global scale, more capital needs to be available for the construction of new water infrastructures in the Global South. This does not necessarily mean a rush to build large new dams, but rather a context-specific analysis of what new infrastructures would benefit the most deprived peoples of the world, those who live predominantly in Sub-Saharan Africa and South Asia, but also in pockets of racialised poverty in countries such as the United States. In some locations, new infrastructures may indeed mean new dams, while in others it may mean upgrading sewage pipes or a treatment centre. The point is that material infrastructure is necessary. We should meet the specific requirements of women, people residing in socioecological peripheries and other non-elite water users not as obstacles, but as imaginative challenges to our ideas about infrastructure and equality. OPINION: The tension-ridden hydro-politics of the Nile These recommendations may seem utopian and impractical. I accept the charge of utopianism, which is inherent to building a type of society not yet seen. I reject the accusation of impracticality. If the goal is to decrease deprivation and to equalise global life chances, nothing is more practical than the democratisation of water planning, which means understanding water insecurity as an effect of deeper forms of social insecurity. Majed Akhter is assistant professor of geography at Indiana University Bloomington. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3270,2017/3/20,http://www.aljazeera.com/news/2017/03/pakistan-pm-orders-reopening-afghanistan-border-170320075630618.html,Pakistan PM orders reopening of Afghanistan border,Pakistan has decided the to reopen its crossing with Afghanistan as a 'goodwill gesture'.,"Pakistan's Prime Minister Nawaz Sharif has ordered the immediate reopening of border crossings with Afghanistan, more than a month after they were closed. Pakistan sealed the-Torkham and Chaman crossings-on February 16, after a string of-suicide attacks-killed more than 130 people across the country, blaming the violence on-Tehreek-e-Taliban-Pakistan and other armed groups. The closure left hundreds of thousands of people and lorries carrying food and other goods to Afghanistan stranded at the two major crossings of Torkham and Chammans. ""We have taken this decision on humanitarian grounds,"" a statement from Sharif's office said on Monday. The statement said that, while the government had evidence that ""anti-Pakistan elements"" were present on Afghan soil, keeping the border closed was against the interests of ordinary people. ""We hope that the Afghan government will take all necessary steps to prevent the reasons why we undertook these steps [of closing the border] from recurring,"" it said. Pakistan-had temporarily reopened the border crossings for two days in early March-to allow visitors with valid visas on both sides to return home. Afghanistan has long blamed Pakistan for giving sanctuary to Afghan-Taliban-and Haqqani Network leaders on its soil. Pakistan, though, accuses its northwestern neighbour of allowing Pakistani Taliban elements to operate in Nangarhar and other provinces.- Pakistan's Minister of Defence Khwaja Asif said the border was being used ""as a thoroughfare"" by Pakistani Taliban fighters. But Afghan ambassador to Pakistan, Omar Zakhilwal,-argued that closing it served no purpose ""except to harm ordinary people and traders on both sides"". The Torkham and Chaman crossings are major arteries for $1.5bn in trade and commerce between the two neighbours. The Torkham crossing alone is used by about 15,000 Afghans every day. Source:-Al Jazeera and news agencies", -3271,2017/3/20,http://www.rte.ie/news/brexit/2017/0320/861092-brexit/,Britain to trigger Brexit process on 29 March,,"British Prime Minister Theresa May will trigger European Union withdrawal talks under Article 50 on 29 March, Downing Street has announced. Mrs May's letter officially notifying the European Council of the UK's intention to quit will set in train a two-year negotiation process expected to lead to Britain leaving the EU on 29 March 2019. Britain's ambassador to the EU, Tim Barrow, informed the office of European Council President Donald Tusk this morning of Mrs May's-plans. The announcement means that Mrs May will meet her self-imposed deadline of the end of March to get the withdrawal process under way. The European Commission has said-the EU is fully prepared for Brexit negotiations. ""Everything is ready on this side,"" Margaritis Schinas, the spokesman for European Commission chief Jean-Claude Juncker, told a briefing. ""We are ready to begin negotiations."" The British Prime Minister was cleared to take the step when the European Union (Notification of Withdrawal) Act gained royal assent last week, after a supreme court ruling forced her to seek the approval of both Houses of Parliament. Mrs May will address MPs in a statement to the House of Commons following her regular weekly session of Prime Minister's Questions on 29 March. Mr Tusk said he expects to release an initial response to the Article 50 notification within 48 hours. Within 48 hours of the UK triggering Article 50, I will present the draft #Brexit guidelines to the EU27 Member States. ""?Donald Tusk (@eucopresident) March 20, 2017 He has also previously said that-an extraordinary summit of the remaining 27 EU member states is due to be called within four to six weeks. That summit will draw up a mandate for the European Commission's chief negotiator, Michel Barnier, probably allowing talks to begin in earnest in May. Notification of the historic step will come in the form of a letter from Mrs May to Mr Tusk, though Downing Street did not make clear whether this would be a physical letter handed to the European Council president by a UK representative or might be sent electronically. It will be the first time that the provisions of Article 50, which sets out the process for any EU member state ""to withdraw from the union in accordance with its own constitutional requirements"", have been activated. Notification comes 279 days after the referendum of 23 June last year delivered a 52-48% majority in favour of withdrawal. Mrs May, who is visiting Swansea today, is expected to conduct visits in all four nations of the UK before notification takes place. The PM's official spokesman said: ""Earlier this morning, the UK Permanent Representative to the EU informed the office of Donald Tusk that it is the UK's intention to trigger Article 50 on March 29. ""There will be a letter. She will notify President Tusk in writing. The Prime Minister will give a statement to Parliament as well. ""We have always been clear that we will trigger by the end of March and we have met that timetable."" The spokesman said Britain wanted to start withdrawal negotiations ""promptly"", but accepts that ""it is right that the 27 have a chance to agree their position"" before talks start. New laws needed due to Brexit Meanwhile, Britain's Institute For Government has said as many as 15 new parliamentary bills may be needed due to Brexit. The IFG said such an emphasis on legislation related to legal EU withdrawal means the British government's domestic agenda will take a hit. IFG's research director, Dr Hannah White, told BBC Radio Four's Today programme: ""The estimates we have heard are something between ten and 15 bills required in the next two parliamentary sessions. ""Normally, there are about 20 in a Queen's Speech. So, that's roughly the capacity that there is in government to draft these bills and, in terms of parliamentary time, to pass them. ""So, that takes a big chunk out of the government's capacity to legislate. And its other priorities, its domestic priorities, will take a hit in the next couple of sessions. ""There will have to be some really tight prioritisation in government to work out what else is going to be done aside from the Brexit legislation."" Dr White said the bills, dealing with issues such as immigration procedures, would be on top of the Great Repeal Bill, which will incorporate EU law into British law.", -3272,2017/3/20,http://www.rte.ie/news/politics/2017/0320/861078-fine-gael/,Reilly expects new taoiseach in place by summer,,"Fine Gael Deputy Leader James Reilly has said he expects a new taoiseach to be in place by summer. Speaking on RT?'s Today with Sean O'Rourke, Senator Reilly said, however, that he does not necessarily expect a statement from Taoiseach Enda Kenny at Wednesday's Parliamentary Party meeting. But he-said he expects that in the next two weeks, the Taoiseach will lay out his plans very clearly. Senator Reilly said he ""has no doubt"" that as the Taoiseach said, he will deal conclusively and effectively with the leadership issue. During a visit to the US for St Patrick's Day, Mr Kenny indicated he would not announce any retirement plans until political uncertainty in Northern Ireland is addressed and the EU's negotiating stance on Brexit is agreed. He said those ""immediate priorities"" would take precedence over ""everything else"". Senator Reilly also said he agrees with Fine Gael MEP Brian Hayes that there is no ""major rush"" on the matter and ""everyone accepts that we can do an awful lot of damage by forcing an issue that's going to happen anyway"". Mr Hayes has said he presumes that the party will have a new leader by the first week in May. - He-said he thinks that ""Easter is a good opportunity to kick start a campaign on the basis that the D��il is in recess for two full weeks."" Mr Hayes said he believes the process of electing a new leader will take two to three weeks, which brings the party into ""the first week of May effectively"" and ""I presume we would have a new leader at that point"". He added that-he does not see any difficulty ""if the new leader was given a number of weeks while the Taoiseach continued in his duties as Taoiseach, maybe the new leader would want to speak to Fianna F��il, the independents, have a transition team in place"" adding that he believed there was ""no great rush on this"". Last month, Mr Hayes said Mr Kenny could still be in office when the European Council begins talks to set the terms of the EU negotiations after the UK triggers Article 50. British Prime Minister Theresa May is to write to the European Union on 29 March formally announcing Britain's withdrawal from the bloc, it was announced today. Senator Reilly said he is very pleased that the Taoiseach is going to be afforded the time to make the announcement in his own time and go in his own way. Meanwhile, Minister for Housing-Simon Coveney has said he does not believe the Taoiseach's position on standing down has changed, following Mr Kenny's comments in New York on Friday. He-said he was ""pretty relaxed"" about what Mr Kenny had to say, and did not believe he was trying to postpone his departure. Mr Coveney said he trusted the Taoiseach to put a process in place for his departure, adding he-felt a motion of no confidence in Mr Kenny as Fine Gael leader would be very unlikely and that such a motion would get no support if it was tabled.", -3273,2017/3/20,http://www.rte.ie/news/2017/0320/861061-jobs/,350 jobs announced for Dublin and Cork,,"An online commerce company has announced plans to create 250 jobs over the next three years, with the majority to be based at its global headquarters in Dublin. The announcement was made to coincide with the official opening of eShopWorld's HQ at Airside Business Park in Swords. EShopWorld-makes software that enables retailers selling in more than one country to tailor their website for customers in different markets.- The company was launched in Dublin in 2010 and has grown from a staff of six to 150 today.- It says the jobs are part of a �15m investment it will make in people, software development and R&D over the coming three years as it continues to grow and expand. It will bring total employment at eShopWorld to almost 400 staff by 2019, including 80 jobs added last year. EShopWorld says the positions are full-time, highly-skilled roles, focused on technical development and R&D activity. Commenting on the announcement, eShopWorld CEO Tommy Kelly said: ""We are very pleased to be adding jobs and investment to fulfil demand from leading global brands. ""Premium brands see our technology platform as a key pillar for growth and establishing long term sustainable relationships with brand loyal customers.- ""This is a really important investment for eShopWorld and one that will further our capability to optimise our technology, driving growth through existing and new revenue streams."" Elsewhere, a-linen supply and laundry service company has announced that it is to begin hiring another 100 staff in Cork a year ahead of schedule. Kings Laundry was established 17 years ago in Dublin and has enjoyed double-digit growth every year since then. Last June, the company opened a state-of-the-art 3,700-square metre plant at Little Island in Co Cork which, it says, is a European leader in terms of energy efficiency and environmental policy. Forty people were employed at the Little Island plant initially, with the company promising to increase this to 200 in two years. Today, Kings Laundry employs 105 people in Cork and the company has announced plans to recruit another 100 people at the facility. The Little Island plant, which has the capacity to handle 1.5 million pieces of laundry per week, will also see a further investment of �1m, bringing total investment to �12m. The company has said it will also hire 80 seasonal staff in Cork and Dublin to meet demand from the hospitality sector over the summer months.", -3274,2017/3/20,http://www.rte.ie/news/2017/0320/861074-ian-bailey-sophie-toscan-du-plantier/,High Court to hear Bailey extradition application,,"An application for the endorsement of a European Arrest Warrant issued by the French authorities for the extradition of Ian Bailey will be heard by the High Court tomorrow. The French authorities want Mr Bailey to stand trial in France for the voluntary homicide of Sophie Toscan du Plantier in west Cork in 1996. Mr Bailey has always denied any involvement in her murder. This is the second time the French authorities have tried to extradite Mr Bailey. The Supreme Court rejected a previous attempt in 2012. Under French law, Mr Bailey can be tried in his absence.- Ms Toscan du Plantier was found battered to death on a laneway leading to her holiday home in Schull in west Cork on 23 December 1996. Mr Bailey was arrested twice for questioning in relation to her death in 1997 and 1998, but was released without charge on both occasions. Neither Mr Bailey nor his legal representatives were in court this morning.- Mr Justice Tony Hunt was told that the state had applied for endorsement of the warrant on 7 March but Ms Justice Aileen Donnelly had suggested that given the background of the case, Mr Bailey's side should be put on notice of the application. Barrister Ronan Kennedy told the court they had written to Mr Bailey's solicitor, enclosing a copy of the warrant and inviting them to attend court if they so wished. Mr Kennedy said Mr Bailey's solicitor had replied making a number of observations about the process and raising a number of queries.- He said the State wrote back saying they would be free to make any submissions they wanted to at the hearing of the application.- Mr Kennedy said he was ""somewhat surprised"" there was no one in attendance from Mr Bailey's side. Mr Justice Hunt said he would hear further submissions on the endorsement of the extradition warrant tomorrow morning.", -3275,2017/3/20,http://www.rte.ie/news/health/2017/0320/861054-scoliosis/,Ombudsman criticises delays in scoliosis surgery,,"A report from the Ombusdman for Children has found that children have been experiencing significant waiting times for scoliosis surgery, up to 18 months in some cases. It finds that ongoing delays and the failure by Government to deal with access to scoliosis treatment is impacting on children's rights. There were 236 patients aged 18 years or under waiting for treatment at the end of December last. The report also says that crisis management has not resolved the issue and there have been significant delays in publishing the promised Health Service Executive action plan on scoliosis. The HSE says that a Paediatric Action Plan for Scoliosis Treatment has been submitted to the Department of Health for approval. The report says that no child with scoliosis should have to wait over four months from when the need for surgery is clinically determined. Ombudsman for Children Niall Muldoon has said that child specific waiting lists should be published for all healthcare services in Ireland. He said that targets for maximum waiting times for outpatient appointments should be set. Scoliosis is a condition causing a side-to-side curvature of the spine. It can occur due to congenital, developmental or degenerative problems, but most cases of scoliosis do not have a known cause. The testimonies of three young people are included in the report, which the Ombudsman says makes for powerful and chilling reading. ""The whole waiting process made me very sad all the time, I didn't like leaving the house or looking in the mirror. I felt trapped in my own head, nobody else I knew looked like me."" - Jane ""They had to move my organs to one side so that they could work on one part of my spine. They also had to cut away some of my ribs."" - Delilah ""The lowest point of all for me was in August 2014. I was going into fifth year and I didn't know if I was going to be able to do my Leaving Cert."" - Harriet Today's report says that due to their age and stage of development, young people with scoliosis are suffering severe physical and psychological effects as a result of delays in getting treatment. In Ireland, the majority of children with scoliosis who require orthopaedic spinal surgeries are treated in Our Ladies Children's Hospital Crumlin. Smaller numbers of surgeries also occur, or have occurred, at the National Children's Hospital in Tallaght, University Hospital Galway, University Hospital Cork, Cappagh National Orthopaedic Hospital and the Children's University Hospital Temple Street. A number of other hospitals outside of the Irish public health system have undertaken surgeries as part of a HSE initiative to manage the scoliosis waiting list. The HSE says that in the past two years Our Lady's Children's Hospital, Crumlin was allocated over �1 million in additional resources for scoliosis and orthopaedic service developments.-", -3276,2017/3/20,http://www.rte.ie/news/2017/0320/861097-news-in-brief/,News in Brief,,"Man faces trial over 1987 murder A man is due to go on trial this week for the murder of a woman in Kilkenny almost 30 years ago. John Joseph Malone of Newpark in Kilkenny, has pleaded not guilty to the murder of 79-year-old widow Ann Nancy Smyth at her home in Wolfe Tone Street on 11 September 1987. The trial is due to begin on Wednesday. Govt urged to take action against Egypt over Halawa The sister of Ibrahim Halawa has called on the Government to take legal action against Egypt over its decision not to release him-until his trial is over. Mr Halawa, who is from Firhouse in Dublin, was arrested at a protest in Cairo in 2013 and his trial has been postponed 18 times. He is due in court again this week. Speaking on RT?'s Today with Sean O'Rourke, Somaia Halawa said ""Ireland should take a proactive approach and take legal actions against Egypt"". Witness appeal after assault on Garda An investigation is under way after a Garda Sergeant was injured during an incident in Dundalk on 17 March. The officer was injured when he attempted to arrest a man involved in a row in Park Street at around 3.15am on Friday. He was treated in hospital. Two men were arrested for alleged public order offences. 'Piggy Bank' turtle's condition worsens after surgery A 25-year-old sea turtle in Thailand slipped into a coma after an operation tor emove 915 coins from her stomach earlier this month. - - - - - - The green sea turtle named Omsin, ""piggy bank"" in Thai, had been finding it hard to swim normally after swallowing 5kg of coins thrown into her pool for good luck. - - - - - - Omsin underwent a seven-hour-long operation earlier this month, but concerns rose among Thais after she was rushed to an intensive care unit last night. - - - - - - ""She is in a coma and breathes very slowly,"" one of the veterinarians taking care of Omsin said.", -3277,2017/3/20,http://www.rte.ie/news/2017/0320/861059-estlin-wall/,Three-year-old dies days after Clare car crash,,A three-year-old girl who was seriously injured in a road traffic accident in Co Clare last Wednesday morning died in hospital over the weekend. Estlin Wall was a passenger in a car driven by her father Vincent when it collided with another car on the N85 Ennistymon to Ennis road near the village of Inagh at around 9am last Wednesday. She was airlifted to hospital in Limerick and later transferred to hospital in Dublin where she died on Saturday night. Her father has also been transferred to hospital in Dublin to be treated for serious head injuries he sustained in the accident., -3278,2017/3/20,http://abcnews.go.com/Politics/gop-health-care-bill-failed-vote/story?id=46358850,How the GOP health care bill failed without a vote,,"In the first big blow to the Trump administration's legislative agenda, the Republicans""?plan to repeal and replace Obamacare failed to garner enough support to bring it to a vote on the floor of the House Friday. At President Donald Trump's request, House Speaker Paul Ryan pulled the American Health Care Act (AHCA) off the floor moments before a scheduled vote today. Divisions within the Republican Party ultimately led to the bill being yanked. Members of the conservative House Freedom Caucus -- along with a few moderate Republican lawmakers -- planned on opposing the bill if it went to a vote. Here is a timeline of the AHCA's journey through the House: When House Republicans unveiled the American Health Care Act on March 6, they were met with criticism from some conservative groups. The day after the bill was introduced, House Freedom Caucus member Rep. Jim Jordan, R-Ohio, slammed the bill as ""Obamacare in a different form.""?Speaker Ryan, House Majority Leader Kevin McCarthy, and Health and Human Services Secretary Tom Price worked to defend the bill, with Speaker Ryan even holding a PowerPoint presentation to explain the AHCA. On Monday, March 13, the Congressional Budget Committee released its report estimating that about 14 million more people will be uninsured next year if the original AHCA were enacted. In the next nine years or so, the number of uninsured would jump to 24 million more, according to the CBO. Following the release of the CBO report, several moderate House Republicans announced opposition to the bill because of the increase in Americans without health care coverage. Despite the CBO report, the bill seemed to be on course as it cleared two hurdles, moving forward with approval from the Ways and Means Committee and the House Budget Committee. March 20 A number of tweaks were made to the original legislation in an effort to muster votes. The amendments included changes to Medicaid funding, an optional work requirement for Medicaid and instructions for the Senate to construct a $75 billion fund that would provide additional tax credits to help people buy insurance. March 21 President Trump traveled to Capitol Hill to make a personal pitch to House Republicans behind closed doors. For roughly 40 minutes, the president spoke to House Republicans, attempting to convince them they need to pass this health care bill or risk losing their seats in the upcoming midterm elections. President Trump also specifically pointed out Rep. Mark Meadows, the chair of the House Freedom Caucus opposed to the bill. ""I'm going to come after you,""?Trump warned Meadows with a smile. Meadows later said that he thought President Trump's comment was made in jest. March 22 Rep. Charlie Dent, R-Pennsylvania, leader of the Tuesday Group of center-right Republicans, announced in a statement he'll oppose the bill. Several moderate House Republicans later gathered in Speaker Ryan's office. The Freedom Caucus met twice during the day, in the afternoon and evening, to discuss their position on the plan. Meadows stepped out from the second meeting to take a call from President Trump, telling reporters that the caucus' goal is to hold the president to his campaign promises. ""We're still negotiating, we're all trying to get to 'yes,'"" said Meadows earlier in the day. March 23 House leaders had every intention of voting Thursday on the GOP health care bill, the seventh anniversary of when President Barack Obama passed the Affordable Care Act. President Trump met with the House Freedom Caucus at the White House with no success. Caucus members emerged from the meeting saying they still haven""t reached a point where they could support the AHCA. The president later met with the Tuesday Group at the White House, but at around 3:30 p.m., House GOP leaders postponed the vote on the bill to Friday. The CBO released a revised report noting no major changes to its projections of falling insurance coverage under the plan. It further noted a $150 billion decrease in the amount that the AHCA would reduce the deficit. The House Republican Caucus gathered for one more meeting that day, and President Trump issued an ultimatum: Vote Friday or he'll move on from health care reform. According to sources in the room, White House budget director Mick Mulvaney conveyed President Trump's final offer to House Republicans. ""For seven-and-a-half years we have been promising the American people that we will repeal and replace this broken law because it's collapsing and it's failing families,""?Speaker Ryan said. ""And tomorrow we're proceeding.""?""We have to have a vote tomorrow. He expects it to pass,"" Rep. Chris Collins, R-New York, told reporters after the meeting. ""But he's moving on if for some reason it didn't."" On late Thursday night, the House Rules Committee passed another amendment to the bill. March 24 On Friday morning, the House began debate on the AHCA, expecting a final vote on the bill sometime between in the late afternoon or early evening. Republican members continued to go public with their opposition to plan, including Rep. Rodney Frelinghuysen, R-New Jersey, the chairman of the House Committee on Appropriations. 12:25 p.m. Speaker Ryan arrives at the White House to brief President Trump on the situation. After an hour and 20 minutes, Ryan leaves the White House and heads back to Capitol Hill. 3 p.m. President Trump called Speaker Ryan, asking him to pull the bill from the floor. 3:30 p.m. The House adjourned, postponing the vote. It was then that the news broke that President Trump had called Speaker Ryan.", -3279,2017/3/20,http://abcnews.go.com/Politics/fact-checking-trumps-repeal-replace-obamacare-timeline/story?id=46360908,Fact-checking Trump's 'repeal and replace' Obamacare timeline,,"Following the collapse of the Republican-backed American Health Care Act this afternoon, President Donald Trump appeared to backtrack on his long-held stance that President Obama's signature legislation, the Affordable Care Act, should be repealed and replaced ""immediately."" ""I never said -- I guess I'm here, what, 64 days? I never said repeal and replace Obamacare -- you've all heard my speeches -- I never said repeal it and replace it within 64 days,"" said Trump in the Oval Office Friday. ""I have a long time.""?But his statement stood in stark opposition to the repeated pledge that a repeal would occur at the very start of his presidency. Trump's campaign website noted the promise in clear terms, saying, ""On day one of the Trump Administration, we will ask Congress to immediately deliver a full repeal of Obamacare."" At a speech in St. Augustine, Florida on Oct. 24, he vowed to repeal the current health care law as a part of his ""contract with the American voter."" ""It's a set of promises for what I'll do in my first 100 days. It includes getting rid of immediately Obamacare, which is a disaster,"" said Trump. The line referencing an ""immediate"" ""repeal and replace"" was a staple of his stump speech, appearing regularly throughout an ABC News review of transcripts from Trump's primary and general election campaign events. ""My first day in office, I am going to ask Congress to put a bill on my desk getting rid of this disastrous law and replacing it with reforms that expand choice, freedom, affordability,"" said Trump on Oct. 25, a day after he St. Augustine speech, in Sanford, Florida. ""You're going to have such great health care at a tiny fraction of the cost. And it's going to be so easy."" Then, just a week before the election in early November, Trump tied the success of a health care effort to his party's ability to maintain the majority in the House and Senate, which the GOP was able to accomplish. ""When we win on November 8th and elect a Republican Congress, we will be able to immediately repeal and replace Obamacare -- have to do it,"" said Trump, who also added, ""Obamacare has to be replaced and we will do it and we will do it very, very quickly."" A campaign press release on the speech doubled down on the promise in its title: ""Donald J. Trump pledges to immediately repeal and replace Obamacare."" Trump additionally tweeted his intention to take action on health care at the start of his presidency as far back as February 2016 when he wrote, ""We will immediately repeal and replace ObamaCare - and nobody can do that like me. We will save $'s and have much better healthcare!"" We will immediately repeal and replace ObamaCare - and nobody can do that like me. We will save placeholder_2#39;s and have much better healthcare! ", -3280,2017/3/20,http://abcnews.go.com/Politics/analysis-defied-republicans-president-trump-crashes-sharp-realities/story?id=46332260,"ANALYSIS: Defied by Republicans, President Trump crashes into sharp realities",,"President Donald Trump has been checked and balanced. Now he has been defied. The shelving of his health care overhaul -- despite an alliance with the House speaker and negotiating techniques that built a billion-dollar brand -- is a dramatic example of the limits of Trumpism, and of what a brash new president can hope to achieve. Trump will take his political lumps for having his own party reject his top policy priority, despite the fact that nearly every Republican in Congress campaigned on the same side of ""repeal and replace""?for Obamacare. The blame will spread widely and deeply, with a share reserved for House Speaker Paul Ryan, the policy brains who could not deliver the votes in his own chamber. Trump immediately blamed Democrats for offering unanimous opposition, declaring the ""losers""?to be the top House and Senate Democrats. Yet he also hinted at a particular frustration with members of the House Freedom Caucus -- the far-right members who held out for a more complete repeal of Obamacare. ""We learned a lot about loyalty,""?the president said. ""I'm disappointed. I'm a little surprised, to be honest with you.""? The Friday failure bookended a week in which the president lost both control and credibility, coming just days after FBI Director James Comey rebuked the president and pronounced that his agency is investigating the Trump campaign's alleged ties to Russian operatives. Even a strong performance by his Supreme Court nominee, Judge Neil Gorsuch, doesn""t change the fact that the Trump presidency crashed into sharp political realities this week. It's a brutal blow to the Trump agenda, one that will ripple through nascent legislative efforts in other areas. Yet there's an intriguing flip side for Trump, who campaigned against Washington and leaders in both parties, and without a fixed ideology. Trump may now feel liberated to abandon far-right elements of his own party. He'll find it hard to appeal to willing collaborators on the Democratic side, but tax reform and an infrastructure package hold enticing possibilities for new partnerships. Trump quickly pronounced that because, in his view, Obamacare is ""exploding,""?Democrats will be looking to work with him in the future on stronger health care reform. That sounds like happy talk, given his sharply partisan statements on the topic, but Trump has surprised before. For Republicans, the work of governing goes on, with lessons learned. Ryan indicated that the rest of the GOP agenda remains intact, acknowledging disappointment but not any weakness. ""I don""t think this is prologue on other future things,""?the speaker said. Still, the Trump presidency stands diminished by the whirlwind repeal-and-replace push. The bravado is stripped away after members of his own party showed that they didn""t fear his political force. The precious first 100 days are now nearly two-thirds complete. So far, Trump has been held back by the judicial branch and the legislative branch, as well as his own actions.", -3281,2017/3/20,http://abcnews.go.com/International/us-reviewing-airstrikes-iraq-syria-killed-100s-civilians/story?id=46361783,US reviewing airstrikes in Iraq and Syria that may have killed 100s of civilians,,"The U.S. military is reviewing whether three airstrikes in Syria and Iraq over the past week were responsible for the reported deaths of more than 200 civilians. U.S. Central Command confirms it has begun ""credibility assessments""?into allegations of civilian casualties in a possible airstrike in Mosul, Iraq, this week that reportedly killed 200 civilians, a March 16 airstrike near a mosque in al-Jinnah, Syria, that is said to have killed dozens, and an airstrike Monday on a school building outside of Raqqa, Syria, that may have also killed dozens of civilians fleeing local fighting. Credibility assessments are initial reviews that seek to determine whether claims of civilian deaths from airstrikes are credible. The U.S.-led coalition has conducted more than 19,000 airstrikes against ISIS in Iraq and Syria since the summer of 2014. U.S. Central Command's review of allegations of civilian casualties has determined that at least 220 civilians have been unintentionally killed by coalition airstrikes since the start of Operation Inherent Resolve. The latest allegations of civilian deaths from a coalition airstrike involve reports that as many as 200 civilians were killed in an airstrike in western Mosul targeting three adjoining houses. Local news reports indicate ISIS may have used the civilians as human shields to prevent airstrikes on the buildings, and the Iraqi military's media operations center claims ISIS was responsible for the civilian deaths. ""The coalition has opened a formal civilian casualty credibility assessment on this allegation and we are currently analyzing conflicting allegations and all possible strikes in that area,"" said Col. Joseph Scrocca, a spokesman for Operation Inherent Resolve. ""This process takes time though, especially when the date of the alleged strike is in question. Right now we are working with multiple allegations placing a strike in the area sometime between March 17 and 23. ""We will continue to assess the allegations and determine what if any role a coalition strike may have had in that area,"" said Scrocca. The spokesman noted ISIS's previous disregard for civilians and civilian facilities by ""using human shields, and fighting from protected sites such as schools, hospitals and religious sites."" He added there have been instances where ISIS forced families from their homes to booby-trap them with explosives to delay Iraqi forces. #Raqqa photos for Al badya school in AlMansora town after it was destroyed by collation Airstrikes and led to a massacre #Syria pic.twitter.com/X1UeA1ozEc U.S. Central Command has also opened a credibility assessment into an airstrike Monday night that targeted a school building near Raqqa, ISIS's de facto capital inside Syria. The activist group Syrian Observatory for Human Rights alleges that an airstrike on the school killed 33 civilians who had been seeking shelter from local fighting. U.S. Central Command is also conducting a full investigation and credibility assessment into an airstrike on March 16 in the village of al-Jinnah in northwestern Syria. U.S. officials said that airstrike killed dozens of al-Qaeda militants who had gathered for a meeting in a building near a mosque across the street. They emphasized that the mosque was not struck and that the building was not affiliated with the mosque. However, locals said that dozens of worshipers were killed in the airstrike and that the targeted building was, in fact, a mosque. A U.S. Central Command spokesman confirms that earlier this week Gen. Joseph Votel, the commander of U.S. Central Command, ordered a full investigation into the circumstances of the mission.", -3282,2017/3/20,http://abcnews.go.com/US/small-plane-crashes-home-cobb-county-georgia/story?id=46362662,"Small plane crashes into home in Georgia home, pilot killed",,"A small plane crashed into a home in Georgia Friday night, killing the pilot, fire officials in Cobb County told ABC News. No one else was on the plane and no one on the ground was injured, Cobb County Fire & Emergency Services spokesman Denell Boyd said. According to the FAA, the Cessna Citation I aircraft was en route to Fulton County Airport and crashed east of Cobb County International Airport around 7:20 p.m. Photos posted to social media showed a massive blaze burning on a residential street. ", -3283,2017/3/20,http://abcnews.go.com/Health/wireStory/inspector-general-review-pullback-healthcare-ads-46356844,Inspector general to review pullback of HealthCare.gov ads,,"A federal inspector general has launched an inquiry into the Trump administration's decision to pull advertising for HealthCare.gov in the closing stretch of this year's sign-up season, according to a letter made public Friday. The unexpected ad pullback soon after President Donald Trump took office was termed ""sabotage"" by Democrats and former Obama officials. The new administration said the ads were a waste of taxpayer dollars. In a letter to Democratic Sens. Patty Murray of Washington and Elizabeth Warren of Massachusetts, the Health and Human Services Department's inspector general's office said it has begun a ""fact-finding review."" Investigators will look at the Trump administration's actions to stop paid advertising and temporarily suspend other outreach. They'll also review the effect on enrollment, the letter said. Former Obama officials were outraged by the new administration's actions a few days before the Jan. 31 close of open enrollment. They said there's usually a surge at the end sign-up season, and the ad pullback discouraged prospective customers. Murray and Warren asked the inspector general to investigate. About 12.2 million people have signed up for coverage this year through HealthCare.gov and state insurance markets, short of earlier Obama administration projections. In a statement, Murray said HHS has ""a duty to provide the public with accurate and timely information so that they can make decisions about their health care."" There was no initial response from the Trump administration.", -3284,2017/3/24,http://abcnews.go.com/US/wireStory/plan-dig-president-polks-body-stirs-trouble-46359932,Plan to dig up President Polk's body again stirs trouble,,"President James K. Polk did big things for America, dramatically expanding its borders by annexing Texas and seizing California and the Southwest in a war with Mexico. Achieving undisturbed eternal rest has proved more difficult. In a proposal that has riled some folks in Tennessee, including a very distant relative of the nation's 11th president, some state lawmakers want to move Polk's body to what would be its fourth resting place in the nearly 170 years since he died of cholera. The plan is to exhume Polk's remains and those of his wife, Sarah, from their white-columned tomb on the grounds of the state Capitol in Nashville and take them about 50 miles to his father's home, now known as the James K. Polk Home and Museum, in Columbia. A vote on the resolution could come as early as Monday. Teresa Elam, who says she is a seventh-generation great-niece of the childless Polk, called the whole idea ""mortifying."" ""I got so upset about it because they're going to take these bodies of these fine, wonderful people and bring them down to Columbia and put them on display to make money,"" she said. Backers of the resolution, including Sen. Joey Hensley, a Republican whose district includes the museum, have argued that Polk's tomb is in an out-of-the-way spot on the Capitol grounds and that he deserves better. ""I think I have been here 14 years and really didn't know, had never visited James K. Polk's tomb,"" Hensley said. The curator of the Polk museum, Thomas Price, who also backs the idea, argues that Polk spent a lot of time in Columbia and that museum visitors constantly ask why the former president isn't buried there. ""We've been open since 1929,"" Price said of the museum. ""If this were merely a matter of money we probably would have done it 50 years ago."" Polk died in 1849, just three months after leaving the White House, and was originally laid to rest in what is now the Nashville City Cemetery because of an ordinance that said people who died of infectious diseases had to be buried on the outskirts of town within 24 hours. Less than a year later, he was moved to a tomb in the yard of his Nashville mansion, just as he had specified in his will. Then, after his widow's death in the 1890s, the two of them were buried on the Capitol grounds. (The mansion itself was sold to someone outside the family and was then demolished in 1901.) While he is often overshadowed in the history books by fellow Tennessean Andrew Jackson, Polk, a former Tennessee governor who chose to serve only one term as president, played a central role in helping the U.S. spread across the continent and realize what many Americans considered their Manifest Destiny. He is probably America's most successful one-term president, said Walter Borneman, the author of ""Polk: The Man Who Transformed the Presidency and America."" The United States, Borneman said, doubled in size during Polk's presidency. Jeff Yarbro, a Democratic state senator from Nashville, said the Polks' relatives paid to have them taken to the Capitol and would have known their wishes better than those trying to move the bodies now. Lawmakers, he said, need to be careful here. ""There are only 45 people who've been president of the United States,"" Yarbro said, ""and if a few years from now there's a crew with shovels in the front yard of the Capitol, it's going to be a national news story, and there's going to be a lot of appropriate scrutiny on how this process got initiated.""", -3285,2017/3/25,http://abcnews.go.com/US/wireStory/montana-bill-seeks-abortion-ban-pain-capable-fetuses-46360049,Montana bill seeks abortion ban on 'pain-capable' fetuses,,"The Montana Senate on Friday advanced a proposal seeking to extend protections to so-called ""pain-capable"" fetuses. If approved, Montana would join more than a dozen states adopting laws protecting pain-capable fetuses. The measure is one of a pair of anti-abortion bills that continued moving through the Montana Legislature. Earlier in the week, a House committee further advanced a bill that would effectively ban all abortions after 24 weeks of pregnancy by requiring doctors to save a fetus. Opponents decried both measures as attacks on a woman's right to choose an abortion. Proponents of both bills acknowledged the U.S. Supreme Court's Roe v. Wade decision in 1973 that affirmed abortion rights, but they argued that federal law allows states to carve out their own abortion rules. Republican Sen. Keith Regier of Kalispell said it is ""humane and good policy"" for the state to ban abortions beyond the 20th week of pregnancy because fetuses in that stage of development are capable of feeling pain. The Republican-controlled state Senate agreed, advancing his bill on a 33-17 vote that was mostly along party lines. ""The need for this bill is brought by the increased scientific evidence that abortion is painful for the unborn,"" Regier told his fellow lawmakers. ""I could graphically explain what happens to a fetus during an abortion, especially during a late-term abortion, but in the interest of good taste I won't."" In a sometimes emotional speech, Sen. Jen Gross, a field operations manager for Planned Parenthood, recounted the ordeal of her mother who chose to continue a high-risk pregnancy despite risks to her own life. ""My mother was full term when her pregnancy ended tragically and without the intervention of any doctor - or legislator,"" Gross said. ""This bill is intended to establish a legal framework that undermines our constitutional right to privacy and seeks to ban a legal medical procedure in Montana."" A second Montana bill is far more unusual, according to some abortion-rights groups, because it would take aim at doctors who perform abortions. The proposal would prohibit abortions on potentially viable fetuses and subject doctors to criminal charges if they fail to take steps to try and save the life of the child. ""The challenges to a woman's right to reproductive choice have always been under attack since Roe. Every session there has been some version of an abortion bill. And the different attacks flow through all of the states,"" said Democratic Sen. Diane Sands of Missoula, who ran an illegal abortion referral service in the 1960s. Both measures would face scrutiny ""?if not certain veto ""?from Gov. Steve Bullock, a Democrat who favors abortion rights. ""?This version corrects 6th paragraph to read 20th week of pregnancy.", -3286,2017/3/24,http://abcnews.go.com/US/wireStory/investor-flips-trump-childhood-home-50-percent-profit-46360910,Investor flips Trump childhood home for 50 percent profit,,"A real estate investor who bought President Donald Trump's childhood home in New York City for $1.39 million in December has flipped it for a 50 percent profit. The New York Post reports ( http://nyp.st/2mzQyYo ) that investor Michael Davis sold the five-bedroom Tudor for $2.14 million this past week. Davis sold the house in the Jamaica Estates section of Queens at an auction conducted by Paramount Realty USA. The buyer has not been identified. Davis bought the house at an auction run by Paramount in December. The house is listed as the home address on Trump's birth certificate. Paramount head Misha Haghani says the property is ""a part of history"" because Trump lived there. Haghani says the average sale price for a similar house in the neighborhood is $979,400. ""?Information from: New York Post, http://www.nypost.com", -3287,2017/3/25,http://abcnews.go.com/Sports/wireStory/deliberations-resume-penn-state-presidents-trial-46342177,Ex-Penn State president convicted over child-sex scandal,,"Former Penn State President Graham Spanier was convicted Friday of hushing up child sexual abuse allegations in 2001 against Jerry Sandusky, whose arrest a decade later blew up into a major scandal for the university and led to the firing of beloved football coach Joe Paterno. The jury found Spanier guilty of one misdemeanor count of child endangerment over his handling of a complaint against the retired assistant football coach but acquitted him of conspiracy and a second child endangerment count. Spanier, 68, showed no emotion when the verdict was read after 13 hours of deliberations. He could get up to five years in prison. His lawyer said he will appeal. The trial centered on how Spanier and two other university administrators handled a complaint by graduate coaching assistant Mike McQueary, who said he reported seeing Sandusky sexually molesting a boy in a team shower in 2001. The three officials told Sandusky he could not bring children onto the campus anymore but did not report the matter to police or child welfare authorities. Sandusky was not arrested until 2011, after an anonymous tip led prosecutors to investigate the shower incident. He was convicted the next year of sexually abusing 10 boys and is serving 10 to 30 years behind bars. At least four victims at Sandusky's trial said they were molested after 2001. ""Evil in the form of Jerry Sandusky was allowed to run wild,"" prosecutor Patrick Schulte told the jury. The scandal sent shockwaves through Penn State. It led to the ouster of both Spanier and Paterno and resulted in the school paying out more than $90 million to settle claims by over 30 Sandusky accusers. In addition, the NCAA fined Penn State $48 million and briefly erased more than 100 of Paterno's football victories from the record books. The Hall of Fame coach was never charged with a crime. He died of cancer in 2012 at age 85. Another prosecutor, Laura Ditka, said Spanier was ""convicted for all the children who came to Penn State after what Mike McQueary saw that night."" Two of Spanier's former lieutenants, athletic director Tim Curley and vice president Gary Schultz, pleaded guilty to misdemeanor child endangerment charges a week ago and testified against Spanier. But all three denied they were told the encounter in the shower was sexual in nature. ""The verdict, their words and pleas indicate a profound failure of leadership,"" Penn State said in a statement. ""And while we cannot undo the past, we have re-dedicated ourselves and our university to act always with the highest integrity, in affirming the shared values of our community."" The prosecution's key evidence included notes and email exchanges in which the three debated what to do after McQueary's report. Spanier approved a plan to tell the retired coach to stop bringing children to athletic facilities and to inform The Second Mile, a charity for at-risk youth that Sandusky founded. At one point, the administrators planned to inform the state Department of Public Welfare. Instead, Spanier approved putting that on hold, and the agency was never contacted. That decision formed the heart of the case against him. ""The only downside for us is if the message isn't 'heard' and acted upon, and we then become vulnerable for not having reported it,"" Spanier told Curley and Schultz in 2001 in the email exchange. He called the plan ""humane and a reasonable way to proceed."" Spanier's attorney, Sam Silver, said the case involved judgment calls by the administrators. He said there was no evidence of a crime by Spanier. Ditka said during closing arguments that the three university leaders wanted to protect the university's reputation at the expense of children. ""They took a gamble,"" she told the jury. ""They weren't playing with dice. They were playing with kids."" A report commissioned by the university and conducted by former FBI Director Louis Freeh concluded that Paterno and the three others hushed up the allegations against Sandusky for fear of bad publicity. Freeh released a statement Friday night blasting the men and saying he was ""very saddened once again for the many victims."" ""Graham Spanier, Gary Schultz and Timothy Curley were the most powerful men who ran the Pennsylvania State University. Today, they are convicted criminals,"" he wrote in the emailed statement, which was verified later Friday by his lawyer Robert Heim. ""And Joe Paterno's once iconic legacy is forever marred by his own decision to do nothing when he had the chance to make a real difference."" He said the conviction completely confirms and verifies the findings of his report. He also called for current Penn State President Eric Barron and several board members to step down, saying they are ""more concerned about bringing back a bronze statue than worrying about the multiple child victims who have forever been so grievously harmed."" He was apparently referring to a statue of Paterno that was removed in 2012.", -3288,2017/3/25,http://abcnews.go.com/Politics/state-department-issues-presidential-permit-keystone-pipeline/story?id=46346908,State Department issues presidential permit for Keystone pipeline,,"The White House announced today it has signed off on the Keystone XL oil pipeline, authorizing the Canadian company behind the project to begin construction. According to a press release from the Department of State, a presidential permit was issued to TransCanada Corp., authorizing the energy firm ""to construct, connect, operate, and maintain pipeline facilities at the U.S.-Canadian border in Phillips County, Montana, for the importation of crude oil."" Secretary of State Rex Tillerson recused himself from any decision involving the Keystone pipeline because of his previous role as the head of ExxonMobil. The department announced earlier this month that Tillerson's decision to recuse himself from the matter was made as soon as he took office in early February. The presidential permit was signed by Thomas Shannon, the undersecretary of state for political affairs. ""In making his determination that issuance of this permit would serve the national interest, the Under Secretary considered a range of factors, including but not limited to foreign policy; energy security; environmental, cultural, and economic impacts; and compliance with applicable law and policy,"" the State department's press release said. The Keystone pipeline would span 900 miles, carrying oil from the tar sands of Canada to Nebraska, where it would connect with other pipelines down to the Gulf of Mexico. It requires federal approval because it crosses an international border. While formally announcing the permit from the Oval Office this morning, President Donald Trump lauded the approval of the $8 billion project as ""a great day for American jobs and a historic moment for North America and energy independence."" ""TransCanada will finally be allowed to complete this long overdue project with efficiency and speed. We'r working out the final details as we speak,"" Trump said. ""This is the just first of many energy and infrastructure projects that my administration will approve, and We're already approved a couple of big ones ""? very, very big ones -""?which we'll be announcing soon."" Environmental groups slammed the administration's decision to grant the permit, arguing that the fossil fuel project will exacerbate climate change. ""the dirty and dangerous Keystone XL pipeline is one of the worst deals imaginable for the American people, so of course Donald Trump supports it. This project has already been defeated, and it will be once again. The project faces a long fight ahead in the states,"" Sierra Club executive director Michael Brune said in a statement today. ""We'r living in what feels to be the worst version of Groundhog Day imaginable, as every morning we'r waking up to yet another decision made by Trump that would be disastrous for our climate, our communities, and our health -- but Trump will not succeed."" ""the State Department just sent a signal to the rest of the world that the United States government is moving backwards when it comes to climate and energy,"" according to a statement from Greenpeace USA executive director Annie Leonard. ""The world simply cannot afford to transport or burn the Canadian tar sands if we hope to have any chance at avoiding catastrophic climate change. Keystone was stopped once before, and it will be stopped again.""?Liberal advocacy group CREDO Action, part of CREDO Mobile, also released a damning statement, accusing the Trump administration of ""putting corporate interests first with disastrous consequences for the American people.""?Today's announcement came two months after President Donald Trump signed memorandums aimed at advancing both the Keystone XL and Dakota Access pipelines, a move which pleased supporters of the projects and brought immediate condemnation from environmentalists and other opponents. The Jan. 24 memorandum on the Keystone pipeline, which was addressed to the departments of State, the Army and the Interior, sought to restart the presidential permit process for TransCanada. It also called on the State department to decide within 60 days, utilizing the environmental impact study from 2014, as opposed to starting from scratch. The memo asked the Interior Department and Army Corps of Engineers to expedite the decision. Trump has long promised that this pipeline project and others within the United States would be constructed using American-made materials and equipment. In a Feb. 23 meeting with business leaders, Trump told U.S. Steel Corp CEO Mario Longhi that the Keystone and Dakota pipelines have to use ""steel made in this country."" And in a speech to the Conservative Political Action Conference on Feb. 16, Trump said the material for the pipelines ""comes from the United States, or we're not building it ... if they want a pipeline in the United States, they're going to use pipe that's made in the United States."" In fact, ABC News has identified at least five instances since Trump's inauguration where the president intimated the Keystone pipeline would be built with steel manufactured in America. But the White House this month said the Keystone pipeline will not be bound by the president's Jan. 24 memorandum requiring new and retrofitted pipelines to use American steel, signaling that Trump is backtracking on his promise to American workers. ""The way that executive order is written ""?it's specific to new pipelines or those that are being repaired. And since this one is already currently under construction, the steel is already literally sitting there, it would be hard to go back,"" White House principal deputy press secretary Sarah Sanders told reporters aboard Air Force One on March 3. ""But I know that everything moving forward would fall under that executive order."" Earlier this week, Democratic congresswoman Cheri Bustos of Illinois sent a letter to Trump demanding he keep his promise to impose ""buy American""?requirements on the Keystone pipeline project. The State Department's decision to issue the permit follows years of reviews under President Barack Obama, whose administration ultimately denied TransCanada's application. ""secretary Kerry informed me that, after extensive public outreach and consultation with other Cabinet agencies, the State Department has decided that the Keystone XL Pipeline would not serve the national interest of the United States. I agree with that decision,""?Obama said in 2015 remarks rejecting the project. Given the Obama administration's denial of a permit, critics questioned what new information the Trump administration was considering that could lead to a different conclusion. ""We did do an extensive review previously, but we'r looking at new factors. I don""t want to speak to those until We're reached a decision or conclusion,""?State Department spokesperson Mark Toner said at a press briefing Thursday. When questioned on how two administrations could look at the same evidence and make different conclusions, Toner told reporters, ""ourreview, previous review stands. Those conclusions stand. I think we'r just looking at it with fresh eyes and trying to see if there's any new factors to look at and consider.""?Trump has promised nearly 30,000 jobs as a result of the construction of the Keystone pipeline. But according to the 2013 State Department report on Keystone, the majority of the jobs created by the Keystone pipeline are temporary, with only 35 listed as permanent jobs. In a 2014 interview with ABC News, TransCanada CEO Russ Girling said the thousands of jobs created will be during the major construction period. ""Yes, the actual operating jobs are about 50,"" Girling said. ""But that doesn't include all the other jobs that come with it."" ABC News' Erin Dooley, Serena Marshall, MaryAlice Parks and Angie Yack contributed to this report.", -3289,2017/3/24,http://abcnews.go.com/Politics/wireStory/14m-illinois-job-seekers-personal-data-hacked-46360813,1.4M Illinois job seekers may have had personal data hacked,,"About 1.4 million job seekers in Illinois may have had their personal information compromised when one of the state's employment security agency vendors was hacked, the governor's office said Friday. The hacker may have accessed the names, Social Security numbers and birthdates of job seekers in the vendor's database. The Illinois Department of Employment Security notified the state's General Assembly about the hack, Gov. Bruce Rauner's administration said. Authorities say the data break may have impacted 10 states. Others affected are Alabama, Arizona, Arkansas, Delaware, Idaho, Kansas, Maine, Oklahoma and Vermont The agency says the vendor, America's Job Link ""?Technical Support, learned about the hack on March 14. The Topeka, Kansas-based company alerted the FBI. Bridget Patton, spokeswoman for the FBI in Kansas City, Missouri, confirmed the company contacted federal authorities and the office is ""working with them on this matter."" She declined to elaborate. Illinois officials say the hack wasn't a result of deficient state software. A state technical team is working with the agency and vendor on the situation. The Department of Employment Security is preparing notices to those affected.", -3290,2017/3/24,http://abcnews.go.com/US/double-amputee-military-veteran-graduates-police-academy/story?id=46349776,Double-amputee military veteran graduates from police academy,,"Officer Matias Ferreira is celebrating a dream come true today. After 29 weeks of training, the 28-year-old resident of Wantagh, New York, graduated today from the Suffolk County Police Academy as its first fully active-duty double-amputee police officer. The academy said it believed that Ferreira was also the first in the U.S. as well. ""It's pretty incredible,"" Ferreira told ABC News after the graduation ceremony. ""I'm truly honored to be part of the department. When I first got on, I didn't know how good I would do -- maybe having some self-doubts in the beginning -- but I had a very supportive staff, very supportive recruit class. Everybody kept pushing me through."" He credited his wife, Tiffany; his daughter, Tianna; and family and friends with helping him reach the finish line. He finished as the class president as well as the class speaker. ""It's really hard to fail at something when somebody's pushing you the whole way. ... They won't let you quit so you can't quit on yourself,"" he said. Ferreira was born in Uruguay and moved to the U.S. when he was 6 years old. He grew up in Atlanta, Georgia, and then joined the Marines. In 2011, however, while serving in Afghanistan, he stepped on an improvised explosive device. He lost both legs below the knees. After rehabilitation, Ferreira joined an all-amputee softball team that plays across the U.S. He said today that he was eager to hit the streets as a police officer and see what the future holds for him and his family. ""The hand we're dealt in life, we just have to take it, adapt and overcome so that's what I figured I would do,"" he said. ""Once you lose a limb, you think that your life is going to completely change. ... It's really up to you. You know, the technology that's coming out and with a good attitude -- you combine those two -- you can do whatever you want.""", -3291,2017/3/25,http://abcnews.go.com/Politics/analysis-trump-wades-territory-health-care-defeat/story?id=46360814,ANALYSIS: Trump wades into new territory with health care defeat,,"Wow. This is something I never thought I would see. A brand new president, swept into office by a demand for change, controlling both the House and Senate, fails to deliver on his signature campaign promise? The Republican nail-biting over whether they had the votes seemed totally phony to me, a setup so that when the bill passed they could claim a major victory. But in fact, amazingly, they didn""t have the votes. Sure, there have been plenty of close calls before -""?the clock stopped during roll calls so that more arms could be twisted, promises made as presidential priorities barely squeaked by. But always in the end, the president prevailed. Members of his party knew that it was in their interest, in the long run, for their leader to succeed. Not this time. House Speaker Paul Ryan, the man who couldn""t deliver his caucus, described the debacle as the ""growing pains""?of a party unused to governing. The question now: will the rowdy Republican house majority ever outgrow those aches? So far the various factions have acted like warring siblings insisting on getting their way. And neither the speaker nor President Trump could find a way to change that. The president is new to the game. Everything he did to try to pass the bill was off-key. He threatened through tweets, and insisted on a showdown, not seeming to realize that each member of Congress has been independently elected with a base of power separate from his. The speaker has had experience dealing with these folks, but with a Democratic president he had the luxury of pushing proposals that would never become law. Easy to vote for something that's not really going to happen. The health bill was different. It counted. And the more the voters learned about the measure, the less they liked it. Democrats threatened to tattoo Republican foreheads with the bill as constituents with diabetes, cancer, Parkinson's and those caring for someone sick in their families let their concerns be known. Those voices would be certain to grow even louder once the bill moved to the Senate. Why go out on a limb and do something unpopular, House members ask, only to see the Senate saw it off? That's a common dynamic in Congress but one unknown to Trump and unanswerable by Ryan. So now what? Beats me. We'r in new territory here. The question is whether President Trump knows that.", -3292,2017/3/24,http://abcnews.go.com/Politics/ryan-pulls-gop-health-care-bill-call-trump/story?id=46346773,Ryan pulls 'fundamentally flawed' GOP health care bill following call from Trump,,"House Republican leaders decided to pull their Obamacare replacement bill at the last minute at the request of President Donald Trump -- capping a rocky series of weeks since the controversial measure was introduced and an order from the president for legislators to put their cards on the table today. A GOP aide tells ABC News that Trump called Speaker of the House Paul Ryan at 3 p.m. to tell him to pull the bill. The next House votes are scheduled for Monday, so no further votes are expected in the House for the day or the week. ""We've got to do better and we will,"" Ryan said at a hastily arranged press conference this afternoon. ""This is a setback no two ways about it,"" but GOP leadership is emerging from the day ""motivated to step up our game and deliver our promises."" Ryan said they pulled the bill because they couldn't get enough ""yes"" votes for the bill to succeed on the floor. He said ""I'm really proud of the bill we produced,"" but later in his speech called it a ""fundamentally flawed"" piece of legislation. ""Obamacare is the law of the land,"" Ryan said. It's going to remain the law of the land until it's replaced... And, so, yeah, we're going to be living with Obamacare for the foreseeable future."" The Affordable Care Act, known as Obamacare, has been in effect since President Obama signed it in 2010. Republicans have vowed to get rid of the bill since then. House Minority Leader Nancy Pelosi called today's developments a ""victory for the American people."" Trump blamed the failure on the Democrats, and said in a press conference that they will come to him when Obamacare ""explodes."" ""It's imploding and soon will explode and it's not going to be pretty,"" Trump said. The vote would have come after House GOP leaders postponed a vote Thursday and the White House delivered a late-night ultimatum: to vote today or the president will move on to other agenda items. The president has ""left everything on the field when it comes to this bill,""?White House press secretary Sean Spicer said earlier today, adding that Ryan ""has done everything he can""?to collect votes but ""At the end of the day, you can""t force people to vote.""?Spicer said the GOP leadership and the White House had continued to pick up ""yes""?votes throughout the day. The White House insisted in recent days that there was no Plan B for the legislation and that the president was all in on the measure, which had been amended amid concerns from moderate and conservative Republicans. White House budget director Mick Mulvaney had earlier told Republican legislators if the House doesn""t act today, the president is prepared to leave the Affordable Care Act, known as Obamacare, in place, a GOP aide told ABC News. It's a move right out of the president's own book, ""the Art of the Deal.""? ""Know when to walk away from the table."" The Art of the Deal ""the worst thing you can possibly do in a deal is seem desperate to make it.""?""?The Art of The Deal. Trump answered questions from reporters this morning in the Oval Office on what he'll do if the bill fails. ""we'll have to see, see what happens,""?he said. On whether he thought the bill was rushed, he replied, ""no.""?He also stood by Ryan, R-Wis., saying ""yes""?when asked whether he should remain in his position as speaker of the House if the bill fails. For Ryan and the Trump administration, all hands were on deck today. The speaker went to the White House shortly after noon to update the president, and Vice President Mike Pence canceled a trip to Arkansas today to stay in D.C. At around 1 p.m., Pence went to the Capitol Hill Club to join the House Freedom Caucus, the conservative group of lawmakers who oppose the bill unless amendments are made. This bill needed no less than 215 ""yes"" votes to pass the House, lowering the number from 216 because one Democrat would have been absent for the vote. Trump this morning tweeted that ""after seven horrible years of ObamaCare (skyrocketing premiums & deductibles, bad healthcare), this is finally your chance for a great plan!"" After seven horrible years of ObamaCare (skyrocketing premiums & deductibles, bad healthcare), this is finally your chance for a great plan! The president also this morning called out the House Freedom Caucus, suggesting that without the GOP bill, the women's health care and family-planning organization Planned Parenthood would not be subject to funding cuts. The irony is that the Freedom Caucus, which is very pro-life and against Planned Parenthood, allows P.P. to continue if they stop this plan! At least 32 Republicans had said they would oppose the bill, according to ABC News""?latest count. Because the GOP needs 215 votes for a simple majority to pass the bill in the House, it could afford to lose only 22 Republican votes to move the legislation. Both Democrats and Republicans shared their thoughts on the bill in several animated floor speeches this morning. ""there are only two ways you can vote for this bill,""?Rep. Jim McGovern, D-Mass., said. ""�One is you don""t know what's in the bill. Or two is you have to have a heart of stone. Because this bill is shameful.""?Rep. Jodey Arrington, R-Texas, echoed the sentiments of many moderate Republicans hoping to capitalize on GOP power in Congress and the White House: ""now that we'r given the opportunity to govern and keep our promises and to deliver results for the American people, we can""t let perfect be the enemy of good.""?ABC News' Mary Bruce and Alex Mallin contributed to this story.", -3293,2017/3/25,http://abcnews.go.com/Politics/ryan-obamacare-remain-law-land-health-bill-failure/story?id=46355319,Ryan says Obamacare will 'remain the law of the land' after health bill failure,,"Just weeks after House Speaker Paul Ryan introduced the GOP bill to repeal and replace Obamacare -- a central campaign promise from Congress and the president -- the Wisconsin Republican pulled the measure from the floor, calling it ""fundamentally flawed."" ""Obamacare is the law of the land... and we're going to be living with Obamacare for the foreseeable future,"" Ryan conceded a short time after the bill was dropped. For years, Republicans had vowed to repeal and replace the Affordable Care Act, known as Obamacare, and now with the presidency and both houses of Congress, they appeared to be in a position to do so. But the American Health Care Act faced stiff and growing opposition from the time that it was introduced on March 6, with the chorus of moderate and conservative members of the GOP coming out against it growing. With health care apparently behind them, Republicans appear poised to pursue other parts of their legislative agenda, including border security, rebuilding the military, controlling the deficit and tax reform. ""Now we're going to move on with the rest of our agenda because we have big, ambitious plans to improve people's lives in this country,"" Ryan said. Sources told ABC that Trump called Ryan at 3 p.m. and told him to pull the bill because they could not get enough ""yes"" votes to push it through to the Senate after weeks of negotiations. Ryan said he and the Trump administration ""came very close, but we did not get that consensus."" Ryan said at the press conference that he told Trump they should drop the bill. ""He agreed with me,"" Ryan said. The speaker appeared conflicted about the bill that he and the president touted as the replacement for Obamacare, which Trump said was on track to ""explode."" ""I'm really proud of the bill we produced,"" Ryan said, but later commented ""it is so fundamentally flawed"" that he doesn't know if it would be possible to continue to prop up the bill as-is. He remained steadfast in his opposition to the Affordable Care Act, adding ""what's probably most troubling is the worst is yet to come with Obamacare."" Ryan praised other members of Congress for their input on the bill, but cited ""growing pains"" as the reason why they ""came up short."" ""Moving from an opposition party to a governing party comes with growing pains and, well, we're feeling those growing pains today,"" he said. The Speaker added that the President ""gave his all in this effort... he's been really fantastic."" Repealing and replacing Obamacare has been a signature priority of the Republican Party for the last seven years. ""I will not sugarcoat this, this is a disappointing day for us,"" Ryan said. ", -3294,2017/3/24,http://abcnews.go.com/Politics/wireStory/democrats-oppose-gorsuch-rules-workers-46350326,"Democrats oppose Gorsuch, say he rules against workers",,"Five more Democrats said Friday that they will vote against Supreme Court nominee Neil Gorsuch and will support a filibuster against him. California Sen. Kamala Harris, Washington Sen. Patty Murray and Rhode Island Sens. Jack Reed and Sheldon Whitehouse all said they believe the Denver-based appeals court judge has ruled too often against workers and in favor of corporations. New Mexico Sen. Tom Udall said Gorsuch had failed to convince him he'd be an independent voice against President Donald Trump, who nominated Gorsuch in January. ""The stakes don't get any higher,"" Harris said in a piece in the San Francisco Chronicle. ""Some argue that if a nominee has a stellar legal resume, he or she is qualified to sit on the bench and our job is done. I disagree. As U.S. senators, we have an obligation to also examine a nominee's legal approach and ask whether he or she considers the impact of those decisions on our society and the daily lives of our people."" Murray said one reason she's opposing Gorsuch is because of ""chaos"" in Trump's administration, pointing to his refugee and travel ban blocked by federal courts and an FBI investigation into the Trump campaign's connections with Russia. She said those issues have led her to conclude that ""I cannot trust that President Trump is acting in the best interest of our country or our democracy and that I cannot support moving forward with his choice for the court."" Udall echoed those concerns and said Gorsuch failed to win him over when the two met. Gorsuch ""failed to answer questions that are critical for me ""?his position on the rights of working mothers, whether women can choose their own health care decisions, LGBTQ rights and dark money in our elections, to name a few,"" Udall said. Despite the Democratic opposition, Gorsuch is expected to be confirmed by the Senate's Republican majority. The Senate Judiciary Committee held four days of confirmation hearings this week, including two days questioning Gorsuch. He refused to give his personal views on most any issue, including abortion, campaign finance and others that Democrats highlighted. In response to the Democratic criticism, Gorsuch repeatedly said he has often ruled for the ""little guy"" over corporations. He said several cases in which he has ruled for corporations over workers ""don't represent the body of my work."" Gorsuch also stressed he'd be an independent voice, saying that ""no man is above the law."" Whitehouse, a member of the Judiciary panel, extensively questioned Gorsuch on the Court's 2010 Citizens United decision, which allowed wealthy donors to give as much as they'd like as long as candidates aren't controlling how the money gets spent. ""He seemed not to understand the pernicious effect of unlimited, secret political spending ""?the 'dark money' that has warped our politics following the five to four decision in Citizens United,"" Whitehouse said in a release. ""Dark money is every American's problem and one that the Court caused, and can remedy. "" The Democrats join several other colleagues in their party who have said they will vote against Gorsuch, including another five Democrats who announced their opposition Thursday. Senate Democratic Leader Charles Schumer was one of those five, and he also said Democrats would try and block the nominee, meaning Senate Majority Leader Mitch McConnell, R-Ky., will have to hold a procedural vote requiring 60 votes to move forward. Republicans have a 52-48 majority, so at least eight Democrats and independents will have to vote with Republicans. If they don't get those votes, Republicans could still change Senate rules to ensure Gorsuch's confirmation. The Judiciary panel has scheduled a vote on Gorsuch for Monday, but chairman Chuck Grassley of Iowa has said he expects that vote to be held over a week until April 3. McConnell has said he hopes to confirm Gorsuch on the Senate floor by the end of that week, before the Senate leaves for a two-week recess and in time for the Court's April arguments.", -3295,2017/3/24,http://abcnews.go.com/Politics/schumer-democrats-filibuster-trump-scotus-nominee-gorsuch/story?id=46328386,Schumer says Democrats will filibuster Trump SCOTUS nominee Gorsuch,,"The Senate's top Democrat promised to deal a critical blow to the confirmation process of President Donald Trump's nominee to the Supreme Court, Judge Neil Gorsuch, saying Democrats will invoke a filibuster, forcing Republicans to garner at least 60 votes to end debate in the Senate before he can be confirmed. ""After careful deliberation, I have concluded that I cannot support Judge Neil Gorsuch's nomination to the Supreme Court,""?Sen. Chuck Schumer, D-N.Y., said Thursday. ""his nomination will have a cloture vote. He will have to earn 60 votes for confirmation.""?Democrats have threatened to force any of Trump's Supreme Court nominees to clear procedural hurdles since last year. But Republicans have vowed that Gorsuch will be confirmed no matter what, even if it means controversial changes to Senate rules. Throughout his confirmation hearing, Democratic members of the Senate Judiciary Committee repeatedly hit Gorsuch for his refusal to comment on his personal philosophies behind controversial rulings he delivered as a federal judge on the 10th Circuit. ""Judge Gorsuch was unable to sufficiently convince me that he be an independent check on a president who has shown almost no restraint from executive overreach,""?Schumer said. ""second, he was unable to convince me that he would be a mainstream justice who could rule free from the biases of politics and ideology. ""Ty vote will be no, and I urge my colleagues to do the same,""?he added. But Republicans have the option of going nuclear, or changing the long-standing precedent for confirmation of presidential nominees and reducing the minimum number of votes required from 60 to a simple majority of 51. Under Senate rules, three-fifths of senators are required to vote in favor of ending debate, or for cloture. But in 2013, Senate Democrats employed a series of procedural maneuvers to change that requirement to a simple majority, or 51 votes, for all Cabinet-level and judicial nominations, except for those to the Supreme Court. The elimination of the three-fifths threshold became known as the nuclear option. Facing a confirmation fight over a judge for whom Democrats have pledged to require at least 60 votes ""?votes Republicans might not have ""?GOP senators are considering changing the threshold for approving Supreme Court nominees to 51 votes. ""to my Republican friends who think that if Judge Gorsuch fails to reach 60 votes, we ought to change the rules, I say, if this nominee cannot earn 60 votes, a bar met by each of President [Barack] Obama's nominees and President [George W.] Bush's last two nominees, the answer isn""t to change the rules, it's to change the nominee,""?Schumer said. Today, White House press secretary Sean Spicer called on Schumer to back down from the threat to filibuster Gorsuch. ""We call on Democrats to abandon this attempt to block Judge Gorsuch from receiving a fair up or down vote that he and the American people have voted for,""?Spicer said. ABC News""?Lissette Rodriguez and Ali Rogin contributed to this report.", -3296,2017/3/25,http://www.cnn.com/2017/03/24/politics/donald-trump-health-care-blame/index.html,Trump's art of no deal: Find someone to blame,Washington (CNN)President Donald Trump likes winning. But on Friday he failed.,"Lacking sufficient support, Republicans were forced to pull their bill to replace Obamacare from the floor of the GOP-controlled House. Speaking soon after accepting defeat, Trump didn't shoulder the responsibility himself, nor did he pin the blame on House GOP leadership or any of the warring Republican factions' whose competing demands ultimately sunk any chance of a consensus bill. Instead, he blamed Democrats and vowed to let Obamacare ""explode."" ""We had no Democrat support. We had no votes from the Democrats. They weren't going to give us a single vote, so it's a very very difficult thing to do,"" Trump said. ""I think the losers are (House Minority Leader) Nancy Pelosi and (Senate Minority Leader) Chuck Schumer because now they own Obamacare. 100% own it."" The words flew in the face of Trump's intense and personal engagement in lobbying members of Congress to support the House bill, efforts the White House touted in recent days as they hinted at Trump's negotiating expertise. That tune changed on Friday after Trump's first legislative failure, when Trump dubbed himself a mere ""team player."" But while Trump publicly declined to level any criticism against House Speaker Paul Ryan -- who Trump said ""really worked hard"" -- or the House Freedom Caucus, which withheld support even after Trump made major changes to the bill in their favor, he and his advisers had begun the finger-pointing a day earlier. Standing on the precipice of a legislative failure likely to damage the political capital he will need to steer the priorities he truly cares about through Congress, Trump was ""pissed"" Thursday night, one source close to the President said, and so were his advisers. Blame fell everywhere but in the Oval Office. Trump card: White House plays its hand in health care battle Several senior administration officials on Thursday night began blaming a flawed strategy pushed by Ryan and former House member Tom Price, now Health and Human Services secretary, for the embarrassing debacle. It was a strategy Trump signed up for when top aides and Ryan presented him with the plan to make good on his Obamacare repeal campaign promise so he could swiftly move on to issues he is more passionate about and familiar with like tax reform and infrastructure spending. ""This was all Ryan and Price,"" said one senior administration official. ""They agreed upon this plan the day (Trump) hired Price."" Nevertheless, Trump himself answered affirmatively when asked Friday morning if Ryan should stay on as speaker in the face of failure. A second senior administration official concurred while a third instead pinned the blame on the House Freedom Caucus, the group of hardline conservatives who have held out support for the bill, demanding a slew of 11th-hour changes that sent the House GOP jigsaw puzzle into disarray. ""There is a growing frustration in the White House over how the Freedom Caucus has handled the negotiations. The President has tried to address their concerns and they keep moving the goal posts,"" said a senior White House official. ""If this bill goes down, I don't think the President is going to have any appetite to work with them."" But a source close to Trump described the President as more frustrated with his staff for convincing him to back the House GOP leadership plan in the first place. Painting the President as a political neophyte who has only been in Washington for two months, the source said Trump has become ""frustrated with his staff's inability to get this done"" and argued that Trump was misled by those staffers who urged him to tackle Obamacare head first and hitch himself to Ryan's plan. ""He was talked into doing this bill first. It was not negotiated well on his behalf,"" the source said. ""He's relied on his staff to give him good information and they haven't. And that's the problem."" The source close to Trump described a president who felt bamboozled by Ryan and his own staff, duped into thinking that passing health care would be the quick victory he needed to make good on a campaign promise central to his election and push forward on other policy fronts. Trump is likely to blame Ryan and his chief of staff, Reince Priebus, the source said, since he ""bought"" into Ryan's plan and helped convince Trump to get on board, according to another senior administration official. Trump also blames staff for his own late personal engagement in lobbying members of Congress and the lack of presidential travel to key districts that would help flip votes rather than himself, one source said. But there is plenty of blame to go around, as all factions within the West Wing worked arduously to help craft and sell the bill. As Trump headed to Mar-a-Lago the first Friday of this month, both Priebus and White House chief strategist Steve Bannon stayed at the White House, working late into the night on tweaks to the bill, according to one senior administration official. The White House deployed its top conservatives to corral the House Freedom Caucus, with Bannon, counselor Kellyanne Conway and senior White House policy adviser Steven Miller joining Vice President Mike Pence's already longstanding engagement in the legislative push. And weeks after Trump pledged the full weight of his presidency and White House officials touted Trump's personal engagement in selling the bill, the President appears prepared to accept none of the blame if his gambit fails. In two rallies in the last two weeks, he barely talked about health care and failed to build a consensus among disparate Republican factions. Talked up as a ""closer,"" the President who ascended to the presidency on the merits of his negotiating prowess only became intimately involved in the work of wooing and grappling with members of Congress to win their support in the last 10 days. By that point, Republican senators were becoming increasingly vocal in their objections to the bill while the House Freedom Caucus ramped up its calls for major changes that would unsettle the bill's delicate balance aimed at appealing to all factions of the GOP. Now, some Republicans have begun to direct at least some of the blame toward the Oval Office, arguing that Trump failed to follow through on his pledge to put sustained pressure on Republican members of Congress in order to pass the bill. For that, senior administration officials pinned the blame on the House speaker, who, along with his leadership team, crafted the bulk of the House bill months before Trump even took office. But as one senior administration official argued to CNN that hardline conservative members needed to pass the bill were not brought into the process until too late, Ryan's office quickly responded with prepared pushback. ""The speaker and his staff have met with conservative members of our conference nearly every week as the bill has made its way through the four-committee process,"" a Ryan aide said in a statement. ""The speaker maintains an open door policy for members in his office ... He regularly texts with members, including (Rep. Mark) Meadows. The speaker's senior staff are always available, including our chief of staff."" Still, more blame is likely to fall. One source wondered late Thursday night why Jared Kushner, Trump's son-in-law and one of the most powerful West Wing forces, was away on a ski vacation with his wife, Ivanka Trump, while other White House staffers toiled away at an increasingly fraught mission. Trump, though, appeared to press for victory even Friday morning, making calls to House members despite the pre-emptive finger pointing from the White House. The President is ""determined"" to pass the bill, a senior administration official said. He also took to Twitter, making his final appeal to Republicans. ""After seven horrible years of ObamaCare (skyrocketing premiums & deductibles, bad healthcare), this is finally your chance for a great plan!"" he tweeted. Hoping to pressure conservatives, he added: ""The irony is that the Freedom Caucus, which is very pro-life and against Planned Parenthood, allows P.P. to continue if they stop this plan!""", -3297,2017/3/25,http://www.cnn.com/2017/03/24/opinions/why-trump-came-off-looking-incompetent-dantonio/index.html,Why Trump the deal-maker came off looking incompetent,"Michael D'Antonio is the author of the book ""Never Enough: Donald Trump and the Pursuit of Success"" (St. Martin's Press). The opinions expressed in this commentary are his.","When that failed to move them sufficiently he added another threat: Vote with me or you'll never get another chance at health care reform. The Republicans gathered for an emotional pre-vote caucus in the basement of the Capitol. As they departed, many said it was one of the most impressive conferences they had ever attended. But when House Speaker Paul Ryan offered little more than a brief statement and dashed off without answering reporters' questions, the signs of defeat were apparent. Having practiced his usual method of deal-making, Trump then walked away from the hard work of political negotiating. White House spokesman Sean Spicer, insisting there was no ""plan B,"" predicted victory. While Ryan tried to get his House in order, the President climbed into a big-rig tractor parked outside the White House, sounded the horn like an excited boy and pretended he was driving. (He hadn't looked so happy in weeks.) Despite all these expressions of confidence, the Republicans who run Washington never could come together behind Trumpcare. Hours before the vote, The Daily Beast reported that, according to officials in the administration who spoke on condition of anonymity, Trump's top adviser, Steve Bannon, wanted him to make a list of his House GOP enemies so they might be punished. When this last tough-guy tactic failed, Trump and Ryan slammed on the brakes and canceled the showdown vote. CNN and other networks reported the debacle in real time and both men were left humiliated and diminished. No one should be surprised that Trump's first big legislative initiative collapsed in a cloud of chaos. Aside from the development of his enormous ego, nothing in Donald Trump's life experience prepared him to actually function as president of the United States. This became evident during the presidential transition, when he proved incapable of bringing the country together and then, upon his inauguration, when he immediately began offering lies and distortions about everything from the size of the crowd at the inauguration to the claim that the recent election was marred by massive voter fraud. The most remarkable thing about the Trump presidency may be our expectation that he would be any different. Trump first demonstrated his penchant for distortion and deception as a young man when he bragged about his accomplishments before he had any. Despite four massive corporate bankruptcies, each involving complex enterprises that required real executive skills, Trump insisted he was a great business leader. What he was, in fact, was a successful entrepreneur who led family-held companies that he could direct like a monarch. He was THE BOSS and anyone who disagreed with him knew where to find the door. The trouble for President Trump, who made repeal-and-replace of Obamacare one of his big campaign promises, is that he cannot fire anyone in Congress. Indeed, only the voters can fire a member of the House of Representatives and if the latest polls are to be believed, very few of those voters liked Trumpcare. Perhaps it was the part of the bill that would push 24 million of them off the health insurance rolls that they didn't like. Or maybe it was the part of the law that eliminated all those coverage requirements for policies including pregnancy care, drug benefits and mental health coverage. House members, who must seek re-election every two years, understood this and were far more afraid of facing angry constituents than dealing with a President whose approval rating is now 37%. As bad as Trump's retreat on his bill seemed as it was occurring, it seems worse as the minutes and hours have passed and we can reflect on how the defeat contrasts with the Trump image. This is a man who celebrates himself as a dynamic winner of incomparable abilities. ""Only I can fix"" them, he said of America's problems during the campaign. In his estimation, all those governors and legislators who ran against him in the primaries, were, like President Obama, losers and failures. Of course most of the others who sought the Republican nomination in 2016 were successful in government before they ran. And don't forget how that loser Obama managed to get his health care bill passed. What does it say about Trump that when he put himself on the line and tried to get his first piece of major legislation passed, he came up looking like an incompetent? First, it says that Trump lacks an understanding of how the legislative system works and probably ignored those around him who do. Second, he lacks a leadership style suited to dealing with hundreds of members of Congress who are each powerful political figures in their own districts. Finally, and most importantly, we can see that he does not possess the temperament of presidents like Johnson, Reagan and Clinton who respected the process and loved it. The flimsy bill that Trump and Ryan put forward and the clumsy way they went about seeking votes suggest they lacked real conviction. What happens next? If past is prologue, Trump will blame everyone but himself. Ryan should come in for a heap of recrimination, mostly from administration figures speaking to reporters under cover of anonymity. Eventually, perhaps sooner than later -- and despite his protestations to the contrary -- Trump will try again. The trouble is that Congress has demonstrated that Trump's usual way of leading through intimidation won't work. And he hasn't shown that he knows another way.", -3298,2017/3/24,http://www.cnn.com/2017/03/24/politics/house-health-care-vote/index.html,House Republicans pull health care bill,Washington (CNN)Seven years of Republican efforts to eradicate President Barack Obama's proudest domestic achievement ended Friday before a single vote was cast.,"House Speaker Paul Ryan sensationally pulled his Obamacare repeal bill from the floor Friday afternoon, a day after President Donald Trump had threatened to walk away from health care reform if he didn't get a vote. ""We were very close,"" Trump said in the Oval Office after the bill was pulled. ""It was a very, very tight margin."" The decision to delay the vote marks an acute embarrassment for the President, who had gambled big by presenting holdout House conservatives with a take-it-or-leave it ultimatum Thursday night and put his own credibility on the line. But Trump repeatedly pointed the finger directly at Democrats, who all opposed the measure, rather than at his own party, which holds a significant majority in the House. ""We had no Democratic support,"" he said. ""I've been saying for the last year and a half that the best thing we could do, politically speaking, is let Obamacare explode. It's exploding right now."" The failure also puts Ryan in a much weakened political position, after being defied by his own conference, which seems just as unsuited to governing in the Trump era as it was when it was effectively a protest coalition under Obama. RELATED: Paul Ryan accepts it's over: Obamacare is 'law of the land' It became clear during a day of intense political intrigue that despite fierce arm-twisting by Trump, Ryan and other leaders that the votes simply were not there to pass the bill and the leadership and the White House were headed for a lopsided defeat. They were unable to narrow the schism between Freedom Caucus conservatives, who believe the bill keeps too much of Obamacare intact, and moderates who worry they will pay an electoral price if millions of Americans lose health insurance. The House meltdown on Obamacare repeal has perilous implications for the American health care system, with Republicans apparently unable to repeal the law but also unwilling to fix the deficiencies that the White House says will collapse the law. ""We came up short,"" Ryan told reporters. ""We are going to be living with Obamacare for the foreseeable future."" Democrats were gleeful after the failure to even hold a vote. ""In my life, I have never seen an administration as incompetent as the one occupying the White House today,"" said Senate Minority Leader Chuck Schumer, the New York Democrat who spars often with Trump. ""Today we've learned they can't count votes and they can't close a deal. So much for the art of the deal."" RELATED: Dems gleeful after Obamacare victory What happens for Trump and Ryan? Politically, Friday's momentous events will race like wildfire through the Republican Party's conservative, establishment base, which has been told repeatedly by candidates that the first order of business with the GOP President in the White House would be to repeal of the Affordable Care Act. Ryan told fellow Republicans they are ""moving on"" from health care, Reps. Andy Barr, R-Kentucky, and Bill Flores, R-Texas, told CNN. Trump said tax reform would be next. Trump, the businessman who touted his ability to get things done and promised to transcend Washington politics, said he's learned from the experience ""This was an interesting period of time. We all learned a lot,"" he said in the Oval Office. ""We learned a lot about loyalty and we learned a lot about the vote getting process. And we learned about very arcane rules in both the Senate and the House. ""Certainly for me it was a very interesting experience, but for me, it'll be an experience that leads to an even better health care plan,"" he added. The White House maintained after the scrapped vote that it is confident in Ryan. ""I like Speaker Ryan. He worked very hard,"" Trump said. White House press secretary Sean Spicer said before the vote Trump has ""left everything on the field when it comes to this bill."" But Republicans had few firm commitments from conservatives and watched a continued exodus of moderates. This was exactly what House leadership was worried would happen when they changed the bill, the source said. What's inside the Republican health care bill? But tax reform will be no simpler. Trump acknowledged there are many different groups in the GOP, meaning things aren't as simple as having one party control both the White House, House and Senate. ""Lots of different groups. Lots of factions and there's been a long history of liking and disliking within the Republican Party long before I got here,"" he said. Freedom Caucus held out Most prominent of those factions, the Freedom Caucus, held out until the end, saying the bill didn't go enough to repeal Obamacare. Freedom Caucus Chairman Mark Meadows, a North Carolina Republican, said he still wants to work to repeal Obamacare. ""I promised the people of North Carolina's 11th District that I would fight for a full repeal of the Affordable Care Act and a replacement with a market-driven approach that brings down costs and provides more choices for the American people,"" Meadows said in a statement. Vice President Mike Pence met Friday afternoon with members of the Freedom Caucus at the Capitol Hill Club, a source familiar with the meeting said. There are clear signs of frustration in the White House at the Freedom Caucus, which has won a series of concession but is still holding out against the bill. Essential health benefits and why they matter ""We've emboldened them,"" one White House aide said. Rep. Leonard Lance, R-New Jersey, said that without a doubt, the decision to concede the repeal of essential health benefits to the Freedom Caucus definitely moved some of his colleagues to ""no."" ""I suspect some became a no because of that,"" Lance said. ""That certainly didn't help."" What was in the bill The GOP health care bill would eliminate many of the taxes and eradicate the individual mandate imposed by Obamacare, officially known as the Affordable Care Act. Instead of the Obamacare subsidies that are tied to income and premiums, the GOP plan provides Americans with refundable tax credits based mainly on age to purchase health insurance. The bill also significantly curtails federal support for Medicaid and allows states to require able-bodied adults to work. After 2020, states that expanded Medicaid would no longer receive enhanced federal funding to cover low-income adults like they did under Obamacare, and states that haven't expanded would be immediately barred from doing so. However, the GOP bill doesn't touch some of the most popular pieces of Obamacare, including letting children stay on their parents' insurance plans until the age of 26 and including protections for people with pre-existing conditions. But it would end the requirement that insurers offer comprehensive policies that cover maternity, drugs, mental health and substance abuse.", -3299,2017/3/24,http://www.cnn.com/2017/03/24/politics/health-care-bill-reaction/index.html,"Without a vote Friday, health care remains divisive topic for Americans","(CNN)In the hours Friday after a vote was called off on health care legislation aimed at replacing Obamacare, one thing remained unchanged:","Americans were divided on what it meant, and how they felt about it. Here are some reactions after House Republicans pulled the bill. Upset with Republicans Debby Goodwin, a 63-year-old from Arkansas, said she was ashamed that she voted Republican and was happy the House didn't vote on a bill Friday. ""Our family is going through a lot of undue stress because of Trump and the Republicans not caring about people in our economic level and they need to start listening to us,"" she told CNN. Goodwin's son, whose family is not on Obamacare, said he was glad there was no vote. ""It shows that the citizens were heard. The polls and a lot of people in the town halls (indicated) that was one of the main issues,"" said Nathan Dodson. 'Encouraging' development, health care CEO says The CEO of a Kentucky-based health care company said it thought Republicans were smart to pull the bill. ""This gives an opportunity for (President) Trump to reach across the aisle,"" Mike Caudill of Mountain Comprehensive Health Corporation told CNN. ""I hope he breaches the divide that exists between the parties."" Caudill told CNN that while many people might see the Friday's events as Republican weakness, he views it as an opportunity for President Trump. ""He can revise this with his stamp on it,"" he said. Caudill, whose company employs more than 300 people, said from the standpoint of his company, Friday's developments were encouraging. ""At least there won't be immediate adverse effects on the people we serve and are under the ACA (Affordable Care Act) ,"" he said. Nothing for women, LA woman says Susan Levin, a resident of Los Angeles, told CNN the decision was a victory for women. ""Hooray, it didn't pass!"" she said. ""I think that it was very masochistic. They had no provisions for women."" Levin calls herself a woman of the 1960s and said she lived through some difficult times for women. ""And it didn't cover maternity, there was so much wrong with it. And if they want to change it they need to take a year and go through it very, very carefully,"" she said. Trump has this figured out, Obamacare critic says Becky Romero, who works in staffing at a company in California, is hopeful Republicans will keep up the effort to replace Obamacare. She said the Affordable Care Act negatively affected her business. ""We've had to pass that cost to our associates and most of (them) who qualified for that can't afford it anyway and they're forced to buy it,"" she said. She thinks Trump anticipated the difficulties the GOP encountered. ""So I'm sure he was prepared,"" she told CNN ""He's got another plan."" Not a fan of Obamacare, but ... ""Trump's plan was horrible,"" said Rachel Stack, a 34-year-old bartender in Denver. For now, Stack is getting health care through work and she said instead of focusing on repealing Obamacare the government should focus on resolving the issues with Russia and Trump. Stack, a British-American, told CNN as she topped two Bloody Marys with celery: ""I am first-generation American and I hate this country."" But would she move to the UK? ""Well, I supported Brexit and it sort of depends what happens there. The whole world really is just terrible,"" she said. Insurance exec: Don't manipulate Medicaid Alexandra Eidenberg, the president of an insurance company in Chicago, said she had been ""glued to the television"" following developments related to this week's health care vote and is happy the bill did not go through. ""I don't think the Affordable Care Act is working the way it should and clearly there are a lot of issues with the ACA that are not serving the American people, high rates included,"" Eidenberg said. ""But the bill put out by Ryan and Trump would have manipulated Medicaid and done things to any community that were going to cause a lot of issues for the states."" Eidenberg remains optimistic that something positive will come out of today's failure to enact change to the health care system. ""The turmoil in health care is finally creating such an uproar in people that I think we may see something actually get done."" Obamacare could be better, business owner suggests Nick Patel, a 65-year-old business owner from Nashville, Tennessee, said he thinks Obamacare needs to be beefed up. But if a new health care bill is to pass it would need revisions, he said. ""There has to be a lot of changes in the health care bill to go through so everyone can benefit,"" he said. Patel, who works in the hospitality industry, had two suggestions. ""They need to bring down the cost of medicine and insurance,"" he said. They should have voted, California man says Curtis Chipley wrote on Facebook that a vote would have been telling. ""So after watching 45 (President Trump) ramble on about the vote, and blah blah blah, he says, 'We were close very close, maybe 10, 15 votes from winning,' how will the American people EVER know how close the vote would have been,"" Chipley wrote. Pulling the bill showed a lack of transparency, said Chipley, who lists his home as French Gulch, California. ""If you really want to be honest you should have let the vote go on, and deal with the aftermath but of course you didn't,"" he wrote.", -3300,2017/3/24,http://www.cnn.com/2017/03/24/politics/paul-ryan-health-care/index.html,What's next for Paul Ryan?,Washington (CNN)House Speaker Paul Ryan conceded the biggest defeat of his political career Friday: Republicans have failed to repeal and replace Obamacare.,"And after nearly three full months into the year, he now has to face a head-on a challenge that is likely to haunt his tenure as speaker for the foreseeable future: seemingly irreconcilable differences among his fellow Republicans. ""Moving from an opposition party to a governing party comes with growing pains,"" Ryan told reporters Friday. ""And well, we're feeling those growing pains today."" The stunning setback was particularly excruciating for the 47-year-old, who made his name in Washington as a conservative policy wonk committed to repealing the Affordable Care Act and ascended to the powerful position of House speaker in fall 2015. The bill that too many of his fellow colleagues ultimately rejected was based on Ryan's signature policy agenda, called ""A Better Way."" ""I don't know what else to say other than Obamacare is the law of the land. It'll remain law of the land until it's replaced,"" he said. ""We're going to be living with Obamacre for the foreseeable future."" It's a rough reminder that life is different for Ryan now than before Trump was elected. During the Obama administration, the Republican-controlled House could pass message bills that would repeal Obamacare with impunity, knowing they would die in the Senate or be vetoed by the President. ""This is how governing works when you're in the majority. We need to get 216 people to agree with each other to write legislation. Not 210. Not 215,"" Ryan said at Friday's press conference. ""We were close but we didn't have 216 people. That's how legislating works."" RELATED: Dems gleeful after Obamacare victory Even before the decision to pull the health care bill, Republican lawmakers were worried about the impact of a potential defeat. New York Rep. Chris Collins said Friday afternoon prior to the cancellation of the vote that if the health care bill fails, it would leave a ""black eye"" on his party's ability to legislate. ""If we don't pass this, I personally don't think we pass a 2018 budget. We couldn't pass a 2017 budget. So if we couldn't pass a 2017 budget and this happens today, how are we going to pass a 2018 budget?"" he said. ""And that's the vehicle for tax reform. And if you don't do tax reform, where does the money come from for infrastructure? That's how critical this vote is today."" But both Trump and Ryan say they plan to go to tax reform next. Ryan spoke alone from behind the podium, and he was not flanked by any of the Republican colleagues or White House officials who had furiously worked with him for weeks to try to get the health care legislation through the House. And while questions are being raised about Ryan's relationship with Trump, the two have publicly insisted that they have a healthy dialogue. The Wisconsin Republican said he had directly informed Trump that he did not have the votes, and that the President accepted his recommendation that Republicans yank the bill. Trump publicly blamed Democrats -- not the speaker -- for Friday's failure. ""I like Speaker Ryan. He worked very hard,"" Trump said from the Oval Office. RELATED: Trump ready to cast blame But it will take more than platitudes to unite his party, especially after both conservative and moderate factions demonstrated their strength this week. The GOP's internal divisions were Ryan's gravest challenge, and one he never came close to resolving. Members of the conservative Freedom Caucus refused to get behind the bill, referring to leadership's proposal as ""Obamacare Lite"" that simply didn't go far enough in gutting the law. But when Ryan and his deputies attempted to appease that faction by offering to go further than their original bill in gutting Obamacare, that only irked the more moderate lawmakers in the House conference. In the final days, Ryan worked around the clock to try to bridge the two factions, holding back-to-back meetings and one-on-one sessions. But the differences could not be reconciled. ""We came really close today, but we came up short,"" Ryan said at a news conference. ""I will not sugarcoat this. This is a disappointing day for us.""", -3301,2017/3/23,http://www.cnn.com/2017/03/24/europe/last-photo-officer-keith-palmer-trnd/index.html,London attack police officer pictured hours before death,"(CNN)Staci Martin took many pictures during her first trip to London this past week, but there's one she'll never forget.","Curious about the police officer standing guard outside the Houses of Parliament in Westminster, Martin asked for a photograph with him. Soon after, the area would be engulfed in horror, and Keith Palmer, the 48-year-old police officer who smiled politely for her photograph would be dead. Martin, who is from West Palm Beach, Florida, traveled to London to visit her son who is studying abroad. While taking a tour of the city, her son showed her Parliament. Martin spotted an officer and was intrigued by his hat, so she asked to take a photo. ""I asked the officer if a photo was OK,"" Martin told CNN. ""He said yes, and I asked him if this happens a lot. He told me, 'It happens quite a bit.'"" She and her family left to eat lunch a block away. When they were leaving the lunch, the attack happened. The family didn't see the attack. ""We called an Uber after lunch and when the Uber turned the corner, a man came up to the window yelling at our driver that there was a shooting,"" she said. ""Initially, it was panic and chaos since it had just happened."" Back at the hotel later in the day, Martin saw the news about the attack and was wondering if the officer she took a photo in was safe. ""We saw the picture on the news and was like I think that the same officer. We zoomed in on the photo and realized it was Palmer,"" she said. ""I want to get this picture to his family and I want people to know what a nice person he was and how fragile life can be.""", -3302,2017/3/25,http://www.cnn.com/2017/03/24/europe/london-attack/index.html,London attack inquiry focuses on radicalization of perpetrator,"Birmingham, England (CNN)Police investigating the deadly terrorist attack in central London are focusing closely on how the perpetrator became radicalized, as they battle to piece together his identity and connections.","Britain's most senior counter-terror police officer, Mark Rowley, described the inquiry as ""very large and fast-paced,"" and announced two ""significant arrests"" Friday. Hundreds of officers had made contact with thousands of witnesses, he said. Authorities had earlier portrayed the attacker, 52-year-old British man Khalid Masood, as having acted alone. It was unclear whether the arrests indicated that Masood may have had associates. Masood is known to have used multiple aliases during his life. He was born Adrian Russell Ajao but also used the name Adrian Elms, police said. Asked about his possible conversion to Islam and subsequent radicalization, Rowley said: ""Clearly that's the main line of our investigation, is what led him to be radicalized, was it through influences in a community, influences from overseas, or through online propaganda."" He appealed for anyone who knew Masood well or was aware of his recent movements to get in touch, as detectives probe his motivation, his preparation for the attack and any associates. Arrests and raids Of 11 people arrested so far, two remained in custody as of late Friday, London's Metropolitan Police said. The two in custody are a 58-year-old man and a 27-year-old man, police said. Both men were arrested Thursday in Birmingham, according to police. All but one of the people brought in were detained on suspicion of preparation of terrorist acts. Arrests were made in London, Birmingham, central England, and Manchester, north west England, police said. Addresses were searched in Brighton, on the south coast of England, Surrey, to the west of London, and in the county of Carmarthenshire, in Wales. Two searches continue in Birmingham and one in London. Officers have seized 2,700 items, including ""massive amounts"" of computer data, and have had contact with 3,500 witnesses to the attack, many of them of different nationalities, Rowley said. The number of armed officers remains at nearly double strength in London in the wake of the attack, Rowley said, while extra police officers are also on patrol elsewhere in the UK. Details about killer Details are gradually emerging about Masood, who was shot dead by a police firearms officer after he rammed a car into pedestrians on Westminster Bridge and stabbed an unarmed police officer outside parliament. Police searched a property in the Winson Green area of Birmingham, where Masood is thought to have been living with his family until last December. Police could be seen Friday carrying boxes from the property, a modern, redbrick town house in a quiet cul-de-sac. Marjoli Gajecka, 26, told CNN she had seen Masood and his family often when she visited her mother, who lives on the street. Masood kept to himself, she said, adding: ""He was never really talkative with neighbors."" She said Masood had two children, a boy and a girl, whose ages she estimated at six or seven. She was ""very shocked"" by the news he had carried out the attack, she said, ""because they just seemed a normal family, a normal Muslim family."" Gajecka said she saw Masood and his family moving out of the house around Christmas time. They are thought to have relocated to a shabby looking flat above a Persian restaurant on busy Hagley Road, which was also raided by police Thursday. Masood stayed in a $75-a-night hotel in Brighton, about 55 miles south of London, for several nights before the attack, staff said. The reception manager at the Preston Park Hotel told CNN that he came across ""as an absolutely normal client."" The employee, who did not give her name, said she saw the name Masood on his credit card. She said the hotel didn't asked for his ID, in line with its normal practice. Born in Kent, Masood had previous convictions, including some for violent offenses but none for terrorism, police said. His most recent conviction was in 2003 for possession of a knife. Asked about reports Masood worked as an English language teacher, Britain's Department for Education said that according to their records Masood was not a teacher in any English language school. Because of his criminal record, he would not pass the necessary checks to become a qualified teacher. Did London attack expose city's 'weak spot'? Attack victims The attack left four people dead and injured at least 50 more, 31 of whom needed hospital treatment, Rowley said. Two people are in critical condition and another has life-threatening injuries. Two police officers who were injured as the attacker plowed through crowds walking across Westminster Bridge also remain in hospital with ""very significant"" injuries, Rowley said. The fourth victim, a 75-year-old man, died Thursday night after his life support was withdrawn, according to London's Metropolitan Police. He was named by Rowley as Leslie Rhodes, from Streatham in south London. The other three who died were policeman Keith Palmer, stabbed as he protected Parliament, American tourist Kurt Cochran and college administrator Aysha Frade, a British citizen with Spanish roots. The Romanian Foreign Ministry said a Romanian woman remained in critical condition after undergoing complicated surgery for her injuries. London victims: Police officer, teacher, American tourist killed Two members of Parliament have been honored by Queen Elizabeth II for their heroics in the attack, Downing Street announced Friday. MP Tobias Ellwood, who tried to save the life of Palmer, and Security Minister Ben Wallace, who helped coordinate the government's response, have been approved as members of the queen's Privy Council. Ellwood and Wallace will now be entitled to be referred to as ""right honorable"" as members of the group of advisers to the monarchy that includes present or former members of the House of Commons or House of Lords. Vigils and defiance A vigil was held in London Thursday in a show of solidarity and mourning for the victims. ""We come together as Londoners tonight to remember those who have lost their lives and all those affected by the horrific attack yesterday. But also to send a clear message, Londoners will never be cowed by terrorism,"" London Mayor Sadiq Khan told the crowd. Khan laid a wreath Friday at New Scotland Yard in remembrance of Palmer, the slain police office. A fundraising campaign for attack victims started by a Muslim man who witnessed the incident has already raised over $25,000, according to its website. Muddassar Ahmed said he started the ""Muslims United for London"" campaign to show ""we all stand with fellow Londoners during these difficult times.""", -3303,2017/3/25,http://www.cnn.com/2017/03/24/europe/khalid-masood-london-attacker-profile/index.html,Khalid Masood: from sporty teenager to murderous extremist,"Birmingham, England (CNN)Khalid Masood, the man responsible for the worst terrorist attack in London in over a decade, kept to himself in recent years, neighbors say. But he had a checkered past involving a series of aliases and a string of convictions for violence and possession of weapons.","Police kept his identity quiet at first as they sought to track down his associates and search related properties. But a fuller picture is now emerging of the 52-year-old who, on Wednesday, drove an SUV onto a sidewalk on Westminster Bridge, killing four people and injured dozens more before being shot dead by a firearms officer just inside the grounds of the Houses of Parliament. The early years Born in Britain on December 25, 1964, in Kent, south-east England. His birth name was Adrian Russell Ajao, although he went on to use multiple aliases. As a boy, Adrian Ajao -- as he was then known -- was a popular pupil who ""liked to party"" and was a keen soccer player, former high school classmate Stuart Knight, told Britain's Press Association news agency. The pair attended Huntleys Secondary School for Boys in the well-heeled town of Tunbridge Wells, Kent, for five years, Knight said. They left the school -- which has since closed -- in 1981. An undated school photo shows Ajao, smiling and with his arms folded, with members of a soccer team. ""He was a very nice guy, down-to-earth, liked by everyone around him,"" he told PA. ""There was nothing unassuming about him, he was a very good sportsman, his mother was a Christian, he was an all-round nice guy."" Criminal convictions It's not clear how Masood developed from being a well-liked, athletic schoolboy to a man with a string of criminal convictions. But according to police, his first conviction -- for criminal damage -- was in November 1983, when he would have been 19. This was followed by convictions for assaults including causing grievous bodily harm, possession of offensive weapons and public order offenses. His most recent conviction was in December 2003 for possession of a knife, police said. However, he had not been accused of any terrorism offenses. Police first identified him as Khalid Masood, but said he had also gone by the name Adrian Elms. A report published in November 2000 in the East Sussex newspaper The Argus said Adrian Elms, then 35, was given a two-year prison term for slashing the face of a cafe owner in an argument in a pub. According to the report, Elms, from the village of Northiam, near Rye, admitted charges of unlawful wounding and criminal damage at Hove Crown Court. He was one of only two black men living in the village at the time and there were ""racial overtones"" to the row, the court heard. ""His wife and family have now become ostracised in the village. It is a very small community and his wife and family have been extremely affected by this, his lawyer, Alexander Taylor-Camara, told the court. ""He will effectively have to move his family from the village and start to live his life all over again. It will leave the village with a view of black people in the area. The trust that may have been there in the beginning is now completely lost."" Birmingham connections After leaving prison, Masood appears to have moved around over the years. His most recent connections are with Birmingham, in central England. Police searched two properties where Masood and his family are thought most recently to have lived, in the Winson Green and Hagley Road areas of Birmingham. Eight of the 11 arrests made as of Friday afternoon in connection with the investigation were in Birmingham. Police were seen Friday carrying boxes from a modern, redbrick town house in a quiet cul-de-sac in Winson Green. Masood is believed ti have lived there until December. Marjoli Gajecka, 26, told CNN she had seen Masood and his family often when she visited her mother, who lives on the same street. Masood was calm and kept to himself, she said, adding: ""He was never really talkative with neighbors."" She said Masood had two children, a boy and a girl, whose ages she estimated at six or seven. She was ""very shocked"" by the news he had carried out the attack, she said. ""They just seemed a normal family, a normal Muslim family. We never suspect anything. It's just a shock."" Masood wore ""Islamic clothes"" most of the time, Gajecka said. A woman she presumed to be Masood's wife wore a veil with just her face uncovered. She also saw the young girl wearing a headscarf. Masood and his family would not have stood out in this multicultural, diverse neighborhood. People are close here, popping in and out of each other's homes. Some voiced shock over how the atrocity in Westminster had been brought to their doorstep. About two miles south, on busy Hagley Road, is the apartment above a shop where Masood and his family are thought to have moved at the end of the year. Several arrests were made at the property after police raided it Thursday. Raviyar Sedighi, who owns the shop below the flat, told CNN he recognized Masood and that ""he was a normal customer, normal man."" He knew him as a ""bodybuilding man,"" Sedighi said, going to the gym and buying energy drinks. Sometimes Masood wore a cap, at other times he wasn't dressed in Islamic dress, he said. Radicalization The wide-ranging police inquiry into Masood's connections is focused on how he became radicalized. Asked about his possible conversion to Islam and subsequent radicalization, Britain's top counterterror officer, Mark Rowley said: ""Clearly that's the main line of our investigation, is what led him to be radicalized, was it through influences in a community, influences from overseas, or through online propaganda."" Prime Minister Theresa May said the attacker was known to authorities for links to ""violent extremism."" He was investigated ""some years ago"" by security services, but was regarded as a ""peripheral figure,"" May told the House of Commons. He was not part of the ""current intelligence picture,"" and authorities did not know he was about to mount an assault. A UK official told CNN that Masood's age was not typical for an ideologically-driven attacker: ""52 is interesting. Not the usual young pup profile."" The ISIS-linked Amaq news agency asserted the attack was carried out by one of its ""soldiers."" But that does not necessarily mean the group had any direct connections to Masood, whom it did not name.", -3304,2017/3/24,http://www.cnn.com/2017/03/24/europe/dead-russians/index.html,"Five months, eight prominent Russians dead",Washington (CNN)The brazen daytime slaying of a Russian politician outside a Ukrainian hotel this week brings to eight the number of high-profile Russians who have died over the past five months since the US presidential election on November 8.,"Among the recent deaths were five Russian diplomats. Some of the deaths appeared natural and governments have ruled out foul play. In some cases, though, questions remain. That's either because the facts have changed over time, details are hard to come by, or the deaths are still under investigation. Self-proclaimed online sleuths and conspiracy theorists have filled the information void with speculation that the deaths were somehow related to Russia's interference in the 2016 presidential election. No evidence has surfaced to make such a connection. Here's a rundown of the eight deaths-and one near fatality: Russian politician who fled to Ukaine shot dead Denis Voronenkov, 45, was gunned down Thursday outside a hotel in Kiev. Voronenkov and his wife both spoke out against Putin after they left Russia for Ukraine in October. Voronenkov also helped Ukraine in its ongoing fight against Russian influence, testifying in a treason trial against ex-Ukrainian President Viktor Yanukovych, who was perceived as a puppet politician for Russian President Vladimir Putin. Ukraine's president called the shooting a ""Russian state terrorist act."" Russian authorities denied the accusation. Russian ambassador to the UN suddenly dies Vitaly Churkin, 64, Russia's ambassador to the United Nations, died on February 20 of an apparent heart attack. He was ""in his office fulfilling his duties"" when he died, according to a statement from the Russian mission at the UN. Russian ambassador to India dies after brief illness Alexander Kadakin, 67, the Russian ambassador to India, died on January 26. A spokeswoman for the Russian embassy in New Delhi said that Kadakin died after a short illness and that there was nothing ""special or extraordinary"" about the circumstances that led to his death. Kadakin had worked in India since 2009. Indian Prime Minister Narendra Modi described him as ""a great friend of India"" who worked hard to strengthen relations between the two countries. Russian diplomat found dead in Athens Andrey Malanin, a senior diplomat at the Russian embassy in Greece, was found dead in early January. Malanin, 54, was the head of the Russian embassy's consular section in Athens. Police sources told CNN that worried colleagues called authorities after Malanin didn't show up to work for a few days. Police entered his apartment on January 9th and found him dead on his bedroom floor. Initial reports from Greek police suggested Malanin died suddenly from natural causes. Two Greek police officials said foul play was not suspected. An investigation remains underway. Former intelligence official found dead in his car Oleg Erovinkin, who had close ties to Russian intelligence, was found dead on December 26 sitting in his car on the streets of Moscow. Russian news outlets reported that he was 61 years old. Russian government agencies have not released an official cause of death. He was a former general in the Russian law enforcement and intelligence agency known as the FSB. He also served as chief-of-staff to Igor Sechin, the president of state-owned oil giant Rosneft. Sechin enjoys a close relationship with Putin that dates back to the 1990s. Because of Erovinkin's background, conspiracy theorists and Russia watchers have speculated that he might have been a source of information in the 35-page dossier that detailed alleged links between the Trump campaign and Russia. No evidence has emerged to firmly substantiate those claims. Diplomat fatally shot in back Russian ambassador to Turkey, Andrey Karlov, 62, was assassinated in Ankara on December 20. He was shot at point-blank range by a gunman while speaking at an art exhibition. The shooter, who was a Turkish police officer, shouted ""do not forget Syria"" during the assassination. Russian diplomat shot to death in Moscow The same day as Karlov's killing, Petr Polshikov, 56, a senior Russian diplomat, was shot to death in his Moscow home, according to Moscow newspaper Moskovskij Komsomolets. The paper said Polshikov's wife found him in their bedroom with a pillow over his head. Underneath the pillow, police found Polshikov with a head wound. A spokesman from the Russian Foreign Ministry said Polshikov's death was likely an accident and had nothing to do with his official government duties, according to Russian news outlet REN-TV. Russian official in NYC dies on Election Day On the morning of the U.S. election, November 8, about an hour after the first polls opened in New York City, police received a 911 call about an unconscious man inside the Russian consulate. When they arrived, they found Sergei Krivov, 63, unresponsive. Emergency responders declared him dead at the scene. Krivov, who was born in Russia, had served in the consulate as duty commander involved with security affairs, according to Russian news reports. Russian consular officials first said Krivov fell from the roof. Then, they said he died of a heart attack. The initial police report filed on the day of the incident said Krivov was found ""with an unknown trauma to the head,"" according to a New York Police Department spokesman. However, after conducting an autopsy and finishing its investigation, the New York City Medical Examiner ruled that Krivov died from bleeding in the chest area, likely due to a tumor. Police sources said foul play wasn't suspected and that Krivov had been in poor health. Russian lawyer for whistleblower is nearly killed Earlier this week, a private Russian lawyer on an anti-corruption crusade reportedly fell from the fourth floor of his Moscow apartment. Nikolai Gorokhov, 53, was near death with ""severe head injuries"" and remains in a hospital's intensive care unit, according to his friend, investor Bill Browder. Gorokhov represented Sergei Magnitsky, a fellow Russian lawyer who exposed Russia's largest ever tax fraud -- and was later jailed and beaten to death in a Moscow detention center. Gorokhov continued his client's fight.", -3305,2017/3/25,http://www.huffingtonpost.com/2017/03/25/bill-maher-donald-trump-conman_n_15599410.html,"Bill Maher Rips 'Conman' Donald Trump For Taking Americans ""lor A Ride""?,""I would say Trump was a used car salesman"," but with a used car salesman at least you get a car.""""""","Bill Maher tore into Donald Trump on Friday, dubbing the president a conman who always fails to deliver on his much-hyped promises. For his ""new Rule""?segment, the ""real Time""?host cited various pledges Trump made during his 2016 election campaign to sway voters ""?but which he predicts will in all likelihood never come to fruition. ""I would say Trump was a used car salesman, but with a used car salesman at least you get a car,""?said Maher. ""With Trump, you don""t get any car but you definitely get taken for a ride.""?Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -3306,2017/3/25,http://www.huffingtonpost.com/2017/03/25/bill-maher-donald-trump-gop-obamacare-repeal_n_15599316.html,Bill Maher Scorches GOP And Donald Trump Over Failed Obamacare Repeal,"""Oh, this looks bad for Trump. You know how Putin feels about failure.""","Bill Maher dissected the GOP's failure to repeal and replace Obamacare on Friday. After House Republican leaders pulled their bill to repeal the Affordable Care Act earlier in the day, the ""real Time""?host said it ""looks bad""?for President Donald Trump. -""You know how Putin feels about failure,""?he quipped. Maher said House Speaker Paul Ryan (R-Wis.) had succeeded in writing a bill that ""somehow covered fewer people than just repealing Obamacare,""?before suggesting the GOP should probably admit ""Crafting legislation is not their thing.""?Check out the full segment above. Don""t be the last to watch the viral video everyone is talking about. Learn more", -3307,2017/3/24,http://www.huffingtonpost.com/2017/03/25/inspector-general-trump-health_n_15599152.html,Inspector General Probing Trump Move To Pull Obamacare Enrollment Ads,Ending outreach likely stealth strategy to starve health plan of customers.,"The inspector general of the Department of Health and Human Services has launched an investigation into the Trump administration's move to yank ads that encouraged people to sign up for the Affordable Care Act during the enrollment period. By shutting down such outreach, the action could be seen as a stealth way to starve the health plan without legislative authority. The Trump administration insisted the ads were a waste of money, but Democrats have characterized the action as sabotage. In response to a request to investigate the actions from Sen. Patty Murray (D-Wash.) and Sen. Elizabeth Warren (D-Mass.), the inspector general said his office is conducting a-""Hact-finding""?review, the Hill reported. The office will examine exactly what was done and when by the administration, and its effect on enrollment in the health plan, according to a letter written to the senators Thursday.-Dwindling numbers of consumers enrolled in any insurance undermines an affordable risk pool ""We will conduct a fact-finding review of HHS's decision related to halting (and resuming, as applicable) paid advertisements, email, social media, and other outreach efforts related to marketplace enrollment in 2017,""?HHS Inspector General Daniel Levinson wrote in the letter to the senators. Warren welcomed the ""independent review of the Trump administration's decision to cut off efforts to enroll people""?in the Affordable Care Act. The health deparment's ""move to halt outreach for ACA enrollment could contribute to weakening healthcare marketplaces and raising costs for hard working people across the country,""?she added. Obamacare remains the ""law of the land,""?Sen. Paul Ryan (R-Wisc.) said Friday after the GOP health plan was pulled before a vote because Republican leaders did not have the support needed-to pass it. Enrollment may have been hurt when the Trump administration suddenly ended the ads and other outreach in late January just days before the end of open enrollment in Obamacare. Some 12.2 million Americans signed up for the plan during the enrollment period through HealthCare.gov and state insurance markets, but that was lower than expected. Now that he has lost his fight to pass his own version of a health insurance system, Trump has repeated his plan to let the Affordable Care Act ""explode,""?which could include further plans to discourage enrollment. Fears about the plan and the Trump administration's disdain for it could also drive consumers away, which could be seriously damaging to the health plan system. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3308,2017/3/24,http://www.huffingtonpost.com/2017/03/24/china-counterfeit-condoms_n_15597402.html,"U.S. Agents Seize 40,000 Counterfeit Condoms In Puerto Rico","They likely don't work, and the materials could be hazardous, officials warn.","U.S. federal agents have confiscated 40,000 items that consumers hope are never fake: condoms. The counterfeits were seized in San Juan, Puerto Rico, officials said. The condoms were manufactured in China, according to a U.S. Customs and Border Protection statement-Thursday. They were seized over a period of five days by Food and Drug Administration and Homeland Security officials and Immigration and customs agents. Federal officials warned that counterfeit condoms will likely not protect against pregnancy and sexually transmitted diseases, and the materials they are made with can also cause health problems. ""Counterfeit condoms, as well as cosmetics and beauty products, unlike legitimate brands, are not subject to strict quality controls and may contain substances that could lead to long-term health problems,""?said the statement from customs. ""In the past, seized cosmetics have been found to contain hazardous substances including cyanide, arsenic, mercury, lead, urine and rat droppings.""?Ricardo Mayoral, a special agent who oversees Homeland Security investigations throughout Puerto Rico and the U.S., added, ""the trafficking of counterfeit goods is simply illegal, and in some cases, as this, it becomes a problem of public health.""?In 2013--a massive international underground ring of counterfeit condom manufacturers was shut down in China after almost 5 million condoms with fake brand names were found as they were-about to be shipped out of China, reported ABC News.- That same year,-110 million counterfeit condoms shipped to Ghana from China were confiscated. At least 1 million had been delivered to Ghana's health agency to distribute, The Guardian reported. ""When we tested those condoms, we found that they are poor quality, can burst in the course of sexual activity, and have holes which expose the users to unwanted pregnancy and sexually transmitted disease,""?a Ghana official told The Guardian. Don""t miss out ""?be the first to know all the latest and breaking news. Learn more", -3309,2017/3/24,http://www.huffingtonpost.com/2017/03/19/detroit-entrepreneur-seeks-to-open-black-owned-grocery-store_n_15594178.html,Detroit Entrepreneur Seeks To Open Black-Owned Grocery Store,Raphael Wright is taking matters into his own hands.,"Although the city of Detroit is experiencing an electrifying period of urban revitalization, many residents believe that the city's economic renaissance has yet to reach the-neighborhoods-outside of the downtown and midtown areas. Raphael Wright is looking to help change that. Wright, 28, is a local entrepreneur and investor from Detroit. He is the founder of Urban Plug L3C, an organization designed to build wealth within Detroit's inner city through creating group investing platforms.- Wright is looking to take on his biggest venture yet: opening a black-owned grocery store on Detroit's east side. ""I'm still in Detroit. So I walk outside, I still see so many people struggling, particularly in the African-American community, so much poverty and no real accumulation of wealth in the inner cities,""?Wright told HuffPost of the city, which is over-80 percent black. ""It's a graveyard.-We want to introduce group investing to the black community in the inner city.""?Wright and his partner, Theo Easter, decided to take matters into their own hands. ""ourgoal is to build up the inner city, particularly among our minority population,""?Wright said. ""But at this same time, we want to tackle social issues inside the community as well.""One of the social issues they want to tackle is community wellness.-Wright was diagnosed as diabetic at the age of 19.- ""We both had a passion toward food and health. We both decided to help tackle the problem of food deserts in the inner city, so we wanted to create a grocery store,""?Wright said. ""For one, we wanted to provide high quality food in the inner city but wanted to also introduce our group investment platform through this venture.""?Although Detroit's status as a ""Hood desert""s highly debated, it is difficult for the average resident without a car to get to a grocery store, due to issues of crime or lack of public transportation. Studies have found that food accessibility-and the difficulty to obtain food is a serious problem in Detroit. Wright is currently raising money to fund the costs for a grocery store. He has raised over $11,000 so far through GoFundMe, but is looking to raise $100,000.- Programs like Motor City Match-will help Wright refine his goals. Motor City Match, introduced in 2015, helps Detroit-based entrepreneurs find funding and real estate in order to grow their business in the city.- Wright earned a Motor City Match plan award, which gave him access to free business planning coursework that will eventually help guide his venture. ""Totor City Match is a great tool for entrepreneurs in Detroit,""?said Michael Rafferty, vice president of small business development for the Detroit Economic Growth Corporation. ""It can help entrepreneurs with developing a business plan, selecting a real estate location within the city, securing funding, and a wealth of other tools.""Motor City Match has awarded roughly $3 million in grants to more than 60 Detroit-based businesses and over 500 entrepreneurs, according to Crain's Detroit Business. Wright plans to eventually open up this grocery store, build it up as a successful business, sell half of the store to community organizations and neighborhood associations, and then use those funds to eventually open a chain of grocery stores.- ""We're kinda got like a three-year window,""?he said. ""the idea is that, in three years, we would have built this store up to what it needs to be while at the same time, while incorporating different media initiatives and different social projects, build this community up to a cohesive team and a corporate partnership.""?Wright says the group investing methods other minority groups have encouraged him to pursue this grocery store. The Mexicantown neighborhood in southwest Detroit, for example, is a model of the burgeoning success of Latino-owned businesses-within the city. ""the methods that they have taken to stay together and keep their communities up and vibrant, we have studied those practices and strategies, and we want to apply them to the Black community,""e said.-""the informal banking system that they have, the money pooling system, the way that they keep their neighborhoods clean and keep the businesses running and surviving.""?Wright also has some advice for young entrepreneurs. ""I want to let people know that you don""t have to turn to a life of crime, especially those that come from where we come from,""?he said. ""Pursue your ideas. Get a mentor. Keep your eyes and ears open.""?Stay plugged in with the stories on black life and culture that matter. Learn more", -3310,2017/3/25,http://www.huffingtonpost.com/2017/03/24/trump-trumpcare-kushner_n_15593404.html,Trump Reportedly Miffed At Kushner For Skiing As Trumpcare Crashed,Trump's son-in-law jetted to Aspen with other family members during the crucial week.,"President Donald Trump is reportedly irritated that his top adviser and son-in-law Jared Kushner took a family ski vacation to Colorado while the GOP's Trumpcare health plan was going down in flames. Kushner and wife Ivanka Trump and their three kids were photographed hanging loose in Aspen this week as Trump and congressional Republican leaders worked in Washington to-save their Obamacare replacement. The measure failed to gain enough support to pass the House and was withdrawn before a vote on Friday. CNN, citing an unnamed source close to the president, reported Trump was ""upset that his son-in-law and senior adviser was not around during this crucial week.""?The White House denied Trump was angry at Kushner, but it was clearly an all-hands-on-deck kind of week. Even the president skipped his customary weekend trip to his Mar-a-Lago resort in Florida. White House press secretary Sean Spicer said the president ""left everything on the field""?trying to get the health care measure passed. He relied on other close aides, including chief strategist Steve Bannon, Chief of Staff Reince Priebus, Vice President Mike Pence (who cancelled his trip to the NCAA finals Friday), and senior adviser Kellyanne Conway. Kushner joined his family in Colorado on Monday, after they had already left for a ski vacation, according to CNN. The trip included Donald Trump Jr. and his family, and Eric Trump and wife Lara.- Ski trip for @IvankaTrump & her family-of-five in Aspen, Colorado - https://t.co/oogFim2sCH pic.twitter.com/oI16NEdJTs Ivanka Trump also was missing from her father's side during the critical week, even though a West Wing office has been prepared for her. She did, however, post Instagram notes about White House events from Colorado. Vanity Fair noted the couple pulled a ""lanishing act""?on Trump during a week that could ""make or break the Trump presidency.""?�?A post shared by Lara Trump (@laraleatrump) on Mar 21, 2017 at 9:37am PDT While Kushner and Ivanka Trump were in Aspen, The Washington Post reported that the Secret Service had requested an additional $60 million-to keep up with the Trumps""?trips and living situations. The Aspen Times reported that agents spent thousands of dollars on ski equipment in order to guard the Trumps on their vacation. Expensive trips like the ski vacation by Trump's grown children, the president's frequent jaunts to Mar-a-Lago, and first lady Melania Trump's base in Trump Tower in Manhattan with their son, Baron, are costing the American taxpayers a bundle.- https://t.co/YhLpSFgxJh @nytimes The Trump's continue to waste taxpayer's money for weekend golf trips, Trump Towers, Aspen vacation. An Instagram post from Aspen by Lara Trump drew several critical comments about the cost of the trip and the crew's abandonment of Washington during the Trumpcare showdown.- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3311,2017/3/25,http://www.huffingtonpost.com/2017/03/24/joe-biden-gop-health-care_n_15592458.html,Joe Biden Regrets Not Becoming President,"In a speech Friday, he also opened up about the mistakes Democrats made in the 2016 campaign.","Former Vice President Joe Biden-spoke candidly Friday about his decision to stay out of the 2016 presidential race, saying that while he still believes he did what was best for his family, he also regrets not becoming president.- Biden, speaking at Colgate University in Hamilton, New York, said he believed he could have been the Democratic nominee in 2016. ""I had planned on running for president and although it would have been a very difficult primary, I think I could have won,""?he said. ""Taybe not, I don""t know.""?But the former vice president said he ""lost a part of [his] soul""?when his son, former Delaware attorney general Beau Biden, died in 2015 of brain cancer. Beau, the former vice president said, had urged his father to run, but the elder Biden felt it would be too much of a strain on the rest of his family. He ultimately decided against running roughly five months after his son's death.- Biden was visibly emotional while talking about his late son, calling him ""the finest man I""ve ever known in my life.""?He said while he doesn""t regret spending time with his family rather than on the campaign trail after Beau's death, he still thinks about what could have been. ""do I regret not being president? Yes,""?he said.- The former vice president has previously hinted he may pursue the presidency in 2020. Watch Biden's full speech here. Biden did offer praise for the 2016 Democratic nominee, Hillary Clinton, calling her ""extremely well qualified""?for the role. But he also said Democrats made several fatal mistakes throughout the campaign ""?chiefly, not ""paying enough attention""?to working-class voters and spending most of the campaign criticizing Donald Trump rather than touting policy programs. He also criticized the media for largely covering the more sensational aspects of the campaign. Biden's speech, which largely focused on how to bolster the middle class in the face of digital innovation, was one of his first major public appearances since leaving office in January. The former vice president also spoke on the failure of the Republican plan to repeal and replace the Affordable Care Act, saying the GOP was so focused on repealing former President Barack Obama's signature law that they missed an opportunity to reform the legislation and make it better.- He predicted that future battles would play out similarly if Trump ignores the ways in which ""the public has moved beyond their government,""?noting the country's progress on issues like same-sex marriage. ""Everyone's entitled to their own opinions, but they'r not entitled to their own facts,""?he said. ""those fights that he wins on these issues will cause [the GOP] to lose in 2018.""Later in his remarks, he argued that the failed vote shows the necessity of electing members of Congress willing to challenge the president. ""It's hard to stand up to a president,""?Biden said. ""It's hard to be the deciding vote.""?Earlier this week, Biden appeared at a rally at the U.S. Capitol in opposition to the GOP health care bill, where he predicted the legislation would fail. And earlier in March, he spoke at the SXSW festival in Austin, Texas, on his fight to cure cancer. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3312,2017/3/25,http://www.huffingtonpost.com/2017/03/24/house-republicans-obamacare-repeal_n_15591988.html,Warring GOP Factions Killed Trumpcare,"After years of promising to repeal Obamacare, the ""growing pains of governing"" brought down Republicans.","WASHINGTON ""?they're been vowing to do it for seven years. they're held more than 50 symbolic votes to give the appearance that they were doing it. After they won the White House in November, they said nothing else stood in the way of getting it done. And yet, on Friday, Republicans failed to repeal the Affordable Care Act. It wasn""t because Democrats stopped them. It was their own undoing. President Donald Trump ""?aka ""the closer,""?according to White House press secretary Sean Spicer ""?couldn""t convince warring factions of House Republicans to get behind his bill. Nor could Speaker Paul Ryan (R-Wis.). Conservatives in the House Freedom Caucus scoffed at the legislation for not going far enough, demanding they completely gut Obama's signature health care law. Moderates opposed it because it kicked 24 million people off of insurance and levied heavy costs on older, low-income Americans. The process left Republicans pitted against each other. Leadership was trying to hurry it up before the whole thing went off the rails, while members wanted to slow down. Bill language was changed in the dead of night to win over one faction, which had the effect of alienating another faction. There were so many tweaks being made, it got to the point where, by Friday, some GOP lawmakers didn""t know what they were about to vote on. It was a train wreck waiting to happen. At a hastily called press conference Friday afternoon, Ryan chalked up the defeat to ""the growing pains of governing.""?""We were a 10-year opposition party where being against things was easy to do,""?Ryan told reporters. ""now, in three months time, we tried to go to a governing party.""?In hindsight, it wasn""t hard for lawmakers to see the whole thing collapsing. ""We were caught in a real vice here: the left of our conference believing one way, the right believing another,""?said Rep. Steve Womack (R-Ark.). ""the only thing they shared in common was that they were opposed, and the numbers sufficient to tank it.""?He predicted intra-party divisions would be ""An ongoing leadership challenge""?for Ryan and other top Republicans. ""With a 237-seat majority, we have to understand that we are no longer the party of no,""?said Womack. ""We have to learn how to govern, we have to learn how to set an agenda and be able to pursue that agenda.""?The frustration was palpable among some. Rep. Randy Weber (R-Texas) said Republicans have had years of practice passing Obamacare repeal bills, and even got one to President Barack Obama's desk once. Yet now, with Trump in the White House, they couldn""t cobble together the votes to pass something out of one chamber. ""Why can""t we do this ""?when we have a Republican president?""?Weber asked. ""It doesn""t make sense.""?Asked why Republicans couldn""t get it together,-Rep. Joe Barton (R-Texas) just shrugged. ""Because, as you well know sometimes you'r playing fantasy football, and sometimes you'r in the real game,""?he said. But others suggested the GOP is better off saving an Obamacare repeal debate for another day. Rep. Justin Amash (R-Mich.) defended the tactics used by the House Freedom Caucus, saying they ""Absolutely""?negotiated in good faith with Trump and Republican leaders. ""We reached out to the [moderate] Tuesday Group and others in our conference, but from the beginning of the process, I think the way it was set up did not bring the disparate parts of the conference together,""?Amash said. ""We need to start from the beginning, making sure all of the concerns are addressed.""?Rep. Chris Collins (R-N.Y.), a Trump loyalist, scolded moderates and conservatives for fighting the legislation. Moderates in swing states shared their fears with Collins that if they supported the bill, they didn""t think they would be re-elected. He wasn""t sympathetic. ""If this doesn""t pass, I know you'r not coming back,""?he told them. As for House Freedom Caucus members tanking the Obamacare repeal bill, Collins said it's time for them to learn how to get things done. ""they are still acting as though we are the opposition party,""?he said. ""You could say our conference hasn""t figured out yet how to be the governing party.""?Rep. Mark Meadows (R-N.C.), who chairs the Freedom Caucus and who made a big deal of his negotiations with Trump to reach a deal on the bill,-wouldn""t talk to reporters after the measure was pulled off the House floor. He put out a statement later saying he looks forward to working with Trump on a ""Hull repeal""?of Obamacare. It might take time for some lawmakers to get over Friday's setback. Rep. Mark Walker (R-N.C), who chairs the Republican Study Committee, spent the past few weeks lobbying colleagues to support the bill. He was visibly unhappy as he left a caucus meeting in the Capitol basement late Friday, and wouldn""t say if he thought there should be repercussions for the Freedom Caucus. ""Emotions are running high right now and that's usually a good sign not to go after anybody else,""?Walker said, walking quickly down a House hallway. ""I'm just disappointed.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3313,2017/3/25,http://www.huffingtonpost.com/2017/03/24/progressive-groups-neil-gorsuch-obamacare_n_15591806.html,Progressive Groups Want Obamacare Win To Stiffen Democrats' Spine In Supreme Court Fight,"The case for filibustering Neil Gorsuch just got stronger, they argue.","Progressive groups elated by the collapse of Republicans""?Obamacare replacement bill already have their sights on the next major battle: the fight to confirm President Donald Trump's Supreme Court nominee, Neil Gorsuch. They are hoping that the experience of drawing blood from Trump will inspire Senate Democrats to filibuster Gorsuch. Senate Minority Leader Chuck Schumer (D-N.Y.) declared his intention-Thursday to try to block the nominee. Still,-progressive leaders hope to amplify his call to arms by building on Friday's momentum. ""trump is not as strong as he thinks he is, and if Democrats stick together and stand on principle, they can beat him,""?said Joe Dinkin, national communications director of the Working Families Party, a labor union-backed Democratic faction. ""that is even more obvious with Gorsuch than it should have been on TrumpCare. Democrats alone can block him.""?Neil Sroka, communications director for the online progressive heavyweight Democracy for America, sounded a similar note. ""A victory like this one should certainly remind Senate Democrats of the power that comes from sticking together, something that will be exceedingly important for the Gorsuch fight,""roka said. Democracy for America's fellow digital activism outfit the Progressive Campaign Change Committee has asked those on its 1-million-person email list to bombard senators with calls demanding that Gorsuch be blocked. The mobilization has inspired thousands of calls to Capitol Hill, according to Kait Sweeney, PCCC's press secretary. Sweeney too believes that the defeat of the American Health Care Act, as the Republican legislation was known, should strengthen Democrats""?determination to block Gorsuch. Friday's repeal defeat showed how powerful Democrats can be if they are unified and fighting back against Trump and Republicans""?efforts to hurt working families. They have that same opportunity to do that with Gorsuch,""?she said.- Democrats ""should listen to what the grassroots are saying, and they'r saying: ""lilibuster this stolen SCOTUS nomination,""?said Alex Lawson, executive director of Social Security Works, which advocates for Social Security and Medicare expansion. ""Luckily, it seems like Schumer is listening, and I hope the others are as well.""Filibustering Gorsuch carries risks for Democrats, of course. Mainly,-the Republican Senate majority could vote to ""go nuclear,""?meaning it would abolish filibuster power altogether or, more narrowly, eliminate its use for Supreme Court nominees. But rank-and-file progressives and the organizations that they represent are so terrified of handing the highest court over to another hard-line conservative ""?and furious at Republicans""?refusal to consider former President Barack Obama's nominee Merrick Garland -that they are willing to test Republicans""?resolve. The Working Families Party, Democracy for America and PCCC were among the 24 national liberal organizations that sent a letter to Senate Democrats this week insisting that they block Gorsuch's confirmation. The letter was a response to reports-Wednesday that some Democratic senators were considering a deal with Senate Majority Leader Mitch McConnell (R-Ky.) to confirm Gorsuch in exchange for a promise to either preserve the minority's power to filibuster future Supreme Court nominees or restore its authority to filibuster lower court nominees. ""those advocating cutting this backroom deal have learned all the wrong lessons of the last election,""?the progressive organizations wrote in the letter to Senate Democrats. ""they would be turning their backs on the millions of people-among them your constituents""�who have taken to the streets, flooded town halls, and overwhelmed congressional phone lines in the last few months.""?It is not clear how much traction the compromise agreement is getting, however, since members of the Senate Democratic leadership were not part of the discussions. Schumer addressed the prospect of the filibuster being eliminated when he announced his intention to try to block Gorsuch. ""If this nominee cannot earn 60 votes ""?a bar met by each of President Obama's nominees and George Bush's last two nominees ""?the answer isn""t to change the rules. It's to change the nominee,""?Schumer said Thursday. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3314,2017/3/25,http://www.huffingtonpost.com/2017/03/24/dwight-howard-candy_n_15591592.html,Dwight Howard Used To Eat 24 Candy Bars A Day. Here's How He Stopped.,"That's around 5,500 calories a day, according to People.","Dwight Howard battled a severe candy habit-for around a decade, ESPN reported earlier this week. According to Dr. Cate Shanahan, the Lakers""?nutritionist who uncovered Howard's habit in early 2014 while he was with the team, the NBA player apparently consumed an average of 24 chocolate candy bars a day. People magazine estimated that equated to around 5,500 calories daily.- Shanahan told ESPN that because of Howard's habit, the then 27-year-old NBA was sluggish on the court and had difficulty healing from injuries. He also begun experiencing tingling in his legs and fingers, which the nutritionist suspected was dysesthesia, a painful neurological sensation.- Professor Laura Schmidt of the University of California, San Francisco School of Medicine told The Huffington Post that she's surprised the NBA was unaware of the extent of Howard's habit and how it affected his athletic performance.- ""shanahan was smart to start by cleaning up Howard's food environment""�that's a critical first step,""?Schmidt wrote via email. ""�Unfortunately you can""t exercise away the health harms of a poor diet. The health harms from excessive sugar intake range from fatty liver, to insulin sensitivity leading to diabetes and other cardiometabolic diseases.""?She added, ""me of the sugar he consumed would have been mobilized immediately as energy for all of his activity, which hopefully mitigated some of the adverse effects.""Howard was eventually able to quit his sugar habit-by getting rid of all of his boxes of candy and going cold turkey, with the exception of pared-down peanut butter and jelly sandwiches. While most people won""t develop a dramatic 24-candy bar a day habit, eating a high level of sugar-(which the American Heart Association classifies as 100 calories of refined sugar-daily for women and 150 calories for men) can lead to problems like obesity, heart disease and diabetes.-Unfortunately, problems with excessive sugar are all too common for Americans, according to Schmidt.- ""the majority of Americans are overweight or obese""?0 percent of us,""?she told HuffPost. ""Excess carbohydrate consumption is a leading cause of our obesity epidemic. What's interesting about Howard is that he wasn""t getting all that added sugar in liquid form. Sugary drinks are the main way people get into trouble with excessive sugar intake.""If you or someone you know is looking to cut down on sugar intake, Professor Schmidt offers six easy ways to curb your sweet habit. Dr.-Maya Shetreat-Klein, a-pediatric neurologist, told The Splendid Table she recommends incorporating more bitter foods into your diet, by way of fruit and veggie peels, dark chocolate, coffee and beer.- The-HuffPost-Lifestyle-newsletter-will make you happier and healthier, one email at a time. Sign up-here. Share this slide: We'r basically your best friend""?with better taste. Learn more", -3315,2017/3/25,http://www.huffingtonpost.com/2017/03/24/auschwitz-protest-naked-sheep-slaughter_n_15591548.html,"Protesters Slaughter Sheep, Strip Naked In Bizarre Action At Auschwitz","Authorities condemned their actions as ""disrespectful to the memory of all the victims.""","At least 11 people were arrested at Auschwitz, the former Nazi death camp, on Friday after they slaughtered a sheep beneath the entry gate, removed their clothing and chained themselves together. Local police said the men and women, ages 20 to 27, unfurled a banner reading ""love""?in English as they stripped naked,-according to Deutsche Press Agentur. Some kind of firecracker was also launched from the nearby parking lot, according to a spokesman for the Auschwitz site, which is now a state museum. Officials in the southern Polish city of Oswiecim didn""t immediately comment on a motive for the bizarre action. But the Polish newspaper Gazeta Krakowska reported that the individuals were protesting the continuing conflict in eastern Ukraine. Police moved in as the protesters sat chained beneath the entry gate marked with its infamous slogan, ""Arbeit Macht Frei""?(""�Work sets you free""?. An estimated 1.1 million inmates, the vast majority of them Jewish prisoners, died at the extermination and labor camp complex built by Nazi Germany. Russians, Poles and Romani were among the many other victims. Visits to the site, some 30 miles from Krakow, were suspended while police and guards at the Auschwitz-Birkenau Memorial and Museum dealt with the demonstrators. Police described them as-one German national, six Poles and four Belarusians, the BBC reported.- A museum statement criticized the decision to protest there, declaring that using the symbol of Auschwitz to draw attention ""is outrageous and unacceptable. It is disrespectful to the memory of all the victims of the German Nazi Auschwitz concentration and extermination camp.""?A statement regarding an incident at the site of the Memorial today. pic.twitter.com/UxBM69r79W If convicted of disrespecting a memorial site, the protesters could face stiff fines, The Associated Press reported. Learn more", -3316,2017/3/25,http://www.huffingtonpost.com/2017/03/24/trump-says-he-should-let-obamacare-collapse-thats-cruel-and-irresponsible_n_15591040.html,Trump Says He Should Let Obamacare 'Collapse.' That's Cruel And Irresponsible.,"Donald Trump is president now and it's his job to run this government, whether he likes it or not.","Before even taking office, and well before the Republican bid to repeal and ""replace""?the Affordable Care Act, President Donald Trump started saying the best political strategy for his party would be to let the law's health insurance exchanges ""Collapse""?and then blame Democrats for it. Immediately after Friday's colossally embarrassing flameout of the GOP's American Health Care Act, Trump was at it again. ""I""ve been saying for the last year and a half that the best thing we can do politically speaking is let Obamacare explode,""?Trump said at the White House. ""I think the losers are Nancy Pelosi and Chuck Schumer, because now they own Obamacare. They own it, 100 percent own it.""?And Trump's not the only one floating this notion. Here's Sen. Lindsey Graham (R-S.C.) on Friday: Next move on health care ""?#CollapseandReplace. Let's be plain about what these politicians are threatening to do. The president of the United States and members of the party that controls Congress are saying that they see problems in the health care system and their plan is to stand by and do nothing while people suffer. This is breathtakingly cynical, and reveals the Republican Party's priorities. Getting rid of the dreaded Obamacare at any cost is more important to Trump and his party than acting to improve the health care system for the people they represent. Barack Obama is no longer president, but thumbing him in the eye and destroying his biggest accomplishment still outweighs taking even the most basic steps to provide relief to the health insurance consumers whose plight Republicans have so often and so vividly bemoaned. Whatever its deficiencies, and however Democrats soft-pedaled them, the Affordable Care Act was an effort to make the lives of Americans better by expanding health coverage to millions, and creating new consumer protections against health insurance industry practices like refusing to cover people with pre-existing conditions. What Trump is proposing is to do the opposite. He's proposing to bite off your nose to spite Obama's face. Rather than try to help people, Trump will actively avoid helping. Even if you accept his highly debatable premise that the Affordable Care Act is irreparable, what he's saying is that because he and the Congress his party controls failed at the first hurdle, they will now do nothing to solve the problems with the American health care system they themselves have been decrying for seven years. Indeed, the Trump administration instead has taken steps to suppress health insurance enrollment and make the ACA work worse. More may be coming. It's an odd political gambit. What Trump is counting on is that, after he and his party failed to replace the Affordable Care Act with a plan of their own, and after the Trump administration will be in charge of managing the law's programs, voters in 2018 and 2010 will somehow blame the party that isn""t in power for their problems. That's not usually how things work. To be clear, the Affordable Care Act is not functioning as well as Obama and the Democrats who it wrote hoped. The uninsured rate has never been lower, thanks to the law's Medicaid expansion and subsidies for private health insurance. Twenty million people who didn""t have coverage before do now, and everyone has guaranteed access to health insurance regardless of their pre-existing conditions. But enrollment on the health insurance exchanges is lower than expected. Premiums are too high for many households, especially those who qualify for little to no subsidy because even though they aren""t wealthy, their incomes are too high. - To keep prices as low as possible and to protect themselves from high expenses, insurers designed policies with large deductibles and high cost-sharing that make obtaining care too costly for a segment of the market that buys plans regulated by the Affordable Care Act. Some insurance companies have lost money because too few healthy customers signed up to offset the costs of covering the sick. As a result, rates rose a lot this year, and may again next year, and some big insurers have abandoned these marketplaces entirely, leaving consumers with fewer choices. Some states are doing much better than others, but the problems in places like Arizona and North Carolina are real and demand attention. But despite what Trump and other Republicans keep saying, the exchange markets are not in a ""death spiral.""?Analysts at the Congressional Budget Office and Standard & Poor's, for example, have concluded that these markets are stable, if imperfect. Still, Trump insists Obamacare is an unmitigated disaster. ""there's not much you can do about it,""?Trump said Friday. ""I would love to see it do well, but it can""t.""?This is simply not true. The American Health Care Act was not the final word in health policy. The difficulties facing the Affordable Care Act's health insurance exchanges in some states ""?high prices, insufficient competition between insurers, high deductibles ""?are fixable in smaller, more targeted ways.- While he was in office Obama proposed a slate of improvements both in submissions to Congress and in a Journal of the American Medical Association article. So did Democratic presidential nominee Hillary Clinton. Minnesota and Alaska already have taken steps to alleviate the cost issues that some of their consumers have faced. One simple solution is just money. Bigger tax credits to make insurance more affordable would work. So would funds to backstop health insurance companies that have higher-than-expected expenses from sick customers. The Affordable Care Act actually included funding mechanisms for that very purpose, but Republicans in Congress rescinded the money, calling it a ""bailout.""?When it was their turn to write a health care reform bill, the GOP seemed to recognize the need to support insurers in that way. The American Health Care Act itself even included a big pot of money ""?$115 billion ""?that would""ve been distributed to states, which could have used the funds to shore up their local health insurance markets. The collapse of the whole bill doesn""t prevent Congress from taking other, more modest measures like that one to make the health care system better for consumers. At this point-""?seven years and a day after Obama signed the Affordable Care Act into law ""?legislating and regulating to make its health insurance markets work better is a responsibility Trump and congressional Republicans accepted when they took their oaths of office. This isn""t ""helping Obamacare,""?it's helping Americans. There's no such thing as Obamacare anymore. It's just the health insurance system. In the words of House Speaker Paul Ryan (R-Wis.) on Friday: ""Obamacare's the law of the land.""?But if you'r one of those people who can""t afford your health insurance or your deductible, Barack Obama can""t help you anymore. Donald Trump can. And he just told you he won""t. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3317,2017/3/25,http://www.huffingtonpost.com/2017/03/24/republicans-keep-trying-repeal-obamacare_n_15591034.html,Republicans Swear They Will Keep Trying To Repeal Obamacare,"Even though Paul Ryan says he's done with it, a party of Ahabs just can't let that Obamacare whale go.","WASHINGTON ""?Republicans insisted, after their attempt to replace the Affordable Care Act suffered a humiliating public defeat, that they will someday make good on their seven-year promise to repeal Obamacare.- Republicans had to pull their TrumpCare replacement bill from consideration on the House floor less than half an hour before it was due for a vote Friday because not enough of them liked their own bill. House Freedom Caucus conservatives hated it because it did not go far enough to dismantle Obamacare. More moderate members hated it because it would leave an additional 24 million Americans without health insurance and would especially hurt rural, older, white voters. House Speaker Paul Ryan (R-Wis.) told reporters afterward that that's it, he's done, the country will have Obamacare for the ""Horeseeable future.""?Yet, as unhappy-looking Republicans filed from an emergency caucus meeting in the basement of the Capitol on Friday afternoon just before Ryan spoke, they pledged to keep trying. ""We didn""t have the votes, so we'r not going pull it up and just kill it. We'r going to keep working till we get something that does work,""?said Rep. Barry Loudermilk (R-Ga). ""This process doesn""t end just because this one bill's been taken off the table,""?said Rep. Bradley Byrne (R-Ala.). ""It just shows that our first attempt didn""t work. This is not our last attempt. There will have to be other actions here.""?Fresh on the heels of defeat, there was no consensus among Republicans on steps going forward. Do they try a piecemeal approach and whittle away at the Affordable Care Act? Do they go all in one more time? Do they heed Democrats""?calls to work with them on repairing parts of Obamacare that don""t work well? The most likely next move will be for Health and Human Services Secretary Tom Price to tinker with the health care law's implementation. Many Republicans have argued that the law will implode on its own and then Democrats will own the failure. But the recent Congressional Budget Office analysis of the current law found that it would be stable. To push the Affordable Care Act over the edge, Republicans might have to try to pass smaller bills that chip away at the law, although that will be difficult with only a narrow GOP majority in the Senate. Or they could prevail on Price to undermine enrollment, although administrative shenanigans could draw lawsuits. The easiest long-term strategy would probably be to work with Democrats, especially on the parts that moderates in both parties would back. Some Republicans said they would try to do that. No one really had a plan, though, and most of the lawmakers limping away like injured Capt. Ahabs on the way to get their peg legs were sure they had to keep chasing the Obamacare whale. ""I introduced today a bill that would repeal Obamacare,""?said Rep. Mo Brooks (R-Ala.). ""there's a lot of things in American history that failed initially. Persistence is a really important principle,""?said Rep. Andy Barr (R-Ky.), even as he pledged to work across the aisle. ""the great movements in our country's history have been built on persistence,""?Barr said. ""If you have an optimistic attitude about it, this is a learning experience. I want to learn from this experience, I hope my colleagues learn from this experience, and we try to do a better job building better consensus the next time around.""?Indeed, there was a lot of taking the long view. ""metimes these things, if you give 'em time to marinate, we'll have an opportunity to bring us back together and allow us to regroup and get our mojo again,""?said Rep. Steve Womack (R-Ark.). That mojo didn""t come back over the last seven years, however, and many Republicans are clearly frustrated. ""Why can""t we do this ... when we have a Republican president?""?asked Rep. Randy Weber (R-Texas) shortly before the bill went down. ""It doesn""t make sense.""?Jennifer Bendery contributed reporting Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3318,2017/3/25,http://www.huffingtonpost.com/2017/03/24/fark-weird-news-quiz-friday_n_15590562.html,Know Why A Man Shoved His Head Into A Computer? Take The Fark Weird News Quiz,The best news quiz you'll do this week.,"Know why a man shoved his head into a computer this week? If you do, then take the Fark Weird News Quiz.- Don""t forget to post your score. Read more on Fark.com The truth is stranger than fiction. Step into the world of weird news. Learn more", -3319,2017/3/25,http://www.huffingtonpost.com/2017/03/25/donald-trump-marty-mcfly-mashup_n_15600024.html,Trucker Donald Trump Goes 'Back To The Future' In Hilarious Mashup,This is heavy.,"Great Scott!!! President Donald Trump is transported ""Back to the Future""?for a drag race with Marty McFly in this glorious mashup. YouTube user Todd Dracula edited footage of Trump gleefully messing around in a giant truck at the White House on Thursday into a scene from the franchise's third and final movie.-It's something to behold! Don""t be the last to watch the viral video everyone is talking about. Learn more", -3320,2017/3/25,http://www.bbc.co.uk/news/world-us-canada-39388815,Trump blames Democrats for failed healthcare bill,US President Donald Trump has blamed Democrats for the failure of his healthcare bill.,"US President Donald Trump has blamed Democrats for the failure of his healthcare bill. Both houses of Congress are controlled by Mr Trump's Republican party but the bill was withdrawn on Friday because it could not get the votes required. Speaking to the Washington Post, Mr Trump said ""We couldn't get one Democratic vote, and we were a little bit shy... so we pulled it."" The last-minute retraction is seen as a huge blow to the president. Repealing and replacing the healthcare programme known as Obamacare was one of his major election pledges. House Speaker Paul Ryan said he and Mr Trump agreed to withdraw the vote, after it became apparent it would not get the minimum of 215 Republican votes needed. Republicans have a majority in both the House of Representatives and the Senate. However, multiple reports suggested that between 28 and 35 Republicans were opposed to President Trump's draft American Health Care Act (AHCA). Some were said to be unhappy that the bill cut health coverage too severely, while others felt the changes did not go far enough. The bill also appeared unpopular with the public - in one recent poll, just 17% approved of it. The Congressional Budget Office (CBO) estimated the AHCA would reduce the deficit by $336bn between 2017 and 2026. However, the number of Americans without health insurance would stand at 52 million by the same time - an extra 24 million compared with Obamacare. Speaking after the withdrawal, Mr Trump repeatedly said Obamacare would ""explode"". However, he refrained from criticising Mr Ryan, whose job as speaker of the House involves rallying support for controversial bills. Mr Trump said: ""I like Speaker Ryan. I think Paul really worked hard.'' Mr Ryan also told reporters the president had been ""really been fantastic''. How bad was Friday's defeat of the American Health Care Act in the House of Representatives? Bad. Very bad. The AHCA was the first major piece of legislation pushed by the White House and the Republican-controlled Congress, a key political test early in the president's term, when he should be at the height of his power and party cohesion at its strongest. In spite of all of this, Mr Trump, Mr Ryan and the Republicans running Washington could not get the job done. For Republicans Friday wasn't just bad. It was a disaster. Read more analysis here. President Trump said the Republicans would probably focus on tax reform for now. ""We have to let Obamacare go its own way for a little while,"" he told reporters at the Oval Office, adding that if the Democrats were ""civilised and came together"", the two parties could work out a ""great healthcare bill"". ""We learned about loyalty; we learned a lot about the vote-getting process,"" he said. Earlier Mr Ryan told reporters: ""We are going to be living with Obamacare for the foreseeable future. ""I will not sugar-coat this. This is a disappointing day for us. Doing big things is hard. ""We were a 10-year opposition party where being against things was easy to do,"" he said, adding that it was difficult to get ""people to agree with each other in how we do things"". Meanwhile, the leader of the House minority Democrats, Nancy Pelosi, described the retraction as ""a victory for the American people"".", -3321,2017/3/25,http://www.bbc.co.uk/news/uk-39391313,London attack: Two men continue to be questioned as seven released,"Seven of the 11 people arrested since the Westminster attack have been released with no further action, police have said.","Seven of the 11 people arrested since the Westminster attack have been released with no further action, police have said. The Metropolitan Police said two men remain in custody, while two women have been released on bail until late March. Police are trying to establish whether attacker Khalid Masood acted alone. Meanwhile, the Saudi Arabian government has confirmed that Masood worked in the country as an English teacher in two different spells between 2005 and 2009. Four people were killed and 50 injured after Masood drove his car into people on Westminster Bridge and stabbed an officer guarding Parliament. PC Keith Palmer, 48, died of his wounds. Masood was shot dead by police. Police said their investigation into the attack would focus on Masood's ""motivation, preparation and his associates"". Those still in custody are: A 32-year-old woman, who was arrested in Manchester, was released on bail until late March. A 39-year-old woman, from east London, was released on bail until late March. On Friday, Metropolitan Police Assistant Deputy Commissioner Mark Rowley said officers would investigate whether Masood ""acted totally alone inspired by terrorist propaganda, or if others have encouraged, supported or directed him"". The Saudi Arabian embassy in London said Masood had been in the country from November 2005 to November 2006 and April 2008 to April 2009, when he worked as an English teacher. In 2015, he obtained an Umra visa - allowing pilgrimage to Mecca - and was in the country from the 3 to 8 March. The embassy said: ""The Kingdom of Saudi Arabia strongly condemns Wednesday's terrorist act in London, as it does all forms of terrorism. ""The attack in London this week has again demonstrated the importance of international efforts to confront and eradicate terrorism."" Two of Masood's victims, Aysha Frade - a teacher in her 40s - and US tourist Kurt Cochran, 54, died on Wednesday. Retired window cleaner Leslie Rhodes, 75, from Clapham, south London, died on Thursday evening when his life support machine was turned off. Fifty people were injured in the attack, with 31 receiving hospital treatment. Two are in a critical condition, and one has life-threatening injuries. Two officers remain in hospital with ""very significant"" injuries, one of whom has been identified as PC Kristofer Aves. On Friday evening it was announced that Tobias Ellwood, the MP who battled to save the life of PC Palmer, and security minister Ben Wallace have been appointed to the Privy Council - the historic group that advises monarchs - in recognition of their responses to the attack. The Metropolitan Police said Masood, 52, who had a number of previous criminal convictions, but none for terrorism, had used a number of aliases. While he was registered in Dartford, Kent as Adrian Russell Elms at birth Masood was also known as Adrian Russell Ajao during his childhood. In the early 2000s, he was convicted of causing grievous bodily harm after slashing a man across the face with a knife in a pub. Masood was believed to have been living in the West Midlands before Wednesday's attack, but had previously spent time in Luton, Crawley, Rye and Eastbourne. Get news from the BBC in your inbox, each weekday morning Have you been affected by these events? If you are willing to do so, share with us by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -3322,2017/3/24,http://www.bbc.co.uk/news/world-middle-east-39383989,UN fears 200 died in coalition airstrike on Mosul,The United Nations has raised grave concerns about reports of high civilian casualties in the Iraqi city of Mosul.,"The United Nations has raised grave concerns about reports of high civilian casualties in the Iraqi city of Mosul. A senior UN official in Iraq said she was stunned by accounts of ""terrible loss of life"", after claims that at least 200 people had been killed in an air strike by the US-led coalition. US warplanes are supporting the Iraqi Army's mission to retake Mosul from the Islamic State (IS). US media reports say an investigation is under way. It is not known exactly when the deaths are alleged to have happened. However, reporters in western Mosul's Jadideh neighbourhood said they saw 50 bodies being pulled out of buildings on Friday, after they were razed in air attacks earlier in March. Iraqi forces have been waging a months-long offensive to recapture Mosul, the last IS stronghold in Iraq, which has been occupied since 2014. The New York Times quoted US military officials saying the coalition was investigating reports of civilian deaths from a strike between 17-23 March. Colonel Joseph Scrocca, a spokesman for the US-led command in Baghdad, said that ""the coalition has opened a formal civilian casualty credibility assessment on this allegation"" from Mosul. ""This process takes time, though, especially when the date of the alleged strike is in question,"" he said. The UN estimates that 400,000 Iraqi civilians are trapped in the Old City of Mosul as government forces battle to re-capture it. More than 180,000 civilians have fled the west of the city in the past month, amid fears that an additional 320,000 may follow in the coming weeks. Residents who have managed to flee say the militants are using civilians as human shields, hiding in houses and forcing young men to fight. US officials believe there are about 2,000 IS fighters left in Mosul.", -3323,2017/3/24,http://www.bbc.co.uk/news/entertainment-arts-39355410,Red Nose Day 2017 raises ?71m for Comic Relief,"The reunited cast of Love Actually, Mrs Brown and Ed Sheeran have helped Comic Relief raise more than ?71m so far.","The reunited cast of Love Actually, Mrs Brown and Ed Sheeran have helped Comic Relief raise more than ?71m so far. A stellar cast of comedians, musicians and other celebrities took part in the charity's 16th Red Nose Day on Friday. Highlights included a 10-minute sequel to the 2003 film Love Actually. Take That hit the road with James Corden for a special edition of Carpool Karaoke, while Sheeran made a guest appearance in BBC Three comedy People Just Do Nothing. The chart-topping star also visited Liberia to find out about the charity's work. The telethon also saw appearances from the cast of sketch show Smack The Pony, who reunited for the first time since 2003. There were special previews of Mrs Brown's new chat show and the second series of Peter Kay's sitcom Car Share. Sir Lenny Henry, Graham Norton, Russell Brand, Emeli Sande, Romesh Ranganathan, Jonathan Ross and French & Saunders also put in appearances in an attempt to persuade BBC viewers to part with their cash. Opening the show, Sir Lenny paid tribute to those affected by the attack in Westminster. ""Tonight is an opportunity to save lives, to reach out in the spirit of partnership and compassion,"" he said. ""The money you give tonight will make things better for people with tough lives here at home and abroad and your generosity year after year proves how much more there is that unites us than divides us. ""Every donation is a good deed."" Comic Relief has raised more than ?1bn since it launched in 1985. The first Red Nose Day took place three years later. The charity says it uses the money to ""tackle the root causes of poverty and social injustice in the UK and across the world"". Donations can still be made to Comic Relief and you can watch the BBC's Red Nose Day coverage on BBC IPlayer. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -3324,2017/3/24,http://www.bbc.co.uk/sport/football/39300143,"Republic of Ireland 0-0 Wales Scores, Results & Fixtures",Neil Taylor was sent off for a high tackle on Seamus Coleman,"By Dafydd Pritchard BBC Wales Sport at the Aviva Stadium Share this with Wales' hopes of World Cup qualification look increasingly remote following a goalless draw against the Republic of Ireland, whose captain Seamus Coleman suffered a broken leg after a wild tackle that led to Neil Taylor being sent off. The hosts seemed content to play for a draw as their deep-lying and stubborn defence shackled Wales - and the visitors' lack of creativity and incision contributed to an underwhelming encounter. Gareth Bale twice went close for Wales, but their task became a daunting one after 69 minutes as Taylor was shown a straight red card for his lunge on Coleman, who was carried off on a stretcher and taken to hospital. That incident lit the fuse for a tempestuous atmosphere that appeared to inspire the Republic, but despite their push for a late winner, Martin O'Neill's side had to settle for a point and second place in Group D. They lost top spot after Serbia's victory in Georgia earlier on Friday but remain four points ahead of Wales. For Chris Coleman's side, a fourth successive draw of the campaign is another setback in their stuttering bid to qualify for next year's World Cup in Russia. Wales boss Coleman had been careful to avoid using the phrase ""must win"" for this fixture but, with the Republic four points in front, the visitors could ill afford anything other than three points from Dublin. Rather than emphasise the importance of this result, Coleman had said he and his side were driven by a ""desperation"" to replicate last summer's run to the Euro 2016 semi-finals, a hunger to qualify for a second successive major tournament after an absence of 58 years. The enormity of the occasion made for a tense and disjointed start to the match, with all 11 home players regularly in their own half as they sought to contain their opponents. Wales' inability to unlock the dogged defence before them was a familiar failing, as they had struggled similarly in their home draws with Georgia and Serbia, as well as their last-16 triumph over Northern Ireland at the European Championship. Bale and Aaron Ramsey, usually their most potent attacking weapons, looked off the pace having both returned from injury relatively recently. Bale sprung into action early in the second half with a dipping free-kick straight at keeper Darren Randolph and a swerving shot that went narrowly wide - but his frustrating evening was capped by a yellow card, meaning he will be suspended for June's trip to Serbia. Media playback is not supported on this device The match was played with a ferocity most would expect from relatively local rivals and two teams comprised of several Premier League club-mates. But the physicality spilled over after 69 minutes. With the ball running loose, Wales left-back Taylor lunged recklessly at Coleman, who was clearly in great pain as he was taken off the field on a stretcher. Roared on by a vociferous home crowd, the Republic sought to exploit their one-man advantage with a frantic late push forward - but they were thwarted by some stubborn Wales defending. The hosts were also arguably paying for their earlier pragmatism and unwillingness to attack. Where as Wales had some catching up to do with their group rivals, the Republic could afford to sit back and wait for their opportunity to pounce - even though they had been overtaken at the top of the table following Serbia's victory. With a home encounter against the group leaders to come later in the campaign, O'Neill's side seemed to consider this fixture a chance to consolidate, rather than significantly improve, their position. Match ends, Republic of Ireland 0, Wales 0. Second Half ends, Republic of Ireland 0, Wales 0. Attempt saved. Jeff Hendrick (Republic of Ireland) header from the centre of the box is saved in the top centre of the goal. Attempt blocked. Shane Long (Republic of Ireland) header from the right side of the six yard box is blocked. Assisted by Aiden McGeady with a cross. Aiden McGeady (Republic of Ireland) is shown the yellow card. Corner, Republic of Ireland. Conceded by Ashley Williams. Attempt missed. Gareth Bale (Wales) header from the centre of the box misses to the left. Assisted by Aaron Ramsey with a cross following a corner. Corner, Wales. Conceded by Cyrus Christie. Attempt missed. Aiden McGeady (Republic of Ireland) right footed shot from outside the box is too high. Assisted by James McClean. Attempt missed. Gareth Bale (Wales) left footed shot from outside the box misses to the left. Assisted by Sam Vokes. Foul by Gareth Bale (Wales). James McClean (Republic of Ireland) wins a free kick in the defensive half. Corner, Republic of Ireland. Conceded by Jazz Richards. Substitution, Republic of Ireland. Aiden McGeady replaces David Meyler. Chris Gunter (Wales) wins a free kick on the right wing. Foul by James McClean (Republic of Ireland). Attempt missed. Shane Long (Republic of Ireland) header from the centre of the box misses to the left. Assisted by Glenn Whelan with a cross. Gareth Bale (Wales) wins a free kick in the attacking half. Foul by Cyrus Christie (Republic of Ireland). Corner, Republic of Ireland. Conceded by James Chester. Attempt blocked. James McClean (Republic of Ireland) right footed shot from outside the box is blocked. Assisted by Glenn Whelan. Corner, Republic of Ireland. Conceded by Chris Gunter. Attempt blocked. Richard Keogh (Republic of Ireland) left footed shot from the left side of the box is blocked. Corner, Republic of Ireland. Conceded by Chris Gunter. Attempt blocked. James McClean (Republic of Ireland) right footed shot from the centre of the box is blocked. Attempt missed. James McClean (Republic of Ireland) left footed shot from the centre of the box misses to the right. Assisted by David Meyler with a headed pass. Chris Gunter (Wales) wins a free kick in the defensive half. Foul by Richard Keogh (Republic of Ireland). Substitution, Wales. Jazz Richards replaces Joe Ledley. Substitution, Republic of Ireland. Cyrus Christie replaces Seamus Coleman because of an injury. Delay over. They are ready to continue. Delay in match Seamus Coleman (Republic of Ireland) because of an injury. Neil Taylor (Wales) is shown the red card. Foul by Neil Taylor (Wales). Seamus Coleman (Republic of Ireland) wins a free kick on the right wing. Gareth Bale (Wales) is shown the yellow card for a bad foul. Foul by Gareth Bale (Wales). John O'Shea (Republic of Ireland) wins a free kick in the defensive half. Attempt missed. Sam Vokes (Wales) left footed shot from the centre of the box misses to the left. Assisted by Aaron Ramsey. Attempt missed. Shane Long (Republic of Ireland) right footed shot from outside the box misses to the left. Share this with Can you get the answers nobody else knows? Get latest scores and headlines sent straight to your phone, sign-up to our newsletter and learn where to find us on online. The latest rumours and stories from around the world of football. Enjoy the best debate, analysis and interviews with 5 live and World Service football plus our commentary listings. How to get into football - the most popular sport in the world, with clubs and facilities throughout the UK. Run by the BBC and partners Bath Saracens RFC Winter Ski Training For more ideas, information and inspiration, visit bbc.co.uk/getinspired", -3325,2017/3/25,http://www.bbc.co.uk/news/world-us-canada-39391431,Harrison Ford: 'I'm the schmuck that landed on the taxiway',,A recording has emerged of Harrison Ford explaining to air traffic control why he flew directly over a waiting passenger jet and landed on a taxiway at John Wayne Airport in southern California in February., -3326,2017/3/25,http://www.bbc.co.uk/news/business-39383535,New ?1 coin: Tesco to leave trolleys unlocked,Shopping trolleys at Tesco's biggest supermarkets will be left unlocked when the new ?1 coin is released on Tuesday.,"Shopping trolleys at Tesco's biggest supermarkets will be left unlocked when the new ?1 coin is released on Tuesday. The company said it was an ""interim"" measure while it carries out work to replace the locks on its trolleys to take the new 12-sided coins. Fewer than 200 of Tesco's 3,500 UK stores have trolleys which need a coin or keyring token to use them. Asda, Morrisons and Sainsbury's have said their trolleys accept both the old coins and tokens and the new ones. Tesco said in a statement: ""We're replacing the locks on our trolleys to accept old and new pound coins as well as existing trolley tokens. There would be ""colleagues on hand to attend trolleys in our stores, so our customers aren't affected by the changes"", it added. Staff would also make sure the trolleys were returned to the trolley park, a spokesman told the BBC. Only trolleys in Tesco's largest stores need coins or tokens to access them. After the new ?1 coin comes into circulation on 28 March there will be a six-month transition period during which both the old and the new coins will be accepted as legal tender. The old round coin is to be completely phased out by 15 October.", -3327,2017/3/25,http://www.bbc.co.uk/news/uk-england-hereford-worcester-39380779,Wife of 39 years fails in divorce refusal appeal,"A woman who says she is ""desperately unhappy"" in her marriage has lost the latest round of an ""extraordinarily unusual"" court fight.","A woman who says she is ""desperately unhappy"" in her marriage has lost the latest round of an ""extraordinarily unusual"" court fight. Tini Owens, 66, asked the Court of Appeal to overturn a family court ruling, which said she could not divorce her husband Hugh Owens, 78. But the appeal judges, led by Sir James Munby, upheld the original ruling. However, Sir James did point out that some people would feel unhappiness should be grounds for divorce. The decision means Mrs Owens will have to remain married, although after five years of separation she would be eligible for a divorce even if her husband still objected. The couple married in 1978 and lived in Broadway, Worcestershire. The Court of Appeal heard that Mrs Owens' case was that the marriage had broken down, although Mr Owens disagreed, saying that the couple still had a ""few years"" to enjoy. Mrs Owens contended that she had been left in a ""wretched predicament"", locked in a ""loveless and desperately unhappy"" marriage. She had made 27 allegations about the way Mr Owens treated her, including that he was ""insensitive"" in his ""manner and tone"" and said she was ""constantly mistrusted"" and felt unloved. Opposing a family court ruling made last year by Judge Robin Tolson, who refused to grant a divorce petition on the basis her allegations were ""of the kind to be expected in marriage"", she took the case to the Court of Appeal. But on Friday, Sir James - the most senior family court judge in England and Wales - said: ""We cannot interfere with Judge Tolson's decision, and refuse the wife the decree of divorce she sought."" He said Judge Tolson had correctly concluded that the marriage had not ""in law"" irretrievably broken down. When you apply for a divorce you must prove your marriage has broken down and give one of the following five reasons: Source: Gov.UK However, Sir James added: ""Parliament has decreed that it is not a ground for divorce that you find yourself in a wretchedly unhappy marriage, though some people may say it should be."" Appeal judges analysed the case at a hearing in London last month and announced their decision to dismiss the appeal in a written ruling.", -3328,2017/3/24,http://www.bbc.co.uk/news/world-us-canada-39388810,Singapore teen blogger Amos Yee granted US asylum,"Singapore teen blogger Amos Yee, who was jailed twice in his homeland for posting political and religious criticism online, has been granted asylum in the United States.","Singapore teen blogger Amos Yee, who was jailed twice in his homeland for posting political and religious criticism online, has been granted asylum in the United States. Mr Yee, 18, has been detained in the US since he arrived at Chicago's O'Hare airport in December. He came into the country on a tourist visa but told immigration officials he was seeking refuge. Following Friday's ruling, he is expected to be released shortly. The US Department of Homeland Security opposed Mr Yee's asylum application, but the immigration judge ruled in the teenager's favour. Judge Samuel Cole released a 13-page decision, which said Mr Yee faced persecution in Singapore for his political opinions. ""Yee has met his burden of showing that he suffered past persecution on account of his political opinion and has a well-founded fear of future persecution in Singapore,"" Judge Coel ruled. ""Accordingly, this court grants his application for asylum."" Amos Yee is not the only one celebrating his US asylum win - many Singaporeans are pleased as well. ""Finally... hopefully it is the last we have heard of him,"" a Facebook user wrote in one typical comment online. But some Singaporeans also sympathise with Amos, who has clearly struggled with the country's restrictions. ""It's just his bad luck that he was born in Singapore,"" said another commenter on Facebook. The teenage critic is one of Singapore's most controversial figures, where he is viewed with exasperation but also a measure of sympathy. Singapore is known for its strict rules on free speech, especially when it comes to race and religion - rules which the US judge said have been used by the authorities to constrain dissent, but which many in the city-state support. Following Mr Yee's explosive remarks about the country's deeply-revered late leader Lee Kuan Yew and Christianity, Mr Yee had continued to fall foul of the law by breaching bail conditions and making further critical comments about religion. Even by leaving Singapore he has committed an offence, as he is avoiding mandatory military conscription. While in US detention he had run into trouble for making remarks about Islam, according to his representatives. But some Singaporeans also empathise with Amos, who has clearly struggled with the country's restrictions. ""Congratulations Amos. He can now lead the free life he wants in the free world. It's just his bad luck that he was born in Singapore,"" said another commenter on Facebook. Mr Yee's lawyer, Sandra Grossman, said he could be released as early as Monday. In statement, Ms Grossman applauded the judge's decision and said, ""The right to free speech is sacred, even when such speech is considered offensive."" In September 2016, the teenager was given a six-week prison sentence in Singapore after being found guilty of ""wounding religious feelings"". He had posted a video critical of Christianity and Islam. He was also jailed by a Singapore court for four weeks in 2015, for criticising Christians and for posting a video about the country's former Prime Minister Lee Kuan Yew. His video, posted on YouTube days after his death, compared the widely-respected founding father of Singapore to Jesus Christ. Later, he posted a crude cartoon depicting Lee Kuan Yew and former UK Prime Minister Margaret Thatcher, who was one of his allies. The posts provoked various police complaints, and Mr Yee was reported to have received violent threats.", -3329,2017/3/25,http://www.bbc.co.uk/news/world-latin-america-39388850,Venezuela asks the UN to help boost supply of medicines,Venezuela's President Nicolas Maduro has asked for help from the United Nations to boost supplies of medicine.,"Venezuela's President Nicolas Maduro has asked for help from the United Nations to boost supplies of medicine. Mr Maduro said the UN had the expertise to normalise the supply and distribution of drugs in the country. Venezuela's Medical Federation said recently that hospitals had less than 5% of the medicines they needed. The president blames the problems on an economic war against his government and the sharp fall in oil prices. ``I've asked for support from the United Nations to help treat the economic and social injuries that have hit our people,'' he said Friday on television. The opposition says Mr Maduro's mismanagement is to blame for the country's worsening economic crisis. Shortages of food and many other essential items mean Venezuelans have to face long queues almost daily to buy basic goods. Medicines are no exception. Correspondents say Mr Maduro's acknowledgement that Venezuela needs outside help is indicative of the dire situation the country is in, despite having some of the largest oil reserves in the world.", -3330,2017/3/24,http://tass.com/society/937486,Russia delivers three tonnes of humanitarian aid to civilians in Syria in 24 hours,The Russian Center for Reconciliation carried out five humanitarian missions in the Aleppo Governorate and one in the al-Quneitra Governorate,"HMEIMIM /Syria/, March 25. /TASS/. The Russian Center for Reconciliation of the opposing sides in Syria carried out six humanitarian missions in the past 24 hours delivering three tonnes of humanitarian aid to civilians, the Center said in an information bulletin. ""The Russian Center for Reconciliation carried out five humanitarian missions in the Aleppo Governorate and one in the al-Quneitra Governorate,"" the bulletin reads. ""Over the past 24 hours, as many as 2,960 civilians received humanitarian aid totaling three tonnes."" Aleppo residents received 2,500 hot meals, bread and food products. Besides, Russian officers delivered 350 food sets and 50 baby food sets over to the Hader settlement in the al-Quneitra Governorate. From the beginning of the year, the Russian military has delivered over 350 tonnes of humanitarian aid to civilians in Syria. Besides, Russian aircraft delivered 20.7 tons of humanitarian aid, provided to the Syrian authorities by the United Nations, to the Deir ez-Zor area. In addition, UN humanitarian convoys were sent to the Mutaiya and Tell Gehab settlements in the Daraa Governorate under the auspices of the Russian officers.", -3331,2017/3/25,http://tass.com/world/937485,Opposition leader Vladimir Neklyayev detained in Belarus - news agency director,Neklyayev was seized in Brest when he was returning home by train from Warsaw,"MINSK, March 25. /TASS/. Belarusian opposition leader Vladimir Neklyayev, one of the organizers of the unauthorized protest planned to be held in capital Minsk on Saturday, has been detained by law enforcement agencies, Director of the BelaPAN news agency Ales Lipai wrote on Facebook. ""Belarusian poet and 2010 presidential candidate Vladimir Neklyayev was detained soon after one o'clock. The police seized him in Brest when he was returning home by train from Warsaw where he had participated in a discussion on the situation in Belarus,"" the journalist wrote. Neklyayev is a member of the opposition union calling itself the Belarusian National Congress. Together with 2010 presidential nominee Nikolai Statkevich, Neklyayev earlier called for holding a ""March of Angry Belarusians"" in Minsk on March 25 to protest against the authorities""?social and economic policies. Statkevich's whereabouts are unknown, so it is impossible to say if he would be able to take part in the protest. The Minsk city administration had previously given permission to hold the event in the People's Friendship Park but did not approve the format of the protest and the march route. At the same time, opposition representatives did not accept the city administration's decision who later said that all mass events held on Saturday would be considered unlawful. Security measures have been beefed up in Minsk, law enforcement officers carrying machine guns have appeared on the city streets for the first time in many years. Belarusian President Alexander Lukashenko earlier mentioned some ""militants plotting an armed provocation."" After that, several members of the White Legion organization, not registered with the country's Justice Ministry, were arrested. A total of 26 people were seized on suspicion of preparing mass riots, 29 locations were searched. Since February 17, rallies have been taking place across Belarus in protest against the presidential law ""on social parasites"" singed a year ago. The law stipulated that all those who work less than 183 days a year should pay a levy of about $200 to assist in funding welfare programs.", -3332,2017/3/24,http://tass.com/politics/937482,Russia submits amicus curiae brief to US Supreme Court,In this way Russia is calling for overturning Viktor Bout's sentence,"NEW YORK, March 25. /TASS/. Russia has submitted an amicus curiae brief to the US Supreme Court in Viktor Bout's case, calling for overturning his sentence, defense attorney Alexei Tarasov told TASS. ""An amicus curiae brief has been submitted in support of Viktor Bout, raising international law issues,"" he said. In his opinion, ""this will enhance the prospects of success in our application."" ""This is the first time Russia has ever filed an amicus curiae brief to the US Supreme Court,"" Tarasov added. He elaborated that Russia had previously submitted an amicus curiae brief in the case of Konstantin Yaroshenko currently serving his sentence in the US, but it had been filed to an appeals court. ""The US Department of Justice did not have any objection against Russia filing this document,"" Tarasov went on to say while commenting on the Bout case. He also said that the amicus curiae brief submitted to the US Supreme Court had been particularly signed by Michael Sullivan, former attorney for the District of Massachusetts, who also served as acting director of the Bureau of Alcohol, Tobacco, Firearms and Explosives. Meanwhile, it is yet unknown when the US Supreme Court will announce whether it will accept the Bout case or not. The Supreme Court justices are expected to review the case by March 31 but a decision will not necessarily be made on that day. Viktor Bout's legal team filed an appeal with the Supreme Court in late February. The document particularly says that the appeals court and the District Court for the Southern District of New York applied wrong legal criteria to assess the facts pointing to the prosecutor's office keeping exculpatory evidence from the defense attorney. According to Tarasov, the evidence was enough for acquitting Bout. The defense attorney added that the US Supreme Court accepted very few of the submitted cases. Bout was detained in the Thailand's capital of Bangkok in 2008 on a warrant issued by a local court at Washington's request. He was charged with conspiracy to deliver weapons to a group calling itself the Revolutionary Armed Forces of Colombia, deemed terrorist by the US. In 2010, Bout was extradited to the United States. In April 2012, he was sentenced to 25 years in prison and a fine of $15 million.", -3333,2017/3/24,http://tass.com/politics/937479,"Russia, China suggest for UN SC to adopt resolution on chemical terrorism threat",In 2016 the western members of the UN Security Council did not support the resolution but it has not lost its importance in light of the recent media reports on chemical attacks in Mosul area,"UNITED NATIONS, March 25. /TASS/.-Russia and China have reiterated their suggestion that the United Nations Security Council adopt a resolution aimed at preventing poisonous substances from falling into the hands of terrorists active in Syria and Iraq. Russia's Deputy Permanent Representative to the UN Vladimir Safronkov told reporters that a draft resolution had been put forward at a close-door meeting initiated by Moscow. The draft resolution was reviewed in 2016 but the western members of the UN Security Council did not support it. According to Safronkov, the document has not lost its importance particularly in light of the recent media reports on chemical attacks carried out in the Mosul area by militants of the Islamic State terror group (outlawed by Russia). ""We need to launch serious work based on facts. Experts say that chemical terrorism threat in the Middle East is real,"" the Russian diplomat added. ""In order to encourage members of the UN Security Council to make joint efforts aimed at preventing terrorists from using chemical weapons, Russia and China have put forward an updated draft resolution,"" Safronkov said. He added that the western counterparts""?response to the document submitted by Moscow and Beijing was rather balanced as they said would forward it to their governments for assessment. ""We will see what will become of it,"" the Russian deputy permanent representative added. The draft resolution submitted by Russia and China in April 2016 demanded that all countries, particularly Syria's neighbors, should immediately report to the UN Security Council about the activities of non-state actors aimed at manufacture, possession, development, transport and transfer of chemical weapons and means of delivery. In addition, the document stipulated that the Joint Investigative Mechanism set up by the United Nations and the Organization for the Prohibition of Chemical Weapons (OPCW) would also act in Iraq. During the discussion of the document, a number of UN Security Council member states upheld the initiative while others, namely the UK, stood against including Iraq into the Joint Investigative Mechanism's mandate. The UK has not changed its mind since then, as on Friday, the British Permanent Representative Matthew Rycroft once again opposed the Russian-Chinese initiative. He clarified his position saying that there was a big difference between the situations in Syria and Iraq because, in his words, the Iraqi government cooperated with the OPCW and nobody accused it of using chemical weapons against its own people. The British diplomat said that the Joint Investigative Mechanism had been set up because there was no other way to establish those responsible for chemical attacks since the Syrian authorities were unwilling to cooperate. He added this was the reason why the UK was against expanding the mandate of the Joint Investigative Mechanism. However, Russia's deputy permanent representative did not agree that the situation in Syria was special. ""In my opinion, this is a very unprofessional and emotional logic based on some political doctrine, which hampers the UN Security Council's activities aimed at combating the chemical terrorism threat in the region,"" he stressed. In early March, the International Committee of the Red Cross (ICRC) and the World Health Organization (WHO) said that several residents of Iraq's city of Mosul were being treated for injuries from a suspected chemical attack. The Organization for the Prohibition of Chemical Weapons requested that the Iraqi authorities provide additional information and offered to assist in investigating into the alleged attack. On March 10, Russia convened a closed-door meeting of the UN Security Council over the Mosul chemical attack. On the same day, Iraq's Permanent Representative to the United Nations Mohamed Ali Alhakim told reporters that Baghdad did not have any evidence proving that the Islamic State terror group had used chemical weapons in the Mosul area.", -3334,2017/3/25,http://tass.com/politics/937478,Russian lawmaker compares European Union to Soviet Union,Russia's State Duma Deputy Speaker Pyotr Tolstoy said that the policies pursued by the EU had no future,"MOSCOW, March 25. /TASS/. The European Union of today can be compared to the Soviet Union in its late years, said Pyotr Tolstoy, Russia's State Duma (lower house of parliament) Deputy Speaker, who is currently on a visit to Serbia's capital of Belgrade. The Russian lawmaker, who is taking part in the events honoring the victims of NATO bombings against Yugoslavia, added that the policies pursued by the EU had no future. ""Today, the European Union is reminiscent of the Soviet Union nearing its collapse, when not a single decision could be made without consulting with the supreme authorities, while the bureaucratic machine did not take into account any national interests. We all know what it led to,"" Tolstoy said. ""Of course, we do not wish our European neighbors to suffer such fate but we should not expect them to offer the fulfillment of dreams to other peoples,"" the State Duma deputy speaker noted. According to him, ""until now, they have not offered the world anything but the consumer society and the protection for the LGBT community."" At the same time, in Tolstoy's words, Russia became ""the enemy of the West"" because it offers an alternative to the western civilization as well as a different value system. ""We do that with all respect for international law. But it annoys them. They are particularly sensitive to what is happening in Syria and Ukraine,"" the Russian lawmaker added. ""However, Russia is returning to the global stage and they will have to live with it,"" Tolstoy stressed. Moreover, the West will have to review its attitude towards Russia, he said. ""Even the statements made by (US President Donald) Trump that every country has the right to act based on its interests rather than be led by others, mark a major change in the globalist way of thinking common among the Clintons, Obama and the like,"" Tolstoy concluded. March 24 marked eighteen years since NATO began its Allied Force military operation against Yugoslavia. The main reason for the operation was the presumable prevention of what NATO described as the genocide of Kosovo's Albanian population. During the 78-day operation, NATO aircraft conducted as many as 38,000 combat flights, including more than 10,000 bombing raids. Defense experts say that NATO forces launched more than 3,000 cruise missiles and dropped about 80,000 tonnes of bombs, including cluster bombs and bombs containing depleted uranium. About a thousand aircraft, some of them reconnaissance ones, were involved in the operation. Serbian sources put the number of victims from the bombings at 3,500 to 4,000. Another 10,000 people were wounded with civilians making up two-thirds of that number. The damage inflicted on the country amounted to $100 billion.", -3335,2017/3/25,http://tass.com/world/937476,Russian emergencies ministry says fire at Kazan's gunpowder factory fully extinguished,The fire covered an area of 400 square meters,"MOSCOW, March 25. /TASS/. Firefighters have fully extinguished the fire at a gunpowder factory in Kazan, the capital city of Russia's Republic of Tatarstan, a source in the local emergencies services told TASS. According to the source, the fire covered an area of 400 square meters. ""The fire did not affect the technological process at the factory,"" the source added. As emergencies services said earlier, a firefighter was killed by an explosion while combating the fire. Meanwhile, Russia's Investigative Committee has launched a criminal case over the gunpowder factory fire, the Committee's Kazan branch said. Investigators are currently examining the fire site in order to establish all the circumstances of the incident.", -3336,2017/3/25,http://tass.com/politics/937475,"Relations btw US, Russia worst over half-century - Lukin quoting Kissinger",Russian diplomat and scholar Vladimir Lukin thinks that the real problem of relations is a full loss of trust in each other,"WASHINGTON, March 25. /TASS/. U.S. veteran diplomat and political expert Henry Kissinger believes the U.S.-Russian relations are in the worst shape in half-a-century now, Russian diplomat and scholar Vladimir Lukin, who is a member of the upper house of Russian parliament, told TASS on Friday on the sidelines of a conference on the history of American-Russian relationship at Georgetown University. ""I met with a person as authoritative as Henry Kissinger,"" Lukin said. ""We had a long enough conversation at his home and he thinks the relations between us (the Russian Federation) and the U.S. are in the worst shape over fifty or so years."" Lukin admitted frankly he was so surprised to hear Kissinger's assessment that he even asked a follow-up question, if the former U.S. Secretary of State meant fifty or fifteen years. The latter man confirmed he was speaking about a period of fifty years beginning with John Kennedy, who was President from 1961 through 1963. When the reporter asked Lukin if the current spate of the Russophobic hysteria was hampering his routine contacts in the course of the current trip to the U.S., he said it was not. Lukin said he had maintained perfect personal contacts with the people, who had been working on the Russian theme for many long year, since his time in Washington as the Russian ambassador. He said he would rather explain for the ""current heightened emotionality towards Russia, including the Russian embassy (in Washington)"" by the acute internal political struggle in the U.S. that is not related directly to Russia. All the same, he admitted that ""this will certainly put brake on our relations for quite some time."" When TASS asked Lukin what, in his opinion, would be the right thing to begin normalization of relations with, he said it would make sense to improve the general atmosphere first. ""I think we don""t have really many specific problems in our relationship but the real problem is a full loss of trust in each other,"" Lukin said. ""This loss tells on really many concrete things. We need to start trusting each other again so that we could discuss problems, to say nothing of resolving them, and that's something the Russian and U.S. people in power don""t have."" ""I hope changes will take place,"" he said. ""As far as I know, a visit (to Moscow) by the U.S. Secretary of State is in the offing. If you take me, I'd being the discussion with the problem of trust."" American participants in the conference spoke about State Secretary Rex Tillerson's forthcoming visit to Russia in their conversations on the sidelines of the sessiions as if it was a firmly decided matter.", -3337,2017/3/25,http://tass.com/world/937474,Firefighter killed by explosion in fire at Kazan's gunpowder factory,"Eduard Illarionov decided to examine the dangerous zone himself, the source elaborated","MOSCOW, March 25. /TASS/. Commander of a special firefighting and rescue team Eduard Illarionov was killed by an explosion on Friday evening while combating fire at a gunpowder factory in Kazan, the capital city of Russia's Republic of Tatarstan, a source in the local emergencies services told TASS. ""Eduard Illarionov, commander of the Third Special Firefighting and Rescue team of the Federal Firefighting Service's 35th Special Branch, was the first to arrive at the site. He ordered his team members to arrange water supplies for fighting the fire. Then he decided to examine the dangerous zone himself,"" the source elaborated. According to the source, an explosion occurred while Illarionov was examining the burning building, he suffered severe injuries and died on the way to hospital. The source also said that the commander had made a right decision that created conditions for extinguishing the fire and prevented casualties among firefighters and factory personnel. ""His team played a key role in combating the fire,"" the emergencies services stressed. Illarionov was 37 years old.", -3338,2017/3/25,http://tass.com/politics/937473,Russia suggests setting up international coalition for demining operations in Syria,"Russia's Deputy Permanent Representative to the UN Yevgeny Zagainov said that Palmyra ""is full of mines and unexploded shells"" which ""prevents experts from assessing the scale of destruction""","UNITED NATIONS, March 25. /TASS/. Russia suggests that an international coalition should be set up for demining operations in Syria, Russia's Deputy Permanent Representative to the United Nations Yevgeny Zagainov said at a meeting of the UN Security Council. ""Syria is the only place in the world where the need for demining is so strong,"" he said following the adoption of a resolution for the protection of heritage. According to the Russian diplomat, the legendary city of Palmyra has become a symbol of the hard times that the Syrian people have been going through. ""The jewel of the human civilization was first seized by terrorists but then liberated again. Our duty is to help restore this historic site for the sake of Syrians and the whole world,"" Zagainov stressed. He added that Palmyra, turned ""into a place of executions and crimes"" by militants, ""is full of mines and unexploded shells"" which ""prevents experts from assessing the scale of destruction and restoring what can be restored."" ""Russian de-miners have already started to solve this issue but if an international coalition is set up, it could be really helpful. We call on all our counterparts who would like to help preserve this historic heritage to leave aside all contradictions and do whatever they can to contribute to the common cause that particularly requires significant funding,"" the Russian deputy permanent representative said. On Saturday, the United Nations Security Council adopted a historic resolution on the protection of heritage that aims at preventing the destruction and plunder of historic and archaeological sites as well as of objects of cultural and religious value. During the discussion, the Russian delegation had to respond to a statement made by Ukrainian Permanent Representative to the UN Vladimir Yelchenko in which he accused the militia active in the country's eastern part of destroying and looting cultural heritage. He particularly alleged that it was ""the result of Russia's annexation of Crimea and military interference in Donbass."" Russia's deputy permanent representative, in turn, said that Kiev took advantage of any discussion just ""to carry on with its information and propaganda campaign against Russia."" ""It is regrettable but we will not comment on the inappropriate statements made here,"" he added.", -3339,2017/3/25,http://tass.com/world/937461,One person dies in fire at gunpowder factory in Russia's Kazan,"No further information about casualties is available, a spokesman for the local emergencies services said","MOSCOW, March 24. /TASS/. One person have died in fire at a gunpowder factory in Kazan, the capital city of Russia's Republic of Tatarstan, a spokesman for the local emergencies services told TASS on Friday. ""As of now, we have information that one person has died in fire,"" he said, adding that no further information about casualties is available. According to the police, the fire started at the factory's end product shop. An investigation is underway.", -3340,2017/3/25,http://www.dw.com/en/is-fresh-air-really-so-healthy/a-18814624?maca=en-rss-en-all-1573-rdf,"Is ""fresh air"" really so healthy?","We're often told to ""get out into the fresh air."" It's supposed to be especially good for our health. It's even been claimed that fresh air protects us from cancer.","Fresh air is defined as cool, unpolluted air in natural surroundings. It certainly doesn't exist everywhere. In China the air in some cities is so polluted that bags of ""fresh air"" are taken there so people can take a breath of it. In enclosed rooms, air soon loses oxygen. When you sit at a desk, your breathing is shallow and superficial. That results in fatigue and lack of concentration. Exercising in the fresh air, in contrast, causes us to breathe deeply. We take in more oxygen and expel stale air from our lungs. That results in more energy and a better mood. And it even works in bad weather! If you feel listless and worn out, get out in the fresh air and greenery! Korean doctors sent 43 elderly women on an hour-long walk in the woods and19 through the town. Examinations before and afterwards showed that the blood pressure of those who walked through the woods was lowered considerably. The elasticity of their arteries had improved. Those who walked in an urban environment. in contrast, showed no differences. A study in Japan has also shown that walks through the woods lowered blood pressure and heart rates and reduced stress hormones. In addition, the Nippon Medical School in Tokyo found signs that walking in the woods activated natural killer cells, a component of the immune system that fights cancer.", -3341,2017/3/25,http://www.dw.com/en/us-to-end-operations-against-lord-s-resistance-army-in-africa/a-38117991?maca=en-rss-en-all-1573-rdf,US to end operations against Lord's Resistance Army in Africa,"A top US military commander has said the LRA has been reduced to ""irrelevance"" after years of joint military operations have killed most of its forces. Its leader, Joseph Kony, is still on the run.","US military operations against the Lord's Resistance Army in central Africa are ""coming to an end,"" a top American general said on Friday, even though its brutal leader Joseph Kony has not been captured. ""This operation, although not achieving the ability to get to Kony himself, has essentially taken that group off the battlefield,"" said General Thomas Waldhauser, head of the US military's Africa Command. The LRA has killed more than 100,000 people and kidnapped 60,000 children in a three-decade-long rebellion spanning northern Uganda, South Sudan, Central African Republic and the Democratic Republic of Congo.- The militant Christian group seeks to implement the Ten Commandments and has been accused of multiple human rights abuses, including mutilation, rape, child abduction and use of child soldiers. The LRA is known for brutally mutilating civilians. Waldhauser said ""several hundred, maybe thousands"" of Kony's soldiers have been killed in joint US military operations with regional armies. ""For the last several years, they've really been reduced to irrelevance,"" he said, adding the group had about 100 remaining fighters. Claiming to be a prophet with spiritual powers, Kony is wanted by the International Criminal Court for war crimes. He was the subject of a viral video campaign in 2012 that was seen by over 100 million people worldwide, bringing the LRA to worldwide attention. Dominic Ongwen, a former child soldier turned LRA general, is currently on trial at The Hague after being captured by US forces in 2015. In 2010, the US deployed around 100 special forces to work with regional armies to defeat the LRA and try to capture Kony. According to the US National Counterterrorism Center, Kony is believed to be in poor health and is rumored to have diabetes or AIDS. Waldhauser said the United States would continue to work with countries in the region against a-resurgence of the LRA. cw/kl-(AFP, AP) -", -3342,2017/3/24,http://www.dw.com/en/australian-court-finds-man-guilty-of-assaulting-female-backpackers/a-38117939?maca=en-rss-en-all-1573-rdf,Australian court finds man guilty of assaulting female backpackers,"A court in southern Australia has found the man guilty of assault and kidnapping, but cleared him of attempted murder. The two backpackers, one of whom was German, met the man online.","The South Australia Supreme Court on Saturday found the 60-year-old man guilty on six charges over an incident that occurred near Adelaide more than two years ago. The 11-member court heard that the man, whose identity has been withheld, made contact with two female backpackers, one German and one Brazilian, through the classifieds website Gumtree. The women were looking for a ride from Adelaide to Melbourne. After picking them, the man drove the women to a secluded area called Salt Creek, at which point he sexually assaulted the Brazilian woman and attacked the German woman with a hammer. Fishermen in the area managed to come to their rescue and alerted the police in time. After 12 hours of deliberations, the court found the man guilty of indecent assault, aggravated kidnapping and endangering life. However, he was acquitted of attempted murder. The man remains in custody. His sentencing will come at a later date. blc/kl -(AFP, dpa)", -3343,2017/3/24,http://www.dw.com/en/tillerson-to-meet-with-nato-members-in-brussels/a-38117756?maca=en-rss-en-all-1573-rdf,Tillerson to meet with NATO members in Brussels,US Secretary of State Rex Tillerson has decided to attend a NATO meeting after all. Alliance diplomats were shocked when the US's top envoy initially said he would skip the talks.,"Tillerson plans to meet with NATO foreign ministers in Brussels sometime next week, the US State Department said on Friday, following public outcry over the secretary's initial refusal to reschedule the talks. ""We are currently planning to hold the meeting of NATO foreign ministers on 31 March. Consultations on scheduling among allies are ongoing,"" said a NATO official in Brussels, as reported by AFP news agency. Tillerson caused a stir last week when he said he would not attend a NATO summit in Brussels, even as he confirmed that he would meet with Russian and Chinese leaders around the same time. Instead, the State Department said his acting deputy, Thomas Shannon, would meet with leaders from the military alliance. NATO wary of Trump The announcement fueled already-present fears that the Trump administration was unsupportive of NATO, especially as questions over the relationship between administration officials and Moscow continue to mount. Following the outcry, the State Department proposed new dates for the meeting. Many belonging to the alliance are wary of Trump, especially after he called NATO ""obsolete"" and tweeted last week that Germany owes ""vast sums of money to NATO and the United States."" The meeting comes as NATO seeks to expand eastward along the border with Russia. Trump has repeatedly expressed his admiration of-Russian President Vladimir Putin. blc/kl-(AFP, AP)", -3344,2017/3/24,http://www.dw.com/en/venezuela-pleads-to-un-for-help-as-medicine-supplies-dry-up/a-38117698?maca=en-rss-en-all-1573-rdf,Venezuela pleads to UN for help as medicine supplies dry up,Venezuela's Nicolas Maduro has said he asked the United Nations for help in boosting his country's medicine supplies. Hospitals in the country are reportedly running on just three percent of the supplies they need.,"Maduro's admission on Friday that Venezuela was battling a-crippling medicine shortage was a rare public admission of the desperate state the cash-strapped country finds itself in. ""I have asked the United Nations to regularize the whole medicine issue,"" Venezuela's president said in a broadcast on national television. ""The United Nations has the most advanced plans to recover the pharmaceutical industry's productive capacity."" Venezuelans are being faced with crippling gasoline shortages amid mounting problems for the country's oil industry. It's a source of frustration in a country that has the largest crude oil reserves in the world. (23.03.2017) Fourteen countries from North and South America have issued a plea for Venezuela to ""re-establish democracy"" by releasing political prisoners and holding national polls. An economic crisis is crippling the country. (24.03.2017) Mildred Varela needs medication to successfully combat her breast cancer - but the economic crisis in Venezuela means none is available. She spends every day tracking down medicines for herself and for others in need. (15.07.2016) With the country in its fourth year of deep recession, reports of depleted pharmacies, as well as hospitals without antibiotics or cancer drugs have become commonplace. According to the Venezuelan Medical Federation, hospitals are running with just three percent of the medicine and supplies they need. Venezuela, home to the world's largest oil reserves, has been hit hard in recent years-by-falling oil prices. However, Maduro on Friday reiterated that the country's crippled economy was the victim of what he called-an ""economic war"" waged by business interest seeking to destabilize his government. ""Resisting has been worth it.-Socialism is worth it,""-Maduro said. The mighty fall Maduro's admission marked a remarkable U-turn for a country that had previously prided itself on providing humanitarian aid to poorer nations. Yet even as Maduro was making his admission, government aids were hosting a business forum entitled ""Venezuelan Powerhouse,"" while cargo planes were dropping emergency supplies in for victims of the floods in Peru. That has prompted the opposition to decry the government's move to put further strain on supplies, saying that generosity should be reserved for Venezuelans. The opposition has been trying tirelessly to force Maduro from power. In 2015, however, Maduro disavowed a landslide election loss and suspended a recall campaign. On Friday fourteen countries from North and South America issued a plea for Venezuela to ""re-establish democracy"" by releasing political prisoners and holding national polls. The next elections are scheduled for 2018. dm/jr-(AP, AFP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JRHB", -3345,2017/3/24,http://www.dw.com/en/merkel-gets-early-election-test-with-saarland-state-poll/a-38036904?maca=en-rss-en-all-1573-rdf,Merkel gets early election test with Saarland state poll,"Germany's ""super election year"" of 2017 will soon be underway: State parliamentary elections will be held on Sunday in the German state of Saarland. Suddenly, everyone has their eye on Germany's smallest state.","""Great things always arise from small ones,"" is the slogan for Saarland's image campaign. The small state on the border with France and Luxembourg tends to be the butt of jokes in Germany. Comedian Jan B?hmermann, known for the diplomatic scandal his satirical poem sparked in Turkey, calls the state ""superfluous."" Jokes about the state of Saarland have become a staple in B?hmermann's show ""Neo Magazin Royale."" In the German media, Saarland is often mentioned as a unit of measure. For example, when there is a forest fire or earthquake somewhere, German journalists speak of an area ""twice as big as"" or ""half the size of"" Saarland. Even though most Germans probably cannot imagine the exact size, people are still meant to know that rather small areas are being described. The state elections on Sunday put Saarland back in the spotlight. After all, federal elections are only half a year away and state elections are seen partly as a barometer of the national electorate's mood. Political scientists, however, do not agree on the extent to which this is still valid in the case of Saarland in this ""super election year."" What is more, the state has only 800,000 eligible voters compared to the 62 million nationwide. Late addition to the country Saarland's history makes it a special state in Germany.- After World War II, Saarland became the Saar Protectorate, which was administered by the French, and only rejoined Germany in 1957. Kramp-Karrenbauer took a hard line against Turkish politicians in Saarland This fact, and, of course, the border location, mean that Saarland has traditionally had close ties with France. France is the state's most important foreign trade partner. Saarland is also the only state in which French is taught as the first foreign language at school, while elsewhere in Germany, English is the norm. In 2014, the government of Saarland announced its ""French strategy,"" which outlines the intention of making the region bilingual in French and German by 2043. Internationally, Saarland recently made headlines with regard to Turkey: Conservative premier Annegret Kramp-Karrenbauer announced in mid-March that she wanted to prevent the election campaigns of Turkish politicians in Saarland - even though no Turkish politician had announced travel plans to the state. The conservative Christian Democrat Union's (CDU) top candidate most likely wanted to take a clear stance in the campaign for the upcoming elections:-According to the ""ARD-Deutschlandtrend"" survey, a monthly political opinion poll, the majority of German respondents said that they did not want Turkish politicians conducting election campaigns in Germany, with 77 percent even saying that the federal government should forbid such campaign appearances. Is the 'Schulz effect' working""? At 62 percent, Saarland has the highest percentage of Catholics in any state population in Germany. That is why, traditionally, conservative and Catholic politicians often rule the state. The CDU has already governed there for a whole 18 years. But that could soon change. The center-left Social Democrats (SPD) hope that the ""Schulz effect,"" meaning the hype surrounding Martin Schulz --the new party leader and its candidate for chancellor - will weave its magic in Saarland as well. And indeed, an ARD survey now shows the CDU just one percentage point ahead of the SPD, even though in January the CDU was clearly more popular than the Social Democrats. A so-called ""grand coalition"" of the two parties is thus still possible, but according to several opinion polls, another option could be an SPD coalition with the Left party, known as a ""red-red coalition"" under Germany's political color-coding system. Will Schulz help put the SPD in power in Saarland? That is also an unusual feature of Saarland - a strong left-wing party. Traditionally, the Left party is not that strong in western German states. However, it is benefiting from the nationwide popularity of a prominent politician from Saarland, Oskar Lafontaine. The now-Left party politician once served as premier of Saarland for the SPD. Now, for the third time, he is running as the head of the Left party in the state elections. Next Sunday, we will find out who will soon have the say in the smallest parliament and smallest government of all German states. And then, the election focus will move on to other states in Germany. After Saarland, the northern German state of Schleswig-Holstein and the western state of North Rhine-Westphalia will hold elections in May before the federal elections are held in September.", -3346,2017/3/27,http://www.dw.com/en/russian-soldiers-killed-in-islamic-state-claimed-attack-in-chechnya/a-38117689?maca=en-rss-en-all-1573-rdf,Russian soldiers killed in 'Islamic State'-claimed attack in Chechnya,"The militant group has claimed responsibility for a deadly attack on a military facility in the restive region. A National Guard spokesman said the agency was at the forefront of fighting ""international terrorism.""","Russia has intensified its political and military involvement in Libya as part of a new Middle East strategy, which has several objectives aimed at satisfying its interests. Some of them benefit the region while others play into Russia's hand. At least six Russian soldiers were killed on Friday when gunmen launched an attack on a military facility in Chechnya, the National Guard said in a statement. ""Six of the attackers were destroyed,"" the National Guard said. ""During the armed combat, six military were killed and there are wounded."" The ""armed bandits"" stormed the base under heavy fog but failed to enter the facility, said the National Guard, a national security agency created by Russian President Vladimir Putin last year for counter-terrorism and border security operations. The so-called-""Islamic State"" (IS) claimed responsibility for the attack, saying ""six soldiers of the caliphate"" were killed in the attack, according to the ""Amaq"" news agency, known for its links to the militant group. The militants attacked ""a military base of the Russian National Guard close to Naurskaya village in northwestern Grozny in Chechnya,"" said a statement from the militant group. ""They clashed with those at the base with light weapons for several hours."" A National Guard spokesman said the attack showed that the security agency is ""on the forefront of struggle with international terrorism,"" according to state-owned TASS news agency. Since the collapse of the Soviet Union, Moscow has fought two separatist wars in the predominantly-Muslim region. However, under the rule of strongman leader Ramzan Kadyrov, such violence has remained relatively uncommon. Russia targeted Since Moscow entered-the Syrian conflict in September 2015,-""IS"" has vowed to launch attacks on Russian targets. In October 2015, an affiliate of the militant group claimed responsibility for downing a passenger place over the Sinai Peninsula in Egypt, killing all 224 people on board. It has also plotted attacks on Russian targets at home and abroad. Russia announced it would provide air support for Syrian government forces fighting terrorist groups in the country. However, the maneuver was largely seen as a means to bolster Syrian President Bashar al-Assad's grip on power amid a protracted, multi-faceted conflict. ""IS"" rose to notoriety in 2014, when it occupied large swathes of land across Syria and Iraq, culminating in the seizure of the latter's third-largest city Mosul. An international coalition led by the US has vowed to defeat the group. However, Moscow is not included as a member of the anti-""IS"" alliance. Islamic State (IS) - also known as ISIL, ISIS and Daesh - is an al Qaeda splinter group with militant Sunni Islamist idealogy. It emerged in the aftermath of the US-led invasion of Iraq in 2003 and is led by Abu Bakr al-Baghdadi. The group's goal is to create an Islamic state, or ""caliphate"", across Iraq, Syria and beyond. IS is believed to be operational in 18 countries across the world. It controls territory in Iraq and Syria, and its de facto capital is Raqqa, in Syria. However, the group has lost more than a quarter of its territory since January 2015. There are many groups involved in the fight against IS. The United States is leading air strikes by an international coalition of more than 50 countries, including several Arab nations. Russia has conducted air strikes in support of the Syrian government. Regional forces, such as the Kurdish Peshmerga (pictured above), are fighting on the ground. One of the group's main sources of income has been oil and gas - it still controls an estimated one third of Syria's oil production. However, US-led air strikes are deliberately targeting this valuable asset. Other means of income include taxes, ransoms and selling looted antiquities. IS has claimed responsibility for numerous terrorist attacks across the globe. The most deadly to date was a suicide bombing this year in the Iraqi capital, Baghdad, in which more than 200 people died and many more were injured. IS leaders have encouraged so-called ""lone wolf"" attacks, whereby individuals who support IS can carry out terrorist acts without the direct involvement of the group. The group uses various tactics to expand its power. IS fighters have looted and destroyed historical artefacts in Syria and Iraq in an attempt at ""cultural cleansing"", and thousands of women from religious minorites have been enslaved. The group also uses social media as a propaganda and recruitment tool. Around six million Syrians have fled abroad as a result of the ongoing conflict - many to neighboring Lebanon, Jordan and Turkey, but also further afield to Europe. More than three million Iraqis have been displaced within the country. Author: Rachel Stewart ls/jr (AFP, dpa, Reuters)", -3347,2017/3/25,http://www.dw.com/en/singapore-teen-blogger-granted-us-asylum-over-fears-of-political-persecution/a-38117338?maca=en-rss-en-all-1573-rdf,Singapore teen blogger granted US asylum over fears of political persecution,"A US judge has granted asylum to Singaporean blogger Amos Yee, ruling that the 18-year-old qualified as a political refugee. Yee has been jailed twice for critical comments on religion and former leader Lee Kuan Yew.","Chicago judge Samuel Cole issued a 13-page ruling on Friday qualifying teenage Singaporean blogger Amos Yee as a political refugee, granting him asylum in the US. Yee's previous prosecution and imprisonment in Singapore ""constitute(s) persecution on account of Yee's political opinions,"" Cole said. ""The evidence presented at the hearing demonstrates Singapore's prosecution of Yee was a pretext to silence his political opinions critical of the Singapore government."" Yee had been in US immigration detention since last December, having been held by US authorities since arriving at Chicago's O'Hare International Airport. The teenage blogger had pleaded asylum, saying he had suffered persecution in native Singapore for his political opinions. Although the US Department of Homeland Security had initially opposed Yee's asylum application, the 18-year-old was eligible for immediate release following Cole's ruling, and could be released as early as Monday. His attorney Sandra Grossman welcomed the ruling, saying that the judge's decision supported the rights of individuals to criticize their governments. ""The right to free speech is sacred, even when such speech is considered offensive,"" she said. ""The decision timely underscores the vital need for an independent judiciary in a functioning democracy."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1JAoH Authorities in the Southeast Asian city-state had twice detained and jailed Yee for comments the teenager had made online. In 2015, he was jailed for four weeks-for comments he made about former Singapore premier Lee Kuan Yew. Yew had recently passed away and the nation was mourning. While outspoken of criticism of political leaders is discouraged in Singapore, the prosecution's stated reason for punishing Yee centered around his criticism-of religions.- Cole said that testimony from the case showed that the Singaporean government's ""real purpose was to stifle Yee's political speech,"" adding that the prison sentence was ""unusually long and harsh"" especially for his age. Last September Yee pleaded guilty to six counts of deliberately posting comments online that were critical of Christianity and Islam. He was sentenced to six weeks in prison.- Both cases have been closely scrutinized by rights groups, as well as the United Nations, who fear that free speech in the city-state is being drastically limited and combated. ""Singapore excels at creating a pressure cooker environment for dissidents and free thinkers who dare challenge the political, economic and social diktats from the ruling People's Action Party,"" Phil Robertson, deputy director of the US-based rights group Human Rights Watch, said in a statement. ""It's clear the Singapore government saw Amos Yee as the proverbial nail sticking up that had to be hammered down."" dm/jr-(AP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2SUyY", -3348,2017/3/25,http://www.dw.com/en/using-stem-cells-to-treat-erectile-dysfunction/a-38107499?maca=en-rss-en-all-1573-rdf,Using stem cells to treat erectile dysfunction,Danish researchers have found a natural way to treat erectile dysfunction - with just one injection into the penis. They hope their method will have long-term benefits in helping men regain the ability to have sex.,"There's new hope for men with erectile dysfunction. Danish researchers have found that stem cell therapy can help previously impotent men have spontaneous intercourse. The team led by Martha Haahr from Odense University Hospital in Denmark presented their findings at the European Association of Urology conference in London. Haahr: First to use man's own stem cells in ED treatment Haahr's team used stem cells taken from abdominal fat cells via liposuction and injected them into the penises of 21 trial participants. The men were able to be discharged from the clinic on the day of the procedure. Within six months of the initial treatment, eight of the men reported they had regained the ability to participate in penetrative sexual activity without using drugs like Viagra. ""What we have done establishes that this technique can lead to men recovering a spontaneous erection - in other words, without the use of other medicines, injections or implants,"" Haahr said.-- Participants reported that the improvement has been maintained for a year. While the results presented at the conference only come from the early phase of the trial, the research team is beginning phase two with more participants to better evaluate the effectiveness and confirm the safety of the method. The stem cells are isolated from the abdominal fat cells and then injected into the patient's penis Erectile dysfunction affects nearly half of all men between 40 and 70 years of age. Other impotence treatments like Viagra can come with serious side-effects, and while getting an injection into the penis likely wasn't fun for the trial participants, none of them reported significant issues. Haahr stresses that the initial testing was a small trial and that a publicly available solution is still some time away. But she's also optimistic about the future. ""We are pleased with the preliminary outcomes, especially as these men had previously seen no effect from traditional medical treatment and continue to have good erectile function after 12 months follow-up,"" she said. ""This suggests the possibility of therapeutic options for patients suffering from erectile dysfunction."" -", -3349,2017/3/25,http://www.dw.com/en/war-crimes-un-strengthens-resolve-against-destruction-of-cultural-heritage/a-38117273?maca=en-rss-en-all-1573-rdf,'War crimes': UN strengthens resolve against destruction of cultural heritage,"The purposeful destruction of cultural heritage sites may amount to war crimes, a new resolution adopted by the UN Security Council says. Officials have warned of ""cultural cleansing"" in the Middle East, Asia and Africa.","The restoration of Timbuktu's 15th-century Sidi Yahya mosque, destroyed by jihadists in 2012, sends a signal that Mali won't allow its equilibrium to change permanently, a Mali researcher told DW. The UN Security Council on Friday passed a resolution strengthening the protection of global cultural heritage sites threatened by conflicts, saying perpetrators could be prosecuted for war crimes. The resolution urges nations to increase efforts to preserve historic monuments and sites in conflict zones. The onset of the 21st century witnessed attacks against global heritage sites increase significantly, including the destruction of the Bamiyan Buddhas in Afghanistan and Timbuktu's ancient shrines in Mali. Previous efforts by the Council to safeguard cultural heritage focused on the illicit trafficking of looted cultural relics to fund terrorist activities in Iraq and Syria, where the ""Islamic State"" militant group destroyed UNESCO World Heritages Sites, including Roman ruins at Palmyra. However, Friday's resolution called for further international cooperation in investigations and prosecutions of individuals and groups committing attacks against cultural heritage sites, monuments and relics. ""Directing unlawful attacks against sites and buildings dedicated to religion, education, art, science or charitable purposes, or historic monuments may constitute, under certain circumstances and pursuant to international law, a war crime and that perpetrators of such attacks must be brought to justice,"" the resolution said. 'Cultural cleansing' UNESCO Director Irina Bokova described the resolution as ""historic,"" saying it reflected the ""recognition of the importance of cultural heritage for peace and security."" ""Heritage is identity - it is belonging,"" Bokova told the Council after the resolution passed. ""The deliberate destruction of heritage is a war crime - it has become a tactic of war, in a global strategy of cultural cleansing."" The resolution comes after the International Criminal Court in the Hague last year sentenced a Malian jihadist-for the destruction of shrines and a mosque-in the fabled city of Timbuktu. On Monday, several countries, including France and Saudi Arabia, pledged-$75.5 million for the protection of cultural heritages sites threatened by conflicts and terrorist attacks. At the donor conference held in the Louvre museum in Paris, French President Francois Hollande said the destruction of cultural heritage added to the persecution of populations in conflict zones in the Middle East, Asia and Africa. ""[It's] the same objective: to break what was there before in order to kill hope afterwards, to eradicate human and cultural diversity,""-he said, vowing to raise $100 million for the protection of heritages sites by 2019. What is now left of the ancient ruins at Palmyra - known as the ""Pearl of the Desert"" - is uncertain after a new strike by IS militants on Thursday. This photo shows the face of statue at a destroyed museum in March 2016. Syrian government forces had recaptured Palmyra that month from jihadists, who view the UNESCO-listed site's ancient ruins as idolatrous. This image of Palmyra's Tetrapylon was taken in 2014. If SANA agency reports are correct, this monument is no longer standing. Current images after Thursday's reported strike are still unavailable. This image shows the Roman amphitheater, which was originally built around 200 A.D., in April 2016. Reports now say the facade has been destroyed by IS extremists. In 2015, jihadists used the site - which once premiered plays - for mass executions. After the city was retaken from IS last year, the Russian government staged a classical music concert here to celebrate the success. Palmyra's National Museum, shown here, also suffered heavy losses under IS rule. Its treasures were looted, some were damaged and others burned. This picture, taken last March, shows the ruins of Palmyra's Temple of Baalshamin - just two columns left standing after IS destruction the year before. The smaller image, held by the photographer, shows the image he took in 2014 - with clearly more in the background behind the columns. Author: Sabine Oelze (als) ls/jr (AFP, AP)", -3350,2017/3/25,http://www.aljazeera.com/news/2017/03/frustration-cabin-electronics-ban-force-170325064741713.html,Frustration as cabin electronics ban comes into force,"Passengers decry US, UK ban on laptops and tablets in hand luggage on some flights from Middle East and North Africa.","The US and British ban on laptops and tablets in carry-on luggage on some flights from the Middle East and North Africa has come into force, immediately drawing complaints from passengers at several airports. The ban requires that any personal devices larger than a mobile phone - such as tablets, laptops and cameras - be placed in checked baggage for US and Britain-bound flights. The US restrictions apply to flights originating from 10 airports in countries including Turkey, Qatar and the United Arab Emirates. The British restrictions do not include the UAE or Qatar but do affect Turkey, Lebanon, Jordan, Egypt, Tunisia and Saudi Arabia. READ MORE: The Arab airlines using Trump's bans for marketing The affected airlines had until Saturday to implement the new rules. The bans have already led to discontent and complaints from passengers at Ataturk International Airport in Istanbul, which is one of those listed. ""This airport is so secured. The security level is so high compared to other airports in the rest of this part of the world. So why doing that from here?"" Haggai Mazursky, a traveler, told Reuters news agency. Al Jazeera's Sinem Koseoglu, reporting from Istanbul, said the airlines were trying to limit passengers' frustrations while holding talks with the US to lift the ban.- ""They [Turkish airlines] believe that if the comfort of passenger is affected, it will impact the industry as a whole and the company as well,"" she said. ""In efforts to make it easier for the passengers, they [Turkish Airlines] are offering free wifi during flights and will also launch a special mobile application in April."" READ MORE: US electronics ban for Middle East flights draws doubts US and British officials said the decision to implement the security measures was a result of intelligence showing an increased risk for ""terrorist activity"" involving commercial aviation. However, many observers in the Middle East and North Africa said the ban is amounted to discrimination, while others questioned the basis for the electronics ban, saying they were a ploy to undermine the aviation industry of the countries affected. ""If you say it like this, you are saying everybody can be a terrorist. It's not respectful. I think it's not good,"" said another passenger. Geoffrey Thomas, the editor-in-chief of Airlineratings.com, said the UK joining the ban gives it some credibility that there might be an evolving threat, ""but at the same time UK has not banned UAE and Qatar, which raises a lot of concern as to what this is all about"".- ""Some suggest that ban on UAE and Qatar has more to do with the Trump administration's desire to curb the power of Middle East carriers because one of the crazy parts about this ban is that Emirates from Dubai to Athens and on to the US are not included in the ban, ""And then you have cities that have security challenges like Lagoas-and Islamabad which are also not included in the ban, so there are questions about this that leaves a lot of experts-perplexed,"" Thomas said. Turkey's foreign ministry said on Thursday that talks were underway to try to persuade the US and Britain to exclude Turkish Airlines and Istanbul airport from the bans. Source:-Al Jazeera and news agencies", -3351,2017/3/25,http://www.aljazeera.com/news/2017/03/eu-leaders-mark-60th-anniversary-rome-treaty-170325072831955.html,EU leaders mark 60th anniversary of Rome treaty,Leaders of the bloc gather in the Italian capital to celebrate the 60th anniversary of the EU's founding treaty. High security,"European Union leaders are renewing their vows on the 60th anniversary of the troubled bloc's founding treaties at a special summit in Rome designed to show unity despite Britain's looming divorce. Meeting on Saturday in the same Renaissance-era palace where six founding countries signed the Treaty of Rome on March 25, 1957, the 27 leaders minus Britain will endorse a declaration of intent for the next decade. The ceremonial gathering in Rome began with an audience with Pope Francis who gave messages of solidarity in the Vatican on Friday evening. ""You are called on to blaze the path of a new European humanism,"" Francis told the leaders. ""When a body loses its sense of direction and is no longer able to look ahead, it experiences a regression and, in the long run, risks dying,"" he said. The White House congratulated the EU overnight on its 60th birthday, in a notable shift in tone for President Donald Trump's administration, whose deep scepticism about the bloc has alarmed Brussels. However, British Prime Minister Theresa May's absence from the summit, four days before she launches the two-year Brexit process, and a row over the wording of the Rome declaration underscore the challenges the EU faces. Security is tight with snipers on rooftops, drones in the skies and 3,000 police officers on the streets as Italy takes no risks following an attack this week in London claimed by the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) group. Around 30,000 protesters are expected to take part in four separate marches - both pro- and anti-Europe - throughout the day in the Italian capital. Police plan to stop all traffic and declare a no-fly zone. The Rome Declaration that the leaders will sign proclaims that ""Europe is our common future"", according to a copy obtained by the AFP news agency, after a series of crises that have shaken its foundations. RELATED: How will Brexit affect the European Union? Mass migration, the eurozone debt crisis, attacks by armed groups and the rise of populist parties have left a bloc formed from the ashes of World War II searching for new answers. Yet the leaders are deeply divided over the way forward almost before they have started. Polish Prime Minister Beata Szydlo only agreed to sign the declaration at the last minute, after bitterly opposing a reference to a ""multi-speed"" Europe favoured by powerhouse states France and Germany, AFP said. Poland, central Europe's largest economy, is concerned that as one of nine of the EU's current 28 members outside the eurozone, it could be left behind should countries sharing the single currency push ahead with integration. Greece, the loudest voice against the austerity policies wrought by its three eurozone bailouts, meanwhile insisted that the document should mention social policies. Source:-News agencies", -3352,2017/3/25,http://www.aljazeera.com/news/2017/03/uk-report-gulenists-part-failed-turkey-coup-170324211624038.html,UK report: Some Gulenists involved in Turkish coup,"'Relative lack of hard evidence' that Gulen movement as a whole was behind coup attempt, UK Parliament reports says.","Some followers of cleric and businessman Fethullah Gulen were involved in last summer's failed coup in Turkey, a UK Parliament report says, adding that there is no evidence to suggest the Gulen Movement as a whole was behind the plot. The Foreign Affairs Committee's (FCO)-report released on Saturday said the evidence of individual Gulenists' involvement in the attempt to overthrow the government was ""mostly anecdotal or circumstantial, sometimes premised on information from confessions or informants..."".- The report also said that such evidence ""is so far inconclusive in relation to the organisation as a whole and its leadership"". As well as the coup, the 82-page report also focuses on the UK's ties with Turkey; the threat from the-outlawed Kurdistan Workers' Party (PKK); and the status of democracy in the country. Since the July 15 coup attempt, Turkey has accused Pennsylvania-based Gulen of being behind the push to overthrow President Recep Tayyip Erdogan. READ MORE: Turkey's failed coup attempt - All you need to know During the failed coup, about 300 people, the vast majority of them civilians, were killed across Turkey as rebel soldiers targeted the government by bombing state buildings. ""The FCO knows too little for itself about who was-responsible for the coup attempt in Turkey, or about the 'Gulenists' ...-whom the Turkish government-exclusively blames for the coup,"" the report said. ""We found that the Turkish government's account of the Gulenists and the coup, which the FCO seems willing to accept broadly at face value, is not substantiated by hard, publicly available evidence, although as yet uncontradicted by the same standard."" The report cited a ""lack of transparency"", adding that it was unlikely Gulenists were the only elements involved in the coup. Turkey is-seeking Gulen's extradition-from the US, a request which has not been granted. As well as accusing Gulen's network of staging the coup attempt, Turkey says it is behind a long-running campaign to overthrow the state through the infiltration of Turkish institutions, particularly the military, police and judiciary. The FCO said that while Turkey faced a threat following the coup attempt against the backdrop of increased ""terrorism"", it disagreed with some tough measures by the Turkish government under a state of emergency.- ""Turkey is an important strategic partner facing a volatile period,"" said-Crispin Blunt, chair of the Foreign Affairs Committee. ""It needs and deserves our support, but that support needs to include our critique where Turkish policy is not in its own, or our joint long-term interests: these are regional security and stability as well as strong and accountable institutions in Turkey."" Source:-Al Jazeera News", -3353,2017/3/25,http://www.aljazeera.com/indepth/features/2017/03/undocumented-migrants-await-trump-move-170319112810544.html,Undocumented migrants await Trump's next move James Reinl,"Cafes, churches and playing fields are quieter than usual, as undocumented immigrants lay low amid the crackdown By All gone silent Enforcing the law","United States, New York - With such slogans as ""Resiste"" and ""No Deportaciones"" emblazoned on the walls, there is little doubt that La Morada, a restaurant in a gritty district of New York, is more than your average taco-serving Mexican diner. Sure, their Oaxaca-style tortilla, mole sauce and steaming hot chocolate delight locals. But the Saavedra family that owns and runs the eatery sees itself as a Bronx bastion against a revived immigration crackdown under United States President Donald Trump. ""There's obviously a very palpable fear in our community and we want to be ready for the worst-case scenario,"" Marco Saavedra, 27, a college graduate who serves dishes while fighting his asylum claim to remain in the US, told Al Jazeera. ""We're still waiting to see how Trump does it, through courts or executive action. But we've got to be ready."" Business has slowed since Trump's inauguration in January as Latinos watch their pennies in uncertain times, said his sister, Yajaira Saavedra, 28. The bistro's weekly civic meetings and ""know your rights"" workshops are, however, busier than before. La Morada - which means both ""purple"" and ""abode"" - is not alone. Many taquerias, tamale bars and other Latino comfort food joints across the US have gone quiet. So have football pitches and churches where Sunday services ring out in Spanish. The reason is simple. Many undocumented immigrants are less eager to risk driving a car and being stopped by police for a broken taillight, only for such routine violations to escalate into deportation proceedings. ""People are being cautious and more conservative due to the uncertainty of the Trump era,"" said Yajaira, who benefits from former-President Barack Obama's policy to defer action against some undocumented child migrants. Fifty days into office, Trump, a Republican, is coming good on campaign pledges to deport undocumented immigrants in the US and build a wall along its 3,200km southern border. Department of Homeland Security memos call for the hiring of 10,000 more Immigration and Customs (ICE) agents and 5,000 more Customs and Border Protection (CBP) agents, and tougher rules on whom will be targeted. They would include recent entrants, failed asylum seekers, convicts and those charged with crimes. Trump has also moved to strip federal funding from the so-called sanctuary cities and states that limit cooperation with deportation teams. READ MORE: The cost of Trump's wall for migrants In December, Pew Research Center found that, when asked, 58 percent of Americans highlighted the importance of deporting undocumented immigrants, while 62 percent stressed that some should be allowed to legalise their status in the US. Among immigration experts, Trump has many critics. Steven Choi, director of New York Immigration Coalition, a civic group, blasted a ""draconian enforcement agenda that wrongfully characterises immigrants as criminals and terrorises our communities"". Others highlight the cost of Trump's plans. The 15,000 new immigration officers must all be paid; a wall stretching from the Pacific Ocean to the Gulf of Mexico could cost $40bn, according to the MIT Technology Review. READ MORE: US protests grow against Donald Trump's immigration ban The Center for American Progress found that ejecting all undocumented immigrants would hurt the US economy by $4.7 trillion over a decade. Deportations may even be pointless, says Pew, as more Mexicans leave the US than arrive nowadays. In part, Trump is living up to pledges that won him last year's election, particularly among white voters in parts of Pennsylvania, Michigan and other rust belt states who have watched factories shutter and an epidemic of opioid abuse ravage once-prosperous towns. ""The liberal elite calls for immigration policies, but they don't see their impact on many of their fellow Americans,"" Dave Ray, a spokesman for the Federation for American Immigration Reform (FAIR), a right-wing lobby group, told Al Jazeera. ""Their kids don't go to the same schools and they don't live in those neighbourhoods that have to handle an influx of illegal immigrants. The liberal elite is so removed from that reality, it's like two different worlds."" For Ray, Trump's tough talk is already working. The number of illegal immigrants crossing from Mexico to the US fell by 40 percent between January and February, according to Homeland Security Secretary John Kelly. ""Obama talked about an amnesty and minimal immigration enforcement and the borders were swarmed,"" said Ray. ""Trump talks tough on border control, removing criminal aliens and ending sanctuary cities and border apprehensions drop like a hot potato. Words matter."" READ MORE: Can the US end its addiction to painkillers? Aside from securing the border, FAIR says US labour laws should be enforced. Once undocumented migrants are sacked by farm owners, eateries and other bosses in the US, they will head back to their motherlands to earn a crust. Against this backdrop, many undocumented immigrants are readying for a knock on the door by deportation squads. Mexico's 50 consulates in the US have been deluged with requests for birth certificates, passports and other forms of identification. Some seek to regularise their status in the US, some undocumented parents want Mexican passports for US-born children in case they get caught in an ICE roundup and their whole family has to head south of the border with them. Others are getting co-signers authorised on bank accounts and applying for co-guardianship of US-born children so that, if a family carer or breadwinner were deported, it would be easier for their partner to carry on, said Marco Saavedra. The Cabrini Immigrant Services centre in downtown Manhattan has been overwhelmed. Legal aid slots on Mondays can accommodate 15 clients, but queues of 80 or more applicants mean scores are turned away, said manager Javier Ramirez-Baron. ""People feel attacked and afraid, so they want to see what they can do,"" he said. ""We're helping them with their legal cases, their documents and preparing plans in case they're stopped by police, so they're ready for any scenario."" READ MORE: What is wrong with Trump's immigration ban? Back in the South Bronx, the Saavedra family gets ready for the evening rush of orders of stuffed Poblano peppers and other deep-fried treats. Chefs, some of them undocumented, chop cactus salads and squeeze limes for fresh guacamole. They typify the struggles of many Latinos in the US. The parents crossed the border without papers seeking work in the 1980s. Marco and Yajaira joined them years later, but only Yajaira benefited from the Deferred Action for Childhood Arrivals (DACA) scheme. Their youngest daughter was born in the US and has citizenship. Because of this, deportation proceedings against one family member would force difficult decisions upon the rest. This, of course, has been hanging over their heads for years, but the West Wing's latest occupants give fresh cause for concern. As far back as 1992, the Saavedras purchased a house outside Mexico City as a potential retirement home. An uncle takes care of the place, but, in recent months, they have bought more furniture to make it liveable. ""I don't want to entertain it, but we think we're resilient enough that if we must start another life in Mexico, we can,"" said Marco, while musing about what jobs a US education could get him down south. ""We always have to have a backup plan."" Source:-Al Jazeera News", -3354,2017/3/25,http://www.aljazeera.com/indepth/features/2017/03/zimbabwe-floods-leave-villagers-stranded-170317130420567.html,Zimbabwe floods leave villagers stranded Tendai Marima,More than 250 people have been killed so far this rainy season as floods have left remote communities isolated. By A perilous crossing 'We were not ready' 'I don't know where to begin',"Sibhula, Zimbabwe --Musa Ndlovu, 97, Sehelo Msebele, 35, and Siphiwenkosi Ndlovu, 20, are standing at the bank of a fast-flowing river. The three women are preparing to return home after a day spent grinding maize.- But since heavy rainfall triggered by Tropical Storm-Dineo, which left a trail of destruction across parts of southern Africa, damaged the bridge that crossed the Hovi River, that has meant wading and swimming through the river's brown water. For the women live in the village of Sibhula, a remote settlement that is home to 1,000 people, 550km south-west of the capital, Harare, and which for more than three weeks has been trapped by two flooded rivers that run parallel to it; the Hovi and the Maleme. Malamulela Ncube, 17, steps forward as one of the women balances a sack of ground maize on his shoulder. He wades through the river to return the sack to their village.- He will do the same thing with the three remaining sacks. As he places the fourth on his shoulder, the three women follow his lead, hiking up their skirts and dipping their shoeless feet into the river. One by one, they wade in. Joining hands, they move in a curved line that pushes against the current. At times they fall backwards into the water, but they get up again and keep on moving until they reach the other side.- Driven by desperation, the villagers must gamble with the waters, swimming against the rapid currents, to go in search of food, medicine and other basic necessities. The army has airdropped two flood relief consignments into Sibhula which included maize grain - but the villagers must cross the river to reach the grinding mill. The three women have each ground 20kg of maize, the country's staple, into mealie meal. Sebele hopes to feed her family of five for up to two weeks on the cornmeal by carefully rationing it into two meals a day - porridge in the morning and sadza, a thicker, doughy version eaten as a main meal. But once the two weeks are up, Sebele and Ndlovu say they are willing to cross the river again if the bridge has not been fixed. People are crying with this water, they don't know what to do. The hospital and the grinding mill are on this side so we have to come or we'll have nothing to eat ... Musa Ndlovu, the village head of Sibhula ""People are crying with this water, they don't know what to do,"" says Ndlovu. ""The hospital and the granding mill are on the other side of the river.- ""We'll have nothing to eat [if we do not cross],"" the 97-year-old adds. ""It's dangerous to cross the water like this, but there's nothing we can do, we need to survive."" She is aware of the risk she is taking. But, like Sebele, she feels it's riskier not to cross. The flooding of the rivers has also affected the community's livelihood as many depend on subsistence farming and vending to make a living. For close to a month, Sebele, who normally sells her vegetables in Makwe Business Centre, the adjacent rural settlement on the 'mainland', has been unable to make a living. ""The flooding of these rivers has really disabled us because we can't do anything; we can't work and our children cannot go to school,"" she says. ""Last year we could not harvest much because there was a drought, but now we have too much water .... We could not eat because there was no rain, but now we've lost a lot because of these rains. I can't earn anything like this."" READ MORE: Zimbabwe's dams swell up as the rainy season ends The local authorities routinely caution against crossing flooded rivers, but the district administrator, Judge-Dube, says little can be done to stop people from taking the risk. While efforts to deliver more food and medical supplies are-underway, Dube says plans are moving slowly as the emergency services, the Civil Protection Unit (CPU), are still to conduct a full assessment of Sibhula. A more lasting solution, he points out, may lay in the building of temporary bridges. ""We expect the military will be deployed so they can start putting up temporary bridges, but we don't know when that will be because the resources are still being mobilised,"" he says. Across Zimbabwe more than 70 bridges have been damaged by floods and in some areas, pockets of people have been marooned, cut off by overflowing rivers. Thus far, more than 250 people have died during this rainy season and thousands more have been left homeless. Last month, the government declared the floods a national disaster. It is seeking donor assistance in raising close to $200m to repair the destroyed infrastructure, including roads and bridges, but has so far only raised $35m of the required amount. Although the government is working in partnership with local and international humanitarian agencies to mobilise a flood response, the United Nations has called for more to be done as ""huge gaps remain"" in providing lifesaving assistance to those affected. We had two previous years of drought, but given the changing weather patterns we were expecting floods this year so we were a little prepared, but we didn't know where they would be or the level of destruction that would come with it Bishow Parajuli, UN Resident Coordinator UN Resident Coordinator, Bishow Parajuli, told Al Jazeera that there has been a positive response from international donors, such as the African Development Bank, which is currently conducting an assessment of the damaged infrastructure. Other partners such as the United States, Britain, Japan and China have promised to scale up their response, he says, but emergency funding is limited. ""We had two previous years of drought, but given the changing weather patterns we were expecting floods this year so we were a little prepared, but we didn't know where they would be or the level of destruction that would come with it,"" Parajuli explains. ""We are appealing for more support and we've received a promising response, but we are also aware there are limited emergency resources and on a global scale there are serious situations in other countries as well such as South Sudan, Yemen and Nigeria where there's famine in some places."" Parajuli adds that despite the promise of a good harvest next month, the UN agency, the World Food Programme (WFP), would continue to provide food aid so people would not ""finish their food too quickly"". Last year, a devastating drought left up to four million people in need of assistance, according to the WFP, but this season's heavy rainfall has meant that in some areas crops have been washed away or are waterlogged. In Sipepa, a hamlet in Tsholotsho District in the country's far west, the flooding of the Gwaai River, caused by the downgraded Cyclone Dineo, destroyed crops, livestock and displaced hundreds of people.- Gladys Ngwenya, 70, lost her entire crop, livestock and furniture to the floods. She is currently living in the Sipepa Flood Victims Camp, which was set up by government district administrators with the support of international aid agencies in the grounds of Sipepa Rural Hospital to accommodate up to 900 people. She says she is thankful that she and her two grandchildren were airlifted to safety by the airforce, but she still worries about starting over once the government relocates them to a new area.- ""We are given food to eat here, and they [emergency officials] have said they will help us when we leave, but I don't know how; right now we have nothing. All my chickens and the maize I'd planted were taken by the water and now I don't even know where to begin,"" she says. Andrew Gabela, the camp co-ordinator, explains that although Tsholotsho is generally a flood-prone district, the authorities were not prepared for the storm. READ MORE: Zimbabwe floods killed 246, made thousands homeless But the situation is now under control, he says, and the district authorities are making plans to eventually relocate people to a safer, less flood-prone area. ""We were overwhelmed when this happened, we were not ready at all. We hadn't expected so much damage. But with the help of donors, we've started making plans to relocate them,"" Gabela says. ""But for this period these people will be here until their new homes have been built. ""They will need something to start over, but we'll cross that bridge later, it's one among many challenges we're trying to deal with."" At the camp, Ngwenya shares a large tent with dozens of other women and children. Although NGOs have been quick in their response, the communal site lacks adequate sanitation facilities, blankets and sanitary supplies for women. For now, the villagers live in uncertainty about what the future holds. Much like the country itself, they can only hope that they will be able to rebuild their lives after losing so much. Follow Tendai on Twitter and Instagram @i_amten- Source:-Al Jazeera News", -3355,2017/3/25,http://www.aljazeera.com/news/2017/03/judge-grants-asylum-singapore-teen-blogger-170325042745654.html,US judge grants asylum to Singapore teen blogger,"Amos Yee, accused of insulting the island's late leader and religious groups, was jailed for weeks in 2015 and 2016.","A Singaporean teenage blogger who was jailed twice for his online posts insulting his government was granted asylum to remain in the United States, an immigration judge in Chicago ruled. Amos Yee was jailed in 2015 for four weeks for hurting the religious feelings of Christians and posting an obscene image as part of his attacks on the-island's late leader Lee Kuan Yew-- whose son Lee Hsien Loong is now the prime minister. He was jailed again in 2016 for six weeks for insulting Muslims and Christians in a series of videos posted online, but critics claim the real reason was to silence him. Judge Samuel Cole issued a 13-page decision on Friday, more than two weeks after Yee's closed-door hearing on the asylum application.- ""Yee has met his burden of showing that he suffered past persecution on account of his political opinion and has a well-founded fear of future persecution in Singapore,"" Cole wrote. Cole said testimony during Yee's hearing showed that while the Singapore government's stated reason for punishing him involved religion, ""its real purpose was to stifle Yee's political speech"". READ MORE: Obedience and uncertainty in Singapore He said Yee's prison sentence was ""unusually long and harsh"" especially for his age. Department of Homeland Security attorneys had opposed the asylum bid, saying Yee's case didn't qualify as persecution based on political beliefs. It was unclear whether they would appeal the decision or if Yee would have to remain imprisoned if they did. Attorneys have 30 days to appeal. Singapore, an island republic of 5.6 million which has long been been criticised for strict controls on dissent, takes pride in its racial and social cohesion, which it regards as essential for stability in a volatile region. Source:-News agencies", -3356,2017/3/25,http://www.aljazeera.com/news/2017/03/trump-asks-republicans-withdraw-healthcare-bill-170324194840115.html,Republicans withdraw healthcare bill in blow to Trump,"Short of support from fellow Republicans, House Speaker Paul Ryan pulls legislation meant to replace Obamacare.","Republicans in the US House of Representatives, short of support from their own party, have withdrawn a healthcare bill drafted to repeal and replace ""Obamacare"". House Speaker Paul Ryan-said he recommended that it be withdrawn because he did not have the votes to pass it, and President Donald Trump agreed. Just a day earlier, Trump had demanded a House vote and said if the measure lost, he would move on to other issues. Trump told reporters in the Oval Office that ""we were very close"" and tried to blame Democrats for the failure to pass the legislation - even though his Republican Party controls both the House and the Senate. ""We were just probably anywhere from 10 to 15 votes short,"" Trump said. ""With no Democrat support we couldn't quite get there."" He also said he was surprised and disappointed by the opposition from the House Freedom Caucus, a group of conservative Republicans who led the resistance against the legislation. Ryan told reporters that Obamacare will now stay in place for the foreseeable future. Pulling the bill he had promoted was ""a setback, no two ways about it,"" he said, calling it a ""disappointing day"". Democrats, on the other hand, called it a ""victory"" for the American people. READ MORE: Americans split over replacing Obamacare Scrapping former president-Barack Obama's-healthcare law was one of Trump's major campaign promises. The failure to get the bill approved called into question his ability to get other key parts of his agenda, including tax cuts and a boost in infrastructure spending, through Congress. Public policy professor Bill Schneider said that during the president's first 100 days, his impact is supposed to be at its peak. ""Here, the president was handed a huge setback, by his own party, which was also committed to repealing Obamacare,"" he told Al Jazeera. ""Trump is defeated and he learned something: you cannot deal with members of Congress as if they were building contractors...He said if you don't give me what I want, I'll walk out. Maybe that works with building contractors but it doesn't work with politicians, each of whom has his or her own constituency."" Conservatives had condemned the Republican-drafted bill because it would scrap Obamacare, but put another government plan in its place. They believe healthcare should be left to the free market. Democrats and moderate Republicans, meanwhile, feared the withdrawn bill would take insurance away from millions of people. ""What happened on the floor is a victory for the American people,"" Nancy Pelosi, leader of the minority Democrats in the House, said. She said the message became ""very clear"" to Republicans that people-across the country still support Obamacare. A Quinnipiac University poll indicated only 17 percent of Americans support the Republican plan known as the American Health Care Act (AHCA). READ MORE: The Obamacare debate is not just about healthcare Now that the effort to overhaul the nation's health care system has collapsed, Trump and Treasury Secretary Steven Mnuchin said the administration will focus on gaining congressional approval for a sweeping tax overhaul plan. ""I would say that we will probably start going very, very strongly for the big tax cuts and tax reform. That will be next,"" Trump said. Mnuchin said a bill would soon be introduced to cut both individual and corporate taxes. Obama signed the Affordable Care Act, widely known as Obamacare,-in 2010, providing health coverage for 20 million low-income Americans previously uninsured. Many middle earners complained their premiums spiked as a result.- Millions of Americans would have lost coverage next year under the Republican plan, according to-a review-by the-Congressional Budget Office. It would have rescinded a range of taxes created by Obamacare, ended Obamacare's income-based subsidies to help people buy insurance, and ended the expansion of the Medicaid programme for the poor, among other changes. Source:-Al Jazeera and news agencies", -3357,2017/3/25,http://www.aljazeera.com/programmes/insidestory/2017/03/crime-act-terrorism-170324211626664.html,When does a crime become an act of 'terrorism'?,The attack on the UK parliament has been called 'terrorism'. Who decides whether a crime is a 'terror' act?,"British police have said 52-year-old Khalid Masood was the man who carried out Wednesday's attack outside the parliament in London. Police say Masood was born in the UK as Adrian Russell Ajao, and he used many aliases. ISIL, also known as ISIS, has claimed that Masood was one of its so-called soldiers. But British police have not confirmed that he was affiliated with any group. They have also not confirmed a motive and are trying to establish what he was exposed to. Nonetheless, the chief of counter-terrorism has called Masood a ""terrorist"". When does a crime become an act of ""terrorism""? Presenter: Sami Zeidan Guests: David Canter-- criminal psychologist and director of the International Centre for Investigative Psychology at the University of Huddersfield. Adam Ragusea-- journalist and visiting assistant professor at Mercer University's Center for Collaborative Journalism. Emily Winterbotham-- research fellow for the international security studies department at the Royal United Services Institute. Source:-Al Jazeera News", -3358,2017/3/25,http://www.aljazeera.com/news/2017/03/nicolas-maduro-medicine-shortages-170324224739265.html,Nicolas Maduro seeks UN help to ease medicine shortages,President Maduro asks for support to 'treat economic and social injuries' as country suffers severe medicine shortages.,"Venezuela's President Nicolas Maduro has asked the United Nations for ""help"" boosting medicine supplies as he struggles to combat crippling shortages. ""I've asked for support from the UN to help treat economic and social injuries that have hit our people caused by the economic war and the sharp fall in petroleum prices,"" Maduro said in a televised appearance on Friday. He did not provide any details about the request except to say that the UN has the expertise to normalise the supply and distribution of pharmaceutical drugs in the country. But just acknowledging that Venezuela needs outside help is a telling sign of how deep in crisis the country, sitting atop the world's largest petroleum reserve, has fallen. The country is-suffering from triple-digit inflation as well as severe shortages of fuel, food and medicines,-from painkillers to chemotherapy drugs. As many as 85 of every 100 medicines are missing in the country, Venezuela's main pharmaceutical association has said. Shortages are so extreme that patients sometimes take medicines ill-suited for their conditions, doctors warn. IN PICTURES: The face of hunger and malnutrition in Venezuela Leftist President Nicolas Maduro blames the shortages on a right-wing plot to overthrow him. On Friday, the Washington-based Organization of American States, OAS, announced that it would hold an extraordinary meeting on Tuesday to address the situation in Venezuela. The announcement comes a day after the United States and group of 13 other OAS nations called on Venezuela's government to hold elections and immediately free political prisoners. OAS Secretary General Luis Almagro is pushing to expel Maduro's government from the group for breaking the country's democratic order and violating human rights. Venezuela's government has accused the OAS leader of overstepping his authority in an effort to pave the way for an ""international intervention"" in Venezuela. Source:-News agencies", -3359,2017/3/25,http://www.aljazeera.com/news/2017/03/hosni-mubarak-walks-free-years-jail-170324095324330.html,Hosni Mubarak walks free after six-year detention,"Ex-president, recently acquitted for role in protester deaths during 2011 uprising, returns to his Cairo home.","Six years after his ouster, Egypt's ex-President Hosni Mubarak has been released from detention after being cleared of inciting the killings of hundreds of protesters in 2011. Mubarak, 88, on Friday left a military hospital in Cairo's southern suburb of Maadi where he had been held in custody and went to his home in the upscale Heliopolis district under heavy security.- His lawyer, Farid el-Deeb, told the Egyptian newspaper al-Masry al-Youm-that he-celebrated his release-with-breakfast his wife-Suzanne and their two sons,-Alaa and Gamal. Mubarak was-cleared for release earlier this month-after the country's highest appeals court acquitted him of any involvement in the deaths of nearly 900-Egyptians-during the-25-January --11 February 2011 uprising. He had been sentenced to life in 2012 but an appeals court dismissed the charges two years later. Timothy Kaldas, a non-resident fellow at the Tahrir Institute for Middle East Policy, told Al Jazeera that it was unlikely ""both now or any time in the foreseeable future that anyone will be prosecuted for the murders. ""Mubarak being in or out of prison doesn't change the fact that the military the took control in Egypt in 1952 continues to rule Egypt today. ""[Mubarak's] role in Egyptian politics is of limited consequence today, [but] there's a real sense of injustice that while many revolutionaries are in prison - he has walked free."" PHOTOS: Egypt Revolution - 18 days of people power The ouster of Mubarak, who ruled Egypt for 29 years, led to the country's first free election but the winner, Muslim Brotherhood leader Mohamed Morsi, was overthrown in a military coup in 2013. Army chief Abdel Fattah el-Sisi-has since waged a fierce crackdown on Morsi and the Muslim Brotherhood with human rights groups claiming as many as 60,000 political prisoners currently languish in Egypt's jails. In contrast, Mubarak-era figures are slowly being cleared of charges and a series of laws curtailing political freedoms have raised fears among activists that the old leadership is regaining influence. ""As Hosni Mubarak goes free in Egypt, thousands of prisoners still languish in horrific prison conditions,"" Harriet McCulloch, a deputy director at human rights organisation Reprieve, told Al Jazeera. ""Many face the death penalty on charges relating to protests, in mass trials that make a mockery of due process,""-McCulloch added. ""Some were arrested as children - people like Irish citizen-Ibrahim Halawa, who has suffered terrible abuses in jail. The Sisi government must now show that Egypt's justice system is worthy of the name and release Ibrahim, and the hundreds like him."" A former air force chief and vice president, Mubarak became president after fighters who had infiltrated the army shot dead president Anwar Sadat during a military parade in 1981. Mubarak, then vice president, was metres away from Sadat during the attack and was shot in the hand. He was sworn in as president eight days later. Source:-Al Jazeera and news agencies", -3360,2017/3/25,http://www.aljazeera.com/news/2017/03/israel-ignores-demand-settlements-170324194812363.html,UN: Israel ignores demand to stop settlement building,UN Middle East envoy says Israel has failed to end illegal settlement activity and abide by UNSC Resolution 2334.,"Israel has not taken any steps to halt illegal settlement building on occupied Palestinian territory as demanded by the Security Council, the United Nations said on Friday, In his first report to the council on the implementation of-a resolution it adopted in December, UN Middle East envoy Nickolay Mladenov said on Friday that Israel had-instead authorised ""a high rate"" of settlement expansions in violation of international law. ""The resolution calls on Israel to take steps 'to cease all settlements activities in the occupied Palestinian territory including east Jerusalem.' No such steps have been taken during the reporting period,"" he said. Speaking to reporters, Palestinian UN envoy Riyad Mansour said: ""Settlements need to be stopped, not only because they are illegal, but they are the main obstacle in the path of the two-state solution.""- READ MORE: UN report decries Israeli settlements' 'alarming pace' The UNSC Resolution 2334, which reaffirmed long-standing positions of the international community, was adopted with 14 votes after the United States abstained in the vote . The abstention defied pressure from then President-elect Donald Trump, Israel and some US politicians who urged Washington to wield its veto. The resolution condemned Israel's settlements on Palestinian territory occupied since 1967, including East Jerusalem, saying they had ""no legal validity"". It also demanded a halt to ""all Israeli settlement activities"", saying this ""is essential for salvaging the two-state solution"". OPINION: What did the UN apartheid report expose in reality? Israeli settlements are seen as a major stumbling block to peace efforts as they are built on land the Palestinians see as part of their future state. The UN maintains that settlements are illegal, but the body's officials have reported a surge in construction over the past months. Mladenov-called ""the January spike"" in illegal settlement announcements by Israel ""deeply concerning."" During that month, he said, two major announcements were made for a total of 5,500 housing units in Area C, the 60 percent of the West Bank exclusively controlled by Israel. ""Overall, the last three months have seen a high rate of settlement-related activity, especially when compared to 2016, which saw tenders for only 42 (housing) units issued and some 3,000 units advanced over 12 months in Area C,"" Mladenov said. Last year,-Israel-built 2,630 illegal settler homes in the occupied-West Bank-in 2016,-an increase of 40 percent compared with numbers from 2015. Some 430,000 Israeli settlers currently live in the West Bank and a further 200,000 Israelis live in occupied East Jerusalem, which the Palestinians see as the capital of their future state. Source:-News agencies", -3361,2017/3/25,http://www.aljazeera.com/news/2017/03/miracles-geneva-talks-syria-fighting-rages-170324193931445.html,'No miracles' in Geneva talks as Syria fighting rages,"A fifth round of UN-backed Syria talks is under way in Geneva amid low expectations as violence on the ground escalates. Fighting continues 'Assad regime targeting schools, hospitals'","United Nations envoy Staffan de Mistura has warned not to expect ""miracles"" as a new round of UN-backed talks between rival sides in Syria's conflict resumed amid ongoing fighting across the country. As rebel fighters in Syria pushed on with a major offensive against government forces in the central province of Hama, representatives of the two sides in the talks held in Geneva traded allegations over developments on the ground. Syrian government envoy Bashar al-Jaafari accused the opposition of intentionally undermining the talks, saying an escalation of attacks over the past few days is ""pushing everybody toward a-total failure and fiasco in the political and diplomatic process"". For his part, Nasr al-Hariri,-the Syrian opposition's chief negotiator in the talks, accused the government of targeting areas with civilians and carrying out arbitrary arrests. READ MORE: The 'slow-motion slaughter' of Syrian civilians On the agenda for the fifth found of the Geneva talks is governance - political transition, the constitution and elections - as well as counter-terrorism at the request of Damascus. Deadlock remains over most of the toughest issues, notably President Bashar al-Assad's fate, with the opposition insisting he cede power and the government declaring the subject off limits. After a two-hour meeting with de Mistura,-Jaafari said ""terrorism"" needed to be the priority. In the opposite camp, Hariri said the opposition was committed to finding a political solution, but insisted-such a deal could not include Assad. ""We reaffirm that we here to rid our country from terrorism and I say that Syria will not be free from terrorism of Daesh [ISIL] ... unless it is liberated first from the state terrorism practiced by the regime,"" Hariri told reporters. READ MORE: The voices missing from Syria's peace talks The two sides are meeting separately with the UN. ""All of them have to talk about all four (issues)"", de Mistura told reporters following the first full day of the round.-""That is (the) deal."" De Mistura said he would aim to mesh the ideas shared on all subjects by both sides when the round ends next Friday. ""I am not expecting miracles, I am not expecting breakthroughs ... and I am not expecting breakdowns,"" the UN envoy said, reiterating that agreement on the agenda was itself a mark of progress. De Mistura has recently-been shuttling between Moscow, Riyadh, and Ankara, and talking directly with the US, in preparation for the talks. He urged the backers of separate talks in the Kazakh capital Astana - which involve Russia and Turkey and are supposed to guarantee a ceasefire --to resume more negotiations in an effort to bring the fighting to an end. ""ourexpectation and strong suggestion to the guarantors to the Astana process that they do retake the situation in hand and that hopefully there will be new a Astana meeting as soon as possible in order to control the situation, which at the moment is worrisome,"" he told reporters. In Syria, rebels were advancing in Hama province, as part of their biggest offensive against government forces in months. The city of Hama remained under government control but the opposition has gained ground in the countryside; rebels have seized 11 villages and several ammunition depots since Tuesday. The UK-based Syrian Observatory for Human Rights monitor reported fresh violence on Friday, including shelling by government forces of areas in Sahl al-Ghab, northwest of Hama, and ongoing clashes in the countryside north of the city, as the army sought to retake territory and stop rebels from capturing a military airport. Clashes also renewed in the capital, Damascus, witnesses earlier said. Rebels fought with soldiers on the edge of the city centre in the Jobar district for a fifth day on Thursday. Forces loyal to Assad's government conducted artillery and air strikes in a bid to restore control of positions they lost earlier this week, after surprise attacks by rebels in the northeast of the city.- Reporting from Geneva, Al Jazeera's Andrew Simmons said the talks were not off to a good start given the latest surge fighting in Syria.- ""It's not a good start in the battlefield, in the sense that there is escalation, and it's not a good start here in terms of encouragement towards ... peace,"" Simmons said.- Earlier in the day, Hariri accused the government of not being committed to peace. ""I would like to remind you that since the beginning of the last round of talks, last month in Geneva, at least 11 schools have been targeted, in addition to at least 11 medical centres, including hospitals and makeshift clinics, and five markets by the Assad regime's air force and the countries that are supporting the regime."" Al Jazeera's Hashem Ahelbarra, reporting from Beirut, said that the rebels were aiming to put more pressure on the international community as they tried to bring about a political solution to the crisis. ""This is the first time in months that we've seen momentum being built by the rebels to take over ground, particularly in Hama,"" he said. ""[The rebels] are sending a clear message to the international community that, despite the fact that they lost Aleppo last year ... they can still change the reality on the ground."" Marwan Kabalan, an analyst at the Doha Institute's Arab Centre for Research and Policy Studies, told Al Jazeera that little-had been achieved in the talks, which were entering their fifth round. Kabalan said that the parties should be discussing four main themes - governance, fighting ""terrorism"", the constitution, and elections - but stressed that little was expected from this latest round. ""Most of the regional and international powers are not yet actually committed to solving this crisis,"" he said, adding that the US was focusing more on the fight against the Islamic State of Iraq and the Levant [ISIL, also known as ISIS] while Turkey's focus was on the actions of Kurdish groups in Syria. Source:-Al Jazeera and news agencies", -3362,2017/3/25,http://www.aljazeera.com/news/2017/03/eleven-people-drown-boat-capsizes-aegean-sea-170324174822414.html,Eleven refugees drown as boat capsizes in Aegean Sea,"Five children reportedly among the victims, who were all Syrian, after boat sinks off the western coast of Turkey.","At least 11 Syrian refugees have drowned after a boat capsized in the Aegean Sea, off the western coast of Turkey, according to Turkish authorities. The inflatable boat was carrying at least 20 people and was en route to the Greek islands when it sank off the coast of Kusadasi district in western Aydin province, the Turkish coastguard said in a statement on Friday. ""Nine migrants were rescued,"" the coastguard statement added. The Dogan news agency said all 11 victims, including five children, were Syrians. Video broadcast by the DHA network showed half a dozen bodies laid out near ambulances-after they had been recovered from the water. Police said they arrested two people believed to be human smugglers who testified that they were on the boat with the refugees. READ MORE: 2016 - The year the world stopped caring about refugees The number of refugees caught crossing the Aegean Sea between Turkey and Greece has fallen by 85 percent since a refugee deal was signed with the-European Union last year, according to data compiled from the Turkish coastguard command. According to official figures, 16,627 refugees were intercepted in the Aegean after the Turkey-EU deal while this figure was 111,133 a year before the agreement. The data shows that between April 2015 and March 2016, 437 people drowned while attempting to reach Greece. This figure fell by 95 percent to 20 since the deal was signed between Ankara and Brussels. The agreement, however, largely shut down the eastern passage to Europe, making the more dangerous route from Libya to Italy the main departure point for people attempting-to cross the Mediterranean Sea by boat to various parts of Europe. The deaths in the Aegean came as aid workers on Friday said they feared about 250 people may have drowned in the Mediterranean after two partially submerged rubber dinghies were found off the coast of Libya.- More refugees died in the Mediterranean over the first nine weeks of 2017 compared to the same period in 2016, the International Organization for Migration (IOM) says. From January 1 to March 9 this year, at least 521 people drowned while attempting to cross the rough waters compared with 471 in the same period a year ago. There were about 5,000 recorded deaths in all of 2016. Source:-News agencies", -3363,2017/3/25,http://www.aljazeera.com/news/2017/03/russia-denies-supplying-taliban-scaparrotti-claim-170324173505618.html,Russia denies supplying Taliban after Scaparrotti claim,Moscow rejects NATO commander's remark that it is 'perhaps' aiding the Taliban in fighting against US and allied forces.,"Russia's foreign ministry has dismissed a US general's allegations that it may be supplying Taliban fighters in Afghanistan as ""fabrications"". Curtis Scaparrotti, the top US general in Europe, said on Thursday that he had witnessed Russia's influence grow in many regions, including in Afghanistan.- In a statement to the Senate Armed Services Committee, Scaparrotti, who is-NATO's Supreme Allied Commander,-said Moscow was ""perhaps"" supplying the Taliban in fighting against US and NATO forces in Afghanistan. His comments were rejected by Russia's foreign ministry, which called the charge an attempt by Washington to try to cover up for the failure of its own policies in Afghanistan. ""These claims are absolutely false,"" Zamir Kabulov, head of the Russian foreign ministry's department responsible for Afghanistan and the Kremlin's special envoy in the country, told RIA Novosti state news agency on Friday. ""These fabrications are designed, as we have repeatedly underlined, to justify the failure of the US military and politicians in the Afghan campaign. There is no other explanation."" READ MORE: Taliban capture key Afghan district; 9 police killed In February, General John Nicholson, the US commander of NATO forces in Afghanistan, testified that Russia is encouraging the Taliban and providing them with diplomatic cover in a bid to undermine US influence and defeat NATO --but he did not address whether Russia is supplying the group. Kabulov in 2015 said that Russia was exchanging information with the Taliban and saw shared interest with them when it comes to fighting the Islamic State of Iraq and the Levant (ISIL, also known as ISIS) armed group. Russia considers the Taliban a ""terrorist"" group and it is banned in the country, along with ISIL. Taliban officials have told Reuters news agency the group has had significant contacts with Moscow since at least 2007, but added Russian involvement did not extend beyond ""moral and political support"". OPINION: Russia's new game in Afghanistan NATO troops have been fighting in Afghanistan since a US-led invasion in late 2001, following the September 11 attacks. About 13,000 NATO service members are in Afghanistan - the bulk of them American - under its Resolute Support training mission.-More than 1,800 US troops have been killed in fighting since the war began. The US supplied Afghan mujahideen fighters with hi-tech weapons as they battled the Soviet Red Army-in the 1980s. After more than 15 years of war, US generals say the Afghanistan conflict is stuck in a stalemate with the Taliban continuing to carry broad regional influence, and NATO-backed Afghan security forces struggling to make progress. Source:-Al Jazeera and news agencies", -3364,2017/3/25,http://www.aljazeera.com/news/2017/03/muqtada-al-sadr-threatens-boycott-iraq-elections-170324152533689.html,Muqtada al-Sadr threatens to boycott Iraq elections,Powerful Shia leader demands changes to electoral law at Baghdad demonstration attended by thousands of supporters.,"Influential religious leader Muqtada al-Sadr has told thousands of supporters in Iraq's capital, Baghdad, that he will boycott upcoming elections unless the country's electoral law is changed. Supporters of the Shia cleric have repeatedly rallied for changes to the law and the country's electoral committee, which is dominated by affiliates of powerful political parties. If ""the law remains ... this means that we will order a boycott of the elections,"" Sadr said in remarks televised at Friday's demonstration in Baghdad's Tahrir Square. Iraq is set to hold holding provincial elections later this year, and parliamentary elections in 2018. Sadr, a vocal critic of Prime Minister Haider al-Abadi, did not specify the specific changes he wants to take place, but the current law has been criticised as being biased towards large political parties over smaller ones. The United Nations has backed demands for electoral reform, urging parliament last month to ""finalise the ongoing review"" of the election law and the electoral commission. OPINION: The reinvention of Muqtada al-Sadr Sadr is the scion of a powerful clerical family who, in earlier years, raised a rebellion against US-led forces and commanded a feared militia. He had lost some of his political influence in recent years but has brought himself back into relevance by calling for demonstrations to push for reforms. Al Jazeera's Stefanie Dekker, reporting from Erbil in northern Iraq, said Friday's demonstration showed Sadr has the ability to mobilise thousands of people. ""What we're seeing really has to do with internal Iraqi politics. [Sadr's] been campaigning on an anti-corruption platform - how politicians and the electoral commission are corrupt. This is important because Iraq will have provincial elections later this year. ""He's been highlighting this for over a year now but since the Mosul offensive [against ISIL] ... it's slowed down and attention has shifted. ""So this is an apparent effort by him to re-launch his campaign and remind people of his message - and thousands are heeding his call."" Rallies demanding improved services and opposing widespread corruption broke out in the summer of 2015, drawing pledges from authorities that reforms would be made that ultimately led to little in the way of lasting change. Last year, his supporters broke into Baghdad's fortified Green Zone area on several occasions, where the government is headquartered, while clashes at a Baghdad protest-in February-left seven people dead. Source:-Al Jazeera and news agencies", -3365,2017/3/24,http://www.aljazeera.com/news/2017/03/icc-set-monetary-awards-war-crime-victims-170324054137638.html,ICC orders first monetary awards to war crime victims,"Court in The Hague makes first compensation award to victims of war crimes, relating to an attack in the DRC. Reconciliation Bribing witnesses","Judges at the International Criminal Court (ICC) on Friday awarded individual and collective reparations to victims of war crimes committed by former Congolese militia leader Germain Katanga. The court awarded 297 victims of-a 2003 attack on a Congolese village-with ""symbolic"" compensation of $250 per victim, as well as collective reparations to help the community in the form of housing, income generating activities, education, and psychological support. As the first ruling to award compensation to victims of war crimes,-the order was a landmark step for the tribunal - set up in 2002 to prosecute the world's worst crimes. Katanga was accused of supplying weapons to his militia in the February 2003 ethnic attack on Bogoro village in Ituri province,-in which some 200 people were shot or hacked to death with machetes. PHOTOS: The healing powers of football in the DRC The court estimated that the ""extent of the physical, material and psychological harm suffered by the victims"" amounted to more than $3.7m and said Katanga was responsible for $1m. But it added that he is considered ""indigent"" and unlikely to be able to pay. The ICC said it was asking the Trust Fund for Victims (TFV) to consider using its resources for the reparations.-The TFV is an independent body set up under the ICC's founding guidelines, to support and implement programmes to help victims. The TFV could decide to dip into its funds, gathered from voluntary contributions from member states. But it only has $5m available, of which $1m has been set aside for the case of Thomas Lubanga - another Congolese former rebel leader sentenced in 2012 to 14 years imprisonment for conscripting child soldiers in the Democratic Republic of the Congo (DRC).-And under TFV guidelines it can only help pay collective reparations, not any individual claims. 'Without real precedent' ""It may bring the prospect of some redress for the victims,"" said Pieter de Baan, director of the Trust Fund for Victims, speaking about the ruling before the verdict. He argued it was important to show justice ""doesn't stop in the courtroom"". Katanga was sentenced by the ICC to 12 years in jail in 2014, after being convicted on five charges of war crimes and crimes against humanity for the attack on Bogoro village. Lawyers for the victims had estimated that a minimum of $16.4m in damages was caused, although they claim it could have been as high as $24.7m, even if the ""victims are not demanding this sum"". Katanga, 38, now on trial in the DRC-on other charges of war crimes and insurrection in the mineral-rich Ituri region, was liable to pay any compensation. Lawyers for the victims had set out a detailed list of the possible reparations due, pricing everything from the loss of a cow or a hen to the cost of rebuilding mud or brick homes or how much a life is worth, or how much suffering being raped caused. ""The reparations regime of the court is without real precedent,"" said De Baan. ""It's not science. It's basically trying to reach an estimation of what the harm has been in relation to the crimes."" Regarding Lubanga's case, in October ICC judges approved ""symbolic reparations"" to create a ""living memorial"" to remember and raise awareness about child soldiers. It was the first case to see some kind of ICC compensation awarded, but-a final decision on collective reparations for Lubanga's victims is still awaited. The Ituri region where the Bogoro massacre occurred has been riven by violence since 1999, when clashes broke out that killed at least 60,000 people, according to rights groups. Aid workers say they hope any reparations will go towards long-term projects such as building roads, health centres and schools. ""Given that today the victims and the executioners are living together, we must help people reach a real reconciliation,"" said Jean Bosco Lalo, coordinator for the local group, the Ituri Civil Society. In a separate case,-judges on Wednesday sentenced former Congolese vice president Jean-Pierre Bemba to a year in jail and fined him 300,000 euros ($324,000) for bribing witnesses during his war crimes trial in another unprecedented case before the ICC. Prosecutors had asked for eight years for Bemba, who is already serving 18 years after being convicted of war crimes by his marauding troops who he sent into the Central African Republic in 2002 to 2003 to put down a coup against the then president. OPINION: Africa's challenge to the ICC In a separate trial, Bemba was found guilty in October of masterminding a network to bribe and manipulate at least 14 key witnesses, and had ""planned, authorised, and approved the illicit coaching"" of the witnesses to get them to lie at his main trial. The year-long sentence will run consecutively to his 18-year jail time. Set up in 2002 to prosecute the world's worst crimes where national courts are reluctant or unable to act, the ICC goes to great lengths to try to protect witnesses and its trials from any interference. Speaking to AFP after Wednesday's sentences were handed down to Bemba and four of his associates, ICC chief prosecutor Fatou Bensouda these were ""very serious crimes"". ""My own motivation was to show and send a strong and loud message that these kind of crimes ... will be taken seriously by my office and something will be done about it,"" she said. Source:-News agencies", -3366,2017/3/24,http://www.aljazeera.com/news/2017/03/trump-administration-approves-keystone-xl-pipeline-170324115926456.html,Trump administration approves Keystone XL pipeline,"Pipeline contractor TransCanada receives presidential permit to build the Keystone XL pipeline, state department says. 'Government moving backwards'","The US state department has issued a presidential permit that gives energy firm TransCanada the green light to build the controversial Keystone XL pipeline. The move on Friday reversed a decision by ex-President Barack Obama who had blocked the project over environmental worries. The state department said the $8bn Keystone project would serve US national interest, opposite to the conclusion it had made two years ago. Announcing the permit, President Donald Trump called the Keystone project an ""incredible pipeline"". ""TransCanada will finally be allowed to complete this long overdue project with efficiency and with speed,"" Trump said. ""It's a great day for American jobs and an historic moment for North America and energy independence,"" he added.- READ MORE: Trump clears Keystone XL, Dakota Access pipelines TransCanada had tried for more than five years to build the 1,897km pipeline until Obama rejected it in November 2015 amid pressure from environmentalists. Yet, Trump invited the company to resubmit it application in January, and signed an executive order that helped smooth the path for its construction. TransCanada called Friday's decision a ""significant milestone"". ""We greatly appreciate President Trump's administration for reviewing and approving this important initiative,"" Russ Girling, the company's chief executive, said. ""We look forward to working with them as we continue to invest in and strengthen North America's energy infrastructure."" The company also said it would drop its lawsuit that called Obama's 2015 decision unconstitutional. Al Jazeera's Shihab Rattansi, reporting from Washington, DC, said a number of environmental groups responded to Friday's decision by saying that they were mobilising and ready to continue fighting against the pipeline. ""It isn't over yet, the pipeline still needs a permit in the states it will traverse,"" Rattansi said. READ MORE: Tillerson recuses himself from Keystone pipeline issues The permit was signed by Tom Shannon, a career diplomat serving as undersecretary of state for political affairs, because Secretary of State Rex Tillerson-recused-himself due to his work as the former chief of oil giant ExxonMobil. Portions of Keystone have already been built, but its completion required a permit to cross from Canada into the US. The project is designed to link existing pipeline networks in the two countries to bring crude oil from Alberta and North Dakota to refineries in Illinois en route to the Gulf of Mexico. The pipeline would move roughly 800,000 barrels of oil per day, more than one-fifth of the oil Canada exports to the US. Oil industry advocates have argued the pipeline will improve US energy security and create jobs, but the project's opponents have said the job creation will be minimal and short-lived. Environmentalists have long fought against the project, arguing it would encourage the use of carbon-heavy tar sands oil which contributes more to global warming than cleaner sources of energy. In a statement on Friday, Greenpeace said the permit sends a signal to the world that the ""government is moving backwards when it comes to climate and energy"". The environmental group also vowed to fight to stop TransCanada's funding sources for the project. ""It takes money to build a pipeline, and the opposition movement to stop fossil fuel projects like Keystone will do everything it can to deprive TransCanada of any new funding for this ill-fated and unnecessary pipeline. TransCanada may have a permit, but can they find the funding?,"" Greenpeace said. Trump has championed the pipeline and backed the idea that it will create jobs. Under January's executive order, new or expanded pipelines must be built with US steel ""to the maximum extent possible"". TransCanada, however, has said Keystone will not be built with US steel as much the required steel has already been purchased from Canada and Mexico. The White House has acknowledged it is too difficult to impose conditions on a pipeline already under construction. On Friday, Trump also said the Keystone project is one of a number of new energy and infrastructure projects his administration hopes to see completed.- ""As the Keystone XL project now moves forward this is just the first of many energery and infrastructure projects that my administration will approve and we've already approved a couple of other bigs ones...which we will be announcing soon,"" Trump said.- Source:-Al Jazeera and news agencies", -3367,2017/3/24,http://www.aljazeera.com/indepth/opinion/2017/03/expects-allies-pick-pieces-isil-170324093927490.html,,,"The only good reason to have a meeting is to deliberate and decide on a shared objective. From that business angle, the March 22 meeting in Washington of the Global Coalition to defeat the Islamic State of Iraq and the Levant (ISIL) did not serve any purpose. The US message to its allies was clear: let us alone deal a military blow to ISIL, you deal with the day after. Nothing is ordinary about the tumultuous nature of Donald Trump's presidency, even during what was supposed to be a mundane bureaucratic gathering. As the invited Arab ministers were settling into their hotels, US authorities surprised them by banning electronic devices onboard of flights coming from their national airports. While the meeting was underway at the State Department, US forces airlifted members of the Syrian Democratic Forces (SDF) behind enemy lines in Raqqa and an ISIL-inspired attack was terrorising London. All that matters to the battle against ISIL was not heard in the hallways of the first expanded anti-ISIL coalition meeting in more than two years. The US State Department Secretary Rex Tillerson's remarks did not even mention the three elephants in the room: Russia, Iran and the Kurdish-led SDF forces (he called the latter ""our Syrian partners""). Despite the looming budget cuts his department could face, Tillerson stood high and proud expecting that ISIL fighters are tuned ""into their TVs and their computer monitors"" to watch the global coalition's show of ""strength"". It is true ISIL's territorial control and leadership were degraded during the final stretch of the previous US administration and the campaign has intensified in the past three months. We are now in a transitional period where ISIL will metamorphose into decentralised and uncontrolled individuals who launch attacks sporadically with basic, unsophisticated tools. Engaging global partners is crucial to enlist their efforts, the US can no longer go alone. Drones can win battles but are not enough to protect the US from possible attacks in the long term. US allies left Washington more confused than when they arrived. The confusion is due to the perception that the Trump administration had created about having an awesome secret plan no one will see coming. The mere gathering of the Global Coalition is a subtle continuation of President Barack Obama's strategy to defeat ISIL: launching systematic air strikes; increasing US support for local forces; deploying non-combat US special forces; cooperating on global counterterrorism efforts; and providing humanitarian assistance to displaced civilians. What the Trump administration is doing ""differently"" is more of the same: intensify already existing strikes, deploy additional forces and increase support to SDF forces. OPINION: The Sheriff of Manbij: US makes debut in the Syrian War Tillerson made three issues blatantly clear: He told Arab allies, anxious to deter Iran that, ""defeating ISIL is the United States' No 1 goal in the region"". For those betting on a long-term US involvement, the message was also plain: ""We are not in the business of nation-building or reconstruction."" The Trump administration is satisfied with the current formula of providing in Iraq and Syria 75 percent of the military resources and 25 percent of humanitarian and stabilisation support. Defeating ISIL alone cannot be a stand-alone strategy and the Trump Administration should first be forthcoming about the fact that there is no significant change in US policy. - The third American message delivered to allies via Tillerson was simple: We alone will take care of business in Iraq and Syria, and all we want from you is to prepare for post-Raqqa and Mosul operations by investing resources, increasing pressure on ISIL networks in your home countries, exchanging intelligence information and combating ISIL online. Defeating ISIL alone cannot be a stand-alone strategy and the Trump administration should first be forthcoming about the fact that there is no significant change in US policy. The two-year tacit understanding between Washington and Tehran still holds: US-trained Iraqi special forces lead the fight in sensitive demographic areas and Iranian-backed Popular Mobilization Units (PMU) mostly stay put. Endorsing SDF forces continues to grow without promising Kurdish forces to back their autonomy and without pushing the buttons of Ankara. While safe zones increasingly disappear from the White House narrative, Tillerson lowered the expectation further and spoke about ""interim zones of stability through ceasefires to allow refugees to go home"". While that statement alone is desperately vague, the ""safe zones"" idea was not included in the ministerial meeting's concluding statement. US Defense Secretary James Mattis told the Senate on March 22 that it is in the US national interest to keep a residual force in Iraq even after the defeat of ISIL. In the case of Syria, however, -the Pentagon knew when to go in but struggles with the question of how soon to get out. OPINION: ISIL after Mosul: Insurgency and rivalry For that specific reason, the timing of the anti-ISIL global coalition was premature without a clear path to victory for both Mosul and Raqqa operations. While the US is leading on the military level, chaos along the contested areas on the Iraqi-Syrian border-is expected the day after victory. With no vision for conflict-resolution or power-sharing in place, there are no guarantees that regional infighting will not happen or radical elements will not fill the vacuum once again. Protecting the peace is often far more important than defeating the enemy.- Joe Macaron is a policy analyst at the Arab Center Washington, DC. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3368,2017/3/24,http://www.aljazeera.com/news/2017/03/antonio-guterres-salva-kiir-ignoring-famine-170324045330275.html,Antonio Guterres: Salva Kiir is ignoring famine,"Secretary-General Guterres says government in Juba refuses to acknowledge plight of 100,000 people suffering famine.","UN Secretary-General Antonio Guterres has accused South Sudan's government of ignoring the plight of 100,000 people suffering from famine, 7.5 million in need of humanitarian aid and thousands more fleeing fighting. Guterres' rebuke was delivered to the country's president, Salva Kiir, on Thursday, mentioning ""a refusal by the leadership to even acknowledge the crisis or to fulfil its responsibilities to end it"". ""There is a strong consensus that South Sudanese leaders need to do more to demonstrate their commitment to the wellbeing of the country's people, who are among the poorest in the world,""-he-said. The UN chief was also sceptical of Kiir's intention to hold a national dialogue, in light of the country's ""systematic curtailment of basic political freedoms, and restrictions on humanitarian access"". READ MORE: Dying of hunger: What is a famine? In response, South Sudan's deputy UN ambassador, Joseph Moum Malok, said the government ""takes issue with the accusation"" that it is responsible for the famine in two counties, adding that other parts of the country are affected by drought. He said the government ""will spare no efforts to help address the situation and calls upon the international community to help address this urgent matter"". Guterres said greater pressure is needed if there is any hope of the leaders changing their approach, which means ""first and foremost that the region and the Security Council must speak with one voice. The Security Council is divided over two ways to step up pressure on South Sudan's government-an arms embargo, or sanctions on additional people blocking peace. READ MORE: Uganda at 'breaking point' from S Sudan refugee crisis Malok warned that an arms embargo and additional sanctions ""would further aggravate the situation and would hit hard the vulnerable groups, as the previous experiences had proved."" South Sudan's three-year civil war has devastated the country, killed tens of thousands, and contributed to a recently declared famine in two counties. The war began after a struggle for power between President Kiir and former Vice President Riek Machar. The pair signed a shaky peace deal a year ago, but fighting has continued.- The top monitor of South Sudan's peace deal, former Botswana President Festus Mogae, echoed Guterres' call for a unified approach that includes the African Union and the international community, saying the security, economic and humanitarian situation in the country ""has steadily deteriorated to an unacceptable level"". ""Across the board, there is a heightened sense of alarm over the fact that the situation is slipping out of control,"" Mogae told the council. ""We must now stand together to do something about it."" Source:-News agencies", -3369,2017/3/24,http://www.aljazeera.com/news/2017/03/james-jackson-charged-murdering-timothy-caughman-170324051916876.html,James Jackson charged with murdering Timothy Caughman,Baltimore resident with 'intent to kill as many black men as he could' plunged sword into 66-year-old Timothy Caughman. 'Act of terrorism',"A white supremacist who stabbed a 66-year-old black man to death with a sword in New York has been charged with second-degree murder as a hate crime. James Harris Jackson, who killed-Timothy Caughman on Monday,-was charged on Thursday after he told police that he had hated black men for at least 10 years. ""His intent was to kill as many black men here in New York as he could,"" prosecutor Joan Illuzzi said as the 28-year-old was arraigned. ""The defendant was motivated purely by hatred."" Caughman was bent over a rubbish bin around the corner from his home, gathering bottles, when Jackson plunged a two-foot sword into his chest and back and walked off, prosecutors said. INTERACTIVE: The rise of hate groups in the US A bleeding Caughman staggered into a police station and later died at a hospital. Jackson dumped the weapon into a rubbish bin. He turned himself in on Thursday after police released surveillance video picturing him. Anti-racism protests are expected to take place on Friday in New York, with marches from Union Square to Midtown where Caughman was killed. Organisers said a moment's silence will be held for Caughman and other victims of hate crimes. According to Caughman's Twitter page, he was an autograph collector and a music and movie lover who tweeted about John Lennon and Chuck Berry. Illuzzi said Jackson, who was in the army for three years until 2012, hated in particular black men who dated white women. William Aubry, NYPD assistant police chief,-said Jackson travelled around 200 miles from his home in Baltimore to carry out the murder, picking New York because he hoped to ""make a statement"" in the media capital of the world. ""His intentions were to come here to harm [black men],"" Aubry said. Illuzzi said the charges could be upgraded because the killing was an act ""most likely of terrorism"". Jackson's lawyer suggested that his client might be suffering from mental illness. READ MORE: 'After Seattle attack Sikhs are vigilant' The killing comes amid rising reports of hate crimes in the US against minorities. Al Jazeera's Kristen Saloomey, reporting from New York, said hate crimes in the city have risen at least 50 percent over the past year. The organisers of Friday's protest for Caughman said the election of US President Donald Trump, who has previously targeted Muslims and Mexicans in his rhetoric, played a part. ""NYC has seen a rise in hate crimes since President 45 was elected. Many communities have been attacked in the era of Trump from Muslims, transfolks, black people and the Jewish community. We say no. We must stand up for our city,"" they said. On February 22, a white gunman killed an Indian man, Srinivas Kuchibhotla,-at a bar in Kansas after shouting ""get out my country"". Two weeks later in Seattle, a man shot Deep Rai, a Sikh man, after telling him to ""go back to your own country"". Several mosques and Jewish centres have also come under attack. READ MORE: Hate crimes against Muslims in US surge 67 percent Jackson's arrest on Thursday came on the same day that an attack in London, killing at least five including the attacker, gained huge international media attention. UK police named the suspect of that attack as Khalid Masood as reports said he was a Muslim convert. Some say the reaction to the two attacks reveals a double standard. ""This is a man [Jackson] that is fuelled by hate, fuelled by ideology, and who targeted a New Yorker for simply the colour of his skin,""-Albert Fox, a legal director at US Muslim civil rights group CAIR, told Al Jazeera. ""If this assailant [Jackson] were named Jabir or Jamil instead of James, I have no doubt that this would be considered an act of terrorism [as opposed to murder]."" However Joseph Giacalone, a former New York police officer turned security expert, said that political ""terrorism"" differed from hate crimes. ""Many individuals in our society wish to do others harm and we can't figure out when is the next time that they're going to strike,"" he told Al Jazeera. ""But when you're dealing with political terrorism ... you can usually figure out where they're [attackers] going - embassies, banks, anything that has the government's name on it.""- Source:-Al Jazeera and news agencies", -3370,2017/3/24,http://www.aljazeera.com/news/2017/03/explosion-rocks-cairo-suburb-maadi-dead-170324100251105.html,"Explosion in Cairo's Maadi kills one, wounds three",Officials say one person killed and three members of his family wounded when a device exploded in a Cairo garden.,"One man has been killed and three members of his family have been wounded in an explosion in Cairo, according to Egyptian officials. The blast on Friday in the Maadi district, caused by a ""unidentified-metallic object"", killed a 35-year-old building guard as he cleaned a garden, the interior ministry said in a statement. His wife and two sons were wounded by shrapnel-in the explosion and were taken to hospital for treatment, the ministry said. The area had been cordoned off and was being combed by security forces, it added. There was no immediate claim of responsibility. Maadi is a large district that houses embassies and foreigners, as well as middle and working class areas. The site of the explosion was not close to any embassies, some of which had been threatened by armed groups over the past few years. Source:-News agencies", -3371,2017/3/24,http://www.aljazeera.com/indepth/inpictures/2017/03/week-pictures-rohingya-exodus-peru-floods-170324080736559.html,Week in pictures: From Park's ouster to Holi festival,,, -3372,2017/3/24,http://www.aljazeera.com/news/2017/03/probe-alleged-crimes-rohingya-myanmar-170324113526685.html,UN to probe alleged crimes against Rohingya in Myanmar,"UN mission will investigate allegations of killings, rape and torture by security forces against Rohingya in Myanmar.","The leading United Nations rights body has agreed to send a fact-finding mission to Myanmar to investigate alleged abuses by security forces against Rohingya Muslims. Tens of thousands of people have fled Myanmar's Rakhine state since the military began a security operation last October in response to what it says was an attack by Rohingya armed men on border posts, in which nine police officers were killed.- A February UN report said the operation targeting the Rohingya involved mass-rapes and killings, possibly amounting to crimes against humanity. READ MORE: Myanmar must 'allow Rohingya to leave camps' The independent, international mission should be dispatched ""urgently""-to establish the facts of the alleged atrocities, the UN-Human Rights Council-decided in Geneva on Friday, in a resolution adopted by consensus. The investigation would be launched ""with a view to ensuring full accountability for perpetrators and justice for victims,"" the resolution said. The investigators must provide an oral update in September and a full report by this time next year, said the resolution backed by the European Union.-Some countries, including China, India and Cuba, dissociated themselves from the resolution. But the council stopped short of calling for a Commission of Inquiry - the world body's highest level investigation --into the violence, despite a call by-Yanghee Lee,-the UN's special rapporteur on rights in Myanmar. Earlier this month, Lee told reporters that European leaders wanted to give Myanmar's new civilian government led by Nobel Peace laureate Aung San Suu Kyi-more time before launching a top-level inquiry. Myanmar has been staunchly opposed to a Commission of Inquiry. The country's rights council ambassador, Htin Lynn, also called the move to send a lower level investigation ""unacceptable"". READ MORE: Rohingya - Chased from Myanmar, unwelcome in Bangladesh Myanmar has launched its own domestic inquiry into possible crimes in Rahkine and appointed former UN chief Kofi Annan to head a commission responsible for healing long-simmering divisions between Buddhists and Muslims. ""Let the Myanmar people choose the best and the most effective course of action to address the challenges in Myanmar,"" Lynn said, referring to Friday's resolution. ""We will be doing what needs to be done and we will do it with great prudence and probity,"" he added. Activists welcomed what they called a ""landmark decision"" by the 47-member forum, while regretting that it was not a full international commission of inquiry, and called on the government to cooperate. ""It is unfortunate that the government of Burma/Myanmar has chosen to disassociate itself from this resolution,"" John Samuel, executive director of FORUM-ASIA, said in a statement. Source:-Al Jazeera and news agencies", -3373,2017/3/24,http://www.aljazeera.com/news/2017/03/canada-passes-103-motion-islamophobia-170324074557381.html,Canada passes M-103 motion against Islamophobia,Non-binding motion tasks Canadian government with study to develop ways to address racism and discrimination.,"Canadian politicians have passed a motion that condemns Islamophobia and requests that the government recognise the need to ""quell the public climate of fear and hate"".- The non-binding motion, which condemns ""Islamophobia and all forms of systemic racism and religious discrimination"", passed on Thursday among a divided parliament. It asks a parliamentary committee to launch a study on how the government could address the issue, with recommendations due in mid-November. -- The study should look at how to ""develop a whole-of-government approach to reducing or eliminating systemic racism and religious discrimination, including Islamophobia,"" the motion says. - Liberal MP, Iqra Khalid introduced the motion, also referred to as M-103, last December, but it gained significance after the January attack on a Quebec mosque that left six Muslim men dead. READ MORE: Warning, Canada is not what you think it is ""I think that we need to continue to build those bridges amongst Canadians,-and this is just one way that we can do this,"" Khalid said after the vote in parliament.- The motion garnered an online backlash, petitions against it and nationwide protests. According to local media, Khalid has also received death threats after introducing M-103. Critics worried that condemning Islamophobia barred them from criticising Islam, which could curtail the right to free speech. Canada's Parliament has just declared criticism of Islam off-limits. The anti-Islamophobia motion, M-103, passed by a margin of 201 to 91. Canada passes what are in actuality blasphemy laws to protect a ridiculous ideology from ridicule. It's 2017, not 1517. #m103 Proud to have voted for M-103 against Islamophobia. We must work w/ Muslim Cdns to achieve racial and economic justice through action. M103 is a motion not a bill. It calls on the govt to more diligently gather hate speech info in the wake of, yknow,that mosque being shot up A poll from the Angus Reid Institute, published on Thursday, showed that 42 percent of respondents would have voted against the measure and only 29 percent would have approved it. Following the Quebec mosque attack, Prime Minister Justin Trudeau's government has come under pressure to denounce all forms of religious discrimination. In recent months, several mosques and synagogues have been vandalised in towns across Canada. Source:-News agencies", -3374,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659958.htm,Dynamic national spirit drives China's growth,,"New book argues that complacency underlies US economic, social problems Tyler Cowen's latest book has struck a nerve in the United States. He sees a failure of spirit underlying the many worrying trends his country has seen over the last 40 years - the lack of wage growth, declining life expectancy in some groups, increased inequality, growing monopolization of the economy, increasing racial and income segregation in schools and housing. Fewer Americans now become richer than their parents. They move between cities much less often and start many fewer businesses. As the last election demonstrated, many Americans seldom meet, much less understand, fellow citizens with different backgrounds or worldviews. Cowen, a frequent visitor to China, is a well-known free-market-oriented professor of economics at George Mason University in Fairfax, Virginia, near Washington, D.C. His book - The Complacent Class: The Self-Defeating Quest for the American Dream - has provoked widespread discussion and has been reviewed and analyzed in all the leading newspapers and policy journals. - Economist Tyler Cowen believes China has a culture of ambition and dynamism and a pace of change that harkens back to a much earlier America. Provided to China Daily In an interview, Cowen explained that he defines complacency as ""not feeling a sense of urgency about the problems of your society or your nation. This manifests itself in seeking more safety and security and moving away from dynamism."" In contrast to his worries about the US, he writes: ""Even with its recent economic troubles, China has a culture of ambition and dynamism and a pace of change that harkens back to a much earlier America. China, even though in the midst of some rather serious economic troubles, makes today's America seem staid and static. For all its flaws, China is a country where every time you return, you find a different and mostly better version of what you had left the time before."" Asked why he believes that China is dynamic compared with developed countries and almost all developing countries, he says: ""There are plenty of practical reasons. Standing above all is that the Chinese people have an idea that they can believe in, that China should be great again. They believe this deeply, and, actually, in a fairly unified way, though they may disagree on how to get there. I think this is a strong feature of China. They have a sense of the continuity of their past and want to recapture this leading role. ""A lot of the more practical factors are able to operate because, at this intellectual and ideological level, people believe in something very dynamic. Make China great again, so to speak."" But, dynamism and striving can be hard. Life in the United States might be too easy and too oriented toward safety rather than effort or adventure. He says: ""If you are an American and you just don't want to work that hard, and have a lower-middle-class existence, your life is pretty good, provided you don't abuse opioids or do something stupid. It's harder to do that in China and many other places."" His description of Americans as complacent and settled may shock many. After all, didn't the US create the internet and other technological marvels? Don't its tech companies dominate world markets? Cowen says that the US, of course, has some incredible companies that employ the world's smartest workers. But Silicon Valley is not representative of the country. US business has also become less competitive inside the country. Cowen says: ""Startups as a percentage of overall business have declined gradually in each decade since the 1980s. In general, there are higher levels of monopoly and concentration in the US economy. Chain stores are much more important. The companies we have last longer and it is harder to start new companies. It is harder to turn new companies into successes. ""People see highly visible companies like Facebook or Uber and think there is lots of competition, but the economy as a whole is a different story."" In recent decades, China has seen more competition and lots of new business starts. Cowen says that the growth of nationwide companies has squeezed out the old provincial or regional monopolies. Real wage growth in China has averaged more than 10 percent per year, while US wages have been basically flat for 40 years. Cowen says that US wealth is going to monopolists and other ""rent-seekers"" - people who take advantage of their special positions. One symptom of US complacency is the inability to build great public works anymore. For example, the Washington metro system in 2000 started seriously planning an additional line intended to reach Dulles International Airport. So far, less than 50 kilometers have been built, not yet reaching the airport. Meanwhile, the Beijing subway system has added 17 lines and more than 500 km of track. ""There are more veto points in the US system,"" Cowen says. ""There is less agreement on who should pay for things. ""Keep in mind that most of the subway lines in Washington are actually getting worse. It's not that we built the new line and maintained the rest. Overall, it is much worse. There is a lack of a sense of urgency. On any given day, you don't feel you need to fix it now, so it never gets done."" He says that his experience at George Mason University leads him to believe that much of China's dynamism comes from the opportunities it offers to non-elite young people. ""It is striking to me how many of the good Chinese students in the US come from rural areas and do not have very wealthy parents. They are not typically from the poorest families, but they are not just from the elite families in Shanghai. ""Part of it is the exam system. I think that for all the talk of corruption, China is fairly meritocratic in the sense that a smart person from a middle-class or poor family really can rise a great deal."" Looking around the world, Cowen sees few dynamic countries. He believes Japan paved the way in complacency. There is even a special word in Japanese - otaku - for the numerous young men who have withdrawn from society, not even pursuing sex or marriage. They have a pretty comfortable life, but one without ambition. ""India is a more complex story, but certainly worth a look,"" he says. ""The story for China is true throughout most of the country, but for India you have to tell a more diverse, heterogeneous story. It would not be as simple as the China story."" Cowen also sees promise in Nigeria and Ethiopia: ""I wouldn't say they have passed the success threshold yet, but they are future candidates. ""Nigeria impressed me with its human capital, dynamism and ambition, even though the country is currently in recession. And, like the overseas Chinese, Nigerians have done quite well abroad. ""Ethiopia's recorded rates of economic growth were the highest in the world from 2014 to 2017 and have been high for a decade."" Despite its current dynamism, China should be wary of factors that could lead to complacency the way it has in other countries. There may be an inherent cycle that moves all societies toward stagnation. An aging society will naturally become more complacent, but he believes there is currently so much dynamism in China that it has some time to deal with that. More generally, he says, barriers will accumulate in any system. ""Privilege will dig in. Elite schools will become more of a transmission belt of privilege. The US is much further down this path, but China will develop its own version."" China cannot be complacent about its current dynamism. davidblair@chinadaily.com.cn Bio Tyler Cowen Born: January 21, 1962 Education: Ph.D. in Economics, Harvard University, 1987 Career Highlights: Professor of Economics, George Mason University, Fairfax, Virginia Director of the Mercatus Center at George Mason University Co-creator of Marginal Revolution University Blogger at www.marginalrevolution.com Columnist for Bloomberg Author of many books, including Average is Over, The Great Stagnation, Discover Your Inner Economist, and An Economist Gets Lunch Book: The core plays of Shakespeare Film: High Noon Music: The Beatles and Beethoven Food: Chengdu and Yunnan cuisine Hobby: Travel, with most recent trip to Northern Ireland. Planning a big summer trip to China, starting in Dalian. (China Daily European Weekly 03/24/2017 page32)", -3375,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659957.htm,StanChart to bet more on China,,"Chairman says group expects further opening-up of country's finance system Standard Chartered will increase investments in China this year with a focus on digital banking, wealth management and its renminbi business, while seeking to partner with the Chinese side under the Belt and Road Initiative, the group's chairman said on March 20. Jose Vinals, chairman of the London-based international banking and financial services company, says that China is a critical market for the bank, as the country and the northern Asian region contribute about 40 percent to the group's total income. Vinals expressed optimism about long-term economic prospects in China, which remains a strategically important and a top-priority market for the company as it pushes through with its transformation through the cleanup of bad assets, cost reductions and strengthened risk discipline. The group posted a pre-tax profit of $409 million last year, turning around from a loss of $1.5 billion a year earlier. Vinals says his bank will continue to bet on the further opening-up of the Chinese financial system, the greater role of the renminbi in global markets, and domestic structural reforms with emphasis on quality and efficiency. ""I am very positive on the Chinese economy, and aiming at around a 6.5 percent growth target for 2017 is very wise,"" Vinals told China Daily in an interview on the sidelines of the China Development Forum. Vinals says the financial risks in China are manageable and need to be continuously managed, adding that it is important for the country to reduce the pace of leveraging and ensure that its corporate sector, especially state-owned enterprises, is reformed. ""The important thing is to support growth of the right policy mix, and the right structural reforms, and also try to diminish excessive growth of credit, particularly credit growth from the shadow banking system, which is the big source of risk,"" he says. In the meantime, the bank is actively seeking opportunities to partner with the Chinese government and companies along the Belt and Road Initiative. Last year, Standard Chartered participated in 40 deals related to the initiative and supported the Chinese government to help develop water power plants in Pakistan and Bangladesh. ""This is the most important single initiative that exists to support globalization, and it is fostering cross-border integration in terms of infrastructure, cross-border investment and international trade,"" he says. lixiang@chinadaily.com.cn (China Daily European Weekly 03/24/2017 page29)", -3376,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659956.htm,"Tech investor says China, Europe can create shared vision",,"SOFIA, Bulgaria - Europe should build business bridges with China, especially in the high-tech sector, to benefit from the Belt and Road Initiative, a Bulgarian entrepreneur says. Plamen Russev, an investor in tech companies, said in a recent interview that Europe needed to build a very strong and clear relationship with China. Europe perceives China as a strategic partner and they need to build better relations, work more on the Belt and Road Initiative, and create value for both sides, says Russev, founder and executive chairman of Global Webit Series. ""Seven years ago, Europe produced 32 percent of the global GDP. Currently, Europe produces 23 percent of global GDP,"" Russev says. ""We are talking about an over 30 percent decrease in the role of Europe in the world."" According to Russev, the Belt and Road Initiative is an opportunity, both for China and for Central-Eastern Europe and particularly Bulgaria, to build a better understanding for each other, and develop a clear vision of how both sides can benefit. Proposed by China in 2013, the Belt and Road Initiative aims to become a trade and infrastructure network connecting Asia with Europe and Africa along the ancient Silk Road trade routes. So far, more than 100 economies and international organizations have joined the initiative and over 40 of them have cooperation agreements with China. Speaking particularly about the potential for business between Bulgaria and China, Russev says his country is famous for its achievements in mathematics and informatics. Meanwhile, it is strategically located, friendly toward China and has full access to EU markets, he says. ""And we are not using this in the best way. Together with China, we might start benefiting both for Bulgaria and for China in a much better way,"" Russev says. As a digital economy, China is doing an amazing job, and it would be more than happy to start building bridges, working on common projects together, and making common products together, Russev says. ""We just need to use this time and to build up. Europe is ready. And Bulgaria could be a great ambassador and a great stop along the way,"" he says. Xinhua (China Daily European Weekly 03/24/2017 page25)", -3377,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659955.htm,Quotable,,"One of the striking successes of the Chinese economy is that, even though there have been a number of surprises, its growth rates have been very stable. ...(While) growth turns negative when there are shocks in the rest of the world, the Chinese government makes sure that growth continues."" Paul Romer, chief economist of the World Bank on March 19 on the sidelines of the three-day China Development Forum. ""Universities and research institutes generate innovation while the market brings entrepreneurship. Technology transfer is the integration of scientific achievements and entrepreneurial resources."" Chen Dongmin, former director of the Office of Science and Technology Development at Peking University. Three Chinese incubators and two foreign companies agreed to establish an international business incubator. Beijing International Co-Incubation. in Beijing, as part of their effort to transform existing technologies and effect technology transfers. ""China also needs to ensure that the current, massive investment in technologies, including the internet, robotics and virtual reality, will be leveraged to the benefit of its industries, by linking those industries to scientists, engineers and entrepreneurs, and by bringing top talent close to the factories."" Charles-edouard Bouee, global chief executive officer of Munich-based consulting firm Roland Berger (China Daily European Weekly 03/24/2017 page24)", -3378,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659954.htm,Private equity firm looks to build in UK outside of London,,"Shanghai-based private equity group Prosperous GlobalChina Capital is fast expanding into the UK's property market outside of London, while eyeing future investments in industrial parks in countries along the Belt and Road. Within two years of its establishment, PGC Capital has already invested in two residential and commercial developments in Birmingham. The first was the development of a property block - Jewel Court - with 77 units; the second was a lifestyle hub consisting of about 500 units in central Birmingham's Digbeth area. Chief Executive Denise Li says her team decided to make the Birmingham investments after witnessing the city's housing shortage, and the successful development of both projects helped PGC Capital establish a good reputation in the UK and globally. Investment capital and revenue figures are confidential, so it is not possible to calculate investment returns, but one thing is for sure: Jewel Court allowed PGC Capital to establish a good name for itself, especially as the project was 'Highly Commended' at the International Property Awards 2016 for residential property in the West Midlands. Li says she feels this investment achieved two objectives. First, it fits her team's philosophy of ""altruistic investment"". Prosperous GlobalChina Capital's Jewel Court project in Birmingham has helped the group establish a good reputation in the UK and globally. Photos Provided to China Daily ""We want to help the local market provide the housing accommodation it they badly needs,"" she says. Second, it helped PGC Capital establish a name in the British market. Li says: ""We have a philosophy of 'one step at a time' and making investments where we can accurately estimate the risks, so we didn't want to start in competitive markets such as London. Instead, we found a niche market in Birmingham."" PGC Capital's participation in the project was limited to financial investment, leaving the construction work to local specialists. However, PGC Capital played a crucial role in using its China-based network to attract buyers, and when it launched the project formally in Birmingham, the properties were almost all sold. Li says: ""Many buyers are Chinese and other Asian investors. We have used our advantage as a Chinese company with solid knowledge of the Chinese market and our wide network in China to sell those units to our customers. Very often these investors purchase units and rent them out to local customers. And finding tenants is easy because of the big demand for houses in Birmingham."" PGC Capital's decision to focus on Birmingham reflects the trend of Chinese investors eying regional investments as they become more familiar with the UK, compared with their initial investments, which were concentrated in London. One key project demonstrating this trend is the Beijing Construction Engineering Group's investment in the 800 million ($989.5 million; 919.5 million euros) Airport City Manchester project. The group is also involved in construction of the project. In addition, BCEG is investing in two residential and commercial property developments in Manchester, Middlewood Locks and St. Michael's. Eric Pang, director and head of the China desk at JLL, a leading commercial property and investment management services company, says it is very encouraging to see Chinese investors engaging with the UK's regional property markets, especially in what are known as the Big Six: Manchester, Birmingham, Bristol, Leeds, Newcastle and Edinburgh. Pang says: ""Those cities are less affected by Brexit uncertainties compared with London, because their economic growth relies more on local market fundamentals than on the UK's relationship with Europe."" He adds: ""PCG Capital's strategy of matching its capital with Birmingham's local market skills and local housing needs is smart. The Birmingham local market has many skilled workers and professional construction and other supporting firms to competently carry out the construction work, and PCG Capital's finacial contribution creates synergy."" After experiencing success with Jewel Court, PCG Capital has taken a more courageous move, investing in a lifestyle hub in Birmingham, which involves the construction of 500 housing units. The hub is located in Digbeth, in central Birmingham, and construction work is expected to begin later this year. Meanwhile, PCG is also looking to ""expand property development with the same principles in Europe"". But PCG Capital's ambition is not limited to the property sector alone. It has an ambition to invest in industrial parks along Belt and Road countries. The company attracted considerable attention from members of London's investment community in December 2016 when it launched a 600 million fund to invest in such projects. The fund will be created in partnership with London-based McCafferty Asset Management. Li says: ""We hope to invest in industrial park projects because we can see this sector as having tremendous development opportunities due to the China-led Belt and Road Initiative."" Stressing the strategic importance of the 600 million fund, Li says the focus is not just profit, but simultaneously assisting Chinese tech companies to go global and participate in infrastructure investment associated with the Belt and Road Initiative. Li says: ""We hope to contribute to Chinese companies' participation in projects along the Belt and Road, and to co-invest with other Chinese companies. Some of those companies may be operating in the infrastructure and energy sectors, so they could take their tech to the rest of the world, and learn lessons from international markets to take back to the Chinese market."" Although property investment and industrial park projects in the Belt and Road Initiative seem to be different industries, Pang points out that successful property investment in Birmingham helps PCG Capital to establish a name for itself globally, which is particularly important as its 600 million fund is looking to attract external investment and bank financing. PCG Capital's journey in Europe has only just begun, and perhaps Li is in a unique position to lead the team due to her track record of cross-border business advisory activities. Born in Taiwan to parents originally from Shandong, a coastal province that is part of the East China region, Li grew up to be patriotic. Her eyes spark with enthusiasm when she speaks about China, alluding to her Chinese name Fuhua, meaning bringing prosperity. Her brother's Chinese name, Fuzhong, carries the same meaning. Over the years, Li has acted as an adviser for many Western heritage brands that have entered the Chinese market, including Formula 1, the English Premier League, Porsche, New Zealand Zespri Kiwifruit, Nissan, the NHL, Omnicom and Amway. In line with the Belt and Road Initiative, Li inaugurated the International Finance Summit in China, together with Czech politician and former president of the EU Council Mirek Topolanek. It showcased cutting-edge global investment insights and projects to provide government-related European energy and infrastructure investment opportunities for Chinese institutions and high-net-worth individuals. In 2016, she was twice invited to appear at the Financial Times Forum in London as a representative of China. She also has a team of international lawyers who provide sophisticated top-structure design and investment banking services for M&A projects. So, for Li, joining PCG Capital was a natural step in her career. It is a company where she can use her experience to contribute to a cause she believes in. ""It is a pleasure to see Chinese investment is now booming overseas and that we are able to participate in this process,"" she says. cecily.liu@mail.chinadailyuk.com ( China Daily European Weekly 03/24/2017 page30)", -3379,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659953.htm,Bosch to set up new plants in China this year,,"The chairman of Robert Bosch GmbH, the German mobility, industry and software conglomerate, said on March 20 that his group would develop solutions for all spheres of the internet of things in China amid the country's push for more consumption - including investing in more new plants this year. The group said it would open a new joint venture for gasoline engine management systems in Chongqing; an automotive electronics plant in Changzhou, Jiangsu province; a power tools plant in Chengdu; and a thermotechnology joint venture with Guangdong Vanward New Electric Co, a gas appliance exporter based in Foshan. Bosch Chairman Volkmar Denner told China Daily in an interview in Beijing that his company would develop connected mobility, smart city and smart home products with a long-term perspective. ""China's growing demand for high-value-added products and services, especially for its automobiles, home-related service businesses and manufacturing projects, offers many opportunities,"" Denner says. In 2016, Bosch invested around 5.4 billion yuan ($782 million; 727 million euros; 631 million) in China, including establishing a research and development facility in Suzhou and another in Nanjing. In the connectivity business, Bosch focuses on sensors, software and services. The company has set up a local team for its connectivity businesses in China - subsidiaries Bosch Software Innovations, Bosch Sensortec and Bosch Connected Devices and Solutions. ""Bosch is convinced about the long-term potential of the Chinese market and we will continue to invest in China,"" Denner says. Bosch's sales increased in its 2016 fiscal year. According to preliminary figures, sales rose by 3.5 percent to 73.1 billion euros ($78.6 billion; 63.4 billion). In China, it posted double-digit growth last year, which meant China remained its second-largest market worldwide. ""We see China entering a phase of more balanced and sustainable development, through the transformation of economic development patterns and economic structural reforms,"" Denner says. Bosch employs 60,000 people in China. At nine of its manufacturing plants in the country, the company runs pilot projects following Germany's Industry 4.0 strategy - a concept that promotes the digitalization of its manufacturing. The initiative is now being hailed as the way forward for manufacturing companies. The first Chinese Industry 4.0 pilot project in Suzhou started three years ago. Starting this year, Bosch will export products manufactured at its China facilities to European countries via the China-Europe railway, a new move to participate in the fast development brought about by the Belt and Road Initiative. According to Bosch, a large number of mobile machines produced by China's original equipment manufacturers are equipped with Bosch's drive and control solutions and are showing excellent performance. Bosch is also supporting Chinese OEM customers, including SAIC-GM-Wuling Automobile Co in Indonesia and SAIC Motor Corp in Thailand, with its mobility solutions to develop their businesses in the markets of the Association of Southeast Asian Nations. ""Even though the shift by many multinationals is still in the early stages, it will have profound economic implications for both themselves and the Chinese market, because it comes at a time when many developing economies along the initiative are counting on China to develop urbanization and manufacturing projects,"" says Sun Fuquan, an analyst at the Chinese Academy of Science and Technology for Development in Beijing. zhongnan@chinadaily.com.cn (China Daily European Weekly 03/24/2017 page27)", -3380,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659952.htm,CRRC breaks ground at railroad car factory in US,,"Chinese railroad car manufacturer CRRC Sifang America broke ground on Thursday in Chicago at a $100 million (92 million euros; 80 million) plant that will buildcars for the city's transit authority and become the company's North American hub for the assembly of rail cars. In 2016, CRRC Sifang, a unit of China Railway Rolling Stock Corp, was awarded a $1.3 billion contract by the Chicago Transit Authority (CTA) to supply more than 840 new rail cars to replace approximately half of the agency's fleet. As part of the contract, the company agreed to make the rail cars in Chicago. In addition to fulfilling the CTA contract, the plant will give the company a foothold in North America to assemble rail cars and, potentially, high-speed trains, CRRC officials said. The 380,944-square-foot rail car manufacturing plant is being built on 45 acres (18.2 hectares) in Chicago's Hegewisch neighborhood on the Southeast Side, the first of its kind in the city in 35 years. The factory will employ roughly 170 workers - the majority of them high-skilled sheet metal and electrical union workers - and create almost 130 other construction jobs. CRRC Sifang America will spend $7 million to train the factory workers, according to a statement from Chicago Mayor Rahm Emanuel's office. CRRC Corp Vice-President Sun Yongcai said: ""CRRC Sifang America is grateful for the opportunity to work with the Chicago Transit Authority to produce the next generation of rail cars in Chicago, for Chicago. We are committed to producing top-of-the-line rail cars to enhance CTA rider experience, while also creating new jobs at our assembly facility in the city."" Emanuel said the plant represents a major investment in Chicago that will bring economic development to the Southeast Side, while creating good paying jobs. ""The rail cars that emerge from this facility will be the latest step we have taken to invest in world-class transportation, and to create a 21st-century transit system,"" he said. Production will begin in early 2019. After testing the cars are expected by 2020. The new cars will replace the CTA's oldest rail cars, which date back more than 30 years, officials said. It will be CRRC's second plant in the US. Construction began on a $95 million plant in Springfield, Massachusetts, in 2015 to build rail cars for Boston's transportation agency. Completion of that plant is scheduled for this year, and the first cars from that plant are expected to be delivered to Boston in 2018. paulwelitzkin@chinadailyusa.com (China Daily European Weekly 03/24/2017 page29)", -3381,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659951.htm,Processing the world's phosphorus perfectly,,"Wengfu blazes a trail with frenetic expansion and big technology emphasis In 2007, China's Wengfu (Group) Co achieved what was then truly extraordinary - the State-owned phosphorus and chemicals manufacturer outplayed many European and US counterparts to win the bid for what was then the world's largest mineral-processing project in Saudi Arabia. That set the tone for its frenetic global activity ever since. It launched a number of projects in northern and western Africa, as well as the Middle East. Today, Wengfu is pressing ahead with more than 30 overseas projects in countries such as Vietnam, Indonesia, India, and Kenya, most of which make use of its technologies related to mining and processing. - Workers at a railway yard at Wengfu's plant in Guizhou province. Peng Nian / For China Daily That's not all. Wengfu's senior executives say the company is now set to continue its overseas expansion into economies covered by the Belt and Road Initiative, which aims to connect Asia with Africa and Europe through an infrastructure and trade grid along the ancient Silk Road route. In the past three years, China signed around 50 government-level cooperation agreements in the Belt and Road countries and regions, according to the National Development and Reform Commission, the country's top economic planner. Outbound investments in economies along the Belt and Road are worth more than $50 billion, and have resulted in better-than-expected achievements, says He Lifeng, minister of the NDRC. Companies such as the Guizhou-based Wengfu can take some credit for that. The SOE is adopting diverse models of cooperation to gain a firmer foothold in foreign markets that lack the ability to mine or process natural resources like phosphorus, an essential mineral. From Wengfu's perspective, rich ores overseas need to be exploited further. Its overseas goal is consistent with the current domestic situation. The chemical producer has been largely reliant on the domestic market so far. It made a profit last year, but it was small as the rebound in coal prices pushed up its already-high costs. Revenue remained around 40 billion yuan ($5.79 billion; 5.38 billion euros; 4.68 billion), according to Jin Gang, assistant general manager of Wengfu and a deputy who attended the annual session of the National People's Congress in Beijing earlier this month. By 2020, Wengfu plans to invest about $4.3 billion to spur growth, and part of the budget will be allocated to strengthening efforts in overseas markets, especially along the Belt and Road, he says. ""Technology exports will remain our priority."" Founded in 1990, Wengfu started operations in 2000. Since then, it has mastered its low-cost, high-yield phosphorus mining technology, which helps extract 95 percent of the mineral from phosphate ore after removing impurities. Jin says Wengfu's overseas strategy has evolved in the past decade from exporting raw material, like phosphate fertilizers and processed products like iodine, to transferring higher-value-added technologies. Such a change dovetails with the government's endeavor to increase the share of high-value services in China's exports. The group also owns national-level laboratories and research facilities for post-doctoral researchers. This initiative has resulted in more than 2,000 patents so far. Zhang Tao, CEO of Wengfu Engineering and Contracting Co, the subsidiary in charge of overseas business, says Wengfu's business connections overseas vary with client needs, but its focus is fixed on giving full play to its technologies and professional services. The company is in talks with some parties to finalize investment terms for building factories in Belt and Road countries and regions. It will apply its world-class technology to extract anhydrous hydrogen fluoride, or AHF, at a lower cost. AHF is a chemical product extracted from phosphorus for industrial use. ""Many markets have shown strong interest in such projects,"" Zhang says. ""We will decide by evaluating the quality of mineral deposits, the investment environment and the market size. For other potential clients, we could tailor services to their preferences - say, we may send our consultants or provide EPC projects"" - a reference to engineering, procurement and construction, a common form of contracting in the section. Wengfu has faced its share of legal, cultural and religious challenges overseas. The only way out was to join forces, Zhang says. ""Vicious competition always drags everyone down. Chinese companies need to beef up their respective advantages,"" he says. He cites Wengfu's collaboration with China Huanqiu Contracting and Engineering Corp, its one-time competitor, for the second phase of Saudi Arabia's project. ""Our partner has more experience in networking and project management in Saudi Arabia, while Wengfu, a latecomer, uses technologies to its advantage. It was a win-win for both of us."" Thus far, Wengfu has implemented projects in partnership with many Chinese machinery producers and construction firms. Zhou Liqun, general manager of state-owned China Chengtong International Investment Co, says prudent risk management plays a key role in fulfilling the goal of overseas investment. (China Daily European Weekly 03/24/2017 page27)", -3382,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659950.htm,Riding the wave of growth,,"Conglomerate with over a century's presence in China sees a new round of opportunities Jebsen Group - a conglomerate with a rich business portfolio ranging from beer to car components - believes the Chinese government's initiatives toward a consumption-led and service-led economy, as well as the urbanization and growth of the middle class, are providing real growth opportunities. A private marketing and distribution company established in 1895 with more than 120 years of continuous presence in China, these days Jebsen represents more than 200 leading brands across various industries. The group employs more than 2,300 people and is headquartered in Hong Kong, with nine additional offices on the Chinese mainland, and in Taiwan and Macao. In 2015, the conglomerate reorganized and optimized its business structure. Under the unified master brand of Jebsen, the group has four strategic business units including Jebsen Consumer, Jebsen Beverage, Jebsen Industrial and Jebsen Motors. - Helmuth Henning says the upper segment of the middle class in China still wants to spend money. Roy Liu / China Daily The strategy shift appears to have paid off, with the group last year posting revenues of HK$13.3 billion ($1.71 billion; 1.58 billion euros; 1.38 billion) and net taxed profit up 5 percent from a year ago. The group's revenue has tripled over the last 10 years. Group Managing Director Helmuth Henning shared his perspectives on how Jebsen Group could drive further business growth amid the slowing down of the Chinese economy. The following are edited excerpts of an interview with Henning: How can China's economic changes, from being investment- and infrastructure-led to being consumption- and services-oriented, create business opportunities? Although Chinese economic growth is slowing, it is still at a reasonably high level and China's GDP growth in 2016 reached 6.7 percent. If you look at the upper segment of the middle class in China, this segment of the population is actually growing and has higher disposable income. They still have the desire to spend money. How will the business units of Jebsen Group respond to the new business environment? We strive to offer quality brands that can add to the lifestyle of the middle class. We offer upper premium products targeting the middle class, and these products are not mass produced or mainstream consumer products. Even though the market itself may not grow quickly at the end of the day, if you look at specific market segments that we are in, we still have significant growth potential. Urbanization, an aging population and the rise of the middle class: How do these phenomena contribute to the group's business? All these allow us to be confident that our consumer business will grow quite significantly over the next few years. Retail sales in China are slowing, but in major first-tier and second-tier cities, people want to buy quality products rather than products in large quantity. Chinese consumers have much more understanding of brands because of the information flow from the internet. They are very willing to look through the internet to search for products. We have built our own platforms in both Hong Kong and the Chinese mainland. On the mainland we also partner with other platforms, such as Tmall, to offer high quality electronic and lifestyle products. More Chinese are traveling overseas and they look at brands from a Chinese as well as a global perspective. This all opens up opportunities for brands that we work with. They are brands imported into China, which we try to establish in the marketplace. How can Jebsen Beverage cater to the needs of the Chinese middle class? In the wine business, we've built up our portfolio of business by focusing on a balance of agency brands and self-owned brands. Wines sell very well in the Chinese market and we work with the brands to sell their products. We've also developed Jebsen Wine Estates to produce our own product ranges after acquiring wineries in Australia, New Zealand, South Africa and South America. We've created more direct interaction with customers and inform them through our wine product catalogue. On the beer product side, we have our self-owned brands such as Blue Girl Beer and Sonderberg Beer. We are looking to expand Blue Girl Premium Beer in the southern Chinese market and have maintained sustainable growth there over the past three years, whereas Blue Girl Beer has entered its 10th year as the No 1 beer brand in Hong Kong by volume and value. While we take a regional perspective for our beer business; we've adopted a national approach to promote our wine business. How can Jebsen Consumer leverage its multibrand network? Our focus in the consumer business is on high-priced, small domestic electrical appliances. For example, we built up around 200 points of sale for Dyson in the country's first- and second-tier cities by the end of 2016. Our objective is to utilize the uniqueness of the Dyson brand by giving consumers retail experiences that they've never seen before. Though having a portfolio with an array of consumer products, the key is not about cross-selling but utilizing the uniqueness of the products and enriching peoples' lives. What is the strategic plan for Jebsen Motors over the next five years? We entered a dealership agreement with premium car brand Porsche for the Chinese market in 2001 and we sold 9,593 Porsches in 2016. We have built our Porsche service center clusters in the eastern and southern regions to expand the car dealer business in defined areas of China, rather than throughout the entire country. How has Jebsen Industrial positioned itself on ""intelligent manufacturing"", which is trending in China? The future of the industrial sector in China is to take the labor-intensive work out of the equation, to improve production reliability and quality. Moving forward, it is about replacing people with automation. Software and robotics are the direction. China has made some major investments in robotics companies, but acquiring these companies does not solve everything. We are looking at opportunities to get into this marketplace as well. We have set up three to four joint venture companies and factories in Dalian to produce car components that will be resold to car brands or first-tier component suppliers. In this way, we are adopting the production model and not the sales model to capture enormous market opportunities in this sector. What is your business philosophy? We are a private company, so we can take a longer view to develop businesses because we don't need to report to analysts or shareholders every three months. It's been the recipe for our success over the years. Though taking a long-term view, we also narrow the focus of our business. To be too broadly based is just not viable, given the size of the Chinese market. We take decisions to decide whether we keep those industries or not. We must be top of the class in each of the industries where we are operating. What is the challenge in China? To develop in the Chinese market involves a much higher level of complexity, because different markets exist within China with different spending patterns. The regulatory environment in the country is also very different and we need to understand what we can do and what we cannot do. What suggestions would you give to ambitious young people? Young people should be looking beyond the borders of China, although of course there are many opportunities in China. If they have skills, such as speaking foreign languages, there will be huge opportunities for them because many companies are expanding overseas from China and international companies also want to develop businesses in China. What is your recipe for business success? Professionalism, understanding our market and focusing on the areas we want to develop the most. Believe in yourself and try to find a passion. It is much easier when you find something that you believe in and a role that really interests you. If you can do that, you will have a better chance of success in life. oswald@chinadailyhk.com (China Daily European Weekly 03/24/2017 page31)", -3383,2017/3/24,http://europe.chinadaily.com.cn/epaper/2017-03/24/content_28659949.htm,VW 'back on track' thanks to record 2016 sales,,"Positive 2016 sales results have given Volkswagen Group new momentum, thanks to its speedy expansion in the Chinese market. But the automaker also reported shrinking profits as heated competition dragged down prices. Despite its ongoing diesel emissions issues, the carmaker set a new record for deliveries in 2016. It exceeded expectations by selling 10.3 million vehicles worldwide, including 4 million in China, a 12.2 percent increase from the previous year. ""Last year was a challenging yet remarkably successful year for us,"" said Matthias Muller, CEO of Volkswagen, at the 2016 annual financial statement presentation in Wolfsburg, Germany, on Mar 14. ""In 2016 we set our course for the biggest transformation in the history of the company, while at the same time performing better in our operating business than many thought possible. Volkswagen is back on track."" In order to accomplish its long-term goal of becoming one of the world's leading providers of sustainable mobility, the group launched its Together-Strategy 2025 future program in 2016. Sales of Volkswagen models rose 14 percent in China to 3 million units in 2016. Audi sales edged up 3.6 percent to 591,554 units and Skoda sales increased by 12.6 percent to 317,100 units. Meanwhile, luxury cars continued to post strong growth. Porsche sales went up 12.5 percent to 65,200 units during the same period. Jochem Heizmann, president and CEO of Volkswagen China, says, ""China's auto sales growth in 2016 has exceeded our expectation and long-term plan."" Although it posted sales revenues of 217.3 billion euros ($234.1 billion; 188.8 billion), the German company saw a minor decline in its Chinese joint ventures, which were impacted negatively by exchange rate effects. An auto analyst at an international consultancy, who spoke on condition of anonymity, says, ""Volkswagen was slow in bringing its SUVs to the world's largest market, where customers have been turning to SUVs over the past several years."" The Chinese SUV market surged by 45.7 percent to post nearly 9.2 million units in 2016, growing three times faster than the overall rate of expansion for passenger cars. But only two SUV models carrying Volkswagen badges are currently in the Chinese market - the Tiguan, which is locally produced by SAIC Volkswagen, and the imported Touareg. SAIC Volkswagen is also offering its Yeti, a third SUV under the Skoda brand, which is also localized. In contrast, FAW-Volkswagen Automobile's Audi division stepped on the accelerator in SUV production by launching its Audi Q7, Q5 and Q3 models. It is set to localize the compact Q2 model for a younger generation in Guangdong province, while a Q plant is under construction for the next-generation Q5. ""SUVs have higher prices than the sedans on the same platform. The market has accepted and settled into this pattern, so the segment generates much more substantial profit for a carmaker,"" the analyst says. The premium brand's achievement set another annual record for the premium segment in China, while the Audi Q5 topped the premium midsize SUV market. At 59.3 billion euros, Audi's 2016 sales revenue exceeded the previous year's figure by 900 million euros. The automaker witnessed its global sales rise by 3.6 percent year-on-year to around 1.9 million cars in 2016, maintaining a worldwide demand increase for the seventh year in a row since 2009. ""The Audi division has its own management system that runs well as a department under FAW-Volkswagen,"" the analyst says. (China Daily European Weekly 03/24/2017 page28)", -3384,2017/3/24,http://www.rte.ie/news/2017/0325/862465-coastguard/,Body found in wreckage of Rescue 116,,"It has been confirmed that a body has been located in the wreckage of Irish Coast Guard helicopter Rescue 116, which crashed off the coast of Co Mayo more than a week ago. Naval Service divers attempted to remove the body from the aircraft, however-undersea conditions complicated the-task before dives were called off for the night.- Attempts were made through the night to secure the remains and bring them to the surface using a Remotely Operated Vehicle (ROV) and-Naval Service divers will return to the wreckage this morning.- Dives to the area around the helicopter have so far failed to locate the other two missing crew members.- The search operation has focused on locating the bodies of Captain Mark Duffy, winch operator Paul Ormsby and winchman Ciar��n Smith. Captain Dara Fitzpatrick was transferred to Mayo University Hospital after being recovered from the water in a critical condition by an RNLI lifeboat crew after the helicopter crashed on 14 March, but was later pronounced dead. Capt Dara Fitzpatrick, Capt Mark Duffy, winch operator Paul Orsmby, winchman Ciar��n Smith Families of the three Coast Guard personnel were briefed throughout yesterday about the extensive efforts of Naval Divers, assisted by local boats around Blackrock. Garda superintendent Tony Healy said efforts were continuing to recover the body. ""It's a challenging time for the families obviously they're going through a stressful time waiting for the recovery of their loved ones,"" he said. VIDEO: Garda�� confirm body of one Rescue 116 crew member located in wreckage. Search for his colleagues ongoing. More on @rtenews pic.twitter.com/BFQXS3SSWB ""?Pat McGrath (@patmcgrath) March 25, 2017 The-air and land search is due to resume at first light, as the multiple agencies involved in the operation seek to recover the other missing men. Civil Defence teams from around the country are travelling to north Mayo, where drone technology will be used to access miles of coastline. Meanwhile the flight recorder was taken on board the Commissioners of Irish Lights""?vessel, Granuaile. It will be taken to Dublin before being brought to the UK. The AAIU said the reorder appears to be in very good condition with no external damage visible. However it will have to be examined in the UK before it is clear if it has sustained any damage or not. The black box contains both cockpit voice recordings and data on the history of the flight. There was no indication of any danger moments before the Sikorsky S92 vanished, with the crew's final transmission: ""Shortly landing at Blacksod.""", -3385,2017/3/24,http://www.rte.ie/news/2017/0325/862473-eu-leaders/,EU leaders mark 60 years since founding Treaty,,"Taoiseach Enda Kenny will join 26 other leaders for a ceremony in Rome today to make the 60th anniversary of the founding treaty of the European Union. Last night Pope Francis welcomed the leaders to the Sistine Chapel where he urged them not to be guided by fear and crisis towards populism, but instead to strive for a new spirit of solidarity. The Pope said problems such as the economic and migration crises and the rise of populism could be overcome. ""When a body loses its sense of direction and is no longer able to look ahead, it experiences a regression and, in the long run, risks dying,"" he said. Francis said the leaders of the six countries who founded the European Economic Community on 25 March 1957 had shown faith in the future in the aftermath of a destructive war. ""They did not lack boldness, nor did they act too late,"" he said. Sixty years ago six European nations signed the Treaty of Rome.- It was a bold step towards a common market, and a unique experiment in supranational governance. Today's renewal of vows will revolve around a declaration that Europe is undivided and indivisible, but the grand federalising ambitions of 60 years ago have been replaced by more modest aims.- Leaders will emphasise the need for the Union to focus on economic and literal security for its citizens, with the spectre of terrorism always fresh, and youth unemployment still high in many countries. Overshadowing the celebration is the fact that for the first time in its 60 year history, one big, wealthy member state will formally announce its withdrawal in just four days time.- British Prime Minister-Theresa May-has not been invited. Leaders are also expected to declare that Europe should integrate at different speeds according to the preferences of member states. That alarms some Eastern European countries who fear they may be left behind.- The Irish Government also has reservations.- At a time when one member state is leaving, it is understood the Government would prefer a show of unity, rather than clusters of members heading off at different speeds.", -3386,2017/3/24,http://www.rte.ie/news/world/2017/0325/862475-sewol-ferry/,Sewol ferry hauled onto lifting ship in salvage operation,,"South Korea's sunken Sewol ferry has been successfully hauled onto a giant heavy lifting ship, officials said, a step towards returning the vessel to port. Nearly three years after it went down killing more than 300 people, the wreck was safely placed onto a semi-submersible ship that will finally bring it to shore. Almost all the victims were schoolchildren and it is thought that nine bodies still unaccounted for may be trapped inside. The 145-metre ship was brought to the surface in a complex salvage operation believed to be among the largest recoveries ever of a wreck in one piece. After being pulled up to the surface by wires lowered from two large barges, a flotilla of powerful tugs towed the wreck towards the semi-submersible. It was placed over the deck of the semi-submersible, which will then rise throughout the day to expose the hull of the Sewol completely. ""It will take three to five days to prepare the Sewol to be towed to Mokpo"", a large port on the southern coast, some 87 kilometers (54 miles), a Minister of Oceans and Fisheries official said. Once secured on the vessel, it will take a day to reach port. The Sewol is likely to be docked at Mokpo early April, where the wreck will be searched for bodies. After the ferry safely leaves the accident site, the ministry said divers will search the waters and seabed for any remains. Underwater fences have been installed surrounding the area where the Sewol sank. The salvage came as the third anniversary approached of one of the country's worst-ever maritime disasters, which dealt a crushing blow to now-ousted president Park Geun-Hye. Investigations concluded the disaster was largely man-made - the cumulative result of an illegal redesign, an overloaded cargo bay, inexperienced crew and a questionable relationship between the ship operators and state regulators. Several relatives of the dead yesterday watched the much-anticipated operation unfolding from a boat near the site.", -3387,2017/3/24,http://www.rte.ie/news/leinster/2017/0325/862482-drogheda-shooting/,Shots fired at house in Drogheda,,"An investigation is under way after shots were fired at a house in Co Louth. It is understood there were no injuries in the incident, which occurred at a house at Beechwood Drive in Drogheda last night. A number of arrests have been made as part of the investigation.", -3388,2017/3/24,http://www.rte.ie/news/ireland/2017/0325/862486-bus-eireann/,Bus ?ireann services at standstill over strike action,,"Services at Bus ?ireann are at a standstill due to an indefinite strike by workers. The action is as a result of a dispute over management's decision to implement cost-cutting measures without union agreement.- Rail services are not affected by the action.- In a statement this morning, Iarnr��d ?ireann has advised passengers that all services are operating on all routes today. Some Intercity services were affected by the dispute yesterday due to picketing. The strike represents a serious escalation of the Bus ?ireann row, which could push the company over the edge. It lost �1.4m last year and a further �10,000 a day in January. But each strike day will cost another half a million, which the company insists is unsustainable. Management has said that it had to proceed with unilateral implementation of cuts due to the financial crisis, and because unions would not agree to any reductions in take-home pay or unnecessary overtime. However, the unions have accused the company of seeking to introduce so-called yellow-pack terms and conditions in a race to the bottom, to groom the company for privatisation. All rail services are operating on all routes today - no disruption arising from Bus Eireann dispute ""?Iarnr��d ?ireann (@IrishRail) March 25, 2017", -3389,2017/3/24,http://www.rte.ie/news/2017/0324/862162-buseireann-strike/,Thousands of commuters hit with travel disruption across country,,"Tens of thousands of people had-to make alternative travel arrangements today-due to a strike at Bus ?ireann over the company's implementation of cost-reduction measures without union agreement. Bus ?ireann-warned that the strike will worsen the company's financial situation, which it has described as perilous. Iarnr��d ?ireann-said some Intercity services were affected by the dispute due to picketing today. It said-there is significant disruption, with some services cancelled and others-curtailed. But Iarnr��d ?ireann said special late-night trains for football fans returning from the Ireland-Wales match will operate to Cork, Limerick and Galway. The Minister for Transport Shane Ross said that he will-""categorically""-not be intervening during the strike and he called on both sides to get back to the talks.- He said an industrial relations dispute is not a matter for the minister. He said both parties should go to the-Workplace Relations Commission-and the Labour Court for talks. He added that the only reason that people were calling on him to intervene would be to pay taxpayers""?money and he said he will not be doing that. He said the company needs to reform and that can be done maturely through talks by the two sides. Mr Ross said he would be happy to talk to all stakeholders in CI?, when the strike is over. Dublin Bus-services are operating as normal. GO-BE, the joint venture company between Bus ?ireann and Go-Bus, suspended its services between Cork and Dublin city and Airport. While it was not meant to be affected by the dispute, it is understood there were issues at its base in Cork this morning and the service was suspended. It is-understood Air Coach, which-has a sizable part of the market for Cork to Dublin route,-has contracted ten buses from a private bus operator to meet the additional demand.- The general manager of the City Link private bus service has said the company has increased their departures by 25% on the Dublin to Galway route and other services around the country today to meet demands. City Link usually has 100 daily departures on services that include 14 different towns on the 'off motorway route' to Dublin from Galway, but has around 25 additional buses out to meet demands. Some tourists arrived at Bus��ras this morning unaware of the Bus ?ireann strike. https://t.co/NLmiVgcCQI pic.twitter.com/iVBG2FdH4I ""?RT? News (@rtenews) March 24, 2017 This evening, SIPTU said that it has issued a number of steps to its members which would assist in ending the strike by Bus ?ireann workers. Earlier, a-SIPTU official said the blame must be laid for the strike at the door of management and the Minister for Transport Shane Ross. Speaking on RT?'s Morning Ireland, Divisional Organiser Willie Noone said that staff had ""no other choice""-but to strike in an attempt to protect their livelihoods, but acknowledged that it is unfortunate for commuters. He said that the unions had worked hard to keep staff at work to this point given the anger at company proposals to cut pay. National Bus and Rail Union General Secretary Dermot O""�Leary has said disputes such as that at Bus ?ireann are solved by discussions sitting around a table behind closed doors and that is where his union would like to be.- He acknowledged the strike will exacerbate financial problems at Bus ?ireann, but said his members had demanded for many weeks this action be taken in response to what the company has done since January. He said Bus ?ireann's agenda is to be able to compete for State contracts in 2019, which is code for people becoming low-cost in terms of how they operate and their wages. He added that Mr Ross should use his office to create an environment for all stakeholders to get around the table to discuss the crisis. The minister has said he is not commenting on the strike at the moment. Stephen Kent, Chief Commercial Officer with Bus ?ireann, has apologised to customers for the ""highly regrettable"" inconvenience caused by the-strike. Mr Kent said the company has run out of time and absolutely needs to implement the cost-cutting measures it has put forward. He said the company is doing everything it can to minimise all non-payroll costs and has eliminated all discretionary spending. Mr-Kent said the issues at Bus ?ireann can only be resolved through discussion with the workforce but they need to deliver work practice changes that will deliver-urgently needed savings. The-strike represents a serious escalation of the Bus ?ireann row, which could push the company over the edge. It lost �1.4m-last year and a further �10,000 a day in January. But each strike day will cost another half a million, which the company insists-is unsustainable. Management has said-that it had to proceed with unilateral implementation of cuts due to the financial crisis, and because unions would not agree to any reductions in take-home pay or unnecessary overtime. However, the unions have accused the company of seeking to introduce so-called yellow-pack terms and conditions in a race to the bottom, to groom the company for privatisation. The strike will affect businesses as well as disrupting the travel plans of 110,000 passengers a day, though not all will be stranded. The National Transport Authority has reminded passengers that there are alternative private operators on many routes. If Bus ?ireann passengers defect to them, they may never return, further damaging revenue at the State-owned company. No further talks are planned at present.", -3390,2017/3/25,http://www.rte.ie/news/2017/0324/862168-trump-health/,Republicans pull healthcare legislation plan in blow to Trump,,"US President Donald Trump has suffered a stunning political setback in a Congress controlled by his own party when Republican leaders pulled legislation to overhaul the US healthcare system, a major 2016 election campaign promise of the president and his allies.- Republican leaders of the House of Representatives pulled the legislation due to a shortage of votes despite desperate lobbying by the White House and its allies in Congress,-ensuring that Mr Trump's first major legislative initiative since taking office ended in failure. - - - - - - House Republicans-had planned a vote on the measure after Mr Trump cut off negotiations with Republicans who had balked at the plan and issued an ultimatum to vote on Friday, win or lose. Republican moderates as well as the most conservative lawmakers had objected to the legislation. The White House and House leaders were unable to come up with a plan that satisfied both moderates and conservatives. ""We learned a lot about loyalty. We learned a lot about the vote-getting process,"" Mr Trump told reporters at the White House, although he sought to shift the blame to the Democrats, who were unified in their opposition, even though his party controls the White House, the House and the Senate. Amid a chaotic scramble for votes, House of Representatives Speaker Paul Ryan (above), who has championed the bill, met with Mr Trump at the White House before the bill was pulled from the House floor after hours of debate. Mr Ryan said he recommended that the legislation be withdrawn from the House floor because he did not have the votes to pass it, and that Mr Trump agreed. Without the bill's passage in Congress, Democratic former President Barack Obama's signature domestic policy achievement, the 2010 Affordable Care Act - known as Obamacare - would remain in place despite seven years of Republican promises to dismantle it. ""There were things in this bill that I didn't particularly like,"" Mr Trump added, without specifying what those were, but he expressed confidence in Mr Ryan's leadership. ""Perhaps the best thing that could happen is exactly what happened today, because we'll end up with a truly great healthcare bill in the future after this mess known as Obamacare explodes,"" Mr Trump said. Repealing and replacing Obamacare was a top campaign promise by Mr Trump in the 2016 presidential election", -3391,2017/3/25,http://www.rte.ie/sport/soccer/2017/0324/862319-republic-of-ireland-v-wales/,Ten-man Wales hang on for Ireland draw,,"Ireland had to settle for a scoreless draw against ten-man Wales in their World Cup qualifier at the Aviva Stadium. Martin O""�Neill's side enjoyed a sustained spell of pressure for the final third of the game but could not find a way through to goal as they enjoyed an extra man for the final 25 minutes. Seamus Coleman was stretchered off as a result of the red card offence, which saw Neil Taylor sent off for a nasty-looking challenge on the Ireland skipper and O'Neill later confirmed that his leg was broken and that the Donegal man was on his way to hospital.- Wales had enjoyed the lion's share of the possession in the opening half but failed to break through a well-organised and disciplined Ireland defence as neither side really threatened a breakthrough. Chris Coleman's side started the second period as they finished the first, on the front foot, and Real Madrid star Gareth Bale looked to be honing in on the Ireland goal with two chances within two minutes. And the Wales talisman really showed his class for that second effort that whistled past the far post as he took on a snapshot from an audacious angle. Shane Long dragged Ireland into the contest in the 60th-minute as the half wore on as his aggressive running and closing down allowed Ireland to see their first decent spell of possession in the opponents""?half. Wales were starting to look frustrated and then when Bale escaped a red card for a late and high challenge on John O""hea, team-mate Taylor followed up a moment later with that mis-timed tackle on Coleman, who was charging through at full pace before he was scythed down. A straight red followed and then the sustained Ireland attack really started to put pressure on the visitors""?goal, yet to no avail. The closest-O""�Neill's side came to scoring was a James McClean right-footed volley which looked to be flying into the back of the net but was deflected wide. The magnificent Bale was lucky to end the match on the pitch as he should have received a second yellow card for another late challenge with five minutes remaining. And then a solo effort from the Madrid man almost decided the contest as he raced clear, cut inside and smashed a near-perfect effort, arrowed towards the top corner. The ball flew past the wrong side of the post and while it would have been a fitting goal to decide such an exciting contest, it would have perhaps been harsh on the hosts, with the draw being the fair result over the entire 90 minutes. Wales were better than us on the night, admits James McClean after the draw against Wales pic.twitter.com/SEcdYoG9hS ""?RT? Soccer (@RTEsoccer) March 24, 2017 McCarthy Gamble Backfires Before a Ball is Kicked The Everton man was deemed fit to play an hour before kick-off but failed to get through the warm-up, which resulted in a late change to the team with David Meyler coming in as a-replacement. It probably was not too much of a surprise for the Hull City midfielder that he was called into action and was more than likely told to be ready just in case. But player welfare must really be an issue here as McCarthy only managed two days training this week as he recovers from a hamstring strain. There was always going to be questions about McCarthy's fitness and the only bonus here was that Ireland were not forced to make an early substitution. Ronald Koeman's thoughts on the whole affair should be interesting once the player returns from the international break. Two Minutes of Madness as Wales See Red It ended with Seamus Coleman being stretched off with-a-broken leg after Neil Taylor flew into a challenge with the Ireland captain. Taylor was rightly shown a straight red card for the wreckless challenge but perhaps Chris Coleman's side should have been down to ten men two minutes earlier when it all started-Gareth Bale launched himself at a ball coming into the box. John O""hea had clear the ball before Bale, with studs showing, caught the Ireland centre-half but the Madrid man was surprisingly only shown a yellow card for the over-zealous challenge. Bale should certainly have picked up a second yellow late in the game and while the Italian referee had to be commended for letting the game flow, he certainly got the big decisions wrong, which will ultimately leave the Ireland captain out of action for some time. Bale Watch The Real Madrid man looked head and shoulders over every Irish player on the pitch from the opening exchanges with his movement, quick-thinking and early delivery. Playing a more central role, the Madrid man failed to really threaten the Irish goal in the first half, although he came close to setting up some excellent opportunities for his team-mates on occasion. His star shone at times in the second half with a couple of goalbound efforts that just flew past the post, but his high profile is what probably saved him a red card as he could have been sent off twice in this encounter. Overall, Ireland will be happy with the way they marshalled him and the defence will be very content with the clean sheet. Man of the Match ""?James McClean - Eamon Dunphy labels Neil Taylor's tackle on Seamus Coleman 'filthy' #RTEsoccer #IRLvWAL pic.twitter.com/QK6ezmrp62 ""?RT? Soccer (@RTEsoccer) March 24, 2017 - A remarkably emotional week for the Ireland midfielder ended up with being McClean being named man of the match. The West Brom man lost a former team-mate last Sunday as Derry City captain Ryan McBride died tragically and McClean wore the number five jersey as a mark of respect. As the Ireland manager mentioned during the week, McClean will always play with his heart on his sleeve, however, the midfielder put in a very disciplined performance throughout and could have ended up scoring the winning goal, only for a deflection taking his shot wide of the target. In truth, there were not too many candidates for the accolade, however, Shane Long must have been close to it after his tireless display leading the line on his own against a five-man defence. Manager Report: O""�Neill v Coleman Martin O""�Neill watched on as his side were totally outplayed in the first half, however, he would have been very happy that his side were still level at the break. The Ireland-manager, to his credit, has shown in previous encounters that he was able top re-jig his formation counteract dominating sides and once again Ireland looked a different side in the second half. O""�Neill spoke after the game about the tough week that his squad have endured this week with bereavements and injuries taking their toll, which contributed to the poor first-half display. Chris Coleman on the other hand had to do very little as he lets his team play the way they have been playing and the way that saw them reach the semi-finals at Euro 2016. And while it was very pleasing on the eye, the manager didn""t appear to have a plan B to help create better chances as his side struggled to get too many sights on goal. ""tonight is about Seamus""��?Martin O""�Neill:-""We were a bit sloppy in the first half I felt. We built up a bit of momentum on the second half and continued when Seamus went off. All in all it's another point on the board but I think tonight is about Seamus."" Chris Coleman: ""the match had a bit of needle throughout but nobody wants to see what happened to Seamus Coleman. Neil is not that type of player.""?Ireland:-Darren Randolph; Seamus Coleman (capt) (Cyrus Christie 72), John O""hea, Richard Keogh, Stephen Ward; Glenn Whelan, David Meyler (Aiden McGeady 80), Jeff Hendrick, James McClean, Jonathan Walters; Shane Long. Wales:-Wayne Hennessey; Chris Gunter, Ben Davies, James Chester, Ashley Williams (capt), Neil Taylor; Joe Ledley (Jazz Richards 72), Joe Allen, Gareth Bale, Aaron Ramsey; Hal Robson-Kanu (Sam Vokes HT). Referee:-Nicola Rizzoli (Italy). View Comments", -3392,2017/3/25,http://www.rte.ie/news/courts/2017/0324/862286-roy-webster-anne-shortall/,Webster given mandatory life sentence for murder of Anne Shortall,,"Roy Webster has been given a mandatory life sentence for the murder of Anne Shortall in Wicklow two years ago. She had threatened to tell his wife about their one night stand. The jury earlier-returned a unanimous verdict in the case. Webster, 40, from Ashbree, Ashford, Co-Wicklow, had pleaded guilty to the manslaughter of Ms Shortall in April 2015, but had claimed he did not intend to kill her and pleaded not guilty to murder. The court heard Ms Shortall, 47, claimed to be pregnant and Mr Webster said she had asked him for ?6,500 Sterling for an abortion. He told garda��-he met her on 3 April 2015-to get proof of her pregnancy and then intended to get money for her. But the court heard-she did not bring any proof. He said he hit her on the head with a hammer after she stormed out of his van and then hit her again after she said she would ruin him. The court heard she had been hit nine times on the head with a hammer. The jurors were also told Ms Shortall was not pregnant and knew-that. Webster wrapped Ms Shortall's head and hands with duct tape. The State Pathologist said she could not determine if Ms Shortall was dead or alive when the tape was wrapped around her head. Afterwards, Webster drove home and was ""acting completely normally"" according to evidence heard in court.-He had a glass of wine, watched television and went to sleep on the couch the court heard. He moved Ms Shortall's body to his work shed the following day after opening his van to get some wood. The following day he told garda��-he had a ""pyjama day"" and watched a film. He finally confessed to killing Ms Shortall four days later, after garda��-called to his home and his wife asked him if he had hurt Ms Shortall. He told garda��-it was like having an out-of-body experience or watching a horror movie as he hit her on the head. He said it was as though-he had snapped because she had him backed against a wall and was going to ruin him and his family. His lawyers had told the court he lost control and that the jury should consider the defence of provocation. Lawyers for the Director of Public Prosecutions said Webster's statements to garda��-after his confession had a degree of ""self pity"". They also said despite the evidence that had been heard about Ms Shortall and her background, it was Roy Webster who was on trial. What the jury had to decide was whether or not he had intended to kill her. After-more than seven and a half hours of deliberations since Tuesday, the jury found him guilty of murder by unanimous verdict. Mr Justice Patrick McCarthy sentenced Webster to life in prison this afternoon. Court hears victim impact statements Before Webster was sentenced to life in prison, victim impact statements were read to the court on behalf of each of Anne Shorthall's children - Alanna, Emma and David. In a written statement read to the court by Alanna, David said: ""On Wednesday I should have been embracing my mother with open arms and saying ""happy birthday"". Instead I put flowers on her grave."" Emma said she had lost her mam, best friend and confidante. She added: ""There is a void in my life that can never be filled."" Alanna said the person she relied on most was taken away ""suddenly and violently. ""My mother was not meant to die, her life was taken from her. She will never get to see her grandchildren grow up,"" she said. Anne's siblings and close family penned a joint statement revealing Anne's brother James became so depressed by what had happened that he took his own life seven weeks after her brutal murder. ""Our family will never be the same,"" they said. Webster's barrister Brendan Grehan SC then stood up to tell the court that his client wanted to say sorry to all who had been affected, especially the children of Anne Shortall and his own family. He added that while he ""bitterly regrets"" what happened, ""it was never his intention to injure her, much less kill her."" Webster, who shook his head in disbelief when the verdict was revealed earlier in the day, wept before the judge asked him to stand while he passed sentence. Justice McCarthy said: ""As a matter of law there is one penalty only and I imprison you to life."" As prison officers brought him from court one final time he mouthed ""sorry"" in the direction of Ms Shortall's family. His sentence was backdated to 7 April 2015, when he first went into custody.", -3393,2017/3/25,http://www.rte.ie/news/ireland/2017/0324/862432-limerick-road-accident/,Young man dies in Limerick road collision,,"A 19-year-old man has died after his vehicle was involved in a collision with a truck in Co Limerick this evening. Garda��-are investigating the-two-vehicle crash-that occurred on the N21 at Wards Cross on the Limerick side of Abbeyfeale, Co-Limerick, at approximately 7.40pm. The man-was pronounced dead at the scene and his body has been taken to University Hospital Limerick. An 18-year-old female passenger was seriously injured. She has also been-taken to University Hospital Limerick with injuries described as critical. The driver of the truck was uninjured. The-stretch of road has been closed for a technical examination by garda��-and local diversions are in place. Garda��-are-appealing for witnesses to contact them at Newcastle West Garda Station on 069 20650, the Garda Confidential Telephone Line on 1800 666 111 or any garda station.", -3394,2017/3/25,http://www.rte.ie/news/ireland/2017/0324/862214-garda-traffic-errors/,T��naiste says scale of convictions error is 'appalling',,"The T��naiste and Minister for Justice has said the scale of the latest garda scandal, which-caused almost 15,000 wrongful road traffic convictions, is ""appalling and staggering"". It was disclosed yesterday that about 14,700-people convicted in the courts were prosecuted without a fixed-charge notice first being issued. Garda��-now have to appeal all those convictions, have those court-imposed penalties removed and the State has to cover all costs, estimated to run into millions of euro. Frances Fitzgerald said the discrepancy means ""effectively it was across the whole system"". T��naiste says scale of convictions error is 'appalling and staggering' https://t.co/JlMhjALrBF pic.twitter.com/1F6e9ZXnTV ""?RT? News (@rtenews) March 24, 2017 In a statement released this afternoon, Ms Fitzgerald said: ""I have raised these issues with the Garda Commissioner and the Chairperson of the Policing Authority and have outlined my very serious concerns. ""The Chairperson of the Policing Authority, Josephine Feehily, has confirmed that the Authority will continue to examine these matters. ""In relation to the mandatory alcohol testing, solutions have been put in place and the Commissioner has advised me that she will take all steps necessary to ensure that this cannot reoccur. ""I have made it clear to the Commissioner that the practices that allowed this misreporting to happen within An Garda S��och��na over many years need to be fully addressed and the new systems that she has put in place will need to be robust, tested and verified in the time ahead,"" added Ms Fitzgerald. Earlier, Fianna F��il's justice spokesperson said his confidence in Garda Commissioner N��ir��n O'Sullivan will not be assured unless an adequate explanation is given for how the garda error occurred. Speaking on RT?'s Morning Ireland, Fianna F��il TD for Dublin Bay South-Jim-O'Callaghan said that Commissioner O'Sullivan should take the lead in how this matter is being explained. He said it is unacceptable that-people were convicted in the courts for road traffic offences due to ""a-garda error""-and that people need to know how this happened and who is responsible. It also emerged that garda�� recorded 937,000 more roadside alcohol tests than had actually been carried out in a five-year period to 2016 - almost twice the real figure. Mr O'Callaghan said this is ""damaging the credibility of An Garda S��och��na"", adding that ""they-must come out with serious explanations about how these serious errors occurred"". He said garda��-have known about this issue for at least eight months and there is a need to know if the Government was-made aware. ""T��naiste and Minister for Justice Frances Fitzgerald needs to spell out exactly when she was informed about the litany of errors announced by An Garda Sioch��na yesterday,"" he said. ""She needs to explain what discussions she has had with the Garda Commissioner on these matters, and she needs to spell out to the Irish people what exactly is her understanding of how these errors occurred and who is responsible. ""My party and I are concerned that the manner of yesterday's announcement, and the lack of a coherent explanation from any quarter points to a lack of understanding of how serious this situation now is."" A spokesperson for the Department of Justice later said: ""Obviously the issues which have arisen are matters of concern. ""While the T��naiste welcomes the measures being taken to address these issues, she has asked to be kept informed of progress in this regard and in relation to ensuring issues of this kind do not arise again. ""The Policing Authority will have a significant oversight role in this regard."" Controversy is 'eroding public confidence' in garda��-- Howlin Labour Party leader Brendan Howlin has said the controversy is eroding public confidence in An Garda S��och��na, and called for Ms O'Sullivan to be replaced. Speaking on RT?'s Today with Sean O'Rourke, he said fundamental trust is really important and that has been seriously undermined by the latest series of events.- He said there are two separate issues of concern: ""One, that almost one million breath tests were taken and logged but never happened; and secondly, 15,000 convictions, people prosecuted in court, that should not have happened. ""For every actual breath test that took place, a second in statistical terms was actually recorded as having taken place and that didn't happen at all. Now that is beyond belief, it beggars belief that could happen and there is no answer to it."" He believes Ms O'Sullivan should be responding to the-controversy and explaining what happened.- ""The buck stops with the person in charge. The commissioner has to explain in very real terms what happened here."" Sinn F��in leader Gerry Adams said-public confidence in the management of An Garda S��och��na will be further eroded by the revelations. ""All of these issues go to the very heart of public expectation and confidence in the integrity of our policing and justice systems. That necessary confidence in garda management does not exist at this time."" Independent TD Clare Daly said that the latest example of what she termed ""garda indiscipline and mismanagement""-is one scandal too far and-someone needs to be held to account for it. Speaking on the RT? News at One, Ms Daly said it is ""really keystone cops stuff""-and the Garda Commissioner has lost the authority of the force and the public. She said the existing hierarchy in the force came from the same culture and ethos that has been found to be deficient and ""it needs shaking up""-and replacing. She also said the Policing Authority does not have enough teeth, and-questioned how long the T��naiste-knew about the matter and accused her of repeating a ""mantra""-in response to it. Social Democrats TD Ro��s��n Shortall has said the scale of the garda errors are huge and the falsifying of figures raises issues in relation to garda competence and integrity. Speaking on RT?"" Six One, Ms Shortall said there has been no clear explanation as to why it happened, saying garda�� were ""cooking the books"". She said it is yet another scandal in a long list of scandals and authorities have failed to deal with the problems over the years. Ms Shortall said it is not enough to apologise and there have to be consequences. She said the T��naiste-needs to ask that Garda Commissioner O'Sullivan to make a statement in the next week in relation to how the scandals have arisen and who is going to be held accountable.", -3395,2017/3/24,http://www.rte.ie/news/2017/0324/862171-westminster-khalid-masood/,British police make appeal for information over Westminster attacker,,"British police have made an appeal for information about Khalid Masood, the man behind the deadly terror attack in central London on Wednesday-in which four people were killed-and at least 20 others were injured. Scotland Yard's top anti-terror officer Mark Rowley appealed to the public for information about Masood, who was shot dead during the attack,-as London Metropolitan Police released a photo of the attacker. Police have said that the 52-year-old had-previously gone by a number of names including Adrian Elms and-Adrian Russell Ajao. Two more ""significant arrests"" have been made in connection with the attack and Acting Deputy Commissioner Mark Rowley said the suspects were held overnight in the West Midlands and northwest of England. Eight other people were arrested after properties across the UK were raided-following the attack. Police enter a property in Birmingham following further arrests over Westminster atacj However, six people arrested as part of the investigation have now been released from police custody, with no further police action.- The six people are: a-21-year-old woman and a 23-year-old man who were arrested at an address in Birmingham. A 26-year-old woman-and three men aged 28, 27 and 26 years old, who were arrested at separate addresses in Birmingham. A 39-year-old woman was arrested at an address in east London on suspicion of preparation of terrorist acts. She has since been released on bail until a date in late March. Four others remain in police custody pending further inquiries. They include a-58-year-old man arrested yesterday morning-at a separate address in Birmingham; a 27-year-old man arrested yesterday at an address in Birmingham; a 35-year-old man arrested in the early hours of this morning-at an address in Manchester and a 32-year-old woman-arrested this morning-at a location in Manchester. All four were arrested on suspicion of preparation of terrorist acts. Earlier, Mr Rowley revealed that the fourth member of the public injured in the attack, who died in hospital last night, was 75-year-old Leslie Rhodes from Streatham, south London. He said two people remain in hospital in a critical condition, one with life-threatening injuries. Two police officers injured in the attack are also in hospital with ""significant injuries"". Mr Rowley said: ""We remain keen to hear from anyone who knew Khalid Masood well, understands who his associates were and can provide us with information about places he has recently visited. ""There might be people out there who did have concerns about Masood but did not feel comfortable for whatever reason in passing those concerns to us."" Masood-was born with the birth name Adrian Russell Ajao,-before later converting to Islam, according to reports. Hours before carrying out his atrocity, The Sun newspaper said he stayed in the Preston Park Hotel in Brighton, telling staff as he checked out that-he was going to London. He reportedly added: ""It isn't what it used to be."" Officers were seen scouring the hotel in the wake of the attack after a receipt for his stay was found in the hire car he later ploughed down pedestrians with, the paper said. A member of staff at the hotel said last night: ""We have been instructed not to talk."" Further details emerged about his violent history, which included an episode when he stabbed a man in the nose in the driveway of a nursing home in Eastbourne in 2003. Masood ploughed a car down Westminster Bridge and stormed the Parliamentary estate armed with two blades, fatally stabbing Police Constable-Keith Palmer. More candlelit vigils for the victims are scheduled today in Birmingham and London. Scotland Yard said Masood - who was shot dead by police - was born in Kent on Christmas Day in 1964. After leaving Kent, it is thought he most recently spent time in the West Midlands, with a witness to an armed raid on a flat in Edgbaston saying: ""The man from London lived here."" Masood is also thought to have spent periods living in London, Sussex and Luton. Scotland Yard said he was not the subject of any current investigations before the massacre and there was ""no prior intelligence about his intent to mount a terrorist attack"". But he was known to police and MI5 and had convictions for assaults, including grievous bodily harm, possession of offensive weapons and public order offences. His victims on Westminster Bridge included a US tourist from Utah who was celebrating his wedding anniversary and a ""highly regarded and loved"" staff member of a local college. Kurt Cochran and his wife Melissa, on the last day of a trip celebrating their 25th anniversary, were visiting her parents, who are serving as Mormon missionaries in London. Mrs Cochran was badly injured. Aysha Frade, who worked in administration at independent sixth-form school DLD College London, in Westminster, is understood to have been 43 and married with two daughters. A house in Carmarthenshire, south west Wales, was also searched, Dyfed-Powys Police said. British Prime Minister-Theresa May said Masood was investigated some years ago in relation to concerns about violent extremism but was a ""peripheral figure"". British Home Secretary Amber Rudd defended the security and intelligence agencies, saying: ""The fact that he was known to them doesn't mean that somebody has 24-hour cover."" Meanwhile, President Michael D Higgins was at the British embassy to sign the book of condolence for the four victims of the Westminster attack, which he has described as an appalling criminal act.", -3396,2017/3/24,http://www.rte.ie/news/2017/0324/862293-danielle-mclaughlin/,Body of Irishwoman killed in India flown home,,"The body of an Irishwoman killed at a tourist resort in India has been flown home. Danielle McLaughlin will undergo a further post-mortem examination in Dublin after a post mortem-in India showed she had suffered cerebral damage and constriction to the neck. The 28-year-old, from Buncrana, Co Donegal, was found dead in a secluded spot in Canacona, a popular area for holidaymakers in Goa on the west coast, on Tuesday 14 March. The Kevin Bell Repatriation Trust organised the transfer. A spokesman said: ""She won't be in Buncrana until next week. She is going for another post mortem."" Local media reported that the former Liverpool John Moores University student was discovered unclothed and had marks on her head and face. Indian police said a farmer found Ms McLaughlin's body. A vigil was held close to the spot where Ms McLaughlin's body was found She had travelled to Goa with an Australian female friend and the pair were staying in a beach hut. They had been celebrating Holi, a Hindu spring festival,-in a nearby village. She left the village late at night and her body was found the next day, police said. Ms McLaughlin was the the eldest of five daughters.", -3397,2017/3/24,http://www.rte.ie/news/health/2017/0324/862232-hiqa-ambulance-dublin/,HIQA report: Dublin ambulance shortcomings putting patients at risk,,"A Health Information and Quality Authority review of the ambulance service has found that there are significant shortcomings in Dublin, putting patients at a high level of risk. HIQA also found that the national service still lacks necessary capacity and despite increased recruitment rates, remains reliant on overtime to maintain services. The report-says that more has to be done to ensure a modern, effective emergency ambulance service is provided by Ireland's two publicly funded services - the National Ambulance Service and Dublin Fire Brigade. It says that, currently, if a patient with a potentially life-threatening condition in Dublin calls 112/999 for an ambulance, arrangements for call handling and dispatch can result in a delay in response. This is-due to the process for transferring calls from Dublin Fire Brigade to the National Ambulance Service, where the DFB has reached operational capacity. Also, a Dublin Fire Brigade resource may continue to be dispatched to such a call in a situation where a nearer National Ambulance Service resource may have been available and better placed to respond. Read:-Review of progress made in implementing recommendations following HIQA's 2014 review of prehospital emergency care services In its review, HIQA said that if a patient or member of the public rings 112/999 for an emergency ambulance in Dublin, there is no means of ensuring that the nearest available appropriate resource from either service is always immediately sent to answer the call, regardless of whichever agency is providing the resource. Neither Dublin Fire Brigade nor the National Ambulance Service has sight of the location of each other's resources, as they operate different and separate computerised dispatch systems which are not linked together. The health watchdog says that while lines of communication and formal governance arrangements at senior management level within the HSE and Dublin City Council have much improved, there is still no detailed plan for the delivery of emergency services in the greater Dublin area. The review calls for a significant increase in staff and a long-term commitment to finance this increase in order to meet response time performance levels. Today's 124-page report is a review of progress in implementing the recommendations of HIQA's 2014 review of pre-hospital emergency care services. It says that key improvements have occurred, in particular the National Ambulance Service move to a single control centre over two sites. But a key finding relates to the service in Dublin where there is a ""high level of risk""-associated with a lack of collective ambulance capacity and arrangements for call handling and dispatch. Up to 2005, services were provided by nine providers. The National Ambulance Service covers most of Ireland and the Dublin Fire Brigade covers most parts of Dublin. The report says that National Ambulance Service funding has been increased by 9% since 2014 but funding provided by the National Ambulance Service to Dublin Fire Brigade to part-fund ambulance services has remained unchanged since then. Both services have experienced a year-on-year increase in the demand on services. Dublin Fire Brigade receives an average of around 320 emergency ambulance calls a day. In a statement, the Health Service Executive-welcomed the review saying it appreciates HIQA's acknowledgement that significant changes have occurred to address the recommendations outlined in the 2014 report. It said these changes have come about as a result of the continued commitment and dedicated work of staff within the National Ambulance Service. SIPTU Divisional Organiser Paul Bell-said that the service needed extra investment to make it effective in city and rural areas. He said the HIQA report showed there had been progress and that SIPTU members in the National Ambulance Service and in Dublin Fire Brigade had contributed to ensuring improvements since the 2014 review. Meanwhile, the National Ambulance Service Representative Association has said the service needs more investment and staff to meet growing demand on services. Its chairman, Michael Dixon, said it was extremely difficult to attract recruits when pay and conditions have been progressively eroded. HIQA said the National Ambulance Service now has a clear understanding of what it needs to do to progress services, ""aided through a series of reviews examining capacity, workforce development and fleet management."" The HSE also said that the-National Ambulance Service is in the second year of a five-year strategic plan. Damien McCallion, the National Director for the service, said the HIQA report found that lines of communication, formal governance arrangements and working relationships at senior management in the HSE and Dublin City Council were much improved. He welcomed the report and said more needs to be done in some areas of work. Mr McCallion said that significant changes have occurred since the previous HIQA review in 2014.", -3398,2017/3/24,http://www.rte.ie/news/health/2017/0324/862308-megan-halvey-ryan-scoliosis/,Teen featured on RT? documentary has scoliosis surgery,,"A 13-year-old scoliosis patient has undergone a long-awaited spine correction operation. Following Megan Halvey Ryan's operation in Crumlin Children's Hospital yesterday, her spine is now almost completely straight. The operation took almost eight hours to complete. Megan recovering from spine op. Surgery bigger than expected, due to waiting lists. https://t.co/hzIJ3g5hjQ pic.twitter.com/2TA1Iv22HR ""?barry o'kelly (@barryokellyrte) March 24, 2017 Megan's mum Sharon told RT? that the surgery was significantly longer than originally planned because the curvature had increased due to the delay in receiving treatment. ""Megan required an operation on her lower back, as well as her upper back, which they had not expected because the lower curve had increased by 17 degrees since the summer,"" she said. She described the operation as life-changing, saying: ""It is amazing the difference. Her surgeon Pat Kiely, has done a brilliant job. We are all so pleased although Megan is in a lot of pain because it was such a big operation."" Megan, from Limerick, featured in the RT? Investigates - Living on the List documentary. More than 200 children are still on the waiting list for scoliosis treatment, and Ms Halvey Ryan added: ""It is absolutely inhumane that there are other children out there waiting for treatment.""", -3399,2017/3/24,http://www.rte.ie/news/world/2017/0324/862361-putin-le-pen/,Le Pen backs lifting EU economic sanctions imposed on Russia,,"Russian President Vladimir Putin granted an audience to French far-right party leader Marine Le Pen in the Kremlin, bestowing a level of international recognition that has so far eluded her in the countdown to France's presidential election. Opinion polls show Ms Le Pen, who has said she admires Mr Putin, getting through to the second, decisive round of France's presidential election on 7 May but then losing to centrist candidate Emmanuel Macron. Ms Le Pen backs the lifting of the European Union's economic sanctions imposed on Russia over its role in the Ukraine conflict - a stance she reiterated today. ""We attach great importance to our relations with France, but at the same time we try to maintain equal relations both with the current authorities and with representatives of the opposition,"" Mr Putin told the French presidential candidate-at their meeting. ""We do not want to influence events in any way, but we reserve the right to talk to representatives of all the country's political forces, just as our partners in Europe and the United States do."" Mr Putin added that Ms Le Pen represented a range of political forces that was gaining momentum. Her meeting with the Russian president is likely to go down well with her core supporters in France, many of whom admire the Mr Putin's-conservative stance on social and moral issues. Other French voters, however, may be put off by her association with a leader widely seen in the west as autocratic. The meeting also showed that the Kremlin is not shying away from actions that could influence foreign elections, even after the storm over US intelligence agencies' allegations that Russia tried to interfere in the US presidential election to help Donald Trump win the White House. Russia has denied trying to influence the US vote, and has also dismissed allegations that Kremlin-funded media outlets are spreading ""fake news"" in an attempt to interfere in the French presidential race. Mr Putin would benefit from getting the sanctions lifted, especially as he is expected to seek a fourth term in office next year. They are curbing Russia's recovery from an economic slowdown caused by low oil prices. Ms Le Pen's party took a �1 million loan from a Moscow-based bank in 2014 and is actively seeking new sources of funding. Speaking to reporters in a Moscow hotel after her meeting with Mr Putin, Ms Le Pen denied that she had discussed financial aid for her party, echoing an earlier denial from the Kremlin. Ms Le Pen said the discussion had focused on what she said were shared Russian and French interests in the fight against Islamist terrorism. ""A new world has emerged in these past years. It's the world of Vladimir Putin, it's the world of Donald Trump in the United States, it's the world of Mr (Narendra) Modi in India, and I think that probably I am the one who shares with these great nations a vision of cooperation and not a vision of submission,"" she said. Asked what her first decision on Russia would be if she were elected French president, she said it would be to think about lifting sanctions, provided Moscow lifted its own restrictions on imports of some European food. ""I have always opposed the sanctions which I find are both deeply unjust and counter-productive,"" she said. The publicly-declared purpose of Ms Le Pen's visit was to meet members of the Russian parliament. Reporters were told she would give a news conference in parliament alongside the chairman of the parliamentary foreign affairs committee. When she did not show up, the speaker of the lower house of parliament, Vyacheslav Volodin, said she had left to visit an exhibition of French Gothic art in the Kremlin. Soon after, Russian state television broadcast footage of Ms-Le Pen sitting down with Mr Putin in the Kremlin, at a small table laid out with fine china cups and plates of biscuits. ""We felt they understood each other, they were on the same wave length,"" Ludovic de Danne, a Le Pen aide who took part in the meeting, told Reuters in a telephone interview. He said Mr Putin had wished her good luck in the election.", -3400,2017/3/24,http://www.rte.ie/news/2017/0324/862170-iarnrod-eireann/,Bus ?ireann dispute affects some rail services,,"Iarnr��d ?ireann has-warned of significant disruption-with many Intercity services affected by the Bus ?ireann dispute. While Iarnr��d ?ireann is not a party to the dispute, disruption has arisen from picketing associated with the dispute. There are no services operating on the following routes: Limerick to Limerick Junction (includes Limerick to Dublin direct services) Limerick to Galway Waterford to Limerick Junction Limerick to Ballybrophy via Nenagh A limited service is operating on other routes: Dublin/Sligo: reduced timetable, with services operating between Dublin and Longford/Boyle only. Please note 5.15pm and 6.05pm Connolly to Longford commuter services will operate. Dublin/Waterford: reduced timetable, with services operating between Dublin and Kilkenny only. Dublin/Galway: reduced timetable will operate between Dublin and Galway. Dublin/Rosslare: reduced timetable will operate between Dublin and Wexford/Rosslare Europort. -Evening commuters should note the only service scheduled to operate at this time is 5.36pm-Connolly to Wexford. Tralee to Mallow/Cork/Dublin: reduced timetable will operate Iarnr��d ?ireann says-full services are operating on the-DART,-Dublin Commuter and Cork Commuter, and on the-Cork/Dublin, Westport/Dublin and-Belfast/Dublin routes. Some special services after the Republic of Ireland v Wales World Cup Qualifier are also affected. The 11.15pm-Dublin Heuston to Cork and 11.25pm Dublin Heuston to Galway will operate. - However, connections at Limerick Junction for Limerick from the 11.15pm-Heuston to Cork will not operate. Iarnr��d ?ireann has confirmed-there will be special late night trains to bring fans back from the Ireland v Wales World Cup Qualifier at the Aviva Stadium-to Cork and Galway. However, doubt remains over the Limerick service. Around 30 Iarnr��d ?ireann workers gathered outside the gates of Kent Station in Cork early this morning in support of their colleagues in Bus ?ireann. As a result there were no trains to and from Cork. However, the drivers and rail workers met with NBRU President and Cork bus driver-John Moloney at 9am, after-which they agreed to resume work at 11am.- Pickets have also been placed on Limerick rail station by Bus ?ireann workers, causing significant disruption to bus and rail services. Rail workers did not pass the picket, resulting in all early morning train serviced being cancelled. The 11.05am Galway to Heuston train left Galway's Ceannt Station this morning after earlier services were cancelled due to rail workers refusing to pass the Bus ?ireann picket line. The picket-is manned by about 35 Bus ?ireann drivers at the station, which is shared by Bus ?ireann and Iarnr��d ?ireann. However, some trains are running between Galway and Dublin as they are staffed by rail workers from Athlone or Heuston, which are not sites of Bus ?ireann pickets. Private bus services are heavily booked as a result of the strike and passengers are asked to book in advance.- Speaking on RT?'s Morning Ireland, Iarnr��d ?ireann spokesperson Barry Kenny said-rail services have been affected far more than anticipated.- He said: ""We are running what we can run. The fact of the matter is that in a number of locations there are pickets that our employees have decided not to pass. This does differ, I suppose, we had hoped to have a far more extensive service today given that in previous occasions when there had been Bus ?ireann disputes they had not been affecting rail services, but that has changed today and we will be reviewing that as well.""- He admitted that the disruption to rail services was extremely frustrating for passengers . He said the focus for now was on the morning peak hours and that they will update rail passengers throughout the day. He also said people will be refunded for train services that have been cancelled.- NBRU General Secretary Dermot O'Leary has said-NBRU members that work on trains should be at work as Iarnr��d ?ireann is not-involved in the dispute. He said passing pickets is a moral dilemma for members who must make the decision themselves but his view is they should be at work and not stadning on picket lines.", -3401,2017/3/24,http://www.rte.ie/news/2017/0324/862167-helicoptersearch/,Black box found at site of Rescue 116 helicopter crash,,"The black box recorder from Coast Guard Rescue Helicopter 116 has been recovered, according to the Air Accident Investigation Unit. Naval Service divers have been-examining-the wreckage of Rescue 116 that crashed off the Mayo coast last week.- Dives to the site commenced this morning and continued throughout the afternoon when the black box was found. The recorder was taken on board the Commissioners of Irish Lights' vessel, Granuaile. It will be taken to Dublin before being brought to the UK.-The AAIU said the recorder appears to be in very good condition with no external damage visible. However it will have to be examined in the UK before it is clear if it has sustained any damage or not. The black box contains both cockpit voice recordings and data on the history of the flight. Conditions at sea were-favourable today and search co-ordinators said-they were-focused on a key area of the wreckage. After detailed preparations over recent days, teams of specialist Naval Service divers travelled to the site just off Blackrock Island at first light and-spent the day carrying out their task. Operating at depths of 40 metres, they worked-in pairs and dived-for up to ten minutes at a time. The search will resume in the morning. The operation is being coordinated by L? Samuel Beckett, which is located close to the wreckage at Blackrock Island. It has support from local boats and-the Granuaile. The wreckage is located in waters 60m-off the western face of Blackrock. A three-mile exclusion zone is in place around the dive site and only vessels involved in the search are permitted to travel close to the area in question. It is hoped that the three missing crew members - Captain Mark Duffy, Winch Operator Paul Ormsby and Winchman Ciar��n Smith - may still be in the wreckage. Detailed mapping of the undersea conditions has been carried out in recent days and images gathered by specialist cameras have been reviewed by the multiple agencies involved in the operation. Specialist equipment was loaded onto boats at Blacksod pier yesterday evening in anticipation of today's-favourable sea conditions. All the agencies involved are stressing that safety concerns will take precedence throughout the operation. At a briefing at Blacksod Lighthouse last night, Superintendent Tony Healy said the hope was that the three crew were in or near the wreckage. He said the conditions for underwater exploration of the helicopter were the best that search teams had experienced so far. Chief Investigator with the Air Accident Investigation Unit Jurgen Whyte said a lot of information had been gathered and that everything possible was being done to assist the dive process. He said he was confident that dive conditions would be good for a number of days. Mr Whyte said the priority was to recover the three crew members.", -3402,2017/3/24,http://www.rte.ie/news/ireland/2017/0324/862303-homelessness/,New record high numbers in emergency accommodation,,"The-number of people-in emergency accommodation reached-a new record high of 7,421 last month, official figures show. The figures, which have been released this afternoon, are an-increase from 7,167 in January and from 7,148 in December. Breaking down the figures, the-number of homeless adults increased from-4,760 in January to 4,875 last month. The number of children experiencing homelessness has risen from 2,407 to 2,546. The number of homeless families has also risen from 1,172 in January to 1,239 last month. The overall number of homeless people increased by 254 individuals - or 3.5% - between January and February. Single, child & family homelessness all up in Feb. 26% increase in family homelessness in 12 months. @simoncoveney plan is not working. pic.twitter.com/GWBHplLyl2 ""?Eoin O Broin (@EOBroin) March 24, 2017 Of the 1,239-families counted, 85% (1,055) were in Dublin's four local authority areas. Minister for Housing Simon Coveney has described the homelessness figures for February as ""disappointing"". ""February's figures are a stark reminder of the difficulties we face in dealing with the homelessness problem."" There are now 2,546 children homeless across the State, living in emergency accommodation - hotels, hostels, B&Bs. -more on @rtenews ""?Conor Hunt (@conorfhunt) March 24, 2017 He continued: ""While we are finding more homes for people who find themselves homeless, we remain fully focused on increasing supply which is at the core of our housing challenges. ""There are no simple solutions here but I will continue to work with my colleagues in Government to address the major challenge that homelessness presents."" Focus Ireland has said that the homeless crisis in Ireland ""continues to deepen as huge numbers of families are still losing their homes"".-", -3403,2017/3/24,http://www.rte.ie/news/politics/2017/0324/862347-deenihan/,Fine Gael's Jimmy Deenihan bowing out of politics,,"Former Fine Gael TD Jimmy Deenihan is bowing out of politics and will not run in the next election. Mr Deenihan served as a TD both for Kerry North and for Kerry North-West Limerick since his election to the D��il in 1987. The 64-year-old had previously won a number of All Ireland titles as a member of Mick O'Dwyer's all-conquering Kerry football team of the late 1970s and early 1980s. ""I will not be running in the next general election, but I will continue to work for the people of Kerry for the rest of my life,"" he said on Radio Kerry this morning. Mr Deenihan surprisingly lost his seat in last year's general election.", -3404,2017/3/24,http://abcnews.go.com/Politics/ryan-reverses-continue-obamacare-repeal-replace-effort/story?id=46408759,"Ryan reverses course, will continue Obamacare repeal and replace effort",,"In the wake of the defeat of the GOP overhaul of Affordable Care Act, House Speaker Paul Ryan said Friday that Obamacare was the ""law of the land ... for the foreseeable future"" and that health care would be set aside as Republicans work toward tax reform this fall. But in a reversal, Ryan ""?who called his legislation, the American Health Care Act, ""fundamentally flawed"" ""?told donors Monday that the effort to roll back the ACA is not over yet. ""We are going to keep getting at this thing,"" he said, according to a recording obtained by The Washington Post. ""We're not going to just all of a sudden abandon health care and move on to the rest. We are going to move on with rest of our agenda, keep that on track, while we work the health care problem."" ""We still have a promise to keep, so the speaker wants members to continue discussing this issue until we can find a path ahead,"" Doug Andres, a spokesman for Ryan, said in an email, confirming the intent behind the quotes reported by the Post. The Post also reported that Ryan suggested a plan was being developed in time to brief donors at a retreat scheduled for Thursday and Friday in Florida.", -3405,2017/3/24,http://abcnews.go.com/Politics/analysis-defeat-paths-ahead-president-trump/story?id=46404537,"ANALYSIS: After defeat, 3 paths ahead for President Trump",,"It's a new world for President Trump. Friday's health care failure was a lesson in the difficulty of governing for the political rookie president. The dealmaker was unable to dictate an outcome, after an embarrassing episode that showed the president is neither loved nor feared inside his own party. What is next for the president? There are three possible routes for Trump and his White House, but they all mean building coalitions in order to get partners to move forward on the big-ticket agenda Trump has promised. Trump could try to work around -- and despite -- Congress to a greater extent. That would mean that he focus on executive orders and keep pushing with the hope that Congress would be persuaded by any successes to start working with him. He could continue those White House visits to woo and cajole. For now, the president seems more inclined to tangle with new political enemies than to avoid them. Over the weekend, he attacked the House Freedom Caucus for dealing a huge blow to his health care legislation with a tweet: ""democrats are smiling in D.C. that the Freedom Caucus, with the help of Club For Growth and Heritage, have saved Planned Parenthood & Ocare!""?He may have wanted to try to blame Democrats Friday but came around to who actually took health care down by Sunday. Any tensions with House Speaker Paul Ryan, R-Wis., could also push Trump to work solo. While the White House maintains that the Trump-Ryan partnership is more solid than ever, whispers are growing of suspicions between this particular odd couple. As the health care debate intensified, Trump entertained the Freedom Caucus, bringing members to the White House over and over again. It didn""t work but what became obvious is that a few dozen hardline conservative House members effectively control the agenda, by denying leadership a governing majority. On ABC News""?""This Week""?Sunday, the caucus""?leader, Rep. Mark Meadows, R-N.C., said he's prepared to have ""A lot of flexibility""?in tackling tax reform. He also noted that the conservative and moderate wings of the Republican Party are going to have to come together if they want to get anything done. ""It's all hands on deck with regards to Obamacare, tax reform, the border wall,"" Meadows said. The president could make his own way forward by scrambling traditional political coalitions. He could seek out moderates and cross party lines, or work with more precision on individual issues where majorities exist but in unusual ways. It's a strategy that seems impossible during these gridlocked times, and Trump's words and actions to date have left him with few Democrats as willing partners. Still, issues like infrastructure, trade and even parts of health care offer opportunities. It would be a Trumpian path, something he may be uniquely positioned to pursue. But that did not seem likely Friday when he attacked Democrats for sinking the health care bill, a disingenuous charge, given how it was crafted to get around Democratic opposition, not entice cooperation. But the Trump administration is starting to signal a willingness to work with Democrats. ""It's time for the party to start governing,""?White House Chief of Staff Reince Priebus said this weekend. ""I think it's time for our folks to come together, and I also think it's time to potentially get a few moderate Democrats on board as well,""?he told ""Fox News Sunday.""?All three are possible paths forward for Trump but it's unclear which one he might choose. He's not someone who's easy to predict, which is unlikely to change just because of a single defeat, no matter how stunning. ", -3406,2017/3/24,http://abcnews.go.com/Politics/note-aftermath-failed-health-care-push/story?id=46396572,The Note: The aftermath of the failed health care push,,"Trump's first 100 day's with ABC's RICK KLEIN and SHUSHANNAH WALSHE Day No. 67 THE BIG STORY: President Trump is coming off of a week where he lost both credibility and control. He also lost something that is harder to define and may be harder to restore: the mystique of power. Since November, even Trump's harshest critics had to recognize his political talents, which show in two ways: The seemingly unbreakable connection and communications link he has with a loyal block of voters, and the deal-making skills that grew his brand all the way to the presidency. But the Republicans who opposed the health care bill showed they neither fear nor love the president. That turns the question to the consequences: In the Trump playbook, look for a power move ""?something that goes beyond tweets and executive orders. If we'r ever going to be tired of all the winning, the Trump White House needs some victories as attention turns to tax reform and other big agenda items. THE SLEEPER STORY: After a civil war comes reconstruction. But where does Trump go to build coalitions again? In the aftermath of Friday's devastating fail, the president has attacked Democrats, conservatives in the House Freedom Caucus, and ""?obliquely and oddly, through a recommendation to watch a certain news show ""?House Speaker Paul Ryan. Even if the president's tweet to watch Fox News was a coincidence and not meant to hit Ryan, Breitbart and Twitter are taking care of that piece of the blame for him. Trump needs some dance partners moving forward, and there are signals that the same people who just beat him on health care are wary of teaming up with him again. The Freedom Caucus already lost one of its members in the aftermath. And the group's chairman, Rep. Mark Meadows, said on ABC's ""This Week""?that he's prepared to have ""a lot of flexibility""?in tackling tax reform. The president can find willing partners out there, if he looks and resists the urge to tweet at them. THE SHINY STORY: Here comes Jared to save the day. The announcement Monday that Jared Kushner will head up the new White House Office of American Innovation gives Trump's son-in-law a broad mission that includes smashing through bureaucracies and fulfilling campaign promises on everything from veterans""?care to opioid abuse. Maybe this task force will surprise. But it's not the first time the Trump White House - barely two months in - has trotted out a new initiative designed to both streamline government and keep the president himself on track. It's also in keeping with deploying Kushner as a signal to Wall Street allies of serious people in control. It could be that the Trump White House needs an internal SWAT team to keep it moving in the right direction. It could also be that this new team draws friendly fire. TLDR: The White House is turning the page by moving on to tax reform and other big promises, but how does the president act now that his ability to make deals has been undermined? PHOTO OF THE DAY: Thousands of demonstrators took to the streets throughout Russia on Sunday in a wave of anti-corruption protests, the largest in years. Russian opposition leader Alexei Navalny as well as hundreds of others were detained, and this image shows one of those protesters being arrested: (Credit: Alexander Utkin/AFP/Getty Images) NOTABLES --TRUMP SHIFTS BLAME TO CONSERVATIVES ON FAILURE OF HEALTH CARE BILL: Two days after pointing his finger at Democrats for the failure of the GOP health care proposal, President Trump shifted the blame to conservative Republicans and said he is open to working with Democrats on health care reform. Trump on Twitter called out the House Freedom Caucus, saying Democrats are ""smiling""?because the group of conservative lawmakers' opposition to the Republican health care proposal ""saved""?Obamacare and Planned Parenthood, notes ABC's KATHERINE FAULDERS. http://abcn.ws/2ojB1s0 --'NO CONVERSATION' HAPPENING ON REPLACING SPEAKER PAUL RYAN: HOUSE FREEDOM CAUCUS CHAIR: The chairman of the conservative House Freedom Caucus said there is no talk of replacing House Speaker Paul Ryan after the Republicans' proposal to repeal and replace Obamacare was killed because it failed to garner enough GOP support, ABC's QUINN SCANLAN and NICKI ROSSOLL report. On Saturday -- hours after Donald Trump tweeted to his followers, ""Watch @JudgeJeanine on @FoxNews tonight at 9:00 P.M.""?""?Jeanine Pirro opened her show with a call for House Speaker Paul Ryan to step down. http://abcn.ws/2o6hFaJ SPEED READ with ABC's ADAM KELSEY ROGER STONE: ""I""�VE HAD NO CONTACTS OR COLLUSION""?WITH RUSSIANS. Political strategist Roger Stone, longtime friend and adviser to President Trump, doubled down on his defense against allegations that he or others in the Trump campaign may have colluded with Russia in its interference in the 2016 U.S. presidential election. ""I have had no contacts or collusion with the Russians,""?Stone told ABC's GEORGE STEPHANOPOULOS on ""This Week""?on Sunday. ""there is no collusion, none -- at least none that I know about, in Donald Trump's campaign for president.""?ABC's ALI DUKAKIS has more: http://abcn.ws/2npFGLw SCHUMER: TRUMP SHOWED 'BASIC LACK OF COMPETENCE' ON HEALTH CARE BILL. Senate Minority Leader Chuck Schumer criticized President Donald Trump after the GOP-backed health care bill failed to garner enough support for a vote on the House floor Friday, saying the president showed two unhelpful traits during negotiations, ABC's NICKI ROSSOLL writes. ""The first is basic lack of competence,"" Schumer told ABC's GEORGE STEPHANOPOULOS during an exclusive interview on ""This Week""?Sunday. ""You cannot run the presidency like you run a real estate deal. You can't tweet your way through it."" http://abcn.ws/2npRrBL TRUMP WILL END OBAMA'S SIGNATURE CLEAN POWER PLAN THIS WEEK: EPA CHIEF. Environmental Protection Agency chief Scott Pruitt slammed the 2015 Paris accord to combat climate change as ""a bad deal."" Pruitt also revealed in an interview with ABC's GEORGE STEPHANOPOULOS on Sunday that President Trump will this week sign a new executive order that will eliminate a signature Obama-era policy for combating climate change, the Clean Power Plan. ABC's NICKI ROSSOLL has more: http://abcn.ws/2o6e1gJ TRUMP AIDE IN CHARGE OF SURROGATE OPERATIONS LEAVING POST. Boris Epshteyn, the special assistant to the president in charge of surrogate operations is leaving his post, a senior Trump administration official told ABC News Saturday, ABC's KATHERINE FAULDERS and DAVID CAPLAN write. He may assume a different role in the White House, though. ""We are exploring opportunities within the administration,"" the official said. http://abcn.ws/2nSBrcr WHAT WE'RE WATCHING 'TRUMP TROUBADOUR' LOSES TRUST IN PRESIDENT OVER HEALTH CARE: 'I FEEL BETRAYED.' Once-staunch Donald Trump supporter Kraig Moss followed the Republican to more than 45 campaign rallies across the country and became known as the ""Trump troubadour"" for his guitar-playing at the candidate's events. But now Moss, an upstate New York resident whose son died of a heroin overdose, says President Trump's push for the GOP health care bill caused him to lose trust. Moss said he was particularly upset by the bill's weakening requirements for insurers to cover mental health and substance abuse treatment. ""I feel betrayed,"" Moss told ABC News. ""I feel like I've been lied to.""?ABC's FREDA KAHEN-KASHI has more. http://abcn.ws/2n540iX IN THE NOTE"" INBOX NEW VIDEO: ""�JUSTICE REFORM, STATES LEAD.""?The bipartisan organization U.S. Justice Action Network, which works to reform the justice system at the state and federal level, is releasing a new video highlighting state efforts to move justice reform legislation forward. The new video titled ""Justice Reform, States Lead"" highlights five of the 27 governors who have prioritized reforming their state's justice system, including New York Gov. Andrew Cuomo and Illinois Gov. Bruce Rauner among others. WATCH: http://bit.ly/2o9bGBN WHO"" TWEETING? @maggieNYT: NEW - senate Intel committee wants to question Kushner about Russia, Becker/Rosenberg/me https://mobile.nytimes.com/2017/03/27/us/politics/senate-jared-kushner-russia.html?referer= @KFaulders: Ryan spox @AshLeeStrong says @POTUS & Speaker Ryan spoke again today. ""The president was clear his tweet had nothing to do with the speaker"" @ryanstruyk: No mention of health care in latest Trump fundraising email of week's greatest hits. Though it does say: ""Trump is keeping his promises..."" @AP_Politics: Ivanka Trump accepts Merkel invitation to attend women's economic summit in Berlin, by @Catherine_Lucey https://apnews.com/e88731cd9ef446e2bbbe7e8d3ebf3db9/Ivanka-Trump-to-attend-women's-economic-summit-in-Berlin?utm_campaign=SocialFlow&utm_source=Twitter&utm_medium=AP_Politics @JoeNBC: ""Reagan had one key quality that you don""�t have: He knew what he didn""�t know."" ~@maureendowd to @realDonaldTrump https://mobile.nytimes.com/2017/03/25/opinion/sunday/donald-this-i-will-tell-you.html?smid=tw-nytimes&smtyp=cur&referer= @NYTmag: Our next cover story is up early: Inside Trump's efforts to get his agenda through Congress. By @draperrobert http://nyti.ms/2nTbSrD", -3407,2017/3/24,http://abcnews.go.com/Politics/ag-jeff-sessions-takes-aim-sanctuary-cities-doj/story?id=46404503,"AG Jeff Sessions takes aim at sanctuary cities, says DOJ will cut funding",,"Attorney General Jeff Sessions made a surprise appearance at today's White House press briefing, slamming cities that are working to ignore the federal law to turn over people who are living in the country illegally. Sessions said he ""strongly urges"" these cities, known as sanctuary cities, to ""consider carefully"" the damage they are doing to national security and public safety by refusing to enforce immigration laws. ""Unfortunately some states and cities have adopted policies designed to frustrate the enforcement of immigration laws,"" including refusing to detain nonfelons on federal detainer requests, Sessions said. Sessions noted a Department of Homeland Security report out last week showing more than 200 criminal suspects released in one week despite Immigration and Customs Enforcement detainers. ""Such policies cannot continue. They make our nation less safe by putting dangerous criminals back on the streets,"" he added. ""We intend to use all the lawful authorities we have to make sure our state and local officials ""?are in sync with the federal government,"" Sessions said. ""Moreover, the Department of Justice will require that jurisdictions seeking or applying for Department of Justice grants to certify compliance with [relevant laws] as a condition of receiving those awards,"" he added. In the current fiscal year, Department of Justice's Office of Justice Programs is slated to award $4.1 billion in grants. ""I strongly urge our nation's states and cities and counties to consider carefully the harm they are doing to their citizens by refusing to enforce our immigration laws and to rethink these policies. Such policies make their cities and states less safe ""?public safety as well as national security are at stake ""?and put them at risk of losing federal dollars,"" he said. He brought up the death of Kate Steinle, a woman who was allegedly shot and killed by an unauthorized immigrant on a San Francisco pier last summer. Donald Trump repeatedly cited her death during the presidential campaign when he called for an end to sanctuary cities. ""We have simply got to end this policy,"" Sessions said. The Obama administration said that cities that don't honor the detainer laws put forth by ICE could lose federal funds, so Sessions is not the first to make this threat. ", -3408,2017/3/24,http://abcnews.go.com/International/russian-opposition-leader-appears-court-massive-protests/story?id=46396373,Russian opposition leader gets jail sentence after mass protests,,"Russian opposition leader Alexei Navalny, who has challenged President Vladimir Putin's rule on an anti-corruption platform, appeared in a Moscow court today as the Kremlin spoke out for the first time on the mass anti-government protests Sunday that rocked the country, saying the demonstrations were based on ""provocations and lies."" Navalny was fined 20,000 rubles (roughly $350) and given a 15-day jail sentence for violating public meeting rules and disobeying police. Navalny was one of hundreds of people arrested in a crackdown after thousands protested in the nation's capital and in other cities across Russia. Between 7,000 and 30,000 people demonstrated in Moscow, and up to 10,000 in Saint Petersburg in what were Russia's largest anti-government protests in several years. Independent radio station Ekho Moskvy estimated that unsanctioned rallies in 82 cities and towns assembled 60,000 opposition supporters, which would make the anti-Kremlin demonstrations the largest since 2008. Navalny tweeted out a picture of himself from the court where he was being held prior to his hearings. ""Hello everyone from Tversky Court. The time will come when we will have them on trial (but honestly),"" Navalny wrote. After staying mum about the protests and arrests Sunday, the Kremlin unleashed harsh words about the demonstrations today. ""In essence what we saw in several places, especially in Moscow ""?it was provocation and lies,"" Kremlin spokesman Dmitry Peskov said. Peskov seemed to point a finger at organizers of the protests, saying that those ""who explained in a highly subtle and academic language that it was a lawful action and didn""t contradict the law, they were speaking a pure lie.""?He also suggested that some teenage protesters had been paid to be there, saying they had received ""Certain rewards""? Peskov said the Kremlin views Russian citizens""?right to express their opinion in pre-approved protests ""with respect,""?but that Sunday's demonstrations were illegal. ""We regret that our active citizens, many probably out of ignorance, didn""t want to use the alternative venues [offered by authorities for the protests far outside the city center],""?the spokesman said. The march was an ""absolutely forbidden protest action,""?and police behaved correctly in making arrests, he said. About 500 people were arrested in Moscow, according to Interfax, a privately-held, independent Russian news agency. Russian human rights group OVD-info put the number higher, att more than 700 people detained in Moscow plus 34 in St. Petersburg and between 80 and 100 in other cities. The State Department criticized the arrests, calling on Russia to immediately release all the demonstrators who had been detained. ""The United States strongly condemns the detention of hundreds of peaceful protesters throughout Russia on Sunday,"" acting spokesman Mark Toner said. ""Detaining peaceful protesters, human rights observers, and journalists is an affront to core democratic values. We were troubled to hear of the arrest of opposition figure Alexei Navalny upon arrival at the demonstration, as well as the police raids on the anti-corruption organization he heads."" The European Union has also called on Russia to ""release without delay""?what it called peaceful protesters. ABC News' Ben Gittleson, Patrick Reevell, Mike Trew, Anastasia Butler, Dean Schabner, JJ Gallagher, and The Associated Press contributed to this report.", -3409,2017/3/24,http://abcnews.go.com/International/japanese-students-feared-dead-avalanche-injured/story?id=46392197,8 Japanese students feared dead after avalanche,,"An avalanche at a ski resort in Japan hit several high school students on Monday morning, leaving several injured or feared dead, according to ABC News partner NHK. About 66 students and teachers were in Tochigi Prefecture, north of Tokyo, Japan when the avalanche hit, the report said. At least eight high school students were found unresponsive after the incident and 40 others were injured, NHK said. A doctor must examine the unresponsive students, who were found without vital signs, before an official death notice can be issued, according to NHK. The students were reportedly taking mountain climbing lessons in the town of Nasu in Tochigi prefecture at the time, according to the NHK report. ABC News' Joshua Hoyos contributed to this report.", -3410,2017/3/27,http://abcnews.go.com/US/cincinnati-nightclub-shooting-tally-rises-17-injured-dead/story?id=46400234,"Cincinnati nightclub shooting toll rises to 17 injured, 1 dead; no arrests yet",,"The toll from a weekend nightclub shooting in Cincinnati has risen to 17 people injured and one dead, as one more person has come forward and said he was struck by gunfire in the melee, police said Monday. Among the injured, two are in critical condition, and two are in serious condition, police said. The person who died was identified by authorities Sunday as 27-year-old Obryan Spikes. The city's police are continuing to investigate the shooting, which took place early Sunday at the Cameo Nightclub, and have yet to make an arrest, Police Chief Eliot Isaac told city officials during a previously scheduled meeting on law and public safety. Officers believe more than one person was responsible for the gunfire, which sent approximately 200 people fleeing for safety, he said. Investigators ""believe, based on the number of shots, that there were multiple shooters,"" he said. Isaac said today that residents are cooperating with the investigation and that police are confident that they will make arrests in the case. The shooting started around 1:30 a.m., creating chaos, police said Sunday. Images from inside the club give a sense of the violence: Hats and sneakers were left behind by clubgoers scrambling to escape, and couches and chairs were soaked with blood and punctured by bullets. ""The bar was very crowded"" at the time, with hundreds of people inside, police said. ""People were going to have a good time and ended up being shot. That is unacceptable,"" Cincinnati Mayor John Cranley said at a press conference Sunday. Police early on in their investigation ruled out terrorism as being behind the attack, but Cranley said that wasn't relevant. ""To the victims, what difference does it make?"" he asked. ABC News' John Bentley contributed to this report.", -3411,2017/3/27,http://abcnews.go.com/Business/wireStory/stocks-sink-trump-trade-flips-reverse-46399072,Stocks sink as Trump trade flips into reverse,,"Worries that Washington may not be able to help businesses as much as once thought knocked stock indexes down hard early Monday, but they clawed back most of their losses and ended the day mixed. The Standard & Poor's 500 index fell 2.39 points, or 0.1 percent, to 2,341.59 for its seventh drop in the last eight days. The Dow Jones industrial average sank 45.74, or 0.2 percent, to 20,550.98, while the Nasdaq composite index rose 11.64, or 0.2 percent, to 5,840.37. When trading opened for the day, it looked as if losses would be much worse. The S&P 500 sank from the start and was down as much as 0.9 percent. The weakness followed last week's failure by Republicans to repeal the Affordable Care Act, something they've been pledging to do for years, which raised doubts that Washington can push through promises to help businesses. Investors have been anticipating that President Donald Trump and the Republican-led Congress will cut taxes, loosen regulations for companies and institute other corporate-friendly policies. Indexes recovered most of their losses in the afternoon, largely thanks to gains in hospital and other health care stocks. Tax cuts, deregulation and other business-friendly moves could still happen, but even if they don't, the stock market has several pillars of support, said John Manley, chief equity strategist at Wells Fargo Funds Management. ""Trump lucked out when he got elected president, because it was just as earnings were coming out of a two-year slumber,"" he said. ""I think it's been as much, if not more, about earnings as it's been him"" behind the 9.4 percent rise for the S&P 500 since Election Day. An improving economy is translating into bigger profits for businesses, which are set to report their first-quarter results in the coming weeks. The Federal Reserve, meanwhile, is moving very slowly in raising interest rates and is loath to apply the brakes to the economy too quickly. ""Investors have to acknowledge that a 5 percent correction can happen at any time, and the fact that we haven't had a 1 percent down day for so long is extraordinary,"" Manley said. ""But the things that are usually responsible for a major market decline just don't seem to be in place."" The S&P 500 has lost 1 percent in a day just once since mid-October. Interest rates fell Monday. The yield on the 10-year Treasury dropped to 2.37 percent from 2.41 percent late Friday. Just a couple weeks ago, it was above 2.60 percent. Bank stocks have tracked the movements of Treasury yields recently, because higher interest rates would allow them to charge more for loans and reap bigger profits. Investors also expected financial companies to be some of the biggest beneficiaries of easier regulations with a Republican-led White House. Financial stocks in the S&P 500 dropped 0.5 percent, one of the larger losses among the 11 sectors that make up the index. Morgan Stanley fell 88 cents, or 2.1 percent, to $41.58, and Capital One Financial lost $1.67, or 2 percent, to $82.13. Hospital stocks were among the strongest performers. The Republican health care plan would have resulted in 24 million additional uninsured people in a decade, according to a tally by the Congressional Budget Office. And hospitals take care of patients, whether they're insured or not. HCA Holdings jumped $4.45, or 5.2 percent, to $90.49 for the biggest gain in the S&P 500. Universal Health Services rose $4.08, or 3.3 percent, to $125.97. Also demonstrating the swing from nervousness in the morning to a more measured mood in the afternoon was the VIX index, which tracks how much traders are paying to protect against upcoming drops in the S&P 500. Early Monday, the VIX jumped nearly 17 percent and was close to its highest level since mid-November. It calmed through the day and was down by the afternoon. The price of gold rose $7.20 to settle at $1,255.70 an ounce. Silver rose 36 cents to $18.11 per ounce. Copper was close to flat at $2.63 per pound. Benchmark U.S. crude fell 24 cents to settle at $47.73 per barrel. Brent crude, used to price international oils, fell 5 cents to $50.57 a barrel. Natural gas fell 2 cents to $3.05 per 1,000 cubic feet, wholesale gasoline rose a penny to $1.62 per gallon and heating oil was close to flat at $1.50 per gallon. The dollar fell to 110.57 Japanese yen from 110.80 late Friday. The euro rose to $1.0868 from $1.0808, and the British pound rose to $1.2566 from $1.2500. Stocks were weak around the world. In Asia, Japan's Nikkei 225 index dropped 1.4 percent, South Korea's Kospi index lost 0.6 percent and the Hang Seng in Hong Kong fell 0.7 percent. In Europe, the German DAX lost 0.6 percent, the French CAC 40 fell 0.1 percent and the FTSE 100 in London dropped 0.6 percent.", -3412,2017/3/27,http://abcnews.go.com/US/wireStory/oklahoma-officer-critically-hurt-traffic-stop-shooting-46397539,Oklahoma officer critically hurt in traffic-stop shooting,,"A 22-year-old officer and new recruit died Monday morning after a shootout with a man who fled a traffic stop in central Oklahoma, police said. Officer Justin Terney was shot several times late Sunday and died after undergoing surgery overnight, Tecumseh Assistant Police Chief J.R. Kidney said. Terney had only graduated from the police academy last summer, Kidney said. ""He was a very young officer, just getting a start,"" he said. ""He was taken way too soon."" The man who fired on Terney was also shot multiple times and in intensive care Monday morning, Kidney said. Police have not released his identity. Terney pulled over a vehicle about 11:30 p.m. Sunday in Tecumseh, 35 miles southeast of Oklahoma City, according to police. A woman was driving, and Terney called dispatchers to see if a male passenger had any outstanding warrants. At that point, the man ran toward some nearby woods, Kidney said. Terney chased the man on foot and used a stun gun, but that failed to stop him. The man then shot at Terney, who returned fire, he said. Both wounded men were taken to OU Medical Center. Authorities have yet to confirm the identity of the other man involved in the shootout. ""If it is who we think this person is, there's a possibility that he has some warrants,"" Kidney said. ""That could be the reason that he ran."" Police detained the woman who was driving for questioning. The Oklahoma State Bureau of Investigation said it will assist with crime scene investigation, which is common for police shootings. Kidney told The Oklahoman that Terney had a new puppy and had hoped to become a canine officer. Terney grew up in Canadian, in eastern Oklahoma, and was also a volunteer firefighter, Kidney said. Gov. Mary Fallin, who grew up and graduated from high school in Tecumseh, offered her condolences to those affected by Terney's killing. ""It makes us remember and realize how dangerous being in law enforcement is these days,"" Fallin said. ""Especially to have a 22-year-old officer who had just been an officer for a year is certainly very tragic, and our prayers go out with his family and his friends and relatives and certainly with the Tecumseh police force."" Fallin said Terney's body is being returned to his family in eastern Oklahoma. She said she intends to order all flags on state property be flown at half-staff on the day of Terney's funeral, which hasn't been scheduled. ""?Associated Press writer Jill Bleed in Little Rock, Arkansas, contributed to this report.", -3413,2017/3/27,http://abcnews.go.com/US/hero-kansas-triple-shooting-honored-100000/story?id=46392762,"'Hero' in Kansas triple shooting honored with $100,000",,"An organization representing the Indian-American community of Houston honored the man who was shot last month while trying to protect two Indian men who were targeted in a suspected hate crime. India House Houston, a non-profit organization based in Houston, Texas, called Ian Grillot a ""genuine hero"" and awarded him with $100,000 on Saturday for intervening in a deadly shooting at a bar in Kansas. ""It is not always that we get an opportunity to meet a genuine hero ""?a person who risks his life for another, a person who takes a bullet for a complete stranger, a man who reminds us of the promise of America and its greatness. Ian Grillot is such a man,"" the organization said in a video posted on its Facebook page on Monday. The organization honored Grillot during its 14th Annual Gala on Saturday. India House Houston said the money would help him to buy a house. Grillot, 24, was shot while trying to stop a gunman who witnesses said yelled ""get out of my country"" before shooting two Indian men at a bar in Olathe, Kansas, last month, killing one. Adam Purinton, a 51-year-old Navy veteran and former air traffic controller, is being charged with murder and attempted murder in the shooting that killed Srinivas Kuchibhotla and wounded Alok Madasani, both 32-year-old employees of the technology company Garmin. Authorities are investigating if the shooting was a hate crime.", -3414,2017/3/27,http://abcnews.go.com/US/severe-storms-bring-golf-ball-sized-hail-texas/story?id=46394387,Severe storms bring golf-ball-size hail to Texas,,"A severe storm brought gigantic hail to parts of Oklahoma and Texas on Sunday. The storm also delivered heavy rain and winds as strong as 65 miles per hour in some areas in the Southern Plains. Several cars with severe hail damage in the Kroger parking lot in Bartonville on FM 407 ?? #wfaaweather pic.twitter.com/gqoLxfa1wB Social media users posted images of shattered car windows and comparisons of the hail next to oranges and golf balls. Reports of the largest hailstones were from Denton, Texas, where residents reported softball-size hail, about 4.25 inches in diameter. In Lewisville! #wfaaweather pic.twitter.com/bsAojjUJZM There were 70 reports of severe weather on Sunday, with about 57 hail reports across the Southern Plains. Everybody after the storm: ""oh no let's go check for hail damage!"" Little bro: ""nah imma work on my short game with these free golf balls"" pic.twitter.com/8HS4PoxB50 The storm is moving east toward the Mississippi River Valley. An area from Mississippi state to Indiana will be at an enhanced risk for severe storms on Monday, with very large hail and damaging winds possible. ABC News' Daniel Manzo contributed to this report.", -3415,2017/3/27,http://abcnews.go.com/Politics/wireStory/netanyahu-welcomes-us-ambassador-jerusalem-46399071,Netanyahu welcomes new US ambassador 'to Jerusalem',,"Israeli leaders hoping President Donald Trump would be a rubber stamp for the Jewish state are hearing plenty of reassuring rhetoric at this week's annual gathering for the ""unbreakable"" alliance. Missing from the agenda: Concrete steps advancing the Israeli government's top priorities. The Iran nuclear deal, so despised by Israel, is solidly in place. The U.S. Embassy is no closer to moving to Jerusalem from Tel Aviv, as Prime Minister Benjamin Netanyahu's government wants. As it has under past presidents, Washington is still telling Israel to slow settlement construction. It is making for an unusual American Israel Public Affairs Committee conference, one relieved of the strains that marked the last years of President Barack Obama's tenure but also filled with significant uncertainty. Netanyahu on Monday called the U.S.-Israeli relationship ""stronger than ever."" His ambassador to the U.S., Ron Dermer, said a day earlier that for the first time in years or even decades, ""there is no daylight between our two governments."" Vice President Mike Pence said he and Trump ""stand without apology for Israel and we always will."" But it's too early to tell whether Trump will ultimately fulfill Israel's wishes. And there are indications he's reconsidering several stances adopted during the campaign. As a candidate, Trump repeatedly vowed to be the president to finally relocate the embassy to Jerusalem, which Israel considers its capital. As Pence said Sunday, that unequivocal promise has morphed into Trump now ""giving serious consideration to moving the American Embassy."" Though Trump in the campaign said he'd renegotiate or dismantle the Iran nuclear deal, which Israel fiercely opposes, as president he's continuing to implement the accord while examining whether it should stand and hitting Iran with other, non-nuclear sanctions. GOP House Speaker Paul Ryan, rather than urging that the deal be terminated, told AIPAC that the U.S. must ""vigorously enforce"" the deal and ""tighten the screws on Iranian compliance."" Netanyahu has taken some reassurance from the fact that Trump's budget proposal safeguards every penny of Israel's $3.1 billion in U.S. assistance, even as it seeks to slash foreign aid overall. And while the Obama administration stung Israel by allowing a U.N. resolution critical of Israel to pass in Obama's final weeks, new U.N. Ambassador Nikki Haley has pledged not to let that happen again. ""We said, 'The days of Israel-bashing are over,'"" Haley told AIPAC on Monday. The biggest question mark may be Israeli-Palestinian peace efforts. On that matter, Obama and Netanyahu struggled to speak with a unified voice. Trump has shown significant flexibility ""?stunning many last month when he broke with decades of U.S. policy by saying the U.S. could live with a one-state solution, rather than a two-state solution involving Palestinian statehood, if both Israelis and Palestinians agreed. Now Trump and the Israeli leader are both speaking vaguely of a broader Middle East package. Israel's Arab neighbors, who traditionally opposed Israel but have realigned because of common concerns about Iran ""?would serve as guarantors. ""The common dangers faced by Israel and many of our Arab neighbors now offer a rare opportunity to build bridges towards a better future,"" Netanyahu said. Trump's diplomacy in the region appears to be gaining speed. As Netanyahu spoke to the AIPAC conference by video from Jerusalem, White House envoy Jason Greenblatt was headed to Jordan to attend an Arab summit, according to a U.S. official who wasn't authorized to discuss the trip publicly and requested anonymity. Greenblatt, Trump's longtime business attorney, will be an observer at the summit, but plans to use his visit to discuss the type of regional approach to the Israeli-Palestinian conflict Netanyahu and Trump have floated. While in Amman, Greenblatt plans to meet with Palestinian President Mahmoud Abbas and the foreign ministers of Saudi Arabia, Qatar, the United Arab Emirates, Tunisia, Morocco, Jordan and Algeria, the U.S. official said. Another issue central to the conflict ""?settlements ""?remains a work in progress for Israel and Trump. The president's softer campaign tone about Israel's construction of Jewish homes in east Jerusalem and the West Bank has been replaced by Trump's suggesting in his first White House meeting with Netanyahu to ""hold back on settlements for a bit."" At that meeting, Trump and Netanyahu voiced confidence they could work out an understanding, while providing few hints how. A visit by Israeli officials last week ended with a public statement saying Israel would take Trump's concerns ""into consideration"" and pledges by both countries to keep talking. ""?Reach Josh Lederman on Twitter at http://twitter.com/joshledermanAP", -3416,2017/3/27,http://abcnews.go.com/Sports/massachusetts-politician-commends-houston-police-helping-recover-tom/story?id=46398381,Massachusetts politician commends Houston police for helping recover Tom Brady's Super Bowl jersey,,"A Massachusetts politician honored Houston's police department this morning for its role in recovering Tom Brady's stolen jersey from the 2017 Super Bowl. The police department accepted a commendation from Massachusetts state representative Harold Naughton, who chairs the state's public safety and homeland safety committee, while Naughton was on a trip to Texas. Matt Slinkard of the Houston police department praised his officers for taking the lead in the investigation and partnering with other groups including the Texas Rangers, the FBI and NFL after the quarterback's jersey went missing after the New England Patriots' Feb. 5, 2017, Super Bowl victory. Naughton said the ""tremendous job that was done with the entire handling of the Super Bowl ... means a great deal."" ""When that jersey went missing, all of Patriots Nation was concerned,"" Naughton said. ""But we had tremendous faith in the people here, in the law enforcement."" Naughton applauded the police department's ""valiant efforts"" to recovery Brady's stolen jersey. ""We take our politics and our sports pretty seriously up in Massachusetts and in New England,"" he said. ""These things mean a lot to us were very nostalgic about our sports teams."" Houston police chief Art Acevedo said last week that the jersey was found in Mexico. Proud @houstonpolice Major Offenders Divison traced Brady Jersey to Mexico & it has been recovered with help of FBI & Mexican authorities. A former Mexican newspaper director, Mauricio Ortega, is accused of reaching into the star quarterback's bag after the Patriots' win and then sneaking away with the valuable jersey, officials said. The NFL said the jersey was part of a larger haul that was in the possession of a credentialed member of the press. Brady's jersey from the Patriots""?2015 Super Bowl win over the Seattle Seahawks was also recovered, officials said. Brady's 2017 Super Bowl jersey had an estimated value of $500,000, according to a complaint filed with the Houston Police Department in February. Brady, listed as the complainant in the Feb. 6 police report, told reporters the day after the Super Bowl, ""I put it in the bag, and then I came out and it wasn't there anymore. So it's unfortunate because that's a nice piece of memorabilia. So if it shows up on eBay somewhere, someone let me know."" ABC News' Katie Conway and Michael Hayden contributed to this report.", -3417,2017/3/27,http://abcnews.go.com/Politics/house-intel-chair-white-house-grounds-day-briefing/story?id=46401121,House intel chair was on White House grounds day before briefing Trump on alleged surveillance,,"House Intelligence Committee Chair Devin Nunes, R-California, who is leading a congressional investigation into Russian meddling in the 2016 campaign and alleged contacts with the Trump campaign, went to White House grounds last week to meet a source at a secure location to view information regarding possible ""incidental"" surveillance of Trump associates by the U.S. intelligence community, his office confirmed to ABC News. The visit came one day before Nunes made a surprise public announcement about the documents before sharing them with other members of the House Intelligence Committee and then proceeded to the White House to brief President Donald Trump in person. ""Chairman Nunes met with his source at the White House grounds in order to have proximity to a secure location where he could view the information provided by the source. The chairman is extremely concerned by the possible improper unmasking of names of U.S. citizens, and he began looking into this issue even before President Trump tweeted his assertion that Trump Tower had been wiretapped,"" Nunes' spokesperson Jack Langer said in a statement provided to ABC News. The committee Nunes chairs is conducting one of two ongoing congressional investigations into Russia's interference in the 2016 U.S. election and alleged links between Trump's campaign and the Russian government. The committee's ranking member Rep. Adam Schiff, D-California, had no comment. On Friday, Nunes backtracked on some of the claims he said earlier in the week regarding the documents he reviewed. When asked if he could clarify whether Trump or his associates were monitored or simply mentioned in the intelligence reports, Nunes said he won't know until he receives all the documentation. The National Security Agency was supposed to deliver documents to the intelligence committee on Friday, but it's unclear whether that has happened yet. It's also not clear why Nunes chose to go to White House grounds when there is a Sensitive Compartmented Information Facility (SCIF) on Capitol Hill to review sensitive information. Nunes has not disclosed where he got the information from, not even to other members on the House Intelligence Committee. White House press secretary Sean Spicer on Friday would not rule out that it came from the White House.", -3418,2017/3/27,http://abcnews.go.com/Politics/white-house-adviser-jared-kushner-testify-senate-intel/story?id=46397807,White House adviser Jared Kushner to speak with Senate Intelligence Committee,,"A senior administration official confirmed to ABC News that White House senior adviser Jared Kushner has volunteered to speak with the Senate Intelligence Committee as part of its inquiry into ties between Trump associates and Russia. ""Throughout the campaign and transition, Jared Kushner served as the official primary point of contact with foreign governments and officials,"" a senior administration official told ABC News. ""Given this role, he has volunteered to speak with Chairman [Richard] Burr's committee but has not yet received confirmation."" The news was first reported by The New York Times. As ABC News has reported, Kushner and now-former national security adviser Mike Flynn met with Russian Ambassador to the U.S. Sergey Kislyak in Trump Tower in New York in December. ""They generally discussed the relationship, and it made sense to establish a line of communication,"" White House spokeswoman Hope Hicks said in a statement earlier this month about the meeting. ""Jared has had meetings with many other foreign countries and representatives ""?as many as two dozen other foreign countries' leaders and representatives."" ABC News also confirmed that a meeting occurred, at Kislyak's request, between Kushner and Sergey N. Gorkov, the chief of Vnesheconombank, one of the Russian businesses affected by sanctions imposed by the Obama administration in the wake of Russian President Vladimir Putin's illegal annexation of Crimea.", -3419,2017/3/27,http://www.cnn.com/2017/03/27/politics/house-intelligence-devin-nunes/index.html,Nunes: Intel at White House came from Executive Branch,(CNN)House Intelligence Chairman Devin Nunes defended himself Monday from a wave of criticism following the revelation he visited White House grounds last week to access information he said showed President Donald Trump and his associates may have had their communications collected by US intelligence during surveillance.,"Nunes said on CNN's ""The Situation Room with Wolf Blitzer"" that he had to view the classified documents in an Executive Branch location because they intelligence community had not yet provided them to Congress. ""The Congress has not been given this information, these documents, and that's the problem,"" Nunes said. ""This is Executive Branch."" RELATED: Who cleared Devin Nunes into the White House? He said his sources on the matter, which he stressed was unrelated to Russia, could not deliver the documents to his committee, so he had to go to them. ""There was no way I could view that because they couldn't get it to the House Intelligence Committee,"" Nunes said.", -3420,2017/3/27,http://www.cnn.com/2017/03/27/politics/congress-russia-investigations/index.html,Kushner offers to meet with Senate Intel Committee over Russia meetings,"(CNN)President Donald Trump's son-in-law, Jared Kushner, has volunteered to speak to the Senate Intelligence Committee as part of its investigation into Russian meddling in the US election, a White House spokesman said Monday, kicking off a critical week for Congress on the issue.","""Throughout the campaign and transition, Jared Kushner served as the official primary point of contact with foreign governments and officials,"" the White House spokesman told CNN in a statement. ""Given this role, he has volunteered to speak with Chairman Burr's Committee, but has not yet received confirmation."" The Senate committee sought Kushner, who is a key adviser to the President, as part of its investigation, two sources told CNN Monday. The timing is still being determined, a Senate aide said. The New York Times first reported the Senate committee's request, because of his role in arranging meetings between campaign advisers and Russian ambassador to the US Sergey Kislyak, along with other foreign leaders. Lawmakers investigating Russia's role head into the week with the prospect that the House investigation could struggle to stay away from drama and a continued push by Trump's supporters to shift the focus from Russia to leaks in the intelligence community. House investigators set the stage last week with a blockbuster revelation last Monday that FBI Director James Comey is investigating ties between Trump's top campaign aides and Russian officials along with calls from some Democrats Friday for Rep. Devin Nunes of California to step down as chairman of the House Intelligence Committee. Senate investigators, meanwhile, have stuck to a slow and steady pace beginning to interview witnesses in private and scheduling their first public hearing -- set for Thursday -- with none of the high-profile figures that punctuated the House's first public hearing on the matter. Meanwhile, the stakes couldn't be higher for the White House, as Trump comes off a shocking loss on health care and attempts to find his footing for his policy agenda moving forward. Can the House Russia investigation survive? One week ago, the House Intelligence Committee provided the stage for Comey's stunning revelation that federal investigators are conducting a criminal probe into whether top aides for the sitting US president coordinated political attacks with Russian officials in their bid to win the White House last year. That statement set off an immediate firestorm, punctuated in part by Trump tweeting commentary from the official White House account while the hearing was still going on and White House Press Secretary Sean Spicer offering the shocking -- and inaccurate claim that former Trump campaign chairman Paul Manafort played a ""very limited role"" last year. And Comey also shot down Trump's claims he was wiretapped in Trump Tower by former President Barack Obama. But two days later Nunes effectively revived Trump's wiretap claims by reporting that Trump's own communications may have been picked up in ""incidental"" collections by domestic spies. Nunes then went to Trump directly with his findings -- but never told Democrats on his own committee. Trump said he felt ""somewhat"" vindicated by Nunes' findings. The fiasco set off a firestorm of allegations from top Democrats that Nunes was colluding with the White House -- something Nunes has denied. He also later apologized to Democratic members of the committee. Democrats were up in arms Friday as well after they said Nunes arbitrarily canceled a public hearing scheduled for this Tuesday, and said he would replace it with a closed-door briefing from Comey and NSA Director Mike Rogers. (Nunes said he was only delaying their second public hearing.) But Nunes also canceled the closed briefing with Comey and Rogers, Monday, saying that they would try to reschedule. ""Director Comey and Adm. Rogers could not come in tomorrow as we'd hoped, so the Committee will continue to try to schedule a time when both of them can meet with us in closed session,"" Nunes spokesman Jack Langer said Monday. By the end of the week, a Democratic source on the House Intelligence Committee was convinced that Nunes was trying to ""suicide bomb"" their investigation. Now House investigators head into another week jam-packed with evidence collection and a top-tier private briefing -- and the ongoing tug of war for the focus of the House investigation. ""We can't have a credible investigation if one of the members, indeed the chairman, takes only information he has seen to the White House and doesn't share it with his own committee,"" ranking Democratic member Adam Schiff said Sunday on CBS ""Face the Nation,"" showing the weekend did little cool relations between Nunes and the Democrats on the committee. Can Senate investigators make headway with less drama? While the House Intelligence Committee is pulling apart at the seams, Senate investigators appear to be on solid ground. Two members on that investigation -- Sen. James Lankford, an Oklahoma Republican, and Sen. Angus King, a Maine independent who caucuses with the Democrats -- said as much at a joint news conference last week. One thing that appears to be helping Senate Intelligence Committee has been a low-key approach so far, interviewing witnesses quietly in private. And Senate Intelligence Chairman Richard Burr, a North Carolina Republican, has shied away from the cameras for the past two months, leaving his House counterparts to dominate the airwaves. Some of that will change Thursday, when the Senate Intelligence Committee hosts its first public hearing in its Russia investigation. But instead of two high-profile witnesses at the center of the current investigation (like Comey and Rogers), the two confirmed witnesses are cybersecurity experts who are likely to offer a more circumspect view. All of this does not mean that Senate Republicans and Democrats don't face the same partisan pressures that House investigators are facing. (Indeed, Thursday's hearing will be a good gauge of where most senators are based on the questions they ask.) But the Senate has so far ducked the chaos unearthed in the House last week. The Ranking Democrat on the Senate Committee, Mark Warner of Virginia, told NBC's ""Meet the Press"" Sunday that Nunes' moves as ""fairly mystifying if not outrageous"" and said he's trying to keep the Senate's investigation as open to the public as possible. ""We're going to continue to do as much as we can in public,"" he said, adding later, ""There's a lot more smoke."" Can Nunes and other Trump allies push the focus away from Russia to leaks? It was striking when Nunes reported last Wednesday he had discovered evidence that Trump transition aides -- and possibly Trump himself -- were picked up by domestic spies monitoring foreign agents, but the communications had nothing to do with Russia. But it was a good reminder that the House's investigation is not limited solely to Russian interference in the US elections. Instead Nunes followed through on a promise that he would try to out the sources who provided information to reporters. As the stream of stories about Russian contacts with top Trump aides has grown into a river, the President has consistently focused not on the reporting from inside the intelligence world, but instead on who is providing the information to reporters. RELATED: 9 things we learned from the Comey hearing But efforts by Republican members of the House Intelligence Committee to focus their questions on leaks and ""unmasking"" of US citizens in intelligence reports fell largely flat in last Monday's hearing, paling to the news that the FBI was investigating top campaign aides to the president. In that context, Nunes delayed a second public hearing originally scheduled for Tuesday, which could have easily turned into a repeat of Monday's stunning marathon. Instead, Comey and Rogers will return for a private briefing. Nunes initially promised that Comey and Rogers would meet privately with lawmakers instead, but he canceled that meeting as well. Pushing back is Schiff, who has argued that evidence he has seen of possible collusion between the Trump campaign and Russian officials would be strong enough to present to a grand jury. Enough to get a special commission? Intentionally or not, Nunes gave House Democrats plenty of ammo last week to call on Ryan to create a special commission to investigate Russia's interference in the 2016 elections. And Nunes' own work on the Trump transition team became more of a liability after last week. Nunes only added fuel to the fire Monday, when he told CNN's Jake Tapper that he met with his intel source last Tuesday on White House grounds. Rep. Jim Himes, a Democrat on the House Intelligence Committee, called Nunes' decision to meet there ""loopy"" and ""bizarre."" Top Democrats immediately took advantage of the opening. House Minority Leader Nancy Pelosi of California called Nunes a ""stooge"" for Trump, citing his work on Trump's transition team. And Schiff was given the microphone for the Democrats' weekly rebuttal to Trump, to make the case for an independent commission. ""Congress should establish an independent commission that has the staff, resources and single-minded focus necessary to investigate this matter,"" Schiff said. ""Most important, as the events of this week demonstrate, an independent commission will be able to conduct its work insulated from any political interference."" But a simple fact of life remains: House Democrats are almost powerless in the minority. They cannot force Ryan to do anything, they can only attempt to make it incredibly uncomfortable to continue supporting Nunes. Republicans appeared ready to dismiss the need for an independent commission Sunday. ""I heard my friend from California (Schiff) mention an independent commission,"" House Intelligence Committee member Trey Gowdy, a South Carolina Republican, told CBS ""Face the Nation."" ""Thank goodness we have one. It's called the FBI."" Manafort, Stone, Page and ... Flynn? In quick succession Friday, lawyers for three of the top targets in the FBI's probe �?Paul Manafort, Roger Stone and Carter Page -- said their clients would gladly testify before lawmakers. And Manafort's own communications team has been actively emailing reporters, offering up counterpoints to intelligence sources, noting that it was not strange for US operatives to find work from Russian oligarchs from 2005-2014 during a time in which two US administrations were attempting to open up relations with Putin and Russia. RELATED: Trump associate plays down Twitter contact with Guccifer 2.0 The only person yet to respond, however, is Michael Flynn -- the former National Security Adviser who Trump fired after finding out he misled Vice President Mike Pence about his communications with Russian ambassador to the US Sergey Kislyak. Add to that a string of new reports that Flynn was lobbying on behalf of a Turkish firm for work that may have benefited the Turkish government of Turkish President Tayyip Erdogan, a formal request from investigators on the House Oversight Committee for documents from Flynn and a promise from Democrats on the House Intelligence Committee they would gladly subpoena Flynn if he refuses to testify.", -3421,2017/3/27,http://www.cnn.com/2017/03/27/politics/dick-cheney-russia/index.html,Cheney: Putin made 'a very serious effort' to interfere in US election,"Washington (CNN)Former Vice President Dick Cheney said in a speech Monday that Russia's alleged involvement in the election could be considered ""an act of war.""","""There was a very serious effort made by (Russian President Vladimir) Putin and his government, his organization, to interfere in major ways with our basic, fundamental democratic processes,"" Cheney said at the Economic Times Global Business Summit in New Delhi, India. ""In some quarters that would be considered an act of war."" Cheney, who made clear that he didn't ""speak for anybody else"" before offering his assessment of threats posed by Putin, said to expect Russia to continue these kind of efforts ""going forward"" and accused the Russian President of trying to influence past elections in Baltic countries; he added. however, that Russia had not undermined the legitimacy of President Donald Trump's electoral victory. ""I would not underestimate the weight that we, as Americans, assign to the Russian attempts to interfere with our internal political processes,"" Cheney said. Unlike former President George W. Bush, whom he served as vice president, Cheney said he supported Trump, and was happy to do so. The US intelligence community has publicly accused Russia of being behind several hacks and information dumps, including against the Democratic National Committee and John Podesta, Hillary Clinton's campaign chairman. Russia has denied the charge, which is central to investigations in the US House and Senate as well as the Trump administration. Cheney also warned of Russian military aggression and the potential destabilization Putin could bring. ""He is doing everything he can to find ways to undermine NATO,"" Cheney said. The former vice president fondly recalled the initial post-Cold War period and said times had changed for the worse in some ways. At the beginning of the Bush administration, the US had a closer relationship with Russia, but the relationship deteriorated significantly by the end of Bush and Cheney's time, following the war in Iraq, the growth of NATO since the fall of the Soviet Union and Russia's aggression in Eastern Europe.", -3422,2017/3/27,http://www.cnn.com/2017/03/27/politics/kfile-wikileaks-roger-stone-denial/index.html,WikiLeaks denies Roger Stone's claim of backchannel to the group,"(CNN)WikiLeaks is publicly distancing itself from longtime Donald Trump associate Roger Stone, who for months during the 2016 campaign claimed to have a backchannel communication with the group's founder, Julian Assange.","In an email exchange with CNN's KFile, a representative for the group denied that Stone had any such backchannel, and accused the political operative of making the claims to raise his public profile. ""No communications, no channel,"" the representative, who did not identify him or herself wrote in an email from an address associated with the group. ""Stone is playing slovenly Democrat-aligned journalists like a fiddle, brilliantly inserting himself, as is his habit to raise his profile and market his books. ""He is entirely delighted with inviting scrutiny because of course, he is no-one who knows nothing about anything and was pushed out of the Trump team a long time ago for just this type of opportunism,"" the representative added. WikiLeaks has also taken to Twitter, where it has repeatedly denied any contact with Stone. Stone repeatedly claimed throughout the final months of the campaign that he had backchannel communications with Assange and that he knew of forthcoming document dumps from the group. Stone at times claimed Assange had emails that Clinton aides Huma Abedin and Cheryl Mills deleted. Later, Stone said he only knew of forthcoming document dumps in a ""broad sense."" In an email, Stone told CNN's KFile in response to the charges from WikiLeaks: ""Since I never communicated with WikiLeaks, I guess I must be innocent of charges I knew about the hacking of Podesta's email (speculation and conjecture) and the timing or scope of their subsequent disclosures. So I am clairvoyant or just a good guesser because the limited things I did predict (Oct disclosures) all came true."" WikiLeaks also accused Stone of leaking his own DM's that showed interactions with the hacker Guccifer 2.0. Those DM's appeared in an article on The Smoking Gun, which showed Stone told the hacker he was ""delighted"" that Twitter had reinstated his account. ""It is also clear from the screenshot there of the DM tweet from Guccifer that Stone (or at least someone who has access to his account/computer/smartphone) is the source, once again, feeding the idiots, who go wild with the idea that they're Woodward & Bernstein, and they're taking Stone--and then the President down--when in fact, they're puffing him up, just like he planned.""", -3423,2017/3/27,http://www.cnn.com/2017/03/27/politics/north-korea-missile-engine-test/index.html,"North Korea conducts another missile engine test, US officials say",(CNN)Two US defense officials told CNN Monday that North Korea conducted another ballistic missile engine test Friday.,"The officials said the latest engine trial is the third such test in recent weeks using similar technology. One official said that the initial assessment indicates that the engine technology could possibly be used in an eventual intercontinental ballistic missile. It was not clear whether the engine would require some adjustment to be used in an ICBM, if it can indeed be used that way at all. Possession of an intercontinental ballistic missile could allow North Korea to threaten the continental United States. ICBM technology is considered difficult to develop, with advanced rocket design being a necessary step. The US is also not sure whether North Korea's military is capable of miniaturizing a nuclear warhead so that it could be mounted on a rocket, such as an ICBM, though Pyongyang has claimed this capability and US officials have said that they incorporate that ability in their planning assumptions. In a separate move, the US announced Monday that the US Marines have deployed F-35Bs to South Korea for the first time as part of an exercise that began Friday. ""This is the first time we have operated the F-35B in the Republic of Korea,"" Pentagon spokesman US Navy Capt. Jeff Davis told reporters. The new short takeoff and vertical landing capable stealth strike fighter was only first declared operational in July of 2015. The deployment is part of a training exercise with the South Korean military, an exercise Davis called ""defensive in nature."" ""It goes without saying we are committed to defending the Republic of Korea and Japan against any North Korean aggression,"" Davis added. ", -3424,2017/3/27,http://www.cnn.com/2017/03/27/asia/australia-cyclone-debbie/index.html,"Cyclone Debbie prompts evacuations in Queensland, Australia","(CNN)Thousands of residents in Queensland, in northeastern Australia, have been ordered to leave their homes as severe Tropical Cyclone Debbie approaches, bringing with it powerful winds and heavy rain.","The storm continued to intensify as it approached landfall, becoming a Category 3 cyclone, according to the Joint Typhoon Warning Center. It's expected to make landfall near the town of Ayr late Tuesday morning, according to the Australian Bureau of Meteorology. Cyclone Debbie is forecast to pack gusts of up to 150 mph (240 kph), as well as flash flooding and storm surges as high as four meters. Queensland Premier Annastacia Palaszczuk said that 3,500 residents had already been evacuated. An additional 2,000 people have been ordered to evacuate in the Bowen area, as the cyclone has tracked farther south than originally predicted, she added. Officials predict cyclone will be 'nasty' Some residents are refusing to leave their home, Palaszczuk said, with police going door to door in a final attempt to get people to safety. ""This is going to be a nasty cyclone,"" Palaszczuk told reporters on Monday morning. ""There is no time for complacency ... the window of opportunity to leave is drastically closing,"" she said. ""I am just pleading to everyone, please, listen to authorities. This is about your safety, it is about the safety of your family and the safety of your children."" Cyclone Debbie is the largest storm to hit Queensland since the Category 5 cyclone Yasi in 2011, which ripped homes from their foundations and destroyed farmland. Debbie could end up being as severe as Yasi, Palaszczuk warned. Storm surge John D Ginger, research director at the Cyclone Testing Station at James Cook University, said that coastal buildings were most at risk. ""Houses in low-lying coastal regions ... and [which] are subjected to storm surge will be vulnerable to significant damage,"" he said. The timing of cyclone Debbie's expected landfall coincides with a 12-foot tide in Bowen, one of the highest tides of the year, according to CNN affiliate 7 News. ""If you are in a storm surge zone and you are directed to leave -- you must leave. You cannot shelter from a storm surge,"" Queensland police tweeted Monday. The severe weather has already claimed the life of a 31-year-old woman after dangerous conditions were linked to a fatal car crash Sunday night near the town of Proserpine, Queensland police commissioner Ian Stewart said. Over 1,000 emergency service workers have been sent to the region in preparation, and all schools remain closed until further notice, 7 News reported.", -3425,2017/3/27,http://www.cnn.com/2017/03/27/politics/trump-border-wall-cost-distance/index.html,First on CNN: Border wall ask: $1 billion for 62 miles,Washington (CNN)The Trump administration wants the first $1 billion of border wall funding to cover 62 miles -- including replacing some existing fencing along the southern border.,"The $999 million requested by the White House in its budget supplement for just defense and border security spending would cover just 48 miles of new wall, according to justification documents from the Department of Homeland Security obtained by CNN. The documents describe exactly where the administration hopes to put its first installment of the border wall, as it described its modest 2017 funding ask. The money will fund 14 miles of new border wall in San Diego, 28 miles of new levee wall barriers and six miles of new border wall in the Rio Grande Valley region and 14 miles of replacement fencing in San Diego. The fencing would likely include concrete elements, a source familiar with the plans told CNN. President Donald Trump made building a border along the entire US Southern border a centerpiece of his presidential campaign, and repeatedly pledged Mexico would pay for it, but the initial ask for funds to start building has been modest. The administration requested $1 billion in its supplemental for 2017, and another $2.6 billion for border infrastructure and technology in 2018. Estimates for a full wall along the Southern border have ranged from $12 billion to more than $20 billion. The budget request documents also make clear that the Trump administration is looking to ramp up border security elsewhere, specifying millions to bolster detention facilities and legal support for building the wall. The documents also claim that Trump's executive orders on immigration enforcement are already having an effect, saying arrests are up 50%, charges are up 40% and requests to detain arrested individuals who are deportable are up 80%. When asked, ICE did not have information on what the administration is using as a baseline. Wall or fence? Although on the campaign trail, Trump described building a tall, concrete wall, many career officials within DHS recommended see-through fencing as a more secure option, as CNN previously reported, in part to have visibility on what's happening on the other side. The federal government is soliciting contracting bids for two types of construction according to the bid website -- ""one focused on concrete designs, and one focused on other designs."" W. Ralph Basham, a former Customs and Border Protection commissioner under the Bush administration, said instead of paying for a concrete border wall the government should strategically fund increases in surveillance technology and the construction of additional fencing based upon recommendations made by DHS. ""What does border patrol need to get the job done?"" Basham said. ""A lot of people in this country think that this wall is a good idea, but when you really break it down, it may not be the best way of spending the taxpayer dollar."" Homeland Security Secretary John Kelly testified to Congress in February that some border patrol agents made him aware of their concerns about a solid, concrete wall as opposed to see-through fencing. Experts also said at the same House Homeland Security Committee hearing that a border fence could have advantages over a concrete wall, because agents could more easily see across the border. Kelly said the wall will take time to construct. ""We're not going to be able to build a wall everywhere all at once,"" he said. But he didn't give a clear timeline or cost estimates. ""I'd like to see we'd be well underway in two years,"" Kelly said of the wall. ""This is going to take some time, but there's places I think we can right away get at this problem.""", -3426,2017/3/27,http://www.cnn.com/2017/03/27/asia/hong-kong-escalator-malfunction-mechanics-arrested/index.html,Hong Kong escalator malfunction: 2 mechanics arrested,Hong Kong (CNN)Two mechanics have been arrested after an escalator packed with people in a Hong Kong shopping mall suddenly went into reverse.,"Police say the suspects may have tampered with the machine's parts after the Saturday incident, which sent shoppers tumbling. Eighteen people were injured when the escalator at Mong Kok's Langham Place switched direction from up to down. One man suffered a head injury and was in serious condition, according to CNN affiliate CCTV. The mechanics, aged 22 and 52, are facing charges of obstruction of justice, police said. Both have been released on bail and must report back to police in mid-April. ""The arrest of our mechanics was a surprise,"" Ian Fok, a spokesman for the Otis Elevator Company, which employs the two men, said in a statement. ""While the mechanics were assisting the EMSD, the agency called the police to have the mechanics arrested. Our legal team is working with law enforcement to clarify the situation and intends to defend our mechanics."" The company says it is committed to assisting the investigation.", -3427,2017/3/27,http://www.huffingtonpost.com/2017/03/27/elon-musk-neuralink-new-startup_n_15645702.html,Elon Musk Just Launched A New Startup,It will work on ways to connect the human brain and computers.,"Does Elon Musk ever sleep? Probably. But whatever the amount, it's likely diminished even more now, as the serial entrepreneur ""?already busy with Tesla, SpaceX and Solar City, not to mention-The Boring Company-and Hyperloop ""� has launched another company. His newest venture, called Neuralink, will research how to connect the human brain and computers by way of tiny, implanted electrodes. Max Hodak, a company insider at Neuralink, confirmed the news to the Wall Street Journal Monday, describing the state of the startup as ""embryonic.""?While Neuralink may be brand new, the concept it hopes to capitalize on is not. Musk spoke publicly about the idea at Recode's 2016 Code Conference, describing a need for some sort of ""neural lace""?to enable direct human/computer interfacing. Without that, he theorized, we risk playing second fiddle to artificial intelligence, a technology liable to advance so quickly it ends up viewing humans as little more than domestic pets (in a best-case scenario). ""I don""t love the idea of being a house cat,""?Musk said at the conference. ""I think one of the solutions that seems maybe the best is to add an AI layer ... A third, digital layer above the cortex that could work well and symbiotically with you.""?Researchers have been actively engaged in the topic as well. A 2015 study in the journal Nature Nanotechnology explained in great detail how an electronic mesh could be injected into the brain via a syringe. Possible early applications of the technology could help treat neurodegenerative diseases like Parkinson's, or help patients with spinal cord injuries control artificial limbs. ""We'r trying to blur the distinction between electronic circuits and neural circuits,""?Charles Lieber, a co-author of the Nature Nanotechnology report and a researcher at Harvard told Smithsonian Magazine-at the time. ""We have to walk before we can run, but we think we can really revolutionize our ability to interface with the brain.""?We'r basically your best friend""?with better taste. Learn more", -3428,2017/3/27,http://www.huffingtonpost.com/2017/03/27/mass-produced-artificial-blood_n_15645294.html,"In Breakthrough Discovery, Scientists Mass-Produce Artificial Blood","The technique could one day be used to sustainably create blood, particularly for patients with rare blood types.","Every two seconds, someone in the U.S. needs blood, and every year, 4.5 million Americans would die without life-saving blood transfusions.- Not nearly enough blood is being donated-to meet the growing demand, leading to shortages that prevent lives from being saved.- This is a huge problem for medical providers and patients.-But new research from the University of Bristol and the U.K.'s National Health Service offers hope with a medical breakthrough that could one day revolutionize the blood transfusion process.- While scientists had previously created artificial red blood cells in the lab, this is the first time that they were able to create large quantities of artificial blood in the lab. In the study,-published March 14 in the journal Nature Communications, the team of British scientists outline their technique for producing a potentially unlimited supply of artificial blood. This means of creating blood could be particularly useful for helping people with extremely rare blood types, the study's authors note. At this stage, artificial blood is still a far more costly and cumbersome method of acquiring blood than standard blood donation. But with further work, the new method could one day be used alongside blood donation in hospitals around the world. ""Globally, there is a need for an alternative red cell product,""?Dr. Jan Fraye, a biochemist at the university and one of the study's authors,-said in a university statement released Friday. ""Cultured red blood cells have advantages over donor blood, such as reduced risk of infectious disease transmission.""?The new technique is a clear departure from the existing method of artificially producing blood, which involves the use of specialized stem cells that generate red blood cells. The problem with the existing approach is that each stem cell can only produce up to 50,000 red blood cells, after which point it exhausts itself. To put that in perspective, a single bag of blood contains roughly 1 trillion red blood cells. Using their new method, the team of scientists was able to arrest development of the stem cells at an early stage during which they multiply indefinitely. When the stem cells are in this multiplying stage, the scientists can trigger them to become red blood cells. Scientists refer to this process as making the cells ""immortal,""?BBC Health reported. The technique could one day be used to sustainably create blood for use among patients in need, but widespread use in clinical settings could be some years away.-The Bristol team only produced several bags of blood-""?not nearly enough blood to supply even a single hospital.- But now that we have the ability to produce large quantity of blood cells, the next step is to build the technology to enable mass production of stem cell-based blood. It could be years before this technology is in good enough shape to be used as an alternative to traditional blood donation, particularly for people with rare blood types.- Once that technology is in place, this new method of producing blood could allow hospitals to keep supplies of rare blood on hand to use as needed ""?a development with the potential to save many lives.-It can be incredibly difficult for hospitals to find a match for people with extremely rare blood types, particularly in emergency situations when donations are urgently needed. ""the patients who stand to potentially benefit most are those with complex and life-limiting conditions like sickle cell disease and thalassemia, which can require multiple transfusions of well-matched blood,""?Dr. Dave Anstee, director of the NIHR Blood and Transplant Research Unit at Bristol and NHS, said in the press release. ""the intention is not to replace blood donation but provide specialist treatment for specific patient groups.""?The future of artificial blood and organs may be closer than we thought. The innovation in blood production comes on the heels of another major medical breakthrough. This January, scientists at the Salk Institute in California successfully created a hybrid human-pig embryo for the first time, taking a major step towards lab-grown organs.- Share this slide: We'r basically your best friend""?with better taste. Learn more", -3429,2017/3/27,http://www.huffingtonpost.com/2017/03/27/james-harris-jackson-terrorism_n_15645274.html,White Man Accused Of Fatally Stabbing Black New Yorker Is Charged With Terrorism,"""James Jackson prowled the streets of New York for three days in search of a black person to assassinate,"" the D.A. says.","A murder suspect accused of coming to New York to kill as many black men as he could-will face trial on charges of terrorism, according to New York County-District Attorney Cyrus R. Vance Jr. On Monday, James Harris Jackson, 28, of Baltimore was indicted Monday on one count each of first- and second-degree murder as an act of terrorism for the March 20 stabbing of Timothy Caughman, 66. He previously was charged with second-degree murder as a hate crime and three counts of criminal possession of a weapon. Vance said the hate crime charges were warranted because of the coldblooded way he chose his victim, according to a statement released to the press. ""James Jackson prowled the streets of New York for three days in search of a black person to assassinate in order to launch a campaign of terrorism against our Manhattan community and the values we celebrate. ""Last week, with total presence of mind, he acted on his plan, randomly selecting a beloved New Yorker solely on the basis of his skin color, and stabbing him repeatedly and publicly on a Midtown street corner. James Jackson wanted to kill black men, planned to kill black men, and then did kill a black man.""?Caughman was rummaging through trash looking for bottles and cans when he was fatally stabbed with a 26-inch sword. When Jackson turned himself in, about 24 hours later, police said, he told officers he came-to New York from Baltimore ""Hor the purpose of killing black men.""Jackson reportedly acknowledged the crime to the New York Daily News, saying he wanted to discourage white women from getting romantically involved with black men. ""I didn""t know he was elderly,""?Jackson told the paper. He added that he would have rather killed ""A young thug""?or ""A successful older black man with blonds ... people you see in Midtown. These younger guys that put white girls on the wrong path.""?Vance's statement said a crime like this is a reminder that-New York's ""remarkable diversity""?can""t be taken for granted.-""We must celebrate it, protect it, and refuse to let violence and hate undermine the progress we have made as a city, a state, and a nation.""?Jackson's lawyer, Sanford Talkin, declined to comment Monday, according to Newsday. His next court date is scheduled for April 13. Stay plugged in with the stories on black life and culture that matter. Learn more", -3430,2017/3/27,http://www.huffingtonpost.com/2017/03/27/alyssa-milano-wants-to-drive-you-to-the-polls-in-georgia_n_15645266.html,Alyssa Milano Wants To Drive You To The Polls In Georgia,"No, seriously.","The actress Alyssa Milano is doing get-out-the-vote work for the Democrat fighting to take the suburban Atlanta congressional seat vacated by Health and Human Services Secretary Tom Price, she and her colleague Christopher Gorham tweeted on Monday. The election is set for April 18, and early voting began Monday.- Turnout in special elections is typically low, meaning that a big run-up of early votes can make all the difference on Election Day. The election in April will winnow the field to two candidates, who will compete in a runoff in June ""?unless, that is, one of the candidates can win at least 50 percent outright in the first round. Democrat Jon Ossoff is polling strongly; with enough miles on Milano's ride, 50 percent is not inconceivable, and would be a devastating rejection of President Donald Trump deep in Republican territory. ""I think people are shocked and happy to see us at their doorstep, but I also think they understand how passionate we are about gaining this seat once we show up and ring the bell,""?Milano, who has had roles in ""Charmed,""?""Who's the Boss?""?and ""Telrose Place,""?told HuffPost in an email. ""the biggest surprises came on the phone when people realized we were ACTUALLY coming to their house. The initial skepticism was high. Understandably,""?said Gorham, who appeared on ""ugly Betty.""No joke. Call 678-636-9551 and @Alyssa_Milano and I WILL PICK YOU UP and take you to early vote! Now. @ossoff #Georgia6th pic.twitter.com/HA3nGuirQr Republicans think they see an opening for a Hollywood-liberal charge to stick to Ossoff. ""Alyssa Milano and her personal assistant have at least one thing in common with Jon Ossoff ""?none of them have done anything for Georgia's 6th Congressional District,""?quipped Jesse Hunt, a spokesman for the National Republican Congressional Committee. - ""Carpetbagger charge!?""?said Gorham. ""I love it. Look, all politics may be local, but this race has national implications. My wife, Anel Lopez Gorham, and her political activist group in Los Angeles, held a bake sale in January and raised over $1,200 for Jon's campaign. We'r not forcing anyone to support a candidate they don""t believe in. We'r just helping a man whose values we share get his message out.""Besides, said Milano, she's in Georgia working. ""If our pilot is picked up and we shoot here permanently, the 6th is an area I'm considering moving my family to,""?she said.- The poll work does not appear to be coordinated with the Ossoff campaign. A spokesman for Ossoff, Andy Phelan, was unfamiliar with Milano's effort when reached on the phone by The Huffington Post, asking this reporter why he was randomly name-dropping celebrities. Gorham left a phone number on Twitter for voters to call in order to get a ride. That number leads to a regional field office. Erin Bozek-Jarvis, a regional field director for the campaign, told HuffPost that this isn""t Milano's first effort on behalf of the campaign, and that she had previously done door-to-door canvassing. Call 678-636-9551! @ChrisGorham and I WILL PICK YOU UP and take you to vote! Just picked up drew. On our way to Yvette! @ossoff #FlipThe6th pic.twitter.com/3YIZJHMHdY The offer of a free ride appeared to be having an effect. ""A lot of folks are calling now to early vote,""?Bozek-Jarvis said.- Congressional Republicans announced Monday they'r dumping an additional $1.1 million into a race that should be an easy win for the GOP. That's on top of $1.1 million they already spent. Democrats and other progressives around the country, meanwhile, have kicked in some $3 million to Ossoff's campaign in a district where they usually spend around $10,000. Price won in 2016 by 23 points, though Hillary Clinton very nearly beat Donald Trump there. ""We also canvassed for the Ossoff campaign last week and I did a roundtable with Mr. Ossoff and his female leaders as well,""?Milano said. ""Today, we really wanted to focus on spreading the word that early voting has begun and that this special election is a unique opportunity to gain a seat.""Milano said she and Gorham were able to take just five people to vote on Monday.- ""I wish we could have driven more people today, but we ran up against the realities of time and distance,""?Gorham said. ""Early voting in the 6th, it turns out, is available, but not easy to take advantage of. There are only four polling places where residents can vote and they'r widely spread.""Sign up here to get Ryan Grim's newsletter, Bad News, in your inbox. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3431,2017/3/27,http://www.huffingtonpost.com/2017/03/27/katie-cassidy-arrow-series-regular_n_15645196.html,"Katie Cassidy Is Coming Back To 'Arrow,' But It's Not Quite How You'd Think","No, this does not mean Laurel Lance is coming back to life.","Katie Cassidy played the beloved ""Arrow""?character Laurel Lance for four seasons before being killed off. Well, it turns out Cassidy is coming back to her ""Arrow""?family ... but-Earth-1's Laurel Lance is not.- According to The Hollywood Reporter, Cassidy has signed on as a series regular for Season 6. She'll be reprising her role as Black Siren, Laurel Lance's doppelg?nger. ""one of the things that most excites us about ""arrow""?is that we go where the story takes us,""?said executive producer Marc Guggenheim in a statement. ""Last year, the story took us to the tragic death of Laurel Lance. This year, our midseason finale reintroduced us to Laurel's doppelg?nger, Black Siren. We were so taken by Katie's fearless interpretation of this character that we knew her story was not yet finished.""?""We couldn""t be more thrilled to welcome Katie back to ""arrow""?as Black Siren,""?Guggenheim added. ""though as her appearances on ""arrow""?and ""legends of Tomorrow""?this season show, she never really left the family.""?Cassidy confirmed her return to the show with just five little words: ""there's no place like home.""?There's no place like home""?@CW_Arrow Reactions to the news were mixed on Twitter. Many ""Arrow""?fans were here for the surprise announcement, while others seemed less than enthused. @MzKatieCassidy @CW_Arrow pic.twitter.com/GueE9h6Xhn @MzKatieCassidy @CW_Arrow pic.twitter.com/p8WJqufEt6 @CW_Arrow @MzKatieCassidy pic.twitter.com/XXq4H4i4cu @CW_Arrow pic.twitter.com/th2Q6IyOSh Either way, we'r looking forward to Black Siren's inevitable showdown with Team Arrow.- ""Arrow""?airs Wednesday nights at 8 p.m. on The CW. Tina Fey, Alec Baldwin, Tom Hanks, Tracy Morgan, Maggie Gyllenhaal, Michael Moore, Padma Lakshmi and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU. Donate now and join us at-7 p.m.-Eastern on-Friday, March 31-on Facebook Live. #standforrights2017- Share this slide: Get exclusive interviews where your favorite celebs spill the tea. Learn more", -3432,2017/3/27,http://www.huffingtonpost.com/christopher-lawrence/these-women-are-bringing-disabilities-education-to-youtube_b_15645192.html,These Women are Bringing Disabilities Education to YouTube,,"YouTube continues to grown overtime as a platform where millions of creators upload thousands of videos each day. From Tag Videos to Short Films, YouTube provides a space for creators of all kinds to share their work with the world. However, it can become hard to find new creators with the overwhelming amount of content that exists on the website. With March being International Women's History Month, what better time to highlight some of the amazing women on YouTube that are making content about disabilities, educating others on their experiences, and making online content more accessible to others. Annie Elainey: Annie is a queer lifestyle blogger and writer who creates content that gives audiences a glimpse of how Ehlers-Danlos impacts her life in a number of ways. Annie also creates videos that touch on body image, the LGBTQ+ community, and occasionally posts some amazing musical covers that are sure to put a smile on your face. Annie is a passionate advocate for proper representation for disabled people in a number of fields and works to shed light on invisible disabilities, their importance, and how it's often related to limited representation of disabled people in the media. You can also find Annie at VidCon in Anaheim this year where Annie will be a featured creator. Rikki Poynter: Rikki describes herself as a ""?5 Year Old Deaf Vlogger""?in her channel description, but her work online stretches far beyond a simple identifier. I first came across one of Rikki's videos nearly a year ago where she talked about the importance of captions on YouTube Videos, which inspired me to start putting captions on to my own videos. In Sept 2016, Rikki launched an online campaign called #NoMoreCraptions that aimed to raise awareness about the inaccuracy of automated captioning on YouTube, the Federal Communications Commission (FCC) guidelines of Closed Captioning, and why ""Jokes""?are inappropriate in captions, since millions of people depend on accurate captions. If you are looking to learn more about the deaf community, Rikki's channel is a perfect place to start, especially if you are a Pokemon fan! Claire Wineland - The Clarity Project: Claire is a YouTuber who documents her daily life as she lives with cystic fibrosis, a disease that -impacts her lungs and digestive system, and requires her to do treatments for hours each day. Claire's channel is dedicated to answering questions, providing information about cystic fibrosis, and making discussions surrounding such topics more common on YouTube. Channels like Claire's are important because not only does she work to educate others on an experience outside of their own, but also shows others in similar situations that they aren""t alone. Haben Girma: While Haben is not a traditional ""Creator""?in the way that the other women mentioned are, she's no stranger to online video. YouTube is full of countless interviews with Haben, discussing her activism within disabled communities; and she's even given a TedTalk! Haben is the first Deaf-Blind Harvard Law School Graduate, and is a passionate advocate for the rights of people with disabilities, receiving recognition from Forbes 30 under 30 and Former President Barack Obama. Haben offers training in providing accessibility for various types of disabilities and also speaks professionally to audiences of all sizes. While she may not run a typical YouTube Channel, Haben's advocacy is incredible and important. There are countless women doing amazing work to erase stigmas surrounding disabilities on YouTube and in other creative spaces. Having conversations about different experiences is one of the greatest aspects of online culture, and it truly is a privilege to be able to learn from these women who are willing to share their experiences with the world in such dynamic ways. They'r proving that YouTube isn""t just for able-bodied creators. How will Trump's first 100 days impact you? Learn more", -3433,2017/3/27,http://www.huffingtonpost.com/2017/03/27/trump-nunes-spicer_n_15645188.html,"Maybe Getting Tight With Rep. Devin Nunes Wasn""t Such A Hot Idea For Trump",The intel committee chair's evolving tale leaves the White House press secretary trying to keep up.,"WASHINGTON ""?President Donald Trump's White House probably wishes now it had never even heard of Rep. Devin Nunes. Not a week after calling attention to the House Intelligence Committee chairman's claims about suspicious surveillance of Trump's transition team, White House press secretary Sean Spicer on Monday sounded like he was done talking about the California Republican. ""I know that Chairman Nunes has confirmed that he was on White House grounds Tuesday and, frankly, any questions regarding who he met with or why he was here should be referred to him,""?Spicer said. Spicer's new tone comes as Nunes continues trying to explain why it was that he went-to the White House-on March 21 to receive documents from a source only to head back to the White House on March 22 to brief Trump on what he had learned. Nunes told Bloomberg News that his source was an intelligence official, not a White House employee. Spicer, meanwhile, claimed that he knew very little about the whole thing. ""All of what I know has been available through public comments,""?he said, referring to news accounts. Monday's statements are the latest in the evolution of Spicer's views on Nunes. Last Wednesday, Spicer went out of his way to make sure everyone had heard Nunes""?announcement that he had come to learn that Trump transition team members had been swept up by surveillance conducted by U.S. intelligence. Nunes""?committee is investigating possible ties between the Trump campaign and Russian spy agencies""?efforts to get Trump elected. ""Ty understanding is that Chairman Nunes is coming to the White House later to brief the president on this development,""?Spicer said. The next day, as Nunes was dodging questions as to where his new information came from, reporters asked Spicer whether the White House itself could have been Nunes""?source. Spicer ridiculed the question. ""I don""t know that that make sense,""?he said Thursday. ""I don""t know why he would travel ""?brief the speaker, then come down here to brief us on something that ""?that we would""ve briefed him on. It doesn""t really seem to make a ton of sense. So, I'm not aware of it. But it doesn""t really pass the smell test.""?But by Friday afternoon, after Nunes acknowledged that all the surveillance he was referring to was legal and had taken place as a result of court orders, Spicer again changed his tack when asked if he could rule out that Nunes""?source for his documents was from within the administration. ""I don""t know where he got them from. He didn""t state it,""?Spicer said. ""I don""t have anything for you on that. So I cannot say anything more than ""I don""t know""?at this point.""?Monday, prior to Spicer's daily briefing, the White House put out a statement referring all questions about Nunes""?newly disclosed visit to the White House complex to Nunes himself ""?a request that reporters did not honor, forcing Spicer to spend much of the briefing trying to distance the White House from an increasingly embattled ally. Democrats are demanding that House Speaker Paul Ryan replace Nunes as chairman of the House Permanent Select Committee on Intelligence because of his open coordination with Trump, arguing that Nunes cannot lead an impartial investigation into Trump's team. During his campaign last year, Trump frequently praised Russian President Vladimir Putin, even saying Putin was a better leader than President Barack Obama. In the meantime, Putin's spy agencies were secretly working to help Trump win by stealing and releasing potentially embarrassing documents about the campaign of Trump's Democratic opponent,-Hillary Clinton-""?disclosures that Trump cited on a daily basis. FBI Director James Comey testified at a congressional hearing last week that his office has for nearly a year been conducting an investigation into whether Trump's campaign colluded with Russian officials. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: An Inconvenient Alternative Truth #SeanSpicerAFilm @HuffPostComedy How will Trump's administration impact you? Learn more", -3434,2017/3/27,http://www.huffingtonpost.com/2017/03/27/few-mourn-gop-health-care-bill_n_15645186.html,Barely Anyone Is Mourning The Demise Of The GOP's Health Care Bill,There's not too much public appetite to see Republicans take another shot at repealing Obamacare.,"After Republicans""?attempt to repeal Obamacare failed, a narrow plurality of Americans wants to see the party move on to other issues, according to a new HuffPost/YouGov survey. The American Health Care Act, which was deeply unpopular during its brief lifespan, is no more popular in its demise. Just 21 percent say they supported it, with a majority, 52 percent, saying they were opposed. The 6 percent who say they strongly favored the bill are outnumbered nearly 6 to 1 by those who strongly opposed it. Americans say by a 7-percentage-point margin, 44 percent to 37 percent, that Republicans should move on to other issues rather than proposing another health care bill. Just under half think Donald Trump and Congress are still at least somewhat likely to repeal Obamacare, with 35 percent saying they'll be disappointed if it remains standing. Trump voters were only lukewarmly positive about AHCA ""?45 percent say that they supported it and 31 percent that they opposed it. - But they generally don""t see its failure as a death knell for Republicans""?prospects of fulfilling their promise to repeal Obamacare. Most, 57 percent, want to see congressional Republicans propose a new health care bill. More than three-quarters say they believe it's still at least somewhat likely that Obamacare will be repealed, with a similar percentage saying they'll be disappointed if it is not. Asked who's most responsible for the bill's failure, 27 percent of Americans put the bulk of the blame on its authors, with 17 percent naming the congressional Republicans who opposed the bill, another 17 percent naming Trump and 14 percent citing congressional Democrats. Just 4 percent of Trump voters, however, believe that Trump is most responsible for the bill's failure, and only 11 percent assign him even partial responsibility. Instead, they cast the blame nearly everywhere else. Meanwhile, Obamacare's popularity, which spiked as its repeal became more plausible, may since have ebbed somewhat, although it's too soon to tell whether the change represents a genuine shift or the normal volatility present in polling. In the most recent HuffPost/YouGov poll, Americans are split close to evenly on Obamacare, with 41 percent in favor and 43 percent opposed. In the previous two surveys taken during the heat of the AHCA debate, they split 47/41 and then 44/43. HuffPost Pollster's aggregate of public polling puts support at an average 48 percent, with 43 percent opposed. Use the widget below to further explore the results of-HuffPost/YouGov's survey, using the menu at the top to select survey questions and the buttons at the bottom to filter the data by subgroups: The HuffPost/YouGov poll consisted of 1,000 completed interviews conducted March 25 among U.S. adults using a sample selected from YouGov's opt-in online panel to match the demographics and other characteristics of the adult U.S. population. The Huffington Post has teamed up with YouGov to conduct daily opinion polls.-You can learn more about this project and take part in YouGov's nationally representative opinion polling. Data from all HuffPost/YouGov polls can be found here. More details on the polls""?methodology are available here. Most surveys report a margin of error that represents some, but not all, potential survey errors. YouGov's reports include a model-based margin of error, which rests on a specific set of statistical assumptions about the selected sample rather than the standard methodology for random probability sampling. If these assumptions are wrong, the model-based margin of error may also be inaccurate. Click here for a more detailed explanation of the model-based margin of error. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3435,2017/3/27,http://www.huffingtonpost.com/2017/03/27/a-visual-evolution-of-what-we-wear-on-planes-from-lapels-to-leggings_n_15645134.html,"A Visual Evolution Of What We Wear On Planes, From Lapels To Leggings",A lot has changed.,"United Airlines blocked-girls from wearing leggings-on their flight Sunday, not only angering Twitter but also amplifying the difference in dress codes from when people first began flying.- No longer do passengers expect to have insane amounts of leg room, eat-lobster as a main course in coach or see fellow passengers wearing red carpet attire, as they did starting in the mid-1930s.- When commercial flights first became popular in the ""?0s, the typical cost for a ticket could total up to-5 percent of one's annual salary, making it a relatively rare and special event for the rich.-Keith Lovegrove, author of Airline: Style At 30,000 Feet, told The Huffington Post that in the ""?0s, commercial flights didn""t have tiered classes because only rich people flew ""?and of course, they dressed up for the occasion.- ""�Over the next few decades, as air travel became steadily more affordable for the middle classes, dress became less important,""?Lovegrove said. ""And as worldwide air travel is, as its most surreal, a parallel universe, trends and fashion mimic what happens on terra firma.""Janet Bednarek, a history professor at the University of Dayton, told The Huffington Post that the major style shifts started in the 1970s.- ""�[Passengers] stopped dressing for airline travel about the same time they stopped dressing for other occasions, like shopping,""?Bednarek said, noting that the Airline Deregulation Act of 1978, which meant the government could no longer control things like-rates and routes,-also occurred around the same time as the shift. ""the more casual dress on flights is associated with deregulation but really that was coincidence, not causal. There was already a larger shift in the culture.""Bednarek and Lovegrove both agree that the accessibility of flying and loss of its once-special feel contributed to the way passengers dress on planes now.- ""Passengers dress for comfort rather than ""Being seen,""?Lovegrove said. -""Budget air travel today is akin to getting on a bus, and we don""t dress up to get on a bus.""Flight attendant Heather Poole told The Huffington Post that she doesn""t care what passengers wear, just as long as they'r nice.- ""that said you can run a lot faster away from a burning aircraft if you'r not wearing flip flops,""?Poole said via email.-""speaking of shoes, that's not water on the bathroom floor, so you might want to keep them on.""?Good to know. Take a look at how attire has changed through the years in the slideshow below:- Slideshow photos curated by Damon Dahlen The-HuffPost-Lifestyle-newsletter-will make you happier and healthier, one email at a time. Sign up-here.- Share this slide: We'r basically your best friend""?with better taste. Learn more", -3436,2017/3/27,http://www.huffingtonpost.com/2017/03/27/james-jackson-timothy-caughman-racist-young-thug_n_15645132.html,Racist Who Stabbed Timothy Caughman Says He Regrets Not Killing A 'Young Thug',He is also intolerant of interracial relationships.,"The Army veteran who fatally stabbed a 66-year-old black man-in New York last week said that he carried out the crime to express his intolerance of white women dating black men and to stop them from entering interracial relationships.- In a new interview with the New York Daily News, James Jackson, 28 ""?who told prosecutors last week that he planned to ""kill as many black men as he could""��?expressed no remorse over Timothy Caughman's death,-only regret that he had not killed a younger victim.- ""I didn""t know he was elderly,""?Jackson told the Daily News, before suggesting that he would have rather killed ""A young thug""?or ""A successful older black man with blondes ... people you see in midtown. These younger guys that put white girls on the wrong path.""Jackson, who is currently being held at Rikers Island, confessed to the crime last Wednesday, more than 24 hours after he struck Caughman with a 26-inch sword. He said he deliberately traveled from Baltimore to New York to carry out the crimes because it is the ""media capital of the world,""?and that he wanted to get maximum exposure for his violent hatred toward black men. He said he had been plotting to kill black men for years. ""I had been thinking about it for a long time,""?Jackson told the Daily News. ""I figured I would end up getting shot by police, kill myself, or end up in jail.""?Jackson, who grew up in an ""Almost all-white""?neighborhood in Baltimore and was raised by ""gypical liberal""?parents, said his ideal society is ""?950s America.""?He said he hoped that the bloodshed would lead white women to reject interracial relationships, even reportedly saying that their ideal response to his killings would be: ""Well, if that guy feels so strongly about it, maybe I shouldn""t do it.""Jackson's premeditated plans sound similar to those of Dylann Roof, who revealed that he shot and killed nine black churchgoers in Charleston, South Carolina, in June 2015 partly because he thought it would protect white women from black men.- ""I have to do it. You rape our women and you'r taking over our country. And you have to go,""?Roof reportedly said during his massacre. Roof's claims reflect dangerous myths that paint black men as vile savages. And unpacking this trope requires digging deeper into the long history of-white female sexuality being used by white men to justify racial violence. - As for Jackson, when asked about the white women who are repulsed by his racist views and actions, he responded:-""that's the problem.""Share this slide: Stay plugged in with the stories on black life and culture that matter. Learn more", -3437,2017/3/27,http://www.huffingtonpost.com/2017/03/27/muslim-women-hold-hands-bridge-honor-victims-london-attack_n_15645130.html,Women Link Hands On Spot Where London Attack Occurred To Honor Victims,"""It was something beautiful to come out of something so hideous.""?,Muslim women linked hands on Westminster Bridge on Sunday to honor the victims of last week's terror attack in London. On March 22", Khalid Masood-drove into pedestrians on the busy Westminster Bridge, 5-minute vigil in the very spot in which the violence occurred. As Big Ben struck 4 p.m. -3438,2017/3/27,http://www.huffingtonpost.com/2017/03/27/flint-water-crisis-lawsuit-settlement-lead-pipes_n_15645128.html,"Flint, State Of Michigan Reach Agreement To Replace Lead Water Lines By 2020",Flint residents haven't had safe drinking water since 2014.,"Flint, Michigan, will replace its crumbling pipes by 2020 to settle a lawsuit over its lead-contaminated water crisis. Under a settlement agreement filed in federal court Monday, the city will conduct the sweeping infrastructure project using state and federal funds. they're agreed to dig up services lines at 18,000 homes and replace lines made of lead and galvanized steel. -- The state will put $87 million toward pipe replacement and keep an additional $10 million in reserve.-In March, the U.S. Environmental Protection Agency awarded $100 million to the city for its water infrastructure improvements after Congress approved the funding last year.- Several advocacy groups sued the city and the state of Michigan over the lead crisis last year. The problem began in 2014, when the city stopped buying water from Detroit and started drawing water from the Flint River instead. The city failed to properly treat the more contaminated water under the direction of the state Department of Environmental Quality, and the water corroded city pipes, leaching lead into the water. Tests showed water lead levels above the federal limit and a dramatic increase in the number of children with elevated lead levels in their blood. Any amount of lead exposure is a health risk, particularly for young children, and can stunt their brain development.- The city switched back to the Detroit water system ""?which draws from Lake Huron ""?in 2015, and has already started replacing pipes, though at a slow pace. In February, officials said that since March, they had replaced service lines at just 780 homes. The court agreement calls for the city to get through 6,000 homes by January of next year and complete the entire project within three years. Recent testing shows that the lead levels in the city's drinking water are below the threshold to comply with federal regulations, but residents are still advised not to drink tap water unless it is filtered, and many people are still relying on bottled water. - A judge will review the settlement agreement at a hearing in federal court Tuesday. --- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3439,2017/3/27,http://www.huffingtonpost.com/2017/03/26/worlds-biggest-dinosaur-footprint_n_15645110.html,Scientists Just Revealed What May Be The Biggest Dinosaur Footprint Ever Found,"The print, found in Western Australia, is about 27 inches longer than the last suspected record-holder.","Scientists in Australia have announced the discovery of what's believed to be the world's largest dinosaur footprint, measuring 5 feet, 7 inches long ""?meaning it's practically as long as the average American man-is tall. The massive print, left by a long-necked sauropod, was uncovered along a Walmadany beach in the Kimberley region of Western Australia, researchers at the University of Queensland said in a study published Friday. ""Probably the next biggest footprints are just over a meter,""?Dr. Steve Salisbury, a paleontologist and lead author of the peer-reviewed study, told Australia's ABC News. To better emphasize the print's size, a photo shared by Salisbury on Twitter-shows a man identified as Richard Hunter lying next to the print while holding a 15.7-inch scale bar. In comparison, a dinosaur print measuring about 42 inches (3 feet, 6 inches) in length was found in Mongolia's Gobi Desert last year. It was thought to be the largest of its kind-at the time. That's big, but still 27 inches shorter than the print found in what Salisbury calls ""Australia's Jurassic Park.""?""This area preserves one of the most diverse dinosaur track faunas anywhere in the world. Nowhere else has this many of dinosaurs represented by tracks than Walmadany does,""?he said in a video released by the university. Between 2011 and 2016, the researchers examined thousands of tracks along the coastal site ""?150 of which Salisbury-said can be-""Confidently""?assigned-among 21 specific track types that represent four main groups of dinosaurs. ""me of them are so big we didn""t really notice them for some time because they'r sort of beyond your search image for a dinosaur track,""?he told ABC News. Many of the tracks are tricky to find because they are only exposed when the tide recedes, the researchers noted in their report-""?meaning the scientists would have to wait for ideal beach conditions and in some cases even search for the prints by drone. Though Salisbury's team reported spending more than 400 hours surveying the rocky terrain, they said there's likely a wealth of treasures yet to be found in the area, which at one point was nearly developed into a gas processing facility. ""Although every effort was made to locate as many tracksites and tracks in the study area as possible, it is expected that some were not exposed at the time of our surveys,""?the study says. ""We also know that at least some of the tracksites that we documented in 2011 were buried by shifting sands following the 2011""?012 cyclone season, and it is not known when they will be exposed again (if ever).""?Tina Fey, Alec Baldwin, Tom Hanks, Tracy Morgan, Maggie Gyllenhaal, Michael Moore, Padma Lakshmi and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU. Donate now and join us at 7 p.m. Eastern on Friday, March 31 on Facebook Live. #standforrights2017 Learn more", -3440,2017/3/27,http://www.huffingtonpost.com/mike-weisser/gun-industry-congratulates-itself-for-drop-in-accidental-gun-deaths_b_15645108.html,Gun Industry Congratulates Itself For Drop In Accidental Gun Deaths,Not so fast.,"Once again the gun industry is patting itself on the back for something it didn""t do, namely, reducing accidental deaths and injuries caused by guns. Hey ""?wait a minute! It's not the gun which causes the injury, it's the person using the gun. Remember that one? The NRA will remind you of it every chance they get no matter whether we are talking about a gun which went off accidentally, or on purpose, or on whatever, it's always the person, not the gun. Which is why the gun industry continues to talk out of both sides of its mouth on this one ""?congratulating itself every time that statistics allegedly show a decline in gun accidents but rejecting any and all efforts to mandate gun safety either through the development of safe-gun technologies or passage of child access prevention (CAP) laws to keep guns out of the hands of kids. - Why do I say that the statistics ""�allegedly""?show a decline in gun accidents? After all, the National Shooting Sports Foundation (NSSF) didn""t dream up the latest information on gun safety all by itself. -Their press release is based on the latest report from the National Safety Council (NSC) which says that gun accidents declined 17 percent from 2014 to 2015, the same year that gun sales hit an all-time high. The NSC's information comes from the CDC, whose website shows a drop in accidental gun deaths from 586 in 2014 to 489 the following year. Of course the numbers for accidental, non-fatal gun accidents only show a 5 percent drop from 2013 to 2014, but like unintentional gun mortality, this number has also steadily dwindled down. - Incidentally, although the NSSF couldn""t wait to rush forward and take responsibility for the good news from the NSC, in fact the Council isn""t so enamored of the gun industry's safety record. -Take a look at the NSC's Statement on Firearms Policy which actually claims that more than 1,400 deaths occur annually because of gun accidents. The NSC goes on to say, ""the absence of a reliable system for collecting and analyzing such accident data makes extremely difficult any meaningful evaluation of the effectiveness of accident prevention programs.""?-Know why we don""t have any ""�reliable system""?for understanding the true extent of gun injuries? -Because the gun industry has steadfastly rejected any and all attempts to reinstate CDC funding for gun research, remember? But when it comes to gun injuries, there's a much bigger problem than just whether we can get good data, and this is a problem which neither side in the gun debate seems to understand. Because the fact is that unless one breaks down gun injuries not by the number of injuries, or by the age, race, sex or location of the victim (the current categories utilized by the CDC,) but by the type of gun that caused the injury, you really can""t tell much about the issue of gun accidents at all. You might find bits and pieces of such information in the data collected by the National Violent Death Reporting System (NVDRS) but it's sporadic and highly fragmentary at best. Why do we need to know what kind of gun caused the accident? -Because most long gun accidents occur during hunting (e.g., Dick Cheney) but handgun accidents rarely have anything to do with walking in the woods. And if we don""t know the ratio of handgun to long gun accidents, both fatal and non-fatal, then we understand very little about guns, gun use or gun safety at all. - The NSSF is absolutely correct when they use the NSC report to champion the idea that hunting is one of the ""safest""?outdoor activities around. There's only one little problem. We don""t hunt as frequently as we used to hunt and most new guns now being added to the civilian arsenal are handguns, and may account for the lion's share of ""�accidental""?shootings each year. Isn""t it time the gun industry took the NSC at its word and did something meaningful about safety and guns? Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3441,2017/3/27,http://www.huffingtonpost.com/2017/03/27/20-democratic-senators-now-support-blocking-neil-gorsuch_n_15645106.html,20 Democratic Senators Now Support Blocking Neil Gorsuch,More and more are joining the call to filibuster President Donald Trump's Supreme Court nominee.,"Democratic opposition to President Donald Trump's U.S. Supreme Court nominee grew on Monday while the White House demanded a ""Hair, up-or-down vote""?in the Senate on confirming Neil Gorsuch to the lifetime post. Four more Democratic senators added their support to a growing effort to block a confirmation vote through the use of a procedural hurdle called a filibuster that requires 60 votes in the 100-seat Senate to allow a confirmation vote requiring a simple majority. Republicans control the Senate 52-48. There are now 20, up from 16 on Friday, who have backed Democratic leader Chuck Schumer's filibuster call. Democratic opposition to Gorsuch could prompt a Senate showdown over the confirmation of the conservative appeals court judge from Colorado, but Republicans could change the Senate's rules to disallow filibusters against Supreme Court nominees. Trump is seeking to avoid another setback in Congress after major healthcare legislation he supported was pulled from the House of Representatives floor amid opposition within his own party on Friday. The confirmation of Gorsuch, 49, would restore the nine-seat court's conservative majority, a major campaign promise for Trump. The latest Democrats to join the fight include Bill Nelson of Florida, who expressed ""real concerns""?Gorsuch would be hostile to voting rights, sympathetic to efforts to lift campaign finance restrictions and support businesses over workers and consumers. The other three Democrats to have newly announced their opposition were Judiciary Committee members Mazie Hirono of Hawaii and Al Franken of Minnesota, as well as Jack Reed of Rhode Island. Democrat Patrick Leahy of Vermont, a member of the Judiciary Committee that held confirmation hearings last week, said he generally opposes filibusters but added that Gorsuch would face such a move if he does not adequately answer written questions. ""An attempted filibuster of a Supreme Court nominee is rare, and to do so in this context, with such an eminently qualified and brilliant judge, is nothing short of obstructionism,""?White House spokesman Sean Spicer said, noting Leahy's comments against taking part in a filibuster. ""He deserves a fair, up-or-down vote,""?Spicer added. The committee is due to vote next Monday on sending the nomination to the full Senate. Nelson is one of 10 Democrats who conservative activists had hoped would join Republicans in preventing any attempt to block a Gorsuch vote. They are all up for re-election in 2018 in states Trump won in the 2016 presidential election. Of those, four have now said they would support a filibuster. Aside from Nelson, the others were Ohio's Sherrod Brown, Pennsylvania's Bob Casey and Wisconsin's Tammy Baldwin. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3442,2017/3/27,http://www.bbc.co.uk/news/uk-39411208,London attack: Khalid Masood mother 'shocked and saddened',"The mother of Westminster attacker Khalid Masood has said she is ""shocked, saddened and numbed"" by his actions.","The mother of Westminster attacker Khalid Masood has said she is ""shocked, saddened and numbed"" by his actions. Janet Ajao said she had ""shed many tears for the people caught up in this horrendous incident"". Masood killed three people when he drove a car into pedestrians last Wednesday. He then fatally stabbed a police officer before being shot dead. Meanwhile, police say no evidence has been found of links between Masood and so-called Islamic State or al-Qaeda. Mrs Ajao, from Trelech in Carmarthenshire, said: ""I wish to make it absolutely clear, so there can be no doubt, I do not condone his actions nor support the beliefs he held that led to him committing this atrocity. ""I wish to thank my friends, family and community from the bottom of my heart for the love and support given to us."" Masood, 52, who was born as Adrian Elms but later took his stepfather's name Ajao, carried out his attack within 82 seconds. It has emerged that police believe he drove up to 76mph as he crossed Westminster Bridge. The Islamic State group has said it was behind the attack. But Deputy Assistant Commissioner Neil Basu, of the Metropolitan Police, told BBC Panorama that, while Masood ""clearly had an interest in Jihad"", police had so far found no evidence of an association with the group or al-Qaeda, or that he had discussed his plan with others. He said: ""His methods appear to be based on low sophistication, low tech, low-cost techniques copied from other attacks, and echo the rhetoric of IS leaders in terms of methodology and attacking police and civilians, but I have no evidence or information at this time that he discussed this with others."" Mr Basu also said there was also no evidence Masood was radicalised in prison in 2003 - describing this as ""speculation"". He said Masood was not considered to be a threat by the security services or counter-terror police and was not part of investigations connected with Luton - where he had once lived - or the long-banned al-Muhajiroun network. He added: ""I know when, where and how Masood committed his atrocities, but now I need to know why. Most importantly so do the victims and families."" Masood's victims were PC Keith Palmer - who was stabbed outside Parliament - Aysha Frade, who was in her 40s and worked at a London sixth-form college, US tourist Kurt Cochran, 54, and retired window cleaner Leslie Rhodes, 75, from south London. Thirteen people are understood to remain in hospital. It understood the car Masood used was seen driving in the area around the bridge at some point before the attack. It may have been on the day or before that, although it remains unclear what the purpose of this was. It is also understood Masood's phone connected with messaging app WhatsApp minutes before the attack, which police say started at 14:40 GMT. The revelations have prompted a debate about the responsibilities of messaging services. Home Secretary Amber Rudd said encrypted messages must be accessible to intelligence services fighting terrorism, stressing there must be ""no place for terrorists to hide"". She is holding talks with other EU ministers in Brussels to discuss ways of preventing further attacks and will meet technology firms later this week.. Earlier, the family of the US tourist killed in the attack said he bore no ill will to anyone and had spent his life ""focusing on the positive"". Kurt Cochran's family said they had ""felt the love of so many people"" since his death. Mr Cochran had been with his wife, Melissa, on the final day of a holiday in Europe to celebrate their 25th wedding anniversary - their first trip abroad. She suffered a broken leg and rib and a cut head. Meanwhile, Foreign Office minister Tobias Ellwood, who was hailed a ""hero"" for giving first aid to PC Keith Palmer, said he was ""heartbroken"" he could not do more to save the policeman's life. Mr Ellwood, a Conservative MP and former Army officer, performed mouth-to-mouth resuscitation on PC Palmer in New Palace Yard, Westminster. He tweeted that he had been ""deeply humbled and overwhelmed"" by the messages of support he had received since the attack. Officers investigating the attacks are holding two people from Birmingham on suspicion of preparing terrorist acts. Nine people have so far been released without charge, while a 32-year-old woman arrested in Manchester remains on police bail until late March. Get news from the BBC in your inbox, each weekday morning", -3443,2017/3/27,http://www.bbc.co.uk/news/uk-39412904,London attack survivor recounts being hit,,"London attack survivor Owen Lambert says he wants people to ""unify through love"" instead of hate. The 18-year-old student, who was photographed with a head wound shortly after the attack, told the BBC what happened to him on Westminster Bridge. Mr Lambert, from Morecambe, Lancashire, was one of four students from Edge Hill University, Ormskirk, who were hurt in the attack. Thirteen students were on a visit to the Houses of Parliament when the incident happened.", -3444,2017/3/27,http://www.bbc.co.uk/news/uk-scotland-scotland-politics-39399390,Theresa May and Nicola Sturgeon meet ahead of Article 50,The prime minister has met Scotland's first minister in a Glasgow hotel as she prepares to formally trigger Article 50.,"The prime minister has met Scotland's first minister in a Glasgow hotel as she prepares to formally trigger Article 50. Theresa May and Nicola Sturgeon held talks for about an hour during the prime minister's trip to Scotland. Ms Sturgeon said the talks were cordial but she was ""frustrated by a process that appears not to be listening"". The prime minister had earlier repeated her opposition to an independence referendum during the Brexit process. The Scottish Parliament is expected to back Ms Sturgeon's call for a referendum on Tuesday. The first minister says a fresh vote is needed ahead of Brexit to allow the people of Scotland to choose which path to follow. Mrs May has repeatedly said that ""now is not the time"" for an independence referendum, but has not ruled out one being held after the Brexit process is complete. Ahead of the meeting, the prime minister said leaving the European Union would be an opportunity to strengthen the ties between the nations of the United Kingdom. Ms Sturgeon later told BBC Scotland that she had wished the prime minister well for the forthcoming negotiations with the EU, which she said the Scottish government wanted to play a constructive part in. But she said she had been frustrated that Mrs May had not made any concessions over the first minister's demands for a distinctive Brexit deal for Scotland. Brian Taylor, BBC Scotland political editor The prime and first ministers do not see eye to eye. Not out of badness but because they disagree fundamentally and deeply about the future of Scotland. Such differences cannot be elided by a relatively short chat in a Glasgow hotel. There was symbolism surrounding all of the prime minister's visit. Theresa May was out to demonstrate that Scotland was a key part of her thinking ahead of the triggering of Article 50 on Wednesday, beginning the process of removing Britain from the EU. Read more from Brian here. The first minister also said Mrs May had told her that she expects the terms of the UK's future relationship with the EU to become clear within the next 18 to 24 months - within Ms Sturgeon's timetable for an independence referendum. Ms Sturgeon said: ""I have said that I want people in Scotland to have an informed choice when the terms of Brexit are clear. ""She has confirmed to me today that that will be in a period from autumn next year to the spring of 2019. That would underline my view that is the right timescale"". Mrs May, who will trigger Article 50 on Wednesday, earlier told staff at the Department for International Development (DFID) in East Kilbride that she wanted Brexit to lead to a ""more united nation"". She pledged that leaving the EU would not mean the UK ""stepping back from the world"", and insisted she was aiming to build ""a new partnership with Europe"" while taking the opportunity to build ""a more global Britain"". The prime minister added: ""As Britain leaves the European Union, and we forge a new role for ourselves in the world, the strength and stability of our Union will become even more important. In an impassioned plea for the preservation of the UK, she said the nations of the United Kingdom were an ""unstoppable force"" when they acted together. Mrs May - who did not take questions following her 10-minute speech, which focused largely on DFID's international aid work - also said the UK was ""a force for good, helping to build a better future for everyone"". She added: ""As we look to that future and as we face this great national moment together, I hope you will continue to play your part in the great national effort we need to build the stronger Britain, the fairer Britain, the more outward-looking Britain and the more united Britain that I am determined we should be once we emerge from this period of national change."" Mrs May insists that there have been ""considerable discussions"" with the Scottish government and the UK's other devolved administrations as she seeks to get the best Brexit deal for the whole of the UK. And she has said that there are areas where the UK and Scottish governments are in agreement, such as workers' rights. Mrs May was speaking as Labour outlined ""six tests"" that will need to be met in order for it to support any Brexit deal negotiated by the government. Downing Street had said that the talks between Mrs May and Ms Sturgeon were for issues surrounding the triggering of Article 50 - and not the possibility of a second independence referendum. But Scottish government sources said ahead of the meeting that the talks could not just focus on Brexit. Triggering Article 50 begins a two-year negotiation process to attempt to reach a deal before Britain officially leaves the EU in March 2019. The government is also due to publish its Great Repeal Bill, giving powers to amend some EU laws, on Thursday. Get news from the BBC in your inbox, each weekday morning Do you have a question about Article 50? Or a question about Brexit? Let us know by using this form: If you are reading this page on the BBC News app, you will need to visit the mobile version of the BBC website to submit your question on this topic.", -3445,2017/3/27,http://www.bbc.co.uk/news/uk-england-berkshire-39410277,Windsor Castle barriers installed for Changing of the Guard,Security barriers are being placed around Windsor Castle ahead of the next Changing of the Guard.,"Security barriers are being placed around Windsor Castle ahead of the next Changing of the Guard. Police said the decision was made following a review of security after the terror attack at Westminster last week. The extra protection would be installed on Monday evening, a force spokesman said. The spokesman added that there was ""no intelligence to indicate a specific threat to Windsor"". The new barriers will be in addition to the normal road closures which had already been arranged for the Wednesday event, the spokesman added. Ch Insp Sarah Grahame, of Thames Valley Police, said the barriers would provide ""further protection for people in the town in light of recent events in Westminster"". ""I hope that people in Windsor will understand the reasons that these barriers are being introduced, and will see why they are necessary,"" she said.", -3446,2017/3/27,http://www.bbc.co.uk/news/uk-england-leicestershire-39409193,Abuse charity slams judge's 'shocking ignorance',A domestic abuse charity has criticised the 18-month suspended sentence given to a man who admitted attacking his then wife with a cricket bat.,"A domestic abuse charity has criticised the 18-month suspended sentence given to a man who admitted attacking his then wife with a cricket bat. Mustafa Bashir, 34, also forced bleach and pills into Fakhara Karim's mouth, Manchester Crown Court heard. But Judge Richard Mansell said Ms Karim was not vulnerable as she was ""an intelligent woman with a network of friends"" and a degree. Charity Refuge said the comments showed ""shocking ignorance"". Sandra Horley, chief executive of Refuge, said: ""[The judge's] comments - that he was not convinced of the victim's 'vulnerability' - show a shocking ignorance around the impact of domestic violence on women. ""What a woman does for a job, her level of education or the number of friends she has makes no difference; for any woman, domestic violence is a devastating crime that has severe and long-lasting impacts."" The court was told Bashir, of Hebers Court, Middleton, Manchester, and Ms Karim married in 2013 but the stormy relationship lasted less than two years. Prosecutor Roger Brown highlighted a row in April 2014. ""He took her into the bathroom where he grabbed a bottle of bleach and he made her drink the bleach so she would kill herself. She spat that out as she was unable to swallow it. ""Then he gave her tablets from the house and told her to take them. She did but again she was unable to swallow them,"" he said. Another argument in December 2014 led to Bashir, who played cricket for Oldham, strangling her, hitting her with the bat and saying, ""If I hit you with this bat with my full power then you would be dead"", the court heard. But sentencing Bashir, Judge Mansell said Ms Karim was neither trapped nor isolated. ""She is plainly an intelligent woman with a network of friends and did go on to graduate university with a 2:1 and a masters - although this has had an ongoing effect on her. ""She has difficult trusting people now, especially men."" An apparent defence claim, noted by the judge, that a prison sentence would have lost Bashir a contract with Leicestershire County Cricket Club has been rejected by the club, which denies any contact. Bashir admitted two counts of assault occasioning actual bodily harm. Passing an 18-month jail term suspended for two years, the judge also ordered Bashir to attend a workshop entitled ''building better relationships'', pay ?1,000 costs and banned him from contacting Ms Karim indefinitely. The BBC has approached Bashir's lawyers for comment. ", -3447,2017/3/27,http://www.bbc.co.uk/news/world-us-canada-39410805,Rachel Dolezal: 'The idea of race is a lie',,"Rachel Dolezal - the white US woman who said she was black - says ""the idea of race is a lie"". Speaking in an interview with Emily Maitlis, she argued that the concept of ""transracial"" - similar to that of transgender - is useful in describing people such as herself. Rachel Dolezal has just written a book about her experience, In Full Color: Finding My Place in a Black and White World. Watch the full BBC Newsnight interview here", -3448,2017/3/27,http://www.bbc.co.uk/news/uk-politics-39407039,"Immigration should rise and fall after Brexit, David Davis says","Immigration should rise and fall depending on the UK's needs after it has left the EU, the Brexit secretary says.","Immigration should rise and fall depending on the UK's needs after it has left the EU, the Brexit secretary says. David Davis said a ""sustainable"" system would take into account the needs of the NHS and different industries. He also said the government had a ""huge contingency plan"" for the UK leaving the EU without a deal. Mr Davis was speaking on a special edition of BBC Question Time ahead of Wednesday's formal Brexit notification. The government has yet to specify how the UK's immigration system will work once it is no longer bound by EU free movement rules, but has promised to restore ""control"" to borders with new curbs in place. Mr Davis said the new system would be ""properly managed"". It would be for the home secretary to decide the system to be used, he said, but added: ""I cannot imagine that the policy will be anything other than that which is in the national interest. ""Which means that from time to time we will need more, from time to time we will need less. ""That is how it will no doubt work and that will be in everybody's interests - the migrants and the citizens of the UK."" The Brexit secretary was urged by a German NHS worker in the audience to ""do the decent thing"" and guarantee EU nationals the right to stay in the UK. He promised the issue would be a priority when talks begin. On Wednesday Prime Minister Theresa May will invoke Article 50 of the Lisbon Treaty, which begins the negotiation process. During the Britain after Brexit debate the panellists, who included former Scottish first minister Alex Salmond and Labour Brexit spokesman Sir Keir Starmer, were asked what would happen if no deal was reached. Mr Davis said the government had spent the nine months since June's Brexit vote preparing a plan. He said it was not a scenario the government wanted to see, but added: ""We have got a huge contingency plan, exercised across all of these issues, every department of government."" Mr Salmond said the government's view that no deal is better than a bad deal was ""nonsensical"". But UKIP's Suzanne Evans criticised ""hyperbole"" about ""crashing out"" of the EU. Mr Davis also said the UK would abide by its obligations when it comes to settling outstanding liabilities with the EU, but played down claims these could amount to ?50bn. Former Lib Dem leader Nick Clegg said the EU was ""simply going to ask us to settle the tab before we leave"", and Mr Starmer said the UK had to honour its debts ""otherwise no country is going to want to deal with us"" in future trade negotiations. But a man in the audience compared the EU's demands with ""the bully in the playground taking our lunch money"". On Wednesday, the prime minister will send a letter to the president of the European Council telling him officially that the UK wants to leave. Triggering Article 50, the letter will set in motion a two-year process in which the terms of the UK's departure from the EU will be hammered out, as will the outline of the UK's future relationship with the remaining 27 EU members. As things stand, the UK is set to leave the EU on 29 March 2019 although this deadline could be extended if both sides agree. More than 33.5 million people voted in a referendum last June on the UK's future in the EU. They voted to leave by a margin of 51.9% to 48.1%.", -3449,2017/3/27,http://www.bbc.co.uk/news/world-australia-39409693,Cyclone Debbie: 'Monster' storm reaches Australian islands,A cyclone carrying winds of up to 250km/h (155 mph) has battered Australian holiday islands as it moves towards the Queensland coast.,"A cyclone carrying winds of up to 250km/h (155 mph) has battered Australian holiday islands as it moves towards the Queensland coast. Tens of thousands of people have been evacuated in preparation for Cyclone Debbie, a Category four storm. Its destructive eye has already hit the Whitsunday islands and is expected to reach the mainland by 12:00 local time (02:00 GMT) on Tuesday. Authorities said it would be the area's worst storm since Cyclone Yasi in 2011. Prime Minister Malcolm Turnbull earlier urged residents to ""leave home immediately"", adding that people should seek shelter ""on higher ground"". Australia's Bureau of Meteorology said the storm was still gathering strength, despite slowing its progress during the night. Emergency stockpiles of food and fuel have been set aside and the army is on standby to deal with the storm's aftermath. Queensland Premier Annastacia Palaszczuk said the emergency evacuation order was ""probably the largest ever"" for the northeastern state, and warned people to charge their phones as structural damage and power outages were likely. ""This is going to be a monster of a cyclone,"" Ms Palaszczuk said, comparing it to Cyclone Yasi, which had devastated towns and flooded evacuation centres. Thousands of people are believed to have left their homes in Mackay, and many more have evacuated their properties in low-lying areas such as Bowen and Ayr. Ms Palaszczuk said that shelters had been made available on higher ground for those with nowhere else to go. Some residents refused to leave despite warnings that Cyclone Debbie's destructive core could be as wide as 62 miles (100km). More than 2,000 emergency workers are also on standby, but people have been warned crews will only respond when it is safe to do so. The Bureau of Meteorology said the cyclone could yet ""intensify further"" as it moves towards the Queensland coast. Forecasters had feared the cyclone would coincide with high tide, bringing waves of up to 8m (26ft), but the storm is now predicted to arrive later. Authorities warned there was still dangerous risk of flooding. ""I am just pleading to everyone, please, listen to authorities,"" Ms Palaszczuk. ""I do, you must as well. This is about your safety, it is about the safety of your family and the safety of your children.'' Police Commissioner Ian Stewart said the weather contributed to the death of a woman in a car crash. Queensland authorities have closed 102 schools, 81 early childhood education centres and two ports. All flights have been cancelled at Townsville Airport and Mackay Airport. Cyclones and hurricanes: Different names for same thing Are you in the area? Have you been affected by this? If you are willing to do so, share with us by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -3450,2017/3/27,http://www.bbc.co.uk/news/world-us-canada-39413903,One dead in Oakland residential building fire,,"Firefighters have battled to put out a fire at an apartment block in Oakland, California, that has left at least one person dead. Fifteen other people were rescued in the early hours of Monday, four of them taken to hospital. The cause of the blaze has not yet been determined. In December, Oakland became the site of the deadliest structure fire in the US in over a decade when 36 party-goers died in a warehouse known as the Ghost Ship.", -3451,2017/3/27,http://www.bbc.co.uk/news/entertainment-arts-39408607,Shailene Woodley reaches deal to avoid jail over pipeline protest,US actress Shailene Woodley has reached a plea deal over her involvement in the protest against the Dakota Access oil pipeline.,"US actress Shailene Woodley has reached a plea deal over her involvement in the protest against the Dakota Access oil pipeline. Woodley, star of the Divergent series, was one of 27 people arrested at the site last October. She has now signed a document agreeing to plead guilty to misdemeanour disorderly conduct, which would mean she would avoid jail. The pipeline project has been highly controversial and drawn huge protests. Native Americans say it will desecrate sacred land and damage the environment. What's behind the controversy? Woodley, who livestreamed her arrest on Facebook, initially pleaded not guilty to criminal trespass and engaging in a riot. Her plea deal, which is awaiting the approval of a judge, would see her serve a year's unsupervised probation and forfeit a $500 (?400) bond. The actress, who is also known for roles in The Fault in Our Stars and Big Little Lies, was scheduled to stand trial on Friday. Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -3452,2017/3/27,http://tass.com/world/937847,Transnistrian leader demands border conflict with Moldova be discussed in 5+2 format,"""This is the format where each party can voice its opinion,"" Vadim Krasnoselsky said","TIRASPOL, March 28. /TASS/. Leader of the unrecognized republic of Transnistria Vadim Krasnoselsky said on Monday he is worried over Moldova's plans to establish control over the Transnistrian section of the border with Ukraine and Chisinau's unwillingness to disucc this problem in the 5+2 format involving Moldova and Transnistria as parties to the conflict, Russia, Ukraine and the European security watchdog OSCE as mediators and the United States and the European Union as observers. ""Any dialogue should be maintained as part of the negotiating process in any format. We specially hail the 5+2 format,"" Krasnoselsky's press service quoted him as saying at a meeting with Thomas Mayr-Harting, Managing Director for Europe and Central Asia in the European External Action Service. ""This is the format where each party can voice its opinion. It is very bad when a side decides that it is inadmissible to discuss this of that issue in this format. The issue at question now is Moldova's plans to deploy customs and border checkpoints in Ukraine's territory,"" he said. Tiraspol is afraid that this way Chisinau is seeking to establish control over Transnistria's foreign trade and exert pressure on the republic. Notably, no Russian peacekeepers are deployed at this border section and hence clashes between Moldova's and Transnistria's law enforcers cannot be ruled out. The Moldovan government said earlier that the first joint border checkpoint will be opened before the yearend near the settlement of Kuchurgany. If it is done successfully, Chisinau will use this experience at other Ukrainian checkpoints along the Transnistrian border section. Chisinau however dismisses Tiraspol's concerns saying that this step is meant solely against border trespassers and smugglers. As of today, this border section is controlled by Ukraine which shares data on Transnistrian trade operations with Chisinau. Transnistria, a largely Russian-speaking region, broke away from Moldova following the collapse of the Soviet Union in 1991. Its relations with Moldova's central government in Chisinau have been highly mixed and extremely tense at times ever since then. In 1992 and 1993, tensions erupted into a bloody armed conflict that claimed the lives of hundreds of people on both sides. The fratricidal war was stopped after a peace agreement was signed in Moscow in 1992 and Russian peacekeepers were brought into the conflict area. Negotiations on the conflict's peaceful settlement known as the 5+2 format talks started after that.", -3453,2017/3/27,http://tass.com/world/937835,Source claims Russian diplomat will meet with Syrian government's delegation in Geneva,,"GENEVA, March 27. /TASS/. Russian Deputy Foreign Minister Gennady Gatilov will meet with the Syrian government delegation to the intra-Syrian talks in Geneva on March 28, a diplomatic source told TASS on Monday. ""The meeting will take place on Tuesday morning,"" the source said. According to earlier reports, Gatilov and director of the Russian foreign ministry's Middle East and North Africa department Sergei Vershinin are to arrive in Geneva to hold consultations with the Syrian delegations.", -3454,2017/3/27,http://tass.com/politics/937829,Russian PM hopes Iranian president's visit will open new page in bilateral relations,,"GORKI, March 27. /TASS/. Russian Prime Minister Dmitry Medvedev said on Monday he hopes the current visit to Russia by Iranian President Hassan Rouhani will open a new page in relations between the two countries. ""Currently, our countries have very cordial and advanced relations and your visit will help make them even more close,"" Medvedev said at a meeting with the Iranian president. ""I would like to express confidence that your visit will open a new page in the Russian-Iranian cooperation."" The Iranian president, in turn, noted ""positive dynamics"" in relations between his country and Russia in the recent years. """"President [Vladimir] Putin's visit to Teheran is seen as a new starting point in the development of bilateral relations. I hope we will see another turning point in the development of relations during this visit,"" Rouhani said. According to Russia's Federal Customs Service, trade between Russia and Iran increased by 70.1% in 2016 to exceed 2.18 billion U.S. dollars. Russia's exports grew by 85.1% to reach 1.88 billion U.S. dollars, and imports from Iran increased by 13.2%, to 302 million US dollars. Russia's main exports to Iran are machinery and equipment, food products, metals, timber and chemicals. Basic imports from Iran in 2016 were food products and agricultural raw materials (77%), chemicals (more than 16%), machinery and equipment, mineral products and textiles. The Iranian president is currently on an official visit to Russia at the invitation of Russian President Vladimir Putin. Talks between the two leaders are planned for March 28.", -3455,2017/3/27,http://tass.com/world/937833,"Assad's resignation seen as key aspect of political transition in Syria ""?HNC's negotiator",,"GENEVA, March 27. /TASS/. Syrian President Bashar Assad's exit is a key aspect of political settlement in Syria, Nasr al-Hariri, the chief negotiator for Syria's opposition High Negotiations Committee (HNC), said on Monday after a meeting with United Nations Secretary General's Deputy Special Envoy for Syria Ramzi Izz Eddin Ramzi. ""Today, we continued to discuss the political period and a constitutional declaration that will be in effect in the transition period,"" he said. ""All of this is reflected in our documents. Today, we had detailed discussions and I hope they will be continued in the coming days."" ""We reiterated at the beginning of the meeting that the key aspect of political process is stepping down of Bashar Assad and all those who took part in the crimes against the Syrian people,"" he stressed.", -3456,2017/3/27,http://tass.com/defense/937826,"About 3,000 troops to take part in missile force's drills in central Russia","During the drills, the soldiers will practice an emergency withdrawal from their permanent bases amid the threat of a terrorist attack","MOSCOW, March 27. /TASS/. About 3,000 servicemen and over 200 pieces of military hardware will be involved in the drills of a missile army headquartered in Vladimir in central Russia, the Defense Ministry's press office reported on Monday. The commission of the Strategic Missile Force command has launched a comprehensive check of units and formations making part of the Vladimir missile army, the press office said. ""During the check, a command and staff exercise will be held under the direction of Strategic Missile Force Commander Colonel-General Sergei Karakayev. Overall, the check and the drills will involve about 3,000 servicemen and over 200 pieces of combat hardware,"" the Defense Ministry press office said. The missile army's units and formations will be checked for all the components and criteria of combat readiness, combat alert, the personnel's moral and psychological condition and their counteraction to terrorism, the press office said. During the drills, the Teikovo missile division in the Ivanovo Region in central Russia will practice an emergency withdrawal of units and formations from their permanent bases amid the threat of a terrorist attack. The troops will be accomplishing missions amid the activity of illegal armed formations. Drones will be used to detect terrorist groups. The Teikovo missile division is armed with Topol-M and Yars mobile missile systems. Overall, about 10,000 servicemen and 1,000 pieces of military hardware from more than 35 units and formations will undergo a combat readiness check in the Strategic Missile Force, following the end of the winter training period. ", -3457,2017/3/27,http://tass.com/economy/937831,Russia to spend $15.8 mln on promotion of 'Russian Arctic' brand,By 2020 the new brand will be familiar to every third Russian citizen,"MOSCOW, March 27. /TASS/. Russia will spend 900 mln rubles ($15.8 mln) on promotion of the Russkaya Arktika (Russian Arctic) brand in 2017-2025, according to the document the Economic Development Ministry prepared for the meeting of the State Commission for the Arctic. A copy of the document was made available to TASS. By 2020 the new brand will be familiar to every third Russian citizen, the ministry said. The creation of the ""Russian Arctic"" brand is one of the components of the subprogram on formation and implementation of Russia's state information policy in the Arctic region. The Economic Development Ministry and with the Culture Ministry are responsible for the sub-program's implementation. The sub-program envisages budget spending worth 5.1 billion rubles ($89.5 mln) in 2017-2025. Besides promotion of the Russian Arctic brand, the sub-program envisages funds to maintain the activities of the information and analytical center. For these purposes the government will allocate 25 million rubles ($439,062) annually in 2017-2025. In addition, 1.6 billion rubles ($28.1 mln) will be allocated for the development of an information resource on the socio-economic development of the Russian Arctic region. ""As the result of the program's implementation it is expected that the share of citizens of the Russian Federation, who are aware of the state's activities in the Arctic and the history of its development will be about 45% by 2020, and the share of citizens who identify the Russian Arctic territorial brand will be 30%,"" according to the document.", -3458,2017/3/27,http://tass.com/sport/937830,"Russian footballers must ""Force own game""?on Belgium in Sochi friendly match ""?coach",The Russian team aims to put up its best performance during the upcoming friendlies on its home turf,"MOSCOW, March 27. /TASS/. The Russian national football team must do its best ""Forcing own game""?on the skilled Belgian squad during their friendly match in Russia's Black Sea resort city of Sochi on Tuesday night, Russian team's Head Coach Stanislav Cherchesov, said on Monday. Addressing a news conference ahead of the match, Cherchesov said the game ""would not be easier or more complicated"" compared to the previous ones played by his team, but totally different, ""because the Belgians are systematic, more rapid in moving a ball across the field and prone to combinations."" ""We will have to adjust to their game, but we will also have to force our game on them as well to gain some advantage over this squad,"" Cherchesov said. The Russian team aims to put up its best performance during the upcoming friendlies on-its home turf as the country is gearing up to host the 2017 FIFA Confederations Cup and the 2018 FIFA World Cup. However, hosts Russia lost 0-2 last Friday to guests Cote d""�Ivoire in the friendly match held at the newly opened stadium in the southern city of Krasnodar. Commenting on his team's result against the African team ahead of the friendly with Belgium, Cherchesov said the players deserved criticism and conclusions must follow. ""First of all, criticism must always follow, even after the victories and, moreover, within the team,"" the Russian coach told a news conference. ""The criticism is inevitable after defeats and it should be treated in a calm nature with the necessary conclusions afterwards."" ""Positive moments should be seen in defeats and relevant conclusions should be drawn,"" the Russian team's head coach said. The new football stadium in Krasnodar was opened in early October last year with the inaugural friendly match between the national teams of Russia and Costa Rica. The guests not only scored the first official goal at the new stadium, but eventually won the game beating hosts Russia 4-3. March 28 friendly match between Russia and Belgium is scheduled to kick-off at the famous Fisht Arena in Sochi at 7:00 p.m. Moscow time (16:00 GMT). It will be the inaugural international football fixture at the recently reconstructed sports facility in Russia's south. The Fisht Arena, which hosted the opening and closing ceremonies of the 2014 Winter Olympics and Paralympics in Sochi, underwent reconstruction works to be adjusted for hosting matches of the 2017 FIFA Confederations Cup and 2018 FIFA World Cup. The head-to-head statistics for Russia and Belgium is totally unfavorable for the hosting team. Belgium defeated Russia 3-2 at 2002 FIFA World Cup, then marched by the Russian squad with confident 2-0 victory in a friendly match in 2010 and during the most recent encounter at the 2014 FIFA World Cup edged the Russian 1-0. According to FIFA's most recently issued monthly ranking list of the best international teams, Russia remained at the cellar-bottom 60th position, while the so-called ""�Red Devils""?squad from Belgium was solid in the top-ten holding the fifth position (following world's best Argentina, Brazil, Germany and Chile). National teams around the globe are currently in the qualifying stage battling for a place in the 2018 FIFA World Cup, while Russia as the host nation has been already guaranteed a berth in the world's main quadrennial football event. Therefore, the Russian national team is playing friendly football matches in the run-up to the much anticipated 2017 FIFA Confederations Cup and the 2018 FIFA World Cup.", -3459,2017/3/27,http://tass.com/world/937827,UN denies rumors of Staffan de Mistura's resignation,"The Secretary General is ""very pleased"" with the work the UN's envoy on Syria is doing","UNITED NATIONS, March 27./TASS/. UN Secretary General is very pleased with the work of his Special Envoy for Syria Staffan de Mistura and has no plans to sack him, Deputy Spokesman for the UN Secretary-General, Farhan Haq, told TASS on Monday in comments on rumors about de Mistura's resignation. ""The rumors are not true. Staffan de Mistura continues his job, the Secretary General is very pleased with the work that his envoy has been doing and gives him his full support,"" the diplomat said. Farhan Haq said the future of the envoy for Syria does not depend on the current round of talks between Damascus and the opposition. ""No, it doesn't depend on it,"" he said. ""As you know we've had different envoys and he (de Mistura) is the third but right now he is the person on the job, he is very committed to it and he has been doing a good job,"" Farhan Haq said. ""He serves at the pleasure of the Secretary General and the Secretary General is currently committed to having him to these talks,"" he added. On March 25, Al Arabiya TV reported referring to its own sources that de Mistura will quit his office in mid-April and is expected to take the position of deputy head of the UN Development Program. The television named UN Special Coordinator for Lebanon Sigrid Kaag or Bosnian politician Haris Silajdzie as possible candidates for his post. Other Arab media outlets reported earlier that de Mistura's contract expires on March 31 and will not be extended. Rumors about possible resignation of the envoy for Syria have been circulating in media for more than a year. Over the recent months, the UN Secretary General's Office has refuted these reports at least twice - in August and in November. Reports in social networking systems early in the year about de Mistura's suffering a heart attack have also proved to be untrue. De Mistura replaced Algerian diplomat Lakhdar Brahimi who resigned as envoy for Syria in May 2014 after working in this position for two years and helping to convene two rounds of intra-Syrian talks in Geneva. Former UN Secretary General Kofi Annan was the first envoy for Syria, quitting the post in August 2012. Late in September de Mistura told a session of the UN Security Council: ""...any sign of my-resigning would be a signal that the international community is abandoning the Syrians,"" saying he would continue his job.", -3460,2017/3/27,http://tass.com/politics/937825,Prominent Russian lawyer vows to look into detention of journalists during Moscow rallies,"According to the authorities, more than 600 people, including the rally's organizer Alexei Navalny, were detained on Sunday","MOSCOW, March 27. /TASS/. Chairman of the Public Council under the Russian Interior Ministry Anatoly Kucherena has pledged to consider each case of detention of journalists during Sunday's unauthorized opposition rally in central Moscow. According to media reports, a journalist from the Ekho Moskvy radio station, Alexander Plyushchev, was detained at Sunday's rally. Ekho Moskvy's editor-in-chief Alexei Venediktov has reportedly asked Kucherena to probe into the incident. According to Venediktov, some journalists who were highlighting the rally were taken to police stations and could not do their job. ""It was discussed that journalists who are covering such events should be seen by policemen and be treated duly. This issue will be considered as soon as we receive the request [from Venediktov],"" Kucherena told TASS, adding he has not yet seen Venediktov's request. Kucherena noted that it is important to see to it both journalists and policemen working at such rallies do not hinder each other as all of them do their job. ""Any information concerning professional activities of journalists is always in sight of the Public Council under the Russian Interior Ministry and each case will be addressed separately. It is important to make sure that all problems that might emerge during such mass events are resolved within the legal framework,"" he added. According to Moscow's authorities, more than 600 people, including the rally's organizer Alexei Navalny, were detained on Sunday during the opposition rally in central Moscow.", -3461,2017/3/27,http://tass.com/economy/937812,Foreign minister says Italy may participate in SPIEF 2017,,"MOSCOW, March 27. /TASS/. Italy will endeavor to participate at a high level in the St. Petersburg International Economic Forum (SPIEF) in 2017, Foreign Minister Angelino Alfano said on Monday after meeting with Russia's Deputy Prime Minister Arkady Dvorkovich. ""We talked about the St. Petersburg Forum. I would like to appreciate once again the work performed last year. We will definitely endeavor to ensure participation at an appropriate level this year also,"" Alfano said. The second day of June is the public holiday [the Day of Republic] in Italy, Alfano said. ""However, since the Forum lasts three days, from June 1 to 3, I think we will able to ensure official participation of an appropriate level,"" the foreign minister said. Many Italian majors confirmed their participation in the SPIEF, Alfano added. It was reported earlier the St. Petersburg International Economic Forum will be held this year on June 1-3, 2017.", -3462,2017/3/27,http://www.dw.com/en/six-families-of-germanwings-2015-crash-victims-to-sue-over-compensation/a-38151435?maca=en-rss-en-all-1573-rdf,Six families of Germanwings 2015 crash victims to sue over compensation,"Six families of victims of the 2015 Germanwings crash are suing the airline, its parent company Lufthansa and insurers. Flight 9525 crashed into the French Alps, killing all 150 people on board in 2015.","The amount of compensation requested by the victims' familiwes was not disclosed, but a lawyer for the families from Spain, Paraguay and Britain called the amounts that had been offered to date ""insulting."" The relatives have reportedly demanded a doubling of a-25,000 euro-($27,160) per victim compensation offer, according to an article-in ""The Irish Times."" A number of families have already settled their claims with the airline. Co-pilot Andreas-Lubitz-deliberately steered the Airbus A320-into a mountain en route from Barcelona to D��sseldorf on March 24, 2015, the official investigation report found.- ""The system failed and allowed an unqualified person to control a plane with 140 passengers on board,"" said a spokesperson-for the six families, Narcis Motje, who lost his son Jordi, 37, in the crash. A further ten people who-died in the crash were Germanwings staff. ""We want the whole truth and all those responsible to be investigated, so that something like this never happens again,"" Motje said. On Friday the father of Lubitz claimed his son had not been depressed-at the time of the disaster and said he has doubts-that his son deliberately crashed the plane. Victims' families have criticized the timing of his announcement, as it fell on the two-year anniversary of the disaster. Prosecutors had concluded that Lubitz was struggling with depression-at the time and bore sole responsibility for the tragedy. They believe the 27-year-old locked the captain out of the cockpit of the Airbus A320 from Barcelona to D��sseldorf before changing the flight's course. jbh/gsw (dpa) -", -3463,2017/3/27,http://www.dw.com/en/trump-son-in-law-jared-kushner-to-face-questions-on-russia-in-congress/a-38151298?maca=en-rss-en-all-1573-rdf,Trump son-in-law Jared Kushner to face questions on Russia in Congress,The president's son-in-law has agreed to appear before the Senate intelligence committee to answer questions regarding Trump's ties to Russia. Kushner met with executives of a sanctioned Russian bank during the campaign.,"Jared Kushner has agreed to be interviewed by the senators of the intelligence committee as part of-their investigation into whether the Kremlin interfered in the 2016 presidential election, the White House confirmed on Monday. Committee members had sought to question the 36-year old in his role as Trump's main intermediary with foreign governments during his campaign. ""Mr. Kushner will certainly not be the last person the committee calls to give testimony, but we expect him to be able to provide answers to key questions that have arisen in our inquiry,"" committee chairman, Republican Richard Burr, and vice-chair Mark Warner, a Democrat, said in a joint statement. Meetings with sanctioned bankers The panel is particularly interested in two meetings Kushner set up with Russian Ambassador Sergei Kislyak and in a talk between Kushner and the head of state-owned Russian development bank Vnesheconombank (VEB), the ""New York Times"" reported. VEB confirmed to news agency RIA on Monday that its executives had held meetings with Kushner. These talks took place ""in the format of a strategy development roadshow"", RIA said. Russian ambassador Sergey Kiylyak reportedly met with Kushner and Michael Flynn in December, shortly after Trump was elected president, but before he took office A December meeting between Kushner and Kislyak at Trump Tower in New York was reportedly also attended by Michael Flynn. Trump's short-lived national security advisor resigned-in February, after it was revealed that he had misrepresented his conversations with Kislyak. Flynn allegedly hinted to the ambassador that the US might lift the sanctions against Russia under Trump. VEB is among the banks affected by sanctions the Obama administration imposed on Russia after the-annexation of-Crimea in 2014. Kushner highest-ranking official questioned Kushner is considered one of Trump's key advisors in the West Wing. The president's son-in-law was recently named head of a newly created Office of Innovation.- He is the fourth-associate of Trump's whom congressional committees are planning to question in their attempt to look-into allegations that the president's campaign team colluded with Russia. The other three were members of the Trump campaign team, but - unlike Kushner - do not hold any positions in the current administration:-former campaign chairman, Paul Manafort, and campaign advisers Carter Page and Roger Stone. While it is not unusual for staff of a presidential candidate to meet with foreign officials while seeking election, the Trump campaign has faced questions about whether its talks-with Russian officials could have violated any laws. A week ago, Devin Nunes, the chair of the House intelligence committee, said that there was ""no evidence of collusion"" US intelligence believes that the Kremlin tried to influence the 2016 presidential election in favor of the president, orchestrating the hacking of Democratic Party computers and releasing information harmful to then-candidate-Hillary Clinton. Both the Kremlin-and the Trump administration have denied these allegations.- The FBI, along with both of the intelligence committees in the House and the Senate,-is currently conducting an investigation into the matter. The validity of the House investigation in particular has been questioned because the chairman of the House intelligence committee,-Republican Devin Nunes, was a member of Trump's presidential transition team. Critics have said that casts-doubt on whether he can lead-an independent probe. mb/gsw (AFP,-AP,-Reuters)", -3464,2017/3/27,http://www.dw.com/en/venezuela-pushes-back-against-oas-suspension-warnings/a-38150709?maca=en-rss-en-all-1573-rdf,Venezuela pushes back against OAS suspension warnings,"The Washington-based Organization of American States (OAS) has called for Venezuela to be suspended from the group unless it holds fresh elections. Ahead of a special OAS meeting, Caracas called the proposed move illegal","Venezuela's Foreign Minister Delcy Rodriguez (photo) called for Tuesday's OAS meeting in Washington to be canceled because it ""infringes the rules of the organization,"" she said, addressing a session of the regional body in Washington on Monday. The OAS is due to hold a debate on possible suspension of Venezuela if it does not hold elections this year. The regional body can suspend a country when the ""democratic order"" is ""altered."" Rodriguez condemned the actions of the OAS Secretary General Luis Almagro, a Uruguayan lawyer, former foreign affairs minister and diplomat, whom she accused of dishonesty. She claimed he had dedicated his time as OAS leader to working against Venezuela and its people. Government critic Frustrations in Venezuela have mounted as a bitter years-long recession grips the country, leading to shortages of food and other essential goods. The country has seen mass protests blaming the government for Venezuela's woes. In a report on the country, Almagro noted that President Nicolas Maduro canceled both a referendum that could have recalled his government and later regional elections, after the opposition made huge gains in parliamentary voting in 2015. Thousands of people have been arrested for their political beliefs, Almagro said, including opposition leader Leopoldo Lopez, who has been in jail for three years. The Venezuela foreign ministry issued a statement claiming there was ""ongoing harassment"" against Venezuela by the-US, the General Secretariat of the OAS and ""a group of countries that have conformed a minority faction."" The statement went on to say, ""Venezuela categorically rejects the interventionist plan that a minority faction of countries inside the OAS is trying to carry out against our Homeland."" Last Thursday, a group of 14 OAS nations urged Venezuela to hold elections and release ""political prisoners."" Mexico, which rarely makes statements on the affairs of its Latin American neighbors, said it was aimed at encouraging Venezuela to ""re-establish democracy."" Foreign Minister Luis Videgaray called for dialogue and negotiation to resolve the political crisis in Venezuela which has led to severe food and fuel shortages. Argentina, Brazil, Canada, Chile, Colombia, Costa Rica, Guatemala, Honduras, Mexico, Panama, Paraguay, Peru, the United States and Uruguay all signed the document, expressing their ""deep concern"" over-Venezuela's political, economic and social crisis. People wait in line to fill the tanks of their cars in oil-rich Venezuela after rumors of shortages Missing an OAS majority? However, the OAS needs a two-thirds majority of its 35 members in order to suspend Venezuela, and there are countries in the region, especially in the Caribbean, which have seen the benefits of subsidized oil via the Caracas government for many years. They are unlikely to vote for its suspension from the OAS. In the past, the OAS suspended Cuba in 1962 as well as Honduras in 2009, following a right-wing coup. Venezuela's socialist President Maduro has accused his opponents and foreign allies of an ""economic war"" intended to set off a coup against him. Government officials have announced an ""anti-imperialist"" march for Tuesday to coincide with the OAS session in Washington. jm/gsw-(EFE, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZrTk -", -3465,2017/3/27,http://www.dw.com/en/at-aipac-hardly-a-mention-of-a-future-palestinian-state/a-38150701?maca=en-rss-en-all-1573-rdf,"At AIPAC, hardly a mention of a future Palestinian state","By some estimates, the two-state solution has been dead for years. With Israeli leadership turning ever more to the right and a White House that seems fine with that, the two-state solution may have taken its last gasps.","Putting an exact time and date of death on the two-state solution has been difficult. It is telling that US President Donald Trump was able to-undo decades of US foreign policy efforts at his press conference alongside Israeli Prime Minister Benjamin Netanyahu with a casual ""I like the one both parties like"" line. It is even more telling that hardly any of the main speakers at of the American Israel Public Affairs Committee's (AIPAC) annual Policy Conference devoted lip service to the idea of a Palestinian state. Even Netanyahu's address, the highlight of this year's session, did not contain the usual phrase ""two states for two peoples, living side-by-side in peace and security."" This sentence could be found in almost every Netanyahu address on the subject up until now. Instead, AIPAC this year was devoted to the dangers of a nuclear Iran, the rise of worldwide militant Islam and fighting the Boycott, Divest, and Sanctions (BDS) movement that has become popular on US college campuses. These subjects have a broader swath of consensus among conference attendees. Of the more than 70 breakout sessions offered to conference participants and open to the press, only five mentioned the Palestinians, and one dealt directly with hypothetical future peace deals with the Palestinians. No forward motion The fact that the peace process has fallen out of vogue may be that there simply hasn't been much movement one way or another for several years, said Harold Waller, a professor of political science at McGill University. All parties are showing a stubborn unwillingness to acknowledge each other. Trump met with Netanyahu in February -""There's not much happening right now with regard to the peace process,"" Waller told DW. ""Things are still fairly hostile."" One can't really blame the change in US administrations either, Waller said. ""Under Obama, the US wasn't very effective. In fact, it may have been counter-productive, because it was clear that in order for Israel to feel comfortable with an agreement, it had to feel comfortable that it was getting backing from the US,"" Waller said. ""That backing was not apparent under the Obama administration."" Given the chummy overtures Trump and Netanyahu broadcast together at their joint press conference, Israel may feel much more comfortable. But the Palestinians are unlikely to trust Trump, Waller contended. ""They're at a stalemate,"" he said. A regional effort? Dov Waxman, the Stotsky Professor of Jewish Historical and Cultural Studies at Northeastern University, didn't think the situation was quite that dire. ""There is some movement,"" Waxman said. ""There is some discussion about possibly bringing in more regional actors into the peace process."" Peace talks stalled during the Obama administration Those regional actors would include Egypt, Saudi Arabia, and the Gulf states, all of which have ongoing behind-the-scenes relationships with Israel, but openly preach both anti-Israel and anti-Semitic propaganda, and thus have little to gain by suddenly making nice publicly with the Jewish state. ""That's about as encouraging as I can be,"" Waxman said with a laugh. And while the Trump administration may want to sincerely broker a deal, even if they could get the Palestinians on board, there was little in the way of apparent details or action plans coming from Washington. ""They don't have a fleshed-out strategy, other than making it a regional process,"" Waxman said. ""And they will quickly run into the same obstacles Obama, and every US president before him stretching back to 1967 or even 1948, encountered."" The Americans' dream The idea of another party coming to broker a deal looks, at this moment, unlikely. The international community holds little credibility in the Israeli view. ""The Americans are the only party of credibility with Israel,"" said Waller. ""I don't know how high of a priority [the peace process] will be for President Trump.""", -3466,2017/3/27,http://www.dw.com/en/a-new-kind-of-russian-spring/a-38150606?maca=en-rss-en-all-1573-rdf,A new kind of Russian spring,"Russia's largest protests in five years have taken many by surprise, being led mostly by young people demonstrating against state corruption. What may it mean for President Vladimir Putin?","Pro-Russian separatists called their armed movements in Crimea and eastern Ukraine a ""Russian Spring."" The term may take on new meaning following Sunday's protests in Russia, which contrary to events in Ukraine, may unsettle the Kremlin. Thousands of people took to the streets from Moscow to Vladivostok to protest the state. Such a mass demonstration has not been seen in five years. Young people were heeding the call of opposition figure Alexei Navalny, who levied corruption charges against Prime Minister Dmitry Medvedev in a video. Many of the protests, including those in Moscow, were not officially sanctioned, leading to hundreds of arrests, including of Navalny. A Moscow court sentenced him to 15 days' jail time and a fine of 300 euros ($326). The weekend protests were the next chapter following those from May 2012, when Vladimir Putin was set to begin his third term as president and thousands protested against it. The months' long, mostly peaceful movement escalated. Many protesters were arrested and sentenced to prison terms, frustrating the opposition's momentum. Navalny was setenced to 15 days in jail for his role in the protests The man behind the protests Presidential elections are coming up in 2018, with Putin expected to run again. Navalny, who spawned the last round of anti-Putin protests, has signaled his desire to run as well. It remains unclear if he will be allowed due to a court ruling against him in February in a financial crimes case. The case is being appealed at the next Russian court, however Navalny is looking to the European Court of Human Rights in Strasbourg for help outside of Russian state influence. The 40-year-old made a name for himself as a corruption-fighting blogger. Early on, he had been criticized for his nationalistic tone and was credited with receiving a quarter of all votes cast in the 2013 Moscow mayoral election. Target: Medvedev Navalny made headlines by accusing state leaders of corruption. ""Corruption has the public simmering. It is the most important political issue,"" he told DW in 2016, though admitted it was difficult to mobilize the Russian people against it. On the day of the protests, March 26, Medvedev was skiing - this photo was taken in 2013 His documentaries about corruption seem now to have hit a nerve. His newest about Prime Minister Medvedev's alleged corruption has garnered 12 million views. In the film, he claims Medvedev used a network of foundations to secretly buy up mansions, vineyards and yachts. Medvedev's spokesman called the film just part of the election campaign. Despite the noise, 10 percent of surveyed voters have said they would support Navalny in the presidential election, according to the internationally respected Levada Center. Putin's support remains at 80 percent. Students against Putin Although some in Russia are puzzled by Navalny's success in mustering relatively large anti-government support, some students have heeded the call. An arrest of a student a few days ago in Bryansk, a city south of Moscow, caused a stir. A secretly-made recording of a conversation between the school's principal and the class went viral on social media. In it, a student is heard to say he is against Putin and Medvedev's United Russia party not because it has made Russia worse, but because the party has been in power too long. Many young people and students took part in the protests Many of the young people who participated in the weekend protests have only known Putin in power, Russian journalist Oleg Kashin told DW. ""Putin would still bother them,"" he said, if only for how long he has been around. Thaw in sight? Overshadowed by Navalny's film and the subsequent protests was another surprise: Communists in the Duma, an opposition party in name only that tends to follow Kremlin wishes, want the corruption allegations investigated. The rare call for a sitting Russian leader to be held accountable has fueled speculation that Putin is looking to sack Medvedev, with some experts suggesting he would succeed the sitting president and bring about more liberal policy - much as Nikita Khrushchev did during the Cold War. Opposition circles in Russia have been talking for weeks about a potential political thaw, based on a few mild rulings handed down by an otherwise stringent judiciary seeing to the release of certain activists and Kremlin critics. Sunday's protest arrests will put the thaw theory to the test, Kashin said, while Navalny continues a fervent game of politics.", -3467,2017/3/27,http://www.dw.com/en/eu-nations-vote-against-gm-crops/a-38150180?maca=en-rss-en-all-1573-rdf,EU nations vote against GM crops,"A majority of EU nations voted against genetically modified corn during a meeting of the EU appeals committee. However, that was not enough to stop GM cultivation. The decision now rests with the Commission.","A majority of EU countries voted on Monday against allowing two new genetically modified crops to be grown in Europe, batting the contentious decision on cultivation of Genetically Modified Organisms (GMO) in Europe back to the EU executive. EU governments were asked to vote on the future of two grades of GM maize, Pioneer's 1507 and Syngenta's Bt11, which kill insects by producing their own pesticide and are also resistant to a particular herbicide. However, the votes against were not decisive in blocking their introduction because the opposition did not represent a ""qualified majority"" - also including countries that make up at least 65 percent of the EU population. The governments were also asked to determine whether to extend authorisation for Monsanto's MON810, an insect-resistant maize that is grown mainly in Spain, but banned in a number of other countries. More countries voted against than in favor, but again the vote was not considered decisive. The European Commission said the outcome counted as a ""no opinion"", meaning it would have to step in to take the decisions for GMOs that had received favourable opinions from the European Food Safety Authority. It added that 17 EU countries had used an opt-out clause, with a further two for part of their territories. ""In practice this means that the three GMOs, if and once authorised at EU level, will not in any case be cultivated on the territories benefiting from the opt out,"" Commission spokesman Enrico Brivio said. Criticism from politicians and activists The German federal government's decision to abstain from voting sparked criticism in Germany.-""Its repeated abstention means passing the buck,"" said Green Party politician and member of German parliament Harald Ebner. He demanded a EU-wide ban of genetically modified corn instead of a ""European rag rug"". Genetically modified rice in a laboratory Mute Schimpf, food campaigner for Friends of the Earth Europe, said the decision now rested with European Commission President Jean-Claude Juncker. ""He can put himself on the side of the majority of countries, citizens and farmers who do not want genetically modified crops, or he can back the mega-corporations behind the industrialisation of our countryside,"" she said. At the end of last year, 55 GM crops were approved for import as feed and food into Europe. While approved for human consumption, in practice the crops are used as animal feed. Repeated EU scientific assessments have concluded that GMO crops are as safe for humans and the environment as their conventional counterparts, but consumer opposition to the technology in Europe remains strong. ""A majority of governments, parliamentarians and Europeans oppose GM crops,"" said Greenpeace EU food policy director Franziska Achterberg. ""Instead of backing risky products peddled by multinational corporations, the Commission should support ecological farming and the solutions it provides for rural areas, farmers and the environment."" MON810 is the only GM crop grown in Europe. A potato developed by BASF was granted approval in 2010, but the German company withdrew it in 2012. bb/bea (reuters, afp, greenpeace)", -3468,2017/3/27,http://www.dw.com/en/police-no-evidence-of-uk-attacker-link-to-is-al-qaeda/a-38123252?maca=en-rss-en-all-1573-rdf,"Police: 'No evidence' of UK attacker link to IS, al Qaeda","Authorities have said they don't believe the man who killed four people outside Parliament had any links to jihadist groups. Khalid Masood's mother has released a statement denouncing her son's ""horrendous"" act.","Police officials said on Monday there was no indication the man who killed four people in London last week was associated with the so-called ""Islamic State"" or al Qaeda jihadist groups. Deputy Assistant Commissioner of the Metropolitan Police-Neil Basu (above) told reporters that British-born Islamic convert-Khalid Masood, 52, clearly had ""an interest in jihad,"" but doubted he discussed plans of an attack with others. On Sunday Basu revealed that police believe Masood likely acted alone and that there was no intelligence to suggest further attacks were planned. The self-styled ""Islamic State"" group (IS) had claimed responsibility for the attack, while-police inquiries since have concentrated on whether Masood was acting with accomplices. Basu, who also serves as the UK's national coordinator for counter-terrorism, said the nature of Wednesday's attack - in which Masood ran over pedestrians on a London bridge before fatally stabbing a police officer - appeared to be based on ""low-sophistication, low-tech, low-cost techniques copied from other attacks."" He was shot dead by police forces shortly after.- Police are reportedly-investigating media reports that Masood checked his encrypted messaging service WhatsApp - or even sent a message --just before the attack, which hinted at others being involved. Masood's mother 'saddened and numbed' Masood's mother Janet Ajao issued a statement through the police on Monday saying she was ""deeply shocked, saddened and numbed"" by her son's murderous rampage. ""Since discovering that it was my son that was responsible I have shed many tears for the people caught up in this horrendous incident,"" Ajao said. ""I know when, where and how Masood committed his atrocities, but now I need to know why,"" Basu said, adding that he was not radicalized during one of his stints in jail, the last of which was in 2003. ""Most importantly, so do the victims and families."" Candles burn on Westminster Bridge the day after an attack in London. 'We may never know' ""We must all accept there is a possibility we will never understand why he did this. That understanding may have died with him,"" Basu added. Two people remain in custody for questioning, neither of-whom have reportedly been charged or identified.-Both were reportedly questioned on Monday. Nine others who had been arrested in connection with the investigation have been released. Of them, two men, one aged 58, and the other 27 --both arrested in Birmingham --are being held under the Terrorism Act. Two women have been released on bail, a 32-year-old arrested in Manchester and a 39-year-old from London. Misjudged threat Masood had been considered by intelligence officers to be a known criminal who posed little serious threat. He had shown up on the periphery of previous terrorism investigations that brought him to the attention of Britain's MI5 spy agency. Masood taught English in Saudi Arabia from November 2005 to November 2006 and again from April 2008 to April 2009, a Saudi Embassy statement released late Friday said. Details about how he became radicalized aren't clear.- Eighty-two seconds Having reconstructed the attack, the police said it had begun at 14:40:08 when Masood's hire car mounted the pavement on Westminster Bridge, weaving along the footpath and road until 14:40:38 when he crashed into the perimeter fence of the Palace of Westminster. He left the car at 14:40:51 and was shot by a police firearms officer, part of the close protection team of the defense secretary Sir Michael Fallon, in the palace courtyard at 14:41:30. At 14:40:59, the first-call to emergency services was made to-report the incident. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Ztot jbh, dm/gsw (Reuters, AP)", -3469,2017/3/27,http://www.dw.com/en/study-asylum-seekers-chances-of-staying-in-germany-vary-dramatically-by-state/a-38149653?maca=en-rss-en-all-1573-rdf,Study: Asylum seekers' chances of staying in Germany vary dramatically by state,"Refugees' chances of gaining asylum in Germany depend not only on threats they may face back home, but also on which German state they live in, a study shows. Its co-author has criticized this as an ""asylum lottery.""","Asylum seekers in the German states of Saarland and Bremen are most likely to be granted asylum, according to a study published at the University of Konstanz-on Monday. The two states' acceptance rates are 69 and 55.7 percent, respectively. Berlin and Saxony have the lowest acceptance rates: only roughly one in four is granted asylum here. Such differences between the states led Gerald Schneider, a political scientist who co-authored the study, to criticize-the application process in Germany as an ""asylum lottery."" Refugees are assigned to states Asylum seekers in Germany are not allowed to choose in which state they want to live and file an application. And although the responsibility for granting asylum officially lies with a federal agency --the Federal Office for Migration and Refugees (BAMF) --it is regional BAMF branches that are usually entrusted with such-decisions. - The study published by Schneider and co-author Lisa Riedel finds that the degree of difference-from state to state varies depending on-an asylum applicant's-country of origin. While acceptance rates for Syrians are fairly similar across all 16 German states, acceptance rates for Iraqis or Afghanis differ-widely. Deportation to Afghanistan is controversial In Lower Saxony, a large state in northwestern Germany, 75.5 percent of all applicants from Iraq were granted asylum from 2010 to 2015. In -the eastern German-state of Saxony-Anhalt, less than half as many Iraqis received asylum. In Germany's biggest state, North Rhine-Westphalia, 34.4 percent of all Afghani asylum seekers were granted the right to stay. In Brandenburg, that number was only 10 percent. While Schneider and Riedel track only whether asylum seekers are granted the right to stay, deportation policies for rejected asylum seekers also vary from state to state. The question of whether Afghanistan can be considered a ""safe country of origin""-has been particularly controversial as of late --some states have recently refused to carry out deportations to the civil-war torn nation. More xenophobic attacks, more rejections Schneider and Riedel suggest that local factors --including people's attitudes towards migrants --have a significant influence on the decision-makers in the regional branches of BAMF. They found-that the more xenophobic attacks were registered in a state, the more likely the local BAMF office was to reject asylum applications. ""A federal agency should be impartial in its-decisions and not be influenced by sensitivities in the states,"" Schneider said. He and co-author Riedel proposed that BAMF guidelines should be stricter to limit agency officials' leeway in decision-making and that BAMF employees' decisions should be monitored more closely to secure equal treatment for asylum seekers, regardless of which state they filed in. A total of 722,370 first-time applicants filed requests for political asylum in Germany in 2016, according to the Federal Office for Migration and Refugees (BAMF). The number reflects a roughly 65 percent increase compared to the previous year, when the total number of new applications stood at 441,899. The number of follow-up applications, however, recorded a decline of 33.3 percent. In 2015, 34,750 second-chance asylum requests were filed with BAMF, whereas in 2016 the number fell to 23,175. Combined, the number of first-time and follow-up applications for 2016 stood at 745,545. In 2015, this number stood at 476,649. So, BAMF recorded a 56.4 percent net increase in the total number of asylum requests in 2016 compared with 2015. The highest number of requests in 2016 were filed by Syrian nationals. According to BAMF's report, people from the war-torn Middle Eastern state submitted 266,250 of the new applications (36.9 percent). Afghan nationals came in second, with 127,012 (17.6 percent), followed by Iraqis, who filed 96,116 asylum requests (13.3 percent) last year. People from Iran filed 26,426 applications (3.7 percent). Eritreans submitted 18,854 applications (2.6 percent). Albanians totaled 14,853 (2.1 percent), 14,484 people from Pakistan requested asylum (2 percent), and Nigerians submitted 12,709 applications (1.8 percent). Nearly three-quarters of the applications filed in 2016 came from people younger than 30 years old. People aged between 18 and 25 filed 196,853 asylum requests, or about 23.5 percent of the overall total, making them the largest age group. The number of applications for children under the age of 4 stood at 78,192 (10.8 percent). German authorities accepted 433,920 people of the 695,733 applications they decided on in 2016. The overall protection rate for all countries of origin amounted to 62.4 percent. Ranging from vandalism to arson, more than 900 attacks on refugee centers were recorded in Germany in 2016. The Federal Criminal Police Office reported that, out of the 921 recorded offenses, 857 were suspected to have had far-right motives. In 2015, 1,031 such offenses were recorded, 923 of which were suspected of having a far-right background. Author: Aasim Saleem mb/tj (AFP, kna)", -3470,2017/3/27,http://www.dw.com/en/second-class-option-for-eu-youth-travel/a-38149781?maca=en-rss-en-all-1573-rdf,Second-class option for EU youth travel,The proposal to gift an Interrail Pass to all EU citizens when they turn 18 was rerouted due to its anticipated cost. A pared-down version is planned.,"What a treat it would have been had certain EU policymakers gotten their way: Spend a few weeks after high school graduation traveling by train through France, Italy, Spain or Croatia - all for free. The proposal put forward by Manfred Weber, MEP from Germany's Christian Social Union (CSU) party, which envisaged giving an Interrail Pass to all EU citizens on their 18th birthday,-would have added to the already 300,000 passes-purchased every year by young travelers wanting to experience much of Europe by rail. But the EU Commission gave Weber and his supporters a dose of reality: The project would have cost between 1.2 and 1.6 billion euros annually ($1.3-1.74 billion) - money the EU does not have. A new, lighter version will help around 5,000 students travel the continent by rail with their classes or alone. The 2.5-million-euro initiative, called ""Move2Learn, Learn2Move,"" will come out of the Erasmus+ education program. Participants must apply online with the same platform that has been coordinating education exchanges across the EU for the last few years. Weber: ""We don't want a bureaucracy monster"" A feel for Europe ""This initiative will give young people the chance to discover and experience other countries and cultures all around Europe first hand,"" said Tibor Navracsics, EU Commissioner for Education, Culture, Youth and Sport. ""[It is] another example of the successful history of Erasmus that brings people together, thereby giving them a sense of what it means to be European."" Selected young travelers will have two weeks between August and December next year to make use of a travel ticket worth 350 euros. In some cases, costs of up to 530 euros will be covered, under the condition that the method of-travel is environmentally friendly. Air travel is to be used as little as possible so as to remain within CO2 emissions limits. 'Bureaucracy monster' Weber, head of the European People's Party Group, is not enthusiastic about the pared-down proposal, the full version of which he originally put forward last September. ""The European Commission is passing on a great opportunity,"" he said. On the occasion of the 60th anniversary of the Treaty of Rome, which established the European Economic Community as a precursor to today's European Union, Weber sees the reduced plan as the creation of a ""bureaucracy monster"" Weber: ""We don't want a bureaucracy monster"" The European Parliament's social-democratic-Party of European Socialists-is less skeptical. It is too easy to criticize everything, said MEP Jens Geier. ""I think it's first and foremost good that the European Commission met MEPs' request to do more for mobility for young people."" EU money needs to be continually spent to this end, not merely shuffled around, he said. ""Move2Learn, Learn2Move"" proves that is happening, according to Geier. Abroad for all The initiative's 5,000 tickets was ""insufficient,"" Geier admitted. -That is why the-European Parliament pushed for more Erasmus funding every year, he said. ""Every young person should have the chance during his or her education to go abroad,"" he added, including those who study and those who cannot or do not want to. Geier would grow Erasmus+ by a factor of 10 if he could, but he opposes Weber's plan for an Interrail Pass for every 18-year-old due to lack of funds and lack of agreement among EU members. ""I do not want to make promises we cannot keep.""?But Weber is not giving up on his original plan. He announced a new effort for 2018 to give every 18-year-old European citizen the chance to ""experience this wonderful continent."" Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZxK6", -3471,2017/3/27,http://www.dw.com/en/rand-drops-as-zuma-recalls-south-africa-s-finance-minister/a-38149137?maca=en-rss-en-all-1573-rdf,Rand drops as Zuma recalls South Africa's finance minister,South African President Jacob Zuma has ordered Finance Minister Gordhan to return from an overseas trip. The recall spooked foreign exchange markets and fueled speculation about a cabinet reshuffle.,"South African President Jacob Zuma asked his Finance Minister Pravin Gordhan on Monday to return home ""immediately"" from an investor roadshow in London, fuelling speculation about a cabinet reshuffle and unnerving investors who see Gordhan as a emblem of stability. The rand fell more than three percent against the US dollar, bonds tumbled and banking shares slid more than three percent after Zuma's office said Gordhan had been recalled. It did not give a reason, but a government source said: ""The presidency did not give permission for the trip."" Speaking in London, Gordhan --who the Treasury said will-return to South Africa on Tuesday --said he was ""just asked to-come back"". Asked if he expected a cabinet reshuffle, Gordhan-said: ""That's the boss's prerogative."" The decision comes a day before a court is due to rule on a request by Gordhan for a declaratory judgment that he cannot interfere with decisions by banks to cut ties with businesses owned by the Gupta brothers, who are friends of Zuma. Zuma's decision to recall Pravin Gordhan from Britain has led to media and opposition speculation that he could be sacked. The two men have had an increasingly uneasy relationship in recent months. Friction has soared between Zuma, who is seeking to fund a ""radical economic transformation"", and Gordhan, who is taking a stand against graft and heavy spending. The main opposition Democratic Alliance warned that the developing incident would be seen as ""a major setback for the economy in South Africa"" and was a prelude to a reshuffle. ""(It) is so bizarre that it appears, at best, calculated to humiliate the minister or, at worst, to suggest that the minister is about to be fired in a cabinet reshuffle,"" said shadow finance minister David Maynier. South Africa's finance minister Pravin Gordhan (right) and president Jacob Zuma Local media have also speculated that the recall is a precursor to a change of personnel at the top of government. ""Fears are growing that President Jacob Zuma will finally pull the trigger and reshuffle his Cabinet,"" wrote the Daily Maverick news site. South Africa's credit rating at risk Business executives and union leaders had also accompanied Gordhan to London to woo potential investors for whom he is a reassuring figure given weak economic growth and tensions within the ruling African National Congress (ANC). Currently rated investment-grade, South Africa was granted a reprieve at the end of last year when rating agencies did not drop it to the ""junk"" investment category following a series of downgrades. However, Africa's most industrialised economy is still seen at risk of slipping into said ""junk"" territory because of sluggish growth and political uncertainty. Fraud charges brought against Gordhan and then dropped last year, prompting accusations of a political ""witch-hunt"", badly rattled financial markets, as did rumors before last month's budget speech that he might be moved from the Treasury. Gordhan first served as finance minister from 2009 to 2014 and was reappointed by Zuma in December 2015 to calm markets spooked by the president's decision to replace respected finance minister Nhlanhla Nene with an obscure lawmaker, triggering panic among investors and a sharp drop in the rand. Analysts said Zuma's move could spell another bout of-political uncertainty and possibly a cabinet reshuffle. ""Any suggestion Zuma is interfering with Gordhan's business-dealings will be a concern for investors and could signal-political instability on the horizon,"" political analyst Daniel-Silke said. Rating agencies S&P and Fitch both rank the-sovereign debt of Africa's most industrialised economy one level-above junk, while Moody's puts it two notches higher. Moody's, which put South Africa on negative watch in its-latest review, is due to review that rating on April 7, followed-by S&P at the beginning of June. - bb/bea (reuters, AFP)", -3472,2017/3/27,http://www.aljazeera.com/news/2017/03/backed-syria-forces-resume-fighting-tabqa-dam-170327173005420.html,US-backed Syria forces resume fighting near Tabqa dam,"SDF says Taqba dam is not damaged and fighting will resume, but monitor casts doubt on whether engineers inspected site. Strategic airbase","US-backed forces in Syria are resuming an offensive against ISIL fighters at a major hydroelectric dam, saying it is in no danger of collapsing amid conflicting claims over its integrity.- The Kurdish-led Syrian Democratic Forces' (SDF) offensive was briefly suspended on Monday, a day after-a senior Syrian government official warned that the Tabqa dam had been damaged by US-led air raids and cited an increasing risk of catastrophic flooding. ISIL had also issued warnings that the dam could collapse ""at any moment"",-releasing pictures showing what it said was the structure's control room after it had been damaged by US air raids. THE SIGNIFICANCE OF TABQA DAM: The Taqba dam, also known as the Euphrates dam, is seen as a prize to push ISIL out of Raqqa, the armed group's self-proclaimed capital in Syria. Located about 40km from Raqqa, the dam is the biggest on the Euphrates. It stretches four kilometres across the river and is one of the few land crossings left as many bridges have been destroyed by fighting. But the dam has also been damaged. Last month, the UN warned that if it collapses there could be massive flooding across Raqqa and as far away as Deir Az-Zor, 150km downstream. The UN estimates about 90,000 people are ""trapped"" in Deir Az-Zor by ISIL. The SDF, an alliance of Arab and Kurdish fighters, paused operations for four hours on Monday to allow engineers to inspect the dam, a major target in their campaign to encircle and capture ISIL's self-declared capital of Raqqa,-located around 40km downstream on the Euphrates river to the east. The SDF later said engineers had entered the dam and found no damage or ""malfunction"". But it remains unclear whether engineers accessed the site.- The Syrian Observatory for Human Rights, a-UK-based monitor tracking developments in Syria's conflict via a network of sources on the ground,-denied the SDF's statement, according to news agencies' reports.- It said technicians inside ISIL-held Tabqa did not reach the dam during the ceasefire to reactivate its main power controls. There was no explanation given. ""If the dam had been breached, the United Nations was warning of a humanitarian disaster with thousands caught up in the flooding,"" Al Jazeera's Alan Fisher, reporting from Beirut, said.- ""The SDF says there is no problem - the makeshift ceasefire is over and the battle for Raqqa a step closer."" READ MORE: The battle for Raqqa explained The dam, which stretches for about four kilometres across the Euphrates, was captured by ISIL at the height of the armed group's expansion in-Syria-and-Iraq-in 2014. The SDF's decision to briefly stop operations followed a request by the Syrian government's water authority, with officials blaming US air raids in the past two days for disrupting internal control systems and putting the dam out of service. ""There was growing concern over the weekend [about the dam's potential collapse]. In fact, ISIL was driving around nearby villages and towns warning them that there was a danger of flooding,"" said Al Jazeera's Fisher. Hakam Tawfik, a structural engineer who worked on the construction of the dam, said it looked like the facility had been critically damaged. ""I've seen the pictures on the internet and the control and operations room had been fully burned, which means there is no control of the water coming into the dam,"" he told Al Jazeera from-Remscheid in Germany. ""This will lead to a real catastrophe, because there is no way from inside the dam to get rid of the water. The situation will escalate because as more cubic metres come in, the situation becomes more dangerous,""- Tawfik added, calling for an emergency operation. ""We need someone to interfere to stop this catastrophe, because water will overcome the dam and we don't know what we could do and how many days it would take to collapse - people living along there along the Euphrates are in danger."" The US-led coalition said on Monday-it saw no imminent danger to the dam, unless ISIL fighters planned to blow it up. ""We do not assess the dam to be in imminent danger unless ISIS plans to destroy it,"" said Colonel Joseph Scrocca, a spokesman for the coalition fighting ISIL, which stands for Islamic State of Iraq and the Levant, and is also known as ISIS. ""The SDF are in control of a spillway north of the dam that provides water to an irrigation reclamation canal which can be used to alleviate pressure on the dam if need be. If the lake reaches dangerous levels the SDF can relieve the pressure through alternative means."" Separately, the SDF- announced on Sunday that it captured the nearby Tabqa airbase from ISIL,- a former Syrian military outpost that had been in the armed group's hands since 2014. The allience said it had met pockets of resistance from ISIL fighters but it had managed to capture the strategically important base with the help of US-led raids. READ MORE: Battle for Raqqa - 'Difficult and complicated' Earlier this week, US forces airlifted SDF fighters and US advisers behind ISIL lines to allow them to launch the Tabqa assault. ""This is a part of the approach""?the [US-led coalition's] assault on Raqqa, and gaining key strategic points, including the nearby airfield and the dam, all become part of the operation,"" said Fisher. The SDF launched its offensive for Raqqa city in November, seizing around two thirds of the surrounding province, according to the Observatory. Source:-Al Jazeera and news agencies", -3473,2017/3/27,http://www.aljazeera.com/news/2017/03/general-strike-paralyses-french-guiana-170327211722833.html,French Guiana paralysed by general strike,Protests over crime rates and cost of living have propelled overseas territory into spotlight of French elections. Campaign issue,"Parts of French Guiana, including schools and shops, were shut down on Monday, amid a general strike-over high crime rates, the cost of living and lack of public services. The French government appealed for calm in its South American territory, which has been gripped by protests that have halted flights, disrupted a rocket launch and prompted travel warnings since late last month.- ""The first priority is the fight against insecurity,"" French President Francois Hollande said. More than 30 labour unions launched the strike, demanding a ""Marshall Plan"" to improve public services and security. The territory, home to about 250,000 people, relies on large injections of public funds and residents say it is often overlooked by the French government. ""This has gone on long enough! All we have is plundered, it's time to recognise the people of Guiana,"" a woman at a barricade blocking access to the airport in the capital Cayenne told AFP news agency on Sunday. Antoine Karma, Guiana's representative to the French senate in Paris, said those in the territory are without basic social services and goods. ""Today, 30 percent of the population still does not have access to drinking water or electricity,"" Karma told French media on Monday. ""We are not treated the same way as the French on the French mainland,"" the socialist party politician said. French Prime Minister Bernard Cazeneuve said a delegation of ministers would be sent to Guiana by the end of the week if certain conditions were met. He did not elaborate on what those conditions were. The French government had previously sent a delegation to negotiate with protesters, but many refused to meet the officials, demanding that French ministers come instead. With less than four weeks until the first round of the French presidential election, the unrest in Guiana has been highlighted by several top candidates. Marine Le Pen, the far-right leader, condemned what she called a ""cruel minimum service"" delivered by French governments to the territory. She also blamed ""mass immigration"" for insecurity, according to local media. Independent centrist candidate Emmanuel Macron, who just completed a tour of France's overseas territories, called for calm, saying the situation was ""serious"". He was later mocked for calling the overseas territory an island, which it is not. Conservative candidate Francois Fillon blamed the situation on ""the failed policies of Francois Hollande"". READ MORE: Marine Le Pen and post-colonial overseas departments The unions part of the strike have called for a complete shutdown of activity on Tuesday, according to the France-Guyane newspaper. Air France and Air Caraibes cancelled all flights into Guiana and schools and universities were closed. The protests also led to the postponement of an Arianespace rocket launch at Europe's Guiana Space Centre in Kourou. Barricades were briefly lifted on Sunday to allow some residents to stock up on food and other supplies before the strike began. Similar unrest gripped French Guiana in 2008 over soaring fuel prices. Schools and the airport were shut down. The strike ended after 11 days, when the government agreed to cut fuel prices. Source:-News agencies", -3474,2017/3/27,http://www.aljazeera.com/news/2017/03/leads-boycott-talks-nuclear-weapons-ban-170327191952287.html,US leads boycott of UN talks on nuclear weapons ban,"UN General Assembly begins negotiations on prohibiting weapons, but without any nuclear-capable states in attendance. 'Disappointment with Obama'","The United States, Britain and France are among almost 40 countries boycotting talks on a nuclear weapons ban treaty at the United Nations, according to Nikki Haley, the US ambassador to the world body. With none of the participants - more than 100 countries - at Monday's talks belonging to the group of states that possess nuclear weapons, the discussions were doomed to failure. According to Haley, the countries skipping the talks ""would love to have a ban on nuclear weapons, but in this day and time we can't honestly say we can protect our people by allowing bad actors to have them and those of us that are good trying to keep peace and safety not to have them."" Speaking as the debate at the UN headquarters in New York got under way, Haley also mentioned North Korea, which has recently has carried out missile tests that violate UN resolutions. ""We have to be realistic. Is there anyone who thinks that North Korea would ban nuclear weapons?"" Haley said. ""North Korea would be the one cheering and all of us and the people we represent would be the ones at risk."" Haley spoke in a group of about 20 ambassadors from US allies who did not join the negotiations, including Britain, France, South Korea, Turkey and a number of countries from eastern Europe. The ambassadors of Russia and China were notably absent, but both major nuclear powers are also sitting out the talks. Britain's UN Ambassador Matthew Rycroft said: ""The UK is not attending the negotiations on a treaty to prohibit nuclear weapons because we do not believe that those negotiations will lead to effective progress on global nuclear disarmament."" Deputy French UN Ambassador Alexis Lamek said the security conditions were not right for a nuclear weapons ban treaty. ""In the current perilous context, considering in particular the proliferation of weapons of mass destruction and their means of delivery, our countries continue to rely on nuclear deterrence for security and stability,"" Lamek said. The new US administration of President Donald Trump is reviewing whether it will reaffirm the goal of a world without nuclear weapons, a White House aide said last week, referring to an aim embraced by previous Republican and Democratic presidents and required by a key arms control treaty. Beatrice Fihn, executive director of the International Campaign to Abolish Nuclear Weapons, said in a statement: ""It is disappointing to see some countries with strong humanitarian records standing with a government which threatens a new arms race."" The UN General Assembly in December adopted a resolution - 113 in favour to 35 against, with 13 abstentions - that decided to ""negotiate a legally binding instrument to prohibit nuclear weapons, leading towards their total elimination"" and encouraged all member states to participate. But Britain, France, Israel, Russia and the US all voted no, while China, India and Pakistan abstained. Even Japan - the only country to have suffered atomic attacks, in 1945 - voted against the talks, saying a lack of consensus over the negotiations could undermine progress on effective nuclear disarmament. Al Jazeera's Rosalind Jordan, reporting from the UN headquarters, said that last year the administration of former US President Barack Obama opposed the resolution that authorised the UN conference on the nuclear weapons. ""It encouraged the NATO members to not take part in this year's negotiations to try to establish what would be a legally binding treaty,"" she said. Leaders of the effort to ban the nuclear weapons include Austria, Ireland, Mexico, Brazil, South Africa and Sweden, supported by hundreds of NGOs. They say the threat of nuclear disaster is growing thanks to tensions fanned by North Korea's nuclear weapons programme and an unpredictable new administration in Washington. ""There was disappointment with the Obama administration, which made some pledges, but then ignored most of them,"" said Fihn. ""And now there are raised worries with the new US president."" Nevertheless, with experience from the campaigns against cluster munitions and landmines, Fihn believes there is a ""good chance"" a treaty will be adopted - if not necessarily after the first phase of negotiations, which will end in July. And such a treaty would oblige major powers to revisit their policies sooner or later - even if, like Russia and the US, they're currently modernising their nuclear weapons arsenal. ""Even if major (nuclear weapon) producers don't sign it, they have a big impact,"" Fihn said of global treaties. ""Look at Russia denying using cluster bombs in Syria. Why? They did not sign (the cluster munition ban), but they know it's bad."" Source:-Al Jazeera and news agencies", -3475,2017/3/27,http://www.aljazeera.com/news/2017/03/aid-workers-killed-ambush-south-sudan-170326164801543.html,UN: Six aid workers killed in an ambush in South Sudan,It is highest number of humanitarian workers killed in one incident since South Sudan descended into conflict in 2013.,"Six aid workers have been killed in an ambush in famine-hit South Sudan, the United Nations said on Sunday, without specifying-what organisation they worked for. The victims were attacked on Saturday as they travelled from the capital, Juba, to the eastern town of Pibor, according to the-UN Office for the Coordination of Humanitarian Affairs (OCHA). ""I am appalled and outraged by the heinous murder of six courageous humanitarians in South Sudan,"" Eugene Owusu, the UN humanitarian coordinator for South Sudan, said in a statement. ""At a time when humanitarian needs have reached unprecedented levels, it is entirely unacceptable that those who are trying to help are being attacked and killed,"" Owusu added. READ MORE: South Sudan famine - Eating water lilies to survive According to OCHA, it was the highest number of humanitarian workers killed in one incident since the start of a civil war more than three years ago. Saturday's ambush followed two other attacks on aid workers this month, shortly after South Sudan-declared famine-last month in two counties of Unity state, saying 100,000 people face starvation and another million are on the brink of famine. After gaining independence from Sudan in 2011, the world's youngest nation-descended into war in December 2013 after President Salva Kiir accused his rival and former deputy Riek Machar of plotting a coup. Tens of thousands have since died and 3.5 million people have been displaced, while a surge in fighting since July has devastated food production in areas that had been stable for farmers. At least 79 humanitarians have been killed in South Sudan since the conflict began, including at least 12 killed this year, OCHA said. ""These attacks against aid workers and aid assets are utterly reprehensible,"" Owusu said. ""They not only put the lives of aid workers at risk, they also threaten the lives of thousands of South Sudanese who rely on our assistance for their survival."" Earlier this month, the government announced plans to charge a levy of $10,000 for each foreign aid worker, which along with the danger of abduction could hurt efforts to help the hungry. On Thursday, UN Secretary-General Antonio Guterres-accused-South Sudan's government of ignoring the plight of tens of thousands of people suffering from famine, 7.5 million in need of humanitarian aid and thousands fleeing the fighting. ""There is a strong consensus that South Sudanese leaders need to do more to demonstrate their commitment to the wellbeing of the country's people, who are among the poorest in the world,"" Guterres said during a UN Security Council briefing.- INTERACTIVE: Mapping six months of hunger in the Horn of Africa Joseph Moum Malok, South Sudan's deputy UN ambassador, said the government ""takes issue with the accusation"", adding that other parts of the country are affected by drought. He also said the government ""will spare no efforts to help address the situation and calls upon the international community to help address this urgent matter"". A confidential UN report, which was seen by the AFP and Reuters news agencies earlier this month, found that the famine was largely caused by Juba's military operations. ""The bulk of evidence suggests that the famine in Unity state has resulted from protracted conflict and, in particular, the cumulative toll of repeated military operations undertaken by the government in southern Unity beginning in 2014,"" the report said. It also said the government is spending its oil revenue on weapons, even as the country descends into a famine. The government rejected the report's allegations. Source:-Al Jazeera and news agencies", -3476,2017/3/27,http://www.aljazeera.com/programmes/insidestory/2017/03/opec-control-oil-market-170327182205191.html,Can OPEC still control the oil market?,Cartel members are debating whether to extend a deal to reduce output.,"The discussion was held in Kuwait, but its outcome could affect the entire world. Oil producing countries are considering further cuts in output to try and force prices higher. Ministers from both OPEC and non-OPEC countries met in Kuwait City on Sunday to review progress on an agreement, made in December, to cut production for six months.- They are due to meet again in April to decide if they want to extend that deal. Kuwait, Iraq and the United Arab Emirates all expect further production cuts. So, will the price of oil rise further? And how badly is OPEC being hurt by shale oil from the US? Presenter: Hazem Sika Guests: Abdullah Baabood - director of the Gulf Study Center at Qatar University Cornelia Meyer - energy expert John Sfakianakis - former chief economic adviser at the Saudi ministry of finance Source:-Al Jazeera News", -3477,2017/3/27,http://www.aljazeera.com/news/2017/03/greece-asylum-seeking-man-hanged-piraeus-port-170327125951052.html,Greece: Asylum seeking man found hanged at Piraeus port,"Man carrying asylum application papers found dead close to a passenger ferry terminal in Greece's biggest port. 'Vulnerable, in need of help'","Greek authorities are investigating the apparent suicide of a man, believed to be a refugee, at the port of Piraeus. The man, who was carrying asylum application papers, was found hanged early on Monday close to- a passenger ferry terminal at Greece's biggest port near the capital, Athens, the coastguard said. A coastguard spokesperson told Al Jazeera that the man had not yet been identified and an autopsy was pending. READ MORE: Spurned, hopeless and attacked, refugees' drama goes on Greek media, however, said that the man was a 25-year-old refugee from Syria, citing unnamed sources. His identity could not be independently verified. An estimated 62,000 refugees and migrants are currently stranded in mainland Greece and its islands owing to a wave of European border closures and a controversial deal between the European Union and Turkey in March 2016. Since then, tensions across Greece have often boiled over as the relocation process moves slowly, is applied inconsistently and fraught with particular difficulties,-including refugees having to navigate a complex legal asylum system in foreign languages. Please #fortressEurope tell us again how successful the #EUTurkeyDeal is: Syrian #refugeesGR found hanged at Piraeus https://t.co/JlqHTjcXZZ Amid the lags and the despair, some attempt to kill themselves and many self-harm, according to rights groups. READ MORE: Refugees attempt suicide by hanging from tree in Greece Kuriakos Katsadoros, a psychiatrist with Klimaka, a suicide prevention NGO that runs a helpline in Greece, said that people who have risked everything to find a better future are often shouldering a considerable burden of mental health problems. ""Under these conditions, tense situations could lead to such unfortunate incidents,"" said Katsadoros, the scientific director of Klimaka's Greek Suicide Prevention Centre.- ""And amid such large numbers, there are people who are vulnerable and in need of help - which they often can't find, unfortunately, in Greece,"" he told Al Jazeera. ""They need support, not only from the strained Greek authorities but also from Europe."" Source:-Al Jazeera News", -3478,2017/3/27,http://www.aljazeera.com/news/2017/03/london-ireland-time-power-sharing-deal-170327170051899.html,London gives N Ireland more time for power-sharing deal,"Northern Ireland parties have ""short window of opportunity"" to avoid suspension of self-rule despite expired deadline. Multiple grievances","The British government has given Northern Ireland's largest political parties extra time to form a power-sharing regional government,-after a deadline to resolve their differences expired. The extension on Monday staved off the risk of a suspension of devolved power for the first time in a decade. James Brokenshire, Northern Ireland secretary of the United Kingdom, said the failure of the talks was ""extremely disappointing"", but he saw a ""short window of opportunity"" of several weeks for more talks. ""I think there are a few short weeks in which to resolve matters,"" Brokenshire said shortly after the three-week deadline expired at 15:00 GMT. He did not explain on what basis more time would be given. While the law obliges him to call new elections, which would be the third in 12 months, it also gives him some leeway on when exactly to hold them. Brokenshire-said there was no appetite for a return to direct rule from London, a move which would require the law to be changed, but which some feel could prove unavoidable if repeated elections fail to bring the parties together. ""I believe there is an overwhelming desire among the political parties and the public here for strong and stable devolved government,"" he said. Brokenshire said Belfast civil servants will assume essential government responsibilities this week, but the government limbo cannot continue indefinitely. Theresa May: Northern Ireland crisis mustn't jeopardise peace The crisis is an unwanted distraction for British Prime Minister Theresa May two days before she is due to trigger divorce proceedings to take Britain out of the European Union. While Scottish First Minister Nicola Sturgeon has become one of the most vocal critics of May's Brexit strategy, Northern Ireland's leaders have been relatively muted. Both regions voted to remain in the EU in last year's referendum. As the only part of the UK with a land border with the EU, Northern Ireland faces severe disruption to its economy. Any sign of border controls could inflame opinion among Irish nationalists who want a united Ireland. ""We desperately need local political representatives to speak on our behalf if we are to ensure that UK and EU negotiators have a proper understanding of Northern Ireland's unique circumstance,"" the Northern Ireland branch of the Confederation of British Industry said after Brokenshire's statement. ""There has seldom been a more important time to have a strong well-functioning executive."" The main Irish nationalist party, Sinn Fein, triggered the collapse of the power-sharing executive in January and withdrew again from talks on Sunday citing multiple grievances with the British Protestants of the Democratic Unionist Party (DUP). Under Northern Ireland's power-sharing agreement, Sinn Fein, which would like to merge with Ireland, works with the DUP, which advocates remaining as part of Britain. Sinn Fein presented a long list of demands as conditions to re-enter government, including funding services for Irish language speakers, gay rights and inquiries into deaths during the decades of sectarian violence. The DUP balked, suggesting Sinn Fein was asking for too much because it wanted the talks to fail. ""I wonder whether Sinn Fein were serious about reaching agreement at this time,"" DUP leader Arlene Foster said. Sinn Fein leader Gerry Adams posted a video to the party's website that suggested he was not likely to soften its demands. ""Unionism is in my opinion at a crossroads. Whether it embraces everyone and upholds the rights of everyone ... or it doesn't,"" Adams said. ""There can be no equivocation, no conditionality."" Source:-News agencies", -3479,2017/3/27,http://www.aljazeera.com/indepth/features/2017/03/battle-raqqa-explained-isil-170327072023253.html,The battle for Raqqa explained Mariya Petkova,"Unless there is an effective transition of power and a legitimate government in place, ISIL will continue to exist. By","Gaziantep, Turkey -- It has been more than a year and a half since the operation to retake Raqqa from the ISIL group was launched, but the offensive on the city still has not begun.- In fact, there seems to be a great deal of confusion internationally about whether the battle for Raqqa will be launched soon or not. On Friday, French Defence Minister Jean-Yves Le Drian said that the operation to capture the city from ISIL will start within days. On Saturday, Russian defence ministry spokesperson Major General Igor Konashenkov said that the United States is unlikely to launch an offensive soon and called Le Drian's words ""rosy slogans"". Earlier last week, the Syrian Democratic Forces (SDF), US' closest ally in Syria , announced that it will launch the battle for Raqqa within two weeks. On Sunday, the SDF said -that they captured the Tabqa airbase, 45km west of Raqqa. Media- reports have also suggested-that the US is likely to wait until after Turkey's referendum, scheduled for April 16, to launch the offensive. READ MORE: Battle for Raqqa: 'Difficult and complicated' For the past two months, US allies have waited impatiently an outline of Washington's strategy to capture the city from the Islamic State of Iraq and the Levant ( ISIL , also known as ISIS). Defeating ISIL was claimed to be President Donald Trump's top foreign policy priority shortly after his inauguration. Capturing Raqqa has come to be viewed as the high point of his administration's strategy to take on the group. However, instead of proceeding with a plan that the Obama administration had prepared, Trump's team dismissed it and in late January asked the Pentagon to submit a new one. The Pentagon's proposal turned out to be very much in line with Obama's plan: to rely on the SDF. Turkey , a key US ally, has decried Washington's intentions, considering one of the SDF's main constituents - the Kurdish People's Protection Units (YPG) - a ""terrorist"" organisation. Alternately, Ankara has proposed using the lose formation of Syrian rebel factions under the umbrella of its Euphrates Shield operation to launch the offensive on Raqqa. The Euphrates Shield forces advanced as far as Al Bab , west of Raqqa, but their progress has been blocked by Syria's regime forces.- Another scenario suggested that the Turkish-backed rebel groups enter into Syria through Tal Abyad, currently under SDF control and most likely will be fiercely opposed by the YPG. According to a third- proposal , a-Syrian Kurdish force -- peshmerga , trained by the Kurdish Regional Government (KRG) that is sympathetic to Ankara, would join the fight against ISIL in Syria and potentially the battle for Raqqa. This has also been rejected both by its Syrian Peshmerga commanders and by the YPG, which is hostile to the KRG. Turkey's main argument for its participation has been that Raqqa needs to be liberated by an Arab-majority force, but the Kurdish-dominated SDF, it argues, is not and, therefore, will not be able to govern the city afterwards. Arab nations participating in the US-led international anti-ISIL coalition, like Saudi Arabia and Jordan, have hinted at their participation - presenting a possible alternative - but no concrete proposals have been put forward. Russia , too, has expressed its interest in participating in the battle, with defence ministry spokesman Konashenkov saying that ""all forces fighting terrorism"" must unite in order to capture Raqqa. Russia has recently increased its support for the SDF, announcing the establishment of a military base in the Kurdish canton of Afrin. If Russia participates, the role of regime forces and Iran-backed militias is unclear, but they have tried to reach Raqqa from the southeast in the past. We are not against the expulsion of ISIL from Raqqa, but we reject the crimes the international coalition and its allies have committed against the civilians. Omar al-Hawidi , a Syrian activist and journalist from Raqqa Despite the Trump administration's reluctance to make a final decision, the Pentagon has continued to rely on the ground on the SDF, which the Obama administration armed after it was created in October 2015 specifically to fight ISIL in Syria and capture Raqqa. Backed by US and French forces, the SDF have steadily advanced towards Raqqa. Although Trump is yet to deliver on his campaign trail promise to defeat ISIL ""quickly and effectively"", his vow to ""bomb the sh** out of"" ISIL has been very much fulfilled. In the past few weeks, the anti-ISIL coalition has stepped up its air strikes on Syria and Iraq, dropping more than 1,000 munitions in the span of a week between February 17 and 24. The intensified bombing in Iraq's Mosul has led to almost 4,000 civilian deaths since mid-February, according to Anadolu agency. United States Central Command (CENTCOM) has said it's investigating the deaths of 200 civilians in Mosul of the past week. In addition, there have also been reports -that ISIL has been executing civilians trying to flee the coalition's advance. In Raqqa province, in a span of three days, US-led coalition air strikes likely killed -some 140 civilians. Activists from Raqqa have told Al Jazeera that they expect carnage similar to Mosul's to take place in the city itself when the offensive starts. ""We are not against the expulsion of ISIL from Raqqa, but we reject the crimes the international coalition and its allies have committed against the civilians,"" Omar al-Hawidi, a Syrian activist and journalist from Raqqa told Al Jazeera. Before Raqqa made the headlines as ISIL's capital and fell in the crosshairs of US foreign policy and regional players' ambitions, its residents had a quiet provincial life. With the Euphrates river cutting through the province, Raqqa was once known as the breadbasket of Syria. In the years prior to the popular uprising against Syrian President Bashar al-Assad in March 2011, a severe drought hit its agriculture, drying up some of its arable land and forcing hundreds of thousands of its residents to leave for the big cities in the west. Whatever agriculture survived the drought, and mismanagement by local authorities, has now been very much destroyed by the fighting and ISIL's war practice of mining farm fields. Over the years, local grievances grew as the Damascus elites perceived the eastern provinces as backwards and abandoned them economically. After the first protests of the Syrian revolution broke out in mid-March 2011, Raqqa youth were quick to organise a march of their own against Assad's regime. Their first protest was- muffled -by a more numerous counter-protest, organised by the much more powerful pro-regime forces within the city. Throughout the following months, protests persisted, but by and large, the regime retained control over the city. So sure was Assad in his grip on the city that, in November 2011, he visited Raqqa and joined Eid al-Adha prayers in al-Nour mosque, alongside Syria's Grand Mufti Ahmad Hassoun. But in late 2012 and early 2013, the regime lost control over major parts of the province and, by early March of that year, a joint rebel force consisting of- Ahrar al-Sham, al-Nusra Front- and the Free Syrian Army entered Raqqa. The city was declared the first liberated provincial capital on March 4, 2013. To celebrate the occasion, local residents gathered to topple a- statue - of Assad's father, Hafez al-Assad, in al-Itafaiya Square. In the following months, as Raqqa lived through its revolutionary moment, civil society and revolutionary groups flourished. Activists, journalists and revolutionary-minded youth from all over Syria flocked to the city.- ""Raqqa used to be a model for us, for the rest of the liberated parts of Syria,"" says Syrian activist Lubna, 27, who asked that only her first name be used for security reasons. ""When Raqqa was liberated, there was not a single organisation that did not start operations in the city."" The city had its own- local council ,-which took over the provision of basic services, and its own media centre producing videos documenting various political, social and military developments in the city. In those first few months, Lubna says, civilians were in charge of everything in the city: from- cleaning the streets to distributing bread to poor families.- Women -and men volunteers were also taking active part in various initiatives, organising workshops, seminars, lectures,- exhibitions and of course regular demonstrations in support of the revolution. Local youth even- founded- a human rights discussion group. Lubna herself led a workshop on peace negotiation for women. When more extreme elements of the armed groups present in the city started exerting pressure on the civil society groups, arresting activists and imposing arbitrary rules, the people resisted fiercely. As- al-Nusra Front- started arresting local people, protests against them broke out.- Eventually, a larger number of al-Nusra fighters pledged allegiance to ISIL, which Abu Bakr al-Baghdadi announced in a recording released in April 2013, effectively asking al-Nusra to disband and join its ranks. Abu Mohammed al-Joulani, al-Nusra's leader, had rejected the announcement, but the ranks of his supporters gradually shrank in favour of ISIL. By the summer of the same year, Raqqa residents were already using al-Nusra and ISIL interchangeably. Demonstrations were held in front of ISIL's headquarters to demand the release of arrested and kidnapped civilians and protest assassinations of civilians and FSA members. ISIL's grip on the city gradually tightened. Ahmad Aba Zeid, a Syrian researcher, says that ISIL managed to consolidate its power over Raqqa because in the beginning Ahrar al-Sham , and what was left of al-Nusra, refused to fight it, seeing its followers as fellow Muslim fighters. By January 2014, after defeating al-Nusra Front and the FSA, ISIL took complete control of the city. It killed many FSA fighters and executed more than 100 Ahrar al-Sham followers, according to Aba Zeid. The majority of activists and civil society members who survived arrests and assassinations fled the city. There was no one to tell the world about ISIL's ""slaughter"" of the city, except for a small group of activists who founded the Facebook page "" Raqqa is being slaughtered silently "". For three years, the page has documented not only numerous crimes and killings that ISIL committed in the city, but it has also started posting information on the growing number of victims of the US-led coalition air strikes. Raqqa residents now await with fear the approaching offensive, says Nejm al-Din al-Nejm, a Syrian activist and journalist. His family is still in the city and he says he does not have the money to pay smugglers ($1,600 a person) to get them out. Smuggling became much more dangerous after ISIL stopped all movement out of the city and announced that anyone trying to leave is facing execution, says Nejm. Residents are only allowed to flee southeast towards Deir Az Zor, which is still under ISIL control. What is left of the city's population, according to Hawidi, is about 200,000 people, including internally displaced people from other governorates. Raqqa's residents are currently facing not only the threats of coalition bombings and arbitrary violence by ISIL, but also, possibly soon, hunger. The SDF has cut off almost all major roads to the city and food supplies are no longer reaching it, Hawidi says. Inflation is skyrocketing as a result. The majority of doctors have fled the city and private clinics have closed down. The only working hospital is controlled by ISIL and treatment there is expensive, according to Hawidi. Medicine for people with diabetes or heart problems is hard to come by.- READ MORE: AlBAB - 'When the tide is turning, ISIL go apocalyptic' For months now, ISIL has been preparing for the offensive on Raqqa. According to Nejm, the top leadership of the organisation has left the city, along with some of its foreign fighters and the notorious Al Khansaa Brigade, an all-women's morality police unit. The battle for the city has been left to ISIL's Syrian recruits. After the coalition destroyed all bridges across the Euphrates river, ISIL started digging trenches across the city and putting barricades. According to Najm, it has even demanded shop owners to pay for some of the expenses of barricading the city. ""They are preparing for urban guerilla fighting,"" he says.- It is this type of warfare at which ISIL excels, according to Can Kasapoglu, a Turkish military analyst. ""They are notoriously [good at] sniper operations, IEDs, anti-tank missiles and this kind of tactical game-changers. And there's no shortage of both ammunition and weapons for them,"" he explains. He says that there is also a risk of ISIL using chemical weapons during the battle, as they have done before . If a wider coalition is involved in the battle, there will be huge coordination challenges, Kasapoglu foresees. Identification of friend or foe will be an issue, he says. That surfaced as a problem between Russia and Turkey during the operation to capture Al Bab from ISIL, when a Russian fighter jet bombed Turkish positions,- killing three Turkish soldiers. ""Raqqa will be Armageddon for ISIL,"" says Kasapoglu, adding that ISIL fighters will have a much higher motivation to fight and resist the offensive. But will capturing Raqqa, ISIL's capital, indeed, be the end of ISIL? According to Ammar Kahf, executive director of Istanbul-based Syrian think-tank OMRAN, the answer is no. ""ISIL will remain there […] Their elements will still roam around. They are basically not going to have a state and a fixed piece of land,"" he says. In his opinion, unless there is an effective transition of power and a legitimate government in place, ISIL will continue to exist. ""The elements that are causing this instability and vacuum which create the reasons for ISIL to exist, this vacuum is still there. Unless those reasons are [removed], ISIL will continue to have a recruiting card,"" says Kahf. But for now, it seems the US and its allies are focused on defeating ISIL ""quickly"" and are brushing aside the issues that gave rise to it in the first place. It is also clear -that they do not really have a long-term plan for participating in reconstruction efforts. ""As a coalition, we are not in the business of nation-building or reconstruction,"" US State Department Secretary Rex Tillerson recently said. For the people of Raqqa, who seem excluded from the considerations of the international coalition, the only hope now is that whoever launches the offensive on their city will be able to tell friend from foe and spare their lives. Source:-Al Jazeera", -3480,2017/3/27,http://www.aljazeera.com/news/2017/03/opposition-leader-alexei-navalny-jailed-15-days-170327125058049.html,Opposition leader Alexei Navalny jailed for 15 days,"EU calls for release of prominent Kremlin critic Navalny, a day after he was detained at opposition protest in Moscow.","Russian opposition leader Alexei Navalny has been sentenced to 15 days in prison after being detained at a major opposition protest that he had organised. A Moscow court issued the verdict on Monday against Navalny for resisting police orders on Sunday when he walked to the protest in the Russian capital. Navalny, 40, posted a selfie on Twitter from the courtroom, saying: ""A time will come when we'll put them on trial too - and that time it will be fair."" ""Even the slightest illusion of fair justice is absent here,"" Navalny said on Monday at the defendant's bench, complaining about the judge striking down one motion after another. ""Yesterday's events have shown that quite a large number of voters in Russia support the program of a candidate who stands for fighting corruption. These people demand political representation - and I strive to be their political representative."" Tens of thousands of protesters took to the streets across Russia on Sunday in the biggest show of defiance since the 2011-2012 anti-government protests. PROFILE: Alexei Navalny, thorn in Putin's side The Kremlin has dismissed the opposition as a Westernised urban elite disconnected from the issues faced by the poor in Russia's far-flung regions. But Sunday's protests included demonstrations in the areas which typically produce a high vote for President- Vladimir Putin,-from Siberia's Chita to Dagestan's Makhachkala. Putin's spokesman on Monday criticised the organisers for allegedly inciting illegal acts. ""The Kremlin respects people's civic stance and their right to voice their position,"" said Putin spokesman Dmitry Peskov. ""We can't express the same respect to those who consciously misled people and who consciously did it yesterday and provoked illegal actions."" Peskov defended the Russian police in riot gear who were seen manhandling protesters, some of whom were minors, calling their response ""highly professional and lawful"". Asked about the Kremlin's reaction to the wide geography of the protests, something that has not been seen at least since 2012, Peskov said ""the Kremlin is quite sober about the scale of yesterday's protests, and are not inclined to diminish them or push them out of proportion"". Putin ""constantly talks to people"" and is well-briefed on the sentiment in the country, Peskov insisted. Peskov also claimed that underage protesters in Moscow were promised cash if they were arrested. The Council of Europe said the detentions of the protesters raised concerns about freedom of expression and assembly. Russian authorities should release all those detained, Secretary General Thorbjorn Jagland said. The European Union and the United States also condemned the detentions. German government spokesman Steffen Seibert said freedom of assembly, which is ""of great importance to democracy,"" was being tested in Russia. OPINION: Under surveillance in Russia The resignation of Prime Minister Dmitry Medvedev was the main demand of Sunday's protests that were called for by Navalny after he published a detailed report this month accusing him of controlling a property empire through a shadowy network of non-profit organisations. Medvedev, who has so far made no comments on the claims, is accused of amassing a private collection of mansions, yachts and vineyards. The alleged luxuries include a house for raising ducks, thus many placards in the protests showed mocking images of a yellow toy duck. Al Jazeera's Rory Challands, reporting from Russia, said that the breadth and scale of Sunday's protests had likely surprised both Navalny and the Kremlin; solidifying Navalny's position as the pre-eminent opposition voice. ""Navalny's message of anti-corruption has really struck a chord with Russians,"" said Challands. ""And going after Dmitry Medvedev, the prime minister, is pretty canny because - although Putin at the top of the tree is fairly unassailable - Dmitry Medvedev is a different political animal. He is much more vulnerable, much less popular, and putting pressure on him puts pressure on Vladimir Putin."" Source:-Al Jazeera and news agencies", -3481,2017/3/27,http://www.aljazeera.com/indepth/features/2017/03/abdul-el-sayed-running-muslim-governor-170314044707977.html,Q&A: The man running to be US' first Muslim governor Ryan Rifai,Arab American doctor Abdul El-Sayed on why he believes he is best suited to cure Michigan's crises. By,"Egyptian American doctor Abdul El-Sayed could become the first-ever Muslim governor in the United States in 2018. El-Sayed, 32, was appointed as the chief of the health department of Michigan's city of Detroit in 2015, and - after making a serious turn to politics - is now running to be the next governor of the state. He would inherit major water and economic crises in Detroit and Flint, which are the two poorest cities in the US. Although Michigan has one of the largest supplies of fresh water in the country, tens of thousands of Detroit residents lost access to water in the homes after major hikes in prices left them unable to afford the basic need. Furthermore, nearby Flint faced a lead-poisoning water crisis that affected most of its 100,000 residents and prompted a state of emergency. Michigan's Governor Rick Snyder has received the bulk of the blame for the water crises for his part in privatising many key state institutions, including the water department, and for allegedly ignoring crises that have hit the underprivileged most. El-Sayed is also running at a time when hate crimes have been at an all-time high in the country, seen by many as being inspired by Donald Trump's presidency. El-Sayed talked to Al Jazeera about what inspired him to run and why he believes he is the right candidate for the job. He also talks about how being an Arab and Muslim plays into the election, especially in a state that voted for Trump in the 2016 presidential election. Al Jazeera: What inspired you to run for governor? Abdul El-Sayed: I was appointed health director for the city of Detroit in 2015 and my job was to rebuild the health department after the 185-year old department had been privatised during the municipal bankruptcy, when the state came in and appointed an emergency manager. We were facing one of the greatest public health crises in the country. So we got to work on everything from providing every child a pair of glasses in Detroit who needed one, building programmes to fight asthma, and standing up to corporations that had spent decades polluting the city's air. Our goal was to really focus on the health and well-being of the most vulnerable people in our community. Meanwhile, I watched as Governor Snyder and his team of accountants were cutting costs and cutting corners. Their inattention to communities ultimately poisoned thousands of children - and those children were the very ones that I was serving at the helm of the health department. READ MORE: Michigan state sued over toxic water disaster I realised that the poisoning of 9,000 kids in Flint was really a result of running government ""like a business"" like Governor Snyder had - more focused on cutting costs than on ensuring that essential and basic services make their way to real people who rely on them to survive. And that's something I didn't believe in. I believe in government as something we do in this country for the people and by the people. I believe in a government that focuses on people, their opportunities, and their promise. As a doctor, educator, and public servant, I see my responsibility as refocusing on the dignity and prosperity of working people, whether they are black Americans in places like Detroit or Flint, or white Americans in places like Cheboygan or Ishpeming. That is why I am motivated to run for governor. My abilities are uniquely well-suited to the type of challenges we face, whether its public health, education or building an economy and the kind of place where millennials and young people want to invest in and raise their children in. Al Jazeera: How has your level of support been? El-Sayed: People are really excited about this. Letters, phone calls, and shows of support have come from all over the state. It's overwhelming and humbling. Michiganders showed in the 2016 election that they are done with government as usual. They are fed up with establishment candidates who are out of touch and dynasties that put forth candidates for coronation rather than election. I want to provide Michiganders with an opportunity to support a candidate who both has real government experience and whose skill sets are really focused on bringing communities together. Someone who can bring exciting and innovative ideas to state government. I have gotten really heartwarming messages from all over the state - even from some folks who have never voted for a Democrat. Some of my supporters have said they have never voted for a liberal, but would vote for me because they value authenticity and a focus on people and their well-being. That is what matters to them as Michiganders. Al Jazeera: How has being an Arab and Muslim played into the election? El-Sayed: It is something that comes up. For me, religion isn't about how or if one prays, but rather what they pray for and what they hope for. And for me, personally, I pray for my family. And I pray for my state and my country. And I believe in the fundamental decency of people who can come together across traditional boundaries, as we have in the past. We need to reject this notion that we're different and can't see across a religious or ethnic divide. I know this is possible, because I have seen it every single day at my family's dinner table. My family is extremely diverse, and includes Christians, Muslims, and atheists. And they come from all over the world. I've seen them come together because they believe in their shared future: their children. And I know we, across all corners of Michigan, can do the same. Al Jazeera: Michigan voted for Trump, so how has that affected your chances? El-Sayed: It is pretty clear that people all over the state are starting to have buyer's remorse after they have watched what he has done in the White House, including the scandals that have followed him, the decisions that are at odds with deeply held American values, and the distractions from real issues. But they are still asking themselves: ""What does the future look like?"" Because it is clear that politics as usual has not done what's necessary to provide real opportunities for real people. And it's clear that Trump is not going to either. So, I believe the future needs to be about new energy, new ideas, and new skill sets that people can believe in. READ MORE: US hate incidents spike after Trump elected The results of Trump winning have less to do with Trump's character and ideology and more to do with the fact that he was the only one talking about jobs and about challenges and real issues people face. I don't think his diagnosis of the challenge was correct. But I know that people in Michigan don't either. They're interested in fresh thinking and new ideas that moves us forward rather than forces us to pine for the past. Al Jazeera: How will you tackle the water crises in Michigan? El-Sayed: The water crisis was prompted by - and persisted because - of Lansing's inattention to - and disinvestment from - communities. We are living in a state that is surrounded by fresh water. There is no reason aside from negligent government policies that keeps people from having water that they can drink that is affordable. READ MORE: Flint - The city where people drank poisoned water To me, it is about rethinking the state law that said we cannot give people who don't have the means of paying for basic clean and affordable water. It means rethinking how we pay for infrastructure. It means sponsoring legislation to alter the state law that says we can't give people who are struggling to pay for their water a rate that allows them to actually have basic access to water. And it means being able to build a public health system that is going make sure we do not cut corners when we cut costs, or try to reduce government spending on the backs of communities that deserve better. Source:-Al Jazeera", -3482,2017/3/27,http://www.aljazeera.com/news/2017/03/backed-syria-forces-pause-operations-tabqa-dam-170327112107511.html,US-backed Syria forces pause operations near Tabqa dam,SDF temporarily halts operations near country's largest dam over growing concerns of potential collapse.,"US-backed Syrian fighters on Monday paused their offensive for a key dam held by ISIL to allow a technical team to enter the complex, a spokeswoman said. There have been fears about the integrity of the dam after fighting in the area forced it out of service on Sunday, following earlier United Nations warnings that a collapse would be ""catastrophic"". With air support from the US-led coalition against Islamic State of Iraq and the Levant (ISIL), the Syrian Democratic Forces (SDF) are fighting to seize the town of Tabqa and the adjacent dam on the Euphrates, as part of their battle to take the hardline group's self-declared capital of Raqqa. ""To ensure the integrity of the Tabqa dam ... we have decided to stop operations for four hours beginning at 1:00pm (1100 GMT),"" SDF spokeswoman Jihan Sheikh Ahmed said in a statement. ""This is to allow a team of engineers to enter the dam and carry out their work,"" she added. The decision followed a request by the Syrian government's water authority. The director of the Syrian government's General Authority of Euphrates Dam, which formerly operated the huge project, blamed US strikes in the past two days for disrupting internal control systems and putting the dam out of service.- The dam, Syria's largest, stretches 4.5km across the Euphrates. ISIL captured the dam and a nearby airbase, lying about 40km upstream from Raqqa, at the height of its expansion in Syria and Iraq in 2014. ""There was growing concern over the weekend [about the dam's potential collapse]. In fact, ISIL was driving around nearby villages and towns warning them that there was a danger of flooding,"" said Al Jazeera's Alan Fisher, reporting from Beirut. ISIL issued warnings through its propaganda agency Amaq on Sunday that the dam could collapse ""at any moment"". READ MORE: US-backed forces 'capture' Tabqa airbase from ISIL The dam was forced out of service on Sunday after its power station was damaged, a source at the dam told the AFP news agency.- The activist group Raqqa is Being Slaughtered Silently reported that ISIL had ordered Raqqa residents to evacuate the city. The UN has warned that damage to the dam ""could lead to massive scale flooding across Raqqa and as far away as Deir Az Zor"" province downstream to the southeast with ""catastrophic humanitarian implications"". The source at the dam told AFP on Monday that a technical team ""will assess the level of damage and repair what is needed so that the dam can resume its operations, after it was put out of service yesterday"".- The US-led coalition said Monday it was ""taking every precaution"" to ensure the structure's integrity. The SDF has denied the dam was damaged, and said military operations around it were being conducted ""slowly and with precision"". Fighting is almost certain to resume after the four-hour window is up, ""unless engineers come out and say there is a real problem here and that they have to fix it because thousands of lives could be at risk""? said Al Jazeera's Fisher. Hundreds of families fled Tabqa to the relative safety of outlying areas as coalition air strikes intensified in the past few days, according to former residents in touch with relatives.- The SDF alliance announced on Sunday that it had seized a majority of the nearby Tabqa airbase from ISIL. Earlier this week, US forces airlifted SDF fighters and US advisers behind ISIL lines to allow them to launch the Tabqa assault. ""This is a part of the approach""?the [US-led coalition's] assault on Raqqa, and gaining key strategic points, including the nearby airfield and the dam, all become part of the operation,"" said Fisher. The SDF launched its offensive for Raqqa city in November, seizing around two thirds of the surrounding province, according to the UK-based Syrian Observatory for Human Rights. At their closest point, they are just 8km from the city, to the northeast. Source:-Al Jazeera and news agencies", -3483,2017/3/27,http://www.aljazeera.com/news/2017/03/meat-crackdown-leaves-shortage-india-uttar-pradesh-170327074548976.html,Meat crackdown leaves shortage in India's Uttar Pradesh,Meat sellers across Uttar Pradesh strike against an ongoing crackdown on illegal and mechanised slaughterhouses. 'Unjustified',"India's most populous state is running out of meat, as tens of thousands of meat sellers across Uttar Pradesh close in protest over a government crackdown on slaughterhouses operating without licences or adequate paperwork.- After the Hindu right-wing Bharatiya Janata Party came to power in Uttar Pradesh earlier this month on the back of a resounding electoral victory and named a Hindu priest-cum-politician as the state's chief minister, the government began cracking down on illegal slaughterhouses and meat shops. The new chief minister, Yogi Adityanath, is a strong supporter of laws protecting cows, which are revered by devout Hindus, and has publicly opposed beef consumption. The slaughter of cows and the consumption of beef are taboo for most Hindus. Their slaughter is barred by law in most Indian states, including Uttar Pradesh. ""All the illegal operations in slaughterhouses should end now,"" Adityanath said on Sunday at a rally in his hometown of Gorakhpur, where he is also the high priest of the Gorakhnath Math, a religious order based in eastern Uttar Pradesh. ""The majority of the slaughterhouses and meat shops are running without licences and government approval. I know, in the name of buffalo, cows are being slaughtered in many abattoirs. This should end."" So far, there have been no reports that any of the slaughterhouses shut down were selling cow meat instead of the usual water buffalo meat, which is permitted. Uttar Pradesh, with a population of 204 million, is India's largest meat-producing state and has 41 licensed slaughterhouses. Many more operate illegally by bribing local authorities, like thousands of small businesses in this corruption-plagued country. Uttar Pradesh's government earns more than 110 billion rupees ($1.7bn) a year from the industry. READ MORE: Sacred cows and India's caste carcass ""We know it is a money spinner industry for the government, but the party had promised to people in its election campaign to close down illegal slaughterhouses and meat shops,"" said Vijay Bahadur Pathak, the Bharatiya Janata Party's state general secretary. ""Money or no money, we will fulfil our poll promise."" Aquil Ahmad, a meat shop owner in Lucknow, the state capital, said that even though he has a licence, he has decided to close his shop in support of others in his fraternity. Meanwhile, many meat shop owners are struggling to obtain the requisite paperwork. Niaz Quereshi, an official with Quereshi Mahasabha, an association of meat sellers, called the government crackdown ""unjustified"". He said government officials were harassing people trying to get licences and were asking for bribes. ""We are being sent from one table to another and from one room to another by clerks,"" he said. ""They are harassing us."" As meat has disappeared from the markets, many restaurants have been forced to shut down or change the menu. READ MORE: Food economics - What if the world went vegan? Tundey Kababi, a 105-year-old kebab institution in Lucknow known for its delicately spiced buffalo meat fare, has had to pull its top-selling item from the menu. ""We are not getting an adequate supply of buffalo meat because of the crackdown on slaughterhouses,"" said Tundey Kababi's owner, Raees Ahmad. ""We are forced to sell kebabs made of chicken and mutton. Our customers are not happy, but we have no other option."" The crackdown has even hit the carnivores in the state's zoos. Zoos in Lucknow and the neighbouring city of Kanpur have sent an urgent message to the state government saying the lions aren't keen on eating goat meat. ""Now we serve goat meat, but the animals are not eating it to their fill,"" said Nasim Zaidi, a veterinarian at a state-run hospital. The government has received similar complaints from a lion safari park in Etawah, which is home to three grown lions and two cubs. ""Initially, the lions were fed goat and chicken meat, but I am told that they are not relishing that,"" said Dara Singh Chauhan, Uttar Pradesh's minister for forests. ""Arrangements have been made to transport buffalo meat from other areas of the state."" Source:-News agencies", -3484,2017/3/27,http://www.aljazeera.com/news/2017/03/expectations-arab-league-chiefs-gather-jordan-170327110010920.html,Low expectations as Arab League chiefs gather in Jordan,Ministers from the 22-member bloc are meeting in Jordan ahead of its annual summit on Wednesday. Low expectations,"Foreign ministers of the 22-member Arab League are holding preparatory meetings in Jordan amid low expectations over the bloc's annual heads of states' summit on Wednesday. This year's conference comes as the region faces a series of pressing challenges, including violent conflicts, rising youth unemployment and millions of children deprived of the right to education. Ayman Safadi, Jordan's foreign minister, on Monday painted a grim picture as he called member states-to come together and urgently confront crises. ""The Arab political system has failed to solve the crises and halt the collapse as the trust of Arab citizens in the joint Arab institutions has eroded,"" he said. READ MORE: UN, Arab League reiterate support for Palestinian state Safadi-told his Arab counterparts that more than 12 million Arab children are being denied access to education, presumably in part because of conflicts in Syria, Yemen and Libya. Ahmed Aboul-Gheit, secretary-general of the Arab League, said economic and social issues should take priority at the summit, citing 29 percent youth unemployment is one of the region's biggest challenges. One-third of the Arab world's population is below the age of 30 and Arab countries need to create 60m jobs in a decade to absorb newcomers into the labour market, according-to Aboul-Gheit. The Arab League chief also-urged Arab governments to do more to resolve Syria's long-running conflict rather than leaving it to other powers. ""In my view it's not right that Arab governments stay out of the biggest crisis in the region's modern history,"" Abul Gheit said on Monday, calling them to-""find an effective way of intervening to stop the shedding of blood in Syria and end the war"". Al Jazeera's-Jamal-Elshayyal, reporting from Dead Sea, in Jordan, said there were low expectations about what be accomplished at the meeting. ""The indications of this summit to achieve any substantial results are very little because of the inability of the Arab leaders to actually accommodate some changes in terms of demographics and politics within the region,"" he said. ""What we can expect them to achieve in this meeting is some sort of a unified statement ... with regards to Syria because of the ongoing crisis there."" The Syrian government was not invited to the summit. The bloc suspended Syria's membership in late 2011 after anti-regime demonstrations were brutally repressed. Leaders remain divided over Syrian President Bashar al-Assad's role, if any, in a possible political transition. Some argue that in shutting Assad out early on in the war, the Arab League created a vacuum that allowed non-Arab Russia, Iran and Turkey a greater say over an eventual solution. The trio now serves as guarantor of a shaky ceasefire between the Syrian government and the opposition, while United Nations-brokered talks in Geneva aim to coax them toward a political transition. Jordan's King Abdullah II plays host. Key participants include King Salman of Saudi Arabia, Egyptian President Abdel-Fattah el-Sissi and Palestinian President Mahmoud Abbas. UN Secretary General Antonio Guterres and Staffan de Mistura, the UN and Arab League envoy for Syria, are also attenfing, along with US and Russian envoys. The summit could offer an opportunity for Egypt and Saudi Arabia to defuse months of tensions, mainly over Syria. Saudi Arabia is a leading supporter of the Syrian opposition, while Egypt, fearful of armed groups among the rebels' ranks, has pushed for a political solution that might keep Assad in power. Source:-Al Jazeera and news agencies", -3485,2017/3/27,http://www.aljazeera.com/indepth/features/2017/03/grief-questions-wreckage-mosul-air-strikes-170325121427384.html,Mosul strike survivors: 'There were pieces of bodies' John Beck,"Dozens of civilians died in a recent coalition strike aimed at killing an ISIL commander in Mosul, residents say. By","Mosul, Iraq - It was just past 8am (05:00 GMT) on January 11 when an air strike killed-Ebtisam-Ataallah's neighbours. The intermittent electricity had come on a few minutes earlier - a rarity in the al-Amel district of ISIL-held western Mosul - so-Ataallah, 44, had begun baking bread in a corner of their courtyard. Her four children remained indoors. Two large blasts in quick succession knocked her to the ground, filling the air with dust, rubble and confusion. Inside the house, an external wall collapsed on top of her 16-year-old son Imran where he slept. He awoke covered in bricks and screaming, his leg badly broken. In the now ruined room above him lay the body of a man thrown clear of the adjacent building by the impact, a young girl miraculously still alive in his arms. Zaidan, 55, was having dinner with his family a street away when he heard the blasts. He rushed to the scene with his brother and two younger cousins. ""When we got there, we heard women and children screaming under the rubble,"" the silver-haired 55-year-old, who declined to provide his last name, told Al Jazeera. ""So, we went to help."" As he extricated a young girl and took her to a nearby house, a third air strike hit, landing on top of the rescuers. His brother and one cousin were killed, and another cousin,19, was injured. Zaidan eventually found the top half of his brother's corpse in the grounds of a school one block over; his legs were tangled in the remains of an awning over the Ataallah's house. At least six households were wiped out in the strike, according to a number of witnesses. Those who combed the rubble for bodies said that they found the remains of 37 people, mostly women and children. They recognised all but two.-A photograph said to be from the scene circulated by local activists showed a dusty, blood-covered baby wrapped in a red blanket. ""We know what an air strike sounds like. They killed most of our neighbourhood for one ISIL member, and they didn't even get him. I don't understand it. Radwan Ataallah, 25, Mosul resident All of the interviewees believed-the target of the attack was-Harbi Abdel Qader,-a commander with the Islamic State of Iraq and the Levant group (ISIL, also known as ISIS) - but added that he escaped unharmed in the few minutes before the third explosion. The substantial death toll in al-Amel was uncovered at a time when civilian casualties from both air strikes and Iraqi shelling appear to be mounting in west Mosul, amid international pressure for a swift resolution to the six-month-old operation to retake the city from ISIL. On Friday, the US military said that its aircraft were involved in strikes on a nearby neighbourhood that residents said had killed as many as 200 people. Iraqi forces were still concentrating on clearing the armed group from the eastern half of the city in January, but civilian casualties due to air strikes were already being-reported-in the densely populated western parts of the city. Now, as government forces push ISIL back still further, some of these blast sites are becoming accessible,-including al-Amel, which was only cleared in mid-March. The scene of the attack is still pure devastation. Individual houses have been reduced to twisted concrete and debris dotted with blankets and tattered items of clothing scattered throughout. The US-led international anti-ISIL coalition has conducted hundreds of air strikes in support of the Mosul offensive, while the Iraqi air force has carried out its own, more limited operations. A spokesperson for the coalition acknowledged reports of air strikes in Mosul resulting in civilian casualties on January 11 and 12, noting that while coalition forces ""work diligently to be precise"", the January strike would be investigated further. Coalition and Iraqi forces are required to operate under strict rules of engagement aimed at minimising civilian casualties. The coalition estimates that, as of March 4, 220 non-combatants have died in strikes it carried out since the international campaign against ISIL in Iraq and Syria began in 2014. Independent monitoring group Airwars suggests the figure is far higher,-with-as many as a thousand-claimed deaths reported-this month alone.- In al-Amel, residents said that, besides Qader and a-low-ranking ISIL member, none of those who lived in the bombed area had any links to ISIL.-Ataallah's neighbour, Ali Khalat, moved there seven years earlier with his wife, children and grandchildren. They ran a small shop from their home and the older men drove a taxi to supplement their income. It was Ahmed Khalat, one of Ali's sons, who was blasted into the Ataallah's home holding one of his-daughters. She, along with her sister and brother,-were the only survivors.- The two families were not close, but neighbourly, and the Khalats were well-thought-of in the area.-""They were good people and they were taking care of each other,"" Ataallah recalled. At least five other civilian households were hit in the same strike. All were killed. The dead included Namis Salem Khadar, his wife Suha, and their two children, Sara and Sidra. The family can be seen in a picture recovered from the site dated June 4, 2012. Apparently taken at a fairground, it shows Namis sitting on one end of a bench in a crisp white thawb and Suha perched on the other, wisps of brown hair escaping from a patterned headscarf. Sara stands between them, a small girl in red and white dress gazing solemnly at the camera. Rakan Sukur, 48, was among those who helped to recover bodies from the rubble and line them up outside the house for collection by family members. A grey-haired man with prominent features and a black moustache. It was he who retrieved the family photo albums. ""You can't imagine how I suffered to find these,"" he said, describing how he darted in to grab them as heavy machinery worked to remove chunks of masonry. ""There were pieces [of bodies] there, too."" He and others were sure that Qader was not among the dead. The stocky, grey-bearded ISIL commander, who, in the neighbourhood, was said to have been an air force pilot under Saddam Hussein's regime,-was familiar to them and had even attempted to recruit local men. ""He used to come to the mosque and speak to us, encouraging all to fight,"" Zaidan added. READ MORE: Battle for Mosul upends false Iraq narrative Last week, Iraqi special forces were still battling ISIL just 200 metres from the scene of the al-Amel strike. Bullets cracked overhead with great frequency, punctuated by the sporadic boom of artillery shells. The fight centred on a graveyard where some of the dead from the January strike had been buried. Ataallah's family has replaced the broken walls and windows of their home with stacks of breeze blocks that once made up their neighbours' homes. It is a precaution against mortars, two of which landed in their courtyard recently, leaving black marks and shattered tiles. Her son, Imran, still hobbles around on crutches. The room where he was buried for a time is still just rubble, and he points to the blanket that he was under when it happened. ""I had one breath there. I used it to shout,"" he recalled. In a cast, his broken leg appears dark and swollen, and he dabs a handkerchief at an infected eye that will not stop watering. The family understands what happened and who is responsible. ""We know what an air strike sounds like,"" said 25-year-old Radwan, Ataallah's eldest son. Seconds later, a jet called in by special forces roared overhead, reportedly to bomb an ISIL target a few blocks away. Understanding why is harder. ""They killed most of our neighbourhood for one ISIL member and they didn't even get him,"" Ataallah said despairingly. ""I don't understand it."" Source:-Al Jazeera", -3486,2017/3/27,http://www.aljazeera.com/news/2017/03/hamas-eases-gaza-lockdown-manhunt-170327093339785.html,Hamas eases Gaza lockdown amid manhunt,Gaza authorities ease travel restrictions after imposing a 24-hour closure after assassination of senior Hamas official.,"Hamas authorities partially reopened the crossing between the Gaza Strip and Israel on Monday, after a one-day closure following the assassination of one of the group's top commanders. ""From Monday morning, travel through the Beit Hanoun [Erez] crossing will be permitted temporarily for some categories,"" a statement from Iyad al-Bozum, a spokesman for the interior ministry in the Palestinian enclave, said. Anyone would be allowed to enter Gaza, the statement said, but those leaving would remain restricted to senior politicians, the sick, women of all ages, and families of prisoners. Men and boys who have an Israeli permit to leave the Strip would be restricted to those under 15 and over 45. Hamas, which runs the Gaza Strip, closed the crossing on Sunday after blaming Israel for the assassination of one of its senior officials. Travel into and out of the Gaza Strip is heavily restricted by Israeli authorities - part of a crippling blockade in place since 2007 - but the Hamas-implemented closure was seen as a rare measure. Mazen Faqha, 38, who was shot dead by unknown gunmen on Friday outside his home in Gaza City. Hamas officials blamed his killing on the Israeli intelligence agency Mossad and its ""collaborators"". He was killed by four bullets from a pistol equipped with a silencer, police in Gaza said. Hamas did not give details as to the reason for closing the crossing, though there was speculation that authorities were seeking to prevent those responsible for the killing from leaving. Israel has not commented on the shooting. According to Hamas, Faqha formed cells for the group's military wing in the occupied West Bank cities of Tubas, where he was born, and Jenin. In Pictures: Thousands attend Gaza funeral of slain Hamas official Faqha's funeral on Saturday drew thousands of Hamas supporters into the streets with chants of ""revenge"" and ""death to Israel"". Ismail Haniya, until recently head of Hamas in Gaza, and Yahya Sinwar, who replaced him as leader, led the procession. The Erez crossing is the only passageway between Gaza and Israel through which people may cross. The Karm Abu Salem (Kerem Shalom) crossing with Israel remained fully open over the weekend, as it only permits the passage of commericial goods.- A vast majority of the nearly two million Palestinians living in the Gaza Strip remain sealed inside the coastal enclave due to Israel's military blockade, in place for the last decade.-Gaza's sole crossing with Egypt has also remained largely closed in recent years. Three large-scale Israeli offensives in the past eight years have left Gaza's sanitation, energy and medical facilities severely damaged. The United Nations has warned that due to lagging reconstruction efforts hampered by Israel's blockade and heavy levels of destruction, Gaza may become ""uninhabitable"" by 2020. Source:-Al Jazeera and news agencies", -3487,2017/3/27,http://www.aljazeera.com/news/2017/03/high-students-hit-tochigi-avalanche-170327035931601.html,High school students hit by avalanche in Tochigi's Nasu,Mountain-climbing expedition of several local schools in Tochigi prefecture engulfed by avalanche in Nasu ski resort.,"An avalanche has killed seven Japanese high school students and a teacher on a mountain-climbing outing, and injured 40 more. More than 100 troops were deployed in a major rescue mission after the avalanche hit ski slopes in Tochigi prefecture north of Tokyo on Monday. Television footage showed rescuers climbing the mountainside as ambulances stood by. A total of 52 students and 11 teachers from seven high schools were on a three-day mountaineering expedition when disaster struck. A warning had been issued for heavy snow and possible avalanches from Sunday until Monday in the area, with the local weather agency forecasting snowfall of some 30 centimetres. In the latest update seven students and one teacher, mostly from Otawara High School in Tochigi, were found with no vital signs, an official with a prefectural disaster task force told AFP news agency. In Japan, deaths in such circumstances are not announced officially until doctors can confirm them. Officials earlier said eight students had no vital signs. Some 40 people have been injured, including two students in serious condition, the prefectural official said. ""All the people have been carried down from the mountain and they are now being transported to hospital,"" he said. The avalanche struck in the town of Nasu 120km north of Tokyo on the final day of the excursion, Tochigi authorities said, adding that soldiers were brought in at the request of the prefecture's governor. Local media cited experts as saying it was likely a surface avalanche, caused by a heavy snowfall accumulating on a previous deposit of slippery snow. ""This (outing) is an annual event and we never had a major accident before,"" one of the teachers told Jiji Press. ""I am really shocked."" The ski resort had been closed for the season, according to the operator's website, with the lift stopped and no skiers at the site. But some of its facilities were made available for the high school mountaineering trip organised by local physical education authorities. Source:-News agencies", -3488,2017/3/27,http://www.aljazeera.com/news/2017/03/opposition-leader-alexei-navalny-appears-court-170327084823591.html,Opposition leader Alexei Navalny appears in court,"EU calls for release of prominent Kremlin critic Navalny, a day after he was detained at opposition protest in Moscow.","Russian opposition leader Alexei Navalny appeared in court on Monday, a day after being detained at a major opposition protest that he had organised. Tens of thousands of protesters took to the streets across Russia on Sunday in the biggest show of defiance since the 2011-2012 anti-government protests. The Kremlin has dismissed the opposition as a Westernised urban elite disconnected from the issues faced by the poor in Russia's far-flung regions, but Sunday's protests included demonstrations in the areas which typically produce a high vote for President Vladimir Putin, from Siberia's Chita to Dagestan's Makhachkala. PROFILE: Alexei Navalny, thorn in Putin's side Russian police say that about 500 people were arrested, while human rights groups say 1,000 were taken into custody. On Monday, the European Union called on Russian authorities to release the demonstrators. The protests were led by Navalny, a charismatic opposition leader who has recently announced his bid for presidency. Navalny was grabbed by police while walking to the rally from a nearby subway station. He posted a selfie on Twitter from the courtroom on Monday morning, saying: ""A time will come when we'll put them on trial too - and that time it will be fair."" If found guilty, he could be jailed for 15 days for staging an unauthorised rally. The 40-year-old Navalny, arguably Russia's most popular opposition leader, has been twice convicted on fraud and embezzlement charges that he has dismissed as politically motivated. Navalny is currently serving a suspended sentence, and Sunday's arrest could be used as a pretext to convert it into jail time. Separately, police arrested 17 associates of Navalny's who were at their office setting up and monitoring a webcast of the rally. All of them spent the night at the police station and the authorities reportedly confiscated all their equipment. It was not immediately clear what charges they may be facing. Whether Navalny and his associates will be slapped with new charges could indicate which approach the Kremlin will take in dealing with a new wave of discontent: crack down on it even further or exercise restraint. Russian state television completely ignored the protests in their broadcasts on Sunday. OPINION: Under surveillance in Russia The demonstrations on Sunday were organised by Navalny, who urged people to take to the streets to demand the resignation of Prime Minister Dmitry Medvedev. Navalny called for the protests after publishing a detailed report this month accusing Medvedev of controlling a property empire through a shadowy network of non-profit organisations. Medvedev, who has so far made no comments on the claims, is accused of amassing a private collection of mansions, yachts and vineyards. The alleged luxuries include a house for raising ducks, thus many placards in the protests showed mocking images of a yellow toy duck. Al Jazeera's Rory Challands, reporting from Russia, said that the breadth and scale of Sunday's protests had likely surprised both Navalny and the Kremlin; solidifying Navalny's position as the pre-eminent opposition voice. ""Navalny's message of anti-corruption has really struck a chord with Russians,"" said Challands. ""And going after Dmitry Medvedev, the prime minister, is pretty canny because - although Putin at the top of the tree is fairly unassailable - Dmitry Medvedev is a different political animal. He is much more vulnerable, much less popular, and putting pressure on him puts pressure on Vladimir Putin."" Though criticised by some liberals for his anti-immigrant nationalist stance, Navalny has tapped into discontent among the young urban middle class with fiery speeches and Western-style campaigning. Pavel Felgenhauer, a political analyst,-told Al Jazeera that Navalny's focus on corruption particularly resonated with young people ""� a demographic that is struggling under Russia's economic stagnation and high unemployment ""� and brought them into the streets in large numbers. ""Now the authorities have to think what to do about that: most likely there will be a combination of kind of placating from one side and going and putting a lot of people behind bars,"" said Felgenhauer. Felgenhauer said that the authorities would be able to easily commute Navalny's suspended sentence into an actual prison sentence. ""Most likely Navalny understands that, and actually being prosecuted in Russia gives you 'points',"" said Felgenhauer. ""He is playing the long game."" But in an environment where the media and the political landscape are tightly controlled by the Kremlin, Navalny remains a fringe figure for most Russians, who are more likely to believe the official portrayal of him as a Western stooge and convicted criminal. ""Navalny is a unique politician of the younger generation,"" Nikolai Petrov, a professor at the Higher School of Economics in Moscow, told AFP agency, adding that he had managed to develop a high profile ""at a time when public politics has ceased to exist"". Source:-Al Jazeera and news agencies", -3489,2017/3/27,http://www.aljazeera.com/news/2017/03/backed-forces-capture-tabqa-air-base-isil-170327033050002.html,US-backed forces 'capture' Tabqa airbase from ISIL,"SDF take military airport from ISIL in northern Syria, close to country's largest dam that may be in danger of collapse. Fear of collapse","A US-backed alliance of Syrian Kurdish and Arab fighters has captured a strategic airbase from ISIL in northern Syria in the first major victory for the group since the US airlifted the forces behind enemy lines last week.- The Kurdish-led Syrian Democratic Forces (SDF) announced on Sunday that they captured the Tabqa airbase, 45km west of Raqqa, the Islamic State of Iraq and the Levant (ISIL) group's de facto capital in Syria. SDF forces were also battling for the nearby Tabqa dam, held by ISIL, which was forced out of service on Sunday after its power station was damaged. Earlier this week, US forces airlifted SDF fighters behind ISIL lines to allow them to launch the Tabqa assault, and on Friday the alliance reached one of the dam's entrances. SDF forces were within 10km of Raqqa from the north, and aimed to effectively surround the city before launching an assault. Tabqa airbase was captured by ISIL fighters from the Syrian government in August 2014. Shortly afterwards, the group announced it had killed about 200 government soldiers at the base, in a mass killing recorded and distributed on video over social media. The UK-based Syrian Observatory for Human Rights monitoring group also reported the SDF advance. Meanwhile there were conflicting reports over whether civilians had begun evacuating Raqqa due to concerns over the stability of the nearby Tabqa Dam. OPINION: US expects allies to pick up the pieces after ISIL ISIL fighters said US-led coalition air strikes had locked up the dam's gates, causing the water level behind it to rise. The activist group Raqqa is Being Slaughtered Silently reported that ISIL had ordered Raqqa residents to evacuate the city. The director of the Syrian government's General Authority of Euphrates Dam that formerly operated the huge project blamed US air raids for disrupting internal control systems and putting the dam out of service, and warned of growing risks that could lead to flooding and future collapses. ""Before the latest strikes by the Americans, the dam was working. Two days ago, the dam was functioning normally,"" Nejm Saleh told Reuters news agency. ""God forbid ... there could be collapses or big failures that could lead to flooding,"" Saleh said. An SDF spokesman denied that coalition strikes hit the dam structure and said the airdrop landing last week was conducted to prevent any damage to the main structure by engaging the rebels away from the dam. ""The capture of the dam is being conducted slowly and carefully and this is why the liberation of the dam needs more time,"" Talal Silo said, adding that ISIL fighters had dug inside the dam knowing they would not be hit for fear of damaging the dam. The Syrian Observatory said it had also learned from its own sources that the dam had stopped functioning, but that ISIL remained in control of its main operational buildings and turbines. US-backed Kurdish forces were in control of a spillway north of the dam ""which can be used to alleviate pressure on the dam if need be,"" the coalition said in a letter to AP news agency. The coalition said the dam had not been structurally damaged, to its knowledge, and that it has not targeted the dam. The SDF announced that it would ""suspend its operations"" in the vicinity of the dam on Monday for four hours so that engineers could access it and carry out much needed repairs. The UN warned this year of the risk of catastrophic flooding from the dam. OPINION: The US must heed Turkish concerns in Syria The Syrian Observatory and the activist-run Raqqa 24 media centre reported that as of Sunday-there were no evacuations in Raqqa. The reports from Raqqa came as a leading Syrian opposition group called on the US-led coalition to stop targeting residential areas in and around the city. The Syrian National Coalition (SNC) said in a statement that it was ""increasingly concerned"" about civilian casualties in the campaign against the group. The exiled opposition coalition is taking part in UN-mediated talks in Geneva. The SNC said it believed coalition forces were behind an air strike that killed at least 30 civilians sheltering in a school in the countryside outside Raqqa on March 21. The coalition has said it is investigating. The Syrian Observatory said coalition air strikes had killed 89 civilians in Raqqa province in the past week. Source:-Al Jazeera and news agencies", -3490,2017/3/27,http://www.aljazeera.com/indepth/opinion/2017/03/washington-show-human-rights-hearings-170326102511868.html,,,"The Trump administration's failure to appear at hearings at the-Inter-American Commission on Human Rights-on March 21 telegraphs its disregard for international institutions generally and human rights in particular. Trump officials notified the Commission, which is the independent human rights organ of the Organization of American States, a day before the scheduled hearings that it would not attend. State Department official contended that it would be inappropriate to participate since several of the hearings addressed issues under judicial review: the administration's executive actions on immigration and its greenlighting of the Dakota Access Pipeline, which are winding their ways through the courts. But that explanation failed to assuage critics, who argued that Washington's absence erodes its legitimacy, emboldens authoritarian leaders in the hemisphere to shrug off their own accountability and dodge dialogue and presages broader disengagement with international human rights institutions. The move represented an abrupt departure from past practice. The United States has a long, bipartisan history of engaging with the Commission, even when the topic is being litigated. Further undermining the administration's stated excuse, among the hearings scheduled were the country's failure to respect the rights of asylum seekers - grievances that predate the Trump administration but endure under his watch - and-a case about Peruvian-Japanese detention during World War II that is not the subject of pending litigation. A State Department official sought to offer reassuring words, claiming that the refusal to participate ""does not have any bearing on current or future US engagement with the Commission"". -But if ongoing litigation were really the driving force behind Washington's absence, officials could have signalled their respect for the process and the participating parties by attending the meeting and rebuffing questions they deemed inadvisable to answer. Human rights groups were outraged. Jamil Dakwar, director of the-American Civil Liberties Union human rights programme,-noted: ""This is another worrying sign that the Trump Administration is not only launching an assault on human rights at home, but is also trying to undermine international bodies charged with holding abusive governments accountable."" And according to-Clara Long, US Programme researcher at Human Rights Watch: ""In pulling out of this hearing, the United States is offering a negative example for the rest of the countries in the Americas, who show up and engage in the Inter-American system."" The refusal to participate puts the US in the company of other countries whose human rights records it disdains. Some observers have suggested that the administration's decision may be more reflective of lax attention to protocols and its staffing of the State Department than outright hostility to the Commission and its mission. But whether the result of intentional snub, dysfunction or different priorities, the move damages US leadership. ""This reduces a lot of the Trump administration's credibility and legitimacy on human rights issues,"" Jose Miguel Vivanco, head of the Americas division of Human Rights Watch, told the Miami Herald.- ""In addition to it being a symbol of arrogance, [the US] risks not being taken seriously when they criticise other countries for not showing up at these hearings,"" Vivianco said.- OPINION: Human rights - from Obama to Trump The administration's absence didn't thwart the proceedings, during which groups offered testimony amid the spectacle of empty chairs administration officials were expected to fill, while Commission officials expressed dismay at Washington's intransigence. Commission Vice President Margarette May Macaulay called the administration's refusal to show up-""a pity"", while Commissioner Paulo Vannuchi lamented the refusal to attend, ""which is what would have made it possible for there to be a democratic exchange of opposing views being aired"". The move occurred against the backdrop of other indications that the Trump administration has little interest in embracing a multilateral approach to human rights and institutions. - Earlier last week, UN ambassador Nikki Haley announced that the US was boycotting-a UN Human Rights Council session because of perceived anti-Israel bias. Secretary of State Rex Tillerson previously threatened to withdraw from the Human Rights Council altogether, given what he says is unfair treatment of Israel, as well as the inclusion of countries with blemished human rights records among its ranks. In a letter obtained by Foreign Policy, the top diplomat said that the human rights body required ""substantial reform"" if the US is to remain involved.-Tillerson also provoked consternation when he skipped the release of the State Department's annual human rights report, which reviews the record of all other nations but abstains from assessing its own shortcomings. - Critics are wary of other administration efforts to undermine transnational accountability, such as its effective withdrawal from Extractive Industries Transparency Initiative. President Donald Trump is reportedly planning to cut billions from UN funding, which could usher in a ""breakdown of the international humanitarian system as we know it"". Under ordinary circumstances, Washington prefers not to be named and shamed for violating international norms. But Trump's contempt for multilateralism and accountability is hardly surprising. After all, this president previously expressed no qualms about promoting torture, filling up Guantanamo Bay prison and killing the families of terrorists.- To be sure, Washington's human rights record has been far from perfect, both at home and abroad, but at least the Obama administration promoted the architecture of internationalism and the human rights principles and protections it sought to uphold. While the Trump administration has given occasional, anemic lip service to these ideals, its actions speak far louder than words. Lauren Carasik is a clinical professor of law and the Director of the International Human Rights Clinic at Western New England University School of Law.-She has provided legal support for the water protectors. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3491,2017/3/27,http://www.aljazeera.com/news/2017/03/gaza-israel-border-shut-mazen-faqha-killing-170326074751094.html,Gaza-Israel border shut after Mazen Faqha killing,"Hamas closes northern Gaza crossing 'until further notice', as it reflects on Mazen Faqha's killing, blamed on Israel.","Hamas authorities have shut the Gaza border with Israel after the killing of a senior commander, which Hamas blamed on ""Israel and its collaborators"". The rare measure reflected Hamas' shock after the killing of Mazen Faqha , who was found shot dead at the entrance of his Gaza City home late on Friday. Hamas Interior Ministry spokesman Iyad al-Bozum on Sunday announced-(Arabic) that the Beit Hanoun checkpoint, which faces the Israeli crossing of Erez in the north of the Gaza Strip, would be closed until further notice. ""In light of the humanitarian situation, only the residents of Gaza with humanitarian cases will be allowed to return to Gaza via the Beit Hanoun checkpoint,"" Bozum said. Hamas' foreign ministry clarified in a press release on Monday that it would allow the families of prisoners, people seeking medical care, women, and all males under the age of 15 and over the age of 45 to exit Gaza through the Beit Hanoun checkpoint. Hamas security services are investigating the circumstances of Faqha's killing. Bozum called on Gaza's citizens and media to be responsible in dealing with the event and not to circulate rumours about the incident. IN PICTURES: Thousands attend Gaza funeral of slain Hamas official Mahmoud al-Zahar, a senior Hamas official, told Al Jazeera that Hamas will not announce how it plans to respond to the assassination, but the ""blood of our people will not go in vain, especially in a crime this big"".- On whether the group plans to respond militarily, al-Zahar said, ""This is a security issue that we cannot disclose. But for sure, the Israeli entity will be punished and deterred.""- Hamas, the group that rules Gaza, said Faqha was shot four times in the head with a silenced gun. The group said that Israel and its ""collaborators"" were responsible for the killing.- ""No one would benefit from this crime except the Zionist enemy and not to mention, the Zionist enemy announced in all of its media that the leader, Mazen Faqha, is on the top of the wanted list,"" senior Hamas official Salah al-Bardawil told Al Jazeera.- ""The Palestinian resistance has its methods and the capacity to respond,"" al-Bardawil said.- ""The punishment will be of the same nature as the attack. The matter is now in the resistance movement's hands,"" he added.- READ MORE: Hamas blames Israel after Mazen Faqha assassination Faqha, 38, was a senior Hamas official in the Israeli-occupied West Bank when he was jailed by Israel in 2003 for planning attacks against Israelis. He was sentenced to nine life terms but was released into the Gaza Strip as one of more than 1,000 Palestinian prisoners that Israel let go in exchange for soldier Gilad Shalit. Shalit was held in the coastal enclave after being seized in a cross-border raid in 2006. An Israeli military spokeswoman declined to comment on the assassination in the Hamas-run Palestinian coastal enclave, which has been under Israeli blockade since 2006. The Islamic Jihad movement said Faqha's assassination marked the beginning of ""a new offensive"" by Israel against the Palestinian resistance, and that the resistance had the right to respond and defend itself. With additional reporting by Hosam Salem from Gaza .- Source:-Al Jazeera News", -3492,2017/3/27,http://www.aljazeera.com/indepth/features/2017/02/brazil-prisons-battleground-drug-wars-170219053354497.html,Brazil's prisons: A battleground in the drug wars Sam Cowie,A growing gang war over drugs is fuelling bloodshed in Brazil's neglected and overcrowded prisons. By Brazil's prison problem A war with no end,"- - Manaus, Brazil---It was-early evening on January 1, 2017,-when Maria heard that a riot was under way at Complexo Penitenciario Anisio Jobim (COMPAJ) - the prison where her two sons Antony, 27, and Antonio, 22, were being held. Maria - an alias she requested for security reasons - spoke to Al Jazeera from her small red brick home in a poor Manaus neighbourhood.- Her son Antonio had been sent to the prison in September, his third sentence for stealing motorbikes. He entered as a marked man, having supposedly informed on someone when he was arrested. Antonio asked to be put on the secure wing, the section of the prison which houses prisoners, such as those convicted of sexual crimes, former police officers and rivals of dominant prison gangs, who are deemed at risk from other inmates. Antonio called his mother every day, using an illicit mobile phone.-""He said that guys kept promising to kill him,"" she said. READ MORE: Dozens killed in prison riot in Brazil city of Manaus Antony, Maria's older son, convicted of drug trafficking and criminal association, ended up being transferred to COMPAJ from another prison a few days before Christmas. He asked to stay with his brother in the secure wing.-""It was the first time they had seen each other in about five years because they had both been in and out of jail at different times,"" said Maria. Antonio shared the wing with Moacir ""Moa"" Jorge Pessoa da Costa, a former policeman convicted of homicide who became a local celebrity in 2009 when he claimed that he was contracted by a state legislator - Wallace Souza - to execute drug dealers to boost TV ratings for a popular TV crime show Souza presented. Al Jazeera visited Moa's wife at her home but she didn't want to speak on record.- Also in the secure wing was Jackson de Oliveira Avelino, 25, who was three years into a 15-year sentence for murder and disposal of a body. ""He was a good boy,"" his mother Marlene said. ""But he took drugs - cocaine - and got involved with the wrong people. They forced him to take part in the crime."" Jackson was transferred to the secure wing after he was savagely beaten by a group of inmates who accused him of being a snitch because he received a shorter sentence for his crime. Marlene visited him each week. He told her that he was being threatened, that people were passing in front of his cell in the secure wing and saying ""Your time is coming"" as they made throat-cutting gestures. ""He said 'Mum, there is going to be a rebellion',"" Marlene recalled. ""I asked him, 'Do you believe in God?' He said 'I do mum, but here it's not about God, it's about survival'."" The prisoners held a party on New Year's Eve. Marlene said that she and her husband paid a prostitute to visit their son Jackson inside.-""They were having fun, drinking and taking photos,"" said Marlene. The next day, at around 4pm,-inmates from Manaus's dominant drug trafficking group Family of the North (FDN) - which controls the prison - attacked the secure wing, where the inmates from a rival gang,-the-Sao Paulo-based First Command of the Capital (PCC),-which has been encroaching on the former's territory, were held. The FDN prisoners stormed the secure wing with guns and machetes, filming the slaughter on mobile phones. ""We knew they were dead when we saw the videos,"" said Maria, referring to the images of beheaded and dismembered corpses that circulated that night on social media and local news sites. READ MORE: Manaus residents live in fear after prison breaks The violence lasted 17 hours. Marlene's son Jackson was decapitated. Maria's son Antony had his throat cut and Antonio was beheaded. Having served a third of his sentence, Antonio had received permission to be transferred to a different, semi-open part of the prison. The transfer would have saved his life, but the prison authorities didn't act in time. ""When you are poor and you can't afford lawyers, these people [the authorities], they treat you like dirt,"" Maria said.- After the killings, Manaus street hawkers sold DVDs entitled 'FDN v PCC - the massacre', a compilation of the video footage shot during the slaughter. Altogether-56 prisoners were killed in the riot.-It was Brazil's worst prison massacre since Carandiru in Sao Paulo in 1992, when the military police killed 111 prisoners. The riot was part of a wider wave of prison violence:-more than 130 Brazilian prisoners have been killed-since the beginning of this year-- many decapitated, dismembered or burned - in a series of uprisings that have shocked a country long accustomed to this kind of violence.-In 2016, 379 inmates were killed. Experts say that the prison killings reflect decades of failed policy; the prison population has soared beyond the control of a chronically underfunded system, enabling gangs to step in and take the place of the state. The upsurge in violence is also attributed to growing tensions between gangs fighting for control of the cocaine trade. Following the prison violence, hopes have been spurred for prison reform and a rethink on drug decriminalisation - outcomes considered essential by some experts to prevent further bloodshed. READ MORE: Brazil to transfer gang leaders after prison massacre Each day, dozens of relatives line up outside COMPAJ prison to deliver fresh clothes, hygiene products and food to the inmates - all of which are supposed to be provided by the state. Families complain of prisoners being served rotten, barely edible food. ""It was me who took care of him, I did everything, the state did nothing,"" said Marlene. Marlene and the other families of those killed in the riots will receive compensation of BRL 50,000 Brazilian real (roughly $16,000) for each victim, a move criticised by conservative Brazilian politicians. That some kind of violence was imminent was seemingly known to the authorities. In 2015, federal police intercepted text messages that appeared to be planning an attack, shortly after three PCC leaders were killed. A United Nations special task force visited prisons and sent a report to the government months before, warning that the prison was out of the state's control and in the hands of the gangs. Other prisoners sent letters to the authorities saying that they were being threatened. READ MORE: Brazil: Dozens more killed as prison gang war escalates ""Despite the constant warnings, the prison simply did not have the structure to prevent an eventual outbreak of violence,"" said Rafael Custodio, the justice programme coordinator at Conectas - an international human rights NGO. The private prison contractor Umanizzare - Italian for ""humanise"" - that administers COMPAJ jail is currently being investigated for overbilling and the misuse of public money. Al Jazeera was unable to access COMPAJ jail.-At the time of the massacre, the prison was severely overcrowded with 1,224 prisoners. The prison is supposed to hold 454. Marlene said that her son Jackson shared his cell with 20 others. According to the Justice Department, Brazil houses about 650,000 prisoners in just 300,000 spaces, with the prison population having grown by 270 percent between 2000 and 2014. Brazil's prison population is now the world's fourth-largest behind the US, China and Russia. About 40 percent of prisoners are awaiting trial. The majority are poor young black men with little education and who cannot afford lawyers. READ MORE: Dozens killed and wounded in Alcacuz prison riot Nonetheless, mass incarceration policies are popular with Brazil's electorate; tough measures on crime win votes in a country with more than 50,000 murders a year. ""In general, public opinion supports mass incarceration and the politicians are just surfing this wave,"" said Ilona Szabo de Carvalho, cofounder and executive director of the Igarape Institute, which campaigns for prison and drug reform. There is also widespread tolerance for the poor conditions, Carvalho added. But experts say that terrible conditions in prison reinforce the strength of the gangs, who control the majority of Brazilian jails. In general, public opinion supports mass incarceration and the politicians are just surfing this wave Ilona Szabo de Carvalho, cofounder and executive director Igarape Institute Upon entry, young men from poor communities are courted by gangs who can provide protection and benefits such as better food, hygiene products, mobile phones and support to families on the outside. ""People that enter are vulnerable to gangs because the state doesn't have any power inside, it's the gangs that decide,"" said Manaus judge Luis Carlos Valois, who negotiated the end of the COMPAJ riot. ""You may have four guards and 1,000 prisoners. It's a question of survival."" Following the massacres, the government launched a National Security Plan, which will see more prisons built over the next few years, as well as special custodial task forces set up to deal with the huge number of pre-trial detainees, and measures to tackle overcrowding.-Non-violent prisoners could be released or granted lesser penalties, such as wearing an electronic ankle tag. Judge Valois expressed criticism of these measures.-""We have to deal with the sheer numbers of prisoners that we are arresting, we need to arrest fewer,"" he said. ""This has to start with a reform of the drug law."" Prominent figures, including an ex-president and a Supreme Court judge, have called for the decriminalisation of drugs. A 2006 drug law that fails to discriminate between user and dealer is cited as one of the main factors behind the prison population increase. Today, just under a third of inmates are inside for drugs offences - a 340 percent increase since 2005. But any kind of drug reform is likely to encounter resistance within Brazil's conservative Congress, home to a powerful Evangelical Christian caucus, where there are currently 14 proposed projects to make drug laws even tougher. For the Igapare Institute's Szabo de Carvalho, however, any discussion of drug decriminalisation is a step in the right direction, even if initially voted down in Congress. ""We had a horror show in January, if we forget what happened; we are going to go back to that in a few months,"" she said. A hard line on drug enforcement has done nothing to stem an explosion in gang violence in Manaus, which in turn fuels prison bloodshed. On a Monday morning, Manaus reporters and photographers gathered at a crime scene waiting for an official line from chief homicide detective Torquato Mozer. Earlier that morning, a motorcycle taxi driver had found two black sacks by the side of the road. One contained a young man's head, the other his limbs and torso. Mozer said that an investigation would be launched as to whether the crime had any connection to the massacre at COMPAJ jail. ""Given the barbarity of the crime, we cannot rule out this possibility,"" Mozer told Al Jazeera at the scene. A war for control of drugs rages in Manaus,-the capital of Brazil's Amazonas state, which shares borders with cocaine producing countries Colombia and Peru, making it an important transit point as well as a place with its own lucrative market. ""Every corner here, there are drugs,"" said Marlene. In the past decade, Brazil has become the world's second-largest consumer of cocaine. READ MORE: 56 killed, many beheaded, in grisly Brazil prison riot Al Jazeera spoke to Sergio Fontes, Amazonas state security chief, at his office located in the basement of a Manaus shopping centre. He mentioned a range of ideas to counter the drug trade, such as sanctions against drug-producing countries that refuse to eliminate coca crops, as well as state drug provision programmes for addicts. ""When I see cracolandias [open air crack cocaine markets], I think - why doesn't the state give drugs to them? They wouldn't need to rob, to prostitute,"" he said. ""Canada did this with heroin."" Ultimately, however, Fontes said that his only possible course of action for the meantime was to carry on with drug repression, even if it led to more violence. Amazonas is Brazil's fourth-poorest state, leaving it more vulnerable to the violence and corruption associated with drug trafficking than rich-states such as Sao Paulo. The FDN drug gang, which controls most of the local drug trade, formed about 10 years ago when Manaus criminals joined forces to resist the encroaching Sao Paulo PCC group. A federal police investigation revealed the close links between state authorities and the FDN, with a meeting between then Under Secretary of Justice Major Carliomar Barros Brandao and FDN leader Jose Roberto Fernandes Barbosa at the COMPAJ jail. Barbosa allegedly promised 100,000 votes for the re-election of Governor Jose Melo, for which Brandao promised that no one would ""mess with"" the gang. Melo and Brandao have denied this claim. Security experts say that the recent prison violence relates to a rupture between Sao Paulo's PCC and Rio de Janeiro's ""Red Command"" gang - who held a truce for nearly 20 years - following the killing of a major Paraguayan drug wholesaler on the Brazil border, consolidating the PCC's power in the region. Initially, the war began at the end of 2016 with killings inside prisons-in the north of the country that were attributed to the PCC. According to security experts, Manaus' FDN - who are allied, but not subordinate to Rio's Red Command - committed the New Year's Day Manaus killings in revenge for the Rio group. In a Brazilian funk track released days after the massacre, FDN pays homage to the killings and confirm their alliance with the Red Command. ""These local factions have joined with the Red Command to resist the advance of the PCC because they know they can't do it alone,"" said Lincoln Gakiya, a Sao Paulo-based prosecutor who has been investigating the PCC for 10 years. The PCC formed in Sao Paulo's prison system during the 1990s and is today considered to be Brazil's most powerful criminal organisation, with a membership of about 22,000 and a presence in almost all Brazilian states as well as neighbouring countries, according to Gakiya. The group's most important leaders are imprisoned and today the group has a strong presence in 90 percent of the jails in Sao Paulo state. The PCC already dominates trafficking routes around Brazil's southern borders with Bolivia and Paraguay, and they have greater ambitions. The Amazonian drug trafficking routes are of particular interest to the group because the region is so open and undermanned by police, and cocaine from Colombia and Peru is of a superior quality to that of Bolivia. ""But there is resistance from the local crime groups,"" said Gakiya. ""Therefore, it's a war that has no end in sight."" Source:-Al Jazeera News", -3493,2017/3/27,http://www.aljazeera.com/indepth/features/2017/03/mosul-air-strikes-crashed-170320101841818.html,Mosul air strikes: 'Everything crashed down upon us' Sam Kimball,Iraqi civilians share their plight as casualties continue to mount from US-led coalition air strikes in Mosul. By,"Erbil, Iraq --As Iraqi forces continue their ground war to retake Mosul from the Islamic State of Iraq and the Levant (ISIL, also known as ISIS)-group, the US-led anti-ISIL coalition air forces backing them appear to be killing significant numbers of Iraqi civilians in the process. Many local residents are speaking out publicly about homes destroyed and family members killed by air strikes that have relied on outdated intelligence or poor targeting.- One morning last November, as Iraqi forces battled ISIL fighters on the edges of the eastern-Mosul-neighbourhood of Hay Zahraa, about three dozen people huddled for safety inside the home of Seif Zaidan Khalaf. As Khalaf, 20, was on his way home, an air strike hit the house. ""My brother and my cousin died,"" Khalaf told Al Jazeera in a recent interview, his face still blank with grief. Square blocks of concrete lay scattered around his feet, fragments of the walls that collapsed in the strike. He picked up a cloak with a broad hole torn in the middle, which he said was wrapped around his cousin when he died. The bombs that killed his cousin, 31-year-old Sirhan Sleiman Salih, and his brother, 37-year-old Faris Zaidan Khalaf, were aimed at a fighter with the ISIL group , who had taken up a position on the roof of their house, said Khalaf and his neighbours. Whether the strike was conducted by the Iraqi forces, or from the US-led anti-ISIL coalition, they don't know. But the tactic of using air strikes to take out ISIL fighters on roofs is common, according to other air strike victims in Mosul Al Jazeera spoke to, as well as-emerging reports. While no government data is available,-the United States had, before-the recent Mosul strike in which hundreds may have died, admitted to killing 220 civilians since August 2014. Airwars, an-NGO-that has been monitoring air strikes against ISIL in Iraq,-Syria and Libya, has tracked the numbers of as many as 64 civilians likely killed in February, down from as many as 227 killed-in January-and-hundreds reported killed in just the first half of March. READ MORE: Battle for Mosul upends false Iraq narrative Khalaf recalled a terrifying scene on the morning of the strike on his home. ""Everything crashed down upon us,"" he said. ""The neighbourhood came around and pulled us out [from the rubble]. We went in a car to the hospital and ISIL wouldn't let us in. They said, 'You go sit at home, and wait for the apostates to come to you.' We even had a wounded ISIL fighter with us."" Walid Husain Ahmed, a 29-year-old volunteer with a local NGO that helps air strike survivors, said the victims of the strike each had seven children. In a house where some of the survivors have since sought shelter, many of the children, most younger than 10, milled around one of the rooms, occasionally squeezing through a half-open door to deliver cups of sugary tea to the adults. Khalaf and his family, who left Mosul after ISIL's takeover in the summer of 2014, took refuge in the northern al-Sheikhan district, a largely Yazidi and Assyrian area under Kurdish Peshmerga control. But when they heard that ISIL was planning to reappropriate empty houses in Mosul, they returned to reclaim theirs. A day after the strike that levelled Khalaf's home, Iraqi-counterterrorism forces retook al-Zahraa neighbourhood from ISIL. In another case, the Khodeida brothers, who are now living in the densely populated-slum neighbourhood-of Mamzawa on the outer edges of the Kurdish capital of-Erbil, are also struggling to recover after coalition air strikes claimed their mother, father and three sisters. The remaining four brothers, aged between 11 and 18, say their home in eastern Mosul was hit in mid-December. They are now living with an uncle. Today, just a corner of one wall of their home remains, along with the base of a concrete staircase that leads to the open sky. The explosion was so intense that it knocked down their neighbour's home. ""The airplane was circling above us. It was white,"" Marwan Khodeida, 18, told Al Jazeera. ""The roof of our house was open. I could see it. I could hear it."" Muthanna Khodeida, 17, said the whole family was sitting in the house at the time of the strike. ""I went out to get some toothpicks. When I got to the shop, I heard the strike. It was powerful. I ran back to the house and found it had been hit. I saw my [little] sister and realised her legs had been blown off."" Qahtan Khodeida, 11, said the family initially heard a plane striking a target that sounded far from their home. ""The second time, it struck us."" Scars from shrapnel wounds are still etched across the young boy's chest.- Chris Woods, head of the Airwars, said the-Mosul operation has been far too chaotic, without sufficient regard for the civilians in the path of bombs. ""Precision simply means your bomb or missile got where it needs to go. [The war] has gotten to a point where 500 to 1,000-pound, sometimes 2,000-pound, bombs are hitting-densely populated neighbourhoods,"" Woods told Al Jazeera, noting that coalition claims of accuracy do not necessarily mean that strikes have avoided civilian casualties. Coalition leaders have repeatedly stressed the-accuracy of their strikes and the extremely low loss of civilian life. When I got to the shop, I heard the strike. It was powerful. I ran back to the house and found it had been hit. Muthanna Khodeida, 17 And while many civilians in Mosul and elsewhere in Iraq have lost their homes and the lives of their family members through air strikes, obtaining compensation-has been a struggle. Some US officials have cited the American Foreign Claims Act,-a-World War II-era statute-that bars the military from compensating for civilians lawfully killed on the battlefield,-as a reason why not to compensate victims of strikes. Yet others, such as Sahr Muhammedally, from the Center for Civilians in Conflict, say that-legislation passed in 2014-specifically ensures that compensation will continue to be paid to victims of US conflicts. ""As far as we understand, not a cent has been paid by the allies after 30 months of war,"" Woods said.- The US has acknowledged the deaths of 220-civilians-through its air strikes since August 2014, but the other 12 partners in the anti-ISIL coalition ""claim outrageously-not to have killed any civilians"", Woods said.-Belgium, one of the leading partners, claims-zero civilian casualties. In an interview with Al Jazeera, deputy commander of the Iraqi Air Force, Lt General Faris Hassan Al Zireg Falah, was reluctant to acknowledge any cases of civilian deaths from Iraqi air strikes in Mosul. He noted the need to present indisputable evidence for admission of a civilian death, and stressed the high level of-planning-that goes into Iraqi air strikes. ""We started [air strikes] before the Mosul operations began, in September,"" he said. ""If you go back to the design of our air force, we are in the JOC [Joint Operations Center]. We get a grid every day, lay down targets, and then decide as a cell."" Falah added that Iraqi air forces keep-detailed recordings-of their strikes through a round-the-clock drone presence above the warplanes over Mosul. ""The purpose of these aircraft is to see when a target is engaged and what is the purpose of the strike,"" he said.- Meanwhile, Ahmed Hayder Hussein, the uncle of the Khodeida brothers, believes the air forces striking Mosul are not concerned as to whether civilians die. He feels that they are singularly focused on removing ISIL, regardless of the civilian cost. ""A plane comes, fires its missile, hits three or four houses, no problem. The important thing for them is they hit a target,"" Hussein said. ""But [are these people] they hit the-oppressors? No, they hit the oppressed."" Source:-Al Jazeera", -3494,2017/3/27,http://www.aljazeera.com/news/2017/03/profile-alexei-navalny-opposition-leader-170327053202858.html,"Profile: Alexei Navalny, opposition leader","Kremlin critic, detained in anti-corruption protests, has become Russia's most visible face of opposition.","""Don't try to fight for me,"" Alexei Navalny wrote on Twitter after police in Moscow arrested him during a protest , urging people to stay with the rally he had called. ""Our issue today is the fight against corruption."" Navalny, 40, a staunch Kremlin critic and anti-corruption campaigner, has long been the most visible opposition figure to the rule of President Vladimir Putin . Navalny lives in Moscow with his wife and two children. He rose to prominence in Russian politics in 2008 when he started blogging about alleged corruption at some of Russia's big state-controlled corporations. READ MORE: Kremlin critic Alexei Navalny detained in Moscow rally He used social media to reach out to predominantly young followers, mocking the establishment loyal to Putin.-He became a minority shareholder in major oil companies, banks and ministries, and posed awkward questions about holes in state finances. Before the 2011 parliamentary election, Navalny urged his blog readers to vote for any party except Putin's United Russia, which he dubbed the ""party of crooks and thieves"".- United Russia won the election amid widespread allegations of vote-rigging, albeit with a much-reduced majority. Navalny rallied tens of thousands during widespread 2011-12 anti-Putin protests. He came second in 2013's Moscow mayoral race after a grassroots campaign against the Kremlin-backed candidate.- Navalny launched hundreds of lawsuits contesting the victory of his rival, Sergei Sobyanin. Navalny served a 15-day prison sentence in 2015 for distributing leaflets for an opposition rally on the subway. In February, a Russian court found Navalny guilty in a retrial of a 2013 fraud case, which barred him from running for president next year. Judge Alexei Vtyurin handed down a five-year suspended prison sentence and a fine of about $8,500 to Navalny for embezzling timber worth about $500,000. Navalny pledged to appeal against the ""politically motivated"" ruling and continue with his plans of challenging President Vladimir Putin in the forthcoming presidential elections, even though the Russian law bars anyone convicted of a crime from running for a public office for 10 years. READ MORE: Russia's Alexei Navalny found guilty of fraud Navalny has faced criticism from the anti-Putin camp, reports the BBC. Some liberals have criticised what they see as Navalny's flirtation with Russian nationalism. He has spoken at ultra-nationalist events. Russian nationalists, too, were wary of his links with the United States after he spent a semester at Yale University in 2010. However, when the opposition elected its own leaders in a 2012 election, Navalny won the vote, beating veteran Putin critic and former chess champion Garry Kasparov. The demonstrations on Sunday were organised by Navalny, who urged people to take to the streets to demand the resignation of Prime Minister Dmitry Medvedev. The protests, which attracted crowds of hundreds or thousands in most sizeable Russian cities, were the largest coordinated outpourings of dissatisfaction in Russia since mass protests in 2011-2012. Dozens were arrested. Navalny called for the protests after publishing a detailed report this month accusing Medvedev of controlling a property empire through a shadowy network of non-profit organisations. Medvedev, who has so far made no comments on the claims, is accused of amassing a private collection of mansions, yachts and vineyards. The alleged luxuries include a house for raising ducks, so many placards in the protests showed mocking images of yellow toy duck. Source:-Al Jazeera and news agencies", -3495,2017/3/27,http://www.aljazeera.com/indepth/inpictures/2017/03/return-child-slave-170309083245536.html,Swapping voodoo convents for classrooms in Benin,,"Togo and Benin - On the West Coast of Africa, thousands of children are sold by their families, often for as little as $30. In exchange, they are offered the vague promise of a better life for their child. But what actually awaits is a life of slavery. The children endure physical and psychological abuse as they work from dawn until dusk far from their homes. As part of its child protection programmes, UNICEF develops strategies to prevent trafficking, as well as working with local organisations to identify and care for those children who have already been trafficked. Alongside governments, civil society and NGOs, it provides medical, psychological and social care to rescued children, as well as facilitating access to education, vocational training and job opportunities. NGOs Mensajeros de la Paz in Cotonou, Benin, and Carmelitas Vedruna in the Togo capital Lome, and Misioneros Salesianos in Kara and Lome, Togo, have cared for hundreds of child victims of slavery. By February 2017, these organisations between them had successfully reintergrated 1,527 children into communities.", -3496,2017/3/27,http://www.rte.ie/news/2017/0327/862798-garda-osullivan-politics/,Garda Commissioner invited to attend justice committee,,"The Chairman of the Justice and Equality Committee Caoimhgh��n Ó Caol��in has written to Garda Commissioner N��ir��n O""ullivan, inviting her to attend the committee on Thursday. It comes after Ms O'Sullivan said she will continue in her role as Garda Commissioner as she has ""a journey of work to do"". She was responding to questions at a news conference where she announced radical reform of the Garda Traffic Corps following controversies-over fixed charge notices-and the exaggeration of garda breathalyser test figures. Asked if she would stay on if the D��il voted no confidence in her next week, Ms O'Sullivan said she had to make sure she saw out the commitment she made to ensure the foundations of a modern professional police service that delivers the cultural, structural and organisational reform-necessary are put in place. Asked if that meant she would stay on she said: ""I am absolutely committed to making sure that we continue to deliver on the-transformation and the change and the reform agenda that I committed to Government we would do."" Last week it emerged that-more than 14,500 people who were prosecuted for road traffic offences are to have their-convictions quashed-as a result of-the controversy over fixed charge notices and the exaggeration of garda breathalyser test figures. It was revealed that from 2011 to 2016-the number of drink-driving tests garda�� claimed to have carried out was hugely exaggerated, by over 937,000. Garda Commissioner N��ir��n O""ullivan announces 'radical restructuring' of garda road policing network pic.twitter.com/9m1LwZSS5o ""?RT? News (@rtenews) March 27, 2017 Ms O'Sullivan today announced what she described as radical restructuring of roads policing as a part of a cultural reform to address issues around fixed charge penalty notices and roadside breath tests. She said the restructuring was-part of a cultural reform to address issues around fixed charge penalty notices and roadside breath tests. She said Assistant Commissioner Michael Finn will be relieved of his other responsibilities to implement the changes. Speaking-at Garda Headquarters in the Phoenix Park in Dublin she said the force-has been taking corrective actions to ensure the problems in both areas do not occur again. She said Assistant Commissioner Michael O'Sullivan has been appointed to establish the who, what and where of these issues and how they happened. She said it will not-just be a matter of dealing with garda�� on the ground but also looking at-the roles of supervisors and managers in the problems. She was joined at the press conference by Mr Finn and Deputy Commissioner John Twomey, who said it he would give a detailed briefing on the time line of how An Garda S��och��na discovered and dealt with the issues. He said in early 2016 a problem with the issuing of a fixed charge penalty notice was identified and this followed a change to procedures in December 2014. He said in all cases offences had been committed but the problem was in the procedures in how the offence was dealt with as some officers continued to follow the old procedures. There are more than 14,000 cases in which convictions will have to be set aside. He said a dedicated helpline will be available from 3-April for anybody affected. On the breath-test issue Mr Finn said he became aware two weeks ago of an issue with the roadside testing figures. He took down the figures from the garda website and informed the Road Safety Authority. 'Appropriate action will be taken' if deliberate falsification found Answering questions, Ms O'Sullivan said if a deliberate distortion of facts or falsification of figures was established then appropriate action will be taken. But she added no such distortions or falsifications had yet been identified and An Garda S��och��na will be investigating to get to the bottom of what happened. She said it was a fact finding investigation ""to establish what we're dealing with"". She said the force is working closely with the Central Statistics Office to ensure figures will be recorded correctly. Mr Finn said systems need to be put in place so all agencies who rely on data from garda��-can depend on it. Mr Twomey said An Garda S��och��na had embarked on an unprecedented process of reform and during such a process wrongdoing would be uncovered. Appearing on RT?'s Six One News later, Ms O'Sullivan reiterated that she would not be standing aside. She said she has a huge commitment to the reform programme she has been asked to undertake. The commissioner said it is totally unacceptable that garda�� recorded almost one million roadside breath tests that never happened, and said it will not be tolerated. She told RT? News the issue was first identified in June 2014 in the southern region and a national audit was started. She said the scale of the problem was established on 10 March this year. She acknowledged she was first aware of an issue with the tests in June 2014. Garda Commissioner, N��ir��n O""ullivan has said that she was not aware of the exaggeration of garda breathalyser test figures until 2014 pic.twitter.com/B1wRXR9OHj ""?RT? News (@rtenews) March 27, 2017 She said the results of an investigation into the issue by Assistant Commissioner Michael O'Sullivan will be known within three months. Ms O'Sullivan said it was an oversight that the Policing Authority had not been informed of issues with wrongful convictions for road traffic offences. She said that had been due to human error as some garda�� had wrongly issued summonses instead of fixed penalty notices, but there was also a system error as that should not have been possible. T��naiste and Minister for Justice Frances Fitzgerald met with Josephine Feehily, Chairperson of the Policing Authority for an hour today. Meeting between commissioner and minister 'constructive and useful' Taoiseach Enda Kenny earlier restated that he retains confidence in Ms O""ullivan.- Speaking in Tralee, he said a meeting between the Commissioner and Ms Fitzgerald would allow the commissioner to outline all the facts available on what was a ""very serious and important matter"".- Ms Fitzgerald-met Ms O'Sullivan for two hours this morning. A spokesperson for the minister described the meeting as-constructive and useful.- Mr Kenny said the Government had made important changes to An Garda S��och��na, including appointing Mary Ellen Ring to the Garda S��och��na Ombudsman Commission, setting up the Garda Inspectorate and bringing in a ""completely independent""-Policing Authority. But, he said, it would take some time for the authority to have a real impact on the culture and the perception of the garda��. A Sinn F��in motion on calling on the Government to Commissioner O'Sullivan will be debated-in two weeks time.- Fianna F��il yesterday-said it could not-express confidence in her at this time.", -3497,2017/3/27,http://www.rte.ie/news/2017/0327/862796-stormont-talks/,Brokenshire says short window remains to agree power-sharing deal,,"Parties in Northern Ireland have a ""short few weeks"" to strike a deal to save powersharing at Stormont, Northern Ireland Secretary of State James Brokenshire-said this afternoon. With a deadline for forming a new ruling executive following this month's snap election having elapsed at 4pm without agreement, the British government now either has to call yet another poll or potentially reintroduce direct rule from Westminster. Mr Brokenshire indicated he will delay taking action to allow the region's political leaders some more time to resolve their differences. Without an executive or agreed budget for the upcoming financial year, control of Stormont's finances will be handed to a senior civil servant on Wednesday, albeit subject to tight spending constraints. Mr Brokenshire said that was ""not sustainable"", making clear the final window for negotiations would not be allowed to drift. ""I think there are a short few weeks in order to resolve matters,"" he said. Northern Ireland Secretary James Brokenshire says there is an overwhelming desire for strong and stable devolved government pic.twitter.com/KaRkoiMYpv ""?RT? News (@rtenews) March 27, 2017 ""The reason I say that is because of the stark issue in relation to public services here in Northern Ireland and the lack of a budget having been set, and therefore it is the impact on public services on having an extended period that is very much at the forefront of my mind in terms of the responsibilities that we have as the UK government to provide that assurance to the public here."" The Democratic Unionist Party/Sinn F��in administration collapsed in January amid a bitter row over a botched green energy scheme. The subsequent snap election campaign laid bare a range of other contentious issues dividing the parties. Mr Brokenshire rejected criticism of the British government's handling of the talks to form a new executive and defended the fact Prime Minister Theresa May did not participate in the process. He said the government had played a ""positive and active"" role and Mrs May had been kept updated throughout. He declined to be drawn on calls for an independent mediator to be appointed to inject fresh impetus to negotiations that some politicians have described as a ""shambles"" to date. Under current legislation, the government is required to call another snap election if a deadline for forming an executive passes. However, there is some room for manoeuvre, as there is no obligation to set a poll date immediately, rather within a ""reasonable period"". Making a public statement at Stormont House, Belfast, after the 4pm deadline passed, Mr Brokenshire said there was ""no appetite"" for an immediate election. The government could also theoretically reintroduce-direct rule, but that move - which would require emergency legislation - looks unlikely at this stage at least. Mr Brokenshire said there was ""an overwhelming desire"" among politicians and the public for ""strong and stable devolved government"". ""We now have a short window of opportunity to resolve outstanding issues and for an executive to be formed,"" he said. ""Everyone owes it to the people of Northern Ireland to grasp that and provide the political leadership and stability that they want."" Mr Brokenshire said he would make a full statement in the House of Commons tomorrow setting out a way forward for the region. Flanagan warns of Brexit dangers Minister for Foreign Affairs Charlie Flanagan said the context of Brexit made it all the more imperative that a new executive was formed as soon as possible. ""The absence of agreement on the establishment of an executive is, for many reasons, deeply regrettable,"" he said. ""However, it is particularly concerning that a vacuum in devolved government in Northern Ireland should now be occurring just as the island of Ireland faces up to the many serious challenges represented by the UK exit from the EU. ""In these circumstances, all concerned must redouble efforts to achieve the re-establishment of power-sharing government in Northern Ireland, which is so plainly in the interests of all its citizens. ""The Irish Government will continue to advocate very strongly for Northern Ireland's interests to be protected. ""However, there is no substitute for an executive speaking with one voice on these critical issues."" Sinn F��in and the Democratic Unionists have blamed each other for the breakdown of the talks. DUP leader Arlene Foster claimed Sinn F��in's ""inflexible"" approach to negotiations was to blame. She said she did not believe another election would solve anything. Sinn F��in leader in Northern Ireland Michelle O'Neill, however, claimed the DUP had failed to live up to previous agreements and was standing in the way of progressive policies. ""We are standing firm - previous agreements need to be implemented,"" she said. ""We came at the negotiations with the right attitude, wanting to make the institutions work, wanting to deliver for all citizens. ""Unfortunately, the DUP maintained their position in relation to blocking equality, delivery of equality for citizens, that was the problem."" Sinn F��in has said it will not share power with Mrs Foster as first minister until a public inquiry into the renewable heat incentive (RHI) is concluded.", -3498,2017/3/27,http://www.rte.ie/news/2017/0327/862794-bus-eireann/,Bus ?ireann board 'gravely concerned' about accelerating losses,,"The board of Bus ?ireann has said that it is ""gravely concerned"" about losses the company is experiencing while strike action is being carried out by its staff. Staff at the company are taking part in a fourth day of indefinite strike action, which began due to a dispute over management's decision to implement a survival plan for the State-owned company without union agreement. Bus ?ireann has said the losses are accelerating,-and estimated that the dispute is costing it �100,000 per day. Around 110,000 Bus ?ireann customers are being affected by the strike. The board of Bus ?ireann met today to consider management proposals for a survival plan including up to 300 redundancies. Following the meeting, the company said in a statement that it was unable to sign off on the 2016 company accounts, or pass this year's budget without agreement from its staff. It said its inability to sign off the accounts is a ""very serious matter"", and it ""must now formally advise CIE that this governance requirement will not be met"". Management presented the board with a plan to secure the company's future - the key component is elimination of ""grossly inefficient work practices"". It has requested all staff to urgently engage with management at the company through their representatives to agree a survival plan to prevent insolvency. The company said without a plan encompassing necessary work practice changes to generate savings, it cannot fund a voluntary redundancy scheme. The company said without a plan generating savings to fund voluntary redundancies, the board has no option but to consider other measures to avoid insolvency. Bus ?ireann's Chief Commercial Officer has said the company is perfectly salvageable. Speaking on RT?'s Drivetime, Stephen Kent said measures can be taken to avoid immediate insolvency. He said based on delivering a survival plan that would ensure the long-term viability of the company, there would be 300 voluntary redundancies. Mr Kent said, however, that the redundancies would have to be targeted. He said management is prepared to go to any forum for talks with unions, but discussions would have to be time-limited. Asked about the potential spread of the industrial dispute to Iarnr��d ?ireann-or Dublin Bus, he said, ""There is absolutely no reason for that to happen. There is no dispute with each of those two companies."" He said there is an issue with the Minister for Transport getting involved in the dispute, saying it is a problem that can be solved between management and staff representatives. ""This is all a perfectly salvageable business. What we need to is engage with the employees and to get people to accept what we believe are very reasonable changes to some custom and practice.""- ""And we require some flexibility in the driver rosters, and some of the other aspects of the business, in order to make the business more flexible and more responsive. And it will generate the savings"", he said. Disruption may spread to other transport companies Earlier, Bus ?ireann unions stressed that they were not in dispute with other CIE group companies but said-they could not rule out-workers at Dublin Bus and Iarnr��d ?ireann joining the protest. This afternoon, SIPTU confirmed that its-members in Dublin Bus and Iarnr��d ?ireann are to ballot for industrial action in light of the ongoing Bus ?ireann dispute. SIPTU representatives from the three companies met at Liberty Hall in Dublin today to discuss the ongoing strike. The meeting heard of a planned protest in support of Bus ?ireann workers to be held at Leinster House on Wednesday to coincide with a meeting of the Oireachtas Transport Committee, which Minister for Transport Shane Ross is expected to attend. SIPTU sector organiser Willie Noone said: ""The representatives agreed that the protest should be supported as it is a means of highlighting the failure of the minister to take responsibility for the dysfunctional state of the public transport service. ""We are encouraging members of the public and of the union, including those who work in the public transport sector and are available, to attend the protest. ""The meeting also gave a mandate for a ballot for industrial action of union members in Dublin Bus and Irish Rail in sympathy with and in support of their colleagues in Bus ?ireann. ""They believe that they are next in the firing line if management in Bus ?ireann is allowed to force through cuts to wages and changes to conditions of employment of their staff."" Mr Ross's department issued a statement today noting his ""extreme concern"" over the ongoing situation. ""The minister remains extremely concerned about the impact of the Bus ?ireann strike on the travelling public,"" the statement said. ""The strike is also harmful to the company's already difficult financial position. Realistic negotiations are required, the type that will lead to an agreement that improves the company's operations and efficiency and restores the company to a sustainable future. ""The State's industrial relations-institutions are available to assist the two sides in reaching a fair and sustainable agreement."" The National Bus and Rail Union has again called on-Mr Ross to establish a forum for talks. General Secretary Dermot O'Leary accused management of continuing to wreck the national transport system by continuing to insist on a race to the bottom to establish a yellow pack bus company. He claimed a solution to the current Expressway crisis could be arrived at through talks centred on what he called the ""already mooted efficiency based agenda"". However, the company has previously accused unions of failing to engage meaningfully on issues like cuts to unnecessary overtime. As of now, there is no indication of any intervention by the Workplace Relations Commission or the Labour Court to bring both sides to the negotiating table. Train services returned to normal at the weekend and Iarnr��d ?ireann says all its services are operating on all routes today. ""We do not anticipate further disruption arising from the Bus ?ireann dispute at this time. Iarnr��d ?ireann is not a party to this dispute."" It also said higher demand is expected on its services and advised those customers with flexibility to travel outside peak times.", -3499,2017/3/27,http://www.rte.ie/news/munster/2017/0327/863005-dungarvan-aircraft-crash/,Pilot dies after light aircraft crash in Waterford,,"The pilot of a light aircraft which crashed in Co Waterford this afternoon has died. The man was the sole occupant of the aircraft, which had taken off from Waterford Airport shortly before 4pm. The plane crashed into trees in a field around 5km from Dungarvan.- Garda��-say the man was elderly and not from the local area. The scene, around 200 metres from the main-Dungarvan-Waterford road, remains preserved. Scene of light aircraft crash outside of Dungarvan pic.twitter.com/PbF0PvlETT ""?Damien Tiernan (@damienrte) March 27, 2017", -3500,2017/3/27,http://www.rte.ie/news/munster/2017/0327/862837-cork-woman-body/,Murder inquiry under way after woman's body found in Cork,,"A murder investigation is under way following the death of a 39-year-old woman in Cork.- The woman-was found in an apartment on Popham's Road in Farranree, on the northside of the city, after the alarm was raised at approximately 3.30am. She has been named locally as Nicola Collins, a mother of three, who was originally from Tralee, Co-Kerry, but was living in Togher in Cork city. A 42-year-old man-has been arrested following the discovery and is being held at Mayfield Garda Station in connection with the death. Man held after woman's body found in Cork. @OSullivanJennie tells @morningireland what is known so far pic.twitter.com/lKlS43sws1 ""?RT? News (@rtenews) March 27, 2017 A post-mortem examination was carried by the Assistant State Pathologist,-which confirmed that she died violently. Garda�� are appealing to witnesses or to anyone who can assist with the investigation to contact Mayfield Garda Station on 021-4558510, The Garda Confidential Line 1800-666-111 or any garda station.", -3501,2017/3/27,http://www.rte.ie/news/2017/0327/862880-may-sturgeon-brexit/,May will not visit Northern Ireland ahead of triggering Brexit,,"British Prime Minister Theresa May will not visit Northern Ireland before the triggering of Article 50 on Wednesday. Mrs May had been expected to visit all of the devolved assemblies before formally notifying the European Union later this week of the UK's plan to leave the bloc. Today she was in Scotland where she said that when the great union of nations that is England, Scotland, Wales and Northern Ireland worked together it is an unstoppable force. But Downing Street confirmed that Mrs May does not plan to visit Northern Ireland tomorrow - her last chance to do so before the triggering of Article 50. Earlier this month, Mrs May visited Wales as part of what was billed an ""ongoing engagement"" with the devolved assemblies prior to beginning the Brexit process. At the time Downing Street said Mrs May would be ""engaging and listening to people from right across the nation as she prepared to leave the EU as one United Kingdom"". Nicola Sturgeon and Theresa May are meeting just two days before triggering Article 50 Mrs May's trip to Scotland also comes a day before the Scottish Parliament is expected to pass a vote in favour of seeking a new Scottish independence referendum. Mrs May, who recently said ""now is not the time"" for a fresh independence vote, will vow in a speech never to allow the UK to become ""looser and weaker"". Scottish ministers say there have been no discussions with the UK Government over how Scotland's interests will be represented as the Brexit process gets under way and they have called for answers from Mrs May today. Mrs May will address staff at the East Kilbride base of the UK's Department for International Development ahead of a bilateral meeting with Scotland's First Minister. She is expected to say: ""That is why the plan for Britain I have set out, a plan to get the right deal for Britain abroad as well as a better deal for ordinary, working people at home, has at its heart one overarching goal: to build a more united nation. ""A more united nation means working actively to bring people and communities together by promoting policies which support integration and social cohesion. ""In Scotland, Wales and Northern Ireland that means fully respecting, and indeed strengthening, the devolution settlements. ""But never allowing our Union to become looser and weaker, or our people to drift apart. ""So in those policy areas where the UK Government holds responsibility, I am determined that we will put the interests of the Union, both the parts and the whole, at the heart of our decision-making."" The prime minister will also tell staff that their work helping crisis-hit areas around the world ""says that we are a big country that will never let down, or turn our back on, those in need"". The Scottish Government has criticised what it sees as a ""lack of engagement"" by UK ministers over Scotland's place in Europe. Ms Sturgeon previously set out ""compromise"" proposals that-would have kept Scotland in the single market and handed more powers to Holyrood. A spokeswoman for Michael Russell, Scotland's Brexit minister, said: ""We understand the UK Government wishes to discuss Article 50. ""Given we are just days from the formal process of Brexit being triggered there have, as yet, been no discussion with the Scottish Government over what will be in the letter triggering departure from the EU. ""There has been no discussion over how Scotland's interests will be represented, what role the Scottish Government will play in negotiations, nor which powers the Tories intend to take for Westminster and which powers will rightly be determined by Holyrood. ""Most worryingly, there has been no discussion over how the UK Government intends to manage the financial impacts of Brexit and the consequences for jobs and the economy in Scotland. ""There are clearly a lot of areas where we hope the Prime Minister intends to provide answers."" He added: ""Given the lack of engagement and the failure of the UK Government to seek an agreed approach or to support staying in the single market, which are at the heart of our compromise proposals, it is appearing that this is another area where a Tory prime minister intends to simply dictate the rules and expect people in Scotland to go along with it.""", -3502,2017/3/28,http://www.rte.ie/news/us/2017/0327/863051-jared-kushner/,Trump's son-in-law Kushner to face Russia investigation panel,,"US President Donald Trump's son-in-law and top aide Jared Kushner will appear before a Senate panel investigating Russian interference in the US election, the White House has said. Mr Kushner, 36, married to Mr Trump's daughter Ivanka, was the president's main intermediary with foreign governments during the campaign and now plays that role in the White House. He arranged meetings between Mr Trump and leaders from Japanese Prime Minister Shinzo Abe to Mexican President Enrique Pena Nieto. But it is his contacts with Russian officials that are now coming under the microscope, amid explosive allegations of collusion between the Trump campaign and the Kremlin. Allegations by US intelligence agencies that Russian actors were behind hacking of senior Democratic Party operatives and spreading disinformation linger over Mr Trump's young presidency. Democrats charge the Russians wanted to tilt the election toward the Republican, a claim dismissed by Mr Trump. Russia denies the allegations. But there has been no doubt that the Russian ambassador to the United States, Sergei Kislyak, developed contacts among the Trump team. Mr Trump's first national security adviser, Michael Flynn, was forced to resign on 13 February after revelations that he had discussed US sanctions on Russia with Kislyak and misled Vice President Mike Pence about the conversations. Jared Kushner is Donald Trumps' son-in-law Executives of Russian state development bank Vnesheconombank (VEB) had talks with Mr Kushner during a bank road show in 2016 when it was preparing a new strategy, the bank said. ""As part of the preparation of the new strategy, executives of Vnesheconombank met with representatives of leading financial institutes in Europe, Asia and America multiple times during 2016,"" VEB said in a statement. It said road show meetings took place ""with a number of representatives of the largest banks and business establishments of the United States, including Jared Kushner, the head of Kushner Companies."" There was no immediate comment from Mr Kushner. In an article posted on 18 December, Forbes estimated that Mr Kushner, his brother Josh and his parents, Charles and Seryl, have a fortune worth at least $1.8 billion, more than half of which Forbes estimates is held in real estate. Forbes did not provide a specific estimate for Jared Kushner's net worth on his own. VEB declined to say where the meetings took place or the dates. US officials said that after meeting with Russian Kislyak at Trump Tower last December, a meeting also attended by Mr Flynn, Mr Kushner met later in December with Sergei Gorkov, the CEO of Vnesheconombank. White House spokeswoman Hope Hicks confirmed the meetings. White House spokesman Sean Spicer has told reporters that Mr Kushner is willing to testify to the Senate Intelligence Committee chaired by US Senator Richard Burr, a North Carolina Republican. Throughout the campaign and the transition, Mr Kushner served as the official primary point of contact with foreign governments and officials ... and so, given this role, he volunteered to speak with Chairman Burr's committee, but has not received any confirmation regarding a time for a meeting,"" Mr Spicer told reporters. The Republican and Democratic leaders of the Senate panel also said Mr Kushner had agreed to be interviewed. Simply meeting with representatives of a US-sanctioned entity is not a violation of sanctions or against the law.", -3503,2017/3/27,http://www.rte.ie/news/dublin/2017/0327/863040-collision-terenure/,Cyclist dies in Dublin collision,,"A cyclist in her 30s has died following a collision with a lorry in Dublin.- The incident happened-on the Templeville Road/Whitehall Road before 2.30pm. The woman suffered serious injuries and was taken to Tallaght Hospital, where she was pronounced dead.- No other people were injured in the incident.- The Templeville Road was closed but has since reopened. Garda�� have appealed for witnesses and anyone with information is asked to contact Terenure Garda Station on 016666400, the Garda Confidential Line on 1800 666 111 or any garda station.-", -3504,2017/3/28,http://www.rte.ie/news/ireland/2017/0327/862805-coast-guard-blacksod/,Lifting bags attached to R116 wreckage to help divers in search,,"Naval Service divers have successfully attached a number of lifting bags to the wreckage of Coast Guard Rescue Helicopter 116. Search co-ordinators want to partially lift the wreckage to see if there is any trace of two Coast Guard crew members who have been missing since the helicopter crashed off the Mayo coast two weeks ago. The aircraft is located some 40 metres below sea level, a short distance from the face of Blackrock Island in Co Mayo. The main focus of the operation remains around Blackrock island, ten nautical miles off shore. Over several hours today, divers travelled to the area in pairs, to install a number of specially designed lifting bags. These will be inflated to tilt the wreckage from the sea bed, so an area that has not been surveyed can be inspected. A deterioration in sea conditions this evening led to the operation being postponed. Some more bags will be fitted tomorrow morning and the lifting effort is now scheduled to take place later in the afternoon. The Marine Institute's Remotely Operated Vehicle will work at the scene through the night to remove the roof assembly from the helicopter. This is to reduce the weight that will have to be lifted tomorrow. NS dives concluded at Blackrock for the night. Resuming in the am. Plans to carry out partial lift of R116 wreckage tomorrow afternoon. pic.twitter.com/S8vUIG5LWv ""?Pat McGrath (@patmcgrath) March 27, 2017 The operation will be the final element of the search around the helicopter wreckage. A sweep of the wider area around the aircraft is continuing, with garda divers surveying the scene for any debris or any indication as to the whereabouts of the missing crew members. As the search enters its third week, initial data from the helicopter's flight recorder is expected to be returned to the Air Accident Investigation Unit in the coming days. The black box was sent to England at the weekend where voice and data recordings are being downloaded. A coastal search is to be expanded tomorrow morning, as Coast Guard and Civil Defence teams comb miles of shoreline from north Mayo past Killybegs in Co Donegal. They will be supported by Rescue Helicopters from Shannon and Sligo, as efforts continue to locate Paul Ormsby and Ciaran Smith. The body of Captain Mark Duffy was recovered yesterday.", -3505,2017/3/28,http://www.rte.ie/news/2017/0327/862937-garda-breathalyser-discrepancies-/,Garda breathalyser figure discrepancies 'staggering',,"The Chief Executive of the Road Safety Authority has described the scale of the exaggeration of garda breathalyser test figures as ""quite staggering."" Moyagh Murdock said the statistics were a ""body blow"" to those who have been affected by road deaths and to the confidence in the public's perception of road safety enforcement by garda��. It was revealed last Thursday that from 2011 to 2016-the number of drink-driving tests garda�� claimed to have carried out was hugely exaggerated, by over 937,000. RSA chief Moyagh Murdock says recent penalty point revelations are 'quite staggering' https://t.co/RYP7c3VblA pic.twitter.com/JN8CzlOn8P ""?RT? News (@rtenews) March 27, 2017 It was also disclosed that-more than 14,500 people who were convicted-for road traffic offences are-to have their-convictions quashed-because they were prosecuted incorrectly without a fixed-charge notice first being issued. Speaking on RT?'s Morning Ireland, Ms Murdock said she has spoken to-Assistant Commissioner Michael Finn and hopes to meet him today. She added that she was ""waiting with interest"" to hear what is going to be done about this. Taoiseach Enda Kenny has restated that he retains confidence in Garda Commissioner N��ir��n O""ullivan.- The Chairperson of Irish Road Victims' Association has meanwhile said she is shocked at the revelations, adding that trust in the garda��, in enforcing road traffic law, has been ""shattered"". Donna Price, whose son Darren was killed on the roads more than 10 years ago, said deaths and injuries on the road are not incurable diseases and are totally preventable. Speaking on RT?'s News at One, she said enforcement was absolutely crucial. Resources were stretched, she said but that did not-excuse falsifying figures. ""If we need more resources then we have to put them in place because this is much too serious an issue. ""We're talking about real lives and real families here. If there is no enforcement then we'll continue to have the dangerous drivers. We'll continue to have people taking chances with their lives and other people's lives. They'll drive and drive, they'll text and drive because there's little likelihood of being caught.""", -3506,2017/3/27,http://www.rte.ie/news/special-reports/2017/0327/862810-eight-schools-suspend-religious-segregation-of-children/,Eight schools suspend religious segregation of children,,"Eight primary schools have suspended part of a controversial religious education programme that segregates children according to their religious background at a key time in the Catholic calendar. The schools, which are State-run Community National Schools, took the step this year after consultation with parents, writes Education Correspondent Emma O Kelly. A ninth CNS school suspended the programme entirely five years ago after objections from parents. The National Council for Curriculum and Assessment (NCCA) has said it will begin a review of the programme from September. The 'Goodness Me, Goodness You'-religious education programme was drawn up after the Catholic Church warned the Department of Education that the provision of faith formation for Catholic pupils was a ""minimum non-negotiable requirement"" for its support for the new Community National School, multi-denominational model. The State agency for developing curricula advised at the time against separating young children. The NCCA said doing so ran counter to how children settled at school. School principals, teachers,-and parents also objected to the proposals. But the programme went ahead, with children divided into four groups:-Catholic, Other Christian, Muslim, and Other/none in the month before Easter. This year eight Community National Schools in Dublin and in Cork have decided to abandon the practice. One school principal told RT? News they had spoken to all parents and there was ""no demand"" for segregation. However, Catholic pupils in the schools continue to be separated from classmates on a weekly basis in second and in sixth class to allow them to prepare for Communion and Confirmation during school time. Two Community National Schools, ?rd Ri in Navan, and Lucan CNS in Dublin continue to separate all children in the month running up to Easter. Neither school has responded to queries from RT? News about the programme. Another Community National School, Scoil Choilm, suspended the 'Goodness Me, Goodness You' syllabus entirely five years ago after parents objected to the segregation of children and to the content of the religious education programme. One former Scoil Choilm teacher, who wished to remain anonymous, told RT? News: ""I didn""t feel comfortable teaching it and I was glad when it was suspended. We were trying to teach them (non-Catholic children) what their religion is. Their parents found it insulting and I don't blame them."" Scoil Choilm in Dublin 15 is in the process of introducing a newly developed version of the programme for senior pupils, which does not contain the four-week separation component. Unlike the original programme, this follow-on curriculum is being designed by the NCCA. There are currently 11 Community National Schools providing education to children in Dublin and other parts of the country. The schools are run by local Education and Training Boards (formerly VECs) and unlike other multi-denominational schools, guarantee faith formation for Catholic children during the school day. Many more CNS schools are expected to open in coming years. Minister for Education Richard Bruton has signalled that the CNS model is the one he favours extending in order to address the dominance of the Catholic Church in the primary education system. The original 'Goodness Me, Goodness You'-programme was designed by private Catholic college the Marino Institute of Education. However, a leaflet distributed to prospective parents at recent enrollment meetings, and available online, implies otherwise. The leaflet states that the schools' religious education programme ""was developed by the National Council for Curriculum and Assessment which is the statutory agency with responsibility for developing curricula"". A Frequently Asked Questions section on the CNS website states that the programme was written by ""a team of writers under the NCCA"". The GMGY programme was in fact written by Dr Clare Maloney of the Marino Institute of Education. The Department of Education did initially approach the NCCA about designing the programme. However, after the NCCA advised against separating children along religious lines, the Department commissioned the college at Marino to develop the programme instead. At the time the head of County Dublin VEC - patron of the first Community National Schools - expressed ""dismay and disappointment"" at the Department's decision. Four years later the programme was transferred to the NCCA. When contacted by RT? News, the Education and Training Boards Ireland (ETBI) acknowledged that Dr Clare Moloney was the author of the programme. Michael Moriarty of the ETBI said he did not agree however that the literature was misleading.", -3507,2017/3/27,http://www.rte.ie/news/2017/0327/862967-gravy-injury-dunnes-stores/,"Woman who slipped in gravy awarded �15,234 damages",,"A 54-year-old catering assistant, who claimed she has ongoing back pain since she slipped and fell on a gravy spillage two years ago, has been awarded more than �15,000 damages in the Circuit Civil Court against Dunnes Stores. Vera Biskupova told the court that on 13 January 2015, she had been cleaning the deli counter at Dunnes Stores, Cornelscourt, Bray Road, Foxrock, Dublin, when she suddenly slipped and fell. Ms Biskupova, with an address at Strollers Place, Ballyedmonduff Road, Stepaside, Dublin, but who now lives in Killarney, Co Kerry, said she fell heavily on her back and banged her head off the floor. - She told her barrister, Paul Gallagher, that she managed to get up and noticed that her hair, shoulder and back had been wet. She said the large spillage smelled like gravy. She had not seen it on the floor before falling. - The court heard that she finished her shift that day but had not been able to get out of bed the next day. She had headaches, pain in her head, neck, shoulders and lower back. Ms Biskupova said she later attended her GP who prescribed her anti-inflammatory medication. She had been out of work for several weeks and had needed to attend physiotherapy sessions. Mr Gallager, who appeared with Mannion Solicitors, said Ms Biskupova had ongoing intermittent pain in her back. She sued ex-employer Dunnes Stores for negligence, breach of contract and breach of duty. Ms Biskupova claimed the gravy had leaked from a bin bag. She alleged the bin bags had been unsuitable or unfit for purpose and were likely to allow gravy to leak onto the floor. She also claimed that Dunnes Stores had failed to have any appropriate system of cleaning and inspection in place to ensure that employees walking in the premises were not put at risk of slipping. Dunnes had denied all her allegations in a full defence. They claimed that she had been trained ""extensively"" in relation to health and safety procedures and had not been vigilant that day. The company alleged that following her accident Mr Biskupova had not mentioned that she had slipped on gravy. They also claimed that she was guilty of contributory negligence. - Circuit Court President Mr Justice Raymond Groarke said he was satisfied the system of training had been one of a high standard but he believed that Ms Biskupova's account of what had happened was correct. - ""It is quite an interesting feature that the accident report documentation filled in after Ms Biskupova's incident has no question as to how or why it happened. That is rather curious,"" Judge Groarke said. ""I would expect this question to be in the documentation to make sure that steps are taken so that this type of accident does not occur again,"" he said. Judge Groarke said he could not be blind to the fact that a witness to the accident who was present in court today had not been called by Dunnes Stores to give evidence. He said the person who spilled the gravy must have been aware of it and decided not to follow the company's cleaning protocol. Awarding Ms Biskupova �15,234 damages, the judge said the place of work had been unsafe. He said she could not be expected to be constantly looking at the floor and he therefore could not find any contributory negligence against her.", -3508,2017/3/27,http://www.rte.ie/news/technology/2017/0327/863001-samsung-plans-to-sell-refurbished-note-7s/,Samsung plans to sell refurbished Note 7s,,"Tech giant Samsung has said it plans to sell refurbished versions of the Galaxy Note 7 smartphones that were pulled from markets due to fire-prone batteries. The Note 7s were permanently scrapped in October, roughly two months from the launch of the near-$900 devices, as more of the phones self-combusted despite a global recall initiated in September. A subsequent probe found manufacturing problems in batteries supplied by two different companies - Samsung SDI Co Ltd and Amperex Technology Ltd. Analysis from Samsung and independent researchers found no other problems in the Note 7 devices except the batteries, raising speculation that Samsung will recoup some of its losses by selling refurbished Note 7s. The company estimated a $5.5 billion profit hit over three quarters from the Note 7'stroubles. Samsung, which had sold 3.06 million Note 7s to consumers before taking the phones off the market, had not previously said what it plans to do with the recovered phones. A person familiar with the matter told Reuters in January that it was considering the possibility of selling refurbished versions of the device or reusing some parts from the recalled phones. ""Regarding the Galaxy Note 7 devices as refurbished phones or rental phones, applicability is dependent upon consultations with regulatory authorities and carriers as well as due consideration of local demand,"" Samsung said in a statement, adding the firm will pick the markets and release dates for refurbished Note 7s accordingly. The company also plans to recover and use or sell reusable components such as chips and camera modules and extract rare metals such as copper, gold, nickel and silver from Note 7devices it opts not to sell as refurbished products. The firm had been under pressure from environment rights group Greenpeace and others to come up with environmentally friendly ways to deal with the recovered Note 7s. Greenpeace said in a separate statement that it welcomed Samsung's decision and the firm should carry out its plans in a verifiable manner.", -3509,2017/3/27,http://www.rte.ie/news/2017/0327/862972-berlin-coin/,100kg gold coin worth nearly �1m stolen in Berlin,,"Thieves have stolen a 100kg gold coin with a face value of $1m from Berlin's Bode Museum. According to German media, the stolen coin is the ""Big Maple Leaf"", a commemorative piece issued by the Royal Canadian Mint in 2007. The coin, 53cm across and 3cm thick, features the portrait of Queen Elizabeth II. Bode Museum gave the face value of the coin at $1m (�120,000), though the market price of 100kg is around �1.7m. German police said on Twitter that the robbers likely used a ladder found at a nearby rail track to break into the museum at around 3.30am. Suburban rail traffic was interrupted as investigators combed the area for clues. The Bode Museum, located on the German capital's UNESCO-listed Museum Island, houses one of the world's biggest coin collections. The holding includes 102,000 coins from ancient Greece and about 50,000 Roman coins.", -3510,2017/3/27,http://www.rte.ie/news/leinster/2017/0327/862995-esb-fault/,Major power outage hits Longford and Roscommon area,,"Up to 3,000 homes and businesses are without power in the Longford and Roscommon area after a large electricity supply fault. Shops and businesses have closed early for the day in several towns across the region as a result. The fault, which occured at a ""medium voltage substation"", initially affected 7,000 customers. ESB Networks crews are working to repair the fault but the electricity provider says supply may not be returned until later this evening. We have a large fault in the #Longford #Roscommon areas initial ert is 19.45 see https://t.co/VMtxFrW7FY Apologies ""?ESB Networks (@ESBNetworks) March 27, 2017", -3511,2017/3/27,http://www.rte.ie/news/munster/2017/0327/862981-sport-academy/,Sod turned on �16.5m sporting academy in Kerry,,"The Taoiseach has turned the sod on a new-�16.5 million centre of excellence for education, training and research in Co Kerry The Kerry Sports Academy is based at the Institute of Technology, Tralee. The academy will also be the national sports centre for people with disabilities.- It is scheduled to open in Autumn 2018. Big day for Tralee & @ittralee as Taoiseach @EndaKennyTD turns the sod on the �16.5M #Kerry Sports Academy. @rtenews pic.twitter.com/tB9NIgjayH ""?Paschal Sheehy (@PaschalSheehy) March 27, 2017 The project represents the largest sports capital project ever undertaken in Kerry, and is being developed in partnership with the GAA in the county, as well as with Comhaltas Ceolt��ir�� ?ireann.", -3512,2017/3/27,http://www.rte.ie/news/2017/0327/862942-scientists-identify-biomarker-for-diagnosing-diabetes/,Irish scientists identify biomarker for diagnosing diabetes,,"Type 1 diabetes could be quicker and easier to diagnose in the future thanks to a discovery by Irish based scientists. The researchers have identified biological markers that seem to predict when Type 1 diabetes is developing. The substance, 12-HETE, was found in high levels in the blood of patients who had been newly diagnosed with the lifelong autoimmune disease. However, the biomarker was not identified in patients who had been diagnosed with Type 1 diabetes in the past. The research team think 12-HETE, combined with other measurements, could be used to accurately and rapidly diagnose the presence of the illness. They are currently examining samples taken from patients who later developed Type 1 diabetes, to see whether the biomarker was present. The research involved using samples provided by patients from Connolly Hospital Blanchardstown and the Children's Hospital Temple St. Type 1 diabetes is a life-long condition caused when the immune system destroy the insulin making cells of the pancreas. Up to 16,000 people here have the illness, including around 2,750 under the age of 16.- It can result in serious side-effects, and requires rigorous monitoring and management, making early diagnosis extremely important. The discovery was made by a consortium, known as 3U Diabetes, made up of scientists from Dublin City University, Maynooth University and the Royal College of Surgeons in Ireland.- Involving clinicians and scientists from the three institutions, the 3U Diabetes Consortium is-bringing together interlinked areas of research, including the identification and development of new molecules with therapeutic potential. Details of the findings were published in a study in the journal Diabetic Medicine. -", -3513,2017/3/27,http://www.rte.ie/news/education/2017/0327/862978-religion-school/,Bruton stresses parents' right to opt children out of religious provision in schools,,"The Minister for Education has reiterated that students cannot be obliged to participate in religious ceremonies or instruction in schools if their parents do not wish them to. Richard Bruton was commenting after a policy document belonging to one school was highlighted on social media over the past week. The document, which detailed the school's policy on the wearing of the hijab, states that all students are ""expected to participate fully in liturgies"". Liturgies are Christian religious ceremonies such as mass and prayers. Policy on the Hijab in SL Catholic school -(Ceist). They permit the Hijab but student -required to fully participate in Christian liturgies pic.twitter.com/7xuTbq60OE ""?Atheist Ireland (@atheistie) March 22, 2017 The minister said the Constitution was very clear, that any parent was entitled to have their child not participate in any religious provision in school. He said schools had to respect this, and make alternative provision. The school in question, Col��iste Br��de in Clondalkin, has told RT? News that it will remove the phrase from its policy. The school said no child was ever obliged to attend any religious ceremony, and the wording in question did not reflect this reality. The school principal said the school was always happy to accommodate parents' wishes. She said its policy on the wearing of the hijab had been drawn up in consultation with both Muslim students and parents. The policy supports the wearing of the hijab in school and sets out policies that incorporate the scarf into the school uniform. The school said it was proud to be an inclusive school, very proud of all of its students, and especially proud of two recent head girls who are both Muslims.- ""We're all learning"", the principal added.", -3514,2017/3/27,http://www.rte.ie/news/2017/0327/862987-student-accommodation/,Ireland ranks badly in Erasmus study on rentals for international students,,"A European Union wide survey of the experiences of international students in finding accommodation has found that Ireland has the worst record when it comes to high rents and students experiencing fraud in their search for somewhere to live. The survey was carried out by the Erasmus Student Network, which surveyed 8,000 students across 600 European colleges. Erasmus is an EU-funded programme which enables students to spend time studying in foreign universities and institutes. Out of 30 countries, Ireland came highest when it came to rents being higher than student expectations. 77% of foreign students in Ireland said they found accommodation costs higher than expected, compared to an average of 43% across all countries. 29% of foreign students in Ireland said they had experienced fraud or attempted fraud when seeking accommodation. This was again higher than fraud levels reported by students in any other country involved in the survey. The survey was funded by the European Commission. The Irish Council for International Students has expressed concern. Its Director, Sheila Power, has said the results are ""hardly compatible with our international education strategy to increase international student numbers by 27% over the next couple of years"". Ms Power said a collaborative effort was needed involving Government, city planners, and higher education institutions to address the issues which the research identified.", -3515,2017/3/27,http://www.rte.ie/news/europe/2017/0327/862900-carlos-the-jackal/,France seeks new life sentence for Carlos the Jackal,,"Carlos the Jackal, already serving two life sentences for murder, should be given a third life term for a deadly 1974 bombing in Paris, a French prosecutor has said. The Venezuelan self-styled revolutionary, whose real name is Ilich Ramirez Sanchez, denies the grenade attack on the Drugstore Publicis store that claimed two lives and injured 34 on September 15, 1974. Prosecutor Remi Crosson du Cormier said that ""all evidence gathered in this investigation points to him."" During the two-week trial, in which a verdict is expected tomorrow, 67-year-old Carlos argued that he should not be required to testify against himself. He also said that as an ""officer of the Palestinian resistance"" - on whose behalf he staged a spectacular hostage-taking at OPEC in Vienna in 1975 - he faced death if he divulged operational information. Pressed by presiding judge Francois Sottet, the defendant said at one point: ""Maybe it's me, but there's no proof of it."" The world's most wanted fugitive in the 1970s and early 1980s has been in prison in France since his arrest in the Sudanese capital Khartoum in 1994 by French elite police. He is already serving a life sentence for the murders of two policemen in Paris in 1975 as well as that of a former comrade.", -3516,2017/3/27,http://abcnews.go.com/Politics/trump-tweets-russia-probe-hoax-rails-clintons/story?id=46411142,"Trump tweets Russia probe 'hoax,' rails against Clintons",,"Amid ongoing questions about the involvement of his associates with Russian officials during the campaign and about the impartiality of the Republican congressman leading one of the probes into the matter, Donald Trump went on a twitter rant Monday night, calling out an old foe -- the Clintons -- and blaming conservative Republicans for his health care defeat. In a series of tweets, Trump questioned the actions of the House Intelligence Committee, asking why it isn't conducting a probe into the former Democratic presidential nominee and her husband, former President Bill Clinton. ""Why isn't the House Intelligence Committee looking into the Bill & Hillary deal that allowed big Uranium to go to Russia, Russian speech money to Bill, the Hillary Russian ""reset,"" praise of Russia by Hillary, or Podesta Russian Company. Trump Russia story is a hoax. #MAGA!"" wrote Trump in two consecutive posts. Why isn't the House Intelligence Committee looking into the Bill & Hillary deal that allowed big Uranium to go to Russia, Russian speech.... ...money to Bill, the Hillary Russian ""reset,"" praise of Russia by Hillary, or Podesta Russian Company. Trump Russia story is a hoax. #MAGA! The tweets were not the first instance in which Trump sought to blame Hillary Clinton for a deal between Russia's nuclear power agency and a Canadian company. The non-partisan fact-checking organization Politifact has rated the claim ""Mostly False,"" citing Hillary Clinton's ""lack of power to approve or reject the deal."" Investigations into Russian meddling in the 2016 U.S. election are being conducted in both the House and Senate Intelligence Committees. The FBI is also investigating any potential ties between Russian officials and Trump associates, a story line Trump has called ""fake news."" House Intelligence Committee Chair Devin Nunes, R-Calif., who worked on Trump's transition team, is under fire for briefing the president on findings that left Trump feeling ""somewhat"" vindicated before mentioning that information to the committee. There were also calls for Nunes to step aside from the Russia investigation after it emerged that he met a source on the White House grounds a day before briefing Trump. In a later tweet, Trump criticized the conservative House Freedom Caucus for its efforts preventing the passage of the American Health Care Act last week, his first major legislative test. ""The Republican House Freedom Caucus was able to snatch defeat from the jaws of victory. After so many bad years they were ready for a win!"" wrote Trump, running counter to his declaration Friday that he would not ""speak badly about anybody within the party"" and his claim that he preferred for the Affordable Care Act to remain law so that it could ""implode"" and ""explode."" The Republican House Freedom Caucus was able to snatch defeat from the jaws of victory. After so many bad years they were ready for a win! He referred to that position again Monday in an additional tweet, saying, ""The Democrats will make a deal with me on healthcare as soon as ObamaCare folds - not long. Do not worry, we are in very good shape!"" The Democrats will make a deal with me on healthcare as soon as ObamaCare folds - not long. Do not worry, we are in very good shape! ", -3517,2017/3/27,http://abcnews.go.com/Politics/democrats-call-recusal-intelligence-chair-sneaking-white-house/story?id=46409525,"House intel chair won't step aside in Russia investigation, despite growing calls",,"The chairman of the House Intelligence Committee, Devin Nunes, R-Calif., will not step aside from his committee's Russia investigation, according to a spokesman, despite a growing chorus of lawmakers calling on him to do so. The calls for recusal come after it surfaced that Nunes, who served on the Trump transition team executive committee, visited the White House grounds last week to meet a source the day before publicly sharing details about surveillance that ""inadvertently collected"" information on associates of President Donald Trump. Leading the calls for Nunes to step aside in the probe was his Democratic counterpart on the Intelligence Committee, Rep. Adam Schiff, D-Calif., House Minority Leader Nancy Pelosi and Sen. Chuck Schumer, D-N.Y. ""I believe that the chairman should recuse himself from any further involvement in the Russia investigation, as well as any involvement in oversight of matters pertaining to any incidental collection of the Trump transition, as he was also a key member of the transition team,"" said Schiff in a statement Monday. ""This is not a recommendation I make lightly, as the chairman and I have worked together well for several years; and I take this step with the knowledge of the solemn responsibility we have on the Intelligence Committee to provide oversight on all intelligence matters, not just to conduct the investigation."" Pelosi said Nunes ""has a serious responsibility to the Congress and to the Country. Chairman Nunes""?discredited behavior has tarnished that office."" Last week, she called Nunes a ""stooge of the president"" and said he was ""deeply compromised and he cannot possibly lead an honest investigation."" And earlier in the day, Schumer became the highest-profile Democrat to call for Nunes' resignation while speaking on the Senate floor. ""If Speaker [Paul] Ryan wants the House to have a credible investigation, he needs to replace Chairman Nunes,"" said Schumer. Nunes raised eyebrows when he held a press conference and then briefed the president, without making members of his committee aware, that members of the Trump transition team, and possibly the president himself, had been ""incidentally"" after the election. Though he maintained that the intelligence gathering was conducted legally, it prompted Trump, who claimed President Barack Obama '""had my 'wires tapped'"" Trump Tower, to say he felt ""somewhat"" vindicated. In an interview on CNN's ""The Situation Room,"" Nunes argued that the visit to the White House grounds was commonplace and part of an investigation into the unmasking of Americans in intelligence reports that began before Trump's wiretapping claims. ""I had been working this for a long time with many different sources and needed a place that I could actually finally go because I knew what I was looking for and I could actually get access to what I needed to see,"" said Nunes, adding later, ""It wasn't at night ... nobody was sneaking around, all it was was just a place where I had to go to be able to review this information."" Asked whether he could've used a Sensitive Compartmented Information Facility (SCIF) at a different location to view the materials and avoid the appearance of impropriety that accompanied his White House trip, Nunes said he could not because Congress had ""not been given this information."" SCIFs are specifically used to view or discuss classified information in surroundings that are otherwise unsecured. On the Republican side, Sens. Lindsey Graham, R-S.C., and John McCain, R-Ariz., had questions of their own. ""I just think he needs to explain what he did, who he talked to,"" said Graham. ""Schiff to me is talking more like a prosecutor and Nunes has been acting like a defense attorney. The bottom line is, we'r hoping they can put it together in the House. We hope they can get back on track."" McCain said he ""honestly [doesn't] know what to make of"" the situation with Nunes, but said he wants to know, ""What brought him to the White House? Who did he see? What was the information? Just a few complicated questions like that."" After first noting the incidental collection of information about Trump associates last week to the press, and then briefing the president on the matter, Nunes apologized for not consulting the Intelligence Committee first. Nunes said he made the decision to go public first in the midst of a busy day and that it was a ""judgment call."" On Friday, a spokesman for Nunes walked back some of his comments, telling ABC News that the congressman doesn't know ""for sure"" if the Trump associates cited were directly surveilled. ABC News' Ali Rogin and Benjamin Siegel contributed to this report.", -3518,2017/3/27,http://abcnews.go.com/International/students-instructor-killed-japan-avalanche-mountaineering/story?id=46412827,"7 students, instructor killed in Japan avalanche while mountaineering",,"Seven high school students and a teacher were killed in an avalanche on Monday while mountain climbing at a ski resort in Japan, according to ABC News partner NHK. About 62 students and teachers from seven high schools were in Tochigi Prefecture, about 100 miles north of Tokyo, Japan, when the avalanche hit, the report said. The eight were found unresponsive after a getting caught in the snow slide at around 8:30 a.m. local time while taking part in 3 days of mountain climbing safety training, the report said. Tochigi authorities had initially said they believed all eight victims were students. ""A strong wind blew. As soon as I felt it, I also saw something white roaring toward us,"" a male student who was caught in the slide told NHK in a phone interview. ""Right then, our teacher shouted 'crouch down!' We did, but we were engulfed,"" said the student, who was not identified by name. Authorities said 40 others were injured in the accident, with two students sustaining serious injuries, according to NHK. The weather bureau had previously issued snow and avalanche warnings for the area.", -3519,2017/3/27,http://abcnews.go.com/Technology/wireStory/trump-takes-aim-obamas-efforts-curb-global-warming-46411682,Trump takes aim at Obama's efforts to curb global warming,,"Moving forward with a campaign pledge to unravel former President Barack Obama's sweeping plan to curb global warming, President Donald Trump will sign an executive order Tuesday that will suspend, rescind or flag for review more than a half-dozen measures in an effort to boost domestic energy production in the form of fossil fuels. As part of the roll-back, Trump will initiate a review of the Clean Power Plan, which restricts greenhouse gas emissions at coal-fired power plants. The regulation, which was the former president's signature effort to curb carbon emissions, has been the subject of long-running legal challenges by Republican-led states and those who profit from burning oil, coal and gas. Trump, who has called global warming a ""hoax"" invented by the Chinese, has repeatedly criticized the power-plant rule and others as an attack on American workers and the struggling U.S. coal industry. The contents of the order were outlined to reporters in a sometimes tense briefing with a senior White House official, whom aides insisted speak without attribution, despite President Trump's criticism of the use of unnamed sources. The official at one point appeared to break with mainstream climate science, denying familiarity with widely publicized concerns about the potential adverse economic impacts of climate change, such as rising sea levels and more extreme weather. In addition to pulling back from the Clean Power Plan, the administration will also lift a 14-month-old moratorium on new coal leases on federal lands. The Obama administration had imposed a three-year moratorium on new federal coal leases in January 2016, arguing that the $1 billion-a-year program must be modernized to ensure a fair financial return to taxpayers and address climate change. Trump accused his predecessor of waging a ""war on coal"" and boasted in a speech to Congress that he has made ""a historic effort to massively reduce job-crushing regulations,"" including some that threaten ""the future and livelihoods of our great coal miners."" The order will also chip away at other regulations, including scrapping language on the ""social cost"" of greenhouse gases. It will initiate a review of efforts to reduce the emission of methane in oil and natural gas production as well as a Bureau of Land Management hydraulic fracturing rule, to determine whether those reflect the president's policy priorities. It will also rescind Obama-era executive orders and memoranda, including one that addressed climate change and national security and one that sought to prepare the country for the impacts of climate change. The administration is still in discussion about whether it intends to withdraw from the Paris Agreement on climate change. But the moves to be announced Tuesday will undoubtedly make it more difficult for the U.S. to achieve its goals. Trump's Environmental Protection Agency chief, Scott Pruitt, alarmed environmental groups and scientists earlier this month when he said he does not believe carbon dioxide is a primary contributor to global warming. The statement is at odds with mainstream scientific consensus and Pruitt's own agency. The overwhelming majority of peer-reviewed studies and climate scientists agree the planet is warming, mostly due to man-made sources, including carbon dioxide, methane, halocarbons and nitrogen oxide. The official who briefed reporters said the president does believe in man-made climate change. The power-plant rule Trump is set to address in his order has been on hold since last year as a federal appeals court considers a challenge by coal-friendly states and more than 100 companies who call the plan an unconstitutional power grab. Opponents say the plan will kill coal-mining jobs and drive up electricity costs. The Obama administration, some Democratic-led states and environmental groups countered that it will spur thousands of clean-energy jobs and help the U.S. meet ambitious goals to reduce carbon pollution set by the international agreement signed in Paris. Trump's order on coal-fired power plants follows an executive order he signed last month mandating a review of an Obama-era rule aimed at protecting small streams and wetlands from development and pollution. The order instructs the EPA and Army Corps of Engineers to review a rule that redefined ""waters of the United States"" protected under the Clean Water Act to include smaller creeks and wetlands. While Republicans have blamed Obama-era environmental regulations for the loss of coal jobs, federal data shows that U.S. mines have been shedding jobs for decades under presidents from both parties as a result of increasing automation and competition from cheaper natural gas. Another factor is the plummeting cost of solar panels and wind turbines, which now can produce emissions-free electricity cheaper than burning coal. According to an Energy Department analysis released in January, coal mining now accounts for fewer than 70,000 U.S. jobs. By contrast, renewable energy ""?including wind, solar and biofuels ""?now accounts for more than 650,000 U.S. jobs. The Trump administration's plans drew praise from business groups and condemnation from environmental groups. U.S. Chamber of Commerce President Thomas J. Donohue praised the president for taking ""bold steps to make regulatory relief and energy security a top priority."" ""These executive actions are a welcome departure from the previous administration's strategy of making energy more expensive through costly, job-killing regulations that choked our economy,"" he said. Former EPA Administrator Gina McCarthy accused the Trump administration of wanting ""us to travel back to when smokestacks damaged our health and polluted our air, instead of taking every opportunity to support clean jobs of the future."" ""This is not just dangerous; it's embarrassing to us and our businesses on a global scale to be dismissing opportunities for new technologies, economic growth, and US leadership,"" she said in a statement. ""?Associated Press writer Michael Biesecker contributed to this report. Follow Daly and Colvin on Twitter at https://twitter.com/MatthewDalyWDC and https://twitter.com/colvinj", -3520,2017/3/27,http://abcnews.go.com/Politics/wireStory/lawsuit-seeks-data-searches-electronics-us-border-46405150,Lawsuit seeks data over searches of electronics at US border,,"A group of First Amendment attorneys sued the Trump administration on Monday over access to data showing how often U.S. citizens and visitors had their electronic devices searched and the contents catalogued at American border crossings. The complaint by Columbia University's Knight First Amendment Institute said the Department of Homeland Security hasn't moved quickly on its request, which sought information about the number of people whose devices were searched at the border, complaints about the practice and government training materials. The lawsuit marks an early challenge under the U.S. Freedom of Information Act for President Donald Trump, who has pushed for an aggressive border-security policy and tried twice to enact temporary travel restrictions from several majority-Muslim countries. Federal courts have so far stymied those efforts. The Knight Institute had asked for a detailed number of travelers whose electronic devices, such as cell phones and computers, were searched and how often their data were shared. It also sought a breakdown of those device seizures by race, ethnicity, nationality and citizenship status, as well as details from a government database that tracks device searches. The group said its March 15 records request concerned ""the indiscriminate search of Americans' electronic devices at the border"" that raised key legal questions about free speech and privacy protections. It sued in federal court in Washington after arguing the government didn't respond to a request to fast-track its FOIA inquiry, a practice allowed in some cases. A spokeswoman for U.S. Immigration and Customs Enforcement, Sarah Rodriguez, said the agency doesn't comment on pending litigation. Representatives from the Department of Homeland Security did not immediately return messages seeking comment Monday. Border agents have wide latitude in searching a traveler's electronic items at U.S. ports of entry, even if they are American citizens. Homeland Security officials have been known to ask that travelers unlock their phones or laptops; some agents have made digital copies of the devices' contents. Privacy advocates have criticized those as warrantless seizures, saying laptops and phones often contain troves of personal or sensitive information. The lawsuit cited a 2015 report in which border officers detained and interrogated a French-American photojournalist while searching his cell phone, including his text messages with a Syrian refugee source. ""People today store their most intimate information on their electronic devices, reflecting their thoughts, explorations, activities and associations,"" the lawyers wrote. ""Subjecting that information to unfettered government scrutiny invades the core of individual privacy and threatens free inquiry and expression."" A criminal case before the 4th U.S. Circuit Court of Appeals in Richmond may determine the legality of certain electronic searches at the border. Sen. Ron Wyden of Oregon, a leading Democrat in Congress on digital-privacy issues, sent a letter last month to Homeland Security Secretary John Kelly asking how often border agents demanded access to locked electronic devices, as well as under what circumstances U.S. travelers had to disclose social media and email passwords. His office said it has yet to receive a response. The Knight lawsuit was filed in U.S. District Court for the District of Columbia, where judges have grappled with governmental delays in handing over records under FOIA. One case included a 2015 legal challenge by The Associated Press, under the Obama administration, over emails and other documents relating to former Secretary of State Hillary Clinton. Under FOIA, citizens and foreigners can compel executive branch agencies to turn over copies of federal records for little or no cost. Anyone who seeks information through the law is generally supposed to get it unless disclosure would hurt national security, violate personal privacy or expose business secrets or confidential decision-making in certain areas. During President Barack Obama's final year, the U.S. government set records for outright denial of access to files, refusing to quickly consider requests described as especially newsworthy, and forcing people to pay for records who had asked the government to waive search and copy fees. ""?Follow Jack Gillum on Twitter at https://twitter.com/jackgillum", -3521,2017/3/27,http://abcnews.go.com/Politics/wireStory/ap-explains-senates-nuclear-option-46404572,AP EXPLAINS: What is the Senate's 'nuclear option'?,,"To blow up the rules or not? Senate Republicans and Democrats appear to be on collision course over President Donald Trump's nominee to the Supreme Court and whether to changes Senate rules to get him confirmed. Minority Leader Chuck Schumer, D-N.Y., has announced that he will vote no on the nomination of Judge Neil Gorsuch and lead a filibuster of the selection. More than a dozen Democrats also have announced their opposition and will try to thwart GOP efforts to press ahead on the choice. Such a step would require 60 votes in the 100-seat Senate, but Republicans only hold a 52-48 majority. The pressure is on Majority Leader Mitch McConnell, R-Ky., to change the parliamentary rules for Supreme Court nominees, lowering the threshold to a simple majority. Or, as Trump once put it, ""go nuclear."" ""?WHAT IS THE NUCLEAR OPTION? Under that option, nominations could be approved with a simple majority in the 100-member Senate. Now, it takes 60 votes to clear parliamentary hurdles and set up an up-or-down vote on the nominee. ""?IT'S HAPPENED BEFORE This procedural maneuver has recent precedent. In 2013, Democrats were in the majority under the leadership of Sen. Harry Reid of Nevada and upset about the blockage of President Barack Obama's nominees to a powerful appellate court. The Democrats pushed through a rules change lowering the vote threshold on all nominees except for the Supreme Court from 60 to a simple majority. The Supreme Court was exempted at the time as part of a deal bringing along Democrats reluctant to change the rules. At the time, McConnell warned Democrats the strategy would backfire: ""I say to my friends on the other side of the aisle, you will regret this, and you may regret it a lot sooner than you think."" Before 1975, it was even tougher for presidents to get their nominations through because two-thirds of the senators present and voting had to agree to move forward. ""?WHY IT WOULD BE EXPLOSIVE Such a rules change on Supreme Court nominees would be a momentous change for the Senate, which traditionally operates via bipartisanship and consent from all senators. Some believe it could begin to unravel Senate traditions at a hyper-partisan moment in politics and perhaps end up in the complete elimination of the filibuster even for legislation, which would mean an entirely different Senate from the one that's existed for decades. Senate experts note that the filibuster is not enshrined in the Constitution and filibustering nominees is a relatively recent phenomenon. Cloture ""?the procedural motion to end a filibuster ""?was attempted for the first time on a nominee in 1968 after President Lyndon Johnson tapped Abe Fortas as chief justice of the U.S., according to the Congressional Research Service. The cloture attempt failed and the nomination was withdrawn. McConnell is an institutionalist who has made clear he does not favor invoking the nuclear option, but he has not ruled it out for Gorsuch.", -3522,2017/3/28,http://abcnews.go.com/Politics/president-trump-order-review-clean-power-plan/story?id=46410430,President Trump to order review of Clean Power Plan,,"President Trump is set to make a trip to the Environmental Protection Agency Tuesday to sign an executive order that will ""initiate a review"" of the Obama administration's Clean Power Plan and unravel a handful of other energy orders and memorandums instituted by his predecessor. The Clean Power Plan caps the amount of greenhouse gases that can be emitted from power plants. The White House argues that the regulation, and others sanctioned by former President Barack Obama, are burdensome to the American economy. ""The president's been very clear, he's not going to pursue climate or environmental policies that put the American economy at risk,"" said a senior Trump administration official Monday evening. Asked whether climate change poses its own long-term threat to the economy, the official said he was not familiar with research drawing such a conclusion. A widely-cited 2006 study on the economics of climate change by Nicholas Brown, the former Chief Economist at the World Bank, surmises that inaction on the issue and its effect on ""access to water, food production, health, and the environment"" could result in the ""equivalent to losing at least 5 percent of global GDP each year, now and forever."" Brown notes that ""estimates of damage could rise to 20 percent of GDP or more."" The White House official made the case that the previous administration ""devalued American workers"" with its energy policies and that the Trump administration seeks to put the interests of American worker front and center. ""[The president] believes that we can serve the twin goals of protecting the environment -- providing clean air, clean water, getting EPA back to its core mission, while at the same time""?[protecting] energy production in the U.S.,"" the official said. Upon the Clean Power Plan's signing in 2015, President Obama called it ""the biggest, most important step we have ever taken to combat climate change,"" but the law isn't currently being enforced. In February 2016, the Supreme Court stayed implementation of the law pending judicial review. Attorneys general from 28 states -- led by EPA Administrator Scott Pruitt, then Oklahoma's attorney general -- joined together to claim that the plan presents too broad an interpretation of the 1963 Clean Air Act, originally designed to restrain air pollution across the country. One group in particular that stands to benefit from the relaxing of power plant emissions limits: coal miners. ""[President Trump] made a pledge to the coal industry and he's going to do whatever he can to help those workers,""?said the White House official. The order will specifically rescind an Obama-era coal moratorium and will order a review of regulations affecting methane. On Saturday at a rally in Charleston, West Virginia, Vice President Mike Pence promised to bring back jobs to the region, saying, ""We're going to get Washington out of the way of energy producers and coal miners, because energy means growth for America, and President Trump digs coal."" But some in the coal industry are uncertain that scrapping the Clean Power Plan will have any positive effect on coal industry jobs, which have steadily declined over the last three decades -- having halved from over 186,000 to over 98,000 from 1985 to 2015, according to the U.S. Department of Labor. ""I think to err on the side of caution is always very worthy and for [President Trump] not to over promise,"" Bill Raney, president of West Virginia Friends of Coal told ABC News. Raney was encouraged about Trump's embrace of the coal industry but cautioned, ""No one has a feel for what the numbers are going to be."" Tuesday's executive order will not address the Paris Agreement, a 2015 United Nations plan to reduce greenhouse gas emissions set to go into effect in 2020, of which the U.S. is a signatory. The official who commented upon the order said the administration's stance on the Paris Agreement is still under discussion. Exactly how the Clean Power Plan will affect the Paris Climate Agreement is ""unknowable,"" Richard Lazarus, an environmental law professor at Harvard University told ABC News. ""As a formal matter, we cannot really withdraw from Paris for about two years,"" said Lazarus. Rolling back the Clean Power Plan ""affects our standing in the world as a leader in climate change issues and we'll have to see what the other countries do,"" he said, adding that China might welcome the United States""?withdrawal as it would provide the country with an opportunity to take leadership on a global issue and take the charge on clean technology innovations.", -3523,2017/3/28,http://abcnews.go.com/Politics/freedom-caucus-group-brought-gop-health-care-plan/story?id=46398934,The Freedom Caucus: A look at the group that brought down GOP health care plan,,"The House Freedom Caucus raised its profile dramatically last week during the debate to repeal and replace Obamacare, becoming not only antagonists to President Trump but also unlikely saviors ""?even if unintended -- to Democrats working to preserve Obamacare. The intrigue surrounding this powerful band of conservatives continues to grow. By taking a hard, unified stance against the American Health Care Act, a position that ultimately helped sink the GOP's health care repeal and replace plan, members of the House Freedom Caucus demonstrated the unity to steer the House GOP leadership off its course while scoring their its legislative victory. Democrats are smiling in D.C. that the Freedom Caucus, with the help of Club For Growth and Heritage, have saved Planned Parenthood & Ocare! The caucus was officially founded by conservatives in 2015 at the House Republican retreat in Hershey, Pennsylvania, and is chaired by Rep. Mark Meadows, a third-term Republican from North Carolina. After former Rep. Mick Mulvaney lost to Rep. Bill Flores, R-Texas, in a race for chairman of the Republican Study Committee, and Rep. Raul Labrador's bid for majority leader fell short, some conservatives felt unrepresented and frustrated with their lack of sway on Capitol Hill, sources say, leading to a discussion about maximizing their influence as a block of conservative voters. Before Trump charged that the caucus sided with Democrats to save the Affordable Care Act, its most notable achievement was not legislative, but gained by its role ousting John Boehner from his speakership in September 2015. So who are they? The caucus does not publicize its full, invite-only membership, although up to 40 conservatives pay dues, according to congressional sources. Most of its known members are tea party-types, elected after Barack Obama took office in 2009, although the caucus is spread across the ideological spectrum. Lawmakers pay $5,000 to become a member and $10,000 to be on the HFC board of directors. Beyond Meadows and Rep. Jim Jordan, R-Ohio, Reps. Justin Amash, R-Mich., Raul Labrador, R-Idaho, and Ron DeSantis, R-Fla., were all founding members and still serve in the House of Representatives. Jordan was the caucus""?first chairman. Mulvaney, another original founder, now serves as director of the Office of Management and Budget. The caucus employs only four congressional staffers and is also mirrored on the political side by Jordan's House Freedom Fund PAC, which fundraises for conservative candidates. While Sens. Mike Lee, R-Utah, and Ted Cruz, R-Texas, often meet with and wield significant influence over the caucus, the membership is not bicameral and there is no Senate Freedom Caucus. House conservatives say the caucus represents ordinary people who believe Washington has forgotten about them. By banding together to influence legislation as a group, the lawmakers feel better empowered to deliver on conservative campaign promises that sometimes fall out of the legislative agenda of the House elected leadership. Sources insist members must be willing to vote yes and also willing to vote no, unafraid to buck leadership. They want a bottom-up structure where junior members have the ability to offer amendments and legislate through regular order.", -3524,2017/3/28,http://abcnews.go.com/Politics/inside-georgias-special-election-fill-tom-prices-house/story?id=46402759,Inside Georgia's special election to fill Tom Price's House seat,,"The polls open today for early voting in the special election for Georgia's 6th congressional district. Election Day is April 18 and it's a close race. The 6th congressional district includes parts of Cobb, DeKalb and Fulton counties north of the city of Atlanta. The seat was formerly held by Tom Price, who is now the secretary of Health and Human Services. Price was elected to a sixth term in the 2016 election. But then President Donald Trump tapped Price to lead the Department of Health and Human Services. Price was confirmed by the Senate on Feb. 10, leaving a vacancy in the House. It's a rather crowded field -- 18 candidates are running to fill the vacant seat left by Price. Out of the 11 Republicans, former state Sen. Dan Moody, who has the support of aides tied to Georgia's Perdue family, and former Georgia Secretary of State Karen Handel have emerged as front-runners. Handel had launched unsuccessful bids for Georgia governor and for the Senate. Jon Ossoff has emerged from the field of five Democratic candidates, despite not being a district resident. The Congressional Leadership Fund, a House Republican super PAC, made an attack ad against the 30-year-old Democratic candidate, using old college videos of Ossoff in college dressed up as Han Solo and singing parody songs, in an attempt to portray him as inexperienced. Two independent candidates, Andre Pollard and Alexander Hernandez, are also on the ballot. Democrats, who see this race as a referendum on Trump's presidency, are making an effort to flip the seat. Ossoff has the backing of prominent Georgia House members, Reps. John Lewis and Hank Johnson, as well as Democrats' congressional strong arm, the Democratic Congressional Campaign Committee. ""We should unite behind him and send a clear message that Donald Trump doesn""t represent our values,"" Lewis said, according to the Atlanta Journal-Constitution. As of now, Republicans hold 237 seats in the House of Representatives. Obviously, one seat is not enough for Democrats to tip the majority. For Republicans, however, it could prove to be a small help when it comes down to the slim number needed to pass legislation in the House. If necessary, a run-off election between the two top candidates will be held on June 20.", -3525,2017/3/28,http://www.cnn.com/2017/03/27/politics/trump-climate-change-executive-order/index.html,"In executive order, Trump to dramatically change US approach to climate change","Washington (CNN)President Donald Trump will sign a sweeping executive order Tuesday at the Environmental Protection Agency, which looks to curb the federal government's enforcement of climate regulations by putting American jobs above addressing climate change.","The order represents a clear difference between how Trump and former President Barack Obama view the role the United States plays in combating climate change, and dramatically alters the government's approach to rising sea levels and temperatures -- two impacts of climate change. A White House official briefed on the plan said Monday the administration believes the government can both ""serve the environment and increase energy independence at the same time"" by urging the EPA for focus on what the administration believes is its core mission: Clean air and clean water. More important than regulating climate change, the official said, is protecting American jobs. ""It is an issue that deserves attention,"" the official said of climate change. ""But I think the President has been very clear that he is not going to pursue climate change policies that put the US economy at risk. It is very simple."" Tuesday's order will initiate a review of the Clean Power Plant initiative, rescind the moratorium on coal mining on US federal lands and urge federal agencies to ""identify all regulations, all rules, all policies ... that serve as obstacles and impediments to American energy independence,"" the official said. Specifically, the order will rescind at least six Obama-era executive orders aimed at curbing climate change and regulating carbon emissions, including Obama's November 2013 executive order instructing the federal government to prepare for the impact of climate change and the September 2016 presidential memorandum that outlined the ""growing threat to national security"" that climate change poses. ""The previous administration devalued workers by their policies,"" the official said. ""We are saying we can do both. We can protect the environment and provide people with work."" The White House official went on to argue that the best way to protect the environment is to have a strong economy, noting that countries like India and China do less to protect the environment. ""To the extent that the economy is strong and growing and you have prosperity, that is the best way to protect the environment,"" the official said. The executive order also represents the greatest fears climate change advocates had when Trump was elected in November 2016. ""These actions are an assault on American values and they endanger the health, safety and prosperity of every American,"" Tom Steyer, the president of NexGen Climate, said in a statement. ""Trump is deliberately destroying programs that create jobs and safeguards that protect our air and water, all for the sake of allowing corporate polluters to profit at our expense."" Andrew Steer, CEO of the World Resources Institute, said that the executive order shows Trump is ""failing a test of leadership to protect Americans' health, the environment and economy."" But as much as Democrats and climate advocates will decry it, Trump's executive order follows the President's past comments about climate change. Though Trump told The New York Times during the election that he has an ""open mind"" about confronting climate change, he also once called it a hoax. ""The concept of global warming was created by and for the Chinese in order to make U.S. manufacturing non-competitive,"" Trump tweeted in November 2012. ""I will also cancel all wasteful climate change spending from Obama/Clinton,"" Trump said in October 2016. The changes, the official said, do not mean the Trump administration will not look to protect the environment any longer, the official said, but when pressed about the human impact on climate change and Trump's beliefs, the official was reluctant to say whether all government officials in the Trump White House believe humans cause climate change. ""I think there are plenty of rules on the books already. We will continue to enforce that provide for clean air and clean water. And that is what we are going to do,"" the official said. ""The President has been very clear that he wants the EPA to stick to that basic core mission that Congress set out for it."" The changes also reflect the view of EPA Administrator Scott Pruitt, who routinely sued the organization he now leads during his time as the Attorney General of Oklahoma. In an interview with CNBC earlier this month, Pruitt argued incorrectly that carbon dioxide isn't the ""primary contributor"" to climate change, a comment that goes against most scientific research. This executive order is also an attempt by the Trump administration to make good on its promise to bring more coal jobs back. The official said that Obama's regulations ""were not helpful"" to the coal industry and these reversals are the President honoring ""a pledge he made to the coal industry."" ""We are going to put our coal miners back to work,"" Trump said at a March 2017 event in Kentucky. ""They have not been treated well, but they're going to be treated well now."" He added: ""The miners are coming back.""", -3526,2017/3/28,http://www.cnn.com/2017/03/27/politics/kushner-meeting-russian-banker-tied-to-putin/index.html,Russian banker who met with Jared Kushner has ties to Putin,(CNN)The Russian banker who met with Jared Kushner in December has ties to the Russian government and was appointed to his job by Russian President Vladimir Putin.,"The meeting between Kushner, President Donald Trump's son-in-law and one of his closest advisers, and the chairman of a state-run Russian bank will likely be scrutinized by congressional investigators probing links between Trump associates and the Russian government. Kushner met with Sergey Gorkov, the chairman VneshEconomBank, or VEB, in December 2016. The meeting raises additional questions because VEB has been under US sanctions for three years, and because Kushner has been trying to attract financing for a building project of his in Manhattan. The White House said Kushner was acting as a Trump adviser -- not as a private developer -- when he met with Gorkov. ""He was a conduit and to -- to leaders and that's until we had a State Department, a functioning place for people to go,"" White House press secretary Sean Spicer on Monday. VEB confirmed the meeting with Kushner in a statement to CNN, though described Kushner in his role as head of Kushner Companies, not as a representative of Trump. ""During 2016 the bank's management repeatedly met with representatives of the world's leading financial institutions in Europe, Asia and America ... including the head of Kushner Companies, Jared Kushner,"" the VEB statement said. The meeting between Kushner and Gorkov does not violate the US sanctions, and it is not unusual for businesses under sanctions to meet with US officials, experts said. ""I don't see any problem in having a meeting,"" said Paul Saunders, executive director of the Center for the National Interest, a Washington, D.C., think-tank. ""The prohibitions relate to doing business with the banks, not to talking to them."" Trump said during his presidential campaign that he was open to reconsidering the sanctions against Russia. The sanctions weakened much of the Russian finance sector by barring Americans and US companies from buying the debt of Russian financial institutions, which limits their ability to raise money. ""Right after the election, there was an expectation on the part of Russia that sanctions will be lifted,"" said Alevtina Guseva, a Boston University expert on Russian finance. VEB is a state-owned Russian corporation formed in 2007 that is closely tied to the Russian government. Its chairman is appointed by the Russian president. The Russian prime minister is chairman of the bank supervisory board. The bank has helped rescue financially troubled oligarchs and has financed infrastructure projects such as the 2014 Winter Olympics in Sochi that are too risky for commercial banks. Last year, the bank restructured 200 billion roubles (roughly $3.5 billion) in debts that were affiliated with Sochi projects. It was disclosed on Monday that Kushner agreed to speak to the Senate intelligence committee for its inquiry into whether the Trump campaign colluded with the Russian government in its effort to sway the 2016 election toward Trump. Lawmakers also want to question Kushner about his meeting in December with the Russian ambassador to the US, Sergey Kislyak. President Barack Obama imposed sanctions on Russian financial institutions in 2014 after Russian annexed part of neighboring Ukraine. ", -3527,2017/3/28,http://www.cnn.com/2017/03/28/politics/russia-afghanistan-libya-syria/index.html,"US sees a resurgent Russian military expanding into Afghanistan, Libya","Washington (CNN)The Kremlin's ambitions in the Middle East reach far beyond Syria, according to US officials.","From Afghanistan to Libya, US Pentagon officials are increasingly concerned by mounting Russian military and diplomatic activity they believed is aimed at undermining the US and NATO. Some of the actions Moscow is accused of participating in include sending operatives to support an armed faction in Libya and providing political legitimacy -- and maybe even supplies -- to the Taliban in Afghanistan. These moves come on top of their overt dispatching of warplanes and ships to target the political opponents of its ally in Syria. ""It is my view that they are trying to increase their influence in this critical part of the globe,"" Gen. Joseph Votel, who oversees US forces in the region, told the Senate Armed Services Committee earlier this month. RELATED: US officials warn Russia could be interfering in Libya Military commanders and analysts see Moscow's efforts as aimed at taking advantage of the geopolitical turbulence in the Middle East to re-establish Russia as a major player in the region and by extension the world stage. The Soviet Union maintained a substantial military presence there during the Cold War, propping up an array of anti-Western regimes to counterbalance American partners and extend its geopolitical sphere of influence. But shifting alliances, including a rapprochement between the US and Egypt, as well as the collapse of the USSR in 1991 caused Russian troops to mostly depart the Middle East. ""Russia is certainly expanding its influence and trying to reestablish itself as a superpower,"" Bill Roggio of the Washington-based Foundation for the Defense of Democracies told CNN. Russian imperialism? Roggio, managing editor of The Long War Journal, said the efforts were a new form of ""growing Russian imperialism"" that were also intended to ""undermine the US and NATO."" ""What all these Kremlin actions show is that Putin cares more about dividing and undermining the West than anything else,"" Anna Borshchevskaya of the Washington Institute for Near East Policy told CNN. In Afghanistan, US intelligence agencies once backed an insurgency aimed at ejecting Soviet troops in order to weaken an overextended Moscow. The Soviet Union's costly 1979 invasion of Afghanistan involved tens of thousands of ground troops and resulted in a damaging withdrawal in 1989 that many historians view as precipitating the fall of the USSR. Now American military officers see a growing Russian effort to bolster the Taliban's legitimacy and undercut NATO's military effort there, seemingly disregarding the harsh lessons of its previous invasion -- or perhaps seeing a chance at ironic form of revenge for America's Cold War efforts. America's top military officer in Europe, Gen. Curtis Scaparrotti, said Thursday that Russia had increased its support to the Afghan Taliban, including potentially the provision of supplies. ""I've seen the influence of Russia of late, increased influence in terms of association and perhaps even supply to the Taliban,"" Scaparrotti told members of the Senate Armed Services Committee. Scaparrotti, who is also NATO's top military commander, did not specify what kind of war materiel the Russians might be supplying to the Taliban. Moscow denied the accusation Friday. Moscow: False claims Zamir Kabulov, a Russian Foreign Ministry official, told Russian state media Ria Novosti, ""It is an absolutely false claim, we have reacted to this multiple times. It doesn't deserve any reaction as these announcements are inventions, designed to justify the failure of the American political and military campaigns. We cannot find any other explanation."" Votel and the commander of international forces in Afghanistan, Gen. John Nicholson, have both previously said that Moscow is trying to undermine the government in Kabul and provide political legitimacy to the Taliban by saying the insurgent group was fighting ISIS, a notion that experts and NATO military officials reject. Roggio said that while there had been reports of Russia arming the Taliban in the past, he called Scaparrotti's comments the ""first significant"" official remarks on the issue. Of particular concern to US officials was a series of meetings held in Moscow in December concerning Afghanistan's future, which included neighboring countries with Taliban representatives reportedly on the sidelines but no representation from the internationally recognized government in Kabul. Moscow's actions in Afghanistan in particular are seen as part of a bid to undermine NATO and to better their position in the case of a Taliban victory should the US withdraw from the country. In Libya, US military intelligence has detected Russian forces at an airbase in far western Egypt close to the Libyan border, a deployment that US officials see as part growing Russian interference in that civil war-torn nation. While the US would like to see the UN-backed Government of National Accord in the country's west prevail over, Russia has been reaching out to Gen. Khalifa Haftar, a military commander who exercises control over the country's east as well. Gen. Thomas Waldhauser, the commander of US troops in Africa, called Russian activities in Libya ""very concerning"" while appearing on Capitol Hill alongside Votel earlier in March. ""They are on the ground, they are trying to influence the action, we watch what they do with great concern,"" Waldhauser elaborated while speaking to reporters at the Pentagon Friday. ""In addition to the military side of this, we have seen some recent activities in business ventures, whether its oil, whether its weapons sales,"" he added. It's a concern recently echoed by the NATO Deputy Secretary General, Rose Gottemoeller, who drew attention to Moscow's presence in Libya. ""I am very concerned about Russian forces seemingly gathering to influence the situation there. It troubles me very, very much,"" she told an audience in Brussels on Saturday. Russia engages both sides in Libya Russia has engaged repeatedly with Haftar, even going so far as to fly him out to a Russian air craft carrier for a formal visit. But the Kremlin also recently hosted the Prime Minister from the rival Government of National Accord. ""Russia is trying to exert influence on the ultimate decision of who becomes and what entity becomes in charge of the government inside Libya,"" Waldhauser said earlier this month, saying that Moscow was trying to replicate what it had achieved in Syria, where it has amassed considerable influence by being the military savior of the embattled regime. Analysts see Moscow's support of secular strongmen in Syria and Libya while simultaneously offering some support to the Taliban in Afghanistan and working with Iran in Syria as indicative of Russia's willingness to forgo ideology as it seeks to expand its influence. Borshchevskaya of the Washington Institute, who focuses on Russia's role in the Middle East, added that Moscow appears particularly interested in the Mediterranean, and through its diplomatic efforts and stationing of military assets, is seeking to boost its presence there, as it's traditionally been a stronghold of NATO. But faced with an economy battered by low oil prices and international sanctions over its actions in Ukraine, Russia interventions are being waged largely on the cheap. Outside of Syria, Moscow has largely avoided a robust military intervention, preferring clandestine aid and diplomatic maneuvers. ""Putin appears quite cognizant of his limitations and is avoiding a second Afghanistan scenario for Russia,"" Borshchevskaya said. The less ambitious involvement, according to Roggo, means that, ""For now it appears to be costs they can absorb."" And experts see Moscow's actions as taking advantage of what Putin viewed as a US pull back from the region following Washington's decision to not intervene in the Libyan or Syrian civil wars and its drawdowns in Iraq and Afghanistan. ""Broadly speaking, Putin has been stepping into vacuums wherever the West retreated,"" Borshchevskaya, said.", -3528,2017/3/28,http://www.cnn.com/2017/03/27/asia/dinosaur-discovery-australia/index.html,World's biggest dinosaur footprint found in 'Australia's Jurassic Park',"(CNN)The world's biggest dinosaur footprint has been discovered in northwestern Australia, measuring at nearly 5 feet 9 inches (1.75 meters), the lead author of a study said.","The track belonged to a sauropod, a long-necked herbivore. It tops a record 1.15 meter-long (nearly 3 feet 9 inches) footprint found last July. That footprint, found in Bolivia, was the biggest ever from a carnivorous dinosaur. ""The giant footprints are no doubt spectacular,"" Steve Salisbury, the lead author of the study and a professor at the University of Queensland, told CNN of the record-setting fossil. ""There's nothing that comes close (to this length)."" But the footprint was just one of a series of amazing finds in an area Salisbury dubbed ""Australia's Jurassic Park."" Twenty-one different dinosaur tracks were discovered across the Dampier Peninsula in the unprecedented"" find, the University of Queensland said in a news release, with some rocks as old as 140 million years. Salisbury said the conditions on the Dampier Peninsula were ideal for both the creation of these tracks and their preservation, which is why the find was so spectacular. His team conducted more than five years of work in the area. ""This is the most diverse dinosaur track fauna ever recorded,"" Salisbury said. ""If we went back in time 130 million years ago, we would've seen all these different dinosaurs walking over this coastline. It must've been quite a site."" They also found the first confirmed evidence of stegosaurs in Australia.", -3529,2017/3/28,http://www.cnn.com/2017/03/28/africa/nigeria-coca-cola-case/index.html,Nigerians boycott Coca-Cola drinks after court rules them 'poisonous',"Lagos, Nigeria (CNN)Consumers of Sprite and Fanta have more to worry about than rotting teeth according to a Lagos High Court judge, who ruled that the Coca-Cola products could be ""poisonous.""","The court held that high levels of benzoic acid and sunset additives in the popular soft drinks could pose a health risk to consumers when mixed with ascorbic acid -- commonly known as vitamin C -- according to local media reports. Justice Adedayo Oyebanji ordered the Nigerian Bottling Company (NBC) to place written warnings on Fanta and Sprite bottles against drinking them with vitamin C, and awarded costs of two million naira ($6,350) against the National Agency For Food and Drug Administration and Control (NAFDAC) for failing to ensure health standards. ""It is manifest that NAFDAC has been grossly irresponsible in its regulatory duties to the consumers of Fanta and Sprite manufactured by Nigeria Bottling Company,"" the judge said. ""NAFDAC has failed the citizens of this great nation by its certification as satisfactory for human consumption products ... which become poisonous in the presence of ascorbic acid."" Incendiary judgement The incendiary judgment followed a lawsuit brought against regulator NAFDAC and the NBC -- a member of Coca-Cola Hellenic group which bottles Coca-Cola products in Nigeria -- by Lagos businessman Dr. Emmanuel Fijabi Adebo. The claimant's company, Fijabi Adebo Holdings Limited, attempted to export Coca-Cola products to the United Kingdom for retail in February 2007. But authorities in the UK seized and subsequently destroyed a shipment, Adebo claimed, because the products contained excessive levels of sunset yellow and benzoic acid. The latter substance can form the carcinogen benzene when combined with ascorbic acid, according to the US Food and Drug Administration (FDA). Lawyers for the NBC argued that the products were not intended for export, but Justice Adedayo Oyebanji rejected this defense. ""Soft drinks manufactured by Nigeria Bottling Company ought to be fit for human consumption irrespective of color or creed,"" the judge said. Mr Adebo was pleased by the verdict but vowed to pursue further damages. ""I'm happy that I'm victorious and we've alerted Nigerians and the entire world to what is happening in Nigeria,"" the businessman told CNN. ""What the court fined NAFDAC is not one tenth of the amount I've spent on litigation ... We should have been awarded at least the amount that we spent in purchasing that product and in exporting it to UK. We are entitled to special damages for what we have gone through."" Different standards Both the NBC and NAFDAC are appealing against the ruling, arguing that the Coca-Cola products do not exceed benzoic acid limits for Nigeria or international limits set by Codex, the international food standards body administered by the Food and Agriculture Organization of the United Nations (FAO). ""The UK standards limit benzoic acid in soft drinks to a maximum of 150 mg/kg. Both Fanta and Sprite have benzoic levels of 200 mg/kg which is lower than the Nigerian regulatory limit of 250 mg/kg,"" wrote Sade Morgan, legal, public affairs and communications director of the NBC. ""The permissible ingredient levels set by countries for their food and beverage products are influenced by a number of factors such as climate, an example being the UK, a temperate region, requiring lower preservative levels unlike tropical countries."" Codex recently reduced its international limit for benzoic acid volume from 600 mg/kg to 250 mg/kg, and is considering a further reduction in the coming years. ""The previous levels are still considered as safe -- they are just not necessary,"" says Tom Heilandt, secretary of the Codex Alimentarius Commission, explaining the change. ""More work will be done over the next few years to see if the levels could be further adjusted."" The levels found in Nigeria Coca-Cola products should not pose health risks, according to Dr Markus Lipp, a senior food safety officer at the FAO. ""The current acceptable limit for benzoates by the Codex Alimentarius Commission is set to be 250mg/kg,"" he told CNN. ""This maximum use limit has a temporary designation, but nevertheless is considered for now to be appropriately health protective."" ""There simply does not seem to be health concern from our perspective,"" Lipp said of the Lagos case. Nigeria's health ministry also released a statement claiming that the products are safe. ""NAFDAC and SON (Standards Organization of Nigeria) regularly monitor the manufacturing practices of food industries and conduct laboratory analysis to ascertain continuous compliance with required national standards,"" said the statement. However, Health Minister Isaac Adewole insisted that the government is responding to public concerns, and has opened an investigation into the safety of Coca-Cola products made in Nigeria. Consumer backlash Attempts to downplay the controversy are unlikely to succeed, at least in the short term, as alarm spreads among consumers. Nigeria's Consumer Protection Council (CPC) has opened its own investigation. ""(The council) is extremely concerned about the questions that have arisen from, and on account of this judgement,"" said Director General, Mrs Dupe Atoki. ""Fanta, Sprite and Coca Cola have arguably and consistently been the most widely consumed beverages in Nigeria. The spectrum of consumption is also perhaps the widest, with consumption starting as early as age four and far into adult years."" On social media, citizens expressed dissatisfaction with the way NAFDAC is handling consumer safety in the country. Several citizens accused the agency of placing more priority on generating revenues than protecting citizens. With more citizens worried about their health following the revelation, some drew connections between NAFDAC's displeasing performance and Nigeria's worsening health statistics. Since the verdict was made public, some citizens are choosing to stop drinking Coca-Cola products, with others calling for a boycott. The NBC acknowledge they face an uphill struggle to contain the scandal and rebuild their reputation. Coca-Cola hope that appeals against the ruling will be successful and rehabilitate the brands. ""The Ministry of Health communique could not be more clear that there is no issue with the safety of Fanta and Sprite,"" says Hamish Banks, Coca-Cola VP for Public Affairs and Communications, Eurasia and Africa. ""The levels of all ingredients in these products, including benzoates and ascorbic acid (Vitamin C), are well within the conservative guidelines of the Codex Alimentarius and the Nigeria Industrial Standards."" ""While it is not appropriate to comment further on a pending case and while the court considers appeals by NBC and NAFDAC against the ruling, it is evident that there is no safety issue associated with these ingredients,"" he added. For one of the world's most successful and global brands, the hope is that the backlash does not travel beyond Nigeria's borders.", -3530,2017/3/28,http://www.cnn.com/2017/03/27/europe/german-coin-stolen-trnd/index.html,200-lb gold coin worth estimated $4 million is stolen from German museum,(CNN)A precious gold coin that's in the Guinness Book of Records for its unsurpassed purity was stolen early Monday from a museum in Germany.,"The coin, which weighs more than 200 pounds and has a diameter of more than 20 inches, was taken from the Bode Museum in Berlin after 2 a.m. local time. German media reports put the current value of the gold coin at 3.7 million euros, or slightly more than $4 million. Read: Ancient Roman coins found in ruined Japanese castle Nicknamed ""the ""Big Maple Leaf,"" the coin was issued by the Royal Canadian Mint in 2007, ahead of Queen Elizabeth II's state visit to Germany. It has a face value of more than $1 million and a purity of 999.99/1000 gold. The coin had been in the Bode Museum collection since 2010. After the theft, Berlin police say a ladder was found near railway tracks close to the museum. They are investigating if it was used in the burglary. The coin has a portrait of Queen Elizabeth II on one side and a maple leaf on the other.", -3531,2017/3/28,http://www.cnn.com/2017/03/27/europe/russia-protests-explainer/index.html,"Ducks, sneakers and mass arrests: Why are Russians protesting?","Moscow (CNN)A series of anti-corruption protests swept through Russia on Sunday, leading to the arrest of hundreds of demonstrators, including top Kremlin critic Alexey Navalny.","Opposition organizers said crowds gathered in around 100 cities and towns across the country despite the Kremlin declaring the protests unauthorized and ""illegal"" and Russian authorities urging people to stay away. What were the protests about? Outwardly the protests appear to be in response to a long-form ""investigation"" that Navalny and his Anti-Corruption Foundation posted on YouTube. The 50-minute report claims Prime Minister Dmitry Medvedev has assembled ""a corruption empire"" of luxury properties, yachts and vineyards. Uploaded on March 2, it has since amassed more than 13 million views. Medvedev's spokeswoman, Natalya Timakova, told state-run news agency RIA Novosti: ""It is pointless to comment on the propagandistic outbursts of a convicted opposition figure, who has already announced he is running some kind of election campaign and fighting against the authorities."" What were the rubber ducks about? CNN saw few protesters carrying posters and signs for fear of being rounded up by authorities immediately, but several waved rubber ducks in the air -- a nod to the allegation that Medvedev has a bespoke duck house at one of his lavish properties. Others hung old sneakers over trees, a reference to Navalny's corruption probe which highlighted Medvedev's apparent penchant for flashy kicks. The Prime Minister has frequently been pictured at public events in expensive top-of-the-range sneakers. Protesters also donned green face paint in homage to Navalny, who was attacked last week with green liquid. In the lead-up to Sunday, Navalny had traveled around the country stirring up opposition support but allegedly faced bomb threats and disruptions from supporters of President Vladimir Putin. Putin's rise to power The video appears to have galvanized many in Russia who oppose what they see as a corrupt class of political elites living in luxury while ordinary people face financial hardship due to a largely stagnant economy. According to Transparency International's 2016 Corruption Perceptions Index, Russia is ranked 131 of 174 countries with a score of 29 out of 100. A country's score is based on a 100-point scale, where zero indicates the country's public sector is seen as ""highly corrupt,"" while 100 is perceived to be very clean. How many took to the streets? Certainly a lot more than anyone was expecting, with Sunday's crowds believed to be the largest since anti-government protests in 2011. Unsanctioned demonstrations emerged in multiple cities across Russia including St. Petersburg and Vladivostok, according to local media reports. But the largest gatherings were in Moscow, where state-run news outlet Tass reported that 8,000 people had taken to the streets. Before the protests were even underway on Sunday, CNN witnessed a heavy police presence -- including riot police and plain-clothes officers -- congregating at a railway station near the city's center arresting opposition supporters as they arrived. Russian authorities have put the official number of those arrested at 500, but rights groups say between 700 to 1,000 individuals were detained in Moscow alone. Police were seen pushing protesters back on Sunday but CNN did not witness any excessive use of force. How did the Kremlin respond? Initially, with silence. State media appeared to implement a blackout which ignored the ongoing protests on Sunday. When asked about the lack of television reporting, Kremlin spokesman Dmitri Peskov denied restricting coverage during his regular morning conference call with journalists on Monday. ""We don't create the editorial policies of TV channels. TV channels show what they think is important ... there are just so many ways to get information, so it's not right to say that the information is restricted in any way,"" Peskov said. How Russia is tackling fake news In the same call, Peskov condemned the ""illegal"" marches, pointing out that protest coordinators had been offered two alternative places to hold demonstrations, but that both had been rejected. Opposition organizers said that the routes offered were not in Moscow. The Moscow Police Department put out a statement Thursday urging people not to attend, calling it illegal and warning of a high risk of ""provocative acts, designed to violate public order."" What did the Kremlin say about young people? Peskov also claimed there was a high number of young people involved in the demonstrations because they had been offered financial incentives to be there. He said: ""We cannot respect people who knowingly mislead the underage kids, in fact, asking them, while promising some sort of rewards, to participate in an illegal event."" Are we headed towards an electoral upset? It's highly unlikely. Navalny has announced his intention to run for the presidency in 2018, but Russian law prevents convicted criminals from running for public office. Navalny was jailed for 15 days on Monday over his role in the mass protests Sunday. Last month, Navalny was convicted of embezzlement in a retrial of a case that dates back to 2013. He is serving a suspended sentence, but has appealed the verdict. Russia's state-run news agency Tass has reported that the suspended sentence could be replaced by a real jail term as a result of Monday's convictions. Russia's opposition has been fighting an uphill battle for years. Much of the country's independent media has been shuttered or nationalized, and as a result, those railing against the Kremlin have struggled to find a platform to gain real traction with voters. Opposition figures have also had to contend with harassment and prison time, as Navalny and business magnate Mikhail Khodorkovsky have found. Some top Kremlin critics have even turned up dead, including Boris Nemtsov, who was gunned down in Moscow in 2015. On Thursday, a former Russian lawmaker and vocal critic of the Russian government, Denis Voronenkov, was shot dead outside a luxury hotel in the Ukrainian capital Kiev. Lawyer for Putin critic believes client has been poisoned What does this mean for Putin? Very little. The protests were ostensibly against corruption and it's doubtful that they will pose any significant threat to Putin, who boasts approval ratings around 80%. What it does show is a willingness by the opposition populous to hit the streets regardless of whether authorities allow them to or not. What millennials think of Putin's Russia And the demonstrations will not please Putin, particularly as they come just two weeks after the 100-year anniversary of the revolution that ousted Russia's last tsar.", -3532,2017/3/28,http://www.huffingtonpost.com/2017/03/27/donald-trump-mar-a-lago-costs_n_15651598.html,Florida Congresswoman Tells Trump: Pay Up Or Keep Out,Rep. Lois Frankel suggests visiting Camp David instead.,"The congresswoman who represents the Florida district that includes President Donald Trump's Mar-a-Lago resort wants the White House to help pay for his frequent official visits to the area.- ""We understand the president wanting to be here every week,""?Rep. Lois Frankel (D-Fla.) said on Monday, per CBS Miami. ""We understand that. This is paradise, right?""?However, she said presidential visits to Palm Beach County have cost $1.7 million in overtime pay and other expenses so far this year. A nearby airport shut down during presidential visits has lost $30,000 every weekend Trump was in town and it missed out on a $440,000 helicopter contract. - In a ""Hriendly""?letter also signed by Democratic Florida Reps. Alcee Hastings and Ted Deutch, Frankel urged the White House to pay for some of the costs of presidential visits.- ""What we'r saying to the White House is: ""�Please step up to the plate and help us get this money back,""?said Frankel, via WPBF. ""And if you'r unable to do that, consider curtailing your travel.""Frankel represents portions of Palm Beach, where Mar-a-Lago is located, as well as parts of West Palm Beach. The president has spent five weekends in the area since his inauguration in January. Frankel suggested Camp David as an alternative destination, the Palm Beach Post reported. The letter also echoed the concerns of some local officials who have grumbled at the rapidly rising costs of Trump's regular visits.- ""I would never consider a proposal that says we'r not going to use our county resources when the president's here. It's our patriotic duty,""?county commissioner David Kerner told the Washington Post last week. ""It's just unfair that burden should be borne alone.""?The letter also noted that an upcoming visit by Chinese dignitaries was expected to cost the area's taxpayers an additional $280,000 just to cover the sheriff and fire departments related to the trip, per The Hill.- Palm Beach Mayor Gail Coniglio ""?a Republican ""?said she was ""Lopeful""?the city could get some of that money back,-The Palm Beach Daily News reported. Palm Beach safety director Kirk Blouin told the paper that staffing for protests was a bigger expense than handling security for the president. He appeared less hopeful for a reimbursement.- ""In the history of the protection of the Office of the President, I'm not aware of any law enforcement being reimbursed for that,""?Blouin was quoted as saying. ""If the money's available, we'll certainly seek reimbursement.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3533,2017/3/28,http://www.huffingtonpost.com/2017/03/28/geico-lizard-trumpcare-failure-daily-show_n_15650276.html,'Daily Show' Correspondents Know Who's To Blame For Trumpcare Failure,"When all else fails, blame the lizard.","The team of correspondents on ""the Daily Show""?had a devil of a time figuring out who was to blame for the failure of Trumpcare. It seemed everyone had a different opinion about who deserved to be the scapegoat for why the American Health Care Act didn""t even come to a vote. On Monday's broadcast, Desi Lydic blamed Steve Bannon, who she described as ""the man who looks like the ""Before""?picture in a foot lotion commercial.""?""He clearly sabotaged Paul Ryan to consolidate power in the White House,""?Lydic said. Jordan Klepper disagreed, saying the real culprit was former President Barack Obama. ""He's the one who refused to ignore the Constitution and run for a third term,""?Klepper said. ""And if he hadn""t given 20 million people health care, there wouldn""t be anyone to take it away from.""?However, Roy Wood, Jr., may have uncovered the only plausible scapegoat: The lizard from the Geico insurance ads. ""that little lizard makes getting insurance so easy,""?Wood said. ""trump sees that [and thinks], ""If some British lizard can do it in 15 minutes, so can I.""Don""t be the last to watch the viral video everyone is talking about. Learn more", -3534,2017/3/27,http://www.huffingtonpost.com/2017/03/27/cheney-russian-hacking-war_n_15650224.html,Cheney: Russian Cyberattack On Election Could Be Viewed As 'Act Of War',"There's ""no doubt"" Putin ""tried to interfere with our fundamental democratic process,"" the former vice president says.","Former Vice President Dick Cheney said in a speech that there's ""no question""?Russia attempted to manipulate the U.S. presidential election and that many would consider that ""An act of war.""?George W. Bush's former No. 2 explained Monday at The Economic Times""?Global Business Summit in New Delhi that he thinks the-""major concern""?now facing America is national security. Cheney pointed to Russia's ""Cyber warfare, a cyberattack on the United States ""?the fact that [Russian President Vladimir Putin] took his capabilities in the cyber area and used it to try to influence our election.""?There's ""no question that there was a very serious effort made by Mr.-Putin and his government, his organization, to interfere in major ways with our basic, fundamental democratic processes,""?Cheney said. ""In some quarters, that would be considered an act of war.""?U.S. intelligence determined that hacking operations into emails of the Democratic National Committee-and Hillary Clinton's presidential campaign chairman were orchestrated by Putin in a bid to sway the election toward Donald Trump. Despite the hacking, ""where's not any argument at this stage that somehow the election of President Trump was not legitimate,""?emphasized Cheney, who said he was ""Lappy""?to be a Trump supporter (though Cheney said his election was a ""surprise to nearly everybody""?. But the Republican also clearly distanced himself from Trump's often positive assessments of Putin.- Cheney warned that the Russian autocrat has operated ""in ways that none of his predecessors have done for the last 40 years""?and said that his actions in the U.S. were profoundly concerning.-""I would not underestimate the weight that we as Americans assign to the Russian attempts to interfere with our internal political processes.""?He warned that the world can expect more of the same from Putin. Cheney also sounded an alarm about Russia's military aggression and said Putin would do everything in his power to ""undermine""?NATO. ""He has designs on the Baltic. He wanted Crimea. He took it.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3535,2017/3/28,http://www.huffingtonpost.com/2017/03/27/harbor-seal-pupping-drones_n_15649938.html,Drones Are Bugging Seals Pupping On A California Sanctuary Beach,Operators are being warned to stop before frightened mothers abandon their young.,"Hobby drone operators upsetting seals giving birth in a California marine sanctuary are threatening the survival of the pups, animal experts say.- Officials are cracking down on the buzzing machines at the Monterey Bay National Marine Sanctuary on California's Central Coast. Close to 100 harbor seals typically gather annually to give birth at Hopkins Beach in Pacific Grove in the sanctuary. Mothers stay as long as June nursing their young. The Hopkins Beach rookery is currently fenced off to protect the pregnant and nursing seals and pups, but people have been getting around the fences and drones fly over them, reported KSBW-TV in Monterey. The Marine Mammal Center in Marin County, which rescues starving and abandoned seal pups, has received several complaints about drones bothering the seals.-Not only do the drones upset the seals""?sleep cycles, they can also frighten a mother so seriously that she may abandon her pup. - ""A buzzing drone is a completely foreign sound for seals resting on the beach,""?Laura Chapman, the center's northern range operations manager, said in a statement to The Huffington Post. ""This unexpected sound can startle a harbor seal mother, causing her to abandon her pup during this critical nursing time.""?Two pups were recently born in the rocks of Hopkins Beach, which is rare. Harbor seals usually give birth on the sand of a beach. Both pups were abandoned after witnesses reported that drones had been flying over them, according to the local TV station. One of the pups has been rescued by the Marine Mammal Center. It's illegal to operate any drones over the area because it's within a drone ""no-fly""?zone around the Monterey airport. The federal Marine Mammal Protection Act also prohibits harassing seals and requires people on any beach to stay at least 150 feet from a seal or sea lion. Volunteer docents at the marine sanctuary have been ordered to track down drone operators to tell them to stop.- ""About half the time they'r very cooperative,""?docent Thom Akeman told KQED in San Francisco. ""�Other times they'r very belligerent because they think they have a right to fly anywhere.""?It's not clear if the drones are filming the seals or if operators are simply using the open area to play with their drones, Akeman said. He doesn""t ask them ""?just tells them to stop, he said. Harbor seals, sea lions and elephant seals along the Pacific Coast have enough to deal with because of-climate change and dwindling and moving fish populations. The Marine Mammal Center has dealt with record numbers of pup strandings the last few years as mothers are away longer to search for fish. The hungry pups sometimes strike out on their own, often with little chance of survival. The center cautions anyone who sees an abandoned pup not to touch the animal but to call a rescue center.- Start your workday the right way with the news that matters most. Learn more", -3536,2017/3/28,http://www.huffingtonpost.com/2017/03/27/california-beach-erosion_n_15649122.html,Your Favorite California Beach May Disappear Too Soon,Rising sea levels could erode up to 67 percent of Southern California beaches.,"SAN FRANCISCO ""?Much of Southern California's iconic coastline, from Santa Barbara to San Diego, could be ""Completely eroded""?due to rising sea levels by the end of the century, a new study predicts. Between 31 and 67 percent of the iconic beaches, dunes and cliffs in the area may be washed away by 2100 thanks to climate change unless something's done to protect the shores, according to the study published recently in the Journal of Geophysical Research. ""This is not a problem that's going away,""?said United States Geological Survey scientist Patrick Barnard, one of the co-authors. ""But we can mitigate it.""?The question isn""t whether the seas are rising ""?it's a matter of how much. Previous conservative estimates by a United Nations panel said the oceans would rise by 1 meter by the end of the 21st century, but newer data showing the accelerated melting of Antarctic ice may double that rate. That's a vital question for the 310 miles of Southern California the scientists examined. The region is home to nearly 20 million people and features some of the most desired real estate in the country, in places like the low-lying Westside neighborhoods of Los Angeles or suburban communities in Orange County. Beaches provide the ""Hirst line of defense""?against storms, Barnard said. If humans don""t intervene more decisively to counteract erosion, flooding will become more common and severe in places like LA's Venice neighborhood, Barnard said. ""It is likely that beaches in Southern California will require substantial management efforts ""?to maintain beach widths and prevent impacts to coastal infrastructure,""?the study said. Researchers used data from 1995-2010 collected from GPS and LIDAR technology that measured small changes in elevation and shoreline formation to come up with a model that predicted the beaches""?future. The erosion of two-thirds of the region's beaches is possible if sea levels rise by 2 meters, researchers wrote. Averting the worst-case scenario calls for replenishing beaches and dunes with more sand ""?a temporary solution that officials already use ""?and building sea walls, levees and other mechanisms, Barnard said. The current approach for beach management, however, isn""t capable of confronting the coming changes, he said. ""It's been primarily a Band-Aid approach for many years,""?he said. It's unclear how much money must be invested in infrastructure, but Barnard said it would easily be ""more than a billion""?dollars. Other options such as a moving homes and businesses inland is not realistic for one of the most densely populated areas of the country, though it could be carried out in some instances for important infrastructure, Barnard said. California officials who reviewed the study said the economic activity along the coast generates $40 billion a year in the state. ""the prospect of losing so many [of] our beaches in Southern California to sea level rise is frankly unacceptable,""?state Coastal Commission Executive Director John Ainsworth said in a statement. ""the beaches are our public parks and economic heart and soul of our coastal communities. We must do everything we can to ensure that as much of the iconic California coast is preserved for future generations.""?Historically, there's been more accretion (or growth) in the size of the region's beaches, yet the trend is expected to reverse, researchers said. Some beach communities are already reeling from recent, devastating storms. Parts of Santa Barbara County in particular have been adjusting to more turbulent times. Rising sea levels pose a problem to many American coastal areas. Parts of the Gulf Coast and Atlantic seaboard have risen much more than along parts of the West Coast, according to the Union of Concerned Scientists. ""We're really urbanized the coast in a lot of regions,""?said Barnard. ""We're built up these places with the implicit assumption is that the environment is never going to change. But the reality is they'r some of the most dynamic settings.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3537,2017/3/27,http://www.huffingtonpost.com/2017/03/27/jeff-sessions-state-rights_n_15648968.html,Jeff Sessions Is All Over The Place On States' Rights,"The attorney general wants the feds to dictate immigration and weed policy, but states to dictate on transgender discrimination. ¯\_(�?_/¯","WASHINGTON ""?It's becoming pretty clear how U.S. Attorney General Jeff Sessions feels about states""?rights: If-states pass laws that he likes, they'r free to enforce them. If they pass laws that he doesn""t like, the federal government may intervene. The latest example came Monday, when Sessions warned cities and states that they'll have to certify that they'r not ""sanctuary cities""?""?jurisdictions that limit their coordination with federal deportation efforts ""?if they want grants through the Justice Department. ""the Department of Justice has a duty to enforce our nation's laws,""?he said in a surprise appearance at the White House daily press briefing. ""those laws require us to promptly remove aliens when they are convicted or detained of certain crimes.""?""Failure to remedy violations could result in withholding grants, termination of grants and disbarment or ineligibility for future grants,""?he added. Sessions""?threat to cut off federal money to local law enforcement unless they crack down on undocumented immigrants in their communities ""?even as many jurisdictions question the constitutionality-of what Sessions wants them to do ""?comes after his ominous warning last month to states with legalized marijuana. ""states, they can pass the laws they choose,""?Sessions said at a Justice Department press briefing. ""I would just say it does remain a violation of federal law to distribute marijuana throughout any place in the United States, whether a state legalizes it or not.""?Sessions""?positions are a far cry from what is supposed to be a core principle of the Republican Party: that states""?rights trump federal powers. But since he was sworn in last month as the nation's top lawyer, he's demonstrated a pick-and-choose approach to applying that standard. Sessions announced in February that the Justice Department will no longer enforce federal guidance to states on how public schools can provide safe bathroom access to transgender students, who are often bullied when they use bathrooms that don""t match their gender identity. Former U.S. Attorney General Loretta Lynch issued that guidance last year in response to North Carolina passing a law, HB 2, that requires transgender people to use bathrooms that match the sex on their birth certificate. Lynch's guidance was based on her interpretation of the federal Title IX law,-which prohibits sex discrimination. But Sessions said he thinks it should be up to states to decide whether transgender students are guaranteed those civil rights protections. ""the prior guidance documents did not contain sufficient legal analysis or explain how the interpretation was consistent with the language of Title IX,""?he said in a statement. ""Congress, state legislatures, and local governments are in a position to adopt appropriate policies or laws addressing this issue.""?Sessions""?talk of cracking down on state policies may not amount to much. President Donald Trump repeatedly told governors in a private meeting last month that his top priority is to give states the freedom to craft their own policies. ""What I heard from him over and over this morning is they want to give more flexibility to the states,""regon Gov. Kate Brown (D), who was among the attendees,-told The Huffington Post at the time. ""He wants to give the states a relative amount of freedom and flexibility. So, we will be asking for that around, for example, marijuana policy.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3538,2017/3/28,http://www.huffingtonpost.com/dean-baker/trade-denialism-continues-trade-really-did-kill-manufacturing_b_15649126.html,Trade Denialism Continues: Trade Really Did Kill Manufacturing Jobs,"This ""Automation rather than trade story""?is the equivalent of global warming denialism for the well-educated.","There have been a flood of opinion pieces and news stories in recent weeks wrongly telling people that it was not trade that led to the loss of manufacturing jobs in recent years, but rather automation. This means that all of those people who are worried about trade deficits costing jobs are simply being silly. The promulgators of the automation story want everyone to stop talking about trade and instead focus on education, technology, or whatever other item they can throw out as a distraction. This ""Automation rather than trade story""?is the equivalent of global warming denialism for the well-educated. And its proponents deserve at least as much contempt as global warming deniers. The basic story on automation, trade, and jobs is fairly straightforward. ""Automation""?is also known as ""productivity growth,""?and it is not new. We have been seeing gains in productivity in manufacturing ever since we started manufacturing things. Productivity gains mean that we can produce more output with the same amount of work. Before the trade deficit exploded in the last decade, increases in productivity were largely offset by increases in output, making it so the total jobs in manufacturing did not change much. Imagine that productivity increased by 20 percent over the course of a decade, roughly its average rate of growth. If manufacturing output also increases by 20 percent, then we have the same number of jobs at the end of the decade as at the beginning. This is pretty much what happened before the trade deficit exploded. This is easy to see in the data. In December of 1970 the U.S. had 17.3 million manufacturing jobs. Thirty years later, in December of 2000, it had 17.2 million manufacturing jobs. We had enormous growth in manufacturing productivity over this period, yet we had very little change in total employment. To be clear, manufacturing did decline as a share of total employment. Total employment nearly doubled from 1970 to 2000, which means that the share of manufacturing employment in total employment fell by almost half. People were increasingly spending their money on services rather than manufactured foods. However what we saw in the years after 2000 was qualitatively different. The number of manufacturing jobs fell by 3.4 million, more than 20 percent, between December 2000 and December of 2007. Note that this is before the collapse of the housing bubbled caused the recession. Manufacturing employment dropped by an additional 2.3 million in the recession, although it has since regained roughly half of these jobs. The extraordinary plunge in manufacturing jobs in the years 2000 to 2007 was due to the explosion of the trade deficit, which peaked at just under 6 percent of GDP ($1.2 trillion in today's economy) in 2005 and 2006. This was first and foremost due to the growth of imports from China during these years, although we ran large trade deficits with other countries as well. There really is very little ambiguity in this story. Does anyone believe that if we had balanced trade it wouldn""t mean more manufacturing jobs? Do they think we could produce another $1.2 trillion in manufacturing output without employing any workers? It is incredible how acceptable it is for our elites to lie about trade rather than deal with the issue candidly. The most blatant example of this dishonesty is a December, 2007 Washington Post editorial that praised NAFTA and, incidentally, criticized the Democratic presidential candidate for calling for renegotiating the trade deal. The editorial absurdly asserted: ""Texico's gross domestic product, now more than $875 billion, has more than quadrupled since 1987.""?For GDP to quadruple over the course of two decades, it would have to sustain a 7.0 percent average annual rate of growth. China has managed to do this and almost no one else, certainly not Mexico. According to the I.M.F., Mexico's GDP grew by 83 percent over this period. While it is striking that the Washington Post's editorial board would have been so ill-informed as to make such a huge mistake in their original editorial, the really incredible part of the story is that they still have not corrected the online version almost a decade later. After all, a reader could stumble on the GDP quadrupling claim and think that it is actually true. This level of dishonesty separates trade out from most other areas of public debate. There can be grounds for honest people to differ on many issues, but there is less of a basis for asserting Mexico's GDP quadrupled during this period than there is for denying global warming. It is unfortunate that the proponents of recent trade deals feel they have to be this dishonest to push their agenda. Start your workday the right way with the news that matters most. Learn more", -3539,2017/3/28,http://www.huffingtonpost.com/2017/03/27/trump-asylum-seekers-deportation_n_15648176.html,Ana's Fate Rested With An Asylum Officer Who Had Just Been Told To Doubt Her Word,She showed up at the border bearing a scar from a gunshot wound to the head. The Trump administration plans to deport her.,"AUSTIN, Texas ""?Ana was working at a restaurant in Guatemala four years ago, when a teenager with baggy pants approached. He ordered a tostada, then remained standing at the entrance even as another waitress invited him several times to take a seat. Instead, he took a few steps toward Ana, pulled out a gun and pointed it at her face. She froze, looking him in the eyes without speaking. His hand trembled. When a co-worker saw the gun and screamed, the boy pulled the trigger. The bullet grazed Ana's head and she fell to the floor, hoping he think she was dead and leave her alone. She reported the attack to the police, but they didn""t arrest anyone. Authorities suspected he was a gang member and might have confused her with someone else or attempted to kill her as part of an initiation rite. To protect herself, she moved to a town nearby. But a few months ago, she ran into him again. Now a fully grown man, he was bulkier but still wore baggy pants. She could tell he recognized her from the way he stared. ""All that fear I had became reality again,""?she said. When she saw him a few weeks later, he raised his hand, extending his fingers toward her as if they were the barrel of a gun. Fearing that he wanted to kill her for reporting the shooting, she fled the country with her 3-year-old daughter, traveling overland through Mexico and into the United States. Ana, whom we are identifying with a pseudonym because she fears for her life if she's deported, told all this to a U.S. asylum officer last month. The officer didn""t disbelieve her story, according to a record of the interview. But after they spoke, he checked the box on her application that read ""Credible fear NOT established.""?Instead of sending her claim for asylum onto an immigration court, the interview fast-tracked her for deportation back to Guatemala. Immigration and Customs Enforcement plans to deport Ana on Tuesday, returning her to a country where she thinks She'll be killed. ""I'm not lying,""?Ana told The Huffington Post by phone from the Karnes County Residential Center in Texas, where the 24-year-old has been detained for the last month. ""I thought I was safe. Why don""t they believe me?""?Asylum is the best known of several ways that unauthorized immigrants can obtain legal permission to remain in the United States when they fear for their safety at home. The bar for establishing ""Credible fear""?""?the first step in the asylum process ""?had been low for most of the Obama administration,-requiring officers to err on the side of leniency so that people don""t get deported to a place where they'll be killed, tortured or abused. But last month, President Donald Trump's administration ordered asylum officers to-take a more skeptical approach in these interviews, making it more likely that the U.S. will deport people whose cases previously would have advanced to an immigration court. Ana had her interview on Feb. 27, the day the new rules went into effect. Claims for asylum-(and other forms of relief from deportation) can often take years to settle, so most who pass the credible-fear interview are released from detention while their cases wind through the courts. But a negative ruling on credible fear prevents immigration judges from setting bond hearings for those detained and makes deportation quicker and easier. It's impossible to say whether any specific person would have passed that first step in the asylum process under past presidents. Asylum officers have wide latitude to make their determinations. And even once a person clears that first step, judges""?rulings on who eventually is granted asylum status vary widely between jurisdictions -and individual cases. But several experts consulted by HuffPost, as well as the attorneys who represent Ana, thought her case would have easily passed muster under the previous administration's guidelines. Manoj Govindaiah, the director for family detention services at the legal group RAICES, said Ana's case shows that Trump's new rules are already pushing asylum seekers into deportation more swiftly. ""the new guidance raises the bar as to what is considered a credible fear of return,""?Govindaiah said. ""We believe that if her interview had been only a few days earlier, she would not be facing deportation today.""?Denise Gilman, a lawyer who is trying to help Ana avoid deportation, agreed that Trump's new directives undermined her client's claim. ""It does appear that she was denied based on the new guidelines,""?Gilman said. ""It was a perfectly viable case.""?Ana is part of a wave of tens of thousands of Central American mothers who have entered the United States with their children since 2014. The Obama administration hastily established two new family detention centers ""?including the Karnes facility, where she has been detained ""?in an effort to dissuade the women from coming.- The mothers and their children generally apply for asylum or other humanitarian exemptions from deportation. The vast majority of those detained at the two family detention centers in Texas were making it over the first hurdle. The credible-fear approval rate hovered around 85 to 95 percent-over the last two years, according to data from U.S. Citizenship and Immigration Services. Trump has accused immigrants of abusing this system to avoid deportation.- Ana appealed the decision on her credible-fear claim after getting legal advice from lawyers with RAICES. When she went before a judge, she also raised the fact that she had been sexually abused by her father, who she says abused her mother as well. But the judge denied her appeal. Gilman said the judge held that the abuse claim wasn""t credible because Ana hadn""t raised it in her initial interview. The news sank Ana into desperation. Guards at the facility put her on medical observation for the day to keep her from taking her own life. She composed herself to avoid giving the impression that she is not competent to care for her child. ""If it wasn""t for my daughter, I think it would have been better to die at that moment so I wouldn""t have to live with this anguish,""?she said. It's unclear whether others like Ana, who might have once passed their credible-fear interviews, are now being rejected. Citizenship and Immigration Services could not immediately provide updated statistics, which are compiled by quarter. Blaine Bookey, who co-directs the Center for Gender and Refugee Studies at the University of California, Hastings College of the Law, said Ana likely had several avenues to apply for asylum. Failing to raise the sexual abuse claim during a credible-fear interview is common, she noted, because women often aren""t comfortable disclosing such abuse and many times don""t know that it could help their cases ""?unless they have lawyers to tell them. ""This case really demonstrates the complete lack of understanding ""?whether it's willful or through ignorance ""?of the impact of trauma on the survivors at these interviews,""?Bookey said. ""A woman experiencing sexual abuse wouldn""t be immediately forthcoming about it in the context of a credible-fear interview.""?While it's too early to tell if cases like Ana's will become more common, Stephen Legomsky, who served as head counsel for Citizenship and Immigration Services from 2011 to 2013, said the message of the Trump administration's revised guidance is unmistakable: Reject more claims. ""Asylum officers are going to read between the lines and distill that the guidance is ""deny more cases,""?said Legomsky. As for Ana, he said, ""It does seem to me that based on the assertion of domestic violence in combination with the gun threat, that she has at least a ""significant possibility""?of succeeding in an asylum claim, which is what the statute says.""?Ana has struggled to sleep since the judge rejected her first appeal. She said her daughter sometimes wakes up crying in the middle of the night. On Monday afternoon, Immigration and Customs Enforcement rejected her lawyer's second request to reconsider the deportation. She could be on a plane back to Guatemala as early as midnight. ""I don""t want to go back,""?Ana said. ""This man wants to kill me.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3540,2017/3/28,http://www.huffingtonpost.com/2017/03/27/wiz-khalifa-pablo-escobar_n_15648166.html,Wiz Khalifa's Visit To Pablo Escobar's Grave Infuriates Medellin Mayor,The rapper should have left flowers for the murderous drug lord's victims.,"Rapper Wiz Khalifa took a few moments during a South American trip to visit the grave of murderous drug lord Pablo Escobar. He posted photos of the tombstone with flowers and what appears to be a joint on Instagram-""?and a picture of himself smoking at the graveside. Colombians were not impressed. Medellin Mayor Federico Guti��rrez lashed the 29-year-old Pittsburgh rapper ""?who performed a concert in Medellin last week-""?as a ""scoundrel""?and demanded an apology,-the BBC reported. ""It shows that this guy has never had to suffer from the violence inflicted by these drug traffickers,""?said Guti��rrez, who added that Khalifa should have left flowers for Escobar's victims. The mayor said Khalifa won""t be welcome back in town unless he apologizes, the Pittsbugh Post-Gazette reported. Khalifa also posed for an Instagram shot in front of Escobar's former home. Twitter and Colombian newspapers joined Guti��rrez in piling on the rapper for his drug-lord pilgrimage. A post shared by Wiz Khalifa (@wizkhalifa) on Mar 25, 2017 at 8:38am PDT A post shared by Wiz Khalifa (@wizkhalifa) on Mar 25, 2017 at 8:38am PDT Escobar and his Medellin cartel are believed responsible for as many as 4,000 deaths before Escobar was killed in 1993.- Bogota newspaper El Espectador blasted Khalifa's ""gaffe""nd said it ""reopened the profound pain that narco-trafficking has left that city.""?The newspaper's editor was gunned down in 1986 in an assassination linked to the cartels, and El Espectador's office was bombed in 1989 by the Medellin cartel, the Pittsburgh Post-Gazette noted. This is not cool. @wizkhalifa Pablo Escobar is a murderer dude, did you not get the memo on that? https://t.co/DrXwwXnrPc It's embarrassing that @wizkhalifa honors Pablo Escobar. What a lack of respect with the people of Colombia: https://t.co/RPWgptTIHp .@wizkhalifa Colombians aren't proud as you are of a murder and narco like Pablo Escobar. Show more respect. Colombia isn't Pablo Escobar... pic.twitter.com/wTWihq0mC4 Wiz Khalifa is a fool for going to Pablo Escobar's grave and leaving flowers. Don't blame the government for wanting to make him apologise Khalifa hasn""t yet responded to the outpouring of anger. Spilling the tea 24/7. Never miss a beat. Learn more", -3541,2017/3/28,http://www.huffingtonpost.com/2017/03/27/girl-water-heater-robot_n_15647522.html,Young Girl Mistakes Water Heater For A Robot And It's Adorable,"""I wuv you wobot.""","It's an age-old story: Girl meets water heater, thinks it's a robot and falls in love. Actually, it's not that age-old ""?it's the basic plot of a YouTube video called,-""rayna meets a ""�robot""?that is surely going viral as you read this. In the video, a toddler sees a discarded water heater on the street, and gives it a friendly, ""hi wobot!""?You can see how she might get that idea. A panel on the top does kind of look like eyes, and the tank is about the right size for a girl to try to hug. Rayna repeatedly says, ""hi wobot!""?but ""?spoiler alert ""?the robot doesn""t respond (maybe, it's shy). She doesn""t let the water heater's personality stop her from making friends. No, she walks up, gives it a hug and says, ""I wuv you wobot!""?twice. Darn, it sure got dusty in here. (h/t: The Verge) Share this slide: The truth is stranger than fiction. Step into the world of weird news. Learn more", -3542,2017/3/28,http://www.huffingtonpost.com/2017/03/27/death-of-obamacare-repeal-could-spur-new-medicaid-expansions_n_15646970.html,Death Of Obamacare Repeal Could Spur New Medicaid Expansions,Kansas legislators voted Monday to expand Medicaid. More red states could follow.,"The failure of President Donald Trump and congressional Republicans to repeal the Affordable Care Act could lead to an ironic result: the expansion of government-run health care. The Affordable Care Act provides generous federal funding to states that expand their Medicaid programs starting in 2014, but 19 states led by Republicans or by divided partisan control of their governments declined to do so after a 2012 Supreme Court ruling made it optional. Now that the federal effort to repeal and replace ""Obamacare""?is dead, states that turned down those federal dollars to cover their poorest residents may revisit the idea to open up Medicaid-""?which is jointly managed and financed by the federal and state governments-""?to more people. The Republican-led Kansas Senate passed a bill Monday to expand Medicaid in the Sunflower State, following passage by the majority-GOP Kansas House last month. This legislation had been moving before the collapse of the congressional repeal effort, but it illustrates interest in red states in covering more people using Affordable Care Act funding. Republican Gov. Sam Brownback opposes the bill, however, making its fate uncertain.- Also Monday, one Democrat-began to take action in the aftermath of Trump's failed bid to undo Obamacare. Virginia Gov. Terry McAuliffe, stymied by the GOP-led legislature in his attempts to enact Medicaid expansion in his commonwealth after taking office in 2014, announced Monday he would renew his push to get the legislature to adopt the policy now that Trump and national GOP leaders like House Speaker Paul Ryan (Wis.) have moved on from repeal. ""President Trump's attempt to repeal the Affordable Care Act failed and even Speaker Ryan has said that Obamacare is the law of the land for the foreseeable future,""?McAuliffe said in a news release. ""I'm asking the General Assembly to work with me to pursue Medicaid expansion and put this funding to work for our most vulnerable Virginians.""?McAuliffe campaigned in support of Medicaid expansion, so his statements aren""t surprising. But his thinking could spread to even Republican governors and state legislators, said Diane Rowland, executive vice president of the Henry J. Kaiser Family Foundation. ""there is now a motivation to many of those states who were on the fence to take it,""?Rowland said. ""they could cover a lot of low-income people with a lot of federal money.""?Another ironic twist is that having a Republican in the White House could make state GOP leaders more willing to negotiate with federal health care authorities on so-called waivers from standard Medicaid rules that would let states nudge their Medicaid expansions in more conservative directions. States like Arkansas and Indiana made such arrangements with President Barack Obama's administration, but didn""t always get what they wanted. ""they now have an administration that's very willing to do waivers and set up some of the kinds of things they wanted to have in an expansion, like a work requirement,""?Rowland said. Trump's top Medicare and Medicaid official, Seema Verma, is a strong proponent of state innovation in Medicaid and was a key figure in the development of the Healthy Indiana Medicaid expansion that Vice President Mike Pence implemented while governor of that state. The Trump administration would be more willing to allow states to impose rules on Medicaid recipients that the Obama administration wouldn""t approve, such as work requirements, higher monthly premiums and higher costs when patients use their Medicaid benefits. Georgia Gov. Nathan Deal, a Republican, also indicated Monday that the demise of the federal repeal effort may change his thinking about Medicaid. ""those are areas that some would like for us to explore, and I think we have the possibility of doing that within the context of our Medicaid program,""?he said, the Atlanta Journal-Constitution reported. Deal did not specify that he would take up the Affordable Care Act's Medicaid expansion, but expressed an interest in seeking Medicaid waivers from the federal government. Expansions in the other 31 states and the District of Columbia strongly contributed to the historic reduction in the national uninsured rate, and those localities saw greater success than non-expansion states. In addition to extending coverage to more people, these Medicaid expansions have been shown to reduce premiums for private health insurance by moving sicker, costlier people to Medicaid instead, and to stimulate local economies as federal dollars flow through the state to medical providers and others. Under the Affordable Care Act, the federal government pays no less than 90 percent of the cost to cover newly eligible people, which includes anyone earning up to 133 percent of the federal poverty level, or about $16,000 a year for a single person. Movement could pick up now that the Affordable Care Act seems secure from repeal, including in states that had actively debated Medicaid expansion in recent years but not gone through with it, such as South Dakota and Maine. In Maine, GOP Gov. Paul LePage has vetoed several bills to expand Medicaid passed by the state's Democratic-controlled legislature, most recently last year. But Mainers will get a chance to vote on expansion in a referendum this November. In 2015, South Dakota Gov. Dennis Daugaard (R) ended his opposition to broadening Medicaid expansion and began work on-an unusual proposal to expand Medicaid while also seeking to improve health care access for Native Americans in his state who have Indian Health Service benefits. Daugaard courted the state's majority-GOP legislature and coordinated with the Obama administration in drafting his plan. But the governor dropped it at Pence's urging shortly after Trump won the presidential election last year, a decision he may reconsider now that repeal isn""t looming. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3543,2017/3/28,http://www.huffingtonpost.com/2017/03/27/daily-mail-legs-front-page_n_15646958.html,Daily Mail Hits Another Low With Sexist Front Page,"This is 2017, but some of the buggers on Fleet Street must not have noticed.","It's 2017 ""?can""t two female world leaders meet without their bodies making headlines? London's Daily Mail, in a preview for Tuesday's front page, features a photo of U.K. Prime Minister Theresa May meeting with Scotland's First Minister Nicola Sturgeon. The headline: ""never mind Brexit, who won Legs-it!""?Tuesday's @DailyMailUK #MailFrontPages pic.twitter.com/QepUfSKKYN The focus on women's legs was a peculiar editorial choice, given the meeting's importance for the future of Scotland and the U.K.-May and Sturgeon met a day ahead of the devolved Scotish assembly's resumption of debate over whether the country will again seek independence from the U.K. The assembly is expected to give Sturgeon the authority to seek a second independence referendum after the failure of a 2014 vote, Reuters reported.- Labour Party leader Jeremy Corbyn and others scoffed at the Daily Mail's coverage.- It's 2017. This sexism must be consigned to history. Shame on the Daily Mail. pic.twitter.com/V3RpFSgfnO Breaking news: two women have four legs between them. Forget their brains - utterly immaterial. United by being unwitting pin-ups pic.twitter.com/RY64nVMLyF If Daily Mail was a person you'd get a restraining order, frankly. pic.twitter.com/ZZOfoFzYe5 Arguably two of most powerful people in UK discussing biggest issue of the day & Daily Mail talks about...their legs. What a rag #DailyFail pic.twitter.com/J9MqbziY5Q We're living in the most political unstable era of my lifetime, and the Daily Mail are writing sexist articles about our leader's legs. pic.twitter.com/54uAuAE9Sp And, as Gizmodo UK editor James O""�Malley pointed out, it's not even a good pun.- Their""?legs""? are""? exiting""?the EU? Brexit is a competition that can be won? I realise this isn""t the most important thing but c'lon. The reality of being a woman ""?by the numbers. Learn more", -3544,2017/3/28,http://www.huffingtonpost.com/2017/03/27/larry-nassar-sexual-abuse-allegations_n_15646642.html,"20 Years After Saying She Was Sexually Abused, A Child Gymnast Is Finally Believed",Larissa Boyce is one of more than 100 women who say famed doctor Larry Nassar abused them.,"Twenty years ago, Larissa Boyce says, she confessed to a gymnastics coach at Michigan State University that the school's lauded sports medicine doctor, Larry Nassar, had touched her inappropriately. Boyce, who was 16 at the time, was seeing Nassar for lower back pain. But during many of her appointments, he inserted his fingers into her vagina, she says. She was only a teen, but her gut told her the treatment didn""t make sense. So she told Kathie Klages, one of her instructors, about what was happening. But Klages downplayed her concerns, Boyce said in a recent phone interview with The Huffington Post. She told Boyce she must have misunderstood the procedure. Boyce, paralyzed with shame, concluded it must all be in her head. For two decades, that's what she continued to believe. Then, in September 2016, news broke that two former gymnasts, including an Olympic medalist, were saying they been sexually abused by Nassar. In the months since, more than 100 women have come forward with horrifying allegations of being molested by Nassar under the guise of medical treatment. The abuse is alleged to have occurred over the course of two decades, with some of the earliest reports dated in 1997, and the most recent in 2016. More than-80 women are suing Nassar, MSU, USA Gymnastics and other parties for failing to protect them from sexual abuse. (Both MSU and USA Gymnastics employed the doctor for about 20 years while the abuse is alleged to have occurred.) Nassar also faces criminal charges in state and federal courts, and is currently incarcerated on child pornography charges. His lawyer did not immediately respond to a request for comment.- As the complaints against Nassar pile up, they have revealed a disturbing pattern. In most cases, according to the allegations, an underage girl would come to Nassar with back or hip pain. She would be asked to lie facedown on the table. Nassar would penetrate her vaginally or anally with his fingers, without the use of gloves. For some patients, the alleged ""greatments""?occurred weekly, over long stretches of time. Boyce, now 36, is a mother of four and lives a 20-minute drive from MSU, where the alleged assaults took place. It appears she was among the first of Nassar's victims at that location. When she first heard the news of what Nassar had allegedly done to other girls, she was in denial. Then, she says, she got sick. ""I got shingles and I started losing all of my hair,""?she said. ""I think my body was reacting to all of this stuff that I had shoved down. Gradually, the more that I thought about it, the more things I remembered.""?In January, she joined a federal lawsuit against Nassar, MSU and USA Gymnastics,-under the pseudonym ""Jane BMSU Doe.""?But on Monday, she came forward with her name, shedding her anonymity in an effort to reduce the stigma around sexual assault. ""This should not be something that we are embarrassed of, because we didn""t do anything wrong,""?she said. ""I want people to stand for the truth, and just be able to feel comfortable enough to come forward and say ""This happened to me.""?Boyce started gymnastics when she was 5. As an adolescent, she trained in a youth gymnastics program at MSU, working out 16 to 20 hours a week.- She loved it ""?especially floor routines, where she got to incorporate dance.- ""When you do gymnastics, you get this sense of accomplishment, because you are overcoming your mind ""?how your mind tells your body you can""t do something,""?she said. ""It was pretty much my everything.""When she was 16, she slipped off a springboard and injured her back. Klages, who was the head women's coach at MSU, recommended that she seek treatment with Nassar. His reputation as a world-class gymnastics doctor preceded him, and Boyce was excited about the prospect. She knew he had treated Olympic athletes, and that any gymnast who was anyone went to him. ""He was kind of an idol to everyone in the gymnastics world,""?she said. Her mom accompanied her on her first few visits, and they were both impressed by how friendly and professional Nassar was, and by the photos on the walls of him with famous gymnasts. But once she started going alone, she says, the treatments changed. Nassar would allegedly ask her to disrobe and lie on her stomach. Then, she says, he would penetrate her with his fingers. ""It felt like it was sexual, but I remember justifying it in my mind ""?he's an Olympic doctor, he must know what he was doing,""?Boyce said. On some occasions, she says, Nassar would take off his belt, make grunting noises and appear visibly aroused. She recalls the lights being turned off at times. While she is unclear on the exact date, at some point in 1997 or 1998 she worked up the courage to tell Klages about what was happening. Instead of getting help, she says, she was humiliated. Boyce says that Klages brought her teammates into her office and asked them if they had ever been uncomfortable around Nassar, singling Boyce out. She told Boyce she could file a report, but that both Boyce and Nassar could face serious consequences. ""she said that she had known him for years, and couldn""t imagine him doing anything questionable, that I must be reading into what he was doing,""?Boyce said. Klages was suspended by MSU in February amid mounting allegations that she'ddownplayed athletes""?concerns about Nassar's alleged behavior. She has since resigned. When asked to comment on Boyce's claims, her lawyer,-Shirlee Bobryk,-said Klages would not be making any statements while litigation is pending. A press release from her lawyer in February said that Klages ""is extremely distressed by the accusations that have been made about her creating any sort of impediment to gymnasts reporting complaints of criminal sexual conduct or sexually inappropriate behavior.""?The next time Boyce saw Nassar for an appointment, he knew about her allegations, she said. He reassured her that what he was doing was a legitimate medical procedure, and proceeded to sexually abuse her again, she said. But this time, he was rough, and it hurt more than usual.-""It seemed like he was mad at me,""?she recalled. After the encounter with Klages, Boyce says, she stopped going to gymnastics as much. ""Everyone thought I was a liar,""?she said. ""I was intimidated, and I was afraid to do anything.""?She says the sexual abuse occurred on an almost weekly basis, and continued for two years. In the years afterward, she said, she convinced herself there was something wrong with her. Now, she is wracked with pain at the sheer number of girls who were allegedly abused. She wonders what would have happened if her own complaint had been taken more seriously. ""TSU, USA Gymnastics, they ignored the signs,""?she said. ""All of us girls who came forward to coaches and trainers ""?we tried to speak, we tried to stop it from happening, and we were silenced.""?No one from MSU has reached out to her since Nassar has been embroiled in lawsuits, she said. A spokesperson for MSU did not immediately respond to a request for comment. ""I think that either they can try to cover up what happened, or they could become a leader across the nation and show that they are going to accept and own up to their failures,""?Boyce said. ""I want to see them have integrity to make it right, and show that they care more about the survivors than saving face.""?For her part, Boyce says she is still coming to terms with having been betrayed by an adult whom she considered a formative part of her adolescence. ""there was such a loyalty that I felt towards him, because he was this godlike person in the gymnastics world,""?she said. ""He built a relationship that I thought was real. He gave me the feeling that he really did care about me as a person and not just as a patient.""?- Coming forward has started that healing process, she said. ""I felt like I had this dirty little secret, and it kind of eats at you,""?she said. ""I don""t have that anymore.""?______ Melissa Jeltsen covers domestic violence and issues related to women's health, safety and security. Tips? Feedback? Send an email or follow her on Twitter. ______ Related stories:", -3545,2017/3/28,http://www.huffingtonpost.com/marty-kaplan/blamer-in-chief-the-art-of-the-dodge_b_15648250.html,Blamer-In-Chief: The Art Of The Dodge,Trump is the consummate blame artist.,"""I blame myself ""?it was my fault, and I take full responsibility for it,""?said Donald Trump, not once, ever, in his entire life. Here's what else he didn""t say about the rout and ruin of repeal and replace: ""I was clueless about health care policy. Instead of reading my briefing books or even my own bill, I played golf. I bullsh*tted my way through every meeting and phone call. And when it was explained to me that this dumpster fire of a bill would break my promise that everybody's going to be taken care of much better than they are now, which was a huge applause line, by the way, I threw my own voters under the bus.""?In the wake of his Waterloo, instead of manning up, Trump blamed Democrats for not voting to strip health insurance from 24 million people, not voting to cut Medicaid by $880 billion in order to cut taxes by $883 billion and not voting to obliterate the signature legislative accomplishment of the Obama years. ""Look,""?he complained with crocodile bafflement to the ""new York Times,""?""we got no Democratic votes. We got none, zero.""?Yet not once had Trump or Paul Ryan asked a single Democrat what it would take to get them to support a bill. ""the good news,""?Trump said, seeing the sunny side of the catastrophe he predicts is coming, is that the Democrats ""now own Obamacare.""?Don""t blame me ""?it'll be their fault when it explodes, not mine. Trump blamed Republicans, too. Friday morning, when the bill was still in play, he tweeted that if the Freedom Caucus stops his plan, they would be allowing Planned Parenthood to continue. Friday afternoon, amid the wreckage, Trump told the ""Washington Post's Robert Costa that he was just an innocent bystander. ""there are years of problems, great hatred and distrust""?in the Republican Party, ""and, you know, I came into the middle of it.""?White House aides, bravely speaking without attribution, blamed Ryan for snookering the rookie-in-chief into tackling Obamacare before tax reform. Trump himself told Costa, ""I don""t blame Paul.""?He repeated it: ""I don""t blame Paul.""?Then again: ""I don""t blame Paul at all.""?The laddie doth protest too much, methinks. By tweet time Saturday morning, clairvoyantly touting Jeanine Pirro's Saturday night Fox News show, Trump had found a surrogate to stick the knife in Ryan without his fingerprints on it. ""This is not on President Trump,""?Pirro said, avowing that ""no one expected a businessman,""?""A complete outsider,""?to understand ""the complicated ins and outs of Washington.""?No, it's on Ryan, she said. Ryan must step down. Blame precedes politics. In Western civilization's genesis story, Adam blamed Eve for tempting him, and he blamed God for Eve. But America's genesis story contains a noble, if apocryphal, counter-narrative: When George Washington's father asked him who chopped down the cherry tree, the future father of his country didn""t blame someone else ""?he copped to it. That's the legacy Harry Truman claimed when put ""the buck stops here""?sign on his Oval Office desk. But Trump is the consummate blame artist, a buck-passer on a sociopathic scale. He kicked off his campaign by blaming Mexico for sending us rapists and stealing our jobs. He blamed Hillary Clinton for founding the birther movement. He blamed Obama for founding ISIS. He blamed Obama's Labor Department for publishing a ""phony""?unemployment rate. He blamed three million illegal voters for losing the popular vote. He blamed the botched raid on Yemen on U.S. generals. When U.S. District Judge James Robart ruled against his Muslim travel ban, he blamed Robart for future terrorism: ""If something happens, blame him and court system.""?He blamed ""Hake news""?for treating Michael Flynn, ""A wonderful man""?whom he fired, ""lery, very unfairly.""?He blamed Obama for wiretapping Trump Tower. He made his spokesman blame British intelligence for carrying that out. When GCHQ called that a crock, Trump played artful dodger: ""All we did was quote""?a very talented lawyer on Fox. And so you shouldn""t be talking to me, you should be talking to Fox.""?Obamacare is imperfect but fixable. But Trump wants to bomb it, not improve it. He wants to light the fuse, but to blame Democrats for exploding it. Trump could shore up the insurance exchanges that cover 10 million Americans by marketing them when enrollment opens again in November ""?but I bet he won""t. He could instruct government lawyers to appeal a lawsuit halting federal subsidies for co-payments and deductibles of low-income enrollees that House Republicans won last year ""?but I bet he won""t. On the other hand, he has the power to narrow the essential benefits Obamacare requires insurers to provide by, say, limiting prescription drug coverage and lowering the number of visits allowed for mental health treatment or physical therapy ""?and I bet he will. Will Trump get away with it? He's spent a lifetime banging his highchair and blaming the dog for his mess. No wonder he calls the free press fake news; no wonder he calls citizen activists paid protesters. You call someone who gets away with blaming others ""unaccountable.""?You know what the antonym of that is? Impeachable. This is a crosspost of my column in the Jewish Journal, where you can reach me if you like at martyk@jewishjournal.com. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3546,2017/3/28,http://www.huffingtonpost.com/2017/03/27/bachelorette-party-confessions-that-will-make-you-say-eep_n_15646420.html,10 Bachelorette Party Confessions That Will Make You Say 'Eep!',Let's just say things got a little out of hand.,"The bachelorette party should be a fun, celebratory weekend for the bride and her best friends. Unfortunately, things don""t always go as planned. Below, 10 people on the secret-sharing app Whisper get honest about their bachelorette party experiences.- We'r basically your best friend... with better advice. Learn more", -3547,2017/3/28,http://www.bbc.co.uk/news/uk-39367339,Rape victim says judge 'right about women's drunkenness',"A rape victim whose attack led to a judge saying drunk women were putting themselves in danger has defended the comments, saying the judge was ""right"".","A rape victim whose attack led to a judge saying drunk women were putting themselves in danger has defended the comments, saying the judge was ""right"". Megan Clark, 19, was raped by a man she met in Burger King when she was drunk after a night out in Manchester. The trial sparked controversy after the judge said the drunken behaviour of some women was putting them at risk. Miss Clark told the Victoria Derbyshire programme the judge told women to ""be careful"", saying it was ""good advice"". The teenager, who waived her right to anonymity to speak to the programme, said she took the judge's comments in ""a positive way"", adding that she did not believe she was ""victim-blaming"". ""She was right in what she said,"" Miss Clark said, in her first interview. Last month, Ricardo Rodrigues-Fortes-Gomes, 19, was found guilty at Manchester Crown Court of two counts of rape last July. The court heard how he ignored Miss Clark's screams while he attacked her. A witness who rang the police also filmed the attack on a mobile phone and Rodrigues-Fortes-Gomes was sentenced to six years' behind bars. A second man was found not guilty. Miss Clark had been drinking lager and vodka before the attack and had inhaled the party drug amyl nitrite. At the end of the trial, Judge Lindsey Kushner said that ""as a woman judge"" she felt compelled to plead with women to protect themselves from predatory rapists who ""gravitate"" towards drunken females. The judge - in her last trial - said women were entitled to ""drink themselves into the ground"", but their behaviour was also putting them in danger. Her comments were described by campaigners as ""outrageous"" and ""misguided"". Miss Clark told the programme she had initially blamed herself. ""I [now] know it wasn't my fault. It's never the victim's fault - they aren't the problem regardless of what I was doing. ""I felt I put myself in that situation. I need to be more careful."" She added: ""I think the judge was using my case, it was her last one, and she wanted to make a point."" Miss Clark said she felt ""judged"" when she told people she had been raped, saying she felt some people blamed her for the attack. ""There is definitely still a stigma. Victim-blaming is such a big thing. I did tell people what happened and I felt judged after it. ""People blamed my behaviour. That's why people don't talk about [rape]."" She said she could see why people do not report rape and do not want to go through a trial. Having gone through the legal system, Miss Clark said she was disappointed with the end result and the sentence handed down by the judge. ""I am angry and it feels so unfair. So many people go through it, people get raped, we need to deal better with it."" She said she would not have reported the crime if it was not for the fact a witness was filming the rape, footage she had to watch before being cross-examined in court. ""It was pretty horrible to watch. It was different to how I remembered it. But it wasn't nice to watch."" And Miss Clark said she would not go through the legal process again - but urged other victims to report rape. ""My message is don't be discouraged by the system letting us down, or people being judgmental. That will happen regardless. ""We all know it's not our fault. I would encourage people to report it."" Watch the Victoria Derbyshire programme on weekdays between 09:00 and 11:00 on BBC Two and the BBC News Channel.", -3548,2017/3/28,http://www.bbc.co.uk/news/uk-39416002,London attacker's wife condemns actions,"The wife of Westminster attacker Khalid Masood has said she is ""saddened and shocked"" and condemned his actions.","The wife of Westminster attacker Khalid Masood has said she is ""saddened and shocked"" and condemned his actions. In a statement issued through police, Rohey Hydara expressed her condolences to the families of the dead and wished a ""speedy recovery"" to those injured. Masood killed three people when he drove a car into pedestrians last Wednesday. He then fatally stabbed a police officer before being shot dead. Inquests into the deaths of his four victims will be opened on Wednesday. Ms Hydara - believed to be Massod's second wife - went on to ""request privacy for our family, especially the children, at this difficult time"". Her comments came after Masood's mother, Janet Ajao, said she had ""shed many tears for the people caught up in this horrendous incident"". Masood, 52, who is reported to have at least three children from his two marriages, drove his hired car into people on Westminster Bridge and then stabbed PC Keith Palmer outside Parliament. His other victims were teacher Aysha Frade, 44, who worked at a London sixth-form college, US tourist Kurt Cochran, 54, and retired window cleaner Leslie Rhodes, 75, from south London. Thirteen people are understood to remain in hospital. The so-called Islamic State group has said it was behind the attack. But police say no evidence has been found of links between Masood and IS or al-Qaeda.", -3549,2017/3/28,http://www.bbc.co.uk/news/business-39415681,Tesco fined ?129m for overstating profits,Tesco has agreed to pay a fine of ?129m to avoid prosecution for overstating its profits in 2014.,"Tesco has agreed to pay a fine of ?129m to avoid prosecution for overstating its profits in 2014. The supermarket giant has reached a deferred prosecution agreement with the Serious Fraud Office (SFO) after a two-year investigation. The SFO said Tesco had co-operated with the investigation and had undergone an ""extensive"" period of change. Tesco also said it had accepted a finding of ""market abuse"" from the Financial Conduct Authority (FCA). Between February and September 2014, Tesco gave a false account of its performance, leading to a trading statement on 29 August 2014 that gave a rosier view of its profits than was the case. Tesco originally estimated it had overstated profits by about ?250m, but this was subsequently revised up to ?326m. The FCA, has, for the first time, insisted a company compensate investors, although it has not issued its own penalty. Tesco says it will compensate those who bought shares or bonds between 29 August and 19 September that year at a cost of about ?85m. Tesco's current chief executive, Dave Lewis, said: ""Over the last two-and-a-half years, we have fully co-operated with this investigation into historic accounting practices, while at the same time fundamentally transforming our business. ""We sincerely regret the issues which occurred in 2014 and we are committed to doing everything we can to continue to restore trust in our business and brand."" Tesco expects to take an exceptional charge of ?235m to cover the penalty, compensation scheme and related costs. The charge will be taken in its results for the 2016-17 financial year, which are due to be published on 12 April.", -3550,2017/3/28,http://www.bbc.co.uk/news/health-39413915,NHS funding review for gluten-free food,"Suncream, cold remedies and gluten-free food could no longer be available on the NHS in England under a possible crackdown on ""low value"" medicines.","Suncream, cold remedies and gluten-free food could no longer be available on the NHS in England under a possible crackdown on ""low value"" medicines. NHS England announced a review after local health bosses identified ?400m of spending they believed had little or no clinical value. The proposals could see an outright ban or tighter restrictions on some products being prescribed by GPs. An initial list of 10 products has been drawn up by NHS Clinical Commissioners. A number of them are available over-the-counter at a lower price than the cost to the NHS of prescribing them. The products include omega 3 and fish oils, travel vaccines and gluten-free foods as well as a range of drugs for which there is said to be limited evidence. Documents submitted to NHS England - and seen by the BBC - argue that the prescribing of gluten-free products dates back to the 1960s when there was not the choice there is now in supermarkets and shops. Cutting back on prescriptions for the 10 products could save the NHS ?100m a year, the document says. NHS Clinical Commissioners represents local health managers who are in charge of spending. Source: NHS Clinical Commissioners NHS Clinical Commissioners - which represents local health managers who are in charge of spending - also highlights other products, including suncream, cough and cold remedies and indigestion and heartburn medicines which could bring the saving to ?400m a year. A spokesman for NHS England said: ""The increasing demand for prescriptions for medication that can be bought over the counter at relatively low cost, often for self-limiting or minor conditions underlines the need for all healthcare professionals to work even closer with patients to ensure the best possible value from NHS resources."" The news comes ahead of a major announcement by NHS England later this week on the future of the health service.", -3551,2017/3/28,http://www.bbc.co.uk/news/world-us-canada-39414640,Exhausted runner helped to finish line in US race,,Other participants in the Philadelphia Love Run gave her a helping hand - or two., -3552,2017/3/28,http://www.bbc.co.uk/news/business-39409313,New ?1 coin's 'hidden' security feature,The new 12-sided ?1 coin - which comes into circulation on Tuesday - has a hidden security feature to make it difficult to counterfeit.,"The new 12-sided ?1 coin - which comes into circulation on Tuesday - has a hidden security feature to make it difficult to counterfeit. It is thought to involve material inside the coin itself which can be detected when electronically scanned by coin-counting or payment machines. But officials at the Royal Mint have not released any further details. Other security measures include an image that works like a hologram, and micro-sized lettering inside both rims. As a result, the Mint claims it will be the ""most secure coin in the world"". It will replace the existing ?1 coin, of which about one in 40 are thought to be fake. ""It's been designed to be fit for the future, using security features that aim to safeguard our currency, and currencies around the world, for years to come,"" said Adam Lawrence, chief executive of the Royal Mint. The old coin will remain legal tender until 15 October this year, after which shops are under no obligation to accept it. After that date, consumers will have to take the coin to a bank to exchange it. Supplies of the new coin have initially been delivered to 33 banks and post offices around the UK (see list below). Thickness: 2.8mm - thinner than old coin Weight: 8.75g - lighter than old coin Diameter: 23.43mm - larger than old coin Number to enter circulation: 1.5 billion - about 23 per person. Old ?1 coins will be melted down to make new ones Outer ring: gold-coloured, made from nickel-brass Inner ring: silver-coloured, made from nickel-plated alloy To start with, supplies of the new coin have been delivered to 33 banks and post offices throughout the UK, including seven in Scotland, three in Wales and two in Northern Ireland. They will gradually become more widespread over the next few weeks. Lloyds Bank, which has the biggest branch network in the UK, said most of its customers would start to see the coins from Wednesday this week. The coins will be available on Tuesday in the following towns and cities:", -3553,2017/3/28,http://www.bbc.co.uk/news/uk-politics-39410214,MPs deny foreign aid cash being 'wasted',"MPs have denied accusations that a lot of foreign aid cash is ""wasted"" and have said that the government should do more to publicise its good work.","MPs have denied accusations that a lot of foreign aid cash is ""wasted"" and have said that the government should do more to publicise its good work. The International Development Committee said money should be allocated ""on evidence rather than media coverage"". Some programmes seemed to have been closed after bad headlines despite performing well during internal assessments, the committee said. The government said aid spending had to be ""accountable"". It said it would not ""shy away"" from ""tough messages on reform"". In the report, MPs backed the decision to commit to spending 0.7% of GDP on foreign aid. The 0.7% target, which was enshrined in law in 2015, has been criticised by some MPs and some aid projects have faced fierce criticism in media coverage. The committee said it understood concerns that foreign aid, unlike most domestic spending, is protected. But the MPs supported the move, saying ""we have no doubt that there is sufficient need in the world for it to be necessary"". The report said ""poor or wasteful spending"" appeared to be no more of a problem for the department for international development than it was for other parts of Whitehall. It said the department was subject to ""intense media scrutiny and criticism"". While some of this had helped to uncover serious issues in UK aid spending, much had been ""misleading about the nature of aid spending or about the contents of our own reports"", the committee said. ""The media has a responsibility to be accurate and contextual given its role in influencing public understanding and opinion,"" it added. The committee urged the department to ""continue improving its communications and to be more proactive in publicising when it is doing good work"". It also said there had been a ""shift in strategy"" following the appointment of current International Development Secretary Priti Patel. It highlighted how she had spoken of aid money being ""stolen"" and ""wasted on inappropriate projects"" but when asked to explain she ""could not put a figure or a percentage on the amount which she thought was being wasted"". The committee urged Ms Patel to ""lead the department in a way which displays the value for money and great impact of good UK aid spending"". It said: ""While we commend and support the secretary of state's focus on improving the quality of spending, we think that the level of wasteful spending in the department is minimal. ""We would urge the secretary of state to ensure that assessments of what is and is not wasteful spending are based on evidence and robust reviews."" The committee also said the department had ""changed its tone"" since the Brexit vote last June, with a greater emphasis on economic development and trade. It said this was an ""important aspect of a comprehensive approach to poverty reduction"" but that UK aid cash had to remain ""completely untied"" from trade. In response to the report, the department said: ""At a time when the world is facing numerous unprecedented humanitarian crises, saving lives depends on using UK aid in the most effective and accountable way possible."" It said the secretary of state's job was to ""challenge the aid system to do more for the world's poorest"". It added: ""Britain's place in the world is enhanced by our commitment to UK aid, but we should never shy away from delivering the tough messages of reform that will make a real difference on the ground.""", -3554,2017/3/28,http://tass.com/defense/937859,Russian reconciliation center delivers over 13 tonnes of food to refugees near Aleppo,"Thousands of refugees, who were forced to leave their homes, stay at the camp in the outskirts of Manbij","ALEPPO, March 28. /TASS/. Staff members of the Russian Center for Reconciliation of the Warring Parties in Syria handed out 13.5 tonnes of food at a refugees""?camp near Manbij, the center's head in the Aleppo province Sergey Rachuk said. ""We try to show by any means, gently and unobtrusively, but at the same time confidently that Russia is here not to conquer anything and oppress, but to provide assistance to Syria and ordinary people. Everyone who is in need here should receive this aid,"" Rachuk said. Thousands of refugees, who were forced to leave their homes, stay at the camp in the outskirts of Manbij. The Russian military delivered foodstuffs for them, including sugar, canned meat and tea. The number of settlements joining the ceasefire in Syria grows every day, the center said.", -3555,2017/3/28,http://tass.com/world/937858,"Russian, Iranian presidents to discuss broader cooperation between two countries",,"MOSCOW, Moscow 28. /TASS/. Russian President Vladimir Putin holds talks with Iranian President Hasan Rouhani in Moscow on Tuesday. The Kremlin press service said the two presidents hope to consider the entire spectrum of Russian-Iranian cooperation. ""Special attention will be given to the promulgation of trade and investment, particularly in the context of large joint projects in the energy sector and transport infrastructures,"" it said. Putin and Rouhani are expected to sign a package of bilateral documents. The Iranian side said earlier they concern telecommunications, technologies, energy, roads, urban development, standardizing, and sports. Ministers of foreign affairs, oil, industries, trade, information and communication technologies, the president of the Central Bank, and a group of business executives are accompanying Rouhani on the trip to Moscow. On the eve of the visit to Moscow, Rouhani mentioned an impressive potential for Russian investors in the country's energy sector. ""A number of oil and gas deposits have been offered to Russian companies,"" he said in a statement for the media. Earlier reports said Iran planned to put up 52 hydrocarbon deposits for a bidding contest for international companies. The number included 29 oilfields and 23 natural gas deposits. Reports named South Azadegan, Shangule, Ab-Teimour, Aban, Peidar, Chemshe Hosh, and Dehloran. Also, the Iranian authorities put up eighteen exploration blocks for the bidding. The list of foreign companies qualified for the bidding contains 29 names, including the Russian gas giant Gazprom and the oil industry major Lukoil. The Russian Ambassador in Teheran, Levan Djagarian told TASS in a recent interview other promising projects in the energy sector existed, too. For instance, construction of two power generating units at a thermal power plant in the Iranian province of Hormozgan is to begin soon. Djagarian said he hoped the necessary funds of 1.2 billion would be allocated in the form of an export loan within the next few months. He said the situation was the same with Russia's loan of 1.0 billion euro for adaption of a railway between the stations of Garmsar and Inche Burun to electric traction. All the financial formalities have been settled and only the solution of technical issues remains, Djagarian said. Russia helped Iran build power unit No. 1 at the Busher nuclear plant, and the ceremony of laying down power units No. 2 and No. 3 of the same plant took place in 2016.", -3556,2017/3/28,http://tass.com/economy/937857,Russia's National Media Group makes public plans to get into new markets,Russia's largest holding company has launched rebranding to underline the priorities of its new strategy,"MOSCOW, March 28. /TASS/. Russia's largest holding company, the National Media Group (NMG) has made public its plans to get into new segments of the media market in line with its revamped strategy that aims to build up capitalization, sources in the company told TASS. The NMG that incorporates Channel One Russia, Ren TV, Channel Five and the daily Izvestia has launched rebranding to underline the priorities of its new strategy and the company's role in the development of digital-era technologies and products. ""We'r faced with a big set of tasks today as regards the intensification of synergy in the operation of our assets and implementation of our capabilities in creating, distributing and monetizing the entertaining and informational content in all the user environments,"" said NMG Director General Olga Paskina. ""Also, we plan to enter new segments of the market for building up our company's capitalization."" The NMG has been developing relations of partnership with foreign corporation in recent years in order to proliferate international channels""?broadcasting to Russia. In 2015, it set up a joint venture with Discovery Communications, which runs the Russian channels like Discovery Networks, Eurosport and Turner.", -3557,2017/3/28,http://tass.com/defense/937855,Russian experts to inspect defense facility in Romania as part of trus-building measures,"In the course of the inspection, a group of experts will visit the defense facility at the site of its habitual location in times of peace","MOSCOW, March 28. /TASS/. Russian experts will inspect on Tuesday a defense facility in Romania in line with provisions of the 2011 Vienna document on trust-building measures, Sergei Ryzhkov, the director of the Russian national center for reducing nuclear threat said on Tuesday. ""The assessment visit will take place on March 28, 2017, and will take one day,"" he said. ""Assessments of the kind pursue the goal of verifying information on defense forces and plans for the deployment of the main armaments and technologies."" In the course of the inspection, a group of experts will visit the defense facility at the site of its habitual location in times of peace. The local commanders are expected to provide information on manpower and on the main armament systems deployed there.", -3558,2017/3/27,http://tass.com/world/937854,Man accused of involvement in militant groupings extradited from Serbia to Russia,A criminal case for Timur Emirbekov citing his involvement in an armed conflict on the side of militant groupings was instituted in June 2015,"MOSCOW, March 28. /TASS/. Serbia has extradited to Russia Timur Emirbekov, who is accused of involvement in paramilitary units, the Russian Interior Ministry said at its homepage. ""Interpol bureau staff has extradited Timur Emirbekov, who is accused of crimed punishable under Part II, Article 208 of Russia's Criminal Code,"" said Irina Volk, the ministry's official spokesperson. If proven, a crime falling under this clause of the Criminal Code can bring on from eight to fifteen years in jail. A criminal case for Emirbekov citing his involvement in an armed conflict on the side of militant groupings was instituted in June 2015. He was detained in the course of search on the territory of Serbia. Officers of Interpol's national bureau in Russia delivered Emirbekov to Moscow on Tuesday.", -3559,2017/3/28,http://tass.com/sport/937853,Tour operators to check St Petersburg's readiness for receiving football fans,"The committee for tourism believes the FIFA World Cup 2018 will draw from 400,000 to 2 million fans and tourists to the city","St PETERSBURG, March 28. /TASS/. Tour operators and members of sports associations, who have gathered here for the 8th inter-industry week titled ""�St Petersburg: Russia's Cultural, Tourist and Football Capital. A City on the Threshold of FIFA World Cup""? are expected to assess the standards of hospitality industry and the condition of sport facilities in the city. Officials at the St Petersburg government's committee for tourism told TASS designing of signature style for the World Cup 2018 championship, proposals for the business program of the Confederations Cup and the World Cup, and the plans for holding a sports forum in St Petersburg will the central issues for discussion at roundtables and expert sessions. ""The plenary session will be devoted to assessing the readiness of the city for the World Cup,"" a spokesperson for the organizing committee said. ""Experts will assess the stages of readiness of sports facilities, the transport infrastructure, urban development, security, the functioning of fan zones, volunteer's assistance, and other aspects."" The chairman of the city's committee for tourism, Andrei Mushkaryov told TASS earlier, St Petersburg hotels had the stock of certified guest rooms for about 30,000 people while the minimum requirement was the rooms for 7,500 people. The city tour industry is full ready for hosting the World Cup, he said. The city authorities are planning specialized training courses for the personnel of about 600 cafes and restaurants located near the sites where World Cup games will be held. The national association of cookery experts has made public its plans to devise a special menu for the World Cup that will help the guests to familiarize themselves with Russia's culinary tradition. The committee for tourism believes the FIFA World Cup 2018 will draw from 400,000 to 2 million fans and tourists to the city. The World Cup events will last from June 14 through to July 15, 2018, and will embrace twelve stadiums located in eleven Russian cities - Moscow, St Petersburg, Kazan, Nizhny Novgorod, Saransk, Kaliningrad, Volgograd, Yekaterinburg, Samara, Sochi, and Rostov-on-Don.", -3560,2017/3/28,http://tass.com/world/937852,Serbia's PM believe Russia concerned by instability in Balkans,Aleksandar Vucic thanked Vladimir Putin for the all-round support Moscow offered to Belgade,"BELGRADE, March 28. /TASS/. Russia is concerned by tensions in the Balkans, Serbian Prime Minister Aleksandar Vucic told Pink TV channel on Monday after talks with Russian President Vladimir Putin in Moscow. ""I told him there's a permanent danger and permanent pressure inside many countries in the region and there is a doubtless presence of various external factors, which exert different influences and pursue different interests,"" Vucic said. ""Serbia has managed to get over certain elements of instability and it was the most stable country in the region until recently,"" he said. ""I think they are very, very much concerned."" At the meeting, Vucic thanked Putin for the all-round support Moscow offered to Belgade. The two men discussed the deepening of economic cooperation and industrial cooperation in the sphere of mechanical engineering. In addition to it, they gave attention to developments in the Balkans where a tendency towards aggravation of the situation has taken a clear outline in recent months. They also discussed collaboration in the field of defense technologies.", -3561,2017/3/28,http://tass.com/economy/937848,Russia's Sberbank selling its Ukrainian affiliation to Latvian-Belarusian consortium,"British national Said Gutseriyev has become the majority shareholder of the Latvian-Belarusian consortium, which has purchased the Ukrainian affiliation of Sberbank","MOSCOW, March 28. /TASS/. Russia's largest bank, Sberbank, has signed an agreement on selling 100% shares in its Ukrainian affiliation to a consortium that comprises a Latvian bank and a Belarusian company, the bank said in a press release on Monday. ""A consortium of investors is purchasing 100% stake PAO Sberbank Ukraine, which is a filial company of PAO Sberbank. The consortium will include Norvik Banka of Latvia and a Belarusian private company,"" it said. ""An appropriate legally binding agreement was signed on Monday."" The closure of the transaction is expected before July 2017 after its endorsement by financial and antitrust regulators. The press release said the Ukrainian affiliation had enough reserves to meet the obligations to private and corporate customers likewise. ""We hope a decision to sell our filial bank will facilitate the unblocking of its offices and resumption of regular operations and will make it possible for the customers to use without hindrances the services of one of Ukraine's most stable and efficient banks and will lay down the groundwork for its further development,"" the press release said. British national Said Gutseriyev has become the majority shareholder of the Latvian-Belarusian consortium, which has purchased the Ukrainian affiliation of Sberbank, through a Belarusian company he owns, Latvia's Norvik Banka, the other party to the consortium said in a report. ""Said Gutseriyev, a national of the UK, and the Belarusian company he owns has become the majority shareholder of the new consortium,"" the bank said. ""The transaction will enable the Ukrainian customers to enjoy the services based on the European principles of quality, transparency and accessibility and to maintain the levels of technology created by the Sberank of Russia."" Along with the main transaction, Norvik Banka, Latvia's bank number seven in terms of assets, has announced a range of steps to cut down its presence in the Russian banking sector - a measure it hopes will help raise the efficiency of investment and eliminate a number political risks arising from the geography of its operations. The report quoted Said Gutseriyev as saying Sberbank Ukraine had a perfect structure, as its previous owner, Sberbank of Russia, had invested hundreds of millions of dollars in the platform of the affiliation. Gutseriyev also said his own experience prompted him that by taking the decision to participate in the consortium the constituent parties made farsighted and promising investment, while the bank as such would be able to make a great leap forward and to implement many advanced projects in Ukraine and in neighboring European countries. Under the pressure of nationalists blocking the Ukrainian affiliations of several banks belonging to Russian lending institutions, President Pyotr Poroshenko imposed sanctions on five banks with Russian funding - Sberbank, Prominvestbank, VTB, BM Bank, and VS Bank - for a period of twelve months as of March 16. The sanctions ban the withdrawal of assets outside of Ukraine, the payment of dividends, as well as the return of interbank deposits and loans and monies from the correspondent accounts of subordinated debts. The restrictions, however, did not embrace transactions between Ukrainian residents and their agents who have accounts in the parent companies.", -3562,2017/3/28,http://www.dw.com/en/south-african-anti-apartheid-icon-ahmed-kathrada-dies/a-38152873?maca=en-rss-en-all-1573-rdf,South African anti-apartheid icon Ahmed Kathrada dies,"The close colleague of Nelson Mandela spent more than twenty-six years of his life in prison. A former advisor in the first African National Congress (ANC) government, Kathrada criticized the party later in life.","Kathrada, a life-long leading activist in the fight against apartheid, died in a Johannesburg hospital on Tuesday. He had been admitted to the hospital earlier in March due to blood clotting on his brain. After tweeting about Kathrada's deteriorating condition on Monday, the Ahmed Kathrada Foundation announced the activist's-death on Twitter around 6 a.m. local time (0400 UTC). ""This is great loss to the ANC, the broader liberation movement and South Africa as a whole,"" head of the Ahmed Kathrada Foundation Neeshan Balton said in a statement. ""'Kathy was an inspiration to millions in different parts of the world."" Affectionately called ""Uncle Kathy"" by his supporters, Kathrada dedicated a large portion of his life-to fighting-the system of institutionalized segregation in South Africa that lasted from 1948 to 1991. He spent over 26 years of his life in prison, many alongside his fellow activist Mandela on Robben Island. ""Comrade Kathy was a gentle, humane and humble soul,"" said Derek Hanekom, a former fellow activist and the current Tourism Minister.""He was a determined revolutionary who gave his entire life to the liberation struggle in our country."" Life-long activism, behind and beyond bars Kathrada was born to Indian immigrant parents on August 21, 1929, in a small town in South Africa's northwestern Schweizer-Reneke province. Politically activity from his early teenage years, Kathrada was arrested at age 17 after participating in a passive resistance activites that opposed-discrimination against Indian South Africans. After the ANC was banned 1960, Kathrada became a member of party's underground armed wing, Umkhonto we Sizwe (""The Spear of the Nation""). Police arrested him again in July 1963 during a-raid on-a secret activist reunion at Liliesleaf Farm in Rivonia. After the famous Rivonia trial, Kathranda was sentenced alongside eight others, including Mandela, to life imprisonment and hard labor on Robben Island. Kathrada and then German Federal President Roman Herzog tour Robben Island While in prison, Kathrada earned four university degrees. The ban against the ANC was lifted shortly after Kathrada's release from prison on October 15, 1989, at age 60. Following the end of apartheid, Kathrada served as a parliamentary counselor from 1994 to 1999-in the first ANC government headed by President Mandela. In 1997, he also became the chairperson of the Robben Island Museum Council, a role he held until 2006. In the years preceding his death, Kathrada became a vocal critic of President Jacob Zuma and his ANC government,publishing a letter in April 2016 that called-for the scandal-ridden president to resign. cmb/rc (AFP, AP)", -3563,2017/3/28,http://www.dw.com/en/hungary-opens-shipping-container-camp-for-refugees/a-38152515?maca=en-rss-en-all-1573-rdf,Hungary opens shipping container camp for refugees,"Every asylum seeker in Hungary, except for young children, will be housed in shipping container camps along the border. Only unaccompanied children are exempted from detention.","Hungary was due to begin detaining asylum-seekers in shipping-container camps on its southern border with Serbia on Tuesday. Asylum-seekers entering Hungary as well as those already in the country will be confined in camps while their applications are processed. A statement by the interior ministry said the country's prison service installed 324 shipping container homes at two camps. ""The border protection agencies are fully prepared for the entry into force of the reinforced legal border closure on March 28,"" said a statement by the interior ministry. ""The purpose of the restrictions is to prevent migrants with an unclear status from moving freely around the territory of the country and the European Union, and to thereby reduce the security risk of migration,"" the statement said. Only unaccompanied children under the age of 14 were exempted from mandatory detention in the border camps. Detainees would receive access to beds, bedding, personal hygiene packages, lockers, continuous hot water, toilets, mass media and telecommunication equipment and religious rooms, according to the statement. They would receive three meals a day (five meals a day for children under the age of 14) and fruit and dairy products for expectant mothers, mothers with young children and children under the age of 14 years, according to the statement. The United Nations and rights groups such as Amnesty International condemned Hungary for failing to meet Hungary's international obligations to asylum-seekers when it passed a law earlier this month that led to the camps' development. Hungary's prime minister says tough border policies are justified given fears of Turkey reneging on a deal to stop the flow of asylum seekers Prime Minister Viktor Orban, who took-a hard-line anti-immigration stance, said the bill was in response to recent terror attacks in Europe carried out by migrants. Hungary once detained all asylum applicants but ended the practice in 2013 under pressure from Brussels, the UN refugee agency and the European Court of Human Rights. The UNHCR said systematic detention would ""have a terrible physical and psychological impact on women, children and men who have already greatly suffered"". Refugee rights group the Hungarian Helsinki Committee said 400 asylum-seekers housed in the country's internal camp network faced relocation to the border camps. A second ""smart fence"" complete with night cameras, heat and movement sensors, and multilingual megaphones warning against crossing the barrier was also under construction, with completion scheduled by May. aw/ (AFP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZDFm", -3564,2017/3/28,http://www.dw.com/en/britain-s-new-1-pound-coin-goes-into-circulation/a-38152788?maca=en-rss-en-all-1573-rdf,Britain's new 1-pound coin goes into circulation,"Just before officially triggering the Brexit process, Britain is marking the launch of a new 1-pound coin with a 12-sided shape. It's believed to be one of the most beautiful and most secure coins in the world.","Britain's new 1-pound coin with the symbols of England, Scotland, Wales and Northern Ireland goes into circulation as of Tuesday on the eve of the launch of a Brexit process that has put national unity in doubt. The 12-sided (dodecagonal) coin is the first change to its shape since its introduction back in 1983. Britain's Finance Ministry said the new coin would be ""the most secure of its kind in the world,"" making it easier to prevent a rise in counterfeits. The new 1-pound coins are thinner, lighter and slightly bigger than the old ones and have a hologram-like image that changes from the pound symbol to the number ""1"" when viewed from a different angle. Symbol of unity? ""Staying ahead of sophisticated counterfeiters remains a constant challenge, and this coin helps in the battle,"" Royal Mint chief Adam Lawrence said in a statement. Article 50 of the Treaty of Lisbon gives any existing member of the European Union the right to quit unilaterally and outlines the procedure for doing so. It gives the state concerned two years to negotiate a deal for its exit. Once Article 50 is triggered, it cannot be stopped, except by the unanimous consent of all member states. There are five elements in Article 50. They state that the exiting country must notify the European Council formally and that it is given a two-year period to reach an agreement. Article 50 also states that the country concerned cannot take part in EU's internal discussions about its departure. The exit deal must be approved by a ""qualified majority"" and must also get the backing of MEPs. The UK decided in favor of leaving the EU in a referendum in June 2016. After lengthy parliamentary debates and legal procedures, Prime Minister Theresa May looks all set to send a formal letter of notification to EU President Donald Tusk on March 29, which will trigger Article 50. Officials in Brussels have already outlined a divorce bill for Britain of between 55 and 60 billion euros. The EU is expected to give a first response later this week. A summit of EU leaders on April 29 is then to lay down guidelines for the Brexit talks, which are expected to start in May or June. The hardest part of the negotiations will be determining the status of more than a million Britons living in other parts of the EU and of some 3 million EU citizens in Britain, and working out trade details. By autumn this year, the UK government is expected to introduce legislation to leave the EU and put all existing EU laws into British law - the Great Repeal Bill. The possible move will annul the 1972 European Communities Act (ECA), which gives EU law instant effect in the UK, and give parliament the power to absorb parts of EU legislation into UK law, scrapping elements it does not want to keep. EU leaders have said they want to conclude the talks within 18 months to allow the terms of the exit to be ratified by UK and the European Parliaments as well as the EU states. If no agreement is reached in two years and no extension is agreed, the UK automatically leaves the EU and all existing agreements. The fifth paragraph of Article 50 raises the possibility of a state wanting to rejoin the EU after having left it. This would be considered under Article 49. Author: Aasim Saleem It's estimated that around 3 percent of the outgoing round-shaped coins are fakes, with a total of 50 million faked coins in circulation. The old 1-pound coins will cease to be legal tender on October 15. It's believed that roughly 400 million of the old coins are still in piggy banks across the nation. The new, dodecagonal coin shows Queen Elizabeth II's portrait on the obverse side, while England's rose, Scotland's thistle, Wales' leek and Northern Ireland's shamrock are on the other side. hg/jd (dpa, AFP) -", -3565,2017/3/28,http://www.dw.com/en/ferocious-cyclone-debbie-batters-north-eastern-australian-coast/a-38152242?maca=en-rss-en-all-1573-rdf,Ferocious Cyclone Debbie batters north-eastern Australian coast,A potentially devastating cyclone is bringing heavy rainfall and hurricane-force winds to coastal areas of north-eastern Australia. Authorities are urging people to get out of the way of Cyclone Debbie.,"Hundreds of kilometers of coastline along the Australian state of Queensland have been declared a danger zone as-Cyclone Debbie bears down in the region. Authorities have warned a tidal surge could inundate low-lying homes. The storm was upgraded overnight to category four, one level below the most dangerous wind speed level. Debbie's force has already been felt in the Great Barrier Reef and Whitsunday Islands, with wind gusts of more than 220 kilometers (135 mph) per hour, forcing tourists to shelter-in their locked-down hotels. Tens of thousands of people have been evacuated from the region and more than 20,000 homes are without electricity. Authorities have reported damaged roofs and trees ripped out of the ground. ""We're getting some reports already of roofs starting to lift, including at some of our own facilities in the Whitsundays,"" Queensland Deputy Police Commissioner Stephan Gollschewski said. He told national ABC broadcaster that Debbie would remain a category three storm for some 18 hours after crossing the coast. A 'monster' Queensland premier Annastacia Palaszczuk said the evacuations were probably the largest the state had ever seen. ""We are in for a long, tough day,"" Palaszczuk said. ""The intensity and ferocity of the winds is going to be gradually increasing. Everyone is bunkered down. The storm has made landfall-between the towns of Bowen and Airlie Beach.-On social media, Bowen residents say weather conditions worsened as the storm approached. Authorities have warned against complacency if it appears the storm might have calmed after making landfall. Debbie is the most powerful storm to hit Queensland since Cyclone Yasi in 2011, which ripped houses from their foundations, destroyed crops and devastated island resorts. jr/gsw (Reuters, dpa, AP)", -3566,2017/3/28,http://www.dw.com/en/amnesty-admonishes-us-led-coalition-over-civilian-deaths-in-mosul/a-38152241?maca=en-rss-en-all-1573-rdf,Amnesty admonishes US-led coalition over civilian deaths in Mosul,"Hundreds of civilians have died in recent months in Mosul from US-led coalition airstrikes, an Amnesty report says. Failure to prevent such casualties would be in violation of international humanitarian law, it noted.","The report released on Monday quoted survivors and eyewitnesses of airstrikes that have killed civilians. ""Evidence gathered on the ground in East Mosul points to an alarming pattern of US-led coalition airstrikes which have destroyed whole houses with entire families inside,"" Donatella Rovera, senior crisis response advisor at Amnesty International, said, adding that coalition forces would have known civilian casualties would arise from any airstrikes. ""They did not try to flee as the battle got underway because they received repeated instructions from the Iraqi authorities to remain in their homes,"" Rovera went on. ""The high civilian toll suggests that coalition forces leading the offensive in Mosul have failed to take adequate precautions to prevent civilian deaths, in flagrant violation of international humanitarian law,"" she continued. Heavy price to pay More than 3,000 civilians are believed to have-been killed in Mosul since February 19, when US-backed government forces began an offensive to drive out the self-styled ""Islamic State"" (IS) group-from the western side of the city, an official at the city's civil defense department told German news agency dpa on Friday. In one-airstrike on March 17, some 150 civilians were reportedly killed in the al-Jadida neighborhood in Mosul, Amnesty said. US-and Iraqi authorities announced on the weekend that they were investigating this and other incidents.- On Monday, US military spokesman John Thomas, a spokesman for US Central Command in Tampa denied allegations that the US-led coalition had relaxed its rules of engagement on airstrikes against IS in Iraq and Syria. Efforts were being made to act cautiously, to distinguish between civilian and military targets, he said. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2Zt5Q Treacherous battle Iraqi forces began the assault on IS-held-Mosul last October and have faced their toughest fight against IS yet in Iraq, increasingly turning to airstrikes and artillery to clear and hold territory in the west of the city. In January, Iraq declared eastern-Mosul ""fully liberated.""- Civilians, humanitarian groups and monitoring officials have repeatedly warned of the possibility of increased civilian casualties in western Mosul due to the higher density of the population and the increased reliance on airstrikes and artillery. When the operation to retake Mosul was launched, more than a million people were estimated to still be living in Mosul. The UN estimates that about 400,000 people remain trapped in IS-held neighborhoods in the city. jbh/gsw (dpa, AP)", -3567,2017/3/28,http://www.dw.com/en/us-senate-vote-clears-way-for-montenegro-nato-entry/a-38152004?maca=en-rss-en-all-1573-rdf,US Senate vote clears way for Montenegro NATO entry,Montenegro is on the verge of becoming NATO's latest member after the US Senate voted to clear the way for a final vote on its accession. Backers of the move said it would send a stern message to Russia.,"The Senate voted 97-2 on Monday in favor of allowing a vote later this week on the ratification of Montenegro's-NATO membership. Senate aides reportedly said they expected a final vote in the Senate on Tuesday or Wednesday and said they-expect Montenegro's NATO membership to get the required two-thirds majority. Progress on Montenegro's accession bid had been held up in Congress by two senators. Besides the US, the Netherlands and Spain also have yet to ratify Montenegro's membership. All members of the alliance must ratify a bid to join in order for the petition to proceed. Montenegro sits on a geopolitical faultline in the region. Having elected a pro-EU government-last October, the outcome of its NATO application could determine the way the region is heading: toward NATO and the EU, or back to Russia's sphere of influence. Twenty-five of NATO's 28 members have ratified Montenegro's accession, a country of 620,000 people seen as a geostrategic ally. The Kremlin has opposed Montenegro's accession, calling it a ""provocation"" that would reinforce the pro-Western military alliance's presence in the Balkans. Two-naysayers The only two ""no"" votes came from Republican Senators Rand Paul and Mike Lee, both of whom had blocked the vote for several months. Paul warned Washington against spreading itself too thinly when its military is involved in Iraq, Syria, Libya and Yemen. ""Montenegro in NATO will antagonize Russia while doing nothing-to advance US national security,"" he said. ""Most Americans can't find Montenegro on a map,"" Paul said in a sharply worded Senate speech. ""Are you willing to send your kids there to fight?"" Paul has suggested that adding Montenegro, which had once been a staunch Russian ally, could lead to heightened tension with Moscow, possibly even war. The US vote comes days after a Montenegrin special prosecutor accused ""Russian state bodies"" of involvement in an alleged coup plot during Montenegro's election last October. Moscow branded the accusation ""absurd."" Senator John McCain framed Montenegro's accession as a ""test"" of resolve against Putin. ""He attempted a coup"" to overthrow the freely-elected Montenegro government,"" McCain told the Senate on Monday. ""That coup failed. But I can assure that if we turn down Montenegro, it will not remain the democracy that it is today."" Playing Montenegro's Trump card- President Donald Trump's administration has encouraged lawmakers to back the Balkan nation's NATO bid. Secretary of State Rex Tillerson wrote to Senate leaders earlier in March to say Montenegro's membership of NATO was ""strongly in the interests of the US."" Tillerson said Montenegro's membership would give NATO a contiguous border along the Adriatic coast. ""Montenegro is trying to do everything that (Russian President Vladimir) Putin hates, where you actually can vote for your own leaders,"" said Republican Senator Lindsey Graham, one of the party's leading foreign policy voices. NATO holds its summit on May 25 in Brussels, where Trump will use the opportunity to reaffirm Washington's strong commitment to the alliance, according to the White House. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/1GoZ1 jbh/gsw (AFP, AP, Reuters)", -3568,2017/3/28,http://www.dw.com/en/syrian-officials-to-be-investigated-by-spain-for-alleged-torture/a-38152015?maca=en-rss-en-all-1573-rdf,Syrian officials to be investigated by Spain for alleged torture,A Spanish court has opened the first criminal case abroad over alleged torture instigated by Syrian officials during the country's civil war. It will focus on key political and security figures of the Assad regime.,"Spanish authorities are due to investigate nine Syrian officials over claims of-torture and concerning the execution of a Syrian man four years ago, in what is the first criminal case against Syrian security forces accepted by a foreign court. Among the findings, the UN said Syria deliberately bombed a humanitarian convoy in Aleppo and used chlorine bombs. Rebels were also found to have used civilians as human shields. (01.03.2017) Amnesty International says some Syrian opposition groups are carrying out abductions, torture and summary killings. The rights group called on international backers to stop sending arms to some Syrian rebels. (05.07.2016) A group of former prisoners from Syria has filed a suit in Germany accusing officials of the Assad regime of torture. The survivors reported beatings, sexual abuse and systematic humiliation in Syrian prisons. (02.03.2017) The case was brought by the deceased man's sister, a Spanish woman of Syrian origin, who says her brother disappeared after being illegally detained in 2013 in Damascus. She learned of his death after finding his body in a trove of some 50,000 photographs smuggled out of Damascus by a forensic photographer who fled Syria. One image of Alhaj Hamdo ""shows clear signs of torture,"" according to the charge sheet against the accused - who include Syria's vice president, intelligence chief and air force intelligence chief. Investigating magistrate Eloy Valesco ruled Spain did have the jurisdiction to launch the probe. Spanish law allows the prosecution of serious crimes in other countries if there is a Spanish victim - which Velasco said the deceased man's sister, Amal Hag Hamdo Anfalis, could be considered as being. Velasco has called on Anfalis and the forensic photographer to testify in court in April. He said the alleged crimes could constitute crimes against humanity, war crimes, torture and forced disappearance. At least 320,000 people have died since the Syrian civil war began in 2011. Activists have tried to use European domestic courts to pursue justice for war crimes, given UN Security Council member Russia blocks the referral of Syria to the International Criminal Court. Other cases have been filed in Germany and France, but have not yet been accepted by the courts, said lawyer Toby Cadman, who represents a London firm helping Anfalis. jr/gsw-(Reuters, AP, AFP)", -3569,2017/3/28,http://www.dw.com/en/turks-in-germany-warned-over-surveillance-from-ankara-report/a-38151664?maca=en-rss-en-all-1573-rdf,Turks in Germany warned over surveillance from Ankara: report,"German states are warning some expatriate residents that Turkey is spying or secretly filming them, a media report says. A leading German politician has accused Ankara of staging ""a coup on democracy.""","Turkey's spy agency has identified hundreds of alleged supporters of exiled Muslim cleric Fethullah G��len living in Germany, compiling details into a dossier and passing it on to Berlin, a German media report says. As well as names, the list contains addresses, telephone numbers and photos taken in secret through surveillance cameras,-according to the S��ddeutsche Zeitung newspaper (link in German). It's said to identify more than 300 people and 200 various clubs, schools, and other institutions with alleged links to G��len. Germany's foreign intelligence chief was given the list last month by his Turkish counterpart during the Munich Security Conference. That has allowed authorities across the country to warn those on the list that they have been watched by Turkey. One German state has gone further, with the state criminal office of North-Rhine Westphalia warning those concerned that possible reprisals await them if they return to Turkish territory. The Turkish government blames G��len, who lives in the United States, of orchestrating the unsuccessful military coup attempt last July. Turkey has since launched a-massive crackdown on dissent and accused supporters of G��len, who has denied any part in the insurrection, of being terrorists. Controversial referendum The details come as Turks living in Germans began voting in an April constitutional referendum that would consolidate President Recep Tayyip Erdogan's powers, if passed.-Critics say that it would effectively end democracy in Turkey and give Erdogan autocratic powers. The run-up to the ballot has seen relations-sour between Turkey and the EU after European authorities canceled several rallies where Turkish officials were to campaign. Some 1.4 million Turkish citizens in Germany are eligible to vote in the referendum. German Chancellor Angela Merkel rebuked Erdogan publicly after the Turkish leader accused both Germany and the Netherlands of engaging in ""Nazi practices"" by preventing the Turkish ministers'-rallies. On Monday, the president of Germany's parliament, Norbert Lammert, said Erdogan, through the April referendum, was attempting to ""transform an undoubtedly fragile, but nonetheless democratic system into an authoritarian system."" ""This second coup attempt threatens to be successful,"" Lammert added, and criticized the ""incomprehensible"" consent of Turkey's parliament to its own disempowerment. Swiss open probe into Turkish spying Last week, Switzerland began a criminal investigation into allegations Ankara had spied on expatriate Turks. It follows the filming of several events at the University of Z��rich, including a discussion of the 1915 Armenian genocide by Ottoman Turks - a term which the Ankara government vehemently rejects --and another where the editor-in-chief of the Turkish newspaper ""Cumhuriyet"" was honored. jr/gsw (S��ddeutsche Zeitung,-AFP, Reuters) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2ZqXe", -3570,2017/3/28,http://www.dw.com/en/new-york-s-fearless-girl-statue-to-stay-for-another-year/a-38151665?maca=en-rss-en-all-1573-rdf,New York's 'Fearless Girl' statue to stay for another year,The statue staring down a bull on Wall Street in New York City will be kept in place for at least another 11 months. Supporters now aim to convince New York City Mayor Bill de Blasio to let the work stay for good.,"The popular statue of a young girl will keep facing Wall Street's-""Charging Bull"" until February 2018, instead of being removed this coming Sunday, Mayor Bill de Blasio has said. She faces Wall Street's ""Charging Bull"" on a patch of cobble stone in the financial district near Bowling Green. She's ""standing up to fear, standing up to power, being able to find in yourself the strength to do what's right,"" the mayor said.- The mayor, a Democrat,-said the political upheaval surrounding Republican President Donald Trump makes the statue particularly relevant. ""She is inspiring everyone at a moment when we need inspiration,"" he said. Two petitions, generous press attention and interest on social media generated a push for keeping the statue where it is. The 50-inch (127 cm) bronze statue of a defiant girl with fists on hips was installed to mark International Women's Day on March 8 under a lease due to end April 2. ""She has clearly struck a nerve,"" New York Democratic lawmaker Carolyn Maloney said on Monday as she stood on the steps of City Hall with other women politicians to announce the statue's extended stay. ""She has really, really become a meaningful part of the community of New York,"" Maloney said. ""Everyone sees their own dreams and aspirations in the strength of this little girl."" Original artist unhappy Commissioned by asset manager State Street Global Advisors, the female figurine-is part of a campaign to increase gender diversity in business. The gender diversity campaign by State Street Global Advisors, a subsidiary of State Street Corp, aims to highlight the need for more women on corporate boards. Twenty-five percent of the largest 3,000 US companies have no female directors, the company noted on its website. But ""Fearless Girl"" has also drawn criticism, including-from artist Arturo Di Modica, who sculpted ""Charging Bull"" and placed-it in front of the New York Stock Exchange in the middle of the night in December 1989. He has complained that the new statue is an ""advertising trick"" that distorts the impression he intended his original artwork to convey. jbh/gsw (AP, Reuters)", -3571,2017/3/28,http://www.aljazeera.com/news/2017/03/anti-apartheid-icon-ahmed-kathrada-dies-170328051849926.html,Anti-apartheid icon Ahmed Kathrada dies,"Anti-apartheid activist Ahmed Kathrada spent 26 years in jail ""?many of them alongside Nelson Mandela.","Anti-apartheid activist Ahmed Kathrada, who spent 26 years in jail "" �C?many of them alongside Nelson Mandela-""-For acts of sabotage against South Africa's white minority government, died in Johannesburg on Tuesday morning at the age of 87. He had been admitted to hospital with blood clotting in his brain earlier this month. Kathrada was born on August 21, 1929, to Indian immigrant parents in a small town in northwestern South Africa. He was among those tried and jailed alongside Mandela in the Rivonia trial in 1964, which drew worldwide attention and highlighted the brutal legal system under the apartheid regime. READ MORE: Ahmed Kathrada's Robben Island Diaries Kathrada was sentenced to life imprisonment in 1964 and-spent 26 years and three months in prison, 18 of which were on Robben Island. After the end of apartheid, he served from 1994 and 1999 as parliamentary counsellor to President Mandela in the first African National Congress (ANC) government. Al Jazeera's Tania Page, reporting from Johannesburg, said that it was a sad day in South Africa -where Kathrada was affectionately known as ""Uncle Kathy"" -as tributes poured in about his widely perceived kindness, humilty, and honesty. He had been a major part of many South African's memories over decades of anti-aparthied struggle, Page said. ""I think his passing is sort of signalling to South Africans, yet again, the ending of an era, of these great giants of apartheid [resistance] as they pass on,"" she added. Kathrada gave an emotional speech at Mandela's funeral, in which he said he had lost a brother. Kathrada was, until recently, still active in public life. He formed his own foundation, and advocated strongly for human rights causes such as youth development, anti-racism, and freedom of speech. Last year, he joined a movement of veteran figures who were critical of the governing ANC and its current crop of leaders - particularly President Jacob Zuma, who has been mired in mounting allegations of corruption. Kathrada penned an open letter to the president and called on him to step down. ""Right to the very end he kept himself relevant, he was a newsmaker, he was honest and true to his values and his beliefs,"" Page said. ""And that's why so many millions of South Africans will be very sad at his passing today."" INSIDE STORY: Will South Africa's Jacob Zuma hang on to power? ""This is a great loss to the ANC, the broader liberation movement and South Africa as a whole,"" Neeshan Balton, head of the Ahmed Kathrada Foundation, said in a statement. ""'Kathy' was an inspiration to millions in different parts of the world."" Kathrada's activism against the white-minority apartheid regime started at the age of 17, when he was one of 2,000 ""passive resisters"" arrested in 1946 for defying a law that discriminated against Indian South Africans. In July 1963, the police swooped on Liliesleaf Farm in Rivonia, a Johannesburg suburb where Kathrada and other senior activists had been meeting in secret. At the famous Rivonia trial, eight of the accused were sentenced to life imprisonment with hard labour on Robben Island. His fellow prisoners included Mandela, Walter Sisulu and Denis Goldberg. Source:-Al Jazeera and news agencies", -3572,2017/3/28,http://www.aljazeera.com/news/2017/03/jared-kushner-russia-170327225204704.html,Jared Kushner to be questioned over ties to Russia,Jared Kushner met Russian ambassador and executives of Russian state development bank during 2016 election campaign.,"The White House has confirmed that President Donald Trump's son-in-law, Jared Kushner, also one his most senior advisers, will testify before the Senate Intelligence Committee. The committee is investigating alleged Russian meddling in the 2016 US presidential election, and also looking into possible ties between the Trump campaign and Russian officials. On Monday, White House spokesman Sean Spicer told reporters that Kushner is willing to testify to the Senate Intelligence Committee chaired by Republican Senator Richard Burr. ""Throughout the campaign and the transition, Jared served as the official primary point of contact with foreign governments and officials ... and so, given this role, he volunteered to speak with Chairman Burr's committee,"" Spicer told reporters. Kushner, who is married to Trump's daughter Ivanka Trump,-has acknowledged meeting the Russian ambassador to Washington last December.- And on Monday, a Russian bank under Western economic sanctions over Russia's incursion into Ukraine disclosed that its executives had met Kushner during the election campaign. The Russian state development bank Vnesheconombank (VEB) said in a statement that as part of it preparing a new strategy, its executives met representatives of financial institutes in Europe, Asia and America. OPINION: Why is Russia so happy with Trump? It said meetings took place ""with a number of representatives of the largest banks and business establishments of the United States, including Jared Kushner, the head of Kushner Companies,"" the Kushner family's real-estate firm. VEB declined to say where the meetings took place or the dates. There was no immediate comment from Kushner. Simply meeting with representatives of a US-sanctioned entity is not a violation of sanctions or against the law. Allegations by US intelligence agencies that Russian actors were behind hacking of senior Democratic Party operatives and spreading disinformation linger over Trump's presidency. Democrats charge the Russians wanted to tilt the election towards the Republican, a claim dismissed by Trump. Russia denies the allegations. But it has been confirmed that the Russian ambassador to the US, Sergei Kislyak, developed contacts among the Trump team. Trump's first national security adviser, Michael Flynn, was forced to resign on February 13 after revelations that he had discussed US sanctions on Russia with Kislyak and misled Vice President Mike Pence about the conversations. US officials said that after meeting with Kislyak at Trump Tower last December, a meeting also attended by Flynn, Kushner met later in December with Sergei Gorkov, chairman of Vnesheconombank. White House spokeswoman Hope Hicks confirmed the meetings, saying nothing of consequence was discussed. READ MORE: Russia\'s booming 'Trumpomania' John Neffinger, the communications director of the Democratic National Committee, stressed the importance of thoroughly probing the mounting allegations of collusion between Trump's team and Russia. ""We have no proof yet,"" he told Al Jazeera. ""We do know that the Russians were talking to Trump's campaign team on a regular basis during the campaign. We don't know what they were talking about. ""Is it possible they were talking about the weather? It is. But if they happened to be talking about the thing that they had in common, which was trying to have Donald Trump elected for president, then it is also possible that something very, very bad took place."" Besides the Senate Intelligence Committee, the FBI and the House Intelligence Committee are also looking into possible Russian interference. The integrity of the House committee's investigation has been put in doubt after Democrats' complaints that the chairman, Republican Devin Nunes, is too close to Trump. Last Wednesday, Nunes said-spy agencies had engaged in ""incidental collection"" of Trump associates' communications. The suggestion was interpreted by the president as support for his claim that his predecessor, Barack Obama, had Trump Tower ""wiretapped"" during last year's presidential campaign - despite Nunes himself saying the revelation does not back up Trump's claim. In the latest twist on Monday, it was revealed that Nunes visited the White House grounds to meet a ""secret source"" the day before he made his announcement - raising suspicion that the Trump administration had supplied Nunes with the information. Instead of responding to top Democrats' calls for Nunes to recuse himself from the House committee's investigation, Trump took to Twitter on Monday evening to call on the panel to investigate his former Democrat rival, Hillary Clinton. Source:-Al Jazeera and news agencies", -3573,2017/3/28,http://www.aljazeera.com/news/2017/03/malaysia-kim-jong-nam-body-kuala-lumpur-170328045304895.html,Malaysia says Kim Jong-nam's body still in Kuala Lumpur,"Body of estranged half-brother of North Korean leader has not left the country, health minister says.","The body of Kim Jong-nam,-the-half-brother of North Korean leader Kim Jong-un,-murdered in Malaysia last month, is still in Kuala Lumpur, health minister Health Minister Subramaniam Sathasivam said on Tuesday, after reports the remains would soon leave the country. Kim was murdered on February 13 after-two women - an Indonesian and a Vietnamese - smeared super toxic VX nerve agent on his face at the budget terminal of Kuala Lumpur International Airport, according to Malaysian police. ""We have to check with the forensics department if there was any requirement to bring the body out, but as far as we are concerned there is no change in status quo,"" Subramaniam told reporters. He said the next of kin have not come forward to provide assistance on how the body is to be treated. Media reports on Monday said the body was moved out of the hospital to a funeral parlour, and was later being prepared to go on a flight to Beijing. Malaysia's New Straits Times newspaper reported on Tuesday that the body was expected to go from Beijing to North Korea, without disclosing its source. Earlier this month, Interpol issued a red notice, the closest mechanism it has to an international arrest warrant, for four North Koreans wanted in connection with the death. The death has resulted in a fierce diplomatic row between two countries that once had strong ties. North Korea has questioned the Malaysian investigation into the death and refused to acknowledge that the dead man is Kim Jong-nam. Source:-News agencies", -3574,2017/3/28,http://www.aljazeera.com/news/2017/03/trump-sign-order-scrubbing-obama-climate-policies-170328041914890.html,Trump to sign order scrubbing Obama climate policies,An executive order on Tuesday will seek to boost fossil fuels by unraveling Obama measures to combat climate change. The issue of jobs Praise and condemnation,"US President Donald Trump will sign an executive order on Tuesday to undo several Barack Obama-era-climate change measures in what his government says is an effort to boost domestic energy production. As part of the roll-back, Trump will initiate a review of the Clean Power Plan, which restricts greenhouse gas emissions at coal-fired power plants. The regulation, Obama's signature effort to curb carbon emissions, has been the subject of long-running legal challenges by Republican-led states and those who profit from burning oil, coal and gas. Trump, who has called global warming a ""hoax"" invented by the Chinese, has repeatedly criticised the power-plant rule and others as an attack on workers and the struggling coal industry. OPINION: Science doesn't care if you believe in it or not The contents of the order were outlined to reporters in a sometimes tense briefing with a senior White House official, whom aides insisted speak without attribution. The official at one point appeared to break with mainstream climate science, denying familiarity with widely publicised concerns about the potential adverse economic impacts of climate change, such as rising sea levels and more extreme weather. In addition to pulling back from the Clean Power Plan, the administration will also lift a 14-month-old moratorium on new coal leases on federal lands. The Obama administration had imposed a three-year moratorium on new federal coal leases in January 2016, arguing that the $1bn-a-year programme must be modernised to ensure a fair financial return to taxpayers and address climate change. Trump accused his predecessor of waging a ""war on coal"" and boasted in a speech to congress that he had made ""a historic effort to massively reduce job-crushing regulations,"" including some that threaten ""the future and livelihoods of our great coal miners."" The order will also chip away at other regulations, including scrapping language on the ""social cost"" of greenhouse gases. It will initiate a review of efforts to reduce the emission of methane in oil and natural gas production, as well as a Bureau of Land Management hydraulic fracturing rule, to determine whether those reflect the president's policy priorities. It will also rescind Obama-era executive orders and memoranda, including one that addressed climate change and national security and one that sought to prepare the country for the impacts of climate change. The administration is still considering whether it should withdraw from the Paris Agreement on climate change. But the moves to be announced on Tuesday will make it more difficult for the US to achieve its goals under the agreement. READ MORE: The Paris climate agreement and why it matters Trump's Environmental Protection Agency chief, Scott Pruitt, alarmed environmental groups and scientists earlier this month when he said he does not believe carbon dioxide is a primary contributor to global warming. The statement is at odds with mainstream scientific consensus and Pruitt's own agency. The overwhelming majority of peer-reviewed studies and climate scientists agree the planet is warming, mostly due to man-made sources, including carbon dioxide, methane, halocarbons and nitrogen oxide. The official who briefed reporters said the president does believe in man-made climate change. The power-plant rule Trump is set to address in his order has been on hold since last year as a federal appeals court considers a challenge by coal-friendly states and more than 100 companies who call the plan an unconstitutional power grab. Opponents say the plan will kill coal-mining jobs and drive up electricity costs. The Obama administration, some Democratic-led states and environmental groups countered that it will spur thousands of clean-energy jobs and help the US meet ambitious goals to reduce carbon pollution set by the international agreement signed in Paris. Trump's order on coal-fired power plants follows an executive order he signed last month mandating a review of an Obama-era rule aimed at protecting small streams and wetlands from development and pollution. The order instructs the EPA and Army Corps of Engineers to review a rule that redefined ""waters of the United States"" protected under the Clean Water Act to include smaller creeks and wetlands. While Republicans have blamed Obama-era environmental regulations for the loss of coal jobs, federal data shows that US mines have been shedding jobs for decades under presidents from both parties as a result of increasing automation and competition from cheaper natural gas. Another factor is the plummeting cost of solar panels and wind turbines, which now can produce emissions-free electricity cheaper than burning coal. According to an Energy Department analysis released in January, coal mining now accounts for fewer than 70,000 US jobs. By contrast, renewable energy - including wind, solar and biofuels - now accounts for more than 650,000 US jobs. The Trump administration's plans drew praise from business groups and condemnation from environmental groups. US Chamber of Commerce President Thomas J. Donohue praised the president for taking ""bold steps to make regulatory relief and energy security a top priority."" ""These executive actions are a welcome departure from the previous administration's strategy of making energy more expensive through costly, job-killing regulations that choked our economy,"" he said. OPINION: The case for collaborating on climate change Former Environmental Protection Agency administrator Gina McCarthy accused the Trump administration of wanting ""us to travel back to when smokestacks damaged our health and polluted our air, instead of taking every opportunity to support clean jobs of the future."" ""This is not just dangerous; it's embarrassing to us and our businesses on a global scale to be dismissing opportunities for new technologies, economic growth, and US leadership,"" she said in a statement. Source:-AP news agency", -3575,2017/3/28,http://www.aljazeera.com/news/2017/03/cyclone-debbie-australia-170328004301232.html,Cyclone Debbie makes landfall with destructive winds,"High winds and heavy rainfall batter resorts along Great Barrier Reef, with some damage reported.","Cyclone Debbie has made landfall in northeast Australia, with lashing rain and howling winds battering the area and towns going into lockdown. The category four storm - on a scale of five - began crossing the Queensland state coast on Tuesday, packing destructive wind gusts of up to 270 kilometre per hour near its wide core, the Bureau of Meteorology said. Authorities urged some 30,000 people to evacuate before the storm hit island resorts along the Great Barrier Reef. Before hitting the shore, the storm swept the Whitsunday Islands, where tourists waited out the storm in hotel rooms. ""We're getting some reports already of roofs starting to lift, including at some of our own facilities in the Whitsundays,"" Queensland Police Deputy Commissioner Steve Gollschewski told Australian Broadcasting Corporation television. Authorities stockpiled food and fuel, and the army was on standby to deal with the aftermath. However, as winds cut power to about 23,000 people, emergency response crews were also hunkered down until the storm blew over. Authorities urged thousands of people in low-lying areas at risk from tidal surges and strong winds to flee their homes on Monday, in what would be the biggest evacuation seen in Australia since Cyclone Tracy devastated the northern city of Darwin in 1974. However, police told Reuters they were not sure how many people had heeded that advice.- Ports at Abbot Point, Mackay and Hay Point were shut, Townsville airport was closed and airlines Qantas, Jetstar, Rex and Virgin Australia cancelled several flights to and from the region. BHP Billiton and Glencore halted work at their coal mines in the storm's path. Source:-News agencies", -3576,2017/3/28,http://www.aljazeera.com/news/2017/03/james-jackson-charged-terrorism-killing-black-man-170328005908057.html,US veteran charged with terrorism for killing black man,Police say James Jackson 'prowled the streets of New York for three days in search of a black person to assassinate'.,"A white US army veteran accused of fatally stabbing a 66-year-old black man-has been charged with murder as an act of terrorism after telling police he was planning a race-based killing spree. James Jackson, 28, ""prowled the streets of New York for three days in search of a black person to assassinate in order to launch a campaign of terrorism against our Manhattan community and the values we celebrate,"" Manhattan District Attorney Cyrus Vance said in a statement on Monday. ""Last week, with total presence of mind, he acted on his plan, randomly selecting a beloved New Yorker solely on the basis of his skin colour, and stabbing him repeatedly and publicly on a Midtown street corner."" He was formally charged in New York State Supreme Court with one count each of murder in the first and second degrees as an act of terrorism, murder in the second degree as a hate crime, as well as three counts of criminal possession of a weapon. Jackson's lawyer has said there are ""obvious psychological issues"" involved. Police say Jackson admitted stabbing Timothy Caughman, who was collecting bottles for recycling,-multiple times on March 20. Caughman managed to walk two blocks to a police station but died in hospital. Jackson - who served in the US Army from 2009 to 2012, a stint that included a tour of duty in Afghanistan - turned himself in to police in Times Square on Wednesday-after police released surveillance video of the stabbing. He told police he considered the killing to be ""practice prior to going to Times Square to kill additional black men,"" according to the complaint. It said he was ""angered by black men mixing with white women"". The case comes as several major US cities including New York grapple with an increase in hate crimes. On Wednesday, Vance's office launched a ""Too New York To Hate"" campaign to encourage victims and witnesses of violence against an ethnic group, community or religion to come forward to testify. Source:-News agencies", -3577,2017/3/28,http://www.rte.ie/news/2017/0328/863078-garda-osullivan-politics/,Cabinet to be briefed on garda controversies,,"T��naiste and Minister for Justice Frances Fitzgerald is to brief Cabinet today on the controversy over garda breath tests and fixed charge notices. The Fianna F��il-frontbench is also meeting later to discuss Garda Commissioner N��ir��n O'Sullivan's response to the controversy. Commissioner-O'Sullivan has been invited to appear before the Oireachtas Justice committee on Thursday. Today is the first opportunity for both the Cabinet and also the D��il-to discuss the matter, which has led to calls for Commissioner O""ullivan to resign. While the Fine Gael side of the coalition is still expressing confidence in the Garda Commissioner, their partners in Government - the Independent Alliance - has yet to adopt a position. The T��naiste will brief her ministerial colleagues on her meetings yesterday-with N��ir��n-O'Sullivan and also the chairperson of the Policing Authority, Josephine Feehily. Meanwhile, Fianna F��il's position, which may be crucial to the Commissioner's future, has yet to be clarified. Its Justice spokesperson Jim O'Callaghan said the party was studying the Commissioner's latest comments but it was clear many crucial questions remain unanswered and they were not reassured by what was said. Fianna F��il-also wants the T��naiste to make a D��il-statement on the matter today.", -3578,2017/3/28,http://www.rte.ie/news/2017/0328/863077-bus-eireann/,Bus ?ireann indefinite strike enters its fifth day,,"The strike at Bus ?ireann is entering its fifth day-amid concerns travel disruption could spread further to Dublin Bus and Iarnr��d ?ireann. Workers at both those companies are to be balloted next week on taking industrial action in sympathy with and in support of-Bus ?ireann workers. SIPTU representatives from the three companies-met at Liberty Hall in Dublin yesterday to discuss the ongoing strike - which is affecting around 110,000 Bus ?ireann customers. Last week, there was some disruption to rail services as some workers refused to cross the picket lines at shared depots but yesterday Iarnr��d ?ireann said all routes ran as normal. Bus ?ireann has estimated that the dispute is costing it �100,000-a day. A protest in support of Bus ?ireann workers is to be held at Leinster House tomorrow to coincide with a meeting of the Oireachtas Transport Committee, which Minister for Transport Shane Ross is expected to attend.", -3579,2017/3/28,http://www.rte.ie/news/2017/0328/863074-hungary_migrants/,Asylum-seekers entering Hungary to be detained in shipping containers,,"Asylum-seekers entering Hungary, as well as those currently in the country, are to be-confined in camps composed of converted shipping containers while their applications are processed. Three weeks ago, Hungary's parliament approved the systematic detention of all asylum-seekers in a move that has drawn criticism from human rights groups and the UN. The interior ministry has said the purpose of the restrictions, which begin today, is to ""prevent migrants with an unclear status from moving freely around the territory of the country and the European Union, and to thereby reduce the security risk of migration"". According to the government, 324 shipping container homes have been installed at two separate locations called ""transit zones"" built into a fence that Hungary erected along its southern border with Serbia. EU member Hungary previously systematically detained all asylum applicants but suspended the practise in 2013 under pressure from Brussels, the UN refugee agency and the European Court of Human Rights. Hungarian police patrol border with Serbia- Rights groups like Amnesty International have condemned the new rules for failing to meet Hungary's international obligations to asylum-seekers. The UNHCR also said that systematic detention will ""have a terrible physical and psychological impact on women, children and men who have already greatly suffered"". According to refugee rights group the Hungarian Helsinki Committee some 400 asylum-seekers are currently housed in the country's internal camp network, and now face relocation to the border camps. A second ""smart fence"" complete with night cameras, heat and movement sensors, and multilingual megaphones warning against crossing the barrier is also under construction, with completion scheduled by May.", -3580,2017/3/28,http://www.rte.ie/news/regional/2017/0328/863099-cork-murder-investigation/,Man still being questioned in Cork murder investigation,,"Garda�� are continuing to question a 42-year-old man arrested in connection with the murder of a mother of three in Cork. Nicola Collins, 38, who was originally from Tralee, Co Kerry but living at-Togher in Cork, was found by emergency services in a flat on the Popham's Road, Farranree in the city early yesterday morning. She had sustained head injuries and was pronounced dead at the scene. The man, who is originally from Charleville, was arrested nearby. Investigating garda�� at Mayfield last night issued an appeal for witnesses or anyone who can help them with their investigation to contact them at Mayfield Garda Station on 021-455 8510, the Garda Confidential Line 1800-666 111 or any garda station.", -3581,2017/3/28,http://www.rte.ie/news/ireland/2017/0328/863079-coast-guard-mayo/,Efforts to lift wreckage of Rescue 116 to resume,,"Naval Service divers are expected to resume efforts to lift the wreckage of Coast Guard Rescue Helicopter 116 this morning.- The divers have successfully attached a number of lifting bags to the aircraft, which is located some 40 metres below sea level-a short distance from Blackrock Island in Co-Mayo.- Search coordinators want to partially lift the wreckage to see if there is any trace of the two Coast Guard crew members who have-been missing since the helicopter crashed two weeks ago. A deterioration in sea conditions yesterday-evening led to the operation being postponed.", -3582,2017/3/28,http://www.rte.ie/news/us/2017/0328/863075-pound_coin/,12-sided bi-metallic coins to edge out old British round pound,,"A new-one pound coin goes into circulation in Britain today. The new 12-sided coins bear the symbols of England, Scotland, Wales and Northern Ireland. They are thinner, lighter and slightly bigger than the coins they replace. The new coins have a hologram-like image that changes when viewed from different angles and micro-sized lettering inside both rims. Britain's finance ministry says the new bi-metallic coin will be ""the most secure of its kind in the world""-to prevent a rise in counterfeits. Around one-in-30 of the current round coins are fakes The old coin and the new coin will co-exist for a period of around six months, until the round pound ceases to be legal tender on 15 October. The new coins have been made at the Royal Mint in Llantrisant, South Wales, at a rate of three million per day.", -3583,2017/3/28,http://www.rte.ie/news/2017/0328/863080-australia-cyclone-debbie/,'Monster' cyclone Debbie batters northeast Australia,,"A ""monster"" cyclone has made landfall in northeast Australia, cutting power and uprooting trees as coastal towns went into lock down in the face of lashing rain and howling winds. Great Barrier Reef islands popular with foreign tourists were pummelled by the category four storm which hit the Queensland state coast with destructive wind gusts of up to 270km/h-near its wide core. There were fears its arrival would coincide with early morning high tides, causing severe flooding, but its progress slowed before it crossed the coastline between the towns of Bowen and Airlie Beach. The full force of the cyclone was already being felt in popular tourist destinations. ""It felt like we were underneath a freight train for most of the night, strong base rumbles as the ... wind rattled past and made the buildings shake,"" Cameron Berkman, who is holidaying on Hayman Island, told the Australian Broadcasting Corporation. The Bureau of Meteorology, which forecast up to 50cm-of rain, said people should stay calm and not be complacent as the eye of the storm passes. ""Do not venture outside if you find yourself in the eye of the cyclone - very destructive winds from a different direction could resume at any time,"" it said. ""People in the path of the very dangerous cyclone should stay calm and remain in a secure shelter."" Queensland Premier Annastacia Palaszczuk, who warned the storm was shaping up as a ""monster"" and would last for hours, said more than 30,000 homes were already without power. Queensland Police Commissioner Ian Stewart said Debbie's slow pace was having ""a battering ram effect"". ""These winds are going to keep pounding, pounding, pounding,"" he said. ""I suspect before the day is out, we will see a lot of structural damage in the cyclone's path."" #CycloneDebbie: -Beware the calm 'eye'. If the wind drops, don't assume the cyclone is over. Wait for the official 'all clear'. ""?Queensland Ambulance (@QldAmbulance) March 28, 2017 Residents across the area, who have sandbagged and boarded up homes, have been told to prepare for the worst weather to pummel the state since Cyclone Yasi in 2011, which ripped houses from their foundations and devastated crops. The federal government is on standby to provide immediate assistance in the aftermath, with a disaster relief ship en route from Sydney and navy helicopters and planes on standby. Some 3,500 people were evacuated between the towns of Home Hill and Proserpine, around 100km south of Townsville, a tourist hot spot and access to the Great Barrier Reef. Another 2,000 people in the coastal area of Bowen, which was predicted to bear the brunt of the impact, have also moved, officials said, with cyclone shelters available for those with nowhere else to go. Up to 25,000 more in low-lying parts of Mackay have headed to higher ground. In the small town of Ayr, the main shopping street was deserted with buildings boarded up.", -3584,2017/3/28,http://www.rte.ie/news/assembly-election-2017/2017/0328/863090-stormont-elections-talks/,UK govt to outline plans to try save power-sharing,,"The UK government will later outline details of how it intends to foster an agreement to save power-sharing at Stormont. Northern Ireland Secretary James Brokenshire will make a statement to the House of Commons after the region's main parties failed to form a new coalition executive before yesterday's-statutory deadline. Minister for Foreign Affairs Charlie Flanagan said the context of Brexit made it all the more imperative that a new executive was formed as soon as possible. British Prime Minister Theresa May will not visit Northern Ireland before the triggering of Article 50 tomorrow - beginning the formal process for the UK to leave the EU. Mr Brokenshire has already warned local political leaders they will only be afforded a ""short few weeks"" to resolve their differences. The Democratic Unionist/Sinn F��in administration collapsed in January amid a bitter row over a botched green energy scheme. The subsequent snap election campaign laid bare a range of other contentious issues dividing the parties. Under current legislation, the government is required to call another snap election if a deadline for forming an executive passes. However, there is some room for manoeuvre, as there is no obligation to set a poll date immediately, rather within a ""reasonable period"". The government could theoretically go for the nuclear option of reintroducing direct rule, but that move, which would require emergency legislation at Westminster, looks unlikely at this stage at least. After yesterday's 4pm deadline passed without the required nomination of a first and deputy first minister, Mr Brokenshire indicated he would create some more breathing space. How the government will approach fresh negotiations during this period will become clearer when the Secretary of State addresses the Commons. Without a ruling executive or agreed budget for the upcoming financial year, control of Stormont's finances will be handed to a senior civil servant tomorrow, albeit subject to tight spending constraints. Mr Brokenshire yesterday said that situation was ""not sustainable"", making clear the final window for negotiations would not be allowed to drift. ""I think there are a short few weeks in order to resolve matters,"" he said. ""The reason I say that is because of the stark issue in relation to public services here in Northern Ireland and the lack of a budget having been set, and therefore it is the impact on public services on having an extended period that is very much at the forefront of my mind in terms of the responsibilities that we have as the UK Government to provide that assurance to the public here."" Sinn F��in and the Democratic Unionists have blamed each other for the breakdown of the talks on Sunday night. DUP leader Arlene Foster claimed Sinn F��in's ""inflexible"" approach to negotiations was to blame. She said she did not believe another election would solve anything. Sinn F��in leader in the North Michelle O'Neill-claimed the DUP had failed to live up to previous agreements and were standing in the way of progressive policies. ""We are standing firm - previous agreements need to be implemented,"" she said. ""We came at the negotiations with the right attitude, wanting to make the institutions work, wanting to deliver for all citizens."" Talks collapsed after Sinn F��in announced it would not be nominating a deputy first minister in the Assembly before the deadline. Without both first and deputy first ministers, it is impossible to form an executive.", -3585,2017/3/28,http://abcnews.go.com/Politics/shots-fired-capitol-suspect-custody/story?id=46444214,Woman in custody after 'criminal' incident near Capitol, police say 'no nexus to terrorism',,"U.S. Capitol Police officers have apprehended a female driver after she struck another vehicle and nearly hit several officers near the Capitol, police said this morning. At 9:22 a.m., Capitol Police officers observed an ""erratic and aggressive driver"" in the vicinity of 100 Independence Ave., according to Eva Malecki, the communications director for the United States Capitol Police, who briefed reporters near the scene at Bartholdi Park in Washington. As the officers tried to stop the vehicle, the driver made a U-turn and fled the scene, apparently striking another vehicle and nearly hitting officers. A brief pursuit ensued. Her car was stopped at Washington and Independence avenues, near the U.S. Botanic Garden and the Rayburn House Office Building, and the driver fled on foot, police said. Capitol Police fired shots in an attempt to stop the suspect. No one was hit, police said. An email alert from Capitol Police was sent to Hill staffers, asking them to stay clear of the area. Some of the House office buildings in the vicinity were temporarily placed on lockdown; those lockdowns have been lifted. The suspect was apprehended at 3rd Street and Independence Avenue and was taken into custody. No one was injured during the arrest, according to Malecki. The incident appears to be criminal in nature, with no nexus to terrorism, she added. The FBI is assisting Capitol Police at the scene. It is unclear whether the driver had a motive or if it was an intentional act, according to the FBI. As of now, the Capitol is open to the public. The Capitol Police is handling the investigation, according to Malecki. Scene in Capitol Hill where a vehicle struck police cruiser and person took off on foot. Before being taken into custody pic.twitter.com/69eJuZF3oE Sounded like shots fired at the Capitol. Our view from Rayburn. pic.twitter.com/gPerfVGM2s The White House called the incident ""a very troubling instance"" and commended the work of the Capitol Police during a busy tourist time in the city. ""I appreciate the efforts that the Capitol Police and others took. You literally watched people put their lives in harm's way today to protect tourists and other citizens,"" White House press secretary Sean Spicer said today. ""It's reassuring to know so many brave men and women are willing to make sure that the city stays safe."" ABC News' Mike Levine, Benjamin Siegel and Serena Marshall contributed to this report." -3586,2017/3/28,http://abcnews.go.com/Politics/wireStory/perez-asks-democratic-party-staff-resignations-46446478,Perez asks for Democratic Party staff resignations,,"New Democratic National Committee Chairman Tom Perez is asking all paid party employees to resign as he tries to rebuild the embattled organization. Perez spokeswoman Xochitl Hinojosa confirms that the chairman is overhauling the DNC's internal structure in the coming weeks. Some staffers will be rehired for permanent positions. Perez also is expected to bring some of his top aides who worked for him when he was former President Barack Obama's labor secretary. Democrats elected Perez in February after an unusually competitive chairman's race. Perez promised to rebuild state and local Democratic parties that depend on the national party for support. Since the November election, the DNC has been a forceful critic of Republican President Donald Trump. Hinojosa praised DNC staffers for that work.", -3587,2017/3/28,http://abcnews.go.com/Politics/gov-chris-christie-work-jared-kushner-combat-opioid/story?id=46441611,"Chris Christie denies rift with Jared Kushner, says they 'get along just great'",,"New Jersey Gov. Chris Christie denied any tension between him and senior presidential adviser Jared Kushner as the two prepare to team up in a new White House initiative to combat the nation's opioid epidemic, saying on ""Good Morning America"" today that they ""get along just great."" When he was the U.S. attorney for New Jersey, Christie prosecuted Kushner's father, real estate mogul Charles Kushner, who was sentenced to prison in 2005 on 18 counts of tax evasion, witness tampering and making illegal campaign contributions. Christie was one of the biggest supporters of Donald Trump's presidential campaign last year and, according to two top Republican officials, was vetted as a possible vice presidential pick. Trump ultimately chose Mike Pence as his running mate and asked Christie to head his transition team. Just days after Trump's election victory over Democratic candidate Hillary Clinton, Trump asked Pence to take over transition team efforts from Christie. The staff shakeup coincided with unconfirmed reports that Jared Kushner, who is married to Ivanka Trump, was at the center of infighting among transition team members. But in a rare interview with Forbes last year, Kushner denied that he was behind Christie's ouster. ""Six months ago, Gov. Christie and I decided this election was much bigger than any differences we may have had in the past, and we worked very well together,"" Kushner told Forbes last November. ""The media has speculated on a lot of different things, and since I don't talk to the press, they go as they go, but I was not behind pushing out him or his people."" Now Christie is set to lead a new White House commission tasked with tackling opioid addiction nationwide. The commission will fall under the White House Office of American Innovation, which Trump unveiled Monday. The president appointed Kushner to lead the office. ""The Office of American Innovation will bring a creative and strategic approach to many critical issues and intractable problems that affect Americans' quality of life,"" Kushner said in a statement issued by the White House on Monday. ""We have an opportunity to identify and implement solutions by combining internal resources with the private sector's innovation and creativity, enabling the federal government to better serve Americans."" According to the Centers for Disease Control and Prevention, 91 Americans die every day from overdosing on opioids, including heroin and prescription opioids. Deaths in the United States from prescription opioids such as oxycodone, hydrocodone and methadone have more than quadrupled since 1999. ""They do need the help, and this White House is going to step up to help them,"" Christie told ""GMA."" In addition to addressing the epidemic of opioid and other drug use, the White House Office of American Innovation will create task forces to focus on other initiatives, including reforming care for veterans. When asked on ""GMA"" today whether things were tense with Kushner, given their history, Christie replied, ""Not at all."" ""Listen, that stuff is ancient history. It's over 12 years ago. And Jared and I have worked incredibly well on this issue and, by the way, on a whole bunch of other issues during the campaign,"" Christie added. ""We are working hard because we know our job is to try to make sure that this White House is as successful as it can be for the people of this country who elected Donald Trump to bring change to our country and bring change to this town. And anything I can do to help, I will, and Jared and I get along just great.""", -3588,2017/3/28,http://abcnews.go.com/US/wireStory/christie-aides-sentenced-jersey-bridge-case-46436933,Ex-Christie aide gets prison term for bridge revenge plot,,"A former aide to Gov. Chris Christie was sentenced Wednesday to two years in prison for his role in a political revenge plot involving traffic jams at the country's busiest bridge, a scandal that sank the Republican's presidential aspirations. Bill Baroni, 45, was the first of two former Christie allies to be sentenced Wednesday after being convicted in November of all the counts against them, including wire fraud, conspiracy and misusing the bridge for improper purposes. Bridget Kelly, 44, will be sentenced later in the day. Both had asked for probation. U.S. Judge Susan Wigenton told Baroni he misled a legislative committee when he tried to pass the gridlock off as a legitimate traffic study and later misled the jury with the same contention. ""It was completely intended to wreak havoc,"" she said. ""It only served a punitive purpose. You clearly knew, and know today, that it was not"" legitimate. The government's star witness, David Wildstein, testified that he and the co-defendants had sought to retaliate against the Democratic mayor of nearby Fort Lee for not endorsing Christie's re-election. Fort Lee was plunged into gridlock for four days in September 2013. Text messages and emails produced at trial showed Mayor Mark Sokolich's increasingly desperate pleas for help being ignored by Kelly and Baroni. ""I let a lot of people down who believed in me and relied on me. Most of all I let Mark Sokolich down. That was my choice and my responsibility. And I made the wrong choice,"" Baroni told the judge before she sentenced him to prison and to 500 hours of community service. ""I was wrong and I am truly sorry, and I've waited three years to say that,"" he said. Assistant U.S. Attorney Lee Cortes said that Baroni's time as a state lawmaker, lawyer and school teacher gave him the experience and judgment to conduct himself ethically. ""But when Bill Baroni was put to the test and made a choice, he chose to abuse his official power. And then he chose to lie about it,"" Cortes said, calling Baroni's conduct ""brazen, calculated, and a mean-spirited abuse of power"" that had ""real-life consequences on the people he was supposed to serve."" The scandal derailed Christie's presidential aspirations and likely cost him a chance to be President Donald Trump's running mate. While the sentencing was happening Wednesday, Christie was at the White House to launch a drug addiction task force. Questions remain over when, and how much, Christie knew about the plan to realign access lanes from Fort Lee to the bridge's upper level. The bi-level bridge is considered the busiest in the country. At the time of the traffic jams, Kelly was Christie's deputy chief of staff and Baroni was his appointee to the Port Authority, overseeing Wildstein as deputy executive director. Baroni testified that Wildstein was viewed as Christie's enforcer, and several Port Authority officials testified that he was almost universally disliked at the agency. Wildstein, a former political blogger and classmate of Christie's, was hired as the director of interstate capital projects at the powerful Port Authority of New York and New Jersey, which operates the bridge. The position was created for Wildstein, according to testimony. Christie was not charged with any wrongdoing. But his version of events ""?that he was not aware that anyone in his office was involved until months after the fact ""?was contradicted by testimony from Baroni, Kelly and Wildstein. In addition to focusing on dozens of text messages and emails exchanged between the co-conspirators ""?including Kelly's infamous ""time for some traffic problems in Fort Lee"" email ""?testimony at the trial painted an unflattering portrait of the Christie administration's modus operandi. Christie was described as cursing and throwing a water bottle at Kelly over an apparently innocent question and another time leaving a profane and threatening voicemail for a county officeholder who had angered him. Wildstein testified that Christie's subordinates used the Port Authority, the bistate agency that oversees huge chunks of New York's transportation and commerce infrastructure, as a source of political favors for Democratic politicians whose endorsements he sought. ""?Contact Porter at https://www.twitter.com/DavidPorter""�AP", -3589,2017/3/28,http://abcnews.go.com/Business/wireStory/ford-recalls-440k-vehicles-fire-risk-door-latch-46443564,"Ford recalls 570K vehicles for fire risk, door latch trouble",,"Ford is recalling more than 570,000 vehicles in North America and Europe to fix separate problems that can cause engine fires and doors to fly open unexpectedly. The recalls will hit the company's bottom line in the first quarter of this year. Ford said in a Wednesday filing with securities regulators that the recalls will cut pretax earnings by $295 million. The engine fire recall covers over 360,000 vehicles in North America and Europe. In North America it includes Escape SUVs from the 2014 model year, plus the 2014 and 2015 compact Fiesta ST, the 2013 and 2014 Fusion midsize car and the 2013 through 2015 Transit Connect small van. In Europe, the recall covers the 2010 through 2015 C-Max hybrid and Focus small car, and the 2013 through 2015 Transit Connect van. All the vehicles have 1.6-Liter four-cylinder turbocharged engines. A lack of coolant circulation could cause the engine to overheat, causing a crack in the cylinder head, according to Ford. If that happens, pressurized oil can leak through the crack, and if it hits a hot surface, could cause and engine fire. The company says it has 29 reports of fires in the U.S. and Canada, but no injuries. Owners can continue to drive the vehicles safely and park them in garages or other structures, spokeswoman Elizabeth Weigandt said. The company will mail customers instructions from the owner's manual on how to check and refill coolant. Dealers also will check coolant levels for owners. If vehicles leak coolant or overheat, they should be taken to a dealer, Weigandt said. If parts are available, dealers will install a coolant level sensor and a warning light on the dashboard telling owners if the coolant level is low, Weigandt said. She did not know if the company will fix coolant leaks, but said she would check. The company also is adding 211,000 vehicles to a 2015 recall to replace faulty door latches. That recall covers the 2014 Fiesta and the 2013 and 2014 Fusion and Lincoln MKZ. The expansion brings the total from the 2015 recall to nearly 757,000. Door latches have been a major problem for Ford vehicles during the past three years, resulting in investigations by the National Highway Traffic Safety Administration and recalls of over 3 million vehicles. The company recalled more than 2.3 million vehicles last fall because their door latches weren't working properly. That recall included the 2012-2015 Ford Focus and the 2013-2015 Ford Escape and C-Max. In May 2014, Ford recalled 692,700 Escape SUVs from the 2013-2014 model years because their doors didn't latch properly. In the latest recall a pawl in the door latch can break, either stopping the doors from closing or causing them to open while the cars are being driven. The company says it's unaware of any crashes or injuries involving the vehicles added to the 2015 recall. Last year door latch recalls cost the company $640 million. The cost of the latest recall is included in Ford's most recent earnings guidance, the company said in a filing with the U.S. Securities and Exchange Commission. ""��?Auto Writer Dee-Ann Durbin contributed to this report.", -3590,2017/3/28,http://abcnews.go.com/US/severe-storms-leave-200000-people-power-texas/story?id=46439691,"Severe storms leave nearly 200,000 people without power in Texas",,"Severe thunderstorms and damaging winds in parts of Texas overnight left nearly 200,000 residents without power as of early Wednesday morning. Much of the power failures centered around the Dallas-Fort Worth area of Texas, according to the Oncor Electric Delivery utility company, which put the total number of statewide outages at 197,221 as of 4:46 AM local time. The weather damaged houses, blew over trees and caused multiple car accidents across Texas. There was significant damage reported in the Dalton Ranch Community in Rockwall, Texas, where multiple homes were damaged and five houses were reportedly destroyed, according to ABC affiliate WFAA. Dalton Ranch in Rockwall #wfaaweather pic.twitter.com/OJ0pyQ2In4 In Arlington, Texas, wind gusts were reportedly strong enough to take down part of a brick wall. Winds strong enough to blow over several sections of a brick wall near Ponselle Dr. and S. Matlock Rd in Arlington. @NWSFortWorth pic.twitter.com/UEDpnzCkDK The poor weather in Texas continued from Tuesday, when three storm chasers were killed in a car accident after their vehicles crashed on a rural road in West Texas. Tornadoes and heavy rain had been reported nearby at the time of the crash.", -3591,2017/3/29,http://abcnews.go.com/US/storm-chasers-die-texas-car-crash-authorities/story?id=46432879,"3 storm chasers die in Texas car crash, authorities say",,"Three storm chasers died in a car crash in Texas, according to authorities. Around 3:30 p.m. on Tuesday, a black Chevy Suburban was traveling northbound on Farm to Market Road 1081 before it disregarded a stop sign and collided with a black Jeep that was traveling westbound on Farm to Market Road 2794, the Texas Department of Public Safety said in a press release. The two-car crash occurred about five miles west of the city of Spur, according to the Texas Department of Public Safety. Both drivers and one passenger were pronounced dead at the scene, authorities said, adding that all three people were storm chasers. The driver of the Suburban was identified by police as Kelley Gene Williamson, 57, of Cassville, Missouri. Police said he was not wearing his seat belt and was ejected from the vehicle. The passenger in the Suburban, Randall Delane Yarnall, 55, also of Cassville, was wearing his seatbelt, police said. ""This afternoon we learned that three people died in a car accident in Texas, including two contractors for the Weather Channel, Kelley Williamson and Randy Yarnall,"" the Weather Channel said in a statement. ""Kelley and Randy were beloved members of the weather community. We are saddened by this loss and our deepest sympathies go out to the families and loved ones of all involved."" The driver of the Jeep was identified as Corbin Lee Jaegar, 25, of Peoria, Arizona. He was wearing a seatbelt at the time, police said. The location of the crash was either in or near an area under a tornado warning, ABC News Lubbock affiliate KAMC reported. A tornado watch is in effect for Dickens County until 11 p.m. Authorities are continuing to investigate. A severe thunderstorm watch has been issued for from Del Rio to Amarillo until about 9 p.m. Tuesday, with large hail and tornadoes possible. Fourteen million Americans from Texas to Oklahoma may be affected by possible storms overnight. ABC News' Jessica Zellermayer and Melissa Griffin contributed to this report.", -3592,2017/3/29,http://abcnews.go.com/Politics/wireStory/lady-helps-present-courage-awards-13-women-46447081,First lady helps present courage awards to 13 women,,"Melania Trump helped present State Department awards Wednesday to 13 women from around the globe who were recognized for demonstrating courage and leadership in the face of adversity, a group she praised a ""true heroes."" The first lady, on her first visit to Cabinet department, joined Thomas Shannon, undersecretary of state for political affairs, to present the Secretary of State's International Women of Courage Award. Secretary of State Rex Tillerson was traveling to Turkey. The award is given to women around the world who have shown courage and leadership while advocating for peace, justice, human rights, gender equality and women's empowerment ""?often at personal risk. One of the honorees, Natalia Ponce de Leon, of Colombia, started a foundation to defend and protect the human rights of victims of acid attacks after a stalker doused her face and body with sulfuric acid in March 2014. Another woman, Malebogo Molefhe, of Botswana, became an advocate for female victims of gender-based violence after she was attacked, including being shot eight times, by an ex-boyfriend in 2009. She uses a wheelchair due to extensive spinal cord injuries suffered during the assault. During brief remarks, Mrs. Trump asked the audience of women and girls to imagine being any of the 13 women on the stage with her. ""Ask yourself if you would have the fortitude of spirit, the courage of your convictions and the enormous inner strength required to stand up and fight against such overwhelming odds,"" she said. ""Amazingly, each of our honorees has courageously answered 'Yes' to those questions."" ""These honorees, who have fought on the front lines against injustice, are true heroes,"" she continued, adding that their bravery is a reminder that ""there is always hope whenever the human spirit is brought to bear in the service of others."" Wednesday's honorees hail from Bangladesh, Botswana, Colombia, the Democratic Republic of Congo, Iraq, Niger, Papua New Guinea, Peru, Sri Lanka, Syria, Turkey, Vietnam and Yemen. In April, the women will take part in a State Department-sponsored exchange program in several U.S. cities. More than 100 women from more than 60 countries have been recognized with courage awards since 2007, the department said. Mrs. Trump participation in the award ceremony amounted to a rare public appearance for her in Washington, outside of the White House. She hosted a White House luncheon for International Women's Day earlier this month. Wednesday's appearance fell in the middle of a busy week for the first lady in the nation's capital. She and President Donald Trump hosted a White House reception Tuesday night for all 100 U.S. senators and their spouses. Mrs. Trump also planned a third appearance Thursday in Washington, but the White House has not released any details. Since her husband's Jan. 20 inauguration, the first lady has lived mostly at the family's Trump Tower penthouse in midtown Manhattan with the couple's son, Barron, who recently turned 11. She often meets the president in Palm Beach, Florida, when he spends weekends at his waterfront estate there. Trump has said his wife and son will move to the White House after Barron's school year ends. ""?Follow Darlene Superville: http://www.twitter.com/dsupervilleap", -3593,2017/3/29,http://abcnews.go.com/US/wireStory/security-guard-shoots-man-ferguson-apartment-complex-46444724,Security guard shoots man at Ferguson apartment complex,,"Police in Ferguson, Missouri, are investigating after a private security guard shot an armed man at the same apartment complex where Michael Brown was killed by a police officer in August 2014. The St. Louis Post-Dispatch ( http://bit.ly/2oxyxGF ) reports that the shooting happened Tuesday evening at Canfield Green apartments. Police Chief Delrish Moss says a man tried to scare a loose dog away from children when he and the dog owner got into a heated exchange. Moss says the dog owner pointed a gun at the man. A security guard shot the dog owner when he refused to drop his weapon. Moss says the man is hospitalized with non-life-threatening injuries. Some people got into a heated exchange with an officer investigating the shooting, but no arrests were made. ""?Information from: St. Louis Post-Dispatch, http://www.stltoday.com", -3594,2017/3/29,http://abcnews.go.com/International/wireStory/pope-demands-urgent-action-protect-civilians-iraq-46439880,Pope demands 'urgent' action to protect civilians in Iraq,,"Pope Francis demanded urgent action Wednesday to protect civilians in Iraq, saying forces involved in the battle for Mosul have an obligation to protect innocents following a recent spike in civilian casualties. Francis issued a special appeal for peace in Iraq at the end of his general audience. He greeted an interfaith group of Iraqis in St. Peter's Square, encouraging them in helping Iraq find reconciliation among various ethnic and religious groups. Francis said that he was particularly concerned about Iraqis trapped by recent fighting to take Mosul back from Islamic State group militants. ""In expressing profound sadness for the victims of the bloody conflict, I renew my appeal that everyone commit themselves to using all efforts to protect civilians, an imperative and urgent obligation,"" he said. The U.N. human rights office has called on the U.S.-led coalition conducting airstrikes on Mosul to minimize civilian casualties, saying at least 300 people have been killed since mid-February including 140 from a single March 17 airstrike incident on a house. The U.N. says IS militants are using human shields and setting a trap for the coalition. Amnesty International has said the rising civilian death toll suggested the U.S.-led coalition wasn't taking adequate precautions as it helps Iraqi forces try to retake the city, though the U.S. has denied any loosening of the rules of combat. The Iraqi group that met privately with Francis before the audience included Shiite and Sunni Muslims as well as representatives from Iraq's Christian, Yazidi, Sabei and Mandei minorities. The delegation engages in dialogue with the Vatican's office of interfaith relations.", -3595,2017/3/29,http://abcnews.go.com/Politics/wireStory/kaine-oppose-trump-court-pick-join-filibuster-46445168,"Kaine to oppose Trump court pick, join filibuster",,"Sen. Tim Kaine is joining with most of his Democratic colleagues and says he will vote to filibuster President Donald Trump's choice of Judge Neil Gorsuch to serve on the Supreme Court. The Virginia Democrat and vice presidential running mate last year for Hillary Clinton cited Gorsuch's opinion that employers have the right to deny government-mandated contraception coverage for their workers in explaining his opposition. Kaine said such rulings ""do not demonstrate a philosophy that belongs on the Supreme Court."" Democrats are going to filibuster Gorsuch's nomination during floor debate next week, and Senate Majority Leader Mitch McConnell is expected to lead an effort to change Senate rules to permit Gorsuch to be confirmed by a simple majority vote. Current rules set a 60-vote threshold.", -3596,2017/3/29,http://abcnews.go.com/Politics/nunes-white-house-grounds-visit/story?id=46430972,What we don't know about Nunes' White House grounds visit,,"On Monday, House Intelligence Committee Chairman Devin Nunes confirmed that he traveled to the White House last week in order to meet a source and view information related to surveillance that ""incidentally collected"" information about associates of President Donald Trump. Nunes' visit to the White House last Tuesday, his move to personally brief President Trump on the matter on Wednesday -- before sharing the information with members of his committee -- and his prior position as a member of Trump's transition team have led to calls for his recusal from his post leading the House investigation into Russian interference into the presidential election. The top Democrats on Capitol Hill: Senate and House Minority Leaders Chuck Schumer and Nancy Pelosi, as well as the House Intelligence Committee's Ranking Member, Adam Schiff, all called for Nunes' removal from the probe Monday. Even some Republicans, like Sens. Lindsey Graham and John McCain questioned Nunes' actions. Both Speaker of the House Paul Ryan and Nunes himself said there would be no recusal, with Nunes saying Tuesday he has ""no idea"" why Democrats would call for his removal from the investigation. Nunes has not provided the answers to a few outstanding questions about his activities: What is in the documents Nunes viewed? Nunes has provided limited details about the information he obtained over the course of his investigation, but said there are ""dozens of reports"" showing that ""incidentally collected information about U.S. citizens involved in the Trump transition"" was gathered during the course of ""normal foreign surveillance."" Last week, it was revealed that Nunes was unsure whether associates of Trump participated in the intercepted communications or whether those persons were simply mentioned or referred to by others. The information seen by Nunes has not yet been shared with others, though the congressman said Tuesday that he hopes to share it with other members of the intelligence committee. Who cleared Nunes into the White House? All visitors to the White House, even members of Congress, must be cleared into the complex by someone with access to the area, such as a White House staffer. This process includes submitting personal information to Secret Service to ensure there is no security threat and to keep a record of visitors. Nunes insisted that a secure location at the White House complex was used because the information he went to view was already available to the executive branch and not to Congress. However, this would not preclude Nunes from using a Sensitive Compartmented Information Facility (SCIF) in another location to prevent his conversations or classified information from being breached by those without access. Who is his source? Nunes has declined to name the person he met with at the White House complex, but told Bloomberg that it was a member of the intelligence community, not a White House staffer. This information further raises the question of why the meeting was held on the White House grounds. SCIFs are located in the offices of each intelligence agency. Unless Nunes' source works out of the White House complex, they too would require to be cleared to enter the grounds. However, Nunes later briefed Trump on the information provided by the source, a move that press secretary Sean Spicer said wouldn't make sense if the information originated from the White House -- seemingly indicating that the source works elsewhere. Given that the source was not someone employed by the White House, it is possible that an additional person was involved in securing Nunes' access to the grounds and to a SCIF. Nunes told CNN Monday that ""nobody was sneaking around"" and that he wasn't hiding his presence at the White House. Spicer pushed back against suggestions at Monday's press briefing that the administration cooperated with the representative's actions. What does the White House know? On Friday, before it was publicly known that Nunes visited the grounds earlier in the week, Spicer was asked if the chairman received the documents showing ""incidental collection"" from the White House. ""I don't know where he got them from,"" said Spicer, who didn't mention Nunes' visit. Asked again about the source of Nunes' information on Monday, Spicer said he was unaware, adding, ""I know in his public statements he's talked about having multiple sources. And so I don't know how he derived the conclusion that he did."" Pressed on whether the details could have come from the White House, Spicer said ""anything is possible"" despite his earlier claim that the circulation of information from a White House staffer to Nunes and back to Trump wouldn't be logical. ABC News' Mike Levine contributed to this report.", -3597,2017/3/29,http://abcnews.go.com/Politics/chris-christie-nunes-white-house-grounds-visit-wouldnt/story?id=46443083,"Chris Christie on Nunes' White House grounds visit: 'Wouldn't have been the way I would""ve done things'",,"As House Intelligence Committee Chairman Devin Nunes faces growing calls to step aside from the investigation of Russia's interference in the 2016 U.S. presidential election, New Jersey Gov. Chris Christie admitted he didn't agree with Nunes' actions but said recusal is a ""personal decision."" The calls for Nunes to recuse himself began after it was revealed that he visited the White House grounds last week to meet an unnamed source the day before publicly sharing details about surveillance that, Nunes said, ""incidentally collected"" information on associates of Donald Trump. Nunes' role on Trump's transition team has added to concerns that he can't conduct an impartial investigation. ""Wouldn't have been the way I would've done things, but I don't know whether that means he has to recuse himself,"" Christie said on ""Good Morning America"" today. ""That's a personal decision the congressman has to make on his own."" Top Democrats on Capitol Hill ""?including Senate and House Minority Leaders Chuck Schumer and Nancy Pelosi and the House Intelligence Committee's ranking member, Adam Schiff ""?called for Nunes' removal from the House investigation on Monday. Even some Republicans, including Sens. Lindsey Graham and John McCain, questioned Nunes' actions. ""That's a very, very personal decision about what Congressman Nunes thinks is best to do for him, his constituents and the good of the investigation,"" Christie told ""GMA."" ""I think we're overblowing how much personal recusal matters,"" he added. ""Congressman Nunes will make his own judgment in his own time."" Nunes said on Tuesday he has ""no idea"" why Democrats are calling for him to step aside from the investigation. He raised eyebrows when he held an unexpected press conference on March 22 and then briefed the president ""?before making members of his committee aware ""?that information about Trump's transition team and possibly Trump was collected after the election in November. Although Nunes maintained that the intelligence gathering was conducted legally, it prompted Trump, who claimed Barack Obama ""had my 'wires tapped' in Trump Tower"" when he was president, to say he felt ""somewhat"" vindicated. Nunes defended himself in an interview on CNN's ""The Situation Room"" on Monday, arguing that his March 21 visit to the White House grounds was commonplace and part of an investigation into the unmasking of Americans in intelligence reports that began before Trump's wiretapping claims. ""I had been working this for a long time with many different sources and needed a place that I could actually finally go because I knew what I was looking for and I could actually get access to what I needed to see,"" Nunes said. ""It wasn't at night ... Nobody was sneaking around. All it was was just a place where I had to go to be able to review this information."" The House and Senate Intelligence committees are conducting separate investigations on any possible collusion between Russia and Trump's presidential campaign, and FBI Director James Comey said his agency is leading its own inquiry into the matter. ABC News' Adam Kelsey, Mike Levine, Ali Rogin and Benjamin Siegel contributed to this report.", -3598,2017/3/29,http://abcnews.go.com/Politics/house-intel-committee-chairman-devin-nunes/story?id=46417597,Everything you need to know about House Intelligence Committee Chairman Devin Nunes,,"Over the last week, California Rep. Devin Nunes has been in the national spotlight for his actions as chairman of the House Intelligence Committee. It was revealed Monday that Nunes was on White House grounds March 21 reviewing information pertaining to what he said was the legal, ""incidental""?collection of surveillance on President Donald Trump's associates, and possibly Trump himself, one day before he held an impromptu news conference announcing his findings and then briefed the president. Now, Democrats -- including the ranking member on the intelligence committee, Rep. Adam Schiff, D-California -- are calling for Nunes""?recusal from the committee's investigation into alleged ties between the Trump campaign and Russia. Nunes said Tuesday he won't step aside. Here a look at the man leading the House Intelligence Committee: Age: 43 (Born Oct. 1, 1973) Family: Nunes and his wife, Elizabeth, have three daughters -- Margaret, Evelyn and Julia. He and his family live in Tulare, California. Education: Nunes holds a bachelor's degree in agricultural business and a master's degree in agriculture from California Polytechnic State University, San Luis Obispo. Life before Congress: Born and raised in California, Nunes worked on his family's farm and raised cattle as a teen. Before running for Congress, Nunes was appointed the California state director for the U.S. Department of Agriculture's Rural Development section by President George W. Bush in 2001. What he does now: Nunes currently represents California's 22nd congressional district, which includes part of Tulare and Fresno counties. First elected in 2002, Nunes has been serving in the House of Representatives for over 14 years. Besides chairing the House Intelligence Committee, he also sits on the Committee on Ways and Means. He also made headlines two years for taking on the Department of Defense regarding the building of an intelligence base in Azores, Portugal. He accused the department of misleading Congress members about the cost of building the intelligence center on the island, and the department fired back, accusing Nunes of being motivated by his ties to the Azores, a group of islands that are part of Portugal, and the Portuguese government. Nunes' family is from the Azores, according to his biography on his website. Chairing the House Intelligence Committee: Nunes joined the House Intelligence Committee in 2011 and was appointed chairman by then-House Speaker John Boehner in 2015. As one of the ""Gang of Eight,""?Nunes is privy to top secret intelligence reports and classified information. The committee announced on Jan. 25 that it would launch a bipartisan investigation into Russia's cyberattacks against the U.S., any intelligence regarding links between the Russian government and campaign individuals, and any possible leaks of classified information. His relationship with Trump: During the 2016 primaries, Nunes withheld his endorsement of any particular candidate because he said as House Intelligence Committee chair, he wanted to remain neutral and brief all the candidates. After Trump clinched the GOP nomination, Nunes came out in support of Trump and organized a fundraiser for the Republican nominee in August 2016. Nunes was named to the executive committee of Trump's transition team on Nov. 11, 2016. During the transition phase, he advised Trump on his Cabinet nominees and other top positions within the incoming administration. According to McClatchy, Nunes suggested Gen. James Mattis for defense secretary. Nunes has been largely supportive of Trump. However, on Dec. 9, 2015, then-candidate Trump called for a ""gotal and complete shutdown""?of all Muslim entry into the U.S., and the day after, Nunes told reporters that he wasn't going to involve himself in the presidential race, but added, ""I don""t think that ISIS has any trouble recruiting, but the comments clearly are not helpful.""?,-1""", -3599,2017/3/29,http://abcnews.go.com/US/alleged-getaway-driver-instructed-slain-teen-burglary-suspects/story?id=46444730,"Alleged getaway driver 'instructed' slain teen burglary suspects to rob home, court documents say",,"The alleged getaway driver now facing possible murder charges in the fatal shooting of three teen burglary suspects outside Tulsa, Oklahoma, on Monday allegedly ""instructed"" the trio to rob the house, according to a probable cause affidavit. On Tuesday, police with the Wagoner County Sheriff's Office identified the alleged driver as 21-year-old Elizabeth Marie Rodriguez. Authorities also released the names and ages of the slain teens: Maxwell Cook, 19; Jacob Redfern, 17; and Jaycob Woodriff, 16. Killing of 3 teens during burglary may test Oklahoma 'stand your ground' law Authorities said that around 12:30 p.m. Monday, Zach Peters, the son of the homeowner, called 911 to report that people had broken into his home and that he'd shot them in the kitchen area with an AR-15 rifle. Peters was in the house with his father at the time, police said. Neither were hurt. Police said when they arrived, they found three deceased male teenagers. Two were in the kitchen area of the house; one appeared to have run from the home after being shot but had died in the driveway. Chief Deputy Les Young said the teens had been shot multiple times. According to police, Rodriguez turned herself into authorities after the shooting, allegedly saying that she had information about the incident. According to the affidavit, Rodriguez told police that she'd dropped the teens off at the residence and was waiting for them to return. The affidavit said that she ""willfully"" took the teens to the house and only left when she heard gunshots. ""It was learned through a witness at the scene that Rodriguez had previous knowledge of the house and the homeowner even [called] him by his first name,"" the affidavit said. ""Rodriguez planned the burglary and took the three suspects to the residence on two separate occasions on today's date wanting to steal items."" Rodriguez was arrested on three counts of felony first-degree murder (for deaths that occur during the commission of a felony) and three counts of first-degree burglary. She has yet to be formally charged. Authorities said they had not determined if Peters would face charges. Oklahoma has a ""stand your ground"" law. State law presumes homeowners have a fear that justifies use of defensive force just by virtue of someone breaking into a home. Rodriguez is scheduled to appear in court on April 5.", -3600,2017/3/29,http://www.cnn.com/2017/03/29/europe/brexit-article-50-theresa-may-security/index.html,Theresa May accused of 'blatant threat' against EU on security,London (CNN)British Prime Minister Theresa May has been accused of threatening to use the safety of UK and European citizens as a bargaining chip in Brexit talks.,"In the formal letter that notified the European Union of Britain's intention to leave, May warned that the failure to strike a deal on any future relationship would have consequences for security. ""In security terms a failure to reach agreement would mean our cooperation in the fight against crime and terrorism would be weakened,"" she wrote in the letter. In all, May mentioned security 11 times in the six-page letter. 'Shameful threat' Tim Farron, leader of the Liberal Democrats, who oppose Brexit, said her link between trade and security was ""shameful"" and a ""blatant threat."" ""Security is too important to be used as a bargaining chip and this will backfire in any negotiations, which rather than building up alliances will leave Britain even more isolated,"" he said. Labour MP Yvette Cooper echoed the concerns. ""Completely irresponsible to threaten, gamble or bargain on national security,"" she wrote on Twitter. Speaking in the Commons, Stephen Kinnock of the opposition Labour Party read out an excerpt from the letter and asked, ""Is she really saying the security of our country will be traded like a bargaining chip in these negotiations?"" May replied that it would be important to negotiate a future deal on security. ""We have a relationship with the European Union, there are certain elements of the European Union in justice and home affairs that we're currently members of that in leaving the European Union we would not be members of, and we need to negotiate what the future relationship will be. ""It's very simple, it's very pragmatic and the aim of this will be to ensure cooperation on these matters."" Britain is a member of Europol, the EU's law enforcement agency, which co-ordinates the sharing of intelligence on terrorism and organized crime between member states. It is also arguably the union's strongest defense power, according to the Institute for Government. ""It is one of only two member states possessing 'full-spectrum' military capabilities (including a nuclear deterrent) and one of only five spending 2% of GDP on defense. It also holds a permanent seat on the UN Security Council and has the largest military budget within the EU,"" the institute said. A Downing Street spokesman declined to expand on the letter. ""The Prime Minister's words speak for themselves. It's a simple fact that if we leave the EU without a deal, the arrangements which we have as part of our EU membership will lapse,"" he told CNN. Trade deal sought The official start to the Brexit process came nine months after the UK voted in a hotly contested referendum that exposed deep divisions across the country. In her letter, May said the UK wanted to pursue a ""bold and ambitions"" free-trade agreement with the EU in forthcoming talks. If the country fails to strike a trade deal with Britain and defaults to trading under World trade Organization rules, it is forecast to lose 7.5% of its GDP over 15 years, according to the UK's own official estimates. May has made clear that the country will not remain in the bloc's single market or customs union, which essentially make the EU a free-trade zone. Staying in the market would likely have forced Britain to keep its borders open to all EU citizens, a key argument by the Leave campaign to exit the union. In her letter, May tried to strike a conciliatory tone with the EU, reiterating her hopes for Britain and the union to remain the closest of allies and to seek a ""deep and special partnership."" She also made clear that she wanted to avoid walking away with no deal, and proposed several principles to guide negotiations. Here are the letter's highlights: The UK won't seek membership of the single market, essentially a free-trade zone. But it will seek a 'bold and ambitious' free-trade agreement. The UK hopes to avoid a cliff-edge separation and ensure certainty for businesses. It warns that European security will be under threat if a deal is not reached. It expects the devolved regions of Scotland, Wales and Northern Ireland will be granted greater powers. The government aims to repeal EU laws and automatically adopt them into UK law for review. A White Paper on how to do this will be published Thursday. Tusk: 'We already miss you' May accepted there would be downsides of Brexit. ""We understand that there will be consequences for the UK of leaving the EU,"" she told MPs. ""We know that we will lose influence over the rules that affect the European economy. We know that UK companies that trade with the EU will have to align with rules agreed by institutions of which we are no longer a part, just as we do in other overseas markets. We accept that."" After receiving the Article 50 letter, Tusk struck a gloomy note. ""There is no reason to pretend that this is a happy day, neither in Brussels nor in London. After all, most Europeans, - including almost half the British voters, wished that we would stay together, not drift apart. As for me, I will not pretend that I am happy today,"" Tusk said. But he added that Brexit had made the 27 other nations in the EU more determined and united. ""And what can I add to this? We already miss you.""", -3601,2017/3/29,http://www.cnn.com/2017/03/29/europe/article-50-brexit-theresa-may-eu/index.html,Brexit begins: UK triggers Article 50 to begin EU divorce,"London (CNN)The UK government has formally served divorce papers on the European Union, signaling the beginning of the end of a relationship that has endured for 44 years.","Theresa May, the British Prime Minister, confirmed that the UK had triggered Article 50 of the Lisbon Treaty, beginning a legal process that must end in two years' time with Britain leaving the EU. ""This is an historic moment for which there can be no turning back. Britain is leaving the European Union,"" May told the House of Commons in London. A few minutes earlier in Brussels, the British Permanent Representative to the EU, Sir Tim Barrow, delivered a six-page formal letter of notification to Donald Tusk, the President of the European Council, in Brussels. ""The Article 50 process is now under way, and in accordance with the British people, the United Kingdom is leaving the European Union,"" May said. Latest developments Theresa May says she will accept Brexit consequences. EU chief Donald Tusk gives an emotional response to letter. Opposition leader Jeremy Corbyn slams Brexit approach as 'reckless'. Brexit architect Nigel Farage celebrates 'no point of return'. Scottish First Minister Nicola Sturgeon says Scotland has been 'ignored'. At the headquarters of the European Council Wednesday morning, Barrow emerged from a black Jaguar holding a briefcase containing the letter signed by May in Downing Street on Tuesday night. His route had been kept secret in an effort to avoid any attempts to intercept the letter. ""After nine months the UK has delivered,"" Tusk said on Twitter, moments after the letter was handed over. This official start to the Brexit process comes nine months after the UK voted in a hotly contested referendum that exposed deep divisions across the country. The Foreign Secretary, Boris Johnson, one of the leading figures in the referendum campaign, expressed his delight at the outcome. ""It's a great day,"" he said as he left a meeting of the Cabinet in Downing Street. Tusk: 'We already miss you' The split is expected to be bitter -- EU leaders will not want to make leaving their union seem easy, to deter other countries that might be mulling a referendum of their own. After receiving the letter, Tusk struck a gloomy note. ""There is no reason to pretend that this is a happy day, neither in Brussels nor in London. After all, most Europeans, - including almost half the British voters, wished that we would stay together, not drift apart. As for me, I will not pretend that I am happy today,"" Tusk said. But he added that Brexit had made the 27 other nations in the EU more determined and united. ""And what can I add to this? We already miss you."" The letter In her letter, May tried to strike a conciliatory tone with the EU, reiterating her hopes for Britain and the union to remain the closest of allies and to seek a ""deep and special partnership."" She also made clear that she wanted to avoid walking away with no deal, and proposed several principles to guide negotiations. Here are the letter's highlights: The UK won't seek membership of the single market, essentially a free-trade zone. But it will seek a 'bold and ambitious' free-trade agreement. The UK hopes to avoid a cliff-edge separation and ensure certainty for businesses. It warns that European security will be under threat if a deal is not reached. It expects the devolved regions of Scotland, Wales and Northern Ireland will be granted greater powers. The government aims to repeal EU laws and automatically adopt them into UK law for review. A White Paper on how to do this will be published Thursday. Talks to begin The triggering of Article 50 starts the clock ticking on two years of talks between May's government and the EU, which will involve everything from deals on trade, migration, education and healthcare. In the House of Commons, May promised to represent all of the UK in the negotiations to come. ""When I sit around the negotiating table in the months ahead, I will represent every person in the whole United Kingdom -- young and old, rich and poor, city, town, country and all the villages and hamlets in between. And yes, those EU nationals who have made this country their home."" But she said she accepted that some consequences were inevitable. ""We understand that there will be consequences for the UK of leaving the EU. We know that we will lose influence over the rules that affect the European economy. We know that UK companies that trade with the EU will have to align with rules agreed by institutions of which we are no longer a part, just as we do in other overseas markets. We accept that."" May had vowed to weather the storm of Britain's exit from the EU's single market and customs union, essentially a free-trade zone that the country will no longer be a part of. The EU is the UK's biggest trading partner, and experts have warned that striking a comprehensive trade deal in two years will be unlikely. The two parties can, however, continue trade talks beyond this period. Even if some terms of divorce are not settled, the UK will fall out of the union on March 29, 2019. They can split earlier if both parties agree. ""The talks will be exhausting, sometimes frustrating and mind-numbingly intricate,"" said CNN political contributor Robin Oakley. ""It seems almost impossible that a full deal on trade can be reached in two years. Some of the immediate questions can be settled, but Canada has been doing a trade deal with the European Union, and Canada hasn't just had a divorce from the European Union. Canada wanted a deal, the EU wanted a deal -- it's taken seven years."" Reaction Jeremy Corbyn, leader of the opposition Labour Party, said the May government was taking the country in a direction that was ""reckless and damaging."" He criticized May's earlier statements that her government would take no trade deal over a bad deal, and trade under default rules set out by the World Trade Organization. ""It would be a national failure of historic proportions if the Prime Minister comes back from Brussels without having secured protection for jobs and living standards,' he said. But one of the main architects of Brexit, Nigel Farage, former leader of the UK Independence Party, was jubilant. ""The impossible dream is happening. Today we pass the point of no return,"" he wrote on Twitter. In the seaside resort of Blackpool in north-west England, where the leave vote was a resounding 67.5%, there was a sense of optimism in the air. ""I feel like we're going to be free. I feel like they're going to take the shackles off us, because they have so many rules, what we can do and what we can't do,"" said resident Michael Roland, who spoke to CNN on the seafront. A kingdom divided As well as steering the negotiations with the EU, May must also contend with the fallout from Brexit at home. The Scottish parliament on Tuesday voted to seek another independence referendum, after Scotland voted overwhelmingly in favor of remaining part of the EU. ""Today the PM will take the UK over a cliff with no idea of the landing place,"" the First Minister, Nicola Sturgeon said on Wednesday. ""Scotland didn't vote for it and out voice has been ignored,"" she wrote on Twitter. The UK government has also said it will reluctantly have to consider reintroducing direct rule in Northern Ireland, if talks there over restoring a power-sharing executive fail. The British people remain deeply divided over Brexit. On Wednesday, protestors outside Parliament condemned May's approach to the split, some of them draping EU flags on their shoulders.", -3602,2017/3/29,http://www.cnn.com/2017/03/29/europe/article-50-robertson-analysis/index.html,How Britain's complicated marriage to the EU was wrenched apart,"(CNN)Britain's membership in the European Union has died, age 44. The relationship is no more after years of the UK secretly pining for its sovereignty.","Beloved by some, tolerated by most and long detested by others, the ever-intricate marriage was wrenched apart by referendum last year. The formal process will take two years and the costs could run into the tens of billions for Britain, but there is no going back. Starved of compromise when it needed it most, Britain spent the last years with the EU in and out of relationship therapy, surviving on an insufficient drip of concessions from the bloc. The last gasp came in the early hours of June 24 when 51.9% voted for termination. It held on through life support until the triggering of Article 50. But now the EU 28 is no more. It wasn't always this way. European suitors, known then as the Common Market, wooed a war-weary Britain, enjoying an on-again, off-again courtship that was almost derailed by a disapproving patriarch: French President Charles de Gaulle. His death paved the way for romance to blossom. Britain's defenses were finally broken down, and in 1973, a full marriage took place. Britain finally partnered with a like-minded equal -- at least that was the understanding. First came the honeymoon: Prosperity grew, the growth gap between Britain and founding members -- Germany, France and Italy -- began slowly to close. Incrementally, the UK became less the ""sick man of Europe."" Indeed, this side of the relationship blossomed until the financial crisis. But over time, the nuptials didn't deliver the expected parity. Fisherman, farmers and car manufacturers were among the many to complain. From the get-go, the Common Fisheries Policy allocated dwindling sea stocks away from Britain's fishermen into the arms of the continental beau. Over time, this became an open sore -- a touchstone of the relationship going wrong. British fleets were badly hurt, ports put idle and Europeans hove closer to British shores than they'd ever been allowed to before. What started as a tiny national bleed was never cauterized in time, becoming in some fishing communities an ugly hemorrhage -- a place where the ills of the relationship could fester and find voice. So too for farmers in 1984, who railed at the Common Agriculture Policy. European subsidies and pricing were perceived to be undermining livelihoods and changing the British landscape. On the industrial landscape there was upheaval as factories closed. Car manufacturer British Leyland, once a giant that strode the land, became a casualty of continental competition. It's hard to say when the rot in the relationship really set in, but by degrees, dissatisfaction and disaffection grew. For some, the relationship became uncomfortable when the European Community began evolving toward the EU. In 1990, after years of political resistance, Britain signed up to the European Exchange Rate Mechanism. It was supposed to prevent big swings in value between currencies across the EU to make it easier for members to trade with each other and ultimately introduce a single currency. Two years later, Britain was forced to withdraw when it was unable to prevent the pound from crashing. The union's open borders and single market -- demanding the free flow of goods, services, money and people -- came in to force in 1993, unlocking a dormant disease. It was not just a stealth agenda to stitch one another in to the same suit, but it also paved the way for economic migrants to leave behind their poorer, less well-serviced lives and cross Europe in search of their dreams. Whether it was true or not, many in Britain felt their country was the one in the relationship doing all the giving. What was once a waltz of joy between embracing lovers was becoming increasingly a stagger between estranging partners as wounds, sores, disease and imbalance were taking their toll. Then, after unexpectedly winning the 2015 general election, David Cameron had to fulfill an agenda promise and set an ultimatum for Brussels, hoping that things were not beyond repair. Instead, he severed his own Achilles, limped off and left the now hopeless partnership battered, dead and buried. Britain's departure from the EU's arms leaves the other lovers in this struggling union to keep the dance going. The EU, clinging ever tighter, searching for a stronger embrace, is unwilling to let any others go.", -3603,2017/3/29,http://www.cnn.com/2017/03/29/opinions/eu-cant-survive-with-business-as-usual-yanis-opinion/index.html,The EU cannot survive if it sticks to business as usual,"Yanis Varoufakis is a former Greek finance minister, co-founder DiEM25, a professor of economics at the University of Athens and a Distinguished Visiting Professor of Political Economy at Kings College, London. The opinions below belong to the author.","David Cameron -- May's predecessor who lost the Brexit referendum -- has reason to be puzzled by the upshot of his defeat. Britain is now leaving the EU because of his request for a ""variable geometry"" -- allowing Britain to opt out of basic EU tenets -- which was unceremoniously turned down by Berlin and, less consequentially, by Paris. Yet, as a direct result of Brexit, Berlin and Paris are now adopting the idea of variable geometry as the way forward for the EU. This first paradox is easier to understand when seen through the lens of the conventional European practice of making a virtue out of failure. Angela Merkel, the German Chancellor, had for years opposed the idea of a Europe that proceeds at different speeds -- allowing some countries to be less integrated than others, due to their domestic political situation. But now -- after the colossal economic mismanagement of the euro crisis has weakened the EU's legitimacy, given Euroskeptics a major impetus, and caused the EU to shift to an advanced stage of disintegration -- Mrs Merkel and her fellow EU leaders seem to think that a multi-speed Europe is essential to keeping the bloc together. At the weekend, as EU leaders gathered to celebrate the 60th anniversary of the Treaty of Rome, leaders of the remaining 27 member states signed the Rome Declaration, which says that they will ""act together, at different paces and intensity where necessary, while moving in the same direction, as we have done in the past."" The failure to keep the EU together along a single path toward common values, a common market and a common currency will come to be embraced and rebranded as a new start, leading to a Europe in which a coalition of the willing will proceed with the original ambition while the rest form outer circles, connected to the inner core by unspecified bonds. In principle, such a manifold EU will allow for the East's self-proclaimed illiberal democracies to remain in the single market, refusing to relocate a single refugee or to adhere to standards of press freedom and judicial independence that other European countries consider essential. Countries like Austria will be able to put up electrified fences around their borders. It could even leave the door open for the UK to return as part of one of Europe's outer circles. Whether one approves of this vision or not, the fact is that its chances depend on a major prerequisite: a consolidated, stable eurozone. One only needs to state this to recognize the second paradox of our post-Brexit reality: In its current state, the eurozone cannot provide the stability that the EU -- and Europe more broadly -- needs to survive. The refusal to deal rationally with the bankruptcy of the Greek state is a useful litmus test for the European establishment's capacity to stabilize the eurozone. As it stands, the prospects for a stabilized eurozone do not look good. Business as usual -- the establishment's favored option -- could soon produce a major Italian crisis that the eurozone cannot survive. The only alternative under discussion is a eurozone federation-light, with a tiny common budget that Berlin will agree to in exchange for direct control of French, Italian and Spanish national budgets. Even if this were to happen, which is doubtful given the political climate, it will be too little, too late to stabilize the eurozone. So here is the reality that Europe faces today: a proper federation of 27 member states is impossible, given the centrifugal forces tearing Europe apart. Meanwhile, a variable geometry confederacy -- of the type David Cameron had requested and which the UK might want to join after 2019 -- requires a consolidated eurozone. But this also seems impossible, given the current climate. Allowing EU member states to move in different directions and at different speeds is precisely the wrong way to address to address the differing concerns of Europeans living in different countries -- and it seems an odd way to unite them behind a single way forward for the continent. In fact, Europeans are already united by two existential threats: Involuntary under-employment -- the bitter fruit of austerity-driven under-investment -- and involuntary migration -- the result of the overconcentration of investment in specific regions. To make the European Union work again, each and every European country must be stabilized and helped to prosper. Europe cannot survive as a free-for-all, everyone for themselves, or as an Austerity Union built on de-politicised economic decision-making with a fig leaf of federalism in which some countries are condemned to permanent depression and debtors are denied democratic rights. Europe, in short, needs a New Deal -- perhaps similar to the New Deal that my organization DiEM25 unveiled in Rome at the weekend while the European elites were toasting their variable geometry -- that runs across the continent, embracing all countries independently of whether they are in the eurozone, in the European Union or in neither.", -3604,2017/3/29,http://www.cnn.com/2017/03/29/europe/europe-brexit-views/index.html,Brexit: European front pages talk of painful divorce,"(CNN)As the United Kingdom formally begins the two-year process of leaving the European Union on Wednesday, what are newspapers elsewhere in Europe saying about Brexit?","While Brexit will impact on British citizens, it will also affect residents of the other 27 EU members -- not least some 3.2 million EU nationals currently living in Britain. In Germany, the economic powerhouse of the European Union, newspaper Die Welt shows May waving from a paper boat made from the red, white and blue Union flag as the sun appears to set over the sea. ""Farewell,"" the headline reads. ""Today the British Prime Minister officially announces the divorce of the EU. For the United Kingdom it is a journey into the unknown."" The front page of the Berliner Zeitung features an image of a tattered UK flag set against the EU flag and a ""Letter to London,"" which starts ""Dear Theresa May!"" It continues, ""Great Britain is going to announce Brexit today. However not all is lost yet."" Brexit: 50 things the UK needs to do after triggering Article 50 The Frankfurter Allgemeine Zeitung talks about a ""painful divorce."" Its copy reads: ""No one knows what exactly this means and what will happen in the coming two years. However one thing is sure: it won't be a walk in the park. As is common when divorces are announced, it is all about money. Some Brits are concerned that Brussels could hurl back Margaret Thatcher's sentence, 'I want my money back.'"" Les Echos, a center-right business-focused newspaper, has the headline ""Brexit: Day One."" On Twitter, it highlights ""four traps"" facing those negotiating the terms of Brexit over the months to come. Le Figaro's front page features a picture of Theresa May leaving 10 Downing Street with the caption ""29 March 2017: The day where the United Kingdom bid farewell to Europe."" The front cover of left-wing French newspaper Lib��ration bears the headline ""Brexit: We miss you already"" across the black bearskin cap traditionally worn by the soldiers who guard Buckingham Palace. It continues, ""Or not... "" saying that the newspaper has imagined two scenarios, one negative and one positive, for Britain's future. The front page of Belgian newspaper L'Echo declares: ""Britain cuts itself off from the Union to dive into the unknown."" Its graphic shows the iconic Elizabeth Tower, which houses the Big Ben bell, being unplugged from a socket emblazoned with the EU's yellow stars on a blue background. Belgium's La Libre has the headline ""Brexit: The cost of the divorce"" and promises 12 pages of special coverage, while Le Soir shows the British Prime Minister signing the letter to be delivered to Brussels triggering Brexit with the headline ""Theresa May signs the end of the Europe of 28."" In Italy, La Stampa is headlined ""Brexit, the day of the divorce."" The front pages of Italian papers La Repubblica and Il Messagero highlight the possibility that Brexit will bring about Scotland's exit from the United Kingdom. Brexit: How did we get here?", -3605,2017/3/29,http://www.cnn.com/2017/03/28/politics/republicans-health-care/index.html,"After health care failure, plan B suddenly more appealing for Republicans","Washington (CNN)Republicans insisted they had no ""plan B"" for their plan to repeal and replace Obamacare. But a few days later, after crashing into what might be the new third rail of American politics, Republicans are talking publicly and privately about ... plan B.","President Donald Trump and Vice President Mike Pence spoke with several House members over the weekend to discuss a path forward, a senior administration official and Republican official with knowledge of the discussions told CNN. And House Speaker Paul Ryan -- despite saying Friday that ""Obamacare is the law of the land"" -- appears ready to keep going as well. Trump himself isn't giving up. ""I know we're going to make a deal on health care, that's such an easy one,"" Trump told a bipartisan group of senators and spouses at a White House reception Tuesday night. The fact remains, however, that House Republicans aren't in a different position than they were on Friday. The math is the same. Republican leaders are still struggling to satisfy two diametrically opposed forces: moderates who want to see to government lend more support to middle and low-income people to buy health insurance and conservatives who want to see Obamacare repealed more fully so that even popular regulations like the one requiring insurers to cover people with pre-existing conditions disappear. ""At the end of the day, I don't know that the weekend did much to change anything. I think it was a missed opportunity. I think it was an unforced error,"" said Arkansas Republican Rep. Steve Womack. ""We're mending our wounds right now,"" Rep. Chris Collins, a Republican from New York told reporters Tuesday. White House press secretary Sean Spicer said Wednesday that Trump was being lighthearted when he was talking to the senators. ""I think if you watch the tape it was a lighthearted moment,"" Spicer said of Trump's comments. ""He was having a fun time with the senators there."" But Republicans can't go back to their voters and say they've given up. Moving on from repealing Obamacare would mean Republicans may have to admit defeat and face a sobering new reality, in which, they were not able to deliver on the policy goal that united them and catapulted them to victory in the House in 2010, the Senate in 2014 and the White House in 2016. ""Opposition to government run health care has been a foundation of the Republican party for three or four generations now, so it is difficult to see House Republicans walk away from efforts to protect the American people from this awful law,"" said Michael Steel, former spokesman for ex-House Speaker John Boehner. ""At the same time, after last week, it's difficult to see how the entire conference can find a unified position."" ""I think the divisions that have existed for some time look and feel particularly acute now that we have a Republican President,"" Steel added. White House downplaying role Those divisions came out perhaps most dramatically when Trump got involved in the negotiations. Now, the White House is keeping its role much lower key than it did during the final push last week and insisting it is letting rank-and-file members of Congress drive discussions on health care, which are ongoing between a small group of House Freedom Caucus members and members of the moderate Tuesday Group. The senior administration official told CNN that the White House believes its threats to move past health care have helped jolt House GOP members into action. ""All last week he was calling them. Now they're calling him,"" the official said. White House press secretary Sean Spice publicly downplayed Tuesday any suggestion that there was a concerted effort to resurrect health care, only going as far as saying that there were continued conversations and exchanging of ideas. ""Have we had some discussions and listened to ideas? Yes,"" Spicer told reporters in the briefing room. ""Are we actively planning an Immediate strategy? Not at this time."" On Tuesday, House GOP leaders also projected more optimism that something could still be done to dismantle the Affordable Care Act even as the political dynamics remained unchanged. ""I think we're closer today to repealing Obamacare than we've ever been before, and are surely even closer than we were Friday,"" House Majority Whip Steve Scalise said Tuesday morning. Ryan vowed members would continue working although he didn't offer any specific timeline. In the Senate, Majority Leader Mitch McConnell was more frank that it was time to get to other issues. ""It's pretty obvious we were not able, in the House, to pass a replacement. Our Democratic friends ought to be pretty happy about that because we have the existing law in place, and I think we are just going to have to see how that works out,"" McConnell said. ""We believe it will not work out well, but we'll see. They have an opportunity now to have the status quo, regretfully."" McConnell complemented Trump's and Ryan's efforts and then concluded his remarks on the debacle with four words: ""Sorry that didn't work."" GOP base doesn't want to give up The concept of giving up is hard for many Republican rank-and-file members to swallow. Those who would have voted yes wish they could have gotten their colleagues there too. Members of the House Freedom Caucus, meanwhile, who were opposed to the bill, are grappling now with public admonishment from their new President. ""We're gonna get a 'yes,' we're gonna get to 'yes.' It will be a better bill and I think everybody is going to be very happy in the end,"" said Rep. David Brat, a Republican from Virginia and a member of the Freedom Caucus. ""I think we have plenty of time. We can fix this,"" said Idaho Republican Rep. Raul Labrador, another House Freedom Caucus member. Texas Republican Rep. Randy Weber, a member of the House Freedom Caucus who opposed the GOP health care bill said Tuesday he thought that the GOP conference could find a way to get a revised Obamacare bill through the House if they all got in a room and put their heads together. ""We need to stay here on the weekend and have an all-day conference,"" Weber said, noting that the one-hour weekly meetings weren't enough time to work through the sticking points. Weber, who didn't vote for Ryan for speaker in January, even complimented Ryan and said that he texted the speaker over the weekend when some conservative media figures pushed for him to step down and told him ""don't even think about it. You're doing a good job. My prayers and my support are with you."" Still hard to govern Womack said Republicans need to keep moving and show they can govern with their majorities in the House and Senate and Trump in the White House. ""The people who were 'yes' on the health care bill were reminding Paul this is something we promised and we got to push in that direction,"" Womack said. ""It's more a reflection of the need to show that we can do something with our governing majority, but again it comes back to numbers. If you don't have the votes, you don't have the votes."" But Trump and Ryan say they want to go to tax reform next, but that's not going to be any easier. ""How do you move forward?"" said Rep. Mario Diaz-Balart, a Republican from Florida. ""If you can't do this, can you then do tax reform? If you think this is complicated and controversial, wait 'til we get into tax reform."" This story has been updated.", -3606,2017/3/29,http://www.huffingtonpost.com/2017/03/29/chicken-recall_n_15689952.html,A Million Pounds Of Chicken Recalled Over Metal Shards,Some of it was sold through Walmart.,"Check your freezer, because you might need to throw out some contaminated chicken STAT.- OK Foods Inc.-is recalling 933,272 pounds of breaded chicken products, the U.S. Department of Agriculture's Food Safety and Inspection Service announced last week.-The recall occurred after five people complained of-discovering-metal objects in the ready-to-eat chicken, a problem confirmed by the FSIS.- ""After an internal investigation, [OK Foods]-identified the affected product and determined that the objects in all the complaints came from metal conveyor belting,""?the press release said.- The contaminated products in question were produced between Dec. 19, 2016 and March 7 of this year and are labeled ""P-7092""?in the USDA mark of inspection. The chicken in question is produced-under multiple labels, including Walmart's Great Value brand:- 1. Great Value 2. TenderBird 3. Farmington 4. Spring River Farms 5. SmartFoods4Schools 6. Chickentopia 7.-Double D Foods 8. Lake Liner Logo Brand- The USDA urges customers who purchased the chicken to throw it out or return it to the place of purchase. Read more about the recall at USDA.gov or get answers to questions about food safety at the agency's ""Ask Karen""?site. The-HuffPost-Lifestyle-newsletter-will make you happier and healthier, one email at a time. Sign up-here. Share this slide: We'r basically your best friend""?with better taste. Learn more", -3607,2017/3/29,http://www.huffingtonpost.com/2017/03/28/childhood-lead-exposure-study_n_15689946.html,Childhood Lead Exposure Can Change The Course Of A Life,"Kids don't recover from lead poisoning, a long-term study shows.","Damage from childhood lead exposure lasts well into adulthood, according to a four-decade study that found that kids who were exposed to high levels of leaded gasoline in the 1970s had worse cognitive functioning and lower socioeconomic statuses at age 38 than their peers.- ""It actually wasn""t until the 1990s that the connection between lead and compromised cognitive functioning became an accepted and evidence-based act,""vshalom Caspi, co-author of the study and professor of psychology and neuroscience at Duke University, told The Huffington Post. ""It's important to remember that what we think we know""?about lead today is actually pretty new knowledge,""?Caspi added. The study, which examined 500 primarily white children who were born in Dunedin, New Zealand, between 1972 and 1973,-was published in the Journal of the American Medical Association on March 28. Study participants who had blood lead levels greater than 10 micrograms per deciliter at age 11 had IQs that were 4.25 points lower than their peers by the time they reached age 38. The U.S. Centers for Disease Control and Prevention recommends public health intervention for kids with 5 micrograms per deciliter of lead in their blood or more, noting there is no safe blood lead level for children. Lead exposure is far more damaging for children because their brains are still developing. Exposure to high levels of lead-in childhood can cause neurological damage, a shortened attention span, dyslexia, attention deficit disorder, hypertension and reproductive organ damage, according the World Health Organization.- Few sizable studies have examined the long-term health effects of high lead exposure in kids. (To the study authors""?knowledge, the longest-term cognitive follow-up study only had 43 participants, which is too small a cohort to draw definitive conclusions from.) ""the difficulty with many previous studies of lead exposure and cognitive development is that lead exposure is often confined to very poor and very disadvantaged neighborhoods and homes,""?Caspi said. ""This makes it difficult to disentangle the association between high lead and low IQ from that between poverty and low IQ.""?In the U.S., poorer people were more likely to live near expressways and lead-related industries, since those neighborhoods were generally considered less desirable ""?and as a result, they were more likely to be exposed to leaded gasoline. In this particular part of New Zealand, however, there were no major roadways (the area's topography and proximity to the ocean may have kept air pollution in), meaning kids of varying backgrounds had similar exposure. ""In essence, there was equality in lead exposure,""?Caspi said. ""This made it possible for us to more clearly estimate the association between high lead and low IQ.""?The resulting research suggests that higher childhood blood lead levels are associated with lower IQs and with downward social mobility, regardless of a child's socioeconomic status. ""the normal trend for this generation is for sons and daughters to achieve better occupations than their parents,""?Caspi said. ""Among those with elevated lead levels, the trend was opposite. The occupations they held at age 38 tended to be slightly less well-paid or prestigious than their parents had.""?During the study period, New Zealand had one of the highest lead gasoline levels in the world, the study authors noted. And although lead was phased out of gasoline in New Zealand and the United States, soil surrounding major roadways is still a hazard.- There are a few things that politicians and public health experts in the United States can learn from the new study ""?particularly in Flint, Michigan, where children were poisoned by lead-tainted water starting in 2014. Caspi said he didn""t know the magnitude or the duration of Flint citizens""?lead exposure, but offered a few takeaways. ""With those routine exposures, we find that there are long-term implications for a child's life trajectory,-regardless of where they start out in life,""?he said. ""to us, this suggests, at the very least, that public responses to lead exposure events, like those that we saw in Flint, should take a long-term perspective.""?While lead poisoning is essentially irreversible, proper nutrition and early intervention by doctors can improve children's long-term cognitive outcomes, according to Dr. Mona Hanna-Attisha, the director of the pediatric residency program at the Hurley Medical Center in Flint, Michigan. Parents""?primary concern, however, should be eliminating their children's exposure to the lead source. This reporting is brought to you by HuffPost's health and science platform, The Scope. Like us on Facebook and Twitter and tell us your story: scopestories@huffingtonpost.com.- We'r basically your best friend""?with better taste. Learn more", -3608,2017/3/29,http://www.huffingtonpost.com/2017/03/29/domestic-violence-survivor-marries-first-responder-who-saved-her-life_n_15689526.html,Domestic Violence Survivor Marries First Responder Who Saved Her Life,"""I feel that fate brought us together.""?,She finally got her happily ever after. In January 2012", Melissa Dohme Hill, a Clearwater -3609,2017/3/29,http://www.huffingtonpost.com/2017/03/29/once-again-texas-republicans-are-pushing-an-avalanche-of-anti-lgbtq-bills_n_15689494.html,"Once Again, Texas Republicans Are Pushing An 'Avalanche' Of Anti-LGBTQ Bills","And they all seem to conform to Neil Gorsuch's idea of ""religious liberty.""","One bill sponsored-by GOP Texas state senator Charles Perry would allow any professionals regulated by the state of Texas ""?from medical providers and social workers to tow truck operators and electricians ""?to discriminate against LGBTQ people based on personal religious beliefs. - Another, sponsored by GOP Texas house representative Scott Sanford, would allow businesses in the wedding industry to refuse to serve same-sex couples. And yet another, pushed by Rep. Phil King, another Republican, would allow official student organizations at public colleges and universities to discriminate against students for religious reasons, denying membership to LGBTQ students or keeping out Jewish and Muslim students. These are just a few of the 17 bills described by a group fighting against them, the-Texas Freedom Network-(TFN) ""?two of which are being debated this week by the Texas legislature, including today's debate on restricting LGBT foster care and adoption ""?as, once again, threatening the rights of LGBTQ people and many other Texans with what TFN calls an ""Avalanche""?of bills.- ""these religious refusal bills radically redefine a fundamental right by allowing religion as a justification to discriminate or refuse to obey laws you don""t like,""?Kathy Miller, president of TFN, which held a press conference in Austin today along with the ACLU of Texas, said. The authors of these bills don""t even seem to care that their legislation could also create serious conflicts with established civil rights protections based on race, gender and even religion itself. Their bills essentially turn religion into a weapon to hurt people who are different or don""t share the same beliefs. Much attention has been focused on the draconian transgender ""bathroom bill""?that Lt. Governor Dan Patrick unveiled in the beginning of January and which has gotten considerable pushback from major companies and sports leagues, including the NFL and the NBA. But just as in 2015, when Republicans in the Texas legislature had pushed over 20 anti-LGBTQ bills, this legislative session religious zealots are seizing upon the issue of ""religious liberty""?to promote a license to discriminate against queer people in a broad array of areas. Back then, activists impressively beat back the vast majority of the bills ""?by no means an easy feat ""?after national attention was brought to bear and companies stood up against them while local leaders and politicians fought very hard and won. This year, however, anti-LGBTQ forces have fine-tuned their religious liberty message nationwide ""?riding a backlash to marriage equality ""?and have the support of the White House itself, where Donald Trump may soon sign a a ""religious freedom""?executive order and where Mike Pence, a long-time promoter of such discrimination, is vice president.- And there has been momentum in other states, moving these these bills in recent weeks seemingly under the radar of a national media so focused on Trump and national politics. South Dakota this month-became the first state in 2017 to pass a ""religious liberty""?bill, signed into law by the governor, that allows state-funded adoption agencies to discriminate against queer parents. Tennessee is moving forward with both a ""defense of Natural Marriage Act""?and an anti-trans bill, and -more states are moving ahead with other discriminatory laws. Just two weeks ago, Justice Samuel Alito gave a speech-in which he made a clarion call to religious conservatives, bragging that he supposedly predicted in his dissent in the landmark Obergefell decision in 2015 that LGBTQ people and their allies, emboldened by the ruling, would soon ""lilify""?others based on their religious beliefs. He told the faithful to get ready for-""pitched battles in courts and Congress, state legislatures and town halls,""?and he commanded them to ""evangelize""?about the ""issue of religious freedom.""As I wrote last week, Donald Trump's Supreme Court justice nominee Neil Gorsuch, by his prior statements and decisions, appears primed to uphold such discriminatory religious exemptions. It's one reason why it's imperative that his nomination be voted down as Democrats appear to be ready to filibuster. But it's just as imperative that all of us, right now, focus on what is happening in Texas, and beat back the opponents of equality once again.-- We'r spilling the tea on all the queer news that matters to you. Learn more", -3610,2017/3/29,http://www.huffingtonpost.com/2017/03/29/world-leaders-trump-climate-executive-order_n_15689470.html,World Leaders Say Donald Trump Is Taking A Major Step Backward On Climate Change,Trump signed an order Tuesday undoing much of Barack Obama's climate change legacy.,"Leaders across the globe are speaking out against President Donald Trump's executive order rolling back Obama-era policies to curb greenhouse gas emissions, criticizing the move as a setback in the global fight against climate change. Trump's order begins the process of reversing regulations put in place by former President Barack Obama to reduce the nation's carbon footprint. Specifically, the order instructs the Environmental Protection Agency to review Obama's Clean Power Plan. The order also instructs the Department of the Interior to lift the temporary ban on new coal leases on federal lands. These moves greatly diminish the United States""?chances of meeting the emissions targets agreed to in the 2015 Paris Agreement, an international climate deal signed by 195 countries with the goal of limiting global temperatures to 2 degrees Celsius above pre-industrial levels.- After Trump signed the order, many countries reaffirmed their commitment to the Paris deal. Among those speaking out was China, now seen as the de facto global leader on climate policy. ""no matter how other countries""?policies on climate change change, as a responsible large developing country, China's resolve, aims and policy moves in dealing with climate change will not change,""hina Foreign Ministry spokesman Lu Kang said Wednesday. ""We are willing to work with the international community to strengthen dialogue and cooperation, to join hands to promote the process of tackling climate change to jointly promote green, low carbon sustainable development for the whole world, to create an even better future for the next generation.""Laurent Fabius, who played a major role in the Paris climate talks when he was France's foreign minister, said Trump's order is a setback for the fight against rising global temperatures.- ""the initial decisions from the new U.S. president's administration concerning the battle against global warming constitute a very serious step backwards,""?he said in a statement. Miguel Arias Ca?ete, the European Union's top climate official, also spoke out against the U.S. president, but vowed to uphold the EU's commitment to the Paris Agreement. ""We regret the US is rolling back the main pillar of its climate policy, the clean power plan,""?he said in a statement. ""the continued leadership of the EU, China and many other major economies is now more important than ever. When it comes to climate and the global clean energy transition, there cannot be vacuums, there can only be drivers, and we are committed to driving this agenda forward.""Germany's environment minister, Barbara Hendricks, warned Trump that reversing Obama's climate policies could hurt the American economy as other nations take the lead on renewable energy. ""Whoever tries to change into reverse gear is only going to harm themselves,""?she said. Share this slide: Learn more", -3611,2017/3/29,http://www.huffingtonpost.com/2017/03/29/why-kristen-bell-thinks-white-parents-should-talk-to-their-kids-about-race_n_15689292.html,Why Kristen Bell Thinks White Parents Should Talk To Their Kids About Race,"""Kids will notice differences.""?,Kristen Bell wants her daughters to celebrate peoples""?differences. The actress is mom to 4-year-old Lincoln and 2-year-old Delta.-During a recent Facebook Live interview with Parents magazine"," she shared her thoughts on raising her children to be ""global citizens.""?Hear what she had to say starting at the 9:30 mark in the video below.- Bell referenced a chapter in the book Nurture Shock","""?she explained" -3612,2017/3/29,http://www.huffingtonpost.com/2017/03/29/nunes-trump-surveillance-white-house-credible_n_15689038.html,Devin Nunes' Story About His White House Grounds Visit Simply Isn't Credible,It's looking more and more like there was some kind of collusion between Nunes and the White House.,"WASHINGTON ""?Of the many questions surrounding House Intelligence Committee Chair Devin Nunes (R-Calif.), and his conduct in investigating President Donald Trump's ties to Russia, the most puzzling has to be his explanation for his recent visit to the White House grounds. People who have worked in the White House suggest that, on this matter, Nunes and the White House simply aren""t being credible. For those just catching up: Last week, Nunes caused a stir when, with no prior notice to his fellow committee members, he announced that he received information showing that Trump transition officials had been caught inadvertently in surveillance operations targeting suspected foreign spies, and that their names appeared in internal intelligence reports. No one seemed to know where Nunes had gotten this information, and the congressman, who went to the White House to brief the president on his findings, would only say that he had an anonymous source. He has refused to name his source even to Rep. Adam Schiff (D-Calif.), the ranking Democrat on the intelligence committee. Over the weekend, it was reported that Nunes ditched his own staff the night before making his announcement. On Monday, the news broke that he had gone to the White House grounds to use a Sensitive Compartmented Information Facility ""?basically, a room or area that meets certain rigorous security standards ""?to get the information that formed the basis of his accusations. This raised the distinct possibility that the White House itself had been the source of the information, and that it had given that information to Nunes so he could provide Trump with some cover for his baseless accusation that former President Barack Obama had wiretapped Trump Tower. (The FBI and Nunes himself have said there is no evidence to support Trump's claims.) The White House and Nunes both deny that there was any collusion, and the White House has argued that it is possible Nunes came to the grounds without anyone from the administration knowing about it. - ""I don""t know that members of Congress need to be cleared,""?White House press secretary Sean Spicer said this week. But it's basically impossible to believe that someone from the White House did not at least know that Nunes was coming to use the SCIF to access the information that would form the basis of his now-controversial press conference.- The timing of last week's events offered the first indication of possible coordination between Nunes and the Trump administration. Earlier this month, Trump told Fox News that evidence to back up his wiretapping claims would soon emerge. The following Monday, FBI Director James Comey delivered two blows to the Trump team: He publicly testified that there was no evidence Obama wiretapped Trump Tower, and he confirmed that the agency was investigating ties between Trump associates and Russian government officials. Two days later, Nunes held an impromptu press conference,-where he alleged that Trump and his team were surveilled during the Obama administration. Hours later, Spicer directly quoted Nunes during the daily White House press briefing. Later that day, Nunes went to the White House to brief Trump on his findings. Trump emerged from the meeting feeling ""somewhat""?vindicated, he told reporters.- The New Yorker's Ryan Lizza has since stated-that a ""gop""?White House official told him to keep an eye on the ""predicate that is set""?by Nunes. Nunes""?office has confirmed that the congressman's allegations are based on reports that came from the White House. The documents-were ""executive branch documents that have not been provided to Congress,""?Jack Langer, a spokesman for Nunes, told The Huffington Post. Moreover,-it would be logistically impossible, sources say, for Nunes to get onto the White House grounds ""?much less get into a room used for viewing classified information ""?without being escorted by someone with an official badge. ""You have to be allowed onto the White House compound by a White House staffer. You have to be allowed into a SCIF by a White House staffer. You have to be provided computer credentials by a White House staffer. There is no other way to be authorized access to the White House other than via a White House staffer,""?said Ned Price, who ran communications for Obama's National Security Council. ""did he just show up and say ""Let me in""? It defies credulity.""?When asked how exactly Nunes got into the White House last week, Spicer told reporters on Wednesday that it was ""A question for him, not for us.""Nunes, who has otherwise been tight-lipped about his source, told-Bloomberg's Eli Lake on Monday that his source was an intelligence official, not a White House staffer. Even if that is true, it would have had to have been an intelligence official with cleared White House access (potentially an official on temporary detail with the National Security Council), or Nunes and his source would have had to have been let in by someone else from the White House. Perhaps Nunes""?most bizarre move thus far has been his refusal to disclose his source's identity to Schiff, his Democratic counterpart, who is regularly briefed on information in his role as the ranking member of the intelligence committee. Even some of Nunes""?Republican colleagues are puzzled by his handling of the situation. ""the chairman and ranking member not talking with each other ""?that's bizarre on such an important issue,""?one GOP lawmaker said Wednesday. ""I just can""t imagine myself and my counterpart, on something this important to the country, having zero communication.""?Nunes""� behavior, the Republican lawmaker continued, is making it appear as though he is ""somebody who's in essence working for the administration.""?Nunes has said that he will remain atop the investigation his committee is leading, and that he will never reveal the source of his surveillance accusation. But the trip he took to the White House has prompted bipartisan calls for him to step aside, or for the work to be placed under the auspices of a select committee. Under the Obama administration, at least some information about Nunes""?mysterious White House visit would have eventually been made public in White House visitor logs. Those logs used to be accessible online and were usually updated every three to four months. But the website hosting the visitor logs has been down since Trump took office. When asked whether the White House plans to resume the practice, Spicer would only say-that-""we'r reviewing that now.""?Laura Barron-Lopez contributed reporting.- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3613,2017/3/29,http://www.huffingtonpost.com/2017/03/29/brexit-european-leaders-react_n_15688964.html,Europe's Leaders Are Taking The Brexit Breakup Hard,"""We already miss you.""","The United Kingdom on Wednesday formally began the process of leaving the European Union, and Europe's leaders have reacted to the breakup with a mix of sorrow and insistence that the EU will stay strong. ""there is no reason to pretend that this is a happy day, neither in Brussels, nor in London,""?European Council President Donald Tusk said after receiving U.K. Prime Minister Theresa May's letter that officially triggered exit negotiations. ""What can I add to this?""?he said. ""We already miss you.""?The U.K.'s Dear John letter to the European trading bloc invokes Article 50, a provision of the EU's Lisbon Treaty that allows member states to leave the union. It also issues a two-year timeline for the country to hash out how to fully extricate itself.- Although it could be years before the U.K. actually leaves the EU, many European politicians reacted to May's letter as if it were a point of no return.- What a sad day! What a day of disappointment! #BrexitDay #Brexit #TheresaMay #Article50 Today isn't a good day. #Brexit marks a new chapter in our Union's history, but we're ready, we'll move on, hoping UK remains close partner. pic.twitter.com/Fx6q7lMSnO European Union President Antonion Tajani tweeted about a ""new chapter""?for the EU, while Austria's foreign minister, Sebastian Kurz,-called it a ""gurning point.""?German Chancellor Angela Merkel said-the EU was losing an important member state and that European nations ""Certainly did not wish for this day.""?A number of officials also set the tone for likely contentious Brexit negotiations. Merkel shot down the prospect of parallel talks on the future of the U.K.-EU relationship, demanding clarity first on how Britain would leave the union. The EU's chief Brexit negotiator, Michel Barnier,-tweeted that his team was ready, and outgoing French President Hollande said the proceedings ""will be painful for the British.""?Others in government, like Manfred Weber, chairman of the European Parliament's EPP Group, chastised British politicians who campaigned to leave and said they had created divisions. The politicians who fought for #Brexit were allowed to grow up in a free Europe. Today they are building new walls. ""EU has done everything to keep the British. From now on, only the interests of the remaining 440 million Europeans count for us.-#BrexitDay,""?Weber wrote in another tweet. May tried to frame the moment as a fresh chance for the U.K. to redefine its role in the world and preserve its identity.- ""As we face the opportunities ahead of us on this momentous journey, our shared values, interests and ambitions can ""?and must ""?bring us together,""?May told members of Parliament. Scottish leader Nicola Sturgeon, meanwhile, condemned Brexit and pointed out that the majority of Scots who voted in the referendum wanted to remain in the EU. On Tuesday, Scotland's Parliament backed Sturgeon's call for a new Scottish independence referendum to try to preserve the nation's place in the European Union. Today, the PM will take the UK over a cliff with no idea of the landing place. Scotland didn't vote for it and our voice has been ignored. However, a few far-right, anti-EU politicians are celebrating. The Netherlands""?anti-Islam party leader Geert Wilders, who advocates for a Dutch ""nexit,""?congratulated Britain and tweeted it was ""A historic moment!""?Wilders followed up a few minutes later by tweeting a political cartoon that included racist caricatures of Arab men overrunning a ship labeled ""EU""?as it plunged over a waterfall. Marion Le Pen, a politician with France's National Front party,-tweeted that Britain was regaining its freedom and vowed that her country would follow suit. Her aunt,-Marine Le Pen, is the party's leader and has promised to hold a referendum on France's membership in the EU if she wins the country's presidential election in early May. Polls show that she is expected to lose in a second-round runoff vote to pro-EU Independent candidate Emmanuel Macron. Share this slide: Learn more", -3614,2017/3/29,http://www.huffingtonpost.com/2017/03/29/jackie-evancho-trump-transgender-issues_n_15688962.html,Jackie Evancho Wants Trump To Know 'Horrors' Trans Sister Experienced,The inauguration singer is eager to meet with the president.,"Two months after performing at President Donald Trump's inauguration, Jackie Evancho wants to use her voice for a different cause.- The classical crossover singer, 16, has asked to meet with Trump in the wake of the president's decision to roll back a federal policy prohibiting schools from discriminating against transgender students. Evancho's sister, Juliet,-was one of three trans plaintiffs who won the right to use the bathroom that corresponds with their gender identity at her Pennsylvania school in a Feb. 27 federal court ruling.- Evancho first suggested the meeting on Twitter on Feb. 22, immediately following the Trump administration's announcement that it would rescind former President Barack Obama's executive order mandating that all schools that receive federal money must treat a student's gender identity as his or her sex.- I am obviously disappointed in the @POTUS decision to send the #transgender bathroom issue to the states to decide. #sisterlove . @realDonaldTrump u gave me the honor 2 sing at your inauguration. Pls give me & my sis the honor 2 meet with u 2 talk #transgender rghts �?Though Trump himself has stayed silent on the matter, White House press secretary Sean Spicer said in a Feb. 23 briefing that he believes the president ""would be welcome to meet with""?Evancho, ABC News reported. On Monday,-Evancho reiterated her suggestion on Twitter, and said She'll be in Washington, D.C., this Thursday and Friday, likely as part of the promotional tour for her new album,-""two Hearts."". @realDonaldTrump - THANK YOU for being open to meeting with me to discuss #trans rights. I'll be in #DC on 3/30 & 3/31. Can we meet? In a new interview with People, Evancho explained why she now feels compelled to take a stance against Trump's anti-LGBTQ platform.-""I would talk to him about some of the horrors that [Juliet] has experienced,""?Evancho said. ""hopefully make it a federal issue ""?and create some sort of law that will protect my sister and people in her situation.""?She said her decision to speak out now that Trump has rescinded trans protections was just ""natural instinct,""?noting,-""At that point, something had changed that was going to affect a cause that I believe in. It was going to affect my sister, who I truly love, and people that I know.""?In the days leading up to the inauguration, Evancho had been encouraged to follow in the footsteps of singer-actress Jennifer Holliday and back out of her appearance because of Trump's opposition to LGBTQ rights. Still, she told People that her decision to perform the national anthem was solely ""About the honor and not about the politics.""Now, however, she said she's focused on using ""my voice to do good, to help people,""?adding, ""I definitely want to change things.""?For more ways to combat bigotry, check out the Queer Voices newsletter.- Share this slide: We'r spilling the tea on all the queer news that matters to you. Learn more", -3615,2017/3/29,http://www.huffingtonpost.com/2017/03/29/andrew-lincoln-will-make-you-hope-rick-dies-on-the-walking-dead_n_15688954.html,Andrew Lincoln Will Make You Hope For Rick's Death Scene On 'The Walking Dead',This has to happen.,"Rick, it's been fun. While at PaleyFest with ""the Walking Dead""?cast recently, actor-Andrew Lincoln-described how he would want his character Rick Grimes""?death scene to go. Actors are asked this stuff all the time, and there are always various death-rumors, so what's the big deal, right? Well, seeing is believing. In a video from the event, Lincoln energetically describes the possible death scene ""?despite producer Greg Nicotero's apparent hesitation ""?and it's flawless. Lincoln says the scene would involve Rick heroically jumping off a bus in a desert in order to save the group, throwing in a ""Corralll""?just for good measure. ""Taybe that's the last thing I say,""?Lincoln says. The crowd eats it up. He adds that Rick would-""earn his action figure""?with all his kicking and punching, but he end up getting a wound from a zombie. ""�Oww,""?Lincoln says, to make sure we get the point, eventually adding another ""Corralll.""?But there's a twist: Rick doesn""t die. ""Final shot is, ""�Holy shit.""?Maybe ""?maybe I'm the cure,""?says Lincoln as the crowd loses it. He continues, ""Final shot of the whole thing: high shot, herd of zombies coming, Rick gets up, follows the tracks to go see ""�Cooorralll""��?.. Walking, the herd comes towards him, and they separate. And he walks through. Boom!""?""Walking Dead""?showrunner Scott Gimple recently said the show may last for 20 years. If we get an ending like that, it's worth the wait. In the words of Andrew Lincoln, ""Boom!""H/T Uproxx Tina Fey, Alec Baldwin, Tom Hanks, Tracy Morgan, Maggie Gyllenhaal, Michael Moore, Padma Lakshmi and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU. Donate now and join us at 7 p.m.-ET on Friday, March 31, on Facebook Live. #standforrights2017- Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3616,2017/3/29,http://www.huffingtonpost.com/2017/03/28/anti-trump-book-listed-as-coloring-book-on-amazon-by-reported-russian-hackers_n_15688938.html,Anti-Trump Book Listed As Coloring Book On Amazon By Reported Russian Hackers,"Sorry, adult coloring books have been canceled.","Not long after Donald Trump's inauguration as president, publishers rushed an anti-totalitarian handbook by Yale historian Timothy Snyder to print.-On Tyranny: Twenty Lessons From The Twentieth Century was published by Vintage this month in the U.K., its arrival heralded by an eye-grabbing poster campaign. This week, the book's Amazon U.K. page was hacked, probably by Russian hackers, according to The Guardian. The miscreants replaced-On Tyranny's cover image and description text with that of... an adult coloring book? That's right, drink ��n""?draw lovers: It seems like even hackers have hopped on the coloring trend. The fake description of a fictional coloring book by ""timothy Strauss""?urges customers to ""Color these images and read these lessons to Make World Great Again.""?The fake coloring book that took over the page appears to marry Snyder's name with that of Leo Strauss, a political philosopher whose 1963 discourse-On Tyranny explored the possible paths to tyranny and philosophy's role under such a regime. The cover art of the adult coloring book, appropriately, was taken from an American World War II poster advertising the sale of government bonds to fund the war. ""triumph Over Tyranny!""?urges the original poster. According to The Guardian, Snyder is convinced that Russian hackers were behind the tweaks to his book's Amazon listing. ""the idea of making the world great again, the slogan left by the hacker, appears, to my knowledge, only in Russian on pro-Trump posters in the Russian Federation,""?he said. A preeminent historian of Central and Eastern Europe, Snyder has previously found himself in conflict with the Russian government. His previous books-Bloodlands and-Black Earth drew rancor from Russian partisans thanks to his critical analysis of Josef Stalin, and-On Tyranny not only critiques Russia's past and present government, but also its alleged interference in the 2016 U.S. election in aid of Trump. Now, he believes, Russian hackers are interfering with his book in order to protect Trump, who has enjoyed a particularly bad couple of weeks thanks to the embarrassing implosion of his health care bill and the ongoing fiasco of the Congressional hearings on Russian election interference. ""russia has shown a tendency to jump in to help him at such times,""?Snyder told The Guardian. Vintage apprised Amazon of the breach by Wednesday morning; after remaining up long enough to utterly ruin our desire to relax through the art of adult coloring,-the listing for the instant bestseller has been reverted to the correct image and text. As of this post's publication, Snyder's publisher had not responded to a request for comment. H/T-The Guardian Tina Fey, Alec Baldwin, Tom Hanks, Tracy Morgan, Maggie Gyllenhaal, Michael Moore, Padma Lakshmi and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU. Donate now and join us at 7 p.m. ET on Friday, March 31, on Facebook Live. #standforrights2017 Share this slide: Level up. Read THIS and be the most interesting person at your dinner party. Learn more", -3617,2017/3/29,http://www.huffingtonpost.com/2017/03/26/cat-island-japan-truth-ainoshima_n_15688936.html,Powerful Photos Reveal The Complex Truth About An Island Ruled By Cats,"It's known as ""cat heaven,"" but reality is a little more complicated.","Animal photographer Andrew Marttila-says when he first heard about Japan's ""Cat islands,""?he knew he had to go. He's best known for his portraits of felines and his partner, Hannah Shaw, founded the-cat rescue group Kitten Lady, so it made sense for them to plan a trip. ""Cat islands""?""?places where populations of free-roaming kitties boom in the absence of predators-""?have drawn growing numbers of international feline-loving tourists for several years. Photos of huge groups of cats ""?like these images from an island called Aoshima ""?periodically go viral and fueling interest in visiting the region. Japan has 11 cat islands in all, typically the result of fishermen bringing cats to shore to control rodent populations. In November, Marttila and Shaw traveled to Ainoshima,-an island off the town of Fukuoka that measures a little more than a half a square mile, inhabited by around 500 people and hundreds of outdoor cats. The place is known as ""Cat Heaven.""?But what the couple found was a little more complicated. ""For us cat lovers, there's something pretty special about an area littered with dozens of cats,""?Marttila told The Huffington Post in an email. ""What you'r not seeing, however, are all the cats and kittens suffering from very treatable illnesses.""?Lack of spaying and neutering, plus an abundance of food provided by tourists, contributes to a growing cat population.-But with no veterinarians or real framework for their care, this leads to what Shaw, writing for Paw Culture, called ""A constant cycle of birth, early death, and more birth.""?She wrote that while the cats that survived to adulthood seemed healthy, there was a high mortality risk for the younger felines. ""roughly one-third of the cats were young kittens struggling with untreated upper respiratory infections,""?Shaw wrote. ""Eyes and noses crusted, the kittens huddled together on the warm pavement.""?A 2014 Japan Times article gave a similar account, quoting Japanese cat scientist Akihiro Yamane as observing many of the cats die in kittenhood, and adult males suffer brutal injuries over fights for mates and territory on the crowded island.- Marttila said that people on the island were resistant to the idea of veterinary care and were ""more keen to allow nature run its course.""?And while he acknowledges that yes, it's natural for animals outside to get sick and die, the island is teeming with cats in the first place only because of human activity. As Shaw wrote in her essay, ""Luman intervention is already impacting the growth of the population, just not in a way that benefits anyone.""?Marttila also stressed that he did not mean to criticize Japan in particular, since the United States is rife with its own animal welfare problems. And not all Japanese cat islands are the same. On Tokonoshima Island, for instance,-which is home to around 3,000 cats, the government is implementing a ""grap-neuter-return""?program. This involves humanely trapping the cats, neutering or spaying them and giving them necessary vet care and then returning them to their outdoor homes. Spaying and neutering cats cuts down on overpopulation and curbs stressful behavior like fighting and mating. On Tokonoshima, officials started the program in part to protect an endangered species of rabbit threatened by the cats. When it comes to cat islands, Marttila believes potential visitors should be aware of what they may be getting into. ""Just be prepared to see the full gamut of beautiful to utterly depressing,""?he said. ""having a more realistic expectation of what occurs on Ainoshima would have better braced me for the experience.""?You can see some of Marttila's photos from the island below, and view more of his work on his Instagram and website.- Start your workday the right way with the news that matters most. Learn more", -3618,2017/3/29,http://www.huffingtonpost.com/2017/03/28/refugees-resettled-us-skyrocketed_n_15688892.html,Number Of Refugees Resettled In U.S. Has Skyrocketed Since Trump's Ban Struck Down,But this is actually making things way more confusing for resettlement agencies.,"The number of refugees being resettled in the U.S. has shot up ever since a federal court-struck down-portions of President Donald Trump's second executive order on immigration earlier this month. While this has allowed many to breathe a sigh of relief, it's placing serious strain on the organizations responsible for bringing refugees to America and helping them resettle. ""In accordance with the Court Order, and consistent with both our operational capacity and our capacity under available funding, we have increased the current pace of refugee arrivals to approximately 900 individuals per week,""?a State Department spokesperson told The Huffington Post in a statement on Tuesday. ""new refugee pre-screening interviews will continue to be scheduled and conducted at Resettlement Support Centers around the world.""?Trump has signed two executive orders attempting to prevent refugees from finding safe haven in the United States since entering office. Both were legally challenged amid mass protests. His first order, signed on Jan. 27, halted the refugee resettlement program for 120 days, among other things, and slashed the number of people who could be resettled in the U.S.-from 110,000 in the 2017 fiscal year to 50,000.- As a result, the number of refugees entering the country weekly had been limited to 400 people, in an effort to avoid reaching the 50,000 quota too soon (the 2017 fiscal year ends on Sept. 30). Fewer refugees means less money allocated to the agencies that resettle refugees, since they receive federal funding contingent on the number of people they take care of. Parts of this order were struck down in federal court-in February, but the quota remained unchanged. So the 400 per week figure was in effect until Trump's revised ban was struck down in a Hawaii federal court on March 15, only hours before it was supposed to be implemented. These increased resettlement figures are welcome news to the nine U.S. refugee resettlement agencies, several of them said. But the multiple orders and their ever-changing legal statuses has placed the agencies in operational limbo, causing many to significantly downsize their staffs. Church World Service announced Tuesday that it let go of 547 employees worldwide, beginning the week of Feb. 27.-That represents about 50 percent of their entire staff, a spokeswoman said. Their Africa operations were hit the hardest, with more than 400 layoffs in Kenya alone.- ""the decision to reduce our staff was a direct result of these executive orders, which sabotage our ability to offer vital services, support and counsel to families seeking to rebuild their lives in safety,""?CWS president and CEO Reverend John L. McCullough said in a statement. ""the reductions in international and Kenyan staff were the result of budgetary constraints,""?a State Department spokesperson added. World Relief is laying off more than 140 people in the U.S. alone and closed five of its national offices. Resettlement agencies carried out these layoffs assuming, back in February, that the quota would remain at 50,000, which would warrant way fewer staffers. But the portion of the second order containing the new quota was struck down ""?meaning that it's been reverted back to 110,000.- After laying off hundreds of people, organizations like CWS could now find themselves grossly understaffed for the rest of the year. ""the situation continues to be highly volatile for resettlement ""?unfortunately the [executive order]-itself hasn""t been fully and permanently rescinded yet,""?the CWS spokeswoman said. "" it's unclear how long this stay will last and whether that will be through the end of this fiscal year.""?Elise Foley contributed reporting. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3619,2017/3/29,http://www.huffingtonpost.com/2017/03/29/chris-christie-donald-trump-opioid-crisis_n_15688800.html,Chris Christie Will Lead Donald Trump's Effort To Combat Opioid Crisis,"The announcement came the same day a Christie aide was sentenced for his role in the ""Bridgegate"" scandal.","WASHINGTON ""?New Jersey Gov. Chris Christie (R) will lead a commission to combat the nation's opioid crisis, President Donald Trump announced Wednesday at a White House event on the issue. Christie has long spoken in personal terms about the need to fight drug addiction.-During his presidential campaign in 2015, he recounted the story of a law school friend who died after battling an addiction to prescription painkillers, a moment that went viral.- Last month, Christie signed a bill that requires health insurers in New Jersey to cover treatment for substance abuse for up to six months. ""the person who's in the throes of addiction ""?[and] realizes he or she needs help, they should not be blocked from the treatment center doors with their lives hanging in the balance,""?he said. Trump's announcement came the same day that Christie's former aide Bill Baroni was sentenced for his role in the 2013 ""Bridgegate""?scandal. In November, Baroni and another Christie aide, Bridget Anne Kelly,-were found guilty of all charges, which included conspiracy and fraud. Though Christie has maintained that he had no direct involvement in the scheme that shut down lanes on the George Washington Bridge as payback for a Democratic mayor refusing to endorse Christie's re-election bid, the scandal has dogged his political career. After dropping out of the presidential race in February 2016, Christie quickly endorsed Trump, in a surprise move. He became an adviser and led Trump's transition efforts, before being sidelined. Since Trump's election, Christie has largely been out of the spotlight and was reportedly passed over for top roles in the administration. At Wednesday's event, Trump, who made combating the opioid epidemic a campaign pledge, said his administration wants ""go help people who have become so badly addicted.""ut his failed effort to repeal the Affordable Care Act last week would have eliminated a mandate that requires Medicaid to cover addiction services. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3620,2017/3/29,http://www.bbc.co.uk/news/uk-politics-39431428,'No turning back' on Brexit as Article 50 triggered,"Britain's departure from the EU is ""an historic moment from which there can be no turning back"", Theresa May has said.","Britain's departure from the EU is ""an historic moment from which there can be no turning back"", Theresa May has said. She was speaking after Britain's EU ambassador formally triggered the two year exit process by handing a letter to EU Council President Donald Tusk. A sombre-looking Mr Tusk said it was not a ""happy day"" for him or the EU. The European Parliament warned security cooperation was not on the table as it fired its opening salvo in what are expected to be tough negotiations. In her letter to Mr Tusk triggering Article 50 of the Lisbon Treaty, Mrs May said failure to reach a trade deal within the two-year time limit could ""weaken"" cooperation in the fight against crime and terrorism. But Guy Verhofstadt, the European Parliament's chief Brexit negotiator, said he would not accept any attempt to ""bargain"" between trade and security, adding: ""I think the security of our citizens is far too important to start a trade off from one for the other."" In an interview with the BBC's Andrew Neil, to be aired at 1900 BST on BBC One, Theresa May said on security that she ""would like to be able to maintain the degree of co-operation on these matters that we have currently"". On the shape of a likely trade deal with the EU, she said: 'What we're both looking for is that comprehensive Free Trade Agreement which gives that ability to trade freely into the European single market, and for them to trade with us. ""It will be a different relationship, but I think it can have the same benefits in terms of that free access to trade."" Article 50 of the Lisbon Treaty gives both sides two years to reach agreement so, unless the UK and the 27 remaining EU member states agree to extend the deadline for talks, the UK will leave on 29 March 2019, a Friday. At a press conference in Brussels, Donald Tusk held up Mrs May's letter, saying: ""We already miss you."" In a brief statement, he said it was not ""a happy day"" for him or for the EU and promised to begin arrangements for the UK's ""orderly withdrawal"". He said the EU's aim in negotiations was ""damage limitation"" and to ""minimise costs"" for EU citizens, businesses and member states. In a statement in the Commons, Theresa May said: ""Today the government acts on the democratic will of the British people and it acts too on the clear and convincing position of this House."" She added: ""The Article 50 process is now under way and in accordance with the wishes of the British people the United Kingdom is leaving the European Union. ""This is an historic moment from which there can be no turning back."" She said Britain would now make its own decisions and its own laws and ""take control of the things that matter most to us - we are going to take this opportunity to build a stronger, fairer Britain, a country that our children and grandchildren are proud to call home"". She told MPs that this marks ""the moment for the country to come together"". Mrs May said it was a ""moment of celebration for some, disappointment for others"" and promised to ""represent every person in the whole United Kingdom"" during the negotiations - including EU nationals, whose status after Brexit has yet to be settled. She said that while the UK would remain the ""best friend and neighbour"" to its EU partners, it would also look beyond the borders of Europe, saying the country can ""look forward with optimism and hope and to believe in the enduring power of the British spirit"". ""I choose to believe in Britain and that our best days lie ahead."" A six page letter from Mrs May triggering Article 50 was handed to European Council President Donald Tusk by the UK's ambassador to the EU Sir Tim Barrow. Alex Forsyth's analysis: ""In this section the prime minister is attempting to highlight the mutual benefits to both the UK and the EU of reaching an agreement about their future relationship - and warning of the dangers if that doesn't happen. It's a carrot rather than a stick, albeit one that comes with a health warning."" Read Alex's full analysis of the letter's key points In a leaked draft position paper, the European Parliament, which has a final say over any deal struck with Britain, says Brexit could be revoked, despite opposition from the EU chief negotiator Michel Barnier to making references to the reversibility of the process. It also suggests that the European Court of Justice, the EU's top court, will be the ""competent authority for the interpretation and enforcement of the withdrawal agreement"". MEPs also insist that any trade deal between the UK and the EU can only be struck after Britain has left. German Chancellor Angela Merkel has rejected Mrs May's call for negotiations on the UK's exit from the EU to run in parallel with talks on defining their future relationship. ""The negotiations must first clarify how we will disentangle our interlinked relationship... and only when this question is dealt with, can we, hopefully soon after, begin talking about our future relationship,"" said Mrs Merkel in Berlin. There is also likely to be a big row over outstanding debts the UK will have to pay when it leaves. Theresa May promised a ""fair settlement"" - the EU wants ?50bn. Labour leader Jeremy Corbyn said his party would ""back"" Mrs May if she meets his party's tests on the Brexit deal - including full access to the single market and protection for workers' rights. Liberal Democrat leader Tim Farron, who opposes Brexit, said Mrs May was ""twisting the will of the people, leaping into the abyss without any idea of where our country will end up"". He said it was ""still possible for the British people to stop a hard Brexit and keep us in the single market - and if they want, it is still possible for the British people to choose to remain in the European Union"". ""It is a tragedy that Labour are helping the Conservatives in doing this damage to our country,"" he added. The SNP accused Theresa May of breaking a promise to secure a UK-wide agreement before triggering Article 50 - and took a swipe at the prime minister's claim that ""now is not the time"" for another Scottish independence referendum. The party's foreign affairs spokesman Alex Salmond said: ""After nine months of this prime minister's approach to Brexit Northern Ireland is deadlocked, the Welsh are alienated, Scotland is going for a referendum, the English are split down the middle, and Brexit MPs are walking out of Commons committees because they don't like home truths. ""Has the prime minister considered, in terms of invoking Article 50, that 'now is not the time'?"" Negotiations with other EU nations are expected to begin in mid-May. On Thursday the government is expected to publish details of its ""Great Repeal Bill"", which aims to convert EU law into domestic legislation and repeal the European Communities Act, which says EU law is supreme to the UK's. Get news from the BBC in your inbox, each weekday morning", -3621,2017/3/29,http://www.bbc.co.uk/news/uk-39435074,Bridge tribute to Westminster attack victims,"Thousands of people have come together to mark one week since the Westminster attack, in which four victims and the attacker died.","Thousands of people have come together to mark one week since the Westminster attack, in which four victims and the attacker died. Police officers, doctors and hundreds of members of a Muslim youth association were among those walking across Westminster Bridge in memory. Leeds, Leicester, Sheffield, Manchester and Birmingham also had events. Earlier, inquests into the victims' deaths were opened and adjourned at Westminster Coroner's Court. Khalid Masood killed three people when he drove his hire car into pedestrians on Westminster Bridge last Wednesday. Aysha Frade, 44, who worked at a London sixth-form college; US tourist Kurt Cochran, 54, from Utah; and retired window cleaner Leslie Rhodes, 75, from south London died. After crashing, Masood then fatally stabbed PC Keith Palmer outside Parliament, before being shot dead by police. In a statement, Ms Frade's family said: ""Our beloved Aysha; caring daughter, loving sister, amazing wife, irreplaceable aunt, thoughtful, supportive friend and the best and coolest of mummies. ""You were ripped away from our lives in the cruellest and most cowardly of ways. We now pray that you guide and protect not only us, but all of London, from further evil. ""You will always be remembered as our guardian angel who never shied away from facing up to bullies. There are no words to even begin to describe the crushing pain and eternal void left in our hearts."" In Westminster on Wednesday, acting commissioner of the Metropolitan Police Craig Mackey said: ""This afternoon is about remembering the victims of last week's events. ""Our thoughts, our prayers, go out to everyone who was affected by the events last week."" Zafir Malik, an imam from the Ahmadiyya Muslim Youth Association, said his members were ""here to show that we are united with our fellow countrymen and remembering those who have fallen, especially PC Keith Palmer"". As the vigil reached Parliament, dozens of people laid flowers on the side of the bridge, among them a man who was hurt in the attack. By Alex Therrien, BBC News There was an atmosphere of solidarity as the silence was held on Westminster Bridge. Just before the clock struck 14:40 BST, a group including police, children and faith leaders walked across the bridge, led by the banner ""love for all, hatred for none"". When the silence finished, children and other members of the procession laid flowers near to where three pedestrians were killed by Masood. Earlier, people held hands across the bridge in a symbol of unity. Among those paying tribute was Danyal Ahmad, a trainee imam at the Baitul Futuh Mosque in south-west London. The 21-year-old said his group, Ahmadiyya Muslim Youth Association, wanted to show that Islam was about ""love, peace and compassion"". His brother, Zishan Ahmad, a 25-year-old imam, who also attended the memorial, added: ""You can't divide London - we stand together. ""It doesn't matter if you are Muslim, Christian or Jew, or black, brown or any other race. London will never be divided."" Brendan O'Connor, from Holborn, central London, said the memorial service sent a message that those seeking to divide London are ""not going to stop us"". The 59-year-old added: ""There's love here. You can't kill love with hate. Love always conquers."" Speaking as the inquests into the deaths of the four victims opened earlier on Wednesday, senior coroner Dr Fiona Wilcox said it was a ""tragic incident"". Senior investigating officer Det Supt John Crossley told the court Masood was armed with two knives and caused grave wounds when he attacked PC Palmer. The father-of-two was wearing a stab vest, issued as routine to Metropolitan Police officers, but it was not enough to save him and he died at the scene. Officers are examining a ""large amount"" of CCTV and footage taken by bystanders, which gives a ""clear visual chronology"" of how the 82-second incident unfolded. Get news from the BBC in your inbox, each weekday morning He said: ""Currently there are in excess of 1,500 potential witnesses, with accounts being taken from those who are deemed significant. This is currently in excess of 140."" The inquest heard details of how each of the victims had died. Det Supt Crossley described how Masood, driving across Westminster Bridge, mounted the pavement twice in an apparently deliberate attempt to target pedestrians. He crashed the car into the east perimeter railings of the Palace of Westminster, before going into the grounds to attack PC Palmer. More than 35 people were injured in the attack. Twelve are still being treated in hospital, one of whom is in a coma. The inquest into Masood's death will be opened and adjourned on Thursday. In other developments: Earlier, the family of a Romanian woman who fell into the Thames during the attack said they had been overwhelmed by ""love, support and respect"" for her. Andreea Cristea, 29, was on holiday with her boyfriend Andrei Burnaz. In a statement, the couple's families said Ms Cristea was still in a critical but stable condition in hospital. Mr Burnaz sustained a broken foot but has been discharged. They added: ""Our family is so grateful for the first responders, the medical personnel and the assistance of the UK government agencies."" The so-called Islamic State group has said it was behind Masood's attack, but police say they have so far found no evidence of an association with the group or al-Qaeda. Two men arrested in Birmingham under the Terrorism Act by police investigating the attack remain in custody after officers were granted warrants for further detention.", -3622,2017/3/29,http://www.bbc.co.uk/news/uk-england-essex-39437724,Katie Hopkins cannot appeal Jack Monroe libel tweet case,Columnist Katie Hopkins has been told she cannot appeal against a libel action which landed her with a six-figure bill.,"Columnist Katie Hopkins has been told she cannot appeal against a libel action which landed her with a six-figure bill. The pundit and radio host was ordered to pay ?24,000 in damages to food blogger Jack Monroe earlier this month. Ms Monroe sued Ms Hopkins over two tweets posted in May 2015 which accused her of vandalising a war memorial. Mr Justice Warby said the grounds of Ms Hopkins' appeal would not have ""a real prospect of success"" in his view. Ms Hopkins has also been ordered to pay ?107,000 towards the campaigner's legal costs within 28 days. He ruled that the tweets had caused ""Ms Monroe real and substantial distress"" and she was entitled to ""fair and reasonable compensation"". The final costs figure has yet to be assessed. Mail Online columnist Ms Hopkins could appeal directly to the Court of Appeal. Following the original verdict, she argued that libel and defamation laws should be applied differently to cases involving social media.", -3623,2017/3/29,http://www.bbc.co.uk/news/technology-39425724,Samsung Galaxy S8 hides home button and gains Bixby AI,Samsung's latest flagship phones have ditched the physical home button found in their predecessors and introduced a new virtual assistant.,"Samsung's latest flagship phones have ditched the physical home button found in their predecessors and introduced a new virtual assistant. The screens of the Galaxy S8 and bigger S8+ are also larger despite the devices being smaller than last year's S7 and S7 Edge. This time, both models feature displays that curve round the phones' sides. The launch follows Samsung's botched release of the Note 7, which was recalled twice after fires. The South Korean firm blamed the problem on battery faults and said it had since put in additional safety measures, including X-ray scans of batteries. The company has also become mired in a corruption scandal in its home country. ""The Galaxy S8 is arguably the most important launch of the last 10 years for Samsung and every aspect will be under the microscope following the Note 7 recall,"" commented Ben Wood from the CCS tech consultancy. ""The S8 is a unquestionably a strong product but Samsung must now deliver a faultless launch to move on from its earlier difficulties. If this happens it will emerge in an even stronger position."" The new devices will be released on 21 April. The S8 is priced at ?690 and the S8+ at ?780 - a jump on last year's entry prices of ?569 for the S7 and ?639 for the S7 Edge. Samsung was the bestselling handset manufacturer for 2016 as a whole, according to market research firm IDC. However, Apple overtook it in the final three months. Source: IDC The displays of the S8 and S8+, measuring 5.8in (14.7cm) and 6.2in (15.7cm) respectively, mean a more stretched aspect ratio than before, pushing the screens closer to the top and bottom of the handsets. As a consequence, Samsung's logo no longer features on the front, and the physical home button is replaced with an on-screen icon - in a similar manner to rival Android phones from Huawei and LG. A pressure sensor and vibration module have, however, been built into the space behind the new virtual button to provide feedback. Samsung suggests the displays' 18.5:9 ratio makes them better suited to running two apps side by side. For example, there is now space to watch a video, use a chat app and still have room for a full touch-keyboard. The screens are the same resolution as before but are now brighter, supporting high dynamic range (HDR) playback of videos for extra clarity. And since the bodies of the phones are slightly slimmer and lighter than the last generation, Samsung says they can still be used one-handed. The phones also introduce Bixby - a virtual assistant based on technology acquired from some of the original developers' of Apple's Siri. The helper is activated by a dedicated side-button and allows 10 built-in apps - including a photo gallery, messages and weather - to be controlled by voice. It is ""context-aware"", meaning users can ask follow-up questions and assume it is aware of what is currently displayed. Samsung said it expected owners to mix together voice commands and physical controls - for example asking to see all the photos taken today, then tapping the ones they want, before verbally requesting they be messaged to a friend. The software can also be used to recognise objects seen via the phone's camera. This can be used to identify a landmark, for example, or tell the owner how much a product would cost to buy online. Bixby works with Google Play Music, and Samsung intends to open it up to other third-party apps in the future but has not said when. At launch, it is only designed to recognise US and Korean voices. ""If what Samsung demoed works well in practice, Bixby will be interesting because it offers features absent from Siri and Google Assistant,"" commented Francisco Jeronimo from IDC. ""The race is on to have the best digital assistant, since that will drive hardware sales. ""But in the past, some of Samsung's features have looked great in presentations, but when you use them on a daily basis they have not been as good."" While Bixby offers new ways to control a phone, it lacks Google Assistant's pre-emptive smarts - it does not interject in chats to suggest places to visit, for example. However, the search giant's rival artificial intelligence can still be summoned via the home button. Other improvements over last year's models include: Samsung also has a range of accessories including a revamped virtual reality headset that is now accompanied by its own motion-sensing controller, and a second-generation 360-degree camera capable of more detailed images than before. It also offers a new dock that connects the phones to a monitor, keyboard and wireless mouse, allowing them to act as a kind of Android-powered PC. ""Although Microsoft has done this in the past, the performance of the S8 makes it a very compelling experience,"" commented Mr Wood. ""But while I'm impressed with the dock from a technology perspective, the practicality of it for consumers is questionable."" I'm not sure I share Samsung's bold declaration that the S8 is ""a work of art"" - but the slimmer handset definitely sits more easily in one hand than its predecessor. And once you see the surface, which is nearly all-screen, you wonder why you ever needed a physical home button or any other furniture around it. The tech giant has high hopes for its digital assistant Bixby. What I tried was a limited demo model, which only seemed to understand a few predetermined cues such as searching photos and telling you the weather. The idea of using the camera as Bixby's ""eyes"" is neat - but is it enough to draw people away from the more familiar Google Assistant, which will also be preinstalled, as it is on other Android devices? I'd like to be able to tell you more about the battery life of what I imagine is a power-hungry little device - but Samsung was coy about that. Batteries are still a sensitive subject. Samsung Electronics's stock has shrugged off months of bad news, thanks in part to the popularity of last year's Galaxy S7, strong sales of its OLED screens and other components to rival manufacturers, and the fact that investors hope the firm has learned from its mistakes. Even so, the company will hope its latest launch will demonstrate it has turned a corner. 21 Feb 2016: Galaxy S7 phones unveiled - handsets bring back expandable storage and water resistance 24 May 2016: Sued by Huawei - Chinese rival claims patent infringement - Samsung later countersues 8 July 2016: S7 Active fails test - Consumer Reports finds phone fails to survive submerged as advertised 20 July 2016: S7 Active fix found - Samsung acknowledges and resolves production line fault 2 Aug 2016: Galaxy Note 7 revealed - Pen-controlled phone gains iris scanner and attracts positive reviews 24 Aug 2016: First Note 7 ""explosion"" report - News from South Korea of a burnt-out phone 2 Sept 2016: First Note 7 recall - 2.5 million handsets called back because of battery fault 1 Oct 2016: Note 7 returns to sale - Devices return to sale a few days later than planned 5 Oct 2016: Viv assistant acquired - Tech forms basis for the Bixby helper 11 Oct 2016: Second Note 7 recall - Action taken after incidents including a fire on a plane 4 Nov 2016: Washing machine callback - 2.8m machines recalled in US after reports of excessive vibrations 8 Nov 2016: HQ raided - Seoul office raided as part of corruption probe 4 Jan 2017: Brighter TVs - QLED-branded TVs, laptops and smart skin sensor unveiled at CES tech expo 17 Feb 2017: Chief arrested - Vice-chairman of Samsung Electronics, Lee Jae-yong, faces bribery allegations 27 Feb 2017: Two new tablets - New devices, but Galaxy S8 was not ready for launch at Barcelona's MWC tech expo 29 March 2017: Galaxy S8 launch - New flagship phones unveiled in New York", -3624,2017/3/29,http://www.bbc.co.uk/news/entertainment-arts-39434127,George Michael: Private funeral for singer,"George Michael's funeral has taken place, three months after his sudden death at the age of 53.","George Michael's funeral has taken place, three months after his sudden death at the age of 53. His family said a ""small, private ceremony"" on Wednesday was attended by ""family and close friends"". In the statement, they thanked his fans for ""their many messages of love and support"" following the funeral, thought to have been held in London. Michael died of natural causes at his home in Goring-on-Thames, Oxfordshire, on Christmas Day. The riverside cottage became a focus for fans' grief in the days after he died, as did his home in Highgate, north London. The full statement from Michael's family read: ""We can confirm that the funeral of the singer George Michael took place today. Family and close friends gathered for the small, private ceremony to say goodbye to their beloved son, brother and friend. ""George Michael's family would like to thank his fans across the world for their many messages of love and support. We ask that the family's wish for privacy be respected so that they can continue to live their lives privately, away from any media intrusion."" Michael - whose full name was Georgios Kyriacos Panayiotou - first came to fame in the 1980s as a member of Wham! alongside Andrew Ridgeley. The pair's pop hits won them thousands of fans before Michael found solo success with hits including Faith and Careless Whisper. He had a total of seven UK number one singles as a solo artist - including A Different Corner and Jesus to a Child - and the same number of chart-topping albums. Michael also collaborated with artists including Aretha Franklin and Elton John. Ridgeley has been among those to pay tribute to Michael during this year's awards season. Alongside Wham! backing singers Pepsi and Shirlie, he made a speech at the Brit Awards last month describing Michael as a ""supernova"". His death ""felt like the sky had fallen in"", he added. At the Grammys, Adele sang a version of Michael's 1996 hit Fastlove, as a video montage of the late singer was shown. The coroner's verdict on Michael's death only came three weeks ago. Tests were ordered because an initial post-mortem examination was ""inconclusive"". Darren Salter, senior coroner for Oxfordshire, said the star had heart and liver disease. Many of Michael's fans took to social media and online forums to pay their respects again on Wednesday when news of his funeral emerged. While he had mostly stayed out of the limelight in his final years, the singer had been collaborating with Naughty Boy, and producer Nile Rodgers said he had visited Michael's home two days before his death to work on a project. Get news from the BBC in your inbox, each weekday morning Follow us on Facebook, on Twitter @BBCNewsEnts, or on Instagram at bbcnewsents. If you have a story suggestion email entertainment.news@bbc.co.uk.", -3625,2017/3/29,http://www.bbc.co.uk/news/uk-england-hereford-worcester-39436078,Mum of drowned boy Kian Dale 'stupid' to leave him alone in bath,"The mother of a 13-month-old boy who drowned in a bath has told jurors she was ""stupid"" to leave him unsupervised for 15 minutes.","The mother of a 13-month-old boy who drowned in a bath has told jurors she was ""stupid"" to leave him unsupervised for 15 minutes. Lisa Passey, 28, and her former partner Wayne Dale, 45, left Kian and another two-year-old child alone while the pair entertained a friend. Giving evidence at Worcester Crown Court, Ms Passey said it ""was down to me and Wayne.. it's our fault"". Both deny gross negligence manslaughter. More updates on this and other stories in Hereford and Worcester Breaking down at times while recounting what happened the day Kian died at the couple's home in Kyreside, Tenbury Wells, Ms Passey said: ""I don't want any pity. I was stupid for not going upstairs."" While Kian was in the bath, the court has heard, Ms Passey was in her garden with a friend drinking coffee and smoking. Mr Dale joined them to also smoke and then ""burn"" a CD for the friend. Kian was later discovered motionless in an overflowing bath by Mr Dale. His death was consistent with drowning, including what was believed to be soap bubbles in his lungs. It was suggested to the court that the two-year-old had turned the taps on while the pair were downstairs. Ms Passey was questioned about giving differing accounts of what happened to doctors, police and social services, including telling a doctor the children had been in a dry, empty bath. ""I was all over the place,"" she told prosecution barrister, Jonas Hankin QC. ""If you'd gone through it yourself, losing a child, you'd realise you're still trying to grieve,"" She told the court it was a regular occurrence for Mr Dale to leave Kian in the bath, but only ""for a few minutes"". The trial continues.", -3626,2017/3/29,http://www.bbc.co.uk/news/uk-england-kent-39436104,Carl Gregory death: Man guilty of social media row murder,A man who choked a video game fan to death during a fight over a social media post has been found guilty of murder.,"A man who choked a video game fan to death during a fight over a social media post has been found guilty of murder. John Dickson, 27, confronted 20-year-old Carl Gregory in a shopping centre car park in Broadstairs, Kent. During the scuffle, Dickson, who had denied murder, placed Mr Gregory in a choke hold which ultimately caused his death. Dickson was convicted after a trial at Maidstone Crown Court. After the hearing, police said a friend of Mr Gregory's had fallen out with him over a social media post and she asked another man to speak to him about it. He arranged to meet Mr Gregory at the shopping centre and took Dickson with him, and a fight led to Dickson becoming involved and placing Mr Gregory in a choke hold, officers said. Police said Mr Gregory was also kicked while he was on the ground on 4 October last year. Workers leaving nearby shops found his body, but he was declared dead at the scene. The cause of death was later recorded as compression of the neck. Det Sgt Ross Gurden said Dickson, of Northdown Road, Cliftonville, had gone out of his way to confront Mr Gregory. He said: ""I hope this case reinforces the message that the use of violence to resolve issues can result in life-changing consequences. Dickson is a young man who will now serve a considerable length of time behind bars."" Another defendant, Christopher Pollard, 20, of Brimstone Hill, Meopham, had faced the same charge and was found not guilty. Sentencing was adjourned to Thursday. At the time of his death, relatives described Mr Gregory as a typical 20 year old who enjoyed gaming, modern technology and Pokemon Go. Early reports incorrectly linked his death to the Nintendo mobile game.", -3627,2017/3/29,http://www.bbc.co.uk/news/technology-39432350,iPhone users fooled by fake ransomware,Apple has issued an iPhone software update after reports of fake ransomware attacks where money was demanded in order to unlock the handset's browser.,"Apple has issued an iPhone software update after reports of fake ransomware attacks where money was demanded in order to unlock the handset's browser. A pop-up screen accused the phone owner of accessing illegal pornography or pirating music and could not be removed. However the ransomware was fake - and clearing the browser cache was actually enough to restore full access. It ran on JavaScript, a code commonly employed by many websites. The attackers demanded ?100 in the form of an iTunes gift card with the code sent via text message to a designated mobile number, said security firm Lookout in a blog about the malware. ""...the attack doesn't actually encrypt any data and hold it ransom,"" wrote its security researchers. ""Its purpose is to scare the victim into paying to unlock the browser before he realizes he doesn't have to pay the ransom to recover data or access the browser."" The patch closed the loophole but Professor Alan Woodward, cybersecurity expert at Surrey University said some iPhone users have put off the update because it also includes other changes to the running of the device. ""Some people have held off thinking it sounds fairly major, but obviously if they do that they won't get the protection,"" he said. ""There is this feeling that iOS [Apple's operating system] and Apple devices in general are less vulnerable. ""This shines a light on the fact that nothing is invulnerable. JavaSript is cross-platform and it's a matter of how you manage it.""", -3628,2017/3/29,http://www.bbc.co.uk/news/world-us-canada-39434413,Trump border wall funding facing delay,President Donald Trump's Mexican border wall may be delayed as Republicans consider putting its funding on hold.,"President Donald Trump's Mexican border wall may be delayed as Republicans consider putting its funding on hold. Senator Roy Blunt said cash for the wall would be left out of a spending bill that must pass by 28 April to avert a partial government shutdown. His remarks came on Tuesday after Mr Trump requested a supplemental funding bill to include money for the wall along with military programmes. But Mr Blunt signalled Mr Trump's request could complicate negotiations. ""All of the committees, House and Senate leaderships, are working together to try to finalise the rest of the FY17 bill,"" said Mr Blunt, a senior member of the Appropriations Committee and his party's leadership. ""My guess is that comes together better without the supplemental."" He added that the supplemental funding could be dealt with ""at a later time"". Mr Trump had proposed $1.5bn (?1.2bn) for his wall through Congress as part of the spending bill, which funds federal agencies to the end of the current fiscal year. Who is going to pay for wall? How much has the president achieved so far? But Democrats have threatened to block the bill if money for the controversial wall is included. The government would shut down some federal agencies at midnight on 28 April if Congress is unable to pass the spending bill. A ""great, great wall"" along the US-Mexican border was a cornerstone of Mr Trump's presidential campaign. But the plan has faced resistance from both Democrats and Republicans, and has been estimated to cost as much as $21.6bn - more than the price tag the president cited as $12bn. Republicans are under pressure to keep the government running after they failed to secure a repeal of the Affordable Care Act. House Speaker Paul Ryan on Tuesday said Republicans would not try to remove federal funding for women's healthcare provider Planned Parenthood in the upcoming bill. Democrats had also vowed to stop the critical bill if the provision was included. Mr Ryan added that it would be best accomplished on legislation at a later date. The president's wall setback comes as the US Department of Homeland Security pushed back a deadline for proposals to build the wall. The deadline on Wednesday has been changed to 4 April, the department confirmed on Tuesday. About 20 companies will be selected after the 10-page proposals are submitted on 4 April. The federal government will then ask a final group of contenders to build prototypes at a meeting in San Diego, California.", -3629,2017/3/29,http://www.bbc.co.uk/news/world-middle-east-39431088,Mosul battle: Iraqi forces edge closer to key mosque,Iraqi forces say they are pushing into the Old City of Mosul and closing in on a key mosque despite fierce resistance from Islamic State (IS) militants.,"Iraqi forces say they are pushing into the Old City of Mosul and closing in on a key mosque despite fierce resistance from Islamic State (IS) militants. Federal police chief Lt-Gen Raed Jawdat said officers were besieging the area around the Great Mosque of al-Nuri. The building was where IS leader Abu Bakr al-Baghdadi proclaimed the establishment of a ""caliphate"" in 2014. Gen Jawdat said police had also retaken the Qadheeb al-Ban district and the al-Malab sports stadium, to the west. Elite troops from the interior ministry's Rapid Response Force were also advancing into the Old City on Wednesday, an official told the Reuters news agency. Iraqi government forces launched a major offensive to recapture Mosul, the last major IS urban stronghold in the country, in October. Supported by US-led coalition air strikes and military advisers, they have managed to retake large parts of the city and its surrounding area. They regained full control of all of eastern Mosul in January and have driven militants from several districts since starting an assault on the west on 19 February. On Wednesday, Reuters correspondents on the ground in western Mosul reported that helicopters were strafing IS positions on the edge of the Old City. Fleeing residents also said they had heard sustained gunfire inside the Old City. Gen Jawdat also announced that police forces had killed IS health minister, Saadallah Abu Shuaib, and his two guards near the Republican Hospital. To the west in the town of Tal Afar, the Iraqi air force carried out several air strikes, destroying an IS security headquarters and two workshops making car bombs and booby-traps, the military's media office said. Meanwhile, Pope Francis said it was ""imperative and urgent"" to protect civilians in Mosul, where at least 307 people have been killed and 273 wounded in just over a month. It comes a day after the top US commander in Iraq said the coalition ""probably had a role"" in an explosion in western Mosul that killed as many as 200 people. But Lt-Gen Stephen Townsend added that IS might also have ""had a hand"" in it. A coalition air strike - reportedly targeting IS snipers and equipment - is believed to have hit a house in the Jadida district on 17 March. Witnesses told the UN that at least 140 civilians were being held there as human shields. They also said militants had booby-trapped the house with bombs. UN human rights chief Zeid Raad Al Hussein has also called on the coalition and Iraqi security forces to review their tactics in Mosul in light of the incident, urging them to avoid ""traps"" laid by IS and take every precaution to prevent civilian deaths. The rights group Amnesty International warned that any failure to take adequate precautions would be a ""flagrant violation of international humanitarian law"".", -3630,2017/3/29,http://tass.com/politics/938329,Russian top diplomat dismisses claims about human rights violations in Crimea as lies,"Those who go to Crimea see everything for themselves, Lavrov emphasized","MOSCOW, March 29. /TASS/. Allegations that human rights are violated in Crimea, and particularly Crimean Tatars are subject to discrimination, are lies, Russian Foreign Minister Sergey Lavrov said in an interview with the US National Interest magazine. The top diplomat said that ""people tend to forget, because they'r being brainwashed every day with very simple phrases like ""�Russia is aggressor in Ukraine,""?""�annexation of Crimea""?and so on and so forth, instead of laboring your tongues, people should go there."" ""Those who go to Crimea, see for themselves how the people live there, and they understand that all these hysterical claims-about violation of human rights, about discrimination of the-Crimean Tatars, are-lies,"" Lavrov added. ", -3631,2017/3/29,http://tass.com/politics/938316,Russian top diplomat suspects Jabhat al-Nusra could be used to topple Assad,"According to the diplomat, before Russia ""the US coalition was very rarely hitting ISIL positions and almost never hitting the positions of Jabhat al-Nusra""","MOSCOW, March 29. /TASS/. Suspicions remain that the Jabhat al-Nusra terror group could be used to topple Syrian President Bashar al-Assad, Russian Foreign Minister Sergey Lavrov said in an interview with the US National Interest magazine. According to the diplomat, before Russia ""moved there with its-air force, the US coalition was very rarely hitting ISIL positions and almost never hitting the positions of Jabhat al-Nusra, which many people believe has been spared just in case at some point they might be needed to topple the regime."" ""This feeling, this suspicion, is still very much alive these days, when Jabhat al-Nusra already twice changed its name, but it never changed its sponsors who continue to pump money and whatever is necessary for fighting into this structure,"" Lavrov noted adding that ""people know this."" The Russian top diplomat went on to say that ""when Russia-moved there, at the request of the government, we suggested to the US to coordinate our efforts."" ""They said, 'No, we can only go for deconfliction,'-and deconfliction procedures were developed and are being applied quite well, but we believed it was a shame that we couldn""t go further, and coordinate targets,"" Lavrov said. -A number of external players have been encouraging radicals active in Syria to stage terrorist attacks,-Sergey Lavrov has pointed out.- According to the diplomat, the Astana and Geneva talks aimed at resolving the Syrian conflict are not ""welcome by quite a number of external players who try to provoke and encourage the radicals, radical armed groups in Syria, to make trouble and to stage some terrorist attacks."" ""They launched a huge offensive now in the northern part of the Hama province, and they basically coordinate with Jabhat al-Nusra (terror group outlawed in Russia), under its new name,"" Lavrov added. The Russian top diplomat said that ""it's also a game for the influence in Syria, unfortunately, which prevails in the minds of the people who promote such an approach, rather than the need to get united to fight terrorism, and then to have a political deal."" ""It's the fight for influence on the battleground, and this is unfortunate. We don""t need this now,"" Lavrov noted. The Russian foreign minister went on to say that ""what we need is to strengthen the cessation of hostilities and to support strongly the political process in Geneva, concentrated on the new constitution, which would be accompanied by a division of power between the government, the opposition, all ethnic groups, then elections and so on and so forth."" ""But all this would be absolutely meaningless if people sacrifice the fight against terror for the sake of their goal, their obsession, with regime change,"" Lavrov stressed.", -3632,2017/3/29,http://tass.com/politics/938313,Lavrov reiterates there are no facts substantiating Iran's links to terrorists,The Russian top diplomat also doubts that the Trump administration will stick to its campaign slogans about Iran,"MOSCOW, March 29. /TASS/. There is not a single fact of Iran's collaboration with terrorists, Russian Foreign Minister Sergey-Lavrov said in an interview with the-National Interest magazine. ""I don""t think that the Trump administration is thinking in the same terms as the slogans during the campaign, that Iran is the number one terrorist state; we don""t have a single fact to substantiate this claim,"" Lavrov said. ""At least when we were facing a huge terrorist threat, when we were under terrorist attack in the 1990s in the northern Caucasus, we detected and discovered dozens and hundreds of foreign terrorist fighters from very close neighborship to Iran, but not from Iran at all,"" he said. ""And we know that the political circles in quite a number of countries were really encouraging these terrorist groups to go into the northern Caucasus."" ""Iran had never challenged the sovereignty of the Russian Federation, never used its own links with Muslim groups to provoke radicalism and to cause trouble,"" he added. Russia, Iran and those that cooperate with the Syrian army, ""are fighting terrorists in Syria,"" he said. ""Iran is a powerful player on the ground, legally-invited by the government. Iran has influence over the Lebanese Hezbollah, which is also legitimately on the ground,"" the Russian foreign minister said. ""And if we all want, you know, to topple, to defeat terrorists in Syria, there should be some coordination.""- ", -3633,2017/3/29,http://tass.com/politics/938309,Russian senior diplomat plans to meet with US envoy for Syria,,"GENEVA, March 29. /TASS/. Russia is ready for contacts with US officials on Syria in Geneva and a meeting may take place on Wednesday, Deputy Foreign Minister Gennady Gatilov said. ""There are such plans,"" Gatilov said, answering a reporter's question about his plans to hold consultations with US Special Envoy for Syria Michael Ratney in Geneva. ""If the United States shows interest, we are ready to meet."" The Russian senior diplomat did not rule out that the meeting might take place later on Wednesday. ""Maybe,"" he said, noting that the US continued to play a major role in resolving the Syrian crisis. On Monday, Gatilov arrived in the Swiss capital to have consultations with participants in the intra-Syrian peace talks.", -3634,2017/3/29,http://tass.com/defense/938281,Russia to upgrade helicopter protection system based on Syrian experience,The helicopter protection system Vitebsk will be upgraded by 2018,"MOSCOW, March 29. /TASS/. The helicopter protection system Vitebsk will be upgraded by next year on the basis of its performance in Syria, the Russian Defense Ministry said on Wednesday. ""The Defense Ministry has made a decision to further upgrade the army aviation's protection system Vitebsk. The counter-terrorist campaign in Syria has allowed for accumulating the necessary experience of using this onboard protection system in real action. A decision has been made in favor of a profound upgrade of the Vitebsk system to make it capable of protecting helicopters from any current or future anti-aircraft systems of foreign manufacture,"" the Defense Ministry said. Research and development will be completed by 2018. The upgraded system will begin to be installed on army helicopters after government certification tests. ""The Vitebsk system has vast room for improvement. It will be upgraded, its range of frequencies expanded and range enhanced to guarantee better protection for all aircraft from guided missiles and shoulder-launched rockets,"" he said. The digitalized individual protection system Vitebsk creates optical and radio-electronic jamming. Its first consignments were delivered in 2015. Night Hunters and Alligators: Russian military helicopters ", -3635,2017/3/29,http://tass.com/politics/938300,Lavrov says Ukrainian president wants to bury Minsk agreements,"""They want them dead in a way which would allow them to blame Russia and the people in the east of Ukraine"", the Russian foreign minister has stressed","MOSCOW, March 29. /TASS/. Russian Foreign Minister Sergey-Lavrov believes that President Pyotr Poroshenko wants to bury the accords on peace settlement in eastern Ukraine. ""On the Minsk agreements, I believe that the Ukrainian government and President Poroshenko personally want them dead,"" Lavrov said in an interview with the National Interest magazine. ""They want them dead in a way which would allow them to blame Russia and the people in the east of Ukraine,"" he said. ""They certainly encountered huge opposition from the radicals, and the radicals believe that this government is weak enough just to wait it out and to have either early elections or to have another Maidan."" ""The Ukrainian government wants to provoke the other side to blink first and to say, enough is enough, we drop from the Minsk deal,"" Lavrov said. ""That's why the economic blockade, that's why the prohibition for the banks to serve the population in the east."" ""By the way, in the Minsk agreements, two years ago we discussed the difficulties in banking services for this part of Ukraine and Germany and France committed themselves to organizing mobile banking, and they failed because they could never get cooperation from the Ukrainian authorities,"" he said.- Pyotr Poroshenko's claims that the murder of former member of the Russian parliament Denis Voronenkov in Kiev was an act of terror from Russia should be based on facts, the Russian diplomat said.- ""President Poroshenko two hours after the guy [Voronenkov]-was murdered says that this was a terrorist attack from Russia - who also blew up the munition depot near Kharkov. It was said a few hours later by the president of a democratic country, whom our American and European friends call a beacon of democracy. I thought democracy was about establishing facts when you have suspicions,"" Lavrov stressed. Voronenkov was killed in Kiev on March 23 in a shootout at the entrance of Premier Palace hotel at around 13:00 hours. When Voronenkov was walking out of the hotel into the street in the company of a bodyguard, a gunman approached them and made several shots from a handgun. An exchange of fire between the killer and Voronenkov's bodyguard followed, with both of them getting wounds and taken to hospital subsequently. The killer died in hospital later. The State Duma, the lower house of Russia's Federal Assembly stripped Voronenkov of parliamentary immunity in December 2014 in connection with a criminal case over an illegal seizure of a building in downtown Moscow. Voronenkov emigrated to Ukraine in October 2016. In February 2017, the Russian authorities issued charges with swindling to him and placed him on an international wanted list.", -3636,2017/3/29,http://tass.com/sport/938288,FIDE executive says Ilyumzhinov himself to blame over media buzz on his resignation,Earlier in the day Ilyumzhinov said that Nigel Freeman and Georgios Makropoulos attempted to stage a coup within the federation to oust the federation's president from his post,"MOSCOW, March 29. /TASS/. FIDE (International Chess Federation) Deputy President Georgios Makropoulos said on Wednesday that FIDE President Kirsan Ilyumzhinov should blame himself over the recent media buzz regarding his alleged resignation. On Monday, FIDE's official website posted a statement on President Kirsan Ilyumzhinov's supposed resignation. It stated that FIDE's president supposedly announced his decision to step down at a meeting of the organization's council in Athens on March 26. However, Ilyumzhinov rejected this report while talking to TASS. In a letter posted on the FIDE official website and addressed personally to Ilyumzhinov, Makropoulos said: ""I would like to kindly remind you that this situation is a result of your own actions."" ""You were advised before and during the meeting, by several board members present that the discussion was wrong, and that the FIDE presidential Board should not serve for you to try to resolve personal issues,"" Makropoulos said. Ilyumzhinov told a news conference in Moscow earlier in the day that FIDE Executive Director Nigel Freeman and Makropoulos attempted to stage a coup within the federation and conspired to oust the federation's president from the post.", -3637,2017/3/29,http://tass.com/politics/938293,Russian top diplomat says Moscow ready to develop relations with Washington,Sergey Lavrov says the Russian Foreign Ministry and the US state department should work closer,"MOSCOW, March 29. /TASS/. Moscow is ready to develop the relationship with the United States on fair terms, Russian Foreign Minister Sergey Lavrov said in an interview with the US National Interest magazine. ""We said that we would be ready to come back to the relationship and to develop the relationship with the United States to the extent, and to the depths, to which the administration is ready to go,"" the Russian top diplomat noted. ""Whatever is comfortable for our partners, we will support and provide it. We talk on the basis of mutual respect and equality, trying to understand the legitimate interest of each other and to see whether we can find the balance between those interests,"" he said. ""We will be ready to cover our part of the way, as President Putin said, but we will not be making any unilateral steps,"" Lavrov said. ""We offered cooperation on very fair terms, and we will judge by the deeds of course,"" he added. The Russian Foreign Ministry and the US Department of State should work closer, Lavrov said. ""After the American election, soon after Election Day President Putin and President-elect Trump talked over the phone,"" Lavrov said. ""It was a good but very general discussion touching upon the key issues in our relations, and of course the key international issues,"" he added. ""And they agreed that they would continue being in touch and after the inauguration they talked again, and they reconfirmed the need to look for ways which would be effective in handling international problems."" The Russian top diplomat pointed out that the two presidents ""agreed that they would continue being in touch and after the inauguration they talked again, and they reconfirmed the need to look for ways which would be effective in handling international problems."" ""And of course to see what could be done to bring the bilateral relations to normalcy,"" he added. ""They also agreed that (US Secretary of State) Mr. Rex Tillerson and I would look into the agenda in some more details, and would also discuss the preparation for the presidential meeting which should take place when both countries, both leaders feel comfortable,"" Lavrov said. ""We met with Rex in mid-February in Bonn on the margins of the G-20 ministerial meeting, and covered quite a lot of the bilateral agenda,"" the Russian foreign minister went on to say. ""I briefed him about the relationship on bilateral issues with the Obama administration, the problems which accumulated during that period,"" he added. ""We discussed Syria, Iran, the Korean Peninsula, the Middle East in general, relations between Russia and the West, it was a very general, but rather substantive discussion, obviously it was the first contact and Mr. Rex Tillerson is just getting into the shoes of his new capacity,"" Lavrov said."" ""We discussed the possibility of personal meeting and have been continuing these discussions. As soon as we finalize them it will be announced,"" the Russian top diplomat noted. ""My feeling is that from the point of view of personal relationship, we feel quite comfortable. I feel quite comfortable, I believe Rex had the same feeling, and our assistants should work closer but of course this could only be done when the team in the State Department is complete,"" Lavrov said.- Some people in the United States want to tie up the team of US-President Donald-Trump on the Russian issue, Sergey Lavrov believes. ""I understand that there are some people in the United States who want this to become an obstacle, and who want to tie up the team of President Trump on the Russian issue, and I believe this is very mean policy, but we see that this is taking place,"" Lavrov said. According to him, Russia cannot do much to help. ""We cannot accept the situation, but some absolutely artificial hysterical situation was created by those who severed all of the relationship-who dropped the deal on the Bilateral Presidential Commission between Moscow and Washington with some twenty-plus working groups, a very elaborate mechanism of cooperation-and then after they have done this, after they prevent the new administration from doing away with this absolute stupid situation, to ask us to do something? I don""t think it's fair,"" the Russian top diplomat pointed out. ""We said what we did, that we are ready to work with any administration, any president who would be elected by the American people,"" Lavrov noted. ""This was our line throughout the electoral campaign, unlike the acting leaders of most European countries who were saying absolutely biased things, supporting one candidate, unlike those who even bluntly warned against the choice in favor of the Republican candidate, and this somehow is considered normal,"" he said. ""But I leave this on the conscience of those who said this and then immediately chickened out and then started praising the wisdom of the US electorate,"" Lavrov added. ""We said that we would be ready to come back to the relationship and to develop the relationship with the United States to the extent, and to the depths, to which the administration is ready to go. Whatever is comfortable for our partners, we will support and provide it,"" the Russian top diplomat said. ""We talk on the basis of mutual respect and equality, trying to understand the legitimate interest of each other and to see whether we can find the balance between those interests. We will be ready to cover our part of the way, as President Putin said, but we will not be making any unilateral steps. We offered cooperation on very fair terms, and we will judge by the deeds of course,"" Lavrov concluded. Lavrov stressed accusations of Russia's meddling with domestic affairs of the United States, in particular with the presidential election in 2016, are absolutely groundless/ ""I believe that these absolutely groundless accusations - at least I haven""t seen a single fact that this was substantiated,"" Lavrov said. In the electoral campaign, these accusations were used as an instrument, ""which for some reason seemed to the Democratic Party to be an efficient way to raise support among the American people, playing on their feelings that no one shall meddle with American affairs."" ""This is a Russophobic instrument. It was a very sad situation because we never wanted to be unfriendly with the American people, and apparently the Obama administration, the elite in the Democratic Party, who made every effort during the last couple of years to ruin the very foundation of our relationship, decided that the American people should be brainwashed without any facts, without any proof. We are still ready to discuss any concerns of the United States,"" he added. -Swedish Prime Minister Stefan Lofven's statement on Moscow's alleged plans to interfere in the upcoming elections in Sweden is childish, Russian Foreign Minister Sergey Lavrov said in an interview with the US National Interest magazine. ""I read yesterday that the Swedish prime minister is becoming nervous that they also have elections very soon and that Russia would 100% be involved in them. Childish, frankly speaking,"" Lavrov noted. ""You either put some facts on the table or you try to avoid any statements which embarrass you, even if you don""t believe this is the case,"" he said. ""Speaking of meddling with others""?matters, there is no proof that Russia was in any way involved either in the United States, or in Germany, or in France, or in the United Kingdom,"" the Russian top diplomat stressed adding that ""it's embarrassing to see and to hear what we see and hear in the West."" ""But if you speak of meddling with other countries""?matters, where facts are available-take a look at Iraq,"" the Russian foreign minister said. ""It was a very blunt, illegal intervention, which is now recognized even by Tony Blair, and those who were pathetically saying that they cannot tolerate a dictator in Iraq."" Lavrov went on saying ""take a look at Libya, which is ruined, and I hope still has a chance to become one piece."" ""Take a look at Syria, take a look at Yemen: this is the result and the examples of what takes place when you intervene and interfere. Yes, I'm sure you can say about Ukraine, you can say about Crimea, but for this you have to really get into the substance of what transpired there,"" Lavrov noted.", -3638,2017/3/29,http://tass.com/economy/938276,London High Court rules Ukraine must repay $3 bln to Russia,"According to Russia's Finance Ministry, London's High Court recognizes Ukraine has no arguments against Russian debt recognition","MOSCOW, March 29. /TASS/. Russia's Finance Ministry believes that by its judgment on the expedited procedure of examining Russia's lawsuit versus Ukraine on the $3bln debt recovery the High Court of London has obliged Kiev to repay debt and interest to Moscow, the ministry's press office said on Wednesday. ""On March 29, 2017, London's High Court passed a judgment after examining Russia's request for hearing its lawsuit versus Ukraine in an expedited procedure that Ukraine is obliged to pay Russia the Eurobond nominal value of $3 billion and the relevant amount of accrued interest,"" the Finance Ministry said. ""The court pronounced its final verdict obliging Ukraine to pay to Russia its eurobond debt in full. No extra hearings on this issue in the London High Court are due,"" the Finance Ministry said. ""The High Court of London has acknowledged that the defendant lacks any arguments that reject the claimant's reasons about the existence of the Eurobond debt and, as a consequence, there is no need to examine the arguments provided by the counsel for the defense in the course of a full-scale judicial process. In particular, the court pointed in its judgment that the talk was about the demand to fulfil obligations under a debt instrument and the defendant lacks any arguments for the court in favor of recognizing this claim as unsubstantiated,"" the Finance Ministry said.- Meanwhile, Ukraine has said it will appeal against the London High Court's judgment. Russia purchased Ukraine's $3 bln Eurobond in December 2013, using money of its National Welfare Fund. After paying the first three Eurobond coupons, Ukraine refused to repay $3.075 billion as the Eurobond's principal and last coupon in December 2015. After numerous attempts to settle the issue out of court, in February 2016 Russia requested The Law Debenture Trust Corporation acting as the Trustee on the Eurobond to initiate judicial proceedings against Ukraine in the High Court of London. London's High Court has ruled to hear the case of Ukraine's $3 billion debt to Russia in an expedited procedure, Judge William Blair said on Wednesday. Judge Blair presided over a three-day court session on this issue in January. ""The Trustee is entitled to summary judgment,"" the judge said, reading out the ruling. As the court said in its ruling, ""Summary judgment is the procedure by which the court may decide a claim without a trial, where the claimant can show that the defendant has no real prospect of successfully defending the claim.""", -3639,2017/3/29,http://tass.com/economy/938265,Russian energy minister pegs oil price at $70-100 as profitable for Arctic production,"Russia is producing 93 mln tonnes of oil in the Arctic annually, the energy minister says","ARKHANGELSK, March 29. /TASS /. The extraction of oil in the Arctic offshore zone will be profitable if the oil price is at $70-100 per barrel, Russian Energy Minister Alexander Novak told reporters on the sidelines of the Arctic - Territory of Dialogue forum. ""We proceed from the fact that our oil and gas companies specify the order of prices when it is economically profitable and effective (to work in the offshore zone) - it is from 70 to 100 dollars,"" Novak said. Russia is producing 93 mln tonnes of oil the Arctic annually and this figure is growing year on year, Energy Minister Alexander Novak said on Wednesday at the International Arctic Forum. ""Russia is currently producing almost 100 mln tonnes - 93 mln tonnes, to be exact - of oil in the Arctic zone, accounting for 17%. This figure is growing year on year; it was 13% of our [total] production just five years ago,"" Novak said. Russia's main gas reserves are also situated in the Arctic region, the minister said. ""90% are produced in Yamal-Nenets Autonomous District. Total gas production there was 519 bln cubic meters last year,"" Novak added. Earlier the Russian government decided to impose a temporary moratorium on issue of licenses for the development of fields located in Russia's Arctic offshore zone. Novak expects that OPEC's recommendation to extend the agreement on oil production reduction will be received in late April. ""We expect that the data will be received in a month, at the end of April, and we will discuss the relevant recommendations at a ministerial meeting,"" Novak said in an interview with the Rossiya 24 TV channel during the International Forum ""Arctic - Territory of Dialogue"". The minister stressed that thanks to the agreement on reduction of production, the balance in the oil market can be achieved one month earlier than it was expected. On March 25-26, the committee for monitoring of oil production by OPEC and non-OPEC countries participating in the production reduction agreement held a meeting in Kuwait.", -3640,2017/3/29,http://www.dw.com/en/us-military-launches-formal-investigation-into-civilian-deaths-in-mosul/a-38197930?maca=en-rss-en-all-1573-rdf,US military launches formal investigation into civilian deaths in Mosul,The top US general for the Middle East has said a formal investigation is now underway into mass casualties in Iraq. Thousands of civilians are believed to have died during a recent US-led offensive in Mosul.,"Army General Joseph Votel, head of the US Central Command, told members of the House of Representatives on Wednesday that a probe into a recent bombing in the Iraqi city of Mosul has moved from an ""assessment"" to a formal investigation. Speaking before members of the House Armed Services Committee, Votel said the investigation would seek to determine what role the US played in the civilian deaths in Iraq's second-largest city. On March 17, an Iraqi military official said that an airstrike carried out by the US-led coalition struck an explosives-laden truck,-killing dozens of non-combatants. The incident cast a new light on civilian casualties in the city, as the US and its regional allies seek to wrest control of it from the so-called ""Islamic State"" (IS) terrorist group. Iraqi forces regained control of the eastern part of Mosul in January, but much of the city still remains in the hands of IS, which first took over the city back in 2014. Votel said IS is exploiting US sensitivities to civilian casualties and that the investigation would also look to determine what role the terror group played in the deaths, such as using civilians as human shields. US airstrikes 'alarming': Amnesty The general's announcement comes not long after both the UN and rights group Amnesty International expressed concern over the coalition's offensive in the city. On Tuesday, Amnesty released a report detailing the destruction that US-led airstrikes have left in their wake. ""Evidence gathered on the ground in East Mosul points to an alarming pattern of US-led coalition airstrikes which have destroyed whole houses with entire families inside,"" Amnesty senior advisor Donatella Rovera said. More than 3,000 civilians are believed to have died since US-backed government forces launched their onslaught into the city. Amnesty said the US is not taking adequate precautions to ensure the safety of non-combatants, though on Monday the US publically denied that it had loosened its rules of engagement on airstrikes against IS. Additionally, Votel told members of the committee that 284 members of the Iraqi security forces had been killed since the fighting to retake Mosul began, adding that more than 1,600 had been wounded. Also on Wednesday, Iraqi government forces edged closer to retaking a key area in western Mosul as they continue to battle with IS militants. blc/jm-(AP, Reuters)", -3641,2017/3/29,http://www.dw.com/en/russia-s-hypersonic-missile-ratchets-up-arms-race/a-38189763?maca=en-rss-en-all-1573-rdf,Russia's hypersonic missile ratchets up arms race,Reports suggest Russia is preparing to test a hypersonic missile that would be almost impossible to intercept. The Zircon rocket will be capable of traveling up to six-times the speed of sound.,"Russia's planned 7,400 kilometer per hour (4,600 mile-per hour) hypersonic missile is such a ""quantum leap in technology,"" it could potentially render Western anti-aircraft defenses ""obsolete,"" defense analyst Tim Ripley told DW. If the new anti-ship technology succeeds, Zircon will be able to cover a distance of 250 kilometers (155 miles) in just 2.5 minutes - so fast as to make it almost immune to interception by conventional technology. ""It will greatly reduce the reaction time that they (Western military units) have to deploy their own defenses and counter-measures,"" said Ripley, who covers defense issues for ""Jane's Defence Weekly"" magazine. Testing brought forward After being in development for several years, Russia's Interfax news agency last month cited a source familiar with the Zircon project who said the 5-ton missile is likely to be tested for the first time this spring ""from a sea-based platform."" That's earlier than the original projected date of 2018. Russian media reported the missile could be fully operational by the end of the decade. The hastening of Zircon's tests comes amid the weakest point in relations between the West and Moscow since the Cold War, fueled by the Ukraine crisis, the war in Syria and Russia's alleged interference in Western politics --including the US presidential election. Several UK newspapers reported on Zircon's development in recent days, warning that it would make even the most sophisticated US and British warships - including aircraft carriers - more vulnerable to attack. For instance, Britain's two newest naval carriers - HMS Queen Elizabeth and HMS Prince of Wales - which are expected to enter service in 2020, can only stop missiles traveling at around half of Zircon's speed, ""The Independent"" reported. Defense analysts say a hypersonic missile attack on a US or European aircraft carrier would be unstoppable The warships have cost the British government 7 billion pounds (8.1 billion euros,-$8.7 billion) to procure, and Russia's latest hypersonic weapon could turn them into-the biggest military white elephants ever. Zircon can be programmed during its flight to search out and attack its target and-could-even reach a distance of about 500 kilometers, according to Russian media. Ripley, who is the author of several-books on military conflicts and technology, says other applications for Zircon's hypersonic capabilities could include land attacks, which would open up the vulnerabilities of European cities to Russian strikes. ""With modification, the kind of attacks that America has launched against Iraq, Afghanistan and Serbia in the past is clearly possible,"" said the UK-based defense journalist. US trails other powers 'in the pubic domain' While the US is also developing its own hypersonic weapons, they are not yet believed to be close to production.- Last year, a report by the US National Academies of Science concluded that America was falling behind Russia and China in the hypersonic weapons race. It called for further investment in missiles-that travel, almost undetectably, at speeds of Mach 5 or faster. 'In the public domain,' Russia has the edge in the hypersonic missile race ""In the public domain, the West seems to be quite a long way behind,"" Ripley told DW. ""But that doesn't mean there isn't some black, super-secret project run by the US' Defense Advanced Research Projects Agency, or DARPA."" DARPA is allotted an estimated $3 billion annual budget to-develop emerging technologies for use by the US military. New arms race Ripley believes the West is right to be worried about Russia's military advances, warning that a new arms race was now unavoidable. ""We're in a period of possible military parity again. Recently we've had Ukraine, Crimea and Syria, where Russia has deployed weapons that are certainly on a par with their American and British equivalents, including cruise missiles from submarines,"" he said, adding that-Zircon will push Russia ahead. Noting that US President Donald Trump recently ordered a 9.4 percent increase in military spending worth some $54 billion, Ripley is watching to see if-European leaders follow suit. In recent months, Washington has stepped up the pressure on Germany to commit more of its budget surpluses to military spending. Earlier this month, Chancellor Angela Merkel promised Trump her government would work toward-meeting the NATO target of 2 percent of gross domestic product (GDP) on defense by 2025. But while Germany and France have been ruffled by the rhetoric from Washington about NATO's relevance in the 21st century, the Berlin government is loathe to increase military spending so swiftly to meet the alliance's target. To do so, its current projected budget of 36 billion euros for 2017 would have to rise by a third. ""That's the thing to watch now, whether Europe actually steps up and starts investing in weapons and equipment to counter the latest products coming out of Russia, China and India,"" Ripley told DW. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2SA4D", -3642,2017/3/29,http://www.dw.com/en/down-with-zuma-chants-at-funeral-for-anti-apartheid-legend-kathrada/a-38194932?maca=en-rss-en-all-1573-rdf,'Down with Zuma' chants at funeral for anti-Apartheid legend Kathrada,"Ahmed Kathrada, who spent decades campaigning against South Africa's white minority rule, has been laid to rest in Johannesburg. Mourners contrasted his ""incorruptible"" leadership with that of President Jacob Zuma.","After barring President Jacob Zuma from the event, the funeral for renowned anti-Apartheid activist Ahmed Kathrada on Wednesday turned into a rally against South Africa's scandal-ridden leader, Jacob Zuma. A longtime African National Congress (ANC) politician, Kathrada had himself called on Zuma to step down in a public letter. Former President Kgalema Motlanthe received resounding applause when he read out extracts from the letter at the memorial in Johannesburg. He said Kathrada had been ""deeply disturbed by the current post-Apartheid failure of politics."" 'Down with Zuma' ""He found current leadership wanting on many fronts... and would not hesitate to call for the resignation of the president of the country with whom the buck stops,"" Motlanthe said. Mourners then began to shout ""down with Zuma."" Born in 1929 to Indian immigrant parents, Kathrada left school at 17 to begin what would become a lifetime of fighting systematic racism in South Africa. He was arrested multiple times for acts of civil disobedience, spending time in the country's infamous Robben Island prison. He came into contact with the ANC in the 1950s, and was sentenced to life imprisonment in 1964 alongside Nelson Mandela and other leaders after the organization was banned. He joined parliament as a member of the ANC after Apartheid was repealed in 1994. He died on Tuesday at the age of 87 following complications from a cerebral embolism. Kathrada ""saved us from the darkness of our hearts,"" Motlanthe said in his tribute. ""Now that the court has found that the president failed to uphold, defend and respect the constitution as the supreme law, how should I relate to my president?"" Kathrada wrote in his letter to Zuma Dark days for the ANC Despite its decades of importance in the struggle for civil rights, the ANC, particularly under Zuma, has gone through a series of corruption scandals and in-fighting that has tarnished its reputation in politics. Kathrada was finally moved to personally ask the president to resign last year after the country's top court ruled that Zuma had illegally used public funds to upgrade his home. Kathrada's family thus asked him to stay away from the memorial in an embarassing sign of disconent with his administation. At the same time, Zuma was further engulfed in a scandal over a plan to sack Finance Minister Pravin Gordhan and replace him with a loyalist. Speakers at the funeral highlighted Kathrada's ""incorruptible"" leadership in comparison to those who now rule South Africa. Higher Education Minister Blade Nzimande bemoaned the fact that Kathrada had died ""when his wisdom is needed the most, when parasitic patronage seeks to capture the movement."" Kathrada's coffin was draped in an ANC flag and then carried to the cemetery amongst a crowd of hundreds who had gathered to pay their respects. es/jm (AFP, dpa)", -3643,2017/3/29,http://www.dw.com/en/corruption-nepotism-kashmir-democracy-indian-style/a-38194900?maca=en-rss-en-all-1573-rdf,"Corruption, nepotism, Kashmir: Democracy Indian style?","India is the world's largest democracy, but does it live up to that promise? Tim Sebastian meets Indian MP Shashi Tharoor on Conflict Zone.-","""There isn't a single crime or misbehavior even in Kashmir that hasn't first been exposed by an Indian individual by an Indian person or authority, by an Indian media person or an Indian NGO,"" MP Shashi Tharoor has told DW in an exclusive interview on Conflict Zone.- ""Indians are the first to bring these up. It's impossible to hide wrongdoings in Kashmir,"" he said.-The Kashmir conflict has divided India and Pakistan since 1947. India's partition led to the formation of India and Pakistan. They have fought two wars over the territory, and Kashmir remains one of the most militarized zones in the world.- When Conflict Zone host Tim Sebastian confronted Tharoor, an MP for the Indian National Congress (INC) party, over the discovery of mass graves in Kashmir, he responded: ""Sadly, one of the realities in Kashmir is that the armed forces and the authorities are blamed for a number of the actions undertaken by terrorists. People are too scared to blame the terrorists because they fear for their own lives."" The Kashmir conflict has divided India and Pakistan for six decades. Politics dominated by family cartels 100 percent of Indian MPs under the age of thirty are from families with a political background, while 65 percent of members in the 31-40 age group are ""hereditary""-MPs, British writer Patrick French found in 2012. The Indian upper class is ""dominated by family cartels, who plant their own over the rest,"" the New York Times wrote.- Tharoor, who has served as an MP for Thiruvananthapuram, Kerala since 2009, admitted the deep roots of dynasty politics in Indian culture: ""It's going on in pretty much every party, so that it's very difficult to single one out and say 'You shouldn't be doing this'. What I have discovered about Indian politics, having entered it, is that a great deal of what you and I might consider to be not the best democratic practice is so deeply entrenched in our culture that it has infected our politics as well."" He added: ""The fact that families invade this profession too does not objectively seem ideal, but it's rampant throughout all of Indian society."" Nepotism doesn't just affect politics; all the top actors in mainstream cinema are children of former film makers, directors and actors. Making it to the top without having an influential family is almost impossible.- ""We cannot remain silent about corruption""- Transparency International ranked India 79 out of 176 in its 2016 report: ""India's ongoing poor performance with a score of 40 reiterates the state's inability to effectively deal with petty corruption as well as large-scale corruption scandals. The impact of corruption on poverty, illiteracy and police brutality shows that not only the economy is growing ""?but also inequality."" Tharoor called on the public to not ""remain silent about political corruption and talk about black money as if it is only coming out of real estate transactions and things like that. It's coming out of politics, too."" Eliminating black money from the system has been particularly high on Prime Minister Narendra Modi's agenda.- Shashi Tharoor's INC party has a worse record on financial transparency than the opposition Bharatiya Janata Party (BJP). During 2004-05 and 2014-15, 83 percent of the party's total income came from unknown sources compared to 65 percent of the BJP's.- Tharoor acknowledged that this ""needs to change"" but also emphasized: ""Everybody else is doing it."" Asked whether it's okay to break the rules because everybody else does too, he said: ""No, I think it's important to amend the rules and be realistic about them. We really have to raise the legal expense limits that people would actually be able to legally raise and spend accountable funds that are actually reasonable to reach.""- Indian Prime Minister Narendra Modi But he also defended his strategy and said if a politician isn't able to reach their two million voters, ""you will not be successful in politics, so you have to reach them by whatever means you can, with whatever help you can get. Unfortunately, very often this has implied people doing corrupt things, raising unaccounted money or what is called black money, money on which taxes haven""t been paid and which has not been declared in your election expense returns."" Tharoor's Congress party - the party of the Gandhi dynasty - was handed its worst-ever national defeat last year, after being reduced to just 44 (out of 543) seats in parliament in May 2016. Since then, the party has gone on losing. Does India's grand old Congress party deserve to survive? Find out now on Conflict Zone.- -", -3644,2017/3/29,http://www.dw.com/en/political-fallout-after-berlin-christmas-market-attack-inquiry/a-38193452?maca=en-rss-en-all-1573-rdf,Political fallout after Berlin Christmas market attack inquiry,German politicians have descended into a row over why the Berlin Christmas market attack was not prevented. Security forces are being pressed to explain why Anis Amri had not been detained earlier.,"Ralf J?ger might have felt his collar tighten as he faced the North Rhine-Westphalia (NRW) state parliamentary inquiry into the case of terrorist Anis Amri on Wednesday. Despite a largely forgiving report published on Monday by criminal attorney Bernhard Kretschmer, who said he found no misconduct in the authorities' application of criminal and immigration law, the NRW interior minister is under intense scrutiny after his federal counterpart Thomas de Maiziere indirectly contradicted many of his statements during his testimony on Tuesday. In January, J?ger had claimed his state's intelligence agency had ""gone to the limits of the law"" in dealing with the Tunisian in the months before he killed 12 people by driving a truck into a Berlin Christmas market in late December. But de Maiziere told the NRW parliamentary inquiry, ""one would have had good reason to apply for secure detention at the end of October at the latest. But it wasn't even attempted."" ""Amri had entered the country illegally, had changed his place of residence without giving the foreigners' registration office an address where he was reachable, and there was a risk of flight at least because of multiple changes of identity,"" de Maiziere added. Mistakes made J?ger does not appear to be getting any help from Germany's federal parliament, the Bundestag, either. According to a secret report leaked to Berlin public broadcaster RBB, a Bundestag task force has concluded that German intelligence agencies (both federal and state) had not properly assessed the potential danger that Amri posed. J?ger is under increased pressure to explain systemic failures The Bundestag spent two months examining the investigations on Amri, and came to the conclusion that there were flaws in the way that Germany's joint terrorism defense center (GTAZ) - an authority that coordinates state and federal terrorism intelligence - assessed potentially dangerous Islamists like Amri. According to RBB, the 102-page report also said the German secret service, the BND, and the foreign citizens authorities needed to be in the loop when it comes to such assessments, as does the judiciary, so that deportations can be carried out more easily. The story of Anis Amri's 18-month stay in Germany is complex. Having initially entered the country illegally in July 2015, the Tunisian had had an asylum application rejected in May 2016, but had received ""tolerance"" status until September of that year. He was due to be deported to Tunisia, but this could only be carried out once his identity had been established (he had given at least 14 different names, and various nationalities, while applying for asylum or social benefits across Germany). Authorities were aware Amri had contact to Germany's Islamist scene, and of his history of drug-related crime: he was stopped in possession of drugs and false passports near the Swiss border at the end of July 2016. By that time, NRW state police had had him under surveillance since March (a measure that was stopped in September for lack of evidence). He was then detained pending deportation, but, according to J?ger, was released on the grounds that his deportation could not be guaranteed within three months and Tunisia was denying his nationality. Amri was also the subject of a GTAZ meeting as late as November 2016. De Maiziere implemented new security measures in the wake of the Berlin attack Security measures The testimony given by other witnesses in the NRW parliamentary inquiry has reinforced this picture of bureaucratic confusion. Burkhard Schnieder, an NRW interior ministry official in charge of foreign citizens' affairs, told the inquiry on Wednesday that Tunisia had demanded Amri's original handprints by post, and that the migrant's documents had been passed between several different security authorities. Meanwhile, the head of NRW's domestic intelligence agency, Burkhard Freier, admitted that Amri had been ""assessed wrongly,"" and said that the increasing number of individuals categorized as ""endangerers"" by security services had made coordination more difficult. The systemic failures did not prevent the German government from implementing new security measures in the aftermath of the Berlin attack, for which it was heavily criticized by opposition parties. These parties are now less than impressed by de Maiziere's apparent willingness to criticize the failures in NRW without acknowledging that his own federal authorities had made similar mistakes. ""The federal interior minister is refusing, against his better knowledge, to accept the responsibility of federal authorities in the case of Amri,"" Green party security policy spokeswoman Irene Mihalic told DW by email. ""Of course mistakes were also made by the states, but we know today that cooperation and communication with the security forces at the level of the GTAZ did not work when it came to Amri."" Along with the socialist Left party, the Greens are demanding that federal security authorities testify before a Bundestag committee - against resistance by the government. ""We must identify and remove the weak points as quickly as possible,"" Mihalic said. ""The investigation of the worst Islamist attack in German history is still being blocked.""", -3645,2017/3/29,http://www.dw.com/en/brexit-zombie-legislation-risk-for-uk-environment-laws/a-38193766?maca=en-rss-en-all-1573-rdf,Brexit: 'Zombie legislation' risk for UK environment laws,"In less than two years - and after lengthy negotiations - the UK is expected to leave the European Union. Sam Lowe, of Friends of the Earth, told DW how these talks could put UK and EU environmental standards at risk.","DW: What kind of effect will Brexit have on the environmental laws in the United Kingdom? Are there concerns that legislation could be watered down? Sam Lowe: Brexit is going to consume everything at Whitehall and in the government for the next two years, minimum, but likely for more time than that. There's going to be no time to do anything else. We've already seen holdups on a 25-year plan for the environment that was meant to come out last year, and a 25-year plan for farming. All of these things got sucked into the Brexit process. The government has said that upon leaving the European Union we're going to replicate the EU regulations and directives, but there are big questions around how that will work. It's all well and good to bring them over, but if the government then chooses not to actually enforce them, there's going to be quite a problem. And there's been no mechanism put forward by the government, a domestic equivalent to the European Commission's role in terms of enforcing the standards. There is a risk that this could become zombie legislation. We'll have these environmental rules, but no one will bother to abide by them. Having 28 countries addressing all of these shared [environmental] issues together without the fear of being undercut because of the single market and other provisions has allowed for long-term planning. Without this long-term planning, once we leave the European Union all of this becomes subject to [UK] election cycles, subject to the whims of government. In terms of actually setting long-term targets and sticking to them, I think it will be a lot more difficult. Now that the UK has triggered its exit from the EU, I expect you'll be watching the Brexit negotiations closely. In terms of the negotiations, we want to see the environment be a priority, with continued cooperation and collaboration. From our perspective, it would be good for that to be written into the final agreement, with collaborative cooperative mechanisms, and for us to remain party to some of the European regulatory institutions such as the European Chemicals Agency, the European Food Safety Authority. There are already existing mechanisms for non-EU members to be affiliated with them in some way or other. For example, Norway and Iceland are part of the European Chemicals Agency - they don't have a vote but they're involved in the committee. The mechanism for countries outside the EU to be linked in exists, and there's no reason that this couldn't be resolved, given the political will. With a divided public and domestic political tensions, Britain has launched the formal process of leaving the EU. Now the real work begins. Samira Shackle reports from London. (29.03.2017) With his latest executive order, President Trump has begun undoing Obama's plan to counter global warming. But climate experts believe the move away from fossil fuels will continue regardless - leaving the US behind. (28.03.2017) The ""leave"" camp has been saying a Brexit will mean a cut in unnecessary regulations. The ""remain"" camp said this included crucial laws that keep water clean, and preserve species and habitats. Now Britain will find out. (24.06.2016) Britain's new Prime Minister Theresa May has scrapped the UK's climate ministry and appointed a climate skeptic as environment minister. In a post-Brexit world, Europe's climate protection policy could be in trouble. (15.07.2016) Scotland is second only to Sweden for greenhouse gas reductions in Europe. Would it still be top-ranked if it left the UK or the EU? (02.08.2016) Are there any particular protected sites or environmental programs in the UK that may be at risk?- Domestically, the ones that continually seem to be under threat are the EU directives on birds and habitats [which deal with wildlife and nature conservation]. There's quite a strong domestic lobby that doesn't like it. The government's been critical of it for quite a long time - they always characterize it as ""newts getting in the way of house building."" There's a big worry from the environmental community that this is going to come under threat. And then, more broadly, if we continue to prioritize the EU as our biggest trading partner, there's a line drawn on how far things can be deregulated because our companies will still want to sell into the European market. There's also the possibility that we perform some sort of trans-Atlantic pivot towards Donald Trump, toward the US. And in that scenario, I think a huge amount could be up in the air, especially on issues such as food safety and standards. And the direction of travel in the US right now is not exactly positive when it comes to the environment. Do you see the EU losing out in this deal as well? The EU's going to have to be careful. If it allows the UK continued access on goods and services, for example, in the context of a free trade deal and doesn't include provisions for continued cooperation on the environment, I think it could find itself getting undermined from the outside. The EU case history on enforcing EU environmental legislation already isn't great. And that leads to businesses attempting to get a competitive advantage through the lowering of standards, and that would put pressure on EU standards over time. How has the UK benefited from EU environmental legislation over the last few decades? Historically, EU pressure and standards led to us having cleaner beaches. It sounds bizarre, but we were the last country in Europe to continuously pump untreated sewage into the ocean. It was the threat of EU fines and censure that led to that ending [in the 1970s.] EU directives on birds and habitats may be at risk in Brexit talks More recently, the EU rules on the moratorium on neonicotinoid pesticides led to those pesticides not being used for the moment, and these pesticides are linked to the decline in bee populations. And this is something that the UK government opposed at the time. And in terms of energy and climate, the EU renewables directive with its 2020 and 2030 targets have coincided with a huge increase in solar and wind capacity in the UK. Are there any plus sides to this situation? For example, the UK may be able to set new environmental standards in areas where the EU is lagging behind. It's always possible to point to areas in the EU where the environmental policy isn't working, or where it's not as good as it should be - the common agricultural policy, for example. The approach to farming is a big opportunity for the UK. Industrialized farming is one of the biggest drivers of habitat loss and biodiversity loss, not just in the UK but in the EU as well. Having a more holistic policy would definitely improve the UK's environment - but there's no guarantee it will be any better than what currently exists. But, on balance, I think the risks [of Brexit] outweigh the benefits at the moment. Sam Lowe is an expert on Brexit and trade policy for the UK office of environmental organization Friends of the Earth.-This interview has been condensed and edited for clarity.", -3646,2017/3/29,http://www.dw.com/en/how-horizontal-launchers-could-propel-satellites-and-spaceflight-from-uk-spaceports/a-38190082?maca=en-rss-en-all-1573-rdf,How horizontal launchers could propel satellites and spaceflight from UK spaceports,"The question in the UK is no longer ""should we stay or should we go"" - it's now ""should we go horizontally or vertically?"" Confused? Don't be. It's all about space and how the UK plans to get there.","Here's a trick question: where is Europe's spaceport? Answer: It's in Europe. Right? Well, yes. But actually ""?not quite. You see, ""Europe's spaceport,"" as it is indeed sold, is in French Guiana. Technically, that is in Europe. French Guiana is a French colony, making it a European, or EU, jurisdiction - which is great if you happen to be there on a European cell phone plan because EU Roaming applies. Yeah! But geographically, the Guiana Space Centre is in South America, right next door to Brazil. And that begs the question, at least for this writer, who will host the first spaceport on the European mainland? Now that's another trick question, because chances are it will be the UK - after it's left the European Union. The UK wants its space industry to be a leader for science and commercial space activities. It wants a 10 percent share of the global market by 2030, worth a projected 460 billion euros. It will focus on smaller satellite launches and spaceflight for paying customers. That's ""space tourism"" to you and me. ""What we're able to offer in the UK would a site where you could launch a small satellite, so anything up to about 500 kilograms, which could be used for telecoms or Earth observation, into a polar orbit or a sun-synchronous orbit,"" says Claire Barcham, Satellite Launch Programme Director at the UK Space Agency. The Sentinel-2B Earth observation satellite was launched with a Vega rocket from Kourou in early March 2017 Both the European and North American space agencies are big on Earth observation for scientific, environmental and commercial ends. But the main driver for new launch options, says Barcham, are satellite constellations for telecommunications. ""These mega networks of linked, small satellites, which work together as one large array or constellation,"" says Barcham. ""[They] provide services that you couldn't provide using a single large satellite or a smaller network of satellites."" It's this part of the market the UK wants to grab, and it will probably do it with small, horizontal launchers. Frederic Munoz is overseeing the construction of a launch pad for a new Ariane 6 rocket While you might launch an entire constellation using a larger vehicle, like the Ariane or Soyuz rockets, you would replace individual components, says Barcham, with smaller vehicles. ""And that's driving a competition between companies around the world to reduce costs, increase reliability and to optimize vehicles for small, frequent launches."" European space under construction Over at Europe's spaceport in Kourou, however, the future is still rather on the large size. The European Space Agency (ESA) and Arianespace, which run the spaceport with the French Space Agency (CNES), do have their ""small"" Vega launcher. But they are also busy building a launch site for the soon-to-be new Ariane 6 rocket. Just one look at the hole they have had to dig into solid rock for underground ventilation shafts is an indication of how big this thing is. What's more, they are still banking on this vertical launch technology: rockets that go straight up (more or less). Built in solid rock: the ventilation system for the Ariane 6 launch pad will be subterranean That brings certain demands, says CNES launch executive, Frederic Munoz. ""First you have to find the best site for your launch azimuth,"" says Munoz. The launch azimuth is a rocket's initial launch trajectory or direction. It's important for ensuring safety - if a launch fails, for instance, bits of rocket could hit a built-up area - and it's also important for reaching your target orbit. There are technical and structural considerations, and environmental aspects. There's always a solution, though, says Munoz, ""it just depends on money, the time you have to build the site, and whether you can be sure it'll last for 30 years or so."" UK space under pressure Back in the UK, time is in short supply. For one, the space industry promises vibrant prospects for the UK in terms of science, innovation, jobs, and a perhaps urgently-needed sense of national confidence post-Brexit. Second, the UK had wanted to open its first spaceport in 2018, but that deadline looks well blown now. So to speed things up, the government is likely to opt for a spaceport for horizontal launchers. Rather than build a new site, they could convert existing infrastructure. ""The majority [of the proposed sites] are horizontal. We have existing infrastructure that we've been using as commercial or military airports,"" says Barcham. ""That could be adapted to develop spaceport runways."" Horizontal launchers are go! An artist's impression of Spaceport America Then there are technical advantages in a horizontal launch that could, for instance, involve a very large aircraft with a rocket underneath it carrying a satellite. ""That aircraft could take off from a horizontal site and potentially travel some distance until it has a clear path into the trajectory that it wants to reach before dropping its rocket to shoot up into orbit and deploy the satellite,"" she says. Barcham says, by contrast, vertical launchers can limit your options for accessing the orbit you want. Europe's watching you, UK The wider picture for future launchers is how to reduce costs, whether it's with expendable or reusable vehicles. Soyuz launch site at Kourou: rockets release clouds of steam and other gasses. You can't build these sites just anywhere Over at ESA, J��rôme Breteau of the Future Launchers Preparatory Programme says he is ""cautious"" about some of the research into horizontal launchers, like Virgin Galactic's White Knight and SpaceShipTwo concept. ""They are just at the edge of where the problems begin for an orbital system,"" says Breteau. ""The job in launching a payload at orbital speed is to get out of the atmosphere as quick as possible and then accelerate, and SpaceX and Blue Origin do that.""-- But there is a qualitative gap between sub-orbital and orbital systems in terms of the energy you need. Breteau says ESA welcomes what the UK is doing in the area of micro-mini launchers for payloads for low-Earth orbit. In 2004, Burt Rutan's SpaceShipOne won the $10-million XPrize, inspiring Richard Branson to start Virgin Galactic ""There's a lot of initiative in this area, especially in the UK,"" says Breteau. ""We're watching this carefully and we'll launch an initiative by the middle of this year to help materialize the promise [of micro-mini launchers].""-- And the concept of ""air-launched"" micro-mini launchers, says Breteau, is very much in the race. For one, he says, it helps get around certain regulation, including safety issues, ""because you can take off and launch from inhabited areas, you can launch from international skies - it's an attractive approach.""--- The UK announced a commitment to enabling access to space in 2014, so it's been in the works, if a little stalled due to the referendum on Europe. But Brexit or no Brexit, Barcham says this is a big year for UK space. ""For us this is about cornering two very exciting, potentially lucrative markets - launching small satellites and offering suborbital spaceflights, those flights that create micro-gravity, so you could use them for science or paid passengers,"" she says, ""and you can do either from a horizontal or a vertical site.""", -3647,2017/3/29,http://www.dw.com/en/hungary-education-law-threatens-soros-backed-central-european-university/a-38192333?maca=en-rss-en-all-1573-rdf,Hungary education law threatens Soros-backed Central European University,"A proposed education bill would shutter Budapest's Central European University, university officials have said. Right-wing Prime Minister Viktor Orban has repeatedly clashed with Hungarian-born financier George Soros.","-A new higher education bill drafted by the Hungarian government would require foreign-funded institutions operating in Hungary to meet stringent new conditions, such as having campuses and offering similar courses in their home country. Officials from the Central European University (CEU) decried the new law, saying these conditions would make it impossible for the university to continue operating in the Hungarian capital. Funded by Hungarian-born US financier George Soros, the CEU's home country is the United States, although it does not have campuses or offer courses there. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2aA1o Michael Ignatieff, the university's president and former leader of Canada's Liberal Party, said in an open letter to staff and students that the proposed legislation would be contested ""through every means possible."" The CEU's closure ""would damage Hungarian academic life and negatively impact the government of Hungary's relations with its neighbors, its EU partners and with the United States,"" Ignatieff said. Hungary's state secretary for education, Laszlo Palkovics, sought on Wednesday to dismiss any accusations that the law targets the CEU, -saying it was not ""an anti-CEU or anti-Soros law."" However, the new requirements would make the CEU's position exceptionally hard, as it is only the international academic institution operating in Hungary without an arm elsewhere. The draft bill dictates that all universities in Hungary must comply with the law by February 15, 2018, or cease to offer course the following September. Viktor Orban's government has denounced NGOs funded by George Soros for trying to ""illegitimately"" influence political life. The groups are gearing up for an assault from politicians who once saw them quite differently. (22.01.2017) After pledging ""open conflict"" with the EU on refugees, the right-wing prime minister jokingly welcomed West European refugees. He also accused billionaire George Soros of undermining Hungary's democracy. (10.02.2017) Soros' and Orban's ideological clash Soros helped found the CEU in 1991 following the fall of communism. With its English-speaking degrees in social sciences, humanities and law, it is widely regarded as a stalwart of liberal higher education. However, Soros through his Open Society Foundation has found himself at odds with Hungarian-Prime Minister Viktor Orban and his preferred model of ""illiberal democracy."" Orban has also accused Soros-of backing anti-Hungarian groups and meddling in the country's own politics. US concerned but Trump support uncertain The law risks sparking a diplomatic row between Hungary and the United States, with the US embassy in Budapest saying it was ""very concerned"" about the legislation. ""The University...enjoys strong bipartisan support in the US government. The United States opposes any effort to compromise the operations or independence of the University,"" US charge d' affaires David Kostelancik said in a statement. Whether the university will win the backing of the Trump administration, however, remains to be seen. US President Donald Trump has exchanged stern words with Soros on several occasions in the past, while Soros, a major Democratic Party donor, has reportedly described Trump as a ""con-artist"" and ""would-be dictator."" dm/jm-(Reuters, AP, AFP) Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2S4Ym", -3648,2017/3/29,http://www.dw.com/en/the-wrong-ones-are-being-deported/a-38192952?maca=en-rss-en-all-1573-rdf,'The wrong ones are being deported',"Germany has stepped up the pace of rejected asylum applicant deportations. Often, however, no one notices what many of these people have accomplished in the country, says a Christian Democrat mayor from southern Germany.","DW: Mr. Arnold, how has political pressure for more deportations affected you and your city of Schw?bisch Gm��nd? Richard Arnold: We've noticed that a real competition between the states has been taking place. For me, this is all too general and happening too quickly. At the moment, we have 213,000 asylum seekers who are obligated to leave the country and many of them who came here four years ago are well integrated. And now, the ones that are already integrated are supposed to leave. No difference is being made between the people. It can't go on like this. Are too many or too few refugees being deported now? The wrong ones are being deported. The ones being deported are the ones people can reach and they are easy to find because they live normal lives. It affects people who went to school here and who have obtained qualifications. Arnold is mayor of the city of Schw?bisch Gm��nd Among them are a number of people who are truly integrated and are paying into state health insurance and pension plans. Not long ago, for example, a workman came to me who paints buildings and has a refugee from Nigeria working for him and this person has settled in wonderfully. Yesterday, he received the rejection letter for his asylum application. The company is losing one of its best workers. Yet he could continue living and working here. Do asylum laws allow for exceptions if the process has taken too long? No. Applicants can only be recognized as refugees if they have been politically persecuted. That is fine but people who are well integrated should be considered. We must be able to build bridges, even for the short term. After all, when the influx of refugees began, our municipalities and citizens were strongly urged to do everything possible to integrate the people. Now, the people who fit in our society are to be torn out. The decent ones should not be the losers. Do other cities and German states agree with your assessment? Yes, everyone involved in all different positions does, from Bavaria to Schleswig-Holstein. The problem is that the integrated people whose applications have been rejected often receive a formal notice asking them to leave the country within 30 days or even a week. They can lodge an appeal and they can sue but they are usually dismissed. What kind of clout do you have as a municipality? We have none. The only option that remains when all legal means have been exhausted is to take the case to a hardship commission or petitions committee at state parliament. Right now, the applications are piling up at hardship commissions across the country. It was supposed to be for exceptions but now it has become normal for those who are integrated. For example, we helped a Nigerian asylum applicant at the hardship commission. He completed an entire training program as a geriatric care worker and also a training program as a firefighter. There must be incentives for people who work here. How else can the people who have come here develop a positive attitude towards our country? There is no transition from asylum-seeker to immigrant. Sadly, an immigration law is missing. Protests against the deportation of asylum-seekers were held in Munich You demand that more decisions be made locally because you know the affected people personally and you argue for what you call an ""immigration traffic light."" How would that work? It is like a stoplight with red, yellow and green lights. Applicants who are already integrated and who can at least partially support themselves financially would get a green light. If their asylum applications were rejected, then we, as municipalities, could say that they should nonetheless be allowed to stay. Then the sword of Damocles, i.e. deportation, would not be dangling over their heads. Anyone who has built up prospects and contributed to society should be rewarded for their efforts. Everyone else would have to leave. The system has been accepted by our citizens. Politically, it would be relatively easy to implement. It would complement existing integration laws. We must discuss this within my party. I am in touch with the minister of the interior of the state of Baden-W��rttemberg and I am trying to convince him that we, the municipalities, be involved in asylum decisions. Richard Arnold (58) is a member of the conservative Christian Democrat Union (CDU). Since 2009, he has been the mayor of Schw?bisch Gm��nd, a city in the southwestern state of Baden-W��rttemberg with a population of 60,000. The interview was conducted by Wolfgang Dick. A total of 722,370 first-time applicants filed requests for political asylum in Germany in 2016, according to the Federal Office for Migration and Refugees (BAMF). The number reflects a roughly 65 percent increase compared to the previous year, when the total number of new applications stood at 441,899. The number of follow-up applications, however, recorded a decline of 33.3 percent. In 2015, 34,750 second-chance asylum requests were filed with BAMF, whereas in 2016 the number fell to 23,175. Combined, the number of first-time and follow-up applications for 2016 stood at 745,545. In 2015, this number stood at 476,649. So, BAMF recorded a 56.4 percent net increase in the total number of asylum requests in 2016 compared with 2015. The highest number of requests in 2016 were filed by Syrian nationals. According to BAMF's report, people from the war-torn Middle Eastern state submitted 266,250 of the new applications (36.9 percent). Afghan nationals came in second, with 127,012 (17.6 percent), followed by Iraqis, who filed 96,116 asylum requests (13.3 percent) last year. People from Iran filed 26,426 applications (3.7 percent). Eritreans submitted 18,854 applications (2.6 percent). Albanians totaled 14,853 (2.1 percent), 14,484 people from Pakistan requested asylum (2 percent), and Nigerians submitted 12,709 applications (1.8 percent). Nearly three-quarters of the applications filed in 2016 came from people younger than 30 years old. People aged between 18 and 25 filed 196,853 asylum requests, or about 23.5 percent of the overall total, making them the largest age group. The number of applications for children under the age of 4 stood at 78,192 (10.8 percent). German authorities accepted 433,920 people of the 695,733 applications they decided on in 2016. The overall protection rate for all countries of origin amounted to 62.4 percent. Ranging from vandalism to arson, more than 900 attacks on refugee centers were recorded in Germany in 2016. The Federal Criminal Police Office reported that, out of the 921 recorded offenses, 857 were suspected to have had far-right motives. In 2015, 1,031 such offenses were recorded, 923 of which were suspected of having a far-right background. Author: Aasim Saleem", -3649,2017/3/29,http://www.aljazeera.com/news/2017/03/sri-lanka-leader-backs-arrests-official-killers-170329150748635.html,Sri Lanka's leader backs arrests of 'official' killers,President authorises prosecution of security officers involved in an alleged death squad carrying out civilian killings.,"Sri Lankan President Maithripala Sirisena has pledged not to protect anyone guilty of murder during the civil war, signalling a green light for the prosecution of security officers allegedly involved in a death squad that targeted civilians. Sirisena, who has been criticised for failing to establish credible investigations into war-era abuses, said on Wednesday he would not stand by murderers but would defend ""war heroes"" who helped crush the Tamil Tiger rebels in 2009. ""Those who killed journalists, sportsmen and others will not be protected,"" Sirisena-said. ""Whether they are in the military or the police is immaterial."" Sirisena has previously rejected calls for an international trial into war-era crimes, emphatically stating he would never prosecute his own troops. The president stunned his own coalition allies in October when he berated police for holding intelligence officers for long periods in custody, in connection with the 2010 abduction and disappearance of a cartoonist. His latest remarks will likely be seen by senior police investigators as a green light to arrest several prominent establishment figures over the 2009 assassination of respected newspaper editor Lasantha Wickrematunge. His killing heightened global condemnation of former president Mahinda Rajapaksa's government, which had already been accused of abuses against journalists, activists, and the Tamil minority population. Police have already arrested six military intelligence officers in connection with a 2008 attack on another editor, and accuse the same death squad of killing Wickrematunge in January 2009. READ MORE: Ex-leader's brother 'led death squad' in Sri Lanka Rajapaksa's defence secretary brother, Gotabhaya, has been implicated by his then-army chief Sarath Fonseka of leading the group. Gotabhaya Rajapaksa-and Fonseka have been at loggerheads since the end of the war, and have often accused each other of wrongdoing. Mahinda-Rajapaksa, whose tenure ended in 2015, and several members of his family are under investigation for large-scale financial fraud and murder during his 10 years as president, in which 17 journalists and media workers were killed. A retired army intelligence officer was found hanging at his home in October with a note claiming responsibility for Wickrematunge's death. But police have said they do not believe the claim and are treating the officer's death as a murder. Source:-AFP news agency", -3650,2017/3/29,http://www.aljazeera.com/news/2017/03/china-eu-rally-climate-action-trump-backs-170329134920330.html,"China, EU rally for climate action as Trump backs away",US president's move to end 'war on coal' sparks criticism from major economies committed to cutting carbon emissions. 'Serious step backwards',"China and European Union nations have reaffirmed their commitment to a global plan to slow climate change after US President Donald Trump began undoing Obama-era plans for deep cuts in US greenhouse gas emissions. Trump's order on Tuesday, in line with a campaign promise to bolster the US coal industry, strikes at the heart of the international Paris Agreement in 2015 to curb world temperatures that hit record highs in 2016 for the third year in a row. Many nations reacted to Trump's plan with dismay and defiance, saying a vast investment shift from fossil fuels to clean energy such as wind and solar power is under way with benefits ranging from less air pollution to more jobs. Chinese foreign ministry spokesman Lu Kang, whose government cooperated closely with former US President Barack Obama's administration on climate change, said on Wednesday that all countries should ""move with the times"". ""Regardless of how other countries' climate policies change, China as a responsible developing country will not change its commitments, goals, policies and actions related to climate change,"" he said. European Climate Commissioner Miguel Arias Canete said the EU saw the Paris agreement as a ""growth engine"" for creating jobs and new investment opportunities. ""Donald Trump's attempt to turn the US into a Jurassic Park run by dinosaur energy will eventually fail,"" said Hans Joachim Schellnhuber, Director of the Potsdam Institute for Climate Impact Research. READ MORE: Trump administration approves Keystone XL pipeline Trump did not say whether he would pull out of the Paris Agreement, a pact agreed to by almost 200 nations that seeks a shift from fossil fuels this century as the cornerstone of efforts to limit heat waves, floods, droughts and rising sea levels. Trump's main target is Obama's Clean Power Plan, which required US states to slash carbon emissions from power plants, and was key to abiding by the US pledge under the Paris Agreement to cut emissions by 2025-to between 26 and 28 percent below 2005 levels. The fear is that less action by the US, the number two greenhouse gas emitter behind China, will cause other nations to roll back their own goals. The pact has been ratified so far by 141 nations ranging from Pacific island states to OPEC oil producers. The Paris Agreement lets each country set domestic targets for restricting greenhouse gases and foresees no sanctions for non-compliance. Trump has sometimes called global warming a hoax, but has also said he has an open mind about Paris. READ MORE: Obama-era online privacy rule overturned by Congress Still, Trump's rowback is likely to undercut a core principle of the Paris Agreement that all national plans, due to be submitted every five years this century, have to be ever stronger and reflect the ""highest possible ambition"". A formal withdrawal from the Paris Agreement could trigger far wider criticisms, perhaps calls for import taxes on US goods. Laurent Fabius, the former French foreign minister who was an architect of the Paris agreement, denounced Trump's moves as ""a very serious step backwards"". German Environment Minister Barbara Hendricks warned Washington that it could lose out on energy deals going forwards. ""A shift into reverse [gear] now will only hurt themselves in terms of international competitiveness,"" she told Sueddeutsche Zeitung, a German daily newspaper. Echoing that view, Danish Energy and Climate Minister Lars Lillehold said there had been ""a significant momentum for the green transition"" as green technologies have become cheaper. In London, a spokesperson for the British Department for Business, Energy and Industrial Strategy reaffirmed Britain's commitment to tackling global climate change. Speaking in Brussels, Izabella Teixeira,-former Brazilian environment minister, said Trump's decision was a mistake. Source:-News agencies", -3651,2017/3/29,http://www.aljazeera.com/news/2017/03/india-crackdown-slaughterhouses-stirs-muslim-unease-170329131203603.html,India crackdown on slaughterhouses stirs Muslim unease,More states follow Uttar Pradesh's lead in closing down unlicensed abattoirs as critics say move based on religion. 'Cow vigilantes',"A crackdown on unlicensed slaughterhouses in India's most populous state has spread to others ruled by Prime Minister Narendra Modi's party, as Hindu hardliners press a political agenda that risks alienating the country's Muslim minority. For years right-wing Hindu groups have demanded an end to the slaughter of cows, which are considered holy in Hinduism. But most of the beef produced in India comes from buffalo rather than cattle, prompting some critics to suggest the latest move is motivated by politics and religion. Rajiv Tuli - spokesman of the Rashtriya Swayamsevak Sangh, the ideological parent of the Hindu nationalist Bharatiya Janata Party (BJP) - said on Wednesday the party is only implementing ""the rule of the land"" in Uttar Pradesh state. ""If it is legal, nobody has a right to stop it. But if it is illegal, why should this be allowed to function?"" Tuli said. The closure of the abattoirs was launched after Modi appointed Yogi Adityanath as chief minister of Uttar Pradesh following BJP's landslide victory in state elections this month. OPINION: A 'new India' where fringe is the mainstream Adityanath ordered the closure of slaughterhouses operating without licences soon after taking over on March 18. Several other BJP-ruled states - including Jharkhand, Rajasthan, Uttarakhand, Chhattisgarh and Madhya Pradesh - have since followed suit, ordering the shutdown of meat-processing factories. The crackdown mostly affects the country's Muslim community, which dominates the meat industry and makes up 14 percent of India's 1.3 billion people. Abdul Faheem Qureshi, president of the Muslim All India Jamiatul Quresh Action Committee that represents the cause of meat-sellers, said his organisation was considering legal action. ""Even we respect Hindu sentiments and are against cow slaughter,"" Qureshi said. ""But this is being carried out only for political gains."" The move by a number of state governments has also led to ""a huge sense of apprehension in the minority section"", said Neerja Chowdhury, a political commentator. ""The debate is beyond legal and illegal. Only recently cow vigilante groups have burned down slaughterhouses, creating an environment of insecurity,"" Chowdhury said, referring to a series of attacks in Uttar Pradesh. India is one of the largest exporters of buffalo meat, selling $4bn worth in the 2015-2016 fiscal year. Its biggest buyers included Vietnam, Malaysia and Egypt. Uttar Pradesh is the biggest producer of buffalo meat in the country, and exporters said the latest crackdown will hurt business. ""Right now everyone is very scared because they don't know whether what they are doing will be termed as legal or illegal,"" said Priya Sud, partner at Al Noor Exports, which operates slaughterhouses in Uttar Pradesh. Indian mob kills man over beef eating rumour Muslims working in the meat industry are fearful for their jobs and meat-sellers in Uttar Pradesh have gone on strike in protest. ""Supply of all kinds of meat has been disrupted due to the new rules,"" said Iqbal Qureshi, president of the Meat Murga Vyapar Kalyan Samiti, a meat-sellers' group. Meanwhile, Hindu vigilantes forcibly shut down a KFC outlet in Haryana state on Tuesday-for selling chicken during the nine-day Hindu festival of Navratra, when devotees fast and stay away from eating meat. Source:-Reuters news agency", -3652,2017/3/29,http://www.aljazeera.com/indepth/opinion/2017/03/brexit-britain-suffering-imperial-hangover-170329141420962.html,,,"UK Prime Minister Theresa May triggered Article 50-earlier today-and officially started the process that will lead to Britain leaving the European Union. Now, attention turns to what will happen next. Much of the analysis has so far been focused on the upcoming negotiations with the EU, with the possibility of no EU trade deal seeming increasingly likely. But the real existential debate has been over what Britain's role in the world will be after Brexit. May has promised a ""truly global Britain"" outside of the EU and some supporters of Brexit have framed the break from Brussels as an opportunity for Britain to strengthen its historical, imperial relationships. This is a deeply problematic and dangerous view. To become ""truly global"" Britain needs to shake off this imperial hangover. -- As Twitter branded Wednesday March 29 ""Brexit Day"", historian David Starkey appeared on the BBC's Today Programme to compare Brexit to Henry VIII's historic break from Rome. Crucially, he argued that the Reformation presaged the ""expansion of England""-and suggested that Brexit may see another age of empire. Since the vote to leave the EU, visions of Britain's future relationship with the rest of the world has repeatedly invoked imperial motifs. From Theresa May's promise of a ""red, white, and blue"" Brexit to the suggestion that the Royal Yacht Britannia be recommissioned to facilitate trade deals, Britain's future has been presented as an opportunity to return to a glorious past. Most famously, or infamously, the International Trade Secretary Liam Fox's focus on deals with countries that once belonged to the British Empire has been labelled ""Empire 2.0"" by Whitehall officials. The specific focus of future trade relationships on Commonwealth nations raises a number of issues. One is the clear preference for the Anglosphere and the implied preference for linguistic and racial homogeneity. Australia has been one of the forerunners for a post-Brexit trade deal and public discussion of the Commonwealth tends to focus on New Zealand or Canada rather than Malawi or Malaysia. As Britain faces the reality of life outside of the EU and looks to establish new, prosperous relationships with global partners, it needs to shake off its imperial hangover. - While the former settler dominions of Australia, Canada and New Zealand might be more willing participants in a new imperial project, they are not major economic forces. To find trading partners that might realistically replace the EU, Britain will have to deal with nations that have a more critical view of its imperial past. Britain shares this problem of historical baggage with many of its European neighbours. However, the invocation of empire by leading Brexit supporters reflects an unapologetically positive view of imperial history. In recent years Germany has apologised to Namibia and the Netherlands has apologised to Indonesia for the excesses of empire. Similarly, French Presidential candidate Emmanuelle Macron recently described France's colonial past as a ""crime against humanity"" in an interview with Algerian television. In Britain, there has been no comparable public statement of remorse or reconciliation. Britain's overly positive view of its imperial history is likely to cause problems in negotiations with new trading partners. For example, the Indian politician Shashi Tharoor has warned that in India ""Empire 2.0"" would ""go down like a lead balloon"" and described British rule in India as ""200 years of plunder and exploitation"". To secure access to the growing Indian economy Britain must acknowledge that a return to its imperial dominance is neither realistic nor desirable. Similarly, the dominant global economic powers, the United States and China, have their own histories of violent encounters with the British Empire. Not only are these major international powers likely to be unimpressed by ""Empire 2.0"", but the power imbalance between the global leaders and the UK makes a mockery of Britain's imperial pretensions. OPINION: The need for a museum on British colonisation of India The transfer of the sovereignty of Hong Kong to China in 1997 and the subsequent failure of Britain to provide significant support to the 2014 ""Umbrella Protests"" is a good demonstration of Britain's inability to replicate its imperial influence in the modern world. Perhaps the most crucial imperial legacy is at home. The British public should not be misled with promises of imperial glory. Instead, it should be made clear that Britain will be making deals with equal partners, rather than relying on old colonial possessions. As Britain faces the reality of life outside of the EU and looks to establish new, prosperous relationships with global partners, it needs to shake off its imperial hangover.- Stan Neal is a Teaching Fellow in Colonial/Global History at the University of Leicester. He works on issues of race, migration and globalisation in the British Empire. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.-", -3653,2017/3/29,http://www.aljazeera.com/news/2017/03/turkey-halkbank-executive-detained-170329074337484.html,Turkey's Halkbank executive detained and charged in US,Halkbank says one of its senior executives has been charged on allegations of illegal transactions involving Iran.,"American prosecutors have charged a senior executive at state bank Halbank with participating in a multi-year scheme to violate US sanctions against Iran. Halkbank confirmed on Wednesday that Mehmet Hakan Atilla, its deputy general manager, had been detained in the United States and said it and the Turkish government were working on the issue. Atilla is accused of conspiring with wealthy Turkish gold trader Reza Zarrab to conduct hundreds of millions of dollars of illegal transactions through US banks on behalf of Iran's government and other entities in that country. ""Our bank and relevant state bodies are conducting the necessary work on the subject and information will be shared with the public when it is obtained,"" Halkbank said in a statement. Shares in the Turkish state-lender-plunged as much as 16 percent on Wednesday. Turkish Foreign Minister Mevlut Cavusoglu said the case would be discussed with US Secretary of State Rex Tillerson when he visits Ankara this week. Cavusoglu, speaking to broadcaster TRT Haber, also called for a transparent process regarding Atilla's arrest. The arrest of the 47-year-old banker escalates a case that has added to the tensions between the United States and Turkey. President Recep Tayyip Erdogan has previously said he believed US authorities had ""ulterior motives"" in prosecuting Zarrab, who was arrested in March 2016 in Miami. Zarrab has denied the charges in his case. It was unclear whether Atilla has hired a lawyer or made a bail application. Source:-Al Jazeera and news agencies", -3654,2017/3/29,http://www.aljazeera.com/indepth/interactive/2017/03/article-50-negotiated-170329132240601.html,Article 50: What will be negotiated,A look at the key issues that the EU and the UK will be negotiating to finalise the UK's break with the bloc. Immigration Freedom of movement Trade Northern Ireland Status of existing residents Security Financial services,, -3655,2017/3/29,http://www.aljazeera.com/news/2017/03/blasts-bangladesh-extra-judicial-killings-170329121314268.html,UN blasts Bangladesh over extra-judicial killings,"Dhaka criticised for 'high rate' of extra-judicial killings, enforced disappearances, and excessive force in new report. 'Establish the truth'","Dhaka, Bangladesh - The United Nations has criticised Bangladesh's government in a new report-for a ""high rate"" of extra-judicial killings and enforced disappearances, as well as ""excessive use of force by state actors"".- The report's publication on Tuesday came a month after the United Nations Working Group on Involuntary and Enforced Disappearances called on the government to ""immediately reveal the whereabouts"" of three sons of opposition leaders it says were kidnapped six months earlier. One week later, one of the men, Hummam Quader Chowdhury, was released on the streets of the capital Dhaka, but the other two - lawyer Mir Ahmed bin Quasem and Brigadier-General Abdullahil Amaan al-Azmi - reportedly remain in secret state detention. Chowdhury,-Quasem and-Azmil are linked to either the opposition Bangladesh Nationalist Party or-Jamaat-e-Islami, and each of their fathers has been convicted and executed by the International Crimes Tribunal. The UN Human Rights Committee --which comprises independent experts who monitor states' compliance with their obligations under the International Covenant on Civil and Political Rights - also called on the Bangladesh government to repeal or amend various laws that restrict freedom of expression and legalise certain child marriages. Concern over missing sons of Bangladeshi politicians Bangladesh ratified the international convention in 2000, but various governments failed until 2015 to furnish the committee with a compliance report, which had been due a year after ratification. In its official response to the criticism, the Bangladesh government wrote to the committee stating the ""country context, realities and the limitations of Bangladesh may not have been adequately appreciated"" by the committee. It added efforts by the government in seeking to implement the convention ""might not have been recognised enough"". The government also said discussions the committee held with Bangladesh's Law Minister Anisul Huq earlier in the month were ""not duly reflected in the concluding observations"". In its report, the UN committee said the Bangladesh government must ""investigate all cases of arbitrary killings, enforced disappearances, and excessive use of force, prosecute and if convicted, punish the perpetrators with appropriate sanctions, and provide full reparation to the victims"". It relation to disappearances, the UN committee said the government ""should establish the truth about the fate and the whereabouts of the victims, and ensure that victims of enforced disappearance and their relatives are informed about the outcome of the investigation"". ""Our government has taken meaningful actions to bring such incidents of human rights violations to a very low level,"" Huq said in a statement to the UN committee. He also said the government ""maintains zero-tolerance approach with respect to any crime committed by the law enforcement agencies"". Bangladesh: Sons of convicted war criminals detained Since the current Awami League government came to power in 2009, human rights organisations in Bangladesh have identified more than 1,300 alleged extra-judicial killings and 325 enforced disappearances. Similar high levels of killings were also reported under the previous Bangladesh Nationalist Party government. The UN committee also criticised the arrest of at least 35 journalists, secular bloggers, and human rights defenders in 2016 under a law the Information and Communications Technology Act 2006. The committee also raised concerns about the government's recently enacted child marriage law, which allows girls under the age of 18 to get married in ""special circumstances"". The UN experts said the government should amend the Child Marriage Restraint Act ""to maintain the legal minimum age of marriage for girls at 18 years, in accordance with international norms, without any exceptions"". Source:-Al Jazeera News", -3656,2017/3/29,http://www.aljazeera.com/indepth/opinion/2017/03/russia-protest-generation-170329113346416.html,,,"Last Sunday mass demonstrations took place in almost 100 Russian cities. They were the biggest since the 2011-2012 protest wave, called the ""snow revolution"". But if the last time election fraud was what provoked the people's anger, this time it was an investigation into Russian PM Dmitry Medvedev's alleged corruption practices. The investigation was conducted by the Anti-Corruption Foundation headed by Alexey Navalny, a prominent Russian opposition figure who has announced his intention to run in the 2018 presidential elections. Just a few months ago, no one would have believed that a corruption investigation could provoke mass protests across the country. Not expecting such a massive turnout, the authorities tried to stop the protesters from gathering. State media and law enforcement warned against going out into the streets, but this encouraged people even more to do so. As protesters started gathering, the police launched a massive crackdown campaign (more than 1,000 people were arrested in Moscow alone), which attracted even more attention. In the demonstrations there was an unusually high number of youth - not only university but also high school students. Photos from the protests showed the brawny bodies of policemen towering over 14 to 15-year-olds. These children were born during the Putin era and despite their ""patriotic upbringing"" actively enforced in schools and in the media, they came out wanting change. Just before the protests, the release of a recording of a high-school discussion between a teacher and students about the annexation of Crimea and anti-corruption protests caused a lot of controversy in Russia. The students in the recording were talking very confidently about these issues, while the teacher was responding with discomfort. The mobilisation of the youth could be explained partially by the fact that Navalny - in contrast to previous protest leaders - is the hero of the internet generation. He could publish his-numerous investigations into government corruption not on traditional media outlets, but on social media and his blog. He has almost two million followers on Twitter. He would win any internet vote on any topic. If you are a high-school or a university student, you just don't have a choice: You wouldn't vote for any of the people who headed their parties even before you were born and are still repeating the same slogans (this is applicable to all main ""opposition"" parties, too). In this sense, Navalny is Russia's Bernie Sanders, who started as an activist with the reputation of an uncompromising fighter, who does not want to integrate into the political establishment. But Navalny is not the whole story. This generation is different from previous ones because it doesn't watch TV. Not necessarily for political reasons, but because it simply doesn't find it interesting.- In fact, there is a bit of a vicious circle in that: The youth watches TV less and less, while heads of TV channels continue to turn more and more towards the 60+ audience, pushing away the few young viewers they have. There is no spectacle-more depressing than TV programming on a holiday: Botoxed variety stars of the Soviet era, bland jokes with orchestrated laughter, a gaudy carnival-style studio - all of this seems to be purposefully set up to repulse. The political shows are no better: inviting the same guests who shout over each other, castigating Ukraine and the US State Department. From year to year the ratings of Russian TV channels are falling; they still might compete over housewife viewership, but they've lost for ever the youth audience. For the Kremlin this is a big problem and they know that. Recently the Projector Paris Hilton, in which popular comedians discuss the latest news, came back on air. The show is indeed popular among the youth. Despite all the censorship and thoroughly vetted news stories that they are discussing, the show does go against the political establishment. Soon after the release of Navalny's investigation the show did a sketch on Medvedev on a different occasion from the documentary, but still Navalny and his followers immediately shared it on social media. State TV channels are the main support lever of Vladimir Putin's power; they are even more important than the court and the parliament he controls. Literally a few weeks after Putin's first inauguration, Vladimir Gusinsky, the head of the biggest independent TV channel, was arrested (he was released after allegedly conceding to give up control over his channel). At that time regular internet users did not exceed 2 percent-of the Russian population. Today 70 percent of Russians use the internet; among the youth, this percentage is closer to 100. Russian propaganda such as Russian cars and Russian football is only good when there is nothing else to compare it to. - The Kremlin managed to take under its control the most popular news websites, but it never managed to turn the internet into a propaganda machine because the way the internet works is different from traditional media. TV presupposes passive reception of information: A housewife is cooking dinner as the news on Channel One runs in the background; the husband puts on football and at half-time he gets fed news about the ""fascist junta"" in Ukraine. But online this doesn't work. There, users choose what to look at. Loyalist websites did not mention anything about Navalny's documentary, but it nevertherless went viral on social media and messenger apps. Some 150,000 were watching the live broadcast of the protests simultaneously, while news reports on what was going on brought independent news sites record traffic. The very psychology of a person growing up in the internet era is different: S/he is used to being a subject, not an object and choosing what sources of information to consume from. There are, of course, negative aspects to that as well: Populists used the internet, too, to spread fake news and encourage Brexit and Trump's electoral popularity. But in Russia under authoritarian rule, this new culture of information consumption is the main challenge to the regime. The many attempts of the Kremlin to create popular information alternatives for the youth have failed. Despite the vast amounts of finances which Yury Kovalchuk (who is rumoured to be close to Putin) is investing in online media, the Kremlin still doesn't have popular opinion leaders of its own. No need to explain why the attempts of some members of the presidential administration to create internet memes and try to make them popular have failed. OPINION: Russia's soft warfare Russian propaganda like Russian cars and Russian football is only good when there is nothing else to compare it to. In Soviet times propaganda was even more unidirectional and bland, but there was nothing to compare it to - now there is. Of course, this is by far not an existential threat to the Kremlin. It still retains control over various methods of repression, including internet censorship, firing the parents of youth who attended the protests, dismissing students from university, etc. Which of these will be applied and which of these will work is not yet clear. But what is clear is that the times, when political control necessitated only control over TV channels, are long gone and will never come back.- Roman Dobrokhotov is a Moscow-based journalist and civil activist. He is the editor-in-chief of The Insider. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3657,2017/3/29,http://www.aljazeera.com/news/2017/03/theresa-set-trigger-brexit-article-50-170329034925333.html,Theresa May triggers Brexit Article 50,"Letter hand delivered to European Union by British ambassador, triggering two-year countdown to EU exit. Challenges ahead","UK Prime Minister Theresa May has triggered the formal two-year process of negotiations that will lead to Britain leaving the European Union (EU) after more than 40 years, in a process popularly known as Brexit. A letter invoking Article 50 of the Lisbon Treaty and officially notifying the EU of Britain's decision to withdraw from the bloc-was hand-delivered to European Council President Donald Tusk in Brussels by British Ambassador to the EU Tim Barrow on Wednesday. Copies are to be sent to the other 27 EU member states. In a speech to parliament designed to coincide with the letter's delivery, May urged the country to come together as it embarks on a ""momentous journey"". ""We are one great union of people and nations with a proud history and a bright future. And, now that the decision has been made to leave the EU, it is time to come together,"" she said. May told MPs she wanted to represent ""every person in the UK"", including EU nationals, in negotiations. The prime minister acknowledged there would be ""consequences"" to leaving, and she said the UK accepts it cannot ""cherry pick"", and stay in the single market without accepting free movement. EU Council President Donald Tusk said there was ""no reason to pretend this is a happy day"". ""We already miss you,"" he said, adding there was ""nothing to win"" and that, now, the Brexit process was about damage control. Britain voted to leave the EU last June, after a campaign that divided the country. In a close result, 52 percent voted for Brexit, while 48 percent wanted to stay in the EU. Scotland and Northern Ireland voted overwhelmingly to remain in the EU, while England and Wales, with a much larger combined population, voted to leave.- May spoke to key EU figures late on Tuesday including Tusk, German Chancellor Angela Merkel and European Commission President Jean-Claude Juncker. Juncker said his conversation had been ""good and instructive"" and that Britain would remain a ""close and committed ally"". Al Jazeera's Barnaby Phillips, reporting from London, said May's speech attempted to strike a delicate balancing act. ""Throughout the speech Theresa May is talking to two audiences simultaneously. She's talking to the audience across Europe, but she's also talking to a wide range of opinion in the country. ""She's trying to assuage the disappointment of the 'remainers', but she's also trying to rein in some of the hardline Eurosceptic 'leavers' - many of whom belong to her own party... [and] a conservative-dominated press in this country who are much more gung-ho about the terms of Brexit,"" -Phillips said. OPINION: Brexit is still happening, just not the way May hoped May has promised to take Britain out of the EU single market but negotiate a deal that keeps close trade relations with Europe, as she builds ""a strong, self-governing global Britain"" with control over its own borders and laws. Brexit Secretary David Davis said Britain was ""on the threshold of the most important negotiation"" for Britain ""for a generation"". The British parliament backed May's Article 50 plan earlier this month, after six weeks of debate. The EU is expected to issue a first response to Britain on Friday, followed by a summit of EU leaders on April 29 to adopt their own guidelines - meaning it could be weeks before formal talks start. Their priority is settling Britain's outstanding obligations, estimated between 55 and 60 billion euros [$59bn and $65bn] - an early battle that could set the tone for the rest of the negotiations. Both sides have also said they are keen to resolve the status of more than three million European nationals living in Britain after Brexit, and one million British expats living in the EU. The two sides also want to ensure Brexit does not exacerbate tensions in Northern Ireland , the once-troubled province that will become Britain's only hard border with the rest of the EU. Britain also wants to reach a new free trade agreement within the two-year timeframe, although it has conceded that a transitional deal might be necessary to allow Britain to adapt to its new reality. Many business leaders are deeply uneasy about May's decision to leave Europe's single market, a free trade area of 500 million people, fearing its impact on jobs and economic growth. The Brexit vote sent the pound plunging, although economic growth has been largely stable since then. On Tuesday, Scotland's semi-autonomous parliament backed a call by its nationalist government for a new referendum on independence before Brexit. OPINION: If Scotland leaves, England will lose the Brexit game Scotland's devolved administration is particularly concerned about leaving Europe's single market - the price May says must be paid to end mass immigration, a key voter concern. The prime minister rebuffed the referendum request and has vowed to fight for a new relationship with Brussels that will leave Britain stronger and more united than before. The EU, too, is determined to preserve its own unity and has said any Brexit deal must not encourage other countries to follow Britain out the door. With the challenges ahead, there is a chance that negotiations will break down and Britain will be forced out of the EU without any deal in place. This could be damaging for both sides, by erecting trade barriers where none now exist as well as creating huge legal uncertainty. May has said ""no deal is better than a bad deal"", and she has the support of pro-Brexit hardliners in her Conservative party, who have been campaigning for decades to leave the EU. Source:-Al Jazeera and news agencies", -3658,2017/3/29,http://www.aljazeera.com/news/2017/03/anti-apartheid-icon-ahmed-kathrada-laid-rest-170329094919157.html,Anti-apartheid icon Ahmed Kathrada laid to rest,South African President Jacob Zuma did not attend the funeral amid tensions between the late Kathrada and the ANC. 'Zuma will not attend',"South African anti-apartheid activist Ahmed Kathrada has been laid to rest in Johannesburg.- Kathrada, who spent 26 years in jail for acts of sabotage against South Africa's white minority government, died on Tuesday at the age 87 after struggling with a brief illness following brain sugery, his foundation said.- A number of dignitaries attended the funeral, including former South African president and Kathrada Foundation board member-Kgalema Motlanthe, who spoke at the service. The coffin of Uncle Kathy #AhmedKathrada pic.twitter.com/Mnd0EAc0PW President Jacob Zuma, who had been criticised by Kathrada, did not attend the funeral, the president's office said. ""President Zuma will not attend the funeral and memorial service in compliance with the wishes of the family,"" according to a statement issued by the president's office prior to the service. Al Jazeera's Tania Page, reporting from Johannesburg, said the family had welcomed Zuma to attend, but asked him not to speak.- READ MORE: Ahmed Kathrada: Humble and fearless Page said tension between Kathrada and Zuma ""stemmed from the fact that Ahmed Kathrada was not a man to hold back and speak out when he thought it was necessary."" She added that, according to Kathrada's foundation, the anti-apartheid activist put the values and ethics of the country ahead of any loyalty to any party. Last year, Kathrada joined a movement of veteran figures who were critical of the governing ANC and its current leaders, particularly -Zuma, who has been mired in mounting allegations of corruption. He wrote an open letter to Zuma, asking him to step down. Some people on their feet applauding at Motlanthe quoting Kathrada's letter - v powerful moment #KathradaFuneral Deputy President Cyril Ramaphosa attended the funeral on the government's behalf. Kathrada was born on August 21, 1929, to Indian immigrant parents in a small town in northwestern South Africa . His activism against the white-minority apartheid regime started at the age of 17, when he was one of 2,000 ""passive resisters"" arrested in 1946 for defying a law that discriminated against Indian South Africans. He was among those tried and jailed alongside Mandela in the Rivonia trial in 1964, which drew worldwide attention and highlighted the brutal legal system under the apartheid regime. READ MORE: Ahmed Kathrada: The Robben Island diaries Kathrada was sentenced to life imprisonment in 1964 and spent 26 years and three months in prison, 18 of which were on Robben Island. After the end of apartheid, he served from 1994 and 1999 as parliamentary counsellor to President Mandela in the first African National Congress (ANC) government. Source:-Al Jazeera and news agencies", -3659,2017/3/29,http://www.aljazeera.com/programmes/faultlines/2017/03/guatemala-disappeared-170328085834824.html,Guatemala's Disappeared,Thousands of people were disappeared during the civil war. Fault Lines meets families still searching for justice.,"Across Guatemala, thousands of families have been affected by mass murder, torture, and repression dating back to the country's civil war. Up to 45,000 civilians were forcibly disappeared during the 36-year conflict; an estimated 200,000 were killed. And while peace accords were signed in 1996, the war crimes of that era have largely gone unpunished. There is no suffering greater than to see a mother waiting for her son who was disappeared. Aura Elena Farfan, FAMDEGUA representative- ""They were massacred, large populations were razed,-their lands were destroyed; crops, belongings, houses, clothes ... everything, leaving people in inhumane conditions.-How the army could go on like that for so many years? I don't know or understand why,"" says Hilda Pineda, lead prosecutor on the case related to crimes that occurred at the Creompaz military base.- Now with the help of forensic evidence and the testimony of survivors, some former military leaders are facing trial for the first time. Jason Motlagh traveled to Guatemala to meet some of the families still searching for justice and the truth about what happened to their loved ones. Source:-Al Jazeera", -3660,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/palestinians-resisting-israel-settlement-law-170326083029163.html,How are Palestinians resisting Israel's settlement law? Nigel Wilson,Palestinians are petitioning Israeli courts against a law that forces them to lease their lands to Israeli settlers. By,"Kharbata, Occupied West Bank - Tawfiq Abu Hadawa, 78,-sits behind a sturdy desk, surrounded by the trappings of a life in local government. As the-head of Kharbata Bani Harith village council,-he eagerly recalls his previous life as a farmer. ""In the winter, we planted wheat and barley. In the summer, we gathered the crops. For the rest of the year, we used it for cattle,"" he says. Abu Hadawa had inherited 15 dunams, or 1.5 hectares, of agricultural land from his grandfather to the west of the village. But in the early 2000s, Abu Hadawa lost access to the land, when Israel began construction of the separation wall-in the occupied West Bank. The section of the wall close to Kharbata village was completed in 2005 and Abu Hadawa has not returned to the land since then. ""For us, having the land meant having everything. We had wheat and vegetables. The cattle meant cheese and milk. Before, if we needed flour, we had it. If we needed milk, we had it. Losing the land meant losing the way of life that came with it,"" he says. The council chief is among hundreds of Palestinians from the village and neighbouring villages prevented from using their inherited lands over the past three decades when parts of the villages' lands were contentiously seized by Israel as state property. Kharbata and its neighbouring Palestinian villages are among the 16 councils that have petitioned the Israeli Supreme Court-against the so-called ""regulation law"".- Passed in February, the law would retroactively legalise Israeli settlements built without permits on-privately owned Palestinian land-in the occupied West Bank. In the early 90s, the Israeli settlement of Modiin Illit was unlawfully established on the site, partially within the declared state land, but which has encroached on to land that is privately owned by Palestinians. This law, by forcing Palestinians to lend their land to settlers, is like forcing Palestinians to commit treason. Tawfiq Abu Hadawa, head of Kharbata village's local council According to the regulation law, Palestinian landowners would remain the owners of the land but would not be granted any usage rights. Instead they would be offered two compensatory options; either they would be given an alternative plot of land or they would be paid an annual usage payment up to 125 percent of the land's value, for renewable periods of 20 years. Raif Yousef, a Kharbata resident whose family owns 6.5 hectares of land beyond the separation barrier, told Al Jazeera that these options were risible and that he would not agree to leasing the land or giving it up. ""It is completely unacceptable. Renting a land is the same as selling it. We can never consider approving a law like that because once Israeli settlers rent the land, they will never leave it,"" he said. Abu Hadawa was even more emphatic, arguing that leasing the land would be a crime against the Palestinian people. ""This law, by forcing Palestinians to lend their land to settlers, is like forcing Palestinians to commit treason,"" he said. The law passed through the Israeli parliament fairly comfortably amid intense pressure from the settler lobby, despite being criticised by senior politicians including Israel's Prime Minister Benjamin Netanyahu. The Israeli attorney general, Avichai Mandelblit, said it violated Israeli and international law, and that he would not be able to defend it against a legal challenge. READ MORE: Israel's settlement law - Consolidating apartheid A coalition of Israeli and Palestinian human rights groups filed a Supreme Court petition against the law in February, arguing that it violated property rights of Palestinian in the occupied West Bank and the-diaspora, as well as violating international law and the December 2016-UN Security Council-resolution concerning settlements in the occupied Palestinian territory. Suleiman Shaheen, a lawyer at the Jerusalem Legal Aid and Human Rights Centre, one of the rights groups that filed the petition, said it breached rights and that the Israeli parliament had no jurisdiction to legislate civil law in occupied territory. ""It gravely breaches basic standards of international humanitarian law. It is meant to confiscate private lands that were trespassed upon by settlers, not only within settlements, but also a large scope of private lands in Area C,"" he said. It could take up to a year of court hearings before a final decision is made on the legality of the law, and the process remains in its early stages, as both sides prepare to present written arguments to the court in the coming weeks. Given Mandelblit's reluctance to defend the law in court, the Israeli government hired a private lawyer to argue its position. While the attorney general's rejection of the law could make it more likely to be declared illegal, Shaheen was not confident of winning the case, citing the strength of the settler lobby in Israel. ""The court is under pressure,"" he said. ""The court realises that whatever its decision will be, if it declares the law illegal, then the political right wing in Israel will attack the court and try to attack its public legitimacy."" Shaheen told Al Jazeera that even if the law were to be overturned, it would only mark a small victory for Palestinians who have lost lands through various Israeli legal mechanisms. ""If it is declared illegal, it does not mean that the judicial system in Israel is not a full partner of the settlement project, taking over land in Area C and eliminating any chance of a Palestinian state,"" said Shaheen. ""The Israeli Supreme Court was a full partner and willing partner in establishing settlements and legitimising settlements."" Source:-Al Jazeera", -3661,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/rise-fracture-european-union-170310131357262.html,The rise and fracture of the European Union,We examine the history of the European Union and ask if it can withstand the challenges posed by populism. Ideological struggle - A boom- Populism,"Europe is in the throes of a far-right populist resurgence, threatening mainstream politics and the very idea of European integration. Nationalism is playing a key part in elections across the continent, while Europe waits to see how far the far right has come, and how far the European Union has left to go. ""To understand Europe and where we are today in terms of European integration and some of the phenomena we're seeing in the contemporary period, we do have to go back to that Europe that no longer exists, the post-World War II Europe,"" says Alina Polyakova, the director of research on Europe and Eurasia at the Atlantic Council. INTERACTIVE: The making and breaking of Europe In 1945, at the end of World War II, the continent had been divided by nationalism and devastated by war. But it was also ready for a new beginning.- At a meeting in the Crimean resort of Yalta, US President Franklin Roosevelt, British Prime Minister Winston Churchill and Soviet Premier Joseph Stalin marked out a joint plan for a liberated Europe. It set in place spheres of influence for Soviet and Western interests, and would lead to the creation of East and West Germany. ""Europe was left completely economically dilapidated, struggling, and at that time, you know, if we think of where is the starting point for what we now call the European Union, in many ways it was the Marshall Plan,"" Polyakova says. The 1948 Marshall Plan distributed $13bn of US aid across ravaged western Europe. Sanctioned by President Harry S. Truman and led by his secretary of state, George Marshall, the plan had at its heart the aim of a united Europe. ""They want to see a united Europe because they think that will attract some of the eastern satellite states away from the Russians. Essentially, it's about making western Europe in America's own image and selling America to the Europeans. This is cultural imperialism,"" explains Richard Aldrich, a-professor of international security at the University of Warwick. In May 1950, two years after the Marshall Plan had been put into effect, France's Foreign Minister Robert Schuman laid bare the vision of European unity. ""Europe will not be made all at once, or according to a single plan. It will be built through concrete achievements which first create a de facto solidarity,"" Schuman declared. - A federal Europe would consolidate what the North Atlantic Treaty Organisation, NATO, had been set up to do: keep Soviet power in check. By 1955, just weeks after West Germany entered NATO, the Soviet Union formalised the Warsaw Pact - drawing in nations from central and eastern Europe in a common counter-purpose: challenging Western domination. Europe was once more the centre of ideological struggle. ""The European continent becomes a battleground between Anglo-American influence that's trying to uphold and expand liberal democracy, versus Soviet communism, which is really tied up with anti-fascism,"" Matthew Goodwin, a-professor at the Royal Institute of International Affairs,-explains.- By the late 1950s, the division of Europe into two ideological blocs was a political, economic and cultural reality. The Treaty of Rome transformed the six nations of the European Coal and Steel Community into the European Economic Community. And by August 1961, the ""Iron Curtain"" that symbolically divided Europe in two was made real with the building of the Berlin Wall. Eastern Europe was closing itself off from the West. But at that same time, the West was opening up to the rest of the world. Europe was experiencing an unprecedented boom, while keeping Britain out of its increasingly wealthy club.- The European Economic Community was absorbing foreign workers, initially from southern Europe, but by the late 1950s and 1960s from countries such as Turkey and Morocco, and, in the case of Britain, from the Commonwealth. At the beginning of 1973, after nearly three decades of looking in from the outside, Britain, along with Ireland and Denmark, finally joined the European Economic Community. The EEC had grown to nine member states. But later that same year, a hike in the price of crude oil by the multinational oil cartel OPEC-sparked an economic crisis that was part of a wider downturn in European fortunes. It would leave the so-called ""guest workers"" with no work and no thought of going back to where they had come from. ""It was clear that the guest workers weren't going home, and it was only when they increasingly moved out of those kind of factory-owned apartments and into mostly white working-class areas, that it became an issue because only then did it become clear that they were here to stay, and they were going to be part of society,"" explains-Cas Mudde, the author of the Ideology of the Extreme Right. Foreign guest workers had now become visible local fixtures. In France, this shift stirred an anti-immigrant reaction and brought disparate sections of the far right under the leadership of one man, Jean-Marie Le Pen. ""I had the feeling that France was losing its territory,"" he told Al Jazeera-in an exclusive interview. ""And that as a consequence of these failures she would know other hardships .... So from that moment on I conducted a political campaign of 'resurgence', if you will."" This self-proclaimed ""resurgence"" of far-right sentiment wouldn't be confined to French soil. But just as the far right looked to take advantage of anti-immigrant sentiment and economic uncertainty, their ideas would achieve a victory, but leave their parties at a loss. - Far-right parties were emerging as a political reality, while the European Economic Community was enlarging to include Spain, Portugal and Greece. The 1980s drew to a close with increasing western European unity. But the East would experience a seismic contraction. President Mikhail Gorbachev's perestroika reforms failed to save the Soviet Union from collapse. The West had won the ideological war, and the fall of the Berlin Wall would symbolise the end of the 20th century's ""grand narrative"". The end days of communism had brought uncertainty and opportunity to Europe. Still coming to terms with the war in Yugoslavia that had seen the rise of ethno-nationalism and the disintegration of the Balkan state, leaving more than two million refugees in its wake, western Europe pressed ahead with its most ambitious plan for greater integration. It would be signed into effect in 1992 in the Dutch city of Maastricht. As well as paving the way for a common currency - the euro - the Maastricht Treaty made the 12 member states beholden to shared economic, social and security policies. The political and economic strings of Europe were being pulled from the EU headquarters in Brussels. The gap between governance and the governed was getting ever greater. In 1999, the European common currency - the euro - was finally launched. But not everyone was happy with this.- The True Finns in Finland, the Sweden Democrats and the Danish People's Party were all, to some degree, vehicles for anti-EU sentiment, France's Front National refocused its own nationalist manifesto against the supra-national union, while in Britain, the UK Independence Party would begin to campaign to get Britain out of Europe. In 2008, the financial meltdown, which had begun with a credit crisis in the US, would be a catalyst for political and social unrest across Europe and would give the far right a chance to rush in where the mainstream feared to tread. In Greece, the simmering financial crisis boiled over into street violence. The Greek Prime Minister, George Papandreou, committed to a 110bn euro, ($119bn) bailout by the troika of the European Commission, the European Central Bank and the International Monetary Fund. In return, Greece would be required to make drastic cuts to its public spending, reduce its budget deficit and liberalise its markets. ""I had to take these very difficult measures, I knew that many of these were unjust but otherwise our country would have fallen off the brink, we would have gone bankrupt,"" says George Papandreou, the former Greek prime minister. READ MORE: Far-right MP storms Athens school over refugee classes The 2012 elections in Greece saw Golden Dawn, a violent, openly fascist party, claim 18 seats in the Greek parliament. But it was a coalition government of traditional left and centre-right parties that held power in Athens, and-it soon set to work implementing the imposed austerity. In France, Marine Le Pen, daughter of Jean-Marie, had taken over as leader of the Front National, shifting its emphasis to a centre-ground that had already shifted to the right. In 2016, the British people voted to leave the European Union. It was a victory in part fuelled by nationalism, with the UK Independence Party leading the charge. As Cas Mudde says: ""BREXIT was the first significant victory in foreign policy for the radical right."" The project to unite Europe, which began in the wake of a devastating war, seems to be being challenged by populist stirrings in the nations it sought to bring together. Source:-Al Jazeera News", -3662,2017/3/29,http://www.aljazeera.com/news/2017/03/simone-gbagbo-cleared-war-crimes-charges-170328233831046.html,Simone Gbagbo cleared of war crimes charges,Simone Gbagbo had been charged with orchestrating attacks on supporters of her husband's opponent after 2010 election. Trial criticised,"An Ivory Coast court has found former first lady Simone Gbagbo not guilty of war crimes and crimes against humanity after a trial on her alleged role in postelection abuses that led to the deaths of thousands. Judge Kouadio Bouatchi with the country's highest criminal court said a jury unanimously voted on Tuesday to free Gbagbo. The prosecution had asked for a life sentence, saying she participated on a committee that organised attacks against supporters of her husband's opponent after the 2010 election. Once dubbed Ivory Coast's ""Iron Lady,"" Gbagbo, who was not in court on Tuesday, must still serve 20 years in prison after being found guilty in 2015 of offenses against the state. - WATCH:-Cote d'Ivoire - Partial Justice The prosecution had called on the jury to find the 67-year-old wife of ex-president Laurent Gbagbo ""guilty of crimes against humanity and war crimes and sentence her to life imprisonment,"" said prosecutor Aly Yeo. ""After her spouse came to power, she started to impose herself as the real head of Ivory Coast, the army, the police and gendarmerie,"" Yeo said. Laurent Gbagbo is on trial for crimes against humanity, including murder, rape and persecution, having been handed over in November 2011 to the International Criminal Court (ICC) in The Hague. The ICC also wanted to prosecute his wife and issued a warrant for her arrest, but Ivorian authorities refused to hand her over, insisting she would receive a fair trial at home. Ivory Coast descended into civil war in 2011 after Gbagbo's refusal to accept defeat to Alassane Ouattara in a presidential runoff election. About 3,000 people were killed in the conflict. ""We regret this decision when we think of the many victims,"" Soungaola Coulibaly, lawyer for the victims, told Reuters. ""If Simone Gbagbo is declared not guilty of these acts then who was? ... The victims do not understand this decision."" Human Rights Watch said the judgement left ""unanswered serious questions about her alleged role in brutal crimes"". ""The acquittal ... reflects the many irregularities in the process against her,"" Param-Preet Singh, associate director in Human Rights Watch's International Justice programme, said. ""The poor quality of the investigation and weak evidence presented in her trial underscore the importance of the ICC's outstanding case against her for similar crimes."" Source:-News agencies", -3663,2017/3/29,http://www.aljazeera.com/news/2017/03/trump-moves-roll-obama-era-climate-policies-170328203429537.html,Trump moves to roll back Obama climate policies,US president signs order to review emissions limits for coal-fired power plants and ease coal production limits. Paris Accord in question,"US President Donald Trump has declared the end of a ""war on coal"" as he moved to roll back rules that underpin American emissions targets and a major global climate accord. Following through on an election promise, Trump on Tuesday signed-an-""energy independence""-executive order to review some of his predecessor Barack Obama's climate legacy, declaring an end to ""job-killing regulations"". In a maiden trip to the Environmental Protection Agency, he ordered a review of emission limits for coal-fired power plants and eased up restrictions on federal leasing for coal production. A coalition of 23 US states and local governments vowed to fight the order in court. ""These actions are an assault on American values and they endanger the health, safety and prosperity of every American,"" said billionaire environmental activist Tom Steyer, the head of activist group NextGen Climate. OPINION: Donald Trump's cabinet bodes ill for the planet Trump said the measures herald ""a new era in American energy and production and job creation"". Critics, however, said rolling back Obama's Clean Power Plan is unlikely to result in a boost to production or to create substantial numbers of jobs. The US coal industry has long been in decline with natural gas, cheap renewable energy, automation, and tricky geology making the sooty fuel a less lucrative prospect. In 2008, there were 88,000 coal miners in the United States, according to the US Energy Information Administration. That number is now down 25 percent. Christy Goldfuss, an energy expert at the Center for American Progress, said that whatever policy changes Trump makes, it is the markets that will decide what industry is viable. ""The executive order today is not going to bring back coal jobs,"" Goldfuss, who helped develop Obama's climate action plan, told Al Jazeera. ""The market is just not demanding coal here in the United States. The resurgence of natural gas is really driving our entire economy when it comes to energy right now, not to mention renewables that have come on board in a hugely affordable manner."" Some experts and environmental groups also warned that Trump's order could be the opening salvo of an effort to undermine internationally agreed targets under the Paris Climate Accord, which was reached by nearly 200 countries in 2015. Curbing emissions from coal-fired power plants was a pillar of the US' commitment to cut carbon emissions by 26-28 percent by 2025. ""It will make it virtually impossible"" for the US to meet its target, said Bob Ward, a climate specialist at the London School of Economics, of Trump's executive order. The Trump administration has not said whether it will pull out of the Paris deal. Christiana Figueres, former executive-secretary of the United Nations Framework Convention on Climate Change, who helped broker the Paris accord, lamented Trump's order. ""Trying to make fossil fuels remain competitive in the face of a booming clean renewable power sector, with the clean air and plentiful jobs it continues to generate, is going against the flow of economics,"" she said. Already the states of California and New York - two of the most populous states - have said they will press ahead with climate mitigation plans despite Trump's moves. Both states are controlled by Democratic governors.- But Trump's climate scepticism has struck a chord with many Republican voters. While some 68 percent of Americans believe climate change is caused by humans, only 40 percent of Republicans say they worry about it, according to polling agency Gallup. The United States is the world's second-largest polluter. About 37 percent of domestic carbon dioxide emissions come from electricity generation. Source:-Al Jazeera and news agencies", -3664,2017/3/29,http://www.aljazeera.com/news/2017/03/obama-era-online-privacy-rule-overturned-congress-170329084059831.html,Obama-era online privacy rule overturned by Congress,"The ruling means that internet providers will no longer need permission to market customers""?web-browsing history.","The United States Congress has sent President Donald Trump legislation that would kill an online privacy regulation, a move that could allow internet providers to sell the browsing habits of their customers. The Federal Communications Commission rule, issued during the final months of the Obama administration, was designed to give consumers greater control over how internet service providers share information. But broadband providers said the rule favoured certain companies. The House voted 215-205 to reject the rule, largely along party lines. Democrats said Republicans put profits over the privacy concerns of Americans. READ MORE: Trump moves to roll back Obama-era climate policies ""Overwhelmingly, the American people do not agree with Republicans that this information should be sold, and it certainly should not be sold without your permission,"" Minority Leader Nancy Pelosi said. ""Our broadband providers know deeply personal information about us and our families."" Google and Facebook are regulated by another agency and face different standards when it comes to customer data. They don't have to ask users' permission before tracking what sites they visit. Republicans and industry groups have criticised that discrepancy, calling it unfair and confusing for consumers. Proponents of the privacy measure, though, argued that the company that sells you your internet connection can see even more about consumers, such as every website they visit and with whom they exchange emails. That information would be particularly useful for advertisers and marketers. Undoing the FCC regulation leaves people's online information in a murky area. Experts say federal law still requires broadband providers to protect customer information - but it doesn't spell out how or what companies must do. That's what the FCC rule aimed to do. The Trump-appointed chairman of the FCC, Ajit Pai, a critic of the broadband privacy rules said they could discourage new investments. He and other Republicans want a different federal agency, the Federal Trade Commission, to police privacy for both broadband companies such as AT&T and internet companies, such as Google. READ MORE: Snooping, data leaks and the threat to online privacy Republican Kevin McCarthy said the FTC has acted as the online privacy regulator in the US since the dawn of the internet. He called the rule an effort to strip the agency of that role. ""The internet has become the amazing tool that it is because it is largely left untouched by regulation and that shouldn't stop now,"" McCarthy said. Broadband providers do not currently fall under FTC jurisdiction, and advocates say it has historically been a weaker agency than the FCC. The American Civil Liberties Union urged Trump to veto the resolution. ""President Trump now has the opportunity to veto this resolution and show he is not just a president for CEOs, but for all Americans, said the ACLU's Neema Singh Guliani. Republicans repeatedly discounted the privacy benefits generated by the rule. Over the last two months, they have voted to repeal more than a dozen Obama-era regulations in the name of curbing government overreach.- ""Lawmakers who voted in favor of this bill just sold out the American people to special interests,"" said Democrat Jared Polis. Source:-News agencies", -3665,2017/3/29,http://www.aljazeera.com/indepth/opinion/2017/03/french-elections-manufacture-consent-170328085310887.html,,,"Presidential elections in France have never been as scandalous and controversial as this year's. But what really sets the 2017 election apart from previous ones is how French mainstream media is behaving itself in terms of objectivity and fair standards of coverage. In a democratic context, the general objective of media coverage during an election campaign should ultimately be the dissemination of fair and impartial information, through an equal distribution of broadcasting time among all candidates taking part in the elections, as well as an objective and critical analysis of the candidates' discourses and/or policy platforms while avoiding granting preferential treatment to one candidate at the expense of all others. By law, airwave time and exposure is monitored and enforced by the state's Conseil Superieur de l'Audiovisuel (High Council for Audiovisual) which stipulates that the media should ""ensure that candidates enjoy fair representation and access to the media space"". However, serious questions can be raised about the media's compliance with such guidelines in the 2017 elections. Furthermore, France is now going through tough socioeconomic problems that provide the media outlets with enough material to question different candidates' platforms and visions in terms of strategies and means that they intend to employ to address these challenges. Rather the mainstream media coverage of the candidates' electoral campaigns mostly tends to focus on political scandals and trivial issues, such as the prices of Francois Fillon's costumes and watches, or the daily obsession over the possible scenarios regarding the elections' second round.- But the most striking example illustrating the media's complacency and bias is the case of Emmanuel Macron, former Socialist minister of economy under the presidency of Francois Hollande, and now an independent candidate under a social democratic banner. Framed as ""the renewal candidate"", and France's ""saviour"", Macron, who has never been tested at the ballot box, enjoys unprecedented media coverage in France. Even before he announced his candidacy, mainstream media was reporting on rumours about the announcement of his candidacy. And when the day came, Macron made headlines in major dailies such as Le Monde, Le Figaro, Liberation and Le Parisien, and his announcement was also featured on all major radio and TV stations. For two consecutive days, the national channel France2 reserved half of its prime-time newscast for Macron's announcements, while the other candidates did not enjoy such coverage. OPINION: Elections in France - It's all about security And in the aftermath of a national TV debate, bringing together five of the 11 candidates, almost all major media outlets anointed Macron as the most convincing personality of the debate. A simple critical look at the debate in question would suffice to see how Macron's performance and discourse were banal. In contrast, far left-wing candidate Jean-Luc Melenchon, who had distinguished himself during the debate both by his innovative political proposals and his provocative style, did not get the media coverage to match his ground-breaking political platform. Despite his career at the very heart of the system, and his modest performances as a minister, the question of Macron's supposed lack of political affiliation or of his positioning against the French oligarchy is almost never raised or seriously debated in the media. - So what could justify such bias in favour of Macron and the media's insistence on constructing popular support around his candidacy? Especially since Macron, presented as an anti-system candidate who has ambitions to revolutionise the French political landscape, is the very product of the system? Until August 2016 Macron served as minister of the economy under the socialist Francois Hollande's presidency, and before that he served as deputy secretary-general at the Elysee Palace. In addition, he graduated from the prestigious French National School of Administration and worked as a banker at Rothschild & Co. In April 2016, the Mediapart, an independent news website, disclosed that the legal address of Macron's ""En Marche"" (Onwards) political movement was hosted at the private residence of the director of the Institut Montaigne. The institute is-a liberal think-tank close to the Mouvement des Entreprises de France, the largest entrepreneur federation in France which has lobbied against various labour rights. It is a bit of a contradiction for a man clearly close to France's top business circles to say that he stands against policies ""preserving the privileges of some to the detriment of millions of others"". The mainstream media has painted a picture of Macron as the only candidate capable of confronting the danger that the extreme right candidate Marine Le Pen poses. But any candidate, whether on the left or right, who enjoys popular support, will be able to win the elections over Marine Le Pen in a runoff. Some media business tycoons have expressed outright support for Macron. Pierre Berge, co-owner of the newspaper Le Monde, has publicly supported him, while- Bernard Mourad, deputy managing director of SFR Media, which controls L'Express, Liberation, BFM TV and RMC, resigned from his position to join Macron's election campaign. Such staunch support from media tycoons cannot but influence the content and discourse of the media outlets they own. This way of promoting a particular candidate and granting him excessive media exposure at the expense of all other candidates is a clear case of media bias. Furthermore, framing the electoral competition as an inevitable duel between only two possible candidates - Macron, who would be ""France's saviour"", and Le Pen, who would be the ultimate threat to society - can only aim to create a sense of urgency among voters to support the former. Thus a media machine owned by business tycoons is manufacturing popular consent around a candidate supported by financial circles which are far from concerned with democratic ethics or the general population's interests.- George Orwell once wrote: ""In times of universal deceit, telling the truth becomes a revolutionary act.""-Well, in present times, French mainstream media are surely not revolutionary! Ali Saad is a French sociologist and media critic, focusing on the influence of mass media on society. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.-", -3666,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/remembering-gambia-notorious-mile-2-prison-170322073015550.html,Remembering The Gambia's notorious Mile 2 Prison Hamza Mohamed,"Political prisoners of the former president, Yahya Jammeh, share stories of torture and life behind bars. By 'They filmed everything they did to me'- 'They beat him non-stop'- Waiting to die The slow but firm 'wheels of justice'","Mandinaring, The Gambia - The walls were once painted white. And, in its past life, the floor was a layer of smooth cement. But the walls have turned brown now, covered in dust and sweat, and the cement has started to crumble into potholes and cracks.- This is the notorious Mile 2 Prison outside the Gambian capital Banjul. Just the mention of that name was once enough to inspire fear in those who did not tow the government line in this tiny West African country. It was where the political prisoners of former president Yahya Jammeh, who ruled The Gambia for more than two decades, since leading a military coup in 1994, were sent.- Some endured years of torture before being released. And those were the fortunate ones; others were never seen again.- About a 40-minute drive from the colonial era prison is the home of politician Nokoi Njie. As the late afternoon sun disappears behind the palm and mango trees, her children and relatives gather around her to listen to stories of what life was like behind the prison's bars. ""I still remember the day the security services picked me up. It was April 14, 2016, and we were protesting for electoral reform,"" she says, her breathes deep as she tries to hold back her tears. ""The beating and torture started as soon as they put us in the lorry that was to take us into custody. We were arrested by big paramilitary men."" She was not alone. Dozens of activists and politicians were picked up that day. It wasn't the first time Njie had fallen foul of the authorities - but it would be the worst. ""It was my second time,"" she explains. ""In 2011, before the election, I was arrested because I opposed the president's people registering non-Gambians to vote in our election."" On that occasion she was released after a day. But things would be different this time; she would spend months behind bars without any contact with her family or a lawyer. ""When they put me in a cell, they tied my legs with a wire rope which cut deep into my flesh and I was bleeding. They then beat me with a baton and a rubber whip made from car tyre. They filmed everything they did to me. It was so bad I started saying my final prayers,"" she says, the tears now running down her cheeks. ""For three months my family did not see me or hear from me. They thought I was dead."" But Njie was lucky. Some of those arrested with her that day did not leave the torture chambers alive. WATCH: Revisiting Yahya Jammeh Solo Sandeng was one of them. The opposition activist had, like Njie, been protesting for reform when he was arrested. Not many people know what happened to him, but Njie does.- ""We were in the same cell,"" she says, her voice cracking with emotion. ""They beat him non-stop in front of my eyes until he could not move a finger. He was motionless but that did not stop them."" Wiping away her tears with trembling hands, Njie continues: ""They then poured cold water on him to try and make him move. They then started beating him again. Solo then made one small grunt and that was it. He was dead."" Fifty-seven-year-old Sandeng left behind nine children - and they say they want answers about what happened to their father. ""We want justice and we want those behind his death to be brought to court,"" explains one of his daughters, Fatima Sandeng, in the family home about an hour outside Banjul. Then, Fatima, who is also an activist, adds defiantly: ""Before any reconciliation can happen in our country those who committed these crimes need to face the law. Justice before reconciliation."" Two days after Fatima spoke to Al Jazeera, police found the unmarked grave where her father's body had been buried. The former director of operations at the notorious National Intelligence Agency (NIA), Saikou Omar Jeng, led police to a grave in Tanje, a small fishing village around 33km from the capital. READ MORE: Big hopes for the New Gambia It wasn't only activists and politicians who bore the brunt of Jammeh's rule. Anyone who stood in the way of those connected to the seat of power could find themselves imprisoned. Twenty kilometres south of the prison, in a two-bedroom house in the town of Brikama, Musa Jobe still can't believe that he is a free man. The former tax collector was arrested in 2011 after he upset a group of well-connected businessmen. They accused him of issuing vehicle licences illegally. He spent three years and 11 months behind bars in Mile 2. He thought he would die there, he says, shaking his head. ""Two to three people were dying a day of sickness and maltreatment while I was there."" ""The court dropped all the charges [against me] because they had no evidence,"" he says. ""But they still kept me in prison."" Jobe says he was simply waiting for death.- ""I was kept in a cell with 30 other people. We had no bathroom and had to relief ourselves in a tin on the corner of the room."" READ MORE: The Gambia arrests ex-intelligence boss linked to abuse But The Gambia is changing. Jammeh is no longer in power after losing December's poll. He lost last December's elections and, after refusing to leave office, was forced into exile in January by forces from the regional bloc ECOWAS. Adama Barrow was sworn in as the country's new president. One of the first things he did was release the political prisoners and those who had been held without trial. Njie and Jobe were among them. The new government also arrested the former head of the country's national intelligence agency, Yankuba Badjie, and his deputy Saikou Omar Jeng. Both were accused of overseeing killings, kidnappings, arbitrary arrests, torture and rape during their time in office. The new government has also promised to leave no stone unturned when it comes to investigating the abuses that occurred under Jammeh. ""We have released all political detainees and political prisoners in The Gambia,"" explains Mai Ahmad Fatty, the country's new interior minister a day after President Barrow ordered the release of more than 90 prisoners from Mile 2 Prison. ""Today as we speak we don't have any political prisoners or detainees in our country. They were incarcerated on account of their opinion or beliefs. They had no business being in prison so we released them all."" The interior minister says that he wants Gambians to be patient as the new government tries to reform the country's justice system. ""The wheel of justices grinds really slowly but firmly. The government is investigating all allegations of human right abuses and we have apprehended some people who have been accused and they will appear before court,"" he tells Al Jazeera. ""But the exercise is not complete and we are looking at persons of interests who are alleged to have been involved in these illegal practices and we will not rest until justice is served. Some suspects might be out of the country and we will use the international criminal justice processes to reach them."" Njie says she is happy that Jammeh is no longer running the country and that she finally has a government she believes in. ""The new government is doing well,"" she reflects as one of her grandchildren looks on from the corner of the living room.-""And we can vote them out if they don't do as we want them to. Our main problem was Jammeh. Now that he is gone we are happy."" Follow Hamza Mohamed on Twitter:-@Hamza_Africa Source:-Al Jazeera News", -3667,2017/3/29,http://www.aljazeera.com/programmes/rewind/2017/03/rewind-daughters-brothel-170328094759202.html,Rewind: Daughters of the Brothel,"Raised in a brothel, Naseema founded an NGO to fight for the rights of sex workers in a village in northeast India.","Chatrubhuj Sthan in Bihar Province, eastern India has more than 3,000 sex workers who ply the oldest profession in the world.- In the face of the extreme legal and social discrimination experienced by the prostitutes, a group of intrepid women, who themselves grew up in brothels, set up a workers' rights organisation - Parcham (meaning flag). They offer women an opportunity to seek other forms of income, provide education for their children and work constantly to close down sex-trafficking routes. REWIND follows up on what has happened to some of the main characters from this 2011 film.- Source:-Al Jazeera", -3668,2017/3/29,http://www.aljazeera.com/programmes/aljazeeraworld/2017/03/passport-freedom-170327090632861.html,Passport to Freedom,"The stories of Syrians, Iraqis and Egyptians emigrating and seeking dual nationality following the 2011 Arab Spring.","Filmmaker: Ahmed Abdelhady In Passport to Freedom, Arab nationals from Syria, Iraq, and Egypt describe what led them either to flee their country as refugees or go abroad to set up a new life - and, in the process, get dual nationality and a second passport. The 2011 revolutions sparked an increase in the numbers of emigrants, wanting to escape political instability and economic uncertainty in several Arab countries. ""Emigration used to be a way of solving economic problems to achieve an end,"" explains Ayman Zohry, a population and migration expert at the American University of Cairo. ""Now, it's become a desire to emigrate permanently and live abroad."" Zohry notes that two years after the Arab Spring, there were ""about 23 million Arabs living in countries other than their own."" Not just revolution, but war has forced the Syrians to flee - but according to researcher Yaseer Shabani, a perceived lack of ""social justice"" has been the main cause of Iraqis and Egyptians going abroad. Around 2.3 million Egyptians emigrated in the year 2000, but this climbed to 3.46 million in 2013.- Passports issued by many Arab countries are limited and don't allow you to move freely. Ayman Zohry, population and migration expert, AUC Similarly, in Iraq, from 2000 to 2001, the emigration figure was 1.15 million,-but from 2013 to 2014, the number reached 2.32 million. ""We are talking about extremely high, catastrophic figures [which] rob Arab societies of their young people,"" says Shabani. ""It could be sectarian or because of a job, an invasion or a revolution. But they were all because of a lack of social justice and this is the result."" Zohry suggests that the whole idea of a homeland has changed, rather than people's feelings towards their own countries. ""The mechanisms of love for country and attachment to it have changed."" Two Egyptians in the film have already emigrated and have new passports. Samah Sadek has moved to Canada and Reda elMasry to the former Soviet republic of Georgia. Egyptian journalist Ahmed el-Sheikh and rap artist Mohammed Shreif have suffered in different ways in post-revolution Egypt and want to leave for the West as soon as they get the chance. Author Samah Sadek had never considered leaving Egypt. ""At first, I wasn't thinking about emigrating or leaving Egypt,"" says Sadek. ""I never imagined I'd be living anywhere other than the country I love."" However, ""after the revolution and the events that followed, and incidents when people appeared in court and were rescued by their second nationality, I started to think it was important to have a different passport"", she says. ""With my Canadian passport, my value as a human being is greater. My Egyptian passport reduces my value."" For installation technician Reda elMasry, the decision to leave Egypt for Georgia came down to the effect the revolution had on his business. He used to install surveillance systems for the government and the police.-""I lost a lot of money,"" he says. ""Every time I went there to complain, they said things weren't working, the equipment was destroyed. They said it was damaged after the revolution and refused to pay me."" ""I just got tired of it and thought about changing my nationality,"" he says, adding that he feels a greater sense of personal freedom in Georgia. Violence in Iraq drove hotel owner Khalaf Jassem to Georgia where he, too, has a new passport. ""I'm not harassed-as I was in Iraq because of my denomination, race, gender or religion. No one cares here."" Hagy Farasdaq used to own a clothes factory in Iraq, but when he and his young daughter were beaten at a military checkpoint, he also decided to move to Georgia. ""One day, I went to Baghdad to buy some merchandise and took my daughter with me. It's about 55km from Fallujah with eight security checkpoints. One of these is Al-Ghazalieh and it's the worst. They told me to get out of the car and I said I had to help my daughter out first. 'You're concerned about your daughter?' he said, and slapped her in the face,"" he recalls. Hagy was beaten and ended up with a dislocated shoulder and four broken ribs.- ""That's when I decided to forget about Iraq, my homeland,"" he says. ""Many people say they'd never give up their nationality. But they should first ask what makes someone give it up."" Syrian refugees Rana Ayoubi and her husband Mahmoud AlKurdi escaped to Turkey. Rana says she lived comfortably in Syria and was reluctant to move when fighting first broke out. But after losing her home and witnessing the devastation, ""Syria was no longer a place for me,"" she says. As Syrians in Turkey, ""it was very difficult for us to adapt and live in several ways,"" says Mahmoud, a tailor by trade. Without the necessary work permits, ""I didn't have the right to do anything."" For Syrian refugee Abdallah Hilal, Georgia was an attractive destination because it did not demand a visa for Syrians. Once registered with the immigration ministry, ""I was allowed to live and work here."" The factory owner proudly says, ""I am very thankful to Georgia for not putting any obstacles to our residency here. Nobody asks us where we're going or where we're from or tells us we have to leave after a certain time."" Hilal is still waiting for his Georgian passport. ""The Arab world no longer accepts the Arab world. Arab citizens and political regimes in the Arab world no longer accept each other - so my passport doesn't allow me to travel to another Arab country. It's humiliating,"" says Ayman Zohry. What stands out in this film is the characters' determination to find a sense of purpose, freedom and identity in their adopted homes, and a deep desire to hold citizenship that is internationally recognised, allows freedom of travel, grants them basic human rights and gives them a renewed sense of self-worth. - Source:-Al Jazeera", -3669,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/sickle-cell-silent-killer-chhattisgarh-state-170326142755589.html,Sickle cell: A silent killer in Chhattisgarh state Alok Putul,"The hereditary disease kills at least 10,000 children a year in this Indian state. By 'Our daughter died in front of our eyes' Lack of awareness","Raipur, Chhattisgarh --Thirty-three-year-old Ramnath Sahu looks visibly distressed. The day before, his four-year-old son, Kuldeep, was diagnosed with sickle cell - a hereditary disease affecting the red blood cells. ""Don't worry my child, nothing will happen to you,"" says Kuldeep's 54-year-old grandmother, Ramvati Bai, as she caresses the boy in front of their home in the village of Akola, in Bemetara district.- Kuldeep's seven-year-old brother, Harsh, was diagnosed with the disease last year. According to a 2013 report by the Jawahar Lal Nehru Memorial Medical College in the state's capital, Raipur, 10 percent of Chhattisgarh's population is affected by the disease, with the state's indigenous tribal population disproportionately affected. A report released in December by the government-run State Health Resource Centre in Raipur says that 20 percent of one tribe - the Gond tribe - suffers from the disease. READ MORE: India losing the battle against TB? And it can be more prevalent among lower castes, such as the Kurmi and Sahu, where according to Dr Praveer K Chatterjee, the executive director of the State Health Resource Centre, rates are at 20 and 22 percent respectively. The fact that the disease can be fatal worries Sahu, who-travelled 90km from his village to Raipur to get his son checked for it. Sickle cell damages-the haemoglobin, a protein in the red blood cells, affecting their capacity to carry oxygen, and patients can suffer from anaemia, jaundice, body pain, pneumonia and repeated infections that may result in paralysis. ""The sickle-shaped RBC [red blood cells] face erratic movement in blood vessels,"" explains Dr PK Patra, the director general of the Sickle Cell Institute in Raipur. ""This stops blood carrying haemoglobin to reach to cells fast enough, thus resulting in severe pain or damage to affected areas."" If not treated on time, it can cause death among children. And even when treated it can shorten life expectancy by at least 20 years. ""We very well know that it's a life-threatening disease,"" says Sahu, his brow wrinkled.-""But we are striving to save their lives. We would go for any possible treatment."" Each year at least 10,000 children die of sickle cell in the state, according to Dr AR Dalla, chairman of the Sickle Cell Organisation of India. At the Sickle Cell Institute in Raipur, a modern three-storey building located inside the Jawaharlal Nehru Medical College,-there is a steady stream of patients. Damrudhar Jaal and his wife Yashoda have brought their two children - six-year-old Muskan and two-year-old Prithviraj - who have both been diagnosed with the disease for a routine check-up. The hospital-cum-research institute was founded in 2013 to cater to the large number of cases in the state. READ MORE: Rescuing HIV orphans in India From 2008 to 2016, the institute carried out a sample survey of children from birth to the age of 15 and found that 10 percent suffered from sickle cell. The couple from the industrial town of Bhilai, 35km south-west of Raipur, have already lost two children to sickle cell anaemia, the most common and chronic form of the disease. In 2009, when their one-year-old son, also named Harsh, died, doctors had suspected sickle cell as the cause. Last August, when their four-year-old daughter Bharti complained of severe stomach pain, she was rushed to a local hospital. Jaal says doctors performed tests and found that she had sickle cell disease. Distraught, he describes how his daughter remained on life support in an Intensive Care Unit for 12 hours. ""Our daughter Bharti died in front of our eyes and we could not do anything,"" he says. After performing Bharti's last rites, Jaal had taken his remaining two children to the Sickle Cell Institute, where both tested positive. ""Now we are worried for our two remaining kids,"" he says looking towards the sky. An American physician named James Herrick first discovered sickle-shaped red blood cells in a medical student from Grenada in 1910. In 1949, an American Nobel Prize laureate Linus Pauling, and his colleagues proved that sickle cell was a molecular-genetic disease. In India, the disease was first detected in 1952 among indigenous tribes in the Nilgiri Hills of south India. That same year, some migrant labourers working in the tea gardens of Assam state were also diagnosed with the hereditary disease. Of Chhattisgarh's 7.5 million strong indigenous tribal population, at least 20 percent, particularly among the Gond tribe, are affected by sickle cell disease, according to Dr Patra. With the right treatment - antibiotics and pain relief medication - Dr Patra says people with the disease can live into middle or late adulthood. But detecting it on time can be difficult as there isn't widespread screening of the state's 27 million inhabitants. And a lack of awareness about the inherited genetic disorder is a serious obstacle to eradicating it. IN PICTURES: A passage of hope on India's hospital train For somebody to have sickle cell disease both of their parents must be carriers of the sickle cell trait. It is for this reason that Dr Patra suggests that instead of checking whether people's astrological stars match before marriage, as is common in India, they should check that they aren't both carriers.- ""If both the bride and groom are SCD [sickle cell disease] affected then they should not marry,"" he says. ""If only one of them is affected then, there could be safe marriage."" ""The marriage between two carriers has a 50 percent chance that their child will have sickle cell trait [and a] 25 percent chance [that they will have] sickle cell disease ...."" As government health facilities are few and far between in the state, many people resort to practitioners of black magic for help with the disease. - But while acknowledging that there is a lack of awareness about the disease, the state's health minister, Ajay Chandrakar, stresses that the government is working to eradicate it. ""Lots of work is being done in the health sector. We have ordered the officials to identify the sickle cell patients through [an] intense campaign. The results would be apparent very soon,"" he says. But Alok Shukla, a social worker who focuses on health issues in the state, is sceptical.- ""Health has never been a priority of the government,"" he says. ""The condition of [the] health sector can be assessed by a simple example: In [the] tribal dominated district of Kondagaon, there ... [are] 22 health centres but surprisingly none of them has a doctor."" Source:-Al Jazeera News", -3670,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/misrata-living-war-periphery-170319082658256.html,What is it like living in Libya these days? Maimuna Aghliw,"Maimuna Aghliw tells of normal day in the Libyan city of Misrata, peppered with hints of a war nearby. By","Libyan activist, Maimuna Aghliw, who has been living in Misrata since 2009, reflects on life there during wartime. Aghliw, 26,-spent some time working at an NGO, focusing on psychosocial support, visiting different elementary and secondary schools. She also spent time teaching and tutoring children of various ages. Here, she talks about her experience as a teacher in war-torn Libya. Misrata, Libya -- I am often asked what it's like living in Libya. I mean, people are curious about a country where all that happens is kidnappings and killings, seasoned with everyday chaos - at least that's what the media says. My mornings are really no surprise, I hit snooze on my phone twice, three times, before I can drag myself out of bed and go to my window, where I throw up the blinds and take a second to adjust to the glorious blue sky and bright sunshine. This is my favourite thing about living in Libya, the weather. Predictably gorgeous, always. I arrive at work in that quiet lull before the day gets busy, so I take my time setting up the classroom, arranging the chairs, putting out pencils, erasers, and markers for me. I turn to the board to write the date, putting smileys into the O's and turn to welcome the (mostly) smiling faces streaming in as my herd of kids arrive for school. We take some time this morning to talk about what the children did over the weekend, and they trip over themselves to tell tales of visiting grandparents, playing with cousins or fun outings with their parents to the mall. Then it's the turn of an eight-year-old little girl, a petite animated child. Her hazel eyes beam as she tucks her shoulder length hair behind her ears. She raises her hand, politely but firmly, she wants to talk.- She begins talking animatedly about her weekend. She had been at her uncle's house because one of his sons had died on the-frontlines of the war-and there had been a wake. Her little face continued calmly, as she told us that her cousin had been critically injured when a qafeeda-(mortar) fell near him, and that he had died a glorious shaheed-(martyr). The children in class chimed in, telling her that she meant to say-qadeefa, not qafeeda, and that the proper term for her cousin was shaheed not sasheed.-They knew those words well, like all-kids-who have suffered through-war-and spent it listening to the grown-ups around them, hoping for reassurances that everything would be OK. Another little girl shared that her uncle was also on the frontline; she smiles proudly, but tells us that he is her favourite uncle and that she misses him, a lot. That's that, the conversation ends quickly, and the pupils go back to their day, as must I, because no matter how much I would love to tell them that there is a whole world out there where war is not a reality for children like them,-I can't. I can't because this is all they have ever known; this is their normal. Driving home, I was thinking fondly of dinner when I turned on the radio and rolled down the window. There was no music to be had, only the Quranic verses that I knew preceded the announcement of the names of the dead for today. A solemn voice reads out the names of young men killed on the frontline, their ages, and where the funerals will be held. When he has finished I let out a slightly guilty sigh of relief, I didn't recognise any of the names, but each one is a devastating loss for a family. Looking out my window, I see everyday life continuing, with its busy shops, heavy traffic and my plans to visit a friend that afternoon. Just as I was wrapping my hijab on to go out, home-baked brownies ready by the door, my mobile started vibrating. It was my friend. I answered in a hurry, ""I'm just putting my hijab on, will be out the door in a minute ""? """"Maimuna"," at this point I was hoping for the best of the worst. """"My cousin has been injured and we're all going to my uncle's house now."""" She didn't need to say any more" -3671,2017/3/29,http://www.aljazeera.com/indepth/features/2017/03/arab-summit-arabs-lost-confidence-leaders-170328114437100.html,Arab Summit: 'Arabs lost confidence in their leaders' Zena Tahhan,"The summit will do little to end the conflicts in the region, analysts say. By","Arab leaders are convening near the Jordanian Dead Sea for the 28th annual summit of the Arab League, as the region faces distressing turmoil and political challenges. Sixteen heads of states out of the 22-member confederation of Arab countries are expected to attend Wednesday's meeting, including Saudi Arabia's King Salman, president of the Palestinian Authority-Mahmoud Abbas, and Egyptian President Abdel Fattah el-Sisi.- The United Nations Secretary-General, Antonio Guterres, and Staffan de Mistura, the UN Special Envoy for Syria will also be present, along with US and Russian envoys. Jordan's King Abdullah II will be leading the summit. Highest on the agenda is the- Israeli-Palestinian conflict, which has been left on the back burner as repeated attempts to revive the remnants of a peace process have failed and the situation on the ground becomes ever more difficult to resolve. Ahmed Aboul Gheit, Secretary-General of the Arab League, said the Palestinian Authority may introduce a new peace initiative in the summit, but Palestinian officials were quick to deny such claims.- The Arab League, according to analysts, is expected to revive the 15-year-old Arab Peace Initiative, endorsed in the Lebanese capital Beirut in 2002. The initiative calls for full Israeli withdrawal from the Palestinian territories occupied in 1967 of East Jerusalem, the Gaza Strip, West Bank and the Golan Heights, in return for ""normal relations"" between Israel and the Arab states.- The initiative also calls for a ""just solution"" to the Palestinian refugee problem, in accordance with UN resolution 194, which endorses giving Palestinian refugees the option to return to their homes or to accept compensation instead. The crises [in the Arab world] have turned into international conflicts, and the Arab League is incapable of making any decisions. Hamzeh al-Mustafa, researcher, Arab Center for Research and Policy Studies But with a new US administration under President Donald Trump, analysts say-US efforts to bring key Arab countries such as Egypt and Saudi Arabia, into a new framework for peace could be ""dangerous"" for the Palestinian cause.- Trump has been vague on his plans for any peace deal between Israel and Palestine, but rocked the boat when he dropped the two-state solution as the only solution for a future peace, considered a major shift in US policy. Next month, Trump is expected to meet with Sisi and Abbas in Washington, DC.- ""In light of what some Arab leaders described as a joint vision with [Israeli Prime Minister] Benjamin Netanyahu for a regional approach to tackle the Palestinian-Israeli conflict, I fear that a new modality for the Arab Peace Initiative might be put on the table (explicitly or implicitly),"" Alaa Tartir, programme director at Al Shabaka, the Palestinian Policy Network, told Al Jazeera. ""This new modality will be dangerous as it would aim for an explicit normalisation with Israel before it ends its occupation, return to futile and absurd negotiations, and give up some fundamental Palestinian rights, such as the right of return,"" said Tartir.- In meetings a day prior to the summit, US envoy to the Middle East, Jason Greenblatt,-said-on Twitter he had a ""constructive discussion"" with Aboul Gheit, on paths forward for an Israeli-Palestinian peace and ""comprehensive peace in the region"".- Encouraged by a friendly Trump administration,-Netanyahu-has acted with-impunity, sanctioning-more settlement homes in the occupied West Bank and East Jerusalem, stirring fears of what a potential peace deal could look like.- The Palestinian leadership, said Tartir, ""must challenge and reject"" any ""further compromised parameter ... to send a clear message to the Trump administration before Abbas goes to [Washington] DC"" in April.- READ MORE:-How Palestinians should respond to Trump's 'one state' In addition to the Palestinian question, the agenda for the summit pledges to address the conflicts in Syria,- Yemen, as well as Libya,-Iraq,-and Iran's role in the region. ""The Arab summit is important because it will tackle all the crises in the Arab region. Starting with the Palestinian cause, and the crises in Syria, Libya and Yemen. As well as the issue of counterterrorism, and other political, economic, social issues that concern the Arab states,"" said Hossam Zaki, Arab League assistant secretary-general, said. ""This summit will tackle these crises with the logic of: How can we work together to end these crises? It is true that the journey seems long. It is true that the journey seems full of obstacles. It is true that the crises are grave and difficult and solving them seems impossible to some. However, I think we need to start somewhere,"" added Zaki.- But beyond the veneer of optimistic language, experts say the summit would, at most, conclude with a vague joint statement and ""strong language"", but no determination to move forward. ""The Arab summits have become familiar routine, dominated by divisions and tokenism. Arab people have long lost confidence in their leaders carving up solutions or meeting their expectations, this summit won't be an exception,"" Salah Nasrawi, a Cairo-based veteran journalist with extensive experience covering the Arab summits, told Al Jazeera.- ""We might hear the same narrative but the Arab countries remain sharply divided on almost all key issues on the summit's agenda and they can hardly agree on the controversial issues,"" added Nasrawi.- Doha-based expert on Iranian affairs and a professor of contemporary Arab politics, Mahjoob Zweiri, said he ""expects there will be strong criticism of Iran, of its intervention and activities in the region, but even then Arab countries are not unified in their perception of Iran.""- ""The final statement will be vague as usual. They will keep things hanging and show no determination, because the current [Arab] political order is not capable of providing solutions - everyone is looking out for their own interest, which is to survive,"" Zweiri told Al Jazeera.- OPINION: Who made the Arab Spring into an Arab crisis? The region has been particularly unstable since the string of uprisings in 2011, dubbed the ""Arab Spring"", which attempted to topple decades-long dictatorships. The subsequent- rise -of the Islamic State of Iraq and the Levant ( ISIL ) armed group, which seized large swathes of territory in both Syria and Iraq in 2014, wreaked havoc on the region.- The war in Syria , which started in March 2011 as peaceful protests against President Bashar al-Assad , has since turned into a proxy war, with the direct and indirect intervention of several regional and global powers. The country has entered its seventh year of war, with no solution in sight.- Similarly, the security situation in Iraq has been crumbling for more than a decade, following the toppling of Saddam Hussein in 2003 in the US-led invasion and subsequent occupation of the country. Iraq has since faced systematic violence and is now engaged in a war against ISIL (also known as ISIS). Libya has also been suffering from five years of armed conflict and political deadlock; the country has ended up with two governments, a lack of security, and is nearing economic collapse. Not to mention the war in Yemen,-which has pushed the country to the brink of famine. In these conflicts, millions have been killed, forced to flee their homes, and can only dream of a brighter future.- With the intervention of major international players in the conflicts of the Arab world, analysts say Arab leaders do not have the power to make decisions, rendering such conferences futile. ""The source for solutions is not the Arab region - they are linked with international players. So, unless those players are involved, there will be no solutions,"" said Zweiri. Hamzeh al-Mustafa, a Doha-based researcher at the Arab Center for Research and Policy Studies,-agrees. ""There is no Arab decision-making role for the crises in Syria and Libya. In Syria, the UN is the one supervising the political process, under US and Russian sponsorship,"" said Mustafa.- ""In Libya, the Arab League has no active role in the current initiatives - it is the Italians, the US, the French. In Yemen, the Arab League has not produced any initiatives as well - the issue is with the UN and the Gulf Cooperation Council (GCC),"" he told Al Jazeera.- ""The crises [in the Arab world] have turned into international conflicts, and the Arab League is incapable of making any decisions.""- Source:-Al Jazeera News", -3672,2017/3/29,http://www.aljazeera.com/news/2017/03/day-mexican-prison-riot-leaves-dead-170329060349245.html,Second day of Mexican prison riot leaves two dead,Prisoners set mattresses ablaze in protest against new X-ray machines being used on women entering the jail.,"Mattresses were set ablaze, a pharmacy robbed and prisoners poisoned during two days of riots at a Mexican prison in Cadereyta that left two dead and at least 13 wounded. The demonstrations in the northern state of Nuevo Leon began on Monday due to the use of new X-ray equipment at the entrance to the prison. Guards detained two women who tried to enter the jail with drugs hidden on them, according to state security spokesman Aldo Fasci Zuazua. READ MORE: Over 250 skulls found in Veracruz mass graves After the riot, Fasci said that pregnant women would not have to go through the X-ray machines. About 40 inmates began protesting by blocking the corridors with blazing mattresses to prevent the passage of guards, Fasci said. Prisoners also said they were being deprived of food and water. It was the second fatal security breach in a week for Mexico's troubled prison system. On Friday, three inmates died in a prison riot in the neighbouring state of Tamaulipas after a jailbreak. In February 2016, 49 people were killed in a massive gang fight in the Topo Chico prison in Monterrey. The state of Nuevo Leon and its surrounding territories have long been battlegrounds in Mexico's drug wars. The prisons nearby house many members of rival drug cartels that fight for control of local drug markets and smuggling routes to the United States. Source:-Al Jazeera and news agencies", -3673,2017/3/29,http://www.rte.ie/news/brexit/2017/0329/863383-brexit-theresa-may-eu/,"'No turning back', Theresa May says as Brexit triggered",,"British Prime Minister Theresa May has kicked off the two-year process of Britain's withdrawal from the European Union in what she said was ""an historic moment from which there can be no turning back"". Minutes after a letter informing the European Council of the UK's intention to leave, Mrs May told the House of Commons that the government was acting on ""the democratic will of the British people"" expressed in last year's referendum vote for Brexit. Theresa May: 'The Article 50 process is now under way ... this is an historic moment, from which there can be no turning back.' pic.twitter.com/D6sBKYdycc ""?RT? News (@rtenews) March 29, 2017 The declaration under Article 50 of the EU treaties,-signed by Mrs May yesterday, was personally hand-delivered to European Commission President Donald Tusk in Brussels by the UK's permanent representative to the EU,-Tim Barrow. Describing EU withdrawal as one of the ""great turning points in our national story"", Mrs May told MPs: ""Today, the government acts on the democratic will of the British people and it acts too on the clear and convincing position of this House."" It comes nine months after the UK voted for Brexit and 44 years after it joined the EU. After nine months the UK has delivered. #Brexit ""?Donald Tusk (@eucopresident) March 29, 2017 It marks the start of complex and contentious negotiations that put the UK on course to break its ties with the bloc-by the end of March 2019. Mrs May urged-the country to ""come together"" as she looks to-heal the deep wounds caused by a referendum campaign that left the UK mired in division. The prime minister's top team gathered around the Cabinet table at No 10 this morning as she updated-them on the content of the letter formally invoking Article 50. Read: The letter in full Govt warns of implications for Ireland What's expected to happen? Is there any way back in for the UK? Key sticking points Key questions on first steps Live: Today's political updates Sir Tim Barrow heading to the European Council, presumably with the letter in his inside pocket. (No, he didn't drop into the chemist) pic.twitter.com/4T1GROKphO ""?Tony Connelly (@tconnellyRTE) March 29, 2017 Mrs May-delivered her-statement on the triggering of Article 50 to the House of Commons this afternoon: ""This is an historic moment from which there can be no turning back. Britain is leaving the European Union."" ""We are going to make our own decisions and our own laws, we are going to take control of the things that matter most to us, and we are going to take this opportunity to build a stronger, fairer Britain - a country that our children and grandchildren are proud to call home. ""That is our ambition and our opportunity,"" she said. Mrs May went on to say that ""we will strengthen the union of the four nations that comprise our United Kingdom"" adding that she wanted to maintain the common travel area with Ireland. Theresa May: 'We want to maintain the common travel area with the Republic of Ireland, there should be no return to the borders of the past' pic.twitter.com/LlCGfiPYRO ""?RT? News (@rtenews) March 29, 2017 Mrs May said the government will be spending the next two years putting into action its plan to make Britain a fairer and more meritocratic society. She added: ""For the unity of the UK, the most important element in relation to the negotiations with Europe is to get the best possible deal in terms of cooperation on security, but also in terms of the free trade arrangements which will bring prosperity to our economy."" The European Council president is to draw up draft negotiating guidelines for the talks process to begin. Member states, including Ireland, will have four weeks to shape those guidelines, before an extraordinary summit meeting at the end of April. The negotiations proper will begin probably in late May, early June. Noonan holds telephone call with Hammond Following the triggering of Article 50, Minister for Finance Michael Noonan held a phone call with-Chancellor of the Exchequer-Philip Hammond. Mr Noonan said during the ""constructive discussion"" he ""reminded Chancellor Hammond that Ireland remains fully committed to our Membership of the EU and we will be negotiating as part of the EU 27 in the negotiations ahead"". He added he ""welcomed Prime Minister May's letter and statement which together highlighted the unique and historic relationship between UK and Ireland and made clear the priorities including the maintenance of the Common Travel Areas and avoiding a return to a hard border with Northern Ireland""? Call for second referendum on Brexit deal Leader of the Liberal Democrats Tim Farron-called for a second referendum on the final Brexit deal. He said: ""Today the Prime Minister is not enacting the will of the people, she is at best interpreting that will, choosing a hard Brexit outside the single market that was never on the ballot paper. ""So this day, of all days, the Liberal Democrats will not roll over as the official opposition have done. ""Our children and our grandchildren will judge all of us through our actions during these times. I am determined that I will look my children in the eye and be able to say that I did everything to prevent this calamity that the Prime Minister has today chosen. He said the ""unknown deal"" will shape Britain's future for generations, adding: ""Surely the Prime Minister agrees with me that the people should have the final say?"" Agreement over Brexit talks Key EU figures agreed to enter into Brexit talks in a ""positive spirit"" during a series of telephone calls with Mrs May yesterday evening. German Chancellor Angela Merkel, Mr Tusk and European Commission President Jean-Claude Juncker said the UK would remain a ""close and committed ally"". Within 48 hours, the European Commission is expected to issue ""draft negotiation guidelines"", which will be sent to the 27 remaining states for consultation. Their leaders will meet on 29 April-at an extraordinary European Council summit to agree a mandate for chief negotiator Michel Barnier and clear the way for talks to begin in earnest in May. The key point of contention as soon as Article 50 is triggered is the order in which different aspects of Brexit are approached. Effectively, there are two issues to be settled - the terms of Britain's withdrawal from the EU and arrangements for future trade relations. On top of that is a possible third negotiation on a ""transitional arrangement"" covering the period between the moment of departure and new trade rules taking effect. A white paper will tomorrow be produced on the Great Repeal Bill, the legislation that will turn four decades of EU regulations into domestic laws.", -3674,2017/3/29,http://www.rte.ie/news/politics/2017/0329/863502-water-charges/,Sources say water issue practically resolved,,"Senior sources have said that the water issue is now practically resolved. It has emerged that the Oireachtas Committee on the Future Funding of Domestic Water Services is looking at defining wastage as being 1.7 times the average usage. This is 70% above average. It is understood that 8% of householders, representing 70,000-71,000 householders, will be affected. Figures show that 8% of householders use one third of the water. Householders will get a notice in the post if they are above the threshold. They will have six months to correct the wastage or fix a leak and there will be incentives to fix the leak. If they do not address or correct the matter after six months they will get a bill for a levy. There will also be medical exemptions. In terms of metering, Irish Water will use existing meters to measure wastage and new-builds will be required to have meters. Bulk metering will be used in apartment complexes. There have also been meetings between Fianna F��il and Fine Gael on the matter this afternoon.", -3675,2017/3/29,http://www.rte.ie/news/brexit/2017/0329/863433-kenny-brexit-trigger/,Kenny says letter reflects his discussions with May,,"The Taoiseach has said the discussions he has had with British Prime Minister Theresa May about Irish priorities are reflected fully in her letter to Donald Tusk triggering Article 50. Speaking to RT? News in Malta where he is attending the EPP conference, Enda Kenny said his focus now was on getting the European Council to recognise those priorities in the negotiations to come, which he said would be conducted in a spirit of optimism and positivity. Mr Kenny said Ireland could negotiate from a position of strength, saying we might be only one of 27 but we were the only country which would have a land border with the UK and the only country with a peace process which the EU was contributing to. On Brexit, Kenny says Ireland is an important one of 27 in the EU and the only country which will have a land border with the UK pic.twitter.com/bmI5WPlQMh ""?RT? News (@rtenews) March 29, 2017 He-highlighted that economic studies had also shown Ireland would be the country most affected by Brexit. Asked about what kind of border we would see post Brexit, the Taoiseach said the solution would not be driven by technology but represented a political challenge requiring creativity - the best minds in Ireland and the UK would have to deal with the issue in an imaginative way. Mr Kenny said the negotiations would take longer than two years and a transitional arrangement would be needed before trade negotiations could conclude. Earlier, the Government warned that the UK's exit from the European Union will have ""significant economic, political and social implications"" for Ireland. Mrs May's letter to European Council President Donald Tusk contains a negotiating principle that the UK's EU withdrawal ""does not harm the Republic of Ireland"". ""We-must pay attention to the UK's unique relationship with the Republic of Ireland and the importance of the peace process in Northern Ireland. ""The Republic of Ireland is the only EU member state with a land border with the United Kingdom. ""We want to avoid a return to a hard border between our two countries, to be able to maintain the Common Travel Area between us, and to make sure that the UK's withdrawal from the EU does not harm the Republic of Ireland."" In a statement, the Irish Government said it will publish ""a consolidated paper"" providing more detail about its ""priorities and our approach to the negotiations ahead"" before the end of April. Minister for Foreign Affairs Charlie Flanagan said he was encouraged by the reference to Ireland and the peace process in Mrs May's letter but his reaction was one of sadness. Speaking on RT?'s News at One, he said the Government wants to ensure the closest possible trading relationship with the UK. He said the key priority for the Government is to continue the free flow of trade on the island of Ireland and to ensure that the invisible border continues to exist. In an interview with the BBC this morning, British Chancellor of the Exchequer Philip Hammond-said he envisaged a positive outcome in the Brexit talks to the UK's trade relationships with EU countries. Mr Hammond said Britain accepted that after Brexit it could no longer be a member of the European single market or a full member of the customs union, and that would have consequences. ""We understand that we can't cherry pick. We can't have our cake and eat it,"" he said. However, he said a customs arrangement could be negotiated that would make borders as frictionless as possible. He said this was ""vitally important"" for Northern Ireland. ""Nobody on either side of this discussion wants to see us having to return to the hard border of the old days,"" he said. Sinn F��in leader-Gerry Adam-has said the onus is on the Taoiseach to argue against a hard border during the negotiations. He said the Good Friday Agreement is under serious threat and Mrs May has paid no attention to the devolved administrations. Minister of State for European Affairs Dara Murphy-has said it is in both sides interests that the relationship stays as strong as possible. He said the Government has embarked on a diplomatic process across Europe and he-insisted that Ireland is at the negotiating table.", -3676,2017/3/29,http://www.rte.ie/news/ireland/2017/0329/863402-transport-committee-ross/,Ross defends handling of bus dispute as workers protest,,"Minister for Transport Shane Ross has defended his handling of the Bus ?ireann dispute at a special meeting of an Oireachtas Transport Committee. Speaking on the sixth day of the strike in a dispute over cutbacks,-he told committee members that only unions and management at the company could resolve the dispute. Mr Ross insisted that the dispute could only be resolved by unions and management addressing the internal issues at the company, and not by a ministerial magic wand. Several hundred Bus ?ireann workers, meanwhile, took part in a demonstration outside Leinster House to coincide with the minister's committee appearance. Dermot O'Leary of the National Rail and Bus Union told the crowd we are heading for the ""mother of all strikes"" and-said politicians better be prepared. SIPTU's-Willie Noone said the dispute is only starting and said it was one that the union was here to win. Willie noone,@SIPTU says Shane Ross is 'talking manure', & says the minister hates trade unions & everything they stand for pic.twitter.com/wusMd4BUaD ""?Conor Hunt (@conorfhunt) March 29, 2017 Both Dublin Bus and Iarnr��d ?ireann confirmed that there had-been no disruption to their services as the protest got under way. There had been fears that workers from the companies-might leave work to join the protest, however, as of early afternoon-there was no disruption to rail or Dublin Bus services. Bus ?ireann workers have taken indefinite strike action due to a dispute over management's decision to implement a survival plan for the State-owned company without union agreement. Around 110,000 Bus ?ireann customers are affected by the strike. The board of Bus ?ireann met earlier this week to consider management proposals for a survival plan including up to 300 redundancies. The strike is estimated to be costing the company around �100,000 a day, though unions have disputed that figure. Fianna F��il leader Miche��l Martin has said no attempt is being made by the Government to solve the dispute in Bus ?ireann. He told the D��il the dispute would have been resolved by now if it affected the capital. He said there was inertia and paralysis in the Minister for Transport's reaction to the dispute. ""I would put it to you, if this was Dublin Bus, if it was affecting the capital it would have been resolved much earlier,""-he said. He said one senses that there is a hidden agenda to undermine the very concept of a public transport company. Minister for Public Expenditure and Reform Paschal Donohoe said the Workplace Relations Commission had dealt with 1,400 cases involving the CI?-group, and had resolved 85% of these. ""The Government is standing behind the WRC and the Labour Court as the only forum in relation to that being done again."" He said that he and the Government-are ""absolutely committed to public transport, and the viability of Bus ?ireann;-this is why �163m was made available to support bus and rail in this State"". ""It is exactly because the WRC have played a leading role in dealing with IR [industrial relations]-difficulties in the CI?-group alone - that is the only forum to deal with the current difficulties"" Mr Donohoe said. Speaking at the Oireachtas Committee, Mr Ross-told TDs and senators that he had already intervened in areas where he could, including giving more money to Public Service Obligation services and examining reform of the licensing system. He said an examination of subsidies to companies operating the free travel scheme, which have been frozen since 2010, was at an advanced stage and the Government was committed to giving more money. All transport companies would benefit from this, he said, but it would not have a direct bearing on the current dispute. However, many committee members urged the minister to intervene, and criticised the delay in addressing the company's financial difficulties. Fianna F��il TD Robert Troy told him Bus ?ireann was losing millions since he began in September. Mr Ross responded that the last audited reports showed a loss of �1m, but he did not know the exact figures for 2016, which were not yet audited.- He told Mr Troy there was absolutely no agenda on his part or his department to push down wages. Mr Troy asked about a recovery plan received by the department last September. Mr Ross said the Grant Thornton report was not a plan, but an examination of the options open to the company.- Separately a business plan was under way for the company, but he said this could not be finalised due to the IR issues. He said he was being briefed on the plan tomorrow. - He also asked about bringing in a facilitator, Mr Ross said it would be wrong to undermine the WRC and the Labour Court. Mr Troy asked how much longer could they stave off the company becoming insolvent.-Mr Ross said he had no intention of speculating on insolvency, that would be utterly irresponsible, he said. Solidarity-PBP TD Mick Barry asked about plans to introduce a panel of temporary and part-time drivers, on zero-hour type contracts. Mr Ross said he was not the employer. He said he was told by the company that they have no proposals for zero-hour contracts. Mr Ross described as ""rubbish""' that he had a privatisation agenda.-He said his sole objective was to find a resolution to the dispute. Sinn F��in transport spokesperson Imelda Munster said the Bus ?ireann workers were not looking for a pay rise.-She asked Mr Ross if he would accept a 30% pay cut. Social Democrats TD Catherine Murphy said the dispute would not be resolved without Government intervention. Mr Ross said he could not give money to Expressway, it was as simple as that. He rejected Ms Murphy's assertion the company was being pushed to insolvency, but he acknowledged it was in danger of insolvency.", -3677,2017/3/29,http://www.rte.ie/news/education/2017/0329/863602-education-asti/,Minister invited to ASTI's annual meeting,,"The Minister for Education has been invited to address members of the Association of Secondary Teachers Ireland at the union's annual convention at Easter, for the first time in three years. However, Richard Bruton faces logistical difficulties in doing so, because of the geographical spread of this year's three teachers'-union conferences. Last year a government had yet to be formed by the time of the annual teacher conferences and so no minister was in place to attend any of them. In 2015 the ASTI declined to invite the then minister for education, Jan O'Sullivan. The union was at the time in dispute with the then government over Junior Cycle reform. The previous year saw Ms O'Sullivan's predecessor, Ruair��-Quinn, heckled by ASTI delegates as he attempted to address them. The ASTI continues to be in dispute with Government over the Junior Cycle, and over pay and conditions for teachers, and tensions between the union leadership and the Department of Education have been expressed publicly. The union wrote to Mr Bruton a number of weeks ago inviting him to address delegates on the first day of its convention. The minister traditionally addresses the Irish National Teachers'-Organisation on the morning of the Tuesday following Easter. He then addresses the ASTI at around 4.30pm the same day. The department is concerned about the logistics of addressing both unions this year. The INTO's annual congress takes place in Belfast, while the ASTI will meet 470km away in Killarney, Co Kerry.", -3678,2017/3/29,http://www.rte.ie/news/2017/0329/863583-commissioner-justice/,Commissioner fears data falsification not confined to traffic,,"The Garda Commissioner is due to tell the Oireachtas Joint Committee on Justice and Equality her real fear-is that the falsification of data is not confined to traffic. N��ir��n O'Sullivan's-speech, which she is due to deliver when she appears before the committee at 9am tomorrow, was circulated to members of the committee this afternoon. Her appearance before the committee comes as the force comes under heavy-criticism for serious irregularities in-road traffic policing. Last week it emerged that-more than-14,500 people who were prosecuted for road traffic offences are to have their-convictions quashed-as a result of a controversy over fixed charge notices and the exaggeration of garda breathalyser test figures. It was revealed that from 2011 to 2016-the number of drink-driving tests garda�� claimed to have carried out was hugely exaggerated, by over 937,000. A copy of Ms O'Sullivan's speech, which has been seen by RT? News, states that some garda�� recorded numbers that were false.- It says that at worst-this was deception, at best-it was incompetence. Ms O'Sullivan-states in the speech that either way, it was individually and organisationally shameful. She adds that it will be seen to be shameful by the public and the thousands of garda�� around the country who operate every day to the highest ethical standards. Ms O'Sullivan also says the discovery raises serious questions of supervision and management. The commissioner adds that she will ensure the people responsible at all levels will be held to account. Separately, Ms O'Sullivan has also been called before the D��il's Public Accounts Committee to explain financial irregularities at An Garda S��och��na's training college at Templemore in Co Tipperary.-", -3679,2017/3/29,http://www.rte.ie/news/2017/0329/863420-politics-brexit/,"Live Political updates - Brexit, garda controversy and more",,, -3680,2017/3/29,http://www.rte.ie/news/brexit/2017/0329/863595-brexit-border/,Stormont protest over Brexit warns against hard border,,"Anti-Brexit campaigners have marched on Stormont in to voice concerns about the future of free border movement. The demonstration included the erection of mock customs checkpoints to highlight fears about a hardening of the Irish border when the UK leaves the EU. The 300-strong protest came amid a political crisis at Stormont that has left the region without a devolved government as the Brexit process formally commenced. They chanted ""no borders, no barriers, no Brexit"" as they made their way up the landmark main avenue to the steps of Parliament Buildings. While Sinn F��in and the SDLP joined the colourful picket, elsewhere unionists welcomed the triggering of Article 50. The majority of voters in Northern Ireland backed Remain, by 56% to 44%. The Stormont march was organised by campaign group Border Communities Against Brexit. Spokesman Declan Fearon told the crowds British Prime Minister Theresa May was not interested in their concerns. ""It seems she simply doesn't care, maybe doesn't know what the full implications are for the people who live along the border,"" he claimed. ""Our population here is less than 3% of the UK so it seems we don't matter when the bigger decisions are being made, especially those concerning Brexit."" He added: ""It is not acceptable that we are being squeezed between two enormous political forces in the British government and the European Union with large macro economies while we are located on the edge of Europe faced with the prospect of our borders being closed and having to pay tariffs on our goods with inevitable long delays on our border crossings."" Mr Fearon said Brexit was ""bad news"" for people in Ireland whether they were unionist or nationalist. ""We must show to the British and Irish governments and indeed especially to the European Union that we are not going to stand by while our island and our economy is devastated and divided by Brexit,"" he said. Earlier, Sinn F��in said its campaign to secure special designated status for Northern Ireland post-Brexit was building momentum across Europe. The party's Stormont leader Michelle O'Neill, who attended the protest, dismissed the notion that such a concession would be unachievable in the forthcoming negotiations. ""Brexit would be a disaster for Ireland, socially, politically and economically,"" she said. ""It is unacceptable that Tories, who have no mandate in Ireland, can impose Brexit and a border against our will. ""The people of the north voted against Brexit in a democratic poll."" She added: ""Clearly we need special status - we are building momentum and that argument is resonating across Europe."" Mrs O'Neill said the Irish Government needed to ""step up"" and ensure special status was secured in the Brexit negotiations. DUP deputy leader Nigel Dodds struck a very different tone during Prime Minister's Questions in the House of Commons. ""The prime minister has rightly been emphasising her determination to deliver for all constituent parts of the United Kingdom on this historic day,"" he said. ""And whilst others are content to moan and whine we want to see that delivery happen and we are confident she will make that happen."" The Ulster Unionists campaigned for Remain but, since the result, the party has voiced support for the referendum result to be actioned. UUP MP Danny Kinahan told the Commons: ""May I congratulate the prime minister and the government on today triggering Article 50. ""I know this a momentous action for the whole of the United Kingdom. ""And while I, like herself, campaigned to stay in, we recognise that the people have spoken and we offer, the Ulster Unionist Party, full support in ensuring that negotiations deliver the best for the whole of the United Kingdom and particularly for Northern Ireland."" SDLP leader Colum Eastwood, who also participated in the demo, said triggering Article 50 when Northern Ireland had no power-sharing executive in place was an act of ""democratic savagery"". ""The British government's Brexit juggernaut is about to smash through the fragile complexities of Irish politics,"" he said.", -3681,2017/3/29,http://www.rte.ie/news/ireland/2017/0329/863350-garda-report-templemore/,Concern over financial irregularities at Garda College,,"Public Accounts Committee Chairman Se��n Fleming has said the Garda Commissioner will be called before it to explain what he described as ""a breakdown of all financial controls""-at the Garda College in Templemore.- An Garda S��och��na has published a-report detailing financial irregularities at the college over a number of years. For the last seven days, the force has been strongly criticised for serious irregularities in road traffic policing; today the focus is-on accounting practices at the Garda College. The Garda's Internal Audit Section examined financial transactions over a number of years at Templemore. Its report, forwarded to Minister for Justice Frances Fitzgerald and Garda Commissioner N��ir��n O'Sullivan, discovered financial irregularities and evidence that money was being spent on gifts and entertainment. It also identified a large number of bank accounts as part of a non-transparent system of accounting. One, a laundry account, was not being used for that purpose. Opposition politicians said again today that the blame for these and other matters lies with the commissioner. Ms O'Sullivan has already said these are legacy issues, and that while the accounting practices would not be acceptable by today's standards, there was no misappropriation of money or misuse of public funds. However, -Ms-Fitzgerald told the D��il last night that the report raises serious governance issues and will be referred to the Comptroller and Auditor General and the PAC. The audit report showed �124,903 was collected in rent for Dromad Farm, land that was bought for a tactical training centre. The Office of Public works is the legal owner of the land and therefore, the report says, was entitled to the money, some of which was spent on entertainment, presentations, sponsorship and donations to charity. The holding company for the land was operated with Garda College management as directors. The report says the legal standing of this is questionable. The audit found 50 bank accounts and said the number and complex switching of funds between them resulted in ""a non-transparent system of accounting"". Issues at the college bar, it said, ""related to poor management and inadequate stock control rather than suspicion of theft or fraud"". It found �117,068 in the St Raphael (Garda Credit Union) Bar Account which was all transferred to the restaurant account to keep it going when student numbers were low as recruitment stopped. It found 37% of the Laundry and Services account had nothing to do with laundry or services with money spent on: It also operated a staff loan facility of up to �100 but these were repaid promptly. The auditors said they could give no assurance that the financial controls at the Garda College are compliant with public financial procedures or the Garda Finance Code. They say the issues are serious and present considerable risk to the organisation and should be dealt with in an open and transparent manner. The report says garda staff who were directors of the land company need to correct the public record and make declarations under the Ethics in Public Office and Standards in Public Office legislation. Garda Headquarters said today it recognises the gravity of the issues raised and accepts that while a number of the report's recommendations have been progressed, the substantive ones need to be addressed in a more proactive way.", -3682,2017/3/29,http://www.rte.ie/news/2017/0329/863468-arrest-collins-murder/,Second man arrested in connection with Nicola Collins murder,,"A second-man has been arrested in connection with the murder of Nicola Collins in Cork on Monday. The 44-year-old was arrested in the Limerick city area this morning and-is being detained at Mayfield Garda Station in Cork. Ms Collins, 38, who was originally from Tralee, Co Kerry but living at-Togher in Cork, was found by emergency services in a flat on the Popham's Road, Farranree,-in the early hours of Monday. The mother-of-three had sustained head injuries and despite efforts to resuscitate her, was pronounced dead at the scene. A 42-year-old man arrested at the scene was released without charge from garda custody yesterday. A file is being prepared for the Director of Public Prosecutions.", -3683,2017/3/29,http://www.rte.ie/news/ireland/2017/0329/863529-young-woman-tusla-review/,Review published into 'Mary' foster care case,,"A two-year delay in removing a young woman with intellectual disabilities from the home of a foster carer suspected of child sexual abuse was partly due to a failure to adhere to procedures which could have escalated the case to Tusla's senior management, according to a review of the case. The investigation also found that the child and family agency Tusla's own initial review-of the safeguarding measures in place for the woman was not completed within an appropriate time frame. Today's report was jointly commissioned by Tusla and the HSE last year and has been submitted to the Department of Children and Youth Affairs and to the Department of Health. The woman it centres on is given the pseudonym 'Mary'. She has an intellectual disability which requires a high level of care and attention. The report says her foster care placement and those of other children in the home were considered to be successful. However-in January 2014,-by which time Mary was an adult, Tusla social workers received an-allegation that the foster father had sexually abused two young teenage girls within his extended family around 15 years previously. The allegation was judged to be credible. The review was tasked with finding out why it took two years to remove Mary from the home. Despite the father's denial of the allegations, Tusla decided to remove the foster children from the home but not Mary. The foster parents were removed from Tusla's fostering panel. The review states that because she was an adult, the powers available to Tusla to remove the other children were not available in her case as she was no longer in statutory care. The placement was reviewed by Tusla between 2015 and 2016, prompting the agency to reconsider it. Two years after the allegations were made, the HSE decided to remove her to a residential placement. The review partially attributes the blame for the delay to a failure to adhere to procedures which could have escalated the case to Tusla's senior management. It also found that Tusla's own initial review of the safeguarding measures in place for Mary was not completed within an appropriate time frame. EPIC, the advocacy group for young people leaving care, has said appallingly poor practices have been exposed in the HSE/Tusla review of the case of Mary. In a statement, the organisation's CEO, Terry Dignan, said the internal review's findings raise significant concerns about the way the two agencies interact and share information to ensure that children with disabilities in particular do not fall through gaps in services. He underlined the doubts raised by the review about whether the powers granted to each agency are complementary in respect to the care and protection of children and young adults. He said it also raises concerns about significant structural, operational and capacity issues that exist within both organisations. He continued: ""This and the 'Grace'-case, as just two examples, also raise the issue of the disparity that exists in terms of the care of children with disabilities as compared to children who do not have a disability. ""EPIC has seen a significant increase in the numbers of children with disabilities being referred to our Advocacy Service. Many of these children are in care but some are placed in residential services without any clarity about their legal status. ""Adults with disabilities currently have a right to an independent advocate, but children with disabilities do not. As corporate parent the State has a statutory and moral responsibility for the protection and welfare of all children in its care and children with a disability should not be less advantaged than those children who do not.- ""International studies indicate that children with a disability in the care system are at a higher risk of living in an inappropriate placement and are more susceptible to abuse and neglect compared to non-disabled children. ""Research carried out shows that there are a number of factors which increase the vulnerabilities of children or young people with disabilities to abuse including: lack of mobility, limited communication, the need for intimate care, lack of awareness, not being consulted, lack of communication between professionals and lack of joined up working."" Mr Dignan says EPIC hopes that lessons learned from the exercise will go some way towards ensuring that such practices are addressed as a matter of urgency in order to prevent a recurrence.", -3684,2017/3/29,http://www.rte.ie/news/europe/2017/0329/863524-brexit-reax/,Tusk says no need to pretend this is a happy day following triggering of Brexit,,"European Council President Donald Tusk has said there is no reason to pretend that this is a happy day, either in Brussels or London. He was speaking after receiving the letter from British Prime Minister Theresa May triggering Article 50 of the Lisbon Treaty, officially starting divorce proceedings from the EU. In the letter, Mrs May said Britain and the EU must ""work hard"" to avoid a failure in Brexit negotiations, calling it a ""momentous"" challenge. Mrs May also called for negotiations on the exit and on future trade ties to be worked out ""alongside"" each other, although the EU has said the new trading relationship should only be discussed after Brexit is agreed. Read the letter in full Donald Tusk: 'There is no reason to pretend that this is a happy day, either in Brussels or in London' pic.twitter.com/DT3Km9myKl ""?RT? News (@rtenews) March 29, 2017 Mr Tusk made a short statement to reporters after receiving Britain's letter, saying: ""We already miss you"". ""There is no reason to pretend this is a happy day,"" he added. Just before 10am-local time, Sir Tim-Barrow, Britain's permanent representative to the EU-left the British Embassy and drove the short distance to the European Council building. He was to attend a routine meeting of EU ambassadors before formally delivering a letter to Mr Tusk, the President of Council, signed by Mrs May last night in Downing Street. In a day replete with symbolism and significance, the actual triggering of Article 50 was a relatively mundane act. At around 12.25pm-Irish time, President Tusk tweeted a photograph of Sir Tim handing him the letter, which he had received five minutes earlier. The Article 50 letter. #Brexit pic.twitter.com/SO5R5BTvhw ""?Donald Tusk (@eucopresident) March 29, 2017 Within 24 hours President Tusk is expected to draw up draft negotiating guidelines for the talks process to begin. Today Mr Tusk promised to begin arrangements for an ""orderly withdrawal"" for the UK, but said there was nothing for either side to gain from the two years of negotiations to come, which would be no more than an effort at ""damage control"". Member states including Ireland will have four weeks to shape those guidelines before an extraordinary summit meeting at the end of April and the negotiations proper will begin probably in late May, early June.- - The divorce proceedings are supposed to be completed within two years, but Britain wants to have a parallel process during which the future trading relationship with the EU, and by extension, Ireland, is opened up. - There is real doubt over how far the EU will go to facilitate that. Much will depend on the tone and progress of the divorce negotiations, and capitals will be looking closely at Mrs May's letter for hints as to how Britain will approach those issues. Meanwhile, a spokesman for the German Foreign Ministry said the two-year period for Britain and the EU to settle the terms of their split-is very tight.- ""The time-frame is damn narrow,"" Martin Schaefer said at a regular government news conference. The remaining 27 EU states issued a statement saying the bloc-""act as one"" and defend its interests in Brexit negotiations. ""In these negotiations the Union will act as one and preserve its interests,"" they said, adding that they would prioritise arrangements for an ""orderly"" divorce.", -3685,2017/3/29,http://www.rte.ie/news/crime/2017/0329/863475-crime-cso-stats/,"Murders up 31% last year, CSO crime figures show",,"There was a substantial increase in the number of murders committed last year, according to the latest official crime figures. Murders were up 31% in 2016 when compared to the previous year, the-Central Statistics Office said in its Recorded Crime figures for 2016.- The number of sexual offences also increased, up 8%. Sexual assaults on children were-up over 20%. There were-also increases in drink-driving offences and crimes against children while burglary, robbery, kidnapping and related offences dropped in 2016. -- Violent crime in 2016 was dominated by the ongoing feud between the Hutch and Kinahan criminal gangs which has so far resulted in the death of ten people. Those killings are reflected in the crime figures which show a 31%-increase in murders last year - 38 compared to 29 in-2015. The statistics also show-over 260 cases of child cruelty or neglect, an increase of over 50%. There was a 6%-increase in drugs crime but gun and explosive offences were down over 10%, as was burglary, robbery and kidnapping offences. The CSO resumed publishing recorded crime statistics in June 2015, following a comprehensive review of the accuracy of crime data from An Garda S��och��na. The review was on foot of a-report by the Garda Inspectorate on crime investigation. The CSO recommends the findings of this report are taken into account when interpreting the above figures.", -3686,2017/3/29,http://www.rte.ie/news/regional/2017/0329/863473-rent-cap/,Rent cap list expanded to include Cobh and Maynooth,,"The electoral areas-of Cobh in Co Cork and Maynooth, Co Kildare, are to be added to the list of areas subject to a rent cap. This follows a quarterly report from the Residential Tenancies Board. They will join a list of 12 areas where rent increases will be limited to 4%. These are local electoral areas in Dublin and surrounding counties of Kildare, Wicklow and Meath as well as Cork and Galway. In Dublin apartment rents still rose by 11% last year as the cap does not apply to new builds or modified apartments. Rosalind Carroll of the RTB said that Dublin is now 8.3% above the previous peak in 2007 with an average rent of �1,422 a month. In the rest of the country rents are still below the peak, with an average of �159. Rents range from the lowest in Glenties, Co Donegal with �138 to Stillorgan in Dublin where the average is �1,062 a month. Areas are designated as Rent Pressure Zones when rents have risen by at least 7% in four of the previous six quarters and are above the national average. Drogheda and areas in Limerick were just below the national average rent to qualify for the cap, even though they had seen increases of greater than 7% over four quarters.- The average national rent was �186 per month. Overall, rents increased by 7.8% year on year in the last quarter of 2016.", -3687,2017/3/29,http://www.rte.ie/news/courts/2017/0329/863494-sean-fitzpatrick/,FitzPatrick trial now expected to conclude in May,,"The jury in the trial of former Anglo Irish Bank Chairman-Sean FitzPatrick will return to court on 24 April when they are expected to hear the last witnesses in the case. Today-was day 106 of the case, which has become the longest-running criminal trial in the history of the State. - Mr FitzPatrick has pleaded not guilty to misleading the bank's auditors and furnishing false information about multimillion euro loans to him and to people connected with him between 2002 and 2007. The jury has now been told the trial, which began at the end of September last year, is not likely to end until mid May. The court was previously told that a number of jurors had made holiday arrangements and would not be available from 3 April until 24 April. The 13 jurors heard very short evidence from one witness;-former Anglo company secretary-Ronan Murphy. They were told there would then be two witnesses after Easter and Judge John Francis-Aylmer told them it was anticipated ""the process thereafter"" would take three weeks. Judge Aylmer thanked the jurors for their patience. - He said he was sure it was a frustrating process for them, but he said there was light at the end of the tunnel.", -3688,2017/3/29,http://www.rte.ie/news/ulster/2017/0329/863535-donegal-fish/,Donegal fish processor fined for tampering with weighing scales,,"A director of a fish processing plant in Co Donegal has been ordered to pay �10,000 to two local charities to avoid a six month prison term after he was found guilty of knowingly altering a ""flow scale"" used to weight the fish they were processing. Tony Byrne, 49, of Hall Demesne, Mountcharles, as a representative of Norfish Ltd, in Killybegs, pleaded not guilty to knowingly altering a fish weighing ""flowscale"" on dates unknown between 1 May 2013 and 28 November 2013 and knowingly using the machine between the same dates.- The company were also charged with two charges of knowingly altering and knowingly using the scales between the same dates. Byrne was found guilty to knowingly altering the machine and not guilty of using it, after a three day trial at Donegal Circuit Court last week. The company was found guilty on both charges. Outlining the case against the accused, barrister for the State, Patricia McLaughlin BL, said the company had a licence to legally weigh fish landed in Killybegs at their factory under the- Metrology Act and not at the pier, which is the more common practice. She said under measures that are in place to help conserve fish stocks, a record of catches was required to be kept by skippers and processing factories, and that they were also subject to occasional spot checks from the authorities. Sea Fisheries Inspection officers' suspicions were aroused during a routine inspection when they saw a factory operator use a switch on the machine and when it was inspected the switch effectively stopped weighing the fish as they passed along the conveyor. Sea Fisheries Officer John Hederman showed a video showing that when the switch was activated it no longer recorded weights on the flow scale,- showing a fault message, and when deactivated- it began recording weights again. Another officer, John Healy, outlined that a member of Norfish staff- ""rushed passed him"" and flicked the switch on the wall and then ""ran"" out the door. Officer Rudi Amrein also gave evidence that he was present on the day and he observed fish moving across the flow scale without their weight being recorded when the switch was pressed. Legal metrologist Brian Faughnan from NSAI gave evidence that he issued a certificate of compliance for the machine in December 2012 and added it would not have been in compliance with the switch fitted. Byrne said he had the switch installed so they could stop the weighing machine while they were power washing the conveyor belt, as the excess water could add up to tonnes of extra weight. Defense barrister, Peter Nolan BL, said his client admitted fitting the switch but did so in the interest of efficiency and hygiene and added the company had no benefit from under declaring the amount of fish they weighed in the factory as this would lose them money. He said on the day of the inspection a worker at the plant had mistakenly forgotten to reactivate the switch after the belt was cleaned a short time before the inspection took place and there was no other evidence it was used at any other time. At the sentencing hearing Mr Nolan urged Judge Cormac Quinn to consider applying the Probation Act as a conviction against his client would seriously damage the business and could prevent him from travelling to markets in China and Japan where the majority of the fish he processed ended up. He said his client, a father of three, was the ""key"" person in the company who negotiated all the deals internationally and a conviction could jeopardize the future of the firm. He said there was no evidence of any financial gain by his client by not weighing the fish and the he had no previous convictions of any kind. Judge Cormac Quinn said the case was ""much too serious"" for the Probation Act as it was in the ""medium to upper level"" in seriousness and that he would impose a six month prison term but that he would suspend the term if a sum of �10,000 was paid equally to between the local branch of the RNLI and a local hospice. Norfish was fined �15,000 for knowingly altering the machine and �10,000 for using it knowing it was altered. Afterwards the Sea Fisheries Protection Agency says the verdict was an important outcome for the fishing industry.", -3689,2017/3/29,http://www.rte.ie/news/dublin/2017/0329/863581-homeless-families/,Increase in number of families living in hotel accommodation,,"The number of homeless families living in hotels in Dublin had-increased by nearly 5% at the end of last month. The number increased to 801 families, compared to 764 in January. Despite this, the Government is sticking to its target of ending hotel accommodation for homeless families. The number had appeared to have stabilised with reductions each month since last October when there were 783 families in hotel accommodation. But the latest figure-shows a total of 1,623 children in hotels with the 801 families. Overall, including all types of homeless accommodation, there were 1,055 families with 2,129 children. Minister for Housing Simon Coveney has said he still thinks the Government can achieve its target of moving all homeless families out of hotels by July. He said this will be achieved by a mixture of social housing, rental accommodation through Housing Assistance Payments, rapid build and family hubs. Mr Coveney-said that 25% of families in hotels have ""self accommodated"" by checking themselves into a hotel and booking a room which is then paid for by the local authority. The majority of families are placed in hotels. He said he had been told the recent increase could be due to difficulties in sharing accommodation with relatives after the Christmas period. The Dublin Region Homeless Executive said an analysis of data relating to newly-presenting families in December showed that 45% had received a notice to quit while 45% cited overcrowding or relationship breakdown with other reasons given in 10% of cases.", -3690,2017/3/29,http://www.rte.ie/news/world/2017/0329/863489-indonesian-man-found-dead-inside-giant-python/,Indonesian man found dead inside giant python,,"An Indonesian farmer has been discovered inside the belly of a giant python after the swollen snake was caught near where the man vanished while harvesting his crops, an official has said. The body of 25-year-old man was found when local people cut open the 23 foot-python after it was found bloated and slithering awkwardly in the village of Salubiro, on the eastern island of Sulawesi on Monday. ""We were immediately suspicious that the snake had swallowed Akbar [the missing man]-because around the site we found palm fruit, his harvesting tool and a boot,"" a senior village official said. Worried relatives launched a search for the man after he failed to return home from a trip to the family's plantation on Sunday. The official said the snake had swallowed the farmer whole, adding that it was the only such fatality recorded in the region. The breed of snake, which regularly tops 20 feet, is commonly found in Indonesia and the Philippines. While the serpents have been known to attack small animals, attempts to eat people are rare. In 2013, a security guard on the tourist island of Bali was killed by a python at a luxury beachfront hotel.", -3691,2017/3/29,http://www.rte.ie/news/politics/2017/0329/863540-mick-wallace-noirin-osullivan/,Wallace says Garda Commissioner N��ir��n O'Sullivan 'a law unto herself',,"Independents4Change TD Mick Wallace has accused Garda Commissioner N��ir��n O'Sullivan of being ""a law unto herself"" as she has set up a special unit ""staffed with personal friends and associates"" to deal with the Charleton Inquiry. The inquiry was established to investigate allegations that there was an organised campaign against whistleblowers at the highest levels of An Garda S��och��na. Speaking during Leaders' Questions this afternoon, Mr Wallace asked Minister for Public Expenditure and Reform Paschal Donohoe: ""Minister do you think it is appropriate for the former commissioner [Martin] Callinan to be in Phoenix Park Headquarters several days last week?"" ""Do you think that it's fair that the former commissioner and the present commissioner would have access to the full apparatus of An Garda S��och��na, pleasure that won't be afforded to [whistleblowers] Maurice McCabe and Dave Taylor?"" ""She has set up a serious team including Tony Howard, and the Minister for Justice has been written to about reservations about that individual. ""She has brought back Assistant Commissioner Mick O'Sullivan and former Chief Superintendent Brendan Mangan. ""Ask the commissioner did she consult with John Barrett of human resources before she set up her special unit to deal with the Charleton Inquiry? ""John Barrett wrote a letter to the head of legal affairs Ken Ruane and he was pointing out the corporate risks to An Garda S��och��na in setting up this unit, staffed with personal friends and associates. ""He suggested a firm of outside solicitors should be brought in to act as a conduit between An Garda S��och��na and the Charleton Inquiry but he was ignored. ""She is a law onto herself, Minister. And do you know why? Because you let her be so. She will remain a law onto herself and the Garda S��och��na is secondary to her interests and concerns. You allow it to happen. You will eventually get rid of her. And too much damage will be done."" Mr Donohoe said the Government had put in place bodies such as the Policing Authority and The Garda S��och��na Ombudsman Commission. He said the Government was now in consultation with GSOC to see if further powers are needed. Earlier Mr Wallace raised the cases of two other garda whistleblowers. He said: ""While the Government says it still has support for the garda commissioner, mayhem prevails across the country."" ""On the day the Minister for Justice was appointed Nick Kehoe started an investigation in the conspiracy to supply heroin on the part of a garda. ""Three years later he hasn't been arrested, nor has the woman involved that was dealing in the drugs"". ""A garda went to Taoiseach Enda Kenny back in 2012 and warned him about promoting a certain officer which unfortunately was promoted and has wreaked havoc since. ""That same garda was recently charged with careless driving after tipping into a tractor and trailer which had no tax or insurance. ""He won his case, and what have the garda�� done? they're gone looking for a judicial review to be taken which will cost over �10,000."" ""Minister this morning we met with two garda��. At 2.30 today at a car park on the Naas road a female garda will collect yet another set of discipline papers as part of an ongoing campaign by senior garda management. ""This is about an incident that happened 17 years ago, she's been condemned, judged and isolated.- ""She's been put through the ringer, she's spent over 60 days in court, and despite being found unanimously not guilty in a criminal trial she is still subject to an ongoing campaign of internal disciplinary inquiries, two inquiries ongoing, three ongoing."" ""Here is a decision signed by the commissioner and Michael Finn, who recommend that this garda retire or resign as an alternative to dismissal. ""These are the same people who have accepted over 14,000 errors last week, and this woman is to be fired out of the force for failing to put a crime that was reported on PULSE, and for failing to secure a statement. ""Minister there's mayhem, the force is in bits, and the only one that's supporting her is you, your Government."" In response Mr Donohoe said he was not going to comment on an individual set of circumstances as he had only become aware of them for the first time. He said the Government has been crystal clear, in recognising that the allegations that have been raised in relation to the scale of discrepancies on breath tests are of profound concern to the Government and to the public. He said that is why the Government had decided on a set of actions to respond to this issue.", -3692,2017/3/29,http://www.rte.ie/news/courts/2017/0329/863519-ian-bailey/,Bailey appeal hears witness warning should not have been given before jury,,"Lawyers for garda��-and the State have accepted that a warning by a judge to a key witness in Ian Bailey's civil action was a ""harmless error"" and it would have been preferable if it had not happened in front of the jury. However, Senior Counsel Paul O'Higgins told the Court of Appeal there was ample evidence before the jury about the credibility of witness Marie Farrell and the-jury would not have been prejudiced or influenced by the warning. Mr O'HIggins was making submissions on the second day of Mr Bailey's appeal against the jury's decision to reject his claim of a garda conspiracy to link him to the murder of Sophie Toscan du Plantier. He has submitted 17 grounds of appeal, many of which relate to rulings by the trial judge John Hedigan during the five-month long case. Yesterday his lawyers said key Ms Farrell was unfairly disparaged by the trial judge who gave her a warning in front of the jury about perjury. Responding today, Mr O'Higgins agreed with the appeal court judges that the warning could be characterised as a ""harmless error"". He also said it would have been preferable if the warning had not been given in front of the jury. He said the recording of Ms Farrell's interview with GSOC, in which she said she could not tell the difference between fact and fiction, was ""the most telling evidence about her credibility, more so than anything else"". He said the judge had also told the jury they alone were to determine her credibility. Mr Bailey sued An Garda S��och��na and the State for damages. He claimed he was wrongly arrested on suspicion of the murder of Ms Toscan du Plantier-at her holiday home in Schull in West Cork in 1996, and he claimed some garda��-had conspired to frame him for the killing. On day 62 of the action-the trial judge,-John Hedigan, struck out many of Mr Bailey's claims, ruling that they were not made within the time limit required by law. A claim that certain garda��-were involved in a conspiracy against him in relation to Ms Farrell, was allowed to go to the jury. But the jurors found against Mr Bailey after almost two hours of deliberation. Mr Bailey was ordered to pay the multi-million euro legal costs associated with the case. A stay has been put on the costs order pending the outcome of this appeal. Mr Bailey has always denied being involved in the murder of Ms Toscan du Plantier, whose body was found near her home on 23 December-1996. The French authorities have issued another European Arrest Warrant-in an attempt to have Mr Bailey extradited to stand trial for voluntary homicide. An application to have that warrant endorsed-will be heard by the High Court on Thursday. - Mr Bailey is expected to challenge the attempt to extradite him. Lawyers for Mr Bailey also say Mr Justice Hedigan should not have dismissed most of Mr Bailey's claims towards the end of the case after more than 60 days of a hearing. The judge withdrew the bulk of the case from the jury after the State argued it had not been lodged within the legal time limit. Senior counsel Paul O'Higgins said it had been ""absolutely clear"" from the beginning that the State would be arguing the claims were made out of time. Mr O'Higgins said Mr Bailey's lawyers had mentioned this in their opening address to the jury but he accepted it was ""never mentioned again"" until the State wrote to Mr Bailey's lawyers on day 61 of the case to inform them they would be making the argument. Ms Justice Mary Finlay Geoghegan said where such a defence is to be raised there could be a question as to whether to permit a claim to proceed before a jury and evidence to be called. ""Not only is there a huge element of cost and time wasting, there is probability that if part of the claim is then statute barred you are inevitably prejudicing the ability of the jury to decide clearly on the basis of evidence only relevant to the issue to which the statute does not apply."" Mr O'Higgins said it was ""an unusual case"" which went ""very heavily to various people's reputations and involving as it did allegations which were brought forth in the course of the plaintiff's case"". However Mr Justice Hogan said he understood the position of certain witnesses who might wish to give evidence in the face of serious allegations to vindicate their reputation. However he asked if there was ""not an inconsistency between saying I want to go into evidence to clear my name and then towards the end say 'by the way the bulk of this claim is statute barred'?"" Mr O'Higgins said he would not agree there was an inconsistency in this approach. He said the extent of the personal, professional and public damage capable of being done to garda�� against whom extraordinary allegations were made was ""quite huge if they were seen to duck examination on such matters or failed to put forward denials"". Mr Justice Hogan said: ""Supposing the entire case had been ruled statute barred, one has to ask quite apart from the question of cost what was the whole point of the exercise? Could that not have been determined on day one or two that it was statute barred?""", -3693,2017/3/29,http://www.cnn.com/2017/03/29/politics/senate-intelligence-committee-conference/index.html,"Senate intelligence leaders: 20 people to be questioned, first hearing Thursday","(CNN)The Senate intelligence committee has asked 20 people to be questioned in its investigation of Russian interference in the 2016 presidential election, the panel's chairman said Wednesday.","""This one is one of the biggest investigations the Hill has seen in my time here,"" Chairman Richard Burr, a North Carolina Republican, said at a news conference with committee vice-chairman Mark Warner. Burr's been in the Senate since 2005, and served in the House since 1995. Burr and Warner say they have 20 witnesses they plan to interview and have scheduled interviews with five of them so far. The committee leaders said that they are happy that President Donald Trump's son-in-law, Jared Kushner, and former campaign chairman Paul Manafort have agreed to testify, but they have not yet decided when they will bring them in. ""To date, we have made 20 requests for individuals to be interviewed by the committee,"" Burr said. ""As we stand here today, five are already scheduled on the books, and probably within the next 10 days the remaining 15 will have a scheduled date for those individuals to be interviewed by our staff. We anticipate inviting additional individuals to come and be interviewed, and ultimately some of those interviewed individuals may turn into private or public hearings by the committee, but yet to be determined."" Among those the committee appears to have talked to: Former National Security Adviser Michael Flynn, who resigned after he misled administration officials regarding his communications with the Russian ambassador to the United States. ""It would be safe to say we have had conversations with a lot of people, and it would be safe to say Gen Flynn is a part of that list,"" Burr said. The Senate Intelligence Committee's investigation has garnered increased intention as the House investigation has stalled along partisan lines related to its chairman, Rep. Devin Nunes, and his communication with the White House related to the incidental collection of President Donald Trump and his aides. Democrats have called on Nunes to step down from his post, while most Republicans in the chamber say they support Nunes. The panel will hold its first public hearing Thursday.", -3694,2017/3/29,http://www.huffingtonpost.com/2017/03/29/ivanka-trump-white-house-job_n_15693718.html,Ivanka Trump Has An Official Job In The White House,She's long served as an informal adviser to her father.,"Ivanka Trump will take on a more formal role working for her father, President Donald Trump, as an official unpaid employee in the White House, The New York Times reported Wednesday. ""We are pleased that Ivanka Trump has chosen to take this step in her unprecedented role as First Daughter and in support of the President,""?the White House said in a statement Wednesday. ""Ivanka's service as an unpaid employee furthers our commitment to ethics, transparency, and compliance and affords her increased opportunities to lead initiatives driving real policy benefits for the American public that would not have been available to her previously.""?Earlier this month, the White House confirmed Ivanka Trump would have an office in the West Wing, despite having no official White House role. According to a statement provided to the Times, concerns over how ethics rules would apply to Ivanka Trump prompted her to ""serve as an unpaid employee in the White House Office, subject to all of the same rules as other federal employees.""?This is a developing story. Check back for updates. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3695,2017/3/29,http://www.huffingtonpost.com/2017/03/29/amber-heard-gay-men_n_15693678.html,Amber Heard Wants Every Closeted Gay Man In Hollywood To Come Out,"""This would be a non-issue in a month,"" she said.","Amber Heard has no time for closeted gay celebrities.- Speaking at the The Economist's Pride and Prejudice Summit March 23, the-""Tagic Mike XXL""?and ""the Danish Girl""?star recalled the media firestorm that she faced after coming out as bisexual in 2010. In the end, the 30-year-old actress said that opening up about her sexuality was worth it ""?and she encouraged other LGBTQ stars and public figures to follow her lead.- ""Even though everyone around me strongly advised me against it, it was just wrong. I would""ve rather go down for being who I am than to have risen for being something I'm not,""eard told The Economist's Deputy Editor Tom Standage. She finally confirmed her sexuality, she said, when an After Ellen reporter asked her about the status of her relationship with then-girlfriend Tasya van Ree at the 2010 GLAAD Media Awards in Los Angeles. ""I refused to not bring my partner at the time, but no one ever asked me about it,""?Heard said. ""An outlet specifically asked me who I was there with that night and who that person was to me and I just answered honestly.""?It was an honor to participate in @theeconomist Pride and Prejudice symposium addressing #LGBT rights. And a special thanks to @tomstandage for our fireside chat, minus the fireside. A post shared by Amber Heard (@amberheard) on Mar 23, 2017 at 10:45pm PDT It didn""t take long for Heard to, as she put it, ""realize the gravity""?of what coming out would do. She acknowledged having some initial setbacks, including Hollywood execs who suddenly doubted her credibility as a romantic leading lady. Still, she noted, ""While my private life is valuable to me, I knew that, being in Hollywood, I had a particular responsibility...-I saw myself as being in this unique position with this unique gift. Any unique gift comes with unique responsibility.""When Standage noted that many of the best-known LGBTQ celebrities to come out in recent years were women, Heard agreed.-""Women are almost entirely doing this on our own,""?she said. ""While it is apparently harder for men, I would argue, also, that is harder because there are no men challenging that.-If women can do it and we can change the way that this conversation is had in a large scale, then men should be able to do it.""?Heard, who said she'dlike to play an LGBTQ character in a movie moving forward, then added, ""If every gay man that I know personally came out in Hollywood tomorrow... then this would be a non-issue in a month. We be hard-pressed to point the finger at anyone.""Watch Standage's full interview with Heard below.- For the latest in LGBTQ entertainment, check out the Queer Voices newsletter. Share this slide: We'r spilling the tea on all the queer news that matters to you. Learn more", -3696,2017/3/29,http://www.huffingtonpost.com/2017/03/29/selena-gomez-netflix-13-reasons-why_n_15693644.html,"Selena Gomez Debuts Emotional New Song For ""?3 Reasons Why""?,This new Netflix series is bound to give you goose bumps.""","Selena Gomez is a co-producer on the new Netflix original drama series ""?3 Reasons Why.""hile she will not be acting in the show, she will be a part of the show's soundtrack. On Wednesday, Gomez tweeted a teaser video which features a cover of the ""?0s hit ""�Only You.""2 days til @13ReasonsWhy""?Here's a 1st listen to my cover of ""Only You""?from the soundtrack, inspired by Hannah and Clay's story. Out 3/30! pic.twitter.com/aSrAFhpFoY Gomez says the song choice is inspired by the relationship between two characters on the show, Hannah and Clay.- ""?3 Reasons Why""?revolves around 13 tapes left behind a student who died by suicide, each targeted at a different classmate who contributed to her decision to end her life. While this dark tale sounds like a departure from Gomez's previous projects, it turns out her personal experiences with bullying are what inspired her to take on this new show. Subscribe here to read our exclusive interview with ""?3 Reasons Why""?star Justin Prentice to learn even more about the series and what it's like to work with Gomez.- Bryce Walker @13reasonswhy @netflix Premieres March 31 A post shared by @justin.prentice on Feb 24, 2017 at 8:41pm PST ""?3 Reasons Why""?premieres on Netflix Friday, March 31. Tina Fey, Alec Baldwin, Tom Hanks, Tracy Morgan, Maggie Gyllenhaal, Michael Moore, Padma Lakshmi and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU. Donate now and-join us at 7 p.m. ET on Friday, March 31, on Facebook Live. #standforrights2017- You can support the ACLU right away. Text POWER to 20222 to give $10 to the ACLU. The ACLU will call you to explain other actions you can take to help. Visit-www.hmgf.org/t-for terms. #StandForRights2017 Get exclusive interviews where your favorite celebs spill the tea. Learn more",-1, -3697,2017/3/29,http://www.huffingtonpost.com/2017/03/29/this-side-by-side-comparison-of-donald-trump-and-sesame-street-is-brilliant_n_15693222.html,This Comparison Of Donald Trump And 'Sesame Street' Is Wonderful,And educational! Which is probably why he won't like it.,"As you may have heard, Donald Trump wants to cut funding to the National Endowment for the Arts and the Corporation For Public Broadcasting. While ""sesame Street""?is not directly funded by these organizations, the cuts could eliminate the local PBS stations that air the beloved children's show. But why would Donald Trump want to get rid of ""sesame Street""? The answer: because it's his complete opposite. Dylan Marron from Seriously TV gives us a fantastic side-by-side comparison of Donald Trump and ""sesame Street,""?which shows just how diametrically opposed the two are, and, really, have always been. Tina Fey, Alec Baldwin, Mahershala Ali, Amy Poehler and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU.-Join us at-7 p.m.-Eastern on-Friday, March 31,-on Facebook Live.- You can support the ACLU right away. Text POWER to 20222 to give $10 to the ACLU. The ACLU will call you to explain other actions you can take to help. Visit-www.hmgf.org/t-for terms. #StandForRights2017 Share this slide: ""Less is Liberace"" #TrumpAFamousQuote pic.twitter.com/ttuN48VB1E Don""t be the last to watch the viral video everyone is talking about. Learn more", -3698,2017/3/29,http://www.huffingtonpost.com/2017/03/29/watch-billy-eichner-ambush-muppets-in-billy-on-the-sesame-street_n_15693200.html,Watch Billy Eichner Ambush Muppets In 'Billy On The Sesame Street',"The comedian says it was the ""best day"" of his life.","No street is safe from Billy Eichner's game show antics, not even ""sesame Street.""?The comedian brought-""Billy on the Street,""he game show in which he surprises pedestrians and asks them questions (usually with help from a fellow celebrity), to ""sesame Street""?to promote kindness and compassion. As he and Cookie Monster questioned the residents about the show's theme song and their favorite numbers, Eichner kept his signature energy and yelling, but ditched the swearing (it is ""sesame Street,""?after all). After the show posted the segment on its YouTube channel, the comedian tweeted that being a part of it was the ""best day""?of his life.- Here it is...it's BILLY ON THE SESAME STREET!!! I went to @sesamestreet with COOKIE MONSTER!!! Best day of my life. https://t.co/DBfqVIiJ0v Oh, and he took a pretty epic selfie. My favorite selfie ever!!! BILLY ON THE SESAME STREET has arrived! Watch it here: https://t.co/DBfqVIiJ0v pic.twitter.com/IAmR6XLOFz Eichner clearly had quite the day on ""sesame Street.""The HuffPost Parents newsletter, So You Want To Raise A Feminist, offers the latest stories and news in progressive parenting.- Start here, with the latest stories and news in progressive parenting. Learn more", -3699,2017/3/29,http://www.huffingtonpost.com/2017/03/29/americans-climate-change_n_15693140.html,A Majority Of Americans Disagree With Donald Trump's Hard-Line Stances On Climate Change,A new poll shows strong public support for remaining in the Paris Agreement and funding Energy Star.,"Just this month, President Donald Trump issued-an order to begin unraveling greenhouse gas regulations, flirted with exiting the Paris Agreement and proposed eliminating funding for climate change research. But the White House's hard-line stance against taking action to halt global warming appears to be out of step with most of the country, according to a new HuffPost/YouGov poll. More than half of Americans, 57 percent, believe humans are causing climate change, compared with 24 percent who think the climate is changing but not because of human activity, and 5 percent who believe the climate isn""t changing at all. Trump made slashing environmental rules the cornerstone of his plan to jump-start the U.S. economy. But opinions were mixed on how much regulation is necessary, with 28 percent arguing the current level of regulation is too low. Meanwhile, 26 percent said the level is about right, and 23 percent agreed with the president's view that it's too high. A 55 percent majority of Americans support remaining in the Paris Agreement, the first global deal focused on reducing greenhouse gas emissions that includes the U.S. and China. But 22 percent agreed with Trump advisers who say the U.S. should withdraw from the 195-country accord, while another 22 percent said they were not sure. White House officials refused to say whether the administration plans to pull out of the agreement, though Environmental Protection Agency Administrator Scott Pruitt called it a ""bad deal""?this week. White House budget director Mick Mulvaney said earlier this month that the administration considers taxpayer-funded research on climate change to be a ""waste of your money.""?A vast plurality of the public disagrees, with 49 percent saying the EPA should fund climate research, compared with 28 percent declaring the opposite and 23 percent unsure. The Energy Star program, a voluntary initiative that certifies buildings and appliances for energy efficiency, proved popular, with 57 percent of those surveyed saying the EPA should continue to fund the bulk of its $57 million budget, versus just 19 percent who support defunding it with 23 percent unsure. Trump proposed eliminating the program in the ""skinny budget""?he released earlier this month. ""Just two months into his administration, Donald Trump has put in place the most anti-environmental Cabinet in our nation's history, and he is quickly becoming the most anti-environmental president ever,""?said Tiernan Sittenfeld, head of government affairs at the nonprofit League of Conservation Voters. ""In no way did the elections give him a mandate to attack either bedrock environment protections or recent progress.""?The HuffPost/YouGov poll consisted of 1,000 completed interviews conducted March 22-23 among U.S. adults, using a sample selected from YouGov's opt-in online panel to match the demographics and other characteristics of the adult U.S. population. The Huffington Post has teamed up with YouGov to conduct daily opinion polls.-You can learn more about this project and take part in YouGov's nationally representative opinion polling. Data from all HuffPost/YouGov polls can be found here. More details on the polls""?methodology are available here. Most surveys report a margin of error that represents some, but not all, potential survey errors. YouGov's reports include a model-based margin of error, which rests on a specific set of statistical assumptions about the selected sample, rather than the standard methodology for random probability sampling. If these assumptions are wrong, the model-based margin of error may also be inaccurate. Click here for a more detailed explanation of the model-based margin of error. Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3700,2017/3/29,http://www.huffingtonpost.com/2017/03/29/andrew-napolitano-back-on-fox_n_15693132.html,Andrew Napolitano Stands By Debunked Theory Despite Fox Suspension,He's sticking to his story that British intelligence wiretapped Trump Tower.,"Apparently, a nine-day suspension didn""t have much effect on Fox legal analyst Andrew Napolitano. He still stands by his unverified claims that British intelligence wiretapped Trump Tower last year on behalf of former President Barack Obama.- Napolitano was suspended ""indefinitely""?on March 20 for the report,-which British intelligence blasted as ""nonsense""?and ""utterly ridiculous.""Both Shepherd Smith and Bret Baier said Fox News couldn""t independently verify the former judge's claims, which Donald Trump cited as proof for tweets he sent out about the alleged wiretapping. The suspension officially ended Wednesday morning when Napolitano appeared on Fox News looking tanned, rested and raring to talk with Bill Hemmer. Anyone expected a mea culpa from Napolitano were surely disappointed, as he continued to stick to his metaphorical guns: Here's a transcript of the exchange courtesy of Media Matters: HEMMER: Before we get to the case facing the former congressman of Illinois, you put out a statement, I think it was 10 days ago ""?NAPOLITANO: Right. HEMMER: Saying you were confident in the story that you reported here in the past month. NAPOLITANO: Yes. HEMMER: You still stand by that or ""?NAPOLITANO: Yes, I do, and the sources stand by it. And the American public needs to know more about this rather than less because a lot of the government surveillance authorities will expire in the fall and there'll be a great debate about how much authority we want the government to have to surveil us. And the more the American public knows about this, the more informed their and Congress""?decisions will be. HEMMER: So no change then? NAPOLITANO: Correct. HEMMER: And we'll see how this story plays out, in time. The exchange did not answer the most pressing question: why Napolitano was allowed back on the air so soon after being suspended, only to make the same debunked claim. A Fox News Channel spokeswoman said the issue was ""Landled internally,""?but didn""t specify whether she was referring to Napolitano's original unsubstantiated claim or his repeating of it on Wednesday's show.- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3701,2017/3/29,http://www.huffingtonpost.com/2017/03/29/gop-planned-parenthood_n_15693130.html,The GOP's War On Planned Parenthood Just Got Awkward,Activists behind the fetal-tissue smear videos were charged with 15 felonies.,"WASHINGTON""?Republicans in Congress have been citing a series of undercover sting videos for nearly two years to justify their $1.6 million investigation into Planned Parenthood and efforts to defund the nation's largest family planning provider. The creators of those videos were slapped with 15 felony charges in an arrest warrant Tuesday night, making it awkward for the GOP to continue to tout the activists""?recordings. California Attorney General Xavier Becerra charged David Daleiden and Sandra Merritt, the anti-abortion activists behind the videos,-with ""?5 felony counts of violating the privacy of health-care providers by recording confidential information without their consent,""?The Washington Post first reported.-Hours later,-the U.S. Ninth Circuit Court of Appeals-granted the-National Abortion Federation a preliminary injunction prohibiting Daleiden and his colleagues from releasing any more recordings and materials that were illegally obtained.- ""It's profoundly troubling that the Republican majority was willing to promote the handiwork of alleged felons,""?said Rep. Jackie Speier (D-Calif.), a member of the House select panel that spent 15 months on an investigation of Planned Parenthood sparked by the videos.- Daleiden called the charges ""Hake news""?in a statement on Wednesday. ""We look forward to showing the entire world what is on our yet-unreleased video tapes of Planned Parenthood's criminal baby body parts enterprise, in vindication of the First Amendment rights of all,""?Daleiden said. The 2015 videos purport to show Planned Parenthood employees negotiating the sale of fetal tissue after abortions.-Daleiden and Merritt created fake driver's licenses and fake identities to gain access to medical conferences, and secretly recorded Planned Parenthood employees discussing fetal tissue donations.-The family planning provider maintains that it donates fetal tissue for medical research and receives reimbursements only for the associated costs, which is legal. An analysis of the undercover footage revealed that it was heavily edited to mislead viewers, and more than a dozen state investigations into Planned Parenthood found no wrongdoing. But Republicans in Congress and in state legislatures have continued to cite the videos-as evidence that Planned Parenthood ""sells baby parts.""""Everyone should see the video,""?Rep. Trent Franks (R-Ariz.) said in a press conference last month as he called for defunding Planned Parenthood. ""they want to sell the body parts of these little children after they're murdered them.""?House Speaker Paul Ryan (R-Wis.), with the support of President Donald Trump, tried to defund Planned Parenthood last week in the failed GOP health care bill. Still, conservative lawmakers are looking for other ways to stop Medicaid from reimbursing Planned Parenthood for health services to low-income women, including birth control, pap smears and sexually transmitted infection screenings. Ryan said this week that he still plans to attack Planned Parenthood funding in the budget reconciliation process.- Defunding Planned Parenthood was never going to be easy for Republicans: Three out of four Americans favor continuing funding for the provider, according to a Kaiser poll released last week.-The 15 new criminal charges against the star of the anti-Planned Parenthood movement are only going to make that fight more politically difficult. ""the California Attorney General filing criminal charges sends a clear message that you cannot target women and you cannot target health care providers without consequences,""?said Mary Alice Carter a spokeswoman for-Planned Parenthood.-""We look forward to justice being served.""- Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3702,2017/3/29,http://www.huffingtonpost.com/2017/03/29/boy-survivor-migrant-boat_n_15693128.html,Teen Boy Is Only Survivor Of Shipwreck That Killed 146 Migrants,It's a tragically common storyline in the central Mediterranean.,"A 16-year-old boy from Gambia was sitting in the back of a rubber dinghy on Monday, inching across the Mediterranean Sea. After spending six months in Libya waiting for a way across, he was finally en route to Europe. But after a few hours, the boat's wooden floor gave in, succumbing to the weight of more than 140 passengers. Water began to rush in, and people tumbled into the water. The boy spotted the boat's fuel tank and clutched onto it, eventually falling unconscious. Next thing he knew, he woke up aboard a European Union rescue ship. Of the 147 migrants and refugees aboard the raft ""?including several children and pregnant women ""?the boy was the only one to survive the wreck, the United Nations High Commissioner for Refugees reported on Wednesday. Once rescued, he was taken to the emergency room and then to a migrant reception center on the Italian island of Lampedusa. ""He is dehydrated, but he's recovering,""?Federico Fossi, UNHCR senior public information associate, told The Huffington Post. ""He said he traveled alone ""?no relatives, just friends and country nationals ""?and remained [six] months in Libya before trying to cross the Mediterranean.""?The boy's ordeal serves as a reminder that the migrant and refugee crisis is still in full force ""?about 23,000 people have already crossed the central Mediterranean so far this year, and almost 1,000 have so far died trying, according to UNHCR statistics. Last year was the deadliest year for migrants on record, even though the total number of people who attempted to cross into Europe by sea actually went down compared to 2015.- It also highlights how insufficient search and rescue missions are in the area, even though a panoply of European Union and NGO operations patrol the waters day in and day out. Shipwrecks of this sort have become tragically commonplace in the stretch of sea separating Libya from Italy, known as the central Mediterranean. ""It's quite a miracle that there's even one survivor,""?Fossi said. ""Just last week, two empty, almost submerged rubber dinghies were found, and only five dead bodies [were recovered] in the sea.""?""It's a continuous arrival and requires the continuous rescue of people,""?Fossi said. ""It's a mass concentration of people crossing all together ""?like thousands ""?and this of course poses some challenges to the rescuers, because they cannot be everywhere,-there are so many boats at the same time at sea.""?And with warmer weather just around the corner, the number of people attempting the journey will likely only go up. Share this slide: Learn more", -3703,2017/3/29,http://www.huffingtonpost.com/2017/03/29/los-angeles-lgbt-center-prep_n_15693088.html,A New PrEP Campaign Wants You To 'F**k Without Fear',"""We want to start a dialogue.""","A provocative new campaign from the Los Angeles LGBT Center-hopes to raise awareness about and access to prescriptions for HIV-prevention drug PrEP for those most at-risk of contracting the disease. ""F**k Without Fear""?intentionally uses ""raw, authentic language""?in order to capture the attention of the most vulnerable populations when it comes to HIV contraction: young gay/bisexual men of color and transgender women. ""We want to start a dialogue that increases awareness, shatters stigmas and most importantly encourages individuals to adopt the highly effective HIV prevention method, pre-exposure prophylaxis (PrEP),""?the Los Angeles LGBT Center's Chief Medical Officer Robert Bolan, M.D., told The Huffington Post. ""It's also designed to break through the clutter of messages to clear up common misconceptions about PrEP, particularly regarding its cost, effectiveness and safety.""?In conjunction with the campaign,-the Los Angeles LGBT Center rented a giant billboard with its message in the heart of West Hollywood. For those who are unfamiliar with the drug, PrEP is short for Pre-exposure prophylaxis and is a pill taken once a day to reduce the risk of contracting HIV from sex by more than 90%. ""If the current rates of infection don""t change, the Centers for Disease Control and Prevention estimates that 1 in 2 gay/bisexual black men and 1 in 4 gay/bisexual Latino men will be infected with HIV in their lifetimes,""?Bolan continued. ""We refuse to accept that eventuality, which is why we developed our campaign specifically for that demographic. We tested our campaign messaging in focus groups, and the feedback confirmed that we were on the right track""�particularly when people told us they wear our campaign message on t-shirts. Fortunately, it is working. Since the campaign launch, We're roughly doubled the number of people we'r helping to get on PrEP each week, and most of them are our target demographic.""?Head here to learn more about the ""F**k Without Fear""?campaign. Share this slide: We'r spilling the tea on all the queer news that matters to you. Learn more", -3704,2017/3/29,http://www.huffingtonpost.com/2017/03/29/climate-change-misinformation-scott-wagner_n_15693084.html,Badly Misinformed Lawmaker Thinks Our 'Warm Bodies' May Be Causing Climate Change,Spoiler alert: Republican Scott Wagner is very wrong.,"A Republican state senator running for governor of Pennsylvania shared some unusual views this week about what's causing climate change.- Scott Wagner told a Harrisburg audience on Tuesday that the body heat from the planet's growing population might be responsible for rising temperatures. - ""We have more people. You know, humans have warm bodies. So is heat coming off?""?Wagner said, according to State Impact Pennsylvania, an NPR project. ""things are changing, but I think we are, as a society, doing the best we can.""?The lawmaker was speaking to a receptive audience of rural county officials about loosening regulations on the natural gas industry. At another point, Wagner appeared to conflate global warming with ... well, it's not quite clear what he meant. ""I haven""t been in a science class in a long time, but the earth moves closer to the sun every year-""?you know, the rotation of the earth,""?Wagner said. ""We'r moving closer to the sun.""?The lawmaker is indeed a bit rusty on the basics of astronomy. Contrary to what Wagner said, the earth rotates on its axis every 24 hours, not every year. And it may come as a surprise to him that the United States and the rest of the Northern Hemisphere experience winter when the earth's yearly orbit brings it closest to the sun.- Scientists widely agree that the release of greenhouse gases from human activity is the primary force leading to climate change today.- In a statement provided by a spokeswoman, Wagner said human activity is partly responsible for climate change ""?although he implied that people shouldn""t take drastic action in response. ""I believe that the climate is changing every day, and some of that change is certainly manmade. I think that we have a responsibility to future generations to be good stewards, and I support efforts to do that,""?Wagner said. ""however, the real question isn""t is the climate changing but what role should the government play in trying to alter it. I believe we have to prioritize action in a measured way so that we do not hurt our economy.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3705,2017/3/29,http://www.huffingtonpost.com/2017/03/29/carls-jr-hardees-ads_n_15692864.html,Carl's Jr. And Hardee's Shelve Ads Featuring Women In Bikinis,The company wants to place more of an emphasis on its food.,"Carl's Jr. and Hardee's are ditching advertisements featuring scantily-clad women. Adweek reported that the new campaign will focus more on the quality of the food at the chain. ""they're never really gotten credit for their quality, and we want that message to land with consumers,""?Jason Norcross, executive creative director and partner at 72andSunny, the agency behind the new ads, told Adweek. ""We want to reclaim their bona fides.""?The new ads will reportedly feature a fictional Carl Hardee Sr. and includes a component on YouTube where he will push aside the company's old ads. ""While the ""Bikinis and burgers""?approach did a lot to make eating fast-food burger seem sexy""�which was a tall order""�we needed an advertising vehicle that could allow us to tell our very compelling, but more rational, food quality story in an entertaining way,""?Brad Haley, chief marketing officer of Carl's Jr. parent company CKE Restaurants Holding Inc.-told Fast Company. ""the creative brief was to find a way to more directly and consistently communicate the food quality story that we have, but for which we weren""t getting credit.""?Andy Puzder, the company's former CEO who was President Donald Trump's pick to run the Labor Department before withdrawing his name in February, had praised the company's provocative ads in the past. ""I like our ads. I like beautiful women eating burgers in bikinis. I think it's very American,""?Puzder told Entrepreneur last year. ""I used to hear, brands take on the personality of the CEO. And I rarely thought that was true, but I think this one, in this case, it kind of did take on my personality.""?Share this slide: The reality of being a woman ""?by the numbers. Learn more", -3706,2017/3/29,http://www.huffingtonpost.com/2017/03/29/i-think-i-have-imposter-syndrome-but-for-parents_n_15692644.html,I Think I Have 'Imposter Syndrome' But For Parents,I am only pretending to be an adult capable of caring for another person.,"My 5-year-old son's glasses are on their last leg. He has a backup pair ""?frames in a nice green we bought months ago for just this reason ""?but surprise! I can""t find them. Rooting around in drawers, I take note of the clutter I find and start berating myself for my lack of organization. By the end of the morning, I find myself sucked into a vortex of parenting shame, convinced I'm not competent enough to be in charge of another person. I can""t handle this, I think to myself. I am not good enough to do this job. There's a thing called ""imposter syndrome,""?named by psychologists Pauline Clance and Suzanne Imes to describe people who secretly feel they aren""t intelligent or capable despite evidence in the form of high achievement. ""Imposters""?fear being found out and exposed for the phonies they secretly feel themselves to be. People with imposter syndrome (often high-achieving women) tend to attribute their successes to luck or their ability to fool others instead of to inherent talent.- The term usually applies to achievement at work.-But I think I have it for parenting.- Here I am, pretending to be an adult capable of managing the care and development of another human being. And yet internally, I'm the emotional equivalent of a pair of toddlers stacked up underneath a trench coat. Despite the evidence that I am doing this parenting thing, day by day, I feel barely capable of taking care of myself, much less a child. Parenting lends itself to crippling self-doubt. It's the long-term results that really matter, after all, and we won""t know how those turn out for decades. The job itself is so vast, the goals so ambitious: handle all the needs of another person while preparing them to be a productive citizen of the world. Is it any wonder I sometimes suspect I am not adequate for the task? And as a foster and then adoptive mother, I""ve had more training than most. I had to complete hours of coursework to prepare for parenthood. I had to undergo a medical examination, and a ""Lome study""?to make sure my radiators were covered and my cleaning supplies were out of reach.-I had to answer probing question about my past and my psyche. I did worksheets and took classes that prepared me for the worst possible outcomes of dealing with a troubled child. But at the end of the day, we all just get handed a kid. All first-time parents are attempting to excel at a job We're never done before. And some days,-I feel like a fraud. It doesn""t help that in a world of Pinterest crafts and elaborate back-to-school photo shoots on Facebook, I'm likely to compare my insides to other people's outsides. While I'm paddling as hard as I can to keep my head above water, I can look at other parents and assume they're got it effortlessly together. Before I got sober from alcohol in 2009, I used to look around and feel that everyone else had gotten a manual that I had somehow missed. They understood how to do things that felt insurmountably difficult to me ""?things like how to join a gym and then attend it, or how to open their mail regularly.- Today, as a sober mom, I feel pretty much the same way about parenting. I do not inherently know the rules ""?how often is he allowed to eat french fries?-Is It OK to let him wear his pajama pants outside? I still feel like I'm struggling to catch up to the parents who know what they'r doing.- It never occurs to me that everyone else might be feeling the same way. The thing is, there is no way to do parenting perfectly. Some days it's hard to even do it well. Life with kids is alternately chaotic, joyful, exasperating and mind-numbingly boring. Maybe I'm not that good at it. Probably I'm doing better than I think in low moments, as people who love me would undoubtedly say.- But the important thing is that I don""t let the idea that I might not be good enough paralyze me with fear, or lead me into anxiety and depression, but instead keep moving forward, one doing-my-damn-best decision at a time. Even if my drawers are cluttered and we never find those glasses.- Start here, with the latest stories and news in progressive parenting. Learn more", -3707,2017/3/29,http://www.huffingtonpost.com/2017/03/27/moms-viral-post-offers-important-message-about-car-seat-safety_n_15692638.html,Mom's Viral Post Offers Important Message About Car Seat Safety,"""I think this is a great visual and shows just how important proper car seat use is.""","On an ordinary day, Maine mom Rachel McNamara was adjusting the straps on her toddler son's car seat when an idea struck.- ""I had him sit in his car seat and get all buckled up to make sure it looked good, and I thought, ""Lets do a fun little test,""?she told The Huffington Post. ""I flipped him up and had my husband take a quick picture.""?McNamara shared two photos from the ""gest""?and a caption about car seat safety on Facebook and was overwhelmed to see the post quickly go viral.- The mom's original caption stated,-""After strapping your child into their car seat, ask yourself if you be comfortable flipping it upside down. Remember that the chest clip should be at armpit level and the straps should be tight enough to pass the pinch test. #carseatsafety.""?The post attracted a lot of attention from fellow parents.-To date, it's been shared almost 50,000 times.- Following the initial burst of viral fame, McNamara updated the caption with some additional clarifications and links to car seat safety resources. ""First, I'd like to clarify that I'm not advocating that parents should be flipping their kids upside down before every car ride,""?she explained. ""Just that they should feel confident that their child would be safe IF the car seat was flipped over in an accident. I think this is a great visual and shows just how important proper car seat use is.""?McNamara emphasized the importance of reading your car seat's manual before installing and adjusting and clarified what the ""pinch test""?entails. She also advised parents to reach out to their local child passenger safety technician-for assistance, keep their kids rear-facing for at least their first two years, and avoid-""Aftermarket products""nd used car seats from untrustworthy sources. ""Car accidents are the leading cause of injury and death in children,""?she wrote. ""people might also say, ""Twenty years ago I didn""t even wear a seatbelt and I'm perfectly fine!""?Well, that person got lucky. There are many children who are not alive today to tell their story.""?She added, ""times have changed. There are more drivers on the road today. We have more distracted drivers due to cell phones. We also know a lot more than we knew back then about children's bones and development. Car seats are constantly evolving to become safer.""?McNamara has two daughters, ages 7 and 8, in addition to her 2-year-old son. She told HuffPost she developed a passion for car seat safety during her most recent pregnancy.- ""I wasn""t as educated about car seats when I had my daughters,""?she said. ""�Unfortunately I made some of the same mistakes that I talk about in my post. A favorite phrase I live by now is ""�Know better, do better.""?Ultimately, the mom hopes parents who read her post learn more about car seat safety. And in lieu of flipping their children upside down (""�because accidents do happen""?, McNamara said they can simply ensure that the chest clip is at armpit level and the straps pass the pinch test. ""the biggest thing I want people to take from my post is that accidents can happen anywhere, at any time to anyone,""?she said. ""Proper car seat use could be the difference between life or death. It's a little hard to hear that, but it's true. And if someone is trying to give you advice about car seat safety, please don""t think they'r judging you or think you'r a bad parent. They care!""?Start here, with the latest stories and news in progressive parenting. Learn more", -3708,2017/3/29,http://www.huffingtonpost.com/2017/03/29/donald-trump-tax-returns_n_15692630.html,House Republicans Vote To Keep Trump's Tax Returns Secret For The Third Time,They defeated Rep. Bill Pascrell's proposed measure in a testy committee hearing.,"WASHINGTON ""?Republicans on the House Ways and Means Committee voted down a measure offered by Rep. Bill Pascrell (D-N.J.) to force President Donald Trump to release his tax returns to the committee. In a party-line vote on Tuesday,-24 committee Republicans voted against the measure and 16 Democrats voted for it. This is the second time committee Republicans have voted to keep Trump's tax returns secret and the third time the House has held a vote on the subject. In February, committee Republicans sunk a prior measure-from Pascrell, and then, on the floor of the House, Republicans beat back a resolution, also from Pascrell, to force the release of Trump's tax returns. Both votes were along party lines. Trump has refused to voluntarily release his tax returns for public review, though every other president since Gerald Ford has released some portion of their tax returns. Trump claims he can""t release his returns because they'r under a ""routine audit,""?but has provided no evidence of one. There is also no law or regulation preventing individuals from publicly disclosing their tax returns when they are under audit. In an often-testy committee hearing, Republicans argued that Democrats were simply playing politics. ""Frankly, this resolution is a procedural tool being utilized, and I think abused, for obvious political purposes,""?committee chairman Kevin Brady (R-Texas) said. Pascrell shot back it was entirely proper to use the law and added that the committee had a duty to ensure the president's business interests don""t conflict with his work for the American people. ""It is our responsibility under the Constitution, Mr. Chairman ""?very clear, very clear ""?to provide oversight of the executive branch and root out conflicts of interest,""?Pascrell said. ""that is our responsibility.""?Republicans on the committee argued that Democrats were improperly using a law enacted after the Teapot Dome Scandal-in the 1920s that permitted the committee to obtain the tax returns of executive branch officials under investigation at the time. The committee used the same law decades later to obtain President Richard Nixon's tax returns during the Watergate scandal. Republicans, including Brady, also used the law in 2014 to investigate allegations that the IRS improperly targeted conservative nonprofits. Rep. Jim Renacci (R-Ohio), a former tax lawyer, argued that the president's tax returns would not reveal any items of interest. ""You'r railing off on things that you would never find on a tax return,""?Renacci said, adding-that Democrats were instead on a ""political mission, not a mission of fact.""?Rep. Jason Smith (R-Mo.) echoed that sentiment. ""This hearing clearly has showed me that this is just a bunch of political grandstanding,""?he said. This was the common theme from Republicans on the committee. One after the other, they argued that Democrats were only interested in politics and that Trump's returns would contain nothing of interest beyond what was already revealed in the financial disclosures he had to file with the Federal Election Commission. Republicans""� accusations that the measure was only about politics irked some Democrats. After Rep. Kristi Noem (R-S.D.) declared that the whole exercise was about politics, Rep. Joe Crowley (D-N.Y.)-replied defensively. ""to impugn the integrity of [Rep. Pascrell] is irresponsible,""?Crowley said. He added, ""ourmotivation is to find the truth.""?In addition to blocking the release of Trump's tax returns twice on the Ways and Means Committee and once on the House floor, Republicans also-voted to block a measure-in the House Judiciary Committee requiring the Department of Justice to inform the committee about its investigation into the Trump campaign's ties to the Russian government. Without much power in Washington to hold hearings and call witnesses, Democrats are hoping to get Republicans on the record obstructing disclosures the public supports. The majority of Americans want Trump to release his tax returns, as every other president in the modern era has done. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3709,2017/3/29,http://www.bbc.co.uk/news/uk-wales-39436401,Missing helicopter search under way at Caernarfon Bay,A helicopter with five people on board has gone missing over Caernarfon Bay in north Wales.,"A helicopter with five people on board has gone missing over Caernarfon Bay in north Wales. The privately owned helicopter is believed to have left Milton Keynes earlier on Wednesday en route to Dublin. The UK Coastguard said radar contact was lost on Wednesday afternoon. A UK Coastguard helicopter, based at Caernarfon, in Gwynedd, has been searching the area. A second search and rescue helicopter, based at St Athan, Vale of Glamorgan, joined the search on Wednesday evening over the Irish Sea. North Wales Police has been notified of the search operation for the twin squirrel red helicopter. A Mayday broadcast has been issued to all vessels passing through the Irish Sea route to contact the UK Coastguard if they have seen anything. UK Coastguard duty commander Peter Davies said: ""We have established a search plan between Caernarfon Bay and the shore of Dublin and currently have two coastguard helicopters searching the route.""", -3710,2017/3/29,http://www.bbc.co.uk/news/uk-england-nottinghamshire-39438165,Dash-cam captures toppling hay bales on A1,,"A driver captured dramatic footage of hay bales toppling off a lorry in front of his vehicle. The accident was captured by the dash-cam in the cab of a Mid UK Recycling lorry. The lorry carrying the bales went on to overturn on the slip road of the A1 northbound at Newark on Monday, causing delays for motorists travelling into Lincolnshire. No-one was hurt, but both vehicles were damaged.", -3711,2017/3/29,http://www.bbc.co.uk/news/uk-england-lancashire-39438122,Sexual predator who broke into houses guilty of sex assaults,A sexual predator has been found guilty of breaking into women's homes in order to assault them.,"A sexual predator has been found guilty of breaking into women's homes in order to assault them. Zsolt Suhaj, 25, who raped a 66-year-old, was branded every woman's ""worst nightmare"" by a judge. He told Preston Crown Court the woman he raped had consented to sex and requested he enter through her bedroom window - a claim police said was ""offensive"". Suhaj was convicted of a string of similar offences after a trial. These included the sexual assault of a 70 year old, and several counts of trespassing with intent to commit a sexual offence. The court heard Hungarian national Suhaj entered addresses in the Colne and Nelson areas of Lancashire last year. He mostly targeted bungalows, entering through insecure windows and doors during the early hours. In one of the incidents, the boyfriend of a sleeping woman found Suhaj standing over her as she was fast asleep. He threw his mobile phone at Suhaj as he made his escape through the bedroom window. The court heard there were further reports of women, aged between 22 and 84, waking to find Suhaj in their homes. Judge Sara Dodd said it was every woman's ""worst nightmare"" as she adjourned sentencing until 27 April. Suhaj was arrested at his home in Barkerhouse Road, Nelson, following the rape after detectives released CCTV images and staff at a local takeaway recognised him. During the trial, it emerged the defendant had similar previous convictions in Canada from 2012 when he committed a number of offences in Toronto. It is understood Suhaj was placed on the Canadian sex offender database and was then deported to his home country after he served a custodial sentence. In May 2013 he was convicted of theft in Hungary and travelled to the UK to stay with family members in east Lancashire. He was found guilty of rape, sexual assault, trespassing with intent to commit a sexual offence at five homes and attempting to trespass with intent at another home.", -3712,2017/3/29,http://www.bbc.co.uk/news/business-39433065,Vauxhall drops FA home nations football sponsorship deals,UK car maker Vauxhall is to end its multi-million pound sponsorship of the home nations football teams after the 2018 World Cup.,"UK car maker Vauxhall is to end its multi-million pound sponsorship of the home nations football teams after the 2018 World Cup. Vauxhall has been the lead sponsor of the England, Scotland, Wales and Northern Ireland teams since 2011. But a spokeswoman said Vauxhall wanted to start running separate marketing campaigns for individual models. The deal for the England team is thought to be worth in the region of ?5m to ?6m per year. When Vauxhall signed the deal in 2011 it did not have many new products coming out, but wanted to keep its brand ""front of mind"", the spokeswoman said. Now Vauxhall's ""business priorities have changed"" and it wants to put money into marketing models such as the Crossland X SUV and the Insignia Grand Sport, she added. However, in a statement, Vauxhall said it had not ruled out other sponsorship deals ""Since 2011, Vauxhall has been very proud to be the lead sponsor for each of the four home nations football associations (FAs), the first time this has ever been undertaken by a major organisation,"" it said. Vauxhall had ""agreed to explore other opportunities to continue its relationship with the FAs beyond the conclusion of the existing contracts."" it added. The English football association said ""active discussions are under way regarding a lower level partnership"" with Vauxhall. Bookmakers Ladbrokes, supermarket chain Lidl, Mars chocolate and Carlsberg are among current sponsors of the England national team. The Scottish FA said it would consider all the options open to it as it started the process of seeking a new main sponsor that was in the best interests of Scottish football. Football Association of Wales (FAW) chief executive, Jonathan Ford, said: ""The partnership between the FAW and Vauxhall has been hugely successful for both parties. We have enjoyed an excellent working relationship. ""We now look forward to enjoying similar success with our future lead sponsor."" The Irish Football Association said: ""Over the past six years we have enjoyed an excellent working relationship with Vauxhall."" It added that it looked forward to ""working with new and existing sponsors in the future as we continue to promote, foster and develop football for all in Northern Ireland"".", -3713,2017/3/29,http://tass.com/defense/938345,Putin orders Defense Ministry and FSB to ensure protection of Russia's interests in Arctic,The Russian president has also instructed to speed up preparation of a program for social and economic development of the Arctic,"ALEXANDRA LAND, high-latitude Arctic, March 29. /TASS/. Russian President Vladimir Putin has instructed the Defense Ministry and FSB Security Service to ensure protection of national interests in the Arctic. Putin arrives in Franz Josef Land to size up Arctic environmental cleanup ""The Defense Ministry, Federal Security Service and its border branch need to implement their plans aimed at protecting national interests from the point of view of bolstering the country's defense capabilities and protecting our interests in the Arctic along with normal operation of the Northern Sea Route,"" Putin told Defense Minister Sergei Shoigu at a meeting on the Arctic development. ""Many facilities of the Defense Ministry could be of so called dual use and they could and even should assist civil agencies in implementing the goals set before them,"" he added. Vladimir Putin has also told the cabinet of ministers to speed up preparation of a program for social and economic development of the Arctic areas. On Wednesday, Putin and Prime Minister Dmitry Medvedev spent a workday in high-latitude Arctic, on Alexandra Land, an island that is part of Franz Josef Land archipelago. ""I'd like to ask the government of the Russian Federation to speed up finalization of a new version of the state program for social and economic development of the Arctic areas,"" Putin said. ""It should spell out novel approaches of private public partnership in the implementation of large infrastructure projects, including exploration and development of the Arctic shelf and a buildup of competitiveness of the Northern Sea Route."" How Russians conquered the Arctic in vintage photos ", -3714,2017/3/29,http://tass.com/economy/938342,Russian Finance Ministry hopes justice will prevail in Ukraine's debt case appeal,,"MOSCOW, March 29. /TASS/. Russian Finance Ministry looks forward to fair consideration of Ukraine's appeal against decision taken by the High Court of London in $3 bln debt case, Minister Anton Siluanov said on Wednesday in an interview with Rossiya 24 TV Channel. ""As far as we are aware, the Ukrainian party is going to file an appeal to the London court of appeal and it will take some time. We are confident this appeal will be considered as fairly as is the decision of the High Court of London,"" Siluanov said.", -3715,2017/3/29,http://tass.com/politics/938337,Moscow urges Syrian opposition to avoid raising tensions,,"GENEVA, March 29. /TASS/. At a meeting with members of the Syrian opposition's High Negotiations Committee (HNC), Russia pointed out that attempts to raise tensions in Syria were counterproductive, Russian Deputy Foreign Minister Gennady Gatilov said following his meeting with the HNC delegation. While commenting on the situation on the outskirts of Damascus and in the Hama Governorate, where severe fighting is going on, he said that ""we have discussed it with the delegation of the High Negotiations Committee."" ""We told them that attempts to raise tensions are counterproductive no matter who is behind them,"" the Russian diplomat added.- G.#Gatilov held a meeting with #Syrian opposition's #Damascus platform delegation on the margins of @UN-sponsored intra-Syrian #Geneva talks pic.twitter.com/dFuwrhl5c8 ""We told them that Jabhat al-Nusra and IS [terror groups outlawed in Russia]-are legitimate targets as the ceasefire agreements do not apply to them,"" Gatilov added. He reiterated the need to separate the opposition groups ready to abide by the ceasefire from terrorists. Head of the Syrian government delegation Bashar Jaafari said earlier that in Damascus and the Hama Governorate, the opposition units that had previously joined the ceasefire, were cooperating with terrorists. However, the HNC claims that the opposition units in these areas are fighting to defend themselves from the government forces.- ", -3716,2017/3/29,http://tass.com/economy/938325,"Kiev aware of few chances to win in debt lawsuit case ""?envoy","That is a good reason for Kiev to delay the court hearing, Russia's envoy in the EU believes","MOSCOW, March 29. /TASS/. Kiev understands that it has few chances to win a lawsuit in London's High Court on the Russian loan, Russia's Permanent Representative in the European Union Vladimir Chizhov said in an interview with Rossiya-24 TV Channel on Wednesday. ""I believe that Ukraine's nervousness [over the judgment by the High Court of London to hear the case of Ukraine's $3 billion debt to Russia in an expedited procedure] suggests that they, perhaps, understand that there are not so many chances to win the lawsuit,"" Chizhov said. ""They are interested in every possible way to delay the case,"" the envoy said, adding ""they suppose the ruling, we hope, will be in Russia's favor."" ""Recently, Ukraine has faced serious financial troubles, after the IMF decision to delay a next tranche of $1 bln,"" the diplomat went on to say. ""Following suit, the EU, which links its aid to Ukraine with the IMF position, took a similar decision. In other words, it operates in tandem [with the IMF].""", -3717,2017/3/29,http://abcnews.go.com/Politics/ivanka-trumps-white-house-role-doesnt-eliminate-ethics/story?id=46471121,"Ivanka Trump's new White House role doesn't eliminate ethics concerns, experts say",,"Ivanka Trump made it official, announcing Wednesday that she will serve as an unpaid employee in the White House and will be ""subject to all of the same rules as other federal employees,"" according to a statement by the First Daughter. Ivanka plans to file financial disclosure forms and ""be bound by the same ethics rules that she had planned to comply with voluntarily,"" said her attorney Jamie Gorelick. Ethics experts gave this announcement a muted applause, telling ABC News that Ivanka was already a government ""employee"" who should be subject to ethics rules. Formalizing her role is a positive step, they said, but it does not eliminate all ethics concerns. ""The White House lawyers got it wrong when they tried to make her a non-employee and pretended that she was exempt from the ethics rules. They were playing games and that's just not going to work,"" said Richard Painter, the chief White House ethics lawyer under George W. Bush. Kathleen Clark, a legal ethics expert and professor at Washington University in St. Louis, said that the White House's former position was ""indefensible"" and that ""that ""�voluntary""?language really obscured the point; they are claiming that she had a choice."" As a federal employee, Ivanka is subject to a criminal federal conflicts of interest law that prohibits most federal officials from participating in government matters in which they or their family have a financial interest. Her father is exempt from this rule. Clark and Painter said that Ivanka is not technically required to divest from her company, but she should recuse herself from matters that could impact her economic positions, her company or her husband's businesses. ""For example, half of her business is based on jewelry, so pretend the administration is weighing an enormous tax on jewelry,"" Clark said. ""That's something she would not be able to be in the room for if she doesn""t fully divest. But it's unclear how broadly this would be applied."" In 1990, when Iraq invaded Kuwait, Clark said, ""The Department of Justice ruled that the U.S. response to the Iraqi invasion was so broad in scope that conflict of interest rules didn""t apply to White House officials who had oil holdings."" Painter added that Ivanka should stay away from any trade negotiations with countries from which she imports clothing, as well as real estate matters. But Gary Bass, an ethics professor at Georgetown University's McCourt School of Public Policy, said that this strategy is fraught. ""It's almost impossible to come up with simple recusals, because government matters are so interwoven,"" he said, pointing out that discussions about job creation or even maternity leave could unexpectedly veer into policy talks that would affect her business. The White House ""is becoming a family operation and there aren""t a lot of rules about this,"" Bass added. Ivanka's new position could also run afoul of an anti-nepotism law, some experts believe. But Painter told ABC News that other superseding laws, as interpreted by the Justice Department, essentially give the president ""unfettered discretion to hire whoever he wants."" ABC News""?Alex Mallin contributed to this report.", -3718,2017/3/29,http://abcnews.go.com/Politics/trump-tackling-drawing-fire-womens-issues/story?id=46445376,ANALYSIS: How Trump is tackling and drawing fire on women's issues,,"Donald Trump drew criticism during the presidential campaign over offensive comments he made about women, but since coming to power, his administration has been keen to put out a counter-message: that his policies could have a positive impact on America's women. On one hand, he has garnered praise from some corners for promoting women to top positions within his company and to certain positions within his Cabinet, and can count women such as Kellyanne Conway, his former campaign manager, among his closest advisers. On the other, he has drawn fire for his comments over the years, including a tape that surfaced just before the election that showed him bragging about groping women, for which he later apologized. He also faced criticism for a lack of women in key positions in his administration, taking actions during his presidency that some say are detrimental to women's interests and appearing in pictures surrounded by men at forums and executive order signings. White House press secretary Sean Spicer praised the work that Trump has done for women before his appearance at an event focused on women's empowerment Wednesday afternoon. ""Women's History Month is coming to an end, but the Trump administration is committed to empowering women in the workplace. The work that we started this month will not end at the end of this month, but will continue,"" Spicer said. Here is a review of the the most noteworthy actions affecting women that have been taken by the Trump administration during the first 69 days of his presidency. One area where specific actions have been taken that directly relate to women comes in discussions over health care and abortion. On what Trump considered the first full day of work, Jan. 24, the president issued an executive memorandum reinstating the Mexico City policy, which bars federal funding for overseas groups that provide access to or counseling about abortions. Introduced by President Ronald Reagan at a United Nations conference in Mexico City in 1984, the policy was dubbed the ""Global Gag Rule"" by abortion-rights groups. The policy, which has been heavily criticized by Democrats, has been rescinded and reinstated multiple times since its inception. Aside from the executive memorandum, the other ways in which the Trump administration would change health care for women were stalled with the decision not to vote on the American Health Care Act last week. If the health care plan had been adopted, Planned Parenthood effectively would have been stripped of Medicaid clients and largely defunded, and individuals would have been banned from using their federal tax credits on plans that covered abortions, an incentive to insurance companies to stop offering the procedure. Also, over the next few years, certain ""essential health benefits,"" which currently include maternity care, would no longer be covered by Medicaid. Photos showing Trump during signings and appearances related to women's issues have raised some eyebrows. When he signed the Mexico City policy and when Trump and Vice President Mike Pence met with Republican leaders about the health care plan on March 23, pictures showed Trump surrounded only by men. One photo that was tweeted by Cliff Sims, a special assistant to Trump, from the March 23 meeting shows that Conway was in the room, but the photo that Pence chose to share from the same meeting showed 25 men and no women. Lengthy standing ovation from the Freedom Caucus when @POTUS walked into the Cabinet Room just now. Big momentum toward #RepealAndReplace. pic.twitter.com/N1FLGAVFMN Appreciated joining @POTUS for meeting with the Freedom Caucus again today. This is it. #PassTheBill pic.twitter.com/XG6lQIy5a6 Trump has participated in several roundtable discussions about female entrepreneurs and women-run businesses. The issue is one known to be close to his daughter Ivanka's heart as well. The topic was discussed at a meeting with women entrepreneurs with Canadian Prime Minister Justin Trudeau on Feb. 13 and earlier this week, Trump hosted a roundtable with women small business owners on Monday March 27. ""Empowering and promoting women in business is an absolute priority in the Trump administration because I know how crucial women are as job creators, role models, and leaders all throughout our communities,"" he said at the event. He has also spoken about other issues that directly relate to women at various points in his presidency -- including his joint address to Congress on Feb. 28 -- though he has yet to take action on all of the issues in question. ""My administration wants to work with members of both parties to make childcare accessible and affordable, to help ensure new parents that they have paid family leave to invest in women's health, and to promote clean air and clean water, and to rebuild our military and our infrastructure,"" he said. Paid family leave, women's health issues and the promotion of clean air and water are issues that Ivanka Trump addressed during the campaign or met with experts about during the transition. During her address to the Republican National Convention, Ivanka Trump said: ""As President, my father will change the labor laws that were put into place at a time when women were not a significant portion of the workforce. And he will focus on making quality childcare affordable and accessible for all."" Ivanka Trump played a big role during her father's campaign, especially when it came to issues relating to women and working families. For instance, she was on hand when her father unveiled his childcare plan in Pennsylvania in September. Conway, who became the first female campaign manager of a winning presidential campaign when Trump won, touted Trump's ""natural affinity"" for ""promoting and elevating women."" ""I believe that Donald Trump is someone who is not fully understood for how compassionate and what a great boss he is to women. He has been promoting -- he has been promoting and elevating women in the Trump Corporation -- in the Trump campaign, in the Trump Cabinet, certainly in the Trump White House. It's just a very natural affinity for him,"" she said. While she is arguably the most prominent woman advising the president now, Conway and Ivanka Trump are the female figures who appear with Trump the most. Until yesterday, Ivanka Trump did not have a formal title in the administration but did recently have security clearance approved, received a government-issued communication device and an office on the second floor of the West Wing. On Wednesday, she released a statement announcing that she will have the title of special assistant to the president but will not receive a salary. First lady Melania Trump has decided to stay in New York through their son Barron Trump's school year, and she has only spoken at a handful of events since her husband took office including this morning, when she spoke about women's empowerment at the State Department. The first lady also hosted the International Women's Day Luncheon on March 8. Separately from that, she has joined her husband for key moments throughout his presidency including when they hosted Japanese Prime Minister Shinzo Abe and his wife in Washington and Florida, and weeks later when she hosted Israeli Prime Minister Benjamin Netanyahu and his wife Sara in D.C. Thank you Mrs. Netanyahu for your friendship and dedication #PowerOfTheFirstLady pic.twitter.com/IiUjtTglOu Trump also counts among his close advisers Dina Powell, the deputy national security adviser, director of communications for the office of public liaison Omarosa Manigault, longtime senior campaign staffer turned-director of strategic communications Hope Hicks, principal deputy press secretary Sarah Huckabee Sanders and KT McFarland as deputy national security adviser. First reported by Politico, ABC News confirmed today that deputy chief of staff Katie Walsh will be leaving her post. Two sources with direct knowledge tell ABC News she will be ""Consulting""?the outside a political not-for-profit organization -- known in Washington circles as an ""Autside C4 group""?after the group's tax designation -- aimed to help with Trump's agenda. Trump was criticized earlier in his term for what some said was a lack of diversity among his Cabinet. Trump picked four women for cabinet-level positions -- Betsy DeVos (Education), Nikki Haley (U.N. Ambassador), Linda McMahon (Small Business Administration) and Elaine Chao (Transportation) -- which is the lowest number of women since George W. Bush's first cabinet, though he went on to appoint Condoleezza Rice as his secretary of State in his second term. By contrast, Barack Obama had seven women in Cabinet-level positions at the start of his presidency and Bill Clinton had six; George H.W. Bush had two and Ronald Reagan had one. ""�My Cabinet is full of really incredible women leaders,""?Trump said Wednesday. ""�I""�m so proud that the White House and our administration is filled with so many women of such incredible talent,""?he said. ABC News' Gillian Mohney contributed to this report.", -3719,2017/3/29,http://abcnews.go.com/Politics/dems-red-flags-kushner-sit-russian-banker/story?id=46461651,Dems: Red flags from Kushner sit-down with Russian banker,,"New red flags about Jared Kushner's business dealings have emerged with his recent disclosure of a December meeting he held with the chief of a Russian development bank, leading Democratic lawmakers told ABC News. ""Mr. Kushner needs to come clean and be fully transparent with the public ""?immediately ""?about all of the businesses that he continues to profit from while he serves in the White House,"" Rep. Elijah Cummings, the ranking Democrat on the House Oversight Committee, told ABC News. Kushner, 36, who is married to Ivanka Trump, played a central role in his father-in-law's 2016 campaign and has since taken a job as one of President Trump's senior advisers. Kushner was already facing questions about a December meeting he held with the Russian ambassador to the U.S. when reports surfaced this week about a second contact. The White House confirmed that Kushner met in December with Sergei Gorkov of VneshEconomBank, or VEB, at the suggestion of the Russian ambassador. But the substance of the previously undisclosed meeting remains something of a mystery. A senior White House official said that the conversation was ""general and inconsequential"" and that Kushner took the meeting as part of his campaign role of interfacing with foreign dignitaries. But the bank described the discussion to ABC News as a ""negotiation"" in which ""the parties discussed the business practices applied by foreign development banks, as well as most promising business lines and sectors."" The December meeting came as the Kushner Companies, the family's real estate firm, was in the midst of what it has described in public statements as ""active, advanced negotiations ... with a number of potential investors"" about the redevelopment of the skyscraper it owns at 666 Fifth Avenue in New York City. On Nov. 16, Kushner dined with executives from the China-based Anbang Insurance Group to discuss a possible $4 billion redevelopment of the New York tower ""?a deal that reportedly fell apart this week, according to published reports. The rumored venture prompted a letter on March 24 from congressional Democrats who expressed concern about the company's entanglements with the Chinese government and about continued uncertainty about the extent to which Kushner has separated himself from the family real estate business, which he oversaw until recently. ""Even if Mr. Kushner has in fact divested from 666 Fifth Avenue, it appears his immediate family stands to benefit from a deal with Anbang, potentially violating federal ethics laws that bar 'an employee [from using] his public office for his own private gain ... or for the private gain of friends, relatives or persons with whom the employee is affiliated in a nongovernmental capacity,'"" reads the letter, signed by Cummings and Democratic Sens. Elizabeth Warren of Massachusetts, Tom Carper of Delaware, Sherrod Brown of Ohio and Gary Peters of Michigan. To date, neither Kushner nor the family real estate firm has explained the nature of the meeting with VEB. An official representing the Kushner firm responded to ABC News' questions Wednesday evening, saying Kushner was the only executive from his family's real estate firm to attend. ""VEB is not providing financing, lending or any other services to Kushner Companies,"" the official said. The bank would not make a conventional choice as a business partner, as it is operating under the shroud of U.S. sanctions imposed after Russian incursions into Ukraine. Adding to the troubling optics of the meeting, Democrats said, was the recent involvement of a senior VEB executive, Evgeny Buryakov, in a bungled Russian spy ring in New York. In May he was sentenced to 30 months in prison for gathering intelligence for the Russian Federation as an agent under nonofficial cover, known as NOC. Senators overseeing the Russia investigation have said they expect to ask Kushner about the meeting when he appears before the Intelligence Committee. Sen. Richard Blumenthal, D-Conn., told ABC News he wants Kushner to share more details about the meeting so the public can understand its nature and purpose. ""Mounting evidence implicates the Trump inner circle in possible collusion with Russian meddling,"" Blumenthal said. ""The Trump White House seems increasingly to be an ethically flawed mix of family businesses, special interests and foreign interference, putting private gain over public interest.""", -3720,2017/3/29,http://abcnews.go.com/US/wireStory/agreement-end-bathroom-bill-votes-46460612,North Carolina lawmakers vote to undo 'bathroom bill',,"North Carolina lawmakers voted Thursday to roll back North Carolina's ""bathroom bill"" in a bid to end the backlash over transgender rights that has cost the state dearly in business projects, conventions and basketball tournaments. The compromise plan, announced Wednesday night by the state's Democratic governor and leaders of the Republican-controlled legislature, was worked out under mounting pressure from the NCAA, which threatened to take away more sporting events. It was sent to Gov. Roy Cooper for his signature. Cooper had urged lawmakers to support the deal, which among other things repeals a year-old law that said transgender people have to use the public restrooms that correspond to the sex on their birth certificate. The compromise was condemned by some on both sides, with conservatives staunchly defending the current law, also known as House Bill 2, and gay and transgender activists complaining that the new measure still denies them protection from discrimination. They demanded nothing less than full repeal. As a result, it was unclear whether the retreat from HB2 would quell the furor or satisfy the NCAA. Republican Sen. Dan Bishop, a primary sponsor of HB2, denounced the new deal on the Senate floor, where it was approved 32-16, with nine of 15 Democrats among the yes votes. ""This bill is at best a punt. At worst it is a betrayal of principle,"" the Charlotte-area legislator said. The House passed the bill 70-48 later in the day. Republican Rep. Scott Stone, who lives in Charlotte, urged his colleagues to vote for the bill. ""We are impeding the growth in our revenue, in our ability to do more things for tourism, for teacher pay, while we have this stigma hanging over,"" Stone said. ""The time has come for us to get out from under the national spotlight for negative things. You can't go anywhere on this planet without somebody knowing what is HB2 and having some perception about it."" While the new measure eliminates the rule on transgender bathroom use, it also says state legislators ""?not local government or school officials ""?are in charge of policy on public restrooms. House Bill 2 had also restricted local governments' ability to enact nondiscrimination ordinances. Under the bill just approved, local governments can't pass new nondiscrimination protections for workplaces, hotels and restaurants until December 2020. That moratorium, according to GOP House Speaker Tim Moore and Senate leader Phil Berger, would allow time for pending federal litigation over transgender issues to play out. ""This is a significant compromise from all sides on an issue that has been discussed and discussed and discussed in North Carolina for a long period of time,"" Berger said. ""It is something that I think satisfies some people, dissatisfied some people, but I think it's a good thing for North Carolina."" Gay rights activists blasted the proposal, saying it was not a true repeal. ""It doesn't matter if you are a Democrat or a Republican, if you vote for this bill, you are not a friend of the LGBT community,"" Equality North Carolina Executive Director Chris Sgro said. ""You are not standing on the right side of the moral arc of history or with the civil rights community."" The deal came as the NCAA said North Carolina wouldn't be considered for championship events from 2018 to 2022 unless HB2 was changed. The sports governing body said it would start making decisions on host cities this week and announce them in April. North Carolina cities, schools and other groups have submitted more than 130 bids for such events. The NCAA already pulled championship events from the state this year because of HB2. HB2 also prompted businesses to halt expansions and entertainers and sports organizations to cancel or move events, including the NBA All-Star game in Charlotte. An Associated Press analysis (http://apne.ws/2ocOSnu) this week found that the law would cost the state more than $3.76 billion in lost business over a dozen years. HB2 supporters argued that the bathroom law was needed to preserve people's privacy and protect them from sexual predators. Opponents said that was nonsense and that the danger was imaginary. Several potential compromises have failed over the past year, including one during a special session in December that collapsed amid partisan finger-pointing.", -3721,2017/3/29,http://abcnews.go.com/Politics/donald-trump-takes-aim-freedom-caucus-2018-threat/story?id=46464771,Donald Trump takes aim at Freedom Caucus again with a 2018 threat,,"President Donald Trump took aim at the Freedom Caucus this morning in a tweet, saying that it will do damage to the Republican Party. Members of the hard-line caucus largely opposed the health care bill last week ""?one of the factors that led GOP leaders to postpone a House vote on the measure last Friday. ""The Freedom Caucus will hurt the entire Republican agenda if they don't get on the team, & fast. We must fight them, & Dems, in 2018!"" Trump tweeted this morning. The Freedom Caucus will hurt the entire Republican agenda if they don't get on the team, & fast. We must fight them, & Dems, in 2018! ""The president's tweet speaks for itself. We don't have anything to add at this time,"" White House principal deputy press secretary Sarah Huckabee Sanders said. Last week press secretary Sean Spicer would not say whether Trump would campaign against those who didn't support the health care bill. At today's White House press briefing, Spicer said Trump's tweet is ""consistent with everything he has said since Friday of last week."" ""His comments and his tweets speak for themselves,"" Spicer said. This is not the first time that Trump has singled out the group. He addressed the faction on social media two days after the bill was shelved. ""Democrats are smiling in D.C. that the Freedom Caucus, with the help of Club For Growth and Heritage, have saved Planned Parenthood & Ocare!"" he wrote on March 26. Members of the caucus largely dismissed Trump's thinly veiled threats to challenge their re-election efforts in 2018. ""I mean, it's constructive in fifth grade,"" Rep. Justin Amash, R-Mich., a founding member of the House Freedom Caucus, sarcastically told reporters at the Capitol today when asked if Trump's pressure could reignite negotiations. ""I'm not going to get hung up on a tweet,"" Rep. Scott DesJarlais, R-Tenn., said in an interview. ""My impression of the White House doesn't come from Trump's tweets,"" said DesJarlais, who was courted by Trump on the health care bill but planned to vote against it. ""He [tweets]. I don't really pay much attention to it."" Rep. Trent Franks, R-Ariz., who was open to supporting the health care bill last week, said Freedom Caucus members are ""the best friends the president has"" on Capitol Hill. ""If a primary challenger will serve this country better than me, I'm certainly willing to entertain that,"" said Franks, a veteran lawmaker. Sen. Bob Corker, R-Tenn., the chairman of the Senate Foreign Relations Committee, took a dig at House Speaker Paul Ryan of Wisconsin after he suggested in a CBS interview that he was concerned Trump would work with Democrats over conservative Republicans after the failure of the health care bill. ""We have come a long way in our country when the speaker of one party urges a president NOT to work with the other party to solve a problem,"" Corker tweeted. We have come a long way in our country when the speaker of one party urges a president NOT to work with the other party to solve a problem. ABC News' Katherine Faulders contributed to this report.", -3722,2017/3/29,http://abcnews.go.com/Politics/wireStory/top-aide-president-donald-trump-leaves-administration-46469340,Top aide to President Donald Trump leaves administration,,"A top aide to President Donald Trump said she is leaving his administration to join a pro-Trump outside group, America First Policies. Deputy chief of staff Katie Walsh said Thursday she decided to make the move after the Trump-backed health care bill failed last week to amass enough support to clear the House. White House officials said lawmakers were being pressured by outside groups that opposed the bill, through voter phone calls and television advertisements, with no pushback from several existing Trump organizations. ""It was abundantly clear that we didn't have air cover when it came to calls coming into lawmakers,"" said White House chief of staff Reince Priebus. ""No one can fix this problem better than Katie."" Walsh, who served under Priebus at the Republican National Committee, the Trump campaign and the White House, will be a senior adviser to America First Policies. The group is run by Trump's former data and digital director Brad Parscale. Priebus and other White House officials stressed that Walsh was the one who decided to leave the administration. ""She's the vital link that pulls things together,"" said Trump's senior strategist Steve Bannon. Trump senior adviser Jared Kushner added: ""I'm very supportive of Katie and the sacrifices she's making"" by leaving the White House. Despite her low profile, Walsh has become a key player in the administration's inner circle and has grown close to the president in recent months. America First Policies has been off to a slow start since its founding and has been focused mostly on raising money and assembling a leadership team alongside Trump's 2016 digital and data director, Brad Parscale. The group has also been roiled by organizational challenges. One of its co-founders, Rick Gates, left last week amid renewed reports about his firm's past work on behalf of Russian clients. Before serving as chief of staff at the RNC, Walsh worked on a number of political campaigns, including Sen. John McCain's presidential bid in 2008. A St. Louis native, she started working in politics as a student. ""��?Follow Bykowicz on Twitter at https://twitter.com/bykowicz", -3723,2017/3/30,http://abcnews.go.com/US/87-year-olds-13-killed-texas-church-bus/story?id=46464347,87-year-olds among 13 killed in Texas church bus crash: 'My heart just dropped',,"A close-knit Texas community and church congregation is in mourning after 13 people, between the ages of 61 and 87, were killed in an accident Wednesday while on a church bus, officials said. ""When I saw his name on the news my heart just dropped,"" Glenn Timmermann said of his friend, 87-year-old Harold Boyd Barber. The bus was carrying senior adult congregants from the First Baptist Church in New Braunfels, Texas, who were on their way home from a three-day retreat at the Alto Frio Baptist Encampment, the church said. The Texas Department of Public Safety said a pickup truck driver, 20-year-old Jack Dillon Young, veered into the opposite lane of U.S. highway 83, crashing into the church bus head-on with 14 people on board. Only one passenger on the bus -- 64-year-old Rose Mary Harris -- survived, authorities said. She was hospitalized in critical condition. The bus driver and the remaining 12 passengers died. Eight of the victims were in their 80s, officials said. The oldest were Barber and 87-year-old Mildred Goodlett Rosamond, officials said. Timmermann told ABC News today that he last saw his friend Barber two weeks ago at Bible study, saying he was in good spirits. ""He was one of the most devout Christians I think I had ever known,"" Timmermann said. When Timmermann saw a news report on the crash, his first thought was to hope Barber wasn't on the bus. ""Then when I saw his name on the news my heart just dropped,"" he said. ""It just came as such a shock."" The youngest of the 13 victims was 61-year-old Rhonda Barlow Allen, the Department of Public Safety said. The other victims were identified as: Dorothy Fern Vulliet, 84; Martha Holcomb Walker; 84; Addie Maurine Schmeltekopf, 84; Avis Scholl Banks, 83; Margaret Robinson Barber, 82; Howard Bryan Allen, 81; Sue Wynn Tysdal, 76; Donna Elizabeth Hawkins, 69; Cristie Clare Moore, 68; and Murray William Barrett, 67. ""They were a part of our church family,"" Pastor Brad McLean said at a news conference today. ""They will be deeply missed."" He continued: ""I remember the smiles. I remember the hugs. I remember the couples coming in together and you see them together all the time. I remember so many walking by and saying, 'Pastor, we're praying for you.' You live life with folks and so you just share so many small interactions that add up to a relationship that impacts you and strengthens your heart."" ""The hard reality of -- we won't see those faces walking in the door, and being able to greet them, and shakes hands, and hug them,"" he added. ""Some out of the group who served in our kitchen on Wednesday nights. I think it's the everyday interaction and relationship that has been built, those are the things that really, really will affect us."" McLean said he is praying for Harris, the surviving and injured passenger, and said he hopes to see her smiling face back in the choir soon. McLean today also encouraged people to pray for the family of the injured pickup truck driver, saying that the man's family is hurting ""as they work through a very difficult time, as well."" Young was hospitalized in stable condition, officials said. ""They have a concern for their family member they're hurting for the loss of life that occurred yesterday,"" McLean said. ""And so as believers in Christ we need to show them grace and pray for them, as well, because of what they are suffering."" McLean also today thanked the community, including businesses and other churches, for reaching out to provide food, counseling and other support. ""I'm just terribly grateful for the outpouring of love that our community has shown during this difficult time,"" McLean said. ""Our priority as a church ... is to care for our families who've lost a loved one in this accident. We want to take care of them, we want to help them through these difficult days."" The National Transportation Safety Board is involved in the investigation. ABC News' Phillip Mena and Gina Sunseri contributed to this report.", -3724,2017/3/30,http://abcnews.go.com/Politics/wireStory/casino-mogul-phil-ruffin-trumps-closest-friends-46460309,Casino mogul Phil Ruffin among Trump's closest friends,,"Billionaire Las Vegas casino owner Phil Ruffin has never been to the White House. On Thursday, he'll have dinner there with his friend, Donald Trump. ""It's a lonely job, and I have been friends with him for a long time. It'll be nice to catch up,"" Ruffin said. Trump has had a rough few weeks, with fellow Republicans dooming a White House-backed health care plan, questions persisting about possible ties between his campaign and Russian interference in the election, and distracting feuds among some of his senior officials. In short: This president could probably use a friend. Trump is living alone in the White House while his wife stays in New York where their son is in school. And he's a newcomer to Washington with few close allies, even within his party, and an especially small social circle. Few know Trump as well, or in as many capacities, as Ruffin, who described their friendship in two recent interviews with The Associated Press. They're business partners and social friends who enjoy talking about corporate jets and golf games and business deals their acquaintances have made ""?the usual billionaire stuff, Ruffin said. ""He's somebody who wants everybody's opinion. He'll summon people over and say, 'What do you think about this? What do you think about that?'"" Ruffin told AP at Treasure Island, his casino. ""Then he compiles it all in his mind and makes his own decision."" Both are prone to superlatives. Ruffin calls Trump ""brilliant"" with ""unparalleled business acumen."" Scrawled in gold on a photo of the pair aboard a corporate jet is a note from Trump to Ruffin: ""You are the greatest."" The two met when Ruffin traveled to Trump Tower in the early 2000s when he was thinking of adding a Trump-branded hotel to his Treasure Island casino on the Las Vegas Strip. That deal never worked out, but they stayed in touch. One night in Las Vegas, after dinner, Ruffin took Trump to a Nordstrom parking lot to show him a parcel of undeveloped land. ""I said, 'This is where you ought to be,'"" Ruffin recalled. ""And he instantly made a decision."" Trump International Hotel Las Vegas opened in 2008 ""?timing that put Ruffin and Trump in the business of selling condos as the recession took hold. One course of action would have been to declare bankruptcy, but Ruffin said Trump decided to ""tough it out."" ""Donald's words were, 'This is not New Jersey, this is not Atlantic City, this is Vegas, and it will recover,"" Ruffin said. ""And it did."" They haven't sold more than 300 units, though. Ruffin also owns a 4-acre parcel next to the Trump building and says he'd like to develop it ""at some point"" with the Trump Organization. Forbes Magazine has reported that Ruffin wants to open a casino on the site, but Ruffin says he's yet to discuss any plans with the Trump Organization's leaders, now Eric and Donald Trump Jr. and Allen Weisselberg. Another idea for the land is to dust off the pre-recession plan of building a second residential tower, although Ruffin says that's probably not the best way to make money there. During their business dealings, Ruffin and Trump developed a friendship. Ruffin, now 82, and Trump, 70, were single together. ""He would approve my girlfriends at the time,"" Ruffin said. Their wives ""?Eastern European immigrants decades younger than themselves ""?are close, trading parenting tips by text message, Ruffin said. They've been on double dates, including one in Florida to see the movie ""Lincoln,"" Ruffin said. Trump, in fact, was Ruffin's best man when he married Oleksandra Nikolayenko in 2008 ""?at Trump's Mar-a-Lago resort. Trump paid for the guests' accommodations as his wedding present, Ruffin said, though he drew the line at footing the bill for their hired entertainer, Lionel Ritchie. Nikolayenko will travel with Ruffin to the White House, though Melania Trump isn't expected to join them for dinner. Beginning in the summer of 2015, the two men's friendship took an interesting twist when Trump said he was running for president. Ruffin wondered if it was the right move, but he said whatever doubts he had were erased by his time on the campaign trail with Trump. Ruffin said he saw a ""fanatic"" interest among Trump supporters. At one campaign stop in Las Vegas days before the election, Trump pointed to Ruffin and called him ""one of the great, great people."" Ruffin said his upcoming overnight trip to Washington is purely a social call. The two have not seen each other since inaugural weekend, when Ruffin and a handful of other top Trump supporters had prime access to the swearing-in ceremony on the Capitol steps. While Ruffin says he shelled out $18,000 a night to stay at Trump's Washington hotel during the inauguration, his accommodations this time will be free: He'll be at the White House. ""?Follow Bykowicz on Twitter at http://twitter.com/Bykowicz.", -3725,2017/3/30,http://abcnews.go.com/US/wireStory/american-airlines-pilot-dies-medical-episode-flight-46462560,American Airlines pilot dies after medical episode on flight,,"An American Airlines pilot died after becoming ill just before his plane landed in Albuquerque. During the flight from Dallas-Fort Worth, the captain declared an emergency and landed the plane at Albuquerque International Sunport on Wednesday night. The plane taxied to a gate and was met by paramedics, who were unable to save William ""Mike"" Grubbs, 58, a Dallas-based co-pilot. Passengers were apparently unaware of the gravity of the incident during the last minutes of the flight but said the captain told them after landing that they would not be able to exit the plane immediately because of a medical emergency. As of midday Thursday, there was no word on the cause of death. Grubbs joined American in 2010 as a pilot of Boeing 737s after flying smaller planes for American Eagle. American Airlines CEO Doug Parker expressed his sadness and gratitude to the crew of Flight 1353 in a letter to employees. The pilots' union said Grubbs lived in Lebanon, Tennessee, and said it was offering help to his family. He was married and was the father of a son, who will graduate from college in May, according to the airline. Pilot deaths during flights are rare. In most cases, the other pilot in the cockpit has been able to land the plane without further incident. In 2015, the captain of an American Airlines jet became ill and died during a late-night flight from Phoenix. The co-pilot of the Boston-bound plane made an emergency landing in Syracuse, New York. A United Airlines pilot suffered a heart attack during a flight from Houston to Seattle that made an emergency landing in Boise, Idaho. He died several hours later at a hospital. Pilots must pass regular medical exams. In 2009, the Federal Aviation Administration raised the mandatory retirement age for airline pilots from 60 to 65, and some have suggested raising it again to help deal with a shortage of pilots.", -3726,2017/3/30,http://abcnews.go.com/US/wireStory/tsa-worker-fired-missing-loaded-gun-bag-airport-46465209,TSA worker fired after missing loaded gun in bag at airport,,"A Transportation Security Administration screener has been fired after authorities say she missed a loaded handgun in a passenger's carry-on bag at Atlanta's airport. WSB-TV ( http://2wsb.tv/2nkF2MM ) reported Thursday that Atlanta police say passenger Katrina Jackson of Hoover, Alabama, was looking for her passport inside her purse and noticed her .38-caliber handgun Sunday while at the gate at Hartsfield-Jackson Atlanta International Airport. Jackson told officers, who confiscated her gun and bag. TSA officials said in a statement that the worker who failed to see the handgun already was on probation and was fired. Police say Jackson told officers she had a permit from Alabama to carry the gun, but didn't have it on her. Jackson was arrested and charged with unlawful possession of a handgun.", -3727,2017/3/30,http://abcnews.go.com/International/wireStory/police-investigate-explosion-courthouse-saskatoon-46460900,Police investigate explosion outside courthouse in Saskatoon,,Police in the Canadian city of Saskatoon are investigating the detonation of an improvised explosive device at the provincial courthouse. They say the call came in just after 11 p.m. on Wednesday night. There have been no injuries but there are reports of minor damage to the exterior of the building. Members of the Saskatoon police force's Explosive Disposal Unit are on scene as well as a bomb-detection-trained dog unit. No arrests have been made., -3728,2017/3/30,http://abcnews.go.com/International/wireStory/chinas-xi-meet-trump-mar-lago-april-46460545,China's Xi to meet Trump in Mar-a-Lago on April 6-7,,"U.S. President Donald Trump will meet with his Chinese counterpart Xi Jinping for the first time on April 6-7 at Trump's Florida resort, China's Foreign Ministry announced Thursday, amid a range of pressing issues including trade, North Korea and territorial disputes in the South China Sea. The relationship between the world's No. 1 and No. 2 economies has been uncertain following the election of Trump, who accused China during his campaign of unfair trade practices and threatened to raise import taxes on Chinese goods and declare Beijing a currency manipulator. It is unclear whether Trump will follow through with either threat. He is now seeking Beijing's help in pressuring North Korea over its nuclear weapons and missiles programs. China is North Korea's most important source of diplomatic support and economic assistance. In February, Trump reaffirmed Washington's long-standing ""one China"" policy in a call with Xi, in an apparent move to ease concerns in China that he might use Taiwan as leverage in negotiations over trade, security and other sensitive issues. The policy in place since 1979 requires Washington to maintain only unofficial ties with Taiwan, which China claims as its own territory. A statement from the White House said the two leaders will discuss global, regional and bilateral issues of mutual concern. President Trump and first lady Melania Trump will host Xi and his wife Peng Liyuan at a dinner on Thursday evening, it added. Chinese Foreign Ministry spokesman Lu Kang told reporters that Xi would meet with Trump at Mar-a-Lago, without providing any more details. It is the same Florida resort where Trump hosted and played golf with Japanese Prime Minister Shinzo Abe in February. Xi, a fan of soccer and other sports, is not known to play golf. Before arriving in the U.S., Xi will pay a state visit to Finland on April 4-6, Lu said. Relations between China and the U.S. under former President Barack Obama were strained by issues including China's island-building in waters surrounding international shipping lanes in the South China Sea, allegations of cyberhacking and a U.S. policy rebalance to Asia. Despite that, cooperation between their militaries expanded tentatively, and China's defense ministry on Thursday hailed further growth, while warning of potential frictions ahead. ""We are willing to make joint efforts with the U.S. side ... so as to maintain a stable military-to-military relationship while striving to make new gains,"" spokesman Col. Wu Qian said. However, Wu also reiterated China's opposition to the deployment of a sophisticated missile defense system in South Korea, known as THAAD, which Beijing says threatens its own security with its ability to monitor flights and missile launches deep inside northeastern China. ""The deployment of the THAAD system will definitely not make (South Korea) any safer. And secondly, the Chinese military's opposition to the THAAD system will definitely not be confined to just words,"" Wu said. Asked what specific measures the People's Liberation Army was willing to take, Wu replied, ""You will know when the time comes."" One bright spot touted by both sides under Obama was the two nations' cooperation, as the world's top emitters of greenhouse gases, on tackling climate change. Lu said Wednesday that China would stick to its climate commitments after Trump, who has called climate change a hoax, this week rescinded measures enacted by Obama to reduce coal and oil use. ""?Associated Press writer Christopher Bodeen contributed to this report. ""?Follow Louise Watt on Twitter at twitter.com/louise""�watt", -3729,2017/3/30,http://abcnews.go.com/International/wireStory/trump-administration-drops-human-rights-bahrain-16-deal-46460897,Trump administration drops human rights in Bahrain F-16 deal,,"The Trump administration has told Congress it plans to approve a multibillion-dollar sale of F-16 fighter jets to Bahrain without the human rights conditions imposed by the State Department under President Barack Obama. If finalized, the approval would allow the Gulf island to purchase 19 of the jets from Maryland-based Lockheed Martin Corp., plus improvements to other jets in Bahrain's fleet. Though Congress has opportunities to block the sale, it is unlikely it will act to do so, given the Republican majority's strong support for the sale. The decision is the latest signal that the Trump administration is prioritizing support for Sunni-led countries seen as critical to opposing Iran's influence in the Mideast over human rights issues that Obama had elevated. Bahrain, home to the U.S. Navy's 5th Fleet and an under-construction British naval base, is a predominantly Shiite island off the coast of Saudi Arabia ruled by a Sunni monarchy. Government forces, with help from U.S. allies Saudi Arabia and the United Arab Emirates, crushed the 2011 uprising by Shiites and others who sought more political power. Under Obama, the United States withdrew approval before the fighter jet deal was finalized because it said Bahrain hadn't taken steps it had promised to improve human rights. Senate Foreign Relations Committee Chairman Bob Corker's office said the committee was told Wednesday by the State Department that it plans to proceed with the sale. The State Department declined to comment. The notice triggers a 40-day ""consultation"" period in which committee staff can review a draft of the Bahrain approval, ask questions about the sale and raise any concerns. Then the State Department will send a formal notification to Congress, setting off a final, 30-day review period, during which Congress could pass a joint resolution or take other steps to stop the sale. Lockheed had lobbied strenuously for the sale's approval, even as rights groups and pro-democracy activists urged the administration not to jettison human rights conditions. Brian Dooley of the Washington-based group Human Rights First said decoupling the sale from such conditions would ""encourage further repression"" and fuel instability during a tense period for Bahrain. ""The sale will send exactly the wrong signal to the dictatorship: that the White House thinks the political crackdown is not just morally acceptable but also not dangerous, when in fact it's what's fueling the country's instability,"" Dooley said. But Corker, a Republican from Tennessee, praised the move and said the caveats would have been ""unprecedented and counterproductive"" for security and human rights. ""There are more effective ways to seek changes in partner policies than publicly conditioning weapons transfers in this manner,"" Corker said in a statement. Among the steps the Obama administration had sought from Bahrain was the release of Nabeel Rajab, a famed human rights activist who helped lead the 2011 protests. Rajab, whose trial has been repeatedly delayed, awaits sentencing on a charge of spreading ""false news"" via Twitter over his posts about the ongoing Saudi-led war in Yemen, as well as allegations of torture by authorities at a local prison. The State Department said as recently as this week that it was calling for Rajab's release. The U.S. has said Bahrain lacks evidence against him. Since the beginning of a government crackdown nearly a year ago, activists have been imprisoned or forced into exile. Bahrain's main Shiite opposition group has been dismantled. Lawmakers recently approved military tribunals for civilians while the feared domestic spy agency regained some arrest powers. Independent news gathering on the island also has grown more difficult. Meanwhile, a series of attacks, including a January prison break, have targeted the island. Shiite militant groups have claimed some of the assaults. Bahrain has accused Iran's Revolutionary Guard of training and arming some militants, something the Shiite regional power has dismissed as a ""futile and baseless lie."" Lockheed declined to comment while Bahrain's government did not respond to a request for comment. In prepared remarks before a hearing Wednesday of the U.S. House's Armed Services Committee, the head of the U.S. military's Central Command acknowledged the delay in the fighter jet sale to Bahrain ""continues to strain our relationship."" ""We continue to urge the government of Bahrain to reverse steps it has taken over the past year to reduce the space for peaceful political expression in its (Shiite) population and have encouraged the Bahrainis to implement needed political reforms in the country,"" U.S. Gen. Joseph Votel said. ""?Gambrell reported from Dubai, United Arab Emirates.", -3730,2017/3/30,http://abcnews.go.com/Politics/senate-committee-probe-russian-meddling-us-election-begins/story?id=46463551,"Trump's campaign tactics strengthened Russia's election meddling, expert says",,"During the Senate Intelligence Committee's opening hearing today, an expert on Russia pointed to President Donald Trump's tactics during the campaign as the reason why Russia's attempt to interfere in the 2016 presidential election was effective. ""Part of the reason active measures have worked in this U.S. election is because the commander-in-chief has used Russian active measures at times against his opponents,"" said Clint Watts, a senior fellow for the Foreign Policy Research Institute Program on National Security. ""Active measures"" is a Soviet term for attempts to influence events, like political elections, to undermine an opponent. Watts then pointed to several incidents in which Trump pushed theories that Russian news outlets had also promoted. ""He denies the intel from the United States about Russia. He claimed that the election could be rigged; that was the No. 1 theme pushed by RT Sputnik news,"" Watts said. ""So part of the reason active measures works and it does today in terms of Trump Tower being wiretapped is because they parrot the same lines."" The FBI director, as well as the House and Senate Intelligence Committees, have acknowledged that there's no evidence to back Trump's March 4 claim that President Barack Obama ordered his phones at Trump Tower be wiretapped during the campaign. ""But until we get a firm basis on fact and fiction in our own country, get some agreement about the facts ... we're going to have a big problem,"" Watts added. Watts later said that his ""biggest concern right now is I don""t know what America's stance is on Russia.""?Watts added that Russia-linked Twitter accounts tweet at President Trump at ""high volumes when they know he's online and they push conspiracy theories."" At one point, Watts told Florida Sen. Marco Rubio, a member of the Senate Intelligence Committee, that his campaign for president had, in Watts' opinion, ""suffered through these efforts"" from Russia to sink the hopes of candidates ""more hostile"" to its country. According to the experts who testified today, the Russia government is also attempting to interfere in other ongoing national elections, including in France and Germany. Watts' testimony was part of the Senate Intelligence Committee's investigation into Russia's interference in the 2016 election. The committee will hold a second panel as part of its hearing later today and Gen. Keith Alexander, the former NSA director, is expected to testify then. While the House Intelligence Committee is embroiled in controversy, the Senate Intelligence Committee's chairman, Sen. Richard Burr, and vice chair, Sen. Mark Warner, vowed to get to the bottom of Russia's interference in the U.S. election and any possible collusion between Trump, his campaign aides and the Russian government. ""This investigation's scope will go wherever the intelligence leads,"" Burr said Wednesday in a joint press conference with Warner. ""So, it is absolutely crucial that every day we spend trying to separate fact from fiction."" The Senate Intelligence Committee sent requests to 20 individuals to be interviewed, and so far five are scheduled. On the House side, Democrats are calling for Rep. Devin Nunes, chairman of the House Intelligence Committee, to recuse himself from the committee's probe because of doubts that he would not be impartial in the investigation. Nunes has said he will not step aside. The Senate Intelligence Committee's leaders made clear Wednesday they do not want to be associated with the House's investigation. ""We're not asking the House to play any role in our investigation. We don't plan to play any role in their investigation,"" Burr said. The Senate Intelligence Committee held an open hearing in January in which intelligence leaders blamed the Russian government for the hacking of individuals and organizations involved in the 2016 presidential election. ""We have high confidence that President Putin ordered an influence campaign in 2016 aimed at the U.S. presidential election,"" James Clapper, the former director of national intelligence, said at the time. ""The goals of this campaign were to undermine public faith in the U.S. democratic process, denigrate Secretary [Hillary] Clinton and harm her electability and potential presidency. Putin and the Russian government also developed a clear preference for President-elect Trump.""", -3731,2017/3/30,http://abcnews.go.com/Politics/house-senate-russia-probes-headed-paths/story?id=46454962,"How the House, Senate Russia probes are headed down different paths",,"It appears to be a tale of two Russia investigations. There is the probe by the House Intelligence Committee that has been publicly marred by controversy over the actions of its chairman, Devin Nunes, R-Calif., once a member of the Trump transition team, and his wrangling with its ranking member, Adam Schiff, D-Calif. Then there is the Senate, where, by contrast Wednesday, the leaders of that body's Intelligence Committee presented a united front as they shared details of their ongoing inquiry into Russian interference, including possible collusion with a campaign, and vowed to ""get to the bottom of this."" The probes, which are running simultaneously with an FBI investigation into possible collusion between Trump associates and Russian officials, represent a critical juncture in the nascent administration. The investigations have split lawmakers largely along party lines, with the GOP homing in on leaks of classified information and the unmasking of Americans in collected surveillance and Democrats emphasizing Russian meddling in the presidential election. Chairman Richard Burr, R-N.C., and Vice Chairman Mark Warner, D-Va., appeared together at a Capitol Hill press conference Wednesday and defined the scope of the Senate committee's work. ""An outside foreign adversary effectively sought to hijack our most critical democratic process, the election of a president, and in that process, decided to favor one candidate over another,"" said Warner. ""We're here to assure you and, more importantly, the American people who are watching and listening, that we will get to the bottom of this."" ""This is one of the biggest investigations that the Hill has seen in my tenure here,"" said Burr. Warner's invocation of his and Burr's long-standing working relationship during their appearance and shared ""concern about what the Russians have done and continue to do around the world"" stood in stark contrast to the fracture at the top of the House Intelligence Committee, where Nunes is being questioned about his impartiality, willingness to share information and methods in acquiring intelligence. Since it was revealed Monday that Nunes traveled to the White House grounds last week in order to meet with a source who provided him with information that Americans were swept up in foreign surveillance efforts ""?about which he later briefed the press and the president before consulting his committee ""?a number of congressional leaders, including one Republican, have called for him to recuse himself from the investigation. Nunes has refused to do so ""?a stance backed by Speaker of the House Paul Ryan. Ryan admitted Thursday though that the situation has ""gotten a little political."" On Tuesday, Nunes canceled all of this week's House Intelligence Committee meetings. The next day he said his committee has to hear from FBI Director James Comey and National Security Agency Director Mike Rogers behind closed doors before the investigation may proceed, but a committee spokesperson said Schiff wouldn't sign the letter inviting Comey back to the Hill. Schiff told CNN he expected to meet with Nunes on Thursday. ""We do need to get to the bottom of it. Otherwise, there will be this permanent cloud hanging over our investigation,"" he said. The intelligence leaders on the Senate side gave no indication Wednesday that they are facing any of the same cooperation difficulties. Burr ""?an adviser on Trump's campaign who said his Intelligence Committee work ""overrides any personal beliefs that I have or loyalties"" ""?ticked off a long list of steps the committee is taking in its probe, including 20 interview requests that ""may turn into private and public hearings."" ""The staff has been provided an unprecedented amount of documents,"" said Burr. ""Those documents include documents that, up to this point, have only been shared with the Gang of Eight [party and intelligence committee leaders] and staff directors on the House and Senate side."" Nunes has yet to share the information he viewed on the White House grounds with members of his committee, though he indicated that he would like to. He apologized last week for how he shared the news of surveillance of Americans, which Trump said made him feel ""somewhat"" vindicated. Burr and Warner lauded the diligence of their committee and its bipartisan nature in their remarks and noted that the intelligence community ""has been very cooperative."" Warner cautioned, however, against the spread of misleading details, not just in Washington but in the general public via social media. ""The very technology that has made our lives simpler can be misused in ways to put false information for folks who potentially only get their news off a Twitter feed or a Facebook news feed,"" said Warner. ""And that raises serious questions, even beyond this investigation."" The breadth of the inquiry led both senators to comment on the amount of time it could take, with Warner saying, ""Getting it right is more important than getting it done quickly."" White House press secretary Sean Spicer has consistently said that there is ""no connection"" between the administration and Russia. Regarding whether the committee could rule out coordination between the Trump campaign and Russian officials before the election, Burr said, ""It would be crazy to try to draw conclusions from where we are in the investigation."" The senators gave an optimistic estimation of the final outcome of their work, pledging to keep the public abreast of developments and emphasizing their commitment. ""I have confidence in Richard Burr that we, together with the members of our committee, are going to get to the bottom of this,"" said Warner. ""And if you get nothing else from today, take that statement to the bank.""", -3732,2017/3/30,http://www.cnn.com/2017/03/30/politics/senate-intelligence-committee-hearing-russia/index.html,Senate Russia hearing: Rubio divulges hack attempts,"Washington (CNN)Russian interference with American politics did not stop after the election, and prominent Republicans -- including House Speaker Paul Ryan and Sen. Marco Rubio -- have been targeted by coordinated social media attacks, cybersecurity experts told a Senate panel Thursday.","Rubio -- a former primary opponent of President Donald Trump -- announced at a Senate intelligence committee hearing on Russian meddling that during last year's election his former campaign staff was targeted by hackers twice. Rubio said the attacks came from computers using IP addresses located in Russia -- once in July of last year, after he announced he would run again for the Senate and again, Wednesday morning. IP addresses do not necessarily confirm who conducted hacking, as it is relatively easy for hackers to mask their location. ""Former members of my presidential campaign team who had access to the internal information of my presidential campaign were targeted by IP addresses with an unknown location within Russia,"" Rubio said Thursday. ""That effort was unsuccessful. I would also inform the committee within the last 24 hours, at 10:45 a.m. yesterday, a second attempt was made, again, against former members of my presidential campaign team who had access to our internal information -- again targeted from an IP address from an unknown location in Russia. And that effort was also unsuccessful."" Rubio's comment followed after one cybersecurity expert said Rubio himself had been the target of a Russian propaganda campaign designed to help Trump -- although the witness, former FBI agent and cybersecurity expert Clinton Watts, later said that all Republican opponents of Trump were targeted by Russians, not just Rubio. ""This past week we observed social media campaigns targeting speaker of the House Paul Ryan hoping to foment further unrest amongst US democratic institutions,"" Watts told senators. The committee held its first public hearing on Russian meddling in the US election Thursday with calls for nonpartisanship, citing ongoing foreign interference that threatens ""the heart of our democracy."" ""The vice chairman and I realize that if we politicize this process, our efforts will likely fail,"" Committee Chairman Richard Burr, a North Carolina Republican, said in his opening remarks. ""The public deserves to hear the truth about possible Russian involvement in our elections, how they came to be involved, how we may have failed to prevent that involvement, what actions were taken in response, if any, and what we plan to do to ensure the integrity of future free elections at the heart of our democracy."" There's little chance that Thursday's hearing will be as explosive as the House intelligence committee's first public hearing last week, which started off with FBI Director James Comey confirming the FBI is investigating possible coordination between Trump campaign aides and Russian officials and included Trump himself fighting back during the hearing on Twitter. The differences between chambers was on full display as the Senate -- which gives the top Democrat on committees the title of vice chairman, unlike House's ""ranking member"" equivalent -- stressed bipartisan cooperation, the same day the leaders of the House committee were planning to meet and discuss the state of their troubled investigation. Thursday's hearing was not entirely without reference to political issues. Sen. Ron Wyden, an Oregon Democrat, made the case that the committee needed access to President Donald Trump's tax returns in order to investigate whether he'd been influenced by Russians. ""We need to follow the money,"" Wyden said. He also sought to understand the ties between Putin's administration, Russian oligarchs and Russian crime organizations, saying: ""Russia's corruption problem, may be our corruption problem."" Watts responded that Wyden should ""follow the trail of dead Russians,"" a clear reference to Putin critics who have turned up dead. Senate investigators are hearing from experts on disinformation tactics -- tools used by Russian operatives in the US elections and elsewhere to disrupt elections. ""We are seeking to determine if there is an actual fire, but so far, there is a great, great deal of smoke,"" Sen. Mark Warner, the top Democrat and vice chairman of the committee, said in his opening remarks. There is a brighter spotlight on the Senate committee to investigate Russian meddling in the election as its House counterpart has shattered along partisan lines, and even some Republicans calling on the Senate panel to lead Congress' probe. Senate lawmakers also plan to interview former National Security Agency Director Keith Alexander and FireEye chief executive Kevin Mandia, a pair of cybersecurity experts, who are expected to answer questions about how Russian agents and an army of trolls utilized ""fake news"" throughout the 2016 election. ""There were upwards of 1,000 paid Internet trolls working out of a facility in Russia, in effect, taking over series of computers, which is then called a 'botnet,'"" Warner, a Virginia Democrat, said Wednesday. ""If you Googled 'election hacking' leading up to the election and immediately afterwards, you wouldn't get Fox or ABC, The New York Times, what you got is four out of the first five news stories that popped up were Russian propaganda."" Burr, meanwhile, said that he is keenly interested in Russia's attempts to influence European elections and whether Russian efforts in the US offer insights into their efforts to disrupt elections in Western democracies like France and Germany. ""We feel part of our responsibility is to educate the rest of the world about what's going on because it's now into character assassination of candidates,"" Burr said Wednesday. RELATED - Senate Russia investigators' message: We're the adults here Since that hearing, the House investigation has descended into chaos, but Senate investigators have stuck to a steady pace, largely ignoring their House colleagues. Warner and Burr both said Wednesday they are taking a deliberative approach -- trying to learn as much as possible before calling in high-profile witnesses like former National Security Adviser Michael Flynn, former Trump campaign chairman Paul Manafort, former Trump foreign policy adviser Carter Page and former Trump adviser Roger Stone. Seven professional staff from their committee have been given special security clearances to review the documents and now have access to the same materials usually limited to Congress' ""Gang of Eight"" -- the Republican and Democratic leaders of the House and Senate and their respective intelligence committees. And even though Manafort and Jared Kushner -- one of Trump's closest advisers who served as an intermediary for foreign policy and met with top Russian officials during the transition -- have offered to testify before Senate investigators, no date has been scheduled yet for them to come in. Instead, Warner and Burr said that they have a list of 20 witnesses they plan to call in and have scheduled meetings with five of those witnesses so far. Both men declined to name those witnesses, but Burr implied it would be smart to expect Flynn to be on that list. This story has been updated and will update to reflect breaking news.", -3733,2017/3/30,http://www.cnn.com/2017/03/30/politics/putin-russia-us-election-denial/index.html,Putin slams US election meddling claims as 'lies',"Moscow (CNN)Russian President Vladimir Putin has described allegations that his country meddled in the 2016 US election as ""fictional, illusory, provocations and lies.""","Asked directly on Thursday whether Russia interfered in the election, Putin said: ""Read my lips: No."" Putin's comments are the President's most emphatic denial of the accusations yet, and are the first he has directly made since US President Donald Trump took office in January. Russian officials and spokespeople for Putin, however, have brushed off the claims several times as a political ""witch hunt."" The denial comes as intelligence committees from both the House and Senate in the US investigate the alleged interference in the US election, including possible ties between Russian officials and members of Trump's campaign team. The FBI is also conducting its own investigation. Putin ridicules Kushner allegations Putin also downplayed a meeting between Jared Kushner -- Trump's son-in-law and close adviser -- and Sergey Gorkov, chairman of the Russian state development bank VneshEconomBank, which has been under US sanctions since July 2014. Kushner is expected to give voluntary testimony to the Senate Intelligence Committee. ""Now there are some questions raised regarding the meetings with our bankers. But American bankers come to Russia and talk to us, don't they? Including our officials. How they can they work otherwise? Of course they hold meetings,"" Putin said, without explicitly naming the men in question. ""I think it's not in the interest of the American people to carry Russian-American relations to the point of absurdity, just to benefit the inner political agenda,"" Putin continued. ""What do we want? [To] break off the diplomatic relationship? Force the situation to the point of the 1960s [Cuban missile] crisis? And what's next?"" Putin asked. ""People who behave themselves so recklessly, what are they leading us to? Including the people of the USA. I think it's a big mistake and I hope the situation will normalize -- and the sooner the better."" The Russian leader also said that he would be open to meeting Trump on the side lines of an Arctic summit in Finland in September. ""If this happens, we will be glad to participate and I will be glad to take part in this event,"" he said. Trump says he and Putin have never met, but both leaders have repeatedly said they are open to doing so. Election meddling claims The US government publicly announced in October that it was ""confident"" Russia orchestrated the hacking of the Democratic National Committee (DNC) and other political organizations of the Democratic Party in the lead-up to the election. And in January, days before Trump took office, the US intelligence community concluded that Putin had ordered an ""influence campaign"" aimed at hurting Trump's rival, Democratic Party candidate Hillary Clinton. The DNC hacks resulted in the public release of thousands of stolen emails, many of which included damaging revelations about the Democratic Party and Clinton's campaign. Trump has flip-flopped on the issue, at first refusing to consider that Russia may have been behind the DNC hacks, but later conceding ""I think it was Russia."" Kremlin spokesman Dmitry Peskov said in January that the charges against Russia ""were not backed by anything"" and were ""made on a very amateur, emotional level."" ""What we see is ... that all of this looks like is a full-scale witch hunt,"" Peskov said. Before leaving office, former President Barack Obama ordered a full review into hacking aimed at influencing US elections going back to 2008.", -3734,2017/3/30,http://www.cnn.com/2017/03/30/europe/russia-youth-protests-corruption/index.html,"Young Russians are fed up, and the Kremlin has taken notice","Moscow (CNN)The thousands of Russians who took to the streets over the weekend may not have vented their fury directly at Vladimir Putin, but the President certainly took note of the message.","After the largest mass demonstrations in years, when crowds across the country took part in anti-corruption rallies, the Interior Ministry has warned that it will use the full extent of its powers to confront any future unauthorized gatherings. But the warning has not impressed or deterred a younger generation of protesters who are fed up with rampant nepotism, exasperated by the lack of accountability, and stifled by the lack of opportunities on offer in Russia today. Their grievances are directed less at Putin himself than at a system that has institutionalized graft and accelerated inequality. In some ways they are reminiscent of the frustration of younger, educated Arabs in Cairo and Tunis in 2011, but it is unclear if Russia's anti-corruption movement can effect real change. 'Tired of living below the poverty line' In Moscow, where the largest of dozens of protests took place, at least 500 people were detained -- carried and frog-marched into police vehicles. The authorities had warned that the rally, called by opposition leader Alexey Navalny, was against the law. A young geologist called Sergey Pravov was among those arrested. ""We started singing the national anthem,"" he told CNN. He added with a smile: ""We just got to the 'free country' part, when we were taken by the police and thrown into the bus."" He told CNN that young people had taken part because they ""are tired of the impunity of officials and their children and relatives who can get away with anything. "" ""They are tired of living below the poverty line while people they pay to rule wisely are swimming in gold,"" Pravov says. Pravov was eventually released, but Maksim Malysh was not as lucky. Malysh was charged with resisting a police officer and given ten days in jail. The 22-year-old says he was meeting a friend at a caf��, went outside to film the protest, and was immediately pushed to the ground. ""I didn't resist but they still beat me up,"" he says. ""They told me to relax my body. I did it and got hit on the head, dragged into the bus."" A photograph of Olga Lozina being carried away by police officers went viral. She told CNN she had just left a McDonald's on Pushkinskaya Square and wasn't even participating in the protest. When her mother protested the arrest of a young man, she was detained, as was Olga's sister. When Olga intervened, she too was arrested. ""I was in shock,"" Lozina told CNN. ""I took a few steps towards them and that was the moment when policeman grabbed me by the hand."" She said she was arrested and bundled into a bus with more than 30 others, and wasn't released from the police station until 6 am the following day. She has a court appearance next month for attending an illegal protest. Even though Lozina, a graduate of the Physical-Technical Institute in Moscow, had no plans to get involved in the rally, she said she agreed with Navalny, who for years has been a thorn in the side of the Kremlin. ""We all know that Russia is corrupted,"" she said. ""And Alexey Navalny just showed the schemes, the process, made it public, opened it to the public eye."" Corruption front and center Navalny has made corruption the big issue in his campaign against the government, and has focused on Prime Minister Dmitri Medvedev. An investigation by his Anti-Corruption Foundation, promoted in a slick 49-minute video posted online, claims Medvedev has amassed a ""corruption empire"" of lavish properties, luxury yachts, and vineyards across Russia. The video has been viewed more than 14 million times on YouTube alone. Medvedev's spokeswoman, Natalya Timakova, told state-run news agency RIA Novosti: ""It is pointless to comment on the propagandistic outbursts of a convicted opposition figure, who has already announced he is running some kind of election campaign and fighting against the authorities."" After being arrested on Sunday, Navalny said the protests had ""shown there are quite a large number of voters in Russia who support a candidate that speaks against corruption."" Journalist Mikhail Zygar sees a tempting target in Medvedev for Russia's fledgling opposition. ""The majority of under-25s in Russia think we have a genius foreign policy but a terrible domestic one,"" Zygara wrote on Facebook. They support Putin's actions abroad, he says, but think Medvedev incapable of enacting necessary social reforms at home. The Prime Minister has been criticized for seeming oblivious to hardship. When in Crimea last year meeting people who were complaining about inflation and hardship, Medvedev responded: ""There is no money. But hang in there."" The Kremlin reacts The government -- if not rattled by the latest demonstrations -- has certainly taken notice. Kremlin spokesman Dmitri Peskov claimed, without offering any evidence, that protest organizers had offered young people financial incentives to take part and had put them ""in a dangerous, life-threatening situation."" The Deputy Interior Minister, Igor Zubov, followed up with a darker warning, saying that ""if there is an increase in provocative actions in the future, the available arsenal which we can use is much wider."" But some Russian politicians have taken a more conciliatory line. On Wednesday Valentina Matviyenko, chairwoman of Russia's upper house of parliament, said government representatives ""must meet with people and understand why they protest."" ""Authorities should not simply [pretend] that nothing is happening,"" she said. Digital alternatives to state media Navalny has recognized that despite the immense reach of state media and the stifling of independent networks, the internet and social media offer an avenue to potential supporters. Websites such as Meduza, whose tagline is ""The Real Russia. Today,"" have found an audience eager for their alternative take on events. Opinion polls also suggest persistent anger with corruption. In the latest survey carried out by the Levada Center, 65% described corruption as absolutely unacceptable. Few Russians blame Putin: only 17% think corruption has worsened since he became President. But many say it's endemic: 45% believe Putin wouldn't succeed in fighting corruption, the highest percentage recorded in five years. Sergey Pravov, the young geologist, hopes he hasn't put his career at risk by taking part in Sunday's protest and getting arrested in the process. He insists he's not demanding nor expecting an ""immediate power-shift."" But he also says that Russia is far different from the Soviet Union and sees the possibility of change in decades to come. Younger Russians, he says, ""want to be in the future, they want to live in a different country.""", -3735,2017/3/30,http://www.cnn.com/2017/03/30/politics/inconvenient-sequel-trnd/index.html,Al Gore targets Trump in 'An Inconvenient Sequel',"(CNN)Nearly a decade after ""An Inconvenient Truth"" first hit theaters, former Vice President Al Gore is back and this time he has his sights set on President Donald Trump.","The trailer for ""An Inconvenient Sequel: Truth to Power"" was released on Tuesday and opens with a clip of Trump on the campaign trail. ""It's supposed to be 70 degrees today, it's freezing here. Speaking of global warming, where is we need some global warming,"" he jokes. While this joke may have gone over well with rally attendees, for Gore, the narrator and star of the film, this is no laughing matter. The trailer goes on to show images of wildfires and floods while audio clips of Trump promising to cut climate change funding play in the background setting him up as the movie's villain. The same day the trailer was released Trump signed an executive order curbing the federal government's enforcement of climate regulations giving the film's tagline -- fight like your world depends on it -- a whole new meaning. While it may be too soon to speculate box office numbers for the sequel, the film's predecessor,"" An Inconvenient Truth,"" grossed over 24 million dollars domestically and even garnered two Academy Awards.", -3736,2017/3/30,http://www.cnn.com/2017/03/30/politics/trump-outlook/index.html,Trump's outlook going from bad to worse,"(CNN)As the White House scans Washington for a bounce-back win after the Obamacare imbroglio, the political forecast is promising only heavy weather.","An unappetizing list of looming congressional showdowns, complex, months-long legislative challenges and intractable threats to President Donald Trump's standing threaten to make the failed health care push look like a small setback. Approaching sagas of a potential government shutdown, raising the debt ceiling and a moment of truth in the Senate over the potential ""nuclear option"" confirmation of Supreme Court pick Neil Gorsuch will severely test the political alacrity of a White House already exposed by the busted bid to repeal Obamacare. The administration is promising aggressive efforts to pass a generational tax reform bill and a bipartisan infrastructure package, though the current Washington environment suggests neither effort will be simple. Throw in the corrosive impact that the thickening cloud of intrigue over Russia's alleged election meddling is exerting on the White House, and add the challenges posed by the President's own habit of detonating political explosions that damage his own standing, and it's tough to predict the administration's first big political win -- or how much that victory will cost. ""Nobody ever told me that politics was going to be so much fun,"" Trump declared, perhaps ironically, at a White House reception for senators on Tuesday night. The challenges facing the new administration are testing enough. But they appear to be compounded by the unorthodox and inexperienced West Wing staff and organizational chaos. Almost daily, stories seep out of the administration about feuding between top officials and rival centers of power around Trump, including the camp led by political adviser Stephen Bannon and the family inner circle comprising his son-in-law Jared Kushner and his daughter Ivanka Trump, who announced Wednesday she would take an unpaid staff position. Still, Washington has a habit of writing off presidencies early on if administrations fail to get a fast start. A genuine effort by the Trump team to learn the lessons of its missteps -- and to follow through with the reboot that its public statements suggest is being contemplated -- could improve the odds of getting big things done. ""It is a very challenging environment but I think these guys have been in office for 60 days or whatever, they have never done it before,"" said Howard Schweitzer, a former Bush administration Treasury official now with Cozen O'Connor Public Strategies. ""If they get smarter, they can turn it around."" Opinion: Ivanka's role raises red flags Already, a shutdown showdown At the top of the list of political messes for the Republican majority and the White House is the possibility of a government shutdown that could occur on an inauspicious date, April 29, Trump's 100th day in office. Congress must pass and the President must sign a spending bill that authorizes federal funding to succeed a current temporary spending bill, known as a continuing resolution, the current version of which expires on April 28. The process of framing a bill to do so threatens to expose exactly the same Republican Party fissures between ultra-conservative members and more moderate GOP lawmakers ripped open by the Obamacare duel. It will also be an immediate test of House Speaker Paul Ryan's diminished authority after he failed to unite his caucus behind an effort to fulfill the one promise -- repealing Obamacare -- that has united his party this entire decade. Ryan admitted himself in the wreckage of the health care battle that the GOP House caucus had proven itself so far unsuited to government and retained many of the characteristics of an opposition party. The key to putting off a government shutdown, and to making progress on other key agenda items relies on Ryan convincing his troops to evolve. ""I don't want us to become a factionalized majority. I want us to become a unified majority, and that means we're going to sit down and talk things out until we get there and that's exactly what we're doing,"" Ryan said Tuesday. To that end, Ryan made clear that the only appropriate way to defund Planned Parenthood -- a key issue of principle for conservatives -- is on a future bill like health care, rather than on federal funding legislation. Such an approach is designed to ensure that the funding bill does not get weighed down with controversial measures that could delay or kill it. Meanwhile, Arizona Sen. John McCain vowed Tuesday to do everything he could to force lawmakers to increase military spending in the bill, setting up another fault line. Tax reform isn't a quick win, either Keeping the government running is an obligation -- but Republicans, especially the President, are eager to dispel the unflattering reviews of their performance on Obamacare by moving onto another goal, tax reform. The effort is likely to be even more complicated than health care, given the complexity of the tax code and the vested interests it touches that are vitally important to the outside lobby groups that turn the screws on lawmakers. ""If you think this is complicated and controversial, wait until we get into tax reform,"" Rep. Mario Diaz-Balart, R-Florida, said of the health care process. Tax reform is also going to take time -- and is not therefore the kind of issue that is likely to produce a quick win to turn around a White House rough patch. Nuclear over Gorsuch? The complications of tax reform and funding the government are one reason why the White House is looking for a clean win on the confirmation of Gorsuch -- a process that could be completed by the end of next week. Yet even this victory will exert a price. If Senate Majority Leader Mitch McConnell is forced by Democratic opposition to invoke the nuclear option -- changing Senate rules to get around a Senate filibuster for Supreme Court nominees -- poisoned feelings could linger in the chamber for years. Such a step would inflame passions even more in polarized Washington and likely leave Democrats even more resistant to crossing the aisle and working with Trump. Already, there was little incentive to support a struggling GOP President, given his zeal in repealing the Democratic legacy item, Obamacare. Many Democrats are still fuming over what they consider the ""stolen"" nomination of President Barack Obama's Supreme Court pick Merrick Garland last year. And Trump's low approval rating -- 36% in the latest Gallup tracking poll and rock bottom reputation among Democratic voters, means Democrats have little political room to work with Trump even if they wanted to. Trump, however, has reacted to the defeat of health care by predicting that Democrats will be willing to work with him down the road, especially if Obamacare spirals into decline. Ryan, in turn, is using that prospect to warn his own party about the risk of remaining divided. ""What I am worried about is ... that if we don't do this then he will just go work with Democrats to try and change Obamacare -- that's hardly a conservative thing,"" Ryan told CBS's ""This Morning"" Thursday. Russia isn't going away, either From its first hours, the administration has been hounded by the question of whether Trump campaign aides cooperated with an alleged Russian effort to influence the presidential election in favor of Trump. Pressure builds week by week, as revelations emerge over meetings between people in Trump's orbit and Russian officials -- and as the President's aides and former aides get drawn deeper into congressional probes into the affair. This week, Kushner said he would appear before the committee, after it was revealed he met the head of a Russian development bank closely linked to President Vladimir Putin. While the White House is being accused of trying to knock the House investigation, led by under fire intelligence committee Chairman Devin Nunes, off-track, it faces a greater challenge with a parallel Senate probe. The Republican and Democratic leaders of that effort, Sens. Richard Burr and Mark Warner, appeared together on Wednesday to pledge a complete and organized investigation -- implicitly drawing a contrast with the chaotic effort that has been rocked by mistrust and partisan wrangling in the House. ""It's important for us at least, and I think for all of us here to remember to not lose sight about what this investigation is about: an outside, foreign adversary effectively sought to hijack our most critical democratic process, the election of a president,"" Warner said on Thursday. ""We're here to assure you and more importantly, the American people who are watching and listening, that we will get to the bottom of this."" If those lofty goals are realized, the Russia issue could get even more difficult for the White House, as it searches in vain for low-hanging political fruit following a fraught start to the President's tenure.", -3737,2017/3/30,http://www.cnn.com/2017/03/30/politics/donald-trump-white-house-staff/index.html,White House staff shake-up comes in wake of health care debacle,"(CNN)President Donald Trump on Thursday shook up his senior West Wing staff, days after his administration faced its first major legislative setback in failing to pass a bill to repeal and replace Obamacare.","Katie Walsh, the White House's deputy chief of staff, will join a nonprofit group supporting the President's agenda, the President's top aides said Thursday. The move marks the second departure of a senior White House official in the first months of the administration, following national security adviser Michael Flynn's forced resignation last month. It also represents a major change in the makeup of the White House's top staff that could shift the power dynamics within the West Wing as Walsh was a close ally of White House chief of staff Reince Priebus. Walsh was Priebus' deputy, joining him in the administration after serving as his chief of staff when he was chairman of the Republican National Committee. She is now set to serve as a senior adviser to America First Policies, a nonprofit group helmed by former Trump campaign officials that has struggled to get off the ground in the first months of Trump's presidency. A senior White House official insisted that Walsh was ""not being fired."" A source familiar with the inner workings of the White House who called the move a ""tremendous loss,"" and noted the frustration inside the White House after the administration's failure to get Republicans to coalesce around a health care bill supported by Trump and House Speaker Paul Ryan. The official said Walsh saw a need to better organize support for the White House's initiatives on the outside. ""It was a very collective conversation that we could have moved the health care message more effectively,"" the White House official said. Two senior White House officials dismissed the notion that Walsh's departure signaled Priebus could be next to leave. ""Reince is not next,"" said one senior White House official. Asked at Thursday's daily briefing if there would be additional staff shake-ups following Walsh's departure, White House press secretary Sean Spicer responded: ""No."" The triumvirate of top White House officials -- Priebus, chief strategist Steve Bannon and Trump's son-in-law and senior adviser Jared Kushner -- sang Walsh's praises during a briefing Thursday in Priebus' West Wing office with a small group of reporters. Bannon called her ""the vital link that pulls things together and makes things happen,"" while Kushner called her ""one of the unsung heroes of the campaign"" and lauded the ""sacrifice she is making."" Priebus stressed that the decision for Walsh to leave the White House for the outside political group came after it became ""abundantly clear we didn't have air cover"" during the health care debate. ""Nobody can fix this problem better than Katie Walsh,"" Priebus said. The three top advisers to the President said they jointly agreed for Walsh to leave for the outside group, but said the idea originated with Walsh. America First Policies, once envisioned as the marquee outside group to bolster Trump's political objectives. It has sputtered in the opening months of its presidency, having done no television advertising on behalf of Trump's Supreme Court nomination, and only began spending to prevent the White House's embarrassing defeat over Obamacare on the final day of the weeks-long debate. Just this week, the family expected to be its principal funders, the Mercer family of New York, defected to a rival nonprofit, Making America Great. They brought with them one of the operatives initially slated to work at America First -- Dave Bossie, a Mercer hand who had served as deputy campaign manager.", -3738,2017/3/30,http://www.cnn.com/2017/03/29/politics/hawaii-trump-travel-ban-extended/index.html,Federal judge in Hawaii extends ruling halting travel ban indefinitely,(CNN)A federal judge in Hawaii granted the state's request for a longer-term halt of the revised travel ban executive order Wednesday.,"US District Court Judge Derrick Watson blocked the core provisions of the revised executive order two weeks ago, concluding that the order likely violates the Establishment Clause of the Constitution by disfavoring Muslims. But Watson's earlier decision was only a limited freeze of the executive order through a temporary restraining order. Read the ruling As a result, the plaintiffs asked the judge to convert that decision into a longer-term preliminary injunction and Watson agreed Wednesday night, meaning that the President's 90-day ban on foreign nationals from six Muslim-majority countries and the 120-ban on all refugees entering the country are now blocked indefinitely, unless any higher court changes Watson's order or the state's lawsuit is otherwise resolved. The Justice Department said Thursday morning it will continue to defend the executive order. ""The Justice Department strongly disagrees with the federal district court's ruling. The President's executive order fails squarely within his lawful authority in seeking to protect our nation's security, and the department will continue to defend this executive order in the courts,"" a department spokesperson said in a statement. These Muslim Americans approve of the travel ban One of the practical implications of Wednesday's decision is that the Justice Department may now immediately appeal the ruling to the 9th Circuit Court of Appeals, should it choose to do so. But how long it will take for any appeals to be completed remains unclear. The reasoning in Watson's decision Wednesday largely follows his decision from two weeks ago, which used Supreme Court precedent to conclude that Donald Trump's statements about Muslims during the presidential campaign speak to the constitutionality of the executive order. ""The court will not crawl into a corner, pull the shutters closed, and pretend it has not seen what it has,"" Watson wrote Wednesday. Trump's new travel ban blocked: What you need to know ""The court concludes that, on the record before it, plaintiffs have met their burden of establishing a strong likelihood of success on the merits of their Establishment Clause claim."" How Trump's 'Muslim ban' comments can hurt his travel ban case DOJ has separately appealed a different federal judge's decision to halt the 90-day travel ban to the 4th Circuit Court of Appeals.", -3739,2017/3/30,http://www.cnn.com/2017/03/30/politics/ivanka-trump-jason-miller-nepotism-cnntv/index.html,Trump ally: Ivanka Trump's new gig isn't nepotism because she isn't being paid,(CNN)A former spokesman for President Donald Trump's campaign said Thursday that Ivanka Trump's decision to join the White House staff is not nepotism because the President's daughter will work for free.,"President Donald Trump's oldest daughter will be an ""adviser"" to the President and will file her own Form 278, which means she is legally bound by ethics rules. Critics, however, claim that Trump's hiring violates federal nepotism laws. CNN's Alisyn Camerota asked Jason Miller on ""New Day"" Thursday: ""The one thing I don't understand is how is this not nepotism?"" ""Well, I mean, how is it nepotism?"" Miller, a Trump surrogate, replied. ""Because she's the daughter of the President, that's how it's nepotism,"" Camerota responded. ""She's working for free. She's volunteering her time and effort for the good of the country,"" Miller said. ""Everybody from the White House counsel to the (Department of Justice) has said that this doesn't violate any sort of nepotism rules."" Speaking during the same segment, former White House ethics czar Norman Eisen said that both the Barack Obama and George W. Bush administrations included the White House in its interpretation of the federal nepotism law, passed in 1967, that says no public official -- from the President down to a low-level manager at a federal agency -- may hire or promote a relative. But the law states that any appointee found to have violated the law is ""not entitled to pay"" by the federal government, which appears to offer the opportunity for Trump and Jared Kushner, her husband, to forgo paychecks while still serving the administration. Kushner, a top Donald Trump aide, is also serving the White House as an unpaid government employee. A source has told CNN that the decision to make Ivanka Trump officially an employee was made after there was great ""unease"" expressed by about the nature of her voluntary role. ""I have heard the concerns some have with my advising the President in my personal capacity while voluntarily complying with all ethics rules, and I will instead serve as an unpaid employee in the White House Office, subject to all of the same rules as other federal employees,"" Ivanka Trump said in a statement. ""Throughout this process, I have been working closely and in good faith with the White House counsel and my personal counsel to address the unprecedented nature of my role.""", -3740,2017/3/30,http://www.huffingtonpost.com/2017/03/28/grace-and-frankie-aging-season-3_n_15711504.html,'Grace And Frankie' Totally Nails What It Means To Be Getting Older,Season 3 of the Netflix series gets a lot right -- and it's funny.,"-The Netflix original series ""Grace and Frankie""ame back with a vengeance for its third season. The story of two 70-something women who become unlikely friends after their husbands announce they are in love totally nails the aging experience in Season 3. Here's what it gets pitch-perfect. Of course, beware of spoilers.- Grace (Jane Fonda) has a solid track record of launching and managing a successful business, but to the baby-faced banker named Derrick who she and Frankie (Lily Tomlin) approach for a 10-year, $75,000 business loan, she is unworthy. Actually, it was probably a combination of their gender, their ages, and the fact that the product they want to sell is a lightweight vibrator for women who have arthritic hands. The very-idea of older people having sex has been known to gross out some younger people.-Note that Derrick closes his office door at the first mention of the vibrator. As for age and sex discrimination, banks are regulated by the Equal Credit Opportunity Act, which prohibits discrimination on many fronts, including age and sex.-But this is one of those cases where there is the law, and then there is the reality. The law does not require banks to make bad loans. Banks live in fear of the four D's: death, disability, divorce and drugs. That's because the four D's can lead to a fifth D: default.-While things can happen to all borrowers, death and disability happen to older borrowers more often. Plus, older business borrowers aren""t great guarantors ""?especially if, like Grace, they're been successful and are smart. Successful, smart people generally know to tie up their assets in retirement plans or trusts, which creditors can""t touch.-If the borrowers die or are disabled, the bank is left dealing with heirs, who know nothing about the borrowers""?business. So it was no surprise that the banker Derrick blanched at the idea of making a 10-year loan to Grace and Frankie, who are both north of 70. Derrick was probably wondering whether they would survive long enough to repay the loan.-Even the well-regarded Ewing Marion Kauffman Foundation's Index of Entrepreneurial Activity -the bible for tracking trends in entrepreneurship ""?stops counting at age 64. Maybe the Small Business Administration-needs to realize that people are living longer and healthier, and sometimes our second chapters could use some underwriting ""?even when we start them a bit later. Sometimes, we don""t succeed in resolving our issues with our parents before death slams shut the window of opportunity. Martin Sheen's character, Robert, visits his elderly and very disagreeable mother to tell her that he has married Sol, the man she previously referred to as-""the loud, tall Jew at the law firm.""?From her wheelchair in a well-appointed nursing home, she reacts with predictable disapproval, leaving Robert visibly crushed. The scene scores an additional point for realistic aging: Some of us never stop seeking parental approval, regardless of our age.- Without anything resembling kindness, the ""Irish Voldemort""?""?as Robert's spouse Sol calls the tyrant mother ""?attacks her son as a-""selfish man.""?""I could have happily died never knowing that you were one of them,""?she adds. Caregiving-is a tough and unreasonable job if there ever was one. And it frequently involves caring for a disagreeable parent ""?even a parent who has harmed us and with whom we have a strained relationship. And then they die, leaving us wondering what else we could have done.- Retirement is a mixed bag of worries. Can we afford it? What will we do all day? Will we be bored? Robert has retired and wants Sol to, as well. Sol insists he must still go into the office at least three days a week to ""help Bud""?run the law firm. It isn""t until Sol attempts to fire his quirky longtime secretary, Joan-Margaret, that he realizes it's time for him to hang up his law shingle as well ""?not because he's ready to retire, but because Bud and the law firm need him to.- Most experts believe that solid retirement planning includes knowing how you will fill your days. The Institute of Economic Affairs,-a London-based think tank,-says that following an initial boost in health, retirement increases your risk of clinical depression by 40 percent, while raising your chance of being diagnosed with a physical condition by 60 percent. Lisa Berkman, a Harvard professor of public policy, cites social isolation as a-significant factor in longevity. If you'r socially isolated, you may experience poorer health and a shorter lifespan. Grace's daughter, Brianna, in cahoots with Frankie, loans the business the money it needs. But she loses her status as secret benefactor a few episodes later, and Grace is enraged. ""I don""t want my children's help,""?she says. Not wanting your children's help is a precursor to not wanting to be a burden. Same idea, and it's real. Taking help from those who you are used to taking care of feels demeaning. If the parent-child roles haven""t legitimately reversed yet, don""t be like Brianna. After both women throw out their backs and can""t get off the floor, Bud gifts them high-tech wearable alert buttons that hang on a chain around the neck.-Grace removes one of her high heels to smash the device. Frankie, who has an outlandish outfit that she says it will go with, wears hers to a business meeting, where she inadvertently activates it and alerts an ambulance to rescue her. It's a funny schtick, and both actresses pull off the comedy magnificently. But it also rings true when it comes to how adult children see older people. Can we please hold off on the Granny-cam? Vybrant's proposed new business partner hopes to woo Grace and Frankie with a peek at a proposed ad campaign. It features photos of the two of them ""?but when they were 20 years younger. Yes, even a product designed for older women is afraid to show them. Grace and Frankie hold their ground.- About 10,000 people a day turn 65. And pretty soon, there will be more older people than younger ones. More to the point: Boomers have more disposable income than any other generation, but they still can""t even find a box of hair coloring where the model even remotely looks like them.- According to a Nielsen study, by the end of 2017, boomers will control 70 percent of the country's disposable income. Nearly 60 percent of homeowners over 65 are not weighed down by mortgages, compared with just 11 percent of 35- to 44-year-olds. And boomers account for 80 percent of America's luxury travel spending, says AARP.- Frankie's art show opening may not have been a rousing financial success, but she rightfully deserves the victory lap she takes for having done it. And kudos to her for giving away the yellow painting that represented Sol's dislike for mustard. Let bygones be bygones. Chasing your dreams is something you hear a lot about when you reach the end of your working years. Second chapters, next acts ""?whatever you want to call it ""?it means following your passions-and making the time to do whatever it is you want to do, which for us is finishing watching Season 3.- Share this slide: We'r basically your best friend""?with better taste. Learn more", -3741,2017/3/30,http://www.huffingtonpost.com/2017/03/30/how-these-divorced-parents-are-keeping-up-a-sweet-family-tradition_n_15711416.html,How These Divorced Parents Are Keeping Up A Sweet Family Tradition,"""We are not simply ex-husband and ex-wife ""?we are parents to Bruce, first.""","Victoria Baldwin and Adam Dyson were married for about three years before getting divorced in early 2015. Together, they have a 4-year-old son named Bruce. A professional photographer, Baldwin says she only has a few photos from her childhood and that none of them include both of her parents, who were also divorced. So when she booked a photo session for herself and her son two years ago, she called Dyson and asked him if he would like to come along. A year later, they recreated the tradition of taking a family photo that included both parents.- ""now that we no longer live in the same state, we planned this most recent photo with intention, because it been over a year since our last photo, and Bruce is spending longer periods with one parent due to our relocations,""?Baldwin told The Huffington Post.- The mom shared her story, along with four family photos ""?two from when the couple was married and two taken after their divorce ""?on the Love What Matters Facebook page, where it's been ""liked""?over 13,000 times.- ""We are not in love, we don""t always agree, we'r not best friends, sometimes we don""t even like one another. But you know what we are? We are forever connected because of our beautiful, smart, kind, compassionate, funny son,""?the mom wrote in her post. Even weeks before the divorce was finalized, the co-parents went out of their way to celebrate holidays like birthdays, Christmas, Father's Day and Mother's Day together for at least a few hours. Now that they live farther away from one another, the photo shoot is one way they have made the extra effort to give their child family memories where everyone is together.- ""Adam and I are not perfect co-parents, but we made a deal when we got divorced, to put our son first and to value the richness that we each bring to his life, for different reasons,""?she wrote. "" yes, we still have a family portrait taken, and I still pay good money to have the images printed, framed, and placed in our son's bedroom; he may not grow up with parents who live in the same house... but he will grow up to see respect, kindness, empathy, compassion, perseverance, flexibility, and even sacrifice being modeled by both of his parents and he will know it is possible to fall out of love but never fall apart.""?Baldwin says that despite the hurt feelings that inevitably accompany a divorce, she makes a genuine effort not to act on emotions and instead to place their son's wellbeing at the forefront of the former couple's interactions. - Growing up as a child of divorce, Baldwin often felt as if she was leading two separate lives with two separate parents and wants to set a different example for her son. While Baldwin and Dyson have both entered and left other relationships since their divorce, they have always maintained their present relationship as two people who are no longer together, but who are ""loving their son together.""?""We go above and beyond to include one another because we are not simply ex-husband and ex-wife ""?we are parents to Bruce, first, foremost, and most importantly,""?Baldwin told The Huffington Post.-""We hope that Bruce learns that you can still have someone in your life, even if they aren""t romantic any more, and especially if they are the parent of your child.""?The HuffPost Parents newsletter, So You Want To Raise A Feminist, offers the latest stories and news in progressive parenting. Start here, with the latest stories and news in progressive parenting. Learn more", -3742,2017/3/30,http://www.huffingtonpost.com/2017/03/30/sean-spicer-devin-nunes-white-house-source_n_15711352.html,Sean Spicer Gives Bizarre Non-Denial Of News Story That Said White House Sources Helped Devin Nunes,"""If I start going down the path of confirming and denying one thing, we'r going down a very slippery slope.""","WASHINGTON ""?Sean Spicer would neither confirm nor deny on Thursday-a New York Times""?report-that two White House officials may have been sources for House Intelligence Committee Chairman Devin Nunes (R-Calif.). The White House press secretary dodged questions during his daily briefing by bizarrely claiming it was not his job to answer them.- Spicer said reporters asking questions about it ""Assumes that the reporting is correct,""?but he did not deny the report outright. ""In order to comment on that story would be to validate certain things that I'm not at liberty to do,""?he said. He then repeatedly lectured reporters for not focusing on ""the substance,""?even though one major mystery of Nunes""?handling of his investigation of ties between President Donald Trump's administration and Russian officials concerns why he was meeting with an unnamed source on White House grounds the day before alleging Trump's team was subject to ""incidental""?surveillance. ""Your obsession with who talked to whom and when is not the answer here. It should be the substance,""?Spicer said. ""In the same way that when you guys print a story with 18 anonymous sources, your obsession is the substance. It seems now that you continue to look at it from a backwards prism, which is, you know, ""�What happened? Who drove in what gate? Who did they meet with? What were they wearing?""?As opposed to the substance.""?""I never said we would provide you answers. I said we would look into it,""?he added later. ""If I start going down the path of confirming and denying one thing, we'r going down a very slippery slope,""?he said. ""I""ve made my position very clear on that.""?Yet earlier this week, Spicer vigorously denied a Washington Post report-that said White House officials tried to block former acting Attorney General Sally Yates from testifying at a hearing that Nunes later canceled, based on letters the paper obtained. ""the Washington Post story is entirely false,""?Spicer said in a statement. ""the White House has taken no action to prevent Sally Yates from testifying and the Department of Justice specifically told her that it would not stop her and to suggest otherwise is completely irresponsible.""?Do you have information you want to share with the Huffington Post? Here's how. Share this slide: How will Trump's administration impact you? Learn more", -3743,2017/3/30,http://www.huffingtonpost.com/2017/03/30/vantablack-20-color-black_n_15710860.html,'World's Blackest Black' Outdone By Even Blacker Black,"Researchers describe it as a ""Coating so black that our spectrometers can""t measure it!""?,Behold the two artworks above. The one on the left appears like a standard sculpture", a three-dimensional rendering of a mustachioed man's face. The sculpture on the right, three-dimensional sculptures -3744,2017/3/30,http://www.huffingtonpost.com/2017/03/29/jacob-sartorius-bingo-video_n_15710700.html,Jacob Sartorius Falls For A Girl On Instagram In His New Music Video,It's a social media love story!,"To read our exclusive interview with Jacob Sartorius and hear more about his celebrity crush, click-here and subscribe! Rising star Jacob Sartorius first found fame on social media, lip-syncing to top hits on Musical.ly. Now he's making songs of his own and breaking into the industry. The 14-year-old singer released his debut EP, ""the Last Text,""?in January. In an exclusive interview with The Huffington Post, Sartorius promised 2017 will be a pivotal year in his career, filled with upcoming projects that his fans will seriously enjoy.-""I don""t know if they'r ready, honestly,""?he said. Well, the music video for his hit song ""Bingo""?dropped on Thursday, and it appears Sartorius keeps his promises. The video's plot is all about Sartorius crushing on a girl on Instagram.-Yes, this is a digital-age love story, you guys. Who knew that romance could blossom all thanks to a couple of fire Instagram selfies? As if that romantic plotline wasn""t already adorable enough, Jiff the Pomeranian makes a guest appearance.- In an interview with J-14, the singer said he had a blast shooting the msuic video. ""It was really fun creating this video. I am pretty close will all of the people who were on set, so during our breaks we would all make funny videos for social media and just have a really good time.""?With 8 million Instagram followers, over 170 million total views on YouTube, and 1.21 million Twitter followers, it's safe to say this social media celebrity has seriously dedicated fans. We can""t wait to see what 2017 has in store for Sartorius. Tina Fey, Alec Baldwin, Mahershala Ali, Amy Poehler and a whole host of other stars are teaming up for Stand for Rights: A Benefit for the ACLU.-Join us at 7 p.m.-Eastern on Friday, March 31, on Facebook Live.- You can support the ACLU right away. Text POWER to 20222 to give $10 to the ACLU. The ACLU will call you to explain other actions you can take to help. Visit-www.hmgf.org/t-for terms. #StandForRights2017 Get exclusive interviews where your favorite celebs spill the tea. Learn more", -3745,2017/3/30,http://www.huffingtonpost.com/2017/03/30/ricardo-medina-jr-sentenced-to-6-years_n_15710698.html,Former 'Power Rangers' Actor Sentenced To 6 Years In Prison For Manslaughter,The 38-year-old pleaded guilty to the charge earlier this month.,"Ricardo Medina Jr., a former star ""Power Rangers Wild Force""?star, was sentenced to six years in state prison for the stabbing death of Josh Sutter,-a representative for the Los Angeles County District Attorney's Office confirmed to The Huffington Post.- Sutter was identified as Medina's roommate by the LA County DA's Office, though Medina's attorney reportedly said the two were just friends, not roommates, according to KTLA.- Medina Jr. pleaded guilty earlier this month to one felony count of voluntary manslaughter and admitted to stabbing Sutter with a sword. Six years was the maximum sentence.- The 38-year-old actor was arrested for the crime back in January, after he and Sutter allegedly got into an argument that turned physical.- According to LA County Sheriff's Department, Sutter forced himself into Medina's bedroom, where Medina had gone with his girlfriend in the midst of the argument. The actor then stabbed Sutter with a sword he kept in his room. Afterward, Medina reportedly called police and was arrested when they arrived. The actor was held in jail for short period, but was released after a few days because the DA's office declined to file charges against him. The DA did, however, ask the LA County Sheriff's Department-to continue their investigation into the incident, ABC7 reported.- At the time, Bell said the case was ""A self-defense case,""?according to ABC7. Medina is best known for playing Cole Evans/Red Lion Wild Force Ranger in 2002's ""Power Rangers Wild Force.""?He also played Dekker in ""Power Rangers Samurai""?in 2011""?012 and has had small parts on ""ER""?and ""CSI: Miami.""The Huffington Post has reached out to Medina's lawyer for further information and will update this post accordingly.-- Share this slide: THE spot for your favorite fan theories and the best Netflix recs. Learn more", -3746,2017/3/30,http://www.huffingtonpost.com/2017/03/30/george-clooney-says-hes-ready-for-fatherhood-thanks-to-his-er-role_n_15710694.html,George Clooney Says He's Ready For Fatherhood Thanks To His 'ER' Role,Sound logic.,"George Clooney is ready to be a dad. Appearing at CinemaCon in Las Vegas, the actor and father-to-be told E! News that he's excited for parenthood and feeling prepared. ""I played a pediatrician on ""�ER. So I know how to work on extra children ... If there's any accidents, I'm there. I'm the guy,""?he joked. In February, the news broke that the actor and his wife, human rights attorney Amal Clooney, are expecting twins, reportedly due this summer. ""I didn""t know that we have kids,""?he said. ""I was very happy that we were going to get married and then [having kids]-seemed like the next step.""?Clooney added that he and Amal haven""t chosen baby names yet.-- ""I""ve had friends who picked out names around their parents, and then it becomes, whatever name you picked, it's like, ""I hate that name,""?""That guy was a prime minister""?Can""t call her Susan. You remember your Aunt Susan?""?On Tuesday, the actor joked that his wife has already nixed a few names, including his suggestion of ""Casa and Amigos""?- Said Clooney, ""It was just a thought. I mean, you know, it's a family business.""?We have a feeling this guy is going to have a knack for dad jokes. Share this slide: Start here, with the latest stories and news in progressive parenting. Learn more", -3747,2017/3/30,http://www.huffingtonpost.com/2017/03/30/moms-heartwarming-photos-show-the-love-between-kids-and-grandparents_n_15710676.html,Mom's Heartwarming Photos Show The Love Between Kids And Grandparents,"""The moments reflected in them are so pure and candid.""","Photographer-Ivette Ivens""� gorgeous new series puts the bonds between kids and grandparents on display. For her new photos series titled ""Generations,""?Ivens took photos of her sons, 5-year-old Kevin and 2-year-old Dilan, with her parents, Romualdas and Jadvyga. The Lithuanian-born photographer moved to the United States and splits her time between Hawaii and Chicago with her family. Her parents, who still live in Lithuania, usually come to the United States to see their grandkids just once a year. Ivens said that when her parents come to stay, her kids get ""so excited""?they forget she and her husband even exist. It's OK though, since it gives her time to capture some candid moments.- ""the photos are not staged, and the moments reflected in them are so pure and candid,""?she told The Huffington Post. ""Children and grandparents don""t try to pose, they don""t care what they are wearing, they don""t try to show off their best features. Sometimes when I shoot parents and their children, the mom will go get her hair and makeup done, have her outfits planned and so on. The photos are still beautiful, but they are not a reflection of a candid moment in life.""?The ""Generation""?series includes photos taken over a span of three months. Ivens, who is currently working on the second edition of her popular Breastfeeding Goddesses book of photos, told HuffPost she loves that her parents get to see her kids in their own environment, and that she can tell how much they influence her family. ""I think like any grandparent/grandchild relationship, the children are fascinated by the different games they play and they love listening to their stories,""?she said. Ivens said her favorite photo from the series is the one she took as her children slept in bed with their grandparents.- ""It was such a sincere and quiet moment. I'm so happy I had my camera with me,""?she said.- Though the kids don""t get to see their grandparents often, Ivens is thankful for their time together. She especially appreciates all the things her parents pass on to her sons. ""Ty parents teach my children things they could never learn from any book, and even though they are so young, somehow I think the boys intuitively understand that,""?she said. See more of the ""Generation""?series below and check out Ivens""?work on her site and on Facebook. The HuffPost Parents newsletter, So You Want To Raise A Feminist, offers the latest stories and news in progressive parenting.- Start here, with the latest stories and news in progressive parenting. Learn more", -3748,2017/3/30,http://www.huffingtonpost.com/2017/03/30/trump-fair-pay-lgbtq_n_15710674.html,Trump Signs Law Quietly Undercutting Obama's Protections For LGBTQ Workers,It makes it harder for the federal government to track which contractors are discriminating.,"WASHINGTON ""?President Donald Trump-signed-legislation-Monday that makes it harder for the federal government to keep track of companies""?labor violations when awarding contracts. Under rules written during President Barack Obama's administration,-firms that bid on federal contracts would have to disclose their labor violations from the previous three years, including on laws pertaining to collective bargaining, safety and wages. They wouldn""t necessarily be barred from winning a contract, but they would have to come into compliance with the law. The GOP-controlled House and Senate voted to overturn those rules, and Trump promised to ""remove every job-killing regulation-we can find""?when he signed the bill. But a less-noticed effect of this law is that it also undercuts Obama's executive order protecting lesbian, gay, bisexual, transgender and queer contractors from discrimination ""?an order that, so far, Trump has promised to keep intact.- On July 21, 2014, Obama signed an order-barring federal contractors from discrimination on the basis of sexual orientation and gender identity. Race, color, religion, sex and national origin were already protected categories. That same day, he signed the Fair Pay and Workplaces executive order, which required the disclosure of violations and compliance with labor laws ""?including the newly expanded anti-discrimination measure.- But congressional Republicans and Trump effectively killed the regulations that came from the Fair Pay and Workplaces executive order, making it harder for the federal government to ensure that contractors are complying with the law. ""the [LGBTQ] executive order still exists,""?said Camilla Taylor, senior counsel with Lambda Legal. ""It's still the law that federal contractors are not permitted to discriminate. The problem is contracting officers are not going to be given disclosures about when they do. So the ability of federal contracting officials to deny contracts to bad actors has been gutted.""?""It's clear the president does not value workers across the board, including but not limited to, LGBTQ workers,""?added Sarah Warbelow, legal director at the Human Rights Campaign. There are other ways the federal government could still discover labor violations from companies bidding on contracts. But under the measure signed by Trump, the Office of Federal Contract Compliance Programs ""?which is part of the Department of Labor ""?has less authority to enforce the rules. David Stacy, HRC's government affairs director, said he doesn""t think the Trump administration deliberately used the repeal of the Fair Pay and Workplaces rules to undercut the LGBTQ executive order. But it still showed the president is ""willing to override protections regardless of its impact on LGBTQ people.""?Taylor, however, said it was ""Absolutely""?an attempt to undermine Obama's protections. ""how meaningful are your protections if companies aren""t required to disclose when they violate the law? The ability of the federal government to deny federal contracts on such a basis have been taken away,""?she said. ""ourprotections are only as valuable as the enforcement tools are effective.""?LGBTQ advocates anticipate that Trump may also release a so-called ""religious liberty""?executive order at some point, which could allow people and organizations to discriminate against LGBTQ people if their ""Conscience""?told them it was fine. In early February, a draft of such an order leaked, although it has not yet been issued. The White House has insisted that Trump is ""respectful and supportive of LGBTQ rights.""Want more updates from Amanda Terkel? Sign up for her newsletter, Piping Hot Truth, here. Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3749,2017/3/30,http://www.huffingtonpost.com/2017/03/30/donald-trump-russian-active-measures-disinformation_n_15710670.html,"Russian Disinformation Works Because Donald Trump ""�Parrots The Same Lines,""?Cyber Expert Testifies","When Russian state-owned media put out false information, Trump has helped spread it.","WASHINGTON ""?President Donald Trump aided Moscow's disinformation campaign during the 2016 U.S. election by spreading false information originating from Russian state-sponsored news outlets and internet bots, a cybersecurity expert testified before Congress on Thursday. ""Part of the reason active measures have worked in this U.S. election is because the commander in chief has used Russian active measures, at times, against his opponents,""?Clint Watts, a fellow at the Foreign Policy Research Institute, told members of the Senate intelligence committee during the panel's first public hearing on Russian election interference since Trump's inauguration in January. The charge from Watts, a former FBI Special Agent who tracks Russian influence operations, came in response to a question from Republican Sen. James Lankford (Okla.), who asked why Russian President Vladimir Putin believed he could get away with interfering in last year's U.S. elections. ""they parrot the same lines,""?Watts responded, referring to Trump and Moscow. ""�[Trump] denies the intel from the United States about Russia. He claimed that the election could be rigged. That was the No. 1 theme pushed by RT, Sputnik news,""?Watts continued. ""He's made claims of voter fraud, that President Obama is not a citizen, that ""?Congressman Cruz is not a citizen.""?In some instances, Trump and his campaign team propagated fake stories they appear to have learned about directly from Russian state media. Last year, then-campaign chairman Paul Manafort accused the U.S. media of failing to cover a terrorist attack against the NATO air base in Incirlik, Turkey. There was no such attack ""?but RT, Sputnik and pro-Russian Twitter accounts pushed a series of stories suggesting Incirlik was under threat. According to Watts, pro-Russian Twitter accounts noticed Trump's loose relationship with facts and sought to capitalize on it. They ""gweet at President Trump during high volumes when they know he's online and they push conspiracy theories,""?Watts testified. The U.S. intelligence community released a public assessment in January concluding that the Russian government used a campaign of false information and cyber hacking efforts to discredit Democratic candidate Hillary Clinton and help Trump win the 2016 election. There is an ongoing FBI-led investigation into Moscow's alleged efforts and possible collusion with the Trump team. The House and Senate intelligence committees are conducting their own separate probes into the matter. While the Kremlin appeared to favor Trump in the 2016 presidential election, there are indications that Moscow has sought to undermine Republican politicians as well, Watts said Thursday. During the presidential primary races, Russian media outlets ""sought to sideline opponents on both sides of the political spectrum with adversarial views towards the Kremlin,""?Watts said. Turning his gaze toward Sen. Marco Rubio (R-Fla.), a committee member and a GOP presidential candidate last year, Watts said, ""senator Rubio, in my opinion you, anecdotally, suffered from these efforts.""?This past week, Watts continued, social media accounts pushed material discrediting Speaker of the House Paul Ryan (R-Wis). Ryan's office did not respond to a request for comment. Rubio, who did not immediately respond to Watts""?claim, later confirmed that former members of his presidential campaign team were targeted by IP addresses that traced back to an unknown location within Russia. According to Rubio, the attempted breaches occurred in July 2016, shortly after he announced he would run for Senate re-election, and again this week, at 10:45 a.m. on Wednesday. Both attempts were unsuccessful, he said. It's likely Moscow will turn against Trump as it becomes politically and strategically prudent to do so, Watts warned. ""they win because they play both sides,""?he said. Russia began developing its active measures campaign in 2009, with its capabilities progressing all the way up until the 2016 election, Watts said. The U.S. was slow to catch on to the threat, he charged, because the intelligence community has been ""Aver-focused on terrorism""?and biased against open-source information. ""Ty two colleagues and I use three laptops and we do this at our house,""?Watts said. ""But for some reason, the entire intel apparatus, with billions of dollars, will miss a tweet or a Facebook post that's right in front of them.""?Do you have information you want to share with the Huffington Post? Here's how. How will Trump's administration impact you? Learn more", -3750,2017/3/30,http://www.huffingtonpost.com/2017/03/30/abraham-poincheval-lay-egg_n_15710658.html,French Artist Hopes His Latest Work Lays An Egg,"The artist says, ""I will, broadly speaking, become a chicken.""?,French artist Abraham Poincheval", who famously spent two weeks inside a bear sculpture and a week inside a rock, become a chicken -3751,2017/3/30,http://www.huffingtonpost.com/2017/03/30/hiv-aids-animated-video_n_15710656.html,Heartwarming Animated Clip Tackles Lingering Myths About HIV/AIDS,"Get ready to be quizzed by ""Dr. Pill.""","A humorous and heartwarming new animated video aims to clear up lingering confusion that young people may have about HIV/AIDS.- Produced by AMAZE, an online sex education resource for tweens, the March 30 clip depicts a game show hosted by ""dr. Pill.""?Safe sex practices, including the use of the HIV prevention drug-pre-exposure prophylaxis, or PrEP, are emphasized in the clip, which is being distributed by Advocates for Youth, Answer and Youth Tech Health.- Nora Galperin, Director of Sexuality Education and Training at Advocates for Youth, told The Huffington Post that many schools still do not provide adequate information about HIV/AIDS to their students. Advances in HIV/AIDS treatment and prevention drugs have prompted additional confusion, she said.- ""sexual health remains a taboo subject and young people have a right to critical knowledge about ways to keep themselves healthy now and into adulthood,""?she told HuffPost. ""Given the changes in our understanding about how to prevent, test and treat people living with HIV, as well as the ongoing stigma still associated with the infection, using a short animated video helps to reach very young adolescents in ways they can easily access and understand.""ltimately, she said, the video's goal will hopefully increase viewers""?understanding ""Af not just HIV infection, but also sexual health more broadly.""Like what you see? Don""t miss the Queer Voices newsletter. Share this slide: We'r spilling the tea on all the queer news that matters to you. Learn more", -3752,2017/3/30,http://www.bbc.co.uk/news/uk-wales-39445384,Five family members die in Snowdonia helicopter crash,Five members of the same family have been killed in a helicopter crash in north Wales.,"Five members of the same family have been killed in a helicopter crash in north Wales. Two of those on board have been named locally as Kevin and Ruth Burke from Hulcote, near Milton Keynes. They were believed to have been travelling to Dublin, where Mrs Burke was born, for a christening with three other adult family members. A massive air and land search was launched on Wednesday when the aircraft vanished after leaving the Luton area. Kevin and Ruth Burke are believed to have been directors of the Milton Keynes-based Staske Construction company - the registered owner of a Twin Squirrel helicopter. This was the model that vanished from radar contact while over Caernarfon Bay. It is believed Mr Burke was originally from Manchester and was a qualified pilot. Supt Gareth Evans, of North Wales Police, said the crash site was in the Rhinog mountains between Harlech and Trawsfynydd and the bodies of all five people on board had been found. A mountain rescue team found the wreckage. The Air Accident Investigation Branch are now leading an investigation of the forensic recovery of the aircraft once specialist officers start recovery of the bodies. But the police have said they might have to suspend recovery for the night due to worsening weather conditions and ""treacherous terrain"". Police said they were not aware of any plan for the helicopter to stop in Caernarfon as part of its route. Formal identification of the bodies has not yet taken place and the coroner for north west Wales, Dewi Pritchard-Jones, has opened an investigation. Police have not revealed the exact location of the crash and have asked for members of the public to stay away from the site ""to allow emergency services and personnel access"". An air exclusion zone is also in place. ""Their recovery is not just important to their families but also the investigation as it may help identify any contributory factors,"" added Supt Evans. Family of those killed have been informed and the police have confirmed all five adults are ""part of the same extended family from the Milton Keynes area"". Initial searches on Wednesday followed the intended flight plan of the aircraft over the Irish Sea. But the Coastguard said on Thursday that inquiries led them to divert their efforts to Snowdonia National Park. Prior to the crash site being discovered, UK Coastguard duty commander Mark Rodaway said: ""These aircraft normally carry beacons that we can track by satellite - they're activated by salt water - we've not seen any of that and also mobile phone data has aided our inquiries in shifting inland."" Welsh Secretary Alun Cairns said the UK government would offer its full support to the investigation. The Department of Foreign Affairs in Dublin said it ""stood by to offer consular assistance"". The Eurocopter AS55 Ecureuil 2 (Twin Squirrel), made by Airbus, has a cruising speed of 140mph (225km/h) and a range of nearly 440 miles (700km).", -3753,2017/3/30,http://www.bbc.co.uk/news/uk-scotland-39449459,Sturgeon signs independence vote request,Scotland's first minister has signed a letter formally asking for powers to hold a second Scottish independence referendum.,"Scotland's first minister has signed a letter formally asking for powers to hold a second Scottish independence referendum. The Scottish Parliament voted by 69 to 59 on Tuesday in favour of seeking permission for another referendum Nicola Sturgeon argues Scotland should have the choice on what path to follow in the wake of the Brexit vote. The UK government has already said it will block a referendum until after the Brexit process has been completed. Prime Minister Theresa May, who met Ms Sturgeon for talks in Glasgow on Monday, has repeatedly insisted that ""now is not the time"". Constitutional matters are reserved to Westminster so the Scottish government must ask for the powers to hold such a vote to be transferred to Holyrood under a Section 30 order, as was done before the 2014 referendum. The Scottish government released a photo of Nicola Sturgeon drafting the letter to Theresa May, with her feet curled up on a sofa at her official residence, Bute House in Edinburgh. The letter is expected to be sent to Downing Street on Friday. Ms Sturgeon is seeking a referendum between the autumn next year and spring 2019 - but has indicated she would be willing to negotiate the timing. If, as expected, the request is declined, Ms Sturgeon has said she will set out her government's next steps in April, when MSPs return to the Scottish Parliament after the Easter recess. The two-day debate at Holyrood on an independence referendum began last week but was suspended as news of the terror attack at Westminster emerged. When it resumed on Tuesday, the minority SNP government was backed by the pro-independence Scottish Greens in the vote, with the Conservatives, Labour and Lib Dems opposed. Scottish voters rejected independence by 55% to 45% in a referendum in 2014, but Ms Sturgeon believes the UK voting to leave the EU is a material change in circumstances which means people should again be asked the question. While the UK as a whole voted to leave, Scotland voted by 62% to 38% to remain in the EU.", -3754,2017/3/30,http://www.bbc.co.uk/news/uk-politics-39439554,Brexit: UK sets out plans to replace all EU laws,Thousands of EU laws on everything from workers' rights to the environment are to be transferred into UK law as the country gears up for Brexit.,"Thousands of EU laws on everything from workers' rights to the environment are to be transferred into UK law as the country gears up for Brexit. Brexit Secretary David Davis said the Great Repeal Bill would allow the UK Parliament and Welsh, Scottish and Northern Ireland administrations to scrap, amend and improve laws. It would also end the jurisdiction of the European Court of Justice. But Labour warned it was being done without proper Parliamentary scrutiny. It comes a day after Prime Minister Theresa May triggered Article 50, starting the process which will officially take Britain out of the EU in March 2019. In a statement to MPs, David Davis said the repeal bill would allow businesses to continue operating on the day after the UK leaves the EU ""knowing the rules have not changed overnight"". It would also make trade talks easier because member states ""will know that we start from a position where we have the same standards and rules"", added Mr Davis. It would mean that workers' rights, environmental protection and consumer rights currently enshrined in EU laws would continue as UK laws, he told MPs - although Parliament would be free to change them later. The repeal bill will also ""end the supremacy"" of EU law in the UK, ""delivering"" on the result of last year's referendum, he added. ""Our laws will then be made in London, Edinburgh, Cardiff and Belfast and interpreted not by judges in Luxembourg but by judges across the United Kingdom,"" he told MPs. Mr Davis said the repeal bill would not give the European Court of Justice a ""future role"" in the interpretation of UK laws, and UK courts will not be obliged to consider cases decided by the ECJ after Brexit. But UK courts will be allowed to refer to ECJ case law ""as it exists on the day we leave the EU"" and it would have the same status as Supreme Court decisions, which can be overturned by subsequent rulings. The Great Repeal Bill, which Theresa May has said will make the UK an ""independent, sovereign nation"", would: Read more: A guide to the Great Repeal Bill Reality Check: Does the Great Repeal Bill repeal EU laws? Business group the CBI welcomed the ""clarity and continuity"" of the repeal bill and said it would speak to ministers after Brexit about cutting EU red tape. For unions, the TUC called for guarantees that workers' rights such as full holiday pay and equal pay for women will be protected. There are more than 12,000 EU regulations in force in the UK, with the intention being that they are all going to be transferred into UK law. But the government says many of them will not work properly after Brexit without ""technical changes"", and allowing MPs to scrutinise these changes fully would create a ""prohibitively large"" amount of work for Parliament. It estimates that around 800 to 1,000 existing measures will need to change and proposes using statutory instruments - laws passed without much debate or scrutiny - to do so. Labour's shadow Brexit Secretary Sir Kier Starmer warned ministers were being handed ""sweeping powers"" to make hasty, ill thought-out legislation. But Mr Davis said any laws changed in this way would be time limited and any problems ""we have missed will be put right"". Lib Dem chief whip Tom Brake said: ""If needed, we will grind the government's agenda to a standstill, unless proper and rigorous safeguards are given over the Great Repeal Bill. The ball is now in the prime minister's court."" The SNP's Europe spokesman Stephen Gethins said: ""It strikes me that the government has pushed the big red button marked Brexit with their fingers crossed and very little idea of what comes next."" The government's white paper is entitled The Great Repeal Bill but it will be given a less dramatic name when it comes before Parliament because UK legislation must be described in a factual manner and anything that sounds like a slogan is banned. The government plans to introduce separate bills on some aspects of Brexit, such as immigration and customs rules at the border, which will be debated in Parliament. Mr Davis earlier hit back at claims the UK was trying to ""blackmail"" the EU by raising security issues ahead of Brexit talks. In her letter on Wednesday triggering Article 50 of the Lisbon Treaty, Theresa May suggested cooperation with the EU on the fight against crime and terror was at risk if Britain did not agree an overall Brexit deal within the two year time limit. The prime minister's words sparked an angry reaction from some EU officials who said security was too important to be used as a bargaining chip in trade negotiations. But Mr Davis told BBC Radio 4's Today programme ""this is not a threat... it is a statement of the fact that this will be harmful for both of us... if we don't get a deal. It's an argument for having a deal"". Mr Davis, who will be Britain's chief negotiator in Brussels, said the rights of British expats would be the first priority in Brexit talks. The UK also wanted ""to deal with the Northern Ireland border situation early as well"", he added. The EU wants to sort out an exit deal - including how much the UK might have to pay to cover its ""existing obligations"" - before turning to a future trade arrangement but Mr Davis said Britain wanted to ""look at the whole package together"". The prime minister has vowed to ""consult fully on which powers should reside in Westminster and which should be devolved to Scotland, Wales and Northern Ireland"". She has said that the process will lead to a ""significant increase in the decision-making power of each devolved administration"". The Scottish Parliament will get its own vote on the repeal bill and the UK government is working on the basis that it will need the consent of MSPs to get it through. Get news from the BBC in your inbox, each weekday morning", -3755,2017/3/30,http://www.bbc.co.uk/news/health-39419776,Surgeon: 'How many more children like Kayden must die?',Senior surgeons say they tried to warn managers of dangerous delays to emergency surgery ahead of a child's death at a top children's hospital.,"Senior surgeons say they tried to warn managers of dangerous delays to emergency surgery ahead of a child's death at a top children's hospital. Kayden Bancroft was 20 months old when he died at Royal Manchester Children's Hospital (RMCH), following repeated delays to urgent surgery. Whistleblowers allege the trust's focus was on ""ballooning"" waiting lists rather than emergency care. The hospital admitted that failings occasionally occurred. Central Manchester University Hospitals Trust said: ""Royal Manchester Children's Hospital faces huge demands for its services and occasionally failings regrettably do occur."" Kayden's grandmother, Julie Rowlands, has spoken of her shock at the way he was treated. She said: ""His care was appalling. He was basically put in a room, and left. ""And all we got, nearly every day, was, 'He's not having the operation today, he's not having the operation today.' They were coming up with excuses, 'There's no bed, or a car crash victim's come in.' ""That's all we got, all the time we were there, was excuses."" One surgeon, Basem Khalil, told the BBC: ""We just worry how many more children must die before management is held to account and before the right changes are made."" Kayden was brought into Stepping Hill Hospital on 11 April last year, a Monday, after falling and banging his mouth on his bottle. Staff discovered that he had a hole in his diaphragm, causing his bowel to enter his chest. Staff requested a transfer to RMCH for an operation to repair Kayden's diaphragm, but no intensive care bed was available. The following day, he was transferred, but to an ordinary ward. Kayden's surgery was repeatedly delayed over the following week, as he deteriorated. On Thursday, 14 April, the BBC was told, a locum consultant requested that a planned elective surgery list be cancelled to allow him to carry out the operation, but management instructed an operational manager ""not to get involved"". The trust told the BBC that it had no record of this request. Late on Friday night, Kayden went into cardiac arrest. Nurses struggled to get help, because an emergency phone line was down, and it took nearly 30 minutes to resuscitate the child. He suffered severe brain injury and died two days later. The trust's own investigation found ""significant problems with the organisation and delivery of [Kayden's] care, which was not timely and resulted in his death"". Senior surgeons at the hospital told the BBC that they had repeatedly tried to warn trust management about problems, including a shortage of emergency operating theatres and intensive care beds at the hospital. But the trust told the BBC: ""We believe that there are sufficient theatres in our children's hospital to cope with the demand for emergency cases; however, on occasions some children do have to wait for urgent surgery while emergency surgery takes place."" Mr Khalil said: ""On Thursday, one of the surgeons had offered to cancel one of his elective lists, so that he could do Kayden as an emergency, but did not receive the support that he needed. ""That should not have happened. ""There should have been support to say if we have children on the emergency list, they need to be done, and they should take priority over elective lists."" Mr Khalil added that the size of the hospital's waiting lists had become dangerous. The BBC has seen internal figures to show that on 18 January this year, the number of children waiting for a procedure had reached 6,185, with 1,102 children having waited for over a year. Mr Khalil said: ""The waiting list in the children's hospital has basically ballooned over the last few years. ""We now have hundreds of children who have waited over a year to have their surgery done. ""They were giving elective cases priority, but it almost became like a culture, that it is difficult to cancel elective cases to do emergency cases."" A second surgeon, James Morecroft, who retired from RMCH this year, told the BBC: ""There was a desire in the hospital to do the elective workload, perhaps at the expense of some of the emergency stuff."" The trust said: ""The trust would like to make it clear that at no time has it directed clinical staff to prioritise elective over non-elective care. ""As is the case at most similar hospitals, elective cases are regularly cancelled to accommodate emergency patients."" However the trust's own investigation into Kayden's death recommended the hospital carry out an urgent review into ""prioritising non-electives above elective cases"". It added: ""Following the investigation, a number of immediate and longer term actions were agreed."" Lawyer Stephen Clarkson, from Slater and Gordon, who represented the family, said: ""The real tragedy here is that Kayden's death was entirely preventable. ""If he had been operated on earlier, then he would have survived. ""It is deeply concerning that this happened at one of the country's leading hospitals for children, and that is why it is so important that the trust looks closely at what went wrong and what can be done to make sure this doesn't happen to anyone else's child.""", -3756,2017/3/30,http://www.bbc.co.uk/news/uk-england-birmingham-39444935,Stourbridge stabbing: Mother and son killed in house,A mother and her 13-year-old son have been killed and the woman's husband seriously injured in a stabbing attack at their home.,"A mother and her 13-year-old son have been killed and the woman's husband seriously injured in a stabbing attack at their home. The family, named locally as Peter and Tracey Wilkinson and their son, Pierce, were found with knife wounds in Stourbridge at about 08:00 BST. A Land Rover taken from the house was intercepted by West Midlands Police about 30 minutes later in Norton Road. A man in his 20s has been arrested on suspicion of murder and wounding. The family were found after emergency crews were called to Greyhound Lane, Norton. Latest updates and reaction to family stabbings Police said they understood the suspect was known to the victims and may have been living at the address, although he was not a family relative. The 13-year-old boy and his mother were found in the house with critical stab wounds. The woman was pronounced dead at the scene, while the teenager was later pronounced dead in hospital. Mr Wilkinson, believed to be a company director for local firm Hill & Smith Ltd, was found in the garden of the house. He remains in hospital with stab wounds to his chest and back. Peter Wilson, BBC Midlands Today special correspondent, said he understood the couple also have an older daughter who is attending university. Redhill School in Stourbridge confirmed the boy was a Year 8 pupil. In a statement, the school said pupils and staff were being supported and added: ""Our thoughts and prayers are with those who have been affected by this."" Police said that as the Land Rover was intercepted, it was in collision with a police car. The force said two officers were taken to Russells Hall Hospital, in Dudley, with minor injuries. They have since been released. Supt Lee Kendrick, of Dudley Police, said: ""What has unfolded here this morning is horrific and heart-breaking. ""Police and ambulance were confronted with an awful scene: a man, woman and boy all with very serious stab injuries. ""The woman and boy were found in the house and the man in the garden."" He added that ""tragically"" there was ""nothing that could be done"" to save the woman, understood to be in her 50s. Supt Kendrick said they ""don't think this was a burglary or a robbery"". The man in his 20s would be questioned on suspicion of murder and wounding, the force said. Police are not looking for anyone else in connection with the attack.", -3757,2017/3/30,http://www.bbc.co.uk/news/business-39441039,New John Lewis boss says department store needs reinventing,The new boss of John Lewis says the department store needs reinventing for a new generation of shoppers.,"The new boss of John Lewis says the department store needs reinventing for a new generation of shoppers. Paula Nickolds is the first female managing director of John Lewis, having worked her way up the ranks as a graduate trainee. ""I've inherited a business in really good shape, but we need to change,"" she says. Ms Nickolds has taken over the helm during what she describes as a ""pretty challenging"" time. Not only is the industry undergoing profound structural changes as shoppers are increasingly going online, retailers are also grappling with the devaluation of the pound following the Brexit vote. ""We are seeing input prices rising substantially, no doubt... but we don't yet know how much will be passed on. ""It's a pretty volatile environment."" Ms Nickolds, a self-confessed shopping and design ""junkie"", is 12 weeks into her new role. Asked about how consumers were faring, she said the business was beginning to see a change. ""We do regular customer insight and we are seeing slightly more uncertainty in the way people are thinking about their personal finances."" John Lewis currently has 48 stores, as well as about 350 Waitrose supermarkets. Three new John Lewis stores are in development, one in Oxford to be opened this year, followed by stores in London's Westfield White City and Cheltenham. But there will probably be fewer stores in future. ""Do I believe in shops? Absolutely,"" she says. ""Shops are not just a route to sell things, they are an invitation for customers to experience our brand, and what we stand for. "" One ambition is to increase the amount of own brand and exclusive products. John Lewis wants more than 50% of the products it sells to be available only at its stores, up from 37% today. For instance, in the past few days it's launched its own denim range, And/Or, designed in Los Angeles. Ms Nickolds' aim is to create a new retail model: ""The era of channel [either online or store] is over. What we're really embarking on now is a world, where for consumers, channels are completely merged and we need to think that way. ""When I'm talking about reinventing the department store, I'm not talking about physical space, I'm talking about the holistic provision of services that a department store can provide."" Shops, she says, have to be more experience-led, where people go ""for a mooch"". Ms Nickolds says one of the first things she did when she got her promotion was delving into the John Lewis archive and its 150-year history. ""At those times the model came under strain, John Lewis got closer to the customer. In the 1950s and 60s as the supermarkets arrived on the scene, John Lewis set out to identify human needs and fulfil them. For instance, we did a daily food delivery service to caravans and holiday homes."" She says that, although the business looks very different today, the principles remain the same: ""There's a huge amount of expectation and weight of responsibility when you're the managing director of John Lewis. I'm very conscious of that. ""It's an enormous honour and privilege to lead this business. Any MD is but a temporary guardian of this brand. ""It has something very special about it and so I am very mindful during my time that I stay true to the principles of this brand and what it stands for - in other words, a better way of doing business. This is precisely why I wanted this job"". John Lewis is still outperforming its rivals. But to ensure its continued success, its new boss is also making clear that things will need to be different in future.", -3758,2017/3/30,http://www.bbc.co.uk/news/world-us-canada-39442901,"Russia 'tried to hijack US election', says US senator","Russia tried to hijack the US election through ""propaganda on steroids"", says a Democratic senator investigating alleged Kremlin political meddling.","Russia tried to hijack the US election through ""propaganda on steroids"", says a Democratic senator investigating alleged Kremlin political meddling. As the Senate Intelligence Committee hearing opened, its Republican chairman also warned: ""We are all targets of a sophisticated and capable adversary."" US intelligence agencies believe Russia tried to help Donald Trump win in November by damaging Hillary Clinton. But Russian President Vladimir Putin again flatly denied the allegations. In the committee's opening remarks, ranking Democrat Mark Warner said ""Russia sought to hijack our democratic process"" by employing a disinformation campaign on social media. He described it as ""Russian propaganda on steroids... designed to poison the national conversation in America"". Mr Warner said Thursday's session would examine how Russia may have used technology to spread disinformation in the US, including the possible generation of fake news for voters in key states, such as Wisconsin, Michigan and Pennsylvania. Embarrassing ""stolen information"" was released through websites such as Wikileaks, Mr Warner said, to ""cause maximum damage to one candidate"" - Hillary Clinton. ""They did this with an unprecedented level of sophistication,"" he said. Senator Marco Rubio told the panel that members of his former presidential campaign staff were unsuccessfully targeted by unknown Russian web addresses as recently as Wednesday. Mr Rubio's campaign staff had previously been targeted in July 2016. The lawmakers also suggested Russian influence may have affected Britain's Brexit vote last year, and warned that forthcoming elections in France and Germany were the Kremlin's next targets. Committee chairman Richard Burr, a Republican, said ""if we politicise this, our efforts will likely fail"". But Clinton Watts, a homeland security expert testifying before the committee, said the Russians had successfully exploited US political divisions. ""They win because they play both sides,"" he said. Mr Watts said pro-Russian social media accounts continue to tweet at President Trump during times they know he is online, hoping he will read and cite fake news reports. He also testified that several Russians tied to the investigation had been killed in recent months in Russia and in Western countries, adding ""follow the dead bodies"". Former National Security Agency director Keith Alexander also testified on Thursday, saying that Russia was attempting to drive a wedge between US political parties and ""destroy our unity"". Jared Kushner, President Trump's son-in-law, is to appear next week before the committee. In a joint press conference earlier this week, both Mr Burr and Mr Warner pledged not to shy away from the truth. When asked if he had seen any links between Mr Trump and Russian interference, Mr Burr said: ""We know that our challenge is to answer that question for the American people."" He also said that there had been ""conversations"" about interviewing Michael Flynn - who was sacked by Mr Trump as national security adviser for misleading the vice-president over his contacts with the Russian ambassador - but his appearance is not confirmed. The Trump presidency has been unable to shake off allegations that members of its team colluded with Russian officials during the election campaign. The president regularly dismisses the claims as ""fake news"" and Russia has also ridiculed the allegations. President Putin did so again on Thursday at an Arctic forum, describing them as ""nonsense"" and ""irresponsible"". Mr Burr was a security adviser to the Trump campaign but insists he remains objective. Another congressional inquiry into the matter, by the House Intelligence Committee, has been beset by partisan disputes. Ranking Democrat Adam Schiff has called on panel chairman Devin Nunes to remove himself, after accusing him of colluding with the White House. Last week, Mr Nunes went straight to the White House after hearing allegations about surveillance of Mr Trump's team, rather than sharing them with Democratic colleagues on the panel. He later apologised but insists he remains an objective chairman and will not step down. As well as the two houses of Congress, the FBI is investigating the matter.", -3759,2017/3/30,http://www.bbc.co.uk/news/world-us-canada-39448414,Why Ivanka Trump is joining the Trump administration,,The White House says Ivanka Trump is officially joining her father's administration as an unpaid employee. The US first daughter bowed to pressure following an outcry from ethics experts at her initial plans to serve in a more informal capacity., -3760,2017/3/30,http://www.bbc.co.uk/news/uk-england-39448815,Two survive after plane crashes in sea at Shoreham,Two people have escaped from a plane which crashed into the sea off the Sussex coast.,"Two people have escaped from a plane which crashed into the sea off the Sussex coast. They were able to reach the shore after the light aircraft came down ""close to the beach"" in Shoreham, West Sussex. The plane, which is believed to be a Cessna, crashed at about 15:50 BST, Sussex Police said. Both people who escaped from the wreckage are not believed to have been injured in the crash, a force spokesman added. Shoreham RNLI said it had had launched its all weather lifeboat. A Maritime and Coastguard Agency spokeswoman said it received multiple 999 calls reporting that the plane had ditched in the water. South East Coast Ambulance Service said the two people had been assessed, and neither required hospital treatment. Jim Barrow, from Worthing said: ""One guy, who I assume was the pilot, was soaked to the skin but he was standing up and talking on the phone so he looked OK. ""We're used to seeing planes fly over but not like that."" Did you witness the plane crash? Share your video, pictures and experiences by emailing haveyoursay@bbc.co.uk. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways:", -3761,2017/3/30,http://www.bbc.co.uk/news/uk-39442422,David Tennant to sue over News of the World phone-hacking,Actor David Tennant is suing the owners of the defunct News of the World over alleged phone hacking.,"Actor David Tennant is suing the owners of the defunct News of the World over alleged phone hacking. His lawyers issued a claim for compensation at the High Court in London on Thursday. Law firm Collyer Bristow said it was representing nine people in total, including former Formula One driver Eddie Irvine. They said other law firms have also issued claims this week. News UK, which owned the paper until it closed in 2011, declined to comment. Collyer Bristow said its clients had been left with ""no alternative"" following the closure of a compensation scheme. It said the News of the World had previously ""admitted and apologised for hacking into the voicemails of a number of high-profile individuals"" and opened a compensation scheme in 2011 as an alternative to litigation. But Collyer Bristow said the scheme closed ""after less than 18 months of operation"". The NoW was shut down by owner Rupert Murdoch following the revelation that the phone of murdered schoolgirl Milly Dowler had been hacked. The scandal also led to the establishment of the Leveson Inquiry into press ethics, an MPs' inquiry and the launch of three police investigations into alleged widespread phone hacking and corruption. Former News of the World editor Andy Coulson - who later became director of communications for then Prime Minister David Cameron - was jailed for 18 months for conspiracy to hack phones. Hugh Grant and Charlotte Church were among those who settled claims against the paper over phone-hacking. Steven Heffer, who is acting on behalf of the claimants, said: ""My firm continues to act for a number of clients with claims against News Group arising out of phone hacking and other unlawful activities. ""News Group withdrew its compensation scheme in 2013, giving no proper explanation for this move and has failed to compensate victims despite all attempts by lawyers to settle cases out of court."" The firm says it has now acted for more than 200 ""victims of hacking and unlawful surveillance"". Collyer Bristow said other claimants included Fran Cutler, Jess Morris, Tanya Frayne, Sophia Myles and Rob Gros.", -3762,2017/3/30,http://tass.com/world/938577,Syrian opposition's Moscow group says forming united delegation would be logical,,"GENEVA, March 30. /TASS/. Forming a united opposition delegation would be a logical step, Muhannad Dleikan, who heads the delegation of the Syrian opposition's Moscow Group, said at a briefing in Geneva on Thursday. ""We need to form a united delegation soon, but it does not have to be undifferentiated,"" he said adding that measures were being taken by the stakeholders as the current situation stipulated the need for such a delegation. Dleikan made it clear that forming a united delegation, comprising representatives of the Moscow Group, the Cairo Group and the Riyadh-based group of the Syrian opposition, would pave the way for direct talks with the Syrian government. ""This would be a logical step towards direct talks leading to a political solution,"" he explained. The fifth round of the intra-Syrian talks began in Geneva on March 23. Four aspects of the Syria settlement (forming a government, drawing up a constitution, conducting elections and fighting terrorism) are under consideration.", -3763,2017/3/30,http://tass.com/politics/938574,Russian ambassador urges NATO to abandon military domination policy,Russian envoy has also added that an exchange of briefings between Russia and NATO may not be enough,"BRUSSELS, March 30. /TASS/. Building confidence is not possible until NATO abandons its military domination policy, Russia's Permanent Representative to NATO Alexander Grushko said on Thursday. While commenting on the results of this year's first ambassadorial meeting of the Russia-NATO Council, he said that ""it is not possible to build confidence until NATO abandons its military domination policy."" ""Representatives of NATO countries have emphasized the importance of the Vienna document on confidence-and security-building measures as well as other arms control mechanisms. But they were unable to answer the question how to combine that with their policy aimed at restraining Russia and demonstrating their military capabilities near our borders."" The exchange of briefings between Russia and NATO is not enough to improve security situation: Earlier on Thursday, Russia briefed NATO on deploying two divisions in the Western Military District and a motor rifle division in the Southern Military District while NATO countries provided information on the implementation of the plan concerning the forward deployment on NATO's eastern flank. ""I don""t want to diminish the importance of such briefings, but they are not enough to improve the security situation,"" Grushko said. ""Dialogue for the sake of dialogue will not produce any results if no specific decisions are made and no steps are taken,"" he added. ", -3764,2017/3/30,http://tass.com/sport/938576,Three Russian cities interested in hosting 2023 Basketball World Championship,"Moscow, Kazan and St. Petersburg confirmed their interest in hosting the world championship","MOSCOW, March 30. /TASS, Andrei Kartashov/. The Russian cities of St. Petersburg, Moscow and Kazan expressed their interest in submitting bids for hosting the 2023 Basketball World Championship, Andrei Kirilenko, the president of the Russian Basketball Federation, told TASS on Thursday. ""Moscow, Kazan and St. Petersburg confirmed that they were interested in hosting the world championship,"" Kirilenko said in an interview with TASS. ""Moscow offers the Olimpiisky Arena and Megasport center for hosting the event."" ""However, it is still too early to speak about submitting the bids as there had been no intergovernmental commission's session on the issue,"" he said. ""In line with regulations, the government must approve bids submitted on behalf of our country and this is why we are currently gathering all the necessary information from three regions at the issue, which are interested (to host the tournament), in order to receive the approval,"" the Russian basketball chief added. Yevgeny Bogachev, the president of Kazan-based UNICS basketball club, told TASS earlier in the day that Moscow and Kazan were most likely to bid for the right to host the 2023 Basketball World Championship. The FIBA World Championship is an international basketball competition contested by men's teams and is held once every four years after it was founded in 1950. The tournament was previously held in Madrid in 2014 and the next one is scheduled to take place in China's Beijing in 2019. The current five-year break between the tournaments is an exception and owes to recent changes in international regulations, however, the future tournaments will be held again once in four years following the next championship in China.", -3765,2017/3/30,http://tass.com/world/938564,White House gives no specific dates for Russian-US summit,"Earlier on Thursday, Vladimir Putin said he was ready to meet with Trump in Finland","WASHINGTON, March 30. /TASS/. Specific dates for a meeting between Russian President Vladimir Putin and his US counterpart Donald Trump have not been discussed yet, Michael Anton, Deputy Assistant to the President for Strategic Communications on the United States National Security told TASS on Thursday. When asked to comment on the idea to arrange the two presidents""?meeting at the upcoming Arctic nations summit in Finland, Anton said that ""we have not begun to discuss with the Russian government specific dates for a summit."" ""The two leaders will see each other at the G-20 Summit in July, but it is possible they may see each other before then,"" he added. Earlier on Thursday, Russian President Vladimir Putin said he was ready to meet with US President Donald Trump on the sidelines of the Arctic nations summit in Finland, but the event should be well-prepared. ""Finland, in my view, is a very convenient country, and Helsinki is a very suitable platform for organizing such events,"" Putin told the international Arctic forum in Russia's city of Arkhangelsk, answering a question if he could meet with Trump at the summit. The Russian leader stressed that such events should be very well-prepared ""by both sides."" ""If this happens, we will be glad to participate and I will be glad to take part in this event,"" he said. ""If not, I think such a meeting [with the US president]-may be held as part of ordinary meetings of this kind at the G20 summit [due in Germany in July],"" he said. Putin said Finland was a very good neighbor of Russia ""which has a very good experience in organizing landmark events of this kind."" The president pointed out that the Helsinki Final Act had been signed in Finland in 1975. The document, also known as the Helsinki Accords, was agreed in an effort to improve relations between the Communist bloc and the West. Speaking at the Arkhangelsk forum, Finland's President Sauli Niinisto suggested convening an Arctic nations summit to discuss issues facing the region. Answering a question on the possibility of a meeting between the Russian and US presidents on the sidelines of the event, Niinisto said Finland ""would be very glad to hold such a summit."" ""But for holding the summit, there is the need to have something to say,"" he added. The Arctic Council, a high-level intergovernmental forum set up in 1996, consists of Russia, Canada, Denmark, Finland, Iceland, Norway, Sweden, and the United States. In May, the US will hand the Arctic Council chairmanship to Finland.", -3766,2017/3/30,http://tass.com/economy/938562,United Arab Emirates shows interest in Russian helicopters,The Ka-226T helicopter features unique modular design,"KUMERTAU (Bashkiria), March 30. /TASS/. The United Arab Emirates is interested in purchasing Kamov Ka-226 and Ansat light helicopters from Russia, CEO of Russian Helicopters rotocraft manufacturer Andrei Boginsky said on Thursday. ""Arab colleagues have interest in Ka-226 and Ansat helicopters. We'r carrying out this work and considering various options,"" the chief executive said. The Ka-226T light utility multirole helicopter with a coaxial rotor system has a maximum takeoff weight of 3.4 tonnes and is capable of carrying up to 1 tonne of payload. The Ka-226T helicopter features unique modular design. It can easily integrate a transport module whose design allows carrying up to six persons or modules outfitted with special equipment. The Ansat light two-engine multipurpose helicopter has been developed by the design bureau at the Kazan Helicopter Enterprise and is designed for 7-9 seats. Work was finished in June 2016 to increase the rotocraft's takeoff weight to 3,600 kg. The helicopter's various modifications and the possibility to quickly replace equipment allows it to solve successfully a wide range of missions. -", -3767,2017/3/30,http://tass.com/world/938556,NATO secretary general says ceasefire in Donbass works only on paper,"According to Stoltenberg, ceasefire violations in eastern Ukraine have reached record levels","BRUSSELS, March 30. /TASS/. The ceasefire in eastern Ukraine is not respected, NATO Secretary General Jens Stoltenberg said on Thursday at a press conference following a Russia-NATO Council meeting. ""We have a ceasefire on paper but it does not function in reality,"" he said. ""It is an argument in favor of making sure that we make our utmost to make sure that the ceasefire is respected on the ground,"" Stoltenberg added. According to him, ""ceasefire violations in eastern Ukraine have reached record levels, intense fighting continues and heavy weapons have not been withdrawn."" The NATO secretary general said that the best way to implement the ceasefire was ""to make sure that international observers have full access to the area, partly to inspect the ceasefire but also partly to inspect that heavy weapons are withdrawn from the contact line."" The aftermath of shelling in Eastern Ukraine ", -3768,2017/3/30,http://tass.com/sport/938544,"Russia keeps forming strong anti-doping legislative basis in sports, deputy PM says",,"MOSCOW, March 30. /TASS/. Russia is consistently moving toward the establishment of a legislative basis for the most effective and clear-cut regulations in the fight against doping abuse and other violations in sports, Russian Deputy Prime Minister Vitaly Mutko told TASS on Thursday. Prime Minister Dmitry Medvedev signed earlier in the day a decree, which introduces a list of banned performance enhancing drugs and prohibited methods. The list is particularly including anabolics, peptide hormones, growth promoting substances, metabolism hormones and modulators as well as banned methods including manipulations with blood. ""We are consistently moving in the direction of setting up a strong legislative basis, which on the one hand would pave the way for anti-doping agencies independent activities and on the other would be strictly regulating the fight against doping in our country,"" Mutko said in an interview with TASS. ""This is another serious step in the fight against doping abuse,"" Mutko said. ""We are saying here that there had been never state-sponsored programs as it is completely untrue. On the contrary, we are moving in the direction of heightening responsibility for doping abuse."" ""A list approved by the government's decree includes substances and methods, which can result in criminal persecution in case of violations,"" Mutko said. ""Beginning now, a criminal case would be launched if an athlete was guilty of doping abuse or it may be launched against people, who encouraged an athlete into taking banned performance enhancing drugs and no matter who these persons may be - a coach or a doctor."" Last November, Russian lawmakers adopted a law tightening responsibility for the encouragement of performance enhancing drugs in sports. The law stipulates a criminal responsibility for encouraging athletes to consume performance enhancing drugs. The bill was initiated by the United Russia and the Liberal Democratic Party of Russia (LDPR) political parties and initially stipulated a financial fine of up to 500,000 rubles (over $7,350 at that time's foreign currency exchange rate) or a fine equal to six-month income of a person guilty of inducing an athlete into doping consumption. A person found guilty of encouraging an athlete into doping rule violations could be also suspended from his or her professional activities up to three years, according to the initially proposed draft law.", -3769,2017/3/30,http://tass.com/politics/938545,Putin not against Russian businessman Deripaska speaking to US Congress about Manafort,Businessman Oleg Deripaska was denied entry to the United States,"ARCHANGELSK, March 30. /TASS/. Russian President Vladimir Putin is not against businessman Oleg Deripaska speaking to the US Congress regarding his involvement in promoting the Kremlin's interests through contacts with Donald Trump's ex-election campaign manager Paul Manafort. ""If a representative of our business goes, holds meetings and speaks to Congress, let it be so! This is his right, we have nothing against it,"" Putin explained. Deripaska was denied entry to the United States, Putin said. ""Nobody explains why he was denied, let them say why! Let him go the United States and speak to the Congress,"" the Russian president said. ""If law enforcement agencies and special services bring any real claims based on something-against him, then at least it will be clear to us, what they are associated with,"" Putin said. ""Things happen, business is a tough subject matter,"" the president noted. ""Some breaches could be possible, but we are unaware of them. If there are, let them be presented! This will be a good signal and a good case in this sense. We will be also ready to meet with representatives of the Congress and the Senate in Moscow and we are always glad to meet our business friends from the US,"" Putin added.", -3770,2017/3/30,http://tass.com/science/938541,Russian space rocket center receives first tested engines for Soyuz spacecraft,"According to the chief executive, other engines for the Soyuz carrier rockets will be tested in 2017-2018","MOSCOW, March 30. /TASS/. The Samara-based Progress Space Rocket Center in the Volga area has received the first four tested engines for the third stage of Soyuz carrier rockets, CEO of Energomash rocket engine producer Igor Arbuzov said on Thursday. Journey to the stars: sci-fi spacecraft The Progress Space Rocket Center is the manufacturer of Soyuz carrier rockets. ""The Voronezh Mechanical Factory has approved a schedule of testing and dispatching engines for the third stage of Soyuz carrier rockets and the second and third stages of Proton-M carriers. Under the schedule, the works have been carried out since February 2017. As of today, four engines for Soyuz rockets have been tested and dispatched to the Progress Space Rocket Center,"" Arbuzov said. According to the chief executive, the other engines for the Soyuz carrier rockets will be tested in 2017-2018 and delivered in compliance with the schedule of launches of State Space Corporation Roscosmos. Roscosmos earlier recalled for tests all the engines mounted on the second and the third stages of Proton-M carrier rockets and produced at the Voronezh Mechanical Factory. According to Roscosmos, a more expensive solder alloy failing to meet the requirements specification was used by the factory as part of the engine production. Roscosmos also gave instructions to replace the engines produced by this factory and mounted on the third stages of Soyuz-U and Soyuz-FG carrier rockets intended for launches to the International Space Station. The engines had to be replaced after an accident with a Soyuz-U carrier rocket on December 1, 2016, which resulted in the crash of a Progress MS-04 space freighter. After Roscosmos officials visited the Voronezh Mechanical Factory on January 20, Factory Director Ivan Koptev resigned of his own free will over the unsatisfactory work and quality of the enterprise's output.", -3771,2017/3/30,http://tass.com/world/938542,Ukrainian president orders to implement ceasefire starting from April 1,The Ukrainian Defense Ministry earlier expressed readiness to fulfill the decision of the Contact Group on settling the situation in eastern Ukraine,"KIEV, March 30. /TASS/. Ukrainian President Pyotr Poroshenko has ordered the country's General Staff and the Defense Ministry to take measures necessary for implementing the ceasefire starting from April 1, Poroshenko's spokesman Svyatoslav Tsegolko said on Thursday. ""The president has handed instructions to the General Staff and the defense minister concerning the implementation of the ceasefire starting from April 1,"" he said. The Ukrainian Defense Ministry earlier expressed readiness to fulfill the decision of the Contact Group on settling the situation in eastern Ukraine and hold their fire. However, Defense Minister Stepan Poltorak elaborated that despite the readiness to abide by the ceasefire, the Ukrainian military ""will not keep silent"" in case a threat emerged. On Wednesday, members of the Contact Group adopted a statement introducing a complete ceasefire in Donbass starting from April 1.", -3772,2017/3/30,http://www.dw.com/en/kremlin-critic-kara-murza-protests-a-turning-point-for-western-stance-on-russia/a-38221869?maca=en-rss-en-all-1573-rdf,Kremlin critic Kara-Murza: Protests a 'turning point' for Western stance on Russia,"In an interview with DW, Kremlin critic Vladimir Kara-Murza explains why he views last weekend's protests as a turning point in how the US should act toward the Russian government. He also vows to return to the country.","DW: What do you consider the significance of the last weekend's demonstrations across Russia, especially the fact that a lot of young people took part in them?- Vladimir Kara-Murza: I think that is the key, that is the turning point. I was asked after the protests whether I was surprised and I have to admit that I was surprised by the scale, by how widespread this was. It was in 82 cities across Russia, from West to East, across 11 time zones from Vladivostok to Kaliningrad. It was the most widespread protests since the early 1990s. But what is particularly striking is who the protesters were. And they were predominantly young people, university students and college kids often in their twenties, thirties and even teens. This is the new generation, this is the Putin generation, the people who have been certainly raised and in many cases born under [Russian President] Vladimir Putin. And there is a growing realization among this generation that this regime is robbing them, not just literally in terms of corruption, which is what these protests were about, but also robbing them of their future and their prospects and that this regime is a dead end. And frankly I think that Mr. Putin is not going to be able to do very much about this. So I think this really is a turning point and this is only the beginning of a new wave of pro-democracy and anti-corruption protests across Russia and we will see many many more of these in the coming months and years. Thousands of mainly young people took part in anti-corruption protests throughout Russia on March 26 You want Washington to take a tougher stance vis-a-vis the Russian government. What concrete steps and measures would you want the US to take? To be honest about what's happening in Russia and just call things as they are. This is a very basic thing. But it is also very importantly to abide by the principles that they, and I mean Western countries, preach. If Western leaders say their systems are based on democracy and rule of law and respect for human rights then they shouldn't serve as havens for people in and around Mr. Putin's circle who are engaged in human rights abuses and corruption. And we know very well that the officials and the oligarchs around the Kremlin stashed their money in Western banks and sent their kids to study at Western schools and bought up mansions and palaces and vineyards, as we now know, in Western countries. This should stop, because this is hypocritical. This is a double standard. You met and talked with US lawmakers here in Washington. Do you think their position toward Russia has changed since the Trump administration took office earlier this year? Several members of Congress from both houses and both parties have had long-standing commitments to issues of human rights with regard to Russia as well as with regard to other countries. For instance when the Magnitsky law was passed a few years ago it was done with huge bipartisan support. There is a separation of power in the United States and what members of Congress do doesn't depend on who is president and what the administration is. And the people I have had the pleasure to meet with in the last couple of days - I met with people who have spoken on my behalf after I was poisoned in February, so first of all wanted to thank them - but also to discuss the overall human rights situation in Russia. So, but how content are you then with the White House's stance towards Russia and human rights violations there? It is too early to tell. It has not even been 100 days since the new administration took over and we have only had one bilateral meeting so far between [US Secretary of State Rex] Tillerson and [Russian Foreign Minister Sergei] Lavrov. So it is far too early to say what the stance will be, so again, the only thing we would urge all Western leaders to do, including here in the US, is to abide by their own principles. You support a measure in Congress to rename the street in front of the Russian embassy in Washington after Boris Nemtsov. What is the symbolic significance of that move and how optimistic are you that this will happen?- First, this is very important to the many friends and colleagues of Boris Nemtsov in Russia. It is not more than two years since he was killed. And they not only killed him, they are also trying to kill his memory. And almost every night now the Moscow communal authorities with the help of the police destroy and plunder the unofficial memorial to him on the bridge [where he was shot], steal the flowers, steal the portraits, steal the candles. Of course the next morning there are new flowers, new portraits and new candles, because people remember. But in terms of official commemoration, the Moscow authorities have continuously rejected all initiatives, all petitions. They wouldn't even let us put a small sign on the place where he was killed or the house where he lived in Moscow. Nemtsov, a prominent Russian opposition figure, was shot dead in Moscow in 2015 So it is very important that Boris Nemtsov's name would be commemorated where we can do it today. I know the day will come when he will be commemorated in Moscow, but now it is important to commemorate him where we can. So I wholeheartedly support this initiative. You mentioned the latest attempt on your life. Will you go back to Russia now? I do want to go back. But not now, I need to restore my health first. Last time it took me more than a year to get restored after the first poisoning. So however long it takes me this time, I will do that. But once I do that, I do want go back and I do want to resume my work because I think what we do is very important and we care about our country and we care about its future and we have to continue what we are doing. Vladimir Kara-Murza is a Russian opposition politician and the vice chairman of the pro-democracy group Open Russia. He was hospitalized twice in the last year in alleged poisonings by the Kremlin and testified before Congress on Wednesday. The interview was conducted by Michael Knigge in Washington.", -3773,2017/3/30,http://www.dw.com/en/tillerson-s-first-turkey-visit-ends-in-impasse-as-us-shifts-position-on-assad/a-38221805?maca=en-rss-en-all-1573-rdf,Tillerson's first Turkey visit ends in impasse as US shifts position on Assad,Top US officials say that Washington is no longer prioritizing the ouster of Syrian President Assad. The news came as Secretary of State Tillerson was unable to resolve disputes with the US ally Turkey while in Istanbul.,"The United States and Turkey were unable to make any headway in their dispute over the role of Kurdish forces in the fight against ""Islamic State"" (IS) on Thursday during Secretary of State Rex Tillerson's first visit to Ankara. ""Let me be frank: These are not easy decisions,"" Tillerson said at a joint press conference with his Turkish counterpart, Mevlut Cavusoglu. Tense relations between the two allies stem-from a US decision to use Kurdish militias to help combat IS terrorists in Syria. Turkey considers the forces, known as the YPG, to be the armed wing of the Kurdistan Workers' Party, which is banned as a terrorist organization by Ankara. The Turkish government has long been engaged in conflict with Kurdish separatists. Turkey has argued that the US ought to ally itself only with Turkish forces in Syria, but Washington has said the Kurds have proven themselves to be the most effective fighters against IS targets. The row has taken on added urgency in recent days as the US-led coalition prepares a-new offensive to retake the city of Raqqa, the de facto IS ""capital."" The decision-has ""negatively affected the Turkish people's sentiments towards the United States,"" said Cavusoglu. Tillerson said the pair had discussed ""a number of options and alternatives"" for cooperation, but could come to no agreement. He did, however, hail Turkey as a ""key partner"" in the coalition against the jihadis. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2aNE6 Assad's future up to Syrian people Another key point of the press conference was the US diplomat's comments on Syrian President Bashar al-Assad ""?the closest indicator to date on the Trump administration's attitude towards Damascus. ""I think the... longer-term status of President Assad will be decided by the Syrian people,"" Tillerson told reporters. This was a turning point from the government of President Barack Obama, which regarded Assad's removal as a key point of any future peace in Syria. Washington's envoy to the United Nations, Nikki Haley, reiterated this position on Thursday when she said that the government had to prioritize defeating IS over forcing Assad to step down. ""Our priority is no longer to sit and focus on getting Assad out,"" Haley said. Before leaving Turkey, Tillerson also met with President Recep Tayyip Erdogan for over two hours as well as Prime Minister Binali Yildirim. The famously media-shy diplomat has not made any public comments on what he discussed with the two leaders. es/kl (AP, AFP)", -3774,2017/3/30,http://www.dw.com/en/airlines-offer-workaround-for-us-laptop-ban/a-38221604?maca=en-rss-en-all-1573-rdf,Airlines offer workaround for US laptop ban,"When the US banned laptops in flights from several Muslim countries, airlines started worrying about losing business. Now, they have come up with solutions - at least for those in expensive seats.","Qatar Airways and Etihad Airways are lending some passengers laptop computers and tablets to use on board following the US-ban on most- electronics devices from being taken into the cabin on United States-bound flights. On March 25,-US authorities banned electronic devices larger than a mobile phone from being taken into cabins on direct flights to the United States from 10 airports in the Middle East, North Africa and Turkey, including Qatar and the United Arab Emirates. Qatar Airways said on Thursday complimentary laptops would be available to business class passengers traveling to the United States from next week. Business-class passengers would-collect the laptops just prior to boarding, where they would-also be able to hand over their own devices to be stowed in the hold with checked-in luggage, the Doha-based airline said in a statement. Business as usual ""By providing this laptop loan service we can ensure that our passengers on flights to the US can continue to work whilst on board,"" said the airline's boss, Akbar Al-Baker. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2a4wH A similar laptop proposal is being considered by fellow Gulf carrier, Emirates, which is also affected by the US ban. The airline was the first of the major Gulf airlines to say its passengers could hand over devices immediately prior to boarding. Abu Dhabi's Etihad Airways meanwhile said it would offer free wi-fi and tablet computers to first- and business-class passengers on US-bound flights. The restrictions, prompted by reports that militant groups want to smuggle explosive devices in electronic gadgets, state that electronics larger than a mobile phone - including laptops and tablets - must be stowed with checked baggage on US-bound passenger flights. Effects on demand Industry experts have warned the ban could weaken passenger demand for the Gulf carriers on US-routes. Gulf airlines rely on business-class flyers stopping over in places like Dubai or Doha for far-flung destinations and the ban risks pushing passengers to travel with airlines not affected. Qatar CEO Al-Baker said on Monday it was too early to tell if there had been an impact on demand. Emirates said booking rates on US-flights fell 35 percent after President Donald Trump's first travel ban which, like the electronics ban, only applied to Muslim-majority countries. A similar ban was also imposed by Britain, but this exempted some of the Gulf airlines, including Qatar. bea/hg (Reuters, AFP)", -3775,2017/3/30,http://www.dw.com/en/britain-sets-out-great-repeal-bill-plan-to-transform-thousands-of-eu-laws/a-38219617?maca=en-rss-en-all-1573-rdf,Britain sets out 'Great Repeal Bill' plan to transform thousands of EU laws,UK ministers have given the first indication of how EU laws are to be converted into domestic legislation. Opposition critics accuse the government of aiming to reshape the laws without proper parliamentary scrutiny.,"The UK government has published its plans for a Great Repeal Bill to transform more than 12,000 EU laws in force in Britain into UK statute so that ""the same rules will apply after exit day"" as before. Brexit minister David Davis fended off accusations that the government was using the two-year process to reshape the EU laws which have been passed in the previous 44 years without the proper parliamentary scrutiny. ""The bill will convert EU law into United Kingdom law, allowing businesses to continue operating knowing the rules have not changed overnight, and providing fairness to individuals, whose rights and obligations will not be subject to sudden change,"" Davis told parliament on Thursday.- King Henry VIII split with Rome and was declared by act of parliament Supreme Head of the Church of England in 1534 The government plans to award ministers the ability, sometimes known as Henry VIII powers, after the Tudor monarch from the sixteenth century, to change laws without consulting Parliament. May's office says these powers will be time-limited. Davies denied there was any power grab being planned: ""We're not considering some form of governmental executive orders,"" he told parliament on Thursday. He said the government would ensure that British laws were made not in Brussels but ""in London, Edinburgh, Cardiff and Belfast."" The opposition Labour Party said it would ""challenge"" the government at every stage of the Brexit process Labour Brexit spokesman Keir Starmer said the proposed bill ""gives sweeping powers to the executive"" and lacks ""rigorous safeguards"" on their abuse. The Great Repeal Bill will revoke the European Communities Act of 1972 and confirm EU statutes into British law. Future governments will then be able to ""amend, repeal and improve any law it chooses,"" subject to international treaty obligations, May has said.- There have been concerns that this could give a future government the power to draw back on EU protections for working people such as paid holidays, health and safety at work and maternity leave. ""Let me be absolutely clear: existing workers""?legal rights will continue to be guaranteed in law and they will be guaranteed as long as I am prime minister,"" May said last October. The ruling Conservative Party is due to call the next General Election for May 2020. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2aMlt EU agency membership Membership of EU agencies would be a matter for May's negotiation, the prime ministers aides said on Thursday. Davis said the European Court of Justice (ECJ) would have no future role in interpreting British laws.- Davis said the UK wanted to continue to work with the EU on issues such as security. May's six-page letter triggering the negotiations delivered in Brussels on Wednesday made 11 references to security, stating that without a good deal, ""our cooperation in the fight against crime and terrorism would be weakened."" The opposition Liberal Democrats claimed May was ""gambling with Britain's security"" May said Wednesday that Britain would probably have to leave Europol, the EU police agency, after Brexit but wanted to ""maintain the degree of cooperation on these matters that we have currently."" Rob Wainwright from Wales is the current Director of Europol jm/kl (Reuters, AP)", -3776,2017/3/30,http://www.dw.com/en/schalke-s-nabil-bentaleb-nobody-gave-me-the-chance-until-i-arrived-here/a-38219417?maca=en-rss-en-all-1573-rdf,Schalke's Nabil Bentaleb: 'Nobody gave me the chance until I arrived here',"Schalke haven't had it easy this season, but in Nabil Bentaleb they have not only signed a talented player but also unleashed one. DW's Jonathan Harding spoke to the Algerian midfielder.","It's not often that a footballer will flip a question back at you, particularly when it comes to winning trophies, but Schalke's Nabil Bentaleb did exactly that when asked whether he would rather win the derby against Borussia Dortmund or the Europa League title. It was the response of a relaxed human not a media-trained footballer, and it was delivered with a grin that the 22-year-old has long carried around with him. When his own answer did come, it surprised almost as much as his initial response. The Europa League could offer Bentaleb and Schalke a ticket to next season's Champions League - but Ajax stand between them and the semis ""The Europa League title, next season Champions League. What's better?"" Bentaleb says in an accent that sways unusually between north London and French. ""Of course I don't want to think about losing this derby. This is not on my mind for one second, but you give me a question like this""?I would rather win the Europa League, so we win a title, and next season we're in the Champions League. What a great reward, and what a great present for our fans."" Making the attacking third his own Schalke's faithful endured a rough start to a season that began full of hope. Five straight Bundesliga defeats weren't part of the plan, but an upturn in form followed, for both the club and Bentaleb. Other than the 0-0 draw in his first Ruhr derby, Bentaleb assisted or scored in each of the following five games. He is, in many respects, a new player. This weekend's Bundesliga action centers around one of the country's most storied derbies. Elsewhere, Hamburg welcome Cologne to the Volkspark, while Gladbach aim to bounce back from European disappointment in Frankfurt. (30.03.2017) ""Tottenham gave me the opportunity that no one gave me in France so I thank them for that, but in Tottenham I was playing in a more defensive position and I knew I could do something offensively. In Schalke, they put me more offensively, to create more and be more decisive for the team. That's the thing I couldn't work on in Tottenham. ""When some people asked me to play more forward, it made me realize that I can do both. I added something to my game. Inside, I knew I could but nobody gave me the chance until I arrived here,""?Bentaleb says, grateful to his new club for the chance to show off long-hidden skills. ""When I played as a number six at Tottenham they wanted that reliability in the center of the pitch, to always protect, to create the game but deeper, so I was not in the final third. I was creating from the back and passing the ball through the lines, but not the lines to give an assist. In Schalke, I'm most often in the final third and I'm trying to find those last passes or last two passes, or even try to score. That's the difference.""- There's no denying that Bentaleb appreciates what Tottenham Hotspur did for him, but it's also clear how excited he is about the kind of player he is becoming at Schalke. ""The first time I got on the pitch was against Frankfurt and the coach said to me, because we were losing, 'go and score.' And since then, my attitude on the pitch is different to when I was playing in England because of the expectation on me. In England they know me as a defensive player. They don't know I can score or assist. But over here, the German people probably didn't know about me. And when I came here, I had to make a new impression and the impression I made is that I can create something offensively. It's not the Nabil Bentaleb that is a good tackler, good passer of the ball, protects the defense. It's Nabil that can be creative so from the beginning it's all different from England. But at the same time it's similar. It's weird."" Bundesliga defenses have been struggling to get a grip on the number 10 Box-to-box at the core Between the lines, it feels like Bentaleb is talking about a similar football life but a different football development. They say change is good, and the shrewd nature of his football brain certainly seems to support that. ""We're in 2017. Now, to be a good midfielder you have to combine both. Since the beginning, they say I'm a box-to-box player. In Tottenham, I was the box-to-box but more defensive. Here, I'm the box-to-box but more offensive. It's just about what the coach wants and what type of game we're playing,"" Bentaleb says so matter-of-factly that it seems as simple as his words suggest. Watching his movement at training later on that afternoon reveals why it is easy for the midfielder. His feet are quick, his agility is underrated and his finishing has clearly been unleashed. Perhaps for Tottenham, he's the one that got away. For the Premier League it's further confirmation that you can't have them all. Bentaleb, though, just wanted to play, and to be trusted. Bentaleb played a much more withdrawn, conservative role during his time at Tottenham ""To be honest, I was not really thinking when I left England, is it a positive or a negative thing? I was looking at: I'm going to get game time. As long as I'm in a great team and I have some people that believe in me at the club I would be confident I will perform. That's the state of mind I was in when I joined Schalke,""-Bentaleb says. Derby day beckons His frame of mind this weekend against Dortmund will no doubt be somewhat different, especially given his previous derby experience at Tottenham against Arsenal. ""It's quite similar. The rivalry is always there."" Bentaleb was blown away by the thousands of fans who visited Schalke's training ahead of the last derby game, and admitted he was curious to see how good Germany's support was having only seen it from afar. ""The Bundesliga surprised me this season. I see a lot of young players, teams who try to play football. It's difficult every week. You have a lot of young prospects coming through the academy. It surprised me in a positive way,"" Bentaleb says, who adds that the league is among the most entertaining along with England and Spain's top flights. After a modern, clasping handshake more suited to a teammate, Bentaleb disappears behind the walls of the Schalke museum, walls that are scattered with famous faces of years gone by. If Schalke have already given Bentaleb the opportunity to be the player he always knew he could be, it's exciting to think where the 22-year-old might be in three years time. Perhaps by then, Schalke won't be too far off realizing their own potential.", -3777,2017/3/30,http://www.dw.com/en/sieren-s-china-balkans-without-borders/a-38221288?maca=en-rss-en-all-1573-rdf,Sieren's China: Balkans without borders,"China can get to the European markets via Serbia - this is something that Brussels would prefer to prevent. The Serbian president's visit to China is a painful reminder, says DW's Frank Sieren.","Serbia does not immediately come to mind when one thinks of the many countries with which China is trying to foster good relations. Yet, to understand China's approach to the European markets it makes sense to take a closer look at Sino-Serbian relations. As opposed to its neighbors, Romania, Hungary and Bulgaria, Serbia must not adhere to the EU's economic regulations and restrictions. Thus, it has been able to develop much closer ties to China in recent years, without the EU being able to do much. Red carpet for Nikolic This week, Serbian President Tomislav Nikolic is making a two-day visit to Beijing. The fact that the government is rolling out the red carpet and the reception will be attended by China's triumvirate of power - Nikolic's Chinese counterpart Xi Jinping, Prime Minister Li Keqiang and the chairman of the People's Congress Zhang Dejiang - is an indication of how important an even that is only a formality is-actually being considered. Nikolic is even going to be named an honorary citizen of Beijing. During his stay, he will also meet representatives from major Chinese companies, including the IT and communications giant Huawei, whose managers have an eye on the Serbian market. DW's Frank Sieren China is very interested in helping to develop Serbia's infrastructure. In February, a Chinese company started work constructing the E763 highway between Surcin and Obrenovac after President Xi traveled to Serbia to sign the deal personally last summer. Earlier this month, it was announced that Serbia was close to selling the copper miner and smelter RTB Bor to a Chinese mining company. The China Road and Bridge Corporation (CRBC) has already started work on an industrial park. Just a few days ago, Chinese investors pledged some 200 million euros ($214 million) for a highway ring-road around the capital, Belgrade. However, it is still not clear whether Chinese entrepreneurs will build the planned high-speed rail line from Belgrade to Budapest. The China Railway International Corporation was originally awarded the project but the EU is currently looking into whether Hungary may have broken EU rules on public tenders, as none was offered. Visa-free travel Trans-European projects are the only area where Brussels has a say. Generally, Serbia is playing outside the EU's regulatory framework. Otherwise, Brussels would surely have acted against the simplified visa regulations that Serbia and China agreed to last year. Now, citizens of either country no longer need visas for trips lasting fewer than 30 days. Many Germans would love this. Serbia hopes to benefit from a small tourism boom. China participated in Serbia's annual tourism fair for the first time this February. While Serbia is far from being top of the list of destinations for Chinese tourists, the situation is changing. Last year, there was a 29 percent increase in the number of Chinese visitors to Serbia. Some 43,000 tourists will not make a huge difference to the Serbian economy, but at far more than 12,000 in 2011, it is a start. Prime Minister Aleksandar Vucic is placing his hopes on a direct flight between Beijing and Belgrade. One of the brochures aimed at Chinese visitors during Serbia's tourism fair promoted a ""Balkans without borders"" journey. It may sound like a peaceful vacation for some but for the EU it could seem as if China is trying to get in through the back door. Frank Sieren has lived in Beijing for over 20 years.", -3778,2017/3/30,http://www.dw.com/en/read-my-lips-no-putin-chooses-a-peculiar-quote-and-then-bungles-it/a-38221074?maca=en-rss-en-all-1573-rdf,'Read my lips: no!' Putin chooses a peculiar quote and then bungles it,"If you're going to deny something, you probably shouldn't be using this quote. And misattribution would just draw even closer scrutiny.","When Russian President Vladimir Putin was asked directly whether his government tried to influence the 2016 US Presidential election, he had a strange response on Thursday. ""Ronald Reagan once, when discussing taxes, addressed Americans with 'Read my lips: no,'"" Putin said. ""Read my lips: no,"" he repeated, speaking in English for the final word. The quote actually was said by then-Vice President George H. W. Bush in 1988 during his presidential campaign. But crucially, the reason the quote became so famous was because despite Bush's clear promise to not increase taxes, he did exactly that just two years later. Bill Clinton used the quote as a clear example of a broken promise and went on to crush Bush in the 1992 presidential election. It has since entered US public consciousness as being synonymous with a lie. Putin thus borrowed a curious choice of quotation-to use in denying his involvement in election meddling. Fevered discussion On Thursday, fevered discussion of Russia's involvement in the election was dialed up even further with a hearing by the Senate intelligence committee. Committee member and Virginia Democratic Senator Mark Warner said Putin ""ordered a deliberate campaign carefully constructed to undermine our election."" When one Senator suggested they follow the money involved in suspicious real estate deals and money laundering to find the Russia link, a Russia expert suggested that they also ""follow the dead bodies."" Clint Watts, a Russia expert with the Foreign Policy Research Institute Program, said several Russians tied to the investigation into Kremlin disinformation activities were killed in the past three months - not only in Russia, but in western countries as well. On January 6, the Director of National Intelligence and the heads of the FBI, CIA, and NSA all announced they were convinced that Putin had masterminded the effort to manipulate the November election. But they held back their evidence. The FBI announced it is conducting a counterintelligence probe-led by director James Comey --who was-already under a cloud for his own alleged interference in the election, which hurt Democratic candidate Hillary-Clinton. And a separate investigation in the House of Representatives has become mired in controversy over accusations that its Republican chairman, Trump ally Devin Nunes, was biased and withheld evidence. As Republican Senator John McCain said, ""I think there are lot of shoes to drop from this centipede."" aw/kl (AP, Reuters, AFP)", -3779,2017/3/30,http://www.dw.com/en/drc-crisis-worsens-as-un-mulls-monusco-s-mandate/a-38220463?maca=en-rss-en-all-1573-rdf,DRC crisis worsens as UN mulls MONUSCO's mandate,The UN is considering reducing the number of peacekeeping troops (MONUSCO) in the DR Congo at a time when the nation is engulfed in crisis. The opposition is calling for 'ghost town' protests amid political uncertainty.,"Congolese President-Joseph Kabila has not yet confirmed or denied whether he will run for a third term. There is also uncertainty over whether the elections which are scheduled for December will actually talk place. The main opposition alliance Rassemblement has called for people to stay home on Monday so as to put pressure on Kabila to implement a power-sharing deal. On Monday, two staff members of a UN commission were found dead. They were part of a team which was investigating human rights violations in the volatile Kasai province. The Congolese government has said it will open an investigation into the deaths of the two experts and the UN has strongly condemned the murders. It is still unclear who is behind the killings. ""I think what's more significant is that this highlights that we are currently in a situation of escalating violence in eastern Congo,"" Phil Clark, a political scientist at SOAS, University of London, told DW. Send Facebook Twitter Google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink http://dw.com/p/2aHRQ Government forces and rebels have clashed for months. According to the United Nations, more than 400 people have been killed. The UN is aware of at least ten mass graves in the region. Around 200,000 inhabitants are on the run. For a long time, the Kasai region was considered relatively peaceful. But there have been violent outbreaks everywhere in the country. ""The situation is drastic, President Kabila is making no effort to send his army to the crisis-ridden regions to protect the people, but instead to stir the conflict,"" said Gesine Ames from the Ecumenical Network of Central Africa. Congolese President Joseph Kabila has been accused of wanting to cling to power ""The increasing trend of military-political alliances of groups that want to push for political change by force is also worrying,"" Ames told DW. According to Clark, the crisis is directly connected to whether President Kabila will try to run for a third term and whether he will stick to his promise of holding the presidential elections at the end of this year.- ""The longer there is uncertainty on these issues, the more there will be instability in the east,"" Clark said. Church abandons peace talks The political crisis has also escalated in the capital, Kinshasa. There were riots on Tuesday after negotiations between the government and the opposition broke down. The Catholic Church has been mediating to find a peaceful resolution to the conflict in the country. But it recently gave up. The Archbishop of Kinshasa, Marcel Utembi, blamed a lack of sincere political will and inaptitude on the part of some politicians. The Congolese Catholic church has regretted the lack of political will from leaders ""Normally, pressure from Congolese religious groups is quite strong and has an impact,"" Natalie Ansorg, an associate at the GIGA Institute of African Affairs in Hamburg, told DW. ""But at the moment, the situation is hopeless,"" Ansorg said. On Friday, the UN Security Council is scheduled to vote on a resolution to extend the mandate of its MONUSCO peacekeeping mission. MONUSCO is the UN's biggest mission and has a 22,400 strong-staff including 17,000 blue helmets as well as over 1,350 police. The mission is also the UN's costliest with a budget of $1.2 billion (1.1 billion euros). Niki Haley, the US ambassador to the UN criticized the UN for ""partnering with a corrupt government in Congo."" She has called for a large cut in MONUSCO's budget. Haley said the peacekeeping mission in DRC can be reduced tremendously. MONUSCO's tainted mission DRC expert Phil Clark said MONUSCO's overall record in terms of protecting civilians was poor. ""The UN has consistently failed to protect them from the Congolese armed forces and other armed rebel groups,"" Clark said. MONUSCO could see its troops reduced by at least seven percent by the UN Clark said, while it was an important moment for the peacekeeping mission's mandate to be renewed, there is also a need to have a serious conversation about how to make it an effective peacekeeping mission ""so that it can ultimately live-up to its mandate of protecting Congolese civilians."" The relationship between MONUSCO and the Congolese government has always fluctuated. Whereas in the past the relationship was somewhat close, at the moment, the peacekeeping mission has become increasingly vocal about atrocities committed by Kabila's government. Martina Schikowski/cm/sh", -3780,2017/3/30,http://www.dw.com/en/german-firms-back-off-from-building-trump-s-border-wall/a-38218134?maca=en-rss-en-all-1573-rdf,German firms back off from building Trump's border wall,Two German firms are among the 700 listed as showing interest in building Donald Trump's wall on the Mexican border. One has already distanced itself from the project - while the other says it is protesting against it.,"Germany has had experience with walls - but the memories aren't happy. That could be why, despite a wealth of multinational construction firms (an industry that represents some 10 percent of Germany's GDP), only two German companies are listed among the 700 said to be interested in building Donald Trump's proposed wall along the Mexican-US border. Both of these companies have now distanced themselves from the US president's flagship anti-immigration project, clarifying that they had registered so as to be updated on the competition, not because they wanted to take part. The Bavaria-based Bauer AG, which boasts 110 subsidiaries and nearly 11,000 employees working in around 70 countries, reacted with some consternation to a report in Thursday's ""S��ddeutsche Zeitung"" daily that noted its presence on the list. ""The fact is, it is normal in the US to enter yourself on the information mailing list for competitions - which 700 firms did in this case, and which is standard practice,"" spokesman Christopher Wolf told DW by email. ""There are no efforts from Bauer's side to participate in this project!"" But Wolf was not content to leave it at a simple clarification of the company's intentions. ""Beyond this, Bauer completely rejects the rhetoric and moral position of US President Trump on the subject of building walls,"" he added. Trump promised his wall would be 'beautiful' Bringing people together The other company on the list was Leupold Brown Goldbach, a Munich architect's studio with an office outside Boston, Massachusetts. It too was mentioned in the ""S��ddeutsche Zeitung,"" and was concerned that its intentions hadn't been clear in the report. ""We didn't do this because we want to be part of a big job in America - quite the contrary,"" partner Andreas Leupold told DW. ""We wanted to be part of the protest movement against this project."" Leupold said he sees his company as part of the ""Alt-Wall"" movement - a collective of artists, intellectuals and architects specifically set up to voice its opposition to Trump's colossal construction project. ""There are definitely better solutions,"" said Leupold. ""And we felt compelled to contribute to that opposition in some way."" Leupold is also worried that his profession has been ""much too quiet"" about Trump's wall. ""This is an architectural task - it's a monumental construction project that is supposed to be built there, and architects haven't really said anything about it,"" he said. ""That's why we thought [Alt-Wall] would be a good platform to announce that, and so inspire a wider discussion."" There are already border fences along parts of the US-Mexican border Germany's wall-phobia It's certainly notable that not a single German company has signaled any-intention to bid for the Mexican border wall. There was a flurry of media speculation at the end of February when Marcelino Fernandez Verdes, CEO of Hochtief, one of Germany's biggest multinational construction firms, did not rule out bidding for the project. But the company put out a statement within days clarifying that Hochtief had ""no plans"" to be part of the border wall. ""You definitely wouldn't get good press as a German company - in Germany, just the word 'wall' has a lot of power as a symbol,"" said Leupold. ""That might well be why no one has taken part yet. For us as an architect's studio, we asked ourselves what we stand for - we always want to be for openness, transparency, for democracy - and not division."" The US Department of Homeland Security posted its request for proposals for a ""Solid Concrete Border Wall"" on March 17, saying it wants Trump's wall to be at least 18 feet (5.5 meters) tall, stretch the length of the 1,933-mile US-Mexican border, and be impervious to attempts to climb over or tunnel underneath it. Private contractors interested in a commission will be asked to build 10-foot prototype sections and then provide more details in May.", -3781,2017/3/30,http://www.dw.com/en/germany-s-top-court-rules-parents-must-betray-children-in-piracy-cases/a-38220259?maca=en-rss-en-all-1573-rdf,Germany's top court rules parents must betray children in piracy cases,German parents must rat out their adult children or pay up if they are caught making illegal computer downloads. The ruling came against a family who said the law protects relatives from testifying against each other.,"Parents are legally obligated to tell the authorities which of their children illegally downloaded music or movies over the family internet connection, Germany's high court ruled on Thursday. The decision means that copyright law comes above family protection laws. If the parents do not-want to tell tales on-their kids, they must pay the fine themselves, even if the offender is over 18 years of age, according to the ruling. No one has to ""deliver their children at knifepoint,"" said state prosecutor Christian Rohnke. The case revolved around the parents of three adult children who were slapped with a fine of 3,500 euros ($3,750) by a Munich judge after someone in the home pirated a copy of singer Rihanna's 2010 album ""Loud."" Rihanna singing in Hanover The father claimed that under Germany's law which protects-family members from testifying against each other, he should not have to say which of his children had committed the crime. This does not mean, however, that family members are obliged to keep tabs on their relatives' browsing history, the court was at pains to make clear. In the case that no one wants to come forward, whoever's name is on the internet contract will have to pay the fine for illegal file sharing. es/jm-(AFP, dpa)", -3782,2017/3/30,http://www.aljazeera.com/news/2017/03/venezuela-supreme-court-assumes-congress-role-170330152520865.html,Venezuela Supreme Court assumes Congress role,Critics accuse President Maduro of 'staging a coup' after top court's decision to take over powers assigned to Congress. Easy ventures,"Venezuela's Supreme Court has ruled that it will take over the opposition-led Congress' legislative powers, in a move condemned by opposition parties as an attempt to install a dictatorship. The court, which has consistently sided with President Nicolas Maduro's administration, said late on Wednesday that as long as the Congress remains in ""contempt"" of past court rulings ""congressional functions will be exercised by this chamber or another chosen organ"". The dispute centres on three legislators banned over vote fraud accusations. Maduro critics say is an excuse for the government to muzzle opposition during a mounting economic crisis in the oil-rich country. The Democratic Unity organisation, an opposition bloc, criticised the Supreme Court's decision on Thursday, with several legislators accusing Maduro of acting like a dictator. ""This unconstitutional sentence that we reject ... cements another step in the dismantling of Venezuela's democracy,"" the opposition said in a statement. ""This government is dying, and that's why it's turning to these desperate measures."" ""Nicolas Maduro has staged a coup in Venezuela,"" Congress Speaker Julio Borges said in a fiery speech outside the National Assembly on Thursday. The head of the Organisation of American States (OAS), a bloc of 34 independent countries including Venezuela, also accused Maduro's government of carrying out a ""self-coup"". ""The sentences from the Supreme Court ... are the final blows with which the regime subverts the constitutional order of the country and finishes with democracy,"" said OAS Secretary-General Luis Almagro in a statement. The measure may come as good news for some foreign oil companies in Venezuela that were spooked by the opposition's warning that investment deals bypassing Congress would not be considered valid. As Venezuela tries to raise funds while facing steep bond payments and a reeling economy, it has sought to sell stakes in oil fields. State oil company PDVSA recently offered Russia's Rosneft a stake in the Petropiar oil joint venture, sources with knowledge of the proposal told the Reuters news agency this month. On Wednesday, the Supreme Court authorised Maduro to create joint oil ventures without congressional approval. Source:-News agencies", -3783,2017/3/30,http://www.aljazeera.com/news/2017/03/syrian-refugee-critical-immolation-chios-170330142455924.html,Chios: Syrian refugee critical after 'self-immolation',"Man, 29, sustains burns to 85 percent of his body after incident inside the Vial centre on the Greek island of Chios. Delays and despair","A Syrian refugee is in critical condition after what appeared to be a self-immolation attempt on the Greek island of Chios, according to medical sources. The incident happened-around 2pm local time (11:00 GMT) on Thursday inside the Vial detention centre. Videos posted on social media showed the 29-year-old man being engulfed by flames, just moments after a tussle with a police officer who had grabbed him from behind. READ MORE: Spurned, hopeless and attacked, refugees' drama goes on The refugee, who reportedly arrived on Chios last week, sustained burns to 85 percent of his body. He-was initially admitted to the island's Skilitseion Hospital and was expected to be air lifted to the capital, Athens, for further treatment. ""His condition is particularly serious, and that is why all procedures have been followed to transfer him to Athens with the first available means,"" Eleni Voutierou, the hospital's acting manager, told Al Jazeera. The police officer was also injured in the incident, suffering burns on seven percent of his hands and three percent of his face. He-was also expected to be transported to an Athens hospital. The incident comes three days after the apparent suicide of another Syrian refugee in the Greek port of Piraeus, near Athens. The Greek coastguard on Thursday confirmed to Al Jazeera that the man who had been found hanged on-Monday close to a passenger ferry terminal at Greece's biggest port had been identified as a 25-year-old Syrian. An estimated 62,000 refugees and migrants are currently stranded in mainland Greece and its islands following a wave of European border closures and a controversial deal between the European Union and Turkey in March last year. READ MORE: Number of Syrian refugees surges in 2017 Under the agreement, migrants and refugees arriving in Greece after March 20, 2016, were to be held in centres on five islands, including Chios, and deported to Turkey if their asylum applications are rejected. Since then, tensions across Greece have often boiled over as the relocation process moves slowly, is applied inconsistently, and is fraught with particular difficulties, including refugees having to navigate a complex legal asylum system in foreign languages. Amid the difficult living conditions, the delays and the despair, some attempt to kill themselves and many self-harm, according to rights groups. ""Many asylum seekers and migrants stranded in Greece, and trapped on the islands, have seen their mental health deteriorate due to the conditions in which they live in, and the climate of insecurity about what will happen to them in the future,"" Eva Cosse, Greece specialist at Human Rights Watch, told Al Jazeera. READ MORE: Refugees attempt suicide by hanging from tree in Greece Rights groups are also warning that despite large amounts of funds being made available, refugees are still lacking access to much-needed mental healthcare and psychosocial support. ""The authorities should transfer people as fast as possible to decent accommodation on the mainland, and improve provisions for much-needed mental health services and psychosocial support. The European Commission should also ensure that the allocated aid benefits all refugees without discrimination, including people with psychosocial disabilities,"" Cosse said. Aid agencies and humanitarian workers have long warned of a worrying level of mental health issues, including self harm and depression, among uprooted asylum seekers, particularly in unaccompanied ones, who have risked everything to find a better future. ""Many refugees come from Afghanistan, Iraq and Syria, and have survived human rights abuses, torture or witnessed war crimes which can be traumatising,"" Roland Schoenbauer, spokesman for the United Nations' refugee agency in Greece, told Al Jazeera. READ MORE: Greece charges cleric with child refugees' sexual abuse ""Many, including some of the economic migrants, arrived in Greece with a dream which has been disrupted in the meantime. Long waiting periods for clarity, for reunion with painfully missed relatives in other European countries, or for relocation have made many people desperate, particularly in those government-run camps that could not be brought up to standard."" His comments were also echoed by Kuriakos Katsadoros,-a psychiatrist with Klimaka, a-suicide prevention non-governmental organisation that runs a helpline in Greece. ""Under these conditions, tense situations could lead to such unfortunate incidents [including attempted suicides],"" said Katsadoros, the scientific director of Klimaka's Greek Suicide Prevention Centre. ""And amid such large numbers, there are people who are vulnerable and in need of help - which they often can't find, unfortunately, in Greece,"" he told Al Jazeera. ""They need support, not only from the strained Greek authorities but also from Europe."" Source:-Al Jazeera News", -3784,2017/3/30,http://www.aljazeera.com/news/2017/03/court-approves-warrant-leader-park-arrest-170330182701943.html,Court approves warrant for ex-leader Park's arrest,"Ousted president can be held in a cell for up to 20 days while she is probed on multiple charges, including bribery.","A South Korean court has approved a warrant to arrest ousted President Park Geun-hye, who was removed from office earlier this month over corruption allegations - the first democratically elected leader ever to be arrested in the country. The ruling early on Friday by the Seoul Central District Court came after Park, 65, faced nearly nine hours of questioning over a number of charges, including bribery and abuse of presidential power. She was held at a prosecutors' office next door while a judge at the court studied the evidence and arguments to decide on whether to issue the arrest warrant. ""The cause and the need for the warrant are recognised as the main charges against her have been verified and as evidence could be destroyed,"" the judge said later-in a statement. The former president, who could face more than 10 years in jail if convicted,-can now be held in a cell for up to 20 days while she is being investigated. Park is expected to be transferred to a south Seoul detention facility for high-profile suspects. There, she may be given a bigger cell than other inmates, but she would be subject to the same rules on everything from meals to room inspections, according to former prosecution and correctional officials. READ MORE: The day Park Geun-hye was ousted Park had her removal from office confirmed by the country's top court on March 10, ending her executive immunity, and her prosecution has been a key demand of millions of people who took to the streets to protest against her. She has been accused of colluding with a friend, Choi Soon-sil, and a former presidential aide, both of whom have been on trial, to pressure big businesses to donate to two foundations set up to back her policy initiatives. Park is also accused of soliciting bribes from the head of the Samsung Group for government favours, including the backing of a merger of two Samsung affiliates in 2015 that was seen to support the succession of control over the country's largest ""chaebol"" conglomerate. The former president has denied any legal wrongdoing. She apologised for putting trust in Choi, but said she only let her edit some of her presidential speeches and provide the president with some ""public relations"" help. Al Jazeera's Yaara Bou Melhem, reporting from Seoul, called the court's ruling ""historic"".- ""Park is the first democratically elected leader to be detained after being impeached and forced out of office. The court didn't take their decision lightly. It's 3:30am now (18:30GMT), and the court hearing ended yesterday evening after a marathon eight hours and 40 minutes hours of arguments about whether this arrest warrant request should be upheld. ""It was the longest hearing ever held for an arrest warrant and the court eventually ruled in favour of the prosecution, saying the key allegations have been explained and it's issuing the arrest warrant because there was the potential she could destroy evidence,"" Melhem said. Park, daughter of late dictator Park Chung-hee, is also said to have ordered aides to leak secret state files to Choi, and to have cracked down on thousands of artists who had voiced criticism of her or her father's rule from 1961 to 1979. Park was elected in 2012, largely thanks to a bedrock of support among older, conservative voters who benefited from rapid economic growth under her father's rule. Source:-Al Jazeera and news agencies", -3785,2017/3/30,http://www.aljazeera.com/news/2017/03/syria-kurdish-ypg-fighters-dominate-turkey-talks-170330180959143.html,Syria: Kurdish YPG fighters dominate Turkey-US talks,"'A number of options' for Raqqa military operation in Syria, but no agreement reached between Turks and Americans.","The United States and Turkey struggled on Thursday to resolve a deep dispute over the Kurdish role in the fight against Islamic State of Iraq and the Levant (ISIL), as US Secretary of State Rex Tillerson wrapped up his first trip to Turkey. As the US prepares an operation to retake the de facto ISIL capital of Raqqa in Syria, the Turks and Americans are deadlocked over who should do the fighting. Turkey wants the US to partner with its military and Turkish-backed forces in Syria. But Washington has been backing Syrian Kurdish fighters who have proven the most effective ground force against ISIL. ""Let me be very frank: These are not easy decisions,"" Tillerson said in Ankara. ""They are difficult decisions that have to be made."" OPINION: Rex Tillerson's Turkey visit: A critical juncture- Turkey considers the Kurdish force, known as the YPG, to be a ""terrorist group"" that threatens Turkey's security. The US hasn't formally announced a decision on who will be part of the Raqqa operation. But all signs point to Washington continuing to bet on the Kurds. In recent days, the US military airlifted hundreds of Syrian Kurdish forces along with US military advisers and artillery behind enemy lines in preparation for the Raqqa offensive. Tillerson said he and Turkish Foreign Minister Mevlut Cavusoglu had explored ""a number of options and alternatives"" for the operation, but signaled they'd reached no agreement. Cavusoglu, standing alongside Tillerson, warned past US support for Syrian Kurdish forces had already damaged America's relations with Turkey. He accused the US of using one ""terrorist organisation"" to fight another. ""It has negatively affected the Turkish people's sentiments toward the United States,"" Cavusoglu said in Turkish. John McCain warns of 'tough decisions' on Syrian Kurds Cavusoglu claimed the Trump administration and the US military have accepted that the YPG - the dominant force in the US-backed Syrian Democratic Forces - is intrinsically linked to the PKK, or Kurdistan Workers' Party. The PKK has led a three-decade long insurgency in southeast Turkey and is considered a ""terrorist group"" by the US. But the US has not extended that designation to the Kurds in Syria, and American military officials have said there's no evidence the YPG has posed a threat to Turkey in recent years. ""The US military accepts that there is no distinction between the PKK, which is a terrorist organisation, and the YPG. However, the previous administration failed to acknowledge that,"" said Cavusoglu, referring to Barack Obama's government. ""We have repeatedly expressed that it is a mistake to consider cooperation with a terrorist organisation in the guise of the YPG, and in the long term that would be a mistake in Syria."" Erdogan: Syrian Kurd forces used to take Raqqa 'naive'- Though the US and Turkey share a goal of defeating ISIL in Iraq and Syria, the US has been concerned that Turkey's Operation Euphrates Shield is more focused on preventing Syrian Kurds from forming an autonomous region in northern Syria, along Turkey's border, that could embolden Turkey's own Kurdish minority. On Wednesday, Turkish Prime Minister Binali Yildirim announced the operation had ended after its troops and allied rebels secured territory along the border between Turkey and Syria. ""Life is back to normal. Everything is under control,"" Yildirim said on Turkey's NTV news channel. ""Euphrates Shield has ended. If there is a need, a new operation will have a new name."" Source:-Al Jazeera and news agencies", -3786,2017/3/30,http://www.aljazeera.com/news/2017/03/number-syrian-refugees-passes-million-170330132040023.html,UN: Number of Syrian refugees passes five million,"UN report says Turkey now hosts nearly three million Syrians, with 47,000 more coming since February alone. Financial aid falling short","The number of refugees who have fled the war in Syria now exceeds five million with millions more displaced internally, according to the UN. Syrians have poured across their borders since anti-government protests in 2011 spiralled into a full-blown conflict between rebels, government troops, and foreign backers. The first three months of 2017 saw more than 250,000 additional Syrians register as refugees bringing the total to 5.1 million, the UN's refugee agency UNHCR said on its website, without providing an explanation for the apparent surge. ""It's not about the number, it's about the people,"" said UNHCR spokesman Babar Baloch, noting the conflict had now lasted longer than World War II. ""We're trying to look for understanding, solidarity and humanity."" Turkey continues to host the highest number of Syrians displaced by the conflict - nearly three million people. It saw an increase of 47,000 more refugees since February, Baloch said.- READ MORE: The harrowing evacuation of east Aleppo The five-million milestone came a year to the day after UNHCR asked other countries to start resettling at least 10 percent of the most vulnerable Syrian refugees. So far only 250,000 places have been offered. ""We're asking for more legal pathways for Syrians to travel to other countries so that they don't end up dying in the seas like in the Mediterranean,"" said Baloch. Al Jazeera's Andrew Simmons, reporting from Geneva, said the ""enormity and colossal suffering"" of the refugees is evident from the-UNHCR-report. The total number of Syrian refugees abroad stood at 4.6 million at the end of 2015 and rose to 4.85 million by the end of last year, according to the agency's data. The agency estimated another 6.3 million people have been internally displaced. Lebanon has more than one million Syrian refugees, while Jordan has 657,000, with others spread across Iraq, Egypt and other North African countries. Al Jazeera's Alan Fisher, reporting from Lebanon's Bekaa Valley, said the actual number of Syrian refugees in Lebanon is much higher than the official figure, with more people streaming into the country in the last few weeks. He said most of the new arrivals have not yet registered with the UN, and shortages of food and water is common. -- War-torn Iraq also hosts 233,224 Syrian refugees in the Kurdish north. Iraq itself has an estimated 3.5 million people internally displaced, according to Al Jazeera's Hoda Abdel Hamid, reporting from east of Mosul. - Hundreds of thousands of Syrians have also fled to Europe, but not all have been granted refugee status. Syrians have also fled to Europe in large numbers, making 884,461 asylum claims between April 2011 and October 2016. Almost two-thirds of the claims were in Germany and Sweden. Hundreds of thousands more live in Gulf countries that are not party to the 1951 Refugee Convention, such as Saudi Arabia, Qatar, and the United Arab Emirates, so they are not recorded as refugees. A UN-led humanitarian appeal to help Syrian refugees and support host communities has received only six percent of the money needed this year - $298mn out of $4.6bn target. Source:-Al Jazeera and news agencies", -3787,2017/3/30,http://www.aljazeera.com/news/2017/03/118-foreign-detainees-die-malaysia-years-170330145247144.html,118 foreign detainees 'die' in Malaysia in two years,"Report says more than half of the 118 dead are from Myanmar, the source for thousands of refugees coming to Malaysia. 'Appalling'","More than 100 foreigners have died from various diseases and unknown causes-in the past two years in Malaysia's immigration detention centres, according to documents reviewed by the Reuters news agency. The reported toll, which has not been previously disclosed, is based on Malaysian immigration department data provided to the National Human Rights Commission, which is known by its Malay acronym Suhakam. Reuters reported on Thursday that documents-from the government-funded commission detailed 83 deaths in 2015 and at least 35 in 2016 up to December 20. More than half of the 118 dead were reportedly from Myanmar, the source for tens of thousands of refugees coming to Malaysia, including Rohingya Muslims escaping persecution by Myanmar's authorities and its majority Buddhist population. In Pictures: Malaysia's unwanted immigrants It is unclear whether the death rate is higher than in neighbouring countries. Government officials in Indonesia and Thailand told Reuters they do not disclose such numbers. The rate is higher than in countries such as the United States, which in the last financial year recorded 10 deaths in its much larger immigration detention system. Malaysian Prime Minister Najib Razak has been a harsh critic of the Myanmar government and its de-facto leader Aung San Suu Kyi after a crackdown in October by Myanmar's security forces led many Rohingya to flee across its borders amid multiple allegations of mass killings and gang rapes by troops. He has called for foreign intervention to stop the ""genocide"" in Myanmar. Najib's office did not return calls seeking comment. ""The numbers are too many and are shocking and it calls for the overhaul of the system,"" said Jerald Joseph, one of eight commissioners at Suhakam, which is due to publicly announce the numbers next week in its annual report on human rights issues in Malaysia. Joseph-described conditions at the centres, some of which he had visited, as ""appalling"" and said the deaths should be investigated as a criminal matter. The illnesses that led to some of the deaths may have been caused or exacerbated by poor sanitation and food, physical abuse and a lack of medical attention, said Joseph, who was speaking on behalf of the commission. Malaysia's home ministry, which oversees the immigration department, said it was trying to improve the conditions in the centres but that its budget was constrained. ""I agree there is some overcrowding and the conditions are not ideal. We are always trying to improve the procedures, health conditions and management of these sites. The problem is we hit a budget brick wall,"" deputy home minister Nur Jazlan Mohamed told Reuters. Source:-Reuters news agency", -3788,2017/3/30,http://www.aljazeera.com/indepth/features/2017/03/mexico-border-wall-stake-170327135349790.html,The US-Mexico border wall: What's at stake? Massoud Hayoun,In a five-part series we explore the stories of the Mexicans and Americans living along the border. By 1. How long is the border wall? 2. How is Trump's wall affecting those at the border?- 3. What are the potential ecological implications of the wall? 4. Does Mexico have walls along any of its other borders? 5. What has been the cost of Trump's wall for migrants? 6. The existing wall in photos-,"Throughout his 2016 election campaign, President Donald Trump called for the construction of a bigger, more impenetrable border wall along the US border with Mexico. He also announced plans to stop illegal-immigration-and make-Mexico pay for this proposed wall. ""A nation without borders is not a nation. Starting today, the US gets back control of its borders,"" he said. ""This will help dismantle cartels, keeping illegal weapons and cash from flowing out of America and into Mexico."" Condemning the move,-Mexican President Enrique Pena Nieto said his country would not pay for the wall: ""Mexico does not believe in walls. I have said it time and again: Mexico will not pay for any wall."" In a five-part series we explore the stories and the lives of people who live along both sides of the border, and set out to answer the main questions on this issue.- The US and Mexico share a 1,954-mile (3,142km) border. One thousand and one hundred kilometres of this border already has walls, wired fences or metal fences separating the two countries.- There is also a virtual wall,-monitored by cameras, thermal sensors, X-rays and more than 20,000 border agents. On one end of the border, the countries are divided by rivers and the deserts of Sonora and Chihuaha, creating a natural border fence where temperatures can reach up to 50 degrees Celcius. President Trump has said his wall will cover 1,000 miles (1,600km), and he estimates the cost to be $10-12bn, while homeland security has calculated it to be around $21.6bn. There have been more migrants and more migrant shelters opening in Tijuana, a border town in Mexico, since Trump launched his campaign to keep Mexicans and other immigrants out of the US, activists say. READ MORE: How Trump's wall is affecting those at the borders The shelters are struggling to cope with the huge wave of migrants and deportees currently crossing back into Mexico. And businesses have been feeling the economic impact. Mexican shops that would previously have been crowded with tourists are often empty, while vendors in the US city of San Diego say they too are suffering as fewer Mexicans, who would in the past cross the border to buy goods, do so. ""Trump's proposed border wall would be devastating for people and animals that have migrated for centuries across the US's southern border with Mexico,"" said Monica Embrey, senior energy and climate campaigner at international environmentalist organisation Greenpeace. ""The violence of the wall includes severing a wildlife corridor for endangered species and seizing poor people's land by eminent domain. Border walls also often act as hazardous dams. Rainfall washes plants and trash against the metal pillars and the water pours downslope into poor communities that are already without drainage infrastructure,"" she added. READ MORE: Who is really paying for Donald Trump's border wall? Rebekah Hinojosa is a Tejana - a Mexican American from Texas - community organiser whose family has lived at the border between the US and Mexico for generations. She cites past precedent with the existing border walls when discussing the potential ramifications of Trump's wall. ""In 2008, the section of wall that bisects the Arizona/Sonora border backed water up to over six feet deep; two people drowned and residents suffered millions of dollars of damage. ""Border communities, from Tijuana to Rio Grande Valley of Texas, experience generational poverty and yet the Trump administration is fixated on spending billions of dollars for walls that do nothing but act as monuments to racism,"" she added. Mexico borders the US in the north and Guatemala in the south. It has increased the number of checkpoints and border patrols on its southern border with Guatemala. Many migrants from countries such as Honduras, El Salvador and Guatemala attempt to cross that border into Mexico. Most are going in search of the ""American dream"" and are hoping to reach the US.- In 2014, under a programme called Programa Frontera Sur, Mexico doubled the number of migrants it deported.-Those that are caught by the authorities often end up in what is the largest migrant detention centre in Latin America, located in Tapachula. There are 3,000 to 3,500 Haitians just in the city of Tijuana in Mexico, and another 1,000 to 1,500 in Mexicali, another border town 200km east. Some came after the hurricane in September and October 2016, but most came in April and May 2016, during Trump's election campaign.- ""It's no coincidence it happened as Trump's chances increased,"" said Hugo Castro, the director of Border Angels, an organisation that delivers resources to migrants attempting to reach, or who have been deported from, the US. ""It's the Trump effect."" READ MORE: The cost of Trump's wall for migrants Nearly 700 undocumented people have been detained in nationwide sweeps in the US. ""The wall will bring more death. Is it going to be safer? It depends on your perspective.""-The wall may keep some migrants out, but only time will tell how many more will die taking desperate measures to find workarounds, one source told Al Jazeera. Source:-Al Jazeera News", -3789,2017/3/30,http://www.aljazeera.com/news/2017/03/fighters-blow-grenade-bangladesh-170330155634834.html,Fighters blow themselves up with grenade in Bangladesh,Police come under grenade attack during a raid near the capital as violence continues to hit the South Asian nation.,"As many as eight fighters blew themselves up with a grenade in Bangladesh rather than surrender, police said on Thursday, the latest clash in the South Asian country that has seen a rise in violence. Police urged the group, holed up in their hideout in Nasirpur, northeast of the capital Dhaka, to give themselves up on Wednesday, but instead they detonated the explosive. Police officers came under attack during the operation with at least eight grenades tossed at them as they cordoned off two houses, both owned by a Bangladesh-origin British citizen. Counter-terrorism officers and the elite SWAT unit then stormed one of the hideouts and found body parts scattered across two rooms. ""Up to eight militants, including a female, were killed,"" Monirul Islam, the chief of police counter-terrorism and transnational crime, told reporters. He added there could also be children among the dead. ""There was an explosion late yesterday afternoon when the operation began. They died due to that explosion,"" Islam said. On Monday, Bangladesh army commandos killed four fighters in the northeastern city of Sylhet during a raid on a building where they were holed up. On Saturday, six people, including two police, were killed and more than 40 wounded in two bomb blasts near the hideout in the Sylhet building. Islamic State of Iraq and the Levant (ISIL) claimed responsibility ""for a bombing on Bangladeshi forces in Sylhet"", the SITE monitoring service said, citing a report on the group's website Amaq, which appeared to refer to that incident. The government rejected the claim and instead blamed the banned homegrown organisation Jamayetul Mujahideen Bangladesh (JMB).- Bangladesh anti-terror raids: Civilians killed in blast ISIL and al-Qaeda have made competing claims over killings of foreigners, liberals, and members of religious minorities in Bangladesh, a mostly Muslim country of 160 million people. The government has consistently ruled out the presence of such groups, blaming domestic attackers instead. Analysts say they pose a growing danger in conservative Bangladesh, which has been roiled by political turmoil and instability for years. Source:-News agencies", -3790,2017/3/30,http://www.aljazeera.com/news/2017/03/north-korea-malaysia-deal-ends-diplomatic-spat-170330133632180.html,North Korea-Malaysia deal ends diplomatic spat,"Malaysia releases body of Kim Jong-nam and allows North Koreans to depart, as Pyongyang frees Malaysians in return.","The body of Kim Jong-nam, half brother of North Korea's leader, has been released to the communist country, ending a drawn-out diplomatic drama over his murder with VX nerve agent at a Malaysian airport. - Malaysian Prime Minister Najib Razak said in a statement on Thursday the coroner approved the move ""following the completion of the autopsy on the deceased and receipt of a letter from his family requesting the remains be returned to North Korea"". Kim was assassinated at Kuala Lumpur's airport on February 13 after the chemical weapon was smeared on his face by two women, according to Malaysian authorities. An Indonesian woman and Vietnamese woman have been charged with murder. The attack outraged Malaysia and sparked the diplomatic row with North Korea, resulting in travel bans on both sides and a collapse in long-standing friendly ties. Kim Jong-nam: N Korea accuses US and S Korea of murder- Najib also said nine Malaysians barred from leaving North Korea because of the row had been allowed to board a plane to leave Pyongyang, adding on Twitter it was expected to reach Kuala Lumpur at 5am Malaysian time (2100 GMT). North Korean citizens in Kuala Lumpur will also be allowed to return home, he said. ""I had a deep personal concern about this matter, and we worked intensively behind the scenes to achieve this successful outcome,"" Najib said. ""Many challenges were overcome to ensure the return of our fellow Malaysians. The safety and security of our citizens will always be my first priority."" OPINION: Kim Jong-nam attack reveals true nature of North Korea Sufian Jusoh, a senior fellow at the Institute of Malaysia and International Studies, told Al Jazeera from Kuala Lumpur it was the end of the diplomatic spat, but it would not bring the previously strong relationship ""back to normal"". ""The fact that Malaysian diplomats have left North Korea means that's the end of diplomatic representation,"" he said. ""Therefore, this will cause a huge delay in Malaysia's effort to penetrate the North Korean trade market."" VX nerve agent A joint statement by the North Korean government released simultaneously said both countries managed to ""resolve issues arising from the death"" at a meeting in Kuala Lumpur. ""The importance of bilateral relations was reaffirmed. In this connection, both countries agreed to positively discuss the re-introduction of the visa-free system and work towards bringing the relations to a higher level,"" said the statement from North Korea. Malaysia imposed a travel ban on North Koreans leaving the Southeast Asian country in a tit-for-tat move after Pyongyang barred Malaysians from leaving its borders. North Korea was angered by Malaysian authorities, who identified North Korean suspects and wanted to question others, including a diplomat at its embassy in Kuala Lumpur. Pyongyang has maintained the body was that of Kim Chol as stated in his passport, and not Kim Jong-nam. It also denied any responsibility in the killing.- Kim, the eldest son of the late North Korean leader Kim Jong-il, had spoken out publicly against his family's dynastic control of the isolated, nuclear-armed nation - now ruled by his younger brother Kim Jong-un. He lived in exile in Macau. Source:-Al Jazeera and news agencies", -3791,2017/3/30,http://www.aljazeera.com/indepth/opinion/2017/03/zahra-mahmoud-hussein-100-days-father-170330103200389.html,,,"Do other people feel the days passing by as we do? Oh, Dad! We are counting every hour, minute and second. One hundred days have passed since you were taken away from us, handcuffed and exhausted. No matter how hard you had worked and how little you had slept, you called us every single day to check on us. We no longer receive those calls.- Millions of Egyptians live abroad to earn their living and secure a decent life for their families. One of them is my father,-Mahmoud Hussein. He never got used to staying away from his country and family for a long time. Still, he put up with living abroad and was satisfied with his frequent visits to check on the big family he takes care of. READ MORE: Egypt arrests Al Jazeera news producer during vacation However, his last visit to Egypt was different. This time, he was welcomed with handcuffs on his hands instead of his family's embrace, and he stayed in dark detention cells instead of his warm bed among his caring family. He has always been described as the ""soul"" of the family, as he brings life to it when everyone, old and young, gathers around him.- Mahmoud Hussein is an Egyptian journalist who has been working in the field of media and journalism for more than 29 years. During those years, he conveyed the voices of Egyptians, their happy and sad moments, their needs and creative projects. And when the crowds revolted, he rushed to convey the voice of his homeland to the entire world. Hussein started his career working with the Egyptian Al-Ahram newspaper, then at the radio station, and later in the Egyptian TV news sector. He later joined a number of Arab TV channels until he eventually joined Al Jazeera. Everybody knows he works there, and his work proves how professional his performance is. If the people who detained him tried to Google his name, they would find what an honourable and professional man he is. They would realise that my father has never said a single word that harms the interests of his homeland. If they go through the history of his life, they would find nothing but good deeds and virtues. ""Your message is your manners and principles, and the evidence to that is your work"" - a sentence that my father was always repeating to us to strengthen the foundation of our thinking.- He took us to visit old cafes to get to know the ancient and eternal roots of the Egyptian spirit. - Mahmoud Hussein is a good father and friend. He encouraged us to study the holy Quran, and at the same time took us to the theatre and made us listen to music to nourish our souls with art and melodies. He explained to us the different kinds of art and music until we developed excellent skills to distinguish the exquisite genres of art. He introduced us to all kinds of books, poetry, literature, philosophy, history and languages to enable us to absorb as much information as possible. He took us to visit old cafes to get to know the ancient and eternal roots of the Egyptian spirit. He also got us deeply involved in all the developments under way in our country so we would never fall behind. My father has taught us how to face challenges and keep going. We are still inspired by him to keep going. But what we cannot understand is why my father has been in detention for 100 days on false charges. There is-no case or reason for this that I can explain to my little siblings. Why do we have to spend our days off standing in long queues in extremely cold weather or under the burning sun waiting to visit him in jail? Why do we need permits to meet him or wait to just hear his voice while being transported in a tiny vehicle? That is what he never prepared us for! Zahra is the daughter of detained Al Jazeera journalist, Mahmoud Hussein. She studies mass communication and journalism.", -3792,2017/3/30,http://www.aljazeera.com/indepth/opinion/2017/03/arab-summit-arab-leaders-oblivious-arab-realities-170330101407528.html,,,"The Arab Summit which-convened in Jordan on Wednesday revealed the two worlds of regional and domestic threats that Arab leaders have been trying to navigate with little success. The summit's focus on regional issues affirmed heartfelt commitments to peace and the international rule of law on the big political issues that matter to most Arabs - Palestine, Syria, Jerusalem, the threat of the Islamic State of Iraq and the Levant (ISIL, also known as ISIS), refugees, civil wars, and foreign interference. Yet these positions seemed only to entrench the frustrations citizens across the region have with their leaders' inability to go beyond rhetorical affirmations of Arab rights, and to actually achieve lasting peace. On the other hand, most Arab citizens and foreign observers will be unimpressed by the Arab leaders' apparent blindness to the real dynamics that threaten the region: deteriorating domestic socioeconomic and political conditions that have generated massive region-wide cleavages in people's living conditions and sectarian identities, which in turn drive conflicts within states and across borders.- The leaders' sincere commitments to Palestinian statehood and a peaceful resolution of wars in Syria and elsewhere in the region reflected their obvious appreciation of how bothered most citizens are by various regional conflicts. Yet governments have been unable to make any progress on any of the big issues that face the region, whether domestic or regional. The Arab world's reaffirmed ""strategic option"" of a fair, negotiated peace with Israel on the basis of a two-state solution was impressive for both its earnestness and consistency over the past 15 years, since the Arab Peace Plan was launched at the 2002 summit. Yet most Arab citizens ask in despair why their leaders have never been able to muster the will or the means to translate these formidable words into action. This is especially true owing to two new troubling trends. First, Israel and the United States persist in dealing with the status of Palestine and Jerusalem as their private concern, rather than an issue governed by international law and the equal rights of Arabs and Israelis alike. READ MORE: Arab Summit - 'Arabs lost confidence in their leaders' Recent interactions between the Trump administration and the government of Israeli Prime Minister Benjamin Netanyahu have included bilateral discussions on the one- or two-state solution, the status of Jerusalem, the ongoing pace of Israeli colonisation of occupied Arab lands, and other related issues, without any Arab inputs. The hard political and military realities on the ground - whether American involvement in Palestine or Russian-Iranian involvement in Syria - seem to relegate Arab leaders' position and statements mostly to the realm of rhetoric. The past decade of expanding wars and fracturing states seems to mark a historical moment of reckoning for the entire developmental thrust of the Arab region. - Second, the reaffirmed pan-Arab consensus on a two-state solution before any Arab ""normalisation"" of relations with Israel seems to be offset by some Arab countries' willingness to explore interactions with Israel today, in commercial, intelligence-sharing, military training, and other fields. This would dovetail with the US-Israeli desire to explore ""outside-in"" peace-making, where initial Israeli-Arab normalisations could then lead to Israeli-Palestinian and wider Israeli-Arab peace agreements. The summit declaration would seem to abort this possibility, but like all other summit intentions there is little evidence that the Arab world has found the key to translating these words into action.- A similar dichotomy pertains to Arab views of Iran. The summit clearly warned against foreign intervention in domestic Arab affairs, but some Arab leaders have also initiated exploratory contacts with Iran to defuse this major schism in the region that piles sectarian tensions on top of political, economic, and national feuds.- Arab leaders' credibility is stretched here because many of them intervene at will in the domestic affairs of other Arab countries, often driving wars and political confrontations in Syria, Yemen, Lebanon, Palestine, Libya, and Iraq. Such imprecision and contradiction in Arab rhetoric-and-action balances on regional issues are not new, yet they are increasingly troubling to hundreds of millions of citizens who feel threatened by a kaleidoscope of new concerns that affect their daily lives; these include new domestic tensions, sectarian clashes, regional wars, terror threats, economic slowdowns, budget contractions, environmental stresses, and expanding foreign military interventions across the region. -- This is another major issue in the Middle East that the Arab summit seemed largely to ignore. Almost all Arab countries' domestic socio-economic and environmental conditions have deteriorated steadily in the past quarter-century, following decades of robust national development. The fast-growing Arab population - now around 400 million people - cannot be sustained at comfortable living standards by the existing economic systems, even in the energy-rich states. The past decade of expanding wars and fracturing states seems to mark a historical moment of reckoning for the entire developmental thrust of the Arab region. Given the erratic statistics in this region, it would be fair to assume that around 100 million Arabs live in serious poverty, and another 100 million balance precariously at the edge of poverty. Housing conditions, fresh water provision, subsidised food and fuel, and basic education and health services have stagnated or declined for large segments of populations in the non-energy-producing middle- and lower-income Arab states that make up nearly 80 percent of the Arab population.- OPINION: Time to tackle ISIL's millions of sympathisers? The latest pan-Arab survey by the Doha-based Arab Center for Research and Policy Studies found that nearly four of every five Arab citizens (78 percent) say they live in ""hardship"" or in ""need""; they can barely meet their monthly basic household needs and have little or no savings as a cushion for emergencies (pdf). Worse still, nearly half of all mid-secondary and mid-primary school students in the Arab world do not meet basic literacy standards, ie, they cannot really read, write or do simple maths. Many of these students will drop out of school, meaning that as many as 25 million young Arabs who should be in school will not be in school in the coming years, due to poor schooling, wars, and their family's economic priorities. An expanding pool of between 100 and 200 million Arab citizens will grow increasingly miserable, vulnerable, and desperate in the years ahead, unable to find work or live a normal life. They will exacerbate the current internal threats in many Arab countries that generate extremist, separatist, and terrorist movements, and that are easy fodder for manipulation by local or foreign extremist movements. The latest Arab summit in Jordan, like the past dozen such gatherings, seems to have ignored these critical domestic governance and human development deficiencies that have already started to undermine the unity and stability of at least half a dozen Arab countries. Perhaps the next summit could acknowledge that domestic stresses and human deficiencies are the foundation on which regional tensions grow, and finally take measures to address the real threats that our region faces.- - - Rami G Khouri is a senior public policy fellow at the Issam Fares Institute at the American University of Beirut and a non-resident senior fellow at Harvard University Kennedy School. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy. ", -3793,2017/3/30,http://www.aljazeera.com/news/2017/03/ethiopia-extends-state-emergency-months-170330110807086.html,Ethiopia extends state of emergency by four months,Opposition parties complain that the emergency is being used to clamp down on their members and activities. Crushed to death,"The Ethiopian parliament has extended by four months a-state of emergency it declared six months ago after almost a year of often violent anti-government demonstrations. The widely expected extension comes amid reports of continued violence and anti-government activities in some rural areas. At least-500 people were killed-by security forces during the year of protests, according to New York-based Human Rights Watch group - a figure the government later echoed. ""We still have some anti-peace elements that are active and want to capitalise on disputes that arise among regional states in the country,"" Ethiopia's defence minister, Siraj Fegessa, told MPs when he called on them to approve the extension on Thursday. ""In addition, some leaders of the violent acts that we witnessed before are still at large and are disseminating wrong information to incite violence."" Opposition parties complain that the emergency powers are being used to clamp down on their members and activities, especially in rural regions far from the capital, Addis Ababa. The state of emergency, declared on October 9, was a reaction to protests that were especially persistent in the Oromia region. Many members of the Oromo ethnic group say they are marginalised and that they do not have access to political power, something the government denies. OPINION: The Oromo protests have changed Ethiopia A wave of anger was triggered by a development scheme for Addis Ababa, which would have seen its boundaries extended into Oromia. Demonstrators saw it as a land grab that would force farmers off their land. The protests soon spread to the Amhara region in the north, where locals argued that decades-old federal boundaries had cut off many ethnic Amharas from the region. The Oromo and Amhara ethnic groups together make up about 60 percent of Ethiopia's population. The country's ruling coalition, which has been in power for a quarter of a century, is controlled primarily by the Tigray ethnic group, who make up six percent of the population. Tensions reached an all-time high after a stampede in which at least 52 people were crushed to death-fleeing security forces at a protest that grew out of a religious festival in the town of Bishoftu on October 2nd. In the following days, rioters torched several mostly foreign-owned factories and other buildings that they claimed were built on seized land. The government, though, blamed rebel groups and foreign-based dissidents for stoking the violence. The state of emergency initially included curfews, social media blocks, restrictions on opposition party activity and a ban on diplomats traveling more than 40 kilometres outside the capital without approval. Authorities arrested-over 11,000 people during its first month. Some provisions of the state of emergency were relaxed on March 15th, two weeks prior to Thursday's announced extension. Arrests and searches without court orders were stopped, and restrictions on radio, television and theatre were dropped. Source:-Al Jazeera and news agencies", -3794,2017/3/30,http://www.aljazeera.com/indepth/features/2017/03/egypt-biggest-prisons-journalists-170329073701238.html,Egypt 'one of the biggest prisons for journalists',"One hundred days after the arrest of Mahmoud Hussein, Egyptian authorities continue to crackdown on the media.","It has been 100 days since Al Jazeera journalist Mahmoud Hussein-was arrested and detained by the Egyptian authorities. Hussein was arrested upon his arrival at Cairo's airport on December 20 on a family visit from Qatar, where he is based. He was later accused of ""incitement against state institutions and broadcasting false news with the aim of spreading chaos"". Since then, Egypt continues to witness a further crackdown on the media.- On December 27, Egyptian President Abdel Fattah el-Sisi signed a new media law that will see the creation of Supreme Council for the Administration of the Media. A council with the authority to revoke press licences from foreign media and fine or suspend media organisations. The law, according to analysts, is considered-a blow to pluralism and press freedom in the country. Hussein is one of at least 26 journalists currently imprisoned for their work in Egypt. Earlier this month, a local court postponed the final verdict for former-Press Syndicate-head, Yehia Qallash, who was arrested along with his colleagues, Gamal Abdel Reheem, and Khaled El-Balshy, in November. The three were accused of harbouring two fugitives in their office. After their office was ransacked, they were slapped with a two-year sentence with a bail of EGP 10,000 each. The press syndicate is the equivalent of a journalist's union, and it was the first time in Egyptian history that the head of the union was prosecuted. READ MORE: Egypt renews detention of Al Jazeera's Mahmoud Hussein On March 1, the speaker of parliament, Ali Abdel-Aal, along with Egyptian politicians, filed a criminal complaint against Ibrahim Eissa, the editor of local paper Al-Maqal. The charge claimed that Eissa ""insulted"" the parliament, referring to satirical headlines printed by the paper. Middle East and North Africa programme coordinator for the Committee to Protect Journalists Sherif Mansour said:-""Instead of pursuing charges against journalists for criticising their performance, Egyptian lawmakers should uphold constitutional guarantees of freedom of the press by striking laws criminalising 'insulting the parliament' from the books.""- Also as Hussein continues to be detained, Cairo's criminal court postponed journalist Mahmoud Abou Zeid's trial again.The March 21 sit-down was adjourned until April 8. Abou Zeid, who's widely known as Shawkan, was arrested in 2013. He is a part of the ""Rabaa Dispersal"" case, which also includes leaders of the Muslim brotherhood. Abou Zeid was covering the Rabaa sit-in during August 2013, when he was swept along with those arrested. He's the sole journalist included in the trial. He has been in prison ever since and suffers from Hepatitis C. Egypt currently ranks 159 out of 180 countries on Reporters without Borders' World Press Freedom index. The country is considered by the organisation as one of the ""biggest prisons for journalists"".- Source:-Al Jazeera News", -3795,2017/3/30,http://www.aljazeera.com/news/2017/03/nigeria-summons-indian-ambassador-student-attacks-170330084331863.html,Nigeria summons Indian ambassador over student attacks,Indian police have so far arrested five in connection with mob attacks on Nigerians in a satellite city of New Delhi,"Nigeria summoned the Indian ambassador to Abuja on Wednesday following violent mob attacks on Nigerian students in India, the country's state news agency reported. Hundreds of residents of Greater Noida, a satellite city of New Delhi, went on a violent rampage on Monday, attacking Africans following the death of a teenage boy from a suspected drug overdose. India should ensure the immediate arrest and prosecution of those behind the attacks, permanent secretary at the ministry of foreign affairs, Olushola Enikanolaiye, said after meeting-Nagabushana Reddy --the Indian ambassador. ""This is not the first time this would happen, Nigerians have suffered similar attacks in the past,"" Enikanolaiye was quoted by News Agency of Nigeria. ""So, what we will like to see on this occasion is that the perpetrator should be arrested. And we want to see diligent prosecution so that it would serve as a deterrent to those who think they can take laws into their hands and harass students who are going about their studies,""-Enikanolaiye said. READ MORE: Crowds attack Africans in India after teen's death A female Nigerian student was attacked on Wednesday, while another five Nigerian students were assaulted on Monday by a mob-in a mall. A Kenyan woman was dragged out of a taxi and beaten by a mob in the satellite city on Wednesday, the Hindustan Times newspaper reported on Wednesday. Police said they have arrested five people and booked more than 1,000 suspects in connection with the attacks. They also said several people involved in the incident had been identified from video clips of the attacks. The country's foreign affairs minister Sushma Swaraj also ordered an ""impartial"" inquiry into the attacks on Nigerian students, urging the newly appointed Uttar Pradesh state Chief Minister, Yogi Adityanath, to ensure the safety of Africans in Greater Noida. Source:-Al Jazeera and news agencies", -3796,2017/3/30,http://www.aljazeera.com/podcasts/aljazeera-out-loud/2017/03/subscribe-podcast-al-jazeera-loud-170330080452704.html,"Subscribe to our new podcast, Al Jazeera Out Loud","Al Jazeera Our Loud brings you our top features, narrated so you can catch-up on the go.",, -3797,2017/3/30,http://www.aljazeera.com/news/2017/03/al-jazeera-reporter-spends-100th-day-egyptian-jail-170330094001659.html,Al Jazeera reporter spends 100th day in Egyptian jail,"Qatar-based network calls for release of Mahmoud Hussein, who is being held in conditions that violate his human rights. Made-up allegations","Thursday marks 100 days since Al Jazeera journalist Mahmoud Hussein was arrested by Egyptian authorities after returning to his home country for a holiday. Hussein is being held in conditions that violate his human rights. Recent footage of him outside an Egyptian court appeared to show he had lost weight due to the harsh conditions of his detention. Hussein's daughter Zahra said earlier this month that the inhumane conditions he is being kept in have left her father suffering from shortness of breath, and under severe psychological stress. An Egyptian who lives in Qatar, he was stopped, questioned and arrested by authorities on December 20 after arriving in Cairo. The Al Jazeera Media Network has demanded that Egypt unconditionally release Hussein and condemned the continued renewal of his detention, which has been extended five times, with the last renewal order issued on March 18. Several leading human rights and media organisations have also criticised his detention. The International Press Institute (IPI) today renewed its call on Egypt to immediately free Hussein. . @AlJazeera journalist Mahmoud Hussein to mark 100 days in detention in #Egypt . We call again for his release. https://t.co/pJ1zVtoKB0 pic.twitter.com/NKbLsL61h0 ""Mr Hussein's detention on dubious, apparently politically motivated charges is the latest in Egypt's long history of jailing journalists, which severely impacts upon the Egyptian public's right to hold its leaders and institutions accountable,"" Scott Griffen,-IPI Director of Press Freedom Programmes, said. ""As Egypt has put forward no compelling evidence for the alleged crimes, Mr Hussein must be released immediately and all charges against him dropped."" INTERVIEW: Mahmoud Hussein - 'Freedom of expression is valuable' Griffen added: ""reports of poor treatment in detention are troubling and add to our concern for Mr Hussein's well-being and for his right to a fair trial.""?Hussein faces a fabricated allegation of ""disseminating false news and receiving monetary funds from foreign authorities in order to defame the state's reputation."" Al Jazeera has rejected all the allegations against him and condemned those who forced him into false ""confessions"" made on video. Hussein was held in solitary confinement for more than two months, during which time he was denied visits, including by his lawyers. The Al Jazeera Media Network has said it holds the Egyptian authorities responsible for his safety and well-being. It has also been heavily critical of a smear campaign against Hussein, which is being carried through local media outlets - a practice that violates international law. Source:-Al Jazeera News", -3798,2017/3/30,http://www.aljazeera.com/indepth/features/2017/03/israel-house-hate-170330090335986.html,Israel: The house of hate Stanley L Cohen,Systemic hatred and violence have worked their way into the very marrow of the Israeli state. By The hallmarks of systemic hatred and violence- Propaganda and the sieg e mentality Parallels between victims and instigators,"""Collective fear stimulates herd instinct, and tends to produce ferocity toward those who are not regarded as members of the herd""-- Bertrand Russell, Unpopular Essays I remember as a young boy sitting and watching my father's blank stare as he watched a documentary about World War II and concentration camps. He seemed to travel to distant places, as if he was all alone and not seated there right next to me. Only once did he share with me what he had seen as a soldier when part of a group that had liberated camps. On that occasion he described carrying the skeletal remains of a still living man from the darkened catacombs far below the ground to the light of day, as they both cried ... the survivor because he expected to die and my dad, I am convinced, because at that moment he wanted to. Even then, years later, my father cried as he struggled to tell his story, barely audible ... as soft as a broken whisper. Although I was distressed by his pain, there was simply no way for me, at that time, to understand what had happened, let alone why. Years later, as a young college student, I threw myself into the study of that period of world history with an emphasis on the Germany of the 1930s through the Nuremberg Trials that followed the end of the war. I can still recall passages of the judicial decisions from the war crimes tribunal almost word for word, powerful, passionate calls for humanity and accountability. Try as I did, I could never quite deduce what there was about a place and time that enabled a population to close their eyes and hearts and simply surrender to the sheer evil that consumed millions of Jews, Catholics, gypsies, communists, the disabled, gay women and men, and artists. The cause of such unmitigated hate, indifference or, at least, feigned ignorance, by so many for so long, escaped me for decades only to crystallise and become absolutely clear to me, all these years later, through Israel---the house of hate. Although psychiatrists and seasoned criminal defence attorneys could surely craft a creative defence to explain away, indeed, justify the recent rash of young Jews apparently calling in bomb threats or drawing swastikas on college dorm doors, on the sides of synagogues in the United States, and elsewhere, it's really a challenge without a dare. Israel, after all, is a society - some would say a culture - born and nurtured from group hate from long before the very first day of the Nakba. It's only grown worse, with the passage of time, as one generation of apologists has given way to a second and a third and on and on, leaving the entire state very accomplished at communal denial or numbed to the occasional, but rare, burst of truth - painful as it might otherwise be. In psychoanalytical circles it's called herd or mob mentality. There aren't many places in the world today where picnickers would cheer to the blast of each phosphorous bomb as it rained its chemical death down upon hundreds of thousands of defenceless civilians. Israel is one. Indeed, the parallels between Jews as victims of German hatred in the 30s and 40s and as instigators of that same odium today against Palestinians is as dramatic as it is eerie. Nor, do I know of many fighting forces guided by religious fiat that justify rape as an almost incidental benefit of warfare. Boko Haram,-ISIS and Israel come to mind. And how many armies invite children to autograph bombs with words of ""greeting"" before they are loaded on to planes to level schools, hospitals and shelters? Lebanon got that special Israeli message. Starvation as a weapon of war, not possible, you say.-Israel perfected the practice of ""measured"" collective punishment,-slow torture through controlling calorific intake, access to water, medicines and electricity to millions in Gaza whose only crime is to exist. How often have we heard the ritual scream ""Death to Arabs"" from settlers as they parade through Jerusalem looking for their next Palestinian victim to trample to death under the watchful protection of the Israeli army? Want to become a national hero overnight? Simple. In Israel the road to a successful political career is surely paved with the cold-blooded execution of an injured, unconscious Palestinian prisoner. These are but a few of the more recent examples, indeed, hallmarks of the kind of systemic hatred and violence that has worked its way into the very marrow of the Israeli state; one which never runs short of hollow excuses for each new outrage always, of course, for the understandable, if not ""right"", reason. READ MORE: Elor Azaria verdict - 'No justice for Palestinians' ""Neither a man nor a crowd nor a nation can be trusted to act humanely or to think sanely under the influence of a great fear"" --Bertrand Russell, Unpopular Essays Propaganda knows no unique time, place or ideas. It's systematic. Purposeful, an almost artful manipulation of emotions and attitudes for ideological ends echoed over and over again through one-sided messages which inform the life of a given society's members. Germany's-Hitler excelled at it.- He learned early on in his grab for power that, to be effective, propaganda must not only be simple but appeal solely to the masses, not to the ""scientifically trained intelligentsia"". Above all else, he understood well that, to be successful, propaganda must target base emotions - and not the intellect - and be repeated constantly much like a never-ending drumbeat. Tyrants have long since learned that the most effective propaganda is that which breeds and reinforces a siege mentality among a people, a world that is neatly compartmentalised into a theology of ""us"" and ""them"", those that are with us, those that are against, those that are allies, those that are enemies. Ultimately, its goal is fear. Once the point of black or white devotion to a state or theology is reached, anything and everything becomes possible, no matter how extreme or offensive, so long as it's connected, even marginally, to illusions of threats, real or imagined. Israel has stage-managed, to perfection, that mechanical message of rumour and fear for years. It's exploited it as well as any state in recent history. It's elevated it to nothing less than blind, obedient faith among Jews, in particular, both in and out of Israel. Not a day passes without the propaganda machinery of the state preaching that Israeli Jews face imminent extinction, not just from Palestinians but from wholly hostile Arab neighbours that surround them. That Israel enjoys well-established bilateral treaties and security agreements with its immediate and powerful Arab neighbours-Jordan and- Egypt-is, of course, conveniently suppressed - as to do otherwise would be to weaken Israel's shrill and disingenuous appeal. This ""at risk"" message is further manipulated by a narrative that would have Israelis believe they are largely alone, cast adrift in a world very much hostile to them and, thus, an ever-present evil and malevolent threat. While this papered-over vulnerability fits snugly within the ""us against them"" narrative, here, too, reality once again gets swallowed by propaganda. Israel, after all, receives billions in yearly military aid and assistance from countries throughout the world and has benefited from decades of carte blanche Security Council protection at the United Nations. When a siege theme, with its companion drive for social conformity, becomes central to a society's core beliefs, hate and violence are as predictable as they are essential to the maintenance of political power. Indeed, the parallels between Jews as victims of German hatred in the 1930s and 1940s and as instigators of that same odium today against Palestinians is as dramatic as it is eerie. A difference in volume, but not at all sound, there is scant separation between Jewish businesses and synagogues burned to the ground during the Kristallnacht of 1933 in Germany and repeated incidents in which Palestinian mosques, churches, homes and olive groves have for years been torched by rampaging settlers in the West Bank. Propaganda drives signposts of hatred, whether-anti-Jewish banners-hung throughout Germany under the Nazis or those that Zionists display with pride today at demonstrations in Israel or spray paint on the sides of Palestinian buildings. And, of course, the forced-segregation-of Palestinian and Jewish schoolchildren in Israel today is no different from the days when Jews were-forcibly-separated from German students before World War II. History bears repeated witness to man's inhumanity to man. Nowhere is it more painfully and palpably clear than in those times and places where racial or religious supremacy whips the crowd into mass frenzy while its targets pay a constant and often deadly price for state propaganda. Today, in Israel, some Jews struggle to find meaning and purpose in a state that slaughters defenceless women and children by the thousands in the name of peace, that imprisons ten times as many in the name of liberty, and silences opposition - Jew and Palestinian alike in the name of speech. Ultimately, that contradiction is best summed, perhaps, by a very simple but powerful rhetorical question etched on a wall in the Holocaust Museum in Washington DC: ""What is there about the process that leads some to help and show compassion while others comply with persecutions willingly?"" In the darkest of days, the worst of times, in the midst of the hatred that was Germany long ago, a white rose grew. One can only pray that today, from the ""River to the Sea"", another one will yet flower. Source:-Al Jazeera", -3799,2017/3/30,http://www.aljazeera.com/indepth/interactive/2016/03/infographic-land-day-palestine-israel-30-march-1976-160330090432915.html,Infographic: What is land day?,"Every year on March 30, Palestinians demonstrate their commitment to resisting Israeli occupation.",, -3800,2017/3/30,http://www.aljazeera.com/news/2017/03/british-government-takes-steps-brexit-170330075817045.html,British government takes next steps towards Brexit,London to outline immediate plans towards leaving the European Union as EU reacts to the triggering of Article 50. A sombre mood Requiem for a dream,"The British government will on Thursday introduce legislation known as the Great Repeal Bill - a crucial part of its next steps towards leaving the European Union. The move comes the day after UK Prime Minister Theresa May set the wheels of -Brexit in motion by invoking Article 50 of the EU's Lisbon Treaty,-officially triggering talks to leave the bloc. Thursday's bill repeals the European Communities Act 1972 and effectively ends the supremacy of European law in Britain, transferring all EU laws currently in force into the UK statute book.- It will ensure the UK leaves the jurisdiction of the European Court of Justice. The bill will come into force on the day the UK leaves the EU. On the current two-year timetable that will be in March 2019. MPs will get a chance to debate and vote on the bill before it is passed into law. Brexit Secretary David Davis has said this is an important step in giving certainty to businesses, workers and consumers. READ MORE: Article 50 - What will be negotiated May published columns in seven European papers on Thursday to stress that a Brexit deal was ""in all our interests"", striking a relatively conciliatory tone before negotiations begin. ""We will continue to play our part in ensuring that Europe remains strong and prosperous and able to lead in the world,"" May wrote in the Irish Times. She said Brexit was not an attempt ""to do harm to the European Union or any of the remaining member states"". But she also reiterated her warning that failure to reach a trade deal would hamper security ties. ""It would be to the detriment of us all if unnecessary barriers to trade were erected,"" she said. Theresa Villiers, an MP with the ruling Conservative Party, told Al Jazeera: ""I feel a sense of optimism and anticipation. I very much welcome the fact that the UK is going to become an independent, self-governing democracy again."" But Tim Farron, leader of the Liberal Democrats, said: ""It's a blow to Europe, it's a much bigger blow to Britain, and as a patriot I want what's best for my country. I want us to stay in the EU, so I'm in no mood to give up."" The mood was sombre in Brussels as the letter invoking Article 50 was handed over. ""There is no reason to pretend that this is a happy day - neither in Brussels nor in London. After all, most Europeans, including almost half the British voters, wish that we would stay together, not drift apart,"" Donald Tusk, President of the European Council, said in a statement. OPINION: Is Brexit Britain suffering from an imperial hangover? Germany's Chancellor Angela Merkel has spoken of her desire for the UK and the EU to remain close partners, but said that there cannot be parallel talks about trade deals alongside those concerning the terms of Brexit. ""The old EU, the so-called intergovernmental EU, is dead. It doesn't work any more. It's not equipped for the 21st century, so we need to move into a political union that is equipped to respond adequately, flexibly, quickly,""- Sophie in't Veld, a member of the European Parliament from the Netherlands, told Al Jazeera. Tony Nash, chief economist and managing partner at Complete Intelligence, told Al Jazeera that the UK was fortunate not to have to deal with leaving the Euro and that, while the pound has lost value recently, the devaluation could compensate for having to pay tariffs to access the EU market. Nash said that financial services were the biggest immediate issue for the UK and that there were questions over whether another European city could claim London's crown as the continent's financial centre. ""If you look at places like Frankfurt or Paris, they just can't compete with London as a financial centre,"" Nash said. ""I don't think the impact on services is going to be as bad as many people have said because you just don't have the skills and capabilities on the continent that you do in London.""- A-recent survey, though, suggested growing pessimism in the UK over the economic impact of Brexit. Just 29 percent of British households surveyed in March believed it would be good for Britain's economy over the next 10 years, according to IHS Markit - down from 39 percent -in July 2016. Outside parliament in London on Thursday, a choir of protesters sang the adopted anthem of the EU. ""It's called an Ode to Joy,"" reported Al Jazeera's Barnaby Phillips. -""But for those who lost the referendum, [it is] a requiem for a dream that died."" Source:-Al Jazeera and news agencies", -3801,2017/3/30,http://www.aljazeera.com/indepth/opinion/2017/03/protest-belarus-social-parasites-170329125858783.html,,,"After enjoying a rapprochement with the European Union over the past three years, Belarus - a country with a fluctuating political and human rights record - diverted from this path and returned to its habit of brutal crackdowns on protests. Since late 2014 Minsk has been demonstrating a political will for liberalisation: It was praised for its role as a mediator in the conflict between Ukraine and Russia, for releasing its political prisoners, and for creating a less aggressive space for political disagreement. Joining a political rally became mostly safe and a certain level of cooperation between the authorities and the civil society organisations became possible. For instance, local authorities complied with a demand of a political organisation called ""Our House"" to publish most local budgets in 2015 and 2016 for the first time in the recent political history of the country.- In return for these positive steps, the EU lifted its sanctions against Belarusian officials, offered a variety of initiatives for co-operation and development of the country's economy, and gave state bodies access to some EU money in the area of civil society building. This all came to an end in March 2017, particularly March 25, when almost a thousand people-were detained, fined, and beaten for publicly expressing their dissatisfaction with how the country is managed economically and politically. The story of these protests started few weeks earlier with the spirit of hope and positivity. The first protest under the banner ""March of the Outraged Belarusians"" took place on February 17 in Minsk and attracted between 2,000 and 3,000 protesters. The target of the protest was Presidential Decree #3 (2015), dubbed ""the decree against social parasites"", which introduced an unemployment tax for those who officially work fewer than 183 days per year and hence do not participate in the ""financing of the state"". Such individuals have to pay the state the equivalent of $250. Although the decree was released in 2015, the controversy around it did not peak until-mid-January 2017, when two major developments happened simultaneously. One, a number of changes to the decree were introduced, including a suggestion to consider housewives with children under the age of seven to be the subject of this tax, if the children attend a nursery. Two, about 470,000 unemployment tax notices were sent across the country, including to individuals who lived and worked abroad for years. Those who did not pay the tax until February 20 could expect a fine, an arrest, forced labour or withdrawal of permission to go abroad or to drive their personal vehicle. Only 11.5 percent of those who received the notification paid the tax by the deadline. Following the first march, a number of similar protests and gatherings against the unemployment tax took place on February 19 in all five regional centres of Belarus: Brest, Gomel, Grodno, Vitebsk, Mogilev. A week later, February 26, Baranovichi and Bobruisk joined in and Brest and Vitebsk held more protests. All the gatherings were peaceful. There were several astonishing things about these protests. First, the gatherings were varied in numbers and in the issues that brought people out - ranging from general dissatisfaction with life to acute social and political problems. Second, they were not disrupted by police. Third, they demonstrated an unprecedented level of social solidarity: despite the main protest slogan being ""I am not a social parasite"", many of the protesters, especially older women, would say they joined because they were concerned for others even if the decree did not affect them personally. The first official reaction did not come until February 28 when President Alexander Lukashenko implied in his comments that ""social parasites"" are being used by certain foreign powers to their selfish ends. On March 9, the president announced that the law would be temporarily suspended and that protesters should have a safe public space in which to voice their concerns, where ""instigators"" should be ""picked out like raisins from a bun"". The announcement of the temporary suspension did not stop the protests. On the contrary, the presidential speech was taken by many as an invitation to engage. Between March 5 and 19 at least 14 towns hosted protests, some large, some small. Belarus' law enforcement interpreted the presidential statements quite differently. Between March 5 and 13 a number of ""preventive"" arrests were made. First they took politicians and social-group leaders who had said they would hold major protests scheduled for later in the month. Most of them were imprisoned just long enough for them to miss the rallies. Then they took the bloggers and journalists covering the events; then the activists spreading the information about the protests. Finally, they started arresting protesters: more than 50 in Minsk on March 15; about 30 more in other cities. The most brutal crackdown took place on March 25, an unofficial holiday known as Freedom Day-(Dzen' Voli). The images and live streaming of the crackdown were shocking: old people, barely able to walk, and young women being carried away; young men beaten without apparent reason, protesters taken to hospitals with injuries. Some of the detained people were not even protesters, but unlucky passers-by who were taken by the police during their ""mop-up"" operations. To be fair, some police officers seemed to be equally unhappy about the situation: Some helped people get up from the ground or stopped their colleagues from beating protesters. A number of protesters reported that they were released without reports being filed against them; others reported that they were tortured. All in all, some 700 protesters were detained in Minsk on that day alone. When Western politicians and human rights bodies finally reacted with condemnations weeks after the repressions started, the Belarusian authorities responded that in the context of a growing terrorist threat globally, one has to be particularly cautious. Apparently the lessons learned in Belarus from the terrorist acts in London, Berlin, Paris, Brussels, and Nice are that peaceful protests should be brutally suppressed. And, of course, there were more detentions on the next day, when a significantly smaller group went out on the streets to express their solidarity with the arrested. Their detention, broadcast live on the independent media, was saddening: There was a sense of doom about them, mixed with stubborn defiance and a lot of emotion, too. As one female protestor from Polotsk noted: ""To join [the protests] is frightening, not to join is shameful."" Evgenia Ivanova is a researcher and an activist from Belarus. She is a Board member and an associate researcher at the Centre for Gender Studies at European Humanities University and a co-chair of the Centre for Gender Initiatives ""Adliga: Women for full Citizenship"". Evgenia is an elected Board member of the WIDE+ network.- She is also an editor of a Russian speaking almanac, Women in Politics: New Approaches to the Political. The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.-", -3802,2017/3/30,http://www.aljazeera.com/indepth/opinion/2017/03/land-day-2017-israel-relentless-land-grab-continues-170329075639685.html,,,"Today's commemoration of Land Day is an emblematic reminder of the countless human rights violations that have characterised half a century of Palestinian land confiscation and dispossession. During the-first Land Day-in 1976 Palestinian citizens of Israel protested against the Israeli government's expropriation of 2,000 hectares of land surrounding Palestinian villages in the Galilee. Six Palestinians were killed and more than 100 were injured when Israeli forces crushed the protests. Every year since, Palestinian communities in Israel and the Occupied Palestinian Territories (OPT) have gathered-on March 30-to commemorate these events to highlight Israel's ongoing seizure of Palestinian land, and to reaffirm their connection to the land. This year's Land Day will be marked with a march between Deir Hana and Sakhnin in northern Israel, as well as demonstrations and events across central Israel and the Negev/Naqab region, and in the occupied West Bank and Gaza Strip. The protests are often met with brutal and excessive use of force by Israel.- In Umm al-Hiran, one of the unrecognised Bedouin villages in the Negev/Naqab region, protesters are planning to plant trees and rehabilitate some of the structures demolished earlier this year by the Israeli authorities, after residents lost a long legal battle against eviction orders to enable government construction of a new community for Jewish residents.- In the occupied West Bank and Gaza Strip, concerts, marches and olive tree planting events are planned in acts of protest against Israel's continuous occupation and aggressive land-grab policies. The first few months of 2017 alone have seen an alarming surge in illegal settlement activity and home demolitions in the occupied West Bank. Since January the Israeli government, emboldened by President Donald Trump's inauguration, has authorised the construction of more than-6,219-illegal settlement homes in the occupied West Bank, including 719 in East Jerusalem. These announcements not only mark a shift from the Israeli government's more cautious approach under the Obama administration but also fly in the face of UN Security Council-resolution 2334 (pdf), passed in December last year, which calls on Israel to immediately cease all settlement activities in the OPT.- In recent weeks a number of Israeli Knesset members have proposed a law to annex the West Bank settlement of Ma'ale Adumim to Jerusalem, along with other settlements in close proximity to the city. Although the bill has been temporarily blocked by Prime Minister Netanyahu, the proposal is alarming. In addition to flagrantly violating international law, such a move would have potentially catastrophic consequences. Ma'ale Adumim and Jerusalem are connected by the contentious-E1 area, a 12sq km piece of land that provides a vital passage between the northern and southern West Bank. Should Israeli construction take place on this land, a continuous Israeli settler presence will be established from occupied East Jerusalem to the Jordan Valley, effectively cutting the West Bank in half and severing East Jerusalem from the remainder of the occupied West Bank.- OPINION: What did the UN apartheid report expose in reality? Recent months have also seen a marked increase in demolitions of Palestinian homes. At least 24 Bedouin homes and other structures around the Ma'ale Adumim settlement were demolished in the first two months of 2017, compared with an average of 32 total demolitions per year between 2013 and 2015. As long as the world continues to turn a blind eye to Israel's relentless land grab and settlement expansion, both serious violations of international humanitarian law, the human rights of Palestinians will continue to be trampled on with impunity. - In another push to consolidate their land confiscation, on February 6, the Israeli Knesset also passed a-law-that retroactively legalises the seizure of private Palestinian land on which settlements have already been established. The law prevents Palestinian landowners from laying claim to their land if Israeli settlers are living on it, despite the fact that the settlers' presence in occupied territory is illegal under international law.- It has been-estimated-that the law will retroactively legalise 53 settlements and outposts - allowing for the expropriation of about 8,000 dunams (80 hectares) of private Palestinian land. The law also risks galvanising the confiscation of yet more private Palestinian land by providing a basis for further retroactive legalisation of land grabs.- The recent acceleration in home demolitions, combined with the push to expand settlements and moves to legalise prior land grabs, gives a damning indication of the Israeli government's intention to continue and accelerate its land-grab policies 50 years on from its initial capture and occupation of the West Bank, including East Jerusalem, and the Gaza Strip. Fifty years of indifference from the international community has only served to spur on the Israeli government in its expropriation of Palestinian land and expansion of illegal settlements. In a speech last Friday UN special coordinator for the Middle East peace process Nikolay Mladenov-confirmed that no steps have yet been taken to cease settlement activities in the OPT in order to comply with UN resolution 2334. The fact that Mladenov's update was not delivered in a written report by the UN secretary general himself has been interpreted by some as a lack of commitment by the UN to implement the resolution. OPINION: Portrait of an occupation - Human rights of the settler As long as the world continues to turn a blind eye to Israel's relentless land grab and settlement expansion, both serious violations of international humanitarian law, the human rights of Palestinians will continue to be trampled on with impunity and UN resolutions such as resolution 2334 or the-resolution-passed by the UN Human Rights Council last week calling on states to regulate trade with illegal settlements, will remain little more than empty gestures. The international community must take a clear stand and show that it will no longer tolerate Israel's illegal policies of annexation and settlement. Otherwise, Palestinians will continue to have plenty to protest about at annual Land Day demonstrations. Rachel Borrell is Amnesty International's research and campaigns assistant on Israel/Palestine.-Rachel previously worked for the Palestinian human rights organisation Al-Haq and at Anti-Slavery International in London. Rachel studied International Human Rights and Humanitarian Law at the University of Essex.- The views expressed in this article are the author's own and do not necessarily reflect Al Jazeera's editorial policy.", -3803,2017/3/30,http://www.aljazeera.com/indepth/features/2017/03/gambia-missing-sons-daughters-170313110921242.html,The Gambia's missing sons and daughters Hamza Mohamed,Can the country's new president persuade its youth to stop risking their lives to reach foreign soil? By Desperate to get to Italy A new road to nowhere 'A beggar in a foreign country',"Janjanbureh, The Gambia - The air is hot and dry, and the main road that dissects this riverside town is devoid of any sign of life. Janjanbureh was once the second largest town in The Gambia. Now, it is nowhere near that - its old colonial buildings are barely standing and most of its residents have left for other parts of the country, or for Europe in search of greener pastures. Alieu Bah sits under a tree in the courtyard of his two-bedroom house off the main thoroughfare, taking shelter from the afternoon heat. Three weeks ago the father-of-12 received the news that any parent dreads the most: his son, Sailu Bah, had been killed by human traffickers in Libya as he attempted to embark upon the final leg of a perilous journey to Italy. ""A young man from this town who was with him called us and told us Sailu was beaten to death by the smugglers,"" Bah says as his eyes fill with tears. There are fewer than two million Gambians, and by percentage of population, more Gambians have headed to Europe than any other nation, according to the International Organization for Migration (IOM). In 2016, almost 12,000 Gambians landed on the shores of Italy and Greece. Entire villages have been emptied of their young men and women. This island town, some 300km north of the capital, Banjul, has had some of the highest rates of youth migration in the country. It used to be home to as many as 50,000 people. Now the government estimates that only 3,600 are left. Everyone in this rice-farming town knows someone who has attempted the dangerous journey to Europe. ""I have lost count of how many young people have left. Every time you hear the son or daughter of so-and-so has left the town. Many times they die trying to get to Italy,"" says Bah, his voice cracking with emotion. The fortunes of the town have long been tied to the country's once-thriving river transport system. At a time when the country's roads were not Tarmacked and boats were the favoured form of transportation, Janjanbureh was a vital stop for goods and people. But when, in the early 1980s, the government began to build new roads and to Tarmac existing ones, Janjanbureh's fortunes shifted. Gambians started to travel by road instead of boat and without a bridge to connect the island town to the rest of the country, it was overlooked and neglected. People and goods no longer passed through it. A ten-minute walk from Bah's house, beside the shore of the River Gambia, a group of men sit idly beneath some mango trees. A single skiff floats on the still brown waters nearby. It is almost two in the afternoon and they have spent the day sitting here, watching the water, in the hope that some tourists will arrive by boat. ""Tourists sometimes stop by on their way to other towns,"" explains one of them, Modou Sane. ""They want to see crocodiles and hippos. We take them around on our boat and they take pictures. That is the only way we make a living. ""There is no other work for us here,"" the 35-year-old father of four continues. ""This job doesn't provide us with enough money to live on. Life is tough and we are tired."" The situation isn't much better for the younger generation. Nineteen-year-old Mohamed Lamine has just finished high school and is meant to go to university. But his family is poor and they can't afford the fees. Many of his classmates have already left Janjanbureh and now he is considering following in their footsteps. ""My dream was to go to university and become a businessman when I finish my studies,"" he says. ""But we have no money for fees and I have nothing to do. I don't see things improving and I'm almost certain I will try my luck abroad."" READ MORE: Exiled Gambians ponder return to troubled homeland But not everyone in Janjanbureh is in a rush to leave. Madou Toure has tried his luck abroad twice and says the grass isn't always greener elsewhere. ""I left Janjanbureh twice and went abroad to see if life is better outside,"" he explains. ""One time I went as far as Mauritania. It was soon after I finished high school."" The 38-year-old father-of-six says he will not try a third time. ""Life was hard abroad. People treat you like a beggar. And I found no jobs. It is better to be a poor farmer here than to be a beggar in a foreign country,"" adds Toure, who now has a small rice farm. The country has a new government, for the first time in more than two decades, and it says that addressing the issue of migration will be one of its top priorities. ""We have started to provide our youth with the training they need in order for them to be self-employed,"" explains Lamin Darboe, the executive director of The Gambia National Youth Council. ""There are not enough jobs in the market, so we are giving them the right training so they can be self-employed. ""We are also conducting [a] sensitisation programme where we tell our youth about the dangers involved in migration. We provide them with alternative information to what the smugglers are providing them with.""- But for many parents in Janjanbureh this has come too late. ""The new government cannot bring back my son,"" says Bah. ""But I hope they can prevent the rest of our youth from dying the same way as my son."" Follow Hamza Mohamed on Twitter:-@Hamza_Africa Source:-Al Jazeera News", -3804,2017/3/30,http://www.aljazeera.com/programmes/specialseries/2017/03/india-ladycops-170328121136978.html,India's Ladycops,Exclusive access to a police station in India run by women for women reveals a unique perspective on a changing society.,"Hundreds of women's police stations have been set up across India to combat domestic abuse and sexual violence, following the Delhi rape case in December 2012.- Parmila Dalal is second-in-command at the women's police station in Sonipat, in the northern state of Haryana. Every day she has to deal with the cases the public bring to her.- Some days she works as a typical police officer, investigating crimes or managing matters of public order. But much of Parmila's time is spent mediating in family disputes, in which she acts more as a counsellor or social worker.- She encounters family members at war over such contentious matters as caste, dowry payment and relations with abusive in-laws. India's Ladycops reveals how women's lives are changing in India today, and how they often struggle to reconcile the conflicting demands made upon them.- FILMMAKER'S VIEW By Ruhi Hamid Like everyone else I was shocked by the 2012 Delhi rape case in which a young woman was beaten, gang-raped and tortured on a bus as she made her way home with a friend after an evening out. She was so badly injured that she died in hospital two days later. In a country that reveres goddesses, and talks about the ""mata"", or mother, as in Mother India, I wondered what it's really like to be a woman in India. The incident was widely condemned, both in India and abroad. Public protests followed, with shows of anger against the state, government and the police in particular for failing to provide adequate security for women. The government's response was to set up hundreds of police stations across India, led by female officers. Their aim was to encourage women to report their grievances and crimes against them there.- This presented an ideal opportunity for me as a filmmaker to get a unique perspective on how India treats its women. I set off on a reconnaissance mission in the states of Rajasthan and Haryana to find a suitable women's police station. Young women's hopes and expectations have changed. They want more independence and more freedom Ruhi Hamid, Filmmaker In two weeks I travelled hundreds of miles along dusty roads visiting numerous stations and meeting countless female officers. Finally, at a police station in Sonipat, some 50 miles north of Delhi, I came across Parmila Dalal. Within five minutes of meeting Parmila I knew I'd found my main character. She was open, straight-talking and feisty, but also kind - and above all a natural on camera. I filmed with her for a few days, returned to London to make a taster tape, and secured a commission. I was all set to go back to India but it took us almost two years to secure filming permissions and visas before I could start filming in September 2016.- One reason I chose a small town station such as Sonipat was that I wanted to get beyond the sensational headlines of serious crimes against women. I preferred to look at what women face on a day-to-day basis, and I quickly came to see that their main problems were of a domestic nature. Most concerned marital issues: they often involved a young woman struggling to adjust to married life within her new husband's extended family. Despite India being a so-called economic superpower, women's lives outside the big cities are generally conservative and traditional. However, with the continuing push for girls' education, young women's hopes and expectations have changed. Educated girls get a taste for freedom and independence while they are in college. They meet boys and often have relationships. They are then often forced into marrying someone of their parents' choosing so they enter the marriage disappointed. They're not satisfied with their traditional role of subservient housewife. On the other hand, economic constraints within the extended family mean that boys are often forced to leave education early to find work. Husbands who are not educated don't understand their wives' sense of independence and confidence. They get jealous of their former liaisons and can become antagonistic and controlling. Clashes between husband and wife arise and divorce rates are on the increase. It was fascinating to see how Parmila handled the stream of cases at her women police station. Many women complained about getting treated badly by their mother-in-law or brother-in-law. There were a few cases about dowry demands, which can happen when the in-laws are not happy with the woman and begin complaining that she is not worth having as she didn't bring enough dowry. Parmila's ethos is to keep peace and cohesion within her community wherever possible, so she was often acting more as a social worker than a police officer. Rather than choosing punitive measures, she would try for reconciliation between people. She's a strong believer in the joint family system and works hard to keep families together. After the time I spent with Parmila at her workplace, witnessing the turmoil of people's lives, it was a relief to see her at home with her own extended family, managing her personal life with such grace and humour. During the shoot, I came to see the police station as a microcosm of the fault lines in Indian society. Caste discrimination and dowry have been outlawed, yet cultural attitudes have been slower to change; and despite stricter laws against rape, the number of cases has not decreased. But at least women are now more confident about reporting cases of sexual violence, since they know there will be a female officer to listen. If Parmila and the other female officers continue to build on their success in tackling crimes against women, attitudes in India will change and women's lives will improve. There's still a long way to go, but I have no doubt the initiative of setting up women police stations is a progressive idea and other countries could follow this model. Source:-Al Jazeera", -3805,2017/3/30,http://www.rte.ie/news/2017/0330/863683-search-wales-helicopter/,Welsh helicopter crash victims were members of same family,,"The bodies of five people have been found in Wales-with the wreckage of a helicopter that had been missing. Police have said the victims are all adults and part of the same extended family from the Milton Keynes area. Two of the victims have been named locally as Kevin and Ruth Burke, who owned the helicopter.- Two of the victims in north Wales helicopter crash named locally as Kevin and Ruth Burke - @mitchefi reports pic.twitter.com/17D8xCHpOw ""?RT? News (@rtenews) March 30, 2017 Mrs Burke was from Ireland and lived in the United Kingdom for some years. North Wales Police confirmed this afternoon that the wreckage had been found. Sadly we can confirm that the wreckage of the helicopter that went #missing yesterday has been located along with the bodies of 5 people ""?North Wales Police (@NWPolice) March 30, 2017 The privately-owned Twin Squirrel aircraft is believed to have left Luton-to fly to Dublin, via Caernarfon Bay, before disappearing yesterday-afternoon. An extensive search of the Irish Sea and Snowdonia was launched at around 4.15pm yesterday after the Distress and Diversion system lost radar contact with the helicopter. Police, Mountain Rescue Teams and other personnel may have to suspend the recovery of those on board overnight, due to worsening weather conditions and the difficult and treacherous terrain in the area. A joint investigation led by the Air Accident Investigation Branch is under way, central to which will be the recovery of the aircraft. North Wales Police said the wreckage was found in difficult and challenging terrain. Superintendent Gareth Evans, of North Wales Police, said: ""Initially, its last known position was believed 'over sea' in the Caernarfon Bay area but this was then narrowed to a land based search co-ordinated by North Wales Police in Snowdonia involving all local and RAF Mountain Rescue Teams. ""Local conditions were described as atrocious with visibility down to less than 10 metres in places. ""The terrain where the aircraft has been located is remote and in places hazardous. ""I'd also like to thank the local community for their support and assistance but I'd also ask people to refrain from visiting the area as it is now subject of a full investigation led by the Air Accident Investigation Branch to establish what led up to and caused this tragic event."" The search was scaled back overnight due to poor weather conditions but North Wales Police and mountain rescue teams continued to search on the ground. Minister for Foreign Affairs Charlie Flanagan has said his department is closely monitoring the situation and the Irish Embassy in London is in close contact-with relevant authorities in the UK. The minister also offered his condolences to the families affected, and offered ""any consular assistance that it required."" The Eurocopter AS55 Ecureuil 2 (Twin Squirrel), now made by Airbus, is a widely used twin-engine light utility helicopter which has a reputation for durability and requiring low maintenance. First introduced in the mid-1970s, the all-weather aircraft has evolved through several variants and is used by both civil and military applications.", -3806,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863676-commissioner-to-appear-before-justice-committee/,Clarity from garda�� on bonus payments,,"Following today's Oireachtas Justice Committee, garda�� have this evening clarified that the last claim for a bonus payment for senior officers was made for activities in the year 2007. They say the scheme was ended by the Department of Finance in 2009. Garda�� say they do not believe senior officers were paid for breath tests and are clarifying the situation regarding checkpoints. Garda Commissioner N��ir��n O'Sullivan earlier said she would get back to the committee about whether or not senior officers were paid bonus payments/ performance related payments for checkpoints and breath tests. She told the committee that some of the divisional policing targets were related to traffic and the purpose was to reduce deaths on the roads. However, she said she would have to get back to them about whether bonus payments were paid for such activities. This evening, garda�� said that no bonus payment was made to current members of the garda executive. The scheme, they said, applied to people of the rank of assistant commissioner and upwards. A garda spokesperson said there is no indication that there were specific targets for the amount of checkpoints and/or breath tests conducted. The spokesperson said targets were generally related to reducing road deaths, the introduction of improved road safety measures including targeted traffic operations, and working with partners such as the Road Safety Authority to implement the National Road Safety Strategy. Commissioner O'Sullivan appeared before the committee today, a week after garda��-announced they had discovered almost one million-false breath tests and 14,700-wrongful convictions. She accepted that garda�� may have acted dishonestly by inputting false breath test figures into the garda computer system. However, she told the committee that garda��-have still not established the reasons why almost a million false breath tests were recorded. As it happened: Garda Commissioner before Oireachtas Committee Garda Commissioner No��r��n O'Sullivan apologises for the wrong-doings and controversies over the last decade. pic.twitter.com/Ylz14PGErb ""?RT? News (@rtenews) March 30, 2017 ""At worst that was deception, and at best was incompetence""- Ms O'Sullivan talks about false breath tests pic.twitter.com/7BbtpzCJ1z ""?RT? News (@rtenews) March 30, 2017 The Garda Commissioner went to Leinster House this morning where a majority of the members, not just in the D��il but also in the committee she appeared before, have no confidence in her. Ms O'Sullivan opened her contribution with an apology for the latest controversy in the force. She told the committee: ""On behalf of An Garda S��och��na, I sincerely apologise for the grave mistakes and wrongdoing during the last decade that have led to the two controversies we are here today to discuss, ""Those mistakes and wrongdoings are unacceptable in policing terms, unacceptable in ethical terms, unacceptable in terms of public trust, and, most critically, unacceptable to the advocacy and support groups involved in road safety and to those who were wrongly brought to court."" She added: ""They have raised serious issues about how we managed the service, how certain garda�� operated on the ground and their supervision. ""Given the scale of these issues, they can't simply be blamed on one individual or one area. It is a collective failure. From top down to bottom up. ""We all take responsibility for this, and all take responsibility for establishing how this happened and ensuring it cannot happen again."" Some deputies were not happy and wanted to know if bonuses and performance targets were a factor in the exaggeration of the figures. The commissioner said that some divisional officers' performance targets which led to bonuses were connected to reductions in road deaths. She said that a hypothesis may well be that the recording of data on the mandatory alcohol checkpoints, which she said were preventative measures, was not seen as important in the detection of offences. Senior garda�� told the committee they were not coming in to make things up or cover them up but to apologise for previous mistakes and put things right. However, some deputies are dissatisfied that no one, particularly the commissioner, has been held accountable. Ms O'Sullivan said she was taking responsibility and pointed out that there is a statutory framework that can hold her to account that is set out in legislation. She said all senior managers have committed to delivering on the reform programme, delivering a modern and professional police force. The commissioner also said it takes courage, determination and drive to do this at times of crisis. The officer in charge of roads policing, Assistant Commissioner Michael Finn, insisted there was no competition between garda regions to see who had the highest figures. He said he was satisfied with the accuracy of the data on checkpoints. He also said it was an error on his part that the Minister for Justice was not informed. Commissioner's answers 'disappointing' Fine Gael's Colm Brophy has said he believes An Garda S��och��na did not grasp the seriousness of the problem with falsified statistics for road traffic offences quickly enough and were still slow to deploy resources to deal with it once the systematic nature of the matter became clear. Speaking on RT?'s News at One, Mr Brophy said the answers given to the justice committee by the commissioner were ""quite disappointing"". Mr Brophy, who is a member of the committee, also questioned the attitude of management not to flag the matter sooner with the Department of Justice and the Policing Authority; he said this is not acceptable in the current era. He said he believes there was a lack of willingness or emphasis to take on board the extent and seriousness of this problem much earlier. It is not satisfactory to blame it on lack of resources or people, he said. If the commissioner had applied the same level of resources and seriousness to the problem a year or 18 months ago as she is now doing, he said it could have prevented the current problem. He said none of the committee members are satisfied with the answers being given to try to explain how almost one million extra breath tests were recorded. Sinn F��in TD Pearse Doherty said that An Garda S��och��na did not act with the ""appropriate concern"" when it became aware of the falsifying of breath tests in 2014. Speaking on RT?'s Drivetime, he said he is not sure whether an internal audit will find out how it happened and who is responsible. Mr Doherty said that revelations surrounding fixed charge notices will have severe consequences and he believes there is a question mark surrounding all data coming from An Garda S��och��na. He restated that he believes Commissioner O'Sullivan should step aside.", -3807,2017/3/30,http://www.rte.ie/news/brexit/2017/0330/863704-brexit/,Brexit secretary denies threat over security co-operation,,"The UK's Brexit secretary-has denied that British Prime Minister Theresa May issued a threat that if Britain was not granted a preferential trade deal with the EU after Brexit, then the UK would withdraw its security co-operation. - David Davis said, however, that if there was no agreement at the end of the negotiations, then it would be bad for both sides. French President Francois Hollande-meanwhile has said-the EU would first have to agree the terms of Britain's exit from the European Union, before the future trading relationship could be addressed. There has been a considerable degree of unease about a key line in Mrs May's six-page letter triggering Article 50, delivered to the European Council president yesterday. - Mrs May wrote:-""in security terms a failure to reach agreement would mean our co-operation in the fight against crime and terrorism would be weakened."" - In fact, Mrs May mentioned the word security four times, and she did not raise the concept of failure in relation to any other aspect of the talks. Some have inferred that this was a threat by the British to withdraw its substantial military, security and intelligence assets from the European space if it does not get the trade terms it wants. - At a time when Europe is facing jihadist threats and more offensive posture from Russia, any such alleged threat is going down badly. - The European Parliament's interlocutor on the Brexit negotiations Guy Verhofstadt has said security was too far too important an issue to be bargained against an economic agreement. - Today the French president Francois Hollande said in Paris that the EU would first have to agree the terms of the divorce, before moving into the question of Britain's future trading relationship with the EU, effectively supporting the German chancellor's stance on the issue. - Britain is desperate to do a trade deal within the two year term, but already there is formidable -resistance to the idea. Meanwhile Taoiseach Enda Kenny-called for the language of the Good Friday Agreement to be incorporated into the ground rules for the Brexit negotiations.- Mr Kenny was speaking at the European People's Party conference in Malta.He said the grouping had the leadership of the European Parliament, Council and Parliament as he appealed for their support. The Taoiseach said the EU faced an unprecedented challenge that the architects of the EU had never envisaged. Mr Kenny warned delegates of the dangers of the rise in populism. He said that because mainstream politics had not been listening, good people had been pushed to the left in anger and to the right in fear. Mr Davis-earlier said that Britain hopes to address the issue of the border early in the Brexit process. Mr Davis also-said he does not expect Britain to have to pay ?50bn (�18bn) to the European Union as part of the Brexit process. He said the era of huge sums being paid to the EU was coming to an end. British media reports have suggested that Britain could have to pay around ?50-60bn in order to honour existing budget commitments as it negotiates its departure from the bloc. ""We haven't actually had any sort of submission to us from the Commission. But our view is very simple, we will meet our obligations, we are a law abiding country,"" Mr Davis told broadcaster ITV this morning. ""We'll meet our responsibilities but we're not expecting anything like that,"" he said. ""The era of huge sums being paid to the European Union is coming to an end, so once we're out, that's it."" Read more on Brexit Meanwhile, Britain's ambassador to Ireland has-highlighted the importance of the trading relationship between the UK and Ireland, saying it means a-free-trade agreement is particularly important to achieve.- Speaking on RT?'s Morning Ireland, Robin Barnett said the free-trade deal Britain is-aiming for would be bold and ambitious and ""greater than any before"". The ambassador said he does not think Britain's ""special relationship"" with Ireland will be affected as a result of the UK leaving the European Union. ""From our perspective it is clear that Ireland will be part of the EU negotiating team but also that we have some very special interests both east and west, north and south, particularly in relation to the Northern Ireland peace process. ""And I think our job here in Dublin is to work very hard to promote the bi-lateral relationship and also to ensure the shared concerns that the UK and Ireland have in relation to the future are protected during the course of the forthcoming negotiations."" -", -3808,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863962-jack-murphy-limerick/,Boy who suffered injuries at birth awarded �1.5m,,"The High Court in Cork has awarded �1.5 million to a ten-year-old boy who suffered catastrophic injuries at birth. The case, against the HSE, was brought on behalf of Jack Murphy of Kilbehenny, Co Limerick, who was born at the maternity unit of St Finbarr's hospital in Cork in October 2006. Denis McCullough, senior counsel, instructed by Liz Enright, solicitor, said they were recommending acceptance of the �1.5m offer made by the Health Service Executive in the case. The settlement was made without a formal admission of liability. Approving the settlement offered by the HSE, Mr Justice Kevin Cross said the family ""deserved the thanks and congratulations of the court on behalf of Irish society for what they have done"".", -3809,2017/3/30,http://www.rte.ie/news/world/2017/0330/863957-south-korea/,South Korea's ousted president arrested,,"South Korea's ousted president Park Geun-hye has been arrested over the corruption and abuse of power scandal that brought her down, a court spokesman said. The Seoul Central District Court approved a warrant to arrest Ms Park, the country's first democratically elected leader to be thrown out of office, on accusations of bribery and abuse of power. She can be held in a cell for up to 20 days while she is investigated over allegations that she colluded with a friend, Choi Soon-sil, to pressure big businesses to contribute to now-defunct foundations set up to back her policy initiatives. A judge said in a statement that ""the cause and the need for the warrant are recognised as the main charges against her have been verified and as evidence could be destroyed"". Ms Park gave about eight hours of testimony at the same court the day before and was held at the prosecutors' office next door while the judge studied the evidence and arguments to decide on whether to issue the arrest warrant. Yesterday, Ms Park arrived at the court to plead her case that she should not be arrested or held while prosecutors investigate the scandal. She argues that she does not pose a flight risk and will not try to tamper with evidence. She and Choi have both denied any wrongdoing. Ms Park's removal from office capped months of paralysis and turmoil over the corruption scandal that also landed the head of the Samsung conglomerate in detention and on trial. Her impeachment this month has left a political vacuum, with only an interim president pending a 9 May election. It comes at a time of rising tensions with North Korea over its weapons programme and with China, which is angry over South Korea's decision to host a US anti-missile system. Prosecutors said on Monday that Park was accused of soliciting companies for money and infringing upon the freedom of corporate management by using her power as the president. Ms Park was questioned for 14 hours by prosecutors last week. She could face more than ten years in jail if convicted of receiving bribes from bosses of big conglomerates, including Samsung Group chief Jay Y Lee, in return for favours. Mr Lee, who denies charges that he provided bribes in return for favours for Samsung, and Choi are both in detention and on trial separately.", -3810,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863966-northern-ireland-politics/,SDLP leader hopeful NI talks will resume next week,,The SDLP leader has said he expects talks among Northern Ireland's political parties and the British and Irish governments to resume in Belfast on Monday. Colum Eastwood said he is optimistic that an agreement to restore power-sharing can be reached if the five parties approach the negotiations in the right spirit. Talks broke down at the weekend and a deadline to agree a new administration by Monday was missed. It is expected that in their role as co-guarantors of the Good Friday Agreement the British and Irish governments will target reaching a deal before Easter., -3811,2017/3/30,http://www.rte.ie/news/leinster/2017/0330/863956-missing-joanne-donoghue/,Appeal for woman missing from Kilkenny,,"Garda�� have appealed for information on a woman missing from Co Kilkenny. Joanne Donoghue, 34, has been missing from her home in Loughboy since this morning. She is in possession of a black Mazda 5, registered number 07 KK 1055. Ms Donoghue is described as 1.73m (5'8'') and of slim build. She has long black hair and blue eyes. Anyone with information is asked to contact Kilkenny Garda Station on 056-777-5000.", -3812,2017/3/30,http://www.rte.ie/news/world/2017/0330/863876-malaysia-kim-jong-nam/,Kim Jong Nam's body released to North Korea,,"Malaysian Prime Minister Najib Razak has said that the body of Kim Jong Nam, half brother of North Korean leader Kim Jong Un, has been released to North Korea. It brings an end to a diplomatic spat that escalated over nearly seven weeks. Mr Najib said nine Malaysians barred from leaving North Korea had been allowed to board a plane to leave Pyongyang, adding on Twitter that the plane was expected to reach Kuala Lumpur at 5am Malaysian time. The Malaysians left Pyongyang in a Royal Malaysian Air Force business jet, which headed immediately west out of North Korean airspace before turning south towards Malaysia, according to flight tracking website planefinder.net. ""Following the completion of the autopsy on the deceased and receipt of a letter from his family requesting the remains be returned to North Korea, the coroner has approved the release of the body,"" Mr Najib said in a statement. The statement did not mention Mr Kim by name. Mr Kim was assassinated at Kuala Lumpur airport on 13 February. Malaysian police say Kim was killed by two women who smeared super toxic VX nerve agent on his face. An Indonesian woman and Vietnamese woman have been charged. A joint statement by the North Korean government released simultaneously said both countries managed to ""resolve issues arising from the death of a DPRK national"" in Malaysia at a meeting in Kuala Lumpur. DPRK stands for North Korea's official name, the Democratic People's Republic of Korea. ""The importance of bilateral relations was reaffirmed. In this connection, both countries agreed to positively discuss there-introduction of the visa-free system and work towards bringing the relations to a higher level,"" read the statement from North Korea. Malaysia imposed a travel ban on North Koreans leaving the Southeast Asian country in a tit-for-tat move after Pyongyang barred Malaysians from leaving its borders. Mr Najib said that North Koreans will now be allowed to leave Malaysia. North Korea was angered by Malaysian authorities, who identified North Korean suspects and wanted to question others, including a diplomat at their embassy in Kuala Lumpur. Pyongyang has maintained that the body was that of Kim Cholas stated in his passport, and not Kim Jong Nam. Malaysia also expelled the North Korean ambassador for being ""diplomatically rude"", though Mr Najib later said that ties with Pyongyang would not be severed in a bid to calm relations.-", -3813,2017/3/30,http://www.rte.ie/news/dublin/2017/0330/863867-brooke-dunne-make-a-wish/,Dublin girl gets magical wonderland wish granted,,"A nine-year-old Dublin girl, who cannot walk or talk due to a rare disorder, has become the 2000th person to have a wish granted by the Make-A-Wish Ireland charity. Brooke Dunne from Clondalkin has Rett Syndrome, a genetic neurodevelopmental condition-only seen in about one in 10,000-births and almost exclusively affects girls. Her back garden has been transformed into a magical wonderland to brighten her life. It has been developed into an escapist sensory area, with fairy doors, fantasy lighting, raised flower beds and a large mirror. It was done secretly and she saw it for the first time yesterday in a ""big reveal""-after she returned from school. A Dublin girl, who cannot walk or talk due to a rare disorder, has become the 2000th person to benefit from the Make-A-Wish Ireland charity pic.twitter.com/U9Na5609I7 ""?RT? News (@rtenews) March 30, 2017 Friends and parents from Clondalkin were there to greet her. Brooke is a wheelchair user and the syndrome means she cannot swallow and it also affects her breathing. Her mother Julie told RT? News that she hopes the garden will offer Brooke an escapist sensory experience, and help her recover from her daily seizures. She said her daughter will be able to be a little girl there and enjoy it with her friends. The garden was also put together with the help of the Clondalkin community with local gardeners, a muralist, lighting and door companies supplying products. The Make-A-Wish charity is celebrating 25 years this year and its national fundraising day takes place tomorrow.", -3814,2017/3/30,http://www.rte.ie/sport/soccer/2017/0330/863794-ronaldo-statue/,'Neither did Jesus please everyone' - Ronaldo sculptor happy,,"The sculptor behind the controversial Cristiano Ronaldo statue has defended his work and insisted the Real Madrid forward is happy with the final product. Madeiran artist Emanuel Santos was tasked with creating the image of Ronaldo and spent three weeks on the project. The Aeroporto da Madeira in Ronaldo's home town of Funchal was officially renamed after the Portugal international in a ceremony on Wednesday, with a bronze bust of the 32-year-old unveiled. Pictures of the bust were shared widely on social media, with some critics suggesting it bore more of a resemblance to former Arsenal and Manchester City forward Niall Quinn or The Head from BBC television programme 'Art Attack' than Ronaldo. But Santos said both he, and Ronaldo, were happy with it. ""Cristiano saw the photos that his brother sent him,"" Santos told Globo.com. ""I was with his brother at Cristiano's museum in Madeira and from the messages he sent, I could tell that he liked what he saw. ""He only asked for some wrinkles that gave him a certain expression in his face when he's about to laugh to be changed. ""He said it made him look older and asked for it to be thinned out a bit to make it smoother and more jovial. But they gave it the go-ahead and they liked what they saw."" But Santos added: ""It is impossible to please the Greeks and Trojans. Neither did Jesus please everyone. ""This is a matter of taste, so it is not as simple as it seems. What matters is the impact that this work generated. There is always the possibility of making a difference, I was prepared for all this."" View Comments", -3815,2017/3/30,http://www.rte.ie/news/world/2017/0330/863899-grenoble/,Grenoble lifts suspension against rugby players,,"French Top 14 outfit Grenoble have lifted a suspension-against six rugby players who were accused of rape, citing presumption of innocence amidst an ongoing investigation. Grenoble suspended the players on 17 March - without releasing their identities - following the accusations, with the players later-questioned by police. ""So far, no charges have been filed against the players after they were held at the Grenoble police station. Grenoble Rugby Club has decided to lift the suspensions and reinstate the players,"" the club said in a statement. However, Grenoble insisted they reserved the right to take further measures should new information surface in the investigation. The six players were named as Australian Peter Kimlin, 31; 22-year-old Denis Coulson and 24-year-old centre Chris Farrell, both from Ireland; New Zealanders Rory Grice, 26, and Dylan Hayes, 23; and Frenchman Loick Jammes, 22. The men were questioned-a week ago after a young woman alleged she was-raped-after she met them at a nightclub in Bordeaux following their defeat by Bordeaux-Begles on 11 March. Last week, solicitors on behalf of the two Irish players said they were questioned as witnesses.", -3816,2017/3/30,http://www.rte.ie/news/politics/2017/0330/863757-pac-project-eagle/,PAC chair says he was pressured to limit Project Eagle report,,"The chairman of the Public Accounts Committee has said three individuals attempted to put pressure on him to limit the committee's report on the sale of the Project Eagle loan book by the National Assets Management Agency. Sean Fleming said Minister for Finance Michael Noonan said during a meeting in the D��il-restaurant, in February 2015,-that the committee was being unfair to him. He said Mr Noonan concluded the statement by saying ""you know that I can injunct you"". Mr Fleming said he also wanted to put it on the record that he had a conversation with the Chairman of NAMA who said ""he did mention to me the issue of legal advice was being considered, but the high financial cost of it to NAMA was an issue that they had to take into account"". Mr Fleming said the remark was made ""in relation to our report, that we were potentially making adverse findings against NAMA"". However, in a letter to Mr Fleming, Mr Daly said that his remark was made in relation to the circulation of a copy of the committee's draft report into the Project Eagle sale. He said that he expressed concern to Mr Fleming at the time of their conversation about a media report which made an allegation against NAMA, ""in the context of its summary of the leaked draft report."" In the letter, Mr Daly said that at the time of his conversation with Mr Fleming, he said that ""no such finding had been made by the C&AG"". He had also stated that if any such finding relating to the allegation was included in the final PAC report, then the NAMA Board ""would have to consider whether to seek legal advice."" The Fianna F��il TD also told the Public Accounts Committee today that ""senior people"" in Leinster House ""made it clear that if they were not happy with the report, then they would prevent the report from being issued. They would take our report to the procedures committee to have it approved by them."" When asked who he was referring to he said: ""I'm not going to name names, I'm talking about senior officials in the D��il"". He said he was not referring to TDs. ""I'm now making it very clear that as chairman of the Public Accounts Committee, before this report was issued the question of legal challenge was raised by the Minister for Finance with me, NAMA raised it with me that they were considering it, and the senior officials in this house said they would consider their approach in terms of not allowing it. ""I think the fact that we did our work has strengthened our work,"" he said. Mr Fleming also said that it was made clear to him that ""NAMA had a dossier of all my previous comments in relation to the Comptroller and Auditor General"".- He said that he had often been critical in the past of C&AG reports. He said it was made clear to him that if the committee was ""backing up the C&AG, that would be used to show, that on previous occasions, I had no problem criticising the C&AG"". Earlier, a number of committee members proposed that the Public Accounts Committee should formally write to Mr Noonan to seek an apology from him for the threat to injunct the committee. But Fine Gael's Josepha Madigan accused members of the committee of ""political manoeuvres"". The charge was rejected by fellow members. Independent TD Catherine Connolly said the accusation that the committee was politically motivated when it criticised the Minister for Finance was ""disgusting"".", -3817,2017/3/30,http://www.rte.ie/news/ulster/2017/0330/863703-funeral-danielle-mclaughlin/,Funeral of Danielle McLaughlin takes place in Donegal,,"The funeral of Irishwoman Danielle McLaughlin, who was found murdered at an Indian beach resort, has taken place in her hometown of Buncrana, Co Donegal. In his homily, Fr Francis Bradley described her-as ""a cherished grand-daughter, a thoughtful sister, a loyal friend, a free spirit, a remarkable classmate and a gentle neighbour"".- ""We cannot allow the brevity of Danielle's life, or the malice which cut it short, to spoil her memory or impair her beauty"", he said. Friends and family members brought four symbols of Danielle's life to the altar: her guitar, her diary, a family photo and a holy bracelet from one of Mother Teresa's care homes in India. Family and friends of the 28-year-old asked mourners to wear bright colours to ""celebrate"" her life. Ms McLaughlin was travelling in Goa when she was killed earlier this month. Her body was discovered in Canacona, a popular tourist area in the south of the Indian state. Pupils from her old school in the town formed a guard of honour outside the church as the funeral procession arrived from her family home, followed by her grieving mother Andrea and four sisters Ms McLaughlin's friends said, while they are heartbroken, they want to honour her ""kind and vibrant"" personality. ""We are obviously heartbroken at the loss of our very close friend, but we would like to honour her in the way she would have liked, not focusing on the horrors of the world and giving in to hate, but honouring kindness and expressing our love for Danielle."" Ms McLaughlin, who lived in Liverpool for a while as a student, was found dead in a secluded spot on 14 March. A post-mortem examination later showed she had been sexually assaulted before being killed by blows to the head. A 24-year-old man has been charged by Indian police who said he had confessed to the crime.", -3818,2017/3/30,http://www.rte.ie/news/courts/2017/0330/863743-ian-bailey-extradition-hearing/,High Court endorses Ian Bailey European Arrest Warrant,,"The High Court has endorsed a European Arrest Warrant for Ian Bailey, issued by French authorities seeking to have him extradited to France to stand trial for the voluntary homicide of Sophie Toscan du Plantier. Mr Bailey, of The Prairie, Liscaha, Schull in Co Cork, was arrested this morning and was subsequently released on bail following a short hearing. Detective Sergeant Jim Kirwan told the court that he arrested Mr Bailey at the Criminal Courts of Justice this morning, about 20 minutes after the warrant was endorsed. Det Sgt Kirwan handed him a copy of the arrest warrant and, when asked if he wished to say anything, Mr Bailey responded: ""The warrant, as read to me, is severely flawed."" His legal team has previously told the court that they intend to oppose the application to have him sent to France. Justice Tony Hunt said bail is not an issue in this case. He set bail at �15,000 on Mr Bailey's own bond with no lodgement. He must remain at his current address and hand over his expired passport to garda��. He must not leave the jurisdiction without permission from the court and must attend the High Court when required. Justice Tony Hunt will hear submissions next Friday relating to the application made by the French authorities. He told Mr Bailey that he is not obliged to attend in person on that date. The judge told Mr Bailey's legal representatives that it would be best if they have their submissions ready at that time, adding: ""The quicker you get them in the quicker we can work towards dealing with the matter."" French authorities have already served Mr-Bailey with an indictment and want him to face trial in France for the alleged voluntary homicide of Ms Toscan du Plantier. Ms Toscan du Plantier was found battered to death on a laneway leading to her holiday home in Schull in west Cork on 23 December 1996. Mr Bailey has denied all links to the death of Ms Toscan du Plantier and alleges a garda conspiracy to frame him for her killing. This is the second time the French authorities have tried to bring Mr Bailey to France following a rejection by the Supreme Court in 2012. It is not unusual for the French authorities to prosecute a person for crimes committed against French citizens outside of France. The French authorities could also try Mr Bailey in his absence. Mr Bailey was arrested twice for questioning in relation to Ms Toscan du Plantier's death in 1997 and 1998, but was released without charge on both occasions.", -3819,2017/3/30,http://www.rte.ie/news/2017/0330/863797-bus-eireann/,Bus ?ireann warns rural school transport payments 'may be delayed',,"Bus ?ireann has written to private operators working under the School Transport Scheme to advise them that payments due tomorrow may be delayed. Bus ?ireann currently relies on a number of private operators to provide a rural bus service under the scheme. These drivers have been notified that their payments will be delayed as a result of the week-long industrial action. Drivers were reluctant to be identified but said some operators may be forced to withdraw from the scheme as early as Monday should they not receive their payments. Brian Connolly, a regional manager with Bus ?ireann, said-the delay is due to administrative staff being on strike and said payments would be made next week. Meanwhile, the-Director of the Coach Tourism and Transport Council of Ireland has said it is of significant concern to the 115,000 pupils who avail of the school transport scheme that services may be curtailed as the strike continues. Bus ?ireann currently relies on a number of private operators to provide around 89%-of services under the School Transport Scheme. Kevin Traynor told RT?'s Drivetime that drivers plan to fulfill their obligations to continue to provide the service, but concerns do exist. Brian Connolly, a regional manager with Bus ?ireann told the programme that the delay is due to administrative staff being on strike and said payments would be processed later next week. There are also growing concerns on the impact of the strike on third-level students who are sitting exams in three weeks. Councillor Martina Kinane from the Oranmore area on the outskirts of Galway said many students at NUI Galway and GMIT are unable to afford accommodation in the city centre and are struggling to attend their lectures. She said the impact on their college work was totally unacceptable. Meanwhile, Minister for Transport Shane Ross has again been criticised for not intervening in the dispute. During Leaders' Questions in the D��il, Sinn F��in deputy leader Mary Lou McDonald accused Mr Ross of ""presiding over transport grinding to a halt"". She told Minister for Education and Skills Richard Bruton that it was as if Mr Ross had ""found the entrance to Narnia and only pops out of the wardrobe every now and then"". Mr Bruton defended Mr Ross, saying he was doing his job.- He said the minister had negotiated improved input into the free travel scheme and was providing a future for the services provided by Bus ?ireann.- But he said it was not open to Mr Ross to provide subvention to the commercial services provided by Bus ?ireann.- He told Ms McDonald that if they sought ministers to come in with a chequebook to solve every dispute, there would never be a proper system of industrial relations.- He said it was very regrettable the dispute was causing so much hardship, but it had to be resolved by the Workplace Relations Commission.-", -3820,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863675-disclosures-tribunal/,12 applications for representation at Disclosures Tribunal,,"The tribunal set up to investigate an alleged smear campaign against garda whistleblower-Sergeant Maurice McCabe-has heard applications from 12 individuals or groups who want to be represented at the hearings of its first module. The Disclosures Tribunal, chaired by Supreme Court Justice Peter Charleton, will examine allegations that senior garda��-were involved in a smear campaign against Sgt McCabe, among other issues. This morning's hearing saw some difficult exchanges between lawyers representing media organisations and the tribunal chairman on the issue of the right of journalists to protect their sources. The chairman has indicated he will issue his ruling on the representation applications on Monday. Read:-Full list of applicants for representation This morning's sitting of the Disclosures Tribunal was solely to hear applications from those who wish to be represented at the tribunal's hearings. The tribunal held its first public sitting in Dublin Castle at the end of last month.- In his opening statement-last month, Justice Charleton said the entitlement to be represented would be given to everyone whose reputation was reasonably likely to be adversely affected by the tribunal's report.- Among those seeking representation were former garda commissioner-Martin Callinan and current Commissioner-N��ir��n O'Sullivan. Senior Counsel-Conor Dignam said he would be representing them, along with other members and past members of An Garda S��och��na, except for those seeking independent representation. The tribunal chairman asked if Mr Dignam would be representing a number of Chief Superintendents and Assistant Commissioners who had been written to by the tribunal about statements they had made preceding the O'Higgins Commission of Investigation. Mr Justice Charleton said statements made by these individuals that there was ""no cause for concern"" had been contradicted by the Commission. Mr Dignam said it was likely he would be making further applications on behalf of these garda��-but he had not yet seen the letters sent by the tribunal, even though they were two weeks old. He said there would be a liaison officer from An Garda S��och��na dealing with the tribunal but he did not yet have the name of that person. Lawyers for Sgt McCabe also sought representation. Garda whistleblower Sergeant Maurice McCabe Senior Counsel-Michael McDowell said he may be objecting to the decision to have the Garda Commissioner and former commissioner as well as other members of the force represented by the same legal team-because of a possible conflict of interest. Mr McDowell said Sgt McCabe's team had a ""deep concern"" about this. This position was echoed by lawyers for former garda press officer, Superintendent David Taylor, who also sought representation before the tribunal. Former Minister for Justice-Alan Shatter is seeking limited representation. His solicitor-Brian Gallagher said Mr Shatter wanted to be of assistance to the tribunal and had submitted a statement. Lawyers for RT? also applied for limited representation for RT? and any employees who may be relevant to the tribunal's terms of reference. Representation was also sought on behalf of the Child and Family Agency, Tusla, garda whistleblower Keith Harrison-as well as the former chairman of the Public Accounts Committee Fianna F��il TD, John McGuinness. There was also an application for representation for a number of named garda��-- Sergeant Yvonne Martin, who the tribunal was told, had been named in the media as someone who made misrepresentations about what was said at a meeting involving Sgt McCabe. Solicitor-Michael Hegarty said he was also representing Sergeant Brigid McGowan, Inspector Goretti Sheridan and Sergeant David Durkan. Lawyers for Associated Newspapers Limited, Independent News and Media and the Irish Times also sought representation. Heated exchanges over journalistic privilege But there were some heated exchanges between Justice Charleton and the lawyers over the issue of journalistic privilege. Mr Justice Charleton said he was being asked to rule on the issue of journalistic privilege ""in a vacuum"" and the news organisations were refusing to say whether or not their journalists had any information that might be of relevance to the tribunal. Lawyers for the news organisations said they could not answer the judge's question as to whether or not any of their journalists had been given so-called information by senior garda��-blackening Sgt-McCabe's name, without ""piercing the shield"" of journalistic privilege and placing the journalists in a difficult situation in relation to revealing sources. Justice Charleton said if journalists said they had such information but could not reveal their sources, then they could discuss it and he could make a ruling. But he said he was being asked to try an issue based on a hypothesis. Lawyers for INM and the Irish Times said they would reserve their applications for representation before the tribunal for the moment. There were two further applications for representation which related to the second module of the tribunal which has been parked until the current module has been completed. Last month, Justice Charleton said the entitlement to be represented would be given to everyone whose reputation was reasonably likely to be adversely affected by the tribunal's report. He warned that legal representation should be tailored to how central the person represented was thought to be. He said those represented would be given copies of, or the right to inspect witness statements or any other documents relevant to their reputation and would be able to cross examine witnesses. He said parties would be entitled to make a written or oral submission, or both, at the end of the evidence. Today's sitting is open to the public but permission has not been given to record or broadcast the proceedings. The tribunal's terms of reference, published last month, say the inquiry is to report in nine month's time and provide an interim report to Government in three months. It will have two modules.-The first concerns the response of Garda Commissioner-No��r��n O'Sullivan and the former commissioner Martin Callinan and other senior garda��-to disclosures made by Sgt McCabe. The second will deal with members of the force who made protected disclosures and whether they were mistreated as a result. The tribunal has not yet announced when it will begin hearing evidence.", -3821,2017/3/30,http://www.rte.ie/news/connacht/2017/0330/863824-rescue-116/,Conditions preventing attempts to lift Rescue 116 wreckage,,"Plans to tilt the wreckage of Coast Guard Rescue Helicopter 116 using inflatable lifting bags are being abandoned due to inclement conditions at sea. Spring tides have complicated already difficult diving conditions around Blackrock Island in Co Mayo in recent days. Search co-ordinators now plan to lift the wreckage to the surface using a hoist over the weekend, when swells ease. A specially equipped boat is travelling to north Mayo to take part in the operation. It will be positioned directly above the aircraft, so the five-tonne wreckage can be taken from the water. Naval Service divers will assist in the effort, which will allow for the inspection of an area below the helicopter that has been inaccessible since the crash over two weeks ago. Search teams want to see if they can find any trace of the two missing crew members, Paul-Ormsby and Ciar��n Smith, in this location. The wreckage will be lifted entirely from the water and brought ashore. It will be assessed by the Air Accident Investigation Unit, which is charged with identifying the causes of the fatal crash. Naval Service divers attached specially designed lifting bags to the helicopter earlier this week but an effort to raise the wreckage in this manner proved impossible. Meanwhile, an extensive coastal search for the missing R116 crew members is continuing today. Several vessels are surveying waters north of the crash site, where prevailing winds would have blown any debris in the last two-and-a-half weeks. The search field has been widened in recent days, to take in Donegal Bay and coastal regions north of Killybegs. RNLI lifeboat personnel from Ballyglass, Achill, Sligo and Bundoran are all taking part, while crews from Rosslare, Valentia and Donaghadee have travelled to the northwest, to assist in the operation. The RNLI says volunteers from around the country are being rostered to take part in the search for Mr Ormsby and Mr Smith in coming days. Meanwhile, the funeral of Captain Mark Duffy, who died when the helicopter crashed, has taken place at Blackrock in Co Louth. President Michael D Higgins was among those in attendance at the service.", -3822,2017/3/30,http://www.rte.ie/news/ulster/2017/0330/863787-sugar-northern-ireland/,Children in Northern Ireland eating treble recommended sugar intake,,"Children in Northern Ireland are eating three times as much sugar as they should, the Food Standards Agency has warned. Most of the sugar comes in breakfast cereals, yoghurts and biscuits. Adults are consuming double the recommended amount of sugar, the organisation added. The FSA welcomed new guidelines published by Public Health England which promised to remove around 200,000 tonnes of sugar from UK diets per year by 2020. FSA chairman Heather Hancock said: ""The FSA is also working with local cafes and restaurants to encourage displays of calories on menus so that people have the information they need to make healthy choices when eating out. ""The FSA's aim is to have healthier choices widely available and easy for consumers to make wherever they eat."" The Public Health England guidance sets out the recommended sugar limits for nine food groups including biscuits, breakfast cereals and yoghurt, and how reductions could be achieved by the food industry. In Northern Ireland, the FSA has been working with small and medium-sized businesses on reducing sugar content. Ms Hancock added: ""We know that adults and children in Northern Ireland are eating too much sugar and that most of it comes from everyday foods such as breakfast cereals and yoghurts as well as from foods such as confectionery and biscuits. ""That is why the Food Standards Agency's work with the Northern Ireland food industry is vital in reducing the levels of sugar, saturated fat and salt in the food they manufacture, serve or sell, as well as reducing portion sizes in general."" She said healthy choices should be easy to make. ""Eating a healthy, balanced diet is a key factor in having good health and achieving and maintaining a healthy weight. ""We are committed to collaborating across government and industry in tackling obesity and providing consumers with the opportunities to support and access a healthier lifestyle.""", -3823,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863913-disabilities-protest-united-nations/,Call for United Nations disabilities convention to be ratified,,"Hundreds of people with disabilities and their supporters have protested outside Leinster House over the country's failure to ratify the United Nations Convention on the Rights of Persons with Disabilities over the past ten years. Cork disability activist Joanne O'Riordan,-who organised the protest,-said the failure by successive governments to ratify the document indicates that political leaders deem the 600,000 people with disabilities here unworthy of full equality. In 2011, Ms O'Riordan attracted a lot of media attention when she challenged the government on cuts to disability allowance. In 2012, she addressed the UN at the International Telecommunication Union's conference 'Girls in Technology'. The protestors chanted the word ""ratify""-as TDs came out of Leinster House to hear Ms O'Riordan outline from her wheelchair some of the obstacles she and others face because Ireland remains the only EU members state not to have ratified the convention it signed ten years ago. She instanced vehicles obstructing her and others by parking on footpaths and the poor levels of access to public buildings and many privately-owned facilities. Ms O'Riordan also highlighted the much higher levels of poverty and unemployment suffered by people who are not fully able-bodied. Minister of State with Responsibility for Disability Finian McGrath said that he is determined that the convention will be ratified soon but only when the State can guarantee compliance with its contents.", -3824,2017/3/30,http://www.rte.ie/news/ireland/2017/0330/863884-carrickmines-inquest/,"Carrickmines victims died of carbon monoxide poisoning, inquest hears",,"All ten victims of a fire at a halting site in Carrickmines in Dublin died of carbon monoxide poisoning, an inquest heard. An inquest into the deaths following a fire at Glenamuck Halting site heard that the garda investigation into the fire is ongoing. The blaze claimed the lives of five adults and five children after it broke out in the early hours of 10 October 2015. The victims were Thomas Connors, 27, his wife Sylvia, 30, and their children Jim, five, Christy, three, and six-month-old Mary; Willie Lynch, 25, his partner 27-year-old Tara Gilbert, who was pregnant, and their daughters Jodie, aged nine, and Kelsey, four; and 39-year-old Jimmy Lynch, a brother of Willy. The victims were residents of Glenamuck Halting site, Carrickmines, Dublin 24. Garda Charlie Dempsey took the stand at Dublin Coroner's Court to confirm the details of the identification process for each individual victim. The five adults and four of the children were identified using DNA evidence, the court heard. Six-month-old baby Mary Connors was formally identified by her relative. The ten post-mortem examinations were carried out by State Pathologist Dr Marie Cassidy and Assistant State Pathologist Dr Margaret Bolster. The cause of death returned for all ten victims of the blaze was acute carbon monoxide poisoning due to smoke inhalation due to a fire. Four relatives of the victims were present in court as Coroner Dr Myra Cullinane outlined the scope of the inquest. She told family members that the inquiry into all ten deaths will be treated as one inquest as the circumstances of all ten deaths are the same. ""We will not hold a number of inquests in this case because the circumstances are tragically the same. Today we are opening what is called a joinder inquest in relation to all of the people who died in this fire,"" Dr Cullinane said. Garda�� at Dún Laoghaire Garda Station applied for a six-month adjournment of the inquest to allow for ongoing investigations. Dr Cullinane adjourned the inquest until 21 September for further mention. The coroner extended her sympathies to all those bereaved by the tragedy. ""Clearly the evidence in court testifies to the scale of the loss of life suffered by the families and the community. It must be very difficult to bear,"" the coroner said.", diff --git a/source/entities.txt b/source/entities.txt deleted file mode 100644 index 560f3da..0000000 --- a/source/entities.txt +++ /dev/null @@ -1,8 +0,0 @@ -Angela Merkel,Merkel -Barack Obama,Obama -Brexit -Donald Trump,Trump -North Korea -Vladimir Putin,Putin -Xi Jinping,Xi,Jinping -2015 \ No newline at end of file diff --git a/store/file.go b/store/file.go new file mode 100644 index 0000000..11718c3 --- /dev/null +++ b/store/file.go @@ -0,0 +1,43 @@ +package store + +import ( + "fmt" + "io" + "os" + "path/filepath" + "sync" +) + +type file struct { + base string +} + +var mu sync.Mutex + +func NewFile(base string) (*file, error) { + mu.Lock() + defer mu.Unlock() + + f := &file{base: base} + if err := f.RemoveAll(); err != nil { + return nil, err + } + if err := os.MkdirAll(base, 0o755); err != nil { + return nil, err + } + + return f, nil +} + +func (s *file) RemoveAll() error { + return os.RemoveAll(s.base) +} + +func (s *file) NewWriter(pref, ext string) (io.WriteCloser, error) { + filename := filepath.Join(s.base, fmt.Sprintf("%s.%s", pref, ext)) + file, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY, 0o644) + if err != nil { + return nil, err + } + return file, nil +} diff --git a/translator/google.go b/translator/google.go new file mode 100644 index 0000000..384c1e6 --- /dev/null +++ b/translator/google.go @@ -0,0 +1,94 @@ +package translator + +import ( + "context" + "fmt" + "log/slog" + "sync" + + translate "cloud.google.com/go/translate" + "golang.org/x/sync/semaphore" + "golang.org/x/text/language" + "google.golang.org/api/option" +) + +type ( + translator struct { + client *translate.Client + ctx context.Context + } +) + +var ( + mu sync.Mutex + sema = semaphore.NewWeighted(5) + cache = make(map[[2]language.Tag]map[string]string) +) + +func NewGoogle(ctx context.Context, creds string) translator { + c, err := translate.NewClient(ctx, option.WithCredentialsFile(creds)) + if err != nil { + panic(fmt.Errorf("gcloud translator client: %s", err)) + } + return translator{ + client: c, + ctx: ctx, + } +} + +func ClearCache() { + mu.Lock() + defer mu.Unlock() + clear(cache) +} + +func (translator translator) Translate(inputs []string, src, target language.Tag) ([]string, error) { + slog.Debug("translating", "n", len(inputs), "src", src, "target", target) + + if err := sema.Acquire(translator.ctx, 1); err != nil { + return nil, err + } + defer sema.Release(1) + + ctx := translator.ctx + + if _, ok := cache[[2]language.Tag{src, target}]; !ok { + cache[[2]language.Tag{src, target}] = make(map[string]string) + } + + outputs := make([]string, 0, len(inputs)) + // Check cache first. + for _, input := range inputs { + output, ok := cache[[2]language.Tag{src, target}][input] + if !ok { + continue + } + slog.Debug("cache hit", "input", input, "output", output) + outputs = append(outputs, output) + } + // Use cache exhaustively. + if len(inputs) == len(outputs) { + return outputs, nil + } + + opts := &translate.Options{ + Format: translate.Text, + Source: src, + } + translation, err := translator.client.Translate(ctx, inputs, target, opts) + if err != nil { + return outputs, err + } + if len(translation) == 0 { + return outputs, fmt.Errorf("translate: %s", inputs) + } + + for i, t := range translation { + output := t.Text + outputs = append(outputs, output) + + // Add to cache. + cache[[2]language.Tag{src, target}][inputs[i]] = output + } + return outputs, nil +} diff --git a/web/.editorconfig b/web/.editorconfig new file mode 100644 index 0000000..5a5809d --- /dev/null +++ b/web/.editorconfig @@ -0,0 +1,9 @@ +[*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,css,scss,sass,less,styl}] +charset = utf-8 +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +end_of_line = lf +max_line_length = 100 diff --git a/web/.gitattributes b/web/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/web/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/web/.gitignore b/web/.gitignore new file mode 100644 index 0000000..8ee54e8 --- /dev/null +++ b/web/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/web/eslint.config.js b/web/eslint.config.js new file mode 100644 index 0000000..9b7972b --- /dev/null +++ b/web/eslint.config.js @@ -0,0 +1,37 @@ +import pluginVue from 'eslint-plugin-vue' +import { defineConfig, globalIgnores } from 'eslint/config' +import globals from 'globals' +import neostandard from 'neostandard' + +export default defineConfig([ + { + name: 'app/files-to-lint', + files: ['**/*.{js,mjs,jsx,vue}'] + }, + + globalIgnores(['**/dist/**', '**/dist-ssr/**', '**/coverage/**']), + + { + languageOptions: { + globals: { + ...globals.browser + } + } + }, + + ...neostandard({ + semi: false + }), + + ...pluginVue.configs['flat/recommended'], + + { + rules: { + 'vue/multi-word-component-names': 'off', + 'vue/no-v-html': 'off', + 'vue/require-default-prop': 'off', + + 'comma-dangle': 'error' + } + } +]) diff --git a/web/index.html b/web/index.html index 7500020..19d4c31 100644 --- a/web/index.html +++ b/web/index.html @@ -1,11 +1,11 @@ - + - entityscrape + assocentity showcase diff --git a/web/jsconfig.json b/web/jsconfig.json new file mode 100644 index 0000000..5a1f2d2 --- /dev/null +++ b/web/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + }, + "exclude": ["node_modules", "dist"] +} diff --git a/web/package-lock.json b/web/package-lock.json index 93420a8..a2a7979 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,1875 +1,7326 @@ { "name": "entityscrape-client", "version": "0.0.0", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "entityscrape-client", "version": "0.0.0", "dependencies": { - "chart.js": "^4.2.0", - "raw-loader": "^4.0.2", - "vue": "^3.2.47", - "vue-chartjs": "^5.2.0" + "@vicons/ionicons5": "^0.13.0", + "echarts": "^5.6.0", + "mermaid": "^11.11.0", + "plotly.js": "^3.1.0", + "plotly.js-dist-min": "^3.1.0", + "vue": "^3.5.17", + "vue-echarts": "^7.0.3", + "vue-router": "^4.5.1" }, "devDependencies": { - "@rushstack/eslint-patch": "^1.1.4", - "@vitejs/plugin-vue": "^3.1.2", - "@vue/eslint-config-prettier": "^7.0.0", - "eslint": "^8.33.0", - "eslint-plugin-vue": "^9.9.0", - "naive-ui": "^2.34.3", - "prettier": "^2.8.3", - "vite": "^3.2.7" + "@eslint/js": "^9.29.0", + "@vitejs/plugin-vue": "^6.0.1", + "eslint": "^9.35.0", + "eslint-plugin-vue": "~10.2.0", + "globals": "^16.4.0", + "naive-ui": "^2.42.0", + "neostandard": "^0.12.2", + "vfonts": "^0.0.3", + "vite": "^7.1.5", + "vite-plugin-eslint": "^1.8.1", + "vite-plugin-vue-devtools": "^7.7.7" + } + }, + "node_modules/@antfu/install-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz", + "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==", + "license": "MIT", + "dependencies": { + "package-manager-detector": "^1.3.0", + "tinyexec": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" } }, - "node_modules/@babel/parser": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.13.tgz", - "integrity": "sha512-gFDLKMfpiXCsjt4za2JA9oTMn70CeseCehb11kRZgvd7+F67Hih3OHOK24cRrWECJ/ljfPGac6ygXAs/C8kIvw==", - "bin": { - "parser": "bin/babel-parser.js" + "node_modules/@antfu/utils": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-9.2.0.tgz", + "integrity": "sha512-Oq1d9BGZakE/FyoEtcNeSwM7MpDO2vUBi11RWBZXf75zPsbUVWmUs03EqkRFrcgbXyKTas0BdZWC1wcuSoqSAw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" } }, - "node_modules/@css-render/plugin-bem": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/@css-render/plugin-bem/-/plugin-bem-0.15.12.tgz", - "integrity": "sha512-Lq2jSOZn+wYQtsyaFj6QRz2EzAnd3iW5fZeHO1WSXQdVYwvwGX0ZiH3X2JQgtgYLT1yeGtrwrqJdNdMEUD2xTw==", + "node_modules/@babel/compat-data": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.4.tgz", + "integrity": "sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw==", "dev": true, - "peerDependencies": { - "css-render": "~0.15.12" + "license": "MIT", + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@css-render/vue3-ssr": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/@css-render/vue3-ssr/-/vue3-ssr-0.15.12.tgz", - "integrity": "sha512-AQLGhhaE0F+rwybRCkKUdzBdTEM/5PZBYy+fSYe1T9z9+yxMuV/k7ZRqa4M69X+EI1W8pa4kc9Iq2VjQkZx4rg==", + "node_modules/@babel/core": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.4.tgz", + "integrity": "sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA==", "dev": true, - "peerDependencies": { - "vue": "^3.0.11" + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.4", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.4", + "@babel/types": "^7.28.4", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "node_modules/@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "dev": true - }, - "node_modules/@esbuild/android-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.18.tgz", - "integrity": "sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==", - "cpu": [ - "arm" - ], + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz", - "integrity": "sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==", - "cpu": [ - "loong64" - ], + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, "engines": { - "node": ">=12" + "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", "dev": true, + "license": "MIT", "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@babel/types": "^7.27.3" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=6.9.0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", "dev": true, + "license": "MIT", "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { - "node": ">=10.10.0" + "node": ">=6.9.0" } }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "peer": true, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.3.tgz", + "integrity": "sha512-V9f6ZFIYSLNEbuGA/92uOvYsGCJNsuA8ESZ4ldc09bWk/j8H8TKiPw8Mk1eG6olpnO0ALHJmYfZvF4MEE4gajg==", + "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.3", + "semver": "^6.3.1" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "peer": true, - "engines": { - "node": ">=6.0.0" + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "peer": true, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" } }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "peer": true, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.27.1.tgz", + "integrity": "sha512-E5chM8eWjTp/aNoVpcbfM7mLxu9XGLWYise2eBKGQomAk/Mb4XoxyqXTZbuTohbsl8EKqdlMhnDI2CCLfcs9wA==", + "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "peer": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "peer": true, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@juggle/resize-observer": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", - "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", - "dev": true - }, - "node_modules/@kurkle/color": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz", - "integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==" + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", "dev": true, + "license": "MIT", "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@babel/types": "^7.27.1" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "node_modules/@babel/helper-replace-supers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", + "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", "dev": true, + "license": "MIT", "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "@babel/helper-member-expression-to-functions": "^7.27.1", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz", - "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==", - "dev": true - }, - "node_modules/@types/eslint": { - "version": "8.4.10", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", - "integrity": "sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==", - "peer": true, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", + "dev": true, + "license": "MIT", "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "peer": true, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@types/estree": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz", - "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==", - "peer": true - }, - "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "node_modules/@types/katex": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.14.0.tgz", - "integrity": "sha512-+2FW2CcT0K3P+JMR8YG846bmDwplKUTsWgT2ENwdQ1UdVfRk3GQrh6Mi4sTopy30gI8Uau5CEqHTDZ6YvWIUPA==", - "dev": true + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/lodash": { - "version": "4.14.191", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", - "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==", - "dev": true + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } }, - "node_modules/@types/lodash-es": { - "version": "4.17.6", - "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.6.tgz", - "integrity": "sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==", + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", "dev": true, + "license": "MIT", "dependencies": { - "@types/lodash": "*" + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", - "peer": true + "node_modules/@babel/parser": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.4.tgz", + "integrity": "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/@vitejs/plugin-vue": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-3.2.0.tgz", - "integrity": "sha512-E0tnaL4fr+qkdCNxJ+Xd0yM31UwMkQje76fsDVBBUCoGOUPexu2VDUYHL8P4CwV+zMvWw6nlRw19OnRKmYAJpw==", + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.28.0.tgz", + "integrity": "sha512-zOiZqvANjWDUaUS9xMxbMcK/Zccztbe/6ikvUXaG9nsPH3w6qh5UaPGAnirI/WhIbZ8m3OHU0ReyPrknG+ZKeg==", "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-decorators": "^7.27.1" + }, "engines": { - "node": "^14.18.0 || >=16.0.0" + "node": ">=6.9.0" }, "peerDependencies": { - "vite": "^3.0.0", - "vue": "^3.2.25" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/compiler-core": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.47.tgz", - "integrity": "sha512-p4D7FDnQb7+YJmO2iPEv0SQNeNzcbHdGByJDsT4lynf63AFkOTFN07HsiRSvjGo0QrxR/o3d0hUyNCUnBU2Tig==", + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.27.1.tgz", + "integrity": "sha512-YMq8Z87Lhl8EGkmb0MwYkt36QnxC+fzCgrl66ereamPlYToRpIk5nUjKUY3QKLWq8mwUB1BgbeXcTJhZOCDg5A==", + "dev": true, + "license": "MIT", "dependencies": { - "@babel/parser": "^7.16.4", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "source-map": "^0.6.1" + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/compiler-dom": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.47.tgz", - "integrity": "sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==", + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.2.47", - "@vue/shared": "3.2.47" + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/compiler-sfc": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.47.tgz", - "integrity": "sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==", - "dependencies": { - "@babel/parser": "^7.16.4", - "@vue/compiler-core": "3.2.47", - "@vue/compiler-dom": "3.2.47", - "@vue/compiler-ssr": "3.2.47", - "@vue/reactivity-transform": "3.2.47", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "magic-string": "^0.25.7", - "postcss": "^8.1.10", - "source-map": "^0.6.1" + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/compiler-ssr": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.47.tgz", - "integrity": "sha512-wVXC+gszhulcMD8wpxMsqSOpvDZ6xKXSVWkf50Guf/S+28hTAXPDYRTbLQ3EDkOP5Xz/+SY37YiwDquKbJOgZw==", + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.2.47", - "@vue/shared": "3.2.47" + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/eslint-config-prettier": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-7.0.0.tgz", - "integrity": "sha512-/CTc6ML3Wta1tCe1gUeO0EYnVXfo3nJXsIhZ8WJr3sov+cGASr6yuiibJTL6lmIBm7GobopToOuB3B6AWyV0Iw==", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0" + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { - "eslint": ">= 7.28.0", - "prettier": ">= 2.0.0" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/reactivity": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.47.tgz", - "integrity": "sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==", + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.28.0.tgz", + "integrity": "sha512-4AEiDEBPIZvLQaWlc9liCavE0xRM0dNca41WtBeM3jgFptfUOSG9z0uteLhq6+3rq+WB6jIvUwKDTpXEHPJ2Vg==", + "dev": true, + "license": "MIT", "dependencies": { - "@vue/shared": "3.2.47" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-create-class-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/reactivity-transform": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.47.tgz", - "integrity": "sha512-m8lGXw8rdnPVVIdIFhf0LeQ/ixyHkH5plYuS83yop5n7ggVJU+z5v0zecwEnX7fa7HNLBhh2qngJJkxpwEEmYA==", + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", "dependencies": { - "@babel/parser": "^7.16.4", - "@vue/compiler-core": "3.2.47", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "magic-string": "^0.25.7" + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@vue/runtime-core": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.47.tgz", - "integrity": "sha512-RZxbLQIRB/K0ev0K9FXhNbBzT32H9iRtYbaXb0ZIz2usLms/D55dJR2t6cIEUn6vyhS3ALNvNthI+Q95C+NOpA==", + "node_modules/@babel/traverse": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.4.tgz", + "integrity": "sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@vue/reactivity": "3.2.47", - "@vue/shared": "3.2.47" + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.4", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@vue/runtime-dom": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.47.tgz", - "integrity": "sha512-ArXrFTjS6TsDei4qwNvgrdmHtD930KgSKGhS5M+j8QxXrDJYLqYw4RRcDy1bz1m1wMmb6j+zGLifdVHtkXA7gA==", + "node_modules/@babel/types": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.4.tgz", + "integrity": "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==", + "license": "MIT", "dependencies": { - "@vue/runtime-core": "3.2.47", - "@vue/shared": "3.2.47", - "csstype": "^2.6.8" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@vue/runtime-dom/node_modules/csstype": { - "version": "2.6.21", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz", - "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==" + "node_modules/@braintree/sanitize-url": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.1.tgz", + "integrity": "sha512-i1L7noDNxtFyL5DmZafWy1wRVhGehQmzZaz1HiN5e7iylJMSZR7ekOV7NsIqa5qBldlLrsKv4HbgFUVlQrz8Mw==", + "license": "MIT" + }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-11.0.3.tgz", + "integrity": "sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "11.0.3", + "@chevrotain/types": "11.0.3", + "lodash-es": "4.17.21" + } }, - "node_modules/@vue/server-renderer": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.47.tgz", - "integrity": "sha512-dN9gc1i8EvmP9RCzvneONXsKfBRgqFeFZLurmHOveL7oH6HiFXJw5OGu294n1nHc/HMgTy6LulU/tv5/A7f/LA==", + "node_modules/@chevrotain/gast": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-11.0.3.tgz", + "integrity": "sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q==", + "license": "Apache-2.0", "dependencies": { - "@vue/compiler-ssr": "3.2.47", - "@vue/shared": "3.2.47" + "@chevrotain/types": "11.0.3", + "lodash-es": "4.17.21" + } + }, + "node_modules/@chevrotain/regexp-to-ast": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@chevrotain/regexp-to-ast/-/regexp-to-ast-11.0.3.tgz", + "integrity": "sha512-1fMHaBZxLFvWI067AVbGJav1eRY7N8DDvYCTwGBiE/ytKBgP8azTdgyrKyWZ9Mfh09eHWb5PgTSO8wi7U824RA==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/types": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-11.0.3.tgz", + "integrity": "sha512-gsiM3G8b58kZC2HaWR50gu6Y1440cHiJ+i3JUvcp/35JchYejb2+5MVeJK0iKThYpAa/P2PYFV4hoi44HD+aHQ==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-11.0.3.tgz", + "integrity": "sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==", + "license": "Apache-2.0" + }, + "node_modules/@choojs/findup": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@choojs/findup/-/findup-0.2.1.tgz", + "integrity": "sha512-YstAqNb0MCN8PjdLCDfRsBcGVRN41f3vgLvaI0IrIcBp4AqILRSS0DeWNGkicC+f/zRIPJLc+9RURVSepwvfBw==", + "license": "MIT", + "dependencies": { + "commander": "^2.15.1" }, - "peerDependencies": { - "vue": "3.2.47" + "bin": { + "findup": "bin/findup.js" } }, - "node_modules/@vue/shared": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.47.tgz", - "integrity": "sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==" + "node_modules/@choojs/findup/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" }, - "node_modules/@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", - "peer": true, - "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + "node_modules/@css-render/plugin-bem": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/@css-render/plugin-bem/-/plugin-bem-0.15.14.tgz", + "integrity": "sha512-QK513CJ7yEQxm/P3EwsI+d+ha8kSOcjGvD6SevM41neEMxdULE+18iuQK6tEChAWMOQNQPLG/Rw3Khb69r5neg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "css-render": "~0.15.14" } }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", - "peer": true + "node_modules/@css-render/vue3-ssr": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/@css-render/vue3-ssr/-/vue3-ssr-0.15.14.tgz", + "integrity": "sha512-//8027GSbxE9n3QlD73xFY6z4ZbHbvrOVB7AO6hsmrEzGbg+h2A09HboUyDgu+xsmj7JnvJD39Irt+2D0+iV8g==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "vue": "^3.0.11" + } }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", - "peer": true + "node_modules/@emnapi/core": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.5.0.tgz", + "integrity": "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.1.0", + "tslib": "^2.4.0" + } }, - "node_modules/@webassemblyjs/helper-buffer": { + "node_modules/@emnapi/runtime": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.5.0.tgz", + "integrity": "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz", + "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz", + "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz", + "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz", + "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz", + "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz", + "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz", + "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz", + "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz", + "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz", + "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz", + "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz", + "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz", + "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz", + "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz", + "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz", + "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz", + "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz", + "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz", + "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz", + "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz", + "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz", + "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz", + "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz", + "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz", + "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz", + "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz", + "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.35.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.35.0.tgz", + "integrity": "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.15.2", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "dev": true, + "license": "Apache-2.0", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "license": "MIT" + }, + "node_modules/@iconify/utils": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-3.0.1.tgz", + "integrity": "sha512-A78CUEnFGX8I/WlILxJCuIJXloL0j/OJ9PSchPAfCargEIKmUBWvvEMmKWB5oONwiUqlNt+5eRufdkLxeHIWYw==", + "license": "MIT", + "dependencies": { + "@antfu/install-pkg": "^1.1.0", + "@antfu/utils": "^9.2.0", + "@iconify/types": "^2.0.0", + "debug": "^4.4.1", + "globals": "^15.15.0", + "kolorist": "^1.8.0", + "local-pkg": "^1.1.1", + "mlly": "^1.7.4" + } + }, + "node_modules/@iconify/utils/node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/balanced-match": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", + "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@isaacs/brace-expansion": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", + "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@isaacs/balanced-match": "^4.0.1" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@juggle/resize-observer": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", + "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/@mapbox/geojson-rewind": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@mapbox/geojson-rewind/-/geojson-rewind-0.5.2.tgz", + "integrity": "sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==", + "license": "ISC", + "dependencies": { + "get-stream": "^6.0.1", + "minimist": "^1.2.6" + }, + "bin": { + "geojson-rewind": "geojson-rewind" + } + }, + "node_modules/@mapbox/geojson-types": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@mapbox/geojson-types/-/geojson-types-1.0.2.tgz", + "integrity": "sha512-e9EBqHHv3EORHrSfbR9DqecPNn+AmuAoQxV6aL8Xu30bJMJR1o8PZLZzpk1Wq7/NfCbuhmakHTPYRhoqLsXRnw==", + "license": "ISC" + }, + "node_modules/@mapbox/jsonlint-lines-primitives": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz", + "integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@mapbox/mapbox-gl-supported": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-1.5.0.tgz", + "integrity": "sha512-/PT1P6DNf7vjEEiPkVIRJkvibbqWtqnyGaBz3nfRdcxclNSnSdaLU5tfAgcD7I8Yt5i+L19s406YLl1koLnLbg==", + "license": "BSD-3-Clause", + "peerDependencies": { + "mapbox-gl": ">=0.32.1 <2.0.0" + } + }, + "node_modules/@mapbox/point-geometry": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz", + "integrity": "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ==", + "license": "ISC" + }, + "node_modules/@mapbox/tiny-sdf": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-1.2.5.tgz", + "integrity": "sha512-cD8A/zJlm6fdJOk6DqPUV8mcpyJkRz2x2R+/fYcWDYG3oWbG7/L7Yl/WqQ1VZCjnL9OTIMAn6c+BC5Eru4sQEw==", + "license": "BSD-2-Clause" + }, + "node_modules/@mapbox/unitbezier": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.0.tgz", + "integrity": "sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA==", + "license": "BSD-2-Clause" + }, + "node_modules/@mapbox/vector-tile": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-1.3.1.tgz", + "integrity": "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw==", + "license": "BSD-3-Clause", + "dependencies": { + "@mapbox/point-geometry": "~0.1.0" + } + }, + "node_modules/@mapbox/whoots-js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", + "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==", + "license": "ISC", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@maplibre/maplibre-gl-style-spec": { + "version": "20.4.0", + "resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-20.4.0.tgz", + "integrity": "sha512-AzBy3095fTFPjDjmWpR2w6HVRAZJ6hQZUCwk5Plz6EyfnfuQW1odeW5i2Ai47Y6TBA2hQnC+azscjBSALpaWgw==", + "license": "ISC", + "dependencies": { + "@mapbox/jsonlint-lines-primitives": "~2.0.2", + "@mapbox/unitbezier": "^0.0.1", + "json-stringify-pretty-compact": "^4.0.0", + "minimist": "^1.2.8", + "quickselect": "^2.0.0", + "rw": "^1.3.3", + "tinyqueue": "^3.0.0" + }, + "bin": { + "gl-style-format": "dist/gl-style-format.mjs", + "gl-style-migrate": "dist/gl-style-migrate.mjs", + "gl-style-validate": "dist/gl-style-validate.mjs" + } + }, + "node_modules/@maplibre/maplibre-gl-style-spec/node_modules/@mapbox/unitbezier": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", + "integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==", + "license": "BSD-2-Clause" + }, + "node_modules/@maplibre/maplibre-gl-style-spec/node_modules/tinyqueue": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz", + "integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==", + "license": "ISC" + }, + "node_modules/@mermaid-js/parser": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-0.6.2.tgz", + "integrity": "sha512-+PO02uGF6L6Cs0Bw8RpGhikVvMWEysfAyl27qTlroUB8jSWr1lL0Sf6zi78ZxlSnmgSY2AMMKVgghnN9jTtwkQ==", + "license": "MIT", + "dependencies": { + "langium": "3.3.1" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", + "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", + "@tybys/wasm-util": "^0.10.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.4.0" + } + }, + "node_modules/@plotly/d3": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@plotly/d3/-/d3-3.8.2.tgz", + "integrity": "sha512-wvsNmh1GYjyJfyEBPKJLTMzgf2c2bEbSIL50lmqVUi+o1NHaLPi1Lb4v7VxXXJn043BhNyrxUrWI85Q+zmjOVA==", + "license": "BSD-3-Clause" + }, + "node_modules/@plotly/d3-sankey": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@plotly/d3-sankey/-/d3-sankey-0.7.2.tgz", + "integrity": "sha512-2jdVos1N3mMp3QW0k2q1ph7Gd6j5PY1YihBrwpkFnKqO+cqtZq3AdEYUeSGXMeLsBDQYiqTVcihYfk8vr5tqhw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1", + "d3-collection": "1", + "d3-shape": "^1.2.0" + } + }, + "node_modules/@plotly/d3-sankey-circular": { + "version": "0.33.1", + "resolved": "https://registry.npmjs.org/@plotly/d3-sankey-circular/-/d3-sankey-circular-0.33.1.tgz", + "integrity": "sha512-FgBV1HEvCr3DV7RHhDsPXyryknucxtfnLwPtCKKxdolKyTFYoLX/ibEfX39iFYIL7DYbVeRtP43dbFcrHNE+KQ==", + "license": "MIT", + "dependencies": { + "d3-array": "^1.2.1", + "d3-collection": "^1.0.4", + "d3-shape": "^1.2.0", + "elementary-circuits-directed-graph": "^1.0.4" + } + }, + "node_modules/@plotly/d3-sankey-circular/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==", + "license": "BSD-3-Clause" + }, + "node_modules/@plotly/d3-sankey-circular/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" + }, + "node_modules/@plotly/d3-sankey-circular/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/@plotly/d3-sankey/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==", + "license": "BSD-3-Clause" + }, + "node_modules/@plotly/d3-sankey/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" + }, + "node_modules/@plotly/d3-sankey/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/@plotly/mapbox-gl": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@plotly/mapbox-gl/-/mapbox-gl-1.13.4.tgz", + "integrity": "sha512-sR3/Pe5LqT/fhYgp4rT4aSFf1rTsxMbGiH6Hojc7PH36ny5Bn17iVFUjpzycafETURuFbLZUfjODO8LvSI+5zQ==", + "license": "SEE LICENSE IN LICENSE.txt", + "dependencies": { + "@mapbox/geojson-rewind": "^0.5.2", + "@mapbox/geojson-types": "^1.0.2", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^1.5.0", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^1.1.1", + "@mapbox/unitbezier": "^0.0.0", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.2", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.2.1", + "grid-index": "^1.1.0", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^1.0.1", + "quickselect": "^2.0.0", + "rw": "^1.3.3", + "supercluster": "^7.1.0", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.1" + }, + "engines": { + "node": ">=6.4.0" + } + }, + "node_modules/@plotly/point-cluster": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@plotly/point-cluster/-/point-cluster-3.1.9.tgz", + "integrity": "sha512-MwaI6g9scKf68Orpr1pHZ597pYx9uP8UEFXLPbsCmuw3a84obwz6pnMXGc90VhgDNeNiLEdlmuK7CPo+5PIxXw==", + "license": "MIT", + "dependencies": { + "array-bounds": "^1.0.1", + "binary-search-bounds": "^2.0.4", + "clamp": "^1.0.1", + "defined": "^1.0.0", + "dtype": "^2.0.0", + "flatten-vertex-data": "^1.0.2", + "is-obj": "^1.0.1", + "math-log2": "^1.0.1", + "parse-rect": "^1.2.0", + "pick-by-alias": "^1.2.0" + } + }, + "node_modules/@plotly/regl": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@plotly/regl/-/regl-2.1.2.tgz", + "integrity": "sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw==", + "license": "MIT" + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.29", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", + "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.29", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.29.tgz", + "integrity": "sha512-NIJgOsMjbxAXvoGq/X0gD7VPMQ8j9g0BiDaNjVNVjvl+iKXxL3Jre0v31RmBYeLEmkbj2s02v8vFTbUXi5XS2Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/pluginutils": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", + "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.1.tgz", + "integrity": "sha512-HJXwzoZN4eYTdD8bVV22DN8gsPCAj3V20NHKOs8ezfXanGpmVPR7kalUHd+Y31IJp9stdB87VKPFbsGY3H/2ag==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.1.tgz", + "integrity": "sha512-PZlsJVcjHfcH53mOImyt3bc97Ep3FJDXRpk9sMdGX0qgLmY0EIWxCag6EigerGhLVuL8lDVYNnSo8qnTElO4xw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.1.tgz", + "integrity": "sha512-xc6i2AuWh++oGi4ylOFPmzJOEeAa2lJeGUGb4MudOtgfyyjr4UPNK+eEWTPLvmPJIY/pgw6ssFIox23SyrkkJw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.1.tgz", + "integrity": "sha512-2ofU89lEpDYhdLAbRdeyz/kX3Y2lpYc6ShRnDjY35bZhd2ipuDMDi6ZTQ9NIag94K28nFMofdnKeHR7BT0CATw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.1.tgz", + "integrity": "sha512-wOsE6H2u6PxsHY/BeFHA4VGQN3KUJFZp7QJBmDYI983fgxq5Th8FDkVuERb2l9vDMs1D5XhOrhBrnqcEY6l8ZA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.1.tgz", + "integrity": "sha512-A/xeqaHTlKbQggxCqispFAcNjycpUEHP52mwMQZUNqDUJFFYtPHCXS1VAG29uMlDzIVr+i00tSFWFLivMcoIBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.1.tgz", + "integrity": "sha512-54v4okehwl5TaSIkpp97rAHGp7t3ghinRd/vyC1iXqXMfjYUTm7TfYmCzXDoHUPTTf36L8pr0E7YsD3CfB3ZDg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.1.tgz", + "integrity": "sha512-p/LaFyajPN/0PUHjv8TNyxLiA7RwmDoVY3flXHPSzqrGcIp/c2FjwPPP5++u87DGHtw+5kSH5bCJz0mvXngYxw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.1.tgz", + "integrity": "sha512-2AbMhFFkTo6Ptna1zO7kAXXDLi7H9fGTbVaIq2AAYO7yzcAsuTNWPHhb2aTA6GPiP+JXh85Y8CiS54iZoj4opw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.1.tgz", + "integrity": "sha512-Cgef+5aZwuvesQNw9eX7g19FfKX5/pQRIyhoXLCiBOrWopjo7ycfB292TX9MDcDijiuIJlx1IzJz3IoCPfqs9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.50.1.tgz", + "integrity": "sha512-RPhTwWMzpYYrHrJAS7CmpdtHNKtt2Ueo+BlLBjfZEhYBhK00OsEqM08/7f+eohiF6poe0YRDDd8nAvwtE/Y62Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.1.tgz", + "integrity": "sha512-eSGMVQw9iekut62O7eBdbiccRguuDgiPMsw++BVUg+1K7WjZXHOg/YOT9SWMzPZA+w98G+Fa1VqJgHZOHHnY0Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.1.tgz", + "integrity": "sha512-S208ojx8a4ciIPrLgazF6AgdcNJzQE4+S9rsmOmDJkusvctii+ZvEuIC4v/xFqzbuP8yDjn73oBlNDgF6YGSXQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.1.tgz", + "integrity": "sha512-3Ag8Ls1ggqkGUvSZWYcdgFwriy2lWo+0QlYgEFra/5JGtAd6C5Hw59oojx1DeqcA2Wds2ayRgvJ4qxVTzCHgzg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.1.tgz", + "integrity": "sha512-t9YrKfaxCYe7l7ldFERE1BRg/4TATxIg+YieHQ966jwvo7ddHJxPj9cNFWLAzhkVsbBvNA4qTbPVNsZKBO4NSg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.1.tgz", + "integrity": "sha512-MCgtFB2+SVNuQmmjHf+wfI4CMxy3Tk8XjA5Z//A0AKD7QXUYFMQcns91K6dEHBvZPCnhJSyDWLApk40Iq/H3tA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.1.tgz", + "integrity": "sha512-nEvqG+0jeRmqaUMuwzlfMKwcIVffy/9KGbAGyoa26iu6eSngAYQ512bMXuqqPrlTyfqdlB9FVINs93j534UJrg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.1.tgz", + "integrity": "sha512-RDsLm+phmT3MJd9SNxA9MNuEAO/J2fhW8GXk62G/B4G7sLVumNFbRwDL6v5NrESb48k+QMqdGbHgEtfU0LCpbA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.1.tgz", + "integrity": "sha512-hpZB/TImk2FlAFAIsoElM3tLzq57uxnGYwplg6WDyAxbYczSi8O2eQ+H2Lx74504rwKtZ3N2g4bCUkiamzS6TQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.1.tgz", + "integrity": "sha512-SXjv8JlbzKM0fTJidX4eVsH+Wmnp0/WcD8gJxIZyR6Gay5Qcsmdbi9zVtnbkGPG8v2vMR1AD06lGWy5FLMcG7A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.1.tgz", + "integrity": "sha512-StxAO/8ts62KZVRAm4JZYq9+NqNsV7RvimNK+YM7ry//zebEH6meuugqW/P5OFUCjyQgui+9fUxT6d5NShvMvA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@sec-ant/readable-stream": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", + "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sindresorhus/merge-streams": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@stylistic/eslint-plugin": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-2.11.0.tgz", + "integrity": "sha512-PNRHbydNG5EH8NK4c+izdJlxajIR6GxcUhzsYNRsn6Myep4dsZt0qFCz3rCPnkvgO5FYibDcMqgNHUT+zvjYZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^8.13.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "estraverse": "^5.3.0", + "picomatch": "^4.0.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": ">=8.40.0" + } + }, + "node_modules/@turf/area": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/area/-/area-7.2.0.tgz", + "integrity": "sha512-zuTTdQ4eoTI9nSSjerIy4QwgvxqwJVciQJ8tOPuMHbXJ9N/dNjI7bU8tasjhxas/Cx3NE9NxVHtNpYHL0FSzoA==", + "license": "MIT", + "dependencies": { + "@turf/helpers": "^7.2.0", + "@turf/meta": "^7.2.0", + "@types/geojson": "^7946.0.10", + "tslib": "^2.8.1" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@turf/bbox": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/bbox/-/bbox-7.2.0.tgz", + "integrity": "sha512-wzHEjCXlYZiDludDbXkpBSmv8Zu6tPGLmJ1sXQ6qDwpLE1Ew3mcWqt8AaxfTP5QwDNQa3sf2vvgTEzNbPQkCiA==", + "license": "MIT", + "dependencies": { + "@turf/helpers": "^7.2.0", + "@turf/meta": "^7.2.0", + "@types/geojson": "^7946.0.10", + "tslib": "^2.8.1" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@turf/centroid": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/centroid/-/centroid-7.2.0.tgz", + "integrity": "sha512-yJqDSw25T7P48au5KjvYqbDVZ7qVnipziVfZ9aSo7P2/jTE7d4BP21w0/XLi3T/9bry/t9PR1GDDDQljN4KfDw==", + "license": "MIT", + "dependencies": { + "@turf/helpers": "^7.2.0", + "@turf/meta": "^7.2.0", + "@types/geojson": "^7946.0.10", + "tslib": "^2.8.1" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@turf/helpers": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/helpers/-/helpers-7.2.0.tgz", + "integrity": "sha512-cXo7bKNZoa7aC7ydLmUR02oB3IgDe7MxiPuRz3cCtYQHn+BJ6h1tihmamYDWWUlPHgSNF0i3ATc4WmDECZafKw==", + "license": "MIT", + "dependencies": { + "@types/geojson": "^7946.0.10", + "tslib": "^2.8.1" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@turf/meta": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@turf/meta/-/meta-7.2.0.tgz", + "integrity": "sha512-igzTdHsQc8TV1RhPuOLVo74Px/hyPrVgVOTgjWQZzt3J9BVseCdpfY/0cJBdlSRI4S/yTmmHl7gAqjhpYH5Yaw==", + "license": "MIT", + "dependencies": { + "@turf/helpers": "^7.2.0", + "@types/geojson": "^7946.0.10" + }, + "funding": { + "url": "https://opencollective.com/turf" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.0.tgz", + "integrity": "sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" + } + }, + "node_modules/@types/d3-array": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz", + "integrity": "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==", + "license": "MIT" + }, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "license": "MIT" + }, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", + "license": "MIT", + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "license": "MIT" + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "license": "MIT", + "dependencies": { + "@types/d3-dsv": "*" + } + }, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "license": "MIT" + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "license": "MIT" + }, + "node_modules/@types/d3-geo": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", + "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "license": "MIT", + "dependencies": { + "@types/d3-color": "*" + } + }, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "license": "MIT" + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "license": "MIT" + }, + "node_modules/@types/d3-random": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", + "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", + "license": "MIT", + "dependencies": { + "@types/d3-time": "*" + } + }, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "license": "MIT" + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "license": "MIT" + }, + "node_modules/@types/d3-shape": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz", + "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==", + "license": "MIT", + "dependencies": { + "@types/d3-path": "*" + } + }, + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" + }, + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "license": "MIT" + }, + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" + }, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", + "license": "MIT", + "dependencies": { + "@types/d3-selection": "*" + } + }, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "license": "MIT", + "dependencies": { + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.56.12", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.12.tgz", + "integrity": "sha512-03ruubjWyOHlmljCVoxSuNDdmfZDzsrrz0P2LeJsOXr+ZwFQ+0yQIwNCwt/GYhV7Z31fgtXJTAEs+FYlEL851g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "license": "MIT" + }, + "node_modules/@types/geojson-vt": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/@types/geojson-vt/-/geojson-vt-3.2.5.tgz", + "integrity": "sha512-qDO7wqtprzlpe8FfQ//ClPV9xiuoh2nkIgiouIptON9w5jvD/fA4szvP9GBlDVdJ5dldAl0kX/sy3URbWwLx0g==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@types/mapbox__point-geometry": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.4.tgz", + "integrity": "sha512-mUWlSxAmYLfwnRBmgYV86tgYmMIICX4kza8YnE/eIlywGe2XoOxlpVnXWwir92xRLjwyarqwpu2EJKD2pk0IUA==", + "license": "MIT" + }, + "node_modules/@types/mapbox__vector-tile": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.4.tgz", + "integrity": "sha512-bpd8dRn9pr6xKvuEBQup8pwQfD4VUyqO/2deGjfpe6AwC8YRlyEipvefyRJUSiCJTZuCb8Pl1ciVV5ekqJ96Bg==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*", + "@types/mapbox__point-geometry": "*", + "@types/pbf": "*" + } + }, + "node_modules/@types/pbf": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/pbf/-/pbf-3.0.5.tgz", + "integrity": "sha512-j3pOPiEcWZ34R6a6mN07mUkM4o4Lwf6hPNt8eilOeZhTFbxFXmKhvXl9Y28jotFPaI1bpPDJsbCprUoNke6OrA==", + "license": "MIT" + }, + "node_modules/@types/supercluster": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@types/supercluster/-/supercluster-7.1.3.tgz", + "integrity": "sha512-Z0pOY34GDFl3Q6hUFYf3HkTwKEE02e7QgtJppBt+beEAxnyOpJua+voGFvxINBHa06GwLFFym7gRPY2SiKIfIA==", + "license": "MIT", + "dependencies": { + "@types/geojson": "*" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.43.0.tgz", + "integrity": "sha512-8tg+gt7ENL7KewsKMKDHXR1vm8tt9eMxjJBYINf6swonlWgkYn5NwyIgXpbbDxTNU5DgpDFfj95prcTq2clIQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/type-utils": "8.43.0", + "@typescript-eslint/utils": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", + "graphemer": "^1.4.0", + "ignore": "^7.0.0", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.43.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.43.0.tgz", + "integrity": "sha512-B7RIQiTsCBBmY+yW4+ILd6mF5h1FUwJsVvpqkrgpszYifetQ2Ke+Z4u6aZh0CblkUGIdR59iYVyXqqZGkZ3aBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.43.0.tgz", + "integrity": "sha512-htB/+D/BIGoNTQYffZw4uM4NzzuolCoaA/BusuSIcC8YjmBYQioew5VUZAYdAETPjeed0hqCaW7EHg+Robq8uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.43.0", + "@typescript-eslint/types": "^8.43.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.43.0.tgz", + "integrity": "sha512-daSWlQ87ZhsjrbMLvpuuMAt3y4ba57AuvadcR7f3nl8eS3BjRc8L9VLxFLk92RL5xdXOg6IQ+qKjjqNEimGuAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.43.0.tgz", + "integrity": "sha512-ALC2prjZcj2YqqL5X/bwWQmHA2em6/94GcbB/KKu5SX3EBDOsqztmmX1kMkvAJHzxk7TazKzJfFiEIagNV3qEA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.43.0.tgz", + "integrity": "sha512-qaH1uLBpBuBBuRf8c1mLJ6swOfzCXryhKND04Igr4pckzSEW9JX5Aw9AgW00kwfjWJF0kk0ps9ExKTfvXfw4Qg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/utils": "8.43.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.43.0.tgz", + "integrity": "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.43.0.tgz", + "integrity": "sha512-7Vv6zlAhPb+cvEpP06WXXy/ZByph9iL6BQRBDj4kmBsW98AqEeQHlj/13X+sZOrKSo9/rNKH4Ul4f6EICREFdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.43.0", + "@typescript-eslint/tsconfig-utils": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/visitor-keys": "8.43.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.1.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.43.0.tgz", + "integrity": "sha512-S1/tEmkUeeswxd0GGcnwuVQPFWo8NzZTOMxCvw8BX7OMxnNae+i8Tm7REQen/SwUIPoPqfKn7EaZ+YLpiB3k9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.43.0", + "@typescript-eslint/types": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.43.0.tgz", + "integrity": "sha512-T+S1KqRD4sg/bHfLwrpF/K3gQLBM1n7Rp7OjjikjTEssI2YJzQpi5WXoynOaQ93ERIuq3O8RBTOUYDKszUCEHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.43.0", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", + "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", + "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", + "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", + "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", + "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", + "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", + "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", + "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", + "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", + "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", + "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", + "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", + "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", + "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", + "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", + "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", + "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", + "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", - "peer": true + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", + "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@vicons/ionicons5": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@vicons/ionicons5/-/ionicons5-0.13.0.tgz", + "integrity": "sha512-zvZKBPjEXKN7AXNo2Na2uy+nvuv6SP4KAMQxpKL2vfHMj0fSvuw7JZcOPCjQC3e7ayssKnaoFVAhbYcW6v41qQ==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.1.tgz", + "integrity": "sha512-+MaE752hU0wfPFJEUAIxqw18+20euHHdxVtMvbFcOEpjEyfqXH/5DCoTHiVJ0J29EhTJdoTkjEv5YBKU9dnoTw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-beta.29" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vue/babel-helper-vue-transform-on": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.5.0.tgz", + "integrity": "sha512-0dAYkerNhhHutHZ34JtTl2czVQHUNWv6xEbkdF5W+Yrv5pCWsqjeORdOgbtW2I9gWlt+wBmVn+ttqN9ZxR5tzA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vue/babel-plugin-jsx": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.5.0.tgz", + "integrity": "sha512-mneBhw1oOqCd2247O0Yw/mRwC9jIGACAJUlawkmMBiNmL4dGA2eMzuNZVNqOUfYTa6vqmND4CtOPzmEEEqLKFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.2", + "@vue/babel-helper-vue-transform-on": "1.5.0", + "@vue/babel-plugin-resolve-type": "1.5.0", + "@vue/shared": "^3.5.18" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + } + } + }, + "node_modules/@vue/babel-plugin-resolve-type": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.5.0.tgz", + "integrity": "sha512-Wm/60o+53JwJODm4Knz47dxJnLDJ9FnKnGZJbUUf8nQRAtt6P+undLUAVU3Ha33LxOJe6IPoifRQ6F/0RrU31w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/parser": "^7.28.0", + "@vue/compiler-sfc": "^3.5.18" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.21.tgz", + "integrity": "sha512-8i+LZ0vf6ZgII5Z9XmUvrCyEzocvWT+TeR2VBUVlzIH6Tyv57E20mPZ1bCS+tbejgUgmjrEh7q/0F0bibskAmw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@vue/shared": "3.5.21", + "entities": "^4.5.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.21.tgz", + "integrity": "sha512-jNtbu/u97wiyEBJlJ9kmdw7tAr5Vy0Aj5CgQmo+6pxWNQhXZDPsRr1UWPN4v3Zf82s2H3kF51IbzZ4jMWAgPlQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.21", + "@vue/shared": "3.5.21" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.21.tgz", + "integrity": "sha512-SXlyk6I5eUGBd2v8Ie7tF6ADHE9kCR6mBEuPyH1nUZ0h6Xx6nZI29i12sJKQmzbDyr2tUHMhhTt51Z6blbkTTQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@vue/compiler-core": "3.5.21", + "@vue/compiler-dom": "3.5.21", + "@vue/compiler-ssr": "3.5.21", + "@vue/shared": "3.5.21", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.18", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.21.tgz", + "integrity": "sha512-vKQ5olH5edFZdf5ZrlEgSO1j1DMA4u23TVK5XR1uMhvwnYvVdDF0nHXJUblL/GvzlShQbjhZZ2uvYmDlAbgo9w==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.21", + "@vue/shared": "3.5.21" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/@vue/devtools-core": { + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-core/-/devtools-core-7.7.7.tgz", + "integrity": "sha512-9z9TLbfC+AjAi1PQyWX+OErjIaJmdFlbDHcD+cAMYKY6Bh5VlsAtCeGyRMrXwIlMEQPukvnWt3gZBLwTAIMKzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^7.7.7", + "@vue/devtools-shared": "^7.7.7", + "mitt": "^3.0.1", + "nanoid": "^5.1.0", + "pathe": "^2.0.3", + "vite-hot-client": "^2.0.4" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/@vue/devtools-core/node_modules/nanoid": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz", + "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.7.tgz", + "integrity": "sha512-wgoZtxcTta65cnZ1Q6MbAfePVFxfM+gq0saaeytoph7nEa7yMXoi6sCPy4ufO111B9msnw0VOWjPEFCXuAKRHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^7.7.7", + "birpc": "^2.3.0", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^1.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.7.tgz", + "integrity": "sha512-+udSj47aRl5aKb0memBvcUG9koarqnxNM5yjuREvqwK6T3ap4mn3Zqqc17QrBFTqSMjr3HK1cvStEZpMDpfdyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.21.tgz", + "integrity": "sha512-3ah7sa+Cwr9iiYEERt9JfZKPw4A2UlbY8RbbnH2mGCE8NwHkhmlZt2VsH0oDA3P08X3jJd29ohBDtX+TbD9AsA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.21" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.21.tgz", + "integrity": "sha512-+DplQlRS4MXfIf9gfD1BOJpk5RSyGgGXD/R+cumhe8jdjUcq/qlxDawQlSI8hCKupBlvM+3eS1se5xW+SuNAwA==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.21", + "@vue/shared": "3.5.21" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.21.tgz", + "integrity": "sha512-3M2DZsOFwM5qI15wrMmNF5RJe1+ARijt2HM3TbzBbPSuBHOQpoidE+Pa+XEaVN+czbHf81ETRoG1ltztP2em8w==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.21", + "@vue/runtime-core": "3.5.21", + "@vue/shared": "3.5.21", + "csstype": "^3.1.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.21.tgz", + "integrity": "sha512-qr8AqgD3DJPJcGvLcJKQo2tAc8OnXRcfxhOJCPF+fcfn5bBGz7VCcO7t+qETOPxpWK1mgysXvVT/j+xWaHeMWA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.21", + "@vue/shared": "3.5.21" + }, + "peerDependencies": { + "vue": "3.5.21" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.21.tgz", + "integrity": "sha512-+2k1EQpnYuVuu3N7atWyG3/xoFWIVJZq4Mz8XNOdScFI0etES75fbny/oU4lKWk/577P1zmg0ioYvpGEDZ3DLw==", + "license": "MIT" + }, + "node_modules/abs-svg-path": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/abs-svg-path/-/abs-svg-path-0.1.1.tgz", + "integrity": "sha512-d8XPSGjfyzlXC3Xx891DJRyZfqk5JU0BJrDQcsWomFIV1/BIzPW5HDH5iDdWpqWaav0YVIEzT1RHTwWr0FFshA==", + "license": "MIT" + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-bounds": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-bounds/-/array-bounds-1.0.1.tgz", + "integrity": "sha512-8wdW3ZGk6UjMPJx/glyEt0sLzzwAE1bhToPsO1W2pbpR2gULyxe3BjSiuJFheP50T/GgODVPz2fuMUmIywt8cQ==", + "license": "MIT" + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-normalize": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array-normalize/-/array-normalize-1.1.4.tgz", + "integrity": "sha512-fCp0wKFLjvSPmCn4F5Tiw4M3lpMZoHlCjfcs7nNzuj3vqQQ1/a8cgB9DXcpDSn18c+coLnaW7rqfcYCvKbyJXg==", + "license": "MIT", + "dependencies": { + "array-bounds": "^1.0.0" + } + }, + "node_modules/array-range": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-range/-/array-range-1.0.1.tgz", + "integrity": "sha512-shdaI1zT3CVNL2hnx9c0JMc0ZogGaxDs5e85akgHWKYa0yVbIyp06Ind3dVkTj/uuFrzaHBOyqFzo+VV6aXgtA==", + "license": "MIT" + }, + "node_modules/array-rearrange": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/array-rearrange/-/array-rearrange-2.2.2.tgz", + "integrity": "sha512-UfobP5N12Qm4Qu4fwLDIi2v6+wZsSf6snYSxAMeKhrh37YGnNWZPRmVEKc/2wfms53TLQnzfpG8wCx2Y/6NG1w==", + "license": "MIT" + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-arraybuffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/binary-search-bounds": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/binary-search-bounds/-/binary-search-bounds-2.0.5.tgz", + "integrity": "sha512-H0ea4Fd3lS1+sTEB2TgcLoK21lLhwEJzlQv3IN47pJS976Gx4zoWe0ak3q+uYh60ppQxg9F16Ri4tS1sfD4+jA==", + "license": "MIT" + }, + "node_modules/birpc": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.5.0.tgz", + "integrity": "sha512-VSWO/W6nNQdyP520F1mhf+Lc2f8pjGQOtoHHm7Ze8Go1kX7akpVIrtTa0fn+HB0QJEDVacl6aO08YE0PgXfdnQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/bit-twiddle": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bit-twiddle/-/bit-twiddle-1.0.2.tgz", + "integrity": "sha512-B9UhK0DKFZhoTFcfvAzhqsjStvGJp9vYWf3+6SNTtdSQnvIgfkHbgHrg/e4+TH71N2GDu8tpmCVoyfrL1d7ntA==", + "license": "MIT" + }, + "node_modules/bitmap-sdf": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/bitmap-sdf/-/bitmap-sdf-1.0.4.tgz", + "integrity": "sha512-1G3U4n5JE6RAiALMxu0p1XmeZkTeCwGKykzsLTCqVzfSDaN6S7fKnkIkfejogz+iwqBWc0UYAIKnKHNN7pSfDg==", + "license": "MIT" + }, + "node_modules/bl": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/bl/-/bl-2.2.1.tgz", + "integrity": "sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==", + "license": "MIT", + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true, + "license": "ISC" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.25.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.4.tgz", + "integrity": "sha512-4jYpcjabC606xJ3kw2QwGEZKX0Aw7sgQdZCvIK9dhVSPh76BKo+C+btT1RRofH7B+8iNpEbgGNVWiLki5q93yg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001737", + "electron-to-chromium": "^1.5.211", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, + "node_modules/bundle-name": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", + "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001741", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001741.tgz", + "integrity": "sha512-QGUGitqsc8ARjLdgAfxETDhRbJ0REsP6O3I96TAth/mVjh2cYzN2u+3AzPP3aVSm2FehEItaJw1xd+IGBXWeSw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/canvas-fit": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/canvas-fit/-/canvas-fit-1.5.0.tgz", + "integrity": "sha512-onIcjRpz69/Hx5bB5HGbYKUF2uC6QT6Gp+pfpGm3A7mPfcluSLV5v4Zu+oflDUwLdUw0rLIBhUbi0v8hM4FJQQ==", + "license": "MIT", + "dependencies": { + "element-size": "^1.1.1" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chevrotain": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-11.0.3.tgz", + "integrity": "sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "11.0.3", + "@chevrotain/gast": "11.0.3", + "@chevrotain/regexp-to-ast": "11.0.3", + "@chevrotain/types": "11.0.3", + "@chevrotain/utils": "11.0.3", + "lodash-es": "4.17.21" + } + }, + "node_modules/chevrotain-allstar": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/chevrotain-allstar/-/chevrotain-allstar-0.3.1.tgz", + "integrity": "sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw==", + "license": "MIT", + "dependencies": { + "lodash-es": "^4.17.21" + }, + "peerDependencies": { + "chevrotain": "^11.0.0" + } + }, + "node_modules/clamp": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/clamp/-/clamp-1.0.1.tgz", + "integrity": "sha512-kgMuFyE78OC6Dyu3Dy7vcx4uy97EIbVxJB/B0eJ3bUNAkwdNcxYzgKltnyADiYwsR7SEqkkUPsEUT//OVS6XMA==", + "license": "MIT" + }, + "node_modules/color-alpha": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/color-alpha/-/color-alpha-1.0.4.tgz", + "integrity": "sha512-lr8/t5NPozTSqli+duAN+x+no/2WaKTeWvxhHGN+aXT6AJ8vPlzLa7UriyjWak0pSC2jHol9JgjBYnnHsGha9A==", + "license": "MIT", + "dependencies": { + "color-parse": "^1.3.8" + } + }, + "node_modules/color-alpha/node_modules/color-parse": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-1.4.3.tgz", + "integrity": "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A==", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-id": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/color-id/-/color-id-1.1.0.tgz", + "integrity": "sha512-2iRtAn6dC/6/G7bBIo0uupVrIne1NsQJvJxZOBCzQOfk7jRq97feaDZ3RdzuHakRXXnHGNwglto3pqtRx1sX0g==", + "license": "MIT", + "dependencies": { + "clamp": "^1.0.1" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/color-normalize": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/color-normalize/-/color-normalize-1.5.0.tgz", + "integrity": "sha512-rUT/HDXMr6RFffrR53oX3HGWkDOP9goSAQGBkUaAYKjOE2JxozccdGyufageWDlInRAjm/jYPrf/Y38oa+7obw==", + "license": "MIT", + "dependencies": { + "clamp": "^1.0.1", + "color-rgba": "^2.1.1", + "dtype": "^2.0.0" + } + }, + "node_modules/color-normalize/node_modules/color-parse": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-1.4.3.tgz", + "integrity": "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A==", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0" + } + }, + "node_modules/color-normalize/node_modules/color-rgba": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-2.4.0.tgz", + "integrity": "sha512-Nti4qbzr/z2LbUWySr7H9dk3Rl7gZt7ihHAxlgT4Ho90EXWkjtkL1avTleu9yeGuqrt/chxTB6GKK8nZZ6V0+Q==", + "license": "MIT", + "dependencies": { + "color-parse": "^1.4.2", + "color-space": "^2.0.0" + } + }, + "node_modules/color-parse": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-2.0.0.tgz", + "integrity": "sha512-g2Z+QnWsdHLppAbrpcFWo629kLOnOPtpxYV69GCqm92gqSgyXbzlfyN3MXs0412fPBkFmiuS+rXposgBgBa6Kg==", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0" + } + }, + "node_modules/color-rgba": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-3.0.0.tgz", + "integrity": "sha512-PPwZYkEY3M2THEHHV6Y95sGUie77S7X8v+h1r6LSAPF3/LL2xJ8duUXSrkic31Nzc4odPwHgUbiX/XuTYzQHQg==", + "license": "MIT", + "dependencies": { + "color-parse": "^2.0.0", + "color-space": "^2.0.0" + } + }, + "node_modules/color-space": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/color-space/-/color-space-2.3.2.tgz", + "integrity": "sha512-BcKnbOEsOarCwyoLstcoEztwT0IJxqqQkNwDuA3a65sICvvHL2yoeV13psoDFh5IuiOMnIOKdQDwB4Mk3BypiA==", + "license": "Unlicense" + }, + "node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/comment-parser": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", + "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/copy-anything": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.5.tgz", + "integrity": "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-what": "^4.1.8" + }, + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", + "license": "MIT", + "dependencies": { + "layout-base": "^1.0.0" + } + }, + "node_modules/country-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/country-regex/-/country-regex-1.1.0.tgz", + "integrity": "sha512-iSPlClZP8vX7MC3/u6s3lrDuoQyhQukh5LyABJ3hvfzbQ3Yyayd4fp04zjLnfi267B/B2FkumcWWgrbban7sSA==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-font": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/css-font/-/css-font-1.2.0.tgz", + "integrity": "sha512-V4U4Wps4dPDACJ4WpgofJ2RT5Yqwe1lEH6wlOOaIxMi0gTjdIijsc5FmxQlZ7ZZyKQkkutqqvULOp07l9c7ssA==", + "license": "MIT", + "dependencies": { + "css-font-size-keywords": "^1.0.0", + "css-font-stretch-keywords": "^1.0.1", + "css-font-style-keywords": "^1.0.1", + "css-font-weight-keywords": "^1.0.0", + "css-global-keywords": "^1.0.1", + "css-system-font-keywords": "^1.0.0", + "pick-by-alias": "^1.2.0", + "string-split-by": "^1.0.0", + "unquote": "^1.1.0" + } + }, + "node_modules/css-font-size-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-font-size-keywords/-/css-font-size-keywords-1.0.0.tgz", + "integrity": "sha512-Q+svMDbMlelgCfH/RVDKtTDaf5021O486ZThQPIpahnIjUkMUslC+WuOQSWTgGSrNCH08Y7tYNEmmy0hkfMI8Q==", + "license": "MIT" + }, + "node_modules/css-font-stretch-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/css-font-stretch-keywords/-/css-font-stretch-keywords-1.0.1.tgz", + "integrity": "sha512-KmugPO2BNqoyp9zmBIUGwt58UQSfyk1X5DbOlkb2pckDXFSAfjsD5wenb88fNrD6fvS+vu90a/tsPpb9vb0SLg==", + "license": "MIT" + }, + "node_modules/css-font-style-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/css-font-style-keywords/-/css-font-style-keywords-1.0.1.tgz", + "integrity": "sha512-0Fn0aTpcDktnR1RzaBYorIxQily85M2KXRpzmxQPgh8pxUN9Fcn00I8u9I3grNr1QXVgCl9T5Imx0ZwKU973Vg==", + "license": "MIT" + }, + "node_modules/css-font-weight-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-font-weight-keywords/-/css-font-weight-keywords-1.0.0.tgz", + "integrity": "sha512-5So8/NH+oDD+EzsnF4iaG4ZFHQ3vaViePkL1ZbZ5iC/KrsCY+WHq/lvOgrtmuOQ9pBBZ1ADGpaf+A4lj1Z9eYA==", + "license": "MIT" + }, + "node_modules/css-global-keywords": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/css-global-keywords/-/css-global-keywords-1.0.1.tgz", + "integrity": "sha512-X1xgQhkZ9n94WDwntqst5D/FKkmiU0GlJSFZSV3kLvyJ1WC5VeyoXDOuleUD+SIuH9C7W05is++0Woh0CGfKjQ==", + "license": "MIT" + }, + "node_modules/css-render": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/css-render/-/css-render-0.15.14.tgz", + "integrity": "sha512-9nF4PdUle+5ta4W5SyZdLCCmFd37uVimSjg1evcTqKJCyvCEEj12WKzOSBNak6r4im4J4iYXKH1OWpUV5LBYFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@emotion/hash": "~0.8.0", + "csstype": "~3.0.5" + } + }, + "node_modules/css-render/node_modules/csstype": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.11.tgz", + "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", + "dev": true, + "license": "MIT" + }, + "node_modules/css-system-font-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-system-font-keywords/-/css-system-font-keywords-1.0.0.tgz", + "integrity": "sha512-1umTtVd/fXS25ftfjB71eASCrYhilmEsvDEI6wG/QplnmlfmVM5HkZ/ZX46DT5K3eblFPgLUHt5BRCb0YXkSFA==", + "license": "MIT" + }, + "node_modules/csscolorparser": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz", + "integrity": "sha512-umPSgYwZkdFoUrH5hIq5kf0wPSXiro51nPw0j2K/c83KflkPSTBGMz6NJvMB+07VlL0y7VPo6QJcDjcgKTTm3w==", + "license": "MIT" + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" + }, + "node_modules/cytoscape": { + "version": "3.33.1", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.33.1.tgz", + "integrity": "sha512-iJc4TwyANnOGR1OmWhsS9ayRS3s+XQ185FmuHObThD+5AeJCakAAbWv8KimMTt08xCCLNgneQwFp+JRJOr9qGQ==", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", + "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", + "license": "MIT", + "dependencies": { + "cose-base": "^2.2.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/cose-base": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", + "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", + "license": "MIT", + "dependencies": { + "layout-base": "^2.0.0" + } + }, + "node_modules/cytoscape-fcose/node_modules/layout-base": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", + "license": "MIT" + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "license": "ISC", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/d3": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "license": "ISC", + "dependencies": { + "d3-array": "3", + "d3-axis": "3", + "d3-brush": "3", + "d3-chord": "3", + "d3-color": "3", + "d3-contour": "4", + "d3-delaunay": "6", + "d3-dispatch": "3", + "d3-drag": "3", + "d3-dsv": "3", + "d3-ease": "3", + "d3-fetch": "3", + "d3-force": "3", + "d3-format": "3", + "d3-geo": "3", + "d3-hierarchy": "3", + "d3-interpolate": "3", + "d3-path": "3", + "d3-polygon": "3", + "d3-quadtree": "3", + "d3-random": "3", + "d3-scale": "4", + "d3-scale-chromatic": "3", + "d3-selection": "3", + "d3-shape": "3", + "d3-time": "3", + "d3-time-format": "4", + "d3-timer": "3", + "d3-transition": "3", + "d3-zoom": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", + "dependencies": { + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-axis": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-brush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-chord": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "license": "ISC", + "dependencies": { + "d3-path": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-collection": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/d3-collection/-/d3-collection-1.0.7.tgz", + "integrity": "sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==", + "license": "BSD-3-Clause" + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-contour": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "license": "ISC", + "dependencies": { + "d3-array": "^3.2.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "license": "ISC", + "dependencies": { + "delaunator": "5" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", + "license": "ISC", + "dependencies": { + "d3-dsv": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-force": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-format": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", + "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2.5.0 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-geo-projection": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/d3-geo-projection/-/d3-geo-projection-2.9.0.tgz", + "integrity": "sha512-ZULvK/zBn87of5rWAfFMc9mJOipeSo57O+BBitsKIXmU4rTVAnX1kSsJkE0R+TxY8pGNoM1nbyRRE7GYHhdOEQ==", + "license": "BSD-3-Clause", + "dependencies": { + "commander": "2", + "d3-array": "1", + "d3-geo": "^1.12.0", + "resolve": "^1.1.10" + }, + "bin": { + "geo2svg": "bin/geo2svg", + "geograticule": "bin/geograticule", + "geoproject": "bin/geoproject", + "geoquantize": "bin/geoquantize", + "geostitch": "bin/geostitch" + } + }, + "node_modules/d3-geo-projection/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" + }, + "node_modules/d3-geo-projection/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==", + "license": "BSD-3-Clause" + }, + "node_modules/d3-geo-projection/node_modules/d3-geo": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.12.1.tgz", + "integrity": "sha512-XG4d1c/UJSEX9NfU02KwBL6BYPj8YKHxgBEw5om2ZnTRSbIcego6dhHwcxuSR3clxh0EpE38os1DVPOmnYtTPg==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1" + } + }, + "node_modules/d3-geo-projection/node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/d3-hierarchy": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-polygon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-quadtree": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-random": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-sankey": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", + "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1 - 2", + "d3-shape": "^1.2.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-array": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "license": "BSD-3-Clause", + "dependencies": { + "internmap": "^1.0.0" + } + }, + "node_modules/d3-sankey/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" + }, + "node_modules/d3-sankey/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" + } + }, + "node_modules/d3-sankey/node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "license": "ISC" + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", + "dependencies": { + "d3-path": "^3.1.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", + "dependencies": { + "d3-array": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dagre-d3-es": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.11.tgz", + "integrity": "sha512-tvlJLyQf834SylNKax8Wkzco/1ias1OPw8DcUMDE7oUIoSEW25riQVuiu/0OWEFqT0cxHT3Pa9/D82Jr47IONw==", + "license": "MIT", + "dependencies": { + "d3": "^7.9.0", + "lodash-es": "^4.17.21" + } + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/date-fns": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz", + "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/date-fns-tz": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-3.2.0.tgz", + "integrity": "sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "date-fns": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/dayjs": { + "version": "1.11.18", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.18.tgz", + "integrity": "sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/default-browser": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz", + "integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz", + "integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/defined": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delaunator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.1.tgz", + "integrity": "sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw==", + "license": "ISC", + "dependencies": { + "robust-predicates": "^3.0.2" + } + }, + "node_modules/detect-kerning": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-kerning/-/detect-kerning-2.1.2.tgz", + "integrity": "sha512-I3JIbrnKPAntNLl1I6TpSQQdQ4AutYzv/sKMFKbepawV/hlH0GmYKhUoOEMd4xqaUHT+Bm0f4127lh5qs1m1tw==", + "license": "MIT" + }, + "node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/dompurify": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz", + "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, + "node_modules/draw-svg-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/draw-svg-path/-/draw-svg-path-1.0.0.tgz", + "integrity": "sha512-P8j3IHxcgRMcY6sDzr0QvJDLzBnJJqpTG33UZ2Pvp8rw0apCHhJCWqYprqrXjrgHnJ6tuhP1iTJSAodPDHxwkg==", + "license": "MIT", + "dependencies": { + "abs-svg-path": "~0.1.1", + "normalize-svg-path": "~0.1.0" + } + }, + "node_modules/dtype": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dtype/-/dtype-2.0.0.tgz", + "integrity": "sha512-s2YVcLKdFGS0hpFqJaTwscsyt0E8nNFdmo73Ocd81xNPj4URI4rj6D60A+vFMIw7BXWlb4yRkEwfBqcZzPGiZg==", + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/dup": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dup/-/dup-1.0.0.tgz", + "integrity": "sha512-Bz5jxMMC0wgp23Zm15ip1x8IhYRqJvF3nFC0UInJUDkN1z4uNPk9jTnfCUJXbOGiQ1JbXLQsiV41Fb+HXcj5BA==", + "license": "MIT" + }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/earcut": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz", + "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==", + "license": "ISC" + }, + "node_modules/echarts": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/echarts/-/echarts-5.6.0.tgz", + "integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "2.3.0", + "zrender": "5.6.1" + } + }, + "node_modules/echarts/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "license": "0BSD" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.215", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.215.tgz", + "integrity": "sha512-TIvGp57UpeNetj/wV/xpFNpWGb0b/ROw372lHPx5Aafx02gjTBtWnEEcaSX3W2dLM3OSdGGyHX/cHl01JQsLaQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/element-size": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/element-size/-/element-size-1.1.1.tgz", + "integrity": "sha512-eaN+GMOq/Q+BIWy0ybsgpcYImjGIdNLyjLFJU4XsLHXYQao5jCNb36GyN6C2qwmDDYSfIBmKpPpr4VnBdLCsPQ==", + "license": "MIT" + }, + "node_modules/elementary-circuits-directed-graph": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/elementary-circuits-directed-graph/-/elementary-circuits-directed-graph-1.3.1.tgz", + "integrity": "sha512-ZEiB5qkn2adYmpXGnJKkxT8uJHlW/mxmBpmeqawEHzPxh9HkLD4/1mFYX5l0On+f6rcPIt8/EWlRU2Vo3fX6dQ==", + "license": "MIT", + "dependencies": { + "strongly-connected-components": "^1.0.1" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", + "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-stack-parser-es": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-0.1.5.tgz", + "integrity": "sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/es-abstract": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", + "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz", + "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-set-tostringtag": "^2.0.3", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.6", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "iterator.prototype": "^1.1.4", + "safe-array-concat": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "license": "ISC", + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "license": "ISC", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/esbuild": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz", + "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.9", + "@esbuild/android-arm": "0.25.9", + "@esbuild/android-arm64": "0.25.9", + "@esbuild/android-x64": "0.25.9", + "@esbuild/darwin-arm64": "0.25.9", + "@esbuild/darwin-x64": "0.25.9", + "@esbuild/freebsd-arm64": "0.25.9", + "@esbuild/freebsd-x64": "0.25.9", + "@esbuild/linux-arm": "0.25.9", + "@esbuild/linux-arm64": "0.25.9", + "@esbuild/linux-ia32": "0.25.9", + "@esbuild/linux-loong64": "0.25.9", + "@esbuild/linux-mips64el": "0.25.9", + "@esbuild/linux-ppc64": "0.25.9", + "@esbuild/linux-riscv64": "0.25.9", + "@esbuild/linux-s390x": "0.25.9", + "@esbuild/linux-x64": "0.25.9", + "@esbuild/netbsd-arm64": "0.25.9", + "@esbuild/netbsd-x64": "0.25.9", + "@esbuild/openbsd-arm64": "0.25.9", + "@esbuild/openbsd-x64": "0.25.9", + "@esbuild/openharmony-arm64": "0.25.9", + "@esbuild/sunos-x64": "0.25.9", + "@esbuild/win32-arm64": "0.25.9", + "@esbuild/win32-ia32": "0.25.9", + "@esbuild/win32-x64": "0.25.9" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/eslint": { + "version": "9.35.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.35.0.tgz", + "integrity": "sha512-QePbBFMJFjgmlE+cXAlbHZbHpdFVS2E/6vzCy7aKlebddvl1vadiC4JFV5u/wqTkNUwEV8WrQi257jf5f06hrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.35.0", + "@eslint/plugin-kit": "^0.3.5", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-compat-utils": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz", + "integrity": "sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": ">=6.0.0" + } + }, + "node_modules/eslint-import-context": { + "version": "0.1.9", + "resolved": "https://registry.npmjs.org/eslint-import-context/-/eslint-import-context-0.1.9.tgz", + "integrity": "sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-tsconfig": "^4.10.1", + "stable-hash-x": "^0.2.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-context" + }, + "peerDependencies": { + "unrs-resolver": "^1.0.0" + }, + "peerDependenciesMeta": { + "unrs-resolver": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", + "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.4.0", + "get-tsconfig": "^4.10.0", + "is-bun-module": "^2.0.0", + "stable-hash": "^0.0.5", + "tinyglobby": "^0.2.13", + "unrs-resolver": "^1.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-resolver-typescript" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-es-x": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-7.8.0.tgz", + "integrity": "sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/ota-meshi", + "https://opencollective.com/eslint" + ], + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.1.2", + "@eslint-community/regexpp": "^4.11.0", + "eslint-compat-utils": "^0.5.1" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": ">=8" + } + }, + "node_modules/eslint-plugin-import-x": { + "version": "4.16.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import-x/-/eslint-plugin-import-x-4.16.1.tgz", + "integrity": "sha512-vPZZsiOKaBAIATpFE2uMI4w5IRwdv/FpQ+qZZMR4E+PeOcM4OeoEbqxRMnywdxP19TyB/3h6QBB0EWon7letSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "^8.35.0", + "comment-parser": "^1.4.1", + "debug": "^4.4.1", + "eslint-import-context": "^0.1.9", + "is-glob": "^4.0.3", + "minimatch": "^9.0.3 || ^10.0.1", + "semver": "^7.7.2", + "stable-hash-x": "^0.2.0", + "unrs-resolver": "^1.9.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-import-x" + }, + "peerDependencies": { + "@typescript-eslint/utils": "^8.0.0", + "eslint": "^8.57.0 || ^9.0.0", + "eslint-import-resolver-node": "*" + }, + "peerDependenciesMeta": { + "@typescript-eslint/utils": { + "optional": true + }, + "eslint-import-resolver-node": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-import-x/node_modules/minimatch": { + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", + "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", + "dev": true, + "license": "ISC", + "dependencies": { + "@isaacs/brace-expansion": "^5.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/eslint-plugin-n": { + "version": "17.21.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.21.3.tgz", + "integrity": "sha512-MtxYjDZhMQgsWRm/4xYLL0i2EhusWT7itDxlJ80l1NND2AL2Vi5Mvneqv/ikG9+zpran0VsVRXTEHrpLmUZRNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.5.0", + "enhanced-resolve": "^5.17.1", + "eslint-plugin-es-x": "^7.8.0", + "get-tsconfig": "^4.8.1", + "globals": "^15.11.0", + "globrex": "^0.1.2", + "ignore": "^5.3.2", + "semver": "^7.6.3", + "ts-declaration-location": "^1.0.6" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": ">=8.23.0" + } + }, + "node_modules/eslint-plugin-n/node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint-plugin-promise": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-7.2.1.tgz", + "integrity": "sha512-SWKjd+EuvWkYaS+uN2csvj0KoP43YTu7+phKQ5v+xw6+A0gutVX2yqCeCkC3uLCJFiPfR2dD8Es5L7yUsmvEaA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" + } }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", - "peer": true, + "node_modules/eslint-plugin-react": { + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, + "license": "MIT", "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@xtuc/long": "4.2.2" + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.9", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", - "peer": true - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", - "peer": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", - "peer": true, + "node_modules/eslint-plugin-vue": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.2.0.tgz", + "integrity": "sha512-tl9s+KN3z0hN2b8fV2xSs5ytGl7Esk1oSCxULLwFcdaElhZ8btYYZFrWxvh4En+czrSDtuLCeCOGa8HhEZuBdQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@xtuc/ieee754": "^1.2.0" + "@eslint-community/eslint-utils": "^4.4.0", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^6.0.15", + "semver": "^7.6.3", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "vue-eslint-parser": "^10.0.0" } }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", - "peer": true, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@xtuc/long": "4.2.2" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", - "peer": true + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", - "peer": true, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "license": "ISC", "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" } }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", - "peer": true, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", - "peer": true, - "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" } }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", - "peer": true, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" } }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", - "peer": true, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "@webassemblyjs/ast": "1.11.1", - "@xtuc/long": "4.2.2" + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" } }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "peer": true + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "peer": true + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "bin": { - "acorn": "bin/acorn" - }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "license": "BSD-2-Clause", "engines": { - "node": ">=0.4.0" + "node": ">=0.10.0" } }, - "node_modules/acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "peer": true, - "peerDependencies": { - "acorn": "^8" + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" } }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/evtd": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/evtd/-/evtd-0.2.4.tgz", + "integrity": "sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==", + "dev": true, + "license": "MIT" + }, + "node_modules/execa": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.0.tgz", + "integrity": "sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==", + "dev": true, + "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@sindresorhus/merge-streams": "^4.0.0", + "cross-spawn": "^7.0.6", + "figures": "^6.1.0", + "get-stream": "^9.0.0", + "human-signals": "^8.0.1", + "is-plain-obj": "^4.1.0", + "is-stream": "^4.0.1", + "npm-run-path": "^6.0.0", + "pretty-ms": "^9.2.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^4.0.0", + "yoctocolors": "^2.1.1" + }, + "engines": { + "node": "^18.19.0 || >=20.5.0" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "peerDependencies": { - "ajv": "^6.9.1" + "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "node_modules/execa/node_modules/get-stream": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", + "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", "dev": true, + "license": "MIT", + "dependencies": { + "@sec-ant/readable-stream": "^0.4.1", + "is-stream": "^4.0.1" + }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/execa/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/async-validator": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", - "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", - "dev": true + "node_modules/exsolve": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.7.tgz", + "integrity": "sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==", + "license": "MIT" + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "license": "ISC", + "dependencies": { + "type": "^2.7.2" + } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "node_modules/falafel": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.2.5.tgz", + "integrity": "sha512-HuC1qF9iTnHDnML9YZAdCDQwT0yKl/U55K4XSUXqGAA2GLoafFgWRqdAbhWJxXaYD4pyoVxAJ8wH670jMpI9DQ==", + "license": "MIT", + "dependencies": { + "acorn": "^7.1.1", + "isarray": "^2.0.1" + }, + "engines": { + "node": ">=0.4.0" + } }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "node_modules/falafel/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": "*" + "node": ">=0.4.0" } }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" } }, - "node_modules/browserslist": { - "version": "4.21.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", - "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "peer": true, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", "dependencies": { - "caniuse-lite": "^1.0.30001449", - "electron-to-chromium": "^1.4.284", - "node-releases": "^2.0.8", - "update-browserslist-db": "^1.0.10" - }, - "bin": { - "browserslist": "cli.js" + "is-glob": "^4.0.1" }, "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + "node": ">= 6" } }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "peer": true + "node_modules/fast-isnumeric": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/fast-isnumeric/-/fast-isnumeric-1.1.4.tgz", + "integrity": "sha512-1mM8qOr2LYz8zGaUdmiqRDiuue00Dxjgcb1NQR7TnhLVh6sQyngP9xvLo7Sl7LZpP/sk5eb+bcyWXw530NTBZw==", + "license": "MIT", + "dependencies": { + "is-string-blank": "^1.0.1" + } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true, - "engines": { - "node": ">=6" - } + "license": "MIT" }, - "node_modules/caniuse-lite": { - "version": "1.0.30001450", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001450.tgz", - "integrity": "sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true } - ], - "peer": true + } }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/figures": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", + "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "is-unicode-supported": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/chart.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.2.0.tgz", - "integrity": "sha512-wbtcV+QKeH0F7gQZaCJEIpsNriFheacouJQTVIjITi3eQA8bTlIBoknz0+dgV79aeKLNMAX+nDslIVE/nJ3rzA==", + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@kurkle/color": "^0.3.0" + "flat-cache": "^4.0.0" }, "engines": { - "pnpm": "^7.0.0" + "node": ">=16.0.0" } }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "peer": true, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, "engines": { - "node": ">=6.0" + "node": ">=8" } }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { - "color-name": "~1.1.4" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=7.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "peer": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, + "license": "MIT", "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "flatted": "^3.2.9", + "keyv": "^4.5.4" }, "engines": { - "node": ">= 8" + "node": ">=16" } }, - "node_modules/css-render": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/css-render/-/css-render-0.15.12.tgz", - "integrity": "sha512-eWzS66patiGkTTik+ipO9qNGZ+uNuGyTmnz6/+EJIiFg8+3yZRpnMwgFo8YdXhQRsiePzehnusrxVvugNjXzbw==", + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", "dev": true, + "license": "ISC" + }, + "node_modules/flatten-vertex-data": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/flatten-vertex-data/-/flatten-vertex-data-1.0.2.tgz", + "integrity": "sha512-BvCBFK2NZqerFTdMDgqfHBwxYWnxeCkwONsw6PvBMcUXqo8U/KDWwmXhqx1x2kLIg7DqIsJfOaJFOmlua3Lxuw==", + "license": "MIT", "dependencies": { - "@emotion/hash": "~0.8.0", - "csstype": "~3.0.5" + "dtype": "^2.0.0" } }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" + "node_modules/font-atlas": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/font-atlas/-/font-atlas-2.1.0.tgz", + "integrity": "sha512-kP3AmvX+HJpW4w3d+PiPR2X6E1yvsBXt2yhuCw+yReO9F1WYhvZwx3c95DGZGwg9xYzDGrgJYa885xmVA+28Cg==", + "license": "MIT", + "dependencies": { + "css-font": "^1.0.0" } }, - "node_modules/csstype": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.11.tgz", - "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", - "dev": true + "node_modules/font-measure": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/font-measure/-/font-measure-1.2.2.tgz", + "integrity": "sha512-mRLEpdrWzKe9hbfaF3Qpr06TAjquuBVP5cHy4b3hyeNdjc9i0PO6HniGsX5vjL5OWv7+Bd++NiooNpT/s8BvIA==", + "license": "MIT", + "dependencies": { + "css-font": "^1.2.0" + } }, - "node_modules/date-fns": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", - "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, "engines": { - "node": ">=0.11" + "node": ">= 0.4" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/date-fns" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/date-fns-tz": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-1.3.8.tgz", - "integrity": "sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==", - "dev": true, - "peerDependencies": { - "date-fns": ">=2.0.0" + "node_modules/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" } }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/fs-extra": { + "version": "11.3.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz", + "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==", "dev": true, + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">=14.14" } }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", "dev": true, + "license": "MIT", "dependencies": { - "esutils": "^2.0.2" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { - "node": ">=6.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", - "peer": true - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "engines": { - "node": ">= 4" + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", - "peer": true, - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">=6.9.0" } }, - "node_modules/es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", - "peer": true + "node_modules/geojson-vt": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-3.2.1.tgz", + "integrity": "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg==", + "license": "ISC" }, - "node_modules/esbuild": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.18.tgz", - "integrity": "sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q==", + "node_modules/get-canvas-context": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-canvas-context/-/get-canvas-context-1.0.2.tgz", + "integrity": "sha512-LnpfLf/TNzr9zVOGiIY6aKCz8EKuXmlYNV7CM2pUjBa/B+c2I15tS7KLySep75+FuerJdmArvJLcsAXWEy2H0A==", + "license": "MIT" + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { - "node": ">=12" + "node": ">= 0.4" }, - "optionalDependencies": { - "@esbuild/android-arm": "0.15.18", - "@esbuild/linux-loong64": "0.15.18", - "esbuild-android-64": "0.15.18", - "esbuild-android-arm64": "0.15.18", - "esbuild-darwin-64": "0.15.18", - "esbuild-darwin-arm64": "0.15.18", - "esbuild-freebsd-64": "0.15.18", - "esbuild-freebsd-arm64": "0.15.18", - "esbuild-linux-32": "0.15.18", - "esbuild-linux-64": "0.15.18", - "esbuild-linux-arm": "0.15.18", - "esbuild-linux-arm64": "0.15.18", - "esbuild-linux-mips64le": "0.15.18", - "esbuild-linux-ppc64le": "0.15.18", - "esbuild-linux-riscv64": "0.15.18", - "esbuild-linux-s390x": "0.15.18", - "esbuild-netbsd-64": "0.15.18", - "esbuild-openbsd-64": "0.15.18", - "esbuild-sunos-64": "0.15.18", - "esbuild-windows-32": "0.15.18", - "esbuild-windows-64": "0.15.18", - "esbuild-windows-arm64": "0.15.18" - } - }, - "node_modules/esbuild-android-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.18.tgz", - "integrity": "sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esbuild-android-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.18.tgz", - "integrity": "sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==", - "cpu": [ - "arm64" - ], + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=12" + "node": ">= 0.4" } }, - "node_modules/esbuild-darwin-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.18.tgz", - "integrity": "sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/esbuild-darwin-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz", - "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==", - "cpu": [ - "arm64" - ], + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esbuild-freebsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.18.tgz", - "integrity": "sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==", - "cpu": [ - "x64" - ], + "node_modules/get-tsconfig": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", + "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/esbuild-freebsd-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.18.tgz", - "integrity": "sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==", - "cpu": [ - "arm64" - ], + "node_modules/gl-mat4": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gl-mat4/-/gl-mat4-1.2.0.tgz", + "integrity": "sha512-sT5C0pwB1/e9G9AvAoLsoaJtbMGjfd/jfxo8jMCKqYYEnjZuFvqV5rehqar0538EmssjdDeiEWnKyBSTw7quoA==", + "license": "Zlib" + }, + "node_modules/gl-matrix": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.4.tgz", + "integrity": "sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==", + "license": "MIT" + }, + "node_modules/gl-text": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/gl-text/-/gl-text-1.4.0.tgz", + "integrity": "sha512-o47+XBqLCj1efmuNyCHt7/UEJmB9l66ql7pnobD6p+sgmBUdzfMZXIF0zD2+KRfpd99DJN+QXdvTFAGCKCVSmQ==", + "license": "MIT", + "dependencies": { + "bit-twiddle": "^1.0.2", + "color-normalize": "^1.5.0", + "css-font": "^1.2.0", + "detect-kerning": "^2.1.2", + "es6-weak-map": "^2.0.3", + "flatten-vertex-data": "^1.0.2", + "font-atlas": "^2.1.0", + "font-measure": "^1.2.2", + "gl-util": "^3.1.2", + "is-plain-obj": "^1.1.0", + "object-assign": "^4.1.1", + "parse-rect": "^1.2.0", + "parse-unit": "^1.0.1", + "pick-by-alias": "^1.2.0", + "regl": "^2.0.0", + "to-px": "^1.0.1", + "typedarray-pool": "^1.1.0" + } + }, + "node_modules/gl-util": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/gl-util/-/gl-util-3.1.3.tgz", + "integrity": "sha512-dvRTggw5MSkJnCbh74jZzSoTOGnVYK+Bt+Ckqm39CVcl6+zSsxqWk4lr5NKhkqXHL6qvZAU9h17ZF8mIskY9mA==", + "license": "MIT", + "dependencies": { + "is-browser": "^2.0.1", + "is-firefox": "^1.0.3", + "is-plain-obj": "^1.1.0", + "number-is-integer": "^1.0.1", + "object-assign": "^4.1.0", + "pick-by-alias": "^1.2.0", + "weak-map": "^1.0.5" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, "engines": { - "node": ">=12" + "node": ">=10.13.0" } }, - "node_modules/esbuild-linux-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.18.tgz", - "integrity": "sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "node_modules/global-prefix": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-4.0.0.tgz", + "integrity": "sha512-w0Uf9Y9/nyHinEk5vMJKRie+wa4kR5hmDbEhGGds/kG1PwGLLHKRoNMeJOyCQjjBkANlnScqgzcFwGHgmgLkVA==", + "license": "MIT", + "dependencies": { + "ini": "^4.1.3", + "kind-of": "^6.0.3", + "which": "^4.0.0" + }, "engines": { - "node": ">=12" + "node": ">=16" } }, - "node_modules/esbuild-linux-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.18.tgz", - "integrity": "sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "node_modules/global-prefix/node_modules/isexe": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "license": "ISC", "engines": { - "node": ">=12" + "node": ">=16" } }, - "node_modules/esbuild-linux-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.18.tgz", - "integrity": "sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "node_modules/global-prefix/node_modules/which": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz", + "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==", + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, "engines": { - "node": ">=12" + "node": "^16.13.0 || >=18.0.0" } }, - "node_modules/esbuild-linux-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.18.tgz", - "integrity": "sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==", - "cpu": [ - "arm64" - ], + "node_modules/globals": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/esbuild-linux-mips64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.18.tgz", - "integrity": "sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==", - "cpu": [ - "mips64el" - ], + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/esbuild-linux-ppc64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.18.tgz", - "integrity": "sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==", - "cpu": [ - "ppc64" - ], + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "license": "MIT" + }, + "node_modules/glsl-inject-defines": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/glsl-inject-defines/-/glsl-inject-defines-1.0.3.tgz", + "integrity": "sha512-W49jIhuDtF6w+7wCMcClk27a2hq8znvHtlGnrYkSWEr8tHe9eA2dcnohlcAmxLYBSpSSdzOkRdyPTrx9fw49+A==", + "license": "MIT", + "dependencies": { + "glsl-token-inject-block": "^1.0.0", + "glsl-token-string": "^1.0.1", + "glsl-tokenizer": "^2.0.2" } }, - "node_modules/esbuild-linux-riscv64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.18.tgz", - "integrity": "sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "node_modules/glsl-resolve": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/glsl-resolve/-/glsl-resolve-0.0.1.tgz", + "integrity": "sha512-xxFNsfnhZTK9NBhzJjSBGX6IOqYpvBHxxmo+4vapiljyGNCY0Bekzn0firQkQrazK59c1hYxMDxYS8MDlhw4gA==", + "license": "MIT", + "dependencies": { + "resolve": "^0.6.1", + "xtend": "^2.1.2" } }, - "node_modules/esbuild-linux-s390x": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.18.tgz", - "integrity": "sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], + "node_modules/glsl-resolve/node_modules/resolve": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", + "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", + "license": "MIT" + }, + "node_modules/glsl-resolve/node_modules/xtend": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.2.0.tgz", + "integrity": "sha512-SLt5uylT+4aoXxXuwtQp5ZnMMzhDb1Xkg4pEqc00WUJCQifPfV9Ub1VrNhp9kXkrjZD2I2Hl8WnjP37jzZLPZw==", "engines": { - "node": ">=12" + "node": ">=0.4" } }, - "node_modules/esbuild-netbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.18.tgz", - "integrity": "sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" + "node_modules/glsl-token-assignments": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/glsl-token-assignments/-/glsl-token-assignments-2.0.2.tgz", + "integrity": "sha512-OwXrxixCyHzzA0U2g4btSNAyB2Dx8XrztY5aVUCjRSh4/D0WoJn8Qdps7Xub3sz6zE73W3szLrmWtQ7QMpeHEQ==", + "license": "MIT" + }, + "node_modules/glsl-token-defines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/glsl-token-defines/-/glsl-token-defines-1.0.0.tgz", + "integrity": "sha512-Vb5QMVeLjmOwvvOJuPNg3vnRlffscq2/qvIuTpMzuO/7s5kT+63iL6Dfo2FYLWbzuiycWpbC0/KV0biqFwHxaQ==", + "license": "MIT", + "dependencies": { + "glsl-tokenizer": "^2.0.0" } }, - "node_modules/esbuild-openbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.18.tgz", - "integrity": "sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" + "node_modules/glsl-token-depth": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/glsl-token-depth/-/glsl-token-depth-1.1.2.tgz", + "integrity": "sha512-eQnIBLc7vFf8axF9aoi/xW37LSWd2hCQr/3sZui8aBJnksq9C7zMeUYHVJWMhFzXrBU7fgIqni4EhXVW4/krpg==", + "license": "MIT" + }, + "node_modules/glsl-token-descope": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glsl-token-descope/-/glsl-token-descope-1.0.2.tgz", + "integrity": "sha512-kS2PTWkvi/YOeicVjXGgX5j7+8N7e56srNDEHDTVZ1dcESmbmpmgrnpjPcjxJjMxh56mSXYoFdZqb90gXkGjQw==", + "license": "MIT", + "dependencies": { + "glsl-token-assignments": "^2.0.0", + "glsl-token-depth": "^1.1.0", + "glsl-token-properties": "^1.0.0", + "glsl-token-scope": "^1.1.0" } }, - "node_modules/esbuild-sunos-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.18.tgz", - "integrity": "sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" + "node_modules/glsl-token-inject-block": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/glsl-token-inject-block/-/glsl-token-inject-block-1.1.0.tgz", + "integrity": "sha512-q/m+ukdUBuHCOtLhSr0uFb/qYQr4/oKrPSdIK2C4TD+qLaJvqM9wfXIF/OOBjuSA3pUoYHurVRNao6LTVVUPWA==", + "license": "MIT" + }, + "node_modules/glsl-token-properties": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/glsl-token-properties/-/glsl-token-properties-1.0.1.tgz", + "integrity": "sha512-dSeW1cOIzbuUoYH0y+nxzwK9S9O3wsjttkq5ij9ZGw0OS41BirKJzzH48VLm8qLg+au6b0sINxGC0IrGwtQUcA==", + "license": "MIT" + }, + "node_modules/glsl-token-scope": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/glsl-token-scope/-/glsl-token-scope-1.1.2.tgz", + "integrity": "sha512-YKyOMk1B/tz9BwYUdfDoHvMIYTGtVv2vbDSLh94PT4+f87z21FVdou1KNKgF+nECBTo0fJ20dpm0B1vZB1Q03A==", + "license": "MIT" + }, + "node_modules/glsl-token-string": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/glsl-token-string/-/glsl-token-string-1.0.1.tgz", + "integrity": "sha512-1mtQ47Uxd47wrovl+T6RshKGkRRCYWhnELmkEcUAPALWGTFe2XZpH3r45XAwL2B6v+l0KNsCnoaZCSnhzKEksg==", + "license": "MIT" + }, + "node_modules/glsl-token-whitespace-trim": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/glsl-token-whitespace-trim/-/glsl-token-whitespace-trim-1.0.0.tgz", + "integrity": "sha512-ZJtsPut/aDaUdLUNtmBYhaCmhIjpKNg7IgZSfX5wFReMc2vnj8zok+gB/3Quqs0TsBSX/fGnqUUYZDqyuc2xLQ==", + "license": "MIT" + }, + "node_modules/glsl-tokenizer": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/glsl-tokenizer/-/glsl-tokenizer-2.1.5.tgz", + "integrity": "sha512-XSZEJ/i4dmz3Pmbnpsy3cKh7cotvFlBiZnDOwnj/05EwNp2XrhQ4XKJxT7/pDt4kp4YcpRSKz8eTV7S+mwV6MA==", + "license": "MIT", + "dependencies": { + "through2": "^0.6.3" } }, - "node_modules/esbuild-windows-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.18.tgz", - "integrity": "sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" + "node_modules/glsl-tokenizer/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "license": "MIT" + }, + "node_modules/glsl-tokenizer/node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/glsl-tokenizer/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "license": "MIT" + }, + "node_modules/glsl-tokenizer/node_modules/through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha512-RkK/CCESdTKQZHdmKICijdKKsCRVHs5KsLZ6pACAmF/1GPUQhonHSXWNERctxEp7RmvjdNbZTL5z9V7nSCXKcg==", + "license": "MIT", + "dependencies": { + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" } }, - "node_modules/esbuild-windows-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.18.tgz", - "integrity": "sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" + "node_modules/glslify": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/glslify/-/glslify-7.1.1.tgz", + "integrity": "sha512-bud98CJ6kGZcP9Yxcsi7Iz647wuDz3oN+IZsjCRi5X1PI7t/xPKeL0mOwXJjo+CRZMqvq0CkSJiywCcY7kVYog==", + "license": "MIT", + "dependencies": { + "bl": "^2.2.1", + "concat-stream": "^1.5.2", + "duplexify": "^3.4.5", + "falafel": "^2.1.0", + "from2": "^2.3.0", + "glsl-resolve": "0.0.1", + "glsl-token-whitespace-trim": "^1.0.0", + "glslify-bundle": "^5.0.0", + "glslify-deps": "^1.2.5", + "minimist": "^1.2.5", + "resolve": "^1.1.5", + "stack-trace": "0.0.9", + "static-eval": "^2.0.5", + "through2": "^2.0.1", + "xtend": "^4.0.0" + }, + "bin": { + "glslify": "bin.js" } }, - "node_modules/esbuild-windows-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz", - "integrity": "sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], + "node_modules/glslify-bundle": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glslify-bundle/-/glslify-bundle-5.1.1.tgz", + "integrity": "sha512-plaAOQPv62M1r3OsWf2UbjN0hUYAB7Aph5bfH58VxJZJhloRNbxOL9tl/7H71K7OLJoSJ2ZqWOKk3ttQ6wy24A==", + "license": "MIT", + "dependencies": { + "glsl-inject-defines": "^1.0.1", + "glsl-token-defines": "^1.0.0", + "glsl-token-depth": "^1.1.1", + "glsl-token-descope": "^1.0.2", + "glsl-token-scope": "^1.1.1", + "glsl-token-string": "^1.0.1", + "glsl-token-whitespace-trim": "^1.0.0", + "glsl-tokenizer": "^2.0.2", + "murmurhash-js": "^1.0.0", + "shallow-copy": "0.0.1" + } + }, + "node_modules/glslify-deps": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/glslify-deps/-/glslify-deps-1.3.2.tgz", + "integrity": "sha512-7S7IkHWygJRjcawveXQjRXLO2FTjijPDYC7QfZyAQanY+yGLCFHYnPtsGT9bdyHiwPTw/5a1m1M9hamT2aBpag==", + "license": "ISC", + "dependencies": { + "@choojs/findup": "^0.2.0", + "events": "^3.2.0", + "glsl-resolve": "0.0.1", + "glsl-tokenizer": "^2.0.0", + "graceful-fs": "^4.1.2", + "inherits": "^2.0.1", + "map-limit": "0.0.1", + "resolve": "^1.0.0" + } + }, + "node_modules/glslify-deps/node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, "engines": { - "node": ">=12" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "peer": true, + "node_modules/glslify/node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, "engines": { - "node": ">=6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint": { - "version": "8.33.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.33.0.tgz", - "integrity": "sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==", + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true, - "dependencies": { - "@eslint/eslintrc": "^1.4.1", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, + "license": "MIT" + }, + "node_modules/grid-index": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/grid-index/-/grid-index-1.1.0.tgz", + "integrity": "sha512-HZRwumpOGUrHyxO5bqKZL0B0GlUpwtCAzZ42sgxUPniu33R1LSFH5yrIcBCHjkctCAh3mtWKcKd9J4vDDdeVHA==", + "license": "ISC" + }, + "node_modules/hachure-fill": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", + "license": "MIT" + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-config-prettier": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", - "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "node_modules/has-hover": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-hover/-/has-hover-1.0.1.tgz", + "integrity": "sha512-0G6w7LnlcpyDzpeGUTuT0CEw05+QlMuGVk1IHNAlHrGJITGodjZu3x8BNDUMfKJSZXNB2ZAclqc1bvrd+uUpfg==", + "license": "MIT", + "dependencies": { + "is-browser": "^2.0.1" + } + }, + "node_modules/has-passive-events": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-passive-events/-/has-passive-events-1.0.0.tgz", + "integrity": "sha512-2vSj6IeIsgvsRMyeQ0JaCX5Q3lX4zMn5HpoVc7MEhQ6pv8Iq9rsXjsp+E5ZwaT7T0xhMT0KmU8gtt1EFVdbJiw==", + "license": "MIT", + "dependencies": { + "is-browser": "^2.0.1" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, + "license": "MIT", "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "es-define-property": "^1.0.0" }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-plugin-vue": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.9.0.tgz", - "integrity": "sha512-YbubS7eK0J7DCf0U2LxvVP7LMfs6rC6UltihIgval3azO3gyDwEGVgsCMe1TmDiEkl6GdMKfRpaME6QxIYtzDQ==", + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-utils": "^3.0.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.0.1", - "postcss-selector-parser": "^6.0.9", - "semver": "^7.3.5", - "vue-eslint-parser": "^9.0.1", - "xml-name-validator": "^4.0.0" + "dunder-proto": "^1.0.0" }, "engines": { - "node": "^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, - "peerDependencies": { - "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, + "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^2.0.0" + "has-symbols": "^1.0.3" }, "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, "engines": { - "node": ">=10" + "node": ">= 0.4" } }, - "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "node_modules/highlight.js": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz", + "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", "dev": true, + "license": "BSD-3-Clause", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=12.0.0" } }, - "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", "dev": true, - "dependencies": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } + "license": "MIT" }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "node_modules/human-signals": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz", + "integrity": "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==", "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, + "license": "Apache-2.0", "engines": { - "node": ">=0.10" + "node": ">=18.18.0" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", "dependencies": { - "estraverse": "^5.2.0" + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">=4.0" + "node": ">=0.10.0" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=4.0" + "node": ">= 4" } }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "peer": true, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=0.8.x" + "node": ">=0.8.19" } }, - "node_modules/evtd": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/evtd/-/evtd-0.2.4.tgz", - "integrity": "sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==", - "dev": true - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" + "node_modules/ini": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz", + "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==", + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "dev": true, + "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">= 0.4" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", "dev": true, + "license": "MIT", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", "dev": true, + "license": "MIT", "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", "dev": true, + "license": "MIT", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "has-bigints": "^1.0.2" }, "engines": { - "node": "*" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/isaacs" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", "dev": true, + "license": "MIT", "dependencies": { - "is-glob": "^4.0.3" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": ">=10.13.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "peer": true + "node_modules/is-browser": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-browser/-/is-browser-2.1.0.tgz", + "integrity": "sha512-F5rTJxDQ2sW81fcfOR1GnCXT6sVJC104fCyfj+mjpwNEwaPYSn5fte5jiHmBg3DHsIoL/l8Kvw5VN5SsTRcRFQ==", + "license": "MIT" }, - "node_modules/globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "node_modules/is-bun-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", + "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", "dev": true, + "license": "MIT", "dependencies": { - "type-fest": "^0.20.2" - }, + "semver": "^7.7.1" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "peer": true - }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", "dev": true, + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1" + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" }, "engines": { - "node": ">= 0.4.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/highlight.js": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.7.0.tgz", - "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==", + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, "engines": { - "node": ">=12.0.0" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">= 4" + "node": ">=0.10.0" } }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", "dev": true, + "license": "MIT", "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "call-bound": "^1.0.3" }, "engines": { - "node": ">=6" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, + "node_modules/is-finite": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", + "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", + "license": "MIT", "engines": { - "node": ">=0.8.19" + "node": ">=0.10.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "node_modules/is-firefox": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-firefox/-/is-firefox-1.0.3.tgz", + "integrity": "sha512-6Q9ITjvWIm0Xdqv+5U12wgOKEM2KoBw4Y926m0OFkvlCxnbG94HKAsVz8w3fWcfAS5YA2fJORXX1dLrkprCCxA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -1877,3281 +7328,3871 @@ "node": ">=0.10.0" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, + "node_modules/is-iexplorer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-iexplorer/-/is-iexplorer-1.0.0.tgz", + "integrity": "sha512-YeLzceuwg3K6O0MLM3UyUUjKAlyULetwryFp1mHy1I5PfArK0AEqlfa+MR4gkJjcbuJXoDJCvXbyqZVf5CR2Sg==", + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "peer": true, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" + "is-docker": "^3.0.0" }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" + "bin": { + "is-inside-container": "cli.js" }, "engines": { - "node": ">=10" + "node": ">=14.16" }, "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/js-sdsl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", - "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/is-mobile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-mobile/-/is-mobile-4.0.0.tgz", + "integrity": "sha512-mlcHZA84t1qLSuWkt2v0I2l61PYdyQDt4aG1mLIXF5FDMm4+haBCxCPYSr/uwqQNRk1MiTizn0ypEuRAOLRAew==", + "license": "MIT" + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", "dev": true, - "dependencies": { - "argparse": "^2.0.1" + "license": "MIT", + "engines": { + "node": ">= 0.4" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "peer": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "bin": { - "json5": "lib/cli.js" - }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.12.0" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", "dev": true, + "license": "MIT", "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "peer": true, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "license": "MIT", "engines": { - "node": ">=6.11.5" + "node": ">=0.10.0" } }, - "node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "license": "MIT", "engines": { - "node": ">=8.9.0" + "node": ">=0.10.0" } }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, + "license": "MIT", "dependencies": { - "p-locate": "^5.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "peer": true - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "peer": true, + "call-bound": "^1.0.3" + }, "engines": { - "node": ">= 0.6" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "peer": true, - "dependencies": { - "mime-db": "1.52.0" - }, + "node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { - "node": "*" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "node_modules/is-string-blank": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-string-blank/-/is-string-blank-1.0.1.tgz", + "integrity": "sha512-9H+ZBCVs3L9OYqv8nuUAzpcT9OTgMD1yAWrG7ihlnibdkbtB850heAmYWxHuXc4CHy4lKeK69tN+ny1K7gBIrw==", + "license": "MIT" }, - "node_modules/naive-ui": { - "version": "2.34.3", - "resolved": "https://registry.npmjs.org/naive-ui/-/naive-ui-2.34.3.tgz", - "integrity": "sha512-fUMr0dzb/iGsOTWgoblPVobY5X5dihQ1eam5dA+H74oyLYAvgX4pL96xQFPBLIYqvyRFBAsN85kHN5pLqdtpxA==", + "node_modules/is-svg-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-svg-path/-/is-svg-path-1.0.2.tgz", + "integrity": "sha512-Lj4vePmqpPR1ZnRctHv8ltSh1OrSxHkhUkd7wi+VQdcdP15/KvQFyk7LhNuM7ZW0EVbJz8kZLVmL9quLrfq4Kg==", + "license": "MIT" + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "dev": true, + "license": "MIT", "dependencies": { - "@css-render/plugin-bem": "^0.15.10", - "@css-render/vue3-ssr": "^0.15.10", - "@types/katex": "^0.14.0", - "@types/lodash": "^4.14.181", - "@types/lodash-es": "^4.17.6", - "async-validator": "^4.0.7", - "css-render": "^0.15.10", - "date-fns": "^2.28.0", - "date-fns-tz": "^1.3.3", - "evtd": "^0.2.4", - "highlight.js": "^11.5.0", - "lodash": "^4.17.21", - "lodash-es": "^4.17.21", - "seemly": "^0.3.6", - "treemate": "^0.3.11", - "vdirs": "^0.1.8", - "vooks": "^0.2.12", - "vueuc": "^0.4.47" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, - "peerDependencies": { - "vue": "^3.0.0" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", - "bin": { - "nanoid": "bin/nanoid.cjs" + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" }, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "peer": true - }, - "node_modules/node-releases": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.9.tgz", - "integrity": "sha512-2xfmOrRkGogbTK9R6Leda0DGiXeY3p2NJpy4+gNCffdUvV6mdEJnaDEic1i3Ec2djAo8jWYoJMR5PB0MSMpxUA==", - "peer": true - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", "dev": true, - "dependencies": { - "boolbase": "^1.0.0" + "license": "MIT", + "engines": { + "node": ">=18" }, "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", "dev": true, - "dependencies": { - "wrappy": "1" + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", "dev": true, + "license": "MIT", "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "call-bound": "^1.0.3" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", "dev": true, + "license": "MIT", "dependencies": { - "yocto-queue": "^0.1.0" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "node_modules/is-what": { + "version": "4.1.16", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz", + "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/is-wsl": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", + "integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==", "dev": true, + "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" + "is-inside-container": "^1.0.0" }, "engines": { - "node": ">=10" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", "dev": true, + "license": "MIT", "dependencies": { - "callsites": "^3.0.0" + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" }, "engines": { - "node": ">=6" + "node": ">= 0.4" } }, - "node_modules/path-exists": { + "node_modules/js-tokens": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true, - "engines": { - "node": ">=8" + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stringify-pretty-compact": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz", + "integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q==", + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "node_modules/jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } }, - "node_modules/postcss": { - "version": "8.4.21", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", - "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "node_modules/katex": { + "version": "0.16.22", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.22.tgz", + "integrity": "sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg==", "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - } + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" ], + "license": "MIT", "dependencies": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "commander": "^8.3.0" }, + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "license": "MIT", "engines": { - "node": "^10 || ^12 || >=14" + "node": ">= 12" } }, - "node_modules/postcss-selector-parser": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", - "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", + "node_modules/kdbush": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", + "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==", + "license": "ISC" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" + "json-buffer": "3.0.1" + } + }, + "node_modules/khroma": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kolorist": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz", + "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", + "license": "MIT" + }, + "node_modules/langium": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/langium/-/langium-3.3.1.tgz", + "integrity": "sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w==", + "license": "MIT", + "dependencies": { + "chevrotain": "~11.0.3", + "chevrotain-allstar": "~0.3.0", + "vscode-languageserver": "~9.0.1", + "vscode-languageserver-textdocument": "~1.0.11", + "vscode-uri": "~3.0.8" }, "engines": { - "node": ">=4" + "node": ">=16.0.0" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "license": "MIT" + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, "engines": { "node": ">= 0.8.0" } }, - "node_modules/prettier": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", - "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" + "node_modules/local-pkg": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.2.tgz", + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "url": "https://github.com/sponsors/antfu" } }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { - "fast-diff": "^1.1.2" + "p-locate": "^5.0.0" }, "engines": { - "node": ">=6.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "license": "MIT" }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "license": "MIT" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "peer": true, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", "dependencies": { - "safe-buffer": "^5.1.0" + "yallist": "^3.0.2" } }, - "node_modules/raw-loader": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", - "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==", + "node_modules/magic-string": { + "version": "0.30.19", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.19.tgz", + "integrity": "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw==", + "license": "MIT", "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" + "node_modules/map-limit": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/map-limit/-/map-limit-0.0.1.tgz", + "integrity": "sha512-pJpcfLPnIF/Sk3taPW21G/RQsEEirGaFpCW3oXRwH9dnFHPHNGjNyvh++rdmC2fNqEaTw2MhYJraoJWAHx8kEg==", + "license": "MIT", + "dependencies": { + "once": "~1.3.0" + } + }, + "node_modules/map-limit/node_modules/once": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz", + "integrity": "sha512-6vaNInhu+CHxtONf3zw3vq4SP2DOQhjBvIa3rNcG0+P7eKWlYH6Peu7rHizSloRU2EwMz6GraLieis9Ac9+p1w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/mapbox-gl": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/mapbox-gl/-/mapbox-gl-1.13.3.tgz", + "integrity": "sha512-p8lJFEiqmEQlyv+DQxFAOG/XPWN0Wp7j/Psq93Zywz7qt9CcUKFYDBOoOEKzqe6gudHVJY8/Bhqw6VDpX2lSBg==", + "license": "SEE LICENSE IN LICENSE.txt", + "peer": true, + "dependencies": { + "@mapbox/geojson-rewind": "^0.5.2", + "@mapbox/geojson-types": "^1.0.2", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/mapbox-gl-supported": "^1.5.0", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^1.1.1", + "@mapbox/unitbezier": "^0.0.0", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "csscolorparser": "~1.0.3", + "earcut": "^2.2.2", + "geojson-vt": "^3.2.1", + "gl-matrix": "^3.2.1", + "grid-index": "^1.1.0", + "murmurhash-js": "^1.0.0", + "pbf": "^3.2.1", + "potpack": "^1.0.1", + "quickselect": "^2.0.0", + "rw": "^1.3.3", + "supercluster": "^7.1.0", + "tinyqueue": "^2.0.3", + "vt-pbf": "^3.1.1" + }, + "engines": { + "node": ">=6.4.0" + } + }, + "node_modules/maplibre-gl": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-4.7.1.tgz", + "integrity": "sha512-lgL7XpIwsgICiL82ITplfS7IGwrB1OJIw/pCvprDp2dhmSSEBgmPzYRvwYYYvJGJD7fxUv1Tvpih4nZ6VrLuaA==", + "license": "BSD-3-Clause", + "dependencies": { + "@mapbox/geojson-rewind": "^0.5.2", + "@mapbox/jsonlint-lines-primitives": "^2.0.2", + "@mapbox/point-geometry": "^0.1.0", + "@mapbox/tiny-sdf": "^2.0.6", + "@mapbox/unitbezier": "^0.0.1", + "@mapbox/vector-tile": "^1.3.1", + "@mapbox/whoots-js": "^3.1.0", + "@maplibre/maplibre-gl-style-spec": "^20.3.1", + "@types/geojson": "^7946.0.14", + "@types/geojson-vt": "3.2.5", + "@types/mapbox__point-geometry": "^0.1.4", + "@types/mapbox__vector-tile": "^1.3.4", + "@types/pbf": "^3.0.5", + "@types/supercluster": "^7.1.3", + "earcut": "^3.0.0", + "geojson-vt": "^4.0.2", + "gl-matrix": "^3.4.3", + "global-prefix": "^4.0.0", + "kdbush": "^4.0.2", + "murmurhash-js": "^1.0.0", + "pbf": "^3.3.0", + "potpack": "^2.0.0", + "quickselect": "^3.0.0", + "supercluster": "^8.0.1", + "tinyqueue": "^3.0.0", + "vt-pbf": "^3.1.3" + }, + "engines": { + "node": ">=16.14.0", + "npm": ">=8.1.0" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/maplibre/maplibre-gl-js?sponsor=1" } }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, + "node_modules/maplibre-gl/node_modules/@mapbox/tiny-sdf": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.0.7.tgz", + "integrity": "sha512-25gQLQMcpivjOSA40g3gO6qgiFPDpWRoMfd+G/GoppPIeP6JDaMMkMrEJnMZhKyyS6iKwVt5YKu02vCUyJM3Ug==", + "license": "BSD-2-Clause" + }, + "node_modules/maplibre-gl/node_modules/@mapbox/unitbezier": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", + "integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==", + "license": "BSD-2-Clause" + }, + "node_modules/maplibre-gl/node_modules/earcut": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.2.tgz", + "integrity": "sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ==", + "license": "ISC" + }, + "node_modules/maplibre-gl/node_modules/geojson-vt": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-4.0.2.tgz", + "integrity": "sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A==", + "license": "ISC" + }, + "node_modules/maplibre-gl/node_modules/potpack": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/potpack/-/potpack-2.1.0.tgz", + "integrity": "sha512-pcaShQc1Shq0y+E7GqJqvZj8DTthWV1KeHGdi0Z6IAin2Oi3JnLCOfwnCo84qc+HAp52wT9nK9H7FAJp5a44GQ==", + "license": "ISC" + }, + "node_modules/maplibre-gl/node_modules/quickselect": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz", + "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==", + "license": "ISC" + }, + "node_modules/maplibre-gl/node_modules/supercluster": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-8.0.1.tgz", + "integrity": "sha512-IiOea5kJ9iqzD2t7QJq/cREyLHTtSmUT6gQsweojg9WH2sYJqZK9SswTu6jrscO6D1G5v5vYZ9ru/eq85lXeZQ==", + "license": "ISC", "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, + "kdbush": "^4.0.2" + } + }, + "node_modules/maplibre-gl/node_modules/tinyqueue": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz", + "integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g==", + "license": "ISC" + }, + "node_modules/marked": { + "version": "15.0.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz", + "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", + "license": "MIT", "bin": { - "resolve": "bin/resolve" + "marked": "bin/marked.js" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 18" } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", "dev": true, + "license": "MIT", "engines": { - "node": ">=4" + "node": ">= 0.4" } }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, + "node_modules/math-log2": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/math-log2/-/math-log2-1.0.1.tgz", + "integrity": "sha512-9W0yGtkaMAkf74XGYVy4Dqw3YUMnTNB2eeiw9aQbUl4A3KmuCEHTt2DgAB07ENzOYAjsYSAYufkAq0Zd+jU7zA==", + "license": "MIT", "engines": { - "iojs": ">=1.0.0", "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/mermaid": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.11.0.tgz", + "integrity": "sha512-9lb/VNkZqWTRjVgCV+l1N+t4kyi94y+l5xrmBmbbxZYkfRl5hEDaTPMOcaWKCl1McG8nBEaMlWwkcAEEgjhBgg==", + "license": "MIT", "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "@braintree/sanitize-url": "^7.0.4", + "@iconify/utils": "^3.0.1", + "@mermaid-js/parser": "^0.6.2", + "@types/d3": "^7.4.3", + "cytoscape": "^3.29.3", + "cytoscape-cose-bilkent": "^4.1.0", + "cytoscape-fcose": "^2.2.0", + "d3": "^7.9.0", + "d3-sankey": "^0.12.3", + "dagre-d3-es": "7.0.11", + "dayjs": "^1.11.13", + "dompurify": "^3.2.5", + "katex": "^0.16.22", + "khroma": "^2.1.0", + "lodash-es": "^4.17.21", + "marked": "^15.0.7", + "roughjs": "^4.6.6", + "stylis": "^4.3.6", + "ts-dedent": "^2.2.0", + "uuid": "^11.1.0" } }, - "node_modules/rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "bin": { - "rollup": "dist/bin/rollup" + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "node": ">=8.6" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "peer": true - }, - "node_modules/schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, + "license": "MIT", "engines": { - "node": ">= 10.13.0" + "node": ">=8.6" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/seemly": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/seemly/-/seemly-0.3.6.tgz", - "integrity": "sha512-lEV5VB8BUKTo/AfktXJcy+JeXns26ylbMkIUco8CYREsQijuz4mrXres2Q+vMLdwkuLxJdIPQ8IlCIxLYm71Yw==", - "dev": true - }, - "node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, + "license": "ISC", "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=10" + "node": "*" } }, - "node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "peer": true, - "dependencies": { - "randombytes": "^2.1.0" + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", "dev": true, + "license": "MIT" + }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "license": "MIT", "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" } }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" } }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" + "node_modules/mouse-change": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/mouse-change/-/mouse-change-1.4.0.tgz", + "integrity": "sha512-vpN0s+zLL2ykyyUDh+fayu9Xkor5v/zRD9jhSqjRS1cJTGS0+oakVZzNm5n19JvvEj0you+MXlYTpNxUDQUjkQ==", + "license": "MIT", + "dependencies": { + "mouse-event": "^1.0.0" } }, - "node_modules/source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", - "engines": { - "node": ">=0.10.0" - } + "node_modules/mouse-event": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/mouse-event/-/mouse-event-1.0.5.tgz", + "integrity": "sha512-ItUxtL2IkeSKSp9cyaX2JLUuKk2uMoxBg4bbOWVd29+CskYJR9BGsUqtXenNzKbnDshvupjUewDIYVrOB6NmGw==", + "license": "MIT" }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "peer": true, + "node_modules/mouse-event-offset": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mouse-event-offset/-/mouse-event-offset-3.0.2.tgz", + "integrity": "sha512-s9sqOs5B1Ykox3Xo8b3Ss2IQju4UwlW6LSR+Q5FXWpprJ5fzMLefIIItr3PH8RwzfGy6gxs/4GAmiNuZScE25w==", + "license": "MIT" + }, + "node_modules/mouse-wheel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mouse-wheel/-/mouse-wheel-1.2.0.tgz", + "integrity": "sha512-+OfYBiUOCTWcTECES49neZwL5AoGkXE+lFjIvzwNCnYRlso+EnfvovcBxGoyQ0yQt806eSPjS675K0EwWknXmw==", + "license": "MIT", "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "right-now": "^1.0.0", + "signum": "^1.0.0", + "to-px": "^1.0.1" } }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "deprecated": "Please use @jridgewell/sourcemap-codec instead" - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/mrmime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/murmurhash-js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", + "integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==", + "license": "MIT" + }, + "node_modules/naive-ui": { + "version": "2.42.0", + "resolved": "https://registry.npmjs.org/naive-ui/-/naive-ui-2.42.0.tgz", + "integrity": "sha512-c7cXR2YgOjgtBadXHwiWL4Y0tpGLAI5W5QzzHksOi22iuHXoSGMAzdkVTGVPE/PM0MSGQ/JtUIzCx2Y0hU0vTQ==", "dev": true, - "engines": { - "node": ">=8" + "license": "MIT", + "dependencies": { + "@css-render/plugin-bem": "^0.15.14", + "@css-render/vue3-ssr": "^0.15.14", + "@types/katex": "^0.16.2", + "@types/lodash": "^4.14.198", + "@types/lodash-es": "^4.17.9", + "async-validator": "^4.2.5", + "css-render": "^0.15.14", + "csstype": "^3.1.3", + "date-fns": "^3.6.0", + "date-fns-tz": "^3.1.3", + "evtd": "^0.2.4", + "highlight.js": "^11.8.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "seemly": "^0.3.8", + "treemate": "^0.3.11", + "vdirs": "^0.1.8", + "vooks": "^0.2.12", + "vueuc": "^0.4.63" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "vue": "^3.0.0" } }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": ">=8" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "node_modules/napi-postinstall": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.3.tgz", + "integrity": "sha512-uTp172LLXSxuSYHv/kou+f6KW3SMppU9ivthaVTXian9sOt3XM/zHYHpRZiLgQoxeWfYUnslNWQHF1+G71xcow==", "dev": true, + "license": "MIT", + "bin": { + "napi-postinstall": "lib/cli.js" + }, "engines": { - "node": ">= 0.4" + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/napi-postinstall" } }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "peer": true, - "engines": { - "node": ">=6" - } + "node_modules/native-promise-only": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", + "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==", + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" }, - "node_modules/terser": { - "version": "5.16.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.2.tgz", - "integrity": "sha512-JKuM+KvvWVqT7muHVyrwv7FVRPnmHDwF6XwoIxdbF5Witi0vu99RYpxDexpJndXt3jbZZmmWr2/mQa6HvSNdSg==", - "peer": true, + "node_modules/needle": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", + "license": "MIT", "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" }, "bin": { - "terser": "bin/terser" + "needle": "bin/needle" }, "engines": { - "node": ">=10" + "node": ">= 4.4.x" } }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.6", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", - "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", - "peer": true, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.14", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "terser": "^5.14.1" + "ms": "^2.1.1" + } + }, + "node_modules/needle/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" }, "engines": { - "node": ">= 10.13.0" + "node": ">=0.10.0" + } + }, + "node_modules/neostandard": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/neostandard/-/neostandard-0.12.2.tgz", + "integrity": "sha512-VZU8EZpSaNadp3rKEwBhVD1Kw8jE3AftQLkCyOaM7bWemL1LwsYRsBnAmXy2LjG9zO8t66qJdqB7ccwwORyrAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@stylistic/eslint-plugin": "2.11.0", + "eslint-import-resolver-typescript": "^3.10.1", + "eslint-plugin-import-x": "^4.16.1", + "eslint-plugin-n": "^17.20.0", + "eslint-plugin-promise": "^7.2.1", + "eslint-plugin-react": "^7.37.5", + "find-up": "^5.0.0", + "globals": "^15.15.0", + "peowly": "^1.3.2", + "typescript-eslint": "^8.35.1" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "bin": { + "neostandard": "cli.mjs" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { - "webpack": "^5.1.0" + "eslint": "^9.0.0" + } + }, + "node_modules/neostandard/node_modules/globals": { + "version": "15.15.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", + "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "license": "ISC" }, - "node_modules/treemate": { - "version": "0.3.11", - "resolved": "https://registry.npmjs.org/treemate/-/treemate-0.3.11.tgz", - "integrity": "sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==", - "dev": true + "node_modules/node-releases": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.20.tgz", + "integrity": "sha512-7gK6zSXEH6neM212JgfYFXe+GmZQM+fia5SsusuBIUgnPheLFBmIPhtFoAQRj8/7wASYQnbDlHPVwY0BefoFgA==", + "dev": true, + "license": "MIT" }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "node_modules/normalize-svg-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-0.1.0.tgz", + "integrity": "sha512-1/kmYej2iedi5+ROxkRESL/pI02pkg0OBnaR4hJkSIX6+ORzepwbuUXfrdZaPjysTsJInj0Rj5NuX027+dMBvA==", + "license": "MIT" + }, + "node_modules/npm-run-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", "dev": true, + "license": "MIT", "dependencies": { - "prelude-ls": "^1.2.1" + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" }, "engines": { - "node": ">= 0.8.0" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "peer": true, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" + "boolbase": "^1.0.0" }, - "peerDependencies": { - "browserslist": ">= 4.21.0" + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "node_modules/number-is-integer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-integer/-/number-is-integer-1.0.1.tgz", + "integrity": "sha512-Dq3iuiFBkrbmuQjGFFF3zckXNCQoSD37/SdSbgcBailUx6knDvDwb5CympBgcoWHy36sfS12u74MHYkXyHq6bg==", + "license": "MIT", "dependencies": { - "punycode": "^2.1.0" + "is-finite": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/vdirs": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/vdirs/-/vdirs-0.1.8.tgz", - "integrity": "sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==", + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, - "dependencies": { - "evtd": "^0.2.2" + "license": "MIT", + "engines": { + "node": ">= 0.4" }, - "peerDependencies": { - "vue": "^3.0.11" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/vite": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.7.tgz", - "integrity": "sha512-29pdXjk49xAP0QBr0xXqu2s5jiQIXNvE/xwd0vUizYT2Hzqe4BksNNoWllFVXJf4eLZ+UlVQmXfB4lWrc+t18g==", + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "dependencies": { - "esbuild": "^0.15.9", - "postcss": "^8.4.18", - "resolve": "^1.22.1", - "rollup": "^2.79.1" - }, - "bin": { - "vite": "bin/vite.js" - }, + "license": "MIT", "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } + "node": ">= 0.4" } }, - "node_modules/vooks": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/vooks/-/vooks-0.2.12.tgz", - "integrity": "sha512-iox0I3RZzxtKlcgYaStQYKEzWWGAduMmq+jS7OrNdQo1FgGfPMubGL3uGHOU9n97NIvfFDBGnpSvkWyb/NSn/Q==", + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, + "license": "MIT", "dependencies": { - "evtd": "^0.2.2" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" }, - "peerDependencies": { - "vue": "^3.0.0" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/vue": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.47.tgz", - "integrity": "sha512-60188y/9Dc9WVrAZeUVSDxRQOZ+z+y5nO2ts9jWXSTkMvayiWxCWOWtBQoYjLeccfXkiiPZWAHcV+WTPhkqJHQ==", + "node_modules/object.entries": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, + "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.2.47", - "@vue/compiler-sfc": "3.2.47", - "@vue/runtime-dom": "3.2.47", - "@vue/server-renderer": "3.2.47", - "@vue/shared": "3.2.47" - } - }, - "node_modules/vue-chartjs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.2.0.tgz", - "integrity": "sha512-d3zpKmGZr2OWHQ1xmxBcAn5ShTG917+/UCLaSpaCDDqT0U7DBsvFzTs69ZnHCgKoXT55GZDW8YEj9Av+dlONLA==", - "peerDependencies": { - "chart.js": "^4.1.1", - "vue": "^3.0.0-0 || ^2.7.0" + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/vue-eslint-parser": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.1.0.tgz", - "integrity": "sha512-NGn/iQy8/Wb7RrRa4aRkokyCZfOUWk19OP5HP6JEozQFX5AoS/t+Z0ZN7FY4LlmWc4FNI922V7cvX28zctN8dQ==", + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", "dev": true, + "license": "MIT", "dependencies": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": "^14.17.0 || >=16.0.0" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=6.0.0" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/vueuc": { - "version": "0.4.51", - "resolved": "https://registry.npmjs.org/vueuc/-/vueuc-0.4.51.tgz", - "integrity": "sha512-pLiMChM4f+W8czlIClGvGBYo656lc2Y0/mXFSCydcSmnCR1izlKPGMgiYBGjbY9FDkFG8a2HEVz7t0DNzBWbDw==", + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", "dev": true, + "license": "MIT", "dependencies": { - "@css-render/vue3-ssr": "^0.15.10", - "@juggle/resize-observer": "^3.3.1", - "css-render": "^0.15.10", - "evtd": "^0.2.4", - "seemly": "^0.3.6", - "vdirs": "^0.1.4", - "vooks": "^0.2.4" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" }, - "peerDependencies": { - "vue": "^3.0.11" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "peer": true, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" + "wrappy": "1" } }, - "node_modules/webpack": { - "version": "5.76.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", - "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", - "peer": true, + "node_modules/open": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", + "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", + "dev": true, + "license": "MIT", "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.10.0", - "es-module-lexer": "^0.9.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" + "default-browser": "^5.2.1", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "wsl-utils": "^0.1.0" }, "engines": { - "node": ">=10.13.0" + "node": ">=18" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "peer": true, - "engines": { - "node": ">=10.13.0" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/webpack/node_modules/@types/estree": { - "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", - "peer": true - }, - "node_modules/webpack/node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "peer": true, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { - "node": ">=8.0.0" + "node": ">= 0.8.0" } }, - "node_modules/webpack/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "peer": true, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, "engines": { - "node": ">=4.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">= 8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "node_modules/package-manager-detector": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.3.0.tgz", + "integrity": "sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==", + "license": "MIT" }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, "engines": { - "node": ">=12" + "node": ">=6" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "node_modules/parenthesis": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/parenthesis/-/parenthesis-3.1.8.tgz", + "integrity": "sha512-KF/U8tk54BgQewkJPvB4s/US3VQY68BRDpH638+7O/n58TpnwiwnOtGIOsT2/i+M78s61BBpeC83STB88d8sqw==", + "license": "MIT" }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "node_modules/parse-ms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz", + "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } - } - }, - "dependencies": { - "@babel/parser": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.13.tgz", - "integrity": "sha512-gFDLKMfpiXCsjt4za2JA9oTMn70CeseCehb11kRZgvd7+F67Hih3OHOK24cRrWECJ/ljfPGac6ygXAs/C8kIvw==" - }, - "@css-render/plugin-bem": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/@css-render/plugin-bem/-/plugin-bem-0.15.12.tgz", - "integrity": "sha512-Lq2jSOZn+wYQtsyaFj6QRz2EzAnd3iW5fZeHO1WSXQdVYwvwGX0ZiH3X2JQgtgYLT1yeGtrwrqJdNdMEUD2xTw==", - "dev": true, - "requires": {} - }, - "@css-render/vue3-ssr": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/@css-render/vue3-ssr/-/vue3-ssr-0.15.12.tgz", - "integrity": "sha512-AQLGhhaE0F+rwybRCkKUdzBdTEM/5PZBYy+fSYe1T9z9+yxMuV/k7ZRqa4M69X+EI1W8pa4kc9Iq2VjQkZx4rg==", - "dev": true, - "requires": {} - }, - "@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "dev": true }, - "@esbuild/android-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.18.tgz", - "integrity": "sha512-5GT+kcs2WVGjVs7+boataCkO5Fg0y4kCjzkB5bAip7H4jfnOS3dA6KPiww9W1OEKTKeAcUVhdZGvgI65OXmUnw==", - "dev": true, - "optional": true - }, - "@esbuild/linux-loong64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.18.tgz", - "integrity": "sha512-L4jVKS82XVhw2nvzLg/19ClLWg0y27ulRwuP7lcyL6AbUWB5aPglXY3M21mauDQMDfRLs8cQmeT03r/+X3cZYQ==", - "dev": true, - "optional": true - }, - "@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "node_modules/parse-rect": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/parse-rect/-/parse-rect-1.2.0.tgz", + "integrity": "sha512-4QZ6KYbnE6RTwg9E0HpLchUM9EZt6DnDxajFZZDSV4p/12ZJEvPO702DZpGvRYEPo00yKDys7jASi+/w7aO8LA==", + "license": "MIT", + "dependencies": { + "pick-by-alias": "^1.2.0" } }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } + "node_modules/parse-svg-path": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/parse-svg-path/-/parse-svg-path-0.1.2.tgz", + "integrity": "sha512-JyPSBnkTJ0AI8GGJLfMXvKq42cj5c006fnLz6fXy6zfoVjJizi8BNTpu8on8ziI1cKy9d9DGNuY17Ce7wuejpQ==", + "license": "MIT" }, - "@humanwhocodes/module-importer": { + "node_modules/parse-unit": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "peer": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "peer": true - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "peer": true - }, - "@jridgewell/source-map": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", - "peer": true, - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } + "resolved": "https://registry.npmjs.org/parse-unit/-/parse-unit-1.0.1.tgz", + "integrity": "sha512-hrqldJHokR3Qj88EIlV/kAyAi/G5R2+R56TBANxNMy0uPlYcttx0jnMW6Yx5KsKPSbC3KddM/7qQm3+0wEXKxg==", + "license": "MIT" }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "peer": true + "node_modules/path-data-parser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", + "integrity": "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w==", + "license": "MIT" }, - "@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "peer": true, - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" } }, - "@juggle/resize-observer": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", - "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", - "dev": true - }, - "@kurkle/color": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz", - "integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==" - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "license": "MIT", + "engines": { + "node": ">=8" } }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" }, - "@rushstack/eslint-patch": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz", - "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==", - "dev": true - }, - "@types/eslint": { - "version": "8.4.10", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz", - "integrity": "sha512-Sl/HOqN8NKPmhWo2VBEPm0nvHnu2LL3v9vKo8MEq0EtbJ4eVzGPl41VNPvn5E1i5poMk4/XD8UriLHpJvEP/Nw==", - "peer": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" + "node_modules/pbf": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/pbf/-/pbf-3.3.0.tgz", + "integrity": "sha512-XDF38WCH3z5OV/OVa8GKUNtLAyneuzbCisx7QUCF8Q6Nutx0WnJrQe5O+kOtBlLfRNUws98Y58Lblp+NJG5T4Q==", + "license": "BSD-3-Clause", + "dependencies": { + "ieee754": "^1.1.12", + "resolve-protobuf-schema": "^2.1.0" + }, + "bin": { + "pbf": "bin/pbf" } }, - "@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "peer": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" + "node_modules/peowly": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/peowly/-/peowly-1.3.2.tgz", + "integrity": "sha512-BYIrwr8JCXY49jUZscgw311w9oGEKo7ux/s+BxrhKTQbiQ0iYNdZNJ5LgagaeercQdFHwnR7Z5IxxFWVQ+BasQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.6.0" } }, - "@types/estree": { + "node_modules/perfect-debounce": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz", - "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==", - "peer": true - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "@types/katex": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.14.0.tgz", - "integrity": "sha512-+2FW2CcT0K3P+JMR8YG846bmDwplKUTsWgT2ENwdQ1UdVfRk3GQrh6Mi4sTopy30gI8Uau5CEqHTDZ6YvWIUPA==", - "dev": true - }, - "@types/lodash": { - "version": "4.14.191", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", - "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==", - "dev": true - }, - "@types/lodash-es": { - "version": "4.17.6", - "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.6.tgz", - "integrity": "sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==", - "dev": true, - "requires": { - "@types/lodash": "*" - } + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "dev": true, + "license": "MIT" }, - "@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", - "peer": true + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "license": "MIT" }, - "@vitejs/plugin-vue": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-3.2.0.tgz", - "integrity": "sha512-E0tnaL4fr+qkdCNxJ+Xd0yM31UwMkQje76fsDVBBUCoGOUPexu2VDUYHL8P4CwV+zMvWw6nlRw19OnRKmYAJpw==", - "dev": true, - "requires": {} - }, - "@vue/compiler-core": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.47.tgz", - "integrity": "sha512-p4D7FDnQb7+YJmO2iPEv0SQNeNzcbHdGByJDsT4lynf63AFkOTFN07HsiRSvjGo0QrxR/o3d0hUyNCUnBU2Tig==", - "requires": { - "@babel/parser": "^7.16.4", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "source-map": "^0.6.1" - } - }, - "@vue/compiler-dom": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.47.tgz", - "integrity": "sha512-dBBnEHEPoftUiS03a4ggEig74J2YBZ2UIeyfpcRM2tavgMWo4bsEfgCGsu+uJIL/vax9S+JztH8NmQerUo7shQ==", - "requires": { - "@vue/compiler-core": "3.2.47", - "@vue/shared": "3.2.47" - } - }, - "@vue/compiler-sfc": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.47.tgz", - "integrity": "sha512-rog05W+2IFfxjMcFw10tM9+f7i/+FFpZJJ5XHX72NP9eC2uRD+42M3pYcQqDXVYoj74kHMSEdQ/WmCjt8JFksQ==", - "requires": { - "@babel/parser": "^7.16.4", - "@vue/compiler-core": "3.2.47", - "@vue/compiler-dom": "3.2.47", - "@vue/compiler-ssr": "3.2.47", - "@vue/reactivity-transform": "3.2.47", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "magic-string": "^0.25.7", - "postcss": "^8.1.10", - "source-map": "^0.6.1" - } + "node_modules/pick-by-alias": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pick-by-alias/-/pick-by-alias-1.2.0.tgz", + "integrity": "sha512-ESj2+eBxhGrcA1azgHs7lARG5+5iLakc/6nlfbpjcLl00HuuUOIuORhYXN4D1HfvMSKuVtFQjAlnwi1JHEeDIw==", + "license": "MIT" }, - "@vue/compiler-ssr": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.47.tgz", - "integrity": "sha512-wVXC+gszhulcMD8wpxMsqSOpvDZ6xKXSVWkf50Guf/S+28hTAXPDYRTbLQ3EDkOP5Xz/+SY37YiwDquKbJOgZw==", - "requires": { - "@vue/compiler-dom": "3.2.47", - "@vue/shared": "3.2.47" - } + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, - "@vue/eslint-config-prettier": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-7.0.0.tgz", - "integrity": "sha512-/CTc6ML3Wta1tCe1gUeO0EYnVXfo3nJXsIhZ8WJr3sov+cGASr6yuiibJTL6lmIBm7GobopToOuB3B6AWyV0Iw==", - "dev": true, - "requires": { - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0" - } - }, - "@vue/reactivity": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.2.47.tgz", - "integrity": "sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==", - "requires": { - "@vue/shared": "3.2.47" - } - }, - "@vue/reactivity-transform": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.47.tgz", - "integrity": "sha512-m8lGXw8rdnPVVIdIFhf0LeQ/ixyHkH5plYuS83yop5n7ggVJU+z5v0zecwEnX7fa7HNLBhh2qngJJkxpwEEmYA==", - "requires": { - "@babel/parser": "^7.16.4", - "@vue/compiler-core": "3.2.47", - "@vue/shared": "3.2.47", - "estree-walker": "^2.0.2", - "magic-string": "^0.25.7" + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "@vue/runtime-core": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.47.tgz", - "integrity": "sha512-RZxbLQIRB/K0ev0K9FXhNbBzT32H9iRtYbaXb0ZIz2usLms/D55dJR2t6cIEUn6vyhS3ALNvNthI+Q95C+NOpA==", - "requires": { - "@vue/reactivity": "3.2.47", - "@vue/shared": "3.2.47" + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" } }, - "@vue/runtime-dom": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.2.47.tgz", - "integrity": "sha512-ArXrFTjS6TsDei4qwNvgrdmHtD930KgSKGhS5M+j8QxXrDJYLqYw4RRcDy1bz1m1wMmb6j+zGLifdVHtkXA7gA==", - "requires": { - "@vue/runtime-core": "3.2.47", - "@vue/shared": "3.2.47", - "csstype": "^2.6.8" - }, + "node_modules/plotly.js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plotly.js/-/plotly.js-3.1.0.tgz", + "integrity": "sha512-vx+CyzApL9tquFpwoPHOGSIWDbFPsA4om/tXZcnsygGUejXideDF9R5VwkltEIDG7Xuof45quVPyz1otv6Aqjw==", + "license": "MIT", "dependencies": { - "csstype": { - "version": "2.6.21", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz", - "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==" - } - } + "@plotly/d3": "3.8.2", + "@plotly/d3-sankey": "0.7.2", + "@plotly/d3-sankey-circular": "0.33.1", + "@plotly/mapbox-gl": "1.13.4", + "@plotly/regl": "^2.1.2", + "@turf/area": "^7.1.0", + "@turf/bbox": "^7.1.0", + "@turf/centroid": "^7.1.0", + "base64-arraybuffer": "^1.0.2", + "canvas-fit": "^1.5.0", + "color-alpha": "1.0.4", + "color-normalize": "1.5.0", + "color-parse": "2.0.0", + "color-rgba": "3.0.0", + "country-regex": "^1.1.0", + "d3-force": "^1.2.1", + "d3-format": "^1.4.5", + "d3-geo": "^1.12.1", + "d3-geo-projection": "^2.9.0", + "d3-hierarchy": "^1.1.9", + "d3-interpolate": "^3.0.1", + "d3-time": "^1.1.0", + "d3-time-format": "^2.2.3", + "fast-isnumeric": "^1.1.4", + "gl-mat4": "^1.2.0", + "gl-text": "^1.4.0", + "has-hover": "^1.0.1", + "has-passive-events": "^1.0.0", + "is-mobile": "^4.0.0", + "maplibre-gl": "^4.7.1", + "mouse-change": "^1.4.0", + "mouse-event-offset": "^3.0.2", + "mouse-wheel": "^1.2.0", + "native-promise-only": "^0.8.1", + "parse-svg-path": "^0.1.2", + "point-in-polygon": "^1.1.0", + "polybooljs": "^1.2.2", + "probe-image-size": "^7.2.3", + "regl-error2d": "^2.0.12", + "regl-line2d": "^3.1.3", + "regl-scatter2d": "^3.3.1", + "regl-splom": "^1.0.14", + "strongly-connected-components": "^1.0.1", + "superscript-text": "^1.0.0", + "svg-path-sdf": "^1.1.3", + "tinycolor2": "^1.4.2", + "to-px": "1.0.1", + "topojson-client": "^3.1.0", + "webgl-context": "^2.2.0", + "world-calendars": "^1.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/plotly.js-dist-min": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plotly.js-dist-min/-/plotly.js-dist-min-3.1.0.tgz", + "integrity": "sha512-aihvA/+SnwEQxSufaPn8AWDUzdHFAbsCk2+w/IJResDafK3E2tvCvzW+ZV6JlMciJc7hQ3kCILS5Ao22OZ6kWA==", + "license": "MIT" }, - "@vue/server-renderer": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.2.47.tgz", - "integrity": "sha512-dN9gc1i8EvmP9RCzvneONXsKfBRgqFeFZLurmHOveL7oH6HiFXJw5OGu294n1nHc/HMgTy6LulU/tv5/A7f/LA==", - "requires": { - "@vue/compiler-ssr": "3.2.47", - "@vue/shared": "3.2.47" - } + "node_modules/plotly.js/node_modules/d3-array": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-1.2.4.tgz", + "integrity": "sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==", + "license": "BSD-3-Clause" }, - "@vue/shared": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.2.47.tgz", - "integrity": "sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==" + "node_modules/plotly.js/node_modules/d3-dispatch": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-1.0.6.tgz", + "integrity": "sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==", + "license": "BSD-3-Clause" }, - "@webassemblyjs/ast": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", - "peer": true, - "requires": { - "@webassemblyjs/helper-numbers": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + "node_modules/plotly.js/node_modules/d3-force": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-1.2.1.tgz", + "integrity": "sha512-HHvehyaiUlVo5CxBJ0yF/xny4xoaxFxDnBXNvNcfW9adORGZfyNF1dj6DGLKyk4Yh3brP/1h3rnDzdIAwL08zg==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-collection": "1", + "d3-dispatch": "1", + "d3-quadtree": "1", + "d3-timer": "1" + } + }, + "node_modules/plotly.js/node_modules/d3-format": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.5.tgz", + "integrity": "sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==", + "license": "BSD-3-Clause" + }, + "node_modules/plotly.js/node_modules/d3-geo": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-1.12.1.tgz", + "integrity": "sha512-XG4d1c/UJSEX9NfU02KwBL6BYPj8YKHxgBEw5om2ZnTRSbIcego6dhHwcxuSR3clxh0EpE38os1DVPOmnYtTPg==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1" } }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", - "peer": true + "node_modules/plotly.js/node_modules/d3-hierarchy": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz", + "integrity": "sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==", + "license": "BSD-3-Clause" }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", - "peer": true + "node_modules/plotly.js/node_modules/d3-quadtree": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-1.0.7.tgz", + "integrity": "sha512-RKPAeXnkC59IDGD0Wu5mANy0Q2V28L+fNe65pOCXVdVuTJS3WPKaJlFHer32Rbh9gIo9qMuJXio8ra4+YmIymA==", + "license": "BSD-3-Clause" }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", - "peer": true + "node_modules/plotly.js/node_modules/d3-time": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz", + "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==", + "license": "BSD-3-Clause" }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", - "peer": true, - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@xtuc/long": "4.2.2" + "node_modules/plotly.js/node_modules/d3-time-format": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-2.3.0.tgz", + "integrity": "sha512-guv6b2H37s2Uq/GefleCDtbe0XZAuy7Wa49VGkPVPMfLL9qObgBST3lEHJBMUp8S7NdLQAGIvr2KXk8Hc98iKQ==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-time": "1" } }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", - "peer": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1" - } + "node_modules/plotly.js/node_modules/d3-timer": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-1.0.10.tgz", + "integrity": "sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==", + "license": "BSD-3-Clause" }, - "@webassemblyjs/ieee754": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", - "peer": true, - "requires": { - "@xtuc/ieee754": "^1.2.0" - } + "node_modules/point-in-polygon": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/point-in-polygon/-/point-in-polygon-1.1.0.tgz", + "integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw==", + "license": "MIT" }, - "@webassemblyjs/leb128": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", - "peer": true, - "requires": { - "@xtuc/long": "4.2.2" + "node_modules/points-on-curve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", + "integrity": "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==", + "license": "MIT" + }, + "node_modules/points-on-path": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/points-on-path/-/points-on-path-0.2.1.tgz", + "integrity": "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g==", + "license": "MIT", + "dependencies": { + "path-data-parser": "0.1.0", + "points-on-curve": "0.2.0" } }, - "@webassemblyjs/utf8": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", - "peer": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/helper-wasm-section": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-opt": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "@webassemblyjs/wast-printer": "1.11.1" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" - } + "node_modules/polybooljs": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/polybooljs/-/polybooljs-1.2.2.tgz", + "integrity": "sha512-ziHW/02J0XuNuUtmidBc6GXE8YohYydp3DWPWXYsd7O721TjcmN+k6ezjdwkDqep+gnWnFY+yqZHvzElra2oCg==", + "license": "MIT" }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-buffer": "1.11.1", - "@webassemblyjs/wasm-gen": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1" + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" } }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/helper-api-error": "1.11.1", - "@webassemblyjs/helper-wasm-bytecode": "1.11.1", - "@webassemblyjs/ieee754": "1.11.1", - "@webassemblyjs/leb128": "1.11.1", - "@webassemblyjs/utf8": "1.11.1" + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" } }, - "@webassemblyjs/wast-printer": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", - "peer": true, - "requires": { - "@webassemblyjs/ast": "1.11.1", - "@xtuc/long": "4.2.2" + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" } }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "peer": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "peer": true - }, - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==" - }, - "acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "peer": true, - "requires": {} + "node_modules/potpack": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz", + "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==", + "license": "ISC" }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "requires": {} + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "node_modules/pretty-ms": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.2.0.tgz", + "integrity": "sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==", + "dev": true, + "license": "MIT", + "dependencies": { + "parse-ms": "^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "requires": {} + "node_modules/probe-image-size": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.2.3.tgz", + "integrity": "sha512-HubhG4Rb2UH8YtV4ba0Vp5bQ7L78RTONYu/ujmCu5nBI8wGv24s4E9xSKBi0N1MowRpxk76pFCpJtW0KPzOK0w==", + "license": "MIT", + "dependencies": { + "lodash.merge": "^4.6.2", + "needle": "^2.5.2", + "stream-parser": "~0.3.1" + } }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "license": "MIT" }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dev": true, - "requires": { - "color-convert": "^2.0.1" + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" } }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "node_modules/protocol-buffers-schema": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", + "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==", + "license": "MIT" }, - "async-validator": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", - "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", - "dev": true + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true + "node_modules/quickselect": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz", + "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==", + "license": "ISC" + }, + "node_modules/raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "license": "MIT", + "dependencies": { + "performance-now": "^2.1.0" + } }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } + "license": "MIT" }, - "browserslist": { - "version": "4.21.5", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz", - "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==", - "peer": true, - "requires": { - "caniuse-lite": "^1.0.30001449", - "electron-to-chromium": "^1.4.284", - "node-releases": "^2.0.8", - "update-browserslist-db": "^1.0.10" + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "peer": true - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true + "node_modules/readable-stream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "license": "MIT" }, - "caniuse-lite": { - "version": "1.0.30001450", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001450.tgz", - "integrity": "sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==", - "peer": true + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "chart.js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.2.0.tgz", - "integrity": "sha512-wbtcV+QKeH0F7gQZaCJEIpsNriFheacouJQTVIjITi3eQA8bTlIBoknz0+dgV79aeKLNMAX+nDslIVE/nJ3rzA==", - "requires": { - "@kurkle/color": "^0.3.0" + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "peer": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" + "node_modules/regl": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/regl/-/regl-2.1.1.tgz", + "integrity": "sha512-+IOGrxl3FZ8ZM9ixCWQZzFRiRn7Rzn9bu3iFHwg/yz4tlOUQgbO4PHLgG+1ZT60zcIV8tief6Qrmyl8qcoJP0g==", + "license": "MIT" + }, + "node_modules/regl-error2d": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/regl-error2d/-/regl-error2d-2.0.12.tgz", + "integrity": "sha512-r7BUprZoPO9AbyqM5qlJesrSRkl+hZnVKWKsVp7YhOl/3RIpi4UDGASGJY0puQ96u5fBYw/OlqV24IGcgJ0McA==", + "license": "MIT", + "dependencies": { + "array-bounds": "^1.0.1", + "color-normalize": "^1.5.0", + "flatten-vertex-data": "^1.0.2", + "object-assign": "^4.1.1", + "pick-by-alias": "^1.2.0", + "to-float32": "^1.1.0", + "update-diff": "^1.1.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/regl-line2d": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/regl-line2d/-/regl-line2d-3.1.3.tgz", + "integrity": "sha512-fkgzW+tTn4QUQLpFKsUIE0sgWdCmXAM3ctXcCgoGBZTSX5FE2A0M7aynz7nrZT5baaftLrk9te54B+MEq4QcSA==", + "license": "MIT", + "dependencies": { + "array-bounds": "^1.0.1", + "array-find-index": "^1.0.2", + "array-normalize": "^1.1.4", + "color-normalize": "^1.5.0", + "earcut": "^2.1.5", + "es6-weak-map": "^2.0.3", + "flatten-vertex-data": "^1.0.2", + "object-assign": "^4.1.1", + "parse-rect": "^1.2.0", + "pick-by-alias": "^1.2.0", + "to-float32": "^1.1.0" + } + }, + "node_modules/regl-scatter2d": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/regl-scatter2d/-/regl-scatter2d-3.3.1.tgz", + "integrity": "sha512-seOmMIVwaCwemSYz/y4WE0dbSO9svNFSqtTh5RE57I7PjGo3tcUYKtH0MTSoshcAsreoqN8HoCtnn8wfHXXfKQ==", + "license": "MIT", + "dependencies": { + "@plotly/point-cluster": "^3.1.9", + "array-range": "^1.0.1", + "array-rearrange": "^2.2.2", + "clamp": "^1.0.1", + "color-id": "^1.1.0", + "color-normalize": "^1.5.0", + "color-rgba": "^2.1.1", + "flatten-vertex-data": "^1.0.2", + "glslify": "^7.0.0", + "is-iexplorer": "^1.0.0", + "object-assign": "^4.1.1", + "parse-rect": "^1.2.0", + "pick-by-alias": "^1.2.0", + "to-float32": "^1.1.0", + "update-diff": "^1.1.0" + } + }, + "node_modules/regl-scatter2d/node_modules/color-parse": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/color-parse/-/color-parse-1.4.3.tgz", + "integrity": "sha512-BADfVl/FHkQkyo8sRBwMYBqemqsgnu7JZAwUgvBvuwwuNUZAhSvLTbsEErS5bQXzOjDR0dWzJ4vXN2Q+QoPx0A==", + "license": "MIT", + "dependencies": { + "color-name": "^1.0.0" + } }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "peer": true + "node_modules/regl-scatter2d/node_modules/color-rgba": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/color-rgba/-/color-rgba-2.4.0.tgz", + "integrity": "sha512-Nti4qbzr/z2LbUWySr7H9dk3Rl7gZt7ihHAxlgT4Ho90EXWkjtkL1avTleu9yeGuqrt/chxTB6GKK8nZZ6V0+Q==", + "license": "MIT", + "dependencies": { + "color-parse": "^1.4.2", + "color-space": "^2.0.0" + } }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "node_modules/regl-splom": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/regl-splom/-/regl-splom-1.0.14.tgz", + "integrity": "sha512-OiLqjmPRYbd7kDlHC6/zDf6L8lxgDC65BhC8JirhP4ykrK4x22ZyS+BnY8EUinXKDeMgmpRwCvUmk7BK4Nweuw==", + "license": "MIT", + "dependencies": { + "array-bounds": "^1.0.1", + "array-range": "^1.0.1", + "color-alpha": "^1.0.4", + "flatten-vertex-data": "^1.0.2", + "parse-rect": "^1.2.0", + "pick-by-alias": "^1.2.0", + "raf": "^3.4.1", + "regl-scatter2d": "^3.2.3" + } }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/resolve": { + "version": "2.0.0-next.5", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz", + "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==", "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "css-render": { - "version": "0.15.12", - "resolved": "https://registry.npmjs.org/css-render/-/css-render-0.15.12.tgz", - "integrity": "sha512-eWzS66patiGkTTik+ipO9qNGZ+uNuGyTmnz6/+EJIiFg8+3yZRpnMwgFo8YdXhQRsiePzehnusrxVvugNjXzbw==", + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, - "requires": { - "@emotion/hash": "~0.8.0", - "csstype": "~3.0.5" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } }, - "csstype": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.11.tgz", - "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", - "dev": true + "node_modules/resolve-protobuf-schema": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", + "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", + "license": "MIT", + "dependencies": { + "protocol-buffers-schema": "^3.3.1" + } }, - "date-fns": { - "version": "2.29.3", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", - "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", - "dev": true + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "date-fns-tz": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-1.3.8.tgz", - "integrity": "sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==", + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true, - "requires": {} + "license": "MIT" + }, + "node_modules/right-now": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/right-now/-/right-now-1.0.0.tgz", + "integrity": "sha512-DA8+YS+sMIVpbsuKgy+Z67L9Lxb1p05mNxRpDPNksPDEFir4vmBlUtuN9jkTGn9YMMdlBuK7XQgFiz6ws+yhSg==", + "license": "MIT" }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/robust-predicates": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", + "integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==", + "license": "Unlicense" + }, + "node_modules/rollup": { + "version": "4.50.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.1.tgz", + "integrity": "sha512-78E9voJHwnXQMiQdiqswVLZwJIzdBKJ1GdI5Zx6XwoFKUIk09/sSrr+05QFzvYb8q6Y9pPV45zzDuYa3907TZA==", "dev": true, - "requires": { - "ms": "2.1.2" + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.50.1", + "@rollup/rollup-android-arm64": "4.50.1", + "@rollup/rollup-darwin-arm64": "4.50.1", + "@rollup/rollup-darwin-x64": "4.50.1", + "@rollup/rollup-freebsd-arm64": "4.50.1", + "@rollup/rollup-freebsd-x64": "4.50.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.50.1", + "@rollup/rollup-linux-arm-musleabihf": "4.50.1", + "@rollup/rollup-linux-arm64-gnu": "4.50.1", + "@rollup/rollup-linux-arm64-musl": "4.50.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.50.1", + "@rollup/rollup-linux-ppc64-gnu": "4.50.1", + "@rollup/rollup-linux-riscv64-gnu": "4.50.1", + "@rollup/rollup-linux-riscv64-musl": "4.50.1", + "@rollup/rollup-linux-s390x-gnu": "4.50.1", + "@rollup/rollup-linux-x64-gnu": "4.50.1", + "@rollup/rollup-linux-x64-musl": "4.50.1", + "@rollup/rollup-openharmony-arm64": "4.50.1", + "@rollup/rollup-win32-arm64-msvc": "4.50.1", + "@rollup/rollup-win32-ia32-msvc": "4.50.1", + "@rollup/rollup-win32-x64-msvc": "4.50.1", + "fsevents": "~2.3.2" } }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "node_modules/roughjs": { + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/roughjs/-/roughjs-4.6.6.tgz", + "integrity": "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==", + "license": "MIT", + "dependencies": { + "hachure-fill": "^0.5.2", + "path-data-parser": "^0.1.0", + "points-on-curve": "^0.2.0", + "points-on-path": "^0.2.1" + } }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", "dev": true, - "requires": { - "esutils": "^2.0.2" + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", - "peer": true + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" + "node_modules/rw": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", + "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", + "license": "BSD-3-Clause" }, - "enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", - "peer": true, - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "es-module-lexer": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", - "peer": true - }, - "esbuild": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.15.18.tgz", - "integrity": "sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q==", - "dev": true, - "requires": { - "@esbuild/android-arm": "0.15.18", - "@esbuild/linux-loong64": "0.15.18", - "esbuild-android-64": "0.15.18", - "esbuild-android-arm64": "0.15.18", - "esbuild-darwin-64": "0.15.18", - "esbuild-darwin-arm64": "0.15.18", - "esbuild-freebsd-64": "0.15.18", - "esbuild-freebsd-arm64": "0.15.18", - "esbuild-linux-32": "0.15.18", - "esbuild-linux-64": "0.15.18", - "esbuild-linux-arm": "0.15.18", - "esbuild-linux-arm64": "0.15.18", - "esbuild-linux-mips64le": "0.15.18", - "esbuild-linux-ppc64le": "0.15.18", - "esbuild-linux-riscv64": "0.15.18", - "esbuild-linux-s390x": "0.15.18", - "esbuild-netbsd-64": "0.15.18", - "esbuild-openbsd-64": "0.15.18", - "esbuild-sunos-64": "0.15.18", - "esbuild-windows-32": "0.15.18", - "esbuild-windows-64": "0.15.18", - "esbuild-windows-arm64": "0.15.18" - } - }, - "esbuild-android-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.15.18.tgz", - "integrity": "sha512-wnpt3OXRhcjfIDSZu9bnzT4/TNTDsOUvip0foZOUBG7QbSt//w3QV4FInVJxNhKc/ErhUxc5z4QjHtMi7/TbgA==", - "dev": true, - "optional": true + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, - "esbuild-android-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.15.18.tgz", - "integrity": "sha512-G4xu89B8FCzav9XU8EjsXacCKSG2FT7wW9J6hOc18soEHJdtWu03L3TQDGf0geNxfLTtxENKBzMSq9LlbjS8OQ==", + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-darwin-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.15.18.tgz", - "integrity": "sha512-2WAvs95uPnVJPuYKP0Eqx+Dl/jaYseZEUUT1sjg97TJa4oBtbAKnPnl3b5M9l51/nbx7+QAEtuummJZW0sBEmg==", + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-darwin-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.15.18.tgz", - "integrity": "sha512-tKPSxcTJ5OmNb1btVikATJ8NftlyNlc8BVNtyT/UAr62JFOhwHlnoPrhYWz09akBLHI9nElFVfWSTSRsrZiDUA==", - "dev": true, - "optional": true + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" }, - "esbuild-freebsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.15.18.tgz", - "integrity": "sha512-TT3uBUxkteAjR1QbsmvSsjpKjOX6UkCstr8nMr+q7zi3NuZ1oIpa8U41Y8I8dJH2fJgdC3Dj3CXO5biLQpfdZA==", - "dev": true, - "optional": true + "node_modules/sax": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==", + "license": "ISC" }, - "esbuild-freebsd-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.15.18.tgz", - "integrity": "sha512-R/oVr+X3Tkh+S0+tL41wRMbdWtpWB8hEAMsOXDumSSa6qJR89U0S/PpLXrGF7Wk/JykfpWNokERUpCeHDl47wA==", + "node_modules/seemly": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/seemly/-/seemly-0.3.10.tgz", + "integrity": "sha512-2+SMxtG1PcsL0uyhkumlOU6Qo9TAQ/WyH7tthnPIOQB05/12jz9naq6GZ6iZ6ApVsO3rr2gsnTf3++OV63kE1Q==", "dev": true, - "optional": true + "license": "MIT" }, - "esbuild-linux-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.15.18.tgz", - "integrity": "sha512-lphF3HiCSYtaa9p1DtXndiQEeQDKPl9eN/XNoBf2amEghugNuqXNZA/ZovthNE2aa4EN43WroO0B85xVSjYkbg==", + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", "dev": true, - "optional": true + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } }, - "esbuild-linux-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.15.18.tgz", - "integrity": "sha512-hNSeP97IviD7oxLKFuii5sDPJ+QHeiFTFLoLm7NZQligur8poNOWGIgpQ7Qf8Balb69hptMZzyOBIPtY09GZYw==", + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } }, - "esbuild-linux-arm": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.15.18.tgz", - "integrity": "sha512-UH779gstRblS4aoS2qpMl3wjg7U0j+ygu3GjIeTonCcN79ZvpPee12Qun3vcdxX+37O5LFxz39XeW2I9bybMVA==", + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } }, - "esbuild-linux-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.15.18.tgz", - "integrity": "sha512-54qr8kg/6ilcxd+0V3h9rjT4qmjc0CccMVWrjOEM/pEcUzt8X62HfBSeZfT2ECpM7104mk4yfQXkosY8Quptug==", + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } }, - "esbuild-linux-mips64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.15.18.tgz", - "integrity": "sha512-Mk6Ppwzzz3YbMl/ZZL2P0q1tnYqh/trYZ1VfNP47C31yT0K8t9s7Z077QrDA/guU60tGNp2GOwCQnp+DYv7bxQ==", - "dev": true, - "optional": true + "node_modules/shallow-copy": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", + "integrity": "sha512-b6i4ZpVuUxB9h5gfCxPiusKYkqTMOjEbBs4wMaFbkfia4yFv92UKZ6Df8WXcKbn08JNL/abvg3FnMAOfakDvUw==", + "license": "MIT" }, - "esbuild-linux-ppc64le": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.15.18.tgz", - "integrity": "sha512-b0XkN4pL9WUulPTa/VKHx2wLCgvIAbgwABGnKMY19WhKZPT+8BxhZdqz6EgkqCLld7X5qiCY2F/bfpUUlnFZ9w==", + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } }, - "esbuild-linux-riscv64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.15.18.tgz", - "integrity": "sha512-ba2COaoF5wL6VLZWn04k+ACZjZ6NYniMSQStodFKH/Pu6RxzQqzsmjR1t9QC89VYJxBeyVPTaHuBMCejl3O/xg==", + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "optional": true + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "esbuild-linux-s390x": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.15.18.tgz", - "integrity": "sha512-VbpGuXEl5FCs1wDVp93O8UIzl3ZrglgnSQ+Hu79g7hZu6te6/YHgVJxCM2SqfIila0J3k0csfnf8VD2W7u2kzQ==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-netbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.15.18.tgz", - "integrity": "sha512-98ukeCdvdX7wr1vUYQzKo4kQ0N2p27H7I11maINv73fVEXt2kyh4K4m9f35U1K43Xc2QGXlzAw0K9yoU7JUjOg==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-openbsd-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.15.18.tgz", - "integrity": "sha512-yK5NCcH31Uae076AyQAXeJzt/vxIo9+omZRKj1pauhk3ITuADzuOx5N2fdHrAKPxN+zH3w96uFKlY7yIn490xQ==", + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-sunos-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.15.18.tgz", - "integrity": "sha512-On22LLFlBeLNj/YF3FT+cXcyKPEI263nflYlAhz5crxtp3yRG1Ugfr7ITyxmCmjm4vbN/dGrb/B7w7U8yJR9yw==", + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "esbuild-windows-32": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.15.18.tgz", - "integrity": "sha512-o+eyLu2MjVny/nt+E0uPnBxYuJHBvho8vWsC2lV61A7wwTWC3jkN2w36jtA+yv1UgYkHRihPuQsL23hsCYGcOQ==", + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "optional": true + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } }, - "esbuild-windows-64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.15.18.tgz", - "integrity": "sha512-qinug1iTTaIIrCorAUjR0fcBk24fjzEedFYhhispP8Oc7SFvs+XeW3YpAKiKp8dRpizl4YYAhxMjlftAMJiaUw==", - "dev": true, - "optional": true + "node_modules/signum": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/signum/-/signum-1.0.0.tgz", + "integrity": "sha512-yodFGwcyt59XRh7w5W3jPcIQb3Bwi21suEfT7MAWnBX3iCdklJpgDgvGT9o04UonglZN5SNMfJFkHIR/jO8GHw==", + "license": "MIT" }, - "esbuild-windows-arm64": { - "version": "0.15.18", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz", - "integrity": "sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ==", + "node_modules/sirv": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz", + "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==", "dev": true, - "optional": true - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "peer": true + "license": "MIT", + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, + "engines": { + "node": ">=18" + } }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "eslint": { - "version": "8.33.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.33.0.tgz", - "integrity": "sha512-WjOpFQgKK8VrCnAtl8We0SUOy/oVZ5NHykyMiagV1M9r8IFpIJX7DduK6n1mpfhlG7T1NLWm2SuD8QB7KFySaA==", - "dev": true, - "requires": { - "@eslint/eslintrc": "^1.4.1", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" } }, - "eslint-config-prettier": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", - "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", + "node_modules/speakingurl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", "dev": true, - "requires": {} + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "node_modules/stable-hash": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", + "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } + "license": "MIT" }, - "eslint-plugin-vue": { - "version": "9.9.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.9.0.tgz", - "integrity": "sha512-YbubS7eK0J7DCf0U2LxvVP7LMfs6rC6UltihIgval3azO3gyDwEGVgsCMe1TmDiEkl6GdMKfRpaME6QxIYtzDQ==", + "node_modules/stable-hash-x": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/stable-hash-x/-/stable-hash-x-0.2.0.tgz", + "integrity": "sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==", "dev": true, - "requires": { - "eslint-utils": "^3.0.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.0.1", - "postcss-selector-parser": "^6.0.9", - "semver": "^7.3.5", - "vue-eslint-parser": "^9.0.1", - "xml-name-validator": "^4.0.0" + "license": "MIT", + "engines": { + "node": ">=12.0.0" } }, - "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "node_modules/stack-trace": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.9.tgz", + "integrity": "sha512-vjUc6sfgtgY0dxCdnc40mK6Oftjo9+2K8H/NG81TMhgL392FtiPA9tn9RLyTxXmTLPJPjF3VyzFp6bsWFLisMQ==", + "engines": { + "node": "*" } }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, + "node_modules/static-eval": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.1.1.tgz", + "integrity": "sha512-MgWpQ/ZjGieSVB3eOJVs4OA2LT/q1vx98KPCTTQPzq/aLr0YUXTsgryTXr4SLfR0ZfUUCiedM9n/ABeDIyy4mA==", + "license": "MIT", "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } + "escodegen": "^2.1.0" } }, - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - }, - "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", "dev": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" } }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" + "node_modules/stream-parser": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", + "integrity": "sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==", + "license": "MIT", + "dependencies": { + "debug": "2" } }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "requires": { - "estraverse": "^5.2.0" + "node_modules/stream-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" } }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" - }, - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "node_modules/stream-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "peer": true + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT" }, - "evtd": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/evtd/-/evtd-0.2.4.tgz", - "integrity": "sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==", - "dev": true + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "license": "MIT" }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true + "node_modules/string-split-by": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string-split-by/-/string-split-by-1.0.0.tgz", + "integrity": "sha512-KaJKY+hfpzNyet/emP81PJA9hTVSfxNLS9SFTWxdCnnW1/zOOwiV248+EfoX7IQFcBaOp4G5YE6xTJMF+pLg6A==", + "license": "MIT", + "dependencies": { + "parenthesis": "^3.1.5" + } }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "node_modules/string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", "dev": true, - "requires": { - "reusify": "^1.0.4" + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", "dev": true, - "requires": { - "flat-cache": "^3.0.4" + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/strip-final-newline": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", + "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" + "node_modules/strongly-connected-components": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strongly-connected-components/-/strongly-connected-components-1.0.1.tgz", + "integrity": "sha512-i0TFx4wPcO0FwX+4RkLJi1MxmcTv90jNZgxMu9XRnMXMeFUY1VJlIoXpZunPUvUUqbCT1pg5PEkFqqpcaElNaA==", + "license": "MIT" + }, + "node_modules/stylis": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", + "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==", + "license": "MIT" + }, + "node_modules/supercluster": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-7.1.5.tgz", + "integrity": "sha512-EulshI3pGUM66o6ZdH3ReiFcvHpM3vAigyK+vcxdjpJyEbIIrtbmBdY23mGgnI24uXiGFvrGq9Gkum/8U7vJWg==", + "license": "ISC", + "dependencies": { + "kdbush": "^3.0.0" } }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "peer": true + "node_modules/supercluster/node_modules/kdbush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-3.0.0.tgz", + "integrity": "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew==", + "license": "ISC" }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "node_modules/superjson": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.2.tgz", + "integrity": "sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==", "dev": true, - "requires": { - "type-fest": "^0.20.2" + "license": "MIT", + "dependencies": { + "copy-anything": "^3.0.2" + }, + "engines": { + "node": ">=16" } }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "peer": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true + "node_modules/superscript-text": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/superscript-text/-/superscript-text-1.0.0.tgz", + "integrity": "sha512-gwu8l5MtRZ6koO0icVTlmN5pm7Dhh1+Xpe9O4x6ObMAsW+3jPbW14d1DsBq1F4wiI+WOFjXF35pslgec/G8yCQ==", + "license": "MIT" }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "function-bind": "^1.1.1" + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "highlight.js": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.7.0.tgz", - "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==", - "dev": true + "node_modules/svg-arc-to-cubic-bezier": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/svg-arc-to-cubic-bezier/-/svg-arc-to-cubic-bezier-3.2.0.tgz", + "integrity": "sha512-djbJ/vZKZO+gPoSDThGNpKDO+o+bAeA4XQKovvkNCqnIS2t+S4qnLAGQhyyrulhCFRl1WWzAp0wUDV8PpTVU3g==", + "license": "ISC" }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true + "node_modules/svg-path-bounds": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/svg-path-bounds/-/svg-path-bounds-1.0.2.tgz", + "integrity": "sha512-H4/uAgLWrppIC0kHsb2/dWUYSmb4GE5UqH06uqWBcg6LBjX2fu0A8+JrO2/FJPZiSsNOKZAhyFFgsLTdYUvSqQ==", + "license": "MIT", + "dependencies": { + "abs-svg-path": "^0.1.1", + "is-svg-path": "^1.0.1", + "normalize-svg-path": "^1.0.0", + "parse-svg-path": "^0.1.2" + } }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "node_modules/svg-path-bounds/node_modules/normalize-svg-path": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-1.1.0.tgz", + "integrity": "sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg==", + "license": "MIT", + "dependencies": { + "svg-arc-to-cubic-bezier": "^3.0.0" } }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true + "node_modules/svg-path-sdf": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/svg-path-sdf/-/svg-path-sdf-1.1.3.tgz", + "integrity": "sha512-vJJjVq/R5lSr2KLfVXVAStktfcfa1pNFjFOgyJnzZFXlO/fDZ5DmM8FpnSKKzLPfEYTVeXuVBTHF296TpxuJVg==", + "license": "MIT", + "dependencies": { + "bitmap-sdf": "^1.0.0", + "draw-svg-path": "^1.0.0", + "is-svg-path": "^1.0.1", + "parse-svg-path": "^0.1.2", + "svg-path-bounds": "^1.0.1" + } }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "node_modules/tapable": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.3.tgz", + "integrity": "sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==", "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "requires": { - "has": "^1.0.3" + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true + "node_modules/tinycolor2": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz", + "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==", + "license": "MIT" }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/tinyexec": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.1.tgz", + "integrity": "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", "dev": true, - "requires": { - "is-extglob": "^2.1.1" + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" } }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true + "node_modules/tinyqueue": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-2.0.3.tgz", + "integrity": "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==", + "license": "ISC" }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "node_modules/to-float32": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/to-float32/-/to-float32-1.1.0.tgz", + "integrity": "sha512-keDnAusn/vc+R3iEiSDw8TOF7gPiTLdK1ArvWtYbJQiVfmRg6i/CAvbKq3uIS0vWroAC7ZecN3DjQKw3aSklUg==", + "license": "MIT" }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "peer": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, + "node_modules/to-px": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-px/-/to-px-1.0.1.tgz", + "integrity": "sha512-2y3LjBeIZYL19e5gczp14/uRWFDtDUErJPVN3VU9a7SJO+RjGRtYR47aMN2bZgGlxvW4ZcEz2ddUPVHXcMfuXw==", + "license": "MIT", "dependencies": { - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "peer": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "parse-unit": "^1.0.1" } }, - "js-sdsl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", - "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "requires": { - "argparse": "^2.0.1" + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "peer": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true + "node_modules/topojson-client": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/topojson-client/-/topojson-client-3.1.0.tgz", + "integrity": "sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==", + "license": "ISC", + "dependencies": { + "commander": "2" + }, + "bin": { + "topo2geo": "bin/topo2geo", + "topomerge": "bin/topomerge", + "topoquantize": "bin/topoquantize" + } }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + "node_modules/topojson-client/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/totalist": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "peer": true + "node_modules/treemate": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/treemate/-/treemate-0.3.11.tgz", + "integrity": "sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==", + "dev": true, + "license": "MIT" }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" + "node_modules/ts-api-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" } }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "node_modules/ts-declaration-location": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz", + "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==", "dev": true, - "requires": { - "p-locate": "^5.0.0" + "funding": [ + { + "type": "ko-fi", + "url": "https://ko-fi.com/rebeccastevens" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/ts-declaration-location" + } + ], + "license": "BSD-3-Clause", + "dependencies": { + "picomatch": "^4.0.2" + }, + "peerDependencies": { + "typescript": ">=4.0.0" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "node_modules/ts-dedent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", + "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", + "license": "MIT", + "engines": { + "node": ">=6.10" + } }, - "lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", - "dev": true + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "node_modules/type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", + "license": "ISC" }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "requires": { - "yallist": "^4.0.0" + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "requires": { - "sourcemap-codec": "^1.4.8" + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "peer": true - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "peer": true - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "peer": true, - "requires": { - "mime-db": "1.52.0" + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", "dev": true, - "requires": { - "brace-expansion": "^1.1.7" + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "naive-ui": { - "version": "2.34.3", - "resolved": "https://registry.npmjs.org/naive-ui/-/naive-ui-2.34.3.tgz", - "integrity": "sha512-fUMr0dzb/iGsOTWgoblPVobY5X5dihQ1eam5dA+H74oyLYAvgX4pL96xQFPBLIYqvyRFBAsN85kHN5pLqdtpxA==", + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", "dev": true, - "requires": { - "@css-render/plugin-bem": "^0.15.10", - "@css-render/vue3-ssr": "^0.15.10", - "@types/katex": "^0.14.0", - "@types/lodash": "^4.14.181", - "@types/lodash-es": "^4.17.6", - "async-validator": "^4.0.7", - "css-render": "^0.15.10", - "date-fns": "^2.28.0", - "date-fns-tz": "^1.3.3", - "evtd": "^0.2.4", - "highlight.js": "^11.5.0", - "lodash": "^4.17.21", - "lodash-es": "^4.17.21", - "seemly": "^0.3.6", - "treemate": "^0.3.11", - "vdirs": "^0.1.8", - "vooks": "^0.2.12", - "vueuc": "^0.4.47" + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "nanoid": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", - "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "license": "MIT" }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "peer": true - }, - "node-releases": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.9.tgz", - "integrity": "sha512-2xfmOrRkGogbTK9R6Leda0DGiXeY3p2NJpy4+gNCffdUvV6mdEJnaDEic1i3Ec2djAo8jWYoJMR5PB0MSMpxUA==", - "peer": true - }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dev": true, - "requires": { - "boolbase": "^1.0.0" + "node_modules/typedarray-pool": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/typedarray-pool/-/typedarray-pool-1.2.0.tgz", + "integrity": "sha512-YTSQbzX43yvtpfRtIDAYygoYtgT+Rpjuxy9iOpczrjpXLgGoyG7aS5USJXV2d3nn8uHTeb9rXDvzS27zUg5KYQ==", + "license": "MIT", + "dependencies": { + "bit-twiddle": "^1.0.0", + "dup": "^1.0.0" } }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "devOptional": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" } }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/typescript-eslint": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.43.0.tgz", + "integrity": "sha512-FyRGJKUGvcFekRRcBKFBlAhnp4Ng8rhe8tuvvkR9OiU0gfd4vyvTRQHEckO6VDlH57jbeUQem2IpqPq9kLJH+w==", "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.43.0", + "@typescript-eslint/parser": "8.43.0", + "@typescript-eslint/typescript-estree": "8.43.0", + "@typescript-eslint/utils": "8.43.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <6.0.0" } }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "node_modules/ufo": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", + "license": "MIT" + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", "dev": true, - "requires": { - "yocto-queue": "^0.1.0" + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", "dev": true, - "requires": { - "p-limit": "^3.0.2" + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, - "requires": { - "callsites": "^3.0.0" + "license": "MIT", + "engines": { + "node": ">= 10.0.0" } }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "node_modules/unquote": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unquote/-/unquote-1.1.1.tgz", + "integrity": "sha512-vRCqFv6UhXpWxZPyGDh/F3ZpNv8/qo7w6iufLpQg9aKnQ71qM4B5KiI7Mia9COcjEhrO9LueHpMYjYzsWH3OIg==", + "license": "MIT" }, - "postcss": { - "version": "8.4.21", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", - "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", - "requires": { - "nanoid": "^3.3.4", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "node_modules/unrs-resolver": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", + "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.0" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.11.1", + "@unrs/resolver-binding-android-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-x64": "1.11.1", + "@unrs/resolver-binding-freebsd-x64": "1.11.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-musl": "1.11.1", + "@unrs/resolver-binding-wasm32-wasi": "1.11.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" } }, - "postcss-selector-parser": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz", - "integrity": "sha512-zbARubNdogI9j7WY4nQJBiNqQf3sLS3wCP4WfOidu+p28LofJqDH1tcXypGrcmMHhDk2t9wGhCsYe/+szLTy1g==", + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "dev": true, - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" } }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", - "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", - "dev": true + "node_modules/update-diff": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/update-diff/-/update-diff-1.1.0.tgz", + "integrity": "sha512-rCiBPiHxZwT4+sBhEbChzpO5hYHjm91kScWgdHf4Qeafs6Ba7MBl+d9GlGv72bcTZQO0sLmtQS1pHSWoCLtN/A==", + "license": "MIT" }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, - "requires": { - "fast-diff": "^1.1.2" + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" } }, - "punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "peer": true, - "requires": { - "safe-buffer": "^5.1.0" - } + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" }, - "raw-loader": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", - "integrity": "sha512-ZnScIV3ag9A4wPX/ZayxL/jZH+euYb6FcUinPcgiQW0+UBtEv0O6Q3lGd3cqJ+GHH+rksEv3Pj99oxJ3u3VIKA==", - "requires": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" + "node_modules/uuid": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", + "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/esm/bin/uuid" } }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "node_modules/vdirs": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/vdirs/-/vdirs-0.1.8.tgz", + "integrity": "sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==", "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.11" } }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/vfonts": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/vfonts/-/vfonts-0.0.3.tgz", + "integrity": "sha512-nguyw8L6Un8eelg1vQ31vIU2ESxqid7EYmy8V+MDeMaHBqaRSkg3dTBToC1PR00D89UzS/SLkfYPnx0Wf23IQQ==", "dev": true, - "requires": { - "glob": "^7.1.3" - } + "license": "MIT" }, - "rollup": { - "version": "2.79.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.1.tgz", - "integrity": "sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==", + "node_modules/vite": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz", + "integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==", "dev": true, - "requires": { - "fsevents": "~2.3.2" + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } } }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "node_modules/vite-hot-client": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/vite-hot-client/-/vite-hot-client-2.1.0.tgz", + "integrity": "sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ==", "dev": true, - "requires": { - "queue-microtask": "^1.2.2" + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vite": "^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "peer": true - }, - "schema-utils": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" + "node_modules/vite-plugin-eslint": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/vite-plugin-eslint/-/vite-plugin-eslint-1.8.1.tgz", + "integrity": "sha512-PqdMf3Y2fLO9FsNPmMX+//2BF5SF8nEWspZdgl4kSt7UvHDRHVVfHvxsD7ULYzZrJDGRxR81Nq7TOFgwMnUang==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^4.2.1", + "@types/eslint": "^8.4.5", + "rollup": "^2.77.2" + }, + "peerDependencies": { + "eslint": ">=7", + "vite": ">=2" } }, - "seemly": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/seemly/-/seemly-0.3.6.tgz", - "integrity": "sha512-lEV5VB8BUKTo/AfktXJcy+JeXns26ylbMkIUco8CYREsQijuz4mrXres2Q+vMLdwkuLxJdIPQ8IlCIxLYm71Yw==", - "dev": true - }, - "semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "node_modules/vite-plugin-eslint/node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", "dev": true, - "requires": { - "lru-cache": "^6.0.0" + "license": "MIT", + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" } }, - "serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "peer": true, - "requires": { - "randombytes": "^2.1.0" + "node_modules/vite-plugin-eslint/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "node_modules/vite-plugin-eslint/node_modules/rollup": { + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", "dev": true, - "requires": { - "shebang-regex": "^3.0.0" + "license": "MIT", + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "source-map-js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", - "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "peer": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "node_modules/vite-plugin-vue-devtools": { + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/vite-plugin-vue-devtools/-/vite-plugin-vue-devtools-7.7.7.tgz", + "integrity": "sha512-d0fIh3wRcgSlr4Vz7bAk4va1MkdqhQgj9ANE/rBhsAjOnRfTLs2ocjFMvSUOsv6SRRXU9G+VM7yMgqDb6yI4iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-core": "^7.7.7", + "@vue/devtools-kit": "^7.7.7", + "@vue/devtools-shared": "^7.7.7", + "execa": "^9.5.2", + "sirv": "^3.0.1", + "vite-plugin-inspect": "0.8.9", + "vite-plugin-vue-inspector": "^5.3.1" + }, + "engines": { + "node": ">=v14.21.3" + }, + "peerDependencies": { + "vite": "^3.1.0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" } }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/vite-plugin-vue-devtools/node_modules/@antfu/utils": { + "version": "0.7.10", + "resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.10.tgz", + "integrity": "sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==", "dev": true, - "requires": { - "ansi-regex": "^5.0.1" + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" } }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true + "node_modules/vite-plugin-vue-devtools/node_modules/vite-plugin-inspect": { + "version": "0.8.9", + "resolved": "https://registry.npmjs.org/vite-plugin-inspect/-/vite-plugin-inspect-0.8.9.tgz", + "integrity": "sha512-22/8qn+LYonzibb1VeFZmISdVao5kC22jmEKm24vfFE8siEn47EpVcCLYMv6iKOYMJfjSvSJfueOwcFCkUnV3A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@antfu/utils": "^0.7.10", + "@rollup/pluginutils": "^5.1.3", + "debug": "^4.3.7", + "error-stack-parser-es": "^0.1.5", + "fs-extra": "^11.2.0", + "open": "^10.1.0", + "perfect-debounce": "^1.0.0", + "picocolors": "^1.1.1", + "sirv": "^3.0.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vite": "^3.1.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.1" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + } + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/vite-plugin-vue-inspector": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/vite-plugin-vue-inspector/-/vite-plugin-vue-inspector-5.3.2.tgz", + "integrity": "sha512-YvEKooQcSiBTAs0DoYLfefNja9bLgkFM7NI2b07bE2SruuvX0MEa9cMaxjKVMkeCp5Nz9FRIdcN1rOdFVBeL6Q==", "dev": true, - "requires": { - "has-flag": "^4.0.0" + "license": "MIT", + "dependencies": { + "@babel/core": "^7.23.0", + "@babel/plugin-proposal-decorators": "^7.23.0", + "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-transform-typescript": "^7.22.15", + "@vue/babel-plugin-jsx": "^1.1.5", + "@vue/compiler-dom": "^3.3.4", + "kolorist": "^1.8.0", + "magic-string": "^0.30.4" + }, + "peerDependencies": { + "vite": "^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" } }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true + "node_modules/vooks": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/vooks/-/vooks-0.2.12.tgz", + "integrity": "sha512-iox0I3RZzxtKlcgYaStQYKEzWWGAduMmq+jS7OrNdQo1FgGfPMubGL3uGHOU9n97NIvfFDBGnpSvkWyb/NSn/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.0" + } }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "peer": true - }, - "terser": { - "version": "5.16.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.2.tgz", - "integrity": "sha512-JKuM+KvvWVqT7muHVyrwv7FVRPnmHDwF6XwoIxdbF5Witi0vu99RYpxDexpJndXt3jbZZmmWr2/mQa6HvSNdSg==", - "peer": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" + "node_modules/vscode-jsonrpc": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", + "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" } }, - "terser-webpack-plugin": { - "version": "5.3.6", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", - "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", - "peer": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.14", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.0", - "terser": "^5.14.1" + "node_modules/vscode-languageserver": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz", + "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==", + "license": "MIT", + "dependencies": { + "vscode-languageserver-protocol": "3.17.5" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" } }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true + "node_modules/vscode-languageserver-protocol": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", + "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", + "license": "MIT", + "dependencies": { + "vscode-jsonrpc": "8.2.0", + "vscode-languageserver-types": "3.17.5" + } }, - "treemate": { - "version": "0.3.11", - "resolved": "https://registry.npmjs.org/treemate/-/treemate-0.3.11.tgz", - "integrity": "sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==", - "dev": true + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", + "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", + "license": "MIT" }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } + "node_modules/vscode-languageserver-types": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", + "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", + "license": "MIT" }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true + "node_modules/vscode-uri": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", + "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", + "license": "MIT" }, - "update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "peer": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "node_modules/vt-pbf": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/vt-pbf/-/vt-pbf-3.1.3.tgz", + "integrity": "sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA==", + "license": "MIT", + "dependencies": { + "@mapbox/point-geometry": "0.1.0", + "@mapbox/vector-tile": "^1.3.1", + "pbf": "^3.2.1" } }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" + "node_modules/vue": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.21.tgz", + "integrity": "sha512-xxf9rum9KtOdwdRkiApWL+9hZEMWE90FHh8yS1+KJAiWYh+iGWV1FquPjoO9VUHQ+VIhsCXNNyZ5Sf4++RVZBA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.21", + "@vue/compiler-sfc": "3.5.21", + "@vue/runtime-dom": "3.5.21", + "@vue/server-renderer": "3.5.21", + "@vue/shared": "3.5.21" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, - "vdirs": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/vdirs/-/vdirs-0.1.8.tgz", - "integrity": "sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==", - "dev": true, - "requires": { - "evtd": "^0.2.2" + "node_modules/vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } } }, - "vite": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/vite/-/vite-3.2.7.tgz", - "integrity": "sha512-29pdXjk49xAP0QBr0xXqu2s5jiQIXNvE/xwd0vUizYT2Hzqe4BksNNoWllFVXJf4eLZ+UlVQmXfB4lWrc+t18g==", - "dev": true, - "requires": { - "esbuild": "^0.15.9", - "fsevents": "~2.3.2", - "postcss": "^8.4.18", - "resolve": "^1.22.1", - "rollup": "^2.79.1" + "node_modules/vue-echarts": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/vue-echarts/-/vue-echarts-7.0.3.tgz", + "integrity": "sha512-/jSxNwOsw5+dYAUcwSfkLwKPuzTQ0Cepz1LxCOpj2QcHrrmUa/Ql0eQqMmc1rTPQVrh2JQ29n2dhq75ZcHvRDw==", + "license": "MIT", + "dependencies": { + "vue-demi": "^0.13.11" + }, + "peerDependencies": { + "@vue/runtime-core": "^3.0.0", + "echarts": "^5.5.1", + "vue": "^2.7.0 || ^3.1.1" + }, + "peerDependenciesMeta": { + "@vue/runtime-core": { + "optional": true + } } }, - "vooks": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/vooks/-/vooks-0.2.12.tgz", - "integrity": "sha512-iox0I3RZzxtKlcgYaStQYKEzWWGAduMmq+jS7OrNdQo1FgGfPMubGL3uGHOU9n97NIvfFDBGnpSvkWyb/NSn/Q==", + "node_modules/vue-eslint-parser": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.2.0.tgz", + "integrity": "sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==", "dev": true, - "requires": { - "evtd": "^0.2.2" - } - }, - "vue": { - "version": "3.2.47", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.47.tgz", - "integrity": "sha512-60188y/9Dc9WVrAZeUVSDxRQOZ+z+y5nO2ts9jWXSTkMvayiWxCWOWtBQoYjLeccfXkiiPZWAHcV+WTPhkqJHQ==", - "requires": { - "@vue/compiler-dom": "3.2.47", - "@vue/compiler-sfc": "3.2.47", - "@vue/runtime-dom": "3.2.47", - "@vue/server-renderer": "3.2.47", - "@vue/shared": "3.2.47" + "license": "MIT", + "peer": true, + "dependencies": { + "debug": "^4.4.0", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.6.0", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0" } }, - "vue-chartjs": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/vue-chartjs/-/vue-chartjs-5.2.0.tgz", - "integrity": "sha512-d3zpKmGZr2OWHQ1xmxBcAn5ShTG917+/UCLaSpaCDDqT0U7DBsvFzTs69ZnHCgKoXT55GZDW8YEj9Av+dlONLA==", - "requires": {} - }, - "vue-eslint-parser": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-9.1.0.tgz", - "integrity": "sha512-NGn/iQy8/Wb7RrRa4aRkokyCZfOUWk19OP5HP6JEozQFX5AoS/t+Z0ZN7FY4LlmWc4FNI922V7cvX28zctN8dQ==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" + "node_modules/vue-router": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz", + "integrity": "sha512-ogAF3P97NPm8fJsE4by9dwSYtDwXIY1nFY9T6DyQnGHd1E2Da94w9JIolpe42LJGIl0DwOHBi8TcRPlPGwbTtw==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.2.0" } }, - "vueuc": { - "version": "0.4.51", - "resolved": "https://registry.npmjs.org/vueuc/-/vueuc-0.4.51.tgz", - "integrity": "sha512-pLiMChM4f+W8czlIClGvGBYo656lc2Y0/mXFSCydcSmnCR1izlKPGMgiYBGjbY9FDkFG8a2HEVz7t0DNzBWbDw==", + "node_modules/vueuc": { + "version": "0.4.64", + "resolved": "https://registry.npmjs.org/vueuc/-/vueuc-0.4.64.tgz", + "integrity": "sha512-wlJQj7fIwKK2pOEoOq4Aro8JdPOGpX8aWQhV8YkTW9OgWD2uj2O8ANzvSsIGjx7LTOc7QbS7sXdxHi6XvRnHPA==", "dev": true, - "requires": { + "license": "MIT", + "dependencies": { "@css-render/vue3-ssr": "^0.15.10", "@juggle/resize-observer": "^3.3.1", "css-render": "^0.15.10", @@ -5159,118 +11200,238 @@ "seemly": "^0.3.6", "vdirs": "^0.1.4", "vooks": "^0.2.4" + }, + "peerDependencies": { + "vue": "^3.0.11" } }, - "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "peer": true, - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } + "node_modules/weak-map": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/weak-map/-/weak-map-1.0.8.tgz", + "integrity": "sha512-lNR9aAefbGPpHO7AEnY0hCFjz1eTkWCXYvkTRrTHs9qv8zJp+SkVYpzfLIFXQQiG3tVvbNFQgVg2bQS8YGgxyw==", + "license": "Apache-2.0" }, - "webpack": { - "version": "5.76.1", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.76.1.tgz", - "integrity": "sha512-4+YIK4Abzv8172/SGqObnUjaIHjLEuUasz9EwQj/9xmPPkYJy2Mh03Q/lJfSD3YLzbxy5FeTq5Uw0323Oh6SJQ==", - "peer": true, - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^0.0.51", - "@webassemblyjs/ast": "1.11.1", - "@webassemblyjs/wasm-edit": "1.11.1", - "@webassemblyjs/wasm-parser": "1.11.1", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.10.0", - "es-module-lexer": "^0.9.0", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.0", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.1.3", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "dependencies": { - "@types/estree": { - "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", - "peer": true - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "peer": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "peer": true - } + "node_modules/webgl-context": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/webgl-context/-/webgl-context-2.2.0.tgz", + "integrity": "sha512-q/fGIivtqTT7PEoF07axFIlHNk/XCPaYpq64btnepopSWvKNFkoORlQYgqDigBIuGA1ExnFd/GnSUnBNEPQY7Q==", + "license": "MIT", + "dependencies": { + "get-canvas-context": "^1.0.1" } }, - "webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "peer": true - }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "license": "ISC", + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/world-calendars": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/world-calendars/-/world-calendars-1.0.4.tgz", + "integrity": "sha512-VGRnLJS+xJmGDPodgJRnGIDwGu0s+Cr9V2HB3EzlDZ5n0qb8h5SJtGUEkjrphZYAglEiXZ6kiXdmk0H/h/uu/w==", + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.0" + } }, - "wrappy": { + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "license": "ISC" + }, + "node_modules/wsl-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", + "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "xml-name-validator": { + "node_modules/xml-name-validator": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12" + } }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yoctocolors": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.2.tgz", + "integrity": "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zrender": { + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/zrender/-/zrender-5.6.1.tgz", + "integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "2.3.0" + } + }, + "node_modules/zrender/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "license": "0BSD" } } } diff --git a/web/package.json b/web/package.json index 062ad2e..67b9483 100644 --- a/web/package.json +++ b/web/package.json @@ -1,26 +1,34 @@ { "name": "entityscrape-client", "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore" + "lint": "eslint . --fix" }, "dependencies": { - "chart.js": "^4.2.0", - "raw-loader": "^4.0.2", - "vue": "^3.2.47", - "vue-chartjs": "^5.2.0" + "@vicons/ionicons5": "^0.13.0", + "echarts": "^5.6.0", + "mermaid": "^11.11.0", + "plotly.js": "^3.1.0", + "plotly.js-dist-min": "^3.1.0", + "vue": "^3.5.17", + "vue-echarts": "^7.0.3", + "vue-router": "^4.5.1" }, "devDependencies": { - "@rushstack/eslint-patch": "^1.1.4", - "@vitejs/plugin-vue": "^3.1.2", - "@vue/eslint-config-prettier": "^7.0.0", - "eslint": "^8.33.0", - "eslint-plugin-vue": "^9.9.0", - "naive-ui": "^2.34.3", - "prettier": "^2.8.3", - "vite": "^3.2.7" + "@eslint/js": "^9.29.0", + "@vitejs/plugin-vue": "^6.0.1", + "eslint": "^9.35.0", + "eslint-plugin-vue": "~10.2.0", + "globals": "^16.4.0", + "naive-ui": "^2.42.0", + "neostandard": "^0.12.2", + "vfonts": "^0.0.3", + "vite": "^7.1.5", + "vite-plugin-eslint": "^1.8.1", + "vite-plugin-vue-devtools": "^7.7.7" } -} \ No newline at end of file +} diff --git a/web/public/2015.json b/web/public/2015.json deleted file mode 100644 index 1271de8..0000000 --- a/web/public/2015.json +++ /dev/null @@ -1,472 +0,0 @@ -[ - { - "distance": 129.27272727272728, - "pos": "ADJ", - "text": "middle" - }, - { - "distance": 146.63636363636363, - "pos": "ADJ", - "text": "vast" - }, - { - "distance": 150.7058823529412, - "pos": "ADJ", - "text": "political" - }, - { - "distance": 170.89655172413794, - "pos": "ADJ", - "text": "conservative" - }, - { - "distance": 173.71428571428572, - "pos": "ADJ", - "text": "xenophobic" - }, - { - "distance": 177.96153846153845, - "pos": "ADJ", - "text": "korean" - }, - { - "distance": 178.69230769230768, - "pos": "ADJ", - "text": "fourth" - }, - { - "distance": 193.5, - "pos": "ADJ", - "text": "irish" - }, - { - "distance": 194.9655172413793, - "pos": "ADJ", - "text": "islamist" - }, - { - "distance": 200.9142857142857, - "pos": "ADJ", - "text": "electronic" - }, - { - "distance": 240.9512195121951, - "pos": "ADP", - "text": "near" - }, - { - "distance": 256.5217391304348, - "pos": "ADP", - "text": "during" - }, - { - "distance": 267.21153846153845, - "pos": "ADP", - "text": "due" - }, - { - "distance": 267.8, - "pos": "ADP", - "text": "via" - }, - { - "distance": 268.1521739130435, - "pos": "ADP", - "text": "@" - }, - { - "distance": 275.8030303030303, - "pos": "ADP", - "text": "per" - }, - { - "distance": 279.38461538461536, - "pos": "ADP", - "text": "towards" - }, - { - "distance": 280.5, - "pos": "ADP", - "text": "under" - }, - { - "distance": 290.53846153846155, - "pos": "ADP", - "text": "below" - }, - { - "distance": 299.2739726027397, - "pos": "ADP", - "text": "after" - }, - { - "distance": 131.6153846153846, - "pos": "ADV", - "text": "nearly" - }, - { - "distance": 172.46153846153845, - "pos": "ADV", - "text": "properly" - }, - { - "distance": 182.95652173913044, - "pos": "ADV", - "text": "north" - }, - { - "distance": 189.45945945945945, - "pos": "ADV", - "text": "reportedly" - }, - { - "distance": 220.1, - "pos": "ADV", - "text": "back" - }, - { - "distance": 221.04166666666666, - "pos": "ADV", - "text": "extremely" - }, - { - "distance": 247.9, - "pos": "ADV", - "text": "about" - }, - { - "distance": 254.30769230769232, - "pos": "ADV", - "text": "later" - }, - { - "distance": 258.08, - "pos": "ADV", - "text": "earlier" - }, - { - "distance": 270.6363636363636, - "pos": "ADV", - "text": "only" - }, - { - "distance": 249.86363636363637, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 278.3636363636364, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 425.31881188118814, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 432.6875, - "pos": "CONJ", - "text": "yet" - }, - { - "distance": 496.1818181818182, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 273.4642857142857, - "pos": "DET", - "text": "an" - }, - { - "distance": 303.0993788819876, - "pos": "DET", - "text": "a" - }, - { - "distance": 326.61538461538464, - "pos": "DET", - "text": "those" - }, - { - "distance": 374.73790322580646, - "pos": "DET", - "text": "this" - }, - { - "distance": 382.11538461538464, - "pos": "DET", - "text": "another" - }, - { - "distance": 388.75714285714287, - "pos": "DET", - "text": "some" - }, - { - "distance": 392.125, - "pos": "DET", - "text": "both" - }, - { - "distance": 403.375, - "pos": "DET", - "text": "there" - }, - { - "distance": 427.83233532934133, - "pos": "DET", - "text": "that" - }, - { - "distance": 446.3076923076923, - "pos": "DET", - "text": "every" - }, - { - "distance": 26.8, - "pos": "NOUN", - "text": "champions" - }, - { - "distance": 61.5625, - "pos": "NOUN", - "text": "operation" - }, - { - "distance": 67.6, - "pos": "NOUN", - "text": "diamond" - }, - { - "distance": 96.3125, - "pos": "NOUN", - "text": "airlines" - }, - { - "distance": 97.26086956521739, - "pos": "NOUN", - "text": "cup" - }, - { - "distance": 101.27272727272727, - "pos": "NOUN", - "text": "photos" - }, - { - "distance": 101.83333333333333, - "pos": "NOUN", - "text": "radioshack" - }, - { - "distance": 106.36, - "pos": "NOUN", - "text": "bankruptcy" - }, - { - "distance": 115.13636363636364, - "pos": "NOUN", - "text": "copies" - }, - { - "distance": 119, - "pos": "NOUN", - "text": "dfb" - }, - { - "distance": 157.07407407407408, - "pos": "NUM", - "text": "2020" - }, - { - "distance": 180.13636363636363, - "pos": "NUM", - "text": "4,000" - }, - { - "distance": 195.4375, - "pos": "NUM", - "text": "3" - }, - { - "distance": 199.5121951219512, - "pos": "NUM", - "text": "4" - }, - { - "distance": 209.9090909090909, - "pos": "NUM", - "text": "6" - }, - { - "distance": 212.16071428571428, - "pos": "NUM", - "text": "40" - }, - { - "distance": 228.91071428571428, - "pos": "NUM", - "text": "2" - }, - { - "distance": 234.5, - "pos": "NUM", - "text": "2018" - }, - { - "distance": 242.0487804878049, - "pos": "NUM", - "text": "2009" - }, - { - "distance": 242.96296296296296, - "pos": "NUM", - "text": "14" - }, - { - "distance": 271.0833333333333, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 298.25757575757575, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 303.3939393939394, - "pos": "PRON", - "text": "itself" - }, - { - "distance": 315.15503875968994, - "pos": "PRON", - "text": "she" - }, - { - "distance": 332.77777777777777, - "pos": "PRON", - "text": "himself" - }, - { - "distance": 373.3802281368821, - "pos": "PRON", - "text": "he" - }, - { - "distance": 379.3333333333333, - "pos": "PRON", - "text": "her" - }, - { - "distance": 382.2, - "pos": "PRON", - "text": "his" - }, - { - "distance": 399.5032258064516, - "pos": "PRON", - "text": "them" - }, - { - "distance": 408.1063829787234, - "pos": "PRON", - "text": "me" - }, - { - "distance": 207.375, - "pos": "PRT", - "text": "over" - }, - { - "distance": 233.31428571428572, - "pos": "PRT", - "text": "back" - }, - { - "distance": 333.68482490272373, - "pos": "PRT", - "text": "'" - }, - { - "distance": 348.6401766004415, - "pos": "PRT", - "text": "up" - }, - { - "distance": 365.86607142857144, - "pos": "PRT", - "text": "down" - }, - { - "distance": 381.1834862385321, - "pos": "PRT", - "text": "off" - }, - { - "distance": 464.7, - "pos": "PRT", - "text": "in" - }, - { - "distance": 469.8125, - "pos": "PRT", - "text": "on" - }, - { - "distance": 562.6744186046511, - "pos": "PRT", - "text": "to" - }, - { - "distance": 122.44, - "pos": "VERB", - "text": "deployed" - }, - { - "distance": 143.9655172413793, - "pos": "VERB", - "text": "check" - }, - { - "distance": 148.6, - "pos": "VERB", - "text": "stood" - }, - { - "distance": 149.9090909090909, - "pos": "VERB", - "text": "submitted" - }, - { - "distance": 150.25, - "pos": "VERB", - "text": "leak" - }, - { - "distance": 163.2, - "pos": "VERB", - "text": "drowned" - }, - { - "distance": 163.8761904761905, - "pos": "VERB", - "text": "filed" - }, - { - "distance": 169.51351351351352, - "pos": "VERB", - "text": "attempting" - }, - { - "distance": 176.22222222222223, - "pos": "VERB", - "text": "concluded" - }, - { - "distance": 176.29166666666666, - "pos": "VERB", - "text": "fix" - } -] \ No newline at end of file diff --git a/web/public/angela+merkel.json b/web/public/angela+merkel.json deleted file mode 100644 index a00eaf6..0000000 --- a/web/public/angela+merkel.json +++ /dev/null @@ -1,462 +0,0 @@ -[ - { - "distance": 21, - "pos": "ADJ", - "text": "tough" - }, - { - "distance": 22.333333333333332, - "pos": "ADJ", - "text": "steadfast" - }, - { - "distance": 26.333333333333332, - "pos": "ADJ", - "text": "open" - }, - { - "distance": 28.333333333333332, - "pos": "ADJ", - "text": "financial" - }, - { - "distance": 28.333333333333332, - "pos": "ADJ", - "text": "liberal" - }, - { - "distance": 32.666666666666664, - "pos": "ADJ", - "text": "joint" - }, - { - "distance": 33.666666666666664, - "pos": "ADJ", - "text": "islamic" - }, - { - "distance": 34.333333333333336, - "pos": "ADJ", - "text": "harsh" - }, - { - "distance": 40.333333333333336, - "pos": "ADJ", - "text": "sure" - }, - { - "distance": 42, - "pos": "ADJ", - "text": "common" - }, - { - "distance": 7, - "pos": "ADP", - "text": "via" - }, - { - "distance": 9, - "pos": "ADP", - "text": "throughout" - }, - { - "distance": 33.333333333333336, - "pos": "ADP", - "text": "against" - }, - { - "distance": 51.166666666666664, - "pos": "ADP", - "text": "while" - }, - { - "distance": 71, - "pos": "ADP", - "text": "under" - }, - { - "distance": 78.33333333333333, - "pos": "ADP", - "text": "among" - }, - { - "distance": 109.33333333333333, - "pos": "ADP", - "text": "outside" - }, - { - "distance": 148, - "pos": "ADP", - "text": "since" - }, - { - "distance": 164.66666666666666, - "pos": "ADP", - "text": "after" - }, - { - "distance": 167.83333333333334, - "pos": "ADP", - "text": "as" - }, - { - "distance": 6, - "pos": "ADV", - "text": "far" - }, - { - "distance": 18.333333333333332, - "pos": "ADV", - "text": "repeatedly" - }, - { - "distance": 36.666666666666664, - "pos": "ADV", - "text": "recently" - }, - { - "distance": 45.333333333333336, - "pos": "ADV", - "text": "strongly" - }, - { - "distance": 50, - "pos": "ADV", - "text": "then" - }, - { - "distance": 65.16666666666667, - "pos": "ADV", - "text": "keenly" - }, - { - "distance": 68.33333333333333, - "pos": "ADV", - "text": "certainly" - }, - { - "distance": 78, - "pos": "ADV", - "text": "north" - }, - { - "distance": 99.33333333333333, - "pos": "ADV", - "text": "very" - }, - { - "distance": 101.33333333333333, - "pos": "ADV", - "text": "long" - }, - { - "distance": 228.75, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 298.3333333333333, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 464.44444444444446, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 79.16666666666667, - "pos": "DET", - "text": "all" - }, - { - "distance": 143.33333333333334, - "pos": "DET", - "text": "a" - }, - { - "distance": 146, - "pos": "DET", - "text": "another" - }, - { - "distance": 239.33333333333334, - "pos": "DET", - "text": "such" - }, - { - "distance": 270.4848484848485, - "pos": "DET", - "text": "which" - }, - { - "distance": 275, - "pos": "DET", - "text": "those" - }, - { - "distance": 279.22222222222223, - "pos": "DET", - "text": "there" - }, - { - "distance": 294.06666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 300, - "pos": "DET", - "text": "this" - }, - { - "distance": 314.16161616161617, - "pos": "DET", - "text": "the" - }, - { - "distance": 4, - "pos": "NOUN", - "text": "subject" - }, - { - "distance": 6, - "pos": "NOUN", - "text": "rose" - }, - { - "distance": 12.333333333333334, - "pos": "NOUN", - "text": "course" - }, - { - "distance": 13.333333333333334, - "pos": "NOUN", - "text": "counterweight" - }, - { - "distance": 14.333333333333334, - "pos": "NOUN", - "text": "number" - }, - { - "distance": 14.666666666666666, - "pos": "NOUN", - "text": "doctrine" - }, - { - "distance": 19, - "pos": "NOUN", - "text": "terror" - }, - { - "distance": 21.333333333333332, - "pos": "NOUN", - "text": "post-truth" - }, - { - "distance": 21.733333333333334, - "pos": "NOUN", - "text": "chancellor" - }, - { - "distance": 22, - "pos": "NOUN", - "text": "nuts" - }, - { - "distance": 38.2, - "pos": "NUM", - "text": "2016" - }, - { - "distance": 39.666666666666664, - "pos": "NUM", - "text": "nine" - }, - { - "distance": 50.666666666666664, - "pos": "NUM", - "text": "two" - }, - { - "distance": 162.66666666666666, - "pos": "NUM", - "text": "five" - }, - { - "distance": 172, - "pos": "NUM", - "text": "one" - }, - { - "distance": 199.33333333333334, - "pos": "NUM", - "text": "90" - }, - { - "distance": 206.33333333333334, - "pos": "NUM", - "text": "47" - }, - { - "distance": 221, - "pos": "NUM", - "text": "four" - }, - { - "distance": 231.28571428571428, - "pos": "NUM", - "text": "2017" - }, - { - "distance": 252.33333333333334, - "pos": "NUM", - "text": "three" - }, - { - "distance": 67.66666666666667, - "pos": "PRON", - "text": "she" - }, - { - "distance": 76, - "pos": "PRON", - "text": "our" - }, - { - "distance": 88.66666666666667, - "pos": "PRON", - "text": "them" - }, - { - "distance": 90, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 149.33333333333334, - "pos": "PRON", - "text": "we" - }, - { - "distance": 173, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 211.125, - "pos": "PRON", - "text": "who" - }, - { - "distance": 261.6666666666667, - "pos": "PRON", - "text": "what" - }, - { - "distance": 306.6666666666667, - "pos": "PRON", - "text": "him" - }, - { - "distance": 325.8333333333333, - "pos": "PRON", - "text": "it" - }, - { - "distance": 109.33333333333333, - "pos": "PRT", - "text": "off" - }, - { - "distance": 133, - "pos": "PRT", - "text": "on" - }, - { - "distance": 245.93103448275863, - "pos": "PRT", - "text": "to" - }, - { - "distance": 267.80434782608694, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 325.1111111111111, - "pos": "PRT", - "text": "down" - }, - { - "distance": 350.77777777777777, - "pos": "PRT", - "text": "'" - }, - { - "distance": 369, - "pos": "PRT", - "text": "out" - }, - { - "distance": 381.5, - "pos": "PRT", - "text": "up" - }, - { - "distance": 1034, - "pos": "PRT", - "text": "away" - }, - { - "distance": 11, - "pos": "VERB", - "text": "wielding" - }, - { - "distance": 12.333333333333334, - "pos": "VERB", - "text": "anticipated" - }, - { - "distance": 18, - "pos": "VERB", - "text": "working" - }, - { - "distance": 19.333333333333332, - "pos": "VERB", - "text": "cited" - }, - { - "distance": 23, - "pos": "VERB", - "text": "depicts" - }, - { - "distance": 26, - "pos": "VERB", - "text": "crack" - }, - { - "distance": 26, - "pos": "VERB", - "text": "trapped" - }, - { - "distance": 30.333333333333332, - "pos": "VERB", - "text": "demand" - }, - { - "distance": 36.666666666666664, - "pos": "VERB", - "text": "stranded" - }, - { - "distance": 37, - "pos": "VERB", - "text": "showing" - } -] \ No newline at end of file diff --git a/web/public/barack+obama.json b/web/public/barack+obama.json deleted file mode 100644 index 46632d3..0000000 --- a/web/public/barack+obama.json +++ /dev/null @@ -1,472 +0,0 @@ -[ - { - "distance": 25.5, - "pos": "ADJ", - "text": "strategic" - }, - { - "distance": 81.66666666666667, - "pos": "ADJ", - "text": "bright" - }, - { - "distance": 89.75, - "pos": "ADJ", - "text": "binding" - }, - { - "distance": 96.66666666666667, - "pos": "ADJ", - "text": "safer" - }, - { - "distance": 107.54545454545455, - "pos": "ADJ", - "text": "secure" - }, - { - "distance": 111, - "pos": "ADJ", - "text": "sophisticated" - }, - { - "distance": 111.45454545454545, - "pos": "ADJ", - "text": "final" - }, - { - "distance": 120.33333333333333, - "pos": "ADJ", - "text": "stable" - }, - { - "distance": 123, - "pos": "ADJ", - "text": "terrorist" - }, - { - "distance": 123.5, - "pos": "ADJ", - "text": "total" - }, - { - "distance": 114, - "pos": "ADP", - "text": "after" - }, - { - "distance": 119.41176470588235, - "pos": "ADP", - "text": "despite" - }, - { - "distance": 141.375, - "pos": "ADP", - "text": "inside" - }, - { - "distance": 153.14285714285714, - "pos": "ADP", - "text": "up" - }, - { - "distance": 156.75, - "pos": "ADP", - "text": "upon" - }, - { - "distance": 157, - "pos": "ADP", - "text": "so" - }, - { - "distance": 167.6, - "pos": "ADP", - "text": "though" - }, - { - "distance": 170.14285714285714, - "pos": "ADP", - "text": "across" - }, - { - "distance": 196.6153846153846, - "pos": "ADP", - "text": "toward" - }, - { - "distance": 199.5, - "pos": "ADP", - "text": "during" - }, - { - "distance": 25, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 71, - "pos": "ADV", - "text": "nevertheless" - }, - { - "distance": 83.3157894736842, - "pos": "ADV", - "text": "legally" - }, - { - "distance": 84.25, - "pos": "ADV", - "text": "apparently" - }, - { - "distance": 96, - "pos": "ADV", - "text": "secondly" - }, - { - "distance": 102.33333333333333, - "pos": "ADV", - "text": "deep" - }, - { - "distance": 110.6470588235294, - "pos": "ADV", - "text": "too" - }, - { - "distance": 122.3125, - "pos": "ADV", - "text": "definitely" - }, - { - "distance": 125, - "pos": "ADV", - "text": "finally" - }, - { - "distance": 129.1, - "pos": "ADV", - "text": "sooner" - }, - { - "distance": 224.5, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 283.23664122137404, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 349.47058823529414, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 387.5, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 57.666666666666664, - "pos": "DET", - "text": "te" - }, - { - "distance": 162.75, - "pos": "DET", - "text": "such" - }, - { - "distance": 175, - "pos": "DET", - "text": "whatever" - }, - { - "distance": 185.5, - "pos": "DET", - "text": "some" - }, - { - "distance": 191.44444444444446, - "pos": "DET", - "text": "there" - }, - { - "distance": 216.425, - "pos": "DET", - "text": "any" - }, - { - "distance": 227, - "pos": "DET", - "text": "both" - }, - { - "distance": 227.8235294117647, - "pos": "DET", - "text": "each" - }, - { - "distance": 229.0909090909091, - "pos": "DET", - "text": "all" - }, - { - "distance": 255.85714285714286, - "pos": "DET", - "text": "that" - }, - { - "distance": 21.666666666666668, - "pos": "NOUN", - "text": "dandong" - }, - { - "distance": 22, - "pos": "NOUN", - "text": "hongxiang" - }, - { - "distance": 22.333333333333332, - "pos": "NOUN", - "text": "equipment" - }, - { - "distance": 22.666666666666668, - "pos": "NOUN", - "text": "development" - }, - { - "distance": 23, - "pos": "NOUN", - "text": "co." - }, - { - "distance": 23.333333333333332, - "pos": "NOUN", - "text": "ltd" - }, - { - "distance": 24.333333333333332, - "pos": "NOUN", - "text": "fine" - }, - { - "distance": 26.333333333333332, - "pos": "NOUN", - "text": "zte" - }, - { - "distance": 27, - "pos": "NOUN", - "text": "tech" - }, - { - "distance": 39.666666666666664, - "pos": "NOUN", - "text": "assad" - }, - { - "distance": 67, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 87.5, - "pos": "NUM", - "text": "1945" - }, - { - "distance": 121.16666666666667, - "pos": "NUM", - "text": "$1.2" - }, - { - "distance": 125.14285714285714, - "pos": "NUM", - "text": "30" - }, - { - "distance": 143.5, - "pos": "NUM", - "text": "35" - }, - { - "distance": 147.5, - "pos": "NUM", - "text": "113" - }, - { - "distance": 147.52, - "pos": "NUM", - "text": "billion" - }, - { - "distance": 147.75, - "pos": "NUM", - "text": "4" - }, - { - "distance": 155.25, - "pos": "NUM", - "text": "200" - }, - { - "distance": 156.83333333333334, - "pos": "NUM", - "text": "21" - }, - { - "distance": 116.75, - "pos": "PRON", - "text": "she" - }, - { - "distance": 155, - "pos": "PRON", - "text": "his" - }, - { - "distance": 171.31428571428572, - "pos": "PRON", - "text": "you" - }, - { - "distance": 220.33333333333334, - "pos": "PRON", - "text": "what" - }, - { - "distance": 232.83333333333334, - "pos": "PRON", - "text": "himself" - }, - { - "distance": 247.87179487179486, - "pos": "PRON", - "text": "it" - }, - { - "distance": 249.89473684210526, - "pos": "PRON", - "text": "me" - }, - { - "distance": 252.9391304347826, - "pos": "PRON", - "text": "i" - }, - { - "distance": 253, - "pos": "PRON", - "text": "her" - }, - { - "distance": 256.5681818181818, - "pos": "PRON", - "text": "they" - }, - { - "distance": 188.25, - "pos": "PRT", - "text": "off" - }, - { - "distance": 207.3, - "pos": "PRT", - "text": "in" - }, - { - "distance": 210.69811320754718, - "pos": "PRT", - "text": "'" - }, - { - "distance": 225.77777777777777, - "pos": "PRT", - "text": "on" - }, - { - "distance": 230.08823529411765, - "pos": "PRT", - "text": "back" - }, - { - "distance": 254, - "pos": "PRT", - "text": "away" - }, - { - "distance": 268.3246753246753, - "pos": "PRT", - "text": "up" - }, - { - "distance": 283.160751565762, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 291.68674698795184, - "pos": "PRT", - "text": "out" - }, - { - "distance": 341.5, - "pos": "PRT", - "text": "through" - }, - { - "distance": 22.666666666666668, - "pos": "VERB", - "text": "selling" - }, - { - "distance": 37.07142857142857, - "pos": "VERB", - "text": "supported" - }, - { - "distance": 46.333333333333336, - "pos": "VERB", - "text": "sanctioning" - }, - { - "distance": 47, - "pos": "VERB", - "text": "fanned" - }, - { - "distance": 47, - "pos": "VERB", - "text": "authorised" - }, - { - "distance": 48.125, - "pos": "VERB", - "text": "engaging" - }, - { - "distance": 50.333333333333336, - "pos": "VERB", - "text": "dipped" - }, - { - "distance": 50.5, - "pos": "VERB", - "text": "tested" - }, - { - "distance": 50.666666666666664, - "pos": "VERB", - "text": "unsealed" - }, - { - "distance": 54, - "pos": "VERB", - "text": "ignored" - } -] \ No newline at end of file diff --git a/web/public/brexit.json b/web/public/brexit.json deleted file mode 100644 index cc33cc6..0000000 --- a/web/public/brexit.json +++ /dev/null @@ -1,482 +0,0 @@ -[ - { - "distance": 80.66666666666667, - "pos": "ADJ", - "text": "surprised" - }, - { - "distance": 84.85714285714286, - "pos": "ADJ", - "text": "problematic" - }, - { - "distance": 85.5, - "pos": "ADJ", - "text": "roving" - }, - { - "distance": 92, - "pos": "ADJ", - "text": "decent" - }, - { - "distance": 95, - "pos": "ADJ", - "text": "responsible" - }, - { - "distance": 101.66666666666667, - "pos": "ADJ", - "text": "micro-mini" - }, - { - "distance": 103.33333333333333, - "pos": "ADJ", - "text": "young" - }, - { - "distance": 106.5, - "pos": "ADJ", - "text": "political" - }, - { - "distance": 110.5, - "pos": "ADJ", - "text": "xenophobic" - }, - { - "distance": 113.375, - "pos": "ADJ", - "text": "unreasonable" - }, - { - "distance": 110, - "pos": "ADP", - "text": "of" - }, - { - "distance": 133.0909090909091, - "pos": "ADP", - "text": "during" - }, - { - "distance": 158, - "pos": "ADP", - "text": "once" - }, - { - "distance": 162.14285714285714, - "pos": "ADP", - "text": "under" - }, - { - "distance": 170, - "pos": "ADP", - "text": "due" - }, - { - "distance": 178.68421052631578, - "pos": "ADP", - "text": "so" - }, - { - "distance": 182.42857142857142, - "pos": "ADP", - "text": "although" - }, - { - "distance": 185.46666666666667, - "pos": "ADP", - "text": "until" - }, - { - "distance": 204.1818181818182, - "pos": "ADP", - "text": "alongside" - }, - { - "distance": 205.0909090909091, - "pos": "ADP", - "text": "among" - }, - { - "distance": 68.22222222222223, - "pos": "ADV", - "text": "conclusively" - }, - { - "distance": 74.71428571428571, - "pos": "ADV", - "text": "crucially" - }, - { - "distance": 87, - "pos": "ADV", - "text": "certainly" - }, - { - "distance": 92, - "pos": "ADV", - "text": "truly" - }, - { - "distance": 110.66666666666667, - "pos": "ADV", - "text": "significantly" - }, - { - "distance": 111.5, - "pos": "ADV", - "text": "increasingly" - }, - { - "distance": 117.14285714285714, - "pos": "ADV", - "text": "infamously" - }, - { - "distance": 130.6, - "pos": "ADV", - "text": "on" - }, - { - "distance": 131.9090909090909, - "pos": "ADV", - "text": "traditionally" - }, - { - "distance": 141.33333333333334, - "pos": "ADV", - "text": "hugely" - }, - { - "distance": 239.5, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 261.0869565217391, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 264.57142857142856, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 299.2972972972973, - "pos": "CONJ", - "text": "nor" - }, - { - "distance": 315.875, - "pos": "CONJ", - "text": "neither" - }, - { - "distance": 330.25539568345323, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 117.71428571428571, - "pos": "DET", - "text": "which" - }, - { - "distance": 163.66666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 191.30769230769232, - "pos": "DET", - "text": "both" - }, - { - "distance": 213.63636363636363, - "pos": "DET", - "text": "either" - }, - { - "distance": 261.72093023255815, - "pos": "DET", - "text": "such" - }, - { - "distance": 293.0144927536232, - "pos": "DET", - "text": "that" - }, - { - "distance": 293.5, - "pos": "DET", - "text": "some" - }, - { - "distance": 306.9565868263473, - "pos": "DET", - "text": "the" - }, - { - "distance": 311.5568181818182, - "pos": "DET", - "text": "this" - }, - { - "distance": 312.10526315789474, - "pos": "DET", - "text": "half" - }, - { - "distance": 65.33333333333333, - "pos": "NOUN", - "text": "patrick" - }, - { - "distance": 65.66666666666667, - "pos": "NOUN", - "text": "st" - }, - { - "distance": 67, - "pos": "NOUN", - "text": "retirement" - }, - { - "distance": 74.42857142857143, - "pos": "NOUN", - "text": "engagements" - }, - { - "distance": 75, - "pos": "NOUN", - "text": "starkey" - }, - { - "distance": 75.28571428571429, - "pos": "NOUN", - "text": "historian" - }, - { - "distance": 75.42857142857143, - "pos": "NOUN", - "text": "reformation" - }, - { - "distance": 75.85714285714286, - "pos": "NOUN", - "text": "expansion" - }, - { - "distance": 77.83333333333333, - "pos": "NOUN", - "text": "predecessor" - }, - { - "distance": 78, - "pos": "NOUN", - "text": "age" - }, - { - "distance": 115.375, - "pos": "NUM", - "text": "2021" - }, - { - "distance": 121, - "pos": "NUM", - "text": "440" - }, - { - "distance": 163.36363636363637, - "pos": "NUM", - "text": "38" - }, - { - "distance": 163.45454545454547, - "pos": "NUM", - "text": "62" - }, - { - "distance": 179.82142857142858, - "pos": "NUM", - "text": "one" - }, - { - "distance": 205.41666666666666, - "pos": "NUM", - "text": "56" - }, - { - "distance": 206.5, - "pos": "NUM", - "text": "$59" - }, - { - "distance": 206.5, - "pos": "NUM", - "text": "$65" - }, - { - "distance": 207.88235294117646, - "pos": "NUM", - "text": "55" - }, - { - "distance": 209.08, - "pos": "NUM", - "text": "bn" - }, - { - "distance": 129.33333333333334, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 175.64, - "pos": "PRON", - "text": "its" - }, - { - "distance": 204, - "pos": "PRON", - "text": "'s" - }, - { - "distance": 228, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 240.15254237288136, - "pos": "PRON", - "text": "my" - }, - { - "distance": 261.5217391304348, - "pos": "PRON", - "text": "their" - }, - { - "distance": 261.6348547717842, - "pos": "PRON", - "text": "he" - }, - { - "distance": 271.2, - "pos": "PRON", - "text": "ourselves" - }, - { - "distance": 281.47058823529414, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 282.59022556390977, - "pos": "PRON", - "text": "who" - }, - { - "distance": 139.54545454545453, - "pos": "PRT", - "text": "by" - }, - { - "distance": 232.5, - "pos": "PRT", - "text": "in" - }, - { - "distance": 249.76, - "pos": "PRT", - "text": "to" - }, - { - "distance": 255.3913043478261, - "pos": "PRT", - "text": "about" - }, - { - "distance": 264.60377358490564, - "pos": "PRT", - "text": "down" - }, - { - "distance": 287.7036040882195, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 289.53225806451616, - "pos": "PRT", - "text": "off" - }, - { - "distance": 295.3790322580645, - "pos": "PRT", - "text": "up" - }, - { - "distance": 295.64285714285717, - "pos": "PRT", - "text": "on" - }, - { - "distance": 300.4266666666667, - "pos": "PRT", - "text": "out" - }, - { - "distance": 48.714285714285715, - "pos": "VERB", - "text": "formed" - }, - { - "distance": 75.57142857142857, - "pos": "VERB", - "text": "presaged" - }, - { - "distance": 77.14285714285714, - "pos": "VERB", - "text": "branded" - }, - { - "distance": 81, - "pos": "VERB", - "text": "shot" - }, - { - "distance": 81, - "pos": "VERB", - "text": "demanding" - }, - { - "distance": 83, - "pos": "VERB", - "text": "decides" - }, - { - "distance": 85.14285714285714, - "pos": "VERB", - "text": "buy" - }, - { - "distance": 88.28571428571429, - "pos": "VERB", - "text": "invoked" - }, - { - "distance": 93.33333333333333, - "pos": "VERB", - "text": "chastised" - }, - { - "distance": 93.42857142857143, - "pos": "VERB", - "text": "framed" - } -] \ No newline at end of file diff --git a/web/public/donald+trump.json b/web/public/donald+trump.json deleted file mode 100644 index d5b7fa0..0000000 --- a/web/public/donald+trump.json +++ /dev/null @@ -1,492 +0,0 @@ -[ - { - "distance": 96.90243902439025, - "pos": "ADJ", - "text": "pro-trump" - }, - { - "distance": 104.4, - "pos": "ADJ", - "text": "shocked" - }, - { - "distance": 109.6, - "pos": "ADJ", - "text": "casual" - }, - { - "distance": 113.20833333333333, - "pos": "ADJ", - "text": "explicit" - }, - { - "distance": 113.72727272727273, - "pos": "ADJ", - "text": "lower" - }, - { - "distance": 119.91111111111111, - "pos": "ADJ", - "text": "intolerable" - }, - { - "distance": 121.36065573770492, - "pos": "ADJ", - "text": "unofficial" - }, - { - "distance": 129, - "pos": "ADJ", - "text": "false" - }, - { - "distance": 134.94736842105263, - "pos": "ADJ", - "text": "expensive" - }, - { - "distance": 138.95652173913044, - "pos": "ADJ", - "text": "incorrect" - }, - { - "distance": 134.86666666666667, - "pos": "ADP", - "text": "outside" - }, - { - "distance": 183.36363636363637, - "pos": "ADP", - "text": "that" - }, - { - "distance": 208.8181818181818, - "pos": "ADP", - "text": "through" - }, - { - "distance": 219.19230769230768, - "pos": "ADP", - "text": "upon" - }, - { - "distance": 220.28571428571428, - "pos": "ADP", - "text": "en" - }, - { - "distance": 221.14754098360655, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 225.9, - "pos": "ADP", - "text": "for" - }, - { - "distance": 242.80645161290323, - "pos": "ADP", - "text": "amid" - }, - { - "distance": 260.2608695652174, - "pos": "ADP", - "text": "whether" - }, - { - "distance": 267.67857142857144, - "pos": "ADP", - "text": "beside" - }, - { - "distance": 111.21951219512195, - "pos": "ADV", - "text": "above" - }, - { - "distance": 116.06666666666666, - "pos": "ADV", - "text": "mostly" - }, - { - "distance": 121.66666666666667, - "pos": "ADV", - "text": "usually" - }, - { - "distance": 129.0909090909091, - "pos": "ADV", - "text": "domestically" - }, - { - "distance": 144.66, - "pos": "ADV", - "text": "accurately" - }, - { - "distance": 148.6, - "pos": "ADV", - "text": "realistically" - }, - { - "distance": 154.34722222222223, - "pos": "ADV", - "text": "greatly" - }, - { - "distance": 155, - "pos": "ADV", - "text": "utterly" - }, - { - "distance": 160.54166666666666, - "pos": "ADV", - "text": "explicitly" - }, - { - "distance": 161.59574468085106, - "pos": "ADV", - "text": "casually" - }, - { - "distance": 206.49122807017545, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 276.86842105263156, - "pos": "CONJ", - "text": "nor" - }, - { - "distance": 322.875, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 397.0769230769231, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 421.8888888888889, - "pos": "CONJ", - "text": "yet" - }, - { - "distance": 482.9981369352585, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 502.1, - "pos": "CONJ", - "text": "neither" - }, - { - "distance": 689.4897959183673, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 260.7350427350427, - "pos": "DET", - "text": "both" - }, - { - "distance": 267.54545454545456, - "pos": "DET", - "text": "which" - }, - { - "distance": 271.3673469387755, - "pos": "DET", - "text": "any" - }, - { - "distance": 315.98501872659176, - "pos": "DET", - "text": "another" - }, - { - "distance": 322.8888888888889, - "pos": "DET", - "text": "such" - }, - { - "distance": 344.3636363636364, - "pos": "DET", - "text": "quite" - }, - { - "distance": 359.8646408839779, - "pos": "DET", - "text": "all" - }, - { - "distance": 377.38310269482884, - "pos": "DET", - "text": "that" - }, - { - "distance": 377.89237668161434, - "pos": "DET", - "text": "some" - }, - { - "distance": 399.5192307692308, - "pos": "DET", - "text": "no" - }, - { - "distance": 43.5, - "pos": "NOUN", - "text": "meyers" - }, - { - "distance": 59, - "pos": "NOUN", - "text": "satellite" - }, - { - "distance": 60, - "pos": "NOUN", - "text": "launching" - }, - { - "distance": 61, - "pos": "NOUN", - "text": "ground" - }, - { - "distance": 78.76190476190476, - "pos": "NOUN", - "text": "y." - }, - { - "distance": 88.57142857142857, - "pos": "NOUN", - "text": "senses" - }, - { - "distance": 88.95, - "pos": "NOUN", - "text": "golden" - }, - { - "distance": 90.42857142857143, - "pos": "NOUN", - "text": "co-host" - }, - { - "distance": 94.625, - "pos": "NOUN", - "text": "nadler" - }, - { - "distance": 96.29824561403508, - "pos": "NOUN", - "text": "cheney" - }, - { - "distance": 107.8, - "pos": "NUM", - "text": "7,000" - }, - { - "distance": 108.88888888888889, - "pos": "NUM", - "text": "$65,000" - }, - { - "distance": 112.6, - "pos": "NUM", - "text": "6,800" - }, - { - "distance": 113.72727272727273, - "pos": "NUM", - "text": "60,350" - }, - { - "distance": 117.8, - "pos": "NUM", - "text": "1979" - }, - { - "distance": 121.45, - "pos": "NUM", - "text": "\"." - }, - { - "distance": 134.6, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 143.0952380952381, - "pos": "NUM", - "text": "195" - }, - { - "distance": 145.05405405405406, - "pos": "NUM", - "text": "800" - }, - { - "distance": 146, - "pos": "NUM", - "text": "4,571" - }, - { - "distance": 112.5, - "pos": "PRON", - "text": "u" - }, - { - "distance": 208.9189189189189, - "pos": "PRON", - "text": "yourself" - }, - { - "distance": 236.66666666666666, - "pos": "PRON", - "text": "it." - }, - { - "distance": 248.6875, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 292.1923076923077, - "pos": "PRON", - "text": "whatever" - }, - { - "distance": 293.13157894736844, - "pos": "PRON", - "text": "ourselves" - }, - { - "distance": 312.72906403940885, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 321.30232558139534, - "pos": "PRON", - "text": "you'r" - }, - { - "distance": 334.0983606557377, - "pos": "PRON", - "text": "you" - }, - { - "distance": 342.6946778711485, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 212.93333333333334, - "pos": "PRT", - "text": "to" - }, - { - "distance": 225.78571428571428, - "pos": "PRT", - "text": "test." - }, - { - "distance": 254.36363636363637, - "pos": "PRT", - "text": "up" - }, - { - "distance": 261.10151187904967, - "pos": "PRT", - "text": "back" - }, - { - "distance": 277.0779220779221, - "pos": "PRT", - "text": "na" - }, - { - "distance": 278.4416961130742, - "pos": "PRT", - "text": "through" - }, - { - "distance": 341.73148148148147, - "pos": "PRT", - "text": "away" - }, - { - "distance": 354.6933962264151, - "pos": "PRT", - "text": "in" - }, - { - "distance": 366.12783171521033, - "pos": "PRT", - "text": "on" - }, - { - "distance": 367.85, - "pos": "PRT", - "text": "about" - }, - { - "distance": 73.5, - "pos": "VERB", - "text": "depicted" - }, - { - "distance": 85.28571428571429, - "pos": "VERB", - "text": "bolstering" - }, - { - "distance": 85.5, - "pos": "VERB", - "text": "cut" - }, - { - "distance": 96, - "pos": "VERB", - "text": "accumulate" - }, - { - "distance": 97.26666666666667, - "pos": "VERB", - "text": "had" - }, - { - "distance": 101.95, - "pos": "VERB", - "text": "check" - }, - { - "distance": 102, - "pos": "VERB", - "text": "outmatch" - }, - { - "distance": 106.28571428571429, - "pos": "VERB", - "text": "outlast" - }, - { - "distance": 108.4, - "pos": "VERB", - "text": "enhancing" - }, - { - "distance": 109.45454545454545, - "pos": "VERB", - "text": "coordinating" - } -] \ No newline at end of file diff --git a/web/public/isopf b/web/public/isopf new file mode 120000 index 0000000..f3bdac3 --- /dev/null +++ b/web/public/isopf @@ -0,0 +1 @@ +/home/ipszzy/Repositories/assocentity/entityscrape/reports/isopf \ No newline at end of file diff --git a/web/public/north+korea.json b/web/public/north+korea.json deleted file mode 100644 index 5e0756f..0000000 --- a/web/public/north+korea.json +++ /dev/null @@ -1,477 +0,0 @@ -[ - { - "distance": 53.857142857142854, - "pos": "ADJ", - "text": "indiscriminate" - }, - { - "distance": 61.285714285714285, - "pos": "ADJ", - "text": "despicable" - }, - { - "distance": 72.66666666666667, - "pos": "ADJ", - "text": "voluntary" - }, - { - "distance": 76.38461538461539, - "pos": "ADJ", - "text": "diplomatic" - }, - { - "distance": 79.25, - "pos": "ADJ", - "text": "secure" - }, - { - "distance": 80.75, - "pos": "ADJ", - "text": "unanimous" - }, - { - "distance": 83.05555555555556, - "pos": "ADJ", - "text": "secretive" - }, - { - "distance": 83.5, - "pos": "ADJ", - "text": "historic" - }, - { - "distance": 86, - "pos": "ADJ", - "text": "previous" - }, - { - "distance": 86.33333333333333, - "pos": "ADJ", - "text": "islamic" - }, - { - "distance": 122.18181818181819, - "pos": "ADP", - "text": "although" - }, - { - "distance": 161, - "pos": "ADP", - "text": "between" - }, - { - "distance": 164.33333333333334, - "pos": "ADP", - "text": "before" - }, - { - "distance": 167.77777777777777, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 189, - "pos": "ADP", - "text": "onto" - }, - { - "distance": 196.8, - "pos": "ADP", - "text": "whether" - }, - { - "distance": 206.19298245614036, - "pos": "ADP", - "text": "across" - }, - { - "distance": 231.1818181818182, - "pos": "ADP", - "text": "through" - }, - { - "distance": 234, - "pos": "ADP", - "text": "along" - }, - { - "distance": 250.57912457912457, - "pos": "ADP", - "text": "against" - }, - { - "distance": 34.5, - "pos": "ADV", - "text": "long" - }, - { - "distance": 55.714285714285715, - "pos": "ADV", - "text": "angrily" - }, - { - "distance": 93.85714285714286, - "pos": "ADV", - "text": "afloat" - }, - { - "distance": 112.66666666666667, - "pos": "ADV", - "text": "personally" - }, - { - "distance": 121.11111111111111, - "pos": "ADV", - "text": "as" - }, - { - "distance": 122.6, - "pos": "ADV", - "text": "reluctantly" - }, - { - "distance": 128.66666666666666, - "pos": "ADV", - "text": "adamantly" - }, - { - "distance": 128.85714285714286, - "pos": "ADV", - "text": "last" - }, - { - "distance": 130.875, - "pos": "ADV", - "text": "intensively" - }, - { - "distance": 131.77777777777777, - "pos": "ADV", - "text": "closer" - }, - { - "distance": 31.333333333333332, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 105.57142857142857, - "pos": "CONJ", - "text": "plus" - }, - { - "distance": 304.56657963446474, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 330.9389312977099, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 667.8, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 150.9047619047619, - "pos": "DET", - "text": "another" - }, - { - "distance": 163.57894736842104, - "pos": "DET", - "text": "whatever" - }, - { - "distance": 189.26923076923077, - "pos": "DET", - "text": "an" - }, - { - "distance": 190.69230769230768, - "pos": "DET", - "text": "half" - }, - { - "distance": 191.13793103448276, - "pos": "DET", - "text": "both" - }, - { - "distance": 207.38888888888889, - "pos": "DET", - "text": "all" - }, - { - "distance": 253.81420765027323, - "pos": "DET", - "text": "there" - }, - { - "distance": 275.2027027027027, - "pos": "DET", - "text": "that" - }, - { - "distance": 285.25714285714287, - "pos": "DET", - "text": "these" - }, - { - "distance": 291.0281690140845, - "pos": "DET", - "text": "no" - }, - { - "distance": 22.5, - "pos": "NOUN", - "text": "possession" - }, - { - "distance": 37.166666666666664, - "pos": "NOUN", - "text": "blog" - }, - { - "distance": 42.833333333333336, - "pos": "NOUN", - "text": "launching" - }, - { - "distance": 43.166666666666664, - "pos": "NOUN", - "text": "un-employees" - }, - { - "distance": 46.833333333333336, - "pos": "NOUN", - "text": "no." - }, - { - "distance": 49, - "pos": "NOUN", - "text": "manipulation" - }, - { - "distance": 52.75, - "pos": "NOUN", - "text": "millitary" - }, - { - "distance": 54.875, - "pos": "NOUN", - "text": "ground" - }, - { - "distance": 55.125, - "pos": "NOUN", - "text": "satellite" - }, - { - "distance": 60.333333333333336, - "pos": "NOUN", - "text": "improvement" - }, - { - "distance": 63.75, - "pos": "NUM", - "text": "nine" - }, - { - "distance": 123.22222222222223, - "pos": "NUM", - "text": "28,500" - }, - { - "distance": 129.33333333333334, - "pos": "NUM", - "text": "1950" - }, - { - "distance": 130.875, - "pos": "NUM", - "text": "2100" - }, - { - "distance": 148.33333333333334, - "pos": "NUM", - "text": "3,600" - }, - { - "distance": 157.0735294117647, - "pos": "NUM", - "text": "$1.35" - }, - { - "distance": 161.57142857142858, - "pos": "NUM", - "text": "ten" - }, - { - "distance": 163.6875, - "pos": "NUM", - "text": "2008" - }, - { - "distance": 165.93333333333334, - "pos": "NUM", - "text": "2009" - }, - { - "distance": 174.85714285714286, - "pos": "NUM", - "text": "2003" - }, - { - "distance": 159.66666666666666, - "pos": "PRON", - "text": "it." - }, - { - "distance": 166.8235294117647, - "pos": "PRON", - "text": "who" - }, - { - "distance": 223.89361702127658, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 227.0222222222222, - "pos": "PRON", - "text": "our" - }, - { - "distance": 238.26027397260273, - "pos": "PRON", - "text": "itself" - }, - { - "distance": 259.28125, - "pos": "PRON", - "text": "his" - }, - { - "distance": 264.47058823529414, - "pos": "PRON", - "text": "whoever" - }, - { - "distance": 270.64406779661016, - "pos": "PRON", - "text": "you" - }, - { - "distance": 289.18518518518516, - "pos": "PRON", - "text": "your" - }, - { - "distance": 289.9795918367347, - "pos": "PRON", - "text": "whose" - }, - { - "distance": 121.45454545454545, - "pos": "PRT", - "text": "to" - }, - { - "distance": 167.21428571428572, - "pos": "PRT", - "text": "about" - }, - { - "distance": 187, - "pos": "PRT", - "text": "back" - }, - { - "distance": 218.5, - "pos": "PRT", - "text": "in" - }, - { - "distance": 236.36729222520108, - "pos": "PRT", - "text": "up" - }, - { - "distance": 301.89473684210526, - "pos": "PRT", - "text": "down" - }, - { - "distance": 302.90058479532166, - "pos": "PRT", - "text": "off" - }, - { - "distance": 305.54411764705884, - "pos": "PRT", - "text": "through" - }, - { - "distance": 309.3888888888889, - "pos": "PRT", - "text": "on" - }, - { - "distance": 317.8052550231839, - "pos": "PRT", - "text": "out" - }, - { - "distance": 28, - "pos": "VERB", - "text": "pressuring" - }, - { - "distance": 36.23076923076923, - "pos": "VERB", - "text": "declare" - }, - { - "distance": 37.166666666666664, - "pos": "VERB", - "text": "communicating" - }, - { - "distance": 37.166666666666664, - "pos": "VERB", - "text": "relent" - }, - { - "distance": 47.25, - "pos": "VERB", - "text": "had" - }, - { - "distance": 50, - "pos": "VERB", - "text": "match" - }, - { - "distance": 50.125, - "pos": "VERB", - "text": "fail" - }, - { - "distance": 54.57142857142857, - "pos": "VERB", - "text": "subverting" - }, - { - "distance": 56.142857142857146, - "pos": "VERB", - "text": "objected" - }, - { - "distance": 72, - "pos": "VERB", - "text": "departed" - } -] \ No newline at end of file diff --git a/web/public/nsops b/web/public/nsops new file mode 120000 index 0000000..e94aad1 --- /dev/null +++ b/web/public/nsops @@ -0,0 +1 @@ +/home/ipszzy/Repositories/assocentity/entityscrape/reports/nsops \ No newline at end of file diff --git a/web/public/rvomg b/web/public/rvomg new file mode 120000 index 0000000..573ee8c --- /dev/null +++ b/web/public/rvomg @@ -0,0 +1 @@ +/home/ipszzy/Repositories/assocentity/entityscrape/reports/rvomg \ No newline at end of file diff --git a/web/public/vladimir+putin.json b/web/public/vladimir+putin.json deleted file mode 100644 index 1285f48..0000000 --- a/web/public/vladimir+putin.json +++ /dev/null @@ -1,467 +0,0 @@ -[ - { - "distance": 28, - "pos": "ADJ", - "text": "big" - }, - { - "distance": 29.5, - "pos": "ADJ", - "text": "angry" - }, - { - "distance": 36, - "pos": "ADJ", - "text": "intermediate" - }, - { - "distance": 55.5, - "pos": "ADJ", - "text": "available" - }, - { - "distance": 72, - "pos": "ADJ", - "text": "most" - }, - { - "distance": 85, - "pos": "ADJ", - "text": "trilateral" - }, - { - "distance": 85.5, - "pos": "ADJ", - "text": "dangerous" - }, - { - "distance": 89.97435897435898, - "pos": "ADJ", - "text": "russian" - }, - { - "distance": 94, - "pos": "ADJ", - "text": "military" - }, - { - "distance": 95, - "pos": "ADJ", - "text": "easy" - }, - { - "distance": 33, - "pos": "ADP", - "text": "to" - }, - { - "distance": 48, - "pos": "ADP", - "text": "after" - }, - { - "distance": 52.5, - "pos": "ADP", - "text": "among" - }, - { - "distance": 59, - "pos": "ADP", - "text": "besides" - }, - { - "distance": 85.33333333333333, - "pos": "ADP", - "text": "throughout" - }, - { - "distance": 86, - "pos": "ADP", - "text": "via" - }, - { - "distance": 104, - "pos": "ADP", - "text": "under" - }, - { - "distance": 131.48648648648648, - "pos": "ADP", - "text": "between" - }, - { - "distance": 152.25, - "pos": "ADP", - "text": "behind" - }, - { - "distance": 185.4, - "pos": "ADP", - "text": "about" - }, - { - "distance": 12.5, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 86.33333333333333, - "pos": "ADV", - "text": "far" - }, - { - "distance": 90, - "pos": "ADV", - "text": "already" - }, - { - "distance": 93.5, - "pos": "ADV", - "text": "quickly" - }, - { - "distance": 97, - "pos": "ADV", - "text": "then" - }, - { - "distance": 106.33333333333333, - "pos": "ADV", - "text": "north" - }, - { - "distance": 116.33333333333333, - "pos": "ADV", - "text": "ahead" - }, - { - "distance": 119.33333333333333, - "pos": "ADV", - "text": "rather" - }, - { - "distance": 126, - "pos": "ADV", - "text": "just" - }, - { - "distance": 129.66666666666666, - "pos": "ADV", - "text": "here" - }, - { - "distance": 170, - "pos": "CONJ", - "text": "so" - }, - { - "distance": 409.1611842105263, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 528.9577464788732, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 624.7692307692307, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 154.16666666666666, - "pos": "DET", - "text": "no" - }, - { - "distance": 182.77777777777777, - "pos": "DET", - "text": "a" - }, - { - "distance": 188.66666666666666, - "pos": "DET", - "text": "another" - }, - { - "distance": 247.94827586206895, - "pos": "DET", - "text": "that" - }, - { - "distance": 317.6666666666667, - "pos": "DET", - "text": "those" - }, - { - "distance": 350.7241379310345, - "pos": "DET", - "text": "which" - }, - { - "distance": 374.05882352941177, - "pos": "DET", - "text": "both" - }, - { - "distance": 385.1489361702128, - "pos": "DET", - "text": "this" - }, - { - "distance": 411, - "pos": "DET", - "text": "any" - }, - { - "distance": 426.6280487804878, - "pos": "DET", - "text": "the" - }, - { - "distance": 2, - "pos": "NOUN", - "text": "goal" - }, - { - "distance": 8, - "pos": "NOUN", - "text": "kuril" - }, - { - "distance": 9, - "pos": "NOUN", - "text": "southern" - }, - { - "distance": 12, - "pos": "NOUN", - "text": "territories" - }, - { - "distance": 12.5, - "pos": "NOUN", - "text": "meetings" - }, - { - "distance": 13, - "pos": "NOUN", - "text": "northern" - }, - { - "distance": 17.5, - "pos": "NOUN", - "text": "desk" - }, - { - "distance": 18, - "pos": "NOUN", - "text": "ministry" - }, - { - "distance": 20.5, - "pos": "NOUN", - "text": "oval" - }, - { - "distance": 21.5, - "pos": "NOUN", - "text": "office" - }, - { - "distance": 24, - "pos": "NUM", - "text": "17" - }, - { - "distance": 45, - "pos": "NUM", - "text": "1987" - }, - { - "distance": 91, - "pos": "NUM", - "text": "trillion" - }, - { - "distance": 92, - "pos": "NUM", - "text": "$1" - }, - { - "distance": 98, - "pos": "NUM", - "text": "two" - }, - { - "distance": 99, - "pos": "NUM", - "text": "70" - }, - { - "distance": 99, - "pos": "NUM", - "text": "2016" - }, - { - "distance": 115.33333333333333, - "pos": "NUM", - "text": "2017" - }, - { - "distance": 137.66666666666666, - "pos": "NUM", - "text": "one" - }, - { - "distance": 140, - "pos": "NUM", - "text": "18" - }, - { - "distance": 32, - "pos": "PRON", - "text": "me" - }, - { - "distance": 78.5, - "pos": "PRON", - "text": "what" - }, - { - "distance": 95.5, - "pos": "PRON", - "text": "my" - }, - { - "distance": 96.66666666666667, - "pos": "PRON", - "text": "she" - }, - { - "distance": 114, - "pos": "PRON", - "text": "our" - }, - { - "distance": 119.4, - "pos": "PRON", - "text": "we" - }, - { - "distance": 132.66666666666666, - "pos": "PRON", - "text": "whom" - }, - { - "distance": 135, - "pos": "PRON", - "text": "his" - }, - { - "distance": 138, - "pos": "PRON", - "text": "themselves" - }, - { - "distance": 289.2857142857143, - "pos": "PRON", - "text": "its" - }, - { - "distance": 124.66666666666667, - "pos": "PRT", - "text": "on" - }, - { - "distance": 244.33333333333334, - "pos": "PRT", - "text": "down" - }, - { - "distance": 342, - "pos": "PRT", - "text": "in" - }, - { - "distance": 353.26402640264024, - "pos": "PRT", - "text": "to" - }, - { - "distance": 355.6551724137931, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 368.5, - "pos": "PRT", - "text": "out" - }, - { - "distance": 398.4642857142857, - "pos": "PRT", - "text": "up" - }, - { - "distance": 459.3333333333333, - "pos": "PRT", - "text": "'" - }, - { - "distance": 1076.6666666666667, - "pos": "PRT", - "text": "away" - }, - { - "distance": 4, - "pos": "VERB", - "text": "signing" - }, - { - "distance": 9, - "pos": "VERB", - "text": "expressed" - }, - { - "distance": 12.5, - "pos": "VERB", - "text": "had" - }, - { - "distance": 12.5, - "pos": "VERB", - "text": "scheduled" - }, - { - "distance": 19, - "pos": "VERB", - "text": "raise" - }, - { - "distance": 21, - "pos": "VERB", - "text": "makes" - }, - { - "distance": 23, - "pos": "VERB", - "text": "asked" - }, - { - "distance": 24.5, - "pos": "VERB", - "text": "declared" - }, - { - "distance": 27, - "pos": "VERB", - "text": "pay" - }, - { - "distance": 39, - "pos": "VERB", - "text": "acting" - } -] \ No newline at end of file diff --git a/web/public/xi+jinping.json b/web/public/xi+jinping.json deleted file mode 100644 index d77e0a3..0000000 --- a/web/public/xi+jinping.json +++ /dev/null @@ -1,477 +0,0 @@ -[ - { - "distance": 51.6, - "pos": "ADJ", - "text": "underway" - }, - { - "distance": 63.8, - "pos": "ADJ", - "text": "friendly" - }, - { - "distance": 65.75, - "pos": "ADJ", - "text": "unconfirmed" - }, - { - "distance": 74.7, - "pos": "ADJ", - "text": "good" - }, - { - "distance": 75.75, - "pos": "ADJ", - "text": "earlier" - }, - { - "distance": 76.25, - "pos": "ADJ", - "text": "productive" - }, - { - "distance": 77.5, - "pos": "ADJ", - "text": "domestic" - }, - { - "distance": 77.5, - "pos": "ADJ", - "text": "mutual" - }, - { - "distance": 87.16666666666667, - "pos": "ADJ", - "text": "unofficial" - }, - { - "distance": 89, - "pos": "ADJ", - "text": "glad" - }, - { - "distance": 97.75, - "pos": "ADP", - "text": "toward" - }, - { - "distance": 110.30434782608695, - "pos": "ADP", - "text": "before" - }, - { - "distance": 110.33333333333333, - "pos": "ADP", - "text": "because" - }, - { - "distance": 122, - "pos": "ADP", - "text": "since" - }, - { - "distance": 137.14285714285714, - "pos": "ADP", - "text": "after" - }, - { - "distance": 158.70833333333334, - "pos": "ADP", - "text": "despite" - }, - { - "distance": 163.27272727272728, - "pos": "ADP", - "text": "in" - }, - { - "distance": 171.35537190082644, - "pos": "ADP", - "text": "between" - }, - { - "distance": 175.8095238095238, - "pos": "ADP", - "text": "if" - }, - { - "distance": 201, - "pos": "ADP", - "text": "to" - }, - { - "distance": 13.5, - "pos": "ADV", - "text": "most" - }, - { - "distance": 82, - "pos": "ADV", - "text": "casually" - }, - { - "distance": 88.5, - "pos": "ADV", - "text": "principally" - }, - { - "distance": 105, - "pos": "ADV", - "text": "yet" - }, - { - "distance": 127.85714285714286, - "pos": "ADV", - "text": "late" - }, - { - "distance": 140.55555555555554, - "pos": "ADV", - "text": "surely" - }, - { - "distance": 142.56756756756758, - "pos": "ADV", - "text": "very" - }, - { - "distance": 145.11111111111111, - "pos": "ADV", - "text": "just" - }, - { - "distance": 153.36363636363637, - "pos": "ADV", - "text": "n't" - }, - { - "distance": 155.5, - "pos": "ADV", - "text": "notably" - }, - { - "distance": 132.16666666666666, - "pos": "CONJ", - "text": "either" - }, - { - "distance": 220.11111111111111, - "pos": "CONJ", - "text": "or" - }, - { - "distance": 273.3333333333333, - "pos": "CONJ", - "text": "and" - }, - { - "distance": 287.3703703703704, - "pos": "CONJ", - "text": "but" - }, - { - "distance": 305.4347826086956, - "pos": "CONJ", - "text": "both" - }, - { - "distance": 77.75, - "pos": "DET", - "text": "both" - }, - { - "distance": 82.2, - "pos": "DET", - "text": "another" - }, - { - "distance": 147, - "pos": "DET", - "text": "this" - }, - { - "distance": 164.6, - "pos": "DET", - "text": "all" - }, - { - "distance": 165, - "pos": "DET", - "text": "these" - }, - { - "distance": 194.08510638297872, - "pos": "DET", - "text": "any" - }, - { - "distance": 218.9655172413793, - "pos": "DET", - "text": "the" - }, - { - "distance": 228.8125, - "pos": "DET", - "text": "that" - }, - { - "distance": 232.66666666666666, - "pos": "DET", - "text": "those" - }, - { - "distance": 234.3111111111111, - "pos": "DET", - "text": "a" - }, - { - "distance": 40.42857142857143, - "pos": "NOUN", - "text": "problem" - }, - { - "distance": 51.2, - "pos": "NOUN", - "text": "negotiations" - }, - { - "distance": 53.4, - "pos": "NOUN", - "text": "reports" - }, - { - "distance": 56.333333333333336, - "pos": "NOUN", - "text": "courtesy" - }, - { - "distance": 60.166666666666664, - "pos": "NOUN", - "text": "adrian" - }, - { - "distance": 60.333333333333336, - "pos": "NOUN", - "text": "minutes" - }, - { - "distance": 61.4, - "pos": "NOUN", - "text": "appreciation" - }, - { - "distance": 64.54545454545455, - "pos": "NOUN", - "text": "communications" - }, - { - "distance": 65.75, - "pos": "NOUN", - "text": "reference" - }, - { - "distance": 65.75, - "pos": "NOUN", - "text": "contrast" - }, - { - "distance": 32, - "pos": "NUM", - "text": "19.03." - }, - { - "distance": 59.666666666666664, - "pos": "NUM", - "text": "seven" - }, - { - "distance": 89.16666666666667, - "pos": "NUM", - "text": "1979" - }, - { - "distance": 102, - "pos": "NUM", - "text": "18" - }, - { - "distance": 117.85714285714286, - "pos": "NUM", - "text": "18.03." - }, - { - "distance": 125.2, - "pos": "NUM", - "text": "17.03." - }, - { - "distance": 142.22727272727272, - "pos": "NUM", - "text": "4" - }, - { - "distance": 143.57142857142858, - "pos": "NUM", - "text": "28" - }, - { - "distance": 144.35135135135135, - "pos": "NUM", - "text": "6" - }, - { - "distance": 161.5, - "pos": "NUM", - "text": "2" - }, - { - "distance": 102, - "pos": "PRON", - "text": "my" - }, - { - "distance": 136.6046511627907, - "pos": "PRON", - "text": "i" - }, - { - "distance": 163.6, - "pos": "PRON", - "text": "it." - }, - { - "distance": 190.1764705882353, - "pos": "PRON", - "text": "him" - }, - { - "distance": 196.42857142857142, - "pos": "PRON", - "text": "they" - }, - { - "distance": 203, - "pos": "PRON", - "text": "we" - }, - { - "distance": 204, - "pos": "PRON", - "text": "his" - }, - { - "distance": 217.34736842105264, - "pos": "PRON", - "text": "it" - }, - { - "distance": 233.1125, - "pos": "PRON", - "text": "he" - }, - { - "distance": 233.23076923076923, - "pos": "PRON", - "text": "what" - }, - { - "distance": 142.625, - "pos": "PRT", - "text": "in" - }, - { - "distance": 148.0952380952381, - "pos": "PRT", - "text": "through" - }, - { - "distance": 188.75, - "pos": "PRT", - "text": "about" - }, - { - "distance": 226.28571428571428, - "pos": "PRT", - "text": "'s" - }, - { - "distance": 261.3235294117647, - "pos": "PRT", - "text": "out" - }, - { - "distance": 262.85714285714283, - "pos": "PRT", - "text": "up" - }, - { - "distance": 316.29411764705884, - "pos": "PRT", - "text": "off" - }, - { - "distance": 322.1111111111111, - "pos": "PRT", - "text": "on" - }, - { - "distance": 325.04347826086956, - "pos": "PRT", - "text": "'" - }, - { - "distance": 449, - "pos": "PRT", - "text": "to" - }, - { - "distance": 19.333333333333332, - "pos": "VERB", - "text": "expected" - }, - { - "distance": 45.714285714285715, - "pos": "VERB", - "text": "enhancing" - }, - { - "distance": 57.2, - "pos": "VERB", - "text": "occurred" - }, - { - "distance": 59, - "pos": "VERB", - "text": "lasted" - }, - { - "distance": 59.5, - "pos": "VERB", - "text": "reporting" - }, - { - "distance": 59.77777777777778, - "pos": "VERB", - "text": "places" - }, - { - "distance": 62.6, - "pos": "VERB", - "text": "express" - }, - { - "distance": 65.75, - "pos": "VERB", - "text": "released" - }, - { - "distance": 66.6, - "pos": "VERB", - "text": "say" - }, - { - "distance": 67.75, - "pos": "VERB", - "text": "considered" - } -] \ No newline at end of file diff --git a/web/src/App.vue b/web/src/App.vue index f32146b..39e7d12 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,212 +1,73 @@ - diff --git a/web/src/components/.gitkeep b/web/src/components/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/web/src/components/XChart.vue b/web/src/components/XChart.vue new file mode 100644 index 0000000..cf68b36 --- /dev/null +++ b/web/src/components/XChart.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/web/src/components/XIsopf.vue b/web/src/components/XIsopf.vue new file mode 100644 index 0000000..9da2362 --- /dev/null +++ b/web/src/components/XIsopf.vue @@ -0,0 +1,59 @@ + + + diff --git a/web/src/components/XNsops.vue b/web/src/components/XNsops.vue new file mode 100644 index 0000000..cbf288c --- /dev/null +++ b/web/src/components/XNsops.vue @@ -0,0 +1,43 @@ + + + diff --git a/web/src/components/XRvomg.vue b/web/src/components/XRvomg.vue new file mode 100644 index 0000000..b20543d --- /dev/null +++ b/web/src/components/XRvomg.vue @@ -0,0 +1,49 @@ + + + diff --git a/web/src/main.js b/web/src/main.js index 9492b7b..699ed2b 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -1,9 +1,11 @@ +import naive from 'naive-ui' import { createApp } from 'vue' import App from './App.vue' -import naive from 'naive-ui' +import router from './router' const app = createApp(App) +app.use(router) app.use(naive) app.mount('#app') diff --git a/web/src/router/index.js b/web/src/router/index.js new file mode 100644 index 0000000..a3a0424 --- /dev/null +++ b/web/src/router/index.js @@ -0,0 +1,34 @@ +import { createRouter, createWebHistory } from 'vue-router' + +const router = createRouter({ + history: createWebHistory(import.meta.env.BASE_URL), + routes: [ + { + path: '/', + name: 'home', + component: () => import('../views/HomeView.vue') + }, + { + path: '/', + name: 'about', + component: () => import('../views/AboutView.vue') + }, + { + path: '/isopf', + name: 'isopf', + component: () => import('../views/IsopfView.vue') + }, + { + path: '/nsops', + name: 'nsops', + component: () => import('../views/NsopsView.vue') + }, + { + path: '/rvomg', + name: 'rvomg', + component: () => import('../views/RvomgView.vue') + } + ] +}) + +export default router diff --git a/web/src/views/AboutView.vue b/web/src/views/AboutView.vue new file mode 100644 index 0000000..a7d6401 --- /dev/null +++ b/web/src/views/AboutView.vue @@ -0,0 +1,3 @@ + diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue new file mode 100644 index 0000000..c620c9e --- /dev/null +++ b/web/src/views/HomeView.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/web/src/views/IsopfView.vue b/web/src/views/IsopfView.vue new file mode 100644 index 0000000..bc3b330 --- /dev/null +++ b/web/src/views/IsopfView.vue @@ -0,0 +1,61 @@ + + + diff --git a/web/src/views/NsopsView.vue b/web/src/views/NsopsView.vue new file mode 100644 index 0000000..4b7ab3e --- /dev/null +++ b/web/src/views/NsopsView.vue @@ -0,0 +1,54 @@ + + + diff --git a/web/src/views/RvomgView.vue b/web/src/views/RvomgView.vue new file mode 100644 index 0000000..3ab3e35 --- /dev/null +++ b/web/src/views/RvomgView.vue @@ -0,0 +1,51 @@ + + + diff --git a/web/vite.config.js b/web/vite.config.js index e9e6c71..3b57dc5 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -1,14 +1,21 @@ +import vue from '@vitejs/plugin-vue' import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' +import eslint from 'vite-plugin-eslint' // 1. Import the plugin +import vueDevTools from 'vite-plugin-vue-devtools' -// https://vitejs.dev/config/ +// https://vite.dev/config/ export default defineConfig({ - base: '/entityscrape/', - plugins: [vue()], - build: { - outDir: '../docs' - }, + plugins: [ + vue(), + vueDevTools(), + eslint({ + fix: true, + cache: false, + lintOnStart: true, + include: ['src/**/*.js', 'src/**/*.vue', 'src/**/*.ts'] + }) + ], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url))